@bahmni/design-system 0.0.1-dev.356 → 0.0.1-dev.358

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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atoms/comboBox/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,aAAa,IAAI,mBAAmB,EACrC,MAAM,eAAe,CAAC;AAGvB,MAAM,MAAM,aAAa,CAAC,CAAC,IAAI,mBAAmB,CAAC,CAAC,CAAC,GAAG;IACtD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,CAAC,EAAG,4HAO1B,aAAa,CAAC,CAAC,CAAC,4CA4BlB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atoms/comboBox/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,aAAa,IAAI,mBAAmB,EACrC,MAAM,eAAe,CAAC;AAIvB,MAAM,MAAM,aAAa,CAAC,CAAC,IAAI,mBAAmB,CAAC,CAAC,CAAC,GAAG;IACtD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,CAAC,EAAG,4HAO1B,aAAa,CAAC,CAAC,CAAC,4CAiClB,CAAC"}
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import "@carbon/styles/css/styles.css";
2
2
  import { jsx as G, jsxs as X1, Fragment as je } from "react/jsx-runtime";
3
3
  import * as H1 from "react";
4
- import t, { createContext as ne, useContext as u2, Children as Ue, useState as d1, useLayoutEffect as F0, useEffect as p1, useRef as i1, forwardRef as g2, useMemo as n2, useCallback as _1, isValidElement as A3, cloneElement as b2, useReducer as xc1, Component as iu1, useImperativeHandle as t6, Fragment as su1, createElement as r4, useSyncExternalStore as fu1, useId as pu1 } from "react";
4
+ import t, { createContext as ne, useContext as u2, Children as Ue, useState as d1, useLayoutEffect as W0, useEffect as p1, useRef as i1, forwardRef as g2, useMemo as n2, useCallback as _1, isValidElement as A3, cloneElement as b2, useReducer as xc1, Component as iu1, useImperativeHandle as t6, Fragment as su1, createElement as r4, useSyncExternalStore as fu1, useId as pu1 } from "react";
5
5
  import * as hu1 from "react-dom";
6
6
  import du1, { createPortal as Lc1 } from "react-dom";
7
7
  const rH2 = {
@@ -35437,7 +35437,7 @@ function n51() {
35437
35437
  }
35438
35438
  const r51 = {
35439
35439
  ...t
35440
- }, _n = V8(), MW1 = H8 ? F0 : p1;
35440
+ }, _n = V8(), MW1 = H8 ? W0 : p1;
35441
35441
  let yn = !1;
35442
35442
  const c51 = "id";
35443
35443
  function EW1(r = c51) {
@@ -35458,7 +35458,7 @@ function a51(r) {
35458
35458
  return r ?? n;
35459
35459
  }
35460
35460
  const d2 = () => {
35461
- }, I0 = process.env.NODE_ENV !== "production" ? (r, n) => {
35461
+ }, B0 = process.env.NODE_ENV !== "production" ? (r, n) => {
35462
35462
  if (typeof n > "u")
35463
35463
  throw new Error("`warning(condition, message)` requires a warning format argument");
35464
35464
  r || console.warn("Warning: " + n);
@@ -35467,7 +35467,7 @@ const d2 = () => {
35467
35467
  return;
35468
35468
  bn.has(o) || bn.set(o, /* @__PURE__ */ new Set());
35469
35469
  const p = bn.get(o);
35470
- return p && !p.has(a) && (p.add(a), process.env.NODE_ENV !== "production" && I0(!1, n || `The prop \`${a}\` has been deprecated for the ${o} component. It will be removed in the next major release`)), r(c, a, o, ...f);
35470
+ return p && !p.has(a) && (p.add(a), process.env.NODE_ENV !== "production" && B0(!1, n || `The prop \`${a}\` has been deprecated for the ${o} component. It will be removed in the next major release`)), r(c, a, o, ...f);
35471
35471
  }, HW1 = (r) => /* @__PURE__ */ t.createElement("button", l1({
35472
35472
  type: "button"
35473
35473
  }, r));
@@ -35570,7 +35570,7 @@ o51.propTypes = {
35570
35570
  */
35571
35571
  title: l.node
35572
35572
  };
35573
- const Z2 = typeof window < "u" ? F0 : p1, CW1 = [0.973051493507435, 0.15334737213558558, 0.5671034553053769];
35573
+ const Z2 = typeof window < "u" ? W0 : p1, CW1 = [0.973051493507435, 0.15334737213558558, 0.5671034553053769];
35574
35574
  function un1(r, n, e) {
35575
35575
  return Math.floor(CW1[e % 3] * (n - r + 1)) + r;
35576
35576
  }
@@ -35827,7 +35827,7 @@ function $3(r, n, e) {
35827
35827
  const h = a[o], d = e ? e(h) : null;
35828
35828
  if (n && !n.includes(h)) {
35829
35829
  const u = e ? `"${h}" is a deprecated value for the "${o}" prop on the "${f}" component. Use "${d}" instead. "${h}" will be removed in the next major release.` : `"${h}" is a deprecated value for the "${o}" prop on the "${f}" component. Allowed values is/are: ${n.join(", ")}. "${h}" will be removed in the next major release. `;
35830
- process.env.NODE_ENV !== "production" && I0(!1, u);
35830
+ process.env.NODE_ENV !== "production" && B0(!1, u);
35831
35831
  }
35832
35832
  }
35833
35833
  return r(a, o, f, ...p);
@@ -35910,7 +35910,7 @@ function E4(r) {
35910
35910
  overflowX: e,
35911
35911
  overflowY: c,
35912
35912
  display: a
35913
- } = B0(r);
35913
+ } = P0(r);
35914
35914
  return /auto|scroll|overlay|hidden|clip/.test(n + c + e) && !_W1.has(a);
35915
35915
  }
35916
35916
  const yW1 = /* @__PURE__ */ new Set(["table", "td", "th"]);
@@ -35929,7 +35929,7 @@ function f6(r) {
35929
35929
  }
35930
35930
  const AW1 = ["transform", "translate", "scale", "rotate", "perspective"], $W1 = ["transform", "translate", "scale", "rotate", "perspective", "filter"], SW1 = ["paint", "layout", "strict", "content"];
35931
35931
  function C8(r) {
35932
- const n = x8(), e = k2(r) ? B0(r) : r;
35932
+ const n = x8(), e = k2(r) ? P0(r) : r;
35933
35933
  return AW1.some((c) => e[c] ? e[c] !== "none" : !1) || (e.containerType ? e.containerType !== "normal" : !1) || !n && (e.backdropFilter ? e.backdropFilter !== "none" : !1) || !n && (e.filter ? e.filter !== "none" : !1) || $W1.some((c) => (e.willChange || "").includes(c)) || SW1.some((c) => (e.contain || "").includes(c));
35934
35934
  }
