sprintify-ui 0.2.7 → 0.2.10

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.
@@ -32315,7 +32315,7 @@ const I2 = /* @__PURE__ */ wn(M2, [["__scopeId", "data-v-a3256401"]]), D2 = ["hr
32315
32315
  props: {
32316
32316
  modelValue: {
32317
32317
  default: "",
32318
- type: String
32318
+ type: [String, null]
32319
32319
  },
32320
32320
  placeholder: {
32321
32321
  default: "",
@@ -32383,8 +32383,8 @@ const I2 = /* @__PURE__ */ wn(M2, [["__scopeId", "data-v-a3256401"]]), D2 = ["hr
32383
32383
  [
32384
32384
  P2,
32385
32385
  a.value ? "border-red-500" : "border-slate-300"
32386
- ]
32387
- //props.twTextarea
32386
+ ],
32387
+ e.twTextarea
32388
32388
  ));
32389
32389
  return (p, b) => (R(), Q("div", {
32390
32390
  ref_key: "wrapper",
@@ -32393,7 +32393,7 @@ const I2 = /* @__PURE__ */ wn(M2, [["__scopeId", "data-v-a3256401"]]), D2 = ["hr
32393
32393
  style: mt({ maxHeight: t.maxHeight + "px" })
32394
32394
  }, [
32395
32395
  P("textarea", {
32396
- value: t.modelValue,
32396
+ value: t.modelValue ?? "",
32397
32397
  name: T(r),
32398
32398
  placeholder: t.placeholder,
32399
32399
  disabled: t.disabled,
@@ -2,7 +2,7 @@ import { PropType } from 'vue';
2
2
  declare const _default: import("vue").DefineComponent<{
3
3
  modelValue: {
4
4
  default: string;
5
- type: StringConstructor;
5
+ type: PropType<string | null>;
6
6
  };
7
7
  placeholder: {
8
8
  default: string;
@@ -47,7 +47,7 @@ declare const _default: import("vue").DefineComponent<{
47
47
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "submit" | "update:modelValue" | "focus")[], "input" | "submit" | "update:modelValue" | "focus", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
48
48
  modelValue: {
49
49
  default: string;
50
- type: StringConstructor;
50
+ type: PropType<string | null>;
51
51
  };
52
52
  placeholder: {
53
53
  default: string;
@@ -98,7 +98,7 @@ declare const _default: import("vue").DefineComponent<{
98
98
  placeholder: string;
99
99
  disabled: boolean;
100
100
  required: boolean;
101
- modelValue: string;
101
+ modelValue: string | null;
102
102
  hasError: boolean;
103
103
  maxHeight: number;
104
104
  rows: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sprintify-ui",
3
- "version": "0.2.7",
3
+ "version": "0.2.10",
4
4
  "scripts": {
5
5
  "build": "rimraf dist && vue-tsc && vite build",
6
6
  "build-fast": "rimraf dist && vite build",
@@ -5,7 +5,7 @@
5
5
  :style="{ maxHeight: maxHeight + 'px' }"
6
6
  >
7
7
  <textarea
8
- :value="modelValue"
8
+ :value="modelValue ?? ''"
9
9
  :name="nameInternal"
10
10
  :placeholder="placeholder"
11
11
  :disabled="disabled"
@@ -49,7 +49,7 @@ const DIV_CONTENT = "attr(data-replicated-value) ' '";
49
49
  const props = defineProps({
50
50
  modelValue: {
51
51
  default: '',
52
- type: String,
52
+ type: [String, null] as PropType<string | null>,
53
53
  },
54
54
  placeholder: {
55
55
  default: '',
@@ -143,8 +143,8 @@ const textareaClasses = computed(() => {
143
143
  [
144
144
  BASE_TEXTAREA_CLASSES,
145
145
  hasErrorInternal.value ? 'border-red-500' : 'border-slate-300',
146
- ]
147
- //props.twTextarea
146
+ ],
147
+ props.twTextarea
148
148
  );
149
149
  });
150
150
  </script>