sprintify-ui 0.2.4 → 0.2.5

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.
@@ -16074,6 +16074,10 @@ const Ub = { class: "relative" }, Hb = { class: "pointer-events-none absolute to
16074
16074
  hasError: {
16075
16075
  default: !1,
16076
16076
  type: Boolean
16077
+ },
16078
+ clearable: {
16079
+ default: !0,
16080
+ type: Boolean
16077
16081
  }
16078
16082
  },
16079
16083
  emits: ["update:modelValue"],
@@ -16194,14 +16198,15 @@ const Ub = { class: "relative" }, Hb = { class: "pointer-events-none absolute to
16194
16198
  ])
16195
16199
  ])
16196
16200
  ]),
16197
- P("button", {
16201
+ t.clearable ? (R(), Q("button", {
16202
+ key: 0,
16198
16203
  type: "button",
16199
16204
  disabled: t.disabled,
16200
16205
  class: "mt-1 appearance-none border-transparent bg-transparent text-sm text-slate-700 underline outline-none disabled:cursor-not-allowed disabled:opacity-50",
16201
16206
  onClick: b[6] || (b[6] = (m) => h())
16202
16207
  }, [
16203
16208
  P("span", null, Ae(T($e)("sui.clear")), 1)
16204
- ], 8, s1)
16209
+ ], 8, s1)) : Ee("", !0)
16205
16210
  ]));
16206
16211
  }
16207
16212
  }), c1 = { class: "" }, f1 = { class: "divide-y divide-slate-200" }, d1 = /* @__PURE__ */ Se({
@@ -28,6 +28,10 @@ declare const _default: import("vue").DefineComponent<{
28
28
  default: boolean;
29
29
  type: BooleanConstructor;
30
30
  };
31
+ clearable: {
32
+ default: boolean;
33
+ type: BooleanConstructor;
34
+ };
31
35
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
32
36
  modelValue: {
33
37
  required: true;
@@ -57,6 +61,10 @@ declare const _default: import("vue").DefineComponent<{
57
61
  default: boolean;
58
62
  type: BooleanConstructor;
59
63
  };
64
+ clearable: {
65
+ default: boolean;
66
+ type: BooleanConstructor;
67
+ };
60
68
  }>> & {
61
69
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
62
70
  }, {
@@ -66,5 +74,6 @@ declare const _default: import("vue").DefineComponent<{
66
74
  hasError: boolean;
67
75
  minYear: number;
68
76
  maxYear: number;
77
+ clearable: boolean;
69
78
  }, {}>;
70
79
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sprintify-ui",
3
- "version": "0.2.4",
3
+ "version": "0.2.5",
4
4
  "scripts": {
5
5
  "build": "rimraf dist && vue-tsc && vite build",
6
6
  "build-fast": "rimraf dist && vite build",
@@ -105,6 +105,7 @@
105
105
  </div>
106
106
 
107
107
  <button
108
+ v-if="clearable"
108
109
  type="button"
109
110
  :disabled="disabled"
110
111
  class="mt-1 appearance-none border-transparent bg-transparent text-sm text-slate-700 underline outline-none disabled:cursor-not-allowed disabled:opacity-50"
@@ -152,6 +153,10 @@ const props = defineProps({
152
153
  default: false,
153
154
  type: Boolean,
154
155
  },
156
+ clearable: {
157
+ default: true,
158
+ type: Boolean,
159
+ },
155
160
  });
156
161
 
157
162
  const emit = defineEmits(['update:modelValue']);
@@ -222,10 +227,10 @@ function getDateTime(): DateTime | null {
222
227
 
223
228
  return DateTime.fromISO(
224
229
  padStart(date.value.year + '', 4, '0') +
225
- '-' +
226
- padStart(date.value.month + '', 2, '0') +
227
- '-' +
228
- padStart(date.value.day + '', 2, '0'),
230
+ '-' +
231
+ padStart(date.value.month + '', 2, '0') +
232
+ '-' +
233
+ padStart(date.value.day + '', 2, '0'),
229
234
  { zone: 'utc' }
230
235
  );
231
236
  }