@sendoutcards/quantum-design-ui 2.0.3 → 2.0.4

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.
Files changed (2) hide show
  1. package/dist/index.js +243 -255
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -12918,10 +12918,10 @@ import './index.css';const A = (o) => {
12918
12918
  top: _,
12919
12919
  bottom: R,
12920
12920
  left: T,
12921
- right: W,
12921
+ right: D,
12922
12922
  justifyContent: U,
12923
12923
  alignContent: V,
12924
- alignItems: D,
12924
+ alignItems: W,
12925
12925
  flexDirection: O,
12926
12926
  flexGrow: J,
12927
12927
  flexShrink: Z,
@@ -12966,10 +12966,10 @@ import './index.css';const A = (o) => {
12966
12966
  top: _,
12967
12967
  bottom: R,
12968
12968
  left: T,
12969
- right: W,
12969
+ right: D,
12970
12970
  justifyContent: U,
12971
12971
  alignContent: V,
12972
- alignItems: D,
12972
+ alignItems: W,
12973
12973
  flexDirection: O,
12974
12974
  flexGrow: J,
12975
12975
  flexShrink: Z,
@@ -13121,10 +13121,10 @@ import './index.css';const A = (o) => {
13121
13121
  position: _,
13122
13122
  top: R,
13123
13123
  bottom: T,
13124
- left: W,
13124
+ left: D,
13125
13125
  right: U,
13126
13126
  justifyContent: V,
13127
- alignContent: D,
13127
+ alignContent: W,
13128
13128
  alignItems: O,
13129
13129
  flexDirection: J,
13130
13130
  flexGrow: Z,
@@ -13167,10 +13167,10 @@ import './index.css';const A = (o) => {
13167
13167
  z && G("minWidth", z, t.hocs.spacing),
13168
13168
  R && G("top", R, t.hocs.spacing),
13169
13169
  T && G("bottom", T, t.hocs.spacing),
13170
- W && G("left", W, t.hocs.spacing),
13170
+ D && G("left", D, t.hocs.spacing),
13171
13171
  U && G("right", U, t.hocs.spacing),
13172
13172
  V && G("justifyContent", V),
13173
- D && G("alignContent", D),
13173
+ W && G("alignContent", W),
13174
13174
  O && G("alignItems", O),
13175
13175
  J && G("flexDirection", J),
13176
13176
  Z && G("flexGrow", Z),
@@ -13323,13 +13323,13 @@ ${u.join(`
13323
13323
  ...z
13324
13324
  } = o, { text: _ } = X(), { width: R } = Lo(), T = Fe(
13325
13325
  (V) => {
13326
- const D = _.types[V];
13326
+ const W = _.types[V];
13327
13327
  return {
13328
- color: a ? _.colors[a] : D.color,
13329
- fontSize: D.size,
13330
- fontWeight: p ? _.weights[p] : D.fontWeight,
13331
- lineHeight: v ?? D.lineHeight,
13332
- fontFamily: D.fontFamily,
13328
+ color: a ? _.colors[a] : W.color,
13329
+ fontSize: W.size,
13330
+ fontWeight: p ? _.weights[p] : W.fontWeight,
13331
+ lineHeight: v ?? W.lineHeight,
13332
+ fontFamily: W.fontFamily,
13333
13333
  margin: 0,
13334
13334
  textAlign: n === "left" ? "left" : n === "center" ? "center" : "right",
13335
13335
  fontStyle: l ? "italic" : "normal",
@@ -13349,7 +13349,7 @@ ${u.join(`
13349
13349
  F,
13350
13350
  M
13351
13351
  ]
13352
- ), W = Fe(
13352
+ ), D = Fe(
13353
13353
  (V) => {
13354
13354
  const O = { ...T(V), ...H };
13355
13355
  switch (V) {
@@ -13373,8 +13373,8 @@ ${u.join(`
13373
13373
  },
13374
13374
  [T, i, r, H, z]
13375
13375
  ), U = N(
13376
- () => mh(t, W, R),
13377
- [R, W, t]
13376
+ () => mh(t, D, R),
13377
+ [R, D, t]
13378
13378
  );
13379
13379
  return /* @__PURE__ */ e(le, { children: u || s ? /* @__PURE__ */ e(B, { inset: u, outset: s, children: U }) : U });
13380
13380
  }), Jo = (o, t) => t[o], yh = (o) => Jo(o, {
@@ -14141,7 +14141,7 @@ ${u.join(`
14141
14141
  fontWeight: z,
14142
14142
  boxShadow: _ = !1
14143
14143
  }) => {
14144
- const R = X(), { buttons: T } = R, W = () => p || (d && v ? v : t === "shadow" ? "primaryBody" : t === "smoke" ? T.smoke.fontColor : d ? vh(t, {
14144
+ const R = X(), { buttons: T } = R, D = () => p || (d && v ? v : t === "shadow" ? "primaryBody" : t === "smoke" ? T.smoke.fontColor : d ? vh(t, {
14145
14145
  primary: "primaryBrand",
14146
14146
  secondary: "secondaryBrand",
14147
14147
  danger: "danger",
@@ -14150,7 +14150,7 @@ ${u.join(`
14150
14150
  shadow: "inverseBody",
14151
14151
  accent: "accent",
14152
14152
  smoke: "primaryBody"
14153
- }) : "inverseBody"), [U, V] = q(!1), D = T[t];
14153
+ }) : "inverseBody"), [U, V] = q(!1), W = T[t];
14154
14154
  return /* @__PURE__ */ c(
14155
14155
  B,
14156
14156
  {
@@ -14186,7 +14186,7 @@ ${u.join(`
14186
14186
  onClick: s ? (O) => s(O) : () => typeof r != "string" && (r == null ? void 0 : r()),
14187
14187
  style: Bh(
14188
14188
  t,
14189
- D,
14189
+ W,
14190
14190
  R,
14191
14191
  a,
14192
14192
  d,
@@ -14204,7 +14204,7 @@ ${u.join(`
14204
14204
  justifyContent: "space-around",
14205
14205
  alignItems: "center",
14206
14206
  style: Fh(t, R, a, z),
14207
- color: W(),
14207
+ color: D(),
14208
14208
  children: [
14209
14209
  H && /* @__PURE__ */ e(
14210
14210
  $,
@@ -14215,7 +14215,7 @@ ${u.join(`
14215
14215
  children: /* @__PURE__ */ e(
14216
14216
  P,
14217
14217
  {
14218
- primaryColor: H.fill ?? W(),
14218
+ primaryColor: H.fill ?? D(),
14219
14219
  size: a === "large" || a === "xLarge" ? "medium" : a,
14220
14220
  name: H.name
14221
14221
  }
@@ -14859,9 +14859,9 @@ ${u.join(`
14859
14859
  outset: R
14860
14860
  }) => {
14861
14861
  var nr;
14862
- const [T, W] = q([]), [, U] = q(!1), V = Te(null), [D, O] = q(
14862
+ const [T, D] = q([]), [, U] = q(!1), V = Te(null), [W, O] = q(
14863
14863
  ((nr = V.current) == null ? void 0 : nr.offsetHeight) || 0
14864
- ), { device: J } = Hr(), Z = J === "small" || J === "xSmall", { sheet: j } = X(), { height: ae } = Lo(), me = ae - D <= 0, Ee = {
14864
+ ), { device: J } = Hr(), Z = J === "small" || J === "xSmall", { sheet: j } = X(), { height: ae } = Lo(), me = ae - W <= 0, Ee = {
14865
14865
  visible: {
14866
14866
  scale: 1,
14867
14867
  opacity: 1,
@@ -14884,24 +14884,24 @@ ${u.join(`
14884
14884
  }
14885
14885
  }, ue = Fe(
14886
14886
  (de) => {
14887
- const ze = ae - D;
14887
+ const ze = ae - W;
14888
14888
  return ze >= 0 ? de : de < Math.abs(ze) ? Math.abs(ze) : de;
14889
14889
  },
14890
- [D, ae]
14890
+ [W, ae]
14891
14891
  ), se = Fe(
14892
14892
  (de) => {
14893
14893
  de > 100 && (de = 100);
14894
- const ze = D * (de / 100), Ke = D - ze;
14894
+ const ze = W * (de / 100), Ke = W - ze;
14895
14895
  return ue(Ke);
14896
14896
  },
14897
- [D, ue]
14898
- ), ne = ae - D < 0 ? Math.abs(ae - D) : 0, K = (de) => typeof de == "string" ? ce !== void 0 ? se(ce.percentage) : ne : typeof de == "number" && s ? se(s[de]) : ne, ce = T.find(
14897
+ [W, ue]
14898
+ ), ne = ae - W < 0 ? Math.abs(ae - W) : 0, K = (de) => typeof de == "string" ? ce !== void 0 ? se(ce.percentage) : ne : typeof de == "number" && s ? se(s[de]) : ne, ce = T.find(
14899
14899
  (de) => de.name === M ? M : u
14900
14900
  // TODO remove ternary when initialSnapPoint gets removed
14901
- ), Me = K(M || u), Be = $o(o ? ne : ae), o1 = [Me, D], X1 = so(Be, o1, [0, D]), We = so(Be, o1, [1, 0]), _1 = (de, ze) => de.reduce((Ke, Ne) => Math.abs(Ke - ze) < Math.abs(Ne - ze) ? Ke : Ne), Y1 = (de) => de instanceof HTMLElement;
14901
+ ), Me = K(M || u), Be = $o(o ? ne : ae), o1 = [Me, W], X1 = so(Be, o1, [0, W]), We = so(Be, o1, [1, 0]), _1 = (de, ze) => de.reduce((Ke, Ne) => Math.abs(Ke - ze) < Math.abs(Ne - ze) ? Ke : Ne), Y1 = (de) => de instanceof HTMLElement;
14902
14902
  et(() => {
14903
14903
  var Ke;
14904
- if (V.current && D !== ((Ke = V.current) == null ? void 0 : Ke.offsetHeight) && O(V.current.offsetHeight), !V.current)
14904
+ if (V.current && W !== ((Ke = V.current) == null ? void 0 : Ke.offsetHeight) && O(V.current.offsetHeight), !V.current)
14905
14905
  return;
14906
14906
  const de = V.current, ze = Array.from(
14907
14907
  de.getElementsByClassName("snapPoint")
@@ -14909,8 +14909,8 @@ ${u.join(`
14909
14909
  percentage: Ne.offsetTop / de.offsetHeight * 100,
14910
14910
  name: Ne.getAttribute("data-name")
14911
14911
  }));
14912
- Pt(ze, T) || W(ze);
14913
- }, [D, T, l, t]), Re(() => {
14912
+ Pt(ze, T) || D(ze);
14913
+ }, [W, T, l, t]), Re(() => {
14914
14914
  Z && Be.set(0);
14915
14915
  }, [Be, Z]);
14916
14916
  const R1 = Fe(
@@ -14939,20 +14939,20 @@ ${u.join(`
14939
14939
  (Co) => se(Co)
14940
14940
  ),
14941
14941
  Be.get()
14942
- ) : Be.get() / D > 0.4 ? D : ne;
14943
- P1(Ne, D), Dr(Be, Ne, {
14942
+ ) : Be.get() / W > 0.4 ? W : ne;
14943
+ P1(Ne, W), Dr(Be, Ne, {
14944
14944
  type: "spring",
14945
14945
  stiffness: 300,
14946
14946
  damping: 30,
14947
14947
  mass: 0.2
14948
- }), Ne >= D && (n == null || n(!1));
14949
- const De = ae - D;
14948
+ }), Ne >= W && (n == null || n(!1));
14949
+ const De = ae - W;
14950
14950
  De < 0 && Ne <= Math.abs(De) ? U(!0) : U(!1);
14951
14951
  }
14952
14952
  },
14953
14953
  [
14954
14954
  ae,
14955
- D,
14955
+ W,
14956
14956
  se,
14957
14957
  n,
14958
14958
  s,
@@ -15093,11 +15093,11 @@ ${u.join(`
15093
15093
  },
15094
15094
  inset: _,
15095
15095
  height: {
15096
- xSmall: `calc(100vh - (${D - Me}px) + 48px)`,
15096
+ xSmall: `calc(100vh - (${W - Me}px) + 48px)`,
15097
15097
  medium: "unset"
15098
15098
  },
15099
15099
  maxHeight: {
15100
- medium: `${D}px`
15100
+ medium: `${W}px`
15101
15101
  },
15102
15102
  position: "relative",
15103
15103
  zIndex: 2,
@@ -15119,7 +15119,7 @@ ${u.join(`
15119
15119
  style: { ...ar, y: Be },
15120
15120
  transition: bt,
15121
15121
  drag: a && "y",
15122
- dragConstraints: { top: 0, bottom: D },
15122
+ dragConstraints: { top: 0, bottom: W },
15123
15123
  onDrag: R1,
15124
15124
  onDragEnd: fo,
15125
15125
  dragPropagation: !0,
@@ -15128,7 +15128,7 @@ ${u.join(`
15128
15128
  y: Me,
15129
15129
  transition: { type: "tween" }
15130
15130
  },
15131
- exit: { y: D },
15131
+ exit: { y: W },
15132
15132
  dragElastic: 0.01,
15133
15133
  children: [
15134
15134
  /* @__PURE__ */ e(
@@ -15416,10 +15416,10 @@ ${u.join(`
15416
15416
  isTypingDisabled: _ = !1,
15417
15417
  width: R = 200,
15418
15418
  height: T = 50,
15419
- isPhoneInput: W = !1,
15419
+ isPhoneInput: D = !1,
15420
15420
  hasSecurePassword: U = !1,
15421
15421
  maxLength: V,
15422
- isMaxLengthHit: D,
15422
+ isMaxLengthHit: W,
15423
15423
  autoComplete: O,
15424
15424
  onMaxLengthCap: J,
15425
15425
  id: Z,
@@ -15440,8 +15440,8 @@ ${u.join(`
15440
15440
  () => Eh(Y1, We, P1, ue),
15441
15441
  [Y1, We, P1, ue]
15442
15442
  ), ir = N(
15443
- () => Wh(We, T, R1, W),
15444
- [We, T, R1, W]
15443
+ () => Wh(We, T, R1, D),
15444
+ [We, T, R1, D]
15445
15445
  ), nr = N(
15446
15446
  () => Dh(H),
15447
15447
  [H]
@@ -15630,7 +15630,7 @@ ${u.join(`
15630
15630
  }
15631
15631
  ),
15632
15632
  s && /* @__PURE__ */ e(er, { size: "medium" }),
15633
- V && i !== "number" && !D && /* @__PURE__ */ e(
15633
+ V && i !== "number" && !W && /* @__PURE__ */ e(
15634
15634
  $,
15635
15635
  {
15636
15636
  inset: { right: "x1" },
@@ -15796,11 +15796,11 @@ ${u.join(`
15796
15796
  children: _,
15797
15797
  shouldScroll: R = !1,
15798
15798
  borderRadius: T = "default",
15799
- pinned: W = "center",
15799
+ pinned: D = "center",
15800
15800
  backgroundVariant: U = "solid",
15801
15801
  footer: V,
15802
- ...D
15803
- } = o, O = W === "bottom" ? { top: T, bottom: "none" } : W === "top" ? { bottom: T, top: "none" } : T;
15802
+ ...W
15803
+ } = o, O = D === "bottom" ? { top: T, bottom: "none" } : D === "top" ? { bottom: T, top: "none" } : T;
15804
15804
  return /* @__PURE__ */ e(e1, { children: l && /* @__PURE__ */ e(
15805
15805
  Cr,
15806
15806
  {
@@ -15809,10 +15809,10 @@ ${u.join(`
15809
15809
  initial: "closed",
15810
15810
  zIndex: n,
15811
15811
  exit: "closed",
15812
- pinned: W,
15812
+ pinned: D,
15813
15813
  backgroundVariant: U,
15814
15814
  shouldScroll: R,
15815
- ...D,
15815
+ ...W,
15816
15816
  children: /* @__PURE__ */ c(
15817
15817
  B,
15818
15818
  {
@@ -15826,9 +15826,9 @@ ${u.join(`
15826
15826
  inset: F ?? a.defaultInset,
15827
15827
  outset: M ?? void 0,
15828
15828
  position: "absolute",
15829
- bottom: W === "bottom" ? 0 : void 0,
15829
+ bottom: D === "bottom" ? 0 : void 0,
15830
15830
  maxWidth: s,
15831
- maxHeight: u || (p || W === "center" ? "calc(100vh - 24px )" : void 0),
15831
+ maxHeight: u || (p || D === "center" ? "calc(100vh - 24px )" : void 0),
15832
15832
  width: (p ? "100%" : void 0) ?? z,
15833
15833
  height: H || (p ? "calc(100vh - 24px )" : void 0),
15834
15834
  children: [
@@ -15962,13 +15962,13 @@ ${u.join(`
15962
15962
  message: p,
15963
15963
  frontLabel: v,
15964
15964
  scrollBarWidth: F = "auto"
15965
- } = o, [M, H] = q(!1), [z, _] = q(!1), [R, T] = q(r), W = Te(null), U = Te(null);
15965
+ } = o, [M, H] = q(!1), [z, _] = q(!1), [R, T] = q(r), D = Te(null), U = Te(null);
15966
15966
  po(U, () => {
15967
15967
  H(!1);
15968
15968
  });
15969
15969
  const V = (K) => {
15970
15970
  H(!1), T(K), a(K);
15971
- }, { inputs: D, hocs: O } = X(), J = N(() => ({}), []), Z = N(
15971
+ }, { inputs: W, hocs: O } = X(), J = N(() => ({}), []), Z = N(
15972
15972
  () => ({
15973
15973
  "--focus-color": O.colors.swatches[u].base,
15974
15974
  "--select-height": l || "50px",
@@ -15991,7 +15991,7 @@ ${u.join(`
15991
15991
  ), me = () => {
15992
15992
  R !== void 0 && R !== r && a(R);
15993
15993
  }, Ee = (K) => {
15994
- W.current && W.current.children[K].scrollIntoView({
15994
+ D.current && D.current.children[K].scrollIntoView({
15995
15995
  behavior: "auto",
15996
15996
  block: "center"
15997
15997
  });
@@ -16057,14 +16057,14 @@ ${u.join(`
16057
16057
  className: "select-body",
16058
16058
  style: {
16059
16059
  ...Z,
16060
- border: p ? `${D.text.borderWidth} solid ${O.colors.swatches[p.type].base}` : ""
16060
+ border: p ? `${W.text.borderWidth} solid ${O.colors.swatches[p.type].base}` : ""
16061
16061
  },
16062
16062
  onClick: () => {
16063
16063
  ee(!M), R !== r && (M ? me() : T(r));
16064
16064
  },
16065
16065
  borderRadius: "default",
16066
16066
  backgroundColor: z || M ? "foreground" : "background",
16067
- boxShadow: z || M ? D.select.boxShadow : "none",
16067
+ boxShadow: z || M ? W.select.boxShadow : "none",
16068
16068
  tabIndex: 0,
16069
16069
  children: [
16070
16070
  v && /* @__PURE__ */ e(
@@ -16166,9 +16166,9 @@ ${u.join(`
16166
16166
  variants: Zh,
16167
16167
  className: "select-dropdown-contents",
16168
16168
  style: j,
16169
- backgroundColor: D.select.dropDownBackgroundColor,
16170
- borderRadius: D.select.borderRadius,
16171
- boxShadow: D.select.dropDownShadow,
16169
+ backgroundColor: W.select.dropDownBackgroundColor,
16170
+ borderRadius: W.select.borderRadius,
16171
+ boxShadow: W.select.dropDownShadow,
16172
16172
  top: s ? void 0 : "50px",
16173
16173
  bottom: s ? "50px" : void 0,
16174
16174
  zIndex: 5e4,
@@ -16179,7 +16179,7 @@ ${u.join(`
16179
16179
  orientation: "vertical",
16180
16180
  alignment: t || "center",
16181
16181
  inset: "x1",
16182
- ref: W,
16182
+ ref: D,
16183
16183
  children: [
16184
16184
  o.type === "reactNode" && o.options.map((K, ce) => /* @__PURE__ */ c(le, { children: [
16185
16185
  /* @__PURE__ */ e(
@@ -16609,7 +16609,7 @@ ${u.join(`
16609
16609
  backgroundColor: H = "#fff"
16610
16610
  }) => {
16611
16611
  var Z;
16612
- const { drawer: z } = X(), _ = t === "left" || t === "right", R = t === "top" || t === "bottom", T = (j) => j === "left" || j === "top" ? v ? -n + v : -n : v ? n - v : n, W = (j) => {
16612
+ const { drawer: z } = X(), _ = t === "left" || t === "right", R = t === "top" || t === "bottom", T = (j) => j === "left" || j === "top" ? v ? -n + v : -n : v ? n - v : n, D = (j) => {
16613
16613
  switch (j) {
16614
16614
  case "left":
16615
16615
  return [180, 360];
@@ -16624,10 +16624,10 @@ ${u.join(`
16624
16624
  U,
16625
16625
  [T(t), 0],
16626
16626
  r ? [0, 1] : [1, 1]
16627
- ), D = so(
16627
+ ), W = so(
16628
16628
  U,
16629
16629
  [T(t), 0],
16630
- W(t)
16630
+ D(t)
16631
16631
  ), O = {
16632
16632
  open: {
16633
16633
  x: 0,
@@ -16714,7 +16714,7 @@ ${u.join(`
16714
16714
  children: /* @__PURE__ */ e(
16715
16715
  Ie,
16716
16716
  {
16717
- style: { rotate: D },
16717
+ style: { rotate: W },
16718
16718
  display: "flex",
16719
16719
  justifyContent: "center",
16720
16720
  alignItems: "center",
@@ -16763,11 +16763,11 @@ ${u.join(`
16763
16763
  return z * me;
16764
16764
  },
16765
16765
  [a, t, _, z]
16766
- ), T = $o(R(o)), W = so(
16766
+ ), T = $o(R(o)), D = so(
16767
16767
  T,
16768
16768
  [0, d - F + 2],
16769
16769
  [0, 1]
16770
- ), U = so(T, [0, d / 2], [1, 0]), V = so(T, [d, d / 2], [1, 0]), D = Te(null), O = Fe(
16770
+ ), U = so(T, [0, d / 2], [1, 0]), V = so(T, [d, d / 2], [1, 0]), W = Te(null), O = Fe(
16771
16771
  (j) => t + _ * j,
16772
16772
  [t, _]
16773
16773
  ), J = Fe(
@@ -16800,7 +16800,7 @@ ${u.join(`
16800
16800
  B,
16801
16801
  {
16802
16802
  className: "slider-bar",
16803
- ref: D,
16803
+ ref: W,
16804
16804
  display: "flex",
16805
16805
  flexDirection: "row",
16806
16806
  children: l === "center" ? /* @__PURE__ */ c(le, { children: [
@@ -16835,7 +16835,7 @@ ${u.join(`
16835
16835
  {
16836
16836
  className: `slider-progress ${n ? "disabled" : "enabled"}`,
16837
16837
  backgroundColor: v.colors[i],
16838
- style: { scaleX: W },
16838
+ style: { scaleX: D },
16839
16839
  transformOrigin: "0% 50%"
16840
16840
  }
16841
16841
  )
@@ -16848,7 +16848,7 @@ ${u.join(`
16848
16848
  drag: n ? void 0 : "x",
16849
16849
  onDrag: Z,
16850
16850
  onDragEnd: Z,
16851
- dragConstraints: D,
16851
+ dragConstraints: W,
16852
16852
  dragElastic: 0,
16853
16853
  dragMomentum: !1,
16854
16854
  style: { x: T },
@@ -17112,7 +17112,7 @@ ${u.join(`
17112
17112
  ref: p,
17113
17113
  layout: !0,
17114
17114
  children: a ? /* @__PURE__ */ e(e1, { children: u.map((z, _) => {
17115
- const { hexColor: R, size: T } = z.props, W = E(R).luminosity(), U = `inset ${v.defaults.innerRing}, ${v.defaults.outerRing}`;
17115
+ const { hexColor: R, size: T } = z.props, D = E(R).luminosity(), U = `inset ${v.defaults.innerRing}, ${v.defaults.outerRing}`;
17116
17116
  return /* @__PURE__ */ c(
17117
17117
  $,
17118
17118
  {
@@ -17142,7 +17142,7 @@ ${u.join(`
17142
17142
  borderStyle: "solid",
17143
17143
  borderWidth: "default",
17144
17144
  borderColor: R,
17145
- boxShadow: W > 0.9 ? U : void 0
17145
+ boxShadow: D > 0.9 ? U : void 0
17146
17146
  }
17147
17147
  )
17148
17148
  ]
@@ -19320,14 +19320,14 @@ ${u.join(`
19320
19320
  `${y6(o)}${t ? `T${t.hour}:${t.minute}:${t.second}` : "T00:00:00"}`
19321
19321
  )
19322
19322
  ), d = () => gr(i.getFullYear(), l.getFullYear()), s = () => gr(i.getMonth(), l.getMonth()), u = () => {
19323
- const W = i.getDate(), U = l.getDate();
19324
- return gr(W, U);
19323
+ const D = i.getDate(), U = l.getDate();
19324
+ return gr(D, U);
19325
19325
  }, p = () => i.getDate() - l.getDate(), v = () => {
19326
- var W;
19326
+ var D;
19327
19327
  return p() > 1 ? {
19328
19328
  monthsRemaing: s() - 1,
19329
19329
  daysRemaining: gr(
19330
- ((W = b6(l.getMonth())) == null ? void 0 : W.dayCount) ?? 0,
19330
+ ((D = b6(l.getMonth())) == null ? void 0 : D.dayCount) ?? 0,
19331
19331
  i.getDate()
19332
19332
  ) + l.getDate(),
19333
19333
  yearsRemaining: d()
@@ -19337,18 +19337,18 @@ ${u.join(`
19337
19337
  yearsRemaining: d()
19338
19338
  };
19339
19339
  }, F = () => {
19340
- const W = +l - +i;
19340
+ const D = +l - +i;
19341
19341
  return {
19342
- hoursRemaining: Math.floor(W / (1e3 * 60 * 60) % 24),
19343
- minutesRemaining: Math.floor(W / 1e3 / 60 % 60),
19344
- secondsRemaining: Math.floor(W / 1e3 % 60)
19342
+ hoursRemaining: Math.floor(D / (1e3 * 60 * 60) % 24),
19343
+ minutesRemaining: Math.floor(D / 1e3 / 60 % 60),
19344
+ secondsRemaining: Math.floor(D / 1e3 % 60)
19345
19345
  };
19346
19346
  }, { monthsRemaing: M, daysRemaining: H, yearsRemaining: z } = v(), { hoursRemaining: _, minutesRemaining: R, secondsRemaining: T } = F();
19347
19347
  return Re(() => {
19348
- const W = setTimeout(() => {
19348
+ const D = setTimeout(() => {
19349
19349
  n(/* @__PURE__ */ new Date());
19350
19350
  }, 1e3);
19351
- return () => clearInterval(W);
19351
+ return () => clearInterval(D);
19352
19352
  }), z <= 0 && M <= 0 && H <= 0 && _ <= 0 && R <= 0 && T <= 0 ? /* @__PURE__ */ e(I, { type: "subtitle", children: r }) : /* @__PURE__ */ c(Ve, { justify: "center", gap: "x1", children: [
19353
19353
  H < 1 && z < 1 && M < 1 ? /* @__PURE__ */ c(Ve, { justify: "center", gap: "x1", children: [
19354
19354
  _ > 0 && /* @__PURE__ */ c(I, { type: O1(a), children: [
@@ -20029,7 +20029,7 @@ ${u.join(`
20029
20029
  borderRadius: t = "32px",
20030
20030
  ...a
20031
20031
  }) => {
20032
- const [r, i] = q(!1), [n, l] = q(!1), [d, s] = q(!1), u = a.status === "success" ? "success" : a.status === "warning" ? "warning" : "danger", p = o ? "primaryBody" : "inverseHeading", v = o ? "primaryBodyText" : "inverseHeadingText", F = o ? "foreground" : "#FFFFFF22", M = a.bannerTitle, H = a.children !== void 0 && a.children !== null, z = !!(M && H), _ = !!(a.isCollapsable && z), R = z && (!_ || !d), T = !!(_ || a.onClose), W = !!(M && R), U = _ && d, V = U ? {
20032
+ const [r, i] = q(!1), [n, l] = q(!1), [d, s] = q(!1), u = a.status === "success" ? "success" : a.status === "warning" ? "warning" : "danger", p = o ? "primaryBody" : "inverseHeading", v = o ? "primaryBodyText" : "inverseHeadingText", F = o ? "foreground" : "#FFFFFF22", M = a.bannerTitle, H = a.children !== void 0 && a.children !== null, z = !!(M && H), _ = !!(a.isCollapsable && z), R = z && (!_ || !d), T = !!(_ || a.onClose), D = !!(M && R), U = _ && d, V = U ? {
20033
20033
  overflow: "hidden",
20034
20034
  textOverflow: "ellipsis"
20035
20035
  } : void 0;
@@ -20047,123 +20047,111 @@ ${u.join(`
20047
20047
  swatch: u,
20048
20048
  shade: "base"
20049
20049
  } : void 0,
20050
- inset: { vertical: "x2", horizontal: "x2" },
20050
+ inset: { vertical: d ? "x1" : "x2", horizontal: "x2_5" },
20051
20051
  borderRadius: t,
20052
20052
  justifyContent: "flex-start",
20053
- alignItems: "stretch",
20054
20053
  flexDirection: "column",
20055
- rowGap: R ? "x1_5" : void 0,
20054
+ rowGap: R ? "x1" : void 0,
20056
20055
  children: [
20057
- /* @__PURE__ */ c(
20058
- $,
20059
- {
20060
- width: "100%",
20061
- minWidth: "0",
20062
- alignItems: W ? "flex-start" : "center",
20063
- columnGap: "x1",
20064
- children: [
20065
- M ? /* @__PURE__ */ c(
20066
- $,
20067
- {
20068
- width: "100%",
20069
- minWidth: "0",
20070
- alignItems: W ? "flex-start" : "center",
20071
- columnGap: "x1",
20072
- children: [
20073
- M.icon && /* @__PURE__ */ e(
20074
- $,
20075
- {
20076
- justifyContent: "center",
20077
- alignItems: "center",
20078
- flexShrink: 0,
20079
- inset: W ? { top: "2px" } : void 0,
20080
- children: /* @__PURE__ */ e(P, { name: M.icon, size: "small", primaryColor: v })
20081
- }
20082
- ),
20083
- /* @__PURE__ */ e($, { width: "100%", minWidth: "0", children: /* @__PURE__ */ e(
20084
- I,
20085
- {
20086
- content: M.message,
20087
- color: p,
20088
- type: { xSmall: "footnote", small: "caption" },
20089
- weight: z ? "semiBold" : void 0,
20090
- whiteSpace: U ? "nowrap" : void 0,
20091
- style: V
20092
- }
20093
- ) })
20094
- ]
20095
- }
20096
- ) : /* @__PURE__ */ e($, { width: "100%", minWidth: "0", alignItems: "center", children: a.children }),
20097
- T && /* @__PURE__ */ c(
20098
- $,
20099
- {
20100
- alignItems: W ? "flex-start" : "center",
20101
- flexShrink: 0,
20102
- columnGap: "x_5",
20103
- inset: W ? { top: "2px" } : void 0,
20104
- children: [
20105
- _ && /* @__PURE__ */ e(
20106
- $,
20107
- {
20108
- onClick: () => s((D) => !D),
20109
- width: "40px",
20110
- height: "40px",
20111
- justifyContent: "center",
20112
- alignItems: "center",
20113
- cursor: "pointer",
20114
- backgroundColor: n ? F : void 0,
20115
- borderRadius: "circle",
20116
- onHoverStart: () => l(!0),
20117
- onHoverEnd: () => l(!1),
20118
- children: /* @__PURE__ */ e(
20119
- P,
20120
- {
20121
- name: d ? "rightChevron" : "chevron",
20122
- orientation: d ? void 0 : "up",
20123
- primaryColor: v,
20124
- size: "xSmall"
20125
- }
20126
- )
20127
- }
20128
- ),
20129
- a.onClose && /* @__PURE__ */ e(
20130
- $,
20056
+ /* @__PURE__ */ c($, { width: "100%", minWidth: "0", alignItems: "center", columnGap: "x1", children: [
20057
+ M ? /* @__PURE__ */ c(
20058
+ $,
20059
+ {
20060
+ width: "100%",
20061
+ minWidth: "0",
20062
+ alignItems: D ? "flex-start" : "center",
20063
+ columnGap: "x1",
20064
+ children: [
20065
+ M.icon && /* @__PURE__ */ e(
20066
+ $,
20067
+ {
20068
+ justifyContent: "center",
20069
+ alignItems: "center",
20070
+ flexShrink: 0,
20071
+ inset: D ? { top: "2px" } : void 0,
20072
+ children: /* @__PURE__ */ e(
20073
+ P,
20131
20074
  {
20132
- justifyContent: "flex-end",
20133
- alignItems: "center",
20134
- flexShrink: 0,
20135
- onHoverStart: () => i(!0),
20136
- onHoverEnd: () => i(!1),
20137
- children: /* @__PURE__ */ e(
20138
- $,
20139
- {
20140
- onClick: a.onClose,
20141
- width: "40px",
20142
- height: "40px",
20143
- justifyContent: "center",
20144
- alignItems: "center",
20145
- cursor: "pointer",
20146
- backgroundColor: r ? F : void 0,
20147
- borderRadius: "circle",
20148
- children: /* @__PURE__ */ e(P, { primaryColor: v, size: "xSmall", name: "close" })
20149
- }
20150
- )
20075
+ name: M.icon,
20076
+ size: "small",
20077
+ primaryColor: v
20151
20078
  }
20152
20079
  )
20153
- ]
20154
- }
20155
- )
20156
- ]
20157
- }
20158
- ),
20080
+ }
20081
+ ),
20082
+ /* @__PURE__ */ e($, { width: "100%", minWidth: "0", children: /* @__PURE__ */ e(
20083
+ I,
20084
+ {
20085
+ content: M.message,
20086
+ color: p,
20087
+ type: { xSmall: "footnote", small: "caption" },
20088
+ weight: z ? "semiBold" : void 0,
20089
+ whiteSpace: U ? "nowrap" : void 0,
20090
+ style: V
20091
+ }
20092
+ ) })
20093
+ ]
20094
+ }
20095
+ ) : /* @__PURE__ */ e($, { width: "100%", minWidth: "0", alignItems: "center", children: a.children }),
20096
+ T && /* @__PURE__ */ c($, { alignItems: "center", flexShrink: 0, columnGap: "x_5", children: [
20097
+ _ && /* @__PURE__ */ e(
20098
+ $,
20099
+ {
20100
+ onClick: () => s((W) => !W),
20101
+ width: "24px",
20102
+ height: "24px",
20103
+ justifyContent: "center",
20104
+ alignItems: "center",
20105
+ cursor: "pointer",
20106
+ backgroundColor: n ? F : void 0,
20107
+ borderRadius: "circle",
20108
+ onHoverStart: () => l(!0),
20109
+ onHoverEnd: () => l(!1),
20110
+ children: /* @__PURE__ */ e(
20111
+ P,
20112
+ {
20113
+ name: d ? "rightChevron" : "chevron",
20114
+ orientation: d ? void 0 : "up",
20115
+ primaryColor: v,
20116
+ size: "xSmall"
20117
+ }
20118
+ )
20119
+ }
20120
+ ),
20121
+ a.onClose && /* @__PURE__ */ e(
20122
+ $,
20123
+ {
20124
+ justifyContent: "flex-end",
20125
+ alignItems: "center",
20126
+ flexShrink: 0,
20127
+ onHoverStart: () => i(!0),
20128
+ onHoverEnd: () => i(!1),
20129
+ children: /* @__PURE__ */ e(
20130
+ $,
20131
+ {
20132
+ onClick: a.onClose,
20133
+ width: "24px",
20134
+ height: "24px",
20135
+ justifyContent: "center",
20136
+ alignItems: "center",
20137
+ cursor: "pointer",
20138
+ backgroundColor: r ? F : void 0,
20139
+ borderRadius: "circle",
20140
+ children: /* @__PURE__ */ e(P, { primaryColor: v, size: 12, name: "close" })
20141
+ }
20142
+ )
20143
+ }
20144
+ )
20145
+ ] })
20146
+ ] }),
20159
20147
  R && M && /* @__PURE__ */ e(
20160
20148
  $,
20161
20149
  {
20162
20150
  width: "100%",
20163
20151
  minWidth: "0",
20164
20152
  inset: {
20165
- left: M.icon ? "x3" : "x0",
20166
- right: "x0"
20153
+ left: "x1",
20154
+ right: "x1"
20167
20155
  },
20168
20156
  children: a.children
20169
20157
  }
@@ -21163,7 +21151,7 @@ ${u.join(`
21163
21151
  quickLinks: p,
21164
21152
  isFullScreen: v
21165
21153
  }) => {
21166
- const F = window.innerWidth, [M, H] = q(!1), [z, _] = q(!1), [R, T] = q(Qr(F)), [W, U] = q(!1), V = $o(0), D = A6(), O = Te(null), J = () => {
21154
+ const F = window.innerWidth, [M, H] = q(!1), [z, _] = q(!1), [R, T] = q(Qr(F)), [D, U] = q(!1), V = $o(0), W = A6(), O = Te(null), J = () => {
21167
21155
  H(!M);
21168
21156
  }, Z = d || 250, j = R === "xSmall", ae = ie.useCallback(() => {
21169
21157
  const ee = Qr(window.innerWidth);
@@ -21176,12 +21164,12 @@ ${u.join(`
21176
21164
  () => ({
21177
21165
  position: "fixed",
21178
21166
  width: "100%",
21179
- height: `${D}px`,
21167
+ height: `${W}px`,
21180
21168
  overflow: "hidden",
21181
21169
  boxShadow: "0 3px 6px 0 #ccc",
21182
21170
  zIndex: 0
21183
21171
  }),
21184
- [D]
21172
+ [W]
21185
21173
  ), Ee = N(
21186
21174
  () => ({
21187
21175
  width: `${Z}px`,
@@ -21201,7 +21189,7 @@ ${u.join(`
21201
21189
  v ? /* @__PURE__ */ e(le, {}) : j ? /* @__PURE__ */ e(
21202
21190
  F6,
21203
21191
  {
21204
- isSheetOpen: W,
21192
+ isSheetOpen: D,
21205
21193
  setSheetIsOpen: U,
21206
21194
  accountRouteOnClick: u,
21207
21195
  circleSize: 70,
@@ -21333,7 +21321,7 @@ ${u.join(`
21333
21321
  /* @__PURE__ */ e(
21334
21322
  Ct,
21335
21323
  {
21336
- isOpen: W,
21324
+ isOpen: D,
21337
21325
  setIsOpen: U,
21338
21326
  draggable: !0,
21339
21327
  layer: 3,
@@ -21453,12 +21441,12 @@ ${u.join(`
21453
21441
  ), M = (z, _) => {
21454
21442
  const R = z.substring(0, o - _);
21455
21443
  R.length > 0 && d(Math.min(_ + R.length, o - 1));
21456
- const T = R.length > 0 ? R : [""], W = [
21444
+ const T = R.length > 0 ? R : [""], D = [
21457
21445
  ...s.slice(0, _),
21458
21446
  ...T,
21459
21447
  ...s.slice(_ + 1, s.length - (T.length - 1))
21460
- ], U = W.join("");
21461
- t(U), U.length === o && r && r(U), u(W);
21448
+ ], U = D.join("");
21449
+ t(U), U.length === o && r && r(U), u(D);
21462
21450
  }, H = (z) => {
21463
21451
  z > 0 && d(z - 1);
21464
21452
  };
@@ -22473,10 +22461,10 @@ ${u.join(`
22473
22461
  const u = ie.Children.toArray(l), p = Math.round(
22474
22462
  a / u.length * 100
22475
22463
  ), v = u.sort(
22476
- (W, U) => W.props.order && U.props.order ? W.props.order > U.props.order ? 1 : -1 : 1
22477
- ), F = (W) => {
22478
- r(a + W);
22479
- }, M = (W) => {
22464
+ (D, U) => D.props.order && U.props.order ? D.props.order > U.props.order ? 1 : -1 : 1
22465
+ ), F = (D) => {
22466
+ r(a + D);
22467
+ }, M = (D) => {
22480
22468
  a + 1 === u.length && T(!0), R ? i() : t(!1);
22481
22469
  }, H = () => {
22482
22470
  if (a + 1 === u.length) {
@@ -22595,7 +22583,7 @@ ${u.join(`
22595
22583
  isSelected: _ = !1,
22596
22584
  isFullLength: R = !1
22597
22585
  }) => {
22598
- const { hocs: T } = X(), W = (Z) => {
22586
+ const { hocs: T } = X(), D = (Z) => {
22599
22587
  switch (Z) {
22600
22588
  case "primaryBody":
22601
22589
  return "primaryBodyText";
@@ -22625,7 +22613,7 @@ ${u.join(`
22625
22613
  }, V = (Z) => {
22626
22614
  const j = Z;
22627
22615
  return j.feature !== void 0 && j.subFeatures !== void 0;
22628
- }, D = n ? l.textColor === "white" ? "inverseBody" : "primaryBody" : d === "white" ? "inverseBody" : "primaryBody", [O, J] = q(!1);
22616
+ }, W = n ? l.textColor === "white" ? "inverseBody" : "primaryBody" : d === "white" ? "inverseBody" : "primaryBody", [O, J] = q(!1);
22629
22617
  return /* @__PURE__ */ e(
22630
22618
  $,
22631
22619
  {
@@ -22667,13 +22655,13 @@ ${u.join(`
22667
22655
  content: o
22668
22656
  }
22669
22657
  ),
22670
- /* @__PURE__ */ e(I, { lineHeight: 1.5, type: "caption", color: D, children: s ?? M }),
22658
+ /* @__PURE__ */ e(I, { lineHeight: 1.5, type: "caption", color: W, children: s ?? M }),
22671
22659
  /* @__PURE__ */ c($, { width: "100%", alignItems: "center", children: [
22672
22660
  t && /* @__PURE__ */ e(
22673
22661
  I,
22674
22662
  {
22675
22663
  type: { xSmall: "subtitle", medium: "title" },
22676
- color: D,
22664
+ color: W,
22677
22665
  weight: "bold",
22678
22666
  content: t
22679
22667
  }
@@ -22684,7 +22672,7 @@ ${u.join(`
22684
22672
  I,
22685
22673
  {
22686
22674
  type: { xSmall: "footnote", medium: "caption" },
22687
- color: D,
22675
+ color: W,
22688
22676
  children: u
22689
22677
  }
22690
22678
  ) })
@@ -22706,7 +22694,7 @@ ${u.join(`
22706
22694
  I,
22707
22695
  {
22708
22696
  type: { xSmall: "caption", medium: "body" },
22709
- color: D,
22697
+ color: W,
22710
22698
  children: p
22711
22699
  }
22712
22700
  )
@@ -22723,7 +22711,7 @@ ${u.join(`
22723
22711
  {
22724
22712
  name: V(Z) && (Z != null && Z.isNotIncluded) ? "closeCircle" : "check",
22725
22713
  size: "xSmall",
22726
- primaryColor: W(
22714
+ primaryColor: D(
22727
22715
  n ? l.accentColor : r
22728
22716
  )
22729
22717
  }
@@ -22741,7 +22729,7 @@ ${u.join(`
22741
22729
  I,
22742
22730
  {
22743
22731
  type: { xSmall: "caption", medium: "body" },
22744
- color: D,
22732
+ color: W,
22745
22733
  weight: "bold",
22746
22734
  children: Z.feature
22747
22735
  }
@@ -22764,7 +22752,7 @@ ${u.join(`
22764
22752
  top: "0",
22765
22753
  bottom: "0"
22766
22754
  },
22767
- children: /* @__PURE__ */ e(I, { color: D, type: "body", children: ae })
22755
+ children: /* @__PURE__ */ e(I, { color: W, type: "body", children: ae })
22768
22756
  },
22769
22757
  me
22770
22758
  ))
@@ -22776,7 +22764,7 @@ ${u.join(`
22776
22764
  I,
22777
22765
  {
22778
22766
  type: { xSmall: "caption", medium: "body" },
22779
- color: D,
22767
+ color: W,
22780
22768
  weight: "bold",
22781
22769
  children: Z
22782
22770
  }
@@ -23192,9 +23180,9 @@ const vr = {
23192
23180
  menuDropdownLinks: d
23193
23181
  }) => {
23194
23182
  const [s, u] = q(0), [p, v] = q(!1), [F, M] = ie.useState(!1), { device: H } = Hr(), { ref: z, height: _ } = Go(), { hocs: R } = X(), T = (V) => {
23195
- const D = V;
23196
- return D.linkColumns !== void 0 && D.title !== void 0;
23197
- }, W = ["xSmall", "small", "medium"].includes(H), U = N(
23183
+ const W = V;
23184
+ return W.linkColumns !== void 0 && W.title !== void 0;
23185
+ }, D = ["xSmall", "small", "medium"].includes(H), U = N(
23198
23186
  () => ({
23199
23187
  backdropFilter: l ? "blur(10px)" : "none",
23200
23188
  background: l ? "rgba(255, 255, 255, 0.7)" : R.colors.foreground
@@ -23214,7 +23202,7 @@ const vr = {
23214
23202
  inset: { horizontal: "x3" },
23215
23203
  zIndex: r,
23216
23204
  children: [
23217
- a && W && /* @__PURE__ */ e(B, { children: /* @__PURE__ */ e(
23205
+ a && D && /* @__PURE__ */ e(B, { children: /* @__PURE__ */ e(
23218
23206
  No,
23219
23207
  {
23220
23208
  size: p ? "xSmall" : "small",
@@ -23222,7 +23210,7 @@ const vr = {
23222
23210
  onClick: () => v(!p)
23223
23211
  }
23224
23212
  ) }),
23225
- !a && !W && /* @__PURE__ */ e("div", {}),
23213
+ !a && !D && /* @__PURE__ */ e("div", {}),
23226
23214
  /* @__PURE__ */ c($, { alignItems: "center", flexDirection: "row", columnGap: "x1", children: [
23227
23215
  d && /* @__PURE__ */ c(B, { maxWidth: "300px", children: [
23228
23216
  /* @__PURE__ */ e(
@@ -23276,18 +23264,18 @@ const vr = {
23276
23264
  ] }),
23277
23265
  ie.isValidElement(t) ? t : /* @__PURE__ */ e(p6, { ...t })
23278
23266
  ] }),
23279
- a && !W && /* @__PURE__ */ e(
23267
+ a && !D && /* @__PURE__ */ e(
23280
23268
  $,
23281
23269
  {
23282
23270
  height: "100%",
23283
23271
  width: "100%",
23284
23272
  alignItems: "center",
23285
23273
  justifyContent: "center",
23286
- children: a && a.map((V, D) => /* @__PURE__ */ e(B, { inset: { horizontal: H === "large" ? "x1" : "x2" }, children: "href" in V && typeof V.title == "string" ? /* @__PURE__ */ e(
23274
+ children: a && a.map((V, W) => /* @__PURE__ */ e(B, { inset: { horizontal: H === "large" ? "x1" : "x2" }, children: "href" in V && typeof V.title == "string" ? /* @__PURE__ */ e(
23287
23275
  Yr,
23288
23276
  {
23289
23277
  title: V.title,
23290
- isActive: s === D && p,
23278
+ isActive: s === W && p,
23291
23279
  href: V.href,
23292
23280
  target: V.target
23293
23281
  }
@@ -23295,18 +23283,18 @@ const vr = {
23295
23283
  B,
23296
23284
  {
23297
23285
  onHoverStart: () => {
23298
- v(!0), u(D);
23286
+ v(!0), u(W);
23299
23287
  },
23300
- onClick: () => p ? v(!1) : (v(!0), u(D)),
23288
+ onClick: () => p ? v(!1) : (v(!0), u(W)),
23301
23289
  children: /* @__PURE__ */ e(
23302
23290
  Yr,
23303
23291
  {
23304
23292
  title: V.title,
23305
- isActive: s === D && p
23293
+ isActive: s === W && p
23306
23294
  }
23307
23295
  )
23308
23296
  },
23309
- D
23297
+ W
23310
23298
  ) : /* @__PURE__ */ e(
23311
23299
  _e,
23312
23300
  {
@@ -23330,17 +23318,17 @@ const vr = {
23330
23318
  width: "100%",
23331
23319
  zIndex: r - 1,
23332
23320
  onHoverEnd: () => v(!1),
23333
- children: !W && /* @__PURE__ */ e(
23321
+ children: !D && /* @__PURE__ */ e(
23334
23322
  St,
23335
23323
  {
23336
- isOpen: p && !W,
23324
+ isOpen: p && !D,
23337
23325
  location: "top",
23338
23326
  onClick: () => v(!1),
23339
23327
  openValue: i || ((_ && _ + 64 < 248 ? 248 : _ && _ + 64) ?? 280),
23340
23328
  isTabHidden: !0,
23341
23329
  showTab: !1,
23342
23330
  zIndex: 10,
23343
- children: /* @__PURE__ */ e(B, { outset: "x3", ref: z, children: a && a.map((V, D) => s === D && /* @__PURE__ */ c(
23331
+ children: /* @__PURE__ */ e(B, { outset: "x3", ref: z, children: a && a.map((V, W) => s === W && /* @__PURE__ */ c(
23344
23332
  Ve,
23345
23333
  {
23346
23334
  gap: "x9",
@@ -23386,13 +23374,13 @@ const vr = {
23386
23374
  ) }, J))
23387
23375
  ]
23388
23376
  },
23389
- D
23377
+ W
23390
23378
  )) })
23391
23379
  }
23392
23380
  )
23393
23381
  }
23394
23382
  ),
23395
- a && W && /* @__PURE__ */ e(
23383
+ a && D && /* @__PURE__ */ e(
23396
23384
  B,
23397
23385
  {
23398
23386
  height: `calc(100% - ${n}px)`,
@@ -24149,10 +24137,10 @@ const vr = {
24149
24137
  var T;
24150
24138
  H(!1), (T = z.current) == null || T.click();
24151
24139
  }, R = (T) => {
24152
- const W = T.target.files;
24153
- if (W) {
24154
- const U = Array.from(W);
24155
- a({ accepted: U, rejected: [] }, W);
24140
+ const D = T.target.files;
24141
+ if (D) {
24142
+ const U = Array.from(D);
24143
+ a({ accepted: U, rejected: [] }, D);
24156
24144
  }
24157
24145
  };
24158
24146
  return /* @__PURE__ */ e(e1, { children: n && /* @__PURE__ */ c(
@@ -24240,7 +24228,7 @@ const vr = {
24240
24228
  initial: { opacity: 0 },
24241
24229
  animate: { opacity: 1 },
24242
24230
  exit: { opacity: 0 },
24243
- children: d == null ? void 0 : d.map((T, W) => /* @__PURE__ */ e(
24231
+ children: d == null ? void 0 : d.map((T, D) => /* @__PURE__ */ e(
24244
24232
  U1,
24245
24233
  {
24246
24234
  gridColSpan: 2,
@@ -24257,7 +24245,7 @@ const vr = {
24257
24245
  }
24258
24246
  ) })
24259
24247
  },
24260
- W
24248
+ D
24261
24249
  ))
24262
24250
  }
24263
24251
  )
@@ -25078,7 +25066,7 @@ const vr = {
25078
25066
  top: "-100%",
25079
25067
  transition: { duration: 0 }
25080
25068
  });
25081
- }, W = async () => {
25069
+ }, D = async () => {
25082
25070
  _.start({
25083
25071
  width: "0%"
25084
25072
  }), await M.start({
@@ -25092,13 +25080,13 @@ const vr = {
25092
25080
  }, U = async (V) => {
25093
25081
  if (V.preventDefault(), V.target.files == null)
25094
25082
  return;
25095
- const D = V.target.files[0];
25083
+ const W = V.target.files[0];
25096
25084
  if (a) {
25097
- F(!0), await R(), a(D);
25085
+ F(!0), await R(), a(W);
25098
25086
  const O = new FileReader();
25099
25087
  O.onloadend = () => {
25100
25088
  p(O.result);
25101
- }, await T(), O.readAsDataURL(D), await W(), F(!1);
25089
+ }, await T(), O.readAsDataURL(W), await D(), F(!1);
25102
25090
  } else
25103
25091
  p(null);
25104
25092
  };
@@ -25393,7 +25381,7 @@ const vr = {
25393
25381
  inset: R,
25394
25382
  outset: T
25395
25383
  }) => {
25396
- const [W, U] = ie.useState(""), { ref: V, height: D } = Go(), O = (ae) => a.find((me) => me.optionId === ae), J = O(F), Z = O(W), { height: j } = Lo();
25384
+ const [D, U] = ie.useState(""), { ref: V, height: W } = Go(), O = (ae) => a.find((me) => me.optionId === ae), J = O(F), Z = O(D), { height: j } = Lo();
25397
25385
  return /* @__PURE__ */ e(
25398
25386
  Ct,
25399
25387
  {
@@ -25424,7 +25412,7 @@ const vr = {
25424
25412
  removeSelectedOption: M,
25425
25413
  children: p
25426
25414
  }
25427
- ) : W && (Z != null && Z.expandedChild) ? /* @__PURE__ */ c(
25415
+ ) : D && (Z != null && Z.expandedChild) ? /* @__PURE__ */ c(
25428
25416
  B,
25429
25417
  {
25430
25418
  width: "100%",
@@ -25489,7 +25477,7 @@ const vr = {
25489
25477
  alignment: "center"
25490
25478
  }
25491
25479
  ),
25492
- D && D >= j && /* @__PURE__ */ e(_h, { name: "description" }),
25480
+ W && W >= j && /* @__PURE__ */ e(_h, { name: "description" }),
25493
25481
  /* @__PURE__ */ e(pe, { space: "x2" }),
25494
25482
  /* @__PURE__ */ e(
25495
25483
  e8,
@@ -25657,11 +25645,11 @@ const vr = {
25657
25645
  hasIncrement: _,
25658
25646
  isConfigurable: R,
25659
25647
  disableMessage: T,
25660
- sliderOrientation: W,
25648
+ sliderOrientation: D,
25661
25649
  sliderImage: U,
25662
25650
  secondaryAction: V
25663
25651
  }) => {
25664
- const [D, O] = ie.useState(!1), [J, Z] = ie.useState(!1), j = () => {
25652
+ const [W, O] = ie.useState(!1), [J, Z] = ie.useState(!1), j = () => {
25665
25653
  v.forEach(
25666
25654
  (ee) => ee.setActiveConfigurationId("")
25667
25655
  ), M(!1);
@@ -25678,7 +25666,7 @@ const vr = {
25678
25666
  }
25679
25667
  };
25680
25668
  return /* @__PURE__ */ c($, { inset: "x3", flexDirection: { xSmall: "column", large: "row" }, children: [
25681
- D && H ? /* @__PURE__ */ e(
25669
+ W && H ? /* @__PURE__ */ e(
25682
25670
  Xr,
25683
25671
  {
25684
25672
  title: H == null ? void 0 : H.title,
@@ -25687,14 +25675,14 @@ const vr = {
25687
25675
  accept: {
25688
25676
  title: H.accept.title,
25689
25677
  onClick: () => {
25690
- M(!0), O(!D), H.accept.onClick();
25678
+ M(!0), O(!W), H.accept.onClick();
25691
25679
  }
25692
25680
  },
25693
25681
  decline: {
25694
25682
  title: "Cancel",
25695
25683
  onClick: () => {
25696
25684
  var ee;
25697
- O(!D), (ee = H.decline) == null || ee.onClick();
25685
+ O(!W), (ee = H.decline) == null || ee.onClick();
25698
25686
  }
25699
25687
  },
25700
25688
  requireScroll: !1
@@ -25860,7 +25848,7 @@ const vr = {
25860
25848
  sliderFill: n,
25861
25849
  hasIncrement: _,
25862
25850
  cardImage: U,
25863
- cardOrientation: W,
25851
+ cardOrientation: D,
25864
25852
  secondaryAction: V
25865
25853
  }
25866
25854
  ),
@@ -26085,7 +26073,7 @@ const vr = {
26085
26073
  checkoutDescription: r,
26086
26074
  selectableOptions: i,
26087
26075
  selectedOption: p,
26088
- handleSelectedOption: (W) => H(W),
26076
+ handleSelectedOption: (D) => H(D),
26089
26077
  removeSelectedOption: v,
26090
26078
  upsaleContentTitle: n,
26091
26079
  upsaleContent: /* @__PURE__ */ e(
@@ -26229,10 +26217,10 @@ const vr = {
26229
26217
  successComponent: _,
26230
26218
  upsaleContentTitle: R,
26231
26219
  sponsorId: T = "9070",
26232
- extraLink: W,
26220
+ extraLink: D,
26233
26221
  defaultNumOptionsShown: U,
26234
26222
  submitAction: V,
26235
- acceptSelectedAction: D,
26223
+ acceptSelectedAction: W,
26236
26224
  shouldHideSendFreeCard: O,
26237
26225
  upsaleBanner: J,
26238
26226
  checkoutOnly: Z
@@ -26242,7 +26230,7 @@ const vr = {
26242
26230
  ), { ref: me, width: Ee, height: ee } = Go(), ue = O ? "120px" : "170px", se = Lo().width, ne = se <= 910, ce = ((Be) => i.filter(
26243
26231
  (o1) => o1.optionId === Be
26244
26232
  ))(u), Me = () => {
26245
- ae(!0), D == null || D.onClick();
26233
+ ae(!0), W == null || W.onClick();
26246
26234
  };
26247
26235
  return /* @__PURE__ */ e(
26248
26236
  wr,
@@ -26329,9 +26317,9 @@ const vr = {
26329
26317
  handleShouldShowCheckoutView: (Be) => ae(Be),
26330
26318
  activeSelectedOption: ce[0],
26331
26319
  extraLink: {
26332
- title: W == null ? void 0 : W.title,
26333
- onClick: W == null ? void 0 : W.onClick,
26334
- href: W == null ? void 0 : W.href
26320
+ title: D == null ? void 0 : D.title,
26321
+ onClick: D == null ? void 0 : D.onClick,
26322
+ href: D == null ? void 0 : D.href
26335
26323
  },
26336
26324
  defaultNumOptionsShown: U,
26337
26325
  submitAction: V,
@@ -26357,7 +26345,7 @@ const vr = {
26357
26345
  type: "primary",
26358
26346
  size: "large",
26359
26347
  fullWidth: !0,
26360
- title: (D == null ? void 0 : D.title) ?? "Continue to Checkout",
26348
+ title: (W == null ? void 0 : W.title) ?? "Continue to Checkout",
26361
26349
  disabled: !u.length,
26362
26350
  onClick: Me
26363
26351
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sendoutcards/quantum-design-ui",
3
- "version": "2.0.3",
3
+ "version": "2.0.4",
4
4
  "type": "module",
5
5
  "description": "UI component library for Quantum Design System",
6
6
  "module": "dist/index.js",