@nuxt/ui 4.7.0 → 4.8.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.
- package/.nuxt/{ui.css → ui.static.css} +0 -10
- package/LICENSE.md +1 -1
- package/cli/commands/make/component.mjs +6 -2
- package/cli/templates.mjs +46 -20
- package/cli/utils.mjs +19 -0
- package/dist/module.json +1 -1
- package/dist/module.mjs +4 -4
- package/dist/runtime/components/Accordion.vue +15 -14
- package/dist/runtime/components/Alert.vue +20 -20
- package/dist/runtime/components/AuthForm.vue +37 -37
- package/dist/runtime/components/Avatar.d.vue.ts +4 -0
- package/dist/runtime/components/Avatar.vue +14 -12
- package/dist/runtime/components/Avatar.vue.d.ts +4 -0
- package/dist/runtime/components/AvatarGroup.d.vue.ts +4 -0
- package/dist/runtime/components/AvatarGroup.vue +11 -8
- package/dist/runtime/components/AvatarGroup.vue.d.ts +4 -0
- package/dist/runtime/components/Badge.vue +11 -11
- package/dist/runtime/components/Banner.vue +25 -23
- package/dist/runtime/components/BlogPost.d.vue.ts +1 -1
- package/dist/runtime/components/BlogPost.vue +30 -28
- package/dist/runtime/components/BlogPost.vue.d.ts +1 -1
- package/dist/runtime/components/BlogPosts.vue +6 -6
- package/dist/runtime/components/Breadcrumb.d.vue.ts +4 -0
- package/dist/runtime/components/Breadcrumb.vue +21 -18
- package/dist/runtime/components/Breadcrumb.vue.d.ts +4 -0
- package/dist/runtime/components/Button.vue +17 -16
- package/dist/runtime/components/Calendar.vue +21 -20
- package/dist/runtime/components/Card.vue +11 -11
- package/dist/runtime/components/Carousel.vue +23 -22
- package/dist/runtime/components/ChangelogVersion.vue +31 -29
- package/dist/runtime/components/ChangelogVersions.vue +8 -8
- package/dist/runtime/components/ChatMessage.d.vue.ts +6 -0
- package/dist/runtime/components/ChatMessage.vue +46 -36
- package/dist/runtime/components/ChatMessage.vue.d.ts +6 -0
- package/dist/runtime/components/ChatMessages.vue +14 -14
- package/dist/runtime/components/ChatPalette.vue +6 -6
- package/dist/runtime/components/ChatPrompt.d.vue.ts +7 -0
- package/dist/runtime/components/ChatPrompt.vue +22 -12
- package/dist/runtime/components/ChatPrompt.vue.d.ts +7 -0
- package/dist/runtime/components/ChatPromptSubmit.d.vue.ts +3 -3
- package/dist/runtime/components/ChatPromptSubmit.vue +6 -6
- package/dist/runtime/components/ChatPromptSubmit.vue.d.ts +3 -3
- package/dist/runtime/components/ChatReasoning.vue +20 -20
- package/dist/runtime/components/ChatShimmer.vue +7 -7
- package/dist/runtime/components/ChatTool.d.vue.ts +1 -1
- package/dist/runtime/components/ChatTool.vue +19 -19
- package/dist/runtime/components/ChatTool.vue.d.ts +1 -1
- package/dist/runtime/components/Checkbox.d.vue.ts +2 -0
- package/dist/runtime/components/Checkbox.vue +25 -24
- package/dist/runtime/components/Checkbox.vue.d.ts +2 -0
- package/dist/runtime/components/CheckboxGroup.d.vue.ts +1 -1
- package/dist/runtime/components/CheckboxGroup.vue +17 -14
- package/dist/runtime/components/CheckboxGroup.vue.d.ts +1 -1
- package/dist/runtime/components/Chip.vue +8 -8
- package/dist/runtime/components/Collapsible.vue +8 -7
- package/dist/runtime/components/ColorPicker.d.vue.ts +2 -0
- package/dist/runtime/components/ColorPicker.vue +10 -10
- package/dist/runtime/components/ColorPicker.vue.d.ts +2 -0
- package/dist/runtime/components/CommandPalette.d.vue.ts +5 -5
- package/dist/runtime/components/CommandPalette.vue +92 -69
- package/dist/runtime/components/CommandPalette.vue.d.ts +5 -5
- package/dist/runtime/components/Container.vue +4 -4
- package/dist/runtime/components/ContextMenu.vue +16 -15
- package/dist/runtime/components/DashboardGroup.d.vue.ts +1 -1
- package/dist/runtime/components/DashboardGroup.vue +6 -4
- package/dist/runtime/components/DashboardGroup.vue.d.ts +1 -1
- package/dist/runtime/components/DashboardNavbar.vue +16 -16
- package/dist/runtime/components/DashboardPanel.vue +7 -7
- package/dist/runtime/components/DashboardResizeHandle.vue +5 -5
- package/dist/runtime/components/DashboardSearch.d.vue.ts +16 -1
- package/dist/runtime/components/DashboardSearch.vue +13 -11
- package/dist/runtime/components/DashboardSearch.vue.d.ts +16 -1
- package/dist/runtime/components/DashboardSearchButton.d.vue.ts +2 -2
- package/dist/runtime/components/DashboardSearchButton.vue +15 -15
- package/dist/runtime/components/DashboardSearchButton.vue.d.ts +2 -2
- package/dist/runtime/components/DashboardSidebar.d.vue.ts +1 -1
- package/dist/runtime/components/DashboardSidebar.vue +22 -22
- package/dist/runtime/components/DashboardSidebar.vue.d.ts +1 -1
- package/dist/runtime/components/DashboardSidebarCollapse.d.vue.ts +1 -1
- package/dist/runtime/components/DashboardSidebarCollapse.vue +5 -5
- package/dist/runtime/components/DashboardSidebarCollapse.vue.d.ts +1 -1
- package/dist/runtime/components/DashboardSidebarToggle.d.vue.ts +1 -1
- package/dist/runtime/components/DashboardSidebarToggle.vue +5 -5
- package/dist/runtime/components/DashboardSidebarToggle.vue.d.ts +1 -1
- package/dist/runtime/components/DashboardToolbar.vue +6 -6
- package/dist/runtime/components/Drawer.d.vue.ts +1 -1
- package/dist/runtime/components/Drawer.vue +23 -22
- package/dist/runtime/components/Drawer.vue.d.ts +1 -1
- package/dist/runtime/components/DropdownMenu.vue +21 -20
- package/dist/runtime/components/Editor.vue +8 -7
- package/dist/runtime/components/EditorDragHandle.d.vue.ts +2 -2
- package/dist/runtime/components/EditorDragHandle.vue +8 -8
- package/dist/runtime/components/EditorDragHandle.vue.d.ts +2 -2
- package/dist/runtime/components/EditorToolbar.vue +10 -9
- package/dist/runtime/components/Empty.vue +14 -14
- package/dist/runtime/components/Error.d.vue.ts +9 -1
- package/dist/runtime/components/Error.vue +17 -10
- package/dist/runtime/components/Error.vue.d.ts +9 -1
- package/dist/runtime/components/FieldGroup.vue +4 -4
- package/dist/runtime/components/FileUpload.vue +36 -37
- package/dist/runtime/components/Footer.vue +10 -10
- package/dist/runtime/components/FooterColumns.vue +15 -15
- package/dist/runtime/components/Form.d.vue.ts +1 -1
- package/dist/runtime/components/Form.vue +5 -5
- package/dist/runtime/components/Form.vue.d.ts +1 -1
- package/dist/runtime/components/FormField.d.vue.ts +2 -1
- package/dist/runtime/components/FormField.vue +21 -21
- package/dist/runtime/components/FormField.vue.d.ts +2 -1
- package/dist/runtime/components/Header.vue +19 -19
- package/dist/runtime/components/Input.vue +19 -19
- package/dist/runtime/components/InputDate.vue +21 -20
- package/dist/runtime/components/InputMenu.d.vue.ts +52 -51
- package/dist/runtime/components/InputMenu.vue +66 -63
- package/dist/runtime/components/InputMenu.vue.d.ts +52 -51
- package/dist/runtime/components/InputNumber.vue +25 -24
- package/dist/runtime/components/InputTags.vue +26 -25
- package/dist/runtime/components/InputTime.vue +21 -20
- package/dist/runtime/components/Kbd.vue +5 -5
- package/dist/runtime/components/Link.d.vue.ts +11 -2
- package/dist/runtime/components/Link.vue +13 -4
- package/dist/runtime/components/Link.vue.d.ts +11 -2
- package/dist/runtime/components/Listbox.d.vue.ts +13 -9
- package/dist/runtime/components/Listbox.vue +34 -32
- package/dist/runtime/components/Listbox.vue.d.ts +13 -9
- package/dist/runtime/components/Main.vue +4 -4
- package/dist/runtime/components/Marquee.vue +5 -5
- package/dist/runtime/components/Modal.d.vue.ts +2 -2
- package/dist/runtime/components/Modal.vue +25 -24
- package/dist/runtime/components/Modal.vue.d.ts +2 -2
- package/dist/runtime/components/NavigationMenu.vue +66 -65
- package/dist/runtime/components/Page.vue +7 -7
- package/dist/runtime/components/PageAnchors.vue +11 -11
- package/dist/runtime/components/PageAside.vue +9 -9
- package/dist/runtime/components/PageBody.vue +4 -4
- package/dist/runtime/components/PageCTA.vue +18 -16
- package/dist/runtime/components/PageCard.vue +25 -23
- package/dist/runtime/components/PageColumns.vue +4 -4
- package/dist/runtime/components/PageFeature.vue +17 -15
- package/dist/runtime/components/PageGrid.vue +4 -4
- package/dist/runtime/components/PageHeader.vue +14 -14
- package/dist/runtime/components/PageHero.vue +20 -18
- package/dist/runtime/components/PageLinks.vue +12 -12
- package/dist/runtime/components/PageList.vue +4 -4
- package/dist/runtime/components/PageLogos.vue +16 -16
- package/dist/runtime/components/PageSection.d.vue.ts +1 -1
- package/dist/runtime/components/PageSection.vue +24 -22
- package/dist/runtime/components/PageSection.vue.d.ts +1 -1
- package/dist/runtime/components/Pagination.d.vue.ts +2 -2
- package/dist/runtime/components/Pagination.vue +23 -22
- package/dist/runtime/components/Pagination.vue.d.ts +2 -2
- package/dist/runtime/components/PinInput.vue +15 -14
- package/dist/runtime/components/Popover.vue +9 -8
- package/dist/runtime/components/PricingPlan.vue +36 -36
- package/dist/runtime/components/PricingPlans.vue +6 -6
- package/dist/runtime/components/PricingTable.vue +44 -44
- package/dist/runtime/components/Progress.d.vue.ts +1 -1
- package/dist/runtime/components/Progress.vue +12 -11
- package/dist/runtime/components/Progress.vue.d.ts +1 -1
- package/dist/runtime/components/RadioGroup.d.vue.ts +2 -0
- package/dist/runtime/components/RadioGroup.vue +28 -27
- package/dist/runtime/components/RadioGroup.vue.d.ts +2 -0
- package/dist/runtime/components/ScrollArea.vue +13 -13
- package/dist/runtime/components/Select.vue +38 -40
- package/dist/runtime/components/SelectMenu.d.vue.ts +46 -46
- package/dist/runtime/components/SelectMenu.vue +49 -48
- package/dist/runtime/components/SelectMenu.vue.d.ts +46 -46
- package/dist/runtime/components/Separator.d.vue.ts +9 -3
- package/dist/runtime/components/Separator.vue +29 -16
- package/dist/runtime/components/Separator.vue.d.ts +9 -3
- package/dist/runtime/components/Sidebar.vue +28 -28
- package/dist/runtime/components/Skeleton.vue +5 -5
- package/dist/runtime/components/Slideover.d.vue.ts +3 -3
- package/dist/runtime/components/Slideover.vue +24 -23
- package/dist/runtime/components/Slideover.vue.d.ts +3 -3
- package/dist/runtime/components/Slider.vue +16 -15
- package/dist/runtime/components/Stepper.vue +19 -18
- package/dist/runtime/components/Switch.d.vue.ts +2 -0
- package/dist/runtime/components/Switch.vue +26 -23
- package/dist/runtime/components/Switch.vue.d.ts +2 -0
- package/dist/runtime/components/Table.vue +26 -25
- package/dist/runtime/components/Tabs.vue +22 -21
- package/dist/runtime/components/Textarea.vue +19 -18
- package/dist/runtime/components/Theme.d.vue.ts +13 -5
- package/dist/runtime/components/Theme.vue +32 -4
- package/dist/runtime/components/Theme.vue.d.ts +13 -5
- package/dist/runtime/components/Timeline.vue +15 -15
- package/dist/runtime/components/Toast.vue +35 -34
- package/dist/runtime/components/Toaster.d.vue.ts +1 -1
- package/dist/runtime/components/Toaster.vue +10 -9
- package/dist/runtime/components/Toaster.vue.d.ts +1 -1
- package/dist/runtime/components/Tooltip.vue +13 -12
- package/dist/runtime/components/Tree.vue +24 -23
- package/dist/runtime/components/User.vue +23 -21
- package/dist/runtime/components/color-mode/ColorModeAvatar.vue +5 -2
- package/dist/runtime/components/color-mode/ColorModeButton.d.vue.ts +1 -1
- package/dist/runtime/components/color-mode/ColorModeButton.vue +8 -6
- package/dist/runtime/components/color-mode/ColorModeButton.vue.d.ts +1 -1
- package/dist/runtime/components/color-mode/ColorModeImage.vue +4 -2
- package/dist/runtime/components/color-mode/ColorModeSwitch.vue +1 -0
- package/dist/runtime/components/content/ContentNavigation.vue +31 -30
- package/dist/runtime/components/content/ContentSearch.d.vue.ts +30 -3
- package/dist/runtime/components/content/ContentSearch.vue +66 -32
- package/dist/runtime/components/content/ContentSearch.vue.d.ts +30 -3
- package/dist/runtime/components/content/ContentSearchButton.d.vue.ts +2 -2
- package/dist/runtime/components/content/ContentSearchButton.vue +15 -15
- package/dist/runtime/components/content/ContentSearchButton.vue.d.ts +2 -2
- package/dist/runtime/components/content/ContentSurround.vue +14 -12
- package/dist/runtime/components/content/ContentToc.vue +34 -33
- package/dist/runtime/components/prose/A.vue +4 -4
- package/dist/runtime/components/prose/Accordion.vue +4 -4
- package/dist/runtime/components/prose/AccordionItem.vue +5 -5
- package/dist/runtime/components/prose/Badge.vue +4 -4
- package/dist/runtime/components/prose/Blockquote.vue +4 -4
- package/dist/runtime/components/prose/Callout.vue +8 -8
- package/dist/runtime/components/prose/Card.vue +12 -12
- package/dist/runtime/components/prose/CardGroup.vue +4 -4
- package/dist/runtime/components/prose/Code.vue +4 -4
- package/dist/runtime/components/prose/CodeCollapse.vue +8 -8
- package/dist/runtime/components/prose/CodeGroup.vue +9 -9
- package/dist/runtime/components/prose/CodePreview.vue +6 -6
- package/dist/runtime/components/prose/CodeTree.vue +14 -14
- package/dist/runtime/components/prose/Collapsible.vue +7 -7
- package/dist/runtime/components/prose/Em.vue +4 -4
- package/dist/runtime/components/prose/Field.vue +13 -13
- package/dist/runtime/components/prose/FieldGroup.vue +4 -4
- package/dist/runtime/components/prose/H1.vue +5 -5
- package/dist/runtime/components/prose/H2.vue +7 -7
- package/dist/runtime/components/prose/H3.vue +7 -7
- package/dist/runtime/components/prose/H4.vue +5 -5
- package/dist/runtime/components/prose/Hr.vue +4 -4
- package/dist/runtime/components/prose/Icon.vue +4 -4
- package/dist/runtime/components/prose/Img.vue +17 -12
- package/dist/runtime/components/prose/Kbd.d.vue.ts +10 -2
- package/dist/runtime/components/prose/Kbd.vue +8 -5
- package/dist/runtime/components/prose/Kbd.vue.d.ts +10 -2
- package/dist/runtime/components/prose/Li.vue +4 -4
- package/dist/runtime/components/prose/Ol.vue +4 -4
- package/dist/runtime/components/prose/P.vue +4 -4
- package/dist/runtime/components/prose/Pre.vue +9 -9
- package/dist/runtime/components/prose/Prompt.vue +12 -12
- package/dist/runtime/components/prose/Steps.vue +4 -4
- package/dist/runtime/components/prose/Strong.vue +4 -4
- package/dist/runtime/components/prose/Table.vue +5 -5
- package/dist/runtime/components/prose/Tabs.vue +4 -4
- package/dist/runtime/components/prose/TabsItem.vue +5 -5
- package/dist/runtime/components/prose/Tbody.vue +4 -4
- package/dist/runtime/components/prose/Td.vue +4 -4
- package/dist/runtime/components/prose/Th.vue +4 -4
- package/dist/runtime/components/prose/Thead.vue +4 -4
- package/dist/runtime/components/prose/Tr.vue +4 -4
- package/dist/runtime/components/prose/Ul.vue +4 -4
- package/dist/runtime/composables/defineShortcuts.js +7 -2
- package/dist/runtime/composables/index.d.ts +1 -2
- package/dist/runtime/composables/index.js +1 -2
- package/dist/runtime/composables/useAvatarGroup.d.ts +12 -1
- package/dist/runtime/composables/useAvatarGroup.js +4 -2
- package/dist/runtime/composables/useComponentIcons.js +1 -1
- package/dist/runtime/composables/useComponentProps.d.ts +180 -0
- package/dist/runtime/composables/useComponentProps.js +59 -0
- package/dist/runtime/composables/useContentSearch.d.ts +4 -2
- package/dist/runtime/composables/useContentSearch.js +64 -7
- package/dist/runtime/composables/useFieldGroup.d.ts +9 -1
- package/dist/runtime/composables/useFormField.d.ts +21 -1
- package/dist/runtime/composables/useForwardProps.d.ts +13 -0
- package/dist/runtime/composables/useForwardProps.js +14 -0
- package/dist/runtime/composables/usePrefix.d.ts +6 -0
- package/dist/runtime/composables/usePrefix.js +11 -0
- package/dist/runtime/composables/useResizable.d.ts +4 -0
- package/dist/runtime/composables/useResizable.js +1 -1
- package/dist/runtime/locale/ar.js +1 -0
- package/dist/runtime/locale/az.js +1 -0
- package/dist/runtime/locale/be.js +1 -0
- package/dist/runtime/locale/bg.js +1 -0
- package/dist/runtime/locale/bn.js +1 -0
- package/dist/runtime/locale/ca.js +1 -0
- package/dist/runtime/locale/ckb.js +1 -0
- package/dist/runtime/locale/cs.js +1 -0
- package/dist/runtime/locale/da.js +1 -0
- package/dist/runtime/locale/de.js +1 -0
- package/dist/runtime/locale/de_ch.js +1 -0
- package/dist/runtime/locale/el.js +1 -0
- package/dist/runtime/locale/en.js +1 -0
- package/dist/runtime/locale/es.js +1 -0
- package/dist/runtime/locale/et.js +1 -0
- package/dist/runtime/locale/eu.js +1 -0
- package/dist/runtime/locale/fa_ir.js +1 -0
- package/dist/runtime/locale/fi.js +1 -0
- package/dist/runtime/locale/fr.js +1 -0
- package/dist/runtime/locale/gl.js +1 -0
- package/dist/runtime/locale/he.js +1 -0
- package/dist/runtime/locale/hi.js +1 -0
- package/dist/runtime/locale/hr.js +1 -0
- package/dist/runtime/locale/hu.js +1 -0
- package/dist/runtime/locale/hy.js +1 -0
- package/dist/runtime/locale/id.js +1 -0
- package/dist/runtime/locale/is.js +1 -0
- package/dist/runtime/locale/it.js +1 -0
- package/dist/runtime/locale/ja.js +1 -0
- package/dist/runtime/locale/ka.js +1 -0
- package/dist/runtime/locale/kk.js +1 -0
- package/dist/runtime/locale/km.js +1 -0
- package/dist/runtime/locale/ko.js +1 -0
- package/dist/runtime/locale/ky.js +1 -0
- package/dist/runtime/locale/lb.js +1 -0
- package/dist/runtime/locale/lo.js +1 -0
- package/dist/runtime/locale/lt.js +1 -0
- package/dist/runtime/locale/mn.js +1 -0
- package/dist/runtime/locale/ms.js +1 -0
- package/dist/runtime/locale/nb_no.js +1 -0
- package/dist/runtime/locale/nl.js +1 -0
- package/dist/runtime/locale/pl.js +1 -0
- package/dist/runtime/locale/pt.js +1 -0
- package/dist/runtime/locale/pt_br.js +1 -0
- package/dist/runtime/locale/ro.js +1 -0
- package/dist/runtime/locale/ru.js +1 -0
- package/dist/runtime/locale/sk.js +1 -0
- package/dist/runtime/locale/sl.js +1 -0
- package/dist/runtime/locale/sq.js +1 -0
- package/dist/runtime/locale/sv.js +1 -0
- package/dist/runtime/locale/th.js +1 -0
- package/dist/runtime/locale/tj.js +1 -0
- package/dist/runtime/locale/tr.js +1 -0
- package/dist/runtime/locale/ug_cn.js +1 -0
- package/dist/runtime/locale/uk.js +1 -0
- package/dist/runtime/locale/ur.js +1 -0
- package/dist/runtime/locale/uz.js +1 -0
- package/dist/runtime/locale/vi.js +1 -0
- package/dist/runtime/locale/zh_cn.js +1 -0
- package/dist/runtime/locale/zh_tw.js +1 -0
- package/dist/runtime/plugins/colors.js +1 -1
- package/dist/runtime/types/content.d.ts +1 -0
- package/dist/runtime/types/content.js +1 -0
- package/dist/runtime/types/form.d.ts +2 -2
- package/dist/runtime/types/locale.d.ts +1 -0
- package/dist/runtime/utils/dashboard.d.ts +1 -1
- package/dist/runtime/utils/link.d.ts +1 -1
- package/dist/runtime/utils/link.js +1 -0
- package/dist/runtime/utils/{fuse.d.ts → search.d.ts} +2 -1
- package/dist/runtime/utils/{fuse.js → search.js} +11 -2
- package/dist/runtime/vue/components/color-mode/ColorModeSwitch.vue +1 -0
- package/dist/runtime/vue/overrides/inertia/Link.d.vue.ts +1 -1
- package/dist/runtime/vue/overrides/inertia/Link.vue +5 -0
- package/dist/runtime/vue/overrides/inertia/Link.vue.d.ts +1 -1
- package/dist/runtime/vue/overrides/none/Link.d.vue.ts +1 -1
- package/dist/runtime/vue/overrides/none/Link.vue.d.ts +1 -1
- package/dist/runtime/vue/overrides/vue-router/Link.d.vue.ts +1 -1
- package/dist/runtime/vue/overrides/vue-router/Link.vue.d.ts +1 -1
- package/dist/shared/{ui.BIQuJqNV.mjs → ui.CoJ8bnb0.mjs} +244 -83
- package/dist/unplugin.mjs +1 -1
- package/dist/vite.mjs +1 -1
- package/package.json +27 -34
- package/dist/runtime/composables/useComponentUI.d.ts +0 -33
- package/dist/runtime/composables/useComponentUI.js +0 -13
- package/dist/runtime/composables/useResolvedVariants.d.ts +0 -21
- package/dist/runtime/composables/useResolvedVariants.js +0 -14
|
@@ -359,14 +359,26 @@ const authForm = {
|
|
|
359
359
|
}
|
|
360
360
|
};
|
|
361
361
|
|
|
362
|
-
const avatar = {
|
|
362
|
+
const avatar = (options) => ({
|
|
363
363
|
slots: {
|
|
364
|
-
root: "inline-flex items-center justify-center shrink-0 select-none rounded-full align-middle
|
|
364
|
+
root: "inline-flex items-center justify-center shrink-0 select-none rounded-full align-middle",
|
|
365
365
|
image: "h-full w-full rounded-[inherit] object-cover",
|
|
366
|
-
fallback: "font-medium
|
|
367
|
-
icon: "
|
|
366
|
+
fallback: "font-medium truncate",
|
|
367
|
+
icon: "shrink-0"
|
|
368
368
|
},
|
|
369
369
|
variants: {
|
|
370
|
+
color: {
|
|
371
|
+
...Object.fromEntries((options.theme.colors || []).map((color) => [color, {
|
|
372
|
+
root: `bg-${color}/10`,
|
|
373
|
+
fallback: `text-${color}`,
|
|
374
|
+
icon: `text-${color}`
|
|
375
|
+
}])),
|
|
376
|
+
neutral: {
|
|
377
|
+
root: "bg-elevated",
|
|
378
|
+
fallback: "text-muted",
|
|
379
|
+
icon: "text-muted"
|
|
380
|
+
}
|
|
381
|
+
},
|
|
370
382
|
size: {
|
|
371
383
|
"3xs": {
|
|
372
384
|
root: "size-4 text-[8px]"
|
|
@@ -398,11 +410,12 @@ const avatar = {
|
|
|
398
410
|
}
|
|
399
411
|
},
|
|
400
412
|
defaultVariants: {
|
|
401
|
-
size: "md"
|
|
413
|
+
size: "md",
|
|
414
|
+
color: "neutral"
|
|
402
415
|
}
|
|
403
|
-
};
|
|
416
|
+
});
|
|
404
417
|
|
|
405
|
-
const avatarGroup = {
|
|
418
|
+
const avatarGroup = (options) => ({
|
|
406
419
|
slots: {
|
|
407
420
|
root: "inline-flex flex-row-reverse justify-end",
|
|
408
421
|
base: "relative rounded-full ring-bg first:me-0"
|
|
@@ -436,12 +449,17 @@ const avatarGroup = {
|
|
|
436
449
|
"3xl": {
|
|
437
450
|
base: "ring-3 -me-2"
|
|
438
451
|
}
|
|
452
|
+
},
|
|
453
|
+
color: {
|
|
454
|
+
...Object.fromEntries((options.theme.colors || []).map((color) => [color, ""])),
|
|
455
|
+
neutral: ""
|
|
439
456
|
}
|
|
440
457
|
},
|
|
441
458
|
defaultVariants: {
|
|
442
|
-
size: "md"
|
|
459
|
+
size: "md",
|
|
460
|
+
color: "neutral"
|
|
443
461
|
}
|
|
444
|
-
};
|
|
462
|
+
});
|
|
445
463
|
|
|
446
464
|
const fieldGroupVariant = {
|
|
447
465
|
fieldGroup: {
|
|
@@ -770,7 +788,7 @@ const breadcrumb = (options) => ({
|
|
|
770
788
|
root: "relative min-w-0",
|
|
771
789
|
list: "flex items-center gap-1.5",
|
|
772
790
|
item: "flex min-w-0",
|
|
773
|
-
link: "group relative flex items-center gap-1.5 text-sm min-w-0
|
|
791
|
+
link: "group relative flex items-center gap-1.5 text-sm min-w-0",
|
|
774
792
|
linkLeadingIcon: "shrink-0 size-5",
|
|
775
793
|
linkLeadingAvatar: "shrink-0",
|
|
776
794
|
linkLeadingAvatarSize: "2xs",
|
|
@@ -781,7 +799,7 @@ const breadcrumb = (options) => ({
|
|
|
781
799
|
variants: {
|
|
782
800
|
active: {
|
|
783
801
|
true: {
|
|
784
|
-
link: "
|
|
802
|
+
link: "font-semibold"
|
|
785
803
|
},
|
|
786
804
|
false: {
|
|
787
805
|
link: "text-muted font-medium"
|
|
@@ -794,6 +812,10 @@ const breadcrumb = (options) => ({
|
|
|
794
812
|
},
|
|
795
813
|
to: {
|
|
796
814
|
true: ""
|
|
815
|
+
},
|
|
816
|
+
color: {
|
|
817
|
+
...Object.fromEntries((options.theme.colors || []).map((color) => [color, { link: `focus-visible:outline-${color}` }])),
|
|
818
|
+
neutral: { link: "focus-visible:outline-inverted" }
|
|
797
819
|
}
|
|
798
820
|
},
|
|
799
821
|
compoundVariants: [{
|
|
@@ -803,7 +825,22 @@ const breadcrumb = (options) => ({
|
|
|
803
825
|
class: {
|
|
804
826
|
link: ["hover:text-default", options.theme.transitions && "transition-colors"]
|
|
805
827
|
}
|
|
806
|
-
}]
|
|
828
|
+
}, ...(options.theme.colors || []).map((color) => ({
|
|
829
|
+
color,
|
|
830
|
+
active: true,
|
|
831
|
+
class: {
|
|
832
|
+
link: `text-${color}`
|
|
833
|
+
}
|
|
834
|
+
})), {
|
|
835
|
+
color: "neutral",
|
|
836
|
+
active: true,
|
|
837
|
+
class: {
|
|
838
|
+
link: "text-highlighted"
|
|
839
|
+
}
|
|
840
|
+
}],
|
|
841
|
+
defaultVariants: {
|
|
842
|
+
color: "primary"
|
|
843
|
+
}
|
|
807
844
|
});
|
|
808
845
|
|
|
809
846
|
const button = (options) => ({
|
|
@@ -1235,38 +1272,35 @@ const changelogVersions = {
|
|
|
1235
1272
|
const chatMessage = (options) => ({
|
|
1236
1273
|
slots: {
|
|
1237
1274
|
root: "group/message relative w-full",
|
|
1275
|
+
header: "flex mb-1.5",
|
|
1238
1276
|
container: "relative flex items-start",
|
|
1277
|
+
body: "min-w-0",
|
|
1239
1278
|
leading: "inline-flex items-center justify-center min-h-6",
|
|
1240
1279
|
leadingIcon: "shrink-0",
|
|
1241
1280
|
leadingAvatar: "shrink-0",
|
|
1242
1281
|
leadingAvatarSize: "",
|
|
1243
|
-
files: "flex items-center gap-1.5
|
|
1244
|
-
content: "relative text-pretty
|
|
1245
|
-
actions: ["opacity-0 group-hover/message:opacity-100 absolute bottom-0 flex items-center", options.theme.transitions && "transition-opacity"]
|
|
1282
|
+
files: "flex items-center gap-1.5",
|
|
1283
|
+
content: "relative text-pretty wrap-break-word *:first:mt-0 *:last:mb-0",
|
|
1284
|
+
actions: ["[@media(hover:hover)]:opacity-0 group-hover/message:opacity-100 absolute bottom-0 flex items-center", options.theme.transitions && "transition-opacity"]
|
|
1246
1285
|
},
|
|
1247
1286
|
variants: {
|
|
1248
1287
|
variant: {
|
|
1249
|
-
solid:
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
subtle: {
|
|
1259
|
-
content: "bg-elevated/50 ring ring-default"
|
|
1260
|
-
},
|
|
1261
|
-
naked: {
|
|
1262
|
-
content: ""
|
|
1263
|
-
}
|
|
1288
|
+
solid: "",
|
|
1289
|
+
outline: "",
|
|
1290
|
+
soft: "",
|
|
1291
|
+
subtle: "",
|
|
1292
|
+
naked: ""
|
|
1293
|
+
},
|
|
1294
|
+
color: {
|
|
1295
|
+
...Object.fromEntries((options.theme.colors || []).map((color) => [color, ""])),
|
|
1296
|
+
neutral: ""
|
|
1264
1297
|
},
|
|
1265
1298
|
side: {
|
|
1266
1299
|
left: {},
|
|
1267
1300
|
right: {
|
|
1268
1301
|
container: "justify-end ms-auto max-w-[75%]",
|
|
1269
|
-
|
|
1302
|
+
header: "justify-end",
|
|
1303
|
+
actions: "right-0"
|
|
1270
1304
|
}
|
|
1271
1305
|
},
|
|
1272
1306
|
leading: {
|
|
@@ -1298,20 +1332,6 @@ const chatMessage = (options) => ({
|
|
|
1298
1332
|
class: {
|
|
1299
1333
|
container: "pb-8"
|
|
1300
1334
|
}
|
|
1301
|
-
}, {
|
|
1302
|
-
leading: true,
|
|
1303
|
-
compact: false,
|
|
1304
|
-
side: "left",
|
|
1305
|
-
class: {
|
|
1306
|
-
actions: "left-11"
|
|
1307
|
-
}
|
|
1308
|
-
}, {
|
|
1309
|
-
leading: true,
|
|
1310
|
-
compact: true,
|
|
1311
|
-
side: "left",
|
|
1312
|
-
class: {
|
|
1313
|
-
actions: "left-6.5"
|
|
1314
|
-
}
|
|
1315
1335
|
}, {
|
|
1316
1336
|
variant: ["solid", "outline", "soft", "subtle"],
|
|
1317
1337
|
compact: false,
|
|
@@ -1332,9 +1352,65 @@ const chatMessage = (options) => ({
|
|
|
1332
1352
|
class: {
|
|
1333
1353
|
content: "w-full"
|
|
1334
1354
|
}
|
|
1355
|
+
}, ...(options.theme.colors || []).map((color) => ({
|
|
1356
|
+
color,
|
|
1357
|
+
variant: "solid",
|
|
1358
|
+
class: {
|
|
1359
|
+
content: `bg-${color} text-inverted`
|
|
1360
|
+
}
|
|
1361
|
+
})), ...(options.theme.colors || []).map((color) => ({
|
|
1362
|
+
color,
|
|
1363
|
+
variant: "outline",
|
|
1364
|
+
class: {
|
|
1365
|
+
content: `text-${color} ring ring-${color}/25`
|
|
1366
|
+
}
|
|
1367
|
+
})), ...(options.theme.colors || []).map((color) => ({
|
|
1368
|
+
color,
|
|
1369
|
+
variant: "soft",
|
|
1370
|
+
class: {
|
|
1371
|
+
content: `bg-${color}/10 text-${color}`
|
|
1372
|
+
}
|
|
1373
|
+
})), ...(options.theme.colors || []).map((color) => ({
|
|
1374
|
+
color,
|
|
1375
|
+
variant: "subtle",
|
|
1376
|
+
class: {
|
|
1377
|
+
content: `bg-${color}/10 text-${color} ring ring-${color}/25`
|
|
1378
|
+
}
|
|
1379
|
+
})), ...(options.theme.colors || []).map((color) => ({
|
|
1380
|
+
color,
|
|
1381
|
+
variant: "naked",
|
|
1382
|
+
class: {
|
|
1383
|
+
content: `text-${color}`
|
|
1384
|
+
}
|
|
1385
|
+
})), {
|
|
1386
|
+
color: "neutral",
|
|
1387
|
+
variant: "solid",
|
|
1388
|
+
class: {
|
|
1389
|
+
content: "bg-inverted text-inverted"
|
|
1390
|
+
}
|
|
1391
|
+
}, {
|
|
1392
|
+
color: "neutral",
|
|
1393
|
+
variant: "outline",
|
|
1394
|
+
class: {
|
|
1395
|
+
content: "bg-default ring ring-default"
|
|
1396
|
+
}
|
|
1397
|
+
}, {
|
|
1398
|
+
color: "neutral",
|
|
1399
|
+
variant: "soft",
|
|
1400
|
+
class: {
|
|
1401
|
+
content: "bg-elevated/50"
|
|
1402
|
+
}
|
|
1403
|
+
}, {
|
|
1404
|
+
color: "neutral",
|
|
1405
|
+
variant: "subtle",
|
|
1406
|
+
class: {
|
|
1407
|
+
content: "bg-elevated/50 ring ring-default"
|
|
1408
|
+
}
|
|
1335
1409
|
}],
|
|
1336
1410
|
defaultVariants: {
|
|
1337
|
-
|
|
1411
|
+
side: "left",
|
|
1412
|
+
variant: "naked",
|
|
1413
|
+
color: "neutral"
|
|
1338
1414
|
}
|
|
1339
1415
|
});
|
|
1340
1416
|
|
|
@@ -1471,9 +1547,6 @@ const chatTool = (options) => ({
|
|
|
1471
1547
|
chevronIcon: ["absolute inset-0 opacity-0 group-hover:opacity-100 group-data-[state=open]:opacity-100", options.theme.transitions && "transition-[rotate,opacity] duration-200"]
|
|
1472
1548
|
}
|
|
1473
1549
|
}
|
|
1474
|
-
},
|
|
1475
|
-
defaultVariants: {
|
|
1476
|
-
variant: "inline"
|
|
1477
1550
|
}
|
|
1478
1551
|
});
|
|
1479
1552
|
|
|
@@ -1561,6 +1634,9 @@ const checkbox = (options) => ({
|
|
|
1561
1634
|
description: "cursor-not-allowed"
|
|
1562
1635
|
}
|
|
1563
1636
|
},
|
|
1637
|
+
highlight: {
|
|
1638
|
+
true: ""
|
|
1639
|
+
},
|
|
1564
1640
|
checked: {
|
|
1565
1641
|
true: ""
|
|
1566
1642
|
}
|
|
@@ -1591,6 +1667,20 @@ const checkbox = (options) => ({
|
|
|
1591
1667
|
class: {
|
|
1592
1668
|
root: "cursor-not-allowed"
|
|
1593
1669
|
}
|
|
1670
|
+
},
|
|
1671
|
+
...(options.theme.colors || []).map((color) => ({
|
|
1672
|
+
color,
|
|
1673
|
+
highlight: true,
|
|
1674
|
+
class: {
|
|
1675
|
+
base: `ring-${color}`
|
|
1676
|
+
}
|
|
1677
|
+
})),
|
|
1678
|
+
{
|
|
1679
|
+
color: "neutral",
|
|
1680
|
+
highlight: true,
|
|
1681
|
+
class: {
|
|
1682
|
+
base: "ring-inverted"
|
|
1683
|
+
}
|
|
1594
1684
|
}
|
|
1595
1685
|
],
|
|
1596
1686
|
defaultVariants: {
|
|
@@ -1840,10 +1930,10 @@ const commandPalette = (options) => ({
|
|
|
1840
1930
|
itemTrailingKbdsSize: "",
|
|
1841
1931
|
itemWrapper: "flex-1 flex flex-col text-start min-w-0",
|
|
1842
1932
|
itemLabel: "truncate space-x-1 text-dimmed",
|
|
1843
|
-
|
|
1844
|
-
itemLabelBase: "text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary",
|
|
1933
|
+
itemLabelBase: "text-highlighted [&>mark]:text-primary [&>mark]:bg-primary/15",
|
|
1845
1934
|
itemLabelPrefix: "text-default",
|
|
1846
|
-
itemLabelSuffix: "text-dimmed [&>mark]:text-
|
|
1935
|
+
itemLabelSuffix: "text-dimmed [&>mark]:text-primary [&>mark]:bg-primary/15",
|
|
1936
|
+
itemDescription: "truncate text-muted [&>mark]:text-primary [&>mark]:bg-primary/15"
|
|
1847
1937
|
},
|
|
1848
1938
|
variants: {
|
|
1849
1939
|
virtualize: {
|
|
@@ -1958,7 +2048,7 @@ const container = {
|
|
|
1958
2048
|
|
|
1959
2049
|
const contextMenu = (options) => ({
|
|
1960
2050
|
slots: {
|
|
1961
|
-
content: "min-w-32 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-context-menu-content-transform-origin) flex flex-col",
|
|
2051
|
+
content: "min-w-32 max-h-(--reka-context-menu-content-available-height) 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-context-menu-content-transform-origin) flex flex-col",
|
|
1962
2052
|
viewport: "relative divide-y divide-default scroll-py-1 overflow-y-auto flex-1",
|
|
1963
2053
|
group: "p-1 isolate",
|
|
1964
2054
|
label: "w-full flex items-center font-semibold text-highlighted",
|
|
@@ -2237,7 +2327,7 @@ const drawer = (options) => ({
|
|
|
2237
2327
|
handle: "mb-4"
|
|
2238
2328
|
},
|
|
2239
2329
|
right: {
|
|
2240
|
-
content: "flex-row",
|
|
2330
|
+
content: "flex-row rtl:flex-row-reverse",
|
|
2241
2331
|
handle: "!ml-4"
|
|
2242
2332
|
},
|
|
2243
2333
|
bottom: {
|
|
@@ -2245,7 +2335,7 @@ const drawer = (options) => ({
|
|
|
2245
2335
|
handle: "mt-4"
|
|
2246
2336
|
},
|
|
2247
2337
|
left: {
|
|
2248
|
-
content: "flex-row-reverse",
|
|
2338
|
+
content: "flex-row-reverse rtl:flex-row",
|
|
2249
2339
|
handle: "!mr-4"
|
|
2250
2340
|
}
|
|
2251
2341
|
},
|
|
@@ -2348,7 +2438,7 @@ const drawer = (options) => ({
|
|
|
2348
2438
|
|
|
2349
2439
|
const dropdownMenu = (options) => ({
|
|
2350
2440
|
slots: {
|
|
2351
|
-
content: "min-w-32 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-dropdown-menu-content-transform-origin) flex flex-col",
|
|
2441
|
+
content: "min-w-32 max-h-(--reka-dropdown-menu-content-available-height) 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-dropdown-menu-content-transform-origin) flex flex-col",
|
|
2352
2442
|
input: "border-b border-default",
|
|
2353
2443
|
empty: "text-center text-muted",
|
|
2354
2444
|
viewport: "relative divide-y divide-default scroll-py-1 overflow-y-auto flex-1",
|
|
@@ -2695,6 +2785,8 @@ const empty = {
|
|
|
2695
2785
|
const error = {
|
|
2696
2786
|
slots: {
|
|
2697
2787
|
root: "min-h-[calc(100vh-var(--ui-header-height))] flex flex-col items-center justify-center text-center",
|
|
2788
|
+
leading: "mb-4 flex items-center justify-center",
|
|
2789
|
+
leadingIcon: "size-10 shrink-0 text-primary",
|
|
2698
2790
|
statusCode: "text-base font-semibold text-primary",
|
|
2699
2791
|
statusMessage: "mt-2 text-4xl sm:text-5xl font-bold text-highlighted text-balance",
|
|
2700
2792
|
message: "mt-4 text-lg text-muted text-balance",
|
|
@@ -2971,8 +3063,7 @@ const formField = {
|
|
|
2971
3063
|
}
|
|
2972
3064
|
},
|
|
2973
3065
|
defaultVariants: {
|
|
2974
|
-
size: "md"
|
|
2975
|
-
orientation: "vertical"
|
|
3066
|
+
size: "md"
|
|
2976
3067
|
}
|
|
2977
3068
|
};
|
|
2978
3069
|
|
|
@@ -3249,7 +3340,7 @@ const inputMenu = (options) => {
|
|
|
3249
3340
|
trailing: "group absolute inset-y-0 end-0 flex items-center disabled:cursor-not-allowed disabled:opacity-75 focus:outline-none",
|
|
3250
3341
|
trailingClear: "p-0",
|
|
3251
3342
|
arrow: "fill-bg stroke-default",
|
|
3252
|
-
content: "max-h-
|
|
3343
|
+
content: "max-h-[min(15rem,var(--reka-combobox-content-available-height))] w-(--reka-combobox-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-combobox-content-transform-origin) pointer-events-auto flex flex-col",
|
|
3253
3344
|
viewport: "relative scroll-py-1 overflow-y-auto flex-1",
|
|
3254
3345
|
group: "p-1 isolate",
|
|
3255
3346
|
empty: "text-center text-muted",
|
|
@@ -5307,6 +5398,9 @@ const radioGroup = (options) => ({
|
|
|
5307
5398
|
indicator: "after:size-2"
|
|
5308
5399
|
}
|
|
5309
5400
|
},
|
|
5401
|
+
highlight: {
|
|
5402
|
+
true: ""
|
|
5403
|
+
},
|
|
5310
5404
|
disabled: {
|
|
5311
5405
|
true: {
|
|
5312
5406
|
item: "opacity-75",
|
|
@@ -5377,13 +5471,26 @@ const radioGroup = (options) => ({
|
|
|
5377
5471
|
class: {
|
|
5378
5472
|
item: "cursor-not-allowed"
|
|
5379
5473
|
}
|
|
5474
|
+
},
|
|
5475
|
+
...(options.theme.colors || []).map((color) => ({
|
|
5476
|
+
color,
|
|
5477
|
+
highlight: true,
|
|
5478
|
+
class: {
|
|
5479
|
+
base: `ring-${color}`
|
|
5480
|
+
}
|
|
5481
|
+
})),
|
|
5482
|
+
{
|
|
5483
|
+
color: "neutral",
|
|
5484
|
+
highlight: true,
|
|
5485
|
+
class: {
|
|
5486
|
+
base: "ring-inverted"
|
|
5487
|
+
}
|
|
5380
5488
|
}
|
|
5381
5489
|
],
|
|
5382
5490
|
defaultVariants: {
|
|
5383
5491
|
size: "md",
|
|
5384
5492
|
color: "primary",
|
|
5385
5493
|
variant: "list",
|
|
5386
|
-
orientation: "vertical",
|
|
5387
5494
|
indicator: "start"
|
|
5388
5495
|
}
|
|
5389
5496
|
});
|
|
@@ -5418,7 +5525,7 @@ const select = (options) => {
|
|
|
5418
5525
|
value: "truncate pointer-events-none",
|
|
5419
5526
|
placeholder: "truncate text-dimmed",
|
|
5420
5527
|
arrow: "fill-bg stroke-default",
|
|
5421
|
-
content: "max-h-
|
|
5528
|
+
content: "max-h-[min(15rem,var(--reka-select-content-available-height))] w-(--reka-select-trigger-width) bg-default shadow-lg rounded-md ring ring-default overflow-hidden origin-(--reka-select-content-transform-origin) pointer-events-auto flex flex-col",
|
|
5422
5529
|
viewport: "relative divide-y divide-default scroll-py-1 overflow-y-auto flex-1",
|
|
5423
5530
|
group: "p-1 isolate",
|
|
5424
5531
|
empty: "text-center text-muted",
|
|
@@ -5528,7 +5635,7 @@ const selectMenu = (options) => {
|
|
|
5528
5635
|
input: "border-b border-default",
|
|
5529
5636
|
focusScope: "flex flex-col min-h-0",
|
|
5530
5637
|
viewport: "relative scroll-py-1 overflow-y-auto flex-1",
|
|
5531
|
-
content: (content) => [content, "origin-(--reka-combobox-content-transform-origin) w-(--reka-combobox-trigger-width)"],
|
|
5638
|
+
content: (content) => [content, "max-h-[min(15rem,var(--reka-combobox-content-available-height))] origin-(--reka-combobox-content-transform-origin) w-(--reka-combobox-trigger-width)"],
|
|
5532
5639
|
trailingClear: "p-0"
|
|
5533
5640
|
},
|
|
5534
5641
|
variants: {
|
|
@@ -5570,12 +5677,12 @@ const separator = (options) => ({
|
|
|
5570
5677
|
horizontal: {
|
|
5571
5678
|
root: "w-full flex-row",
|
|
5572
5679
|
border: "w-full",
|
|
5573
|
-
container: "
|
|
5680
|
+
container: "whitespace-nowrap"
|
|
5574
5681
|
},
|
|
5575
5682
|
vertical: {
|
|
5576
5683
|
root: "h-full flex-col",
|
|
5577
5684
|
border: "h-full",
|
|
5578
|
-
container: "
|
|
5685
|
+
container: ""
|
|
5579
5686
|
}
|
|
5580
5687
|
},
|
|
5581
5688
|
size: {
|
|
@@ -5585,6 +5692,11 @@ const separator = (options) => ({
|
|
|
5585
5692
|
lg: "",
|
|
5586
5693
|
xl: ""
|
|
5587
5694
|
},
|
|
5695
|
+
position: {
|
|
5696
|
+
start: "",
|
|
5697
|
+
center: "",
|
|
5698
|
+
end: ""
|
|
5699
|
+
},
|
|
5588
5700
|
type: {
|
|
5589
5701
|
solid: {
|
|
5590
5702
|
border: "border-solid"
|
|
@@ -5598,6 +5710,30 @@ const separator = (options) => ({
|
|
|
5598
5710
|
}
|
|
5599
5711
|
},
|
|
5600
5712
|
compoundVariants: [{
|
|
5713
|
+
orientation: "horizontal",
|
|
5714
|
+
position: "start",
|
|
5715
|
+
class: { container: "me-3" }
|
|
5716
|
+
}, {
|
|
5717
|
+
orientation: "horizontal",
|
|
5718
|
+
position: "center",
|
|
5719
|
+
class: { container: "mx-3" }
|
|
5720
|
+
}, {
|
|
5721
|
+
orientation: "horizontal",
|
|
5722
|
+
position: "end",
|
|
5723
|
+
class: { container: "ms-3" }
|
|
5724
|
+
}, {
|
|
5725
|
+
orientation: "vertical",
|
|
5726
|
+
position: "start",
|
|
5727
|
+
class: { container: "mb-2" }
|
|
5728
|
+
}, {
|
|
5729
|
+
orientation: "vertical",
|
|
5730
|
+
position: "center",
|
|
5731
|
+
class: { container: "my-2" }
|
|
5732
|
+
}, {
|
|
5733
|
+
orientation: "vertical",
|
|
5734
|
+
position: "end",
|
|
5735
|
+
class: { container: "mt-2" }
|
|
5736
|
+
}, {
|
|
5601
5737
|
orientation: "horizontal",
|
|
5602
5738
|
size: "xs",
|
|
5603
5739
|
class: { border: "border-t" }
|
|
@@ -6200,6 +6336,9 @@ const _switch = (options) => ({
|
|
|
6200
6336
|
icon: "animate-spin"
|
|
6201
6337
|
}
|
|
6202
6338
|
},
|
|
6339
|
+
highlight: {
|
|
6340
|
+
true: ""
|
|
6341
|
+
},
|
|
6203
6342
|
required: {
|
|
6204
6343
|
true: {
|
|
6205
6344
|
label: "after:content-['*'] after:ms-0.5 after:text-error"
|
|
@@ -6214,6 +6353,22 @@ const _switch = (options) => ({
|
|
|
6214
6353
|
}
|
|
6215
6354
|
}
|
|
6216
6355
|
},
|
|
6356
|
+
compoundVariants: [
|
|
6357
|
+
...(options.theme.colors || []).map((color) => ({
|
|
6358
|
+
color,
|
|
6359
|
+
highlight: true,
|
|
6360
|
+
class: {
|
|
6361
|
+
base: `ring ring-${color}`
|
|
6362
|
+
}
|
|
6363
|
+
})),
|
|
6364
|
+
{
|
|
6365
|
+
color: "neutral",
|
|
6366
|
+
highlight: true,
|
|
6367
|
+
class: {
|
|
6368
|
+
base: "ring ring-inverted"
|
|
6369
|
+
}
|
|
6370
|
+
}
|
|
6371
|
+
],
|
|
6217
6372
|
defaultVariants: {
|
|
6218
6373
|
color: "primary",
|
|
6219
6374
|
size: "md"
|
|
@@ -7480,11 +7635,11 @@ const pre = {
|
|
|
7480
7635
|
|
|
7481
7636
|
const prompt = {
|
|
7482
7637
|
slots: {
|
|
7483
|
-
root: "relative flex items-center gap-2 border border-muted bg-muted rounded-md px-4 py-3 my-5 last:mb-0",
|
|
7638
|
+
root: "relative flex flex-wrap items-center gap-2 border border-muted bg-muted rounded-md px-4 py-3 my-5 last:mb-0",
|
|
7484
7639
|
icon: "size-4 shrink-0 text-highlighted",
|
|
7485
|
-
content: "
|
|
7640
|
+
content: "min-w-0",
|
|
7486
7641
|
description: "text-sm/6 text-default font-medium",
|
|
7487
|
-
actions: "flex items-center
|
|
7642
|
+
actions: "flex flex-wrap items-center gap-1.5 ms-auto"
|
|
7488
7643
|
}
|
|
7489
7644
|
};
|
|
7490
7645
|
|
|
@@ -8049,21 +8204,7 @@ function getTemplates(options, uiConfig, nuxt, resolve) {
|
|
|
8049
8204
|
}
|
|
8050
8205
|
return sources.join("\n");
|
|
8051
8206
|
}
|
|
8052
|
-
|
|
8053
|
-
filename: "ui.css",
|
|
8054
|
-
write: true,
|
|
8055
|
-
getContents: async () => {
|
|
8056
|
-
const sources = await generateSources();
|
|
8057
|
-
const prefix = options.theme?.prefix ? `${options.theme.prefix}:` : "";
|
|
8058
|
-
return `${sources}
|
|
8059
|
-
|
|
8060
|
-
@layer base {
|
|
8061
|
-
body {
|
|
8062
|
-
@apply ${prefix}antialiased ${prefix}text-default ${prefix}bg-default ${prefix}scheme-light ${prefix}dark:scheme-dark;
|
|
8063
|
-
}
|
|
8064
|
-
}
|
|
8065
|
-
|
|
8066
|
-
@theme static {
|
|
8207
|
+
const themeBlocks = `@theme static {
|
|
8067
8208
|
--color-old-neutral-50: ${colors.neutral[50]};
|
|
8068
8209
|
--color-old-neutral-100: ${colors.neutral[100]};
|
|
8069
8210
|
--color-old-neutral-200: ${colors.neutral[200]};
|
|
@@ -8129,8 +8270,28 @@ function getTemplates(options, uiConfig, nuxt, resolve) {
|
|
|
8129
8270
|
--fill-inverted: var(--ui-border-inverted);
|
|
8130
8271
|
}
|
|
8131
8272
|
`;
|
|
8273
|
+
templates.push({
|
|
8274
|
+
filename: "ui.css",
|
|
8275
|
+
write: true,
|
|
8276
|
+
getContents: async () => {
|
|
8277
|
+
const sources = await generateSources();
|
|
8278
|
+
const prefix = options.theme?.prefix ? `${options.theme.prefix}:` : "";
|
|
8279
|
+
return `${sources}
|
|
8280
|
+
|
|
8281
|
+
@layer base {
|
|
8282
|
+
body {
|
|
8283
|
+
@apply ${prefix}antialiased ${prefix}text-default ${prefix}bg-default ${prefix}scheme-light ${prefix}dark:scheme-dark;
|
|
8284
|
+
}
|
|
8285
|
+
}
|
|
8286
|
+
|
|
8287
|
+
${themeBlocks}`;
|
|
8132
8288
|
}
|
|
8133
8289
|
});
|
|
8290
|
+
templates.push({
|
|
8291
|
+
filename: "ui.static.css",
|
|
8292
|
+
write: true,
|
|
8293
|
+
getContents: () => themeBlocks
|
|
8294
|
+
});
|
|
8134
8295
|
templates.push({
|
|
8135
8296
|
filename: "ui/index.ts",
|
|
8136
8297
|
write: true,
|
|
@@ -8224,4 +8385,4 @@ const publicComposables = {
|
|
|
8224
8385
|
useToast: ["useToast"]
|
|
8225
8386
|
};
|
|
8226
8387
|
|
|
8227
|
-
export {
|
|
8388
|
+
export { addTemplates as a, getTemplates as b, defaultOptions as d, getDefaultConfig as g, publicComposables as p, resolveColors as r };
|
package/dist/unplugin.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { join, normalize } from 'pathe';
|
|
|
3
3
|
import { createUnplugin } from 'unplugin';
|
|
4
4
|
import { defu } from 'defu';
|
|
5
5
|
import tailwind from '@tailwindcss/vite';
|
|
6
|
-
import {
|
|
6
|
+
import { b as getTemplates, p as publicComposables, d as defaultOptions, r as resolveColors, g as getDefaultConfig } from './shared/ui.CoJ8bnb0.mjs';
|
|
7
7
|
import fs from 'node:fs';
|
|
8
8
|
import path from 'node:path';
|
|
9
9
|
import MagicString from 'magic-string';
|
package/dist/vite.mjs
CHANGED