Skip to content

Commit e3e360f

Browse files
chore(deps): update @nuxt/ui-pro (#3255)
--------- Co-authored-by: Farnabaz <[email protected]>
1 parent 52d3f20 commit e3e360f

File tree

25 files changed

+714
-2407
lines changed

25 files changed

+714
-2407
lines changed

docs/app/app.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ export default defineAppConfig({
1010
pageHero: {
1111
slots: {
1212
title: 'font-semibold sm:text-6xl',
13-
description: 'sm:text-lg text-[var(--ui-text-toned)] max-w-5xl mx-auto',
13+
description: 'sm:text-lg text-(--ui-text-toned) max-w-5xl mx-auto',
1414
container: 'py-16 sm:py-20 lg:py-24',
1515
},
1616
},
1717
pageSection: {
1818
slots: {
1919
title: 'font-semibold lg:text-4xl',
20-
featureLeadingIcon: 'text-[var(--ui-text-highlighted)]',
20+
featureLeadingIcon: 'text-(--ui-text-highlighted)',
2121
},
2222
},
2323
},

docs/app/assets/css/main.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
@import "tailwindcss";
1+
@import "tailwindcss" theme(static);
22
@import "@nuxt/ui-pro";
33

4-
@source "../../../content";
4+
@source "../../../content/**/*.md";
55

6-
@theme {
6+
@theme static {
77
--font-sans: 'Public Sans', sans-serif;
88

99
--color-green-50: #EFFDF5;

docs/app/components/AppFooter.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,17 @@ const route = useRoute()
3030
v-if="route.path.startsWith('/pro')"
3131
to="https://content.nuxt.com/pro/purchase"
3232
target="_blank"
33-
class="text-sm text-[--ui-text-muted]"
33+
class="text-sm text-(--ui-text-muted)"
3434
>
35-
Purchase <span class="text-[--ui-text-highlighted]">Nuxt Content Pro</span>
35+
Purchase <span class="text-(--ui-text-highlighted)">Nuxt Content Pro</span>
3636
</NuxtLink>
3737
<NuxtLink
3838
v-else
3939
to="https://github.com/nuxt/content"
4040
target="_blank"
41-
class="text-sm text-[--ui-text-muted]"
41+
class="text-sm text-(--ui-text-muted)"
4242
>
43-
Published under <span class="text-[--ui-text-highlighted]">MIT License</span>
43+
Published under <span class="text-(--ui-text-highlighted)">MIT License</span>
4444
</NuxtLink>
4545
</template>
4646

docs/app/components/AppHeader.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const linksWithoutIcon = computed(() => links.value.map(({ icon, ...link }) => l
1717
<template #left>
1818
<NuxtLink
1919
to="/"
20-
class="flex items-end gap-2 font-bold text-xl text-[--ui-text-highlighted] min-w-0"
20+
class="flex items-end gap-2 font-bold text-xl text-(--ui-text-highlighted) min-w-0"
2121
aria-label="Nuxt Content"
2222
>
2323
<AppLogo class="w-auto h-6 shrink-0" />
@@ -35,7 +35,7 @@ const linksWithoutIcon = computed(() => links.value.map(({ icon, ...link }) => l
3535
trailing-icon="i-lucide-chevron-down"
3636
size="xs"
3737
class="-mb-[3px] font-semibold rounded-full truncate hidden sm:flex"
38-
:class="[open && 'bg-[var(--ui-primary)]/15 ']"
38+
:class="[open && 'bg-(--ui-primary)/15 ']"
3939
:ui="{
4040
trailingIcon: ['transition-transform duration-200', open ? 'rotate-180' : undefined].filter(Boolean).join(' '),
4141
}"

docs/app/components/PreviewCard.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ defineProps({
99

1010
<template>
1111
<div
12-
class="px-4 py-1 border rounded-b-md border-[var(--ui-color-neutral-200)] dark:border-[var(--ui-color-neutral-700)] bg-[var(--ui-color-neutral-50)] dark:bg-[var(--ui-color-neutral-800)] dark:text-white"
12+
class="px-4 py-1 border rounded-b-md border-(--ui-border-muted) bg-(--ui-bg-muted) dark:text-white"
1313
>
1414
<slot />
1515
</div>

docs/app/components/post/PostPage.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ function copyLink() {
9292
variant="outline"
9393
color="neutral"
9494
/>
95-
<time class="text-[var(--ui-text)]">{{ formatDateByLocale(post.date) }}</time>
95+
<time class="text-(--ui-text)">{{ formatDateByLocale(post.date) }}</time>
9696
</div>
9797
</div>
9898
</template>

docs/app/pages/changelog/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,11 @@ watch(() => arrivedState.bottom, () => {
9696
<div class="relative hidden lg:flex lg:min-w-[150px]">
9797
<div
9898
ref="dots"
99-
class="hidden w-2 h-2 rounded-full lg:block bg-[var(--ui-primary)]"
99+
class="hidden w-2 h-2 rounded-full lg:block bg-(--ui-primary)"
100100
:class="{ neon: index === 0 }"
101101
/>
102102

103-
<div class="absolute left-[3.5px] top-0.5 h-full w-[1px] bg-[var(--ui-primary)]" />
103+
<div class="absolute left-[3.5px] top-0.5 h-full w-[1px] bg-(--ui-primary)" />
104104
</div>
105105
<div class="pb-32">
106106
<UBlogPost

docs/app/pages/docs/[...slug].vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<script setup lang="ts">
22
import type { ContentNavigationItem } from '@nuxt/content'
3+
import { kebabCase } from 'scule'
34
import { findPageHeadline } from '#ui-pro/utils/content'
45
56
const route = useRoute()
@@ -68,6 +69,7 @@ const communityLinks = computed(() => [{
6869
<template #description>
6970
<MDC
7071
v-if="page.description"
72+
:cache-key="`${kebabCase(route.path)}-description`"
7173
:value="page.description"
7274
unwrap="p"
7375
/>

docs/app/pages/studio/pricing.vue

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,14 @@ const data = computed(() => {
6969
const cell = (type: 'solo' | 'team' | 'unlimited', row: any) => {
7070
const value = row.original[type]
7171
const color = value === 'Coming soon'
72-
? '!text-[var(--ui-text-muted)]'
73-
: type === 'team' ? 'text-[var(--ui-primary)]' : 'text-[var(--ui-text-highlighted)]'
72+
? '!text-(--ui-text-muted)'
73+
: type === 'team' ? 'text-(--ui-primary)' : 'text-(--ui-text-highlighted)'
7474
const background = type === 'team' ? 'bg-gray-300/10 dark:bg-gray-800/50' : ''
75-
const borderBottom = row.original.main ? 'border-b border-[var(--ui-color-neutral-100)] dark:border-[var(--ui-color-neutral-800)]' : ''
76-
const borderSide = type === 'team' ? 'border-l border-r !border-r-[var(--ui-primary)] !border-l-[var(--ui-primary)]' : ''
77-
const borderClosed = type === 'team' && row.original.title?.includes('Commit') ? 'border-b border-b-[var(--ui-primary)] rounded-b-lg' : ''
75+
const borderBottom = row.original.main ? 'border-b border-(--ui-color-neutral-100) dark:border-(--ui-color-neutral-800)' : ''
76+
const borderSide = type === 'team' ? 'border-l border-r !border-r-(--ui-primary) !border-l-(--ui-primary)' : ''
77+
const borderClosed = type === 'team' && row.original.title?.includes('Commit') ? 'border-b border-b-(--ui-primary) rounded-b-lg' : ''
7878
79-
return h('div', { class: `flex justify-center border-primary p-4 text-[var(--ui-text-highlighted)] ${color} ${background} ${borderBottom} ${borderSide} ${borderClosed}` },
79+
return h('div', { class: `flex justify-center border-primary p-4 text-(--ui-text-highlighted) ${color} ${background} ${borderBottom} ${borderSide} ${borderClosed}` },
8080
typeof value === 'string'
8181
? h('span', { class: 'h-5' }, value)
8282
: value === true
@@ -86,11 +86,11 @@ const cell = (type: 'solo' | 'team' | 'unlimited', row: any) => {
8686
}
8787
8888
const header = (type: 'solo' | 'team' | 'unlimited') => {
89-
const border = type === 'team' ? 'border-l border-r border-t border-[var(--ui-primary)] rounded-t-lg' : ''
90-
const gradient = type === 'team' ? 'bg-gradient-to-b from-[var(--ui-primary)]/10 to-gray-300/10 dark:from-[var(--ui-primary)]/20 dark:to-gray-800/50' : ''
89+
const border = type === 'team' ? 'border-l border-r border-t border-(--ui-primary) rounded-t-lg' : ''
90+
const gradient = type === 'team' ? 'bg-gradient-to-b from-(--ui-primary)/10 to-gray-300/10 dark:from-(--ui-primary)/20 dark:to-gray-800/50' : ''
9191
return h('div', { class: `flex flex-col items-center p-4 ${border} ${gradient}` }, [
9292
h('span', { class: 'text-lg font-semibold' }, page.value?.plans?.[type]?.title),
93-
h('span', { class: 'text-sm text-[var(--ui-text-muted)]' }, `${page.value?.plans?.[type]?.price}${page.value?.plans?.[type]?.cycle}`),
93+
h('span', { class: 'text-sm text-(--ui-text-muted)' }, `${page.value?.plans?.[type]?.price}${page.value?.plans?.[type]?.cycle}`),
9494
])
9595
}
9696
@@ -100,8 +100,8 @@ const columns: TableColumn<Feature>[] = [
100100
header: '',
101101
cell: ({ row }) => {
102102
return row.original.main
103-
? h('span', { class: 'flex text-[var(--ui-text-highlighted)] font-medium border-b border-[var(--ui-color-neutral-100)] dark:border-[var(--ui-color-neutral-800)] p-4 w-full' }, row.original.title)
104-
: h('span', { class: 'text-[var(--ui-text-muted)] p-4' }, row.original.title)
103+
? h('span', { class: 'flex text-(--ui-text-highlighted) font-medium border-b border-(--ui-color-neutral-100) dark:border-(--ui-color-neutral-800) p-4 w-full' }, row.original.title)
104+
: h('span', { class: 'text-(--ui-text-muted) p-4' }, row.original.title)
105105
},
106106
},
107107
{
@@ -142,7 +142,7 @@ const columns: TableColumn<Feature>[] = [
142142
<UPageSection
143143
:title="page.onboarding.title"
144144
:ui="{
145-
root: 'bg-[var(--ui-bg-elevated)]/25 border-t border-b border-[var(--ui-border)] mt-8 sm:mt-12 lg:mt-16',
145+
root: 'bg-(--ui-bg-elevated)/25 border-t border-b border-(--ui-border) mt-8 sm:mt-12 lg:mt-16',
146146
container: 'py-8 sm:py-12 lg:py-16',
147147
}"
148148
>

docs/app/pages/templates/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ useSeoMeta({
3636
:image="template.mainScreen"
3737
:to="`/templates/${template.slug}`"
3838
:ui="{
39-
root: 'hover:ring-2 hover:ring-[var(--ui-primary)]',
39+
root: 'hover:ring-2 hover:ring-(--ui-primary)',
4040
description: 'text-pretty',
4141
image: 'group-hover:scale-100',
4242
header: 'aspect-auto',

0 commit comments

Comments
 (0)