@stachelock/ui 0.6.15 → 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 (55) hide show
  1. package/dist/NavigationItem.vue_vue_type_script_setup_true_lang-a6F3LQ_P.js +56 -0
  2. package/dist/ScreenSizeSelector.vue_vue_type_script_setup_true_lang-FINxrVod.js +183 -0
  3. package/dist/UiMapAll.vue_vue_type_script_setup_true_lang-DKcK0HmT.js +501 -0
  4. package/dist/charts/BaseChart.js +76 -56
  5. package/dist/charts/chartTheme.js +199 -60
  6. package/dist/charts/index.js +30 -27
  7. package/dist/components/Button.js +109 -89
  8. package/dist/composables/index.js +41 -32
  9. package/dist/composables/useMap.js +1 -1
  10. package/dist/index.js +2304 -1560
  11. package/dist/layouts/DashboardLayout.js +218 -2
  12. package/dist/layouts/NavigationItem.js +1 -1
  13. package/dist/maps/UiMap.js +167 -150
  14. package/dist/maps/UiMapAll.js +1 -1
  15. package/dist/maps/UiMapMarker.js +227 -118
  16. package/dist/maps/index.js +1 -1
  17. package/dist/src/components/UiProgressBar.d.ts +1 -1
  18. package/dist/src/components/UiRadialProgressBar.d.ts +1 -1
  19. package/dist/src/components/charts/chartTheme.d.ts +53 -0
  20. package/dist/src/components/formatters/DateFormatter.d.ts +1 -1
  21. package/dist/src/components/index.d.ts +1 -0
  22. package/dist/src/components/inputs/DatepickerInput.d.ts +3 -3
  23. package/dist/src/components/layouts/DashboardLayout.d.ts +80 -18
  24. package/dist/src/components/layouts/ShowcaseCard.d.ts +1 -0
  25. package/dist/src/components/layouts/UiDetailPanel.d.ts +65 -0
  26. package/dist/src/components/layouts/UiSplitPanelLayout.d.ts +96 -0
  27. package/dist/src/components/layouts/index.d.ts +2 -0
  28. package/dist/src/components/maps/UiMap.d.ts +13 -2
  29. package/dist/src/components/maps/UiMapAll.d.ts +13 -0
  30. package/dist/src/components/maps/UiMapMarker.d.ts +47 -10
  31. package/dist/src/components/modals/UiSlideOver.d.ts +104 -0
  32. package/dist/src/components/modals/index.d.ts +1 -0
  33. package/dist/src/components/palettes/UiCommandPalette.d.ts +166 -0
  34. package/dist/src/components/palettes/index.d.ts +1 -0
  35. package/dist/src/components/wrappers/BreakpointWrapper.d.ts +36 -0
  36. package/dist/src/components/wrappers/ResponsivePreviewWrapper.d.ts +85 -0
  37. package/dist/src/components/wrappers/ScreenSizeSelector.d.ts +74 -0
  38. package/dist/src/components/wrappers/index.d.ts +3 -0
  39. package/dist/src/composables/index.d.ts +1 -0
  40. package/dist/src/composables/useScreenSize.d.ts +131 -0
  41. package/dist/src/types/index.d.ts +1 -0
  42. package/dist/src/types/layouts.d.ts +42 -0
  43. package/dist/src/types/palettes.d.ts +134 -0
  44. package/dist/src/views/components/index.d.ts +2 -0
  45. package/dist/src/views/index.d.ts +5 -1
  46. package/dist/src/views/layouts/index.d.ts +3 -1
  47. package/dist/style.css +1 -1
  48. package/dist/useMap-CM59TKX6.js +318 -0
  49. package/dist/useScreenSize-Kr6cn5Zr.js +104 -0
  50. package/dist/wrappers/index.js +10 -6
  51. package/package.json +1 -1
  52. package/dist/DashboardLayout.vue_vue_type_script_setup_true_lang-BAx4gKqh.js +0 -239
  53. package/dist/NavigationItem.vue_vue_type_script_setup_true_lang-C8aX-84Q.js +0 -56
  54. package/dist/UiMapAll.vue_vue_type_script_setup_true_lang-11yT7mTH.js +0 -471
  55. package/dist/useMap-BGg0H582.js +0 -297
