daisyui 2.2.2 → 2.3.2
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/README.md +6 -1
- package/dist/base.js +1 -1
- package/dist/full.css +1 -1
- package/dist/styled.css +3808 -1
- package/dist/styled.js +1 -1
- package/dist/styled.rtl.js +1 -1
- package/dist/themes.css +1056 -1
- package/dist/unstyled.css +1109 -1
- package/dist/unstyled.js +1 -1
- package/dist/unstyled.rtl.js +1 -1
- package/dist/utilities-styled.js +1 -1
- package/dist/utilities-unstyled.js +1 -1
- package/dist/utilities.js +1 -1
- package/package.json +7 -5
- package/src/index.js +17 -2
package/src/index.js
CHANGED
|
@@ -6,10 +6,12 @@ const unstyled = require("../dist/unstyled");
|
|
|
6
6
|
const unstyledRtl = require("../dist/unstyled.rtl");
|
|
7
7
|
const styled = require("../dist/styled");
|
|
8
8
|
const styledRtl = require("../dist/styled.rtl");
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
let utilitiesUnstyled = require("../dist/utilities-unstyled");
|
|
10
|
+
let utilitiesStyled = require("../dist/utilities-styled");
|
|
11
11
|
const themes = require("./colors/themes");
|
|
12
12
|
const colorFunctions = require("./colors/functions");
|
|
13
|
+
// const postcssJs = require('postcss-js');
|
|
14
|
+
// const postcssPrefix = require('postcss-class-prefix');
|
|
13
15
|
|
|
14
16
|
const mainFunction = ({ addBase, addComponents, addUtilities, config }) => {
|
|
15
17
|
let diasyuiIncludedItems = [];
|
|
@@ -61,6 +63,13 @@ const mainFunction = ({ addBase, addComponents, addUtilities, config }) => {
|
|
|
61
63
|
console.log("\x1b[36m%s\x1b[0m", " Direction:", "\x1b[0m", "RTL");
|
|
62
64
|
file = styledRtl;
|
|
63
65
|
}
|
|
66
|
+
|
|
67
|
+
// add prefix to class names if specified
|
|
68
|
+
// const prefix = config('daisyui.prefix');
|
|
69
|
+
// if (prefix) {
|
|
70
|
+
// file = postcssJs.sync(postcssPrefix(prefix))(file);
|
|
71
|
+
// }
|
|
72
|
+
|
|
64
73
|
addComponents(file);
|
|
65
74
|
|
|
66
75
|
const themeInjector = colorFunctions.injectThemes(addBase, config, themes)
|
|
@@ -71,7 +80,13 @@ const mainFunction = ({ addBase, addComponents, addUtilities, config }) => {
|
|
|
71
80
|
// inject @utilities style needed by components
|
|
72
81
|
if (config("daisyui.utils") != false) {
|
|
73
82
|
addComponents(utilities, { variants: ["responsive"] });
|
|
83
|
+
// if (prefix) {
|
|
84
|
+
// utilitiesUnstyled = postcssJs.sync(postcssPrefix(prefix))(utilitiesUnstyled);
|
|
85
|
+
// }
|
|
74
86
|
addComponents(utilitiesUnstyled, { variants: ["responsive"] });
|
|
87
|
+
// if (prefix) {
|
|
88
|
+
// utilitiesStyled = postcssJs.sync(postcssPrefix(prefix))(utilitiesStyled);
|
|
89
|
+
// }
|
|
75
90
|
addComponents(utilitiesStyled, { variants: ["responsive"] });
|
|
76
91
|
diasyuiIncludedItems.push("utilities");
|
|
77
92
|
}
|