@witchcraft/ui 0.4.0-beta.1 → 0.4.0-beta.3
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 +1 -1
- package/dist/runtime/components/WSimpleInput/WSimpleInput.d.vue.ts +2 -1
- package/dist/runtime/components/WSimpleInput/WSimpleInput.vue +2 -1
- package/dist/runtime/components/WSimpleInput/WSimpleInput.vue.d.ts +2 -1
- package/package.json +1 -1
- package/src/module.ts +1 -1
- package/src/runtime/components/WSimpleInput/WSimpleInput.vue +2 -1
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -19,7 +19,7 @@ const componentsInfo = globFiles([
|
|
|
19
19
|
`!**/Template/**.vue`
|
|
20
20
|
], [], (filepath, name) => ({
|
|
21
21
|
originalName: name,
|
|
22
|
-
name: name.startsWith("
|
|
22
|
+
name: name.startsWith("W") ? name.replace("W", "PREFIX") : `PREFIX${name}`,
|
|
23
23
|
filepath
|
|
24
24
|
}));
|
|
25
25
|
const module$1 = defineNuxtModule({
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { type InputHTMLAttributes } from "vue";
|
|
2
2
|
import type { BaseInteractiveProps, TailwindClassProp } from "../../types/index.js";
|
|
3
3
|
declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
|
-
props: import("vue").PublicProps & __VLS_PrettifyLocal<(Omit<InputHTMLAttributes, "class" | "onInput" | "onSubmit" | "disabled" | "readonly" | "autocomplete"> & TailwindClassProp & Pick<BaseInteractiveProps, "border" | "unstyle"> & {
|
|
4
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<(Omit<InputHTMLAttributes, "class" | "onInput" | "onSubmit" | "disabled" | "type" | "readonly" | "autocomplete"> & TailwindClassProp & Pick<BaseInteractiveProps, "border" | "unstyle"> & {
|
|
5
5
|
id?: string;
|
|
6
6
|
label?: string;
|
|
7
7
|
valid?: boolean;
|
|
8
|
+
type?: InputHTMLAttributes["type"];
|
|
8
9
|
} & {
|
|
9
10
|
modelValue: T;
|
|
10
11
|
}) & {
|
|
@@ -96,7 +96,8 @@ const props = defineProps({
|
|
|
96
96
|
border: { type: Boolean, required: false, default: true },
|
|
97
97
|
id: { type: String, required: false, default: "" },
|
|
98
98
|
label: { type: String, required: false, default: "" },
|
|
99
|
-
valid: { type: Boolean, required: false, default: true }
|
|
99
|
+
valid: { type: Boolean, required: false, default: true },
|
|
100
|
+
type: { type: null, required: false, default: void 0 }
|
|
100
101
|
});
|
|
101
102
|
const finalId = useFallbackId(props);
|
|
102
103
|
const modelValue = defineModel({ type: null, ...{ required: true } });
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { type InputHTMLAttributes } from "vue";
|
|
2
2
|
import type { BaseInteractiveProps, TailwindClassProp } from "../../types/index.js";
|
|
3
3
|
declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
|
-
props: import("vue").PublicProps & __VLS_PrettifyLocal<(Omit<InputHTMLAttributes, "class" | "onInput" | "onSubmit" | "disabled" | "readonly" | "autocomplete"> & TailwindClassProp & Pick<BaseInteractiveProps, "border" | "unstyle"> & {
|
|
4
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<(Omit<InputHTMLAttributes, "class" | "onInput" | "onSubmit" | "disabled" | "type" | "readonly" | "autocomplete"> & TailwindClassProp & Pick<BaseInteractiveProps, "border" | "unstyle"> & {
|
|
5
5
|
id?: string;
|
|
6
6
|
label?: string;
|
|
7
7
|
valid?: boolean;
|
|
8
|
+
type?: InputHTMLAttributes["type"];
|
|
8
9
|
} & {
|
|
9
10
|
modelValue: T;
|
|
10
11
|
}) & {
|
package/package.json
CHANGED
package/src/module.ts
CHANGED
|
@@ -35,7 +35,7 @@ const componentsInfo: {
|
|
|
35
35
|
`!**/Template/**.vue`
|
|
36
36
|
], [], (filepath: string, name: string) => ({
|
|
37
37
|
originalName: name,
|
|
38
|
-
name: name.startsWith("
|
|
38
|
+
name: name.startsWith("W") ? name.replace("W", "PREFIX") : `PREFIX${name}`,
|
|
39
39
|
filepath
|
|
40
40
|
}))
|
|
41
41
|
|
|
@@ -98,7 +98,7 @@ defineOptions({
|
|
|
98
98
|
const props = withDefaults(defineProps<
|
|
99
99
|
& /** @vue-ignore */ Omit<
|
|
100
100
|
InputHTMLAttributes,
|
|
101
|
-
| "class" | "readonly" | "disabled" | "onSubmit" | "onInput"
|
|
101
|
+
| "class" | "readonly" | "disabled" | "onSubmit" | "onInput" | "type"
|
|
102
102
|
// https://github.com/vuejs/core/pull/14237
|
|
103
103
|
| "autocomplete"
|
|
104
104
|
>
|
|
@@ -108,6 +108,7 @@ const props = withDefaults(defineProps<
|
|
|
108
108
|
id?: string
|
|
109
109
|
label?: string
|
|
110
110
|
valid?: boolean
|
|
111
|
+
type?: InputHTMLAttributes["type"]
|
|
111
112
|
}
|
|
112
113
|
>(), {
|
|
113
114
|
id: "",
|