@stachelock/ui 0.1.3 → 0.1.4

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 (84) hide show
  1. package/dist/{CalendarHeader.vue_vue_type_script_setup_true_lang-B3KQTxfD.js → CalendarHeader.vue_vue_type_script_setup_true_lang-Cirr0hMB.js} +2 -2
  2. package/dist/{CalendarHeader.vue_vue_type_script_setup_true_lang-B3KQTxfD.js.map → CalendarHeader.vue_vue_type_script_setup_true_lang-Cirr0hMB.js.map} +1 -1
  3. package/dist/ComboboxInput.vue_vue_type_script_setup_true_lang-2dJNxQUF.js +1300 -0
  4. package/dist/ComboboxInput.vue_vue_type_script_setup_true_lang-2dJNxQUF.js.map +1 -0
  5. package/dist/{DashboardLayout.vue_vue_type_script_setup_true_lang-CClxYrOW.js → DashboardLayout.vue_vue_type_script_setup_true_lang-VeZhdPhj.js} +38 -37
  6. package/dist/DashboardLayout.vue_vue_type_script_setup_true_lang-VeZhdPhj.js.map +1 -0
  7. package/dist/DynamicForm.vue_vue_type_script_setup_true_lang-BpfPAZiT.js +217 -0
  8. package/dist/DynamicForm.vue_vue_type_script_setup_true_lang-BpfPAZiT.js.map +1 -0
  9. package/dist/{DynamicFormField.vue_vue_type_script_setup_true_lang-qAwVNm--.js → DynamicFormField.vue_vue_type_script_setup_true_lang-DvT03FIS.js} +40 -24
  10. package/dist/DynamicFormField.vue_vue_type_script_setup_true_lang-DvT03FIS.js.map +1 -0
  11. package/dist/EventCard.vue_vue_type_script_setup_true_lang-YV1lfgUY.js +157 -0
  12. package/dist/EventCard.vue_vue_type_script_setup_true_lang-YV1lfgUY.js.map +1 -0
  13. package/dist/EventsList.vue_vue_type_script_setup_true_lang-Cn_WOpZi.js +103 -0
  14. package/dist/EventsList.vue_vue_type_script_setup_true_lang-Cn_WOpZi.js.map +1 -0
  15. package/dist/SelectInput.vue_vue_type_script_setup_true_lang-BPjHLHdM.js +522 -0
  16. package/dist/SelectInput.vue_vue_type_script_setup_true_lang-BPjHLHdM.js.map +1 -0
  17. package/dist/{SidebarLayout.vue_vue_type_script_setup_true_lang-CQIW5dy_.js → SidebarLayout.vue_vue_type_script_setup_true_lang-J1nfUTdM.js} +28 -27
  18. package/dist/{SidebarLayout.vue_vue_type_script_setup_true_lang-CQIW5dy_.js.map → SidebarLayout.vue_vue_type_script_setup_true_lang-J1nfUTdM.js.map} +1 -1
  19. package/dist/SwitchInput.vue_vue_type_script_setup_true_lang-BFr2SByh.js +273 -0
  20. package/dist/SwitchInput.vue_vue_type_script_setup_true_lang-BFr2SByh.js.map +1 -0
  21. package/dist/{TagifyInput.vue_vue_type_script_setup_true_lang-RHqhKoK5.js → TagifyInput.vue_vue_type_script_setup_true_lang-DRR6jt_8.js} +60 -50
  22. package/dist/TagifyInput.vue_vue_type_script_setup_true_lang-DRR6jt_8.js.map +1 -0
  23. package/dist/UiBreadcrumb.vue_vue_type_script_setup_true_lang-quGuN9v4.js +82 -0
  24. package/dist/UiBreadcrumb.vue_vue_type_script_setup_true_lang-quGuN9v4.js.map +1 -0
  25. package/dist/{UiModal.vue_vue_type_script_setup_true_lang-CMk62qeq.js → UiModal.vue_vue_type_script_setup_true_lang-SAo39zpS.js} +21 -20
  26. package/dist/{UiModal.vue_vue_type_script_setup_true_lang-CMk62qeq.js.map → UiModal.vue_vue_type_script_setup_true_lang-SAo39zpS.js.map} +1 -1
  27. package/dist/XMarkIcon-C4wILUsz.js +40 -0
  28. package/dist/XMarkIcon-C4wILUsz.js.map +1 -0
  29. package/dist/calculate-active-index-CksdUwZY.js +87 -0
  30. package/dist/calculate-active-index-CksdUwZY.js.map +1 -0
  31. package/dist/calendars/CalendarDashboard.js +2 -2
  32. package/dist/calendars/CalendarHeader.js +1 -1
  33. package/dist/calendars/EventCard.js +1 -1
  34. package/dist/calendars/EventsList.js +1 -1
  35. package/dist/components/Breadcrumb.js +1 -1
  36. package/dist/components/Modal.js +1 -1
  37. package/dist/components/RadialProgressBar.d.ts +2 -2
  38. package/dist/components/RadialProgressBar.js +1 -1
  39. package/dist/description-CBd3BJ9O.js +30 -0
  40. package/dist/description-CBd3BJ9O.js.map +1 -0
  41. package/dist/dialog-U1KNiPzc.js +493 -0
  42. package/dist/dialog-U1KNiPzc.js.map +1 -0
  43. package/dist/form-DQKuKVqJ.js +51 -0
  44. package/dist/form-DQKuKVqJ.js.map +1 -0
  45. package/dist/forms/DynamicForm.js +1 -1
  46. package/dist/forms/DynamicFormField.js +1 -1
  47. package/dist/forms/FormFieldWrapper.js +71 -42
  48. package/dist/forms/FormFieldWrapper.js.map +1 -1
  49. package/dist/index.js +307 -242
  50. package/dist/index.js.map +1 -1
  51. package/dist/inputs/ComboboxInput.js +1 -1
  52. package/dist/inputs/SelectInput.js +1 -1
  53. package/dist/inputs/SwitchInput.js +1 -1
  54. package/dist/inputs/TagifyInput.js +1 -1
  55. package/dist/keyboard-DJD8TwH4.js +113 -0
  56. package/dist/keyboard-DJD8TwH4.js.map +1 -0
  57. package/dist/layouts/DashboardLayout.js +1 -1
  58. package/dist/layouts/SidebarLayout.js +1 -1
  59. package/dist/open-closed-DgcU-HDT.js +179 -0
  60. package/dist/open-closed-DgcU-HDT.js.map +1 -0
  61. package/dist/src/components/layouts/DashboardLayout.d.ts.map +1 -1
  62. package/dist/src/components/layouts/SidebarLayout.d.ts.map +1 -1
  63. package/dist/transition-CuxxW9dY.js +209 -0
  64. package/dist/transition-CuxxW9dY.js.map +1 -0
  65. package/package.json +1 -1
  66. package/dist/ComboboxInput.vue_vue_type_script_setup_true_lang-DoJHjJsA.js +0 -304
  67. package/dist/ComboboxInput.vue_vue_type_script_setup_true_lang-DoJHjJsA.js.map +0 -1
  68. package/dist/DashboardLayout.vue_vue_type_script_setup_true_lang-CClxYrOW.js.map +0 -1
  69. package/dist/DynamicForm.vue_vue_type_script_setup_true_lang-BKhcXkNG.js +0 -201
  70. package/dist/DynamicForm.vue_vue_type_script_setup_true_lang-BKhcXkNG.js.map +0 -1
  71. package/dist/DynamicFormField.vue_vue_type_script_setup_true_lang-qAwVNm--.js.map +0 -1
  72. package/dist/EventCard.vue_vue_type_script_setup_true_lang-B3TP-mWX.js +0 -75
  73. package/dist/EventCard.vue_vue_type_script_setup_true_lang-B3TP-mWX.js.map +0 -1
  74. package/dist/EventsList.vue_vue_type_script_setup_true_lang-Cpc9A9Ev.js +0 -89
  75. package/dist/EventsList.vue_vue_type_script_setup_true_lang-Cpc9A9Ev.js.map +0 -1
  76. package/dist/SelectInput.vue_vue_type_script_setup_true_lang-BguP8xMU.js +0 -242
  77. package/dist/SelectInput.vue_vue_type_script_setup_true_lang-BguP8xMU.js.map +0 -1
  78. package/dist/SwitchInput.vue_vue_type_script_setup_true_lang-BagTQ6M0.js +0 -197
  79. package/dist/SwitchInput.vue_vue_type_script_setup_true_lang-BagTQ6M0.js.map +0 -1
  80. package/dist/TagifyInput.vue_vue_type_script_setup_true_lang-RHqhKoK5.js.map +0 -1
  81. package/dist/UiBreadcrumb.vue_vue_type_script_setup_true_lang-CMH47CoK.js +0 -68
  82. package/dist/UiBreadcrumb.vue_vue_type_script_setup_true_lang-CMH47CoK.js.map +0 -1
  83. package/dist/UiRadialProgressBar.vue_vue_type_script_setup_true_lang-BGCBJa2S.js +0 -72
  84. package/dist/UiRadialProgressBar.vue_vue_type_script_setup_true_lang-BGCBJa2S.js.map +0 -1
