@witchcraft/ui 0.3.20 → 0.3.22

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.
Files changed (74) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/module.mjs +7 -4
  3. package/dist/runtime/assets/animations.css +1 -1
  4. package/dist/runtime/components/Aria/Aria.d.vue.ts +2 -1
  5. package/dist/runtime/components/Aria/Aria.vue.d.ts +2 -1
  6. package/dist/runtime/components/Icon/Icon.d.vue.ts +3 -2
  7. package/dist/runtime/components/Icon/Icon.vue.d.ts +3 -2
  8. package/dist/runtime/components/LibButton/LibButton.d.vue.ts +6 -5
  9. package/dist/runtime/components/LibButton/LibButton.vue.d.ts +6 -5
  10. package/dist/runtime/components/LibCheckbox/LibCheckbox.d.vue.ts +5 -6
  11. package/dist/runtime/components/LibCheckbox/LibCheckbox.vue.d.ts +5 -6
  12. package/dist/runtime/components/LibColorInput/LibColorInput.d.vue.ts +7 -6
  13. package/dist/runtime/components/LibColorInput/LibColorInput.vue.d.ts +7 -6
  14. package/dist/runtime/components/LibColorPicker/LibColorPicker.d.vue.ts +7 -5
  15. package/dist/runtime/components/LibColorPicker/LibColorPicker.vue.d.ts +7 -5
  16. package/dist/runtime/components/LibDarkModeSwitcher/LibDarkModeSwitcher.d.vue.ts +10 -9
  17. package/dist/runtime/components/LibDarkModeSwitcher/LibDarkModeSwitcher.vue.d.ts +10 -9
  18. package/dist/runtime/components/LibDatePicker/LibDatePicker.d.vue.ts +156 -5
  19. package/dist/runtime/components/LibDatePicker/LibDatePicker.vue.d.ts +156 -5
  20. package/dist/runtime/components/LibDatePicker/LibRangeDatePicker.d.vue.ts +154 -6
  21. package/dist/runtime/components/LibDatePicker/LibRangeDatePicker.vue.d.ts +154 -6
  22. package/dist/runtime/components/LibDatePicker/LibSingleDatePicker.d.vue.ts +7 -5
  23. package/dist/runtime/components/LibDatePicker/LibSingleDatePicker.vue.d.ts +7 -5
  24. package/dist/runtime/components/LibDatePicker/LibTimeZonePicker.d.vue.ts +7 -6
  25. package/dist/runtime/components/LibDatePicker/LibTimeZonePicker.vue.d.ts +7 -6
  26. package/dist/runtime/components/LibDebug/LibDebug.d.vue.ts +3 -2
  27. package/dist/runtime/components/LibDebug/LibDebug.vue.d.ts +3 -2
  28. package/dist/runtime/components/LibDevOnly/LibDevOnly.d.vue.ts +3 -2
  29. package/dist/runtime/components/LibDevOnly/LibDevOnly.vue.d.ts +3 -2
  30. package/dist/runtime/components/LibFileInput/LibFileInput.d.vue.ts +20 -19
  31. package/dist/runtime/components/LibFileInput/LibFileInput.vue.d.ts +20 -19
  32. package/dist/runtime/components/LibInputDeprecated/LibInputDeprecated.d.vue.ts +107 -16
  33. package/dist/runtime/components/LibInputDeprecated/LibInputDeprecated.vue.d.ts +107 -16
  34. package/dist/runtime/components/LibLabel/LibLabel.d.vue.ts +4 -3
  35. package/dist/runtime/components/LibLabel/LibLabel.vue.d.ts +4 -3
  36. package/dist/runtime/components/LibMultiValues/LibMultiValues.d.vue.ts +15 -10
  37. package/dist/runtime/components/LibMultiValues/LibMultiValues.vue.d.ts +15 -10
  38. package/dist/runtime/components/LibNotifications/LibNotification.d.vue.ts +14 -5
  39. package/dist/runtime/components/LibNotifications/LibNotification.vue.d.ts +14 -5
  40. package/dist/runtime/components/LibNotifications/LibNotificationTestMessageComponent.d.vue.ts +2 -1
  41. package/dist/runtime/components/LibNotifications/LibNotificationTestMessageComponent.vue.d.ts +2 -1
  42. package/dist/runtime/components/LibNotifications/LibNotifications.d.vue.ts +2 -1
  43. package/dist/runtime/components/LibNotifications/LibNotifications.vue.d.ts +2 -1
  44. package/dist/runtime/components/LibPagination/LibPagination.d.vue.ts +51 -50
  45. package/dist/runtime/components/LibPagination/LibPagination.vue.d.ts +51 -50
  46. package/dist/runtime/components/LibPalette/LibPalette.d.vue.ts +4 -3
  47. package/dist/runtime/components/LibPalette/LibPalette.vue.d.ts +4 -3
  48. package/dist/runtime/components/LibPopup/LibPopup.d.vue.ts +9 -3
  49. package/dist/runtime/components/LibPopup/LibPopup.vue.d.ts +9 -3
  50. package/dist/runtime/components/LibProgressBar/LibProgressBar.d.vue.ts +4 -3
  51. package/dist/runtime/components/LibProgressBar/LibProgressBar.vue.d.ts +4 -3
  52. package/dist/runtime/components/LibRecorder/LibRecorder.d.vue.ts +4 -3
  53. package/dist/runtime/components/LibRecorder/LibRecorder.vue.d.ts +4 -3
  54. package/dist/runtime/components/LibRoot/LibRoot.d.vue.ts +5 -4
  55. package/dist/runtime/components/LibRoot/LibRoot.vue.d.ts +5 -4
  56. package/dist/runtime/components/LibSimpleInput/LibSimpleInput.d.vue.ts +18 -13
  57. package/dist/runtime/components/LibSimpleInput/LibSimpleInput.vue +1 -1
  58. package/dist/runtime/components/LibSimpleInput/LibSimpleInput.vue.d.ts +18 -13
  59. package/dist/runtime/components/LibSuggestions/LibSuggestions.d.vue.ts +23 -18
  60. package/dist/runtime/components/LibSuggestions/LibSuggestions.vue.d.ts +23 -18
  61. package/dist/runtime/components/LibTable/LibTable.d.vue.ts +34 -13
  62. package/dist/runtime/components/LibTable/LibTable.vue.d.ts +34 -13
  63. package/dist/runtime/components/Template/NAME.d.vue.ts +3 -2
  64. package/dist/runtime/components/Template/NAME.vue.d.ts +3 -2
  65. package/dist/runtime/components/TestControls/TestControls.d.vue.ts +2 -1
  66. package/dist/runtime/components/TestControls/TestControls.vue.d.ts +2 -1
  67. package/package.json +50 -50
  68. package/src/module.ts +8 -4
  69. package/src/runtime/assets/animations.css +2 -2
  70. package/src/runtime/assets/tailwind.css +1 -1
  71. package/src/runtime/components/LibCheckbox/LibCheckbox.vue +3 -1
  72. package/src/runtime/components/LibFileInput/LibFileInput.vue +13 -4
  73. package/src/runtime/components/LibInputDeprecated/LibInputDeprecated.vue +6 -1
  74. package/src/runtime/components/LibSimpleInput/LibSimpleInput.vue +2 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@witchcraft/ui",
