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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "daisyui",
3
- "version": "4.0.6",
3
+ "version": "4.0.7",
4
4
  "description": "daisyUI - Tailwind CSS Components",
5
5
  "author": "Pouya Saadeghi",
6
6
  "license": "MIT",
@@ -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
- "[data-theme=" +
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
- "[data-theme=" +
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
- "[data-theme=" +
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
  })