@stachelock/ui 0.6.10 → 0.6.12

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 (54) hide show
  1. package/dist/{CalendarHeader.vue_vue_type_script_setup_true_lang-Cbgbb2e5.js → CalendarHeader.vue_vue_type_script_setup_true_lang-CooyV5tq.js} +1 -1
  2. package/dist/{ComboboxInput.vue_vue_type_script_setup_true_lang-kHTj4Ju2.js → ComboboxInput.vue_vue_type_script_setup_true_lang-Cy0Pl8Ap.js} +3 -3
  3. package/dist/{DatepickerInput.vue_vue_type_style_index_0_lang-DbI3619T.js → DatepickerInput.vue_vue_type_style_index_0_lang-C_0dWHo6.js} +5 -4
  4. package/dist/{EmailInput.vue_vue_type_script_setup_true_lang-CWEfbsJ_.js → EmailInput.vue_vue_type_script_setup_true_lang-59bDl9yw.js} +5 -5
  5. package/dist/{FileDropzoneInput.vue_vue_type_script_setup_true_lang-BJR-_ngq.js → FileDropzoneInput.vue_vue_type_script_setup_true_lang-BC_qN5qn.js} +1 -1
  6. package/dist/{ImageDropzoneInput.vue_vue_type_script_setup_true_lang-7JWDfxD2.js → ImageDropzoneInput.vue_vue_type_script_setup_true_lang-CsAclXd8.js} +104 -100
  7. package/dist/{InlineTabs.vue_vue_type_script_setup_true_lang-BWzrSbT3.js → InlineTabs.vue_vue_type_script_setup_true_lang-DGGJem-g.js} +1 -1
  8. package/dist/{SelectInput.vue_vue_type_script_setup_true_lang-D9yg_rkV.js → SelectInput.vue_vue_type_script_setup_true_lang-DEaP3bhC.js} +15 -14
  9. package/dist/{SelectTextInput.vue_vue_type_script_setup_true_lang-CtFVOrhm.js → SelectTextInput.vue_vue_type_script_setup_true_lang-DYlrRigi.js} +19 -18
  10. package/dist/{SwitchInput.vue_vue_type_script_setup_true_lang-D5Es9AjF.js → SwitchInput.vue_vue_type_script_setup_true_lang-r8ZwU1Zy.js} +1 -1
  11. package/dist/{SwitchInputGroup.vue_vue_type_script_setup_true_lang-DigNYqVZ.js → SwitchInputGroup.vue_vue_type_script_setup_true_lang-PgsXeiig.js} +1 -1
  12. package/dist/{TabGroup.vue_vue_type_script_setup_true_lang-123nIzRC.js → TabGroup.vue_vue_type_script_setup_true_lang-DTWW7kYh.js} +1 -1
  13. package/dist/{TabGroupUnderline.vue_vue_type_script_setup_true_lang-DbIwjaLJ.js → TabGroupUnderline.vue_vue_type_script_setup_true_lang-B8e7kxad.js} +1 -1
  14. package/dist/{TabsInPills.vue_vue_type_script_setup_true_lang-mw68ZzS1.js → TabsInPills.vue_vue_type_script_setup_true_lang-Dzi4ENL1.js} +1 -1
  15. package/dist/{TagifyInput.vue_vue_type_script_setup_true_lang-BF2mK8JC.js → TagifyInput.vue_vue_type_script_setup_true_lang-CwxJ2x1x.js} +65 -62
  16. package/dist/{TextAreaInput.vue_vue_type_script_setup_true_lang-Cf0MJobG.js → TextAreaInput.vue_vue_type_script_setup_true_lang-Dtf7H1sT.js} +3 -2
  17. package/dist/calendars/CalendarDashboard.js +1 -1
  18. package/dist/calendars/CalendarHeader.js +1 -1
  19. package/dist/components/CloudinaryImage.js +1 -1
  20. package/dist/forms/FormFieldWrapper.js +2 -2
  21. package/dist/index.js +19 -19
  22. package/dist/inputs/AddressInput.js +37 -36
  23. package/dist/inputs/ComboboxInput.js +1 -1
  24. package/dist/inputs/DatepickerInput.js +1 -1
  25. package/dist/inputs/EmailInput.js +1 -1
  26. package/dist/inputs/FileDropzoneInput.js +1 -1
  27. package/dist/inputs/ImageDropzoneInput.js +1 -1
  28. package/dist/inputs/PhoneInput.js +3 -3
  29. package/dist/inputs/RichTextInput.js +1 -1
  30. package/dist/inputs/SelectInput.js +1 -1
  31. package/dist/inputs/SelectTextInput.js +1 -1
  32. package/dist/inputs/SwitchInput.js +1 -1
  33. package/dist/inputs/SwitchInputGroup.js +1 -1
  34. package/dist/inputs/TagifyInput.js +1 -1
  35. package/dist/inputs/TextAreaInput.js +1 -1
  36. package/dist/inputs/TextInput.js +32 -27
  37. package/dist/src/components/forms/DynamicForm.d.ts +1 -1
  38. package/dist/src/components/inputs/SwitchInput.d.ts +1 -1
  39. package/dist/src/components/profile-inputs/BaseInformationInput.d.ts +6 -6
  40. package/dist/src/components/profile-inputs/NamesInput.d.ts +7 -4
  41. package/dist/src/composables/useCollectionEditor.d.ts +4 -2
  42. package/dist/src/composables/useFormValidation.d.ts +1 -1
  43. package/dist/src/types/core.d.ts +5 -5
  44. package/dist/src/utils/component-registry.d.ts +6 -2
  45. package/dist/src/views/components/index.d.ts +1 -1
  46. package/dist/src/views/index.d.ts +1 -0
  47. package/dist/src/views/inputs/index.d.ts +1 -0
  48. package/dist/style.css +1 -1
  49. package/dist/tabs/InlineTabs.js +1 -1
  50. package/dist/tabs/TabGroup.js +1 -1
  51. package/dist/tabs/TabGroupUnderline.js +1 -1
  52. package/dist/tabs/TabsInPills.js +1 -1
  53. package/dist/tabs/index.js +4 -4
  54. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { defineComponent as pe, inject as ye, onMounted as ve, ref as $, reactive as be, computed as K, watch as he, createElementBlock as G, openBlock as x, createVNode as y, unref as p, withCtx as C, createElementVNode as v, createCommentVNode as R, normalizeClass as I, createBlock as E, Fragment as xe, renderList as ke, toDisplayString as N, resolveDynamicComponent as we, createTextVNode as H } from "vue";
