vueless 0.0.348 → 0.0.350

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.348",
3
+ "version": "0.0.350",
4
4
  "license": "MIT",
5
5
  "description": "Vue Styleless Component Framework.",
6
6
  "homepage": "https://vueless.com",
@@ -16,15 +16,22 @@ const isStrategyOverride = process.env.VUELESS_STRATEGY === "override";
16
16
  * Use it to extend project Tailwind CSS `content` config.
17
17
  */
18
18
  export const vuelessContent = [
19
- "./index.html",
20
- "./src/**/*.{js,ts,jsx,tsx,vue}",
21
19
  "./vueless.config.{js,ts}",
22
20
  "./node_modules/vueless/**/*.{js,ts,vue}",
23
- ...(isStrategyOverride ? ["!./src/**/ui.*/config.js"] : []),
21
+ ...(isStrategyOverride ? ["!./src/**/ui.*/config.js"] : []), // only for vueless env
24
22
  ...(isStrategyOverride ? ["!./node_modules/vueless/**/ui.*/config.js"] : []),
25
23
  ];
26
24
 
27
- // eslint-disable-next-line no-unused-vars
25
+ /**
26
+ * Vue.js default Tailwind CSS `content` config.
27
+ * Use it to extend project Tailwind CSS `content` config.
28
+ */
29
+ export const vuelessContentVue = ["./index.html", "./src/**/*.{js,ts,jsx,tsx,vue}"];
30
+
31
+ /**
32
+ * Nuxt.js default Tailwind CSS `content` config.
33
+ * Use it to extend project Tailwind CSS `content` config.
34
+ */
28
35
  export const vuelessContentNuxt = [
29
36
  "./composables/**/*.{js,ts}",
30
37
  "./components/**/*.{js,vue,ts}",
@@ -33,9 +40,6 @@ export const vuelessContentNuxt = [
33
40
  "./plugins/**/*.{js,ts}",
34
41
  "./app.vue",
35
42
  "./error.vue",
36
- "./vueless.config.{js,ts}",
37
- "./node_modules/vueless/**/*.{js,ts,vue}",
38
- ...(isStrategyOverride ? ["!./node_modules/vueless/**/ui.*/**/config.js"] : []),
39
43
  ];
40
44
 
41
45
  /**
@@ -45,7 +49,7 @@ export const vuelessContentNuxt = [
45
49
  export function vuelessPreset() {
46
50
  return {
47
51
  darkMode: DARK_MODE_SELECTOR,
48
- content: vuelessContent,
52
+ content: [...vuelessContent, ...vuelessContentVue, ...vuelessContentNuxt],
49
53
  safelist,
50
54
  theme: {
51
55
  extend: {
@@ -243,7 +243,7 @@ const elementId = props.id || useId();
243
243
 
244
244
  const { inputAttrs } = useAttrs(props);
245
245
 
246
- const { formattedValue, rawValue, setValue } = useFormatCurrency(`#${props.id}`, () => ({
246
+ const { formattedValue, rawValue, setValue } = useFormatCurrency(`#${elementId}`, () => ({
247
247
  minFractionDigits: props.minFractionDigits,
248
248
  maxFractionDigits: props.maxFractionDigits,
249
249
  decimalSeparator: props.decimalSeparator,
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "framework": "vue",
3
3
  "name": "vueless",
4
- "version": "0.0.348",
4
+ "version": "0.0.350",
5
5
  "contributions": {
6
6
  "html": {
7
7
  "description-markup": "markdown",