@hybr1d-tech/charizard 1.1.26 → 1.1.28
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.css +1 -1
- package/dist/hybr1d-ui.js +211 -211
- package/dist/hybr1d-ui.umd.cjs +10 -10
- package/dist/index.d.ts +32 -32
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -52,11 +52,11 @@ declare interface AccordionProps {
|
|
|
52
52
|
export declare const ActionsDropdown: React_2.ForwardRefExoticComponent<ActionsDropdownProps & React_2.RefAttributes<unknown>>;
|
|
53
53
|
|
|
54
54
|
export declare interface ActionsDropdownProps {
|
|
55
|
-
variant?:
|
|
55
|
+
variant?: BUTTON_VARIANT;
|
|
56
56
|
disabled?: boolean;
|
|
57
|
-
menuItems:
|
|
57
|
+
menuItems: MenuItem[];
|
|
58
58
|
customData?: any;
|
|
59
|
-
size?:
|
|
59
|
+
size?: BUTTON_SIZE;
|
|
60
60
|
positionerProps?: PositioningOptions;
|
|
61
61
|
isTable?: boolean;
|
|
62
62
|
children?: React_2.ReactNode;
|
|
@@ -154,10 +154,10 @@ declare interface BaseBadgeProps {
|
|
|
154
154
|
}
|
|
155
155
|
|
|
156
156
|
declare interface BaseButtonProps {
|
|
157
|
-
variant?:
|
|
157
|
+
variant?: BUTTON_VARIANT;
|
|
158
158
|
disabled?: boolean;
|
|
159
159
|
onClick?: React_2.MouseEventHandler<HTMLButtonElement>;
|
|
160
|
-
size?:
|
|
160
|
+
size?: BUTTON_SIZE;
|
|
161
161
|
customStyles?: React_2.CSSProperties;
|
|
162
162
|
btnType?: 'button' | 'reset' | 'submit';
|
|
163
163
|
}
|
|
@@ -198,12 +198,19 @@ export declare const buildFilterQuery: (queryFilters: Record<string, any>, exclu
|
|
|
198
198
|
|
|
199
199
|
export declare const buildTableQuery: (query: TBaseQuery) => Record<string, any>;
|
|
200
200
|
|
|
201
|
-
export declare
|
|
201
|
+
export declare function Button({ children, variant, disabled, onClick, type, size, customStyles, icon, btnType, }: ButtonProps): JSX_2.Element;
|
|
202
|
+
|
|
203
|
+
export declare namespace Button {
|
|
204
|
+
var GroupAction: React_2.ForwardRefExoticComponent<GroupActionProps & React_2.RefAttributes<unknown>>;
|
|
205
|
+
var ActionsDropdown: React_2.ForwardRefExoticComponent<ActionsDropdownProps & React_2.RefAttributes<unknown>>;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
export declare enum BUTTON_SIZE {
|
|
202
209
|
SMALL = "small",
|
|
203
210
|
DEFAULT = "default"
|
|
204
211
|
}
|
|
205
212
|
|
|
206
|
-
export declare enum
|
|
213
|
+
export declare enum BUTTON_TYPE {
|
|
207
214
|
BASIC = "basic",
|
|
208
215
|
ICON_LEFT = "iconLeft",
|
|
209
216
|
ICON_RIGHT = "iconRight",
|
|
@@ -212,7 +219,7 @@ export declare enum BUTTON_V2_TYPE {
|
|
|
212
219
|
RESET = "reset"
|
|
213
220
|
}
|
|
214
221
|
|
|
215
|
-
export declare enum
|
|
222
|
+
export declare enum BUTTON_VARIANT {
|
|
216
223
|
PRIMARY = "primary",
|
|
217
224
|
SECONDARY = "secondary",
|
|
218
225
|
TERTIARY = "tertiary",
|
|
@@ -222,14 +229,7 @@ export declare enum BUTTON_V2_VARIANT {
|
|
|
222
229
|
MINIMAL = "tertiary"
|
|
223
230
|
}
|
|
224
231
|
|
|
225
|
-
export declare
|
|
226
|
-
|
|
227
|
-
export declare namespace ButtonV2 {
|
|
228
|
-
var GroupAction: React_2.ForwardRefExoticComponent<GroupActionProps & React_2.RefAttributes<unknown>>;
|
|
229
|
-
var ActionsDropdown: React_2.ForwardRefExoticComponent<ActionsDropdownProps & React_2.RefAttributes<unknown>>;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
export declare type ButtonV2Props = IconOnlyButtonV2TypeProps | IconButtonV2TypeProps | OtherButtonV2TypeProps;
|
|
232
|
+
export declare type ButtonProps = IconOnlyButtonTypeProps | IconButtonTypeProps | OtherButtonTypeProps;
|
|
233
233
|
|
|
234
234
|
export declare function Checkbox({ id, name, children, onChange, customClasses, customStyles, errorMsg, checked, indeterminate, disabled, }: CheckboxProps): JSX_2.Element;
|
|
235
235
|
|
|
@@ -495,7 +495,7 @@ declare interface DatePickerProps extends PropsSingle {
|
|
|
495
495
|
disableDatepicker?: boolean;
|
|
496
496
|
errorMsg?: string;
|
|
497
497
|
isError?: boolean;
|
|
498
|
-
buttonVariant?:
|
|
498
|
+
buttonVariant?: BUTTON_VARIANT;
|
|
499
499
|
customContainerStyles?: React_2.CSSProperties;
|
|
500
500
|
popoverConfig?: {
|
|
501
501
|
placement?: Placement_2;
|
|
@@ -527,7 +527,7 @@ declare interface DateRangePickerProps extends PropsRange {
|
|
|
527
527
|
content?: string;
|
|
528
528
|
dateIcon?: string;
|
|
529
529
|
};
|
|
530
|
-
size?:
|
|
530
|
+
size?: BUTTON_SIZE;
|
|
531
531
|
placeholder?: string;
|
|
532
532
|
trigger?: React_2.ReactNode;
|
|
533
533
|
}
|
|
@@ -548,7 +548,7 @@ export declare const DEFAULT_PAGE = 0;
|
|
|
548
548
|
*/
|
|
549
549
|
export declare const DEFAULT_SELECTED_TIME: SelectedTime;
|
|
550
550
|
|
|
551
|
-
export declare type DialogFooterButtons = Array<Omit<
|
|
551
|
+
export declare type DialogFooterButtons = Array<Omit<ButtonProps, 'children'> & {
|
|
552
552
|
btnText: string;
|
|
553
553
|
isLoading?: boolean;
|
|
554
554
|
loadingText?: string;
|
|
@@ -885,11 +885,11 @@ declare type FilterOptions_2 = {
|
|
|
885
885
|
};
|
|
886
886
|
|
|
887
887
|
declare type FooterButtons = Array<{
|
|
888
|
-
variant?:
|
|
888
|
+
variant?: BUTTON_VARIANT;
|
|
889
889
|
onClick: () => void;
|
|
890
890
|
btnText: string;
|
|
891
|
-
btnType?:
|
|
892
|
-
btnSize?:
|
|
891
|
+
btnType?: BUTTON_TYPE | 'submit';
|
|
892
|
+
btnSize?: BUTTON_SIZE;
|
|
893
893
|
disabled?: boolean;
|
|
894
894
|
isLoading?: boolean;
|
|
895
895
|
loadingText?: string;
|
|
@@ -935,11 +935,11 @@ export declare const getUsername: (user?: any) => any;
|
|
|
935
935
|
|
|
936
936
|
export declare interface GroupActionProps {
|
|
937
937
|
children: React_2.ReactNode;
|
|
938
|
-
variant?:
|
|
938
|
+
variant?: BUTTON_VARIANT;
|
|
939
939
|
disabled?: boolean;
|
|
940
|
-
menuItems:
|
|
940
|
+
menuItems: MenuItem[];
|
|
941
941
|
customData?: any;
|
|
942
|
-
size?:
|
|
942
|
+
size?: BUTTON_SIZE;
|
|
943
943
|
positionerProps?: PositioningOptions;
|
|
944
944
|
isTable?: boolean;
|
|
945
945
|
customStyles?: {
|
|
@@ -972,14 +972,14 @@ declare interface IconBadgeProps extends BaseBadgeProps {
|
|
|
972
972
|
customSvgStyles?: React_2.CSSProperties;
|
|
973
973
|
}
|
|
974
974
|
|
|
975
|
-
declare interface
|
|
976
|
-
type:
|
|
975
|
+
declare interface IconButtonTypeProps extends BaseButtonProps {
|
|
976
|
+
type: BUTTON_TYPE.ICON_LEFT | BUTTON_TYPE.ICON_RIGHT;
|
|
977
977
|
icon: React_2.ReactNode;
|
|
978
978
|
children: React_2.ReactNode;
|
|
979
979
|
}
|
|
980
980
|
|
|
981
|
-
declare interface
|
|
982
|
-
type:
|
|
981
|
+
declare interface IconOnlyButtonTypeProps extends BaseButtonProps {
|
|
982
|
+
type: BUTTON_TYPE.ICON_ONLY;
|
|
983
983
|
icon: React_2.ReactNode;
|
|
984
984
|
children?: React_2.ReactNode;
|
|
985
985
|
}
|
|
@@ -1767,7 +1767,7 @@ declare type MenuConfig = {
|
|
|
1767
1767
|
type?: string;
|
|
1768
1768
|
};
|
|
1769
1769
|
|
|
1770
|
-
export declare type
|
|
1770
|
+
export declare type MenuItem = {
|
|
1771
1771
|
label: string;
|
|
1772
1772
|
iconSrc?: string;
|
|
1773
1773
|
onClick: any;
|
|
@@ -2000,8 +2000,8 @@ export declare type OptionWithProfileImg = OptionBase & {
|
|
|
2000
2000
|
icon?: never;
|
|
2001
2001
|
};
|
|
2002
2002
|
|
|
2003
|
-
declare interface
|
|
2004
|
-
type?:
|
|
2003
|
+
declare interface OtherButtonTypeProps extends BaseButtonProps {
|
|
2004
|
+
type?: BUTTON_TYPE.BASIC | BUTTON_TYPE.BUTTON | BUTTON_TYPE.RESET;
|
|
2005
2005
|
icon?: React_2.ReactNode;
|
|
2006
2006
|
children: React_2.ReactNode;
|
|
2007
2007
|
}
|