@contentstudio/ui 0.2.25 → 0.2.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +7520 -47
- package/package.json +1 -1
- package/dist/App.vue.d.ts +0 -2
- package/dist/components/Accordion/Accordion.vue.d.ts +0 -58
- package/dist/components/Accordion/AccordionItem.vue.d.ts +0 -63
- package/dist/components/Accordion/index.d.ts +0 -3
- package/dist/components/Accordion/types.d.ts +0 -15
- package/dist/components/ActionIcon/ActionIcon.vue.d.ts +0 -105
- package/dist/components/ActionIcon/index.d.ts +0 -2
- package/dist/components/ActionIcon/types.d.ts +0 -53
- package/dist/components/Alert/Alert.vue.d.ts +0 -94
- package/dist/components/Alert/index.d.ts +0 -4
- package/dist/components/Alert/types.d.ts +0 -30
- package/dist/components/Avatar/Avatar.vue.d.ts +0 -106
- package/dist/components/Avatar/AvatarGroup.vue.d.ts +0 -76
- package/dist/components/Avatar/index.d.ts +0 -5
- package/dist/components/Avatar/types.d.ts +0 -58
- package/dist/components/Avatar/utils.d.ts +0 -9
- package/dist/components/Badge/Badge.vue.d.ts +0 -109
- package/dist/components/Badge/index.d.ts +0 -2
- package/dist/components/Badge/types.d.ts +0 -35
- package/dist/components/Breadcrumbs/Breadcrumbs.vue.d.ts +0 -80
- package/dist/components/Breadcrumbs/index.d.ts +0 -3
- package/dist/components/Breadcrumbs/types.d.ts +0 -23
- package/dist/components/Button/Button.vue.d.ts +0 -85
- package/dist/components/Button/index.d.ts +0 -2
- package/dist/components/Button/types.d.ts +0 -40
- package/dist/components/Card/Card.vue.d.ts +0 -202
- package/dist/components/Card/CardSection.vue.d.ts +0 -57
- package/dist/components/Card/index.d.ts +0 -4
- package/dist/components/Card/types.d.ts +0 -31
- package/dist/components/Checkbox/Checkbox.vue.d.ts +0 -94
- package/dist/components/Checkbox/index.d.ts +0 -4
- package/dist/components/Checkbox/types.d.ts +0 -20
- package/dist/components/Chip/Chip.vue.d.ts +0 -108
- package/dist/components/Chip/index.d.ts +0 -4
- package/dist/components/Chip/types.d.ts +0 -48
- package/dist/components/ClientExtensionDemo/index.d.ts +0 -1
- package/dist/components/ClientExtensionDemo.vue.d.ts +0 -2
- package/dist/components/Collapsible/Collapsible.vue.d.ts +0 -77
- package/dist/components/Collapsible/index.d.ts +0 -4
- package/dist/components/Collapsible/types.d.ts +0 -9
- package/dist/components/Dialog/Dialog.vue.d.ts +0 -151
- package/dist/components/Dialog/index.d.ts +0 -4
- package/dist/components/Dialog/types.d.ts +0 -28
- package/dist/components/Drawer/Drawer.vue.d.ts +0 -134
- package/dist/components/Drawer/index.d.ts +0 -4
- package/dist/components/Drawer/types.d.ts +0 -61
- package/dist/components/Dropdown/Dropdown.vue.d.ts +0 -131
- package/dist/components/Dropdown/DropdownItem.vue.d.ts +0 -64
- package/dist/components/Dropdown/index.d.ts +0 -7
- package/dist/components/Dropdown/types.d.ts +0 -41
- package/dist/components/DropdownMenu/DropdownMenu.vue.d.ts +0 -109
- package/dist/components/DropdownMenu/index.d.ts +0 -3
- package/dist/components/HoverCard/HoverCard.vue.d.ts +0 -104
- package/dist/components/HoverCard/HoverCardTarget.vue.d.ts +0 -49
- package/dist/components/HoverCard/index.d.ts +0 -384
- package/dist/components/HoverCard/types.d.ts +0 -40
- package/dist/components/HoverCard/useHoverCard.d.ts +0 -20
- package/dist/components/Icon/Icon.vue.d.ts +0 -15
- package/dist/components/Icon/index.d.ts +0 -4
- package/dist/components/Icon/types.d.ts +0 -12
- package/dist/components/Indicator/Indicator.vue.d.ts +0 -129
- package/dist/components/Indicator/index.d.ts +0 -2
- package/dist/components/Indicator/types.d.ts +0 -29
- package/dist/components/ListItem/ListItem.vue.d.ts +0 -64
- package/dist/components/ListItem/index.d.ts +0 -6
- package/dist/components/ListItem/types.d.ts +0 -7
- package/dist/components/Loader/Loader.vue.d.ts +0 -65
- package/dist/components/Loader/index.d.ts +0 -2
- package/dist/components/Loader/types.d.ts +0 -16
- package/dist/components/Loader/variants/BarsLoader.vue.d.ts +0 -35
- package/dist/components/Loader/variants/DotsLoader.vue.d.ts +0 -35
- package/dist/components/Loader/variants/OvalLoader.vue.d.ts +0 -39
- package/dist/components/Modal/MessageBoxConfirm.vue.d.ts +0 -275
- package/dist/components/Modal/MessageBoxOk.vue.d.ts +0 -207
- package/dist/components/Modal/Modal.vue.d.ts +0 -494
- package/dist/components/Modal/directive.d.ts +0 -14
- package/dist/components/Modal/index.d.ts +0 -7
- package/dist/components/Modal/plugin.d.ts +0 -59
- package/dist/components/Modal/types.d.ts +0 -79
- package/dist/components/Pagination/Pagination.vue.d.ts +0 -84
- package/dist/components/Pagination/index.d.ts +0 -3
- package/dist/components/Pagination/types.d.ts +0 -32
- package/dist/components/Pill/Pill.vue.d.ts +0 -84
- package/dist/components/Pill/index.d.ts +0 -2
- package/dist/components/Pill/types.d.ts +0 -21
- package/dist/components/Popover/Popover.vue.d.ts +0 -197
- package/dist/components/Popover/index.d.ts +0 -4
- package/dist/components/Popover/types.d.ts +0 -67
- package/dist/components/Progress/Progress.vue.d.ts +0 -138
- package/dist/components/Progress/index.d.ts +0 -4
- package/dist/components/Progress/types.d.ts +0 -44
- package/dist/components/Radio/Radio.vue.d.ts +0 -99
- package/dist/components/Radio/index.d.ts +0 -2
- package/dist/components/Radio/types.d.ts +0 -53
- package/dist/components/RangeSlider/RangeSlider.vue.d.ts +0 -175
- package/dist/components/RangeSlider/index.d.ts +0 -2
- package/dist/components/RangeSlider/types.d.ts +0 -115
- package/dist/components/SearchInput/index.d.ts +0 -2
- package/dist/components/SearchInput/types.d.ts +0 -52
- package/dist/components/SegmentedControl/SegmentedControl.vue.d.ts +0 -97
- package/dist/components/SegmentedControl/index.d.ts +0 -4
- package/dist/components/SegmentedControl/types.d.ts +0 -55
- package/dist/components/Select/Select.vue.d.ts +0 -123
- package/dist/components/Select/index.d.ts +0 -2
- package/dist/components/Select/types.d.ts +0 -22
- package/dist/components/Slider/Slider.vue.d.ts +0 -164
- package/dist/components/Slider/index.d.ts +0 -3
- package/dist/components/Slider/types.d.ts +0 -145
- package/dist/components/SplitButton/SplitButton.vue.d.ts +0 -105
- package/dist/components/SplitButton/index.d.ts +0 -2
- package/dist/components/SplitButton/types.d.ts +0 -22
- package/dist/components/Stepper/Stepper.vue.d.ts +0 -65
- package/dist/components/Stepper/StepperItem.vue.d.ts +0 -79
- package/dist/components/Stepper/index.d.ts +0 -3
- package/dist/components/Stepper/types.d.ts +0 -14
- package/dist/components/Switch/Switch.vue.d.ts +0 -117
- package/dist/components/Switch/index.d.ts +0 -4
- package/dist/components/Switch/types.d.ts +0 -55
- package/dist/components/Table/Table.vue.d.ts +0 -78
- package/dist/components/Table/index.d.ts +0 -2
- package/dist/components/Table/types.d.ts +0 -25
- package/dist/components/Tabs/Tabs.vue.d.ts +0 -78
- package/dist/components/Tabs/TabsList.vue.d.ts +0 -52
- package/dist/components/Tabs/TabsPanel.vue.d.ts +0 -38
- package/dist/components/Tabs/TabsTab.vue.d.ts +0 -108
- package/dist/components/Tabs/index.d.ts +0 -5
- package/dist/components/Tabs/types.d.ts +0 -69
- package/dist/components/TextInput/index.d.ts +0 -2
- package/dist/components/TextInput/types.d.ts +0 -47
- package/dist/components/Textarea/index.d.ts +0 -2
- package/dist/components/Textarea/types.d.ts +0 -54
- package/dist/components/ThemeProvider/ThemeProvider.vue.d.ts +0 -88
- package/dist/components/ThemeProvider/index.d.ts +0 -1
- package/dist/components/ThemeToggle/ThemeToggle.vue.d.ts +0 -46
- package/dist/components/ThemeToggle/index.d.ts +0 -1
- package/dist/components/Toast/CustomToast.vue.d.ts +0 -50
- package/dist/components/Toast/Toast.vue.d.ts +0 -154
- package/dist/components/Toast/index.d.ts +0 -7
- package/dist/components/Toast/plugin.d.ts +0 -70
- package/dist/components/Toast/types.d.ts +0 -93
- package/dist/components/index.d.ts +0 -35
- package/dist/composables/index.d.ts +0 -1
- package/dist/composables/useDropdown.d.ts +0 -23
- package/dist/composables/useTheme.d.ts +0 -189
- package/dist/composables/useThemeContext.d.ts +0 -193
- package/dist/composables/useThemeMode.d.ts +0 -21
- package/dist/directives/click-away/index.d.ts +0 -2
- package/dist/main.d.ts +0 -0
- package/dist/theme/darkMode.d.ts +0 -17
- package/dist/theme/extensions.d.ts +0 -50
- package/dist/theme/generator.d.ts +0 -31
- package/dist/theme/tailwind.d.ts +0 -10
- package/dist/theme/types.d.ts +0 -47
- package/dist/types/common.d.ts +0 -14
- package/dist/types/index.d.ts +0 -70
- package/dist/utils/colors.d.ts +0 -89
- package/dist/utils/forms.d.ts +0 -35
- package/dist/utils/position.d.ts +0 -11
- package/dist/utils/radius.d.ts +0 -2
- package/dist/utils/shadows.d.ts +0 -9
- package/dist/utils/sizes.d.ts +0 -7
- package/dist/utils/states.d.ts +0 -28
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { App, InjectionKey } from 'vue';
|
|
2
|
-
export interface ModalOptions {
|
|
3
|
-
title?: string;
|
|
4
|
-
okTitle?: string;
|
|
5
|
-
okVariant?: string;
|
|
6
|
-
okColor?: string;
|
|
7
|
-
okDisabled?: boolean;
|
|
8
|
-
cancelTitle?: string;
|
|
9
|
-
cancelVariant?: string;
|
|
10
|
-
cancelColor?: string;
|
|
11
|
-
cancelDisabled?: boolean;
|
|
12
|
-
centered?: boolean;
|
|
13
|
-
size?: string;
|
|
14
|
-
noCloseOnBackdrop?: boolean;
|
|
15
|
-
noCloseOnEsc?: boolean;
|
|
16
|
-
zIndex?: number;
|
|
17
|
-
contentClass?: string;
|
|
18
|
-
fullscreen?: boolean;
|
|
19
|
-
scrollable?: boolean;
|
|
20
|
-
headerClass?: string;
|
|
21
|
-
titleClass?: string;
|
|
22
|
-
bodyClass?: string;
|
|
23
|
-
footerClass?: string;
|
|
24
|
-
dialogClass?: string;
|
|
25
|
-
modalClass?: string;
|
|
26
|
-
showHeaderDivider?: boolean;
|
|
27
|
-
showFooterDivider?: boolean;
|
|
28
|
-
showDividers?: boolean;
|
|
29
|
-
radius?: string;
|
|
30
|
-
busy?: boolean;
|
|
31
|
-
onConfirm?: () => Promise<unknown> | unknown;
|
|
32
|
-
onConfirmSuccess?: (result: unknown) => void;
|
|
33
|
-
onConfirmError?: (error: unknown) => void;
|
|
34
|
-
closeOnConfirmSuccess?: boolean;
|
|
35
|
-
closeOnConfirmError?: boolean;
|
|
36
|
-
}
|
|
37
|
-
export declare const ModalSymbol: InjectionKey<ModalInstance>;
|
|
38
|
-
export interface ModalInstance {
|
|
39
|
-
show: (id: string) => void;
|
|
40
|
-
hide: (id: string) => void;
|
|
41
|
-
toggle: (id: string) => void;
|
|
42
|
-
msgBoxOk: (message: string | any, options?: ModalOptions) => Promise<boolean>;
|
|
43
|
-
msgBoxConfirm: (message: string | any, options?: ModalOptions) => Promise<boolean>;
|
|
44
|
-
}
|
|
45
|
-
export interface ModalPlugin {
|
|
46
|
-
$cstuModal: ModalInstance;
|
|
47
|
-
}
|
|
48
|
-
export declare const cstuModal: ModalInstance;
|
|
49
|
-
export declare function useModal(): ModalInstance;
|
|
50
|
-
export declare function registerModal(id: string, methods: {
|
|
51
|
-
show: () => void;
|
|
52
|
-
hide: () => void;
|
|
53
|
-
toggle: () => void;
|
|
54
|
-
}): void;
|
|
55
|
-
export declare function unregisterModal(id: string): void;
|
|
56
|
-
export declare const ModalPlugin: {
|
|
57
|
-
install: (app: App) => void;
|
|
58
|
-
};
|
|
59
|
-
export default ModalPlugin;
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { ComponentSize, ComponentRadius, ThemeColor, ButtonVariant, SectionProps } from '../../types/common';
|
|
2
|
-
export interface ModalProps {
|
|
3
|
-
/** Modal title */
|
|
4
|
-
title?: string;
|
|
5
|
-
/** Modal content */
|
|
6
|
-
content?: string;
|
|
7
|
-
/** Whether the modal is opened */
|
|
8
|
-
modelValue?: boolean;
|
|
9
|
-
/** Modal size */
|
|
10
|
-
size?: ComponentSize;
|
|
11
|
-
/** Border radius */
|
|
12
|
-
radius?: ComponentRadius;
|
|
13
|
-
/** Whether to show close button in header */
|
|
14
|
-
hideHeaderClose?: boolean;
|
|
15
|
-
/** Whether to show footer */
|
|
16
|
-
hideFooter?: boolean;
|
|
17
|
-
/** Whether to show header */
|
|
18
|
-
hideHeader?: boolean;
|
|
19
|
-
/** Whether to close on ESC key */
|
|
20
|
-
noCloseOnEsc?: boolean;
|
|
21
|
-
/** Whether to close on backdrop click */
|
|
22
|
-
noCloseOnBackdrop?: boolean;
|
|
23
|
-
/** Whether to center modal vertically */
|
|
24
|
-
centered?: boolean;
|
|
25
|
-
/** Whether to make the modal scrollable */
|
|
26
|
-
scrollable?: boolean;
|
|
27
|
-
/** Whether to show modal in fullscreen */
|
|
28
|
-
fullscreen?: boolean;
|
|
29
|
-
/** Whether to keep the component mounted when hidden */
|
|
30
|
-
static?: boolean;
|
|
31
|
-
/** Whether the modal is busy (disables all buttons) */
|
|
32
|
-
busy?: boolean;
|
|
33
|
-
/** OK button text */
|
|
34
|
-
okTitle?: string;
|
|
35
|
-
/** Cancel button text */
|
|
36
|
-
cancelTitle?: string;
|
|
37
|
-
/** OK button variant */
|
|
38
|
-
okVariant?: ButtonVariant;
|
|
39
|
-
/** Cancel button variant */
|
|
40
|
-
cancelVariant?: ButtonVariant;
|
|
41
|
-
/** OK button color */
|
|
42
|
-
okColor?: ThemeColor;
|
|
43
|
-
/** Cancel button color */
|
|
44
|
-
cancelColor?: ThemeColor;
|
|
45
|
-
/** Whether to show only OK button */
|
|
46
|
-
okOnly?: boolean;
|
|
47
|
-
/** Whether to disable OK button */
|
|
48
|
-
okDisabled?: boolean;
|
|
49
|
-
/** Whether to disable Cancel button */
|
|
50
|
-
cancelDisabled?: boolean;
|
|
51
|
-
/** Whether to show backdrop */
|
|
52
|
-
backdrop?: boolean | 'static';
|
|
53
|
-
/** Modal z-index */
|
|
54
|
-
zIndex?: number;
|
|
55
|
-
/** Left section props */
|
|
56
|
-
leftSectionProps?: SectionProps;
|
|
57
|
-
/** Right section props */
|
|
58
|
-
rightSectionProps?: SectionProps;
|
|
59
|
-
/** Left section */
|
|
60
|
-
leftSection?: any;
|
|
61
|
-
/** Right section */
|
|
62
|
-
rightSection?: any;
|
|
63
|
-
/** Custom class names */
|
|
64
|
-
class?: string;
|
|
65
|
-
/** Whether to make the title visually hidden but accessible to screen readers */
|
|
66
|
-
titleSrOnly?: boolean;
|
|
67
|
-
/** Accessible label when no visible title is provided */
|
|
68
|
-
ariaLabel?: string;
|
|
69
|
-
/** Whether to render a 1px #ECECEC border around the modal content */
|
|
70
|
-
bordered?: boolean;
|
|
71
|
-
/** Optional description rendered below the title inside the header */
|
|
72
|
-
description?: string;
|
|
73
|
-
}
|
|
74
|
-
export type ModalSize = NonNullable<ModalProps['size']>;
|
|
75
|
-
export type ModalRadius = NonNullable<ModalProps['radius']>;
|
|
76
|
-
export type ModalOkVariant = NonNullable<ModalProps['okVariant']>;
|
|
77
|
-
export type ModalCancelVariant = NonNullable<ModalProps['cancelVariant']>;
|
|
78
|
-
export type ModalOkColor = NonNullable<ModalProps['okColor']>;
|
|
79
|
-
export type ModalCancelColor = NonNullable<ModalProps['cancelColor']>;
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { ComponentSize, ThemeColor } from '../../types/common';
|
|
2
|
-
type PaginationVariant = 'filled' | 'outline';
|
|
3
|
-
declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
4
|
-
modelValue?: number;
|
|
5
|
-
total: number;
|
|
6
|
-
siblings?: number;
|
|
7
|
-
boundaries?: number;
|
|
8
|
-
variant?: PaginationVariant;
|
|
9
|
-
color?: ThemeColor | string;
|
|
10
|
-
size?: ComponentSize;
|
|
11
|
-
disabled?: boolean;
|
|
12
|
-
withControls?: boolean;
|
|
13
|
-
withEdges?: boolean;
|
|
14
|
-
withPages?: boolean;
|
|
15
|
-
class?: string;
|
|
16
|
-
}>, {
|
|
17
|
-
modelValue: number;
|
|
18
|
-
siblings: number;
|
|
19
|
-
boundaries: number;
|
|
20
|
-
variant: string;
|
|
21
|
-
color: string;
|
|
22
|
-
size: string;
|
|
23
|
-
disabled: boolean;
|
|
24
|
-
withControls: boolean;
|
|
25
|
-
withEdges: boolean;
|
|
26
|
-
withPages: boolean;
|
|
27
|
-
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
28
|
-
"update:modelValue": (value: number) => void;
|
|
29
|
-
}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
30
|
-
modelValue?: number;
|
|
31
|
-
total: number;
|
|
32
|
-
siblings?: number;
|
|
33
|
-
boundaries?: number;
|
|
34
|
-
variant?: PaginationVariant;
|
|
35
|
-
color?: ThemeColor | string;
|
|
36
|
-
size?: ComponentSize;
|
|
37
|
-
disabled?: boolean;
|
|
38
|
-
withControls?: boolean;
|
|
39
|
-
withEdges?: boolean;
|
|
40
|
-
withPages?: boolean;
|
|
41
|
-
class?: string;
|
|
42
|
-
}>, {
|
|
43
|
-
modelValue: number;
|
|
44
|
-
siblings: number;
|
|
45
|
-
boundaries: number;
|
|
46
|
-
variant: string;
|
|
47
|
-
color: string;
|
|
48
|
-
size: string;
|
|
49
|
-
disabled: boolean;
|
|
50
|
-
withControls: boolean;
|
|
51
|
-
withEdges: boolean;
|
|
52
|
-
withPages: boolean;
|
|
53
|
-
}>>> & {
|
|
54
|
-
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
55
|
-
}, {
|
|
56
|
-
disabled: boolean;
|
|
57
|
-
variant: PaginationVariant;
|
|
58
|
-
color: ThemeColor | string;
|
|
59
|
-
size: ComponentSize;
|
|
60
|
-
modelValue: number;
|
|
61
|
-
siblings: number;
|
|
62
|
-
boundaries: number;
|
|
63
|
-
withControls: boolean;
|
|
64
|
-
withEdges: boolean;
|
|
65
|
-
withPages: boolean;
|
|
66
|
-
}>;
|
|
67
|
-
export default _default;
|
|
68
|
-
type __VLS_WithDefaults<P, D> = {
|
|
69
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
70
|
-
default: D[K];
|
|
71
|
-
}> : P[K];
|
|
72
|
-
};
|
|
73
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
74
|
-
type __VLS_TypePropsToOption<T> = {
|
|
75
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
76
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
77
|
-
} : {
|
|
78
|
-
type: import('vue').PropType<T[K]>;
|
|
79
|
-
required: true;
|
|
80
|
-
};
|
|
81
|
-
};
|
|
82
|
-
type __VLS_PrettifyLocal<T> = {
|
|
83
|
-
[K in keyof T]: T[K];
|
|
84
|
-
} & {};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { ComponentSize, ThemeColor } from '../../types/common';
|
|
2
|
-
export type PaginationVariant = 'filled' | 'outline';
|
|
3
|
-
export interface PaginationProps {
|
|
4
|
-
/** Total number of pages */
|
|
5
|
-
total: number;
|
|
6
|
-
/** Current active page */
|
|
7
|
-
modelValue?: number;
|
|
8
|
-
/** Number of siblings displayed on the left and right of the current page */
|
|
9
|
-
siblings?: number;
|
|
10
|
-
/** Number of elements visible at the beginning and end */
|
|
11
|
-
boundaries?: number;
|
|
12
|
-
/** Pagination variant */
|
|
13
|
-
variant?: PaginationVariant;
|
|
14
|
-
/** Pagination color */
|
|
15
|
-
color?: ThemeColor | string;
|
|
16
|
-
/** Pagination size */
|
|
17
|
-
size?: ComponentSize;
|
|
18
|
-
/** Whether to show the first/last controls */
|
|
19
|
-
withEdges?: boolean;
|
|
20
|
-
/** Whether to show the previous/next controls */
|
|
21
|
-
withControls?: boolean;
|
|
22
|
-
/** Whether to show the pages */
|
|
23
|
-
withPages?: boolean;
|
|
24
|
-
/** Whether the pagination is disabled */
|
|
25
|
-
disabled?: boolean;
|
|
26
|
-
/** Whether to automatically adjust text color based on background */
|
|
27
|
-
autoContrast?: boolean;
|
|
28
|
-
/** Custom class names */
|
|
29
|
-
class?: string;
|
|
30
|
-
/** Border radius */
|
|
31
|
-
radius?: string;
|
|
32
|
-
}
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { Size } from '../../utils/sizes';
|
|
2
|
-
import { Radius } from '../../utils/radius';
|
|
3
|
-
import { ColorVariant } from '../../utils/colors';
|
|
4
|
-
declare function __VLS_template(): {
|
|
5
|
-
slots: {
|
|
6
|
-
default?(_: {}): any;
|
|
7
|
-
};
|
|
8
|
-
refs: {};
|
|
9
|
-
attrs: Partial<{}>;
|
|
10
|
-
};
|
|
11
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
-
declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
13
|
-
/** Controls pill font-size and padding */
|
|
14
|
-
size?: Size;
|
|
15
|
-
/** Key of theme.radius or any valid CSS value to set border-radius */
|
|
16
|
-
radius?: Radius;
|
|
17
|
-
/** Determines whether the remove button should be displayed */
|
|
18
|
-
withRemoveButton?: boolean;
|
|
19
|
-
/** If pill is disabled it has higher contrast and remove button is hidden */
|
|
20
|
-
disabled?: boolean;
|
|
21
|
-
/** Color variant of the pill */
|
|
22
|
-
color: ColorVariant;
|
|
23
|
-
/** Style variant of the pill */
|
|
24
|
-
variant?: "default" | "contrast";
|
|
25
|
-
}>, {
|
|
26
|
-
size: string;
|
|
27
|
-
radius: string;
|
|
28
|
-
variant: string;
|
|
29
|
-
withRemoveButton: boolean;
|
|
30
|
-
disabled: boolean;
|
|
31
|
-
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
32
|
-
remove: () => void;
|
|
33
|
-
}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
34
|
-
/** Controls pill font-size and padding */
|
|
35
|
-
size?: Size;
|
|
36
|
-
/** Key of theme.radius or any valid CSS value to set border-radius */
|
|
37
|
-
radius?: Radius;
|
|
38
|
-
/** Determines whether the remove button should be displayed */
|
|
39
|
-
withRemoveButton?: boolean;
|
|
40
|
-
/** If pill is disabled it has higher contrast and remove button is hidden */
|
|
41
|
-
disabled?: boolean;
|
|
42
|
-
/** Color variant of the pill */
|
|
43
|
-
color: ColorVariant;
|
|
44
|
-
/** Style variant of the pill */
|
|
45
|
-
variant?: "default" | "contrast";
|
|
46
|
-
}>, {
|
|
47
|
-
size: string;
|
|
48
|
-
radius: string;
|
|
49
|
-
variant: string;
|
|
50
|
-
withRemoveButton: boolean;
|
|
51
|
-
disabled: boolean;
|
|
52
|
-
}>>> & {
|
|
53
|
-
onRemove?: (() => any) | undefined;
|
|
54
|
-
}, {
|
|
55
|
-
disabled: boolean;
|
|
56
|
-
variant: "default" | "contrast";
|
|
57
|
-
size: Size;
|
|
58
|
-
radius: Radius;
|
|
59
|
-
withRemoveButton: boolean;
|
|
60
|
-
}>;
|
|
61
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
62
|
-
export default _default;
|
|
63
|
-
type __VLS_WithDefaults<P, D> = {
|
|
64
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
65
|
-
default: D[K];
|
|
66
|
-
}> : P[K];
|
|
67
|
-
};
|
|
68
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
69
|
-
type __VLS_TypePropsToOption<T> = {
|
|
70
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
71
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
72
|
-
} : {
|
|
73
|
-
type: import('vue').PropType<T[K]>;
|
|
74
|
-
required: true;
|
|
75
|
-
};
|
|
76
|
-
};
|
|
77
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
78
|
-
new (): {
|
|
79
|
-
$slots: S;
|
|
80
|
-
};
|
|
81
|
-
};
|
|
82
|
-
type __VLS_PrettifyLocal<T> = {
|
|
83
|
-
[K in keyof T]: T[K];
|
|
84
|
-
} & {};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Size } from '../../utils/sizes';
|
|
2
|
-
import { Radius } from '../../utils/radius';
|
|
3
|
-
import { ColorVariant } from '../../utils/colors';
|
|
4
|
-
export type PillVariant = 'default' | 'contrast';
|
|
5
|
-
export interface PillProps {
|
|
6
|
-
/** Controls pill font-size and padding */
|
|
7
|
-
size?: Size;
|
|
8
|
-
/** Key of theme.radius or any valid CSS value to set border-radius */
|
|
9
|
-
radius?: Radius;
|
|
10
|
-
/** Determines whether the remove button should be displayed */
|
|
11
|
-
withRemoveButton?: boolean;
|
|
12
|
-
/** If pill is disabled it has higher contrast and remove button is hidden */
|
|
13
|
-
disabled?: boolean;
|
|
14
|
-
/** Color variant of the pill */
|
|
15
|
-
color: ColorVariant;
|
|
16
|
-
/** Style variant of the pill */
|
|
17
|
-
variant?: PillVariant;
|
|
18
|
-
}
|
|
19
|
-
export interface PillEmits {
|
|
20
|
-
(e: 'remove'): void;
|
|
21
|
-
}
|
|
@@ -1,197 +0,0 @@
|
|
|
1
|
-
import { ColorVariant } from '../../utils/colors';
|
|
2
|
-
import { PopoverPlacement } from './types';
|
|
3
|
-
interface Props {
|
|
4
|
-
/** Whether the popover is open */
|
|
5
|
-
open?: boolean;
|
|
6
|
-
/** The default open state when in uncontrolled mode */
|
|
7
|
-
defaultOpen?: boolean;
|
|
8
|
-
/** The placement of the popover */
|
|
9
|
-
placement?: PopoverPlacement;
|
|
10
|
-
/** The variant of the popover */
|
|
11
|
-
variant?: "shadow" | "outline" | "color";
|
|
12
|
-
/** The color of the popover (for color variant) */
|
|
13
|
-
color?: ColorVariant | string;
|
|
14
|
-
/** The size of the popover */
|
|
15
|
-
size?: "xs" | "sm" | "md" | "lg" | "xl";
|
|
16
|
-
/** The border radius of the popover */
|
|
17
|
-
radius?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "full";
|
|
18
|
-
/** Whether to show a pin/arrow pointing to the target */
|
|
19
|
-
showPin?: boolean;
|
|
20
|
-
/** Whether to hide the header */
|
|
21
|
-
hideHeader?: boolean;
|
|
22
|
-
/** Whether to show a close icon in the header */
|
|
23
|
-
showCloseIcon?: boolean;
|
|
24
|
-
/** Whether to hide the footer */
|
|
25
|
-
hideFooter?: boolean;
|
|
26
|
-
/** Whether to close the popover when clicking outside */
|
|
27
|
-
closeOnClickOutside?: boolean;
|
|
28
|
-
/** Whether to close the popover when pressing escape */
|
|
29
|
-
closeOnEscape?: boolean;
|
|
30
|
-
/** Whether to close the popover when clicking inside */
|
|
31
|
-
closeOnClick?: boolean;
|
|
32
|
-
/** The title of the popover */
|
|
33
|
-
title?: string;
|
|
34
|
-
/** The content of the popover */
|
|
35
|
-
content?: string;
|
|
36
|
-
/** The z-index of the popover */
|
|
37
|
-
zIndex?: number;
|
|
38
|
-
/** The trigger mode for the popover */
|
|
39
|
-
trigger?: "click" | "hover" | "manual";
|
|
40
|
-
/** Whether to show a backdrop */
|
|
41
|
-
backdrop?: boolean | "transparent";
|
|
42
|
-
/** The offset distance from the target */
|
|
43
|
-
offsetDistance?: number;
|
|
44
|
-
/** Whether the popover is disabled */
|
|
45
|
-
disabled?: boolean;
|
|
46
|
-
/** Custom classes for the popover */
|
|
47
|
-
popoverClass?: string;
|
|
48
|
-
/** Custom classes for the header */
|
|
49
|
-
headerClass?: string;
|
|
50
|
-
/** Custom classes for the body */
|
|
51
|
-
bodyClass?: string;
|
|
52
|
-
/** Custom classes for the footer */
|
|
53
|
-
footerClass?: string;
|
|
54
|
-
/** Whether to trap focus within the popover */
|
|
55
|
-
trapFocus?: boolean;
|
|
56
|
-
/** The ID of the popover */
|
|
57
|
-
id?: string;
|
|
58
|
-
/** Tailwind shadow key override (e.g., 'sm' | 'md' | 'lg' | 'xl' | '2xl' | 'none'). When set, replaces the default Figma shadow on the shadow/color variants. */
|
|
59
|
-
shadow?: string;
|
|
60
|
-
/** The width of the popover */
|
|
61
|
-
width?: number | string;
|
|
62
|
-
}
|
|
63
|
-
declare function __VLS_template(): {
|
|
64
|
-
slots: {
|
|
65
|
-
trigger?(_: {}): any;
|
|
66
|
-
header?(_: {}): any;
|
|
67
|
-
default?(_: {}): any;
|
|
68
|
-
footer?(_: {}): any;
|
|
69
|
-
};
|
|
70
|
-
refs: {
|
|
71
|
-
triggerRef: HTMLDivElement;
|
|
72
|
-
popoverRef: HTMLDivElement;
|
|
73
|
-
arrowRef: HTMLDivElement;
|
|
74
|
-
};
|
|
75
|
-
attrs: Partial<{}>;
|
|
76
|
-
};
|
|
77
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
78
|
-
declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
|
|
79
|
-
open: undefined;
|
|
80
|
-
defaultOpen: boolean;
|
|
81
|
-
placement: string;
|
|
82
|
-
variant: string;
|
|
83
|
-
color: string;
|
|
84
|
-
size: string;
|
|
85
|
-
radius: string;
|
|
86
|
-
showPin: boolean;
|
|
87
|
-
hideHeader: boolean;
|
|
88
|
-
showCloseIcon: boolean;
|
|
89
|
-
hideFooter: boolean;
|
|
90
|
-
closeOnClickOutside: boolean;
|
|
91
|
-
closeOnEscape: boolean;
|
|
92
|
-
closeOnClick: boolean;
|
|
93
|
-
title: string;
|
|
94
|
-
content: string;
|
|
95
|
-
zIndex: number;
|
|
96
|
-
trigger: string;
|
|
97
|
-
backdrop: boolean;
|
|
98
|
-
offsetDistance: number;
|
|
99
|
-
disabled: boolean;
|
|
100
|
-
popoverClass: string;
|
|
101
|
-
headerClass: string;
|
|
102
|
-
bodyClass: string;
|
|
103
|
-
footerClass: string;
|
|
104
|
-
trapFocus: boolean;
|
|
105
|
-
id: () => string;
|
|
106
|
-
shadow: undefined;
|
|
107
|
-
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
108
|
-
"update:open": (value: boolean) => void;
|
|
109
|
-
open: () => void;
|
|
110
|
-
close: (trigger: string) => void;
|
|
111
|
-
}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
|
|
112
|
-
open: undefined;
|
|
113
|
-
defaultOpen: boolean;
|
|
114
|
-
placement: string;
|
|
115
|
-
variant: string;
|
|
116
|
-
color: string;
|
|
117
|
-
size: string;
|
|
118
|
-
radius: string;
|
|
119
|
-
showPin: boolean;
|
|
120
|
-
hideHeader: boolean;
|
|
121
|
-
showCloseIcon: boolean;
|
|
122
|
-
hideFooter: boolean;
|
|
123
|
-
closeOnClickOutside: boolean;
|
|
124
|
-
closeOnEscape: boolean;
|
|
125
|
-
closeOnClick: boolean;
|
|
126
|
-
title: string;
|
|
127
|
-
content: string;
|
|
128
|
-
zIndex: number;
|
|
129
|
-
trigger: string;
|
|
130
|
-
backdrop: boolean;
|
|
131
|
-
offsetDistance: number;
|
|
132
|
-
disabled: boolean;
|
|
133
|
-
popoverClass: string;
|
|
134
|
-
headerClass: string;
|
|
135
|
-
bodyClass: string;
|
|
136
|
-
footerClass: string;
|
|
137
|
-
trapFocus: boolean;
|
|
138
|
-
id: () => string;
|
|
139
|
-
shadow: undefined;
|
|
140
|
-
}>>> & {
|
|
141
|
-
onClose?: ((trigger: string) => any) | undefined;
|
|
142
|
-
onOpen?: (() => any) | undefined;
|
|
143
|
-
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
144
|
-
}, {
|
|
145
|
-
disabled: boolean;
|
|
146
|
-
variant: "shadow" | "outline" | "color";
|
|
147
|
-
color: ColorVariant | string;
|
|
148
|
-
size: "xs" | "sm" | "md" | "lg" | "xl";
|
|
149
|
-
radius: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "full";
|
|
150
|
-
title: string;
|
|
151
|
-
id: string;
|
|
152
|
-
open: boolean;
|
|
153
|
-
content: string;
|
|
154
|
-
offsetDistance: number;
|
|
155
|
-
zIndex: number;
|
|
156
|
-
placement: PopoverPlacement;
|
|
157
|
-
trapFocus: boolean;
|
|
158
|
-
headerClass: string;
|
|
159
|
-
bodyClass: string;
|
|
160
|
-
footerClass: string;
|
|
161
|
-
trigger: "click" | "hover" | "manual";
|
|
162
|
-
hideHeader: boolean;
|
|
163
|
-
hideFooter: boolean;
|
|
164
|
-
backdrop: boolean | "transparent";
|
|
165
|
-
shadow: string;
|
|
166
|
-
defaultOpen: boolean;
|
|
167
|
-
showPin: boolean;
|
|
168
|
-
showCloseIcon: boolean;
|
|
169
|
-
closeOnClickOutside: boolean;
|
|
170
|
-
closeOnEscape: boolean;
|
|
171
|
-
closeOnClick: boolean;
|
|
172
|
-
popoverClass: string;
|
|
173
|
-
}>;
|
|
174
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
175
|
-
export default _default;
|
|
176
|
-
type __VLS_WithDefaults<P, D> = {
|
|
177
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
178
|
-
default: D[K];
|
|
179
|
-
}> : P[K];
|
|
180
|
-
};
|
|
181
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
182
|
-
type __VLS_TypePropsToOption<T> = {
|
|
183
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
184
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
185
|
-
} : {
|
|
186
|
-
type: import('vue').PropType<T[K]>;
|
|
187
|
-
required: true;
|
|
188
|
-
};
|
|
189
|
-
};
|
|
190
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
191
|
-
new (): {
|
|
192
|
-
$slots: S;
|
|
193
|
-
};
|
|
194
|
-
};
|
|
195
|
-
type __VLS_PrettifyLocal<T> = {
|
|
196
|
-
[K in keyof T]: T[K];
|
|
197
|
-
} & {};
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { ComponentSize, ComponentRadius, ThemeColor } from '../../types/common';
|
|
2
|
-
export type PopoverPlacement = 'top' | 'bottom' | 'left' | 'right' | 'auto' | 'top-start' | 'bottom-start' | 'top-end' | 'bottom-end' | 'left-start' | 'right-start';
|
|
3
|
-
export type PopoverVariant = 'outline' | 'shadow' | 'color';
|
|
4
|
-
export type PopoverTrigger = 'click' | 'hover' | 'manual';
|
|
5
|
-
export interface PopoverProps {
|
|
6
|
-
/** Whether the popover is open */
|
|
7
|
-
open?: boolean;
|
|
8
|
-
/** The default open state when in uncontrolled mode */
|
|
9
|
-
defaultOpen?: boolean;
|
|
10
|
-
/** The placement of the popover */
|
|
11
|
-
placement?: PopoverPlacement;
|
|
12
|
-
/** The variant of the popover */
|
|
13
|
-
variant?: PopoverVariant;
|
|
14
|
-
/** The color of the popover (for color variant) */
|
|
15
|
-
color?: ThemeColor | string;
|
|
16
|
-
/** The size of the popover */
|
|
17
|
-
size?: ComponentSize;
|
|
18
|
-
/** The border radius of the popover */
|
|
19
|
-
radius?: ComponentRadius;
|
|
20
|
-
/** Whether to show a pin/arrow pointing to the target */
|
|
21
|
-
showPin?: boolean;
|
|
22
|
-
/** Whether to hide the header */
|
|
23
|
-
hideHeader?: boolean;
|
|
24
|
-
/** Whether to show a close icon in the header */
|
|
25
|
-
showCloseIcon?: boolean;
|
|
26
|
-
/** Whether to hide the footer */
|
|
27
|
-
hideFooter?: boolean;
|
|
28
|
-
/** Whether to close the popover when clicking outside */
|
|
29
|
-
closeOnClickOutside?: boolean;
|
|
30
|
-
/** Whether to close the popover when pressing escape */
|
|
31
|
-
closeOnEscape?: boolean;
|
|
32
|
-
/** Whether to close the popover when clicking inside */
|
|
33
|
-
closeOnClick?: boolean;
|
|
34
|
-
/** The title of the popover */
|
|
35
|
-
title?: string;
|
|
36
|
-
/** The content of the popover */
|
|
37
|
-
content?: string;
|
|
38
|
-
/** The z-index of the popover */
|
|
39
|
-
zIndex?: number;
|
|
40
|
-
/** The trigger mode for the popover */
|
|
41
|
-
trigger?: PopoverTrigger;
|
|
42
|
-
/** Whether to show a backdrop */
|
|
43
|
-
backdrop?: boolean | 'transparent';
|
|
44
|
-
/** The offset distance from the target */
|
|
45
|
-
offsetDistance?: number;
|
|
46
|
-
/** Whether the popover is disabled */
|
|
47
|
-
disabled?: boolean;
|
|
48
|
-
/** Custom classes for the popover */
|
|
49
|
-
popoverClass?: string;
|
|
50
|
-
/** Custom classes for the header */
|
|
51
|
-
headerClass?: string;
|
|
52
|
-
/** Custom classes for the body */
|
|
53
|
-
bodyClass?: string;
|
|
54
|
-
/** Custom classes for the footer */
|
|
55
|
-
footerClass?: string;
|
|
56
|
-
/** Whether to trap focus within the popover */
|
|
57
|
-
trapFocus?: boolean;
|
|
58
|
-
/** The ID of the popover */
|
|
59
|
-
id?: string;
|
|
60
|
-
/** Tailwind shadow key override (e.g., 'sm' | 'md' | 'lg' | 'xl' | '2xl' | 'none'). When set, replaces the default Figma shadow on the shadow/color variants. */
|
|
61
|
-
shadow?: string;
|
|
62
|
-
/** The width of the popover */
|
|
63
|
-
width?: number | string;
|
|
64
|
-
}
|
|
65
|
-
export type PopoverColor = NonNullable<PopoverProps['color']>;
|
|
66
|
-
export type PopoverSize = NonNullable<PopoverProps['size']>;
|
|
67
|
-
export type PopoverRadius = NonNullable<PopoverProps['radius']>;
|