@eslamdevui/ui 3.3.0 → 3.3.2-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.nuxt/ui/button.ts +42 -42
- package/.nuxt/ui/command-palette.ts +2 -1
- package/.nuxt/ui/file-upload.ts +295 -0
- package/.nuxt/ui/index.ts +2 -0
- package/.nuxt/ui/kbd.ts +167 -3
- package/.nuxt/ui/scroll-to-section.ts +3 -0
- package/.nuxt/ui/table.ts +14 -0
- package/.nuxt/ui/tabs.ts +4 -2
- package/.nuxt/ui/toast.ts +8 -15
- package/.nuxt/ui/tooltip.ts +1 -1
- package/cli/templates.mjs +4 -3
- package/dist/module.d.mts +15 -1
- package/dist/module.json +2 -2
- package/dist/module.mjs +3 -3
- package/dist/runtime/components/Accordion.vue.d.ts +1 -1
- package/dist/runtime/components/Alert.vue.d.ts +2 -2
- package/dist/runtime/components/App.vue.d.ts +1 -1
- package/dist/runtime/components/Avatar.vue.d.ts +1 -1
- package/dist/runtime/components/AvatarGroup.vue.d.ts +1 -1
- package/dist/runtime/components/Badge.vue.d.ts +1 -1
- package/dist/runtime/components/Banner.vue.d.ts +1 -5
- package/dist/runtime/components/BlogPost.vue.d.ts +1 -1
- package/dist/runtime/components/BlogPosts.vue.d.ts +1 -1
- package/dist/runtime/components/Breadcrumb.vue.d.ts +1 -1
- package/dist/runtime/components/Button.vue +6 -6
- package/dist/runtime/components/Button.vue.d.ts +1 -5
- package/dist/runtime/components/ButtonGroup.vue.d.ts +1 -1
- package/dist/runtime/components/Calendar.vue.d.ts +1 -1
- package/dist/runtime/components/Card.vue.d.ts +1 -1
- package/dist/runtime/components/Carousel.vue +18 -14
- package/dist/runtime/components/Carousel.vue.d.ts +1 -1
- package/dist/runtime/components/ChangelogVersion.vue.d.ts +1 -1
- package/dist/runtime/components/ChangelogVersions.vue.d.ts +1 -1
- package/dist/runtime/components/ChatMessage.vue.d.ts +4 -8
- package/dist/runtime/components/ChatMessages.vue.d.ts +1 -1
- package/dist/runtime/components/ChatPalette.vue.d.ts +1 -1
- package/dist/runtime/components/ChatPrompt.vue.d.ts +1 -1
- package/dist/runtime/components/ChatPromptSubmit.vue.d.ts +1 -1
- package/dist/runtime/components/Checkbox.vue.d.ts +1 -1
- package/dist/runtime/components/CheckboxGroup.vue.d.ts +1 -1
- package/dist/runtime/components/Chip.vue.d.ts +2 -2
- package/dist/runtime/components/Collapsible.vue.d.ts +1 -1
- package/dist/runtime/components/ColorPicker.vue +1 -2
- package/dist/runtime/components/ColorPicker.vue.d.ts +1 -1
- package/dist/runtime/components/CommandPalette.vue +4 -0
- package/dist/runtime/components/CommandPalette.vue.d.ts +9 -4
- package/dist/runtime/components/Container.vue.d.ts +1 -1
- package/dist/runtime/components/ContextMenu.vue.d.ts +1 -1
- package/dist/runtime/components/ContextMenuContent.vue.d.ts +1 -1
- package/dist/runtime/components/DashboardGroup.vue.d.ts +1 -1
- package/dist/runtime/components/DashboardNavbar.vue.d.ts +1 -1
- package/dist/runtime/components/DashboardPanel.vue.d.ts +1 -1
- package/dist/runtime/components/DashboardResizeHandle.vue.d.ts +1 -1
- package/dist/runtime/components/DashboardSearchButton.vue.d.ts +1 -1
- package/dist/runtime/components/DashboardSidebar.vue.d.ts +1 -1
- package/dist/runtime/components/DashboardSidebarCollapse.vue.d.ts +1 -1
- package/dist/runtime/components/DashboardSidebarToggle.vue +5 -2
- package/dist/runtime/components/DashboardSidebarToggle.vue.d.ts +1 -1
- package/dist/runtime/components/DashboardToolbar.vue.d.ts +3 -3
- package/dist/runtime/components/Drawer.vue +4 -4
- package/dist/runtime/components/Drawer.vue.d.ts +6 -1
- package/dist/runtime/components/DropdownMenu.vue.d.ts +1 -1
- package/dist/runtime/components/DropdownMenuContent.vue.d.ts +8 -5
- package/dist/runtime/components/Error.vue.d.ts +1 -1
- package/dist/runtime/components/FileUpload.vue +242 -0
- package/dist/runtime/components/FileUpload.vue.d.ts +167 -0
- package/dist/runtime/components/Footer.vue.d.ts +1 -1
- package/dist/runtime/components/FooterColumns.vue.d.ts +1 -1
- package/dist/runtime/components/Form.vue.d.ts +5 -4
- package/dist/runtime/components/FormField.vue +2 -2
- package/dist/runtime/components/FormField.vue.d.ts +4 -4
- package/dist/runtime/components/Header.vue.d.ts +1 -1
- package/dist/runtime/components/Icon.vue.d.ts +1 -1
- package/dist/runtime/components/Input.vue +10 -7
- package/dist/runtime/components/Input.vue.d.ts +9 -9
- package/dist/runtime/components/InputMenu.vue +17 -10
- package/dist/runtime/components/InputMenu.vue.d.ts +17 -14
- package/dist/runtime/components/InputNumber.vue.d.ts +4 -4
- package/dist/runtime/components/InputTags.vue +2 -0
- package/dist/runtime/components/InputTags.vue.d.ts +5 -3
- package/dist/runtime/components/Kbd.vue +2 -1
- package/dist/runtime/components/Kbd.vue.d.ts +5 -1
- package/dist/runtime/components/Link.vue +6 -5
- package/dist/runtime/components/Link.vue.d.ts +1 -3
- package/dist/runtime/components/LinkBase.vue.d.ts +1 -1
- package/dist/runtime/components/Main.vue.d.ts +1 -1
- package/dist/runtime/components/Modal.vue.d.ts +2 -2
- package/dist/runtime/components/NavigationMenu.vue +3 -2
- package/dist/runtime/components/NavigationMenu.vue.d.ts +1 -1
- package/dist/runtime/components/OverlayProvider.vue.d.ts +1 -1
- package/dist/runtime/components/Page.vue.d.ts +1 -1
- package/dist/runtime/components/PageAccordion.vue.d.ts +1 -1
- package/dist/runtime/components/PageAnchors.vue.d.ts +1 -1
- package/dist/runtime/components/PageAside.vue.d.ts +1 -1
- package/dist/runtime/components/PageBody.vue.d.ts +1 -1
- package/dist/runtime/components/PageCTA.vue.d.ts +1 -1
- package/dist/runtime/components/PageCard.vue.d.ts +1 -1
- package/dist/runtime/components/PageColumns.vue.d.ts +1 -1
- package/dist/runtime/components/PageFeature.vue.d.ts +1 -1
- package/dist/runtime/components/PageGrid.vue.d.ts +1 -1
- package/dist/runtime/components/PageHeader.vue.d.ts +1 -1
- package/dist/runtime/components/PageHero.vue.d.ts +1 -1
- package/dist/runtime/components/PageLinks.vue.d.ts +1 -1
- package/dist/runtime/components/PageList.vue.d.ts +1 -1
- package/dist/runtime/components/PageLogos.vue.d.ts +1 -1
- package/dist/runtime/components/PageMarquee.vue.d.ts +1 -1
- package/dist/runtime/components/PageSection.vue.d.ts +1 -1
- package/dist/runtime/components/Pagination.vue.d.ts +1 -1
- package/dist/runtime/components/PinInput.vue.d.ts +1 -1
- package/dist/runtime/components/Popover.vue +2 -1
- package/dist/runtime/components/Popover.vue.d.ts +8 -2
- package/dist/runtime/components/PricingPlan.vue.d.ts +1 -1
- package/dist/runtime/components/PricingPlans.vue.d.ts +1 -1
- package/dist/runtime/components/PricingTable.vue +90 -33
- package/dist/runtime/components/PricingTable.vue.d.ts +1 -1
- package/dist/runtime/components/Progress.vue.d.ts +1 -1
- package/dist/runtime/components/RadioGroup.vue +1 -1
- package/dist/runtime/components/RadioGroup.vue.d.ts +5 -4
- package/dist/runtime/components/ScrollToSection.vue +62 -0
- package/dist/runtime/components/ScrollToSection.vue.d.ts +36 -0
- package/dist/runtime/components/Select.vue.d.ts +1 -1
- package/dist/runtime/components/SelectMenu.vue +9 -6
- package/dist/runtime/components/SelectMenu.vue.d.ts +4 -4
- package/dist/runtime/components/Separator.vue.d.ts +1 -1
- package/dist/runtime/components/Skeleton.vue.d.ts +1 -1
- package/dist/runtime/components/Slideover.vue.d.ts +2 -2
- package/dist/runtime/components/Slider.vue.d.ts +5 -5
- package/dist/runtime/components/Stepper.vue.d.ts +1 -1
- package/dist/runtime/components/Switch.vue.d.ts +1 -1
- package/dist/runtime/components/Table.vue +83 -8
- package/dist/runtime/components/Table.vue.d.ts +20 -4
- package/dist/runtime/components/Tabs.vue +26 -5
- package/dist/runtime/components/Tabs.vue.d.ts +8 -3
- package/dist/runtime/components/Textarea.vue +10 -7
- package/dist/runtime/components/Textarea.vue.d.ts +10 -9
- package/dist/runtime/components/Timeline.vue.d.ts +1 -1
- package/dist/runtime/components/Toast.vue +12 -4
- package/dist/runtime/components/Toast.vue.d.ts +14 -13
- package/dist/runtime/components/Toaster.vue.d.ts +1 -1
- package/dist/runtime/components/Tooltip.vue +2 -1
- package/dist/runtime/components/Tooltip.vue.d.ts +8 -2
- package/dist/runtime/components/Tree.vue +3 -2
- package/dist/runtime/components/Tree.vue.d.ts +1 -1
- package/dist/runtime/components/User.vue.d.ts +1 -1
- package/dist/runtime/components/color-mode/ColorModeAvatar.vue.d.ts +1 -1
- package/dist/runtime/components/color-mode/ColorModeButton.vue.d.ts +1 -1
- package/dist/runtime/components/color-mode/ColorModeImage.vue.d.ts +1 -1
- package/dist/runtime/components/color-mode/ColorModeSelect.vue +1 -1
- package/dist/runtime/components/color-mode/ColorModeSelect.vue.d.ts +1 -1
- package/dist/runtime/components/color-mode/ColorModeSwitch.vue.d.ts +1 -1
- package/dist/runtime/components/content/ContentNavigation.vue.d.ts +1 -1
- package/dist/runtime/components/content/ContentSearch.vue +17 -7
- package/dist/runtime/components/content/ContentSearchButton.vue.d.ts +1 -1
- package/dist/runtime/components/content/ContentSurround.vue +10 -4
- package/dist/runtime/components/content/ContentSurround.vue.d.ts +1 -1
- package/dist/runtime/components/content/ContentToc.vue.d.ts +1 -1
- package/dist/runtime/components/locale/LocaleSelect.vue.d.ts +1 -1
- package/dist/runtime/components/prose/A.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Accordion.vue.d.ts +1 -1
- package/dist/runtime/components/prose/AccordionItem.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Badge.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Blockquote.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Callout.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Card.vue.d.ts +1 -1
- package/dist/runtime/components/prose/CardGroup.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Code.vue.d.ts +1 -1
- package/dist/runtime/components/prose/CodeCollapse.vue.d.ts +1 -1
- package/dist/runtime/components/prose/CodeGroup.vue.d.ts +1 -1
- package/dist/runtime/components/prose/CodeIcon.vue.d.ts +1 -1
- package/dist/runtime/components/prose/CodePreview.vue.d.ts +1 -1
- package/dist/runtime/components/prose/CodeTree.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Collapsible.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Em.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Field.vue.d.ts +1 -1
- package/dist/runtime/components/prose/FieldGroup.vue.d.ts +1 -1
- package/dist/runtime/components/prose/H1.vue.d.ts +1 -1
- package/dist/runtime/components/prose/H2.vue.d.ts +1 -1
- package/dist/runtime/components/prose/H3.vue.d.ts +1 -1
- package/dist/runtime/components/prose/H4.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Hr.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Icon.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Img.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Kbd.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Li.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Ol.vue.d.ts +1 -1
- package/dist/runtime/components/prose/P.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Pre.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Script.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Steps.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Strong.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Table.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Tabs.vue.d.ts +1 -1
- package/dist/runtime/components/prose/TabsItem.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Tbody.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Td.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Th.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Thead.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Tr.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Ul.vue.d.ts +1 -1
- package/dist/runtime/components/prose/callout/Caution.vue.d.ts +3 -3
- package/dist/runtime/components/prose/callout/Note.vue.d.ts +3 -3
- package/dist/runtime/components/prose/callout/Tip.vue.d.ts +3 -3
- package/dist/runtime/components/prose/callout/Warning.vue.d.ts +3 -3
- package/dist/runtime/composables/defineShortcuts.js +5 -3
- package/dist/runtime/composables/useBreakpoint.js +8 -8
- package/dist/runtime/composables/useFileUpload.d.ts +19 -0
- package/dist/runtime/composables/useFileUpload.js +63 -0
- package/dist/runtime/composables/useFormField.d.ts +1 -4
- package/dist/runtime/composables/useFormField.js +5 -2
- package/dist/runtime/composables/useKbd.d.ts +1 -1
- package/dist/runtime/composables/useLocale.js +2 -2
- package/dist/runtime/composables/useOverlay.d.ts +28 -1
- package/dist/runtime/composables/useOverlay.js +4 -4
- package/dist/runtime/inertia/components/Link.vue.d.ts +1 -1
- package/dist/runtime/inertia/components/LinkBase.vue.d.ts +1 -1
- package/dist/runtime/inertia/stubs.d.ts +1 -0
- package/dist/runtime/inertia/stubs.js +4 -2
- package/dist/runtime/locale/ar.js +2 -1
- package/dist/runtime/locale/az.js +1 -0
- package/dist/runtime/locale/bg.js +1 -0
- package/dist/runtime/locale/bn.js +1 -0
- package/dist/runtime/locale/ca.js +1 -0
- package/dist/runtime/locale/ckb.js +2 -1
- package/dist/runtime/locale/cs.js +1 -0
- package/dist/runtime/locale/da.js +1 -0
- package/dist/runtime/locale/de.js +1 -0
- package/dist/runtime/locale/el.js +1 -0
- package/dist/runtime/locale/en.js +1 -0
- package/dist/runtime/locale/es.js +1 -0
- package/dist/runtime/locale/et.js +1 -0
- package/dist/runtime/locale/fa_ir.js +1 -0
- package/dist/runtime/locale/fi.js +1 -0
- package/dist/runtime/locale/fr.js +1 -0
- package/dist/runtime/locale/he.js +1 -0
- package/dist/runtime/locale/hi.js +2 -1
- package/dist/runtime/locale/hu.js +1 -0
- package/dist/runtime/locale/hy.js +1 -0
- package/dist/runtime/locale/id.js +1 -0
- package/dist/runtime/locale/it.js +1 -0
- package/dist/runtime/locale/ja.js +1 -0
- package/dist/runtime/locale/kk.js +1 -0
- package/dist/runtime/locale/km.js +2 -1
- package/dist/runtime/locale/ko.js +1 -0
- package/dist/runtime/locale/ky.js +1 -0
- package/dist/runtime/locale/lb.js +1 -0
- package/dist/runtime/locale/lt.js +1 -0
- package/dist/runtime/locale/mn.js +1 -0
- package/dist/runtime/locale/ms.js +1 -0
- package/dist/runtime/locale/nb_no.js +1 -0
- package/dist/runtime/locale/nl.js +1 -0
- package/dist/runtime/locale/pl.js +1 -0
- package/dist/runtime/locale/pt.js +1 -0
- package/dist/runtime/locale/pt_br.js +1 -0
- package/dist/runtime/locale/ro.js +1 -0
- package/dist/runtime/locale/ru.js +1 -0
- package/dist/runtime/locale/sk.js +1 -0
- package/dist/runtime/locale/sl.js +1 -0
- package/dist/runtime/locale/sv.js +1 -0
- package/dist/runtime/locale/th.js +1 -0
- package/dist/runtime/locale/tj.js +1 -0
- package/dist/runtime/locale/tr.js +1 -0
- package/dist/runtime/locale/ug_cn.js +1 -0
- package/dist/runtime/locale/uk.js +1 -0
- package/dist/runtime/locale/ur.js +1 -0
- package/dist/runtime/locale/uz.js +1 -0
- package/dist/runtime/locale/vi.js +1 -0
- package/dist/runtime/locale/zh_cn.js +1 -0
- package/dist/runtime/locale/zh_tw.js +1 -0
- package/dist/runtime/types/index.d.ts +2 -0
- package/dist/runtime/types/index.js +2 -0
- package/dist/runtime/types/locale.d.ts +1 -0
- package/dist/runtime/utils/content.d.ts +18 -6
- package/dist/runtime/utils/content.js +51 -25
- package/dist/runtime/utils/index.d.ts +1 -0
- package/dist/runtime/utils/index.js +9 -0
- package/dist/runtime/vue/components/Icon.vue.d.ts +1 -1
- package/dist/runtime/vue/components/Link.vue.d.ts +1 -1
- package/dist/runtime/vue/components/color-mode/ColorModeButton.vue.d.ts +1 -1
- package/dist/runtime/vue/components/color-mode/ColorModeSelect.vue +1 -1
- package/dist/runtime/vue/components/color-mode/ColorModeSelect.vue.d.ts +1 -1
- package/dist/runtime/vue/components/color-mode/ColorModeSwitch.vue.d.ts +1 -1
- package/dist/runtime/vue/stubs.d.ts +1 -0
- package/dist/runtime/vue/stubs.js +3 -1
- package/dist/shared/{ui.i6pGHFq6.mjs → ui.CgUuvRXi.mjs} +282 -29
- package/dist/unplugin.d.mts +2 -1
- package/dist/unplugin.mjs +6 -3
- package/dist/vite.mjs +1 -1
- package/package.json +57 -41
package/.nuxt/ui/kbd.ts
CHANGED
|
@@ -1,6 +1,17 @@
|
|
|
1
|
+
const color = [
|
|
2
|
+
"primary",
|
|
3
|
+
"secondary",
|
|
4
|
+
"success",
|
|
5
|
+
"info",
|
|
6
|
+
"warning",
|
|
7
|
+
"error",
|
|
8
|
+
"neutral"
|
|
9
|
+
] as const
|
|
10
|
+
|
|
1
11
|
const variant = [
|
|
2
12
|
"solid",
|
|
3
13
|
"outline",
|
|
14
|
+
"soft",
|
|
4
15
|
"subtle"
|
|
5
16
|
] as const
|
|
6
17
|
|
|
@@ -13,10 +24,20 @@ const size = [
|
|
|
13
24
|
export default {
|
|
14
25
|
"base": "inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans",
|
|
15
26
|
"variants": {
|
|
27
|
+
"color": {
|
|
28
|
+
"primary": "",
|
|
29
|
+
"secondary": "",
|
|
30
|
+
"success": "",
|
|
31
|
+
"info": "",
|
|
32
|
+
"warning": "",
|
|
33
|
+
"error": "",
|
|
34
|
+
"neutral": ""
|
|
35
|
+
},
|
|
16
36
|
"variant": {
|
|
17
|
-
"solid": "
|
|
18
|
-
"outline": "
|
|
19
|
-
"
|
|
37
|
+
"solid": "",
|
|
38
|
+
"outline": "",
|
|
39
|
+
"soft": "",
|
|
40
|
+
"subtle": ""
|
|
20
41
|
},
|
|
21
42
|
"size": {
|
|
22
43
|
"sm": "h-4 min-w-[16px] text-[10px]",
|
|
@@ -24,8 +45,151 @@ export default {
|
|
|
24
45
|
"lg": "h-6 min-w-[24px] text-[12px]"
|
|
25
46
|
}
|
|
26
47
|
},
|
|
48
|
+
"compoundVariants": [
|
|
49
|
+
{
|
|
50
|
+
"color": "primary" as typeof color[number],
|
|
51
|
+
"variant": "solid" as typeof variant[number],
|
|
52
|
+
"class": "text-inverted bg-primary"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"color": "secondary" as typeof color[number],
|
|
56
|
+
"variant": "solid" as typeof variant[number],
|
|
57
|
+
"class": "text-inverted bg-secondary"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"color": "success" as typeof color[number],
|
|
61
|
+
"variant": "solid" as typeof variant[number],
|
|
62
|
+
"class": "text-inverted bg-success"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"color": "info" as typeof color[number],
|
|
66
|
+
"variant": "solid" as typeof variant[number],
|
|
67
|
+
"class": "text-inverted bg-info"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"color": "warning" as typeof color[number],
|
|
71
|
+
"variant": "solid" as typeof variant[number],
|
|
72
|
+
"class": "text-inverted bg-warning"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"color": "error" as typeof color[number],
|
|
76
|
+
"variant": "solid" as typeof variant[number],
|
|
77
|
+
"class": "text-inverted bg-error"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"color": "primary" as typeof color[number],
|
|
81
|
+
"variant": "outline" as typeof variant[number],
|
|
82
|
+
"class": "ring ring-inset ring-primary/50 text-primary"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"color": "secondary" as typeof color[number],
|
|
86
|
+
"variant": "outline" as typeof variant[number],
|
|
87
|
+
"class": "ring ring-inset ring-secondary/50 text-secondary"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"color": "success" as typeof color[number],
|
|
91
|
+
"variant": "outline" as typeof variant[number],
|
|
92
|
+
"class": "ring ring-inset ring-success/50 text-success"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"color": "info" as typeof color[number],
|
|
96
|
+
"variant": "outline" as typeof variant[number],
|
|
97
|
+
"class": "ring ring-inset ring-info/50 text-info"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"color": "warning" as typeof color[number],
|
|
101
|
+
"variant": "outline" as typeof variant[number],
|
|
102
|
+
"class": "ring ring-inset ring-warning/50 text-warning"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"color": "error" as typeof color[number],
|
|
106
|
+
"variant": "outline" as typeof variant[number],
|
|
107
|
+
"class": "ring ring-inset ring-error/50 text-error"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"color": "primary" as typeof color[number],
|
|
111
|
+
"variant": "soft" as typeof variant[number],
|
|
112
|
+
"class": "text-primary bg-primary/10"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"color": "secondary" as typeof color[number],
|
|
116
|
+
"variant": "soft" as typeof variant[number],
|
|
117
|
+
"class": "text-secondary bg-secondary/10"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"color": "success" as typeof color[number],
|
|
121
|
+
"variant": "soft" as typeof variant[number],
|
|
122
|
+
"class": "text-success bg-success/10"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"color": "info" as typeof color[number],
|
|
126
|
+
"variant": "soft" as typeof variant[number],
|
|
127
|
+
"class": "text-info bg-info/10"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"color": "warning" as typeof color[number],
|
|
131
|
+
"variant": "soft" as typeof variant[number],
|
|
132
|
+
"class": "text-warning bg-warning/10"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"color": "error" as typeof color[number],
|
|
136
|
+
"variant": "soft" as typeof variant[number],
|
|
137
|
+
"class": "text-error bg-error/10"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"color": "primary" as typeof color[number],
|
|
141
|
+
"variant": "subtle" as typeof variant[number],
|
|
142
|
+
"class": "text-primary ring ring-inset ring-primary/25 bg-primary/10"
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"color": "secondary" as typeof color[number],
|
|
146
|
+
"variant": "subtle" as typeof variant[number],
|
|
147
|
+
"class": "text-secondary ring ring-inset ring-secondary/25 bg-secondary/10"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"color": "success" as typeof color[number],
|
|
151
|
+
"variant": "subtle" as typeof variant[number],
|
|
152
|
+
"class": "text-success ring ring-inset ring-success/25 bg-success/10"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"color": "info" as typeof color[number],
|
|
156
|
+
"variant": "subtle" as typeof variant[number],
|
|
157
|
+
"class": "text-info ring ring-inset ring-info/25 bg-info/10"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"color": "warning" as typeof color[number],
|
|
161
|
+
"variant": "subtle" as typeof variant[number],
|
|
162
|
+
"class": "text-warning ring ring-inset ring-warning/25 bg-warning/10"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"color": "error" as typeof color[number],
|
|
166
|
+
"variant": "subtle" as typeof variant[number],
|
|
167
|
+
"class": "text-error ring ring-inset ring-error/25 bg-error/10"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"color": "neutral" as typeof color[number],
|
|
171
|
+
"variant": "solid" as typeof variant[number],
|
|
172
|
+
"class": "text-inverted bg-inverted"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"color": "neutral" as typeof color[number],
|
|
176
|
+
"variant": "outline" as typeof variant[number],
|
|
177
|
+
"class": "ring ring-inset ring-accented text-default bg-default"
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"color": "neutral" as typeof color[number],
|
|
181
|
+
"variant": "soft" as typeof variant[number],
|
|
182
|
+
"class": "text-default bg-elevated"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"color": "neutral" as typeof color[number],
|
|
186
|
+
"variant": "subtle" as typeof variant[number],
|
|
187
|
+
"class": "ring ring-inset ring-accented text-default bg-elevated"
|
|
188
|
+
}
|
|
189
|
+
],
|
|
27
190
|
"defaultVariants": {
|
|
28
191
|
"variant": "outline" as typeof variant[number],
|
|
192
|
+
"color": "neutral" as typeof color[number],
|
|
29
193
|
"size": "md" as typeof size[number]
|
|
30
194
|
}
|
|
31
195
|
}
|
package/.nuxt/ui/table.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
const sticky = [
|
|
2
|
+
"true",
|
|
3
|
+
"header",
|
|
4
|
+
"footer"
|
|
5
|
+
] as const
|
|
6
|
+
|
|
1
7
|
const loadingAnimation = [
|
|
2
8
|
"carousel",
|
|
3
9
|
"carousel-inverse",
|
|
@@ -22,6 +28,7 @@ export default {
|
|
|
22
28
|
"caption": "sr-only",
|
|
23
29
|
"thead": "relative",
|
|
24
30
|
"tbody": "divide-y divide-default [&>tr]:data-[selectable=true]:hover:bg-elevated/50 [&>tr]:data-[selectable=true]:focus-visible:outline-primary",
|
|
31
|
+
"tfoot": "relative",
|
|
25
32
|
"tr": "data-[selected=true]:bg-elevated/50",
|
|
26
33
|
"th": "px-4 py-3.5 text-sm text-highlighted text-left rtl:text-right font-semibold [&:has([role=checkbox])]:pe-0",
|
|
27
34
|
"td": "p-4 text-sm text-muted whitespace-nowrap [&:has([role=checkbox])]:pe-0",
|
|
@@ -38,7 +45,14 @@ export default {
|
|
|
38
45
|
},
|
|
39
46
|
"sticky": {
|
|
40
47
|
"true": {
|
|
48
|
+
"thead": "sticky top-0 inset-x-0 bg-default/75 z-[1] backdrop-blur",
|
|
49
|
+
"tfoot": "sticky bottom-0 inset-x-0 bg-default/75 z-[1] backdrop-blur"
|
|
50
|
+
},
|
|
51
|
+
"header": {
|
|
41
52
|
"thead": "sticky top-0 inset-x-0 bg-default/75 z-[1] backdrop-blur"
|
|
53
|
+
},
|
|
54
|
+
"footer": {
|
|
55
|
+
"tfoot": "sticky bottom-0 inset-x-0 bg-default/75 z-[1] backdrop-blur"
|
|
42
56
|
}
|
|
43
57
|
},
|
|
44
58
|
"loading": {
|
package/.nuxt/ui/tabs.ts
CHANGED
|
@@ -35,11 +35,13 @@ export default {
|
|
|
35
35
|
"group relative inline-flex items-center min-w-0 data-[state=inactive]:text-muted hover:data-[state=inactive]:not-disabled:text-default font-medium rounded-md disabled:cursor-not-allowed disabled:opacity-75",
|
|
36
36
|
"transition-colors"
|
|
37
37
|
],
|
|
38
|
-
"content": "focus:outline-none w-full",
|
|
39
38
|
"leadingIcon": "shrink-0",
|
|
40
39
|
"leadingAvatar": "shrink-0",
|
|
41
40
|
"leadingAvatarSize": "",
|
|
42
|
-
"label": "truncate"
|
|
41
|
+
"label": "truncate",
|
|
42
|
+
"trailingBadge": "shrink-0",
|
|
43
|
+
"trailingBadgeSize": "sm",
|
|
44
|
+
"content": "focus:outline-none w-full"
|
|
43
45
|
},
|
|
44
46
|
"variants": {
|
|
45
47
|
"color": {
|
package/.nuxt/ui/toast.ts
CHANGED
|
@@ -23,45 +23,38 @@ export default {
|
|
|
23
23
|
"avatar": "shrink-0",
|
|
24
24
|
"avatarSize": "2xl",
|
|
25
25
|
"actions": "flex gap-1.5 shrink-0",
|
|
26
|
-
"progress": "absolute inset-x-0 bottom-0
|
|
26
|
+
"progress": "absolute inset-x-0 bottom-0",
|
|
27
27
|
"close": "p-0"
|
|
28
28
|
},
|
|
29
29
|
"variants": {
|
|
30
30
|
"color": {
|
|
31
31
|
"primary": {
|
|
32
32
|
"root": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-primary",
|
|
33
|
-
"icon": "text-primary"
|
|
34
|
-
"progress": "bg-primary"
|
|
33
|
+
"icon": "text-primary"
|
|
35
34
|
},
|
|
36
35
|
"secondary": {
|
|
37
36
|
"root": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-secondary",
|
|
38
|
-
"icon": "text-secondary"
|
|
39
|
-
"progress": "bg-secondary"
|
|
37
|
+
"icon": "text-secondary"
|
|
40
38
|
},
|
|
41
39
|
"success": {
|
|
42
40
|
"root": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-success",
|
|
43
|
-
"icon": "text-success"
|
|
44
|
-
"progress": "bg-success"
|
|
41
|
+
"icon": "text-success"
|
|
45
42
|
},
|
|
46
43
|
"info": {
|
|
47
44
|
"root": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-info",
|
|
48
|
-
"icon": "text-info"
|
|
49
|
-
"progress": "bg-info"
|
|
45
|
+
"icon": "text-info"
|
|
50
46
|
},
|
|
51
47
|
"warning": {
|
|
52
48
|
"root": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-warning",
|
|
53
|
-
"icon": "text-warning"
|
|
54
|
-
"progress": "bg-warning"
|
|
49
|
+
"icon": "text-warning"
|
|
55
50
|
},
|
|
56
51
|
"error": {
|
|
57
52
|
"root": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-error",
|
|
58
|
-
"icon": "text-error"
|
|
59
|
-
"progress": "bg-error"
|
|
53
|
+
"icon": "text-error"
|
|
60
54
|
},
|
|
61
55
|
"neutral": {
|
|
62
56
|
"root": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-inverted",
|
|
63
|
-
"icon": "text-highlighted"
|
|
64
|
-
"progress": "bg-inverted"
|
|
57
|
+
"icon": "text-highlighted"
|
|
65
58
|
}
|
|
66
59
|
},
|
|
67
60
|
"orientation": {
|
package/.nuxt/ui/tooltip.ts
CHANGED
|
@@ -3,7 +3,7 @@ export default {
|
|
|
3
3
|
"content": "flex items-center gap-1 bg-default text-highlighted shadow-sm rounded-sm ring ring-default h-6 px-2.5 py-1 text-xs select-none data-[state=delayed-open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in] origin-(--reka-tooltip-content-transform-origin) pointer-events-auto",
|
|
4
4
|
"arrow": "fill-default",
|
|
5
5
|
"text": "truncate",
|
|
6
|
-
"kbds": "hidden lg:inline-flex items-center shrink-0 gap-0.5 before:content-['·'] before:me-0.5",
|
|
6
|
+
"kbds": "hidden lg:inline-flex items-center shrink-0 gap-0.5 not-first-of-type:before:content-['·'] not-first-of-type:before:me-0.5",
|
|
7
7
|
"kbdsSize": "sm"
|
|
8
8
|
}
|
|
9
9
|
}
|
package/cli/templates.mjs
CHANGED
|
@@ -39,7 +39,7 @@ ${pro ? `import type { ComponentConfig } from '@eslamdevui/ui'` : ''}
|
|
|
39
39
|
import theme from '#build/${path}/${prose ? 'prose/' : ''}${content ? 'content/' : ''}${kebabName}'
|
|
40
40
|
${!pro ? `import type { ComponentConfig } from '../types/utils'` : ''}
|
|
41
41
|
|
|
42
|
-
type ${upperName} = ComponentConfig<typeof theme, AppConfig, ${
|
|
42
|
+
type ${upperName} = ComponentConfig<typeof theme, AppConfig, '${camelName}'${pro ? `, '${key}'` : ''}>
|
|
43
43
|
|
|
44
44
|
export interface ${upperName}Props {
|
|
45
45
|
/**
|
|
@@ -84,7 +84,7 @@ ${pro ? `import type { ComponentConfig } from '@eslamdevui/ui'` : ''}
|
|
|
84
84
|
import theme from '#build/${path}/${prose ? 'prose/' : ''}${content ? 'content/' : ''}${kebabName}'
|
|
85
85
|
${!pro ? `import type { ComponentConfig } from '../types/utils'` : ''}
|
|
86
86
|
|
|
87
|
-
type ${upperName} = ComponentConfig<typeof theme, AppConfig, ${
|
|
87
|
+
type ${upperName} = ComponentConfig<typeof theme, AppConfig, '${camelName}'${pro ? `, '${key}'` : ''}>
|
|
88
88
|
|
|
89
89
|
export interface ${upperName}Props extends Pick<${upperName}RootProps> {
|
|
90
90
|
class?: any
|
|
@@ -153,7 +153,8 @@ const test = ({ name, prose, content }) => {
|
|
|
153
153
|
? undefined
|
|
154
154
|
: `
|
|
155
155
|
import { describe, it, expect } from 'vitest'
|
|
156
|
-
import ${upperName}
|
|
156
|
+
import ${upperName} from '../../${content ? '../' : ''}src/runtime/components/${content ? 'content/' : ''}${upperName}.vue'
|
|
157
|
+
import type { ${upperName}Props, ${upperName}Slots } from '../../${content ? '../' : ''}src/runtime/components/${content ? 'content/' : ''}${upperName}.vue'
|
|
157
158
|
import ComponentRender from '../${content ? '../' : ''}component-render'
|
|
158
159
|
|
|
159
160
|
describe('${upperName}', () => {
|
package/dist/module.d.mts
CHANGED
|
@@ -2,6 +2,8 @@ import * as _nuxt_schema from '@nuxt/schema';
|
|
|
2
2
|
import { HookResult } from '@nuxt/schema';
|
|
3
3
|
export * from '../dist/runtime/types/index.js';
|
|
4
4
|
|
|
5
|
+
type Color = 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'error' | (string & {});
|
|
6
|
+
type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | (string & {});
|
|
5
7
|
interface ModuleOptions {
|
|
6
8
|
/**
|
|
7
9
|
* Prefix for components
|
|
@@ -31,13 +33,25 @@ interface ModuleOptions {
|
|
|
31
33
|
* @defaultValue `['primary', 'secondary', 'success', 'info', 'warning', 'error']`
|
|
32
34
|
* @link https://ui.nuxt.com/getting-started/installation/nuxt#themecolors
|
|
33
35
|
*/
|
|
34
|
-
colors?:
|
|
36
|
+
colors?: Color[];
|
|
35
37
|
/**
|
|
36
38
|
* Enable or disable transitions on components
|
|
37
39
|
* @defaultValue `true`
|
|
38
40
|
* @link https://ui.nuxt.com/getting-started/installation/nuxt#themetransitions
|
|
39
41
|
*/
|
|
40
42
|
transitions?: boolean;
|
|
43
|
+
defaultVariants?: {
|
|
44
|
+
/**
|
|
45
|
+
* The default color variant to use for components
|
|
46
|
+
* @defaultValue `'primary'`
|
|
47
|
+
*/
|
|
48
|
+
color?: Color;
|
|
49
|
+
/**
|
|
50
|
+
* The default size variant to use for components
|
|
51
|
+
* @defaultValue `'md'`
|
|
52
|
+
*/
|
|
53
|
+
size?: Size;
|
|
54
|
+
};
|
|
41
55
|
};
|
|
42
56
|
/**
|
|
43
57
|
* Force the import of prose components even if @nuxtjs/mdc or @nuxt/content is not installed
|
package/dist/module.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslamdevui/ui",
|
|
3
|
-
"version": "3.3.0",
|
|
3
|
+
"version": "3.3.2-beta.0",
|
|
4
4
|
"docs": "https://ui.nuxt.com/getting-started/installation/nuxt",
|
|
5
5
|
"configKey": "ui",
|
|
6
6
|
"compatibility": {
|
|
@@ -8,6 +8,6 @@
|
|
|
8
8
|
},
|
|
9
9
|
"builder": {
|
|
10
10
|
"@nuxt/module-builder": "1.0.1",
|
|
11
|
-
"unbuild": "3.
|
|
11
|
+
"unbuild": "3.6.0"
|
|
12
12
|
}
|
|
13
13
|
}
|
package/dist/module.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineNuxtModule, createResolver, addVitePlugin, addPlugin, hasNuxtModule, addComponentsDir, addImportsDir, installModule } from '@nuxt/kit';
|
|
2
2
|
import { defu } from 'defu';
|
|
3
|
-
import { d as defaultOptions, r as resolveColors, a as getDefaultUiConfig, b as addTemplates } from './shared/ui.
|
|
3
|
+
import { d as defaultOptions, r as resolveColors, a as getDefaultUiConfig, b as addTemplates } from './shared/ui.CgUuvRXi.mjs';
|
|
4
4
|
import '../dist/runtime/utils/index.js';
|
|
5
5
|
import 'node:url';
|
|
6
6
|
import 'scule';
|
|
@@ -8,7 +8,7 @@ import 'tailwindcss/colors';
|
|
|
8
8
|
import 'knitwork';
|
|
9
9
|
|
|
10
10
|
const name = "@eslamdevui/ui";
|
|
11
|
-
const version = "3.3.0";
|
|
11
|
+
const version = "3.3.2-beta.0";
|
|
12
12
|
|
|
13
13
|
function generateProseComponentMap(components) {
|
|
14
14
|
return components.reduce((map, component) => {
|
|
@@ -76,7 +76,7 @@ const module = defineNuxtModule({
|
|
|
76
76
|
}
|
|
77
77
|
async function registerModule(name2, key, options2) {
|
|
78
78
|
if (!hasNuxtModule(name2)) {
|
|
79
|
-
await installModule(name2, options2);
|
|
79
|
+
await installModule(name2, defu(nuxt.options[key], options2));
|
|
80
80
|
} else {
|
|
81
81
|
nuxt.options[key] = defu(nuxt.options[key], options2);
|
|
82
82
|
}
|
|
@@ -53,7 +53,7 @@ export interface AlertProps {
|
|
|
53
53
|
ui?: Alert['slots'];
|
|
54
54
|
}
|
|
55
55
|
export interface AlertEmits {
|
|
56
|
-
|
|
56
|
+
'update:open': [value: boolean];
|
|
57
57
|
}
|
|
58
58
|
export interface AlertSlots {
|
|
59
59
|
leading(props?: {}): any;
|
|
@@ -66,7 +66,7 @@ export interface AlertSlots {
|
|
|
66
66
|
};
|
|
67
67
|
}): any;
|
|
68
68
|
}
|
|
69
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<AlertProps,
|
|
69
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<AlertProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
70
70
|
"update:open": (value: boolean) => any;
|
|
71
71
|
}, string, import("vue").PublicProps, Readonly<AlertProps> & Readonly<{
|
|
72
72
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
@@ -28,7 +28,7 @@ export interface AvatarProps {
|
|
|
28
28
|
export interface AvatarSlots {
|
|
29
29
|
default(props?: {}): any;
|
|
30
30
|
}
|
|
31
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<AvatarProps,
|
|
31
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<AvatarProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AvatarProps> & Readonly<{}>, {
|
|
32
32
|
as: any;
|
|
33
33
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
34
34
|
default?: (props: {}) => any;
|
|
@@ -22,7 +22,7 @@ export interface AvatarGroupProps {
|
|
|
22
22
|
export interface AvatarGroupSlots {
|
|
23
23
|
default(props?: {}): any;
|
|
24
24
|
}
|
|
25
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<AvatarGroupProps,
|
|
25
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<AvatarGroupProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AvatarGroupProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, AvatarGroupSlots>;
|
|
26
26
|
export default _default;
|
|
27
27
|
type __VLS_WithSlots<T, S> = T & {
|
|
28
28
|
new (): {
|
|
@@ -32,7 +32,7 @@ export interface BadgeSlots {
|
|
|
32
32
|
default(props?: {}): any;
|
|
33
33
|
trailing(props?: {}): any;
|
|
34
34
|
}
|
|
35
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<BadgeProps,
|
|
35
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<BadgeProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<BadgeProps> & Readonly<{}>, {
|
|
36
36
|
as: any;
|
|
37
37
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, BadgeSlots>;
|
|
38
38
|
export default _default;
|
|
@@ -55,11 +55,7 @@ export interface BannerSlots {
|
|
|
55
55
|
ui: any;
|
|
56
56
|
}): any;
|
|
57
57
|
}
|
|
58
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<BannerProps,
|
|
59
|
-
close: (...args: any[]) => void;
|
|
60
|
-
}, string, import("vue").PublicProps, Readonly<BannerProps> & Readonly<{
|
|
61
|
-
onClose?: ((...args: any[]) => any) | undefined;
|
|
62
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, BannerSlots>;
|
|
58
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<BannerProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, BannerSlots>;
|
|
63
59
|
export default _default;
|
|
64
60
|
type __VLS_WithSlots<T, S> = T & {
|
|
65
61
|
new (): {
|
|
@@ -47,7 +47,7 @@ export interface BlogPostSlots {
|
|
|
47
47
|
body(props?: {}): any;
|
|
48
48
|
footer(props?: {}): any;
|
|
49
49
|
}
|
|
50
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<BlogPostProps,
|
|
50
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<BlogPostProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<BlogPostProps> & Readonly<{}>, {
|
|
51
51
|
as: any;
|
|
52
52
|
orientation: BlogPost["variants"]["orientation"];
|
|
53
53
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, BlogPostSlots>;
|
|
@@ -19,7 +19,7 @@ export interface BlogPostsProps {
|
|
|
19
19
|
export interface BlogPostsSlots {
|
|
20
20
|
default(props?: {}): any;
|
|
21
21
|
}
|
|
22
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<BlogPostsProps,
|
|
22
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<BlogPostsProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<BlogPostsProps> & Readonly<{}>, {
|
|
23
23
|
orientation: BlogPosts["variants"]["orientation"];
|
|
24
24
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, BlogPostsSlots>;
|
|
25
25
|
export default _default;
|
|
@@ -10,7 +10,7 @@ import { useAppConfig } from "#imports";
|
|
|
10
10
|
import { useComponentIcons } from "../composables/useComponentIcons";
|
|
11
11
|
import { useButtonGroup } from "../composables/useButtonGroup";
|
|
12
12
|
import { formLoadingInjectionKey } from "../composables/useFormField";
|
|
13
|
-
import { omit } from "../utils";
|
|
13
|
+
import { omit, mergeClasses } from "../utils";
|
|
14
14
|
import { tv } from "../utils/tv";
|
|
15
15
|
import { pickLinkProps } from "../utils/link";
|
|
16
16
|
import UIcon from "./Icon.vue";
|
|
@@ -41,11 +41,11 @@ const props = defineProps({
|
|
|
41
41
|
as: { type: null, required: false },
|
|
42
42
|
type: { type: null, required: false },
|
|
43
43
|
disabled: { type: Boolean, required: false },
|
|
44
|
-
active: { type: Boolean, required: false
|
|
44
|
+
active: { type: Boolean, required: false },
|
|
45
45
|
exact: { type: Boolean, required: false },
|
|
46
46
|
exactQuery: { type: [Boolean, String], required: false },
|
|
47
47
|
exactHash: { type: Boolean, required: false },
|
|
48
|
-
inactiveClass: { type: String, required: false
|
|
48
|
+
inactiveClass: { type: String, required: false },
|
|
49
49
|
to: { type: null, required: false },
|
|
50
50
|
href: { type: null, required: false },
|
|
51
51
|
external: { type: Boolean, required: false },
|
|
@@ -56,7 +56,7 @@ const props = defineProps({
|
|
|
56
56
|
prefetch: { type: Boolean, required: false },
|
|
57
57
|
prefetchOn: { type: [String, Object], required: false },
|
|
58
58
|
noPrefetch: { type: Boolean, required: false },
|
|
59
|
-
activeClass: { type: String, required: false
|
|
59
|
+
activeClass: { type: String, required: false },
|
|
60
60
|
exactActiveClass: { type: String, required: false },
|
|
61
61
|
ariaCurrentValue: { type: String, required: false },
|
|
62
62
|
viewTransition: { type: Boolean, required: false },
|
|
@@ -89,10 +89,10 @@ const ui = computed(() => tv({
|
|
|
89
89
|
variants: {
|
|
90
90
|
active: {
|
|
91
91
|
true: {
|
|
92
|
-
base: props.activeClass
|
|
92
|
+
base: mergeClasses(appConfig.ui?.button?.variants?.active?.true?.base, props.activeClass)
|
|
93
93
|
},
|
|
94
94
|
false: {
|
|
95
|
-
base: props.inactiveClass
|
|
95
|
+
base: mergeClasses(appConfig.ui?.button?.variants?.active?.false?.base, props.inactiveClass)
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
}
|
|
@@ -35,11 +35,7 @@ export interface ButtonSlots {
|
|
|
35
35
|
default(props?: {}): any;
|
|
36
36
|
trailing(props?: {}): any;
|
|
37
37
|
}
|
|
38
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ButtonProps,
|
|
39
|
-
activeClass: string;
|
|
40
|
-
active: boolean;
|
|
41
|
-
inactiveClass: string;
|
|
42
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ButtonSlots>;
|
|
38
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ButtonProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ButtonSlots>;
|
|
43
39
|
export default _default;
|
|
44
40
|
type __VLS_WithSlots<T, S> = T & {
|
|
45
41
|
new (): {
|
|
@@ -23,7 +23,7 @@ export interface ButtonGroupProps {
|
|
|
23
23
|
export interface ButtonGroupSlots {
|
|
24
24
|
default(props?: {}): any;
|
|
25
25
|
}
|
|
26
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ButtonGroupProps,
|
|
26
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ButtonGroupProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ButtonGroupProps> & Readonly<{}>, {
|
|
27
27
|
orientation: ButtonGroup["variants"]["orientation"];
|
|
28
28
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ButtonGroupSlots>;
|
|
29
29
|
export default _default;
|
|
@@ -20,7 +20,7 @@ export interface CardSlots {
|
|
|
20
20
|
default(props?: {}): any;
|
|
21
21
|
footer(props?: {}): any;
|
|
22
22
|
}
|
|
23
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<CardProps,
|
|
23
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<CardProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CardProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, CardSlots>;
|
|
24
24
|
export default _default;
|
|
25
25
|
type __VLS_WithSlots<T, S> = T & {
|
|
26
26
|
new (): {
|