@nuxt/ui 2.17.0 → 2.18.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 (234) hide show
  1. package/dist/module.d.mts +3 -1988
  2. package/dist/module.d.ts +3 -1988
  3. package/dist/module.json +6 -2
  4. package/dist/module.mjs +6 -71
  5. package/dist/runtime/components/data/Table.vue +53 -15
  6. package/dist/runtime/components/data/Table.vue.d.ts +249 -50
  7. package/dist/runtime/components/elements/Accordion.vue.d.ts +140 -14
  8. package/dist/runtime/components/elements/Alert.vue +1 -1
  9. package/dist/runtime/components/elements/Alert.vue.d.ts +106 -23
  10. package/dist/runtime/components/elements/Avatar.vue.d.ts +146 -25
  11. package/dist/runtime/components/elements/AvatarGroup.d.ts +20 -11
  12. package/dist/runtime/components/elements/{AvatarGroup.mjs → AvatarGroup.js} +2 -2
  13. package/dist/runtime/components/elements/Badge.vue.d.ts +53 -16
  14. package/dist/runtime/components/elements/Button.vue.d.ts +259 -96
  15. package/dist/runtime/components/elements/ButtonGroup.d.ts +113 -9
  16. package/dist/runtime/components/elements/{ButtonGroup.mjs → ButtonGroup.js} +3 -3
  17. package/dist/runtime/components/elements/Carousel.vue.d.ts +75 -20
  18. package/dist/runtime/components/elements/Chip.vue.d.ts +95 -23
  19. package/dist/runtime/components/elements/Dropdown.vue +3 -6
  20. package/dist/runtime/components/elements/Dropdown.vue.d.ts +135 -16
  21. package/dist/runtime/components/elements/Icon.vue +16 -15
  22. package/dist/runtime/components/elements/Icon.vue.d.ts +33 -10
  23. package/dist/runtime/components/elements/Kbd.vue.d.ts +45 -10
  24. package/dist/runtime/components/elements/Link.vue.d.ts +72 -72
  25. package/dist/runtime/components/elements/Meter.vue +1 -1
  26. package/dist/runtime/components/elements/Meter.vue.d.ts +179 -23
  27. package/dist/runtime/components/elements/MeterGroup.d.ts +72 -15
  28. package/dist/runtime/components/elements/{MeterGroup.mjs → MeterGroup.js} +3 -3
  29. package/dist/runtime/components/elements/Progress.vue +7 -2
  30. package/dist/runtime/components/elements/Progress.vue.d.ts +188 -32
  31. package/dist/runtime/components/forms/Checkbox.vue +5 -3
  32. package/dist/runtime/components/forms/Checkbox.vue.d.ts +73 -32
  33. package/dist/runtime/components/forms/Form.vue +1 -2
  34. package/dist/runtime/components/forms/Form.vue.d.ts +11 -10
  35. package/dist/runtime/components/forms/FormGroup.vue +1 -1
  36. package/dist/runtime/components/forms/FormGroup.vue.d.ts +78 -25
  37. package/dist/runtime/components/forms/Input.vue +1 -1
  38. package/dist/runtime/components/forms/Input.vue.d.ts +272 -55
  39. package/dist/runtime/components/forms/InputMenu.vue +11 -8
  40. package/dist/runtime/components/forms/InputMenu.vue.d.ts +431 -81
  41. package/dist/runtime/components/forms/Radio.vue +5 -3
  42. package/dist/runtime/components/forms/Radio.vue.d.ts +71 -32
  43. package/dist/runtime/components/forms/RadioGroup.vue +11 -3
  44. package/dist/runtime/components/forms/RadioGroup.vue.d.ts +83 -25
  45. package/dist/runtime/components/forms/Range.vue.d.ts +153 -24
  46. package/dist/runtime/components/forms/Select.vue +1 -1
  47. package/dist/runtime/components/forms/Select.vue.d.ts +272 -49
  48. package/dist/runtime/components/forms/SelectMenu.vue +49 -23
  49. package/dist/runtime/components/forms/SelectMenu.vue.d.ts +449 -84
  50. package/dist/runtime/components/forms/Textarea.vue.d.ts +258 -43
  51. package/dist/runtime/components/forms/Toggle.vue.d.ts +152 -25
  52. package/dist/runtime/components/layout/Card.vue.d.ts +54 -4
  53. package/dist/runtime/components/layout/Container.vue.d.ts +18 -4
  54. package/dist/runtime/components/layout/Divider.vue.d.ts +121 -16
  55. package/dist/runtime/components/layout/Skeleton.vue +5 -1
  56. package/dist/runtime/components/layout/Skeleton.vue.d.ts +27 -4
  57. package/dist/runtime/components/navigation/Breadcrumb.vue.d.ts +52 -9
  58. package/dist/runtime/components/navigation/CommandPalette.vue +7 -4
  59. package/dist/runtime/components/navigation/CommandPalette.vue.d.ts +193 -35
  60. package/dist/runtime/components/navigation/CommandPaletteGroup.vue.d.ts +5 -7
  61. package/dist/runtime/components/navigation/HorizontalNavigation.vue.d.ts +64 -9
  62. package/dist/runtime/components/navigation/Pagination.vue +2 -4
  63. package/dist/runtime/components/navigation/Pagination.vue.d.ts +83 -11
  64. package/dist/runtime/components/navigation/Tabs.vue +10 -0
  65. package/dist/runtime/components/navigation/Tabs.vue.d.ts +85 -14
  66. package/dist/runtime/components/navigation/VerticalNavigation.vue.d.ts +78 -9
  67. package/dist/runtime/components/overlays/ContextMenu.vue.d.ts +71 -8
  68. package/dist/runtime/components/overlays/Modal.vue.d.ts +85 -11
  69. package/dist/runtime/components/overlays/Notification.vue +1 -1
  70. package/dist/runtime/components/overlays/Notification.vue.d.ts +127 -26
  71. package/dist/runtime/components/overlays/Notifications.vue.d.ts +31 -16
  72. package/dist/runtime/components/overlays/Popover.vue +3 -6
  73. package/dist/runtime/components/overlays/Popover.vue.d.ts +110 -15
  74. package/dist/runtime/components/overlays/Slideover.vue.d.ts +86 -14
  75. package/dist/runtime/components/overlays/Tooltip.vue.d.ts +90 -15
  76. package/dist/runtime/composables/{defineShortcuts.mjs → defineShortcuts.js} +1 -1
  77. package/dist/runtime/composables/{useButtonGroup.mjs → useButtonGroup.js} +8 -9
  78. package/dist/runtime/composables/useCopyToClipboard.d.ts +1 -1
  79. package/dist/runtime/composables/{useCopyToClipboard.mjs → useCopyToClipboard.js} +1 -1
  80. package/dist/runtime/composables/useFormGroup.d.ts +5 -5
  81. package/dist/runtime/composables/useFormGroup.js +49 -0
  82. package/dist/runtime/composables/useModal.d.ts +3 -3
  83. package/dist/runtime/composables/{useModal.mjs → useModal.js} +2 -4
  84. package/dist/runtime/composables/usePopper.d.ts +90 -54
  85. package/dist/runtime/composables/useShortcuts.d.ts +4 -4
  86. package/dist/runtime/composables/useSlideover.d.ts +3 -3
  87. package/dist/runtime/composables/{useSlideover.mjs → useSlideover.js} +2 -4
  88. package/dist/runtime/composables/useTimer.d.ts +1 -1
  89. package/dist/runtime/composables/useToast.d.ts +11 -11
  90. package/dist/runtime/composables/useUI.d.ts +1 -1
  91. package/dist/runtime/composables/{useUI.mjs → useUI.js} +1 -1
  92. package/dist/runtime/plugins/colors.d.ts +1 -1
  93. package/dist/runtime/plugins/{colors.mjs → colors.js} +1 -1
  94. package/dist/runtime/plugins/modals.d.ts +1 -1
  95. package/dist/runtime/plugins/{modals.mjs → modals.js} +1 -1
  96. package/dist/runtime/plugins/slideovers.d.ts +1 -1
  97. package/dist/runtime/plugins/{slideovers.mjs → slideovers.js} +1 -1
  98. package/dist/runtime/types/accordion.d.ts +6 -7
  99. package/dist/runtime/types/accordion.js +0 -0
  100. package/dist/runtime/types/alert.d.ts +8 -10
  101. package/dist/runtime/types/alert.js +0 -0
  102. package/dist/runtime/types/avatar.d.ts +13 -15
  103. package/dist/runtime/types/avatar.js +0 -0
  104. package/dist/runtime/types/badge.d.ts +11 -13
  105. package/dist/runtime/types/badge.js +0 -0
  106. package/dist/runtime/types/breadcrumb.d.ts +6 -8
  107. package/dist/runtime/types/breadcrumb.js +0 -0
  108. package/dist/runtime/types/button.d.ts +27 -29
  109. package/dist/runtime/types/button.js +0 -0
  110. package/dist/runtime/types/chip.d.ts +11 -13
  111. package/dist/runtime/types/chip.js +0 -0
  112. package/dist/runtime/types/clipboard.d.ts +7 -1
  113. package/dist/runtime/types/clipboard.js +0 -0
  114. package/dist/runtime/types/command-palette.d.ts +23 -24
  115. package/dist/runtime/types/command-palette.js +0 -0
  116. package/dist/runtime/types/component.d.ts +17 -14
  117. package/dist/runtime/types/component.js +0 -0
  118. package/dist/runtime/types/divider.d.ts +2 -3
  119. package/dist/runtime/types/divider.js +0 -0
  120. package/dist/runtime/types/dropdown.d.ts +12 -13
  121. package/dist/runtime/types/dropdown.js +0 -0
  122. package/dist/runtime/types/form-group.d.ts +4 -5
  123. package/dist/runtime/types/form-group.js +0 -0
  124. package/dist/runtime/types/form.d.ts +29 -28
  125. package/dist/runtime/types/form.js +0 -0
  126. package/dist/runtime/types/horizontal-navigation.d.ts +10 -11
  127. package/dist/runtime/types/horizontal-navigation.js +0 -0
  128. package/dist/runtime/types/index.d.ts +31 -31
  129. package/dist/runtime/types/index.js +31 -0
  130. package/dist/runtime/types/input.d.ts +7 -8
  131. package/dist/runtime/types/input.js +0 -0
  132. package/dist/runtime/types/kbd.d.ts +4 -5
  133. package/dist/runtime/types/kbd.js +0 -0
  134. package/dist/runtime/types/link.d.ts +9 -10
  135. package/dist/runtime/types/link.js +0 -0
  136. package/dist/runtime/types/meter.d.ts +4 -5
  137. package/dist/runtime/types/meter.js +0 -0
  138. package/dist/runtime/types/modal.d.ts +13 -15
  139. package/dist/runtime/types/modal.js +0 -0
  140. package/dist/runtime/types/notification.d.ts +17 -20
  141. package/dist/runtime/types/notification.js +0 -0
  142. package/dist/runtime/types/popper.d.ts +13 -15
  143. package/dist/runtime/types/popper.js +0 -0
  144. package/dist/runtime/types/progress.d.ts +5 -6
  145. package/dist/runtime/types/progress.js +0 -0
  146. package/dist/runtime/types/range.d.ts +6 -7
  147. package/dist/runtime/types/range.js +0 -0
  148. package/dist/runtime/types/select.d.ts +7 -8
  149. package/dist/runtime/types/select.js +0 -0
  150. package/dist/runtime/types/slideover.d.ts +10 -12
  151. package/dist/runtime/types/slideover.js +0 -0
  152. package/dist/runtime/types/tabs.d.ts +6 -5
  153. package/dist/runtime/types/tabs.js +0 -0
  154. package/dist/runtime/types/textarea.d.ts +7 -8
  155. package/dist/runtime/types/textarea.js +0 -0
  156. package/dist/runtime/types/toggle.d.ts +6 -7
  157. package/dist/runtime/types/toggle.js +0 -0
  158. package/dist/runtime/types/tooltip.d.ts +5 -5
  159. package/dist/runtime/types/tooltip.js +0 -0
  160. package/dist/runtime/types/utils.d.ts +15 -27
  161. package/dist/runtime/types/utils.js +0 -0
  162. package/dist/runtime/types/vertical-navigation.d.ts +10 -11
  163. package/dist/runtime/types/vertical-navigation.js +0 -0
  164. package/dist/runtime/ui.config/data/table.d.ts +10 -0
  165. package/dist/runtime/ui.config/data/{table.mjs → table.js} +10 -0
  166. package/dist/runtime/ui.config/elements/accordion.d.ts +1 -0
  167. package/dist/runtime/ui.config/elements/{accordion.mjs → accordion.js} +3 -2
  168. package/dist/runtime/ui.config/elements/alert.d.ts +2 -2
  169. package/dist/runtime/ui.config/elements/avatar.d.ts +2 -2
  170. package/dist/runtime/ui.config/elements/{carousel.mjs → carousel.js} +1 -1
  171. package/dist/runtime/ui.config/elements/{dropdown.mjs → dropdown.js} +1 -1
  172. package/dist/runtime/ui.config/forms/{inputMenu.mjs → inputMenu.js} +1 -1
  173. package/dist/runtime/ui.config/forms/{select.mjs → select.js} +1 -1
  174. package/dist/runtime/ui.config/forms/{selectMenu.mjs → selectMenu.js} +2 -2
  175. package/dist/runtime/ui.config/forms/{textarea.mjs → textarea.js} +1 -1
  176. package/dist/runtime/ui.config/forms/toggle.d.ts +2 -2
  177. package/dist/runtime/ui.config/index.d.ts +43 -43
  178. package/dist/runtime/ui.config/index.js +43 -0
  179. package/dist/runtime/ui.config/navigation/{breadcrumb.mjs → breadcrumb.js} +2 -2
  180. package/dist/runtime/ui.config/navigation/commandPalette.d.ts +1 -1
  181. package/dist/runtime/ui.config/navigation/tabs.d.ts +1 -0
  182. package/dist/runtime/ui.config/navigation/{tabs.mjs → tabs.js} +2 -1
  183. package/dist/runtime/ui.config/overlays/{contextMenu.mjs → contextMenu.js} +1 -1
  184. package/dist/runtime/ui.config/overlays/{modal.mjs → modal.js} +2 -2
  185. package/dist/runtime/ui.config/overlays/notification.d.ts +1 -1
  186. package/dist/runtime/ui.config/overlays/{popover.mjs → popover.js} +1 -1
  187. package/dist/runtime/ui.config/overlays/{slideover.mjs → slideover.js} +2 -2
  188. package/dist/runtime/ui.config/overlays/{tooltip.mjs → tooltip.js} +1 -1
  189. package/dist/runtime/utils/colors.d.ts +2 -2
  190. package/dist/runtime/utils/{colors.mjs → colors.js} +1 -1
  191. package/dist/runtime/utils/index.d.ts +4 -4
  192. package/dist/runtime/utils/{index.mjs → index.js} +2 -2
  193. package/dist/runtime/utils/link.d.ts +26 -24
  194. package/dist/runtime/utils/{link.mjs → link.js} +1 -1
  195. package/dist/types.d.mts +1 -16
  196. package/dist/types.d.ts +1 -16
  197. package/package.json +19 -21
  198. package/dist/runtime/composables/useFormGroup.mjs +0 -45
  199. package/dist/runtime/ui.config/index.mjs +0 -43
  200. /package/dist/runtime/composables/{useCarouselScroll.mjs → useCarouselScroll.js} +0 -0
  201. /package/dist/runtime/composables/{usePopper.mjs → usePopper.js} +0 -0
  202. /package/dist/runtime/composables/{useShortcuts.mjs → useShortcuts.js} +0 -0
  203. /package/dist/runtime/composables/{useTimer.mjs → useTimer.js} +0 -0
  204. /package/dist/runtime/composables/{useToast.mjs → useToast.js} +0 -0
  205. /package/dist/runtime/ui.config/elements/{alert.mjs → alert.js} +0 -0
  206. /package/dist/runtime/ui.config/elements/{avatar.mjs → avatar.js} +0 -0
  207. /package/dist/runtime/ui.config/elements/{avatarGroup.mjs → avatarGroup.js} +0 -0
  208. /package/dist/runtime/ui.config/elements/{badge.mjs → badge.js} +0 -0
  209. /package/dist/runtime/ui.config/elements/{button.mjs → button.js} +0 -0
  210. /package/dist/runtime/ui.config/elements/{buttonGroup.mjs → buttonGroup.js} +0 -0
  211. /package/dist/runtime/ui.config/elements/{chip.mjs → chip.js} +0 -0
  212. /package/dist/runtime/ui.config/elements/{kbd.mjs → kbd.js} +0 -0
  213. /package/dist/runtime/ui.config/elements/{meter.mjs → meter.js} +0 -0
  214. /package/dist/runtime/ui.config/elements/{meterGroup.mjs → meterGroup.js} +0 -0
  215. /package/dist/runtime/ui.config/elements/{progress.mjs → progress.js} +0 -0
  216. /package/dist/runtime/ui.config/forms/{checkbox.mjs → checkbox.js} +0 -0
  217. /package/dist/runtime/ui.config/forms/{formGroup.mjs → formGroup.js} +0 -0
  218. /package/dist/runtime/ui.config/forms/{input.mjs → input.js} +0 -0
  219. /package/dist/runtime/ui.config/forms/{radio.mjs → radio.js} +0 -0
  220. /package/dist/runtime/ui.config/forms/{radioGroup.mjs → radioGroup.js} +0 -0
  221. /package/dist/runtime/ui.config/forms/{range.mjs → range.js} +0 -0
  222. /package/dist/runtime/ui.config/forms/{toggle.mjs → toggle.js} +0 -0
  223. /package/dist/runtime/ui.config/layout/{card.mjs → card.js} +0 -0
  224. /package/dist/runtime/ui.config/layout/{container.mjs → container.js} +0 -0
  225. /package/dist/runtime/ui.config/layout/{divider.mjs → divider.js} +0 -0
  226. /package/dist/runtime/ui.config/layout/{skeleton.mjs → skeleton.js} +0 -0
  227. /package/dist/runtime/ui.config/navigation/{commandPalette.mjs → commandPalette.js} +0 -0
  228. /package/dist/runtime/ui.config/navigation/{horizontalNavigation.mjs → horizontalNavigation.js} +0 -0
  229. /package/dist/runtime/ui.config/navigation/{pagination.mjs → pagination.js} +0 -0
  230. /package/dist/runtime/ui.config/navigation/{verticalNavigation.mjs → verticalNavigation.js} +0 -0
  231. /package/dist/runtime/ui.config/overlays/{notification.mjs → notification.js} +0 -0
  232. /package/dist/runtime/ui.config/overlays/{notifications.mjs → notifications.js} +0 -0
  233. /package/dist/runtime/ui.config/{popper.mjs → popper.js} +0 -0
  234. /package/dist/runtime/utils/{lodash.mjs → lodash.js} +0 -0
