@nuxt/ui 3.1.2 → 3.2.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 (150) hide show
  1. package/.nuxt/ui/avatar.ts +1 -1
  2. package/.nuxt/ui/card.ts +1 -1
  3. package/.nuxt/ui/carousel.ts +1 -1
  4. package/.nuxt/ui/checkbox-group.ts +1 -1
  5. package/.nuxt/ui/command-palette.ts +1 -0
  6. package/.nuxt/ui/context-menu.ts +2 -1
  7. package/.nuxt/ui/drawer.ts +1 -1
  8. package/.nuxt/ui/dropdown-menu.ts +2 -1
  9. package/.nuxt/ui/index.ts +2 -0
  10. package/.nuxt/ui/input-menu.ts +26 -12
  11. package/.nuxt/ui/input-tags.ts +310 -0
  12. package/.nuxt/ui/modal.ts +1 -1
  13. package/.nuxt/ui/navigation-menu.ts +43 -34
  14. package/.nuxt/ui/radio-group.ts +1 -1
  15. package/.nuxt/ui/select-menu.ts +13 -8
  16. package/.nuxt/ui/select.ts +13 -8
  17. package/.nuxt/ui/table.ts +3 -2
  18. package/.nuxt/ui/timeline.ts +321 -0
  19. package/.nuxt/ui/toaster.ts +1 -1
  20. package/.nuxt/ui/tooltip.ts +1 -1
  21. package/.nuxt/ui.css +4 -1
  22. package/cli/templates.mjs +7 -4
  23. package/dist/module.json +1 -1
  24. package/dist/module.mjs +2 -2
  25. package/dist/runtime/components/Alert.vue +0 -1
  26. package/dist/runtime/components/Avatar.vue +10 -2
  27. package/dist/runtime/components/Avatar.vue.d.ts +2 -0
  28. package/dist/runtime/components/Calendar.vue +4 -1
  29. package/dist/runtime/components/Carousel.vue +1 -2
  30. package/dist/runtime/components/Checkbox.vue +1 -1
  31. package/dist/runtime/components/CommandPalette.vue +80 -16
  32. package/dist/runtime/components/CommandPalette.vue.d.ts +32 -8
  33. package/dist/runtime/components/ContextMenuContent.vue +58 -56
  34. package/dist/runtime/components/ContextMenuContent.vue.d.ts +4 -20
  35. package/dist/runtime/components/Drawer.vue +15 -1
  36. package/dist/runtime/components/DropdownMenuContent.vue +60 -58
  37. package/dist/runtime/components/DropdownMenuContent.vue.d.ts +4 -20
  38. package/dist/runtime/components/Form.vue +6 -6
  39. package/dist/runtime/components/Form.vue.d.ts +12 -11
  40. package/dist/runtime/components/Input.vue +1 -0
  41. package/dist/runtime/components/Input.vue.d.ts +7 -0
  42. package/dist/runtime/components/InputMenu.vue +3 -3
  43. package/dist/runtime/components/InputMenu.vue.d.ts +4 -4
  44. package/dist/runtime/components/InputNumber.vue +3 -2
  45. package/dist/runtime/components/InputNumber.vue.d.ts +1 -1
  46. package/dist/runtime/components/InputTags.vue +159 -0
  47. package/dist/runtime/components/InputTags.vue.d.ts +183 -0
  48. package/dist/runtime/components/Modal.vue +16 -15
  49. package/dist/runtime/components/Modal.vue.d.ts +17 -4
  50. package/dist/runtime/components/NavigationMenu.vue +85 -26
  51. package/dist/runtime/components/NavigationMenu.vue.d.ts +30 -17
  52. package/dist/runtime/components/OverlayProvider.vue +2 -2
  53. package/dist/runtime/components/Pagination.vue +1 -1
  54. package/dist/runtime/components/Pagination.vue.d.ts +0 -1
  55. package/dist/runtime/components/PinInput.vue +4 -3
  56. package/dist/runtime/components/PinInput.vue.d.ts +22 -19
  57. package/dist/runtime/components/Popover.vue +4 -0
  58. package/dist/runtime/components/Popover.vue.d.ts +1 -0
  59. package/dist/runtime/components/Progress.vue +2 -1
  60. package/dist/runtime/components/Progress.vue.d.ts +1 -1
  61. package/dist/runtime/components/RadioGroup.vue +2 -2
  62. package/dist/runtime/components/Select.vue +26 -7
  63. package/dist/runtime/components/Select.vue.d.ts +107 -1
  64. package/dist/runtime/components/SelectMenu.vue +27 -8
  65. package/dist/runtime/components/SelectMenu.vue.d.ts +105 -1
  66. package/dist/runtime/components/Slideover.vue +23 -15
  67. package/dist/runtime/components/Slideover.vue.d.ts +17 -4
  68. package/dist/runtime/components/Table.vue +7 -1
  69. package/dist/runtime/components/Table.vue.d.ts +10 -8
  70. package/dist/runtime/components/Tabs.vue +13 -2
  71. package/dist/runtime/components/Tabs.vue.d.ts +4 -1
  72. package/dist/runtime/components/Textarea.vue +4 -1
  73. package/dist/runtime/components/Textarea.vue.d.ts +11 -4
  74. package/dist/runtime/components/Timeline.vue +92 -0
  75. package/dist/runtime/components/Timeline.vue.d.ts +70 -0
  76. package/dist/runtime/components/Toast.vue +4 -5
  77. package/dist/runtime/components/Tree.vue +3 -2
  78. package/dist/runtime/components/Tree.vue.d.ts +1 -1
  79. package/dist/runtime/composables/defineLocale.d.ts +2 -0
  80. package/dist/runtime/composables/defineLocale.js +4 -0
  81. package/dist/runtime/composables/defineShortcuts.js +2 -2
  82. package/dist/runtime/composables/useOverlay.d.ts +2 -1
  83. package/dist/runtime/composables/useOverlay.js +7 -6
  84. package/dist/runtime/locale/ar.js +2 -1
  85. package/dist/runtime/locale/az.js +2 -1
  86. package/dist/runtime/locale/bg.js +2 -1
  87. package/dist/runtime/locale/bn.js +2 -1
  88. package/dist/runtime/locale/ca.js +2 -1
  89. package/dist/runtime/locale/ckb.js +2 -1
  90. package/dist/runtime/locale/cs.js +2 -1
  91. package/dist/runtime/locale/da.js +2 -1
  92. package/dist/runtime/locale/de.js +2 -1
  93. package/dist/runtime/locale/el.js +2 -1
  94. package/dist/runtime/locale/en.js +2 -1
  95. package/dist/runtime/locale/es.js +2 -1
  96. package/dist/runtime/locale/et.js +2 -1
  97. package/dist/runtime/locale/fa_ir.js +2 -1
  98. package/dist/runtime/locale/fi.js +2 -1
  99. package/dist/runtime/locale/fr.js +2 -1
  100. package/dist/runtime/locale/he.js +2 -1
  101. package/dist/runtime/locale/hi.js +2 -1
  102. package/dist/runtime/locale/hu.js +2 -1
  103. package/dist/runtime/locale/hy.js +2 -1
  104. package/dist/runtime/locale/id.js +2 -1
  105. package/dist/runtime/locale/index.d.ts +7 -2
  106. package/dist/runtime/locale/index.js +7 -2
  107. package/dist/runtime/locale/it.js +2 -1
  108. package/dist/runtime/locale/ja.js +2 -1
  109. package/dist/runtime/locale/kk.js +2 -1
  110. package/dist/runtime/locale/km.js +2 -1
  111. package/dist/runtime/locale/ko.js +2 -1
  112. package/dist/runtime/locale/ky.d.ts +3 -0
  113. package/dist/runtime/locale/ky.js +55 -0
  114. package/dist/runtime/locale/lb.d.ts +3 -0
  115. package/dist/runtime/locale/lb.js +55 -0
  116. package/dist/runtime/locale/lt.d.ts +3 -0
  117. package/dist/runtime/locale/lt.js +55 -0
  118. package/dist/runtime/locale/mn.d.ts +3 -0
  119. package/dist/runtime/locale/mn.js +55 -0
  120. package/dist/runtime/locale/ms.d.ts +3 -0
  121. package/dist/runtime/locale/ms.js +55 -0
  122. package/dist/runtime/locale/nb_no.js +2 -1
  123. package/dist/runtime/locale/nl.js +2 -1
  124. package/dist/runtime/locale/pl.js +2 -1
  125. package/dist/runtime/locale/pt.js +2 -1
  126. package/dist/runtime/locale/pt_br.js +2 -1
  127. package/dist/runtime/locale/ro.js +2 -1
  128. package/dist/runtime/locale/ru.js +2 -1
  129. package/dist/runtime/locale/sk.js +2 -1
  130. package/dist/runtime/locale/sl.js +2 -1
  131. package/dist/runtime/locale/sv.js +2 -1
  132. package/dist/runtime/locale/th.js +2 -1
  133. package/dist/runtime/locale/tj.js +2 -1
  134. package/dist/runtime/locale/tr.js +2 -1
  135. package/dist/runtime/locale/ug_cn.js +2 -1
  136. package/dist/runtime/locale/uk.js +2 -1
  137. package/dist/runtime/locale/ur.js +2 -1
  138. package/dist/runtime/locale/uz.js +2 -1
  139. package/dist/runtime/locale/vi.js +2 -1
  140. package/dist/runtime/locale/zh_cn.js +2 -1
  141. package/dist/runtime/locale/zh_tw.js +2 -1
  142. package/dist/runtime/types/form.d.ts +11 -10
  143. package/dist/runtime/types/index.d.ts +2 -0
  144. package/dist/runtime/types/index.js +2 -0
  145. package/dist/runtime/types/locale.d.ts +1 -0
  146. package/dist/runtime/types/utils.d.ts +3 -0
  147. package/dist/shared/{ui.BvUP-pSb.mjs → ui.BPVxSPGY.mjs} +332 -62
  148. package/dist/unplugin.mjs +1 -1
  149. package/dist/vite.mjs +1 -1
  150. package/package.json +35 -36
