@base-framework/ui 1.2.12 → 1.2.13
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 o, F as n, b as r, L as i, P as p, R as u, S as I, c as l, d as c, T as d } from "./tooltip-
|
|
1
|
+
import { B as e, C as t, a as o, F as n, b as r, L as i, P as p, R as u, S as I, c as l, d as c, T as d } from "./tooltip-Dh_RmJ7u.js";
|
|
2
2
|
import { B as T, C as g, a as B, I as C, L as f, M as S, T as x, U as b, i as F, b as M } from "./buttons-DthWscX3.js";
|
|
3
3
|
import { C as P, a as R, D as U, b as h, E as k, F as D, H, I as V, c as E, M as G, N, P as W, R as Z, T as v, d as w, e as J, U as j, V as q, f as y, W as z } from "./image-XjAp5NjV.js";
|
|
4
4
|
import { S as K } from "./skeleton-BlY3opxG.js";
|
|
@@ -3,7 +3,7 @@ import { Div as n, H5 as et, P as b, Li as q, Span as a, Ul as V, Button as p, I
|
|
|
3
3
|
import { P as S, C as at, R as ct } from "./simple-search-input-DKWA4zYs.js";
|
|
4
4
|
import { U as m, B as h, I as dt } from "./buttons-DthWscX3.js";
|
|
5
5
|
import { Timer as ut, List as ht, DynamicTime as mt } from "@base-framework/organisms";
|
|
6
|
-
import { C as ft, b as pt } from "./tooltip-
|
|
6
|
+
import { C as ft, b as pt } from "./tooltip-Dh_RmJ7u.js";
|
|
7
7
|
import { f as C } from "./image-XjAp5NjV.js";
|
|
8
8
|
import { Icons as u } from "./icons.es.js";
|
|
9
9
|
import { F as z } from "./format-DE4rFWuD.js";
|
package/dist/index.es.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { B as s, C as o, a as t, F as r, b as n, L as i, P as l, R as p, S as m, c as d, d as u, T as g } from "./tooltip-
|
|
1
|
+
import { B as s, C as o, a as t, F as r, b as n, L as i, P as l, R as p, S as m, c as d, d as u, T as g } from "./tooltip-Dh_RmJ7u.js";
|
|
2
2
|
import { B as T, C, a as S, I, L as b, M as B, T as D, U as F, i as P, b as M } from "./buttons-DthWscX3.js";
|
|
3
3
|
import { C as k, a as x, D as v, b as N, E as U, F as h, H as y, I as L, c as W, M as H, N as R, P as w, R as A, T as G, d as O, e as E, U as j, V, f as J, W as Z } from "./image-XjAp5NjV.js";
|
|
4
4
|
import { S as z } from "./skeleton-BlY3opxG.js";
|
|
5
5
|
import { Icons as Q, MaterialSymbols as _ } from "./icons.es.js";
|
|
6
|
-
import { A as Y, B as $, C as aa, a as ea, b as sa, c as oa, d as ta, D as ra, e as na, f as ia, g as la, h as pa, i as ma, j as da, k as ua, l as ga, m as ca, n as Ta, o as Ca, E as Sa, F as Ia, p as ba, q as Ba, r as Da, s as Fa, t as Pa, u as Ma, v as fa, w as ka, x as xa, I as va, L as Na, M as Ua, y as ha, N as ya, z as La, P as Wa, S as Ha, G as Ra, H as wa, J as Aa, K as Ga, T as Oa, O as Ea, Q as ja, R as Va, U as Ja } from "./empty-state-
|
|
6
|
+
import { A as Y, B as $, C as aa, a as ea, b as sa, c as oa, d as ta, D as ra, e as na, f as ia, g as la, h as pa, i as ma, j as da, k as ua, l as ga, m as ca, n as Ta, o as Ca, E as Sa, F as Ia, p as ba, q as Ba, r as Da, s as Fa, t as Pa, u as Ma, v as fa, w as ka, x as xa, I as va, L as Na, M as Ua, y as ha, N as ya, z as La, P as Wa, S as Ha, G as Ra, H as wa, J as Aa, K as Ga, T as Oa, O as Ea, Q as ja, R as Va, U as Ja } from "./empty-state-CCu91UpF.js";
|
|
7
7
|
import { A as qa, B as za, C as Ka, a as Qa, b as _a, D as Xa, c as Ya, d as $a, e as ae, f as ee, g as se, F as oe, H as te, M as re, O as ne, P as ie, R as le, S as pe, h as me, i as de, j as ue, T as ge, U as ce, k as Te, l as Ce, m as Se, p as Ie } from "./simple-search-input-DKWA4zYs.js";
|
|
8
8
|
import { B as Be, I as De, N as Fe, P as Pe, S as Me, T as fe, a as ke, b as xe, U as ve, c as Ne, d as Ue, e as he, W as ye, f as Le, g as We, h as He, i as Re, j as we, k as Ae, l as Ge, m as Oe, n as Ee } from "./signature-panel-BKj_0kwR.js";
|
|
9
9
|
import { B as Ve, I as Je, M as Ze, a as qe, b as ze, N as Ke, c as Qe, d as _e, e as Xe, f as Ye, P as $e, S as as, T as es } from "./mobile-nav-wrapper-9VRCW4oA.js";
|
package/dist/molecules.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as s, B as t, C as r, a as e, b as i, c as n, d as m, D as l, e as d, f as C, g as p, h as D, i as S, j as u, k as c, l as g, m as F, n as T, o as P, E as w, F as A, p as I, q as f, r as b, s as y, t as B, u as M, v as U, w as k, x, I as L, L as R, M as v, y as E, N, z as h, P as G, S as O, G as j, H as q, J as z, K as H, T as J, O as K, Q, R as _, U as V } from "./empty-state-
|
|
1
|
+
import { A as s, B as t, C as r, a as e, b as i, c as n, d as m, D as l, e as d, f as C, g as p, h as D, i as S, j as u, k as c, l as g, m as F, n as T, o as P, E as w, F as A, p as I, q as f, r as b, s as y, t as B, u as M, v as U, w as k, x, I as L, L as R, M as v, y as E, N, z as h, P as G, S as O, G as j, H as q, J as z, K as H, T as J, O as K, Q, R as _, U as V } from "./empty-state-CCu91UpF.js";
|
|
2
2
|
import { A as X, P as Y, m as Z } from "./simple-search-input-DKWA4zYs.js";
|
|
3
3
|
export {
|
|
4
4
|
s as Alert,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Span as m, Div as
|
|
2
|
-
import { Atom as
|
|
1
|
+
import { Span as m, Div as s, Legend as h, Fieldset as p, H4 as y, P as k, UseParent as x, Input as w } from "@base-framework/atoms";
|
|
2
|
+
import { Atom as n, Html as $ } from "@base-framework/base";
|
|
3
3
|
import { U as v } from "./buttons-DthWscX3.js";
|
|
4
4
|
import { f as C, g as P, h as S, i as B } from "./image-XjAp5NjV.js";
|
|
5
5
|
const d = {
|
|
@@ -86,24 +86,24 @@ const d = {
|
|
|
86
86
|
}, N = (r) => d[r] || d.gray, E = (r, e = {}) => {
|
|
87
87
|
const t = N(r), o = e.backgroundColor ?? t.backgroundColor, l = e.textColor ?? t.textColor, a = e.ringColor ?? t.ringColor;
|
|
88
88
|
return `inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors ${o} ${l} ${a}`;
|
|
89
|
-
}, O =
|
|
89
|
+
}, O = n((r, e) => {
|
|
90
90
|
const { type: t, icon: o, size: l = "xs", backgroundColor: a, textColor: i, ringColor: c, ...g } = r, u = E(t, { backgroundColor: a, textColor: i, ringColor: c });
|
|
91
91
|
return m({ ...g, class: u }, [
|
|
92
92
|
o ? v({ size: l, class: "mr-1" }, o) : null,
|
|
93
93
|
...e || []
|
|
94
94
|
]);
|
|
95
|
-
}), U =
|
|
95
|
+
}), U = n((r, e) => {
|
|
96
96
|
const t = r.margin ?? "my-5 mx-5", o = r.padding ?? "p-4", l = r.border ?? "border-border";
|
|
97
|
-
return r.hover && (r.class += " hover:shadow-lg hover:bg-muted/50"),
|
|
97
|
+
return r.hover && (r.class += " hover:shadow-lg hover:bg-muted/50"), s({
|
|
98
98
|
...r,
|
|
99
99
|
// @ts-ignore
|
|
100
100
|
class: `rounded-lg ${l} bg-card text-card-foreground shadow-md min-w-[120px] min-h-[80px] ${t} ${o} ${r.class || ""}`
|
|
101
101
|
}, e);
|
|
102
|
-
}), F =
|
|
102
|
+
}), F = n((r, e) => h({
|
|
103
103
|
...r,
|
|
104
104
|
// @ts-ignore
|
|
105
105
|
class: ` font-medium -mt-4 -mx-1 px-2 py-2 ${r.class || ""}`
|
|
106
|
-
}, e)), V =
|
|
106
|
+
}, e)), V = n((r, e) => {
|
|
107
107
|
const t = r.border === "full" ? "border rounded-md" : "border-t";
|
|
108
108
|
return p({
|
|
109
109
|
...r,
|
|
@@ -112,17 +112,17 @@ const d = {
|
|
|
112
112
|
}, [
|
|
113
113
|
// @ts-ignore
|
|
114
114
|
r.legend && F(r.legend),
|
|
115
|
-
|
|
115
|
+
s({ class: "flex flex-auto flex-col gap-y-6" }, e)
|
|
116
116
|
]);
|
|
117
|
-
}), _ =
|
|
117
|
+
}), _ = n((r, e) => {
|
|
118
118
|
const t = r.border === !0 ? "border-t" : "";
|
|
119
|
-
return
|
|
119
|
+
return s({
|
|
120
120
|
...r,
|
|
121
121
|
// @ts-ignore
|
|
122
122
|
class: `grid grid-cols-1 gap-y-4 sm:grid-cols-[1fr_2fr] sm:gap-x-6 pt-8 ${t} ${r.class || ""}`
|
|
123
123
|
}, [
|
|
124
124
|
// @ts-ignore
|
|
125
|
-
r.label &&
|
|
125
|
+
r.label && s({
|
|
126
126
|
// @ts-ignore
|
|
127
127
|
...r.labelProps,
|
|
128
128
|
// @ts-ignore
|
|
@@ -134,7 +134,7 @@ const d = {
|
|
|
134
134
|
r.description && k({ class: "text-sm text-muted-foreground" }, r.description)
|
|
135
135
|
]),
|
|
136
136
|
// Controls container: grows to fill remaining space, spacing between items
|
|
137
|
-
|
|
137
|
+
s({ class: "flex flex-col gap-y-4" }, e)
|
|
138
138
|
]);
|
|
139
139
|
}), j = C(
|
|
140
140
|
{
|
|
@@ -166,17 +166,17 @@ const d = {
|
|
|
166
166
|
* @returns {object}
|
|
167
167
|
*/
|
|
168
168
|
render() {
|
|
169
|
-
return
|
|
169
|
+
return s({ class: "relative w-full h-4 flex items-center" }, [
|
|
170
170
|
// Track
|
|
171
|
-
|
|
171
|
+
s({ class: "absolute h-2 w-full rounded-full bg-muted" }),
|
|
172
172
|
x(({ state: r }) => [
|
|
173
173
|
// Filled Track
|
|
174
|
-
|
|
174
|
+
s({
|
|
175
175
|
class: "absolute h-2 bg-primary rounded-full",
|
|
176
176
|
style: ["width: [[filledPercentage]]%", r]
|
|
177
177
|
}),
|
|
178
178
|
// Thumb
|
|
179
|
-
|
|
179
|
+
s({
|
|
180
180
|
class: `
|
|
181
181
|
absolute block h-5 w-5 rounded-full border-2 border-primary bg-background
|
|
182
182
|
ring-offset-background transition-colors focus-visible:outline-none
|
|
@@ -208,7 +208,7 @@ const d = {
|
|
|
208
208
|
]);
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
|
-
), D =
|
|
211
|
+
), D = n((r) => ({
|
|
212
212
|
tag: "select",
|
|
213
213
|
onCreated(e) {
|
|
214
214
|
r.options && $.setupSelectOptions(e, r.options);
|
|
@@ -255,13 +255,13 @@ const d = {
|
|
|
255
255
|
</text>
|
|
256
256
|
</svg>
|
|
257
257
|
`;
|
|
258
|
-
return
|
|
258
|
+
return s({
|
|
259
259
|
class: "circle-graph text-inherit",
|
|
260
260
|
html: i
|
|
261
261
|
});
|
|
262
|
-
}, H =
|
|
262
|
+
}, H = n((r) => {
|
|
263
263
|
const e = r.progress || 0, t = r.class || "", o = b(e, t);
|
|
264
|
-
return
|
|
264
|
+
return s({
|
|
265
265
|
class: "circle-graph-wrap",
|
|
266
266
|
onSet: [
|
|
267
267
|
// @ts-ignore
|
|
@@ -269,7 +269,7 @@ const d = {
|
|
|
269
269
|
(l) => (l = I(l), l ? b(l, t) : o)
|
|
270
270
|
]
|
|
271
271
|
}, [o]);
|
|
272
|
-
}), T = () => x(({ state: r }) =>
|
|
272
|
+
}), T = () => x(({ state: r }) => s({
|
|
273
273
|
class: "absolute h-full rounded-full bg-primary transition-all duration-300",
|
|
274
274
|
style: ["width: [[progress]]%;", r]
|
|
275
275
|
})), M = C(
|
|
@@ -280,7 +280,7 @@ const d = {
|
|
|
280
280
|
* @returns {object}
|
|
281
281
|
*/
|
|
282
282
|
render() {
|
|
283
|
-
return
|
|
283
|
+
return s({ class: "relative w-full h-4 rounded-full bg-muted" }, [
|
|
284
284
|
T()
|
|
285
285
|
]);
|
|
286
286
|
},
|
|
@@ -324,7 +324,7 @@ const d = {
|
|
|
324
324
|
r < 0 && (r = 0), r > 100 && (r = 100), this.state.progress = r;
|
|
325
325
|
}
|
|
326
326
|
}
|
|
327
|
-
), Z =
|
|
327
|
+
), Z = n((r = {}) => {
|
|
328
328
|
const {
|
|
329
329
|
class: e = "",
|
|
330
330
|
background: t = !0,
|
|
@@ -334,18 +334,18 @@ const d = {
|
|
|
334
334
|
zIndexClass: i = "z-9999",
|
|
335
335
|
style: c = ""
|
|
336
336
|
} = r, g = [
|
|
337
|
-
"
|
|
337
|
+
"sticky bottom-0 left-0 right-0 w-full",
|
|
338
338
|
i,
|
|
339
339
|
t ? l : "",
|
|
340
340
|
o ? a : "",
|
|
341
341
|
e
|
|
342
342
|
].filter(Boolean).join(" "), u = `height: env(safe-area-inset-bottom, 0px);${c ? ` ${c}` : ""}`;
|
|
343
|
-
return
|
|
343
|
+
return s({
|
|
344
344
|
class: g,
|
|
345
345
|
style: u,
|
|
346
346
|
"aria-hidden": "true"
|
|
347
347
|
});
|
|
348
|
-
}), J =
|
|
348
|
+
}), J = n((r = {}) => {
|
|
349
349
|
const {
|
|
350
350
|
class: e = "",
|
|
351
351
|
background: t = !0,
|
|
@@ -355,13 +355,13 @@ const d = {
|
|
|
355
355
|
zIndexClass: i = "z-9999",
|
|
356
356
|
style: c = ""
|
|
357
357
|
} = r, g = [
|
|
358
|
-
"
|
|
358
|
+
"sticky top-0 left-0 right-0 w-full",
|
|
359
359
|
i,
|
|
360
360
|
t ? l : "",
|
|
361
361
|
o ? a : "",
|
|
362
362
|
e
|
|
363
363
|
].filter(Boolean).join(" "), u = `height: env(safe-area-inset-top, 0px);${c ? ` ${c}` : ""}`;
|
|
364
|
-
return
|
|
364
|
+
return s({
|
|
365
365
|
class: g,
|
|
366
366
|
style: u,
|
|
367
367
|
"aria-hidden": "true"
|
|
@@ -375,9 +375,9 @@ const d = {
|
|
|
375
375
|
"bottom-left": "top-full right-full transform translate-x-1 mt-2",
|
|
376
376
|
left: "top-1/2 right-full transform -translate-y-1/2 mr-2",
|
|
377
377
|
right: "top-1/2 left-full transform -translate-y-1/2 ml-2"
|
|
378
|
-
}, A = (r) => f[String(r)] || f.top, Y =
|
|
378
|
+
}, A = (r) => f[String(r)] || f.top, Y = n(({ position: r = "top", content: e }, t) => {
|
|
379
379
|
const o = A(r);
|
|
380
|
-
return Array.isArray(t) === !1 && (t = [t]),
|
|
380
|
+
return Array.isArray(t) === !1 && (t = [t]), s({ class: "relative group inline-block" }, [
|
|
381
381
|
...t,
|
|
382
382
|
// Tooltip box
|
|
383
383
|
m({
|
package/package.json
CHANGED