mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-24 08:50:34 +01:00
Compare commits
10 Commits
deps/nuxt4
...
feat/3880
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d6fe4dc716 | ||
|
|
203a36ae11 | ||
|
|
c3ec805a9a | ||
|
|
c025fbf81a | ||
|
|
c82828d889 | ||
|
|
7be03e0f51 | ||
|
|
48077c12e8 | ||
|
|
801375d4fb | ||
|
|
b3e885211a | ||
|
|
deae9eca84 |
@@ -53,7 +53,7 @@ provide('navigation', mappedNavigation)
|
|||||||
<NuxtLoadingIndicator color="var(--ui-primary)" :height="2" />
|
<NuxtLoadingIndicator color="var(--ui-primary)" :height="2" />
|
||||||
|
|
||||||
<template v-if="!route.path.startsWith('/examples')">
|
<template v-if="!route.path.startsWith('/examples')">
|
||||||
<Banner />
|
<!-- <Banner /> -->
|
||||||
|
|
||||||
<Header :links="links" />
|
<Header :links="links" />
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -1,19 +1,15 @@
|
|||||||
<template>
|
<template>
|
||||||
<UBanner
|
<UBanner
|
||||||
id="nuxtlabs-join-vercel"
|
id="ui3-launch"
|
||||||
title="NuxtLabs is joining Vercel"
|
title="Nuxt UI v3 is officially released!"
|
||||||
icon="i-simple-icons-vercel"
|
icon="i-lucide-rocket"
|
||||||
to="https://nuxtlabs.com/?utm_source=nuxt-ui&utm_medium=banner&utm_campaign=nuxtlabs-vercel"
|
:actions="[
|
||||||
target="_blank"
|
{
|
||||||
|
label: 'Discover Nuxt UI Pro',
|
||||||
|
to: '/pro/pricing',
|
||||||
|
trailingIcon: 'i-lucide-arrow-right'
|
||||||
|
}
|
||||||
|
]"
|
||||||
close
|
close
|
||||||
:actions="[{
|
|
||||||
label: 'Read the announcement',
|
|
||||||
color: 'neutral',
|
|
||||||
variant: 'outline',
|
|
||||||
trailingIcon: 'i-lucide-arrow-right',
|
|
||||||
to: 'https://nuxtlabs.com/?utm_source=nuxt-ui&utm_medium=banner&utm_campaign=nuxtlabs-vercel',
|
|
||||||
target: '_blank',
|
|
||||||
class: 'ring-0'
|
|
||||||
}]"
|
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ const meta = await fetchComponentMeta(name as any)
|
|||||||
</ProseCode>
|
</ProseCode>
|
||||||
</ProseTd>
|
</ProseTd>
|
||||||
<ProseTd>
|
<ProseTd>
|
||||||
<HighlightInlineType v-if="slot.type" :type="slot.type.replace(/ui:\s*\{[^}]*\}/g, 'ui: {}')" />
|
<HighlightInlineType v-if="slot.type" :type="slot.type" />
|
||||||
|
|
||||||
<MDC v-if="slot.description" :value="slot.description" class="text-toned mt-1" :cache-key="`${kebabCase(route.path)}-${slot.name}-description`" />
|
<MDC v-if="slot.description" :value="slot.description" class="text-toned mt-1" :cache-key="`${kebabCase(route.path)}-${slot.name}-description`" />
|
||||||
</ProseTd>
|
</ProseTd>
|
||||||
|
|||||||
@@ -14,8 +14,8 @@ const items = [
|
|||||||
v-slot="{ item }"
|
v-slot="{ item }"
|
||||||
orientation="vertical"
|
orientation="vertical"
|
||||||
:items="items"
|
:items="items"
|
||||||
:ui="{ container: 'h-[336px]' }"
|
|
||||||
class="w-full max-w-xs mx-auto"
|
class="w-full max-w-xs mx-auto"
|
||||||
|
:ui="{ container: 'h-[336px]' }"
|
||||||
>
|
>
|
||||||
<img :src="item" width="320" height="320" class="rounded-lg">
|
<img :src="item" width="320" height="320" class="rounded-lg">
|
||||||
</UCarousel>
|
</UCarousel>
|
||||||
|
|||||||
@@ -1,31 +0,0 @@
|
|||||||
<script setup lang="ts">
|
|
||||||
const { data: users } = await useFetch('https://jsonplaceholder.typicode.com/users', {
|
|
||||||
key: 'typicode-users-email',
|
|
||||||
transform: (data: { id: number, name: string, email: string }[]) => {
|
|
||||||
return data?.map(user => ({
|
|
||||||
label: user.name,
|
|
||||||
value: String(user.id),
|
|
||||||
email: user.email,
|
|
||||||
avatar: { src: `https://i.pravatar.cc/120?img=${user.id}` }
|
|
||||||
}))
|
|
||||||
},
|
|
||||||
lazy: true
|
|
||||||
})
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<template>
|
|
||||||
<UInputMenu
|
|
||||||
:items="users"
|
|
||||||
icon="i-lucide-user"
|
|
||||||
placeholder="Select user"
|
|
||||||
:ui="{ content: 'min-w-fit' }"
|
|
||||||
>
|
|
||||||
<template #item-label="{ item }">
|
|
||||||
{{ item.label }}
|
|
||||||
|
|
||||||
<span class="text-muted">
|
|
||||||
{{ item.email }}
|
|
||||||
</span>
|
|
||||||
</template>
|
|
||||||
</UInputMenu>
|
|
||||||
</template>
|
|
||||||
@@ -35,7 +35,6 @@ const items = ref([
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
] satisfies InputMenuItem[])
|
] satisfies InputMenuItem[])
|
||||||
|
|
||||||
const value = ref(items.value[0])
|
const value = ref(items.value[0])
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -40,9 +40,9 @@ const text = computed(() => {
|
|||||||
placeholder="Password"
|
placeholder="Password"
|
||||||
:color="color"
|
:color="color"
|
||||||
:type="show ? 'text' : 'password'"
|
:type="show ? 'text' : 'password'"
|
||||||
|
:ui="{ trailing: 'pe-1' }"
|
||||||
:aria-invalid="score < 4"
|
:aria-invalid="score < 4"
|
||||||
aria-describedby="password-strength"
|
aria-describedby="password-strength"
|
||||||
:ui="{ trailing: 'pe-1' }"
|
|
||||||
class="w-full"
|
class="w-full"
|
||||||
>
|
>
|
||||||
<template #trailing>
|
<template #trailing>
|
||||||
|
|||||||
@@ -24,10 +24,3 @@ const password = ref('')
|
|||||||
</template>
|
</template>
|
||||||
</UInput>
|
</UInput>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style>
|
|
||||||
/* Hide the password reveal button in Edge */
|
|
||||||
::-ms-reveal {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|||||||
@@ -62,13 +62,13 @@ const items = [
|
|||||||
<template>
|
<template>
|
||||||
<UNavigationMenu
|
<UNavigationMenu
|
||||||
:items="items"
|
:items="items"
|
||||||
|
class="w-full justify-center"
|
||||||
:ui="{
|
:ui="{
|
||||||
viewport: 'sm:w-(--reka-navigation-menu-viewport-width)',
|
viewport: 'sm:w-(--reka-navigation-menu-viewport-width)',
|
||||||
content: 'sm:w-auto',
|
content: 'sm:w-auto',
|
||||||
childList: 'sm:w-96',
|
childList: 'sm:w-96',
|
||||||
childLinkDescription: 'text-balance line-clamp-2'
|
childLinkDescription: 'text-balance line-clamp-2'
|
||||||
}"
|
}"
|
||||||
class="w-full justify-center"
|
|
||||||
>
|
>
|
||||||
<template #docs-content="{ item }">
|
<template #docs-content="{ item }">
|
||||||
<ul class="grid gap-2 p-4 lg:w-[500px] lg:grid-cols-[minmax(0,.75fr)_minmax(0,1fr)]">
|
<ul class="grid gap-2 p-4 lg:w-[500px] lg:grid-cols-[minmax(0,.75fr)_minmax(0,1fr)]">
|
||||||
|
|||||||
@@ -1,32 +0,0 @@
|
|||||||
<script setup lang="ts">
|
|
||||||
const { data: users } = await useFetch('https://jsonplaceholder.typicode.com/users', {
|
|
||||||
key: 'typicode-users-email',
|
|
||||||
transform: (data: { id: number, name: string, email: string }[]) => {
|
|
||||||
return data?.map(user => ({
|
|
||||||
label: user.name,
|
|
||||||
value: String(user.id),
|
|
||||||
email: user.email,
|
|
||||||
avatar: { src: `https://i.pravatar.cc/120?img=${user.id}` }
|
|
||||||
}))
|
|
||||||
},
|
|
||||||
lazy: true
|
|
||||||
})
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<template>
|
|
||||||
<USelectMenu
|
|
||||||
:items="users"
|
|
||||||
icon="i-lucide-user"
|
|
||||||
placeholder="Select user"
|
|
||||||
:ui="{ content: 'min-w-fit' }"
|
|
||||||
class="w-48"
|
|
||||||
>
|
|
||||||
<template #item-label="{ item }">
|
|
||||||
{{ item.label }}
|
|
||||||
|
|
||||||
<span class="text-muted">
|
|
||||||
{{ item.email }}
|
|
||||||
</span>
|
|
||||||
</template>
|
|
||||||
</USelectMenu>
|
|
||||||
</template>
|
|
||||||
@@ -35,7 +35,6 @@ const items = ref([
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
] satisfies SelectMenuItem[])
|
] satisfies SelectMenuItem[])
|
||||||
|
|
||||||
const value = ref(items.value[0])
|
const value = ref(items.value[0])
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -24,7 +24,6 @@ const items = ref([
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
] satisfies SelectMenuItem[])
|
] satisfies SelectMenuItem[])
|
||||||
|
|
||||||
const value = ref(items.value[0])
|
const value = ref(items.value[0])
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -23,7 +23,6 @@ const items = ref([
|
|||||||
icon: 'i-lucide-circle-check'
|
icon: 'i-lucide-circle-check'
|
||||||
}
|
}
|
||||||
] satisfies SelectMenuItem[])
|
] satisfies SelectMenuItem[])
|
||||||
|
|
||||||
const value = ref(items.value[0])
|
const value = ref(items.value[0])
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -1,35 +0,0 @@
|
|||||||
<script setup lang="ts">
|
|
||||||
const value = ref<string>()
|
|
||||||
|
|
||||||
const { data: users } = await useFetch('https://jsonplaceholder.typicode.com/users', {
|
|
||||||
key: 'typicode-users-email',
|
|
||||||
transform: (data: { id: number, name: string, email: string }[]) => {
|
|
||||||
return data?.map(user => ({
|
|
||||||
label: user.name,
|
|
||||||
email: user.email,
|
|
||||||
value: String(user.id),
|
|
||||||
avatar: { src: `https://i.pravatar.cc/120?img=${user.id}` }
|
|
||||||
}))
|
|
||||||
},
|
|
||||||
lazy: true
|
|
||||||
})
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<template>
|
|
||||||
<USelect
|
|
||||||
v-model="value"
|
|
||||||
:items="users"
|
|
||||||
placeholder="Select user"
|
|
||||||
value-key="value"
|
|
||||||
:ui="{ content: 'min-w-fit' }"
|
|
||||||
class="w-48"
|
|
||||||
>
|
|
||||||
<template #item-label="{ item }">
|
|
||||||
{{ item.label }}
|
|
||||||
|
|
||||||
<span class="text-muted">
|
|
||||||
{{ item.email }}
|
|
||||||
</span>
|
|
||||||
</template>
|
|
||||||
</USelect>
|
|
||||||
</template>
|
|
||||||
@@ -24,8 +24,8 @@ function getUserAvatar(value: string) {
|
|||||||
:loading="status === 'pending'"
|
:loading="status === 'pending'"
|
||||||
icon="i-lucide-user"
|
icon="i-lucide-user"
|
||||||
placeholder="Select user"
|
placeholder="Select user"
|
||||||
value-key="value"
|
|
||||||
class="w-48"
|
class="w-48"
|
||||||
|
value-key="value"
|
||||||
>
|
>
|
||||||
<template #leading="{ modelValue, ui }">
|
<template #leading="{ modelValue, ui }">
|
||||||
<UAvatar
|
<UAvatar
|
||||||
|
|||||||
@@ -35,7 +35,6 @@ const items = ref([
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
] satisfies SelectItem[])
|
] satisfies SelectItem[])
|
||||||
|
|
||||||
const value = ref(items.value[0]?.value)
|
const value = ref(items.value[0]?.value)
|
||||||
|
|
||||||
const avatar = computed(() => items.value.find(item => item.value === value.value)?.avatar)
|
const avatar = computed(() => items.value.find(item => item.value === value.value)?.avatar)
|
||||||
|
|||||||
@@ -23,7 +23,6 @@ const items = ref([
|
|||||||
icon: 'i-lucide-circle-check'
|
icon: 'i-lucide-circle-check'
|
||||||
}
|
}
|
||||||
] satisfies SelectItem[])
|
] satisfies SelectItem[])
|
||||||
|
|
||||||
const value = ref(items.value[0]?.value)
|
const value = ref(items.value[0]?.value)
|
||||||
|
|
||||||
const icon = computed(() => items.value.find(item => item.value === value.value)?.icon)
|
const icon = computed(() => items.value.find(item => item.value === value.value)?.icon)
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ const state = reactive({
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<UTabs :items="items" variant="link" :ui="{ trigger: 'grow' }" class="gap-4 w-full">
|
<UTabs :items="items" variant="link" class="gap-4 w-full" :ui="{ trigger: 'grow' }">
|
||||||
<template #account="{ item }">
|
<template #account="{ item }">
|
||||||
<p class="text-muted mb-4">
|
<p class="text-muted mb-4">
|
||||||
{{ item.description }}
|
{{ item.description }}
|
||||||
|
|||||||
@@ -27,8 +27,8 @@ const items: TimelineItem[] = [{
|
|||||||
<template>
|
<template>
|
||||||
<UTimeline
|
<UTimeline
|
||||||
:items="items"
|
:items="items"
|
||||||
:default-value="2"
|
|
||||||
:ui="{ item: 'even:flex-row-reverse even:-translate-x-[calc(100%-2rem)] even:text-right' }"
|
:ui="{ item: 'even:flex-row-reverse even:-translate-x-[calc(100%-2rem)] even:text-right' }"
|
||||||
|
:default-value="2"
|
||||||
class="translate-x-[calc(50%-1rem)]"
|
class="translate-x-[calc(50%-1rem)]"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -42,11 +42,11 @@ const items = [{
|
|||||||
<UTimeline
|
<UTimeline
|
||||||
:items="items"
|
:items="items"
|
||||||
size="xs"
|
size="xs"
|
||||||
|
class="w-96"
|
||||||
:ui="{
|
:ui="{
|
||||||
date: 'float-end ms-1',
|
date: 'float-end ms-1',
|
||||||
description: 'px-3 py-2 ring ring-default mt-2 rounded-md text-default'
|
description: 'px-3 py-2 ring ring-default mt-2 rounded-md text-default'
|
||||||
}"
|
}"
|
||||||
class="w-96"
|
|
||||||
>
|
>
|
||||||
<template #title="{ item }">
|
<template #title="{ item }">
|
||||||
<span>{{ item.username }}</span>
|
<span>{{ item.username }}</span>
|
||||||
|
|||||||
@@ -7,12 +7,12 @@ const appConfig = useAppConfig()
|
|||||||
<UFormField
|
<UFormField
|
||||||
label="toaster.duration"
|
label="toaster.duration"
|
||||||
size="sm"
|
size="sm"
|
||||||
|
class="inline-flex ring ring-accented rounded-sm"
|
||||||
:ui="{
|
:ui="{
|
||||||
wrapper: 'bg-elevated/50 rounded-l-sm flex border-r border-accented',
|
wrapper: 'bg-elevated/50 rounded-l-sm flex border-r border-accented',
|
||||||
label: 'text-muted px-2 py-1.5',
|
label: 'text-muted px-2 py-1.5',
|
||||||
container: 'mt-0'
|
container: 'mt-0'
|
||||||
}"
|
}"
|
||||||
class="inline-flex ring ring-accented rounded-sm"
|
|
||||||
>
|
>
|
||||||
<UInput
|
<UInput
|
||||||
v-model="appConfig.toaster.duration"
|
v-model="appConfig.toaster.duration"
|
||||||
|
|||||||
@@ -7,12 +7,12 @@ const appConfig = useAppConfig()
|
|||||||
<UFormField
|
<UFormField
|
||||||
label="toaster.expand"
|
label="toaster.expand"
|
||||||
size="sm"
|
size="sm"
|
||||||
|
class="inline-flex ring ring-accented rounded-sm"
|
||||||
:ui="{
|
:ui="{
|
||||||
wrapper: 'bg-elevated/50 rounded-l-sm flex border-r border-accented',
|
wrapper: 'bg-elevated/50 rounded-l-sm flex border-r border-accented',
|
||||||
label: 'text-muted px-2 py-1.5',
|
label: 'text-muted px-2 py-1.5',
|
||||||
container: 'mt-0'
|
container: 'mt-0'
|
||||||
}"
|
}"
|
||||||
class="inline-flex ring ring-accented rounded-sm"
|
|
||||||
>
|
>
|
||||||
<USelectMenu
|
<USelectMenu
|
||||||
v-model="appConfig.toaster.expand"
|
v-model="appConfig.toaster.expand"
|
||||||
|
|||||||
@@ -10,12 +10,12 @@ const appConfig = useAppConfig()
|
|||||||
<UFormField
|
<UFormField
|
||||||
label="toaster.position"
|
label="toaster.position"
|
||||||
size="sm"
|
size="sm"
|
||||||
|
class="inline-flex ring ring-accented rounded-sm"
|
||||||
:ui="{
|
:ui="{
|
||||||
wrapper: 'bg-elevated/50 rounded-l-sm flex border-r border-accented',
|
wrapper: 'bg-elevated/50 rounded-l-sm flex border-r border-accented',
|
||||||
label: 'text-muted px-2 py-1.5',
|
label: 'text-muted px-2 py-1.5',
|
||||||
container: 'mt-0'
|
container: 'mt-0'
|
||||||
}"
|
}"
|
||||||
class="inline-flex ring ring-accented rounded-sm"
|
|
||||||
>
|
>
|
||||||
<USelectMenu
|
<USelectMenu
|
||||||
v-model="appConfig.toaster.position"
|
v-model="appConfig.toaster.position"
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ provide('navigation', mappedNavigation)
|
|||||||
<UApp>
|
<UApp>
|
||||||
<NuxtLoadingIndicator color="#FFF" />
|
<NuxtLoadingIndicator color="#FFF" />
|
||||||
|
|
||||||
<Banner />
|
<!-- <Banner /> -->
|
||||||
|
|
||||||
<Header :links="links" />
|
<Header :links="links" />
|
||||||
|
|
||||||
|
|||||||
@@ -5,17 +5,6 @@ pricing:
|
|||||||
title: Upgrade to Nuxt UI [Pro]{class="text-primary"}.
|
title: Upgrade to Nuxt UI [Pro]{class="text-primary"}.
|
||||||
description: On top of 40+ open source components from Nuxt UI, Pro gives you access to 50+ premium Vue components to create beautiful & responsive Nuxt applications in minutes. It includes all primitives to build landing pages, documentations, blogs, dashboards or entire SaaS products.
|
description: On top of 40+ open source components from Nuxt UI, Pro gives you access to 50+ premium Vue components to create beautiful & responsive Nuxt applications in minutes. It includes all primitives to build landing pages, documentations, blogs, dashboards or entire SaaS products.
|
||||||
freePlan:
|
freePlan:
|
||||||
description: "**NuxtLabs is joining Vercel** :tada: As part of this transition, Nuxt UI is becoming even more accessible.<br><br> **In September, we're launching Nuxt UI v4**: a free, open-source library that unifies Nuxt UI and Nuxt UI Pro, offering 100+ components and a complete free Figma Kit for everyone."
|
|
||||||
orientation: horizontal
|
|
||||||
button:
|
|
||||||
label: Read the announcement
|
|
||||||
to: 'https://nuxtlabs.com/?utm_source=nuxt-ui&utm_medium=banner&utm_campaign=nuxtlabs-vercel'
|
|
||||||
target: _blank
|
|
||||||
color: 'neutral'
|
|
||||||
trailingIcon: 'i-lucide-arrow-right'
|
|
||||||
ui:
|
|
||||||
trailingIcon: 'ms-0'
|
|
||||||
devPlan:
|
|
||||||
title: Free in development
|
title: Free in development
|
||||||
description: Try Nuxt UI Pro for free in development, no credit card required. Upgrade when ready to deploy.
|
description: Try Nuxt UI Pro for free in development, no credit card required. Upgrade when ready to deploy.
|
||||||
orientation: horizontal
|
orientation: horizontal
|
||||||
@@ -24,9 +13,6 @@ pricing:
|
|||||||
to: '/getting-started/installation/pro/nuxt'
|
to: '/getting-started/installation/pro/nuxt'
|
||||||
color: 'neutral'
|
color: 'neutral'
|
||||||
variant: 'subtle'
|
variant: 'subtle'
|
||||||
trailingIcon: 'i-lucide-arrow-right'
|
|
||||||
ui:
|
|
||||||
trailingIcon: 'ms-0'
|
|
||||||
figma:
|
figma:
|
||||||
title: Figma Kit Pro
|
title: Figma Kit Pro
|
||||||
description: Get all Nuxt UI Pro components in a Figma kit to design your next application before coding. Everything you need, from wire-framing to high-fidelity web integration.
|
description: Get all Nuxt UI Pro components in a Figma kit to design your next application before coding. Everything you need, from wire-framing to high-fidelity web integration.
|
||||||
|
|||||||
@@ -34,19 +34,10 @@ useSeoMeta({
|
|||||||
<div class="flex flex-col bg-default gap-8 lg:gap-0">
|
<div class="flex flex-col bg-default gap-8 lg:gap-0">
|
||||||
<UPricingPlan
|
<UPricingPlan
|
||||||
v-bind="page.pricing.freePlan"
|
v-bind="page.pricing.freePlan"
|
||||||
class="lg:rounded-none ring-primary/15 ring-inset -mb-px bg-primary/5 z-[1]"
|
variant="naked"
|
||||||
:ui="{ description: 'mt-0 text-primary' }"
|
class="lg:rounded-none border-x border-default border-t border-b lg:border-b-0"
|
||||||
>
|
|
||||||
<template #description>
|
|
||||||
<MDC :value="page.pricing.freePlan.description" unwrap="p" />
|
|
||||||
</template>
|
|
||||||
</UPricingPlan>
|
|
||||||
|
|
||||||
<UPricingPlan
|
|
||||||
v-bind="page.pricing.devPlan"
|
|
||||||
class="lg:rounded-none ring-inset -mb-px"
|
|
||||||
/>
|
/>
|
||||||
<UPricingPlans compact class="-space-x-px">
|
<UPricingPlans compact>
|
||||||
<UPricingPlan
|
<UPricingPlan
|
||||||
v-for="(plan, index) in page.pricing.plans"
|
v-for="(plan, index) in page.pricing.plans"
|
||||||
:key="index"
|
:key="index"
|
||||||
@@ -56,17 +47,18 @@ useSeoMeta({
|
|||||||
:discount="plan.discount"
|
:discount="plan.discount"
|
||||||
:billing-period="plan.billing_period"
|
:billing-period="plan.billing_period"
|
||||||
:billing-cycle="plan.billing_cycle"
|
:billing-cycle="plan.billing_cycle"
|
||||||
:variant="plan.highlight ? 'subtle' : 'outline'"
|
:variant="plan.highlight ? 'soft' : 'outline'"
|
||||||
class="lg:rounded-none ring-inset -mb-px"
|
:class="['lg:rounded-none', { 'border-2 lg:border lg:border-x-0 border-primary lg:border-default': plan.highlight }]"
|
||||||
:features="plan.features"
|
:features="plan.features"
|
||||||
:button="plan.button"
|
:button="plan.button"
|
||||||
/>
|
/>
|
||||||
</UPricingPlans>
|
</UPricingPlans>
|
||||||
<UPricingPlan
|
<UPricingPlan
|
||||||
v-bind="page.pricing.figma"
|
v-bind="page.pricing.figma"
|
||||||
|
variant="naked"
|
||||||
:billing-period="page.pricing.figma.billing_period"
|
:billing-period="page.pricing.figma.billing_period"
|
||||||
:billing-cycle="page.pricing.figma.billing_cycle"
|
:billing-cycle="page.pricing.figma.billing_cycle"
|
||||||
class="lg:rounded-none ring-inset -mb-px"
|
class="lg:rounded-none border lg:border-y-0 border-default"
|
||||||
>
|
>
|
||||||
<template #features>
|
<template #features>
|
||||||
<li v-for="(feature, index) in page.pricing.figma.features" :key="index" class="flex items-center gap-2 min-w-0">
|
<li v-for="(feature, index) in page.pricing.figma.features" :key="index" class="flex items-center gap-2 min-w-0">
|
||||||
|
|||||||
@@ -225,27 +225,6 @@ export default defineNuxtConfig({
|
|||||||
This option adds the `transition-colors` class on components with hover or active states.
|
This option adds the `transition-colors` class on components with hover or active states.
|
||||||
::
|
::
|
||||||
|
|
||||||
### `theme.defaultVariants` :badge{label="Soon" class="align-text-top"}
|
|
||||||
|
|
||||||
Use the `theme.defaultVariants` option to override the default `color` and `size` variants for components.
|
|
||||||
|
|
||||||
- Default: `{ color: 'primary', size: 'md' }`{lang="ts-type"}
|
|
||||||
|
|
||||||
```ts [nuxt.config.ts]
|
|
||||||
export default defineNuxtConfig({
|
|
||||||
modules: ['@nuxt/ui'],
|
|
||||||
css: ['~/assets/css/main.css'],
|
|
||||||
ui: {
|
|
||||||
theme: {
|
|
||||||
defaultVariants: {
|
|
||||||
color: 'neutral',
|
|
||||||
size: 'sm'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
```
|
|
||||||
|
|
||||||
## Continuous Releases
|
## Continuous Releases
|
||||||
|
|
||||||
Nuxt UI uses [pkg.pr.new](https://github.com/stackblitz-labs/pkg.pr.new) for continuous preview releases, providing developers with instant access to the latest features and bug fixes without waiting for official releases.
|
Nuxt UI uses [pkg.pr.new](https://github.com/stackblitz-labs/pkg.pr.new) for continuous preview releases, providing developers with instant access to the latest features and bug fixes without waiting for official releases.
|
||||||
|
|||||||
@@ -333,32 +333,6 @@ export default defineConfig({
|
|||||||
This option adds the `transition-colors` class on components with hover or active states.
|
This option adds the `transition-colors` class on components with hover or active states.
|
||||||
::
|
::
|
||||||
|
|
||||||
### `theme.defaultVariants` :badge{label="Soon" class="align-text-top"}
|
|
||||||
|
|
||||||
Use the `theme.defaultVariants` option to override the default `color` and `size` variants for components.
|
|
||||||
|
|
||||||
- Default: `{ color: 'primary', size: 'md' }`{lang="ts-type"}
|
|
||||||
|
|
||||||
```ts [vite.config.ts]
|
|
||||||
import { defineConfig } from 'vite'
|
|
||||||
import vue from '@vitejs/plugin-vue'
|
|
||||||
import ui from '@nuxt/ui/vite'
|
|
||||||
|
|
||||||
export default defineConfig({
|
|
||||||
plugins: [
|
|
||||||
vue(),
|
|
||||||
ui({
|
|
||||||
theme: {
|
|
||||||
defaultVariants: {
|
|
||||||
color: 'neutral',
|
|
||||||
size: 'sm'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
]
|
|
||||||
})
|
|
||||||
```
|
|
||||||
|
|
||||||
### `inertia`
|
### `inertia`
|
||||||
|
|
||||||
Use the `inertia` option to enable compatibility with [Inertia.js](https://inertiajs.com/).
|
Use the `inertia` option to enable compatibility with [Inertia.js](https://inertiajs.com/).
|
||||||
|
|||||||
@@ -757,33 +757,6 @@ name: 'input-menu-filter-fields-example'
|
|||||||
---
|
---
|
||||||
::
|
::
|
||||||
|
|
||||||
### With full content width
|
|
||||||
|
|
||||||
You can expand the content to the full width of its items by using the `ui.content` key.
|
|
||||||
|
|
||||||
::component-example
|
|
||||||
---
|
|
||||||
name: 'input-menu-content-width-example'
|
|
||||||
collapse: true
|
|
||||||
---
|
|
||||||
::
|
|
||||||
|
|
||||||
::tip
|
|
||||||
You can also change the content width globally in your `app.config.ts`:
|
|
||||||
|
|
||||||
```
|
|
||||||
export default defineAppConfig({
|
|
||||||
ui: {
|
|
||||||
inputMenu: {
|
|
||||||
slots: {
|
|
||||||
content: 'min-w-fit'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
```
|
|
||||||
::
|
|
||||||
|
|
||||||
### As a CountryPicker
|
### As a CountryPicker
|
||||||
|
|
||||||
This example demonstrates using the InputMenu as a country picker with lazy loading - countries are only fetched when the menu is opened.
|
This example demonstrates using the InputMenu as a country picker with lazy loading - countries are only fetched when the menu is opened.
|
||||||
|
|||||||
@@ -790,33 +790,6 @@ name: 'select-menu-filter-fields-example'
|
|||||||
---
|
---
|
||||||
::
|
::
|
||||||
|
|
||||||
### With full content width
|
|
||||||
|
|
||||||
You can expand the content to the full width of its items by using the `ui.content` key.
|
|
||||||
|
|
||||||
::component-example
|
|
||||||
---
|
|
||||||
name: 'select-menu-content-width-example'
|
|
||||||
collapse: true
|
|
||||||
---
|
|
||||||
::
|
|
||||||
|
|
||||||
::tip
|
|
||||||
You can also change the content width globally in your `app.config.ts`:
|
|
||||||
|
|
||||||
```
|
|
||||||
export default defineAppConfig({
|
|
||||||
ui: {
|
|
||||||
selectMenu: {
|
|
||||||
slots: {
|
|
||||||
content: 'min-w-fit'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
```
|
|
||||||
::
|
|
||||||
|
|
||||||
### As a CountryPicker
|
### As a CountryPicker
|
||||||
|
|
||||||
This example demonstrates using the SelectMenu as a country picker with lazy loading - countries are only fetched when the menu is opened.
|
This example demonstrates using the SelectMenu as a country picker with lazy loading - countries are only fetched when the menu is opened.
|
||||||
@@ -828,8 +801,6 @@ name: 'select-menu-countries-example'
|
|||||||
---
|
---
|
||||||
::
|
::
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## API
|
## API
|
||||||
|
|
||||||
### Props
|
### Props
|
||||||
|
|||||||
@@ -695,33 +695,6 @@ collapse: true
|
|||||||
---
|
---
|
||||||
::
|
::
|
||||||
|
|
||||||
### With full content width
|
|
||||||
|
|
||||||
You can expand the content to the full width of its items by using the `ui.content` key.
|
|
||||||
|
|
||||||
::component-example
|
|
||||||
---
|
|
||||||
name: 'select-content-width-example'
|
|
||||||
collapse: true
|
|
||||||
---
|
|
||||||
::
|
|
||||||
|
|
||||||
::tip
|
|
||||||
You can also change the content width globally in your `app.config.ts`:
|
|
||||||
|
|
||||||
```
|
|
||||||
export default defineAppConfig({
|
|
||||||
ui: {
|
|
||||||
select: {
|
|
||||||
slots: {
|
|
||||||
content: 'min-w-fit'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
```
|
|
||||||
::
|
|
||||||
|
|
||||||
## API
|
## API
|
||||||
|
|
||||||
### Props
|
### Props
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
"@nuxt/content": "^3.6.3",
|
"@nuxt/content": "^3.6.3",
|
||||||
"@nuxt/image": "^1.10.0",
|
"@nuxt/image": "^1.10.0",
|
||||||
"@nuxt/ui": "workspace:*",
|
"@nuxt/ui": "workspace:*",
|
||||||
"@nuxt/ui-pro": "https://pkg.pr.new/@nuxt/ui-pro@17684e4",
|
"@nuxt/ui-pro": "https://pkg.pr.new/@nuxt/ui-pro@22fdc5e",
|
||||||
"@nuxthub/core": "^0.9.0",
|
"@nuxthub/core": "^0.9.0",
|
||||||
"@nuxtjs/plausible": "^1.2.0",
|
"@nuxtjs/plausible": "^1.2.0",
|
||||||
"@octokit/rest": "^22.0.0",
|
"@octokit/rest": "^22.0.0",
|
||||||
@@ -30,7 +30,7 @@
|
|||||||
"joi": "^17.13.3",
|
"joi": "^17.13.3",
|
||||||
"maska": "^3.2.0",
|
"maska": "^3.2.0",
|
||||||
"motion-v": "^1.5.0",
|
"motion-v": "^1.5.0",
|
||||||
"nuxt": "4.0.0-rc.0",
|
"nuxt": "^3.17.6",
|
||||||
"nuxt-component-meta": "^0.12.1",
|
"nuxt-component-meta": "^0.12.1",
|
||||||
"nuxt-llms": "^0.1.3",
|
"nuxt-llms": "^0.1.3",
|
||||||
"nuxt-og-image": "^5.1.9",
|
"nuxt-og-image": "^5.1.9",
|
||||||
|
|||||||
@@ -116,8 +116,8 @@
|
|||||||
"@internationalized/number": "^3.6.3",
|
"@internationalized/number": "^3.6.3",
|
||||||
"@nuxt/fonts": "^0.11.4",
|
"@nuxt/fonts": "^0.11.4",
|
||||||
"@nuxt/icon": "^1.15.0",
|
"@nuxt/icon": "^1.15.0",
|
||||||
"@nuxt/kit": "4.0.0-rc.0",
|
"@nuxt/kit": "^3.17.6",
|
||||||
"@nuxt/schema": "4.0.0-rc.0",
|
"@nuxt/schema": "^3.17.6",
|
||||||
"@nuxtjs/color-mode": "^3.5.2",
|
"@nuxtjs/color-mode": "^3.5.2",
|
||||||
"@standard-schema/spec": "^1.0.0",
|
"@standard-schema/spec": "^1.0.0",
|
||||||
"@tailwindcss/postcss": "^4.1.11",
|
"@tailwindcss/postcss": "^4.1.11",
|
||||||
@@ -163,7 +163,7 @@
|
|||||||
"embla-carousel": "^8.6.0",
|
"embla-carousel": "^8.6.0",
|
||||||
"eslint": "^9.30.1",
|
"eslint": "^9.30.1",
|
||||||
"happy-dom": "^18.0.1",
|
"happy-dom": "^18.0.1",
|
||||||
"nuxt": "4.0.0-rc.0",
|
"nuxt": "^3.17.6",
|
||||||
"release-it": "^19.0.3",
|
"release-it": "^19.0.3",
|
||||||
"vitest": "^3.2.4",
|
"vitest": "^3.2.4",
|
||||||
"vitest-environment-nuxt": "^1.0.1",
|
"vitest-environment-nuxt": "^1.0.1",
|
||||||
|
|||||||
@@ -16,9 +16,9 @@
|
|||||||
"zod": "^3.25.75"
|
"zod": "^3.25.75"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@vitejs/plugin-vue": "^6.0.0",
|
"@vitejs/plugin-vue": "^5.2.4",
|
||||||
"typescript": "^5.8.3",
|
"typescript": "^5.8.3",
|
||||||
"vite": "^7.0.4",
|
"vite": "^6.3.5",
|
||||||
"vue-tsc": "^3.0.1"
|
"vue-tsc": "^3.0.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
"@internationalized/date": "^3.8.2",
|
"@internationalized/date": "^3.8.2",
|
||||||
"@nuxt/ui": "workspace:*",
|
"@nuxt/ui": "workspace:*",
|
||||||
"@nuxthub/core": "^0.9.0",
|
"@nuxthub/core": "^0.9.0",
|
||||||
"nuxt": "4.0.0-rc.0",
|
"nuxt": "^3.17.6",
|
||||||
"zod": "^3.25.75"
|
"zod": "^3.25.75"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|||||||
1484
pnpm-lock.yaml
generated
1484
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -6,9 +6,6 @@ import { name, version } from '../package.json'
|
|||||||
|
|
||||||
export type * from './runtime/types'
|
export type * from './runtime/types'
|
||||||
|
|
||||||
type Color = 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'error' | (string & {})
|
|
||||||
type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | (string & {})
|
|
||||||
|
|
||||||
export interface ModuleOptions {
|
export interface ModuleOptions {
|
||||||
/**
|
/**
|
||||||
* Prefix for components
|
* Prefix for components
|
||||||
@@ -41,7 +38,7 @@ export interface ModuleOptions {
|
|||||||
* @defaultValue `['primary', 'secondary', 'success', 'info', 'warning', 'error']`
|
* @defaultValue `['primary', 'secondary', 'success', 'info', 'warning', 'error']`
|
||||||
* @link https://ui.nuxt.com/getting-started/installation/nuxt#themecolors
|
* @link https://ui.nuxt.com/getting-started/installation/nuxt#themecolors
|
||||||
*/
|
*/
|
||||||
colors?: Color[]
|
colors?: string[]
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Enable or disable transitions on components
|
* Enable or disable transitions on components
|
||||||
@@ -49,20 +46,6 @@ export interface ModuleOptions {
|
|||||||
* @link https://ui.nuxt.com/getting-started/installation/nuxt#themetransitions
|
* @link https://ui.nuxt.com/getting-started/installation/nuxt#themetransitions
|
||||||
*/
|
*/
|
||||||
transitions?: boolean
|
transitions?: boolean
|
||||||
|
|
||||||
defaultVariants?: {
|
|
||||||
/**
|
|
||||||
* The default color variant to use for components
|
|
||||||
* @defaultValue `'primary'`
|
|
||||||
*/
|
|
||||||
color?: Color
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The default size variant to use for components
|
|
||||||
* @defaultValue `'md'`
|
|
||||||
*/
|
|
||||||
size?: Size
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -102,7 +85,7 @@ export default defineNuxtModule<ModuleOptions>({
|
|||||||
|
|
||||||
async function registerModule(name: string, key: string, options: Record<string, any>) {
|
async function registerModule(name: string, key: string, options: Record<string, any>) {
|
||||||
if (!hasNuxtModule(name)) {
|
if (!hasNuxtModule(name)) {
|
||||||
await installModule(name, defu((nuxt.options as any)[key], options))
|
await installModule(name, options)
|
||||||
} else {
|
} else {
|
||||||
(nuxt.options as any)[key] = defu((nuxt.options as any)[key], options)
|
(nuxt.options as any)[key] = defu((nuxt.options as any)[key], options)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -256,7 +256,6 @@ const scrollSnaps = ref<number[]>([])
|
|||||||
function onInit(api: EmblaCarouselType) {
|
function onInit(api: EmblaCarouselType) {
|
||||||
scrollSnaps.value = api?.scrollSnapList() || []
|
scrollSnaps.value = api?.scrollSnapList() || []
|
||||||
}
|
}
|
||||||
|
|
||||||
function onSelect(api: EmblaCarouselType) {
|
function onSelect(api: EmblaCarouselType) {
|
||||||
canScrollNext.value = api?.canScrollNext() || false
|
canScrollNext.value = api?.canScrollNext() || false
|
||||||
canScrollPrev.value = api?.canScrollPrev() || false
|
canScrollPrev.value = api?.canScrollPrev() || false
|
||||||
@@ -301,7 +300,8 @@ defineExpose({
|
|||||||
<div
|
<div
|
||||||
v-for="(item, index) in items"
|
v-for="(item, index) in items"
|
||||||
:key="index"
|
:key="index"
|
||||||
v-bind="dots ? { role: 'tabpanel' } : { 'role': 'group', 'aria-roledescription': 'slide' }"
|
role="group"
|
||||||
|
aria-roledescription="slide"
|
||||||
:class="ui.item({ class: [props.ui?.item, isCarouselItem(item) && item.ui?.item, isCarouselItem(item) && item.class] })"
|
:class="ui.item({ class: [props.ui?.item, isCarouselItem(item) && item.ui?.item, isCarouselItem(item) && item.class] })"
|
||||||
>
|
>
|
||||||
<slot :item="item" :index="index" />
|
<slot :item="item" :index="index" />
|
||||||
@@ -333,15 +333,13 @@ defineExpose({
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-if="dots" role="tablist" :aria-label="t('carousel.dots')" :class="ui.dots({ class: props.ui?.dots })">
|
<div v-if="dots" :class="ui.dots({ class: props.ui?.dots })">
|
||||||
<template v-for="(_, index) in scrollSnaps" :key="index">
|
<template v-for="(_, index) in scrollSnaps" :key="index">
|
||||||
<button
|
<button
|
||||||
type="button"
|
|
||||||
role="tab"
|
|
||||||
:aria-label="t('carousel.goto', { slide: index + 1 })"
|
:aria-label="t('carousel.goto', { slide: index + 1 })"
|
||||||
:aria-selected="selectedIndex === index"
|
|
||||||
:class="ui.dot({ class: props.ui?.dot, active: selectedIndex === index })"
|
:class="ui.dot({ class: props.ui?.dot, active: selectedIndex === index })"
|
||||||
:data-state="selectedIndex === index ? 'active' : undefined"
|
:data-state="selectedIndex === index ? 'active' : undefined"
|
||||||
|
:aria-current="selectedIndex === index ? true : undefined"
|
||||||
@click="scrollTo(index)"
|
@click="scrollTo(index)"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ export interface CommandPaletteProps<G extends CommandPaletteGroup<T> = CommandP
|
|||||||
* @defaultValue appConfig.ui.icons.chevronRight
|
* @defaultValue appConfig.ui.icons.chevronRight
|
||||||
* @IconifyIcon
|
* @IconifyIcon
|
||||||
*/
|
*/
|
||||||
trailingIcon?: string
|
itemTrailingIcon?: string
|
||||||
/**
|
/**
|
||||||
* The placeholder text for the input.
|
* The placeholder text for the input.
|
||||||
* @defaultValue t('commandPalette.placeholder')
|
* @defaultValue t('commandPalette.placeholder')
|
||||||
@@ -91,6 +91,12 @@ export interface CommandPaletteProps<G extends CommandPaletteGroup<T> = CommandP
|
|||||||
* @defaultValue true
|
* @defaultValue true
|
||||||
*/
|
*/
|
||||||
autofocus?: boolean
|
autofocus?: boolean
|
||||||
|
/**
|
||||||
|
* The icon displayed in the input.
|
||||||
|
* @defaultValue appConfig.ui.icons.search
|
||||||
|
* @IconifyIcon
|
||||||
|
*/
|
||||||
|
trailingIcon?: string
|
||||||
/**
|
/**
|
||||||
* Display a close button in the input (useful when inside a Modal for example).
|
* Display a close button in the input (useful when inside a Modal for example).
|
||||||
* `{ size: 'md', color: 'neutral', variant: 'ghost' }`{lang="ts-type"}
|
* `{ size: 'md', color: 'neutral', variant: 'ghost' }`{lang="ts-type"}
|
||||||
@@ -149,6 +155,7 @@ export type CommandPaletteSlots<G extends CommandPaletteGroup<T> = CommandPalett
|
|||||||
'empty'(props: { searchTerm?: string }): any
|
'empty'(props: { searchTerm?: string }): any
|
||||||
'footer'(props: { ui: { [K in keyof Required<CommandPalette['slots']>]: (props?: Record<string, any>) => string } }): any
|
'footer'(props: { ui: { [K in keyof Required<CommandPalette['slots']>]: (props?: Record<string, any>) => string } }): any
|
||||||
'back'(props: { ui: { [K in keyof Required<CommandPalette['slots']>]: (props?: Record<string, any>) => string } }): any
|
'back'(props: { ui: { [K in keyof Required<CommandPalette['slots']>]: (props?: Record<string, any>) => string } }): any
|
||||||
|
'actions'(props: { ui: { [K in keyof Required<CommandPalette['slots']>]: (props?: Record<string, any>) => string } }): any
|
||||||
'close'(props: { ui: { [K in keyof Required<CommandPalette['slots']>]: (props?: Record<string, any>) => string } }): any
|
'close'(props: { ui: { [K in keyof Required<CommandPalette['slots']>]: (props?: Record<string, any>) => string } }): any
|
||||||
'item': SlotProps<T>
|
'item': SlotProps<T>
|
||||||
'item-leading': SlotProps<T>
|
'item-leading': SlotProps<T>
|
||||||
@@ -337,6 +344,7 @@ function onSelect(e: Event, item: T) {
|
|||||||
:autofocus="autofocus"
|
:autofocus="autofocus"
|
||||||
v-bind="inputProps"
|
v-bind="inputProps"
|
||||||
:icon="icon || appConfig.ui.icons.search"
|
:icon="icon || appConfig.ui.icons.search"
|
||||||
|
:trailing-icon="trailingIcon"
|
||||||
:class="ui.input({ class: props.ui?.input })"
|
:class="ui.input({ class: props.ui?.input })"
|
||||||
@keydown.backspace="onBackspace"
|
@keydown.backspace="onBackspace"
|
||||||
>
|
>
|
||||||
@@ -354,7 +362,9 @@ function onSelect(e: Event, item: T) {
|
|||||||
</slot>
|
</slot>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template v-if="close || !!slots.close" #trailing>
|
<template v-if="trailingIcon || close || !!slots.close || !!slots.actions" #trailing>
|
||||||
|
<UIcon v-if="trailingIcon" :name="trailingIcon" :class="ui.trailingIcon({ class: props.ui?.trailingIcon })" />
|
||||||
|
<slot name="actions" :ui="ui" />
|
||||||
<slot name="close" :ui="ui">
|
<slot name="close" :ui="ui">
|
||||||
<UButton
|
<UButton
|
||||||
v-if="close"
|
v-if="close"
|
||||||
@@ -417,7 +427,7 @@ function onSelect(e: Event, item: T) {
|
|||||||
<slot :name="((item.slot ? `${item.slot}-trailing` : group.slot ? `${group.slot}-trailing` : `item-trailing`) as keyof CommandPaletteSlots<G, T>)" :item="(item as any)" :index="index">
|
<slot :name="((item.slot ? `${item.slot}-trailing` : group.slot ? `${group.slot}-trailing` : `item-trailing`) as keyof CommandPaletteSlots<G, T>)" :item="(item as any)" :index="index">
|
||||||
<UIcon
|
<UIcon
|
||||||
v-if="item.children && item.children.length > 0"
|
v-if="item.children && item.children.length > 0"
|
||||||
:name="trailingIcon || appConfig.ui.icons.chevronRight"
|
:name="itemTrailingIcon || appConfig.ui.icons.chevronRight"
|
||||||
:class="ui.itemTrailingIcon({ class: [props.ui?.itemTrailingIcon, item.ui?.itemTrailingIcon] })"
|
:class="ui.itemTrailingIcon({ class: [props.ui?.itemTrailingIcon, item.ui?.itemTrailingIcon] })"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ export interface FormFieldProps {
|
|||||||
label?: string
|
label?: string
|
||||||
description?: string
|
description?: string
|
||||||
help?: string
|
help?: string
|
||||||
error?: boolean | string
|
error?: string | boolean
|
||||||
hint?: string
|
hint?: string
|
||||||
/**
|
/**
|
||||||
* @defaultValue 'md'
|
* @defaultValue 'md'
|
||||||
@@ -41,8 +41,8 @@ export interface FormFieldSlots {
|
|||||||
hint(props: { hint?: string }): any
|
hint(props: { hint?: string }): any
|
||||||
description(props: { description?: string }): any
|
description(props: { description?: string }): any
|
||||||
help(props: { help?: string }): any
|
help(props: { help?: string }): any
|
||||||
error(props: { error?: boolean | string }): any
|
error(props: { error?: string | boolean }): any
|
||||||
default(props: { error?: boolean | string }): any
|
default(props: { error?: string | boolean }): any
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -177,8 +177,6 @@ import UBadge from './Badge.vue'
|
|||||||
import UPopover from './Popover.vue'
|
import UPopover from './Popover.vue'
|
||||||
import UTooltip from './Tooltip.vue'
|
import UTooltip from './Tooltip.vue'
|
||||||
|
|
||||||
defineOptions({ inheritAttrs: false })
|
|
||||||
|
|
||||||
const props = withDefaults(defineProps<NavigationMenuProps<T>>(), {
|
const props = withDefaults(defineProps<NavigationMenuProps<T>>(), {
|
||||||
orientation: 'horizontal',
|
orientation: 'horizontal',
|
||||||
contentOrientation: 'horizontal',
|
contentOrientation: 'horizontal',
|
||||||
@@ -394,7 +392,7 @@ function getAccordionDefaultValue(list: NavigationMenuItem[], level = 0) {
|
|||||||
</component>
|
</component>
|
||||||
</DefineItemTemplate>
|
</DefineItemTemplate>
|
||||||
|
|
||||||
<NavigationMenuRoot v-bind="{ ...rootProps, ...$attrs }" :data-collapsed="collapsed" :class="ui.root({ class: [props.ui?.root, props.class] })">
|
<NavigationMenuRoot v-bind="rootProps" :data-collapsed="collapsed" :class="ui.root({ class: [props.ui?.root, props.class] })">
|
||||||
<slot name="list-leading" />
|
<slot name="list-leading" />
|
||||||
|
|
||||||
<template v-for="(list, listIndex) in lists" :key="`list-${listIndex}`">
|
<template v-for="(list, listIndex) in lists" :key="`list-${listIndex}`">
|
||||||
|
|||||||
@@ -107,8 +107,6 @@ import { get } from '../utils'
|
|||||||
import { tv } from '../utils/tv'
|
import { tv } from '../utils/tv'
|
||||||
import UIcon from './Icon.vue'
|
import UIcon from './Icon.vue'
|
||||||
|
|
||||||
defineOptions({ inheritAttrs: false })
|
|
||||||
|
|
||||||
const props = withDefaults(defineProps<TreeProps<T, VK, M>>(), {
|
const props = withDefaults(defineProps<TreeProps<T, VK, M>>(), {
|
||||||
labelKey: 'label' as never,
|
labelKey: 'label' as never,
|
||||||
valueKey: 'value' as never
|
valueKey: 'value' as never
|
||||||
@@ -163,7 +161,7 @@ const defaultExpanded = computed(() =>
|
|||||||
@toggle="item.onToggle"
|
@toggle="item.onToggle"
|
||||||
@select="item.onSelect"
|
@select="item.onSelect"
|
||||||
>
|
>
|
||||||
<button type="button" :disabled="item.disabled || disabled" :class="ui.link({ class: [props.ui?.link, item.ui?.link, item.class], selected: isSelected, disabled: item.disabled || disabled })">
|
<button :disabled="item.disabled || disabled" :class="ui.link({ class: [props.ui?.link, item.ui?.link, item.class], selected: isSelected, disabled: item.disabled || disabled })">
|
||||||
<slot :name="((item.slot || 'item') as keyof TreeSlots<T>)" v-bind="{ index, level, expanded: isExpanded, selected: isSelected }" :item="(item as Extract<NestedItem<T>, { slot: string; }>)">
|
<slot :name="((item.slot || 'item') as keyof TreeSlots<T>)" v-bind="{ index, level, expanded: isExpanded, selected: isSelected }" :item="(item as Extract<NestedItem<T>, { slot: string; }>)">
|
||||||
<slot :name="((item.slot ? `${item.slot}-leading`: 'item-leading') as keyof TreeSlots<T>)" v-bind="{ index, level, expanded: isExpanded, selected: isSelected }" :item="(item as Extract<NestedItem<T>, { slot: string; }>)">
|
<slot :name="((item.slot ? `${item.slot}-leading`: 'item-leading') as keyof TreeSlots<T>)" v-bind="{ index, level, expanded: isExpanded, selected: isSelected }" :item="(item as Extract<NestedItem<T>, { slot: string; }>)">
|
||||||
<UIcon
|
<UIcon
|
||||||
@@ -201,7 +199,7 @@ const defaultExpanded = computed(() =>
|
|||||||
</DefineTreeTemplate>
|
</DefineTreeTemplate>
|
||||||
|
|
||||||
<TreeRoot
|
<TreeRoot
|
||||||
v-bind="{ ...(rootProps as unknown as TreeRootProps<NestedItem<T>>), ...$attrs }"
|
v-bind="(rootProps as unknown as TreeRootProps<NestedItem<T>>)"
|
||||||
:class="ui.root({ class: [props.ui?.root, props.class] })"
|
:class="ui.root({ class: [props.ui?.root, props.class] })"
|
||||||
:get-key="getItemValue"
|
:get-key="getItemValue"
|
||||||
:default-expanded="defaultExpanded"
|
:default-expanded="defaultExpanded"
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ function _useOverlay() {
|
|||||||
isMounted: !!defaultOpen,
|
isMounted: !!defaultOpen,
|
||||||
destroyOnClose: !!destroyOnClose,
|
destroyOnClose: !!destroyOnClose,
|
||||||
originalProps: props || {},
|
originalProps: props || {},
|
||||||
props: { ...props }
|
props: { ...(props || {}) }
|
||||||
})
|
})
|
||||||
|
|
||||||
overlays.push(options)
|
overlays.push(options)
|
||||||
@@ -87,11 +87,11 @@ function _useOverlay() {
|
|||||||
const open = <T extends Component>(id: symbol, props?: ComponentProps<T>): OpenedOverlay<T> => {
|
const open = <T extends Component>(id: symbol, props?: ComponentProps<T>): OpenedOverlay<T> => {
|
||||||
const overlay = getOverlay(id)
|
const overlay = getOverlay(id)
|
||||||
|
|
||||||
// If props are provided, merge them with the original props, otherwise use the original props
|
// If props are provided, update the overlay's props
|
||||||
if (props) {
|
if (props) {
|
||||||
overlay.props = { ...overlay.originalProps, ...props }
|
patch(overlay.id, props)
|
||||||
} else {
|
} else {
|
||||||
overlay.props = { ...overlay.originalProps }
|
patch(overlay.id, overlay.originalProps)
|
||||||
}
|
}
|
||||||
|
|
||||||
overlay.isOpen = true
|
overlay.isOpen = true
|
||||||
@@ -135,7 +135,7 @@ function _useOverlay() {
|
|||||||
const patch = <T extends Component>(id: symbol, props: Partial<ComponentProps<T>>): void => {
|
const patch = <T extends Component>(id: symbol, props: Partial<ComponentProps<T>>): void => {
|
||||||
const overlay = getOverlay(id)
|
const overlay = getOverlay(id)
|
||||||
|
|
||||||
overlay.props = { ...overlay.props, ...props }
|
overlay.props = { ...props }
|
||||||
}
|
}
|
||||||
|
|
||||||
const getOverlay = (id: symbol): Overlay => {
|
const getOverlay = (id: symbol): Overlay => {
|
||||||
|
|||||||
@@ -1,10 +1,11 @@
|
|||||||
import { ref, onScopeDispose } from 'vue'
|
import { ref, onScopeDispose } from 'vue'
|
||||||
import type { Ref, Plugin as VuePlugin } from 'vue'
|
import type { Ref, Plugin as VuePlugin } from 'vue'
|
||||||
import { createHooks } from 'hookable'
|
import { createHooks } from 'hookable'
|
||||||
import { usePage } from '@inertiajs/vue3'
|
|
||||||
import { useColorMode as useColorModeVueUse } from '@vueuse/core'
|
|
||||||
import appConfig from '#build/app.config'
|
import appConfig from '#build/app.config'
|
||||||
import type { NuxtApp } from '#app'
|
import type { NuxtApp } from '#app'
|
||||||
|
import { useColorMode as useColorModeVueUse } from '@vueuse/core'
|
||||||
|
import { usePage } from '@inertiajs/vue3'
|
||||||
|
|
||||||
export { useHead } from '@unhead/vue'
|
export { useHead } from '@unhead/vue'
|
||||||
|
|
||||||
@@ -15,7 +16,6 @@ export { useLocale } from '../composables/useLocale'
|
|||||||
|
|
||||||
export const useRoute = () => {
|
export const useRoute = () => {
|
||||||
const page = usePage()
|
const page = usePage()
|
||||||
|
|
||||||
return {
|
return {
|
||||||
fullPath: page.url
|
fullPath: page.url
|
||||||
}
|
}
|
||||||
@@ -25,10 +25,6 @@ export const useRouter = () => {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export const clearError = () => {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
export const useColorMode = () => {
|
export const useColorMode = () => {
|
||||||
if (!appConfig.colorMode) {
|
if (!appConfig.colorMode) {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -40,8 +40,7 @@ export default defineLocale<Messages>({
|
|||||||
carousel: {
|
carousel: {
|
||||||
prev: 'السابق',
|
prev: 'السابق',
|
||||||
next: 'التالي',
|
next: 'التالي',
|
||||||
dots: 'اختر الشريحة المراد عرضها',
|
goto: 'الذهاب إلي شريحة {slide}'
|
||||||
goto: 'الذهاب إلى شريحة {slide}'
|
|
||||||
},
|
},
|
||||||
modal: {
|
modal: {
|
||||||
close: 'إغلاق'
|
close: 'إغلاق'
|
||||||
|
|||||||
@@ -39,7 +39,6 @@ export default defineLocale<Messages>({
|
|||||||
carousel: {
|
carousel: {
|
||||||
prev: 'Əvvəlki',
|
prev: 'Əvvəlki',
|
||||||
next: 'Növbəti',
|
next: 'Növbəti',
|
||||||
dots: 'Göstərmək üçün slayd seçin',
|
|
||||||
goto: 'Slayd {slide} keç'
|
goto: 'Slayd {slide} keç'
|
||||||
},
|
},
|
||||||
modal: {
|
modal: {
|
||||||
|
|||||||
@@ -39,7 +39,6 @@ export default defineLocale<Messages>({
|
|||||||
carousel: {
|
carousel: {
|
||||||
prev: 'Назад',
|
prev: 'Назад',
|
||||||
next: 'Напред',
|
next: 'Напред',
|
||||||
dots: 'Изберете слайд за показване',
|
|
||||||
goto: 'Отидете на слайд {slide}'
|
goto: 'Отидете на слайд {slide}'
|
||||||
},
|
},
|
||||||
modal: {
|
modal: {
|
||||||
|
|||||||
@@ -39,7 +39,6 @@ export default defineLocale<Messages>({
|
|||||||
carousel: {
|
carousel: {
|
||||||
prev: 'পূর্ববর্তী',
|
prev: 'পূর্ববর্তী',
|
||||||
next: 'পরবর্তী',
|
next: 'পরবর্তী',
|
||||||
dots: 'প্রদর্শনের জন্য স্লাইড নির্বাচন করুন',
|
|
||||||
goto: 'স্লাইড {slide} এ যান'
|
goto: 'স্লাইড {slide} এ যান'
|
||||||
},
|
},
|
||||||
modal: {
|
modal: {
|
||||||
|
|||||||
@@ -39,7 +39,6 @@ export default defineLocale<Messages>({
|
|||||||
carousel: {
|
carousel: {
|
||||||
prev: 'Anterior',
|
prev: 'Anterior',
|
||||||
next: 'Següent',
|
next: 'Següent',
|
||||||
dots: 'Tria la diapositiva a mostrar',
|
|
||||||
goto: 'Anar a la diapositiva {slide}'
|
goto: 'Anar a la diapositiva {slide}'
|
||||||
},
|
},
|
||||||
modal: {
|
modal: {
|
||||||
|
|||||||
@@ -38,9 +38,8 @@ export default defineLocale<Messages>({
|
|||||||
close: 'داخستن'
|
close: 'داخستن'
|
||||||
},
|
},
|
||||||
carousel: {
|
carousel: {
|
||||||
prev: 'پێشووی',
|
prev: 'پێشوو',
|
||||||
next: 'داهاتوو',
|
next: 'داهاتوو',
|
||||||
dots: 'سلایدێک هەڵبژێرە بۆ پیشاندان',
|
|
||||||
goto: 'بڕۆ بۆ سلایدی {slide}'
|
goto: 'بڕۆ بۆ سلایدی {slide}'
|
||||||
},
|
},
|
||||||
modal: {
|
modal: {
|
||||||
|
|||||||
@@ -39,7 +39,6 @@ export default defineLocale<Messages>({
|
|||||||
carousel: {
|
carousel: {
|
||||||
prev: 'Předchozí',
|
prev: 'Předchozí',
|
||||||
next: 'Další',
|
next: 'Další',
|
||||||
dots: 'Vyberte snímek k zobrazení',
|
|
||||||
goto: 'Přejít na {slide}'
|
goto: 'Přejít na {slide}'
|
||||||
},
|
},
|
||||||
modal: {
|
modal: {
|
||||||
|
|||||||
@@ -39,7 +39,6 @@ export default defineLocale<Messages>({
|
|||||||
carousel: {
|
carousel: {
|
||||||
prev: 'Forrige',
|
prev: 'Forrige',
|
||||||
next: 'Næste',
|
next: 'Næste',
|
||||||
dots: 'Vælg dias til visning',
|
|
||||||
goto: 'Gå til slide {slide}'
|
goto: 'Gå til slide {slide}'
|
||||||
},
|
},
|
||||||
modal: {
|
modal: {
|
||||||
|
|||||||
@@ -39,7 +39,6 @@ export default defineLocale<Messages>({
|
|||||||
carousel: {
|
carousel: {
|
||||||
prev: 'Zurück',
|
prev: 'Zurück',
|
||||||
next: 'Weiter',
|
next: 'Weiter',
|
||||||
dots: 'Folie zur Anzeige auswählen',
|
|
||||||
goto: 'Gehe zu {slide}'
|
goto: 'Gehe zu {slide}'
|
||||||
},
|
},
|
||||||
modal: {
|
modal: {
|
||||||
|
|||||||
@@ -39,7 +39,6 @@ export default defineLocale<Messages>({
|
|||||||
carousel: {
|
carousel: {
|
||||||
prev: 'Προηγούμενο',
|
prev: 'Προηγούμενο',
|
||||||
next: 'Επόμενο',
|
next: 'Επόμενο',
|
||||||
dots: 'Επιλέξτε διαφάνεια για εμφάνιση',
|
|
||||||
goto: 'Μετάβαση στη διαφάνεια {slide}'
|
goto: 'Μετάβαση στη διαφάνεια {slide}'
|
||||||
},
|
},
|
||||||
modal: {
|
modal: {
|
||||||
|
|||||||
@@ -39,7 +39,6 @@ export default defineLocale<Messages>({
|
|||||||
carousel: {
|
carousel: {
|
||||||
prev: 'Prev',
|
prev: 'Prev',
|
||||||
next: 'Next',
|
next: 'Next',
|
||||||
dots: 'Choose slide to display',
|
|
||||||
goto: 'Go to slide {slide}'
|
goto: 'Go to slide {slide}'
|
||||||
},
|
},
|
||||||
modal: {
|
modal: {
|
||||||
|
|||||||
@@ -39,7 +39,6 @@ export default defineLocale<Messages>({
|
|||||||
carousel: {
|
carousel: {
|
||||||
prev: 'Anterior',
|
prev: 'Anterior',
|
||||||
next: 'Siguiente',
|
next: 'Siguiente',
|
||||||
dots: 'Elegir diapositiva a mostrar',
|
|
||||||
goto: 'Ir a la diapositiva {slide}'
|
goto: 'Ir a la diapositiva {slide}'
|
||||||
},
|
},
|
||||||
modal: {
|
modal: {
|
||||||
|
|||||||
@@ -39,7 +39,6 @@ export default defineLocale<Messages>({
|
|||||||
carousel: {
|
carousel: {
|
||||||
prev: 'Eel',
|
prev: 'Eel',
|
||||||
next: 'Järg',
|
next: 'Järg',
|
||||||
dots: 'Valige kuvatav slaid',
|
|
||||||
goto: 'Mine slaidile {slide}'
|
goto: 'Mine slaidile {slide}'
|
||||||
},
|
},
|
||||||
modal: {
|
modal: {
|
||||||
|
|||||||
@@ -40,7 +40,6 @@ export default defineLocale<Messages>({
|
|||||||
carousel: {
|
carousel: {
|
||||||
prev: 'قبلی',
|
prev: 'قبلی',
|
||||||
next: 'بعدی',
|
next: 'بعدی',
|
||||||
dots: 'اسلاید مورد نظر برای نمایش را انتخاب کنید',
|
|
||||||
goto: 'رفتن به اسلاید {slide}'
|
goto: 'رفتن به اسلاید {slide}'
|
||||||
},
|
},
|
||||||
modal: {
|
modal: {
|
||||||
|
|||||||
@@ -39,7 +39,6 @@ export default defineLocale<Messages>({
|
|||||||
carousel: {
|
carousel: {
|
||||||
prev: 'Edellinen',
|
prev: 'Edellinen',
|
||||||
next: 'Seuraava',
|
next: 'Seuraava',
|
||||||
dots: 'Valitse näytettävä dia',
|
|
||||||
goto: 'Siirry sivulle {slide}'
|
goto: 'Siirry sivulle {slide}'
|
||||||
},
|
},
|
||||||
modal: {
|
modal: {
|
||||||
|
|||||||
@@ -39,7 +39,6 @@ export default defineLocale<Messages>({
|
|||||||
carousel: {
|
carousel: {
|
||||||
prev: 'Précédent',
|
prev: 'Précédent',
|
||||||
next: 'Suivant',
|
next: 'Suivant',
|
||||||
dots: 'Choisir la diapositive à afficher',
|
|
||||||
goto: 'Aller à {slide}'
|
goto: 'Aller à {slide}'
|
||||||
},
|
},
|
||||||
modal: {
|
modal: {
|
||||||
|
|||||||
@@ -38,7 +38,6 @@ export default defineLocale<Messages>({
|
|||||||
carousel: {
|
carousel: {
|
||||||
prev: 'הקודם',
|
prev: 'הקודם',
|
||||||
next: 'הבא',
|
next: 'הבא',
|
||||||
dots: 'בחר שקופית להצגה',
|
|
||||||
goto: 'מעבר ל {slide}'
|
goto: 'מעבר ל {slide}'
|
||||||
},
|
},
|
||||||
modal: {
|
modal: {
|
||||||
|
|||||||
@@ -39,8 +39,7 @@ export default defineLocale<Messages>({
|
|||||||
carousel: {
|
carousel: {
|
||||||
prev: 'पिछला',
|
prev: 'पिछला',
|
||||||
next: 'अगला',
|
next: 'अगला',
|
||||||
dots: 'प्रदर्शित करने के लिए स्लाइड चुनें',
|
goto: 'स्लाइड {slide} पर जाएँ'
|
||||||
goto: 'स्लाइड {slide} पर जाएं'
|
|
||||||
},
|
},
|
||||||
modal: {
|
modal: {
|
||||||
close: 'बंद करें'
|
close: 'बंद करें'
|
||||||
|
|||||||
@@ -39,7 +39,6 @@ export default defineLocale<Messages>({
|
|||||||
carousel: {
|
carousel: {
|
||||||
prev: 'Előző',
|
prev: 'Előző',
|
||||||
next: 'Következő',
|
next: 'Következő',
|
||||||
dots: 'Válassza ki a megjelenítendő diát',
|
|
||||||
goto: 'Ugrás ide {slide}'
|
goto: 'Ugrás ide {slide}'
|
||||||
},
|
},
|
||||||
modal: {
|
modal: {
|
||||||
|
|||||||
@@ -39,7 +39,6 @@ export default defineLocale<Messages>({
|
|||||||
carousel: {
|
carousel: {
|
||||||
prev: 'Հետ',
|
prev: 'Հետ',
|
||||||
next: 'Առաջ',
|
next: 'Առաջ',
|
||||||
dots: 'Ընտրեք ցուցադրելու սլայդը',
|
|
||||||
goto: 'Անցնել {slide}-ին'
|
goto: 'Անցնել {slide}-ին'
|
||||||
},
|
},
|
||||||
modal: {
|
modal: {
|
||||||
|
|||||||
@@ -39,7 +39,6 @@ export default defineLocale<Messages>({
|
|||||||
carousel: {
|
carousel: {
|
||||||
prev: 'Sebelumnya',
|
prev: 'Sebelumnya',
|
||||||
next: 'Berikutnya',
|
next: 'Berikutnya',
|
||||||
dots: 'Pilih slide untuk ditampilkan',
|
|
||||||
goto: 'Pergi ke slide {slide}'
|
goto: 'Pergi ke slide {slide}'
|
||||||
},
|
},
|
||||||
modal: {
|
modal: {
|
||||||
|
|||||||
@@ -39,7 +39,6 @@ export default defineLocale<Messages>({
|
|||||||
carousel: {
|
carousel: {
|
||||||
prev: 'Precedente',
|
prev: 'Precedente',
|
||||||
next: 'Successiva',
|
next: 'Successiva',
|
||||||
dots: 'Scegli diapositiva da visualizzare',
|
|
||||||
goto: 'Vai alla slide {slide}'
|
goto: 'Vai alla slide {slide}'
|
||||||
},
|
},
|
||||||
modal: {
|
modal: {
|
||||||
|
|||||||
@@ -39,7 +39,6 @@ export default defineLocale<Messages>({
|
|||||||
carousel: {
|
carousel: {
|
||||||
prev: '前へ',
|
prev: '前へ',
|
||||||
next: '次へ',
|
next: '次へ',
|
||||||
dots: '表示するスライドを選択',
|
|
||||||
goto: 'スライド {slide} に移動'
|
goto: 'スライド {slide} に移動'
|
||||||
},
|
},
|
||||||
modal: {
|
modal: {
|
||||||
|
|||||||
@@ -39,7 +39,6 @@ export default defineLocale<Messages>({
|
|||||||
carousel: {
|
carousel: {
|
||||||
prev: 'Алдыңғы',
|
prev: 'Алдыңғы',
|
||||||
next: 'Келесі',
|
next: 'Келесі',
|
||||||
dots: 'Көрсету үшін слайдты таңдаңыз',
|
|
||||||
goto: '{slide} слайдқа өту'
|
goto: '{slide} слайдқа өту'
|
||||||
},
|
},
|
||||||
modal: {
|
modal: {
|
||||||
|
|||||||
@@ -39,8 +39,7 @@ export default defineLocale<Messages>({
|
|||||||
carousel: {
|
carousel: {
|
||||||
prev: 'មុន',
|
prev: 'មុន',
|
||||||
next: 'បន្ទាប់',
|
next: 'បន្ទាប់',
|
||||||
dots: 'ជ្រើសរើសស្លាយដើម្បីបង្ហាញ',
|
goto: 'លោតទៅកាន់ស្លាយ {slide}'
|
||||||
goto: 'ឡើងទៅស្លាយ {slide}'
|
|
||||||
},
|
},
|
||||||
modal: {
|
modal: {
|
||||||
close: 'បិទ'
|
close: 'បិទ'
|
||||||
|
|||||||
@@ -39,7 +39,6 @@ export default defineLocale<Messages>({
|
|||||||
carousel: {
|
carousel: {
|
||||||
prev: '이전',
|
prev: '이전',
|
||||||
next: '다음',
|
next: '다음',
|
||||||
dots: '표시할 슬라이드 선택',
|
|
||||||
goto: '{slide} 페이지로 이동'
|
goto: '{slide} 페이지로 이동'
|
||||||
},
|
},
|
||||||
modal: {
|
modal: {
|
||||||
|
|||||||
@@ -39,7 +39,6 @@ export default defineLocale<Messages>({
|
|||||||
carousel: {
|
carousel: {
|
||||||
prev: 'Алдыңкы',
|
prev: 'Алдыңкы',
|
||||||
next: 'Кийинки',
|
next: 'Кийинки',
|
||||||
dots: 'Көрсөтүү үчүн слайдды тандаңыз',
|
|
||||||
goto: '{slide} слайдга өтүү'
|
goto: '{slide} слайдга өтүү'
|
||||||
},
|
},
|
||||||
modal: {
|
modal: {
|
||||||
|
|||||||
@@ -39,7 +39,6 @@ export default defineLocale<Messages>({
|
|||||||
carousel: {
|
carousel: {
|
||||||
prev: 'Präz.',
|
prev: 'Präz.',
|
||||||
next: 'Näch.',
|
next: 'Näch.',
|
||||||
dots: 'Wielt Dia fir ze weisen',
|
|
||||||
goto: 'Gitt op d\'Slide {Slide}'
|
goto: 'Gitt op d\'Slide {Slide}'
|
||||||
},
|
},
|
||||||
modal: {
|
modal: {
|
||||||
|
|||||||
@@ -39,7 +39,6 @@ export default defineLocale<Messages>({
|
|||||||
carousel: {
|
carousel: {
|
||||||
prev: 'Atgal',
|
prev: 'Atgal',
|
||||||
next: 'Pirmyn',
|
next: 'Pirmyn',
|
||||||
dots: 'Pasirinkite skaidrę rodymui',
|
|
||||||
goto: 'Eiti į skaidrę {slide}'
|
goto: 'Eiti į skaidrę {slide}'
|
||||||
},
|
},
|
||||||
modal: {
|
modal: {
|
||||||
|
|||||||
@@ -39,7 +39,6 @@ export default defineLocale<Messages>({
|
|||||||
carousel: {
|
carousel: {
|
||||||
prev: 'Өмнөх',
|
prev: 'Өмнөх',
|
||||||
next: 'Дараах',
|
next: 'Дараах',
|
||||||
dots: 'Харуулах слайдыг сонгоно уу',
|
|
||||||
goto: '{slide}-р хуудсанд шилжих'
|
goto: '{slide}-р хуудсанд шилжих'
|
||||||
},
|
},
|
||||||
modal: {
|
modal: {
|
||||||
|
|||||||
@@ -39,7 +39,6 @@ export default defineLocale<Messages>({
|
|||||||
carousel: {
|
carousel: {
|
||||||
prev: 'Sebelum',
|
prev: 'Sebelum',
|
||||||
next: 'Seterusnya',
|
next: 'Seterusnya',
|
||||||
dots: 'Pilih slaid untuk dipaparkan',
|
|
||||||
goto: 'Pergi ke slaid {slide}'
|
goto: 'Pergi ke slaid {slide}'
|
||||||
},
|
},
|
||||||
modal: {
|
modal: {
|
||||||
|
|||||||
@@ -39,7 +39,6 @@ export default defineLocale<Messages>({
|
|||||||
carousel: {
|
carousel: {
|
||||||
prev: 'Forrige',
|
prev: 'Forrige',
|
||||||
next: 'Neste',
|
next: 'Neste',
|
||||||
dots: 'Velg lysbilde som skal vises',
|
|
||||||
goto: 'Gå til lysbilde {slide}'
|
goto: 'Gå til lysbilde {slide}'
|
||||||
},
|
},
|
||||||
modal: {
|
modal: {
|
||||||
|
|||||||
@@ -39,7 +39,6 @@ export default defineLocale<Messages>({
|
|||||||
carousel: {
|
carousel: {
|
||||||
prev: 'Vorige',
|
prev: 'Vorige',
|
||||||
next: 'Volgende',
|
next: 'Volgende',
|
||||||
dots: 'Kies dia om weer te geven',
|
|
||||||
goto: 'Ga naar dia {slide}'
|
goto: 'Ga naar dia {slide}'
|
||||||
},
|
},
|
||||||
modal: {
|
modal: {
|
||||||
|
|||||||
@@ -39,7 +39,6 @@ export default defineLocale<Messages>({
|
|||||||
carousel: {
|
carousel: {
|
||||||
prev: 'Poprzedni',
|
prev: 'Poprzedni',
|
||||||
next: 'Następny',
|
next: 'Następny',
|
||||||
dots: 'Wybierz slajd do wyświetlenia',
|
|
||||||
goto: 'Idź do {slide}'
|
goto: 'Idź do {slide}'
|
||||||
},
|
},
|
||||||
modal: {
|
modal: {
|
||||||
|
|||||||
@@ -39,7 +39,6 @@ export default defineLocale<Messages>({
|
|||||||
carousel: {
|
carousel: {
|
||||||
prev: 'Anterior',
|
prev: 'Anterior',
|
||||||
next: 'Próximo',
|
next: 'Próximo',
|
||||||
dots: 'Escolher slide para exibir',
|
|
||||||
goto: 'Ir ao diapositivo {slide}'
|
goto: 'Ir ao diapositivo {slide}'
|
||||||
},
|
},
|
||||||
modal: {
|
modal: {
|
||||||
|
|||||||
@@ -39,7 +39,6 @@ export default defineLocale<Messages>({
|
|||||||
carousel: {
|
carousel: {
|
||||||
prev: 'Anterior',
|
prev: 'Anterior',
|
||||||
next: 'Próximo',
|
next: 'Próximo',
|
||||||
dots: 'Escolher slide para exibir',
|
|
||||||
goto: 'Ir para a slide {slide}'
|
goto: 'Ir para a slide {slide}'
|
||||||
},
|
},
|
||||||
modal: {
|
modal: {
|
||||||
|
|||||||
@@ -39,7 +39,6 @@ export default defineLocale<Messages>({
|
|||||||
carousel: {
|
carousel: {
|
||||||
prev: 'Anterior',
|
prev: 'Anterior',
|
||||||
next: 'Următor',
|
next: 'Următor',
|
||||||
dots: 'Alegeți diapozitivul de afișat',
|
|
||||||
goto: 'Mergi la diapozitivul {slide}'
|
goto: 'Mergi la diapozitivul {slide}'
|
||||||
},
|
},
|
||||||
modal: {
|
modal: {
|
||||||
|
|||||||
@@ -39,7 +39,6 @@ export default defineLocale<Messages>({
|
|||||||
carousel: {
|
carousel: {
|
||||||
prev: 'Назад',
|
prev: 'Назад',
|
||||||
next: 'Далее',
|
next: 'Далее',
|
||||||
dots: 'Выберите слайд для отображения',
|
|
||||||
goto: 'Перейти к {slide}'
|
goto: 'Перейти к {slide}'
|
||||||
},
|
},
|
||||||
modal: {
|
modal: {
|
||||||
|
|||||||
@@ -39,7 +39,6 @@ export default defineLocale<Messages>({
|
|||||||
carousel: {
|
carousel: {
|
||||||
prev: 'Predchádzajúci',
|
prev: 'Predchádzajúci',
|
||||||
next: 'Nasledujúci',
|
next: 'Nasledujúci',
|
||||||
dots: 'Vyberte snímku na zobrazenie',
|
|
||||||
goto: 'Prejsť na {slide}'
|
goto: 'Prejsť na {slide}'
|
||||||
},
|
},
|
||||||
modal: {
|
modal: {
|
||||||
|
|||||||
@@ -39,7 +39,6 @@ export default defineLocale<Messages>({
|
|||||||
carousel: {
|
carousel: {
|
||||||
prev: 'Nazaj',
|
prev: 'Nazaj',
|
||||||
next: 'Naprej',
|
next: 'Naprej',
|
||||||
dots: 'Izberite diapozitiv za prikaz',
|
|
||||||
goto: 'Pojdi na {slide}'
|
goto: 'Pojdi na {slide}'
|
||||||
},
|
},
|
||||||
modal: {
|
modal: {
|
||||||
|
|||||||
@@ -39,7 +39,6 @@ export default defineLocale<Messages>({
|
|||||||
carousel: {
|
carousel: {
|
||||||
prev: 'Föregående',
|
prev: 'Föregående',
|
||||||
next: 'Nästa',
|
next: 'Nästa',
|
||||||
dots: 'Välj bild att visa',
|
|
||||||
goto: 'Gå till {slide}'
|
goto: 'Gå till {slide}'
|
||||||
},
|
},
|
||||||
modal: {
|
modal: {
|
||||||
|
|||||||
@@ -39,7 +39,6 @@ export default defineLocale<Messages>({
|
|||||||
carousel: {
|
carousel: {
|
||||||
prev: 'ย้อนกลับ',
|
prev: 'ย้อนกลับ',
|
||||||
next: 'ถัดไป',
|
next: 'ถัดไป',
|
||||||
dots: 'เลือกสไลด์ที่จะแสดง',
|
|
||||||
goto: 'ไปที่ {slide}'
|
goto: 'ไปที่ {slide}'
|
||||||
},
|
},
|
||||||
modal: {
|
modal: {
|
||||||
|
|||||||
@@ -39,7 +39,6 @@ export default defineLocale<Messages>({
|
|||||||
carousel: {
|
carousel: {
|
||||||
prev: 'Қаблӣ',
|
prev: 'Қаблӣ',
|
||||||
next: 'Баъдӣ',
|
next: 'Баъдӣ',
|
||||||
dots: 'Слайдро барои намоиш интихоб кунед',
|
|
||||||
goto: 'Ба слайди {slide} гузаред'
|
goto: 'Ба слайди {slide} гузаред'
|
||||||
},
|
},
|
||||||
modal: {
|
modal: {
|
||||||
|
|||||||
@@ -39,7 +39,6 @@ export default defineLocale<Messages>({
|
|||||||
carousel: {
|
carousel: {
|
||||||
prev: 'Önceki',
|
prev: 'Önceki',
|
||||||
next: 'Sonraki',
|
next: 'Sonraki',
|
||||||
dots: 'Görüntülenecek slaydı seçin',
|
|
||||||
goto: '{slide}. slayda git'
|
goto: '{slide}. slayda git'
|
||||||
},
|
},
|
||||||
modal: {
|
modal: {
|
||||||
|
|||||||
@@ -40,7 +40,6 @@ export default defineLocale<Messages>({
|
|||||||
carousel: {
|
carousel: {
|
||||||
prev: 'ئالدىنقى بەت',
|
prev: 'ئالدىنقى بەت',
|
||||||
next: 'كېيىنكى بەت',
|
next: 'كېيىنكى بەت',
|
||||||
dots: 'كۆرسىتىدىغان سلايدنى تاللاڭ',
|
|
||||||
goto: '{slide}-بەتكە ئاتلاش'
|
goto: '{slide}-بەتكە ئاتلاش'
|
||||||
},
|
},
|
||||||
modal: {
|
modal: {
|
||||||
|
|||||||
@@ -39,7 +39,6 @@ export default defineLocale<Messages>({
|
|||||||
carousel: {
|
carousel: {
|
||||||
prev: 'Назад',
|
prev: 'Назад',
|
||||||
next: 'Далі',
|
next: 'Далі',
|
||||||
dots: 'Виберіть слайд для відображення',
|
|
||||||
goto: 'Перейти до {slide}'
|
goto: 'Перейти до {slide}'
|
||||||
},
|
},
|
||||||
modal: {
|
modal: {
|
||||||
|
|||||||
@@ -40,7 +40,6 @@ export default defineLocale<Messages>({
|
|||||||
carousel: {
|
carousel: {
|
||||||
prev: 'پچھلا',
|
prev: 'پچھلا',
|
||||||
next: 'اگلا',
|
next: 'اگلا',
|
||||||
dots: 'دکھانے کے لیے سلائیڈ منتخب کریں',
|
|
||||||
goto: 'سلائیڈ {slide} پر جائیں'
|
goto: 'سلائیڈ {slide} پر جائیں'
|
||||||
},
|
},
|
||||||
modal: {
|
modal: {
|
||||||
|
|||||||
@@ -39,7 +39,6 @@ export default defineLocale<Messages>({
|
|||||||
carousel: {
|
carousel: {
|
||||||
prev: 'Ortga',
|
prev: 'Ortga',
|
||||||
next: 'Oldinga',
|
next: 'Oldinga',
|
||||||
dots: 'Koʻrsatish uchun slaydni tanlang',
|
|
||||||
goto: '{slide}-slaydga o‘tish'
|
goto: '{slide}-slaydga o‘tish'
|
||||||
},
|
},
|
||||||
modal: {
|
modal: {
|
||||||
|
|||||||
@@ -39,7 +39,6 @@ export default defineLocale<Messages>({
|
|||||||
carousel: {
|
carousel: {
|
||||||
prev: 'Trước',
|
prev: 'Trước',
|
||||||
next: 'Sau',
|
next: 'Sau',
|
||||||
dots: 'Chọn slide để hiển thị',
|
|
||||||
goto: 'Đi tới ô {slide}'
|
goto: 'Đi tới ô {slide}'
|
||||||
},
|
},
|
||||||
modal: {
|
modal: {
|
||||||
|
|||||||
@@ -39,7 +39,6 @@ export default defineLocale<Messages>({
|
|||||||
carousel: {
|
carousel: {
|
||||||
prev: '上一页',
|
prev: '上一页',
|
||||||
next: '下一页',
|
next: '下一页',
|
||||||
dots: '选择要显示的幻灯片',
|
|
||||||
goto: '跳转到第 {slide} 页'
|
goto: '跳转到第 {slide} 页'
|
||||||
},
|
},
|
||||||
modal: {
|
modal: {
|
||||||
|
|||||||
@@ -39,7 +39,6 @@ export default defineLocale<Messages>({
|
|||||||
carousel: {
|
carousel: {
|
||||||
prev: '上一頁',
|
prev: '上一頁',
|
||||||
next: '下一頁',
|
next: '下一頁',
|
||||||
dots: '選擇要顯示的投影片',
|
|
||||||
goto: '跳轉到第 {slide} 頁'
|
goto: '跳轉到第 {slide} 頁'
|
||||||
},
|
},
|
||||||
modal: {
|
modal: {
|
||||||
|
|||||||
@@ -33,7 +33,6 @@ export type Messages = {
|
|||||||
carousel: {
|
carousel: {
|
||||||
prev: string
|
prev: string
|
||||||
next: string
|
next: string
|
||||||
dots: string
|
|
||||||
goto: string
|
goto: string
|
||||||
}
|
}
|
||||||
modal: {
|
modal: {
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
import { ref, onScopeDispose } from 'vue'
|
import { ref, onScopeDispose } from 'vue'
|
||||||
import type { Ref, Plugin as VuePlugin } from 'vue'
|
import type { Ref, Plugin as VuePlugin } from 'vue'
|
||||||
import { createHooks } from 'hookable'
|
import { createHooks } from 'hookable'
|
||||||
import { useColorMode as useColorModeVueUse } from '@vueuse/core'
|
|
||||||
import appConfig from '#build/app.config'
|
import appConfig from '#build/app.config'
|
||||||
import type { NuxtApp } from '#app'
|
import type { NuxtApp } from '#app'
|
||||||
|
import { useColorMode as useColorModeVueUse } from '@vueuse/core'
|
||||||
|
|
||||||
export { useHead } from '@unhead/vue'
|
export { useHead } from '@unhead/vue'
|
||||||
export { useRoute, useRouter } from 'vue-router'
|
export { useRoute, useRouter } from 'vue-router'
|
||||||
@@ -13,10 +14,6 @@ export { defineShortcuts } from '../composables/defineShortcuts'
|
|||||||
export { defineLocale } from '../composables/defineLocale'
|
export { defineLocale } from '../composables/defineLocale'
|
||||||
export { useLocale } from '../composables/useLocale'
|
export { useLocale } from '../composables/useLocale'
|
||||||
|
|
||||||
export const clearError = () => {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
export const useColorMode = () => {
|
export const useColorMode = () => {
|
||||||
if (!appConfig.colorMode) {
|
if (!appConfig.colorMode) {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -26,14 +26,6 @@ export function getTemplates(options: ModuleOptions, uiConfig: Record<string, an
|
|||||||
const template = (theme as any)[component]
|
const template = (theme as any)[component]
|
||||||
const result = typeof template === 'function' ? template(options) : template
|
const result = typeof template === 'function' ? template(options) : template
|
||||||
|
|
||||||
// Override default variants from nuxt.config.ts
|
|
||||||
if (result?.defaultVariants?.color && options.theme?.defaultVariants?.color) {
|
|
||||||
result.defaultVariants.color = options.theme.defaultVariants.color
|
|
||||||
}
|
|
||||||
if (result?.defaultVariants?.size && options.theme?.defaultVariants?.size) {
|
|
||||||
result.defaultVariants.size = options.theme.defaultVariants.size
|
|
||||||
}
|
|
||||||
|
|
||||||
const variants = Object.entries(result.variants || {})
|
const variants = Object.entries(result.variants || {})
|
||||||
.filter(([_, values]) => {
|
.filter(([_, values]) => {
|
||||||
const keys = Object.keys(values as Record<string, unknown>)
|
const keys = Object.keys(values as Record<string, unknown>)
|
||||||
@@ -64,10 +56,7 @@ export function getTemplates(options: ModuleOptions, uiConfig: Record<string, an
|
|||||||
return [
|
return [
|
||||||
`import template from ${JSON.stringify(templatePath)}`,
|
`import template from ${JSON.stringify(templatePath)}`,
|
||||||
...generateVariantDeclarations(variants),
|
...generateVariantDeclarations(variants),
|
||||||
`const options = ${JSON.stringify(options, null, 2)}`,
|
`const result = typeof template === 'function' ? (template as Function)(${JSON.stringify(options, null, 2)}) : template`,
|
||||||
`const result = typeof template === 'function' ? (template as Function)(options) : template`,
|
|
||||||
`if (result?.defaultVariants?.color && options.theme?.defaultVariants?.color) result.defaultVariants.color = options.theme.defaultVariants.color`,
|
|
||||||
`if (result?.defaultVariants?.size && options.theme?.defaultVariants?.size) result.defaultVariants.size = options.theme.defaultVariants.size`,
|
|
||||||
`const theme = ${json}`,
|
`const theme = ${json}`,
|
||||||
`export default result as typeof theme`
|
`export default result as typeof theme`
|
||||||
].join('\n\n')
|
].join('\n\n')
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ export default (options: Required<ModuleOptions>) => ({
|
|||||||
input: '[&>input]:h-12',
|
input: '[&>input]:h-12',
|
||||||
close: '',
|
close: '',
|
||||||
back: 'p-0',
|
back: 'p-0',
|
||||||
|
trailingIcon: 'shrink-0 size-5 text-dimmed',
|
||||||
content: 'relative overflow-hidden flex flex-col',
|
content: 'relative overflow-hidden flex flex-col',
|
||||||
footer: 'p-1',
|
footer: 'p-1',
|
||||||
viewport: 'relative divide-y divide-default scroll-py-1 overflow-y-auto flex-1 focus:outline-none',
|
viewport: 'relative divide-y divide-default scroll-py-1 overflow-y-auto flex-1 focus:outline-none',
|
||||||
|
|||||||
@@ -120,7 +120,7 @@ describe('CheckboxGroup', () => {
|
|||||||
test('no label for=... on FormField', async () => {
|
test('no label for=... on FormField', async () => {
|
||||||
const { wrapper } = await createForm()
|
const { wrapper } = await createForm()
|
||||||
const formFieldLabel = wrapper.findAll('label').map(label => label.attributes()).filter(label => !label.for?.includes(':'))[0]
|
const formFieldLabel = wrapper.findAll('label').map(label => label.attributes()).filter(label => !label.for?.includes(':'))[0]
|
||||||
expect(formFieldLabel?.for).toBeUndefined()
|
expect(formFieldLabel.for).toBeUndefined()
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user