@hybr1d-tech/charizard 0.7.96 → 0.7.97
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 +1560 -1531
- package/dist/hybr1d-ui.umd.cjs +16 -16
- package/dist/index.d.ts +77 -6
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -77,6 +77,12 @@ export declare const alertTypeMap: {
|
|
|
77
77
|
};
|
|
78
78
|
};
|
|
79
79
|
|
|
80
|
+
/**
|
|
81
|
+
* Array representing AM/PM values
|
|
82
|
+
* @type {string[]}
|
|
83
|
+
*/
|
|
84
|
+
export declare const amPm: PERIOD[];
|
|
85
|
+
|
|
80
86
|
/**
|
|
81
87
|
* AsyncImage component that displays an image asynchronously.
|
|
82
88
|
* While the image is loading, it shows a skeleton loader.
|
|
@@ -312,6 +318,13 @@ declare interface CommonOptions {
|
|
|
312
318
|
onClick?: (event: React_2.MouseEvent) => void;
|
|
313
319
|
}
|
|
314
320
|
|
|
321
|
+
/**
|
|
322
|
+
* Converts a time string (e.g., "12:30 PM") to a timestamp
|
|
323
|
+
* @param {string} timeString - The time string to convert
|
|
324
|
+
* @returns {number} - The timestamp in milliseconds
|
|
325
|
+
*/
|
|
326
|
+
export declare const convertToTimestamp: (timeString: string) => number;
|
|
327
|
+
|
|
315
328
|
export declare function CreatableSelect({ options, onChange, name, id, className, placeholder, selectStyles, defaultValue, formatGroupLabel, customContainerStyles, menuPlacement, errorMsg, extraprops, isDisabled, isSearchable, isMulti, isClearable, createNewOption, refetchOptions, }: CreatableSelectProps): JSX_2.Element;
|
|
316
329
|
|
|
317
330
|
declare interface CreatableSelectProps {
|
|
@@ -476,6 +489,18 @@ declare interface DateRangePickerProps extends PropsRange {
|
|
|
476
489
|
placeholder?: string;
|
|
477
490
|
}
|
|
478
491
|
|
|
492
|
+
/**
|
|
493
|
+
* The default selected time object used to initialize or reset the time picker state.
|
|
494
|
+
*
|
|
495
|
+
* @constant
|
|
496
|
+
* @type {SelectedTime}
|
|
497
|
+
* @property {string} hour - The selected hour, initialized as an empty string.
|
|
498
|
+
* @property {string} minute - The selected minute, initialized as an empty string.
|
|
499
|
+
* @property {string} second - The selected second, initialized as an empty string.
|
|
500
|
+
* @property {PERIOD} period - The selected period (AM/PM), initialized as an empty string casted to PERIOD type.
|
|
501
|
+
*/
|
|
502
|
+
export declare const DEFAULT_SELECTED_TIME: SelectedTime;
|
|
503
|
+
|
|
479
504
|
export declare type DialogFooterButtons = Array<Omit<ButtonV2Props, 'children'> & {
|
|
480
505
|
btnText: string;
|
|
481
506
|
isLoading?: boolean;
|
|
@@ -823,6 +848,15 @@ declare type FooterButtons = Array<{
|
|
|
823
848
|
icon?: string;
|
|
824
849
|
}>;
|
|
825
850
|
|
|
851
|
+
/**
|
|
852
|
+
* Formats a given value (hours, minutes, seconds) based on the time format (12-hour or 24-hour)
|
|
853
|
+
* @param {number} value - The value to format
|
|
854
|
+
* @param {TIME_PICKER_FORMAT} format - The time format (12-hour or 24-hour)
|
|
855
|
+
* @param {boolean} [isHour=false] - Whether the value is an hour (affects formatting logic)
|
|
856
|
+
* @returns {string} - The formatted time value
|
|
857
|
+
*/
|
|
858
|
+
export declare const getFormattedTime: (value: number, format: TIME_PICKER_FORMAT, isHour?: boolean) => string;
|
|
859
|
+
|
|
826
860
|
export declare const getProductIconFromType: (type?: string) => string;
|
|
827
861
|
|
|
828
862
|
export declare interface GroupActionProps {
|
|
@@ -846,6 +880,12 @@ export declare interface GroupActionProps {
|
|
|
846
880
|
|
|
847
881
|
export declare type HexColor = `#${string}`;
|
|
848
882
|
|
|
883
|
+
/**
|
|
884
|
+
* Array of hours (1-12) formatted as strings
|
|
885
|
+
* @type {string[]}
|
|
886
|
+
*/
|
|
887
|
+
export declare const hours: string[];
|
|
888
|
+
|
|
849
889
|
declare interface IconButtonV2TypeProps extends BaseButtonProps {
|
|
850
890
|
type: BUTTON_V2_TYPE.ICON_LEFT | BUTTON_V2_TYPE.ICON_RIGHT;
|
|
851
891
|
icon: React_2.ReactNode;
|
|
@@ -1129,7 +1169,7 @@ export declare namespace InputGroupV2 {
|
|
|
1129
1169
|
* <InputRightIcon icon={...} />
|
|
1130
1170
|
* </InputGroupV2>
|
|
1131
1171
|
*/
|
|
1132
|
-
declare interface InputIconProps {
|
|
1172
|
+
declare interface InputIconProps extends Omit<SVGProps, 'path'> {
|
|
1133
1173
|
icon: string;
|
|
1134
1174
|
onClick?: () => void;
|
|
1135
1175
|
/* Excluded from this release type: iconStyles */
|
|
@@ -1249,7 +1289,7 @@ export declare namespace InputLeftElement {
|
|
|
1249
1289
|
* <InputV2 />
|
|
1250
1290
|
* </InputGroupV2>
|
|
1251
1291
|
*/
|
|
1252
|
-
export declare function InputLeftIcon({ icon, onClick, iconStyles, disabled, className, }: InputIconProps): JSX_2.Element;
|
|
1292
|
+
export declare function InputLeftIcon({ icon, onClick, iconStyles, disabled, className, svgClassName, spanClassName, }: InputIconProps): JSX_2.Element;
|
|
1253
1293
|
|
|
1254
1294
|
export declare namespace InputLeftIcon {
|
|
1255
1295
|
var displayName: INPUT_COMPONENTS;
|
|
@@ -1434,7 +1474,7 @@ export declare namespace InputRightElement {
|
|
|
1434
1474
|
* <InputRightIcon icon={...} />
|
|
1435
1475
|
* </InputGroupV2>
|
|
1436
1476
|
*/
|
|
1437
|
-
export declare function InputRightIcon({ icon, onClick, iconStyles, disabled, className, }: InputIconProps): JSX_2.Element;
|
|
1477
|
+
export declare function InputRightIcon({ icon, onClick, iconStyles, disabled, className, svgClassName, spanClassName, }: InputIconProps): JSX_2.Element;
|
|
1438
1478
|
|
|
1439
1479
|
export declare namespace InputRightIcon {
|
|
1440
1480
|
var displayName: INPUT_COMPONENTS;
|
|
@@ -1502,6 +1542,7 @@ declare interface InputV2Props extends React.InputHTMLAttributes<HTMLInputElemen
|
|
|
1502
1542
|
containerClassName?: string;
|
|
1503
1543
|
/* Excluded from this release type: inputStyles */
|
|
1504
1544
|
/* Excluded from this release type: containerStyles */
|
|
1545
|
+
/* Excluded from this release type: onErrorHeightChange */
|
|
1505
1546
|
}
|
|
1506
1547
|
|
|
1507
1548
|
declare interface ITask {
|
|
@@ -1665,6 +1706,12 @@ export declare type MenuItemV2 = {
|
|
|
1665
1706
|
customSvgClassName?: string;
|
|
1666
1707
|
};
|
|
1667
1708
|
|
|
1709
|
+
/**
|
|
1710
|
+
* Array of minutes (0-59) formatted as strings
|
|
1711
|
+
* @type {string[]}
|
|
1712
|
+
*/
|
|
1713
|
+
export declare const minutes: string[];
|
|
1714
|
+
|
|
1668
1715
|
export declare function Modal({ isOpen, onClose, children, size, showOverlay, machineProps, }: ModalProps): JSX_2.Element;
|
|
1669
1716
|
|
|
1670
1717
|
export declare function ModalBody({ children, api, customStyles }: ModalBodyProps): JSX_2.Element;
|
|
@@ -1857,6 +1904,11 @@ declare interface OtherButtonV2TypeProps extends BaseButtonProps {
|
|
|
1857
1904
|
children: React_2.ReactNode;
|
|
1858
1905
|
}
|
|
1859
1906
|
|
|
1907
|
+
export declare enum PERIOD {
|
|
1908
|
+
AM = "AM",
|
|
1909
|
+
PM = "PM"
|
|
1910
|
+
}
|
|
1911
|
+
|
|
1860
1912
|
export declare function Pill({ status, children }: PillProps): JSX_2.Element;
|
|
1861
1913
|
|
|
1862
1914
|
export declare enum PILL_STATUS {
|
|
@@ -2166,6 +2218,12 @@ declare interface SearchV2Props extends InputV2Props {
|
|
|
2166
2218
|
setSearch?: React.Dispatch<React.SetStateAction<string>>;
|
|
2167
2219
|
}
|
|
2168
2220
|
|
|
2221
|
+
/**
|
|
2222
|
+
* Array of seconds (0-59) formatted as strings
|
|
2223
|
+
* @type {string[]}
|
|
2224
|
+
*/
|
|
2225
|
+
export declare const seconds: string[];
|
|
2226
|
+
|
|
2169
2227
|
export declare function SegmentedControl({ items, defaultValue, handleOnChange }: SegmentedControlProps): JSX_2.Element;
|
|
2170
2228
|
|
|
2171
2229
|
declare interface SegmentedControlProps {
|
|
@@ -2283,6 +2341,13 @@ declare interface SelectAsyncProps {
|
|
|
2283
2341
|
customValue?: any;
|
|
2284
2342
|
}
|
|
2285
2343
|
|
|
2344
|
+
export declare interface SelectedTime {
|
|
2345
|
+
hour: string;
|
|
2346
|
+
minute: string;
|
|
2347
|
+
second: string;
|
|
2348
|
+
period: PERIOD;
|
|
2349
|
+
}
|
|
2350
|
+
|
|
2286
2351
|
export declare type SelectMultiValue = MultiValue<Option_2>;
|
|
2287
2352
|
|
|
2288
2353
|
export declare function Selectors({ selectors }: SelectorsProps): JSX_2.Element;
|
|
@@ -2853,17 +2918,23 @@ declare interface TextareaV2Props extends React.TextareaHTMLAttributes<HTMLTextA
|
|
|
2853
2918
|
/* Excluded from this release type: containerStyles */
|
|
2854
2919
|
}
|
|
2855
2920
|
|
|
2856
|
-
declare enum TIME_PICKER_FORMAT {
|
|
2921
|
+
export declare enum TIME_PICKER_FORMAT {
|
|
2857
2922
|
STANDARD = "12-hours",
|
|
2858
2923
|
DUAL = "24-hours"
|
|
2859
2924
|
}
|
|
2860
2925
|
|
|
2926
|
+
export declare enum TIME_PICKER_TYPE {
|
|
2927
|
+
HOUR = "hour",
|
|
2928
|
+
MINUTE = "minute",
|
|
2929
|
+
SECOND = "second"
|
|
2930
|
+
}
|
|
2931
|
+
|
|
2861
2932
|
/**
|
|
2862
2933
|
* TimePicker component for selecting time with optional seconds and 12/24 hour formats
|
|
2863
2934
|
* @param {TimePickerProps} props - Props for TimePicker component
|
|
2864
2935
|
* @returns {JSX.Element} TimePicker component
|
|
2865
2936
|
*/
|
|
2866
|
-
export declare function TimePicker({ timestamp, onTimeChange, format, enableSeconds, }: TimePickerProps): JSX_2.Element;
|
|
2937
|
+
export declare function TimePicker({ timestamp, onTimeChange, format, enableSeconds, containerClassName, ...props }: TimePickerProps): JSX_2.Element;
|
|
2867
2938
|
|
|
2868
2939
|
export declare namespace TimePicker {
|
|
2869
2940
|
var displayName: string;
|
|
@@ -2877,7 +2948,7 @@ export declare namespace TimePicker {
|
|
|
2877
2948
|
* @property {TIME_PICKER_FORMAT} [format] - The time format, either 12-hour or 24-hour
|
|
2878
2949
|
* @property {boolean} [enableSeconds=false] - Whether to enable seconds selection
|
|
2879
2950
|
*/
|
|
2880
|
-
declare interface TimePickerProps {
|
|
2951
|
+
declare interface TimePickerProps extends InputV2Props {
|
|
2881
2952
|
onTimeChange: (timestamp: number) => void;
|
|
2882
2953
|
timestamp?: number;
|
|
2883
2954
|
format?: TIME_PICKER_FORMAT;
|