@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,55 @@
|
|
|
1
|
+
import { defineLocale } from "../composables/defineLocale.js";
|
|
2
|
+
export default defineLocale({
|
|
3
|
+
name: "\u7E41\u9AD4\u4E2D\u6587",
|
|
4
|
+
code: "zh-TW",
|
|
5
|
+
messages: {
|
|
6
|
+
inputMenu: {
|
|
7
|
+
noMatch: "\u6C92\u6709\u76F8\u7B26\u7684\u8CC7\u6599",
|
|
8
|
+
noData: "\u6C92\u6709\u8CC7\u6599",
|
|
9
|
+
create: "\u5EFA\u7ACB\u300C{label}\u300D"
|
|
10
|
+
},
|
|
11
|
+
calendar: {
|
|
12
|
+
prevYear: "\u53BB\u5E74",
|
|
13
|
+
nextYear: "\u660E\u5E74",
|
|
14
|
+
prevMonth: "\u4E0A\u500B\u6708",
|
|
15
|
+
nextMonth: "\u4E0B\u500B\u6708"
|
|
16
|
+
},
|
|
17
|
+
inputNumber: {
|
|
18
|
+
increment: "\u589E\u52A0",
|
|
19
|
+
decrement: "\u6E1B\u5C11"
|
|
20
|
+
},
|
|
21
|
+
commandPalette: {
|
|
22
|
+
placeholder: "\u8F38\u5165\u547D\u4EE4\u6216\u641C\u5C0B...",
|
|
23
|
+
noMatch: "\u6C92\u6709\u76F8\u7B26\u7684\u8CC7\u6599",
|
|
24
|
+
noData: "\u6C92\u6709\u8CC7\u6599",
|
|
25
|
+
close: "\u95DC\u9589",
|
|
26
|
+
back: "\u8FD4\u56DE"
|
|
27
|
+
},
|
|
28
|
+
selectMenu: {
|
|
29
|
+
noMatch: "\u6C92\u6709\u76F8\u7B26\u7684\u8CC7\u6599",
|
|
30
|
+
noData: "\u6C92\u6709\u8CC7\u6599",
|
|
31
|
+
create: "\u5EFA\u7ACB\u300C{label}\u300D",
|
|
32
|
+
search: "\u641C\u5C0B..."
|
|
33
|
+
},
|
|
34
|
+
toast: {
|
|
35
|
+
close: "\u95DC\u9589"
|
|
36
|
+
},
|
|
37
|
+
carousel: {
|
|
38
|
+
prev: "\u4E0A\u4E00\u9801",
|
|
39
|
+
next: "\u4E0B\u4E00\u9801",
|
|
40
|
+
goto: "\u8DF3\u8F49\u5230\u7B2C {slide} \u9801"
|
|
41
|
+
},
|
|
42
|
+
modal: {
|
|
43
|
+
close: "\u95DC\u9589"
|
|
44
|
+
},
|
|
45
|
+
slideover: {
|
|
46
|
+
close: "\u95DC\u9589"
|
|
47
|
+
},
|
|
48
|
+
alert: {
|
|
49
|
+
close: "\u95DC\u9589"
|
|
50
|
+
},
|
|
51
|
+
table: {
|
|
52
|
+
noData: "\u6C92\u6709\u8CC7\u6599"
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
});
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { computed } from "vue";
|
|
2
|
+
import colors from "tailwindcss/colors";
|
|
3
|
+
import { defineNuxtPlugin, useAppConfig, useNuxtApp, useHead } from "#imports";
|
|
4
|
+
const shades = [50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950];
|
|
5
|
+
function getColor(color, shade) {
|
|
6
|
+
if (color in colors && typeof colors[color] === "object" && shade in colors[color]) {
|
|
7
|
+
return colors[color][shade];
|
|
8
|
+
}
|
|
9
|
+
return "";
|
|
10
|
+
}
|
|
11
|
+
function generateShades(key, value) {
|
|
12
|
+
return `${shades.map((shade) => `--ui-color-${key}-${shade}: var(--color-${value === "neutral" ? "old-neutral" : value}-${shade}, ${getColor(value, shade)});`).join("\n ")}`;
|
|
13
|
+
}
|
|
14
|
+
function generateColor(key, shade) {
|
|
15
|
+
return `--ui-${key}: var(--ui-color-${key}-${shade});`;
|
|
16
|
+
}
|
|
17
|
+
export default defineNuxtPlugin(() => {
|
|
18
|
+
const appConfig = useAppConfig();
|
|
19
|
+
const nuxtApp = useNuxtApp();
|
|
20
|
+
const root = computed(() => {
|
|
21
|
+
const { neutral, ...colors2 } = appConfig.ui.colors;
|
|
22
|
+
return `@layer base {
|
|
23
|
+
:root {
|
|
24
|
+
${Object.entries(appConfig.ui.colors).map(([key, value]) => generateShades(key, value)).join("\n ")}
|
|
25
|
+
}
|
|
26
|
+
:root, .light {
|
|
27
|
+
${Object.keys(colors2).map((key) => generateColor(key, 500)).join("\n ")}
|
|
28
|
+
}
|
|
29
|
+
.dark {
|
|
30
|
+
${Object.keys(colors2).map((key) => generateColor(key, 400)).join("\n ")}
|
|
31
|
+
}
|
|
32
|
+
}`;
|
|
33
|
+
});
|
|
34
|
+
const headData = {
|
|
35
|
+
style: [{
|
|
36
|
+
innerHTML: () => root.value,
|
|
37
|
+
tagPriority: -2,
|
|
38
|
+
id: "nuxt-ui-colors"
|
|
39
|
+
}]
|
|
40
|
+
};
|
|
41
|
+
if (import.meta.client && nuxtApp.isHydrating && !nuxtApp.payload.serverRendered) {
|
|
42
|
+
const style = document.createElement("style");
|
|
43
|
+
style.innerHTML = root.value;
|
|
44
|
+
style.setAttribute("data-nuxt-ui-colors", "");
|
|
45
|
+
document.head.appendChild(style);
|
|
46
|
+
headData.script = [{
|
|
47
|
+
innerHTML: "document.head.removeChild(document.querySelector('[data-nuxt-ui-colors]'))"
|
|
48
|
+
}];
|
|
49
|
+
}
|
|
50
|
+
useHead(headData);
|
|
51
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
File without changes
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import type { StandardSchemaV1 } from '@standard-schema/spec';
|
|
2
|
+
import type { ComputedRef, DeepReadonly, Ref } from 'vue';
|
|
3
|
+
import type { Schema as JoiSchema } from 'joi';
|
|
4
|
+
import type { ObjectSchema as YupObjectSchema } from 'yup';
|
|
5
|
+
import type { GetObjectField } from './utils';
|
|
6
|
+
import type { Struct as SuperstructSchema } from 'superstruct';
|
|
7
|
+
export interface Form<S extends FormSchema> {
|
|
8
|
+
validate<T extends boolean>(opts?: {
|
|
9
|
+
name?: keyof FormData<S, false> | (keyof FormData<S, false>)[];
|
|
10
|
+
silent?: boolean;
|
|
11
|
+
nested?: boolean;
|
|
12
|
+
transform?: T;
|
|
13
|
+
}): Promise<FormData<S, T> | false>;
|
|
14
|
+
clear(path?: string): void;
|
|
15
|
+
errors: Ref<FormError[]>;
|
|
16
|
+
setErrors(errs: FormError[], name?: keyof FormData<S, false>): void;
|
|
17
|
+
getErrors(name?: keyof FormData<S, false>): FormError[];
|
|
18
|
+
submit(): Promise<void>;
|
|
19
|
+
disabled: ComputedRef<boolean>;
|
|
20
|
+
dirty: ComputedRef<boolean>;
|
|
21
|
+
loading: Ref<boolean>;
|
|
22
|
+
dirtyFields: ReadonlySet<DeepReadonly<keyof FormData<S, false>>>;
|
|
23
|
+
touchedFields: ReadonlySet<DeepReadonly<keyof FormData<S, false>>>;
|
|
24
|
+
blurredFields: ReadonlySet<DeepReadonly<keyof FormData<S, false>>>;
|
|
25
|
+
}
|
|
26
|
+
export type FormSchema<I extends object = object, O extends object = I> = YupObjectSchema<I> | JoiSchema<I> | SuperstructSchema<any, any> | StandardSchemaV1<I, O>;
|
|
27
|
+
export type InferInput<Schema> = Schema extends StandardSchemaV1 ? StandardSchemaV1.InferInput<Schema> : Schema extends YupObjectSchema<infer I> ? I : Schema extends JoiSchema<infer I> ? I : Schema extends SuperstructSchema<infer I, any> ? I : Schema extends StandardSchemaV1 ? StandardSchemaV1.InferInput<Schema> : never;
|
|
28
|
+
export type InferOutput<Schema> = Schema extends StandardSchemaV1 ? StandardSchemaV1.InferOutput<Schema> : Schema extends YupObjectSchema<infer O> ? O : Schema extends JoiSchema<infer O> ? O : Schema extends SuperstructSchema<infer O, any> ? O : never;
|
|
29
|
+
export type FormData<S extends FormSchema, T extends boolean = true> = T extends true ? InferOutput<S> : InferInput<S>;
|
|
30
|
+
export type FormInputEvents = 'input' | 'blur' | 'change' | 'focus';
|
|
31
|
+
export interface FormError<P extends string = string> {
|
|
32
|
+
name?: P;
|
|
33
|
+
message: string;
|
|
34
|
+
}
|
|
35
|
+
export interface FormErrorWithId extends FormError {
|
|
36
|
+
id?: string;
|
|
37
|
+
}
|
|
38
|
+
export type FormSubmitEvent<T> = SubmitEvent & {
|
|
39
|
+
data: T;
|
|
40
|
+
};
|
|
41
|
+
export type FormValidationError = {
|
|
42
|
+
errors: FormErrorWithId[];
|
|
43
|
+
children?: FormValidationError[];
|
|
44
|
+
};
|
|
45
|
+
export type FormErrorEvent = SubmitEvent & FormValidationError;
|
|
46
|
+
export type FormEventType = FormInputEvents;
|
|
47
|
+
export type FormChildAttachEvent = {
|
|
48
|
+
type: 'attach';
|
|
49
|
+
formId: string | number;
|
|
50
|
+
validate: Form<any>['validate'];
|
|
51
|
+
};
|
|
52
|
+
export type FormChildDetachEvent = {
|
|
53
|
+
type: 'detach';
|
|
54
|
+
formId: string | number;
|
|
55
|
+
};
|
|
56
|
+
export type FormInputEvent<T extends object> = {
|
|
57
|
+
type: FormEventType;
|
|
58
|
+
name: keyof T;
|
|
59
|
+
eager?: boolean;
|
|
60
|
+
};
|
|
61
|
+
export type FormEvent<T extends object> = FormInputEvent<T> | FormChildAttachEvent | FormChildDetachEvent;
|
|
62
|
+
export interface FormInjectedOptions {
|
|
63
|
+
disabled?: boolean;
|
|
64
|
+
validateOnInputDelay?: number;
|
|
65
|
+
}
|
|
66
|
+
export interface FormFieldInjectedOptions<T> {
|
|
67
|
+
name?: string;
|
|
68
|
+
size?: GetObjectField<T, 'size'>;
|
|
69
|
+
error?: string | boolean;
|
|
70
|
+
eagerValidation?: boolean;
|
|
71
|
+
validateOnInputDelay?: number;
|
|
72
|
+
errorPattern?: RegExp;
|
|
73
|
+
hint?: string;
|
|
74
|
+
description?: string;
|
|
75
|
+
help?: string;
|
|
76
|
+
ariaId: string;
|
|
77
|
+
}
|
|
78
|
+
export interface ValidateReturnSchema<T> {
|
|
79
|
+
result: T;
|
|
80
|
+
errors: FormError[] | null;
|
|
81
|
+
}
|
|
82
|
+
export declare class FormValidationException extends Error {
|
|
83
|
+
formId: string | number;
|
|
84
|
+
errors: FormErrorWithId[];
|
|
85
|
+
children?: FormValidationException[];
|
|
86
|
+
constructor(formId: string | number, errors: FormErrorWithId[], childErrors?: FormValidationException[]);
|
|
87
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export class FormValidationException extends Error {
|
|
2
|
+
formId;
|
|
3
|
+
errors;
|
|
4
|
+
children;
|
|
5
|
+
constructor(formId, errors, childErrors) {
|
|
6
|
+
super("Form validation exception");
|
|
7
|
+
this.formId = formId;
|
|
8
|
+
this.errors = errors;
|
|
9
|
+
this.children = childErrors;
|
|
10
|
+
Object.setPrototypeOf(this, FormValidationException.prototype);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
export * from '../components/Accordion.vue';
|
|
2
|
+
export * from '../components/Alert.vue';
|
|
3
|
+
export * from '../components/App.vue';
|
|
4
|
+
export * from '../components/Avatar.vue';
|
|
5
|
+
export * from '../components/AvatarGroup.vue';
|
|
6
|
+
export * from '../components/Badge.vue';
|
|
7
|
+
export * from '../components/Breadcrumb.vue';
|
|
8
|
+
export * from '../components/Button.vue';
|
|
9
|
+
export * from '../components/ButtonGroup.vue';
|
|
10
|
+
export * from '../components/Calendar.vue';
|
|
11
|
+
export * from '../components/Card.vue';
|
|
12
|
+
export * from '../components/Carousel.vue';
|
|
13
|
+
export * from '../components/ChatMessage.vue';
|
|
14
|
+
export * from '../components/ChatMessages.vue';
|
|
15
|
+
export * from '../components/ChatPrompt.vue';
|
|
16
|
+
export * from '../components/ChatPromptSubmit.vue';
|
|
17
|
+
export * from '../components/Checkbox.vue';
|
|
18
|
+
export * from '../components/CheckboxGroup.vue';
|
|
19
|
+
export * from '../components/Chip.vue';
|
|
20
|
+
export * from '../components/Collapsible.vue';
|
|
21
|
+
export * from '../components/color-mode/ColorModeAvatar.vue';
|
|
22
|
+
export * from '../components/color-mode/ColorModeButton.vue';
|
|
23
|
+
export * from '../components/color-mode/ColorModeImage.vue';
|
|
24
|
+
export * from '../components/color-mode/ColorModeSelect.vue';
|
|
25
|
+
export * from '../components/color-mode/ColorModeSwitch.vue';
|
|
26
|
+
export * from '../components/ColorPicker.vue';
|
|
27
|
+
export * from '../components/CommandPalette.vue';
|
|
28
|
+
export * from '../components/Container.vue';
|
|
29
|
+
export * from '../components/ContextMenu.vue';
|
|
30
|
+
export * from '../components/DashboardGroup.vue';
|
|
31
|
+
export * from '../components/DashboardNavbar.vue';
|
|
32
|
+
export * from '../components/DashboardPanel.vue';
|
|
33
|
+
export * from '../components/DashboardResizeHandle.vue';
|
|
34
|
+
export * from '../components/DashboardSearch.vue';
|
|
35
|
+
export * from '../components/DashboardSearchButton.vue';
|
|
36
|
+
export * from '../components/DashboardSidebar.vue';
|
|
37
|
+
export * from '../components/DashboardSidebarCollapse.vue';
|
|
38
|
+
export * from '../components/DashboardSidebarToggle.vue';
|
|
39
|
+
export * from '../components/Drawer.vue';
|
|
40
|
+
export * from '../components/DropdownMenu.vue';
|
|
41
|
+
export * from '../components/Form.vue';
|
|
42
|
+
export * from '../components/FormField.vue';
|
|
43
|
+
export * from '../components/Icon.vue';
|
|
44
|
+
export * from '../components/Input.vue';
|
|
45
|
+
export * from '../components/InputMenu.vue';
|
|
46
|
+
export * from '../components/InputNumber.vue';
|
|
47
|
+
export * from '../components/InputTags.vue';
|
|
48
|
+
export * from '../components/Kbd.vue';
|
|
49
|
+
export * from '../components/Link.vue';
|
|
50
|
+
export * from '../components/locale/LocaleSelect.vue';
|
|
51
|
+
export * from '../components/Modal.vue';
|
|
52
|
+
export * from '../components/NavigationMenu.vue';
|
|
53
|
+
export * from '../components/Pagination.vue';
|
|
54
|
+
export * from '../components/PinInput.vue';
|
|
55
|
+
export * from '../components/Popover.vue';
|
|
56
|
+
export * from '../components/Progress.vue';
|
|
57
|
+
export * from '../components/RadioGroup.vue';
|
|
58
|
+
export * from '../components/Select.vue';
|
|
59
|
+
export * from '../components/SelectMenu.vue';
|
|
60
|
+
export * from '../components/Separator.vue';
|
|
61
|
+
export * from '../components/Skeleton.vue';
|
|
62
|
+
export * from '../components/Slideover.vue';
|
|
63
|
+
export * from '../components/Slider.vue';
|
|
64
|
+
export * from '../components/Stepper.vue';
|
|
65
|
+
export * from '../components/Switch.vue';
|
|
66
|
+
export * from '../components/Table.vue';
|
|
67
|
+
export * from '../components/Tabs.vue';
|
|
68
|
+
export * from '../components/Textarea.vue';
|
|
69
|
+
export * from '../components/Timeline.vue';
|
|
70
|
+
export * from '../components/Toast.vue';
|
|
71
|
+
export * from '../components/Toaster.vue';
|
|
72
|
+
export * from '../components/Tooltip.vue';
|
|
73
|
+
export * from '../components/Tree.vue';
|
|
74
|
+
export * from './form';
|
|
75
|
+
export * from './locale';
|
|
76
|
+
export * from './utils';
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
export * from "../components/Accordion.vue";
|
|
2
|
+
export * from "../components/Alert.vue";
|
|
3
|
+
export * from "../components/App.vue";
|
|
4
|
+
export * from "../components/Avatar.vue";
|
|
5
|
+
export * from "../components/AvatarGroup.vue";
|
|
6
|
+
export * from "../components/Badge.vue";
|
|
7
|
+
export * from "../components/Breadcrumb.vue";
|
|
8
|
+
export * from "../components/Button.vue";
|
|
9
|
+
export * from "../components/ButtonGroup.vue";
|
|
10
|
+
export * from "../components/Calendar.vue";
|
|
11
|
+
export * from "../components/Card.vue";
|
|
12
|
+
export * from "../components/Carousel.vue";
|
|
13
|
+
export * from "../components/ChatMessage.vue";
|
|
14
|
+
export * from "../components/ChatMessages.vue";
|
|
15
|
+
export * from "../components/ChatPrompt.vue";
|
|
16
|
+
export * from "../components/ChatPromptSubmit.vue";
|
|
17
|
+
export * from "../components/Checkbox.vue";
|
|
18
|
+
export * from "../components/CheckboxGroup.vue";
|
|
19
|
+
export * from "../components/Chip.vue";
|
|
20
|
+
export * from "../components/Collapsible.vue";
|
|
21
|
+
export * from "../components/color-mode/ColorModeAvatar.vue";
|
|
22
|
+
export * from "../components/color-mode/ColorModeButton.vue";
|
|
23
|
+
export * from "../components/color-mode/ColorModeImage.vue";
|
|
24
|
+
export * from "../components/color-mode/ColorModeSelect.vue";
|
|
25
|
+
export * from "../components/color-mode/ColorModeSwitch.vue";
|
|
26
|
+
export * from "../components/ColorPicker.vue";
|
|
27
|
+
export * from "../components/CommandPalette.vue";
|
|
28
|
+
export * from "../components/Container.vue";
|
|
29
|
+
export * from "../components/ContextMenu.vue";
|
|
30
|
+
export * from "../components/DashboardGroup.vue";
|
|
31
|
+
export * from "../components/DashboardNavbar.vue";
|
|
32
|
+
export * from "../components/DashboardPanel.vue";
|
|
33
|
+
export * from "../components/DashboardResizeHandle.vue";
|
|
34
|
+
export * from "../components/DashboardSearch.vue";
|
|
35
|
+
export * from "../components/DashboardSearchButton.vue";
|
|
36
|
+
export * from "../components/DashboardSidebar.vue";
|
|
37
|
+
export * from "../components/DashboardSidebarCollapse.vue";
|
|
38
|
+
export * from "../components/DashboardSidebarToggle.vue";
|
|
39
|
+
export * from "../components/Drawer.vue";
|
|
40
|
+
export * from "../components/DropdownMenu.vue";
|
|
41
|
+
export * from "../components/Form.vue";
|
|
42
|
+
export * from "../components/FormField.vue";
|
|
43
|
+
export * from "../components/Icon.vue";
|
|
44
|
+
export * from "../components/Input.vue";
|
|
45
|
+
export * from "../components/InputMenu.vue";
|
|
46
|
+
export * from "../components/InputNumber.vue";
|
|
47
|
+
export * from "../components/InputTags.vue";
|
|
48
|
+
export * from "../components/Kbd.vue";
|
|
49
|
+
export * from "../components/Link.vue";
|
|
50
|
+
export * from "../components/locale/LocaleSelect.vue";
|
|
51
|
+
export * from "../components/Modal.vue";
|
|
52
|
+
export * from "../components/NavigationMenu.vue";
|
|
53
|
+
export * from "../components/Pagination.vue";
|
|
54
|
+
export * from "../components/PinInput.vue";
|
|
55
|
+
export * from "../components/Popover.vue";
|
|
56
|
+
export * from "../components/Progress.vue";
|
|
57
|
+
export * from "../components/RadioGroup.vue";
|
|
58
|
+
export * from "../components/Select.vue";
|
|
59
|
+
export * from "../components/SelectMenu.vue";
|
|
60
|
+
export * from "../components/Separator.vue";
|
|
61
|
+
export * from "../components/Skeleton.vue";
|
|
62
|
+
export * from "../components/Slideover.vue";
|
|
63
|
+
export * from "../components/Slider.vue";
|
|
64
|
+
export * from "../components/Stepper.vue";
|
|
65
|
+
export * from "../components/Switch.vue";
|
|
66
|
+
export * from "../components/Table.vue";
|
|
67
|
+
export * from "../components/Tabs.vue";
|
|
68
|
+
export * from "../components/Textarea.vue";
|
|
69
|
+
export * from "../components/Timeline.vue";
|
|
70
|
+
export * from "../components/Toast.vue";
|
|
71
|
+
export * from "../components/Toaster.vue";
|
|
72
|
+
export * from "../components/Tooltip.vue";
|
|
73
|
+
export * from "../components/Tree.vue";
|
|
74
|
+
export * from "./form.js";
|
|
75
|
+
export * from "./locale.js";
|
|
76
|
+
export * from "./utils.js";
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
export type Messages = {
|
|
2
|
+
inputMenu: {
|
|
3
|
+
noMatch: string;
|
|
4
|
+
noData: string;
|
|
5
|
+
create: string;
|
|
6
|
+
};
|
|
7
|
+
calendar: {
|
|
8
|
+
prevYear: string;
|
|
9
|
+
nextYear: string;
|
|
10
|
+
prevMonth: string;
|
|
11
|
+
nextMonth: string;
|
|
12
|
+
};
|
|
13
|
+
inputNumber: {
|
|
14
|
+
increment: string;
|
|
15
|
+
decrement: string;
|
|
16
|
+
};
|
|
17
|
+
commandPalette: {
|
|
18
|
+
placeholder: string;
|
|
19
|
+
noMatch: string;
|
|
20
|
+
noData: string;
|
|
21
|
+
close: string;
|
|
22
|
+
back: string;
|
|
23
|
+
};
|
|
24
|
+
selectMenu: {
|
|
25
|
+
noMatch: string;
|
|
26
|
+
noData: string;
|
|
27
|
+
create: string;
|
|
28
|
+
search: string;
|
|
29
|
+
};
|
|
30
|
+
toast: {
|
|
31
|
+
close: string;
|
|
32
|
+
};
|
|
33
|
+
carousel: {
|
|
34
|
+
prev: string;
|
|
35
|
+
next: string;
|
|
36
|
+
goto: string;
|
|
37
|
+
};
|
|
38
|
+
modal: {
|
|
39
|
+
close: string;
|
|
40
|
+
};
|
|
41
|
+
slideover: {
|
|
42
|
+
close: string;
|
|
43
|
+
};
|
|
44
|
+
alert: {
|
|
45
|
+
close: string;
|
|
46
|
+
};
|
|
47
|
+
table: {
|
|
48
|
+
noData: string;
|
|
49
|
+
};
|
|
50
|
+
authForm?: {
|
|
51
|
+
submit: string;
|
|
52
|
+
hidePassword: string;
|
|
53
|
+
showPassword: string;
|
|
54
|
+
};
|
|
55
|
+
banner?: {
|
|
56
|
+
close: string;
|
|
57
|
+
};
|
|
58
|
+
chatPrompt?: {
|
|
59
|
+
placeholder: string;
|
|
60
|
+
};
|
|
61
|
+
chatPromptSubmit?: {
|
|
62
|
+
label: string;
|
|
63
|
+
};
|
|
64
|
+
colorMode?: {
|
|
65
|
+
system: string;
|
|
66
|
+
light: string;
|
|
67
|
+
dark: string;
|
|
68
|
+
switchToLight: string;
|
|
69
|
+
switchToDark: string;
|
|
70
|
+
};
|
|
71
|
+
contentSearch?: {
|
|
72
|
+
links: string;
|
|
73
|
+
theme: string;
|
|
74
|
+
};
|
|
75
|
+
contentSearchButton?: {
|
|
76
|
+
label: string;
|
|
77
|
+
};
|
|
78
|
+
contentToc?: {
|
|
79
|
+
title: string;
|
|
80
|
+
};
|
|
81
|
+
dashboardSearch?: {
|
|
82
|
+
theme: string;
|
|
83
|
+
};
|
|
84
|
+
dashboardSearchButton?: {
|
|
85
|
+
label: string;
|
|
86
|
+
};
|
|
87
|
+
dashboardSidebarCollapse?: {
|
|
88
|
+
expand: string;
|
|
89
|
+
collapse: string;
|
|
90
|
+
};
|
|
91
|
+
dashboardSidebarToggle?: {
|
|
92
|
+
close: string;
|
|
93
|
+
open: string;
|
|
94
|
+
};
|
|
95
|
+
error?: {
|
|
96
|
+
clear: string;
|
|
97
|
+
};
|
|
98
|
+
header?: {
|
|
99
|
+
close: string;
|
|
100
|
+
open: string;
|
|
101
|
+
};
|
|
102
|
+
pricingTable?: {
|
|
103
|
+
caption: string;
|
|
104
|
+
};
|
|
105
|
+
prose?: {
|
|
106
|
+
codeCollapse?: {
|
|
107
|
+
name: string;
|
|
108
|
+
openText: string;
|
|
109
|
+
closeText: string;
|
|
110
|
+
};
|
|
111
|
+
collapsible?: {
|
|
112
|
+
name: string;
|
|
113
|
+
openText: string;
|
|
114
|
+
closeText: string;
|
|
115
|
+
};
|
|
116
|
+
pre?: {
|
|
117
|
+
copy: string;
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
export type Direction = 'ltr' | 'rtl';
|
|
122
|
+
export type Locale<M> = {
|
|
123
|
+
name: string;
|
|
124
|
+
code: string;
|
|
125
|
+
dir: Direction;
|
|
126
|
+
messages: M;
|
|
127
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
File without changes
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import type { ClassValue, TVVariants, TVCompoundVariants, TVDefaultVariants } from 'tailwind-variants';
|
|
2
|
+
/**
|
|
3
|
+
* Defines the AppConfig object based on the tailwind-variants configuration.
|
|
4
|
+
*/
|
|
5
|
+
export type TVConfig<T extends Record<string, any>> = {
|
|
6
|
+
[P in keyof T]?: {
|
|
7
|
+
[K in keyof T[P] as K extends 'base' | 'slots' | 'variants' | 'compoundVariants' | 'defaultVariants' ? K : never]?: K extends 'base' ? ClassValue : K extends 'slots' ? {
|
|
8
|
+
[S in keyof T[P]['slots']]?: ClassValue;
|
|
9
|
+
} : K extends 'variants' ? TVVariants<T[P]['slots'], ClassValue, T[P]['variants']> : K extends 'compoundVariants' ? TVCompoundVariants<T[P]['variants'], T[P]['slots'], ClassValue, object, undefined> : K extends 'defaultVariants' ? TVDefaultVariants<T[P]['variants'], T[P]['slots'], object, undefined> : never;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Utility type to flatten intersection types for better IDE hover information.
|
|
14
|
+
* @template T The type to flatten.
|
|
15
|
+
*/
|
|
16
|
+
type Id<T> = {} & {
|
|
17
|
+
[P in keyof T]: T[P];
|
|
18
|
+
};
|
|
19
|
+
type ComponentVariants<T extends {
|
|
20
|
+
variants?: Record<string, Record<string, any>>;
|
|
21
|
+
}> = {
|
|
22
|
+
[K in keyof T['variants']]: keyof T['variants'][K];
|
|
23
|
+
};
|
|
24
|
+
type ComponentSlots<T extends {
|
|
25
|
+
slots?: Record<string, any>;
|
|
26
|
+
}> = Id<{
|
|
27
|
+
[K in keyof T['slots']]?: ClassValue;
|
|
28
|
+
}>;
|
|
29
|
+
type GetComponentAppConfig<A, U extends string, K extends string> = A extends Record<U, Record<K, any>> ? A[U][K] : {};
|
|
30
|
+
type ComponentAppConfig<T, A extends Record<string, any>, K extends string, U extends string = 'ui' | 'ui.prose'> = A & (U extends 'ui.prose' ? {
|
|
31
|
+
ui?: {
|
|
32
|
+
prose?: {
|
|
33
|
+
[k in K]?: Partial<T>;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
} : {
|
|
37
|
+
[key in Exclude<U, 'ui.prose'>]?: {
|
|
38
|
+
[k in K]?: Partial<T>;
|
|
39
|
+
};
|
|
40
|
+
});
|
|
41
|
+
/**
|
|
42
|
+
* Defines the configuration shape expected for a component.
|
|
43
|
+
* @template T The component's theme imported from `#build/ui/*`.
|
|
44
|
+
* @template A The base AppConfig type from `@nuxt/schema`.
|
|
45
|
+
* @template K The key identifying the component (e.g., 'badge').
|
|
46
|
+
* @template U The top-level key in AppConfig ('ui' or 'ui').
|
|
47
|
+
*/
|
|
48
|
+
export type ComponentConfig<T extends Record<string, any>, A extends Record<string, any>, K extends string, U extends 'ui' | 'ui' | 'ui.prose' = 'ui'> = {
|
|
49
|
+
AppConfig: ComponentAppConfig<T, A, K, U>;
|
|
50
|
+
variants: ComponentVariants<T & GetComponentAppConfig<A, U, K>>;
|
|
51
|
+
slots: ComponentSlots<T>;
|
|
52
|
+
};
|
|
53
|
+
export {};
|
|
File without changes
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { VNode } from 'vue';
|
|
2
|
+
import type { AcceptableValue as _AcceptableValue } from 'reka-ui';
|
|
3
|
+
export type DeepPartial<T> = {
|
|
4
|
+
[P in keyof T]?: T[P] extends object ? DeepPartial<T[P]> : T[P] | undefined;
|
|
5
|
+
};
|
|
6
|
+
export type DynamicSlotsKeys<Name extends string | undefined, Suffix extends string | undefined = undefined> = (Name extends string ? Suffix extends string ? Name | `${Name}-${Suffix}` : Name : never);
|
|
7
|
+
export type DynamicSlots<T extends {
|
|
8
|
+
slot?: string;
|
|
9
|
+
}, Suffix extends string | undefined = undefined, ExtraProps extends object = {}> = {
|
|
10
|
+
[K in DynamicSlotsKeys<T['slot'], Suffix>]: (props: {
|
|
11
|
+
item: Extract<T, {
|
|
12
|
+
slot: K extends `${infer Base}-${Suffix}` ? Base : K;
|
|
13
|
+
}>;
|
|
14
|
+
} & ExtraProps) => any;
|
|
15
|
+
};
|
|
16
|
+
export type GetObjectField<MaybeObject, Key extends string> = MaybeObject extends Record<string, any> ? MaybeObject[Key] : never;
|
|
17
|
+
export type AcceptableValue = Exclude<_AcceptableValue, Record<string, any>>;
|
|
18
|
+
export type ArrayOrNested<T> = T[] | T[][];
|
|
19
|
+
export type NestedItem<T> = T extends Array<infer I> ? NestedItem<I> : T;
|
|
20
|
+
type AllKeys<T> = T extends any ? keyof T : never;
|
|
21
|
+
type NonCommonKeys<T extends object> = Exclude<AllKeys<T>, keyof T>;
|
|
22
|
+
type PickTypeOf<T, K extends string | number | symbol> = K extends AllKeys<T> ? T extends {
|
|
23
|
+
[k in K]?: any;
|
|
24
|
+
} ? T[K] : undefined : never;
|
|
25
|
+
export type MergeTypes<T extends object> = {
|
|
26
|
+
[k in keyof T]: PickTypeOf<T, k>;
|
|
27
|
+
} & {
|
|
28
|
+
[k in NonCommonKeys<T>]?: PickTypeOf<T, k>;
|
|
29
|
+
};
|
|
30
|
+
export type GetItemKeys<I> = keyof Extract<NestedItem<I>, object>;
|
|
31
|
+
export type GetItemValue<I, VK extends GetItemKeys<I> | undefined, T extends NestedItem<I> = NestedItem<I>> = T extends object ? VK extends undefined ? T : VK extends keyof T ? T[VK] : never : T;
|
|
32
|
+
export type GetModelValue<T, VK extends GetItemKeys<T> | undefined, M extends boolean> = M extends true ? GetItemValue<T, VK>[] : GetItemValue<T, VK>;
|
|
33
|
+
export type GetModelValueEmits<T, VK extends GetItemKeys<T> | undefined, M extends boolean> = {
|
|
34
|
+
/** Event handler called when the value changes. */
|
|
35
|
+
'update:modelValue': [payload: GetModelValue<T, VK, M>];
|
|
36
|
+
};
|
|
37
|
+
export type StringOrVNode = string | VNode | (() => VNode);
|
|
38
|
+
export type EmitsToProps<T> = {
|
|
39
|
+
[K in keyof T as `on${Capitalize<string & K>}`]: T[K] extends [...args: infer Args] ? (...args: Args) => void : never;
|
|
40
|
+
};
|
|
41
|
+
export * from './tv';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./tv.js";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ContentNavigationItem, ContentCollectionItem } from '@nuxt/content';
|
|
2
|
+
type MapContentNavigationItemOptions = {
|
|
3
|
+
labelAttribute?: string;
|
|
4
|
+
};
|
|
5
|
+
type MappedNavigationItem = Omit<ContentNavigationItem, 'title' | 'path'> & {
|
|
6
|
+
label?: string;
|
|
7
|
+
to?: string;
|
|
8
|
+
};
|
|
9
|
+
export declare function mapContentNavigationItem(item: ContentNavigationItem, options?: MapContentNavigationItemOptions): MappedNavigationItem;
|
|
10
|
+
export declare function mapContentNavigation(navigation: ContentNavigationItem[], options?: MapContentNavigationItemOptions): MappedNavigationItem[];
|
|
11
|
+
export declare function findPageHeadline(navigation?: ContentNavigationItem[], page?: ContentCollectionItem | null): string | undefined;
|
|
12
|
+
export declare function findPageBreadcrumb(navigation?: ContentNavigationItem[], page?: ContentCollectionItem | null): ContentNavigationItem[];
|
|
13
|
+
export {};
|