ctc-component-library 0.1.76 → 0.1.77

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -722,16 +722,16 @@ var ap = { exports: {} };
722
722
  })();
723
723
  })(ap);
724
724
  var Ix = ap.exports;
725
- const J = /* @__PURE__ */ so(Ix), _x = "p", ln = Ln(
725
+ const J = /* @__PURE__ */ so(Ix), _x = "p", rn = Ln(
726
726
  ({
727
727
  variant: e,
728
728
  customStyles: t,
729
- className: n = "",
730
- underline: r = !1,
731
- dataTestid: o = "typography-test-id",
732
- asTag: a,
733
- children: i,
734
- bolder: l,
729
+ underline: n = !1,
730
+ dataTestid: r = "typography-test-id",
731
+ asTag: o = _x,
732
+ children: a,
733
+ bolder: i,
734
+ className: l,
735
735
  ...c
736
736
  }, u) => {
737
737
  const f = {
@@ -740,28 +740,30 @@ const J = /* @__PURE__ */ so(Ix), _x = "p", ln = Ln(
740
740
  h3: "h3",
741
741
  h4: "h4",
742
742
  h5: "h5"
743
- }[e] || a || _x;
743
+ }[e] || o;
744
744
  return /* @__PURE__ */ fe.jsx(
745
745
  f,
746
746
  {
747
747
  ref: u,
748
- "data-testid": o,
748
+ "data-testid": r,
749
749
  className: J(
750
750
  "typography",
751
751
  `typography--${e}`,
752
752
  {
753
- "typography--underline": r,
754
- "typography--bolder": l
753
+ "typography--underline": n,
754
+ "typography--bolder": i
755
755
  },
756
- n
756
+ l
757
757
  ),
758
758
  style: t,
759
759
  ...c,
760
- children: i
760
+ children: a
761
761
  }
762
762
  );
763
763
  }
764
- ), lV = ({
764
+ );
765
+ rn.displayName = "Typography";
766
+ const lV = ({
765
767
  type: e,
766
768
  icon: t,
767
769
  text: n,
@@ -810,7 +812,7 @@ const J = /* @__PURE__ */ so(Ix), _x = "p", ln = Ln(
810
812
  iconName: d[r]
811
813
  }
812
814
  ),
813
- o !== "dot" && /* @__PURE__ */ fe.jsx("span", { className: "badge__text", children: /* @__PURE__ */ fe.jsxs(ln, { variant: p, children: [
815
+ o !== "dot" && /* @__PURE__ */ fe.jsx("span", { className: "badge__text", children: /* @__PURE__ */ fe.jsxs(rn, { variant: p, children: [
814
816
  h || "",
815
817
  " "
816
818
  ] }) })
@@ -870,7 +872,7 @@ const Kf = ({
870
872
  }
871
873
  ),
872
874
  n && /* @__PURE__ */ fe.jsx("span", { className: "btn__text", children: /* @__PURE__ */ fe.jsx(
873
- ln,
875
+ rn,
874
876
  {
875
877
  underline: l,
876
878
  variant: h[g],
@@ -925,7 +927,7 @@ const tc = (e) => ({
925
927
  ) : null, p = (v) => v ? l ? g() : Wf(v, tc(e)) : null, h = () => {
926
928
  const v = n || r, b = typeof i == "string";
927
929
  return l && !v ? g() : c ? Wf(i, tc(e)) : b ? /* @__PURE__ */ fe.jsx(
928
- ln,
930
+ rn,
929
931
  {
930
932
  variant: Px(e),
931
933
  className: "btn__text",
@@ -971,7 +973,7 @@ const sV = ({
971
973
  "data-testid": o,
972
974
  style: { backgroundColor: n },
973
975
  className: `avatar ${r}`,
974
- children: /* @__PURE__ */ fe.jsx(ln, { customStyles: { color: t }, variant: "body2", children: e })
976
+ children: /* @__PURE__ */ fe.jsx(rn, { customStyles: { color: t }, variant: "body2", children: e })
975
977
  }
976
978
  );
977
979
  function ye() {
@@ -5041,7 +5043,7 @@ const la = {
5041
5043
  color: e.colorLinkActive
5042
5044
  }
5043
5045
  }), {
5044
- genStyleHooks: rn,
5046
+ genStyleHooks: on,
5045
5047
  genComponentStyleHook: _E,
5046
5048
  genSubStyleComponent: Xl
5047
5049
  } = SE({
@@ -7793,7 +7795,7 @@ const os = Yh, RN = (e) => {
7793
7795
  }
7794
7796
  }
7795
7797
  };
7796
- }, Xh = rn("Space", (e) => {
7798
+ }, Xh = on("Space", (e) => {
7797
7799
  const t = Ft(e, {
7798
7800
  spaceGapSmallSize: e.paddingXS,
7799
7801
  spaceGapMiddleSize: e.padding,
@@ -9534,7 +9536,7 @@ const ci = ib, gO = (e) => ({
9534
9536
  }
9535
9537
  }
9536
9538
  };
9537
- }, uI = rn("Button", (e) => {
9539
+ }, uI = on("Button", (e) => {
9538
9540
  const t = sb(e);
9539
9541
  return [
9540
9542
  // Shared
@@ -12836,7 +12838,7 @@ const A_ = () => Tn() && window.document.documentElement, L_ = (e) => {
12836
12838
  paragraphMarginTop: e.marginLG + e.marginXXS,
12837
12839
  paragraphLiHeight: e.controlHeight / 2
12838
12840
  };
12839
- }, ga = rn("Skeleton", (e) => {
12841
+ }, ga = on("Skeleton", (e) => {
12840
12842
  const {
12841
12843
  componentCls: t,
12842
12844
  calc: n
@@ -13288,7 +13290,7 @@ const Ob = (e) => {
13288
13290
  }, Ju = (e, t) => CP(e, t), SP = (e, t, n) => ({
13289
13291
  [`@media (min-width: ${re(t)})`]: Object.assign({}, Ju(e, n))
13290
13292
  }), xP = () => ({}), $P = () => ({});
13291
- rn("Grid", bP, xP);
13293
+ on("Grid", bP, xP);
13292
13294
  const Ib = (e) => ({
13293
13295
  xs: e.screenXSMin,
13294
13296
  sm: e.screenSMMin,
@@ -13297,7 +13299,7 @@ const Ib = (e) => ({
13297
13299
  xl: e.screenXLMin,
13298
13300
  xxl: e.screenXXLMin
13299
13301
  });
13300
- rn("Grid", (e) => {
13302
+ on("Grid", (e) => {
13301
13303
  const t = Ft(e, {
13302
13304
  gridColumns: 24
13303
13305
  // Row is divided into 24 parts in Grid
@@ -13579,7 +13581,7 @@ const wP = (e) => {
13579
13581
  confirmBodyPadding: e.wireframe ? `${re(e.padding * 2)} ${re(e.padding * 2)} ${re(e.paddingLG)}` : 0,
13580
13582
  confirmIconMarginInlineEnd: e.wireframe ? e.margin : e.marginSM,
13581
13583
  confirmBtnsMarginTop: e.wireframe ? e.marginLG : e.marginSM
13582
- }), Rb = rn("Modal", (e) => {
13584
+ }), Rb = on("Modal", (e) => {
13583
13585
  const t = _b(e);
13584
13586
  return [EP(t), NP(t), wP(t), yi(t, "zoom"), OP(t)];
13585
13587
  }, Pb, {
@@ -14557,7 +14559,7 @@ const zP = (e) => {
14557
14559
  notificationProgressHeight: 2,
14558
14560
  notificationProgressBg: `linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`
14559
14561
  });
14560
- }, Wb = rn("Notification", (e) => {
14562
+ }, Wb = on("Notification", (e) => {
14561
14563
  const t = Kb(e);
14562
14564
  return [QP(t), VP(t), XP(t)];
14563
14565
  }, Vb), ZP = Xl(["Notification", "PurePanel"], (e) => {
@@ -15882,11 +15884,11 @@ function WR(e, t, n, r, o, a, i) {
15882
15884
  dn >= St) ? (g.current.lr = !0, Fe = $t, _e = -_e, ze.points = [Yr(Nt, 1), Yr(at, 1)]) : g.current.lr = !1;
15883
15885
  }
15884
15886
  Mt();
15885
- var on = se === !0 ? 0 : se;
15886
- typeof on == "number" && (Qe < ge.left && (Fe -= Qe - ge.left - _e, B.x + oe < ge.left + on && (Fe += B.x - ge.left + oe - on)), st > ge.right && (Fe -= st - ge.right - _e, B.x > ge.right - on && (Fe += B.x - ge.right + on)));
15887
+ var an = se === !0 ? 0 : se;
15888
+ typeof an == "number" && (Qe < ge.left && (Fe -= Qe - ge.left - _e, B.x + oe < ge.left + an && (Fe += B.x - ge.left + oe - an)), st > ge.right && (Fe -= st - ge.right - _e, B.x > ge.right - an && (Fe += B.x - ge.right + an)));
15887
15889
  var hn = $e === !0 ? 0 : $e;
15888
15890
  typeof hn == "number" && (Ae < ge.top && (Be -= Ae - ge.top - ue, B.y + W < ge.top + hn && (Be += B.y - ge.top + W - hn)), Xe > ge.bottom && (Be -= Xe - ge.bottom - ue, B.y > ge.bottom - hn && (Be += B.y - ge.bottom + hn)));
15889
- var jn = L.x + Fe, Bn = jn + ne, mn = L.y + Be, Fn = mn + q, On = B.x, Rt = On + oe, rt = B.y, wt = rt + W, Ue = Math.max(jn, On), qe = Math.min(Bn, Rt), Et = (Ue + qe) / 2, Kt = Et - jn, an = Math.max(mn, rt), Sn = Math.min(Fn, wt), In = (an + Sn) / 2, _n = In - mn;
15891
+ var jn = L.x + Fe, Bn = jn + ne, mn = L.y + Be, Fn = mn + q, On = B.x, Rt = On + oe, rt = B.y, wt = rt + W, Ue = Math.max(jn, On), qe = Math.min(Bn, Rt), Et = (Ue + qe) / 2, Kt = Et - jn, ln = Math.max(mn, rt), Sn = Math.min(Fn, wt), In = (ln + Sn) / 2, _n = In - mn;
15890
15892
  i == null || i(t, ze);
15891
15893
  var bt = Ne.right - L.x - (Fe + L.width), He = Ne.bottom - L.y - (Be + L.height);
15892
15894
  ke === 1 && (Fe = Math.round(Fe), bt = Math.round(bt)), Le === 1 && (Be = Math.round(Be), He = Math.round(He));
@@ -16022,7 +16024,7 @@ function YR() {
16022
16024
  }, [nt]);
16023
16025
  var ee = s.useState(null), se = U(ee, 2), $e = se[0], je = se[1], Ae = s.useState(null), Xe = U(Ae, 2), Qe = Xe[0], st = Xe[1], ft = function(_t) {
16024
16026
  st([_t.clientX, _t.clientY]);
16025
- }, Ot = WR(nt, Ne, H && Qe !== null ? Qe : ce, P, O, R, L), Te = U(Ot, 11), Ke = Te[0], lt = Te[1], ht = Te[2], xt = Te[3], Yt = Te[4], zt = Te[5], tn = Te[6], un = Te[7], sn = Te[8], ct = Te[9], $t = Te[10], jt = zR(me, c, u, d), dn = U(jt, 2), on = dn[0], hn = dn[1], jn = on.has("click"), Bn = hn.has("click") || hn.has("contextMenu"), mn = Pt(function() {
16027
+ }, Ot = WR(nt, Ne, H && Qe !== null ? Qe : ce, P, O, R, L), Te = U(Ot, 11), Ke = Te[0], lt = Te[1], ht = Te[2], xt = Te[3], Yt = Te[4], zt = Te[5], tn = Te[6], un = Te[7], sn = Te[8], ct = Te[9], $t = Te[10], jt = zR(me, c, u, d), dn = U(jt, 2), an = dn[0], hn = dn[1], jn = an.has("click"), Bn = hn.has("click") || hn.has("contextMenu"), mn = Pt(function() {
16026
16028
  Je || $t();
16027
16029
  }), Fn = function() {
16028
16030
  Fe.current && H && Bn && Me(!1);
@@ -16043,10 +16045,10 @@ function YR() {
16043
16045
  forceAlign: mn
16044
16046
  };
16045
16047
  });
16046
- var Rt = s.useState(0), rt = U(Rt, 2), wt = rt[0], Ue = rt[1], qe = s.useState(0), Et = U(qe, 2), Kt = Et[0], an = Et[1], Sn = function() {
16048
+ var Rt = s.useState(0), rt = U(Rt, 2), wt = rt[0], Ue = rt[1], qe = s.useState(0), Et = U(qe, 2), Kt = Et[0], ln = Et[1], Sn = function() {
16047
16049
  if (j && ce) {
16048
16050
  var _t = ce.getBoundingClientRect();
16049
- Ue(_t.width), an(_t.height);
16051
+ Ue(_t.width), ln(_t.height);
16050
16052
  }
16051
16053
  }, In = function() {
16052
16054
  Sn(), mn();
@@ -16078,7 +16080,7 @@ function YR() {
16078
16080
  wn[vn - 1] = arguments[vn];
16079
16081
  (_t = be.onClick) === null || _t === void 0 || _t.call.apply(_t, [be, gt].concat(wn));
16080
16082
  });
16081
- var it = UR(nt, Bn, ce, Ne, x, S, Ye, Me), vt = on.has("hover"), Mt = hn.has("hover"), Ut, Pn;
16083
+ var it = UR(nt, Bn, ce, Ne, x, S, Ye, Me), vt = an.has("hover"), Mt = hn.has("hover"), Ut, Pn;
16082
16084
  vt && (He("onMouseEnter", !0, h, function(gt) {
16083
16085
  ft(gt);
16084
16086
  }), He("onPointerEnter", !0, h, function(gt) {
@@ -16090,7 +16092,7 @@ function YR() {
16090
16092
  (_t = be.onMouseMove) === null || _t === void 0 || _t.call(be, gt);
16091
16093
  })), Mt && (He("onMouseLeave", !1, b), He("onPointerLeave", !1, b), Pn = function() {
16092
16094
  Me(!1, b);
16093
- }), on.has("focus") && He("onFocus", !0, y), hn.has("focus") && He("onBlur", !1, C), on.has("contextMenu") && (Re.onContextMenu = function(gt) {
16095
+ }), an.has("focus") && He("onFocus", !0, y), hn.has("focus") && He("onBlur", !1, C), an.has("contextMenu") && (Re.onContextMenu = function(gt) {
16094
16096
  var _t;
16095
16097
  Fe.current && hn.has("contextMenu") ? Me(!1) : (ft(gt), Me(!0)), gt.preventDefault();
16096
16098
  for (var fn = arguments.length, wn = new Array(fn > 1 ? fn - 1 : 0), vn = 1; vn < fn; vn++)
@@ -16379,8 +16381,8 @@ var nM = ["id", "prefixCls", "className", "showSearch", "tagRender", "direction"
16379
16381
  if (!(Se && nd(Ze) && (Je == null ? void 0 : Je.size) >= Ze)) {
16380
16382
  var qe = !0, Et = rt;
16381
16383
  w == null || w(null);
16382
- var Kt = eM(rt, I, nd(Ze) ? Ze - Je.size : void 0), an = Ue ? null : Kt;
16383
- return v !== "combobox" && an && (Et = "", P == null || P(an), Ve(!1), qe = !1), D && be !== Et && D(Et, {
16384
+ var Kt = eM(rt, I, nd(Ze) ? Ze - Je.size : void 0), ln = Ue ? null : Kt;
16385
+ return v !== "combobox" && ln && (Et = "", P == null || P(ln), Ve(!1), qe = !1), D && be !== Et && D(Et, {
16384
16386
  source: wt ? "typing" : "effect"
16385
16387
  }), qe;
16386
16388
  }
@@ -16397,10 +16399,10 @@ var nM = ["id", "prefixCls", "className", "showSearch", "tagRender", "direction"
16397
16399
  var se = Qb(), $e = U(se, 2), je = $e[0], Ae = $e[1], Xe = s.useRef(!1), Qe = function(rt) {
16398
16400
  var wt = je(), Ue = rt.key, qe = Ue === "Enter";
16399
16401
  if (qe && (v !== "combobox" && rt.preventDefault(), Be || Ve(!0)), Ae(!!be), Ue === "Backspace" && !wt && Se && !be && d.length) {
16400
- for (var Et = we(d), Kt = null, an = Et.length - 1; an >= 0; an -= 1) {
16401
- var Sn = Et[an];
16402
+ for (var Et = we(d), Kt = null, ln = Et.length - 1; ln >= 0; ln -= 1) {
16403
+ var Sn = Et[ln];
16402
16404
  if (!Sn.disabled) {
16403
- Et.splice(an, 1), Kt = Sn;
16405
+ Et.splice(ln, 1), Kt = Sn;
16404
16406
  break;
16405
16407
  }
16406
16408
  }
@@ -16464,9 +16466,9 @@ var nM = ["id", "prefixCls", "className", "showSearch", "tagRender", "direction"
16464
16466
  });
16465
16467
  ht.push(Et);
16466
16468
  }
16467
- for (var Kt = arguments.length, an = new Array(Kt > 1 ? Kt - 1 : 0), Sn = 1; Sn < Kt; Sn++)
16468
- an[Sn - 1] = arguments[Sn];
16469
- de == null || de.apply(void 0, [rt].concat(an));
16469
+ for (var Kt = arguments.length, ln = new Array(Kt > 1 ? Kt - 1 : 0), Sn = 1; Sn < Kt; Sn++)
16470
+ ln[Sn - 1] = arguments[Sn];
16471
+ de == null || de.apply(void 0, [rt].concat(ln));
16470
16472
  }, Yt = s.useState({}), zt = U(Yt, 2), tn = zt[1];
16471
16473
  function un() {
16472
16474
  tn({});
@@ -16506,7 +16508,7 @@ var nM = ["id", "prefixCls", "className", "showSearch", "tagRender", "direction"
16506
16508
  type: "clear",
16507
16509
  values: d
16508
16510
  }), mt("", !1, !1);
16509
- }, on = vR(o, dn, d, O, j, b, be, v), hn = on.allowClear, jn = on.clearIcon, Bn = /* @__PURE__ */ s.createElement(B, {
16511
+ }, an = vR(o, dn, d, O, j, b, be, v), hn = an.allowClear, jn = an.clearIcon, Bn = /* @__PURE__ */ s.createElement(B, {
16510
16512
  ref: Oe
16511
16513
  }), mn = J(o, a, F(F(F(F(F(F(F(F(F(F({}, "".concat(o, "-focused"), ue), "".concat(o, "-multiple"), Se), "".concat(o, "-single"), !Se), "".concat(o, "-allow-clear"), O), "".concat(o, "-show-arrow"), $t), "".concat(o, "-disabled"), b), "".concat(o, "-loading"), y), "".concat(o, "-open"), Be), "".concat(o, "-customize-input"), Re), "".concat(o, "-show-search"), Ee)), Fn = /* @__PURE__ */ s.createElement(i0, {
16512
16514
  ref: Le,
@@ -18080,7 +18082,7 @@ const AM = v0, LM = (e) => {
18080
18082
  }
18081
18083
  }
18082
18084
  };
18083
- }, FM = rn("Empty", (e) => {
18085
+ }, FM = on("Empty", (e) => {
18084
18086
  const {
18085
18087
  componentCls: t,
18086
18088
  controlHeightLG: n,
@@ -19229,7 +19231,7 @@ const JM = (e) => {
19229
19231
  focusElCls: `${t}-focused`
19230
19232
  })
19231
19233
  ];
19232
- }, u2 = rn("Select", (e, t) => {
19234
+ }, u2 = on("Select", (e, t) => {
19233
19235
  let {
19234
19236
  rootPrefixCls: n
19235
19237
  } = t;
@@ -20128,7 +20130,7 @@ const j2 = (e) => {
20128
20130
  borderRadiusOuter: Math.min(e.borderRadiusOuter, 4)
20129
20131
  }))), j0 = function(e) {
20130
20132
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
20131
- return rn("Tooltip", (r) => {
20133
+ return on("Tooltip", (r) => {
20132
20134
  const {
20133
20135
  borderRadius: o,
20134
20136
  colorTextLightSolid: a,
@@ -20441,7 +20443,7 @@ const da = af, K2 = (e) => {
20441
20443
  titleBorderBottom: a ? `${t}px ${u} ${d}` : "none",
20442
20444
  innerContentPadding: a ? `${f}px ${h}px` : 0
20443
20445
  });
20444
- }, A0 = rn("Popover", (e) => {
20446
+ }, A0 = on("Popover", (e) => {
20445
20447
  const {
20446
20448
  colorBgElevated: t,
20447
20449
  colorText: n
@@ -21543,9 +21545,9 @@ var GT = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items
21543
21545
  return {
21544
21546
  list: Ce.current,
21545
21547
  focus: function(wt) {
21546
- var Ue, qe = Te(), Et = cd(qe, ce), Kt = Et.elements, an = Et.key2element, Sn = Et.element2key, In = cf(Ce.current, Kt), _n = zt ?? (In[0] ? Sn.get(In[0]) : (Ue = xe.find(function(it) {
21548
+ var Ue, qe = Te(), Et = cd(qe, ce), Kt = Et.elements, ln = Et.key2element, Sn = Et.element2key, In = cf(Ce.current, Kt), _n = zt ?? (In[0] ? Sn.get(In[0]) : (Ue = xe.find(function(it) {
21547
21549
  return !it.props.disabled;
21548
- })) === null || Ue === void 0 ? void 0 : Ue.key), bt = an.get(_n);
21550
+ })) === null || Ue === void 0 ? void 0 : Ue.key), bt = ln.get(_n);
21549
21551
  if (_n && bt) {
21550
21552
  var He;
21551
21553
  bt == null || (He = bt.focus) === null || He === void 0 || He.call(bt, wt);
@@ -21559,11 +21561,11 @@ var GT = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items
21559
21561
  postState: function(wt) {
21560
21562
  return Array.isArray(wt) ? wt : wt == null ? vo : [wt];
21561
21563
  }
21562
- }), $t = U(ct, 2), jt = $t[0], dn = $t[1], on = function(wt) {
21564
+ }), $t = U(ct, 2), jt = $t[0], dn = $t[1], an = function(wt) {
21563
21565
  if (P) {
21564
21566
  var Ue = wt.key, qe = jt.includes(Ue), Et;
21565
- O ? qe ? Et = jt.filter(function(an) {
21566
- return an !== Ue;
21567
+ O ? qe ? Et = jt.filter(function(ln) {
21568
+ return ln !== Ue;
21567
21569
  }) : Et = [].concat(we(jt), [Ue]) : Et = [Ue], dn(Et);
21568
21570
  var Kt = z(z({}, wt), {}, {
21569
21571
  selectedKeys: Et
@@ -21572,7 +21574,7 @@ var GT = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items
21572
21574
  }
21573
21575
  !O && Ie.length && St !== "inline" && Re(vo);
21574
21576
  }, hn = za(function(rt) {
21575
- W == null || W(_l(rt)), on(rt);
21577
+ W == null || W(_l(rt)), an(rt);
21576
21578
  }), jn = za(function(rt, wt) {
21577
21579
  var Ue = Ie.filter(function(Et) {
21578
21580
  return Et !== rt;
@@ -21803,7 +21805,7 @@ const QT = Z0, ZT = /* @__PURE__ */ s.createContext({
21803
21805
  lightTriggerColor: o
21804
21806
  };
21805
21807
  }, ey = [["colorBgBody", "bodyBg"], ["colorBgHeader", "headerBg"], ["colorBgTrigger", "triggerBg"]];
21806
- rn("Layout", (e) => [JT(e)], J0, {
21808
+ on("Layout", (e) => [JT(e)], J0, {
21807
21809
  deprecatedTokens: ey
21808
21810
  });
21809
21811
  const eD = (e) => {
@@ -21912,7 +21914,7 @@ const eD = (e) => {
21912
21914
  }
21913
21915
  }
21914
21916
  };
21915
- }, tD = rn(["Layout", "Sider"], (e) => [eD(e)], J0, {
21917
+ }, tD = on(["Layout", "Sider"], (e) => [eD(e)], J0, {
21916
21918
  deprecatedTokens: ey
21917
21919
  });
21918
21920
  var nD = globalThis && globalThis.__rest || function(e, t) {
@@ -23041,7 +23043,7 @@ const Rl = /* @__PURE__ */ s.createContext(null), ay = /* @__PURE__ */ s.forward
23041
23043
  };
23042
23044
  }, $D = function(e) {
23043
23045
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : e, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0;
23044
- return rn("Menu", (o) => {
23046
+ return on("Menu", (o) => {
23045
23047
  const {
23046
23048
  colorBgElevated: a,
23047
23049
  controlHeightLG: i,
@@ -23571,7 +23573,7 @@ const ly = ba, _D = (e) => {
23571
23573
  }, Is({
23572
23574
  contentRadius: e.borderRadiusLG,
23573
23575
  limitVerticalRadius: !0
23574
- })), Os(e)), TD = rn("Dropdown", (e) => {
23576
+ })), Os(e)), TD = on("Dropdown", (e) => {
23575
23577
  const {
23576
23578
  marginXXS: t,
23577
23579
  sizePopupArrow: n,
@@ -26943,7 +26945,7 @@ function Fk(e, t) {
26943
26945
  }, [Z]);
26944
26946
  var un = s.useState([0, 0, 0]), sn = U(un, 2), ct = sn[0], $t = sn[1], jt = My(Y, te), dn = function(it) {
26945
26947
  zt(it), lt("preset");
26946
- }, on = function(it) {
26948
+ }, an = function(it) {
26947
26949
  var vt = Ve(it);
26948
26950
  vt && me(!1, {
26949
26951
  force: !0
@@ -26997,7 +26999,7 @@ function Fk(e, t) {
26997
26999
  onOk: xe,
26998
27000
  presets: jt,
26999
27001
  onPresetHover: dn,
27000
- onPresetSubmit: on,
27002
+ onPresetSubmit: an,
27001
27003
  onNow: hn,
27002
27004
  cellRender: Rt
27003
27005
  })), Et = function(it, vt) {
@@ -27005,7 +27007,7 @@ function Fk(e, t) {
27005
27007
  he(Mt);
27006
27008
  }, Kt = function() {
27007
27009
  Ce("input");
27008
- }, an = function(it, vt) {
27010
+ }, ln = function(it, vt) {
27009
27011
  var Mt = ve.length, Ut = ve[Mt - 1];
27010
27012
  if (Mt && Ut !== vt && h && // Not change index if is not filled
27011
27013
  !y[Ut] && !be(Ut) && Ne[Ut]) {
@@ -27070,7 +27072,7 @@ function Fk(e, t) {
27070
27072
  activeHelp: !!Yt,
27071
27073
  allHelp: !!Yt && Ke === "preset",
27072
27074
  focused: De,
27073
- onFocus: an,
27075
+ onFocus: ln,
27074
27076
  onBlur: Sn,
27075
27077
  onKeyDown: In,
27076
27078
  onSubmit: Qe,
@@ -27236,8 +27238,8 @@ function Kk(e, t) {
27236
27238
  }
27237
27239
  var me = Hy(k, M, a), Se = Py(w, N, [x], _), Ee = U(Se, 2), le = Ee[0], pe = Ee[1], ge = function(qe, Et, Kt) {
27238
27240
  if (j) {
27239
- var an = z({}, Kt);
27240
- delete an.range, j(de(qe), de(Et), an);
27241
+ var ln = z({}, Kt);
27242
+ delete ln.range, j(de(qe), de(Et), ln);
27241
27243
  }
27242
27244
  }, he = function(qe) {
27243
27245
  B == null || B(de(qe));
@@ -27336,7 +27338,7 @@ function Kk(e, t) {
27336
27338
  var Et = A ? me(De(), qe) : [qe];
27337
27339
  Oe(Et), !b && !i && a === Ct && Ae();
27338
27340
  }
27339
- }, on = function() {
27341
+ }, an = function() {
27340
27342
  pe(!1);
27341
27343
  }, hn = pf(q, ne, W), jn = s.useMemo(function() {
27342
27344
  var Ue = Dn(o, !1), qe = Cn(o, [].concat(we(Object.keys(Ue)), ["onChange", "onCalendarChange", "style", "className", "onPanelChange"]));
@@ -27404,7 +27406,7 @@ function Kk(e, t) {
27404
27406
  popupStyle: m.popup,
27405
27407
  popupClassName: g.popup,
27406
27408
  visible: le,
27407
- onClose: on
27409
+ onClose: an
27408
27410
  }), /* @__PURE__ */ s.createElement(
27409
27411
  qy,
27410
27412
  ye({}, o, {
@@ -27927,7 +27929,7 @@ const qk = (e) => {
27927
27929
  radioColor: t ? f : p,
27928
27930
  radioBgColor: t ? l : f
27929
27931
  };
27930
- }, eC = rn("Radio", (e) => {
27932
+ }, eC = on("Radio", (e) => {
27931
27933
  const {
27932
27934
  controlOutline: t,
27933
27935
  controlOutlineWidth: n
@@ -29060,12 +29062,12 @@ const xa = (e) => {
29060
29062
  }
29061
29063
  }
29062
29064
  };
29063
- }, uC = rn(["Input", "Shared"], (e) => {
29065
+ }, uC = on(["Input", "Shared"], (e) => {
29064
29066
  const t = Ft(e, Sa(e));
29065
29067
  return [cj(t), dj(t)];
29066
29068
  }, xa, {
29067
29069
  resetFont: !1
29068
- }), dC = rn(["Input", "Component"], (e) => {
29070
+ }), dC = on(["Input", "Component"], (e) => {
29069
29071
  const t = Ft(e, Sa(e));
29070
29072
  return [
29071
29073
  fj(t),
@@ -30245,7 +30247,7 @@ const xa = (e) => {
30245
30247
  sa(e, "move-up"),
30246
30248
  sa(e, "move-down")
30247
30249
  ];
30248
- }, fC = rn("DatePicker", (e) => {
30250
+ }, fC = on("DatePicker", (e) => {
30249
30251
  const t = Ft(Sa(e), Sj(e), {
30250
30252
  inputPaddingHorizontalBase: e.calc(e.paddingSM).sub(1).equal(),
30251
30253
  multipleSelectItemHeight: e.multipleItemHeight,
@@ -30788,7 +30790,7 @@ function pC(e, t) {
30788
30790
  });
30789
30791
  return [Bj(n)];
30790
30792
  }
30791
- const hC = rn("Checkbox", (e, t) => {
30793
+ const hC = on("Checkbox", (e, t) => {
30792
30794
  let {
30793
30795
  prefixCls: n
30794
30796
  } = t;
@@ -31901,7 +31903,7 @@ const zB = (e) => {
31901
31903
  }
31902
31904
  }
31903
31905
  };
31904
- }, WB = rn(["Input", "OTP"], (e) => {
31906
+ }, WB = on(["Input", "OTP"], (e) => {
31905
31907
  const t = Ft(e, Sa(e));
31906
31908
  return [KB(t)];
31907
31909
  }, xa);
@@ -32563,7 +32565,7 @@ const hA = (e) => {
32563
32565
  }
32564
32566
  }
32565
32567
  };
32566
- }, bA = rn(["Input", "TextArea"], (e) => {
32568
+ }, bA = on(["Input", "TextArea"], (e) => {
32567
32569
  const t = Ft(e, Sa(e));
32568
32570
  return [hA(t)];
32569
32571
  }, xa, {
@@ -32911,8 +32913,8 @@ var YC = function(t) {
32911
32913
  }
32912
32914
  function pt(ct, $t) {
32913
32915
  if (ct.key === "Enter" || ct.charCode === Pe.ENTER || ct.keyCode === Pe.ENTER) {
32914
- for (var jt = arguments.length, dn = new Array(jt > 2 ? jt - 2 : 0), on = 2; on < jt; on++)
32915
- dn[on - 2] = arguments[on];
32916
+ for (var jt = arguments.length, dn = new Array(jt > 2 ? jt - 2 : 0), an = 2; an < jt; an++)
32917
+ dn[an - 2] = arguments[an];
32916
32918
  $t.apply(void 0, dn);
32917
32919
  }
32918
32920
  }
@@ -33580,7 +33582,7 @@ const MA = (e) => {
33580
33582
  paginationSlashMarginInlineEnd: e.marginSM,
33581
33583
  paginationEllipsisTextIndent: "0.13em"
33582
33584
  // magic for ui experience
33583
- }, Sa(e)), LA = rn("Pagination", (e) => {
33585
+ }, Sa(e)), LA = on("Pagination", (e) => {
33584
33586
  const t = QC(e);
33585
33587
  return [BA(t), AA(t)];
33586
33588
  }, XC), FA = (e) => {
@@ -34141,7 +34143,7 @@ const qA = new Lt("antSpinMove", {
34141
34143
  dotSizeSM: t * 0.35,
34142
34144
  dotSizeLG: n
34143
34145
  };
34144
- }, ZA = rn("Spin", (e) => {
34146
+ }, ZA = on("Spin", (e) => {
34145
34147
  const t = Ft(e, {
34146
34148
  spinDotDefault: e.colorTextDescription
34147
34149
  });
@@ -34864,7 +34866,7 @@ const eF = (e) => {
34864
34866
  innerMinMarginSM: u / 2,
34865
34867
  innerMaxMarginSM: u + l + l * 2
34866
34868
  };
34867
- }, iF = rn("Switch", (e) => {
34869
+ }, iF = on("Switch", (e) => {
34868
34870
  const t = Ft(e, {
34869
34871
  switchDuration: e.motionDurationMid,
34870
34872
  switchColor: e.colorPrimary,
@@ -36184,9 +36186,9 @@ function rH(e, t) {
36184
36186
  }, [Be, l, le.length]), s.useEffect(function() {
36185
36187
  zt.current = !0;
36186
36188
  }, []);
36187
- var tn = s.useState(0), un = U(tn, 2), sn = un[0], ct = un[1], $t = s.useState(!0), jt = U($t, 2), dn = jt[0], on = jt[1];
36189
+ var tn = s.useState(0), un = U(tn, 2), sn = un[0], ct = un[1], $t = s.useState(!0), jt = U($t, 2), dn = jt[0], an = jt[1];
36188
36190
  s.useEffect(function() {
36189
- (!_ || !R) && (De.current instanceof Element ? ct(zu(De.current).width) : ct(zu(Oe.current).width)), on(B_("position", "sticky"));
36191
+ (!_ || !R) && (De.current instanceof Element ? ct(zu(De.current).width) : ct(zu(Oe.current).width)), an(B_("position", "sticky"));
36190
36192
  }, []), s.useEffect(function() {
36191
36193
  R && w && (w.body.current = De.current);
36192
36194
  });
@@ -36246,7 +36248,7 @@ function rH(e, t) {
36246
36248
  stickyOffsets: ze,
36247
36249
  flattenColumns: pe
36248
36250
  }, se)));
36249
- var an = z(z(z({
36251
+ var ln = z(z(z({
36250
36252
  noData: !I.length,
36251
36253
  maxContentScroll: Be && xe === "max-content"
36252
36254
  }, On), Ne), {}, {
@@ -36254,11 +36256,11 @@ function rH(e, t) {
36254
36256
  stickyClassName: mt,
36255
36257
  onScroll: lt
36256
36258
  });
36257
- Fn = /* @__PURE__ */ s.createElement(s.Fragment, null, b !== !1 && /* @__PURE__ */ s.createElement(Ng, ye({}, an, {
36259
+ Fn = /* @__PURE__ */ s.createElement(s.Fragment, null, b !== !1 && /* @__PURE__ */ s.createElement(Ng, ye({}, ln, {
36258
36260
  stickyTopOffset: Ge,
36259
36261
  className: "".concat(r, "-header"),
36260
36262
  ref: Le
36261
- }), hn), Kt, $e && $e !== "top" && /* @__PURE__ */ s.createElement(Ng, ye({}, an, {
36263
+ }), hn), Kt, $e && $e !== "top" && /* @__PURE__ */ s.createElement(Ng, ye({}, ln, {
36262
36264
  stickyBottomOffset: Ze,
36263
36265
  className: "".concat(r, "-summary"),
36264
36266
  ref: Ce
@@ -38695,7 +38697,7 @@ const AH = (e) => {
38695
38697
  directoryNodeSelectedColor: t,
38696
38698
  directoryNodeSelectedBg: n
38697
38699
  });
38698
- }, GH = rn("Tree", (e, t) => {
38700
+ }, GH = on("Tree", (e, t) => {
38699
38701
  let {
38700
38702
  prefixCls: n
38701
38703
  } = t;
@@ -41033,7 +41035,7 @@ const gl = "ascend", Xc = "descend", Fl = (e) => typeof e.sorter == "object" &&
41033
41035
  expandIconSize: D,
41034
41036
  expandIconScale: S / D
41035
41037
  };
41036
- }, Jg = 2, J3 = rn("Table", (e) => {
41038
+ }, Jg = 2, J3 = on("Table", (e) => {
41037
41039
  const {
41038
41040
  colorTextHeading: t,
41039
41041
  colorSplit: n,
@@ -41467,7 +41469,7 @@ const ax = Ln(
41467
41469
  children: "*"
41468
41470
  }
41469
41471
  ) : null, u = () => n ? typeof n != "string" ? n : /* @__PURE__ */ fe.jsx(
41470
- ln,
41472
+ rn,
41471
41473
  {
41472
41474
  asTag: "span",
41473
41475
  variant: e,
@@ -41476,7 +41478,7 @@ const ax = Ln(
41476
41478
  }
41477
41479
  ) : null;
41478
41480
  return /* @__PURE__ */ fe.jsxs(
41479
- ln,
41481
+ rn,
41480
41482
  {
41481
41483
  asTag: "label",
41482
41484
  variant: e,
@@ -41535,7 +41537,7 @@ const iz = {
41535
41537
  children: t
41536
41538
  }
41537
41539
  ) : null, p = () => !n || f ? null : /* @__PURE__ */ fe.jsx(
41538
- ln,
41540
+ rn,
41539
41541
  {
41540
41542
  asTag: "p",
41541
41543
  variant: e === Ir.small ? "body5" : "body3",
@@ -41545,7 +41547,7 @@ const iz = {
41545
41547
  children: n
41546
41548
  }
41547
41549
  ), h = () => f ? /* @__PURE__ */ fe.jsx(
41548
- ln,
41550
+ rn,
41549
41551
  {
41550
41552
  asTag: "p",
41551
41553
  variant: e === Ir.small ? "body6" : "body4",
@@ -42263,7 +42265,7 @@ const bV = ({
42263
42265
  } : () => u(g),
42264
42266
  children: [
42265
42267
  /* @__PURE__ */ fe.jsx(
42266
- ln,
42268
+ rn,
42267
42269
  {
42268
42270
  variant: "body4",
42269
42271
  className: `${d(h, "label")} ${f(p, "label")}`,
@@ -42410,8 +42412,8 @@ const CV = ({
42410
42412
  style: { maxWidth: "475px", padding: "0px", ...l },
42411
42413
  ...C,
42412
42414
  children: [
42413
- /* @__PURE__ */ fe.jsx("span", { className: "modal-container__title", children: /* @__PURE__ */ fe.jsx(ln, { variant: "h4", children: e }) }),
42414
- t && /* @__PURE__ */ fe.jsx("span", { className: "modal-container__description", children: /* @__PURE__ */ fe.jsx(ln, { variant: "body3", children: /* @__PURE__ */ fe.jsx($, { text: t }) }) }),
42415
+ /* @__PURE__ */ fe.jsx("span", { className: "modal-container__title", children: /* @__PURE__ */ fe.jsx(rn, { variant: "h4", children: e }) }),
42416
+ t && /* @__PURE__ */ fe.jsx("span", { className: "modal-container__description", children: /* @__PURE__ */ fe.jsx(rn, { variant: "body3", children: /* @__PURE__ */ fe.jsx($, { text: t }) }) }),
42415
42417
  a && /* @__PURE__ */ fe.jsx("span", { className: "modal-container__body-content", children: a }),
42416
42418
  /* @__PURE__ */ fe.jsx(
42417
42419
  Kf,
@@ -42471,7 +42473,7 @@ const SV = ({
42471
42473
  onClick: () => u(m),
42472
42474
  style: o,
42473
42475
  children: /* @__PURE__ */ fe.jsx(
42474
- ln,
42476
+ rn,
42475
42477
  {
42476
42478
  variant: "body4",
42477
42479
  className: `tab-button--label${p}`,
@@ -42535,7 +42537,7 @@ const Iz = (e, t) => {
42535
42537
  $(y);
42536
42538
  }, [y]);
42537
42539
  const _ = (I, O) => `dropdown--${O} dropdown--${O}--${I ? "selected" : "no-selected"}`, M = (I, O) => `dropdown--${O}--${I ? "disabled" : "enabled"}`, k = (I, O) => O === "label" || O === "placeholder" ? `dropdown--${O}--${I ? "focus" : "onblur"}` : `dropdown--${O}--${I ? "open" : "close"}`, D = typeof e == "function" ? e(Mz) : e, P = () => h ? /* @__PURE__ */ fe.jsx(
42538
- ln,
42540
+ rn,
42539
42541
  {
42540
42542
  asTag: "p",
42541
42543
  variant: o === Ir.small ? "body6" : "body4",
@@ -42580,14 +42582,14 @@ const Iz = (e, t) => {
42580
42582
  } : () => b(!v),
42581
42583
  children: [
42582
42584
  x ? /* @__PURE__ */ fe.jsx(
42583
- ln,
42585
+ rn,
42584
42586
  {
42585
42587
  variant: tp[o],
42586
42588
  className: `dropdown--label dropdown--label--${o} ${k(v, "label")} ${M(r, "label")} dropdown--label--enabled--${h ? "error" : "no-error"}`,
42587
42589
  children: x.label
42588
42590
  }
42589
42591
  ) : /* @__PURE__ */ fe.jsx(
42590
- ln,
42592
+ rn,
42591
42593
  {
42592
42594
  variant: tp[o],
42593
42595
  className: `dropdown--placeholder dropdown--label--${o} ${k(v, "placeholder")} ${M(r, "placeholder")} dropdown--placeholder--enabled--${h ? "error" : "no-error"}`,
@@ -42621,7 +42623,7 @@ const Iz = (e, t) => {
42621
42623
  onClick: () => w(I),
42622
42624
  className: `${_(R, "option")} dropdown--option--${o} ${M(r || !!T, "option")}`,
42623
42625
  children: /* @__PURE__ */ fe.jsx(
42624
- ln,
42626
+ rn,
42625
42627
  {
42626
42628
  variant: _z[o],
42627
42629
  className: `${_(R, "text")} dropdown--text--${o} ${M(r || !!T, "text")}`,
@@ -42694,7 +42696,7 @@ const xV = ({
42694
42696
  n || ($(null), M(""), d == null || d());
42695
42697
  }, K = () => /* @__PURE__ */ fe.jsxs("div", { className: "dropdown-filter--option-selected", children: [
42696
42698
  f ? null : /* @__PURE__ */ fe.jsx(
42697
- ln,
42699
+ rn,
42698
42700
  {
42699
42701
  variant: g[o],
42700
42702
  className: `dropdown-filter--text dropdown-filter--text--bold dropdown-filter--text--${o} dropdown-filter--text--selected--${w ? "error" : "no-error"}`,
@@ -42702,7 +42704,7 @@ const xV = ({
42702
42704
  }
42703
42705
  ),
42704
42706
  /* @__PURE__ */ fe.jsx(
42705
- ln,
42707
+ rn,
42706
42708
  {
42707
42709
  variant: p[o],
42708
42710
  className: `dropdown-filter--text--${o} dropdown-filter--text--selected--${w ? "error" : "no-error"}`,
@@ -42711,7 +42713,7 @@ const xV = ({
42711
42713
  ),
42712
42714
  S == null ? void 0 : S.component
42713
42715
  ] }), L = () => w ? /* @__PURE__ */ fe.jsx(
42714
- ln,
42716
+ rn,
42715
42717
  {
42716
42718
  asTag: "p",
42717
42719
  variant: o === Ir.small ? "body6" : "body4",
@@ -42813,7 +42815,7 @@ const xV = ({
42813
42815
  className: `${j(Y, "option")} dropdown-filter--option--${o} ${B(n || !!(V != null && V.disabled), "option")}`,
42814
42816
  children: [
42815
42817
  f ? null : /* @__PURE__ */ fe.jsx(
42816
- ln,
42818
+ rn,
42817
42819
  {
42818
42820
  variant: p[o],
42819
42821
  className: `dropdown-filter--text dropdown-filter--text--bold dropdown-filter--text--${o} ${B(n || !!(V != null && V.disabled), "text")}`,
@@ -42821,7 +42823,7 @@ const xV = ({
42821
42823
  }
42822
42824
  ),
42823
42825
  /* @__PURE__ */ fe.jsx(
42824
- ln,
42826
+ rn,
42825
42827
  {
42826
42828
  variant: p[o],
42827
42829
  className: `dropdown-filter--text dropdown-filter--text--${o} ${B(n || !!(V != null && V.disabled), "text")}`,
@@ -42843,7 +42845,7 @@ const xV = ({
42843
42845
  }
42844
42846
  ),
42845
42847
  /* @__PURE__ */ fe.jsx(
42846
- ln,
42848
+ rn,
42847
42849
  {
42848
42850
  variant: p[o],
42849
42851
  className: "dropdown-filter--empty-text",
@@ -42957,7 +42959,7 @@ const $V = ({
42957
42959
  }
42958
42960
  ),
42959
42961
  /* @__PURE__ */ fe.jsx(
42960
- ln,
42962
+ rn,
42961
42963
  {
42962
42964
  variant: "body3",
42963
42965
  className: "dropdown-multiple__items-list--empty-text",
@@ -43023,7 +43025,11 @@ const jz = Q.forwardRef(
43023
43025
  open: l,
43024
43026
  onCancel: c,
43025
43027
  footer: null,
43026
- style: { maxWidth: "475px", padding: "0px", ...n },
43028
+ style: {
43029
+ maxWidth: a.width ? "fit-content" : "475px",
43030
+ padding: "0px",
43031
+ ...n
43032
+ },
43027
43033
  panelRef: i,
43028
43034
  ...a,
43029
43035
  children: o
@@ -43039,7 +43045,7 @@ const Bz = Q.forwardRef(
43039
43045
  className: `modal-container__title ${t}`.trim(),
43040
43046
  ...n,
43041
43047
  ref: r,
43042
- children: /* @__PURE__ */ fe.jsx(ln, { variant: "h4", children: e })
43048
+ children: /* @__PURE__ */ fe.jsx(rn, { variant: "h4", children: e })
43043
43049
  }
43044
43050
  )
43045
43051
  );
@@ -43213,7 +43219,7 @@ const hx = Eo({
43213
43219
  const { size: n } = Wz(), r = {
43214
43220
  small: "body6",
43215
43221
  big: "body4"
43216
- }, o = () => typeof e == "string" ? /* @__PURE__ */ fe.jsx(ln, { variant: r[n], children: e }) : e;
43222
+ }, o = () => typeof e == "string" ? /* @__PURE__ */ fe.jsx(rn, { variant: r[n], children: e }) : e;
43217
43223
  return /* @__PURE__ */ fe.jsx("div", { className: "alert__description", ...t, children: o() });
43218
43224
  }, PV = ({ children: e, ...t }) => /* @__PURE__ */ fe.jsx("span", { className: "alert__icon", ...t, children: e });
43219
43225
  function Hl() {
@@ -44992,7 +44998,7 @@ const Jz = 0, RV = ({
44992
44998
  }) => {
44993
44999
  const i = nn(() => n ? { opacity: 0.5, filter: "grayscale(1)" } : {}, [n]), l = Zz.map((c) => ({
44994
45000
  value: c.phone_code,
44995
- label: /* @__PURE__ */ fe.jsx(fe.Fragment, { children: /* @__PURE__ */ fe.jsxs(ln, { variant: "body4", children: [
45001
+ label: /* @__PURE__ */ fe.jsx(fe.Fragment, { children: /* @__PURE__ */ fe.jsxs(rn, { variant: "body4", children: [
44996
45002
  /* @__PURE__ */ fe.jsx(
44997
45003
  Qz,
44998
45004
  {
@@ -45059,7 +45065,7 @@ export {
45059
45065
  cV as Toggle,
45060
45066
  fV as Tooltip,
45061
45067
  hV as TooltipWrapper,
45062
- ln as Typography,
45068
+ rn as Typography,
45063
45069
  oV as colorTokens,
45064
45070
  Jt as colors,
45065
45071
  aV as shapeTokens,
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { TypographyProps } from './types';
3
- type PolymorphicProps<E extends React.ElementType> = TypographyProps & {
4
- asTag?: E;
5
- } & Omit<React.ComponentPropsWithoutRef<E>, keyof TypographyProps>;
6
- export declare const Typography: React.ForwardRefExoticComponent<Omit<PolymorphicProps<React.ElementType<any, keyof React.JSX.IntrinsicElements>>, "ref"> & React.RefAttributes<HTMLElement>>;
7
- export {};
3
+ export declare const Typography: React.ForwardRefExoticComponent<{
4
+ asTag?: string | undefined;
5
+ } & TypographyProps & {
6
+ children?: React.ReactNode;
7
+ } & React.RefAttributes<HTMLElement>>;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- export interface TypographyProps {
2
+ export interface TypographyProps extends React.HTMLAttributes<HTMLElement> {
3
3
  /**
4
4
  *
5
5
  * h1 - font-family: "Roca One", serif; font-weight: lighter; font-size: 56px; letter-spacing: 0,2px; line-height: 60px
@@ -30,10 +30,9 @@ export interface TypographyProps {
30
30
  *
31
31
  */
32
32
  variant: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'body1' | 'body2' | 'body3' | 'body4' | 'body5' | 'body6' | 'button1' | 'button2';
33
- className?: string;
34
33
  dataTestid?: string;
35
34
  underline?: boolean;
36
- children: React.ReactNode;
35
+ className?: string;
37
36
  customStyles?: React.CSSProperties;
38
37
  bolder?: boolean;
39
38
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ctc-component-library",
3
3
  "private": false,
4
- "version": "0.1.76",
4
+ "version": "0.1.77",
5
5
  "type": "module",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",