@stokelp/ui 1.9.0 → 1.10.1
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/dist/components/accordion/Accordion.d.ts +5 -4
- package/dist/components/box/Box.d.ts +3 -3
- package/dist/components/button/Button.d.ts +3 -2
- package/dist/components/checkbox/Checkbox.d.ts +5 -4
- package/dist/components/date-picker/DatePicker.d.ts +4 -3
- package/dist/components/drawer/Drawer.d.ts +16 -22
- package/dist/components/form/FormControl.d.ts +3 -2
- package/dist/components/form/FormHelperText.d.ts +3 -2
- package/dist/components/form/FormLabel.d.ts +3 -2
- package/dist/components/heading/Heading.d.ts +4 -4
- package/dist/components/input/Input.d.ts +3 -2
- package/dist/components/input/InputAddon.d.ts +7 -7
- package/dist/components/input/InputGroup.d.ts +3 -2
- package/dist/components/select/Select.d.ts +4 -3
- package/dist/components/switch/Switch.d.ts +5 -4
- package/dist/components/tabs/Tabs.d.ts +5 -4
- package/dist/components/tag/Tag.d.ts +4 -3
- package/dist/components/text/Text.d.ts +4 -4
- package/dist/components/textarea/Textarea.d.ts +7 -7
- package/dist/index.d.ts +1 -0
- package/dist/shared/ConditionalWrapper.d.ts +2 -1
- package/dist/style.css +1 -1
- package/dist/theme/utilities.d.ts +2 -1
- package/dist/ui.cjs +3 -3
- package/dist/ui.cjs.map +1 -1
- package/dist/ui.js +305 -1060
- package/dist/ui.js.map +1 -1
- package/dist/utils/slots.d.ts +4 -3
- package/dist/utils/storybook.d.ts +1 -1
- package/package.json +17 -17
package/dist/utils/slots.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComponentProps, ElementType, JSX } from 'react';
|
|
2
|
+
|
|
2
3
|
type GenericProps = Record<string, unknown>;
|
|
3
4
|
type StyleRecipe = {
|
|
4
5
|
(props?: GenericProps): Record<string, string>;
|
|
@@ -17,7 +18,7 @@ type WithOptions<Props extends GenericProps> = {
|
|
|
17
18
|
defaultProps?: Partial<Props>;
|
|
18
19
|
};
|
|
19
20
|
export declare const createStyleContext: <R extends StyleRecipe>(recipe: R, options?: Options) => {
|
|
20
|
-
withContext: <T extends ElementType>(Component: T, slot?:
|
|
21
|
-
withProvider: <
|
|
21
|
+
withContext: <T extends ElementType>(Component: T, slot?: StyleSlot<R>, contextOptions?: WithOptions<ComponentProps<T>>) => T;
|
|
22
|
+
withProvider: <T extends ElementType>(Component: T, slot?: StyleSlot<R>, providerOptions?: WithOptions<ComponentProps<T>>) => ComponentVariants<T, R>;
|
|
22
23
|
};
|
|
23
24
|
export {};
|
|
@@ -5,7 +5,7 @@ type StyleRecipe = {
|
|
|
5
5
|
type ControlOption = {
|
|
6
6
|
type: 'radio' | 'inline-radio' | 'select' | 'boolean';
|
|
7
7
|
};
|
|
8
|
-
export declare const generatePandaVariantsArgTypes: <R extends StyleRecipe>(recipe: R, options?: Partial<Record<keyof R["variantMap"], ControlOption>>
|
|
8
|
+
export declare const generatePandaVariantsArgTypes: <R extends StyleRecipe>(recipe: R, options?: Partial<Record<keyof R["variantMap"], ControlOption>>) => Record<string, {
|
|
9
9
|
options: string[];
|
|
10
10
|
control: ControlOption;
|
|
11
11
|
}>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stokelp/ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.1",
|
|
4
4
|
"description": "Stokelp UI React",
|
|
5
5
|
"main": "dist/ui.cjs",
|
|
6
6
|
"module": "dist/ui.js",
|
|
@@ -49,30 +49,30 @@
|
|
|
49
49
|
"chromatic": "chromatic --exit-zero-on-changes"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
|
-
"@pandacss/dev": "^0.
|
|
52
|
+
"@pandacss/dev": "^0.41.0",
|
|
53
53
|
"react": "^18.2.0"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@chromatic-com/storybook": "^1.
|
|
56
|
+
"@chromatic-com/storybook": "^1.6.1",
|
|
57
57
|
"@stokelp/styled-system": "workspace:*",
|
|
58
|
-
"@storybook/addon-controls": "^8.1.
|
|
59
|
-
"@storybook/addon-essentials": "^8.1.
|
|
60
|
-
"@storybook/addon-interactions": "^8.1.
|
|
61
|
-
"@storybook/addon-links": "^8.1.
|
|
62
|
-
"@storybook/addon-storysource": "^8.1.
|
|
63
|
-
"@storybook/blocks": "^8.1.
|
|
64
|
-
"@storybook/react": "^8.1.
|
|
65
|
-
"@storybook/react-vite": "^8.1.
|
|
66
|
-
"@storybook/test": "^8.1.
|
|
67
|
-
"@types/react": "^18.
|
|
68
|
-
"@vitejs/plugin-react": "^4.
|
|
58
|
+
"@storybook/addon-controls": "^8.1.11",
|
|
59
|
+
"@storybook/addon-essentials": "^8.1.11",
|
|
60
|
+
"@storybook/addon-interactions": "^8.1.11",
|
|
61
|
+
"@storybook/addon-links": "^8.1.11",
|
|
62
|
+
"@storybook/addon-storysource": "^8.1.11",
|
|
63
|
+
"@storybook/blocks": "^8.1.11",
|
|
64
|
+
"@storybook/react": "^8.1.11",
|
|
65
|
+
"@storybook/react-vite": "^8.1.11",
|
|
66
|
+
"@storybook/test": "^8.1.11",
|
|
67
|
+
"@types/react": "^18.3.3",
|
|
68
|
+
"@vitejs/plugin-react": "^4.3.1",
|
|
69
69
|
"prop-types": "^15.8.1",
|
|
70
|
-
"storybook": "^8.1.
|
|
71
|
-
"vite-plugin-dts": "^3.
|
|
70
|
+
"storybook": "^8.1.11",
|
|
71
|
+
"vite-plugin-dts": "^3.9.1",
|
|
72
72
|
"vite-tsconfig-paths": "^4.3.2"
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
75
|
-
"@ark-ui/react": "^3.
|
|
75
|
+
"@ark-ui/react": "^3.5.0"
|
|
76
76
|
},
|
|
77
77
|
"release": {
|
|
78
78
|
"monorepo": {
|