@stachelock/ui 0.1.9 → 0.2.1

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.
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
- import { a as dt, g as ut, s as pt } from "./id-DafBB_QF.js";
2
- import { defineAsyncComponent as E, defineComponent as y, computed as R, ref as H, watch as W, createElementBlock as u, openBlock as p, normalizeClass as G, createCommentVNode as h, createElementVNode as s, toDisplayString as f, reactive as Y, createVNode as d } from "vue";
3
- import i from "./components/TextInput.js";
1
+ import { a as ut, g as gt, s as bt } from "./id-DafBB_QF.js";
2
+ import { defineAsyncComponent as k, defineComponent as _, computed as R, ref as H, watch as W, createElementBlock as p, openBlock as c, normalizeClass as G, createCommentVNode as h, createElementVNode as n, toDisplayString as u, reactive as Y, createVNode as d } from "vue";
3
+ import m from "./components/TextInput.js";
4
4
  import { _ as q } from "./UiAvatar.vue_vue_type_script_setup_true_lang-CDNjUA1L.js";
5
5
  import J from "./components/Badge.js";
6
6
  import { _ as K } from "./UiBreadcrumb.vue_vue_type_script_setup_true_lang-quGuN9v4.js";
@@ -9,56 +9,56 @@ import { _ as X } from "./UiLoading.vue_vue_type_script_setup_true_lang-DCz52-Me
9
9
  import Z from "./components/LoadingDots.js";
10
10
  import { _ as ee } from "./UiModal.vue_vue_type_script_setup_true_lang-SAo39zpS.js";
11
11
  import { _ as te } from "./UiNavLink.vue_vue_type_script_setup_true_lang-Bz5oiCCk.js";
12
- import { _ as se } from "./UiProgressBar.vue_vue_type_script_setup_true_lang-0zFKwh43.js";
12
+ import { _ as oe } from "./UiProgressBar.vue_vue_type_script_setup_true_lang-0zFKwh43.js";
13
13
  import { _ as ae } from "./UiTable.vue_vue_type_script_setup_true_lang-hI1_xamh.js";
14
- import { _ as oe } from "./UiTransition.vue_vue_type_script_setup_true_lang-DwBTj18t.js";
15
- import { _ as C } from "./CalendarHeader.vue_vue_type_script_setup_true_lang-Cirr0hMB.js";
16
- import { _ as v } from "./DayCalendar.vue_vue_type_script_setup_true_lang-xE5bCa3O.js";
17
- import { _ as I } from "./EventCard.vue_vue_type_script_setup_true_lang-YV1lfgUY.js";
14
+ import { _ as se } from "./UiTransition.vue_vue_type_script_setup_true_lang-DwBTj18t.js";
15
+ import { _ as $ } from "./CalendarHeader.vue_vue_type_script_setup_true_lang-Cirr0hMB.js";
16
+ import { _ as C } from "./DayCalendar.vue_vue_type_script_setup_true_lang-xE5bCa3O.js";
17
+ import { _ as v } from "./EventCard.vue_vue_type_script_setup_true_lang-YV1lfgUY.js";
18
18
  import { _ as S } from "./EventsList.vue_vue_type_script_setup_true_lang-Cn_WOpZi.js";
19
19
  import { _ as w } from "./MonthCalendar.vue_vue_type_script_setup_true_lang-B9Bs0z8j.js";
20
- import { _ as $ } from "./WeekCalendar.vue_vue_type_script_setup_true_lang-DAFQiRI9.js";
20
+ import { _ as I } from "./WeekCalendar.vue_vue_type_script_setup_true_lang-DAFQiRI9.js";
21
21
  import { _ as T } from "./YearCalendar.vue_vue_type_script_setup_true_lang-BfJkvmpN.js";
22
- import { _ as k } from "./DynamicForm.vue_vue_type_script_setup_true_lang-BpfPAZiT.js";
22
+ import { _ as F } from "./DynamicForm.vue_vue_type_script_setup_true_lang-BpfPAZiT.js";
23
23
  import { _ as L } from "./DynamicFormField.vue_vue_type_script_setup_true_lang-DvT03FIS.js";
24
24
  import { _ as g } from "./CheckboxInput.vue_vue_type_script_setup_true_lang-tYAo46wK.js";
