@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/hybr1d-ui.js +571 -546
- package/dist/hybr1d-ui.umd.cjs +6 -6
- package/dist/index.d.ts +15 -11
- package/package.json +12 -12
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
|
-
*
|
|
451
|
-
*
|
|
452
|
-
*
|
|
453
|
-
* - `
|
|
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
|
|
456
|
-
* - `onChange` (function):
|
|
457
|
-
* - `
|
|
458
|
-
* - `
|
|
459
|
-
* @returns The
|
|
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.
|
|
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.
|
|
61
|
-
"@storybook/addon-interactions": "^8.6.
|
|
62
|
-
"@storybook/addon-links": "^8.6.
|
|
63
|
-
"@storybook/blocks": "^8.6.
|
|
64
|
-
"@storybook/react": "^8.6.
|
|
65
|
-
"@storybook/react-vite": "^8.6.
|
|
66
|
-
"@storybook/test": "^8.6.
|
|
67
|
-
"@types/node": "^22.15.
|
|
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.
|
|
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.
|
|
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.
|
|
78
|
+
"vite-plugin-dts": "4.5.4",
|
|
79
79
|
"vite-plugin-libcss": "^1.1.1"
|
|
80
80
|
},
|
|
81
81
|
"publishConfig": {
|