daisy-ui-kit 5.2.4 → 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.
@@ -119,7 +119,7 @@ function hexToRGBArray(color: any) {
119
119
  </div>
120
120
  </template>
121
121
 
122
- <style lang="postcss">
122
+ <style>
123
123
  .avatar-mask > * {
124
124
  aspect-ratio: 1/1;
125
125
  width: 100%;
@@ -10,19 +10,24 @@ defineProps<{
10
10
  </li>
11
11
  </template>
12
12
 
13
- <style lang="postcss">
13
+ <style>
14
14
  /*
15
- Allow adding .active class to the MenuItem element.
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
- background-color: hsl(var(--n) / var(--tw-bg-opacity));
21
- color: hsl(var(--nc) / var(--tw-text-opacity));
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
- background-color: var(--n);
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 */
@@ -4,25 +4,25 @@
4
4
  </article>
5
5
  </template>
6
6
 
7
- <style lang="postcss">
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
- @apply bg-base-300;
13
+ background-color: var(--color-base-300);
14
14
  }
15
15
  .prose .link-primary {
16
- @apply text-primary;
16
+ color: var(--color-primary);
17
17
  }
18
18
  .prose .link-secondary {
19
- @apply text-secondary;
19
+ color: var(--color-secondary);
20
20
  }
21
21
  .prose .link-neutral {
22
- @apply text-neutral;
22
+ color: var(--color-neutral);
23
23
  }
24
24
  .prose .link-accent {
25
- @apply text-accent;
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
- @apply font-bold;
35
+ font-weight: 700;
36
36
  }
37
37
  </style>
@@ -122,12 +122,8 @@ export interface UseToastOptions {
122
122
  * // In UI: <Toast name="admin" />
123
123
  */
124
124
  function normalizeToast(toast: any): Toast {
125
- if (toast.originalDuration == null) {
126
- toast.originalDuration = toast.duration ?? 0
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.4",
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
- "vue.ts",
39
- "src"
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": "^13.1.0",
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.5.1",
66
- "@nuxt/eslint": "1.3.0",
67
- "@nuxt/fonts": "0.11.2",
68
- "@nuxt/icon": "1.12.0",
69
- "@nuxt/image": "1.10.0",
70
- "@nuxt/kit": "^4.2.1",
71
- "@nuxt/scripts": "0.11.6",
72
- "@nuxt/test-utils": "3.18.0",
73
- "@oddbird/css-anchor-positioning": "^0.7.0",
74
- "@unhead/vue": "^2.0.8",
75
- "@vueuse/core": "^13.1.0",
76
- "@vueuse/integrations": "^13.1.0",
77
- "focus-trap": "^7.6.4",
78
- "nuxt": "^4.2.1",
79
- "shiki": "^3.3.0",
80
- "typescript": "^5.8.3",
81
- "vue": "^3.5.13",
82
- "vue-router": "^4.5.1",
83
- "zod": "^3.24.4"
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": "^4.12.0",
87
- "@stylistic/eslint-plugin": "^4.2.0",
88
- "@tailwindcss/typography": "^0.5.16",
89
- "@tailwindcss/vite": "^4.1.5",
90
- "@vitejs/plugin-vue": "^6.0.3",
91
- "@vue/test-utils": "^2.4.6",
92
- "daisyui": "^5.5.5",
93
- "eslint": "^9.26.0",
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.5.1",
96
- "happy-dom": "^20.0.11",
97
- "tailwindcss": "^4.1.5",
98
- "vite": "^7.3.1",
99
- "vitest": "^4.0.16"
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
  }