daisyui 3.6.0 → 3.6.1

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": "3.6.0",
3
+ "version": "3.6.1",
4
4
  "description": "daisyUI - Tailwind CSS Components",
5
5
  "author": "Pouya Saadeghi",
6
6
  "license": "MIT",
@@ -40,6 +40,7 @@
40
40
  "!dist/*.rtl.css",
41
41
  "src/index.js",
42
42
  "src/theming/*.js",
43
+ "src/theming/*.d.ts",
43
44
  "src/index.d.ts"
44
45
  ],
45
46
  "engines": {
package/src/index.d.ts CHANGED
@@ -4,6 +4,7 @@ declare const daisyui: ReturnType<typeof plugin>
4
4
 
5
5
  export default daisyui
6
6
 
7
+ // todo - the keys of a theme could be typed here? see: https://daisyui.com/docs/themes/#-5
7
8
  /**
8
9
  * @link https://daisyui.com/docs/themes/#-4
9
10
  */
@@ -106,4 +107,4 @@ interface DaisyUIConfig {
106
107
  logs?: boolean
107
108
  }
108
109
 
109
- export type { DaisyUIConfig as Config, Theme }
110
+ export type { DaisyUIConfig as Config, Theme, CustomTheme }
@@ -0,0 +1,5 @@
1
+ import { CustomTheme, Theme } from '../index';
2
+
3
+ declare const themes: Record<`[data-theme=${Theme}]`, CustomTheme[string]>;
4
+
5
+ export default themes;