@segmentify/ui 0.0.53 → 0.0.54
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/segmentify-ui.js
CHANGED
|
@@ -4985,8 +4985,16 @@ function F(...e) {
|
|
|
4985
4985
|
}
|
|
4986
4986
|
function y4(...e) {
|
|
4987
4987
|
return (t) => {
|
|
4988
|
-
|
|
4989
|
-
|
|
4988
|
+
const n = [];
|
|
4989
|
+
for (const r of e)
|
|
4990
|
+
if (typeof r == "function") {
|
|
4991
|
+
const o = r(t);
|
|
4992
|
+
typeof o == "function" && n.push(o);
|
|
4993
|
+
} else r != null && (r.current = t);
|
|
4994
|
+
if (n.length > 0)
|
|
4995
|
+
return () => {
|
|
4996
|
+
for (const r of n) r();
|
|
4997
|
+
};
|
|
4990
4998
|
};
|
|
4991
4999
|
}
|
|
4992
5000
|
const Xs = (e, t = "MMM d, yyyy h:mmaaa", n) => MA(e) ? si(e, t, n) : si(/* @__PURE__ */ new Date(), t, n);
|
|
@@ -20550,10 +20558,7 @@ function zM({
|
|
|
20550
20558
|
}) {
|
|
20551
20559
|
const [s, a] = m.useState(), l = m.useCallback(
|
|
20552
20560
|
(u) => {
|
|
20553
|
-
|
|
20554
|
-
const c = parseInt(getComputedStyle(u).zIndex, 10);
|
|
20555
|
-
isNaN(c) || a(c);
|
|
20556
|
-
}
|
|
20561
|
+
u && a(u);
|
|
20557
20562
|
},
|
|
20558
20563
|
// eslint-disable-next-line react-hooks/exhaustive-deps -- className changes affect computed z-index
|
|
20559
20564
|
[e]
|
|
@@ -26710,7 +26715,9 @@ const hk = /* @__PURE__ */ m.forwardRef(function(t, n) {
|
|
|
26710
26715
|
});
|
|
26711
26716
|
});
|
|
26712
26717
|
process.env.NODE_ENV !== "production" && (hk.displayName = "ComboboxChipRemove");
|
|
26713
|
-
const gk = () =>
|
|
26718
|
+
const gk = () => ({
|
|
26719
|
+
layer: ya(HM)
|
|
26720
|
+
});
|
|
26714
26721
|
function Ou({ className: e, type: t, ...n }) {
|
|
26715
26722
|
return /* @__PURE__ */ v(
|
|
26716
26723
|
"input",
|
|
@@ -26916,8 +26923,8 @@ function NJ({
|
|
|
26916
26923
|
anchor: i,
|
|
26917
26924
|
...s
|
|
26918
26925
|
}) {
|
|
26919
|
-
const a = gk();
|
|
26920
|
-
return /* @__PURE__ */ v(ek, { children: /* @__PURE__ */ v(
|
|
26926
|
+
const { layer: a } = gk();
|
|
26927
|
+
return /* @__PURE__ */ v(ek, { container: a ?? void 0, children: /* @__PURE__ */ v(
|
|
26921
26928
|
rk,
|
|
26922
26929
|
{
|
|
26923
26930
|
side: t,
|
|
@@ -26926,7 +26933,6 @@ function NJ({
|
|
|
26926
26933
|
alignOffset: o,
|
|
26927
26934
|
anchor: i,
|
|
26928
26935
|
className: "ui:isolate ui:z-50 ui:pointer-events-auto",
|
|
26929
|
-
style: a != null ? { zIndex: a + 1 } : void 0,
|
|
26930
26936
|
children: /* @__PURE__ */ v(
|
|
26931
26937
|
ok,
|
|
26932
26938
|
{
|
|
@@ -28953,7 +28959,7 @@ function RK({
|
|
|
28953
28959
|
style: i,
|
|
28954
28960
|
...s
|
|
28955
28961
|
}) {
|
|
28956
|
-
const a = gk(), l = a != null ?
|
|
28962
|
+
const { layer: a } = gk(), l = a != null ? parseInt(getComputedStyle(a).zIndex, 10) : NaN, u = Number.isFinite(l) ? l + 1 : void 0, c = /* @__PURE__ */ Q(
|
|
28957
28963
|
pH,
|
|
28958
28964
|
{
|
|
28959
28965
|
"data-slot": "select-content",
|
|
@@ -28964,7 +28970,7 @@ function RK({
|
|
|
28964
28970
|
),
|
|
28965
28971
|
position: n,
|
|
28966
28972
|
align: o,
|
|
28967
|
-
style:
|
|
28973
|
+
style: u != null ? { zIndex: u, ...i } : i,
|
|
28968
28974
|
...s,
|
|
28969
28975
|
children: [
|
|
28970
28976
|
/* @__PURE__ */ v(TK, {}),
|
|
@@ -28982,7 +28988,7 @@ function RK({
|
|
|
28982
28988
|
]
|
|
28983
28989
|
}
|
|
28984
28990
|
);
|
|
28985
|
-
return r ? /* @__PURE__ */ v(fH, { children:
|
|
28991
|
+
return r ? /* @__PURE__ */ v(fH, { children: c }) : c;
|
|
28986
28992
|
}
|
|
28987
28993
|
function Qfe({ className: e, ...t }) {
|
|
28988
28994
|
return /* @__PURE__ */ v(
|