vueless 0.0.233 → 0.0.234

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.233",
3
+ "version": "0.0.234",
4
4
  "license": "MIT",
5
5
  "description": "Vue Styleless Component Framework.",
6
6
  "homepage": "https://vueless.com",
@@ -37,7 +37,7 @@
37
37
  "@release-it/bumper": "^6.0.1",
38
38
  "@vitejs/plugin-vue": "^5.0.5",
39
39
  "@vue/eslint-config-prettier": "^9.0.0",
40
- "@vueless/plugin-vite": "^0.0.40",
40
+ "@vueless/plugin-vite": "^0.0.43",
41
41
  "@vueless/storybook": "^0.0.34",
42
42
  "@vueless/web-types": "^0.0.13",
43
43
  "autoprefixer": "^10.4.19",
@@ -9,6 +9,20 @@ import {
9
9
  } from "../constants/index.js";
10
10
 
11
11
  const safelist = getSafelist();
12
+ const isStrategyOverride = process.env.VUELESS_STRATEGY === "override";
13
+
14
+ /**
15
+ * Vueless Tailwind CSS `content` config.
16
+ * Use it to extend project Tailwind CSS `content` config.
17
+ */
18
+ export const vuelessContent = [
19
+ "./index.html",
20
+ "./src/**/*.{js,ts,jsx,tsx,vue}",
21
+ "./vueless.config.{js,ts}",
22
+ "./node_modules/vueless/**/*.{js,ts,vue}",
23
+ ...(isStrategyOverride ? ["!./src/**/ui.*/**/configs/default.config.js"] : []),
24
+ ...(isStrategyOverride ? ["!./node_modules/vueless/**/ui.*/**/configs/default.config.js"] : []),
25
+ ];
12
26
 
13
27
  /**
14
28
  * Generates preset for TailwindCSS base on Vueless config.
@@ -17,12 +31,7 @@ const safelist = getSafelist();
17
31
  export function vuelessPreset() {
18
32
  return {
19
33
  darkMode: DARK_MODE_SELECTOR,
20
- content: [
21
- "./index.html",
22
- "./src/**/*.{js,ts,jsx,tsx,vue}",
23
- "./vueless.config.{js,ts}",
24
- "./node_modules/vueless/**/*.{js,ts,vue}",
25
- ],
34
+ content: vuelessContent,
26
35
  safelist,
27
36
  theme: {
28
37
  extend: {
@@ -46,12 +55,6 @@ export function vuelessPreset() {
46
55
  ringOffsetWidth: {
47
56
  dynamic: "var(--vl-ring-offset)",
48
57
  },
49
- ringWidth: {
50
- dynamic: "var(--vl-ring)",
51
- },
52
- ringOffsetWidth: {
53
- dynamic: "var(--vl-ring-offset)",
54
- },
55
58
  borderRadius: {
56
59
  dynamic: "var(--vl-rounding)",
57
60
  },
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "framework": "vue",
3
3
  "name": "vueless",
4
- "version": "0.0.233",
4
+ "version": "0.0.234",
5
5
  "contributions": {
6
6
  "html": {
7
7
  "description-markup": "markdown",