3
- "version": "0.3.20",
3
+ "version": "0.3.22",
4
4
  "description": "Vue component library.",
5
5
  "type": "module",
6
6
  "main": "./dist/runtime/main.lib.js",
@@ -49,9 +49,9 @@
49
49
  "failOnWarn": false
50
50
  },
51
51
  "peerDependencies": {
52
- "tailwindcss": "^4.1.12",
53
- "unplugin-icons": "^22.2.0",
54
- "vue": "^3.5.20"
52
+ "tailwindcss": "^4.1.18",
53
+ "unplugin-icons": "^22.5.0",
54
+ "vue": "^3.5.27"
55
55
  },
56
56
  "peerDependenciesMeta": {
57
57
  "tailwindcss": {
@@ -62,82 +62,82 @@
62
62
  }
63
63
  },
64
64
  "dependencies": {
65
- "@alanscodelog/utils": "^6.0.1",
66
- "@iconify/json": "^2.2.379",
67
- "@nuxt/kit": "^4.0.3",
68
- "@nuxt/schema": "^4.0.3",
65
+ "@alanscodelog/utils": "^6.0.2",
66
+ "@iconify/json": "^2.2.437",
67
+ "@nuxt/kit": "^4.3.1",
68
+ "@nuxt/schema": "^4.3.1",
69
69
  "@nuxt/types": "^2.18.1",
70
- "@tailwindcss/vite": "^4.1.12",
70
+ "@tailwindcss/vite": "^4.1.18",
71
71
  "@witchcraft/nuxt-utils": "^0.3.6",
72
72
  "colord": "^2.9.3",
73
73
  "colorjs.io": "0.6.0-alpha.1",
74
74
  "defu": "^6.1.4",
75
75
  "fast-glob": "^3.3.3",
76
76
  "metamorphosis": "^0.6.1",
77
- "reka-ui": "^2.5.0",
78
- "tailwind-merge": "^3.3.1",
79
- "unplugin-icons": "^22.2.0",
77
+ "reka-ui": "^2.8.0",
78
+ "tailwind-merge": "^3.4.0",
79
+ "unplugin-icons": "^22.5.0",
80
80
  "unplugin-vue-components": "^28.8.0",
81
81
  "vue-component-type-helpers": "^2.2.12"
82
82
  },
