@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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "witchcraftUi",
3
3
  "configKey": "witchcraftUi",
4
- "version": "0.4.0-beta.1",
4
+ "version": "0.4.0-beta.3",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
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("Lib") ? name.replace("Lib", "PREFIX") : `PREFIX${name}`,
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@witchcraft/ui",
3
- "version": "0.4.0-beta.1",
3
+ "version": "0.4.0-beta.3",
4
4
  "description": "Vue component library.",
5
5
  "type": "module",
6
6
  "main": "./dist/runtime/main.lib.js",
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("Lib") ? name.replace("Lib", "PREFIX") : `PREFIX${name}`,
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: "",