@hybr1d-tech/charizard 1.1.129 → 2.0.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/index.d.ts CHANGED
@@ -4,7 +4,6 @@ import { ClassNames } from 'react-day-picker';
4
4
  import { ColumnPinningState } from '@tanstack/react-table';
5
5
  import { DateRange } from 'react-day-picker';
6
6
  import { default as default_2 } from 'react';
7
- import * as dialog from '@zag-js/dialog';
8
7
  import { HTMLInputTypeAttribute } from 'react';
9
8
  import { Id } from 'react-toastify';
10
9
  import { JSX as JSX_2 } from 'react/jsx-runtime';
@@ -165,6 +164,7 @@ declare interface BaseButtonProps {
165
164
  customStyles?: React_2.CSSProperties;
166
165
  className?: string;
167
166
  btnType?: 'button' | 'reset' | 'submit';
167
+ zapTriggerProps?: any;
168
168
  }
169
169
 
170
170
  /**
@@ -198,7 +198,7 @@ export declare const buildFilterQuery: (queryFilters: Record<string, any>, exclu
198
198
 
199
199
  export declare const buildTableQuery: (query: TBaseQuery) => Record<string, any>;
200
200
 
201
- export declare function Button({ children, variant, disabled, onClick, type, size, customStyles, className, icon, btnType, }: ButtonProps): JSX_2.Element;
201
+ export declare function Button({ children, variant, disabled, onClick, type, size, customStyles, className, icon, btnType, zapTriggerProps, }: ButtonProps): JSX_2.Element;
202
202
 
203
203
  export declare namespace Button {
204
204
  var GroupAction: React_2.ForwardRefExoticComponent<GroupActionProps & React_2.RefAttributes<unknown>>;
@@ -1874,7 +1874,7 @@ declare type ModalProps = {
1874
1874
  /**
1875
1875
  * Machine Props
1876
1876
  */
1877
- machineProps?: dialog.Context | {};
1877
+ machineProps?: any | {};
1878
1878
  };
1879
1879
 
1880
1880
  /**
@@ -1883,7 +1883,7 @@ declare type ModalProps = {
1883
1883
  * @param {ModalV2Props} props - The props for the ModalV2 component.
1884
1884
  * @returns {JSX.Element} The rendered modal component.
1885
1885
  */
1886
- export declare function ModalV2({ isOpen, title, subTitle, trigger, children, footerButtons, showBackdrop, onClose, customModalClasses, }: ModalV2Props): JSX_2.Element;
1886
+ export declare function ModalV2({ isOpen, title, subTitle, trigger, children, footerButtons, showBackdrop, customModalClasses, }: ModalV2Props): JSX_2.Element;
1887
1887
 
1888
1888
  /**
1889
1889
  * Props for the ModalV2 component.
@@ -2242,7 +2242,7 @@ declare interface RadioGroupProps {
2242
2242
  * @param value
2243
2243
  * value of selected radio
2244
2244
  * */
2245
- onChange: (value: string) => void;
2245
+ onChange: (value: string | null) => void;
2246
2246
  /**
2247
2247
  * if radio group is required
2248
2248
  * */