83
83
  "devDependencies": {
84
84
  "@alanscodelog/commitlint-config": "^3.1.2",
85
- "@alanscodelog/eslint-config": "^6.3.0",
86
- "@alanscodelog/semantic-release-config": "^6.0.0",
85
+ "@alanscodelog/eslint-config": "^6.3.1",
86
+ "@alanscodelog/semantic-release-config": "^6.0.2",
87
87
  "@alanscodelog/tsconfigs": "^6.2.0",
88
- "@alanscodelog/vite-config": "^0.0.6",
88
+ "@alanscodelog/vite-config": "^0.0.7",
89
89
  "@chromatic-com/storybook": "^3.2.7",
90
- "@commitlint/cli": "^19.8.1",
91
- "@internationalized/date": "^3.9.0",
92
- "@faker-js/faker": "^10.0.0",
93
- "@nuxt/eslint-config": "^1.9.0",
90
+ "@commitlint/cli": "^20.4.1",
91
+ "@internationalized/date": "^3.11.0",
92
+ "@faker-js/faker": "^10.3.0",
93
+ "@nuxt/eslint-config": "^1.14.0",
94
94
  "@nuxt/module-builder": "^1.0.2",
95
95
  "@nuxtjs/i18n": "^9.5.6",
96
- "@playwright/test": "=1.54.0",
97
- "@rollup/plugin-node-resolve": "^16.0.1",
98
- "@storybook/addon-a11y": "^8.6.14",
99
- "@storybook/addon-actions": "^8.6.14",
96
+ "@playwright/test": "^1.54.0",
97
+ "@rollup/plugin-node-resolve": "^16.0.3",
98
+ "@storybook/addon-a11y": "^8.6.15",
99
+ "@storybook/addon-actions": "^8.6.15",
100
100
  "@storybook/addon-essentials": "^8.6.14",
101
101
  "@storybook/addon-interactions": "^8.6.14",
102
- "@storybook/addon-links": "^8.6.14",
102
+ "@storybook/addon-links": "^8.6.15",
103
103
  "@storybook/addon-storysource": "^8.6.14",
104
104
  "@storybook/blocks": "^8.6.14",
105
105
  "@storybook/manager-api": "^8.6.14",
106
- "@storybook/test": "^8.6.14",
106
+ "@storybook/test": "^8.6.15",
107
107
  "@storybook/test-runner": "^0.22.1",
108
- "@storybook/vue3": "^8.6.14",
109
- "@storybook/vue3-vite": "^8.6.14",
110
- "@tanstack/vue-virtual": "^3.13.0",
111
- "@tailwindcss/cli": "^4.1.12",
112
- "@tailwindcss/postcss": "^4.1.12",
113
- "@types/node": "^24.3.0",
114
- "@vitejs/plugin-vue": "^6.0.1",
115
- "@vue/runtime-core": "^3.5.20",
116
- "@vue/runtime-dom": "^3.5.20",
117
- "@vueuse/components": "^13.8.0",
118
- "@vueuse/core": "^13.8.0",
119
- "autoprefixer": "^10.4.21",
108
+ "@storybook/vue3": "^8.6.15",
109
+ "@storybook/vue3-vite": "^8.6.15",
110
+ "@tanstack/vue-virtual": "^3.13.18",
111
+ "@tailwindcss/cli": "^4.1.18",
112
+ "@tailwindcss/postcss": "^4.1.18",
113
+ "@types/node": "^24.10.12",
114
+ "@vitejs/plugin-vue": "^6.0.4",
115
+ "@vue/runtime-core": "^3.5.27",
116
+ "@vue/runtime-dom": "^3.5.27",
117
+ "@vueuse/components": "^13.9.0",
118
+ "@vueuse/core": "^13.9.0",
119
+ "autoprefixer": "^10.4.24",
120
120
  "concurrently": "^9.2.1",
121
- "eslint": "^9.34.0",
121
+ "eslint": "^9.39.2",
122
122
  "http-server": "^14.1.1",
123
123
  "husky": "^9.1.7",
124
124
  "indexit": "2.1.0-beta.3",
125
125
  "madge": "^7.0.0",
126
- "nuxt": "^4.2.1",
127
- "playwright": "=1.54.0",
128
- "playwright-core": "=1.54.0",
129
- "semantic-release": "^24.2.7",
130
- "storybook": "^8.6.14",
126
+ "nuxt": "^4.3.1",
127
+ "playwright": "^1.54.0",
128
+ "playwright-core": "^1.54.0",
129
+ "semantic-release": "^24.2.9",
130
+ "storybook": "^8.6.15",
131
131
  "storybook-dark-mode": "^4.0.2",
132
- "tailwindcss": "^4.1.12",
132
+ "tailwindcss": "^4.1.18",
133
133
  "ts-node": "^10.9.2",
134
- "typescript": "^5.9.2",
134
+ "typescript": "^5.9.3",
135
135
  "unbuild": "^3.6.1",
136
- "vite": "^7.1.3",
137
- "vite-tsconfig-paths": "^5.1.4",
138
- "vue": "^3.5.20",
139
- "vue-tsc": "3.0.6",
140
- "wait-on": "^8.0.4"
136
+ "vite": "^7.3.1",
137
+ "vite-tsconfig-paths": "^6.1.0",
138
+ "vue": "^3.5.27",
139
+ "vue-tsc": "3.2.4",
140
+ "wait-on": "^8.0.5"
141
141
  },
