bsm-design-system 1.22.12 → 1.22.14
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/index.d.mts +1176 -0
- package/index.d.ts +41 -22
- package/index.js +29 -31
- package/index.mjs +91 -0
- package/package.json +1 -1
- package/styles.css +1 -1
package/index.d.mts
ADDED
|
@@ -0,0 +1,1176 @@
|
|
|
1
|
+
import * as React$1 from 'react';
|
|
2
|
+
import React__default, { ButtonHTMLAttributes, JSX } from 'react';
|
|
3
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
4
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
|
+
import { Root } from '@radix-ui/react-switch';
|
|
6
|
+
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
7
|
+
import { Root as Root$1 } from '@radix-ui/react-radio-group';
|
|
8
|
+
import { Root as Root$2 } from '@radix-ui/react-checkbox';
|
|
9
|
+
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
10
|
+
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
11
|
+
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
12
|
+
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
13
|
+
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
14
|
+
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
15
|
+
import { OTPInput } from 'input-otp';
|
|
16
|
+
import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
|
|
17
|
+
|
|
18
|
+
declare const buttonVariants: tailwind_variants.TVReturnType<{
|
|
19
|
+
variant: {
|
|
20
|
+
fill: string;
|
|
21
|
+
ghost: string;
|
|
22
|
+
outlined: string;
|
|
23
|
+
text: string;
|
|
24
|
+
};
|
|
25
|
+
color: {
|
|
26
|
+
primary: string;
|
|
27
|
+
secondary: string;
|
|
28
|
+
error: string;
|
|
29
|
+
success: string;
|
|
30
|
+
info: string;
|
|
31
|
+
warning: string;
|
|
32
|
+
};
|
|
33
|
+
size: {
|
|
34
|
+
xs: string;
|
|
35
|
+
sm: string;
|
|
36
|
+
md: string;
|
|
37
|
+
lg: string;
|
|
38
|
+
};
|
|
39
|
+
iconOnly: {
|
|
40
|
+
true: string;
|
|
41
|
+
false: string;
|
|
42
|
+
};
|
|
43
|
+
rounded: {
|
|
44
|
+
true: string;
|
|
45
|
+
false: string;
|
|
46
|
+
};
|
|
47
|
+
}, undefined, "inline-flex items-center [&_svg]:stroke-current relative active:scale-95 [&_svg]:text-current cursor-pointer disabled:text-fg-disabled justify-center gap-2 whitespace-nowrap font-normal transition-all disabled:pointer-events-none select-none [&_svg]:pointer-events-none shrink-0 [&_svg]:shrink-0 outline-none focus-visible:ring-offset-surface focus-visible:ring-offset-3 focus-visible:ring-2 focus-visible:ring-focus-ring", {
|
|
48
|
+
variant: {
|
|
49
|
+
fill: string;
|
|
50
|
+
ghost: string;
|
|
51
|
+
outlined: string;
|
|
52
|
+
text: string;
|
|
53
|
+
};
|
|
54
|
+
color: {
|
|
55
|
+
primary: string;
|
|
56
|
+
secondary: string;
|
|
57
|
+
error: string;
|
|
58
|
+
success: string;
|
|
59
|
+
info: string;
|
|
60
|
+
warning: string;
|
|
61
|
+
};
|
|
62
|
+
size: {
|
|
63
|
+
xs: string;
|
|
64
|
+
sm: string;
|
|
65
|
+
md: string;
|
|
66
|
+
lg: string;
|
|
67
|
+
};
|
|
68
|
+
iconOnly: {
|
|
69
|
+
true: string;
|
|
70
|
+
false: string;
|
|
71
|
+
};
|
|
72
|
+
rounded: {
|
|
73
|
+
true: string;
|
|
74
|
+
false: string;
|
|
75
|
+
};
|
|
76
|
+
}, undefined, tailwind_variants.TVReturnType<{
|
|
77
|
+
variant: {
|
|
78
|
+
fill: string;
|
|
79
|
+
ghost: string;
|
|
80
|
+
outlined: string;
|
|
81
|
+
text: string;
|
|
82
|
+
};
|
|
83
|
+
color: {
|
|
84
|
+
primary: string;
|
|
85
|
+
secondary: string;
|
|
86
|
+
error: string;
|
|
87
|
+
success: string;
|
|
88
|
+
info: string;
|
|
89
|
+
warning: string;
|
|
90
|
+
};
|
|
91
|
+
size: {
|
|
92
|
+
xs: string;
|
|
93
|
+
sm: string;
|
|
94
|
+
md: string;
|
|
95
|
+
lg: string;
|
|
96
|
+
};
|
|
97
|
+
iconOnly: {
|
|
98
|
+
true: string;
|
|
99
|
+
false: string;
|
|
100
|
+
};
|
|
101
|
+
rounded: {
|
|
102
|
+
true: string;
|
|
103
|
+
false: string;
|
|
104
|
+
};
|
|
105
|
+
}, undefined, "inline-flex items-center [&_svg]:stroke-current relative active:scale-95 [&_svg]:text-current cursor-pointer disabled:text-fg-disabled justify-center gap-2 whitespace-nowrap font-normal transition-all disabled:pointer-events-none select-none [&_svg]:pointer-events-none shrink-0 [&_svg]:shrink-0 outline-none focus-visible:ring-offset-surface focus-visible:ring-offset-3 focus-visible:ring-2 focus-visible:ring-focus-ring", unknown, unknown, undefined>>;
|
|
106
|
+
|
|
107
|
+
type ButtonVariant = keyof typeof buttonVariants.variants.variant;
|
|
108
|
+
|
|
109
|
+
type ButtonSize = keyof typeof buttonVariants.variants.size;
|
|
110
|
+
|
|
111
|
+
type ButtonColors = keyof typeof buttonVariants.variants.color;
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Primary UI component for user interaction
|
|
115
|
+
*/
|
|
116
|
+
interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
117
|
+
/**
|
|
118
|
+
* Button contents
|
|
119
|
+
*/
|
|
120
|
+
children: React.ReactNode;
|
|
121
|
+
/**
|
|
122
|
+
* Button Trailling Icon
|
|
123
|
+
*/
|
|
124
|
+
traillingIcon?: React.ReactNode;
|
|
125
|
+
/**
|
|
126
|
+
* Button Trailling Icon
|
|
127
|
+
*/
|
|
128
|
+
leadingIcon?: React.ReactNode;
|
|
129
|
+
/**
|
|
130
|
+
* Button Variant
|
|
131
|
+
*/
|
|
132
|
+
variant?: ButtonVariant;
|
|
133
|
+
/**
|
|
134
|
+
* Button Size
|
|
135
|
+
*/
|
|
136
|
+
size?: ButtonSize;
|
|
137
|
+
/**
|
|
138
|
+
* Button Color
|
|
139
|
+
*/
|
|
140
|
+
color?: ButtonColors;
|
|
141
|
+
/**
|
|
142
|
+
* Button Loading State
|
|
143
|
+
*/
|
|
144
|
+
loading?: boolean;
|
|
145
|
+
/**
|
|
146
|
+
/**
|
|
147
|
+
* Button Icon Only
|
|
148
|
+
*/
|
|
149
|
+
iconOnly?: boolean;
|
|
150
|
+
/**
|
|
151
|
+
* Button Icon Only
|
|
152
|
+
*/
|
|
153
|
+
rounded?: boolean;
|
|
154
|
+
/**
|
|
155
|
+
* Button Click Event
|
|
156
|
+
*/
|
|
157
|
+
onClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* A button component with support for ref
|
|
162
|
+
*/
|
|
163
|
+
declare const Button: React$1.ForwardRefExoticComponent<ButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
164
|
+
|
|
165
|
+
declare const switchVariants: tailwind_variants.TVReturnType<{
|
|
166
|
+
size: {
|
|
167
|
+
sm: string;
|
|
168
|
+
md: string;
|
|
169
|
+
lg: string;
|
|
170
|
+
};
|
|
171
|
+
disabled: {
|
|
172
|
+
true: string;
|
|
173
|
+
false: string;
|
|
174
|
+
};
|
|
175
|
+
}, undefined, "group cursor-pointer border-2 border-transparent inline-flex shrink-0 items-center rounded-full transition-all outline-none focus-visible:ring-offset-surface focus-visible:ring-offset-3 focus-visible:ring-2 focus-visible:ring-focus-ring", {
|
|
176
|
+
size: {
|
|
177
|
+
sm: string;
|
|
178
|
+
md: string;
|
|
179
|
+
lg: string;
|
|
180
|
+
};
|
|
181
|
+
disabled: {
|
|
182
|
+
true: string;
|
|
183
|
+
false: string;
|
|
184
|
+
};
|
|
185
|
+
}, undefined, tailwind_variants.TVReturnType<{
|
|
186
|
+
size: {
|
|
187
|
+
sm: string;
|
|
188
|
+
md: string;
|
|
189
|
+
lg: string;
|
|
190
|
+
};
|
|
191
|
+
disabled: {
|
|
192
|
+
true: string;
|
|
193
|
+
false: string;
|
|
194
|
+
};
|
|
195
|
+
}, undefined, "group cursor-pointer border-2 border-transparent inline-flex shrink-0 items-center rounded-full transition-all outline-none focus-visible:ring-offset-surface focus-visible:ring-offset-3 focus-visible:ring-2 focus-visible:ring-focus-ring", unknown, unknown, undefined>>;
|
|
196
|
+
|
|
197
|
+
type DefaultType$4 = Omit<
|
|
198
|
+
React.ComponentProps<typeof Root>,
|
|
199
|
+
"onCheckedChange" | "onChange"
|
|
200
|
+
>;
|
|
201
|
+
|
|
202
|
+
type SwitchSize = keyof typeof switchVariants.variants.size;
|
|
203
|
+
|
|
204
|
+
type SwitchProps = {
|
|
205
|
+
size?: SwitchSize;
|
|
206
|
+
iconOn?: React.ReactNode;
|
|
207
|
+
iconOff?: React.ReactNode;
|
|
208
|
+
/**
|
|
209
|
+
* Switch onChange event
|
|
210
|
+
*/
|
|
211
|
+
onChange?: (checked: boolean) => void;
|
|
212
|
+
} & DefaultType$4;
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* A switch component
|
|
216
|
+
*/
|
|
217
|
+
declare function Switch({ className, size, disabled, iconOff, iconOn, onChange, ...props }: SwitchProps): react_jsx_runtime.JSX.Element;
|
|
218
|
+
|
|
219
|
+
declare const radioVariants: tailwind_variants.TVReturnType<{
|
|
220
|
+
size: {
|
|
221
|
+
sm: string;
|
|
222
|
+
md: string;
|
|
223
|
+
lg: string;
|
|
224
|
+
};
|
|
225
|
+
disabled: {
|
|
226
|
+
true: string;
|
|
227
|
+
false: string;
|
|
228
|
+
};
|
|
229
|
+
orientation: {
|
|
230
|
+
horizontal: string;
|
|
231
|
+
vertical: string;
|
|
232
|
+
};
|
|
233
|
+
}, undefined, "grid gap-3", {
|
|
234
|
+
size: {
|
|
235
|
+
sm: string;
|
|
236
|
+
md: string;
|
|
237
|
+
lg: string;
|
|
238
|
+
};
|
|
239
|
+
disabled: {
|
|
240
|
+
true: string;
|
|
241
|
+
false: string;
|
|
242
|
+
};
|
|
243
|
+
orientation: {
|
|
244
|
+
horizontal: string;
|
|
245
|
+
vertical: string;
|
|
246
|
+
};
|
|
247
|
+
}, undefined, tailwind_variants.TVReturnType<{
|
|
248
|
+
size: {
|
|
249
|
+
sm: string;
|
|
250
|
+
md: string;
|
|
251
|
+
lg: string;
|
|
252
|
+
};
|
|
253
|
+
disabled: {
|
|
254
|
+
true: string;
|
|
255
|
+
false: string;
|
|
256
|
+
};
|
|
257
|
+
orientation: {
|
|
258
|
+
horizontal: string;
|
|
259
|
+
vertical: string;
|
|
260
|
+
};
|
|
261
|
+
}, undefined, "grid gap-3", unknown, unknown, undefined>>;
|
|
262
|
+
|
|
263
|
+
type DefaultType$3 = Omit<
|
|
264
|
+
React.ComponentProps<typeof Root$1>,
|
|
265
|
+
"onValueChange" | "onChange"
|
|
266
|
+
>;
|
|
267
|
+
|
|
268
|
+
type RadioSize = keyof typeof radioVariants.variants.size;
|
|
269
|
+
|
|
270
|
+
type RadioItemProps = React.ComponentProps<
|
|
271
|
+
typeof RadioGroupPrimitive.Item
|
|
272
|
+
>;
|
|
273
|
+
|
|
274
|
+
type RadioProps = {
|
|
275
|
+
size?: RadioSize;
|
|
276
|
+
/**
|
|
277
|
+
* RadioGroup onChange event
|
|
278
|
+
*/
|
|
279
|
+
onChange?: (value: string) => void;
|
|
280
|
+
} & DefaultType$3;
|
|
281
|
+
|
|
282
|
+
declare function RadioGroup({ className, size, disabled, orientation, onChange, ...props }: RadioProps): react_jsx_runtime.JSX.Element;
|
|
283
|
+
declare namespace RadioGroup {
|
|
284
|
+
var Item: ({ className, disabled, children, ...props }: React.ComponentProps<typeof RadioGroupPrimitive.Item>) => react_jsx_runtime.JSX.Element;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
declare const checkboxVariants: tailwind_variants.TVReturnType<{
|
|
288
|
+
size: {
|
|
289
|
+
sm: string;
|
|
290
|
+
md: string;
|
|
291
|
+
lg: string;
|
|
292
|
+
};
|
|
293
|
+
disabled: {
|
|
294
|
+
true: string;
|
|
295
|
+
false: string;
|
|
296
|
+
};
|
|
297
|
+
}, undefined, "peer cursor-pointer transition-all shrink-0 rounded-sm border-2 outline-none focus-visible:ring-offset-surface focus-visible:ring-offset-3 focus-visible:ring-2 focus-visible:ring-focus-ring", {
|
|
298
|
+
size: {
|
|
299
|
+
sm: string;
|
|
300
|
+
md: string;
|
|
301
|
+
lg: string;
|
|
302
|
+
};
|
|
303
|
+
disabled: {
|
|
304
|
+
true: string;
|
|
305
|
+
false: string;
|
|
306
|
+
};
|
|
307
|
+
}, undefined, tailwind_variants.TVReturnType<{
|
|
308
|
+
size: {
|
|
309
|
+
sm: string;
|
|
310
|
+
md: string;
|
|
311
|
+
lg: string;
|
|
312
|
+
};
|
|
313
|
+
disabled: {
|
|
314
|
+
true: string;
|
|
315
|
+
false: string;
|
|
316
|
+
};
|
|
317
|
+
}, undefined, "peer cursor-pointer transition-all shrink-0 rounded-sm border-2 outline-none focus-visible:ring-offset-surface focus-visible:ring-offset-3 focus-visible:ring-2 focus-visible:ring-focus-ring", unknown, unknown, undefined>>;
|
|
318
|
+
|
|
319
|
+
type DefaultType$2 = Omit<
|
|
320
|
+
React.ComponentProps<typeof Root$2>,
|
|
321
|
+
"onCheckedChange" | "onChange"
|
|
322
|
+
>;
|
|
323
|
+
|
|
324
|
+
type CheckboxSize = keyof typeof checkboxVariants.variants.size;
|
|
325
|
+
|
|
326
|
+
interface CheckboxProps extends DefaultType$2 {
|
|
327
|
+
/**
|
|
328
|
+
* Checkbox size
|
|
329
|
+
*/
|
|
330
|
+
size?: CheckboxSize;
|
|
331
|
+
/**
|
|
332
|
+
* Checkbox onChange event
|
|
333
|
+
*/
|
|
334
|
+
onChange?: (checked: boolean | "indeterminate") => void;
|
|
335
|
+
/**
|
|
336
|
+
* Checkbox label
|
|
337
|
+
*/
|
|
338
|
+
label?: string;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
declare function Checkbox({ className, size, disabled, onChange, label, id, ...props }: CheckboxProps): react_jsx_runtime.JSX.Element;
|
|
342
|
+
|
|
343
|
+
declare const inputVariants: tailwind_variants.TVReturnType<{
|
|
344
|
+
size: {
|
|
345
|
+
xs: string;
|
|
346
|
+
sm: string;
|
|
347
|
+
md: string;
|
|
348
|
+
lg: string;
|
|
349
|
+
};
|
|
350
|
+
}, undefined, "peer w-full text-fg disabled:text-fg-disabled min-w-0 flex-1 rounded-none border-0 placeholder:text-fg-quaternary placeholder:font-light bg-transparent px-3 text-center shadow-none outline-none focus-visible:ring-0!", {
|
|
351
|
+
size: {
|
|
352
|
+
xs: string;
|
|
353
|
+
sm: string;
|
|
354
|
+
md: string;
|
|
355
|
+
lg: string;
|
|
356
|
+
};
|
|
357
|
+
}, undefined, tailwind_variants.TVReturnType<{
|
|
358
|
+
size: {
|
|
359
|
+
xs: string;
|
|
360
|
+
sm: string;
|
|
361
|
+
md: string;
|
|
362
|
+
lg: string;
|
|
363
|
+
};
|
|
364
|
+
}, undefined, "peer w-full text-fg disabled:text-fg-disabled min-w-0 flex-1 rounded-none border-0 placeholder:text-fg-quaternary placeholder:font-light bg-transparent px-3 text-center shadow-none outline-none focus-visible:ring-0!", unknown, unknown, undefined>>;
|
|
365
|
+
|
|
366
|
+
type DefaultType$1 = Omit<React.ComponentProps<"input">, "size">;
|
|
367
|
+
|
|
368
|
+
type InputSize = keyof typeof inputVariants.variants.size;
|
|
369
|
+
|
|
370
|
+
interface InputProps extends DefaultType$1 {
|
|
371
|
+
/**
|
|
372
|
+
* Input Size
|
|
373
|
+
*/
|
|
374
|
+
size?: InputSize;
|
|
375
|
+
/**
|
|
376
|
+
* Input label
|
|
377
|
+
*/
|
|
378
|
+
label?: string;
|
|
379
|
+
/**
|
|
380
|
+
* Input hint
|
|
381
|
+
*/
|
|
382
|
+
hint?: string;
|
|
383
|
+
/**
|
|
384
|
+
* Input Error State
|
|
385
|
+
*/
|
|
386
|
+
error?: boolean;
|
|
387
|
+
/**
|
|
388
|
+
* Input Rounded State
|
|
389
|
+
*/
|
|
390
|
+
rounded?: boolean;
|
|
391
|
+
/**
|
|
392
|
+
* Input Loading State
|
|
393
|
+
*/
|
|
394
|
+
loading?: boolean;
|
|
395
|
+
/**
|
|
396
|
+
* Input Leading Icon
|
|
397
|
+
*/
|
|
398
|
+
beforeIcon?: React.ReactNode;
|
|
399
|
+
/**
|
|
400
|
+
* Input Trailling Icon
|
|
401
|
+
*/
|
|
402
|
+
afterIcon?: React.ReactNode;
|
|
403
|
+
/**
|
|
404
|
+
* Input Action Icon
|
|
405
|
+
*/
|
|
406
|
+
actionIcon?: React.ReactNode;
|
|
407
|
+
/**
|
|
408
|
+
* Action Buttom Event Handler
|
|
409
|
+
*/
|
|
410
|
+
onActionClick?: () => void;
|
|
411
|
+
/**
|
|
412
|
+
* Input Prefix Section
|
|
413
|
+
*/
|
|
414
|
+
prefix?: string;
|
|
415
|
+
/**
|
|
416
|
+
* Input Prefix Section
|
|
417
|
+
*/
|
|
418
|
+
suffix?: string;
|
|
419
|
+
/**
|
|
420
|
+
* Input helpertext Icon
|
|
421
|
+
*/
|
|
422
|
+
helperText?: string;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
declare const Input: React__default.ForwardRefExoticComponent<Omit<InputProps, "ref"> & React__default.RefAttributes<HTMLInputElement>>;
|
|
426
|
+
|
|
427
|
+
declare const containerVariants: tailwind_variants.TVReturnType<{
|
|
428
|
+
size: {
|
|
429
|
+
xs: string;
|
|
430
|
+
sm: string;
|
|
431
|
+
md: string;
|
|
432
|
+
lg: string;
|
|
433
|
+
};
|
|
434
|
+
rounded: {
|
|
435
|
+
true: string;
|
|
436
|
+
false: string;
|
|
437
|
+
};
|
|
438
|
+
fullWidth: {
|
|
439
|
+
true: string;
|
|
440
|
+
false: string;
|
|
441
|
+
};
|
|
442
|
+
}, undefined, "bg-surface-sunken inline-flex items-center justify-center p-1 gap-1", {
|
|
443
|
+
size: {
|
|
444
|
+
xs: string;
|
|
445
|
+
sm: string;
|
|
446
|
+
md: string;
|
|
447
|
+
lg: string;
|
|
448
|
+
};
|
|
449
|
+
rounded: {
|
|
450
|
+
true: string;
|
|
451
|
+
false: string;
|
|
452
|
+
};
|
|
453
|
+
fullWidth: {
|
|
454
|
+
true: string;
|
|
455
|
+
false: string;
|
|
456
|
+
};
|
|
457
|
+
}, undefined, tailwind_variants.TVReturnType<{
|
|
458
|
+
size: {
|
|
459
|
+
xs: string;
|
|
460
|
+
sm: string;
|
|
461
|
+
md: string;
|
|
462
|
+
lg: string;
|
|
463
|
+
};
|
|
464
|
+
rounded: {
|
|
465
|
+
true: string;
|
|
466
|
+
false: string;
|
|
467
|
+
};
|
|
468
|
+
fullWidth: {
|
|
469
|
+
true: string;
|
|
470
|
+
false: string;
|
|
471
|
+
};
|
|
472
|
+
}, undefined, "bg-surface-sunken inline-flex items-center justify-center p-1 gap-1", unknown, unknown, undefined>>;
|
|
473
|
+
|
|
474
|
+
type DefaultType = Omit<
|
|
475
|
+
React.ComponentProps<typeof TabsPrimitive.Root>,
|
|
476
|
+
"onValueChange" | "onChange"
|
|
477
|
+
>;
|
|
478
|
+
|
|
479
|
+
type SegmentButtonSize = keyof typeof containerVariants.variants.size;
|
|
480
|
+
|
|
481
|
+
type SegmentButtonType = {
|
|
482
|
+
/**
|
|
483
|
+
* Segment Button Size
|
|
484
|
+
*/
|
|
485
|
+
size?: SegmentButtonSize;
|
|
486
|
+
/**
|
|
487
|
+
* Segment Button Disabled
|
|
488
|
+
*/
|
|
489
|
+
disabled?: boolean;
|
|
490
|
+
/**
|
|
491
|
+
* Segment Button Rounded
|
|
492
|
+
*/
|
|
493
|
+
rounded?: boolean;
|
|
494
|
+
/**
|
|
495
|
+
* Segment Button fullWidth
|
|
496
|
+
*/
|
|
497
|
+
fullWidth?: boolean;
|
|
498
|
+
/**
|
|
499
|
+
* Segment Button onChange event
|
|
500
|
+
*/
|
|
501
|
+
onChange?: (value: string) => void;
|
|
502
|
+
} & DefaultType;
|
|
503
|
+
|
|
504
|
+
declare function SegmentButton({ className, size, disabled, rounded, fullWidth, children, onChange, ...props }: SegmentButtonType): react_jsx_runtime.JSX.Element;
|
|
505
|
+
declare namespace SegmentButton {
|
|
506
|
+
var Container: ({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.List>) => react_jsx_runtime.JSX.Element;
|
|
507
|
+
var Item: typeof Trigger;
|
|
508
|
+
}
|
|
509
|
+
declare function Trigger({ className, disabled, ...props }: React.ComponentProps<typeof TabsPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
510
|
+
|
|
511
|
+
declare function Card({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
512
|
+
declare namespace Card {
|
|
513
|
+
var Header: typeof CardHeader;
|
|
514
|
+
var Footer: typeof CardFooter;
|
|
515
|
+
var Content: typeof CardContent;
|
|
516
|
+
}
|
|
517
|
+
declare function CardHeader({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
518
|
+
declare function CardContent({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
519
|
+
declare function CardFooter({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
520
|
+
|
|
521
|
+
declare const contentWrapperVariants: tailwind_variants.TVReturnType<{
|
|
522
|
+
size: {
|
|
523
|
+
sm: string;
|
|
524
|
+
md: string;
|
|
525
|
+
lg: string;
|
|
526
|
+
xl: string;
|
|
527
|
+
full: string;
|
|
528
|
+
};
|
|
529
|
+
}, undefined, "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] rounded-2xl bg-white/20 p-4 backdrop-blur-xs", {
|
|
530
|
+
size: {
|
|
531
|
+
sm: string;
|
|
532
|
+
md: string;
|
|
533
|
+
lg: string;
|
|
534
|
+
xl: string;
|
|
535
|
+
full: string;
|
|
536
|
+
};
|
|
537
|
+
}, undefined, tailwind_variants.TVReturnType<{
|
|
538
|
+
size: {
|
|
539
|
+
sm: string;
|
|
540
|
+
md: string;
|
|
541
|
+
lg: string;
|
|
542
|
+
xl: string;
|
|
543
|
+
full: string;
|
|
544
|
+
};
|
|
545
|
+
}, undefined, "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] rounded-2xl bg-white/20 p-4 backdrop-blur-xs", unknown, unknown, undefined>>;
|
|
546
|
+
|
|
547
|
+
type DefaulTtype = Omit<
|
|
548
|
+
React.ComponentProps<typeof DialogPrimitive.Root>,
|
|
549
|
+
"onOpenChange"
|
|
550
|
+
>;
|
|
551
|
+
|
|
552
|
+
type DialogSize = keyof typeof contentWrapperVariants.variants.size;
|
|
553
|
+
|
|
554
|
+
type DialogHeaderBarProps = {
|
|
555
|
+
title?: string | React.ReactNode;
|
|
556
|
+
hideClose?: boolean;
|
|
557
|
+
children?: React.ReactNode;
|
|
558
|
+
};
|
|
559
|
+
|
|
560
|
+
type SmartDialogProps = {
|
|
561
|
+
open?: boolean;
|
|
562
|
+
disableCloseOutside?: boolean;
|
|
563
|
+
onClose?: (open: boolean) => void;
|
|
564
|
+
trigger?: React.ReactNode;
|
|
565
|
+
children?: React.ReactNode;
|
|
566
|
+
size?: DialogSize;
|
|
567
|
+
onInteractOutside?:
|
|
568
|
+
| ((event: PointerDownOutsideEvent | FocusOutsideEvent) => void)
|
|
569
|
+
| undefined;
|
|
570
|
+
} & DefaulTtype;
|
|
571
|
+
|
|
572
|
+
declare function DialogFooter({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
573
|
+
declare function DialogHeaderBar({ title, hideClose, children }: DialogHeaderBarProps): react_jsx_runtime.JSX.Element;
|
|
574
|
+
declare function SmartDialog({ open, onClose, disableCloseOutside, onInteractOutside, trigger, children, size, ...props }: SmartDialogProps): react_jsx_runtime.JSX.Element;
|
|
575
|
+
declare namespace SmartDialog {
|
|
576
|
+
var Header: typeof DialogHeaderBar;
|
|
577
|
+
var Footer: typeof DialogFooter;
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
type DrawerSide = "top" | "bottom" | "left" | "right";
|
|
581
|
+
|
|
582
|
+
type DrawerHeader = {
|
|
583
|
+
title?: string | React.ReactNode;
|
|
584
|
+
hideClose?: boolean;
|
|
585
|
+
children?: React.ReactNode;
|
|
586
|
+
extraAction?: React.ReactNode;
|
|
587
|
+
};
|
|
588
|
+
|
|
589
|
+
type DrawerProps = {
|
|
590
|
+
open?: boolean;
|
|
591
|
+
disableCloseOutside?: boolean;
|
|
592
|
+
onClose?: (open: boolean) => void;
|
|
593
|
+
trigger?: React.ReactNode;
|
|
594
|
+
side?: DrawerSide;
|
|
595
|
+
onInteractOutside?:
|
|
596
|
+
| ((event: PointerDownOutsideEvent | FocusOutsideEvent) => void)
|
|
597
|
+
| undefined;
|
|
598
|
+
children?: React.ReactNode;
|
|
599
|
+
};
|
|
600
|
+
|
|
601
|
+
declare function SheetFooter({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
602
|
+
declare function SheetHeaderBar({ title, hideClose, children, extraAction, }: DrawerHeader): react_jsx_runtime.JSX.Element;
|
|
603
|
+
declare function SmartSheet({ open, onClose, trigger, disableCloseOutside, onInteractOutside, side, children, }: DrawerProps): react_jsx_runtime.JSX.Element;
|
|
604
|
+
declare namespace SmartSheet {
|
|
605
|
+
var Header: typeof SheetHeaderBar;
|
|
606
|
+
var Footer: typeof SheetFooter;
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
declare const AccordionTriggerVariants: tailwind_variants.TVReturnType<{
|
|
610
|
+
separate: {
|
|
611
|
+
true: string;
|
|
612
|
+
};
|
|
613
|
+
variant: {
|
|
614
|
+
default: string;
|
|
615
|
+
ghost: string;
|
|
616
|
+
};
|
|
617
|
+
}, undefined, " group text-fg flex flex-1 cursor-pointer items-start p-4 pr-8 text-right text-base font-medium transition-all outline-none focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 ", {
|
|
618
|
+
separate: {
|
|
619
|
+
true: string;
|
|
620
|
+
};
|
|
621
|
+
variant: {
|
|
622
|
+
default: string;
|
|
623
|
+
ghost: string;
|
|
624
|
+
};
|
|
625
|
+
}, undefined, tailwind_variants.TVReturnType<{
|
|
626
|
+
separate: {
|
|
627
|
+
true: string;
|
|
628
|
+
};
|
|
629
|
+
variant: {
|
|
630
|
+
default: string;
|
|
631
|
+
ghost: string;
|
|
632
|
+
};
|
|
633
|
+
}, undefined, " group text-fg flex flex-1 cursor-pointer items-start p-4 pr-8 text-right text-base font-medium transition-all outline-none focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 ", unknown, unknown, undefined>>;
|
|
634
|
+
|
|
635
|
+
type AccordionVariant =
|
|
636
|
+
keyof typeof AccordionTriggerVariants.variants.variant;
|
|
637
|
+
|
|
638
|
+
interface AccordionProps {
|
|
639
|
+
separate?: boolean;
|
|
640
|
+
variant?: AccordionVariant;
|
|
641
|
+
type?: "single" | "multiple";
|
|
642
|
+
collapsible?: boolean;
|
|
643
|
+
iconPosition?: "start" | "end";
|
|
644
|
+
onChange?: (v: string | strin[]) => void;
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
declare const chipsVariants: tailwind_variants.TVReturnType<{
|
|
648
|
+
variant: {
|
|
649
|
+
default: string;
|
|
650
|
+
secondary: string;
|
|
651
|
+
};
|
|
652
|
+
isClickable: {
|
|
653
|
+
true: string;
|
|
654
|
+
};
|
|
655
|
+
rounded: {
|
|
656
|
+
true: string;
|
|
657
|
+
};
|
|
658
|
+
}, undefined, "inline-flex items-center justify-center gap-1 disabled:shadow-none rounded-lg border disabled:border-stroke-disable disabled:bg-surface-disable-tertiary disabled:text-fg-disabled min-w-12 px-2 h-8 text-xs [&_svg:not([class*='size-'])]:size-3 outline-none disabled:pointer-events-none select-none focus-visible:ring-offset-surface focus-visible:ring-offset-3 focus-visible:ring-2 focus-visible:ring-focus-ring", {
|
|
659
|
+
variant: {
|
|
660
|
+
default: string;
|
|
661
|
+
secondary: string;
|
|
662
|
+
};
|
|
663
|
+
isClickable: {
|
|
664
|
+
true: string;
|
|
665
|
+
};
|
|
666
|
+
rounded: {
|
|
667
|
+
true: string;
|
|
668
|
+
};
|
|
669
|
+
}, undefined, tailwind_variants.TVReturnType<{
|
|
670
|
+
variant: {
|
|
671
|
+
default: string;
|
|
672
|
+
secondary: string;
|
|
673
|
+
};
|
|
674
|
+
isClickable: {
|
|
675
|
+
true: string;
|
|
676
|
+
};
|
|
677
|
+
rounded: {
|
|
678
|
+
true: string;
|
|
679
|
+
};
|
|
680
|
+
}, undefined, "inline-flex items-center justify-center gap-1 disabled:shadow-none rounded-lg border disabled:border-stroke-disable disabled:bg-surface-disable-tertiary disabled:text-fg-disabled min-w-12 px-2 h-8 text-xs [&_svg:not([class*='size-'])]:size-3 outline-none disabled:pointer-events-none select-none focus-visible:ring-offset-surface focus-visible:ring-offset-3 focus-visible:ring-2 focus-visible:ring-focus-ring", unknown, unknown, undefined>>;
|
|
681
|
+
|
|
682
|
+
type ChipsVariantType = keyof typeof chipsVariants.variants.variant;
|
|
683
|
+
|
|
684
|
+
interface ChipsType {
|
|
685
|
+
className?: string;
|
|
686
|
+
label?: string;
|
|
687
|
+
rounded?: boolean;
|
|
688
|
+
disabled?: boolean;
|
|
689
|
+
icon?: React.ReactNode;
|
|
690
|
+
variant?: ChipsVariantType;
|
|
691
|
+
onClose?: () => void;
|
|
692
|
+
onClick?: () => void;
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
type PaginationProps = {
|
|
696
|
+
className?: string;
|
|
697
|
+
totalItems: number;
|
|
698
|
+
initialPage?: number;
|
|
699
|
+
pageSize?: number;
|
|
700
|
+
pageSizeOptions?: number[];
|
|
701
|
+
siblings?: number;
|
|
702
|
+
onPageChange?: (page: number, pageSize: number) => void;
|
|
703
|
+
showPageSizeSelector?: boolean;
|
|
704
|
+
showPageInfo?: boolean;
|
|
705
|
+
rounded?: boolean;
|
|
706
|
+
};
|
|
707
|
+
|
|
708
|
+
type PopoverProps = React.ComponentProps<typeof PopoverPrimitive.Root>;
|
|
709
|
+
type PopoverTrigger$1 = React.ComponentProps<
|
|
710
|
+
typeof PopoverPrimitive.Trigger
|
|
711
|
+
>;
|
|
712
|
+
|
|
713
|
+
type PopoverContent$1 = React.ComponentProps<
|
|
714
|
+
typeof PopoverPrimitive.Content
|
|
715
|
+
>;
|
|
716
|
+
|
|
717
|
+
declare const tagVariants: tailwind_variants.TVReturnType<{
|
|
718
|
+
variant: {
|
|
719
|
+
default: string;
|
|
720
|
+
secondary: string;
|
|
721
|
+
error: string;
|
|
722
|
+
success: string;
|
|
723
|
+
warning: string;
|
|
724
|
+
info: string;
|
|
725
|
+
magenta: string;
|
|
726
|
+
cyan: string;
|
|
727
|
+
blue: string;
|
|
728
|
+
lime: string;
|
|
729
|
+
purple: string;
|
|
730
|
+
volcano: string;
|
|
731
|
+
};
|
|
732
|
+
rounded: {
|
|
733
|
+
true: string;
|
|
734
|
+
};
|
|
735
|
+
borderLess: {
|
|
736
|
+
true: string;
|
|
737
|
+
};
|
|
738
|
+
}, undefined, "inline-flex [&_svg]:stroke-current items-center justify-center gap-1 h-6 min-w-11 px-2 rounded-sm border text-xs [&_svg:not([class*='size-'])]:size-3 outline-none select-none", {
|
|
739
|
+
variant: {
|
|
740
|
+
default: string;
|
|
741
|
+
secondary: string;
|
|
742
|
+
error: string;
|
|
743
|
+
success: string;
|
|
744
|
+
warning: string;
|
|
745
|
+
info: string;
|
|
746
|
+
magenta: string;
|
|
747
|
+
cyan: string;
|
|
748
|
+
blue: string;
|
|
749
|
+
lime: string;
|
|
750
|
+
purple: string;
|
|
751
|
+
volcano: string;
|
|
752
|
+
};
|
|
753
|
+
rounded: {
|
|
754
|
+
true: string;
|
|
755
|
+
};
|
|
756
|
+
borderLess: {
|
|
757
|
+
true: string;
|
|
758
|
+
};
|
|
759
|
+
}, undefined, tailwind_variants.TVReturnType<{
|
|
760
|
+
variant: {
|
|
761
|
+
default: string;
|
|
762
|
+
secondary: string;
|
|
763
|
+
error: string;
|
|
764
|
+
success: string;
|
|
765
|
+
warning: string;
|
|
766
|
+
info: string;
|
|
767
|
+
magenta: string;
|
|
768
|
+
cyan: string;
|
|
769
|
+
blue: string;
|
|
770
|
+
lime: string;
|
|
771
|
+
purple: string;
|
|
772
|
+
volcano: string;
|
|
773
|
+
};
|
|
774
|
+
rounded: {
|
|
775
|
+
true: string;
|
|
776
|
+
};
|
|
777
|
+
borderLess: {
|
|
778
|
+
true: string;
|
|
779
|
+
};
|
|
780
|
+
}, undefined, "inline-flex [&_svg]:stroke-current items-center justify-center gap-1 h-6 min-w-11 px-2 rounded-sm border text-xs [&_svg:not([class*='size-'])]:size-3 outline-none select-none", unknown, unknown, undefined>>;
|
|
781
|
+
|
|
782
|
+
type TagVariantsType = keyof typeof tagVariants.variants.variant;
|
|
783
|
+
|
|
784
|
+
interface TagType {
|
|
785
|
+
className?: string;
|
|
786
|
+
label?: string;
|
|
787
|
+
rounded?: boolean;
|
|
788
|
+
borderLess?: boolean;
|
|
789
|
+
icon?: React.ReactNode;
|
|
790
|
+
variant?: TagVariantsType;
|
|
791
|
+
}
|
|
792
|
+
|
|
793
|
+
declare const tabsListVariants: tailwind_variants.TVReturnType<{
|
|
794
|
+
variant: {
|
|
795
|
+
filled: string;
|
|
796
|
+
underline: string;
|
|
797
|
+
};
|
|
798
|
+
size: {
|
|
799
|
+
sm: string;
|
|
800
|
+
md: string;
|
|
801
|
+
lg: string;
|
|
802
|
+
};
|
|
803
|
+
}, undefined, "inline-flex items-center", {
|
|
804
|
+
variant: {
|
|
805
|
+
filled: string;
|
|
806
|
+
underline: string;
|
|
807
|
+
};
|
|
808
|
+
size: {
|
|
809
|
+
sm: string;
|
|
810
|
+
md: string;
|
|
811
|
+
lg: string;
|
|
812
|
+
};
|
|
813
|
+
}, undefined, tailwind_variants.TVReturnType<{
|
|
814
|
+
variant: {
|
|
815
|
+
filled: string;
|
|
816
|
+
underline: string;
|
|
817
|
+
};
|
|
818
|
+
size: {
|
|
819
|
+
sm: string;
|
|
820
|
+
md: string;
|
|
821
|
+
lg: string;
|
|
822
|
+
};
|
|
823
|
+
}, undefined, "inline-flex items-center", unknown, unknown, undefined>>;
|
|
824
|
+
|
|
825
|
+
type TabsVariants = keyof typeof tabsListVariants.variants.variant;
|
|
826
|
+
type TabsSize = keyof typeof tabsListVariants.variants.size;
|
|
827
|
+
|
|
828
|
+
type TabsProps = Omit<
|
|
829
|
+
React.ComponentProps<typeof TabsPrimitive.Root>,
|
|
830
|
+
"onChange" | "onValueChange"
|
|
831
|
+
> &
|
|
832
|
+
TabsType;
|
|
833
|
+
|
|
834
|
+
type TabsListProps = React.ComponentProps<typeof TabsPrimitive.List>;
|
|
835
|
+
|
|
836
|
+
type TabsTriggerProps = React.ComponentProps<
|
|
837
|
+
typeof TabsPrimitive.Trigger
|
|
838
|
+
>;
|
|
839
|
+
|
|
840
|
+
type TabsContentProps = React.ComponentProps<
|
|
841
|
+
typeof TabsPrimitive.Content
|
|
842
|
+
>;
|
|
843
|
+
interface TabsType {
|
|
844
|
+
onChange?: (value: string) => void;
|
|
845
|
+
variant?: TabsVariants;
|
|
846
|
+
size?: TabsSize;
|
|
847
|
+
fullWidth?: boolean;
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
type InputRule =
|
|
851
|
+
| {format: string; maxLength?: never}
|
|
852
|
+
| {maxLength: number; format?: never};
|
|
853
|
+
|
|
854
|
+
type contextType = {
|
|
855
|
+
separate?: boolean;
|
|
856
|
+
placeholderChar?: string | null;
|
|
857
|
+
withPlaceholder?: boolean;
|
|
858
|
+
};
|
|
859
|
+
|
|
860
|
+
type OTPProps = Omit<
|
|
861
|
+
React.ComponentProps<typeof OTPInput>,
|
|
862
|
+
"render" | "maxLength"
|
|
863
|
+
> & {
|
|
864
|
+
containerClassName?: string;
|
|
865
|
+
group?: number[];
|
|
866
|
+
} & contextType &
|
|
867
|
+
InputRule;
|
|
868
|
+
|
|
869
|
+
interface StepItem {
|
|
870
|
+
id: number;
|
|
871
|
+
label: string;
|
|
872
|
+
caption?: string;
|
|
873
|
+
disabled?: boolean;
|
|
874
|
+
icon?: React.ReactNode;
|
|
875
|
+
}
|
|
876
|
+
|
|
877
|
+
type ConnectorType = "dashed" | "solid";
|
|
878
|
+
interface StepperProps {
|
|
879
|
+
steps: StepItem[];
|
|
880
|
+
activeStep: number;
|
|
881
|
+
onChange?: (id: number) => void;
|
|
882
|
+
orientation?: OrientationType;
|
|
883
|
+
className?: string;
|
|
884
|
+
clickable?: boolean;
|
|
885
|
+
dotStyle?: boolean;
|
|
886
|
+
connector?: ConnectorType;
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
declare const alertVariants: tailwind_variants.TVReturnType<{
|
|
890
|
+
type: {
|
|
891
|
+
success: string;
|
|
892
|
+
error: string;
|
|
893
|
+
warning: string;
|
|
894
|
+
info: string;
|
|
895
|
+
default: string;
|
|
896
|
+
};
|
|
897
|
+
variant: {
|
|
898
|
+
filled: string;
|
|
899
|
+
outline: string;
|
|
900
|
+
};
|
|
901
|
+
}, undefined, "relative w-full rounded-2xl border py-2 px-3 text-right flex gap-x-3", {
|
|
902
|
+
type: {
|
|
903
|
+
success: string;
|
|
904
|
+
error: string;
|
|
905
|
+
warning: string;
|
|
906
|
+
info: string;
|
|
907
|
+
default: string;
|
|
908
|
+
};
|
|
909
|
+
variant: {
|
|
910
|
+
filled: string;
|
|
911
|
+
outline: string;
|
|
912
|
+
};
|
|
913
|
+
}, undefined, tailwind_variants.TVReturnType<{
|
|
914
|
+
type: {
|
|
915
|
+
success: string;
|
|
916
|
+
error: string;
|
|
917
|
+
warning: string;
|
|
918
|
+
info: string;
|
|
919
|
+
default: string;
|
|
920
|
+
};
|
|
921
|
+
variant: {
|
|
922
|
+
filled: string;
|
|
923
|
+
outline: string;
|
|
924
|
+
};
|
|
925
|
+
}, undefined, "relative w-full rounded-2xl border py-2 px-3 text-right flex gap-x-3", unknown, unknown, undefined>>;
|
|
926
|
+
|
|
927
|
+
type AlertTypes = keyof typeof alertVariants.variants.type;
|
|
928
|
+
type AlertVariants = keyof typeof alertVariants.variants.variant;
|
|
929
|
+
|
|
930
|
+
type AlertProps = {
|
|
931
|
+
type?: AlertTypes;
|
|
932
|
+
variant?: AlertVariants;
|
|
933
|
+
title?: string;
|
|
934
|
+
withIcon?: boolean;
|
|
935
|
+
closable?: boolean;
|
|
936
|
+
onClose?: StateAction;
|
|
937
|
+
onAction?: StateAction;
|
|
938
|
+
actionText?: string;
|
|
939
|
+
} & React.ComponentProps<"div">;
|
|
940
|
+
|
|
941
|
+
type BreadcrumbItemType = {
|
|
942
|
+
label: string;
|
|
943
|
+
href?: string;
|
|
944
|
+
icon?: ReactNode;
|
|
945
|
+
onClick?: () => void;
|
|
946
|
+
};
|
|
947
|
+
|
|
948
|
+
type BreadcrumbProps = {
|
|
949
|
+
items: BreadcrumbItemType[];
|
|
950
|
+
maxVisible?: number;
|
|
951
|
+
seperator?: ReactNode;
|
|
952
|
+
LinkComponent?: ComponentType<{
|
|
953
|
+
to?: string;
|
|
954
|
+
href?: string;
|
|
955
|
+
children: ReactNode;
|
|
956
|
+
}>;
|
|
957
|
+
};
|
|
958
|
+
|
|
959
|
+
type IconType = React.ComponentType<React.SVGProps<SVGSVGElement>>;
|
|
960
|
+
|
|
961
|
+
type OrientationType = "horizontal" | "vertical";
|
|
962
|
+
|
|
963
|
+
|
|
964
|
+
type StateAction<T> = () => void | React.Dispatch<
|
|
965
|
+
React.SetStateAction<T>
|
|
966
|
+
>;
|
|
967
|
+
|
|
968
|
+
type SingleSelectValueType = string | null;
|
|
969
|
+
type MultiSelectValueType = string[];
|
|
970
|
+
type SelectValue = string | number | undefined;
|
|
971
|
+
|
|
972
|
+
type SelectOptionType<T extends object = {}> = {
|
|
973
|
+
label: string;
|
|
974
|
+
value: SelectValue;
|
|
975
|
+
} & T;
|
|
976
|
+
|
|
977
|
+
interface BaseSelectProps {
|
|
978
|
+
className?: string;
|
|
979
|
+
rounded?: boolean;
|
|
980
|
+
options: SelectOptionType[];
|
|
981
|
+
onSearch?: (text: string) => void;
|
|
982
|
+
placeholder?: string;
|
|
983
|
+
emptyText?: string;
|
|
984
|
+
searchable?: boolean;
|
|
985
|
+
error?: boolean;
|
|
986
|
+
loading?: boolean;
|
|
987
|
+
disabled?: boolean;
|
|
988
|
+
readOnly?: boolean;
|
|
989
|
+
asyncSearch?: boolean;
|
|
990
|
+
clearable?: boolean;
|
|
991
|
+
label?: string;
|
|
992
|
+
hint?: string;
|
|
993
|
+
helperText?: string;
|
|
994
|
+
size?: "xs" | "sm" | "md" | "lg";
|
|
995
|
+
scrollContent?: boolean;
|
|
996
|
+
}
|
|
997
|
+
|
|
998
|
+
type OnChangeHandlerType<T extends SelectValue> =
|
|
999
|
+
| ((value: T, opt?: SelectOptionType<T>) => void)
|
|
1000
|
+
| React.Dispatch<React.SetStateAction<T>>;
|
|
1001
|
+
|
|
1002
|
+
type OnChangeHandlerMultiType<T extends SelectValue> =
|
|
1003
|
+
| ((v: SelectValue[]) => void)
|
|
1004
|
+
| React.Dispatch<React.SetStateAction<T>>;
|
|
1005
|
+
|
|
1006
|
+
interface SingleSelectProps extends BaseSelectProps {
|
|
1007
|
+
mode?: "select"; // default
|
|
1008
|
+
value: SelectValue;
|
|
1009
|
+
onChange: OnChangeHandlerType;
|
|
1010
|
+
}
|
|
1011
|
+
|
|
1012
|
+
interface MultiSelectProps extends BaseSelectProps {
|
|
1013
|
+
mode: "multi";
|
|
1014
|
+
value: SelectValue[] | [];
|
|
1015
|
+
onChange: OnChangeHandlerMultiType;
|
|
1016
|
+
}
|
|
1017
|
+
|
|
1018
|
+
type SelectProps = SingleSelectProps | MultiSelectProps;
|
|
1019
|
+
|
|
1020
|
+
declare function Select(props: SingleSelectProps): JSX.Element;
|
|
1021
|
+
declare function Select(props: MultiSelectProps): JSX.Element;
|
|
1022
|
+
declare function Select({ mode, options, value, className, onChange, onSearch, searchable, loading, label, hint, helperText, error, disabled, rounded, readOnly, size, asyncSearch, scrollContent, clearable, placeholder, emptyText, }: SelectProps): react_jsx_runtime.JSX.Element;
|
|
1023
|
+
|
|
1024
|
+
declare function Tooltip({ ...props }: React$1.ComponentProps<typeof TooltipPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
1025
|
+
declare namespace Tooltip {
|
|
1026
|
+
var Trigger: typeof TooltipTrigger;
|
|
1027
|
+
var Content: typeof TooltipContent;
|
|
1028
|
+
}
|
|
1029
|
+
declare function TooltipTrigger({ ...props }: React$1.ComponentProps<typeof TooltipPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
1030
|
+
declare function TooltipContent({ className, sideOffset, children, ...props }: React$1.ComponentProps<typeof TooltipPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
1031
|
+
|
|
1032
|
+
declare function Popover({ ...props }: React$1.ComponentProps<typeof PopoverPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
1033
|
+
declare namespace Popover {
|
|
1034
|
+
var Trigger: typeof PopoverTrigger;
|
|
1035
|
+
var Content: typeof PopoverContent;
|
|
1036
|
+
}
|
|
1037
|
+
declare function PopoverTrigger({ ...props }: React$1.ComponentProps<typeof PopoverPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
1038
|
+
declare function PopoverContent({ className, align, sideOffset, ...props }: React$1.ComponentProps<typeof PopoverPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
1039
|
+
|
|
1040
|
+
declare function Accordion({ className, separate, variant, collapsible, type, onChange, iconPosition, ...props }: Omit<React$1.ComponentProps<typeof AccordionPrimitive.Root>, "type" | "onValueChange" | "onChange"> & AccordionProps): react_jsx_runtime.JSX.Element;
|
|
1041
|
+
declare namespace Accordion {
|
|
1042
|
+
var Item: typeof AccordionItem;
|
|
1043
|
+
var Trigger: typeof AccordionTrigger;
|
|
1044
|
+
var Content: typeof AccordionContent;
|
|
1045
|
+
}
|
|
1046
|
+
declare function AccordionItem({ className, ...props }: React$1.ComponentProps<typeof AccordionPrimitive.Item>): react_jsx_runtime.JSX.Element;
|
|
1047
|
+
declare function AccordionTrigger({ className, children, ...props }: React$1.ComponentProps<typeof AccordionPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
1048
|
+
declare function AccordionContent({ className, children, ...props }: React$1.ComponentProps<typeof AccordionPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
1049
|
+
|
|
1050
|
+
declare function Pagination({ totalItems, initialPage, pageSize, pageSizeOptions, siblings, onPageChange, className, showPageSizeSelector, showPageInfo, rounded, }: PaginationProps): react_jsx_runtime.JSX.Element;
|
|
1051
|
+
|
|
1052
|
+
declare function Badge({ label, icon, className, rounded, variant, disabled, onClose, onClick, }: ChipsType): react_jsx_runtime.JSX.Element;
|
|
1053
|
+
|
|
1054
|
+
declare function Tag({ label, icon, className, rounded, variant, borderLess, }: TagType): react_jsx_runtime.JSX.Element;
|
|
1055
|
+
|
|
1056
|
+
declare function Panel({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
1057
|
+
declare const Table: {
|
|
1058
|
+
({ children, align, separated, bordered, heigthClassName, }: {
|
|
1059
|
+
children: React.ReactNode;
|
|
1060
|
+
align?: "right" | "left" | "center";
|
|
1061
|
+
separated?: boolean;
|
|
1062
|
+
bordered?: boolean;
|
|
1063
|
+
heigthClassName?: string;
|
|
1064
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1065
|
+
Row: typeof Row;
|
|
1066
|
+
Header: ({ children, className, }: {
|
|
1067
|
+
children: React.ReactNode;
|
|
1068
|
+
className?: string;
|
|
1069
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
1070
|
+
Body: ({ children }: {
|
|
1071
|
+
children: React.ReactNode;
|
|
1072
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
1073
|
+
Footer: ({ children, className, }: {
|
|
1074
|
+
children: React.ReactNode;
|
|
1075
|
+
className?: string;
|
|
1076
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
1077
|
+
Panel: typeof Panel;
|
|
1078
|
+
Cell: typeof Cell;
|
|
1079
|
+
Head: typeof Head;
|
|
1080
|
+
Container: ({ children, className, }: {
|
|
1081
|
+
children: React.ReactNode;
|
|
1082
|
+
className?: string;
|
|
1083
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
1084
|
+
Caption: typeof Caption;
|
|
1085
|
+
};
|
|
1086
|
+
declare function Row({ className, ...props }: React.ComponentProps<"tr">): react_jsx_runtime.JSX.Element;
|
|
1087
|
+
declare function Head({ className, ...props }: React.ComponentProps<"th">): react_jsx_runtime.JSX.Element;
|
|
1088
|
+
declare function Cell({ className, ...props }: React.ComponentProps<"td">): react_jsx_runtime.JSX.Element;
|
|
1089
|
+
declare function Caption({ className, ...props }: React.ComponentProps<"caption">): react_jsx_runtime.JSX.Element;
|
|
1090
|
+
|
|
1091
|
+
declare function DropdownMenu({ ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
1092
|
+
declare namespace DropdownMenu {
|
|
1093
|
+
var Portal: typeof DropdownMenuPortal;
|
|
1094
|
+
var Trigger: typeof DropdownMenuTrigger;
|
|
1095
|
+
var Content: typeof DropdownMenuContent;
|
|
1096
|
+
var Group: typeof DropdownMenuGroup;
|
|
1097
|
+
var Label: typeof DropdownMenuLabel;
|
|
1098
|
+
var Item: typeof DropdownMenuItem;
|
|
1099
|
+
var Separator: typeof DropdownMenuSeparator;
|
|
1100
|
+
var Shortcut: typeof DropdownMenuShortcut;
|
|
1101
|
+
var Sub: typeof DropdownMenuSub;
|
|
1102
|
+
var SubTrigger: typeof DropdownMenuSubTrigger;
|
|
1103
|
+
var SubContent: typeof DropdownMenuSubContent;
|
|
1104
|
+
}
|
|
1105
|
+
declare function DropdownMenuPortal({ ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Portal>): react_jsx_runtime.JSX.Element;
|
|
1106
|
+
declare function DropdownMenuTrigger({ asChild, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
1107
|
+
declare function DropdownMenuContent({ className, sideOffset, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
1108
|
+
declare function DropdownMenuGroup({ ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Group>): react_jsx_runtime.JSX.Element;
|
|
1109
|
+
declare function DropdownMenuItem({ className, inset, variant, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Item> & {
|
|
1110
|
+
inset?: boolean;
|
|
1111
|
+
variant?: "default" | "destructive";
|
|
1112
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1113
|
+
declare function DropdownMenuLabel({ className, inset, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Label> & {
|
|
1114
|
+
inset?: boolean;
|
|
1115
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1116
|
+
declare function DropdownMenuSeparator({ className, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Separator>): react_jsx_runtime.JSX.Element;
|
|
1117
|
+
declare function DropdownMenuShortcut({ className, ...props }: React$1.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
|
|
1118
|
+
declare function DropdownMenuSub({ ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Sub>): react_jsx_runtime.JSX.Element;
|
|
1119
|
+
declare function DropdownMenuSubTrigger({ className, inset, children, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.SubTrigger> & {
|
|
1120
|
+
inset?: boolean;
|
|
1121
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1122
|
+
declare function DropdownMenuSubContent({ className, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.SubContent>): react_jsx_runtime.JSX.Element;
|
|
1123
|
+
|
|
1124
|
+
declare function Tabs({ className, onChange, variant, size, fullWidth, ...props }: Omit<React$1.ComponentProps<typeof TabsPrimitive.Root>, "onChange" | "onValueChange"> & TabsType): react_jsx_runtime.JSX.Element;
|
|
1125
|
+
declare namespace Tabs {
|
|
1126
|
+
var List: typeof TabsList;
|
|
1127
|
+
var Trigger: typeof TabsTrigger;
|
|
1128
|
+
var Content: typeof TabsContent;
|
|
1129
|
+
}
|
|
1130
|
+
declare function TabsList({ className, ...props }: React$1.ComponentProps<typeof TabsPrimitive.List>): react_jsx_runtime.JSX.Element;
|
|
1131
|
+
declare function TabsTrigger({ className, ...props }: React$1.ComponentProps<typeof TabsPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
1132
|
+
declare function TabsContent({ className, ...props }: React$1.ComponentProps<typeof TabsPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
1133
|
+
|
|
1134
|
+
declare function InputOTP({ className, containerClassName, separate, withPlaceholder, placeholderChar, group, format, maxLength, pattern, ...props }: OTPProps): react_jsx_runtime.JSX.Element;
|
|
1135
|
+
|
|
1136
|
+
type MenuItem = {
|
|
1137
|
+
key: string;
|
|
1138
|
+
label: string;
|
|
1139
|
+
icon?: React.ReactNode;
|
|
1140
|
+
onClick?: () => void;
|
|
1141
|
+
children?: MenuItem[];
|
|
1142
|
+
};
|
|
1143
|
+
type Props = {
|
|
1144
|
+
items: MenuItem[];
|
|
1145
|
+
activeKey?: string;
|
|
1146
|
+
level?: number;
|
|
1147
|
+
};
|
|
1148
|
+
declare function NestedAccordionMenu({ items, activeKey, level, }: Props): react_jsx_runtime.JSX.Element;
|
|
1149
|
+
|
|
1150
|
+
declare function Skeleton({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
1151
|
+
|
|
1152
|
+
declare function Stepper({ steps, activeStep, onChange, orientation, className, clickable, dotStyle, connector, }: StepperProps): react_jsx_runtime.JSX.Element;
|
|
1153
|
+
|
|
1154
|
+
declare function Alert({ className, type, variant, title, withIcon, onClose, closable, children, onAction, actionText, ...props }: AlertProps): react_jsx_runtime.JSX.Element;
|
|
1155
|
+
|
|
1156
|
+
declare function ScrollArea({ className, children, viewportClassName, ...props }: React$1.ComponentProps<typeof ScrollAreaPrimitive.Root> & {
|
|
1157
|
+
viewportClassName?: string;
|
|
1158
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1159
|
+
|
|
1160
|
+
declare function DynamicBreadcrumb({ items, seperator, maxVisible, LinkComponent, }: BreadcrumbProps): react_jsx_runtime.JSX.Element;
|
|
1161
|
+
|
|
1162
|
+
declare const RULES: {
|
|
1163
|
+
readonly ONLY_DIGITS: RegExp;
|
|
1164
|
+
readonly ONLY_CHARS: RegExp;
|
|
1165
|
+
readonly ONLY_DIGITS_AND_CHARS: RegExp;
|
|
1166
|
+
readonly NO_SPACES: RegExp;
|
|
1167
|
+
};
|
|
1168
|
+
|
|
1169
|
+
declare const isOnlyDigits: (value: string) => boolean;
|
|
1170
|
+
declare const isOnlyChars: (value: string) => boolean;
|
|
1171
|
+
declare const isOnlyDigitsAndChars: (value: string) => boolean;
|
|
1172
|
+
declare const isNoSpace: (value: string) => boolean;
|
|
1173
|
+
|
|
1174
|
+
declare const toEnglishDigits: (value: string) => string;
|
|
1175
|
+
|
|
1176
|
+
export { Accordion, type AccordionProps, type AccordionVariant, Alert, type AlertProps, type AlertTypes, type AlertVariants, DynamicBreadcrumb as Breadcrumb, type BreadcrumbItemType, type BreadcrumbProps, Button, type ButtonColors, type ButtonProps, type ButtonSize, type ButtonVariant, Card, Checkbox, type CheckboxProps, type CheckboxSize, Badge as Chips, type ChipsType, type ChipsVariantType, SmartDialog as Dialog, type DialogHeaderBarProps, type SmartDialogProps as DialogProps, type DialogSize, SmartSheet as Drawer, type DrawerHeader, type DrawerProps, type DrawerSide, DropdownMenu, type IconType, Input, InputOTP, type InputProps, type InputSize, NestedAccordionMenu as ListMenu, type MultiSelectProps, type MultiSelectValueType, type OTPProps, type OrientationType, Pagination, type PaginationProps, Popover, type PopoverContent$1 as PopoverContent, type PopoverProps, type PopoverTrigger$1 as PopoverTrigger, RULES, RadioGroup, type RadioItemProps, type RadioProps, type RadioSize, ScrollArea, SegmentButton, type SegmentButtonSize, type SegmentButtonType, Select, type SelectOptionType, type SelectProps, type SingleSelectProps, type SingleSelectValueType, Skeleton, type StateAction, type StepItem, Stepper, type StepperProps, Switch, type SwitchProps, type SwitchSize, Table, Tabs, type TabsContentProps, type TabsListProps, type TabsProps, type TabsSize, type TabsTriggerProps, type TabsVariants, Tag, type TagType, type TagVariantsType, Tooltip, isNoSpace, isOnlyChars, isOnlyDigits, isOnlyDigitsAndChars, toEnglishDigits };
|