@pismo/marola 1.0.2 → 1.0.3
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/assets/Input.css +1 -1
- 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 +1 -1
- package/dist/components/EllipsisTooltip/EllipsisTooltip.stories.d.ts +1 -1
- package/dist/components/Input/Input.js +117 -117
- 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 +1 -1
- 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
package/dist/assets/Input.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
._u-typography-
|
|
1
|
+
._u-typography-h1_y5x3p_1{font-size:var(--heading-font-size-1);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-1);margin:0}._u-typography-h2_y5x3p_8{font-size:var(--heading-font-size-2);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-2);margin:0}._u-typography-h3_y5x3p_15{font-size:var(--heading-font-size-3);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-3);margin:0}._u-typography-h4_y5x3p_22{font-size:var(--heading-font-size-4);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-4);margin:0}._u-typography-h5_y5x3p_29{font-size:var(--heading-font-size-5);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-5);margin:0}._u-typography-h6_y5x3p_36{font-size:var(--heading-font-size-6);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-6);margin:0}._u-typography-base_y5x3p_43{margin:0;font-size:var(--base-font-size);font-weight:var(--base-weight);line-height:var(--base-line-height)}._u-typography-base--xxl_y5x3p_49{font-size:var(--base-font-size-xxl);line-height:var(--base-line-height-xxl)}._u-typography-base--xl_y5x3p_53{font-size:var(--base-font-size-xl);line-height:var(--base-line-height-xl)}._u-typography-base--lg_y5x3p_57,._input__input-el_y5x3p_57{font-size:var(--base-font-size-lg);line-height:var(--base-line-height-lg)}._u-typography-base--sm_y5x3p_61{font-size:var(--base-font-size-sm);line-height:var(--base-line-height-sm)}._u-typography-base--bold_y5x3p_65,._input__input-el_y5x3p_57{font-weight:var(--base-bold)}._u-typography-base--strikethrough_y5x3p_68{text-decoration:line-through}._u-typography-base--underlined_y5x3p_71{text-decoration:underline}._u-typography-base--strikethrough-underlined_y5x3p_74{text-decoration:underline line-through}._input_y5x3p_57{position:relative}._input_y5x3p_57:has(._input__messages-wrapper_y5x3p_81:not(:empty)){padding-bottom:1.6875rem}._input__label_y5x3p_84{display:block;margin-bottom:.3125rem;color:var(--gray-75)}._input__input-el-wrapper_y5x3p_89{display:flex;align-items:center;height:2.5rem;border:solid .0625rem var(--gray-25);border-radius:.375rem;transition:all .3s}._input__input-el-wrapper_y5x3p_89:has(textarea){height:auto}._input__input-el_y5x3p_57{all:unset;width:100%;height:2.5rem;padding:0 1rem;color:var(--gray-90);outline:none}._input__input-el_y5x3p_57::placeholder{color:var(--gray-50)}._input__left-icon_y5x3p_111,._input__right-icon_y5x3p_111{display:flex;align-items:center;justify-content:center;height:1rem}._input__left-icon_y5x3p_111{padding-left:1rem}._input__right-icon_y5x3p_111{padding-right:1rem}._input__messages-wrapper_y5x3p_81{position:absolute;display:flex;gap:1rem;justify-content:space-between;width:100%}._input__messages-wrapper_y5x3p_81:not(:empty){margin-top:.3125rem}._input__messages-wrapper_y5x3p_81 svg{min-width:1rem;min-height:1rem}._input__info-message_y5x3p_137,._input__error-message_y5x3p_137{display:flex;gap:.375rem;align-items:center}._input__info-message_y5x3p_137{color:var(--gray-75)}._input__error-message_y5x3p_137{color:var(--alert)}._input__chars-counter_y5x3p_148{margin-left:auto;color:var(--gray-75);white-space:nowrap}._input--disabled_y5x3p_153 ._input__input-el_y5x3p_57{color:var(--gray-50)}._input_y5x3p_57:has(._input--disabled_y5x3p_153) ._input__label_y5x3p_84{color:var(--gray-25)}._input--focused_y5x3p_159._input__input-el-wrapper_y5x3p_89{border-color:var(--accent)}._input--error_y5x3p_162._input__input-el-wrapper_y5x3p_89{border-color:var(--alert)}._input__input-el-wrapper_y5x3p_89:hover:not(._input--disabled_y5x3p_153,._input--focused_y5x3p_159,._input--error_y5x3p_162){border-color:var(--gray-75)}textarea._input__input-el_y5x3p_57{height:auto;padding:.5rem 1rem;overflow:hidden;resize:vertical}
|
|
@@ -4,7 +4,7 @@ declare const meta: {
|
|
|
4
4
|
title: string;
|
|
5
5
|
component: import('react').ForwardRefExoticComponent<import('./Chip').ChipProps & import('react').RefAttributes<unknown>>;
|
|
6
6
|
tags: string[];
|
|
7
|
-
decorators: ((Story: import('@storybook/
|
|
7
|
+
decorators: ((Story: import('@storybook/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
|
|
8
8
|
label: import('react').ReactNode;
|
|
9
9
|
loading?: boolean | undefined;
|
|
10
10
|
leftAdornment?: import('../Adornment/Adornment').AdornmentProps | undefined;
|
|
@@ -5,7 +5,7 @@ declare const meta: {
|
|
|
5
5
|
title: string;
|
|
6
6
|
component: ({ open, onClose, title, subtitle, content, cancelAction, confirmAction, confirmLabel, cancelLabel, }: ConfirmationDialogProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
tags: string[];
|
|
8
|
-
decorators: ((Story: import('@storybook/
|
|
8
|
+
decorators: ((Story: import('@storybook/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
|
|
9
9
|
open: boolean;
|
|
10
10
|
onClose: () => void;
|
|
11
11
|
title?: import('react').ReactNode;
|
|
@@ -10,7 +10,7 @@ declare const meta: {
|
|
|
10
10
|
Actions: import('react').FunctionComponent<import('./Actions').DialogActionProps>;
|
|
11
11
|
};
|
|
12
12
|
tags: string[];
|
|
13
|
-
decorators: ((Story: import('@storybook/
|
|
13
|
+
decorators: ((Story: import('@storybook/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
|
|
14
14
|
color?: string | undefined;
|
|
15
15
|
ref?: ((instance: HTMLDivElement | null) => void) | import('react').RefObject<HTMLDivElement> | null | undefined;
|
|
16
16
|
children: import('react').ReactElement<any, string | import('react').JSXElementConstructor<any>> & import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<unknown>>;
|
|
@@ -8,7 +8,7 @@ declare const meta: {
|
|
|
8
8
|
parameters: {
|
|
9
9
|
layout: string;
|
|
10
10
|
};
|
|
11
|
-
decorators: ((Story: import('@storybook/
|
|
11
|
+
decorators: ((Story: import('@storybook/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
|
|
12
12
|
children: import('react').ReactNode;
|
|
13
13
|
title: import('react').ReactNode;
|
|
14
14
|
style?: import('react').CSSProperties | undefined;
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import '../../assets/Input.css';
|
|
2
2
|
import { jsxs as K, jsx as j } from "react/jsx-runtime";
|
|
3
|
-
import * as
|
|
4
|
-
import { forwardRef as de, useState as ce, useId as _e, useMemo as
|
|
3
|
+
import * as w from "react";
|
|
4
|
+
import { forwardRef as de, useState as ce, useId as _e, useMemo as ye } from "react";
|
|
5
5
|
import { c as T } from "../../clsx-DB4S2d7J.js";
|
|
6
6
|
import { Icon as me } from "../Icon/Icon.js";
|
|
7
7
|
import { Typography as G } from "../Typography/Typography.js";
|
|
8
|
-
import { g as fe, a as
|
|
8
|
+
import { g as fe, a as he, u as ge, f as J, b as f, _ as be, c as ee, i as xe, P as e, d as Ce, e as we } from "../../useSlotProps-C_I1kEHr.js";
|
|
9
9
|
function Ne(l) {
|
|
10
10
|
let i = "https://mui.com/production-error/?code=" + l;
|
|
11
11
|
for (let d = 1; d < arguments.length; d += 1)
|
|
12
12
|
i += "&args[]=" + encodeURIComponent(arguments[d]);
|
|
13
13
|
return "Minified MUI error #" + l + "; visit " + i + " for the full message.";
|
|
14
14
|
}
|
|
15
|
-
const
|
|
15
|
+
const te = "Input";
|
|
16
16
|
function Pe(l) {
|
|
17
|
-
return fe(
|
|
17
|
+
return fe(te, l);
|
|
18
18
|
}
|
|
19
|
-
|
|
20
|
-
const
|
|
21
|
-
process.env.NODE_ENV !== "production" && (
|
|
19
|
+
he(te, ["root", "formControl", "focused", "disabled", "error", "multiline", "input", "inputMultiline", "inputTypeSearch", "adornedStart", "adornedEnd"]);
|
|
20
|
+
const oe = /* @__PURE__ */ w.createContext(void 0);
|
|
21
|
+
process.env.NODE_ENV !== "production" && (oe.displayName = "FormControlContext");
|
|
22
22
|
function ve() {
|
|
23
|
-
return
|
|
23
|
+
return w.useContext(oe);
|
|
24
24
|
}
|
|
25
25
|
function Re(l = {}) {
|
|
26
26
|
const {
|
|
@@ -33,83 +33,83 @@ function Re(l = {}) {
|
|
|
33
33
|
required: P = !1,
|
|
34
34
|
value: v,
|
|
35
35
|
inputRef: R
|
|
36
|
-
} = l,
|
|
37
|
-
let E, _, g, b,
|
|
38
|
-
if (
|
|
39
|
-
var k,
|
|
40
|
-
if (E = void 0, _ = (k =
|
|
41
|
-
const
|
|
42
|
-
|
|
36
|
+
} = l, o = ve();
|
|
37
|
+
let E, _, g, b, h;
|
|
38
|
+
if (o) {
|
|
39
|
+
var k, y, S;
|
|
40
|
+
if (E = void 0, _ = (k = o.disabled) != null ? k : !1, g = (y = o.error) != null ? y : !1, b = (S = o.required) != null ? S : !1, h = o.value, process.env.NODE_ENV !== "production") {
|
|
41
|
+
const t = ["defaultValue", "disabled", "error", "required", "value"].filter((r) => l[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
|
-
E = i, _ = d, g = u, b = P,
|
|
46
|
+
E = i, _ = d, g = u, b = P, h = v;
|
|
47
47
|
const {
|
|
48
48
|
current: A
|
|
49
|
-
} =
|
|
50
|
-
process.env.NODE_ENV !== "production" &&
|
|
49
|
+
} = w.useRef(h != null), D = w.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 s = (
|
|
57
|
-
var
|
|
58
|
-
if (
|
|
52
|
+
}, []), x = w.useRef(null), B = ge(x, R, D), [F, I] = w.useState(!1);
|
|
53
|
+
w.useEffect(() => {
|
|
54
|
+
!o && _ && F && (I(!1), c == null || c());
|
|
55
|
+
}, [o, _, F, c]);
|
|
56
|
+
const s = (t) => (r) => {
|
|
57
|
+
var n;
|
|
58
|
+
if (o != null && o.disabled) {
|
|
59
59
|
r.stopPropagation();
|
|
60
60
|
return;
|
|
61
61
|
}
|
|
62
|
-
if ((
|
|
62
|
+
if ((n = t.onFocus) == null || n.call(t, r), o && o.onFocus) {
|
|
63
63
|
var a;
|
|
64
|
-
|
|
64
|
+
o == null || (a = o.onFocus) == null || a.call(o);
|
|
65
65
|
} else
|
|
66
66
|
I(!0);
|
|
67
|
-
}, M = (
|
|
68
|
-
var
|
|
69
|
-
(
|
|
70
|
-
}, H = (
|
|
71
|
-
var a,
|
|
72
|
-
if (!A && (r.target ||
|
|
67
|
+
}, M = (t) => (r) => {
|
|
68
|
+
var n;
|
|
69
|
+
(n = t.onBlur) == null || n.call(t, r), o && o.onBlur ? o.onBlur() : I(!1);
|
|
70
|
+
}, H = (t) => (r, ...n) => {
|
|
71
|
+
var a, C;
|
|
72
|
+
if (!A && (r.target || x.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
|
-
|
|
75
|
-
}, q = (
|
|
76
|
-
var
|
|
77
|
-
|
|
74
|
+
o == null || (a = o.onChange) == null || a.call(o, r), (C = t.onChange) == null || C.call(t, r, ...n);
|
|
75
|
+
}, q = (t) => (r) => {
|
|
76
|
+
var n;
|
|
77
|
+
x.current && r.currentTarget === r.target && x.current.focus(), (n = t.onClick) == null || n.call(t, r);
|
|
78
78
|
};
|
|
79
79
|
return {
|
|
80
80
|
disabled: _,
|
|
81
81
|
error: g,
|
|
82
82
|
focused: F,
|
|
83
|
-
formControlContext:
|
|
84
|
-
getInputProps: (
|
|
85
|
-
const
|
|
83
|
+
formControlContext: o,
|
|
84
|
+
getInputProps: (t = {}) => {
|
|
85
|
+
const n = f({}, {
|
|
86
86
|
onBlur: c,
|
|
87
87
|
onChange: m,
|
|
88
88
|
onFocus: N
|
|
89
|
-
}, J(
|
|
90
|
-
onBlur: M(
|
|
91
|
-
onChange: H(
|
|
92
|
-
onFocus: s(
|
|
89
|
+
}, J(t)), a = f({}, n, {
|
|
90
|
+
onBlur: M(n),
|
|
91
|
+
onChange: H(n),
|
|
92
|
+
onFocus: s(n)
|
|
93
93
|
});
|
|
94
94
|
return f({}, a, {
|
|
95
95
|
"aria-invalid": g || void 0,
|
|
96
96
|
defaultValue: E,
|
|
97
|
-
value:
|
|
97
|
+
value: h,
|
|
98
98
|
required: b,
|
|
99
99
|
disabled: _
|
|
100
|
-
},
|
|
100
|
+
}, t, {
|
|
101
101
|
ref: B
|
|
102
102
|
}, a);
|
|
103
103
|
},
|
|
104
|
-
getRootProps: (
|
|
105
|
-
const r = J(l, ["onBlur", "onChange", "onFocus"]),
|
|
106
|
-
return f({},
|
|
107
|
-
onClick: q(
|
|
104
|
+
getRootProps: (t = {}) => {
|
|
105
|
+
const r = J(l, ["onBlur", "onChange", "onFocus"]), n = f({}, r, J(t));
|
|
106
|
+
return f({}, t, n, {
|
|
107
|
+
onClick: q(n)
|
|
108
108
|
});
|
|
109
109
|
},
|
|
110
110
|
inputRef: B,
|
|
111
111
|
required: b,
|
|
112
|
-
value:
|
|
112
|
+
value: h
|
|
113
113
|
};
|
|
114
114
|
}
|
|
115
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 = (l) => {
|
|
@@ -122,29 +122,29 @@ const Ee = ["aria-describedby", "aria-label", "aria-labelledby", "autoComplete",
|
|
|
122
122
|
startAdornment: N,
|
|
123
123
|
endAdornment: P
|
|
124
124
|
} = l;
|
|
125
|
-
return
|
|
125
|
+
return Ce({
|
|
126
126
|
root: ["root", i && "disabled", d && "error", u && "focused", !!c && "formControl", m && "multiline", !!N && "adornedStart", !!P && "adornedEnd"],
|
|
127
127
|
input: ["input", i && "disabled", m && "multiline"]
|
|
128
|
-
},
|
|
129
|
-
},
|
|
128
|
+
}, we(Pe));
|
|
129
|
+
}, ne = /* @__PURE__ */ w.forwardRef(function(i, d) {
|
|
130
130
|
var u, c, m;
|
|
131
131
|
const {
|
|
132
132
|
"aria-describedby": N,
|
|
133
133
|
"aria-label": P,
|
|
134
134
|
"aria-labelledby": v,
|
|
135
135
|
autoComplete: R,
|
|
136
|
-
autoFocus:
|
|
136
|
+
autoFocus: o,
|
|
137
137
|
className: E,
|
|
138
138
|
defaultValue: _,
|
|
139
139
|
disabled: g,
|
|
140
140
|
endAdornment: b,
|
|
141
|
-
error:
|
|
141
|
+
error: h,
|
|
142
142
|
id: k,
|
|
143
|
-
multiline:
|
|
143
|
+
multiline: y = !1,
|
|
144
144
|
name: S,
|
|
145
145
|
onClick: A,
|
|
146
146
|
onChange: D,
|
|
147
|
-
onKeyDown:
|
|
147
|
+
onKeyDown: x,
|
|
148
148
|
onKeyUp: B,
|
|
149
149
|
onFocus: F,
|
|
150
150
|
onBlur: I,
|
|
@@ -154,11 +154,11 @@ const Ee = ["aria-describedby", "aria-label", "aria-labelledby", "autoComplete",
|
|
|
154
154
|
startAdornment: q,
|
|
155
155
|
value: L,
|
|
156
156
|
type: U,
|
|
157
|
-
rows:
|
|
157
|
+
rows: t,
|
|
158
158
|
slotProps: r = {},
|
|
159
|
-
slots:
|
|
159
|
+
slots: n = {},
|
|
160
160
|
minRows: a,
|
|
161
|
-
maxRows:
|
|
161
|
+
maxRows: C
|
|
162
162
|
} = i, $ = be(i, Ee), {
|
|
163
163
|
getRootProps: O,
|
|
164
164
|
getInputProps: Y,
|
|
@@ -169,34 +169,34 @@ const Ee = ["aria-describedby", "aria-label", "aria-labelledby", "autoComplete",
|
|
|
169
169
|
} = Re({
|
|
170
170
|
disabled: g,
|
|
171
171
|
defaultValue: _,
|
|
172
|
-
error:
|
|
172
|
+
error: h,
|
|
173
173
|
onBlur: I,
|
|
174
174
|
onClick: A,
|
|
175
175
|
onChange: D,
|
|
176
176
|
onFocus: F,
|
|
177
177
|
required: H,
|
|
178
178
|
value: L
|
|
179
|
-
}), Q =
|
|
179
|
+
}), Q = y ? void 0 : U ?? "text", W = f({}, i, {
|
|
180
180
|
disabled: se,
|
|
181
181
|
error: ae,
|
|
182
182
|
focused: V,
|
|
183
183
|
formControlContext: re,
|
|
184
|
-
multiline:
|
|
184
|
+
multiline: y,
|
|
185
185
|
type: Q
|
|
186
186
|
}), X = Fe(W), le = {
|
|
187
187
|
"aria-describedby": N,
|
|
188
188
|
"aria-label": P,
|
|
189
189
|
"aria-labelledby": v,
|
|
190
190
|
autoComplete: R,
|
|
191
|
-
autoFocus:
|
|
191
|
+
autoFocus: o,
|
|
192
192
|
id: k,
|
|
193
|
-
onKeyDown:
|
|
193
|
+
onKeyDown: x,
|
|
194
194
|
onKeyUp: B,
|
|
195
195
|
name: S,
|
|
196
196
|
placeholder: s,
|
|
197
197
|
readOnly: M,
|
|
198
198
|
type: Q
|
|
199
|
-
}, Z = (u =
|
|
199
|
+
}, Z = (u = n.root) != null ? u : "div", ie = ee({
|
|
200
200
|
elementType: Z,
|
|
201
201
|
getSlotProps: O,
|
|
202
202
|
externalSlotProps: r.root,
|
|
@@ -206,24 +206,24 @@ const Ee = ["aria-describedby", "aria-label", "aria-labelledby", "autoComplete",
|
|
|
206
206
|
},
|
|
207
207
|
ownerState: W,
|
|
208
208
|
className: [X.root, E]
|
|
209
|
-
}), z =
|
|
209
|
+
}), z = y ? (c = n.textarea) != null ? c : "textarea" : (m = n.input) != null ? m : "input", ue = ee({
|
|
210
210
|
elementType: z,
|
|
211
211
|
getSlotProps: (pe) => Y(f({}, le, pe)),
|
|
212
212
|
externalSlotProps: r.input,
|
|
213
213
|
additionalProps: f({
|
|
214
|
-
rows:
|
|
215
|
-
},
|
|
216
|
-
minRows:
|
|
217
|
-
maxRows:
|
|
214
|
+
rows: y ? t : void 0
|
|
215
|
+
}, y && !xe(z) && {
|
|
216
|
+
minRows: t || a,
|
|
217
|
+
maxRows: t || C
|
|
218
218
|
}),
|
|
219
219
|
ownerState: W,
|
|
220
220
|
className: X.input
|
|
221
221
|
});
|
|
222
|
-
return process.env.NODE_ENV !== "production" &&
|
|
222
|
+
return process.env.NODE_ENV !== "production" && y && t && (a || C) && console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."), /* @__PURE__ */ K(Z, f({}, ie, {
|
|
223
223
|
children: [q, /* @__PURE__ */ j(z, f({}, ue)), b]
|
|
224
224
|
}));
|
|
225
225
|
});
|
|
226
|
-
process.env.NODE_ENV !== "production" && (
|
|
226
|
+
process.env.NODE_ENV !== "production" && (ne.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,35 +373,35 @@ process.env.NODE_ENV !== "production" && (oe.propTypes = {
|
|
|
373
373
|
*/
|
|
374
374
|
value: e.any
|
|
375
375
|
});
|
|
376
|
-
const Ie = "
|
|
377
|
-
"u-typography-h1": "_u-typography-
|
|
378
|
-
"u-typography-h2": "_u-typography-
|
|
379
|
-
"u-typography-h3": "_u-typography-
|
|
380
|
-
"u-typography-h4": "_u-typography-
|
|
381
|
-
"u-typography-h5": "_u-typography-
|
|
382
|
-
"u-typography-h6": "_u-typography-
|
|
383
|
-
"u-typography-base": "_u-typography-
|
|
384
|
-
"u-typography-base--xxl": "_u-typography-base--
|
|
385
|
-
"u-typography-base--xl": "_u-typography-base--
|
|
386
|
-
"u-typography-base--lg": "_u-typography-base--
|
|
387
|
-
"input__input-el": "_input__input-
|
|
388
|
-
"u-typography-base--sm": "_u-typography-base--
|
|
389
|
-
"u-typography-base--bold": "_u-typography-base--
|
|
390
|
-
"u-typography-base--strikethrough": "_u-typography-base--
|
|
391
|
-
"u-typography-base--underlined": "_u-typography-base--
|
|
392
|
-
"u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-
|
|
376
|
+
const Ie = "_input_y5x3p_57", Oe = "_input__label_y5x3p_84", p = {
|
|
377
|
+
"u-typography-h1": "_u-typography-h1_y5x3p_1",
|
|
378
|
+
"u-typography-h2": "_u-typography-h2_y5x3p_8",
|
|
379
|
+
"u-typography-h3": "_u-typography-h3_y5x3p_15",
|
|
380
|
+
"u-typography-h4": "_u-typography-h4_y5x3p_22",
|
|
381
|
+
"u-typography-h5": "_u-typography-h5_y5x3p_29",
|
|
382
|
+
"u-typography-h6": "_u-typography-h6_y5x3p_36",
|
|
383
|
+
"u-typography-base": "_u-typography-base_y5x3p_43",
|
|
384
|
+
"u-typography-base--xxl": "_u-typography-base--xxl_y5x3p_49",
|
|
385
|
+
"u-typography-base--xl": "_u-typography-base--xl_y5x3p_53",
|
|
386
|
+
"u-typography-base--lg": "_u-typography-base--lg_y5x3p_57",
|
|
387
|
+
"input__input-el": "_input__input-el_y5x3p_57",
|
|
388
|
+
"u-typography-base--sm": "_u-typography-base--sm_y5x3p_61",
|
|
389
|
+
"u-typography-base--bold": "_u-typography-base--bold_y5x3p_65",
|
|
390
|
+
"u-typography-base--strikethrough": "_u-typography-base--strikethrough_y5x3p_68",
|
|
391
|
+
"u-typography-base--underlined": "_u-typography-base--underlined_y5x3p_71",
|
|
392
|
+
"u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_y5x3p_74",
|
|
393
393
|
input: Ie,
|
|
394
|
-
"input__messages-wrapper": "_input__messages-
|
|
394
|
+
"input__messages-wrapper": "_input__messages-wrapper_y5x3p_81",
|
|
395
395
|
input__label: Oe,
|
|
396
|
-
"input__input-el-wrapper": "_input__input-el-
|
|
397
|
-
"input__left-icon": "_input__left-
|
|
398
|
-
"input__right-icon": "_input__right-
|
|
399
|
-
"input__info-message": "_input__info-
|
|
400
|
-
"input__error-message": "_input__error-
|
|
401
|
-
"input__chars-counter": "_input__chars-
|
|
402
|
-
"input--disabled": "_input--
|
|
403
|
-
"input--focused": "_input--
|
|
404
|
-
"input--error": "_input--
|
|
396
|
+
"input__input-el-wrapper": "_input__input-el-wrapper_y5x3p_89",
|
|
397
|
+
"input__left-icon": "_input__left-icon_y5x3p_111",
|
|
398
|
+
"input__right-icon": "_input__right-icon_y5x3p_111",
|
|
399
|
+
"input__info-message": "_input__info-message_y5x3p_137",
|
|
400
|
+
"input__error-message": "_input__error-message_y5x3p_137",
|
|
401
|
+
"input__chars-counter": "_input__chars-counter_y5x3p_148",
|
|
402
|
+
"input--disabled": "_input--disabled_y5x3p_153",
|
|
403
|
+
"input--focused": "_input--focused_y5x3p_159",
|
|
404
|
+
"input--error": "_input--error_y5x3p_162"
|
|
405
405
|
}, je = de(
|
|
406
406
|
({
|
|
407
407
|
label: l,
|
|
@@ -414,34 +414,34 @@ const Ie = "_input_3n32h_57", Oe = "_input__label_3n32h_84", p = {
|
|
|
414
414
|
disabled: P,
|
|
415
415
|
type: v = "text",
|
|
416
416
|
maxLength: R,
|
|
417
|
-
decimalLength:
|
|
417
|
+
decimalLength: o = 10,
|
|
418
418
|
hideCharsCounter: E = !1,
|
|
419
419
|
onChange: _,
|
|
420
420
|
classNameWrapper: g,
|
|
421
421
|
classNameLabel: b,
|
|
422
|
-
classNameInput:
|
|
422
|
+
classNameInput: h,
|
|
423
423
|
classNameInfoMessage: k,
|
|
424
|
-
classNameErrorMessage:
|
|
424
|
+
classNameErrorMessage: y,
|
|
425
425
|
classNameCharsCounter: S,
|
|
426
426
|
"data-testid-wrapper": A,
|
|
427
427
|
"data-testid-label": D,
|
|
428
|
-
"data-testid-input":
|
|
428
|
+
"data-testid-input": x,
|
|
429
429
|
"data-testid-infoMessage": B,
|
|
430
430
|
"data-testid-errorMessage": F,
|
|
431
431
|
"data-testid-charsCounter": I,
|
|
432
432
|
...s
|
|
433
433
|
}, M) => {
|
|
434
434
|
const [H, q] = ce(0), L = _e(), U = N || `input_${L}`;
|
|
435
|
-
Object.assign(s, { "data-testid":
|
|
436
|
-
const
|
|
437
|
-
var
|
|
435
|
+
Object.assign(s, { "data-testid": x });
|
|
436
|
+
const t = R && !E, r = (a) => {
|
|
437
|
+
var C, $;
|
|
438
438
|
if (v === "number") {
|
|
439
439
|
let O = String(a.target.value);
|
|
440
440
|
const [Y, V] = O.split(".");
|
|
441
|
-
O !== "" && (V != null && V.length ? O = [Number(Y), V.slice(0,
|
|
441
|
+
O !== "" && (V != null && V.length ? O = [Number(Y), V.slice(0, o)].join(".") : O = String(Number(Y))), a.target.value = O;
|
|
442
442
|
}
|
|
443
|
-
|
|
444
|
-
},
|
|
443
|
+
t && q(($ = (C = a == null ? void 0 : a.target) == null ? void 0 : C.value) == null ? void 0 : $.length), _ && _(a);
|
|
444
|
+
}, n = ye(() => s.multiline !== !0 ? {
|
|
445
445
|
type: v,
|
|
446
446
|
multiline: s.multiline
|
|
447
447
|
} : {
|
|
@@ -463,7 +463,7 @@ const Ie = "_input_3n32h_57", Oe = "_input__label_3n32h_84", p = {
|
|
|
463
463
|
}
|
|
464
464
|
),
|
|
465
465
|
/* @__PURE__ */ j(
|
|
466
|
-
|
|
466
|
+
ne,
|
|
467
467
|
{
|
|
468
468
|
id: U,
|
|
469
469
|
disabled: P,
|
|
@@ -479,7 +479,7 @@ const Ie = "_input_3n32h_57", Oe = "_input__label_3n32h_84", p = {
|
|
|
479
479
|
}),
|
|
480
480
|
input: {
|
|
481
481
|
ref: M,
|
|
482
|
-
className: T(p["input__input-el"],
|
|
482
|
+
className: T(p["input__input-el"], h),
|
|
483
483
|
maxLength: R,
|
|
484
484
|
onChange: r,
|
|
485
485
|
...s
|
|
@@ -487,14 +487,14 @@ const Ie = "_input_3n32h_57", Oe = "_input__label_3n32h_84", p = {
|
|
|
487
487
|
},
|
|
488
488
|
startAdornment: c && /* @__PURE__ */ j("span", { className: p["input__left-icon"], children: c }),
|
|
489
489
|
endAdornment: m && /* @__PURE__ */ j("span", { className: p["input__right-icon"], children: m }),
|
|
490
|
-
...
|
|
490
|
+
...n
|
|
491
491
|
}
|
|
492
492
|
),
|
|
493
493
|
/* @__PURE__ */ K("div", { className: p["input__messages-wrapper"], children: [
|
|
494
494
|
(u || i) && /* @__PURE__ */ K(
|
|
495
495
|
G,
|
|
496
496
|
{
|
|
497
|
-
className: u ? T(p["input__error-message"],
|
|
497
|
+
className: u ? T(p["input__error-message"], y) : T(p["input__info-message"], k),
|
|
498
498
|
"data-testid": u ? F : B,
|
|
499
499
|
children: [
|
|
500
500
|
/* @__PURE__ */ j(me, { icon: u ? "circle-exclamation" : "circle-info" }),
|
|
@@ -502,7 +502,7 @@ const Ie = "_input_3n32h_57", Oe = "_input__label_3n32h_84", p = {
|
|
|
502
502
|
]
|
|
503
503
|
}
|
|
504
504
|
),
|
|
505
|
-
|
|
505
|
+
t && /* @__PURE__ */ K(
|
|
506
506
|
G,
|
|
507
507
|
{
|
|
508
508
|
className: T(p["input__chars-counter"], S),
|
|
@@ -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/csf').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/csf').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/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
|
|
9
9
|
accept?: string | undefined;
|
|
10
10
|
alt?: string | undefined;
|
|
11
11
|
autoComplete?: import('react').HTMLInputAutoCompleteAttribute | undefined;
|
|
@@ -6,7 +6,7 @@ declare const meta: {
|
|
|
6
6
|
title: string;
|
|
7
7
|
component: import('react').ForwardRefExoticComponent<ToggleGroupProps & import('react').RefAttributes<HTMLFieldSetElement>>;
|
|
8
8
|
tags: string[];
|
|
9
|
-
decorators: ((Story: import('@storybook/
|
|
9
|
+
decorators: ((Story: import('@storybook/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
|
|
10
10
|
legend?: import('react').ReactNode;
|
|
11
11
|
error?: import('react').ReactNode;
|
|
12
12
|
children: import('react').ReactElement<import('./Toggle.tsx').ToggleGroupItemProps<string | number>, string | import('react').JSXElementConstructor<any>>[];
|
|
@@ -8,7 +8,7 @@ declare const meta: {
|
|
|
8
8
|
parameters: {
|
|
9
9
|
layout: string;
|
|
10
10
|
};
|
|
11
|
-
decorators: ((Story: import('@storybook/
|
|
11
|
+
decorators: ((Story: import('@storybook/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
|
|
12
12
|
children: import('react').ReactNode;
|
|
13
13
|
title: import('react').ReactNode;
|
|
14
14
|
open?: boolean | undefined;
|
|
@@ -12,7 +12,7 @@ declare const meta: {
|
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
14
|
};
|
|
15
|
-
decorators: ((Story: import('@storybook/
|
|
15
|
+
decorators: ((Story: import('@storybook/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
|
|
16
16
|
children: import('react').ReactNode;
|
|
17
17
|
element?: import('react').ElementType | undefined;
|
|
18
18
|
variant?: import('./Typography').VariantType | undefined;
|
|
@@ -12,7 +12,7 @@ declare const meta: {
|
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
14
|
tags: string[];
|
|
15
|
-
decorators: ((Story: import('@storybook/
|
|
15
|
+
decorators: ((Story: import('@storybook/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
|
|
16
16
|
[x: string]: any;
|
|
17
17
|
}>) => import("react/jsx-runtime").JSX.Element)[];
|
|
18
18
|
};
|