@stachelock/ui 0.6.14 → 0.6.16

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 (64) hide show
  1. package/dist/BaseInformationInput-DmtT4C7P.js +4 -0
  2. package/dist/BaseInformationInput.vue_vue_type_script_setup_true_lang-B-qW4F69.js +154 -0
  3. package/dist/{DynamicForm.vue_vue_type_script_setup_true_lang-DMtVUXUN.js → DynamicForm.vue_vue_type_script_setup_true_lang-D8QXRuSo.js} +1 -1
  4. package/dist/{DynamicFormField.vue_vue_type_script_setup_true_lang-DSq31jjH.js → DynamicFormField.vue_vue_type_script_setup_true_lang-DVoVGq7g.js} +86 -38
  5. package/dist/NamesInput-DHs3Gie7.js +4 -0
  6. package/dist/NamesInput.vue_vue_type_script_setup_true_lang-BO54mB4C.js +195 -0
  7. package/dist/NavigationItem.vue_vue_type_script_setup_true_lang-a6F3LQ_P.js +56 -0
  8. package/dist/ScreenSizeSelector.vue_vue_type_script_setup_true_lang-FINxrVod.js +183 -0
  9. package/dist/UiMapAll.vue_vue_type_script_setup_true_lang-DKcK0HmT.js +501 -0
  10. package/dist/charts/BaseChart.js +76 -56
  11. package/dist/charts/chartTheme.js +199 -60
  12. package/dist/charts/index.js +30 -27
  13. package/dist/components/Button.js +109 -89
  14. package/dist/composables/index.js +41 -32
  15. package/dist/composables/useMap.js +1 -1
  16. package/dist/forms/DynamicForm.js +1 -1
  17. package/dist/forms/DynamicFormField.js +1 -1
  18. package/dist/index.js +2268 -1856
  19. package/dist/layouts/DashboardLayout.js +218 -2
  20. package/dist/layouts/NavigationItem.js +1 -1
  21. package/dist/maps/UiMap.js +167 -150
  22. package/dist/maps/UiMapAll.js +1 -1
  23. package/dist/maps/UiMapMarker.js +227 -118
  24. package/dist/maps/index.js +1 -1
  25. package/dist/src/components/UiProgressBar.d.ts +1 -1
  26. package/dist/src/components/UiRadialProgressBar.d.ts +1 -1
  27. package/dist/src/components/charts/chartTheme.d.ts +53 -0
  28. package/dist/src/components/formatters/DateFormatter.d.ts +1 -1
  29. package/dist/src/components/index.d.ts +1 -0
  30. package/dist/src/components/inputs/DatepickerInput.d.ts +4 -4
  31. package/dist/src/components/layouts/DashboardLayout.d.ts +80 -18
  32. package/dist/src/components/layouts/ShowcaseCard.d.ts +1 -0
  33. package/dist/src/components/layouts/UiDetailPanel.d.ts +65 -0
  34. package/dist/src/components/layouts/UiSplitPanelLayout.d.ts +96 -0
  35. package/dist/src/components/layouts/index.d.ts +2 -0
  36. package/dist/src/components/maps/UiMap.d.ts +13 -2
  37. package/dist/src/components/maps/UiMapAll.d.ts +13 -0
  38. package/dist/src/components/maps/UiMapMarker.d.ts +47 -10
  39. package/dist/src/components/modals/UiSlideOver.d.ts +104 -0
  40. package/dist/src/components/modals/index.d.ts +1 -0
  41. package/dist/src/components/palettes/UiCommandPalette.d.ts +166 -0
  42. package/dist/src/components/palettes/index.d.ts +1 -0
  43. package/dist/src/components/wrappers/BreakpointWrapper.d.ts +36 -0
  44. package/dist/src/components/wrappers/ResponsivePreviewWrapper.d.ts +85 -0
  45. package/dist/src/components/wrappers/ScreenSizeSelector.d.ts +74 -0
  46. package/dist/src/components/wrappers/index.d.ts +3 -0
  47. package/dist/src/composables/index.d.ts +1 -0
  48. package/dist/src/composables/useScreenSize.d.ts +131 -0
  49. package/dist/src/types/form.d.ts +24 -1
  50. package/dist/src/types/index.d.ts +1 -0
  51. package/dist/src/types/layouts.d.ts +42 -0
  52. package/dist/src/types/palettes.d.ts +134 -0
  53. package/dist/src/views/components/index.d.ts +2 -0
  54. package/dist/src/views/index.d.ts +5 -1
  55. package/dist/src/views/layouts/index.d.ts +3 -1
  56. package/dist/style.css +1 -1
  57. package/dist/useMap-CM59TKX6.js +318 -0
  58. package/dist/useScreenSize-Kr6cn5Zr.js +104 -0
  59. package/dist/wrappers/index.js +10 -6
  60. package/package.json +1 -1
  61. package/dist/DashboardLayout.vue_vue_type_script_setup_true_lang-BAx4gKqh.js +0 -239
  62. package/dist/NavigationItem.vue_vue_type_script_setup_true_lang-C8aX-84Q.js +0 -56
  63. package/dist/UiMapAll.vue_vue_type_script_setup_true_lang-11yT7mTH.js +0 -471
  64. package/dist/useMap-BGg0H582.js +0 -297
