@eslamdevui/ui 3.3.1 → 3.3.2-beta.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/button.ts +42 -42
- package/.nuxt/ui/command-palette.ts +2 -1
- package/.nuxt/ui/file-upload.ts +295 -0
- package/.nuxt/ui/index.ts +2 -0
- package/.nuxt/ui/kbd.ts +167 -3
- package/.nuxt/ui/scroll-to-section.ts +3 -0
- package/.nuxt/ui/table.ts +14 -0
- package/.nuxt/ui/tabs.ts +4 -2
- package/.nuxt/ui/toast.ts +8 -15
- package/.nuxt/ui/tooltip.ts +1 -1
- package/cli/templates.mjs +4 -3
- package/dist/module.d.mts +15 -1
- package/dist/module.json +2 -2
- package/dist/module.mjs +3 -3
- package/dist/runtime/components/Accordion.vue.d.ts +1 -1
- package/dist/runtime/components/Alert.vue.d.ts +2 -2
- package/dist/runtime/components/App.vue.d.ts +1 -1
- package/dist/runtime/components/Avatar.vue.d.ts +1 -1
- package/dist/runtime/components/AvatarGroup.vue.d.ts +1 -1
- package/dist/runtime/components/Badge.vue.d.ts +1 -1
- package/dist/runtime/components/Banner.vue.d.ts +1 -5
- package/dist/runtime/components/BlogPost.vue.d.ts +1 -1
- package/dist/runtime/components/BlogPosts.vue.d.ts +1 -1
- package/dist/runtime/components/Breadcrumb.vue.d.ts +1 -1
- package/dist/runtime/components/Button.vue +6 -6
- package/dist/runtime/components/Button.vue.d.ts +1 -5
- package/dist/runtime/components/ButtonGroup.vue.d.ts +1 -1
- package/dist/runtime/components/Calendar.vue.d.ts +1 -1
- package/dist/runtime/components/Card.vue.d.ts +1 -1
- package/dist/runtime/components/Carousel.vue +18 -14
- package/dist/runtime/components/Carousel.vue.d.ts +1 -1
- package/dist/runtime/components/ChangelogVersion.vue.d.ts +1 -1
- package/dist/runtime/components/ChangelogVersions.vue.d.ts +1 -1
- package/dist/runtime/components/ChatMessage.vue.d.ts +4 -8
- package/dist/runtime/components/ChatMessages.vue.d.ts +1 -1
- package/dist/runtime/components/ChatPalette.vue.d.ts +1 -1
- package/dist/runtime/components/ChatPrompt.vue.d.ts +1 -1
- package/dist/runtime/components/ChatPromptSubmit.vue.d.ts +1 -1
- package/dist/runtime/components/Checkbox.vue.d.ts +1 -1
- package/dist/runtime/components/CheckboxGroup.vue.d.ts +1 -1
- package/dist/runtime/components/Chip.vue.d.ts +2 -2
- package/dist/runtime/components/Collapsible.vue.d.ts +1 -1
- package/dist/runtime/components/ColorPicker.vue +1 -2
- package/dist/runtime/components/ColorPicker.vue.d.ts +1 -1
- package/dist/runtime/components/CommandPalette.vue +4 -0
- package/dist/runtime/components/CommandPalette.vue.d.ts +9 -4
- package/dist/runtime/components/Container.vue.d.ts +1 -1
- package/dist/runtime/components/ContextMenu.vue.d.ts +1 -1
- package/dist/runtime/components/ContextMenuContent.vue.d.ts +1 -1
- package/dist/runtime/components/DashboardGroup.vue.d.ts +1 -1
- package/dist/runtime/components/DashboardNavbar.vue.d.ts +1 -1
- package/dist/runtime/components/DashboardPanel.vue.d.ts +1 -1
- package/dist/runtime/components/DashboardResizeHandle.vue.d.ts +1 -1
- package/dist/runtime/components/DashboardSearchButton.vue.d.ts +1 -1
- package/dist/runtime/components/DashboardSidebar.vue.d.ts +1 -1
- package/dist/runtime/components/DashboardSidebarCollapse.vue.d.ts +1 -1
- package/dist/runtime/components/DashboardSidebarToggle.vue.d.ts +1 -1
- package/dist/runtime/components/DashboardToolbar.vue.d.ts +1 -1
- package/dist/runtime/components/Drawer.vue +4 -4
- package/dist/runtime/components/Drawer.vue.d.ts +6 -1
- package/dist/runtime/components/DropdownMenu.vue.d.ts +1 -1
- package/dist/runtime/components/DropdownMenuContent.vue.d.ts +8 -5
- package/dist/runtime/components/Error.vue.d.ts +1 -1
- package/dist/runtime/components/FileUpload.vue +242 -0
- package/dist/runtime/components/FileUpload.vue.d.ts +167 -0
- package/dist/runtime/components/Footer.vue.d.ts +1 -1
- package/dist/runtime/components/FooterColumns.vue.d.ts +1 -1
- package/dist/runtime/components/Form.vue.d.ts +5 -4
- package/dist/runtime/components/FormField.vue +2 -2
- package/dist/runtime/components/FormField.vue.d.ts +4 -4
- package/dist/runtime/components/Header.vue.d.ts +1 -1
- package/dist/runtime/components/Icon.vue.d.ts +1 -1
- package/dist/runtime/components/Input.vue +10 -7
- package/dist/runtime/components/Input.vue.d.ts +9 -9
- package/dist/runtime/components/InputMenu.vue +17 -10
- package/dist/runtime/components/InputMenu.vue.d.ts +17 -14
- package/dist/runtime/components/InputNumber.vue.d.ts +4 -4
- package/dist/runtime/components/InputTags.vue +2 -0
- package/dist/runtime/components/InputTags.vue.d.ts +5 -3
- package/dist/runtime/components/Kbd.vue +2 -1
- package/dist/runtime/components/Kbd.vue.d.ts +5 -1
- package/dist/runtime/components/Link.vue +6 -5
- package/dist/runtime/components/Link.vue.d.ts +1 -3
- package/dist/runtime/components/LinkBase.vue.d.ts +1 -1
- package/dist/runtime/components/Main.vue.d.ts +1 -1
- package/dist/runtime/components/Modal.vue.d.ts +2 -2
- package/dist/runtime/components/NavigationMenu.vue +3 -2
- package/dist/runtime/components/NavigationMenu.vue.d.ts +1 -1
- package/dist/runtime/components/OverlayProvider.vue.d.ts +1 -1
- package/dist/runtime/components/Page.vue.d.ts +1 -1
- package/dist/runtime/components/PageAccordion.vue.d.ts +1 -1
- package/dist/runtime/components/PageAnchors.vue.d.ts +1 -1
- package/dist/runtime/components/PageAside.vue.d.ts +1 -1
- package/dist/runtime/components/PageBody.vue.d.ts +1 -1
- package/dist/runtime/components/PageCTA.vue.d.ts +1 -1
- package/dist/runtime/components/PageCard.vue.d.ts +1 -1
- package/dist/runtime/components/PageColumns.vue.d.ts +1 -1
- package/dist/runtime/components/PageFeature.vue.d.ts +1 -1
- package/dist/runtime/components/PageGrid.vue.d.ts +1 -1
- package/dist/runtime/components/PageHeader.vue.d.ts +1 -1
- package/dist/runtime/components/PageHero.vue.d.ts +1 -1
- package/dist/runtime/components/PageLinks.vue.d.ts +1 -1
- package/dist/runtime/components/PageList.vue.d.ts +1 -1
- package/dist/runtime/components/PageLogos.vue.d.ts +1 -1
- package/dist/runtime/components/PageMarquee.vue.d.ts +1 -1
- package/dist/runtime/components/PageSection.vue.d.ts +1 -1
- package/dist/runtime/components/Pagination.vue.d.ts +1 -1
- package/dist/runtime/components/PinInput.vue.d.ts +1 -1
- package/dist/runtime/components/Popover.vue +2 -1
- package/dist/runtime/components/Popover.vue.d.ts +8 -2
- package/dist/runtime/components/PricingPlan.vue.d.ts +1 -1
- package/dist/runtime/components/PricingPlans.vue.d.ts +1 -1
- package/dist/runtime/components/PricingTable.vue +14 -2
- package/dist/runtime/components/PricingTable.vue.d.ts +1 -1
- package/dist/runtime/components/Progress.vue.d.ts +1 -1
- package/dist/runtime/components/RadioGroup.vue +1 -1
- package/dist/runtime/components/RadioGroup.vue.d.ts +5 -4
- package/dist/runtime/components/ScrollToSection.vue +62 -0
- package/dist/runtime/components/ScrollToSection.vue.d.ts +36 -0
- package/dist/runtime/components/Select.vue.d.ts +1 -1
- package/dist/runtime/components/SelectMenu.vue +9 -6
- package/dist/runtime/components/SelectMenu.vue.d.ts +4 -4
- package/dist/runtime/components/Separator.vue.d.ts +1 -1
- package/dist/runtime/components/Skeleton.vue.d.ts +1 -1
- package/dist/runtime/components/Slideover.vue.d.ts +2 -2
- package/dist/runtime/components/Slider.vue.d.ts +5 -5
- package/dist/runtime/components/Stepper.vue.d.ts +1 -1
- package/dist/runtime/components/Switch.vue.d.ts +1 -1
- package/dist/runtime/components/Table.vue +83 -8
- package/dist/runtime/components/Table.vue.d.ts +20 -4
- package/dist/runtime/components/Tabs.vue +36 -16
- package/dist/runtime/components/Tabs.vue.d.ts +8 -3
- package/dist/runtime/components/Textarea.vue +10 -7
- package/dist/runtime/components/Textarea.vue.d.ts +10 -9
- package/dist/runtime/components/Timeline.vue.d.ts +1 -1
- package/dist/runtime/components/Toast.vue +12 -4
- package/dist/runtime/components/Toast.vue.d.ts +14 -13
- package/dist/runtime/components/Toaster.vue.d.ts +1 -1
- package/dist/runtime/components/Tooltip.vue +2 -1
- package/dist/runtime/components/Tooltip.vue.d.ts +8 -2
- package/dist/runtime/components/Tree.vue +3 -2
- package/dist/runtime/components/Tree.vue.d.ts +1 -1
- package/dist/runtime/components/User.vue.d.ts +1 -1
- package/dist/runtime/components/color-mode/ColorModeAvatar.vue.d.ts +1 -1
- package/dist/runtime/components/color-mode/ColorModeButton.vue.d.ts +1 -1
- package/dist/runtime/components/color-mode/ColorModeImage.vue.d.ts +1 -1
- package/dist/runtime/components/color-mode/ColorModeSelect.vue +1 -1
- package/dist/runtime/components/color-mode/ColorModeSelect.vue.d.ts +1 -1
- package/dist/runtime/components/color-mode/ColorModeSwitch.vue.d.ts +1 -1
- package/dist/runtime/components/content/ContentNavigation.vue.d.ts +1 -1
- package/dist/runtime/components/content/ContentSearch.vue +1 -2
- package/dist/runtime/components/content/ContentSearchButton.vue.d.ts +1 -1
- package/dist/runtime/components/content/ContentSurround.vue.d.ts +1 -1
- package/dist/runtime/components/content/ContentToc.vue.d.ts +1 -1
- package/dist/runtime/components/locale/LocaleSelect.vue.d.ts +1 -1
- package/dist/runtime/components/prose/A.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Accordion.vue.d.ts +1 -1
- package/dist/runtime/components/prose/AccordionItem.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Badge.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Blockquote.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Callout.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Card.vue.d.ts +1 -1
- package/dist/runtime/components/prose/CardGroup.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Code.vue.d.ts +1 -1
- package/dist/runtime/components/prose/CodeCollapse.vue.d.ts +1 -1
- package/dist/runtime/components/prose/CodeGroup.vue.d.ts +1 -1
- package/dist/runtime/components/prose/CodeIcon.vue.d.ts +1 -1
- package/dist/runtime/components/prose/CodePreview.vue.d.ts +1 -1
- package/dist/runtime/components/prose/CodeTree.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Collapsible.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Em.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Field.vue.d.ts +1 -1
- package/dist/runtime/components/prose/FieldGroup.vue.d.ts +1 -1
- package/dist/runtime/components/prose/H1.vue.d.ts +1 -1
- package/dist/runtime/components/prose/H2.vue.d.ts +1 -1
- package/dist/runtime/components/prose/H3.vue.d.ts +1 -1
- package/dist/runtime/components/prose/H4.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Hr.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Icon.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Img.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Kbd.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Li.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Ol.vue.d.ts +1 -1
- package/dist/runtime/components/prose/P.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Pre.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Script.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Steps.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Strong.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Table.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Tabs.vue.d.ts +1 -1
- package/dist/runtime/components/prose/TabsItem.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Tbody.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Td.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Th.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Thead.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Tr.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Ul.vue.d.ts +1 -1
- package/dist/runtime/components/prose/callout/Caution.vue.d.ts +3 -3
- package/dist/runtime/components/prose/callout/Note.vue.d.ts +3 -3
- package/dist/runtime/components/prose/callout/Tip.vue.d.ts +3 -3
- package/dist/runtime/components/prose/callout/Warning.vue.d.ts +3 -3
- package/dist/runtime/composables/defineShortcuts.js +5 -3
- package/dist/runtime/composables/useFileUpload.d.ts +19 -0
- package/dist/runtime/composables/useFileUpload.js +63 -0
- package/dist/runtime/composables/useFormField.d.ts +1 -4
- package/dist/runtime/composables/useFormField.js +5 -2
- package/dist/runtime/composables/useKbd.d.ts +1 -1
- package/dist/runtime/composables/useLocale.js +2 -2
- package/dist/runtime/composables/useOverlay.d.ts +28 -1
- package/dist/runtime/composables/useOverlay.js +4 -4
- package/dist/runtime/inertia/components/Link.vue.d.ts +1 -1
- package/dist/runtime/inertia/components/LinkBase.vue.d.ts +1 -1
- package/dist/runtime/inertia/stubs.d.ts +1 -0
- package/dist/runtime/inertia/stubs.js +4 -2
- package/dist/runtime/locale/ar.js +2 -1
- package/dist/runtime/locale/az.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 +2 -1
- 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/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/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/he.js +1 -0
- package/dist/runtime/locale/hi.js +2 -1
- 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/it.js +1 -0
- package/dist/runtime/locale/ja.js +1 -0
- package/dist/runtime/locale/kk.js +1 -0
- package/dist/runtime/locale/km.js +2 -1
- 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/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/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/types/index.d.ts +2 -0
- package/dist/runtime/types/index.js +2 -0
- package/dist/runtime/types/locale.d.ts +1 -0
- package/dist/runtime/utils/content.d.ts +18 -6
- package/dist/runtime/utils/content.js +51 -25
- package/dist/runtime/utils/index.d.ts +1 -0
- package/dist/runtime/utils/index.js +9 -0
- package/dist/runtime/vue/components/Icon.vue.d.ts +1 -1
- package/dist/runtime/vue/components/Link.vue.d.ts +1 -1
- package/dist/runtime/vue/components/color-mode/ColorModeButton.vue.d.ts +1 -1
- package/dist/runtime/vue/components/color-mode/ColorModeSelect.vue +1 -1
- package/dist/runtime/vue/components/color-mode/ColorModeSelect.vue.d.ts +1 -1
- package/dist/runtime/vue/components/color-mode/ColorModeSwitch.vue.d.ts +1 -1
- package/dist/runtime/vue/stubs.d.ts +1 -0
- package/dist/runtime/vue/stubs.js +3 -1
- package/dist/shared/{ui.i6pGHFq6.mjs → ui.CgUuvRXi.mjs} +282 -29
- package/dist/unplugin.d.mts +2 -1
- package/dist/unplugin.mjs +6 -3
- package/dist/vite.mjs +1 -1
- package/package.json +57 -41
- package/dist/runtime/composables/useQuerySection.d.ts +0 -14
- package/dist/runtime/composables/useQuerySection.js +0 -44
|
@@ -21,6 +21,7 @@ const icons = {
|
|
|
21
21
|
close: "i-lucide-x",
|
|
22
22
|
ellipsis: "i-lucide-ellipsis",
|
|
23
23
|
external: "i-lucide-arrow-up-right",
|
|
24
|
+
file: "i-lucide-file",
|
|
24
25
|
folder: "i-lucide-folder",
|
|
25
26
|
folderOpen: "i-lucide-folder-open",
|
|
26
27
|
loading: "i-lucide-loader-circle",
|
|
@@ -28,6 +29,7 @@ const icons = {
|
|
|
28
29
|
plus: "i-lucide-plus",
|
|
29
30
|
reload: "i-lucide-refresh-cw",
|
|
30
31
|
search: "i-lucide-search",
|
|
32
|
+
upload: "i-lucide-upload",
|
|
31
33
|
stop: "i-lucide-circle-stop",
|
|
32
34
|
caution: "i-lucide-circle-alert",
|
|
33
35
|
copy: "i-lucide-copy",
|
|
@@ -36,7 +38,6 @@ const icons = {
|
|
|
36
38
|
error: "i-lucide-circle-x",
|
|
37
39
|
eye: "i-lucide-eye",
|
|
38
40
|
eyeOff: "i-lucide-eye-off",
|
|
39
|
-
file: "i-lucide-file-text",
|
|
40
41
|
hash: "i-lucide-hash",
|
|
41
42
|
info: "i-lucide-info",
|
|
42
43
|
light: "i-lucide-sun",
|
|
@@ -764,51 +765,51 @@ const button = (options) => ({
|
|
|
764
765
|
compoundVariants: [...(options.theme.colors || []).map((color) => ({
|
|
765
766
|
color,
|
|
766
767
|
variant: "solid",
|
|
767
|
-
class: `text-inverted bg-${color} hover:bg-${color}/75 disabled:bg-${color} aria-disabled:bg-${color} focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-${color}`
|
|
768
|
+
class: `text-inverted bg-${color} hover:bg-${color}/75 active:bg-${color}/75 disabled:bg-${color} aria-disabled:bg-${color} focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-${color}`
|
|
768
769
|
})), ...(options.theme.colors || []).map((color) => ({
|
|
769
770
|
color,
|
|
770
771
|
variant: "outline",
|
|
771
|
-
class: `ring ring-inset ring-${color}/50 text-${color} hover:bg-${color}/10 disabled:bg-transparent aria-disabled:bg-transparent dark:disabled:bg-transparent dark:aria-disabled:bg-transparent focus:outline-none focus-visible:ring-2 focus-visible:ring-${color}`
|
|
772
|
+
class: `ring ring-inset ring-${color}/50 text-${color} hover:bg-${color}/10 active:bg-${color}/10 disabled:bg-transparent aria-disabled:bg-transparent dark:disabled:bg-transparent dark:aria-disabled:bg-transparent focus:outline-none focus-visible:ring-2 focus-visible:ring-${color}`
|
|
772
773
|
})), ...(options.theme.colors || []).map((color) => ({
|
|
773
774
|
color,
|
|
774
775
|
variant: "soft",
|
|
775
|
-
class: `text-${color} bg-${color}/10 hover:bg-${color}/15 focus:outline-none focus-visible:bg-${color}/15 disabled:bg-${color}/10 aria-disabled:bg-${color}/10`
|
|
776
|
+
class: `text-${color} bg-${color}/10 hover:bg-${color}/15 active:bg-${color}/15 focus:outline-none focus-visible:bg-${color}/15 disabled:bg-${color}/10 aria-disabled:bg-${color}/10`
|
|
776
777
|
})), ...(options.theme.colors || []).map((color) => ({
|
|
777
778
|
color,
|
|
778
779
|
variant: "subtle",
|
|
779
|
-
class: `text-${color} ring ring-inset ring-${color}/25 bg-${color}/10 hover:bg-${color}/15 disabled:bg-${color}/10 aria-disabled:bg-${color}/10 focus:outline-none focus-visible:ring-2 focus-visible:ring-${color}`
|
|
780
|
+
class: `text-${color} ring ring-inset ring-${color}/25 bg-${color}/10 hover:bg-${color}/15 active:bg-${color}/15 disabled:bg-${color}/10 aria-disabled:bg-${color}/10 focus:outline-none focus-visible:ring-2 focus-visible:ring-${color}`
|
|
780
781
|
})), ...(options.theme.colors || []).map((color) => ({
|
|
781
782
|
color,
|
|
782
783
|
variant: "ghost",
|
|
783
|
-
class: `text-${color} hover:bg-${color}/10 focus:outline-none focus-visible:bg-${color}/10 disabled:bg-transparent aria-disabled:bg-transparent dark:disabled:bg-transparent dark:aria-disabled:bg-transparent`
|
|
784
|
+
class: `text-${color} hover:bg-${color}/10 active:bg-${color}/10 focus:outline-none focus-visible:bg-${color}/10 disabled:bg-transparent aria-disabled:bg-transparent dark:disabled:bg-transparent dark:aria-disabled:bg-transparent`
|
|
784
785
|
})), ...(options.theme.colors || []).map((color) => ({
|
|
785
786
|
color,
|
|
786
787
|
variant: "link",
|
|
787
|
-
class: `text-${color} hover:text-${color}/75 disabled:text-${color} aria-disabled:text-${color} focus:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-${color}`
|
|
788
|
+
class: `text-${color} hover:text-${color}/75 active:text-${color}/75 disabled:text-${color} aria-disabled:text-${color} focus:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-${color}`
|
|
788
789
|
})), {
|
|
789
790
|
color: "neutral",
|
|
790
791
|
variant: "solid",
|
|
791
|
-
class: "text-inverted bg-inverted hover:bg-inverted/90 disabled:bg-inverted aria-disabled:bg-inverted focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-inverted"
|
|
792
|
+
class: "text-inverted bg-inverted hover:bg-inverted/90 active:bg-inverted/90 disabled:bg-inverted aria-disabled:bg-inverted focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-inverted"
|
|
792
793
|
}, {
|
|
793
794
|
color: "neutral",
|
|
794
795
|
variant: "outline",
|
|
795
|
-
class: "ring ring-inset ring-accented text-default bg-default hover:bg-elevated disabled:bg-default aria-disabled:bg-default focus:outline-none focus-visible:ring-2 focus-visible:ring-inverted"
|
|
796
|
+
class: "ring ring-inset ring-accented text-default bg-default hover:bg-elevated active:bg-elevated disabled:bg-default aria-disabled:bg-default focus:outline-none focus-visible:ring-2 focus-visible:ring-inverted"
|
|
796
797
|
}, {
|
|
797
798
|
color: "neutral",
|
|
798
799
|
variant: "soft",
|
|
799
|
-
class: "text-default bg-elevated hover:bg-accented/75 focus:outline-none focus-visible:bg-accented/75 disabled:bg-elevated aria-disabled:bg-elevated"
|
|
800
|
+
class: "text-default bg-elevated hover:bg-accented/75 active:bg-accented/75 focus:outline-none focus-visible:bg-accented/75 disabled:bg-elevated aria-disabled:bg-elevated"
|
|
800
801
|
}, {
|
|
801
802
|
color: "neutral",
|
|
802
803
|
variant: "subtle",
|
|
803
|
-
class: "ring ring-inset ring-accented text-default bg-elevated hover:bg-accented/75 disabled:bg-elevated aria-disabled:bg-elevated focus:outline-none focus-visible:ring-2 focus-visible:ring-inverted"
|
|
804
|
+
class: "ring ring-inset ring-accented text-default bg-elevated hover:bg-accented/75 active:bg-accented/75 disabled:bg-elevated aria-disabled:bg-elevated focus:outline-none focus-visible:ring-2 focus-visible:ring-inverted"
|
|
804
805
|
}, {
|
|
805
806
|
color: "neutral",
|
|
806
807
|
variant: "ghost",
|
|
807
|
-
class: "text-default hover:bg-elevated focus:outline-none focus-visible:bg-elevated hover:disabled:bg-transparent dark:hover:disabled:bg-transparent hover:aria-disabled:bg-transparent dark:hover:aria-disabled:bg-transparent"
|
|
808
|
+
class: "text-default hover:bg-elevated active:bg-elevated focus:outline-none focus-visible:bg-elevated hover:disabled:bg-transparent dark:hover:disabled:bg-transparent hover:aria-disabled:bg-transparent dark:hover:aria-disabled:bg-transparent"
|
|
808
809
|
}, {
|
|
809
810
|
color: "neutral",
|
|
810
811
|
variant: "link",
|
|
811
|
-
class: "text-muted hover:text-default disabled:text-muted aria-disabled:text-muted focus:outline-none focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-inverted"
|
|
812
|
+
class: "text-muted hover:text-default active:text-default disabled:text-muted aria-disabled:text-muted focus:outline-none focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-inverted"
|
|
812
813
|
}, {
|
|
813
814
|
size: "xs",
|
|
814
815
|
square: true,
|
|
@@ -1551,6 +1552,7 @@ const commandPalette = (options) => ({
|
|
|
1551
1552
|
close: "",
|
|
1552
1553
|
back: "p-0",
|
|
1553
1554
|
content: "relative overflow-hidden flex flex-col",
|
|
1555
|
+
footer: "p-1",
|
|
1554
1556
|
viewport: "relative divide-y divide-default scroll-py-1 overflow-y-auto flex-1 focus:outline-none",
|
|
1555
1557
|
group: "p-1 isolate",
|
|
1556
1558
|
empty: "py-6 text-center text-sm text-muted",
|
|
@@ -1566,7 +1568,7 @@ const commandPalette = (options) => ({
|
|
|
1566
1568
|
itemTrailingHighlightedIcon: "shrink-0 size-5 text-dimmed hidden group-data-highlighted:inline-flex",
|
|
1567
1569
|
itemTrailingKbds: "hidden lg:inline-flex items-center shrink-0 gap-0.5",
|
|
1568
1570
|
itemTrailingKbdsSize: "md",
|
|
1569
|
-
itemLabel: "truncate space-x-1
|
|
1571
|
+
itemLabel: "truncate space-x-1 text-dimmed",
|
|
1570
1572
|
itemLabelBase: "text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary",
|
|
1571
1573
|
itemLabelPrefix: "text-default",
|
|
1572
1574
|
itemLabelSuffix: "text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary"
|
|
@@ -2349,6 +2351,198 @@ const footerColumns = {
|
|
|
2349
2351
|
}
|
|
2350
2352
|
};
|
|
2351
2353
|
|
|
2354
|
+
const fileUpload = (options) => ({
|
|
2355
|
+
slots: {
|
|
2356
|
+
root: "relative flex flex-col",
|
|
2357
|
+
base: ["w-full flex-1 bg-default border border-default flex flex-col gap-2 items-stretch justify-center rounded-lg focus-visible:outline-2", options.theme.transitions && "transition-[background]"],
|
|
2358
|
+
wrapper: "flex flex-col items-center justify-center text-center",
|
|
2359
|
+
icon: "shrink-0",
|
|
2360
|
+
avatar: "shrink-0",
|
|
2361
|
+
label: "font-medium text-default mt-2",
|
|
2362
|
+
description: "text-muted mt-1",
|
|
2363
|
+
actions: "flex flex-wrap gap-1.5 shrink-0 mt-4",
|
|
2364
|
+
files: "",
|
|
2365
|
+
file: "relative",
|
|
2366
|
+
fileLeadingAvatar: "shrink-0",
|
|
2367
|
+
fileWrapper: "flex flex-col min-w-0",
|
|
2368
|
+
fileName: "text-default truncate",
|
|
2369
|
+
fileSize: "text-muted truncate",
|
|
2370
|
+
fileTrailingButton: ""
|
|
2371
|
+
},
|
|
2372
|
+
variants: {
|
|
2373
|
+
color: {
|
|
2374
|
+
...Object.fromEntries((options.theme.colors || []).map((color) => [color, ""])),
|
|
2375
|
+
neutral: ""
|
|
2376
|
+
},
|
|
2377
|
+
variant: {
|
|
2378
|
+
area: {
|
|
2379
|
+
wrapper: "px-4 py-3",
|
|
2380
|
+
base: "p-4"
|
|
2381
|
+
},
|
|
2382
|
+
button: {}
|
|
2383
|
+
},
|
|
2384
|
+
size: {
|
|
2385
|
+
xs: {
|
|
2386
|
+
base: "text-xs",
|
|
2387
|
+
icon: "size-4",
|
|
2388
|
+
file: "text-xs px-2 py-1 gap-1",
|
|
2389
|
+
fileWrapper: "flex-row gap-1"
|
|
2390
|
+
},
|
|
2391
|
+
sm: {
|
|
2392
|
+
base: "text-xs",
|
|
2393
|
+
icon: "size-4",
|
|
2394
|
+
file: "text-xs px-2.5 py-1.5 gap-1.5",
|
|
2395
|
+
fileWrapper: "flex-row gap-1"
|
|
2396
|
+
},
|
|
2397
|
+
md: {
|
|
2398
|
+
base: "text-sm",
|
|
2399
|
+
icon: "size-5",
|
|
2400
|
+
file: "text-xs px-2.5 py-1.5 gap-1.5"
|
|
2401
|
+
},
|
|
2402
|
+
lg: {
|
|
2403
|
+
base: "text-sm",
|
|
2404
|
+
icon: "size-5",
|
|
2405
|
+
file: "text-sm px-3 py-2 gap-2",
|
|
2406
|
+
fileSize: "text-xs"
|
|
2407
|
+
},
|
|
2408
|
+
xl: {
|
|
2409
|
+
base: "text-base",
|
|
2410
|
+
icon: "size-6",
|
|
2411
|
+
file: "text-sm px-3 py-2 gap-2"
|
|
2412
|
+
}
|
|
2413
|
+
},
|
|
2414
|
+
layout: {
|
|
2415
|
+
list: {
|
|
2416
|
+
root: "gap-2 items-start",
|
|
2417
|
+
files: "flex flex-col w-full gap-2",
|
|
2418
|
+
file: "min-w-0 flex items-center border border-default rounded-md w-full",
|
|
2419
|
+
fileTrailingButton: "ms-auto"
|
|
2420
|
+
},
|
|
2421
|
+
grid: {
|
|
2422
|
+
fileWrapper: "hidden",
|
|
2423
|
+
fileLeadingAvatar: "size-full rounded-lg",
|
|
2424
|
+
fileTrailingButton: "absolute -top-1.5 -end-1.5 p-0 rounded-full border-2 border-bg"
|
|
2425
|
+
}
|
|
2426
|
+
},
|
|
2427
|
+
position: {
|
|
2428
|
+
inside: "",
|
|
2429
|
+
outside: ""
|
|
2430
|
+
},
|
|
2431
|
+
dropzone: {
|
|
2432
|
+
true: "border-dashed data-[dragging=true]:bg-elevated/25"
|
|
2433
|
+
},
|
|
2434
|
+
interactive: {
|
|
2435
|
+
true: ""
|
|
2436
|
+
},
|
|
2437
|
+
highlight: {
|
|
2438
|
+
true: ""
|
|
2439
|
+
},
|
|
2440
|
+
multiple: {
|
|
2441
|
+
true: ""
|
|
2442
|
+
},
|
|
2443
|
+
disabled: {
|
|
2444
|
+
true: "cursor-not-allowed opacity-75"
|
|
2445
|
+
}
|
|
2446
|
+
},
|
|
2447
|
+
compoundVariants: [...(options.theme.colors || []).map((color) => ({
|
|
2448
|
+
color,
|
|
2449
|
+
class: `focus-visible:outline-${color}`
|
|
2450
|
+
})), ...(options.theme.colors || []).map((color) => ({
|
|
2451
|
+
color,
|
|
2452
|
+
highlight: true,
|
|
2453
|
+
class: `border-${color}`
|
|
2454
|
+
})), {
|
|
2455
|
+
color: "neutral",
|
|
2456
|
+
class: "focus-visible:outline-inverted"
|
|
2457
|
+
}, {
|
|
2458
|
+
color: "neutral",
|
|
2459
|
+
highlight: true,
|
|
2460
|
+
class: "border-inverted"
|
|
2461
|
+
}, {
|
|
2462
|
+
size: "xs",
|
|
2463
|
+
layout: "list",
|
|
2464
|
+
class: {
|
|
2465
|
+
fileTrailingButton: "-me-1"
|
|
2466
|
+
}
|
|
2467
|
+
}, {
|
|
2468
|
+
size: "sm",
|
|
2469
|
+
layout: "list",
|
|
2470
|
+
class: {
|
|
2471
|
+
fileTrailingButton: "-me-1.5"
|
|
2472
|
+
}
|
|
2473
|
+
}, {
|
|
2474
|
+
size: "md",
|
|
2475
|
+
layout: "list",
|
|
2476
|
+
class: {
|
|
2477
|
+
fileTrailingButton: "-me-1.5"
|
|
2478
|
+
}
|
|
2479
|
+
}, {
|
|
2480
|
+
size: "lg",
|
|
2481
|
+
layout: "list",
|
|
2482
|
+
class: {
|
|
2483
|
+
fileTrailingButton: "-me-2"
|
|
2484
|
+
}
|
|
2485
|
+
}, {
|
|
2486
|
+
size: "xl",
|
|
2487
|
+
layout: "list",
|
|
2488
|
+
class: {
|
|
2489
|
+
fileTrailingButton: "-me-2"
|
|
2490
|
+
}
|
|
2491
|
+
}, {
|
|
2492
|
+
variant: "button",
|
|
2493
|
+
size: "xs",
|
|
2494
|
+
class: {
|
|
2495
|
+
base: "p-1"
|
|
2496
|
+
}
|
|
2497
|
+
}, {
|
|
2498
|
+
variant: "button",
|
|
2499
|
+
size: "sm",
|
|
2500
|
+
class: {
|
|
2501
|
+
base: "p-1.5"
|
|
2502
|
+
}
|
|
2503
|
+
}, {
|
|
2504
|
+
variant: "button",
|
|
2505
|
+
size: "md",
|
|
2506
|
+
class: {
|
|
2507
|
+
base: "p-1.5"
|
|
2508
|
+
}
|
|
2509
|
+
}, {
|
|
2510
|
+
variant: "button",
|
|
2511
|
+
size: "lg",
|
|
2512
|
+
class: {
|
|
2513
|
+
base: "p-2"
|
|
2514
|
+
}
|
|
2515
|
+
}, {
|
|
2516
|
+
variant: "button",
|
|
2517
|
+
size: "xl",
|
|
2518
|
+
class: {
|
|
2519
|
+
base: "p-2"
|
|
2520
|
+
}
|
|
2521
|
+
}, {
|
|
2522
|
+
layout: "grid",
|
|
2523
|
+
multiple: true,
|
|
2524
|
+
class: {
|
|
2525
|
+
files: "grid grid-cols-2 md:grid-cols-3 gap-4 w-full",
|
|
2526
|
+
file: "p-0 aspect-square"
|
|
2527
|
+
}
|
|
2528
|
+
}, {
|
|
2529
|
+
layout: "grid",
|
|
2530
|
+
multiple: false,
|
|
2531
|
+
class: {
|
|
2532
|
+
file: "absolute inset-0 p-0"
|
|
2533
|
+
}
|
|
2534
|
+
}, {
|
|
2535
|
+
interactive: true,
|
|
2536
|
+
disabled: false,
|
|
2537
|
+
class: "hover:bg-elevated/25"
|
|
2538
|
+
}],
|
|
2539
|
+
defaultVariants: {
|
|
2540
|
+
color: "primary",
|
|
2541
|
+
variant: "area",
|
|
2542
|
+
size: "md"
|
|
2543
|
+
}
|
|
2544
|
+
});
|
|
2545
|
+
|
|
2352
2546
|
const form = {
|
|
2353
2547
|
base: ""
|
|
2354
2548
|
};
|
|
@@ -2849,13 +3043,18 @@ function replaceFocus(str) {
|
|
|
2849
3043
|
return str.replace(/focus:/g, "has-focus:").replace(/focus-visible:/g, "has-focus-visible:");
|
|
2850
3044
|
}
|
|
2851
3045
|
|
|
2852
|
-
const kbd$1 = {
|
|
3046
|
+
const kbd$1 = (options) => ({
|
|
2853
3047
|
base: "inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans",
|
|
2854
3048
|
variants: {
|
|
3049
|
+
color: {
|
|
3050
|
+
...Object.fromEntries((options.theme.colors || []).map((color) => [color, ""])),
|
|
3051
|
+
neutral: ""
|
|
3052
|
+
},
|
|
2855
3053
|
variant: {
|
|
2856
|
-
solid: "
|
|
2857
|
-
outline: "
|
|
2858
|
-
|
|
3054
|
+
solid: "",
|
|
3055
|
+
outline: "",
|
|
3056
|
+
soft: "",
|
|
3057
|
+
subtle: ""
|
|
2859
3058
|
},
|
|
2860
3059
|
size: {
|
|
2861
3060
|
sm: "h-4 min-w-[16px] text-[10px]",
|
|
@@ -2863,11 +3062,45 @@ const kbd$1 = {
|
|
|
2863
3062
|
lg: "h-6 min-w-[24px] text-[12px]"
|
|
2864
3063
|
}
|
|
2865
3064
|
},
|
|
3065
|
+
compoundVariants: [...(options.theme.colors || []).map((color) => ({
|
|
3066
|
+
color,
|
|
3067
|
+
variant: "solid",
|
|
3068
|
+
class: `text-inverted bg-${color}`
|
|
3069
|
+
})), ...(options.theme.colors || []).map((color) => ({
|
|
3070
|
+
color,
|
|
3071
|
+
variant: "outline",
|
|
3072
|
+
class: `ring ring-inset ring-${color}/50 text-${color}`
|
|
3073
|
+
})), ...(options.theme.colors || []).map((color) => ({
|
|
3074
|
+
color,
|
|
3075
|
+
variant: "soft",
|
|
3076
|
+
class: `text-${color} bg-${color}/10`
|
|
3077
|
+
})), ...(options.theme.colors || []).map((color) => ({
|
|
3078
|
+
color,
|
|
3079
|
+
variant: "subtle",
|
|
3080
|
+
class: `text-${color} ring ring-inset ring-${color}/25 bg-${color}/10`
|
|
3081
|
+
})), {
|
|
3082
|
+
color: "neutral",
|
|
3083
|
+
variant: "solid",
|
|
3084
|
+
class: "text-inverted bg-inverted"
|
|
3085
|
+
}, {
|
|
3086
|
+
color: "neutral",
|
|
3087
|
+
variant: "outline",
|
|
3088
|
+
class: "ring ring-inset ring-accented text-default bg-default"
|
|
3089
|
+
}, {
|
|
3090
|
+
color: "neutral",
|
|
3091
|
+
variant: "soft",
|
|
3092
|
+
class: "text-default bg-elevated"
|
|
3093
|
+
}, {
|
|
3094
|
+
color: "neutral",
|
|
3095
|
+
variant: "subtle",
|
|
3096
|
+
class: "ring ring-inset ring-accented text-default bg-elevated"
|
|
3097
|
+
}],
|
|
2866
3098
|
defaultVariants: {
|
|
2867
3099
|
variant: "outline",
|
|
3100
|
+
color: "neutral",
|
|
2868
3101
|
size: "md"
|
|
2869
3102
|
}
|
|
2870
|
-
};
|
|
3103
|
+
});
|
|
2871
3104
|
|
|
2872
3105
|
const link = (options) => ({
|
|
2873
3106
|
base: "focus-visible:outline-primary",
|
|
@@ -4393,6 +4626,10 @@ const radioGroup = (options) => ({
|
|
|
4393
4626
|
}
|
|
4394
4627
|
});
|
|
4395
4628
|
|
|
4629
|
+
const scrollToSection = {
|
|
4630
|
+
base: ""
|
|
4631
|
+
};
|
|
4632
|
+
|
|
4396
4633
|
const select = (options) => {
|
|
4397
4634
|
return defuFn({
|
|
4398
4635
|
slots: {
|
|
@@ -4980,6 +5217,7 @@ const table$1 = (options) => ({
|
|
|
4980
5217
|
caption: "sr-only",
|
|
4981
5218
|
thead: "relative",
|
|
4982
5219
|
tbody: "divide-y divide-default [&>tr]:data-[selectable=true]:hover:bg-elevated/50 [&>tr]:data-[selectable=true]:focus-visible:outline-primary",
|
|
5220
|
+
tfoot: "relative",
|
|
4983
5221
|
tr: "data-[selected=true]:bg-elevated/50",
|
|
4984
5222
|
th: "px-4 py-3.5 text-sm text-highlighted text-left rtl:text-right font-semibold [&:has([role=checkbox])]:pe-0",
|
|
4985
5223
|
td: "p-4 text-sm text-muted whitespace-nowrap [&:has([role=checkbox])]:pe-0",
|
|
@@ -4996,7 +5234,14 @@ const table$1 = (options) => ({
|
|
|
4996
5234
|
},
|
|
4997
5235
|
sticky: {
|
|
4998
5236
|
true: {
|
|
5237
|
+
thead: "sticky top-0 inset-x-0 bg-default/75 z-[1] backdrop-blur",
|
|
5238
|
+
tfoot: "sticky bottom-0 inset-x-0 bg-default/75 z-[1] backdrop-blur"
|
|
5239
|
+
},
|
|
5240
|
+
header: {
|
|
4999
5241
|
thead: "sticky top-0 inset-x-0 bg-default/75 z-[1] backdrop-blur"
|
|
5242
|
+
},
|
|
5243
|
+
footer: {
|
|
5244
|
+
tfoot: "sticky bottom-0 inset-x-0 bg-default/75 z-[1] backdrop-blur"
|
|
5000
5245
|
}
|
|
5001
5246
|
},
|
|
5002
5247
|
loading: {
|
|
@@ -5064,11 +5309,13 @@ const tabs$1 = (options) => ({
|
|
|
5064
5309
|
list: "relative flex p-1 group",
|
|
5065
5310
|
indicator: "absolute transition-[translate,width] duration-200",
|
|
5066
5311
|
trigger: ["group relative inline-flex items-center min-w-0 data-[state=inactive]:text-muted hover:data-[state=inactive]:not-disabled:text-default font-medium rounded-md disabled:cursor-not-allowed disabled:opacity-75", options.theme.transitions && "transition-colors"],
|
|
5067
|
-
content: "focus:outline-none w-full",
|
|
5068
5312
|
leadingIcon: "shrink-0",
|
|
5069
5313
|
leadingAvatar: "shrink-0",
|
|
5070
5314
|
leadingAvatarSize: "",
|
|
5071
|
-
label: "truncate"
|
|
5315
|
+
label: "truncate",
|
|
5316
|
+
trailingBadge: "shrink-0",
|
|
5317
|
+
trailingBadgeSize: "sm",
|
|
5318
|
+
content: "focus:outline-none w-full"
|
|
5072
5319
|
},
|
|
5073
5320
|
variants: {
|
|
5074
5321
|
color: {
|
|
@@ -5425,20 +5672,18 @@ const toast = (options) => ({
|
|
|
5425
5672
|
avatar: "shrink-0",
|
|
5426
5673
|
avatarSize: "2xl",
|
|
5427
5674
|
actions: "flex gap-1.5 shrink-0",
|
|
5428
|
-
progress: "absolute inset-x-0 bottom-0
|
|
5675
|
+
progress: "absolute inset-x-0 bottom-0",
|
|
5429
5676
|
close: "p-0"
|
|
5430
5677
|
},
|
|
5431
5678
|
variants: {
|
|
5432
5679
|
color: {
|
|
5433
5680
|
...Object.fromEntries((options.theme.colors || []).map((color) => [color, {
|
|
5434
5681
|
root: `focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-${color}`,
|
|
5435
|
-
icon: `text-${color}
|
|
5436
|
-
progress: `bg-${color}`
|
|
5682
|
+
icon: `text-${color}`
|
|
5437
5683
|
}])),
|
|
5438
5684
|
neutral: {
|
|
5439
5685
|
root: "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-inverted",
|
|
5440
|
-
icon: "text-highlighted"
|
|
5441
|
-
progress: "bg-inverted"
|
|
5686
|
+
icon: "text-highlighted"
|
|
5442
5687
|
}
|
|
5443
5688
|
},
|
|
5444
5689
|
orientation: {
|
|
@@ -5524,7 +5769,7 @@ const tooltip = {
|
|
|
5524
5769
|
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",
|
|
5525
5770
|
arrow: "fill-default",
|
|
5526
5771
|
text: "truncate",
|
|
5527
|
-
kbds: `hidden lg:inline-flex items-center shrink-0 gap-0.5 before:content-['\xB7'] before:me-0.5`,
|
|
5772
|
+
kbds: `hidden lg:inline-flex items-center shrink-0 gap-0.5 not-first-of-type:before:content-['\xB7'] not-first-of-type:before:me-0.5`,
|
|
5528
5773
|
kbdsSize: "sm"
|
|
5529
5774
|
}
|
|
5530
5775
|
};
|
|
@@ -5750,6 +5995,7 @@ const theme = {
|
|
|
5750
5995
|
drawer: drawer,
|
|
5751
5996
|
dropdownMenu: dropdownMenu,
|
|
5752
5997
|
error: error,
|
|
5998
|
+
fileUpload: fileUpload,
|
|
5753
5999
|
footer: footer,
|
|
5754
6000
|
footerColumns: footerColumns,
|
|
5755
6001
|
form: form,
|
|
@@ -5789,6 +6035,7 @@ const theme = {
|
|
|
5789
6035
|
pricingTable: pricingTable,
|
|
5790
6036
|
progress: progress,
|
|
5791
6037
|
radioGroup: radioGroup,
|
|
6038
|
+
scrollToSection: scrollToSection,
|
|
5792
6039
|
select: select,
|
|
5793
6040
|
selectMenu: selectMenu,
|
|
5794
6041
|
separator: separator,
|
|
@@ -6411,6 +6658,12 @@ function getTemplates(options, uiConfig) {
|
|
|
6411
6658
|
write: true,
|
|
6412
6659
|
getContents: async () => {
|
|
6413
6660
|
const result = typeof template === "function" ? template(options) : template;
|
|
6661
|
+
if (result?.defaultVariants?.color && options.theme?.defaultVariants?.color) {
|
|
6662
|
+
result.defaultVariants.color = options.theme.defaultVariants.color;
|
|
6663
|
+
}
|
|
6664
|
+
if (result?.defaultVariants?.size && options.theme?.defaultVariants?.size) {
|
|
6665
|
+
result.defaultVariants.size = options.theme.defaultVariants.size;
|
|
6666
|
+
}
|
|
6414
6667
|
const variants = Object.entries(result.variants || {}).filter(([_, values]) => {
|
|
6415
6668
|
const keys = Object.keys(values);
|
|
6416
6669
|
return keys.some((key) => key !== "true" && key !== "false");
|
|
@@ -6525,13 +6778,13 @@ import colors from 'tailwindcss/colors'
|
|
|
6525
6778
|
|
|
6526
6779
|
const icons = ${JSON.stringify(uiConfig.icons)};
|
|
6527
6780
|
|
|
6528
|
-
type NeutralColor = 'slate' | 'gray' | 'zinc' | 'neutral' | 'stone'
|
|
6781
|
+
type NeutralColor = 'slate' | 'gray' | 'zinc' | 'neutral' | 'stone'
|
|
6529
6782
|
type Color = Exclude<keyof typeof colors, 'inherit' | 'current' | 'transparent' | 'black' | 'white' | NeutralColor> | (string & {})
|
|
6530
6783
|
|
|
6531
6784
|
type AppConfigUI = {
|
|
6532
6785
|
colors?: {
|
|
6533
6786
|
${options.theme?.colors?.map((color) => `'${color}'?: Color`).join("\n ")}
|
|
6534
|
-
neutral?: NeutralColor
|
|
6787
|
+
neutral?: NeutralColor | (string & {})
|
|
6535
6788
|
}
|
|
6536
6789
|
icons?: Partial<typeof icons>
|
|
6537
6790
|
tv?: typeof defaultConfig
|
package/dist/unplugin.d.mts
CHANGED
|
@@ -23,6 +23,7 @@ declare const _default: {
|
|
|
23
23
|
close: string;
|
|
24
24
|
ellipsis: string;
|
|
25
25
|
external: string;
|
|
26
|
+
file: string;
|
|
26
27
|
folder: string;
|
|
27
28
|
folderOpen: string;
|
|
28
29
|
loading: string;
|
|
@@ -30,6 +31,7 @@ declare const _default: {
|
|
|
30
31
|
plus: string;
|
|
31
32
|
reload: string;
|
|
32
33
|
search: string;
|
|
34
|
+
upload: string;
|
|
33
35
|
stop: string;
|
|
34
36
|
caution: string;
|
|
35
37
|
copy: string;
|
|
@@ -38,7 +40,6 @@ declare const _default: {
|
|
|
38
40
|
error: string;
|
|
39
41
|
eye: string;
|
|
40
42
|
eyeOff: string;
|
|
41
|
-
file: string;
|
|
42
43
|
hash: string;
|
|
43
44
|
info: string;
|
|
44
45
|
light: string;
|
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 { g as getTemplates, d as defaultOptions, r as resolveColors, a as getDefaultUiConfig } from './shared/ui.
|
|
6
|
+
import { g as getTemplates, d as defaultOptions, r as resolveColors, a as getDefaultUiConfig } from './shared/ui.CgUuvRXi.mjs';
|
|
7
7
|
import { globSync } from 'tinyglobby';
|
|
8
8
|
import { genSafeVariableName } from 'knitwork';
|
|
9
9
|
import MagicString from 'magic-string';
|
|
@@ -152,10 +152,13 @@ function ComponentImportPlugin(options, meta) {
|
|
|
152
152
|
name: "eslamdevui:ui:components",
|
|
153
153
|
enforce: "pre",
|
|
154
154
|
resolveId(id, importer) {
|
|
155
|
-
if (!importer
|
|
155
|
+
if (!importer) {
|
|
156
156
|
return;
|
|
157
157
|
}
|
|
158
|
-
if (!
|
|
158
|
+
if (!normalize(importer).includes(runtimeDir) && (!options.extraRuntimeDir || !normalize(importer).includes(options.extraRuntimeDir))) {
|
|
159
|
+
return;
|
|
160
|
+
}
|
|
161
|
+
if (!RELATIVE_IMPORT_RE.test(id) && !id.startsWith("@nuxt/ui/components/")) {
|
|
159
162
|
return;
|
|
160
163
|
}
|
|
161
164
|
const filename = id.match(/([^/]+)\.vue$/)?.[1];
|
package/dist/vite.mjs
CHANGED