From c2bcb8e264c684510dc4746e492f1bd8804dada6 Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Tue, 6 May 2025 10:45:31 +0200 Subject: [PATCH 1/7] docs(kbd): update title to fix `llms-full.txt` --- docs/content/3.components/kbd.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/docs/content/3.components/kbd.md b/docs/content/3.components/kbd.md index 88e88fd4..be38e8db 100644 --- a/docs/content/3.components/kbd.md +++ b/docs/content/3.components/kbd.md @@ -1,13 +1,11 @@ --- -title: Keyboard Key +title: Kbd description: A kbd element to display a keyboard key. category: element links: - label: GitHub icon: i-simple-icons-github to: https://github.com/nuxt/ui/tree/v3/src/runtime/components/Kbd.vue -navigation: - title: Kbd --- ## Usage From 7551a85ad2d92b59e2909396affb862403d5b27a Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Tue, 6 May 2025 12:15:54 +0200 Subject: [PATCH 2/7] fix(CheckboxGroup): relative `UCheckbox` import Resolves #4090 --- src/runtime/components/CheckboxGroup.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/runtime/components/CheckboxGroup.vue b/src/runtime/components/CheckboxGroup.vue index 6886f5ba..8933ce1a 100644 --- a/src/runtime/components/CheckboxGroup.vue +++ b/src/runtime/components/CheckboxGroup.vue @@ -74,6 +74,7 @@ import { useAppConfig } from '#imports' import { useFormField } from '../composables/useFormField' import { get, omit } from '../utils' import { tv } from '../utils/tv' +import UCheckbox from './Checkbox.vue' const props = withDefaults(defineProps>(), { valueKey: 'value', From 4863775e1798b6c377d514c9d131f9ca81d2b0a0 Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Tue, 6 May 2025 15:22:52 +0200 Subject: [PATCH 3/7] docs(app): fix tabs trigger width Regression of https://github.com/nuxt/ui/commit/06e5689da80b36205d0548d5d6b58510938e4a6e --- docs/app/components/FrameworkSelect.vue | 2 +- docs/app/components/ModuleSelect.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/app/components/FrameworkSelect.vue b/docs/app/components/FrameworkSelect.vue index 203af074..2e4bbf20 100644 --- a/docs/app/components/FrameworkSelect.vue +++ b/docs/app/components/FrameworkSelect.vue @@ -20,7 +20,7 @@ watch(framework, () => { color="neutral" :ui="{ indicator: 'bg-default', - trigger: 'px-1 data-[state=active]:text-highlighted' + trigger: 'px-1 data-[state=active]:text-highlighted w-full' }" size="xs" @update:model-value="(framework = $event as string)" diff --git a/docs/app/components/ModuleSelect.vue b/docs/app/components/ModuleSelect.vue index 32b42517..7fa158b7 100644 --- a/docs/app/components/ModuleSelect.vue +++ b/docs/app/components/ModuleSelect.vue @@ -20,7 +20,7 @@ watch(module, () => { color="neutral" :ui="{ indicator: 'bg-default', - trigger: 'px-1 data-[state=active]:text-highlighted' + trigger: 'px-1 data-[state=active]:text-highlighted w-full' }" size="xs" @update:model-value="(module = $event as string)" From d3df3bb929fe6732f27b182d1664213884a662ec Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Tue, 6 May 2025 16:03:28 +0200 Subject: [PATCH 4/7] fix(templates): dont write unused variants in theme files --- src/templates.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/templates.ts b/src/templates.ts index 9ab720c0..99c7c927 100644 --- a/src/templates.ts +++ b/src/templates.ts @@ -44,7 +44,7 @@ export function getTemplates(options: ModuleOptions, uiConfig: Record { + return variants.filter(variant => json.includes(`as typeof ${variant}`)).map((variant) => { const keys = Object.keys(result.variants[variant]) return `const ${variant} = ${JSON.stringify(keys, null, 2)} as const` }) From 58aa296425bfcae19f4d64f5857da093600f49b1 Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Tue, 6 May 2025 16:49:36 +0200 Subject: [PATCH 5/7] playground(vue): missing fonts --- playground-vue/index.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/playground-vue/index.html b/playground-vue/index.html index a8fc6eb5..cfd94228 100644 --- a/playground-vue/index.html +++ b/playground-vue/index.html @@ -4,6 +4,8 @@ + + Nuxt UI - Vue Playground From 04bdbcfc6e4e767beda133dc9c1b57177a3f5062 Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Tue, 6 May 2025 17:02:12 +0200 Subject: [PATCH 6/7] chore(module): remove `processCSSVariables` option Not needed since https://github.com/nuxt/fonts/releases/tag/v0.11.0 --- src/module.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/module.ts b/src/module.ts index 460d76f2..f6ed1a12 100644 --- a/src/module.ts +++ b/src/module.ts @@ -93,7 +93,7 @@ export default defineNuxtModule({ await registerModule('@nuxt/icon', 'icon', { cssLayer: 'components' }) if (options.fonts) { - await registerModule('@nuxt/fonts', 'fonts', { experimental: { processCSSVariables: true } }) + await registerModule('@nuxt/fonts', 'fonts', {}) } if (options.colorMode) { await registerModule('@nuxtjs/color-mode', 'colorMode', { classSuffix: '', disableTransition: true }) From 7d51a9e479cb6105ea37759c5cd67ff9f7702c49 Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Tue, 6 May 2025 17:36:46 +0200 Subject: [PATCH 7/7] fix(Calendar): wrong color for today date with `neutral` color Resolves #4084 Possible regression of #3629 --- src/theme/calendar.ts | 2 +- .../__snapshots__/Calendar-vue.spec.ts.snap | 84 +++++++++---------- .../__snapshots__/Calendar.spec.ts.snap | 84 +++++++++---------- 3 files changed, 85 insertions(+), 85 deletions(-) diff --git a/src/theme/calendar.ts b/src/theme/calendar.ts index ba3ec638..4b192c1b 100644 --- a/src/theme/calendar.ts +++ b/src/theme/calendar.ts @@ -22,7 +22,7 @@ export default (options: Required) => ({ }])), neutral: { headCell: 'text-highlighted', - cellTrigger: 'focus-visible:ring-inverted data-[selected]:bg-inverted data-today:not-data-[selected]:text-inverted data-[highlighted]:bg-inverted/20 hover:not-data-[selected]:bg-inverted/10' + cellTrigger: 'focus-visible:ring-inverted data-[selected]:bg-inverted data-today:not-data-[selected]:text-highlighted data-[highlighted]:bg-inverted/20 hover:not-data-[selected]:bg-inverted/10' } }, size: { diff --git a/test/components/__snapshots__/Calendar-vue.spec.ts.snap b/test/components/__snapshots__/Calendar-vue.spec.ts.snap index 84a7eae3..a54e4f64 100644 --- a/test/components/__snapshots__/Calendar-vue.spec.ts.snap +++ b/test/components/__snapshots__/Calendar-vue.spec.ts.snap @@ -389,140 +389,140 @@ exports[`Calendar > renders with color neutral correctly 1`] = ` -
29
+
29
-
30
+
30
-
31
+
31
-
1
+
1
-
2
+
2
-
3
+
3
-
4
+
4
-
5
+
5
-
6
+
6
-
7
+
7
-
8
+
8
-
9
+
9
-
10
+
10
-
11
+
11
-
12
+
12
-
13
+
13
-
14
+
14
-
15
+
15
-
16
+
16
-
17
+
17
-
18
+
18
-
19
+
19
-
20
+
20
-
21
+
21
-
22
+
22
-
23
+
23
-
24
+
24
-
25
+
25
-
26
+
26
-
27
+
27
-
28
+
28
-
29
+
29
-
30
+
30
-
31
+
31
-
1
+
1
-
2
+
2
-
3
+
3
-
4
+
4
-
5
+
5
-
6
+
6
-
7
+
7
-
8
+
8
diff --git a/test/components/__snapshots__/Calendar.spec.ts.snap b/test/components/__snapshots__/Calendar.spec.ts.snap index de8a4096..83df242f 100644 --- a/test/components/__snapshots__/Calendar.spec.ts.snap +++ b/test/components/__snapshots__/Calendar.spec.ts.snap @@ -389,140 +389,140 @@ exports[`Calendar > renders with color neutral correctly 1`] = ` -
29
+
29
-
30
+
30
-
31
+
31
-
1
+
1
-
2
+
2
-
3
+
3
-
4
+
4
-
5
+
5
-
6
+
6
-
7
+
7
-
8
+
8
-
9
+
9
-
10
+
10
-
11
+
11
-
12
+
12
-
13
+
13
-
14
+
14
-
15
+
15
-
16
+
16
-
17
+
17
-
18
+
18
-
19
+
19
-
20
+
20
-
21
+
21
-
22
+
22
-
23
+
23
-
24
+
24
-
25
+
25
-
26
+
26
-
27
+
27
-
28
+
28
-
29
+
29
-
30
+
30
-
31
+
31
-
1
+
1
-
2
+
2
-
3
+
3
-
4
+
4
-
5
+
5
-
6
+
6
-
7
+
7
-
8
+
8