@lanaco/lnc-react-ui 4.0.16 → 4.0.17
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/DecimalInputV2.cjs +19 -19
- package/dist/DecimalInputV2.js +102 -100
- package/package.json +1 -1
package/dist/DecimalInputV2.cjs
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const y=require("react/jsx-runtime"),o=require("./index-BIlhCoy2.cjs"),g=require("react"),C=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),s=require("./utils-DTAPpJXU.cjs"),J=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),L=C.newStyled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
|
|
5
|
-
min-height: ${e=>
|
|
6
|
-
max-height: ${e=>
|
|
7
|
-
background-color: ${e=>
|
|
5
|
+
min-height: ${e=>s.getSizeValueWithUnits(e.theme,e.size)};
|
|
6
|
+
max-height: ${e=>s.getSizeValueWithUnits(e.theme,e.size)};
|
|
7
|
+
background-color: ${e=>s.getColorRgbaValue(e.theme,"Input",e.color,"enabled","background")};
|
|
8
8
|
border: 1px solid
|
|
9
|
-
${e=>
|
|
10
|
-
border-radius: ${e=>
|
|
9
|
+
${e=>s.getColorRgbaValue(e.theme,"Input",e.focused===!0?"primary":e.color,"enabled","border")};
|
|
10
|
+
border-radius: ${e=>s.getBorderRadiusValueWithUnits(e.theme,"regular")};
|
|
11
11
|
|
|
12
|
-
${e=>e.focused===!0&&e.readOnly!==!0?
|
|
13
|
-
${e=>e.isDisabled===!0?
|
|
14
|
-
${e=>e.isDisabled===!0?"border: 1px solid "+
|
|
12
|
+
${e=>e.focused===!0&&e.readOnly!==!0?s.getOutlineCss(e.theme):""}
|
|
13
|
+
${e=>e.isDisabled===!0?s.getDisabledStateCss(e.theme):""}
|
|
14
|
+
${e=>e.isDisabled===!0?"border: 1px solid "+s.getColorRgbaValue(e.theme,"Input",e.color,"disabled","border"):""}
|
|
15
15
|
|
|
16
16
|
& input {
|
|
17
17
|
background: none;
|
|
@@ -21,17 +21,17 @@
|
|
|
21
21
|
padding-bottom: 0.625rem;
|
|
22
22
|
width: 100%;
|
|
23
23
|
|
|
24
|
-
${e=>
|
|
25
|
-
min-height: ${e=>
|
|
26
|
-
max-height: ${e=>
|
|
27
|
-
color: ${e=>
|
|
28
|
-
caret-color: ${e=>
|
|
24
|
+
${e=>s.getComponentTypographyCss(e.theme,"Input",e.size,"enabled")}
|
|
25
|
+
min-height: ${e=>s.getSizeValueWithUnits(e.theme,e.size)};
|
|
26
|
+
max-height: ${e=>s.getSizeValueWithUnits(e.theme,e.size)};
|
|
27
|
+
color: ${e=>s.getColorRgbaValue(e.theme,"Input",e.focused===!0?"primary":e.color,"enabled","text")};
|
|
28
|
+
caret-color: ${e=>s.getColorRgbaValue(e.theme,"Input",e.color,"enabled","caret")};
|
|
29
29
|
padding-right: ${e=>e.suffix?"0":"0.75rem"};
|
|
30
30
|
padding-left: ${e=>e.prefix?"0":"0.75rem"};
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
& input:disabled {
|
|
34
|
-
${e=>
|
|
34
|
+
${e=>s.getDisabledStateCss(e.theme)}
|
|
35
35
|
background: none;
|
|
36
36
|
}
|
|
37
37
|
|
|
@@ -40,9 +40,9 @@
|
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
& input::placeholder {
|
|
43
|
-
color: ${e=>
|
|
43
|
+
color: ${e=>s.getColorRgbaValue(e.theme,"Input",e.color,"enabled","placeholder")};
|
|
44
44
|
}
|
|
45
|
-
`,
|
|
45
|
+
`,S=C.newStyled.span`
|
|
46
46
|
padding: 0 12px;
|
|
47
|
-
color: ${e=>
|
|
48
|
-
`,M
|
|
47
|
+
color: ${e=>s.getColorRgbaValue(e.theme,"Input",e.focused===!0?"primary":e.color,"enabled","prefix")};
|
|
48
|
+
`,M=C.newStyled(S)``,k=g.forwardRef((e,O)=>{const{disabled:V,readOnly:j,prefix:m,suffix:f,decimalSeparator:c=",",decimalScale:a=2,allowNegative:D=!0,onKeyDown:R=()=>{},onBlur:b=()=>{},onFocus:T=()=>{},onChange:q=()=>{},value:x,className:W="",style:U={},size:B="small",color:P="primary",onInputChange:K=()=>{},..._}=e,$=J.useTheme(),[w,z]=g.useState(!1),I=l=>{var t,u;if(!isNaN(+l)){const i=(t=l==null?void 0:l.toString())==null?void 0:t.split(".");if(!(i!=null&&i.length)>0)return"0"+c+new Array(a+1).join("0");if((i==null?void 0:i.length)===1)return i.at(0)+c+new Array(a+1).join("0");if((i==null?void 0:i.length)>1){let n=(u=i==null?void 0:i.at(1))==null?void 0:u.toString();if((n==null?void 0:n.length)===a)return i.at(0)+c+n;if((n==null?void 0:n.length)<a)return i.at(0)+c+i.at(1)+new Array(a-n.length+1).join("0");if((n==null?void 0:n.length)>a)return i.at(0)+c+n.slice(0,a)}}return"0"+c+new Array(a+1).join("0")},N=I(x),[v,h]=g.useState(N),r=g.useRef(N);g.useEffect(()=>{const l=I(x);r.current=l,h(r.current)},[x]);const F=l=>{z(!0),T==null||T(l)},E=l=>{z(!1),b==null||b(l)},G=l=>{var u,i;let t=(u=r.current)==null?void 0:u.replace(c,"");if(l.key==="Delete"||l.key==="Backspace"){if(+t!=0){t=t.slice(0,(t==null?void 0:t.length)-1);let n=t.slice(0,(t==null?void 0:t.length)-a),d=t.slice((t==null?void 0:t.length)-a);(n==null?void 0:n.length)===0?n="0":n==="-"&&+t!=0?n="-0":n==="-"&&+t==0&&(n="0");let p=[n,c,d].join("");r.current=p,h(r.current)}}else if(l.key==="-"&&D===!0&&+t!=0)((i=r==null?void 0:r.current)==null?void 0:i.slice(1))==="-"?r.current=r.current.slice(1,r.current.length):r.current="-"+r.current,h(r.current);else if(!isNaN(l.key)){t=t+l.key;let n=t.slice(0,(t==null?void 0:t.length)-a),d=t.slice((t==null?void 0:t.length)-a);(n==null?void 0:n.length)>1&&(n=n.replace(/^0+/,""),(n==null?void 0:n.length)===0&&(n="0"));let p=[n,c,d].join("");r.current=p,h(r.current)}R(l)},H=l=>{var d,p;let t=(d=r==null?void 0:r.current)==null?void 0:d.split(c),u=+(t==null?void 0:t.at(0)),i=((p=t==null?void 0:t.at(1))==null?void 0:p.length)>0?`0.${t==null?void 0:t.at(1)}`:0,n=u+ +i;l.target.value=n,K(l,n),q(l,n)};return y.jsxs(L,{style:U,className:W,theme:$,color:P,size:B,prefix:m,suffix:f,focused:w,disabled:V,readOnly:j,children:[m&&y.jsx(S,{theme:$,color:P,focused:w,className:"lnc-input-prefix",children:m}),y.jsx("input",{ref:O,type:"text",..._,onKeyDown:G,onBlur:E,value:v,className:"lnc-ui-decimal-v2-input",onFocus:F,disabled:V||j,onChange:H}),f&&y.jsx(M,{theme:$,color:P,focused:w,className:"lnc-input-suffix",children:f})]})});k.propTypes={id:o.PropTypes.string,value:o.PropTypes.any,defaultValue:o.PropTypes.any,disabled:o.PropTypes.bool,readOnly:o.PropTypes.bool,debounceTime:o.PropTypes.number,prefix:o.PropTypes.oneOfType([o.PropTypes.string,o.PropTypes.element]),suffix:o.PropTypes.oneOfType([o.PropTypes.string,o.PropTypes.element]),thousandSeparator:o.PropTypes.oneOf([".",","," "]),decimalSeparator:o.PropTypes.oneOf([".",","]),decimalScale:o.PropTypes.number,fixedDecimalScale:o.PropTypes.bool,allowNegative:o.PropTypes.bool,onChange:o.PropTypes.func,onInputChange:o.PropTypes.func,onBlur:o.PropTypes.func,onFocus:o.PropTypes.func,onKeyDown:o.PropTypes.func,className:o.PropTypes.string,style:o.PropTypes.object,size:o.PropTypes.oneOf(["small","medium","large"]),color:o.PropTypes.oneOf(["primary","secondary","success","danger","warning","information","neutral","gray"])};module.exports=k;
|
package/dist/DecimalInputV2.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as G, jsx as I } from "react/jsx-runtime";
|
|
2
2
|
import { P as o } from "./index-BYnWp42a.js";
|
|
3
|
-
import { forwardRef as
|
|
3
|
+
import { forwardRef as H, useState as z, useRef as J, useEffect as L } from "react";
|
|
4
4
|
import { n as N } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
5
|
-
import { d as
|
|
6
|
-
import { u as
|
|
7
|
-
const
|
|
5
|
+
import { d as m, a as d, b as M, e as Q, h as T, g as X } from "./utils-C52T57HO.js";
|
|
6
|
+
import { u as Y } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
|
|
7
|
+
const Z = N.div`
|
|
8
8
|
display: flex;
|
|
9
9
|
align-items: center;
|
|
10
10
|
|
|
11
|
-
min-height: ${(e) =>
|
|
12
|
-
max-height: ${(e) =>
|
|
13
|
-
background-color: ${(e) =>
|
|
11
|
+
min-height: ${(e) => m(e.theme, e.size)};
|
|
12
|
+
max-height: ${(e) => m(e.theme, e.size)};
|
|
13
|
+
background-color: ${(e) => d(
|
|
14
14
|
e.theme,
|
|
15
15
|
"Input",
|
|
16
16
|
e.color,
|
|
@@ -18,18 +18,18 @@ const _ = N.div`
|
|
|
18
18
|
"background"
|
|
19
19
|
)};
|
|
20
20
|
border: 1px solid
|
|
21
|
-
${(e) =>
|
|
21
|
+
${(e) => d(
|
|
22
22
|
e.theme,
|
|
23
23
|
"Input",
|
|
24
24
|
e.focused === !0 ? "primary" : e.color,
|
|
25
25
|
"enabled",
|
|
26
26
|
"border"
|
|
27
27
|
)};
|
|
28
|
-
border-radius: ${(e) =>
|
|
28
|
+
border-radius: ${(e) => M(e.theme, "regular")};
|
|
29
29
|
|
|
30
|
-
${(e) => e.focused === !0 && e.readOnly !== !0 ?
|
|
31
|
-
${(e) => e.isDisabled === !0 ?
|
|
32
|
-
${(e) => e.isDisabled === !0 ? "border: 1px solid " +
|
|
30
|
+
${(e) => e.focused === !0 && e.readOnly !== !0 ? Q(e.theme) : ""}
|
|
31
|
+
${(e) => e.isDisabled === !0 ? T(e.theme) : ""}
|
|
32
|
+
${(e) => e.isDisabled === !0 ? "border: 1px solid " + d(
|
|
33
33
|
e.theme,
|
|
34
34
|
"Input",
|
|
35
35
|
e.color,
|
|
@@ -45,23 +45,23 @@ const _ = N.div`
|
|
|
45
45
|
padding-bottom: 0.625rem;
|
|
46
46
|
width: 100%;
|
|
47
47
|
|
|
48
|
-
${(e) =>
|
|
49
|
-
min-height: ${(e) =>
|
|
50
|
-
max-height: ${(e) =>
|
|
51
|
-
color: ${(e) =>
|
|
48
|
+
${(e) => X(e.theme, "Input", e.size, "enabled")}
|
|
49
|
+
min-height: ${(e) => m(e.theme, e.size)};
|
|
50
|
+
max-height: ${(e) => m(e.theme, e.size)};
|
|
51
|
+
color: ${(e) => d(
|
|
52
52
|
e.theme,
|
|
53
53
|
"Input",
|
|
54
54
|
e.focused === !0 ? "primary" : e.color,
|
|
55
55
|
"enabled",
|
|
56
56
|
"text"
|
|
57
57
|
)};
|
|
58
|
-
caret-color: ${(e) =>
|
|
58
|
+
caret-color: ${(e) => d(e.theme, "Input", e.color, "enabled", "caret")};
|
|
59
59
|
padding-right: ${(e) => e.suffix ? "0" : "0.75rem"};
|
|
60
60
|
padding-left: ${(e) => e.prefix ? "0" : "0.75rem"};
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
& input:disabled {
|
|
64
|
-
${(e) =>
|
|
64
|
+
${(e) => T(e.theme)}
|
|
65
65
|
background: none;
|
|
66
66
|
}
|
|
67
67
|
|
|
@@ -70,7 +70,7 @@ const _ = N.div`
|
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
& input::placeholder {
|
|
73
|
-
color: ${(e) =>
|
|
73
|
+
color: ${(e) => d(
|
|
74
74
|
e.theme,
|
|
75
75
|
"Input",
|
|
76
76
|
e.color,
|
|
@@ -80,86 +80,86 @@ const _ = N.div`
|
|
|
80
80
|
}
|
|
81
81
|
`, B = N.span`
|
|
82
82
|
padding: 0 12px;
|
|
83
|
-
color: ${(e) =>
|
|
83
|
+
color: ${(e) => d(
|
|
84
84
|
e.theme,
|
|
85
85
|
"Input",
|
|
86
86
|
e.focused === !0 ? "primary" : e.color,
|
|
87
87
|
"enabled",
|
|
88
88
|
"prefix"
|
|
89
89
|
)};
|
|
90
|
-
`,
|
|
90
|
+
`, _ = N(B)``, A = H((e, K) => {
|
|
91
91
|
const {
|
|
92
92
|
disabled: k,
|
|
93
93
|
readOnly: O,
|
|
94
94
|
// debounceTime = 0,
|
|
95
|
-
prefix:
|
|
96
|
-
suffix:
|
|
95
|
+
prefix: f,
|
|
96
|
+
suffix: p,
|
|
97
97
|
decimalSeparator: c = ",",
|
|
98
|
-
decimalScale:
|
|
98
|
+
decimalScale: r = 2,
|
|
99
99
|
allowNegative: F = !0,
|
|
100
100
|
// //----------------
|
|
101
|
-
onKeyDown:
|
|
101
|
+
onKeyDown: v = () => {
|
|
102
102
|
},
|
|
103
|
-
onBlur:
|
|
103
|
+
onBlur: y = () => {
|
|
104
104
|
},
|
|
105
|
-
onFocus:
|
|
105
|
+
onFocus: b = () => {
|
|
106
106
|
},
|
|
107
|
-
onChange:
|
|
107
|
+
onChange: P = () => {
|
|
108
108
|
},
|
|
109
|
-
value:
|
|
109
|
+
value: x,
|
|
110
110
|
//----------------
|
|
111
|
-
className:
|
|
112
|
-
style:
|
|
113
|
-
size:
|
|
114
|
-
color:
|
|
115
|
-
onInputChange:
|
|
111
|
+
className: S = "",
|
|
112
|
+
style: W = {},
|
|
113
|
+
size: U = "small",
|
|
114
|
+
color: $ = "primary",
|
|
115
|
+
onInputChange: E = () => {
|
|
116
116
|
},
|
|
117
|
-
...
|
|
118
|
-
} = e,
|
|
119
|
-
var t,
|
|
120
|
-
if (!isNaN(+
|
|
121
|
-
const l = (t =
|
|
117
|
+
...R
|
|
118
|
+
} = e, w = Y(), [C, j] = z(!1), D = (i) => {
|
|
119
|
+
var t, s;
|
|
120
|
+
if (!isNaN(+i)) {
|
|
121
|
+
const l = (t = i == null ? void 0 : i.toString()) == null ? void 0 : t.split(".");
|
|
122
122
|
if (!(l != null && l.length) > 0)
|
|
123
|
-
return "0" + c + new Array(
|
|
123
|
+
return "0" + c + new Array(r + 1).join("0");
|
|
124
124
|
if ((l == null ? void 0 : l.length) === 1)
|
|
125
|
-
return l.at(0) + c + new Array(
|
|
125
|
+
return l.at(0) + c + new Array(r + 1).join("0");
|
|
126
126
|
if ((l == null ? void 0 : l.length) > 1) {
|
|
127
|
-
let n = (
|
|
128
|
-
if ((n == null ? void 0 : n.length) ===
|
|
127
|
+
let n = (s = l == null ? void 0 : l.at(1)) == null ? void 0 : s.toString();
|
|
128
|
+
if ((n == null ? void 0 : n.length) === r)
|
|
129
129
|
return l.at(0) + c + n;
|
|
130
|
-
if ((n == null ? void 0 : n.length) <
|
|
131
|
-
return l.at(0) + c + l.at(1) + new Array(
|
|
132
|
-
if ((n == null ? void 0 : n.length) >
|
|
133
|
-
return l.at(0) + c + n.slice(0,
|
|
130
|
+
if ((n == null ? void 0 : n.length) < r)
|
|
131
|
+
return l.at(0) + c + l.at(1) + new Array(r - n.length + 1).join("0");
|
|
132
|
+
if ((n == null ? void 0 : n.length) > r)
|
|
133
|
+
return l.at(0) + c + n.slice(0, r);
|
|
134
134
|
}
|
|
135
135
|
}
|
|
136
|
-
return "0" + c + new Array(
|
|
137
|
-
},
|
|
138
|
-
return
|
|
139
|
-
const
|
|
140
|
-
|
|
141
|
-
}, [
|
|
142
|
-
|
|
136
|
+
return "0" + c + new Array(r + 1).join("0");
|
|
137
|
+
}, V = D(x), [q, g] = z(V), a = J(V);
|
|
138
|
+
return L(() => {
|
|
139
|
+
const i = D(x);
|
|
140
|
+
a.current = i, g(a.current);
|
|
141
|
+
}, [x]), /* @__PURE__ */ G(
|
|
142
|
+
Z,
|
|
143
143
|
{
|
|
144
|
-
style:
|
|
145
|
-
className:
|
|
146
|
-
theme:
|
|
147
|
-
color:
|
|
148
|
-
size:
|
|
149
|
-
prefix:
|
|
150
|
-
suffix:
|
|
151
|
-
focused:
|
|
144
|
+
style: W,
|
|
145
|
+
className: S,
|
|
146
|
+
theme: w,
|
|
147
|
+
color: $,
|
|
148
|
+
size: U,
|
|
149
|
+
prefix: f,
|
|
150
|
+
suffix: p,
|
|
151
|
+
focused: C,
|
|
152
152
|
disabled: k,
|
|
153
153
|
readOnly: O,
|
|
154
154
|
children: [
|
|
155
|
-
|
|
155
|
+
f && /* @__PURE__ */ I(
|
|
156
156
|
B,
|
|
157
157
|
{
|
|
158
|
-
theme:
|
|
159
|
-
color:
|
|
160
|
-
focused:
|
|
158
|
+
theme: w,
|
|
159
|
+
color: $,
|
|
160
|
+
focused: C,
|
|
161
161
|
className: "lnc-input-prefix",
|
|
162
|
-
children:
|
|
162
|
+
children: f
|
|
163
163
|
}
|
|
164
164
|
),
|
|
165
165
|
/* @__PURE__ */ I(
|
|
@@ -167,62 +167,64 @@ const _ = N.div`
|
|
|
167
167
|
{
|
|
168
168
|
ref: K,
|
|
169
169
|
type: "text",
|
|
170
|
-
...
|
|
171
|
-
onKeyDown: (
|
|
172
|
-
var
|
|
173
|
-
let t = (
|
|
174
|
-
if (
|
|
170
|
+
...R,
|
|
171
|
+
onKeyDown: (i) => {
|
|
172
|
+
var s, l;
|
|
173
|
+
let t = (s = a.current) == null ? void 0 : s.replace(c, "");
|
|
174
|
+
if (i.key === "Delete" || i.key === "Backspace") {
|
|
175
175
|
if (+t != 0) {
|
|
176
176
|
t = t.slice(0, (t == null ? void 0 : t.length) - 1);
|
|
177
177
|
let n = t.slice(
|
|
178
178
|
0,
|
|
179
|
-
(t == null ? void 0 : t.length) -
|
|
180
|
-
),
|
|
179
|
+
(t == null ? void 0 : t.length) - r
|
|
180
|
+
), u = t.slice((t == null ? void 0 : t.length) - r);
|
|
181
181
|
(n == null ? void 0 : n.length) === 0 ? n = "0" : n === "-" && +t != 0 ? n = "-0" : n === "-" && +t == 0 && (n = "0");
|
|
182
|
-
let
|
|
182
|
+
let h = [
|
|
183
183
|
n,
|
|
184
184
|
c,
|
|
185
|
-
|
|
185
|
+
u
|
|
186
186
|
].join("");
|
|
187
|
-
|
|
187
|
+
a.current = h, g(a.current);
|
|
188
188
|
}
|
|
189
|
-
} else if (
|
|
190
|
-
((l =
|
|
191
|
-
else if (!isNaN(
|
|
192
|
-
t = t +
|
|
193
|
-
let n = t.slice(0, (t == null ? void 0 : t.length) -
|
|
189
|
+
} else if (i.key === "-" && F === !0 && +t != 0)
|
|
190
|
+
((l = a == null ? void 0 : a.current) == null ? void 0 : l.slice(1)) === "-" ? a.current = a.current.slice(1, a.current.length) : a.current = "-" + a.current, g(a.current);
|
|
191
|
+
else if (!isNaN(i.key)) {
|
|
192
|
+
t = t + i.key;
|
|
193
|
+
let n = t.slice(0, (t == null ? void 0 : t.length) - r), u = t.slice((t == null ? void 0 : t.length) - r);
|
|
194
194
|
(n == null ? void 0 : n.length) > 1 && (n = n.replace(/^0+/, ""), (n == null ? void 0 : n.length) === 0 && (n = "0"));
|
|
195
|
-
let
|
|
195
|
+
let h = [
|
|
196
196
|
n,
|
|
197
197
|
c,
|
|
198
|
-
|
|
198
|
+
u
|
|
199
199
|
].join("");
|
|
200
|
-
|
|
200
|
+
a.current = h, g(a.current);
|
|
201
201
|
}
|
|
202
|
-
|
|
202
|
+
v(i);
|
|
203
203
|
},
|
|
204
|
-
onBlur: (
|
|
205
|
-
j(!1),
|
|
204
|
+
onBlur: (i) => {
|
|
205
|
+
j(!1), y == null || y(i);
|
|
206
206
|
},
|
|
207
|
-
value:
|
|
207
|
+
value: q,
|
|
208
208
|
className: "lnc-ui-decimal-v2-input",
|
|
209
|
-
onFocus: (
|
|
210
|
-
j(!0),
|
|
209
|
+
onFocus: (i) => {
|
|
210
|
+
j(!0), b == null || b(i);
|
|
211
211
|
},
|
|
212
212
|
disabled: k || O,
|
|
213
|
-
onChange: (
|
|
214
|
-
|
|
213
|
+
onChange: (i) => {
|
|
214
|
+
var u, h;
|
|
215
|
+
let t = (u = a == null ? void 0 : a.current) == null ? void 0 : u.split(c), s = +(t == null ? void 0 : t.at(0)), l = ((h = t == null ? void 0 : t.at(1)) == null ? void 0 : h.length) > 0 ? `0.${t == null ? void 0 : t.at(1)}` : 0, n = s + +l;
|
|
216
|
+
i.target.value = n, E(i, n), P(i, n);
|
|
215
217
|
}
|
|
216
218
|
}
|
|
217
219
|
),
|
|
218
|
-
|
|
219
|
-
|
|
220
|
+
p && /* @__PURE__ */ I(
|
|
221
|
+
_,
|
|
220
222
|
{
|
|
221
|
-
theme:
|
|
222
|
-
color:
|
|
223
|
-
focused:
|
|
223
|
+
theme: w,
|
|
224
|
+
color: $,
|
|
225
|
+
focused: C,
|
|
224
226
|
className: "lnc-input-suffix",
|
|
225
|
-
children:
|
|
227
|
+
children: p
|
|
226
228
|
}
|
|
227
229
|
)
|
|
228
230
|
]
|