@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.
- package/dist/module.json +1 -1
- package/dist/module.mjs +7 -4
- package/dist/runtime/assets/animations.css +1 -1
- package/dist/runtime/components/Aria/Aria.d.vue.ts +2 -1
- package/dist/runtime/components/Aria/Aria.vue.d.ts +2 -1
- package/dist/runtime/components/Icon/Icon.d.vue.ts +3 -2
- package/dist/runtime/components/Icon/Icon.vue.d.ts +3 -2
- package/dist/runtime/components/LibButton/LibButton.d.vue.ts +6 -5
- package/dist/runtime/components/LibButton/LibButton.vue.d.ts +6 -5
- package/dist/runtime/components/LibCheckbox/LibCheckbox.d.vue.ts +5 -6
- package/dist/runtime/components/LibCheckbox/LibCheckbox.vue.d.ts +5 -6
- package/dist/runtime/components/LibColorInput/LibColorInput.d.vue.ts +7 -6
- package/dist/runtime/components/LibColorInput/LibColorInput.vue.d.ts +7 -6
- package/dist/runtime/components/LibColorPicker/LibColorPicker.d.vue.ts +7 -5
- package/dist/runtime/components/LibColorPicker/LibColorPicker.vue.d.ts +7 -5
- package/dist/runtime/components/LibDarkModeSwitcher/LibDarkModeSwitcher.d.vue.ts +10 -9
- package/dist/runtime/components/LibDarkModeSwitcher/LibDarkModeSwitcher.vue.d.ts +10 -9
- package/dist/runtime/components/LibDatePicker/LibDatePicker.d.vue.ts +156 -5
- package/dist/runtime/components/LibDatePicker/LibDatePicker.vue.d.ts +156 -5
- package/dist/runtime/components/LibDatePicker/LibRangeDatePicker.d.vue.ts +154 -6
- package/dist/runtime/components/LibDatePicker/LibRangeDatePicker.vue.d.ts +154 -6
- package/dist/runtime/components/LibDatePicker/LibSingleDatePicker.d.vue.ts +7 -5
- package/dist/runtime/components/LibDatePicker/LibSingleDatePicker.vue.d.ts +7 -5
- package/dist/runtime/components/LibDatePicker/LibTimeZonePicker.d.vue.ts +7 -6
- package/dist/runtime/components/LibDatePicker/LibTimeZonePicker.vue.d.ts +7 -6
- package/dist/runtime/components/LibDebug/LibDebug.d.vue.ts +3 -2
- package/dist/runtime/components/LibDebug/LibDebug.vue.d.ts +3 -2
- package/dist/runtime/components/LibDevOnly/LibDevOnly.d.vue.ts +3 -2
- package/dist/runtime/components/LibDevOnly/LibDevOnly.vue.d.ts +3 -2
- package/dist/runtime/components/LibFileInput/LibFileInput.d.vue.ts +20 -19
- package/dist/runtime/components/LibFileInput/LibFileInput.vue.d.ts +20 -19
- package/dist/runtime/components/LibInputDeprecated/LibInputDeprecated.d.vue.ts +107 -16
- package/dist/runtime/components/LibInputDeprecated/LibInputDeprecated.vue.d.ts +107 -16
- package/dist/runtime/components/LibLabel/LibLabel.d.vue.ts +4 -3
- package/dist/runtime/components/LibLabel/LibLabel.vue.d.ts +4 -3
- package/dist/runtime/components/LibMultiValues/LibMultiValues.d.vue.ts +15 -10
- package/dist/runtime/components/LibMultiValues/LibMultiValues.vue.d.ts +15 -10
- package/dist/runtime/components/LibNotifications/LibNotification.d.vue.ts +14 -5
- package/dist/runtime/components/LibNotifications/LibNotification.vue.d.ts +14 -5
- package/dist/runtime/components/LibNotifications/LibNotificationTestMessageComponent.d.vue.ts +2 -1
- package/dist/runtime/components/LibNotifications/LibNotificationTestMessageComponent.vue.d.ts +2 -1
- package/dist/runtime/components/LibNotifications/LibNotifications.d.vue.ts +2 -1
- package/dist/runtime/components/LibNotifications/LibNotifications.vue.d.ts +2 -1
- package/dist/runtime/components/LibPagination/LibPagination.d.vue.ts +51 -50
- package/dist/runtime/components/LibPagination/LibPagination.vue.d.ts +51 -50
- package/dist/runtime/components/LibPalette/LibPalette.d.vue.ts +4 -3
- package/dist/runtime/components/LibPalette/LibPalette.vue.d.ts +4 -3
- package/dist/runtime/components/LibPopup/LibPopup.d.vue.ts +9 -3
- package/dist/runtime/components/LibPopup/LibPopup.vue.d.ts +9 -3
- package/dist/runtime/components/LibProgressBar/LibProgressBar.d.vue.ts +4 -3
- package/dist/runtime/components/LibProgressBar/LibProgressBar.vue.d.ts +4 -3
- package/dist/runtime/components/LibRecorder/LibRecorder.d.vue.ts +4 -3
- package/dist/runtime/components/LibRecorder/LibRecorder.vue.d.ts +4 -3
- package/dist/runtime/components/LibRoot/LibRoot.d.vue.ts +5 -4
- package/dist/runtime/components/LibRoot/LibRoot.vue.d.ts +5 -4
- package/dist/runtime/components/LibSimpleInput/LibSimpleInput.d.vue.ts +18 -13
- package/dist/runtime/components/LibSimpleInput/LibSimpleInput.vue +1 -1
- package/dist/runtime/components/LibSimpleInput/LibSimpleInput.vue.d.ts +18 -13
- package/dist/runtime/components/LibSuggestions/LibSuggestions.d.vue.ts +23 -18
- package/dist/runtime/components/LibSuggestions/LibSuggestions.vue.d.ts +23 -18
- package/dist/runtime/components/LibTable/LibTable.d.vue.ts +34 -13
- package/dist/runtime/components/LibTable/LibTable.vue.d.ts +34 -13
- package/dist/runtime/components/Template/NAME.d.vue.ts +3 -2
- package/dist/runtime/components/Template/NAME.vue.d.ts +3 -2
- package/dist/runtime/components/TestControls/TestControls.d.vue.ts +2 -1
- package/dist/runtime/components/TestControls/TestControls.vue.d.ts +2 -1
- package/package.json +50 -50
- package/src/module.ts +8 -4
- package/src/runtime/assets/animations.css +2 -2
- package/src/runtime/assets/tailwind.css +1 -1
- package/src/runtime/components/LibCheckbox/LibCheckbox.vue +3 -1
- package/src/runtime/components/LibFileInput/LibFileInput.vue +13 -4
- package/src/runtime/components/LibInputDeprecated/LibInputDeprecated.vue +6 -1
- 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.
|
|
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.
|
|
53
|
-
"unplugin-icons": "^22.
|
|
54
|
-
"vue": "^3.5.
|
|
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.
|
|
66
|
-
"@iconify/json": "^2.2.
|
|
67
|
-
"@nuxt/kit": "^4.
|
|
68
|
-
"@nuxt/schema": "^4.
|
|
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.
|
|
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.
|
|
78
|
-
"tailwind-merge": "^3.
|
|
79
|
-
"unplugin-icons": "^22.
|
|
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.
|
|
86
|
-
"@alanscodelog/semantic-release-config": "^6.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.
|
|
88
|
+
"@alanscodelog/vite-config": "^0.0.7",
|
|
89
89
|
"@chromatic-com/storybook": "^3.2.7",
|
|
90
|
-
"@commitlint/cli": "^
|
|
91
|
-
"@internationalized/date": "^3.
|
|
92
|
-
"@faker-js/faker": "^10.
|
|
93
|
-
"@nuxt/eslint-config": "^1.
|
|
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": "
|
|
97
|
-
"@rollup/plugin-node-resolve": "^16.0.
|
|
98
|
-
"@storybook/addon-a11y": "^8.6.
|
|
99
|
-
"@storybook/addon-actions": "^8.6.
|
|
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.
|
|
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.
|
|
106
|
+
"@storybook/test": "^8.6.15",
|
|
107
107
|
"@storybook/test-runner": "^0.22.1",
|
|
108
|
-
"@storybook/vue3": "^8.6.
|
|
109
|
-
"@storybook/vue3-vite": "^8.6.
|
|
110
|
-
"@tanstack/vue-virtual": "^3.13.
|
|
111
|
-
"@tailwindcss/cli": "^4.1.
|
|
112
|
-
"@tailwindcss/postcss": "^4.1.
|
|
113
|
-
"@types/node": "^24.
|
|
114
|
-
"@vitejs/plugin-vue": "^6.0.
|
|
115
|
-
"@vue/runtime-core": "^3.5.
|
|
116
|
-
"@vue/runtime-dom": "^3.5.
|
|
117
|
-
"@vueuse/components": "^13.
|
|
118
|
-
"@vueuse/core": "^13.
|
|
119
|
-
"autoprefixer": "^10.4.
|
|
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.
|
|
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.
|
|
127
|
-
"playwright": "
|
|
128
|
-
"playwright-core": "
|
|
129
|
-
"semantic-release": "^24.2.
|
|
130
|
-
"storybook": "^8.6.
|
|
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.
|
|
132
|
+
"tailwindcss": "^4.1.18",
|
|
133
133
|
"ts-node": "^10.9.2",
|
|
134
|
-
"typescript": "^5.9.
|
|
134
|
+
"typescript": "^5.9.3",
|
|
135
135
|
"unbuild": "^3.6.1",
|
|
136
|
-
"vite": "^7.1
|
|
137
|
-
"vite-tsconfig-paths": "^
|
|
138
|
-
"vue": "^3.5.
|
|
139
|
-
"vue-tsc": "3.
|
|
140
|
-
"wait-on": "^8.0.
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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,
|
|
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<
|
|
359
|
-
|
|
360
|
-
|
|
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<
|
|
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<
|
|
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 { }
|