@oliasoft-open-source/react-ui-library 6.14.0-beta-5 → 6.14.0-beta-7
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/components/color-input/color-input.test-case.stories.d.ts.map +1 -1
- package/dist/components/popover/popover.d.ts +3 -1
- package/dist/components/popover/popover.d.ts.map +1 -1
- package/dist/components/popover/popover.stories.d.ts.map +1 -1
- package/dist/components/popover/popover.test-case.stories.d.ts.map +1 -1
- package/dist/components/unit-slider/unit-slider.d.ts.map +1 -1
- package/dist/global.css +1 -1
- package/dist/index.js +34 -33
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1448,58 +1448,58 @@ var $i = {
|
|
|
1448
1448
|
children: e
|
|
1449
1449
|
}));
|
|
1450
1450
|
}, Qa = {
|
|
1451
|
-
toggleBox: "
|
|
1452
|
-
arrowIcon: "
|
|
1453
|
-
fullWidthStyleFix: "
|
|
1454
|
-
dismiss: "
|
|
1455
|
-
}, $a = ({ children: e, content: t, placement: n = "top-center", closeOnOutsideClick: i = !0, fullWidth: a = !1, showCloseButton: o = !1, testId: c, disabled: f = !1, isOpen: p, onToggle: m, toggleOnTriggerClick: h = !0 }) => {
|
|
1456
|
-
let
|
|
1457
|
-
|
|
1451
|
+
toggleBox: "_toggleBox_eamgh_1",
|
|
1452
|
+
arrowIcon: "_arrowIcon_eamgh_27",
|
|
1453
|
+
fullWidthStyleFix: "_fullWidthStyleFix_eamgh_43",
|
|
1454
|
+
dismiss: "_dismiss_eamgh_48"
|
|
1455
|
+
}, $a = ({ children: e, content: t, placement: n = "top-center", closeOnOutsideClick: i = !0, fullWidth: a = !1, showCloseButton: o = !1, testId: c, disabled: f = !1, isOpen: p, onToggle: m, toggleOnTriggerClick: h = !0, isNonModal: v = !1 }) => {
|
|
1456
|
+
let C = u(U), w = g(null), [T, E] = _(!1), D = f || C, O = p !== void 0, k = O ? p : T, A = l((e) => {
|
|
1457
|
+
D || (O ? m == null || m(e) : E(e));
|
|
1458
1458
|
}, [
|
|
1459
|
+
O,
|
|
1459
1460
|
D,
|
|
1460
|
-
E,
|
|
1461
1461
|
m
|
|
1462
|
-
]),
|
|
1463
|
-
!h && e ||
|
|
1464
|
-
}, [
|
|
1465
|
-
|
|
1466
|
-
}, [
|
|
1462
|
+
]), j = l((e) => {
|
|
1463
|
+
!h && e || A(e);
|
|
1464
|
+
}, [A, h]), M = l(() => {
|
|
1465
|
+
A(!1);
|
|
1466
|
+
}, [A]);
|
|
1467
1467
|
d(() => {
|
|
1468
|
-
|
|
1468
|
+
D && k && M();
|
|
1469
1469
|
}, [
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1470
|
+
D,
|
|
1471
|
+
k,
|
|
1472
|
+
M
|
|
1473
1473
|
]);
|
|
1474
|
-
let
|
|
1474
|
+
let N = Ua(w.current);
|
|
1475
1475
|
if (!Xa(e)) return null;
|
|
1476
|
-
let
|
|
1476
|
+
let P = s(t) && typeof t.type != "string" ? r(t, { close: M }) : t, F = /* @__PURE__ */ x(Za, {
|
|
1477
1477
|
behavior: "press",
|
|
1478
1478
|
testId: c,
|
|
1479
|
-
isDisabled:
|
|
1480
|
-
triggerRef:
|
|
1479
|
+
isDisabled: D,
|
|
1480
|
+
triggerRef: w,
|
|
1481
1481
|
safeComponents: [K],
|
|
1482
1482
|
children: e
|
|
1483
|
-
}),
|
|
1483
|
+
}), I = /* @__PURE__ */ S(Nn, {
|
|
1484
1484
|
className: y(Qa.toggleBox, a && Qa.fullWidthStyleFix),
|
|
1485
1485
|
placement: Va(n),
|
|
1486
1486
|
offset: 6,
|
|
1487
|
-
isNonModal: !0,
|
|
1487
|
+
...v ? { isNonModal: !0 } : {},
|
|
1488
1488
|
...h ? {} : {
|
|
1489
|
-
isOpen:
|
|
1490
|
-
onOpenChange:
|
|
1491
|
-
triggerRef:
|
|
1489
|
+
isOpen: k,
|
|
1490
|
+
onOpenChange: A,
|
|
1491
|
+
triggerRef: w
|
|
1492
1492
|
},
|
|
1493
1493
|
shouldCloseOnInteractOutside: i ? void 0 : () => !1,
|
|
1494
1494
|
isKeyboardDismissDisabled: !i,
|
|
1495
|
-
UNSTABLE_portalContainer:
|
|
1495
|
+
UNSTABLE_portalContainer: N,
|
|
1496
1496
|
"data-testid": c ? `${c}-layer` : void 0,
|
|
1497
|
-
children: [/* @__PURE__ */ S("div", { children: [
|
|
1497
|
+
children: [/* @__PURE__ */ S("div", { children: [P, o && /* @__PURE__ */ x("div", {
|
|
1498
1498
|
className: Qa.dismiss,
|
|
1499
1499
|
children: /* @__PURE__ */ x(K, {
|
|
1500
1500
|
small: !0,
|
|
1501
1501
|
round: !0,
|
|
1502
|
-
onClick:
|
|
1502
|
+
onClick: M,
|
|
1503
1503
|
icon: H.CLOSE
|
|
1504
1504
|
})
|
|
1505
1505
|
})] }), /* @__PURE__ */ x(Mn, { children: /* @__PURE__ */ x("svg", {
|
|
@@ -1512,10 +1512,10 @@ var $i = {
|
|
|
1512
1512
|
}) })]
|
|
1513
1513
|
});
|
|
1514
1514
|
return h ? /* @__PURE__ */ S(An, {
|
|
1515
|
-
isOpen:
|
|
1516
|
-
onOpenChange:
|
|
1517
|
-
children: [
|
|
1518
|
-
}) : /* @__PURE__ */ S(b, { children: [
|
|
1515
|
+
isOpen: k,
|
|
1516
|
+
onOpenChange: j,
|
|
1517
|
+
children: [F, I]
|
|
1518
|
+
}) : /* @__PURE__ */ S(b, { children: [F, I] });
|
|
1519
1519
|
}, eo = { grid: "_grid_obkz4_1" }, to = (e) => typeof e == "boolean" ? e ? "var(--padding)" : "0px" : typeof e == "number" ? `${e}px` : e || "initial", no = (e) => typeof e == "number" ? `${e}px` : e || "initial", ro = ({ rows: e = "initial", columns: t = "initial", columnsTablet: n = null, columnsMobile: r = null, gap: i = !1, height: a = "initial", children: o }) => {
|
|
1520
1520
|
let s = {
|
|
1521
1521
|
"--grid-gap": to(i),
|
|
@@ -6952,6 +6952,7 @@ var oo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), so =
|
|
|
6952
6952
|
children: /* @__PURE__ */ x($a, {
|
|
6953
6953
|
content: ee,
|
|
6954
6954
|
isOpen: O,
|
|
6955
|
+
isNonModal: !0,
|
|
6955
6956
|
onToggle: (e) => {
|
|
6956
6957
|
e || I();
|
|
6957
6958
|
},
|
package/package.json
CHANGED