@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.
Files changed (177) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +77 -0
  3. package/dist/components/accordion/accordion.composable.d.ts +85 -0
  4. package/dist/components/accordion/accordion.d.ts +112 -0
  5. package/dist/components/accordion/accordion.props.d.ts +44 -0
  6. package/dist/components/accordion/accordion.style.d.ts +202 -0
  7. package/dist/components/accordion/index.d.ts +1 -0
  8. package/dist/components/alert/alert.composable.d.ts +87 -0
  9. package/dist/components/alert/alert.d.ts +89 -0
  10. package/dist/components/alert/alert.props.d.ts +30 -0
  11. package/dist/components/alert/alert.style.d.ts +154 -0
  12. package/dist/components/alert/index.d.ts +1 -0
  13. package/dist/components/avatar/avatar.composable.d.ts +79 -0
  14. package/dist/components/avatar/avatar.d.ts +111 -0
  15. package/dist/components/avatar/avatar.props.d.ts +50 -0
  16. package/dist/components/avatar/avatar.style.d.ts +158 -0
  17. package/dist/components/avatar/index.d.ts +1 -0
  18. package/dist/components/badge/badge.composable.d.ts +58 -0
  19. package/dist/components/badge/badge.d.ts +85 -0
  20. package/dist/components/badge/badge.props.d.ts +35 -0
  21. package/dist/components/badge/badge.style.d.ts +146 -0
  22. package/dist/components/badge/index.d.ts +1 -0
  23. package/dist/components/button/button.composable.d.ts +14 -0
  24. package/dist/components/button/button.d.ts +96 -0
  25. package/dist/components/button/button.props.d.ts +36 -0
  26. package/dist/components/button/button.style.d.ts +88 -0
  27. package/dist/components/button/index.d.ts +1 -0
  28. package/dist/components/checkbox/checkbox.composable.d.ts +56 -0
  29. package/dist/components/checkbox/checkbox.d.ts +54 -0
  30. package/dist/components/checkbox/checkbox.props.d.ts +22 -0
  31. package/dist/components/checkbox/checkbox.style.d.ts +106 -0
  32. package/dist/components/checkbox/index.d.ts +1 -0
  33. package/dist/components/chip/chip.composable.d.ts +51 -0
  34. package/dist/components/chip/chip.d.ts +96 -0
  35. package/dist/components/chip/chip.props.d.ts +35 -0
  36. package/dist/components/chip/chip.style.d.ts +184 -0
  37. package/dist/components/chip/index.d.ts +1 -0
  38. package/dist/components/code-block/code-block.composable.d.ts +16 -0
  39. package/dist/components/code-block/code-block.d.ts +105 -0
  40. package/dist/components/code-block/code-block.props.d.ts +51 -0
  41. package/dist/components/code-block/code-block.style.d.ts +113 -0
  42. package/dist/components/code-block/index.d.ts +1 -0
  43. package/dist/components/combobox/combobox.composable.d.ts +136 -0
  44. package/dist/components/combobox/combobox.d.ts +127 -0
  45. package/dist/components/combobox/combobox.props.d.ts +52 -0
  46. package/dist/components/combobox/combobox.style.d.ts +202 -0
  47. package/dist/components/combobox/index.d.ts +1 -0
  48. package/dist/components/divider/divider.composable.d.ts +13 -0
  49. package/dist/components/divider/divider.d.ts +47 -0
  50. package/dist/components/divider/divider.props.d.ts +15 -0
  51. package/dist/components/divider/divider.style.d.ts +43 -0
  52. package/dist/components/divider/index.d.ts +1 -0
  53. package/dist/components/drawer/drawer.composable.d.ts +82 -0
  54. package/dist/components/drawer/drawer.d.ts +256 -0
  55. package/dist/components/drawer/drawer.props.d.ts +34 -0
  56. package/dist/components/drawer/drawer.style.d.ts +97 -0
  57. package/dist/components/drawer/index.d.ts +1 -0
  58. package/dist/components/dropdown/dropdown.d.ts +102 -0
  59. package/dist/components/dropdown/dropdown.props.d.ts +36 -0
  60. package/dist/components/dropdown/index.d.ts +1 -0
  61. package/dist/components/input/index.d.ts +1 -0
  62. package/dist/components/input/input.composable.d.ts +164 -0
  63. package/dist/components/input/input.d.ts +213 -0
  64. package/dist/components/input/input.props.d.ts +83 -0
  65. package/dist/components/input/input.style.d.ts +187 -0
  66. package/dist/components/kbd/index.d.ts +1 -0
  67. package/dist/components/kbd/kbd.composable.d.ts +40 -0
  68. package/dist/components/kbd/kbd.d.ts +46 -0
  69. package/dist/components/kbd/kbd.props.d.ts +20 -0
  70. package/dist/components/kbd/kbd.style.d.ts +59 -0
  71. package/dist/components/list/index.d.ts +3 -0
  72. package/dist/components/list/list.composable.d.ts +40 -0
  73. package/dist/components/list/list.d.ts +148 -0
  74. package/dist/components/list/list.props.d.ts +40 -0
  75. package/dist/components/list/list.style.d.ts +52 -0
  76. package/dist/components/list-item/index.d.ts +1 -0
  77. package/dist/components/list-item/list-item.composable.d.ts +91 -0
  78. package/dist/components/list-item/list-item.d.ts +115 -0
  79. package/dist/components/list-item/list-item.props.d.ts +43 -0
  80. package/dist/components/list-item/list-item.style.d.ts +139 -0
  81. package/dist/components/modal/index.d.ts +1 -0
  82. package/dist/components/modal/modal.composable.d.ts +114 -0
  83. package/dist/components/modal/modal.d.ts +274 -0
  84. package/dist/components/modal/modal.props.d.ts +44 -0
  85. package/dist/components/modal/modal.style.d.ts +190 -0
  86. package/dist/components/pagination/index.d.ts +1 -0
  87. package/dist/components/pagination/pagination.composable.d.ts +87 -0
  88. package/dist/components/pagination/pagination.d.ts +150 -0
  89. package/dist/components/pagination/pagination.props.d.ts +42 -0
  90. package/dist/components/pagination/pagination.style.d.ts +196 -0
  91. package/dist/components/popover/index.d.ts +1 -0
  92. package/dist/components/popover/popover.composable.d.ts +42 -0
  93. package/dist/components/popover/popover.d.ts +142 -0
  94. package/dist/components/popover/popover.props.d.ts +51 -0
  95. package/dist/components/popover/popover.style.d.ts +28 -0
  96. package/dist/components/popover-list/index.d.ts +1 -0
  97. package/dist/components/popover-list/popover-list.d.ts +158 -0
  98. package/dist/components/popover-list/popover-list.props.d.ts +73 -0
  99. package/dist/components/radio-group/index.d.ts +2 -0
  100. package/dist/components/radio-group/radio-group.composable.d.ts +13 -0
  101. package/dist/components/radio-group/radio-group.d.ts +80 -0
  102. package/dist/components/radio-group/radio-group.props.d.ts +28 -0
  103. package/dist/components/radio-group/radio-group.style.d.ts +16 -0
  104. package/dist/components/radio-group/radio.composable.d.ts +45 -0
  105. package/dist/components/radio-group/radio.d.ts +64 -0
  106. package/dist/components/radio-group/radio.props.d.ts +23 -0
  107. package/dist/components/radio-group/radio.style.d.ts +103 -0
  108. package/dist/components/select/index.d.ts +1 -0
  109. package/dist/components/select/select.composable.d.ts +115 -0
  110. package/dist/components/select/select.d.ts +123 -0
  111. package/dist/components/select/select.props.d.ts +52 -0
  112. package/dist/components/select/select.style.d.ts +199 -0
  113. package/dist/components/spinner/index.d.ts +1 -0
  114. package/dist/components/spinner/spinner.composable.d.ts +29 -0
  115. package/dist/components/spinner/spinner.d.ts +23 -0
  116. package/dist/components/spinner/spinner.props.d.ts +12 -0
  117. package/dist/components/spinner/spinner.style.d.ts +97 -0
  118. package/dist/components/switch/index.d.ts +1 -0
  119. package/dist/components/switch/switch.composable.d.ts +76 -0
  120. package/dist/components/switch/switch.d.ts +100 -0
  121. package/dist/components/switch/switch.props.d.ts +37 -0
  122. package/dist/components/switch/switch.style.d.ts +196 -0
  123. package/dist/components/table/index.d.ts +1 -0
  124. package/dist/components/table/table.composable.d.ts +162 -0
  125. package/dist/components/table/table.d.ts +162 -0
  126. package/dist/components/table/table.props.d.ts +56 -0
  127. package/dist/components/table/table.style.d.ts +193 -0
  128. package/dist/components/tabs/index.d.ts +1 -0
  129. package/dist/components/tabs/tabs.composable.d.ts +93 -0
  130. package/dist/components/tabs/tabs.d.ts +121 -0
  131. package/dist/components/tabs/tabs.props.d.ts +48 -0
  132. package/dist/components/tabs/tabs.style.d.ts +253 -0
  133. package/dist/components/text/index.d.ts +1 -0
  134. package/dist/components/text/text.composable.d.ts +12 -0
  135. package/dist/components/text/text.d.ts +56 -0
  136. package/dist/components/text/text.props.d.ts +19 -0
  137. package/dist/components/text/text.style.d.ts +83 -0
  138. package/dist/components/textarea/index.d.ts +1 -0
  139. package/dist/components/textarea/textarea.composable.d.ts +149 -0
  140. package/dist/components/textarea/textarea.d.ts +250 -0
  141. package/dist/components/textarea/textarea.props.d.ts +99 -0
  142. package/dist/components/textarea/textarea.style.d.ts +184 -0
  143. package/dist/components/toast/index.d.ts +2 -0
  144. package/dist/components/toast/toast-provider.d.ts +47 -0
  145. package/dist/components/toast/toast.composable.d.ts +16 -0
  146. package/dist/components/toast/toast.props.d.ts +14 -0
  147. package/dist/components/toast/toast.provider.d.ts +48 -0
  148. package/dist/components/toast/toast.style.d.ts +76 -0
  149. package/dist/components/tooltip/index.d.ts +1 -0
  150. package/dist/components/tooltip/tooltip.composable.d.ts +85 -0
  151. package/dist/components/tooltip/tooltip.d.ts +119 -0
  152. package/dist/components/tooltip/tooltip.props.d.ts +53 -0
  153. package/dist/components/tooltip/tooltip.style.d.ts +32 -0
  154. package/dist/composables/dismiss-shake.composable.d.ts +13 -0
  155. package/dist/css-BRq03xhW.js +3 -0
  156. package/dist/css-BT3ulMUY.js +2 -0
  157. package/dist/html-CJhGHSsv.js +2 -0
  158. package/dist/html-DM_Fd1As.js +10 -0
  159. package/dist/index.d.ts +29 -0
  160. package/dist/jasmine-ui.css +3 -0
  161. package/dist/jasmine-ui.js +11858 -0
  162. package/dist/javascript-CkfBz3il.js +3 -0
  163. package/dist/javascript-CwUFKmKO.js +2 -0
  164. package/dist/json-BPXqV38U.js +3 -0
  165. package/dist/json-DHmMgjNi.js +2 -0
  166. package/dist/jsonc-DVpPCz25.js +3 -0
  167. package/dist/jsx-CHO6wZNT.js +3 -0
  168. package/dist/main.d.ts +1 -0
  169. package/dist/rust-qf9jV5qU.js +3 -0
  170. package/dist/styles/shiki-theme.d.ts +11 -0
  171. package/dist/types/common.d.ts +89 -0
  172. package/dist/types/shared-props.d.ts +142 -0
  173. package/dist/typescript-Cil9iWXl.js +3 -0
  174. package/dist/typescript-CoNvJdtl.js +2 -0
  175. package/dist/utils/shiki.d.ts +12 -0
  176. package/dist/vue-Bgv7yiBd.js +21 -0
  177. 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,2 @@
1
+ export { useToast } from './toast.composable';
2
+ export { default as ToastProvider } from './toast-provider';
@@ -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>>;