@contentstudio/ui 0.1.31 → 0.1.32
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 +339 -145
- package/dist/index.js +33594 -3875
- 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,43 @@
|
|
|
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 './components/ListItem/ListItem.vue';
|
|
22
24
|
import { default as Loader } from './Loader.vue';
|
|
23
25
|
import { default as Modal } from './Modal.vue';
|
|
24
26
|
import { default as Pagination } from './Pagination.vue';
|
|
25
27
|
import { Placement } from '@floating-ui/vue';
|
|
28
|
+
import { default as Popover } from './Popover.vue';
|
|
26
29
|
import { default as Progress } from './Progress.vue';
|
|
27
|
-
import { default as Radio } from './components/Radio/Radio.vue';
|
|
28
30
|
import { Ref } from 'vue';
|
|
29
|
-
import { default as SegmentedControl } from './
|
|
30
|
-
import { default as
|
|
31
|
+
import { default as SegmentedControl } from './SegmentedControl.vue';
|
|
32
|
+
import { default as SplitButton } from './SplitButton.vue';
|
|
33
|
+
import { default as Switch } from './Switch.vue';
|
|
31
34
|
import { default as Tabs } from './Tabs.vue';
|
|
32
35
|
import { default as TabsList } from './TabsList.vue';
|
|
33
36
|
import { default as TabsPanel } from './TabsPanel.vue';
|
|
34
37
|
import { default as TabsTab } from './TabsTab.vue';
|
|
38
|
+
import { default as Textarea } from './Textarea.vue';
|
|
35
39
|
import { default as TextInput } from './TextInput.vue';
|
|
36
|
-
import { default as Toast } from './
|
|
40
|
+
import { default as Toast } from './Toast.vue';
|
|
37
41
|
import { toast } from 'vue3-toastify';
|
|
38
42
|
import { ToastContainerOptions } from 'vue3-toastify';
|
|
39
43
|
import { ToastContent } from 'vue3-toastify';
|
|
@@ -44,6 +48,46 @@ import { ToastTransition } from 'vue3-toastify';
|
|
|
44
48
|
import { ToastType } from 'vue3-toastify';
|
|
45
49
|
import { UpdateOptions } from 'vue3-toastify';
|
|
46
50
|
|
|
51
|
+
export { ActionIcon }
|
|
52
|
+
|
|
53
|
+
export declare interface ActionIconEmits {
|
|
54
|
+
/** Click event */
|
|
55
|
+
click: [event: MouseEvent];
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export declare interface ActionIconProps {
|
|
59
|
+
/** Determines whether Loader component should be displayed instead of the children */
|
|
60
|
+
loading?: boolean;
|
|
61
|
+
/** Props added to the Loader component (only visible when loading prop is set) */
|
|
62
|
+
loaderProps?: LoaderProps;
|
|
63
|
+
/** Controls width and height of the button */
|
|
64
|
+
size?: ActionIconSize;
|
|
65
|
+
/** Color variant of the button */
|
|
66
|
+
color?: ThemeColor;
|
|
67
|
+
/** Border radius value */
|
|
68
|
+
radius?: ComponentRadius;
|
|
69
|
+
/** Gradient data used when variant="gradient" */
|
|
70
|
+
gradient?: {
|
|
71
|
+
from: string;
|
|
72
|
+
to: string;
|
|
73
|
+
deg?: number;
|
|
74
|
+
};
|
|
75
|
+
/** Sets disabled and data-disabled attributes on the button element */
|
|
76
|
+
disabled?: boolean;
|
|
77
|
+
/** Icon name from Lucide icons library */
|
|
78
|
+
iconName?: string;
|
|
79
|
+
/** Style variant */
|
|
80
|
+
variant?: ActionIconVariant;
|
|
81
|
+
/** Additional CSS class names */
|
|
82
|
+
class?: string;
|
|
83
|
+
/** Click event handler */
|
|
84
|
+
onClick?: (event: MouseEvent) => void;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export declare type ActionIconSize = ComponentSize;
|
|
88
|
+
|
|
89
|
+
export declare type ActionIconVariant = ButtonVariant;
|
|
90
|
+
|
|
47
91
|
export { Alert }
|
|
48
92
|
|
|
49
93
|
export declare interface AlertProps {
|
|
@@ -177,6 +221,8 @@ export declare interface BadgeProps {
|
|
|
177
221
|
|
|
178
222
|
export declare type BadgeVariant = 'filled' | 'light' | 'outline' | 'gradient' | 'transparent';
|
|
179
223
|
|
|
224
|
+
export { Breadcrumbs }
|
|
225
|
+
|
|
180
226
|
export { Button }
|
|
181
227
|
|
|
182
228
|
export declare type ButtonColor = NonNullable<ButtonProps['color']>;
|
|
@@ -214,7 +260,11 @@ export declare type ButtonRadius = NonNullable<ButtonProps['radius']>;
|
|
|
214
260
|
|
|
215
261
|
export declare type ButtonSize = NonNullable<ButtonProps['size']>;
|
|
216
262
|
|
|
217
|
-
|
|
263
|
+
declare type ButtonVariant = 'filled' | 'light' | 'outline' | 'subtle' | 'gradient' | 'white' | 'default';
|
|
264
|
+
|
|
265
|
+
export { Card }
|
|
266
|
+
|
|
267
|
+
export { CardSection }
|
|
218
268
|
|
|
219
269
|
export { Checkbox }
|
|
220
270
|
|
|
@@ -292,107 +342,11 @@ declare type ChipSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
|
292
342
|
|
|
293
343
|
declare type ChipVariant = 'filled' | 'outline' | 'light';
|
|
294
344
|
|
|
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
345
|
declare type ColorVariant = 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'info' | 'dark' | 'light';
|
|
392
346
|
|
|
393
|
-
|
|
347
|
+
declare type ComponentRadius = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
394
348
|
|
|
395
|
-
|
|
349
|
+
declare type ComponentSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
396
350
|
|
|
397
351
|
export declare const composables: {};
|
|
398
352
|
|
|
@@ -472,6 +426,67 @@ export declare interface DialogProps {
|
|
|
472
426
|
zIndex?: number;
|
|
473
427
|
}
|
|
474
428
|
|
|
429
|
+
export { Drawer }
|
|
430
|
+
|
|
431
|
+
declare type DrawerPosition = 'left' | 'right' | 'top' | 'bottom';
|
|
432
|
+
|
|
433
|
+
export declare interface DrawerProps {
|
|
434
|
+
/** Whether the drawer is opened */
|
|
435
|
+
opened: boolean;
|
|
436
|
+
/** Function called when drawer is closed */
|
|
437
|
+
onClose: () => void;
|
|
438
|
+
/** Drawer title */
|
|
439
|
+
title?: string;
|
|
440
|
+
/** Drawer position */
|
|
441
|
+
position?: DrawerPosition;
|
|
442
|
+
/** Drawer size (width for left/right, height for top/bottom) */
|
|
443
|
+
size?: ComponentSize | string | number;
|
|
444
|
+
/** Border radius */
|
|
445
|
+
radius?: ComponentRadius;
|
|
446
|
+
/** Drawer color */
|
|
447
|
+
color?: ThemeColor | string;
|
|
448
|
+
/** Drawer variant */
|
|
449
|
+
variant?: ButtonVariant;
|
|
450
|
+
/** Whether to show close button */
|
|
451
|
+
withCloseButton?: boolean;
|
|
452
|
+
/** Whether to close on escape key press */
|
|
453
|
+
closeOnEscape?: boolean;
|
|
454
|
+
/** Whether to close when clicking outside */
|
|
455
|
+
closeOnClickOutside?: boolean;
|
|
456
|
+
/** Whether to trap focus inside drawer */
|
|
457
|
+
trapFocus?: boolean;
|
|
458
|
+
/** Whether to return focus to the element that was focused before the drawer was opened */
|
|
459
|
+
returnFocus?: boolean;
|
|
460
|
+
/** Offset from the edge of the viewport */
|
|
461
|
+
offset?: number;
|
|
462
|
+
/** Overlay opacity */
|
|
463
|
+
overlayOpacity?: number;
|
|
464
|
+
/** Overlay blur */
|
|
465
|
+
overlayBlur?: number;
|
|
466
|
+
/** Whether to use ScrollArea component for content */
|
|
467
|
+
scrollAreaComponent?: any;
|
|
468
|
+
/** Props passed to the overlay */
|
|
469
|
+
overlayProps?: Record<string, any>;
|
|
470
|
+
/** Props passed to the close button */
|
|
471
|
+
closeButtonProps?: Record<string, any>;
|
|
472
|
+
/** Props passed to the transition */
|
|
473
|
+
transitionProps?: Record<string, any>;
|
|
474
|
+
/** Function called when exit transition ends */
|
|
475
|
+
onExitTransitionEnd?: () => void;
|
|
476
|
+
/** Function called when enter transition ends */
|
|
477
|
+
onEnterTransitionEnd?: () => void;
|
|
478
|
+
/** Custom class names */
|
|
479
|
+
class?: string;
|
|
480
|
+
/** Left section content */
|
|
481
|
+
leftSection?: any;
|
|
482
|
+
/** Left section props */
|
|
483
|
+
leftSectionProps?: SectionProps;
|
|
484
|
+
/** Right section content */
|
|
485
|
+
rightSection?: any;
|
|
486
|
+
/** Right section props */
|
|
487
|
+
rightSectionProps?: SectionProps;
|
|
488
|
+
}
|
|
489
|
+
|
|
475
490
|
export { Dropdown }
|
|
476
491
|
|
|
477
492
|
export { DropdownItem }
|
|
@@ -581,6 +596,19 @@ export declare interface HoverCardTargetProps {
|
|
|
581
596
|
wrapperClass?: string;
|
|
582
597
|
}
|
|
583
598
|
|
|
599
|
+
export declare interface IconProps {
|
|
600
|
+
/** Name of the icon from lucide-vue-next library */
|
|
601
|
+
name: string;
|
|
602
|
+
/** Size of the icon in pixels */
|
|
603
|
+
size?: number;
|
|
604
|
+
/** Color of the icon */
|
|
605
|
+
color?: string;
|
|
606
|
+
/** Stroke width of the icon */
|
|
607
|
+
strokeWidth?: number;
|
|
608
|
+
/** Default class to apply to the icon */
|
|
609
|
+
defaultClass?: string;
|
|
610
|
+
}
|
|
611
|
+
|
|
584
612
|
export { Id }
|
|
585
613
|
|
|
586
614
|
export { Indicator }
|
|
@@ -614,16 +642,6 @@ export declare interface IndicatorProps {
|
|
|
614
642
|
|
|
615
643
|
export declare type JustifyContent = 'start' | 'center' | 'end' | 'space-between';
|
|
616
644
|
|
|
617
|
-
export { ListItem }
|
|
618
|
-
|
|
619
|
-
export declare interface ListItemProps {
|
|
620
|
-
disabled?: boolean;
|
|
621
|
-
selected?: boolean;
|
|
622
|
-
class?: string;
|
|
623
|
-
selectedClass?: string;
|
|
624
|
-
noColorOnSelected?: boolean;
|
|
625
|
-
}
|
|
626
|
-
|
|
627
645
|
export { Loader }
|
|
628
646
|
|
|
629
647
|
export declare interface LoaderProps {
|
|
@@ -812,6 +830,71 @@ export declare interface PaginationProps {
|
|
|
812
830
|
|
|
813
831
|
export declare type PaginationVariant = 'filled' | 'outline';
|
|
814
832
|
|
|
833
|
+
export { Popover }
|
|
834
|
+
|
|
835
|
+
export declare type PopoverPlacement = 'top' | 'bottom' | 'left' | 'right' | 'auto' | 'top-start' | 'bottom-start' | 'top-end' | 'bottom-end' | 'left-start' | 'right-start';
|
|
836
|
+
|
|
837
|
+
export declare interface PopoverProps {
|
|
838
|
+
/** Whether the popover is open */
|
|
839
|
+
open?: boolean;
|
|
840
|
+
/** The default open state when in uncontrolled mode */
|
|
841
|
+
defaultOpen?: boolean;
|
|
842
|
+
/** The placement of the popover */
|
|
843
|
+
placement?: PopoverPlacement;
|
|
844
|
+
/** The variant of the popover */
|
|
845
|
+
variant?: PopoverVariant;
|
|
846
|
+
/** The color of the popover (for color variant) */
|
|
847
|
+
color?: ThemeColor | string;
|
|
848
|
+
/** The size of the popover */
|
|
849
|
+
size?: ComponentSize;
|
|
850
|
+
/** The border radius of the popover */
|
|
851
|
+
radius?: ComponentRadius;
|
|
852
|
+
/** Whether to show a pin/arrow pointing to the target */
|
|
853
|
+
showPin?: boolean;
|
|
854
|
+
/** Whether to hide the header */
|
|
855
|
+
hideHeader?: boolean;
|
|
856
|
+
/** Whether to show a close icon in the header */
|
|
857
|
+
showCloseIcon?: boolean;
|
|
858
|
+
/** Whether to hide the footer */
|
|
859
|
+
hideFooter?: boolean;
|
|
860
|
+
/** Whether to close the popover when clicking outside */
|
|
861
|
+
closeOnClickOutside?: boolean;
|
|
862
|
+
/** Whether to close the popover when pressing escape */
|
|
863
|
+
closeOnEscape?: boolean;
|
|
864
|
+
/** Whether to close the popover when clicking inside */
|
|
865
|
+
closeOnClick?: boolean;
|
|
866
|
+
/** The title of the popover */
|
|
867
|
+
title?: string;
|
|
868
|
+
/** The content of the popover */
|
|
869
|
+
content?: string;
|
|
870
|
+
/** The z-index of the popover */
|
|
871
|
+
zIndex?: number;
|
|
872
|
+
/** The trigger mode for the popover */
|
|
873
|
+
trigger?: PopoverTrigger;
|
|
874
|
+
/** Whether to show a backdrop */
|
|
875
|
+
backdrop?: boolean | 'transparent';
|
|
876
|
+
/** The offset distance from the target */
|
|
877
|
+
offsetDistance?: number;
|
|
878
|
+
/** Whether the popover is disabled */
|
|
879
|
+
disabled?: boolean;
|
|
880
|
+
/** Custom classes for the popover */
|
|
881
|
+
popoverClass?: string;
|
|
882
|
+
/** Custom classes for the header */
|
|
883
|
+
headerClass?: string;
|
|
884
|
+
/** Custom classes for the body */
|
|
885
|
+
bodyClass?: string;
|
|
886
|
+
/** Custom classes for the footer */
|
|
887
|
+
footerClass?: string;
|
|
888
|
+
/** Whether to trap focus within the popover */
|
|
889
|
+
trapFocus?: boolean;
|
|
890
|
+
/** The ID of the popover */
|
|
891
|
+
id?: string;
|
|
892
|
+
}
|
|
893
|
+
|
|
894
|
+
export declare type PopoverTrigger = 'click' | 'hover' | 'manual';
|
|
895
|
+
|
|
896
|
+
export declare type PopoverVariant = 'outline' | 'shadow' | 'color';
|
|
897
|
+
|
|
815
898
|
export declare const POSITION: {
|
|
816
899
|
TOP_LEFT: ToastPosition;
|
|
817
900
|
TOP_RIGHT: ToastPosition;
|
|
@@ -871,8 +954,6 @@ export declare interface ProgressSection {
|
|
|
871
954
|
label?: string;
|
|
872
955
|
}
|
|
873
956
|
|
|
874
|
-
export { Radio }
|
|
875
|
-
|
|
876
957
|
export declare interface RadioProps {
|
|
877
958
|
/**
|
|
878
959
|
* Value of the radio group (v-model)
|
|
@@ -929,17 +1010,7 @@ export declare type RadioVariant = 'filled' | 'outlined';
|
|
|
929
1010
|
|
|
930
1011
|
declare type Radius = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
931
1012
|
|
|
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>;
|
|
1013
|
+
declare type SectionProps = Record<string, any>;
|
|
943
1014
|
|
|
944
1015
|
export { SegmentedControl }
|
|
945
1016
|
|
|
@@ -1000,8 +1071,6 @@ export declare interface SegmentedControlProps {
|
|
|
1000
1071
|
orientation?: 'horizontal' | 'vertical';
|
|
1001
1072
|
}
|
|
1002
1073
|
|
|
1003
|
-
export { Select }
|
|
1004
|
-
|
|
1005
1074
|
export declare interface SelectOption {
|
|
1006
1075
|
value: string;
|
|
1007
1076
|
label: string;
|
|
@@ -1028,13 +1097,83 @@ export declare interface SelectProps {
|
|
|
1028
1097
|
|
|
1029
1098
|
declare type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
1030
1099
|
|
|
1031
|
-
export
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1100
|
+
export { SplitButton }
|
|
1101
|
+
|
|
1102
|
+
export declare interface SplitButtonProps {
|
|
1103
|
+
/** The variant style of the button */
|
|
1104
|
+
variant?: 'filled' | 'light' | 'outline' | 'subtle' | 'text';
|
|
1105
|
+
/** The color theme of the button */
|
|
1106
|
+
color?: ThemeColor | string;
|
|
1107
|
+
/** The size of the button */
|
|
1108
|
+
size?: ComponentSize;
|
|
1109
|
+
/** The border radius of the button */
|
|
1110
|
+
radius?: 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
1111
|
+
/** Whether the button is disabled */
|
|
1112
|
+
disabled?: boolean;
|
|
1113
|
+
/** Whether the button is in loading state */
|
|
1114
|
+
loading?: boolean;
|
|
1115
|
+
/** The icon to show in the dropdown trigger */
|
|
1116
|
+
dropdownIcon?: Component;
|
|
1117
|
+
/** Whether to show the divider between main button and dropdown */
|
|
1118
|
+
showDivider?: boolean;
|
|
1119
|
+
}
|
|
1120
|
+
|
|
1121
|
+
export { Switch }
|
|
1122
|
+
|
|
1123
|
+
export declare interface SwitchProps {
|
|
1124
|
+
/**
|
|
1125
|
+
* Value bound to the switch, used with v-model
|
|
1126
|
+
*/
|
|
1127
|
+
modelValue?: boolean;
|
|
1128
|
+
/**
|
|
1129
|
+
* Label for the switch
|
|
1130
|
+
*/
|
|
1131
|
+
label?: string;
|
|
1132
|
+
/**
|
|
1133
|
+
* Label when switch is in unchecked state
|
|
1134
|
+
*/
|
|
1135
|
+
offLabel?: string;
|
|
1136
|
+
/**
|
|
1137
|
+
* Label when switch is in checked state
|
|
1138
|
+
*/
|
|
1139
|
+
onLabel?: string;
|
|
1140
|
+
/**
|
|
1141
|
+
* Color of the switch when checked
|
|
1142
|
+
*/
|
|
1143
|
+
color?: ThemeColor;
|
|
1144
|
+
/**
|
|
1145
|
+
* Size of the switch
|
|
1146
|
+
*/
|
|
1147
|
+
size?: ComponentSize;
|
|
1148
|
+
/**
|
|
1149
|
+
* Border radius of the switch
|
|
1150
|
+
*/
|
|
1151
|
+
radius?: ComponentRadius;
|
|
1152
|
+
/**
|
|
1153
|
+
* Icon inside the thumb (string or slot)
|
|
1154
|
+
*/
|
|
1155
|
+
thumbIcon?: string;
|
|
1156
|
+
/**
|
|
1157
|
+
* Position of the label
|
|
1158
|
+
*/
|
|
1159
|
+
labelPosition?: 'left' | 'right';
|
|
1160
|
+
/**
|
|
1161
|
+
* Description text shown below the label
|
|
1162
|
+
*/
|
|
1163
|
+
description?: string;
|
|
1164
|
+
/**
|
|
1165
|
+
* Error message
|
|
1166
|
+
*/
|
|
1167
|
+
error?: string;
|
|
1168
|
+
/**
|
|
1169
|
+
* Whether the switch is disabled
|
|
1170
|
+
*/
|
|
1171
|
+
disabled?: boolean;
|
|
1172
|
+
/**
|
|
1173
|
+
* Name attribute of the input element
|
|
1174
|
+
*/
|
|
1175
|
+
name?: string;
|
|
1176
|
+
}
|
|
1038
1177
|
|
|
1039
1178
|
export { Tabs }
|
|
1040
1179
|
|
|
@@ -1044,6 +1183,61 @@ export { TabsPanel }
|
|
|
1044
1183
|
|
|
1045
1184
|
export { TabsTab }
|
|
1046
1185
|
|
|
1186
|
+
export { Textarea }
|
|
1187
|
+
|
|
1188
|
+
export declare interface TextareaProps {
|
|
1189
|
+
/** Textarea's id attribute */
|
|
1190
|
+
id?: string;
|
|
1191
|
+
/** Textarea's value */
|
|
1192
|
+
modelValue?: string;
|
|
1193
|
+
/** Textarea's placeholder */
|
|
1194
|
+
placeholder?: string;
|
|
1195
|
+
/** Disabled state */
|
|
1196
|
+
disabled?: boolean;
|
|
1197
|
+
/** Readonly state */
|
|
1198
|
+
readonly?: boolean;
|
|
1199
|
+
/** Textarea label */
|
|
1200
|
+
label?: string;
|
|
1201
|
+
/** Label props */
|
|
1202
|
+
labelProps?: SectionProps;
|
|
1203
|
+
/** Description text shown below the textarea */
|
|
1204
|
+
description?: string;
|
|
1205
|
+
/** Description props */
|
|
1206
|
+
descriptionProps?: SectionProps;
|
|
1207
|
+
/** Error message */
|
|
1208
|
+
error?: string;
|
|
1209
|
+
/** Error props */
|
|
1210
|
+
errorProps?: SectionProps;
|
|
1211
|
+
/** Display error state */
|
|
1212
|
+
hasError?: boolean;
|
|
1213
|
+
/** Show both error and description */
|
|
1214
|
+
showBothErrorAndDescription?: boolean;
|
|
1215
|
+
/** Props passed to textarea element */
|
|
1216
|
+
textareaProps?: SectionProps;
|
|
1217
|
+
/** Textarea size */
|
|
1218
|
+
size?: ComponentSize;
|
|
1219
|
+
/** Border-radius value */
|
|
1220
|
+
radius?: ComponentRadius;
|
|
1221
|
+
/** Textarea variant */
|
|
1222
|
+
variant?: 'default' | 'filled' | 'light' | 'outline' | 'subtle' | 'unstyled';
|
|
1223
|
+
/** Determines whether required asterisk should be rendered */
|
|
1224
|
+
required?: boolean;
|
|
1225
|
+
/** Show asterisk even if field is not required */
|
|
1226
|
+
withAsterisk?: boolean;
|
|
1227
|
+
/** Number of rows */
|
|
1228
|
+
rows?: number;
|
|
1229
|
+
/** Resize behavior */
|
|
1230
|
+
resize?: 'none' | 'both' | 'horizontal' | 'vertical';
|
|
1231
|
+
/** Take full width of container */
|
|
1232
|
+
fullWidth?: boolean;
|
|
1233
|
+
/** Component color */
|
|
1234
|
+
color?: ColorVariant;
|
|
1235
|
+
/** Custom class for the component */
|
|
1236
|
+
class?: string;
|
|
1237
|
+
/** Custom class for the input */
|
|
1238
|
+
inputClass?: string;
|
|
1239
|
+
}
|
|
1240
|
+
|
|
1047
1241
|
export { TextInput }
|
|
1048
1242
|
|
|
1049
1243
|
export declare interface TextInputProps {
|
|
@@ -1093,7 +1287,7 @@ export declare interface TextInputProps {
|
|
|
1093
1287
|
leftSectionProps?: SectionProps;
|
|
1094
1288
|
}
|
|
1095
1289
|
|
|
1096
|
-
|
|
1290
|
+
declare type ThemeColor = 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'info' | 'dark' | 'light';
|
|
1097
1291
|
|
|
1098
1292
|
export { Toast }
|
|
1099
1293
|
|
|
@@ -1230,6 +1424,6 @@ declare interface UseHoverCardOptions {
|
|
|
1230
1424
|
|
|
1231
1425
|
export declare function useModal(): ModalInstance;
|
|
1232
1426
|
|
|
1233
|
-
declare type VariantType = 'filled' | 'light' | 'outline' | 'subtle' | 'text';
|
|
1427
|
+
declare type VariantType = 'filled' | 'light' | 'outline' | 'subtle' | 'text' | 'gradient';
|
|
1234
1428
|
|
|
1235
1429
|
export { }
|