25
- import { _ } from "./ComboboxInput.vue_vue_type_script_setup_true_lang-2dJNxQUF.js";
26
- import { _ as b } from "./TextAreaInput.vue_vue_type_script_setup_true_lang-CbR651TU.js";
27
- import { _ as x } from "./SwitchInput.vue_vue_type_script_setup_true_lang-BFr2SByh.js";
28
- import { _ as c } from "./SelectInput.vue_vue_type_script_setup_true_lang-BPjHLHdM.js";
29
- import { _ as M } from "./TagifyInput.vue_vue_type_script_setup_true_lang-DRR6jt_8.js";
30
- import { _ as F } from "./DashboardLayout.vue_vue_type_script_setup_true_lang-BVQR4s1E.js";
31
- import { _ as V } from "./DefaultLayout.vue_vue_type_script_setup_true_lang-BZAz6aC-.js";
25
+ import { _ as b } from "./ComboboxInput.vue_vue_type_script_setup_true_lang-2dJNxQUF.js";
26
+ import { _ as x } from "./TextAreaInput.vue_vue_type_script_setup_true_lang-CbR651TU.js";
27
+ import { _ as y } from "./SwitchInput.vue_vue_type_script_setup_true_lang-BFr2SByh.js";
28
+ import { _ as f } from "./SelectInput.vue_vue_type_script_setup_true_lang-BPjHLHdM.js";
29
+ import { _ as E } from "./TagifyInput.vue_vue_type_script_setup_true_lang-DRR6jt_8.js";
30
+ import { _ as j } from "./DashboardLayout.vue_vue_type_script_setup_true_lang-BVQR4s1E.js";
31
+ import { _ as A } from "./DefaultLayout.vue_vue_type_script_setup_true_lang-BZAz6aC-.js";
32
32
  import { _ as D } from "./HeaderLayout.vue_vue_type_script_setup_true_lang-BY2G6hCc.js";