@@ -2288,7 +2288,7 @@ declare interface RadioGroupV2Props {
2288
2288
  * @param value
2289
2289
  * value of selected radio
2290
2290
  * */
2291
- onChange: (value: string) => void;
2291
+ onChange: (value: string | null) => void;
2292
2292
  /**
2293
2293
  * if radio group is required
2294
2294
  * */
@@ -2368,7 +2368,7 @@ declare interface SegmentedControlProps {
2368
2368
  * handle on change
2369
2369
  * use this if you are controlling the behavior of segmented control from an external entity
2370
2370
  */
2371
- handleOnChange?: (value: string) => void;
2371
+ handleOnChange?: (value: string | null) => void;
2372
2372
  }
2373
2373
 
2374
2374
  export declare function Select({ options, onChange, name, id, className, placeholder, selectStyles, defaultValue, formatGroupLabel, customContainerStyles, customErrorStyles, menuPlacement, errorMsg, extraprops, isDisabled, isSearchable, isMulti, isClearable, customValue, CustomDropdownIndicator, }: SelectProps): JSX_2.Element;
@@ -2715,7 +2715,7 @@ declare type SwitchProps = {
2715
2715
  */
2716
2716
  export declare function SwitchV2({ children, errorMsg, info, tooltipProps, ...props }: SwitchV2Props): JSX_2.Element;
2717
2717
 
2718
- declare interface SwitchV2Props extends Omit<zagSwitch.Context, 'id'> {
2718
+ declare interface SwitchV2Props extends Omit<zagSwitch.Props, 'id'> {
2719
2719
  children?: React_2.ReactNode;
2720
2720
  errorMsg?: string;
2721
2721
  info?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hybr1d-tech/charizard",
3
- "version": "1.1.129",
3
+ "version": "2.0.1",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -25,26 +25,26 @@
25
25
  "@dnd-kit/utilities": "^3.2.2",
26
26
  "@popperjs/core": "^2.11.8",
27
27
  "@tanstack/react-table": "^8.21.2",
28
- "@zag-js/accordion": "^0.82.1",
29
- "@zag-js/checkbox": "^0.82.1",
30
- "@zag-js/color-picker": "^0.82.1",
31
- "@zag-js/combobox": "^0.82.1",
32
- "@zag-js/dialog": "^0.82.1",
33
- "@zag-js/menu": "^0.82.1",
34
- "@zag-js/pagination": "^0.82.1",
35
- "@zag-js/popover": "^0.82.1",
36
- "@zag-js/popper": "^0.82.1",
37
- "@zag-js/radio-group": "^0.82.1",
38
- "@zag-js/react": "^0.82.1",
39
- "@zag-js/select": "^0.82.1",
40
- "@zag-js/switch": "^0.82.1",
41
- "@zag-js/tabs": "^0.82.1",
42
- "@zag-js/tooltip": "^0.82.1",
28
+ "@zag-js/accordion": "^1.5.0",
29
+ "@zag-js/checkbox": "^1.5.0",
30
+ "@zag-js/color-picker": "^1.5.0",
31
+ "@zag-js/combobox": "^1.5.0",
32
+ "@zag-js/dialog": "^1.5.0",
33
+ "@zag-js/menu": "^1.5.0",
34
+ "@zag-js/pagination": "^1.5.0",
35
+ "@zag-js/popover": "^1.5.0",
36
+ "@zag-js/popper": "^1.5.0",
37
+ "@zag-js/radio-group": "^1.5.0",
38
+ "@zag-js/react": "^1.5.0",
39
+ "@zag-js/select": "^1.5.0",
40
+ "@zag-js/switch": "^1.5.0",
41
+ "@zag-js/tabs": "^1.5.0",
42
+ "@zag-js/tooltip": "^1.5.0",
43
43
  "clsx": "^2.1.1",
44
44
  "date-fns": "^4.1.0",
45
45
  "react": "^18.3.1",
46
46
  "react-country-flag": "^3.1.0",
47
- "react-day-picker": "^9.5.1",
47
+ "react-day-picker": "^9.6.3",
48
48
  "react-dom": "^18.3.1",
49
49
  "react-infinite-scroll-component": "^6.1.0",
50
50
  "react-inlinesvg": "^4.2.0",
@@ -57,24 +57,24 @@
57
57
  "zustand": "^5.0.3"
58
58
  },
59
59
  "devDependencies": {
60
- "@storybook/addon-essentials": "^8.6.4",
61
- "@storybook/addon-interactions": "^8.6.4",
62
- "@storybook/addon-links": "^8.6.4",
63
- "@storybook/blocks": "^8.6.4",
64
- "@storybook/react": "^8.6.4",
65
- "@storybook/react-vite": "^8.6.4",
66
- "@storybook/test": "^8.6.4",
67
- "@types/node": "^22.13.9",
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",
68
68
  "@types/react": "^18.3.13",
69
69
  "@types/react-dom": "^18.3.1",
70
- "@vitejs/plugin-react-swc": "^3.8.0",
71
- "axios": "^1.8.1",
70
+ "@vitejs/plugin-react-swc": "^3.8.1",
71
+ "axios": "^1.8.4",
72
72
  "globals": "^16.0.0",
73
- "storybook": "^8.6.4",
73
+ "storybook": "^8.6.8",
74
74
  "storybook-css-modules-preset": "^1.1.1",
75
75
  "typescript": "5.8.2",
76
- "vite": "^6.2.0",
77
- "vite-plugin-checker": "^0.9.0",
76
+ "vite": "^6.2.2",
77
+ "vite-plugin-checker": "^0.9.1",
78
78
  "vite-plugin-dts": "4.5.3",
79
79
  "vite-plugin-libcss": "^1.1.1"
80
80
  },