profinansy-ui-lib 3.8.4 → 3.8.6

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.
@@ -7829,8 +7829,8 @@ const Bs = D.createContext(null), Ci = ({
7829
7829
  }
7830
7830
  }, yf = (e, t, n) => t && n ? e[t][n] : null, kf = g.p`
7831
7831
  display: inline-block;
7832
- color: ${(e) => yf(e.theme, e.colorCategory, e.colorName)};
7833
- ${({ variant: e }) => wf(e)};
7832
+ color: ${(e) => yf(e.theme, e.$colorCategory, e.$colorName)};
7833
+ ${({ $variant: e }) => wf(e)};
7834
7834
  `, N = st(
7835
7835
  ({
7836
7836
  tag: e = "p",
@@ -7850,11 +7850,11 @@ const Bs = D.createContext(null), Ci = ({
7850
7850
  {
7851
7851
  ref: p,
7852
7852
  as: f,
7853
- variant: r,
7854
7853
  className: t,
7855
7854
  title: o,
7856
- colorCategory: c,
7857
- colorName: h,
7855
+ $variant: r,
7856
+ $colorCategory: c,
7857
+ $colorName: h,
7858
7858
  onClick: a,
7859
7859
  style: d,
7860
7860
  children: n
@@ -9166,7 +9166,7 @@ const Zs = D.createContext(null), Th = ({ content: e, ...t }) => {
9166
9166
  return /* @__PURE__ */ s.jsx(re, { theme: Q[t], children: n ? /* @__PURE__ */ s.jsx(Hh, { ...e }) : /* @__PURE__ */ s.jsx(Th, { ...e }) });
9167
9167
  }, Bh = g.div`
9168
9168
  width: 100%;
9169
- margin-bottom: ${(e) => e.marginBottom}px;
9169
+ margin-bottom: ${(e) => e.$marginBottom}px;
9170
9170
  `, Vh = g.label`
9171
9171
  font-weight: 500;
9172
9172
  font-size: 13px;
@@ -9200,7 +9200,7 @@ const Zs = D.createContext(null), Th = ({ content: e, ...t }) => {
9200
9200
  return /* @__PURE__ */ s.jsx(re, { theme: Q[a], children: /* @__PURE__ */ s.jsxs(
9201
9201
  Bh,
9202
9202
  {
9203
- marginBottom: r,
9203
+ $marginBottom: r,
9204
9204
  className: Ve(i, "fieldRow-container"),
9205
9205
  children: [
9206
9206
  !!e && /* @__PURE__ */ s.jsxs(Vh, { onClick: (l) => l.preventDefault(), children: [
@@ -9464,19 +9464,19 @@ const Zs = D.createContext(null), Th = ({ content: e, ...t }) => {
9464
9464
  justify-content: center;
9465
9465
  box-sizing: border-box;
9466
9466
  cursor: pointer;
9467
- ${({ size: e, $form: t, $mode: n }) => Wh(n, t)[e]}
9468
- width: ${(e) => e.width || "auto"};
9467
+ ${({ $size: e, $form: t, $mode: n }) => Wh(n, t)[e]}
9468
+ width: ${(e) => e.$width || "auto"};
9469
9469
  color: ${(e) => bt(e.theme)[e.$mode].default.color};
9470
9470
  border: ${(e) => bt(e.theme)[e.$mode].default.border || "none"};
9471
9471
  background: ${(e) => bt(e.theme)[e.$mode].default.background};
9472
- padding-left: ${(e) => `${O5(e.$mode, e.size, e.isText)}px`};
9473
- padding-right: ${(e) => `${O5(e.$mode, e.size, e.isText)}px`};
9472
+ padding-left: ${(e) => `${O5(e.$mode, e.$size, e.$isText)}px`};
9473
+ padding-right: ${(e) => `${O5(e.$mode, e.$size, e.$isText)}px`};
9474
9474
  transition: all 0.3s ${O.animation_1};
9475
9475
  & > span {
9476
9476
  white-space: nowrap;
9477
9477
  }
9478
9478
  & path {
9479
- ${(e) => e.isFill ? z`
9479
+ ${(e) => e.$isFill ? z`
9480
9480
  fill: ${bt(e.theme)[e.$mode].default.color};
9481
9481
  ` : z``}
9482
9482
  }
@@ -9485,7 +9485,7 @@ const Zs = D.createContext(null), Th = ({ content: e, ...t }) => {
9485
9485
  border: ${(e) => bt(e.theme)[e.$mode].hover.border || "none"};
9486
9486
  color: ${(e) => bt(e.theme)[e.$mode].hover.color};
9487
9487
  & path {
9488
- ${(e) => e.isFill ? z`
9488
+ ${(e) => e.$isFill ? z`
9489
9489
  fill: ${bt(e.theme)[e.$mode].hover.color};
9490
9490
  ` : z``}
9491
9491
  }
@@ -9495,7 +9495,7 @@ const Zs = D.createContext(null), Th = ({ content: e, ...t }) => {
9495
9495
  border: ${(e) => bt(e.theme)[e.$mode].active?.border || "none"};
9496
9496
  color: ${(e) => bt(e.theme)[e.$mode].active.color};
9497
9497
  & path {
9498
- ${(e) => e.isFill ? z`
9498
+ ${(e) => e.$isFill ? z`
9499
9499
  fill: ${bt(e.theme)[e.$mode].active.color};
9500
9500
  ` : z``}
9501
9501
  }
@@ -9666,12 +9666,12 @@ const Zs = D.createContext(null), Th = ({ content: e, ...t }) => {
9666
9666
  className: Ve(h, "button"),
9667
9667
  disabled: o || c,
9668
9668
  onClick: x,
9669
- size: l,
9669
+ $size: l,
9670
9670
  $mode: r,
9671
- width: p,
9672
- isFill: v,
9671
+ $width: p,
9672
+ $isFill: v,
9673
9673
  tabIndex: C,
9674
- isText: !!e || !!t,
9674
+ $isText: !!e || !!t,
9675
9675
  children: [
9676
9676
  c && /* @__PURE__ */ s.jsx(Xh, { $mode: r, children: /* @__PURE__ */ s.jsx(tm, { color: bt(Q[y])[r].default.color }) }),
9677
9677
  i ? /* @__PURE__ */ s.jsx(Yh, { isText: !!e, size: l, children: i }) : null,
@@ -9747,13 +9747,13 @@ const Zs = D.createContext(null), Th = ({ content: e, ...t }) => {
9747
9747
  width: 100%;
9748
9748
  padding: 11px 12px;
9749
9749
  height: 44px;
9750
- padding-left: ${(e) => e.icon && e.positionIcon === "left" ? "44px" : "12px"};
9751
- padding-right: ${(e) => e.icon && e.positionIcon === "right" || e.rightText ? "48px" : "12px"};
9750
+ padding-left: ${(e) => e.$icon && e.$positionIcon === "left" ? "44px" : "12px"};
9751
+ padding-right: ${(e) => e.$icon && e.$positionIcon === "right" || e.$rightText ? "48px" : "12px"};
9752
9752
  border-radius: 8px;
9753
9753
  background: ${(e) => e.theme.background.field};
9754
9754
  border: 0.8px solid
9755
- ${(e) => e.error ? `${e.theme.stroke.negative} !important` : e.theme.stroke.primary};
9756
- ${(e) => e.prohibitTextInput && z`
9755
+ ${(e) => e.$error ? `${e.theme.stroke.negative} !important` : e.theme.stroke.primary};
9756
+ ${(e) => e.$prohibitTextInput && z`
9757
9757
  caret-color: transparent;
9758
9758
  cursor: pointer;
9759
9759
  `}
@@ -9856,14 +9856,14 @@ const Zs = D.createContext(null), Th = ({ content: e, ...t }) => {
9856
9856
  onChange: Z,
9857
9857
  onFocus: v,
9858
9858
  onBlur: b,
9859
- prohibitTextInput: c,
9859
+ $prohibitTextInput: c,
9860
9860
  onKeyDown: x,
9861
9861
  onClick: y,
9862
9862
  autoComplete: w,
9863
- error: !!p,
9864
- icon: !!f,
9865
- rightText: !!m,
9866
- positionIcon: _
9863
+ $error: !!p,
9864
+ $icon: !!f,
9865
+ $rightText: !!m,
9866
+ $positionIcon: _
9867
9867
  }
9868
9868
  ),
9869
9869
  f ? /* @__PURE__ */ s.jsx(
@@ -11455,24 +11455,24 @@ const P3 = {
11455
11455
  display: flex;
11456
11456
  align-items: center;
11457
11457
  gap: 8px;
11458
- flex-wrap: ${(e) => e.scroll === "none" ? "wrap" : "nowrap"};
11459
- overflow-x: ${(e) => e.scroll === "none" ? "visible" : "auto"};
11458
+ flex-wrap: ${(e) => e.$scroll === "none" ? "wrap" : "nowrap"};
11459
+ overflow-x: ${(e) => e.$scroll === "none" ? "visible" : "auto"};
11460
11460
 
11461
11461
  -ms-overflow-style: none; /* IE и Edge */
11462
11462
  scrollbar-width: none; /* Firefox */
11463
11463
  &::-webkit-scrollbar {
11464
11464
  display: none;
11465
11465
  }
11466
- ${(e) => e.mode === "support" && z`
11466
+ ${(e) => e.$mode === "support" && z`
11467
11467
  padding-bottom: 20px;
11468
11468
  margin-bottom: -20px;
11469
11469
  `};
11470
11470
  @media (max-width: ${ve}px) {
11471
- ${(e) => e.scroll !== "none" && z`
11472
- padding-right: ${`${e.mobileIndent}px`};
11473
- margin-right: ${`-${e.mobileIndent}px`};
11474
- padding-left: ${`${e.mobileIndent}px`};
11475
- margin-left: ${`-${e.mobileIndent}px`};
11471
+ ${(e) => e.$scroll !== "none" && z`
11472
+ padding-right: ${`${e.$mobileIndent}px`};
11473
+ margin-right: ${`-${e.$mobileIndent}px`};
11474
+ padding-left: ${`${e.$mobileIndent}px`};
11475
+ margin-left: ${`-${e.$mobileIndent}px`};
11476
11476
  `}
11477
11477
  }
11478
11478
  `, rC = g.button`
@@ -11481,26 +11481,26 @@ const P3 = {
11481
11481
  display: flex;
11482
11482
  justify-content: center;
11483
11483
  align-items: center;
11484
- padding: ${(e) => `0px ${e.isIconRight ? "10px" : "14px"} 0px ${e.isIconLeft ? "10px" : "14px"}`};
11484
+ padding: ${(e) => `0px ${e.$isIconRight ? "10px" : "14px"} 0px ${e.$isIconLeft ? "10px" : "14px"}`};
11485
11485
  height: 36px;
11486
- border: ${(e) => `1px solid ${Ht(e.theme, e.isActive)[e.mode].default.border}`};
11487
- background: ${(e) => Ht(e.theme, e.isActive)[e.mode].default.background};
11486
+ border: ${(e) => `1px solid ${Ht(e.theme, e.$isActive)[e.$mode].default.border}`};
11487
+ background: ${(e) => Ht(e.theme, e.$isActive)[e.$mode].default.background};
11488
11488
  border-radius: 24px;
11489
- color: ${(e) => Ht(e.theme, e.isActive)[e.mode].default.color};
11489
+ color: ${(e) => Ht(e.theme, e.$isActive)[e.$mode].default.color};
11490
11490
  cursor: pointer;
11491
11491
  white-space: nowrap;
11492
- box-shadow: ${(e) => Ht(e.theme, e.isActive)[e.mode].default.boxShadow};
11492
+ box-shadow: ${(e) => Ht(e.theme, e.$isActive)[e.$mode].default.boxShadow};
11493
11493
  transition: ${() => `all 0.3s ${O.animation_1}`};
11494
11494
  & path {
11495
- fill: ${(e) => Ht(e.theme, e.isActive)[e.mode].default.iconColor};
11495
+ fill: ${(e) => Ht(e.theme, e.$isActive)[e.$mode].default.iconColor};
11496
11496
  }
11497
11497
  &:hover {
11498
- background: ${(e) => Ht(e.theme, e.isActive)[e.mode].hover.background};
11499
- box-shadow: ${(e) => Ht(e.theme, e.isActive)[e.mode].hover.boxShadow};
11500
- color: ${(e) => Ht(e.theme, e.isActive)[e.mode].hover.color};
11501
- border: ${(e) => `1px solid ${Ht(e.theme, e.isActive)[e.mode].hover.border}`};
11498
+ background: ${(e) => Ht(e.theme, e.$isActive)[e.$mode].hover.background};
11499
+ box-shadow: ${(e) => Ht(e.theme, e.$isActive)[e.$mode].hover.boxShadow};
11500
+ color: ${(e) => Ht(e.theme, e.$isActive)[e.$mode].hover.color};
11501
+ border: ${(e) => `1px solid ${Ht(e.theme, e.$isActive)[e.$mode].hover.border}`};
11502
11502
  & path {
11503
- fill: ${(e) => Ht(e.theme, e.isActive)[e.mode].hover.iconColor};
11503
+ fill: ${(e) => Ht(e.theme, e.$isActive)[e.$mode].hover.iconColor};
11504
11504
  }
11505
11505
  }
11506
11506
  `, oC = g.span`
@@ -11580,20 +11580,20 @@ const P3 = {
11580
11580
  return /* @__PURE__ */ s.jsx(
11581
11581
  nC,
11582
11582
  {
11583
- mode: o,
11583
+ $mode: o,
11584
11584
  style: i,
11585
11585
  ref: f,
11586
- scroll: l,
11587
- mobileIndent: e,
11586
+ $scroll: l,
11587
+ $mobileIndent: e,
11588
11588
  children: h.map((x, y) => /* @__PURE__ */ s.jsxs(
11589
11589
  rC,
11590
11590
  {
11591
11591
  className: d,
11592
- mode: o,
11593
- isIconLeft: !!x.iconLeft,
11594
- isIconRight: !!x.iconRight,
11592
+ $mode: o,
11593
+ $isIconLeft: !!x.iconLeft,
11594
+ $isIconRight: !!x.iconRight,
11595
11595
  onClick: (w) => v(x.value, w, y),
11596
- isActive: m(x),
11596
+ $isActive: m(x),
11597
11597
  onMouseLeave: () => {
11598
11598
  C.current[y] && (clearTimeout(C.current[y]), C.current[y] = null);
11599
11599
  },
@@ -21926,9 +21926,9 @@ const w2 = D.createContext(null), lL = st(
21926
21926
  padding: 4px 8px;
21927
21927
  height: 32px;
21928
21928
  gap: 6px;
21929
- background: ${(e) => e.isStroke ? "transparent" : e.theme.background.field};
21929
+ background: ${(e) => e.$isStroke ? "transparent" : e.theme.background.field};
21930
21930
  border-radius: 8px;
21931
- border: ${(e) => e.isStroke ? `0.5px solid ${e.theme.stroke.primary}` : "none"};
21931
+ border: ${(e) => e.$isStroke ? `0.5px solid ${e.theme.stroke.primary}` : "none"};
21932
21932
  cursor: pointer;
21933
21933
  transition: background-color 0.3s ${O.animation_1},
21934
21934
  border 0.3s ${O.animation_1};
@@ -21938,18 +21938,18 @@ const w2 = D.createContext(null), lL = st(
21938
21938
  }
21939
21939
  & svg {
21940
21940
  min-width: 24px;
21941
- transform: ${(e) => e.isASC ? "rotate(180deg)" : "rotate(0deg)"};
21941
+ transform: ${(e) => e.$isASC ? "rotate(180deg)" : "rotate(0deg)"};
21942
21942
  }
21943
21943
  & path {
21944
21944
  fill: ${(e) => e.theme.icons.primary};
21945
21945
  }
21946
21946
  &:hover {
21947
- background: ${(e) => e.isStroke ? "transparent" : e.theme.background.secondaryAlpha};
21948
- border: ${(e) => e.isStroke ? `0.5px solid ${e.theme.stroke.contrast}` : "none"};
21947
+ background: ${(e) => e.$isStroke ? "transparent" : e.theme.background.secondaryAlpha};
21948
+ border: ${(e) => e.$isStroke ? `0.5px solid ${e.theme.stroke.contrast}` : "none"};
21949
21949
  }
21950
21950
  @media (max-width: ${ie}px) {
21951
21951
  & > span {
21952
- display: ${(e) => e.isMobileWithoutText ? "none" : "inline"};
21952
+ display: ${(e) => e.$isMobileWithoutText ? "none" : "inline"};
21953
21953
  }
21954
21954
  }
21955
21955
  `, CL = g.button`
@@ -21997,10 +21997,10 @@ const w2 = D.createContext(null), lL = st(
21997
21997
  targetElement: /* @__PURE__ */ s.jsxs(
21998
21998
  _l,
21999
21999
  {
22000
- isMobileWithoutText: i,
22001
- isStroke: e,
22000
+ $isMobileWithoutText: i,
22001
+ $isStroke: e,
22002
22002
  onClick: r,
22003
- isASC: c.type === "ASC",
22003
+ $isASC: c.type === "ASC",
22004
22004
  ref: p,
22005
22005
  children: [
22006
22006
  !n && /* @__PURE__ */ s.jsx(oo, {}),
@@ -22036,10 +22036,10 @@ const w2 = D.createContext(null), lL = st(
22036
22036
  ) }) : /* @__PURE__ */ s.jsx(re, { theme: Q[f], children: /* @__PURE__ */ s.jsxs(
22037
22037
  _l,
22038
22038
  {
22039
- isMobileWithoutText: i,
22040
- isStroke: e,
22039
+ $isMobileWithoutText: i,
22040
+ $isStroke: e,
22041
22041
  onClick: r,
22042
- isASC: o,
22042
+ $isASC: o,
22043
22043
  ref: p,
22044
22044
  children: [
22045
22045
  !n && /* @__PURE__ */ s.jsx(oo, {}),
@@ -22724,14 +22724,14 @@ function OL(e, t) {
22724
22724
  });
22725
22725
  }, [t]), W(() => {
22726
22726
  const c = (d, p) => {
22727
- const f = d[o.field], m = p[o.field], h = (b, x) => {
22728
- const y = b ?? -1 / 0, w = x ?? -1 / 0;
22729
- return o.order === "ASC" ? y - w : w - y;
22730
- }, C = (b, x) => o.order === "ASC" ? b.localeCompare(x) : x.localeCompare(b), v = (b, x) => {
22731
- const y = b ? new Date(b).getTime() : -1 / 0, w = x ? new Date(x).getTime() : -1 / 0;
22732
- return o.order === "ASC" ? y - w : w - y;
22727
+ const f = d[o.field], m = p[o.field], h = (x, y) => o.order === "ASC" ? +x - +y : +y - +x, C = (x, y) => {
22728
+ const w = x ?? -1 / 0, E = y ?? -1 / 0;
22729
+ return o.order === "ASC" ? w - E : E - w;
22730
+ }, v = (x, y) => o.order === "ASC" ? x.localeCompare(y) : y.localeCompare(x), b = (x, y) => {
22731
+ const w = x ? new Date(x).getTime() : -1 / 0, E = y ? new Date(y).getTime() : -1 / 0;
22732
+ return o.order === "ASC" ? w - E : E - w;
22733
22733
  };
22734
- return typeof f == "number" && typeof m == "number" ? h(f, m) : typeof f == "string" && typeof m == "string" ? !isNaN(Date.parse(f)) ? v(f, m) : C(f, m) : typeof f == "number" ? o.order === "DESC" ? -1 : 1 : o.order === "DESC" ? 1 : -1;
22734
+ return typeof f == "number" && typeof m == "number" ? C(f, m) : typeof f == "boolean" && typeof m == "boolean" ? h(f, m) : typeof f == "string" && typeof m == "string" ? !isNaN(Date.parse(f)) ? b(f, m) : v(f, m) : typeof f == "number" ? o.order === "DESC" ? -1 : 1 : o.order === "DESC" ? 1 : -1;
22735
22735
  };
22736
22736
  if (!a)
22737
22737
  if (o?.order) {
@@ -23485,12 +23485,12 @@ const vj = ({ withIcon: e = !0, ...t }) => {
23485
23485
  ] })
23486
23486
  ] }) }) });
23487
23487
  }, pS = g.div`
23488
- width: ${(e) => e.width};
23488
+ width: ${(e) => e.$width};
23489
23489
  background: ${(e) => e.theme.background.content};
23490
23490
  border-radius: 16px;
23491
- padding: ${(e) => e.padding};
23492
- margin: ${(e) => e.margin};
23493
- ${(e) => e.isHover && z`
23491
+ padding: ${(e) => e.$padding};
23492
+ margin: ${(e) => e.$margin};
23493
+ ${(e) => e.$isHover && z`
23494
23494
  cursor: pointer;
23495
23495
  transition: ${() => `all 0.4s ${O.animation_1}`};
23496
23496
  &:hover {
@@ -23500,7 +23500,7 @@ const vj = ({ withIcon: e = !0, ...t }) => {
23500
23500
  `}
23501
23501
  `, fS = g.div`
23502
23502
  width: 100%;
23503
- margin-bottom: ${(e) => e.isMarginBottom ? "12px" : "0"};
23503
+ margin-bottom: ${(e) => e.$isMarginBottom ? "12px" : "0"};
23504
23504
  `, hS = g.div`
23505
23505
  width: 100%;
23506
23506
  display: flex;
@@ -23630,17 +23630,17 @@ const vj = ({ withIcon: e = !0, ...t }) => {
23630
23630
  return /* @__PURE__ */ s.jsx(re, { theme: Q[w], children: /* @__PURE__ */ s.jsxs(
23631
23631
  pS,
23632
23632
  {
23633
- margin: b,
23634
- padding: v,
23635
- width: C,
23636
- isHover: p,
23633
+ $margin: b,
23634
+ $padding: v,
23635
+ $width: C,
23636
+ $isHover: p,
23637
23637
  className: Ve(l, "card-container"),
23638
23638
  ref: t,
23639
23639
  children: [
23640
23640
  o || /* @__PURE__ */ s.jsx(s.Fragment, { children: r && /* @__PURE__ */ s.jsxs(
23641
23641
  fS,
23642
23642
  {
23643
- isMarginBottom: !!n,
23643
+ $isMarginBottom: !!n,
23644
23644
  className: Ve(d, "card-header"),
23645
23645
  children: [
23646
23646
  /* @__PURE__ */ s.jsxs(hS, { adaptiveRightContent: y, children: [