daisyui 3.9.1 → 3.9.3
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 +3 -3
- package/src/index.js +27 -38
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "daisyui",
|
|
3
|
-
"version": "3.9.
|
|
3
|
+
"version": "3.9.3",
|
|
4
4
|
"description": "daisyUI - Tailwind CSS Components",
|
|
5
5
|
"author": "Pouya Saadeghi",
|
|
6
6
|
"license": "MIT",
|
|
@@ -77,8 +77,8 @@
|
|
|
77
77
|
"prejss-cli": "0.3.3",
|
|
78
78
|
"prettier": "^3.0.3",
|
|
79
79
|
"prettier-plugin-svelte": "^3.0.3",
|
|
80
|
-
"prettier-plugin-tailwindcss": "^0.5.
|
|
81
|
-
"rtlcss": "4.1.
|
|
80
|
+
"prettier-plugin-tailwindcss": "^0.5.5",
|
|
81
|
+
"rtlcss": "4.1.1",
|
|
82
82
|
"standard-version": "^9.5.0"
|
|
83
83
|
},
|
|
84
84
|
"dependencies": {
|
package/src/index.js
CHANGED
|
@@ -23,11 +23,7 @@ const mainFunction = ({ addBase, addComponents, config }) => {
|
|
|
23
23
|
}
|
|
24
24
|
if (logs) {
|
|
25
25
|
console.log()
|
|
26
|
-
console.log(
|
|
27
|
-
"\x1b[35m%s\x1b[0m",
|
|
28
|
-
"🌼 daisyUI " + daisyuiInfo.version,
|
|
29
|
-
"\x1b[0m" + daisyuiInfo.homepage
|
|
30
|
-
)
|
|
26
|
+
console.log("╭── 🌼\x1b[35m daisyUI " + daisyuiInfo.version, "\x1b[0m" + daisyuiInfo.homepage)
|
|
31
27
|
}
|
|
32
28
|
|
|
33
29
|
// inject @base style
|
|
@@ -86,80 +82,72 @@ const mainFunction = ({ addBase, addComponents, config }) => {
|
|
|
86
82
|
}
|
|
87
83
|
|
|
88
84
|
if (logs) {
|
|
89
|
-
console.log("
|
|
85
|
+
console.log("│")
|
|
90
86
|
if (config("daisyui.styled") == false) {
|
|
91
87
|
console.log(
|
|
92
|
-
"
|
|
93
|
-
"\x1b[33m" + "◆" + "\x1b[0m" + "\x1b[2m",
|
|
88
|
+
"├──",
|
|
94
89
|
"daisyui.styled",
|
|
95
90
|
"\x1b[0m" + "config is",
|
|
96
91
|
"\x1b[2m" + "false" + "\x1b[0m",
|
|
97
|
-
"– your components will have no design decisions" + "\n
|
|
92
|
+
"– your components will have no design decisions" + "\n│"
|
|
98
93
|
)
|
|
99
94
|
}
|
|
100
95
|
if (config("daisyui.utils") == false) {
|
|
101
96
|
console.log(
|
|
102
|
-
"
|
|
103
|
-
"\x1b[33m" + "◆" + "\x1b[0m" + "\x1b[2m",
|
|
97
|
+
"├──",
|
|
104
98
|
"daisyui.utils",
|
|
105
99
|
"\x1b[0m" + "config is",
|
|
106
100
|
"\x1b[2m" + "false" + "\x1b[0m",
|
|
107
|
-
"– daisyUI modifier utility classes are disabled" + "\n
|
|
101
|
+
"– daisyUI modifier utility classes are disabled" + "\n│"
|
|
108
102
|
)
|
|
109
103
|
}
|
|
110
104
|
if (config("daisyui.prefix") && config("daisyui.prefix") !== "") {
|
|
111
105
|
console.log(
|
|
112
|
-
"
|
|
113
|
-
"\x1b[
|
|
114
|
-
"
|
|
106
|
+
"├──",
|
|
107
|
+
"\x1b[2m" + "prefix" + "\x1b[0m",
|
|
108
|
+
"is enabled, daisyUI classnames must use",
|
|
115
109
|
"\x1b[2m" + `${config("daisyui.prefix")}`,
|
|
116
110
|
"\x1b[0m" + "prefix. like:",
|
|
117
111
|
"\x1b[2m" + `${config("daisyui.prefix")}btn`,
|
|
118
|
-
"\x1b[0m" + "\n
|
|
112
|
+
"\x1b[0m" + "\n│ https://daisyui.com/docs/config" + "\n│"
|
|
119
113
|
)
|
|
120
114
|
}
|
|
121
115
|
if (config("daisyui.rtl") == true) {
|
|
122
116
|
console.log(
|
|
123
|
-
"
|
|
124
|
-
"\x1b[32m" + "✔︎" + "\x1b[0m",
|
|
117
|
+
"├──",
|
|
125
118
|
"Using RTL, make sure you're using",
|
|
126
119
|
"\x1b[2m" + "<html dir=rtl>" + "\x1b[0m",
|
|
127
120
|
"and you have",
|
|
128
|
-
"\x1b[
|
|
129
|
-
"tailwindcss-flip",
|
|
130
|
-
"\x1b[0m",
|
|
121
|
+
"\x1b[2mtailwindcss-flip\x1b[0m",
|
|
131
122
|
"plugin",
|
|
132
|
-
"\n
|
|
123
|
+
"\n│ https://daisyui.com/docs/config" + "\n│"
|
|
133
124
|
)
|
|
134
125
|
}
|
|
135
126
|
if (themeInjectorHsl.themeOrder.length > 0) {
|
|
136
127
|
console.log(
|
|
137
|
-
"
|
|
138
|
-
"\x1b[32m" + "✔︎" + "\x1b[0m",
|
|
128
|
+
"├──",
|
|
139
129
|
"\x1b[2m" +
|
|
140
|
-
"[ " +
|
|
141
|
-
"\x1b[0m" +
|
|
142
130
|
`${themeInjectorHsl.themeOrder.length}` +
|
|
143
|
-
"\x1b[2m" +
|
|
144
|
-
" ]" +
|
|
145
131
|
"\x1b[0m" +
|
|
146
132
|
` ${themeInjectorHsl.themeOrder.length > 1 ? "themes are" : "theme is"}` +
|
|
147
|
-
` enabled.
|
|
148
|
-
"\n
|
|
133
|
+
` enabled. How to add more themes:` +
|
|
134
|
+
"\n│ https://daisyui.com/docs/themes" +
|
|
135
|
+
"\n│"
|
|
149
136
|
)
|
|
150
137
|
}
|
|
151
138
|
if (themeInjectorHsl.themeOrder.length === 0) {
|
|
152
139
|
console.log(
|
|
153
|
-
"
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
"\n
|
|
140
|
+
"├──",
|
|
141
|
+
`All themes are disabled in config. How to add themes:` +
|
|
142
|
+
"\n│ https://daisyui.com/docs/themes" +
|
|
143
|
+
"\n│"
|
|
157
144
|
)
|
|
158
145
|
}
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
146
|
+
let messages = [
|
|
147
|
+
`\x1b[32m💚 Support daisyUI project\x1b[0m: ${daisyuiInfo.funding.url}`,
|
|
148
|
+
`\x1b[32m⭐️ Star daisyUI project on GitHub\x1b[0m: https://github.com/saadeghi/daisyui`,
|
|
149
|
+
]
|
|
150
|
+
console.log("╰── " + messages[Math.floor(Math.random() * messages.length)])
|
|
163
151
|
console.log()
|
|
164
152
|
}
|
|
165
153
|
}
|
|
@@ -180,6 +168,7 @@ module.exports = require("tailwindcss/plugin")(mainFunction, {
|
|
|
180
168
|
"neutral-700": tailwindColors.neutral[700],
|
|
181
169
|
"neutral-800": tailwindColors.neutral[800],
|
|
182
170
|
"neutral-900": tailwindColors.neutral[900],
|
|
171
|
+
"neutral-950": tailwindColors.neutral[950],
|
|
183
172
|
},
|
|
184
173
|
},
|
|
185
174
|
},
|