@pismo/marola 0.0.1-alpha.9 → 1.0.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (165) hide show
  1. package/README.md +1 -1
  2. package/dist/{Button-B1umG8kJ.js → Button-2b1peDFT.js} +25 -26
  3. package/dist/{ClickAwayListener-BKznXF1d.js → ClickAwayListener-BSW-Nd-y.js} +3 -2
  4. package/dist/Dialog.module-DFEmFdYT.js +30 -0
  5. package/dist/Group-B3p31ftp.js +26 -0
  6. package/dist/Popup-B6ZSGIEI.js +1248 -0
  7. package/dist/{Portal-BcdMtRGF.js → Portal-DIeBsWdL.js} +2 -2
  8. package/dist/SelectButton-C8JQKaf4.js +61 -0
  9. package/dist/Tabs.module-jkH1Qjn7.js +22 -0
  10. package/dist/Toggle-BCgIItCc.js +142 -0
  11. package/dist/assets/Advice.css +1 -1
  12. package/dist/assets/Button.css +1 -1
  13. package/dist/assets/Checkbox.css +1 -1
  14. package/dist/assets/Dialog.css +1 -1
  15. package/dist/assets/EllipsisTooltip.css +1 -0
  16. package/dist/assets/Group.css +1 -0
  17. package/dist/assets/IconButton.css +1 -1
  18. package/dist/assets/Input.css +1 -1
  19. package/dist/assets/InputSearch.css +1 -1
  20. package/dist/assets/PageHeader.css +1 -1
  21. package/dist/assets/Pagination.css +1 -1
  22. package/dist/assets/SelectButton.css +1 -0
  23. package/dist/assets/Skeleton.css +1 -1
  24. package/dist/assets/Snackbar.css +1 -1
  25. package/dist/assets/SortTooltip.css +1 -1
  26. package/dist/assets/Stepper.css +1 -1
  27. package/dist/assets/Table.css +1 -1
  28. package/dist/assets/TextDisplay.css +1 -0
  29. package/dist/assets/Toggle.css +1 -1
  30. package/dist/assets/Toggle2.css +1 -0
  31. package/dist/assets/Typography.css +1 -1
  32. package/dist/combineHooksSlotProps-DVjg9PRh.js +80 -0
  33. package/dist/components/Advice/Advice.d.ts +17 -3
  34. package/dist/components/Advice/Advice.js +39 -17
  35. package/dist/components/Advice/Advice.stories.d.ts +18 -0
  36. package/dist/components/Button/Button.d.ts +6 -3
  37. package/dist/components/Button/Button.js +60 -65
  38. package/dist/components/Button/Button.stories.d.ts +3 -1
  39. package/dist/components/Checkbox/Checkbox.d.ts +19 -2
  40. package/dist/components/Checkbox/Checkbox.js +63 -40
  41. package/dist/components/Checkbox/Checkbox.stories.d.ts +31 -0
  42. package/dist/components/Chip/Chip.d.ts +39 -0
  43. package/dist/components/Chip/Chip.js +19 -0
  44. package/dist/components/Chip/Chip.stories.d.ts +42 -0
  45. package/dist/components/Chip/chip.test.d.ts +1 -0
  46. package/dist/components/Dialog/Actions.js +1 -1
  47. package/dist/components/Dialog/Backdrop.js +1 -1
  48. package/dist/components/Dialog/CloseIconButton.js +2 -2
  49. package/dist/components/Dialog/Dialog.d.ts +1 -1
  50. package/dist/components/Dialog/Dialog.js +13 -13
  51. package/dist/components/Dialog/Dialog.stories.d.ts +10 -10
  52. package/dist/components/Dialog/{Title.d.ts → DialogTitle.d.ts} +3 -3
  53. package/dist/components/Dialog/DialogTitle.js +29 -0
  54. package/dist/components/EllipsisTooltip/EllipsisTooltip.d.ts +7 -0
  55. package/dist/components/EllipsisTooltip/EllipsisTooltip.js +23 -0
  56. package/dist/components/EllipsisTooltip/EllipsisTooltip.stories.d.ts +31 -0
  57. package/dist/components/Icon/Icon.d.ts +8 -15
  58. package/dist/components/Icon/Icon.js +85 -41
  59. package/dist/components/Icon/Icon.stories.d.ts +15 -0
  60. package/dist/components/Icon/types.d.ts +5 -0
  61. package/dist/components/Icon/types.js +1 -0
  62. package/dist/components/IconButton/Icon.stories.d.ts +15 -0
  63. package/dist/components/IconButton/IconButton.d.ts +18 -2
  64. package/dist/components/IconButton/IconButton.js +58 -63
  65. package/dist/components/Input/Input.d.ts +1 -1
  66. package/dist/components/Input/Input.js +241 -230
  67. package/dist/components/InputSearch/InputSearch.d.ts +7 -9
  68. package/dist/components/InputSearch/InputSearch.js +30 -25
  69. package/dist/components/InputSearch/InputSearch.stories.d.ts +21 -4
  70. package/dist/components/LoadingSpinner/LoadingSpinner.d.ts +1 -1
  71. package/dist/components/PageHeader/PageHeader.d.ts +36 -6
  72. package/dist/components/PageHeader/PageHeader.js +83 -47
  73. package/dist/components/PageHeader/PageHeader.stories.d.ts +2 -31
  74. package/dist/components/Pagination/Pagination.d.ts +24 -5
  75. package/dist/components/Pagination/Pagination.js +127 -109
  76. package/dist/components/Pagination/Pagination.stories.d.ts +17 -0
  77. package/dist/components/Select/Select.d.ts +26 -0
  78. package/dist/components/Select/Select.js +857 -0
  79. package/dist/components/Select/Select.stories.d.ts +22 -0
  80. package/dist/components/Select/SelectButton.d.ts +12 -0
  81. package/dist/components/Select/SelectButton.js +8 -0
  82. package/dist/components/Skeleton/Skeleton.d.ts +10 -3
  83. package/dist/components/Skeleton/Skeleton.js +16 -19
  84. package/dist/components/Skeleton/Skeleton.stories.d.ts +14 -0
  85. package/dist/components/Skeleton/SkeletonCircle.stories.d.ts +14 -0
  86. package/dist/components/Skeleton/SkeletonTable.stories.d.ts +16 -0
  87. package/dist/components/Snackbar/Snackbar.d.ts +19 -5
  88. package/dist/components/Snackbar/Snackbar.js +247 -230
  89. package/dist/components/Snackbar/Snackbar.stories.d.ts +319 -0
  90. package/dist/components/SortTooltip/SortTooltip.d.ts +3 -1
  91. package/dist/components/SortTooltip/SortTooltip.js +55 -29
  92. package/dist/components/Stepper/Stepper.d.ts +11 -1
  93. package/dist/components/Stepper/Stepper.js +37 -22
  94. package/dist/components/Stepper/Stepper.stories.d.ts +16 -0
  95. package/dist/components/Table/Table.d.ts +33 -16
  96. package/dist/components/Table/Table.js +106 -91
  97. package/dist/components/Table/Table.stories.d.ts +29 -0
  98. package/dist/components/Table/_Table.TBody.stories.d.ts +14 -0
  99. package/dist/components/Table/_Table.THead.stories.d.ts +14 -0
  100. package/dist/components/Table/_Table.Td.stories.d.ts +16 -0
  101. package/dist/components/Table/_Table.Th.stories.d.ts +15 -0
  102. package/dist/components/Table/_Table.Tr.stories.d.ts +15 -0
  103. package/dist/components/Tabs/Tab.d.ts +5 -0
  104. package/dist/components/Tabs/Tab.js +179 -6
  105. package/dist/components/Tabs/Tab.stories.d.ts +15 -0
  106. package/dist/components/Tabs/TabPanel.d.ts +4 -0
  107. package/dist/components/Tabs/TabPanel.js +12 -12
  108. package/dist/components/Tabs/TabPanel.stories.d.ts +14 -0
  109. package/dist/components/Tabs/Tabs.d.ts +5 -1
  110. package/dist/components/Tabs/Tabs.js +242 -668
  111. package/dist/components/Tabs/Tabs.stories.d.ts +14 -0
  112. package/dist/components/TextDisplay/TextDisplay.d.ts +23 -0
  113. package/dist/components/TextDisplay/TextDisplay.js +37 -0
  114. package/dist/components/TextDisplay/TextDisplay.stories.d.ts +13 -0
  115. package/dist/components/TextDisplay/textDisplay.test.d.ts +1 -0
  116. package/dist/components/Toggle/Toggle.js +143 -129
  117. package/dist/components/ToggleGroup/Group.d.ts +18 -0
  118. package/dist/components/ToggleGroup/Group.js +7 -0
  119. package/dist/components/ToggleGroup/Group.test.d.ts +1 -0
  120. package/dist/components/ToggleGroup/Toggle.d.ts +15 -0
  121. package/dist/components/ToggleGroup/Toggle.js +17 -0
  122. package/dist/components/ToggleGroup/Toggle.test.d.ts +1 -0
  123. package/dist/components/ToggleGroup/ToggleGroup.d.ts +2 -0
  124. package/dist/components/ToggleGroup/ToggleGroup.js +6 -0
  125. package/dist/components/ToggleGroup/ToggleGroup.stories.d.ts +25 -0
  126. package/dist/components/Tooltip/Tooltip.d.ts +22 -6
  127. package/dist/components/Tooltip/Tooltip.js +114 -1339
  128. package/dist/components/Tooltip/Tooltip.stories.d.ts +35 -0
  129. package/dist/components/Typography/Typography.d.ts +4 -2
  130. package/dist/components/Typography/Typography.js +56 -73
  131. package/dist/components/Typography/Typography.stories.d.ts +1 -0
  132. package/dist/contexts/SnackbarProvider/SnackbarProvider.d.ts +11 -0
  133. package/dist/contexts/SnackbarProvider/SnackbarProvider.js +50 -0
  134. package/dist/contexts/SnackbarProvider/SnackbarProvider.stories.d.ts +21 -0
  135. package/dist/{index-CqjC7P5Y.js → index-CH45lKw7.js} +333 -307
  136. package/dist/{index-BNWbc5Kh.js → index-CjW42-M-.js} +3108 -3152
  137. package/dist/main.d.ts +10 -1
  138. package/dist/main.js +73 -55
  139. package/dist/marola.css +1 -0
  140. package/dist/{useButton-Bc8IAgyk.js → useButton-DNk3wrQp.js} +3 -4
  141. package/dist/useCompoundItem-D1iRfg8D.js +84 -0
  142. package/dist/useEventCallback-xTG9piMa.js +45 -0
  143. package/dist/useList-B0hog_3-.js +436 -0
  144. package/dist/utils/styleStrings.d.ts +1 -1
  145. package/dist/utils/styleStrings.js +7 -7
  146. package/package.json +4 -4
  147. package/dist/Dialog.module-CGVM5V_D.js +0 -15
  148. package/dist/Tab-CRwnhsj5.js +0 -254
  149. package/dist/Tabs.module-yYcTJnj6.js +0 -103
  150. package/dist/_commonjsHelpers-CT_km90n.js +0 -30
  151. package/dist/assets/global.css +0 -1
  152. package/dist/components/Button/Button.stories.js +0 -40
  153. package/dist/components/Dialog/Dialog.stories.js +0 -59
  154. package/dist/components/Dialog/Title.js +0 -29
  155. package/dist/components/Input/Input.stories.js +0 -106
  156. package/dist/components/InputSearch/InputSearch.stories.js +0 -36
  157. package/dist/components/LoadingSpinner/LoadingSpinner.stories.js +0 -38
  158. package/dist/components/PageHeader/PageHeader.stories.js +0 -49
  159. package/dist/components/Toggle/Toggle.stories.js +0 -33
  160. package/dist/components/Typography/Typography.stories.js +0 -30
  161. package/dist/components/Typography/typography.test.js +0 -11357
  162. package/dist/magic-string.es-O_8lTkE3.js +0 -738
  163. package/dist/objectWithoutPropertiesLoose-D7Cp0Pg_.js +0 -26
  164. package/dist/utils/styleStrings.test.js +0 -41
  165. package/dist/vi.Y_w82WR8-Df0JUamG.js +0 -9860
