@hybr1d-tech/charizard 0.7.158 → 0.7.159

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 { DateRange } from 'react-day-picker';
@@ -26,14 +27,26 @@ import { UseBoundStore } from 'zustand';
26
27
  import * as zagSwitch from '@zag-js/switch';
27
28
 
28
29
  export declare const Accordion: {
29
- ({ children, defaultActiveKey }: AccordionProps): JSX_2.Element;
30
- Header({ eventKey, children, customStyle }: HeaderProps): JSX_2.Element;
31
- Collapse({ eventKey, children, customStyle }: CollapseProps): JSX_2.Element;
30
+ ({ children, defaultActiveKey, customClasses, customStyle, isMulti, }: AccordionProps): JSX_2.Element;
31
+ Item({ eventKey, children }: ItemProps): JSX_2.Element;
32
+ Header({ eventKey, children, customClasses, customStyle }: HeaderProps): JSX_2.Element;
33
+ Collapse({ eventKey, children, customClasses, customStyle }: CollapseProps): JSX_2.Element;
32
34
  };
33
35
 
36
+ declare interface AccordionContextValue {
37
+ api: accordion.Api<any>;
38
+ state: any;
39
+ send: (event: any) => void;
40
+ activeEventKey: string[];
41
+ setActiveEventKey: (key: string[]) => void;
42
+ }
43
+
34
44
  declare interface AccordionProps {
35
- children: React_2.ReactNode;
45
+ children: React.ReactNode;
36
46
  defaultActiveKey?: string;
47
+ customClasses?: string;
48
+ customStyle?: React.CSSProperties;
49
+ isMulti?: boolean;
37
50
  }
38
51
 
39
52
  export declare const ActionsDropdown: React_2.ForwardRefExoticComponent<ActionsDropdownProps & React_2.RefAttributes<unknown>>;
@@ -300,8 +313,9 @@ export declare const clipboard: (text?: string, showToast?: boolean) => Promise<
300
313
 
301
314
  declare interface CollapseProps {
302
315
  eventKey: string;
303
- children: React_2.ReactNode;
304
- customStyle?: React_2.CSSProperties;
316
+ children: React.ReactNode;
317
+ customClasses?: string;
318
+ customStyle?: React.CSSProperties;
305
319
  }
306
320
 
307
321
  export declare function ColorPicker({ name, label, errorMsg, required, onChange, defaultColor, }: ColorPickerProps): JSX_2.Element;
@@ -949,8 +963,9 @@ export declare interface GroupActionProps {
949
963
 
950
964
  declare interface HeaderProps {
951
965
  eventKey: string;
952
- children: React_2.ReactNode;
953
- customStyle?: React_2.CSSProperties;
966
+ children: React.ReactNode;
967
+ customClasses?: string;
968
+ customStyle?: React.CSSProperties;
954
969
  }
955
970
 
956
971
  export declare type HexColor = `#${string}`;
@@ -1652,6 +1667,11 @@ declare interface ITask {
1652
1667
  leaveFrom?: string;
1653
1668
  }
1654
1669
 
1670
+ declare interface ItemProps {
1671
+ eventKey: string;
1672
+ children: React.ReactNode;
1673
+ }
1674
+
1655
1675
  declare type IToastOptions = ToastOptions & CommonOptions;
1656
1676
 
1657
1677
  /**
@@ -3337,6 +3357,8 @@ declare interface UploadProps {
3337
3357
  variant?: string;
3338
3358
  }
3339
3359
 
3360
+ export declare const useAccordionStore: UseBoundStore<StoreApi<AccordionContextValue>>;
3361
+
3340
3362
  export declare const useBreadcrumbs: (breadcrumbs: Breadcrumb_2[]) => void;
3341
3363
 
3342
3364
  export declare const useBreadcrumbsStore: UseBoundStore<StoreApi<BreadcrumbsStore>>;