@@ -1,9 +1,9 @@
1
- import { defineComponent as G, defineAsyncComponent as H, computed as l, ref as L, onMounted as J, nextTick as I, watch as K, createElementBlock as t, openBlock as o, normalizeStyle as Q, normalizeClass as n, createCommentVNode as d, createElementVNode as X, renderSlot as u, Fragment as Y, createVNode as m, unref as c, toDisplayString as Z } from "vue";
2
- import { _ as ee } from "../_plugin-vue_export-helper-CHgC5LLL.js";
3
- const se = ["disabled", "data-theme", "data-outlined"], le = { class: "sl-absolute sl-top-0 sl-right-0 sl-transform sl-translate-x-1/2 -sl-translate-y-1/2" }, re = {
1
+ import { defineComponent as G, defineAsyncComponent as J, computed as r, ref as x, onMounted as K, nextTick as z, watch as Q, createElementBlock as o, openBlock as t, normalizeStyle as X, normalizeClass as n, createCommentVNode as u, createElementVNode as Y, renderSlot as g, Fragment as Z, createVNode as w, unref as y, toDisplayString as ee } from "vue";
2
+ import { _ as se } from "../_plugin-vue_export-helper-CHgC5LLL.js";
3
+ const le = ["disabled", "data-theme", "data-outlined"], re = { class: "sl-absolute sl-top-0 sl-right-0 sl-transform sl-translate-x-1/2 -sl-translate-y-1/2" }, oe = {
4
4
  key: 0,
5
5
  class: "sl-ml-2"
6
- }, te = "sl-flex sl-items-center sl-flex-shrink-0", z = "sl-absolute sl-right-2 sl-top-1/2 -sl-translate-y-1/2 sl-flex sl-items-center sl-flex-shrink-0", oe = /* @__PURE__ */ G({
6
+ }, te = "sl-flex sl-items-center sl-flex-shrink-0", S = "sl-absolute sl-right-2 sl-top-1/2 -sl-translate-y-1/2 sl-flex sl-items-center sl-flex-shrink-0", ne = /* @__PURE__ */ G({
7
7
  __name: "UiButton",
8
8
  props: {
9
9
  replaceLeadingIconWithLoading: { type: Boolean, default: !1 },
@@ -30,39 +30,39 @@ const se = ["disabled", "data-theme", "data-outlined"], le = { class: "sl-absolu
30
30
  inlineFlex: { type: Boolean, default: !1 }
31
31
  },
32
32
  emits: ["button-click", "hover-enter", "hover-leave"],
33
- setup(p, { emit: S }) {
34
- const b = H(() => import("./Loading.js")), e = p, h = S, g = l(() => !!e.loading), y = l(() => e.replaceLeadingIconWithLoading || !1), x = L(null), f = L(e.theme ?? "primary"), _ = (s) => {
33
+ setup(C, { emit: _ }) {
34
+ const h = J(() => import("./Loading.js")), e = C, v = _, c = r(() => !!e.loading), m = r(() => e.replaceLeadingIconWithLoading || !1), B = x(null), f = x(e.theme ?? "primary"), M = (s) => {
35
35
  for (; s && s !== document.documentElement; ) {
36
- const r = window.getComputedStyle(s).backgroundColor;
37
- if (r && r !== "rgba(0, 0, 0, 0)" && r !== "transparent")
38
- return r;
36
+ const l = window.getComputedStyle(s).backgroundColor;
37
+ if (l && l !== "rgba(0, 0, 0, 0)" && l !== "transparent")
38
+ return l;
39
39
  s = s.parentElement;
40
40
  }
41
41
  return null;
42
- }, w = () => {
42
+ }, L = () => {
43
43
  if (!e.autoContrast) return;
44
- const s = x.value;
44
+ const s = B.value;
45
45
  if (!s) return;
46
- const r = _(s.parentElement);
47
- if (!r) return;
48
- window.getComputedStyle(s).backgroundColor === r && (f.value = f.value === "light" ? "primary" : "light");
46
+ const l = M(s.parentElement);
47
+ if (!l) return;
48
+ window.getComputedStyle(s).backgroundColor === l && (f.value = f.value === "light" ? "primary" : "light");
49
49
  };
50
- J(() => {
51
- I(w);
52
- }), K(
50
+ K(() => {
51
+ z(L);
52
+ }), Q(
53
53
  () => e.theme,
54
54
  (s) => {
55
- f.value = s || "primary", I(w);
55
+ f.value = s || "primary", z(L);
56
56
  },
57
57
  { immediate: !1 }
58
58
  );
59
- const i = l(() => f.value), C = l(() => e.loadingSize || e.size || "md"), v = l(() => {
59
+ const i = r(() => f.value), I = r(() => e.loadingSize || e.size || "md"), k = r(() => {
60
60
  const s = ["primary", "dark", "danger", "success", "warning"];
61
61
  return !e.outlined && s.includes(i.value) ? "light" : i.value;
62
- }), M = l(() => {
62
+ }), j = r(() => {
63
63
  const s = ["primary", "dark", "danger", "success", "warning"];
64
64
  return !e.outlined && s.includes(i.value) ? "sl-bg-black/20" : "sl-bg-white/75 dark:sl-bg-slate-900/75";
65
- }), j = l(() => {
65
+ }), T = r(() => {
66
66
  const s = {
67
67
  primary: "sl-text-stachelock-600 dark:sl-text-stachelock-400 sl-border sl-border-stachelock-600 dark:sl-border-stachelock-500 hover:sl-bg-stachelock-50 dark:hover:sl-bg-stachelock-900/30 hover:sl-border-stachelock-400 focus:sl-outline-none focus:sl-ring-2 focus:sl-ring-stachelock-300 dark:focus:sl-ring-stachelock-600 focus:sl-ring-offset-2 focus:sl-ring-offset-white dark:focus:sl-ring-offset-slate-900",
68
68
  dark: "sl-text-gray-700 dark:sl-text-gray-300 sl-border sl-border-gray-700 dark:sl-border-gray-500 hover:sl-bg-gray-50 dark:hover:sl-bg-gray-800 hover:sl-border-gray-800 focus:sl-outline-none focus:sl-ring-2 focus:sl-ring-gray-300 dark:focus:sl-ring-gray-600 focus:sl-ring-offset-2 focus:sl-ring-offset-white dark:focus:sl-ring-offset-slate-900",
@@ -72,46 +72,46 @@ const se = ["disabled", "data-theme", "data-outlined"], le = { class: "sl-absolu
72
72
  danger: "sl-text-red-500 dark:sl-text-red-400 sl-border sl-border-red-500 dark:sl-border-red-500 hover:sl-bg-red-50 dark:hover:sl-bg-red-900/20 hover:sl-border-red-400 focus:sl-outline-none focus:sl-ring-2 focus:sl-ring-red-300 dark:focus:sl-ring-red-600 focus:sl-ring-offset-2 focus:sl-ring-offset-white dark:focus:sl-ring-offset-slate-900",
73
73
  success: "sl-text-green-500 dark:sl-text-green-400 sl-border sl-border-green-500 dark:sl-border-green-500 hover:sl-bg-green-50 dark:hover:sl-bg-green-900/20 hover:sl-border-green-400 focus:sl-outline-none focus:sl-ring-2 focus:sl-ring-green-300 dark:focus:sl-ring-green-600 focus:sl-ring-offset-2 focus:sl-ring-offset-white dark:focus:sl-ring-offset-slate-900",
74
74
  ghost: "sl-text-gray-800 dark:sl-text-gray-200 sl-border sl-border-transparent sl-bg-transparent hover:sl-text-gray-700 dark:hover:sl-text-white hover:sl-bg-gray-100 dark:hover:sl-bg-slate-700 focus:sl-outline-none"
75
- }, r = {
75
+ }, l = {
76
76
  primary: "sl-border sl-border-transparent sl-text-white sl-shadow-sm focus:sl-outline-none focus:sl-ring-2 focus:sl-ring-offset-2 focus:sl-ring-offset-white dark:focus:sl-ring-offset-slate-900",
77
- dark: "sl-border sl-border-transparent sl-bg-gray-700 dark:sl-bg-gray-600 sl-text-white sl-shadow-sm hover:sl-bg-gray-800 dark:hover:sl-bg-gray-500 focus:sl-outline-none focus:sl-ring-2 focus:sl-ring-gray-500 focus:sl-ring-offset-2 focus:sl-ring-offset-white dark:focus:sl-ring-offset-slate-900",
77
+ dark: "sl-border sl-border-transparent sl-bg-gray-700 dark:sl-bg-gray-600 sl-text-white sl-shadow-sm hover:sl-bg-gray-600 dark:hover:sl-bg-gray-500 focus:sl-outline-none focus:sl-ring-2 focus:sl-ring-gray-500 focus:sl-ring-offset-2 focus:sl-ring-offset-white dark:focus:sl-ring-offset-slate-900",
78
78
  secondary: "sl-text-gray-800 dark:sl-text-gray-200 sl-bg-gray-200 dark:sl-bg-slate-700 hover:sl-bg-gray-100 dark:hover:sl-bg-slate-600 focus:sl-outline-none focus:sl-ring-2 focus:sl-ring-gray-300 dark:focus:sl-ring-slate-500 focus:sl-ring-offset-2 focus:sl-ring-offset-white dark:focus:sl-ring-offset-slate-900 sl-border sl-border-gray-300 dark:sl-border-slate-600",
79
79
  light: "sl-text-gray-800 dark:sl-text-gray-200 sl-bg-gray-200 dark:sl-bg-slate-700 hover:sl-bg-gray-100 dark:hover:sl-bg-slate-600 focus:sl-outline-none focus:sl-ring-2 focus:sl-ring-gray-300 dark:focus:sl-ring-slate-500 focus:sl-ring-offset-2 focus:sl-ring-offset-white dark:focus:sl-ring-offset-slate-900 sl-border sl-border-gray-300 dark:sl-border-slate-600",
80
- warning: "sl-border sl-border-transparent sl-bg-yellow-400 dark:sl-bg-yellow-500 sl-text-white sl-shadow-sm hover:sl-bg-yellow-600 dark:hover:sl-bg-yellow-600 focus:sl-outline-none focus:sl-ring-2 focus:sl-ring-yellow-400 focus:sl-ring-offset-2 focus:sl-ring-offset-white dark:focus:sl-ring-offset-slate-900",
81
- danger: "sl-border sl-border-transparent sl-bg-red-500 dark:sl-bg-red-600 sl-text-white sl-shadow-sm hover:sl-bg-red-600 dark:hover:sl-bg-red-700 focus:sl-outline-none focus:sl-ring-2 focus:sl-ring-red-400 focus:sl-ring-offset-2 focus:sl-ring-offset-white dark:focus:sl-ring-offset-slate-900",
82
- success: "sl-border sl-border-transparent sl-bg-green-500 dark:sl-bg-green-600 sl-text-white sl-shadow-sm hover:sl-bg-green-600 dark:hover:sl-bg-green-700 focus:sl-outline-none focus:sl-ring-2 focus:sl-ring-green-400 focus:sl-ring-offset-2 focus:sl-ring-offset-white dark:focus:sl-ring-offset-slate-900",
80
+ warning: "sl-border sl-border-transparent sl-bg-yellow-500 dark:sl-bg-yellow-500 sl-text-white sl-shadow-sm hover:sl-bg-yellow-400 dark:hover:sl-bg-yellow-400 focus:sl-outline-none focus:sl-ring-2 focus:sl-ring-yellow-400 focus:sl-ring-offset-2 focus:sl-ring-offset-white dark:focus:sl-ring-offset-slate-900",
81
+ danger: "sl-border sl-border-transparent sl-bg-red-500 dark:sl-bg-red-600 sl-text-white sl-shadow-sm hover:sl-bg-red-400 dark:hover:sl-bg-red-500 focus:sl-outline-none focus:sl-ring-2 focus:sl-ring-red-400 focus:sl-ring-offset-2 focus:sl-ring-offset-white dark:focus:sl-ring-offset-slate-900",
82
+ success: "sl-border sl-border-transparent sl-bg-green-500 dark:sl-bg-green-600 sl-text-white sl-shadow-sm hover:sl-bg-green-400 dark:hover:sl-bg-green-500 focus:sl-outline-none focus:sl-ring-2 focus:sl-ring-green-400 focus:sl-ring-offset-2 focus:sl-ring-offset-white dark:focus:sl-ring-offset-slate-900",
83
83
  ghost: "sl-border sl-border-transparent sl-text-gray-800 dark:sl-text-gray-200 sl-bg-transparent hover:sl-text-gray-700 dark:hover:sl-text-white hover:sl-bg-gray-100 dark:hover:sl-bg-slate-700 focus:sl-outline-none"
84
84
  };
85
- return e.outlined ? `${s[i.value] || ""} sl-bg-transparent dark:sl-bg-transparent` : r[i.value] || "";
86
- }), T = {
85
+ return e.outlined ? `${s[i.value] || ""} sl-bg-transparent dark:sl-bg-transparent` : l[i.value] || "";
86
+ }), O = {
87
87
  square: "",
88
88
  rounded: "sl-rounded",
89
89
  "rounded-md": "sl-rounded-md",
90
90
  "rounded-lg": "sl-rounded-lg",
91
91
  "rounded-full": "sl-rounded-full"
92
- }, O = l(() => T[e.rounded || "rounded-md"]), $ = l(() => ({
92
+ }, $ = r(() => O[e.rounded || "rounded-md"]), E = r(() => ({
93
93
  xs: "sl-px-2 sl-py-1",
94
94
  sm: "sl-px-2.5 sl-py-1.5",
95
95
  md: "sl-px-3 sl-py-1.5",
96
96
  lg: "sl-px-4 sl-py-2",
97
97
  xl: "sl-px-5 sl-py-2.5",
98
98
  "2xl": "sl-px-6 sl-py-3"
99
- })[e.size || "md"]), E = l(() => ({
99
+ })[e.size || "md"]), F = r(() => ({
100
100
  xs: "sl-text-xs sl-font-regular",
101
101
  sm: "sl-text-sm sl-font-regular",
102
102
  md: "sl-text-base sl-font-medium",
103
103
  lg: "sl-text-lg sl-font-medium",
104
104
  xl: "sl-text-xl sl-font-medium",
105
105
  "2xl": "sl-text-2xl sl-font-medium"
106
- })[e.size || "sm"]), F = l(() => e.expanded ? "sl-w-full" : ""), a = l(() => !!e.label && e.label.length > 0), N = l(() => !a.value && (e.leadingIcon || e.trailingIcon)), P = l(() => {
106
+ })[e.size || "sm"]), N = r(() => e.expanded ? "sl-w-full" : ""), a = r(() => !!e.label && e.label.length > 0), P = r(() => !a.value && (e.leadingIcon || e.trailingIcon)), V = r(() => {
107
107
  if (e.customClass)
108
108
  return e.customClass;
109
- const r = [...[
110
- O.value,
109
+ const l = [...[
111
110
  $.value,
112
111
  E.value,
113
112
  F.value,
114
- j.value,
113
+ N.value,
114
+ T.value,
115
115
  e.disabled ? "sl-cursor-not-allowed" : "sl-cursor-pointer",
116
116
  "focus:sl-ring-0",
117
117
  "sl-relative",
@@ -122,7 +122,7 @@ const se = ["disabled", "data-theme", "data-outlined"], le = { class: "sl-absolu
122
122
  // Consistent spacing between icon and text
123
123
  ]];
124
124
  if (!a.value && (e.leadingIcon || e.trailingIcon)) {
125
- const B = {
125
+ const d = {
126
126
  xs: "!sl-p-1.5",
127
127
  sm: "!sl-p-2",
128
128
  md: "!sl-p-2.5",
@@ -130,99 +130,119 @@ const se = ["disabled", "data-theme", "data-outlined"], le = { class: "sl-absolu
130
130
  xl: "!sl-p-3.5",
131
131
  "2xl": "!sl-p-4"
132
132
  };
133
- r.push(B[e.size || "md"] || "!sl-p-2.5");
133
+ l.push(d[e.size || "md"] || "!sl-p-2.5");
134
134
  }
135
- return e.centerLeadingIcon && !a.value ? r.push("sl-w-full", "sl-h-full") : (e.leadingIcon || e.inlineFlex || e.trailingIcon) && r.push("sl-inline-flex"), r.filter(Boolean);
136
- }), V = l(() => e.theme === "primary" ? e.outlined ? {
137
- color: "var(--sl-color-primary-600, #3e4b9a)",
138
- borderColor: "var(--sl-color-primary-600, #3e4b9a)",
139
- "--tw-ring-color": "var(--sl-color-primary-500, #4d5ec0)"
140
- } : {
141
- backgroundColor: "var(--sl-color-primary-600, #3e4b9a)",
142
- "--tw-ring-color": "var(--sl-color-primary-500, #4d5ec0)"
143
- } : {}), W = l(() => e.trailingOverlay ? z : te), A = l(() => e.trailingOverlay ? `${z}` : "sl-flex sl-items-center sl-flex-shrink-0"), k = l(() => e.centerLeadingIcon && !a.value ? "sl-absolute sl-inset-0 sl-flex sl-items-center sl-justify-center sl-w-full sl-h-full" : e.centerLeadingIcon ? "sl-h-full sl-flex sl-items-center sl-justify-center" : a.value ? "sl-flex sl-items-center sl-justify-center sl-flex-shrink-0" : "sl-flex sl-items-center sl-justify-center"), R = () => {
144
- h("button-click");
135
+ return e.centerLeadingIcon && !a.value ? l.push("sl-w-full", "sl-h-full") : (e.leadingIcon || e.inlineFlex || e.trailingIcon) && l.push("sl-inline-flex"), l.filter(Boolean);
136
+ }), W = r(() => e.trailingOverlay ? S : te), A = r(() => e.trailingOverlay ? `${S}` : "sl-flex sl-items-center sl-flex-shrink-0"), p = r(() => e.centerLeadingIcon && !a.value ? "sl-absolute sl-inset-0 sl-flex sl-items-center sl-justify-center sl-w-full sl-h-full" : e.centerLeadingIcon ? "sl-h-full sl-flex sl-items-center sl-justify-center" : a.value ? "sl-flex sl-items-center sl-justify-center sl-flex-shrink-0" : "sl-flex sl-items-center sl-justify-center"), b = x(!1), R = () => {
137
+ v("button-click");
145
138
  }, U = () => {
146
- h("hover-enter");
139
+ b.value = !0, v("hover-enter");
147
140
  }, q = () => {
148
- h("hover-leave");
149
- }, D = e.showLoadingTitle || !1;
150
- return (s, r) => (o(), t("button", {
141
+ b.value = !1, v("hover-leave");
142
+ }, D = e.showLoadingTitle || !1, H = r(() => {
143
+ if (e.theme === "primary") {
144
+ const s = "rgb(var(--sl-color-primary-400-rgb, 113 126 205))";
145
+ if (e.outlined) {
146
+ const d = {
147
+ color: "var(--sl-color-primary-600, #3e4b9a)",
148
+ borderColor: "var(--sl-color-primary-600, #3e4b9a)",
149
+ "--tw-ring-color": s,
150
+ transition: "background-color 150ms ease-in-out, border-color 150ms ease-in-out"
151
+ };
152
+ return b.value ? {
153
+ ...d,
154
+ backgroundColor: "rgb(var(--sl-color-primary-50-rgb, 237 239 249) / 0.5)",
155
+ borderColor: "rgb(var(--sl-color-primary-400-rgb, 113 126 205))"
156
+ } : d;
157
+ }
158
+ const l = {
159
+ backgroundColor: "var(--sl-color-primary-600, #3e4b9a)",
160
+ "--tw-ring-color": s,
161
+ transition: "background-color 150ms ease-in-out"
162
+ };
163
+ return b.value ? {
164
+ ...l,
165
+ backgroundColor: "rgb(var(--sl-color-primary-500-rgb, 77 94 192))"
166
+ } : l;
167
+ }
168
+ return {};
169
+ });
170
+ return (s, l) => (t(), o("button", {
151
171
  ref_key: "buttonRef",
152
- ref: x,
172
+ ref: B,
153
173
  type: "button",
154
174
  disabled: e.disabled,
155
- class: n(P.value),
156
- style: Q(V.value),
175
+ class: n(V.value),
176
+ style: X(H.value),
157
177
  "data-theme": e.theme,
158
178
  "data-outlined": e.outlined || void 0,
159
179
  onClick: R,
160
180
  onMouseenter: U,
161
181
  onMouseleave: q
162
182
  }, [
163
- e.centerLeadingIcon && !a.value ? (o(), t("div", {
183
+ e.centerLeadingIcon && !a.value ? (t(), o("div", {
164
184
  key: 0,
165
- class: n(k.value)
185
+ class: n(p.value)
166
186
  }, [
167
- u(s.$slots, "leading-icon", {}, void 0, !0)
168
- ], 2)) : (o(), t(Y, { key: 1 }, [
169
- y.value && g.value ? (o(), t("div", {
187
+ g(s.$slots, "leading-icon", {}, void 0, !0)
188
+ ], 2)) : (t(), o(Z, { key: 1 }, [
189
+ m.value && c.value ? (t(), o("div", {
170
190
  key: 0,
171
- class: n(["sl-flex sl-items-center sl-justify-center", [k.value, a.value ? "" : "sl-h-full sl-w-full"]])
191
+ class: n(["sl-flex sl-items-center sl-justify-center", [p.value, a.value ? "" : "sl-h-full sl-w-full"]])
172
192
  }, [
173
- m(c(b), {
174
- theme: v.value,
175
- size: C.value
193
+ w(y(h), {
194
+ theme: k.value,
195
+ size: I.value
176
196
  }, null, 8, ["theme", "size"])
177
- ], 2)) : e.leadingIcon ? (o(), t("div", {
197
+ ], 2)) : e.leadingIcon ? (t(), o("div", {
178
198
  key: 1,
179
- class: n(k.value)
199
+ class: n(p.value)
180
200
  }, [
181
- u(s.$slots, "leading-icon", {}, void 0, !0)
182
- ], 2)) : d("", !0)
201
+ g(s.$slots, "leading-icon", {}, void 0, !0)
202
+ ], 2)) : u("", !0)
183
203
  ], 64)),
184
- a.value ? (o(), t("span", {
204
+ a.value ? (t(), o("span", {
185
205
  key: 2,
186
206
  class: n(["sl-flex-1 sl-text-center", [
187
- { "sl-truncate sl-max-w-[150px]": p.truncateLabel },
207
+ { "sl-truncate sl-max-w-[150px]": C.truncateLabel },
188
208
  { "sl-mx-auto": !e.leadingIcon && !e.trailingIcon }
189
209
  ]])
190
- }, Z(e.label), 3)) : !N.value && (!y.value || !g.value) && !e.centerLeadingIcon ? (o(), t("span", {
210
+ }, ee(e.label), 3)) : !P.value && (!m.value || !c.value) && !e.centerLeadingIcon ? (t(), o("span", {
191
211
  key: 3,
192
212
  class: n(["sl-flex", e.centerLabel || !e.leadingIcon && !e.trailingIcon ? "sl-justify-center sl-items-center sl-flex-1" : "sl-flex-1"])
193
213
  }, [
194
- u(s.$slots, "default", {}, void 0, !0)
195
- ], 2)) : d("", !0),
196
- e.trailingLoading && g.value ? (o(), t("div", {
214
+ g(s.$slots, "default", {}, void 0, !0)
215
+ ], 2)) : u("", !0),
216
+ e.trailingLoading && c.value ? (t(), o("div", {
197
217
  key: 4,
198
218
  class: n(W.value)
199
219
  }, [
200
- m(c(b), {
201
- theme: v.value,
220
+ w(y(h), {
221
+ theme: k.value,
202
222
  size: e.trailingLoadingSize || "sm"
203
223
  }, null, 8, ["theme", "size"])
204
- ], 2)) : e.trailingIcon ? (o(), t("div", {
224
+ ], 2)) : e.trailingIcon ? (t(), o("div", {
205
225
  key: 5,
206
226
  class: n(A.value)
207
227
  }, [
208
- u(s.$slots, "trailing-icon", {}, void 0, !0)
209
- ], 2)) : d("", !0),
210
- X("div", le, [
211
- u(s.$slots, "badge", {}, void 0, !0)
228
+ g(s.$slots, "trailing-icon", {}, void 0, !0)
229
+ ], 2)) : u("", !0),
230
+ Y("div", re, [
231
+ g(s.$slots, "badge", {}, void 0, !0)
212
232
  ]),
213
- g.value && !y.value && !e.trailingLoading ? (o(), t("div", {
233
+ c.value && !m.value && !e.trailingLoading ? (t(), o("div", {
214
234
  key: 6,
215
- class: n(["sl-absolute sl-inset-0 sl-flex sl-items-center sl-justify-center sl-rounded sl-z-10", M.value])
235
+ class: n(["sl-absolute sl-inset-0 sl-flex sl-items-center sl-justify-center sl-rounded sl-z-10", j.value])
216
236
  }, [
217
- m(c(b), {
218
- theme: v.value,
219
- size: C.value
237
+ w(y(h), {
238
+ theme: k.value,
239
+ size: I.value
220
240
  }, null, 8, ["theme", "size"]),
221
- c(D) ? (o(), t("p", re, "Loading...")) : d("", !0)
222
- ], 2)) : d("", !0)
223
- ], 46, se));
241
+ y(D) ? (t(), o("p", oe, "Loading...")) : u("", !0)
242
+ ], 2)) : u("", !0)
243
+ ], 46, le));
224
244
  }
225
- }), ie = /* @__PURE__ */ ee(oe, [["__scopeId", "data-v-13d7b5df"]]);
245
+ }), de = /* @__PURE__ */ se(ne, [["__scopeId", "data-v-d2387b44"]]);
226
246
  export {
227
- ie as default
247
+ de as default
228
248
  };
@@ -1,35 +1,44 @@
1
- import { useCalendar as o } from "./useCalendar.js";
2
- import { C as t, u as r } from "../useCollectionEditor-BYyoAT0U.js";
3
- import { c as m, u } from "../useEventSegments-B-r_8zCW.js";
4
- import { useFormValidation as f } from "./useFormValidation.js";
5
- import { i as p, u as x } from "../useMap-BGg0H582.js";
6
- import { useModal as d } from "./useModal.js";
7
- import { useNotifications as S } from "./useNotifications.js";
8
- import { u as g } from "../useSimpleTabs-CSgkChEU.js";
9
- import { f as E, i as h, s as v, a as L, t as M, c as U, b as V, u as k } from "../useStringTransform-CSr7nZWg.js";
10
- import { useTabs as I } from "./useTabs.js";
11
- import { presetThemes as R, useTheme as j } from "./useTheme.js";
1
+ import { useCalendar as a } from "./useCalendar.js";
2
+ import { C as r, u as t } from "../useCollectionEditor-BYyoAT0U.js";
3
+ import { c as n, u } from "../useEventSegments-B-r_8zCW.js";
4
+ import { useFormValidation as S } from "./useFormValidation.js";
5
+ import { i as c, u as l } from "../useMap-CM59TKX6.js";
6
+ import { useModal as x } from "./useModal.js";
7
+ import { useNotifications as g } from "./useNotifications.js";
8
+ import { S as z, d as T, a as b, g as v, s as E, b as h, c as w, u as L } from "../useScreenSize-Kr6cn5Zr.js";
9
+ import { u as U } from "../useSimpleTabs-CSgkChEU.js";
10
+ import { f as k, i as y, s as A, a as F, t as I, c as K, b as N, u as P } from "../useStringTransform-CSr7nZWg.js";
11
+ import { useTabs as W } from "./useTabs.js";
12
+ import { presetThemes as q, useTheme as B } from "./useTheme.js";
12
13
  export {
13
- t as CollectionItemStatus,
14
- m as calculateEventLanes,
15
- E as formatUid,
16
- h as isUidLike,
17
- p as isValidCoordinate,
18
- R as presetThemes,
19
- v as slugToReadable,
20
- L as toSentenceCase,
21
- M as toTitleCase,
22
- U as transformString,
23
- V as truncateString,
24
- o as useCalendar,
25
- r as useCollectionEditor,
14
+ r as CollectionItemStatus,
15
+ z as ScreenSizeKey,
16
+ n as calculateEventLanes,
17
+ T as detectScreenSize,
18
+ k as formatUid,
19
+ b as getAvailablePreviewSizes,
20
+ v as getScreenSizeConfig,
21
+ y as isUidLike,
22
+ c as isValidCoordinate,
23
+ q as presetThemes,
24
+ E as screenSizeConfigs,
25
+ A as slugToReadable,
26
+ F as toSentenceCase,
27
+ I as toTitleCase,
28
+ K as transformString,
29
+ N as truncateString,
30
+ a as useCalendar,
31
+ t as useCollectionEditor,
26
32
  u as useEventSegments,
27
- f as useFormValidation,
28
- x as useMap,
29
- d as useModal,
30
- S as useNotifications,
31
- g as useSimpleTabs,
32
- k as useStringTransform,
33
- I as useTabs,
34
- j as useTheme
33
+ S as useFormValidation,
34
+ l as useMap,
35
+ x as useModal,
36
+ g as useNotifications,
37
+ h as useScreenSize,
38
+ w as useScreenSizeContext,
39
+ U as useSimpleTabs,
40
+ P as useStringTransform,
41
+ W as useTabs,
42
+ B as useTheme,
43
+ L as useWindowSize
35
44
  };
@@ -1,6 +1,6 @@
1
1
  import "vue";
2
2
  import "@googlemaps/js-api-loader";
3
- import { u as m, i as s, u as e } from "../useMap-BGg0H582.js";
3
+ import { u as m, i as s, u as e } from "../useMap-CM59TKX6.js";
4
4
  import "../mapThemes-DFE9fZm3.js";
5
5
  import "./useTheme.js";
6
6
  export {
@@ -1,4 +1,4 @@
1
- import { _ as f } from "../DynamicForm.vue_vue_type_script_setup_true_lang-DMtVUXUN.js";
1
+ import { _ as f } from "../DynamicForm.vue_vue_type_script_setup_true_lang-D8QXRuSo.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "../DynamicFormField.vue_vue_type_script_setup_true_lang-DSq31jjH.js";
1
+ import { _ as f } from "../DynamicFormField.vue_vue_type_script_setup_true_lang-DVoVGq7g.js";
2
2
  export {
3
3
  f as default
4
4
  };