@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,7 +1,7 @@
1
1
  import { defineComponent as P, ref as v, computed as x, watch as D, onMounted as q, onUnmounted as J, createElementBlock as d, openBlock as c, createElementVNode as s, toDisplayString as u, createVNode as y, unref as C, createCommentVNode as S, renderSlot as M, Fragment as _, withCtx as $, createTextVNode as Q, Transition as X, withDirectives as Z, renderList as ee, normalizeClass as te, vShow as se } from "vue";
2
2
  import { ChevronLeftIcon as le, ChevronRightIcon as ae, EllipsisHorizontalIcon as re } from "@heroicons/vue/20/solid";
3
3
  import ne from "./components/Button.js";
4
- import { _ as oe } from "./SelectInput.vue_vue_type_script_setup_true_lang-D9yg_rkV.js";
4
+ import { _ as oe } from "./SelectInput.vue_vue_type_script_setup_true_lang-DEaP3bhC.js";
5
5
  import { t as h, p as A, b as ie, g as de, a as O } from "./calendar-DaXCwXP5.js";
6
6
  const ce = { class: "sl-flex sl-items-center sl-justify-between sl-border-b sl-border-gray-200 dark:sl-border-slate-700 sl-pl-6 sl-py-4 lg:sl-flex-none sl-bg-white dark:sl-bg-slate-900" }, ue = { class: "sl-text-base sl-font-semibold sl-leading-6 sl-text-gray-800 dark:sl-text-slate-200" }, ye = ["datetime"], me = { class: "sl-flex sl-items-center" }, ge = { class: "sl-relative sl-flex sl-items-center sl-rounded-md sl-bg-white dark:sl-bg-slate-800 sl-shadow-sm md:sl-items-stretch" }, ve = { class: "sl-sr-only" }, he = { class: "sl-sr-only" }, fe = { class: "sl-hidden md:sl-ml-4 md:sl-flex md:sl-items-center" }, be = { class: "sl-w-36" }, ke = { class: "sl-absolute sl-right-0 sl-z-10 sl-mt-3 sl-w-36 sl-origin-top-right sl-divide-y sl-divide-gray-100 dark:sl-divide-slate-700 sl-overflow-hidden sl-rounded-md sl-bg-white dark:sl-bg-slate-800 sl-shadow-lg sl-ring-1 sl-ring-black dark:sl-ring-slate-600 sl-ring-opacity-5 focus:sl-outline-none" }, we = {
7
7
  key: 0,
@@ -36,7 +36,7 @@ const ye = { class: "sl-w-full" }, he = { class: "sl-absolute sl-inset-y-0 sl-ri
36
36
  value: { type: [String, Number, Boolean, null, Object, Array] },
37
37
  boxShadow: { type: Boolean, default: !1 },
38
38
  clearable: { type: Boolean, default: !1 },
39
- showValidCheck: { type: Boolean, default: !0 },
39
+ showValidCheck: { type: Boolean, default: !1 },
40
40
  colorfulValidation: { type: Boolean, default: !0 }
41
41
  },
42
42
  emits: ["update:modelValue", "update:value", "update:query", "blur", "focus"],
@@ -71,10 +71,10 @@ const ye = { class: "sl-w-full" }, he = { class: "sl-absolute sl-inset-y-0 sl-ri
71
71
  "sl-w-full",
72
72
  "sl-border-none",
73
73
  "sl-py-1.5",
74
- "sl-pl-3",
74
+ "sl-pl-2",
75
75
  "sl-pr-10",
76
76
  "sl-text-sm",
77
- "sl-leading-5",
77
+ "sl-leading-6",
78
78
  "sl-text-gray-900",
79
79
  "dark:sl-text-slate-100",
80
80
  "placeholder:sl-text-gray-400",
@@ -61,7 +61,8 @@ const Be = {
61
61
  },
62
62
  showValidCheck: {
63
63
  type: Boolean,
64
- default: !0
64
+ default: !1
65
+ // Disabled by default since clear button or icon would overlap
65
66
  },
66
67
  successMessage: {
67
68
  type: String,
@@ -350,11 +351,11 @@ const Be = {
350
351
  const e = [
351
352
  "sl-block sl-w-full sl-rounded-md sl-border-0 sl-py-1.5",
352
353
  "sl-text-gray-800 dark:sl-text-gray-100 sl-shadow-sm sl-ring-1 sl-ring-inset",
353
- "placeholder:sl-text-gray-400 dark:placeholder:sl-text-gray-500 focus:sl-ring-2 focus:sl-ring-inset",
354
+ "placeholder:sl-text-gray-400 dark:placeholder:sl-text-slate-500 focus:sl-ring-2 focus:sl-ring-inset",
354
355
  "sm:sl-text-sm sm:sl-leading-6",
355
- "sl-bg-white dark:sl-bg-slate-900"
356
+ "sl-bg-white dark:sl-bg-slate-800"
356
357
  ];
357
- return a.icon ? e.push("sl-pl-10") : e.push("sl-pl-3"), a.clearable ? e.push("sl-pr-10") : e.push("sl-pr-3"), a.disabled ? e.push("sl-bg-gray-50 dark:sl-bg-slate-800 sl-text-gray-500 dark:sl-text-gray-300 sl-cursor-not-allowed sl-ring-gray-200 dark:sl-ring-slate-700") : h.value && (c.touched || a.showErrors) ? e.push("sl-ring-red-500 focus:sl-ring-red-500 sl-bg-red-50 dark:sl-bg-red-900/20") : (c.valid && c.touched, e.push("sl-ring-gray-300 dark:sl-ring-slate-600 focus:sl-ring-primary-600")), e.join(" ");
358
+ return a.icon ? e.push("sl-pl-10") : e.push("sl-pl-2"), a.clearable ? e.push("sl-pr-10") : e.push("sl-pr-3"), a.disabled ? e.push("sl-bg-gray-50 dark:sl-bg-slate-800 sl-text-gray-500 dark:sl-text-gray-300 sl-cursor-not-allowed sl-ring-gray-200 dark:sl-ring-slate-700") : h.value && (c.touched || a.showErrors) ? e.push("sl-ring-red-500 focus:sl-ring-red-500 sl-bg-red-50 dark:sl-bg-red-900/20") : (c.valid && c.touched, e.push("sl-ring-gray-300 dark:sl-ring-slate-600 focus:sl-ring-primary-600")), e.join(" ");
358
359
  }), S = d(() => {
359
360
  const e = {
360
361
  monthPicker: !1,
@@ -23,9 +23,9 @@ const j = { class: "sl-w-full" }, A = ["name", "id", "value", "placeholder", "au
23
23
  },
24
24
  emits: ["update:value", "update:validity", "focus", "blur", "submit"],
25
25
  setup(l, { expose: h, emit: v }) {
26
- const a = l, t = v, d = U(`sl-${a.name}`), r = M(!1), g = V(() => W(a.rules)), {
26
+ const a = l, t = v, d = U(`sl-${a.name}`), r = M(!1), b = V(() => W(a.rules)), {
27
27
  value: i,
28
- errorMessage: b,
28
+ errorMessage: g,
29
29
  handleBlur: p,
30
30
  handleChange: y,
31
31
  meta: u,
@@ -76,7 +76,7 @@ const j = { class: "sl-w-full" }, A = ["name", "id", "value", "placeholder", "au
76
76
  name: l.name,
77
77
  label: l.label,
78
78
  "tertiary-label": l.tertiaryLabel,
79
- "error-message": s(b),
79
+ "error-message": s(g),
80
80
  "success-message": l.successMessage,
81
81
  "is-valid": s(u).valid,
82
82
  "is-touched": s(u).touched,
@@ -85,7 +85,7 @@ const j = { class: "sl-w-full" }, A = ["name", "id", "value", "placeholder", "au
85
85
  "colorful-validation": l.colorfulValidation,
86
86
  disabled: l.disabled,
87
87
  "disabled-message": l.disabledMessage,
88
- optional: g.value
88
+ optional: b.value
89
89
  }, {
90
90
  default: f(({ inputClasses: C }) => [
91
91
  N("input", {
@@ -96,7 +96,7 @@ const j = { class: "sl-w-full" }, A = ["name", "id", "value", "placeholder", "au
96
96
  placeholder: l.placeholder,
97
97
  autocomplete: l.autoComplete,
98
98
  disabled: l.disabled,
99
- class: T(["sl-block sl-w-full sl-bg-transparent sl-text-gray-900 dark:sl-text-gray-100 placeholder:sl-text-gray-400 dark:placeholder:sl-text-gray-500 focus:sl-ring-0 focus:sl-outline-none sm:sl-text-sm sm:sl-leading-6", [
99
+ class: T(["sl-block sl-w-full sl-bg-transparent sl-text-gray-900 dark:sl-text-gray-100 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", [
100
100
  C,
101
101
  "sl-py-1.5 sl-pl-2",
102
102
  { "sl-text-gray-400": l.disabled },
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as X, ref as g, computed as k, createElementBlock as p, openBlock as m, Fragment as F, createElementVNode as a, createCommentVNode as C, withModifiers as f, normalizeClass as w, createVNode as x, renderSlot as _, unref as h, createTextVNode as N, toDisplayString as v, renderList as A } from "vue";
2
2
  import { CloudArrowUpIcon as $, DocumentIcon as G, XMarkIcon as L } from "@heroicons/vue/24/outline";
3
- const O = { class: "sl-flex sl-flex-col sl-items-center sl-justify-center sl-py-5" }, W = { class: "sl-text-xs sl-text-gray-400 dark:sl-text-slate-300" }, R = {
3
+ const O = { class: "sl-flex sl-flex-col sl-items-center sl-justify-center sl-py-5" }, W = { class: "sl-text-xs sl-text-gray-400 dark:sl-text-slate-400" }, R = {
4
4
  key: 0,
5
5
  class: "sl-mt-4 sl-w-full sl-px-4"
6
6
  }, U = { class: "sl-flex sl-flex-wrap sl-gap-2 sl-justify-center" }, J = { class: "sl-text-xs sl-text-gray-600 dark:sl-text-slate-200 sl-truncate sl-max-w-[120px]" }, Z = ["onClick"], q = ["accept", "multiple", "disabled"], H = {
@@ -1,28 +1,28 @@
1
- import { defineComponent as G, ref as p, computed as F, onMounted as H, watch as J, createElementBlock as u, openBlock as r, createCommentVNode as f, withDirectives as v, toDisplayString as y, createElementVNode as o, normalizeClass as A, createVNode as b, withCtx as R, renderSlot as K, vShow as x, Fragment as Q, renderList as Z, mergeProps as E, unref as $, createBlock as w } from "vue";
2
- import { XCircleIcon as ee, PhotoIcon as B } from "@heroicons/vue/24/solid";
3
- import { _ as N } from "./FileDropzoneInput.vue_vue_type_script_setup_true_lang-BJR-_ngq.js";
4
- import I from "./components/CloudinaryImage.js";
1
+ import { defineComponent as H, ref as y, computed as w, onMounted as J, watch as K, createElementBlock as u, openBlock as o, createCommentVNode as f, withDirectives as v, toDisplayString as m, createElementVNode as r, normalizeClass as A, createVNode as b, withCtx as L, renderSlot as Q, createTextVNode as Z, vShow as x, Fragment as ee, renderList as le, mergeProps as N, unref as U, createBlock as D } from "vue";
2
+ import { XCircleIcon as se, PhotoIcon as B } from "@heroicons/vue/24/solid";
3
+ import { _ as R } from "./FileDropzoneInput.vue_vue_type_script_setup_true_lang-BC_qN5qn.js";
4
+ import V from "./components/CloudinaryImage.js";
5
5
  import O from "./components/LoadingDots.js";
6
- const le = { class: "sl-space-y-2" }, se = {
6
+ const te = { class: "sl-space-y-2" }, ae = {
7
7
  key: 0,
8
8
  class: "sl-grid sl-grid-cols-3 sl-items-center"
9
- }, te = {
9
+ }, re = {
10
10
  key: 0,
11
11
  for: "dropzone-file",
12
12
  class: "sl-text-sm sl-col-span-2 sl-text-gray-700 dark:sl-text-gray-200"
13
- }, ae = {
13
+ }, oe = {
14
14
  key: 1,
15
15
  class: "sl-text-xs sl-text-gray-400 dark:sl-text-gray-500 sl-col-start-3 sl-text-right"
16
- }, re = {
16
+ }, ie = {
17
17
  key: 2,
18
18
  class: "sl-text-xs sl-uppercase sl-text-gray-500 dark:sl-text-gray-400 sl-truncate sl-text-right sl-font-semibold sl-justify-self-end sl-col-start-3"
19
- }, oe = { class: "sl-w-full" }, ie = ["onClick"], ne = { class: "sl-absolute sl-inset-0 sl-flex sl-items-center sl-justify-center sl-z-10 sl-bg-black sl-bg-opacity-50 sl-transition-opacity sl-duration-200" }, ue = { class: "sl-absolute sl-inset-0 sl-z-30 sl-flex sl-items-center sl-justify-center sl-bg-primary-50 dark:sl-bg-primary-900/30 sl-bg-opacity-95 sl-border-2 sl-border-dashed sl-border-primary-400 sl-rounded-lg sl-transition-opacity sl-duration-200" }, de = { class: "sl-text-center" }, ce = { class: "sl-mt-2 sl-text-sm sl-font-medium sl-text-primary-600 dark:sl-text-primary-400" }, fe = { class: "sl-w-full" }, me = { key: 2 }, ge = { class: "sl-flex sl-items-center sl-p-4 sl-bg-gray-50 dark:sl-bg-slate-800 sl-rounded-lg" }, pe = { class: "sl-flex-shrink-0" }, ye = {
19
+ }, ne = { class: "sl-w-full" }, ue = { class: "sl-text-xs sl-text-gray-400 dark:sl-text-slate-400" }, de = ["onClick"], ce = { class: "sl-absolute sl-inset-0 sl-flex sl-items-center sl-justify-center sl-z-10 sl-bg-black sl-bg-opacity-50 sl-transition-opacity sl-duration-200" }, fe = { class: "sl-absolute sl-inset-0 sl-z-30 sl-flex sl-items-center sl-justify-center sl-bg-primary-50 dark:sl-bg-primary-900/30 sl-bg-opacity-95 sl-border-2 sl-border-dashed sl-border-primary-400 sl-rounded-lg sl-transition-opacity sl-duration-200" }, me = { class: "sl-text-center" }, pe = { class: "sl-mt-2 sl-text-sm sl-font-medium sl-text-primary-600 dark:sl-text-primary-400" }, ge = { class: "sl-w-full" }, ye = { key: 2 }, ve = { class: "sl-flex sl-items-center sl-p-4 sl-bg-gray-50 dark:sl-bg-slate-800 sl-rounded-lg" }, be = { class: "sl-flex-shrink-0" }, xe = {
20
20
  key: 1,
21
21
  class: "sl-h-16 sl-w-16 sl-rounded-full sl-bg-gray-200 dark:sl-bg-slate-700 sl-flex sl-items-center sl-justify-center"
22
- }, ve = { class: "sl-ml-4 sl-text-left" }, be = { class: "sl-text-sm sl-font-medium sl-text-gray-700 dark:sl-text-gray-200" }, xe = { class: "sl-text-xs sl-text-gray-500 dark:sl-text-gray-400" }, he = { class: "sl-absolute sl-inset-2 sl-z-20 sl-flex sl-items-center sl-justify-center sl-bg-gray-50 dark:sl-bg-slate-800 sl-bg-opacity-95 sl-text-gray-600 dark:sl-text-gray-300 sl-transition-opacity sl-duration-200 sl-rounded-md" }, ke = { class: "sl-absolute sl-inset-x-0 sl-top-0 sl-bottom-1 sl-z-20 sl-flex sl-items-center sl-justify-center sl-bg-gray-50 dark:sl-bg-slate-800 sl-bg-opacity-95 sl-text-gray-600 dark:sl-text-gray-300 sl-transition-opacity sl-duration-200 sl-rounded-lg" }, we = { class: "sl-absolute sl-inset-0 sl-z-30 sl-flex sl-items-center sl-justify-center sl-bg-primary-50 dark:sl-bg-primary-900/30 sl-bg-opacity-95 sl-border-2 sl-border-dashed sl-border-primary-400 sl-rounded-lg sl-transition-opacity sl-duration-200" }, De = { class: "sl-text-center" }, ze = { class: "sl-mt-2 sl-text-sm sl-font-medium sl-text-primary-600 dark:sl-text-primary-400" }, je = {
22
+ }, he = { class: "sl-ml-4 sl-text-left" }, ke = { class: "sl-text-sm sl-font-medium sl-text-gray-700 dark:sl-text-gray-200" }, we = { class: "sl-text-xs sl-text-gray-500 dark:sl-text-gray-400" }, De = { class: "sl-absolute sl-inset-2 sl-z-20 sl-flex sl-items-center sl-justify-center sl-bg-gray-50 dark:sl-bg-slate-800 sl-bg-opacity-95 sl-text-gray-600 dark:sl-text-gray-300 sl-transition-opacity sl-duration-200 sl-rounded-md" }, ze = { class: "sl-absolute sl-inset-x-0 sl-top-0 sl-bottom-1 sl-z-20 sl-flex sl-items-center sl-justify-center sl-bg-gray-50 dark:sl-bg-slate-800 sl-bg-opacity-95 sl-text-gray-600 dark:sl-text-gray-300 sl-transition-opacity sl-duration-200 sl-rounded-lg" }, Fe = { class: "sl-absolute sl-inset-0 sl-z-30 sl-flex sl-items-center sl-justify-center sl-bg-primary-50 dark:sl-bg-primary-900/30 sl-bg-opacity-95 sl-border-2 sl-border-dashed sl-border-primary-400 sl-rounded-lg sl-transition-opacity sl-duration-200" }, Me = { class: "sl-text-center" }, je = { class: "sl-mt-2 sl-text-sm sl-font-medium sl-text-primary-600 dark:sl-text-primary-400" }, Se = {
23
23
  key: 3,
24
24
  class: "sl-mt-2 sl-text-sm sl-text-red-600 dark:sl-text-red-400"
25
- }, Ue = /* @__PURE__ */ G({
25
+ }, Ve = /* @__PURE__ */ H({
26
26
  __name: "ImageDropzoneInput",
27
27
  props: {
28
28
  /** Current image value(s) */
@@ -144,37 +144,37 @@ const le = { class: "sl-space-y-2" }, se = {
144
144
  }
145
145
  },
146
146
  emits: ["update:modelValue", "update:media", "clear:media"],
147
- setup(t, { expose: q, emit: W }) {
148
- const s = t, D = W, a = p([]), i = p("empty"), m = p(!1), h = p(!1), k = p(!1), d = p(!1), z = p(""), j = p(!1), M = p(!0), S = F(() => s.disabled || h.value), X = F(() => i.value === "loading" ? "Please be patient while we upload your file" : i.value === "uploaded" && a.value[0]?.created_at ? `Uploaded ${new Date(a.value[0].created_at).toLocaleDateString()}` : "Click to replace"), Y = F(() => {
147
+ setup(t, { expose: X, emit: q }) {
148
+ const s = t, z = q, a = y([]), i = y("empty"), p = y(!1), h = y(!1), k = y(!1), c = y(!1), F = y(""), M = y(!1), j = y(!0), S = w(() => s.disabled || h.value), W = w(() => s.acceptedFormats.map((e) => e.split("/")[1]?.toUpperCase() || e).join(", ")), Y = w(() => i.value === "loading" ? "Please be patient while we upload your file" : i.value === "uploaded" && a.value[0]?.created_at ? `Uploaded ${new Date(a.value[0].created_at).toLocaleDateString()}` : "Click to replace"), G = w(() => {
149
149
  if (!a.value[0]?.original_file_name) return "Image";
150
150
  const e = a.value[0].original_file_name, l = 20;
151
151
  if (e.length <= l) return e;
152
152
  const n = e.lastIndexOf("."), g = n !== -1 ? e.substring(n) : "";
153
153
  return (n !== -1 ? e.substring(0, n) : e).substring(0, l - 3 - g.length) + "..." + g;
154
- }), V = F(() => {
154
+ }), I = w(() => {
155
155
  const e = "sl-border-2 sl-border-dashed sl-shadow-sm sl-ring-1 sl-ring-inset focus-within:sl-ring-2 focus-within:sl-ring-inset focus-within:sl-ring-primary-600 sl-transition-all sl-duration-200";
156
- return !s.colorfulValidation || !j.value && !s.showErrors ? `${e} sl-border-gray-300 dark:sl-border-slate-600 sl-ring-gray-300 dark:sl-ring-slate-600` : M.value && j.value && s.colorfulValidation ? `${e} sl-border-green-500 sl-ring-green-500` : !M.value && s.colorfulValidation && (j.value || s.showErrors) ? `${e} sl-border-red-500 sl-ring-red-500` : `${e} sl-border-gray-300 dark:sl-border-slate-600 sl-ring-gray-300 dark:sl-ring-slate-600`;
157
- }), U = async (e) => {
156
+ return !s.colorfulValidation || !M.value && !s.showErrors ? `${e} sl-border-gray-300 dark:sl-border-slate-600 sl-ring-gray-300 dark:sl-ring-slate-600` : j.value && M.value && s.colorfulValidation ? `${e} sl-border-green-500 sl-ring-green-500` : !j.value && s.colorfulValidation && (M.value || s.showErrors) ? `${e} sl-border-red-500 sl-ring-red-500` : `${e} sl-border-gray-300 dark:sl-border-slate-600 sl-ring-gray-300 dark:sl-ring-slate-600`;
157
+ }), $ = async (e) => {
158
158
  if (!(s.onBeforeUpload && s.onBeforeUpload()))
159
159
  try {
160
- h.value = !0, j.value = !0, z.value = "";
160
+ h.value = !0, M.value = !0, F.value = "";
161
161
  const l = Array.from(e), n = s.enableMultiple ? l : [l[0]];
162
162
  for (const g of n) {
163
163
  i.value = "loading";
164
164
  try {
165
- const c = await s.onUpload(g, s.presetType, s.projectId);
166
- if (c) {
167
- s.enableMultiple ? a.value.push(c) : a.value = [c], i.value = "uploaded", M.value = !0, D("update:modelValue", s.enableMultiple ? a.value : a.value[0]);
168
- const L = {
169
- cloudinaryAsset: c,
165
+ const d = await s.onUpload(g, s.presetType, s.projectId);
166
+ if (d) {
167
+ s.enableMultiple ? a.value.push(d) : a.value = [d], i.value = "uploaded", j.value = !0, z("update:modelValue", s.enableMultiple ? a.value : a.value[0]);
168
+ const E = {
169
+ cloudinaryAsset: d,
170
170
  presetType: s.presetType,
171
171
  projectId: s.projectId
172
172
  };
173
- D("update:media", L);
173
+ z("update:media", E);
174
174
  } else
175
175
  throw new Error("Upload failed - no response");
176
- } catch (c) {
177
- console.error("Upload error:", c), z.value = c.message || "Upload failed", i.value = "error", M.value = !1;
176
+ } catch (d) {
177
+ console.error("Upload error:", d), F.value = (d instanceof Error ? d.message : null) || "Upload failed", i.value = "error", j.value = !1;
178
178
  }
179
179
  }
180
180
  } catch (l) {
@@ -189,57 +189,61 @@ const le = { class: "sl-space-y-2" }, se = {
189
189
  const l = e.currentTarget.getBoundingClientRect(), n = e.clientX, g = e.clientY;
190
190
  (n < l.left || n > l.right || g < l.top || g > l.bottom) && (k.value = !1);
191
191
  }, _ = async (e) => {
192
- if (e.preventDefault(), e.stopPropagation(), k.value = !1, d.value = !0, e.dataTransfer?.files && e.dataTransfer.files.length > 0)
192
+ if (e.preventDefault(), e.stopPropagation(), k.value = !1, c.value = !0, e.dataTransfer?.files && e.dataTransfer.files.length > 0)
193
193
  try {
194
- await U(e.dataTransfer.files);
194
+ await $(e.dataTransfer.files);
195
195
  } finally {
196
- d.value = !1;
196
+ c.value = !1;
197
197
  }
198
198
  else
199
- d.value = !1;
199
+ c.value = !1;
200
200
  }, C = async (e) => {
201
201
  try {
202
- h.value = !0, e && s.deleteFileFromCloudinary && s.onDelete && await s.onDelete(e), e && D("clear:media", e);
202
+ h.value = !0, e && s.deleteFileFromCloudinary && s.onDelete && await s.onDelete(e), e && z("clear:media", e);
203
203
  } catch (l) {
204
204
  console.error(l);
205
205
  } finally {
206
- i.value = "empty", a.value = [], h.value = !1, D("update:modelValue", null);
206
+ i.value = "empty", a.value = [], h.value = !1, z("update:modelValue", null);
207
207
  }
208
208
  };
209
- return H(() => {
209
+ return J(() => {
210
210
  s.modelValue && (a.value = Array.isArray(s.modelValue) ? s.modelValue : [s.modelValue], i.value = "inherited");
211
- }), J(
211
+ }), K(
212
212
  () => s.modelValue,
213
213
  (e) => {
214
214
  e ? (a.value = Array.isArray(e) ? e : [e], i.value = "inherited") : (i.value = "empty", a.value = []);
215
215
  },
216
216
  { immediate: !0 }
217
- ), q({
217
+ ), X({
218
218
  clearImage: C,
219
219
  imageInputStatus: i,
220
220
  uploadResponse: a
221
- }), (e, l) => (r(), u("div", le, [
222
- t.label || t.tertiaryLabel ? (r(), u("div", se, [
223
- t.label ? (r(), u("label", te, y(t.label), 1)) : f("", !0),
224
- S.value && t.disabledMessage ? (r(), u("p", ae, y(t.disabledMessage), 1)) : f("", !0),
225
- t.tertiaryLabel && !S.value ? (r(), u("span", re, y(t.tertiaryLabel), 1)) : f("", !0)
221
+ }), (e, l) => (o(), u("div", te, [
222
+ t.label || t.tertiaryLabel ? (o(), u("div", ae, [
223
+ t.label ? (o(), u("label", re, m(t.label), 1)) : f("", !0),
224
+ S.value && t.disabledMessage ? (o(), u("p", oe, m(t.disabledMessage), 1)) : f("", !0),
225
+ t.tertiaryLabel && !S.value ? (o(), u("span", ie, m(t.tertiaryLabel), 1)) : f("", !0)
226
226
  ])) : f("", !0),
227
- v(o("div", {
227
+ v(r("div", {
228
228
  class: A(["sl-flex sl-items-center sl-justify-center sl-w-full", { "sl-h-screen": t.fullSize, "sl-mt-2": t.label }])
229
229
  }, [
230
- o("div", oe, [
231
- b(N, {
230
+ r("div", ne, [
231
+ b(R, {
232
232
  "enable-multiple": t.enableMultiple,
233
- "onUpdate:files": U,
233
+ "onUpdate:files": $,
234
234
  "accepted-formats": t.acceptedFormats,
235
235
  "maximum-file-size": t.maximumFileSize,
236
236
  disabled: S.value,
237
- "ring-classes": V.value,
237
+ "ring-classes": I.value,
238
238
  height: "md"
239
239
  }, {
240
- default: R(() => [
241
- K(e.$slots, "empty-state", {}, () => [
242
- l[8] || (l[8] = o("p", { class: "sl-text-sm sl-text-gray-500 dark:sl-text-gray-400" }, " Click to upload or drag and drop your files here. ", -1))
240
+ default: L(() => [
241
+ Q(e.$slots, "empty-state", {}, () => [
242
+ l[8] || (l[8] = r("p", { class: "sl-mb-2 sl-text-sm sl-text-gray-500 dark:sl-text-slate-300" }, [
243
+ r("span", { class: "sl-font-semibold" }, "Click to upload"),
244
+ Z(" or drag and drop ")
245
+ ], -1)),
246
+ r("p", ue, m(W.value) + " (MAX. " + m(t.maximumFileSize) + "MB) ", 1)
243
247
  ])
244
248
  ]),
245
249
  _: 3
@@ -248,146 +252,146 @@ const le = { class: "sl-space-y-2" }, se = {
248
252
  ], 2), [
249
253
  [x, i.value === "empty"]
250
254
  ]),
251
- a.value && Array.isArray(a.value) && a.value.length > 1 ? (r(), u("div", {
255
+ a.value && Array.isArray(a.value) && a.value.length > 1 ? (o(), u("div", {
252
256
  key: 1,
253
257
  class: A(["sl-flex sl-flex-wrap sl--mx-2", { "sl-mt-2": t.label }])
254
258
  }, [
255
- (r(!0), u(Q, null, Z(a.value, (n, g) => (r(), u("div", {
259
+ (o(!0), u(ee, null, le(a.value, (n, g) => (o(), u("div", {
256
260
  key: g,
257
261
  class: "sl-p-2 sl-relative sl-group",
258
262
  onDragover: T,
259
263
  onDragleave: P,
260
264
  onDrop: _
261
265
  }, [
262
- o("button", {
266
+ r("button", {
263
267
  type: "button",
264
- onClick: (c) => C(n.public_id),
265
- onMouseenter: l[0] || (l[0] = (c) => m.value = !0),
266
- onMouseleave: l[1] || (l[1] = (c) => m.value = !1),
268
+ onClick: (d) => C(n.public_id),
269
+ onMouseenter: l[0] || (l[0] = (d) => p.value = !0),
270
+ onMouseleave: l[1] || (l[1] = (d) => p.value = !1),
267
271
  class: "sl-relative sl-rounded-lg sl-overflow-hidden focus:sl-outline-none focus:sl-ring-2 focus:sl-ring-primary-500",
268
272
  "aria-label": "Remove image"
269
273
  }, [
270
- b(I, E({
274
+ b(V, N({
271
275
  "public-id": n.public_id
272
276
  }, { ref_for: !0 }, t.cloudinaryImageProps, { class: "sl-transition-transform sl-duration-200 group-hover:sl-scale-105 sl-w-full sl-h-full sl-object-cover" }), null, 16, ["public-id"]),
273
- v(o("span", ne, [
274
- b($(ee), { class: "sl-h-10 sl-w-10 sl-text-red-600" })
277
+ v(r("span", ce, [
278
+ b(U(se), { class: "sl-h-10 sl-w-10 sl-text-red-600" })
275
279
  ], 512), [
276
- [x, m.value]
280
+ [x, p.value]
277
281
  ])
278
- ], 40, ie),
279
- v(o("div", ue, [
280
- o("div", de, [
281
- d.value ? f("", !0) : (r(), w($(B), {
282
+ ], 40, de),
283
+ v(r("div", fe, [
284
+ r("div", me, [
285
+ c.value ? f("", !0) : (o(), D(U(B), {
282
286
  key: 0,
283
287
  class: "sl-mx-auto sl-h-12 sl-w-12 sl-text-primary-400"
284
288
  })),
285
- d.value ? (r(), w(O, {
289
+ c.value ? (o(), D(O, {
286
290
  key: 1,
287
291
  size: "sm"
288
292
  })) : f("", !0),
289
- o("p", ce, y(d.value ? "Uploading..." : "Drop to replace"), 1)
293
+ r("p", pe, m(c.value ? "Uploading..." : "Drop to replace"), 1)
290
294
  ])
291
295
  ], 512), [
292
- [x, k.value || d.value]
296
+ [x, k.value || c.value]
293
297
  ])
294
298
  ], 32))), 128)),
295
- i.value === "uploaded" && t.enableMultiple ? (r(), u("div", {
299
+ i.value === "uploaded" && t.enableMultiple ? (o(), u("div", {
296
300
  key: 0,
297
301
  class: A(["sl-flex sl-items-center sl-justify-center sl-w-full", { "sl-h-screen": t.fullSize }])
298
302
  }, [
299
- o("div", fe, [
300
- b(N, {
303
+ r("div", ge, [
304
+ b(R, {
301
305
  "enable-multiple": t.enableMultiple,
302
- "onUpdate:files": U,
306
+ "onUpdate:files": $,
303
307
  "accepted-formats": t.acceptedFormats,
304
308
  "maximum-file-size": t.maximumFileSize,
305
309
  disabled: S.value,
306
- "ring-classes": V.value,
310
+ "ring-classes": I.value,
307
311
  height: "sm"
308
312
  }, {
309
- default: R(() => [...l[9] || (l[9] = [
310
- o("p", { class: "sl-text-sm sl-text-gray-500 dark:sl-text-gray-400" }, "Add more images", -1)
313
+ default: L(() => [...l[9] || (l[9] = [
314
+ r("p", { class: "sl-text-sm sl-text-gray-500 dark:sl-text-gray-400" }, "Add more images", -1)
311
315
  ])]),
312
316
  _: 1
313
317
  }, 8, ["enable-multiple", "accepted-formats", "maximum-file-size", "disabled", "ring-classes"])
314
318
  ])
315
319
  ], 2)) : f("", !0)
316
- ], 2)) : (r(), u("div", me, [
317
- i.value === "uploaded" || i.value === "loading" || i.value === "inherited" ? (r(), u("div", {
320
+ ], 2)) : (o(), u("div", ye, [
321
+ i.value === "uploaded" || i.value === "loading" || i.value === "inherited" ? (o(), u("div", {
318
322
  key: 0,
319
323
  class: "sl-relative sl-mt-2",
320
324
  onDragover: T,
321
325
  onDragleave: P,
322
326
  onDrop: _
323
327
  }, [
324
- t.isAvatar ? (r(), u("button", {
328
+ t.isAvatar ? (o(), u("button", {
325
329
  key: 0,
326
330
  type: "button",
327
331
  onClick: l[2] || (l[2] = (n) => C(a.value[0]?.public_id)),
328
- onMouseenter: l[3] || (l[3] = (n) => m.value = !0),
329
- onMouseleave: l[4] || (l[4] = (n) => m.value = !1),
332
+ onMouseenter: l[3] || (l[3] = (n) => p.value = !0),
333
+ onMouseleave: l[4] || (l[4] = (n) => p.value = !1),
330
334
  class: "sl-w-full focus:sl-outline-none focus:sl-ring-2 focus:sl-ring-primary-600 focus:sl-ring-offset-2 sl-rounded-lg sl-overflow-hidden sl-transition-all sl-duration-200",
331
335
  "aria-label": "Replace avatar"
332
336
  }, [
333
- o("div", ge, [
334
- o("div", pe, [
335
- a.value[0]?.public_id && i.value !== "loading" ? (r(), w(I, {
337
+ r("div", ve, [
338
+ r("div", be, [
339
+ a.value[0]?.public_id && i.value !== "loading" ? (o(), D(V, {
336
340
  key: 0,
337
341
  "public-id": a.value[0].public_id,
338
342
  width: 64,
339
343
  height: 64,
340
344
  class: "sl-h-16 sl-w-16 sl-rounded-full sl-object-cover",
341
345
  skeleton: "user"
342
- }, null, 8, ["public-id"])) : (r(), u("div", ye, [
343
- b($(B), { class: "sl-h-8 sl-w-8 sl-text-gray-400 dark:sl-text-gray-500" })
346
+ }, null, 8, ["public-id"])) : (o(), u("div", xe, [
347
+ b(U(B), { class: "sl-h-8 sl-w-8 sl-text-gray-400 dark:sl-text-gray-500" })
344
348
  ]))
345
349
  ]),
346
- o("div", ve, [
347
- o("p", be, y(i.value === "loading" ? "Uploading..." : Y.value), 1),
348
- o("p", xe, y(i.value === "loading" ? "Please wait..." : X.value), 1)
350
+ r("div", he, [
351
+ r("p", ke, m(i.value === "loading" ? "Uploading..." : G.value), 1),
352
+ r("p", we, m(i.value === "loading" ? "Please wait..." : Y.value), 1)
349
353
  ])
350
354
  ]),
351
- v(o("span", he, " Replace ", 512), [
352
- [x, m.value]
355
+ v(r("span", De, " Replace ", 512), [
356
+ [x, p.value]
353
357
  ])
354
- ], 32)) : (r(), u("button", {
358
+ ], 32)) : (o(), u("button", {
355
359
  key: 1,
356
360
  type: "button",
357
361
  onClick: l[5] || (l[5] = (n) => C(a.value[0]?.public_id)),
358
- onMouseenter: l[6] || (l[6] = (n) => m.value = !0),
359
- onMouseleave: l[7] || (l[7] = (n) => m.value = !1),
362
+ onMouseenter: l[6] || (l[6] = (n) => p.value = !0),
363
+ onMouseleave: l[7] || (l[7] = (n) => p.value = !1),
360
364
  class: "sl-w-full focus:sl-outline-none focus:sl-ring-2 focus:sl-ring-primary-600 focus:sl-ring-offset-2 sl-rounded-lg sl-overflow-hidden sl-transition-all sl-duration-200",
361
365
  "aria-label": "Replace image"
362
366
  }, [
363
- b(I, E({
367
+ b(V, N({
364
368
  "public-id": a.value[0]?.public_id
365
369
  }, t.cloudinaryImageProps, { class: "sl-transition-transform sl-duration-200 group-hover:sl-scale-105 sl-w-full sl-h-full sl-object-cover" }), null, 16, ["public-id"]),
366
- v(o("span", ke, " Replace ", 512), [
367
- [x, m.value]
370
+ v(r("span", ze, " Replace ", 512), [
371
+ [x, p.value]
368
372
  ])
369
373
  ], 32)),
370
- v(o("div", we, [
371
- o("div", De, [
372
- d.value ? f("", !0) : (r(), w($(B), {
374
+ v(r("div", Fe, [
375
+ r("div", Me, [
376
+ c.value ? f("", !0) : (o(), D(U(B), {
373
377
  key: 0,
374
378
  class: "sl-mx-auto sl-h-12 sl-w-12 sl-text-primary-400"
375
379
  })),
376
- d.value ? (r(), w(O, {
380
+ c.value ? (o(), D(O, {
377
381
  key: 1,
378
382
  size: "sm"
379
383
  })) : f("", !0),
380
- o("p", ze, y(d.value ? "Uploading..." : "Drop to replace"), 1)
384
+ r("p", je, m(c.value ? "Uploading..." : "Drop to replace"), 1)
381
385
  ])
382
386
  ], 512), [
383
- [x, k.value || d.value]
387
+ [x, k.value || c.value]
384
388
  ])
385
389
  ], 32)) : f("", !0)
386
390
  ])),
387
- z.value ? (r(), u("p", je, y(z.value), 1)) : f("", !0)
391
+ F.value ? (o(), u("p", Se, m(F.value), 1)) : f("", !0)
388
392
  ]));
389
393
  }
390
394
  });
391
395
  export {
392
- Ue as _
396
+ Ve as _
393
397
  };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as w, createElementBlock as s, openBlock as t, createCommentVNode as n, createElementVNode as r, createVNode as I, unref as l, toDisplayString as d, Fragment as c, renderList as u, normalizeClass as h, withModifiers as V, createTextVNode as N, renderSlot as b } from "vue";
2
- import { _ as S } from "./SelectInput.vue_vue_type_script_setup_true_lang-D9yg_rkV.js";
2
+ import { _ as S } from "./SelectInput.vue_vue_type_script_setup_true_lang-DEaP3bhC.js";
3
3
  import { u as $ } from "./useSimpleTabs-CSgkChEU.js";
4
4
  const B = { class: "sl-w-full" }, M = {
5
5
  key: 0,
@@ -1,15 +1,15 @@
1
- import { defineComponent as K, watch as L, onBeforeUnmount as Y, ref as O, computed as p, createElementBlock as d, openBlock as r, createVNode as u, unref as n, withCtx as m, createElementVNode as c, createBlock as w, normalizeClass as h, createCommentVNode as v, resolveDynamicComponent as U, toDisplayString as g, withModifiers as D, Teleport as Z, Transition as _, normalizeStyle as ee, Fragment as le, renderList as te } from "vue";
1
+ import { defineComponent as K, watch as L, onBeforeUnmount as Y, ref as O, computed as p, createElementBlock as d, openBlock as r, createVNode as u, unref as n, withCtx as m, createElementVNode as c, createBlock as w, normalizeClass as g, createCommentVNode as v, resolveDynamicComponent as U, toDisplayString as h, withModifiers as D, Teleport as Z, Transition as _, normalizeStyle as ee, Fragment as le, renderList as te } from "vue";
2
2
  import { Listbox as se, ListboxButton as ae, ListboxOptions as ne, ListboxOption as oe } from "@headlessui/vue";
3
3
  import { XMarkIcon as re, ChevronUpDownIcon as ie, CheckIcon as ue } from "@heroicons/vue/20/solid";
4
4
  import { useField as de } from "vee-validate";
5
5
  import ce from "./forms/FormFieldWrapper.js";
6
6
  import { g as me } from "./id-DafBB_QF.js";
7
- const pe = { class: "sl-w-full" }, ve = { class: "sl-relative" }, fe = { class: "sl-flex sl-items-center sl-gap-2" }, he = {
7
+ const pe = { class: "sl-w-full" }, ve = { class: "sl-relative" }, fe = { class: "sl-flex sl-items-center sl-gap-2" }, ge = {
8
8
  key: 1,
9
9
  class: "sl-block sl-truncate sl-text-left"
10
- }, ge = {
10
+ }, he = {
11
11
  key: 2,
12
- class: "sl-block sl-truncate sl-text-left sl-text-gray-500 dark:sl-text-slate-300"
12
+ class: "sl-block sl-truncate sl-text-left sl-text-gray-400 dark:sl-text-slate-500"
13
13
  }, ye = { class: "sl-absolute sl-inset-y-0 sl-right-0 sl-flex sl-items-center sl-pr-2 sl-gap-1" }, be = { class: "sl-block sl-truncate sl-font-medium" }, xe = { class: "sl-flex sl-items-center sl-gap-2" }, ke = {
14
14
  key: 0,
15
15
  class: "sl-absolute sl-inset-y-0 sl-right-0 sl-flex sl-items-center sl-pr-4"
@@ -113,10 +113,11 @@ const pe = { class: "sl-w-full" }, ve = { class: "sl-relative" }, fe = { class:
113
113
  "sl-text-gray-900",
114
114
  "dark:sl-text-slate-100",
115
115
  "sl-py-1.5",
116
- "sl-pl-3",
116
+ "sl-pl-2",
117
117
  "sl-pr-10",
118
118
  "sl-text-left",
119
119
  "sl-text-sm",
120
+ "sl-leading-6",
120
121
  "sl-outline-none",
121
122
  "dark:sl-outline-none",
122
123
  "focus:sl-outline-none",
@@ -182,7 +183,7 @@ const pe = { class: "sl-w-full" }, ve = { class: "sl-relative" }, fe = { class:
182
183
  "show-valid-check": !1
183
184
  }, {
184
185
  "success-message": m(() => [
185
- a.successMessage ? (r(), d("span", we, g(a.successMessage), 1)) : v("", !0)
186
+ a.successMessage ? (r(), d("span", we, h(a.successMessage), 1)) : v("", !0)
186
187
  ]),
187
188
  default: m(() => [
188
189
  u(n(se), {
@@ -204,7 +205,7 @@ const pe = { class: "sl-w-full" }, ve = { class: "sl-relative" }, fe = { class:
204
205
  ref_key: "listboxButtonRef",
205
206
  ref: I,
206
207
  id: n(E),
207
- class: h([
208
+ class: g([
208
209
  q.value,
209
210
  a.buttonClass
210
211
  ]),
@@ -217,7 +218,7 @@ const pe = { class: "sl-w-full" }, ve = { class: "sl-relative" }, fe = { class:
217
218
  class: "sl-h-4 sl-w-4 sl-flex-shrink-0",
218
219
  "aria-hidden": "true"
219
220
  })) : v("", !0),
220
- P.value ? (r(), d("span", he, g(P.value), 1)) : (r(), d("span", ge, g(a.placeholder || "Select an option"), 1))
221
+ P.value ? (r(), d("span", ge, h(P.value), 1)) : (r(), d("span", he, h(a.placeholder || "Select an option"), 1))
221
222
  ]),
222
223
  c("span", ye, [
223
224
  J.value ? (r(), d("button", {
@@ -261,12 +262,12 @@ const pe = { class: "sl-w-full" }, ve = { class: "sl-relative" }, fe = { class:
261
262
  onMousedown: l[1] || (l[1] = D(() => {
262
263
  }, ["prevent"])),
263
264
  onClick: D(X, ["prevent", "stop"]),
264
- class: h([
265
+ class: g([
265
266
  "sl-relative sl-cursor-pointer sl-select-none sl-py-2 sl-pl-3 sl-pr-9 sl-text-gray-900 dark:sl-text-slate-200",
266
267
  "hover:sl-bg-stachelock-600 hover:sl-text-white"
267
268
  ])
268
269
  }, [
269
- c("span", be, g(R.value ? "Unselect All" : "Select All"), 1)
270
+ c("span", be, h(R.value ? "Unselect All" : "Select All"), 1)
270
271
  ], 32)) : v("", !0),
271
272
  (r(!0), d(le, null, te(a.items, (i) => (r(), w(n(oe), {
272
273
  key: S(i),
@@ -276,7 +277,7 @@ const pe = { class: "sl-w-full" }, ve = { class: "sl-relative" }, fe = { class:
276
277
  }, {
277
278
  default: m(({ active: f, selected: M }) => [
278
279
  c("li", {
279
- class: h([
280
+ class: g([
280
281
  "sl-relative sl-cursor-default sl-select-none sl-py-2 sl-pl-3 sl-pr-9",
281
282
  f ? "sl-bg-stachelock-600 sl-text-white" : "sl-text-gray-900 dark:sl-text-slate-200",
282
283
  i.disabled ? "sl-opacity-50 sl-cursor-not-allowed" : ""
@@ -285,15 +286,15 @@ const pe = { class: "sl-w-full" }, ve = { class: "sl-relative" }, fe = { class:
285
286
  c("div", xe, [
286
287
  i.icon ? (r(), w(U(i.icon), {
287
288
  key: 0,
288
- class: h(["sl-h-4 sl-w-4 sl-flex-shrink-0", f ? "sl-text-white" : "sl-text-gray-400 dark:sl-text-slate-300"]),
289
+ class: g(["sl-h-4 sl-w-4 sl-flex-shrink-0", f ? "sl-text-white" : "sl-text-gray-400 dark:sl-text-slate-300"]),
289
290
  "aria-hidden": "true"
290
291
  }, null, 8, ["class"])) : v("", !0),
291
292
  c("span", {
292
- class: h([
293
+ class: g([
293
294
  "sl-block sl-truncate",
294
295
  M ? "sl-font-medium" : "sl-font-normal"
295
296
  ])
296
- }, g(V(i)), 3)
297
+ }, h(V(i)), 3)
297
298
  ]),
298
299
  M ? (r(), d("span", ke, [
299
300
  u(n(ue), {