@@ -1,4 +1,220 @@
1
- import { _ as f } from "../DashboardLayout.vue_vue_type_script_setup_true_lang-BAx4gKqh.js";
1
+ import { defineComponent as N, ref as v, computed as h, onMounted as O, onUnmounted as S, createElementBlock as i, openBlock as a, normalizeStyle as t, createElementVNode as o, createVNode as f, normalizeClass as p, createCommentVNode as d, renderSlot as l, unref as c, Transition as W, withCtx as V, createBlock as z } from "vue";
2
+ import { CubeIcon as E, Bars3Icon as R, ChevronDoubleLeftIcon as T, ChevronDoubleRightIcon as _ } from "@heroicons/vue/24/outline";
3
+ import { _ as F } from "../_plugin-vue_export-helper-CHgC5LLL.js";
4
+ const G = {
5
+ key: 0,
6
+ class: "sl-flex sl-items-center sl-gap-3 sl-w-full"
7
+ }, U = { class: "sl-min-w-0" }, q = {
8
+ key: 1,
9
+ class: "sl-flex sl-items-center sl-justify-center"
10
+ }, A = { class: "sl-flex-1 sl-px-3 sl-py-4 sl-overflow-y-auto sl-scrollbar-thin" }, H = { class: "sl-flex sl-items-center sl-justify-between sl-px-4 sm:sl-px-6 lg:sl-px-8 sl-h-16" }, J = { class: "sl-flex sl-items-center sl-gap-4" }, K = { class: "sl-flex sl-items-center sl-gap-2" }, P = {
11
+ key: 0,
12
+ class: "sl-hidden sm:sl-block"
13
+ }, Q = ["title"], X = {
14
+ key: 2,
15
+ class: "sl-flex sl-items-center sl-gap-1"
16
+ }, Y = /* @__PURE__ */ N({
17
+ __name: "DashboardLayout",
18
+ props: {
19
+ startNarrow: { type: Boolean, default: !1 },
20
+ dark: { type: Boolean, default: !1 },
21
+ sidebarColor: { default: void 0 }
22
+ },
23
+ emits: ["sidebar-toggle", "width-toggle"],
24
+ setup(L, { expose: j, emit: I }) {
25
+ const u = L, b = I, n = v(!1), r = v(!u.startNarrow), m = v(!1), e = v(u.dark), y = () => {
26
+ e.value = u.dark || document.documentElement.classList.contains("dark");
27
+ }, M = h(() => u.sidebarColor ? u.sidebarColor : e.value ? "#0f172a" : "rgb(var(--sl-color-primary-700-rgb, 46 56 115))"), k = h(() => e.value ? "#1e293b" : "rgb(var(--sl-color-primary-800-rgb, 31 38 77))"), w = h(() => e.value ? "linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%)" : "linear-gradient(135deg, rgb(var(--sl-color-primary-400-rgb, 113 126 205)) 0%, rgb(var(--sl-color-primary-500-rgb, 77 94 192)) 100%)"), $ = () => {
28
+ n.value = !n.value, b("sidebar-toggle", n.value);
29
+ }, x = () => {
30
+ n.value = !1, b("sidebar-toggle", !1);
31
+ }, C = () => {
32
+ r.value = !r.value, b("width-toggle", r.value);
33
+ }, g = () => {
34
+ m.value = window.innerWidth < 1024, m.value || (n.value = !1);
35
+ }, D = new MutationObserver(() => {
36
+ y();
37
+ });
38
+ return O(() => {
39
+ g(), y(), window.addEventListener("resize", g), D.observe(document.documentElement, {
40
+ attributes: !0,
41
+ attributeFilter: ["class"]
42
+ });
43
+ }), S(() => {
44
+ window.removeEventListener("resize", g), D.disconnect();
45
+ }), j({
46
+ toggleSidebar: $,
47
+ closeSidebar: x,
48
+ toggleWidth: C,
49
+ isWide: r,
50
+ sidebarOpen: n
51
+ }), (s, B) => (a(), i("div", {
52
+ class: "sl-min-h-screen sl-flex sl-transition-colors sl-duration-200",
53
+ style: t({ backgroundColor: e.value ? "#0f172a" : "#f8fafc" })
54
+ }, [
55
+ o("aside", {
56
+ class: p(["sl-flex sl-flex-col sl-fixed sl-inset-y-0 sl-z-30 sl-transition-all sl-duration-300", [
57
+ n.value ? "sl-translate-x-0" : "-sl-translate-x-full lg:sl-translate-x-0",
58
+ r.value ? "sl-w-72" : "sl-w-72 lg:sl-w-16"
59
+ ]]),
60
+ style: t({ backgroundColor: M.value })
61
+ }, [
62
+ o("div", {
63
+ class: p(["sl-border-b sl-flex sl-items-center sl-justify-center", r.value ? "sl-px-5 sl-py-5" : "sl-px-2 sl-py-4"]),
64
+ style: t({ borderColor: k.value })
65
+ }, [
66
+ l(s.$slots, "logo", { isWide: r.value }, () => [
67
+ r.value ? (a(), i("div", G, [
68
+ o("div", {
69
+ class: "sl-h-10 sl-w-10 sl-flex-shrink-0 sl-rounded-xl sl-flex sl-items-center sl-justify-center sl-shadow-lg",
70
+ style: t({ background: w.value })
71
+ }, [
72
+ l(s.$slots, "logo-icon", {}, () => [
73
+ f(c(E), { class: "sl-h-6 sl-w-6 sl-text-white" })
74
+ ], !0)
75
+ ], 4),
76
+ o("div", U, [
77
+ l(s.$slots, "logo-text", {}, () => [
78
+ B[0] || (B[0] = o("h1", { class: "sl-text-lg sl-font-bold sl-text-white sl-tracking-tight sl-truncate" }, "Dashboard", -1))
79
+ ], !0)
80
+ ])
81
+ ])) : (a(), i("div", q, [
82
+ o("div", {
83
+ class: "sl-h-10 sl-w-10 sl-rounded-xl sl-flex sl-items-center sl-justify-center sl-shadow-lg",
84
+ style: t({ background: w.value })
85
+ }, [
86
+ l(s.$slots, "logo-icon", {}, () => [
87
+ f(c(E), { class: "sl-h-6 sl-w-6 sl-text-white" })
88
+ ], !0)
89
+ ], 4)
90
+ ]))
91
+ ], !0)
92
+ ], 6),
93
+ o("nav", A, [
94
+ l(s.$slots, "navigation", {
95
+ iconOnly: !r.value
96
+ }, void 0, !0)
97
+ ]),
98
+ s.$slots["sidebar-footer"] ? (a(), i("div", {
99
+ key: 0,
100
+ class: "sl-px-5 sl-py-4",
101
+ style: t({ borderTop: `1px solid ${k.value}` })
102
+ }, [
103
+ l(s.$slots, "sidebar-footer", {
104
+ iconOnly: !r.value
105
+ }, void 0, !0)
106
+ ], 4)) : d("", !0)
107
+ ], 6),
108
+ f(W, {
109
+ "enter-active-class": "sl-transition-opacity sl-duration-300",
110
+ "enter-from-class": "sl-opacity-0",
111
+ "enter-to-class": "sl-opacity-100",
112
+ "leave-active-class": "sl-transition-opacity sl-duration-200",
113
+ "leave-from-class": "sl-opacity-100",
114
+ "leave-to-class": "sl-opacity-0"
115
+ }, {
116
+ default: V(() => [
117
+ n.value ? (a(), i("div", {
118
+ key: 0,
119
+ class: "sl-fixed sl-inset-0 sl-bg-black/50 sl-z-20 lg:sl-hidden",
120
+ onClick: x
121
+ })) : d("", !0)
122
+ ]),
123
+ _: 1
124
+ }),
125
+ o("main", {
126
+ class: p(["sl-flex-1 sl-transition-[margin] sl-duration-300", r.value ? "lg:sl-ml-72" : "lg:sl-ml-16"])
127
+ }, [
128
+ o("header", {
129
+ class: "sl-sticky sl-top-0 sl-z-10 sl-border-b sl-transition-colors sl-duration-200",
130
+ style: t({
131
+ backgroundColor: e.value ? "#1e293b" : "#ffffff",
132
+ borderColor: e.value ? "#334155" : "#e2e8f0"
133
+ })
134
+ }, [
135
+ o("div", H, [
136
+ o("div", J, [
137
+ o("button", {
138
+ onClick: $,
139
+ class: "lg:sl-hidden sl-p-2 sl-rounded-lg sl-transition-colors hover:sl-bg-slate-100 dark:hover:sl-bg-slate-700",
140
+ style: t({ color: e.value ? "#94a3b8" : "#64748b" })
141
+ }, [
142
+ f(c(R), { class: "sl-h-6 sl-w-6" })
143
+ ], 4),
144
+ l(s.$slots, "header-breadcrumb", { isDark: e.value }, () => [
145
+ l(s.$slots, "header-content", { isDark: e.value }, () => [
146
+ l(s.$slots, "header-left", { isDark: e.value }, void 0, !0)
147
+ ], !0)
148
+ ], !0)
149
+ ]),
150
+ o("div", K, [
151
+ s.$slots["header-search"] ? (a(), i("div", P, [
152
+ l(s.$slots, "header-search", { isDark: e.value }, void 0, !0)
153
+ ])) : d("", !0),
154
+ o("button", {
155
+ onClick: C,
156
+ class: "sl-hidden lg:sl-flex sl-p-2 sl-rounded-lg sl-transition-colors hover:sl-bg-slate-100 dark:hover:sl-bg-slate-700",
157
+ style: t({ color: e.value ? "#94a3b8" : "#64748b" }),
158
+ title: r.value ? "Collapse sidebar" : "Expand sidebar"
159
+ }, [
160
+ r.value ? (a(), z(c(T), {
161
+ key: 0,
162
+ class: "sl-h-5 sl-w-5"
163
+ })) : (a(), z(c(_), {
164
+ key: 1,
165
+ class: "sl-h-5 sl-w-5"
166
+ }))
167
+ ], 12, Q),
168
+ s.$slots["header-actions"] || s.$slots["header-theme"] || s.$slots["header-notifications"] || s.$slots["header-user"] ? (a(), i("div", {
169
+ key: 1,
170
+ class: "sl-hidden lg:sl-block sl-h-6 sl-w-px sl-mx-2",
171
+ style: t({ backgroundColor: e.value ? "#334155" : "#e2e8f0" })
172
+ }, null, 4)) : d("", !0),
173
+ s.$slots["header-actions"] ? (a(), i("div", X, [
174
+ l(s.$slots, "header-actions", { isDark: e.value }, void 0, !0)
175
+ ])) : d("", !0),
176
+ l(s.$slots, "header-theme", { isDark: e.value }, void 0, !0),
177
+ l(s.$slots, "header-notifications", { isDark: e.value }, void 0, !0),
178
+ s.$slots["header-user"] ? (a(), i("div", {
179
+ key: 3,
180
+ class: "sl-h-6 sl-w-px sl-mx-2",
181
+ style: t({ backgroundColor: e.value ? "#334155" : "#e2e8f0" })
182
+ }, null, 4)) : d("", !0),
183
+ l(s.$slots, "header-user", { isDark: e.value }, void 0, !0),
184
+ l(s.$slots, "header-right", { isDark: e.value }, void 0, !0)
185
+ ])
186
+ ])
187
+ ], 4),
188
+ s.$slots["page-header"] ? (a(), i("div", {
189
+ key: 0,
190
+ class: "sl-border-b sl-px-4 sm:sl-px-6 lg:sl-px-8 sl-py-6",
191
+ style: t({
192
+ backgroundColor: e.value ? "#1e293b" : "#ffffff",
193
+ borderColor: e.value ? "#334155" : "#e2e8f0"
194
+ })
195
+ }, [
196
+ l(s.$slots, "page-header", {}, void 0, !0)
197
+ ], 4)) : d("", !0),
198
+ o("div", {
199
+ class: "sl-px-4 sm:sl-px-6 lg:sl-px-8 sl-py-6",
200
+ style: t({ color: e.value ? "#f1f5f9" : "#1e293b" })
201
+ }, [
202
+ l(s.$slots, "main", {}, void 0, !0)
203
+ ], 4),
204
+ s.$slots.footer ? (a(), i("footer", {
205
+ key: 1,
206
+ class: "sl-border-t sl-px-4 sm:sl-px-6 lg:sl-px-8 sl-py-6",
207
+ style: t({
208
+ backgroundColor: e.value ? "#1e293b" : "#ffffff",
209
+ borderColor: e.value ? "#334155" : "#e2e8f0"
210
+ })
211
+ }, [
212
+ l(s.$slots, "footer", {}, void 0, !0)
213
+ ], 4)) : d("", !0)
214
+ ], 2)
215
+ ], 4));
216
+ }
217
+ }), ls = /* @__PURE__ */ F(Y, [["__scopeId", "data-v-dfc4de03"]]);
2
218
  export {
3
- f as default
219
+ ls as default
4
220
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "../NavigationItem.vue_vue_type_script_setup_true_lang-C8aX-84Q.js";
1
+ import { _ as f } from "../NavigationItem.vue_vue_type_script_setup_true_lang-a6F3LQ_P.js";
2
2
  export {
3
3
  f as default
4
4
  };