sprintify-ui 0.0.44 → 0.0.46

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.
@@ -7686,7 +7686,7 @@ const Zo = /* @__PURE__ */ Pe(xd, [["render", Sd]]), $d = ["data-name"], Xo = /*
7686
7686
  props: {
7687
7687
  modelValue: {
7688
7688
  default: void 0,
7689
- type: String
7689
+ type: [String, null, void 0]
7690
7690
  },
7691
7691
  type: {
7692
7692
  type: String,
@@ -7739,17 +7739,20 @@ const Zo = /* @__PURE__ */ Pe(xd, [["render", Sd]]), $d = ["data-name"], Xo = /*
7739
7739
  const f = _t(p, "target.value", null);
7740
7740
  return Kr(f) ? Ot(f) : "";
7741
7741
  }
7742
- return (p, f) => (x(), L("textarea", {
7743
- value: e.modelValue,
7744
- type: e.type,
7745
- name: h(l),
7746
- placeholder: e.placeholder,
7747
- disabled: e.disabled,
7748
- required: h(o),
7749
- rows: e.rows,
7750
- class: q([[h(a) ? "border-red-500" : "border-slate-300"], "mb-0 block rounded disabled:cursor-not-allowed disabled:text-slate-300"]),
7751
- onInput: f[0] || (f[0] = (y) => h(s)(i(y)))
7752
- }, null, 42, _d));
7742
+ return (p, f) => {
7743
+ var y;
7744
+ return x(), L("textarea", {
7745
+ value: (y = e.modelValue) != null ? y : void 0,
7746
+ type: e.type,
7747
+ name: h(l),
7748
+ placeholder: e.placeholder,
7749
+ disabled: e.disabled,
7750
+ required: h(o),
7751
+ rows: e.rows,
7752
+ class: q([[h(a) ? "border-red-500" : "border-slate-300"], "mb-0 block rounded disabled:cursor-not-allowed disabled:text-slate-300"]),
7753
+ onInput: f[0] || (f[0] = (g) => h(s)(i(g)))
7754
+ }, null, 42, _d);
7755
+ };
7753
7756
  }
7754
7757
  }), Cd = ["data-name"], Id = { class: "space-y-2" }, Ed = /* @__PURE__ */ W({
7755
7758
  __name: "BaseFieldI18n",
@@ -2,7 +2,7 @@ import { PropType } from 'vue';
2
2
  declare const _default: import("vue").DefineComponent<{
3
3
  modelValue: {
4
4
  default: undefined;
5
- type: PropType<string | undefined>;
5
+ type: PropType<string | null | undefined>;
6
6
  };
7
7
  type: {
8
8
  type: StringConstructor;
@@ -43,7 +43,7 @@ declare const _default: import("vue").DefineComponent<{
43
43
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
44
44
  modelValue: {
45
45
  default: undefined;
46
- type: PropType<string | undefined>;
46
+ type: PropType<string | null | undefined>;
47
47
  };
48
48
  type: {
49
49
  type: StringConstructor;
@@ -87,7 +87,7 @@ declare const _default: import("vue").DefineComponent<{
87
87
  required: boolean;
88
88
  type: string;
89
89
  name: string;
90
- modelValue: string | undefined;
90
+ modelValue: string | null | undefined;
91
91
  placeholder: string;
92
92
  disabled: boolean;
93
93
  hasError: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sprintify-ui",
3
- "version": "0.0.44",
3
+ "version": "0.0.46",
4
4
  "scripts": {
5
5
  "build": "rimraf dist && vue-tsc && vite build",
6
6
  "build-fast": "rimraf dist && vite build",
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <textarea
3
- :value="modelValue"
3
+ :value="modelValue ?? undefined"
4
4
  :type="type"
5
5
  :name="nameInternal"
6
6
  :placeholder="placeholder"
@@ -21,7 +21,7 @@ import { PropType } from 'vue';
21
21
  const props = defineProps({
22
22
  modelValue: {
23
23
  default: undefined,
24
- type: String as PropType<string | undefined>,
24
+ type: [String, null, undefined] as PropType<string | null | undefined>,
25
25
  },
26
26
  type: {
27
27
  type: String,