@voiceflow/style 1.2.5 → 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 +6 -0
- 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/types.d.ts +1 -1
- package/build/cjs/types.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/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/types.ts +4 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
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
|
+
|
|
6
12
|
## [1.2.5](https://github.com/voiceflow/design/compare/@voiceflow/style@1.2.4...@voiceflow/style@1.2.5) (2023-07-05)
|
|
7
13
|
|
|
8
14
|
### Bug Fixes
|
|
@@ -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"}
|
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,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"}
|
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/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
|
+
>;
|