daisyui 4.0.6 → 4.0.7
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.
- package/dist/full.css +1066 -40
- package/dist/themes.css +1066 -40
- package/package.json +1 -1
- package/src/theming/functions.js +6 -21
package/package.json
CHANGED
package/src/theming/functions.js
CHANGED
|
@@ -202,34 +202,19 @@ module.exports = {
|
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
204
|
// theme 0 with name
|
|
205
|
+
themesToInject["[data-theme=" + themeOrder[0] + "]"] = includedThemesObj[themeOrder[0]]
|
|
205
206
|
themesToInject[
|
|
206
|
-
"[
|
|
207
|
-
themeOrder[0] +
|
|
208
|
-
"], " +
|
|
209
|
-
themeRoot +
|
|
210
|
-
":has(input.theme-controller[value=" +
|
|
211
|
-
themeOrder[0] +
|
|
212
|
-
"]:checked)"
|
|
207
|
+
themeRoot + ":has(input.theme-controller[value=" + themeOrder[0] + "]:checked)"
|
|
213
208
|
] = includedThemesObj[themeOrder[0]]
|
|
214
209
|
// theme 1 with name
|
|
210
|
+
themesToInject["[data-theme=" + themeOrder[1] + "]"] = includedThemesObj[themeOrder[1]]
|
|
215
211
|
themesToInject[
|
|
216
|
-
"[
|
|
217
|
-
themeOrder[1] +
|
|
218
|
-
"], " +
|
|
219
|
-
themeRoot +
|
|
220
|
-
":has(input.theme-controller[value=" +
|
|
221
|
-
themeOrder[1] +
|
|
222
|
-
"]:checked)"
|
|
212
|
+
themeRoot + ":has(input.theme-controller[value=" + themeOrder[1] + "]:checked)"
|
|
223
213
|
] = includedThemesObj[themeOrder[1]]
|
|
224
214
|
} else {
|
|
215
|
+
themesToInject["[data-theme=" + themeName + "]"] = includedThemesObj[themeName]
|
|
225
216
|
themesToInject[
|
|
226
|
-
"[
|
|
227
|
-
themeName +
|
|
228
|
-
"], " +
|
|
229
|
-
themeRoot +
|
|
230
|
-
":has(input.theme-controller[value=" +
|
|
231
|
-
themeName +
|
|
232
|
-
"]:checked)"
|
|
217
|
+
themeRoot + ":has(input.theme-controller[value=" + themeName + "]:checked)"
|
|
233
218
|
] = includedThemesObj[themeName]
|
|
234
219
|
}
|
|
235
220
|
})
|