-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# [1.0.0-alpha.3](v1.0.0-alpha.2...v1.0.0-alpha.3) (2021-10-29) ### Bug Fixes * force new version ([82cc051](82cc051))
- Loading branch information
1 parent
82cc051
commit e062891
Showing
4 changed files
with
16 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,19 @@ | ||
import type { | ||
DashThemes, | ||
DashTokens, | ||
StyleCallback, | ||
StyleObject, | ||
Styles, | ||
} from "@dash-ui/styles"; | ||
import type { DashThemes, DashTokens, StyleCallback, StyleObject, Styles } from "@dash-ui/styles"; | ||
/** | ||
* A factory function that creates a utility for adding breakpoints and | ||
* media queries to Dash styles | ||
* | ||
* @param styles - A Dash `styles` instance | ||
* @param mediaQueries - A map of media query name/query pairs | ||
*/ | ||
declare function mq< | ||
Tokens extends DashTokens = DashTokens, | ||
Themes extends DashThemes = DashThemes, | ||
QueryNames extends string = string | ||
>( | ||
styles: Styles<Tokens, Themes>, | ||
mediaQueries: MediaQueries<QueryNames> | ||
): { | ||
(queryName: QueryNames): string; | ||
(queryName: MediaQueryObject<QueryNames, Tokens, Themes>): string; | ||
declare function mq<Tokens extends DashTokens = DashTokens, Themes extends DashThemes = DashThemes, QueryNames extends string = string>(styles: Styles<Tokens, Themes>, mediaQueries: MediaQueries<QueryNames>): { | ||
(queryName: QueryNames): string; | ||
(queryName: MediaQueryObject<QueryNames, Tokens, Themes>): string; | ||
}; | ||
export default mq; | ||
export declare type MediaQueries<QueryNames extends string> = { | ||
readonly [K in QueryNames]: string; | ||
readonly [K in QueryNames]: string; | ||
}; | ||
export declare type MediaQueryObject< | ||
QueryNames extends string, | ||
Tokens extends DashTokens = DashTokens, | ||
Themes extends DashThemes = DashThemes | ||
> = { | ||
readonly [K in QueryNames | "default"]?: | ||
| string | ||
| StyleObject | ||
| StyleCallback<Tokens, Themes>; | ||
export declare type MediaQueryObject<QueryNames extends string, Tokens extends DashTokens = DashTokens, Themes extends DashThemes = DashThemes> = { | ||
readonly [K in QueryNames | "default"]?: string | StyleObject | StyleCallback<Tokens, Themes>; | ||
}; |
Large diffs are not rendered by default.
Oops, something went wrong.