profinansy-ui-lib 3.8.4 → 3.8.5
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/components/uikit/Button/Button.styled.d.ts +4 -4
- package/dist/components/uikit/FieldRow/FieldRow.styled.d.ts +1 -1
- package/dist/components/uikit/Input/Input.styled.d.ts +5 -5
- package/dist/components/uikit/Typography/Typography.styled.d.ts +3 -3
- package/dist/profinansy-ui-lib.cjs.js +18 -18
- package/dist/profinansy-ui-lib.cjs.js.map +1 -1
- package/dist/profinansy-ui-lib.es.js +27 -27
- package/dist/profinansy-ui-lib.es.js.map +1 -1
- package/package.json +1 -1
|
@@ -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
|
|
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
|
-
|
|
7857
|
-
|
|
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
|
|
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
|
|
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
|
|
9473
|
-
padding-right: ${(e) => `${O5(e.$mode, e
|
|
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
|
|
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
|
|
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
|
|
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
|
|
9751
|
-
padding-right: ${(e) => e
|
|
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
|
|
9756
|
-
${(e) => e
|
|
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(
|