@@ -1,226 +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 { a as _, _ as fe } from "../../objectWithoutPropertiesLoose-D7Cp0Pg_.js";
8
- import { g as me, a as _e, u as he, e as z, b as Q, i as be, P as e, c as ge, d as Ce } from "../../index-CqjC7P5Y.js";
9
- function ye(s) {
10
- let l = "https://mui.com/production-error/?code=" + s;
11
- for (let a = 1; a < arguments.length; a += 1)
12
- l += "&args[]=" + encodeURIComponent(arguments[a]);
13
- 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.";
14
13
  }
15
- const X = /* @__PURE__ */ m.createContext(void 0);
14
+ const X = /* @__PURE__ */ h.createContext(void 0);
16
15
  process.env.NODE_ENV !== "production" && (X.displayName = "FormControlContext");
17
- function we() {
18
- return m.useContext(X);
16
+ function Ce() {
17
+ return h.useContext(X);
19
18
  }
20
19
  const Z = "Input";
21
- function ve(s) {
22
- return me(Z, s);
20
+ function we(a) {
21
+ return _e(Z, a);
23
22
  }
24
- _e(Z, ["root", "formControl", "focused", "disabled", "error", "multiline", "input", "inputMultiline", "inputTypeSearch", "adornedStart", "adornedEnd"]);
25
- function Ne(s = {}) {
23
+ he(Z, ["root", "formControl", "focused", "disabled", "error", "multiline", "input", "inputMultiline", "inputTypeSearch", "adornedStart", "adornedEnd"]);
24
+ function ke(a = {}) {
26
25
  const {
27
26
  defaultValue: l,
28
- disabled: a = !1,
29
- error: h = !1,
30
- onBlur: u,
27
+ disabled: s = !1,
28
+ error: f = !1,
29
+ onBlur: i,
31
30
  onChange: b,
32
- onFocus: P,
33
- required: x = !1,
34
- value: C,
35
- inputRef: U
36
- } = s, n = we();
37
- let E, f, y, w, g;
38
- if (n) {
39
- var I, d, O;
40
- if (E = void 0, f = (I = n.disabled) != null ? I : !1, y = (d = n.error) != null ? d : !1, w = (O = n.required) != null ? O : !1, g = n.value, process.env.NODE_ENV !== "production") {
41
- 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);
42
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(`
43
42
  `));
44
43
  }
45
44
  } else
46
- E = l, f = a, y = h, w = x, g = C;
45
+ P = l, _ = s, v = f, C = N, y = g;
47
46
  const {
48
- current: M
49
- } = m.useRef(g != null), k = m.useCallback((t) => {
47
+ current: U
48
+ } = h.useRef(y != null), M = h.useCallback((t) => {
50
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(`
51
50
  `));
52
- }, []), v = m.useRef(null), T = he(v, U, k), [N, R] = m.useState(!1);
53
- m.useEffect(() => {
54
- !n && f && N && (R(!1), u == null || u());
55
- }, [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]);
56
55
  const A = (t) => (r) => {
57
- var o;
58
- if (n != null && n.disabled) {
56
+ var n;
57
+ if (o != null && o.disabled) {
59
58
  r.stopPropagation();
60
59
  return;
61
60
  }
62
- 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) {
63
62
  var c;
64
- n == null || (c = n.onFocus) == null || c.call(n);
63
+ o == null || (c = o.onFocus) == null || c.call(o);
65
64
  } else
66
- R(!0);
65
+ E(!0);
67
66
  }, D = (t) => (r) => {
68
- var o;
69
- (o = t.onBlur) == null || o.call(t, r), n && n.onBlur ? n.onBlur() : R(!1);
70
- }, 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) => {
71
70
  var c, H;
72
- if (!M && (r.target || v.current) == null)
73
- throw new Error(process.env.NODE_ENV !== "production" ? "MUI: Expected valid input target. Did you use a custom `slots.input` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info." : ye(17));
74
- 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);
75
74
  }, j = (t) => (r) => {
76
- var o;
77
- 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);
78
77
  };
