daisyui 3.6.5 → 3.7.0
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 +56 -64
- package/dist/styled.css +68 -29
- package/dist/styled.js +1 -1
- package/dist/styled.rtl.js +1 -1
- package/dist/unstyled.css +9 -9
- package/dist/unstyled.js +1 -1
- package/dist/unstyled.rtl.js +1 -1
- package/dist/utilities-styled.js +1 -1
- package/package.json +1 -1
- package/src/index.d.ts +92 -91
- package/src/theming/themes.d.ts +3 -3
package/src/index.d.ts
CHANGED
|
@@ -8,103 +8,104 @@ export default daisyui
|
|
|
8
8
|
/**
|
|
9
9
|
* @link https://daisyui.com/docs/themes/#-4
|
|
10
10
|
*/
|
|
11
|
-
type CustomTheme = Record<string, Record<string, string
|
|
11
|
+
type CustomTheme = Record<string, Record<string, string>>
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* https://daisyui.com/docs/themes/#
|
|
15
15
|
*/
|
|
16
|
-
type Theme =
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
16
|
+
type Theme =
|
|
17
|
+
| "light"
|
|
18
|
+
| "dark"
|
|
19
|
+
| "cupcake"
|
|
20
|
+
| "bumblebee"
|
|
21
|
+
| "emerald"
|
|
22
|
+
| "corporate"
|
|
23
|
+
| "synthwave"
|
|
24
|
+
| "retro"
|
|
25
|
+
| "cyberpunk"
|
|
26
|
+
| "valentine"
|
|
27
|
+
| "halloween"
|
|
28
|
+
| "garden"
|
|
29
|
+
| "forest"
|
|
30
|
+
| "aqua"
|
|
31
|
+
| "lofi"
|
|
32
|
+
| "pastel"
|
|
33
|
+
| "fantasy"
|
|
34
|
+
| "wireframe"
|
|
35
|
+
| "black"
|
|
36
|
+
| "luxury"
|
|
37
|
+
| "dracula"
|
|
38
|
+
| "cmyk"
|
|
39
|
+
| "autumn"
|
|
40
|
+
| "business"
|
|
41
|
+
| "acid"
|
|
42
|
+
| "lemonade"
|
|
43
|
+
| "night"
|
|
44
|
+
| "coffee"
|
|
45
|
+
| "winter"
|
|
45
46
|
|
|
46
47
|
interface DaisyUIConfig {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
48
|
+
/**
|
|
49
|
+
* If it's true, all themes will be included. If it's false, only light and dark themes will be available.
|
|
50
|
+
* If it's an array, only themes in the array will be included and the first theme will be the default theme.
|
|
51
|
+
* Read more about [themes](https://daisyui.com/docs/themes/).
|
|
52
|
+
*
|
|
53
|
+
* @default false
|
|
54
|
+
*/
|
|
55
|
+
themes?: boolean | (Theme | CustomTheme)[]
|
|
56
|
+
/**
|
|
57
|
+
* Allows us to pick another theme for the system's auto dark mode. By default, dark theme
|
|
58
|
+
* (or a custom theme named dark) will be the default theme if no theme is specified and
|
|
59
|
+
* the user is using dark mode on their system.
|
|
60
|
+
* With this config, you can set another theme to be the default dark mode theme.
|
|
61
|
+
*
|
|
62
|
+
* @default 'dark'
|
|
63
|
+
*/
|
|
64
|
+
darkTheme?: string
|
|
65
|
+
/**
|
|
66
|
+
* If it's true, a [few base styles](https://github.com/saadeghi/daisyui/blob/master/src/base) will be added.
|
|
67
|
+
*
|
|
68
|
+
* @default true
|
|
69
|
+
*/
|
|
70
|
+
base?: boolean
|
|
71
|
+
/**
|
|
72
|
+
* If it's true, components will have colors and style, so you won't need to design anything.
|
|
73
|
+
* If it's false, components will have no color and no visual style, so you can design your own style
|
|
74
|
+
* on a basic skeleton.
|
|
75
|
+
*
|
|
76
|
+
* @default true
|
|
77
|
+
*/
|
|
78
|
+
styled?: boolean
|
|
79
|
+
/**
|
|
80
|
+
* If it's true, [responsive and utility classes](https://github.com/saadeghi/daisyui/tree/master/src/utilities) will be added.
|
|
81
|
+
*
|
|
82
|
+
* @default true
|
|
83
|
+
*/
|
|
84
|
+
utils?: boolean
|
|
85
|
+
/**
|
|
86
|
+
* If it's true, your theme will be right-to-left. You need to add `dir='rtl'` to your body tag.
|
|
87
|
+
* If you're using daisyUI with RTL option, I suggest using [tailwindcss-flip](https://github.com/cvrajeesh/tailwindcss-flip)
|
|
88
|
+
* plugin to flip all your Tailwind utilities automatically.
|
|
89
|
+
*
|
|
90
|
+
* @default false
|
|
91
|
+
*/
|
|
92
|
+
rtl?: boolean
|
|
93
|
+
/**
|
|
94
|
+
* Adds a prefix to class name for all daisyUI classes (including component classes, modifier classes and responsive
|
|
95
|
+
* classes). For example, `btn` will become `prefix-btn`. If you're using a second CSS library that has similar
|
|
96
|
+
* class names, you can use this config to avoid conflicts. Utility classes like color names (e.g. `bg-primary`)
|
|
97
|
+
* or border-radius (e.g. `rounded-box`) will not be affected by this config because they're being added
|
|
98
|
+
* as extensions to Tailwind CSS classes. If you use daisyUI `prefix` option (like `daisy-`) and
|
|
99
|
+
* Tailwind CSS `prefix` option (like `tw-`) together, classnames will be prefixed like
|
|
100
|
+
* this: `tw-daisy-btn`.
|
|
101
|
+
*/
|
|
102
|
+
prefix?: string
|
|
103
|
+
/**
|
|
104
|
+
* If it's true, daisyUI shows logs in the terminal while CSS is building.
|
|
105
|
+
*
|
|
106
|
+
* @default true
|
|
107
|
+
*/
|
|
108
|
+
logs?: boolean
|
|
108
109
|
}
|
|
109
110
|
|
|
110
111
|
export type { DaisyUIConfig as Config, Theme, CustomTheme }
|
package/src/theming/themes.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CustomTheme, Theme } from
|
|
1
|
+
import { CustomTheme, Theme } from "../index"
|
|
2
2
|
|
|
3
|
-
declare const themes: Record<`[data-theme=${Theme}]`, CustomTheme[string]
|
|
3
|
+
declare const themes: Record<`[data-theme=${Theme}]`, CustomTheme[string]>
|
|
4
4
|
|
|
5
|
-
export default themes
|
|
5
|
+
export default themes
|