profinansy-ui-lib 3.8.5 → 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.
@@ -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: [