Skip to content

Commit

Permalink
chore(release): 1.0.0-alpha.3
Browse files Browse the repository at this point in the history
# [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
semantic-release-bot committed Oct 29, 2021
1 parent 82cc051 commit e062891
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 29 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# [1.0.0-alpha.3](https://github.com/dash-ui/mq/compare/v1.0.0-alpha.2...v1.0.0-alpha.3) (2021-10-29)


### Bug Fixes

* force new version ([82cc051](https://github.com/dash-ui/mq/commit/82cc051ac0b43950169ef405fe7d5d654625f6e6))

# [1.0.0-alpha.2](https://github.com/dash-ui/mq/compare/v1.0.0-alpha.1...v1.0.0-alpha.2) (2021-10-29)


Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dash-ui/mq",
"version": "1.0.0-alpha.2",
"version": "1.0.0-alpha.3",
"description": "A utility function for adding reusable media queries and breakpoints to @dash-ui styles",
"keywords": [
"mq",
Expand Down
34 changes: 7 additions & 27 deletions types/index.d.ts
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>;
};
2 changes: 1 addition & 1 deletion types/tsconfig.tsbuildinfo

Large diffs are not rendered by default.

0 comments on commit e062891

Please sign in to comment.