@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.
@@ -1,4 +1,5 @@
1
- import { type ComponentProps, type ElementType, type JSX } from 'react';
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?: keyof ReturnType<R> | undefined, contextOptions?: WithOptions<ComponentProps<T>> | undefined) => T;
21
- withProvider: <T_1 extends ElementType>(Component: T_1, slot?: keyof ReturnType<R> | undefined, providerOptions?: WithOptions<ComponentProps<T_1>> | undefined) => ComponentVariants<T_1, R>;
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>> | undefined) => Record<string, {
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.9.0",
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.37.2",
52
+ "@pandacss/dev": "^0.41.0",
53
53
  "react": "^18.2.0"
54
54
  },
55
55
  "devDependencies": {
56
- "@chromatic-com/storybook": "^1.3.3",
56
+ "@chromatic-com/storybook": "^1.6.1",
57
57
  "@stokelp/styled-system": "workspace:*",
58
- "@storybook/addon-controls": "^8.1.2",
59
- "@storybook/addon-essentials": "^8.1.2",
60
- "@storybook/addon-interactions": "^8.1.2",
61
- "@storybook/addon-links": "^8.1.2",
62
- "@storybook/addon-storysource": "^8.1.2",
63
- "@storybook/blocks": "^8.1.2",
64
- "@storybook/react": "^8.1.2",
65
- "@storybook/react-vite": "^8.1.2",
66
- "@storybook/test": "^8.1.2",
67
- "@types/react": "^18.2.45",
68
- "@vitejs/plugin-react": "^4.2.1",
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.2",
71
- "vite-plugin-dts": "^3.7.0",
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.0.0"
75
+ "@ark-ui/react": "^3.5.0"
76
76
  },
77
77
  "release": {
78
78
  "monorepo": {