@nuxt/ui 3.0.0-alpha.0 → 3.0.0-alpha.1

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 (170) hide show
  1. package/README.md +1 -1
  2. package/cli/node_modules/.ignored/citty/LICENSE +36 -0
  3. package/cli/node_modules/.ignored/citty/README.md +134 -0
  4. package/cli/node_modules/.ignored/citty/dist/index.cjs +475 -0
  5. package/cli/node_modules/.ignored/citty/dist/index.d.cts +80 -0
  6. package/cli/node_modules/.ignored/citty/dist/index.d.mts +80 -0
  7. package/cli/node_modules/.ignored/citty/dist/index.d.ts +80 -0
  8. package/cli/node_modules/.ignored/citty/dist/index.mjs +463 -0
  9. package/cli/node_modules/.ignored/citty/package.json +49 -0
  10. package/cli/node_modules/.ignored/consola/LICENSE +47 -0
  11. package/cli/node_modules/.ignored/consola/README.md +318 -0
  12. package/cli/node_modules/.ignored/consola/core.d.ts +1 -0
  13. package/cli/node_modules/.ignored/consola/dist/basic.cjs +32 -0
  14. package/cli/node_modules/.ignored/consola/dist/basic.d.ts +9 -0
  15. package/cli/node_modules/.ignored/consola/dist/basic.mjs +24 -0
  16. package/cli/node_modules/.ignored/consola/dist/browser.cjs +80 -0
  17. package/cli/node_modules/.ignored/consola/dist/browser.d.ts +7 -0
  18. package/cli/node_modules/.ignored/consola/dist/browser.mjs +72 -0
  19. package/cli/node_modules/.ignored/consola/dist/chunks/prompt.cjs +436 -0
  20. package/cli/node_modules/.ignored/consola/dist/chunks/prompt.mjs +429 -0
  21. package/cli/node_modules/.ignored/consola/dist/core.cjs +415 -0
  22. package/cli/node_modules/.ignored/consola/dist/core.d.ts +124 -0
  23. package/cli/node_modules/.ignored/consola/dist/core.mjs +410 -0
  24. package/cli/node_modules/.ignored/consola/dist/index.cjs +21 -0
  25. package/cli/node_modules/.ignored/consola/dist/index.d.ts +9 -0
  26. package/cli/node_modules/.ignored/consola/dist/index.mjs +8 -0
  27. package/cli/node_modules/.ignored/consola/dist/shared/consola.06ad8a64.mjs +62 -0
  28. package/cli/node_modules/.ignored/consola/dist/shared/consola.36c0034f.mjs +636 -0
  29. package/cli/node_modules/.ignored/consola/dist/shared/consola.4bbae468.cjs +645 -0
  30. package/cli/node_modules/.ignored/consola/dist/shared/consola.deac7d5a.cjs +65 -0
  31. package/cli/node_modules/.ignored/consola/dist/utils.cjs +308 -0
  32. package/cli/node_modules/.ignored/consola/dist/utils.d.ts +169 -0
  33. package/cli/node_modules/.ignored/consola/dist/utils.mjs +284 -0
  34. package/cli/node_modules/.ignored/consola/lib/index.cjs +9 -0
  35. package/cli/node_modules/.ignored/consola/package.json +101 -0
  36. package/cli/node_modules/.ignored/consola/utils.d.ts +1 -0
  37. package/cli/node_modules/.ignored/pathe/LICENSE +44 -0
  38. package/cli/node_modules/.ignored/pathe/README.md +69 -0
  39. package/cli/node_modules/.ignored/pathe/dist/index.cjs +23 -0
  40. package/cli/node_modules/.ignored/pathe/dist/index.d.cts +36 -0
  41. package/cli/node_modules/.ignored/pathe/dist/index.d.mts +36 -0
  42. package/cli/node_modules/.ignored/pathe/dist/index.d.ts +36 -0
  43. package/cli/node_modules/.ignored/pathe/dist/index.mjs +1 -0
  44. package/cli/node_modules/.ignored/pathe/dist/shared/pathe.1f0a373c.cjs +238 -0
  45. package/cli/node_modules/.ignored/pathe/dist/shared/pathe.ff20891b.mjs +221 -0
  46. package/cli/node_modules/.ignored/pathe/dist/utils.cjs +58 -0
  47. package/cli/node_modules/.ignored/pathe/dist/utils.d.cts +5 -0
  48. package/cli/node_modules/.ignored/pathe/dist/utils.d.mts +5 -0
  49. package/cli/node_modules/.ignored/pathe/dist/utils.d.ts +5 -0
  50. package/cli/node_modules/.ignored/pathe/dist/utils.mjs +54 -0
  51. package/cli/node_modules/.ignored/pathe/package.json +48 -0
  52. package/cli/node_modules/.ignored/pathe/utils.d.ts +1 -0
  53. package/cli/node_modules/.ignored/scule/LICENSE +21 -0
  54. package/cli/node_modules/.ignored/scule/README.md +149 -0
  55. package/cli/node_modules/.ignored/scule/dist/index.cjs +92 -0
  56. package/cli/node_modules/.ignored/scule/dist/index.d.cts +57 -0
  57. package/cli/node_modules/.ignored/scule/dist/index.d.mts +57 -0
  58. package/cli/node_modules/.ignored/scule/dist/index.d.ts +57 -0
  59. package/cli/node_modules/.ignored/scule/dist/index.mjs +80 -0
  60. package/cli/node_modules/.ignored/scule/package.json +43 -0
  61. package/cli/node_modules/.package-lock.json +33 -0
  62. package/dist/module.json +3 -3
  63. package/dist/module.mjs +7 -55
  64. package/dist/runtime/components/Accordion.vue +49 -6
  65. package/dist/runtime/components/Alert.vue +58 -6
  66. package/dist/runtime/components/App.vue +12 -2
  67. package/dist/runtime/components/Avatar.vue +27 -6
  68. package/dist/runtime/components/AvatarGroup.vue +30 -6
  69. package/dist/runtime/components/Badge.vue +28 -6
  70. package/dist/runtime/components/Breadcrumb.vue +44 -6
  71. package/dist/runtime/components/Button.vue +33 -6
  72. package/dist/runtime/components/ButtonGroup.vue +30 -6
  73. package/dist/runtime/components/Card.vue +25 -6
  74. package/dist/runtime/components/Checkbox.vue +45 -6
  75. package/dist/runtime/components/Chip.vue +39 -6
  76. package/dist/runtime/components/Collapsible.vue +27 -6
  77. package/dist/runtime/components/CommandPalette.vue +99 -6
  78. package/dist/runtime/components/Container.vue +22 -6
  79. package/dist/runtime/components/ContextMenu.vue +58 -6
  80. package/dist/runtime/components/ContextMenuContent.vue +18 -4
  81. package/dist/runtime/components/Drawer.vue +48 -6
  82. package/dist/runtime/components/DropdownMenu.vue +66 -6
  83. package/dist/runtime/components/DropdownMenuContent.vue +22 -4
  84. package/dist/runtime/components/Form.vue +34 -13
  85. package/dist/runtime/components/FormField.vue +41 -16
  86. package/dist/runtime/components/Icon.vue +12 -2
  87. package/dist/runtime/components/Input.vue +46 -6
  88. package/dist/runtime/components/InputMenu.vue +113 -6
  89. package/dist/runtime/components/Kbd.vue +28 -6
  90. package/dist/runtime/components/Link.vue +81 -17
  91. package/dist/runtime/components/LinkBase.vue +12 -2
  92. package/dist/runtime/components/Modal.vue +69 -6
  93. package/dist/runtime/components/NavigationMenu.vue +76 -6
  94. package/dist/runtime/components/Pagination.vue +99 -6
  95. package/dist/runtime/components/Popover.vue +42 -6
  96. package/dist/runtime/components/Progress.vue +44 -6
  97. package/dist/runtime/components/RadioGroup.vue +55 -7
  98. package/dist/runtime/components/Select.vue +88 -6
  99. package/dist/runtime/components/SelectMenu.vue +104 -6
  100. package/dist/runtime/components/Separator.vue +41 -6
  101. package/dist/runtime/components/Skeleton.vue +18 -6
  102. package/dist/runtime/components/Slideover.vue +67 -6
  103. package/dist/runtime/components/Slider.vue +36 -6
  104. package/dist/runtime/components/Switch.vue +50 -6
  105. package/dist/runtime/components/Tabs.vue +59 -6
  106. package/dist/runtime/components/Textarea.vue +46 -6
  107. package/dist/runtime/components/Toast.vue +55 -6
  108. package/dist/runtime/components/Toaster.vue +27 -6
  109. package/dist/runtime/components/Tooltip.vue +42 -6
  110. package/dist/runtime/composables/useAvatarGroup.d.ts +2 -2
  111. package/dist/runtime/composables/useButtonGroup.d.ts +3 -3
  112. package/dist/runtime/composables/useFormField.d.ts +6 -3
  113. package/dist/runtime/composables/useFormField.js +11 -7
  114. package/dist/runtime/composables/useModal.d.ts +1 -1
  115. package/dist/runtime/composables/useSlideover.d.ts +1 -1
  116. package/dist/runtime/composables/useToast.d.ts +1 -1
  117. package/dist/runtime/index.css +1 -0
  118. package/dist/runtime/plugins/colors.d.ts +2 -0
  119. package/dist/runtime/plugins/modal.d.ts +2 -0
  120. package/dist/runtime/plugins/slideover.d.ts +2 -0
  121. package/dist/runtime/types/form.d.ts +1 -2
  122. package/dist/runtime/utils/link.d.ts +23 -55
  123. package/package.json +13 -14
  124. package/dist/runtime/assets/css/animations.css +0 -1
  125. package/dist/runtime/components/Accordion.vue.d.ts +0 -492
  126. package/dist/runtime/components/Alert.vue.d.ts +0 -548
  127. package/dist/runtime/components/App.vue.d.ts +0 -25
  128. package/dist/runtime/components/Avatar.vue.d.ts +0 -384
  129. package/dist/runtime/components/AvatarGroup.vue.d.ts +0 -381
  130. package/dist/runtime/components/Badge.vue.d.ts +0 -422
  131. package/dist/runtime/components/Breadcrumb.vue.d.ts +0 -307
  132. package/dist/runtime/components/Button.vue.d.ts +0 -949
  133. package/dist/runtime/components/ButtonGroup.vue.d.ts +0 -182
  134. package/dist/runtime/components/Card.vue.d.ts +0 -191
  135. package/dist/runtime/components/Checkbox.vue.d.ts +0 -819
  136. package/dist/runtime/components/Chip.vue.d.ts +0 -590
  137. package/dist/runtime/components/Collapsible.vue.d.ts +0 -159
  138. package/dist/runtime/components/CommandPalette.vue.d.ts +0 -684
  139. package/dist/runtime/components/Container.vue.d.ts +0 -27
  140. package/dist/runtime/components/ContextMenu.vue.d.ts +0 -796
  141. package/dist/runtime/components/ContextMenuContent.vue.d.ts +0 -0
  142. package/dist/runtime/components/Drawer.vue.d.ts +0 -343
  143. package/dist/runtime/components/DropdownMenu.vue.d.ts +0 -815
  144. package/dist/runtime/components/DropdownMenuContent.vue.d.ts +0 -0
  145. package/dist/runtime/components/Form.vue.d.ts +0 -39
  146. package/dist/runtime/components/FormField.vue.d.ts +0 -356
  147. package/dist/runtime/components/Icon.vue.d.ts +0 -17
  148. package/dist/runtime/components/Input.vue.d.ts +0 -1137
  149. package/dist/runtime/components/InputMenu.vue.d.ts +0 -2121
  150. package/dist/runtime/components/Kbd.vue.d.ts +0 -169
  151. package/dist/runtime/components/Link.vue.d.ts +0 -76
  152. package/dist/runtime/components/LinkBase.vue.d.ts +0 -49
  153. package/dist/runtime/components/Modal.vue.d.ts +0 -319
  154. package/dist/runtime/components/NavigationMenu.vue.d.ts +0 -1789
  155. package/dist/runtime/components/Pagination.vue.d.ts +0 -295
  156. package/dist/runtime/components/Popover.vue.d.ts +0 -197
  157. package/dist/runtime/components/Progress.vue.d.ts +0 -1781
  158. package/dist/runtime/components/RadioGroup.vue.d.ts +0 -1715
  159. package/dist/runtime/components/Select.vue.d.ts +0 -1569
  160. package/dist/runtime/components/SelectMenu.vue.d.ts +0 -1661
  161. package/dist/runtime/components/Separator.vue.d.ts +0 -0
  162. package/dist/runtime/components/Skeleton.vue.d.ts +0 -26
  163. package/dist/runtime/components/Slideover.vue.d.ts +0 -375
  164. package/dist/runtime/components/Slider.vue.d.ts +0 -0
  165. package/dist/runtime/components/Switch.vue.d.ts +0 -1676
  166. package/dist/runtime/components/Tabs.vue.d.ts +0 -934
  167. package/dist/runtime/components/Textarea.vue.d.ts +0 -1133
  168. package/dist/runtime/components/Toast.vue.d.ts +0 -0
  169. package/dist/runtime/components/Toaster.vue.d.ts +0 -362
  170. package/dist/runtime/components/Tooltip.vue.d.ts +0 -248
