@eslamdevui/ui 3.2.0-beta.2 → 3.2.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/alert.ts +0 -5
- package/.nuxt/ui/badge.ts +0 -5
- package/.nuxt/ui/button-group.ts +0 -13
- package/.nuxt/ui/button.ts +0 -5
- package/.nuxt/ui/carousel.ts +0 -5
- package/.nuxt/ui/content-surround.ts +0 -5
- package/.nuxt/ui/dashboard-navbar.ts +0 -5
- package/.nuxt/ui/dashboard-sidebar-collapse.ts +0 -5
- package/.nuxt/ui/dashboard-sidebar-toggle.ts +0 -5
- package/.nuxt/ui/dashboard-sidebar.ts +0 -10
- package/.nuxt/ui/index.ts +1 -48
- package/.nuxt/ui/input-menu.ts +0 -9
- package/.nuxt/ui/input-number.ts +0 -5
- package/.nuxt/ui/input-tags.ts +0 -9
- package/.nuxt/ui/input.ts +0 -9
- package/.nuxt/ui/select-menu.ts +0 -9
- package/.nuxt/ui/select.ts +0 -9
- package/.nuxt/ui/textarea.ts +0 -9
- package/.nuxt/ui/toast.ts +0 -5
- package/LICENSE.md +9 -9
- package/README.md +147 -147
- package/cli/commands/make/component.mjs +95 -95
- package/cli/commands/make/index.mjs +14 -14
- package/cli/commands/make/locale.mjs +64 -64
- package/cli/index.mjs +15 -15
- package/cli/package.json +13 -13
- package/cli/templates.mjs +236 -236
- package/cli/utils.mjs +31 -31
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/components/Accordion.vue +36 -36
- package/dist/runtime/components/Alert.vue +46 -46
- package/dist/runtime/components/App.vue +10 -10
- package/dist/runtime/components/Avatar.vue +27 -27
- package/dist/runtime/components/AvatarGroup.vue +4 -4
- package/dist/runtime/components/Badge.vue +16 -16
- package/dist/runtime/components/Breadcrumb.vue +32 -32
- package/dist/runtime/components/Button.vue +28 -28
- package/dist/runtime/components/ButtonGroup.vue +3 -3
- package/dist/runtime/components/Calendar.vue +74 -74
- package/dist/runtime/components/Card.vue +13 -13
- package/dist/runtime/components/Carousel.vue +58 -58
- package/dist/runtime/components/ChatMessage.vue +35 -35
- package/dist/runtime/components/ChatMessages.vue +55 -55
- package/dist/runtime/components/ChatPrompt.vue +26 -26
- package/dist/runtime/components/ChatPromptSubmit.vue +10 -10
- package/dist/runtime/components/Checkbox.vue +33 -33
- package/dist/runtime/components/CheckboxGroup.vue +32 -32
- package/dist/runtime/components/Chip.vue +11 -11
- package/dist/runtime/components/Collapsible.vue +9 -9
- package/dist/runtime/components/ColorPicker.vue +30 -30
- package/dist/runtime/components/CommandPalette.vue +117 -117
- package/dist/runtime/components/Container.vue +3 -3
- package/dist/runtime/components/ContextMenu.vue +22 -22
- package/dist/runtime/components/ContextMenuContent.vue +105 -105
- package/dist/runtime/components/DashboardGroup.vue +3 -3
- package/dist/runtime/components/DashboardNavbar.vue +40 -40
- package/dist/runtime/components/DashboardPanel.vue +27 -27
- package/dist/runtime/components/DashboardResizeHandle.vue +7 -7
- package/dist/runtime/components/DashboardSearch.vue +20 -20
- package/dist/runtime/components/DashboardSearchButton.vue +43 -43
- package/dist/runtime/components/DashboardSidebar.vue +74 -74
- package/dist/runtime/components/DashboardSidebarCollapse.vue +7 -7
- package/dist/runtime/components/DashboardSidebarToggle.vue +7 -7
- package/dist/runtime/components/Drawer.vue +55 -55
- package/dist/runtime/components/DropdownMenu.vue +24 -24
- package/dist/runtime/components/DropdownMenuContent.vue +107 -107
- package/dist/runtime/components/Error.vue +22 -22
- package/dist/runtime/components/Form.vue +8 -8
- package/dist/runtime/components/FormField.vue +37 -37
- package/dist/runtime/components/Icon.vue +1 -1
- package/dist/runtime/components/Input.vue +34 -34
- package/dist/runtime/components/InputMenu.vue +163 -163
- package/dist/runtime/components/InputNumber.vue +49 -49
- package/dist/runtime/components/InputTags.vue +55 -55
- package/dist/runtime/components/Kbd.vue +5 -5
- package/dist/runtime/components/Link.vue +14 -14
- package/dist/runtime/components/LinkBase.vue +8 -8
- package/dist/runtime/components/Modal.vue +69 -69
- package/dist/runtime/components/NavigationMenu.vue +166 -166
- package/dist/runtime/components/OverlayProvider.vue +9 -9
- package/dist/runtime/components/Pagination.vue +47 -47
- package/dist/runtime/components/PinInput.vue +20 -20
- package/dist/runtime/components/Popover.vue +17 -17
- package/dist/runtime/components/Progress.vue +19 -19
- package/dist/runtime/components/RadioGroup.vue +43 -43
- package/dist/runtime/components/Select.vue +96 -96
- package/dist/runtime/components/SelectMenu.vue +130 -130
- package/dist/runtime/components/Separator.vue +15 -15
- package/dist/runtime/components/Skeleton.vue +10 -10
- package/dist/runtime/components/Slideover.vue +76 -76
- package/dist/runtime/components/Slider.vue +27 -27
- package/dist/runtime/components/Stepper.vue +51 -51
- package/dist/runtime/components/Switch.vue +33 -33
- package/dist/runtime/components/Table.vue +77 -77
- package/dist/runtime/components/Tabs.vue +37 -37
- package/dist/runtime/components/Textarea.vue +33 -33
- package/dist/runtime/components/Timeline.vue +38 -38
- package/dist/runtime/components/Toast.vue +69 -69
- package/dist/runtime/components/Toaster.vue +28 -28
- package/dist/runtime/components/Tooltip.vue +19 -19
- package/dist/runtime/components/Tree.vue +60 -60
- package/dist/runtime/components/color-mode/ColorModeAvatar.vue +2 -2
- package/dist/runtime/components/color-mode/ColorModeButton.vue +16 -16
- package/dist/runtime/components/color-mode/ColorModeImage.vue +2 -2
- package/dist/runtime/components/color-mode/ColorModeSelect.vue +19 -19
- package/dist/runtime/components/color-mode/ColorModeSwitch.vue +19 -19
- package/dist/runtime/components/content/ContentNavigation.vue +109 -109
- package/dist/runtime/components/content/ContentSearch.vue +25 -25
- package/dist/runtime/components/content/ContentSearchButton.vue +38 -38
- package/dist/runtime/components/content/ContentSearchButton.vue.d.ts +12 -12
- package/dist/runtime/components/content/ContentSurround.vue +29 -29
- package/dist/runtime/components/content/ContentSurround.vue.d.ts +59 -59
- package/dist/runtime/components/content/ContentToc.vue +68 -68
- package/dist/runtime/components/content/ContentToc.vue.d.ts +88 -88
- package/dist/runtime/components/locale/LocaleSelect.vue +20 -20
- package/dist/runtime/components/prose/A.vue +3 -3
- package/dist/runtime/components/prose/Accordion.vue +5 -5
- package/dist/runtime/components/prose/AccordionItem.vue +5 -5
- package/dist/runtime/components/prose/Badge.vue +3 -3
- package/dist/runtime/components/prose/Blockquote.vue +3 -3
- package/dist/runtime/components/prose/Callout.vue +27 -27
- package/dist/runtime/components/prose/Card.vue +43 -43
- package/dist/runtime/components/prose/CardGroup.vue +3 -3
- package/dist/runtime/components/prose/Code.vue +3 -3
- package/dist/runtime/components/prose/CodeCollapse.vue +16 -16
- package/dist/runtime/components/prose/CodeGroup.vue +15 -15
- package/dist/runtime/components/prose/CodeIcon.vue +1 -1
- package/dist/runtime/components/prose/CodePreview.vue +9 -9
- package/dist/runtime/components/prose/CodeTree.vue +61 -61
- package/dist/runtime/components/prose/Collapsible.vue +15 -15
- package/dist/runtime/components/prose/Em.vue +1 -1
- package/dist/runtime/components/prose/Field.vue +23 -23
- package/dist/runtime/components/prose/FieldGroup.vue +3 -3
- package/dist/runtime/components/prose/H1.vue +6 -6
- package/dist/runtime/components/prose/H2.vue +10 -10
- package/dist/runtime/components/prose/H3.vue +10 -10
- package/dist/runtime/components/prose/H4.vue +6 -6
- package/dist/runtime/components/prose/Hr.vue +1 -1
- package/dist/runtime/components/prose/Icon.vue +1 -1
- package/dist/runtime/components/prose/Img.vue +8 -8
- package/dist/runtime/components/prose/Kbd.vue +1 -1
- package/dist/runtime/components/prose/Li.vue +3 -3
- package/dist/runtime/components/prose/Ol.vue +3 -3
- package/dist/runtime/components/prose/P.vue +3 -3
- package/dist/runtime/components/prose/Pre.vue +20 -20
- package/dist/runtime/components/prose/Script.vue +3 -3
- package/dist/runtime/components/prose/Steps.vue +3 -3
- package/dist/runtime/components/prose/Strong.vue +3 -3
- package/dist/runtime/components/prose/Table.vue +5 -5
- package/dist/runtime/components/prose/Tabs.vue +14 -14
- package/dist/runtime/components/prose/TabsItem.vue +5 -5
- package/dist/runtime/components/prose/Tbody.vue +3 -3
- package/dist/runtime/components/prose/Td.vue +3 -3
- package/dist/runtime/components/prose/Th.vue +3 -3
- package/dist/runtime/components/prose/Thead.vue +3 -3
- package/dist/runtime/components/prose/Tr.vue +3 -3
- package/dist/runtime/components/prose/Ul.vue +3 -3
- package/dist/runtime/components/prose/callout/Caution.vue +3 -3
- package/dist/runtime/components/prose/callout/Note.vue +3 -3
- package/dist/runtime/components/prose/callout/Tip.vue +3 -3
- package/dist/runtime/components/prose/callout/Warning.vue +3 -3
- package/dist/runtime/inertia/components/Link.vue +12 -12
- package/dist/runtime/inertia/components/LinkBase.vue +15 -15
- package/dist/runtime/types/app.config.d.ts +6 -6
- package/dist/runtime/vue/components/Icon.vue +1 -1
- package/dist/runtime/vue/components/Link.vue +31 -31
- package/dist/runtime/vue/components/color-mode/ColorModeButton.vue +7 -7
- package/dist/runtime/vue/components/color-mode/ColorModeSelect.vue +7 -7
- package/dist/runtime/vue/components/color-mode/ColorModeSwitch.vue +7 -7
- package/package.json +1 -1
- package/vue-plugin.d.ts +5 -5
- package/.nuxt/ui/content/content-navigation.ts +0 -339
- package/.nuxt/ui/content/content-search-button.ts +0 -6
- package/.nuxt/ui/content/content-search.ts +0 -6
- package/.nuxt/ui/content/content-surround.ts +0 -39
- package/.nuxt/ui/content/content-toc.ts +0 -150
- package/.nuxt/ui/content/index.ts +0 -5
- package/.nuxt/ui/error.ts +0 -9
- package/.nuxt/ui/prose/a.ts +0 -6
- package/.nuxt/ui/prose/accordion-item.ts +0 -3
- package/.nuxt/ui/prose/accordion.ts +0 -6
- package/.nuxt/ui/prose/badge.ts +0 -3
- package/.nuxt/ui/prose/blockquote.ts +0 -3
- package/.nuxt/ui/prose/callout.ts +0 -129
- package/.nuxt/ui/prose/card-group.ts +0 -3
- package/.nuxt/ui/prose/card.ts +0 -119
- package/.nuxt/ui/prose/code-collapse.ts +0 -19
- package/.nuxt/ui/prose/code-group.ts +0 -13
- package/.nuxt/ui/prose/code-icon.ts +0 -66
- package/.nuxt/ui/prose/code-preview.ts +0 -14
- package/.nuxt/ui/prose/code-tree.ts +0 -28
- package/.nuxt/ui/prose/code.ts +0 -27
- package/.nuxt/ui/prose/collapsible.ts +0 -12
- package/.nuxt/ui/prose/em.ts +0 -3
- package/.nuxt/ui/prose/field-group.ts +0 -3
- package/.nuxt/ui/prose/field.ts +0 -11
- package/.nuxt/ui/prose/h1.ts +0 -6
- package/.nuxt/ui/prose/h2.ts +0 -14
- package/.nuxt/ui/prose/h3.ts +0 -14
- package/.nuxt/ui/prose/h4.ts +0 -6
- package/.nuxt/ui/prose/hr.ts +0 -3
- package/.nuxt/ui/prose/icon.ts +0 -3
- package/.nuxt/ui/prose/img.ts +0 -3
- package/.nuxt/ui/prose/index.ts +0 -41
- package/.nuxt/ui/prose/kbd.ts +0 -3
- package/.nuxt/ui/prose/li.ts +0 -3
- package/.nuxt/ui/prose/ol.ts +0 -3
- package/.nuxt/ui/prose/p.ts +0 -3
- package/.nuxt/ui/prose/pre.ts +0 -17
- package/.nuxt/ui/prose/steps.ts +0 -19
- package/.nuxt/ui/prose/strong.ts +0 -3
- package/.nuxt/ui/prose/table.ts +0 -6
- package/.nuxt/ui/prose/tabs-item.ts +0 -3
- package/.nuxt/ui/prose/tabs.ts +0 -5
- package/.nuxt/ui/prose/tbody.ts +0 -3
- package/.nuxt/ui/prose/td.ts +0 -3
- package/.nuxt/ui/prose/th.ts +0 -3
- package/.nuxt/ui/prose/thead.ts +0 -3
- package/.nuxt/ui/prose/tr.ts +0 -3
- package/.nuxt/ui/prose/ul.ts +0 -3
|
@@ -15,7 +15,7 @@ const ui = computed(() => tv({ extend: tv(theme), ...appConfig.ui?.prose?.thead
|
|
|
15
15
|
</script>
|
|
16
16
|
|
|
17
17
|
<template>
|
|
18
|
-
<thead :class="ui({ class: props.class })">
|
|
19
|
-
<slot />
|
|
20
|
-
</thead>
|
|
18
|
+
<thead :class="ui({ class: props.class })">
|
|
19
|
+
<slot />
|
|
20
|
+
</thead>
|
|
21
21
|
</template>
|
|
@@ -5,7 +5,7 @@ const appConfig = useAppConfig();
|
|
|
5
5
|
</script>
|
|
6
6
|
|
|
7
7
|
<template>
|
|
8
|
-
<Callout color="error" :icon="appConfig.ui.icons.caution">
|
|
9
|
-
<slot mdc-unwrap="p" />
|
|
10
|
-
</Callout>
|
|
8
|
+
<Callout color="error" :icon="appConfig.ui.icons.caution">
|
|
9
|
+
<slot mdc-unwrap="p" />
|
|
10
|
+
</Callout>
|
|
11
11
|
</template>
|
|
@@ -5,7 +5,7 @@ const appConfig = useAppConfig();
|
|
|
5
5
|
</script>
|
|
6
6
|
|
|
7
7
|
<template>
|
|
8
|
-
<Callout color="info" :icon="appConfig.ui.icons.info">
|
|
9
|
-
<slot mdc-unwrap="p" />
|
|
10
|
-
</Callout>
|
|
8
|
+
<Callout color="info" :icon="appConfig.ui.icons.info">
|
|
9
|
+
<slot mdc-unwrap="p" />
|
|
10
|
+
</Callout>
|
|
11
11
|
</template>
|
|
@@ -5,7 +5,7 @@ const appConfig = useAppConfig();
|
|
|
5
5
|
</script>
|
|
6
6
|
|
|
7
7
|
<template>
|
|
8
|
-
<Callout color="success" :icon="appConfig.ui.icons.tip">
|
|
9
|
-
<slot mdc-unwrap="p" />
|
|
10
|
-
</Callout>
|
|
8
|
+
<Callout color="success" :icon="appConfig.ui.icons.tip">
|
|
9
|
+
<slot mdc-unwrap="p" />
|
|
10
|
+
</Callout>
|
|
11
11
|
</template>
|
|
@@ -5,7 +5,7 @@ const appConfig = useAppConfig();
|
|
|
5
5
|
</script>
|
|
6
6
|
|
|
7
7
|
<template>
|
|
8
|
-
<Callout color="warning" :icon="appConfig.ui.icons.warning">
|
|
9
|
-
<slot mdc-unwrap="p" />
|
|
10
|
-
</Callout>
|
|
8
|
+
<Callout color="warning" :icon="appConfig.ui.icons.warning">
|
|
9
|
+
<slot mdc-unwrap="p" />
|
|
10
|
+
</Callout>
|
|
11
11
|
</template>
|
|
@@ -100,8 +100,8 @@ const linkClass = computed(() => {
|
|
|
100
100
|
</script>
|
|
101
101
|
|
|
102
102
|
<template>
|
|
103
|
-
<template v-if="custom">
|
|
104
|
-
<slot
|
|
103
|
+
<template v-if="custom">
|
|
104
|
+
<slot
|
|
105
105
|
v-bind="{
|
|
106
106
|
...$attrs,
|
|
107
107
|
...routerLinkProps,
|
|
@@ -111,11 +111,11 @@ const linkClass = computed(() => {
|
|
|
111
111
|
href,
|
|
112
112
|
active: isLinkActive,
|
|
113
113
|
isExternal
|
|
114
|
-
}"
|
|
115
|
-
/>
|
|
116
|
-
</template>
|
|
117
|
-
<ULinkBase
|
|
118
|
-
v-else
|
|
114
|
+
}"
|
|
115
|
+
/>
|
|
116
|
+
</template>
|
|
117
|
+
<ULinkBase
|
|
118
|
+
v-else
|
|
119
119
|
v-bind="{
|
|
120
120
|
...$attrs,
|
|
121
121
|
...routerLinkProps,
|
|
@@ -124,9 +124,9 @@ const linkClass = computed(() => {
|
|
|
124
124
|
disabled,
|
|
125
125
|
href,
|
|
126
126
|
isExternal
|
|
127
|
-
}"
|
|
128
|
-
:class="linkClass"
|
|
129
|
-
>
|
|
130
|
-
<slot :active="isLinkActive" />
|
|
131
|
-
</ULinkBase>
|
|
127
|
+
}"
|
|
128
|
+
:class="linkClass"
|
|
129
|
+
>
|
|
130
|
+
<slot :active="isLinkActive" />
|
|
131
|
+
</ULinkBase>
|
|
132
132
|
</template>
|
|
@@ -31,19 +31,19 @@ function onClickWrapper(e) {
|
|
|
31
31
|
</script>
|
|
32
32
|
|
|
33
33
|
<template>
|
|
34
|
-
<InertiaLink
|
|
35
|
-
v-if="!!href && !isExternal && !disabled"
|
|
36
|
-
:href="href"
|
|
34
|
+
<InertiaLink
|
|
35
|
+
v-if="!!href && !isExternal && !disabled"
|
|
36
|
+
:href="href"
|
|
37
37
|
v-bind="{
|
|
38
38
|
target: target || (isExternal ? '_blank' : void 0),
|
|
39
39
|
...$attrs
|
|
40
|
-
}"
|
|
41
|
-
@click="onClickWrapper"
|
|
42
|
-
>
|
|
43
|
-
<slot />
|
|
44
|
-
</InertiaLink>
|
|
45
|
-
<Primitive
|
|
46
|
-
v-else
|
|
40
|
+
}"
|
|
41
|
+
@click="onClickWrapper"
|
|
42
|
+
>
|
|
43
|
+
<slot />
|
|
44
|
+
</InertiaLink>
|
|
45
|
+
<Primitive
|
|
46
|
+
v-else
|
|
47
47
|
v-bind="href ? {
|
|
48
48
|
'as': 'a',
|
|
49
49
|
'href': disabled ? void 0 : href,
|
|
@@ -60,9 +60,9 @@ function onClickWrapper(e) {
|
|
|
60
60
|
} : {
|
|
61
61
|
as,
|
|
62
62
|
...$attrs
|
|
63
|
-
}"
|
|
64
|
-
@click="onClickWrapper"
|
|
65
|
-
>
|
|
66
|
-
<slot />
|
|
67
|
-
</Primitive>
|
|
63
|
+
}"
|
|
64
|
+
@click="onClickWrapper"
|
|
65
|
+
>
|
|
66
|
+
<slot />
|
|
67
|
+
</Primitive>
|
|
68
68
|
</template>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
declare module '#build/app.config' {
|
|
2
|
-
import type { AppConfig } from '@nuxt/schema'
|
|
3
|
-
|
|
4
|
-
const _default: AppConfig
|
|
5
|
-
export default _default
|
|
6
|
-
}
|
|
1
|
+
declare module '#build/app.config' {
|
|
2
|
+
import type { AppConfig } from '@nuxt/schema'
|
|
3
|
+
|
|
4
|
+
const _default: AppConfig
|
|
5
|
+
export default _default
|
|
6
|
+
}
|
|
@@ -101,10 +101,10 @@ function resolveLinkClass({ route: route2, isActive, isExactActive } = {}) {
|
|
|
101
101
|
</script>
|
|
102
102
|
|
|
103
103
|
<template>
|
|
104
|
-
<template v-if="!isExternal && !!to">
|
|
105
|
-
<RouterLink v-slot="{ href, navigate, route: linkRoute, isActive, isExactActive }" v-bind="routerLinkProps" :to="to" custom>
|
|
106
|
-
<template v-if="custom">
|
|
107
|
-
<slot
|
|
104
|
+
<template v-if="!isExternal && !!to">
|
|
105
|
+
<RouterLink v-slot="{ href, navigate, route: linkRoute, isActive, isExactActive }" v-bind="routerLinkProps" :to="to" custom>
|
|
106
|
+
<template v-if="custom">
|
|
107
|
+
<slot
|
|
108
108
|
v-bind="{
|
|
109
109
|
...$attrs,
|
|
110
110
|
...exact && isExactActive ? { 'aria-current': props.ariaCurrentValue } : {},
|
|
@@ -114,11 +114,11 @@ function resolveLinkClass({ route: route2, isActive, isExactActive } = {}) {
|
|
|
114
114
|
href,
|
|
115
115
|
navigate,
|
|
116
116
|
active: isLinkActive({ route: linkRoute, isActive, isExactActive })
|
|
117
|
-
}"
|
|
118
|
-
/>
|
|
119
|
-
</template>
|
|
120
|
-
<ULinkBase
|
|
121
|
-
v-else
|
|
117
|
+
}"
|
|
118
|
+
/>
|
|
119
|
+
</template>
|
|
120
|
+
<ULinkBase
|
|
121
|
+
v-else
|
|
122
122
|
v-bind="{
|
|
123
123
|
...$attrs,
|
|
124
124
|
...exact && isExactActive ? { 'aria-current': props.ariaCurrentValue } : {},
|
|
@@ -127,17 +127,17 @@ function resolveLinkClass({ route: route2, isActive, isExactActive } = {}) {
|
|
|
127
127
|
disabled,
|
|
128
128
|
href,
|
|
129
129
|
navigate
|
|
130
|
-
}"
|
|
131
|
-
:class="resolveLinkClass({ route: linkRoute, isActive, isExactActive })"
|
|
132
|
-
>
|
|
133
|
-
<slot :active="isLinkActive({ route: linkRoute, isActive, isExactActive })" />
|
|
134
|
-
</ULinkBase>
|
|
135
|
-
</RouterLink>
|
|
136
|
-
</template>
|
|
137
|
-
|
|
138
|
-
<template v-else>
|
|
139
|
-
<template v-if="custom">
|
|
140
|
-
<slot
|
|
130
|
+
}"
|
|
131
|
+
:class="resolveLinkClass({ route: linkRoute, isActive, isExactActive })"
|
|
132
|
+
>
|
|
133
|
+
<slot :active="isLinkActive({ route: linkRoute, isActive, isExactActive })" />
|
|
134
|
+
</ULinkBase>
|
|
135
|
+
</RouterLink>
|
|
136
|
+
</template>
|
|
137
|
+
|
|
138
|
+
<template v-else>
|
|
139
|
+
<template v-if="custom">
|
|
140
|
+
<slot
|
|
141
141
|
v-bind="{
|
|
142
142
|
...$attrs,
|
|
143
143
|
as,
|
|
@@ -147,11 +147,11 @@ function resolveLinkClass({ route: route2, isActive, isExactActive } = {}) {
|
|
|
147
147
|
target: isExternal ? '_blank' : void 0,
|
|
148
148
|
active,
|
|
149
149
|
isExternal
|
|
150
|
-
}"
|
|
151
|
-
/>
|
|
152
|
-
</template>
|
|
153
|
-
<ULinkBase
|
|
154
|
-
v-else
|
|
150
|
+
}"
|
|
151
|
+
/>
|
|
152
|
+
</template>
|
|
153
|
+
<ULinkBase
|
|
154
|
+
v-else
|
|
155
155
|
v-bind="{
|
|
156
156
|
...$attrs,
|
|
157
157
|
as,
|
|
@@ -160,10 +160,10 @@ function resolveLinkClass({ route: route2, isActive, isExactActive } = {}) {
|
|
|
160
160
|
href: to,
|
|
161
161
|
target: isExternal ? '_blank' : void 0,
|
|
162
162
|
isExternal
|
|
163
|
-
}"
|
|
164
|
-
:class="resolveLinkClass()"
|
|
165
|
-
>
|
|
166
|
-
<slot :active="active" />
|
|
167
|
-
</ULinkBase>
|
|
168
|
-
</template>
|
|
163
|
+
}"
|
|
164
|
+
:class="resolveLinkClass()"
|
|
165
|
+
>
|
|
166
|
+
<slot :active="active" />
|
|
167
|
+
</ULinkBase>
|
|
168
|
+
</template>
|
|
169
169
|
</template>
|
|
@@ -24,11 +24,11 @@ const isDark = computed({
|
|
|
24
24
|
</script>
|
|
25
25
|
|
|
26
26
|
<template>
|
|
27
|
-
<UButton
|
|
28
|
-
:icon="isDark ? appConfig.ui.icons.dark : appConfig.ui.icons.light"
|
|
29
|
-
:color="color"
|
|
30
|
-
:variant="variant"
|
|
31
|
-
:aria-label="isDark ? t('colorMode.switchToLight') : t('colorMode.switchToDark')"
|
|
32
|
-
@click="isDark = !isDark"
|
|
33
|
-
/>
|
|
27
|
+
<UButton
|
|
28
|
+
:icon="isDark ? appConfig.ui.icons.dark : appConfig.ui.icons.light"
|
|
29
|
+
:color="color"
|
|
30
|
+
:variant="variant"
|
|
31
|
+
:aria-label="isDark ? t('colorMode.switchToLight') : t('colorMode.switchToDark')"
|
|
32
|
+
@click="isDark = !isDark"
|
|
33
|
+
/>
|
|
34
34
|
</template>
|
|
@@ -27,11 +27,11 @@ const preference = computed({
|
|
|
27
27
|
</script>
|
|
28
28
|
|
|
29
29
|
<template>
|
|
30
|
-
<USelectMenu
|
|
31
|
-
v-model="preference"
|
|
32
|
-
:icon="preference?.icon"
|
|
33
|
-
:search-input="false"
|
|
34
|
-
v-bind="$attrs"
|
|
35
|
-
:items="items"
|
|
36
|
-
/>
|
|
30
|
+
<USelectMenu
|
|
31
|
+
v-model="preference"
|
|
32
|
+
:icon="preference?.icon"
|
|
33
|
+
:search-input="false"
|
|
34
|
+
v-bind="$attrs"
|
|
35
|
+
:items="items"
|
|
36
|
+
/>
|
|
37
37
|
</template>
|
|
@@ -22,11 +22,11 @@ const isDark = computed({
|
|
|
22
22
|
</script>
|
|
23
23
|
|
|
24
24
|
<template>
|
|
25
|
-
<USwitch
|
|
26
|
-
v-model="isDark"
|
|
27
|
-
:checked-icon="appConfig.ui.icons.dark"
|
|
28
|
-
:unchecked-icon="appConfig.ui.icons.light"
|
|
29
|
-
:aria-label="isDark ? t('colorMode.switchToLight') : t('colorMode.switchToDark')"
|
|
30
|
-
v-bind="$attrs"
|
|
31
|
-
/>
|
|
25
|
+
<USwitch
|
|
26
|
+
v-model="isDark"
|
|
27
|
+
:checked-icon="appConfig.ui.icons.dark"
|
|
28
|
+
:unchecked-icon="appConfig.ui.icons.light"
|
|
29
|
+
:aria-label="isDark ? t('colorMode.switchToLight') : t('colorMode.switchToDark')"
|
|
30
|
+
v-bind="$attrs"
|
|
31
|
+
/>
|
|
32
32
|
</template>
|
package/package.json
CHANGED
package/vue-plugin.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Plugin } from 'vue'
|
|
2
|
-
|
|
3
|
-
declare const plugin: Plugin
|
|
4
|
-
|
|
5
|
-
export default plugin
|
|
1
|
+
import type { Plugin } from 'vue'
|
|
2
|
+
|
|
3
|
+
declare const plugin: Plugin
|
|
4
|
+
|
|
5
|
+
export default plugin
|