@eslamdevui/ui 3.2.0-beta.2 → 3.2.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 (264) hide show
  1. package/.nuxt/ui/auth-form.ts +20 -0
  2. package/.nuxt/ui/banner.ts +105 -0
  3. package/.nuxt/ui/blog-post.ts +140 -0
  4. package/.nuxt/ui/blog-posts.ts +14 -0
  5. package/.nuxt/ui/changelog-version.ts +41 -0
  6. package/.nuxt/ui/changelog-versions.ts +8 -0
  7. package/.nuxt/ui/chat-palette.ts +8 -0
  8. package/.nuxt/ui/content/content-navigation.ts +6 -4
  9. package/.nuxt/ui/content-navigation.ts +6 -4
  10. package/.nuxt/ui/footer-columns.ts +28 -0
  11. package/.nuxt/ui/footer.ts +11 -0
  12. package/.nuxt/ui/header.ts +30 -0
  13. package/.nuxt/ui/index.ts +32 -1
  14. package/.nuxt/ui/main.ts +3 -0
  15. package/.nuxt/ui/page-accordion.ts +7 -0
  16. package/.nuxt/ui/page-anchors.ts +30 -0
  17. package/.nuxt/ui/page-aside.ts +10 -0
  18. package/.nuxt/ui/page-body.ts +3 -0
  19. package/.nuxt/ui/page-card.ts +276 -0
  20. package/.nuxt/ui/page-columns.ts +3 -0
  21. package/.nuxt/ui/page-cta.ts +72 -0
  22. package/.nuxt/ui/page-feature.ts +31 -0
  23. package/.nuxt/ui/page-grid.ts +3 -0
  24. package/.nuxt/ui/page-header.ts +18 -0
  25. package/.nuxt/ui/page-hero.ts +46 -0
  26. package/.nuxt/ui/page-links.ts +25 -0
  27. package/.nuxt/ui/page-list.ts +8 -0
  28. package/.nuxt/ui/page-logos.ts +15 -0
  29. package/.nuxt/ui/page-marquee.ts +66 -0
  30. package/.nuxt/ui/page-section.ts +88 -0
  31. package/.nuxt/ui/page.ts +32 -0
  32. package/.nuxt/ui/pricing-plan.ts +101 -0
  33. package/.nuxt/ui/pricing-plans.ts +27 -0
  34. package/.nuxt/ui/pricing-table.ts +51 -0
  35. package/.nuxt/ui/user.ts +106 -0
  36. package/LICENSE.md +9 -9
  37. package/README.md +147 -147
  38. package/cli/commands/make/component.mjs +95 -95
  39. package/cli/commands/make/index.mjs +14 -14
  40. package/cli/commands/make/locale.mjs +64 -64
  41. package/cli/index.mjs +15 -15
  42. package/cli/package.json +13 -13
  43. package/cli/templates.mjs +236 -236
  44. package/cli/utils.mjs +31 -31
  45. package/dist/module.json +1 -1
  46. package/dist/module.mjs +2 -2
  47. package/dist/runtime/components/Accordion.vue +36 -36
  48. package/dist/runtime/components/Alert.vue +46 -46
  49. package/dist/runtime/components/App.vue +10 -10
  50. package/dist/runtime/components/AuthForm.vue +195 -0
  51. package/dist/runtime/components/AuthForm.vue.d.ts +85 -0
  52. package/dist/runtime/components/Avatar.vue +27 -27
  53. package/dist/runtime/components/AvatarGroup.vue +4 -4
  54. package/dist/runtime/components/Badge.vue +16 -16
  55. package/dist/runtime/components/Banner.vue +113 -0
  56. package/dist/runtime/components/Banner.vue.d.ts +68 -0
  57. package/dist/runtime/components/BlogPost.vue +141 -0
  58. package/dist/runtime/components/BlogPost.vue.d.ts +59 -0
  59. package/dist/runtime/components/BlogPosts.vue +33 -0
  60. package/dist/runtime/components/BlogPosts.vue.d.ts +30 -0
  61. package/dist/runtime/components/Breadcrumb.vue +32 -32
  62. package/dist/runtime/components/Button.vue +28 -28
  63. package/dist/runtime/components/ButtonGroup.vue +3 -3
  64. package/dist/runtime/components/Calendar.vue +74 -74
  65. package/dist/runtime/components/Card.vue +13 -13
  66. package/dist/runtime/components/Carousel.vue +58 -58
  67. package/dist/runtime/components/ChangelogVersion.vue +165 -0
  68. package/dist/runtime/components/ChangelogVersion.vue.d.ts +58 -0
  69. package/dist/runtime/components/ChangelogVersions.vue +54 -0
  70. package/dist/runtime/components/ChangelogVersions.vue.d.ts +74 -0
  71. package/dist/runtime/components/ChatMessage.vue +35 -35
  72. package/dist/runtime/components/ChatMessages.vue +55 -55
  73. package/dist/runtime/components/ChatPalette.vue +32 -0
  74. package/dist/runtime/components/ChatPalette.vue.d.ts +24 -0
  75. package/dist/runtime/components/ChatPrompt.vue +26 -26
  76. package/dist/runtime/components/ChatPrompt.vue.d.ts +1 -1
  77. package/dist/runtime/components/ChatPromptSubmit.vue +10 -10
  78. package/dist/runtime/components/Checkbox.vue +33 -33
  79. package/dist/runtime/components/CheckboxGroup.vue +32 -32
  80. package/dist/runtime/components/Chip.vue +11 -11
  81. package/dist/runtime/components/Collapsible.vue +9 -9
  82. package/dist/runtime/components/ColorPicker.vue +30 -30
  83. package/dist/runtime/components/CommandPalette.vue +117 -117
  84. package/dist/runtime/components/CommandPalette.vue.d.ts +3 -3
  85. package/dist/runtime/components/Container.vue +3 -3
  86. package/dist/runtime/components/ContextMenu.vue +22 -22
  87. package/dist/runtime/components/ContextMenuContent.vue +105 -105
  88. package/dist/runtime/components/DashboardGroup.vue +3 -3
  89. package/dist/runtime/components/DashboardNavbar.vue +40 -40
  90. package/dist/runtime/components/DashboardPanel.vue +27 -27
  91. package/dist/runtime/components/DashboardResizeHandle.vue +7 -7
  92. package/dist/runtime/components/DashboardSearch.vue +20 -20
  93. package/dist/runtime/components/DashboardSearchButton.vue +43 -43
  94. package/dist/runtime/components/DashboardSidebar.vue +74 -74
  95. package/dist/runtime/components/DashboardSidebarCollapse.vue +7 -7
  96. package/dist/runtime/components/DashboardSidebarToggle.vue +7 -7
  97. package/dist/runtime/components/DashboardSidebarToggle.vue.d.ts +1 -1
  98. package/dist/runtime/components/Drawer.vue +55 -55
  99. package/dist/runtime/components/DropdownMenu.vue +24 -24
  100. package/dist/runtime/components/DropdownMenuContent.vue +107 -107
  101. package/dist/runtime/components/Error.vue +22 -22
  102. package/dist/runtime/components/Error.vue.d.ts +1 -1
  103. package/dist/runtime/components/Footer.vue +44 -0
  104. package/dist/runtime/components/Footer.vue.d.ts +29 -0
  105. package/dist/runtime/components/FooterColumns.vue +68 -0
  106. package/dist/runtime/components/FooterColumns.vue.d.ts +52 -0
  107. package/dist/runtime/components/Form.vue +8 -8
  108. package/dist/runtime/components/FormField.vue +37 -37
  109. package/dist/runtime/components/Header.vue +137 -0
  110. package/dist/runtime/components/Header.vue.d.ts +72 -0
  111. package/dist/runtime/components/Icon.vue +1 -1
  112. package/dist/runtime/components/Input.vue +34 -34
  113. package/dist/runtime/components/InputMenu.vue +163 -163
  114. package/dist/runtime/components/InputMenu.vue.d.ts +3 -3
  115. package/dist/runtime/components/InputNumber.vue +49 -49
  116. package/dist/runtime/components/InputTags.vue +55 -55
  117. package/dist/runtime/components/Kbd.vue +5 -5
  118. package/dist/runtime/components/Link.vue +14 -14
  119. package/dist/runtime/components/LinkBase.vue +8 -8
  120. package/dist/runtime/components/Main.vue +23 -0
  121. package/dist/runtime/components/Main.vue.d.ts +20 -0
  122. package/dist/runtime/components/Modal.vue +69 -69
  123. package/dist/runtime/components/NavigationMenu.vue +166 -166
  124. package/dist/runtime/components/OverlayProvider.vue +9 -9
  125. package/dist/runtime/components/Page.vue +37 -0
  126. package/dist/runtime/components/Page.vue.d.ts +25 -0
  127. package/dist/runtime/components/PageAccordion.vue +26 -0
  128. package/dist/runtime/components/PageAccordion.vue.d.ts +21 -0
  129. package/dist/runtime/components/PageAnchors.vue +50 -0
  130. package/dist/runtime/components/PageAnchors.vue.d.ts +42 -0
  131. package/dist/runtime/components/PageAside.vue +36 -0
  132. package/dist/runtime/components/PageAside.vue.d.ts +27 -0
  133. package/dist/runtime/components/PageBody.vue +23 -0
  134. package/dist/runtime/components/PageBody.vue.d.ts +18 -0
  135. package/dist/runtime/components/PageCTA.vue +58 -0
  136. package/dist/runtime/components/PageCTA.vue.d.ts +49 -0
  137. package/dist/runtime/components/PageCard.vue +121 -0
  138. package/dist/runtime/components/PageCard.vue.d.ts +71 -0
  139. package/dist/runtime/components/PageColumns.vue +23 -0
  140. package/dist/runtime/components/PageColumns.vue.d.ts +18 -0
  141. package/dist/runtime/components/PageFeature.vue +71 -0
  142. package/dist/runtime/components/PageFeature.vue.d.ts +43 -0
  143. package/dist/runtime/components/PageGrid.vue +23 -0
  144. package/dist/runtime/components/PageGrid.vue.d.ts +18 -0
  145. package/dist/runtime/components/PageHeader.vue +58 -0
  146. package/dist/runtime/components/PageHeader.vue.d.ts +35 -0
  147. package/dist/runtime/components/PageHero.vue +67 -0
  148. package/dist/runtime/components/PageHero.vue.d.ts +49 -0
  149. package/dist/runtime/components/PageLinks.vue +55 -0
  150. package/dist/runtime/components/PageLinks.vue.d.ts +44 -0
  151. package/dist/runtime/components/PageList.vue +24 -0
  152. package/dist/runtime/components/PageList.vue.d.ts +21 -0
  153. package/dist/runtime/components/PageLogos.vue +64 -0
  154. package/dist/runtime/components/PageLogos.vue.d.ts +32 -0
  155. package/dist/runtime/components/PageMarquee.vue +40 -0
  156. package/dist/runtime/components/PageMarquee.vue.d.ts +30 -0
  157. package/dist/runtime/components/PageSection.vue +88 -0
  158. package/dist/runtime/components/PageSection.vue.d.ts +64 -0
  159. package/dist/runtime/components/Pagination.vue +47 -47
  160. package/dist/runtime/components/PinInput.vue +20 -20
  161. package/dist/runtime/components/Popover.vue +17 -17
  162. package/dist/runtime/components/PricingPlan.vue +129 -0
  163. package/dist/runtime/components/PricingPlan.vue.d.ts +109 -0
  164. package/dist/runtime/components/PricingPlans.vue +45 -0
  165. package/dist/runtime/components/PricingPlans.vue.d.ts +41 -0
  166. package/dist/runtime/components/PricingTable.vue +235 -0
  167. package/dist/runtime/components/PricingTable.vue.d.ts +98 -0
  168. package/dist/runtime/components/Progress.vue +19 -19
  169. package/dist/runtime/components/RadioGroup.vue +43 -43
  170. package/dist/runtime/components/Select.vue +96 -96
  171. package/dist/runtime/components/SelectMenu.vue +130 -130
  172. package/dist/runtime/components/SelectMenu.vue.d.ts +3 -3
  173. package/dist/runtime/components/Separator.vue +15 -15
  174. package/dist/runtime/components/Skeleton.vue +10 -10
  175. package/dist/runtime/components/Slideover.vue +76 -76
  176. package/dist/runtime/components/Slider.vue +27 -27
  177. package/dist/runtime/components/Stepper.vue +51 -51
  178. package/dist/runtime/components/Switch.vue +33 -33
  179. package/dist/runtime/components/Table.vue +77 -77
  180. package/dist/runtime/components/Tabs.vue +38 -37
  181. package/dist/runtime/components/Textarea.vue +33 -33
  182. package/dist/runtime/components/Timeline.vue +38 -38
  183. package/dist/runtime/components/Toast.vue +69 -69
  184. package/dist/runtime/components/Toaster.vue +28 -28
  185. package/dist/runtime/components/Tooltip.vue +19 -19
  186. package/dist/runtime/components/Tree.vue +60 -60
  187. package/dist/runtime/components/User.vue +69 -0
  188. package/dist/runtime/components/User.vue.d.ts +46 -0
  189. package/dist/runtime/components/color-mode/ColorModeAvatar.vue +2 -2
  190. package/dist/runtime/components/color-mode/ColorModeButton.vue +16 -16
  191. package/dist/runtime/components/color-mode/ColorModeImage.vue +2 -2
  192. package/dist/runtime/components/color-mode/ColorModeSelect.vue +19 -19
  193. package/dist/runtime/components/color-mode/ColorModeSwitch.vue +19 -19
  194. package/dist/runtime/components/content/ContentNavigation.vue +109 -109
  195. package/dist/runtime/components/content/ContentSearch.vue +25 -25
  196. package/dist/runtime/components/content/ContentSearchButton.vue +38 -38
  197. package/dist/runtime/components/content/ContentSearchButton.vue.d.ts +58 -12
  198. package/dist/runtime/components/content/ContentSurround.vue +31 -31
  199. package/dist/runtime/components/content/ContentSurround.vue.d.ts +52 -59
  200. package/dist/runtime/components/content/ContentToc.vue +88 -76
  201. package/dist/runtime/components/content/ContentToc.vue.d.ts +86 -88
  202. package/dist/runtime/components/locale/LocaleSelect.vue +20 -20
  203. package/dist/runtime/components/prose/A.vue +3 -3
  204. package/dist/runtime/components/prose/Accordion.vue +5 -5
  205. package/dist/runtime/components/prose/AccordionItem.vue +5 -5
  206. package/dist/runtime/components/prose/Badge.vue +3 -3
  207. package/dist/runtime/components/prose/Blockquote.vue +3 -3
  208. package/dist/runtime/components/prose/Callout.vue +27 -27
  209. package/dist/runtime/components/prose/Card.vue +43 -43
  210. package/dist/runtime/components/prose/CardGroup.vue +3 -3
  211. package/dist/runtime/components/prose/Code.vue +3 -3
  212. package/dist/runtime/components/prose/CodeCollapse.vue +16 -16
  213. package/dist/runtime/components/prose/CodeGroup.vue +15 -15
  214. package/dist/runtime/components/prose/CodeIcon.vue +1 -1
  215. package/dist/runtime/components/prose/CodePreview.vue +9 -9
  216. package/dist/runtime/components/prose/CodeTree.vue +61 -61
  217. package/dist/runtime/components/prose/Collapsible.vue +15 -15
  218. package/dist/runtime/components/prose/Em.vue +1 -1
  219. package/dist/runtime/components/prose/Field.vue +23 -23
  220. package/dist/runtime/components/prose/FieldGroup.vue +3 -3
  221. package/dist/runtime/components/prose/H1.vue +6 -6
  222. package/dist/runtime/components/prose/H2.vue +10 -10
  223. package/dist/runtime/components/prose/H3.vue +10 -10
  224. package/dist/runtime/components/prose/H4.vue +6 -6
  225. package/dist/runtime/components/prose/Hr.vue +1 -1
  226. package/dist/runtime/components/prose/Icon.vue +1 -1
  227. package/dist/runtime/components/prose/Img.vue +8 -8
  228. package/dist/runtime/components/prose/Kbd.vue +1 -1
  229. package/dist/runtime/components/prose/Li.vue +3 -3
  230. package/dist/runtime/components/prose/Ol.vue +3 -3
  231. package/dist/runtime/components/prose/P.vue +3 -3
  232. package/dist/runtime/components/prose/Pre.vue +20 -20
  233. package/dist/runtime/components/prose/Script.vue +3 -3
  234. package/dist/runtime/components/prose/Steps.vue +3 -3
  235. package/dist/runtime/components/prose/Strong.vue +3 -3
  236. package/dist/runtime/components/prose/Table.vue +5 -5
  237. package/dist/runtime/components/prose/Tabs.vue +14 -14
  238. package/dist/runtime/components/prose/TabsItem.vue +5 -5
  239. package/dist/runtime/components/prose/Tbody.vue +3 -3
  240. package/dist/runtime/components/prose/Td.vue +3 -3
  241. package/dist/runtime/components/prose/Th.vue +3 -3
  242. package/dist/runtime/components/prose/Thead.vue +3 -3
  243. package/dist/runtime/components/prose/Tr.vue +3 -3
  244. package/dist/runtime/components/prose/Ul.vue +3 -3
  245. package/dist/runtime/components/prose/callout/Caution.vue +3 -3
  246. package/dist/runtime/components/prose/callout/Note.vue +3 -3
  247. package/dist/runtime/components/prose/callout/Tip.vue +3 -3
  248. package/dist/runtime/components/prose/callout/Warning.vue +3 -3
  249. package/dist/runtime/inertia/components/Link.vue +12 -12
  250. package/dist/runtime/inertia/components/LinkBase.vue +15 -15
  251. package/dist/runtime/types/app.config.d.ts +6 -6
  252. package/dist/runtime/types/index.d.ts +33 -0
  253. package/dist/runtime/types/index.js +33 -0
  254. package/dist/runtime/vue/components/Icon.vue +1 -1
  255. package/dist/runtime/vue/components/Link.vue +31 -31
  256. package/dist/runtime/vue/components/color-mode/ColorModeButton.vue +7 -7
  257. package/dist/runtime/vue/components/color-mode/ColorModeSelect.vue +7 -7
  258. package/dist/runtime/vue/components/color-mode/ColorModeSwitch.vue +7 -7
  259. package/dist/shared/{ui.DQZ75GCP.mjs → ui.DErCA3YU.mjs} +1247 -50
  260. package/dist/unplugin.mjs +1 -1
  261. package/dist/vite.mjs +1 -1
  262. package/package.json +1 -1
  263. package/vue-plugin.d.ts +5 -5
  264. package/.nuxt/ui/prose.ts +0 -321
