Skip to content

Commit

Permalink
chore(release): 0.1.4
Browse files Browse the repository at this point in the history
## [0.1.4](v0.1.3...v0.1.4) (2021-09-27)

### Bug Fixes

* fix fake thing ([871c75a](871c75a))
  • Loading branch information
semantic-release-bot committed Sep 27, 2021
1 parent 871c75a commit 5224f88
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 45 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## [0.1.4](https://github.com/dash-ui/compound/compare/v0.1.3...v0.1.4) (2021-09-27)


### Bug Fixes

* fix fake thing ([871c75a](https://github.com/dash-ui/compound/commit/871c75ab1888d35a9137ec9829d3744b36fbc2ff))

# Changelog

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
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/compound",
"version": "0.1.3",
"version": "0.1.4",
"homepage": "https://github.com/dash-ui/compound#readme",
"repository": "github:dash-ui/compound",
"bugs": "https://github.com/dash-ui/compound/issues",
Expand Down
53 changes: 9 additions & 44 deletions types/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,51 +1,16 @@
import type {
ResponsiveLazy,
ResponsiveOne,
ResponsiveStyle,
ResponsiveStyles,
} from "@dash-ui/responsive";
import type {
Style,
Styles,
StylesLazy,
StylesOne,
DashTokens,
} from "@dash-ui/styles";
import type { ResponsiveLazy, ResponsiveOne, ResponsiveStyle, ResponsiveStyles } from "@dash-ui/responsive";
import type { DashTokens, Style, Styles, StylesLazy, StylesOne } from "@dash-ui/styles";
/**
* A factory function that creates a compound styles utility
*
* @param styles
*/
declare function compound<Tokens extends DashTokens, ThemeNames extends string>(
styles: Styles<Tokens, ThemeNames> | ResponsiveStyles<Tokens, any, ThemeNames>
): <
Keys extends string,
T extends Record<
Keys,
| StylesOne
| ResponsiveStyle<any, any, any>
| Style<any, DashTokens>
| ResponsiveOne<any>
| StylesLazy<any>
| ResponsiveLazy<any, any>
>,
StyleMap extends { [Name in keyof T]: T[Name] }
>(
styleMap: StyleMap,
options?: CompoundStylesOptions
) => ((
compoundMap?: {
[Name_1 in keyof StyleMap]?: Parameters<StyleMap[Name_1]>[0] | undefined;
},
compoundOptions?: CompoundStylesOptions
) => string) & {
css: (compoundMap: {
[Name_2 in keyof StyleMap]?: Parameters<StyleMap[Name_2]>[0] | undefined;
}) => string;
atomicCss: (compoundMap: {
[Name_3 in keyof StyleMap]?: Parameters<StyleMap[Name_3]>[0] | undefined;
}) => string[];
styles: StyleMap;
declare function compound<Tokens extends DashTokens, ThemeNames extends string>(styles: Styles<Tokens, ThemeNames> | ResponsiveStyles<Tokens, any, ThemeNames>): <Keys extends string, T extends Record<Keys, StylesOne | ResponsiveStyle<any, any, any> | Style<any, DashTokens> | ResponsiveOne<any> | StylesLazy<any> | ResponsiveLazy<any, any>>, StyleMap extends { [Name in keyof T]: T[Name]; }>(styleMap: StyleMap, options?: CompoundStylesOptions) => ((compoundMap?: { [Name_1 in keyof StyleMap]?: Parameters<StyleMap[Name_1]>[0] | undefined; }, compoundOptions?: CompoundStylesOptions) => string) & {
css: (compoundMap: { [Name_2 in keyof StyleMap]?: Parameters<StyleMap[Name_2]>[0] | undefined; }) => string;
atomicCss: (compoundMap: { [Name_3 in keyof StyleMap]?: Parameters<StyleMap[Name_3]>[0] | undefined; }) => string[];
styles: StyleMap;
};
export declare type CompoundStylesOptions = {
atomic?: boolean;
atomic?: boolean;
};
export default compound;

0 comments on commit 5224f88

Please sign in to comment.