@@ -43,24 +43,25 @@ export default {
43
43
  "linkLeadingIcon": "shrink-0 size-5",
44
44
  "linkLeadingAvatar": "shrink-0",
45
45
  "linkLeadingAvatarSize": "2xs",
46
- "linkTrailing": "ms-auto inline-flex gap-1.5 items-center",
46
+ "linkTrailing": "group ms-auto inline-flex gap-1.5 items-center",
47
47
  "linkTrailingBadge": "shrink-0",
48
48
  "linkTrailingBadgeSize": "sm",
49
49
  "linkTrailingIcon": "size-5 transform shrink-0 group-data-[state=open]:rotate-180 transition-transform duration-200",
50
50
  "linkLabel": "truncate",
51
51
  "linkLabelExternalIcon": "inline-block size-3 align-top text-dimmed",
52
- "childList": "",
52
+ "childList": "isolate",
53
+ "childLabel": "text-xs text-highlighted",
53
54
  "childItem": "",
54
- "childLink": "group size-full px-3 py-2 rounded-md flex items-start gap-2 text-start",
55
- "childLinkWrapper": "flex flex-col items-start",
55
+ "childLink": "group relative size-full flex items-start text-start text-sm before:absolute before:z-[-1] before:rounded-md focus:outline-none focus-visible:outline-none dark:focus-visible:outline-none focus-visible:before:ring-inset focus-visible:before:ring-2",
56
+ "childLinkWrapper": "min-w-0",
56
57
  "childLinkIcon": "size-5 shrink-0",
57
- "childLinkLabel": "font-semibold text-sm relative inline-flex",
58
+ "childLinkLabel": "truncate",
58
59
  "childLinkLabelExternalIcon": "inline-block size-3 align-top text-dimmed",
59
- "childLinkDescription": "text-sm text-muted",
60
+ "childLinkDescription": "text-muted",
60
61
  "separator": "px-2 h-px bg-border",
61
62
  "viewportWrapper": "absolute top-full left-0 flex w-full",
62
63
  "viewport": "relative overflow-hidden bg-default shadow-lg rounded-md ring ring-default h-(--reka-navigation-menu-viewport-height) w-full transition-[width,height,left] duration-200 origin-[top_center] data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in] z-[1]",
63
- "content": "absolute top-0 left-0 w-full",
64
+ "content": "",
64
65
  "indicator": "absolute data-[state=visible]:animate-[fade-in_100ms_ease-out] data-[state=hidden]:animate-[fade-out_100ms_ease-in] data-[state=hidden]:opacity-0 bottom-0 z-[2] w-(--reka-navigation-menu-indicator-size) translate-x-(--reka-navigation-menu-indicator-position) flex h-2.5 items-end justify-center overflow-hidden transition-[translate,width] duration-200",
65
66
  "arrow": "relative top-[50%] size-2.5 rotate-45 border border-default bg-default z-[1] rounded-xs"
66
67
  },