package/dist/index.js CHANGED
@@ -1,65 +1,64 @@
1
- import { a as ot, g as at, s as st } from "./id-DafBB_QF.js";
2
- import { defineAsyncComponent as P, defineComponent as j, reactive as N, createElementBlock as E, openBlock as U, createElementVNode as o, createVNode as m, toDisplayString as z } from "vue";
3
- import r from "./components/TextInput.js";
4
- import { _ as H } from "./UiAvatar.vue_vue_type_script_setup_true_lang-CDNjUA1L.js";
5
- import R from "./components/Badge.js";
6
- import { _ as W } from "./UiBreadcrumb.vue_vue_type_script_setup_true_lang-CMH47CoK.js";
7
- import G from "./components/Button.js";
8
- import { _ as Y } from "./UiLoading.vue_vue_type_script_setup_true_lang-DCz52-Me.js";
9
- import q from "./components/LoadingDots.js";
10
- import { _ as J } from "./UiModal.vue_vue_type_script_setup_true_lang-CMk62qeq.js";
11
- import { _ as K } from "./UiNavLink.vue_vue_type_script_setup_true_lang-Bz5oiCCk.js";
12
- import { _ as Q } from "./UiProgressBar.vue_vue_type_script_setup_true_lang-0zFKwh43.js";
13
- import { _ as X } from "./UiRadialProgressBar.vue_vue_type_script_setup_true_lang-BGCBJa2S.js";
14
- import { _ as Z } from "./UiTable.vue_vue_type_script_setup_true_lang-hI1_xamh.js";
15
- import { _ as ee } from "./UiTransition.vue_vue_type_script_setup_true_lang-DwBTj18t.js";
16
- import { _ as g } from "./CalendarHeader.vue_vue_type_script_setup_true_lang-B3KQTxfD.js";
17
- import { _ as b } from "./DayCalendar.vue_vue_type_script_setup_true_lang-xE5bCa3O.js";
18
- import { _ as x } from "./EventCard.vue_vue_type_script_setup_true_lang-B3TP-mWX.js";
19
- import { _ as C } from "./EventsList.vue_vue_type_script_setup_true_lang-Cpc9A9Ev.js";
20
- import { _ as y } from "./MonthCalendar.vue_vue_type_script_setup_true_lang-B9Bs0z8j.js";
21
- import { _ as h } from "./WeekCalendar.vue_vue_type_script_setup_true_lang-DAFQiRI9.js";
22
- import { _ as I } from "./YearCalendar.vue_vue_type_script_setup_true_lang-BfJkvmpN.js";
23
- import { _ as v } from "./DynamicForm.vue_vue_type_script_setup_true_lang-BKhcXkNG.js";
24
- import { _ as S } from "./DynamicFormField.vue_vue_type_script_setup_true_lang-qAwVNm--.js";
25
- import { _ as u } from "./CheckboxInput.vue_vue_type_script_setup_true_lang-tYAo46wK.js";
26
- import { _ as c } from "./ComboboxInput.vue_vue_type_script_setup_true_lang-DoJHjJsA.js";
27
- import { _ as f } from "./TextAreaInput.vue_vue_type_script_setup_true_lang-CbR651TU.js";
28
- import { _ } from "./SwitchInput.vue_vue_type_script_setup_true_lang-BagTQ6M0.js";
29
- import { _ as p } from "./SelectInput.vue_vue_type_script_setup_true_lang-BguP8xMU.js";
30
- import { _ as T } from "./TagifyInput.vue_vue_type_script_setup_true_lang-RHqhKoK5.js";
31
- import { _ as $ } from "./DashboardLayout.vue_vue_type_script_setup_true_lang-CClxYrOW.js";
32
- import { _ as w } from "./DefaultLayout.vue_vue_type_script_setup_true_lang-BZAz6aC-.js";
33
- import { _ as L } from "./HeaderLayout.vue_vue_type_script_setup_true_lang-BY2G6hCc.js";
34
- import { _ as k } from "./NavigationGroup.vue_vue_type_script_setup_true_lang-2WURj34G.js";
35
- import { _ as F } from "./NavigationItem.vue_vue_type_script_setup_true_lang-DiNg3gz2.js";
36
- import { _ as M } from "./SidebarLayout.vue_vue_type_script_setup_true_lang-CQIW5dy_.js";
37
- import D from "./calendars/CalendarDashboard.js";
38
- import V from "./forms/FormFieldWrapper.js";
39
- const te = {
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";
4
+ import { _ as q } from "./UiAvatar.vue_vue_type_script_setup_true_lang-CDNjUA1L.js";
5
+ import J from "./components/Badge.js";
6
+ import { _ as K } from "./UiBreadcrumb.vue_vue_type_script_setup_true_lang-quGuN9v4.js";
7
+ import Q from "./components/Button.js";
8
+ import { _ as X } from "./UiLoading.vue_vue_type_script_setup_true_lang-DCz52-Me.js";
9
+ import Z from "./components/LoadingDots.js";
10
+ import { _ as ee } from "./UiModal.vue_vue_type_script_setup_true_lang-SAo39zpS.js";
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";
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";
18
+ import { _ as S } from "./EventsList.vue_vue_type_script_setup_true_lang-Cn_WOpZi.js";
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";
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";
23
+ import { _ as L } from "./DynamicFormField.vue_vue_type_script_setup_true_lang-DvT03FIS.js";
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-VeZhdPhj.js";
31
+ import { _ as V } from "./DefaultLayout.vue_vue_type_script_setup_true_lang-BZAz6aC-.js";
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 = {
40
39
  text: {
41
40
  component: "TextInput",
42
- loader: () => Promise.resolve(r)
41
+ loader: () => Promise.resolve(i)
43
42
  },
44
43
  email: {
45
44
  component: "TextInput",
46
- loader: () => Promise.resolve(r)
45
+ loader: () => Promise.resolve(i)
47
46
  },
48
47
  password: {
49
48
  component: "TextInput",
50
- loader: () => Promise.resolve(r)
49
+ loader: () => Promise.resolve(i)
51
50
  },
52
51
  number: {
53
52
  component: "TextInput",
54
- loader: () => Promise.resolve(r)
53
+ loader: () => Promise.resolve(i)
55
54
  },
56
55
  tel: {
57
56
  component: "TextInput",
58
- loader: () => Promise.resolve(r)
57
+ loader: () => Promise.resolve(i)
59
58
  },
60
59
  url: {
61
60
  component: "TextInput",
62
- loader: () => Promise.resolve(r)
61
+ loader: () => Promise.resolve(i)
63
62
  },
64
63
  textarea: {
65
64
  component: "TextAreaInput",
@@ -82,35 +81,35 @@ const te = {
82
81
  loader: () => import("./inputs/SwitchInput.js")
83
82
  }
84
83
  };
85
- class oe {
86
- componentMap = { ...te };
84
+ class ne {
85
+ componentMap = { ...le };
87
86
  loadedComponents = /* @__PURE__ */ new Map();
88
87
  /**
89
88
  * Register a new component type
90
89
  */
91
- register(t, s, n) {
92
- this.componentMap[t] = { component: s, loader: n }, this.loadedComponents.delete(t);
90
+ register(e, l, n) {
91
+ this.componentMap[e] = { component: l, loader: n }, this.loadedComponents.delete(e);
93
92
  }
94
93
  /**
95
94
  * Get a component for a field type
96
95
  */
97
- getComponent(t) {
98
- const s = this.componentMap[t];
99
- if (!s)
100
- return console.warn(`Component type "${t}" is not registered`), null;
101
- if (this.loadedComponents.has(t))
102
- return this.loadedComponents.get(t);
103
- const n = P({
104
- loader: s.loader,
96
+ getComponent(e) {
97
+ const l = this.componentMap[e];
98
+ if (!l)
99
+ return console.warn(`Component type "${e}" is not registered`), null;
100
+ if (this.loadedComponents.has(e))
101
+ return this.loadedComponents.get(e);
102
+ const n = E({
103
+ loader: l.loader,
105
104
  delay: 0
106
105
  });
107
- return this.loadedComponents.set(t, n), n;
106
+ return this.loadedComponents.set(e, n), n;
108
107
  }
109
108
  /**
110
109
  * Check if a component type is registered
111
110
  */
112
- hasComponent(t) {
113
- return t in this.componentMap;
111
+ hasComponent(e) {
112
+ return e in this.componentMap;
114
113
  }
115
114
  /**
116
115
  * Get all registered component types
@@ -121,8 +120,8 @@ class oe {
121
120
  /**
122
121
  * Unregister a component type
123
122
  */
124
- unregister(t) {
125
- delete this.componentMap[t], this.loadedComponents.delete(t);
123
+ unregister(e) {
124
+ delete this.componentMap[e], this.loadedComponents.delete(e);
126
125
  }
127
126
  /**
128
127
  * Clear all cached components
@@ -131,32 +130,98 @@ class oe {
131
130
  this.loadedComponents.clear();
132
131
  }
133
132
  }
134
- const A = new oe();
135
- function Qe(l, t, s) {
136
- A.register(l, t, s);
133
+ const j = new ne();
134
+ function lt(a, e, l) {
135
+ j.register(a, e, l);
137
136
  }
138
- function Xe(l) {
139
- return A.getComponent(l);
137
+ function nt(a) {
138
+ return j.getComponent(a);
140
139
  }
141
- const ae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
140
+ const re = {
141
+ viewBox: "0 0 36 36",
142
+ class: "sl-transform -sl-rotate-90 sl-w-full sl-h-full"
143
+ }, me = ["stroke-dasharray"], ie = {
144
+ key: 0,
145
+ 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 = {
147
+ key: 1,
148
+ 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({
150
+ __name: "UiRadialProgressBar",
151
+ props: {
152
+ progress: {
153
+ type: Number,
154
+ default: 0
155
+ },
156
+ label: {
157
+ type: String,
158
+ default: ""
159
+ },
160
+ showProgressLabel: {
161
+ type: Boolean,
162
+ default: !1
163
+ },
164
+ size: {
165
+ type: String,
166
+ default: "md"
167
+ }
168
+ },
169
+ setup(a) {
170
+ const e = a, l = R(() => {
171
+ switch (e.size) {
172
+ case "xs":
173
+ return "sl-h-4 sl-w-4";
174
+ case "sm":
175
+ return "sl-h-8 sl-w-8";
176
+ case "md":
177
+ return "sl-h-12 sl-w-12";
178
+ case "lg":
179
+ return "sl-h-16 sl-w-16";
180
+ default:
181
+ return "sl-h-8 sl-w-8";
182
+ }
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])
188
+ }, [
189
+ (p(), u("svg", re, [
190
+ r[0] || (r[0] = s("path", {
191
+ class: "sl-fill-none sl-stroke-gray-300",
192
+ "stroke-width": "3.8",
193
+ 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
+ }, null, -1)),
195
+ s("path", {
196
+ 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",
198
+ "stroke-width": "3.8",
199
+ 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
+ }, null, 8, me)
201
+ ])),
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)
204
+ ], 2));
205
+ }
206
+ }), pe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
142
207
  __proto__: null,
143
- CalendarDashboard: D,
144
- CalendarHeader: g,
145
- DayCalendar: b,
146
- EventCard: x,
147
- EventsList: C,
148
- MonthCalendar: y,
149
- WeekCalendar: h,
150
- YearCalendar: I
151
- }, Symbol.toStringTag, { value: "Module" })), se = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
208
+ CalendarDashboard: O,
209
+ CalendarHeader: C,
210
+ DayCalendar: v,
211
+ EventCard: I,
212
+ EventsList: S,
213
+ MonthCalendar: w,
214
+ WeekCalendar: $,
215
+ YearCalendar: T
216
+ }, Symbol.toStringTag, { value: "Module" })), ce = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
152
217
  __proto__: null,
153
- DynamicForm: v,
154
- FormField: S,
155
- FormFieldWrapper: V
156
- }, Symbol.toStringTag, { value: "Module" })), ne = { class: "sl-bg-white sl-rounded-lg sl-shadow sl-p-6" }, le = { class: "sl-space-y-8" }, re = { class: "sl-grid sl-grid-cols-1 sl-md:grid-cols-2 sl-gap-6" }, me = { class: "sl-bg-gray-50 sl-rounded-md sl-p-4 sl-text-sm sl-text-gray-700" }, ie = { class: "sl-whitespace-pre-wrap" }, O = /* @__PURE__ */ j({
218
+ DynamicForm: k,
219
+ 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({
157
222
  __name: "InputsShowcase",
158
- setup(l) {
159
- const t = N({
223
+ setup(a) {
224
+ const e = Y({
160
225
  text: "",
161
226
  textArea: "",
162
227
  switchOn: !1,
@@ -164,7 +229,7 @@ const ae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
164
229
  selectedFruit: null,
165
230
  selectedLanguages: [],
166
231
  selectedCity: null
167
- }), s = [
232
+ }), l = [
168
233
  { id: 1, name: "Apple" },
169
234
  { id: 2, name: "Banana" },
170
235
  { id: 3, name: "Cherry" },
@@ -175,7 +240,7 @@ const ae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
175
240
  { id: 3, name: "Python" },
176
241
  { id: 4, name: "Go" },
177
242
  { id: 5, name: "Rust" }
178
- ], d = [
243
+ ], m = [
179
244
  { id: 1, name: "New York" },
180
245
  { id: 2, name: "San Francisco" },
181
246
  { id: 3, name: "Seattle" },
@@ -185,216 +250,216 @@ const ae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
185
250
  { id: 7, name: "Miami" },
186
251
  { id: 8, name: "Boston" }
187
252
  ];
188
- return (i, e) => (U(), E("section", ne, [
189
- e[15] || (e[15] = o("h2", { class: "sl-text-xl sl-font-semibold sl-mb-4" }, "All Inputs Showcase", -1)),
190
- o("div", le, [
191
- o("div", null, [
192
- e[7] || (e[7] = o("h3", { class: "sl-text-sm sl-font-medium sl-text-gray-700 sl-mb-2" }, "Text Input", -1)),
193
- m(r, {
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, {
194
259
  name: "demoText",
195
260
  label: "Text Input",
196
261
  placeholder: "Type something...",
197
- value: t.text,
198
- "onUpdate:value": e[0] || (e[0] = (a) => t.text = a)
262
+ value: e.text,
263
+ "onUpdate:value": t[0] || (t[0] = (o) => e.text = o)
199
264
  }, null, 8, ["value"])
200
265
  ]),
201
- o("div", null, [
202
- e[8] || (e[8] = o("h3", { class: "sl-text-sm sl-font-medium sl-text-gray-700 sl-mb-2" }, "Text Area", -1)),
203
- m(f, {
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, {
204
269
  name: "demoTextArea",
205
270
  label: "Text Area",
206
271
  placeholder: "Write a longer message...",
207
272
  rows: 4,
208
273
  maxlength: 200,
209
- modelValue: t.textArea,
210
- "onUpdate:modelValue": e[1] || (e[1] = (a) => t.textArea = a)
274
+ modelValue: e.textArea,
275
+ "onUpdate:modelValue": t[1] || (t[1] = (o) => e.textArea = o)
211
276
  }, null, 8, ["modelValue"])
212
277
  ]),
213
- o("div", null, [
214
- e[9] || (e[9] = o("h3", { class: "sl-text-sm sl-font-medium sl-text-gray-700 sl-mb-2" }, "Switch", -1)),
215
- m(_, {
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, {
216
281
  name: "demoSwitch",
217
282
  label: "Enable feature",
218
- modelValue: t.switchOn,
219
- "onUpdate:modelValue": e[2] || (e[2] = (a) => t.switchOn = a),
283
+ modelValue: e.switchOn,
284
+ "onUpdate:modelValue": t[2] || (t[2] = (o) => e.switchOn = o),
220
285
  textTrue: "ON",
221
286
  textFalse: "OFF"
222
287
  }, null, 8, ["modelValue"])
223
288
  ]),
224
- o("div", null, [
225
- e[10] || (e[10] = o("h3", { class: "sl-text-sm sl-font-medium sl-text-gray-700 sl-mb-2" }, "Checkbox", -1)),
226
- m(u, {
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)),
291
+ d(g, {
227
292
  name: "demoCheckbox",
228
293
  label: "I agree to the terms",
229
- modelValue: t.checkbox,
230
- "onUpdate:modelValue": e[3] || (e[3] = (a) => t.checkbox = a)
294
+ modelValue: e.checkbox,
295
+ "onUpdate:modelValue": t[3] || (t[3] = (o) => e.checkbox = o)
231
296
  }, null, 8, ["modelValue"])
232
297
  ]),
233
- o("div", re, [
234
- o("div", null, [
235
- e[11] || (e[11] = o("h3", { class: "sl-text-sm sl-font-medium sl-text-gray-700 sl-mb-2" }, "Select (Single)", -1)),
236
- m(p, {
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, {
237
302
  name: "demoSelect",
238
303
  label: "Favorite Fruit",
239
304
  placeholder: "Select a fruit",
240
- items: s,
241
- modelValue: t.selectedFruit,
242
- "onUpdate:modelValue": e[4] || (e[4] = (a) => t.selectedFruit = a)
305
+ items: l,
306
+ modelValue: e.selectedFruit,
307
+ "onUpdate:modelValue": t[4] || (t[4] = (o) => e.selectedFruit = o)
243
308
  }, null, 8, ["modelValue"])
244
309
  ]),
245
- o("div", null, [
246
- e[12] || (e[12] = o("h3", { class: "sl-text-sm sl-font-medium sl-text-gray-700 sl-mb-2" }, "Select (Multiple)", -1)),
247
- m(p, {
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, {
248
313
  name: "demoSelectMulti",
249
314
  label: "Favorite Languages",
250
315
  placeholder: "Select languages",
251
316
  items: n,
252
317
  multiple: "",
253
318
  showAll: "",
254
- modelValue: t.selectedLanguages,
255
- "onUpdate:modelValue": e[5] || (e[5] = (a) => t.selectedLanguages = a)
319
+ modelValue: e.selectedLanguages,
320
+ "onUpdate:modelValue": t[5] || (t[5] = (o) => e.selectedLanguages = o)
256
321
  }, null, 8, ["modelValue"])
257
322
  ])
258
323
  ]),
259
- o("div", null, [
260
- e[13] || (e[13] = o("h3", { class: "sl-text-sm sl-font-medium sl-text-gray-700 sl-mb-2" }, "Combobox", -1)),
261
- m(c, {
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(_, {
262
327
  name: "demoCombobox",
263
328
  label: "Search a City",
264
329
  placeholder: "Start typing...",
265
- items: d,
266
- modelValue: t.selectedCity,
267
- "onUpdate:modelValue": e[6] || (e[6] = (a) => t.selectedCity = a)
330
+ items: m,
331
+ modelValue: e.selectedCity,
332
+ "onUpdate:modelValue": t[6] || (t[6] = (o) => e.selectedCity = o)
268
333
  }, null, 8, ["modelValue"])
269
334
  ]),
270
- o("div", me, [
271
- e[14] || (e[14] = o("div", { class: "sl-font-semibold sl-mb-1" }, "State", -1)),
272
- o("pre", ie, z(t), 1)
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)
273
338
  ])
274
339
  ])
275
340
  ]));
276
341
  }
277
- }), de = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
342
+ }), he = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
278
343
  __proto__: null,
279
- CheckboxInput: u,
280
- ComboboxInput: c,
281
- InputsShowcase: O,
282
- SelectInput: p,
283
- SwitchInput: _,
284
- TagifyInput: T,
285
- TextAreaInput: f
286
- }, Symbol.toStringTag, { value: "Module" })), pe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
344
+ 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({
287
352
  __proto__: null,
288
- DashboardLayout: $,
289
- DefaultLayout: w,
290
- HeaderLayout: L,
291
- NavigationGroup: k,
292
- NavigationItem: F,
293
- SidebarLayout: M
294
- }, Symbol.toStringTag, { value: "Module" })), ue = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
353
+ DashboardLayout: F,
354
+ DefaultLayout: V,
355
+ HeaderLayout: D,
356
+ NavigationGroup: B,
357
+ NavigationItem: P,
358
+ SidebarLayout: A
359
+ }, Symbol.toStringTag, { value: "Module" })), Ce = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
295
360
  __proto__: null,
296
- Avatar: H,
297
- Badge: R,
298
- Breadcrumb: W,
299
- Button: G,
300
- CalendarDashboard: D,
301
- CalendarHeader: g,
302
- CheckboxInput: u,
303
- ComboboxInput: c,
304
- DashboardLayout: $,
305
- DayCalendar: b,
306
- DefaultLayout: w,
307
- DynamicForm: v,
308
- EventCard: x,
309
- EventsList: C,
310
- FormField: S,
311
- FormFieldWrapper: V,
312
- HeaderLayout: L,
313
- InputsShowcase: O,
314
- Loading: Y,
315
- LoadingDots: q,
316
- Modal: J,
317
- MonthCalendar: y,
318
- NavLink: K,
319
- NavigationGroup: k,
320
- NavigationItem: F,
321
- ProgressBar: Q,
322
- RadialProgressBar: X,
323
- SelectInput: p,
324
- SidebarLayout: M,
325
- SwitchInput: _,
326
- Table: Z,
327
- TagifyInput: T,
328
- TextAreaInput: f,
329
- TextInput: r,
330
- Transition: ee,
331
- WeekCalendar: h,
332
- YearCalendar: I
333
- }, Symbol.toStringTag, { value: "Module" })), ce = {
334
- ...ue,
361
+ Avatar: q,
362
+ Badge: J,
363
+ Breadcrumb: K,
364
+ Button: Q,
365
+ CalendarDashboard: O,
366
+ CalendarHeader: C,
367
+ CheckboxInput: g,
368
+ ComboboxInput: _,
369
+ DashboardLayout: F,
370
+ DayCalendar: v,
371
+ DefaultLayout: V,
372
+ DynamicForm: k,
373
+ EventCard: I,
374
+ EventsList: S,
375
+ FormField: L,
376
+ FormFieldWrapper: N,
377
+ HeaderLayout: D,
378
+ InputsShowcase: U,
379
+ Loading: X,
380
+ LoadingDots: Z,
381
+ Modal: ee,
382
+ MonthCalendar: w,
383
+ NavLink: te,
384
+ NavigationGroup: B,
385
+ NavigationItem: P,
386
+ ProgressBar: se,
387
+ RadialProgressBar: ue,
388
+ SelectInput: c,
389
+ SidebarLayout: A,
390
+ SwitchInput: x,
391
+ Table: ae,
392
+ TagifyInput: M,
393
+ TextAreaInput: b,
394
+ TextInput: i,
395
+ Transition: oe,
396
+ WeekCalendar: $,
397
+ YearCalendar: T
398
+ }, Symbol.toStringTag, { value: "Module" })), ve = {
399
+ ...Ce,
400
+ ...ye,
401
+ ...he,
335
402
  ...pe,
336
- ...de,
337
- ...ae,
338
- ...se
339
- }, Ze = {
340
- install(l, t = {}) {
341
- const { prefix: s = "Sl", installAll: n = !1, components: d } = t;
342
- Object.entries(ce).forEach(([i, e]) => {
343
- if (n || d && d.includes(i) || !d && !n) {
344
- l.component(i, e);
345
- const B = i.startsWith(s) ? i : `${s}${i}`;
346
- l.component(B, e);
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);
347
412
  }
348
413
  });
349
414
  }
350
415
  };
351
416
  export {
352
- H as Avatar,
353
- R as Badge,
354
- W as Breadcrumb,
355
- G as Button,
356
- D as CalendarDashboard,
357
- g as CalendarHeader,
358
- u as CheckboxInput,
359
- c as ComboboxInput,
360
- oe as ComponentRegistry,
361
- $ as DashboardLayout,
362
- b as DayCalendar,
363
- w as DefaultLayout,
364
- v as DynamicForm,
365
- x as EventCard,
366
- C as EventsList,
367
- S as FormField,
368
- V as FormFieldWrapper,
369
- L as HeaderLayout,
370
- O as InputsShowcase,
371
- Y as Loading,
372
- q as LoadingDots,
373
- J as Modal,
374
- y as MonthCalendar,
375
- K as NavLink,
376
- k as NavigationGroup,
377
- F as NavigationItem,
378
- Q as ProgressBar,
379
- X as RadialProgressBar,
380
- p as SelectInput,
381
- M as SidebarLayout,
382
- Ze as StachelockUI,
383
- _ as SwitchInput,
384
- Z as Table,
385
- T as TagifyInput,
386
- f as TextAreaInput,
387
- r as TextInput,
388
- ee as Transition,
389
- h as WeekCalendar,
390
- I as YearCalendar,
391
- A as componentRegistry,
392
- Ze as default,
393
- te as defaultComponentMap,
394
- ot as generateDeterministicId,
395
- at as generateId,
396
- Xe as getComponent,
397
- Qe as registerComponent,
398
- st as sanitizeId
417
+ q as Avatar,
418
+ J as Badge,
419
+ K as Breadcrumb,
420
+ Q as Button,
421
+ O as CalendarDashboard,
422
+ C as CalendarHeader,
423
+ g as CheckboxInput,
424
+ _ as ComboboxInput,
425
+ ne as ComponentRegistry,
426
+ F as DashboardLayout,
427
+ v as DayCalendar,
428
+ V as DefaultLayout,
429
+ k as DynamicForm,
430
+ I as EventCard,
431
+ S as EventsList,
432
+ L as FormField,
433
+ N as FormFieldWrapper,
434
+ D as HeaderLayout,
435
+ U as InputsShowcase,
436
+ X as Loading,
437
+ Z as LoadingDots,
438
+ ee as Modal,
439
+ w as MonthCalendar,
440
+ 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,
449
+ ae as Table,
450
+ M as TagifyInput,
451
+ b as TextAreaInput,
452
+ i as TextInput,
453
+ oe as Transition,
454
+ $ as WeekCalendar,
455
+ 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
399
464
  };
400
465
  //# sourceMappingURL=index.js.map