jaml-ui 0.25.2 → 0.25.3
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/chunks/{ui-5cBy3zAm.js → ui-BRMCKSX4.js} +44 -44
- package/dist/chunks/{ui-5cBy3zAm.js.map → ui-BRMCKSX4.js.map} +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3680 -3544
- package/dist/index.js.map +1 -1
- package/dist/ui.js +2 -2
- package/package.json +1 -1
|
@@ -534,47 +534,8 @@ function se({ tabs: e, activeTab: t, onTabChange: n, className: r = "", style: i
|
|
|
534
534
|
});
|
|
535
535
|
}
|
|
536
536
|
//#endregion
|
|
537
|
-
//#region src/ui/JimboFloating.tsx
|
|
538
|
-
function ce({ anchor: e = "top-right", offset: t = 12, zIndex: n = 20, children: r }) {
|
|
539
|
-
let i = {
|
|
540
|
-
position: "absolute",
|
|
541
|
-
zIndex: n
|
|
542
|
-
};
|
|
543
|
-
return e.includes("top") && (i.top = t), e.includes("bottom") && (i.bottom = t), e.includes("left") && (i.left = t), e.includes("right") && (i.right = t), e.includes("center") && (i.left = "50%", i.transform = "translateX(-50%)"), /* @__PURE__ */ h("div", {
|
|
544
|
-
style: i,
|
|
545
|
-
children: r
|
|
546
|
-
});
|
|
547
|
-
}
|
|
548
|
-
//#endregion
|
|
549
|
-
//#region src/ui/JimboToggleList.tsx
|
|
550
|
-
function le({ items: e, onToggle: t, title: n }) {
|
|
551
|
-
return /* @__PURE__ */ h(E, { children: /* @__PURE__ */ g("div", {
|
|
552
|
-
className: "j-toggle-list",
|
|
553
|
-
children: [n && /* @__PURE__ */ h("div", {
|
|
554
|
-
className: "j-toggle-list__title",
|
|
555
|
-
children: n
|
|
556
|
-
}), e.map((e) => /* @__PURE__ */ g("button", {
|
|
557
|
-
type: "button",
|
|
558
|
-
className: "j-toggle-item",
|
|
559
|
-
onClick: () => t(e.id),
|
|
560
|
-
children: [/* @__PURE__ */ h("div", {
|
|
561
|
-
className: "j-toggle-check",
|
|
562
|
-
"data-on": e.on
|
|
563
|
-
}), e.label]
|
|
564
|
-
}, e.id))]
|
|
565
|
-
}) });
|
|
566
|
-
}
|
|
567
|
-
//#endregion
|
|
568
|
-
//#region src/ui/JimboBadge.tsx
|
|
569
|
-
function ue({ size: e = "sm", tone: t = "dark", className: n, children: r }) {
|
|
570
|
-
return /* @__PURE__ */ h("span", {
|
|
571
|
-
className: `j-badge j-badge--${e} j-badge--${t} ${n ?? ""}`,
|
|
572
|
-
children: r
|
|
573
|
-
});
|
|
574
|
-
}
|
|
575
|
-
//#endregion
|
|
576
537
|
//#region src/ui/jimboFlankNav.tsx
|
|
577
|
-
function
|
|
538
|
+
function ce({ onPrev: e, onNext: t, canPrev: n = !0, canNext: r = !0, prevLabel: i = "Previous", nextLabel: a = "Next", children: o, className: s = "", style: c }) {
|
|
578
539
|
return /* @__PURE__ */ g("div", {
|
|
579
540
|
className: `j-flank ${s}`,
|
|
580
541
|
style: c,
|
|
@@ -613,10 +574,10 @@ function j({ direction: e, onClick: t, disabled: n, "aria-label": r }) {
|
|
|
613
574
|
onMouseLeave: () => a(!1),
|
|
614
575
|
onTouchStart: () => !n && a(!0),
|
|
615
576
|
onTouchEnd: () => a(!1),
|
|
616
|
-
children: /* @__PURE__ */ h(
|
|
577
|
+
children: /* @__PURE__ */ h(le, { direction: e })
|
|
617
578
|
});
|
|
618
579
|
}
|
|
619
|
-
function
|
|
580
|
+
function le({ direction: e }) {
|
|
620
581
|
return /* @__PURE__ */ h("svg", {
|
|
621
582
|
width: 28,
|
|
622
583
|
height: 28,
|
|
@@ -631,6 +592,45 @@ function fe({ direction: e }) {
|
|
|
631
592
|
});
|
|
632
593
|
}
|
|
633
594
|
//#endregion
|
|
595
|
+
//#region src/ui/JimboFloating.tsx
|
|
596
|
+
function ue({ anchor: e = "top-right", offset: t = 12, zIndex: n = 20, children: r }) {
|
|
597
|
+
let i = {
|
|
598
|
+
position: "absolute",
|
|
599
|
+
zIndex: n
|
|
600
|
+
};
|
|
601
|
+
return e.includes("top") && (i.top = t), e.includes("bottom") && (i.bottom = t), e.includes("left") && (i.left = t), e.includes("right") && (i.right = t), e.includes("center") && (i.left = "50%", i.transform = "translateX(-50%)"), /* @__PURE__ */ h("div", {
|
|
602
|
+
style: i,
|
|
603
|
+
children: r
|
|
604
|
+
});
|
|
605
|
+
}
|
|
606
|
+
//#endregion
|
|
607
|
+
//#region src/ui/JimboToggleList.tsx
|
|
608
|
+
function de({ items: e, onToggle: t, title: n }) {
|
|
609
|
+
return /* @__PURE__ */ h(E, { children: /* @__PURE__ */ g("div", {
|
|
610
|
+
className: "j-toggle-list",
|
|
611
|
+
children: [n && /* @__PURE__ */ h("div", {
|
|
612
|
+
className: "j-toggle-list__title",
|
|
613
|
+
children: n
|
|
614
|
+
}), e.map((e) => /* @__PURE__ */ g("button", {
|
|
615
|
+
type: "button",
|
|
616
|
+
className: "j-toggle-item",
|
|
617
|
+
onClick: () => t(e.id),
|
|
618
|
+
children: [/* @__PURE__ */ h("div", {
|
|
619
|
+
className: "j-toggle-check",
|
|
620
|
+
"data-on": e.on
|
|
621
|
+
}), e.label]
|
|
622
|
+
}, e.id))]
|
|
623
|
+
}) });
|
|
624
|
+
}
|
|
625
|
+
//#endregion
|
|
626
|
+
//#region src/ui/JimboBadge.tsx
|
|
627
|
+
function fe({ size: e = "sm", tone: t = "dark", className: n, children: r }) {
|
|
628
|
+
return /* @__PURE__ */ h("span", {
|
|
629
|
+
className: `j-badge j-badge--${e} j-badge--${t} ${n ?? ""}`,
|
|
630
|
+
children: r
|
|
631
|
+
});
|
|
632
|
+
}
|
|
633
|
+
//#endregion
|
|
634
634
|
//#region src/ui/jimboFilterBar.tsx
|
|
635
635
|
function M({ search: e, onSearchChange: t, searchPlaceholder: n = "Search...", searchLabel: r = "Search", sort: i, onSortChange: a, sortLabel: o = "Sort By", sortOptions: s, className: c = "", style: l }) {
|
|
636
636
|
return /* @__PURE__ */ g("div", {
|
|
@@ -1382,6 +1382,6 @@ function xe({ orientation: e = "vertical", onDrag: t, onKeyAdjust: n, "aria-labe
|
|
|
1382
1382
|
});
|
|
1383
1383
|
}
|
|
1384
1384
|
//#endregion
|
|
1385
|
-
export { k as A, S as B, M as C, ce as D,
|
|
1385
|
+
export { k as A, S as B, M as C, ce as D, ue as E, T as F, ie as I, w as L, D as M, A as N, ae as O, E as P, ne as R, I as S, de as T, ee as V, H as _, Y as a, z as b, he as c, J as d, G as f, V as g, U as h, ve as i, O as j, se as k, me as l, K as m, be as n, _e as o, q as p, ye as r, ge as s, xe as t, W as u, pe as v, fe as w, L as x, B as y, C as z };
|
|
1386
1386
|
|
|
1387
|
-
//# sourceMappingURL=ui-
|
|
1387
|
+
//# sourceMappingURL=ui-BRMCKSX4.js.map
|