dst-rg 1.0.0 → 1.0.1
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 +504 -0
- package/dist/index.js +27 -0
- package/dist/index.mjs +27 -0
- package/dist/style.css +1 -0
- package/package.json +1 -1
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,504 @@
|
|
|
1
|
+
import * as React$1 from 'react';
|
|
2
|
+
import React__default, { ReactNode, ComponentPropsWithoutRef } from 'react';
|
|
3
|
+
import { inputProps } from '@/components/Input/_.types';
|
|
4
|
+
import * as SliderPrimitive from '@radix-ui/react-slider';
|
|
5
|
+
import * as SwitchPrimitives from '@radix-ui/react-switch';
|
|
6
|
+
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
7
|
+
import { textAreaProps } from '@/components/TextArea/_.types';
|
|
8
|
+
|
|
9
|
+
type QAItem = {
|
|
10
|
+
question: React__default.ReactNode;
|
|
11
|
+
answer: React__default.ReactNode;
|
|
12
|
+
};
|
|
13
|
+
interface AccordionDemoProps {
|
|
14
|
+
type?: "single" | "multiple";
|
|
15
|
+
collapsible?: boolean;
|
|
16
|
+
items: QAItem[];
|
|
17
|
+
accordionClassName?: string;
|
|
18
|
+
itemClassName?: string;
|
|
19
|
+
questionClassName?: string;
|
|
20
|
+
answerClassName?: string;
|
|
21
|
+
iconOpen?: React__default.ComponentType<React__default.SVGProps<SVGSVGElement>>;
|
|
22
|
+
iconClosed?: React__default.ComponentType<React__default.SVGProps<SVGSVGElement>>;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
declare function AccordionDemo({ type, collapsible, items, accordionClassName, itemClassName, questionClassName, answerClassName, iconClosed, iconOpen }: Readonly<AccordionDemoProps>): React$1.JSX.Element;
|
|
26
|
+
|
|
27
|
+
type Position = "none" | "top" | "topstart" | "topcenter" | "topend" | "bottom" | "bottomstart" | "bottomcenter" | "bottomend" | "left" | "leftstart" | "leftcenter" | "leftend" | "right" | "rightstart" | "rightcenter" | "rightend";
|
|
28
|
+
interface TooltipWrapperProps {
|
|
29
|
+
children: ReactNode;
|
|
30
|
+
content: string;
|
|
31
|
+
description?: string;
|
|
32
|
+
className?: string;
|
|
33
|
+
contentClassName?: string;
|
|
34
|
+
descriptionClassName?: string;
|
|
35
|
+
sideOffset?: number;
|
|
36
|
+
position?: Position;
|
|
37
|
+
dir?: "rtl" | "ltr";
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
type AvatarSize = "xs" | "sm" | "md" | "lg" | "xl" | "2xl";
|
|
41
|
+
type AvatarType = "single" | "group" | "labled";
|
|
42
|
+
type TooltipDirection = "rtl" | "ltr";
|
|
43
|
+
interface AvatarProps {
|
|
44
|
+
type?: AvatarType;
|
|
45
|
+
size?: AvatarSize;
|
|
46
|
+
imgList?: Image[];
|
|
47
|
+
img?: Image;
|
|
48
|
+
showAmount?: number;
|
|
49
|
+
showAddBtn?: boolean;
|
|
50
|
+
addBtnAction?: () => void;
|
|
51
|
+
notifyIcon?: React.ReactNode;
|
|
52
|
+
notifyColor?: string;
|
|
53
|
+
title?: string;
|
|
54
|
+
description?: string;
|
|
55
|
+
iconBorder?: boolean;
|
|
56
|
+
tooltip?: {
|
|
57
|
+
content: string;
|
|
58
|
+
description?: string;
|
|
59
|
+
className?: string;
|
|
60
|
+
contentClassName?: string;
|
|
61
|
+
descriptionClassName?: string;
|
|
62
|
+
sideOffset?: number;
|
|
63
|
+
position?: Position;
|
|
64
|
+
dir?: TooltipDirection;
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
interface Image {
|
|
68
|
+
src?: string;
|
|
69
|
+
icon?: React.ReactNode;
|
|
70
|
+
label?: string;
|
|
71
|
+
backUpSrc?: string;
|
|
72
|
+
description?: string;
|
|
73
|
+
alt?: string;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
declare const Avatar: ({ type, size, imgList, img, showAmount, showAddBtn, notifyColor, notifyIcon, title, description, iconBorder, tooltip, addBtnAction, }: AvatarProps) => React$1.JSX.Element;
|
|
77
|
+
|
|
78
|
+
type BadgeProps = {
|
|
79
|
+
className?: string;
|
|
80
|
+
size?: "sm" | "md" | "lg";
|
|
81
|
+
type?: "pillColor" | "pillOutline" | "badgeColor" | "badgeModern";
|
|
82
|
+
color?: "gray" | "brand" | "error" | "success" | "grayBlue" | "blueLight" | "blue" | "indigo" | "purple" | "pink" | "orange";
|
|
83
|
+
dir?: "ltr" | "rtl";
|
|
84
|
+
children: React.ReactNode;
|
|
85
|
+
icon?: React.ReactNode;
|
|
86
|
+
closable?: boolean;
|
|
87
|
+
onClose?: () => void;
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
declare function Badge({ className, size, type, color, dir, icon, closable, onClose, children, ...props }: Readonly<BadgeProps>): React$1.JSX.Element;
|
|
91
|
+
|
|
92
|
+
interface BreadcrumbTypes {
|
|
93
|
+
link?: string;
|
|
94
|
+
title: string;
|
|
95
|
+
}
|
|
96
|
+
interface BreadcrumbProps {
|
|
97
|
+
breadCrumbLink: BreadcrumbTypes[];
|
|
98
|
+
type?: "slash" | "chevron";
|
|
99
|
+
dir?: "rtl" | "ltr";
|
|
100
|
+
navClassName?: string;
|
|
101
|
+
listClassName?: string;
|
|
102
|
+
listItemClassName?: string;
|
|
103
|
+
linkClassName?: string;
|
|
104
|
+
separatorClassName?: string;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
declare const Breadcrumb: React.FC<BreadcrumbProps>;
|
|
108
|
+
|
|
109
|
+
type ButtonProps = {
|
|
110
|
+
variant?: "primary" | "secondaryGray" | "secondaryColor" | "tertiaryGray" | "tertiaryColor" | "linkGray" | "linkColor";
|
|
111
|
+
size?: "sm" | "md" | "lg" | "xl" | "2xl";
|
|
112
|
+
fullWidth?: boolean;
|
|
113
|
+
loading?: boolean;
|
|
114
|
+
leftIcon?: React.ReactNode;
|
|
115
|
+
rightIcon?: React.ReactNode;
|
|
116
|
+
onClick?: () => void;
|
|
117
|
+
asChild?: boolean;
|
|
118
|
+
disabled?: boolean;
|
|
119
|
+
children?: React.ReactNode;
|
|
120
|
+
className?: string;
|
|
121
|
+
type?: "button" | "submit" | "reset";
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
declare const Button: React__default.FC<ButtonProps>;
|
|
125
|
+
|
|
126
|
+
interface CommonCheckboxProps$3 {
|
|
127
|
+
id?: string;
|
|
128
|
+
name: string;
|
|
129
|
+
checkboxIndex?: number;
|
|
130
|
+
checked?: boolean;
|
|
131
|
+
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
132
|
+
size?: "sm" | "md" | "lg";
|
|
133
|
+
type?: "radio" | "checkbox";
|
|
134
|
+
disabled?: boolean;
|
|
135
|
+
}
|
|
136
|
+
interface CheckboxProps extends CommonCheckboxProps$3 {
|
|
137
|
+
defaultChecked?: boolean;
|
|
138
|
+
label?: string;
|
|
139
|
+
value?: string;
|
|
140
|
+
onClick?: () => void;
|
|
141
|
+
children?: React.ReactNode;
|
|
142
|
+
isIndeterminate?: boolean;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
declare const Checkbox: ({ size, children, id, disabled, checkboxIndex, isIndeterminate, checked, onChange, onClick, defaultChecked, name, label, ...props }: Readonly<CheckboxProps>) => React$1.JSX.Element;
|
|
146
|
+
|
|
147
|
+
interface CommonCheckboxProps$2 {
|
|
148
|
+
id?: string;
|
|
149
|
+
checkboxIndex?: number;
|
|
150
|
+
checked?: boolean;
|
|
151
|
+
size?: "sm" | "md";
|
|
152
|
+
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
153
|
+
inputProps?: object;
|
|
154
|
+
type?: "radio" | "checkbox";
|
|
155
|
+
disabled?: boolean;
|
|
156
|
+
}
|
|
157
|
+
interface paymentCardProps$1 extends CommonCheckboxProps$2 {
|
|
158
|
+
title: string;
|
|
159
|
+
description: string;
|
|
160
|
+
value?: string;
|
|
161
|
+
footer: ReactNode;
|
|
162
|
+
icon: ReactNode;
|
|
163
|
+
name?: string;
|
|
164
|
+
cardOnclick?: () => void;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
declare const PaymentCard: ({ size, title, description, checked, disabled, id, value, footer, icon, type, onChange, name, cardOnclick, inputProps, checkboxIndex, }: Readonly<paymentCardProps$1>) => React$1.JSX.Element;
|
|
168
|
+
|
|
169
|
+
interface CommonCheckboxProps$1 {
|
|
170
|
+
id?: string;
|
|
171
|
+
checkboxIndex?: number;
|
|
172
|
+
checked?: boolean;
|
|
173
|
+
size?: "sm" | "md";
|
|
174
|
+
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
175
|
+
inputProps?: object;
|
|
176
|
+
type?: "radio" | "checkbox";
|
|
177
|
+
disabled?: boolean;
|
|
178
|
+
}
|
|
179
|
+
interface PlanCardProps extends CommonCheckboxProps$1 {
|
|
180
|
+
value?: string;
|
|
181
|
+
price: string;
|
|
182
|
+
per: string;
|
|
183
|
+
title: string;
|
|
184
|
+
description: string;
|
|
185
|
+
hasHeader?: boolean;
|
|
186
|
+
headerTitle?: string;
|
|
187
|
+
badgeContent?: ReactNode;
|
|
188
|
+
defaultChecked?: boolean;
|
|
189
|
+
label?: string;
|
|
190
|
+
name?: string;
|
|
191
|
+
onClick?: () => void;
|
|
192
|
+
onCardClick?: () => void;
|
|
193
|
+
children?: React.ReactNode;
|
|
194
|
+
isIndeterminate?: boolean;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
declare const PlanCard: ({ hasHeader, per, size, title, description, price, badgeContent, checked, disabled, type, name, value, onChange, onCardClick, id, checkboxIndex, }: Readonly<PlanCardProps>) => React$1.JSX.Element;
|
|
198
|
+
|
|
199
|
+
interface CommonCheckboxProps {
|
|
200
|
+
id?: string;
|
|
201
|
+
checkboxIndex?: number;
|
|
202
|
+
checked?: boolean;
|
|
203
|
+
size?: "sm" | "md";
|
|
204
|
+
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
205
|
+
inputProps?: object;
|
|
206
|
+
type?: "radio" | "checkbox";
|
|
207
|
+
disabled?: boolean;
|
|
208
|
+
}
|
|
209
|
+
interface paymentCardProps extends CommonCheckboxProps {
|
|
210
|
+
description: string;
|
|
211
|
+
value?: string;
|
|
212
|
+
name?: string;
|
|
213
|
+
userFullName: string;
|
|
214
|
+
cardOnclick?: () => void;
|
|
215
|
+
inputProps?: object;
|
|
216
|
+
username: string;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
declare const UserCard: ({ size, description, checked, disabled, id, value, type, onChange, name, inputProps, username, checkboxIndex, userFullName, cardOnclick, }: Readonly<paymentCardProps>) => React$1.JSX.Element;
|
|
220
|
+
|
|
221
|
+
interface DropdownWrapperProps {
|
|
222
|
+
children: React.ReactNode;
|
|
223
|
+
toggleBtn: ButtonProps;
|
|
224
|
+
direction?: "down" | "up" | "left" | "right";
|
|
225
|
+
alignment?: "left" | "right" | "top" | "bottom";
|
|
226
|
+
dropDownClassName?: string;
|
|
227
|
+
autoAdjust?: boolean;
|
|
228
|
+
open?: boolean;
|
|
229
|
+
onOpenChange?: (open: boolean) => void;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
declare const Dropdown: ({ children, toggleBtn, direction, alignment, dropDownClassName, autoAdjust, open: openProp, onOpenChange, }: DropdownWrapperProps) => React$1.JSX.Element;
|
|
233
|
+
|
|
234
|
+
type AcceptableExtension = "png" | "jpg" | "jpeg" | "svg" | "gif" | "webp" | "pdf" | "docx" | "xlsx" | "mp4" | "mp3" | "wav";
|
|
235
|
+
interface UploadItemProps {
|
|
236
|
+
id: number;
|
|
237
|
+
title: string;
|
|
238
|
+
progressValue?: number;
|
|
239
|
+
description: string;
|
|
240
|
+
percentage?: number;
|
|
241
|
+
error: boolean;
|
|
242
|
+
size: string;
|
|
243
|
+
icon?: React.ReactNode;
|
|
244
|
+
status: string;
|
|
245
|
+
}
|
|
246
|
+
interface FileUploaderProps {
|
|
247
|
+
icon?: React.ReactNode;
|
|
248
|
+
mainText: string;
|
|
249
|
+
subText: string;
|
|
250
|
+
formatText: string;
|
|
251
|
+
acceptableFormats?: AcceptableExtension[] | AcceptableExtension | "";
|
|
252
|
+
disable?: boolean;
|
|
253
|
+
items?: UploadItemProps[];
|
|
254
|
+
loadType?: "progressBar" | "progressFill";
|
|
255
|
+
multiItem?: boolean;
|
|
256
|
+
onDelete: (id: number) => void;
|
|
257
|
+
onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
declare const FileUploader: ({ icon, mainText, subText, formatText, acceptableFormats, disable, items, loadType, multiItem, onChange, onDelete, }: FileUploaderProps) => React$1.JSX.Element;
|
|
261
|
+
|
|
262
|
+
interface ImageMagnifyProps {
|
|
263
|
+
/** Image source URL */
|
|
264
|
+
src: string;
|
|
265
|
+
/** Alt text for the image */
|
|
266
|
+
alt?: string;
|
|
267
|
+
/** Zoom level multiplier (e.g., 2 = 200% zoom) */
|
|
268
|
+
zoom?: number;
|
|
269
|
+
/** Size of the magnifying lens in pixels (square) */
|
|
270
|
+
lensSize?: number;
|
|
271
|
+
/** Additional CSS class name */
|
|
272
|
+
className?: string;
|
|
273
|
+
/** Tailwind classes applied when lens is visible */
|
|
274
|
+
lensVisibleClassName?: string;
|
|
275
|
+
/** Tailwind classes applied when zoom pane is visible */
|
|
276
|
+
zoomPaneVisibleClassName?: string;
|
|
277
|
+
/** Position of the zoom pane relative to the image */
|
|
278
|
+
zoomPanePosition?: 'right' | 'left';
|
|
279
|
+
/** Enable touch toggle functionality on mobile devices */
|
|
280
|
+
touchToggle?: boolean;
|
|
281
|
+
/** Custom zoom pane size in pixels (optional) */
|
|
282
|
+
zoomPaneSize?: number;
|
|
283
|
+
/** Zoom mode: 'pane' for separate zoom pane, 'inline' for zoom directly on image */
|
|
284
|
+
zoomMode?: 'pane' | 'inline';
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
declare function ImageMagnify({ src, alt, zoom, lensSize, className, lensVisibleClassName, zoomPaneVisibleClassName, touchToggle, zoomPaneSize, zoomPanePosition, zoomMode, }: ImageMagnifyProps): any;
|
|
288
|
+
|
|
289
|
+
declare const Input: ({ size, type, inputType, disabled, id, label, required, destructive, destructiveText, hintText, placeholder, helpIcon, icon, leadingTextValue, className, trailingDropdownOptions, trailingDropdownDefault, onChange, value, tooltipProps, trailingButtonText, name, labelClass, labelStarClass, shabaLabelSize, autoFocus, ...props }: Readonly<inputProps>) => any;
|
|
290
|
+
|
|
291
|
+
interface MessageProps {
|
|
292
|
+
variant?: "primary" | "gray" | "white";
|
|
293
|
+
sender: "user" | "admin";
|
|
294
|
+
senderName: string;
|
|
295
|
+
message?: string;
|
|
296
|
+
children?: React.ReactNode;
|
|
297
|
+
avatar?: React.ReactElement<typeof Avatar> | null;
|
|
298
|
+
date: string;
|
|
299
|
+
className?: string;
|
|
300
|
+
dir?: "rtl" | "ltr";
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
declare const Message: ({ variant, sender, senderName, message, children, avatar, date, className, dir, }: MessageProps) => React$1.JSX.Element;
|
|
304
|
+
|
|
305
|
+
interface MetricProps {
|
|
306
|
+
title?: string;
|
|
307
|
+
value: string;
|
|
308
|
+
description?: string;
|
|
309
|
+
icon?: React__default.ReactNode;
|
|
310
|
+
statistic?: React__default.ReactNode;
|
|
311
|
+
chartImg?: React__default.ReactNode;
|
|
312
|
+
chartPosition?: "side" | "bottom";
|
|
313
|
+
actionBtns?: React__default.ReactNode[];
|
|
314
|
+
toggleBtn: React__default.ReactNode;
|
|
315
|
+
iconPosition?: "topWithTitle" | "topAlone" | "iconSide" | "hidden";
|
|
316
|
+
statisticPosition?: "row-between" | "row-next" | "row-below";
|
|
317
|
+
dir?: "rtl" | "ltr";
|
|
318
|
+
iconType?: "success" | "notification" | "secondary";
|
|
319
|
+
titleType?: "normal" | "bold";
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
declare const Metrics: ({ title, value, description, icon, iconType, statistic, chartImg, chartPosition, actionBtns, toggleBtn, iconPosition, statisticPosition, titleType, }: MetricProps) => any;
|
|
323
|
+
|
|
324
|
+
type modalVariantProps = {
|
|
325
|
+
size?: "sm" | "md" | "lg";
|
|
326
|
+
overflow?: "hidden" | "auto";
|
|
327
|
+
closeHandler: () => void;
|
|
328
|
+
children: React.ReactNode;
|
|
329
|
+
modalTitle?: string;
|
|
330
|
+
closeIconStroke?: string;
|
|
331
|
+
position?: "center" | "bottom";
|
|
332
|
+
showModal: boolean;
|
|
333
|
+
icon?: React.ReactNode;
|
|
334
|
+
headerIconDir?: "flex-col" | "flex-row";
|
|
335
|
+
modalContentStyle?: string;
|
|
336
|
+
showCloseIcon?: boolean;
|
|
337
|
+
};
|
|
338
|
+
|
|
339
|
+
declare const Modal: ({ children, closeHandler, size, modalTitle, overflow, closeIconStroke, position, icon, headerIconDir, showModal, modalContentStyle, showCloseIcon, }: modalVariantProps) => any;
|
|
340
|
+
|
|
341
|
+
type PaginationType = "default" | "card-minimal-right-aligned" | "card-minimal-left-aligned" | "card-minimal-center-aligned" | "card-button-group-right-aligned" | "card-button-group-left-aligned" | "card-button-group-center-aligned";
|
|
342
|
+
type PaginationProps = {
|
|
343
|
+
currentPage: number;
|
|
344
|
+
totalPages: number;
|
|
345
|
+
onPageChange?: (page: number) => void;
|
|
346
|
+
type?: PaginationType;
|
|
347
|
+
className?: string;
|
|
348
|
+
justifyClassName?: string;
|
|
349
|
+
activeClassName?: string;
|
|
350
|
+
previousClassName?: string;
|
|
351
|
+
nextClassName?: string;
|
|
352
|
+
prevIcon?: ReactNode;
|
|
353
|
+
nextIcon?: ReactNode;
|
|
354
|
+
firstIcon?: ReactNode;
|
|
355
|
+
lastIcon?: ReactNode;
|
|
356
|
+
showFirstLast?: boolean;
|
|
357
|
+
dir?: string;
|
|
358
|
+
hasText?: boolean;
|
|
359
|
+
labels?: {
|
|
360
|
+
next: string;
|
|
361
|
+
prev: string;
|
|
362
|
+
first: string;
|
|
363
|
+
last: string;
|
|
364
|
+
page: string;
|
|
365
|
+
of: string;
|
|
366
|
+
};
|
|
367
|
+
} & React.ComponentProps<"nav">;
|
|
368
|
+
|
|
369
|
+
declare const Pagination: ({ currentPage, totalPages, onPageChange, type, dir, className, activeClassName, previousClassName, nextClassName, prevIcon, nextIcon, firstIcon, lastIcon, showFirstLast, labels, hasText, ...props }: PaginationProps & {
|
|
370
|
+
type?: string;
|
|
371
|
+
}) => React$1.JSX.Element;
|
|
372
|
+
|
|
373
|
+
interface SliderProps extends ComponentPropsWithoutRef<typeof SliderPrimitive.Root> {
|
|
374
|
+
defaultValue?: [number, number];
|
|
375
|
+
className?: string;
|
|
376
|
+
trackClassName?: string;
|
|
377
|
+
rangeClassName?: string;
|
|
378
|
+
thumbClassName?: string;
|
|
379
|
+
showValue?: boolean;
|
|
380
|
+
valueClassName?: string;
|
|
381
|
+
isPercentage?: boolean;
|
|
382
|
+
valuePosition?: "top" | "bottom";
|
|
383
|
+
min?: number;
|
|
384
|
+
max?: number;
|
|
385
|
+
onValueChange?: (value: [number, number]) => void;
|
|
386
|
+
dir?: "ltr" | "rtl";
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
declare function PriceSlider({ defaultValue, min, max, className, trackClassName, rangeClassName, thumbClassName, showValue, valueClassName, isPercentage, valuePosition, dir, onValueChange, ...props }: Readonly<SliderProps>): React$1.JSX.Element;
|
|
390
|
+
|
|
391
|
+
declare const Progress: React$1.ForwardRefExoticComponent<any>;
|
|
392
|
+
|
|
393
|
+
type RadioProps = {
|
|
394
|
+
id?: string;
|
|
395
|
+
name: string;
|
|
396
|
+
className?: string;
|
|
397
|
+
value: string;
|
|
398
|
+
disabled?: boolean;
|
|
399
|
+
checked?: boolean;
|
|
400
|
+
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
401
|
+
size?: "sm" | "md";
|
|
402
|
+
children?: React.ReactNode;
|
|
403
|
+
cardOnclick?: () => void;
|
|
404
|
+
};
|
|
405
|
+
|
|
406
|
+
declare const Radio: ({ name, value, checked, onChange, size, disabled, className, children, id, ...props }: Readonly<RadioProps>) => React$1.JSX.Element;
|
|
407
|
+
|
|
408
|
+
type configProps = {
|
|
409
|
+
label?: string;
|
|
410
|
+
name: string;
|
|
411
|
+
errorText?: string;
|
|
412
|
+
hintText?: string;
|
|
413
|
+
isRequiredInput?: boolean;
|
|
414
|
+
canSelectZero?: boolean;
|
|
415
|
+
};
|
|
416
|
+
type selectPropsType = {
|
|
417
|
+
config: configProps;
|
|
418
|
+
isLoading?: boolean;
|
|
419
|
+
disabled?: boolean;
|
|
420
|
+
className?: string;
|
|
421
|
+
tooltipClass?: string;
|
|
422
|
+
tooltipTitle?: string | React.ReactNode;
|
|
423
|
+
selectedValueLabel: string;
|
|
424
|
+
onChange: (value: any) => void;
|
|
425
|
+
options: {
|
|
426
|
+
title: string;
|
|
427
|
+
value: number;
|
|
428
|
+
}[];
|
|
429
|
+
buttonClass?: string;
|
|
430
|
+
contentClass?: string;
|
|
431
|
+
labelClass?: string;
|
|
432
|
+
labelStarClass?: string;
|
|
433
|
+
};
|
|
434
|
+
|
|
435
|
+
declare const Select: ({ config, isLoading, disabled, className, tooltipClass, tooltipTitle, selectedValueLabel, onChange, options, buttonClass, contentClass, labelClass, labelStarClass }: selectPropsType) => React$1.JSX.Element;
|
|
436
|
+
|
|
437
|
+
interface SwitchProps extends React$1.ComponentPropsWithoutRef<typeof SwitchPrimitives.Root> {
|
|
438
|
+
thumbClassName?: string;
|
|
439
|
+
label?: string;
|
|
440
|
+
labelClassName?: string;
|
|
441
|
+
description?: string;
|
|
442
|
+
descriptionClassName?: string;
|
|
443
|
+
onToggle: () => void;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
declare const Switch: React$1.ForwardRefExoticComponent<SwitchProps & React$1.RefAttributes<any>>;
|
|
447
|
+
|
|
448
|
+
interface TabsProps extends React.ComponentProps<typeof TabsPrimitive.Root> {
|
|
449
|
+
direction?: "vertical" | "horizontal";
|
|
450
|
+
dir?: "rtl" | "ltr";
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
declare const Tabs: (({ className, direction, dir, ...props }: Readonly<TabsProps>) => React$1.JSX.Element) & {
|
|
454
|
+
List: any;
|
|
455
|
+
Trigger: any;
|
|
456
|
+
Content: any;
|
|
457
|
+
};
|
|
458
|
+
|
|
459
|
+
type TagProps = {
|
|
460
|
+
pin?: boolean;
|
|
461
|
+
number?: number;
|
|
462
|
+
checkbox?: string;
|
|
463
|
+
checkboxIndex?: number;
|
|
464
|
+
avatar?: string;
|
|
465
|
+
className?: string;
|
|
466
|
+
size?: "sm" | "md" | "lg";
|
|
467
|
+
dir?: "ltr" | "rtl";
|
|
468
|
+
children?: React.ReactNode;
|
|
469
|
+
icon?: "x-close";
|
|
470
|
+
};
|
|
471
|
+
|
|
472
|
+
declare const Tag: ({ className, size, number, pin, avatar, children, checkbox, dir, icon, checkboxIndex, ...props }: Readonly<TagProps>) => React$1.JSX.Element;
|
|
473
|
+
|
|
474
|
+
declare const TextArea: ({ row, label, required, destructive, disabled, destructiveText, hintText, placeholder, helpIcon, onChange, id, tooltipProps, className, value, name, labelClass, labelStarClass, autoFocus, ...props }: Readonly<textAreaProps>) => React$1.JSX.Element;
|
|
475
|
+
|
|
476
|
+
type ToastPosition = "top-left" | "top-center" | "top-right" | "middle-center" | "bottom-left" | "bottom-center" | "bottom-right";
|
|
477
|
+
interface ToastContainerProps {
|
|
478
|
+
type?: "success" | "error" | "info" | "warning";
|
|
479
|
+
duration?: number;
|
|
480
|
+
animation?: "fade" | "slide" | "scale";
|
|
481
|
+
position?: ToastPosition;
|
|
482
|
+
showProgress?: boolean;
|
|
483
|
+
}
|
|
484
|
+
type ToastOptions = ToastContainerProps & {
|
|
485
|
+
message: string;
|
|
486
|
+
};
|
|
487
|
+
|
|
488
|
+
declare const ToastContainer: ({ type, position, duration, animation, showProgress, }: ToastContainerProps) => React$1.JSX.Element;
|
|
489
|
+
|
|
490
|
+
declare function setToastDefaults(options: Partial<Omit<ToastOptions, "message">>): void;
|
|
491
|
+
declare function toast(options: ToastOptions): void;
|
|
492
|
+
declare function toast(message: string): void;
|
|
493
|
+
declare namespace toast {
|
|
494
|
+
var success: (message: string, opts?: Partial<ToastOptions>) => void;
|
|
495
|
+
var error: (message: string, opts?: Partial<ToastOptions>) => void;
|
|
496
|
+
var info: (message: string, opts?: Partial<ToastOptions>) => void;
|
|
497
|
+
var warning: (message: string, opts?: Partial<ToastOptions>) => void;
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
declare const TooltipWrapper: ({ children, content, description, className, contentClassName, descriptionClassName, sideOffset, position, dir, }: TooltipWrapperProps & {
|
|
501
|
+
dir?: "rtl" | "ltr";
|
|
502
|
+
}) => React$1.JSX.Element;
|
|
503
|
+
|
|
504
|
+
export { AccordionDemo, Avatar, Badge, Breadcrumb, Button, Checkbox, Dropdown, FileUploader, ImageMagnify, Input, Message, Metrics, Modal, Pagination, PaymentCard, PlanCard, PriceSlider, Progress, Radio, Select, Switch, Tabs, Tag, TextArea, ToastContainer, TooltipWrapper, UserCard, setToastDefaults, toast };
|