@hybr1d-tech/charizard 2.3.1 → 2.3.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
@@ -4,6 +4,7 @@ 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';
7
8
  import { HTMLInputTypeAttribute } from 'react';
8
9
  import { Id } from 'react-toastify';
9
10
  import { JSX } from 'react/jsx-runtime';
@@ -446,17 +447,19 @@ declare interface CreatableSelectProps {
446
447
  }
447
448
 
448
449
  /**
449
- * A custom select component based on react-select.
450
- * @param props - The properties for the SelectV2 component:
451
- * - `options` (Array<Option>): An array of options to be displayed in the dropdown. Each option can include a label, value, and optional profile image or icon.
452
- * - `mainContainerClassName` (string, optional): A custom CSS class name to apply to the main container for additional styling.
453
- * - `variant` (SELECT_VARIANT, optional): Defines the variant of the select component (e.g., 'default', 'users', 'checkbox', 'tags') to control the styling and behavior.
450
+ * A custom creatable select component based on react-select/creatable.
451
+ * Allows users to create new options when they don't exist in the predefined options list.
452
+ *
453
+ * @param props - The properties for the CreatableSelectV2 component:
454
+ * - `options` (Array<Option>): An array of options to be displayed in the dropdown.
455
+ * - `mainContainerClassName` (string, optional): A custom CSS class name for the main container.
456
+ * - `variant` (SELECT_VARIANT, optional): Defines the variant of the select component.
454
457
  * - `showDivider` (boolean, optional): Defines whether to add divider between option list.
455
- * - `errorMsg` (string, optional): An error message to display below the select component for validation purposes.
456
- * - `onChange` (function): A callback function that is triggered when the selected value(s) change. It receives the selected value(s) and action meta information.
457
- * - `customStyles` (StylesConfig<any>): custom styles for react select. it will override default styles
458
- * - `onCreateOption` (Promise<void> | void): function to create new option which is not in the list
459
- * @returns The SelectV2 component.
458
+ * - `errorMsg` (string, optional): An error message to display below the select component.
459
+ * - `onChange` (function): Callback function triggered when selected value(s) change.
460
+ * - `onCreateOption` (function): Callback function triggered when a new option is created.
461
+ * - `customStyles` (StylesConfig<any>): Custom styles for react select.
462
+ * @returns The CreatableSelectV2 component.
460
463
  */
461
464
  export declare function CreatableSelectV2(props: CreatableSelectV2Props): JSX.Element;
462
465
 
@@ -1903,7 +1906,7 @@ declare type ModalProps = {
1903
1906
  * @param {ModalV2Props} props - The props for the ModalV2 component.
1904
1907
  * @returns {JSX.Element} The rendered modal component.
1905
1908
  */
1906
- export declare function ModalV2({ isOpen, title, subTitle, trigger, children, footerButtons, showBackdrop, onClose, customModalClasses, }: ModalV2Props): JSX.Element;
1909
+ export declare function ModalV2({ isOpen, title, subTitle, trigger, children, footerButtons, showBackdrop, onClose, customModalClasses, onCustomInteractOutside, }: ModalV2Props): JSX.Element;
1907
1910
 
1908
1911
  declare interface ModalV2Props {
1909
1912
  /** Indicates if the modal is open. */
@@ -1923,6 +1926,7 @@ declare interface ModalV2Props {
1923
1926
  /** Indicates whether to show a backdrop behind the modal. */
1924
1927
  showBackdrop?: boolean;
1925
1928
  customModalClasses?: string;
1929
+ onCustomInteractOutside?: (event: dialog.InteractOutsideEvent) => void;
1926
1930
  }
1927
1931
 
1928
1932
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hybr1d-tech/charizard",
3
- "version": "2.3.1",
3
+ "version": "2.3.3",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -57,25 +57,25 @@
57
57
  "zustand": "^5.0.4"
58
58
  },
59
59
  "devDependencies": {
60
- "@storybook/addon-essentials": "^8.6.12",
61
- "@storybook/addon-interactions": "^8.6.12",
62
- "@storybook/addon-links": "^8.6.12",
63
- "@storybook/blocks": "^8.6.12",
64
- "@storybook/react": "^8.6.12",
65
- "@storybook/react-vite": "^8.6.12",
66
- "@storybook/test": "^8.6.12",
67
- "@types/node": "^22.15.17",
60
+ "@storybook/addon-essentials": "^8.6.14",
61
+ "@storybook/addon-interactions": "^8.6.14",
62
+ "@storybook/addon-links": "^8.6.14",
63
+ "@storybook/blocks": "^8.6.14",
64
+ "@storybook/react": "^8.6.14",
65
+ "@storybook/react-vite": "^8.6.14",
66
+ "@storybook/test": "^8.6.14",
67
+ "@types/node": "^22.15.19",
68
68
  "@types/react": "^19.1.4",
69
- "@types/react-dom": "^19.1.4",
69
+ "@types/react-dom": "^19.1.5",
70
70
  "@vitejs/plugin-react-swc": "^3.9.0",
71
71
  "axios": "^1.9.0",
72
72
  "globals": "^16.1.0",
73
- "storybook": "^8.6.12",
73
+ "storybook": "^8.6.14",
74
74
  "storybook-css-modules-preset": "^1.1.1",
75
75
  "typescript": "5.8.3",
76
76
  "vite": "^6.3.5",
77
77
  "vite-plugin-checker": "^0.9.3",
78
- "vite-plugin-dts": "4.5.3",
78
+ "vite-plugin-dts": "4.5.4",
79
79
  "vite-plugin-libcss": "^1.1.1"
80
80
  },
81
81
  "publishConfig": {