1
+ import { defineComponent as pe, inject as ve, onMounted as ye, ref as $, reactive as be, computed as K, watch as he, createElementBlock as G, openBlock as x, createVNode as v, unref as p, withCtx as C, createElementVNode as y, createCommentVNode as R, normalizeClass as I, createBlock as E, Fragment as xe, renderList as ke, toDisplayString as N, resolveDynamicComponent as we, createTextVNode as H } from "vue";
2
2
  import { i as Ce } from "../validation-Dzczp6MS.js";
3
3
  import { Combobox as Ie, ComboboxInput as Se, ComboboxButton as Ae, TransitionRoot as W, ComboboxOptions as ze, ComboboxOption as _e } from "@headlessui/vue";
4
4
  import { LockClosedIcon as $e, MagnifyingGlassIcon as Ke, CheckIcon as Ge, ChevronDownIcon as Oe, ChevronUpIcon as Te } from "@heroicons/vue/20/solid";
@@ -231,8 +231,8 @@ const Je = { class: "sl-address-input" }, Ye = { class: "sl-space-y-3" }, qe = {
231
231
  },
232
232
  emits: ["update:modelValue", "blur", "focus"],
233
233
  setup(e, { expose: a, emit: c }) {
234
- const r = e, i = c, f = Le(r.name || "address-input"), d = ye("googleMaps", void 0);
235
- ve(() => {
234
+ const r = e, i = c, f = Le(r.name || "address-input"), d = ve("googleMaps", void 0);
235
+ ye(() => {
236
236
  d?.apiKey && !Ve() && De({
237
237
  apiKey: d.apiKey,
238
238
  version: d.version,
@@ -400,7 +400,7 @@ const Je = { class: "sl-address-input" }, Ye = { class: "sl-space-y-3" }, qe = {
400
400
  meta: S,
401
401
  errorMessage: h
402
402
  }), (l, t) => (x(), G("div", Je, [
403
- y(Pe, {
403
+ v(Pe, {
404
404
  id: p(f),
405
405
  name: e.name,
406
406
  label: e.label,
@@ -410,11 +410,12 @@ const Je = { class: "sl-address-input" }, Ye = { class: "sl-space-y-3" }, qe = {
410
410
  "is-valid": p(S).valid,
411
411
  "is-touched": p(S).touched,
412
412
  disabled: e.disabled,
413
- optional: se.value
413
+ optional: se.value,
414
+ "show-valid-check": !1
414
415
  }, {
415
416
  default: C(() => [
416
- v("div", Ye, [
417
- y(p(Ie), {
417
+ y("div", Ye, [
418
+ v(p(Ie), {
418
419
  modelValue: z.value,
419
420
  "onUpdate:modelValue": [
420
421
  t[0] || (t[0] = (o) => z.value = o),
@@ -424,21 +425,21 @@ const Je = { class: "sl-address-input" }, Ye = { class: "sl-space-y-3" }, qe = {
424
425
  nullable: ""
425
426
  }, {
426
427
  default: C(() => [
427
- v("div", qe, [
428
- y(p(Se), {
428
+ y("div", qe, [
429
+ v(p(Se), {
429
430
  id: p(f),
430
431
  "display-value": ie,
431
432
  placeholder: e.placeholder || "Search for an address...",
432
433
  disabled: e.disabled,
433
434
  class: I([
434
- "sl-block sl-w-full sl-rounded-md sl-shadow-sm sl-ring-1 sl-ring-inset sl-py-1.5 sl-pl-3 sl-pr-10 sl-text-sm focus:sl-outline-none focus:sl-ring-2 focus:sl-ring-inset focus:sl-ring-stachelock-600",
435
+ "sl-block sl-w-full sl-rounded-md sl-shadow-sm sl-ring-1 sl-ring-inset sl-py-1.5 sl-pl-2 sl-pr-10 sl-text-sm sl-leading-6 focus:sl-outline-none focus:sl-ring-2 focus:sl-ring-inset focus:sl-ring-stachelock-600",
435
436
  e.disabled ? "sl-ring-gray-200 dark:sl-ring-slate-700 sl-bg-gray-50 dark:sl-bg-slate-800 sl-text-gray-500 dark:sl-text-slate-400 sl-cursor-not-allowed" : "sl-ring-gray-300 dark:sl-ring-slate-600 sl-bg-white dark:sl-bg-slate-800 sl-text-gray-900 dark:sl-text-slate-100 placeholder:sl-text-gray-400 dark:placeholder:sl-text-slate-500"
436
437
  ]),
437
438
  onChange: ne,
438
439
  onFocus: fe,
439
440
  onBlur: ge
440
441
  }, null, 8, ["id", "placeholder", "disabled", "class"]),
441
- y(p(Ae), { class: "sl-absolute sl-inset-y-0 sl-right-0 sl-flex sl-items-center sl-pr-2" }, {
442
+ v(p(Ae), { class: "sl-absolute sl-inset-y-0 sl-right-0 sl-flex sl-items-center sl-pr-2" }, {
442
443
  default: C(() => [
443
444
  e.disabled ? (x(), E(p($e), {
444
445
  key: 0,
@@ -452,7 +453,7 @@ const Je = { class: "sl-address-input" }, Ye = { class: "sl-space-y-3" }, qe = {
452
453
  ]),
453
454
  _: 1
454
455
  }),
455
- y(p(W), {
456
+ v(p(W), {
456
457
  leave: "sl-transition sl-ease-in sl-duration-100",
457
458
  "leave-from": "sl-opacity-100",
458
459
  "leave-to": "sl-opacity-0"
@@ -469,17 +470,17 @@ const Je = { class: "sl-address-input" }, Ye = { class: "sl-space-y-3" }, qe = {
469
470
  as: "template"
470
471
  }, {
471
472
  default: C(({ active: w, selected: Z }) => [
472
- v("li", {
473
+ y("li", {
473
474
  class: I([
474
475
  "sl-relative sl-cursor-pointer sl-select-none sl-py-2 sl-pl-10 sl-pr-4",
475
476
  w ? "sl-bg-stachelock-600 sl-text-white" : "sl-text-gray-900 dark:sl-text-slate-200"
476
477
  ])
477
478
  }, [
478
- v("div", et, [
479
- v("span", {
479
+ y("div", et, [
480
+ y("span", {
480
481
  class: I(["sl-block sl-truncate", Z ? "sl-font-medium" : "sl-font-normal"])
481
482
  }, N(o.mainText), 3),
482
- v("span", {
483
+ y("span", {
483
484
  class: I(["sl-text-xs", w ? "sl-text-stachelock-100" : "sl-text-gray-500 dark:sl-text-slate-400"])
484
485
  }, N(o.secondaryText), 3)
485
486
  ]),
@@ -490,7 +491,7 @@ const Je = { class: "sl-address-input" }, Ye = { class: "sl-space-y-3" }, qe = {
490
491
  w ? "sl-text-white" : "sl-text-stachelock-600 dark:sl-text-stachelock-400"
491
492
  ])
492
493
  }, [
493
- y(p(Ge), {
494
+ v(p(Ge), {
494
495
  class: "sl-h-5 sl-w-5",
495
496
  "aria-hidden": "true"
496
497
  })
@@ -510,8 +511,8 @@ const Je = { class: "sl-address-input" }, Ye = { class: "sl-space-y-3" }, qe = {
510
511
  _: 1
511
512
  }, 8, ["modelValue", "disabled"]),
512
513
  V.value && !e.disabled ? (x(), G("div", tt, [
513
- v("div", st, [
514
- v("span", {
514
+ y("div", st, [
515
+ y("span", {
515
516
  class: I(["sl-text-xs sl-uppercase sl-font-medium", j.value])
516
517
  }, N(ae.value), 3),
517
518
  (x(), E(we(oe.value), {
@@ -525,7 +526,7 @@ const Je = { class: "sl-address-input" }, Ye = { class: "sl-space-y-3" }, qe = {
525
526
  class: "sl-text-xs sl-text-gray-500 dark:sl-text-slate-400 hover:sl-underline sl-flex sl-items-center sl-gap-1"
526
527
  }, [
527
528
  t[10] || (t[10] = H(" Collapse ", -1)),
528
- y(p(Te), { class: "sl-h-3 sl-w-3" })
529
+ v(p(Te), { class: "sl-h-3 sl-w-3" })
529
530
  ])) : (x(), G("button", {
530
531
  key: 0,
531
532
  type: "button",
@@ -533,10 +534,10 @@ const Je = { class: "sl-address-input" }, Ye = { class: "sl-space-y-3" }, qe = {
533
534
  class: "sl-text-xs sl-text-stachelock-600 dark:sl-text-stachelock-400 hover:sl-underline sl-flex sl-items-center sl-gap-1"
534
535
  }, [
535
536
  t[9] || (t[9] = H(" Edit address ", -1)),
536
- y(p(Oe), { class: "sl-h-3 sl-w-3" })
537
+ v(p(Oe), { class: "sl-h-3 sl-w-3" })
537
538
  ]))
538
539
  ])) : R("", !0),
539
- y(p(W), {
540
+ v(p(W), {
540
541
  show: u.value && V.value && !e.disabled,
541
542
  enter: "sl-transition sl-ease-out sl-duration-200",
542
543
  "enter-from": "sl-opacity-0 sl-transform sl--translate-y-2",
@@ -546,9 +547,9 @@ const Je = { class: "sl-address-input" }, Ye = { class: "sl-space-y-3" }, qe = {
546
547
  "leave-to": "sl-opacity-0 sl-transform sl--translate-y-2"
547
548
  }, {
548
549
  default: C(() => [
549
- v("div", lt, [
550
- v("div", at, [
551
- y(O, {
550
+ y("div", lt, [
551
+ y("div", at, [
552
+ v(O, {
552
553
  name: `${e.name}_street`,
553
554
  label: "Street Address",
554
555
  value: s.street,
@@ -560,8 +561,8 @@ const Je = { class: "sl-address-input" }, Ye = { class: "sl-space-y-3" }, qe = {
560
561
  })
561
562
  }, null, 8, ["name", "value", "disabled"])
562
563
  ]),
563
- v("div", null, [
564
- y(O, {
564
+ y("div", null, [
565
+ v(O, {
565
566
  name: `${e.name}_suite`,
566
567
  label: "Suite / Apt",
567
568
  value: s.suite,
@@ -574,8 +575,8 @@ const Je = { class: "sl-address-input" }, Ye = { class: "sl-space-y-3" }, qe = {
574
575
  })
575
576
  }, null, 8, ["name", "value", "disabled"])
576
577
  ]),
577
- v("div", null, [
578
- y(O, {
578
+ y("div", null, [
579
+ v(O, {
579
580
  name: `${e.name}_city`,
580
581
  label: "City",
581
582
  value: s.city,
@@ -587,8 +588,8 @@ const Je = { class: "sl-address-input" }, Ye = { class: "sl-space-y-3" }, qe = {
587
588
  })
588
589
  }, null, 8, ["name", "value", "disabled"])
589
590
  ]),
590
- v("div", null, [
591
- y(O, {
591
+ y("div", null, [
592
+ v(O, {
592
593
  name: `${e.name}_state`,
593
594
  label: "State",
594
595
  value: s.state,
@@ -600,8 +601,8 @@ const Je = { class: "sl-address-input" }, Ye = { class: "sl-space-y-3" }, qe = {
600
601
  })
601
602
  }, null, 8, ["name", "value", "disabled"])
602
603
  ]),
603
- v("div", null, [
604
- y(O, {
604
+ y("div", null, [
605
+ v(O, {
605
606
  name: `${e.name}_zipcode`,
606
607
  label: "ZIP Code",
607
608
  value: s.zipcode,
@@ -613,8 +614,8 @@ const Je = { class: "sl-address-input" }, Ye = { class: "sl-space-y-3" }, qe = {
613
614
  })
614
615
  }, null, 8, ["name", "value", "disabled"])
615
616
  ]),
616
- v("div", null, [
617
- y(O, {
617
+ y("div", null, [
618
+ v(O, {
618
619
  name: `${e.name}_country`,
619
620
  label: "Country",
620
621
  value: s.country,
@@ -636,7 +637,7 @@ const Je = { class: "sl-address-input" }, Ye = { class: "sl-space-y-3" }, qe = {
636
637
  }, 8, ["id", "name", "label", "tertiary-label", "error-message", "success-message", "is-valid", "is-touched", "disabled", "optional"])
637
638
  ]));
638
639
  }
639
- }), bt = /* @__PURE__ */ Ne(ot, [["__scopeId", "data-v-b3950b26"]]);
640
+ }), bt = /* @__PURE__ */ Ne(ot, [["__scopeId", "data-v-fddceda1"]]);
640
641
  export {
641
642
  bt as default
642
643
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "../ComboboxInput.vue_vue_type_script_setup_true_lang-kHTj4Ju2.js";
1
+ import { _ as f } from "../ComboboxInput.vue_vue_type_script_setup_true_lang-Cy0Pl8Ap.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "../DatepickerInput.vue_vue_type_style_index_0_lang-DbI3619T.js";
1
+ import { _ as f } from "../DatepickerInput.vue_vue_type_style_index_0_lang-C_0dWHo6.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "../EmailInput.vue_vue_type_script_setup_true_lang-CWEfbsJ_.js";
1
+ import { _ as f } from "../EmailInput.vue_vue_type_script_setup_true_lang-59bDl9yw.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "../FileDropzoneInput.vue_vue_type_script_setup_true_lang-BJR-_ngq.js";
1
+ import { _ as f } from "../FileDropzoneInput.vue_vue_type_script_setup_true_lang-BC_qN5qn.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "../ImageDropzoneInput.vue_vue_type_script_setup_true_lang-7JWDfxD2.js";
1
+ import { _ as f } from "../ImageDropzoneInput.vue_vue_type_script_setup_true_lang-CsAclXd8.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -591,8 +591,8 @@ const ia = ["src", "alt"], ua = { class: "sl-font-medium" }, ca = { class: "sl-b
591
591
  disabled: a.disabled,
592
592
  "aria-describedby": xe.value,
593
593
  "aria-invalid": H.value,
594
- class: I(["sl-block sl-flex-1 sl-min-w-0 sl-border-0 sl-bg-transparent sl-py-2 sl-px-3 focus:sl-ring-0 focus:sl-outline-none sm:sl-text-sm sm:sl-leading-6", [
595
- a.disabled ? "sl-text-gray-400 dark:sl-text-gray-300 sl-cursor-not-allowed sl-placeholder:text-gray-300 dark:sl-placeholder:text-gray-500" : "sl-text-gray-800 dark:sl-text-gray-100 sl-placeholder:text-gray-400 dark:sl-placeholder:text-gray-400"
594
+ class: I(["sl-block sl-flex-1 sl-min-w-0 sl-border-0 sl-bg-transparent sl-py-1.5 sl-pl-2 sl-pr-3 focus:sl-ring-0 focus:sl-outline-none sm:sl-text-sm sm:sl-leading-6", [
595
+ a.disabled ? "sl-text-gray-400 dark:sl-text-gray-300 sl-cursor-not-allowed placeholder:sl-text-gray-300 dark:placeholder:sl-text-slate-500" : "sl-text-gray-800 dark:sl-text-gray-100 placeholder:sl-text-gray-400 dark:placeholder:sl-text-slate-500"
596
596
  ]]),
597
597
  onInput: Ee,
598
598
  onBlur: ke,
@@ -620,7 +620,7 @@ const ia = ["src", "alt"], ua = { class: "sl-font-medium" }, ca = { class: "sl-b
620
620
  _: 3
621
621
  }, 8, ["id", "name", "label", "optional", "error-message", "success-message", "is-valid", "is-touched", "show-errors", "show-valid-check", "tertiary-label", "disabled", "disabled-message", "colorful-validation"]));
622
622
  }
623
- }), Ra = /* @__PURE__ */ oa(ba, [["__scopeId", "data-v-efbeb626"]]);
623
+ }), Ra = /* @__PURE__ */ oa(ba, [["__scopeId", "data-v-6ecd71b7"]]);
624
624
  export {
625
625
  Ra as default
626
626
  };
@@ -423,7 +423,7 @@ const El = ["disabled"], Sl = ["disabled"], ql = ["disabled"], $l = ["disabled"]
423
423
  _: 1
424
424
  }, 8, ["id", "name", "label", "optional", "error-message", "is-valid", "is-touched", "show-errors", "tertiary-label", "disabled"]));
425
425
  }
426
- }), ye = /* @__PURE__ */ Ul(ie, [["__scopeId", "data-v-64b191e4"]]);
426
+ }), ye = /* @__PURE__ */ Ul(ie, [["__scopeId", "data-v-9b8f8825"]]);
427
427
  export {
428
428
  ye as default
429
429
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "../SelectInput.vue_vue_type_script_setup_true_lang-D9yg_rkV.js";
1
+ import { _ as f } from "../SelectInput.vue_vue_type_script_setup_true_lang-DEaP3bhC.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "../SelectTextInput.vue_vue_type_script_setup_true_lang-CtFVOrhm.js";
1
+ import { _ as f } from "../SelectTextInput.vue_vue_type_script_setup_true_lang-DYlrRigi.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "../SwitchInput.vue_vue_type_script_setup_true_lang-D5Es9AjF.js";
1
+ import { _ as f } from "../SwitchInput.vue_vue_type_script_setup_true_lang-r8ZwU1Zy.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "../SwitchInputGroup.vue_vue_type_script_setup_true_lang-DigNYqVZ.js";
1
+ import { _ as f } from "../SwitchInputGroup.vue_vue_type_script_setup_true_lang-PgsXeiig.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "../TagifyInput.vue_vue_type_script_setup_true_lang-BF2mK8JC.js";
1
+ import { _ as f } from "../TagifyInput.vue_vue_type_script_setup_true_lang-CwxJ2x1x.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "../TextAreaInput.vue_vue_type_script_setup_true_lang-Cf0MJobG.js";
1
+ import { _ as f } from "../TextAreaInput.vue_vue_type_script_setup_true_lang-Dtf7H1sT.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,11 +1,11 @@
1
- import { defineComponent as O, computed as z, ref as f, toRef as m, watch as h, nextTick as I, createElementBlock as S, openBlock as E, createVNode as T, unref as t, withCtx as n, renderSlot as p, createElementVNode as N, mergeProps as R } from "vue";
2
- import { useField as $ } from "vee-validate";
3
- import { debounce as L } from "lodash-es";
4
- import q from "../forms/FormFieldWrapper.js";
5
- import { g as A } from "../id-DafBB_QF.js";
6
- import { i as P } from "../validation-Dzczp6MS.js";
7
- import { _ as U } from "../_plugin-vue_export-helper-CHgC5LLL.js";
8
- const W = { class: "sl-form" }, j = ["name", "id", "type", "value", "placeholder", "spellcheck", "disabled"], D = /* @__PURE__ */ O({
1
+ import { defineComponent as O, computed as S, ref as f, toRef as m, watch as h, nextTick as z, createElementBlock as I, openBlock as E, createVNode as T, unref as t, createSlots as $, withCtx as u, renderSlot as p, createElementVNode as N, mergeProps as R } from "vue";
2
+ import { useField as L } from "vee-validate";
3
+ import { debounce as q } from "lodash-es";
4
+ import A from "../forms/FormFieldWrapper.js";
5
+ import { g as P } from "../id-DafBB_QF.js";
6
+ import { i as U } from "../validation-Dzczp6MS.js";
7
+ import { _ as W } from "../_plugin-vue_export-helper-CHgC5LLL.js";
8
+ const j = { class: "sl-form" }, D = ["name", "id", "type", "value", "placeholder", "spellcheck", "disabled"], G = /* @__PURE__ */ O({
9
9
  inheritAttrs: !1,
10
10
  __name: "TextInput",
11
11
  props: {
@@ -39,25 +39,25 @@ const W = { class: "sl-form" }, j = ["name", "id", "type", "value", "placeholder
39
39
  },
40
40
  emits: ["update:value", "focus", "blur", "error", "update:validity"],
41
41
  setup(e, { emit: v }) {
42
- const l = e, o = v, y = z(() => l.optional !== void 0 ? l.optional : P(l.rules)), r = f(!1), c = A(l.name || "text-input"), b = f(l.validateOnMount), { value: s, errorMessage: g, handleChange: w, meta: d, validate: x, setTouched: B } = $(m(l, "name"), m(l, "rules"), {
42
+ const l = e, o = v, y = S(() => l.optional !== void 0 ? l.optional : U(l.rules)), r = f(!1), c = P(l.name || "text-input"), b = f(l.validateOnMount), { value: s, errorMessage: g, handleChange: w, meta: d, validate: x, setTouched: k } = L(m(l, "name"), m(l, "rules"), {
43
43
  initialValue: l.value,
44
44
  validateOnValueUpdate: !l.lazy,
45
45
  validateOnMount: b.value
46
- }), u = (a) => o("update:value", a), k = L(u, 300);
46
+ }), n = (a) => o("update:value", a), B = q(n, 300);
47
47
  function V(a) {
48
48
  const i = a.target.value;
49
- l.lazy ? k(i) : u(i), w(l.transformFunction(i));
49
+ l.lazy ? B(i) : n(i), w(l.transformFunction(i));
50
50
  }
51
51
  async function M(a) {
52
- r.value || (r.value = !0, B(!0)), l.lazy && u(s.value), await x(), o("blur", a);
52
+ r.value || (r.value = !0, k(!0)), l.lazy && n(s.value), await x(), o("blur", a);
53
53
  }
54
54
  function C(a) {
55
55
  o("focus", a);
56
56
  }
57
- return h(() => d.valid, (a) => I(() => o("update:validity", a)), { immediate: !0 }), h(() => l.value, (a) => {
57
+ return h(() => d.valid, (a) => z(() => o("update:validity", a)), { immediate: !0 }), h(() => l.value, (a) => {
58
58
  a !== s.value && (s.value = a);
59
- }), (a, i) => (E(), S("div", W, [
60
- T(q, {
59
+ }), (a, i) => (E(), I("div", j, [
60
+ T(A, {
61
61
  id: t(c),
62
62
  name: e.name,
63
63
  label: e.label,
@@ -73,11 +73,8 @@ const W = { class: "sl-form" }, j = ["name", "id", "type", "value", "placeholder
73
73
  "disabled-message": e.disabledMessage,
74
74
  "box-shadow": e.boxShadow,
75
75
  optional: y.value
76
- }, {
77
- prefix: n(() => [
78
- p(a.$slots, "prefix", {}, void 0, !0)
79
- ]),
80
- default: n(({ inputClasses: F }) => [
76
+ }, $({
77
+ default: u(({ inputClasses: F }) => [
81
78
  N("input", R(a.$attrs, {
82
79
  name: e.name,
83
80
  id: t(c),
@@ -86,7 +83,7 @@ const W = { class: "sl-form" }, j = ["name", "id", "type", "value", "placeholder
86
83
  placeholder: e.placeholder,
87
84
  spellcheck: e.spellcheck,
88
85
  disabled: e.disabled,
89
- class: ["sl-block sl-w-full sl-bg-transparent placeholder:sl-text-gray-400 dark:placeholder:sl-text-gray-400 focus:sl-ring-0 focus:sl-outline-none sm:sl-text-sm sm:sl-leading-6", [
86
+ class: ["sl-block sl-w-full sl-bg-transparent placeholder:sl-text-gray-400 dark:placeholder:sl-text-slate-500 focus:sl-ring-0 focus:sl-outline-none sm:sl-text-sm sm:sl-leading-6", [
90
87
  F,
91
88
  "sl-py-1.5 sl-pl-2 sl-pr-2",
92
89
  { "sl-uppercase": e.capitalize },
@@ -98,16 +95,24 @@ const W = { class: "sl-form" }, j = ["name", "id", "type", "value", "placeholder
98
95
  onInput: V,
99
96
  onFocus: C,
100
97
  onBlur: M
101
- }), null, 16, j)
98
+ }), null, 16, D)
102
99
  ]),
103
- "input-right": n(() => [
100
+ "input-right": u(() => [
104
101
  p(a.$slots, "input-right", {}, void 0, !0)
105
102
  ]),
106
- _: 3
107
- }, 8, ["id", "name", "label", "tertiary-label", "error-message", "success-message", "is-valid", "is-touched", "show-errors", "show-valid-check", "colorful-validation", "disabled", "disabled-message", "box-shadow", "optional"])
103
+ _: 2
104
+ }, [
105
+ a.$slots.prefix ? {
106
+ name: "prefix",
107
+ fn: u(() => [
108
+ p(a.$slots, "prefix", {}, void 0, !0)
109
+ ]),
110
+ key: "0"
111
+ } : void 0
112
+ ]), 1032, ["id", "name", "label", "tertiary-label", "error-message", "success-message", "is-valid", "is-touched", "show-errors", "show-valid-check", "colorful-validation", "disabled", "disabled-message", "box-shadow", "optional"])
108
113
  ]));
109
114
  }
110
- }), Z = /* @__PURE__ */ U(D, [["__scopeId", "data-v-653ccf8c"]]);
115
+ }), _ = /* @__PURE__ */ W(G, [["__scopeId", "data-v-dfd8b221"]]);
111
116
  export {
112
- Z as default
117
+ _ as default
113
118
  };
@@ -47,7 +47,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
47
47
  values: FormData;
48
48
  }>;
49
49
  reset: () => void;
50
- setFieldValue: (fieldName: string, value: any) => void;
50
+ setFieldValue: (fieldName: string, value: unknown) => void;
51
51
  getFieldValue: (fieldName: string) => any;
52
52
  formData: FormData;
53
53
  formRef: import('vue').Ref<HTMLFormElement | undefined, HTMLFormElement | undefined>;
@@ -33,7 +33,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
33
33
  value: import('vue').Ref<boolean, boolean>;
34
34
  focus: () => void;
35
35
  blur: () => void;
36
- switchRef: import('vue').Ref<any, any>;
36
+ switchRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
37
37
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
38
38
  blur: (event: FocusEvent) => void;
39
39
  focus: (event: FocusEvent) => void;
@@ -7,7 +7,7 @@ export interface BaseInformationFieldType {
7
7
  type?: string;
8
8
  innerLabel?: string;
9
9
  hideLabel?: boolean;
10
- rules?: any;
10
+ rules?: unknown;
11
11
  position?: number;
12
12
  validateOnMount?: boolean;
13
13
  placeholder?: string;
@@ -21,8 +21,8 @@ export interface BaseInformationSchemaType {
21
21
  fields: BaseInformationFieldType[];
22
22
  }
23
23
  export interface BaseInformationDataType {
24
- [key: string]: any;
25
- profile_image?: any;
24
+ [key: string]: unknown;
25
+ profile_image?: string | File | null;
26
26
  email?: string;
27
27
  phone?: string;
28
28
  }
@@ -35,7 +35,7 @@ export interface ValidField {
35
35
  id: string;
36
36
  isValid: boolean;
37
37
  }
38
- type FormValuesType = Record<string, any>;
38
+ type FormValuesType = Record<string, unknown>;
39
39
  declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
40
40
  value: {
41
41
  type: PropType<BaseInformationDataType>;
@@ -68,9 +68,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
68
68
  results: FormValuesType;
69
69
  }>;
70
70
  validationSchema: import('vue').ComputedRef<import('yup').ObjectSchema<{
71
- [x: string]: any;
71
+ [x: string]: unknown;
72
72
  }, import('yup').AnyObject, {
73
- [x: string]: any;
73
+ [x: string]: undefined;
74
74
  }, "">>;
75
75
  errors: import('vue').ComputedRef<Partial<Record<string, string | undefined>>>;
76
76
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
@@ -6,11 +6,14 @@ export interface NamesFieldType {
6
6
  as?: string;
7
7
  type?: string;
8
8
  hideLabel?: boolean;
9
- rules?: any;
9
+ rules?: unknown;
10
10
  position?: number;
11
11
  validateOnMount?: boolean;
12
12
  placeholder?: string;
13
- items?: any[];
13
+ items?: Array<{
14
+ value: string;
15
+ label: string;
16
+ }>;
14
17
  itemKey?: string;
15
18
  itemText?: string;
16
19
  clearable?: boolean;
@@ -64,9 +67,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
64
67
  };
65
68
  }>;
66
69
  validationSchema: import('vue').ComputedRef<import('yup').ObjectSchema<{
67
- [x: string]: any;
70
+ [x: string]: unknown;
68
71
  }, import('yup').AnyObject, {
69
- [x: string]: any;
72
+ [x: string]: undefined;
70
73
  }, "">>;
71
74
  errors: import('vue').ComputedRef<Partial<Record<string, string | undefined>>>;
72
75
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
@@ -26,7 +26,9 @@ export interface CollectionEditorReturn<T extends CollectionItem> {
26
26
  /** Current form values */
27
27
  formValues: Ref<T>;
28
28
  /** Reference to the form component */
29
- formRef: Ref<any>;
29
+ formRef: Ref<{
30
+ submitForm?: () => void;
31
+ } | null>;
30
32
  /** Button attributes for add/save/delete */
31
33
  buttonAttributes: ComputedRef<CollectionButtonAttributes>;
32
34
  /** Whether delete confirmation modal should show */
@@ -61,5 +63,5 @@ export interface CollectionEditorReturn<T extends CollectionItem> {
61
63
  /**
62
64
  * Create a collection editor composable instance
63
65
  */
64
- export declare function useCollectionEditor<T extends CollectionItem>(options: CollectionEditorOptions<T>, emit: (event: string, ...args: any[]) => void): CollectionEditorReturn<T>;
66
+ export declare function useCollectionEditor<T extends CollectionItem>(options: CollectionEditorOptions<T>, emit: (event: string, ...args: unknown[]) => void): CollectionEditorReturn<T>;
65
67
  export default useCollectionEditor;
@@ -23,7 +23,7 @@ export interface UseFormValidationOptions {
23
23
  /**
24
24
  * Validation schema (Yup schema object)
25
25
  */
26
- schema?: ObjectSchema<any>;
26
+ schema?: ObjectSchema<Record<string, unknown>>;
27
27
  /**
28
28
  * Initial values for the form fields
29
29
  */
@@ -48,11 +48,11 @@ export interface FormValidationResult {
48
48
  /** Map of field names to error messages */
49
49
  errors: Record<string, string>;
50
50
  /** Current form values */
51
- values: Record<string, any>;
51
+ values: Record<string, unknown>;
52
52
  /** Source identifier for nested form aggregation */
53
53
  source?: string;
54
54
  /** Per-field validation results */
55
- results?: Record<string, any>;
55
+ results?: Record<string, unknown>;
56
56
  }
57
57
  /**
58
58
  * Base props shared by ALL input components.
@@ -153,7 +153,7 @@ export interface InputBaseProps {
153
153
  * const emit = defineEmits<InputEmits<string>>();
154
154
  * ```
155
155
  */
156
- export interface InputEmits<T = any> {
156
+ export interface InputEmits<T = unknown> {
157
157
  /**
158
158
  * Emitted when the input value changes.
159
159
  * Used for v-model binding.
@@ -427,7 +427,7 @@ export interface DynamicFormProps {
427
427
  /**
428
428
  * Initial form values.
429
429
  */
430
- formValues?: Record<string, any>;
430
+ formValues?: Record<string, unknown>;
431
431
  /**
432
432
  * Form identifier for debugging.
433
433
  * @default 'generic'
@@ -529,7 +529,7 @@ export interface NotificationConfig {
529
529
  */
530
530
  export interface CloudinaryTransformationStep {
531
531
  type: string;
532
- params?: Record<string, any>;
532
+ params?: Record<string, unknown>;
533
533
  }
534
534
  /**
535
535
  * Cloudinary asset configuration.
@@ -14,7 +14,9 @@ export declare class ComponentRegistry {
14
14
  /**
15
15
  * Register a new component type
16
16
  */
17
- register(type: string, component: string, loader: () => Promise<any>): void;
17
+ register(type: string, component: string, loader: () => Promise<{
18
+ default: Component;
19
+ }>): void;
18
20
  /**
19
21
  * Get a component for a field type
20
22
  */
@@ -40,7 +42,9 @@ export declare const componentRegistry: ComponentRegistry;
40
42
  /**
41
43
  * Register a component type globally
42
44
  */
43
- export declare function registerComponent(type: string, component: string, loader: () => Promise<any>): void;
45
+ export declare function registerComponent(type: string, component: string, loader: () => Promise<{
46
+ default: Component;
47
+ }>): void;
44
48
  /**
45
49
  * Get a component for a field type
46
50
  */
@@ -8,8 +8,8 @@ export { default as LoadingPage } from './LoadingPage';
8
8
  export { default as LottiePage } from './LottiePage';
9
9
  export { default as MenuPage } from './MenuPage';
10
10
  export { default as ModalPage } from './ModalPage';
11
+ export { default as ProfilePreviewPage } from './ProfilePreviewPage';
11
12
  export { default as ProgressPage } from './ProgressPage';
12
13
  export { default as RichTextInputPage } from './RichTextInputPage';
13
14
  export { default as TablePage } from './TablePage';
14
- export { default as TextInputPage } from './TextInputPage';
15
15
  export { default as TransitionPage } from './TransitionPage';
@@ -4,6 +4,7 @@ export { default as CardsShowcase } from './CardsShowcase';
4
4
  export { default as ChartsShowcase } from './ChartsShowcase';
5
5
  export { default as EmptyStatesShowcase } from './EmptyStatesShowcase';
6
6
  export { default as FormsShowcase } from './FormsShowcase';
7
+ export { default as InputPaddingTest } from './InputPaddingTest';
7
8
  export { default as InputsShowcase } from './InputsShowcase';
8
9
  export { default as KitchenSink } from './KitchenSink';
9
10
  export { default as LayoutsShowcase } from './LayoutsShowcase';