@base-framework/ui 0.0.0

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 (134) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +106 -0
  3. package/dist/aside-template-D0KANPjh.js +35 -0
  4. package/dist/atoms.es.js +39 -0
  5. package/dist/bside-template-CDbINL4X.js +15 -0
  6. package/dist/calendar-DR_svCOR.js +424 -0
  7. package/dist/confirmation-D1Y_SgzE.js +1526 -0
  8. package/dist/icon-B9QUT2NY.js +47 -0
  9. package/dist/icons.es.js +658 -0
  10. package/dist/index.es.js +154 -0
  11. package/dist/inputs-BF3C3KfF.js +204 -0
  12. package/dist/mobile-nav-wrapper-7Qul1-mt.js +578 -0
  13. package/dist/molecules.es.js +45 -0
  14. package/dist/organisms.es.js +55 -0
  15. package/dist/pages.es.js +12 -0
  16. package/dist/sidebar-menu-page-M8hr9onX.js +224 -0
  17. package/dist/style.css +1 -0
  18. package/dist/tab-C_dZb2qH.js +1425 -0
  19. package/dist/templates.es.js +10 -0
  20. package/dist/tooltip-DCszmsxe.js +324 -0
  21. package/dist/types/components/atoms/atoms.d.ts +15 -0
  22. package/dist/types/components/atoms/badges/badge.d.ts +8 -0
  23. package/dist/types/components/atoms/buttons/buttons.d.ts +17 -0
  24. package/dist/types/components/atoms/cards/card.d.ts +8 -0
  25. package/dist/types/components/atoms/form/fieldset.d.ts +9 -0
  26. package/dist/types/components/atoms/form/inputs/checkbox.d.ts +10 -0
  27. package/dist/types/components/atoms/form/inputs/input-classes.d.ts +30 -0
  28. package/dist/types/components/atoms/form/inputs/inputs.d.ts +113 -0
  29. package/dist/types/components/atoms/form/inputs/range-slider.d.ts +10 -0
  30. package/dist/types/components/atoms/form/legend.d.ts +9 -0
  31. package/dist/types/components/atoms/form/select.d.ts +8 -0
  32. package/dist/types/components/atoms/icon.d.ts +8 -0
  33. package/dist/types/components/atoms/progress/circle-graph.d.ts +7 -0
  34. package/dist/types/components/atoms/progress/progress-bar.d.ts +9 -0
  35. package/dist/types/components/atoms/progress/semi-circle-graph.d.ts +7 -0
  36. package/dist/types/components/atoms/skeleton.d.ts +2 -0
  37. package/dist/types/components/atoms/tooltip.d.ts +12 -0
  38. package/dist/types/components/atoms/veil.d.ts +26 -0
  39. package/dist/types/components/icons/icons.d.ts +10 -0
  40. package/dist/types/components/molecules/alert.d.ts +7 -0
  41. package/dist/types/components/molecules/avatars/avatar.d.ts +15 -0
  42. package/dist/types/components/molecules/avatars/static-status-indicator.d.ts +2 -0
  43. package/dist/types/components/molecules/avatars/status-indicator.d.ts +2 -0
  44. package/dist/types/components/molecules/avatars/statuses.d.ts +13 -0
  45. package/dist/types/components/molecules/breadcrumb/breadcrumb.d.ts +11 -0
  46. package/dist/types/components/molecules/breadcrumb/dots-indicator.d.ts +12 -0
  47. package/dist/types/components/molecules/combobox/combobox.d.ts +10 -0
  48. package/dist/types/components/molecules/counters/atoms.d.ts +3 -0
  49. package/dist/types/components/molecules/counters/counter.d.ts +11 -0
  50. package/dist/types/components/molecules/date-time/date-picker.d.ts +11 -0
  51. package/dist/types/components/molecules/date-time/time-frame.d.ts +1 -0
  52. package/dist/types/components/molecules/date-time/time-picker.d.ts +10 -0
  53. package/dist/types/components/molecules/delay-component.d.ts +18 -0
  54. package/dist/types/components/molecules/dialogs/confirmation.d.ts +27 -0
  55. package/dist/types/components/molecules/dialogs/dialog-container.d.ts +8 -0
  56. package/dist/types/components/molecules/dialogs/dialog.d.ts +78 -0
  57. package/dist/types/components/molecules/dropdowns/dropdown-item.d.ts +1 -0
  58. package/dist/types/components/molecules/dropdowns/dropdown-menu.d.ts +61 -0
  59. package/dist/types/components/molecules/dropdowns/dropdown.d.ts +1 -0
  60. package/dist/types/components/molecules/form/form-atoms.d.ts +40 -0
  61. package/dist/types/components/molecules/form/form-control.d.ts +10 -0
  62. package/dist/types/components/molecules/form/form-field.d.ts +10 -0
  63. package/dist/types/components/molecules/form/form.d.ts +14 -0
  64. package/dist/types/components/molecules/modals/atoms.d.ts +17 -0
  65. package/dist/types/components/molecules/modals/modal-container.d.ts +8 -0
  66. package/dist/types/components/molecules/modals/modal.d.ts +124 -0
  67. package/dist/types/components/molecules/molecules.d.ts +31 -0
  68. package/dist/types/components/molecules/notifications/notification-container.d.ts +31 -0
  69. package/dist/types/components/molecules/notifications/notification.d.ts +79 -0
  70. package/dist/types/components/molecules/popover.d.ts +57 -0
  71. package/dist/types/components/molecules/theme-toggle.d.ts +8 -0
  72. package/dist/types/components/molecules/toggle/toggle.d.ts +11 -0
  73. package/dist/types/components/organisms/button-group.d.ts +23 -0
  74. package/dist/types/components/organisms/calendar/calendar.d.ts +77 -0
  75. package/dist/types/components/organisms/calendar/month/calendar-cells.d.ts +1 -0
  76. package/dist/types/components/organisms/calendar/month/day-cell.d.ts +1 -0
  77. package/dist/types/components/organisms/calendar/month/day-header.d.ts +1 -0
  78. package/dist/types/components/organisms/calendar/month/month-calendar.d.ts +1 -0
  79. package/dist/types/components/organisms/calendar/month/navigation-button.d.ts +1 -0
  80. package/dist/types/components/organisms/calendar/utils.d.ts +3 -0
  81. package/dist/types/components/organisms/calendar/week/utils.d.ts +6 -0
  82. package/dist/types/components/organisms/calendar/week/week-calendar.d.ts +90 -0
  83. package/dist/types/components/organisms/calendar/week/week-cell.d.ts +1 -0
  84. package/dist/types/components/organisms/calendar/week/week-cells.d.ts +1 -0
  85. package/dist/types/components/organisms/calendar/week/week-header.d.ts +1 -0
  86. package/dist/types/components/organisms/lists/checkbox-col.d.ts +1 -0
  87. package/dist/types/components/organisms/lists/data-table-body.d.ts +5 -0
  88. package/dist/types/components/organisms/lists/data-table.d.ts +13 -0
  89. package/dist/types/components/organisms/lists/header-col.d.ts +2 -0
  90. package/dist/types/components/organisms/lists/table-header.d.ts +5 -0
  91. package/dist/types/components/organisms/lists/user-list.d.ts +15 -0
  92. package/dist/types/components/organisms/navigation/inline-navigation.d.ts +75 -0
  93. package/dist/types/components/organisms/navigation/main-link.d.ts +81 -0
  94. package/dist/types/components/organisms/navigation/mobile/nav-wrapper/mobile-nav-wrapper.d.ts +14 -0
  95. package/dist/types/components/organisms/navigation/mobile/nav-wrapper/navigation-popover.d.ts +36 -0
  96. package/dist/types/components/organisms/navigation/mobile/nav-wrapper/popup-header.d.ts +1 -0
  97. package/dist/types/components/organisms/navigation/mobile/nav-wrapper/title-header.d.ts +2 -0
  98. package/dist/types/components/organisms/navigation/nav-button-link.d.ts +44 -0
  99. package/dist/types/components/organisms/navigation/navigation-atoms.d.ts +8 -0
  100. package/dist/types/components/organisms/navigation/navigation-menu/navigation-menu.d.ts +58 -0
  101. package/dist/types/components/organisms/navigation/navigation.d.ts +58 -0
  102. package/dist/types/components/organisms/navigation/sidebar-menu/sidebar-menu.d.ts +2 -0
  103. package/dist/types/components/organisms/organisms.d.ts +38 -0
  104. package/dist/types/components/organisms/overlays/dockable-overlay.d.ts +38 -0
  105. package/dist/types/components/organisms/overlays/inline-overlay.d.ts +18 -0
  106. package/dist/types/components/organisms/overlays/overlay.d.ts +73 -0
  107. package/dist/types/components/organisms/panel.d.ts +22 -0
  108. package/dist/types/components/organisms/search/dropdown.d.ts +8 -0
  109. package/dist/types/components/organisms/search/search-dropdown.d.ts +10 -0
  110. package/dist/types/components/organisms/search/search-input.d.ts +7 -0
  111. package/dist/types/components/organisms/tabs/button-tab.d.ts +65 -0
  112. package/dist/types/components/organisms/tabs/tab-group.d.ts +48 -0
  113. package/dist/types/components/organisms/tabs/tab-navigation.d.ts +62 -0
  114. package/dist/types/components/organisms/tabs/tab.d.ts +35 -0
  115. package/dist/types/components/pages/basic-page.d.ts +19 -0
  116. package/dist/types/components/pages/blank-page.d.ts +17 -0
  117. package/dist/types/components/pages/center-page.d.ts +17 -0
  118. package/dist/types/components/pages/full-contain-page.d.ts +17 -0
  119. package/dist/types/components/pages/full-page.d.ts +25 -0
  120. package/dist/types/components/pages/fullscreen-page.d.ts +17 -0
  121. package/dist/types/components/pages/main-section.d.ts +8 -0
  122. package/dist/types/components/pages/page.d.ts +16 -0
  123. package/dist/types/components/pages/pages.d.ts +10 -0
  124. package/dist/types/components/pages/sidebar-menu-page.d.ts +70 -0
  125. package/dist/types/components/pages/templates/aside-template.d.ts +8 -0
  126. package/dist/types/components/pages/templates/bside-template.d.ts +8 -0
  127. package/dist/types/components/pages/templates/full-template.d.ts +8 -0
  128. package/dist/types/components/pages/templates/row.d.ts +8 -0
  129. package/dist/types/components/pages/templates/template-atoms.d.ts +16 -0
  130. package/dist/types/components/pages/templates/template.d.ts +8 -0
  131. package/dist/types/components/pages/templates/templates.d.ts +5 -0
  132. package/dist/types/ui.d.ts +6 -0
  133. package/dist/veil-B9GQfH0d.js +29 -0
  134. package/package.json +57 -0
