@hybr1d-tech/charizard 2.0.2 → 2.0.3

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/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import * as accordion from '@zag-js/accordion';
1
2
  import { ActionMeta } from 'react-select';
2
3
  import { ClassNames } from 'react-day-picker';
3
4
  import { ColumnPinningState } from '@tanstack/react-table';
@@ -28,11 +29,19 @@ import * as zagSwitch from '@zag-js/switch';
28
29
 
29
30
  export declare const Accordion: {
30
31
  ({ children, defaultActiveKey, customClasses, customStyle, isMulti, isOpenAll, allEventKeys, }: AccordionProps): JSX_2.Element;
31
- Item({ eventKey, children }: ItemProps): JSX_2.Element;
32
- Header({ eventKey, children, customClasses, customStyle }: HeaderProps): JSX_2.Element | null;
32
+ Item({ eventKey, children }: ItemProps): JSX_2.Element | undefined;
33
+ Header({ eventKey, children, customClasses, customStyle }: HeaderProps): JSX_2.Element | undefined;
33
34
  Collapse({ eventKey, children, customClasses, customStyle }: CollapseProps): JSX_2.Element;
34
35
  };
35
36
 
37
+ declare interface AccordionContextValue {
38
+ api: accordion.Api<any>;
39
+ state: any;
40
+ send: (event: any) => void;
41
+ activeEventKey: string[];
42
+ setActiveEventKey: (key: string[]) => void;
43
+ }
44
+
36
45
  declare interface AccordionProps {
37
46
  children: React.ReactNode;
38
47
  defaultActiveKey?: string;
@@ -3295,6 +3304,8 @@ declare interface UploadProps {
3295
3304
  variant?: string;
3296
3305
  }
3297
3306
 
3307
+ export declare const useAccordionStore: UseBoundStore<StoreApi<AccordionContextValue>>;
3308
+
3298
3309
  export declare const useBreadcrumbs: (breadcrumbs: Breadcrumb[]) => void;
3299
3310
 
3300
3311
  export declare const useBreadcrumbsStore: UseBoundStore<StoreApi<BreadcrumbsStore>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hybr1d-tech/charizard",
3
- "version": "2.0.2",
3
+ "version": "2.0.3",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -57,23 +57,23 @@
57
57
  "zustand": "^5.0.3"
58
58
  },
59
59
  "devDependencies": {
60
- "@storybook/addon-essentials": "^8.6.8",
61
- "@storybook/addon-interactions": "^8.6.8",
62
- "@storybook/addon-links": "^8.6.8",
63
- "@storybook/blocks": "^8.6.8",
64
- "@storybook/react": "^8.6.8",
65
- "@storybook/react-vite": "^8.6.8",
66
- "@storybook/test": "^8.6.8",
67
- "@types/node": "^22.13.11",
60
+ "@storybook/addon-essentials": "^8.6.9",
61
+ "@storybook/addon-interactions": "^8.6.9",
62
+ "@storybook/addon-links": "^8.6.9",
63
+ "@storybook/blocks": "^8.6.9",
64
+ "@storybook/react": "^8.6.9",
65
+ "@storybook/react-vite": "^8.6.9",
66
+ "@storybook/test": "^8.6.9",
67
+ "@types/node": "^22.13.13",
68
68
  "@types/react": "^18.3.13",
69
69
  "@types/react-dom": "^18.3.1",
70
70
  "@vitejs/plugin-react-swc": "^3.8.1",
71
71
  "axios": "^1.8.4",
72
72
  "globals": "^16.0.0",
73
- "storybook": "^8.6.8",
73
+ "storybook": "^8.6.9",
74
74
  "storybook-css-modules-preset": "^1.1.1",
75
75
  "typescript": "5.8.2",
76
- "vite": "^6.2.2",
76
+ "vite": "^6.2.3",
77
77
  "vite-plugin-checker": "^0.9.1",
78
78
  "vite-plugin-dts": "4.5.3",
79
79
  "vite-plugin-libcss": "^1.1.1"