@contentstudio/ui 0.2.23-rc.21 → 0.2.24-rc.22
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 +21 -65
- package/dist/App.vue.d.ts +2 -0
- package/dist/components/ActionIcon/ActionIcon.vue.d.ts +88 -0
- package/dist/components/ActionIcon/index.d.ts +2 -0
- package/dist/components/ActionIcon/types.d.ts +36 -0
- package/dist/components/Alert/Alert.vue.d.ts +94 -0
- package/dist/components/Alert/index.d.ts +4 -0
- package/dist/components/Alert/types.d.ts +30 -0
- package/dist/components/Avatar/Avatar.vue.d.ts +106 -0
- package/dist/components/Avatar/AvatarGroup.vue.d.ts +76 -0
- package/dist/components/Avatar/index.d.ts +5 -0
- package/dist/components/Avatar/types.d.ts +58 -0
- package/dist/components/Avatar/utils.d.ts +9 -0
- package/dist/components/Badge/Badge.vue.d.ts +109 -0
- package/dist/components/Badge/index.d.ts +2 -0
- package/dist/components/Badge/types.d.ts +35 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.vue.d.ts +80 -0
- package/dist/components/Breadcrumbs/index.d.ts +3 -0
- package/dist/components/Breadcrumbs/types.d.ts +23 -0
- package/dist/components/Button/Button.vue.d.ts +85 -0
- package/dist/components/Button/index.d.ts +2 -0
- package/dist/components/Button/types.d.ts +40 -0
- package/dist/components/Card/Card.vue.d.ts +187 -0
- package/dist/components/Card/CardSection.vue.d.ts +55 -0
- package/dist/components/Card/index.d.ts +4 -0
- package/dist/components/Card/types.d.ts +27 -0
- package/dist/components/Checkbox/Checkbox.vue.d.ts +94 -0
- package/dist/components/Checkbox/index.d.ts +4 -0
- package/dist/components/Checkbox/types.d.ts +20 -0
- package/dist/components/Chip/Chip.vue.d.ts +108 -0
- package/dist/components/Chip/index.d.ts +4 -0
- package/dist/components/Chip/types.d.ts +48 -0
- package/dist/components/ClientExtensionDemo/index.d.ts +1 -0
- package/dist/components/ClientExtensionDemo.vue.d.ts +2 -0
- package/dist/components/Collapsible/Collapsible.vue.d.ts +77 -0
- package/dist/components/Collapsible/index.d.ts +4 -0
- package/dist/components/Collapsible/types.d.ts +9 -0
- package/dist/components/Dialog/Dialog.vue.d.ts +151 -0
- package/dist/components/Dialog/index.d.ts +4 -0
- package/dist/components/Dialog/types.d.ts +28 -0
- package/dist/components/Drawer/Drawer.vue.d.ts +134 -0
- package/dist/components/Drawer/index.d.ts +4 -0
- package/dist/components/Drawer/types.d.ts +61 -0
- package/dist/components/Dropdown/Dropdown.vue.d.ts +131 -0
- package/dist/components/Dropdown/DropdownItem.vue.d.ts +64 -0
- package/dist/components/Dropdown/index.d.ts +7 -0
- package/dist/components/Dropdown/types.d.ts +41 -0
- package/dist/components/DropdownMenu/DropdownMenu.vue.d.ts +109 -0
- package/dist/components/DropdownMenu/index.d.ts +3 -0
- package/dist/components/HoverCard/HoverCard.vue.d.ts +104 -0
- package/dist/components/HoverCard/HoverCardTarget.vue.d.ts +49 -0
- package/dist/components/HoverCard/index.d.ts +384 -0
- package/dist/components/HoverCard/types.d.ts +40 -0
- package/dist/components/HoverCard/useHoverCard.d.ts +20 -0
- package/dist/components/Icon/Icon.vue.d.ts +15 -0
- package/dist/components/Icon/index.d.ts +4 -0
- package/dist/components/Icon/types.d.ts +12 -0
- package/dist/components/Indicator/Indicator.vue.d.ts +129 -0
- package/dist/components/Indicator/index.d.ts +2 -0
- package/dist/components/Indicator/types.d.ts +29 -0
- package/dist/components/ListItem/ListItem.vue.d.ts +64 -0
- package/dist/components/ListItem/index.d.ts +6 -0
- package/dist/components/ListItem/types.d.ts +7 -0
- package/dist/components/Loader/Loader.vue.d.ts +65 -0
- package/dist/components/Loader/index.d.ts +2 -0
- package/dist/components/Loader/types.d.ts +16 -0
- package/dist/components/Loader/variants/BarsLoader.vue.d.ts +35 -0
- package/dist/components/Loader/variants/DotsLoader.vue.d.ts +35 -0
- package/dist/components/Loader/variants/OvalLoader.vue.d.ts +39 -0
- package/dist/components/Modal/MessageBoxConfirm.vue.d.ts +275 -0
- package/dist/components/Modal/MessageBoxOk.vue.d.ts +207 -0
- package/dist/components/Modal/Modal.vue.d.ts +475 -0
- package/dist/components/Modal/directive.d.ts +14 -0
- package/dist/components/Modal/index.d.ts +7 -0
- package/dist/components/Modal/plugin.d.ts +59 -0
- package/dist/components/Modal/types.d.ts +75 -0
- package/dist/components/Pagination/Pagination.vue.d.ts +84 -0
- package/dist/components/Pagination/index.d.ts +3 -0
- package/dist/components/Pagination/types.d.ts +32 -0
- package/dist/components/Pill/Pill.vue.d.ts +84 -0
- package/dist/components/Pill/index.d.ts +2 -0
- package/dist/components/Pill/types.d.ts +21 -0
- package/dist/components/Popover/Popover.vue.d.ts +192 -0
- package/dist/components/Popover/index.d.ts +4 -0
- package/dist/components/Popover/types.d.ts +65 -0
- package/dist/components/Progress/Progress.vue.d.ts +138 -0
- package/dist/components/Progress/index.d.ts +4 -0
- package/dist/components/Progress/types.d.ts +44 -0
- package/dist/components/Radio/Radio.vue.d.ts +99 -0
- package/dist/components/Radio/index.d.ts +2 -0
- package/dist/components/Radio/types.d.ts +53 -0
- package/dist/components/RangeSlider/RangeSlider.vue.d.ts +175 -0
- package/dist/components/RangeSlider/index.d.ts +2 -0
- package/dist/components/RangeSlider/types.d.ts +115 -0
- package/dist/components/SearchInput/index.d.ts +2 -0
- package/dist/components/SearchInput/types.d.ts +52 -0
- package/dist/components/SegmentedControl/SegmentedControl.vue.d.ts +97 -0
- package/dist/components/SegmentedControl/index.d.ts +4 -0
- package/dist/components/SegmentedControl/types.d.ts +55 -0
- package/dist/components/Select/Select.vue.d.ts +123 -0
- package/dist/components/Select/index.d.ts +2 -0
- package/dist/components/Select/types.d.ts +22 -0
- package/dist/components/Slider/Slider.vue.d.ts +164 -0
- package/dist/components/Slider/index.d.ts +3 -0
- package/dist/components/Slider/types.d.ts +145 -0
- package/dist/components/SplitButton/SplitButton.vue.d.ts +105 -0
- package/dist/components/SplitButton/index.d.ts +2 -0
- package/dist/components/SplitButton/types.d.ts +22 -0
- package/dist/components/Switch/Switch.vue.d.ts +117 -0
- package/dist/components/Switch/index.d.ts +4 -0
- package/dist/components/Switch/types.d.ts +55 -0
- package/dist/components/Tabs/Tabs.vue.d.ts +78 -0
- package/dist/components/Tabs/TabsList.vue.d.ts +52 -0
- package/dist/components/Tabs/TabsPanel.vue.d.ts +38 -0
- package/dist/components/Tabs/TabsTab.vue.d.ts +108 -0
- package/dist/components/Tabs/index.d.ts +5 -0
- package/dist/components/Tabs/types.d.ts +69 -0
- package/dist/components/TextInput/index.d.ts +2 -0
- package/dist/components/TextInput/types.d.ts +47 -0
- package/dist/components/Textarea/index.d.ts +2 -0
- package/dist/components/Textarea/types.d.ts +54 -0
- package/dist/components/ThemeProvider/ThemeProvider.vue.d.ts +88 -0
- package/dist/components/ThemeProvider/index.d.ts +1 -0
- package/dist/components/ThemeToggle/ThemeToggle.vue.d.ts +46 -0
- package/dist/components/ThemeToggle/index.d.ts +1 -0
- package/dist/components/Toast/CustomToast.vue.d.ts +50 -0
- package/dist/components/Toast/Toast.vue.d.ts +154 -0
- package/dist/components/Toast/index.d.ts +7 -0
- package/dist/components/Toast/plugin.d.ts +70 -0
- package/dist/components/Toast/types.d.ts +93 -0
- package/dist/components/index.d.ts +32 -0
- package/dist/composables/index.d.ts +1 -0
- package/dist/composables/useDropdown.d.ts +23 -0
- package/dist/composables/useTheme.d.ts +189 -0
- package/dist/composables/useThemeContext.d.ts +193 -0
- package/dist/composables/useThemeMode.d.ts +21 -0
- package/dist/directives/click-away/index.d.ts +2 -0
- package/dist/index.d.ts +47 -6937
- package/dist/index.js +15634 -13820
- package/dist/index.umd.cjs +1623 -1620
- package/dist/main.d.ts +0 -0
- package/dist/style.css +1 -1
- package/dist/theme/darkMode.d.ts +17 -0
- package/dist/theme/extensions.d.ts +50 -0
- package/dist/theme/generator.d.ts +31 -0
- package/dist/theme/tailwind.d.ts +10 -0
- package/dist/theme/types.d.ts +47 -0
- package/dist/types/common.d.ts +14 -0
- package/dist/types/index.d.ts +70 -0
- package/dist/utils/colors.d.ts +89 -0
- package/dist/utils/forms.d.ts +35 -0
- package/dist/utils/position.d.ts +11 -0
- package/dist/utils/radius.d.ts +2 -0
- package/dist/utils/shadows.d.ts +9 -0
- package/dist/utils/sizes.d.ts +7 -0
- package/dist/utils/states.d.ts +28 -0
- package/package.json +7 -11
- package/theme.css +243 -0
- package/dist/tailwind-151a5d8c.js +0 -2261
- package/dist/tailwind-e7334431.cjs +0 -66
- package/dist/tailwind.d.ts +0 -107
- package/dist/tailwind.js +0 -12
- package/dist/tailwind.umd.cjs +0 -1
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { Component } from 'vue';
|
|
2
|
+
import { ThemeColor, ComponentSize } from '../../types/common';
|
|
3
|
+
interface Props {
|
|
4
|
+
/** The variant style of the button */
|
|
5
|
+
variant?: 'filled' | 'light' | 'outline' | 'subtle' | 'text';
|
|
6
|
+
/** The color theme of the button */
|
|
7
|
+
color?: ThemeColor | string;
|
|
8
|
+
/** The size of the button */
|
|
9
|
+
size?: ComponentSize;
|
|
10
|
+
/** The border radius of the button */
|
|
11
|
+
radius?: 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
12
|
+
/** Whether the button is disabled */
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
/** Whether the button is in loading state */
|
|
15
|
+
loading?: boolean;
|
|
16
|
+
/** The icon to show in the dropdown trigger */
|
|
17
|
+
dropdownIcon?: Component;
|
|
18
|
+
/** Whether to show the divider between main button and dropdown */
|
|
19
|
+
showDivider?: boolean;
|
|
20
|
+
/** Custom class for the dropdown menu */
|
|
21
|
+
dropdownMenuClass?: string;
|
|
22
|
+
/** z-index for the dropdown menu (higher brings it to front) */
|
|
23
|
+
zIndex?: number | string;
|
|
24
|
+
}
|
|
25
|
+
declare function __VLS_template(): {
|
|
26
|
+
slots: {
|
|
27
|
+
loader?(_: {}): any;
|
|
28
|
+
default?(_: {}): any;
|
|
29
|
+
"dropdown-icon"?(_: {}): any;
|
|
30
|
+
menu?(_: {
|
|
31
|
+
closeMenu: () => void;
|
|
32
|
+
}): any;
|
|
33
|
+
};
|
|
34
|
+
refs: {
|
|
35
|
+
triggerRef: HTMLButtonElement;
|
|
36
|
+
floatingRef: HTMLDivElement;
|
|
37
|
+
};
|
|
38
|
+
attrs: Partial<{}>;
|
|
39
|
+
};
|
|
40
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
41
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
|
|
42
|
+
variant: string;
|
|
43
|
+
color: string;
|
|
44
|
+
size: string;
|
|
45
|
+
radius: string;
|
|
46
|
+
disabled: boolean;
|
|
47
|
+
loading: boolean;
|
|
48
|
+
showDivider: boolean;
|
|
49
|
+
dropdownMenuClass: string;
|
|
50
|
+
zIndex: number;
|
|
51
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
52
|
+
click: () => void;
|
|
53
|
+
"dropdown-click": () => void;
|
|
54
|
+
open: () => void;
|
|
55
|
+
close: () => void;
|
|
56
|
+
}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
|
|
57
|
+
variant: string;
|
|
58
|
+
color: string;
|
|
59
|
+
size: string;
|
|
60
|
+
radius: string;
|
|
61
|
+
disabled: boolean;
|
|
62
|
+
loading: boolean;
|
|
63
|
+
showDivider: boolean;
|
|
64
|
+
dropdownMenuClass: string;
|
|
65
|
+
zIndex: number;
|
|
66
|
+
}>>> & {
|
|
67
|
+
onClick?: (() => any) | undefined;
|
|
68
|
+
onClose?: (() => any) | undefined;
|
|
69
|
+
onOpen?: (() => any) | undefined;
|
|
70
|
+
"onDropdown-click"?: (() => any) | undefined;
|
|
71
|
+
}, {
|
|
72
|
+
disabled: boolean;
|
|
73
|
+
variant: "filled" | "light" | "outline" | "subtle" | "text";
|
|
74
|
+
color: ThemeColor | string;
|
|
75
|
+
size: ComponentSize;
|
|
76
|
+
radius: "none" | "xs" | "sm" | "md" | "lg" | "xl";
|
|
77
|
+
loading: boolean;
|
|
78
|
+
zIndex: number | string;
|
|
79
|
+
showDivider: boolean;
|
|
80
|
+
dropdownMenuClass: string;
|
|
81
|
+
}>;
|
|
82
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
83
|
+
export default _default;
|
|
84
|
+
type __VLS_WithDefaults<P, D> = {
|
|
85
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
86
|
+
default: D[K];
|
|
87
|
+
}> : P[K];
|
|
88
|
+
};
|
|
89
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
90
|
+
type __VLS_TypePropsToOption<T> = {
|
|
91
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
92
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
93
|
+
} : {
|
|
94
|
+
type: import('vue').PropType<T[K]>;
|
|
95
|
+
required: true;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
99
|
+
new (): {
|
|
100
|
+
$slots: S;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
type __VLS_PrettifyLocal<T> = {
|
|
104
|
+
[K in keyof T]: T[K];
|
|
105
|
+
} & {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Component } from 'vue';
|
|
2
|
+
import { ThemeColor, ComponentSize } from '../../types/common';
|
|
3
|
+
export interface SplitButtonProps {
|
|
4
|
+
/** The variant style of the button */
|
|
5
|
+
variant?: "filled" | "light" | "outline" | "subtle" | "text";
|
|
6
|
+
/** The color theme of the button */
|
|
7
|
+
color?: ThemeColor | string;
|
|
8
|
+
/** The size of the button */
|
|
9
|
+
size?: ComponentSize;
|
|
10
|
+
/** The border radius of the button */
|
|
11
|
+
radius?: "none" | "xs" | "sm" | "md" | "lg" | "xl";
|
|
12
|
+
/** Whether the button is disabled */
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
/** Whether the button is in loading state */
|
|
15
|
+
loading?: boolean;
|
|
16
|
+
/** The icon to show in the dropdown trigger */
|
|
17
|
+
dropdownIcon?: Component;
|
|
18
|
+
/** Whether to show the divider between main button and dropdown */
|
|
19
|
+
showDivider?: boolean;
|
|
20
|
+
/** Dropdown menu case*/
|
|
21
|
+
dropdownMenuClass?: string;
|
|
22
|
+
}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { ComponentSize, ComponentRadius, ThemeColor } from '../../types/common';
|
|
2
|
+
interface Props {
|
|
3
|
+
/**
|
|
4
|
+
* Value bound to the switch, used with v-model
|
|
5
|
+
*/
|
|
6
|
+
modelValue?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Label for the switch
|
|
9
|
+
*/
|
|
10
|
+
label?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Label when switch is in unchecked state
|
|
13
|
+
*/
|
|
14
|
+
offLabel?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Label when switch is in checked state
|
|
17
|
+
*/
|
|
18
|
+
onLabel?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Color of the switch when checked
|
|
21
|
+
*/
|
|
22
|
+
color?: ThemeColor;
|
|
23
|
+
/**
|
|
24
|
+
* Size of the switch
|
|
25
|
+
*/
|
|
26
|
+
size?: ComponentSize;
|
|
27
|
+
/**
|
|
28
|
+
* Border radius of the switch
|
|
29
|
+
*/
|
|
30
|
+
radius?: ComponentRadius;
|
|
31
|
+
/**
|
|
32
|
+
* Icon inside the thumb (string or slot)
|
|
33
|
+
*/
|
|
34
|
+
thumbIcon?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Position of the label
|
|
37
|
+
*/
|
|
38
|
+
labelPosition?: 'left' | 'right';
|
|
39
|
+
/**
|
|
40
|
+
* Description text shown below the label
|
|
41
|
+
*/
|
|
42
|
+
description?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Error message
|
|
45
|
+
*/
|
|
46
|
+
error?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Whether the switch is disabled
|
|
49
|
+
*/
|
|
50
|
+
disabled?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Name attribute of the input element
|
|
53
|
+
*/
|
|
54
|
+
name?: string;
|
|
55
|
+
}
|
|
56
|
+
declare function __VLS_template(): {
|
|
57
|
+
slots: {
|
|
58
|
+
thumbIcon?(_: {
|
|
59
|
+
checked: boolean;
|
|
60
|
+
size: ComponentSize;
|
|
61
|
+
}): any;
|
|
62
|
+
default?(_: {
|
|
63
|
+
checked: boolean;
|
|
64
|
+
size: ComponentSize;
|
|
65
|
+
}): any;
|
|
66
|
+
};
|
|
67
|
+
refs: {};
|
|
68
|
+
attrs: Partial<{}>;
|
|
69
|
+
};
|
|
70
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
71
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
|
|
72
|
+
modelValue: boolean;
|
|
73
|
+
size: string;
|
|
74
|
+
color: string;
|
|
75
|
+
labelPosition: string;
|
|
76
|
+
disabled: boolean;
|
|
77
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
78
|
+
"update:modelValue": (value: boolean) => void;
|
|
79
|
+
}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
|
|
80
|
+
modelValue: boolean;
|
|
81
|
+
size: string;
|
|
82
|
+
color: string;
|
|
83
|
+
labelPosition: string;
|
|
84
|
+
disabled: boolean;
|
|
85
|
+
}>>> & {
|
|
86
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
87
|
+
}, {
|
|
88
|
+
disabled: boolean;
|
|
89
|
+
color: ThemeColor;
|
|
90
|
+
size: ComponentSize;
|
|
91
|
+
modelValue: boolean;
|
|
92
|
+
labelPosition: "left" | "right";
|
|
93
|
+
}>;
|
|
94
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
95
|
+
export default _default;
|
|
96
|
+
type __VLS_WithDefaults<P, D> = {
|
|
97
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
98
|
+
default: D[K];
|
|
99
|
+
}> : P[K];
|
|
100
|
+
};
|
|
101
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
102
|
+
type __VLS_TypePropsToOption<T> = {
|
|
103
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
104
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
105
|
+
} : {
|
|
106
|
+
type: import('vue').PropType<T[K]>;
|
|
107
|
+
required: true;
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
111
|
+
new (): {
|
|
112
|
+
$slots: S;
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
type __VLS_PrettifyLocal<T> = {
|
|
116
|
+
[K in keyof T]: T[K];
|
|
117
|
+
} & {};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { ComponentSize as Size, ThemeColor as Color, ComponentRadius as Radius } from '../../types/common';
|
|
2
|
+
export interface SwitchProps {
|
|
3
|
+
/**
|
|
4
|
+
* Value bound to the switch, used with v-model
|
|
5
|
+
*/
|
|
6
|
+
modelValue?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Label for the switch
|
|
9
|
+
*/
|
|
10
|
+
label?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Label when switch is in unchecked state
|
|
13
|
+
*/
|
|
14
|
+
offLabel?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Label when switch is in checked state
|
|
17
|
+
*/
|
|
18
|
+
onLabel?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Color of the switch when checked
|
|
21
|
+
*/
|
|
22
|
+
color?: Color;
|
|
23
|
+
/**
|
|
24
|
+
* Size of the switch
|
|
25
|
+
*/
|
|
26
|
+
size?: Size;
|
|
27
|
+
/**
|
|
28
|
+
* Border radius of the switch
|
|
29
|
+
*/
|
|
30
|
+
radius?: Radius;
|
|
31
|
+
/**
|
|
32
|
+
* Icon inside the thumb (string or slot)
|
|
33
|
+
*/
|
|
34
|
+
thumbIcon?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Position of the label
|
|
37
|
+
*/
|
|
38
|
+
labelPosition?: 'left' | 'right';
|
|
39
|
+
/**
|
|
40
|
+
* Description text shown below the label
|
|
41
|
+
*/
|
|
42
|
+
description?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Error message
|
|
45
|
+
*/
|
|
46
|
+
error?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Whether the switch is disabled
|
|
49
|
+
*/
|
|
50
|
+
disabled?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Name attribute of the input element
|
|
53
|
+
*/
|
|
54
|
+
name?: string;
|
|
55
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
slots: {
|
|
3
|
+
default?(_: {}): any;
|
|
4
|
+
};
|
|
5
|
+
refs: {};
|
|
6
|
+
attrs: Partial<{}>;
|
|
7
|
+
};
|
|
8
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
9
|
+
declare const __VLS_component: import('vue').DefineComponent<{
|
|
10
|
+
/** Value for controlled component */
|
|
11
|
+
value: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
default: undefined;
|
|
14
|
+
};
|
|
15
|
+
/** Default value for uncontrolled component */
|
|
16
|
+
defaultValue: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
/** Orientation of tabs */
|
|
21
|
+
orientation: {
|
|
22
|
+
type: () => "horizontal" | "vertical";
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
/** Placement of tabs (left/right for vertical, top/bottom for horizontal) */
|
|
26
|
+
placement: {
|
|
27
|
+
type: () => "left" | "right" | "top" | "bottom";
|
|
28
|
+
default: undefined;
|
|
29
|
+
};
|
|
30
|
+
/** Variant of the tabs */
|
|
31
|
+
variant: {
|
|
32
|
+
type: () => "filled" | "outline" | "light" | "subtle" | "text" | "bordered" | "bordered-transparent" | "white" | "default" | "gradient";
|
|
33
|
+
default: string;
|
|
34
|
+
};
|
|
35
|
+
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
36
|
+
change: (...args: any[]) => void;
|
|
37
|
+
}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<{
|
|
38
|
+
/** Value for controlled component */
|
|
39
|
+
value: {
|
|
40
|
+
type: StringConstructor;
|
|
41
|
+
default: undefined;
|
|
42
|
+
};
|
|
43
|
+
/** Default value for uncontrolled component */
|
|
44
|
+
defaultValue: {
|
|
45
|
+
type: StringConstructor;
|
|
46
|
+
default: string;
|
|
47
|
+
};
|
|
48
|
+
/** Orientation of tabs */
|
|
49
|
+
orientation: {
|
|
50
|
+
type: () => "horizontal" | "vertical";
|
|
51
|
+
default: string;
|
|
52
|
+
};
|
|
53
|
+
/** Placement of tabs (left/right for vertical, top/bottom for horizontal) */
|
|
54
|
+
placement: {
|
|
55
|
+
type: () => "left" | "right" | "top" | "bottom";
|
|
56
|
+
default: undefined;
|
|
57
|
+
};
|
|
58
|
+
/** Variant of the tabs */
|
|
59
|
+
variant: {
|
|
60
|
+
type: () => "filled" | "outline" | "light" | "subtle" | "text" | "bordered" | "bordered-transparent" | "white" | "default" | "gradient";
|
|
61
|
+
default: string;
|
|
62
|
+
};
|
|
63
|
+
}>> & {
|
|
64
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
65
|
+
}, {
|
|
66
|
+
variant: "light" | "filled" | "outline" | "subtle" | "text" | "gradient" | "white" | "default" | "bordered" | "bordered-transparent";
|
|
67
|
+
value: string;
|
|
68
|
+
defaultValue: string;
|
|
69
|
+
placement: "left" | "right" | "bottom" | "top";
|
|
70
|
+
orientation: "vertical" | "horizontal";
|
|
71
|
+
}>;
|
|
72
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
73
|
+
export default _default;
|
|
74
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
75
|
+
new (): {
|
|
76
|
+
$slots: S;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
slots: {
|
|
3
|
+
default?(_: {}): any;
|
|
4
|
+
};
|
|
5
|
+
refs: {};
|
|
6
|
+
attrs: Partial<{}>;
|
|
7
|
+
};
|
|
8
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
9
|
+
declare const __VLS_component: import('vue').DefineComponent<{
|
|
10
|
+
/** Justify content alignment */
|
|
11
|
+
justify: {
|
|
12
|
+
type: () => "flex-start" | "flex-end" | "center" | "space-between" | "space-around" | "space-evenly";
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
/** Whether to show a divider */
|
|
16
|
+
divider: {
|
|
17
|
+
type: BooleanConstructor;
|
|
18
|
+
default: boolean;
|
|
19
|
+
};
|
|
20
|
+
/** Whether tabs should be horizontally scrollable instead of wrapping */
|
|
21
|
+
scrollable: {
|
|
22
|
+
type: BooleanConstructor;
|
|
23
|
+
default: boolean;
|
|
24
|
+
};
|
|
25
|
+
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<{
|
|
26
|
+
/** Justify content alignment */
|
|
27
|
+
justify: {
|
|
28
|
+
type: () => "flex-start" | "flex-end" | "center" | "space-between" | "space-around" | "space-evenly";
|
|
29
|
+
default: string;
|
|
30
|
+
};
|
|
31
|
+
/** Whether to show a divider */
|
|
32
|
+
divider: {
|
|
33
|
+
type: BooleanConstructor;
|
|
34
|
+
default: boolean;
|
|
35
|
+
};
|
|
36
|
+
/** Whether tabs should be horizontally scrollable instead of wrapping */
|
|
37
|
+
scrollable: {
|
|
38
|
+
type: BooleanConstructor;
|
|
39
|
+
default: boolean;
|
|
40
|
+
};
|
|
41
|
+
}>>, {
|
|
42
|
+
justify: "center" | "space-between" | "space-around" | "space-evenly" | "flex-end" | "flex-start";
|
|
43
|
+
scrollable: boolean;
|
|
44
|
+
divider: boolean;
|
|
45
|
+
}>;
|
|
46
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
47
|
+
export default _default;
|
|
48
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
49
|
+
new (): {
|
|
50
|
+
$slots: S;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
slots: {
|
|
3
|
+
default?(_: {}): any;
|
|
4
|
+
};
|
|
5
|
+
refs: {};
|
|
6
|
+
attrs: Partial<{}>;
|
|
7
|
+
};
|
|
8
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
9
|
+
declare const __VLS_component: import('vue').DefineComponent<{
|
|
10
|
+
/** Panel value, used for matching with active value */
|
|
11
|
+
value: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
required: true;
|
|
14
|
+
};
|
|
15
|
+
KeepAlive: {
|
|
16
|
+
type: BooleanConstructor;
|
|
17
|
+
default: boolean;
|
|
18
|
+
};
|
|
19
|
+
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<{
|
|
20
|
+
/** Panel value, used for matching with active value */
|
|
21
|
+
value: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
required: true;
|
|
24
|
+
};
|
|
25
|
+
KeepAlive: {
|
|
26
|
+
type: BooleanConstructor;
|
|
27
|
+
default: boolean;
|
|
28
|
+
};
|
|
29
|
+
}>>, {
|
|
30
|
+
KeepAlive: boolean;
|
|
31
|
+
}>;
|
|
32
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
33
|
+
export default _default;
|
|
34
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
35
|
+
new (): {
|
|
36
|
+
$slots: S;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
slots: {
|
|
3
|
+
default?(_: {}): any;
|
|
4
|
+
leftSection?(_: {}): any;
|
|
5
|
+
rightSection?(_: {}): any;
|
|
6
|
+
};
|
|
7
|
+
refs: {};
|
|
8
|
+
attrs: Partial<{}>;
|
|
9
|
+
};
|
|
10
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
|
+
declare const __VLS_component: import('vue').DefineComponent<{
|
|
12
|
+
/** Tab value, used for matching with active value */
|
|
13
|
+
value: {
|
|
14
|
+
type: StringConstructor;
|
|
15
|
+
required: true;
|
|
16
|
+
};
|
|
17
|
+
/** Button color */
|
|
18
|
+
color: {
|
|
19
|
+
type: () => "primary" | "secondary" | "success" | "warning" | "danger" | "info" | "dark" | "light";
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
22
|
+
/** Button variant */
|
|
23
|
+
variant: {
|
|
24
|
+
type: () => "outline" | "text" | "subtle" | "light" | "filled" | undefined;
|
|
25
|
+
default: string;
|
|
26
|
+
};
|
|
27
|
+
/** Button size */
|
|
28
|
+
size: {
|
|
29
|
+
type: () => "xs" | "sm" | "md" | "lg" | "xl";
|
|
30
|
+
default: string;
|
|
31
|
+
};
|
|
32
|
+
/** Button radius */
|
|
33
|
+
radius: {
|
|
34
|
+
type: () => "xs" | "sm" | "md" | "lg" | "xl" | "none" | "full";
|
|
35
|
+
default: string;
|
|
36
|
+
};
|
|
37
|
+
/** Disabled state */
|
|
38
|
+
disabled: {
|
|
39
|
+
type: BooleanConstructor;
|
|
40
|
+
default: boolean;
|
|
41
|
+
};
|
|
42
|
+
/** Loading state */
|
|
43
|
+
loading: {
|
|
44
|
+
type: BooleanConstructor;
|
|
45
|
+
default: boolean;
|
|
46
|
+
};
|
|
47
|
+
/** Full width */
|
|
48
|
+
fullWidth: {
|
|
49
|
+
type: BooleanConstructor;
|
|
50
|
+
default: boolean;
|
|
51
|
+
};
|
|
52
|
+
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<{
|
|
53
|
+
/** Tab value, used for matching with active value */
|
|
54
|
+
value: {
|
|
55
|
+
type: StringConstructor;
|
|
56
|
+
required: true;
|
|
57
|
+
};
|
|
58
|
+
/** Button color */
|
|
59
|
+
color: {
|
|
60
|
+
type: () => "primary" | "secondary" | "success" | "warning" | "danger" | "info" | "dark" | "light";
|
|
61
|
+
default: string;
|
|
62
|
+
};
|
|
63
|
+
/** Button variant */
|
|
64
|
+
variant: {
|
|
65
|
+
type: () => "outline" | "text" | "subtle" | "light" | "filled" | undefined;
|
|
66
|
+
default: string;
|
|
67
|
+
};
|
|
68
|
+
/** Button size */
|
|
69
|
+
size: {
|
|
70
|
+
type: () => "xs" | "sm" | "md" | "lg" | "xl";
|
|
71
|
+
default: string;
|
|
72
|
+
};
|
|
73
|
+
/** Button radius */
|
|
74
|
+
radius: {
|
|
75
|
+
type: () => "xs" | "sm" | "md" | "lg" | "xl" | "none" | "full";
|
|
76
|
+
default: string;
|
|
77
|
+
};
|
|
78
|
+
/** Disabled state */
|
|
79
|
+
disabled: {
|
|
80
|
+
type: BooleanConstructor;
|
|
81
|
+
default: boolean;
|
|
82
|
+
};
|
|
83
|
+
/** Loading state */
|
|
84
|
+
loading: {
|
|
85
|
+
type: BooleanConstructor;
|
|
86
|
+
default: boolean;
|
|
87
|
+
};
|
|
88
|
+
/** Full width */
|
|
89
|
+
fullWidth: {
|
|
90
|
+
type: BooleanConstructor;
|
|
91
|
+
default: boolean;
|
|
92
|
+
};
|
|
93
|
+
}>>, {
|
|
94
|
+
disabled: boolean;
|
|
95
|
+
variant: "light" | "filled" | "outline" | "subtle" | "text" | undefined;
|
|
96
|
+
color: "primary" | "secondary" | "success" | "warning" | "danger" | "info" | "dark" | "light";
|
|
97
|
+
size: "xs" | "sm" | "md" | "lg" | "xl";
|
|
98
|
+
radius: "xs" | "sm" | "md" | "lg" | "xl" | "none" | "full";
|
|
99
|
+
loading: boolean;
|
|
100
|
+
fullWidth: boolean;
|
|
101
|
+
}>;
|
|
102
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
103
|
+
export default _default;
|
|
104
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
105
|
+
new (): {
|
|
106
|
+
$slots: S;
|
|
107
|
+
};
|
|
108
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { ComponentSize, ComponentRadius, ThemeColor, ButtonVariant } from '../../types/common';
|
|
2
|
+
export interface TabsProps {
|
|
3
|
+
/** Model value for the active tab index */
|
|
4
|
+
modelValue?: number;
|
|
5
|
+
/** Whether to use card style */
|
|
6
|
+
card?: boolean;
|
|
7
|
+
/** Whether to use pills style */
|
|
8
|
+
pills?: boolean;
|
|
9
|
+
/** Whether to fill available width */
|
|
10
|
+
fill?: boolean;
|
|
11
|
+
/** Whether to justify tabs with equal width */
|
|
12
|
+
justified?: boolean;
|
|
13
|
+
/** Alignment of tabs: 'start', 'center', or 'end' */
|
|
14
|
+
align?: 'start' | 'center' | 'end';
|
|
15
|
+
/** Whether to place tabs at the bottom */
|
|
16
|
+
end?: boolean;
|
|
17
|
+
/** Whether to use vertical layout */
|
|
18
|
+
vertical?: boolean;
|
|
19
|
+
/** Whether to disable fade animation */
|
|
20
|
+
noFade?: boolean;
|
|
21
|
+
/** Whether to disable keyboard navigation */
|
|
22
|
+
noKeyNav?: boolean;
|
|
23
|
+
/** Whether to disable nav styling */
|
|
24
|
+
noNavStyle?: boolean;
|
|
25
|
+
/** Size of the tabs */
|
|
26
|
+
size?: ComponentSize;
|
|
27
|
+
/** Border radius of the tabs */
|
|
28
|
+
radius?: ComponentRadius;
|
|
29
|
+
/** Color variant of the tabs */
|
|
30
|
+
color?: ThemeColor;
|
|
31
|
+
/** Visual style variant */
|
|
32
|
+
variant?: ButtonVariant;
|
|
33
|
+
/** CSS class for the content wrapper */
|
|
34
|
+
contentClass?: string | string[] | Record<string, boolean>;
|
|
35
|
+
/** CSS class for the nav wrapper */
|
|
36
|
+
navClass?: string | string[] | Record<string, boolean>;
|
|
37
|
+
/** CSS class for the nav wrapper element */
|
|
38
|
+
navWrapperClass?: string | string[] | Record<string, boolean>;
|
|
39
|
+
/** CSS class for active nav item */
|
|
40
|
+
activeNavItemClass?: string | string[] | Record<string, boolean>;
|
|
41
|
+
/** CSS class for active tab */
|
|
42
|
+
activeTabClass?: string | string[] | Record<string, boolean>;
|
|
43
|
+
/** HTML tag to use for the tabs component */
|
|
44
|
+
tag?: string;
|
|
45
|
+
}
|
|
46
|
+
export interface TabProps {
|
|
47
|
+
/** Tab title */
|
|
48
|
+
title?: string;
|
|
49
|
+
/** Whether the tab is active */
|
|
50
|
+
active?: boolean;
|
|
51
|
+
/** Whether the tab is disabled */
|
|
52
|
+
disabled?: boolean;
|
|
53
|
+
/** ID for the tab button */
|
|
54
|
+
buttonId?: string;
|
|
55
|
+
/** ID for the tab content */
|
|
56
|
+
id?: string;
|
|
57
|
+
/** Whether to lazy load tab content */
|
|
58
|
+
lazy?: boolean;
|
|
59
|
+
/** Whether to disable card-body class (when parent tabs has card prop) */
|
|
60
|
+
noBody?: boolean;
|
|
61
|
+
/** HTML tag to use for the tab component */
|
|
62
|
+
tag?: string;
|
|
63
|
+
/** CSS class for the tab's control button li element */
|
|
64
|
+
titleItemClass?: string | string[] | Record<string, boolean>;
|
|
65
|
+
/** CSS class for the tab's control button inner link element */
|
|
66
|
+
titleLinkClass?: string | string[] | Record<string, boolean>;
|
|
67
|
+
/** Attributes to apply to the tab's control button inner link element */
|
|
68
|
+
titleLinkAttributes?: Record<string, any>;
|
|
69
|
+
}
|