@@ -92,53 +92,53 @@ defineExpose({
92
92
  </script>
93
93
 
94
94
  <template>
95
- <NumberFieldRoot
96
- v-bind="rootProps"
97
- :id="id"
98
- :class="ui.root({ class: [props.ui?.root, props.class] })"
99
- :name="name"
100
- :disabled="disabled"
101
- :locale="locale"
102
- @update:model-value="onUpdate"
103
- >
104
- <NumberFieldInput
105
- v-bind="{ ...$attrs, ...ariaAttrs }"
106
- ref="inputRef"
107
- :placeholder="placeholder"
108
- :required="required"
109
- :class="ui.base({ class: props.ui?.base })"
110
- @blur="onBlur"
111
- @focus="emitFormFocus"
112
- />
113
-
114
- <div :class="ui.increment({ class: props.ui?.increment })">
115
- <NumberFieldIncrement as-child :disabled="disabled || incrementDisabled">
116
- <slot name="increment">
117
- <UButton
118
- :icon="incrementIcon"
119
- :color="color"
120
- :size="size"
121
- variant="link"
122
- :aria-label="t('inputNumber.increment')"
123
- v-bind="typeof increment === 'object' ? increment : void 0"
124
- />
125
- </slot>
126
- </NumberFieldIncrement>
127
- </div>
128
-
129
- <div :class="ui.decrement({ class: props.ui?.decrement })">
130
- <NumberFieldDecrement as-child :disabled="disabled || decrementDisabled">
131
- <slot name="decrement">
132
- <UButton
133
- :icon="decrementIcon"
134
- :color="color"
135
- :size="size"
136
- variant="link"
137
- :aria-label="t('inputNumber.decrement')"
138
- v-bind="typeof decrement === 'object' ? decrement : void 0"
139
- />
140
- </slot>
141
- </NumberFieldDecrement>
142
- </div>
143
- </NumberFieldRoot>
95
+ <NumberFieldRoot
96
+ v-bind="rootProps"
97
+ :id="id"
98
+ :class="ui.root({ class: [props.ui?.root, props.class] })"
99
+ :name="name"
100
+ :disabled="disabled"
101
+ :locale="locale"
102
+ @update:model-value="onUpdate"
103
+ >
104
+ <NumberFieldInput
105
+ v-bind="{ ...$attrs, ...ariaAttrs }"
106
+ ref="inputRef"
107
+ :placeholder="placeholder"
108
+ :required="required"
109
+ :class="ui.base({ class: props.ui?.base })"
110
+ @blur="onBlur"
111
+ @focus="emitFormFocus"
112
+ />
113
+
114
+ <div :class="ui.increment({ class: props.ui?.increment })">
115
+ <NumberFieldIncrement as-child :disabled="disabled || incrementDisabled">
116
+ <slot name="increment">
117
+ <UButton
118
+ :icon="incrementIcon"
119
+ :color="color"
120
+ :size="size"
121
+ variant="link"
122
+ :aria-label="t('inputNumber.increment')"
123
+ v-bind="typeof increment === 'object' ? increment : void 0"
124
+ />
125
+ </slot>
126
+ </NumberFieldIncrement>
127
+ </div>
128
+
129
+ <div :class="ui.decrement({ class: props.ui?.decrement })">
130
+ <NumberFieldDecrement as-child :disabled="disabled || decrementDisabled">
131
+ <slot name="decrement">
132
+ <UButton
133
+ :icon="decrementIcon"
134
+ :color="color"
135
+ :size="size"
136
+ variant="link"
137
+ :aria-label="t('inputNumber.decrement')"
138
+ v-bind="typeof decrement === 'object' ? decrement : void 0"
139
+ />
140
+ </slot>
141
+ </NumberFieldDecrement>
142
+ </div>
143
+ </NumberFieldRoot>
144
144
  </template>
@@ -101,59 +101,59 @@ defineExpose({
101
101
  </script>
102
102
 
103
103
  <template>
104
- <TagsInputRoot
105
- :id="id"
106
- v-slot="{ modelValue: tags }"
107
- :model-value="modelValue"
108
- :default-value="defaultValue"
109
- :class="ui.root({ class: [ui.base({ class: props.ui?.base }), props.ui?.root, props.class] })"
110
- v-bind="rootProps"
111
- :name="name"
112
- :disabled="disabled"
113
- @update:model-value="onUpdate"
114
- @blur="onBlur"
115
- @focus="onFocus"
116
- >
117
- <TagsInputItem
118
- v-for="(item, index) in tags"
119
- :key="index"
120
- :value="item"
121
- :class="ui.item({ class: [props.ui?.item] })"
122
- >
123
- <TagsInputItemText :class="ui.itemText({ class: [props.ui?.itemText] })">
124
- <slot v-if="!!slots['item-text']" name="item-text" :item="item" :index="index" />
125
- </TagsInputItemText>
126
-
127
- <TagsInputItemDelete
128
- :class="ui.itemDelete({ class: [props.ui?.itemDelete] })"
129
- :disabled="disabled"
130
- >
131
- <slot name="item-delete" :item="item" :index="index">
132
- <UIcon :name="deleteIcon || appConfig.ui.icons.close" :class="ui.itemDeleteIcon({ class: [props.ui?.itemDeleteIcon] })" />
133
- </slot>
134
- </TagsInputItemDelete>
135
- </TagsInputItem>
136
-
137
- <TagsInputInput
138
- ref="inputRef"
139
- v-bind="{ ...$attrs, ...ariaAttrs }"
140
- :placeholder="placeholder"
141
- :class="ui.input({ class: props.ui?.input })"
142
- />
143
-
144
- <slot />
145
-
146
- <span v-if="isLeading || !!avatar || !!slots.leading" :class="ui.leading({ class: props.ui?.leading })">
147
- <slot name="leading">
148
- <UIcon v-if="isLeading && leadingIconName" :name="leadingIconName" :class="ui.leadingIcon({ class: props.ui?.leadingIcon })" />
149
- <UAvatar v-else-if="!!avatar" :size="props.ui?.leadingAvatarSize || ui.leadingAvatarSize()" v-bind="avatar" :class="ui.leadingAvatar({ class: props.ui?.leadingAvatar })" />
150
- </slot>
151
- </span>
152
-
153
- <span v-if="isTrailing || !!slots.trailing" :class="ui.trailing({ class: props.ui?.trailing })">
154
- <slot name="trailing">
155
- <UIcon v-if="trailingIconName" :name="trailingIconName" :class="ui.trailingIcon({ class: props.ui?.trailingIcon })" />
156
- </slot>
157
- </span>
158
- </TagsInputRoot>
104
+ <TagsInputRoot
105
+ :id="id"
106
+ v-slot="{ modelValue: tags }"
107
+ :model-value="modelValue"
108
+ :default-value="defaultValue"
109
+ :class="ui.root({ class: [ui.base({ class: props.ui?.base }), props.ui?.root, props.class] })"
110
+ v-bind="rootProps"
111
+ :name="name"
112
+ :disabled="disabled"
113
+ @update:model-value="onUpdate"
114
+ @blur="onBlur"
115
+ @focus="onFocus"
116
+ >
117
+ <TagsInputItem
118
+ v-for="(item, index) in tags"
119
+ :key="index"
120
+ :value="item"
121
+ :class="ui.item({ class: [props.ui?.item] })"
122
+ >
123
+ <TagsInputItemText :class="ui.itemText({ class: [props.ui?.itemText] })">
124
+ <slot v-if="!!slots['item-text']" name="item-text" :item="item" :index="index" />
125
+ </TagsInputItemText>
126
+
127
+ <TagsInputItemDelete
128
+ :class="ui.itemDelete({ class: [props.ui?.itemDelete] })"
129
+ :disabled="disabled"
130
+ >
131
+ <slot name="item-delete" :item="item" :index="index">
132
+ <UIcon :name="deleteIcon || appConfig.ui.icons.close" :class="ui.itemDeleteIcon({ class: [props.ui?.itemDeleteIcon] })" />
133
+ </slot>
134
+ </TagsInputItemDelete>
135
+ </TagsInputItem>
136
+
137
+ <TagsInputInput
138
+ ref="inputRef"
139
+ v-bind="{ ...$attrs, ...ariaAttrs }"
140
+ :placeholder="placeholder"
141
+ :class="ui.input({ class: props.ui?.input })"
142
+ />
143
+
144
+ <slot />
145
+
146
+ <span v-if="isLeading || !!avatar || !!slots.leading" :class="ui.leading({ class: props.ui?.leading })">
147
+ <slot name="leading">
148
+ <UIcon v-if="isLeading && leadingIconName" :name="leadingIconName" :class="ui.leadingIcon({ class: props.ui?.leadingIcon })" />
149
+ <UAvatar v-else-if="!!avatar" :size="props.ui?.leadingAvatarSize || ui.leadingAvatarSize()" v-bind="avatar" :class="ui.leadingAvatar({ class: props.ui?.leadingAvatar })" />
150
+ </slot>
151
+ </span>
152
+
153
+ <span v-if="isTrailing || !!slots.trailing" :class="ui.trailing({ class: props.ui?.trailing })">
154
+ <slot name="trailing">
155
+ <UIcon v-if="trailingIconName" :name="trailingIconName" :class="ui.trailingIcon({ class: props.ui?.trailingIcon })" />
156
+ </slot>
157
+ </span>
158
+ </TagsInputRoot>
159
159
  </template>
@@ -22,9 +22,9 @@ const ui = computed(() => tv({ extend: tv(theme), ...appConfig.ui?.kbd || {} }))
22
22
  </script>
23
23
 
24
24
  <template>
25
- <Primitive :as="as" :class="ui({ variant, size, class: props.class })">
26
- <slot>
27
- {{ getKbdKey(value) }}
28
- </slot>
29
- </Primitive>
25
+ <Primitive :as="as" :class="ui({ variant, size, class: props.class })">
26
+ <slot>
27
+ {{ getKbdKey(value) }}
28
+ </slot>
29
+ </Primitive>
30
30
  </template>
@@ -87,9 +87,9 @@ function resolveLinkClass({ route: route2, isActive, isExactActive }) {
87
87
  </script>
88
88
 
89
89
  <template>
90
- <NuxtLink v-slot="{ href, navigate, route: linkRoute, rel, target, isExternal, isActive, isExactActive }" v-bind="nuxtLinkProps" :to="to" custom>
91
- <template v-if="custom">
92
- <slot
90
+ <NuxtLink v-slot="{ href, navigate, route: linkRoute, rel, target, isExternal, isActive, isExactActive }" v-bind="nuxtLinkProps" :to="to" custom>
91
+ <template v-if="custom">
92
+ <slot
93
93
  v-bind="{
94
94
  ...$attrs,
95
95
  ...exact && isExactActive ? { 'aria-current': props.ariaCurrentValue } : {},
@@ -102,11 +102,11 @@ function resolveLinkClass({ route: route2, isActive, isExactActive }) {
102
102
  target,
103
103
  isExternal,
104
104
  active: isLinkActive({ route: linkRoute, isActive, isExactActive })
105
- }"
106
- />
107
- </template>
108
- <ULinkBase
109
- v-else
105
+ }"
106
+ />
107
+ </template>
108
+ <ULinkBase
109
+ v-else
110
110
  v-bind="{
111
111
  ...$attrs,
112
112
  ...exact && isExactActive ? { 'aria-current': props.ariaCurrentValue } : {},
@@ -118,10 +118,10 @@ function resolveLinkClass({ route: route2, isActive, isExactActive }) {
118
118
  rel,
119
119
  target,
120
120
  isExternal
121
- }"
122
- :class="resolveLinkClass({ route: linkRoute, isActive, isExactActive })"
123
- >
124
- <slot :active="isLinkActive({ route: linkRoute, isActive, isExactActive })" />
125
- </ULinkBase>
126
- </NuxtLink>
121
+ }"
122
+ :class="resolveLinkClass({ route: linkRoute, isActive, isExactActive })"
123
+ >
124
+ <slot :active="isLinkActive({ route: linkRoute, isActive, isExactActive })" />
125
+ </ULinkBase>
126
+ </NuxtLink>
127
127
  </template>
@@ -34,7 +34,7 @@ function onClickWrapper(e) {
34
34
  </script>
35
35
 
36
36
  <template>
37
- <Primitive
37
+ <Primitive
38
38
  v-bind="href ? {
39
39
  'as': 'a',
40
40
  'href': disabled ? void 0 : href,
@@ -47,11 +47,11 @@ function onClickWrapper(e) {
47
47
  disabled
48
48
  } : {
49
49
  as
50
- }"
51
- :rel="rel"
52
- :target="target"
53
- @click="onClickWrapper"
54
- >
55
- <slot />
56
- </Primitive>
50
+ }"
51
+ :rel="rel"
52
+ :target="target"
53
+ @click="onClickWrapper"
54
+ >
55
+ <slot />
56
+ </Primitive>
57
57
  </template>
@@ -0,0 +1,23 @@
1
+ <script>
2
+ import theme from "#build/ui/main";
3
+ </script>
4
+
5
+ <script setup>
6
+ import { computed } from "vue";
7
+ import { Primitive } from "reka-ui";
8
+ import { useAppConfig } from "#imports";
9
+ import { tv } from "../utils/tv";
10
+ const props = defineProps({
11
+ as: { type: null, required: false, default: "main" },
12
+ class: { type: null, required: false }
13
+ });
14
+ defineSlots();
15
+ const appConfig = useAppConfig();
16
+ const ui = computed(() => tv({ extend: tv(theme), ...appConfig.ui?.main || {} }));
17
+ </script>
18
+
19
+ <template>
20
+ <Primitive :as="as" :class="ui({ class: props.class })">
21
+ <slot />
22
+ </Primitive>
23
+ </template>
@@ -0,0 +1,20 @@
1
+ export interface MainProps {
2
+ /**
3
+ * The element or component this component should render as.
4
+ * @defaultValue 'main'
5
+ */
6
+ as?: any;
7
+ class?: any;
8
+ }
9
+ export interface MainSlots {
10
+ default(props?: {}): any;
11
+ }
12
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<MainProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MainProps> & Readonly<{}>, {
13
+ as: any;
14
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, MainSlots>;
15
+ export default _default;
16
+ type __VLS_WithSlots<T, S> = T & {
17
+ new (): {
18
+ $slots: S;
19
+ };
20
+ };
@@ -58,73 +58,73 @@ const ui = computed(() => tv({ extend: tv(theme), ...appConfig.ui?.modal || {} }
58
58
  </script>
59
59
 
60
60
  <template>
61
- <DialogRoot v-slot="{ open, close }" v-bind="rootProps">
62
- <DialogTrigger v-if="!!slots.default" as-child :class="props.class">
63
- <slot :open="open" />
64
- </DialogTrigger>
65
-
66
- <DialogPortal v-bind="portalProps">
67
- <DialogOverlay v-if="overlay" :class="ui.overlay({ class: props.ui?.overlay })" />
68
-
69
- <DialogContent :class="ui.content({ class: [!slots.default && props.class, props.ui?.content] })" v-bind="contentProps" @after-enter="emits('after:enter')" @after-leave="emits('after:leave')" v-on="contentEvents">
70
- <VisuallyHidden v-if="!!slots.content && (title || !!slots.title || (description || !!slots.description))">
71
- <DialogTitle v-if="title || !!slots.title">
72
- <slot name="title">
73
- {{ title }}
74
- </slot>
75
- </DialogTitle>
76
-
77
- <DialogDescription v-if="description || !!slots.description">
78
- <slot name="description">
79
- {{ description }}
80
- </slot>
81
- </DialogDescription>
82
- </VisuallyHidden>
83
-
84
- <slot name="content" :close="close">
85
- <div v-if="!!slots.header || (title || !!slots.title) || (description || !!slots.description) || (props.close || !!slots.close)" :class="ui.header({ class: props.ui?.header })">
86
- <slot name="header" :close="close">
87
- <div :class="ui.wrapper({ class: props.ui?.wrapper })">
88
- <DialogTitle v-if="title || !!slots.title" :class="ui.title({ class: props.ui?.title })">
89
- <slot name="title">
90
- {{ title }}
91
- </slot>
92
- </DialogTitle>
93
-
94
- <DialogDescription v-if="description || !!slots.description" :class="ui.description({ class: props.ui?.description })">
95
- <slot name="description">
96
- {{ description }}
97
- </slot>
98
- </DialogDescription>
99
- </div>
100
-
101
- <slot name="actions" />
102
-
103
- <DialogClose v-if="props.close || !!slots.close" as-child>
104
- <slot name="close" :close="close" :ui="ui">
105
- <UButton
106
- v-if="props.close"
107
- :icon="closeIcon || appConfig.ui.icons.close"
108
- color="neutral"
109
- variant="ghost"
110
- :aria-label="t('modal.close')"
111
- v-bind="typeof props.close === 'object' ? props.close : {}"
112
- :class="ui.close({ class: props.ui?.close })"
113
- />
114
- </slot>
115
- </DialogClose>
116
- </slot>
117
- </div>
118
-
119
- <div v-if="!!slots.body" :class="ui.body({ class: props.ui?.body })">
120
- <slot name="body" :close="close" />
121
- </div>
122
-
123
- <div v-if="!!slots.footer" :class="ui.footer({ class: props.ui?.footer })">
124
- <slot name="footer" :close="close" />
125
- </div>
126
- </slot>
127
- </DialogContent>
128
- </DialogPortal>
129
- </DialogRoot>
61
+ <DialogRoot v-slot="{ open, close }" v-bind="rootProps">
62
+ <DialogTrigger v-if="!!slots.default" as-child :class="props.class">
63
+ <slot :open="open" />
64
+ </DialogTrigger>
65
+
66
+ <DialogPortal v-bind="portalProps">
67
+ <DialogOverlay v-if="overlay" :class="ui.overlay({ class: props.ui?.overlay })" />
68
+
69
+ <DialogContent :class="ui.content({ class: [!slots.default && props.class, props.ui?.content] })" v-bind="contentProps" @after-enter="emits('after:enter')" @after-leave="emits('after:leave')" v-on="contentEvents">
70
+ <VisuallyHidden v-if="!!slots.content && (title || !!slots.title || (description || !!slots.description))">
71
+ <DialogTitle v-if="title || !!slots.title">
72
+ <slot name="title">
73
+ {{ title }}
74
+ </slot>
75
+ </DialogTitle>
76
+
77
+ <DialogDescription v-if="description || !!slots.description">
78
+ <slot name="description">
79
+ {{ description }}
80
+ </slot>
81
+ </DialogDescription>
82
+ </VisuallyHidden>
83
+
84
+ <slot name="content" :close="close">
85
+ <div v-if="!!slots.header || (title || !!slots.title) || (description || !!slots.description) || (props.close || !!slots.close)" :class="ui.header({ class: props.ui?.header })">
86
+ <slot name="header" :close="close">
87
+ <div :class="ui.wrapper({ class: props.ui?.wrapper })">
88
+ <DialogTitle v-if="title || !!slots.title" :class="ui.title({ class: props.ui?.title })">
89
+ <slot name="title">
90
+ {{ title }}
91
+ </slot>
92
+ </DialogTitle>
93
+
94
+ <DialogDescription v-if="description || !!slots.description" :class="ui.description({ class: props.ui?.description })">
95
+ <slot name="description">
96
+ {{ description }}
97
+ </slot>
98
+ </DialogDescription>
99
+ </div>
100
+
101
+ <slot name="actions" />
102
+
103
+ <DialogClose v-if="props.close || !!slots.close" as-child>
104
+ <slot name="close" :close="close" :ui="ui">
105
+ <UButton
106
+ v-if="props.close"
107
+ :icon="closeIcon || appConfig.ui.icons.close"
108
+ color="neutral"
109
+ variant="ghost"
110
+ :aria-label="t('modal.close')"
111
+ v-bind="typeof props.close === 'object' ? props.close : {}"
112
+ :class="ui.close({ class: props.ui?.close })"
113
+ />
114
+ </slot>
115
+ </DialogClose>
116
+ </slot>
117
+ </div>
118
+
119
+ <div v-if="!!slots.body" :class="ui.body({ class: props.ui?.body })">
120
+ <slot name="body" :close="close" />
121
+ </div>
122
+
123
+ <div v-if="!!slots.footer" :class="ui.footer({ class: props.ui?.footer })">
124
+ <slot name="footer" :close="close" />
125
+ </div>
126
+ </slot>
127
+ </DialogContent>
128
+ </DialogPortal>
129
+ </DialogRoot>
130
130
  </template>