@stenajs-webui/forms 20.6.11 → 20.7.1
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/checkbox/Checkbox.d.ts +1 -1
- package/dist/components/ui/labelled-select/LabelledSelect.d.ts +2 -2
- package/dist/components/ui/labelled-text-input/LabelledTextInput.d.ts +3 -3
- package/dist/components/ui/numeric-text-input/hooks/UseNumericInputValue.d.ts +2 -2
- package/dist/components/ui/radio/RadioButton.d.ts +1 -1
- package/dist/components/ui/radio/RadioButtonBox.d.ts +16 -3
- package/dist/components/ui/text-area/TextArea.d.ts +1 -1
- package/dist/components/ui/text-input/TextInput.d.ts +1 -1
- package/dist/components/ui/types.d.ts +3 -3
- package/dist/hooks/UseKeyboardNavigation.d.ts +2 -2
- package/dist/index.es.js +74 -74
- 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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { ChangeEvent, ComponentPropsWithoutRef } from "react";
|
|
3
3
|
import { FullOnChangeProps } from "../types";
|
|
4
|
-
export
|
|
4
|
+
export type CheckboxSize = "standard" | "small";
|
|
5
5
|
export interface CheckboxProps extends FullOnChangeProps<boolean, ChangeEvent<HTMLInputElement>>, Omit<ComponentPropsWithoutRef<"input">, "size" | "value"> {
|
|
6
6
|
indeterminate?: boolean;
|
|
7
7
|
size?: CheckboxSize;
|
|
@@ -2,7 +2,7 @@ import * as React from "react";
|
|
|
2
2
|
import { PropsWithChildren } from "react";
|
|
3
3
|
import { ValueAndOnValueChangeProps } from "../types";
|
|
4
4
|
import { SelectElementProps } from "@stenajs-webui/core";
|
|
5
|
-
export
|
|
5
|
+
export type SelectBorderVariant = "normalBorder" | "onlyTopBorder" | "onlyBottomBorder";
|
|
6
6
|
export interface LabelledSelectProps extends ValueAndOnValueChangeProps<string>, PropsWithChildren, Omit<SelectElementProps, "value"> {
|
|
7
7
|
id?: string;
|
|
8
8
|
name: string;
|
|
@@ -11,5 +11,5 @@ export interface LabelledSelectProps extends ValueAndOnValueChangeProps<string>,
|
|
|
11
11
|
borderVariant?: SelectBorderVariant;
|
|
12
12
|
variant?: LabelledSelectVariant;
|
|
13
13
|
}
|
|
14
|
-
export
|
|
14
|
+
export type LabelledSelectVariant = "normal" | "error";
|
|
15
15
|
export declare const LabelledSelect: React.FC<LabelledSelectProps>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { InputElementProps } from "@stenajs-webui/core";
|
|
3
3
|
import { ValueAndOnValueChangeProps } from "../types";
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
4
|
+
export type LabelledTextInputVariant = "normal" | "error";
|
|
5
|
+
export type LabelledTextInputSize = "medium" | "large";
|
|
6
|
+
export type LabelledTextInputBorderVariant = "normalBorder" | "onlyTop" | "onlyBottom";
|
|
7
7
|
export interface LabelledTextInputProps extends Omit<InputElementProps, "value" | "size">, ValueAndOnValueChangeProps<string> {
|
|
8
8
|
id?: string;
|
|
9
9
|
label?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ValueAndOnValueChangeProps } from "../../types";
|
|
2
2
|
import { NumericTextInputProps } from "../NumericTextInput";
|
|
3
|
-
export
|
|
4
|
-
export declare const useNumericInputValue: (value: number | undefined, onValueChange?: (
|
|
3
|
+
export type NumericInputValueProps = ValueAndOnValueChangeProps<number | undefined>;
|
|
4
|
+
export declare const useNumericInputValue: (value: number | undefined, onValueChange?: (value: number | undefined) => void) => Partial<NumericTextInputProps>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { ChangeEvent, ComponentPropsWithoutRef } from "react";
|
|
3
3
|
import { FullOnChangeProps } from "../types";
|
|
4
|
-
export
|
|
4
|
+
export type RadioButtonSize = "standard" | "small";
|
|
5
5
|
export interface RadioButtonProps extends FullOnChangeProps<string, ChangeEvent<HTMLInputElement>>, Omit<ComponentPropsWithoutRef<"input">, "size" | "value"> {
|
|
6
6
|
size?: RadioButtonSize;
|
|
7
7
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { IconDefinition } from "@fortawesome/fontawesome-svg-core";
|
|
2
2
|
import * as React from "react";
|
|
3
|
+
import { ReactNode } from "react";
|
|
3
4
|
import { RadioButtonProps } from "./RadioButton";
|
|
4
|
-
export
|
|
5
|
-
export
|
|
5
|
+
export type RadioButtonBoxVariant = "normal" | "danger";
|
|
6
|
+
export type RadioButtonBoxProps = RadioButtonBoxNoRightProps | RadioButtonBoxIconProps | RadioButtonBoxContentRightProps;
|
|
7
|
+
export interface RadioButtonBoxCommonProps extends RadioButtonProps {
|
|
6
8
|
label?: string;
|
|
7
9
|
/**
|
|
8
10
|
* If set, this label is used by screen readers instead of label prop.
|
|
@@ -11,7 +13,18 @@ export interface RadioButtonBoxProps extends RadioButtonProps {
|
|
|
11
13
|
*/
|
|
12
14
|
screenReaderLabel?: string;
|
|
13
15
|
variant?: RadioButtonBoxVariant;
|
|
14
|
-
icon?: IconDefinition;
|
|
15
16
|
radioButtonClassName?: string;
|
|
16
17
|
}
|
|
18
|
+
export interface RadioButtonBoxNoRightProps extends RadioButtonBoxCommonProps {
|
|
19
|
+
icon?: never;
|
|
20
|
+
contentRight?: never;
|
|
21
|
+
}
|
|
22
|
+
export interface RadioButtonBoxIconProps extends RadioButtonBoxCommonProps {
|
|
23
|
+
icon: IconDefinition;
|
|
24
|
+
contentRight?: never;
|
|
25
|
+
}
|
|
26
|
+
export interface RadioButtonBoxContentRightProps extends RadioButtonBoxCommonProps {
|
|
27
|
+
icon?: never;
|
|
28
|
+
contentRight: ReactNode;
|
|
29
|
+
}
|
|
17
30
|
export declare const RadioButtonBox: React.FC<RadioButtonBoxProps>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { ChangeEvent, ComponentPropsWithoutRef } from "react";
|
|
3
3
|
import { FullOnChangeProps } from "../types";
|
|
4
|
-
|
|
4
|
+
type Resize = "none" | "both" | "horizontal" | "vertical" | "inherit" | "initial" | "revert" | "unset";
|
|
5
5
|
export interface TextAreaProps extends Omit<ComponentPropsWithoutRef<"textarea">, "value">, FullOnChangeProps<string, ChangeEvent<HTMLTextAreaElement>> {
|
|
6
6
|
resize?: Resize;
|
|
7
7
|
readOnly?: boolean;
|
|
@@ -4,7 +4,7 @@ import * as React from "react";
|
|
|
4
4
|
import { ChangeEvent, CSSProperties } from "react";
|
|
5
5
|
import { MoveDirection } from "../../../hooks/UseKeyboardNavigation";
|
|
6
6
|
import { FullOnChangeProps } from "../types";
|
|
7
|
-
export
|
|
7
|
+
export type TextInputVariant = "standard" | "loading" | "warning" | "error" | "modified" | "success";
|
|
8
8
|
interface ExtraContent {
|
|
9
9
|
/** React node to put to the left. Left icon is ignored if this is set. */
|
|
10
10
|
contentLeft?: React.ReactNode;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ChangeEvent } from "react";
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
2
|
+
export type FullOnChangeProps<TValue, TEvent extends ChangeEvent> = ValueProps<TValue> & OnChangeProps<TEvent> & OnValueChangeProps<TValue>;
|
|
3
|
+
export type ValueAndOnChangeProps<TValue, TEvent extends ChangeEvent> = ValueProps<TValue> & OnChangeProps<TEvent>;
|
|
4
|
+
export type ValueAndOnValueChangeProps<TValue> = ValueProps<TValue> & OnValueChangeProps<TValue>;
|
|
5
5
|
interface ValueProps<TValue> {
|
|
6
6
|
/** The value of the input. */
|
|
7
7
|
value?: TValue;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FocusEventHandler, KeyboardEventHandler, RefObject } from "react";
|
|
2
|
-
export
|
|
3
|
-
export
|
|
2
|
+
export type MoveDirection = "right" | "left" | "down" | "up";
|
|
3
|
+
export type TextInputElement = HTMLTextAreaElement | HTMLInputElement;
|
|
4
4
|
export declare const useKeyboardNavigation: <TElement extends TextInputElement>(ref: RefObject<TElement>, onKeyDown: KeyboardEventHandler<TElement> | undefined, onEnter: (() => void) | undefined, onEsc: (() => void) | undefined, onMove: ((direction: MoveDirection) => void) | undefined, onDone: ((value: string) => void) | undefined, onBlur: FocusEventHandler<TElement> | undefined, onFocus: FocusEventHandler<TElement> | undefined) => {
|
|
5
5
|
onKeyDownHandler: KeyboardEventHandler<TElement>;
|
|
6
6
|
onBlurHandler: FocusEventHandler<TElement>;
|
package/dist/index.es.js
CHANGED
|
@@ -56,10 +56,10 @@ const Bt = "_knob_1d6s8_56", Tt = "_filler_1d6s8_61", kt = "_checked_1d6s8_75",
|
|
|
56
56
|
value: r = !1,
|
|
57
57
|
size: c = "standard",
|
|
58
58
|
className: s,
|
|
59
|
-
...
|
|
59
|
+
...i
|
|
60
60
|
}, a) => {
|
|
61
|
-
const
|
|
62
|
-
|
|
61
|
+
const l = P(), f = (u) => {
|
|
62
|
+
l.current = u, l.current && (l.current.indeterminate = !!t), a && (typeof a == "function" ? a(u) : a.current = u);
|
|
63
63
|
}, _ = g(
|
|
64
64
|
(u) => {
|
|
65
65
|
e && e(u), n && n(u.target.checked);
|
|
@@ -67,8 +67,8 @@ const Bt = "_knob_1d6s8_56", Tt = "_filler_1d6s8_61", kt = "_checked_1d6s8_75",
|
|
|
67
67
|
[e, n]
|
|
68
68
|
);
|
|
69
69
|
return z(() => {
|
|
70
|
-
|
|
71
|
-
}, [t,
|
|
70
|
+
l.current && (l.current.indeterminate = !!t);
|
|
71
|
+
}, [t, l]), /* @__PURE__ */ o(
|
|
72
72
|
"input",
|
|
73
73
|
{
|
|
74
74
|
type: "checkbox",
|
|
@@ -76,7 +76,7 @@ const Bt = "_knob_1d6s8_56", Tt = "_filler_1d6s8_61", kt = "_checked_1d6s8_75",
|
|
|
76
76
|
checked: r,
|
|
77
77
|
onChange: _,
|
|
78
78
|
ref: f,
|
|
79
|
-
...
|
|
79
|
+
...i
|
|
80
80
|
}
|
|
81
81
|
);
|
|
82
82
|
}
|
|
@@ -104,10 +104,10 @@ const Bt = "_knob_1d6s8_56", Tt = "_filler_1d6s8_61", kt = "_checked_1d6s8_75",
|
|
|
104
104
|
name: r,
|
|
105
105
|
className: c,
|
|
106
106
|
...s
|
|
107
|
-
},
|
|
107
|
+
}, i) => {
|
|
108
108
|
const a = g(
|
|
109
|
-
(
|
|
110
|
-
t && t(
|
|
109
|
+
(l) => {
|
|
110
|
+
t && t(l), e && e(l.target.value);
|
|
111
111
|
},
|
|
112
112
|
[t, e]
|
|
113
113
|
);
|
|
@@ -118,7 +118,7 @@ const Bt = "_knob_1d6s8_56", Tt = "_filler_1d6s8_61", kt = "_checked_1d6s8_75",
|
|
|
118
118
|
name: r,
|
|
119
119
|
className: h(L.radiobutton, L[n], c),
|
|
120
120
|
onChange: a,
|
|
121
|
-
ref:
|
|
121
|
+
ref: i,
|
|
122
122
|
...s
|
|
123
123
|
}
|
|
124
124
|
);
|
|
@@ -131,25 +131,25 @@ const Bt = "_knob_1d6s8_56", Tt = "_filler_1d6s8_61", kt = "_checked_1d6s8_75",
|
|
|
131
131
|
label: t,
|
|
132
132
|
screenReaderLabel: e,
|
|
133
133
|
variant: n = "normal",
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
134
|
+
className: r,
|
|
135
|
+
icon: c,
|
|
136
|
+
contentRight: s,
|
|
137
|
+
style: i,
|
|
138
|
+
radioButtonClassName: a,
|
|
139
|
+
...l
|
|
139
140
|
}) => /* @__PURE__ */ o(
|
|
140
141
|
"label",
|
|
141
142
|
{
|
|
142
|
-
className: h(K.radioButtonBox, K[n],
|
|
143
|
-
style:
|
|
144
|
-
children: /* @__PURE__ */
|
|
145
|
-
/* @__PURE__ */
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
] })
|
|
143
|
+
className: h(K.radioButtonBox, K[n], r),
|
|
144
|
+
style: i,
|
|
145
|
+
children: /* @__PURE__ */ o(T, { justifyContent: "space-between", flexGrow: 1, children: /* @__PURE__ */ b(T, { alignItems: "center", children: [
|
|
146
|
+
/* @__PURE__ */ o(J, { ...l, className: a }),
|
|
147
|
+
/* @__PURE__ */ o(x, {}),
|
|
148
|
+
e ? /* @__PURE__ */ o(M, { children: e }) : null,
|
|
149
|
+
/* @__PURE__ */ o(N, { "aria-hidden": !!e, children: t }),
|
|
150
|
+
c && /* @__PURE__ */ o(T, { alignItems: "center", width: "48px", justifyContent: "center", children: /* @__PURE__ */ o(D, { icon: c, size: 24 }) }),
|
|
151
|
+
s && /* @__PURE__ */ o(T, { alignItems: "center", justifyContent: "center", children: s })
|
|
152
|
+
] }) })
|
|
153
153
|
}
|
|
154
154
|
), Ae = ({
|
|
155
155
|
label: t,
|
|
@@ -161,23 +161,23 @@ const Bt = "_knob_1d6s8_56", Tt = "_filler_1d6s8_61", kt = "_checked_1d6s8_75",
|
|
|
161
161
|
/* @__PURE__ */ o(J, { ref: e, ...c }),
|
|
162
162
|
/* @__PURE__ */ o(x, {}),
|
|
163
163
|
/* @__PURE__ */ o(N, { color: r, userSelect: "none", children: t })
|
|
164
|
-
] }) }) }), Lt = (t, e, n, r, c, s,
|
|
165
|
-
const
|
|
166
|
-
|
|
164
|
+
] }) }) }), Lt = (t, e, n, r, c, s, i, a) => {
|
|
165
|
+
const l = P(!1), f = (d) => {
|
|
166
|
+
l.current || s == null || s(d.target.value ?? ""), i == null || i(d);
|
|
167
167
|
}, _ = (d) => {
|
|
168
|
-
|
|
168
|
+
l.current = !1, a == null || a(d);
|
|
169
169
|
};
|
|
170
170
|
return {
|
|
171
171
|
onKeyDownHandler: g(
|
|
172
172
|
(d) => {
|
|
173
173
|
const { key: p } = d;
|
|
174
174
|
if (p === "Enter")
|
|
175
|
-
|
|
175
|
+
l.current = !0, n == null || n(), s == null || s(d.currentTarget.value ?? "");
|
|
176
176
|
else if (p === "Escape")
|
|
177
|
-
|
|
177
|
+
l.current = !0, r == null || r(), d.preventDefault(), d.stopPropagation();
|
|
178
178
|
else if (c) {
|
|
179
179
|
const m = (w, y) => {
|
|
180
|
-
|
|
180
|
+
l.current = !0, t.current.blur(), c(w), y.preventDefault(), y.stopPropagation();
|
|
181
181
|
};
|
|
182
182
|
d.shiftKey && p === "Tab" ? m("left", d) : p === "Tab" ? m("right", d) : p === "ArrowUp" ? m("up", d) : p === "ArrowDown" ? m("down", d) : p === "ArrowRight" ? t.current.value.length === t.current.selectionStart && m("right", d) : p === "ArrowLeft" && t.current.selectionStart === 0 && m("left", d);
|
|
183
183
|
}
|
|
@@ -205,21 +205,21 @@ const Mt = (t, e, n) => {
|
|
|
205
205
|
onChange: r,
|
|
206
206
|
onValueChange: c,
|
|
207
207
|
selectAllOnMount: s,
|
|
208
|
-
moveCursorToEndOnMount:
|
|
208
|
+
moveCursorToEndOnMount: i,
|
|
209
209
|
onDone: a,
|
|
210
|
-
onMove:
|
|
210
|
+
onMove: l,
|
|
211
211
|
onFocus: f,
|
|
212
212
|
onBlur: _,
|
|
213
213
|
onKeyDown: u,
|
|
214
214
|
autoFocus: d
|
|
215
215
|
}) => {
|
|
216
|
-
Mt(t, !!
|
|
216
|
+
Mt(t, !!i, !!s);
|
|
217
217
|
const { onKeyDownHandler: p, onFocusHandler: m, onBlurHandler: w } = Lt(
|
|
218
218
|
t,
|
|
219
219
|
u,
|
|
220
220
|
e,
|
|
221
221
|
n,
|
|
222
|
-
|
|
222
|
+
l,
|
|
223
223
|
a,
|
|
224
224
|
_,
|
|
225
225
|
f
|
|
@@ -256,17 +256,17 @@ const Mt = (t, e, n) => {
|
|
|
256
256
|
content: r,
|
|
257
257
|
spaceOnLeft: c,
|
|
258
258
|
spaceOnRight: s,
|
|
259
|
-
disableContentPadding:
|
|
259
|
+
disableContentPadding: i,
|
|
260
260
|
disableContentPaddingLeft: a,
|
|
261
|
-
disableContentPaddingRight:
|
|
261
|
+
disableContentPaddingRight: l
|
|
262
262
|
}) => !r && !e && !t ? null : t ? /* @__PURE__ */ b(S, { children: [
|
|
263
263
|
c ? /* @__PURE__ */ o(x, { num: 0.25 }) : null,
|
|
264
264
|
t,
|
|
265
265
|
s ? /* @__PURE__ */ o(x, { num: 0.25 }) : null
|
|
266
266
|
] }) : r ? /* @__PURE__ */ b(S, { children: [
|
|
267
|
-
c && !(
|
|
267
|
+
c && !(i || a) ? /* @__PURE__ */ o(x, {}) : null,
|
|
268
268
|
r || null,
|
|
269
|
-
s && !(
|
|
269
|
+
s && !(i || l) ? /* @__PURE__ */ o(x, {}) : null
|
|
270
270
|
] }) : /* @__PURE__ */ b(S, { children: [
|
|
271
271
|
c ? /* @__PURE__ */ o(x, {}) : null,
|
|
272
272
|
e && /* @__PURE__ */ o(
|
|
@@ -284,9 +284,9 @@ const Mt = (t, e, n) => {
|
|
|
284
284
|
disabled: r,
|
|
285
285
|
className: c,
|
|
286
286
|
buttonLeft: s,
|
|
287
|
-
buttonRight:
|
|
287
|
+
buttonRight: i,
|
|
288
288
|
contentLeft: a,
|
|
289
|
-
contentRight:
|
|
289
|
+
contentRight: l,
|
|
290
290
|
disableContentPadding: f,
|
|
291
291
|
disableContentPaddingLeft: _,
|
|
292
292
|
disableContentPaddingRight: u,
|
|
@@ -321,7 +321,7 @@ const Mt = (t, e, n) => {
|
|
|
321
321
|
onBlur: lt,
|
|
322
322
|
onKeyDown: ot,
|
|
323
323
|
autoFocus: y
|
|
324
|
-
}), ut = e === "success" ? E : e === "warning" || e === "error" ? G : p, _t = e === "loading" ? /* @__PURE__ */ o(X, {}) :
|
|
324
|
+
}), ut = e === "success" ? E : e === "warning" || e === "error" ? G : p, _t = e === "loading" ? /* @__PURE__ */ o(X, {}) : l;
|
|
325
325
|
return /* @__PURE__ */ b(
|
|
326
326
|
"div",
|
|
327
327
|
{
|
|
@@ -371,7 +371,7 @@ const Mt = (t, e, n) => {
|
|
|
371
371
|
disableContentPaddingRight: u,
|
|
372
372
|
icon: ut,
|
|
373
373
|
spaceOnRight: !0,
|
|
374
|
-
button:
|
|
374
|
+
button: i
|
|
375
375
|
}
|
|
376
376
|
)
|
|
377
377
|
]
|
|
@@ -390,8 +390,8 @@ const Mt = (t, e, n) => {
|
|
|
390
390
|
if (!e)
|
|
391
391
|
t(String(A(n, r, c)));
|
|
392
392
|
else {
|
|
393
|
-
const
|
|
394
|
-
t(String(A(
|
|
393
|
+
const i = (H(e) || 0) + n;
|
|
394
|
+
t(String(A(i, r, c)));
|
|
395
395
|
}
|
|
396
396
|
}, ne = ({
|
|
397
397
|
onValueChange: t,
|
|
@@ -416,9 +416,9 @@ const Mt = (t, e, n) => {
|
|
|
416
416
|
min: r,
|
|
417
417
|
step: c = 1,
|
|
418
418
|
contentRight: s,
|
|
419
|
-
disabled:
|
|
419
|
+
disabled: i,
|
|
420
420
|
className: a,
|
|
421
|
-
hideButtons:
|
|
421
|
+
hideButtons: l,
|
|
422
422
|
...f
|
|
423
423
|
}) => {
|
|
424
424
|
const _ = g(
|
|
@@ -435,7 +435,7 @@ const Mt = (t, e, n) => {
|
|
|
435
435
|
return /* @__PURE__ */ o(
|
|
436
436
|
Q,
|
|
437
437
|
{
|
|
438
|
-
contentRight:
|
|
438
|
+
contentRight: l ? s : /* @__PURE__ */ b(S, { children: [
|
|
439
439
|
s && /* @__PURE__ */ b(S, { children: [
|
|
440
440
|
s,
|
|
441
441
|
/* @__PURE__ */ o(x, {})
|
|
@@ -443,22 +443,22 @@ const Mt = (t, e, n) => {
|
|
|
443
443
|
/* @__PURE__ */ o(
|
|
444
444
|
xt,
|
|
445
445
|
{
|
|
446
|
-
onClickUp:
|
|
447
|
-
onClickDown:
|
|
446
|
+
onClickUp: i ? void 0 : () => _(c),
|
|
447
|
+
onClickDown: i ? void 0 : () => _(-c),
|
|
448
448
|
iconColor: "var(--swui-textinput-text-color)",
|
|
449
|
-
disabled:
|
|
449
|
+
disabled: i
|
|
450
450
|
}
|
|
451
451
|
)
|
|
452
452
|
] }),
|
|
453
453
|
value: t,
|
|
454
454
|
onValueChange: u,
|
|
455
|
-
disableContentPaddingRight: !
|
|
455
|
+
disableContentPaddingRight: !l,
|
|
456
456
|
type: "number",
|
|
457
457
|
min: r,
|
|
458
458
|
max: n,
|
|
459
459
|
step: c,
|
|
460
460
|
className: h(ee.numericTextInputInput, a),
|
|
461
|
-
disabled:
|
|
461
|
+
disabled: i,
|
|
462
462
|
...f
|
|
463
463
|
}
|
|
464
464
|
);
|
|
@@ -544,9 +544,9 @@ const Mt = (t, e, n) => {
|
|
|
544
544
|
label: r,
|
|
545
545
|
screenReaderLabel: c,
|
|
546
546
|
borderVariant: s = "normalBorder",
|
|
547
|
-
variant:
|
|
547
|
+
variant: i = "normal",
|
|
548
548
|
children: a,
|
|
549
|
-
...
|
|
549
|
+
...l
|
|
550
550
|
}) => {
|
|
551
551
|
const f = O(), _ = n ?? f, u = g(
|
|
552
552
|
(d) => {
|
|
@@ -559,7 +559,7 @@ const Mt = (t, e, n) => {
|
|
|
559
559
|
{
|
|
560
560
|
className: h(
|
|
561
561
|
B.labelledSelect,
|
|
562
|
-
B[
|
|
562
|
+
B[i],
|
|
563
563
|
B[s]
|
|
564
564
|
),
|
|
565
565
|
children: [
|
|
@@ -577,8 +577,8 @@ const Mt = (t, e, n) => {
|
|
|
577
577
|
{
|
|
578
578
|
id: _,
|
|
579
579
|
onChange: u,
|
|
580
|
-
className: h(B.select, B[
|
|
581
|
-
...
|
|
580
|
+
className: h(B.select, B[i]),
|
|
581
|
+
...l,
|
|
582
582
|
children: a
|
|
583
583
|
}
|
|
584
584
|
),
|
|
@@ -609,18 +609,18 @@ const Mt = (t, e, n) => {
|
|
|
609
609
|
screenReaderLabel: r,
|
|
610
610
|
size: c = "medium",
|
|
611
611
|
value: s,
|
|
612
|
-
onChange:
|
|
612
|
+
onChange: i,
|
|
613
613
|
disabled: a,
|
|
614
|
-
onValueChange:
|
|
614
|
+
onValueChange: l,
|
|
615
615
|
borderRadiusVariant: f = "normalBorder",
|
|
616
616
|
variant: _ = "normal",
|
|
617
617
|
...u
|
|
618
618
|
}, d) => {
|
|
619
619
|
const p = O(), m = n ?? p, w = g(
|
|
620
620
|
(y) => {
|
|
621
|
-
|
|
621
|
+
i == null || i(y), l == null || l(y.target.value);
|
|
622
622
|
},
|
|
623
|
-
[
|
|
623
|
+
[i, l]
|
|
624
624
|
);
|
|
625
625
|
return /* @__PURE__ */ b(
|
|
626
626
|
"div",
|
|
@@ -665,9 +665,9 @@ const Mt = (t, e, n) => {
|
|
|
665
665
|
wrapperStyle: r,
|
|
666
666
|
contentLeft: c,
|
|
667
667
|
contentRight: s,
|
|
668
|
-
disableContentPadding:
|
|
668
|
+
disableContentPadding: i,
|
|
669
669
|
disableContentPaddingLeft: a,
|
|
670
|
-
disableContentPaddingRight:
|
|
670
|
+
disableContentPaddingRight: l,
|
|
671
671
|
iconRight: f,
|
|
672
672
|
iconLeft: _,
|
|
673
673
|
onClickLeft: u,
|
|
@@ -693,9 +693,9 @@ const Mt = (t, e, n) => {
|
|
|
693
693
|
j,
|
|
694
694
|
{
|
|
695
695
|
content: c,
|
|
696
|
-
disableContentPadding:
|
|
696
|
+
disableContentPadding: i,
|
|
697
697
|
disableContentPaddingLeft: a,
|
|
698
|
-
disableContentPaddingRight:
|
|
698
|
+
disableContentPaddingRight: l,
|
|
699
699
|
spaceOnLeft: !0,
|
|
700
700
|
button: _ ? /* @__PURE__ */ o($, { onClick: u, icon: _ }) : void 0
|
|
701
701
|
}
|
|
@@ -705,9 +705,9 @@ const Mt = (t, e, n) => {
|
|
|
705
705
|
j,
|
|
706
706
|
{
|
|
707
707
|
content: w,
|
|
708
|
-
disableContentPadding:
|
|
708
|
+
disableContentPadding: i,
|
|
709
709
|
disableContentPaddingLeft: a,
|
|
710
|
-
disableContentPaddingRight:
|
|
710
|
+
disableContentPaddingRight: l,
|
|
711
711
|
spaceOnRight: !0,
|
|
712
712
|
button: m ? /* @__PURE__ */ o($, { onClick: d, icon: m }) : void 0
|
|
713
713
|
}
|
|
@@ -725,9 +725,9 @@ const Mt = (t, e, n) => {
|
|
|
725
725
|
onChange: r,
|
|
726
726
|
resize: c = "none",
|
|
727
727
|
readOnly: s = !1,
|
|
728
|
-
rows:
|
|
728
|
+
rows: i,
|
|
729
729
|
disabled: a,
|
|
730
|
-
...
|
|
730
|
+
...l
|
|
731
731
|
}, f) => {
|
|
732
732
|
const _ = g(
|
|
733
733
|
(u) => {
|
|
@@ -739,14 +739,14 @@ const Mt = (t, e, n) => {
|
|
|
739
739
|
"textarea",
|
|
740
740
|
{
|
|
741
741
|
disabled: a,
|
|
742
|
-
rows:
|
|
742
|
+
rows: i,
|
|
743
743
|
readOnly: s,
|
|
744
744
|
className: h(ge.textArea, t),
|
|
745
745
|
style: { resize: c },
|
|
746
746
|
onChange: _,
|
|
747
747
|
value: e,
|
|
748
748
|
ref: f,
|
|
749
|
-
...
|
|
749
|
+
...l
|
|
750
750
|
}
|
|
751
751
|
);
|
|
752
752
|
}
|