@pismo/marola 1.1.22 → 2.0.0
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/{Button-BAljjMv3.js → Button-cCziLrIy.js} +2 -2
- package/dist/{ClickAwayListener-DbEYZpyh.js → ClickAwayListener-CUayzVlD.js} +3 -3
- package/dist/Dialog.module-BtKUNFVu.js +13 -0
- package/dist/{Group-BKXO7GzU.js → Group-Cyc1W1kV.js} +1 -1
- package/dist/{Popup-Ck3XlWMq.js → Popup-C7AXLoP0.js} +5 -7
- package/dist/{Portal-oY3enyAm.js → Portal-CYV5TK_i.js} +2 -2
- package/dist/SelectButton-k61YYjLu.js +58 -0
- package/dist/Tabs.module-DyJgAZt8.js +28 -0
- package/dist/{Toggle-Bkf8bKbA.js → Toggle-DEVeyo2f.js} +3 -3
- package/dist/assets/Tabs.css +1 -1
- package/dist/assets/Tooltip.css +1 -1
- package/dist/clsx-OuTLNxxd.js +16 -0
- package/dist/{combineHooksSlotProps-C-zYvfnF.js → combineHooksSlotProps-BCXoX9Nx.js} +20 -21
- package/dist/components/Adornment/Adornment.d.ts +2 -3
- package/dist/components/Adornment/Adornment.js +1 -1
- package/dist/components/Adornment/Adornment.stories.d.ts +0 -1
- package/dist/components/Advice/Advice.d.ts +2 -3
- package/dist/components/Advice/Advice.js +1 -1
- package/dist/components/Advice/Advice.stories.d.ts +0 -1
- package/dist/components/Alert/Alert.d.ts +0 -1
- package/dist/components/Alert/Alert.js +1 -1
- package/dist/components/Alert/Alert.stories.d.ts +0 -1
- package/dist/components/Autocomplete/Autocomplete.d.ts +1 -2
- package/dist/components/Autocomplete/Autocomplete.js +282 -298
- package/dist/components/Autocomplete/Autocomplete.stories.d.ts +0 -1
- package/dist/components/Avatar/Avatar.d.ts +0 -1
- package/dist/components/Avatar/Avatar.js +1 -1
- package/dist/components/Avatar/Avatar.stories.d.ts +0 -1
- package/dist/components/Badge/Badge.d.ts +0 -1
- package/dist/components/Badge/Badge.js +1 -1
- package/dist/components/Badge/Badge.stories.d.ts +1 -2
- package/dist/components/BankCard/BankCard.js +1 -1
- package/dist/components/BankCard/BankCard.stories.d.ts +0 -1
- package/dist/components/Button/Button.d.ts +2 -3
- package/dist/components/Button/Button.js +2 -2
- package/dist/components/Button/Button.stories.d.ts +1 -2
- package/dist/components/Calendar/Calendar.js +1 -1
- package/dist/components/Calendar/Calendar.stories.d.ts +0 -1
- package/dist/components/Checkbox/Checkbox.d.ts +0 -1
- package/dist/components/Checkbox/Checkbox.js +1 -1
- package/dist/components/Checkbox/Checkbox.stories.d.ts +0 -1
- package/dist/components/Chip/Chip.d.ts +1 -2
- package/dist/components/Chip/Chip.js +4 -4
- package/dist/components/Chip/Chip.stories.d.ts +0 -1
- package/dist/components/ConfirmationDialog/ConfirmationDialog.d.ts +0 -1
- package/dist/components/ConfirmationDialog/ConfirmationDialog.stories.d.ts +1 -2
- package/dist/components/Description/Description.d.ts +0 -1
- package/dist/components/Description/Description.js +27 -42
- package/dist/components/Description/Description.stories.d.ts +0 -1
- package/dist/components/Dialog/Actions.d.ts +0 -1
- package/dist/components/Dialog/Actions.js +1 -1
- package/dist/components/Dialog/Backdrop.d.ts +0 -1
- package/dist/components/Dialog/Backdrop.js +2 -2
- package/dist/components/Dialog/CloseIconButton.js +2 -2
- package/dist/components/Dialog/Content.d.ts +0 -1
- package/dist/components/Dialog/Dialog.d.ts +5 -6
- package/dist/components/Dialog/Dialog.js +6 -6
- package/dist/components/Dialog/Dialog.stories.d.ts +0 -1
- package/dist/components/Dialog/DialogTitle.d.ts +1 -2
- package/dist/components/Dialog/DialogTitle.js +1 -1
- package/dist/components/EllipsisTooltip/EllipsisTooltip.d.ts +0 -1
- package/dist/components/EllipsisTooltip/EllipsisTooltip.js +1 -1
- package/dist/components/EllipsisTooltip/EllipsisTooltip.stories.d.ts +9 -5
- package/dist/components/Icon/Icon.d.ts +0 -1
- package/dist/components/Icon/Icon.stories.d.ts +1 -2
- package/dist/components/IconButton/Icon.stories.d.ts +0 -1
- package/dist/components/IconButton/IconButton.d.ts +1 -2
- package/dist/components/IconButton/IconButton.js +2 -2
- package/dist/components/Input/Input.d.ts +0 -1
- package/dist/components/Input/Input.js +259 -274
- package/dist/components/Input/Input.stories.d.ts +0 -1
- package/dist/components/InputSearch/InputSearch.d.ts +0 -1
- package/dist/components/InputSearch/InputSearch.js +1 -1
- package/dist/components/InputSearch/InputSearch.stories.d.ts +0 -1
- package/dist/components/LoadingSpinner/LoadingSpinner.js +1 -1
- package/dist/components/LoadingSpinner/LoadingSpinner.stories.d.ts +0 -1
- package/dist/components/PageHeader/PageHeader.d.ts +1 -2
- package/dist/components/PageHeader/PageHeader.js +65 -80
- package/dist/components/PageHeader/PageHeader.stories.d.ts +0 -1
- package/dist/components/Pagination/Pagination.d.ts +0 -1
- package/dist/components/Pagination/Pagination.js +43 -58
- package/dist/components/Pagination/Pagination.stories.d.ts +1 -2
- package/dist/components/Popover/Popover.d.ts +0 -1
- package/dist/components/Popover/Popover.js +3 -3
- package/dist/components/Popover/Popover.stories.d.ts +1 -2
- package/dist/components/RadioButton/RadioButton.js +1 -1
- package/dist/components/RadioButton/RadioButton.stories.d.ts +0 -1
- package/dist/components/ResultWithChips/ResultWithChips.d.ts +0 -1
- package/dist/components/ResultWithChips/ResultWithChips.js +1 -1
- package/dist/components/RowItem/RowItem.d.ts +2 -3
- package/dist/components/RowItem/RowItem.js +3 -3
- package/dist/components/RowItem/RowItem.stories.d.ts +0 -1
- package/dist/components/Select/Select.d.ts +0 -1
- package/dist/components/Select/Select.js +21 -21
- package/dist/components/Select/Select.stories.d.ts +1 -2
- package/dist/components/Select/SelectButton.d.ts +0 -1
- package/dist/components/Select/SelectButton.js +2 -2
- package/dist/components/Skeleton/Skeleton.js +1 -1
- package/dist/components/Skeleton/Skeleton.stories.d.ts +0 -1
- package/dist/components/Skeleton/SkeletonCircle.stories.d.ts +0 -1
- package/dist/components/Skeleton/SkeletonTable.stories.d.ts +0 -1
- package/dist/components/Snackbar/Snackbar.d.ts +0 -1
- package/dist/components/Snackbar/Snackbar.js +7 -8
- package/dist/components/Snackbar/Snackbar.stories.d.ts +1 -2
- package/dist/components/SortTooltip/SortTooltip.d.ts +0 -1
- package/dist/components/SortTooltip/SortTooltip.js +34 -51
- package/dist/components/Stepper/Stepper.d.ts +0 -1
- package/dist/components/Stepper/Stepper.js +19 -34
- package/dist/components/Stepper/Stepper.stories.d.ts +1 -2
- package/dist/components/StepperNavigator/StepperNavigator.js +1 -1
- package/dist/components/StepperNavigator/StepperNavigator.stories.d.ts +0 -1
- package/dist/components/Table/Table.d.ts +3 -4
- package/dist/components/Table/Table.js +1 -1
- package/dist/components/Table/Table.stories.d.ts +0 -1
- package/dist/components/Table/TableContext.d.ts +2 -3
- package/dist/components/Table/TableContext.js +4 -4
- package/dist/components/Table/_Table.TBody.stories.d.ts +1 -2
- package/dist/components/Table/_Table.THead.stories.d.ts +1 -2
- package/dist/components/Table/_Table.Td.stories.d.ts +1 -2
- package/dist/components/Table/_Table.Th.stories.d.ts +1 -2
- package/dist/components/Table/_Table.Tr.stories.d.ts +1 -2
- package/dist/components/Tabs/Tab.d.ts +4 -2
- package/dist/components/Tabs/Tab.js +102 -100
- package/dist/components/Tabs/Tab.stories.d.ts +3 -2
- package/dist/components/Tabs/TabPanel.d.ts +0 -1
- package/dist/components/Tabs/TabPanel.js +3 -3
- package/dist/components/Tabs/TabPanel.stories.d.ts +1 -2
- package/dist/components/Tabs/Tabs.d.ts +0 -1
- package/dist/components/Tabs/Tabs.js +5 -5
- package/dist/components/Tabs/Tabs.stories.d.ts +2 -2
- package/dist/components/Tag/Tag.d.ts +0 -1
- package/dist/components/Tag/Tag.js +1 -1
- package/dist/components/Tag/Tag.stories.d.ts +1 -2
- package/dist/components/TextDisplay/TextDisplay.d.ts +1 -2
- package/dist/components/TextDisplay/TextDisplay.js +1 -1
- package/dist/components/TextDisplay/TextDisplay.stories.d.ts +0 -1
- package/dist/components/ToastCard/ToastCard.d.ts +0 -1
- package/dist/components/ToastCard/ToastCard.js +1 -1
- package/dist/components/ToastCard/ToastCard.stories.d.ts +0 -1
- package/dist/components/Toggle/Toggle.d.ts +0 -1
- package/dist/components/Toggle/Toggle.js +102 -117
- package/dist/components/Toggle/Toggle.stories.d.ts +0 -1
- package/dist/components/ToggleGroup/Group.d.ts +1 -2
- package/dist/components/ToggleGroup/Group.js +2 -2
- package/dist/components/ToggleGroup/Toggle.js +3 -3
- package/dist/components/ToggleGroup/ToggleGroup.js +2 -2
- package/dist/components/ToggleGroup/ToggleGroup.stories.d.ts +2 -3
- package/dist/components/Tooltip/Tooltip.d.ts +13 -9
- package/dist/components/Tooltip/Tooltip.js +146 -105
- package/dist/components/Tooltip/Tooltip.stories.d.ts +18 -10
- package/dist/components/Tooltip/Tooltip.test.d.ts +1 -0
- package/dist/components/TransactionRow/TransactionRow.d.ts +0 -1
- package/dist/components/TransactionRow/TransactionRow.stories.d.ts +0 -1
- package/dist/components/Typography/Typography.d.ts +0 -1
- package/dist/components/Typography/Typography.js +1 -1
- package/dist/components/Typography/Typography.stories.d.ts +0 -1
- package/dist/contexts/SnackbarProvider/SnackbarProvider.d.ts +0 -1
- package/dist/contexts/SnackbarProvider/SnackbarProvider.js +5 -5
- package/dist/contexts/SnackbarProvider/SnackbarProvider.stories.d.ts +1 -2
- package/dist/{index-bQFToy-I.js → index-CATDT7fJ.js} +7927 -8368
- package/dist/main.js +2 -2
- package/dist/{ownerDocument-YGhwAnr1.js → ownerDocument-CAHSRRik.js} +1 -1
- package/dist/{useButton-DcihopJG.js → useButton-eF8MXAli.js} +1 -1
- package/dist/{useList-B9C55YB7.js → useList-CPY2roI7.js} +3 -4
- package/dist/{useSlotProps-C_I1kEHr.js → useSlotProps-DSnfx453.js} +123 -126
- package/dist/utils/inputNumberAsText.d.ts +0 -1
- package/dist/utils/inputNumberAsText.js +2 -4
- package/dist/utils/styleStrings.d.ts +0 -1
- package/package.json +1 -1
- package/dist/Dialog.module-CE1Q-5tJ.js +0 -28
- package/dist/SelectButton-DbiTJagF.js +0 -74
- package/dist/Tabs.module-ia-imLti.js +0 -25
- package/dist/clsx-DB4S2d7J.js +0 -22
|
@@ -1,151 +1,151 @@
|
|
|
1
1
|
import { jsxs as D, jsx as M } from "react/jsx-runtime";
|
|
2
|
-
import * as
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
import { formatDecimalValue as
|
|
5
|
-
import { c as
|
|
6
|
-
import { Icon as
|
|
7
|
-
import { Typography as
|
|
8
|
-
import { g as
|
|
9
|
-
import '../../assets/Input.css';function
|
|
10
|
-
let s = "https://mui.com/production-error/?code=" +
|
|
11
|
-
for (let
|
|
12
|
-
s += "&args[]=" + encodeURIComponent(arguments[
|
|
13
|
-
return "Minified MUI error #" +
|
|
2
|
+
import * as F from "react";
|
|
3
|
+
import { forwardRef as fe, useState as me, useId as _e, useMemo as ae } from "react";
|
|
4
|
+
import { formatDecimalValue as ue, allowOnlyIntegerNumbers as be, allowOnlyNumbers as ge, parseToInteger as he } from "../../utils/inputNumberAsText.js";
|
|
5
|
+
import { c as U } from "../../clsx-OuTLNxxd.js";
|
|
6
|
+
import { Icon as we } from "../Icon/Icon.js";
|
|
7
|
+
import { Typography as re } from "../Typography/Typography.js";
|
|
8
|
+
import { g as ye, a as Ne, u as Ce, f as ie, b as x, _ as ve, c as se, i as xe, d as Pe, e as Re, P as n } from "../../useSlotProps-DSnfx453.js";
|
|
9
|
+
import '../../assets/Input.css';function Ee(u) {
|
|
10
|
+
let s = "https://mui.com/production-error/?code=" + u;
|
|
11
|
+
for (let m = 1; m < arguments.length; m += 1)
|
|
12
|
+
s += "&args[]=" + encodeURIComponent(arguments[m]);
|
|
13
|
+
return "Minified MUI error #" + u + "; visit " + s + " for the full message.";
|
|
14
14
|
}
|
|
15
|
-
const
|
|
16
|
-
function
|
|
17
|
-
return
|
|
15
|
+
const de = "Input";
|
|
16
|
+
function Ve(u) {
|
|
17
|
+
return ye(de, u);
|
|
18
18
|
}
|
|
19
|
-
Ne(
|
|
20
|
-
const
|
|
21
|
-
process.env.NODE_ENV !== "production" && (
|
|
22
|
-
function
|
|
23
|
-
return
|
|
19
|
+
Ne(de, ["root", "formControl", "focused", "disabled", "error", "multiline", "input", "inputMultiline", "inputTypeSearch", "adornedStart", "adornedEnd"]);
|
|
20
|
+
const pe = /* @__PURE__ */ F.createContext(void 0);
|
|
21
|
+
process.env.NODE_ENV !== "production" && (pe.displayName = "FormControlContext");
|
|
22
|
+
function Fe() {
|
|
23
|
+
return F.useContext(pe);
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function Se(u = {}) {
|
|
26
26
|
const {
|
|
27
27
|
defaultValue: s,
|
|
28
|
-
disabled:
|
|
29
|
-
error:
|
|
30
|
-
onBlur:
|
|
28
|
+
disabled: m = !1,
|
|
29
|
+
error: p = !1,
|
|
30
|
+
onBlur: _,
|
|
31
31
|
onChange: N,
|
|
32
|
-
onFocus:
|
|
33
|
-
required:
|
|
32
|
+
onFocus: S,
|
|
33
|
+
required: q = !1,
|
|
34
34
|
value: c,
|
|
35
35
|
inputRef: O
|
|
36
|
-
} =
|
|
37
|
-
let
|
|
38
|
-
if (
|
|
39
|
-
var
|
|
40
|
-
if (
|
|
41
|
-
const
|
|
42
|
-
|
|
36
|
+
} = u, l = Fe();
|
|
37
|
+
let b, g, C, R, P;
|
|
38
|
+
if (l) {
|
|
39
|
+
var v, h, j;
|
|
40
|
+
if (b = void 0, g = (v = l.disabled) != null ? v : !1, C = (h = l.error) != null ? h : !1, R = (j = l.required) != null ? j : !1, P = l.value, process.env.NODE_ENV !== "production") {
|
|
41
|
+
const t = ["defaultValue", "disabled", "error", "required", "value"].filter((r) => u[r] !== void 0);
|
|
42
|
+
t.length > 0 && console.warn(["MUI: You have set props on an input that is inside a FormControl.", "Set these props on a FormControl instead. Otherwise they will be ignored.", `Ignored props: ${t.join(", ")}`].join(`
|
|
43
43
|
`));
|
|
44
44
|
}
|
|
45
45
|
} else
|
|
46
|
-
|
|
46
|
+
b = s, g = m, C = p, R = q, P = c;
|
|
47
47
|
const {
|
|
48
48
|
current: H
|
|
49
|
-
} =
|
|
50
|
-
process.env.NODE_ENV !== "production" &&
|
|
49
|
+
} = F.useRef(P != null), K = F.useCallback((t) => {
|
|
50
|
+
process.env.NODE_ENV !== "production" && t && t.nodeName !== "INPUT" && !t.focus && console.error(["MUI: You have provided a `slots.input` to the input component", "that does not correctly handle the `ref` prop.", "Make sure the `ref` prop is called with a HTMLInputElement."].join(`
|
|
51
51
|
`));
|
|
52
|
-
}, []),
|
|
53
|
-
|
|
54
|
-
!
|
|
55
|
-
}, [
|
|
56
|
-
const $ = (
|
|
57
|
-
var
|
|
58
|
-
if (
|
|
59
|
-
|
|
52
|
+
}, []), E = F.useRef(null), A = Ce(E, O, K), [T, I] = F.useState(!1);
|
|
53
|
+
F.useEffect(() => {
|
|
54
|
+
!l && g && T && (I(!1), _ == null || _());
|
|
55
|
+
}, [l, g, T, _]);
|
|
56
|
+
const $ = (t) => (r) => {
|
|
57
|
+
var a;
|
|
58
|
+
if (l != null && l.disabled) {
|
|
59
|
+
r.stopPropagation();
|
|
60
60
|
return;
|
|
61
61
|
}
|
|
62
|
-
if ((
|
|
63
|
-
var
|
|
64
|
-
|
|
62
|
+
if ((a = t.onFocus) == null || a.call(t, r), l && l.onFocus) {
|
|
63
|
+
var d;
|
|
64
|
+
l == null || (d = l.onFocus) == null || d.call(l);
|
|
65
65
|
} else
|
|
66
66
|
I(!0);
|
|
67
|
-
}, L = (
|
|
68
|
-
var
|
|
69
|
-
(
|
|
70
|
-
}, Y = (
|
|
71
|
-
var
|
|
72
|
-
if (!H && (
|
|
73
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: Expected valid input target. Did you use a custom `slots.input` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info." :
|
|
74
|
-
|
|
75
|
-
}, W = (
|
|
76
|
-
var
|
|
77
|
-
|
|
67
|
+
}, L = (t) => (r) => {
|
|
68
|
+
var a;
|
|
69
|
+
(a = t.onBlur) == null || a.call(t, r), l && l.onBlur ? l.onBlur() : I(!1);
|
|
70
|
+
}, Y = (t) => (r, ...a) => {
|
|
71
|
+
var d, V;
|
|
72
|
+
if (!H && (r.target || E.current) == null)
|
|
73
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: Expected valid input target. Did you use a custom `slots.input` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info." : Ee(17));
|
|
74
|
+
l == null || (d = l.onChange) == null || d.call(l, r), (V = t.onChange) == null || V.call(t, r, ...a);
|
|
75
|
+
}, W = (t) => (r) => {
|
|
76
|
+
var a;
|
|
77
|
+
E.current && r.currentTarget === r.target && E.current.focus(), (a = t.onClick) == null || a.call(t, r);
|
|
78
78
|
};
|
|
79
79
|
return {
|
|
80
80
|
disabled: g,
|
|
81
|
-
error:
|
|
81
|
+
error: C,
|
|
82
82
|
focused: T,
|
|
83
|
-
formControlContext:
|
|
84
|
-
getInputProps: (
|
|
85
|
-
const
|
|
86
|
-
onBlur:
|
|
83
|
+
formControlContext: l,
|
|
84
|
+
getInputProps: (t = {}) => {
|
|
85
|
+
const a = x({}, {
|
|
86
|
+
onBlur: _,
|
|
87
87
|
onChange: N,
|
|
88
|
-
onFocus:
|
|
89
|
-
},
|
|
90
|
-
onBlur: L(
|
|
91
|
-
onChange: Y(
|
|
92
|
-
onFocus: $(
|
|
88
|
+
onFocus: S
|
|
89
|
+
}, ie(t)), d = x({}, a, {
|
|
90
|
+
onBlur: L(a),
|
|
91
|
+
onChange: Y(a),
|
|
92
|
+
onFocus: $(a)
|
|
93
93
|
});
|
|
94
|
-
return
|
|
95
|
-
"aria-invalid":
|
|
96
|
-
defaultValue:
|
|
97
|
-
value:
|
|
98
|
-
required:
|
|
94
|
+
return x({}, d, {
|
|
95
|
+
"aria-invalid": C || void 0,
|
|
96
|
+
defaultValue: b,
|
|
97
|
+
value: P,
|
|
98
|
+
required: R,
|
|
99
99
|
disabled: g
|
|
100
|
-
},
|
|
101
|
-
ref:
|
|
102
|
-
},
|
|
100
|
+
}, t, {
|
|
101
|
+
ref: A
|
|
102
|
+
}, d);
|
|
103
103
|
},
|
|
104
|
-
getRootProps: (
|
|
105
|
-
const
|
|
106
|
-
return
|
|
107
|
-
onClick: W(
|
|
104
|
+
getRootProps: (t = {}) => {
|
|
105
|
+
const r = ie(u, ["onBlur", "onChange", "onFocus"]), a = x({}, r, ie(t));
|
|
106
|
+
return x({}, t, a, {
|
|
107
|
+
onClick: W(a)
|
|
108
108
|
});
|
|
109
109
|
},
|
|
110
|
-
inputRef:
|
|
111
|
-
required:
|
|
112
|
-
value:
|
|
110
|
+
inputRef: A,
|
|
111
|
+
required: R,
|
|
112
|
+
value: P
|
|
113
113
|
};
|
|
114
114
|
}
|
|
115
|
-
const
|
|
115
|
+
const qe = ["aria-describedby", "aria-label", "aria-labelledby", "autoComplete", "autoFocus", "className", "defaultValue", "disabled", "endAdornment", "error", "id", "multiline", "name", "onClick", "onChange", "onKeyDown", "onKeyUp", "onFocus", "onBlur", "placeholder", "readOnly", "required", "startAdornment", "value", "type", "rows", "slotProps", "slots", "minRows", "maxRows"], Oe = (u) => {
|
|
116
116
|
const {
|
|
117
117
|
disabled: s,
|
|
118
|
-
error:
|
|
119
|
-
focused:
|
|
120
|
-
formControlContext:
|
|
118
|
+
error: m,
|
|
119
|
+
focused: p,
|
|
120
|
+
formControlContext: _,
|
|
121
121
|
multiline: N,
|
|
122
|
-
startAdornment:
|
|
123
|
-
endAdornment:
|
|
124
|
-
} =
|
|
125
|
-
return
|
|
126
|
-
root: ["root", s && "disabled",
|
|
122
|
+
startAdornment: S,
|
|
123
|
+
endAdornment: q
|
|
124
|
+
} = u;
|
|
125
|
+
return Pe({
|
|
126
|
+
root: ["root", s && "disabled", m && "error", p && "focused", !!_ && "formControl", N && "multiline", !!S && "adornedStart", !!q && "adornedEnd"],
|
|
127
127
|
input: ["input", s && "disabled", N && "multiline"]
|
|
128
|
-
},
|
|
129
|
-
}, ce = /* @__PURE__ */
|
|
130
|
-
var
|
|
128
|
+
}, Re(Ve));
|
|
129
|
+
}, ce = /* @__PURE__ */ F.forwardRef(function(s, m) {
|
|
130
|
+
var p, _, N;
|
|
131
131
|
const {
|
|
132
|
-
"aria-describedby":
|
|
133
|
-
"aria-label":
|
|
132
|
+
"aria-describedby": S,
|
|
133
|
+
"aria-label": q,
|
|
134
134
|
"aria-labelledby": c,
|
|
135
135
|
autoComplete: O,
|
|
136
|
-
autoFocus:
|
|
137
|
-
className:
|
|
136
|
+
autoFocus: l,
|
|
137
|
+
className: b,
|
|
138
138
|
defaultValue: g,
|
|
139
|
-
disabled:
|
|
140
|
-
endAdornment:
|
|
141
|
-
error:
|
|
142
|
-
id:
|
|
143
|
-
multiline:
|
|
144
|
-
name:
|
|
139
|
+
disabled: C,
|
|
140
|
+
endAdornment: R,
|
|
141
|
+
error: P,
|
|
142
|
+
id: v,
|
|
143
|
+
multiline: h = !1,
|
|
144
|
+
name: j,
|
|
145
145
|
onClick: H,
|
|
146
146
|
onChange: K,
|
|
147
|
-
onKeyDown:
|
|
148
|
-
onKeyUp:
|
|
147
|
+
onKeyDown: E,
|
|
148
|
+
onKeyUp: A,
|
|
149
149
|
onFocus: T,
|
|
150
150
|
onBlur: I,
|
|
151
151
|
placeholder: $,
|
|
@@ -154,73 +154,73 @@ const Se = ["aria-describedby", "aria-label", "aria-labelledby", "autoComplete",
|
|
|
154
154
|
startAdornment: W,
|
|
155
155
|
value: e,
|
|
156
156
|
type: z,
|
|
157
|
-
rows:
|
|
158
|
-
slotProps:
|
|
159
|
-
slots:
|
|
160
|
-
minRows:
|
|
161
|
-
maxRows:
|
|
162
|
-
} = s, J =
|
|
157
|
+
rows: t,
|
|
158
|
+
slotProps: r = {},
|
|
159
|
+
slots: a = {},
|
|
160
|
+
minRows: d,
|
|
161
|
+
maxRows: V
|
|
162
|
+
} = s, J = ve(s, qe), {
|
|
163
163
|
getRootProps: Z,
|
|
164
164
|
getInputProps: ee,
|
|
165
|
-
focused:
|
|
166
|
-
formControlContext:
|
|
165
|
+
focused: ne,
|
|
166
|
+
formControlContext: te,
|
|
167
167
|
error: oe,
|
|
168
168
|
disabled: Q
|
|
169
|
-
} =
|
|
170
|
-
disabled:
|
|
169
|
+
} = Se({
|
|
170
|
+
disabled: C,
|
|
171
171
|
defaultValue: g,
|
|
172
|
-
error:
|
|
172
|
+
error: P,
|
|
173
173
|
onBlur: I,
|
|
174
174
|
onClick: H,
|
|
175
175
|
onChange: K,
|
|
176
176
|
onFocus: T,
|
|
177
177
|
required: Y,
|
|
178
178
|
value: e
|
|
179
|
-
}), G =
|
|
179
|
+
}), G = h ? void 0 : z ?? "text", o = x({}, s, {
|
|
180
180
|
disabled: Q,
|
|
181
181
|
error: oe,
|
|
182
|
-
focused:
|
|
183
|
-
formControlContext:
|
|
184
|
-
multiline:
|
|
182
|
+
focused: ne,
|
|
183
|
+
formControlContext: te,
|
|
184
|
+
multiline: h,
|
|
185
185
|
type: G
|
|
186
|
-
}),
|
|
187
|
-
"aria-describedby":
|
|
188
|
-
"aria-label":
|
|
186
|
+
}), w = Oe(o), k = {
|
|
187
|
+
"aria-describedby": S,
|
|
188
|
+
"aria-label": q,
|
|
189
189
|
"aria-labelledby": c,
|
|
190
190
|
autoComplete: O,
|
|
191
|
-
autoFocus:
|
|
192
|
-
id:
|
|
193
|
-
onKeyDown:
|
|
194
|
-
onKeyUp:
|
|
195
|
-
name:
|
|
191
|
+
autoFocus: l,
|
|
192
|
+
id: v,
|
|
193
|
+
onKeyDown: E,
|
|
194
|
+
onKeyUp: A,
|
|
195
|
+
name: j,
|
|
196
196
|
placeholder: $,
|
|
197
197
|
readOnly: L,
|
|
198
198
|
type: G
|
|
199
|
-
},
|
|
200
|
-
elementType:
|
|
199
|
+
}, i = (p = a.root) != null ? p : "div", B = se({
|
|
200
|
+
elementType: i,
|
|
201
201
|
getSlotProps: Z,
|
|
202
|
-
externalSlotProps:
|
|
202
|
+
externalSlotProps: r.root,
|
|
203
203
|
externalForwardedProps: J,
|
|
204
204
|
additionalProps: {
|
|
205
|
-
ref:
|
|
205
|
+
ref: m
|
|
206
206
|
},
|
|
207
207
|
ownerState: o,
|
|
208
|
-
className: [
|
|
209
|
-
}),
|
|
210
|
-
elementType:
|
|
211
|
-
getSlotProps: (X) => ee(
|
|
212
|
-
externalSlotProps:
|
|
213
|
-
additionalProps:
|
|
214
|
-
rows:
|
|
215
|
-
},
|
|
216
|
-
minRows:
|
|
217
|
-
maxRows:
|
|
208
|
+
className: [w.root, b]
|
|
209
|
+
}), y = h ? (_ = a.textarea) != null ? _ : "textarea" : (N = a.input) != null ? N : "input", le = se({
|
|
210
|
+
elementType: y,
|
|
211
|
+
getSlotProps: (X) => ee(x({}, k, X)),
|
|
212
|
+
externalSlotProps: r.input,
|
|
213
|
+
additionalProps: x({
|
|
214
|
+
rows: h ? t : void 0
|
|
215
|
+
}, h && !xe(y) && {
|
|
216
|
+
minRows: t || d,
|
|
217
|
+
maxRows: t || V
|
|
218
218
|
}),
|
|
219
219
|
ownerState: o,
|
|
220
|
-
className:
|
|
220
|
+
className: w.input
|
|
221
221
|
});
|
|
222
|
-
return process.env.NODE_ENV !== "production" &&
|
|
223
|
-
children: [W, /* @__PURE__ */ M(
|
|
222
|
+
return process.env.NODE_ENV !== "production" && h && t && (d || V) && console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."), /* @__PURE__ */ D(i, x({}, B, {
|
|
223
|
+
children: [W, /* @__PURE__ */ M(y, x({}, le)), R]
|
|
224
224
|
}));
|
|
225
225
|
});
|
|
226
226
|
process.env.NODE_ENV !== "production" && (ce.propTypes = {
|
|
@@ -231,165 +231,150 @@ process.env.NODE_ENV !== "production" && (ce.propTypes = {
|
|
|
231
231
|
/**
|
|
232
232
|
* @ignore
|
|
233
233
|
*/
|
|
234
|
-
"aria-describedby":
|
|
234
|
+
"aria-describedby": n.string,
|
|
235
235
|
/**
|
|
236
236
|
* @ignore
|
|
237
237
|
*/
|
|
238
|
-
"aria-label":
|
|
238
|
+
"aria-label": n.string,
|
|
239
239
|
/**
|
|
240
240
|
* @ignore
|
|
241
241
|
*/
|
|
242
|
-
"aria-labelledby":
|
|
242
|
+
"aria-labelledby": n.string,
|
|
243
243
|
/**
|
|
244
244
|
* This prop helps users to fill forms faster, especially on mobile devices.
|
|
245
245
|
* The name can be confusing, as it's more like an autofill.
|
|
246
246
|
* You can learn more about it [following the specification](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill).
|
|
247
247
|
*/
|
|
248
|
-
autoComplete:
|
|
248
|
+
autoComplete: n.string,
|
|
249
249
|
/**
|
|
250
250
|
* If `true`, the `input` element is focused during the first mount.
|
|
251
251
|
*/
|
|
252
|
-
autoFocus:
|
|
252
|
+
autoFocus: n.bool,
|
|
253
253
|
/**
|
|
254
254
|
* Class name applied to the root element.
|
|
255
255
|
*/
|
|
256
|
-
className:
|
|
256
|
+
className: n.string,
|
|
257
257
|
/**
|
|
258
258
|
* The default value. Use when the component is not controlled.
|
|
259
259
|
*/
|
|
260
|
-
defaultValue:
|
|
260
|
+
defaultValue: n.any,
|
|
261
261
|
/**
|
|
262
262
|
* If `true`, the component is disabled.
|
|
263
263
|
* The prop defaults to the value (`false`) inherited from the parent FormControl component.
|
|
264
264
|
*/
|
|
265
|
-
disabled:
|
|
265
|
+
disabled: n.bool,
|
|
266
266
|
/**
|
|
267
267
|
* Trailing adornment for this input.
|
|
268
268
|
*/
|
|
269
|
-
endAdornment:
|
|
269
|
+
endAdornment: n.node,
|
|
270
270
|
/**
|
|
271
271
|
* If `true`, the `input` will indicate an error by setting the `aria-invalid` attribute on the input and the `baseui--error` class on the root element.
|
|
272
272
|
* The prop defaults to the value (`false`) inherited from the parent FormControl component.
|
|
273
273
|
*/
|
|
274
|
-
error:
|
|
274
|
+
error: n.bool,
|
|
275
275
|
/**
|
|
276
276
|
* The id of the `input` element.
|
|
277
277
|
*/
|
|
278
|
-
id:
|
|
278
|
+
id: n.string,
|
|
279
279
|
/**
|
|
280
280
|
* @ignore
|
|
281
281
|
*/
|
|
282
|
-
inputRef:
|
|
283
|
-
current:
|
|
282
|
+
inputRef: n.oneOfType([n.func, n.shape({
|
|
283
|
+
current: n.object
|
|
284
284
|
})]),
|
|
285
285
|
/**
|
|
286
286
|
* Maximum number of rows to display when multiline option is set to true.
|
|
287
287
|
*/
|
|
288
|
-
maxRows:
|
|
288
|
+
maxRows: n.number,
|
|
289
289
|
/**
|
|
290
290
|
* Minimum number of rows to display when multiline option is set to true.
|
|
291
291
|
*/
|
|
292
|
-
minRows:
|
|
292
|
+
minRows: n.number,
|
|
293
293
|
/**
|
|
294
294
|
* If `true`, a `textarea` element is rendered.
|
|
295
295
|
* @default false
|
|
296
296
|
*/
|
|
297
|
-
multiline:
|
|
297
|
+
multiline: n.bool,
|
|
298
298
|
/**
|
|
299
299
|
* Name attribute of the `input` element.
|
|
300
300
|
*/
|
|
301
|
-
name:
|
|
301
|
+
name: n.string,
|
|
302
302
|
/**
|
|
303
303
|
* @ignore
|
|
304
304
|
*/
|
|
305
|
-
onBlur:
|
|
305
|
+
onBlur: n.func,
|
|
306
306
|
/**
|
|
307
307
|
* @ignore
|
|
308
308
|
*/
|
|
309
|
-
onChange:
|
|
309
|
+
onChange: n.func,
|
|
310
310
|
/**
|
|
311
311
|
* @ignore
|
|
312
312
|
*/
|
|
313
|
-
onClick:
|
|
313
|
+
onClick: n.func,
|
|
314
314
|
/**
|
|
315
315
|
* @ignore
|
|
316
316
|
*/
|
|
317
|
-
onFocus:
|
|
317
|
+
onFocus: n.func,
|
|
318
318
|
/**
|
|
319
319
|
* @ignore
|
|
320
320
|
*/
|
|
321
|
-
onKeyDown:
|
|
321
|
+
onKeyDown: n.func,
|
|
322
322
|
/**
|
|
323
323
|
* @ignore
|
|
324
324
|
*/
|
|
325
|
-
onKeyUp:
|
|
325
|
+
onKeyUp: n.func,
|
|
326
326
|
/**
|
|
327
327
|
* The short hint displayed in the `input` before the user enters a value.
|
|
328
328
|
*/
|
|
329
|
-
placeholder:
|
|
329
|
+
placeholder: n.string,
|
|
330
330
|
/**
|
|
331
331
|
* It prevents the user from changing the value of the field
|
|
332
332
|
* (not from interacting with the field).
|
|
333
333
|
*/
|
|
334
|
-
readOnly:
|
|
334
|
+
readOnly: n.bool,
|
|
335
335
|
/**
|
|
336
336
|
* If `true`, the `input` element is required.
|
|
337
337
|
* The prop defaults to the value (`false`) inherited from the parent FormControl component.
|
|
338
338
|
*/
|
|
339
|
-
required:
|
|
339
|
+
required: n.bool,
|
|
340
340
|
/**
|
|
341
341
|
* Number of rows to display when multiline option is set to true.
|
|
342
342
|
*/
|
|
343
|
-
rows:
|
|
343
|
+
rows: n.number,
|
|
344
344
|
/**
|
|
345
345
|
* The props used for each slot inside the Input.
|
|
346
346
|
* @default {}
|
|
347
347
|
*/
|
|
348
|
-
slotProps:
|
|
349
|
-
input:
|
|
350
|
-
root:
|
|
348
|
+
slotProps: n.shape({
|
|
349
|
+
input: n.oneOfType([n.func, n.object]),
|
|
350
|
+
root: n.oneOfType([n.func, n.object])
|
|
351
351
|
}),
|
|
352
352
|
/**
|
|
353
353
|
* The components used for each slot inside the InputBase.
|
|
354
354
|
* Either a string to use a HTML element or a component.
|
|
355
355
|
* @default {}
|
|
356
356
|
*/
|
|
357
|
-
slots:
|
|
358
|
-
input:
|
|
359
|
-
root:
|
|
360
|
-
textarea:
|
|
357
|
+
slots: n.shape({
|
|
358
|
+
input: n.elementType,
|
|
359
|
+
root: n.elementType,
|
|
360
|
+
textarea: n.elementType
|
|
361
361
|
}),
|
|
362
362
|
/**
|
|
363
363
|
* Leading adornment for this input.
|
|
364
364
|
*/
|
|
365
|
-
startAdornment:
|
|
365
|
+
startAdornment: n.node,
|
|
366
366
|
/**
|
|
367
367
|
* Type of the `input` element. It should be [a valid HTML5 input type](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Form_%3Cinput%3E_types).
|
|
368
368
|
* @default 'text'
|
|
369
369
|
*/
|
|
370
|
-
type:
|
|
370
|
+
type: n.oneOf(["button", "checkbox", "color", "date", "datetime-local", "email", "file", "hidden", "image", "month", "number", "password", "radio", "range", "reset", "search", "submit", "tel", "text", "time", "url", "week"]),
|
|
371
371
|
/**
|
|
372
372
|
* The value of the `input` element, required for a controlled component.
|
|
373
373
|
*/
|
|
374
|
-
value:
|
|
374
|
+
value: n.any
|
|
375
375
|
});
|
|
376
|
-
const Te = "_input_101pq_57", Ie = "_input__label_101pq_84",
|
|
377
|
-
"u-typography-h1": "_u-typography-h1_101pq_1",
|
|
378
|
-
"u-typography-h2": "_u-typography-h2_101pq_8",
|
|
379
|
-
"u-typography-h3": "_u-typography-h3_101pq_15",
|
|
380
|
-
"u-typography-h4": "_u-typography-h4_101pq_22",
|
|
381
|
-
"u-typography-h5": "_u-typography-h5_101pq_29",
|
|
382
|
-
"u-typography-h6": "_u-typography-h6_101pq_36",
|
|
383
|
-
"u-typography-base": "_u-typography-base_101pq_43",
|
|
384
|
-
"u-typography-base--xxl": "_u-typography-base--xxl_101pq_49",
|
|
385
|
-
"u-typography-base--xl": "_u-typography-base--xl_101pq_53",
|
|
386
|
-
"u-typography-base--lg": "_u-typography-base--lg_101pq_57",
|
|
376
|
+
const Te = "_input_101pq_57", Ie = "_input__label_101pq_84", f = {
|
|
387
377
|
"input__input-el": "_input__input-el_101pq_57",
|
|
388
|
-
"u-typography-base--sm": "_u-typography-base--sm_101pq_61",
|
|
389
|
-
"u-typography-base--bold": "_u-typography-base--bold_101pq_65",
|
|
390
|
-
"u-typography-base--strikethrough": "_u-typography-base--strikethrough_101pq_68",
|
|
391
|
-
"u-typography-base--underlined": "_u-typography-base--underlined_101pq_71",
|
|
392
|
-
"u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_101pq_74",
|
|
393
378
|
input: Te,
|
|
394
379
|
"input__messages-wrapper": "_input__messages-wrapper_101pq_81",
|
|
395
380
|
input__label: Ie,
|
|
@@ -402,31 +387,31 @@ const Te = "_input_101pq_57", Ie = "_input__label_101pq_84", _ = {
|
|
|
402
387
|
"input--disabled": "_input--disabled_101pq_153",
|
|
403
388
|
"input--focused": "_input--focused_101pq_159",
|
|
404
389
|
"input--error": "_input--error_101pq_162"
|
|
405
|
-
}, He =
|
|
390
|
+
}, He = fe(
|
|
406
391
|
({
|
|
407
|
-
label:
|
|
392
|
+
label: u,
|
|
408
393
|
infoMessage: s,
|
|
409
|
-
error:
|
|
410
|
-
errorMessage:
|
|
411
|
-
leftIcon:
|
|
394
|
+
error: m,
|
|
395
|
+
errorMessage: p,
|
|
396
|
+
leftIcon: _,
|
|
412
397
|
rightIcon: N,
|
|
413
|
-
id:
|
|
414
|
-
disabled:
|
|
398
|
+
id: S,
|
|
399
|
+
disabled: q,
|
|
415
400
|
type: c = "text",
|
|
416
401
|
maxLength: O,
|
|
417
|
-
isInteger:
|
|
418
|
-
useCommaInDecimal:
|
|
402
|
+
isInteger: l,
|
|
403
|
+
useCommaInDecimal: b,
|
|
419
404
|
allowNegativeNumbers: g = !1,
|
|
420
|
-
decimalLength:
|
|
421
|
-
hideCharsCounter:
|
|
422
|
-
required:
|
|
423
|
-
onChange:
|
|
424
|
-
classNameWrapper:
|
|
425
|
-
classNameLabel:
|
|
405
|
+
decimalLength: C = 10,
|
|
406
|
+
hideCharsCounter: R = !1,
|
|
407
|
+
required: P,
|
|
408
|
+
onChange: v,
|
|
409
|
+
classNameWrapper: h,
|
|
410
|
+
classNameLabel: j,
|
|
426
411
|
classNameInput: H,
|
|
427
412
|
classNameInfoMessage: K,
|
|
428
|
-
classNameErrorMessage:
|
|
429
|
-
classNameCharsCounter:
|
|
413
|
+
classNameErrorMessage: E,
|
|
414
|
+
classNameCharsCounter: A,
|
|
430
415
|
"data-testid-wrapper": T,
|
|
431
416
|
"data-testid-label": I,
|
|
432
417
|
"data-testid-input": $,
|
|
@@ -436,48 +421,48 @@ const Te = "_input_101pq_57", Ie = "_input__label_101pq_84", _ = {
|
|
|
436
421
|
...e
|
|
437
422
|
}, z) => {
|
|
438
423
|
var Q, G;
|
|
439
|
-
const [
|
|
424
|
+
const [t, r] = me(
|
|
440
425
|
((Q = e.value) == null ? void 0 : Q.length) || ((G = e.defaultValue) == null ? void 0 : G.length) || 0
|
|
441
|
-
),
|
|
426
|
+
), a = _e(), d = S || `input_${a}`;
|
|
442
427
|
Object.assign(e, { "data-testid": $ });
|
|
443
|
-
const
|
|
444
|
-
var
|
|
428
|
+
const V = O && !R, J = (o) => {
|
|
429
|
+
var w, k;
|
|
445
430
|
if (c === "number-as-text") {
|
|
446
|
-
let
|
|
447
|
-
if (!
|
|
448
|
-
const
|
|
449
|
-
|
|
431
|
+
let i = l ? he(o.target.value) : b ? o.target.value.replace(".", ",") : o.target.value.replace(",", ".");
|
|
432
|
+
if (!l && C > 0) {
|
|
433
|
+
const y = String(i), [le, X] = y.split(/,|\./);
|
|
434
|
+
y !== "" && X && (i = [le, X.slice(0, C)].join(b ? "," : "."));
|
|
450
435
|
}
|
|
451
|
-
o.target.value = String(
|
|
452
|
-
const B = !isNaN(Number(String(
|
|
453
|
-
|
|
436
|
+
o.target.value = String(i);
|
|
437
|
+
const B = !isNaN(Number(String(i).replace(",", ".")));
|
|
438
|
+
v == null || v({
|
|
454
439
|
...o,
|
|
455
440
|
target: {
|
|
456
441
|
...o.target,
|
|
457
|
-
value: B && String(
|
|
458
|
-
valueAsNumber: B && String(
|
|
442
|
+
value: B && String(i).length ? String(Number(String(i).replace(",", "."))) : "",
|
|
443
|
+
valueAsNumber: B && String(i).length ? Number(String(i).replace(",", ".")) : NaN
|
|
459
444
|
}
|
|
460
445
|
});
|
|
461
446
|
return;
|
|
462
447
|
}
|
|
463
448
|
if (c === "number") {
|
|
464
|
-
let
|
|
465
|
-
const [B,
|
|
466
|
-
|
|
449
|
+
let i = String(o.target.value);
|
|
450
|
+
const [B, y] = i.split(".");
|
|
451
|
+
i !== "" && (y != null && y.length ? i = [Number(B), y.slice(0, C)].join(".") : i = String(Number(B))), o.target.value = i;
|
|
467
452
|
}
|
|
468
|
-
|
|
453
|
+
V && r((k = (w = o == null ? void 0 : o.target) == null ? void 0 : w.value) == null ? void 0 : k.length), v && v(o);
|
|
469
454
|
}, Z = (o) => {
|
|
470
|
-
var
|
|
471
|
-
c === "number-as-text" && (
|
|
455
|
+
var w;
|
|
456
|
+
c === "number-as-text" && (l ? be(o, g) : ge(o, g)), (w = e == null ? void 0 : e.onKeyDown) == null || w.call(e, o);
|
|
472
457
|
}, ee = (o) => {
|
|
473
|
-
var
|
|
458
|
+
var w;
|
|
474
459
|
if (c === "number-as-text" && o.target.value.length) {
|
|
475
|
-
const
|
|
476
|
-
let
|
|
477
|
-
isNaN(Number(
|
|
460
|
+
const k = l ? o.target.value.replace(/(,\.)/gi, "") : o.target.value.replace(",", ".");
|
|
461
|
+
let i = String(Number(k));
|
|
462
|
+
isNaN(Number(i)) && (i = ""), o.target.value = b ? i.replace(".", ",") : i;
|
|
478
463
|
}
|
|
479
|
-
(
|
|
480
|
-
},
|
|
464
|
+
(w = e == null ? void 0 : e.onBlur) == null || w.call(e, o);
|
|
465
|
+
}, ne = ae(() => e.multiline !== !0 ? {
|
|
481
466
|
type: c === "number-as-text" ? "text" : c,
|
|
482
467
|
multiline: e.multiline
|
|
483
468
|
} : {
|
|
@@ -486,73 +471,73 @@ const Te = "_input_101pq_57", Ie = "_input__label_101pq_84", _ = {
|
|
|
486
471
|
rows: (e == null ? void 0 : e.rows) || 5,
|
|
487
472
|
minRows: e == null ? void 0 : e.minRows,
|
|
488
473
|
maxRows: e == null ? void 0 : e.maxRows
|
|
489
|
-
}, [e]),
|
|
490
|
-
return /* @__PURE__ */ D("div", { className:
|
|
491
|
-
|
|
492
|
-
|
|
474
|
+
}, [e]), te = ae(() => c === "number-as-text" && (e != null && e.defaultValue) ? ue(e == null ? void 0 : e.defaultValue, b) : e == null ? void 0 : e.defaultValue, [e.defaultValue]), oe = ae(() => c === "number-as-text" && (e != null && e.value) ? ue(e == null ? void 0 : e.value, b) : e == null ? void 0 : e.value, [e.value]);
|
|
475
|
+
return /* @__PURE__ */ D("div", { className: U(f.input, h), "data-testid": T, children: [
|
|
476
|
+
u && /* @__PURE__ */ D(
|
|
477
|
+
re,
|
|
493
478
|
{
|
|
494
479
|
bold: !0,
|
|
495
480
|
element: "label",
|
|
496
|
-
elementProps: { htmlFor:
|
|
497
|
-
className:
|
|
481
|
+
elementProps: { htmlFor: d },
|
|
482
|
+
className: U(f.input__label, j),
|
|
498
483
|
"data-testid": I,
|
|
499
484
|
children: [
|
|
500
|
-
|
|
501
|
-
|
|
485
|
+
u,
|
|
486
|
+
P && /* @__PURE__ */ M("span", { children: "*" })
|
|
502
487
|
]
|
|
503
488
|
}
|
|
504
489
|
),
|
|
505
490
|
/* @__PURE__ */ M(
|
|
506
491
|
ce,
|
|
507
492
|
{
|
|
508
|
-
id:
|
|
509
|
-
disabled:
|
|
510
|
-
error: typeof
|
|
511
|
-
"aria-label":
|
|
493
|
+
id: d,
|
|
494
|
+
disabled: q,
|
|
495
|
+
error: typeof m == "boolean" ? m : !!p,
|
|
496
|
+
"aria-label": u,
|
|
512
497
|
slotProps: {
|
|
513
498
|
root: (o) => ({
|
|
514
|
-
className:
|
|
515
|
-
[
|
|
516
|
-
[
|
|
517
|
-
[
|
|
499
|
+
className: U(f["input__input-el-wrapper"], {
|
|
500
|
+
[f["input--disabled"]]: o.disabled,
|
|
501
|
+
[f["input--focused"]]: o.focused,
|
|
502
|
+
[f["input--error"]]: o.error
|
|
518
503
|
})
|
|
519
504
|
}),
|
|
520
505
|
input: {
|
|
521
506
|
ref: z,
|
|
522
|
-
className:
|
|
507
|
+
className: U(f["input__input-el"], H),
|
|
523
508
|
maxLength: O,
|
|
524
509
|
onChange: J,
|
|
525
510
|
...e,
|
|
526
511
|
onKeyDown: Z,
|
|
527
512
|
onBlur: ee,
|
|
528
|
-
defaultValue:
|
|
513
|
+
defaultValue: te,
|
|
529
514
|
value: oe
|
|
530
515
|
}
|
|
531
516
|
},
|
|
532
|
-
startAdornment:
|
|
533
|
-
endAdornment: N && /* @__PURE__ */ M("span", { className:
|
|
534
|
-
...
|
|
517
|
+
startAdornment: _ && /* @__PURE__ */ M("span", { className: f["input__left-icon"], children: _ }),
|
|
518
|
+
endAdornment: N && /* @__PURE__ */ M("span", { className: f["input__right-icon"], children: N }),
|
|
519
|
+
...ne
|
|
535
520
|
}
|
|
536
521
|
),
|
|
537
|
-
/* @__PURE__ */ D("div", { className:
|
|
538
|
-
(
|
|
539
|
-
|
|
522
|
+
/* @__PURE__ */ D("div", { className: f["input__messages-wrapper"], children: [
|
|
523
|
+
(p || s) && /* @__PURE__ */ D(
|
|
524
|
+
re,
|
|
540
525
|
{
|
|
541
|
-
className:
|
|
542
|
-
"data-testid":
|
|
526
|
+
className: p ? U(f["input__error-message"], E) : U(f["input__info-message"], K),
|
|
527
|
+
"data-testid": p ? Y : L,
|
|
543
528
|
children: [
|
|
544
|
-
/* @__PURE__ */ M(
|
|
545
|
-
|
|
529
|
+
/* @__PURE__ */ M(we, { icon: p ? "circle-exclamation" : "circle-info" }),
|
|
530
|
+
p || s
|
|
546
531
|
]
|
|
547
532
|
}
|
|
548
533
|
),
|
|
549
|
-
|
|
550
|
-
|
|
534
|
+
V && /* @__PURE__ */ D(
|
|
535
|
+
re,
|
|
551
536
|
{
|
|
552
|
-
className:
|
|
537
|
+
className: U(f["input__chars-counter"], A),
|
|
553
538
|
"data-testid": W,
|
|
554
539
|
children: [
|
|
555
|
-
|
|
540
|
+
t,
|
|
556
541
|
" / ",
|
|
557
542
|
O
|
|
558
543
|
]
|