33
- import { _ as B } from "./NavigationGroup.vue_vue_type_script_setup_true_lang-2WURj34G.js";
34
- import { _ as P } from "./NavigationItem.vue_vue_type_script_setup_true_lang-DiNg3gz2.js";
35
- import { _ as A } from "./SidebarLayout.vue_vue_type_script_setup_true_lang-J1nfUTdM.js";
36
- import O from "./calendars/CalendarDashboard.js";
37
- import N from "./forms/FormFieldWrapper.js";
38
- const le = {
33
+ import { _ as O } from "./NavigationGroup.vue_vue_type_script_setup_true_lang-2WURj34G.js";
34
+ import { _ as M } from "./NavigationItem.vue_vue_type_script_setup_true_lang-DiNg3gz2.js";
35
+ import { _ as N } from "./SidebarLayout.vue_vue_type_script_setup_true_lang-J1nfUTdM.js";
36
+ import U from "./calendars/CalendarDashboard.js";
37
+ import V from "./forms/FormFieldWrapper.js";
38
+ const re = {
39
39
  text: {
40
40
  component: "TextInput",
41
- loader: () => Promise.resolve(i)
41
+ loader: () => Promise.resolve(m)
42
42
  },
43
43
  email: {
44
44
  component: "TextInput",
45
- loader: () => Promise.resolve(i)
45
+ loader: () => Promise.resolve(m)
46
46
  },
47
47
  password: {
48
48
  component: "TextInput",
49
- loader: () => Promise.resolve(i)
49
+ loader: () => Promise.resolve(m)
50
50
  },
51
51
  number: {
52
52
  component: "TextInput",
53
- loader: () => Promise.resolve(i)
53
+ loader: () => Promise.resolve(m)
54
54
  },
55
55
  tel: {
56
56
  component: "TextInput",
57
- loader: () => Promise.resolve(i)
57
+ loader: () => Promise.resolve(m)
58
58
  },
59
59
  url: {
60
60
  component: "TextInput",
61
- loader: () => Promise.resolve(i)
61
+ loader: () => Promise.resolve(m)
62
62
  },
63
63
  textarea: {
64
64
  component: "TextAreaInput",
@@ -82,28 +82,28 @@ const le = {
82
82
  }
83
83
  };
84
84
  class ne {
85
- componentMap = { ...le };
85
+ componentMap = { ...re };
86
86
  loadedComponents = /* @__PURE__ */ new Map();
87
87
  /**
88
88
  * Register a new component type
89
89
  */
90
- register(e, l, n) {
91
- this.componentMap[e] = { component: l, loader: n }, this.loadedComponents.delete(e);
90
+ register(e, a, s) {
91
+ this.componentMap[e] = { component: a, loader: s }, this.loadedComponents.delete(e);
92
92
  }
93
93
  /**
94
94
  * Get a component for a field type
95
95
  */
96
96
  getComponent(e) {
97
- const l = this.componentMap[e];
98
- if (!l)
97
+ const a = this.componentMap[e];
98
+ if (!a)
99
99
  return console.warn(`Component type "${e}" is not registered`), null;
100
100
  if (this.loadedComponents.has(e))
101
101
  return this.loadedComponents.get(e);
102
- const n = E({
103
- loader: l.loader,
102
+ const s = k({
103
+ loader: a.loader,
104
104
  delay: 0
105
105
  });
106
- return this.loadedComponents.set(e, n), n;
106
+ return this.loadedComponents.set(e, s), s;
107
107
  }
108
108
  /**
109
109
  * Check if a component type is registered
@@ -130,23 +130,222 @@ class ne {
130
130
  this.loadedComponents.clear();
131
131
  }
132
132
  }
133
- const j = new ne();
134
- function lt(a, e, l) {
135
- j.register(a, e, l);
133
+ const P = new ne();
134
+ function nt(o, e, a) {
135
+ P.register(o, e, a);
136
136
  }
137
- function nt(a) {
138
- return j.getComponent(a);
137
+ function lt(o) {
138
+ return P.getComponent(o);
139
139
  }
140
- const re = {
140
+ const le = {
141
+ colors: {
142
+ primary: {
143
+ 50: "#edeff9",
144
+ 100: "#dbdff2",
145
+ 200: "#b8bfe6",
146
+ 300: "#949ed9",
147
+ 400: "#717ecd",
148
+ 500: "#4d5ec0",
149
+ 600: "#3e4b9a",
150
+ 700: "#2e3873",
151
+ 800: "#1f264d",
152
+ 900: "#0f1326"
153
+ },
154
+ stachelock: {
155
+ 50: "#edeff9",
156
+ 100: "#dbdff2",
157
+ 200: "#b8bfe6",
158
+ 300: "#949ed9",
159
+ 400: "#717ecd",
160
+ 500: "#4d5ec0",
161
+ 600: "#3e4b9a",
162
+ 700: "#2e3873",
163
+ 800: "#1f264d",
164
+ 900: "#0f1326"
165
+ }
166
+ },
167
+ spacing: {
168
+ 0: "0",
169
+ 1: "0.25rem",
170
+ 2: "0.5rem",
171
+ 3: "0.75rem",
172
+ 4: "1rem",
173
+ 5: "1.25rem",
174
+ 6: "1.5rem",
175
+ 8: "2rem",
176
+ 10: "2.5rem",
177
+ 12: "3rem",
178
+ 16: "4rem",
179
+ 20: "5rem",
180
+ 24: "6rem",
181
+ 32: "8rem",
182
+ 40: "10rem",
183
+ 48: "12rem",
184
+ 56: "14rem",
185
+ 64: "16rem",
186
+ 72: "18rem",
187
+ 80: "20rem",
188
+ 96: "24rem"
189
+ },
190
+ borderRadius: {
191
+ none: "0",
192
+ sm: "0.125rem",
193
+ DEFAULT: "0.25rem",
194
+ md: "0.375rem",
195
+ lg: "0.5rem",
196
+ xl: "0.75rem",
197
+ "2xl": "1rem",
198
+ "3xl": "1.5rem",
199
+ full: "9999px"
200
+ },
201
+ shadows: {
202
+ sm: "0 1px 2px 0 rgb(0 0 0 / 0.05)",
203
+ DEFAULT: "0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",
204
+ md: "0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",
205
+ lg: "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",
206
+ xl: "0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)",
207
+ "2xl": "0 25px 50px -12px rgb(0 0 0 / 0.25)",
208
+ inner: "inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",
209
+ none: "none"
210
+ },
211
+ typography: {
212
+ fontFamily: {
213
+ sans: ["Inter", "ui-sans-serif", "system-ui", "sans-serif"],
214
+ serif: ["ui-serif", "Georgia", "Cambria", "serif"],
215
+ mono: ["ui-monospace", "SFMono-Regular", "Menlo", "Monaco", "Consolas", "monospace"]
216
+ },
217
+ fontSize: {
218
+ xs: "0.75rem",
219
+ sm: "0.875rem",
220
+ base: "1rem",
221
+ lg: "1.125rem",
222
+ xl: "1.25rem",
223
+ "2xl": "1.5rem",
224
+ "3xl": "1.875rem",
225
+ "4xl": "2.25rem",
226
+ "5xl": "3rem",
227
+ "6xl": "3.75rem",
228
+ "7xl": "4.5rem",
229
+ "8xl": "6rem",
230
+ "9xl": "8rem"
231
+ }
232
+ },
233
+ breakpoints: {
234
+ sm: "640px",
235
+ md: "768px",
236
+ lg: "1024px",
237
+ xl: "1280px",
238
+ "2xl": "1536px"
239
+ }
240
+ };
241
+ function it(o, e = le) {
242
+ const a = { ...e };
243
+ function s(r, l) {
244
+ if (l && typeof l == "object" && !Array.isArray(l))
245
+ for (const t in l)
246
+ l.hasOwnProperty(t) && (r[t] && typeof r[t] == "object" && !Array.isArray(r[t]) ? r[t] = s(r[t], l[t]) : r[t] = l[t]);
247
+ return r;
248
+ }
249
+ return s(a, o);
250
+ }
251
+ function mt(o) {
252
+ let e = `:root {
253
+ `;
254
+ return o.colors && Object.entries(o.colors).forEach(([a, s]) => {
255
+ typeof s == "object" && s !== null && Object.entries(s).forEach(([r, l]) => {
256
+ const t = r === "DEFAULT" ? a : `${a}-${r}`;
257
+ e += ` --sl-color-${t}: ${l};
258
+ `;
259
+ });
260
+ }), o.spacing && Object.entries(o.spacing).forEach(([a, s]) => {
261
+ e += ` --sl-spacing-${a}: ${s};
262
+ `;
263
+ }), o.borderRadius && Object.entries(o.borderRadius).forEach(([a, s]) => {
264
+ const r = a === "DEFAULT" ? "radius" : `radius-${a}`;
265
+ e += ` --sl-${r}: ${s};
266
+ `;
267
+ }), o.shadows && Object.entries(o.shadows).forEach(([a, s]) => {
268
+ const r = a === "DEFAULT" ? "shadow" : `shadow-${a}`;
269
+ e += ` --sl-${r}: ${s};
270
+ `;
271
+ }), o.typography && (o.typography.fontFamily && Object.entries(o.typography.fontFamily).forEach(([a, s]) => {
272
+ e += ` --sl-font-family-${a}: ${s.join(", ")};
273
+ `;
274
+ }), o.typography.fontSize && Object.entries(o.typography.fontSize).forEach(([a, s]) => {
275
+ e += ` --sl-font-size-${a}: ${s};
276
+ `;
277
+ })), o.breakpoints && Object.entries(o.breakpoints).forEach(([a, s]) => {
278
+ e += ` --sl-breakpoint-${a}: ${s};
279
+ `;
280
+ }), e += ` --sl-ring-color: var(--sl-color-primary-600, #3e4b9a);
281
+ `, e += ` --sl-ring-offset-color: #ffffff;
282
+ `, e += ` --sl-ring-width: 2px;
283
+ `, e += ` --sl-outline-color: var(--sl-color-primary-600, #3e4b9a);
284
+ `, e += ` --sl-outline-width: 2px;
285
+ `, e += `}
286
+
287
+ `, e += `@media (prefers-color-scheme: dark) {
288
+ `, e += ` :root {
289
+ `, e += ` --sl-ring-color: var(--sl-color-primary-600, #3e4b9a);
290
+ `, e += ` }
291
+ `, e += `}
292
+ `, e;
293
+ }
294
+ function dt(o) {
295
+ let e = `export default {
296
+ `;
297
+ return e += ` prefix: "sl-",
298
+ `, e += ` theme: {
299
+ `, e += ` extend: {
300
+ `, o.colors && (e += ` colors: {
301
+ `, Object.entries(o.colors).forEach(([a, s]) => {
302
+ typeof s == "object" && s !== null && (e += ` "${a}": {
303
+ `, Object.entries(s).forEach(([r, l]) => {
304
+ e += ` "${r === "DEFAULT" ? "DEFAULT" : r}": "${l}",
305
+ `;
306
+ }), e += ` },
307
+ `);
308
+ }), e += ` },
309
+ `), o.spacing && (e += ` spacing: {
310
+ `, Object.entries(o.spacing).forEach(([a, s]) => {
311
+ e += ` "${a}": "${s}",
312
+ `;
313
+ }), e += ` },
314
+ `), o.borderRadius && (e += ` borderRadius: {
315
+ `, Object.entries(o.borderRadius).forEach(([a, s]) => {
316
+ e += ` "${a === "DEFAULT" ? "DEFAULT" : a}": "${s}",
317
+ `;
318
+ }), e += ` },
319
+ `), o.shadows && (e += ` boxShadow: {
320
+ `, Object.entries(o.shadows).forEach(([a, s]) => {
321
+ e += ` "${a === "DEFAULT" ? "DEFAULT" : a}": "${s}",
322
+ `;
323
+ }), e += ` },
324
+ `), o.typography && (o.typography.fontFamily && (e += ` fontFamily: {
325
+ `, Object.entries(o.typography.fontFamily).forEach(([a, s]) => {
326
+ e += ` "${a}": [${s.map((r) => `"${r}"`).join(", ")}],
327
+ `;
328
+ }), e += ` },
329
+ `), o.typography.fontSize && (e += ` fontSize: {
330
+ `, Object.entries(o.typography.fontSize).forEach(([a, s]) => {
331
+ e += ` "${a}": "${s}",
332
+ `;
333
+ }), e += ` },
334
+ `)), e += ` },
335
+ `, e += ` },
336
+ `, e += `};
337
+ `, e;
338
+ }
339
+ const ie = {
141
340
  viewBox: "0 0 36 36",
142
341
  class: "sl-transform -sl-rotate-90 sl-w-full sl-h-full"
143
- }, me = ["stroke-dasharray"], ie = {
342
+ }, me = ["stroke-dasharray"], de = {
144
343
  key: 0,
145
344
  class: "sl-absolute sl-top-1/2 sl-left-1/2 sl-transform -sl-translate-x-1/2 -sl-translate-y-1/2 sl-text-center"
146
- }, de = {
345
+ }, pe = {
147
346
  key: 1,
148
347
  class: "sl-absolute sl-top-1/2 sl-left-1/2 sl-transform -sl-translate-x-1/2 -sl-translate-y-1/2 sl-text-center sl-text-xs"
149
- }, ue = /* @__PURE__ */ y({
348
+ }, ce = /* @__PURE__ */ _({
150
349
  __name: "UiRadialProgressBar",
151
350
  props: {
152
351
  progress: {
@@ -166,8 +365,8 @@ const re = {
166
365
  default: "md"
167
366
  }
168
367
  },
169
- setup(a) {
170
- const e = a, l = R(() => {
368
+ setup(o) {
369
+ const e = o, a = R(() => {
171
370
  switch (e.size) {
172
371
  case "xs":
173
372
  return "sl-h-4 sl-w-4";
@@ -180,47 +379,47 @@ const re = {
180
379
  default:
181
380
  return "sl-h-8 sl-w-8";
182
381
  }
183
- }), n = H(e.progress);
184
- return W(() => e.progress, (m) => {
185
- n.value = m;
186
- }), (m, r) => (p(), u("div", {
187
- class: G(["sl-relative", l.value])
382
+ }), s = H(e.progress);
383
+ return W(() => e.progress, (r) => {
384
+ s.value = r;
385
+ }), (r, l) => (c(), p("div", {
386
+ class: G(["sl-relative", a.value])
188
387
  }, [
189
- (p(), u("svg", re, [
190
- r[0] || (r[0] = s("path", {
388
+ (c(), p("svg", ie, [
389
+ l[0] || (l[0] = n("path", {
191
390
  class: "sl-fill-none sl-stroke-gray-300",
192
391
  "stroke-width": "3.8",
193
392
  d: "M18 2.0845 a 15.9155 15.9155 0 0 1 0 31.831 a 15.9155 15.9155 0 0 1 0 -31.831"
194
393
  }, null, -1)),
195
- s("path", {
394
+ n("path", {
196
395
  class: "sl-fill-none sl-stroke-stachelock-600 sl-stroke-linecap-round sl-transition-[stroke-dasharray] sl-duration-500 sl-ease-out",
197
- "stroke-dasharray": n.value + ", 100",
396
+ "stroke-dasharray": s.value + ", 100",
198
397
  "stroke-width": "3.8",
199
398
  d: "M18 2.0845 a 15.9155 15.9155 0 0 1 0 31.831 a 15.9155 15.9155 0 0 1 0 -31.831"
200
399
  }, null, 8, me)
201
400
  ])),
202
- a.label && a.label.length > 0 ? (p(), u("div", ie, f(a.label), 1)) : h("", !0),
203
- a.showProgressLabel ? (p(), u("div", de, f(n.value) + "% ", 1)) : h("", !0)
401
+ o.label && o.label.length > 0 ? (c(), p("div", de, u(o.label), 1)) : h("", !0),
402
+ o.showProgressLabel ? (c(), p("div", pe, u(s.value) + "% ", 1)) : h("", !0)
204
403
  ], 2));
205
404
  }
206
- }), pe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
405
+ }), fe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
207
406
  __proto__: null,
208
- CalendarDashboard: O,
209
- CalendarHeader: C,
210
- DayCalendar: v,
211
- EventCard: I,
407
+ CalendarDashboard: U,
408
+ CalendarHeader: $,
409
+ DayCalendar: C,
410
+ EventCard: v,
212
411
  EventsList: S,
213
412
  MonthCalendar: w,
214
- WeekCalendar: $,
413
+ WeekCalendar: I,
215
414
  YearCalendar: T
216
- }, Symbol.toStringTag, { value: "Module" })), ce = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
415
+ }, Symbol.toStringTag, { value: "Module" })), ue = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
217
416
  __proto__: null,
218
- DynamicForm: k,
417
+ DynamicForm: F,
219
418
  FormField: L,
220
- FormFieldWrapper: N
221
- }, Symbol.toStringTag, { value: "Module" })), fe = { class: "sl-bg-white sl-rounded-lg sl-shadow sl-p-6" }, ge = { class: "sl-space-y-8" }, _e = { class: "sl-grid sl-grid-cols-1 sl-md:grid-cols-2 sl-gap-6" }, be = { class: "sl-bg-gray-50 sl-rounded-md sl-p-4 sl-text-sm sl-text-gray-700" }, xe = { class: "sl-whitespace-pre-wrap" }, U = /* @__PURE__ */ y({
419
+ FormFieldWrapper: V
420
+ }, Symbol.toStringTag, { value: "Module" })), ge = { class: "sl-bg-white sl-rounded-lg sl-shadow sl-p-6" }, be = { class: "sl-space-y-8" }, xe = { class: "sl-grid sl-grid-cols-1 sl-md:grid-cols-2 sl-gap-6" }, ye = { class: "sl-bg-gray-50 sl-rounded-md sl-p-4 sl-text-sm sl-text-gray-700" }, he = { class: "sl-whitespace-pre-wrap" }, B = /* @__PURE__ */ _({
222
421
  __name: "InputsShowcase",
223
- setup(a) {
422
+ setup(o) {
224
423
  const e = Y({
225
424
  text: "",
226
425
  textArea: "",
@@ -229,18 +428,18 @@ const re = {
229
428
  selectedFruit: null,
230
429
  selectedLanguages: [],
231
430
  selectedCity: null
232
- }), l = [
431
+ }), a = [
233
432
  { id: 1, name: "Apple" },
234
433
  { id: 2, name: "Banana" },
235
434
  { id: 3, name: "Cherry" },
236
435
  { id: 4, name: "Durian", disabled: !0 }
237
- ], n = [
436
+ ], s = [
238
437
  { id: 1, name: "TypeScript" },
239
438
  { id: 2, name: "JavaScript" },
240
439
  { id: 3, name: "Python" },
241
440
  { id: 4, name: "Go" },
242
441
  { id: 5, name: "Rust" }
243
- ], m = [
442
+ ], r = [
244
443
  { id: 1, name: "New York" },
245
444
  { id: 2, name: "San Francisco" },
246
445
  { id: 3, name: "Seattle" },
@@ -250,165 +449,165 @@ const re = {
250
449
  { id: 7, name: "Miami" },
251
450
  { id: 8, name: "Boston" }
252
451
  ];
253
- return (r, t) => (p(), u("section", fe, [
254
- t[15] || (t[15] = s("h2", { class: "sl-text-xl sl-font-semibold sl-mb-4" }, "All Inputs Showcase", -1)),
255
- s("div", ge, [
256
- s("div", null, [
257
- t[7] || (t[7] = s("h3", { class: "sl-text-sm sl-font-medium sl-text-gray-700 sl-mb-2" }, "Text Input", -1)),
258
- d(i, {
452
+ return (l, t) => (c(), p("section", ge, [
453
+ t[15] || (t[15] = n("h2", { class: "sl-text-xl sl-font-semibold sl-mb-4" }, "All Inputs Showcase", -1)),
454
+ n("div", be, [
455
+ n("div", null, [
456
+ t[7] || (t[7] = n("h3", { class: "sl-text-sm sl-font-medium sl-text-gray-700 sl-mb-2" }, "Text Input", -1)),
457
+ d(m, {
259
458
  name: "demoText",
260
459
  label: "Text Input",
261
460
  placeholder: "Type something...",
262
461
  value: e.text,
263
- "onUpdate:value": t[0] || (t[0] = (o) => e.text = o)
462
+ "onUpdate:value": t[0] || (t[0] = (i) => e.text = i)
264
463
  }, null, 8, ["value"])
265
464
  ]),
266
- s("div", null, [
267
- t[8] || (t[8] = s("h3", { class: "sl-text-sm sl-font-medium sl-text-gray-700 sl-mb-2" }, "Text Area", -1)),
268
- d(b, {
465
+ n("div", null, [
466
+ t[8] || (t[8] = n("h3", { class: "sl-text-sm sl-font-medium sl-text-gray-700 sl-mb-2" }, "Text Area", -1)),
467
+ d(x, {
269
468
  name: "demoTextArea",
270
469
  label: "Text Area",
271
470
  placeholder: "Write a longer message...",
272
471
  rows: 4,
273
472
  maxlength: 200,
274
473
  modelValue: e.textArea,
275
- "onUpdate:modelValue": t[1] || (t[1] = (o) => e.textArea = o)
474
+ "onUpdate:modelValue": t[1] || (t[1] = (i) => e.textArea = i)
276
475
  }, null, 8, ["modelValue"])
277
476
  ]),
278
- s("div", null, [
279
- t[9] || (t[9] = s("h3", { class: "sl-text-sm sl-font-medium sl-text-gray-700 sl-mb-2" }, "Switch", -1)),
280
- d(x, {
477
+ n("div", null, [
478
+ t[9] || (t[9] = n("h3", { class: "sl-text-sm sl-font-medium sl-text-gray-700 sl-mb-2" }, "Switch", -1)),
479
+ d(y, {
281
480
  name: "demoSwitch",
282
481
  label: "Enable feature",
283
482
  modelValue: e.switchOn,
284
- "onUpdate:modelValue": t[2] || (t[2] = (o) => e.switchOn = o),
483
+ "onUpdate:modelValue": t[2] || (t[2] = (i) => e.switchOn = i),
285
484
  textTrue: "ON",
286
485
  textFalse: "OFF"
287
486
  }, null, 8, ["modelValue"])
288
487
  ]),
289
- s("div", null, [
290
- t[10] || (t[10] = s("h3", { class: "sl-text-sm sl-font-medium sl-text-gray-700 sl-mb-2" }, "Checkbox", -1)),
488
+ n("div", null, [
489
+ t[10] || (t[10] = n("h3", { class: "sl-text-sm sl-font-medium sl-text-gray-700 sl-mb-2" }, "Checkbox", -1)),
291
490
  d(g, {
292
491
  name: "demoCheckbox",
293
492
  label: "I agree to the terms",
294
493
  modelValue: e.checkbox,
295
- "onUpdate:modelValue": t[3] || (t[3] = (o) => e.checkbox = o)
494
+ "onUpdate:modelValue": t[3] || (t[3] = (i) => e.checkbox = i)
296
495
  }, null, 8, ["modelValue"])
297
496
  ]),
298
- s("div", _e, [
299
- s("div", null, [
300
- t[11] || (t[11] = s("h3", { class: "sl-text-sm sl-font-medium sl-text-gray-700 sl-mb-2" }, "Select (Single)", -1)),
301
- d(c, {
497
+ n("div", xe, [
498
+ n("div", null, [
499
+ t[11] || (t[11] = n("h3", { class: "sl-text-sm sl-font-medium sl-text-gray-700 sl-mb-2" }, "Select (Single)", -1)),
500
+ d(f, {
302
501
  name: "demoSelect",
303
502
  label: "Favorite Fruit",
304
503
  placeholder: "Select a fruit",
305
- items: l,
504
+ items: a,
306
505
  modelValue: e.selectedFruit,
307
- "onUpdate:modelValue": t[4] || (t[4] = (o) => e.selectedFruit = o)
506
+ "onUpdate:modelValue": t[4] || (t[4] = (i) => e.selectedFruit = i)
308
507
  }, null, 8, ["modelValue"])
309
508
  ]),
310
- s("div", null, [
311
- t[12] || (t[12] = s("h3", { class: "sl-text-sm sl-font-medium sl-text-gray-700 sl-mb-2" }, "Select (Multiple)", -1)),
312
- d(c, {
509
+ n("div", null, [
510
+ t[12] || (t[12] = n("h3", { class: "sl-text-sm sl-font-medium sl-text-gray-700 sl-mb-2" }, "Select (Multiple)", -1)),
511
+ d(f, {
313
512
  name: "demoSelectMulti",
314
513
  label: "Favorite Languages",
315
514
  placeholder: "Select languages",
316
- items: n,
515
+ items: s,
317
516
  multiple: "",
318
517
  showAll: "",
319
518
  modelValue: e.selectedLanguages,
320
- "onUpdate:modelValue": t[5] || (t[5] = (o) => e.selectedLanguages = o)
519
+ "onUpdate:modelValue": t[5] || (t[5] = (i) => e.selectedLanguages = i)
321
520
  }, null, 8, ["modelValue"])
322
521
  ])
323
522
  ]),
324
- s("div", null, [
325
- t[13] || (t[13] = s("h3", { class: "sl-text-sm sl-font-medium sl-text-gray-700 sl-mb-2" }, "Combobox", -1)),
326
- d(_, {
523
+ n("div", null, [
524
+ t[13] || (t[13] = n("h3", { class: "sl-text-sm sl-font-medium sl-text-gray-700 sl-mb-2" }, "Combobox", -1)),
525
+ d(b, {
327
526
  name: "demoCombobox",
328
527
  label: "Search a City",
329
528
  placeholder: "Start typing...",
330
- items: m,
529
+ items: r,
331
530
  modelValue: e.selectedCity,
332
- "onUpdate:modelValue": t[6] || (t[6] = (o) => e.selectedCity = o)
531
+ "onUpdate:modelValue": t[6] || (t[6] = (i) => e.selectedCity = i)
333
532
  }, null, 8, ["modelValue"])
334
533
  ]),
335
- s("div", be, [
336
- t[14] || (t[14] = s("div", { class: "sl-font-semibold sl-mb-1" }, "State", -1)),
337
- s("pre", xe, f(e), 1)
534
+ n("div", ye, [
535
+ t[14] || (t[14] = n("div", { class: "sl-font-semibold sl-mb-1" }, "State", -1)),
536
+ n("pre", he, u(e), 1)
338
537
  ])
339
538
  ])
340
539
  ]));
341
540
  }
342
- }), he = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
541
+ }), _e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
343
542
  __proto__: null,
344
543
  CheckboxInput: g,
345
- ComboboxInput: _,
346
- InputsShowcase: U,
347
- SelectInput: c,
348
- SwitchInput: x,
349
- TagifyInput: M,
350
- TextAreaInput: b
351
- }, Symbol.toStringTag, { value: "Module" })), ye = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
544
+ ComboboxInput: b,
545
+ InputsShowcase: B,
546
+ SelectInput: f,
547
+ SwitchInput: y,
548
+ TagifyInput: E,
549
+ TextAreaInput: x
550
+ }, Symbol.toStringTag, { value: "Module" })), $e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
352
551
  __proto__: null,
353
- DashboardLayout: F,
354
- DefaultLayout: V,
552
+ DashboardLayout: j,
553
+ DefaultLayout: A,
355
554
  HeaderLayout: D,
356
- NavigationGroup: B,
357
- NavigationItem: P,
358
- SidebarLayout: A
555
+ NavigationGroup: O,
556
+ NavigationItem: M,
557
+ SidebarLayout: N
359
558
  }, Symbol.toStringTag, { value: "Module" })), Ce = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
360
559
  __proto__: null,
361
560
  Avatar: q,
362
561
  Badge: J,
363
562
  Breadcrumb: K,
364
563
  Button: Q,
365
- CalendarDashboard: O,
366
- CalendarHeader: C,
564
+ CalendarDashboard: U,
565
+ CalendarHeader: $,
367
566
  CheckboxInput: g,
368
- ComboboxInput: _,
369
- DashboardLayout: F,
370
- DayCalendar: v,
371
- DefaultLayout: V,
372
- DynamicForm: k,
373
- EventCard: I,
567
+ ComboboxInput: b,
568
+ DashboardLayout: j,
569
+ DayCalendar: C,
570
+ DefaultLayout: A,
571
+ DynamicForm: F,
572
+ EventCard: v,
374
573
  EventsList: S,
375
574
  FormField: L,
376
- FormFieldWrapper: N,
575
+ FormFieldWrapper: V,
377
576
  HeaderLayout: D,
378
- InputsShowcase: U,
577
+ InputsShowcase: B,
379
578
  Loading: X,
380
579
  LoadingDots: Z,
381
580
  Modal: ee,
382
581
  MonthCalendar: w,
383
582
  NavLink: te,
384
- NavigationGroup: B,
385
- NavigationItem: P,
386
- ProgressBar: se,
387
- RadialProgressBar: ue,
388
- SelectInput: c,
389
- SidebarLayout: A,
390
- SwitchInput: x,
583
+ NavigationGroup: O,
584
+ NavigationItem: M,
585
+ ProgressBar: oe,
586
+ RadialProgressBar: ce,
587
+ SelectInput: f,
588
+ SidebarLayout: N,
589
+ SwitchInput: y,
391
590
  Table: ae,
392
- TagifyInput: M,
393
- TextAreaInput: b,
394
- TextInput: i,
395
- Transition: oe,
396
- WeekCalendar: $,
591
+ TagifyInput: E,
592
+ TextAreaInput: x,
593
+ TextInput: m,
594
+ Transition: se,
595
+ WeekCalendar: I,
397
596
  YearCalendar: T
398
597
  }, Symbol.toStringTag, { value: "Module" })), ve = {
399
598
  ...Ce,
400
- ...ye,
401
- ...he,
402
- ...pe,
403
- ...ce
404
- }, rt = {
405
- install(a, e = {}) {
406
- const { prefix: l = "Sl", installAll: n = !1, components: m } = e;
407
- Object.entries(ve).forEach(([r, t]) => {
408
- if (n || m && m.includes(r) || !m && !n) {
409
- a.component(r, t);
410
- const z = r.startsWith(l) ? r : `${l}${r}`;
411
- a.component(z, t);
599
+ ...$e,
600
+ ..._e,
601
+ ...fe,
602
+ ...ue
603
+ }, pt = {
604
+ install(o, e = {}) {
605
+ const { prefix: a = "Sl", installAll: s = !1, components: r } = e;
606
+ Object.entries(ve).forEach(([l, t]) => {
607
+ if (s || r && r.includes(l) || !r && !s) {
608
+ o.component(l, t);
609
+ const z = l.startsWith(a) ? l : `${a}${l}`;
610
+ o.component(z, t);
412
611
  }
413
612
  });
414
613
  }
@@ -418,48 +617,52 @@ export {
418
617
  J as Badge,
419
618
  K as Breadcrumb,
420
619
  Q as Button,
421
- O as CalendarDashboard,
422
- C as CalendarHeader,
620
+ U as CalendarDashboard,
621
+ $ as CalendarHeader,
423
622
  g as CheckboxInput,
424
- _ as ComboboxInput,
623
+ b as ComboboxInput,
425
624
  ne as ComponentRegistry,
426
- F as DashboardLayout,
427
- v as DayCalendar,
428
- V as DefaultLayout,
429
- k as DynamicForm,
430
- I as EventCard,
625
+ j as DashboardLayout,
626
+ C as DayCalendar,
627
+ A as DefaultLayout,
628
+ F as DynamicForm,
629
+ v as EventCard,
431
630
  S as EventsList,
432
631
  L as FormField,
433
- N as FormFieldWrapper,
632
+ V as FormFieldWrapper,
434
633
  D as HeaderLayout,
435
- U as InputsShowcase,
634
+ B as InputsShowcase,
436
635
  X as Loading,
437
636
  Z as LoadingDots,
438
637
  ee as Modal,
439
638
  w as MonthCalendar,
440
639
  te as NavLink,
441
- B as NavigationGroup,
442
- P as NavigationItem,
443
- se as ProgressBar,
444
- ue as RadialProgressBar,
445
- c as SelectInput,
446
- A as SidebarLayout,
447
- rt as StachelockUI,
448
- x as SwitchInput,
640
+ O as NavigationGroup,
641
+ M as NavigationItem,
642
+ oe as ProgressBar,
643
+ ce as RadialProgressBar,
644
+ f as SelectInput,
645
+ N as SidebarLayout,
646
+ pt as StachelockUI,
647
+ y as SwitchInput,
449
648
  ae as Table,
450
- M as TagifyInput,
451
- b as TextAreaInput,
452
- i as TextInput,
453
- oe as Transition,
454
- $ as WeekCalendar,
649
+ E as TagifyInput,
650
+ x as TextAreaInput,
651
+ m as TextInput,
652
+ se as Transition,
653
+ I as WeekCalendar,
455
654
  T as YearCalendar,
456
- j as componentRegistry,
457
- rt as default,
458
- le as defaultComponentMap,
459
- dt as generateDeterministicId,
460
- ut as generateId,
461
- nt as getComponent,
462
- lt as registerComponent,
463
- pt as sanitizeId
655
+ P as componentRegistry,
656
+ pt as default,
657
+ re as defaultComponentMap,
658
+ le as defaultDesignTokens,
659
+ mt as generateCSSVariables,
660
+ ut as generateDeterministicId,
661
+ gt as generateId,
662
+ dt as generateTailwindConfig,
663
+ lt as getComponent,
664
+ it as mergeDesignTokens,
665
+ nt as registerComponent,
666
+ bt as sanitizeId
464
667
  };
465
668
  //# sourceMappingURL=index.js.map