@voiceflow/style 1.2.4 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/build/cjs/__fixtures__/Button/Button.styled.d.ts +2 -1
- package/build/cjs/__fixtures__/Button/Button.styled.d.ts.map +1 -1
- package/build/cjs/__fixtures__/RecipeButton/RecipeButton.component.d.ts +3 -2
- package/build/cjs/__fixtures__/RecipeButton/RecipeButton.component.d.ts.map +1 -1
- package/build/cjs/__fixtures__/RecipeButton/index.d.ts +1 -4
- package/build/cjs/__fixtures__/RecipeButton/index.d.ts.map +1 -1
- package/build/cjs/__fixtures__/ReuseStyled/ReuseStyled.styled.d.ts +2 -1
- package/build/cjs/__fixtures__/ReuseStyled/ReuseStyled.styled.d.ts.map +1 -1
- package/build/cjs/__fixtures__/ThemedButton/ThemedButton.styled.d.ts +2 -1
- package/build/cjs/__fixtures__/ThemedButton/ThemedButton.styled.d.ts.map +1 -1
- package/build/cjs/styled/types.d.ts +1 -1
- package/build/cjs/styled/types.d.ts.map +1 -1
- package/build/cjs/types.d.ts +1 -1
- package/build/cjs/types.d.ts.map +1 -1
- package/build/esm/__fixtures__/Button/Button.styled.d.ts +2 -1
- package/build/esm/__fixtures__/Button/Button.styled.d.ts.map +1 -1
- package/build/esm/__fixtures__/RecipeButton/RecipeButton.component.d.ts +3 -2
- package/build/esm/__fixtures__/RecipeButton/RecipeButton.component.d.ts.map +1 -1
- package/build/esm/__fixtures__/RecipeButton/index.d.ts +1 -4
- package/build/esm/__fixtures__/RecipeButton/index.d.ts.map +1 -1
- package/build/esm/__fixtures__/ReuseStyled/ReuseStyled.styled.d.ts +2 -1
- package/build/esm/__fixtures__/ReuseStyled/ReuseStyled.styled.d.ts.map +1 -1
- package/build/esm/__fixtures__/ThemedButton/ThemedButton.styled.d.ts +2 -1
- package/build/esm/__fixtures__/ThemedButton/ThemedButton.styled.d.ts.map +1 -1
- package/build/esm/styled/types.d.ts +1 -1
- package/build/esm/styled/types.d.ts.map +1 -1
- package/build/esm/types.d.ts +1 -1
- package/build/esm/types.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/__fixtures__/RecipeButton/RecipeButton.component.tsx +2 -2
- package/src/styled/factory.tsx +1 -1
- package/src/styled/types.ts +1 -1
- package/src/types.ts +4 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [1.3.0](https://github.com/voiceflow/design/compare/@voiceflow/style@1.2.5...@voiceflow/style@1.3.0) (2023-07-07)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* improve menu component (DX-000) ([#110](https://github.com/voiceflow/design/issues/110)) ([fc772b5](https://github.com/voiceflow/design/commit/fc772b53d9b1c6184cff239354b7e085117c065b))
|
|
11
|
+
|
|
12
|
+
## [1.2.5](https://github.com/voiceflow/design/compare/@voiceflow/style@1.2.4...@voiceflow/style@1.2.5) (2023-07-05)
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
* types ([a5e92b0](https://github.com/voiceflow/design/commit/a5e92b0b370331e69d18ebd495e181283b411b3e))
|
|
17
|
+
|
|
6
18
|
## [1.2.4](https://github.com/voiceflow/design/compare/@voiceflow/style@1.2.3...@voiceflow/style@1.2.4) (2023-06-12)
|
|
7
19
|
|
|
8
20
|
**Note:** Version bump only for package @voiceflow/style
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const Base: import("../../main").StyledComponent<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">>;
|
|
2
3
|
//# sourceMappingURL=Button.styled.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.styled.d.ts","sourceRoot":"","sources":["../../../../src/__fixtures__/Button/Button.styled.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,IAAI,
|
|
1
|
+
{"version":3,"file":"Button.styled.d.ts","sourceRoot":"","sources":["../../../../src/__fixtures__/Button/Button.styled.ts"],"names":[],"mappings":";AAIA,eAAO,MAAM,IAAI,8JAAwB,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type {
|
|
2
|
+
import type { VariantProps } from '../../main';
|
|
3
3
|
import type { ButtonProps } from '../Button';
|
|
4
4
|
import type { complex } from './RecipeButton.css';
|
|
5
|
-
export
|
|
5
|
+
export interface RecipeButtonProps extends ButtonProps, VariantProps<typeof complex> {
|
|
6
|
+
}
|
|
6
7
|
export declare const RecipeButton: React.FC<RecipeButtonProps>;
|
|
7
8
|
//# sourceMappingURL=RecipeButton.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RecipeButton.component.d.ts","sourceRoot":"","sources":["../../../../src/__fixtures__/RecipeButton/RecipeButton.component.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"RecipeButton.component.d.ts","sourceRoot":"","sources":["../../../../src/__fixtures__/RecipeButton/RecipeButton.component.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAE3C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAGlD,MAAM,WAAW,iBAAkB,SAAQ,WAAW,EAAE,YAAY,CAAC,OAAO,OAAO,CAAC;CAAG;AAEvF,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAIpD,CAAC"}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import * as css from './RecipeButton.css';
|
|
3
|
-
export declare const RecipeButton: import("react").FC<import("
|
|
4
|
-
color?: "ok" | "warn" | undefined;
|
|
5
|
-
fontSize?: "sm" | "md" | "lg" | undefined;
|
|
6
|
-
}> & {
|
|
3
|
+
export declare const RecipeButton: import("react").FC<import("./RecipeButton.component").RecipeButtonProps> & {
|
|
7
4
|
css: typeof css;
|
|
8
5
|
};
|
|
9
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/__fixtures__/RecipeButton/index.ts"],"names":[],"mappings":";AACA,OAAO,KAAK,GAAG,MAAM,oBAAoB,CAAC;AAE1C,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/__fixtures__/RecipeButton/index.ts"],"names":[],"mappings":";AACA,OAAO,KAAK,GAAG,MAAM,oBAAoB,CAAC;AAE1C,eAAO,MAAM,YAAY;;CAAgD,CAAC"}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const Base: import("../../main").StyledComponent<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">>;
|
|
2
3
|
//# sourceMappingURL=ReuseStyled.styled.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReuseStyled.styled.d.ts","sourceRoot":"","sources":["../../../../src/__fixtures__/ReuseStyled/ReuseStyled.styled.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,IAAI,
|
|
1
|
+
{"version":3,"file":"ReuseStyled.styled.d.ts","sourceRoot":"","sources":["../../../../src/__fixtures__/ReuseStyled/ReuseStyled.styled.ts"],"names":[],"mappings":";AAKA,eAAO,MAAM,IAAI,8JAAyC,CAAC"}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const Base: import("../../main").StyledComponent<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">>;
|
|
2
3
|
//# sourceMappingURL=ThemedButton.styled.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemedButton.styled.d.ts","sourceRoot":"","sources":["../../../../src/__fixtures__/ThemedButton/ThemedButton.styled.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,IAAI,
|
|
1
|
+
{"version":3,"file":"ThemedButton.styled.d.ts","sourceRoot":"","sources":["../../../../src/__fixtures__/ThemedButton/ThemedButton.styled.ts"],"names":[],"mappings":";AAKA,eAAO,MAAM,IAAI,8JAAuC,CAAC"}
|
|
@@ -27,7 +27,7 @@ export type DynamicVariablesProps<Variables> = Variables extends Record<string,
|
|
|
27
27
|
[K in keyof Variables]: string;
|
|
28
28
|
}>;
|
|
29
29
|
} : {};
|
|
30
|
-
export type StyledComponentProps<Tag extends keyof JSX.IntrinsicElements, Theme, Variables, Extras extends object = {}> = React.
|
|
30
|
+
export type StyledComponentProps<Tag extends keyof JSX.IntrinsicElements, Theme, Variables, Extras extends object = {}> = React.ComponentPropsWithoutRef<Tag> & DynamicThemeProps<Theme> & DynamicVariablesProps<Variables> & Extras;
|
|
31
31
|
export interface StyledComponent<Props = {}> extends React.FunctionComponent<Props> {
|
|
32
32
|
(props: Props, context?: any): React.ReactElement<any, any> | null;
|
|
33
33
|
[STYLED_CLASS]: string | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/styled/types.ts"],"names":[],"mappings":";AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAE1E,OAAO,KA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S,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,GAAG,IAAI,EAChG,OAAO,EAAE,WAAW,EAAE,EACtB,OAAO,CAAC,EAAE,cAAc,CAAC,KAAK,EAAE,SAAS,CAAC,GACzC,eAAe,CAAC,oBAAoB,CAAC,GAAG,EAAE,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC;CACjE;AAED,MAAM,MAAM,mBAAmB,CAAC,QAAQ,SAAS,EAAE,GAAG,GAAG,IACrD,SAAS,CAAC,QAAQ,CAAC,GACnB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GACtB,WAAW,EAAE,CAAC;AAElB,MAAM,MAAM,oBAAoB,GAAG,WAAW,EAAE,GAAG,cAAc,CAAC"}
|
package/build/cjs/types.d.ts
CHANGED
|
@@ -2,5 +2,5 @@ import type { ComplexStyleRule } from '@vanilla-extract/css';
|
|
|
2
2
|
import type { RecipeVariants, RuntimeFn } from '@vanilla-extract/recipes';
|
|
3
3
|
import type { Simplify } from 'type-fest';
|
|
4
4
|
export type VariantStyleRules = Record<string, Record<string, ComplexStyleRule | string>>;
|
|
5
|
-
export type VariantProps<RecipeFn extends RuntimeFn<VariantStyleRules>> = Simplify<RecipeVariants<RecipeFn
|
|
5
|
+
export type VariantProps<RecipeFn extends RuntimeFn<VariantStyleRules>> = Exclude<Simplify<RecipeVariants<RecipeFn>>, undefined | null>;
|
|
6
6
|
//# sourceMappingURL=types.d.ts.map
|
package/build/cjs/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAC1E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAE1C,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,GAAG,MAAM,CAAC,CAAC,CAAC;AAE1F,MAAM,MAAM,YAAY,CAAC,QAAQ,SAAS,SAAS,CAAC,iBAAiB,CAAC,IAAI,QAAQ,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAC1E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAE1C,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,GAAG,MAAM,CAAC,CAAC,CAAC;AAE1F,MAAM,MAAM,YAAY,CAAC,QAAQ,SAAS,SAAS,CAAC,iBAAiB,CAAC,IAAI,OAAO,CAC/E,QAAQ,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC,EAClC,SAAS,GAAG,IAAI,CACjB,CAAC"}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const Base: import("../../main.js").StyledComponent<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">>;
|
|
2
3
|
//# sourceMappingURL=Button.styled.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.styled.d.ts","sourceRoot":"","sources":["../../../../src/__fixtures__/Button/Button.styled.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,IAAI,
|
|
1
|
+
{"version":3,"file":"Button.styled.d.ts","sourceRoot":"","sources":["../../../../src/__fixtures__/Button/Button.styled.ts"],"names":[],"mappings":";AAIA,eAAO,MAAM,IAAI,8JAAwB,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type {
|
|
2
|
+
import type { VariantProps } from '../../main.js';
|
|
3
3
|
import type { ButtonProps } from '../Button/index.js';
|
|
4
4
|
import type { complex } from './RecipeButton.css.js';
|
|
5
|
-
export
|
|
5
|
+
export interface RecipeButtonProps extends ButtonProps, VariantProps<typeof complex> {
|
|
6
|
+
}
|
|
6
7
|
export declare const RecipeButton: React.FC<RecipeButtonProps>;
|
|
7
8
|
//# sourceMappingURL=RecipeButton.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RecipeButton.component.d.ts","sourceRoot":"","sources":["../../../../src/__fixtures__/RecipeButton/RecipeButton.component.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"RecipeButton.component.d.ts","sourceRoot":"","sources":["../../../../src/__fixtures__/RecipeButton/RecipeButton.component.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAE3C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAGlD,MAAM,WAAW,iBAAkB,SAAQ,WAAW,EAAE,YAAY,CAAC,OAAO,OAAO,CAAC;CAAG;AAEvF,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAIpD,CAAC"}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import * as css from './RecipeButton.css.js';
|
|
3
|
-
export declare const RecipeButton: import("react").FC<import("
|
|
4
|
-
color?: "ok" | "warn" | undefined;
|
|
5
|
-
fontSize?: "sm" | "md" | "lg" | undefined;
|
|
6
|
-
}> & {
|
|
3
|
+
export declare const RecipeButton: import("react").FC<import("./RecipeButton.component.js").RecipeButtonProps> & {
|
|
7
4
|
css: typeof css;
|
|
8
5
|
};
|
|
9
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/__fixtures__/RecipeButton/index.ts"],"names":[],"mappings":";AACA,OAAO,KAAK,GAAG,MAAM,oBAAoB,CAAC;AAE1C,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/__fixtures__/RecipeButton/index.ts"],"names":[],"mappings":";AACA,OAAO,KAAK,GAAG,MAAM,oBAAoB,CAAC;AAE1C,eAAO,MAAM,YAAY;;CAAgD,CAAC"}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const Base: import("../../main.js").StyledComponent<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">>;
|
|
2
3
|
//# sourceMappingURL=ReuseStyled.styled.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReuseStyled.styled.d.ts","sourceRoot":"","sources":["../../../../src/__fixtures__/ReuseStyled/ReuseStyled.styled.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,IAAI,
|
|
1
|
+
{"version":3,"file":"ReuseStyled.styled.d.ts","sourceRoot":"","sources":["../../../../src/__fixtures__/ReuseStyled/ReuseStyled.styled.ts"],"names":[],"mappings":";AAKA,eAAO,MAAM,IAAI,8JAAyC,CAAC"}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const Base: import("../../main.js").StyledComponent<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">>;
|
|
2
3
|
//# sourceMappingURL=ThemedButton.styled.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemedButton.styled.d.ts","sourceRoot":"","sources":["../../../../src/__fixtures__/ThemedButton/ThemedButton.styled.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,IAAI,
|
|
1
|
+
{"version":3,"file":"ThemedButton.styled.d.ts","sourceRoot":"","sources":["../../../../src/__fixtures__/ThemedButton/ThemedButton.styled.ts"],"names":[],"mappings":";AAKA,eAAO,MAAM,IAAI,8JAAuC,CAAC"}
|
|
@@ -27,7 +27,7 @@ export type DynamicVariablesProps<Variables> = Variables extends Record<string,
|
|
|
27
27
|
[K in keyof Variables]: string;
|
|
28
28
|
}>;
|
|
29
29
|
} : {};
|
|
30
|
-
export type StyledComponentProps<Tag extends keyof JSX.IntrinsicElements, Theme, Variables, Extras extends object = {}> = React.
|
|
30
|
+
export type StyledComponentProps<Tag extends keyof JSX.IntrinsicElements, Theme, Variables, Extras extends object = {}> = React.ComponentPropsWithoutRef<Tag> & DynamicThemeProps<Theme> & DynamicVariablesProps<Variables> & Extras;
|
|
31
31
|
export interface StyledComponent<Props = {}> extends React.FunctionComponent<Props> {
|
|
32
32
|
(props: Props, context?: any): React.ReactElement<any, any> | null;
|
|
33
33
|
[STYLED_CLASS]: string | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/styled/types.ts"],"names":[],"mappings":";AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAE1E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD,MAAM,MAAM,aAAa,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC;AAEnE,MAAM,WAAW,cAAc,CAC7B,KAAK,SAAS,aAAa,GAA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AC,GAAG,EAAE,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC;CACjE;AAED,MAAM,MAAM,mBAAmB,CAAC,QAAQ,SAAS,EAAE,GAAG,GAAG,IACrD,SAAS,CAAC,QAAQ,CAAC,GACnB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GACtB,WAAW,EAAE,CAAC;AAElB,MAAM,MAAM,oBAAoB,GAAG,WAAW,EAAE,GAAG,cAAc,CAAC"}
|
package/build/esm/types.d.ts
CHANGED
|
@@ -2,5 +2,5 @@ import type { ComplexStyleRule } from '@vanilla-extract/css';
|
|
|
2
2
|
import type { RecipeVariants, RuntimeFn } from '@vanilla-extract/recipes';
|
|
3
3
|
import type { Simplify } from 'type-fest';
|
|
4
4
|
export type VariantStyleRules = Record<string, Record<string, ComplexStyleRule | string>>;
|
|
5
|
-
export type VariantProps<RecipeFn extends RuntimeFn<VariantStyleRules>> = Simplify<RecipeVariants<RecipeFn
|
|
5
|
+
export type VariantProps<RecipeFn extends RuntimeFn<VariantStyleRules>> = Exclude<Simplify<RecipeVariants<RecipeFn>>, undefined | null>;
|
|
6
6
|
//# sourceMappingURL=types.d.ts.map
|
package/build/esm/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAC1E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAE1C,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,GAAG,MAAM,CAAC,CAAC,CAAC;AAE1F,MAAM,MAAM,YAAY,CAAC,QAAQ,SAAS,SAAS,CAAC,iBAAiB,CAAC,IAAI,QAAQ,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAC1E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAE1C,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,GAAG,MAAM,CAAC,CAAC,CAAC;AAE1F,MAAM,MAAM,YAAY,CAAC,QAAQ,SAAS,SAAS,CAAC,iBAAiB,CAAC,IAAI,OAAO,CAC/E,QAAQ,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC,EAClC,SAAS,GAAG,IAAI,CACjB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voiceflow/style",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"exports": {
|
|
5
5
|
".": {
|
|
6
6
|
"types": "./build/cjs/main.d.ts",
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"peerDependencies": {
|
|
55
55
|
"react": "^18"
|
|
56
56
|
},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "fd809d5e3fffd3ee84b26fc8462d22d549ebd6f5"
|
|
58
58
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { VariantProps } from '@/main';
|
|
2
2
|
|
|
3
3
|
import type { ButtonProps } from '../Button';
|
|
4
4
|
import type { complex } from './RecipeButton.css';
|
|
5
5
|
import * as S from './RecipeButton.styled';
|
|
6
6
|
|
|
7
|
-
export
|
|
7
|
+
export interface RecipeButtonProps extends ButtonProps, VariantProps<typeof complex> {}
|
|
8
8
|
|
|
9
9
|
export const RecipeButton: React.FC<RecipeButtonProps> = ({ color, fontSize, onClick, children }) => (
|
|
10
10
|
<S.Base variants={{ color, fontSize }} onClick={onClick}>
|
package/src/styled/factory.tsx
CHANGED
|
@@ -28,7 +28,7 @@ export const styled = new Proxy<{
|
|
|
28
28
|
const inlineStyle = useInlineStyle(props, dynamicOptions);
|
|
29
29
|
|
|
30
30
|
return createElement(tag, {
|
|
31
|
-
...(props as React.
|
|
31
|
+
...(props as React.ComponentPropsWithoutRef<Tag>),
|
|
32
32
|
className: clsx(themeClass, staticClass, dynamicClass, props.className),
|
|
33
33
|
style: { ...inlineStyle, ...props.style },
|
|
34
34
|
});
|
package/src/styled/types.ts
CHANGED
|
@@ -43,7 +43,7 @@ export type StyledComponentProps<
|
|
|
43
43
|
Theme,
|
|
44
44
|
Variables,
|
|
45
45
|
Extras extends object = {}
|
|
46
|
-
> = React.
|
|
46
|
+
> = React.ComponentPropsWithoutRef<Tag> & DynamicThemeProps<Theme> & DynamicVariablesProps<Variables> & Extras;
|
|
47
47
|
|
|
48
48
|
export interface StyledComponent<Props = {}> extends React.FunctionComponent<Props> {
|
|
49
49
|
(props: Props, context?: any): React.ReactElement<any, any> | null;
|
package/src/types.ts
CHANGED
|
@@ -4,4 +4,7 @@ import type { Simplify } from 'type-fest';
|
|
|
4
4
|
|
|
5
5
|
export type VariantStyleRules = Record<string, Record<string, ComplexStyleRule | string>>;
|
|
6
6
|
|
|
7
|
-
export type VariantProps<RecipeFn extends RuntimeFn<VariantStyleRules>> =
|
|
7
|
+
export type VariantProps<RecipeFn extends RuntimeFn<VariantStyleRules>> = Exclude<
|
|
8
|
+
Simplify<RecipeVariants<RecipeFn>>,
|
|
9
|
+
undefined | null
|
|
10
|
+
>;
|