@@ -1,169 +0,0 @@
1
- import { type VariantProps } from 'tailwind-variants';
2
- import type { KbdKey } from '../composables/useKbd.js';
3
- declare const kbd: import("tailwind-variants").TVReturnType<{
4
- variant: {
5
- solid: string;
6
- outline: string;
7
- subtle: string;
8
- };
9
- size: {
10
- sm: string;
11
- md: string;
12
- lg: string;
13
- };
14
- }, undefined, string, import("tailwind-variants/dist/config.js").TVConfig<{
15
- variant: {
16
- solid: string;
17
- outline: string;
18
- subtle: string;
19
- };
20
- size: {
21
- sm: string;
22
- md: string;
23
- lg: string;
24
- };
25
- }, {
26
- variant: {
27
- solid: string;
28
- outline: string;
29
- subtle: string;
30
- };
31
- size: {
32
- sm: string;
33
- md: string;
34
- lg: string;
35
- };
36
- }>, {
37
- variant: {
38
- solid: string;
39
- outline: string;
40
- subtle: string;
41
- };
42
- size: {
43
- sm: string;
44
- md: string;
45
- lg: string;
46
- };
47
- }, undefined, import("tailwind-variants").TVReturnType<{
48
- variant: {
49
- solid: string;
50
- outline: string;
51
- subtle: string;
52
- };
53
- size: {
54
- sm: string;
55
- md: string;
56
- lg: string;
57
- };
58
- }, undefined, string, import("tailwind-variants/dist/config.js").TVConfig<{
59
- variant: {
60
- solid: string;
61
- outline: string;
62
- subtle: string;
63
- };
64
- size: {
65
- sm: string;
66
- md: string;
67
- lg: string;
68
- };
69
- }, {
70
- variant: {
71
- solid: string;
72
- outline: string;
73
- subtle: string;
74
- };
75
- size: {
76
- sm: string;
77
- md: string;
78
- lg: string;
79
- };
80
- }>, {
81
- variant: {
82
- solid: string;
83
- outline: string;
84
- subtle: string;
85
- };
86
- size: {
87
- sm: string;
88
- md: string;
89
- lg: string;
90
- };
91
- }, undefined, import("tailwind-variants").TVReturnType<{
92
- variant: {
93
- solid: string;
94
- outline: string;
95
- subtle: string;
96
- };
97
- size: {
98
- sm: string;
99
- md: string;
100
- lg: string;
101
- };
102
- }, undefined, string, import("tailwind-variants/dist/config.js").TVConfig<{
103
- variant: {
104
- solid: string;
105
- outline: string;
106
- subtle: string;
107
- };
108
- size: {
109
- sm: string;
110
- md: string;
111
- lg: string;
112
- };
113
- }, {
114
- variant: {
115
- solid: string;
116
- outline: string;
117
- subtle: string;
118
- };
119
- size: {
120
- sm: string;
121
- md: string;
122
- lg: string;
123
- };
124
- }>, unknown, unknown, undefined>>>;
125
- type KbdVariants = VariantProps<typeof kbd>;
126
- export interface KbdProps {
127
- /**
128
- * The element or component this component should render as.
129
- * @defaultValue 'kbd'
130
- */
131
- as?: any;
132
- value?: KbdKey | string;
133
- variant?: KbdVariants['variant'];
134
- size?: KbdVariants['size'];
135
- class?: any;
136
- }
137
- export interface KbdSlots {
138
- default(props?: {}): any;
139
- }
140
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<KbdProps>, {
141
- as: string;
142
- }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<KbdProps>, {
143
- as: string;
144
- }>>> & Readonly<{}>, {
145
- as: any;
146
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, Readonly<KbdSlots> & KbdSlots>;
147
- export default _default;
148
- type __VLS_WithDefaults<P, D> = {
149
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
150
- default: D[K];
151
- }> : P[K];
152
- };
153
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
154
- type __VLS_TypePropsToOption<T> = {
155
- [K in keyof T]-?: {} extends Pick<T, K> ? {
156
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
157
- } : {
158
- type: import('vue').PropType<T[K]>;
159
- required: true;
160
- };
161
- };
162
- type __VLS_WithTemplateSlots<T, S> = T & {
163
- new (): {
164
- $slots: S;
165
- };
166
- };
167
- type __VLS_PrettifyLocal<T> = {
168
- [K in keyof T]: T[K];
169
- } & {};
@@ -1,76 +0,0 @@
1
- import type { ButtonHTMLAttributes } from 'vue';
2
- import type { NuxtLinkProps } from '#app';
3
- export interface LinkProps extends NuxtLinkProps {
4
- /**
5
- * The element or component this component should render as when not a link.
6
- * @defaultValue 'button'
7
- */
8
- as?: any;
9
- /**
10
- * The type of the button when not a link.
11
- * @defaultValue 'button'
12
- */
13
- type?: ButtonHTMLAttributes['type'];
14
- disabled?: boolean;
15
- /** Force the link to be active independent of the current route. */
16
- active?: boolean;
17
- /** Will only be active if the current route is an exact match. */
18
- exact?: boolean;
19
- /** Will only be active if the current route query is an exact match. */
20
- exactQuery?: boolean;
21
- /** Will only be active if the current route hash is an exact match. */
22
- exactHash?: boolean;
23
- /** The class to apply when the link is inactive. */
24
- inactiveClass?: string;
25
- custom?: boolean;
26
- /** When `true`, only styles from `class`, `activeClass`, and `inactiveClass` will be applied. */
27
- raw?: boolean;
28
- class?: any;
29
- }
30
- export interface LinkSlots {
31
- default(props: {
32
- active: boolean;
33
- }): any;
34
- }
35
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<LinkProps>, {
36
- as: string;
37
- type: string;
38
- active: undefined;
39
- activeClass: string;
40
- inactiveClass: string;
41
- }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<LinkProps>, {
42
- as: string;
43
- type: string;
44
- active: undefined;
45
- activeClass: string;
46
- inactiveClass: string;
47
- }>>> & Readonly<{}>, {
48
- type: "reset" | "submit" | "button";
49
- as: any;
50
- activeClass: string;
51
- active: boolean;
52
- inactiveClass: string;
53
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, Readonly<LinkSlots> & LinkSlots>;
54
- export default _default;
55
- type __VLS_WithDefaults<P, D> = {
56
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
57
- default: D[K];
58
- }> : P[K];
59
- };
60
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
61
- type __VLS_TypePropsToOption<T> = {
62
- [K in keyof T]-?: {} extends Pick<T, K> ? {
63
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
64
- } : {
65
- type: import('vue').PropType<T[K]>;
66
- required: true;
67
- };
68
- };
69
- type __VLS_WithTemplateSlots<T, S> = T & {
70
- new (): {
71
- $slots: S;
72
- };
73
- };
74
- type __VLS_PrettifyLocal<T> = {
75
- [K in keyof T]: T[K];
76
- } & {};
@@ -1,49 +0,0 @@
1
- export interface LinkBaseProps {
2
- as?: string;
3
- type?: string;
4
- disabled?: boolean;
5
- click?: (e: MouseEvent) => void;
6
- href?: string;
7
- navigate?: (e: MouseEvent) => void;
8
- route?: object;
9
- rel?: string;
10
- target?: string;
11
- isExternal?: boolean;
12
- isActive?: boolean;
13
- isExactActive?: boolean;
14
- }
15
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<LinkBaseProps>, {
16
- as: string;
17
- type: string;
18
- }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<LinkBaseProps>, {
19
- as: string;
20
- type: string;
21
- }>>> & Readonly<{}>, {
22
- type: string;
23
- as: string;
24
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
25
- default?(_: {}): any;
26
- }>;
27
- export default _default;
28
- type __VLS_WithDefaults<P, D> = {
29
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
30
- default: D[K];
31
- }> : P[K];
32
- };
33
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
34
- type __VLS_TypePropsToOption<T> = {
35
- [K in keyof T]-?: {} extends Pick<T, K> ? {
36
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
37
- } : {
38
- type: import('vue').PropType<T[K]>;
39
- required: true;
40
- };
41
- };
42
- type __VLS_WithTemplateSlots<T, S> = T & {
43
- new (): {
44
- $slots: S;
45
- };
46
- };
47
- type __VLS_PrettifyLocal<T> = {
48
- [K in keyof T]: T[K];
49
- } & {};
@@ -1,319 +0,0 @@
1
- import type { DialogRootProps, DialogRootEmits, DialogContentProps } from 'radix-vue';
2
- import type { ButtonProps } from '../types.js';
3
- declare const modal: import("tailwind-variants").TVReturnType<{
4
- transition: {
5
- true: {
6
- overlay: string;
7
- content: string;
8
- };
9
- };
10
- fullscreen: {
11
- true: {
12
- content: string;
13
- };
14
- false: {
15
- content: string;
16
- };
17
- };
18
- }, {
19
- overlay: string;
20
- content: string;
21
- header: string;
22
- body: string;
23
- footer: string;
24
- title: string;
25
- description: string;
26
- close: string;
27
- }, undefined, import("tailwind-variants/dist/config.js").TVConfig<{
28
- transition: {
29
- true: {
30
- overlay: string;
31
- content: string;
32
- };
33
- };
34
- fullscreen: {
35
- true: {
36
- content: string;
37
- };
38
- false: {
39
- content: string;
40
- };
41
- };
42
- }, {
43
- transition: {
44
- true: {
45
- overlay: string;
46
- content: string;
47
- };
48
- };
49
- fullscreen: {
50
- true: {
51
- content: string;
52
- };
53
- false: {
54
- content: string;
55
- };
56
- };
57
- }>, {
58
- transition: {
59
- true: {
60
- overlay: string;
61
- content: string;
62
- };
63
- };
64
- fullscreen: {
65
- true: {
66
- content: string;
67
- };
68
- false: {
69
- content: string;
70
- };
71
- };
72
- }, {
73
- overlay: string;
74
- content: string;
75
- header: string;
76
- body: string;
77
- footer: string;
78
- title: string;
79
- description: string;
80
- close: string;
81
- }, import("tailwind-variants").TVReturnType<{
82
- transition: {
83
- true: {
84
- overlay: string;
85
- content: string;
86
- };
87
- };
88
- fullscreen: {
89
- true: {
90
- content: string;
91
- };
92
- false: {
93
- content: string;
94
- };
95
- };
96
- }, {
97
- overlay: string;
98
- content: string;
99
- header: string;
100
- body: string;
101
- footer: string;
102
- title: string;
103
- description: string;
104
- close: string;
105
- }, undefined, import("tailwind-variants/dist/config.js").TVConfig<{
106
- transition: {
107
- true: {
108
- overlay: string;
109
- content: string;
110
- };
111
- };
112
- fullscreen: {
113
- true: {
114
- content: string;
115
- };
116
- false: {
117
- content: string;
118
- };
119
- };
120
- }, {
121
- transition: {
122
- true: {
123
- overlay: string;
124
- content: string;
125
- };
126
- };
127
- fullscreen: {
128
- true: {
129
- content: string;
130
- };
131
- false: {
132
- content: string;
133
- };
134
- };
135
- }>, {
136
- transition: {
137
- true: {
138
- overlay: string;
139
- content: string;
140
- };
141
- };
142
- fullscreen: {
143
- true: {
144
- content: string;
145
- };
146
- false: {
147
- content: string;
148
- };
149
- };
150
- }, {
151
- overlay: string;
152
- content: string;
153
- header: string;
154
- body: string;
155
- footer: string;
156
- title: string;
157
- description: string;
158
- close: string;
159
- }, import("tailwind-variants").TVReturnType<{
160
- transition: {
161
- true: {
162
- overlay: string;
163
- content: string;
164
- };
165
- };
166
- fullscreen: {
167
- true: {
168
- content: string;
169
- };
170
- false: {
171
- content: string;
172
- };
173
- };
174
- }, {
175
- overlay: string;
176
- content: string;
177
- header: string;
178
- body: string;
179
- footer: string;
180
- title: string;
181
- description: string;
182
- close: string;
183
- }, undefined, import("tailwind-variants/dist/config.js").TVConfig<{
184
- transition: {
185
- true: {
186
- overlay: string;
187
- content: string;
188
- };
189
- };
190
- fullscreen: {
191
- true: {
192
- content: string;
193
- };
194
- false: {
195
- content: string;
196
- };
197
- };
198
- }, {
199
- transition: {
200
- true: {
201
- overlay: string;
202
- content: string;
203
- };
204
- };
205
- fullscreen: {
206
- true: {
207
- content: string;
208
- };
209
- false: {
210
- content: string;
211
- };
212
- };
213
- }>, unknown, unknown, undefined>>>;
214
- export interface ModalProps extends DialogRootProps {
215
- title?: string;
216
- description?: string;
217
- /** The content of the modal. */
218
- content?: Omit<DialogContentProps, 'as' | 'asChild' | 'forceMount'>;
219
- /**
220
- * Render an overlay behind the modal.
221
- * @defaultValue true
222
- */
223
- overlay?: boolean;
224
- /**
225
- * Animate the modal when opening or closing.
226
- * @defaultValue true
227
- */
228
- transition?: boolean;
229
- /**
230
- * When `true`, the modal will take up the full screen.
231
- * @defaultValue false
232
- */
233
- fullscreen?: boolean;
234
- /**
235
- * Render the modal in a portal.
236
- * @defaultValue true
237
- */
238
- portal?: boolean;
239
- /**
240
- * Display a close button to dismiss the modal.
241
- * `{ size: 'md', color: 'gray', variant: 'ghost' }`{lang="ts-type"}
242
- * @defaultValue true
243
- */
244
- close?: ButtonProps | boolean;
245
- /**
246
- * The icon displayed in the close button.
247
- * @defaultValue appConfig.ui.icons.close
248
- */
249
- closeIcon?: string;
250
- /**
251
- * When `true`, the modal will not close when clicking outside.
252
- * @defaultValue false
253
- */
254
- preventClose?: boolean;
255
- class?: any;
256
- ui?: Partial<typeof modal.slots>;
257
- }
258
- export interface ModalEmits extends DialogRootEmits {
259
- }
260
- export interface ModalSlots {
261
- default(props: {
262
- open: boolean;
263
- }): any;
264
- content(props?: {}): any;
265
- header(props?: {}): any;
266
- title(props?: {}): any;
267
- description(props?: {}): any;
268
- close(props: {
269
- ui: any;
270
- }): any;
271
- body(props?: {}): any;
272
- footer(props?: {}): any;
273
- }
274
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ModalProps>, {
275
- close: boolean;
276
- portal: boolean;
277
- overlay: boolean;
278
- transition: boolean;
279
- modal: boolean;
280
- }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
281
- "update:open": (value: boolean) => void;
282
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ModalProps>, {
283
- close: boolean;
284
- portal: boolean;
285
- overlay: boolean;
286
- transition: boolean;
287
- modal: boolean;
288
- }>>> & Readonly<{
289
- "onUpdate:open"?: ((value: boolean) => any) | undefined;
290
- }>, {
291
- close: ButtonProps | boolean;
292
- transition: boolean;
293
- overlay: boolean;
294
- portal: boolean;
295
- modal: boolean;
296
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, Readonly<ModalSlots> & ModalSlots>;
297
- export default _default;
298
- type __VLS_WithDefaults<P, D> = {
299
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
300
- default: D[K];
301
- }> : P[K];
302
- };
303
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
304
- type __VLS_TypePropsToOption<T> = {
305
- [K in keyof T]-?: {} extends Pick<T, K> ? {
306
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
307
- } : {
308
- type: import('vue').PropType<T[K]>;
309
- required: true;
310
- };
311
- };
312
- type __VLS_WithTemplateSlots<T, S> = T & {
313
- new (): {
314
- $slots: S;
315
- };
316
- };
317
- type __VLS_PrettifyLocal<T> = {
318
- [K in keyof T]: T[K];
319
- } & {};