@voiceflow/style 1.2.3 → 1.2.5
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 +10 -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__/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/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__/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/package.json +4 -4
- package/src/styled/factory.tsx +1 -1
- package/src/styled/types.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,16 @@
|
|
|
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.2.5](https://github.com/voiceflow/design/compare/@voiceflow/style@1.2.4...@voiceflow/style@1.2.5) (2023-07-05)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* types ([a5e92b0](https://github.com/voiceflow/design/commit/a5e92b0b370331e69d18ebd495e181283b411b3e))
|
|
11
|
+
|
|
12
|
+
## [1.2.4](https://github.com/voiceflow/design/compare/@voiceflow/style@1.2.3...@voiceflow/style@1.2.4) (2023-06-12)
|
|
13
|
+
|
|
14
|
+
**Note:** Version bump only for package @voiceflow/style
|
|
15
|
+
|
|
6
16
|
## [1.2.3](https://github.com/voiceflow/design/compare/@voiceflow/style@1.2.2...@voiceflow/style@1.2.3) (2023-06-06)
|
|
7
17
|
|
|
8
18
|
**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,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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C,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC,CAAC;IAEtF,CAAC,KAAK,SAAS,aAAa,GAAG,IAAI,GAAG,IAAI,EAAE,SAAS,SAAS,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"}
|
|
@@ -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,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,GAAG,IAAI,GAAG,aAAa,EAClD,SAAS,SAAS,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IAExE;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC;IACd;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB;AAED,MAAM,MAAM,iBAAiB,CAAC,KAAK,IAAI,KAAK,SAAS,aAAa,GAC9D;IACE;;OAEG;IACH,KAAK,CAAC,EAAE,UAAU,CAAC,OAAO,gBAAgB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CACvD,GACD,EAAE,CAAC;AAEP,MAAM,MAAM,qBAAqB,CAAC,SAAS,IAAI,SAAS,SAAS,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GACnF;IACE;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;SAAG,C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KAAK,SAAS,aAAa,GAAG,IAAI,GAAG,IAAI,EACzC,SAAS,SAAS,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,GAAG,IAAI,EAEtD,QAAQ,EAAE,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,EACjC,OAAO,CAAC,EAAE,WAAW,EAAE,EACvB,OAAO,CAAC,EAAE,cAAc,CAAC,KAAK,EAAE,SAAS,CAAC,GACzC,eAAe,CAAC,oBAAoB,CAAC,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC,CAAC;IAEtF,CAAC,KAAK,SAAS,aAAa,GAAG,IAAI,GAAG,IAAI,EAAE,SAAS,SAAS,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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voiceflow/style",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.5",
|
|
4
4
|
"exports": {
|
|
5
5
|
".": {
|
|
6
6
|
"types": "./build/cjs/main.d.ts",
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"@testing-library/react": "14.0.0",
|
|
45
45
|
"@types/react": "18.0.35",
|
|
46
46
|
"@vanilla-extract/vite-plugin": "3.8.0",
|
|
47
|
-
"@voiceflow-meta/eslint-config": "1.1.
|
|
48
|
-
"@voiceflow-meta/prettier-config": "1.1.
|
|
47
|
+
"@voiceflow-meta/eslint-config": "1.1.4",
|
|
48
|
+
"@voiceflow-meta/prettier-config": "1.1.1",
|
|
49
49
|
"@voiceflow-meta/typescript-config": "1.0.1",
|
|
50
50
|
"jsdom": "21.1.1",
|
|
51
51
|
"react": "18.2.0",
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"peerDependencies": {
|
|
55
55
|
"react": "^18"
|
|
56
56
|
},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "e611e3f0a8472bdc0265fa70b2606df3facfbb2f"
|
|
58
58
|
}
|
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;
|