@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.
@@ -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 j } from "react/jsx-runtime";
3
- import * as w from "react";
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 T } from "../../clsx-DB4S2d7J.js";
5
+ import { c as k } from "../../clsx-DB4S2d7J.js";
6
6
  import { Icon as me } from "../Icon/Icon.js";
7
- import { Typography as G } from "../Typography/Typography.js";
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
- function Ne(l) {
10
- let i = "https://mui.com/production-error/?code=" + l;
11
- for (let d = 1; d < arguments.length; d += 1)
12
- i += "&args[]=" + encodeURIComponent(arguments[d]);
13
- return "Minified MUI error #" + l + "; visit " + i + " for the full message.";
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 te = "Input";
16
- function Pe(l) {
17
- return fe(te, l);
15
+ const ne = "Input";
16
+ function ve(s) {
17
+ return fe(ne, s);
18
18
  }
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
- function ve() {
23
- return w.useContext(oe);
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(l = {}) {
25
+ function Re(s = {}) {
26
26
  const {
27
- defaultValue: i,
28
- disabled: d = !1,
29
- error: u = !1,
30
- onBlur: c,
31
- onChange: m,
32
- onFocus: N,
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: v,
35
- inputRef: R
36
- } = l, o = ve();
37
- let E, _, g, b, h;
34
+ value: R,
35
+ inputRef: E
36
+ } = s, o = Pe();
37
+ let F, y, b, x, g;
38
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);
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
- E = i, _ = d, g = u, b = P, h = v;
46
+ F = l, y = c, b = i, x = P, g = R;
47
47
  const {
48
- current: A
49
- } = w.useRef(h != null), D = w.useCallback((t) => {
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
- }, []), 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) => {
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 a;
64
- o == null || (a = o.onFocus) == null || a.call(o);
63
+ var u;
64
+ o == null || (u = o.onFocus) == null || u.call(o);
65
65
  } else
66
- I(!0);
67
- }, M = (t) => (r) => {
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() : I(!1);
70
- }, H = (t) => (r, ...n) => {
71
- var a, C;
72
- if (!A && (r.target || x.current) == null)
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 || (a = o.onChange) == null || a.call(o, r), (C = t.onChange) == null || C.call(t, r, ...n);
75
- }, q = (t) => (r) => {
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
- x.current && r.currentTarget === r.target && x.current.focus(), (n = t.onClick) == null || n.call(t, r);
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: g,
82
- focused: F,
80
+ disabled: y,
81
+ error: b,
82
+ focused: I,
83
83
  formControlContext: o,
84
84
  getInputProps: (t = {}) => {
85
- const n = f({}, {
86
- onBlur: c,
87
- onChange: m,
88
- onFocus: N
89
- }, J(t)), a = f({}, n, {
90
- onBlur: M(n),
91
- onChange: H(n),
92
- onFocus: s(n)
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 f({}, a, {
95
- "aria-invalid": g || void 0,
96
- defaultValue: E,
97
- value: h,
98
- required: b,
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
- }, a);
102
+ }, u);
103
103
  },
104
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)
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: b,
112
- value: h
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 = (l) => {
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: i,
118
- error: d,
119
- focused: u,
120
- formControlContext: c,
121
- multiline: m,
122
- startAdornment: N,
117
+ disabled: l,
118
+ error: c,
119
+ focused: i,
120
+ formControlContext: _,
121
+ multiline: f,
122
+ startAdornment: v,
123
123
  endAdornment: P
124
- } = l;
124
+ } = s;
125
125
  return Ce({
126
- root: ["root", i && "disabled", d && "error", u && "focused", !!c && "formControl", m && "multiline", !!N && "adornedStart", !!P && "adornedEnd"],
127
- input: ["input", i && "disabled", m && "multiline"]
128
- }, we(Pe));
129
- }, ne = /* @__PURE__ */ w.forwardRef(function(i, d) {
130
- var u, c, m;
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": N,
132
+ "aria-describedby": v,
133
133
  "aria-label": P,
134
- "aria-labelledby": v,
135
- autoComplete: R,
134
+ "aria-labelledby": R,
135
+ autoComplete: E,
136
136
  autoFocus: o,
137
- className: E,
138
- defaultValue: _,
139
- disabled: g,
140
- endAdornment: b,
141
- error: h,
142
- id: k,
143
- multiline: y = !1,
144
- name: S,
145
- onClick: A,
146
- onChange: D,
147
- onKeyDown: x,
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: F,
150
- onBlur: I,
151
- placeholder: s,
152
- readOnly: M,
153
- required: H,
154
- startAdornment: q,
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: a,
161
- maxRows: C
162
- } = i, $ = be(i, Ee), {
163
- getRootProps: O,
164
- getInputProps: Y,
165
- focused: V,
166
- formControlContext: re,
167
- error: ae,
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: g,
171
- defaultValue: _,
172
- error: h,
173
- onBlur: I,
174
- onClick: A,
175
- onChange: D,
176
- onFocus: F,
177
- required: H,
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
- }), Q = y ? void 0 : U ?? "text", W = f({}, i, {
179
+ }), Z = m ? void 0 : U ?? "text", G = h({}, l, {
180
180
  disabled: se,
181
- error: ae,
182
- focused: V,
183
- formControlContext: re,
184
- multiline: y,
185
- type: Q
186
- }), X = Fe(W), le = {
187
- "aria-describedby": N,
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": v,
190
- autoComplete: R,
189
+ "aria-labelledby": R,
190
+ autoComplete: E,
191
191
  autoFocus: o,
192
- id: k,
193
- onKeyDown: x,
192
+ id: S,
193
+ onKeyDown: C,
194
194
  onKeyUp: B,
195
- name: S,
196
- placeholder: s,
197
- readOnly: M,
198
- type: Q
199
- }, Z = (u = n.root) != null ? u : "div", ie = ee({
200
- elementType: Z,
201
- getSlotProps: O,
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: d
205
+ ref: c
206
206
  },
207
- ownerState: W,
208
- className: [X.root, E]
209
- }), z = y ? (c = n.textarea) != null ? c : "textarea" : (m = n.input) != null ? m : "input", ue = ee({
210
- elementType: z,
211
- getSlotProps: (pe) => Y(f({}, le, 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: f({
214
- rows: y ? t : void 0
215
- }, y && !xe(z) && {
216
- minRows: t || a,
217
- maxRows: t || C
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: W,
220
- className: X.input
219
+ ownerState: G,
220
+ className: ee.input
221
221
  });
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
- children: [q, /* @__PURE__ */ j(z, f({}, ue)), b]
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" && (ne.propTypes = {
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", p = {
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: l,
408
- infoMessage: i,
409
- error: d,
410
- errorMessage: u,
411
- leftIcon: c,
412
- rightIcon: m,
413
- id: N,
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: v = "text",
416
- maxLength: R,
415
+ type: R = "text",
416
+ maxLength: E,
417
417
  decimalLength: o = 10,
418
- hideCharsCounter: E = !1,
419
- onChange: _,
420
- classNameWrapper: g,
421
- classNameLabel: b,
422
- classNameInput: h,
423
- classNameInfoMessage: k,
424
- classNameErrorMessage: y,
425
- classNameCharsCounter: S,
426
- "data-testid-wrapper": A,
427
- "data-testid-label": D,
428
- "data-testid-input": x,
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": F,
431
- "data-testid-charsCounter": I,
432
- ...s
433
- }, M) => {
434
- const [H, q] = ce(0), L = _e(), U = N || `input_${L}`;
435
- Object.assign(s, { "data-testid": x });
436
- const t = R && !E, r = (a) => {
437
- var C, $;
438
- if (v === "number") {
439
- let O = String(a.target.value);
440
- const [Y, V] = O.split(".");
441
- O !== "" && (V != null && V.length ? O = [Number(Y), V.slice(0, o)].join(".") : O = String(Number(Y))), a.target.value = O;
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 && 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
- type: v,
446
- multiline: s.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: s.multiline,
450
- rows: (s == null ? void 0 : s.rows) || 5,
451
- minRows: s == null ? void 0 : s.minRows,
452
- maxRows: s == null ? void 0 : s.maxRows
453
- }, [s]);
454
- return /* @__PURE__ */ K("div", { className: T(p.input, g), "data-testid": A, children: [
455
- l && /* @__PURE__ */ j(
456
- G,
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: T(p.input__label, b),
461
- "data-testid": D,
462
- children: l
461
+ className: k(d.input__label, x),
462
+ "data-testid": M,
463
+ children: s
463
464
  }
464
465
  ),
465
- /* @__PURE__ */ j(
466
- ne,
466
+ /* @__PURE__ */ A(
467
+ ae,
467
468
  {
468
469
  id: U,
469
470
  disabled: P,
470
- error: typeof d == "boolean" ? d : !!u,
471
- "aria-label": l,
471
+ error: typeof c == "boolean" ? c : !!i,
472
+ "aria-label": s,
472
473
  slotProps: {
473
- root: (a) => ({
474
- className: T(p["input__input-el-wrapper"], {
475
- [p["input--disabled"]]: a.disabled,
476
- [p["input--focused"]]: a.focused,
477
- [p["input--error"]]: a.error
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: M,
482
- className: T(p["input__input-el"], h),
483
- maxLength: R,
482
+ ref: H,
483
+ className: k(d["input__input-el"], g),
484
+ maxLength: E,
484
485
  onChange: r,
485
- ...s
486
+ ...a
486
487
  }
487
488
  },
488
- startAdornment: c && /* @__PURE__ */ j("span", { className: p["input__left-icon"], children: c }),
489
- endAdornment: m && /* @__PURE__ */ j("span", { className: p["input__right-icon"], children: m }),
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: p["input__messages-wrapper"], children: [
494
- (u || i) && /* @__PURE__ */ K(
495
- G,
494
+ /* @__PURE__ */ K("div", { className: d["input__messages-wrapper"], children: [
495
+ (i || l) && /* @__PURE__ */ K(
496
+ Q,
496
497
  {
497
- className: u ? T(p["input__error-message"], y) : T(p["input__info-message"], k),
498
- "data-testid": u ? F : B,
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__ */ j(me, { icon: u ? "circle-exclamation" : "circle-info" }),
501
- u || i
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
- G,
507
+ Q,
507
508
  {
508
- className: T(p["input__chars-counter"], S),
509
- "data-testid": I,
509
+ className: k(d["input__chars-counter"], V),
510
+ "data-testid": O,
510
511
  children: [
511
- H,
512
+ q,
512
513
  " / ",
513
- R
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/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
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/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
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/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
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"?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
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;