35935
35935
  function DW1(r) {
@@ -35950,7 +35950,7 @@ const TW1 = /* @__PURE__ */ new Set(["html", "body", "#document"]);
35950
35950
  function V3(r) {
35951
35951
  return TW1.has(Ae(r));
35952
35952
  }
35953
- function B0(r) {
35953
+ function P0(r) {
35954
35954
  return C0(r).getComputedStyle(r);
35955
35955
  }
35956
35956
  function p6(r) {
@@ -36378,7 +36378,7 @@ function xr(r, n) {
36378
36378
  return e.push("", void 0), e.includes(r);
36379
36379
  }
36380
36380
  var vj1 = typeof document < "u", Mj1 = function() {
36381
- }, T0 = vj1 ? F0 : Mj1;
36381
+ }, T0 = vj1 ? W0 : Mj1;
36382
36382
  const Ej1 = {
36383
36383
  ...H1
36384
36384
  };
@@ -36844,7 +36844,7 @@ const Aj1 = function(r) {
36844
36844
  };
36845
36845
  };
36846
36846
  function E51(r) {
36847
- const n = B0(r);
36847
+ const n = P0(r);
36848
36848
  let e = parseFloat(n.width) || 0, c = parseFloat(n.height) || 0;
36849
36849
  const a = Y2(r), o = a ? r.offsetWidth : e, f = a ? r.offsetHeight : c, p = zt(e) !== o || zt(c) !== f;
36850
36850
  return p && (e = o, c = f), {
@@ -36893,7 +36893,7 @@ function Ke(r, n, e, c) {
36893
36893
  const v = C0(o), w = c && k2(c) ? C0(c) : c;
36894
36894
  let M = v, m = vr(M);
36895
36895
  for (; m && c && w !== M; ) {
36896
- const V = u3(m), H = m.getBoundingClientRect(), E = B0(m), C = H.left + (m.clientLeft + parseFloat(E.paddingLeft)) * V.x, x = H.top + (m.clientTop + parseFloat(E.paddingTop)) * V.y;
36896
+ const V = u3(m), H = m.getBoundingClientRect(), E = P0(m), C = H.left + (m.clientLeft + parseFloat(E.paddingLeft)) * V.x, x = H.top + (m.clientTop + parseFloat(E.paddingTop)) * V.y;
36897
36897
  h *= V.x, d *= V.y, u *= V.x, g *= V.y, h += C, d += x, M = C0(m), m = vr(M);
36898
36898
  }
36899
36899
  }
@@ -36949,7 +36949,7 @@ function Oj1(r) {
36949
36949
  const n = ce(r), e = p6(r), c = r.ownerDocument.body, a = V0(n.scrollWidth, n.clientWidth, c.scrollWidth, c.clientWidth), o = V0(n.scrollHeight, n.clientHeight, c.scrollHeight, c.clientHeight);
36950
36950
  let f = -e.scrollLeft + u6(r);
36951
36951
  const p = -e.scrollTop;
36952
- return B0(c).direction === "rtl" && (f += V0(n.clientWidth, c.clientWidth) - a), {
36952
+ return P0(c).direction === "rtl" && (f += V0(n.clientWidth, c.clientWidth) - a), {
36953
36953
  width: a,
36954
36954
  height: o,
36955
36955
  x: f,
@@ -37008,17 +37008,17 @@ function _n1(r, n, e) {
37008
37008
  }
37009
37009
  function C51(r, n) {
37010
37010
  const e = He(r);
37011
- return e === n || !k2(e) || V3(e) ? !1 : B0(e).position === "fixed" || C51(e, n);
37011
+ return e === n || !k2(e) || V3(e) ? !1 : P0(e).position === "fixed" || C51(e, n);
37012
37012
  }
37013
37013
  function Bj1(r, n) {
37014
37014
  const e = n.get(r);
37015
37015
  if (e)
37016
37016
  return e;
37017
37017
  let c = c4(r, [], !1).filter((p) => k2(p) && Ae(p) !== "body"), a = null;
37018
- const o = B0(r).position === "fixed";
37018
+ const o = P0(r).position === "fixed";
37019
37019
  let f = o ? He(r) : r;
37020
37020
  for (; k2(f) && !V3(f); ) {
37021
- const p = B0(f), h = C8(f);
37021
+ const p = P0(f), h = C8(f);
37022
37022
  !h && p.position === "fixed" && (a = null), (o ? !h && !a : !h && p.position === "static" && !!a && Zj1.has(a.position) || E4(f) && !h && C51(r, f)) ? c = c.filter((u) => u !== f) : a = p, f = He(f);
37023
37023
  }
37024
37024
  return n.set(r, c), c;
@@ -37076,10 +37076,10 @@ function Wj1(r, n, e) {
37076
37076
  };
37077
37077
  }
37078
37078
  function $n(r) {
37079
- return B0(r).position === "static";
37079
+ return P0(r).position === "static";
37080
37080
  }
37081
37081
  function yn1(r, n) {
37082
- if (!Y2(r) || B0(r).position === "fixed")
37082
+ if (!Y2(r) || P0(r).position === "fixed")
37083
37083
  return null;
37084
37084
  if (n)
37085
37085
  return n(r);
@@ -37117,7 +37117,7 @@ const jj1 = async function(r) {
37117
37117
  };
37118
37118
  };
37119
37119
  function Uj1(r) {
37120
- return B0(r).direction === "rtl";
37120
+ return P0(r).direction === "rtl";
37121
37121
  }
37122
37122
  const qj1 = {
37123
37123
  convertOffsetParentRelativeRectToViewportRelativeRect: Tj1,
@@ -37230,7 +37230,7 @@ const Kj1 = Aj1, Yj1 = _j1, Jj1 = $j1, Xj1 = yj1, bn1 = zj1, Qj1 = (r, n, e) =>
37230
37230
  });
37231
37231
  };
37232
37232
  var eU1 = typeof document < "u", tU1 = function() {
37233
- }, mt = eU1 ? F0 : tU1;
37233
+ }, mt = eU1 ? W0 : tU1;
37234
37234
  function St(r, n) {
37235
37235
  if (r === n)
37236
37236
  return !0;
@@ -41125,7 +41125,7 @@ function oq1(r, n) {
41125
41125
  }
41126
41126
  var or1 = E6(function(r, n) {
41127
41127
  U51(r, n);
41128
- }, 200), lq1 = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u" ? F0 : p1, sa1 = "useId" in t ? function(n) {
41128
+ }, 200), lq1 = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u" ? W0 : p1, sa1 = "useId" in t ? function(n) {
41129
41129
  var e = n.id, c = n.labelId, a = n.menuId, o = n.getItemId, f = n.toggleButtonId, p = n.inputId, h = "downshift-" + t.useId();
41130
41130
  e || (e = h);
41131
41131
  var d = i1({
@@ -42531,7 +42531,7 @@ function Tq1() {
42531
42531
  }, Zn;
42532
42532
  }
42533
42533
  var Rq1 = Tq1();
42534
- const Y0 = /* @__PURE__ */ n3(Rq1), Oq1 = ["default", "inline"], kq1 = ["sm", "md", "lg"], Hc = l.oneOf(Oq1), x4 = l.oneOf(kq1), $0 = /* @__PURE__ */ ne({
42534
+ const k0 = /* @__PURE__ */ n3(Rq1), Oq1 = ["default", "inline"], kq1 = ["sm", "md", "lg"], Hc = l.oneOf(Oq1), x4 = l.oneOf(kq1), $0 = /* @__PURE__ */ ne({
42535
42535
  isFluid: !1
42536
42536
  }), Zq1 = (r) => {
42537
42537
  r.keyCode === 27 && r.stopPropagation();
@@ -43022,7 +43022,7 @@ Lc.propTypes = {
43022
43022
  */
43023
43023
  translateWithId: l.func
43024
43024
  };
43025
- const P0 = (...r) => (n) => {
43025
+ const F0 = (...r) => (n) => {
43026
43026
  r.forEach((e) => {
43027
43027
  typeof e == "function" ? e(n) : Object(e) === e && (e.current = n);
43028
43028
  });
@@ -43348,7 +43348,7 @@ const P0 = (...r) => (n) => {
43348
43348
  v?.onStateChange?.({
43349
43349
  type: w1,
43350
43350
  selectedItem: Y1
43351
- }), !j.current && (w1 === cG1 || w1 === aG1 || w1 === vr1) && typeof Y1 < "u" && !Y0(O, Y1) && z({
43351
+ }), !j.current && (w1 === cG1 || w1 === aG1 || w1 === vr1) && typeof Y1 < "u" && !k0(O, Y1) && z({
43352
43352
  selectedItem: Y1
43353
43353
  });
43354
43354
  }
@@ -43388,7 +43388,7 @@ const P0 = (...r) => (n) => {
43388
43388
  onClick: (w1) => {
43389
43389
  w1.preventDefault(), w1.currentTarget.focus();
43390
43390
  }
43391
- } : {}, ae = V && H && A2 || Y && Z && k1 || w && !h1 && U2 || void 0, W0 = n2(() => T({
43391
+ } : {}, ae = V && H && A2 || Y && Z && k1 || w && !h1 && U2 || void 0, j0 = n2(() => T({
43392
43392
  ref: S ? q.setFloating : null
43393
43393
  }), [S, o, a, T, q.setFloating]);
43394
43394
  return p1(() => {
@@ -43427,7 +43427,7 @@ const P0 = (...r) => (n) => {
43427
43427
  title: m1?.current?.value
43428
43428
  }, P1({
43429
43429
  "aria-label": D ? void 0 : o || a,
43430
- "aria-controls": o1 ? void 0 : W0.id,
43430
+ "aria-controls": o1 ? void 0 : j0.id,
43431
43431
  placeholder: y,
43432
43432
  value: R,
43433
43433
  ...P,
@@ -43435,7 +43435,7 @@ const P0 = (...r) => (n) => {
43435
43435
  const Y1 = w1.target.value;
43436
43436
  J(Y1), e2(Y1);
43437
43437
  },
43438
- ref: P0(m1, n, c),
43438
+ ref: F0(m1, n, c),
43439
43439
  onKeyDown: (w1) => {
43440
43440
  if (I1(w1, re) && w1.stopPropagation(), I1(w1, L0) && (!R || k) && (y2(), M1 !== -1 && z1(O1(E, x, R)[M1]), k && o1 && R && M1 === -1 && z({
43441
43441
  selectedItem: null,
@@ -43470,7 +43470,7 @@ const P0 = (...r) => (n) => {
43470
43470
  translateWithId: Q
43471
43471
  }))), _ ? v1 : h ? /* @__PURE__ */ t.createElement("div", {
43472
43472
  className: `${f1}--list-box__inner-wrapper--decorator`
43473
- }, v1) : "", /* @__PURE__ */ t.createElement(J0.Menu, W0, o1 ? O1(E, x, R).map((w1, Y1) => {
43473
+ }, v1) : "", /* @__PURE__ */ t.createElement(J0.Menu, j0, o1 ? O1(E, x, R).map((w1, Y1) => {
43474
43474
  const t2 = w1 !== null && typeof w1 == "object" && "text" in w1 && C ? w1.text?.toString() : x(w1), P2 = b1({
43475
43475
  item: w1,
43476
43476
  index: Y1
@@ -43951,7 +43951,7 @@ const L4 = ({
43951
43951
  };
43952
43952
  return p1(() => {
43953
43953
  const h = typeof c < "u";
43954
- f.current === !1 && h && process.env.NODE_ENV !== "production" && I0(!1, `A component is changing an uncontrolled ${n} component to be controlled. This is likely caused by the value changing to a defined value from undefined. Decide between using a controlled or uncontrolled value for the lifetime of the component. More info: https://reactjs.org/link/controlled-components`), f.current === !0 && !h && process.env.NODE_ENV !== "production" && I0(!1, `A component is changing a controlled ${n} component to be uncontrolled. This is likely caused by the value changing to an undefined value from a defined one. Decide between using a controlled or uncontrolled value for the lifetime of the component. More info: https://reactjs.org/link/controlled-components`);
43954
+ f.current === !1 && h && process.env.NODE_ENV !== "production" && B0(!1, `A component is changing an uncontrolled ${n} component to be controlled. This is likely caused by the value changing to a defined value from undefined. Decide between using a controlled or uncontrolled value for the lifetime of the component. More info: https://reactjs.org/link/controlled-components`), f.current === !0 && !h && process.env.NODE_ENV !== "production" && B0(!1, `A component is changing a controlled ${n} component to be uncontrolled. This is likely caused by the value changing to an undefined value from a defined one. Decide between using a controlled or uncontrolled value for the lifetime of the component. More info: https://reactjs.org/link/controlled-components`);
43955
43955
  }, [n, c]), f.current === !0 ? [c, p, f.current] : [a, p, f.current];
43956
43956
  };
43957
43957
  var Vr1, Hr1, Cr1;
@@ -44369,13 +44369,13 @@ const Ua1 = /* @__PURE__ */ t.forwardRef(function({
44369
44369
  // Middleware order matters, arrow should be last
44370
44370
  middleware: V,
44371
44371
  whileElementsMounted: $e
44372
- }), L = P0(g, m, H.setReference), {
44372
+ }), L = F0(g, m, H.setReference), {
44373
44373
  open: z,
44374
44374
  handleClick: A,
44375
44375
  handleMousedown: b,
44376
44376
  handleClose: y
44377
44377
  } = _c(m);
44378
- F0(() => {
44378
+ W0(() => {
44379
44379
  const X = {
44380
44380
  ...E,
44381
44381
  visibility: x.hide?.referenceHidden ? "hidden" : "visible"
@@ -45601,7 +45601,7 @@ const no1 = /* @__PURE__ */ t.forwardRef(function({
45601
45601
  return /* @__PURE__ */ t.createElement(Me, l1({
45602
45602
  className: g
45603
45603
  }, v, o, {
45604
- ref: P0(h, f)
45604
+ ref: F0(h, f)
45605
45605
  }), e);
45606
45606
  });
45607
45607
  no1.propTypes = {
@@ -45648,7 +45648,7 @@ const LG1 = /* @__PURE__ */ t.forwardRef(function({
45648
45648
  ...E
45649
45649
  }, C) {
45650
45650
  const x = s1(), [L, z] = d1(!!g), [A, b] = d1(!!g), y = i1(null), $ = i1(null), O = i1(null), I = i1(null), B = i1(null), D = s0("enable-dialog-element"), Q = s0("enable-experimental-focus-wrap-without-sentinels");
45651
- process.env.NODE_ENV !== "production" && I0(!(Q && D), "`<Modal>` detected both `focusTrapWithoutSentinels` and `enableDialogElement` feature flags are enabled. The native dialog element handles focus, so `enableDialogElement` must be off for `focusTrapWithoutSentinels` to have any effect."), p1(() => {
45651
+ process.env.NODE_ENV !== "production" && B0(!(Q && D), "`<Modal>` detected both `focusTrapWithoutSentinels` and `enableDialogElement` feature flags are enabled. The native dialog element handles focus, so `enableDialogElement` must be off for `focusTrapWithoutSentinels` to have any effect."), p1(() => {
45652
45652
  !D && g !== A && (z(!!g), b(!!g), jt(document.body, `${x}--body--with-modal-open`, !!g));
45653
45653
  }, [g, A, x]), p1(() => {
45654
45654
  if (!D)
@@ -46774,7 +46774,7 @@ S6.propTypes = {
46774
46774
  };
46775
46775
  const Dr1 = {};
46776
46776
  function TG1(r, n) {
46777
- return Dr1[r] || (Dr1[r] = !0, process.env.NODE_ENV !== "production" && I0(!1, n)), r;
46777
+ return Dr1[r] || (Dr1[r] = !0, process.env.NODE_ENV !== "production" && B0(!1, n)), r;
46778
46778
  }
46779
46779
  const y3 = ({
46780
46780
  className: r,
@@ -47313,7 +47313,7 @@ const Rc = /* @__PURE__ */ t.forwardRef((r, n) => {
47313
47313
  className: `${m}--radio-button`,
47314
47314
  onChange: E,
47315
47315
  id: H,
47316
- ref: P0(L, n),
47316
+ ref: F0(L, n),
47317
47317
  disabled: a,
47318
47318
  value: g,
47319
47319
  name: d,
@@ -47548,7 +47548,7 @@ const ZG1 = g2, Oc = ZG1((r, n) => {
47548
47548
  function C(b) {
47549
47549
  g(b), c && c();
47550
47550
  }
47551
- process.env.NODE_ENV !== "production" && I0(!!c, "`<OverflowMenuItem>` detected missing `closeMenu` prop. `closeMenu` is required to let `<OverflowMenu>` close the menu upon actions on `<OverflowMenuItem>`. Please make sure `<OverflowMenuItem>` is a direct child of `<OverflowMenu>.");
47551
+ process.env.NODE_ENV !== "production" && B0(!!c, "`<OverflowMenuItem>` detected missing `closeMenu` prop. `closeMenu` is required to let `<OverflowMenu>` close the menu upon actions on `<OverflowMenuItem>`. Please make sure `<OverflowMenuItem>` is a direct child of `<OverflowMenu>.");
47552
47552
  const x = W(`${H}--overflow-menu-options__btn`, e), L = W(`${H}--overflow-menu-options__option`, {
47553
47553
  [`${H}--overflow-menu--divider`]: f,
47554
47554
  [`${H}--overflow-menu-options__option--danger`]: h,
@@ -47852,7 +47852,7 @@ const Tr1 = "md", ho1 = /* @__PURE__ */ t.forwardRef(function({
47852
47852
  [`${E}--autoalign`]: v
47853
47853
  }), I = W(`${E}--overflow-menu__${p}`), B = W(`${E}--overflow-menu`, {
47854
47854
  [`${E}--overflow-menu--open`]: x
47855
- }, f !== Tr1 && `${E}--overflow-menu--${f}`), D = P0(C, w.setReference);
47855
+ }, f !== Tr1 && `${E}--overflow-menu--${f}`), D = F0(C, w.setReference);
47856
47856
  return /* @__PURE__ */ t.createElement("div", l1({}, u, {
47857
47857
  className: O,
47858
47858
  "aria-owns": x ? H : void 0,
@@ -48074,7 +48074,7 @@ const p3 = /* @__PURE__ */ n3(UG1), qG1 = /* @__PURE__ */ (() => {
48074
48074
  const v = u2(E8), [w, M] = d1(void 0), m = i1(null), V = i1(null), H = i1(null), E = i1(!1), C = _1(($) => {
48075
48075
  const O = m.current;
48076
48076
  if (!O) {
48077
- process.env.NODE_ENV !== "production" && I0(!!O, "The DOM node for menu body for calculating its position is not available. Skipping...");
48077
+ process.env.NODE_ENV !== "production" && B0(!!O, "The DOM node for menu body for calculating its position is not available. Skipping...");
48078
48078
  return;
48079
48079
  }
48080
48080
  const I = u.current, B = O.getBoundingClientRect(), D = I ? I.getBoundingClientRect() : void 0, Q = typeof a == "function" ? a(O, c, I, n) : a;
@@ -48117,7 +48117,7 @@ const p3 = /* @__PURE__ */ n3(UG1), qG1 = /* @__PURE__ */ (() => {
48117
48117
  I || // First sequentially focusable node
48118
48118
  B || // First programmatic focusable node
48119
48119
  $;
48120
- D.focus(), D === $ && process.env.NODE_ENV !== "production" && I0(B === null, 'Floating Menus must have at least a programmatically focusable child. This can be accomplished by adding tabIndex="-1" to the content element.');
48120
+ D.focus(), D === $ && process.env.NODE_ENV !== "production" && B0(B === null, 'Floating Menus must have at least a programmatically focusable child. This can be accomplished by adding tabIndex="-1" to the content element.');
48121
48121
  }, L = ($) => {
48122
48122
  m.current = $, E.current = !!$, o && o($), $ && C();
48123
48123
  };
@@ -48356,7 +48356,7 @@ const p3 = /* @__PURE__ */ n3(UG1), qG1 = /* @__PURE__ */ (() => {
48356
48356
  selectorPrimaryFocus: x
48357
48357
  }, /* @__PURE__ */ b2(g1, {
48358
48358
  "data-floating-menu-direction": o
48359
- })), y1 = z ? P0(F, z, b) : P0(F, b);
48359
+ })), y1 = z ? F0(F, z, b) : F0(F, b);
48360
48360
  return /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("span", {
48361
48361
  className: `${y}--overflow-menu__wrapper`,
48362
48362
  "aria-owns": $ ? t1 : void 0,
@@ -48600,10 +48600,10 @@ const cK1 = V8(), W2 = {
48600
48600
  // Start with collapsed state, treat `undefined` as neutral state
48601
48601
  }));
48602
48602
  p1(() => {
48603
- const K = M.map((t1) => t1.id), R = c.map((t1) => t1.key), J = !Y0(K, V.rowIds), n1 = Object.keys(V.cellsById).reduce((t1, f1) => {
48603
+ const K = M.map((t1) => t1.id), R = c.map((t1) => t1.key), J = !k0(K, V.rowIds), n1 = Object.keys(V.cellsById).reduce((t1, f1) => {
48604
48604
  const h1 = f1.split(":")[1];
48605
48605
  return h1 && !t1.includes(h1) && t1.push(h1), t1;
48606
- }, []), c1 = !Y0(R, n1), j = V.rowIds.map((t1) => {
48606
+ }, []), c1 = !k0(R, n1), j = V.rowIds.map((t1) => {
48607
48607
  const f1 = V.rowsById[t1];
48608
48608
  return {
48609
48609
  // TODO: Investigate whether it be okay to just return `row`.
@@ -48612,7 +48612,7 @@ const cK1 = V8(), W2 = {
48612
48612
  isExpanded: f1.isExpanded,
48613
48613
  isSelected: f1.isSelected
48614
48614
  };
48615
- }), r1 = !Y0(M, j);
48615
+ }), r1 = !k0(M, j);
48616
48616
  (J || c1 || r1) && H((t1) => Ar1(r, t1));
48617
48617
  }, [c, M]);
48618
48618
  const E = ({
@@ -50236,11 +50236,11 @@ function hK1(r, n) {
50236
50236
  else if (!ae)
50237
50237
  e.calendarContainer.style.left = "auto", e.calendarContainer.style.right = v0 + "px";
50238
50238
  else {
50239
- var W0 = S1();
50240
- if (W0 === void 0)
50239
+ var j0 = S1();
50240
+ if (j0 === void 0)
50241
50241
  return;
50242
- var w1 = window.document.body.offsetWidth, Y1 = Math.max(0, w1 / 2 - o1 / 2), R2 = ".flatpickr-calendar.centerMost:before", t2 = ".flatpickr-calendar.centerMost:after", P2 = W0.cssRules.length, t0 = "{left:" + N1.left + "px;right:auto;}";
50243
- n0(e.calendarContainer, "rightMost", !1), n0(e.calendarContainer, "centerMost", !0), W0.insertRule(R2 + "," + t2 + t0, P2), e.calendarContainer.style.left = Y1 + "px", e.calendarContainer.style.right = "auto";
50242
+ var w1 = window.document.body.offsetWidth, Y1 = Math.max(0, w1 / 2 - o1 / 2), R2 = ".flatpickr-calendar.centerMost:before", t2 = ".flatpickr-calendar.centerMost:after", P2 = j0.cssRules.length, t0 = "{left:" + N1.left + "px;right:auto;}";
50243
+ n0(e.calendarContainer, "rightMost", !1), n0(e.calendarContainer, "centerMost", !0), j0.insertRule(R2 + "," + t2 + t0, P2), e.calendarContainer.style.left = Y1 + "px", e.calendarContainer.style.right = "auto";
50244
50244
  }
50245
50245
  }
50246
50246
  }
@@ -50508,12 +50508,12 @@ function uK1() {
50508
50508
  c(n);
50509
50509
  })(dK1, (function(e) {
50510
50510
  var c = function() {
50511
- return c = Object.assign || function(j0) {
50511
+ return c = Object.assign || function(U0) {
50512
50512
  for (var I4, wn = 1, lu1 = arguments.length; wn < lu1; wn++) {
50513
50513
  I4 = arguments[wn];
50514
- for (var gn in I4) Object.prototype.hasOwnProperty.call(I4, gn) && (j0[gn] = I4[gn]);
50514
+ for (var gn in I4) Object.prototype.hasOwnProperty.call(I4, gn) && (U0[gn] = I4[gn]);
50515
50515
  }
50516
- return j0;
50516
+ return U0;
50517
50517
  }, c.apply(this, arguments);
50518
50518
  }, a = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
50519
50519
  l10ns: {}
@@ -50919,10 +50919,10 @@ function uK1() {
50919
50919
  ]
50920
50920
  },
50921
50921
  ordinal: function(a2) {
50922
- var j0 = a2 % 100;
50923
- if (j0 > 3 && j0 < 21)
50922
+ var U0 = a2 % 100;
50923
+ if (U0 > 3 && U0 < 21)
50924
50924
  return "è";
50925
- switch (j0 % 10) {
50925
+ switch (U0 % 10) {
50926
50926
  case 1:
50927
50927
  return "r";
50928
50928
  case 2:
@@ -51262,10 +51262,10 @@ function uK1() {
51262
51262
  daysInMonth: [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31],
51263
51263
  firstDayOfWeek: 0,
51264
51264
  ordinal: function(a2) {
51265
- var j0 = a2 % 100;
51266
- if (j0 > 3 && j0 < 21)
51265
+ var U0 = a2 % 100;
51266
+ if (U0 > 3 && U0 < 21)
51267
51267
  return "th";
51268
- switch (j0 % 10) {
51268
+ switch (U0 % 10) {
51269
51269
  case 1:
51270
51270
  return "st";
51271
51271
  case 2:
@@ -53030,7 +53030,7 @@ function uK1() {
53030
53030
  time_24hr: !0
53031
53031
  };
53032
53032
  e0.l10ns.pt = ae, e0.l10ns;
53033
- var W0 = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
53033
+ var j0 = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
53034
53034
  l10ns: {}
53035
53035
  }, w1 = {
53036
53036
  weekdays: {
@@ -53081,7 +53081,7 @@ function uK1() {
53081
53081
  return "";
53082
53082
  }
53083
53083
  };
53084
- W0.l10ns.ro = w1, W0.l10ns;
53084
+ j0.l10ns.ro = w1, j0.l10ns;
53085
53085
  var Y1 = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
53086
53086
  l10ns: {}
53087
53087
  }, R2 = {
@@ -53993,7 +53993,7 @@ const Gt = /* @__PURE__ */ t.forwardRef(function(n, e) {
53993
53993
  placeholder: m,
53994
53994
  type: E
53995
53995
  };
53996
- process.env.NODE_ENV !== "production" && "value" in L && !Wr1 && (process.env.NODE_ENV !== "production" && I0(!1, `The 'value' prop is not supported on the DatePickerInput component. For DatePicker components with 'datePickerType="range"', please pass the 'value' prop (as an array of dates) to the parent DatePicker component instead.`), Wr1 = !0);
53996
+ process.env.NODE_ENV !== "production" && "value" in L && !Wr1 && (process.env.NODE_ENV !== "production" && B0(!1, `The 'value' prop is not supported on the DatePickerInput component. For DatePicker components with 'datePickerType="range"', please pass the 'value' prop (as an array of dates) to the parent DatePicker component instead.`), Wr1 = !0);
53997
53997
  const $ = W(`${z}--date-picker-input__wrapper`, {
53998
53998
  [`${z}--date-picker-input__wrapper--invalid`]: d,
53999
53999
  [`${z}--date-picker-input__wrapper--warn`]: C,
@@ -55064,7 +55064,7 @@ const k6 = /* @__PURE__ */ t.forwardRef(({
55064
55064
  className: y1
55065
55065
  }, E) : null, T1 = (v1) => {
55066
55066
  C1(v1.type === "focus" && !r1);
55067
- }, J1 = P0(D1.ref, Q), [M2, I2] = d1(), [E2, U2] = d1(!1), k1 = _1((v1) => {
55067
+ }, J1 = F0(D1.ref, Q), [M2, I2] = d1(), [E2, U2] = d1(!1), k1 = _1((v1) => {
55068
55068
  (v1.code !== "Space" || !["ArrowDown", "ArrowUp", " ", "Enter"].includes(v1.key)) && U2(!0), (E2 && v1.code === "Space" || !["ArrowDown", "ArrowUp", " ", "Enter"].includes(v1.key)) && (M2 && clearTimeout(M2), I2(setTimeout(() => {
55069
55069
  U2(!1);
55070
55070
  }, 3e3))), ["ArrowDown"].includes(v1.key) && C1(!1), ["Enter"].includes(v1.key) && !r1 && !R && C1(!0), D1.onKeyDown && (v1.key !== "ArrowUp" || R && v1.key === "ArrowUp") && D1.onKeyDown(v1);
@@ -56062,7 +56062,7 @@ const ze = /* @__PURE__ */ t.forwardRef(({
56062
56062
  className: M,
56063
56063
  ref: d
56064
56064
  }, h), n);
56065
- }), f4 = l.oneOf(["25%", "50%", "75%", "100%"]), K0 = Xc1("enable-css-grid") ? l.oneOfType([l.bool, l.number, l.shape({
56065
+ }), f4 = l.oneOf(["25%", "50%", "75%", "100%"]), Y0 = Xc1("enable-css-grid") ? l.oneOfType([l.bool, l.number, l.shape({
56066
56066
  span: l.oneOfType([l.number, f4]),
56067
56067
  offset: l.number,
56068
56068
  start: l.number,
@@ -56090,28 +56090,28 @@ ze.propTypes = {
56090
56090
  *
56091
56091
  * @see https://carbondesignsystem.com/elements/2x-grid/overview/#breakpoints
56092
56092
  */
56093
- lg: K0,
56093
+ lg: Y0,
56094
56094
  /**
56095
56095
  * Specify column span for the `max` breakpoint. This breakpoint supports 16
56096
56096
  * columns by default.
56097
56097
  *
56098
56098
  * @see https://carbondesignsystem.com/elements/2x-grid/overview/#breakpoints
56099
56099
  */
56100
- max: K0,
56100
+ max: Y0,
56101
56101
  /**
56102
56102
  * Specify column span for the `md` breakpoint (Default breakpoint up to 1056px)
56103
56103
  * This breakpoint supports 8 columns by default.
56104
56104
  *
56105
56105
  * @see https://carbondesignsystem.com/elements/2x-grid/overview/#breakpoints
56106
56106
  */
56107
- md: K0,
56107
+ md: Y0,
56108
56108
  /**
56109
56109
  * Specify column span for the `sm` breakpoint (Default breakpoint up to 672px)
56110
56110
  * This breakpoint supports 4 columns by default.
56111
56111
  *
56112
56112
  * @see https://carbondesignsystem.com/elements/2x-grid/overview/#breakpoints
56113
56113
  */
56114
- sm: K0,
56114
+ sm: Y0,
56115
56115
  /**
56116
56116
  * Specify constant column span, start, or end values that will not change
56117
56117
  * based on breakpoint
@@ -56123,7 +56123,7 @@ ze.propTypes = {
56123
56123
  *
56124
56124
  * @see https://carbondesignsystem.com/elements/2x-grid/overview/#breakpoints
56125
56125
  */
56126
- xlg: K0
56126
+ xlg: Y0
56127
56127
  };
56128
56128
  const yo1 = /* @__PURE__ */ t.forwardRef(({
56129
56129
  as: r = "div",
@@ -56164,28 +56164,28 @@ yo1.propTypes = {
56164
56164
  *
56165
56165
  * @see https://carbondesignsystem.com/elements/2x-grid/overview/#breakpoints
56166
56166
  */
56167
- lg: K0,
56167
+ lg: Y0,
56168
56168
  /**
56169
56169
  * Specify column span for the `max` breakpoint. This breakpoint supports 16
56170
56170
  * columns by default.
56171
56171
  *
56172
56172
  * @see https://carbondesignsystem.com/elements/2x-grid/overview/#breakpoints
56173
56173
  */
56174
- max: K0,
56174
+ max: Y0,
56175
56175
  /**
56176
56176
  * Specify column span for the `md` breakpoint (Default breakpoint up to 1056px)
56177
56177
  * This breakpoint supports 8 columns by default.
56178
56178
  *
56179
56179
  * @see https://carbondesignsystem.com/elements/2x-grid/overview/#breakpoints
56180
56180
  */
56181
- md: K0,
56181
+ md: Y0,
56182
56182
  /**
56183
56183
  * Specify column span for the `sm` breakpoint (Default breakpoint up to 672px)
56184
56184
  * This breakpoint supports 4 columns by default.
56185
56185
  *
56186
56186
  * @see https://carbondesignsystem.com/elements/2x-grid/overview/#breakpoints
56187
56187
  */
56188
- sm: K0,
56188
+ sm: Y0,
56189
56189
  /**
56190
56190
  * Specify constant column span, start, or end values that will not change
56191
56191
  * based on breakpoint
@@ -56201,7 +56201,7 @@ yo1.propTypes = {
56201
56201
  *
56202
56202
  * @see https://carbondesignsystem.com/elements/2x-grid/overview/#breakpoints
56203
56203
  */
56204
- xlg: K0
56204
+ xlg: Y0
56205
56205
  };
56206
56206
  const bo1 = ["sm", "md", "lg", "xlg", "max"];
56207
56207
  function SK1(r, n) {
@@ -56331,13 +56331,13 @@ const RK1 = ["primary", "tertiary", "ghost"], OK1 = "primary", No1 = /* @__PURE_
56331
56331
  // Middleware order matters, arrow should be last
56332
56332
  middleware: V,
56333
56333
  whileElementsMounted: $e
56334
- }), L = P0(g, m), {
56334
+ }), L = F0(g, m), {
56335
56335
  open: z,
56336
56336
  handleClick: A,
56337
56337
  handleMousedown: b,
56338
56338
  handleClose: y
56339
56339
  } = _c(m);
56340
- F0(() => {
56340
+ W0(() => {
56341
56341
  Object.keys(E).forEach((D) => {
56342
56342
  if (H.floating.current) {
56343
56343
  let Q = E[D];
@@ -56466,7 +56466,7 @@ const kK1 = (r) => {
56466
56466
  const k = s1(), _ = i1(null), P = i1(null), F = i1(null), S = i1(null), q = i1(null), U = i1(null), a1 = i1(null), [K, R] = d1(!1), J = kK1(g), n1 = `modal-${r2()}`, c1 = `${k}--modal-header__label--${n1}`, j = `${k}--modal-header__heading--${n1}`, r1 = `${k}--modal-body--${n1}`, t1 = `${k}--modal-close`, f1 = W({
56467
56467
  [`${k}--btn--loading`]: I !== "inactive"
56468
56468
  }), h1 = I !== "inactive", m1 = s0("enable-experimental-focus-wrap-without-sentinels"), C1 = s0("enable-dialog-element");
56469
- process.env.NODE_ENV !== "production" && I0(!(m1 && C1), "`<Modal>` detected both `focusTrapWithoutSentinels` and `enableDialogElement` feature flags are enabled. The native dialog element handles focus, so `enableDialogElement` must be off for `focusTrapWithoutSentinels` to have any effect."), !h && y === !1 && console.error(Ao1);
56469
+ process.env.NODE_ENV !== "production" && B0(!(m1 && C1), "`<Modal>` detected both `focusTrapWithoutSentinels` and `enableDialogElement` feature flags are enabled. The native dialog element handles focus, so `enableDialogElement` must be off for `focusTrapWithoutSentinels` to have any effect."), !h && y === !1 && console.error(Ao1);
56470
56470
  function g1(v1) {
56471
56471
  return !M && v1 === P.current || v1.classList.contains(t1);
56472
56472
  }
@@ -56977,7 +56977,7 @@ const IK1 = (r, {
56977
56977
  else if (m?.isSelectAll && g.length === 0)
56978
56978
  E = V;
56979
56979
  else {
56980
- const C = g.findLastIndex((x) => Y0(x, m));
56980
+ const C = g.findLastIndex((x) => k0(x, m));
56981
56981
  C === -1 ? (E = g.concat(m), a && o.length - 1 === E.length + H && (E = V)) : (E = UK1(g, C), E = E.filter((x) => !x?.isSelectAll));
56982
56982
  }
56983
56983
  Kn({
@@ -57100,7 +57100,7 @@ const IK1 = (r, {
57100
57100
  selectAll: y1,
57101
57101
  filteredItems: g1
57102
57102
  }), V1 = n2(() => {
57103
- const A1 = S1.filter((C2) => !C2.disabled), c2 = A1.filter((C2) => !u1.some((K1) => Y0(K1, C2))).length, z2 = A1.length;
57103
+ const A1 = S1.filter((C2) => !C2.disabled), c2 = A1.filter((C2) => !u1.some((K1) => k0(K1, C2))).length, z2 = A1.length;
57104
57104
  return {
57105
57105
  checked: z2 > 0 && c2 === 0,
57106
57106
  indeterminate: c2 > 0 && c2 < z2
@@ -57111,10 +57111,10 @@ const IK1 = (r, {
57111
57111
  indeterminate: z2
57112
57112
  } = V1;
57113
57113
  if (c2 || z2) {
57114
- const C2 = u1.filter((K1) => !g1.some((q2) => Y0(q2, K1)));
57114
+ const C2 = u1.filter((K1) => !g1.some((q2) => k0(q2, K1)));
57115
57115
  D1(C2);
57116
57116
  } else {
57117
- const C2 = A1.filter((K1) => !u1.some((q2) => Y0(q2, K1)));
57117
+ const C2 = A1.filter((K1) => !u1.some((q2) => k0(q2, K1)));
57118
57118
  D1([...u1, ...C2]);
57119
57119
  }
57120
57120
  }, [S1, V1, u1, D1]), {
@@ -57143,7 +57143,7 @@ const IK1 = (r, {
57143
57143
  }), V4()],
57144
57144
  whileElementsMounted: $e
57145
57145
  } : {});
57146
- F0(() => {
57146
+ W0(() => {
57147
57147
  if (n) {
57148
57148
  const A1 = {
57149
57149
  ...M2,
@@ -57395,7 +57395,7 @@ const IK1 = (r, {
57395
57395
  suppressRefError: !0
57396
57396
  }), [n, F1, J1.setFloating]), oe = (A1) => {
57397
57397
  A1?.target.classList.contains(`${k1}--tag__close-icon`) || A1?.target.classList.contains(`${k1}--list-box__selection`) ? R(!1) : R(A1?.type === "focus");
57398
- }, o3 = P0(E2, t0.ref), R4 = O ? {
57398
+ }, o3 = F0(E2, t0.ref), R4 = O ? {
57399
57399
  onClick: (A1) => {
57400
57400
  A1.preventDefault(), o3.current !== void 0 && o3.current.focus();
57401
57401
  },
@@ -57459,7 +57459,7 @@ const IK1 = (r, {
57459
57459
  className: `${k1}--list-box__inner-wrapper--decorator`
57460
57460
  }, w1) : "", /* @__PURE__ */ t.createElement(J0.Menu, F2, J ? A2.map((A1, c2) => {
57461
57461
  let z2, C2 = !1;
57462
- A1.isSelectAll ? (z2 = V1.checked, C2 = V1.indeterminate) : z2 = u1.filter((Z4) => Y0(Z4, A1)).length > 0;
57462
+ A1.isSelectAll ? (z2 = V1.checked, C2 = V1.indeterminate) : z2 = u1.filter((Z4) => k0(Z4, A1)).length > 0;
57463
57463
  const K1 = B1({
57464
57464
  item: A1,
57465
57465
  "aria-selected": z2
@@ -58834,7 +58834,7 @@ const Zr = {
58834
58834
  const m = s1(), V = i1(null);
58835
58835
  o && console.warn("The `filter` prop for Tag has been deprecated and will be removed in the next major version. Use DismissibleTag instead."), d && console.warn("The `onClose` prop for Tag has been deprecated and will be removed in the next major version. Use DismissibleTag instead.");
58836
58836
  const H = f0([M, V]), E = c || `tag-${r2()}`, [C, x] = d1(!1);
58837
- F0(() => {
58837
+ W0(() => {
58838
58838
  const Q = V.current?.getElementsByClassName(`${m}--tag__label`)[0];
58839
58839
  x(Fo1(Q));
58840
58840
  }, [m, V]);
@@ -58972,11 +58972,11 @@ const jo1 = /* @__PURE__ */ g2(({
58972
58972
  }), H = W(`${v}--tag--selectable`, r, {
58973
58973
  [`${v}--tag--selectable-selected`]: m
58974
58974
  }), [E, C] = d1(!1);
58975
- F0(() => {
58975
+ W0(() => {
58976
58976
  const A = w.current?.getElementsByClassName(`${v}--tag__label`)[0];
58977
58977
  C(Fo1(A));
58978
58978
  }, [v, w]);
58979
- const x = W(`${v}--icon-tooltip`, `${v}--tag-label-tooltip`), L = P0(w, g), z = (A) => {
58979
+ const x = W(`${v}--icon-tooltip`, `${v}--tag-label-tooltip`), L = F0(w, g), z = (A) => {
58980
58980
  V(!m), o?.(A);
58981
58981
  };
58982
58982
  return E ? /* @__PURE__ */ t.createElement(H4, {
@@ -59363,7 +59363,7 @@ const Uc = /* @__PURE__ */ t.forwardRef(function({
59363
59363
  };
59364
59364
  if (p1(() => {
59365
59365
  _ && (t1(_), P(null));
59366
- }, [_]), w !== Z && (Y(w), k(w)), m !== q && (S(d81(I, m)), U(m)), !Y0(H, D)) {
59366
+ }, [_]), w !== Z && (Y(w), k(w)), m !== q && (S(d81(I, m)), U(m)), !k0(H, D)) {
59367
59367
  const g1 = h81(H);
59368
59368
  g1.find((y1) => y1.value === F) || Y(1), B(g1), Q(H);
59369
59369
  }
@@ -64986,7 +64986,7 @@ function Y81(r, n) {
64986
64986
  }
64987
64987
  return e;
64988
64988
  }
64989
- function q0(r) {
64989
+ function G0(r) {
64990
64990
  for (var n = 1; n < arguments.length; n++) {
64991
64991
  var e = arguments[n] != null ? arguments[n] : {};
64992
64992
  n % 2 ? Y81(Object(e), !0).forEach(function(c) {
@@ -65140,7 +65140,7 @@ function Xl1(r, n) {
65140
65140
  }, {
65141
65141
  attrs: {}
65142
65142
  }), o = e.style, f = o === void 0 ? {} : o, p = bQ1(e, kQ1);
65143
- return a.attrs.style = q0(q0({}, a.attrs.style), f), r.apply(void 0, [n.tag, q0(q0({}, a.attrs), p)].concat(c8(c)));
65143
+ return a.attrs.style = G0(G0({}, a.attrs.style), f), r.apply(void 0, [n.tag, G0(G0({}, a.attrs), p)].concat(c8(c)));
65144
65144
  }
65145
65145
  var Ql1 = !1;
65146
65146
  try {
@@ -65207,7 +65207,7 @@ var Q81 = {
65207
65207
  swapOpacity: !1,
65208
65208
  widthAuto: !1
65209
65209
  }, h5 = /* @__PURE__ */ t.forwardRef(function(r, n) {
65210
- var e = q0(q0({}, Q81), r), c = e.icon, a = e.mask, o = e.symbol, f = e.className, p = e.title, h = e.titleId, d = e.maskId, u = X81(c), g = rr("classes", [].concat(c8(TQ1(e)), c8((f || "").split(" ")))), v = rr("transform", typeof e.transform == "string" ? n8.transform(e.transform) : e.transform), w = rr("mask", X81(a)), M = HQ1(u, q0(q0(q0(q0({}, g), v), w), {}, {
65210
+ var e = G0(G0({}, Q81), r), c = e.icon, a = e.mask, o = e.symbol, f = e.className, p = e.title, h = e.titleId, d = e.maskId, u = X81(c), g = rr("classes", [].concat(c8(TQ1(e)), c8((f || "").split(" ")))), v = rr("transform", typeof e.transform == "string" ? n8.transform(e.transform) : e.transform), w = rr("mask", X81(a)), M = HQ1(u, G0(G0(G0(G0({}, g), v), w), {}, {
65211
65211
  symbol: o,
65212
65212
  title: p,
65213
65213
  titleId: h,
@@ -72982,13 +72982,16 @@ const uH2 = () => {
72982
72982
  e ?? null
72983
72983
  );
72984
72984
  return p1(() => {
72985
- p(e ?? null);
72985
+ p((d) => {
72986
+ const u = e ?? null;
72987
+ return k0(d, u) ? d : u;
72988
+ });
72986
72989
  }, [e]), /* @__PURE__ */ G(
72987
72990
  zc,
72988
72991
  {
72989
72992
  ...o,
72990
72993
  onChange: (d) => {
72991
- p(d.selectedItem ?? null), a?.(d), c && d.selectedItem != null && queueMicrotask(() => p(null));
72994
+ e === void 0 && p(d.selectedItem ?? null), a?.(d), c && d.selectedItem != null && queueMicrotask(() => p(null));
72992
72995
  },
72993
72996
  selectedItem: f,
72994
72997
  "data-testid": r ?? n
@@ -73386,36 +73389,36 @@ const un = (r, n, e, c, a, o, f) => {
73386
73389
  const o = e == null || (c = e.toString()) == null ? void 0 : c.toLowerCase();
73387
73390
  return !!(!((a = r.getValue(n)) == null || (a = a.toString()) == null || (a = a.toLowerCase()) == null) && a.includes(o));
73388
73391
  };
73389
- bd1.autoRemove = (r) => Z0(r);
73392
+ bd1.autoRemove = (r) => I0(r);
73390
73393
  const Nd1 = (r, n, e) => {
73391
73394
  var c;
73392
73395
  return !!(!((c = r.getValue(n)) == null || (c = c.toString()) == null) && c.includes(e));
73393
73396
  };
73394
- Nd1.autoRemove = (r) => Z0(r);
73397
+ Nd1.autoRemove = (r) => I0(r);
73395
73398
  const Ad1 = (r, n, e) => {
73396
73399
  var c;
73397
73400
  return ((c = r.getValue(n)) == null || (c = c.toString()) == null ? void 0 : c.toLowerCase()) === e?.toLowerCase();
73398
73401
  };
73399
- Ad1.autoRemove = (r) => Z0(r);
73402
+ Ad1.autoRemove = (r) => I0(r);
73400
73403
  const $d1 = (r, n, e) => {
73401
73404
  var c;
73402
73405
  return (c = r.getValue(n)) == null ? void 0 : c.includes(e);
73403
73406
  };
73404
- $d1.autoRemove = (r) => Z0(r);
73407
+ $d1.autoRemove = (r) => I0(r);
73405
73408
  const Sd1 = (r, n, e) => !e.some((c) => {
73406
73409
  var a;
73407
73410
  return !((a = r.getValue(n)) != null && a.includes(c));
73408
73411
  });
73409
- Sd1.autoRemove = (r) => Z0(r) || !(r != null && r.length);
73412
+ Sd1.autoRemove = (r) => I0(r) || !(r != null && r.length);
73410
73413
  const Dd1 = (r, n, e) => e.some((c) => {
73411
73414
  var a;
73412
73415
  return (a = r.getValue(n)) == null ? void 0 : a.includes(c);
73413
73416
  });
73414
- Dd1.autoRemove = (r) => Z0(r) || !(r != null && r.length);
73417
+ Dd1.autoRemove = (r) => I0(r) || !(r != null && r.length);
73415
73418
  const Td1 = (r, n, e) => r.getValue(n) === e;
73416
- Td1.autoRemove = (r) => Z0(r);
73419
+ Td1.autoRemove = (r) => I0(r);
73417
73420
  const Rd1 = (r, n, e) => r.getValue(n) == e;
73418
- Rd1.autoRemove = (r) => Z0(r);
73421
+ Rd1.autoRemove = (r) => I0(r);
73419
73422
  const ca = (r, n, e) => {
73420
73423
  let [c, a] = e;
73421
73424
  const o = r.getValue(n);
@@ -73429,7 +73432,7 @@ ca.resolveFilterValue = (r) => {
73429
73432
  }
73430
73433
  return [o, f];
73431
73434
  };
73432
- ca.autoRemove = (r) => Z0(r) || Z0(r[0]) && Z0(r[1]);
73435
+ ca.autoRemove = (r) => I0(r) || I0(r[0]) && I0(r[1]);
73433
73436
  const le = {
73434
73437
  includesString: bd1,
73435
73438
  includesStringSensitive: Nd1,
@@ -73441,7 +73444,7 @@ const le = {
73441
73444
  weakEquals: Rd1,
73442
73445
  inNumberRange: ca
73443
73446
  };
73444
- function Z0(r) {
73447
+ function I0(r) {
73445
73448
  return r == null || r === "";
73446
73449
  }
73447
73450
  const Qg2 = {
@@ -76465,7 +76468,7 @@ function pt({
76465
76468
  }
76466
76469
  return c;
76467
76470
  }
76468
- function k0(r) {
76471
+ function Z0(r) {
76469
76472
  return parseFloat(r.toFixed(3));
76470
76473
  }
76471
76474
  function N3({
@@ -76493,7 +76496,7 @@ function p8(r) {
76493
76496
  panelElement: a,
76494
76497
  styleProp: o.collapsedSize
76495
76498
  });
76496
- f = k0(u / e * 100);
76499
+ f = Z0(u / e * 100);
76497
76500
  }
76498
76501
  let p;
76499
76502
  if (o.defaultSize !== void 0) {
@@ -76502,7 +76505,7 @@ function p8(r) {
76502
76505
  panelElement: a,
76503
76506
  styleProp: o.defaultSize
76504
76507
  });
76505
- p = k0(u / e * 100);
76508
+ p = Z0(u / e * 100);
76506
76509
  }
76507
76510
  let h = 0;
76508
76511
  if (o.minSize !== void 0) {
@@ -76511,7 +76514,7 @@ function p8(r) {
76511
76514
  panelElement: a,
76512
76515
  styleProp: o.minSize
76513
76516
  });
76514
- h = k0(u / e * 100);
76517
+ h = Z0(u / e * 100);
76515
76518
  }
76516
76519
  let d = 100;
76517
76520
  if (o.maxSize !== void 0) {
@@ -76520,7 +76523,7 @@ function p8(r) {
76520
76523
  panelElement: a,
76521
76524
  styleProp: o.maxSize
76522
76525
  });
76523
- d = k0(u / e * 100);
76526
+ d = Z0(u / e * 100);
76524
76527
  }
76525
76528
  return {
76526
76529
  collapsedSize: f,
@@ -76743,7 +76746,7 @@ class mE2 {
76743
76746
  }
76744
76747
  }
76745
76748
  function r0(r, n, e = 0) {
76746
- return Math.abs(k0(r) - k0(n)) <= e;
76749
+ return Math.abs(Z0(r) - Z0(n)) <= e;
76747
76750
  }
76748
76751
  let y0 = {
76749
76752
  cursorFlags: 0,
@@ -76915,7 +76918,7 @@ function xE2(r, n) {
76915
76918
  return !1;
76916
76919
  return !0;
76917
76920
  }
76918
- function U0(r, n) {
76921
+ function q0(r, n) {
76919
76922
  return r0(r, n) ? 0 : r > n ? 1 : -1;
76920
76923
  }
76921
76924
  function d3({
@@ -76933,13 +76936,13 @@ function d3({
76933
76936
  } = n;
76934
76937
  if (f && !r)
76935
76938
  return e;
76936
- if (U0(c, h) < 0)
76939
+ if (q0(c, h) < 0)
76937
76940
  if (o) {
76938
76941
  const d = (a + h) / 2;
76939
- U0(c, d) < 0 ? c = a : c = h;
76942
+ q0(c, d) < 0 ? c = a : c = h;
76940
76943
  } else
76941
76944
  c = h;
76942
- return c = Math.min(p, c), c = k0(c), c;
76945
+ return c = Math.min(p, c), c = Z0(c), c;
76943
76946
  }
76944
76947
  function u4({
76945
76948
  delta: r,
@@ -76974,7 +76977,7 @@ function u4({
76974
76977
  `Previous layout not found for panel index ${m}`
76975
76978
  ), r0(x, H)) {
76976
76979
  const L = C - x;
76977
- U0(L, Math.abs(r)) > 0 && (r = r < 0 ? 0 - L : L);
76980
+ q0(L, Math.abs(r)) > 0 && (r = r < 0 ? 0 - L : L);
76978
76981
  }
76979
76982
  }
76980
76983
  }
@@ -76996,7 +76999,7 @@ function u4({
76996
76999
  `Previous layout not found for panel index ${m}`
76997
77000
  ), r0(x, C)) {
76998
77001
  const L = x - H;
76999
- U0(L, Math.abs(r)) > 0 && (r = r < 0 ? 0 - L : L);
77002
+ q0(L, Math.abs(r)) > 0 && (r = r < 0 ? 0 - L : L);
77000
77003
  }
77001
77004
  }
77002
77005
  }
@@ -77009,13 +77012,13 @@ function u4({
77009
77012
  `Panel constraints not found for index ${m}`
77010
77013
  );
77011
77014
  const H = p[m], { collapsible: E, collapsedSize: C, minSize: x } = V;
77012
- if (E && U0(H, x) < 0)
77015
+ if (E && q0(H, x) < 0)
77013
77016
  if (r > 0) {
77014
77017
  const L = x - C, z = L / 2, A = H + r;
77015
- U0(A, x) < 0 && (r = U0(r, z) <= 0 ? 0 : L);
77018
+ q0(A, x) < 0 && (r = q0(r, z) <= 0 ? 0 : L);
77016
77019
  } else {
77017
77020
  const L = x - C, z = 100 - L / 2, A = H - r;
77018
- U0(A, x) < 0 && (r = U0(100 + r, z) > 0 ? 0 : -L);
77021
+ q0(A, x) < 0 && (r = q0(100 + r, z) > 0 ? 0 : -L);
77019
77022
  }
77020
77023
  break;
77021
77024
  }
@@ -77109,7 +77112,7 @@ function e3(r, n) {
77109
77112
  if (Object.keys(r).length !== Object.keys(n).length)
77110
77113
  return !1;
77111
77114
  for (const e in r)
77112
- if (n[e] === void 0 || U0(r[e], n[e]) !== 0)
77115
+ if (n[e] === void 0 || q0(r[e], n[e]) !== 0)
77113
77116
  return !1;
77114
77117
  return !0;
77115
77118
  }
@@ -77262,7 +77265,7 @@ function Kd1({
77262
77265
  switch (typeof p) {
77263
77266
  case "number": {
77264
77267
  const { group: d } = e(), u = N3({ group: d });
77265
- h = k0(p / u * 100);
77268
+ h = Z0(p / u * 100);
77266
77269
  break;
77267
77270
  }
77268
77271
  case "string": {
@@ -77683,13 +77686,13 @@ function Mc1(r) {
77683
77686
  for (const o of r)
77684
77687
  if (o.defaultSize !== void 0) {
77685
77688
  n++;
77686
- const f = k0(o.defaultSize);
77689
+ const f = Z0(o.defaultSize);
77687
77690
  e += f, c[o.panelId] = f;
77688
77691
  } else
77689
77692
  c[o.panelId] = void 0;
77690
77693
  const a = r.length - n;
77691
77694
  if (a !== 0) {
77692
- const o = k0((100 - e) / a);
77695
+ const o = Z0((100 - e) / a);
77693
77696
  for (const f of r)
77694
77697
  f.defaultSize === void 0 && (c[f.panelId] = o);
77695
77698
  }
@@ -77702,7 +77705,7 @@ function _E2(r, n, e) {
77702
77705
  if (!c || !c.onResize)
77703
77706
  return;
77704
77707
  const a = N3({ group: r }), o = r.orientation === "horizontal" ? c.element.offsetWidth : c.element.offsetHeight, f = c.mutableValues.prevSize, p = {
77705
- asPercentage: k0(o / a * 100),
77708
+ asPercentage: Z0(o / a * 100),
77706
77709
  inPixels: o
77707
77710
  };
77708
77711
  c.mutableValues.prevSize = p, c.onResize(p, c.id, f);
@@ -77825,7 +77828,7 @@ function sa(r) {
77825
77828
  const n = pu1();
77826
77829
  return `${r ?? n}`;
77827
77830
  }
77828
- const a3 = typeof window < "u" ? F0 : p1;
77831
+ const a3 = typeof window < "u" ? W0 : p1;
77829
77832
  function n4(r) {
77830
77833
  const n = i1(r);
77831
77834
  return a3(() => {
@@ -79166,7 +79169,7 @@ const dV2 = "/openmrs/auth?requested_document=/document_images/", da = (r) => r.
79166
79169
  }
79167
79170
  ) : null
79168
79171
  ] });
79169
- }, BV2 = "_formCard_pbepw_1", PV2 = "_clickable_pbepw_10", FV2 = "_disabled_pbepw_13", WV2 = "_selected_pbepw_22", jV2 = "_error_pbepw_36", UV2 = "_header_pbepw_44", qV2 = "_title_pbepw_51", GV2 = "_errorMessage_pbepw_68", KV2 = "_actionIcon_pbepw_78", G0 = {
79172
+ }, BV2 = "_formCard_pbepw_1", PV2 = "_clickable_pbepw_10", FV2 = "_disabled_pbepw_13", WV2 = "_selected_pbepw_22", jV2 = "_error_pbepw_36", UV2 = "_header_pbepw_44", qV2 = "_title_pbepw_51", GV2 = "_errorMessage_pbepw_68", KV2 = "_actionIcon_pbepw_78", K0 = {
79170
79173
  formCard: BV2,
79171
79174
  clickable: PV2,
79172
79175
  disabled: FV2,
@@ -79190,8 +79193,8 @@ const dV2 = "/openmrs/auth?requested_document=/document_images/", da = (r) => r.
79190
79193
  return /* @__PURE__ */ G(
79191
79194
  "div",
79192
79195
  {
79193
- className: W(G0.actionIcon, {
79194
- [G0.disabled]: e
79196
+ className: W(K0.actionIcon, {
79197
+ [K0.disabled]: e
79195
79198
  }),
79196
79199
  onClick: a,
79197
79200
  onKeyDown: o,
@@ -79216,7 +79219,7 @@ const dV2 = "/openmrs/auth?requested_document=/document_images/", da = (r) => r.
79216
79219
  actionIcon: c,
79217
79220
  onActionClick: a,
79218
79221
  disabled: o
79219
- }) => /* @__PURE__ */ X1("div", { className: G0.header, children: [
79222
+ }) => /* @__PURE__ */ X1("div", { className: K0.header, children: [
79220
79223
  /* @__PURE__ */ G(
79221
79224
  N4,
79222
79225
  {
@@ -79226,7 +79229,7 @@ const dV2 = "/openmrs/auth?requested_document=/document_images/", da = (r) => r.
79226
79229
  padding: D0.NONE
79227
79230
  }
79228
79231
  ),
79229
- /* @__PURE__ */ G("div", { className: G0.title, children: r }),
79232
+ /* @__PURE__ */ G("div", { className: K0.title, children: r }),
79230
79233
  c && a && /* @__PURE__ */ G(
79231
79234
  YV2,
79232
79235
  {
@@ -79269,12 +79272,12 @@ const dV2 = "/openmrs/auth?requested_document=/document_images/", da = (r) => r.
79269
79272
  p,
79270
79273
  h
79271
79274
  ), H = W(
79272
- G0.formCard,
79275
+ K0.formCard,
79273
79276
  {
79274
- [G0.disabled]: h,
79275
- [G0.selected]: d,
79276
- [G0.clickable]: V,
79277
- [G0.error]: w
79277
+ [K0.disabled]: h,
79278
+ [K0.selected]: d,
79279
+ [K0.clickable]: V,
79280
+ [K0.error]: w
79278
79281
  },
79279
79282
  u
79280
79283
  ), E = {
@@ -79305,7 +79308,7 @@ const dV2 = "/openmrs/auth?requested_document=/document_images/", da = (r) => r.
79305
79308
  disabled: h
79306
79309
  }
79307
79310
  ),
79308
- w && /* @__PURE__ */ G("div", { className: G0.errorMessage, children: w })
79311
+ w && /* @__PURE__ */ G("div", { className: K0.errorMessage, children: w })
79309
79312
  ]
79310
79313
  }
79311
79314
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bahmni/design-system",
3
- "version": "0.0.1-dev.356",
3
+ "version": "0.0.1-dev.358",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",