@jasmine-ui/vue 0.6.0
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/LICENSE +21 -0
- package/README.md +77 -0
- package/dist/components/accordion/accordion.composable.d.ts +85 -0
- package/dist/components/accordion/accordion.d.ts +112 -0
- package/dist/components/accordion/accordion.props.d.ts +44 -0
- package/dist/components/accordion/accordion.style.d.ts +202 -0
- package/dist/components/accordion/index.d.ts +1 -0
- package/dist/components/alert/alert.composable.d.ts +87 -0
- package/dist/components/alert/alert.d.ts +89 -0
- package/dist/components/alert/alert.props.d.ts +30 -0
- package/dist/components/alert/alert.style.d.ts +154 -0
- package/dist/components/alert/index.d.ts +1 -0
- package/dist/components/avatar/avatar.composable.d.ts +79 -0
- package/dist/components/avatar/avatar.d.ts +111 -0
- package/dist/components/avatar/avatar.props.d.ts +50 -0
- package/dist/components/avatar/avatar.style.d.ts +158 -0
- package/dist/components/avatar/index.d.ts +1 -0
- package/dist/components/badge/badge.composable.d.ts +58 -0
- package/dist/components/badge/badge.d.ts +85 -0
- package/dist/components/badge/badge.props.d.ts +35 -0
- package/dist/components/badge/badge.style.d.ts +146 -0
- package/dist/components/badge/index.d.ts +1 -0
- package/dist/components/button/button.composable.d.ts +14 -0
- package/dist/components/button/button.d.ts +96 -0
- package/dist/components/button/button.props.d.ts +36 -0
- package/dist/components/button/button.style.d.ts +88 -0
- package/dist/components/button/index.d.ts +1 -0
- package/dist/components/checkbox/checkbox.composable.d.ts +56 -0
- package/dist/components/checkbox/checkbox.d.ts +54 -0
- package/dist/components/checkbox/checkbox.props.d.ts +22 -0
- package/dist/components/checkbox/checkbox.style.d.ts +106 -0
- package/dist/components/checkbox/index.d.ts +1 -0
- package/dist/components/chip/chip.composable.d.ts +51 -0
- package/dist/components/chip/chip.d.ts +96 -0
- package/dist/components/chip/chip.props.d.ts +35 -0
- package/dist/components/chip/chip.style.d.ts +184 -0
- package/dist/components/chip/index.d.ts +1 -0
- package/dist/components/code-block/code-block.composable.d.ts +16 -0
- package/dist/components/code-block/code-block.d.ts +105 -0
- package/dist/components/code-block/code-block.props.d.ts +51 -0
- package/dist/components/code-block/code-block.style.d.ts +113 -0
- package/dist/components/code-block/index.d.ts +1 -0
- package/dist/components/combobox/combobox.composable.d.ts +136 -0
- package/dist/components/combobox/combobox.d.ts +127 -0
- package/dist/components/combobox/combobox.props.d.ts +52 -0
- package/dist/components/combobox/combobox.style.d.ts +202 -0
- package/dist/components/combobox/index.d.ts +1 -0
- package/dist/components/divider/divider.composable.d.ts +13 -0
- package/dist/components/divider/divider.d.ts +47 -0
- package/dist/components/divider/divider.props.d.ts +15 -0
- package/dist/components/divider/divider.style.d.ts +43 -0
- package/dist/components/divider/index.d.ts +1 -0
- package/dist/components/drawer/drawer.composable.d.ts +82 -0
- package/dist/components/drawer/drawer.d.ts +256 -0
- package/dist/components/drawer/drawer.props.d.ts +34 -0
- package/dist/components/drawer/drawer.style.d.ts +97 -0
- package/dist/components/drawer/index.d.ts +1 -0
- package/dist/components/dropdown/dropdown.d.ts +102 -0
- package/dist/components/dropdown/dropdown.props.d.ts +36 -0
- package/dist/components/dropdown/index.d.ts +1 -0
- package/dist/components/input/index.d.ts +1 -0
- package/dist/components/input/input.composable.d.ts +164 -0
- package/dist/components/input/input.d.ts +213 -0
- package/dist/components/input/input.props.d.ts +83 -0
- package/dist/components/input/input.style.d.ts +187 -0
- package/dist/components/kbd/index.d.ts +1 -0
- package/dist/components/kbd/kbd.composable.d.ts +40 -0
- package/dist/components/kbd/kbd.d.ts +46 -0
- package/dist/components/kbd/kbd.props.d.ts +20 -0
- package/dist/components/kbd/kbd.style.d.ts +59 -0
- package/dist/components/list/index.d.ts +3 -0
- package/dist/components/list/list.composable.d.ts +40 -0
- package/dist/components/list/list.d.ts +148 -0
- package/dist/components/list/list.props.d.ts +40 -0
- package/dist/components/list/list.style.d.ts +52 -0
- package/dist/components/list-item/index.d.ts +1 -0
- package/dist/components/list-item/list-item.composable.d.ts +91 -0
- package/dist/components/list-item/list-item.d.ts +115 -0
- package/dist/components/list-item/list-item.props.d.ts +43 -0
- package/dist/components/list-item/list-item.style.d.ts +139 -0
- package/dist/components/modal/index.d.ts +1 -0
- package/dist/components/modal/modal.composable.d.ts +114 -0
- package/dist/components/modal/modal.d.ts +274 -0
- package/dist/components/modal/modal.props.d.ts +44 -0
- package/dist/components/modal/modal.style.d.ts +190 -0
- package/dist/components/pagination/index.d.ts +1 -0
- package/dist/components/pagination/pagination.composable.d.ts +87 -0
- package/dist/components/pagination/pagination.d.ts +150 -0
- package/dist/components/pagination/pagination.props.d.ts +42 -0
- package/dist/components/pagination/pagination.style.d.ts +196 -0
- package/dist/components/popover/index.d.ts +1 -0
- package/dist/components/popover/popover.composable.d.ts +42 -0
- package/dist/components/popover/popover.d.ts +142 -0
- package/dist/components/popover/popover.props.d.ts +51 -0
- package/dist/components/popover/popover.style.d.ts +28 -0
- package/dist/components/popover-list/index.d.ts +1 -0
- package/dist/components/popover-list/popover-list.d.ts +158 -0
- package/dist/components/popover-list/popover-list.props.d.ts +73 -0
- package/dist/components/radio-group/index.d.ts +2 -0
- package/dist/components/radio-group/radio-group.composable.d.ts +13 -0
- package/dist/components/radio-group/radio-group.d.ts +80 -0
- package/dist/components/radio-group/radio-group.props.d.ts +28 -0
- package/dist/components/radio-group/radio-group.style.d.ts +16 -0
- package/dist/components/radio-group/radio.composable.d.ts +45 -0
- package/dist/components/radio-group/radio.d.ts +64 -0
- package/dist/components/radio-group/radio.props.d.ts +23 -0
- package/dist/components/radio-group/radio.style.d.ts +103 -0
- package/dist/components/select/index.d.ts +1 -0
- package/dist/components/select/select.composable.d.ts +115 -0
- package/dist/components/select/select.d.ts +123 -0
- package/dist/components/select/select.props.d.ts +52 -0
- package/dist/components/select/select.style.d.ts +199 -0
- package/dist/components/spinner/index.d.ts +1 -0
- package/dist/components/spinner/spinner.composable.d.ts +29 -0
- package/dist/components/spinner/spinner.d.ts +23 -0
- package/dist/components/spinner/spinner.props.d.ts +12 -0
- package/dist/components/spinner/spinner.style.d.ts +97 -0
- package/dist/components/switch/index.d.ts +1 -0
- package/dist/components/switch/switch.composable.d.ts +76 -0
- package/dist/components/switch/switch.d.ts +100 -0
- package/dist/components/switch/switch.props.d.ts +37 -0
- package/dist/components/switch/switch.style.d.ts +196 -0
- package/dist/components/table/index.d.ts +1 -0
- package/dist/components/table/table.composable.d.ts +162 -0
- package/dist/components/table/table.d.ts +162 -0
- package/dist/components/table/table.props.d.ts +56 -0
- package/dist/components/table/table.style.d.ts +193 -0
- package/dist/components/tabs/index.d.ts +1 -0
- package/dist/components/tabs/tabs.composable.d.ts +93 -0
- package/dist/components/tabs/tabs.d.ts +121 -0
- package/dist/components/tabs/tabs.props.d.ts +48 -0
- package/dist/components/tabs/tabs.style.d.ts +253 -0
- package/dist/components/text/index.d.ts +1 -0
- package/dist/components/text/text.composable.d.ts +12 -0
- package/dist/components/text/text.d.ts +56 -0
- package/dist/components/text/text.props.d.ts +19 -0
- package/dist/components/text/text.style.d.ts +83 -0
- package/dist/components/textarea/index.d.ts +1 -0
- package/dist/components/textarea/textarea.composable.d.ts +149 -0
- package/dist/components/textarea/textarea.d.ts +250 -0
- package/dist/components/textarea/textarea.props.d.ts +99 -0
- package/dist/components/textarea/textarea.style.d.ts +184 -0
- package/dist/components/toast/index.d.ts +2 -0
- package/dist/components/toast/toast-provider.d.ts +47 -0
- package/dist/components/toast/toast.composable.d.ts +16 -0
- package/dist/components/toast/toast.props.d.ts +14 -0
- package/dist/components/toast/toast.provider.d.ts +48 -0
- package/dist/components/toast/toast.style.d.ts +76 -0
- package/dist/components/tooltip/index.d.ts +1 -0
- package/dist/components/tooltip/tooltip.composable.d.ts +85 -0
- package/dist/components/tooltip/tooltip.d.ts +119 -0
- package/dist/components/tooltip/tooltip.props.d.ts +53 -0
- package/dist/components/tooltip/tooltip.style.d.ts +32 -0
- package/dist/composables/dismiss-shake.composable.d.ts +13 -0
- package/dist/css-BRq03xhW.js +3 -0
- package/dist/css-BT3ulMUY.js +2 -0
- package/dist/html-CJhGHSsv.js +2 -0
- package/dist/html-DM_Fd1As.js +10 -0
- package/dist/index.d.ts +29 -0
- package/dist/jasmine-ui.css +3 -0
- package/dist/jasmine-ui.js +11858 -0
- package/dist/javascript-CkfBz3il.js +3 -0
- package/dist/javascript-CwUFKmKO.js +2 -0
- package/dist/json-BPXqV38U.js +3 -0
- package/dist/json-DHmMgjNi.js +2 -0
- package/dist/jsonc-DVpPCz25.js +3 -0
- package/dist/jsx-CHO6wZNT.js +3 -0
- package/dist/main.d.ts +1 -0
- package/dist/rust-qf9jV5qU.js +3 -0
- package/dist/styles/shiki-theme.d.ts +11 -0
- package/dist/types/common.d.ts +89 -0
- package/dist/types/shared-props.d.ts +142 -0
- package/dist/typescript-Cil9iWXl.js +3 -0
- package/dist/typescript-CoNvJdtl.js +2 -0
- package/dist/utils/shiki.d.ts +12 -0
- package/dist/vue-Bgv7yiBd.js +21 -0
- package/package.json +133 -0
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
export declare const textareaVariants: import('tailwind-variants').TVReturnType<{
|
|
2
|
+
variant: {
|
|
3
|
+
outline: {
|
|
4
|
+
container: string;
|
|
5
|
+
};
|
|
6
|
+
filled: {
|
|
7
|
+
container: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
size: {
|
|
11
|
+
sm: {
|
|
12
|
+
container: string;
|
|
13
|
+
};
|
|
14
|
+
md: {
|
|
15
|
+
container: string;
|
|
16
|
+
};
|
|
17
|
+
lg: {
|
|
18
|
+
container: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
radius: {
|
|
22
|
+
none: {
|
|
23
|
+
container: string;
|
|
24
|
+
};
|
|
25
|
+
sm: {
|
|
26
|
+
container: string;
|
|
27
|
+
};
|
|
28
|
+
md: {
|
|
29
|
+
container: string;
|
|
30
|
+
};
|
|
31
|
+
lg: {
|
|
32
|
+
container: string;
|
|
33
|
+
};
|
|
34
|
+
full: {
|
|
35
|
+
container: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
validationState: {
|
|
39
|
+
error: {
|
|
40
|
+
container: string;
|
|
41
|
+
message: string;
|
|
42
|
+
};
|
|
43
|
+
success: {
|
|
44
|
+
container: string;
|
|
45
|
+
message: string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
isLabelFloating: {
|
|
49
|
+
true: {
|
|
50
|
+
label: string;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
}, {
|
|
54
|
+
wrapper: string;
|
|
55
|
+
container: string;
|
|
56
|
+
start: string;
|
|
57
|
+
label: string;
|
|
58
|
+
native: string;
|
|
59
|
+
clear: string;
|
|
60
|
+
end: string;
|
|
61
|
+
message: string;
|
|
62
|
+
}, undefined, {
|
|
63
|
+
variant: {
|
|
64
|
+
outline: {
|
|
65
|
+
container: string;
|
|
66
|
+
};
|
|
67
|
+
filled: {
|
|
68
|
+
container: string;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
size: {
|
|
72
|
+
sm: {
|
|
73
|
+
container: string;
|
|
74
|
+
};
|
|
75
|
+
md: {
|
|
76
|
+
container: string;
|
|
77
|
+
};
|
|
78
|
+
lg: {
|
|
79
|
+
container: string;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
radius: {
|
|
83
|
+
none: {
|
|
84
|
+
container: string;
|
|
85
|
+
};
|
|
86
|
+
sm: {
|
|
87
|
+
container: string;
|
|
88
|
+
};
|
|
89
|
+
md: {
|
|
90
|
+
container: string;
|
|
91
|
+
};
|
|
92
|
+
lg: {
|
|
93
|
+
container: string;
|
|
94
|
+
};
|
|
95
|
+
full: {
|
|
96
|
+
container: string;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
validationState: {
|
|
100
|
+
error: {
|
|
101
|
+
container: string;
|
|
102
|
+
message: string;
|
|
103
|
+
};
|
|
104
|
+
success: {
|
|
105
|
+
container: string;
|
|
106
|
+
message: string;
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
isLabelFloating: {
|
|
110
|
+
true: {
|
|
111
|
+
label: string;
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
}, {
|
|
115
|
+
wrapper: string;
|
|
116
|
+
container: string;
|
|
117
|
+
start: string;
|
|
118
|
+
label: string;
|
|
119
|
+
native: string;
|
|
120
|
+
clear: string;
|
|
121
|
+
end: string;
|
|
122
|
+
message: string;
|
|
123
|
+
}, import('tailwind-variants').TVReturnType<{
|
|
124
|
+
variant: {
|
|
125
|
+
outline: {
|
|
126
|
+
container: string;
|
|
127
|
+
};
|
|
128
|
+
filled: {
|
|
129
|
+
container: string;
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
size: {
|
|
133
|
+
sm: {
|
|
134
|
+
container: string;
|
|
135
|
+
};
|
|
136
|
+
md: {
|
|
137
|
+
container: string;
|
|
138
|
+
};
|
|
139
|
+
lg: {
|
|
140
|
+
container: string;
|
|
141
|
+
};
|
|
142
|
+
};
|
|
143
|
+
radius: {
|
|
144
|
+
none: {
|
|
145
|
+
container: string;
|
|
146
|
+
};
|
|
147
|
+
sm: {
|
|
148
|
+
container: string;
|
|
149
|
+
};
|
|
150
|
+
md: {
|
|
151
|
+
container: string;
|
|
152
|
+
};
|
|
153
|
+
lg: {
|
|
154
|
+
container: string;
|
|
155
|
+
};
|
|
156
|
+
full: {
|
|
157
|
+
container: string;
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
validationState: {
|
|
161
|
+
error: {
|
|
162
|
+
container: string;
|
|
163
|
+
message: string;
|
|
164
|
+
};
|
|
165
|
+
success: {
|
|
166
|
+
container: string;
|
|
167
|
+
message: string;
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
isLabelFloating: {
|
|
171
|
+
true: {
|
|
172
|
+
label: string;
|
|
173
|
+
};
|
|
174
|
+
};
|
|
175
|
+
}, {
|
|
176
|
+
wrapper: string;
|
|
177
|
+
container: string;
|
|
178
|
+
start: string;
|
|
179
|
+
label: string;
|
|
180
|
+
native: string;
|
|
181
|
+
clear: string;
|
|
182
|
+
end: string;
|
|
183
|
+
message: string;
|
|
184
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
3
|
+
slots: {
|
|
4
|
+
default?(_: {}): any;
|
|
5
|
+
};
|
|
6
|
+
refs: {};
|
|
7
|
+
rootEl: any;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
11
|
+
position: {
|
|
12
|
+
type: import('vue').PropType<import('../..').ToastPosition>;
|
|
13
|
+
default: "bottom-right";
|
|
14
|
+
};
|
|
15
|
+
duration: {
|
|
16
|
+
type: NumberConstructor;
|
|
17
|
+
default: number;
|
|
18
|
+
};
|
|
19
|
+
max: {
|
|
20
|
+
type: NumberConstructor;
|
|
21
|
+
default: number;
|
|
22
|
+
};
|
|
23
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
24
|
+
position: {
|
|
25
|
+
type: import('vue').PropType<import('../..').ToastPosition>;
|
|
26
|
+
default: "bottom-right";
|
|
27
|
+
};
|
|
28
|
+
duration: {
|
|
29
|
+
type: NumberConstructor;
|
|
30
|
+
default: number;
|
|
31
|
+
};
|
|
32
|
+
max: {
|
|
33
|
+
type: NumberConstructor;
|
|
34
|
+
default: number;
|
|
35
|
+
};
|
|
36
|
+
}>> & Readonly<{}>, {
|
|
37
|
+
position: import('../..').ToastPosition;
|
|
38
|
+
duration: number;
|
|
39
|
+
max: number;
|
|
40
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
41
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
42
|
+
export default _default;
|
|
43
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
44
|
+
new (): {
|
|
45
|
+
$slots: S;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ToastOptions } from './toast.provider';
|
|
2
|
+
type ShorthandOptions = Partial<Omit<ToastOptions, 'title' | 'color'>>;
|
|
3
|
+
/**
|
|
4
|
+
* Composable that provides toast notification methods.
|
|
5
|
+
* Must be used inside a ToastProvider.
|
|
6
|
+
*/
|
|
7
|
+
export declare const useToast: () => {
|
|
8
|
+
create: (options: ToastOptions) => string;
|
|
9
|
+
success: (title: string, options?: ShorthandOptions) => string;
|
|
10
|
+
danger: (title: string, options?: ShorthandOptions) => string;
|
|
11
|
+
warning: (title: string, options?: ShorthandOptions) => string;
|
|
12
|
+
info: (title: string, options?: ShorthandOptions) => string;
|
|
13
|
+
dismiss: (id: string) => void;
|
|
14
|
+
dismissAll: () => void;
|
|
15
|
+
};
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const toastProviderProps: {
|
|
2
|
+
position: {
|
|
3
|
+
type: import('vue').PropType<import('../..').ToastPosition>;
|
|
4
|
+
default: "bottom-right";
|
|
5
|
+
};
|
|
6
|
+
duration: {
|
|
7
|
+
type: NumberConstructor;
|
|
8
|
+
default: number;
|
|
9
|
+
};
|
|
10
|
+
max: {
|
|
11
|
+
type: NumberConstructor;
|
|
12
|
+
default: number;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { InjectionKey } from 'vue';
|
|
2
|
+
import { AlertVariant, Color } from '../../types/common';
|
|
3
|
+
/** Action button configuration for a toast */
|
|
4
|
+
export interface ToastAction {
|
|
5
|
+
label: string;
|
|
6
|
+
onClick: () => void;
|
|
7
|
+
}
|
|
8
|
+
/** Options passed to toast.create() */
|
|
9
|
+
export interface ToastOptions {
|
|
10
|
+
title: string;
|
|
11
|
+
description?: string;
|
|
12
|
+
color?: Color;
|
|
13
|
+
variant?: AlertVariant;
|
|
14
|
+
duration?: number;
|
|
15
|
+
isClosable?: boolean;
|
|
16
|
+
action?: ToastAction;
|
|
17
|
+
}
|
|
18
|
+
/** Internal resolved options with defaults applied */
|
|
19
|
+
export interface ResolvedToastOptions {
|
|
20
|
+
title: string;
|
|
21
|
+
description?: string;
|
|
22
|
+
color: Color;
|
|
23
|
+
variant: AlertVariant;
|
|
24
|
+
duration: number;
|
|
25
|
+
isClosable: boolean;
|
|
26
|
+
action?: ToastAction;
|
|
27
|
+
}
|
|
28
|
+
/** Internal state for a single toast */
|
|
29
|
+
export interface ToastState {
|
|
30
|
+
id: string;
|
|
31
|
+
options: ResolvedToastOptions;
|
|
32
|
+
remaining: number;
|
|
33
|
+
pausedAt: number | null;
|
|
34
|
+
startedAt: number;
|
|
35
|
+
timeoutId: ReturnType<typeof setTimeout> | null;
|
|
36
|
+
}
|
|
37
|
+
/** Methods provided by ToastProvider to descendants */
|
|
38
|
+
export interface ToastContext {
|
|
39
|
+
add: (options: ToastOptions) => string;
|
|
40
|
+
dismiss: (id: string) => void;
|
|
41
|
+
dismissAll: () => void;
|
|
42
|
+
defaultDuration: number;
|
|
43
|
+
}
|
|
44
|
+
/** Injection key for ToastProvider */
|
|
45
|
+
export declare const TOAST_INJECTION_KEY: InjectionKey<ToastContext>;
|
|
46
|
+
export declare const generateToastId: () => string;
|
|
47
|
+
/** Resets counter -- for testing only */
|
|
48
|
+
export declare const resetToastCounter: () => void;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
export declare const toastContainerVariants: import('tailwind-variants').TVReturnType<{
|
|
2
|
+
position: {
|
|
3
|
+
'top-left': {
|
|
4
|
+
container: string;
|
|
5
|
+
};
|
|
6
|
+
'top-right': {
|
|
7
|
+
container: string;
|
|
8
|
+
};
|
|
9
|
+
'bottom-left': {
|
|
10
|
+
container: string;
|
|
11
|
+
};
|
|
12
|
+
'bottom-right': {
|
|
13
|
+
container: string;
|
|
14
|
+
};
|
|
15
|
+
'top-center': {
|
|
16
|
+
container: string;
|
|
17
|
+
};
|
|
18
|
+
'bottom-center': {
|
|
19
|
+
container: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
}, {
|
|
23
|
+
container: string;
|
|
24
|
+
wrapper: string;
|
|
25
|
+
progress: string;
|
|
26
|
+
}, undefined, {
|
|
27
|
+
position: {
|
|
28
|
+
'top-left': {
|
|
29
|
+
container: string;
|
|
30
|
+
};
|
|
31
|
+
'top-right': {
|
|
32
|
+
container: string;
|
|
33
|
+
};
|
|
34
|
+
'bottom-left': {
|
|
35
|
+
container: string;
|
|
36
|
+
};
|
|
37
|
+
'bottom-right': {
|
|
38
|
+
container: string;
|
|
39
|
+
};
|
|
40
|
+
'top-center': {
|
|
41
|
+
container: string;
|
|
42
|
+
};
|
|
43
|
+
'bottom-center': {
|
|
44
|
+
container: string;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
}, {
|
|
48
|
+
container: string;
|
|
49
|
+
wrapper: string;
|
|
50
|
+
progress: string;
|
|
51
|
+
}, import('tailwind-variants').TVReturnType<{
|
|
52
|
+
position: {
|
|
53
|
+
'top-left': {
|
|
54
|
+
container: string;
|
|
55
|
+
};
|
|
56
|
+
'top-right': {
|
|
57
|
+
container: string;
|
|
58
|
+
};
|
|
59
|
+
'bottom-left': {
|
|
60
|
+
container: string;
|
|
61
|
+
};
|
|
62
|
+
'bottom-right': {
|
|
63
|
+
container: string;
|
|
64
|
+
};
|
|
65
|
+
'top-center': {
|
|
66
|
+
container: string;
|
|
67
|
+
};
|
|
68
|
+
'bottom-center': {
|
|
69
|
+
container: string;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
}, {
|
|
73
|
+
container: string;
|
|
74
|
+
wrapper: string;
|
|
75
|
+
progress: string;
|
|
76
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Tooltip } from './tooltip';
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { ExtractPropTypes } from 'vue';
|
|
2
|
+
import { tooltipProps } from './tooltip.props';
|
|
3
|
+
type TooltipProps = ExtractPropTypes<typeof tooltipProps>;
|
|
4
|
+
type TooltipEmitFn = {
|
|
5
|
+
(event: 'update:open', value: boolean): void;
|
|
6
|
+
(event: 'open'): void;
|
|
7
|
+
(event: 'close'): void;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Composable that handles Tooltip component logic.
|
|
11
|
+
* Manages controlled/uncontrolled open state, disabled guard,
|
|
12
|
+
* and TV class computation. Hover/delay is handled by reka-ui's TooltipRoot.
|
|
13
|
+
*/
|
|
14
|
+
export declare const useTooltip: (props: TooltipProps, emit: TooltipEmitFn) => {
|
|
15
|
+
classes: import('vue').ComputedRef<{
|
|
16
|
+
content: (slotProps?: ({
|
|
17
|
+
[x: string]: string | number | undefined;
|
|
18
|
+
[x: number]: string | number | undefined;
|
|
19
|
+
} & import('tailwind-variants').ClassProp<import('tailwind-merge').ClassNameValue>) | ({
|
|
20
|
+
[x: string]: string | number | undefined;
|
|
21
|
+
[x: number]: string | number | undefined;
|
|
22
|
+
} & import('tailwind-variants').ClassProp<import('tailwind-merge').ClassNameValue>) | ({
|
|
23
|
+
[x: string]: string | number | undefined;
|
|
24
|
+
[x: number]: string | number | undefined;
|
|
25
|
+
} & import('tailwind-variants').ClassProp<import('tailwind-merge').ClassNameValue>) | ({
|
|
26
|
+
[x: string]: string | number | undefined;
|
|
27
|
+
[x: number]: string | number | undefined;
|
|
28
|
+
} & import('tailwind-variants').ClassProp<import('tailwind-merge').ClassNameValue>) | ({
|
|
29
|
+
[x: string]: string | number | undefined;
|
|
30
|
+
[x: number]: string | number | undefined;
|
|
31
|
+
} & import('tailwind-variants').ClassProp<import('tailwind-merge').ClassNameValue>) | ({} & import('tailwind-variants').ClassProp<import('tailwind-merge').ClassNameValue>) | undefined) => string;
|
|
32
|
+
arrow: (slotProps?: ({
|
|
33
|
+
[x: string]: string | number | undefined;
|
|
34
|
+
[x: number]: string | number | undefined;
|
|
35
|
+
} & import('tailwind-variants').ClassProp<import('tailwind-merge').ClassNameValue>) | ({
|
|
36
|
+
[x: string]: string | number | undefined;
|
|
37
|
+
[x: number]: string | number | undefined;
|
|
38
|
+
} & import('tailwind-variants').ClassProp<import('tailwind-merge').ClassNameValue>) | ({
|
|
39
|
+
[x: string]: string | number | undefined;
|
|
40
|
+
[x: number]: string | number | undefined;
|
|
41
|
+
} & import('tailwind-variants').ClassProp<import('tailwind-merge').ClassNameValue>) | ({
|
|
42
|
+
[x: string]: string | number | undefined;
|
|
43
|
+
[x: number]: string | number | undefined;
|
|
44
|
+
} & import('tailwind-variants').ClassProp<import('tailwind-merge').ClassNameValue>) | ({
|
|
45
|
+
[x: string]: string | number | undefined;
|
|
46
|
+
[x: number]: string | number | undefined;
|
|
47
|
+
} & import('tailwind-variants').ClassProp<import('tailwind-merge').ClassNameValue>) | ({} & import('tailwind-variants').ClassProp<import('tailwind-merge').ClassNameValue>) | undefined) => string;
|
|
48
|
+
} & {
|
|
49
|
+
content: (slotProps?: ({
|
|
50
|
+
[x: string]: string | number | undefined;
|
|
51
|
+
[x: number]: string | number | undefined;
|
|
52
|
+
} & import('tailwind-variants').ClassProp<import('tailwind-merge').ClassNameValue>) | ({
|
|
53
|
+
[x: string]: string | number | undefined;
|
|
54
|
+
[x: number]: string | number | undefined;
|
|
55
|
+
} & import('tailwind-variants').ClassProp<import('tailwind-merge').ClassNameValue>) | ({
|
|
56
|
+
[x: string]: string | number | undefined;
|
|
57
|
+
[x: number]: string | number | undefined;
|
|
58
|
+
} & import('tailwind-variants').ClassProp<import('tailwind-merge').ClassNameValue>) | ({
|
|
59
|
+
[x: string]: string | number | undefined;
|
|
60
|
+
[x: number]: string | number | undefined;
|
|
61
|
+
} & import('tailwind-variants').ClassProp<import('tailwind-merge').ClassNameValue>) | ({
|
|
62
|
+
[x: string]: string | number | undefined;
|
|
63
|
+
[x: number]: string | number | undefined;
|
|
64
|
+
} & import('tailwind-variants').ClassProp<import('tailwind-merge').ClassNameValue>) | ({} & import('tailwind-variants').ClassProp<import('tailwind-merge').ClassNameValue>) | undefined) => string;
|
|
65
|
+
arrow: (slotProps?: ({
|
|
66
|
+
[x: string]: string | number | undefined;
|
|
67
|
+
[x: number]: string | number | undefined;
|
|
68
|
+
} & import('tailwind-variants').ClassProp<import('tailwind-merge').ClassNameValue>) | ({
|
|
69
|
+
[x: string]: string | number | undefined;
|
|
70
|
+
[x: number]: string | number | undefined;
|
|
71
|
+
} & import('tailwind-variants').ClassProp<import('tailwind-merge').ClassNameValue>) | ({
|
|
72
|
+
[x: string]: string | number | undefined;
|
|
73
|
+
[x: number]: string | number | undefined;
|
|
74
|
+
} & import('tailwind-variants').ClassProp<import('tailwind-merge').ClassNameValue>) | ({
|
|
75
|
+
[x: string]: string | number | undefined;
|
|
76
|
+
[x: number]: string | number | undefined;
|
|
77
|
+
} & import('tailwind-variants').ClassProp<import('tailwind-merge').ClassNameValue>) | ({
|
|
78
|
+
[x: string]: string | number | undefined;
|
|
79
|
+
[x: number]: string | number | undefined;
|
|
80
|
+
} & import('tailwind-variants').ClassProp<import('tailwind-merge').ClassNameValue>) | ({} & import('tailwind-variants').ClassProp<import('tailwind-merge').ClassNameValue>) | undefined) => string;
|
|
81
|
+
} & {}>;
|
|
82
|
+
resolvedOpen: import('vue').ComputedRef<boolean | undefined>;
|
|
83
|
+
handleOpenChange: (value: boolean) => void;
|
|
84
|
+
};
|
|
85
|
+
export {};
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
3
|
+
slots: {
|
|
4
|
+
trigger?(_: {}): any;
|
|
5
|
+
default?(_: {}): any;
|
|
6
|
+
};
|
|
7
|
+
refs: {};
|
|
8
|
+
rootEl: any;
|
|
9
|
+
};
|
|
10
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
12
|
+
content: {
|
|
13
|
+
type: import('vue').PropType<string>;
|
|
14
|
+
default: undefined;
|
|
15
|
+
};
|
|
16
|
+
open: {
|
|
17
|
+
type: BooleanConstructor;
|
|
18
|
+
default: undefined;
|
|
19
|
+
};
|
|
20
|
+
defaultOpen: {
|
|
21
|
+
type: BooleanConstructor;
|
|
22
|
+
default: boolean;
|
|
23
|
+
};
|
|
24
|
+
side: {
|
|
25
|
+
type: import('vue').PropType<"top" | "right" | "bottom" | "left">;
|
|
26
|
+
default: "top";
|
|
27
|
+
};
|
|
28
|
+
sideOffset: {
|
|
29
|
+
type: NumberConstructor;
|
|
30
|
+
default: number;
|
|
31
|
+
};
|
|
32
|
+
align: {
|
|
33
|
+
type: import('vue').PropType<"start" | "center" | "end">;
|
|
34
|
+
default: "center";
|
|
35
|
+
};
|
|
36
|
+
alignOffset: {
|
|
37
|
+
type: NumberConstructor;
|
|
38
|
+
default: number;
|
|
39
|
+
};
|
|
40
|
+
delayDuration: {
|
|
41
|
+
type: NumberConstructor;
|
|
42
|
+
default: number;
|
|
43
|
+
};
|
|
44
|
+
hasArrow: {
|
|
45
|
+
type: BooleanConstructor;
|
|
46
|
+
default: boolean;
|
|
47
|
+
};
|
|
48
|
+
isDisabled: {
|
|
49
|
+
type: BooleanConstructor;
|
|
50
|
+
default: boolean;
|
|
51
|
+
};
|
|
52
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
53
|
+
open: () => any;
|
|
54
|
+
close: () => any;
|
|
55
|
+
"update:open": (value: boolean) => any;
|
|
56
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
57
|
+
content: {
|
|
58
|
+
type: import('vue').PropType<string>;
|
|
59
|
+
default: undefined;
|
|
60
|
+
};
|
|
61
|
+
open: {
|
|
62
|
+
type: BooleanConstructor;
|
|
63
|
+
default: undefined;
|
|
64
|
+
};
|
|
65
|
+
defaultOpen: {
|
|
66
|
+
type: BooleanConstructor;
|
|
67
|
+
default: boolean;
|
|
68
|
+
};
|
|
69
|
+
side: {
|
|
70
|
+
type: import('vue').PropType<"top" | "right" | "bottom" | "left">;
|
|
71
|
+
default: "top";
|
|
72
|
+
};
|
|
73
|
+
sideOffset: {
|
|
74
|
+
type: NumberConstructor;
|
|
75
|
+
default: number;
|
|
76
|
+
};
|
|
77
|
+
align: {
|
|
78
|
+
type: import('vue').PropType<"start" | "center" | "end">;
|
|
79
|
+
default: "center";
|
|
80
|
+
};
|
|
81
|
+
alignOffset: {
|
|
82
|
+
type: NumberConstructor;
|
|
83
|
+
default: number;
|
|
84
|
+
};
|
|
85
|
+
delayDuration: {
|
|
86
|
+
type: NumberConstructor;
|
|
87
|
+
default: number;
|
|
88
|
+
};
|
|
89
|
+
hasArrow: {
|
|
90
|
+
type: BooleanConstructor;
|
|
91
|
+
default: boolean;
|
|
92
|
+
};
|
|
93
|
+
isDisabled: {
|
|
94
|
+
type: BooleanConstructor;
|
|
95
|
+
default: boolean;
|
|
96
|
+
};
|
|
97
|
+
}>> & Readonly<{
|
|
98
|
+
onOpen?: (() => any) | undefined;
|
|
99
|
+
onClose?: (() => any) | undefined;
|
|
100
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
101
|
+
}>, {
|
|
102
|
+
content: string;
|
|
103
|
+
isDisabled: boolean;
|
|
104
|
+
open: boolean;
|
|
105
|
+
defaultOpen: boolean;
|
|
106
|
+
side: "bottom" | "left" | "right" | "top";
|
|
107
|
+
sideOffset: number;
|
|
108
|
+
align: "center" | "start" | "end";
|
|
109
|
+
alignOffset: number;
|
|
110
|
+
hasArrow: boolean;
|
|
111
|
+
delayDuration: number;
|
|
112
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
113
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
114
|
+
export default _default;
|
|
115
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
116
|
+
new (): {
|
|
117
|
+
$slots: S;
|
|
118
|
+
};
|
|
119
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
/** Props definition for the Tooltip component */
|
|
3
|
+
export declare const tooltipProps: {
|
|
4
|
+
/** Text content displayed inside the tooltip */
|
|
5
|
+
content: {
|
|
6
|
+
type: PropType<string>;
|
|
7
|
+
default: undefined;
|
|
8
|
+
};
|
|
9
|
+
/** Controlled open state (v-model:open) */
|
|
10
|
+
open: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
default: undefined;
|
|
13
|
+
};
|
|
14
|
+
/** Initial uncontrolled open state */
|
|
15
|
+
defaultOpen: {
|
|
16
|
+
type: BooleanConstructor;
|
|
17
|
+
default: boolean;
|
|
18
|
+
};
|
|
19
|
+
/** Which side of the trigger to position the tooltip */
|
|
20
|
+
side: {
|
|
21
|
+
type: PropType<"top" | "right" | "bottom" | "left">;
|
|
22
|
+
default: "top";
|
|
23
|
+
};
|
|
24
|
+
/** Gap between trigger and tooltip content in pixels */
|
|
25
|
+
sideOffset: {
|
|
26
|
+
type: NumberConstructor;
|
|
27
|
+
default: number;
|
|
28
|
+
};
|
|
29
|
+
/** Alignment along the perpendicular axis */
|
|
30
|
+
align: {
|
|
31
|
+
type: PropType<"start" | "center" | "end">;
|
|
32
|
+
default: "center";
|
|
33
|
+
};
|
|
34
|
+
/** Offset along the alignment axis in pixels */
|
|
35
|
+
alignOffset: {
|
|
36
|
+
type: NumberConstructor;
|
|
37
|
+
default: number;
|
|
38
|
+
};
|
|
39
|
+
/** Delay in ms before the tooltip opens on hover */
|
|
40
|
+
delayDuration: {
|
|
41
|
+
type: NumberConstructor;
|
|
42
|
+
default: number;
|
|
43
|
+
};
|
|
44
|
+
/** Shows an arrow pointing to the trigger */
|
|
45
|
+
hasArrow: {
|
|
46
|
+
type: BooleanConstructor;
|
|
47
|
+
default: boolean;
|
|
48
|
+
};
|
|
49
|
+
isDisabled: {
|
|
50
|
+
type: BooleanConstructor;
|
|
51
|
+
default: boolean;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/** Tailwind Variants definition for the Tooltip component */
|
|
2
|
+
export declare const tooltipVariants: import('tailwind-variants').TVReturnType<{
|
|
3
|
+
[key: string]: {
|
|
4
|
+
[key: string]: import('tailwind-merge').ClassNameValue | {
|
|
5
|
+
content?: import('tailwind-merge').ClassNameValue;
|
|
6
|
+
arrow?: import('tailwind-merge').ClassNameValue;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
} | {
|
|
10
|
+
[x: string]: {
|
|
11
|
+
[x: string]: import('tailwind-merge').ClassNameValue | {
|
|
12
|
+
content?: import('tailwind-merge').ClassNameValue;
|
|
13
|
+
arrow?: import('tailwind-merge').ClassNameValue;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
} | {}, {
|
|
17
|
+
content: string;
|
|
18
|
+
arrow: string;
|
|
19
|
+
}, undefined, {
|
|
20
|
+
[key: string]: {
|
|
21
|
+
[key: string]: import('tailwind-merge').ClassNameValue | {
|
|
22
|
+
content?: import('tailwind-merge').ClassNameValue;
|
|
23
|
+
arrow?: import('tailwind-merge').ClassNameValue;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
} | {}, {
|
|
27
|
+
content: string;
|
|
28
|
+
arrow: string;
|
|
29
|
+
}, import('tailwind-variants').TVReturnType<unknown, {
|
|
30
|
+
content: string;
|
|
31
|
+
arrow: string;
|
|
32
|
+
}, undefined, unknown, unknown, undefined>>;
|