@hybr1d-tech/charizard 0.7.82 → 0.7.83
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 +6465 -6220
- package/dist/hybr1d-ui.umd.cjs +14 -14
- package/dist/index.d.ts +55 -13
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -421,6 +421,8 @@ export declare interface CreatableSelectV2Props extends SelectV2Props {
|
|
|
421
421
|
onCreateOption: (value: string) => Promise<void> | void;
|
|
422
422
|
}
|
|
423
423
|
|
|
424
|
+
declare type DateConfig = Partial<DateRangePickerProps>;
|
|
425
|
+
|
|
424
426
|
export declare function DatePicker({ value, onChange, mode, variant, displayDateFormat, errorMsg, disableDatepicker, disabled, buttonVariant, customContainerStyles, popoverConfig, isError, showOutsideDays, ...props }: DatePickerProps): JSX_2.Element;
|
|
425
427
|
|
|
426
428
|
declare interface DatePickerProps extends PropsSingle {
|
|
@@ -448,7 +450,7 @@ declare interface DatePickerProps extends PropsSingle {
|
|
|
448
450
|
disabled?: Matcher | Matcher[];
|
|
449
451
|
}
|
|
450
452
|
|
|
451
|
-
export declare function DateRangePicker({ value, onChange, mode, datePickerClassNames, showQuickSelect, disabled, customDisable, disableDatepicker, disableWeekends, showOutsideDays, errorMsg, customInputContentStyles, ...props }: DateRangePickerProps): JSX_2.Element;
|
|
453
|
+
export declare function DateRangePicker({ value, onChange, mode, datePickerClassNames, showQuickSelect, disabled, customDisable, disableDatepicker, disableWeekends, showOutsideDays, errorMsg, customInputContentStyles, customClasses, size, onReset, ...props }: DateRangePickerProps): JSX_2.Element;
|
|
452
454
|
|
|
453
455
|
declare interface DateRangePickerProps extends PropsRange {
|
|
454
456
|
value: DateRange;
|
|
@@ -464,18 +466,19 @@ declare interface DateRangePickerProps extends PropsRange {
|
|
|
464
466
|
placement?: Placement;
|
|
465
467
|
customInputContentStyles?: React_2.CSSProperties;
|
|
466
468
|
showOutsideDays?: boolean;
|
|
469
|
+
onReset?: () => void;
|
|
470
|
+
customClasses?: {
|
|
471
|
+
contentContainer?: string;
|
|
472
|
+
content?: string;
|
|
473
|
+
dateIcon?: string;
|
|
474
|
+
};
|
|
475
|
+
size?: BUTTON_V2_SIZE;
|
|
467
476
|
}
|
|
468
477
|
|
|
469
|
-
|
|
470
|
-
variant?: BUTTON_V2_VARIANT;
|
|
471
|
-
onClick: () => void;
|
|
478
|
+
declare type DialogFooterButtons = Array<Omit<ButtonV2Props, 'children'> & {
|
|
472
479
|
btnText: string;
|
|
473
|
-
btnType?: 'button' | 'submit' | 'reset';
|
|
474
|
-
btnSize?: BUTTON_V2_SIZE;
|
|
475
|
-
disabled?: boolean;
|
|
476
480
|
isLoading?: boolean;
|
|
477
481
|
loadingText?: string;
|
|
478
|
-
type?: BUTTON_V2_TYPE;
|
|
479
482
|
}>;
|
|
480
483
|
|
|
481
484
|
declare enum DOCS_TYPE {
|
|
@@ -730,6 +733,11 @@ declare interface ErrorsPageProps {
|
|
|
730
733
|
homeRoute?: string;
|
|
731
734
|
}
|
|
732
735
|
|
|
736
|
+
declare enum FILTER_TYPE {
|
|
737
|
+
DATE_RANGE = "date_range",
|
|
738
|
+
MENU = "menu"
|
|
739
|
+
}
|
|
740
|
+
|
|
733
741
|
/**
|
|
734
742
|
* @param filters comes from an api, must follow the type definition strictly
|
|
735
743
|
* @param isLoading is fetching from api
|
|
@@ -788,17 +796,14 @@ declare type FilterOptions_2 = {
|
|
|
788
796
|
id: string;
|
|
789
797
|
name: string;
|
|
790
798
|
key: string;
|
|
799
|
+
type?: FILTER_TYPE;
|
|
791
800
|
options: {
|
|
792
801
|
name: string;
|
|
793
802
|
value: string;
|
|
794
803
|
country_code?: string;
|
|
795
804
|
customName?: string;
|
|
796
805
|
}[];
|
|
797
|
-
config?:
|
|
798
|
-
hideSearch?: boolean;
|
|
799
|
-
placeholder?: string;
|
|
800
|
-
type?: string;
|
|
801
|
-
};
|
|
806
|
+
config?: MenuConfig | DateConfig;
|
|
802
807
|
};
|
|
803
808
|
|
|
804
809
|
declare type FooterButtons = Array<{
|
|
@@ -1631,6 +1636,12 @@ export declare interface MenuButtonProps {
|
|
|
1631
1636
|
isTable?: boolean;
|
|
1632
1637
|
}
|
|
1633
1638
|
|
|
1639
|
+
declare type MenuConfig = {
|
|
1640
|
+
hideSearch?: boolean;
|
|
1641
|
+
placeholder?: string;
|
|
1642
|
+
type?: string;
|
|
1643
|
+
};
|
|
1644
|
+
|
|
1634
1645
|
export declare type MenuItem = {
|
|
1635
1646
|
label: string;
|
|
1636
1647
|
iconSrc?: string;
|
|
@@ -2826,6 +2837,37 @@ declare interface TextareaV2Props extends React.TextareaHTMLAttributes<HTMLTextA
|
|
|
2826
2837
|
/* Excluded from this release type: containerStyles */
|
|
2827
2838
|
}
|
|
2828
2839
|
|
|
2840
|
+
declare enum TIME_PICKER_FORMAT {
|
|
2841
|
+
STANDARD = "12-hours",
|
|
2842
|
+
DUAL = "24-hours"
|
|
2843
|
+
}
|
|
2844
|
+
|
|
2845
|
+
/**
|
|
2846
|
+
* TimePicker component for selecting time with optional seconds and 12/24 hour formats
|
|
2847
|
+
* @param {TimePickerProps} props - Props for TimePicker component
|
|
2848
|
+
* @returns {JSX.Element} TimePicker component
|
|
2849
|
+
*/
|
|
2850
|
+
export declare function TimePicker({ timestamp, onTimeChange, format, enableSeconds, }: TimePickerProps): JSX_2.Element;
|
|
2851
|
+
|
|
2852
|
+
export declare namespace TimePicker {
|
|
2853
|
+
var displayName: string;
|
|
2854
|
+
}
|
|
2855
|
+
|
|
2856
|
+
/**
|
|
2857
|
+
* TimePicker component props interface
|
|
2858
|
+
* @typedef {Object} TimePickerProps@typedef {Object} TimePickerProps
|
|
2859
|
+
* @property {function} onTimeChange - Callback to handle time change
|
|
2860
|
+
* @property {number} [timestamp] - Timestamp value (optional)
|
|
2861
|
+
* @property {TIME_PICKER_FORMAT} [format] - The time format, either 12-hour or 24-hour
|
|
2862
|
+
* @property {boolean} [enableSeconds=false] - Whether to enable seconds selection
|
|
2863
|
+
*/
|
|
2864
|
+
declare interface TimePickerProps {
|
|
2865
|
+
onTimeChange: (timestamp: number) => void;
|
|
2866
|
+
timestamp?: number;
|
|
2867
|
+
format?: TIME_PICKER_FORMAT;
|
|
2868
|
+
enableSeconds?: boolean;
|
|
2869
|
+
}
|
|
2870
|
+
|
|
2829
2871
|
export declare function ToastCloseButton({ closeToast }: ToastCloseButtonProps): JSX_2.Element;
|
|
2830
2872
|
|
|
2831
2873
|
declare type ToastCloseButtonProps = {
|