daisyui 4.12.3 → 4.12.5

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.12.3",
3
+ "version": "4.12.5",
4
4
  "description": "daisyUI - Tailwind CSS Components",
5
5
  "author": "Pouya Saadeghi",
6
6
  "license": "MIT",
@@ -196,9 +196,9 @@ module.exports = {
196
196
 
197
197
  let themeOrder = []
198
198
  if (Array.isArray(config("daisyui.themes"))) {
199
- for (const item of config("daisyui.themes")) {
199
+ for (const theme of config("daisyui.themes")) {
200
200
  if (typeof theme === "object" && theme !== null) {
201
- for (const customThemeName of Object.keys(item)) {
201
+ for (const customThemeName of Object.keys(theme)) {
202
202
  themeOrder.push(customThemeName)
203
203
  }
204
204
  } else if (Object.hasOwn(includedThemesObj, theme)) {
@@ -2,4 +2,4 @@ import type { CustomTheme, Theme } from "../index"
2
2
 
3
3
  declare const themes: Record<`${Theme}`, CustomTheme[string]>
4
4
 
5
- export default themes
5
+ export = themes