@pismo/marola 1.0.10 → 1.0.12
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/Chip/Chip.stories.d.ts +1 -1
- package/dist/components/ConfirmationDialog/ConfirmationDialog.stories.d.ts +1 -1
- package/dist/components/Dialog/Dialog.stories.d.ts +2 -2
- package/dist/components/EllipsisTooltip/EllipsisTooltip.stories.d.ts +1 -1
- package/dist/components/Icon/Icon.js +121 -107
- package/dist/components/Icon/types.d.ts +1 -1
- package/dist/components/Input/Input.js +235 -234
- package/dist/components/LoadingSpinner/LoadingSpinner.stories.d.ts +1 -1
- package/dist/components/Popover/Popover.stories.d.ts +1 -1
- package/dist/components/Snackbar/Snackbar.stories.d.ts +2 -2
- package/dist/components/ToggleGroup/ToggleGroup.stories.d.ts +1 -1
- package/dist/components/Tooltip/Tooltip.stories.d.ts +1 -1
- package/dist/components/Typography/Typography.stories.d.ts +1 -1
- package/dist/contexts/SnackbarProvider/SnackbarProvider.stories.d.ts +1 -1
- package/package.json +1 -1
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* This file is automatically generated. Any changes will be lost.
|
|
3
3
|
* run "yarn generate-icon-types" or "yarn build" to regenerate it.
|
|
4
4
|
*/
|
|
5
|
-
export type IconName = 'arrow-down-arrow-up' | 'arrow-down-z-a' | 'arrow-left' | 'arrow-right-to-arc' | 'arrows-rotate' | 'badge-check' | 'bell' | 'building-columns' | 'calendar-days' | 'check-double' | 'chevron-down' | 'chevron-up' | 'circle' | 'circle-arrow-right' | 'circle-check' | 'circle-check-outline' | 'circle-exclamation' | 'circle-exclamation-outline' | 'circle-info' | 'circle-minus' | 'circle-xmark' | 'circle-xmark-outline' | 'coins' | 'credit-card' | 'credit-card-blank' | 'credit-card-front' | 'ellipsis-vertical' | 'empty-img' | 'empty-set' | 'eye' | 'eye-slash' | 'filter-list' | 'folder-magnifying-glass' | 'grid-horizontal' | 'house-blank' | 'list' | 'loader' | 'lock-keyhole' | 'lock-keyhole-open' | 'logo' | 'magnifying-glass' | 'map-location-dot' | 'mobile-screen-button' | 'money-bill-transfer' | 'money-bill-trend-up' | 'money-bills' | 'notes-medical' | 'paste' | 'pen-to-square' | 'piggy-bank' | 'rectangle-history' | 'rectangle-history-circle-user' | 'rotate' | 'server' | 'sidebar' | 'squirrel' | 'trash' | 'trash-can' | 'upload' | 'user' | 'user-gear' | 'user-group' | 'user-tie' | 'user-tie-hair' | 'user-vneck' | 'users' | 'wallet' | 'warehouse-full' | 'xmark';
|
|
5
|
+
export type IconName = 'arrow-down-arrow-up' | 'arrow-down-z-a' | 'arrow-left' | 'arrow-right-to-arc' | 'arrows-rotate' | 'badge-check' | 'bell' | 'building-columns' | 'calendar-days' | 'check-double' | 'chevron-down' | 'chevron-up' | 'circle' | 'circle-arrow-right' | 'circle-check' | 'circle-check-outline' | 'circle-exclamation' | 'circle-exclamation-outline' | 'circle-info' | 'circle-minus' | 'circle-xmark' | 'circle-xmark-outline' | 'coins' | 'copy' | 'credit-card' | 'credit-card-blank' | 'credit-card-front' | 'download' | 'ellipsis-vertical' | 'empty-img' | 'empty-set' | 'eye' | 'eye-slash' | 'filter-list' | 'folder-magnifying-glass' | 'grid-horizontal' | 'house-blank' | 'list' | 'loader' | 'lock-keyhole' | 'lock-keyhole-open' | 'logo' | 'magnifying-glass' | 'map-location-dot' | 'mobile-screen-button' | 'money-bill-transfer' | 'money-bill-trend-up' | 'money-bills' | 'notes-medical' | 'paste' | 'pen-to-square' | 'piggy-bank' | 'rectangle-history' | 'rectangle-history-circle-user' | 'rotate' | 'server' | 'sidebar' | 'squirrel' | 'trash' | 'trash-can' | 'upload' | 'user' | 'user-gear' | 'user-group' | 'user-tie' | 'user-tie-hair' | 'user-vneck' | 'users' | 'wallet' | 'warehouse-full' | 'xmark';
|
|
@@ -1,229 +1,229 @@
|
|
|
1
1
|
import '../../assets/Input.css';
|
|
2
|
-
import { jsxs as K, jsx as
|
|
3
|
-
import * as
|
|
2
|
+
import { jsxs as K, jsx as A } from "react/jsx-runtime";
|
|
3
|
+
import * as N from "react";
|
|
4
4
|
import { forwardRef as de, useState as ce, useId as _e, useMemo as ye } from "react";
|
|
5
|
-
import { c as
|
|
5
|
+
import { c as k } from "../../clsx-DB4S2d7J.js";
|
|
6
6
|
import { Icon as me } from "../Icon/Icon.js";
|
|
7
|
-
import { Typography as
|
|
8
|
-
import { g as fe, a as he, u as ge, f as
|
|
9
|
-
function Ne(
|
|
10
|
-
let
|
|
11
|
-
for (let
|
|
12
|
-
|
|
13
|
-
return "Minified MUI error #" +
|
|
7
|
+
import { Typography as Q } from "../Typography/Typography.js";
|
|
8
|
+
import { g as fe, a as he, u as ge, f as X, b as h, _ as be, c as oe, i as xe, P as e, d as Ce, e as we } from "../../useSlotProps-C_I1kEHr.js";
|
|
9
|
+
function Ne(s) {
|
|
10
|
+
let l = "https://mui.com/production-error/?code=" + s;
|
|
11
|
+
for (let c = 1; c < arguments.length; c += 1)
|
|
12
|
+
l += "&args[]=" + encodeURIComponent(arguments[c]);
|
|
13
|
+
return "Minified MUI error #" + s + "; visit " + l + " for the full message.";
|
|
14
14
|
}
|
|
15
|
-
const
|
|
16
|
-
function
|
|
17
|
-
return fe(
|
|
15
|
+
const ne = "Input";
|
|
16
|
+
function ve(s) {
|
|
17
|
+
return fe(ne, s);
|
|
18
18
|
}
|
|
19
|
-
he(
|
|
20
|
-
const
|
|
21
|
-
process.env.NODE_ENV !== "production" && (
|
|
22
|
-
function
|
|
23
|
-
return
|
|
19
|
+
he(ne, ["root", "formControl", "focused", "disabled", "error", "multiline", "input", "inputMultiline", "inputTypeSearch", "adornedStart", "adornedEnd"]);
|
|
20
|
+
const re = /* @__PURE__ */ N.createContext(void 0);
|
|
21
|
+
process.env.NODE_ENV !== "production" && (re.displayName = "FormControlContext");
|
|
22
|
+
function Pe() {
|
|
23
|
+
return N.useContext(re);
|
|
24
24
|
}
|
|
25
|
-
function Re(
|
|
25
|
+
function Re(s = {}) {
|
|
26
26
|
const {
|
|
27
|
-
defaultValue:
|
|
28
|
-
disabled:
|
|
29
|
-
error:
|
|
30
|
-
onBlur:
|
|
31
|
-
onChange:
|
|
32
|
-
onFocus:
|
|
27
|
+
defaultValue: l,
|
|
28
|
+
disabled: c = !1,
|
|
29
|
+
error: i = !1,
|
|
30
|
+
onBlur: _,
|
|
31
|
+
onChange: f,
|
|
32
|
+
onFocus: v,
|
|
33
33
|
required: P = !1,
|
|
34
|
-
value:
|
|
35
|
-
inputRef:
|
|
36
|
-
} =
|
|
37
|
-
let
|
|
34
|
+
value: R,
|
|
35
|
+
inputRef: E
|
|
36
|
+
} = s, o = Pe();
|
|
37
|
+
let F, y, b, x, g;
|
|
38
38
|
if (o) {
|
|
39
|
-
var
|
|
40
|
-
if (
|
|
41
|
-
const t = ["defaultValue", "disabled", "error", "required", "value"].filter((r) =>
|
|
39
|
+
var S, m, V;
|
|
40
|
+
if (F = void 0, y = (S = o.disabled) != null ? S : !1, b = (m = o.error) != null ? m : !1, x = (V = o.required) != null ? V : !1, g = o.value, process.env.NODE_ENV !== "production") {
|
|
41
|
+
const t = ["defaultValue", "disabled", "error", "required", "value"].filter((r) => s[r] !== void 0);
|
|
42
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
|
+
F = l, y = c, b = i, x = P, g = R;
|
|
47
47
|
const {
|
|
48
|
-
current:
|
|
49
|
-
} =
|
|
48
|
+
current: D
|
|
49
|
+
} = N.useRef(g != null), M = N.useCallback((t) => {
|
|
50
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
|
-
!o &&
|
|
55
|
-
}, [o,
|
|
56
|
-
const
|
|
52
|
+
}, []), C = N.useRef(null), B = ge(C, E, M), [I, O] = N.useState(!1);
|
|
53
|
+
N.useEffect(() => {
|
|
54
|
+
!o && y && I && (O(!1), _ == null || _());
|
|
55
|
+
}, [o, y, I, _]);
|
|
56
|
+
const a = (t) => (r) => {
|
|
57
57
|
var n;
|
|
58
58
|
if (o != null && o.disabled) {
|
|
59
59
|
r.stopPropagation();
|
|
60
60
|
return;
|
|
61
61
|
}
|
|
62
62
|
if ((n = t.onFocus) == null || n.call(t, r), o && o.onFocus) {
|
|
63
|
-
var
|
|
64
|
-
o == null || (
|
|
63
|
+
var u;
|
|
64
|
+
o == null || (u = o.onFocus) == null || u.call(o);
|
|
65
65
|
} else
|
|
66
|
-
|
|
67
|
-
},
|
|
66
|
+
O(!0);
|
|
67
|
+
}, H = (t) => (r) => {
|
|
68
68
|
var n;
|
|
69
|
-
(n = t.onBlur) == null || n.call(t, r), o && o.onBlur ? o.onBlur() :
|
|
70
|
-
},
|
|
71
|
-
var
|
|
72
|
-
if (!
|
|
69
|
+
(n = t.onBlur) == null || n.call(t, r), o && o.onBlur ? o.onBlur() : O(!1);
|
|
70
|
+
}, q = (t) => (r, ...n) => {
|
|
71
|
+
var u, w;
|
|
72
|
+
if (!D && (r.target || C.current) == null)
|
|
73
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." : Ne(17));
|
|
74
|
-
o == null || (
|
|
75
|
-
},
|
|
74
|
+
o == null || (u = o.onChange) == null || u.call(o, r), (w = t.onChange) == null || w.call(t, r, ...n);
|
|
75
|
+
}, $ = (t) => (r) => {
|
|
76
76
|
var n;
|
|
77
|
-
|
|
77
|
+
C.current && r.currentTarget === r.target && C.current.focus(), (n = t.onClick) == null || n.call(t, r);
|
|
78
78
|
};
|
|
79
79
|
return {
|
|
80
|
-
disabled:
|
|
81
|
-
error:
|
|
82
|
-
focused:
|
|
80
|
+
disabled: y,
|
|
81
|
+
error: b,
|
|
82
|
+
focused: I,
|
|
83
83
|
formControlContext: o,
|
|
84
84
|
getInputProps: (t = {}) => {
|
|
85
|
-
const n =
|
|
86
|
-
onBlur:
|
|
87
|
-
onChange:
|
|
88
|
-
onFocus:
|
|
89
|
-
},
|
|
90
|
-
onBlur:
|
|
91
|
-
onChange:
|
|
92
|
-
onFocus:
|
|
85
|
+
const n = h({}, {
|
|
86
|
+
onBlur: _,
|
|
87
|
+
onChange: f,
|
|
88
|
+
onFocus: v
|
|
89
|
+
}, X(t)), u = h({}, n, {
|
|
90
|
+
onBlur: H(n),
|
|
91
|
+
onChange: q(n),
|
|
92
|
+
onFocus: a(n)
|
|
93
93
|
});
|
|
94
|
-
return
|
|
95
|
-
"aria-invalid":
|
|
96
|
-
defaultValue:
|
|
97
|
-
value:
|
|
98
|
-
required:
|
|
99
|
-
disabled:
|
|
94
|
+
return h({}, u, {
|
|
95
|
+
"aria-invalid": b || void 0,
|
|
96
|
+
defaultValue: F,
|
|
97
|
+
value: g,
|
|
98
|
+
required: x,
|
|
99
|
+
disabled: y
|
|
100
100
|
}, t, {
|
|
101
101
|
ref: B
|
|
102
|
-
},
|
|
102
|
+
}, u);
|
|
103
103
|
},
|
|
104
104
|
getRootProps: (t = {}) => {
|
|
105
|
-
const r =
|
|
106
|
-
return
|
|
107
|
-
onClick:
|
|
105
|
+
const r = X(s, ["onBlur", "onChange", "onFocus"]), n = h({}, r, X(t));
|
|
106
|
+
return h({}, t, n, {
|
|
107
|
+
onClick: $(n)
|
|
108
108
|
});
|
|
109
109
|
},
|
|
110
110
|
inputRef: B,
|
|
111
|
-
required:
|
|
112
|
-
value:
|
|
111
|
+
required: x,
|
|
112
|
+
value: g
|
|
113
113
|
};
|
|
114
114
|
}
|
|
115
|
-
const Ee = ["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"], Fe = (
|
|
115
|
+
const Ee = ["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"], Fe = (s) => {
|
|
116
116
|
const {
|
|
117
|
-
disabled:
|
|
118
|
-
error:
|
|
119
|
-
focused:
|
|
120
|
-
formControlContext:
|
|
121
|
-
multiline:
|
|
122
|
-
startAdornment:
|
|
117
|
+
disabled: l,
|
|
118
|
+
error: c,
|
|
119
|
+
focused: i,
|
|
120
|
+
formControlContext: _,
|
|
121
|
+
multiline: f,
|
|
122
|
+
startAdornment: v,
|
|
123
123
|
endAdornment: P
|
|
124
|
-
} =
|
|
124
|
+
} = s;
|
|
125
125
|
return Ce({
|
|
126
|
-
root: ["root",
|
|
127
|
-
input: ["input",
|
|
128
|
-
}, we(
|
|
129
|
-
},
|
|
130
|
-
var
|
|
126
|
+
root: ["root", l && "disabled", c && "error", i && "focused", !!_ && "formControl", f && "multiline", !!v && "adornedStart", !!P && "adornedEnd"],
|
|
127
|
+
input: ["input", l && "disabled", f && "multiline"]
|
|
128
|
+
}, we(ve));
|
|
129
|
+
}, ae = /* @__PURE__ */ N.forwardRef(function(l, c) {
|
|
130
|
+
var i, _, f;
|
|
131
131
|
const {
|
|
132
|
-
"aria-describedby":
|
|
132
|
+
"aria-describedby": v,
|
|
133
133
|
"aria-label": P,
|
|
134
|
-
"aria-labelledby":
|
|
135
|
-
autoComplete:
|
|
134
|
+
"aria-labelledby": R,
|
|
135
|
+
autoComplete: E,
|
|
136
136
|
autoFocus: o,
|
|
137
|
-
className:
|
|
138
|
-
defaultValue:
|
|
139
|
-
disabled:
|
|
140
|
-
endAdornment:
|
|
141
|
-
error:
|
|
142
|
-
id:
|
|
143
|
-
multiline:
|
|
144
|
-
name:
|
|
145
|
-
onClick:
|
|
146
|
-
onChange:
|
|
147
|
-
onKeyDown:
|
|
137
|
+
className: F,
|
|
138
|
+
defaultValue: y,
|
|
139
|
+
disabled: b,
|
|
140
|
+
endAdornment: x,
|
|
141
|
+
error: g,
|
|
142
|
+
id: S,
|
|
143
|
+
multiline: m = !1,
|
|
144
|
+
name: V,
|
|
145
|
+
onClick: D,
|
|
146
|
+
onChange: M,
|
|
147
|
+
onKeyDown: C,
|
|
148
148
|
onKeyUp: B,
|
|
149
|
-
onFocus:
|
|
150
|
-
onBlur:
|
|
151
|
-
placeholder:
|
|
152
|
-
readOnly:
|
|
153
|
-
required:
|
|
154
|
-
startAdornment:
|
|
149
|
+
onFocus: I,
|
|
150
|
+
onBlur: O,
|
|
151
|
+
placeholder: a,
|
|
152
|
+
readOnly: H,
|
|
153
|
+
required: q,
|
|
154
|
+
startAdornment: $,
|
|
155
155
|
value: L,
|
|
156
156
|
type: U,
|
|
157
157
|
rows: t,
|
|
158
158
|
slotProps: r = {},
|
|
159
159
|
slots: n = {},
|
|
160
|
-
minRows:
|
|
161
|
-
maxRows:
|
|
162
|
-
} =
|
|
163
|
-
getRootProps:
|
|
164
|
-
getInputProps:
|
|
165
|
-
focused:
|
|
166
|
-
formControlContext:
|
|
167
|
-
error:
|
|
160
|
+
minRows: u,
|
|
161
|
+
maxRows: w
|
|
162
|
+
} = l, p = be(l, Ee), {
|
|
163
|
+
getRootProps: Y,
|
|
164
|
+
getInputProps: W,
|
|
165
|
+
focused: T,
|
|
166
|
+
formControlContext: z,
|
|
167
|
+
error: j,
|
|
168
168
|
disabled: se
|
|
169
169
|
} = Re({
|
|
170
|
-
disabled:
|
|
171
|
-
defaultValue:
|
|
172
|
-
error:
|
|
173
|
-
onBlur:
|
|
174
|
-
onClick:
|
|
175
|
-
onChange:
|
|
176
|
-
onFocus:
|
|
177
|
-
required:
|
|
170
|
+
disabled: b,
|
|
171
|
+
defaultValue: y,
|
|
172
|
+
error: g,
|
|
173
|
+
onBlur: O,
|
|
174
|
+
onClick: D,
|
|
175
|
+
onChange: M,
|
|
176
|
+
onFocus: I,
|
|
177
|
+
required: q,
|
|
178
178
|
value: L
|
|
179
|
-
}),
|
|
179
|
+
}), Z = m ? void 0 : U ?? "text", G = h({}, l, {
|
|
180
180
|
disabled: se,
|
|
181
|
-
error:
|
|
182
|
-
focused:
|
|
183
|
-
formControlContext:
|
|
184
|
-
multiline:
|
|
185
|
-
type:
|
|
186
|
-
}),
|
|
187
|
-
"aria-describedby":
|
|
181
|
+
error: j,
|
|
182
|
+
focused: T,
|
|
183
|
+
formControlContext: z,
|
|
184
|
+
multiline: m,
|
|
185
|
+
type: Z
|
|
186
|
+
}), ee = Fe(G), le = {
|
|
187
|
+
"aria-describedby": v,
|
|
188
188
|
"aria-label": P,
|
|
189
|
-
"aria-labelledby":
|
|
190
|
-
autoComplete:
|
|
189
|
+
"aria-labelledby": R,
|
|
190
|
+
autoComplete: E,
|
|
191
191
|
autoFocus: o,
|
|
192
|
-
id:
|
|
193
|
-
onKeyDown:
|
|
192
|
+
id: S,
|
|
193
|
+
onKeyDown: C,
|
|
194
194
|
onKeyUp: B,
|
|
195
|
-
name:
|
|
196
|
-
placeholder:
|
|
197
|
-
readOnly:
|
|
198
|
-
type:
|
|
199
|
-
},
|
|
200
|
-
elementType:
|
|
201
|
-
getSlotProps:
|
|
195
|
+
name: V,
|
|
196
|
+
placeholder: a,
|
|
197
|
+
readOnly: H,
|
|
198
|
+
type: Z
|
|
199
|
+
}, te = (i = n.root) != null ? i : "div", ue = oe({
|
|
200
|
+
elementType: te,
|
|
201
|
+
getSlotProps: Y,
|
|
202
202
|
externalSlotProps: r.root,
|
|
203
|
-
externalForwardedProps:
|
|
203
|
+
externalForwardedProps: p,
|
|
204
204
|
additionalProps: {
|
|
205
|
-
ref:
|
|
205
|
+
ref: c
|
|
206
206
|
},
|
|
207
|
-
ownerState:
|
|
208
|
-
className: [
|
|
209
|
-
}),
|
|
210
|
-
elementType:
|
|
211
|
-
getSlotProps: (pe) =>
|
|
207
|
+
ownerState: G,
|
|
208
|
+
className: [ee.root, F]
|
|
209
|
+
}), J = m ? (_ = n.textarea) != null ? _ : "textarea" : (f = n.input) != null ? f : "input", ie = oe({
|
|
210
|
+
elementType: J,
|
|
211
|
+
getSlotProps: (pe) => W(h({}, le, pe)),
|
|
212
212
|
externalSlotProps: r.input,
|
|
213
|
-
additionalProps:
|
|
214
|
-
rows:
|
|
215
|
-
},
|
|
216
|
-
minRows: t ||
|
|
217
|
-
maxRows: t ||
|
|
213
|
+
additionalProps: h({
|
|
214
|
+
rows: m ? t : void 0
|
|
215
|
+
}, m && !xe(J) && {
|
|
216
|
+
minRows: t || u,
|
|
217
|
+
maxRows: t || w
|
|
218
218
|
}),
|
|
219
|
-
ownerState:
|
|
220
|
-
className:
|
|
219
|
+
ownerState: G,
|
|
220
|
+
className: ee.input
|
|
221
221
|
});
|
|
222
|
-
return process.env.NODE_ENV !== "production" &&
|
|
223
|
-
children: [
|
|
222
|
+
return process.env.NODE_ENV !== "production" && m && t && (u || w) && console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."), /* @__PURE__ */ K(te, h({}, ue, {
|
|
223
|
+
children: [$, /* @__PURE__ */ A(J, h({}, ie)), x]
|
|
224
224
|
}));
|
|
225
225
|
});
|
|
226
|
-
process.env.NODE_ENV !== "production" && (
|
|
226
|
+
process.env.NODE_ENV !== "production" && (ae.propTypes = {
|
|
227
227
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
228
228
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
229
229
|
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
@@ -373,7 +373,7 @@ process.env.NODE_ENV !== "production" && (ne.propTypes = {
|
|
|
373
373
|
*/
|
|
374
374
|
value: e.any
|
|
375
375
|
});
|
|
376
|
-
const Ie = "_input_y5x3p_57", Oe = "_input__label_y5x3p_84",
|
|
376
|
+
const Ie = "_input_y5x3p_57", Oe = "_input__label_y5x3p_84", d = {
|
|
377
377
|
"u-typography-h1": "_u-typography-h1_y5x3p_1",
|
|
378
378
|
"u-typography-h2": "_u-typography-h2_y5x3p_8",
|
|
379
379
|
"u-typography-h3": "_u-typography-h3_y5x3p_15",
|
|
@@ -404,113 +404,114 @@ const Ie = "_input_y5x3p_57", Oe = "_input__label_y5x3p_84", p = {
|
|
|
404
404
|
"input--error": "_input--error_y5x3p_162"
|
|
405
405
|
}, je = de(
|
|
406
406
|
({
|
|
407
|
-
label:
|
|
408
|
-
infoMessage:
|
|
409
|
-
error:
|
|
410
|
-
errorMessage:
|
|
411
|
-
leftIcon:
|
|
412
|
-
rightIcon:
|
|
413
|
-
id:
|
|
407
|
+
label: s,
|
|
408
|
+
infoMessage: l,
|
|
409
|
+
error: c,
|
|
410
|
+
errorMessage: i,
|
|
411
|
+
leftIcon: _,
|
|
412
|
+
rightIcon: f,
|
|
413
|
+
id: v,
|
|
414
414
|
disabled: P,
|
|
415
|
-
type:
|
|
416
|
-
maxLength:
|
|
415
|
+
type: R = "text",
|
|
416
|
+
maxLength: E,
|
|
417
417
|
decimalLength: o = 10,
|
|
418
|
-
hideCharsCounter:
|
|
419
|
-
onChange:
|
|
420
|
-
classNameWrapper:
|
|
421
|
-
classNameLabel:
|
|
422
|
-
classNameInput:
|
|
423
|
-
classNameInfoMessage:
|
|
424
|
-
classNameErrorMessage:
|
|
425
|
-
classNameCharsCounter:
|
|
426
|
-
"data-testid-wrapper":
|
|
427
|
-
"data-testid-label":
|
|
428
|
-
"data-testid-input":
|
|
418
|
+
hideCharsCounter: F = !1,
|
|
419
|
+
onChange: y,
|
|
420
|
+
classNameWrapper: b,
|
|
421
|
+
classNameLabel: x,
|
|
422
|
+
classNameInput: g,
|
|
423
|
+
classNameInfoMessage: S,
|
|
424
|
+
classNameErrorMessage: m,
|
|
425
|
+
classNameCharsCounter: V,
|
|
426
|
+
"data-testid-wrapper": D,
|
|
427
|
+
"data-testid-label": M,
|
|
428
|
+
"data-testid-input": C,
|
|
429
429
|
"data-testid-infoMessage": B,
|
|
430
|
-
"data-testid-errorMessage":
|
|
431
|
-
"data-testid-charsCounter":
|
|
432
|
-
...
|
|
433
|
-
},
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
430
|
+
"data-testid-errorMessage": I,
|
|
431
|
+
"data-testid-charsCounter": O,
|
|
432
|
+
...a
|
|
433
|
+
}, H) => {
|
|
434
|
+
var u, w;
|
|
435
|
+
const [q, $] = ce(((u = a.value) == null ? void 0 : u.length) || ((w = a.defaultValue) == null ? void 0 : w.length) || 0), L = _e(), U = v || `input_${L}`;
|
|
436
|
+
Object.assign(a, { "data-testid": C });
|
|
437
|
+
const t = E && !F, r = (p) => {
|
|
438
|
+
var Y, W;
|
|
439
|
+
if (R === "number") {
|
|
440
|
+
let T = String(p.target.value);
|
|
441
|
+
const [z, j] = T.split(".");
|
|
442
|
+
T !== "" && (j != null && j.length ? T = [Number(z), j.slice(0, o)].join(".") : T = String(Number(z))), p.target.value = T;
|
|
442
443
|
}
|
|
443
|
-
t &&
|
|
444
|
-
}, n = ye(() =>
|
|
445
|
-
type:
|
|
446
|
-
multiline:
|
|
444
|
+
t && $((W = (Y = p == null ? void 0 : p.target) == null ? void 0 : Y.value) == null ? void 0 : W.length), y && y(p);
|
|
445
|
+
}, n = ye(() => a.multiline !== !0 ? {
|
|
446
|
+
type: R,
|
|
447
|
+
multiline: a.multiline
|
|
447
448
|
} : {
|
|
448
449
|
type: void 0,
|
|
449
|
-
multiline:
|
|
450
|
-
rows: (
|
|
451
|
-
minRows:
|
|
452
|
-
maxRows:
|
|
453
|
-
}, [
|
|
454
|
-
return /* @__PURE__ */ K("div", { className:
|
|
455
|
-
|
|
456
|
-
|
|
450
|
+
multiline: a.multiline,
|
|
451
|
+
rows: (a == null ? void 0 : a.rows) || 5,
|
|
452
|
+
minRows: a == null ? void 0 : a.minRows,
|
|
453
|
+
maxRows: a == null ? void 0 : a.maxRows
|
|
454
|
+
}, [a]);
|
|
455
|
+
return /* @__PURE__ */ K("div", { className: k(d.input, b), "data-testid": D, children: [
|
|
456
|
+
s && /* @__PURE__ */ A(
|
|
457
|
+
Q,
|
|
457
458
|
{
|
|
458
459
|
element: "label",
|
|
459
460
|
elementProps: { htmlFor: U },
|
|
460
|
-
className:
|
|
461
|
-
"data-testid":
|
|
462
|
-
children:
|
|
461
|
+
className: k(d.input__label, x),
|
|
462
|
+
"data-testid": M,
|
|
463
|
+
children: s
|
|
463
464
|
}
|
|
464
465
|
),
|
|
465
|
-
/* @__PURE__ */
|
|
466
|
-
|
|
466
|
+
/* @__PURE__ */ A(
|
|
467
|
+
ae,
|
|
467
468
|
{
|
|
468
469
|
id: U,
|
|
469
470
|
disabled: P,
|
|
470
|
-
error: typeof
|
|
471
|
-
"aria-label":
|
|
471
|
+
error: typeof c == "boolean" ? c : !!i,
|
|
472
|
+
"aria-label": s,
|
|
472
473
|
slotProps: {
|
|
473
|
-
root: (
|
|
474
|
-
className:
|
|
475
|
-
[
|
|
476
|
-
[
|
|
477
|
-
[
|
|
474
|
+
root: (p) => ({
|
|
475
|
+
className: k(d["input__input-el-wrapper"], {
|
|
476
|
+
[d["input--disabled"]]: p.disabled,
|
|
477
|
+
[d["input--focused"]]: p.focused,
|
|
478
|
+
[d["input--error"]]: p.error
|
|
478
479
|
})
|
|
479
480
|
}),
|
|
480
481
|
input: {
|
|
481
|
-
ref:
|
|
482
|
-
className:
|
|
483
|
-
maxLength:
|
|
482
|
+
ref: H,
|
|
483
|
+
className: k(d["input__input-el"], g),
|
|
484
|
+
maxLength: E,
|
|
484
485
|
onChange: r,
|
|
485
|
-
...
|
|
486
|
+
...a
|
|
486
487
|
}
|
|
487
488
|
},
|
|
488
|
-
startAdornment:
|
|
489
|
-
endAdornment:
|
|
489
|
+
startAdornment: _ && /* @__PURE__ */ A("span", { className: d["input__left-icon"], children: _ }),
|
|
490
|
+
endAdornment: f && /* @__PURE__ */ A("span", { className: d["input__right-icon"], children: f }),
|
|
490
491
|
...n
|
|
491
492
|
}
|
|
492
493
|
),
|
|
493
|
-
/* @__PURE__ */ K("div", { className:
|
|
494
|
-
(
|
|
495
|
-
|
|
494
|
+
/* @__PURE__ */ K("div", { className: d["input__messages-wrapper"], children: [
|
|
495
|
+
(i || l) && /* @__PURE__ */ K(
|
|
496
|
+
Q,
|
|
496
497
|
{
|
|
497
|
-
className:
|
|
498
|
-
"data-testid":
|
|
498
|
+
className: i ? k(d["input__error-message"], m) : k(d["input__info-message"], S),
|
|
499
|
+
"data-testid": i ? I : B,
|
|
499
500
|
children: [
|
|
500
|
-
/* @__PURE__ */
|
|
501
|
-
|
|
501
|
+
/* @__PURE__ */ A(me, { icon: i ? "circle-exclamation" : "circle-info" }),
|
|
502
|
+
i || l
|
|
502
503
|
]
|
|
503
504
|
}
|
|
504
505
|
),
|
|
505
506
|
t && /* @__PURE__ */ K(
|
|
506
|
-
|
|
507
|
+
Q,
|
|
507
508
|
{
|
|
508
|
-
className:
|
|
509
|
-
"data-testid":
|
|
509
|
+
className: k(d["input__chars-counter"], V),
|
|
510
|
+
"data-testid": O,
|
|
510
511
|
children: [
|
|
511
|
-
|
|
512
|
+
q,
|
|
512
513
|
" / ",
|
|
513
|
-
|
|
514
|
+
E
|
|
514
515
|
]
|
|
515
516
|
}
|
|
516
517
|
)
|
|
@@ -4,7 +4,7 @@ declare const meta: {
|
|
|
4
4
|
title: string;
|
|
5
5
|
component: ({ invert, classNames }: import('./LoadingSpinner').LoadingSpinnerProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
tags: string[];
|
|
7
|
-
decorators: ((Story: import('@storybook/
|
|
7
|
+
decorators: ((Story: import('@storybook/types').PartialStoryFn<import('@storybook/react').ReactRenderer, {
|
|
8
8
|
invert?: boolean | undefined;
|
|
9
9
|
classNames?: string | undefined;
|
|
10
10
|
}>) => import("react/jsx-runtime").JSX.Element)[];
|
|
@@ -25,7 +25,7 @@ declare const meta: {
|
|
|
25
25
|
};
|
|
26
26
|
};
|
|
27
27
|
tags: string[];
|
|
28
|
-
decorators: ((Story: import('@storybook/
|
|
28
|
+
decorators: ((Story: import('@storybook/types').PartialStoryFn<import('@storybook/react').ReactRenderer, {
|
|
29
29
|
[x: string]: any;
|
|
30
30
|
}>) => import("react/jsx-runtime").JSX.Element)[];
|
|
31
31
|
};
|
|
@@ -5,7 +5,7 @@ declare const meta: {
|
|
|
5
5
|
title: string;
|
|
6
6
|
component: ({ snackbarMessage, variant, autoHideDuration, open, onClose, onClosed, classNameWrapper, "data-testid": dataTestId, }: SnackbarProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
tags: string[];
|
|
8
|
-
decorators: ((Story: import('@storybook/
|
|
8
|
+
decorators: ((Story: import('@storybook/types').PartialStoryFn<import('@storybook/react').ReactRenderer, {
|
|
9
9
|
accept?: string | undefined;
|
|
10
10
|
alt?: string | undefined;
|
|
11
11
|
autoComplete?: import('react').HTMLInputAutoCompleteAttribute | undefined;
|
|
@@ -103,7 +103,7 @@ declare const meta: {
|
|
|
103
103
|
"aria-description"?: string | undefined;
|
|
104
104
|
"aria-details"?: string | undefined;
|
|
105
105
|
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
106
|
-
"aria-dropeffect"?: "
|
|
106
|
+
"aria-dropeffect"?: "copy" | "link" | "none" | "execute" | "move" | "popup" | undefined;
|
|
107
107
|
"aria-errormessage"?: string | undefined;
|
|
108
108
|
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
109
109
|
"aria-flowto"?: string | undefined;
|