vueless 0.0.427 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vueless",
3
- "version": "0.0.427",
3
+ "version": "0.0.428",
4
4
  "license": "MIT",
5
5
  "description": "Vue Styleless UI Component Library, powered by Tailwind CSS.",
6
6
  "keywords": [
@@ -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, DEFAULT_GRAY_COLOR),
96
- ...getReplacementColors(BRAND_COLOR, DEFAULT_GRAY_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 customColors = {
159
- ...colors,
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;
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "framework": "vue",
3
3
  "name": "vueless",
4
- "version": "0.0.427",
4
+ "version": "0.0.428",
5
5
  "contributions": {
6
6
  "html": {
7
7
  "description-markup": "markdown",