pixelize-design-library 2.1.62 → 2.1.64
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/Components/SearchSelect/SearchSelect.js +1 -1
- package/dist/Components/Table/TableSettings/ManageColumns.js +32 -18
- package/dist/index.d.mts +1468 -0
- package/dist/index.mjs +263 -0
- package/package.json +1 -1
- package/dist/Components/KaTable/CustomHeader.d.ts +0 -14
- package/dist/Components/KaTable/CustomHeader.js +0 -69
- package/dist/Components/KaTable/KaTable.d.ts +0 -13
- package/dist/Components/KaTable/KaTable.js +0 -111
- package/dist/Components/KaTable/KaTableProps.d.ts +0 -23
- package/dist/Components/KaTable/KaTableProps.js +0 -2
- package/dist/Components/KaTable/SelectionCell.d.ts +0 -8
- package/dist/Components/KaTable/SelectionCell.js +0 -38
- package/dist/Components/KaTable/SelectionHeader.d.ts +0 -3
- package/dist/Components/KaTable/SelectionHeader.js +0 -56
- package/dist/Components/KaTable/ka-table.css +0 -27
- package/dist/Components/KaTable/useMergedChildComponents.d.ts +0 -14
- package/dist/Components/KaTable/useMergedChildComponents.js +0 -224
- package/dist/Components/Table/Table.css +0 -16
- package/dist/Pages/KaTableExample.d.ts +0 -3
- package/dist/Pages/KaTableExample.js +0 -259
- package/dist/Theme/Default/fonts.d.ts +0 -35
- package/dist/Theme/Default/fonts.js +0 -37
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,1468 @@
|
|
|
1
|
+
import React$1, { ReactElement, ReactNode, FC, LegacyRef, ElementType } from 'react';
|
|
2
|
+
import { AccordionProps as AccordionProps$1, AccordionButtonProps, AccordionPanelProps, AccordionItemProps, AlertDialogProps, AlertProps, BreadcrumbProps, ButtonProps as ButtonProps$1, CardProps as CardProps$1, CheckboxProps as CheckboxProps$1, DrawerProps as DrawerProps$1, SelectProps, TextareaProps, ModalProps, NumberInputProps as NumberInputProps$1, PinInputProps, ProgressProps, RadioProps, RadioGroupProps, SkeletonProps as SkeletonProps$1, SkeletonTextProps, InputProps, ToastProps, TooltipProps, Theme } from '@chakra-ui/react';
|
|
3
|
+
import { IJoditEditorProps } from 'jodit-react';
|
|
4
|
+
|
|
5
|
+
type AccordionProps = AccordionProps$1 & {
|
|
6
|
+
items: {
|
|
7
|
+
header: React.ReactNode;
|
|
8
|
+
content: React.ReactNode;
|
|
9
|
+
buttonProps?: AccordionButtonProps;
|
|
10
|
+
panelProps?: AccordionPanelProps;
|
|
11
|
+
itemProps?: AccordionItemProps;
|
|
12
|
+
customStyles?: {
|
|
13
|
+
buttonStyle?: React.CSSProperties;
|
|
14
|
+
hoverbuttonStyle?: React.CSSProperties;
|
|
15
|
+
panelStyle?: React.CSSProperties;
|
|
16
|
+
itemStyle?: React.CSSProperties;
|
|
17
|
+
};
|
|
18
|
+
}[];
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
declare const Accordion: ({ allowMultiple, allowToggle, index, onChange, reduceMotion, items, ...rest }: AccordionProps) => React$1.JSX.Element;
|
|
22
|
+
|
|
23
|
+
type AlertDialogsProps = Pick<AlertDialogProps, "isOpen" | "onClose" | "leastDestructiveRef"> & Pick<AlertProps, "addRole" | "colorScheme" | "size" | "status" | "variant"> & {
|
|
24
|
+
title: string;
|
|
25
|
+
content: ReactElement;
|
|
26
|
+
isCentered?: boolean;
|
|
27
|
+
confirmButtonText?: string;
|
|
28
|
+
cancelButtonText?: string;
|
|
29
|
+
isConfirmLoading?: boolean;
|
|
30
|
+
onConfirm: () => void;
|
|
31
|
+
ContentStyle?: React.CSSProperties;
|
|
32
|
+
headerStyle?: React.CSSProperties;
|
|
33
|
+
bodyStyle?: React.CSSProperties;
|
|
34
|
+
footerStyle?: React.CSSProperties;
|
|
35
|
+
closeButtonStyle?: React.CSSProperties;
|
|
36
|
+
button1Style?: React.CSSProperties;
|
|
37
|
+
button2Style?: React.CSSProperties;
|
|
38
|
+
key?: string | number;
|
|
39
|
+
confirmButtonColor?: string;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
declare const AlertDialog: ({ isOpen, onClose, leastDestructiveRef, content, title, confirmButtonText, cancelButtonText, isConfirmLoading, onConfirm, ContentStyle, headerStyle, bodyStyle, footerStyle, closeButtonStyle, button1Style, button2Style, isCentered, confirmButtonColor, key, }: AlertDialogsProps) => React$1.JSX.Element;
|
|
43
|
+
|
|
44
|
+
type ApexBarChartProps = {
|
|
45
|
+
data: number[];
|
|
46
|
+
labels: string[];
|
|
47
|
+
title?: string;
|
|
48
|
+
titlePosition?: "left" | "center" | "right";
|
|
49
|
+
height?: number;
|
|
50
|
+
width?: number;
|
|
51
|
+
barColor?: string[];
|
|
52
|
+
xAxisStyle?: StyleProps$1;
|
|
53
|
+
yAxisStyle?: StyleProps$1;
|
|
54
|
+
titleStyle?: StyleProps$1;
|
|
55
|
+
};
|
|
56
|
+
type StyleProps$1 = {
|
|
57
|
+
fontSize?: string;
|
|
58
|
+
fontFamily?: string;
|
|
59
|
+
fontWeight?: string | number;
|
|
60
|
+
color?: string;
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
declare function ApexBarChart({ data, labels, title, titlePosition, height, width, barColor, xAxisStyle, yAxisStyle, titleStyle, }: ApexBarChartProps): React$1.JSX.Element;
|
|
64
|
+
|
|
65
|
+
type ApexPieChartProps = {
|
|
66
|
+
data: number[];
|
|
67
|
+
labels: string[];
|
|
68
|
+
title?: string;
|
|
69
|
+
titlePosition?: "left" | "center" | "right";
|
|
70
|
+
height?: number;
|
|
71
|
+
width?: number;
|
|
72
|
+
chartColor?: string[];
|
|
73
|
+
titleStyle?: StyleProps;
|
|
74
|
+
};
|
|
75
|
+
type StyleProps = {
|
|
76
|
+
fontSize?: string;
|
|
77
|
+
fontFamily?: string;
|
|
78
|
+
fontWeight?: string | number;
|
|
79
|
+
color?: string;
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
declare function ApexPieChart({ data, labels, title, titlePosition, height, width, chartColor, titleStyle, }: ApexPieChartProps): React$1.JSX.Element;
|
|
83
|
+
|
|
84
|
+
type BreadcrumbsProps = Pick<BreadcrumbProps, "spacing" | "separator" | "fontWeight" | "fontSize"> & {
|
|
85
|
+
isCurrentPage?: boolean;
|
|
86
|
+
isLastChild?: boolean;
|
|
87
|
+
handleClick: (path: string) => void;
|
|
88
|
+
items: BreadcrumbItem[];
|
|
89
|
+
};
|
|
90
|
+
type BreadcrumbItem = {
|
|
91
|
+
path: string;
|
|
92
|
+
label: string;
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
declare function Breadcrumbs({ spacing, separator, fontWeight, fontSize, isCurrentPage, handleClick, items, }: BreadcrumbsProps): React$1.JSX.Element;
|
|
96
|
+
|
|
97
|
+
type ButtonProps = Pick<ButtonProps$1, "onClick" | "leftIcon" | "rightIcon" | "isDisabled" | "isLoading" | "loadingText" | "spinner" | "sx" | "border" | "borderRadius"> & {
|
|
98
|
+
label?: string;
|
|
99
|
+
width?: string | number;
|
|
100
|
+
size?: "lg" | "md" | "sm" | "xs";
|
|
101
|
+
variant?: "solid" | "outline" | "ghost" | "link" | "unstyled";
|
|
102
|
+
type?: "button" | "submit" | "reset";
|
|
103
|
+
colorScheme?: 'primary' | 'secondary' | 'tertiary' | 'gray' | 'red' | 'orange' | 'yellow' | 'green' | 'teal' | 'blue' | 'cyan' | 'purple' | 'pink';
|
|
104
|
+
ref?: React.Ref<HTMLButtonElement>;
|
|
105
|
+
children?: React.ReactNode;
|
|
106
|
+
opacity?: number;
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
declare function Button({ label, children, onClick, opacity, variant, leftIcon, rightIcon, size, isDisabled, isLoading, loadingText, type, width, sx, colorScheme, ref, border, borderRadius, }: ButtonProps): React$1.JSX.Element;
|
|
110
|
+
declare const _default$1: React$1.MemoExoticComponent<typeof Button>;
|
|
111
|
+
|
|
112
|
+
type ButtonGroupIconProps = {
|
|
113
|
+
leftIcon?: ReactElement;
|
|
114
|
+
rightIcon?: ReactElement;
|
|
115
|
+
onLeftIconClick?: () => void;
|
|
116
|
+
onRightIconClick?: () => void;
|
|
117
|
+
buttonText: string;
|
|
118
|
+
onButtonClick?: () => void;
|
|
119
|
+
onButtongroupClick?: () => void;
|
|
120
|
+
size?: "lg" | "md" | "sm" | "xs";
|
|
121
|
+
variant?: "solid" | "outline" | "ghost" | "link" | "unstyled";
|
|
122
|
+
color?: "gray" | "red" | "orange" | "yellow" | "green" | "teal" | "blue" | "cyan" | "purple" | "pink" | "whiteAlpha" | "blackAlpha";
|
|
123
|
+
buttonGroupStyle?: React.CSSProperties;
|
|
124
|
+
buttonGroupLeftIconStyle?: React.CSSProperties;
|
|
125
|
+
buttonGroupRightIconStyle?: React.CSSProperties;
|
|
126
|
+
buttonStyle?: React.CSSProperties;
|
|
127
|
+
onBlurLeftIcon?: () => void;
|
|
128
|
+
onBlurRightIcon?: () => void;
|
|
129
|
+
dropdownOptions?: {
|
|
130
|
+
label: string;
|
|
131
|
+
id: string | number;
|
|
132
|
+
image?: ReactElement | undefined;
|
|
133
|
+
}[];
|
|
134
|
+
onDropdownOptionClick?: (event: React.MouseEvent, option: {
|
|
135
|
+
label: string;
|
|
136
|
+
id: string | number;
|
|
137
|
+
}) => void;
|
|
138
|
+
rightIconDropdown?: boolean;
|
|
139
|
+
menulistStyle?: React.CSSProperties;
|
|
140
|
+
menuItemStyle?: React.CSSProperties;
|
|
141
|
+
isLoading?: boolean;
|
|
142
|
+
divider?: boolean;
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
declare function ButtonGroupIcon({ leftIcon, rightIcon, onLeftIconClick, onRightIconClick, buttonText, onButtonClick, onButtongroupClick, size, variant, color, buttonGroupStyle, buttonGroupLeftIconStyle, buttonGroupRightIconStyle, buttonStyle, onBlurLeftIcon, onBlurRightIcon, dropdownOptions, // New prop for dropdown options
|
|
146
|
+
onDropdownOptionClick, // New prop to handle option clicks
|
|
147
|
+
rightIconDropdown, menulistStyle, menuItemStyle, isLoading, divider, }: ButtonGroupIconProps): React$1.JSX.Element;
|
|
148
|
+
|
|
149
|
+
type CardProps = Pick<CardProps$1, "direction" | "maxW" | "align" | "justify" | "overflow" | "sx"> & {
|
|
150
|
+
header?: React.ReactNode;
|
|
151
|
+
footer?: React.ReactNode;
|
|
152
|
+
children: React.ReactNode;
|
|
153
|
+
variant?: "elevated" | "outline" | "filled" | "unstyled";
|
|
154
|
+
size?: "sm" | "md" | "lg";
|
|
155
|
+
color?: "whiteAlpha" | "blackAlpha" | "gray" | "red" | "orange" | "yellow" | "green" | "teal" | "blue" | "cyan" | "purple" | "pink";
|
|
156
|
+
key?: string;
|
|
157
|
+
dividercolor?: "whiteAlpha" | "blackAlpha" | "gray" | "red" | "orange" | "yellow" | "green" | "teal" | "blue" | "cyan" | "purple" | "pink";
|
|
158
|
+
dividersize?: string;
|
|
159
|
+
dividervariant?: "solid" | "dashed";
|
|
160
|
+
};
|
|
161
|
+
|
|
162
|
+
declare function Card({ key, maxW, align, variant, direction, justify, children, size, color, overflow, sx, }: CardProps): React$1.JSX.Element;
|
|
163
|
+
|
|
164
|
+
type CheckboxProps = Pick<CheckboxProps$1, "spacing" | "isInvalid" | "size" | "iconColor" | "iconSize" | "isChecked" | "isIndeterminate" | "onChange" | "isDisabled" | "value" | "defaultChecked" | "sx"> & {
|
|
165
|
+
label?: string;
|
|
166
|
+
width?: string | number;
|
|
167
|
+
variant?: "solid" | "outline" | "ghost" | "link" | "unstyled";
|
|
168
|
+
color?: "gray" | "red" | "orange" | "yellow" | "green" | "teal" | "blue" | "cyan" | "purple" | "pink" | "whiteAlpha" | "blackAlpha";
|
|
169
|
+
size?: "sm" | "md" | "lg";
|
|
170
|
+
isRequired?: boolean;
|
|
171
|
+
error?: boolean;
|
|
172
|
+
errorMessage?: string;
|
|
173
|
+
isInformation?: boolean;
|
|
174
|
+
informationMessage?: string;
|
|
175
|
+
id?: string;
|
|
176
|
+
helperText?: string;
|
|
177
|
+
};
|
|
178
|
+
|
|
179
|
+
declare function CheckBox({ label, spacing, isInvalid, color, iconColor, iconSize, isChecked, isIndeterminate, onChange, isDisabled, size, value, defaultChecked, sx, isRequired, error, errorMessage, isInformation, informationMessage, id, helperText, }: CheckboxProps): React$1.JSX.Element;
|
|
180
|
+
|
|
181
|
+
interface ContactFormProps {
|
|
182
|
+
apiKey?: string;
|
|
183
|
+
customerId: string | number;
|
|
184
|
+
organizationId: string | number;
|
|
185
|
+
isDisabled?: boolean;
|
|
186
|
+
customFields?: ReactNode;
|
|
187
|
+
getCustomValues?: () => Record<string, any>;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
declare const ContactForm: ({ apiKey, customFields, getCustomValues, isDisabled, organizationId, customerId, }: ContactFormProps) => React$1.JSX.Element;
|
|
191
|
+
|
|
192
|
+
type PickerType = "date" | "time" | "datetime";
|
|
193
|
+
type BaseDatePickerProps = {
|
|
194
|
+
id?: string;
|
|
195
|
+
name?: string;
|
|
196
|
+
label?: string;
|
|
197
|
+
isRequired?: boolean;
|
|
198
|
+
isInformation?: boolean;
|
|
199
|
+
informationMessage?: string;
|
|
200
|
+
error?: boolean;
|
|
201
|
+
errorMessage?: string;
|
|
202
|
+
helperText?: string;
|
|
203
|
+
placeholderText?: string;
|
|
204
|
+
dateFormat?: string;
|
|
205
|
+
pickerType?: PickerType;
|
|
206
|
+
minDate?: Date;
|
|
207
|
+
maxDate?: Date;
|
|
208
|
+
disableFutureDates?: boolean;
|
|
209
|
+
disablePastDates?: boolean;
|
|
210
|
+
autoComplete?: string;
|
|
211
|
+
disabled?: boolean;
|
|
212
|
+
width?: string | number;
|
|
213
|
+
};
|
|
214
|
+
type SingleDatePickerProps = BaseDatePickerProps & {
|
|
215
|
+
isRange?: false;
|
|
216
|
+
selectedDate?: Date | null;
|
|
217
|
+
onChange: (date: Date | null) => void;
|
|
218
|
+
};
|
|
219
|
+
type RangeDate = {
|
|
220
|
+
from: Date | null;
|
|
221
|
+
to: Date | null;
|
|
222
|
+
};
|
|
223
|
+
type RangeDatePickerProps = BaseDatePickerProps & {
|
|
224
|
+
isRange: true;
|
|
225
|
+
selectedDate?: RangeDate | null;
|
|
226
|
+
onChange: (range: RangeDate | null) => void;
|
|
227
|
+
};
|
|
228
|
+
type DatePickerProps = SingleDatePickerProps | RangeDatePickerProps;
|
|
229
|
+
|
|
230
|
+
declare function CustomDatePicker(props: DatePickerProps): React$1.JSX.Element;
|
|
231
|
+
|
|
232
|
+
type DrawerProps = Pick<DrawerProps$1, "isOpen" | "onClose" | "placement" | "size" | "id" | "variant"> & {
|
|
233
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | "full";
|
|
234
|
+
placement?: "top" | "right" | "bottom" | "left";
|
|
235
|
+
vaiant?: "solid" | "outline" | "ghost" | "link";
|
|
236
|
+
children?: React.ReactNode;
|
|
237
|
+
};
|
|
238
|
+
|
|
239
|
+
declare const DrawerHeader: React$1.FC<{
|
|
240
|
+
children: React$1.ReactNode;
|
|
241
|
+
}>;
|
|
242
|
+
declare const DrawerBody: React$1.FC<{
|
|
243
|
+
children: React$1.ReactNode;
|
|
244
|
+
}>;
|
|
245
|
+
declare const DrawerFooter: React$1.FC<{
|
|
246
|
+
children: React$1.ReactNode;
|
|
247
|
+
}>;
|
|
248
|
+
declare function Drawer({ isOpen, onClose, placement, size, id, variant, children, }: DrawerProps): React$1.JSX.Element;
|
|
249
|
+
|
|
250
|
+
type DropdownProps = {
|
|
251
|
+
ButtonText?: string;
|
|
252
|
+
options: Option[];
|
|
253
|
+
handleOptionSelect: (id: string | number, label: string) => void;
|
|
254
|
+
dropdownType?: "button" | "text";
|
|
255
|
+
text?: string;
|
|
256
|
+
DropdownIcon?: JSX.Element;
|
|
257
|
+
dropDownButtonStyle?: React.CSSProperties;
|
|
258
|
+
isVisibleIconShow?: boolean;
|
|
259
|
+
buttonProps?: ButtonProps$1;
|
|
260
|
+
headStyle?: React.CSSProperties;
|
|
261
|
+
ListStyle?: React.CSSProperties;
|
|
262
|
+
ItemStyle?: React.CSSProperties;
|
|
263
|
+
LabelStyle?: React.CSSProperties;
|
|
264
|
+
ImageStyle?: React.CSSProperties;
|
|
265
|
+
optionsSize?: "sm" | "md";
|
|
266
|
+
divider?: boolean;
|
|
267
|
+
};
|
|
268
|
+
type Option = {
|
|
269
|
+
id: string | number;
|
|
270
|
+
label: string;
|
|
271
|
+
image?: React.ElementType;
|
|
272
|
+
};
|
|
273
|
+
|
|
274
|
+
declare const Dropdown: React$1.ForwardRefExoticComponent<DropdownProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
275
|
+
|
|
276
|
+
type EditorProps = Pick<IJoditEditorProps, "value" | "config" | "className" | "onChange" | "onBlur"> & {
|
|
277
|
+
editorRef?: React.RefObject<any>;
|
|
278
|
+
};
|
|
279
|
+
|
|
280
|
+
declare function Editor({ value, config, editorRef, className, onChange, onBlur, }: EditorProps): React$1.JSX.Element;
|
|
281
|
+
|
|
282
|
+
type MimeExtension = '.jpg' | '.jpeg' | '.png' | '.gif' | '.webp' | '.svg' | '.pdf' | '.doc' | '.docx' | '.xls' | '.xlsx' | '.ppt' | '.pptx' | '.txt' | '.mp4' | '.mov' | '.mp3' | '.wav' | '.zip' | '.rar' | '.7z';
|
|
283
|
+
type FileUploaderProps = {
|
|
284
|
+
onFilesUploaded: (files: File[]) => void;
|
|
285
|
+
uploadedFiles: File[];
|
|
286
|
+
onRemoveFile?: (file: File) => void;
|
|
287
|
+
acceptTypes?: MimeExtension[];
|
|
288
|
+
maxSizeKB?: number;
|
|
289
|
+
maxFiles?: number;
|
|
290
|
+
progress?: Record<string, number>;
|
|
291
|
+
};
|
|
292
|
+
|
|
293
|
+
declare const FileUpload: React$1.FC<FileUploaderProps>;
|
|
294
|
+
|
|
295
|
+
declare const FormWrapper: ({ icon, text, children, }: {
|
|
296
|
+
icon?: React$1.ElementType<any, keyof React$1.JSX.IntrinsicElements> | undefined;
|
|
297
|
+
text?: string | undefined;
|
|
298
|
+
children: React$1.ReactNode;
|
|
299
|
+
}) => React$1.JSX.Element;
|
|
300
|
+
|
|
301
|
+
type SubItem = {
|
|
302
|
+
label: string;
|
|
303
|
+
href: string;
|
|
304
|
+
badge?: {
|
|
305
|
+
label: string;
|
|
306
|
+
colorScheme?: "blue" | "cyan" | "gray" | "green" | "orange" | "pink" | "purple" | "red" | "teal" | "yellow" | "whiteAlpha" | "blackAlpha" | undefined;
|
|
307
|
+
};
|
|
308
|
+
onClick?: () => void;
|
|
309
|
+
};
|
|
310
|
+
type MenuItemProp = {
|
|
311
|
+
label: string;
|
|
312
|
+
href?: string;
|
|
313
|
+
badge?: {
|
|
314
|
+
label: string;
|
|
315
|
+
colorScheme?: "blue" | "cyan" | "gray" | "green" | "orange" | "pink" | "purple" | "red" | "teal" | "yellow" | "whiteAlpha" | "blackAlpha" | undefined;
|
|
316
|
+
};
|
|
317
|
+
onClick?: () => void;
|
|
318
|
+
children?: SubItem[];
|
|
319
|
+
};
|
|
320
|
+
type HeaderProps = {
|
|
321
|
+
logo: React.ReactNode;
|
|
322
|
+
menuItems: MenuItemProp[];
|
|
323
|
+
rightSlot?: React.ReactNode;
|
|
324
|
+
active?: string;
|
|
325
|
+
colors?: {
|
|
326
|
+
bg: string;
|
|
327
|
+
color: string;
|
|
328
|
+
active: string;
|
|
329
|
+
hover: string;
|
|
330
|
+
};
|
|
331
|
+
};
|
|
332
|
+
|
|
333
|
+
declare const Header: FC<HeaderProps>;
|
|
334
|
+
|
|
335
|
+
type chakraSelectProps = Pick<SelectProps, "placeholder" | "size" | "variant" | "icon" | "bg" | "borderColor" | "color" | "onBlur" | "onFocus" | "errorBorderColor" | "isDisabled" | "isReadOnly" | "isRequired" | "value" | "colorScheme"> & {
|
|
336
|
+
label?: string;
|
|
337
|
+
error?: boolean;
|
|
338
|
+
errorMessage?: string;
|
|
339
|
+
helperText?: string;
|
|
340
|
+
options: OptionProp[];
|
|
341
|
+
width?: string | number;
|
|
342
|
+
height?: string | number;
|
|
343
|
+
onChange: (selectedOption: OptionProp | undefined) => void;
|
|
344
|
+
formControlStyle?: React.CSSProperties;
|
|
345
|
+
isInformation?: boolean;
|
|
346
|
+
informationMessage?: string;
|
|
347
|
+
selectStyle?: React.CSSProperties;
|
|
348
|
+
};
|
|
349
|
+
type OptionProp = {
|
|
350
|
+
id: string | number;
|
|
351
|
+
label: string | number;
|
|
352
|
+
};
|
|
353
|
+
|
|
354
|
+
declare const HeaderActions: ({ select, edit, create, }: {
|
|
355
|
+
select?: {
|
|
356
|
+
isSelect?: boolean | undefined;
|
|
357
|
+
options?: OptionProp[] | undefined;
|
|
358
|
+
onSelectChange?: ((option?: OptionProp) => void) | undefined;
|
|
359
|
+
selectPlaceholderText?: string | undefined;
|
|
360
|
+
width?: string | undefined;
|
|
361
|
+
value?: string | undefined;
|
|
362
|
+
} | undefined;
|
|
363
|
+
edit?: {
|
|
364
|
+
isEditable?: boolean | undefined;
|
|
365
|
+
onEdit?: (() => void) | undefined;
|
|
366
|
+
label?: string | undefined;
|
|
367
|
+
} | undefined;
|
|
368
|
+
create?: {
|
|
369
|
+
isCreatable?: boolean | undefined;
|
|
370
|
+
onCreate?: (() => void) | undefined;
|
|
371
|
+
label?: string | undefined;
|
|
372
|
+
} | undefined;
|
|
373
|
+
}) => React$1.JSX.Element;
|
|
374
|
+
|
|
375
|
+
type InputTextAreaProps = Pick<TextareaProps, "placeholder" | "value" | "onChange" | "size" | "resize" | "isDisabled" | "errorBorderColor" | "focusBorderColor" | "isReadOnly" | "isRequired" | "variant"> & {
|
|
376
|
+
label?: string;
|
|
377
|
+
error?: boolean;
|
|
378
|
+
errorMessage?: string;
|
|
379
|
+
helperText?: string;
|
|
380
|
+
width?: string | number;
|
|
381
|
+
rows?: number;
|
|
382
|
+
height?: string | number;
|
|
383
|
+
};
|
|
384
|
+
|
|
385
|
+
declare function InputTextArea({ label, placeholder, value, onChange, size, resize, width, isDisabled, errorBorderColor, focusBorderColor, isReadOnly, isRequired, error, errorMessage, helperText, rows, height, }: InputTextAreaProps): React$1.JSX.Element;
|
|
386
|
+
|
|
387
|
+
type Account = {
|
|
388
|
+
id: string;
|
|
389
|
+
rating: string;
|
|
390
|
+
name: string;
|
|
391
|
+
owner: string;
|
|
392
|
+
site: string;
|
|
393
|
+
details?: string;
|
|
394
|
+
[key: string]: string | undefined;
|
|
395
|
+
};
|
|
396
|
+
type ColumnType = {
|
|
397
|
+
id: string;
|
|
398
|
+
title: string;
|
|
399
|
+
color: string;
|
|
400
|
+
items: Account[];
|
|
401
|
+
};
|
|
402
|
+
type KanbanBoardProps = {
|
|
403
|
+
data: Record<string, ColumnType>;
|
|
404
|
+
onDelete?: (account: Account) => void;
|
|
405
|
+
onOpen?: (account: Account) => void;
|
|
406
|
+
onColumnDelete?: (colId: (string | number)[]) => void;
|
|
407
|
+
onDrag?: ({ from, to, item, }: {
|
|
408
|
+
from: string;
|
|
409
|
+
to: string;
|
|
410
|
+
item: Account;
|
|
411
|
+
}) => void;
|
|
412
|
+
isLoading?: boolean;
|
|
413
|
+
};
|
|
414
|
+
|
|
415
|
+
declare const KanbanBoard: ({ data, onDrag, onDelete, onOpen, onColumnDelete, isLoading, }: KanbanBoardProps) => React$1.JSX.Element;
|
|
416
|
+
|
|
417
|
+
type LoadingProps = {
|
|
418
|
+
text?: string;
|
|
419
|
+
isLoading: boolean;
|
|
420
|
+
onlytext?: boolean;
|
|
421
|
+
};
|
|
422
|
+
|
|
423
|
+
declare function Loading({ text, isLoading, onlytext }: LoadingProps): React$1.JSX.Element | null;
|
|
424
|
+
|
|
425
|
+
type ChakraModelProps = Pick<ModalProps, "isOpen" | "onClose" | "finalFocusRef" | "blockScrollOnMount" | "initialFocusRef" | "closeOnOverlayClick" | "isCentered" | "motionPreset" | "scrollBehavior"> & {
|
|
426
|
+
overlaybg?: string;
|
|
427
|
+
overlaybackdropFilter?: string;
|
|
428
|
+
overlaybackdropInvert?: string;
|
|
429
|
+
overlaybackdropBlur?: string;
|
|
430
|
+
size: "xs" | "sm" | "md" | "lg" | "xl" | "full";
|
|
431
|
+
children?: React.ReactNode;
|
|
432
|
+
isLoading?: boolean;
|
|
433
|
+
};
|
|
434
|
+
|
|
435
|
+
declare const ModalHeader: React$1.FC<{
|
|
436
|
+
children: React$1.ReactNode;
|
|
437
|
+
}>;
|
|
438
|
+
declare const ModalBody: React$1.FC<{
|
|
439
|
+
children: React$1.ReactNode;
|
|
440
|
+
}>;
|
|
441
|
+
declare const ModalFooter: React$1.FC<{
|
|
442
|
+
children: React$1.ReactNode;
|
|
443
|
+
}>;
|
|
444
|
+
declare function Modal({ size, isOpen, onClose, overlaybg, overlaybackdropFilter, overlaybackdropInvert, overlaybackdropBlur, isCentered, finalFocusRef, blockScrollOnMount, initialFocusRef, closeOnOverlayClick, motionPreset, scrollBehavior, children, isLoading, }: ChakraModelProps): React$1.JSX.Element;
|
|
445
|
+
|
|
446
|
+
type MultiSelectProps = {
|
|
447
|
+
value: MultiSelctOPtions[];
|
|
448
|
+
onValueChange: (options: MultiSelctOPtions[]) => void;
|
|
449
|
+
width?: string;
|
|
450
|
+
label?: string;
|
|
451
|
+
id?: string;
|
|
452
|
+
name?: string;
|
|
453
|
+
isRequired?: boolean;
|
|
454
|
+
isInformation?: boolean;
|
|
455
|
+
informationMessage?: string;
|
|
456
|
+
placeholderText?: string;
|
|
457
|
+
isDisabled?: boolean;
|
|
458
|
+
isReadOnly?: boolean;
|
|
459
|
+
size?: string;
|
|
460
|
+
inputStyle?: {};
|
|
461
|
+
};
|
|
462
|
+
type MultiSelctOPtions = {
|
|
463
|
+
id: string;
|
|
464
|
+
label: string;
|
|
465
|
+
};
|
|
466
|
+
|
|
467
|
+
declare function MultiSelect({ value, onValueChange, width, label, isRequired, isInformation, informationMessage, name, id, placeholderText, isDisabled, isReadOnly, size, inputStyle, }: MultiSelectProps): React$1.JSX.Element;
|
|
468
|
+
|
|
469
|
+
type NavbarProps = {
|
|
470
|
+
userAvathar: string;
|
|
471
|
+
userName: string;
|
|
472
|
+
navMenu: MenuProps$1[];
|
|
473
|
+
moreIcon?: any;
|
|
474
|
+
handleNavOnClick: (url: string) => void;
|
|
475
|
+
handleLogout: () => void;
|
|
476
|
+
logoutText: string;
|
|
477
|
+
navigationBarText?: {
|
|
478
|
+
text: string;
|
|
479
|
+
onIconClick?: () => void;
|
|
480
|
+
};
|
|
481
|
+
};
|
|
482
|
+
type MenuProps$1 = {
|
|
483
|
+
title: string;
|
|
484
|
+
url: string;
|
|
485
|
+
icon?: React.ReactNode;
|
|
486
|
+
};
|
|
487
|
+
|
|
488
|
+
declare function NavBar({ userAvathar, userName, navMenu, moreIcon, handleNavOnClick, handleLogout, logoutText, navigationBarText, }: NavbarProps): React$1.JSX.Element;
|
|
489
|
+
|
|
490
|
+
type NoteTextAreaProps = {
|
|
491
|
+
width: number | string;
|
|
492
|
+
handleSubmit: (noteValue: string, titleValue: string, file: File[], resetState: void) => void;
|
|
493
|
+
value?: string;
|
|
494
|
+
title?: string;
|
|
495
|
+
file?: File[];
|
|
496
|
+
isEditable?: boolean;
|
|
497
|
+
handleCancel?: (isActive: boolean) => void;
|
|
498
|
+
saveButtonLoading: boolean;
|
|
499
|
+
maxFileSize?: number;
|
|
500
|
+
maxFilesSizeError?: string;
|
|
501
|
+
maxNoteWordCount?: number;
|
|
502
|
+
onChange?: (value: string) => void;
|
|
503
|
+
ref?: LegacyRef<HTMLInputElement>;
|
|
504
|
+
};
|
|
505
|
+
|
|
506
|
+
declare function NoteTextArea({ width, handleSubmit, handleCancel, value, title, file, isEditable, saveButtonLoading, maxFileSize, maxFilesSizeError, maxNoteWordCount, onChange, ref, }: NoteTextAreaProps): React$1.JSX.Element;
|
|
507
|
+
|
|
508
|
+
type NumberInputProps = Pick<NumberInputProps$1, "defaultValue" | "min" | "max" | "precision" | "step" | "clampValueOnBlur" | "keepWithinRange" | "value" | "onChange" | "size" | "maxW" | "allowMouseWheel"> & {
|
|
509
|
+
NumberIncrementStepperBg?: string;
|
|
510
|
+
NumberIncrementStepperActive?: ActiveStyle;
|
|
511
|
+
NumberIncrementStepperChildren?: string;
|
|
512
|
+
NumberDecrementStepperBg?: string;
|
|
513
|
+
NumberDecrementStepperChildren?: string;
|
|
514
|
+
NumberDecrementStepperActive?: ActiveStyle;
|
|
515
|
+
};
|
|
516
|
+
type ActiveStyle = {
|
|
517
|
+
bg: string;
|
|
518
|
+
};
|
|
519
|
+
|
|
520
|
+
declare function NumberInput({ defaultValue, min, max, precision, step, clampValueOnBlur, keepWithinRange, value, onChange, size, maxW, allowMouseWheel, NumberIncrementStepperBg, NumberIncrementStepperActive, NumberIncrementStepperChildren, NumberDecrementStepperBg, NumberDecrementStepperChildren, NumberDecrementStepperActive, }: NumberInputProps): React$1.JSX.Element;
|
|
521
|
+
|
|
522
|
+
type ChakraPinInputProps = Pick<PinInputProps, "otp" | "mask" | "defaultValue" | "placeholder" | "manageFocus" | "errorBorderColor" | "focusBorderColor" | "onChange" | "onComplete"> & {
|
|
523
|
+
type?: "alphanumeric" | "number";
|
|
524
|
+
size?: "xs" | "sm" | "md" | "lg";
|
|
525
|
+
variant?: "flushed" | "outline" | "filled" | "unstyled";
|
|
526
|
+
color?: "gray" | "red" | "orange" | "yellow" | "green" | "teal" | "blue" | "cyan" | "purple" | "pink" | "whiteAlpha" | "blackAlpha";
|
|
527
|
+
pins: number;
|
|
528
|
+
label?: string;
|
|
529
|
+
};
|
|
530
|
+
|
|
531
|
+
declare function PinInputs({ otp, mask, defaultValue, placeholder, manageFocus, errorBorderColor, focusBorderColor, onChange, onComplete, type, color, variant, pins, label, }: ChakraPinInputProps): React$1.JSX.Element;
|
|
532
|
+
|
|
533
|
+
type ProfileCardProps = Pick<CardProps$1, "direction" | "maxW" | "align" | "justify" | "overflow"> & {
|
|
534
|
+
children: React.ReactNode;
|
|
535
|
+
variant?: "elevated" | "outlein" | "filled" | "unstyled";
|
|
536
|
+
size?: "sm" | "md" | "lg";
|
|
537
|
+
color?: "whiteAlpha" | "blackAlpha" | "gray" | "red" | "orange" | "yellow" | "green" | "teal" | "blue" | "cyan" | "purple" | "pink";
|
|
538
|
+
dividercolor?: string;
|
|
539
|
+
dividersize?: string;
|
|
540
|
+
dividervariant?: "solid" | "dashed" | "dotted" | "double" | "groove" | "ridge" | "inset" | "outset";
|
|
541
|
+
CardStyle?: React.CSSProperties;
|
|
542
|
+
CardHeaderStyle?: React.CSSProperties;
|
|
543
|
+
CardBodyStyle?: React.CSSProperties;
|
|
544
|
+
borderTopColor?: boolean;
|
|
545
|
+
borderLeftColor?: boolean;
|
|
546
|
+
};
|
|
547
|
+
|
|
548
|
+
declare const ProfileCardHeader: React$1.FC<{
|
|
549
|
+
children: React$1.ReactNode;
|
|
550
|
+
}>;
|
|
551
|
+
declare const ProfileCardBody: React$1.FC<{
|
|
552
|
+
children: React$1.ReactNode;
|
|
553
|
+
}>;
|
|
554
|
+
declare const ProfileCardFooter: React$1.FC<{
|
|
555
|
+
children: React$1.ReactNode;
|
|
556
|
+
}>;
|
|
557
|
+
declare function ProfileCard({ maxW, align, variant, direction, justify, children, size, color, overflow, dividercolor, dividersize, dividervariant, CardStyle, CardHeaderStyle, CardBodyStyle, borderTopColor, borderLeftColor, }: ProfileCardProps): React$1.JSX.Element;
|
|
558
|
+
|
|
559
|
+
type ProfilePhotoViewerProps = {
|
|
560
|
+
photoUrl: string;
|
|
561
|
+
onPhotoChange: (photoUrl: File) => void;
|
|
562
|
+
imageWidth?: string;
|
|
563
|
+
imageAlt?: string;
|
|
564
|
+
imageObjectFit?: "cover" | "contain" | "fill" | "none" | "scale-down";
|
|
565
|
+
imageBorderRadius?: string;
|
|
566
|
+
isEditable?: boolean;
|
|
567
|
+
editIconSize?: string;
|
|
568
|
+
editIconPositionRight?: string;
|
|
569
|
+
editIconPositionBottom?: string;
|
|
570
|
+
isRound?: boolean;
|
|
571
|
+
boxStyle?: React.CSSProperties;
|
|
572
|
+
isView?: boolean;
|
|
573
|
+
style?: React.CSSProperties;
|
|
574
|
+
handleIsView?: () => void;
|
|
575
|
+
fallbackText?: string;
|
|
576
|
+
};
|
|
577
|
+
|
|
578
|
+
declare function ProfilePhotoViewer({ photoUrl, onPhotoChange, imageWidth, imageAlt, imageObjectFit, imageBorderRadius, editIconSize, editIconPositionRight, editIconPositionBottom, isRound, boxStyle, isEditable, isView, style, handleIsView, fallbackText, }: ProfilePhotoViewerProps): React$1.JSX.Element;
|
|
579
|
+
|
|
580
|
+
type ProgressBarProps = Pick<ProgressProps, "size" | "isIndeterminate" | "value" | "height" | "hasStripe" | "isAnimated" | "max" | "min"> & {
|
|
581
|
+
color?: "gray" | "red" | "orange" | "yellow" | "green" | "teal" | "blue" | "cyan" | "purple" | "pink" | "whiteAlpha" | "blackAlpha";
|
|
582
|
+
variant?: "solid" | "outline" | "ghost" | "link" | "unstyled";
|
|
583
|
+
size?: "lg" | "md" | "sm" | "xs";
|
|
584
|
+
};
|
|
585
|
+
|
|
586
|
+
declare function ProgressBar({ size, isIndeterminate, color, hasStripe, height, value, isAnimated, max, min, variant, }: ProgressBarProps): React$1.JSX.Element;
|
|
587
|
+
|
|
588
|
+
type ChakraRadioProps = Pick<RadioProps, "size" | "colorScheme" | "isChecked" | "onChange" | "isDisabled" | "value" | "defaultChecked"> & {
|
|
589
|
+
label: string;
|
|
590
|
+
};
|
|
591
|
+
type ChakraRadioGroupProps = Pick<RadioGroupProps, "size" | "colorScheme" | "isDisabled" | "defaultValue" | "value"> & {
|
|
592
|
+
options: {
|
|
593
|
+
label: string;
|
|
594
|
+
id: string;
|
|
595
|
+
}[];
|
|
596
|
+
onChange?: (value: string) => void;
|
|
597
|
+
};
|
|
598
|
+
|
|
599
|
+
declare const RadioButton: ({ label, colorScheme, isChecked, onChange, isDisabled, size, value, defaultChecked, }: ChakraRadioProps) => React$1.JSX.Element;
|
|
600
|
+
declare const RadioButtonGroup: ({ options, onChange, value, defaultValue, isDisabled, size, colorScheme, }: ChakraRadioGroupProps) => React$1.JSX.Element;
|
|
601
|
+
|
|
602
|
+
interface ReorderItem {
|
|
603
|
+
id: string;
|
|
604
|
+
previewUrl: string;
|
|
605
|
+
name?: string;
|
|
606
|
+
}
|
|
607
|
+
interface ReorderListProps<T extends ReorderItem> {
|
|
608
|
+
label?: string;
|
|
609
|
+
items: T[];
|
|
610
|
+
onReorder: (items: T[]) => void;
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
declare const ReorderList: <T extends ReorderItem>({ label, items, onReorder, }: ReorderListProps<T>) => JSX.Element;
|
|
614
|
+
|
|
615
|
+
type SearchProps = {
|
|
616
|
+
placeholder?: string;
|
|
617
|
+
onSearch: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
618
|
+
shortcut?: "Ctrl+K";
|
|
619
|
+
query?: string;
|
|
620
|
+
onclose: () => void;
|
|
621
|
+
};
|
|
622
|
+
|
|
623
|
+
declare function Search({ placeholder, onSearch, onclose, shortcut, query, }: SearchProps): React$1.JSX.Element;
|
|
624
|
+
|
|
625
|
+
declare function Select({ placeholder, size, variant, icon, onChange, onBlur, onFocus, errorBorderColor, isDisabled, isReadOnly, isRequired, value, colorScheme, label, error, errorMessage, helperText, options, width, height, formControlStyle, isInformation, informationMessage, selectStyle, }: chakraSelectProps): React$1.JSX.Element;
|
|
626
|
+
|
|
627
|
+
type SearchSelectProps = {
|
|
628
|
+
id?: string;
|
|
629
|
+
label?: string;
|
|
630
|
+
options: Options[];
|
|
631
|
+
onSelect?: (options: Options | Options[] | undefined) => void;
|
|
632
|
+
onSearch?: (value: string) => void;
|
|
633
|
+
isOptionLoading?: boolean;
|
|
634
|
+
isLoading?: boolean;
|
|
635
|
+
loadingText?: string;
|
|
636
|
+
placeholder?: string;
|
|
637
|
+
value?: Options[] | Options;
|
|
638
|
+
searchQuery?: string;
|
|
639
|
+
isMultiple?: boolean;
|
|
640
|
+
isRequired?: boolean;
|
|
641
|
+
error?: boolean;
|
|
642
|
+
errorMessage?: string;
|
|
643
|
+
helperText?: string;
|
|
644
|
+
width?: string | number;
|
|
645
|
+
height?: string | number;
|
|
646
|
+
size?: "xs" | "sm" | "md" | "lg";
|
|
647
|
+
chip?: {
|
|
648
|
+
maxChips?: number;
|
|
649
|
+
maxText?: number;
|
|
650
|
+
onClick?: (options: Options | Options[]) => void;
|
|
651
|
+
};
|
|
652
|
+
information?: {
|
|
653
|
+
isInformation?: boolean;
|
|
654
|
+
informationMessage?: string;
|
|
655
|
+
};
|
|
656
|
+
rightIcon?: {
|
|
657
|
+
icon?: React.ReactNode;
|
|
658
|
+
onClick?: () => void;
|
|
659
|
+
};
|
|
660
|
+
addNew?: {
|
|
661
|
+
enabled: boolean;
|
|
662
|
+
icon?: React.ReactNode;
|
|
663
|
+
text?: string;
|
|
664
|
+
onClick?: () => void;
|
|
665
|
+
};
|
|
666
|
+
isRemoveAllIcon?: boolean;
|
|
667
|
+
isSelectAll?: boolean;
|
|
668
|
+
pagination?: {
|
|
669
|
+
onScroll?: (startIndex: number, limit: number, query: string) => void;
|
|
670
|
+
limit?: number;
|
|
671
|
+
scrollLoading?: boolean;
|
|
672
|
+
};
|
|
673
|
+
virtualization?: boolean;
|
|
674
|
+
insideSelect?: {
|
|
675
|
+
onSelect?: (options: Options) => void;
|
|
676
|
+
value?: Options;
|
|
677
|
+
option?: Options[];
|
|
678
|
+
width?: string;
|
|
679
|
+
};
|
|
680
|
+
};
|
|
681
|
+
type Options = {
|
|
682
|
+
id: string | number;
|
|
683
|
+
label: string;
|
|
684
|
+
view?: React.ReactNode;
|
|
685
|
+
};
|
|
686
|
+
|
|
687
|
+
declare const SearchSelect: ({ id, label, options, onSelect, onSearch, isOptionLoading, isLoading, loadingText, placeholder, value, searchQuery, isMultiple, isRequired, error, errorMessage, helperText, width, height, size, chip, information, rightIcon, addNew, isSelectAll, pagination, insideSelect, isRemoveAllIcon }: SearchSelectProps) => React$1.JSX.Element;
|
|
688
|
+
|
|
689
|
+
type SelectSearchProps = {
|
|
690
|
+
options: selectOptions[];
|
|
691
|
+
isSearchEnabled?: boolean;
|
|
692
|
+
initialSelectedOption?: selectOptions | null;
|
|
693
|
+
onOptionSelect?: (option: selectOptions) => void;
|
|
694
|
+
onOptionMultiSelect?: (option: selectOptions[]) => void;
|
|
695
|
+
inputOnchange: (value: string | number) => void;
|
|
696
|
+
id?: string;
|
|
697
|
+
name?: string;
|
|
698
|
+
label?: string;
|
|
699
|
+
inputStyle?: React.CSSProperties;
|
|
700
|
+
dropdownStyle?: React.CSSProperties;
|
|
701
|
+
boxStyle?: React.CSSProperties;
|
|
702
|
+
isOptionLoading?: boolean;
|
|
703
|
+
loadingText?: string;
|
|
704
|
+
placeholder?: string;
|
|
705
|
+
searchQuery: string | null;
|
|
706
|
+
isInformation?: boolean;
|
|
707
|
+
informationMessage?: string;
|
|
708
|
+
rightIcon?: React.ReactNode;
|
|
709
|
+
rightElementStyle?: {};
|
|
710
|
+
isMultipleSelect?: boolean;
|
|
711
|
+
isRequired?: boolean | undefined;
|
|
712
|
+
error?: boolean | undefined;
|
|
713
|
+
isProfile?: boolean | undefined;
|
|
714
|
+
isColorOptions?: boolean | undefined;
|
|
715
|
+
errorMessage?: string | undefined;
|
|
716
|
+
isBottomIcon?: boolean | undefined;
|
|
717
|
+
BottomIcon?: boolean | undefined | JSX.Element;
|
|
718
|
+
BottomIconStyle?: React.CSSProperties;
|
|
719
|
+
BottomText?: string | number;
|
|
720
|
+
BottomTextColor?: React.CSSProperties;
|
|
721
|
+
handleBottomClick?: () => void;
|
|
722
|
+
};
|
|
723
|
+
type selectOptions = {
|
|
724
|
+
id: string;
|
|
725
|
+
label: string;
|
|
726
|
+
email?: string;
|
|
727
|
+
profileUrl?: string;
|
|
728
|
+
color?: string;
|
|
729
|
+
};
|
|
730
|
+
|
|
731
|
+
declare function SelectSearch({ options, initialSelectedOption, onOptionSelect, inputOnchange, id, name, label, dropdownStyle, inputStyle, isOptionLoading, loadingText, boxStyle, placeholder, searchQuery, isInformation, informationMessage, rightIcon, rightElementStyle, isMultipleSelect, isRequired, onOptionMultiSelect, error, isProfile, isBottomIcon, errorMessage, BottomIcon, BottomText, handleBottomClick, BottomTextColor, isColorOptions, }: Readonly<SelectSearchProps>): React$1.JSX.Element;
|
|
732
|
+
|
|
733
|
+
type SidebarProps = {
|
|
734
|
+
menus: MenuProps[];
|
|
735
|
+
activeMenu: string;
|
|
736
|
+
handleMenuClick?: (menu: MenuProps) => void;
|
|
737
|
+
toggle: boolean;
|
|
738
|
+
changeToggle: () => void;
|
|
739
|
+
logo?: string;
|
|
740
|
+
companyName: string;
|
|
741
|
+
isDisableAddNew?: boolean;
|
|
742
|
+
onAddNewClick?: () => void;
|
|
743
|
+
selectedSubMenu?: string | null;
|
|
744
|
+
};
|
|
745
|
+
type MenuProps = {
|
|
746
|
+
id: string | number;
|
|
747
|
+
title: string;
|
|
748
|
+
icon: any;
|
|
749
|
+
url: string;
|
|
750
|
+
disabled?: boolean;
|
|
751
|
+
locked?: boolean;
|
|
752
|
+
badge?: string | number;
|
|
753
|
+
subMenu?: MenuProps[];
|
|
754
|
+
};
|
|
755
|
+
|
|
756
|
+
declare function Sidebar({ menus, activeMenu, handleMenuClick, toggle, changeToggle, logo, companyName, isDisableAddNew, onAddNewClick, selectedSubMenu, }: SidebarProps): React$1.JSX.Element;
|
|
757
|
+
|
|
758
|
+
type ImageSliderProps = {
|
|
759
|
+
images: string[];
|
|
760
|
+
interval?: number;
|
|
761
|
+
isArrow?: boolean;
|
|
762
|
+
};
|
|
763
|
+
declare const Slider: React$1.FC<ImageSliderProps>;
|
|
764
|
+
|
|
765
|
+
type SkeletonProps = Pick<SkeletonProps$1, "startColor" | "endColor" | "height" | "isLoaded" | "bg" | "color" | "fadeDuration" | "children" | "speed" | "size" | "mt" | "noOfLines" | "width"> & {
|
|
766
|
+
type: "skeleton" | "circle" | "text";
|
|
767
|
+
} & Partial<Pick<SkeletonTextProps, "spacing" | "skeletonHeight">>;
|
|
768
|
+
|
|
769
|
+
declare function Skeletons({ startColor, endColor, height, isLoaded, bg, color, fadeDuration, children, type, speed, size, mt, noOfLines, spacing, skeletonHeight, width, }: SkeletonProps): React$1.JSX.Element;
|
|
770
|
+
|
|
771
|
+
type SwitchProps = {
|
|
772
|
+
leftText: string;
|
|
773
|
+
rightText: string;
|
|
774
|
+
leftIcon?: JSX.Element;
|
|
775
|
+
rightIcon?: JSX.Element;
|
|
776
|
+
onSwitchToggle: (value: "left" | "right") => void;
|
|
777
|
+
switchActive: "left" | "right";
|
|
778
|
+
};
|
|
779
|
+
|
|
780
|
+
declare function Switch({ leftText, rightText, leftIcon, rightIcon, onSwitchToggle, switchActive, }: SwitchProps): React$1.JSX.Element;
|
|
781
|
+
|
|
782
|
+
type TableProps = {
|
|
783
|
+
data: DataObject[];
|
|
784
|
+
columns: TableHeaderProps[];
|
|
785
|
+
handleExportChange?: (value: string) => void | undefined;
|
|
786
|
+
exportOptions?: ExportOption[];
|
|
787
|
+
exportLabel?: string;
|
|
788
|
+
isLoading?: boolean;
|
|
789
|
+
isVisiblity?: boolean;
|
|
790
|
+
isCheckbox?: boolean;
|
|
791
|
+
headerBgColor?: string;
|
|
792
|
+
freezedBgColor?: string;
|
|
793
|
+
headerTextColor?: string;
|
|
794
|
+
freezedTextColor?: string;
|
|
795
|
+
tableBorderColor?: string;
|
|
796
|
+
noBorders?: boolean;
|
|
797
|
+
onSelection?: (selected: (string | number)[]) => void;
|
|
798
|
+
isPagination?: boolean;
|
|
799
|
+
selections?: (string | number)[];
|
|
800
|
+
onRowClick?: (row: DataObject, header: Record<string | number, string | number>) => void;
|
|
801
|
+
isActionFreeze?: boolean;
|
|
802
|
+
preferencesUrl?: string;
|
|
803
|
+
preferencesKey?: string;
|
|
804
|
+
preferencesName?: string;
|
|
805
|
+
preferencesPage?: string;
|
|
806
|
+
authToken?: string;
|
|
807
|
+
paginationMode?: "client" | "server";
|
|
808
|
+
noOfRowsPerPage?: number;
|
|
809
|
+
totalRecords?: number;
|
|
810
|
+
onPagination?: (page: number, noOfRecords: number) => void;
|
|
811
|
+
isTableSettings?: boolean;
|
|
812
|
+
headerActions?: HeaderActionsProps;
|
|
813
|
+
};
|
|
814
|
+
type HeaderActionsProps = {
|
|
815
|
+
isDelete?: {
|
|
816
|
+
enabled?: boolean;
|
|
817
|
+
onClick?: (selection: (string | number)[]) => void;
|
|
818
|
+
};
|
|
819
|
+
isUpdate?: {
|
|
820
|
+
enabled?: boolean;
|
|
821
|
+
onClick?: (selection: (string | number)[]) => void;
|
|
822
|
+
};
|
|
823
|
+
items?: {
|
|
824
|
+
icon: React.ReactElement;
|
|
825
|
+
name: string;
|
|
826
|
+
onClick?: (selection: (string | number)[]) => void;
|
|
827
|
+
}[];
|
|
828
|
+
};
|
|
829
|
+
type DataObject = {
|
|
830
|
+
[key: string]: string | number | any;
|
|
831
|
+
};
|
|
832
|
+
type TableHeaderProps = {
|
|
833
|
+
label: string | number;
|
|
834
|
+
id: string | number;
|
|
835
|
+
isSort?: boolean;
|
|
836
|
+
isSearch?: boolean;
|
|
837
|
+
isFreeze?: boolean;
|
|
838
|
+
isHidden?: boolean;
|
|
839
|
+
node?: (data: DataObject) => JSX.Element | string | number | undefined;
|
|
840
|
+
};
|
|
841
|
+
type ExportOption = {
|
|
842
|
+
label: string;
|
|
843
|
+
id: string;
|
|
844
|
+
};
|
|
845
|
+
|
|
846
|
+
declare function Table({ data, columns, onSelection, isLoading, isCheckbox, headerBgColor, freezedBgColor, headerTextColor, freezedTextColor, tableBorderColor, noBorders, isPagination, onRowClick, selections, isActionFreeze, preferencesUrl, preferencesKey, preferencesName, preferencesPage, authToken, paginationMode, noOfRowsPerPage, totalRecords, onPagination, isTableSettings, headerActions, }: TableProps): React$1.JSX.Element;
|
|
847
|
+
|
|
848
|
+
interface ChipProps {
|
|
849
|
+
label: string;
|
|
850
|
+
onIconClick?: () => void;
|
|
851
|
+
onTagClick?: () => void;
|
|
852
|
+
icon?: ElementType;
|
|
853
|
+
colorScheme?: "primary" | "secondary" | "tertiary" | "gray" | "red" | "orange" | "yellow" | "green" | "teal" | "blue" | "cyan" | "purple" | "pink";
|
|
854
|
+
size?: "sm" | "md" | "lg";
|
|
855
|
+
variant?: "solid" | "outline";
|
|
856
|
+
}
|
|
857
|
+
declare const Tag: React$1.FC<ChipProps>;
|
|
858
|
+
|
|
859
|
+
type TextInputProps = Pick<InputProps, "value" | "type" | "onChange" | "placeholder" | "onBlur" | "onFocus" | "isDisabled" | "isRequired" | "isReadOnly" | "width" | "height" | "errorBorderColor" | "size" | "onKeyDown" | "onKeyUp" | "onMouseEnter" | "onMouseLeave"> & {
|
|
860
|
+
label?: string;
|
|
861
|
+
id?: string;
|
|
862
|
+
name?: string;
|
|
863
|
+
error?: boolean;
|
|
864
|
+
errorMessage?: string;
|
|
865
|
+
helperText?: string;
|
|
866
|
+
onRightIconclick?: () => void;
|
|
867
|
+
inputRightIcon?: any;
|
|
868
|
+
onLeftIconClick?: () => void;
|
|
869
|
+
inputLeftIcon?: any;
|
|
870
|
+
inputStyle?: {};
|
|
871
|
+
inputGroupStyle?: {};
|
|
872
|
+
isInformation?: boolean;
|
|
873
|
+
informationMessage?: string;
|
|
874
|
+
leftElementStyle?: {};
|
|
875
|
+
rightElementStyle?: {};
|
|
876
|
+
ref?: React.Ref<HTMLInputElement>;
|
|
877
|
+
autoComplete?: string;
|
|
878
|
+
minW?: string;
|
|
879
|
+
maxW?: string;
|
|
880
|
+
};
|
|
881
|
+
|
|
882
|
+
declare const _default: React$1.MemoExoticComponent<React$1.ForwardRefExoticComponent<Omit<TextInputProps, "ref"> & React$1.RefAttributes<HTMLInputElement>>>;
|
|
883
|
+
|
|
884
|
+
interface TimelineProps {
|
|
885
|
+
events?: TimelineEvent[];
|
|
886
|
+
timelineEvents: TimelineEvents[];
|
|
887
|
+
onEventClick?: (event: TimelineEvents, index: number) => void;
|
|
888
|
+
}
|
|
889
|
+
interface TimelineEvent {
|
|
890
|
+
title: string;
|
|
891
|
+
description: string;
|
|
892
|
+
time: string;
|
|
893
|
+
}
|
|
894
|
+
interface TimelineEvents {
|
|
895
|
+
logs_id: number;
|
|
896
|
+
title: string;
|
|
897
|
+
primary_id: number;
|
|
898
|
+
is_from: string;
|
|
899
|
+
action_from: string;
|
|
900
|
+
action_by: string;
|
|
901
|
+
created_at: number;
|
|
902
|
+
changes: any;
|
|
903
|
+
}
|
|
904
|
+
|
|
905
|
+
declare const Timeline: ({ timelineEvents }: TimelineProps) => React$1.JSX.Element;
|
|
906
|
+
|
|
907
|
+
type ToasterToastProps = Pick<ToastProps, 'description' | 'title' | 'isClosable' | 'duration' | 'children' | 'onClose'> & {
|
|
908
|
+
position?: "top" | "bottom" | "top-right" | "top-left" | "bottom-right" | "bottom-left";
|
|
909
|
+
status?: "success" | "error" | "warning" | "info" | "loading";
|
|
910
|
+
};
|
|
911
|
+
interface ToasterContextType {
|
|
912
|
+
showToast: (children: ToasterToastProps) => void;
|
|
913
|
+
}
|
|
914
|
+
interface ToasterChildren {
|
|
915
|
+
children: ReactNode;
|
|
916
|
+
}
|
|
917
|
+
|
|
918
|
+
declare function ToasterProvider({ children }: ToasterChildren): React$1.JSX.Element;
|
|
919
|
+
declare const useToaster: () => ToasterContextType;
|
|
920
|
+
|
|
921
|
+
type ToolTipProps = Pick<TooltipProps, "placement" | "label" | "hasArrow" | "fontSize" | "bg" | "color" | "isDisabled" | "isOpen" | "defaultIsOpen" | "openDelay" | "closeDelay" | "arrowSize" | "closeOnClick" | "size" | "width" | "height" | "arrowPadding" | "arrowShadowColor" | "direction" | "gutter" | "onClose" | "modifiers" | "closeOnPointerDown"> & {
|
|
922
|
+
children: React.ReactNode;
|
|
923
|
+
styles?: React.CSSProperties;
|
|
924
|
+
placement: "auto" | "auto-start" | "auto-end" | "top" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
|
|
925
|
+
};
|
|
926
|
+
|
|
927
|
+
declare function ToolTip({ placement, label, children, hasArrow, fontSize, bg, color, isDisabled, isOpen, defaultIsOpen, openDelay, closeDelay, arrowSize, closeOnClick, size, width, height, arrowPadding, arrowShadowColor, direction, gutter, onClose, modifiers, closeOnPointerDown, styles, }: ToolTipProps): React$1.JSX.Element;
|
|
928
|
+
|
|
929
|
+
type VerifyEmailOtpProps = {
|
|
930
|
+
resendMail: () => void;
|
|
931
|
+
onChange: (value: string) => void;
|
|
932
|
+
onComplete: (value: string) => void;
|
|
933
|
+
placeholder?: string;
|
|
934
|
+
pins: number;
|
|
935
|
+
title: string;
|
|
936
|
+
description: string;
|
|
937
|
+
isDisabled?: boolean;
|
|
938
|
+
isInvalid?: boolean;
|
|
939
|
+
styles?: React.CSSProperties;
|
|
940
|
+
};
|
|
941
|
+
|
|
942
|
+
declare function VerifyEmailOtp({ resendMail, onChange, onComplete, placeholder, pins, description, title, isDisabled, isInvalid, styles, }: VerifyEmailOtpProps): React$1.JSX.Element;
|
|
943
|
+
|
|
944
|
+
type ViewMode = "grid" | "list";
|
|
945
|
+
type ViewToggleProps = {
|
|
946
|
+
value: ViewMode;
|
|
947
|
+
onChange: (val: ViewMode) => void;
|
|
948
|
+
};
|
|
949
|
+
|
|
950
|
+
declare const TableToggle: React$1.FC<ViewToggleProps>;
|
|
951
|
+
|
|
952
|
+
type ProductCardProps = {
|
|
953
|
+
label: string;
|
|
954
|
+
description?: string;
|
|
955
|
+
productImage: productImage;
|
|
956
|
+
tags?: string[];
|
|
957
|
+
rating?: string | number;
|
|
958
|
+
reviews?: string | number;
|
|
959
|
+
options?: options[];
|
|
960
|
+
onClick?: () => void;
|
|
961
|
+
onAddToCart?: () => void;
|
|
962
|
+
bag?: bag;
|
|
963
|
+
};
|
|
964
|
+
type options = {
|
|
965
|
+
label: string;
|
|
966
|
+
weight: number;
|
|
967
|
+
price: number;
|
|
968
|
+
offer: number;
|
|
969
|
+
};
|
|
970
|
+
type bag = {
|
|
971
|
+
label: string;
|
|
972
|
+
color?: string;
|
|
973
|
+
};
|
|
974
|
+
type productImage = {
|
|
975
|
+
visibile: string;
|
|
976
|
+
hover?: string;
|
|
977
|
+
};
|
|
978
|
+
|
|
979
|
+
declare const ProductCard: ({ label, productImage, rating, reviews, tags, options, onAddToCart, bag, description, }: ProductCardProps) => React$1.JSX.Element;
|
|
980
|
+
|
|
981
|
+
declare const withTheme: (Component: React$1.ComponentType, theme?: any) => (props: any) => React$1.JSX.Element;
|
|
982
|
+
|
|
983
|
+
type CustomThemeProps = {
|
|
984
|
+
colors: {
|
|
985
|
+
primary: {
|
|
986
|
+
50: string;
|
|
987
|
+
100: string;
|
|
988
|
+
200: string;
|
|
989
|
+
300: string;
|
|
990
|
+
400: string;
|
|
991
|
+
500: string;
|
|
992
|
+
600: string;
|
|
993
|
+
700: string;
|
|
994
|
+
800: string;
|
|
995
|
+
900: string;
|
|
996
|
+
opacity: {
|
|
997
|
+
4: string;
|
|
998
|
+
8: string;
|
|
999
|
+
16: string;
|
|
1000
|
+
24: string;
|
|
1001
|
+
32: string;
|
|
1002
|
+
40: string;
|
|
1003
|
+
48: string;
|
|
1004
|
+
};
|
|
1005
|
+
};
|
|
1006
|
+
secondary: {
|
|
1007
|
+
50: string;
|
|
1008
|
+
100: string;
|
|
1009
|
+
200: string;
|
|
1010
|
+
300: string;
|
|
1011
|
+
400: string;
|
|
1012
|
+
500: string;
|
|
1013
|
+
600: string;
|
|
1014
|
+
700: string;
|
|
1015
|
+
800: string;
|
|
1016
|
+
900: string;
|
|
1017
|
+
opacity: {
|
|
1018
|
+
4: string;
|
|
1019
|
+
8: string;
|
|
1020
|
+
16: string;
|
|
1021
|
+
24: string;
|
|
1022
|
+
32: string;
|
|
1023
|
+
40: string;
|
|
1024
|
+
48: string;
|
|
1025
|
+
};
|
|
1026
|
+
};
|
|
1027
|
+
tertiary: {
|
|
1028
|
+
50: string;
|
|
1029
|
+
100: string;
|
|
1030
|
+
200: string;
|
|
1031
|
+
300: string;
|
|
1032
|
+
400: string;
|
|
1033
|
+
500: string;
|
|
1034
|
+
600: string;
|
|
1035
|
+
700: string;
|
|
1036
|
+
800: string;
|
|
1037
|
+
900: string;
|
|
1038
|
+
opacity: {
|
|
1039
|
+
4: string;
|
|
1040
|
+
8: string;
|
|
1041
|
+
16: string;
|
|
1042
|
+
24: string;
|
|
1043
|
+
32: string;
|
|
1044
|
+
40: string;
|
|
1045
|
+
48: string;
|
|
1046
|
+
};
|
|
1047
|
+
};
|
|
1048
|
+
transparent: string;
|
|
1049
|
+
black: string;
|
|
1050
|
+
white: string;
|
|
1051
|
+
semantic: {
|
|
1052
|
+
success: {
|
|
1053
|
+
50: string;
|
|
1054
|
+
100: string;
|
|
1055
|
+
200: string;
|
|
1056
|
+
300: string;
|
|
1057
|
+
400: string;
|
|
1058
|
+
500: string;
|
|
1059
|
+
600: string;
|
|
1060
|
+
700: string;
|
|
1061
|
+
800: string;
|
|
1062
|
+
900: string;
|
|
1063
|
+
};
|
|
1064
|
+
error: {
|
|
1065
|
+
50: string;
|
|
1066
|
+
100: string;
|
|
1067
|
+
200: string;
|
|
1068
|
+
300: string;
|
|
1069
|
+
400: string;
|
|
1070
|
+
500: string;
|
|
1071
|
+
600: string;
|
|
1072
|
+
700: string;
|
|
1073
|
+
800: string;
|
|
1074
|
+
900: string;
|
|
1075
|
+
};
|
|
1076
|
+
warning: {
|
|
1077
|
+
50: string;
|
|
1078
|
+
100: string;
|
|
1079
|
+
200: string;
|
|
1080
|
+
300: string;
|
|
1081
|
+
400: string;
|
|
1082
|
+
500: string;
|
|
1083
|
+
600: string;
|
|
1084
|
+
700: string;
|
|
1085
|
+
800: string;
|
|
1086
|
+
900: string;
|
|
1087
|
+
};
|
|
1088
|
+
info: {
|
|
1089
|
+
50: string;
|
|
1090
|
+
100: string;
|
|
1091
|
+
200: string;
|
|
1092
|
+
300: string;
|
|
1093
|
+
400: string;
|
|
1094
|
+
500: string;
|
|
1095
|
+
600: string;
|
|
1096
|
+
700: string;
|
|
1097
|
+
800: string;
|
|
1098
|
+
900: string;
|
|
1099
|
+
};
|
|
1100
|
+
};
|
|
1101
|
+
gray: {
|
|
1102
|
+
50: string;
|
|
1103
|
+
100: string;
|
|
1104
|
+
200: string;
|
|
1105
|
+
300: string;
|
|
1106
|
+
400: string;
|
|
1107
|
+
500: string;
|
|
1108
|
+
600: string;
|
|
1109
|
+
700: string;
|
|
1110
|
+
800: string;
|
|
1111
|
+
900: string;
|
|
1112
|
+
};
|
|
1113
|
+
red: {
|
|
1114
|
+
50: string;
|
|
1115
|
+
100: string;
|
|
1116
|
+
200: string;
|
|
1117
|
+
300: string;
|
|
1118
|
+
400: string;
|
|
1119
|
+
500: string;
|
|
1120
|
+
600: string;
|
|
1121
|
+
700: string;
|
|
1122
|
+
800: string;
|
|
1123
|
+
900: string;
|
|
1124
|
+
};
|
|
1125
|
+
orange: {
|
|
1126
|
+
50: string;
|
|
1127
|
+
100: string;
|
|
1128
|
+
200: string;
|
|
1129
|
+
300: string;
|
|
1130
|
+
400: string;
|
|
1131
|
+
500: string;
|
|
1132
|
+
600: string;
|
|
1133
|
+
700: string;
|
|
1134
|
+
800: string;
|
|
1135
|
+
900: string;
|
|
1136
|
+
};
|
|
1137
|
+
yellow: {
|
|
1138
|
+
50: string;
|
|
1139
|
+
100: string;
|
|
1140
|
+
200: string;
|
|
1141
|
+
300: string;
|
|
1142
|
+
400: string;
|
|
1143
|
+
500: string;
|
|
1144
|
+
600: string;
|
|
1145
|
+
700: string;
|
|
1146
|
+
800: string;
|
|
1147
|
+
900: string;
|
|
1148
|
+
};
|
|
1149
|
+
green: {
|
|
1150
|
+
50: string;
|
|
1151
|
+
100: string;
|
|
1152
|
+
200: string;
|
|
1153
|
+
300: string;
|
|
1154
|
+
400: string;
|
|
1155
|
+
500: string;
|
|
1156
|
+
600: string;
|
|
1157
|
+
700: string;
|
|
1158
|
+
800: string;
|
|
1159
|
+
900: string;
|
|
1160
|
+
};
|
|
1161
|
+
teal: {
|
|
1162
|
+
50: string;
|
|
1163
|
+
100: string;
|
|
1164
|
+
200: string;
|
|
1165
|
+
300: string;
|
|
1166
|
+
400: string;
|
|
1167
|
+
500: string;
|
|
1168
|
+
600: string;
|
|
1169
|
+
700: string;
|
|
1170
|
+
800: string;
|
|
1171
|
+
900: string;
|
|
1172
|
+
};
|
|
1173
|
+
blue: {
|
|
1174
|
+
50: string;
|
|
1175
|
+
100: string;
|
|
1176
|
+
200: string;
|
|
1177
|
+
300: string;
|
|
1178
|
+
400: string;
|
|
1179
|
+
500: string;
|
|
1180
|
+
600: string;
|
|
1181
|
+
700: string;
|
|
1182
|
+
800: string;
|
|
1183
|
+
900: string;
|
|
1184
|
+
};
|
|
1185
|
+
cyan: {
|
|
1186
|
+
50: string;
|
|
1187
|
+
100: string;
|
|
1188
|
+
200: string;
|
|
1189
|
+
300: string;
|
|
1190
|
+
400: string;
|
|
1191
|
+
500: string;
|
|
1192
|
+
600: string;
|
|
1193
|
+
700: string;
|
|
1194
|
+
800: string;
|
|
1195
|
+
900: string;
|
|
1196
|
+
};
|
|
1197
|
+
purple: {
|
|
1198
|
+
50: string;
|
|
1199
|
+
100: string;
|
|
1200
|
+
200: string;
|
|
1201
|
+
300: string;
|
|
1202
|
+
400: string;
|
|
1203
|
+
500: string;
|
|
1204
|
+
600: string;
|
|
1205
|
+
700: string;
|
|
1206
|
+
800: string;
|
|
1207
|
+
900: string;
|
|
1208
|
+
};
|
|
1209
|
+
pink: {
|
|
1210
|
+
50: string;
|
|
1211
|
+
100: string;
|
|
1212
|
+
200: string;
|
|
1213
|
+
300: string;
|
|
1214
|
+
400: string;
|
|
1215
|
+
500: string;
|
|
1216
|
+
600: string;
|
|
1217
|
+
700: string;
|
|
1218
|
+
800: string;
|
|
1219
|
+
900: string;
|
|
1220
|
+
};
|
|
1221
|
+
background: {
|
|
1222
|
+
50: string;
|
|
1223
|
+
100: string;
|
|
1224
|
+
200: string;
|
|
1225
|
+
300: string;
|
|
1226
|
+
400: string;
|
|
1227
|
+
500: string;
|
|
1228
|
+
600: string;
|
|
1229
|
+
700: string;
|
|
1230
|
+
800: string;
|
|
1231
|
+
900: string;
|
|
1232
|
+
};
|
|
1233
|
+
text: {
|
|
1234
|
+
50: string;
|
|
1235
|
+
100: string;
|
|
1236
|
+
200: string;
|
|
1237
|
+
300: string;
|
|
1238
|
+
400: string;
|
|
1239
|
+
500: string;
|
|
1240
|
+
600: string;
|
|
1241
|
+
700: string;
|
|
1242
|
+
800: string;
|
|
1243
|
+
900: string;
|
|
1244
|
+
};
|
|
1245
|
+
header: {
|
|
1246
|
+
50: string;
|
|
1247
|
+
100: string;
|
|
1248
|
+
200: string;
|
|
1249
|
+
300: string;
|
|
1250
|
+
400: string;
|
|
1251
|
+
500: string;
|
|
1252
|
+
600: string;
|
|
1253
|
+
700: string;
|
|
1254
|
+
800: string;
|
|
1255
|
+
900: string;
|
|
1256
|
+
};
|
|
1257
|
+
placeholder: {
|
|
1258
|
+
50: string;
|
|
1259
|
+
100: string;
|
|
1260
|
+
200: string;
|
|
1261
|
+
300: string;
|
|
1262
|
+
400: string;
|
|
1263
|
+
500: string;
|
|
1264
|
+
600: string;
|
|
1265
|
+
700: string;
|
|
1266
|
+
800: string;
|
|
1267
|
+
900: string;
|
|
1268
|
+
};
|
|
1269
|
+
boxShadow: {
|
|
1270
|
+
primary: string;
|
|
1271
|
+
error: string;
|
|
1272
|
+
default: string;
|
|
1273
|
+
};
|
|
1274
|
+
sidebar: {
|
|
1275
|
+
background: {
|
|
1276
|
+
50: string;
|
|
1277
|
+
100: string;
|
|
1278
|
+
200: string;
|
|
1279
|
+
300: string;
|
|
1280
|
+
400: string;
|
|
1281
|
+
500: string;
|
|
1282
|
+
600: string;
|
|
1283
|
+
700: string;
|
|
1284
|
+
800: string;
|
|
1285
|
+
900: string;
|
|
1286
|
+
};
|
|
1287
|
+
};
|
|
1288
|
+
boxborder: {
|
|
1289
|
+
50: string;
|
|
1290
|
+
100: string;
|
|
1291
|
+
200: string;
|
|
1292
|
+
300: string;
|
|
1293
|
+
400: string;
|
|
1294
|
+
500: string;
|
|
1295
|
+
600: string;
|
|
1296
|
+
700: string;
|
|
1297
|
+
800: string;
|
|
1298
|
+
900: string;
|
|
1299
|
+
};
|
|
1300
|
+
border: {
|
|
1301
|
+
50: string;
|
|
1302
|
+
100: string;
|
|
1303
|
+
200: string;
|
|
1304
|
+
300: string;
|
|
1305
|
+
400: string;
|
|
1306
|
+
500: string;
|
|
1307
|
+
600: string;
|
|
1308
|
+
700: string;
|
|
1309
|
+
800: string;
|
|
1310
|
+
900: string;
|
|
1311
|
+
};
|
|
1312
|
+
table: {
|
|
1313
|
+
hover: {
|
|
1314
|
+
50: string;
|
|
1315
|
+
100: string;
|
|
1316
|
+
200: string;
|
|
1317
|
+
300: string;
|
|
1318
|
+
400: string;
|
|
1319
|
+
500: string;
|
|
1320
|
+
600: string;
|
|
1321
|
+
700: string;
|
|
1322
|
+
800: string;
|
|
1323
|
+
900: string;
|
|
1324
|
+
};
|
|
1325
|
+
};
|
|
1326
|
+
disabled: {
|
|
1327
|
+
50: string;
|
|
1328
|
+
100: string;
|
|
1329
|
+
200: string;
|
|
1330
|
+
300: string;
|
|
1331
|
+
400: string;
|
|
1332
|
+
500: string;
|
|
1333
|
+
600: string;
|
|
1334
|
+
700: string;
|
|
1335
|
+
800: string;
|
|
1336
|
+
900: string;
|
|
1337
|
+
};
|
|
1338
|
+
backgroundColor: {
|
|
1339
|
+
main: string;
|
|
1340
|
+
secondary: string;
|
|
1341
|
+
quaternary: string;
|
|
1342
|
+
tertiary: string;
|
|
1343
|
+
light: string;
|
|
1344
|
+
medium: string;
|
|
1345
|
+
accent: string;
|
|
1346
|
+
subtle: string;
|
|
1347
|
+
muted: string;
|
|
1348
|
+
neutral: string;
|
|
1349
|
+
};
|
|
1350
|
+
};
|
|
1351
|
+
fonts: Theme["fonts"] & {
|
|
1352
|
+
body: string;
|
|
1353
|
+
heading: string;
|
|
1354
|
+
mono: string;
|
|
1355
|
+
};
|
|
1356
|
+
fontSizes: {
|
|
1357
|
+
xs: string;
|
|
1358
|
+
sm: string;
|
|
1359
|
+
md: string;
|
|
1360
|
+
lg: string;
|
|
1361
|
+
xl: string;
|
|
1362
|
+
"2xl": string;
|
|
1363
|
+
"3xl": string;
|
|
1364
|
+
"4xl": string;
|
|
1365
|
+
"5xl": string;
|
|
1366
|
+
"6xl": string;
|
|
1367
|
+
"7xl": string;
|
|
1368
|
+
"8xl": string;
|
|
1369
|
+
"9xl": string;
|
|
1370
|
+
};
|
|
1371
|
+
fontWeights: {
|
|
1372
|
+
hairline: number;
|
|
1373
|
+
thin: number;
|
|
1374
|
+
light: number;
|
|
1375
|
+
normal: number;
|
|
1376
|
+
medium: number;
|
|
1377
|
+
semibold: number;
|
|
1378
|
+
bold: number;
|
|
1379
|
+
extrabold: number;
|
|
1380
|
+
black: number;
|
|
1381
|
+
};
|
|
1382
|
+
lineHeights: {
|
|
1383
|
+
normal: string;
|
|
1384
|
+
none: number;
|
|
1385
|
+
shorter: number;
|
|
1386
|
+
short: number;
|
|
1387
|
+
base: number;
|
|
1388
|
+
tall: number;
|
|
1389
|
+
taller: string;
|
|
1390
|
+
[key: string]: string | number;
|
|
1391
|
+
};
|
|
1392
|
+
letterSpacings: {
|
|
1393
|
+
tighter: string;
|
|
1394
|
+
tight: string;
|
|
1395
|
+
normal: string;
|
|
1396
|
+
wide: string;
|
|
1397
|
+
wider: string;
|
|
1398
|
+
widest: string;
|
|
1399
|
+
};
|
|
1400
|
+
space: {
|
|
1401
|
+
[key: string]: string;
|
|
1402
|
+
};
|
|
1403
|
+
sizes: {
|
|
1404
|
+
[key: string]: string | any;
|
|
1405
|
+
};
|
|
1406
|
+
breakpoints: {
|
|
1407
|
+
sm: string;
|
|
1408
|
+
md: string;
|
|
1409
|
+
lg: string;
|
|
1410
|
+
xl: string;
|
|
1411
|
+
"2xl": string;
|
|
1412
|
+
};
|
|
1413
|
+
shadows: {
|
|
1414
|
+
xs: string;
|
|
1415
|
+
sm: string;
|
|
1416
|
+
base: string;
|
|
1417
|
+
md: string;
|
|
1418
|
+
lg: string;
|
|
1419
|
+
xl: string;
|
|
1420
|
+
"2xl": string;
|
|
1421
|
+
outline: string;
|
|
1422
|
+
inner: string;
|
|
1423
|
+
none: string;
|
|
1424
|
+
darkLg: string;
|
|
1425
|
+
};
|
|
1426
|
+
radii: Theme["radii"] & {
|
|
1427
|
+
none: string;
|
|
1428
|
+
sm: string;
|
|
1429
|
+
base: string;
|
|
1430
|
+
md: string;
|
|
1431
|
+
lg: string;
|
|
1432
|
+
xl: string;
|
|
1433
|
+
"2xl": string;
|
|
1434
|
+
"3xl": string;
|
|
1435
|
+
full: string;
|
|
1436
|
+
};
|
|
1437
|
+
zIndices: Theme["zIndices"] & {
|
|
1438
|
+
hide: number;
|
|
1439
|
+
auto: string;
|
|
1440
|
+
base: number;
|
|
1441
|
+
docked: number;
|
|
1442
|
+
dropdown: number;
|
|
1443
|
+
sticky: number;
|
|
1444
|
+
banner: number;
|
|
1445
|
+
overlay: number;
|
|
1446
|
+
modal: number;
|
|
1447
|
+
popover: number;
|
|
1448
|
+
skipLink: number;
|
|
1449
|
+
toast: number;
|
|
1450
|
+
tooltip: number;
|
|
1451
|
+
};
|
|
1452
|
+
config: {
|
|
1453
|
+
cssVarPrefix: string;
|
|
1454
|
+
};
|
|
1455
|
+
};
|
|
1456
|
+
|
|
1457
|
+
declare const useCustomTheme: () => CustomThemeProps;
|
|
1458
|
+
|
|
1459
|
+
declare const ThemesList: {
|
|
1460
|
+
skyline: Record<string, any>;
|
|
1461
|
+
meadow: Record<string, any>;
|
|
1462
|
+
radiant: Record<string, any>;
|
|
1463
|
+
lavender: Record<string, any>;
|
|
1464
|
+
};
|
|
1465
|
+
|
|
1466
|
+
declare function debounce<T extends (...args: any[]) => void>(func: T, delay: number): (...args: Parameters<T>) => void;
|
|
1467
|
+
|
|
1468
|
+
export { Accordion as Accordian, AlertDialog, ApexBarChart, ApexPieChart, Breadcrumbs, _default$1 as Button, ButtonGroupIcon, Card, CheckBox as Checkbox, ContactForm, CustomDatePicker as DatePicker, Drawer, DrawerBody, DrawerFooter, DrawerHeader, Dropdown, Editor, FileUpload, FormWrapper, Header, HeaderActions, InputTextArea, KanbanBoard, Loading, Modal, ModalBody, ModalFooter, ModalHeader, MultiSelect, NavBar as NavigationBar, NoteTextArea, NumberInput, PinInputs as PinInput, ProductCard, ProfileCard, ProfileCardBody, ProfileCardFooter, ProfileCardHeader, ProfilePhotoViewer, ProgressBar, RadioButton, RadioButtonGroup, ReorderList as Reorder, Search, SearchSelect, Select, SelectSearch, Sidebar as SideBar, Skeletons, Slider, Switch, Table, TableToggle, Tag, _default as TextInput, ThemesList, Timeline, ToasterProvider as Toaster, ToolTip, VerifyEmailOtp, debounce, withTheme as default, useCustomTheme, useToaster };
|