cisse-vue-ui 0.7.4 → 0.7.6

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.
Files changed (39) hide show
  1. package/dist/{TagsInput-DtoJKN3L.js → CheckboxGroup.vue_vue_type_script_setup_true_lang-BOGul8zU.js} +400 -225
  2. package/dist/CheckboxGroup.vue_vue_type_script_setup_true_lang-BOGul8zU.js.map +1 -0
  3. package/dist/{TagsInput-tlIso0sZ.cjs → CheckboxGroup.vue_vue_type_script_setup_true_lang-BcoXb8Xg.cjs} +396 -221
  4. package/dist/CheckboxGroup.vue_vue_type_script_setup_true_lang-BcoXb8Xg.cjs.map +1 -0
  5. package/dist/{FilterTabs.vue_vue_type_script_setup_true_lang-HwjuvIJX.cjs → FilterTabs.vue_vue_type_script_setup_true_lang-Bj3I5Sn7.cjs} +63 -3
  6. package/dist/FilterTabs.vue_vue_type_script_setup_true_lang-Bj3I5Sn7.cjs.map +1 -0
  7. package/dist/{FilterTabs.vue_vue_type_script_setup_true_lang-C5vnz3qo.js → FilterTabs.vue_vue_type_script_setup_true_lang-DzLwUVCW.js} +63 -3
  8. package/dist/FilterTabs.vue_vue_type_script_setup_true_lang-DzLwUVCW.js.map +1 -0
  9. package/dist/components/core/Avatar.stories.d.ts +4 -0
  10. package/dist/components/core/Avatar.vue.d.ts +6 -0
  11. package/dist/components/core/index.cjs +1 -1
  12. package/dist/components/core/index.js +1 -1
  13. package/dist/components/form/CheckboxGroup.test.d.ts +1 -0
  14. package/dist/components/form/CheckboxGroup.vue.d.ts +26 -0
  15. package/dist/components/form/TextArea.test.d.ts +1 -0
  16. package/dist/components/form/TextArea.vue.d.ts +40 -0
  17. package/dist/components/form/index.cjs +31 -29
  18. package/dist/components/form/index.cjs.map +1 -1
  19. package/dist/components/form/index.d.ts +2 -0
  20. package/dist/components/form/index.js +3 -1
  21. package/dist/components/index.cjs +32 -30
  22. package/dist/components/index.cjs.map +1 -1
  23. package/dist/components/index.js +4 -2
  24. package/dist/index-BSKpuITC.js +97 -0
  25. package/dist/index-BSKpuITC.js.map +1 -0
  26. package/dist/{index-Ci0UGwko.cjs → index-CCf2s-lD.cjs} +33 -31
  27. package/dist/index-CCf2s-lD.cjs.map +1 -0
  28. package/dist/index.cjs +33 -31
  29. package/dist/index.cjs.map +1 -1
  30. package/dist/index.js +5 -3
  31. package/dist/style.css +1 -1
  32. package/package.json +1 -1
  33. package/dist/FilterTabs.vue_vue_type_script_setup_true_lang-C5vnz3qo.js.map +0 -1
  34. package/dist/FilterTabs.vue_vue_type_script_setup_true_lang-HwjuvIJX.cjs.map +0 -1
  35. package/dist/TagsInput-DtoJKN3L.js.map +0 -1
  36. package/dist/TagsInput-tlIso0sZ.cjs.map +0 -1
  37. package/dist/index-Ci0UGwko.cjs.map +0 -1
  38. package/dist/index-F9yanU6_.js +0 -95
  39. package/dist/index-F9yanU6_.js.map +0 -1
@@ -3,10 +3,10 @@ import { u as useId } from "./useId-xeHj7rkg.js";
3
3
  import { Icon } from "@iconify/vue";
4
4
  import { u as useDropdown } from "./useDropdown-iVu14E6s.js";
5
5
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-1tPrXgE0.js";
6
- import { o as onClickOutside, a as useDebounceFn } from "./index-SNefWfX0.js";
7
- import { _ as _sfc_main$s } from "./Button.vue_vue_type_script_setup_true_lang-CBYr0Z2_.js";
8
- const _hoisted_1$r = ["data-error", "for"];
9
- const _sfc_main$r = /* @__PURE__ */ defineComponent({
6
+ import { o as onClickOutside, a as useDebounceFn, _ as _sfc_main$v } from "./index-SNefWfX0.js";
7
+ import { _ as _sfc_main$u } from "./Button.vue_vue_type_script_setup_true_lang-CBYr0Z2_.js";
8
+ const _hoisted_1$s = ["data-error", "for"];
9
+ const _sfc_main$t = /* @__PURE__ */ defineComponent({
10
10
  __name: "FormLabel",
11
11
  props: {
12
12
  error: { type: [String, Boolean] },
@@ -20,12 +20,12 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
20
20
  class: "block text-sm font-medium text-gray-700 data-[error=true]:text-red-500 dark:text-gray-300"
21
21
  }, [
22
22
  renderSlot(_ctx.$slots, "default")
23
- ], 8, _hoisted_1$r);
23
+ ], 8, _hoisted_1$s);
24
24
  };
25
25
  }
26
26
  });
27
- const _hoisted_1$q = ["id", "data-error", "role", "aria-live"];
28
- const _sfc_main$q = /* @__PURE__ */ defineComponent({
27
+ const _hoisted_1$r = ["id", "data-error", "role", "aria-live"];
28
+ const _sfc_main$s = /* @__PURE__ */ defineComponent({
29
29
  __name: "FormHelp",
30
30
  props: {
31
31
  id: {},
@@ -44,19 +44,19 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
44
44
  renderSlot(_ctx.$slots, "default", {}, () => [
45
45
  createTextVNode(toDisplayString(__props.text ?? ""), 1)
46
46
  ])
47
- ], 8, _hoisted_1$q);
47
+ ], 8, _hoisted_1$r);
48
48
  };
49
49
  }
50
50
  });
