@witchcraft/ui 0.4.0-beta.2 → 0.4.0-beta.4
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/README.md +1 -1
- package/dist/module.json +1 -1
- package/dist/runtime/build/WitchcraftUiResolver.js +1 -1
- package/dist/runtime/components/WColorInput/WColorInput.d.vue.ts +1 -1
- package/dist/runtime/components/WColorInput/WColorInput.vue.d.ts +1 -1
- package/dist/runtime/components/WColorPicker/WColorPicker.d.vue.ts +2 -2
- package/dist/runtime/components/WColorPicker/WColorPicker.vue.d.ts +2 -2
- package/dist/runtime/components/WCombobox/WCombobox.d.vue.ts +1 -1
- package/dist/runtime/components/WCombobox/WCombobox.vue.d.ts +1 -1
- package/dist/runtime/components/WPopover/WPopover.d.vue.ts +1 -1
- package/dist/runtime/components/WPopover/WPopover.vue.d.ts +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/runtime/build/WitchcraftUiResolver.ts +1 -1
- package/src/runtime/components/WSimpleInput/WSimpleInput.vue +2 -1
package/README.md
CHANGED
|
@@ -206,7 +206,7 @@ usePreHydrationValue(finalId, modelValue)
|
|
|
206
206
|
* If the component requires general docs, they should be written here over the export default.
|
|
207
207
|
*/
|
|
208
208
|
export default {
|
|
209
|
-
name: "
|
|
209
|
+
name: "WComponentName"
|
|
210
210
|
// https://v3.vuejs.org/guide/typescript-support.html#annotating-props
|
|
211
211
|
}
|
|
212
212
|
</script>```
|
package/dist/module.json
CHANGED
|
@@ -5,7 +5,7 @@ export const WitchcraftUiResolver = ({
|
|
|
5
5
|
} = {}) => (componentName) => {
|
|
6
6
|
if (componentName.startsWith(prefix)) {
|
|
7
7
|
const n = componentName.slice(1);
|
|
8
|
-
const filename = prefixless.includes(n) ? n : `
|
|
8
|
+
const filename = prefixless.includes(n) ? n : `W${n}`;
|
|
9
9
|
if (!filter(n)) {
|
|
10
10
|
return void 0;
|
|
11
11
|
}
|
|
@@ -35,11 +35,11 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
35
35
|
}>, {
|
|
36
36
|
border: boolean;
|
|
37
37
|
allowAlpha: boolean;
|
|
38
|
-
copyTransform: (val: HsvaColor, stringVal: string) => any;
|
|
39
38
|
stringPrecision: number;
|
|
40
39
|
customRepresentation: {
|
|
41
40
|
fromHsvaToString: (hsva: HsvaColor, includeAlpha: boolean) => string;
|
|
42
41
|
};
|
|
42
|
+
copyTransform: (val: HsvaColor, stringVal: string) => any;
|
|
43
43
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
44
44
|
declare const _default: typeof __VLS_export;
|
|
45
45
|
export default _default;
|
|
@@ -35,11 +35,11 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
35
35
|
}>, {
|
|
36
36
|
border: boolean;
|
|
37
37
|
allowAlpha: boolean;
|
|
38
|
-
copyTransform: (val: HsvaColor, stringVal: string) => any;
|
|
39
38
|
stringPrecision: number;
|
|
40
39
|
customRepresentation: {
|
|
41
40
|
fromHsvaToString: (hsva: HsvaColor, includeAlpha: boolean) => string;
|
|
42
41
|
};
|
|
42
|
+
copyTransform: (val: HsvaColor, stringVal: string) => any;
|
|
43
43
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
44
44
|
declare const _default: typeof __VLS_export;
|
|
45
45
|
export default _default;
|
|
@@ -45,14 +45,14 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
|
|
|
45
45
|
"onUpdate:tempValue"?: ((value: RgbaColor | undefined) => any) | undefined;
|
|
46
46
|
}>, {
|
|
47
47
|
border: boolean;
|
|
48
|
+
valid: boolean;
|
|
48
49
|
allowAlpha: boolean;
|
|
49
|
-
copyTransform: (val: HsvaColor, stringVal: string) => any;
|
|
50
50
|
stringPrecision: number;
|
|
51
51
|
customRepresentation: {
|
|
52
52
|
fromHsvaToString: (hsva: HsvaColor, includeAlpha: boolean) => string;
|
|
53
53
|
fromStringToHsva?: (string: string) => HsvaColor | undefined;
|
|
54
54
|
};
|
|
55
|
-
|
|
55
|
+
copyTransform: (val: HsvaColor, stringVal: string) => any;
|
|
56
56
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
57
57
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
58
58
|
declare const _default: typeof __VLS_export;
|
|
@@ -45,14 +45,14 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
|
|
|
45
45
|
"onUpdate:tempValue"?: ((value: RgbaColor | undefined) => any) | undefined;
|
|
46
46
|
}>, {
|
|
47
47
|
border: boolean;
|
|
48
|
+
valid: boolean;
|
|
48
49
|
allowAlpha: boolean;
|
|
49
|
-
copyTransform: (val: HsvaColor, stringVal: string) => any;
|
|
50
50
|
stringPrecision: number;
|
|
51
51
|
customRepresentation: {
|
|
52
52
|
fromHsvaToString: (hsva: HsvaColor, includeAlpha: boolean) => string;
|
|
53
53
|
fromStringToHsva?: (string: string) => HsvaColor | undefined;
|
|
54
54
|
};
|
|
55
|
-
|
|
55
|
+
copyTransform: (val: HsvaColor, stringVal: string) => any;
|
|
56
56
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
57
57
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
58
58
|
declare const _default: typeof __VLS_export;
|
|
@@ -43,9 +43,9 @@ declare const __VLS_export: <TSuggestion extends NonNullable<AcceptableValue>>(_
|
|
|
43
43
|
}) & {
|
|
44
44
|
"onUpdate:modelValue"?: ((value: TSuggestion) => any) | undefined;
|
|
45
45
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
46
|
-
onSave?: ((value: string) => any) | undefined;
|
|
47
46
|
"onUpdate:searchTerm"?: ((value: string) => any) | undefined;
|
|
48
47
|
"onUpdate:loading"?: ((value: boolean) => any) | undefined;
|
|
48
|
+
onSave?: ((value: string) => any) | undefined;
|
|
49
49
|
onNew?: ((value: string) => any) | undefined;
|
|
50
50
|
}> & (typeof globalThis extends {
|
|
51
51
|
__VLS_PROPS_FALLBACK: infer P;
|
|
@@ -43,9 +43,9 @@ declare const __VLS_export: <TSuggestion extends NonNullable<AcceptableValue>>(_
|
|
|
43
43
|
}) & {
|
|
44
44
|
"onUpdate:modelValue"?: ((value: TSuggestion) => any) | undefined;
|
|
45
45
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
46
|
-
onSave?: ((value: string) => any) | undefined;
|
|
47
46
|
"onUpdate:searchTerm"?: ((value: string) => any) | undefined;
|
|
48
47
|
"onUpdate:loading"?: ((value: boolean) => any) | undefined;
|
|
48
|
+
onSave?: ((value: string) => any) | undefined;
|
|
49
49
|
onNew?: ((value: string) => any) | undefined;
|
|
50
50
|
}> & (typeof globalThis extends {
|
|
51
51
|
__VLS_PROPS_FALLBACK: infer P;
|
|
@@ -29,9 +29,9 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
|
|
|
29
29
|
}>, {
|
|
30
30
|
constrainWidthTo: number | "trigger" | "available" | string | null;
|
|
31
31
|
constrainHeightTo: number | "trigger" | "available" | string | null;
|
|
32
|
+
to: string;
|
|
32
33
|
showBackdrop: boolean;
|
|
33
34
|
animationDirection: "use-side" | "use-align" | "left" | "right" | "up" | "down";
|
|
34
|
-
to: string;
|
|
35
35
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
36
36
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
37
37
|
declare const _default: typeof __VLS_export;
|
|
@@ -29,9 +29,9 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
|
|
|
29
29
|
}>, {
|
|
30
30
|
constrainWidthTo: number | "trigger" | "available" | string | null;
|
|
31
31
|
constrainHeightTo: number | "trigger" | "available" | string | null;
|
|
32
|
+
to: string;
|
|
32
33
|
showBackdrop: boolean;
|
|
33
34
|
animationDirection: "use-side" | "use-align" | "left" | "right" | "up" | "down";
|
|
34
|
-
to: string;
|
|
35
35
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
36
36
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
37
37
|
declare const _default: typeof __VLS_export;
|
|
@@ -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
|
@@ -15,7 +15,7 @@ export const WitchcraftUiResolver = (
|
|
|
15
15
|
): { from: string } | undefined => {
|
|
16
16
|
if (componentName.startsWith(prefix)) {
|
|
17
17
|
const n = componentName.slice(1)
|
|
18
|
-
const filename = prefixless.includes(n) ? n : `
|
|
18
|
+
const filename = prefixless.includes(n) ? n : `W${n}`
|
|
19
19
|
if (!filter(n)) {
|
|
20
20
|
return undefined
|
|
21
21
|
}
|
|
@@ -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: "",
|