@pismo/marola 0.0.1-alpha.19 → 0.0.1-alpha.20

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.
Files changed (60) hide show
  1. package/dist/Dialog.module-DFEmFdYT.js +30 -0
  2. package/dist/SelectButton-C8JQKaf4.js +61 -0
  3. package/dist/assets/Advice.css +1 -1
  4. package/dist/assets/Button.css +1 -1
  5. package/dist/assets/Checkbox.css +1 -1
  6. package/dist/assets/Chip.css +1 -1
  7. package/dist/assets/Dialog.css +1 -1
  8. package/dist/assets/IconButton.css +1 -1
  9. package/dist/assets/Input.css +1 -1
  10. package/dist/assets/PageHeader.css +1 -1
  11. package/dist/assets/Pagination.css +1 -1
  12. package/dist/assets/SelectButton.css +1 -1
  13. package/dist/assets/Snackbar.css +1 -1
  14. package/dist/assets/SortTooltip.css +1 -1
  15. package/dist/assets/Stepper.css +1 -1
  16. package/dist/assets/Table.css +1 -1
  17. package/dist/assets/Toggle.css +1 -1
  18. package/dist/assets/Typography.css +1 -1
  19. package/dist/components/Advice/Advice.js +32 -17
  20. package/dist/components/Button/Button.js +56 -85
  21. package/dist/components/Checkbox/Checkbox.js +57 -42
  22. package/dist/components/Chip/Chip.js +81 -111
  23. package/dist/components/Dialog/Actions.js +1 -1
  24. package/dist/components/Dialog/Backdrop.js +1 -1
  25. package/dist/components/Dialog/CloseIconButton.js +1 -1
  26. package/dist/components/Dialog/Dialog.d.ts +1 -1
  27. package/dist/components/Dialog/Dialog.js +2 -2
  28. package/dist/components/Dialog/{Title.d.ts → DialogTitle.d.ts} +3 -3
  29. package/dist/components/Dialog/DialogTitle.js +29 -0
  30. package/dist/components/Icon/Icon.d.ts +1 -1
  31. package/dist/components/Icon/Icon.js +31 -25
  32. package/dist/components/IconButton/IconButton.js +34 -64
  33. package/dist/components/Input/Input.js +241 -229
  34. package/dist/components/PageHeader/PageHeader.js +52 -37
  35. package/dist/components/Pagination/Pagination.js +127 -113
  36. package/dist/components/Select/Select.js +2 -2
  37. package/dist/components/Select/SelectButton.js +1 -1
  38. package/dist/components/Snackbar/Snackbar.js +176 -161
  39. package/dist/components/SortTooltip/SortTooltip.js +53 -38
  40. package/dist/components/Stepper/Stepper.js +37 -22
  41. package/dist/components/Table/Table.d.ts +33 -16
  42. package/dist/components/Table/Table.js +98 -81
  43. package/dist/components/Table/Table.stories.d.ts +29 -0
  44. package/dist/components/Table/_Table.TBody.stories.d.ts +14 -0
  45. package/dist/components/Table/_Table.THead.stories.d.ts +14 -0
  46. package/dist/components/Table/_Table.Td.stories.d.ts +16 -0
  47. package/dist/components/Table/_Table.Th.stories.d.ts +15 -0
  48. package/dist/components/Table/_Table.Tr.stories.d.ts +15 -0
  49. package/dist/components/TextDisplay/TextDisplay.js +13 -13
  50. package/dist/components/Toggle/Toggle.js +138 -123
  51. package/dist/components/Typography/Typography.d.ts +1 -1
  52. package/dist/components/Typography/Typography.js +54 -84
  53. package/dist/main.js +42 -37
  54. package/dist/marola.css +1 -1
  55. package/dist/utils/styleStrings.d.ts +1 -1
  56. package/dist/utils/styleStrings.js +7 -7
  57. package/package.json +1 -1
  58. package/dist/Dialog.module-B8COssqi.js +0 -15
  59. package/dist/SelectButton-pciwIWcj.js +0 -46
  60. package/dist/components/Dialog/Title.js +0 -29
