@varlet/preset-tailwindcss 3.3.7-alpha.1721326819975 → 3.3.7-alpha.1721369238992

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/lib/index.cjs CHANGED
@@ -69,21 +69,6 @@ function getFontSize(options = {}) {
69
69
  }
70
70
  return __spreadValues(__spreadValues({}, defaultFontSize), fontSize);
71
71
  }
72
- function getOpacity(options = {}) {
73
- const { opacity = true } = options;
74
- if (!opacity) {
75
- return;
76
- }
77
- const defaultOpacity = {
78
- disabled: "var(--font-size-disabled)",
79
- hover: "var(--font-size-hover)",
80
- focus: "var(--font-size-focus)"
81
- };
82
- if (opacity === true) {
83
- return defaultOpacity;
84
- }
85
- return __spreadValues(__spreadValues({}, defaultOpacity), opacity);
86
- }
87
72
  function getColors(options = {}) {
88
73
  const { colors = true } = options;
89
74
  if (!colors) {
@@ -163,8 +148,7 @@ function presetVarlet(options = {}) {
163
148
  theme: {
164
149
  colors: getColors(options),
165
150
  screens: getScreens(options),
166
- fontSize: getFontSize(options),
167
- opacity: getOpacity(options)
151
+ fontSize: getFontSize(options)
168
152
  }
169
153
  };
170
154
  }
package/lib/index.d.cts CHANGED
@@ -1,7 +1,6 @@
1
1
  interface PresetVarletOptions {
2
2
  screens?: boolean | PresetVarletScreens;
3
3
  fontSize?: boolean | PresetVarletFontSize;
4
- opacity?: boolean | PresetVarletOpacity;
5
4
  colors?: boolean | PresetVarletColors;
6
5
  }
7
6
  interface PresetVarletScreens {
@@ -16,11 +15,6 @@ interface PresetVarletFontSize {
16
15
  md?: string;
17
16
  lg?: string;
18
17
  }
19
- interface PresetVarletOpacity {
20
- disabled?: string;
21
- hover?: string;
22
- focus?: string;
23
- }
24
18
  interface PresetVarletColors {
25
19
  body?: string;
26
20
  text?: string;
@@ -90,8 +84,7 @@ declare function presetVarlet(options?: PresetVarletOptions): {
90
84
  colors: PresetVarletColors | undefined;
91
85
  screens: PresetVarletScreens | undefined;
92
86
  fontSize: PresetVarletFontSize | undefined;
93
- opacity: PresetVarletOpacity | undefined;
94
87
  };
95
88
  };
96
89
 
97
- export { PresetVarletColors, PresetVarletFontSize, PresetVarletOpacity, PresetVarletOptions, PresetVarletScreens, presetVarlet };
90
+ export { PresetVarletColors, PresetVarletFontSize, PresetVarletOptions, PresetVarletScreens, presetVarlet };
package/lib/index.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  interface PresetVarletOptions {
2
2
  screens?: boolean | PresetVarletScreens;
3
3
  fontSize?: boolean | PresetVarletFontSize;
4
- opacity?: boolean | PresetVarletOpacity;
5
4
  colors?: boolean | PresetVarletColors;
6
5
  }
7
6
  interface PresetVarletScreens {
@@ -16,11 +15,6 @@ interface PresetVarletFontSize {
16
15
  md?: string;
17
16
  lg?: string;
18
17
  }
19
- interface PresetVarletOpacity {
20
- disabled?: string;
21
- hover?: string;
22
- focus?: string;
23
- }
24
18
  interface PresetVarletColors {
25
19
  body?: string;
26
20
  text?: string;
@@ -90,8 +84,7 @@ declare function presetVarlet(options?: PresetVarletOptions): {
90
84
  colors: PresetVarletColors | undefined;
91
85
  screens: PresetVarletScreens | undefined;
92
86
  fontSize: PresetVarletFontSize | undefined;
93
- opacity: PresetVarletOpacity | undefined;
94
87
  };
95
88
  };
96
89
 
97
- export { PresetVarletColors, PresetVarletFontSize, PresetVarletOpacity, PresetVarletOptions, PresetVarletScreens, presetVarlet };
90
+ export { PresetVarletColors, PresetVarletFontSize, PresetVarletOptions, PresetVarletScreens, presetVarlet };
package/lib/index.js CHANGED
@@ -48,21 +48,6 @@ function getFontSize(options = {}) {
48
48
  }
49
49
  return __spreadValues(__spreadValues({}, defaultFontSize), fontSize);
50
50
  }
51
- function getOpacity(options = {}) {
52
- const { opacity = true } = options;
53
- if (!opacity) {
54
- return;
55
- }
56
- const defaultOpacity = {
57
- disabled: "var(--font-size-disabled)",
58
- hover: "var(--font-size-hover)",
59
- focus: "var(--font-size-focus)"
60
- };
61
- if (opacity === true) {
62
- return defaultOpacity;
63
- }
64
- return __spreadValues(__spreadValues({}, defaultOpacity), opacity);
65
- }
66
51
  function getColors(options = {}) {
67
52
  const { colors = true } = options;
68
53
  if (!colors) {
@@ -142,8 +127,7 @@ function presetVarlet(options = {}) {
142
127
  theme: {
143
128
  colors: getColors(options),
144
129
  screens: getScreens(options),
145
- fontSize: getFontSize(options),
146
- opacity: getOpacity(options)
130
+ fontSize: getFontSize(options)
147
131
  }
148
132
  };
149
133
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@varlet/preset-tailwindcss",
3
- "version": "3.3.7-alpha.1721326819975",
3
+ "version": "3.3.7-alpha.1721369238992",
4
4
  "type": "module",
5
5
  "main": "lib/index.cjs",
6
6
  "module": "lib/index.js",