51
- const _hoisted_1$p = {
51
+ const _hoisted_1$q = {
52
52
  key: 0,
53
53
  class: "absolute left-3 top-1/2 -translate-y-1/2 pointer-events-none text-gray-400"
54
54
  };
55
- const _hoisted_2$h = {
55
+ const _hoisted_2$i = {
56
56
  key: 1,
57
57
  class: "absolute right-3 top-1/2 -translate-y-1/2 flex items-center gap-1"
58
58
  };
59
- const _sfc_main$p = /* @__PURE__ */ defineComponent({
59
+ const _sfc_main$r = /* @__PURE__ */ defineComponent({
60
60
  __name: "InputWrapper",
61
61
  props: {
62
62
  icon: {},
@@ -96,7 +96,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
96
96
  return openBlock(), createElementBlock("div", {
97
97
  class: normalizeClass(["relative", __props.wrapperClass])
98
98
  }, [
99
- hasLeftIcon.value ? (openBlock(), createElementBlock("div", _hoisted_1$p, [
99
+ hasLeftIcon.value ? (openBlock(), createElementBlock("div", _hoisted_1$q, [
100
100
  renderSlot(_ctx.$slots, "icon", {}, () => [
101
101
  __props.icon ? (openBlock(), createBlock(unref(Icon), {
102
102
  key: 0,
@@ -106,7 +106,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
106
106
  ])
107
107
  ])) : createCommentVNode("", true),
108
108
  renderSlot(_ctx.$slots, "default", { inputClass: inputClass.value }),
109
- hasRightContent.value ? (openBlock(), createElementBlock("div", _hoisted_2$h, [
109
+ hasRightContent.value ? (openBlock(), createElementBlock("div", _hoisted_2$i, [
110
110
  renderSlot(_ctx.$slots, "actions", {}, () => [
111
111
  __props.iconRight ? (openBlock(), createBlock(unref(Icon), {
112
112
  key: 0,
@@ -119,8 +119,8 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
119
119
  };
120
120
  }
121
121
  });
122
- const _hoisted_1$o = ["id", "disabled", "name", "placeholder", "type", "required", "aria-invalid", "aria-required", "aria-describedby"];
123
- const _sfc_main$o = /* @__PURE__ */ defineComponent({
122
+ const _hoisted_1$p = ["id", "disabled", "name", "placeholder", "type", "required", "aria-invalid", "aria-required", "aria-describedby"];
123
+ const _sfc_main$q = /* @__PURE__ */ defineComponent({
124
124
  ...{
125
125
  inheritAttrs: false
126
126
  },
@@ -146,7 +146,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
146
146
  const props = __props;
147
147
  const modelValue = useModel(__props, "modelValue");
148
148
  return (_ctx, _cache) => {
149
- return openBlock(), createBlock(_sfc_main$p, {
149
+ return openBlock(), createBlock(_sfc_main$r, {
150
150
  icon: props.icon,
151
151
  "icon-right": props.iconRight,
152
152
  disabled: props.disabled,
@@ -165,7 +165,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
165
165
  "aria-required": props.required || void 0,
166
166
  "aria-describedby": props.describedBy || void 0,
167
167
  class: inputClass
168
- }, _ctx.$attrs), null, 16, _hoisted_1$o), [
168
+ }, _ctx.$attrs), null, 16, _hoisted_1$p), [
169
169
  [vModelDynamic, modelValue.value]
170
170
  ])
171
171
  ]),
@@ -174,10 +174,10 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
174
174
  };
175
175
  }
176
176
  });
177
- const _hoisted_1$n = { class: "relative" };
178
- const _hoisted_2$g = ["id", "disabled", "aria-expanded", "aria-controls", "aria-invalid", "aria-describedby"];
179
- const _hoisted_3$f = { class: "flex-1 truncate" };
180
- const _hoisted_4$b = ["id", "aria-label"];
177
+ const _hoisted_1$o = { class: "relative" };
178
+ const _hoisted_2$h = ["id", "disabled", "aria-expanded", "aria-controls", "aria-invalid", "aria-describedby"];
179
+ const _hoisted_3$g = { class: "flex-1 truncate" };
180
+ const _hoisted_4$c = ["id", "aria-label"];
181
181
  const _hoisted_5$8 = {
182
182
  key: 0,
183
183
  class: "sticky top-0 border-b border-gray-200 bg-white p-2 dark:border-gray-700 dark:bg-gray-800"
@@ -196,7 +196,7 @@ const _hoisted_10$4 = {
196
196
  "aria-hidden": "true"
197
197
  };
198
198
  const _hoisted_11$4 = { class: "flex-1" };
199
- const _sfc_main$n = /* @__PURE__ */ defineComponent({
199
+ const _sfc_main$p = /* @__PURE__ */ defineComponent({
200
200
  __name: "FormSelect",
201
201
  props: /* @__PURE__ */ mergeModels({
202
202
  options: {},
@@ -316,7 +316,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
316
316
  return [base, state, text, props.triggerClass];
317
317
  });
318
318
  return (_ctx, _cache) => {
319
- return openBlock(), createElementBlock("div", _hoisted_1$n, [
319
+ return openBlock(), createElementBlock("div", _hoisted_1$o, [
320
320
  createElementVNode("button", {
321
321
  id: triggerId.value,
322
322
  ref_key: "triggerRef",
@@ -336,14 +336,14 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
336
336
  option: selectedOption.value,
337
337
  placeholder: __props.placeholder
338
338
  }, () => [
339
- createElementVNode("span", _hoisted_3$f, toDisplayString(displayValue.value), 1)
339
+ createElementVNode("span", _hoisted_3$g, toDisplayString(displayValue.value), 1)
340
340
  ]),
341
341
  createVNode(unref(Icon), {
342
342
  icon: "lucide:chevron-down",
343
343
  class: normalizeClass(["size-4 shrink-0 text-gray-400 transition-transform", unref(isOpen) && "rotate-180"]),
344
344
  "aria-hidden": "true"
345
345
  }, null, 8, ["class"])
346
- ], 42, _hoisted_2$g),
346
+ ], 42, _hoisted_2$h),
347
347
  (openBlock(), createBlock(Teleport, {
348
348
  to: "body",
349
349
  disabled: !__props.teleport
@@ -425,7 +425,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
425
425
  ], 42, _hoisted_9$4);
426
426
  }), 128))
427
427
  ])
428
- ], 14, _hoisted_4$b)) : createCommentVNode("", true)
428
+ ], 14, _hoisted_4$c)) : createCommentVNode("", true)
429
429
  ]),
430
430
  _: 3
431
431
  })
@@ -434,8 +434,8 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
434
434
  };
435
435
  }
436
436
  });
437
- const _hoisted_1$m = ["hidden"];
438
- const _sfc_main$m = /* @__PURE__ */ defineComponent({
437
+ const _hoisted_1$n = ["hidden"];
438
+ const _sfc_main$o = /* @__PURE__ */ defineComponent({
439
439
  __name: "FormGroup",
440
440
  props: /* @__PURE__ */ mergeModels({
441
441
  label: {},
@@ -476,7 +476,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
476
476
  }, [
477
477
  renderSlot(_ctx.$slots, "default", {}, () => [
478
478
  renderSlot(_ctx.$slots, "label", {}, () => [
479
- __props.label ? (openBlock(), createBlock(_sfc_main$r, {
479
+ __props.label ? (openBlock(), createBlock(_sfc_main$t, {
480
480
  key: 0,
481
481
  "html-for": inputId.value,
482
482
  error: __props.error
@@ -488,7 +488,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
488
488
  }, 8, ["html-for", "error"])) : createCommentVNode("", true)
489
489
  ]),
490
490
  renderSlot(_ctx.$slots, "input", {}, () => [
491
- isSelect.value ? (openBlock(), createBlock(_sfc_main$n, mergeProps({
491
+ isSelect.value ? (openBlock(), createBlock(_sfc_main$p, mergeProps({
492
492
  key: 0,
493
493
  modelValue: modelValue.value,
494
494
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modelValue.value = $event)
@@ -496,7 +496,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
496
496
  id: inputId.value,
497
497
  invalid: Boolean(__props.error),
498
498
  "described-by": hasError.value ? helpId.value : void 0
499
- }), null, 16, ["modelValue", "id", "invalid", "described-by"])) : (openBlock(), createBlock(_sfc_main$o, mergeProps({
499
+ }), null, 16, ["modelValue", "id", "invalid", "described-by"])) : (openBlock(), createBlock(_sfc_main$q, mergeProps({
500
500
  key: 1,
501
501
  modelValue: modelValue.value,
502
502
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => modelValue.value = $event)
@@ -506,7 +506,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
506
506
  "described-by": hasError.value ? helpId.value : void 0
507
507
  }), null, 16, ["modelValue", "id", "invalid", "described-by"]))
508
508
  ]),
509
- hasError.value ? (openBlock(), createBlock(_sfc_main$q, {
509
+ hasError.value ? (openBlock(), createBlock(_sfc_main$s, {
510
510
  key: 0,
511
511
  id: helpId.value,
512
512
  error: true
@@ -517,12 +517,12 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
517
517
  _: 1
518
518
  }, 8, ["id"])) : createCommentVNode("", true)
519
519
  ])
520
- ], 12, _hoisted_1$m);
520
+ ], 12, _hoisted_1$n);
521
521
  };
522
522
  }
523
523
  });
524
- const _hoisted_1$l = ["name", "placeholder", "disabled"];
525
- const _sfc_main$l = /* @__PURE__ */ defineComponent({
524
+ const _hoisted_1$m = ["name", "placeholder", "disabled"];
525
+ const _sfc_main$n = /* @__PURE__ */ defineComponent({
526
526
  ...{
527
527
  inheritAttrs: false
528
528
  },
@@ -542,7 +542,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
542
542
  const props = __props;
543
543
  const modelValue = useModel(__props, "modelValue");
544
544
  return (_ctx, _cache) => {
545
- return openBlock(), createBlock(_sfc_main$p, {
545
+ return openBlock(), createBlock(_sfc_main$r, {
546
546
  icon: props.icon,
547
547
  size: props.size,
548
548
  disabled: props.disabled
@@ -555,7 +555,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
555
555
  placeholder: props.placeholder,
556
556
  disabled: props.disabled,
557
557
  class: inputClass
558
- }, _ctx.$attrs), null, 16, _hoisted_1$l), [
558
+ }, _ctx.$attrs), null, 16, _hoisted_1$m), [
559
559
  [vModelText, modelValue.value]
560
560
  ])
561
561
  ]),
@@ -564,14 +564,14 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
564
564
  };
565
565
  }
566
566
  });
567
- const _hoisted_1$k = ["id", "aria-checked", "aria-labelledby", "aria-describedby", "disabled"];
568
- const _hoisted_2$f = {
567
+ const _hoisted_1$l = ["id", "aria-checked", "aria-labelledby", "aria-describedby", "disabled"];
568
+ const _hoisted_2$g = {
569
569
  key: 0,
570
570
  class: "flex flex-col"
571
571
  };
572
- const _hoisted_3$e = ["id"];
573
- const _hoisted_4$a = ["id"];
574
- const _sfc_main$k = /* @__PURE__ */ defineComponent({
572
+ const _hoisted_3$f = ["id"];
573
+ const _hoisted_4$b = ["id"];
574
+ const _sfc_main$m = /* @__PURE__ */ defineComponent({
575
575
  __name: "Switch",
576
576
  props: {
577
577
  modelValue: { type: Boolean, default: false },
@@ -635,35 +635,35 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
635
635
  ]),
636
636
  "aria-hidden": "true"
637
637
  }, null, 2)
638
- ], 10, _hoisted_1$k),
639
- __props.label || __props.description ? (openBlock(), createElementBlock("div", _hoisted_2$f, [
638
+ ], 10, _hoisted_1$l),
639
+ __props.label || __props.description ? (openBlock(), createElementBlock("div", _hoisted_2$g, [
640
640
  __props.label ? (openBlock(), createElementBlock("span", {
641
641
  key: 0,
642
642
  id: labelId.value,
643
643
  class: "text-sm font-medium text-gray-900 dark:text-white"
644
- }, toDisplayString(__props.label), 9, _hoisted_3$e)) : createCommentVNode("", true),
644
+ }, toDisplayString(__props.label), 9, _hoisted_3$f)) : createCommentVNode("", true),
645
645
  __props.description ? (openBlock(), createElementBlock("span", {
646
646
  key: 1,
647
647
  id: descriptionId.value,
648
648
  class: "text-sm text-gray-500 dark:text-gray-400"
649
- }, toDisplayString(__props.description), 9, _hoisted_4$a)) : createCommentVNode("", true)
649
+ }, toDisplayString(__props.description), 9, _hoisted_4$b)) : createCommentVNode("", true)
650
650
  ])) : createCommentVNode("", true)
651
651
  ], 2);
652
652
  };
653
653
  }
654
654
  });