@@ -1,5 +1,85 @@
1
1
  import type { PropType, AriaAttributes } from 'vue';
2
- import type { Button, ProgressAnimation } from '../../types';
2
+ import type { Strategy, Button, ProgressColor, ProgressAnimation } from '../../types.js';
3
+ declare const config: {
4
+ wrapper: string;
5
+ base: string;
6
+ divide: string;
7
+ thead: string;
8
+ tbody: string;
9
+ caption: string;
10
+ tr: {
11
+ base: string;
12
+ selected: string;
13
+ active: string;
14
+ };
15
+ th: {
16
+ base: string;
17
+ padding: string;
18
+ color: string;
19
+ font: string;
20
+ size: string;
21
+ };
22
+ td: {
23
+ base: string;
24
+ padding: string;
25
+ color: string;
26
+ font: string;
27
+ size: string;
28
+ };
29
+ checkbox: {
30
+ padding: string;
31
+ };
32
+ loadingState: {
33
+ wrapper: string;
34
+ label: string;
35
+ icon: string;
36
+ };
37
+ emptyState: {
38
+ wrapper: string;
39
+ label: string;
40
+ icon: string;
41
+ };
42
+ expand: {
43
+ icon: string;
44
+ };
45
+ progress: {
46
+ wrapper: string;
47
+ };
48
+ default: {
49
+ sortAscIcon: string;
50
+ sortDescIcon: string;
51
+ sortButton: {
52
+ icon: string;
53
+ trailing: boolean;
54
+ square: boolean;
55
+ color: "gray";
56
+ variant: "ghost";
57
+ class: string;
58
+ };
59
+ expandButton: {
60
+ icon: string;
61
+ color: "gray";
62
+ variant: "ghost";
63
+ size: "xs";
64
+ class: string;
65
+ };
66
+ checkbox: {
67
+ color: "primary";
68
+ };
69
+ progress: {
70
+ color: "primary";
71
+ animation: "carousel";
72
+ };
73
+ loadingState: {
74
+ icon: string;
75
+ label: string;
76
+ };
77
+ emptyState: {
78
+ icon: string;
79
+ label: string;
80
+ };
81
+ };
82
+ };
3
83
  declare function defaultComparator<T>(a: T, z: T): boolean;
