@hybr1d-tech/charizard 0.7.53 → 0.7.55

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
@@ -58,8 +58,8 @@ export declare enum ALERT_TYPES {
58
58
  }
59
59
 
60
60
  declare interface AlertPropTypes {
61
- alertType: string;
62
- actionType: string;
61
+ alertType: ALERT_TYPES;
62
+ actionType?: ALERT_ACTION_TYPES;
63
63
  header: React_2.ReactNode;
64
64
  body?: React_2.ReactNode;
65
65
  hide?: boolean;
@@ -384,6 +384,7 @@ declare interface CreatableSelectProps {
384
384
  * - `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.
385
385
  * - `mainContainerClassName` (string, optional): A custom CSS class name to apply to the main container for additional styling.
386
386
  * - `variant` (SELECT_VARIANT, optional): Defines the variant of the select component (e.g., 'default', 'users', 'checkbox', 'tags') to control the styling and behavior.
387
+ * - `showDivider` (boolean, optional): Defines whether to add divider between option list.
387
388
  * - `errorMsg` (string, optional): An error message to display below the select component for validation purposes.
388
389
  * - `onChange` (function): A callback function that is triggered when the selected value(s) change. It receives the selected value(s) and action meta information.
389
390
  * - `customStyles` (StylesConfig<any>): custom styles for react select. it will override default styles
@@ -812,6 +813,8 @@ export declare interface GroupActionProps {
812
813
  hideDivider?: boolean;
813
814
  }
814
815
 
816
+ export declare type HexColor = `#${string}`;
817
+
815
818
  declare interface IconButtonV2TypeProps extends BaseButtonProps {
816
819
  type: BUTTON_V2_TYPE.ICON_LEFT | BUTTON_V2_TYPE.ICON_RIGHT;
817
820
  icon: React_2.ReactNode;
@@ -1778,6 +1781,7 @@ export declare type OptionBase = {
1778
1781
  label: string;
1779
1782
  value: string;
1780
1783
  subLabel?: string;
1784
+ color?: HexColor;
1781
1785
  };
1782
1786
 
1783
1787
  declare type OptionType = {
@@ -2330,6 +2334,7 @@ export declare type SelectSingleValue = SingleValue<Option_2>;
2330
2334
  * - `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.
2331
2335
  * - `mainContainerClassName` (string, optional): A custom CSS class name to apply to the main container for additional styling.
2332
2336
  * - `variant` (SELECT_VARIANT, optional): Defines the variant of the select component (e.g., 'default', 'users', 'checkbox', 'tags') to control the styling and behavior.
2337
+ * - `showDivider` (boolean, optional): Defines whether to add divider between option list.
2333
2338
  * - `errorMsg` (string, optional): An error message to display below the select component for validation purposes.
2334
2339
  * - `onChange` (function): A callback function that is triggered when the selected value(s) change. It receives the selected value(s) and action meta information.
2335
2340
  * - `customStyles` (StylesConfig<any>): custom styles for react select. it will override default styles
@@ -2342,6 +2347,7 @@ export declare interface SelectV2Props extends Props<any, boolean> {
2342
2347
  onChange: (value: string | string[], actionMeta: SelectActionMeta) => void;
2343
2348
  mainContainerClassName?: string;
2344
2349
  variant?: SELECT_VARIANT;
2350
+ showDivider?: boolean;
2345
2351
  errorMsg?: string;
2346
2352
  customStyles?: StylesConfig<any>;
2347
2353
  }