142
142
  "author": "Alan <alanscodelog@gmail.com>",
143
143
  "repository": "https://github.com/witchcraftjs/ui",
package/src/module.ts CHANGED
@@ -133,20 +133,24 @@ export default defineNuxtModule<ModuleOptions>({
133
133
  }
134
134
  )
135
135
 
136
+ const assetDir = resolve("runtime/assets")
137
+ const tailwindFiles = globFiles([
138
+ `${assetDir}/**/*.css`,
139
+ `!${assetDir}/**/tailwind.css`
140
+ ], [])
141
+
136
142
  addTemplate({
137
143
  filename: "witchcraft-ui.css",
138
144
  write: true,
139
145
  getContents: () => options._playgroundWorkaround
140
146
  ? crop`
141
147
  ${indent(themeAsTailwindCss(theme, themeConvertionOpts), 5)}
142
- @import "${resolve("runtime/assets/base.css")}";
143
- @import "${resolve("runtime/assets/utils.css")}";
148
+ ${indent(tailwindFiles.map(_ => `@import "${_.filepath}";`).join("\n"), 5)}
144
149
  ${indent(filteredComponentsInfo.map(_ => `@source "${_.filepath}";`).join("\n"), 5)}
145
150
  `
146
151
  : crop`
147
152
  ${indent(themeAsTailwindCss(theme, themeConvertionOpts), 5)}
148
- @import "@witchcraft/ui/base.css";
149
- @import "@witchcraft/ui/utils.css";
153
+ ${indent(tailwindFiles.map(_ => `@import "${_.filepath.replace(assetDir, "@witchcraft/ui/")}";`).join("\n"), 5)}
150
154
  ${indent(filteredComponentsInfo.map(_ => `@source "${_.filepath}";`).join("\n"), 5)}
151
155
  `
152
156
  })