655
- const _hoisted_1$j = { class: "w-full" };
656
- const _hoisted_2$e = {
655
+ const _hoisted_1$k = { class: "w-full" };
656
+ const _hoisted_2$f = {
657
657
  key: 0,
658
658
  class: "mb-2 flex justify-between text-sm"
659
659
  };
660
- const _hoisted_3$d = { class: "text-gray-600 dark:text-gray-400" };
661
- const _hoisted_4$9 = { class: "font-medium text-gray-900 dark:text-white" };
660
+ const _hoisted_3$e = { class: "text-gray-600 dark:text-gray-400" };
661
+ const _hoisted_4$a = { class: "font-medium text-gray-900 dark:text-white" };
662
662
  const _hoisted_5$7 = { class: "text-gray-600 dark:text-gray-400" };
663
663
  const _hoisted_6$7 = { class: "relative" };
664
664
  const _hoisted_7$6 = ["value", "min", "max", "step", "disabled"];
665
665
  const _hoisted_8$5 = { class: "pointer-events-none absolute inset-y-0 left-0 flex items-center" };
666
- const _sfc_main$j = /* @__PURE__ */ defineComponent({
666
+ const _sfc_main$l = /* @__PURE__ */ defineComponent({
667
667
  __name: "Slider",
668
668
  props: /* @__PURE__ */ mergeModels({
669
669
  min: { default: 0 },
@@ -694,10 +694,10 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
694
694
  modelValue.value = Number(target.value);
695
695
  };
696
696
  return (_ctx, _cache) => {
697
- return openBlock(), createElementBlock("div", _hoisted_1$j, [
698
- __props.showValue ? (openBlock(), createElementBlock("div", _hoisted_2$e, [
699
- createElementVNode("span", _hoisted_3$d, toDisplayString(__props.min), 1),
700
- createElementVNode("span", _hoisted_4$9, toDisplayString(displayValue.value), 1),
697
+ return openBlock(), createElementBlock("div", _hoisted_1$k, [
698
+ __props.showValue ? (openBlock(), createElementBlock("div", _hoisted_2$f, [
699
+ createElementVNode("span", _hoisted_3$e, toDisplayString(__props.min), 1),
700
+ createElementVNode("span", _hoisted_4$a, toDisplayString(displayValue.value), 1),
701
701
  createElementVNode("span", _hoisted_5$7, toDisplayString(__props.max), 1)
702
702
  ])) : createCommentVNode("", true),
703
703
  createElementVNode("div", _hoisted_6$7, [
@@ -722,11 +722,11 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
722
722
  };
723
723
  }
724
724
  });
725
- const Slider = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-c25e2c2a"]]);
726
- const _hoisted_1$i = { class: "relative" };
727
- const _hoisted_2$d = ["id", "disabled", "aria-expanded", "aria-controls"];
728
- const _hoisted_3$c = { class: "flex-1 truncate" };
729
- const _hoisted_4$8 = { class: "flex items-center gap-1" };
725
+ const Slider = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-c25e2c2a"]]);
726
+ const _hoisted_1$j = { class: "relative" };
727
+ const _hoisted_2$e = ["id", "disabled", "aria-expanded", "aria-controls"];
728
+ const _hoisted_3$d = { class: "flex-1 truncate" };
729
+ const _hoisted_4$9 = { class: "flex items-center gap-1" };
730
730
  const _hoisted_5$6 = ["id", "aria-label"];
731
731
  const _hoisted_6$6 = { class: "mb-4 flex items-center justify-between" };
732
732
  const _hoisted_7$5 = {
@@ -742,7 +742,7 @@ const _hoisted_9$3 = ["abbr"];
742
742
  const _hoisted_10$3 = ["id", "aria-label"];
743
743
  const _hoisted_11$3 = ["aria-label", "aria-selected", "aria-disabled", "disabled", "onClick"];
744
744
  const _hoisted_12$2 = { class: "mt-4 border-t border-gray-200 pt-3 dark:border-gray-700" };
745
- const _sfc_main$i = /* @__PURE__ */ defineComponent({
745
+ const _sfc_main$k = /* @__PURE__ */ defineComponent({
746
746
  __name: "DatePicker",
747
747
  props: /* @__PURE__ */ mergeModels({
748
748
  placeholder: { default: "Select date" },
@@ -866,7 +866,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
866
866
  return formatter.format(date);
867
867
  };
868
868
  return (_ctx, _cache) => {
869
- return openBlock(), createElementBlock("div", _hoisted_1$i, [
869
+ return openBlock(), createElementBlock("div", _hoisted_1$j, [
870
870
  createElementVNode("button", {
871
871
  id: triggerId.value,
872
872
  ref_key: "triggerRef",
@@ -884,8 +884,8 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
884
884
  onClick: _cache[0] || (_cache[0] = //@ts-ignore
885
885
  (...args) => unref(toggle) && unref(toggle)(...args))
886
886
  }, [
887
- createElementVNode("span", _hoisted_3$c, toDisplayString(displayValue.value || __props.placeholder), 1),
888
- createElementVNode("div", _hoisted_4$8, [
887
+ createElementVNode("span", _hoisted_3$d, toDisplayString(displayValue.value || __props.placeholder), 1),
888
+ createElementVNode("div", _hoisted_4$9, [
889
889
  modelValue.value ? (openBlock(), createElementBlock("button", {
890
890
  key: 0,
891
891
  type: "button",
@@ -905,7 +905,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
905
905
  "aria-hidden": "true"
906
906
  })
907
907
  ])
908
- ], 10, _hoisted_2$d),
908
+ ], 10, _hoisted_2$e),
909
909
  (openBlock(), createBlock(Teleport, {
910
910
  to: "body",
911
911
  disabled: !__props.teleport
@@ -1010,10 +1010,10 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
1010
1010
  };
1011
1011
  }
1012
1012
  });
1013
- const _hoisted_1$h = { class: "space-y-4" };
1014
- const _hoisted_2$c = ["accept", "multiple", "disabled"];
1015
- const _hoisted_3$b = { class: "space-y-2" };
1016
- const _hoisted_4$7 = { class: "text-sm font-medium text-gray-700 dark:text-gray-300" };
1013
+ const _hoisted_1$i = { class: "space-y-4" };
1014
+ const _hoisted_2$d = ["accept", "multiple", "disabled"];
1015
+ const _hoisted_3$c = { class: "space-y-2" };
1016
+ const _hoisted_4$8 = { class: "text-sm font-medium text-gray-700 dark:text-gray-300" };
1017
1017
  const _hoisted_5$5 = {
1018
1018
  key: 0,
1019
1019
  class: "text-xs text-gray-500 dark:text-gray-400"
@@ -1030,7 +1030,7 @@ const _hoisted_8$3 = { class: "flex-1 min-w-0" };
1030
1030
  const _hoisted_9$2 = { class: "text-sm font-medium text-gray-700 dark:text-gray-300 truncate" };
1031
1031
  const _hoisted_10$2 = { class: "text-xs text-gray-500 dark:text-gray-400" };
1032
1032
  const _hoisted_11$2 = ["onClick"];
1033
- const _sfc_main$h = /* @__PURE__ */ defineComponent({
1033
+ const _sfc_main$j = /* @__PURE__ */ defineComponent({
1034
1034
  __name: "FileUpload",
1035
1035
  props: {
1036
1036
  accept: {},
@@ -1158,7 +1158,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
1158
1158
  return "heroicons:document";
1159
1159
  };
1160
1160
  return (_ctx, _cache) => {
1161
- return openBlock(), createElementBlock("div", _hoisted_1$h, [
1161
+ return openBlock(), createElementBlock("div", _hoisted_1$i, [
1162
1162
  createElementVNode("div", {
1163
1163
  class: normalizeClass(dropzoneClasses.value),
1164
1164
  onDrop: withModifiers(handleDrop, ["prevent"]),
@@ -1175,13 +1175,13 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
1175
1175
  multiple: __props.multiple,
1176
1176
  disabled: __props.disabled,
1177
1177
  onChange: handleInputChange
1178
- }, null, 40, _hoisted_2$c),
1179
- createElementVNode("div", _hoisted_3$b, [
1178
+ }, null, 40, _hoisted_2$d),
1179
+ createElementVNode("div", _hoisted_3$c, [
1180
1180
  createVNode(unref(Icon), {
1181
1181
  icon: "heroicons:cloud-arrow-up",
1182
1182
  class: normalizeClass(["size-12 mx-auto text-gray-400", { "text-primary-500": isDragging.value }])
1183
1183
  }, null, 8, ["class"]),
1184
- createElementVNode("p", _hoisted_4$7, toDisplayString(__props.label), 1),
1184
+ createElementVNode("p", _hoisted_4$8, toDisplayString(__props.label), 1),
1185
1185
  __props.description ? (openBlock(), createElementBlock("p", _hoisted_5$5, toDisplayString(__props.description), 1)) : createCommentVNode("", true),
1186
1186
  __props.maxSize ? (openBlock(), createElementBlock("p", _hoisted_6$5, " Max size: " + toDisplayString(formatSize(__props.maxSize)), 1)) : createCommentVNode("", true)
1187
1187
  ])
@@ -1217,13 +1217,13 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
1217
1217
  };
1218
1218
  }
1219
1219
  });
1220
- const _hoisted_1$g = { class: "flex items-center gap-1" };
1221
- const _hoisted_2$b = ["disabled", "onClick", "onMousemove"];
1222
- const _hoisted_3$a = {
1220
+ const _hoisted_1$h = { class: "flex items-center gap-1" };
1221
+ const _hoisted_2$c = ["disabled", "onClick", "onMousemove"];
1222
+ const _hoisted_3$b = {
1223
1223
  key: 0,
1224
1224
  class: "ml-2 text-sm font-medium text-gray-700 dark:text-gray-300"
1225
1225
  };
1226
- const _sfc_main$g = /* @__PURE__ */ defineComponent({
1226
+ const _sfc_main$i = /* @__PURE__ */ defineComponent({
1227
1227
  __name: "Rating",
1228
1228
  props: {
1229
1229
  modelValue: { default: 0 },
@@ -1286,7 +1286,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
1286
1286
  hoverValue.value = null;
1287
1287
  };
1288
1288
  return (_ctx, _cache) => {
1289
- return openBlock(), createElementBlock("div", _hoisted_1$g, [
1289
+ return openBlock(), createElementBlock("div", _hoisted_1$h, [
1290
1290
  createElementVNode("div", {
1291
1291
  class: "flex items-center",
1292
1292
  onMouseleave: handleMouseLeave
@@ -1318,21 +1318,21 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
1318
1318
  class: normalizeClass([sizeClasses.value, __props.color])
1319
1319
  }, null, 8, ["icon", "class"])
1320
1320
  ], 4)
1321
- ], 42, _hoisted_2$b);
1321
+ ], 42, _hoisted_2$c);
1322
1322
  }), 128))
1323
1323
  ], 32),
1324
- __props.showValue ? (openBlock(), createElementBlock("span", _hoisted_3$a, toDisplayString(__props.modelValue.toFixed(__props.allowHalf ? 1 : 0)), 1)) : createCommentVNode("", true)
1324
+ __props.showValue ? (openBlock(), createElementBlock("span", _hoisted_3$b, toDisplayString(__props.modelValue.toFixed(__props.allowHalf ? 1 : 0)), 1)) : createCommentVNode("", true)
1325
1325
  ]);
1326
1326
  };
1327
1327
  }
1328
1328
  });
1329
- const _hoisted_1$f = { class: "relative inline-block" };
1330
- const _hoisted_2$a = {
1329
+ const _hoisted_1$g = { class: "relative inline-block" };
1330
+ const _hoisted_2$b = {
1331
1331
  key: 0,
1332
1332
  class: "block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1"
1333
1333
  };
1334
- const _hoisted_3$9 = ["disabled"];
1335
- const _hoisted_4$6 = { class: "text-sm font-mono text-gray-700 dark:text-gray-300" };
1334
+ const _hoisted_3$a = ["disabled"];
1335
+ const _hoisted_4$7 = { class: "text-sm font-mono text-gray-700 dark:text-gray-300" };
1336
1336
  const _hoisted_5$4 = { class: "grid grid-cols-5 gap-2 mb-3" };
1337
1337
  const _hoisted_6$4 = ["title", "onClick"];
1338
1338
  const _hoisted_7$3 = {
@@ -1340,7 +1340,7 @@ const _hoisted_7$3 = {
1340
1340
  class: "flex items-center gap-2 pt-3 border-t border-gray-200 dark:border-gray-700"
1341
1341
  };
1342
1342
  const _hoisted_8$2 = ["value"];
1343
- const _sfc_main$f = /* @__PURE__ */ defineComponent({
1343
+ const _sfc_main$h = /* @__PURE__ */ defineComponent({
1344
1344
  __name: "ColorPicker",
1345
1345
  props: {
1346
1346
  modelValue: { default: "#3b82f6" },
@@ -1409,8 +1409,8 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
1409
1409
  isOpen.value = false;
1410
1410
  };
1411
1411
  return (_ctx, _cache) => {
1412
- return openBlock(), createElementBlock("div", _hoisted_1$f, [
1413
- __props.label ? (openBlock(), createElementBlock("label", _hoisted_2$a, toDisplayString(__props.label), 1)) : createCommentVNode("", true),
1412
+ return openBlock(), createElementBlock("div", _hoisted_1$g, [
1413
+ __props.label ? (openBlock(), createElementBlock("label", _hoisted_2$b, toDisplayString(__props.label), 1)) : createCommentVNode("", true),
1414
1414
  createElementVNode("button", {
1415
1415
  type: "button",
1416
1416
  class: normalizeClass(["flex items-center gap-2 px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-lg bg-white dark:bg-gray-800 hover:bg-gray-50 dark:hover:bg-gray-700 transition-colors", { "opacity-50 cursor-not-allowed": __props.disabled }]),
@@ -1421,12 +1421,12 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
1421
1421
  class: "size-6 rounded border border-gray-200 dark:border-gray-600",
1422
1422
  style: normalizeStyle({ backgroundColor: __props.modelValue })
1423
1423
  }, null, 4),
1424
- createElementVNode("span", _hoisted_4$6, toDisplayString(__props.modelValue), 1),
1424
+ createElementVNode("span", _hoisted_4$7, toDisplayString(__props.modelValue), 1),
1425
1425
  createVNode(unref(Icon), {
1426
1426
  icon: "heroicons:chevron-down",
1427
1427
  class: normalizeClass(["size-4 text-gray-400", { "rotate-180": isOpen.value }])
1428
1428
  }, null, 8, ["class"])
1429
- ], 10, _hoisted_3$9),
1429
+ ], 10, _hoisted_3$a),
1430
1430
  (openBlock(), createBlock(Teleport, {
1431
1431
  to: teleportTarget.value,
1432
1432
  disabled: teleportDisabled.value
@@ -1500,16 +1500,16 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
1500
1500
  };
1501
1501
  }
1502
1502
  });
1503
- const _hoisted_1$e = { class: "space-y-2" };
1504
- const _hoisted_2$9 = {
1503
+ const _hoisted_1$f = { class: "space-y-2" };
1504
+ const _hoisted_2$a = {
1505
1505
  key: 0,
1506
1506
  class: "flex justify-between text-sm font-medium text-gray-700 dark:text-gray-300"
1507
1507
  };
1508
- const _hoisted_3$8 = {
1508
+ const _hoisted_3$9 = {
1509
1509
  key: 1,
1510
1510
  class: "flex justify-between text-xs text-gray-500 dark:text-gray-400"
1511
1511
  };
1512
- const _sfc_main$e = /* @__PURE__ */ defineComponent({
1512
+ const _sfc_main$g = /* @__PURE__ */ defineComponent({
1513
1513
  __name: "RangeSlider",
1514
1514
  props: {
1515
1515
  modelValue: { default: () => [25, 75] },
@@ -1587,8 +1587,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
1587
1587
  }
1588
1588
  };
1589
1589
  return (_ctx, _cache) => {
1590
- return openBlock(), createElementBlock("div", _hoisted_1$e, [
1591
- __props.showLabels ? (openBlock(), createElementBlock("div", _hoisted_2$9, [
1590
+ return openBlock(), createElementBlock("div", _hoisted_1$f, [
1591
+ __props.showLabels ? (openBlock(), createElementBlock("div", _hoisted_2$a, [
1592
1592
  createElementVNode("span", null, toDisplayString(__props.formatLabel(minValue.value)), 1),
1593
1593
  createElementVNode("span", null, toDisplayString(__props.formatLabel(maxValue.value)), 1)
1594
1594
  ])) : createCommentVNode("", true),
@@ -1621,7 +1621,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
1621
1621
  onMousedown: _cache[1] || (_cache[1] = ($event) => handleMouseDown("max"))
1622
1622
  }, null, 38)
1623
1623
  ], 2),
1624
- __props.showMinMax ? (openBlock(), createElementBlock("div", _hoisted_3$8, [
1624
+ __props.showMinMax ? (openBlock(), createElementBlock("div", _hoisted_3$9, [
1625
1625
  createElementVNode("span", null, toDisplayString(__props.formatLabel(__props.min)), 1),
1626
1626
  createElementVNode("span", null, toDisplayString(__props.formatLabel(__props.max)), 1)
1627
1627
  ])) : createCommentVNode("", true)
@@ -1629,10 +1629,10 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
1629
1629
  };
1630
1630
  }
1631
1631
  });
1632
- const _hoisted_1$d = ["aria-expanded", "aria-controls"];
1633
- const _hoisted_2$8 = ["id", "name", "placeholder", "disabled", "aria-controls"];
1634
- const _hoisted_3$7 = { class: "flex items-center gap-1" };
1635
- const _hoisted_4$5 = ["id", "aria-label", "aria-multiselectable"];
1632
+ const _hoisted_1$e = ["aria-expanded", "aria-controls"];
1633
+ const _hoisted_2$9 = ["id", "name", "placeholder", "disabled", "aria-controls"];
1634
+ const _hoisted_3$8 = { class: "flex items-center gap-1" };
1635
+ const _hoisted_4$6 = ["id", "aria-label", "aria-multiselectable"];
1636
1636
  const _hoisted_5$3 = ["aria-selected", "aria-disabled", "disabled", "onClick"];
1637
1637
  const _hoisted_6$3 = { class: "flex-1" };
1638
1638
  const _hoisted_7$2 = {
@@ -1640,7 +1640,7 @@ const _hoisted_7$2 = {
1640
1640
  class: "px-3 py-2 text-center text-sm text-gray-500 dark:text-gray-400",
1641
1641
  role: "status"
1642
1642
  };
1643
- const _sfc_main$d = /* @__PURE__ */ defineComponent({
1643
+ const _sfc_main$f = /* @__PURE__ */ defineComponent({
1644
1644
  __name: "Combobox",
1645
1645
  props: {
1646
1646
  modelValue: {},
@@ -1771,10 +1771,10 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
1771
1771
  class: "flex-1 border-none bg-transparent text-sm text-gray-900 outline-hidden placeholder:text-gray-400 dark:text-gray-100 dark:placeholder:text-gray-500",
1772
1772
  onClick: _cache[1] || (_cache[1] = withModifiers(() => {
1773
1773
  }, ["stop"]))
1774
- }, null, 8, _hoisted_2$8)), [
1774
+ }, null, 8, _hoisted_2$9)), [
1775
1775
  [vModelText, search.value]
1776
1776
  ]),
1777
- createElementVNode("div", _hoisted_3$7, [
1777
+ createElementVNode("div", _hoisted_3$8, [
1778
1778
  __props.clearable && selectedOptions.value.length > 0 && !__props.disabled ? (openBlock(), createElementBlock("button", {
1779
1779
  key: 0,
1780
1780
  type: "button",
@@ -1797,7 +1797,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
1797
1797
  "aria-hidden": "true"
1798
1798
  }, null, 8, ["class"])
1799
1799
  ])
1800
- ], 10, _hoisted_1$d),
1800
+ ], 10, _hoisted_1$e),
1801
1801
  (openBlock(), createBlock(Teleport, {
1802
1802
  to: teleportTarget.value,
1803
1803
  disabled: teleportDisabled.value
@@ -1856,7 +1856,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
1856
1856
  })) : createCommentVNode("", true)
1857
1857
  ], 10, _hoisted_5$3);
1858
1858
  }), 128)) : (openBlock(), createElementBlock("div", _hoisted_7$2, toDisplayString(__props.noResultsText), 1))
1859
- ], 8, _hoisted_4$5)) : createCommentVNode("", true)
1859
+ ], 8, _hoisted_4$6)) : createCommentVNode("", true)
1860
1860
  ]),
1861
1861
  _: 1
1862
1862
  })
@@ -1865,13 +1865,13 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
1865
1865
  };
1866
1866
  }
1867
1867
  });
1868
- const _hoisted_1$c = { class: "relative" };
1869
- const _hoisted_2$7 = {
1868
+ const _hoisted_1$d = { class: "relative" };
1869
+ const _hoisted_2$8 = {
1870
1870
  key: 0,
1871
1871
  class: "text-red-500 ml-0.5"
1872
1872
  };
1873
- const _hoisted_3$6 = ["id", "disabled", "aria-invalid", "aria-describedby"];
1874
- const _hoisted_4$4 = {
1873
+ const _hoisted_3$7 = ["id", "disabled", "aria-invalid", "aria-describedby"];
1874
+ const _hoisted_4$5 = {
1875
1875
  key: 0,
1876
1876
  class: "flex items-center gap-2 flex-1"
1877
1877
  };
@@ -1899,7 +1899,7 @@ const _hoisted_13 = {
1899
1899
  const _hoisted_14 = ["title", "onClick"];
1900
1900
  const _hoisted_15 = { class: "mt-4 flex items-center justify-between border-t border-gray-200 pt-4 dark:border-gray-700" };
1901
1901
  const _hoisted_16 = { class: "text-xs text-gray-500" };
1902
- const _sfc_main$c = /* @__PURE__ */ defineComponent({
1902
+ const _sfc_main$e = /* @__PURE__ */ defineComponent({
1903
1903
  __name: "IconPicker",
1904
1904
  props: /* @__PURE__ */ mergeModels({
1905
1905
  label: {},
@@ -2023,15 +2023,15 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
2023
2023
  searchQuery.value = "";
2024
2024
  }
2025
2025
  return (_ctx, _cache) => {
2026
- return openBlock(), createElementBlock("div", _hoisted_1$c, [
2027
- __props.label ? (openBlock(), createBlock(_sfc_main$r, {
2026
+ return openBlock(), createElementBlock("div", _hoisted_1$d, [
2027
+ __props.label ? (openBlock(), createBlock(_sfc_main$t, {
2028
2028
  key: 0,
2029
2029
  "html-for": inputId.value,
2030
2030
  error: __props.error
2031
2031
  }, {
2032
2032
  default: withCtx(() => [
2033
2033
  createTextVNode(toDisplayString(__props.label) + " ", 1),
2034
- __props.required ? (openBlock(), createElementBlock("span", _hoisted_2$7, "*")) : createCommentVNode("", true)
2034
+ __props.required ? (openBlock(), createElementBlock("span", _hoisted_2$8, "*")) : createCommentVNode("", true)
2035
2035
  ]),
2036
2036
  _: 1
2037
2037
  }, 8, ["html-for", "error"])) : createCommentVNode("", true),
@@ -2047,7 +2047,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
2047
2047
  ]]),
2048
2048
  onClick: openPicker
2049
2049
  }, [
2050
- modelValue.value ? (openBlock(), createElementBlock("div", _hoisted_4$4, [
2050
+ modelValue.value ? (openBlock(), createElementBlock("div", _hoisted_4$5, [
2051
2051
  createElementVNode("div", _hoisted_5$2, [
2052
2052
  createVNode(unref(Icon), {
2053
2053
  icon: modelValue.value,
@@ -2071,8 +2071,8 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
2071
2071
  icon: "lucide:chevron-down",
2072
2072
  class: "size-4 text-gray-400"
2073
2073
  })
2074
- ], 10, _hoisted_3$6),
2075
- __props.help && !hasError.value ? (openBlock(), createBlock(_sfc_main$q, {
2074
+ ], 10, _hoisted_3$7),
2075
+ __props.help && !hasError.value ? (openBlock(), createBlock(_sfc_main$s, {
2076
2076
  key: 1,
2077
2077
  id: helpId.value
2078
2078
  }, {
@@ -2081,7 +2081,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
2081
2081
  ]),
2082
2082
  _: 1
2083
2083
  }, 8, ["id"])) : createCommentVNode("", true),
2084
- hasError.value ? (openBlock(), createBlock(_sfc_main$q, {
2084
+ hasError.value ? (openBlock(), createBlock(_sfc_main$s, {
2085
2085
  key: 2,
2086
2086
  id: helpId.value,
2087
2087
  error: true
@@ -2158,10 +2158,10 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
2158
2158
  };
2159
2159
  }
2160
2160
  });
2161
- const _hoisted_1$b = { class: "flex items-center justify-between" };
2162
- const _hoisted_2$6 = { class: "flex items-center gap-3" };
2163
- const _hoisted_3$5 = { class: "text-lg font-semibold text-gray-900 dark:text-white" };
2164
- const _hoisted_4$3 = {
2161
+ const _hoisted_1$c = { class: "flex items-center justify-between" };
2162
+ const _hoisted_2$7 = { class: "flex items-center gap-3" };
2163
+ const _hoisted_3$6 = { class: "text-lg font-semibold text-gray-900 dark:text-white" };
2164
+ const _hoisted_4$4 = {
2165
2165
  key: 0,
2166
2166
  class: "text-sm text-gray-500 dark:text-gray-400"
2167
2167
  };
@@ -2170,7 +2170,7 @@ const _hoisted_6$1 = {
2170
2170
  key: 0,
2171
2171
  class: "px-5 py-4 bg-gray-50 dark:bg-slate-800/50 border-t border-gray-100 dark:border-slate-700"
2172
2172
  };
2173
- const _sfc_main$b = /* @__PURE__ */ defineComponent({
2173
+ const _sfc_main$d = /* @__PURE__ */ defineComponent({
2174
2174
  __name: "FormSection",
2175
2175
  props: /* @__PURE__ */ mergeModels({
2176
2176
  title: {},
@@ -2204,8 +2204,8 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
2204
2204
  ]),
2205
2205
  onClick: _cache[0] || (_cache[0] = ($event) => __props.collapsible && toggleCollapse())
2206
2206
  }, [
2207
- createElementVNode("div", _hoisted_1$b, [
2208
- createElementVNode("div", _hoisted_2$6, [
2207
+ createElementVNode("div", _hoisted_1$c, [
2208
+ createElementVNode("div", _hoisted_2$7, [
2209
2209
  __props.icon ? (openBlock(), createElementBlock("div", {
2210
2210
  key: 0,
2211
2211
  class: normalizeClass([
@@ -2230,12 +2230,12 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
2230
2230
  }, null, 8, ["icon", "class"])
2231
2231
  ], 2)) : createCommentVNode("", true),
2232
2232
  createElementVNode("div", null, [
2233
- createElementVNode("h2", _hoisted_3$5, [
2233
+ createElementVNode("h2", _hoisted_3$6, [
2234
2234
  renderSlot(_ctx.$slots, "title", {}, () => [
2235
2235
  createTextVNode(toDisplayString(__props.title), 1)
2236
2236
  ])
2237
2237
  ]),
2238
- __props.subtitle ? (openBlock(), createElementBlock("p", _hoisted_4$3, [
2238
+ __props.subtitle ? (openBlock(), createElementBlock("p", _hoisted_4$4, [
2239
2239
  renderSlot(_ctx.$slots, "subtitle", {}, () => [
2240
2240
  createTextVNode(toDisplayString(__props.subtitle), 1)
2241
2241
  ])
@@ -2273,8 +2273,8 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
2273
2273
  };
2274
2274
  }
2275
2275
  });
2276
- const _hoisted_1$a = { key: 1 };
2277
- const _sfc_main$a = /* @__PURE__ */ defineComponent({
2276
+ const _hoisted_1$b = { key: 1 };
2277
+ const _sfc_main$c = /* @__PURE__ */ defineComponent({
2278
2278
  __name: "FormActions",
2279
2279
  props: {
2280
2280
  submitLabel: { default: "Enregistrer" },
@@ -2303,7 +2303,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
2303
2303
  __props.stackOnMobile && "flex-col sm:flex-row"
2304
2304
  ])
2305
2305
  }, [
2306
- __props.showCancel ? (openBlock(), createBlock(_sfc_main$s, {
2306
+ __props.showCancel ? (openBlock(), createBlock(_sfc_main$u, {
2307
2307
  key: 0,
2308
2308
  type: "button",
2309
2309
  variant: "outline",
@@ -2323,7 +2323,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
2323
2323
  ]),
2324
2324
  _: 1
2325
2325
  }, 8, ["disabled", "class"])) : createCommentVNode("", true),
2326
- createVNode(_sfc_main$s, {
2326
+ createVNode(_sfc_main$u, {
2327
2327
  type: "submit",
2328
2328
  variant: __props.submitVariant,
2329
2329
  disabled: __props.disabled || __props.loading,
@@ -2341,7 +2341,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
2341
2341
  class: "w-5 h-5"
2342
2342
  }, null, 8, ["icon"])) : createCommentVNode("", true),
2343
2343
  createTextVNode(" " + toDisplayString(__props.submitLabel), 1)
2344
- ], 64)) : (openBlock(), createElementBlock("span", _hoisted_1$a, toDisplayString(__props.loadingLabel || __props.submitLabel + "..."), 1))
2344
+ ], 64)) : (openBlock(), createElementBlock("span", _hoisted_1$b, toDisplayString(__props.loadingLabel || __props.submitLabel + "..."), 1))
2345
2345
  ]),
2346
2346
  _: 1
2347
2347
  }, 8, ["variant", "disabled", "loading", "class"]),
@@ -2350,8 +2350,8 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
2350
2350
  };
2351
2351
  }
2352
2352
  });
2353
- const _hoisted_1$9 = ["id", "name", "placeholder", "disabled", "required", "aria-invalid", "aria-required", "aria-describedby"];
2354
- const _sfc_main$9 = /* @__PURE__ */ defineComponent({
2353
+ const _hoisted_1$a = ["id", "name", "placeholder", "disabled", "required", "aria-invalid", "aria-required", "aria-describedby"];
2354
+ const _sfc_main$b = /* @__PURE__ */ defineComponent({
2355
2355
  ...{
2356
2356
  inheritAttrs: false
2357
2357
  },
@@ -2386,7 +2386,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
2386
2386
  isTouched.value = true;
2387
2387
  }
2388
2388
  return (_ctx, _cache) => {
2389
- return openBlock(), createBlock(_sfc_main$p, {
2389
+ return openBlock(), createBlock(_sfc_main$r, {
2390
2390
  icon: "lucide:mail",
2391
2391
  size: __props.size,
2392
2392
  disabled: __props.disabled,
@@ -2405,7 +2405,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
2405
2405
  "aria-required": __props.required || void 0,
2406
2406
  "aria-describedby": __props.describedBy,
2407
2407
  class: inputClass
2408
- }, _ctx.$attrs, { onBlur: handleBlur }), null, 16, _hoisted_1$9), [
2408
+ }, _ctx.$attrs, { onBlur: handleBlur }), null, 16, _hoisted_1$a), [
2409
2409
  [vModelText, modelValue.value]
2410
2410
  ])
2411
2411
  ]),
@@ -2425,14 +2425,14 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
2425
2425
  };
2426
2426
  }
2427
2427
  });
2428
- const _hoisted_1$8 = ["id", "type", "name", "placeholder", "disabled", "required", "aria-required", "aria-describedby"];
2429
- const _hoisted_2$5 = ["disabled"];
2430
- const _hoisted_3$4 = {
2428
+ const _hoisted_1$9 = ["id", "type", "name", "placeholder", "disabled", "required", "aria-required", "aria-describedby"];
2429
+ const _hoisted_2$6 = ["disabled"];
2430
+ const _hoisted_3$5 = {
2431
2431
  key: 0,
2432
2432
  class: "mt-2"
2433
2433
  };
2434
- const _hoisted_4$2 = { class: "h-1.5 w-full rounded-full bg-gray-200 dark:bg-slate-700 overflow-hidden" };
2435
- const _sfc_main$8 = /* @__PURE__ */ defineComponent({
2434
+ const _hoisted_4$3 = { class: "h-1.5 w-full rounded-full bg-gray-200 dark:bg-slate-700 overflow-hidden" };
2435
+ const _sfc_main$a = /* @__PURE__ */ defineComponent({
2436
2436
  ...{
2437
2437
  inheritAttrs: false
2438
2438
  },
@@ -2486,7 +2486,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
2486
2486
  return (_ctx, _cache) => {
2487
2487
  var _a, _b;
2488
2488
  return openBlock(), createElementBlock("div", null, [
2489
- createVNode(_sfc_main$p, {
2489
+ createVNode(_sfc_main$r, {
2490
2490
  icon: "lucide:lock",
2491
2491
  size: __props.size,
2492
2492
  disabled: __props.disabled
@@ -2503,7 +2503,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
2503
2503
  "aria-required": __props.required || void 0,
2504
2504
  "aria-describedby": __props.describedBy,
2505
2505
  class: inputClass
2506
- }, _ctx.$attrs, { autocomplete: "new-password" }), null, 16, _hoisted_1$8), [
2506
+ }, _ctx.$attrs, { autocomplete: "new-password" }), null, 16, _hoisted_1$9), [
2507
2507
  [vModelDynamic, modelValue.value]
2508
2508
  ])
2509
2509
  ]),
@@ -2518,12 +2518,12 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
2518
2518
  icon: showPassword.value ? "lucide:eye-off" : "lucide:eye",
2519
2519
  class: "size-5 text-gray-400 hover:text-gray-600 dark:hover:text-gray-300"
2520
2520
  }, null, 8, ["icon"])
2521
- ], 8, _hoisted_2$5)
2521
+ ], 8, _hoisted_2$6)
2522
2522
  ]),
2523
2523
  _: 1
2524
2524
  }, 8, ["size", "disabled"]),
2525
- __props.showStrength && modelValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$4, [
2526
- createElementVNode("div", _hoisted_4$2, [
2525
+ __props.showStrength && modelValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$5, [
2526
+ createElementVNode("div", _hoisted_4$3, [
2527
2527
  createElementVNode("div", {
2528
2528
  class: normalizeClass([
2529
2529
  "h-full rounded-full transition-all duration-300",
@@ -2547,10 +2547,10 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
2547
2547
  };
2548
2548
  }
2549
2549
  });
2550
- const _hoisted_1$7 = ["disabled"];
2551
- const _hoisted_2$4 = { class: "text-lg leading-none" };
2552
- const _hoisted_3$3 = ["id", "value", "name", "placeholder", "disabled", "required", "aria-required", "aria-describedby"];
2553
- const _hoisted_4$1 = { class: "text-xs text-gray-400 font-medium" };
2550
+ const _hoisted_1$8 = ["disabled"];
2551
+ const _hoisted_2$5 = { class: "text-lg leading-none" };
2552
+ const _hoisted_3$4 = ["id", "value", "name", "placeholder", "disabled", "required", "aria-required", "aria-describedby"];
2553
+ const _hoisted_4$2 = { class: "text-xs text-gray-400 font-medium" };
2554
2554
  const _hoisted_5 = {
2555
2555
  key: 0,
2556
2556
  class: "absolute z-50 mt-1 w-full bg-white dark:bg-slate-800 border border-gray-200 dark:border-slate-700 rounded-xl shadow-lg overflow-hidden"
@@ -2606,7 +2606,7 @@ function getMaxDigitsFromPattern(pattern) {
2606
2606
  if (!pattern) return void 0;
2607
2607
  return (pattern.match(/#/g) || []).length;
2608
2608
  }
2609
- const _sfc_main$7 = /* @__PURE__ */ defineComponent({
2609
+ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
2610
2610
  ...{
2611
2611
  inheritAttrs: false
2612
2612
  },
@@ -2733,7 +2733,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
2733
2733
  ref_key: "dropdownRef",
2734
2734
  ref: dropdownRef
2735
2735
  }, [
2736
- createVNode(_sfc_main$p, {
2736
+ createVNode(_sfc_main$r, {
2737
2737
  size: __props.size,
2738
2738
  disabled: __props.disabled
2739
2739
  }, {
@@ -2744,7 +2744,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
2744
2744
  class: "flex items-center gap-1 pr-2 border-r border-gray-200 dark:border-slate-600 hover:bg-gray-50 dark:hover:bg-slate-600 -ml-1 pl-1 py-1 rounded-l transition-colors disabled:opacity-50 disabled:cursor-not-allowed",
2745
2745
  onClick: _cache[0] || (_cache[0] = withModifiers(($event) => showDropdown.value = !showDropdown.value, ["stop"]))
2746
2746
  }, [
2747
- createElementVNode("span", _hoisted_2$4, toDisplayString(selectedCountry.value.flag), 1),
2747
+ createElementVNode("span", _hoisted_2$5, toDisplayString(selectedCountry.value.flag), 1),
2748
2748
  createVNode(unref(Icon), {
2749
2749
  icon: "lucide:chevron-down",
2750
2750
  class: normalizeClass([
@@ -2752,7 +2752,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
2752
2752
  showDropdown.value && "rotate-180"
2753
2753
  ])
2754
2754
  }, null, 8, ["class"])
2755
- ], 8, _hoisted_1$7)
2755
+ ], 8, _hoisted_1$8)
2756
2756
  ]),
2757
2757
  default: withCtx(({ inputClass }) => [
2758
2758
  createElementVNode("input", mergeProps({
@@ -2769,10 +2769,10 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
2769
2769
  }, _ctx.$attrs, {
2770
2770
  onInput: handleInput,
2771
2771
  onPaste: handlePaste
2772
- }), null, 16, _hoisted_3$3)
2772
+ }), null, 16, _hoisted_3$4)
2773
2773
  ]),
2774
2774
  actions: withCtx(() => [
2775
- createElementVNode("span", _hoisted_4$1, toDisplayString(selectedCountry.value.dialCode), 1)
2775
+ createElementVNode("span", _hoisted_4$2, toDisplayString(selectedCountry.value.dialCode), 1)
2776
2776
  ]),
2777
2777
  _: 1
2778
2778
  }, 8, ["size", "disabled"]),
@@ -2818,10 +2818,10 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
2818
2818
  };
2819
2819
  }
2820
2820
  });
2821
- const _hoisted_1$6 = ["disabled"];
2822
- const _hoisted_2$3 = ["id", "value", "name", "placeholder", "disabled", "required", "min", "max", "step", "aria-required", "aria-describedby"];
2823
- const _hoisted_3$2 = ["disabled"];
2824
- const _sfc_main$6 = /* @__PURE__ */ defineComponent({
2821
+ const _hoisted_1$7 = ["disabled"];
2822
+ const _hoisted_2$4 = ["id", "value", "name", "placeholder", "disabled", "required", "min", "max", "step", "aria-required", "aria-describedby"];
2823
+ const _hoisted_3$3 = ["disabled"];
2824
+ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
2825
2825
  ...{
2826
2826
  inheritAttrs: false
2827
2827
  },
@@ -2883,7 +2883,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
2883
2883
  }
2884
2884
  }
2885
2885
  return (_ctx, _cache) => {
2886
- return openBlock(), createBlock(_sfc_main$p, {
2886
+ return openBlock(), createBlock(_sfc_main$r, {
2887
2887
  size: __props.size,
2888
2888
  disabled: __props.disabled
2889
2889
  }, createSlots({
@@ -2902,7 +2902,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
2902
2902
  "aria-required": __props.required || void 0,
2903
2903
  "aria-describedby": __props.describedBy,
2904
2904
  class: [inputClass, "text-center", __props.showStepper && "pl-12 pr-12"]
2905
- }, _ctx.$attrs, { onInput: handleInput }), null, 16, _hoisted_2$3)
2905
+ }, _ctx.$attrs, { onInput: handleInput }), null, 16, _hoisted_2$4)
2906
2906
  ]),
2907
2907
  _: 2
2908
2908
  }, [
@@ -2919,7 +2919,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
2919
2919
  icon: "lucide:minus",
2920
2920
  class: "size-4 text-gray-500"
2921
2921
  })
2922
- ], 8, _hoisted_1$6)
2922
+ ], 8, _hoisted_1$7)
2923
2923
  ]),
2924
2924
  key: "0"
2925
2925
  } : void 0,
@@ -2936,7 +2936,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
2936
2936
  icon: "lucide:plus",
2937
2937
  class: "size-4 text-gray-500"
2938
2938
  })
2939
- ], 8, _hoisted_3$2)
2939
+ ], 8, _hoisted_3$3)
2940
2940
  ]),
2941
2941
  key: "1"
2942
2942
  } : void 0
@@ -2944,10 +2944,10 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
2944
2944
  };
2945
2945
  }
2946
2946
  });
2947
- const _hoisted_1$5 = { class: "text-sm font-medium text-gray-500 dark:text-gray-400" };
2948
- const _hoisted_2$2 = ["id", "value", "name", "placeholder", "disabled", "required", "aria-required", "aria-describedby"];
2949
- const _hoisted_3$1 = { class: "text-sm font-medium text-gray-500 dark:text-gray-400" };
2950
- const _sfc_main$5 = /* @__PURE__ */ defineComponent({
2947
+ const _hoisted_1$6 = { class: "text-sm font-medium text-gray-500 dark:text-gray-400" };
2948
+ const _hoisted_2$3 = ["id", "value", "name", "placeholder", "disabled", "required", "aria-required", "aria-describedby"];
2949
+ const _hoisted_3$2 = { class: "text-sm font-medium text-gray-500 dark:text-gray-400" };
2950
+ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
2951
2951
  ...{
2952
2952
  inheritAttrs: false
2953
2953
  },
@@ -3021,7 +3021,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
3021
3021
  }
3022
3022
  }
3023
3023
  return (_ctx, _cache) => {
3024
- return openBlock(), createBlock(_sfc_main$p, {
3024
+ return openBlock(), createBlock(_sfc_main$r, {
3025
3025
  size: __props.size,
3026
3026
  disabled: __props.disabled
3027
3027
  }, createSlots({
@@ -3041,21 +3041,21 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
3041
3041
  }, _ctx.$attrs, {
3042
3042
  onInput: handleInput,
3043
3043
  onBlur: handleBlur
3044
- }), null, 16, _hoisted_2$2)
3044
+ }), null, 16, _hoisted_2$3)
3045
3045
  ]),
3046
3046
  _: 2
3047
3047
  }, [
3048
3048
  config.value.position === "prefix" ? {
3049
3049
  name: "icon",
3050
3050
  fn: withCtx(() => [
3051
- createElementVNode("span", _hoisted_1$5, toDisplayString(config.value.symbol), 1)
3051
+ createElementVNode("span", _hoisted_1$6, toDisplayString(config.value.symbol), 1)
3052
3052
  ]),
3053
3053
  key: "0"
3054
3054
  } : void 0,
3055
3055
  config.value.position === "suffix" ? {
3056
3056
  name: "actions",
3057
3057
  fn: withCtx(() => [
3058
- createElementVNode("span", _hoisted_3$1, toDisplayString(config.value.symbol), 1)
3058
+ createElementVNode("span", _hoisted_3$2, toDisplayString(config.value.symbol), 1)
3059
3059
  ]),
3060
3060
  key: "1"
3061
3061
  } : void 0
@@ -3063,8 +3063,8 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
3063
3063
  };
3064
3064
  }
3065
3065
  });
3066
- const _hoisted_1$4 = ["id", "value", "name", "placeholder", "disabled", "required", "min", "max", "step", "aria-required", "aria-describedby"];
3067
- const _sfc_main$4 = /* @__PURE__ */ defineComponent({
3066
+ const _hoisted_1$5 = ["id", "value", "name", "placeholder", "disabled", "required", "min", "max", "step", "aria-required", "aria-describedby"];
3067
+ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
3068
3068
  ...{
3069
3069
  inheritAttrs: false
3070
3070
  },
@@ -3109,7 +3109,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
3109
3109
  displayValue.value = target.value;
3110
3110
  }
3111
3111
  return (_ctx, _cache) => {
3112
- return openBlock(), createBlock(_sfc_main$p, {
3112
+ return openBlock(), createBlock(_sfc_main$r, {
3113
3113
  size: __props.size,
3114
3114
  disabled: __props.disabled
3115
3115
  }, {
@@ -3129,7 +3129,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
3129
3129
  "aria-required": __props.required || void 0,
3130
3130
  "aria-describedby": __props.describedBy,
3131
3131
  class: [inputClass, "text-right pr-10"]
3132
- }, _ctx.$attrs, { onInput: handleInput }), null, 16, _hoisted_1$4)
3132
+ }, _ctx.$attrs, { onInput: handleInput }), null, 16, _hoisted_1$5)
3133
3133
  ]),
3134
3134
  actions: withCtx(() => [..._cache[0] || (_cache[0] = [
3135
3135
  createElementVNode("span", { class: "text-sm font-medium text-gray-500 dark:text-gray-400" }, "%", -1)
@@ -3139,11 +3139,11 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
3139
3139
  };
3140
3140
  }
3141
3141
  });
3142
- const _hoisted_1$3 = { class: "inline-flex items-center gap-2 bg-gray-50 dark:bg-slate-700 rounded-xl p-1 border border-gray-200 dark:border-slate-600" };
3143
- const _hoisted_2$1 = ["disabled"];
3144
- const _hoisted_3 = ["id", "value", "name", "disabled", "required", "min", "max"];
3145
- const _hoisted_4 = ["disabled"];
3146
- const _sfc_main$3 = /* @__PURE__ */ defineComponent({
3142
+ const _hoisted_1$4 = { class: "inline-flex items-center gap-2 bg-gray-50 dark:bg-slate-700 rounded-xl p-1 border border-gray-200 dark:border-slate-600" };
3143
+ const _hoisted_2$2 = ["disabled"];
3144
+ const _hoisted_3$1 = ["id", "value", "name", "disabled", "required", "min", "max"];
3145
+ const _hoisted_4$1 = ["disabled"];
3146
+ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
3147
3147
  ...{
3148
3148
  inheritAttrs: false
3149
3149
  },
@@ -3213,7 +3213,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
3213
3213
  }[props.size]
3214
3214
  }));
