vueless 0.0.426 → 0.0.428
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 +2 -2
- package/preset.tailwind.js +5 -14
- package/web-types.json +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vueless",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.428",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Vue Styleless UI Component Library, powered by Tailwind CSS.",
|
|
6
6
|
"keywords": [
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"@release-it/bumper": "^6.0.1",
|
|
54
54
|
"@vitejs/plugin-vue": "^5.0.5",
|
|
55
55
|
"@vue/eslint-config-prettier": "^9.0.0",
|
|
56
|
-
"@vueless/plugin-vite": "^0.0.
|
|
56
|
+
"@vueless/plugin-vite": "^0.0.72",
|
|
57
57
|
"@vueless/storybook": "^0.0.34",
|
|
58
58
|
"@vueless/web-types": "^0.0.15",
|
|
59
59
|
"autoprefixer": "^10.4.19",
|
package/preset.tailwind.js
CHANGED
|
@@ -9,7 +9,6 @@ import {
|
|
|
9
9
|
DEFAULT_ROUNDING,
|
|
10
10
|
DEFAULT_RING,
|
|
11
11
|
DEFAULT_RING_OFFSET,
|
|
12
|
-
DEFAULT_GRAY_COLOR,
|
|
13
12
|
} from "./constants.js";
|
|
14
13
|
|
|
15
14
|
const isStrategyOverride = process.env.VUELESS_STRATEGY === "override";
|
|
@@ -92,8 +91,8 @@ export const vuelessTailwindConfig = {
|
|
|
92
91
|
"var(--vl-ring)": DEFAULT_RING,
|
|
93
92
|
"var(--vl-ring-offset)": DEFAULT_RING_OFFSET,
|
|
94
93
|
"var(--vl-rounding)": DEFAULT_ROUNDING,
|
|
95
|
-
...getReplacementColors(GRAY_COLOR,
|
|
96
|
-
...getReplacementColors(BRAND_COLOR,
|
|
94
|
+
...getReplacementColors(GRAY_COLOR, GRAY_COLOR),
|
|
95
|
+
...getReplacementColors(BRAND_COLOR, GRAY_COLOR),
|
|
97
96
|
},
|
|
98
97
|
},
|
|
99
98
|
},
|
|
@@ -155,20 +154,12 @@ function getPalette(color) {
|
|
|
155
154
|
* @returns { Object } - `tailwind-config-viewer` color replacement object.
|
|
156
155
|
*/
|
|
157
156
|
function getReplacementColors(color, tailwindColor) {
|
|
158
|
-
const
|
|
159
|
-
|
|
160
|
-
[BRAND_COLOR]: brandColors || {},
|
|
161
|
-
[GRAY_COLOR]: grayColors || {},
|
|
162
|
-
[COOL_COLOR]: { ...(colors[GRAY_COLOR] || {}) },
|
|
163
|
-
};
|
|
164
|
-
|
|
165
|
-
let varsPalette = {
|
|
166
|
-
[twColorWithOpacity(`--vl-color-${color}-default`)]: customColors[tailwindColor][600],
|
|
157
|
+
const varsPalette = {
|
|
158
|
+
[twColorWithOpacity(`--vl-color-${color}-default`)]: colors[tailwindColor][600],
|
|
167
159
|
};
|
|
168
160
|
|
|
169
161
|
COLOR_SHADES.forEach((shade) => {
|
|
170
|
-
varsPalette[twColorWithOpacity(`--vl-color-${color}-${shade}`)] =
|
|
171
|
-
customColors[tailwindColor][shade];
|
|
162
|
+
varsPalette[twColorWithOpacity(`--vl-color-${color}-${shade}`)] = colors[tailwindColor][shade];
|
|
172
163
|
});
|
|
173
164
|
|
|
174
165
|
return varsPalette;
|