@@ -0,0 +1,10 @@
1
+ import { A as s, F as l, M as m, a as p, T as o } from "./aside-template-D0KANPjh.js";
2
+ import { B as T } from "./bside-template-CDbINL4X.js";
3
+ export {
4
+ s as AsideTemplate,
5
+ T as BsideTemplate,
6
+ l as FullTemplate,
7
+ m as MainColumn,
8
+ p as Template,
9
+ o as TopBar
10
+ };
@@ -0,0 +1,324 @@
1
+ import { Span as c, Div as l, Legend as b, Fieldset as f, Input as x } from "@base-framework/atoms";
2
+ import { Atom as s, Html as C } from "@base-framework/base";
3
+ import { a as u } from "./veil-B9GQfH0d.js";
4
+ import { f as p, e as h, g as y } from "./inputs-BF3C3KfF.js";
5
+ const a = {
6
+ gray: {
7
+ backgroundColor: "bg-gray-50",
8
+ textColor: "text-gray-600",
9
+ ringColor: "ring-gray-500/10"
10
+ },
11
+ red: {
12
+ backgroundColor: "bg-red-50",
13
+ textColor: "text-red-700",
14
+ ringColor: "ring-red-600/10"
15
+ },
16
+ yellow: {
17
+ backgroundColor: "bg-yellow-50",
18
+ textColor: "text-yellow-800",
19
+ ringColor: "ring-yellow-600/20"
20
+ },
21
+ green: {
22
+ backgroundColor: "bg-green-50",
23
+ textColor: "text-green-700",
24
+ ringColor: "ring-green-600/20"
25
+ },
26
+ blue: {
27
+ backgroundColor: "bg-blue-50",
28
+ textColor: "text-blue-700",
29
+ ringColor: "ring-blue-700/10"
30
+ },
31
+ indigo: {
32
+ backgroundColor: "bg-indigo-50",
33
+ textColor: "text-indigo-700",
34
+ ringColor: "ring-indigo-700/10"
35
+ },
36
+ purple: {
37
+ backgroundColor: "bg-purple-50",
38
+ textColor: "text-purple-700",
39
+ ringColor: "ring-purple-700/10"
40
+ },
41
+ pink: {
42
+ backgroundColor: "bg-pink-50",
43
+ textColor: "text-pink-700",
44
+ ringColor: "ring-pink-700/10"
45
+ },
46
+ primary: {
47
+ backgroundColor: "bg-primary",
48
+ textColor: "text-primary-foreground",
49
+ ringColor: "ring-primary/10"
50
+ },
51
+ secondary: {
52
+ backgroundColor: "bg-secondary",
53
+ textColor: "text-secondary-foreground",
54
+ ringColor: "ring-secondary/10"
55
+ },
56
+ destructive: {
57
+ backgroundColor: "bg-destructive",
58
+ textColor: "text-destructive-foreground",
59
+ ringColor: "ring-destructive/10"
60
+ },
61
+ warning: {
62
+ backgroundColor: "bg-warning",
63
+ textColor: "text-warning-foreground",
64
+ ringColor: "ring-warning/10"
65
+ },
66
+ outline: {
67
+ backgroundColor: "bg-background",
68
+ textColor: "text-primary",
69
+ ringColor: "ring-input"
70
+ },
71
+ ghost: {
72
+ backgroundColor: "bg-background",
73
+ textColor: "text-primary",
74
+ ringColor: "ring-background"
75
+ },
76
+ link: {
77
+ backgroundColor: "bg-background",
78
+ textColor: "text-primary",
79
+ ringColor: "ring-background"
80
+ }
81
+ }, k = (t) => a[t] || a.gray, w = (t) => {
82
+ const { backgroundColor: r, textColor: e, ringColor: o } = k(t);
83
+ return `inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors ${r} ${e} ${o}`;
84
+ }, F = s((t, r) => {
85
+ const e = w(t == null ? void 0 : t.type);
86
+ return c({ ...t, class: e }, r);
87
+ }), T = s((t, r) => {
88
+ const e = t.margin ?? "my-5 mx-5", o = t.padding ?? "p-4";
89
+ return l({
90
+ ...t,
91
+ class: `rounded-lg border bg-card text-card-foreground shadow-md min-w-[120px] min-h-[80px] ${e} ${o} ${t.class || ""}`
92
+ }, r);
93
+ }), $ = s((t, r) => b({
94
+ ...t,
95
+ class: ` font-medium bg-background -mt-4 -mx-1 px-2 py-2 ${t.class || ""}`
96
+ }, r)), L = s((t, r) => {
97
+ const e = t.border === "full" ? "border rounded-md" : "border-t";
98
+ return f({
99
+ ...t,
100
+ class: `p-6 ${e} ${t.class || ""}`
101
+ }, [
102
+ t.legend && $(t.legend),
103
+ l({ class: "flex flex-auto flex-col space-y-6" }, r)
104
+ ]);
105
+ }), I = u(
106
+ {
107
+ /**
108
+ * This will create the initial state of the RangeSlider.
109
+ *
110
+ * @returns {object}
111
+ */
112
+ state() {
113
+ return {
114
+ value: this.value ?? 0,
115
+ min: this.min ?? 0,
116
+ max: this.max ?? 100,
117
+ filledPercentage: this.getFillPercentage(this.value)
118
+ };
119
+ },
120
+ /**
121
+ * This will get the fill percentage of the range slider.
122
+ *
123
+ * @param {number} value
124
+ * @returns {number}
125
+ */
126
+ getFillPercentage(t) {
127
+ return (t - this.min) / (this.max - this.min) * 100;
128
+ },
129
+ /**
130
+ * This will render the RangeSlider component.
131
+ *
132
+ * @returns {object}
133
+ */
134
+ render() {
135
+ return l({ class: "relative w-full h-4 flex items-center" }, [
136
+ // Track
137
+ l({ class: "absolute h-2 w-full rounded-full bg-muted" }),
138
+ // Filled Track
139
+ l({
140
+ class: "absolute h-2 bg-primary rounded-full",
141
+ style: "width: [[filledPercentage]]%"
142
+ }),
143
+ // Thumb
144
+ l({
145
+ class: `
146
+ absolute block h-5 w-5 rounded-full border-2 border-primary bg-background
147
+ ring-offset-background transition-colors focus-visible:outline-none
148
+ focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2
149
+ disabled:pointer-events-none disabled:opacity-50 transform -translate-x-1/2
150
+ `.trim(),
151
+ style: "left: [[filledPercentage]]%"
152
+ }),
153
+ // Hidden Range Input
154
+ x({
155
+ type: "range",
156
+ min: "[[min]]",
157
+ max: "[[max]]",
158
+ value: "[[value]]",
159
+ // Incorporate your new classes here
160
+ class: `
161
+ absolute w-full h-full opacity-0 cursor-pointer
162
+ ${p}
163
+ ${h}
164
+ ${this.class || ""}
165
+ `.trim(),
166
+ bind: this.bind,
167
+ input: (t) => {
168
+ const r = Number(t.target.value);
169
+ this.state.value = r, this.state.filledPercentage = this.getFillPercentage(r), typeof this.change == "function" && this.change(r);
170
+ }
171
+ })
172
+ ]);
173
+ }
174
+ }
175
+ ), G = s((t) => ({
176
+ tag: "select",
177
+ ...t,
178
+ class: `${y} ${t.class || ""}`.trim(),
179
+ onCreated(r) {
180
+ t.options && C.setupSelectOptions(r, t.options);
181
+ }
182
+ })), v = (t) => !t || isNaN(t) ? null : t, i = (t, r) => {
183
+ const e = t, o = 16, n = 2 * Math.PI * o, d = e / 100 * n, m = `
184
+ <svg class="w-40 h-40 mx-auto" viewBox="0 0 36 36" xmlns="http://www.w3.org/2000/svg">
185
+ <!-- Background Circle -->
186
+ <circle
187
+ cx="18"
188
+ cy="18"
189
+ r="${o}"
190
+ fill="none"
191
+ stroke="currentColor"
192
+ stroke-width="4"
193
+ class="bg-muted"
194
+ stroke-opacity="0.2"
195
+ />
196
+ <!-- Progress Circle -->
197
+ <circle
198
+ cx="18"
199
+ cy="18"
200
+ r="${o}"
201
+ fill="none"
202
+ stroke="currentColor"
203
+ stroke-width="4"
204
+ class="stroke-primary"
205
+ stroke-dasharray="${n}"
206
+ stroke-dashoffset="${n - d}"
207
+ stroke-linecap="round"
208
+ class="${r}"
209
+ />
210
+ <!-- Percentage Text -->
211
+ <text
212
+ x="18"
213
+ y="20"
214
+ class="text-[0.25em] font-medium fill-primary"
215
+ text-anchor="middle"
216
+ dominant-baseline="middle">
217
+ ${e}%
218
+ </text>
219
+ </svg>
220
+ `;
221
+ return l({
222
+ class: "circle-graph text-inherit",
223
+ html: m
224
+ });
225
+ }, R = s((t) => {
226
+ const r = t.progress || 0, e = t.class || "", o = i(r, e);
227
+ return l({
228
+ class: "circle-graph-wrap",
229
+ onSet: [
230
+ t.prop,
231
+ (n) => (n = v(n), n ? i(n, e) : o)
232
+ ]
233
+ }, [o]);
234
+ }), P = () => l({
235
+ class: "absolute h-full rounded-full bg-primary transition-all duration-300",
236
+ style: "width: [[progress]]%;"
237
+ }), O = u(
238
+ {
239
+ /**
240
+ * This will render the progress bar component.
241
+ *
242
+ * @returns {object}
243
+ */
244
+ render() {
245
+ return l({ class: "relative w-full h-4 rounded-full bg-muted" }, [
246
+ P()
247
+ ]);
248
+ },
249
+ /**
250
+ * This will initialize the state.
251
+ *
252
+ * @returns {object}
253
+ */
254
+ state() {
255
+ return {
256
+ progress: this.progress ?? 0
257
+ };
258
+ },
259
+ /**
260
+ * This will reset the progress bar.
261
+ *
262
+ * @returns {void}
263
+ */
264
+ reset() {
265
+ this.state.progress = 0;
266
+ },
267
+ /**
268
+ * This will update the progress bar from a file upload.
269
+ *
270
+ * @param {object} evt
271
+ * @returns {void}
272
+ */
273
+ uploadProgress(t) {
274
+ if (t.lengthComputable) {
275
+ const e = Math.round(t.loaded * 100 / t.total);
276
+ this.set(e);
277
+ }
278
+ },
279
+ /**
280
+ * This will set the progress of the progress bar.
281
+ *
282
+ * @param {number} progress
283
+ * @returns {void}
284
+ */
285
+ set(t) {
286
+ t < 0 && (t = 0), t > 100 && (t = 100), this.state.progress = t;
287
+ }
288
+ }
289
+ ), V = ({ class: t, shape: r = "rectangle", width: e = "w-full", height: o = "h-4" }) => l({
290
+ class: `bg-muted animate-pulse ${e} ${o} ${r === "circle" ? "rounded-full" : "rounded-md"} ${t || ""}`
291
+ }), g = {
292
+ top: "bottom-full left-1/2 transform -translate-x-1/2 mb-2",
293
+ "top-right": "bottom-full left-full transform -translate-x-1 mb-2",
294
+ "top-left": "bottom-full right-full transform translate-x-1 mb-2",
295
+ bottom: "top-full left-1/2 transform -translate-x-1/2 mt-2",
296
+ "bottom-right": "top-full left-full transform -translate-x-1 mt-2",
297
+ "bottom-left": "top-full right-full transform translate-x-1 mt-2",
298
+ left: "top-1/2 right-full transform -translate-y-1/2 mr-2",
299
+ right: "top-1/2 left-full transform -translate-y-1/2 ml-2"
300
+ }, S = (t) => g[t] || g.top, D = s(({ position: t = "top", content: r }, e) => {
301
+ const o = S(t);
302
+ return Array.isArray(e) === !1 && (e = [e]), l({ class: "relative group inline-block" }, [
303
+ ...e,
304
+ // Tooltip box
305
+ c({
306
+ class: `
307
+ absolute z-20 px-2 py-1 border text-sm bg-background rounded shadow-md opacity-0 whitespace-nowrap
308
+ group-hover:opacity-100 transition-opacity duration-200 ${o} pointer-events-none
309
+ `
310
+ }, r)
311
+ ]);
312
+ });
313
+ export {
314
+ F as B,
315
+ T as C,
316
+ L as F,
317
+ $ as L,
318
+ O as P,
319
+ I as R,
320
+ G as S,
321
+ D as T,
322
+ R as a,
323
+ V as b
324
+ };
@@ -0,0 +1,15 @@
1
+ export * from "./badges/badge.js";
2
+ export * from "./buttons/buttons.js";
3
+ export * from "./cards/card.js";
4
+ export * from "./form/fieldset.js";
5
+ export * from "./form/inputs/checkbox.js";
6
+ export * from "./form/inputs/inputs.js";
7
+ export * from "./form/inputs/range-slider.js";
8
+ export * from "./form/legend.js";
9
+ export * from "./form/select.js";
10
+ export * from "./icon.js";
11
+ export * from "./progress/circle-graph.js";
12
+ export * from "./progress/progress-bar.js";
13
+ export * from "./skeleton.js";
14
+ export * from "./tooltip.js";
15
+ export * from "./veil.js";
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This will create a badge.
3
+ *
4
+ * @param {object} props
5
+ * @param {array} children
6
+ * @returns {object}
7
+ */
8
+ export const Badge: Function;
@@ -0,0 +1,17 @@
1
+ /**
2
+ * This will create a button by variant or default.
3
+ *
4
+ * @param {object} props
5
+ * @param {array} children
6
+ * @returns {object}
7
+ */
8
+ export const Button: Function;
9
+ export default Button;
10
+ /**
11
+ * This will create a primary button that has a loading icon.
12
+ *
13
+ * @param {object} props
14
+ * @param {array} children
15
+ * @returns {object}
16
+ */
17
+ export const LoadingButton: Function;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This will create a card.
3
+ *
4
+ * @param {object} props
5
+ * @param {array} children
6
+ * @returns {object}
7
+ */
8
+ export const Card: Function;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This will create a select component.
3
+ *
4
+ * @param {object} props
5
+ * @param {array} children
6
+ * @returns {object}
7
+ */
8
+ export const Fieldset: Function;
9
+ export default Fieldset;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Checkbox
3
+ *
4
+ * This will create an accessible checkbox component.
5
+ *
6
+ * @param {object} props
7
+ * @returns {object}
8
+ */
9
+ export const Checkbox: import("node_modules/@base-framework/base/dist/types/modules/component/jot.js").ComponentConstructor;
10
+ export default Checkbox;
@@ -0,0 +1,30 @@
1
+ /**
2
+ * @constant {string} sizeClass
3
+ * Common size & spacing classes for inputs.
4
+ */
5
+ export const sizeClass: "flex h-10 w-full px-3 py-2 text-sm";
6
+ /**
7
+ * @constant {string} borderClass
8
+ * Common border & background classes for inputs.
9
+ */
10
+ export const borderClass: "rounded-md border border-input bg-background";
11
+ /**
12
+ * @constant {string} focusClass
13
+ * Common focus and ring classes for inputs.
14
+ */
15
+ export const focusClass: "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 ring-offset-background";
16
+ /**
17
+ * @constant {string} disabledClass
18
+ * Common classes for disabled state.
19
+ */
20
+ export const disabledClass: "disabled:cursor-not-allowed disabled:opacity-50";
21
+ /**
22
+ * @constant {string} placeholderClass
23
+ * Common classes for placeholder text.
24
+ */
25
+ export const placeholderClass: "placeholder:text-muted-foreground";
26
+ /**
27
+ * @constant {string} commonInputClasses
28
+ * Composed classes for text-like inputs (text, email, tel, etc.).
29
+ */
30
+ export const commonInputClasses: "flex h-10 w-full px-3 py-2 text-sm rounded-md border border-input bg-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 ring-offset-background placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50";
@@ -0,0 +1,113 @@
1
+ /**
2
+ * A basic Input atom that reuses common classes.
3
+ *
4
+ * @param {object} props Props passed to the BaseInput.
5
+ * @returns {object} A BaseInput element with common classes.
6
+ */
7
+ export const Input: Function;
8
+ /**
9
+ * Input component specifically for telephone numbers.
10
+ *
11
+ * @param {object} props Props passed to the Input.
12
+ * @returns {object} An Input element of type "tel" with phone formatting.
13
+ */
14
+ export const TelInput: Function;
15
+ /**
16
+ * Input component specifically for email addresses.
17
+ *
18
+ * @param {object} props Props passed to the Input.
19
+ * @returns {object} An Input element of type "email".
20
+ */
21
+ export const EmailInput: Function;
22
+ /**
23
+ * Textarea component reusing parts of the common classes.
24
+ *
25
+ * @param {object} props Props passed to the BaseTextarea.
26
+ * @returns {object} A BaseTextarea element.
27
+ */
28
+ export const Textarea: Function;
29
+ export function Radio(props?: object): object;
30
+ /**
31
+ * Input component specifically for dates.
32
+ *
33
+ * @param {object} props Props passed to the BaseInput.
34
+ * @returns {object} A BaseInput element of type "date".
35
+ */
36
+ export const DateInput: Function;
37
+ /**
38
+ * Input component specifically for times.
39
+ *
40
+ * @param {object} props Props passed to the BaseInput.
41
+ * @returns {object} A BaseInput element of type "time".
42
+ */
43
+ export const TimeInput: Function;
44
+ /**
45
+ * Input component specifically for datetime-local.
46
+ *
47
+ * @param {object} props Props passed to the BaseInput.
48
+ * @returns {object} A BaseInput element of type "datetime-local".
49
+ */
50
+ export const DateTimeInput: Function;
51
+ /**
52
+ * Input component specifically for months.
53
+ *
54
+ * @param {object} props Props passed to the BaseInput.
55
+ * @returns {object} A BaseInput element of type "month".
56
+ */
57
+ export const MonthInput: Function;
58
+ /**
59
+ * Input component specifically for weeks.
60
+ *
61
+ * @param {object} props Props passed to the BaseInput.
62
+ * @returns {object} A BaseInput element of type "week".
63
+ */
64
+ export const WeekInput: Function;
65
+ /**
66
+ * Input component specifically for numbers.
67
+ *
68
+ * @param {object} props Props passed to the Input.
69
+ * @returns {object} An Input element of type "number".
70
+ */
71
+ export const NumberInput: Function;
72
+ /**
73
+ * Input component specifically for passwords.
74
+ *
75
+ * @param {object} props Props passed to the Input.
76
+ * @returns {object} An Input element of type "password".
77
+ */
78
+ export const PasswordInput: Function;
79
+ /**
80
+ * Input component specifically for search.
81
+ *
82
+ * @param {object} props Props passed to the Input.
83
+ * @returns {object} An Input element of type "search".
84
+ */
85
+ export const SearchInput: Function;
86
+ /**
87
+ * Input component specifically for URLs.
88
+ *
89
+ * @param {object} props Props passed to the Input.
90
+ * @returns {object} An Input element of type "url".
91
+ */
92
+ export const UrlInput: Function;
93
+ /**
94
+ * Input component specifically for hidden fields.
95
+ *
96
+ * @param {object} props Props passed to the Input.
97
+ * @returns {object} An Input element of type "hidden".
98
+ */
99
+ export const HiddenInput: Function;
100
+ /**
101
+ * Input component specifically for color pickers.
102
+ *
103
+ * @param {object} props Props passed to the BaseInput.
104
+ * @returns {object} A BaseInput element of type "color".
105
+ */
106
+ export const ColorInput: Function;
107
+ /**
108
+ * Input component specifically for file uploads.
109
+ *
110
+ * @param {object} props Props passed to the BaseInput.
111
+ * @returns {object} A BaseInput element of type "file".
112
+ */
113
+ export const FileInput: Function;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * RangeSlider
3
+ *
4
+ * Creates a range slider with a custom style matching the provided design.
5
+ *
6
+ * @param {object} props
7
+ * @returns {object}
8
+ */
9
+ export const RangeSlider: import("node_modules/@base-framework/base/dist/types/modules/component/jot.js").ComponentConstructor;
10
+ export default RangeSlider;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This will create a select component.
3
+ *
4
+ * @param {object} props
5
+ * @param {array} children
6
+ * @returns {object}
7
+ */
8
+ export const Legend: Function;
9
+ export default Legend;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This will create a select component.
3
+ *
4
+ * @param {object} props
5
+ * @returns {object}
6
+ */
7
+ export const Select: Function;
8
+ export default Select;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This will create an icon atom with size support.
3
+ *
4
+ * @param {object} props
5
+ * @param {array} children
6
+ * @returns {object}
7
+ */
8
+ export const Icon: Function;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This will create a circle graph with Tailwind styling.
3
+ *
4
+ * @param {object} props
5
+ * @returns {object}
6
+ */
7
+ export const CircleGraph: Function;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Progress Bar
3
+ *
4
+ * This will create a progress bar component.
5
+ *
6
+ * @param {object} props
7
+ * @returns {object}
8
+ */
9
+ export const ProgressBar: import("node_modules/@base-framework/base/dist/types/modules/component/jot.js").ComponentConstructor;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This will create a semi-circle graph with Tailwind styling.
3
+ *
4
+ * @param {object} props
5
+ * @returns {object}
6
+ */
7
+ export const SemiCircleGraph: Function;
@@ -0,0 +1,2 @@
1
+ export function Skeleton({ class: className, shape, width, height }: object): object;
2
+ export default Skeleton;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Tooltip Component
3
+ *
4
+ * A customizable tooltip that can be positioned around a target element.
5
+ *
6
+ * @param {object} props
7
+ * @param {string} props.position - The position of the tooltip relative to the target ('top', 'top-right', 'top-left', 'bottom', 'bottom-right', 'bottom-left')
8
+ * @param {string} props.text - The text content of the tooltip.
9
+ * @param {array} children - The children
10
+ * @returns {object}
11
+ */
12
+ export const Tooltip: Function;
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Veil Component
3
+ *
4
+ * This will create a component that can accept data from a parent component
5
+ * or it will use the parent's data or context data to set a local context
6
+ * to act as if it's data scope is the parent component.
7
+ *
8
+ * @class
9
+ */
10
+ export class Veil extends Component {
11
+ /**
12
+ * This will get the child scope instance of the component.
13
+ *
14
+ * @returns {object}
15
+ */
16
+ getChildScope(): object;
17
+ /**
18
+ * This will set the component context.
19
+ *
20
+ * @param {object|null} context
21
+ * @returns {object|null}
22
+ */
23
+ setContext(context: object | null): object | null;
24
+ }
25
+ export function VeilJot(props: any): import("node_modules/@base-framework/base/dist/types/modules/component/jot").ComponentConstructor;
26
+ import { Component } from "@base-framework/base";
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Icons
3
+ *
4
+ * These icons are from the Heroicons library.
5
+ *
6
+ * @link https://heroicons.com/
7
+ *
8
+ * @type {object}
9
+ */
10
+ export const Icons: object;