@@ -1,225 +1,225 @@
1
1
  import '../../assets/Input.css';
2
- import { jsxs as q, jsx as V } from "react/jsx-runtime";
3
- import * as m from "react";
4
- import { useState as pe, useId as ce } from "react";
5
- import { c as F } from "../../clsx-DB4S2d7J.js";
2
+ import { jsxs as q, jsx as B } from "react/jsx-runtime";
3
+ import * as h from "react";
4
+ import { useState as de, useId as ce } from "react";
5
+ import { c as R } from "../../clsx-DB4S2d7J.js";
6
6
  import { Typography as L } from "../Typography/Typography.js";
7
- import { g as fe, a as me, u as _e, f as z, b as _, _ as he, c as Q, i as be, P as e, d as ge, e as we } from "../../index-CH45lKw7.js";
8
- function Ce(s) {
9
- let l = "https://mui.com/production-error/?code=" + s;
10
- for (let a = 1; a < arguments.length; a += 1)
11
- l += "&args[]=" + encodeURIComponent(arguments[a]);
12
- return "Minified MUI error #" + s + "; visit " + l + " for the full message.";
7
+ import { g as _e, a as he, u as me, f as z, b as m, _ as fe, c as Q, i as be, P as e, d as ye, e as ge } from "../../index-CH45lKw7.js";
8
+ function ve(a) {
9
+ let l = "https://mui.com/production-error/?code=" + a;
10
+ for (let s = 1; s < arguments.length; s += 1)
11
+ l += "&args[]=" + encodeURIComponent(arguments[s]);
12
+ return "Minified MUI error #" + a + "; visit " + l + " for the full message.";
13
13
  }
14
- const X = /* @__PURE__ */ m.createContext(void 0);
14
+ const X = /* @__PURE__ */ h.createContext(void 0);
15
15
  process.env.NODE_ENV !== "production" && (X.displayName = "FormControlContext");
16
- function ye() {
17
- return m.useContext(X);
16
+ function Ce() {
17
+ return h.useContext(X);
18
18
  }
19
19
  const Z = "Input";
20
- function ve(s) {
21
- return fe(Z, s);
20
+ function we(a) {
21
+ return _e(Z, a);
22
22
  }
23
- me(Z, ["root", "formControl", "focused", "disabled", "error", "multiline", "input", "inputMultiline", "inputTypeSearch", "adornedStart", "adornedEnd"]);
24
- function Ne(s = {}) {
23
+ he(Z, ["root", "formControl", "focused", "disabled", "error", "multiline", "input", "inputMultiline", "inputTypeSearch", "adornedStart", "adornedEnd"]);
24
+ function ke(a = {}) {
25
25
  const {
26
26
  defaultValue: l,
27
- disabled: a = !1,
28
- error: h = !1,
29
- onBlur: u,
27
+ disabled: s = !1,
28
+ error: f = !1,
29
+ onBlur: i,
30
30
  onChange: b,
31
- onFocus: P,
32
- required: x = !1,
33
- value: w,
34
- inputRef: U
35
- } = s, n = ye();
36
- let E, f, C, y, g;
37
- if (n) {
38
- var I, d, O;
39
- if (E = void 0, f = (I = n.disabled) != null ? I : !1, C = (d = n.error) != null ? d : !1, y = (O = n.required) != null ? O : !1, g = n.value, process.env.NODE_ENV !== "production") {
40
- const t = ["defaultValue", "disabled", "error", "required", "value"].filter((r) => s[r] !== void 0);
31
+ onFocus: x,
32
+ required: N = !1,
33
+ value: g,
34
+ inputRef: V
35
+ } = a, o = Ce();
36
+ let P, _, v, C, y;
37
+ if (o) {
38
+ var F, p, I;
39
+ if (P = void 0, _ = (F = o.disabled) != null ? F : !1, v = (p = o.error) != null ? p : !1, C = (I = o.required) != null ? I : !1, y = o.value, process.env.NODE_ENV !== "production") {
40
+ const t = ["defaultValue", "disabled", "error", "required", "value"].filter((r) => a[r] !== void 0);
41
41
  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(`
42
42
  `));
43
43
  }
44
44
  } else
45
- E = l, f = a, C = h, y = x, g = w;
45
+ P = l, _ = s, v = f, C = N, y = g;
46
46
  const {
47
- current: M
48
- } = m.useRef(g != null), k = m.useCallback((t) => {
47
+ current: U
48
+ } = h.useRef(y != null), M = h.useCallback((t) => {
49
49
  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(`
50
50
  `));
51
- }, []), v = m.useRef(null), T = _e(v, U, k), [N, R] = m.useState(!1);
52
- m.useEffect(() => {
53
- !n && f && N && (R(!1), u == null || u());
54
- }, [n, f, N, u]);
51
+ }, []), w = h.useRef(null), O = me(w, V, M), [k, E] = h.useState(!1);
52
+ h.useEffect(() => {
53
+ !o && _ && k && (E(!1), i == null || i());
54
+ }, [o, _, k, i]);
55
55
  const A = (t) => (r) => {
56
- var o;
57
- if (n != null && n.disabled) {
56
+ var n;
57
+ if (o != null && o.disabled) {
58
58
  r.stopPropagation();
59
59
  return;
60
60
  }
61
- if ((o = t.onFocus) == null || o.call(t, r), n && n.onFocus) {
61
+ if ((n = t.onFocus) == null || n.call(t, r), o && o.onFocus) {
62
62
  var c;
63
- n == null || (c = n.onFocus) == null || c.call(n);
63
+ o == null || (c = o.onFocus) == null || c.call(o);
64
64
  } else
65
- R(!0);
65
+ E(!0);
66
66
  }, D = (t) => (r) => {
67
- var o;
68
- (o = t.onBlur) == null || o.call(t, r), n && n.onBlur ? n.onBlur() : R(!1);
69
- }, S = (t) => (r, ...o) => {
67
+ var n;
68
+ (n = t.onBlur) == null || n.call(t, r), o && o.onBlur ? o.onBlur() : E(!1);
69
+ }, T = (t) => (r, ...n) => {
70
70
  var c, H;
71
- if (!M && (r.target || v.current) == null)
72
- 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." : Ce(17));
73
- n == null || (c = n.onChange) == null || c.call(n, r), (H = t.onChange) == null || H.call(t, r, ...o);
71
+ if (!U && (r.target || w.current) == null)
72
+ 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." : ve(17));
73
+ o == null || (c = o.onChange) == null || c.call(o, r), (H = t.onChange) == null || H.call(t, r, ...n);
74
74
  }, j = (t) => (r) => {
75
- var o;
76
- v.current && r.currentTarget === r.target && v.current.focus(), (o = t.onClick) == null || o.call(t, r);
75
+ var n;
76
+ w.current && r.currentTarget === r.target && w.current.focus(), (n = t.onClick) == null || n.call(t, r);
77
77
  };
78
78
  return {
79
- disabled: f,
80
- error: C,
81
- focused: N,
82
- formControlContext: n,
79
+ disabled: _,
80
+ error: v,
81
+ focused: k,
82
+ formControlContext: o,
83
83
  getInputProps: (t = {}) => {
84
- const o = _({}, {
85
- onBlur: u,
84
+ const n = m({}, {
85
+ onBlur: i,
86
86
  onChange: b,
87
- onFocus: P
88
- }, z(t)), c = _({}, o, {
89
- onBlur: D(o),
90
- onChange: S(o),
91
- onFocus: A(o)
87
+ onFocus: x
88
+ }, z(t)), c = m({}, n, {
89
+ onBlur: D(n),
90
+ onChange: T(n),
91
+ onFocus: A(n)
92
92
  });
93
- return _({}, c, {
94
- "aria-invalid": C || void 0,
95
- defaultValue: E,
96
- value: g,
97
- required: y,
98
- disabled: f
93
+ return m({}, c, {
94
+ "aria-invalid": v || void 0,
95
+ defaultValue: P,
96
+ value: y,
97
+ required: C,
98
+ disabled: _
99
99
  }, t, {
100
- ref: T
100
+ ref: O
101
101
  }, c);
102
102
  },
103
103
  getRootProps: (t = {}) => {
104
- const r = z(s, ["onBlur", "onChange", "onFocus"]), o = _({}, r, z(t));
105
- return _({}, t, o, {
106
- onClick: j(o)
104
+ const r = z(a, ["onBlur", "onChange", "onFocus"]), n = m({}, r, z(t));
105
+ return m({}, t, n, {
106
+ onClick: j(n)
107
107
  });
108
108
  },
109
- inputRef: T,
110
- required: y,
111
- value: g
109
+ inputRef: O,
110
+ required: C,
111
+ value: y
112
112
  };
113
113
  }
114
- const Pe = ["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"], xe = (s) => {
114
+ const xe = ["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"], Ne = (a) => {
115
115
  const {
116
116
  disabled: l,
117
- error: a,
118
- focused: h,
119
- formControlContext: u,
117
+ error: s,
118
+ focused: f,
119
+ formControlContext: i,
120
120
  multiline: b,
121
- startAdornment: P,
122
- endAdornment: x
123
- } = s;
124
- return ge({
125
- root: ["root", l && "disabled", a && "error", h && "focused", !!u && "formControl", b && "multiline", !!P && "adornedStart", !!x && "adornedEnd"],
121
+ startAdornment: x,
122
+ endAdornment: N
123
+ } = a;
124
+ return ye({
125
+ root: ["root", l && "disabled", s && "error", f && "focused", !!i && "formControl", b && "multiline", !!x && "adornedStart", !!N && "adornedEnd"],
126
126
  input: ["input", l && "disabled", b && "multiline"]
127
- }, we(ve));
128
- }, ee = /* @__PURE__ */ m.forwardRef(function(l, a) {
129
- var h, u, b;
127
+ }, ge(we));
128
+ }, ee = /* @__PURE__ */ h.forwardRef(function(l, s) {
129
+ var f, i, b;
130
130
  const {
131
- "aria-describedby": P,
132
- "aria-label": x,
133
- "aria-labelledby": w,
134
- autoComplete: U,
135
- autoFocus: n,
136
- className: E,
137
- defaultValue: f,
138
- disabled: C,
139
- endAdornment: y,
140
- error: g,
141
- id: I,
142
- multiline: d = !1,
143
- name: O,
144
- onClick: M,
145
- onChange: k,
146
- onKeyDown: v,
147
- onKeyUp: T,
148
- onFocus: N,
149
- onBlur: R,
131
+ "aria-describedby": x,
132
+ "aria-label": N,
133
+ "aria-labelledby": g,
134
+ autoComplete: V,
135
+ autoFocus: o,
136
+ className: P,
137
+ defaultValue: _,
138
+ disabled: v,
139
+ endAdornment: C,
140
+ error: y,
141
+ id: F,
142
+ multiline: p = !1,
143
+ name: I,
144
+ onClick: U,
145
+ onChange: M,
146
+ onKeyDown: w,
147
+ onKeyUp: O,
148
+ onFocus: k,
149
+ onBlur: E,
150
150
  placeholder: A,
151
151
  readOnly: D,
152
- required: S,
152
+ required: T,
153
153
  startAdornment: j,
154
- value: p,
155
- type: B,
154
+ value: d,
155
+ type: S,
156
156
  rows: t,
157
157
  slotProps: r = {},
158
- slots: o = {},
158
+ slots: n = {},
159
159
  minRows: c,
160
160
  maxRows: H
161
- } = l, Y = he(l, Pe), {
161
+ } = l, Y = fe(l, xe), {
162
162
  getRootProps: te,
163
- getInputProps: ne,
164
- focused: oe,
163
+ getInputProps: oe,
164
+ focused: ne,
165
165
  formControlContext: re,
166
- error: se,
167
- disabled: ae
168
- } = Ne({
169
- disabled: C,
170
- defaultValue: f,
171
- error: g,
172
- onBlur: R,
173
- onClick: M,
174
- onChange: k,
175
- onFocus: N,
176
- required: S,
177
- value: p
178
- }), W = d ? void 0 : B ?? "text", $ = _({}, l, {
179
- disabled: ae,
180
- error: se,
181
- focused: oe,
166
+ error: ae,
167
+ disabled: se
168
+ } = ke({
169
+ disabled: v,
170
+ defaultValue: _,
171
+ error: y,
172
+ onBlur: E,
173
+ onClick: U,
174
+ onChange: M,
175
+ onFocus: k,
176
+ required: T,
177
+ value: d
178
+ }), W = p ? void 0 : S ?? "text", $ = m({}, l, {
179
+ disabled: se,
180
+ error: ae,
181
+ focused: ne,
182
182
  formControlContext: re,
183
- multiline: d,
183
+ multiline: p,
184
184
  type: W
185
- }), G = xe($), le = {
186
- "aria-describedby": P,
187
- "aria-label": x,
188
- "aria-labelledby": w,
189
- autoComplete: U,
190
- autoFocus: n,
191
- id: I,
192
- onKeyDown: v,
193
- onKeyUp: T,
194
- name: O,
185
+ }), G = Ne($), le = {
186
+ "aria-describedby": x,
187
+ "aria-label": N,
188
+ "aria-labelledby": g,
189
+ autoComplete: V,
190
+ autoFocus: o,
191
+ id: F,
192
+ onKeyDown: w,
193
+ onKeyUp: O,
194
+ name: I,
195
195
  placeholder: A,
196
196
  readOnly: D,
197
197
  type: W
198
- }, J = (h = o.root) != null ? h : "div", ie = Q({
198
+ }, J = (f = n.root) != null ? f : "div", ue = Q({
199
199
  elementType: J,
200
200
  getSlotProps: te,
201
201
  externalSlotProps: r.root,
202
202
  externalForwardedProps: Y,
203
203
  additionalProps: {
204
- ref: a
204
+ ref: s
205
205
  },
206
206
  ownerState: $,
207
- className: [G.root, E]
208
- }), K = d ? (u = o.textarea) != null ? u : "textarea" : (b = o.input) != null ? b : "input", ue = Q({
207
+ className: [G.root, P]
208
+ }), K = p ? (i = n.textarea) != null ? i : "textarea" : (b = n.input) != null ? b : "input", ie = Q({
209
209
  elementType: K,
210
- getSlotProps: (de) => ne(_({}, le, de)),
210
+ getSlotProps: (pe) => oe(m({}, le, pe)),
211
211
  externalSlotProps: r.input,
212
- additionalProps: _({
213
- rows: d ? t : void 0
214
- }, d && !be(K) && {
212
+ additionalProps: m({
213
+ rows: p ? t : void 0
214
+ }, p && !be(K) && {
215
215
  minRows: t || c,
216
216
  maxRows: t || H
217
217
  }),
218
218
  ownerState: $,
219
219
  className: G.input
220
220
  });
221
- return process.env.NODE_ENV !== "production" && d && t && (c || H) && console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."), /* @__PURE__ */ q(J, _({}, ie, {
222
- children: [j, /* @__PURE__ */ V(K, _({}, ue)), y]
221
+ return process.env.NODE_ENV !== "production" && p && t && (c || H) && console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."), /* @__PURE__ */ q(J, m({}, ue, {
222
+ children: [j, /* @__PURE__ */ B(K, m({}, ie)), C]
223
223
  }));
224
224
  });
225
225
  process.env.NODE_ENV !== "production" && (ee.propTypes = {
@@ -372,119 +372,131 @@ process.env.NODE_ENV !== "production" && (ee.propTypes = {
372
372
  */
373
373
  value: e.any
374
374
  });
375
- const Ee = (s) => /* @__PURE__ */ m.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", "data-waves-icon": "fa/solid/circle-exclamation", fill: "currentColor", color: "currentColor", width: "1em", height: "1em", style: {
375
+ const Pe = (a) => /* @__PURE__ */ h.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", "data-waves-icon": "fa/solid/circle-exclamation", fill: "currentColor", color: "currentColor", width: "1em", height: "1em", style: {
376
376
  fill: "currentcolor",
377
377
  color: "currentcolor",
378
378
  width: "1em",
379
379
  height: "1em"
380
- }, ...s }, /* @__PURE__ */ m.createElement("path", { d: "M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM232 152C232 138.8 242.8 128 256 128s24 10.75 24 24v128c0 13.25-10.75 24-24 24S232 293.3 232 280V152zM256 400c-17.36 0-31.44-14.08-31.44-31.44c0-17.36 14.07-31.44 31.44-31.44s31.44 14.08 31.44 31.44C287.4 385.9 273.4 400 256 400z" })), Re = "_input__label_29e4w_1", Fe = "_input_29e4w_1", i = {
381
- input__label: Re,
382
- "input__input-el-wrapper": "_input__input-el-wrapper_29e4w_6",
383
- "input__input-el": "_input__input-el_29e4w_6",
384
- "input__left-icon": "_input__left-icon_29e4w_27",
385
- "input__right-icon": "_input__right-icon_29e4w_27",
386
- "input__messages-wrapper": "_input__messages-wrapper_29e4w_39",
387
- "input__info-message": "_input__info-message_29e4w_47",
388
- "input__error-message": "_input__error-message_29e4w_47",
389
- "input__chars-counter": "_input__chars-counter_29e4w_58",
390
- "input--disabled": "_input--disabled_29e4w_62",
391
- input: Fe,
392
- "input--focused": "_input--focused_29e4w_68",
393
- "input--error": "_input--error_29e4w_71"
394
- }, Ve = ({
395
- label: s,
380
+ }, ...a }, /* @__PURE__ */ h.createElement("path", { d: "M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM232 152C232 138.8 242.8 128 256 128s24 10.75 24 24v128c0 13.25-10.75 24-24 24S232 293.3 232 280V152zM256 400c-17.36 0-31.44-14.08-31.44-31.44c0-17.36 14.07-31.44 31.44-31.44s31.44 14.08 31.44 31.44C287.4 385.9 273.4 400 256 400z" })), Ee = "_input__label_19vkb_77", Re = "_input_19vkb_56", u = {
381
+ "u-typography-h1": "_u-typography-h1_19vkb_1",
382
+ "u-typography-h2": "_u-typography-h2_19vkb_8",
383
+ "u-typography-h3": "_u-typography-h3_19vkb_15",
384
+ "u-typography-h4": "_u-typography-h4_19vkb_22",
385
+ "u-typography-h5": "_u-typography-h5_19vkb_29",
386
+ "u-typography-h6": "_u-typography-h6_19vkb_36",
387
+ "u-typography-base": "_u-typography-base_19vkb_43",
388
+ "u-typography-base--xxl": "_u-typography-base--xxl_19vkb_48",
389
+ "u-typography-base--xl": "_u-typography-base--xl_19vkb_52",
390
+ "u-typography-base--lg": "_u-typography-base--lg_19vkb_56",
391
+ "input__input-el": "_input__input-el_19vkb_56",
392
+ "u-typography-base--sm": "_u-typography-base--sm_19vkb_60",
393
+ "u-typography-base--bold": "_u-typography-base--bold_19vkb_64",
394
+ "u-typography-base--strikethrough": "_u-typography-base--strikethrough_19vkb_67",
395
+ "u-typography-base--underlined": "_u-typography-base--underlined_19vkb_70",
396
+ "u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_19vkb_73",
397
+ input__label: Ee,
398
+ "input__input-el-wrapper": "_input__input-el-wrapper_19vkb_82",
399
+ "input__left-icon": "_input__left-icon_19vkb_100",
400
+ "input__right-icon": "_input__right-icon_19vkb_100",
401
+ "input__messages-wrapper": "_input__messages-wrapper_19vkb_112",
402
+ "input__info-message": "_input__info-message_19vkb_120",
403
+ "input__error-message": "_input__error-message_19vkb_120",
404
+ "input__chars-counter": "_input__chars-counter_19vkb_131",
405
+ "input--disabled": "_input--disabled_19vkb_135",
406
+ input: Re,
407
+ "input--focused": "_input--focused_19vkb_141",
408
+ "input--error": "_input--error_19vkb_144"
409
+ }, Be = ({
410
+ label: a,
396
411
  infoMessage: l,
397
- errorMessage: a,
398
- leftIcon: h,
399
- rightIcon: u,
412
+ errorMessage: s,
413
+ leftIcon: f,
414
+ rightIcon: i,
400
415
  id: b,
401
- disabled: P,
402
- type: x = "text",
403
- maxLength: w,
404
- hideCharsCounter: U = !1,
405
- onChange: n,
406
- classNameWrapper: E,
407
- classNameLabel: f,
408
- classNameInput: C,
409
- classNameInfoMessage: y,
410
- classNameErrorMessage: g,
411
- classNameCharsCounter: I,
412
- "data-testid-wrapper": d,
413
- "data-testid-label": O,
414
- "data-testid-input": M,
415
- "data-testid-infoMessage": k,
416
- "data-testid-errorMessage": v,
417
- "data-testid-charsCounter": T,
418
- ...N
416
+ disabled: x,
417
+ type: N = "text",
418
+ maxLength: g,
419
+ hideCharsCounter: V = !1,
420
+ onChange: o,
421
+ classNameWrapper: P,
422
+ classNameLabel: _,
423
+ classNameInput: v,
424
+ classNameInfoMessage: C,
425
+ classNameErrorMessage: y,
426
+ classNameCharsCounter: F,
427
+ "data-testid-wrapper": p,
428
+ "data-testid-label": I,
429
+ "data-testid-input": U,
430
+ "data-testid-infoMessage": M,
431
+ "data-testid-errorMessage": w,
432
+ "data-testid-charsCounter": O,
433
+ ...k
419
434
  }) => {
420
- const [R, A] = pe(0), D = ce(), S = b || `input_${D}`;
421
- Object.assign(N, { "data-testid": M });
422
- const j = (p) => {
423
- var B, t;
424
- A((t = (B = p == null ? void 0 : p.target) == null ? void 0 : B.value) == null ? void 0 : t.length), n && n(p);
435
+ const [E, A] = de(0), D = ce(), T = b || `input_${D}`;
436
+ Object.assign(k, { "data-testid": U });
437
+ const j = (d) => {
438
+ var S, t;
439
+ A((t = (S = d == null ? void 0 : d.target) == null ? void 0 : S.value) == null ? void 0 : t.length), o && o(d);
425
440
  };
426
- return /* @__PURE__ */ q("div", { className: F(i.input, E), "data-testid": d, children: [
427
- s && /* @__PURE__ */ V(
441
+ return /* @__PURE__ */ q("div", { className: R(u.input, P), "data-testid": p, children: [
442
+ a && /* @__PURE__ */ B(
428
443
  L,
429
444
  {
430
445
  element: "label",
431
- variant: "form-label",
432
- elementProps: { htmlFor: S },
433
- className: F(i.input__label, f),
434
- "data-testid": O,
435
- children: s
446
+ elementProps: { htmlFor: T },
447
+ className: R(u.input__label, _),
448
+ "data-testid": I,
449
+ children: a
436
450
  }
437
451
  ),
438
- /* @__PURE__ */ V(
452
+ /* @__PURE__ */ B(
439
453
  ee,
440
454
  {
441
- id: S,
442
- type: x,
443
- disabled: P,
444
- error: !!a,
445
- "aria-label": s,
455
+ id: T,
456
+ type: N,
457
+ disabled: x,
458
+ error: !!s,
459
+ "aria-label": a,
446
460
  slotProps: {
447
- root: (p) => ({
448
- className: F(i["input__input-el-wrapper"], {
449
- [i["input--disabled"]]: p.disabled,
450
- [i["input--focused"]]: p.focused,
451
- [i["input--error"]]: p.error
461
+ root: (d) => ({
462
+ className: R(u["input__input-el-wrapper"], {
463
+ [u["input--disabled"]]: d.disabled,
464
+ [u["input--focused"]]: d.focused,
465
+ [u["input--error"]]: d.error
452
466
  })
453
467
  }),
454
468
  input: {
455
- className: F(i["input__input-el"], C),
456
- maxLength: w,
469
+ className: R(u["input__input-el"], v),
470
+ maxLength: g,
457
471
  onChange: j,
458
- ...N
472
+ ...k
459
473
  }
460
474
  },
461
- startAdornment: h && /* @__PURE__ */ V("span", { className: i["input__left-icon"], children: h }),
462
- endAdornment: u && /* @__PURE__ */ V("span", { className: i["input__right-icon"], children: u })
475
+ startAdornment: f && /* @__PURE__ */ B("span", { className: u["input__left-icon"], children: f }),
476
+ endAdornment: i && /* @__PURE__ */ B("span", { className: u["input__right-icon"], children: i })
463
477
  }
464
478
  ),
465
- /* @__PURE__ */ q("div", { className: i["input__messages-wrapper"], children: [
466
- (a || l) && /* @__PURE__ */ q(
479
+ /* @__PURE__ */ q("div", { className: u["input__messages-wrapper"], children: [
480
+ (s || l) && /* @__PURE__ */ q(
467
481
  L,
468
482
  {
469
- variant: "form-hint",
470
- className: a ? F(i["input__error-message"], g) : F(i["input__info-message"], y),
471
- "data-testid": a ? v : k,
483
+ className: s ? R(u["input__error-message"], y) : R(u["input__info-message"], C),
484
+ "data-testid": s ? w : M,
472
485
  children: [
473
- /* @__PURE__ */ V(Ee, {}),
474
- a || l
486
+ /* @__PURE__ */ B(Pe, {}),
487
+ s || l
475
488
  ]
476
489
  }
477
490
  ),
478
- w && !U && /* @__PURE__ */ q(
491
+ g && !V && /* @__PURE__ */ q(
479
492
  L,
480
493
  {
481
- variant: "form-hint",
482
- className: F(i["input__chars-counter"], I),
483
- "data-testid": T,
494
+ className: R(u["input__chars-counter"], F),
495
+ "data-testid": O,
484
496
  children: [
485
- R,
497
+ E,
486
498
  " / ",
487
- w
499
+ g
488
500
  ]
489
501
  }
490
502
  )
@@ -492,5 +504,5 @@ const Ee = (s) => /* @__PURE__ */ m.createElement("svg", { xmlns: "http://www.w3
492
504
  ] });
493
505
  };
494
506
  export {
495
- Ve as Input
507
+ Be as Input
496
508
  };