@base-framework/ui 1.0.95 → 1.0.97
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/atoms.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as e, C as t, a as n, F as o, L as p, P as r, R as u, S as I, b as i, T as l } from "./tooltip-
|
|
1
|
+
import { B as e, C as t, a as n, F as o, L as p, P as r, R as u, S as I, b as i, T as l } from "./tooltip-z2_o9L8g.js";
|
|
2
2
|
import { B as m, I as T, L as c } from "./buttons-CVEwmPAi.js";
|
|
3
3
|
import { C as B, d as C, D as S, c as g, E as b, F as f, H as h, I as F, M as L, N as P, P as R, R as k, S as D, T as V, a as E, b as H, U as M, W as N } from "./inputs-nzivW9Dr.js";
|
|
4
4
|
import { V as W, a as w } from "./veil-D4dRxILB.js";
|
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as e, C as o, a as t, F as r, L as n, P as i, R as l, S as p, b as u, T as m } from "./tooltip-
|
|
1
|
+
import { B as e, C as o, a as t, F as r, L as n, P as i, R as l, S as p, b as u, T as m } from "./tooltip-z2_o9L8g.js";
|
|
2
2
|
import { B as g, I as T, L as c } from "./buttons-CVEwmPAi.js";
|
|
3
3
|
import { C as b, d as D, D as S, c as I, E as B, F as P, H as F, I as M, M as k, N, P as v, R as f, S as x, T as h, a as y, b as W, U as L, W as A } from "./inputs-nzivW9Dr.js";
|
|
4
4
|
import { V as w, a as U } from "./veil-D4dRxILB.js";
|
|
@@ -7,7 +7,7 @@ import { A as G, B as V, C as j, z as q, u as z, v as J, w as _, D as K, j as Q,
|
|
|
7
7
|
import { A as Na, b as va, C as fa, D as xa, a as ha, F as ya, M as Wa, P as La, c as Aa, g as Ha, p as wa } from "./calendar-BDqm833e.js";
|
|
8
8
|
import { B as Oa, n as Ra, C as Ea, j as Ga, D as Va, l as ja, H as qa, I as za, N as Ja, O as _a, P as Ka, S as Qa, m as Xa, r as Ya, q as Za, o as $a, p as as, T as ss, k as es, U as os, W as ts, f as rs, h as ns, i as is, c as ls, d as ps, b as us, e as ms, a as ds, g as gs } from "./signature-panel-BFels99c.js";
|
|
9
9
|
import { B as cs, I as Cs, M as bs, d as Ds, e as Ss, g as Is, N as Bs, b as Ps, a as Fs, f as Ms, P as ks, c as Ns, S as vs, T as fs } from "./mobile-nav-wrapper-BE_hr65B.js";
|
|
10
|
-
import { B as hs, a as ys, C as Ws, F as Ls, b as As, c as Hs, M as ws, P as Us, S as Os } from "./sidebar-menu-page-
|
|
10
|
+
import { B as hs, a as ys, C as Ws, F as Ls, b as As, c as Hs, M as ws, P as Us, S as Os } from "./sidebar-menu-page-BmD_Bi-v.js";
|
|
11
11
|
import { A as Es, F as Gs, M as Vs, a as js, T as qs } from "./aside-template-McEj_Gxc.js";
|
|
12
12
|
import { B as Js } from "./bside-template-Du2m3rsE.js";
|
|
13
13
|
export {
|
package/dist/pages.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as s, a as P, C as g, F as n, b as l, c as i, M as r, P as c, S as o } from "./sidebar-menu-page-
|
|
1
|
+
import { B as s, a as P, C as g, F as n, b as l, c as i, M as r, P as c, S as o } from "./sidebar-menu-page-BmD_Bi-v.js";
|
|
2
2
|
export {
|
|
3
3
|
s as BasicPage,
|
|
4
4
|
P as BlankPage,
|
|
@@ -37,7 +37,7 @@ class S extends a {
|
|
|
37
37
|
* @returns {object}
|
|
38
38
|
*/
|
|
39
39
|
render() {
|
|
40
|
-
const s = this.
|
|
40
|
+
const s = this.class ? this.class : "pt-[80px] sm:pt-0";
|
|
41
41
|
return l([
|
|
42
42
|
t({ class: `flex flex-auto flex-col ${s}` }, this.children)
|
|
43
43
|
]);
|
|
@@ -60,7 +60,7 @@ const r = i((e, s) => (e.class = "basic-page pt-[80px] sm:pt-0 flex flex-auto fl
|
|
|
60
60
|
...e,
|
|
61
61
|
children: s
|
|
62
62
|
}));
|
|
63
|
-
class
|
|
63
|
+
class w extends a {
|
|
64
64
|
/**
|
|
65
65
|
* This will render the page.
|
|
66
66
|
*
|
|
@@ -78,7 +78,7 @@ const f = i(({ title: e, description: s }) => n({ class: "sm:py-8 px-6 md:px-5 f
|
|
|
78
78
|
d({ class: "scroll-m-20 text-3xl font-bold tracking-tight" }, e),
|
|
79
79
|
s && o({ class: "text-base text-muted-foreground py-2 max-w-[700px]" }, s)
|
|
80
80
|
]));
|
|
81
|
-
class
|
|
81
|
+
class F extends a {
|
|
82
82
|
/**
|
|
83
83
|
* This will declare the props for the compiler.
|
|
84
84
|
*
|
|
@@ -102,7 +102,7 @@ class w extends a {
|
|
|
102
102
|
]);
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
|
-
class
|
|
105
|
+
class B extends c {
|
|
106
106
|
/**
|
|
107
107
|
* This will render the page.
|
|
108
108
|
*
|
|
@@ -113,7 +113,7 @@ class F extends c {
|
|
|
113
113
|
return t({ class: `flex flex-col flex-auto ${s}` }, this.children);
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
|
-
class
|
|
116
|
+
class M extends a {
|
|
117
117
|
/**
|
|
118
118
|
* This will declare the props for the compiler.
|
|
119
119
|
*
|
|
@@ -207,11 +207,11 @@ class B extends a {
|
|
|
207
207
|
export {
|
|
208
208
|
a as B,
|
|
209
209
|
k as C,
|
|
210
|
-
|
|
210
|
+
w as F,
|
|
211
211
|
r as M,
|
|
212
212
|
c as P,
|
|
213
|
-
|
|
213
|
+
M as S,
|
|
214
214
|
S as a,
|
|
215
|
-
|
|
216
|
-
|
|
215
|
+
F as b,
|
|
216
|
+
B as c
|
|
217
217
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Span as c, Div as l, Legend as b, Fieldset as f,
|
|
2
|
-
import { Atom as s, Html as
|
|
1
|
+
import { Span as c, Div as l, Legend as b, Fieldset as f, UseParent as x, Input as C } from "@base-framework/atoms";
|
|
2
|
+
import { Atom as s, Html as p } from "@base-framework/base";
|
|
3
3
|
import { a as u } from "./veil-D4dRxILB.js";
|
|
4
|
-
import { f as
|
|
4
|
+
import { f as h, e as y, g as k } from "./inputs-nzivW9Dr.js";
|
|
5
5
|
const a = {
|
|
6
6
|
gray: {
|
|
7
7
|
backgroundColor: "bg-gray-50",
|
|
@@ -78,31 +78,31 @@ const a = {
|
|
|
78
78
|
textColor: "text-primary",
|
|
79
79
|
ringColor: "ring-background"
|
|
80
80
|
}
|
|
81
|
-
},
|
|
82
|
-
const { backgroundColor:
|
|
83
|
-
return `inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors ${
|
|
84
|
-
},
|
|
85
|
-
const
|
|
86
|
-
return c({ ...t, class:
|
|
87
|
-
}),
|
|
88
|
-
const
|
|
81
|
+
}, w = (t) => a[t] || a.gray, $ = (t) => {
|
|
82
|
+
const { backgroundColor: e, textColor: r, ringColor: o } = w(t);
|
|
83
|
+
return `inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors ${e} ${r} ${o}`;
|
|
84
|
+
}, T = s((t, e) => {
|
|
85
|
+
const r = $(t == null ? void 0 : t.type);
|
|
86
|
+
return c({ ...t, class: r }, e);
|
|
87
|
+
}), L = s((t, e) => {
|
|
88
|
+
const r = t.margin ?? "my-5 mx-5", o = t.padding ?? "p-4";
|
|
89
89
|
return l({
|
|
90
90
|
...t,
|
|
91
|
-
class: `rounded-lg border bg-card text-card-foreground shadow-md min-w-[120px] min-h-[80px] ${
|
|
92
|
-
},
|
|
93
|
-
}),
|
|
91
|
+
class: `rounded-lg border bg-card text-card-foreground shadow-md min-w-[120px] min-h-[80px] ${r} ${o} ${t.class || ""}`
|
|
92
|
+
}, e);
|
|
93
|
+
}), v = s((t, e) => b({
|
|
94
94
|
...t,
|
|
95
95
|
class: ` font-medium bg-background -mt-4 -mx-1 px-2 py-2 ${t.class || ""}`
|
|
96
|
-
},
|
|
97
|
-
const
|
|
96
|
+
}, e)), I = s((t, e) => {
|
|
97
|
+
const r = t.border === "full" ? "border rounded-md" : "border-t";
|
|
98
98
|
return f({
|
|
99
99
|
...t,
|
|
100
|
-
class: `p-6 ${
|
|
100
|
+
class: `p-6 ${r} ${t.class || ""}`
|
|
101
101
|
}, [
|
|
102
|
-
t.legend &&
|
|
103
|
-
l({ class: "flex flex-auto flex-col space-y-6" },
|
|
102
|
+
t.legend && v(t.legend),
|
|
103
|
+
l({ class: "flex flex-auto flex-col space-y-6" }, e)
|
|
104
104
|
]);
|
|
105
|
-
}),
|
|
105
|
+
}), G = u(
|
|
106
106
|
{
|
|
107
107
|
/**
|
|
108
108
|
* This will create the initial state of the RangeSlider.
|
|
@@ -151,36 +151,36 @@ const a = {
|
|
|
151
151
|
style: "left: [[filledPercentage]]%"
|
|
152
152
|
}),
|
|
153
153
|
// Hidden Range Input
|
|
154
|
-
x({
|
|
154
|
+
x(({ state: t }) => C({
|
|
155
155
|
type: "range",
|
|
156
|
-
min: "[[min]]",
|
|
157
|
-
max: "[[max]]",
|
|
158
|
-
value: "[[value]]",
|
|
156
|
+
min: ["[[min]]", t],
|
|
157
|
+
max: ["[[max]]", t],
|
|
158
|
+
value: ["[[value]]", t],
|
|
159
159
|
// Incorporate your new classes here
|
|
160
160
|
class: `
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
161
|
+
absolute w-full h-full opacity-0 cursor-pointer
|
|
162
|
+
${h}
|
|
163
|
+
${y}
|
|
164
|
+
${this.class || ""}
|
|
165
|
+
`.trim(),
|
|
166
166
|
bind: this.bind,
|
|
167
|
-
input: (
|
|
168
|
-
const r = Number(
|
|
167
|
+
input: (e) => {
|
|
168
|
+
const r = Number(e.target.value);
|
|
169
169
|
this.state.value = r, this.state.filledPercentage = this.getFillPercentage(r), typeof this.change == "function" && this.change(r);
|
|
170
170
|
}
|
|
171
|
-
})
|
|
171
|
+
}))
|
|
172
172
|
]);
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
|
-
),
|
|
175
|
+
), R = s((t) => ({
|
|
176
176
|
tag: "select",
|
|
177
177
|
...t,
|
|
178
|
-
class: `${
|
|
179
|
-
onCreated(
|
|
180
|
-
t.options &&
|
|
178
|
+
class: `${k} ${t.class || ""}`.trim(),
|
|
179
|
+
onCreated(e) {
|
|
180
|
+
t.options && p.setupSelectOptions(e, t.options);
|
|
181
181
|
}
|
|
182
|
-
})),
|
|
183
|
-
const
|
|
182
|
+
})), P = (t) => !t || isNaN(t) ? null : t, i = (t, e) => {
|
|
183
|
+
const r = t, o = 16, n = 2 * Math.PI * o, d = r / 100 * n, m = `
|
|
184
184
|
<svg class="w-40 h-40 mx-auto" viewBox="0 0 36 36" xmlns="http://www.w3.org/2000/svg">
|
|
185
185
|
<!-- Background Circle -->
|
|
186
186
|
<circle
|
|
@@ -205,7 +205,7 @@ const a = {
|
|
|
205
205
|
stroke-dasharray="${n}"
|
|
206
206
|
stroke-dashoffset="${n - d}"
|
|
207
207
|
stroke-linecap="round"
|
|
208
|
-
class="${
|
|
208
|
+
class="${e}"
|
|
209
209
|
/>
|
|
210
210
|
<!-- Percentage Text -->
|
|
211
211
|
<text
|
|
@@ -214,7 +214,7 @@ const a = {
|
|
|
214
214
|
class="text-[0.25em] font-medium fill-primary"
|
|
215
215
|
text-anchor="middle"
|
|
216
216
|
dominant-baseline="middle">
|
|
217
|
-
${
|
|
217
|
+
${r}%
|
|
218
218
|
</text>
|
|
219
219
|
</svg>
|
|
220
220
|
`;
|
|
@@ -222,19 +222,19 @@ const a = {
|
|
|
222
222
|
class: "circle-graph text-inherit",
|
|
223
223
|
html: m
|
|
224
224
|
});
|
|
225
|
-
},
|
|
226
|
-
const
|
|
225
|
+
}, O = s((t) => {
|
|
226
|
+
const e = t.progress || 0, r = t.class || "", o = i(e, r);
|
|
227
227
|
return l({
|
|
228
228
|
class: "circle-graph-wrap",
|
|
229
229
|
onSet: [
|
|
230
230
|
t.prop,
|
|
231
|
-
(n) => (n =
|
|
231
|
+
(n) => (n = P(n), n ? i(n, r) : o)
|
|
232
232
|
]
|
|
233
233
|
}, [o]);
|
|
234
|
-
}),
|
|
234
|
+
}), S = () => l({
|
|
235
235
|
class: "absolute h-full rounded-full bg-primary transition-all duration-300",
|
|
236
236
|
style: "width: [[progress]]%;"
|
|
237
|
-
}),
|
|
237
|
+
}), V = u(
|
|
238
238
|
{
|
|
239
239
|
/**
|
|
240
240
|
* This will render the progress bar component.
|
|
@@ -243,7 +243,7 @@ const a = {
|
|
|
243
243
|
*/
|
|
244
244
|
render() {
|
|
245
245
|
return l({ class: "relative w-full h-4 rounded-full bg-muted" }, [
|
|
246
|
-
|
|
246
|
+
S()
|
|
247
247
|
]);
|
|
248
248
|
},
|
|
249
249
|
/**
|
|
@@ -272,8 +272,8 @@ const a = {
|
|
|
272
272
|
*/
|
|
273
273
|
uploadProgress(t) {
|
|
274
274
|
if (t.lengthComputable) {
|
|
275
|
-
const
|
|
276
|
-
this.set(
|
|
275
|
+
const r = Math.round(t.loaded * 100 / t.total);
|
|
276
|
+
this.set(r);
|
|
277
277
|
}
|
|
278
278
|
},
|
|
279
279
|
/**
|
|
@@ -286,8 +286,8 @@ const a = {
|
|
|
286
286
|
t < 0 && (t = 0), t > 100 && (t = 100), this.state.progress = t;
|
|
287
287
|
}
|
|
288
288
|
}
|
|
289
|
-
),
|
|
290
|
-
class: `bg-muted animate-pulse ${
|
|
289
|
+
), D = ({ class: t, shape: e = "rectangle", width: r = "w-full", height: o = "h-4" }) => l({
|
|
290
|
+
class: `bg-muted animate-pulse ${r} ${o} ${e === "circle" ? "rounded-full" : "rounded-md"} ${t || ""}`
|
|
291
291
|
}), g = {
|
|
292
292
|
top: "bottom-full left-1/2 transform -translate-x-1/2 mb-2",
|
|
293
293
|
"top-right": "bottom-full left-full transform -translate-x-1 mb-2",
|
|
@@ -297,28 +297,28 @@ const a = {
|
|
|
297
297
|
"bottom-left": "top-full right-full transform translate-x-1 mt-2",
|
|
298
298
|
left: "top-1/2 right-full transform -translate-y-1/2 mr-2",
|
|
299
299
|
right: "top-1/2 left-full transform -translate-y-1/2 ml-2"
|
|
300
|
-
},
|
|
301
|
-
const o =
|
|
302
|
-
return Array.isArray(
|
|
303
|
-
...
|
|
300
|
+
}, E = (t) => g[t] || g.top, M = s(({ position: t = "top", content: e }, r) => {
|
|
301
|
+
const o = E(t);
|
|
302
|
+
return Array.isArray(r) === !1 && (r = [r]), l({ class: "relative group inline-block" }, [
|
|
303
|
+
...r,
|
|
304
304
|
// Tooltip box
|
|
305
305
|
c({
|
|
306
306
|
class: `
|
|
307
307
|
absolute z-20 px-2 py-1 border text-sm bg-background rounded shadow-md opacity-0 whitespace-nowrap
|
|
308
308
|
group-hover:opacity-100 transition-opacity duration-200 ${o} pointer-events-none
|
|
309
309
|
`
|
|
310
|
-
},
|
|
310
|
+
}, e)
|
|
311
311
|
]);
|
|
312
312
|
});
|
|
313
313
|
export {
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
314
|
+
T as B,
|
|
315
|
+
L as C,
|
|
316
|
+
I as F,
|
|
317
|
+
v as L,
|
|
318
|
+
V as P,
|
|
319
|
+
G as R,
|
|
320
|
+
R as S,
|
|
321
|
+
M as T,
|
|
322
|
+
O as a,
|
|
323
|
+
D as b
|
|
324
324
|
};
|
package/package.json
CHANGED