vueless 0.0.125 → 0.0.126

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.125",
3
+ "version": "0.0.126",
4
4
  "license": "MIT",
5
5
  "description": "Vue Styleless Component Framework.",
6
6
  "homepage": "https://vueless.com",
@@ -8,8 +8,8 @@ import { BRAND_COLORS, GRAY_COLORS, GRAYSCALE_COLOR } from "./constants/index.js
8
8
  export function vuelessPreset() {
9
9
  const isProd = process.env.NODE_ENV === "production";
10
10
  const brandColor = twColorWithOpacity("--color-brand");
11
- const { brand, gray } = getVuelessConfig();
12
- const colors = getTailwindColorsConfig();
11
+ const { brand, gray } = getVuelessConfigColors();
12
+ const colors = getTailwindConfigColors();
13
13
 
14
14
  if (!Object.keys(colors).length) {
15
15
  return {};
@@ -76,16 +76,16 @@ function twColorWithOpacity(variableName) {
76
76
  * Convert sting to object.
77
77
  * @returns {Object} - TailwindCSS safelist.
78
78
  */
79
- function getTailwindColorsConfig() {
80
- return JSON.parse(process.env.VUELESS_TAILWIND_COLORS_CONFIG_JSON || "{}");
79
+ function getTailwindConfigColors() {
80
+ return JSON.parse(process.env.VUELESS_TAILWIND_CONFIG_COLORS || "{}");
81
81
  }
82
82
 
83
83
  /**
84
84
  * Convert sting to object.
85
85
  * @returns {Object} - TailwindCSS safelist.
86
86
  */
87
- function getVuelessConfig() {
88
- return JSON.parse(process.env.VUELESS_CONFIG_JSON || "{}");
87
+ function getVuelessConfigColors() {
88
+ return JSON.parse(process.env.VUELESS_CONFIG_COLORS || "{}");
89
89
  }
90
90
 
91
91
  /**
@@ -93,7 +93,7 @@ function getVuelessConfig() {
93
93
  * @returns {Array} - TailwindCSS safelist.
94
94
  */
95
95
  function getSafelist() {
96
- return JSON.parse(process.env.VUELESS_SAFELIST_JSON || "[]").map((rule) => ({
96
+ return JSON.parse(process.env.VUELESS_SAFELIST || "[]").map((rule) => ({
97
97
  ...rule,
98
98
  pattern: new RegExp(rule.pattern),
99
99
  }));
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "framework": "vue",
3
3
  "name": "vueless",
4
- "version": "0.0.125",
4
+ "version": "0.0.126",
5
5
  "contributions": {
6
6
  "html": {
7
7
  "description-markup": "markdown",