@@ -68,31 +69,31 @@ export default {
68
69
  "color": {
69
70
  "primary": {
70
71
  "link": "focus-visible:before:ring-primary",
71
- "childLink": "focus-visible:outline-primary"
72
+ "childLink": "focus-visible:before:ring-primary"
72
73
  },
73
74
  "secondary": {
74
75
  "link": "focus-visible:before:ring-secondary",
75
- "childLink": "focus-visible:outline-secondary"
76
+ "childLink": "focus-visible:before:ring-secondary"
76
77
  },
77
78
  "success": {
78
79
  "link": "focus-visible:before:ring-success",
79
- "childLink": "focus-visible:outline-success"
80
+ "childLink": "focus-visible:before:ring-success"
80
81
  },
81
82
  "info": {
82
83
  "link": "focus-visible:before:ring-info",
83
- "childLink": "focus-visible:outline-info"
84
+ "childLink": "focus-visible:before:ring-info"
84
85
  },
85
86
  "warning": {
86
87
  "link": "focus-visible:before:ring-warning",
87
- "childLink": "focus-visible:outline-warning"
88
+ "childLink": "focus-visible:before:ring-warning"
88
89
  },
89
90
  "error": {
90
91
  "link": "focus-visible:before:ring-error",
91
- "childLink": "focus-visible:outline-error"
92
+ "childLink": "focus-visible:before:ring-error"
92
93
  },
93
94
  "neutral": {
94
95
  "link": "focus-visible:before:ring-inverted",
95
- "childLink": "focus-visible:outline-inverted"
96
+ "childLink": "focus-visible:before:ring-inverted"
96
97
  }
97
98
  },
98
99
  "highlightColor": {
@@ -114,11 +115,16 @@ export default {
114
115
  "list": "flex items-center",
115
116
  "item": "py-2",
116
117
  "link": "px-2.5 py-1.5 before:inset-x-px before:inset-y-0",
117
- "childList": "grid p-2"
118
+ "childList": "grid p-2",
119
+ "childLink": "px-3 py-2 gap-2 before:inset-x-px before:inset-y-0",
120
+ "childLinkLabel": "font-medium",
121
+ "content": "absolute top-0 left-0 w-full max-h-[70vh] overflow-y-auto"
118
122
  },
119
123
  "vertical": {
120
124
  "root": "flex-col",
121
- "link": "flex-row px-2.5 py-1.5 before:inset-y-px before:inset-x-0"
125
+ "link": "flex-row px-2.5 py-1.5 before:inset-y-px before:inset-x-0",
126
+ "childLabel": "px-1.5 py-0.5",
127
+ "childLink": "p-1.5 gap-1.5 before:inset-y-px before:inset-x-0"
122
128
  }
123
129
  },
124
130
  "contentOrientation": {
@@ -132,15 +138,15 @@ export default {
132
138
  },
133
139
  "active": {
134
140
  "true": {
135
- "childLink": "bg-elevated text-highlighted",
141
+ "childLink": "before:bg-elevated text-highlighted",
136
142
  "childLinkIcon": "text-default"
137
143
  },
138
144
  "false": {
139
145
  "link": "text-muted",
140
146
  "linkLeadingIcon": "text-dimmed",
141
147
  "childLink": [
142
- "hover:bg-elevated/50 text-default hover:text-highlighted",
143
- "transition-colors"
148
+ "hover:before:bg-elevated/50 text-default hover:text-highlighted",
149
+ "transition-colors before:transition-colors"
144
150
  ],
145
151
  "childLinkIcon": [
146
152
  "text-dimmed group-hover:text-default",
@@ -179,6 +185,23 @@ export default {
179
185
  "content": "w-60"
180
186
  }
181
187
  },
188
+ {
189
+ "orientation": "vertical" as typeof orientation[number],
190
+ "collapsed": false,
191
+ "class": {
192
+ "childList": "ms-5 border-s border-default",
193
+ "childItem": "ps-1.5 -ms-px",
194
+ "content": "data-[state=open]:animate-[collapsible-down_200ms_ease-out] data-[state=closed]:animate-[collapsible-up_200ms_ease-out] overflow-hidden"
195
+ }
196
+ },
197
+ {
198
+ "orientation": "vertical" as typeof orientation[number],
199
+ "collapsed": true,
200
+ "class": {
201
+ "link": "px-1.5",
202
+ "content": "shadow-sm rounded-sm min-h-6 p-1"
203
+ }
204
+ },
182
205
  {
183
206
  "orientation": "horizontal" as typeof orientation[number],
184
207
  "highlight": true,
@@ -319,6 +342,7 @@ export default {
319
342
  "variant": "pill" as typeof variant[number],
320
343
  "active": true,
321
344
  "highlight": true,
345
+ "disabled": false,
322
346
  "class": {
323
347
  "link": [
324
348
  "hover:before:bg-elevated/50",
@@ -476,21 +500,6 @@ export default {
476
500
  "class": {
477
501
  "link": "after:bg-inverted"
478
502
  }
479
- },
480
- {
481
- "orientation": "vertical" as typeof orientation[number],
482
- "collapsed": false,
483
- "class": {
484
- "childList": "ms-5 border-s border-default",
485
- "childItem": "ps-1.5 -ms-px"
486
- }
487
- },
488
- {
489
- "orientation": "vertical" as typeof orientation[number],
490
- "collapsed": true,
491
- "class": {
492
- "link": "px-1.5"
493
- }
494
503
  }
495
504
  ],
496
505
  "defaultVariants": {
@@ -219,7 +219,7 @@ export default {
219
219
  "orientation": "horizontal" as typeof orientation[number],
220
220
  "variant": "table" as typeof variant[number],
221
221
  "class": {
222
- "item": "first-of-type:rounded-l-lg last-of-type:rounded-r-lg",
222
+ "item": "first-of-type:rounded-s-lg last-of-type:rounded-e-lg",
223
223
  "fieldset": "gap-0 -space-x-px"
224
224
  }
225
225
  },
@@ -40,12 +40,12 @@ export default {
40
40
  "placeholder": "truncate text-dimmed",
41
41
  "arrow": "fill-default",
42
42
  "content": [
43
- "max-h-60 w-(--reka-select-trigger-width) bg-default shadow-lg rounded-md ring ring-default overflow-hidden data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in] origin-(--reka-select-content-transform-origin) pointer-events-auto",
43
+ "max-h-60 w-(--reka-select-trigger-width) bg-default shadow-lg rounded-md ring ring-default overflow-hidden data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in] origin-(--reka-select-content-transform-origin) pointer-events-auto flex flex-col",
44
44
  "origin-(--reka-combobox-content-transform-origin) w-(--reka-combobox-trigger-width)"
45
45
  ],
46
- "viewport": "divide-y divide-default scroll-py-1",
46
+ "viewport": "relative divide-y divide-default scroll-py-1 overflow-y-auto flex-1",
47
47
  "group": "p-1 isolate",
48
- "empty": "py-2 text-center text-sm text-muted",
48
+ "empty": "text-center text-muted",
49
49
  "label": "font-semibold text-highlighted",
50
50
  "separator": "-mx-1 my-1 h-px bg-border",
51
51
  "item": [
@@ -85,7 +85,8 @@ export default {
85
85
  "itemLeadingAvatarSize": "3xs",
86
86
  "itemLeadingChip": "size-4",
87
87
  "itemLeadingChipSize": "sm",
88
- "itemTrailingIcon": "size-4"
88
+ "itemTrailingIcon": "size-4",
89
+ "empty": "p-1 text-xs"
89
90
  },
90
91
  "sm": {
91
92
  "base": "px-2.5 py-1.5 text-xs gap-1.5",
@@ -100,7 +101,8 @@ export default {
100
101
  "itemLeadingAvatarSize": "3xs",
101
102
  "itemLeadingChip": "size-4",
102
103
  "itemLeadingChipSize": "sm",
103
- "itemTrailingIcon": "size-4"
104
+ "itemTrailingIcon": "size-4",
105
+ "empty": "p-1.5 text-xs"
104
106
  },
105
107
  "md": {
106
108
  "base": "px-2.5 py-1.5 text-sm gap-1.5",
@@ -115,7 +117,8 @@ export default {
115
117
  "itemLeadingAvatarSize": "2xs",
116
118
  "itemLeadingChip": "size-5",
117
119
  "itemLeadingChipSize": "md",
118
- "itemTrailingIcon": "size-5"
120
+ "itemTrailingIcon": "size-5",
121
+ "empty": "p-1.5 text-sm"
119
122
  },
120
123
  "lg": {
121
124
  "base": "px-3 py-2 text-sm gap-2",
@@ -130,7 +133,8 @@ export default {
130
133
  "itemLeadingAvatarSize": "2xs",
131
134
  "itemLeadingChip": "size-5",
132
135
  "itemLeadingChipSize": "md",
133
- "itemTrailingIcon": "size-5"
136
+ "itemTrailingIcon": "size-5",
137
+ "empty": "p-2 text-sm"
134
138
  },
135
139
  "xl": {
136
140
  "base": "px-3 py-2 text-base gap-2",
@@ -145,7 +149,8 @@ export default {
145
149
  "itemLeadingAvatarSize": "xs",
146
150
  "itemLeadingChip": "size-6",
147
151
  "itemLeadingChipSize": "lg",
148
- "itemTrailingIcon": "size-6"
152
+ "itemTrailingIcon": "size-6",
153
+ "empty": "p-2 text-base"
149
154
  }
150
155
  },
151
156
  "variant": {
@@ -39,10 +39,10 @@ export default {
39
39
  "value": "truncate pointer-events-none",
40
40
  "placeholder": "truncate text-dimmed",
41
41
  "arrow": "fill-default",
42
- "content": "max-h-60 w-(--reka-select-trigger-width) bg-default shadow-lg rounded-md ring ring-default overflow-hidden data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in] origin-(--reka-select-content-transform-origin) pointer-events-auto",
43
- "viewport": "divide-y divide-default scroll-py-1",
42
+ "content": "max-h-60 w-(--reka-select-trigger-width) bg-default shadow-lg rounded-md ring ring-default overflow-hidden data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in] origin-(--reka-select-content-transform-origin) pointer-events-auto flex flex-col",
43
+ "viewport": "relative divide-y divide-default scroll-py-1 overflow-y-auto flex-1",
44
44
  "group": "p-1 isolate",
45
- "empty": "py-2 text-center text-sm text-muted",
45
+ "empty": "text-center text-muted",
46
46
  "label": "font-semibold text-highlighted",
47
47
  "separator": "-mx-1 my-1 h-px bg-border",
48
48
  "item": [
@@ -80,7 +80,8 @@ export default {
80
80
  "itemLeadingAvatarSize": "3xs",
81
81
  "itemLeadingChip": "size-4",
82
82
  "itemLeadingChipSize": "sm",
83
- "itemTrailingIcon": "size-4"
83
+ "itemTrailingIcon": "size-4",
84
+ "empty": "p-1 text-xs"
84
85
  },
85
86
  "sm": {
86
87
  "base": "px-2.5 py-1.5 text-xs gap-1.5",
@@ -95,7 +96,8 @@ export default {
95
96
  "itemLeadingAvatarSize": "3xs",
96
97
  "itemLeadingChip": "size-4",
97
98
  "itemLeadingChipSize": "sm",
98
- "itemTrailingIcon": "size-4"
99
+ "itemTrailingIcon": "size-4",
100
+ "empty": "p-1.5 text-xs"
99
101
  },
100
102
  "md": {
101
103
  "base": "px-2.5 py-1.5 text-sm gap-1.5",
@@ -110,7 +112,8 @@ export default {
110
112
  "itemLeadingAvatarSize": "2xs",
111
113
  "itemLeadingChip": "size-5",
112
114
  "itemLeadingChipSize": "md",
113
- "itemTrailingIcon": "size-5"
115
+ "itemTrailingIcon": "size-5",
116
+ "empty": "p-1.5 text-sm"
114
117
  },
115
118
  "lg": {
116
119
  "base": "px-3 py-2 text-sm gap-2",
@@ -125,7 +128,8 @@ export default {
125
128
  "itemLeadingAvatarSize": "2xs",
126
129
  "itemLeadingChip": "size-5",
127
130
  "itemLeadingChipSize": "md",
128
- "itemTrailingIcon": "size-5"
131
+ "itemTrailingIcon": "size-5",
132
+ "empty": "p-2 text-sm"
129
133
  },
130
134
  "xl": {
131
135
  "base": "px-3 py-2 text-base gap-2",
@@ -140,7 +144,8 @@ export default {
140
144
  "itemLeadingAvatarSize": "xs",
141
145
  "itemLeadingChip": "size-6",
142
146
  "itemLeadingChipSize": "lg",
143
- "itemTrailingIcon": "size-6"
147
+ "itemTrailingIcon": "size-6",
148
+ "empty": "p-2 text-base"
144
149
  }
145
150
  },
146
151
  "variant": {
package/.nuxt/ui/table.ts CHANGED
@@ -20,11 +20,12 @@ export default {
20
20
  "root": "relative overflow-auto",
21
21
  "base": "min-w-full overflow-clip",
22
22
  "caption": "sr-only",
23
- "thead": "relative [&>tr]:after:absolute [&>tr]:after:inset-x-0 [&>tr]:after:bottom-0 [&>tr]:after:h-px [&>tr]:after:bg-(--ui-border-accented)",
23
+ "thead": "relative",
24
24
  "tbody": "divide-y divide-default [&>tr]:data-[selectable=true]:hover:bg-elevated/50 [&>tr]:data-[selectable=true]:focus-visible:outline-primary",
25
25
  "tr": "data-[selected=true]:bg-elevated/50",
26
26
  "th": "px-4 py-3.5 text-sm text-highlighted text-left rtl:text-right font-semibold [&:has([role=checkbox])]:pe-0",
27
27
  "td": "p-4 text-sm text-muted whitespace-nowrap [&:has([role=checkbox])]:pe-0",
28
+ "separator": "absolute z-[1] left-0 w-full h-px bg-(--ui-border-accented)",
28
29
  "empty": "py-6 text-center text-sm text-muted",
29
30
  "loading": "py-6 text-center"
30
31
  },
@@ -42,7 +43,7 @@ export default {
42
43
  },
43
44
  "loading": {
44
45
  "true": {
45
- "thead": "after:absolute after:bottom-0 after:inset-x-0 after:h-px"
46
+ "thead": "after:absolute after:z-[1] after:h-px"
46
47
  }
47
48
  },
48
49
  "loadingAnimation": {
@@ -0,0 +1,321 @@
1
+ const orientation = [
2
+ "horizontal",
3
+ "vertical"
4
+ ] as const
5
+
6
+ const color = [
7
+ "primary",
8
+ "secondary",
9
+ "success",
10
+ "info",
11
+ "warning",
12
+ "error",
13
+ "neutral"
14
+ ] as const
15
+
16
+ const size = [
17
+ "3xs",
18
+ "2xs",
19
+ "xs",
20
+ "sm",
21
+ "md",
22
+ "lg",
23
+ "xl",
24
+ "2xl",
25
+ "3xl"
26
+ ] as const
27
+
28
+ export default {
29
+ "slots": {
30
+ "root": "flex gap-1.5",
31
+ "item": "group relative flex flex-1 gap-3",
32
+ "container": "relative flex items-center gap-1.5",
33
+ "indicator": "group-data-[state=completed]:text-inverted group-data-[state=active]:text-inverted text-muted",
34
+ "separator": "flex-1 rounded-full bg-elevated",
35
+ "wrapper": "w-full",
36
+ "date": "text-dimmed text-xs/5",
37
+ "title": "font-medium text-highlighted text-sm",
38
+ "description": "text-muted text-wrap text-sm"
39
+ },
40
+ "variants": {
41
+ "orientation": {
42
+ "horizontal": {
43
+ "root": "flex-row w-full",
44
+ "item": "flex-col",
45
+ "separator": "h-0.5"
46
+ },
47
+ "vertical": {
48
+ "root": "flex-col",
49
+ "container": "flex-col",
50
+ "separator": "w-0.5"
51
+ }
52
+ },
53
+ "color": {
54
+ "primary": {
55
+ "indicator": "group-data-[state=completed]:bg-primary group-data-[state=active]:bg-primary"
56
+ },
57
+ "secondary": {
58
+ "indicator": "group-data-[state=completed]:bg-secondary group-data-[state=active]:bg-secondary"
59
+ },
60
+ "success": {
61
+ "indicator": "group-data-[state=completed]:bg-success group-data-[state=active]:bg-success"
62
+ },
63
+ "info": {
64
+ "indicator": "group-data-[state=completed]:bg-info group-data-[state=active]:bg-info"
65
+ },
66
+ "warning": {
67
+ "indicator": "group-data-[state=completed]:bg-warning group-data-[state=active]:bg-warning"
68
+ },
69
+ "error": {
70
+ "indicator": "group-data-[state=completed]:bg-error group-data-[state=active]:bg-error"
71
+ },
72
+ "neutral": {
73
+ "indicator": "group-data-[state=completed]:bg-inverted group-data-[state=active]:bg-inverted"
74
+ }
75
+ },
76
+ "size": {
77
+ "3xs": "",
78
+ "2xs": "",
79
+ "xs": "",
80
+ "sm": "",
81
+ "md": "",
82
+ "lg": "",
83
+ "xl": "",
84
+ "2xl": "",
85
+ "3xl": ""
86
+ },
87
+ "reverse": {
88
+ "true": ""
89
+ }
90
+ },
91
+ "compoundVariants": [
92
+ {
93
+ "color": "primary" as typeof color[number],
94
+ "reverse": false,
95
+ "class": {
96
+ "separator": "group-data-[state=completed]:bg-primary"
97
+ }
98
+ },
99
+ {
100
+ "color": "secondary" as typeof color[number],
101
+ "reverse": false,
102
+ "class": {
103
+ "separator": "group-data-[state=completed]:bg-secondary"
104
+ }
105
+ },
106
+ {
107
+ "color": "success" as typeof color[number],
108
+ "reverse": false,
109
+ "class": {
110
+ "separator": "group-data-[state=completed]:bg-success"
111
+ }
112
+ },
113
+ {
114
+ "color": "info" as typeof color[number],
115
+ "reverse": false,
116
+ "class": {
117
+ "separator": "group-data-[state=completed]:bg-info"
118
+ }
119
+ },
120
+ {
121
+ "color": "warning" as typeof color[number],
122
+ "reverse": false,
123
+ "class": {
124
+ "separator": "group-data-[state=completed]:bg-warning"
125
+ }
126
+ },
127
+ {
128
+ "color": "error" as typeof color[number],
129
+ "reverse": false,
130
+ "class": {
131
+ "separator": "group-data-[state=completed]:bg-error"
132
+ }
133
+ },
134
+ {
135
+ "color": "primary" as typeof color[number],
136
+ "reverse": true,
137
+ "class": {
138
+ "separator": "group-data-[state=active]:bg-primary group-data-[state=completed]:bg-primary"
139
+ }
140
+ },
141
+ {
142
+ "color": "secondary" as typeof color[number],
143
+ "reverse": true,
144
+ "class": {
145
+ "separator": "group-data-[state=active]:bg-secondary group-data-[state=completed]:bg-secondary"
146
+ }
147
+ },
148
+ {
149
+ "color": "success" as typeof color[number],
150
+ "reverse": true,
151
+ "class": {
152
+ "separator": "group-data-[state=active]:bg-success group-data-[state=completed]:bg-success"
153
+ }
154
+ },
155
+ {
156
+ "color": "info" as typeof color[number],
157
+ "reverse": true,
158
+ "class": {
159
+ "separator": "group-data-[state=active]:bg-info group-data-[state=completed]:bg-info"
160
+ }
161
+ },
162
+ {
163
+ "color": "warning" as typeof color[number],
164
+ "reverse": true,
165
+ "class": {
166
+ "separator": "group-data-[state=active]:bg-warning group-data-[state=completed]:bg-warning"
167
+ }
168
+ },
169
+ {
170
+ "color": "error" as typeof color[number],
171
+ "reverse": true,
172
+ "class": {
173
+ "separator": "group-data-[state=active]:bg-error group-data-[state=completed]:bg-error"
174
+ }
175
+ },
176
+ {
177
+ "color": "neutral" as typeof color[number],
178
+ "reverse": false,
179
+ "class": {
180
+ "separator": "group-data-[state=completed]:bg-inverted"
181
+ }
182
+ },
183
+ {
184
+ "color": "neutral" as typeof color[number],
185
+ "reverse": true,
186
+ "class": {
187
+ "separator": "group-data-[state=active]:bg-inverted group-data-[state=completed]:bg-inverted"
188
+ }
189
+ },
190
+ {
191
+ "orientation": "horizontal" as typeof orientation[number],
192
+ "size": "3xs" as typeof size[number],
193
+ "class": {
194
+ "wrapper": "pe-4.5"
195
+ }
196
+ },
197
+ {
198
+ "orientation": "horizontal" as typeof orientation[number],
199
+ "size": "2xs" as typeof size[number],
200
+ "class": {
201
+ "wrapper": "pe-5"
202
+ }
203
+ },
204
+ {
205
+ "orientation": "horizontal" as typeof orientation[number],
206
+ "size": "xs" as typeof size[number],
207
+ "class": {
208
+ "wrapper": "pe-5.5"
209
+ }
210
+ },
211
+ {
212
+ "orientation": "horizontal" as typeof orientation[number],
213
+ "size": "sm" as typeof size[number],
214
+ "class": {
215
+ "wrapper": "pe-6"
216
+ }
217
+ },
218
+ {
219
+ "orientation": "horizontal" as typeof orientation[number],
220
+ "size": "md" as typeof size[number],
221
+ "class": {
222
+ "wrapper": "pe-6.5"
223
+ }
224
+ },
225
+ {
226
+ "orientation": "horizontal" as typeof orientation[number],
227
+ "size": "lg" as typeof size[number],
228
+ "class": {
229
+ "wrapper": "pe-7"
230
+ }
231
+ },
232
+ {
233
+ "orientation": "horizontal" as typeof orientation[number],
234
+ "size": "xl" as typeof size[number],
235
+ "class": {
236
+ "wrapper": "pe-7.5"
237
+ }
238
+ },
239
+ {
240
+ "orientation": "horizontal" as typeof orientation[number],
241
+ "size": "2xl" as typeof size[number],
242
+ "class": {
243
+ "wrapper": "pe-8"
244
+ }
245
+ },
246
+ {
247
+ "orientation": "horizontal" as typeof orientation[number],
248
+ "size": "3xl" as typeof size[number],
249
+ "class": {
250
+ "wrapper": "pe-8.5"
251
+ }
252
+ },
253
+ {
254
+ "orientation": "vertical" as typeof orientation[number],
255
+ "size": "3xs" as typeof size[number],
256
+ "class": {
257
+ "wrapper": "-mt-0.5 pb-4.5"
258
+ }
259
+ },
260
+ {
261
+ "orientation": "vertical" as typeof orientation[number],
262
+ "size": "2xs" as typeof size[number],
263
+ "class": {
264
+ "wrapper": "pb-5"
265
+ }
266
+ },
267
+ {
268
+ "orientation": "vertical" as typeof orientation[number],
269
+ "size": "xs" as typeof size[number],
270
+ "class": {
271
+ "wrapper": "mt-0.5 pb-5.5"
272
+ }
273
+ },
274
+ {
275
+ "orientation": "vertical" as typeof orientation[number],
276
+ "size": "sm" as typeof size[number],
277
+ "class": {
278
+ "wrapper": "mt-1 pb-6"
279
+ }
280
+ },
281
+ {
282
+ "orientation": "vertical" as typeof orientation[number],
283
+ "size": "md" as typeof size[number],
284
+ "class": {
285
+ "wrapper": "mt-1.5 pb-6.5"
286
+ }
287
+ },
288
+ {
289
+ "orientation": "vertical" as typeof orientation[number],
290
+ "size": "lg" as typeof size[number],
291
+ "class": {
292
+ "wrapper": "mt-2 pb-7"
293
+ }
294
+ },
295
+ {
296
+ "orientation": "vertical" as typeof orientation[number],
297
+ "size": "xl" as typeof size[number],
298
+ "class": {
299
+ "wrapper": "mt-2.5 pb-7.5"
300
+ }
301
+ },
302
+ {
303
+ "orientation": "vertical" as typeof orientation[number],
304
+ "size": "2xl" as typeof size[number],
305
+ "class": {
306
+ "wrapper": "mt-3 pb-8"
307
+ }
308
+ },
309
+ {
310
+ "orientation": "vertical" as typeof orientation[number],
311
+ "size": "3xl" as typeof size[number],
312
+ "class": {
313
+ "wrapper": "mt-3.5 pb-8.5"
314
+ }
315
+ }
316
+ ],
317
+ "defaultVariants": {
318
+ "size": "md" as typeof size[number],
319
+ "color": "primary" as typeof color[number]
320
+ }
321
+ }
@@ -17,7 +17,7 @@ const swipeDirection = [
17
17
  export default {
18
18
  "slots": {
19
19
  "viewport": "fixed flex flex-col w-[calc(100%-2rem)] sm:w-96 z-[100] data-[expanded=true]:h-(--height) focus:outline-none",
20
- "base": "pointer-events-auto absolute inset-x-0 z-(--index) transform-(--transform) data-[expanded=false]:data-[front=false]:h-(--front-height) data-[expanded=false]:data-[front=false]:*:invisible data-[state=closed]:animate-[toast-closed_200ms_ease-in-out] data-[state=closed]:data-[expanded=false]:data-[front=false]:animate-[toast-collapsed-closed_200ms_ease-in-out] data-[swipe=move]:transition-none transition-[transform,translate,height] duration-200 ease-out"
20
+ "base": "pointer-events-auto absolute inset-x-0 z-(--index) transform-(--transform) data-[expanded=false]:data-[front=false]:h-(--front-height) data-[expanded=false]:data-[front=false]:*:opacity-0 data-[front=false]:*:transition-opacity data-[front=false]:*:duration-100 data-[state=closed]:animate-[toast-closed_200ms_ease-in-out] data-[state=closed]:data-[expanded=false]:data-[front=false]:animate-[toast-collapsed-closed_200ms_ease-in-out] data-[swipe=move]:transition-none transition-[transform,translate,height] duration-200 ease-out"
21
21
  },
22
22
  "variants": {
23
23
  "position": {
@@ -1,6 +1,6 @@
1
1
  export default {
2
2
  "slots": {
3
- "content": "flex items-center gap-1 bg-default text-highlighted shadow-sm rounded-sm ring ring-default h-6 px-2 py-1 text-xs select-none data-[state=delayed-open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in] origin-(--reka-tooltip-content-transform-origin) pointer-events-auto",
3
+ "content": "flex items-center gap-1 bg-default text-highlighted shadow-sm rounded-sm ring ring-default h-6 px-2.5 py-1 text-xs select-none data-[state=delayed-open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in] origin-(--reka-tooltip-content-transform-origin) pointer-events-auto",
4
4
  "arrow": "fill-default",
5
5
  "text": "truncate",
6
6
  "kbds": "hidden lg:inline-flex items-center shrink-0 gap-0.5 before:content-['·'] before:me-0.5",