@@ -9,7 +9,7 @@
9
9
  }
10
10
 
11
11
  @theme {
12
- --animate-blinkInf: blink 1s linear-infinite;
12
+ --animate-blinkInf: blink 1s linear infinite;
13
13
  @keyframes blink {
14
14
  0% {
15
15
  opacity: 0;
@@ -28,7 +28,7 @@
28
28
  }
29
29
  }
30
30
 
31
- --animate-slideBgInf: slide-bg 10s linear-infinite;
31
+ --animate-slideBgInf: slide-bg 10s ease-in-out linear-infinite;
32
32
  @keyframes slide {
33
33
  0% {
34
34
  background-position:0%;
@@ -1,4 +1,4 @@
1
- /* For storybook, not exported. */
1
+ /* For storybook, **NOT EXPORTED**. The nuxt module creates it's own version of this file by looking at all css files in this folder. See it for details. */
2
2
  @import "tailwindcss" source("../../");
3
3
  @import "./theme.css";
4
4
  @import "./animations.css";
@@ -121,8 +121,10 @@ interface Props
121
121
  Partial<Omit<
122
122
  InputHTMLAttributes,
123
123
  "class" | "readonly" | "disabled" | "onSumbit"
124
+ // https://github.com/vuejs/core/pull/14237
125
+ | "autocomplete"
124
126
  > & TailwindClassProp>,
125
- /** @vue-ignore */
127
+ // /** @vue-ignore */
126
128
  WrapperTypes,
127
129
  RealProps
128
130
  {}
@@ -355,9 +355,13 @@ defineExpose({
355
355
  export default { name: "LibFileInput" }
356
356
 
357
357
  type WrapperTypes
358
- = & WrapperProps<"input", InputHTMLAttributes>
359
- & WrapperProps<"wrapper", HTMLAttributes>
360
- & WrapperProps<"previews", HTMLAttributes>
358
+ = & WrapperProps<
359
+ "input",
360
+ // https://github.com/vuejs/core/pull/14237
361
+ Omit<InputHTMLAttributes, "autocomplete">
362
+ >
363
+ & WrapperProps<"wrapper", HTMLAttributes>
364
+ & WrapperProps<"previews", HTMLAttributes>
361
365
 
362
366
  type RealProps
363
367
  = & LinkableByIdProps
@@ -375,7 +379,12 @@ type RealProps
375
379
  interface Props
376
380
  extends
377
381
  /** @vue-ignore */
378
- Partial<Omit<InputHTMLAttributes, "class" | "multiple" | "formats" | "compact"> & TailwindClassProp>,
382
+ Partial<Omit<
383
+ InputHTMLAttributes,
384
+ "class" | "multiple" | "formats" | "compact"
385
+ // https://github.com/vuejs/core/pull/14237
386
+ | "autocomplete"
387
+ > & TailwindClassProp>,
379
388
  /** @vue-ignore */
380
389
  Partial<WrapperTypes>,
381
390
  RealProps { }
@@ -407,7 +407,12 @@ type RealProps
407
407
  interface Props
408
408
  extends
409
409
  /** @vue-ignore */
410
- Partial<Omit<InputHTMLAttributes, "class" | "readonly" | "disabled" | "onSubmit"> & TailwindClassProp>,
410
+ Partial<Omit<
411
+ InputHTMLAttributes,
412
+ "class" | "readonly" | "disabled" | "onSubmit"
413
+ // https://github.com/vuejs/core/pull/14237
414
+ | "autocomplete"
415
+ > & TailwindClassProp>,
411
416
  /** @vue-ignore */
412
417
  Partial<WrapperTypes>,
413
418
  RealProps { }
@@ -147,6 +147,8 @@ interface Props
147
147
  | "disabled"
148
148
  | "onSubmit"
149
149
  | "onInput"
150
+ // https://github.com/vuejs/core/pull/14237
151
+ | "autocomplete"
150
152
  > & TailwindClassProp>,
151
153
  RealProps
152
154
  {}