@stenajs-webui/forms 19.0.0-next.50 → 19.0.0-next.51
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/ui/labelled-select/LabelledSelect.d.ts +2 -1
- package/dist/index.es.js +185 -188
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
package/dist/index.es.js
CHANGED
|
@@ -15,11 +15,11 @@ const Tt = "_knob_1d6s8_56", kt = "_filler_1d6s8_61", St = "_checked_1d6s8_75",
|
|
|
15
15
|
}, Nt = `${R.switch} ${R.checked}`, Rt = ({
|
|
16
16
|
value: t,
|
|
17
17
|
disabled: e,
|
|
18
|
-
onValueChange:
|
|
19
|
-
className:
|
|
18
|
+
onValueChange: n,
|
|
19
|
+
className: r,
|
|
20
20
|
wrapperRef: c,
|
|
21
21
|
...s
|
|
22
|
-
}) => /* @__PURE__ */ o("div", { className:
|
|
22
|
+
}) => /* @__PURE__ */ o("div", { className: r, ref: c, children: /* @__PURE__ */ m(
|
|
23
23
|
"button",
|
|
24
24
|
{
|
|
25
25
|
type: "button",
|
|
@@ -27,7 +27,7 @@ const Tt = "_knob_1d6s8_56", kt = "_filler_1d6s8_61", St = "_checked_1d6s8_75",
|
|
|
27
27
|
"aria-checked": t,
|
|
28
28
|
className: t ? Nt : R.switch,
|
|
29
29
|
disabled: e,
|
|
30
|
-
onClick: () =>
|
|
30
|
+
onClick: () => n && n(!t),
|
|
31
31
|
...s,
|
|
32
32
|
children: [
|
|
33
33
|
/* @__PURE__ */ o("div", { className: R.filler }),
|
|
@@ -37,13 +37,13 @@ const Tt = "_knob_1d6s8_56", kt = "_filler_1d6s8_61", St = "_checked_1d6s8_75",
|
|
|
37
37
|
) }), je = ({
|
|
38
38
|
label: t,
|
|
39
39
|
disabled: e,
|
|
40
|
-
textColor:
|
|
41
|
-
wrapperRef:
|
|
40
|
+
textColor: n,
|
|
41
|
+
wrapperRef: r,
|
|
42
42
|
...c
|
|
43
|
-
}) => /* @__PURE__ */ o("div", { ref:
|
|
43
|
+
}) => /* @__PURE__ */ o("div", { ref: r, children: /* @__PURE__ */ o("label", { children: /* @__PURE__ */ m(ft, { row: !0, alignItems: "center", children: [
|
|
44
44
|
/* @__PURE__ */ o(Rt, { disabled: e, ...c }),
|
|
45
45
|
/* @__PURE__ */ o(y, {}),
|
|
46
|
-
/* @__PURE__ */ o(v, { userSelect: "none", color:
|
|
46
|
+
/* @__PURE__ */ o(v, { userSelect: "none", color: n, children: t })
|
|
47
47
|
] }) }) }), vt = "_checkbox_1ndou_1", $t = "_standard_1ndou_39", At = "_small_1ndou_51", K = {
|
|
48
48
|
checkbox: vt,
|
|
49
49
|
standard: $t,
|
|
@@ -52,19 +52,19 @@ const Tt = "_knob_1d6s8_56", kt = "_filler_1d6s8_61", St = "_checked_1d6s8_75",
|
|
|
52
52
|
({
|
|
53
53
|
indeterminate: t = !1,
|
|
54
54
|
onChange: e,
|
|
55
|
-
onValueChange:
|
|
56
|
-
value:
|
|
55
|
+
onValueChange: n,
|
|
56
|
+
value: r = !1,
|
|
57
57
|
size: c = "standard",
|
|
58
58
|
className: s,
|
|
59
59
|
...l
|
|
60
|
-
},
|
|
61
|
-
const i = U(), f = (
|
|
62
|
-
i.current =
|
|
60
|
+
}, a) => {
|
|
61
|
+
const i = U(), f = (u) => {
|
|
62
|
+
i.current = u, i.current && (i.current.indeterminate = Boolean(t)), a && (typeof a == "function" ? a(u) : a.current = u);
|
|
63
63
|
}, p = I(
|
|
64
|
-
(
|
|
65
|
-
e && e(
|
|
64
|
+
(u) => {
|
|
65
|
+
e && e(u), n && n(u.target.checked);
|
|
66
66
|
},
|
|
67
|
-
[e,
|
|
67
|
+
[e, n]
|
|
68
68
|
);
|
|
69
69
|
return D(() => {
|
|
70
70
|
i.current && (i.current.indeterminate = Boolean(t));
|
|
@@ -73,7 +73,7 @@ const Tt = "_knob_1d6s8_56", kt = "_filler_1d6s8_61", St = "_checked_1d6s8_75",
|
|
|
73
73
|
{
|
|
74
74
|
type: "checkbox",
|
|
75
75
|
className: h(K.checkbox, K[c], s),
|
|
76
|
-
checked:
|
|
76
|
+
checked: r,
|
|
77
77
|
onChange: p,
|
|
78
78
|
ref: f,
|
|
79
79
|
...l
|
|
@@ -83,12 +83,12 @@ const Tt = "_knob_1d6s8_56", kt = "_filler_1d6s8_61", St = "_checked_1d6s8_75",
|
|
|
83
83
|
), Pe = ({
|
|
84
84
|
children: t,
|
|
85
85
|
label: e,
|
|
86
|
-
inputRef:
|
|
87
|
-
wrapperRef:
|
|
86
|
+
inputRef: n,
|
|
87
|
+
wrapperRef: r,
|
|
88
88
|
textColor: c,
|
|
89
89
|
...s
|
|
90
|
-
}) => /* @__PURE__ */ o("div", { ref:
|
|
91
|
-
/* @__PURE__ */ o(Ht, { ...s, ref:
|
|
90
|
+
}) => /* @__PURE__ */ o("div", { ref: r, children: /* @__PURE__ */ o("label", { children: /* @__PURE__ */ m(k, { alignItems: "center", children: [
|
|
91
|
+
/* @__PURE__ */ o(Ht, { ...s, ref: n }),
|
|
92
92
|
/* @__PURE__ */ o(y, {}),
|
|
93
93
|
e && /* @__PURE__ */ o(v, { userSelect: "none", color: c, children: e }),
|
|
94
94
|
t
|
|
@@ -97,10 +97,10 @@ const Tt = "_knob_1d6s8_56", kt = "_filler_1d6s8_61", St = "_checked_1d6s8_75",
|
|
|
97
97
|
standard: jt,
|
|
98
98
|
small: Pt
|
|
99
99
|
}, Q = P(
|
|
100
|
-
({ onChange: t, onValueChange: e, size:
|
|
100
|
+
({ onChange: t, onValueChange: e, size: n = "standard", name: r, ...c }, s) => {
|
|
101
101
|
const l = I(
|
|
102
|
-
(
|
|
103
|
-
t && t(
|
|
102
|
+
(a) => {
|
|
103
|
+
t && t(a), e && e(a.target.value);
|
|
104
104
|
},
|
|
105
105
|
[t, e]
|
|
106
106
|
);
|
|
@@ -108,8 +108,8 @@ const Tt = "_knob_1d6s8_56", kt = "_filler_1d6s8_61", St = "_checked_1d6s8_75",
|
|
|
108
108
|
"input",
|
|
109
109
|
{
|
|
110
110
|
type: "radio",
|
|
111
|
-
name:
|
|
112
|
-
className: M.radiobutton + " " + M[
|
|
111
|
+
name: r,
|
|
112
|
+
className: M.radiobutton + " " + M[n],
|
|
113
113
|
onChange: l,
|
|
114
114
|
ref: s,
|
|
115
115
|
...c
|
|
@@ -123,15 +123,15 @@ const Tt = "_knob_1d6s8_56", kt = "_filler_1d6s8_61", St = "_checked_1d6s8_75",
|
|
|
123
123
|
}, Ue = ({
|
|
124
124
|
label: t,
|
|
125
125
|
screenReaderLabel: e,
|
|
126
|
-
variant:
|
|
127
|
-
icon:
|
|
126
|
+
variant: n = "normal",
|
|
127
|
+
icon: r,
|
|
128
128
|
className: c,
|
|
129
129
|
style: s,
|
|
130
130
|
...l
|
|
131
131
|
}) => /* @__PURE__ */ o(
|
|
132
132
|
"label",
|
|
133
133
|
{
|
|
134
|
-
className: h(z.radioButtonBox, z[
|
|
134
|
+
className: h(z.radioButtonBox, z[n], c),
|
|
135
135
|
style: s,
|
|
136
136
|
children: /* @__PURE__ */ m(k, { justifyContent: "space-between", flexGrow: 1, children: [
|
|
137
137
|
/* @__PURE__ */ m(k, { alignItems: "center", children: [
|
|
@@ -140,44 +140,44 @@ const Tt = "_knob_1d6s8_56", kt = "_filler_1d6s8_61", St = "_checked_1d6s8_75",
|
|
|
140
140
|
e ? /* @__PURE__ */ o(O, { children: e }) : null,
|
|
141
141
|
/* @__PURE__ */ o(v, { "aria-hidden": Boolean(e), children: t })
|
|
142
142
|
] }),
|
|
143
|
-
/* @__PURE__ */ o(k, { alignItems: "center", width: "48px", justifyContent: "center", children:
|
|
143
|
+
/* @__PURE__ */ o(k, { alignItems: "center", width: "48px", justifyContent: "center", children: r && /* @__PURE__ */ o(F, { icon: r, size: 24 }) })
|
|
144
144
|
] })
|
|
145
145
|
}
|
|
146
146
|
), Fe = ({
|
|
147
147
|
label: t,
|
|
148
148
|
inputRef: e,
|
|
149
|
-
wrapperRef:
|
|
150
|
-
textColor:
|
|
149
|
+
wrapperRef: n,
|
|
150
|
+
textColor: r,
|
|
151
151
|
...c
|
|
152
|
-
}) => /* @__PURE__ */ o("div", { ref:
|
|
152
|
+
}) => /* @__PURE__ */ o("div", { ref: n, children: /* @__PURE__ */ o("label", { children: /* @__PURE__ */ m(k, { alignItems: "center", children: [
|
|
153
153
|
/* @__PURE__ */ o(Q, { ref: e, ...c }),
|
|
154
154
|
/* @__PURE__ */ o(y, {}),
|
|
155
|
-
/* @__PURE__ */ o(v, { color:
|
|
156
|
-
] }) }) }), Kt = (t, e,
|
|
157
|
-
const i = U(!1), f = (
|
|
158
|
-
var
|
|
159
|
-
i.current || s == null || s((
|
|
160
|
-
}, p = (
|
|
161
|
-
i.current = !1,
|
|
155
|
+
/* @__PURE__ */ o(v, { color: r, userSelect: "none", children: t })
|
|
156
|
+
] }) }) }), Kt = (t, e, n, r, c, s, l, a) => {
|
|
157
|
+
const i = U(!1), f = (d) => {
|
|
158
|
+
var _;
|
|
159
|
+
i.current || s == null || s((_ = d.target.value) != null ? _ : ""), l == null || l(d);
|
|
160
|
+
}, p = (d) => {
|
|
161
|
+
i.current = !1, a == null || a(d);
|
|
162
162
|
};
|
|
163
163
|
return {
|
|
164
164
|
onKeyDownHandler: I(
|
|
165
|
-
(
|
|
165
|
+
(d) => {
|
|
166
166
|
var b;
|
|
167
|
-
const { key:
|
|
168
|
-
if (
|
|
169
|
-
i.current = !0,
|
|
170
|
-
else if (
|
|
171
|
-
i.current = !0,
|
|
167
|
+
const { key: _ } = d;
|
|
168
|
+
if (_ === "Enter")
|
|
169
|
+
i.current = !0, n == null || n(), s == null || s((b = d.currentTarget.value) != null ? b : "");
|
|
170
|
+
else if (_ === "Escape")
|
|
171
|
+
i.current = !0, r == null || r(), d.preventDefault(), d.stopPropagation();
|
|
172
172
|
else if (c) {
|
|
173
173
|
const x = (g, B) => {
|
|
174
174
|
i.current = !0, t.current.blur(), c(g), B.preventDefault(), B.stopPropagation();
|
|
175
175
|
};
|
|
176
|
-
|
|
176
|
+
d.shiftKey && _ === "Tab" ? x("left", d) : _ === "Tab" ? x("right", d) : _ === "ArrowUp" ? x("up", d) : _ === "ArrowDown" ? x("down", d) : _ === "ArrowRight" ? t.current.value.length === t.current.selectionStart && x("right", d) : _ === "ArrowLeft" && t.current.selectionStart === 0 && x("left", d);
|
|
177
177
|
}
|
|
178
|
-
e && e(
|
|
178
|
+
e && e(d);
|
|
179
179
|
},
|
|
180
|
-
[
|
|
180
|
+
[r, c, e, t, n, s]
|
|
181
181
|
),
|
|
182
182
|
onBlurHandler: f,
|
|
183
183
|
onFocusHandler: p
|
|
@@ -186,49 +186,49 @@ const Tt = "_knob_1d6s8_56", kt = "_filler_1d6s8_61", St = "_checked_1d6s8_75",
|
|
|
186
186
|
function Mt(t) {
|
|
187
187
|
return t.tagName === "TEXTAREA" || t.tagName === "INPUT" && (t.type === "text" || t.type === "search" || t.type === "url" || t.type === "tel" || t.type === "password");
|
|
188
188
|
}
|
|
189
|
-
const zt = (t, e,
|
|
189
|
+
const zt = (t, e, n) => {
|
|
190
190
|
D(() => {
|
|
191
|
-
!t.current || !Mt(t.current) || (
|
|
191
|
+
!t.current || !Mt(t.current) || (n ? t.current.setSelectionRange(0, t.current.value.length) : e && t.current.setSelectionRange(
|
|
192
192
|
t.current.value.length,
|
|
193
193
|
t.current.value.length
|
|
194
194
|
));
|
|
195
|
-
}, [e, t,
|
|
195
|
+
}, [e, t, n]);
|
|
196
196
|
}, Ot = (t, {
|
|
197
197
|
onEnter: e,
|
|
198
|
-
onEsc:
|
|
199
|
-
onChange:
|
|
198
|
+
onEsc: n,
|
|
199
|
+
onChange: r,
|
|
200
200
|
onValueChange: c,
|
|
201
201
|
selectAllOnMount: s,
|
|
202
202
|
moveCursorToEndOnMount: l,
|
|
203
|
-
onDone:
|
|
203
|
+
onDone: a,
|
|
204
204
|
onMove: i,
|
|
205
205
|
onFocus: f,
|
|
206
206
|
onBlur: p,
|
|
207
|
-
onKeyDown:
|
|
208
|
-
autoFocus:
|
|
207
|
+
onKeyDown: u,
|
|
208
|
+
autoFocus: d
|
|
209
209
|
}) => {
|
|
210
210
|
zt(t, !!l, !!s);
|
|
211
|
-
const { onKeyDownHandler:
|
|
211
|
+
const { onKeyDownHandler: _, onFocusHandler: b, onBlurHandler: x } = Kt(
|
|
212
212
|
t,
|
|
213
|
-
|
|
213
|
+
u,
|
|
214
214
|
e,
|
|
215
|
-
|
|
215
|
+
n,
|
|
216
216
|
i,
|
|
217
|
-
|
|
217
|
+
a,
|
|
218
218
|
p,
|
|
219
219
|
f
|
|
220
220
|
), g = I(
|
|
221
221
|
(B) => {
|
|
222
|
-
|
|
222
|
+
r == null || r(B), c == null || c(B.target.value);
|
|
223
223
|
},
|
|
224
|
-
[
|
|
224
|
+
[r, c]
|
|
225
225
|
);
|
|
226
226
|
return {
|
|
227
227
|
onBlur: x,
|
|
228
228
|
onChange: g,
|
|
229
229
|
onFocus: b,
|
|
230
|
-
onKeyDown:
|
|
231
|
-
autoFocus: s ||
|
|
230
|
+
onKeyDown: _,
|
|
231
|
+
autoFocus: s || d
|
|
232
232
|
};
|
|
233
233
|
}, Dt = "_textInput_axgdw_1", Et = "_disabled_axgdw_11", Gt = "_input_axgdw_16", Xt = "_icon_axgdw_49", qt = "_standard_axgdw_59", Jt = "_success_axgdw_60", Qt = "_loading_axgdw_72", Yt = "_modified_axgdw_77", Zt = "_error_axgdw_86", Ct = "_warning_axgdw_95", Vt = "_hideBorder_axgdw_109", te = "_clickable_axgdw_116", w = {
|
|
234
234
|
textInput: Dt,
|
|
@@ -246,20 +246,20 @@ const zt = (t, e, r) => {
|
|
|
246
246
|
}, $ = ({
|
|
247
247
|
button: t,
|
|
248
248
|
icon: e,
|
|
249
|
-
iconClassName:
|
|
250
|
-
content:
|
|
249
|
+
iconClassName: n,
|
|
250
|
+
content: r,
|
|
251
251
|
spaceOnLeft: c,
|
|
252
252
|
spaceOnRight: s,
|
|
253
253
|
disableContentPadding: l,
|
|
254
|
-
disableContentPaddingLeft:
|
|
254
|
+
disableContentPaddingLeft: a,
|
|
255
255
|
disableContentPaddingRight: i
|
|
256
|
-
}) => !
|
|
256
|
+
}) => !r && !e && !t ? null : t ? /* @__PURE__ */ m(N, { children: [
|
|
257
257
|
c ? /* @__PURE__ */ o(y, { num: 0.25 }) : null,
|
|
258
258
|
t,
|
|
259
259
|
s ? /* @__PURE__ */ o(y, { num: 0.25 }) : null
|
|
260
|
-
] }) :
|
|
261
|
-
c && !(l ||
|
|
262
|
-
|
|
260
|
+
] }) : r ? /* @__PURE__ */ m(N, { children: [
|
|
261
|
+
c && !(l || a) ? /* @__PURE__ */ o(y, {}) : null,
|
|
262
|
+
r || null,
|
|
263
263
|
s && !(l || i) ? /* @__PURE__ */ o(y, {}) : null
|
|
264
264
|
] }) : /* @__PURE__ */ m(N, { children: [
|
|
265
265
|
c ? /* @__PURE__ */ o(y, {}) : null,
|
|
@@ -267,25 +267,25 @@ const zt = (t, e, r) => {
|
|
|
267
267
|
Bt,
|
|
268
268
|
{
|
|
269
269
|
icon: e,
|
|
270
|
-
className: h(w.icon,
|
|
270
|
+
className: h(w.icon, n)
|
|
271
271
|
}
|
|
272
272
|
),
|
|
273
273
|
s ? /* @__PURE__ */ o(y, {}) : null
|
|
274
274
|
] }), Y = (t) => {
|
|
275
275
|
const {
|
|
276
276
|
variant: e = "standard",
|
|
277
|
-
inputRef:
|
|
278
|
-
disabled:
|
|
277
|
+
inputRef: n,
|
|
278
|
+
disabled: r,
|
|
279
279
|
className: c,
|
|
280
280
|
buttonLeft: s,
|
|
281
281
|
buttonRight: l,
|
|
282
|
-
contentLeft:
|
|
282
|
+
contentLeft: a,
|
|
283
283
|
contentRight: i,
|
|
284
284
|
disableContentPadding: f,
|
|
285
285
|
disableContentPaddingLeft: p,
|
|
286
|
-
disableContentPaddingRight:
|
|
287
|
-
iconLeft:
|
|
288
|
-
iconRight:
|
|
286
|
+
disableContentPaddingRight: u,
|
|
287
|
+
iconLeft: d,
|
|
288
|
+
iconRight: _,
|
|
289
289
|
moveCursorToEndOnMount: b,
|
|
290
290
|
selectAllOnMount: x,
|
|
291
291
|
autoFocus: g,
|
|
@@ -302,7 +302,7 @@ const zt = (t, e, r) => {
|
|
|
302
302
|
onFocus: lt,
|
|
303
303
|
onBlur: it,
|
|
304
304
|
...at
|
|
305
|
-
} = t, dt = U(null), L =
|
|
305
|
+
} = t, dt = U(null), L = n != null ? n : dt, ut = Ot(L, {
|
|
306
306
|
onEnter: et,
|
|
307
307
|
onEsc: nt,
|
|
308
308
|
onChange: ot,
|
|
@@ -315,7 +315,7 @@ const zt = (t, e, r) => {
|
|
|
315
315
|
onBlur: it,
|
|
316
316
|
onKeyDown: ct,
|
|
317
317
|
autoFocus: g
|
|
318
|
-
}), _t = e === "success" ? G : e === "warning" || e === "error" ? X :
|
|
318
|
+
}), _t = e === "success" ? G : e === "warning" || e === "error" ? X : _, pt = e === "loading" ? /* @__PURE__ */ o(q, {}) : i;
|
|
319
319
|
return /* @__PURE__ */ m(
|
|
320
320
|
"div",
|
|
321
321
|
{
|
|
@@ -323,7 +323,7 @@ const zt = (t, e, r) => {
|
|
|
323
323
|
w.textInput,
|
|
324
324
|
w[e],
|
|
325
325
|
{
|
|
326
|
-
[w.disabled]:
|
|
326
|
+
[w.disabled]: r
|
|
327
327
|
},
|
|
328
328
|
{
|
|
329
329
|
[w.hideBorder]: st
|
|
@@ -335,11 +335,11 @@ const zt = (t, e, r) => {
|
|
|
335
335
|
/* @__PURE__ */ o(
|
|
336
336
|
$,
|
|
337
337
|
{
|
|
338
|
-
content:
|
|
338
|
+
content: a,
|
|
339
339
|
disableContentPadding: f,
|
|
340
340
|
disableContentPaddingLeft: p,
|
|
341
|
-
disableContentPaddingRight:
|
|
342
|
-
icon:
|
|
341
|
+
disableContentPaddingRight: u,
|
|
342
|
+
icon: d,
|
|
343
343
|
spaceOnLeft: !0,
|
|
344
344
|
button: s
|
|
345
345
|
}
|
|
@@ -349,7 +349,7 @@ const zt = (t, e, r) => {
|
|
|
349
349
|
{
|
|
350
350
|
className: h(w.input, c),
|
|
351
351
|
type: "text",
|
|
352
|
-
disabled:
|
|
352
|
+
disabled: r,
|
|
353
353
|
ref: L,
|
|
354
354
|
autoFocus: g,
|
|
355
355
|
...at,
|
|
@@ -362,7 +362,7 @@ const zt = (t, e, r) => {
|
|
|
362
362
|
content: pt,
|
|
363
363
|
disableContentPadding: f,
|
|
364
364
|
disableContentPaddingLeft: p,
|
|
365
|
-
disableContentPaddingRight:
|
|
365
|
+
disableContentPaddingRight: u,
|
|
366
366
|
icon: _t,
|
|
367
367
|
spaceOnRight: !0,
|
|
368
368
|
button: l
|
|
@@ -376,55 +376,55 @@ const zt = (t, e, r) => {
|
|
|
376
376
|
}, re = ({
|
|
377
377
|
onValueChange: t,
|
|
378
378
|
value: e,
|
|
379
|
-
numSteps:
|
|
380
|
-
min:
|
|
379
|
+
numSteps: n,
|
|
380
|
+
min: r,
|
|
381
381
|
max: c
|
|
382
382
|
}) => {
|
|
383
383
|
if (t)
|
|
384
384
|
if (!e)
|
|
385
|
-
t(String(H(
|
|
385
|
+
t(String(H(n, r, c)));
|
|
386
386
|
else {
|
|
387
|
-
const l = (j(e) || 0) +
|
|
388
|
-
t(String(H(l,
|
|
387
|
+
const l = (j(e) || 0) + n;
|
|
388
|
+
t(String(H(l, r, c)));
|
|
389
389
|
}
|
|
390
390
|
}, oe = ({
|
|
391
391
|
onValueChange: t,
|
|
392
392
|
newValue: e,
|
|
393
|
-
min:
|
|
394
|
-
max:
|
|
393
|
+
min: n,
|
|
394
|
+
max: r
|
|
395
395
|
}) => {
|
|
396
396
|
if (t)
|
|
397
397
|
if (e === "")
|
|
398
398
|
t("");
|
|
399
399
|
else {
|
|
400
400
|
const s = j(e) || 0;
|
|
401
|
-
t(String(H(s,
|
|
401
|
+
t(String(H(s, n, r)));
|
|
402
402
|
}
|
|
403
|
-
}, H = (t, e,
|
|
404
|
-
let
|
|
405
|
-
return e != null && (
|
|
403
|
+
}, H = (t, e, n) => {
|
|
404
|
+
let r = t;
|
|
405
|
+
return e != null && (r = Math.max(e, r)), n != null && (r = Math.min(n, r)), r;
|
|
406
406
|
}, Le = ({
|
|
407
407
|
value: t,
|
|
408
408
|
onValueChange: e,
|
|
409
|
-
max:
|
|
410
|
-
min:
|
|
409
|
+
max: n,
|
|
410
|
+
min: r,
|
|
411
411
|
step: c = 1,
|
|
412
412
|
contentRight: s,
|
|
413
413
|
disabled: l,
|
|
414
|
-
className:
|
|
414
|
+
className: a,
|
|
415
415
|
hideButtons: i,
|
|
416
416
|
...f
|
|
417
417
|
}) => {
|
|
418
418
|
const p = I(
|
|
419
|
-
(
|
|
420
|
-
re({ onValueChange: e, value: t, numSteps:
|
|
419
|
+
(_) => {
|
|
420
|
+
re({ onValueChange: e, value: t, numSteps: _, min: r, max: n });
|
|
421
421
|
},
|
|
422
|
-
[t,
|
|
423
|
-
),
|
|
424
|
-
(
|
|
425
|
-
oe({ onValueChange: e, newValue:
|
|
422
|
+
[t, n, r, e]
|
|
423
|
+
), u = I(
|
|
424
|
+
(_) => {
|
|
425
|
+
oe({ onValueChange: e, newValue: _, min: r, max: n });
|
|
426
426
|
},
|
|
427
|
-
[
|
|
427
|
+
[n, r, e]
|
|
428
428
|
);
|
|
429
429
|
return /* @__PURE__ */ o(
|
|
430
430
|
Y,
|
|
@@ -445,19 +445,19 @@ const zt = (t, e, r) => {
|
|
|
445
445
|
)
|
|
446
446
|
] }),
|
|
447
447
|
value: t,
|
|
448
|
-
onValueChange:
|
|
448
|
+
onValueChange: u,
|
|
449
449
|
disableContentPaddingRight: !i,
|
|
450
450
|
type: "number",
|
|
451
|
-
min:
|
|
452
|
-
max:
|
|
451
|
+
min: r,
|
|
452
|
+
max: n,
|
|
453
453
|
step: c,
|
|
454
|
-
className: h(ne.numericTextInputInput,
|
|
454
|
+
className: h(ne.numericTextInputInput, a),
|
|
455
455
|
disabled: l,
|
|
456
456
|
...f
|
|
457
457
|
}
|
|
458
458
|
);
|
|
459
459
|
}, Ke = (t, e) => {
|
|
460
|
-
const
|
|
460
|
+
const n = I(
|
|
461
461
|
(c) => {
|
|
462
462
|
if (e)
|
|
463
463
|
if (!c)
|
|
@@ -468,10 +468,10 @@ const zt = (t, e, r) => {
|
|
|
468
468
|
}
|
|
469
469
|
},
|
|
470
470
|
[e]
|
|
471
|
-
),
|
|
471
|
+
), r = ht(() => t === void 0 ? "" : String(t), [t]);
|
|
472
472
|
return {
|
|
473
|
-
onValueChange:
|
|
474
|
-
value:
|
|
473
|
+
onValueChange: n,
|
|
474
|
+
value: r
|
|
475
475
|
};
|
|
476
476
|
}, ce = "_textInputButton_t6d0j_1", se = "_normal_t6d0j_13", le = "_icon_t6d0j_22", ie = "_error_t6d0j_27", A = {
|
|
477
477
|
textInputButton: ce,
|
|
@@ -481,53 +481,53 @@ const zt = (t, e, r) => {
|
|
|
481
481
|
}, W = ({
|
|
482
482
|
variant: t = "normal",
|
|
483
483
|
icon: e,
|
|
484
|
-
className:
|
|
485
|
-
...
|
|
484
|
+
className: n,
|
|
485
|
+
...r
|
|
486
486
|
}) => /* @__PURE__ */ o(
|
|
487
487
|
"button",
|
|
488
488
|
{
|
|
489
|
-
...
|
|
490
|
-
className: h(A.textInputButton, A[t],
|
|
489
|
+
...r,
|
|
490
|
+
className: h(A.textInputButton, A[t], n),
|
|
491
491
|
children: /* @__PURE__ */ o(F, { icon: e, size: 20, className: A.icon })
|
|
492
492
|
}
|
|
493
493
|
), Me = ({
|
|
494
494
|
hiddenIcon: t = wt,
|
|
495
495
|
visibleIcon: e = It,
|
|
496
|
-
...
|
|
496
|
+
...n
|
|
497
497
|
}) => {
|
|
498
|
-
const [
|
|
498
|
+
const [r, c] = bt(!0);
|
|
499
499
|
return /* @__PURE__ */ o(
|
|
500
500
|
Y,
|
|
501
501
|
{
|
|
502
502
|
buttonRight: /* @__PURE__ */ o(
|
|
503
503
|
W,
|
|
504
504
|
{
|
|
505
|
-
icon:
|
|
505
|
+
icon: r ? t : e,
|
|
506
506
|
onClick: () => c((s) => !s)
|
|
507
507
|
}
|
|
508
508
|
),
|
|
509
|
-
type:
|
|
510
|
-
...
|
|
509
|
+
type: r ? "password" : "text",
|
|
510
|
+
...n
|
|
511
511
|
}
|
|
512
512
|
);
|
|
513
513
|
}, ae = ({
|
|
514
514
|
disabled: t,
|
|
515
515
|
text: e,
|
|
516
|
-
...
|
|
516
|
+
...n
|
|
517
517
|
}) => /* @__PURE__ */ o(
|
|
518
518
|
v,
|
|
519
519
|
{
|
|
520
520
|
variant: "bold",
|
|
521
521
|
color: J(t ? "--silver" : "--tjara"),
|
|
522
522
|
size: "small",
|
|
523
|
-
...mt(
|
|
523
|
+
...mt(n),
|
|
524
524
|
children: e
|
|
525
525
|
}
|
|
526
526
|
), Z = ({
|
|
527
527
|
htmlFor: t,
|
|
528
528
|
screenReaderLabel: e,
|
|
529
|
-
label:
|
|
530
|
-
disabled:
|
|
529
|
+
label: n,
|
|
530
|
+
disabled: r,
|
|
531
531
|
className: c
|
|
532
532
|
}) => /* @__PURE__ */ m("label", { htmlFor: t, className: c, children: [
|
|
533
533
|
e ? /* @__PURE__ */ o(O, { children: e }) : null,
|
|
@@ -535,8 +535,8 @@ const zt = (t, e, r) => {
|
|
|
535
535
|
ae,
|
|
536
536
|
{
|
|
537
537
|
"aria-hidden": Boolean(e),
|
|
538
|
-
text:
|
|
539
|
-
disabled:
|
|
538
|
+
text: n,
|
|
539
|
+
disabled: r
|
|
540
540
|
}
|
|
541
541
|
)
|
|
542
542
|
] }), de = "_labelledSelect_1evxo_1", ue = "_onlyTopBorder_1evxo_8", _e = "_onlyBottomBorder_1evxo_14", pe = "_error_1evxo_19", fe = "_normal_1evxo_24", me = "_label_1evxo_1", xe = "_select_1evxo_48", he = "_iconWrapper_1evxo_73", T = {
|
|
@@ -549,51 +549,48 @@ const zt = (t, e, r) => {
|
|
|
549
549
|
select: xe,
|
|
550
550
|
iconWrapper: he
|
|
551
551
|
}, ze = ({
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
...f
|
|
552
|
+
onChange: t,
|
|
553
|
+
onValueChange: e,
|
|
554
|
+
id: n,
|
|
555
|
+
label: r,
|
|
556
|
+
screenReaderLabel: c,
|
|
557
|
+
borderVariant: s = "normalBorder",
|
|
558
|
+
variant: l = "normal",
|
|
559
|
+
children: a,
|
|
560
|
+
...i
|
|
562
561
|
}) => {
|
|
563
|
-
const
|
|
564
|
-
(
|
|
565
|
-
|
|
562
|
+
const f = E(), p = n != null ? n : f, u = I(
|
|
563
|
+
(d) => {
|
|
564
|
+
t == null || t(d), e == null || e(d.target.value);
|
|
566
565
|
},
|
|
567
|
-
[
|
|
566
|
+
[t, e]
|
|
568
567
|
);
|
|
569
568
|
return /* @__PURE__ */ m(
|
|
570
569
|
"div",
|
|
571
570
|
{
|
|
572
571
|
className: h(
|
|
573
572
|
T.labelledSelect,
|
|
574
|
-
T[
|
|
575
|
-
T[
|
|
573
|
+
T[l],
|
|
574
|
+
T[s]
|
|
576
575
|
),
|
|
577
576
|
children: [
|
|
578
577
|
/* @__PURE__ */ o(
|
|
579
578
|
Z,
|
|
580
579
|
{
|
|
581
|
-
htmlFor:
|
|
580
|
+
htmlFor: p,
|
|
582
581
|
className: T.label,
|
|
583
|
-
label:
|
|
584
|
-
screenReaderLabel:
|
|
582
|
+
label: r,
|
|
583
|
+
screenReaderLabel: c
|
|
585
584
|
}
|
|
586
585
|
),
|
|
587
586
|
/* @__PURE__ */ o(
|
|
588
587
|
"select",
|
|
589
588
|
{
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
...f,
|
|
596
|
-
children: i
|
|
589
|
+
id: p,
|
|
590
|
+
onChange: u,
|
|
591
|
+
className: h(T.select, T[l]),
|
|
592
|
+
...i,
|
|
593
|
+
children: a
|
|
597
594
|
}
|
|
598
595
|
),
|
|
599
596
|
/* @__PURE__ */ o("div", { className: h(T.iconWrapper), children: /* @__PURE__ */ o(
|
|
@@ -619,18 +616,18 @@ const zt = (t, e, r) => {
|
|
|
619
616
|
({
|
|
620
617
|
autoComplete: t = "off",
|
|
621
618
|
label: e,
|
|
622
|
-
id:
|
|
623
|
-
screenReaderLabel:
|
|
619
|
+
id: n,
|
|
620
|
+
screenReaderLabel: r,
|
|
624
621
|
size: c = "medium",
|
|
625
622
|
value: s,
|
|
626
623
|
onChange: l,
|
|
627
|
-
disabled:
|
|
624
|
+
disabled: a,
|
|
628
625
|
onValueChange: i,
|
|
629
626
|
borderRadiusVariant: f = "normalBorder",
|
|
630
627
|
variant: p = "normal",
|
|
631
|
-
...
|
|
632
|
-
},
|
|
633
|
-
const
|
|
628
|
+
...u
|
|
629
|
+
}, d) => {
|
|
630
|
+
const _ = E(), b = n != null ? n : _, x = I(
|
|
634
631
|
(g) => {
|
|
635
632
|
l == null || l(g), i == null || i(g.target.value);
|
|
636
633
|
},
|
|
@@ -644,28 +641,28 @@ const zt = (t, e, r) => {
|
|
|
644
641
|
S[p],
|
|
645
642
|
S[f],
|
|
646
643
|
S[c],
|
|
647
|
-
|
|
644
|
+
a && S.disabled
|
|
648
645
|
),
|
|
649
646
|
children: [
|
|
650
647
|
/* @__PURE__ */ o(
|
|
651
648
|
Z,
|
|
652
649
|
{
|
|
653
650
|
htmlFor: b,
|
|
654
|
-
screenReaderLabel:
|
|
651
|
+
screenReaderLabel: r,
|
|
655
652
|
label: e
|
|
656
653
|
}
|
|
657
654
|
),
|
|
658
655
|
/* @__PURE__ */ o(
|
|
659
656
|
"input",
|
|
660
657
|
{
|
|
661
|
-
ref:
|
|
658
|
+
ref: d,
|
|
662
659
|
id: b,
|
|
663
660
|
autoComplete: t,
|
|
664
661
|
type: "text",
|
|
665
662
|
value: s,
|
|
666
663
|
onChange: x,
|
|
667
|
-
disabled:
|
|
668
|
-
...
|
|
664
|
+
disabled: a,
|
|
665
|
+
...u
|
|
669
666
|
}
|
|
670
667
|
)
|
|
671
668
|
]
|
|
@@ -675,18 +672,18 @@ const zt = (t, e, r) => {
|
|
|
675
672
|
), De = ({
|
|
676
673
|
variant: t = "standard",
|
|
677
674
|
disabled: e,
|
|
678
|
-
wrapperClassName:
|
|
679
|
-
wrapperStyle:
|
|
675
|
+
wrapperClassName: n,
|
|
676
|
+
wrapperStyle: r,
|
|
680
677
|
contentLeft: c,
|
|
681
678
|
contentRight: s,
|
|
682
679
|
disableContentPadding: l,
|
|
683
|
-
disableContentPaddingLeft:
|
|
680
|
+
disableContentPaddingLeft: a,
|
|
684
681
|
disableContentPaddingRight: i,
|
|
685
682
|
iconRight: f,
|
|
686
683
|
iconLeft: p,
|
|
687
|
-
onClickLeft:
|
|
688
|
-
onClickRight:
|
|
689
|
-
children:
|
|
684
|
+
onClickLeft: u,
|
|
685
|
+
onClickRight: d,
|
|
686
|
+
children: _
|
|
690
687
|
}) => {
|
|
691
688
|
const b = t === "success" ? G : t === "warning" || t === "error" ? X : f, x = t === "loading" ? /* @__PURE__ */ o(q, {}) : s;
|
|
692
689
|
return /* @__PURE__ */ m(
|
|
@@ -699,31 +696,31 @@ const zt = (t, e, r) => {
|
|
|
699
696
|
{
|
|
700
697
|
[w.disabled]: e
|
|
701
698
|
},
|
|
702
|
-
|
|
699
|
+
n
|
|
703
700
|
),
|
|
704
|
-
style:
|
|
701
|
+
style: r,
|
|
705
702
|
children: [
|
|
706
703
|
/* @__PURE__ */ o(
|
|
707
704
|
$,
|
|
708
705
|
{
|
|
709
706
|
content: c,
|
|
710
707
|
disableContentPadding: l,
|
|
711
|
-
disableContentPaddingLeft:
|
|
708
|
+
disableContentPaddingLeft: a,
|
|
712
709
|
disableContentPaddingRight: i,
|
|
713
710
|
spaceOnLeft: !0,
|
|
714
|
-
button: p ? /* @__PURE__ */ o(W, { onClick:
|
|
711
|
+
button: p ? /* @__PURE__ */ o(W, { onClick: u, icon: p }) : void 0
|
|
715
712
|
}
|
|
716
713
|
),
|
|
717
|
-
/* @__PURE__ */ o(k, { alignItems: "center", children:
|
|
714
|
+
/* @__PURE__ */ o(k, { alignItems: "center", children: _ }),
|
|
718
715
|
/* @__PURE__ */ o(
|
|
719
716
|
$,
|
|
720
717
|
{
|
|
721
718
|
content: x,
|
|
722
719
|
disableContentPadding: l,
|
|
723
|
-
disableContentPaddingLeft:
|
|
720
|
+
disableContentPaddingLeft: a,
|
|
724
721
|
disableContentPaddingRight: i,
|
|
725
722
|
spaceOnRight: !0,
|
|
726
|
-
button: b ? /* @__PURE__ */ o(W, { onClick:
|
|
723
|
+
button: b ? /* @__PURE__ */ o(W, { onClick: d, icon: b }) : void 0
|
|
727
724
|
}
|
|
728
725
|
)
|
|
729
726
|
]
|
|
@@ -735,24 +732,24 @@ const zt = (t, e, r) => {
|
|
|
735
732
|
({
|
|
736
733
|
className: t,
|
|
737
734
|
value: e,
|
|
738
|
-
onValueChange:
|
|
739
|
-
onChange:
|
|
735
|
+
onValueChange: n,
|
|
736
|
+
onChange: r,
|
|
740
737
|
resize: c = "none",
|
|
741
738
|
readOnly: s = !1,
|
|
742
739
|
rows: l,
|
|
743
|
-
disabled:
|
|
740
|
+
disabled: a,
|
|
744
741
|
...i
|
|
745
742
|
}, f) => {
|
|
746
743
|
const p = I(
|
|
747
|
-
(
|
|
748
|
-
|
|
744
|
+
(u) => {
|
|
745
|
+
r && r(u), n && n(u.target.value);
|
|
749
746
|
},
|
|
750
|
-
[
|
|
747
|
+
[r, n]
|
|
751
748
|
);
|
|
752
749
|
return /* @__PURE__ */ o(
|
|
753
750
|
"textarea",
|
|
754
751
|
{
|
|
755
|
-
disabled:
|
|
752
|
+
disabled: a,
|
|
756
753
|
rows: l,
|
|
757
754
|
readOnly: s,
|
|
758
755
|
className: h(Se.textArea, t),
|