3215
3215
  return (_ctx, _cache) => {
3216
- return openBlock(), createElementBlock("div", _hoisted_1$3, [
3216
+ return openBlock(), createElementBlock("div", _hoisted_1$4, [
3217
3217
  createElementVNode("button", {
3218
3218
  type: "button",
3219
3219
  disabled: !canDecrement.value,
@@ -3230,7 +3230,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
3230
3230
  icon: "lucide:minus",
3231
3231
  class: normalizeClass(["text-gray-600 dark:text-gray-300", sizeClasses.value.icon])
3232
3232
  }, null, 8, ["class"])
3233
- ], 10, _hoisted_2$1),
3233
+ ], 10, _hoisted_2$2),
3234
3234
  createElementVNode("input", mergeProps({
3235
3235
  id: __props.id ?? __props.name,
3236
3236
  value: modelValue.value,
@@ -3247,7 +3247,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
3247
3247
  "disabled:opacity-50",
3248
3248
  sizeClasses.value.input
3249
3249
  ]
3250
- }, _ctx.$attrs, { onInput: handleInput }), null, 16, _hoisted_3),
3250
+ }, _ctx.$attrs, { onInput: handleInput }), null, 16, _hoisted_3$1),
3251
3251
  createElementVNode("button", {
3252
3252
  type: "button",
3253
3253
  disabled: !canIncrement.value,
@@ -3264,13 +3264,13 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
3264
3264
  icon: "lucide:plus",
3265
3265
  class: normalizeClass(["text-gray-600 dark:text-gray-300", sizeClasses.value.icon])
3266
3266
  }, null, 8, ["class"])
