@base-framework/ui 1.0.88 → 1.0.90
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.
|
@@ -415,7 +415,7 @@ class xt extends p {
|
|
|
415
415
|
this.panel.hidePopover(), this.state.open = !1, typeof this.onClose == "function" && this.onClose(), document.documentElement.style.overflowY = "auto";
|
|
416
416
|
}
|
|
417
417
|
}
|
|
418
|
-
const
|
|
418
|
+
const F = {
|
|
419
419
|
info: {
|
|
420
420
|
bgColor: "bg-muted/10",
|
|
421
421
|
borderColor: "border-blue-500",
|
|
@@ -500,7 +500,7 @@ class Me extends ae {
|
|
|
500
500
|
*/
|
|
501
501
|
getTypeStyles() {
|
|
502
502
|
const t = this.type || "default";
|
|
503
|
-
return
|
|
503
|
+
return F[t] || F.default;
|
|
504
504
|
}
|
|
505
505
|
/**
|
|
506
506
|
* This will get the buttons for the notification.
|
|
@@ -587,7 +587,7 @@ class wt extends p {
|
|
|
587
587
|
this.list.delete(t.id);
|
|
588
588
|
}
|
|
589
589
|
}
|
|
590
|
-
const
|
|
590
|
+
const N = window.matchMedia, I = c(({ value: e, label: t, icon: s }) => h({
|
|
591
591
|
class: 'text-sm gap-1 font-medium leading-none disabled:cursor-not-allowed disabled:opacity-70 flex flex-col items-center justify-between rounded-md border-2 bg-popover p-4 hover:bg-accent hover:text-accent-foreground data-[state="active"]:border-primary [&:has([data-state="active"])]:border-primary',
|
|
592
592
|
onState: ["method", { active: e }],
|
|
593
593
|
dataSet: ["method", ["state", e, "active"]],
|
|
@@ -600,7 +600,7 @@ const z = window.matchMedia, I = c(({ value: e, label: t, icon: s }) => h({
|
|
|
600
600
|
])), Pe = (e) => {
|
|
601
601
|
var o;
|
|
602
602
|
const t = document.documentElement;
|
|
603
|
-
if (e === "system" && (e = (o = window.matchMedia) != null && o.call(window, "(prefers-color-scheme: dark)").matches ? "dark" : "light"),
|
|
603
|
+
if (e === "system" && (e = (o = window.matchMedia) != null && o.call(window, "(prefers-color-scheme: dark)").matches ? "dark" : "light"), N && !N("(prefers-color-scheme: " + e + ")").matches) {
|
|
604
604
|
t.classList.add(e);
|
|
605
605
|
return;
|
|
606
606
|
}
|
|
@@ -695,8 +695,8 @@ const z = window.matchMedia, I = c(({ value: e, label: t, icon: s }) => h({
|
|
|
695
695
|
OFFLINE: "bg-gray-500",
|
|
696
696
|
BUSY: "bg-red-500",
|
|
697
697
|
AWAY: "bg-yellow-500"
|
|
698
|
-
},
|
|
699
|
-
class: `absolute bottom-0 right-0 w-3 h-3 border-2 rounded-full ${
|
|
698
|
+
}, Fe = (e = "") => (e = e.toUpperCase(), m[e] || m.OFFLINE), Ct = (e) => n({
|
|
699
|
+
class: `absolute bottom-0 right-0 w-3 h-3 border-2 rounded-full ${Fe(e)}`
|
|
700
700
|
}), kt = ({ propName: e = "status" } = {}) => n({
|
|
701
701
|
class: "absolute bottom-0 right-0 w-3 h-3 border-2 rounded-full",
|
|
702
702
|
onSet: [e, {
|
|
@@ -705,7 +705,7 @@ const z = window.matchMedia, I = c(({ value: e, label: t, icon: s }) => h({
|
|
|
705
705
|
[m.BUSY]: y.BUSY,
|
|
706
706
|
[m.AWAY]: y.AWAY
|
|
707
707
|
}]
|
|
708
|
-
}),
|
|
708
|
+
}), Ne = (e, t) => Y(
|
|
709
709
|
{
|
|
710
710
|
href: e,
|
|
711
711
|
"aria-current": t === "Breadcrumb" && "page",
|
|
@@ -713,13 +713,13 @@ const z = window.matchMedia, I = c(({ value: e, label: t, icon: s }) => h({
|
|
|
713
713
|
class: "text-muted-foreground font-medium hover:text-foreground"
|
|
714
714
|
},
|
|
715
715
|
[a(t)]
|
|
716
|
-
),
|
|
716
|
+
), ze = () => x({
|
|
717
717
|
class: "mx-3 text-muted-foreground",
|
|
718
718
|
"aria-hidden": !0,
|
|
719
719
|
size: "xs"
|
|
720
720
|
}, d.chevron.single.right), Ee = (e) => n({ class: "flex items-center" }, [
|
|
721
|
-
e.href ?
|
|
722
|
-
e.separator &&
|
|
721
|
+
e.href ? Ne(e.href, e.label) : a(e.label),
|
|
722
|
+
e.separator && ze()
|
|
723
723
|
]), St = S(
|
|
724
724
|
{
|
|
725
725
|
/**
|
|
@@ -759,7 +759,7 @@ const z = window.matchMedia, I = c(({ value: e, label: t, icon: s }) => h({
|
|
|
759
759
|
);
|
|
760
760
|
}
|
|
761
761
|
}
|
|
762
|
-
),
|
|
762
|
+
), z = {
|
|
763
763
|
xs: "h-1 w-1",
|
|
764
764
|
sm: "h-2 w-2",
|
|
765
765
|
md: "h-4 w-4",
|
|
@@ -768,7 +768,7 @@ const z = window.matchMedia, I = c(({ value: e, label: t, icon: s }) => h({
|
|
|
768
768
|
"2xl": "h-16 w-16",
|
|
769
769
|
"3xl": "h-24 w-24",
|
|
770
770
|
default: "h-4 w-4"
|
|
771
|
-
}, je = (e) =>
|
|
771
|
+
}, je = (e) => z[e] || z.default, Oe = ({ index: e, size: t }) => n({ class: `${t} rounded-full bg-muted cursor-pointer` }, [
|
|
772
772
|
a({
|
|
773
773
|
class: "block w-full h-full rounded-full transition-colors",
|
|
774
774
|
onSet: ["activeIndex", {
|
|
@@ -829,7 +829,7 @@ const z = window.matchMedia, I = c(({ value: e, label: t, icon: s }) => h({
|
|
|
829
829
|
onState: [s, "selectedValue", { "bg-secondary": e.value }]
|
|
830
830
|
}, [
|
|
831
831
|
e.icon && a({ class: "mr-2 flex items-baseline" }, [x({ size: "xs" }, e.icon)]),
|
|
832
|
-
a(e.label)
|
|
832
|
+
a({ class: "text-base font-normal" }, e.label)
|
|
833
833
|
]), He = (e, t) => n({ class: "w-full border rounded-md" }, [
|
|
834
834
|
V({ class: "max-h-60 overflow-y-auto p-2 grid gap-1", for: ["items", (s) => qe(s, e, t)] })
|
|
835
835
|
]), Ue = ({ onSelect: e, state: t }) => n({ class: "flex flex-auto flex-col" }, [
|
|
@@ -868,6 +868,16 @@ const z = window.matchMedia, I = c(({ value: e, label: t, icon: s }) => h({
|
|
|
868
868
|
selectedValue: ""
|
|
869
869
|
};
|
|
870
870
|
},
|
|
871
|
+
/**
|
|
872
|
+
* This will set the state item.
|
|
873
|
+
*
|
|
874
|
+
* @param {object} item
|
|
875
|
+
* @returns {void}
|
|
876
|
+
*/
|
|
877
|
+
setStateItem(e) {
|
|
878
|
+
const t = this.state;
|
|
879
|
+
t.selectedValue = e.value, t.selectedLabel = e.label, t.open = !1;
|
|
880
|
+
},
|
|
871
881
|
/**
|
|
872
882
|
* Handles the selection of an item.
|
|
873
883
|
*
|
|
@@ -875,8 +885,7 @@ const z = window.matchMedia, I = c(({ value: e, label: t, icon: s }) => h({
|
|
|
875
885
|
* @returns {void}
|
|
876
886
|
*/
|
|
877
887
|
select(e) {
|
|
878
|
-
|
|
879
|
-
t.selectedValue = e.value, t.selectedLabel = e.label, t.open = !1, typeof this.onSelect == "function" && this.onSelect(e, parent);
|
|
888
|
+
this.setStateItem(e), typeof this.onSelect == "function" && this.onSelect(e, this.parent);
|
|
880
889
|
},
|
|
881
890
|
/**
|
|
882
891
|
* Selects the first item in the list.
|
|
@@ -895,6 +904,17 @@ const z = window.matchMedia, I = c(({ value: e, label: t, icon: s }) => h({
|
|
|
895
904
|
toggleDropdown() {
|
|
896
905
|
this.state.toggle("open");
|
|
897
906
|
},
|
|
907
|
+
/**
|
|
908
|
+
* This will run after the component is set up.
|
|
909
|
+
*
|
|
910
|
+
* @returns {void}
|
|
911
|
+
*/
|
|
912
|
+
after() {
|
|
913
|
+
if (this.selectFirst === !0) {
|
|
914
|
+
const e = this.data.items[0];
|
|
915
|
+
e && this.setStateItem(e);
|
|
916
|
+
}
|
|
917
|
+
},
|
|
898
918
|
/**
|
|
899
919
|
* This will render the component.
|
|
900
920
|
*
|
|
@@ -1418,7 +1438,7 @@ export {
|
|
|
1418
1438
|
kt as o,
|
|
1419
1439
|
y as p,
|
|
1420
1440
|
m as q,
|
|
1421
|
-
|
|
1441
|
+
Fe as r,
|
|
1422
1442
|
Dt as s,
|
|
1423
1443
|
_e as t,
|
|
1424
1444
|
Re as u,
|
package/dist/index.es.js
CHANGED
|
@@ -3,7 +3,7 @@ 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-DmJuUwS9.js";
|
|
4
4
|
import { V as w, a as U } from "./veil-D4dRxILB.js";
|
|
5
5
|
import { Icons as R } from "./icons.es.js";
|
|
6
|
-
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, k as X, G as Y, E as Z, s as $, c as aa, a as sa, b as ea, i as oa, g as ta, e as ra, h as na, F as ia, d as la, f as pa, t as ua, M as ma, l as da, N as ga, P as Ta, p as ca, q as Ca, S as ba, n as Da, o as Sa, T as Ia, x as Ba, y as Pa, m as Fa, r as Ma } from "./confirmation-
|
|
6
|
+
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, k as X, G as Y, E as Z, s as $, c as aa, a as sa, b as ea, i as oa, g as ta, e as ra, h as na, F as ia, d as la, f as pa, t as ua, M as ma, l as da, N as ga, P as Ta, p as ca, q as Ca, S as ba, n as Da, o as Sa, T as Ia, x as Ba, y as Pa, m as Fa, r as Ma } from "./confirmation-BHLFyx61.js";
|
|
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-CrKk8upb.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";
|
package/dist/molecules.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as o, B as t, C as e, z as i, u as r, v as n, w as m, D as l, j as S, k as D, G as c, E as u, s as d, c as g, a as p, b as C, i as F, g as T, e as A, h as P, F as f, d as b, f as w, t as B, M as I, l as M, N as x, P as y, p as k, q as v, S as N, n as h, o as E, T as L, x as U, y as j, m as q, r as z } from "./confirmation-
|
|
1
|
+
import { A as o, B as t, C as e, z as i, u as r, v as n, w as m, D as l, j as S, k as D, G as c, E as u, s as d, c as g, a as p, b as C, i as F, g as T, e as A, h as P, F as f, d as b, f as w, t as B, M as I, l as M, N as x, P as y, p as k, q as v, S as N, n as h, o as E, T as L, x as U, y as j, m as q, r as z } from "./confirmation-BHLFyx61.js";
|
|
2
2
|
import { A as O, P as R, g as _ } from "./calendar-BDqm833e.js";
|
|
3
3
|
export {
|
|
4
4
|
o as Alert,
|
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
*
|
|
4
4
|
* This will render a combobox component.
|
|
5
5
|
*
|
|
6
|
+
* @property {Array<object>} items
|
|
7
|
+
* @property {string} class
|
|
8
|
+
* @property {string} maxWidth
|
|
9
|
+
* @property {string} width
|
|
10
|
+
* @property {string} name
|
|
11
|
+
* @property {boolean} required
|
|
12
|
+
* @property {boolean} selectFirst
|
|
13
|
+
* @property {function} onSelect
|
|
6
14
|
* @type {typeof Component}
|
|
7
15
|
*/
|
|
8
16
|
export const Combobox: typeof Component;
|
package/package.json
CHANGED