79
78
  return {
80
- disabled: f,
81
- error: y,
82
- focused: N,
83
- formControlContext: n,
79
+ disabled: _,
80
+ error: v,
81
+ focused: k,
82
+ formControlContext: o,
84
83
  getInputProps: (t = {}) => {
85
- const o = _({}, {
86
- onBlur: u,
84
+ const n = m({}, {
85
+ onBlur: i,
87
86
  onChange: b,
88
- onFocus: P
89
- }, z(t)), c = _({}, o, {
90
- onBlur: D(o),
91
- onChange: S(o),
92
- onFocus: A(o)
87
+ onFocus: x
88
+ }, z(t)), c = m({}, n, {
89
+ onBlur: D(n),
90
+ onChange: T(n),
91
+ onFocus: A(n)
93
92
  });
94
- return _({}, c, {
95
- "aria-invalid": y || void 0,
96
- defaultValue: E,
97
- value: g,
98
- required: w,
99
- disabled: f
93
+ return m({}, c, {
94
+ "aria-invalid": v || void 0,
95
+ defaultValue: P,
96
+ value: y,
97
+ required: C,
98
+ disabled: _
100
99
  }, t, {
101
- ref: T
100
+ ref: O
102
101
  }, c);
103
102
  },
104
103
  getRootProps: (t = {}) => {
105
- const r = z(s, ["onBlur", "onChange", "onFocus"]), o = _({}, r, z(t));
106
- return _({}, t, o, {
107
- 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)
108
107
  });
109
108
  },
110
- inputRef: T,
111
- required: w,
112
- value: g
109
+ inputRef: O,
110
+ required: C,
111
+ value: y
113
112
  };
114
113
  }
115
- 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) => {
116
115
  const {
117
116
  disabled: l,
118
- error: a,
119
- focused: h,
120
- formControlContext: u,
117
+ error: s,
118
+ focused: f,
119
+ formControlContext: i,
121
120
  multiline: b,
122
- startAdornment: P,
123
- endAdornment: x
124
- } = s;
125
- return ge({
126
- 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"],
127
126
  input: ["input", l && "disabled", b && "multiline"]
128
- }, Ce(ve));
129
- }, ee = /* @__PURE__ */ m.forwardRef(function(l, a) {
130
- var h, u, b;
127
+ }, ge(we));
128
+ }, ee = /* @__PURE__ */ h.forwardRef(function(l, s) {
129
+ var f, i, b;
131
130
  const {
132
- "aria-describedby": P,
133
- "aria-label": x,
134
- "aria-labelledby": C,
135
- autoComplete: U,
136
- autoFocus: n,
137
- className: E,
138
- defaultValue: f,
139
- disabled: y,
140
- endAdornment: w,
141
- error: g,
142
- id: I,
143
- multiline: d = !1,
144
- name: O,
145
- onClick: M,
146
- onChange: k,
147
- onKeyDown: v,
148
- onKeyUp: T,
149
- onFocus: N,
150
- 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,
151
150
  placeholder: A,
152
151
  readOnly: D,
153
- required: S,
152
+ required: T,
154
153
  startAdornment: j,
155
- value: p,
156
- type: B,
154
+ value: d,
155
+ type: S,
157
156
  rows: t,
158
157
  slotProps: r = {},
159
- slots: o = {},
158
+ slots: n = {},
160
159
  minRows: c,
161
160
  maxRows: H
162
- } = l, Y = fe(l, Pe), {
161
+ } = l, Y = fe(l, xe), {
163
162
  getRootProps: te,
164
- getInputProps: ne,
165
- focused: oe,
163
+ getInputProps: oe,
164
+ focused: ne,
166
165
  formControlContext: re,
167
- error: se,
168
- disabled: ae
169
- } = Ne({
170
- disabled: y,
171
- defaultValue: f,
172
- error: g,
173
- onBlur: R,
174
- onClick: M,
175
- onChange: k,
176
- onFocus: N,
177
- required: S,
178
- value: p
179
- }), W = d ? void 0 : B ?? "text", $ = _({}, l, {
180
- disabled: ae,
181
- error: se,
182
- 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,
183
182
  formControlContext: re,
184
- multiline: d,
183
+ multiline: p,
185
184
  type: W
186
- }), G = xe($), le = {
187
- "aria-describedby": P,
188
- "aria-label": x,
189
- "aria-labelledby": C,
190
- autoComplete: U,
191
- autoFocus: n,
192
- id: I,
193
- onKeyDown: v,
194
- onKeyUp: T,
195
- 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,
196
195
  placeholder: A,
197
196
  readOnly: D,
198
197
  type: W
199
- }, J = (h = o.root) != null ? h : "div", ie = Q({
198
+ }, J = (f = n.root) != null ? f : "div", ue = Q({
200
199
  elementType: J,
201
200
  getSlotProps: te,
202
201
  externalSlotProps: r.root,
203
202
  externalForwardedProps: Y,
204
203
  additionalProps: {
205
- ref: a
204
+ ref: s
206
205
  },
207
206
  ownerState: $,
208
- className: [G.root, E]
209
- }), 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({
210
209
  elementType: K,
211
- getSlotProps: (de) => ne(_({}, le, de)),
210
+ getSlotProps: (pe) => oe(m({}, le, pe)),
212
211
  externalSlotProps: r.input,
213
- additionalProps: _({
214
- rows: d ? t : void 0
215
- }, d && !be(K) && {
212
+ additionalProps: m({
213
+ rows: p ? t : void 0
214
+ }, p && !be(K) && {
216
215
  minRows: t || c,
217
216
  maxRows: t || H
218
217
  }),
219
218
  ownerState: $,
220
219
  className: G.input
221
220
  });
222
- 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, {
223
- children: [j, /* @__PURE__ */ V(K, _({}, ue)), w]
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]
224
223
  }));
225
224
  });
