@hybr1d-tech/charizard 0.6.83 → 0.6.85

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.
@@ -0,0 +1,15 @@
1
+ import { CreatableSelectV2Props } from './types';
2
+
3
+ /**
4
+ * A custom select component based on react-select.
5
+ * @param props - The properties for the SelectV2 component:
6
+ * - `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.
7
+ * - `mainContainerClassName` (string, optional): A custom CSS class name to apply to the main container for additional styling.
8
+ * - `variant` (SELECT_VARIANT, optional): Defines the variant of the select component (e.g., 'default', 'users', 'checkbox', 'tags') to control the styling and behavior.
9
+ * - `errorMsg` (string, optional): An error message to display below the select component for validation purposes.
10
+ * - `onChange` (function): A callback function that is triggered when the selected value(s) change. It receives the selected value(s) and action meta information.
11
+ * - `customStyles` (StylesConfig<any>): custom styles for react select. it will override default styles
12
+ * - `onCreateOption` (Promise<void> | void): function to create new option which is not in the list
13
+ * @returns The SelectV2 component.
14
+ */
15
+ export declare function CreatableSelectV2(props: CreatableSelectV2Props): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,3 @@
1
1
  export * from './Select';
2
+ export * from './CreatableSelect';
2
3
  export * from './types';
@@ -32,3 +32,6 @@ export interface SelectV2Props extends ReactSelectProps<any, boolean> {
32
32
  errorMsg?: string;
33
33
  customStyles?: StylesConfig<any>;
34
34
  }
35
+ export interface CreatableSelectV2Props extends SelectV2Props {
36
+ onCreateOption: (value: string) => Promise<void> | void;
37
+ }