@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/index.js CHANGED
@@ -1448,58 +1448,58 @@ var $i = {
1448
1448
  children: e
1449
1449
  }));
1450
1450
  }, Qa = {
1451
- toggleBox: "_toggleBox_1qvtd_1",
1452
- arrowIcon: "_arrowIcon_1qvtd_27",
1453
- fullWidthStyleFix: "_fullWidthStyleFix_1qvtd_43",
1454
- dismiss: "_dismiss_1qvtd_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 }) => {
1456
- let v = u(U), C = g(null), [w, T] = _(!1), E = f || v, D = p !== void 0, O = D ? p : w, k = l((e) => {
1457
- E || (D ? m == null || m(e) : T(e));
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
- ]), A = l((e) => {
1463
- !h && e || k(e);
1464
- }, [k, h]), j = l(() => {
1465
- k(!1);
1466
- }, [k]);
1462
+ ]), j = l((e) => {
1463
+ !h && e || A(e);
1464
+ }, [A, h]), M = l(() => {
1465
+ A(!1);
1466
+ }, [A]);
1467
1467
  d(() => {
1468
- E && O && j();
1468
+ D && k && M();
1469
1469
  }, [
1470
- E,
1471
- O,
1472
- j
1470
+ D,
1471
+ k,
1472
+ M
1473
1473
  ]);
1474
- let M = Ua(C.current);
1474
+ let N = Ua(w.current);
1475
1475
  if (!Xa(e)) return null;
1476
- let N = s(t) && typeof t.type != "string" ? r(t, { close: j }) : t, P = /* @__PURE__ */ x(Za, {
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: E,
1480
- triggerRef: C,
1479
+ isDisabled: D,
1480
+ triggerRef: w,
1481
1481
  safeComponents: [K],
1482
1482
  children: e
1483
- }), F = /* @__PURE__ */ S(Nn, {
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: O,
1490
- onOpenChange: k,
1491
- triggerRef: C
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: M,
1495
+ UNSTABLE_portalContainer: N,
1496
1496
  "data-testid": c ? `${c}-layer` : void 0,
1497
- children: [/* @__PURE__ */ S("div", { children: [N, o && /* @__PURE__ */ x("div", {
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: j,
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: O,
1516
- onOpenChange: A,
1517
- children: [P, F]
1518
- }) : /* @__PURE__ */ S(b, { children: [P, F] });
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oliasoft-open-source/react-ui-library",
3
- "version": "6.14.0-beta-5",
3
+ "version": "6.14.0-beta-7",
4
4
  "description": "Reusable UI components for React projects",
5
5
  "homepage": "https://oliasoft-open-source.gitlab.io/react-ui-library",
6
6
  "bugs": {