3267
- ], 10, _hoisted_4)
3267
+ ], 10, _hoisted_4$1)
3268
3268
  ]);
3269
3269
  };
3270
3270
  }
3271
3271
  });
3272
- const _hoisted_1$2 = ["id", "name", "placeholder", "disabled", "required", "aria-invalid", "aria-required", "aria-describedby"];
3273
- const _sfc_main$2 = /* @__PURE__ */ defineComponent({
3272
+ const _hoisted_1$3 = ["id", "name", "placeholder", "disabled", "required", "aria-invalid", "aria-required", "aria-describedby"];
3273
+ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
3274
3274
  ...{
3275
3275
  inheritAttrs: false
3276
3276
  },
@@ -3311,7 +3311,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
3311
3311
  }
3312
3312
  }
3313
3313
  return (_ctx, _cache) => {
3314
- return openBlock(), createBlock(_sfc_main$p, {
3314
+ return openBlock(), createBlock(_sfc_main$r, {
3315
3315
  icon: "lucide:link",
3316
3316
  size: __props.size,
3317
3317
  disabled: __props.disabled,
@@ -3330,7 +3330,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
3330
3330
  "aria-required": __props.required || void 0,
3331
3331
  "aria-describedby": __props.describedBy,
3332
3332
  class: inputClass
3333
- }, _ctx.$attrs, { onBlur: handleBlur }), null, 16, _hoisted_1$2), [
3333
+ }, _ctx.$attrs, { onBlur: handleBlur }), null, 16, _hoisted_1$3), [
3334
3334
  [vModelText, modelValue.value]
3335
3335
  ])