4
84
  interface Column {
5
85
  key: string;
@@ -7,12 +87,13 @@ interface Column {
7
87
  sort?: (a: any, b: any, direction: 'asc' | 'desc') => number;
8
88
  direction?: 'asc' | 'desc';
9
89
  class?: string;
90
+ rowClass?: string;
10
91
  [key: string]: any;
11
92
  }
12
93
  declare const _default: import("vue").DefineComponent<{
13
94
  modelValue: {
14
95
  type: ArrayConstructor;
15
- default: null;
96
+ default: any;
16
97
  };
17
98
  by: {
18
99
  type: (StringConstructor | FunctionConstructor)[];
@@ -22,11 +103,11 @@ declare const _default: import("vue").DefineComponent<{
22
103
  type: PropType<{
23
104
  [key: string]: any;
24
105
  }[]>;
25
- default: () => never[];
106
+ default: () => any[];
26
107
  };
27
108
  columns: {
28
109
  type: PropType<Column[]>;
29
- default: null;
110
+ default: any;
30
111
  };
31
112
  columnAttribute: {
32
113
  type: StringConstructor;
@@ -35,12 +116,12 @@ declare const _default: import("vue").DefineComponent<{
35
116
  sort: {
36
117
  type: PropType<{
37
118
  column: string;
38
- direction: 'asc' | 'desc';
119
+ direction: "asc" | "desc";
39
120
  }>;
40
121
  default: () => {};
41
122
  };
42
123
  sortMode: {
43
- type: PropType<"auto" | "manual">;
124
+ type: PropType<"manual" | "auto">;
44
125
  default: string;
45
126
  };
46
127
  sortButton: {
@@ -49,11 +130,15 @@ declare const _default: import("vue").DefineComponent<{
49
130
  };
50
131
  sortAscIcon: {
51
132
  type: StringConstructor;
52
- default: () => any;
133
+ default: () => string;
53
134
  };
54
135
  sortDescIcon: {
55
136
  type: StringConstructor;
56
- default: () => any;
137
+ default: () => string;
138
+ };
139
+ expandButton: {
140
+ type: PropType<Button>;
141
+ default: () => Button;
57
142
  };
58
143
  loading: {
59
144
  type: BooleanConstructor;
@@ -64,42 +149,132 @@ declare const _default: import("vue").DefineComponent<{
64
149
  icon: string;
65
150
  label: string;
66
151
  }>;
67
- default: () => any;
152
+ default: () => {
153
+ icon: string;
154
+ label: string;
155
+ };
68
156
  };
69
157
  emptyState: {
70
158
  type: PropType<{
71
159
  icon: string;
72
160
  label: string;
73
161
  }>;
74
- default: () => any;
162
+ default: () => {
163
+ icon: string;
164
+ label: string;
165
+ };
75
166
  };
76
167
  caption: {
77
168
  type: StringConstructor;
78
- default: null;
169
+ default: any;
79
170
  };
80
171
  progress: {
81
172
  type: PropType<{
82
- color: any;
173
+ color: ProgressColor;
83
174
  animation: ProgressAnimation;
84
175
  }>;
85
- default: () => any;
176
+ default: () => {
177
+ color: "primary";
178
+ animation: "carousel";
179
+ };
86
180
  };
87
181
  class: {
88
182
  type: PropType<any>;
89
183
  default: () => string;
90
184
  };
91
185
  ui: {
92
- type: PropType<any>;
186
+ type: PropType<Partial<typeof config> & {
187
+ strategy?: Strategy;
188
+ }>;
93
189
  default: () => {};
94
190
  };
95
191
  }, {
96
- ui: import("vue").ComputedRef<any>;
192
+ ui: import("vue").ComputedRef<{
193
+ wrapper: string;
194
+ base: string;
195
+ divide: string;
196
+ thead: string;
197
+ tbody: string;
198
+ caption: string;
199
+ tr: {
200
+ base: string;
201
+ selected: string;
202
+ active: string;
203
+ };
204
+ th: {
205
+ base: string;
206
+ padding: string;
207
+ color: string;
208
+ font: string;
209
+ size: string;
210
+ };
211
+ td: {
212
+ base: string;
213
+ padding: string;
214
+ color: string;
215
+ font: string;
216
+ size: string;
217
+ };
218
+ checkbox: {
219
+ padding: string;
220
+ };
221
+ loadingState: {
222
+ wrapper: string;
223
+ label: string;
224
+ icon: string;
225
+ };
226
+ emptyState: {
227
+ wrapper: string;
228
+ label: string;
229
+ icon: string;
230
+ };
231
+ expand: {
232
+ icon: string;
233
+ };
234
+ progress: {
235
+ wrapper: string;
236
+ };
237
+ default: {
238
+ sortAscIcon: string;
239
+ sortDescIcon: string;
240
+ sortButton: {
241
+ icon: string;
242
+ trailing: boolean;
243
+ square: boolean;
244
+ color: "gray";
245
+ variant: "ghost";
246
+ class: string;
247
+ };
248
+ expandButton: {
249
+ icon: string;
250
+ color: "gray";
251
+ variant: "ghost";
252
+ size: "xs";
253
+ class: string;
254
+ };
255
+ checkbox: {
256
+ color: "primary";
257
+ };
258
+ progress: {
259
+ color: "primary";
260
+ animation: "carousel";
261
+ };
262
+ loadingState: {
263
+ icon: string;
264
+ label: string;
265
+ };
266
+ emptyState: {
267
+ icon: string;
268
+ label: string;
269
+ };
270
+ };
271
+ }>;
97
272
  attrs: import("vue").ComputedRef<Pick<{
98
273
  [x: string]: unknown;
99
274
  }, string>>;
100
- sort: import("vue").WritableComputedRef<{
275
+ sort: import("vue").Ref<{
101
276
  column: string;
102
- direction: 'asc' | 'desc';
277
+ direction: "asc" | "desc";
103
278
  }>;
104
279
  columns: import("vue").ComputedRef<Column[]>;
105
280
  rows: import("vue").ComputedRef<{
@@ -107,21 +282,29 @@ declare const _default: import("vue").DefineComponent<{
107
282
  }[]>;
108
283
  selected: import("vue").WritableComputedRef<unknown[]>;
109
284
  indeterminate: import("vue").ComputedRef<boolean>;
110
- emptyState: import("vue").ComputedRef<any>;
111
- loadingState: import("vue").ComputedRef<any>;
285
+ emptyState: import("vue").ComputedRef<{
286
+ icon: string;
287
+ label: string;
288
+ }>;
289
+ loadingState: import("vue").ComputedRef<{
290
+ icon: string;
291
+ label: string;
292
+ }>;
293
+ openedRows: import("vue").Ref<any[]>;
112
294
  isSelected: (row: any) => boolean;
113
295
  onSort: (column: {
114
296
  key: string;
115
- direction?: 'asc' | 'desc';
297
+ direction?: "asc" | "desc";
116
298
  }) => void;
117
299
  onSelect: (row: any) => void;
118
300
  onChange: (checked: boolean) => void;
119
301
  getRowData: (row: Object, rowKey: string | string[], defaultValue?: any) => any;
120
- getAriaSort: (column: Column) => AriaAttributes['aria-sort'];
302
+ toggleOpened: (index: number) => void;
303
+ getAriaSort: (column: Column) => AriaAttributes["aria-sort"];
121
304
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:sort")[], "update:modelValue" | "update:sort", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
122
305
  modelValue: {
123
306
  type: ArrayConstructor;
124
- default: null;
307
+ default: any;
125
308
  };
126
309
  by: {
127
310
  type: (StringConstructor | FunctionConstructor)[];
@@ -131,11 +314,11 @@ declare const _default: import("vue").DefineComponent<{
131
314
  type: PropType<{
132
315
  [key: string]: any;
133
316
  }[]>;
134
- default: () => never[];
317
+ default: () => any[];
135
318
  };
136
319
  columns: {
137
320
  type: PropType<Column[]>;
138
- default: null;
321
+ default: any;
139
322
  };
140
323
  columnAttribute: {
141
324
  type: StringConstructor;
@@ -144,12 +327,12 @@ declare const _default: import("vue").DefineComponent<{
144
327
  sort: {
145
328
  type: PropType<{
146
329
  column: string;
147
- direction: 'asc' | 'desc';
330
+ direction: "asc" | "desc";
148
331
  }>;
149
332
  default: () => {};
150
333
  };
151
334
  sortMode: {
152
- type: PropType<"auto" | "manual">;
335
+ type: PropType<"manual" | "auto">;
153
336
  default: string;
154
337
  };
155
338
  sortButton: {
@@ -158,11 +341,15 @@ declare const _default: import("vue").DefineComponent<{
158
341
  };
159
342
  sortAscIcon: {
160
343
  type: StringConstructor;
161
- default: () => any;
344
+ default: () => string;
162
345
  };
163
346
  sortDescIcon: {
164
347
  type: StringConstructor;
165
- default: () => any;
348
+ default: () => string;
349
+ };
350
+ expandButton: {
351
+ type: PropType<Button>;
352
+ default: () => Button;
166
353
  };
167
354
  loading: {
168
355
  type: BooleanConstructor;
@@ -173,52 +360,71 @@ declare const _default: import("vue").DefineComponent<{
173
360
  icon: string;
174
361
  label: string;
175
362
  }>;
176
- default: () => any;
363
+ default: () => {
364
+ icon: string;
365
+ label: string;
366
+ };
177
367
  };
178
368
  emptyState: {
179
369
  type: PropType<{
180
370
  icon: string;
181
371
  label: string;
182
372
  }>;
183
- default: () => any;
373
+ default: () => {
374
+ icon: string;
375
+ label: string;
376
+ };
184
377
  };
185
378
  caption: {
186
379
  type: StringConstructor;
187
- default: null;
380
+ default: any;
188
381
  };
189
382
  progress: {
190
383
  type: PropType<{
191
- color: any;
384
+ color: ProgressColor;
192
385
  animation: ProgressAnimation;
193
386
  }>;
194
- default: () => any;
387
+ default: () => {
388
+ color: "primary";
389
+ animation: "carousel";
390
+ };
195
391
  };
196
392
  class: {
197
393
  type: PropType<any>;
198
394
  default: () => string;
199
395
  };
200
396
  ui: {
201
- type: PropType<any>;
397
+ type: PropType<Partial<typeof config> & {
398
+ strategy?: Strategy;
399
+ }>;
202
400
  default: () => {};
203
401
  };
204
402
  }>> & {
205
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
206
- "onUpdate:sort"?: ((...args: any[]) => any) | undefined;
403
+ "onUpdate:modelValue"?: (...args: any[]) => any;
404
+ "onUpdate:sort"?: (...args: any[]) => any;
207
405
  }, {
208
406
  sort: {
209
407
  column: string;
210
- direction: 'asc' | 'desc';
408
+ direction: "asc" | "desc";
211
409
  };
410
+ class: any;
411
+ ui: {};
212
412
  caption: string;
413
+ columns: Column[];
213
414
  progress: {
214
- color: any;
415
+ color: ProgressColor;
215
416
  animation: ProgressAnimation;
216
417
  };
217
- class: any;
218
- columns: Column[];
219
- ui: any;
220
- loading: boolean;
221
418
  modelValue: unknown[];
419
+ loading: boolean;
420
+ loadingState: {
421
+ icon: string;
422
+ label: string;
423
+ };
424
+ emptyState: {
425
+ icon: string;
426
+ label: string;
427
+ };
222
428
  by: string | Function;
223
429
  rows: {
224
430
  [key: string]: any;
@@ -228,13 +434,6 @@ declare const _default: import("vue").DefineComponent<{
228
434
  sortButton: Button;
229
435
  sortAscIcon: string;
230
436
  sortDescIcon: string;
231
- loadingState: {
232
- icon: string;
233
- label: string;
234
- };
235
- emptyState: {
236
- icon: string;
237
- label: string;
238
- };
437
+ expandButton: Button;
239
438
  }, {}>;
240
439
  export default _default;
@@ -1,10 +1,32 @@
1
1
  import type { PropType } from 'vue';
2
- import { omit } from '../../utils';
3
- import type { AccordionItem } from '../../types';
2
+ import { omit } from '../../utils.js';
3
+ import type { AccordionItem, Strategy } from '../../types.js';
4
+ declare const config: {
5
+ wrapper: string;
6
+ container: string;
7
+ item: {
8
+ base: string;
9
+ size: string;
10
+ color: string;
11
+ padding: string;
12
+ icon: string;
13
+ };
14
+ transition: {
15
+ enterActiveClass: string;
16
+ leaveActiveClass: string;
17
+ };
18
+ default: {
19
+ openIcon: string;
20
+ closeIcon: string;
21
+ class: string;
22
+ variant: "soft";
23
+ truncate: boolean;
24
+ };
25
+ };
4
26
  declare const _default: import("vue").DefineComponent<{
5
27
  items: {
6
28
  type: PropType<AccordionItem[]>;
7
- default: () => never[];
29
+ default: () => any[];
8
30
  };
9
31
  defaultOpen: {
10
32
  type: BooleanConstructor;
@@ -12,7 +34,7 @@ declare const _default: import("vue").DefineComponent<{
12
34
  };
13
35
  openIcon: {
14
36
  type: StringConstructor;
15
- default: () => any;
37
+ default: () => string;
16
38
  };
17
39
  unmount: {
18
40
  type: BooleanConstructor;
@@ -20,7 +42,7 @@ declare const _default: import("vue").DefineComponent<{
20
42
  };
21
43
  closeIcon: {
22
44
  type: StringConstructor;
23
- default: () => any;
45
+ default: () => string;
24
46
  };
25
47
  multiple: {
26
48
  type: BooleanConstructor;
@@ -31,12 +53,114 @@ declare const _default: import("vue").DefineComponent<{
31
53
  default: () => string;
32
54
  };
33
55
  ui: {
34
- type: PropType<any>;
56
+ type: PropType<Partial<typeof config> & {
57
+ strategy?: Strategy;
58
+ }>;
35
59
  default: () => {};
36
60
  };
37
61
  }, {
38
- ui: import("vue").ComputedRef<any>;
39
- uiButton: import("vue").ComputedRef<any>;
62
+ ui: import("vue").ComputedRef<{
63
+ wrapper: string;
64
+ container: string;
65
+ item: {
66
+ base: string;
67
+ size: string;
68
+ color: string;
69
+ padding: string;
70
+ icon: string;
71
+ };
72
+ transition: {
73
+ enterActiveClass: string;
74
+ leaveActiveClass: string;
75
+ };
76
+ default: {
77
+ openIcon: string;
78
+ closeIcon: string;
79
+ class: string;
80
+ variant: "soft";
81
+ truncate: boolean;
82
+ };
83
+ }>;
84
+ uiButton: import("vue").ComputedRef<{
85
+ base: string;
86
+ font: string;
87
+ rounded: string;
88
+ truncate: string;
89
+ block: string;
90
+ inline: string;
91
+ size: {
92
+ '2xs': string;
93
+ xs: string;
94
+ sm: string;
95
+ md: string;
96
+ lg: string;
97
+ xl: string;
98
+ };
99
+ gap: {
100
+ '2xs': string;
101
+ xs: string;
102
+ sm: string;
103
+ md: string;
104
+ lg: string;
105
+ xl: string;
106
+ };
107
+ padding: {
108
+ '2xs': string;
109
+ xs: string;
110
+ sm: string;
111
+ md: string;
112
+ lg: string;
113
+ xl: string;
114
+ };
115
+ square: {
116
+ '2xs': string;
117
+ xs: string;
118
+ sm: string;
119
+ md: string;
120
+ lg: string;
121
+ xl: string;
122
+ };
123
+ color: {
124
+ white: {
125
+ solid: string;
126
+ ghost: string;
127
+ };
128
+ gray: {
129
+ solid: string;
130
+ ghost: string;
131
+ link: string;
132
+ };
133
+ black: {
134
+ solid: string;
135
+ link: string;
136
+ };
137
+ };
138
+ variant: {
139
+ solid: string;
140
+ outline: string;
141
+ soft: string;
142
+ ghost: string;
143
+ link: string;
144
+ };
145
+ icon: {
146
+ base: string;
147
+ loading: string;
148
+ size: {
149
+ '2xs': string;
150
+ xs: string;
151
+ sm: string;
152
+ md: string;
153
+ lg: string;
154
+ xl: string;
155
+ };
156
+ };
157
+ default: {
158
+ size: string;
159
+ variant: string;
160
+ color: string;
161
+ loadingIcon: string;
162
+ };
163
+ }>;
40
164
  attrs: import("vue").ComputedRef<Pick<{
41
165
  [x: string]: unknown;
42
166
  }, string>>;
@@ -53,7 +177,7 @@ declare const _default: import("vue").DefineComponent<{
53
177
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "open"[], "open", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
54
178
  items: {
55
179
  type: PropType<AccordionItem[]>;
56
- default: () => never[];
180
+ default: () => any[];
57
181
  };
58
182
  defaultOpen: {
59
183
  type: BooleanConstructor;
@@ -61,7 +185,7 @@ declare const _default: import("vue").DefineComponent<{
61
185
  };
62
186
  openIcon: {
63
187
  type: StringConstructor;
64
- default: () => any;
188
+ default: () => string;
65
189
  };
66
190
  unmount: {
67
191
  type: BooleanConstructor;
@@ -69,7 +193,7 @@ declare const _default: import("vue").DefineComponent<{
69
193
  };
70
194
  closeIcon: {
71
195
  type: StringConstructor;
72
- default: () => any;
196
+ default: () => string;
73
197
  };
74
198
  multiple: {
75
199
  type: BooleanConstructor;
@@ -80,14 +204,16 @@ declare const _default: import("vue").DefineComponent<{
80
204
  default: () => string;
81
205
  };
82
206
  ui: {
83
- type: PropType<any>;
207
+ type: PropType<Partial<typeof config> & {
208
+ strategy?: Strategy;
209
+ }>;
84
210
  default: () => {};
85
211
  };
86
212
  }>> & {
87
- onOpen?: ((...args: any[]) => any) | undefined;
213
+ onOpen?: (...args: any[]) => any;
88
214
  }, {
89
215
  class: any;
90
- ui: any;
216
+ ui: {};
91
217
  defaultOpen: boolean;
92
218
  unmount: boolean;
93
219
  items: AccordionItem[];
@@ -14,7 +14,7 @@
14
14
  {{ title }}
15
15
  </slot>
16
16
  </p>
17
- <div v-if="description || $slots.description" :class="twMerge(ui.description, !(title && $slots.title) && 'mt-0 leading-5')">
17
+ <div v-if="description || $slots.description" :class="twMerge(ui.description, !title && !$slots.title && 'mt-0 leading-5')">
18
18
  <slot name="description" :description="description">
19
19
  {{ description }}
20
20
  </slot>