vueless 0.0.353 → 0.0.354
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 +1 -1
- package/preset.tailwind.js +12 -12
- package/utils/utilUI.js +1 -1
- package/web-types.json +1 -1
package/package.json
CHANGED
package/preset.tailwind.js
CHANGED
|
@@ -56,7 +56,6 @@ const grayColors = getPalette(GRAY_COLOR);
|
|
|
56
56
|
export const vuelessTailwindConfig = {
|
|
57
57
|
darkMode: DARK_MODE_SELECTOR,
|
|
58
58
|
content: [...vuelessContent, ...vuelessContentVue, ...vuelessContentNuxt],
|
|
59
|
-
safelist,
|
|
60
59
|
theme: {
|
|
61
60
|
extend: {
|
|
62
61
|
colors: {
|
|
@@ -94,9 +93,21 @@ export function vuelessPreset() {
|
|
|
94
93
|
return {
|
|
95
94
|
...vuelessTailwindConfig,
|
|
96
95
|
plugins: [forms],
|
|
96
|
+
safelist,
|
|
97
97
|
};
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
+
/**
|
|
101
|
+
* Convert sting patterns to RegExp.
|
|
102
|
+
* @returns {Array} - TailwindCSS safelist.
|
|
103
|
+
*/
|
|
104
|
+
export function getSafelist() {
|
|
105
|
+
return JSON.parse(process.env.VUELESS_SAFELIST || "[]").map((rule) => ({
|
|
106
|
+
...rule,
|
|
107
|
+
pattern: new RegExp(rule.pattern),
|
|
108
|
+
}));
|
|
109
|
+
}
|
|
110
|
+
|
|
100
111
|
/**
|
|
101
112
|
* Transform CSS variable with RGB numbers into CSS color.
|
|
102
113
|
* @param { String } variableName
|
|
@@ -122,14 +133,3 @@ function getPalette(color) {
|
|
|
122
133
|
|
|
123
134
|
return palette;
|
|
124
135
|
}
|
|
125
|
-
|
|
126
|
-
/**
|
|
127
|
-
* Convert sting patterns to RegExp.
|
|
128
|
-
* @returns {Array} - TailwindCSS safelist.
|
|
129
|
-
*/
|
|
130
|
-
function getSafelist() {
|
|
131
|
-
return JSON.parse(process.env.VUELESS_SAFELIST || "[]").map((rule) => ({
|
|
132
|
-
...rule,
|
|
133
|
-
pattern: new RegExp(rule.pattern),
|
|
134
|
-
}));
|
|
135
|
-
}
|
package/utils/utilUI.js
CHANGED