3336
3336
  ]),
@@ -3357,8 +3357,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
3357
3357
  };
3358
3358
  }
3359
3359
  });
3360
- const _hoisted_1$1 = ["value", "type", "name", "disabled", "onInput", "onKeydown"];
3361
- const _sfc_main$1 = /* @__PURE__ */ defineComponent({
3360
+ const _hoisted_1$2 = ["value", "type", "name", "disabled", "onInput", "onKeydown"];
3361
+ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
3362
3362
  ...{
3363
3363
  inheritAttrs: false
3364
3364
  },
@@ -3503,15 +3503,15 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
3503
3503
  onKeydown: ($event) => handleKeydown($event, index),
3504
3504
  onPaste: handlePaste,
3505
3505
  onFocus: handleFocus
3506
- }, null, 42, _hoisted_1$1);
3506
+ }, null, 42, _hoisted_1$2);
3507
3507
  }), 128))
3508
3508
  ], 2);
3509
3509
  };
3510
3510
  }
3511
3511
  });
3512
- const _hoisted_1 = ["onClick"];
3513
- const _hoisted_2 = ["id", "name", "placeholder", "disabled", "required"];
3514
- const _sfc_main = /* @__PURE__ */ defineComponent({
3512
+ const _hoisted_1$1 = ["onClick"];
3513
+ const _hoisted_2$1 = ["id", "name", "placeholder", "disabled", "required"];
3514
+ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
3515
3515
  ...{
3516
3516
  inheritAttrs: false
3517
3517
  },
@@ -3629,7 +3629,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
3629
3629
  icon: "lucide:x",
3630
3630
  class: normalizeClass(["text-primary-500", sizeClasses.value.icon])
3631
3631
  }, null, 8, ["class"])