226
225
  process.env.NODE_ENV !== "production" && (ee.propTypes = {
@@ -373,119 +372,131 @@ process.env.NODE_ENV !== "production" && (ee.propTypes = {
373
372
  */
374
373
  value: e.any
375
374
  });
376
- 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: {
377
376
  fill: "currentcolor",
378
377
  color: "currentcolor",
379
378
  width: "1em",
380
379
  height: "1em"
381
- }, ...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_f2das_1", Fe = "_input_f2das_1", i = {
382
- input__label: Re,
383
- "input__input-el-wrapper": "_input__input-el-wrapper_f2das_6",
384
- "input__input-el": "_input__input-el_f2das_6",
385
- "input__left-icon": "_input__left-icon_f2das_27",
386
- "input__right-icon": "_input__right-icon_f2das_30",
387
- "input__messages-wrapper": "_input__messages-wrapper_f2das_33",
388
- "input__info-message": "_input__info-message_f2das_41",
389
- "input__error-message": "_input__error-message_f2das_41",
390
- "input__chars-counter": "_input__chars-counter_f2das_52",
391
- "input--disabled": "_input--disabled_f2das_56",
392
- input: Fe,
393
- "input--focused": "_input--focused_f2das_62",
394
- "input--error": "_input--error_f2das_65"
395
- }, Ue = ({
396
- 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,
397
411
  infoMessage: l,
398
- errorMessage: a,
399
- leftIcon: h,
400
- rightIcon: u,
412
+ errorMessage: s,
413
+ leftIcon: f,
414
+ rightIcon: i,
401
415
  id: b,
402
- disabled: P,
403
- type: x = "text",
404
- maxLength: C,
405
- hideCharsCounter: U = !1,
406
- onChange: n,
407
- classNameWrapper: E,
408
- classNameLabel: f,
409
- classNameInput: y,
410
- classNameInfoMessage: w,
411
- classNameErrorMessage: g,
412
- classNameCharsCounter: I,
413
- "data-testid-wrapper": d,
414
- "data-testid-label": O,
415
- "data-testid-input": M,
416
- "data-testid-infoMessage": k,
417
- "data-testid-errorMessage": v,
418
- "data-testid-charsCounter": T,
419
- ...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
420
434
  }) => {
421
- const [R, A] = pe(0), D = ce(), S = b || `input_${D}`;
422
- Object.assign(N, { "data-testid": M });
423
- const j = (p) => {
424
- var B, t;
425
- 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);
426
440
  };
427
- return /* @__PURE__ */ q("div", { className: F(i.input, E), "data-testid": d, children: [
428
- s && /* @__PURE__ */ V(
441
+ return /* @__PURE__ */ q("div", { className: R(u.input, P), "data-testid": p, children: [
442
+ a && /* @__PURE__ */ B(
429
443
  L,
430
444
  {
431
445
  element: "label",
432
- variant: "form-label",
433
- elementProps: { htmlFor: S },
434
- className: F(i.input__label, f),
435
- "data-testid": O,
436
- children: s
446
+ elementProps: { htmlFor: T },
447
+ className: R(u.input__label, _),
448
+ "data-testid": I,
449
+ children: a
437
450
  }
438
451
  ),
439
- /* @__PURE__ */ V(
452
+ /* @__PURE__ */ B(
440
453
  ee,
441
454
  {
442
- id: S,
443
- type: x,
444
- disabled: P,
445
- error: !!a,
446
- "aria-label": s,
455
+ id: T,
456
+ type: N,
457
+ disabled: x,
458
+ error: !!s,
459
+ "aria-label": a,
447
460
  slotProps: {
448
- root: (p) => ({
449
- className: F(i["input__input-el-wrapper"], {
450
- [i["input--disabled"]]: p.disabled,
451
- [i["input--focused"]]: p.focused,
452
- [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
453
466
  })
454
467
  }),
455
468
  input: {
456
- className: F(i["input__input-el"], y),
457
- maxLength: C,
469
+ className: R(u["input__input-el"], v),
470
+ maxLength: g,
458
471
  onChange: j,
459
- ...N
472
+ ...k
460
473
  }
461
474
  },
462
- startAdornment: h && /* @__PURE__ */ V("span", { className: i["input__left-icon"], children: h }),
463
- 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 })
464
477
  }
465
478
  ),
466
- /* @__PURE__ */ q("div", { className: i["input__messages-wrapper"], children: [
467
- (a || l) && /* @__PURE__ */ q(
479
+ /* @__PURE__ */ q("div", { className: u["input__messages-wrapper"], children: [
480
+ (s || l) && /* @__PURE__ */ q(
468
481
  L,
469
482
  {
470
- variant: "form-hint",
471
- className: a ? F(i["input__error-message"], g) : F(i["input__info-message"], w),
472
- "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,
473
485
  children: [
474
- /* @__PURE__ */ V(Ee, {}),
475
- a || l
486
+ /* @__PURE__ */ B(Pe, {}),
487
+ s || l
476
488
  ]
477
489
  }
478
490
  ),
479
- C && !U && /* @__PURE__ */ q(
491
+ g && !V && /* @__PURE__ */ q(
480
492
  L,
481
493
  {
482
- variant: "form-hint",
483
- className: F(i["input__chars-counter"], I),
484
- "data-testid": T,
494
+ className: R(u["input__chars-counter"], F),
495
+ "data-testid": O,
485
496
  children: [
486
- R,
497
+ E,
487
498
  " / ",
488
- C
499
+ g
489
500
  ]
490
501
  }
491
502
  )
@@ -493,5 +504,5 @@ const Ee = (s) => /* @__PURE__ */ m.createElement("svg", { xmlns: "http://www.w3
493
504
  ] });
494
505
  };
495
506
  export {
496
- Ue as Input
507
+ Be as Input
497
508
  };
@@ -1,11 +1,9 @@
1
- import { InputHTMLAttributes } from 'react';
1
+ import { Input } from '../Input/Input';
2
+ import { ComponentProps } from 'react';
2
3
 
3
- type InputSearchProps = InputHTMLAttributes<HTMLInputElement> & {
4
- label?: string;
5
- placeholder?: string;
6
- classNameWrapper?: string;
7
- classNameInputSearch?: string;
8
- 'data-testid'?: string;
9
- };
10
- export declare const InputSearch: ({ label, placeholder, classNameWrapper, classNameInputSearch, disabled, "data-testid": dataTestId, }: InputSearchProps) => import("react/jsx-runtime").JSX.Element;
4
+ type InputSearchProps = {
5
+ /** How many milliseconds to wait before trigger the onChange event */
6
+ triggerDelay?: number;
7
+ } & ComponentProps<typeof Input>;
8
+ export declare const InputSearch: ({ classNameWrapper, triggerDelay, value, onChange, ...rest }: InputSearchProps) => import("react/jsx-runtime").JSX.Element;
11
9
  export {};