@base-framework/ui 1.1.22 → 1.1.23
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/{empty-state-accxIvGO.js → empty-state-CPh9WDdU.js} +1 -1
- package/dist/index.es.js +3 -3
- package/dist/molecules.es.js +2 -2
- package/dist/organisms.es.js +2 -2
- package/dist/{signature-panel-CuOUv4V2.js → signature-panel-D4dg_lpE.js} +1 -1
- package/dist/{simple-search-input-Cf5rRhJE.js → simple-search-input-Bd3LOIPc.js} +29 -25
- package/dist/types/components/atoms/form/inputs/range-slider.d.ts +1 -1
- package/dist/types/components/atoms/progress/progress-bar.d.ts +1 -1
- package/dist/types/components/molecules/breadcrumb/dots-indicator.d.ts +1 -1
- package/dist/types/components/molecules/combobox/combobox.d.ts +1 -1
- package/dist/types/components/molecules/counters/counter.d.ts +1 -1
- package/dist/types/components/molecules/date-time/date-picker.d.ts +1 -1
- package/dist/types/components/molecules/date-time/date-range-picker.d.ts +1 -1
- package/dist/types/components/molecules/date-time/time-picker.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Atom as c, Component as y, Html as A, Dom as Z, base as tt, Data as k, Builder as H, Jot as w, Events as g, DateTime as M } from "@base-framework/base";
|
|
2
2
|
import { Div as n, H5 as et, P as b, Li as q, Span as a, Ul as V, Button as p, I as T, OnState as I, Label as P, H2 as v, Form as st, Header as B, Footer as L, A as G, H3 as ot, Checkbox as nt, Input as f, Img as W, Nav as it, UseParent as _, OnStateOpen as O, Time as rt, Dialog as lt } from "@base-framework/atoms";
|
|
3
|
-
import { P as S, C as at, R as ct } from "./simple-search-input-
|
|
3
|
+
import { P as S, C as at, R as ct } from "./simple-search-input-Bd3LOIPc.js";
|
|
4
4
|
import { U as m, B as h, I as dt } from "./buttons-BY-KDbOv.js";
|
|
5
5
|
import { Timer as ut, List as ht, DynamicTime as mt } from "@base-framework/organisms";
|
|
6
6
|
import { C as ft, b as pt } from "./tooltip-C8OUlZKV.js";
|
package/dist/index.es.js
CHANGED
|
@@ -3,9 +3,9 @@ import { B as c, I as g, L as T, M as C, U as I, i as S, a as b } from "./button
|
|
|
3
3
|
import { C as B, a as F, D as P, b as M, E as f, F as k, H as x, I as v, c as N, M as U, N as h, P as y, R as L, T as W, d as H, e as R, U as w, V as A, f as G, W as O } from "./image-gf8yyrt3.js";
|
|
4
4
|
import { S as j } from "./skeleton-BlY3opxG.js";
|
|
5
5
|
import { Icons as J, MaterialSymbols as q } from "./icons.es.js";
|
|
6
|
-
import { A as K, B as Q, C as _, a as X, b as Y, c as Z, d as $, D as aa, e as ea, f as sa, g as oa, h as ta, i as ra, j as na, k as ia, l as la, m as pa, n as ma, o as da, E as ua, F as ca, p as ga, q as Ta, r as Ca, s as Ia, t as Sa, u as ba, v as Da, w as Ba, x as Fa, I as Pa, L as Ma, M as fa, y as ka, N as xa, z as va, P as Na, S as Ua, G as ha, H as ya, J as La, K as Wa, T as Ha, O as Ra, Q as wa, R as Aa, U as Ga } from "./empty-state-
|
|
7
|
-
import { A as Ea, B as ja, C as Va, a as Ja, b as qa, D as za, c as Ka, d as Qa, e as _a, f as Xa, g as Ya, F as Za, H as $a, M as ae, O as ee, P as se, R as oe, S as te, h as re, i as ne, j as ie, T as le, U as pe, k as me, l as de, m as ue, p as ce } from "./simple-search-input-
|
|
8
|
-
import { B as Te, I as Ce, N as Ie, P as Se, S as be, T as De, a as Be, b as Fe, U as Pe, c as Me, d as fe, e as ke, W as xe, f as ve, g as Ne, h as Ue, i as he, j as ye, k as Le, l as We, m as He, n as Re } from "./signature-panel-
|
|
6
|
+
import { A as K, B as Q, C as _, a as X, b as Y, c as Z, d as $, D as aa, e as ea, f as sa, g as oa, h as ta, i as ra, j as na, k as ia, l as la, m as pa, n as ma, o as da, E as ua, F as ca, p as ga, q as Ta, r as Ca, s as Ia, t as Sa, u as ba, v as Da, w as Ba, x as Fa, I as Pa, L as Ma, M as fa, y as ka, N as xa, z as va, P as Na, S as Ua, G as ha, H as ya, J as La, K as Wa, T as Ha, O as Ra, Q as wa, R as Aa, U as Ga } from "./empty-state-CPh9WDdU.js";
|
|
7
|
+
import { A as Ea, B as ja, C as Va, a as Ja, b as qa, D as za, c as Ka, d as Qa, e as _a, f as Xa, g as Ya, F as Za, H as $a, M as ae, O as ee, P as se, R as oe, S as te, h as re, i as ne, j as ie, T as le, U as pe, k as me, l as de, m as ue, p as ce } from "./simple-search-input-Bd3LOIPc.js";
|
|
8
|
+
import { B as Te, I as Ce, N as Ie, P as Se, S as be, T as De, a as Be, b as Fe, U as Pe, c as Me, d as fe, e as ke, W as xe, f as ve, g as Ne, h as Ue, i as he, j as ye, k as Le, l as We, m as He, n as Re } from "./signature-panel-D4dg_lpE.js";
|
|
9
9
|
import { B as Ae, I as Ge, M as Oe, a as Ee, b as je, N as Ve, c as Je, d as qe, e as ze, f as Ke, P as Qe, S as _e, T as Xe } from "./mobile-nav-wrapper-gNWndUx9.js";
|
|
10
10
|
import { S as Ze } from "./sidebar-menu-9uhT3f6A.js";
|
|
11
11
|
import { B as as, F as es, M as ss, P as os } from "./full-page-DccgwWsM.js";
|
package/dist/molecules.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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-
|
|
2
|
-
import { A as X, P as Y, m as Z } from "./simple-search-input-
|
|
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-CPh9WDdU.js";
|
|
2
|
+
import { A as X, P as Y, m as Z } from "./simple-search-input-Bd3LOIPc.js";
|
|
3
3
|
export {
|
|
4
4
|
s as Alert,
|
|
5
5
|
X as Avatar,
|
package/dist/organisms.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as s, C as n, a as t, b as r, D as o, c as l, d as i, e as d, f as b, g as p, F as u, H as T, M as g, O as v, R as N, S as k, h as D, i as c, j as C, T as m, U as B, k as S, l as M, p as h } from "./simple-search-input-
|
|
2
|
-
import { B as W, I as U, N as f, P as H, S as I, T as P, a as x, b as L, U as O, c as F, d as G, e as j, W as R, f as w, g as q, h as z, i as A, j as E, k as J, l as K, m as Q, n as V } from "./signature-panel-
|
|
1
|
+
import { B as s, C as n, a as t, b as r, D as o, c as l, d as i, e as d, f as b, g as p, F as u, H as T, M as g, O as v, R as N, S as k, h as D, i as c, j as C, T as m, U as B, k as S, l as M, p as h } from "./simple-search-input-Bd3LOIPc.js";
|
|
2
|
+
import { B as W, I as U, N as f, P as H, S as I, T as P, a as x, b as L, U as O, c as F, d as G, e as j, W as R, f as w, g as q, h as z, i as A, j as E, k as J, l as K, m as Q, n as V } from "./signature-panel-D4dg_lpE.js";
|
|
3
3
|
import { B as Y, I as Z, M as _, a as $, b as aa, N as ea, c as sa, d as na, e as ta, f as ra, P as oa, S as la, T as ia } from "./mobile-nav-wrapper-gNWndUx9.js";
|
|
4
4
|
import { S as ba } from "./sidebar-menu-9uhT3f6A.js";
|
|
5
5
|
export {
|
|
@@ -2,7 +2,7 @@ import { Div as l, Button as b, On as j, Span as T, Nav as f, Ul as p, Section a
|
|
|
2
2
|
import { Component as k, Data as I, DateTime as U, router as v, NavLink as S, base as L, Dom as B } from "@base-framework/base";
|
|
3
3
|
import { B as C } from "./buttons-BY-KDbOv.js";
|
|
4
4
|
import { Icons as D } from "./icons.es.js";
|
|
5
|
-
import { O as A } from "./simple-search-input-
|
|
5
|
+
import { O as A } from "./simple-search-input-Bd3LOIPc.js";
|
|
6
6
|
import { V as u, H as F } from "./image-gf8yyrt3.js";
|
|
7
7
|
import { IntervalTimer as O } from "@base-framework/organisms";
|
|
8
8
|
class Pt extends k {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Div as r, Span as N, Button as K, OnState as J, On as
|
|
1
|
+
import { Div as r, Span as N, Button as K, OnState as J, On as T, Th as G, UseParent as et, I as st, Thead as at, Tr as nt, Table as j, P as $, Li as X, Time as ot, Ul as rt, Input as lt } from "@base-framework/atoms";
|
|
2
2
|
import { Component as R, Data as P, Atom as m, DateTime as H, DataTracker as _, Jot as it } from "@base-framework/base";
|
|
3
3
|
import { B as y, U as q } from "./buttons-BY-KDbOv.js";
|
|
4
4
|
import { Icons as S } from "./icons.es.js";
|
|
@@ -204,9 +204,9 @@ const xt = m(({ src: t, alt: e }) => !t || t.indexOf(".") === -1 && t.indexOf("[
|
|
|
204
204
|
a.substring(0, 3)
|
|
205
205
|
)
|
|
206
206
|
)
|
|
207
|
-
), b = (t) => (t *= 1, t < 10 ? `0${t}` : String(t)), Mt = (t) => (t.indexOf("T") === -1 && t.indexOf(" ") === -1 && (t += "T00:00:01"), t.replace(" ", "T"), t), p = (t, e, s) => `${t}-${b(e + 1)}-${b(s)}`, It = (t) => t ? "bg-accent text-primary" : "",
|
|
208
|
-
const n =
|
|
209
|
-
return n || (t ? It(t) : s ?
|
|
207
|
+
), b = (t) => (t *= 1, t < 10 ? `0${t}` : String(t)), Mt = (t) => (t.indexOf("T") === -1 && t.indexOf(" ") === -1 && (t += "T00:00:01"), t.replace(" ", "T"), t), p = (t, e, s) => `${t}-${b(e + 1)}-${b(s)}`, It = (t) => t ? "bg-accent text-primary" : "", Ot = (t) => t ? "text-muted-foreground opacity-50" : "", Tt = (t, e) => t === e, $t = (t, e) => Tt(t, e) ? "bg-primary text-primary-foreground" : "", Rt = (t, e, s, a) => {
|
|
208
|
+
const n = $t(e, a);
|
|
209
|
+
return n || (t ? It(t) : s ? Ot(s) : "text-foreground");
|
|
210
210
|
}, Y = (t) => {
|
|
211
211
|
const {
|
|
212
212
|
day: e,
|
|
@@ -537,27 +537,27 @@ const W = ({ label: t, click: e }) => y(
|
|
|
537
537
|
}, Ut = ({ today: t, current: e, blockPriorDates: s, onDateClick: a }) => {
|
|
538
538
|
const { start: n, end: o } = e, c = new Date(e.year, e.month, 1).getDay(), l = new Date(e.year, e.month + 1, 0).getDate(), u = [], f = e.month === 0 ? 11 : e.month - 1, g = e.month === 0 ? e.year - 1 : e.year, C = new Date(g, f + 1, 0).getDate(), v = e.month === 11 ? 0 : e.month + 1, k = e.month === 11 ? e.year + 1 : e.year;
|
|
539
539
|
for (let d = c - 1; d >= 0; d--) {
|
|
540
|
-
const i = C - d, h = p(g, f, i), w = new Date(g, f, i), x = new Date(t.year, t.month, t.date), D = w < x, M = s && D, I = n === h,
|
|
540
|
+
const i = C - d, h = p(g, f, i), w = new Date(g, f, i), x = new Date(t.year, t.month, t.date), D = w < x, M = s && D, I = n === h, O = o === h, tt = n && o && h > n && h < o;
|
|
541
541
|
u.push({
|
|
542
542
|
day: i,
|
|
543
543
|
iso: h,
|
|
544
544
|
disabled: M,
|
|
545
545
|
isStart: I,
|
|
546
|
-
isEnd:
|
|
546
|
+
isEnd: O,
|
|
547
547
|
isBetween: tt,
|
|
548
548
|
isOtherMonth: !0,
|
|
549
549
|
click: () => a(h)
|
|
550
550
|
});
|
|
551
551
|
}
|
|
552
552
|
for (let d = 1; d <= l; d++) {
|
|
553
|
-
const i = p(e.year, e.month, d), h = new Date(e.year, e.month, d), w = new Date(t.year, t.month, t.date), x = h < w, D = s && x, M = n === i, I = o === i,
|
|
553
|
+
const i = p(e.year, e.month, d), h = new Date(e.year, e.month, d), w = new Date(t.year, t.month, t.date), x = h < w, D = s && x, M = n === i, I = o === i, O = n && o && i > n && i < o;
|
|
554
554
|
u.push({
|
|
555
555
|
day: d,
|
|
556
556
|
iso: i,
|
|
557
557
|
disabled: D,
|
|
558
558
|
isStart: M,
|
|
559
559
|
isEnd: I,
|
|
560
|
-
isBetween:
|
|
560
|
+
isBetween: O,
|
|
561
561
|
isOtherMonth: !1,
|
|
562
562
|
click: () => {
|
|
563
563
|
a(i);
|
|
@@ -566,14 +566,14 @@ const W = ({ label: t, click: e }) => y(
|
|
|
566
566
|
}
|
|
567
567
|
const F = (7 - u.length % 7) % 7;
|
|
568
568
|
for (let d = 1; d <= F; d++) {
|
|
569
|
-
const i = p(k, v, d), h = new Date(k, v, d), w = new Date(t.year, t.month, t.date), x = h < w, D = s && x, M = n === i, I = o === i,
|
|
569
|
+
const i = p(k, v, d), h = new Date(k, v, d), w = new Date(t.year, t.month, t.date), x = h < w, D = s && x, M = n === i, I = o === i, O = n && o && i > n && i < o;
|
|
570
570
|
u.push({
|
|
571
571
|
day: d,
|
|
572
572
|
iso: i,
|
|
573
573
|
disabled: D,
|
|
574
574
|
isStart: M,
|
|
575
575
|
isEnd: I,
|
|
576
|
-
isBetween:
|
|
576
|
+
isBetween: O,
|
|
577
577
|
isOtherMonth: !0,
|
|
578
578
|
click: () => a(i)
|
|
579
579
|
});
|
|
@@ -630,14 +630,14 @@ const W = ({ label: t, click: e }) => y(
|
|
|
630
630
|
)
|
|
631
631
|
)
|
|
632
632
|
), Qt = ({ start: t, end: e, selecting: s, onSelectStart: a, onSelectEnd: n }) => r({ class: "flex gap-x-2 mb-4" }, [
|
|
633
|
-
|
|
633
|
+
T("selecting", (o) => y({
|
|
634
634
|
click: a,
|
|
635
635
|
variant: o === "start" ? "primary" : "outline",
|
|
636
636
|
class: "flex-1"
|
|
637
637
|
}, [
|
|
638
638
|
r({ class: "font-medium" }, Q("current.start", "Start Date"))
|
|
639
639
|
])),
|
|
640
|
-
|
|
640
|
+
T("selecting", (o) => y({
|
|
641
641
|
click: n,
|
|
642
642
|
variant: o === "end" ? "primary" : "outline",
|
|
643
643
|
class: "flex-1"
|
|
@@ -953,7 +953,7 @@ class Z extends R {
|
|
|
953
953
|
render() {
|
|
954
954
|
const e = this.border !== !1 ? "border" : "", s = this.getHeaderColCount();
|
|
955
955
|
return r({ class: "w-full flex flex-auto flex-col" }, [
|
|
956
|
-
|
|
956
|
+
T("hasItems", (a) => a === !1 && this.emptyState ? this.emptyState() : null),
|
|
957
957
|
r({ class: `w-full rounded-md ${e} overflow-x-auto`, onSet: ["hasItems", { hidden: !1 }] }, [
|
|
958
958
|
j({ class: "w-full" }, [
|
|
959
959
|
// @ts-ignore
|
|
@@ -1061,7 +1061,7 @@ class Zt extends Z {
|
|
|
1061
1061
|
render() {
|
|
1062
1062
|
const e = this.border !== !1 ? "border" : "", s = this.getHeaderColCount();
|
|
1063
1063
|
return r({ class: "w-full flex flex-auto flex-col" }, [
|
|
1064
|
-
|
|
1064
|
+
T("hasItems", (a) => a === !1 && this.emptyState ? this.emptyState() : null),
|
|
1065
1065
|
r({ class: `w-full rounded-md ${e} overflow-x-auto`, onSet: ["hasItems", { hidden: !1 }] }, [
|
|
1066
1066
|
j({ class: "w-full" }, [
|
|
1067
1067
|
// @ts-ignore
|
|
@@ -1144,7 +1144,7 @@ class ee extends Z {
|
|
|
1144
1144
|
render() {
|
|
1145
1145
|
const e = this.border !== !1 ? "border" : "", s = this.getHeaderColCount();
|
|
1146
1146
|
return r({ class: "w-full flex flex-auto flex-col" }, [
|
|
1147
|
-
|
|
1147
|
+
T("hasItems", (a) => a === !1 && this.emptyState ? this.emptyState() : null),
|
|
1148
1148
|
r({ class: `w-full rounded-md ${e} overflow-x-auto`, onSet: ["hasItems", { hidden: !1 }] }, [
|
|
1149
1149
|
j({ class: "w-full" }, [
|
|
1150
1150
|
// @ts-ignore
|
|
@@ -1208,18 +1208,18 @@ const ke = m((t) => new ee(
|
|
|
1208
1208
|
skeleton: t.skeleton
|
|
1209
1209
|
}
|
|
1210
1210
|
)), se = m(({ name: t, email: e }) => r({ class: "min-w-0 flex-auto" }, [
|
|
1211
|
-
|
|
1212
|
-
|
|
1211
|
+
$({ class: "text-base font-semibold leading-6 m-0" }, t),
|
|
1212
|
+
$({ class: "truncate text-sm leading-5 text-muted-foreground m-0" }, e)
|
|
1213
1213
|
])), ae = () => r({ class: "flex items-center gap-x-1.5" }, [
|
|
1214
1214
|
r({ class: "flex-none rounded-full bg-emerald-500/20 p-1" }, [
|
|
1215
1215
|
r({ class: "h-1.5 w-1.5 rounded-full bg-emerald-500" })
|
|
1216
1216
|
]),
|
|
1217
|
-
|
|
1218
|
-
]), ne = (t) =>
|
|
1217
|
+
$({ class: "text-xs leading-5 text-gray-500" }, "Online")
|
|
1218
|
+
]), ne = (t) => $({ class: "text-xs leading-5 text-muted-foreground" }, [
|
|
1219
1219
|
N("Last seen "),
|
|
1220
1220
|
ot({ datetime: t }, "3h ago")
|
|
1221
1221
|
]), oe = (t, e) => t === "online" ? ae() : ne(e), re = m(({ role: t, lastSeen: e, status: s }) => r({ class: "hidden shrink-0 sm:flex sm:flex-col sm:items-end" }, [
|
|
1222
|
-
|
|
1222
|
+
$({ class: "text-sm leading-6 m-0" }, t),
|
|
1223
1223
|
oe(s, e)
|
|
1224
1224
|
])), le = (t) => t.split(" ").map((s) => s[0]).join(""), ie = m((t) => X({ class: "fadeIn flex justify-between gap-x-6 py-4 px-4 rounded-md hover:bg-muted/50" }, [
|
|
1225
1225
|
r({ class: "flex min-w-0 gap-x-4" }, [
|
|
@@ -1263,9 +1263,9 @@ class ce extends R {
|
|
|
1263
1263
|
{
|
|
1264
1264
|
class: this.getClassName(),
|
|
1265
1265
|
// @ts-ignore
|
|
1266
|
-
|
|
1267
|
-
//
|
|
1268
|
-
|
|
1266
|
+
animateIn: this.animateIn ?? null,
|
|
1267
|
+
// @ts-ignore
|
|
1268
|
+
animateOut: this.animateOut ?? null,
|
|
1269
1269
|
onSet: ["loading", {
|
|
1270
1270
|
loading: !0
|
|
1271
1271
|
}]
|
|
@@ -1363,6 +1363,10 @@ class Me extends ce {
|
|
|
1363
1363
|
const e = this.container;
|
|
1364
1364
|
return r(
|
|
1365
1365
|
{
|
|
1366
|
+
// @ts-ignore
|
|
1367
|
+
animateIn: this.animateIn ?? null,
|
|
1368
|
+
// @ts-ignore
|
|
1369
|
+
animateOut: this.animateOut ?? null,
|
|
1366
1370
|
onState: [
|
|
1367
1371
|
["loading", {
|
|
1368
1372
|
loading: !0
|
|
@@ -1610,7 +1614,7 @@ const de = m(({ index: t, click: e, state: s }, a) => X({
|
|
|
1610
1614
|
]);
|
|
1611
1615
|
}
|
|
1612
1616
|
}
|
|
1613
|
-
),
|
|
1617
|
+
), Oe = m((t) => {
|
|
1614
1618
|
const e = t.icon ?? S.magnifyingGlass.default;
|
|
1615
1619
|
return r({
|
|
1616
1620
|
class: `relative flex items-center w-full rounded-xl bg-muted/30 focus-within:ring-2 focus-within:ring-ring transition-all ${t.containerClass || ""}`
|
|
@@ -1657,7 +1661,7 @@ export {
|
|
|
1657
1661
|
ve as g,
|
|
1658
1662
|
Ie as h,
|
|
1659
1663
|
ue as i,
|
|
1660
|
-
|
|
1664
|
+
Oe as j,
|
|
1661
1665
|
ie as k,
|
|
1662
1666
|
Mt as l,
|
|
1663
1667
|
yt as m,
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* @property {boolean} required
|
|
12
12
|
* @property {boolean} selectFirst
|
|
13
13
|
* @property {function} onSelect
|
|
14
|
-
* @returns {Component
|
|
14
|
+
* @returns {Component}
|
|
15
15
|
*/
|
|
16
16
|
export const Combobox: typeof Component;
|
|
17
17
|
import { Component } from '@base-framework/base';
|
package/package.json
CHANGED