3632
- ], 8, _hoisted_1)) : createCommentVNode("", true)
3632
+ ], 8, _hoisted_1$1)) : createCommentVNode("", true)
3633
3633
  ], 2);
3634
3634
  }), 128))
3635
3635
  ]),
@@ -3654,42 +3654,217 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
3654
3654
  }, _ctx.$attrs, {
3655
3655
  onKeydown: handleKeydown,
3656
3656
  onBlur: handleBlur
3657
- }), null, 16, _hoisted_2)), [
3657
+ }), null, 16, _hoisted_2$1)), [
3658
3658
  [vModelText, inputValue.value]
3659
3659
  ]) : createCommentVNode("", true)
3660
3660
  ], 2);
3661
3661
  };
3662
3662
  }
3663
3663
  });
3664
- const TagsInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-fcace07c"]]);
3664
+ const TagsInput = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-fcace07c"]]);
3665
+ const _hoisted_1 = ["value", "placeholder", "disabled", "readonly", "required", "rows", "maxlength"];
3666
+ const _hoisted_2 = {
3667
+ key: 0,
3668
+ class: "flex justify-end mt-1"
3669
+ };
3670
+ const _hoisted_3 = { class: "text-xs text-gray-400" };
3671
+ const _hoisted_4 = { key: 0 };
3672
+ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
3673
+ __name: "TextArea",
3674
+ props: {
3675
+ modelValue: { default: "" },
3676
+ label: {},
3677
+ placeholder: {},
3678
+ hint: {},
3679
+ error: {},
3680
+ disabled: { type: Boolean },
3681
+ readonly: { type: Boolean },
3682
+ required: { type: Boolean },
3683
+ rows: { default: 3 },
3684
+ maxLength: {},
3685
+ showCount: { type: Boolean, default: false },
3686
+ resize: { default: "vertical" }
3687
+ },
3688
+ emits: ["update:modelValue"],
3689
+ setup(__props, { emit: __emit }) {
3690
+ const props = __props;
3691
+ const emit = __emit;
3692
+ const charCount = computed(() => {
3693
+ var _a;
3694
+ return ((_a = props.modelValue) == null ? void 0 : _a.length) ?? 0;
3695
+ });
3696
+ const resizeClass = computed(() => {
3697
+ switch (props.resize) {
3698
+ case "none":
3699
+ return "resize-none";
3700
+ case "vertical":
3701
+ return "resize-y";
3702
+ case "horizontal":
3703
+ return "resize-x";
3704
+ case "both":
3705
+ return "resize";
3706
+ default:
3707
+ return "resize-y";
3708
+ }
3709
+ });
3710
+ function handleInput(event) {
3711
+ const target = event.target;
3712
+ emit("update:modelValue", target.value);
3713
+ }
3714
+ return (_ctx, _cache) => {
3715
+ return openBlock(), createBlock(_sfc_main$r, {
3716
+ label: __props.label,
3717
+ hint: __props.hint,
3718
+ error: __props.error,
3719
+ required: __props.required,
3720
+ disabled: __props.disabled
3721
+ }, createSlots({
3722
+ default: withCtx(() => [
3723
+ createElementVNode("textarea", {
3724
+ value: __props.modelValue,
3725
+ placeholder: __props.placeholder,
3726
+ disabled: __props.disabled,
3727
+ readonly: __props.readonly,
3728
+ required: __props.required,
3729
+ rows: __props.rows,
3730
+ maxlength: __props.maxLength,
3731
+ class: normalizeClass([
3732
+ "w-full px-4 py-3 rounded-xl border transition-all duration-200",
3733
+ "focus:outline-none focus:ring-2 focus:ring-offset-0",
3734
+ resizeClass.value,
3735
+ __props.error ? "border-red-300 dark:border-red-500 focus:border-red-500 focus:ring-red-500/20" : "border-gray-200 dark:border-slate-600 focus:border-primary-500 focus:ring-primary-500/20",
3736
+ __props.disabled ? "bg-gray-50 dark:bg-slate-800 text-gray-400 cursor-not-allowed" : "bg-white dark:bg-slate-700 text-gray-900 dark:text-white"
3737
+ ]),
3738
+ onInput: handleInput
3739
+ }, null, 42, _hoisted_1),
3740
+ __props.showCount || __props.maxLength ? (openBlock(), createElementBlock("div", _hoisted_2, [
3741
+ createElementVNode("span", _hoisted_3, [
3742
+ createTextVNode(toDisplayString(charCount.value), 1),
3743
+ __props.maxLength ? (openBlock(), createElementBlock("span", _hoisted_4, " / " + toDisplayString(__props.maxLength), 1)) : createCommentVNode("", true)
3744
+ ])
3745
+ ])) : createCommentVNode("", true)
3746
+ ]),
3747
+ _: 2
3748
+ }, [
3749
+ _ctx.$slots.label ? {
3750
+ name: "label",
3751
+ fn: withCtx(() => [
3752
+ renderSlot(_ctx.$slots, "label")
3753
+ ]),
3754
+ key: "0"
3755
+ } : void 0
3756
+ ]), 1032, ["label", "hint", "error", "required", "disabled"]);
3757
+ };
3758
+ }
3759
+ });
3760
+ const _sfc_main = /* @__PURE__ */ defineComponent({
3761
+ __name: "CheckboxGroup",
3762
+ props: {
3763
+ modelValue: { default: () => [] },
3764
+ options: {},
3765
+ label: {},
3766
+ hint: {},
3767
+ error: {},
3768
+ disabled: { type: Boolean },
3769
+ required: { type: Boolean },
3770
+ columns: { default: 2 },
3771
+ inline: { type: Boolean, default: false }
3772
+ },
3773
+ emits: ["update:modelValue"],
3774
+ setup(__props, { emit: __emit }) {
3775
+ const props = __props;
3776
+ const emit = __emit;
3777
+ const gridClass = computed(() => {
3778
+ if (props.inline) return "flex flex-wrap gap-4";
3779
+ switch (props.columns) {
3780
+ case 1:
3781
+ return "grid grid-cols-1 gap-2";
3782
+ case 2:
3783
+ return "grid grid-cols-1 sm:grid-cols-2 gap-2";
3784
+ case 3:
3785
+ return "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-2";
3786
+ case 4:
3787
+ return "grid grid-cols-2 sm:grid-cols-4 gap-2";
3788
+ default:
3789
+ return "grid grid-cols-1 sm:grid-cols-2 gap-2";
3790
+ }
3791
+ });
3792
+ function isChecked(value) {
3793
+ var _a;
3794
+ return ((_a = props.modelValue) == null ? void 0 : _a.includes(value)) ?? false;
3795
+ }
3796
+ function toggleValue(value, checked) {
3797
+ const current = props.modelValue ?? [];
3798
+ if (checked) {
3799
+ if (!current.includes(value)) {
3800
+ emit("update:modelValue", [...current, value]);
3801
+ }
3802
+ } else {
3803
+ emit("update:modelValue", current.filter((v) => v !== value));
3804
+ }
3805
+ }
3806
+ return (_ctx, _cache) => {
3807
+ return openBlock(), createBlock(_sfc_main$r, {
3808
+ label: __props.label,
3809
+ hint: __props.hint,
3810
+ error: __props.error,
3811
+ required: __props.required,
3812
+ disabled: __props.disabled
3813
+ }, {
3814
+ default: withCtx(() => [
3815
+ createElementVNode("div", {
3816
+ class: normalizeClass(gridClass.value)
3817
+ }, [
3818
+ (openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (option) => {
3819
+ return openBlock(), createBlock(_sfc_main$v, {
3820
+ key: option.value,
3821
+ "model-value": isChecked(option.value),
3822
+ disabled: __props.disabled || option.disabled,
3823
+ "onUpdate:modelValue": (checked) => toggleValue(option.value, checked)
3824
+ }, {
3825
+ default: withCtx(() => [
3826
+ createTextVNode(toDisplayString(option.label), 1)
3827
+ ]),
3828
+ _: 2
3829
+ }, 1032, ["model-value", "disabled", "onUpdate:modelValue"]);
3830
+ }), 128))
3831
+ ], 2)
3832
+ ]),
3833
+ _: 1
3834
+ }, 8, ["label", "hint", "error", "required", "disabled"]);
3835
+ };
3836
+ }
3837
+ });
3665
3838
  export {
3839
+ _sfc_main as A,
3666
3840
  Slider as S,
3667
3841
  TagsInput as T,
3668
- _sfc_main$r as _,
3669
- _sfc_main$q as a,
3670
- _sfc_main$o as b,
3671
- _sfc_main$n as c,
3672
- _sfc_main$m as d,
3673
- _sfc_main$l as e,
3674
- _sfc_main$k as f,
3675
- _sfc_main$i as g,
3676
- _sfc_main$h as h,
3677
- _sfc_main$g as i,
3678
- _sfc_main$f as j,
3679
- _sfc_main$e as k,
3680
- _sfc_main$d as l,
3681
- _sfc_main$c as m,
3682
- _sfc_main$b as n,
3683
- _sfc_main$a as o,
3684
- _sfc_main$p as p,
3685
- _sfc_main$9 as q,
3686
- _sfc_main$8 as r,
3687
- _sfc_main$7 as s,
3688
- _sfc_main$6 as t,
3689
- _sfc_main$5 as u,
3690
- _sfc_main$4 as v,
3691
- _sfc_main$3 as w,
3692
- _sfc_main$2 as x,
3693
- _sfc_main$1 as y
3842
+ _sfc_main$t as _,
3843
+ _sfc_main$s as a,
3844
+ _sfc_main$q as b,
3845
+ _sfc_main$p as c,
3846
+ _sfc_main$o as d,
3847
+ _sfc_main$n as e,
3848
+ _sfc_main$m as f,
3849
+ _sfc_main$k as g,
3850
+ _sfc_main$j as h,
3851
+ _sfc_main$i as i,
3852
+ _sfc_main$h as j,
3853
+ _sfc_main$g as k,
3854
+ _sfc_main$f as l,
3855
+ _sfc_main$e as m,
3856
+ _sfc_main$d as n,
3857
+ _sfc_main$c as o,
3858
+ _sfc_main$r as p,
3859
+ _sfc_main$b as q,
3860
+ _sfc_main$a as r,
3861
+ _sfc_main$9 as s,
3862
+ _sfc_main$8 as t,
3863
+ _sfc_main$7 as u,
3864
+ _sfc_main$6 as v,
3865
+ _sfc_main$5 as w,
3866
+ _sfc_main$4 as x,
3867
+ _sfc_main$3 as y,
3868
+ _sfc_main$1 as z
3694
3869
  };
3695
- //# sourceMappingURL=TagsInput-DtoJKN3L.js.map
3870
+ //# sourceMappingURL=CheckboxGroup.vue_vue_type_script_setup_true_lang-BOGul8zU.js.map