@contentstudio/ui 0.1.31 → 0.1.33
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/README.md +0 -1
- package/dist/index.d.ts +340 -135
- package/dist/index.js +33629 -3877
- package/dist/index.umd.cjs +7752 -2
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -59,7 +59,6 @@ To enhance the design system, consider adding the following components:
|
|
|
59
59
|
- [ ] **Tabs**: A tabbed navigation component.
|
|
60
60
|
- [ ] **Slider**: A component for selecting a value from a range.
|
|
61
61
|
- [ ] **Date Picker**: A component for selecting dates.
|
|
62
|
-
- [ ] **Notification**: A component for displaying notifications and alerts.
|
|
63
62
|
- [ ] **Avatar**: A component for displaying user avatars.
|
|
64
63
|
- [ ] **Breadcrumbs**: A component for displaying navigation breadcrumbs.
|
|
65
64
|
- [ ] **Pagination**: A component for navigating through paginated content.
|
package/dist/index.d.ts
CHANGED
|
@@ -1,39 +1,44 @@
|
|
|
1
|
+
import { default as ActionIcon } from './ActionIcon.vue';
|
|
1
2
|
import { default as Alert } from './Alert.vue';
|
|
2
3
|
import { App } from 'vue';
|
|
3
4
|
import { default as Avatar } from './Avatar.vue';
|
|
4
5
|
import { default as AvatarGroup } from './AvatarGroup.vue';
|
|
5
|
-
import { default as Badge } from './
|
|
6
|
-
import { default as
|
|
7
|
-
import { default as
|
|
6
|
+
import { default as Badge } from './Badge.vue';
|
|
7
|
+
import { default as Breadcrumbs } from './Breadcrumbs.vue';
|
|
8
|
+
import { default as Button } from './Button.vue';
|
|
9
|
+
import { default as Card } from './Card.vue';
|
|
10
|
+
import { default as CardSection } from './CardSection.vue';
|
|
11
|
+
import { default as Checkbox } from './Checkbox.vue';
|
|
8
12
|
import { default as Chip } from './Chip.vue';
|
|
9
|
-
import { default as Collapse } from './Collapse.vue';
|
|
10
|
-
import { default as Collapsible } from './components/Collapsible/Collapsible.vue';
|
|
11
13
|
import { Component } from 'vue';
|
|
12
14
|
import { default as CustomToast } from './CustomToast.vue';
|
|
13
15
|
import { default as Dialog } from './Dialog.vue';
|
|
14
|
-
import { default as
|
|
15
|
-
import { default as
|
|
16
|
+
import { default as Drawer } from './Drawer.vue';
|
|
17
|
+
import { default as Dropdown } from './Dropdown.vue';
|
|
18
|
+
import { default as DropdownItem } from './DropdownItem.vue';
|
|
16
19
|
import { default as HoverCard } from './HoverCard.vue';
|
|
17
20
|
import { default as HoverCardTarget } from './HoverCardTarget.vue';
|
|
18
21
|
import { Id } from 'vue3-toastify';
|
|
19
22
|
import { default as Indicator } from './Indicator.vue';
|
|
20
23
|
import { InjectionKey } from 'vue';
|
|
21
|
-
import { default as ListItem } from './
|
|
24
|
+
import { default as ListItem } from './ListItem.vue';
|
|
22
25
|
import { default as Loader } from './Loader.vue';
|
|
23
26
|
import { default as Modal } from './Modal.vue';
|
|
24
27
|
import { default as Pagination } from './Pagination.vue';
|
|
25
28
|
import { Placement } from '@floating-ui/vue';
|
|
29
|
+
import { default as Popover } from './Popover.vue';
|
|
26
30
|
import { default as Progress } from './Progress.vue';
|
|
27
|
-
import { default as Radio } from './components/Radio/Radio.vue';
|
|
28
31
|
import { Ref } from 'vue';
|
|
29
|
-
import { default as SegmentedControl } from './
|
|
30
|
-
import { default as
|
|
32
|
+
import { default as SegmentedControl } from './SegmentedControl.vue';
|
|
33
|
+
import { default as SplitButton } from './SplitButton.vue';
|
|
34
|
+
import { default as Switch } from './Switch.vue';
|
|
31
35
|
import { default as Tabs } from './Tabs.vue';
|
|
32
36
|
import { default as TabsList } from './TabsList.vue';
|
|
33
37
|
import { default as TabsPanel } from './TabsPanel.vue';
|
|
34
38
|
import { default as TabsTab } from './TabsTab.vue';
|
|
39
|
+
import { default as Textarea } from './Textarea.vue';
|
|
35
40
|
import { default as TextInput } from './TextInput.vue';
|
|
36
|
-
import { default as Toast } from './
|
|
41
|
+
import { default as Toast } from './Toast.vue';
|
|
37
42
|
import { toast } from 'vue3-toastify';
|
|
38
43
|
import { ToastContainerOptions } from 'vue3-toastify';
|
|
39
44
|
import { ToastContent } from 'vue3-toastify';
|
|
@@ -44,6 +49,46 @@ import { ToastTransition } from 'vue3-toastify';
|
|
|
44
49
|
import { ToastType } from 'vue3-toastify';
|
|
45
50
|
import { UpdateOptions } from 'vue3-toastify';
|
|
46
51
|
|
|
52
|
+
export { ActionIcon }
|
|
53
|
+
|
|
54
|
+
export declare interface ActionIconEmits {
|
|
55
|
+
/** Click event */
|
|
56
|
+
click: [event: MouseEvent];
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export declare interface ActionIconProps {
|
|
60
|
+
/** Determines whether Loader component should be displayed instead of the children */
|
|
61
|
+
loading?: boolean;
|
|
62
|
+
/** Props added to the Loader component (only visible when loading prop is set) */
|
|
63
|
+
loaderProps?: LoaderProps;
|
|
64
|
+
/** Controls width and height of the button */
|
|
65
|
+
size?: ActionIconSize;
|
|
66
|
+
/** Color variant of the button */
|
|
67
|
+
color?: ThemeColor;
|
|
68
|
+
/** Border radius value */
|
|
69
|
+
radius?: ComponentRadius;
|
|
70
|
+
/** Gradient data used when variant="gradient" */
|
|
71
|
+
gradient?: {
|
|
72
|
+
from: string;
|
|
73
|
+
to: string;
|
|
74
|
+
deg?: number;
|
|
75
|
+
};
|
|
76
|
+
/** Sets disabled and data-disabled attributes on the button element */
|
|
77
|
+
disabled?: boolean;
|
|
78
|
+
/** Icon name from Lucide icons library */
|
|
79
|
+
iconName?: string;
|
|
80
|
+
/** Style variant */
|
|
81
|
+
variant?: ActionIconVariant;
|
|
82
|
+
/** Additional CSS class names */
|
|
83
|
+
class?: string;
|
|
84
|
+
/** Click event handler */
|
|
85
|
+
onClick?: (event: MouseEvent) => void;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export declare type ActionIconSize = ComponentSize;
|
|
89
|
+
|
|
90
|
+
export declare type ActionIconVariant = ButtonVariant;
|
|
91
|
+
|
|
47
92
|
export { Alert }
|
|
48
93
|
|
|
49
94
|
export declare interface AlertProps {
|
|
@@ -177,6 +222,8 @@ export declare interface BadgeProps {
|
|
|
177
222
|
|
|
178
223
|
export declare type BadgeVariant = 'filled' | 'light' | 'outline' | 'gradient' | 'transparent';
|
|
179
224
|
|
|
225
|
+
export { Breadcrumbs }
|
|
226
|
+
|
|
180
227
|
export { Button }
|
|
181
228
|
|
|
182
229
|
export declare type ButtonColor = NonNullable<ButtonProps['color']>;
|
|
@@ -214,7 +261,11 @@ export declare type ButtonRadius = NonNullable<ButtonProps['radius']>;
|
|
|
214
261
|
|
|
215
262
|
export declare type ButtonSize = NonNullable<ButtonProps['size']>;
|
|
216
263
|
|
|
217
|
-
|
|
264
|
+
declare type ButtonVariant = 'filled' | 'light' | 'outline' | 'subtle' | 'gradient' | 'white' | 'default';
|
|
265
|
+
|
|
266
|
+
export { Card }
|
|
267
|
+
|
|
268
|
+
export { CardSection }
|
|
218
269
|
|
|
219
270
|
export { Checkbox }
|
|
220
271
|
|
|
@@ -292,107 +343,11 @@ declare type ChipSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
|
292
343
|
|
|
293
344
|
declare type ChipVariant = 'filled' | 'outline' | 'light';
|
|
294
345
|
|
|
295
|
-
export { Collapse }
|
|
296
|
-
|
|
297
|
-
export declare interface CollapseProps {
|
|
298
|
-
/** Whether the collapse is open */
|
|
299
|
-
open?: boolean;
|
|
300
|
-
/** Collapse content */
|
|
301
|
-
children?: any;
|
|
302
|
-
/** Animation duration in milliseconds */
|
|
303
|
-
duration?: number;
|
|
304
|
-
/** Custom class names */
|
|
305
|
-
class?: string;
|
|
306
|
-
/** Size of the collapse spacing */
|
|
307
|
-
size?: ComponentSize;
|
|
308
|
-
/** Whether to disable transitions */
|
|
309
|
-
disableTransition?: boolean;
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
export { Collapsible }
|
|
313
|
-
|
|
314
|
-
export declare interface CollapsibleProps {
|
|
315
|
-
defaultOpen?: boolean;
|
|
316
|
-
disabled?: boolean;
|
|
317
|
-
class?: string;
|
|
318
|
-
hideArrow?: boolean;
|
|
319
|
-
buttonClass?: string;
|
|
320
|
-
selectedClass?: string;
|
|
321
|
-
modelValue?: boolean;
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
export declare const colorClasses: {
|
|
325
|
-
readonly primary: {
|
|
326
|
-
readonly base: "blue";
|
|
327
|
-
readonly text: "text-blue-600";
|
|
328
|
-
readonly bg: "bg-blue-600";
|
|
329
|
-
readonly hover: "hover:bg-blue-700";
|
|
330
|
-
readonly border: "border-blue-600";
|
|
331
|
-
readonly ring: "ring-blue-500";
|
|
332
|
-
};
|
|
333
|
-
readonly secondary: {
|
|
334
|
-
readonly base: "gray";
|
|
335
|
-
readonly text: "text-gray-600";
|
|
336
|
-
readonly bg: "bg-gray-600";
|
|
337
|
-
readonly hover: "hover:bg-gray-700";
|
|
338
|
-
readonly border: "border-gray-600";
|
|
339
|
-
readonly ring: "ring-gray-500";
|
|
340
|
-
};
|
|
341
|
-
readonly success: {
|
|
342
|
-
readonly base: "green";
|
|
343
|
-
readonly text: "text-green-600";
|
|
344
|
-
readonly bg: "bg-green-600";
|
|
345
|
-
readonly hover: "hover:bg-green-700";
|
|
346
|
-
readonly border: "border-green-600";
|
|
347
|
-
readonly ring: "ring-green-500";
|
|
348
|
-
};
|
|
349
|
-
readonly warning: {
|
|
350
|
-
readonly base: "yellow";
|
|
351
|
-
readonly text: "text-yellow-600";
|
|
352
|
-
readonly bg: "bg-yellow-600";
|
|
353
|
-
readonly hover: "hover:bg-yellow-700";
|
|
354
|
-
readonly border: "border-yellow-600";
|
|
355
|
-
readonly ring: "ring-yellow-500";
|
|
356
|
-
};
|
|
357
|
-
readonly danger: {
|
|
358
|
-
readonly base: "red";
|
|
359
|
-
readonly text: "text-red-600";
|
|
360
|
-
readonly bg: "bg-red-600";
|
|
361
|
-
readonly hover: "hover:bg-red-700";
|
|
362
|
-
readonly border: "border-red-600";
|
|
363
|
-
readonly ring: "ring-red-500";
|
|
364
|
-
};
|
|
365
|
-
readonly info: {
|
|
366
|
-
readonly base: "sky";
|
|
367
|
-
readonly text: "text-sky-600";
|
|
368
|
-
readonly bg: "bg-sky-600";
|
|
369
|
-
readonly hover: "hover:bg-sky-700";
|
|
370
|
-
readonly border: "border-sky-600";
|
|
371
|
-
readonly ring: "ring-sky-500";
|
|
372
|
-
};
|
|
373
|
-
readonly dark: {
|
|
374
|
-
readonly base: "dark";
|
|
375
|
-
readonly text: "text-gray-200";
|
|
376
|
-
readonly bg: "bg-gray-900";
|
|
377
|
-
readonly hover: "hover:bg-gray-800";
|
|
378
|
-
readonly border: "border-gray-900";
|
|
379
|
-
readonly ring: "ring-gray-700";
|
|
380
|
-
};
|
|
381
|
-
readonly light: {
|
|
382
|
-
readonly base: "light";
|
|
383
|
-
readonly text: "text-gray-600";
|
|
384
|
-
readonly bg: "bg-gray-100";
|
|
385
|
-
readonly hover: "hover:bg-gray-200";
|
|
386
|
-
readonly border: "border-gray-100";
|
|
387
|
-
readonly ring: "ring-gray-300";
|
|
388
|
-
};
|
|
389
|
-
};
|
|
390
|
-
|
|
391
346
|
declare type ColorVariant = 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'info' | 'dark' | 'light';
|
|
392
347
|
|
|
393
|
-
|
|
348
|
+
declare type ComponentRadius = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
394
349
|
|
|
395
|
-
|
|
350
|
+
declare type ComponentSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
396
351
|
|
|
397
352
|
export declare const composables: {};
|
|
398
353
|
|
|
@@ -472,6 +427,67 @@ export declare interface DialogProps {
|
|
|
472
427
|
zIndex?: number;
|
|
473
428
|
}
|
|
474
429
|
|
|
430
|
+
export { Drawer }
|
|
431
|
+
|
|
432
|
+
declare type DrawerPosition = 'left' | 'right' | 'top' | 'bottom';
|
|
433
|
+
|
|
434
|
+
export declare interface DrawerProps {
|
|
435
|
+
/** Whether the drawer is opened */
|
|
436
|
+
opened: boolean;
|
|
437
|
+
/** Function called when drawer is closed */
|
|
438
|
+
onClose: () => void;
|
|
439
|
+
/** Drawer title */
|
|
440
|
+
title?: string;
|
|
441
|
+
/** Drawer position */
|
|
442
|
+
position?: DrawerPosition;
|
|
443
|
+
/** Drawer size (width for left/right, height for top/bottom) */
|
|
444
|
+
size?: ComponentSize | string | number;
|
|
445
|
+
/** Border radius */
|
|
446
|
+
radius?: ComponentRadius;
|
|
447
|
+
/** Drawer color */
|
|
448
|
+
color?: ThemeColor | string;
|
|
449
|
+
/** Drawer variant */
|
|
450
|
+
variant?: ButtonVariant;
|
|
451
|
+
/** Whether to show close button */
|
|
452
|
+
withCloseButton?: boolean;
|
|
453
|
+
/** Whether to close on escape key press */
|
|
454
|
+
closeOnEscape?: boolean;
|
|
455
|
+
/** Whether to close when clicking outside */
|
|
456
|
+
closeOnClickOutside?: boolean;
|
|
457
|
+
/** Whether to trap focus inside drawer */
|
|
458
|
+
trapFocus?: boolean;
|
|
459
|
+
/** Whether to return focus to the element that was focused before the drawer was opened */
|
|
460
|
+
returnFocus?: boolean;
|
|
461
|
+
/** Offset from the edge of the viewport */
|
|
462
|
+
offset?: number;
|
|
463
|
+
/** Overlay opacity */
|
|
464
|
+
overlayOpacity?: number;
|
|
465
|
+
/** Overlay blur */
|
|
466
|
+
overlayBlur?: number;
|
|
467
|
+
/** Whether to use ScrollArea component for content */
|
|
468
|
+
scrollAreaComponent?: any;
|
|
469
|
+
/** Props passed to the overlay */
|
|
470
|
+
overlayProps?: Record<string, any>;
|
|
471
|
+
/** Props passed to the close button */
|
|
472
|
+
closeButtonProps?: Record<string, any>;
|
|
473
|
+
/** Props passed to the transition */
|
|
474
|
+
transitionProps?: Record<string, any>;
|
|
475
|
+
/** Function called when exit transition ends */
|
|
476
|
+
onExitTransitionEnd?: () => void;
|
|
477
|
+
/** Function called when enter transition ends */
|
|
478
|
+
onEnterTransitionEnd?: () => void;
|
|
479
|
+
/** Custom class names */
|
|
480
|
+
class?: string;
|
|
481
|
+
/** Left section content */
|
|
482
|
+
leftSection?: any;
|
|
483
|
+
/** Left section props */
|
|
484
|
+
leftSectionProps?: SectionProps;
|
|
485
|
+
/** Right section content */
|
|
486
|
+
rightSection?: any;
|
|
487
|
+
/** Right section props */
|
|
488
|
+
rightSectionProps?: SectionProps;
|
|
489
|
+
}
|
|
490
|
+
|
|
475
491
|
export { Dropdown }
|
|
476
492
|
|
|
477
493
|
export { DropdownItem }
|
|
@@ -581,6 +597,19 @@ export declare interface HoverCardTargetProps {
|
|
|
581
597
|
wrapperClass?: string;
|
|
582
598
|
}
|
|
583
599
|
|
|
600
|
+
export declare interface IconProps {
|
|
601
|
+
/** Name of the icon from lucide-vue-next library */
|
|
602
|
+
name: string;
|
|
603
|
+
/** Size of the icon in pixels */
|
|
604
|
+
size?: number;
|
|
605
|
+
/** Color of the icon */
|
|
606
|
+
color?: string;
|
|
607
|
+
/** Stroke width of the icon */
|
|
608
|
+
strokeWidth?: number;
|
|
609
|
+
/** Default class to apply to the icon */
|
|
610
|
+
defaultClass?: string;
|
|
611
|
+
}
|
|
612
|
+
|
|
584
613
|
export { Id }
|
|
585
614
|
|
|
586
615
|
export { Indicator }
|
|
@@ -812,6 +841,71 @@ export declare interface PaginationProps {
|
|
|
812
841
|
|
|
813
842
|
export declare type PaginationVariant = 'filled' | 'outline';
|
|
814
843
|
|
|
844
|
+
export { Popover }
|
|
845
|
+
|
|
846
|
+
export declare type PopoverPlacement = 'top' | 'bottom' | 'left' | 'right' | 'auto' | 'top-start' | 'bottom-start' | 'top-end' | 'bottom-end' | 'left-start' | 'right-start';
|
|
847
|
+
|
|
848
|
+
export declare interface PopoverProps {
|
|
849
|
+
/** Whether the popover is open */
|
|
850
|
+
open?: boolean;
|
|
851
|
+
/** The default open state when in uncontrolled mode */
|
|
852
|
+
defaultOpen?: boolean;
|
|
853
|
+
/** The placement of the popover */
|
|
854
|
+
placement?: PopoverPlacement;
|
|
855
|
+
/** The variant of the popover */
|
|
856
|
+
variant?: PopoverVariant;
|
|
857
|
+
/** The color of the popover (for color variant) */
|
|
858
|
+
color?: ThemeColor | string;
|
|
859
|
+
/** The size of the popover */
|
|
860
|
+
size?: ComponentSize;
|
|
861
|
+
/** The border radius of the popover */
|
|
862
|
+
radius?: ComponentRadius;
|
|
863
|
+
/** Whether to show a pin/arrow pointing to the target */
|
|
864
|
+
showPin?: boolean;
|
|
865
|
+
/** Whether to hide the header */
|
|
866
|
+
hideHeader?: boolean;
|
|
867
|
+
/** Whether to show a close icon in the header */
|
|
868
|
+
showCloseIcon?: boolean;
|
|
869
|
+
/** Whether to hide the footer */
|
|
870
|
+
hideFooter?: boolean;
|
|
871
|
+
/** Whether to close the popover when clicking outside */
|
|
872
|
+
closeOnClickOutside?: boolean;
|
|
873
|
+
/** Whether to close the popover when pressing escape */
|
|
874
|
+
closeOnEscape?: boolean;
|
|
875
|
+
/** Whether to close the popover when clicking inside */
|
|
876
|
+
closeOnClick?: boolean;
|
|
877
|
+
/** The title of the popover */
|
|
878
|
+
title?: string;
|
|
879
|
+
/** The content of the popover */
|
|
880
|
+
content?: string;
|
|
881
|
+
/** The z-index of the popover */
|
|
882
|
+
zIndex?: number;
|
|
883
|
+
/** The trigger mode for the popover */
|
|
884
|
+
trigger?: PopoverTrigger;
|
|
885
|
+
/** Whether to show a backdrop */
|
|
886
|
+
backdrop?: boolean | 'transparent';
|
|
887
|
+
/** The offset distance from the target */
|
|
888
|
+
offsetDistance?: number;
|
|
889
|
+
/** Whether the popover is disabled */
|
|
890
|
+
disabled?: boolean;
|
|
891
|
+
/** Custom classes for the popover */
|
|
892
|
+
popoverClass?: string;
|
|
893
|
+
/** Custom classes for the header */
|
|
894
|
+
headerClass?: string;
|
|
895
|
+
/** Custom classes for the body */
|
|
896
|
+
bodyClass?: string;
|
|
897
|
+
/** Custom classes for the footer */
|
|
898
|
+
footerClass?: string;
|
|
899
|
+
/** Whether to trap focus within the popover */
|
|
900
|
+
trapFocus?: boolean;
|
|
901
|
+
/** The ID of the popover */
|
|
902
|
+
id?: string;
|
|
903
|
+
}
|
|
904
|
+
|
|
905
|
+
export declare type PopoverTrigger = 'click' | 'hover' | 'manual';
|
|
906
|
+
|
|
907
|
+
export declare type PopoverVariant = 'outline' | 'shadow' | 'color';
|
|
908
|
+
|
|
815
909
|
export declare const POSITION: {
|
|
816
910
|
TOP_LEFT: ToastPosition;
|
|
817
911
|
TOP_RIGHT: ToastPosition;
|
|
@@ -871,8 +965,6 @@ export declare interface ProgressSection {
|
|
|
871
965
|
label?: string;
|
|
872
966
|
}
|
|
873
967
|
|
|
874
|
-
export { Radio }
|
|
875
|
-
|
|
876
968
|
export declare interface RadioProps {
|
|
877
969
|
/**
|
|
878
970
|
* Value of the radio group (v-model)
|
|
@@ -929,17 +1021,7 @@ export declare type RadioVariant = 'filled' | 'outlined';
|
|
|
929
1021
|
|
|
930
1022
|
declare type Radius = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
931
1023
|
|
|
932
|
-
|
|
933
|
-
readonly none: "rounded-none";
|
|
934
|
-
readonly xs: "rounded";
|
|
935
|
-
readonly sm: "rounded-md";
|
|
936
|
-
readonly md: "rounded-lg";
|
|
937
|
-
readonly lg: "rounded-xl";
|
|
938
|
-
readonly xl: "rounded-2xl";
|
|
939
|
-
readonly full: "rounded-full";
|
|
940
|
-
};
|
|
941
|
-
|
|
942
|
-
export declare type SectionProps = Record<string, any>;
|
|
1024
|
+
declare type SectionProps = Record<string, any>;
|
|
943
1025
|
|
|
944
1026
|
export { SegmentedControl }
|
|
945
1027
|
|
|
@@ -1000,8 +1082,6 @@ export declare interface SegmentedControlProps {
|
|
|
1000
1082
|
orientation?: 'horizontal' | 'vertical';
|
|
1001
1083
|
}
|
|
1002
1084
|
|
|
1003
|
-
export { Select }
|
|
1004
|
-
|
|
1005
1085
|
export declare interface SelectOption {
|
|
1006
1086
|
value: string;
|
|
1007
1087
|
label: string;
|
|
@@ -1028,13 +1108,83 @@ export declare interface SelectProps {
|
|
|
1028
1108
|
|
|
1029
1109
|
declare type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
1030
1110
|
|
|
1031
|
-
export
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1111
|
+
export { SplitButton }
|
|
1112
|
+
|
|
1113
|
+
export declare interface SplitButtonProps {
|
|
1114
|
+
/** The variant style of the button */
|
|
1115
|
+
variant?: 'filled' | 'light' | 'outline' | 'subtle' | 'text';
|
|
1116
|
+
/** The color theme of the button */
|
|
1117
|
+
color?: ThemeColor | string;
|
|
1118
|
+
/** The size of the button */
|
|
1119
|
+
size?: ComponentSize;
|
|
1120
|
+
/** The border radius of the button */
|
|
1121
|
+
radius?: 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
1122
|
+
/** Whether the button is disabled */
|
|
1123
|
+
disabled?: boolean;
|
|
1124
|
+
/** Whether the button is in loading state */
|
|
1125
|
+
loading?: boolean;
|
|
1126
|
+
/** The icon to show in the dropdown trigger */
|
|
1127
|
+
dropdownIcon?: Component;
|
|
1128
|
+
/** Whether to show the divider between main button and dropdown */
|
|
1129
|
+
showDivider?: boolean;
|
|
1130
|
+
}
|
|
1131
|
+
|
|
1132
|
+
export { Switch }
|
|
1133
|
+
|
|
1134
|
+
export declare interface SwitchProps {
|
|
1135
|
+
/**
|
|
1136
|
+
* Value bound to the switch, used with v-model
|
|
1137
|
+
*/
|
|
1138
|
+
modelValue?: boolean;
|
|
1139
|
+
/**
|
|
1140
|
+
* Label for the switch
|
|
1141
|
+
*/
|
|
1142
|
+
label?: string;
|
|
1143
|
+
/**
|
|
1144
|
+
* Label when switch is in unchecked state
|
|
1145
|
+
*/
|
|
1146
|
+
offLabel?: string;
|
|
1147
|
+
/**
|
|
1148
|
+
* Label when switch is in checked state
|
|
1149
|
+
*/
|
|
1150
|
+
onLabel?: string;
|
|
1151
|
+
/**
|
|
1152
|
+
* Color of the switch when checked
|
|
1153
|
+
*/
|
|
1154
|
+
color?: ThemeColor;
|
|
1155
|
+
/**
|
|
1156
|
+
* Size of the switch
|
|
1157
|
+
*/
|
|
1158
|
+
size?: ComponentSize;
|
|
1159
|
+
/**
|
|
1160
|
+
* Border radius of the switch
|
|
1161
|
+
*/
|
|
1162
|
+
radius?: ComponentRadius;
|
|
1163
|
+
/**
|
|
1164
|
+
* Icon inside the thumb (string or slot)
|
|
1165
|
+
*/
|
|
1166
|
+
thumbIcon?: string;
|
|
1167
|
+
/**
|
|
1168
|
+
* Position of the label
|
|
1169
|
+
*/
|
|
1170
|
+
labelPosition?: 'left' | 'right';
|
|
1171
|
+
/**
|
|
1172
|
+
* Description text shown below the label
|
|
1173
|
+
*/
|
|
1174
|
+
description?: string;
|
|
1175
|
+
/**
|
|
1176
|
+
* Error message
|
|
1177
|
+
*/
|
|
1178
|
+
error?: string;
|
|
1179
|
+
/**
|
|
1180
|
+
* Whether the switch is disabled
|
|
1181
|
+
*/
|
|
1182
|
+
disabled?: boolean;
|
|
1183
|
+
/**
|
|
1184
|
+
* Name attribute of the input element
|
|
1185
|
+
*/
|
|
1186
|
+
name?: string;
|
|
1187
|
+
}
|
|
1038
1188
|
|
|
1039
1189
|
export { Tabs }
|
|
1040
1190
|
|
|
@@ -1044,6 +1194,61 @@ export { TabsPanel }
|
|
|
1044
1194
|
|
|
1045
1195
|
export { TabsTab }
|
|
1046
1196
|
|
|
1197
|
+
export { Textarea }
|
|
1198
|
+
|
|
1199
|
+
export declare interface TextareaProps {
|
|
1200
|
+
/** Textarea's id attribute */
|
|
1201
|
+
id?: string;
|
|
1202
|
+
/** Textarea's value */
|
|
1203
|
+
modelValue?: string;
|
|
1204
|
+
/** Textarea's placeholder */
|
|
1205
|
+
placeholder?: string;
|
|
1206
|
+
/** Disabled state */
|
|
1207
|
+
disabled?: boolean;
|
|
1208
|
+
/** Readonly state */
|
|
1209
|
+
readonly?: boolean;
|
|
1210
|
+
/** Textarea label */
|
|
1211
|
+
label?: string;
|
|
1212
|
+
/** Label props */
|
|
1213
|
+
labelProps?: SectionProps;
|
|
1214
|
+
/** Description text shown below the textarea */
|
|
1215
|
+
description?: string;
|
|
1216
|
+
/** Description props */
|
|
1217
|
+
descriptionProps?: SectionProps;
|
|
1218
|
+
/** Error message */
|
|
1219
|
+
error?: string;
|
|
1220
|
+
/** Error props */
|
|
1221
|
+
errorProps?: SectionProps;
|
|
1222
|
+
/** Display error state */
|
|
1223
|
+
hasError?: boolean;
|
|
1224
|
+
/** Show both error and description */
|
|
1225
|
+
showBothErrorAndDescription?: boolean;
|
|
1226
|
+
/** Props passed to textarea element */
|
|
1227
|
+
textareaProps?: SectionProps;
|
|
1228
|
+
/** Textarea size */
|
|
1229
|
+
size?: ComponentSize;
|
|
1230
|
+
/** Border-radius value */
|
|
1231
|
+
radius?: ComponentRadius;
|
|
1232
|
+
/** Textarea variant */
|
|
1233
|
+
variant?: 'default' | 'filled' | 'light' | 'outline' | 'subtle' | 'unstyled';
|
|
1234
|
+
/** Determines whether required asterisk should be rendered */
|
|
1235
|
+
required?: boolean;
|
|
1236
|
+
/** Show asterisk even if field is not required */
|
|
1237
|
+
withAsterisk?: boolean;
|
|
1238
|
+
/** Number of rows */
|
|
1239
|
+
rows?: number;
|
|
1240
|
+
/** Resize behavior */
|
|
1241
|
+
resize?: 'none' | 'both' | 'horizontal' | 'vertical';
|
|
1242
|
+
/** Take full width of container */
|
|
1243
|
+
fullWidth?: boolean;
|
|
1244
|
+
/** Component color */
|
|
1245
|
+
color?: ColorVariant;
|
|
1246
|
+
/** Custom class for the component */
|
|
1247
|
+
class?: string;
|
|
1248
|
+
/** Custom class for the input */
|
|
1249
|
+
inputClass?: string;
|
|
1250
|
+
}
|
|
1251
|
+
|
|
1047
1252
|
export { TextInput }
|
|
1048
1253
|
|
|
1049
1254
|
export declare interface TextInputProps {
|
|
@@ -1093,7 +1298,7 @@ export declare interface TextInputProps {
|
|
|
1093
1298
|
leftSectionProps?: SectionProps;
|
|
1094
1299
|
}
|
|
1095
1300
|
|
|
1096
|
-
|
|
1301
|
+
declare type ThemeColor = 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'info' | 'dark' | 'light';
|
|
1097
1302
|
|
|
1098
1303
|
export { Toast }
|
|
1099
1304
|
|
|
@@ -1230,6 +1435,6 @@ declare interface UseHoverCardOptions {
|
|
|
1230
1435
|
|
|
1231
1436
|
export declare function useModal(): ModalInstance;
|
|
1232
1437
|
|
|
1233
|
-
declare type VariantType = 'filled' | 'light' | 'outline' | 'subtle' | 'text';
|
|
1438
|
+
declare type VariantType = 'filled' | 'light' | 'outline' | 'subtle' | 'text' | 'gradient';
|
|
1234
1439
|
|
|
1235
1440
|
export { }
|