@eslamdevui/ui 3.2.0-beta.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.
- package/.nuxt/ui/accordion.ts +20 -0
- package/.nuxt/ui/alert.ts +264 -0
- package/.nuxt/ui/avatar-group.ts +52 -0
- package/.nuxt/ui/avatar.ts +54 -0
- package/.nuxt/ui/badge.ts +263 -0
- package/.nuxt/ui/breadcrumb.ts +45 -0
- package/.nuxt/ui/button-group.ts +16 -0
- package/.nuxt/ui/button.ts +378 -0
- package/.nuxt/ui/calendar.ts +103 -0
- package/.nuxt/ui/card.ts +34 -0
- package/.nuxt/ui/carousel.ts +38 -0
- package/.nuxt/ui/chat-message.ts +129 -0
- package/.nuxt/ui/chat-messages.ts +14 -0
- package/.nuxt/ui/chat-prompt-submit.ts +5 -0
- package/.nuxt/ui/chat-prompt.ts +35 -0
- package/.nuxt/ui/checkbox-group.ts +204 -0
- package/.nuxt/ui/checkbox.ts +236 -0
- package/.nuxt/ui/chip.ts +96 -0
- package/.nuxt/ui/collapsible.ts +6 -0
- package/.nuxt/ui/color-picker.ts +47 -0
- package/.nuxt/ui/command-palette.ts +51 -0
- package/.nuxt/ui/container.ts +3 -0
- package/.nuxt/ui/content-navigation.ts +339 -0
- package/.nuxt/ui/content-search-button.ts +6 -0
- package/.nuxt/ui/content-search.ts +6 -0
- package/.nuxt/ui/content-surround.ts +34 -0
- package/.nuxt/ui/content-toc.ts +150 -0
- package/.nuxt/ui/context-menu.ts +217 -0
- package/.nuxt/ui/dashboard-group.ts +3 -0
- package/.nuxt/ui/dashboard-navbar.ts +21 -0
- package/.nuxt/ui/dashboard-panel.ts +17 -0
- package/.nuxt/ui/dashboard-resize-handle.ts +3 -0
- package/.nuxt/ui/dashboard-search-button.ts +6 -0
- package/.nuxt/ui/dashboard-search.ts +6 -0
- package/.nuxt/ui/dashboard-sidebar-collapse.ts +9 -0
- package/.nuxt/ui/dashboard-sidebar-toggle.ts +9 -0
- package/.nuxt/ui/dashboard-sidebar.ts +37 -0
- package/.nuxt/ui/drawer.ts +126 -0
- package/.nuxt/ui/dropdown-menu.ts +218 -0
- package/.nuxt/ui/form-field.ts +48 -0
- package/.nuxt/ui/form.ts +3 -0
- package/.nuxt/ui/index.ts +71 -0
- package/.nuxt/ui/input-menu.ts +450 -0
- package/.nuxt/ui/input-number.ts +245 -0
- package/.nuxt/ui/input-tags.ts +310 -0
- package/.nuxt/ui/input.ts +289 -0
- package/.nuxt/ui/kbd.ts +31 -0
- package/.nuxt/ui/link.ts +22 -0
- package/.nuxt/ui/modal.ts +29 -0
- package/.nuxt/ui/navigation-menu.ts +510 -0
- package/.nuxt/ui/pagination.ts +13 -0
- package/.nuxt/ui/pin-input.ts +171 -0
- package/.nuxt/ui/popover.ts +6 -0
- package/.nuxt/ui/progress.ts +297 -0
- package/.nuxt/ui/prose.ts +321 -0
- package/.nuxt/ui/radio-group.ts +350 -0
- package/.nuxt/ui/select-menu.ts +351 -0
- package/.nuxt/ui/select.ts +346 -0
- package/.nuxt/ui/separator.ts +172 -0
- package/.nuxt/ui/skeleton.ts +3 -0
- package/.nuxt/ui/slideover.ts +71 -0
- package/.nuxt/ui/slider.ts +171 -0
- package/.nuxt/ui/stepper.ts +202 -0
- package/.nuxt/ui/switch.ts +131 -0
- package/.nuxt/ui/table.ts +148 -0
- package/.nuxt/ui/tabs.ts +256 -0
- package/.nuxt/ui/textarea.ts +294 -0
- package/.nuxt/ui/timeline.ts +321 -0
- package/.nuxt/ui/toast.ts +81 -0
- package/.nuxt/ui/toaster.ts +91 -0
- package/.nuxt/ui/tooltip.ts +9 -0
- package/.nuxt/ui/tree.ts +154 -0
- package/.nuxt/ui.css +146 -0
- package/LICENSE.md +9 -0
- package/README.md +147 -0
- package/cli/commands/make/component.mjs +95 -0
- package/cli/commands/make/index.mjs +14 -0
- package/cli/commands/make/locale.mjs +64 -0
- package/cli/index.mjs +15 -0
- package/cli/package.json +13 -0
- package/cli/templates.mjs +228 -0
- package/cli/utils.mjs +31 -0
- package/dist/module.d.mts +63 -0
- package/dist/module.json +13 -0
- package/dist/module.mjs +135 -0
- package/dist/runtime/components/Accordion.vue +73 -0
- package/dist/runtime/components/Accordion.vue.d.ts +77 -0
- package/dist/runtime/components/Alert.vue +88 -0
- package/dist/runtime/components/Alert.vue.d.ts +81 -0
- package/dist/runtime/components/App.vue +44 -0
- package/dist/runtime/components/App.vue.d.ts +24 -0
- package/dist/runtime/components/Avatar.vue +83 -0
- package/dist/runtime/components/Avatar.vue.d.ts +41 -0
- package/dist/runtime/components/AvatarGroup.vue +65 -0
- package/dist/runtime/components/AvatarGroup.vue.d.ts +31 -0
- package/dist/runtime/components/Badge.vue +60 -0
- package/dist/runtime/components/Badge.vue.d.ts +43 -0
- package/dist/runtime/components/Breadcrumb.vue +65 -0
- package/dist/runtime/components/Breadcrumb.vue.d.ts +66 -0
- package/dist/runtime/components/Button.vue +147 -0
- package/dist/runtime/components/Button.vue.d.ts +48 -0
- package/dist/runtime/components/ButtonGroup.vue +31 -0
- package/dist/runtime/components/ButtonGroup.vue.d.ts +34 -0
- package/dist/runtime/components/Calendar.vue +154 -0
- package/dist/runtime/components/Calendar.vue.d.ts +111 -0
- package/dist/runtime/components/Card.vue +37 -0
- package/dist/runtime/components/Card.vue.d.ts +29 -0
- package/dist/runtime/components/Carousel.vue +210 -0
- package/dist/runtime/components/Carousel.vue.d.ts +127 -0
- package/dist/runtime/components/ChatMessage.vue +87 -0
- package/dist/runtime/components/ChatMessage.vue.d.ts +130 -0
- package/dist/runtime/components/ChatMessages.vue +225 -0
- package/dist/runtime/components/ChatMessages.vue.d.ts +83 -0
- package/dist/runtime/components/ChatPrompt.vue +77 -0
- package/dist/runtime/components/ChatPrompt.vue.d.ts +60 -0
- package/dist/runtime/components/ChatPromptSubmit.vue +74 -0
- package/dist/runtime/components/ChatPromptSubmit.vue.d.ts +99 -0
- package/dist/runtime/components/Checkbox.vue +90 -0
- package/dist/runtime/components/Checkbox.vue.d.ts +73 -0
- package/dist/runtime/components/CheckboxGroup.vue +124 -0
- package/dist/runtime/components/CheckboxGroup.vue.d.ts +84 -0
- package/dist/runtime/components/Chip.vue +48 -0
- package/dist/runtime/components/Chip.vue.d.ts +57 -0
- package/dist/runtime/components/Collapsible.vue +37 -0
- package/dist/runtime/components/Collapsible.vue.d.ts +35 -0
- package/dist/runtime/components/ColorPicker.vue +216 -0
- package/dist/runtime/components/ColorPicker.vue.d.ts +48 -0
- package/dist/runtime/components/CommandPalette.vue +275 -0
- package/dist/runtime/components/CommandPalette.vue.d.ts +187 -0
- package/dist/runtime/components/Container.vue +23 -0
- package/dist/runtime/components/Container.vue.d.ts +18 -0
- package/dist/runtime/components/ContextMenu.vue +61 -0
- package/dist/runtime/components/ContextMenu.vue.d.ts +109 -0
- package/dist/runtime/components/ContextMenuContent.vue +164 -0
- package/dist/runtime/components/ContextMenuContent.vue.d.ts +49 -0
- package/dist/runtime/components/DashboardGroup.vue +46 -0
- package/dist/runtime/components/DashboardGroup.vue.d.ts +27 -0
- package/dist/runtime/components/DashboardNavbar.vue +74 -0
- package/dist/runtime/components/DashboardNavbar.vue.d.ts +53 -0
- package/dist/runtime/components/DashboardPanel.vue +56 -0
- package/dist/runtime/components/DashboardPanel.vue.d.ts +28 -0
- package/dist/runtime/components/DashboardResizeHandle.vue +32 -0
- package/dist/runtime/components/DashboardResizeHandle.vue.d.ts +22 -0
- package/dist/runtime/components/DashboardSearch.vue +124 -0
- package/dist/runtime/components/DashboardSearch.vue.d.ts +48 -0
- package/dist/runtime/components/DashboardSearchButton.vue +72 -0
- package/dist/runtime/components/DashboardSearchButton.vue.d.ts +52 -0
- package/dist/runtime/components/DashboardSidebar.vue +170 -0
- package/dist/runtime/components/DashboardSidebar.vue.d.ts +72 -0
- package/dist/runtime/components/DashboardSidebarCollapse.vue +46 -0
- package/dist/runtime/components/DashboardSidebarCollapse.vue.d.ts +15 -0
- package/dist/runtime/components/DashboardSidebarToggle.vue +43 -0
- package/dist/runtime/components/DashboardSidebarToggle.vue.d.ts +19 -0
- package/dist/runtime/components/Drawer.vue +112 -0
- package/dist/runtime/components/Drawer.vue.d.ts +78 -0
- package/dist/runtime/components/DropdownMenu.vue +68 -0
- package/dist/runtime/components/DropdownMenu.vue.d.ts +119 -0
- package/dist/runtime/components/DropdownMenuContent.vue +171 -0
- package/dist/runtime/components/DropdownMenuContent.vue.d.ts +52 -0
- package/dist/runtime/components/Form.vue +210 -0
- package/dist/runtime/components/Form.vue.d.ts +70 -0
- package/dist/runtime/components/FormField.vue +90 -0
- package/dist/runtime/components/FormField.vue.d.ts +61 -0
- package/dist/runtime/components/Icon.vue +19 -0
- package/dist/runtime/components/Icon.vue.d.ts +8 -0
- package/dist/runtime/components/Input.vue +147 -0
- package/dist/runtime/components/Input.vue.d.ts +77 -0
- package/dist/runtime/components/InputMenu.vue +373 -0
- package/dist/runtime/components/InputMenu.vue.d.ts +534 -0
- package/dist/runtime/components/InputNumber.vue +144 -0
- package/dist/runtime/components/InputNumber.vue.d.ts +260 -0
- package/dist/runtime/components/InputTags.vue +159 -0
- package/dist/runtime/components/InputTags.vue.d.ts +183 -0
- package/dist/runtime/components/Kbd.vue +30 -0
- package/dist/runtime/components/Kbd.vue.d.ts +34 -0
- package/dist/runtime/components/Link.vue +127 -0
- package/dist/runtime/components/Link.vue.d.ts +93 -0
- package/dist/runtime/components/LinkBase.vue +57 -0
- package/dist/runtime/components/LinkBase.vue.d.ts +25 -0
- package/dist/runtime/components/Modal.vue +130 -0
- package/dist/runtime/components/Modal.vue.d.ts +106 -0
- package/dist/runtime/components/NavigationMenu.vue +275 -0
- package/dist/runtime/components/NavigationMenu.vue.d.ts +170 -0
- package/dist/runtime/components/OverlayProvider.vue +25 -0
- package/dist/runtime/components/OverlayProvider.vue.d.ts +2 -0
- package/dist/runtime/components/Pagination.vue +97 -0
- package/dist/runtime/components/Pagination.vue.d.ts +118 -0
- package/dist/runtime/components/PinInput.vue +94 -0
- package/dist/runtime/components/PinInput.vue.d.ts +60 -0
- package/dist/runtime/components/Popover.vue +73 -0
- package/dist/runtime/components/Popover.vue.d.ts +64 -0
- package/dist/runtime/components/Progress.vue +132 -0
- package/dist/runtime/components/Progress.vue.d.ts +66 -0
- package/dist/runtime/components/RadioGroup.vue +133 -0
- package/dist/runtime/components/RadioGroup.vue.d.ts +93 -0
- package/dist/runtime/components/Select.vue +225 -0
- package/dist/runtime/components/Select.vue.d.ts +253 -0
- package/dist/runtime/components/SelectMenu.vue +328 -0
- package/dist/runtime/components/SelectMenu.vue.d.ts +302 -0
- package/dist/runtime/components/Separator.vue +53 -0
- package/dist/runtime/components/Separator.vue.d.ts +54 -0
- package/dist/runtime/components/Skeleton.vue +29 -0
- package/dist/runtime/components/Skeleton.vue.d.ts +17 -0
- package/dist/runtime/components/Slideover.vue +137 -0
- package/dist/runtime/components/Slideover.vue.d.ts +107 -0
- package/dist/runtime/components/Slider.vue +94 -0
- package/dist/runtime/components/Slider.vue.d.ts +58 -0
- package/dist/runtime/components/Stepper.vue +116 -0
- package/dist/runtime/components/Stepper.vue.d.ts +85 -0
- package/dist/runtime/components/Switch.vue +89 -0
- package/dist/runtime/components/Switch.vue.d.ts +70 -0
- package/dist/runtime/components/Table.vue +286 -0
- package/dist/runtime/components/Table.vue.d.ts +185 -0
- package/dist/runtime/components/Tabs.vue +84 -0
- package/dist/runtime/components/Tabs.vue.d.ts +93 -0
- package/dist/runtime/components/Textarea.vue +169 -0
- package/dist/runtime/components/Textarea.vue.d.ts +78 -0
- package/dist/runtime/components/Timeline.vue +92 -0
- package/dist/runtime/components/Timeline.vue.d.ts +70 -0
- package/dist/runtime/components/Toast.vue +129 -0
- package/dist/runtime/components/Toast.vue.d.ts +163 -0
- package/dist/runtime/components/Toaster.vue +111 -0
- package/dist/runtime/components/Toaster.vue.d.ts +44 -0
- package/dist/runtime/components/Tooltip.vue +62 -0
- package/dist/runtime/components/Tooltip.vue.d.ts +50 -0
- package/dist/runtime/components/Tree.vue +121 -0
- package/dist/runtime/components/Tree.vue.d.ts +113 -0
- package/dist/runtime/components/color-mode/ColorModeAvatar.vue +16 -0
- package/dist/runtime/components/color-mode/ColorModeAvatar.vue.d.ts +7 -0
- package/dist/runtime/components/color-mode/ColorModeButton.vue +45 -0
- package/dist/runtime/components/color-mode/ColorModeButton.vue.d.ts +24 -0
- package/dist/runtime/components/color-mode/ColorModeImage.vue +17 -0
- package/dist/runtime/components/color-mode/ColorModeImage.vue.d.ts +6 -0
- package/dist/runtime/components/color-mode/ColorModeSelect.vue +49 -0
- package/dist/runtime/components/color-mode/ColorModeSelect.vue.d.ts +7 -0
- package/dist/runtime/components/color-mode/ColorModeSwitch.vue +44 -0
- package/dist/runtime/components/color-mode/ColorModeSwitch.vue.d.ts +7 -0
- package/dist/runtime/components/locale/LocaleSelect.vue +61 -0
- package/dist/runtime/components/locale/LocaleSelect.vue.d.ts +16 -0
- package/dist/runtime/composables/color-mode/useColorMode.d.ts +3 -0
- package/dist/runtime/composables/color-mode/useColorMode.js +5 -0
- package/dist/runtime/composables/defineLocale.d.ts +11 -0
- package/dist/runtime/composables/defineLocale.js +9 -0
- package/dist/runtime/composables/defineShortcuts.d.ts +15 -0
- package/dist/runtime/composables/defineShortcuts.js +141 -0
- package/dist/runtime/composables/useAvatarGroup.d.ts +10 -0
- package/dist/runtime/composables/useAvatarGroup.js +10 -0
- package/dist/runtime/composables/useButtonGroup.d.ts +15 -0
- package/dist/runtime/composables/useButtonGroup.js +9 -0
- package/dist/runtime/composables/useComponentIcons.d.ts +39 -0
- package/dist/runtime/composables/useComponentIcons.js +26 -0
- package/dist/runtime/composables/useContentSearch.d.ts +6 -0
- package/dist/runtime/composables/useContentSearch.js +9 -0
- package/dist/runtime/composables/useFormField.d.ts +42 -0
- package/dist/runtime/composables/useFormField.js +66 -0
- package/dist/runtime/composables/useKbd.d.ts +36 -0
- package/dist/runtime/composables/useKbd.js +53 -0
- package/dist/runtime/composables/useLocale.d.ts +4 -0
- package/dist/runtime/composables/useLocale.js +10 -0
- package/dist/runtime/composables/useLocalePro.d.ts +3 -0
- package/dist/runtime/composables/useLocalePro.js +11 -0
- package/dist/runtime/composables/useOverlay.d.ts +38 -0
- package/dist/runtime/composables/useOverlay.js +85 -0
- package/dist/runtime/composables/usePortal.d.ts +6 -0
- package/dist/runtime/composables/usePortal.js +17 -0
- package/dist/runtime/composables/useResizable.d.ts +27 -0
- package/dist/runtime/composables/useResizable.js +173 -0
- package/dist/runtime/composables/useScrollspy.d.ts +6 -0
- package/dist/runtime/composables/useScrollspy.js +38 -0
- package/dist/runtime/composables/useToast.d.ts +13 -0
- package/dist/runtime/composables/useToast.js +62 -0
- package/dist/runtime/index.css +1 -0
- package/dist/runtime/inertia/components/Link.vue +132 -0
- package/dist/runtime/inertia/components/Link.vue.d.ts +63 -0
- package/dist/runtime/inertia/components/LinkBase.vue +68 -0
- package/dist/runtime/inertia/components/LinkBase.vue.d.ts +25 -0
- package/dist/runtime/inertia/stubs.d.ts +43 -0
- package/dist/runtime/inertia/stubs.js +82 -0
- package/dist/runtime/keyframes.css +1 -0
- package/dist/runtime/locale/ar.d.ts +3 -0
- package/dist/runtime/locale/ar.js +56 -0
- package/dist/runtime/locale/az.d.ts +3 -0
- package/dist/runtime/locale/az.js +55 -0
- package/dist/runtime/locale/bg.d.ts +3 -0
- package/dist/runtime/locale/bg.js +55 -0
- package/dist/runtime/locale/bn.d.ts +3 -0
- package/dist/runtime/locale/bn.js +55 -0
- package/dist/runtime/locale/ca.d.ts +3 -0
- package/dist/runtime/locale/ca.js +55 -0
- package/dist/runtime/locale/ckb.d.ts +3 -0
- package/dist/runtime/locale/ckb.js +56 -0
- package/dist/runtime/locale/cs.d.ts +3 -0
- package/dist/runtime/locale/cs.js +55 -0
- package/dist/runtime/locale/da.d.ts +3 -0
- package/dist/runtime/locale/da.js +55 -0
- package/dist/runtime/locale/de.d.ts +3 -0
- package/dist/runtime/locale/de.js +55 -0
- package/dist/runtime/locale/el.d.ts +3 -0
- package/dist/runtime/locale/el.js +55 -0
- package/dist/runtime/locale/en.d.ts +3 -0
- package/dist/runtime/locale/en.js +125 -0
- package/dist/runtime/locale/es.d.ts +3 -0
- package/dist/runtime/locale/es.js +55 -0
- package/dist/runtime/locale/et.d.ts +3 -0
- package/dist/runtime/locale/et.js +55 -0
- package/dist/runtime/locale/fa_ir.d.ts +3 -0
- package/dist/runtime/locale/fa_ir.js +56 -0
- package/dist/runtime/locale/fi.d.ts +3 -0
- package/dist/runtime/locale/fi.js +55 -0
- package/dist/runtime/locale/fr.d.ts +3 -0
- package/dist/runtime/locale/fr.js +55 -0
- package/dist/runtime/locale/he.d.ts +3 -0
- package/dist/runtime/locale/he.js +54 -0
- package/dist/runtime/locale/hi.d.ts +3 -0
- package/dist/runtime/locale/hi.js +55 -0
- package/dist/runtime/locale/hu.d.ts +3 -0
- package/dist/runtime/locale/hu.js +55 -0
- package/dist/runtime/locale/hy.d.ts +3 -0
- package/dist/runtime/locale/hy.js +55 -0
- package/dist/runtime/locale/id.d.ts +3 -0
- package/dist/runtime/locale/id.js +55 -0
- package/dist/runtime/locale/index.d.ts +51 -0
- package/dist/runtime/locale/index.js +51 -0
- package/dist/runtime/locale/it.d.ts +3 -0
- package/dist/runtime/locale/it.js +55 -0
- package/dist/runtime/locale/ja.d.ts +3 -0
- package/dist/runtime/locale/ja.js +55 -0
- package/dist/runtime/locale/kk.d.ts +3 -0
- package/dist/runtime/locale/kk.js +55 -0
- package/dist/runtime/locale/km.d.ts +3 -0
- package/dist/runtime/locale/km.js +55 -0
- package/dist/runtime/locale/ko.d.ts +3 -0
- package/dist/runtime/locale/ko.js +55 -0
- package/dist/runtime/locale/ky.d.ts +3 -0
- package/dist/runtime/locale/ky.js +55 -0
- package/dist/runtime/locale/lb.d.ts +3 -0
- package/dist/runtime/locale/lb.js +55 -0
- package/dist/runtime/locale/lt.d.ts +3 -0
- package/dist/runtime/locale/lt.js +55 -0
- package/dist/runtime/locale/mn.d.ts +3 -0
- package/dist/runtime/locale/mn.js +55 -0
- package/dist/runtime/locale/ms.d.ts +3 -0
- package/dist/runtime/locale/ms.js +55 -0
- package/dist/runtime/locale/nb_no.d.ts +3 -0
- package/dist/runtime/locale/nb_no.js +55 -0
- package/dist/runtime/locale/nl.d.ts +3 -0
- package/dist/runtime/locale/nl.js +55 -0
- package/dist/runtime/locale/pl.d.ts +3 -0
- package/dist/runtime/locale/pl.js +55 -0
- package/dist/runtime/locale/pt.d.ts +3 -0
- package/dist/runtime/locale/pt.js +55 -0
- package/dist/runtime/locale/pt_br.d.ts +3 -0
- package/dist/runtime/locale/pt_br.js +55 -0
- package/dist/runtime/locale/ro.d.ts +3 -0
- package/dist/runtime/locale/ro.js +55 -0
- package/dist/runtime/locale/ru.d.ts +3 -0
- package/dist/runtime/locale/ru.js +55 -0
- package/dist/runtime/locale/sk.d.ts +3 -0
- package/dist/runtime/locale/sk.js +55 -0
- package/dist/runtime/locale/sl.d.ts +3 -0
- package/dist/runtime/locale/sl.js +55 -0
- package/dist/runtime/locale/sv.d.ts +3 -0
- package/dist/runtime/locale/sv.js +55 -0
- package/dist/runtime/locale/th.d.ts +3 -0
- package/dist/runtime/locale/th.js +55 -0
- package/dist/runtime/locale/tj.d.ts +3 -0
- package/dist/runtime/locale/tj.js +55 -0
- package/dist/runtime/locale/tr.d.ts +3 -0
- package/dist/runtime/locale/tr.js +55 -0
- package/dist/runtime/locale/ug_cn.d.ts +3 -0
- package/dist/runtime/locale/ug_cn.js +56 -0
- package/dist/runtime/locale/uk.d.ts +3 -0
- package/dist/runtime/locale/uk.js +55 -0
- package/dist/runtime/locale/ur.d.ts +3 -0
- package/dist/runtime/locale/ur.js +56 -0
- package/dist/runtime/locale/uz.d.ts +3 -0
- package/dist/runtime/locale/uz.js +55 -0
- package/dist/runtime/locale/vi.d.ts +3 -0
- package/dist/runtime/locale/vi.js +55 -0
- package/dist/runtime/locale/zh_cn.d.ts +3 -0
- package/dist/runtime/locale/zh_cn.js +55 -0
- package/dist/runtime/locale/zh_tw.d.ts +3 -0
- package/dist/runtime/locale/zh_tw.js +55 -0
- package/dist/runtime/plugins/colors.d.ts +2 -0
- package/dist/runtime/plugins/colors.js +51 -0
- package/dist/runtime/types/app.config.d.ts +6 -0
- package/dist/runtime/types/content.d.ts +1 -0
- package/dist/runtime/types/content.js +0 -0
- package/dist/runtime/types/form.d.ts +87 -0
- package/dist/runtime/types/form.js +12 -0
- package/dist/runtime/types/index.d.ts +76 -0
- package/dist/runtime/types/index.js +76 -0
- package/dist/runtime/types/locale.d.ts +127 -0
- package/dist/runtime/types/locale.js +0 -0
- package/dist/runtime/types/prose.d.ts +1 -0
- package/dist/runtime/types/prose.js +0 -0
- package/dist/runtime/types/tv.d.ts +53 -0
- package/dist/runtime/types/tv.js +0 -0
- package/dist/runtime/types/utils.d.ts +41 -0
- package/dist/runtime/types/utils.js +1 -0
- package/dist/runtime/utils/content.d.ts +13 -0
- package/dist/runtime/utils/content.js +51 -0
- package/dist/runtime/utils/dashboard.d.ts +10 -0
- package/dist/runtime/utils/dashboard.js +5 -0
- package/dist/runtime/utils/form.d.ts +13 -0
- package/dist/runtime/utils/form.js +108 -0
- package/dist/runtime/utils/fuse.d.ts +4 -0
- package/dist/runtime/utils/fuse.js +63 -0
- package/dist/runtime/utils/index.d.ts +12 -0
- package/dist/runtime/utils/index.js +89 -0
- package/dist/runtime/utils/link.d.ts +7 -0
- package/dist/runtime/utils/link.js +47 -0
- package/dist/runtime/utils/locale.d.ts +15 -0
- package/dist/runtime/utils/locale.js +25 -0
- package/dist/runtime/utils/tv.d.ts +1 -0
- package/dist/runtime/utils/tv.js +4 -0
- package/dist/runtime/vue/components/Icon.vue +14 -0
- package/dist/runtime/vue/components/Icon.vue.d.ts +5 -0
- package/dist/runtime/vue/components/Link.vue +169 -0
- package/dist/runtime/vue/components/Link.vue.d.ts +93 -0
- package/dist/runtime/vue/components/color-mode/ColorModeButton.vue +34 -0
- package/dist/runtime/vue/components/color-mode/ColorModeButton.vue.d.ts +38 -0
- package/dist/runtime/vue/components/color-mode/ColorModeSelect.vue +37 -0
- package/dist/runtime/vue/components/color-mode/ColorModeSelect.vue.d.ts +5 -0
- package/dist/runtime/vue/components/color-mode/ColorModeSwitch.vue +32 -0
- package/dist/runtime/vue/components/color-mode/ColorModeSwitch.vue.d.ts +5 -0
- package/dist/runtime/vue/composables/useAppConfig.d.ts +1 -0
- package/dist/runtime/vue/composables/useAppConfig.js +4 -0
- package/dist/runtime/vue/plugins/color-mode.d.ts +4 -0
- package/dist/runtime/vue/plugins/color-mode.js +6 -0
- package/dist/runtime/vue/plugins/head.d.ts +4 -0
- package/dist/runtime/vue/plugins/head.js +10 -0
- package/dist/runtime/vue/stubs.d.ts +40 -0
- package/dist/runtime/vue/stubs.js +74 -0
- package/dist/shared/ui.BcVNrqyb.mjs +5374 -0
- package/dist/types.d.mts +5 -0
- package/dist/unplugin.d.mts +88 -0
- package/dist/unplugin.mjs +242 -0
- package/dist/vite.d.mts +15 -0
- package/dist/vite.mjs +21 -0
- package/package.json +255 -0
- package/vue-plugin.d.ts +5 -0
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
const color = [
|
|
2
|
+
"primary",
|
|
3
|
+
"secondary",
|
|
4
|
+
"success",
|
|
5
|
+
"info",
|
|
6
|
+
"warning",
|
|
7
|
+
"error",
|
|
8
|
+
"neutral"
|
|
9
|
+
] as const
|
|
10
|
+
|
|
11
|
+
const size = [
|
|
12
|
+
"xs",
|
|
13
|
+
"sm",
|
|
14
|
+
"md",
|
|
15
|
+
"lg",
|
|
16
|
+
"xl"
|
|
17
|
+
] as const
|
|
18
|
+
|
|
19
|
+
const orientation = [
|
|
20
|
+
"horizontal",
|
|
21
|
+
"vertical"
|
|
22
|
+
] as const
|
|
23
|
+
|
|
24
|
+
export default {
|
|
25
|
+
"slots": {
|
|
26
|
+
"root": "relative flex items-center select-none touch-none",
|
|
27
|
+
"track": "relative bg-accented overflow-hidden rounded-full grow",
|
|
28
|
+
"range": "absolute rounded-full",
|
|
29
|
+
"thumb": "rounded-full bg-default ring-2 focus-visible:outline-2 focus-visible:outline-offset-2"
|
|
30
|
+
},
|
|
31
|
+
"variants": {
|
|
32
|
+
"color": {
|
|
33
|
+
"primary": {
|
|
34
|
+
"range": "bg-primary",
|
|
35
|
+
"thumb": "ring-primary focus-visible:outline-primary/50"
|
|
36
|
+
},
|
|
37
|
+
"secondary": {
|
|
38
|
+
"range": "bg-secondary",
|
|
39
|
+
"thumb": "ring-secondary focus-visible:outline-secondary/50"
|
|
40
|
+
},
|
|
41
|
+
"success": {
|
|
42
|
+
"range": "bg-success",
|
|
43
|
+
"thumb": "ring-success focus-visible:outline-success/50"
|
|
44
|
+
},
|
|
45
|
+
"info": {
|
|
46
|
+
"range": "bg-info",
|
|
47
|
+
"thumb": "ring-info focus-visible:outline-info/50"
|
|
48
|
+
},
|
|
49
|
+
"warning": {
|
|
50
|
+
"range": "bg-warning",
|
|
51
|
+
"thumb": "ring-warning focus-visible:outline-warning/50"
|
|
52
|
+
},
|
|
53
|
+
"error": {
|
|
54
|
+
"range": "bg-error",
|
|
55
|
+
"thumb": "ring-error focus-visible:outline-error/50"
|
|
56
|
+
},
|
|
57
|
+
"neutral": {
|
|
58
|
+
"range": "bg-inverted",
|
|
59
|
+
"thumb": "ring-inverted focus-visible:outline-inverted/50"
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"size": {
|
|
63
|
+
"xs": {
|
|
64
|
+
"thumb": "size-3"
|
|
65
|
+
},
|
|
66
|
+
"sm": {
|
|
67
|
+
"thumb": "size-3.5"
|
|
68
|
+
},
|
|
69
|
+
"md": {
|
|
70
|
+
"thumb": "size-4"
|
|
71
|
+
},
|
|
72
|
+
"lg": {
|
|
73
|
+
"thumb": "size-4.5"
|
|
74
|
+
},
|
|
75
|
+
"xl": {
|
|
76
|
+
"thumb": "size-5"
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"orientation": {
|
|
80
|
+
"horizontal": {
|
|
81
|
+
"root": "w-full",
|
|
82
|
+
"range": "h-full"
|
|
83
|
+
},
|
|
84
|
+
"vertical": {
|
|
85
|
+
"root": "flex-col h-full",
|
|
86
|
+
"range": "w-full"
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"disabled": {
|
|
90
|
+
"true": {
|
|
91
|
+
"root": "opacity-75 cursor-not-allowed"
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
"compoundVariants": [
|
|
96
|
+
{
|
|
97
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
98
|
+
"size": "xs" as typeof size[number],
|
|
99
|
+
"class": {
|
|
100
|
+
"track": "h-[6px]"
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
105
|
+
"size": "sm" as typeof size[number],
|
|
106
|
+
"class": {
|
|
107
|
+
"track": "h-[7px]"
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
112
|
+
"size": "md" as typeof size[number],
|
|
113
|
+
"class": {
|
|
114
|
+
"track": "h-[8px]"
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
119
|
+
"size": "lg" as typeof size[number],
|
|
120
|
+
"class": {
|
|
121
|
+
"track": "h-[9px]"
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
126
|
+
"size": "xl" as typeof size[number],
|
|
127
|
+
"class": {
|
|
128
|
+
"track": "h-[10px]"
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
133
|
+
"size": "xs" as typeof size[number],
|
|
134
|
+
"class": {
|
|
135
|
+
"track": "w-[6px]"
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
140
|
+
"size": "sm" as typeof size[number],
|
|
141
|
+
"class": {
|
|
142
|
+
"track": "w-[7px]"
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
147
|
+
"size": "md" as typeof size[number],
|
|
148
|
+
"class": {
|
|
149
|
+
"track": "w-[8px]"
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
154
|
+
"size": "lg" as typeof size[number],
|
|
155
|
+
"class": {
|
|
156
|
+
"track": "w-[9px]"
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
161
|
+
"size": "xl" as typeof size[number],
|
|
162
|
+
"class": {
|
|
163
|
+
"track": "w-[10px]"
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
],
|
|
167
|
+
"defaultVariants": {
|
|
168
|
+
"size": "md" as typeof size[number],
|
|
169
|
+
"color": "primary" as typeof color[number]
|
|
170
|
+
}
|
|
171
|
+
}
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
const orientation = [
|
|
2
|
+
"horizontal",
|
|
3
|
+
"vertical"
|
|
4
|
+
] as const
|
|
5
|
+
|
|
6
|
+
const size = [
|
|
7
|
+
"xs",
|
|
8
|
+
"sm",
|
|
9
|
+
"md",
|
|
10
|
+
"lg",
|
|
11
|
+
"xl"
|
|
12
|
+
] as const
|
|
13
|
+
|
|
14
|
+
const color = [
|
|
15
|
+
"primary",
|
|
16
|
+
"secondary",
|
|
17
|
+
"success",
|
|
18
|
+
"info",
|
|
19
|
+
"warning",
|
|
20
|
+
"error",
|
|
21
|
+
"neutral"
|
|
22
|
+
] as const
|
|
23
|
+
|
|
24
|
+
export default {
|
|
25
|
+
"slots": {
|
|
26
|
+
"root": "flex gap-4",
|
|
27
|
+
"header": "flex",
|
|
28
|
+
"item": "group text-center relative w-full",
|
|
29
|
+
"container": "relative",
|
|
30
|
+
"trigger": "rounded-full font-medium text-center align-middle flex items-center justify-center font-semibold group-data-[state=completed]:text-inverted group-data-[state=active]:text-inverted text-muted bg-elevated focus-visible:outline-2 focus-visible:outline-offset-2",
|
|
31
|
+
"indicator": "flex items-center justify-center size-full",
|
|
32
|
+
"icon": "shrink-0",
|
|
33
|
+
"separator": "absolute rounded-full group-data-[disabled]:opacity-75 bg-accented",
|
|
34
|
+
"wrapper": "",
|
|
35
|
+
"title": "font-medium text-default",
|
|
36
|
+
"description": "text-muted text-wrap",
|
|
37
|
+
"content": "size-full"
|
|
38
|
+
},
|
|
39
|
+
"variants": {
|
|
40
|
+
"orientation": {
|
|
41
|
+
"horizontal": {
|
|
42
|
+
"root": "flex-col",
|
|
43
|
+
"container": "flex justify-center",
|
|
44
|
+
"separator": "top-[calc(50%-2px)] h-0.5",
|
|
45
|
+
"wrapper": "mt-1"
|
|
46
|
+
},
|
|
47
|
+
"vertical": {
|
|
48
|
+
"header": "flex-col gap-4",
|
|
49
|
+
"item": "flex text-start",
|
|
50
|
+
"separator": "start-[calc(50%-1px)] -bottom-[10px] w-0.5"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"size": {
|
|
54
|
+
"xs": {
|
|
55
|
+
"trigger": "size-6 text-xs",
|
|
56
|
+
"icon": "size-3",
|
|
57
|
+
"title": "text-xs",
|
|
58
|
+
"description": "text-xs",
|
|
59
|
+
"wrapper": "mt-1.5"
|
|
60
|
+
},
|
|
61
|
+
"sm": {
|
|
62
|
+
"trigger": "size-8 text-sm",
|
|
63
|
+
"icon": "size-4",
|
|
64
|
+
"title": "text-xs",
|
|
65
|
+
"description": "text-xs",
|
|
66
|
+
"wrapper": "mt-2"
|
|
67
|
+
},
|
|
68
|
+
"md": {
|
|
69
|
+
"trigger": "size-10 text-base",
|
|
70
|
+
"icon": "size-5",
|
|
71
|
+
"title": "text-sm",
|
|
72
|
+
"description": "text-sm",
|
|
73
|
+
"wrapper": "mt-2.5"
|
|
74
|
+
},
|
|
75
|
+
"lg": {
|
|
76
|
+
"trigger": "size-12 text-lg",
|
|
77
|
+
"icon": "size-6",
|
|
78
|
+
"title": "text-base",
|
|
79
|
+
"description": "text-base",
|
|
80
|
+
"wrapper": "mt-3"
|
|
81
|
+
},
|
|
82
|
+
"xl": {
|
|
83
|
+
"trigger": "size-14 text-xl",
|
|
84
|
+
"icon": "size-7",
|
|
85
|
+
"title": "text-lg",
|
|
86
|
+
"description": "text-lg",
|
|
87
|
+
"wrapper": "mt-3.5"
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"color": {
|
|
91
|
+
"primary": {
|
|
92
|
+
"trigger": "group-data-[state=completed]:bg-primary group-data-[state=active]:bg-primary focus-visible:outline-primary",
|
|
93
|
+
"separator": "group-data-[state=completed]:bg-primary"
|
|
94
|
+
},
|
|
95
|
+
"secondary": {
|
|
96
|
+
"trigger": "group-data-[state=completed]:bg-secondary group-data-[state=active]:bg-secondary focus-visible:outline-secondary",
|
|
97
|
+
"separator": "group-data-[state=completed]:bg-secondary"
|
|
98
|
+
},
|
|
99
|
+
"success": {
|
|
100
|
+
"trigger": "group-data-[state=completed]:bg-success group-data-[state=active]:bg-success focus-visible:outline-success",
|
|
101
|
+
"separator": "group-data-[state=completed]:bg-success"
|
|
102
|
+
},
|
|
103
|
+
"info": {
|
|
104
|
+
"trigger": "group-data-[state=completed]:bg-info group-data-[state=active]:bg-info focus-visible:outline-info",
|
|
105
|
+
"separator": "group-data-[state=completed]:bg-info"
|
|
106
|
+
},
|
|
107
|
+
"warning": {
|
|
108
|
+
"trigger": "group-data-[state=completed]:bg-warning group-data-[state=active]:bg-warning focus-visible:outline-warning",
|
|
109
|
+
"separator": "group-data-[state=completed]:bg-warning"
|
|
110
|
+
},
|
|
111
|
+
"error": {
|
|
112
|
+
"trigger": "group-data-[state=completed]:bg-error group-data-[state=active]:bg-error focus-visible:outline-error",
|
|
113
|
+
"separator": "group-data-[state=completed]:bg-error"
|
|
114
|
+
},
|
|
115
|
+
"neutral": {
|
|
116
|
+
"trigger": "group-data-[state=completed]:bg-inverted group-data-[state=active]:bg-inverted focus-visible:outline-inverted",
|
|
117
|
+
"separator": "group-data-[state=completed]:bg-inverted"
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
"compoundVariants": [
|
|
122
|
+
{
|
|
123
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
124
|
+
"size": "xs" as typeof size[number],
|
|
125
|
+
"class": {
|
|
126
|
+
"separator": "start-[calc(50%+16px)] end-[calc(-50%+16px)]"
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
131
|
+
"size": "sm" as typeof size[number],
|
|
132
|
+
"class": {
|
|
133
|
+
"separator": "start-[calc(50%+20px)] end-[calc(-50%+20px)]"
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
138
|
+
"size": "md" as typeof size[number],
|
|
139
|
+
"class": {
|
|
140
|
+
"separator": "start-[calc(50%+28px)] end-[calc(-50%+28px)]"
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
145
|
+
"size": "lg" as typeof size[number],
|
|
146
|
+
"class": {
|
|
147
|
+
"separator": "start-[calc(50%+32px)] end-[calc(-50%+32px)]"
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
152
|
+
"size": "xl" as typeof size[number],
|
|
153
|
+
"class": {
|
|
154
|
+
"separator": "start-[calc(50%+36px)] end-[calc(-50%+36px)]"
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
159
|
+
"size": "xs" as typeof size[number],
|
|
160
|
+
"class": {
|
|
161
|
+
"separator": "top-[30px]",
|
|
162
|
+
"item": "gap-1.5"
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
167
|
+
"size": "sm" as typeof size[number],
|
|
168
|
+
"class": {
|
|
169
|
+
"separator": "top-[38px]",
|
|
170
|
+
"item": "gap-2"
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
175
|
+
"size": "md" as typeof size[number],
|
|
176
|
+
"class": {
|
|
177
|
+
"separator": "top-[46px]",
|
|
178
|
+
"item": "gap-2.5"
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
183
|
+
"size": "lg" as typeof size[number],
|
|
184
|
+
"class": {
|
|
185
|
+
"separator": "top-[54px]",
|
|
186
|
+
"item": "gap-3"
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
191
|
+
"size": "xl" as typeof size[number],
|
|
192
|
+
"class": {
|
|
193
|
+
"separator": "top-[62px]",
|
|
194
|
+
"item": "gap-3.5"
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
],
|
|
198
|
+
"defaultVariants": {
|
|
199
|
+
"size": "md" as typeof size[number],
|
|
200
|
+
"color": "primary" as typeof color[number]
|
|
201
|
+
}
|
|
202
|
+
}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
const color = [
|
|
2
|
+
"primary",
|
|
3
|
+
"secondary",
|
|
4
|
+
"success",
|
|
5
|
+
"info",
|
|
6
|
+
"warning",
|
|
7
|
+
"error",
|
|
8
|
+
"neutral"
|
|
9
|
+
] as const
|
|
10
|
+
|
|
11
|
+
const size = [
|
|
12
|
+
"xs",
|
|
13
|
+
"sm",
|
|
14
|
+
"md",
|
|
15
|
+
"lg",
|
|
16
|
+
"xl"
|
|
17
|
+
] as const
|
|
18
|
+
|
|
19
|
+
export default {
|
|
20
|
+
"slots": {
|
|
21
|
+
"root": "relative flex items-start",
|
|
22
|
+
"base": [
|
|
23
|
+
"inline-flex items-center shrink-0 rounded-full border-2 border-transparent focus-visible:outline-2 focus-visible:outline-offset-2 data-[state=unchecked]:bg-accented",
|
|
24
|
+
"transition-[background] duration-200"
|
|
25
|
+
],
|
|
26
|
+
"container": "flex items-center",
|
|
27
|
+
"thumb": "group pointer-events-none rounded-full bg-default shadow-lg ring-0 transition-transform duration-200 data-[state=unchecked]:translate-x-0 data-[state=unchecked]:rtl:-translate-x-0 flex items-center justify-center",
|
|
28
|
+
"icon": [
|
|
29
|
+
"absolute shrink-0 group-data-[state=unchecked]:text-dimmed opacity-0 size-10/12",
|
|
30
|
+
"transition-[color,opacity] duration-200"
|
|
31
|
+
],
|
|
32
|
+
"wrapper": "ms-2",
|
|
33
|
+
"label": "block font-medium text-default",
|
|
34
|
+
"description": "text-muted"
|
|
35
|
+
},
|
|
36
|
+
"variants": {
|
|
37
|
+
"color": {
|
|
38
|
+
"primary": {
|
|
39
|
+
"base": "data-[state=checked]:bg-primary focus-visible:outline-primary",
|
|
40
|
+
"icon": "group-data-[state=checked]:text-primary"
|
|
41
|
+
},
|
|
42
|
+
"secondary": {
|
|
43
|
+
"base": "data-[state=checked]:bg-secondary focus-visible:outline-secondary",
|
|
44
|
+
"icon": "group-data-[state=checked]:text-secondary"
|
|
45
|
+
},
|
|
46
|
+
"success": {
|
|
47
|
+
"base": "data-[state=checked]:bg-success focus-visible:outline-success",
|
|
48
|
+
"icon": "group-data-[state=checked]:text-success"
|
|
49
|
+
},
|
|
50
|
+
"info": {
|
|
51
|
+
"base": "data-[state=checked]:bg-info focus-visible:outline-info",
|
|
52
|
+
"icon": "group-data-[state=checked]:text-info"
|
|
53
|
+
},
|
|
54
|
+
"warning": {
|
|
55
|
+
"base": "data-[state=checked]:bg-warning focus-visible:outline-warning",
|
|
56
|
+
"icon": "group-data-[state=checked]:text-warning"
|
|
57
|
+
},
|
|
58
|
+
"error": {
|
|
59
|
+
"base": "data-[state=checked]:bg-error focus-visible:outline-error",
|
|
60
|
+
"icon": "group-data-[state=checked]:text-error"
|
|
61
|
+
},
|
|
62
|
+
"neutral": {
|
|
63
|
+
"base": "data-[state=checked]:bg-inverted focus-visible:outline-inverted",
|
|
64
|
+
"icon": "group-data-[state=checked]:text-highlighted"
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"size": {
|
|
68
|
+
"xs": {
|
|
69
|
+
"base": "w-7",
|
|
70
|
+
"container": "h-4",
|
|
71
|
+
"thumb": "size-3 data-[state=checked]:translate-x-3 data-[state=checked]:rtl:-translate-x-3",
|
|
72
|
+
"wrapper": "text-xs"
|
|
73
|
+
},
|
|
74
|
+
"sm": {
|
|
75
|
+
"base": "w-8",
|
|
76
|
+
"container": "h-4",
|
|
77
|
+
"thumb": "size-3.5 data-[state=checked]:translate-x-3.5 data-[state=checked]:rtl:-translate-x-3.5",
|
|
78
|
+
"wrapper": "text-xs"
|
|
79
|
+
},
|
|
80
|
+
"md": {
|
|
81
|
+
"base": "w-9",
|
|
82
|
+
"container": "h-5",
|
|
83
|
+
"thumb": "size-4 data-[state=checked]:translate-x-4 data-[state=checked]:rtl:-translate-x-4",
|
|
84
|
+
"wrapper": "text-sm"
|
|
85
|
+
},
|
|
86
|
+
"lg": {
|
|
87
|
+
"base": "w-10",
|
|
88
|
+
"container": "h-5",
|
|
89
|
+
"thumb": "size-4.5 data-[state=checked]:translate-x-4.5 data-[state=checked]:rtl:-translate-x-4.5",
|
|
90
|
+
"wrapper": "text-sm"
|
|
91
|
+
},
|
|
92
|
+
"xl": {
|
|
93
|
+
"base": "w-11",
|
|
94
|
+
"container": "h-6",
|
|
95
|
+
"thumb": "size-5 data-[state=checked]:translate-x-5 data-[state=checked]:rtl:-translate-x-5",
|
|
96
|
+
"wrapper": "text-base"
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
"checked": {
|
|
100
|
+
"true": {
|
|
101
|
+
"icon": "group-data-[state=checked]:opacity-100"
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"unchecked": {
|
|
105
|
+
"true": {
|
|
106
|
+
"icon": "group-data-[state=unchecked]:opacity-100"
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
"loading": {
|
|
110
|
+
"true": {
|
|
111
|
+
"icon": "animate-spin"
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
"required": {
|
|
115
|
+
"true": {
|
|
116
|
+
"label": "after:content-['*'] after:ms-0.5 after:text-error"
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
"disabled": {
|
|
120
|
+
"true": {
|
|
121
|
+
"base": "cursor-not-allowed opacity-75",
|
|
122
|
+
"label": "cursor-not-allowed opacity-75",
|
|
123
|
+
"description": "cursor-not-allowed opacity-75"
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
"defaultVariants": {
|
|
128
|
+
"color": "primary" as typeof color[number],
|
|
129
|
+
"size": "md" as typeof size[number]
|
|
130
|
+
}
|
|
131
|
+
}
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
const loadingAnimation = [
|
|
2
|
+
"carousel",
|
|
3
|
+
"carousel-inverse",
|
|
4
|
+
"swing",
|
|
5
|
+
"elastic"
|
|
6
|
+
] as const
|
|
7
|
+
|
|
8
|
+
const loadingColor = [
|
|
9
|
+
"primary",
|
|
10
|
+
"secondary",
|
|
11
|
+
"success",
|
|
12
|
+
"info",
|
|
13
|
+
"warning",
|
|
14
|
+
"error",
|
|
15
|
+
"neutral"
|
|
16
|
+
] as const
|
|
17
|
+
|
|
18
|
+
export default {
|
|
19
|
+
"slots": {
|
|
20
|
+
"root": "relative overflow-auto",
|
|
21
|
+
"base": "min-w-full overflow-clip",
|
|
22
|
+
"caption": "sr-only",
|
|
23
|
+
"thead": "relative",
|
|
24
|
+
"tbody": "divide-y divide-default [&>tr]:data-[selectable=true]:hover:bg-elevated/50 [&>tr]:data-[selectable=true]:focus-visible:outline-primary",
|
|
25
|
+
"tr": "data-[selected=true]:bg-elevated/50",
|
|
26
|
+
"th": "px-4 py-3.5 text-sm text-highlighted text-left rtl:text-right font-semibold [&:has([role=checkbox])]:pe-0",
|
|
27
|
+
"td": "p-4 text-sm text-muted whitespace-nowrap [&:has([role=checkbox])]:pe-0",
|
|
28
|
+
"separator": "absolute z-[1] left-0 w-full h-px bg-(--ui-border-accented)",
|
|
29
|
+
"empty": "py-6 text-center text-sm text-muted",
|
|
30
|
+
"loading": "py-6 text-center"
|
|
31
|
+
},
|
|
32
|
+
"variants": {
|
|
33
|
+
"pinned": {
|
|
34
|
+
"true": {
|
|
35
|
+
"th": "sticky bg-default/75 data-[pinned=left]:left-0 data-[pinned=right]:right-0",
|
|
36
|
+
"td": "sticky bg-default/75 data-[pinned=left]:left-0 data-[pinned=right]:right-0"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"sticky": {
|
|
40
|
+
"true": {
|
|
41
|
+
"thead": "sticky top-0 inset-x-0 bg-default/75 z-[1] backdrop-blur"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"loading": {
|
|
45
|
+
"true": {
|
|
46
|
+
"thead": "after:absolute after:z-[1] after:h-px"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"loadingAnimation": {
|
|
50
|
+
"carousel": "",
|
|
51
|
+
"carousel-inverse": "",
|
|
52
|
+
"swing": "",
|
|
53
|
+
"elastic": ""
|
|
54
|
+
},
|
|
55
|
+
"loadingColor": {
|
|
56
|
+
"primary": "",
|
|
57
|
+
"secondary": "",
|
|
58
|
+
"success": "",
|
|
59
|
+
"info": "",
|
|
60
|
+
"warning": "",
|
|
61
|
+
"error": "",
|
|
62
|
+
"neutral": ""
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"compoundVariants": [
|
|
66
|
+
{
|
|
67
|
+
"loading": true,
|
|
68
|
+
"loadingColor": "primary" as typeof loadingColor[number],
|
|
69
|
+
"class": {
|
|
70
|
+
"thead": "after:bg-primary"
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"loading": true,
|
|
75
|
+
"loadingColor": "secondary" as typeof loadingColor[number],
|
|
76
|
+
"class": {
|
|
77
|
+
"thead": "after:bg-secondary"
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"loading": true,
|
|
82
|
+
"loadingColor": "success" as typeof loadingColor[number],
|
|
83
|
+
"class": {
|
|
84
|
+
"thead": "after:bg-success"
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"loading": true,
|
|
89
|
+
"loadingColor": "info" as typeof loadingColor[number],
|
|
90
|
+
"class": {
|
|
91
|
+
"thead": "after:bg-info"
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"loading": true,
|
|
96
|
+
"loadingColor": "warning" as typeof loadingColor[number],
|
|
97
|
+
"class": {
|
|
98
|
+
"thead": "after:bg-warning"
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"loading": true,
|
|
103
|
+
"loadingColor": "error" as typeof loadingColor[number],
|
|
104
|
+
"class": {
|
|
105
|
+
"thead": "after:bg-error"
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"loading": true,
|
|
110
|
+
"loadingColor": "neutral" as typeof loadingColor[number],
|
|
111
|
+
"class": {
|
|
112
|
+
"thead": "after:bg-inverted"
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"loading": true,
|
|
117
|
+
"loadingAnimation": "carousel" as typeof loadingAnimation[number],
|
|
118
|
+
"class": {
|
|
119
|
+
"thead": "after:animate-[carousel_2s_ease-in-out_infinite] rtl:after:animate-[carousel-rtl_2s_ease-in-out_infinite]"
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"loading": true,
|
|
124
|
+
"loadingAnimation": "carousel-inverse" as typeof loadingAnimation[number],
|
|
125
|
+
"class": {
|
|
126
|
+
"thead": "after:animate-[carousel-inverse_2s_ease-in-out_infinite] rtl:after:animate-[carousel-inverse-rtl_2s_ease-in-out_infinite]"
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"loading": true,
|
|
131
|
+
"loadingAnimation": "swing" as typeof loadingAnimation[number],
|
|
132
|
+
"class": {
|
|
133
|
+
"thead": "after:animate-[swing_2s_ease-in-out_infinite]"
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"loading": true,
|
|
138
|
+
"loadingAnimation": "elastic" as typeof loadingAnimation[number],
|
|
139
|
+
"class": {
|
|
140
|
+
"thead": "after:animate-[elastic_2s_ease-in-out_infinite]"
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
],
|
|
144
|
+
"defaultVariants": {
|
|
145
|
+
"loadingColor": "primary" as typeof loadingColor[number],
|
|
146
|
+
"loadingAnimation": "carousel" as typeof loadingAnimation[number]
|
|
147
|
+
}
|
|
148
|
+
}
|