daisy-ui-kit 5.2.3 → 5.2.6
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.
|
@@ -10,19 +10,24 @@ defineProps<{
|
|
|
10
10
|
</li>
|
|
11
11
|
</template>
|
|
12
12
|
|
|
13
|
-
<style
|
|
13
|
+
<style>
|
|
14
14
|
/*
|
|
15
|
-
Allow adding .active
|
|
15
|
+
Allow adding .menu-active to the MenuItem element.
|
|
16
16
|
DaisyUI only supports adding it to the `a` element.
|
|
17
17
|
*/
|
|
18
18
|
.menu-item.menu-active > a,
|
|
19
19
|
.menu-item.menu-active > span {
|
|
20
|
-
|
|
21
|
-
color:
|
|
20
|
+
outline-style: none;
|
|
21
|
+
color: var(--menu-active-fg, var(--color-neutral-content));
|
|
22
|
+
background-color: var(--menu-active-bg, var(--color-neutral));
|
|
23
|
+
background-size: auto, calc(var(--noise) * 100%);
|
|
24
|
+
background-image: none, var(--fx-noise);
|
|
25
|
+
box-shadow: 0 2px calc(var(--depth) * 3px) -2px var(--menu-active-bg, var(--color-neutral));
|
|
22
26
|
}
|
|
23
27
|
.menu-item.menu-disabled > a,
|
|
24
28
|
.menu-item.menu-disabled > span {
|
|
25
|
-
|
|
29
|
+
pointer-events: none;
|
|
30
|
+
color: color-mix(in oklab, var(--color-base-content) 20%, transparent);
|
|
26
31
|
}
|
|
27
32
|
|
|
28
33
|
/* Fix padding when putting a Dropdown inside of a menu */
|
package/app/components/Prose.vue
CHANGED
|
@@ -4,25 +4,25 @@
|
|
|
4
4
|
</article>
|
|
5
5
|
</template>
|
|
6
6
|
|
|
7
|
-
<style
|
|
7
|
+
<style>
|
|
8
8
|
.prose.full-width {
|
|
9
9
|
width: 100%;
|
|
10
10
|
max-width: 100%;
|
|
11
11
|
}
|
|
12
12
|
.prose.daisy-prose code:not(pre code) {
|
|
13
|
-
|
|
13
|
+
background-color: var(--color-base-300);
|
|
14
14
|
}
|
|
15
15
|
.prose .link-primary {
|
|
16
|
-
|
|
16
|
+
color: var(--color-primary);
|
|
17
17
|
}
|
|
18
18
|
.prose .link-secondary {
|
|
19
|
-
|
|
19
|
+
color: var(--color-secondary);
|
|
20
20
|
}
|
|
21
21
|
.prose .link-neutral {
|
|
22
|
-
|
|
22
|
+
color: var(--color-neutral);
|
|
23
23
|
}
|
|
24
24
|
.prose .link-accent {
|
|
25
|
-
|
|
25
|
+
color: var(--color-accent);
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
.prose h1 a,
|
|
@@ -32,6 +32,6 @@
|
|
|
32
32
|
.prose h5 a,
|
|
33
33
|
.prose h6 a {
|
|
34
34
|
text-decoration: none;
|
|
35
|
-
|
|
35
|
+
font-weight: 700;
|
|
36
36
|
}
|
|
37
37
|
</style>
|
|
@@ -24,6 +24,10 @@ function normalizeTheme(input: DaisyThemeInput): DaisyThemeMeta {
|
|
|
24
24
|
return { ...input }
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
+
// Nuxt auto-imports useState globally; this declaration satisfies the
|
|
28
|
+
// TypeScript compiler when the file is type-checked outside Nuxt.
|
|
29
|
+
declare const useState: ((...args: any[]) => any) | undefined
|
|
30
|
+
|
|
27
31
|
// Shared state factory — uses Nuxt useState when available, falls back to
|
|
28
32
|
// module-level refs for standalone Vue usage. Nuxt's useState ensures
|
|
29
33
|
// SSR-to-client hydration and per-request isolation on the server.
|
|
@@ -122,12 +122,8 @@ export interface UseToastOptions {
|
|
|
122
122
|
* // In UI: <Toast name="admin" />
|
|
123
123
|
*/
|
|
124
124
|
function normalizeToast(toast: any): Toast {
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
}
|
|
128
|
-
if (toast.countdown == null) {
|
|
129
|
-
toast.countdown = toast.originalDuration
|
|
130
|
-
}
|
|
125
|
+
toast.originalDuration ??= toast.duration ?? 0
|
|
126
|
+
toast.countdown ??= toast.originalDuration
|
|
131
127
|
if (typeof toast.intervalId === 'undefined') {
|
|
132
128
|
toast.intervalId = undefined
|
|
133
129
|
}
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "5.2.
|
|
7
|
+
"version": "5.2.6",
|
|
8
8
|
"packageManager": "pnpm@10.10.0",
|
|
9
9
|
"author": "feathers.dev",
|
|
10
10
|
"exports": {
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"app/utils",
|
|
36
36
|
"nuxt.d.ts",
|
|
37
37
|
"nuxt.js",
|
|
38
|
-
"
|
|
39
|
-
"
|
|
38
|
+
"src",
|
|
39
|
+
"vue.ts"
|
|
40
40
|
],
|
|
41
41
|
"scripts": {
|
|
42
42
|
"import-d1-dumps": "./import-d1-dumps.sh",
|
|
@@ -57,45 +57,45 @@
|
|
|
57
57
|
"deploy": "pnpm run build && npx wrangler deploy"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
|
-
"@vueuse/core": "^
|
|
60
|
+
"@vueuse/core": "^14.3.0",
|
|
61
61
|
"daisyui": "^5"
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
64
|
"@formkit/auto-animate": "^0.9.0",
|
|
65
|
-
"@nuxt/content": "3.
|
|
66
|
-
"@nuxt/eslint": "1.
|
|
67
|
-
"@nuxt/fonts": "0.
|
|
68
|
-
"@nuxt/icon": "
|
|
69
|
-
"@nuxt/image": "
|
|
70
|
-
"@nuxt/kit": "^4.
|
|
71
|
-
"@nuxt/scripts": "
|
|
72
|
-
"@nuxt/test-utils": "
|
|
73
|
-
"@oddbird/css-anchor-positioning": "^0.
|
|
74
|
-
"@unhead/vue": "^
|
|
75
|
-
"@vueuse/core": "^
|
|
76
|
-
"@vueuse/integrations": "^
|
|
77
|
-
"focus-trap": "^
|
|
78
|
-
"nuxt": "^4.
|
|
79
|
-
"shiki": "^
|
|
80
|
-
"typescript": "^
|
|
81
|
-
"vue": "^3.5.
|
|
82
|
-
"vue-router": "^
|
|
83
|
-
"zod": "^
|
|
65
|
+
"@nuxt/content": "3.14.0",
|
|
66
|
+
"@nuxt/eslint": "1.15.2",
|
|
67
|
+
"@nuxt/fonts": "0.14.0",
|
|
68
|
+
"@nuxt/icon": "2.2.2",
|
|
69
|
+
"@nuxt/image": "2.0.0",
|
|
70
|
+
"@nuxt/kit": "^4.4.6",
|
|
71
|
+
"@nuxt/scripts": "1.1.1",
|
|
72
|
+
"@nuxt/test-utils": "4.0.3",
|
|
73
|
+
"@oddbird/css-anchor-positioning": "^0.9.0",
|
|
74
|
+
"@unhead/vue": "^3.1.0",
|
|
75
|
+
"@vueuse/core": "^14.3.0",
|
|
76
|
+
"@vueuse/integrations": "^14.3.0",
|
|
77
|
+
"focus-trap": "^8.2.1",
|
|
78
|
+
"nuxt": "^4.4.6",
|
|
79
|
+
"shiki": "^4.1.0",
|
|
80
|
+
"typescript": "^6.0.3",
|
|
81
|
+
"vue": "^3.5.34",
|
|
82
|
+
"vue-router": "^5.0.7",
|
|
83
|
+
"zod": "^4.4.3"
|
|
84
84
|
},
|
|
85
85
|
"devDependencies": {
|
|
86
|
-
"@antfu/eslint-config": "^
|
|
87
|
-
"@stylistic/eslint-plugin": "^
|
|
88
|
-
"@tailwindcss/typography": "^0.5.
|
|
89
|
-
"@tailwindcss/vite": "^4.
|
|
90
|
-
"@vitejs/plugin-vue": "^6.0.
|
|
91
|
-
"@vue/test-utils": "^2.4.
|
|
92
|
-
"daisyui": "^5.5.
|
|
93
|
-
"eslint": "^
|
|
86
|
+
"@antfu/eslint-config": "^9.0.0",
|
|
87
|
+
"@stylistic/eslint-plugin": "^5.10.0",
|
|
88
|
+
"@tailwindcss/typography": "^0.5.19",
|
|
89
|
+
"@tailwindcss/vite": "^4.3.0",
|
|
90
|
+
"@vitejs/plugin-vue": "^6.0.7",
|
|
91
|
+
"@vue/test-utils": "^2.4.10",
|
|
92
|
+
"daisyui": "^5.5.20",
|
|
93
|
+
"eslint": "^10.4.0",
|
|
94
94
|
"eslint-config-prettier": "^10.1.8",
|
|
95
|
-
"eslint-plugin-vue": "^10.
|
|
96
|
-
"happy-dom": "^20.0
|
|
97
|
-
"tailwindcss": "^4.
|
|
98
|
-
"vite": "^7.3.
|
|
99
|
-
"vitest": "^4.
|
|
95
|
+
"eslint-plugin-vue": "^10.9.1",
|
|
96
|
+
"happy-dom": "^20.9.0",
|
|
97
|
+
"tailwindcss": "^4.3.0",
|
|
98
|
+
"vite": "^7.3.3",
|
|
99
|
+
"vitest": "^4.1.7"
|
|
100
100
|
}
|
|
101
101
|
}
|