@cgi-learning-hub/ui 0.0.1-dev.1708964890 → 0.0.1-dev.1708974808

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 (134) hide show
  1. package/dist/Button-Tkz5NkF_.cjs +1 -0
  2. package/dist/Button-X7eWZQfX.js +356 -0
  3. package/dist/ButtonBase-CKfcGhaU.js +892 -0
  4. package/dist/ButtonBase-Cg8cBMzO.cjs +75 -0
  5. package/dist/Input-CAb0EFzc.cjs +1 -0
  6. package/dist/Input-CbYjsRHK.js +322 -0
  7. package/dist/{InputBase-C_yPRkam.js → InputBase-B13Nzzhk.js} +215 -193
  8. package/dist/InputBase-CKlCw9fj.cjs +4 -0
  9. package/dist/assets/index.css +1 -1
  10. package/dist/components/AnotherComponent/AnotherComponent.cjs.js +1 -0
  11. package/dist/components/AnotherComponent/AnotherComponent.d.ts +2 -0
  12. package/dist/components/AnotherComponent/AnotherComponent.es.js +15 -0
  13. package/dist/components/AnotherComponent/AnotherComponent.stories.cjs.js +1 -0
  14. package/dist/components/{Dropzone/Dropzone.stories.d.ts → AnotherComponent/AnotherComponent.stories.d.ts} +2 -1
  15. package/dist/components/AnotherComponent/AnotherComponent.stories.es.js +22 -0
  16. package/dist/components/AnotherComponent/index.cjs.js +1 -0
  17. package/dist/components/AnotherComponent/index.d.ts +2 -0
  18. package/dist/components/AnotherComponent/index.es.js +4 -0
  19. package/dist/components/BasicButtons/BasicButtons.cjs.js +1 -0
  20. package/dist/components/BasicButtons/BasicButtons.d.ts +2 -0
  21. package/dist/components/BasicButtons/BasicButtons.es.js +189 -0
  22. package/dist/components/BasicButtons/BasicButtons.stories.cjs.js +1 -0
  23. package/dist/components/BasicButtons/BasicButtons.stories.d.ts +5 -0
  24. package/dist/components/BasicButtons/BasicButtons.stories.es.js +22 -0
  25. package/dist/components/BasicButtons/index.cjs.js +1 -0
  26. package/dist/components/BasicButtons/index.d.ts +2 -0
  27. package/dist/components/BasicButtons/index.es.js +4 -0
  28. package/dist/components/buttons/DefaultButton/DefaultButton.cjs.js +28 -1
  29. package/dist/components/buttons/DefaultButton/DefaultButton.es.js +267 -408
  30. package/dist/components/buttons/DefaultButton/DefaultButtonIcon.cjs.js +1 -1
  31. package/dist/components/buttons/DefaultButton/DefaultButtonIcon.es.js +5 -5
  32. package/dist/components/buttons/PrimaryButton/PrimaryButton.cjs.js +1 -1
  33. package/dist/components/buttons/PrimaryButton/PrimaryButton.es.js +1 -1
  34. package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.cjs.js +1 -1
  35. package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.d.ts +1 -1
  36. package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.es.js +7 -8
  37. package/dist/components/buttons/SecondaryButton/SecondaryButton.cjs.js +1 -1
  38. package/dist/components/buttons/SecondaryButton/SecondaryButton.es.js +1 -1
  39. package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.cjs.js +1 -1
  40. package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.d.ts +1 -1
  41. package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.es.js +9 -10
  42. package/dist/components/index.cjs.js +1 -1
  43. package/dist/components/index.d.ts +2 -4
  44. package/dist/components/index.es.js +14 -18
  45. package/dist/components/inputs/SearchInput/SearchInput.cjs.js +1 -1
  46. package/dist/components/inputs/SearchInput/SearchInput.es.js +247 -77
  47. package/dist/components/inputs/TextInput/TextInput.cjs.js +13 -11
  48. package/dist/components/inputs/TextInput/TextInput.es.js +1631 -1844
  49. package/dist/{createSvgIcon-B6bZPuto.cjs → createSvgIcon-jvI3LIfI.cjs} +1 -1
  50. package/dist/{createSvgIcon-KaSN8JhZ.js → createSvgIcon-qXNZi4k1.js} +8 -8
  51. package/dist/extendSxProp-BRHiEwyk.js +29 -0
  52. package/dist/extendSxProp-CvhhU9Vb.cjs +1 -0
  53. package/dist/index.cjs.js +1 -1
  54. package/dist/index.es.js +12 -16
  55. package/dist/useForkRef-82uiK71d.cjs +1 -0
  56. package/dist/useForkRef-CLcOhrzI.js +44 -0
  57. package/dist/useTheme-BWRyHzdn.js +65 -0
  58. package/dist/useTheme-BpLcDNG1.cjs +1 -0
  59. package/dist/{useThemeProps-Dg9Uoq7q.js → useThemeProps-B6yTTpAe.js} +1024 -1018
  60. package/dist/useThemeProps-CDriK9TK.cjs +65 -0
  61. package/package.json +1 -2
  62. package/dist/Box-7uR7JZiM.cjs +0 -1
  63. package/dist/Box-CPGTKTgx.js +0 -56
  64. package/dist/ButtonBase-B0tkJ9zf.js +0 -831
  65. package/dist/ButtonBase-DCL6Xlnm.cjs +0 -75
  66. package/dist/CircularProgress-CZX5SfKt.cjs +0 -28
  67. package/dist/CircularProgress-CguDBnxV.js +0 -215
  68. package/dist/IconButton-CJ1Nt-jf.js +0 -182
  69. package/dist/IconButton-De7ZdW2q.cjs +0 -2
  70. package/dist/InputBase-Dvr5GnwD.cjs +0 -4
  71. package/dist/Tab-Bhm9hCrX.cjs +0 -1
  72. package/dist/Tab-C4l6V01S.js +0 -237
  73. package/dist/TransitionGroupContext-C7wWJ6l7.js +0 -14
  74. package/dist/TransitionGroupContext-g4tmk10h.cjs +0 -1
  75. package/dist/Typography-CyFLZjnE.js +0 -202
  76. package/dist/Typography-DwsN2Ttm.cjs +0 -1
  77. package/dist/components/Dropzone/Dropzone.cjs.js +0 -5
  78. package/dist/components/Dropzone/Dropzone.d.ts +0 -9
  79. package/dist/components/Dropzone/Dropzone.es.js +0 -1210
  80. package/dist/components/Dropzone/Dropzone.stories.cjs.js +0 -1
  81. package/dist/components/Dropzone/Dropzone.stories.es.js +0 -17
  82. package/dist/components/Dropzone/index.cjs.js +0 -1
  83. package/dist/components/Dropzone/index.d.ts +0 -2
  84. package/dist/components/Dropzone/index.es.js +0 -4
  85. package/dist/components/buttons/IconButton.stories.cjs.js +0 -1
  86. package/dist/components/buttons/IconButton.stories.d.ts +0 -4
  87. package/dist/components/buttons/IconButton.stories.es.js +0 -27
  88. package/dist/components/inputs/SearchInput/SearchInput.stories.cjs.js +0 -1
  89. package/dist/components/inputs/SearchInput/SearchInput.stories.d.ts +0 -4
  90. package/dist/components/inputs/SearchInput/SearchInput.stories.es.js +0 -16
  91. package/dist/components/inputs/TextInput/TextInput.stories.cjs.js +0 -1
  92. package/dist/components/inputs/TextInput/TextInput.stories.d.ts +0 -4
  93. package/dist/components/inputs/TextInput/TextInput.stories.es.js +0 -17
  94. package/dist/components/lists/FileList/FileList.cjs.js +0 -1
  95. package/dist/components/lists/FileList/FileList.d.ts +0 -7
  96. package/dist/components/lists/FileList/FileList.es.js +0 -19
  97. package/dist/components/lists/FileList/FileList.stories.cjs.js +0 -1
  98. package/dist/components/lists/FileList/FileList.stories.d.ts +0 -4
  99. package/dist/components/lists/FileList/FileList.stories.es.js +0 -28
  100. package/dist/components/lists/FileList/FileListItem.cjs.js +0 -1
  101. package/dist/components/lists/FileList/FileListItem.d.ts +0 -13
  102. package/dist/components/lists/FileList/FileListItem.es.js +0 -41
  103. package/dist/components/lists/FileList/index.cjs.js +0 -1
  104. package/dist/components/lists/FileList/index.d.ts +0 -4
  105. package/dist/components/lists/FileList/index.es.js +0 -6
  106. package/dist/components/lists/TabList.stories.cjs.js +0 -4
  107. package/dist/components/lists/TabList.stories.d.ts +0 -4
  108. package/dist/components/lists/TabList.stories.es.js +0 -1027
  109. package/dist/components/lists/index.cjs.js +0 -1
  110. package/dist/components/lists/index.d.ts +0 -1
  111. package/dist/components/lists/index.es.js +0 -6
  112. package/dist/createSvgIcon-BX8WQ5r-.cjs +0 -2
  113. package/dist/createSvgIcon-m_wsenOJ.js +0 -84
  114. package/dist/isHostComponent-PydJW4A4.cjs +0 -1
  115. package/dist/isHostComponent-kiaBvYVo.js +0 -6
  116. package/dist/ownerWindow-C7EH1lr6.js +0 -23
  117. package/dist/ownerWindow-Dk_4aaak.cjs +0 -1
  118. package/dist/refType-CHSN6ysS.cjs +0 -1
  119. package/dist/refType-Hh9tfnoF.js +0 -29
  120. package/dist/unsupportedProp-Bn6XWqwH.cjs +0 -1
  121. package/dist/unsupportedProp-BuVD30Gh.js +0 -9
  122. package/dist/useControlled-BsLcOmhe.js +0 -48
  123. package/dist/useControlled-jN3fqFfv.cjs +0 -3
  124. package/dist/useForkRef-CGd3Nhyb.cjs +0 -1
  125. package/dist/useForkRef-DwN_Iz9R.js +0 -17
  126. package/dist/useIsFocusVisible-BF0lT08B.cjs +0 -1
  127. package/dist/useIsFocusVisible-D8ksiuhS.js +0 -69
  128. package/dist/useSlotProps-MoAYME1z.js +0 -70
  129. package/dist/useSlotProps-R4s13HHI.cjs +0 -1
  130. package/dist/useTheme-BDPYLOoP.cjs +0 -1
  131. package/dist/useTheme-DJEDOopE.js +0 -9
  132. package/dist/useThemeProps-jkB5q9ie.cjs +0 -65
  133. package/dist/useTimeout-KN97abZR.js +0 -47
  134. package/dist/useTimeout-qjxkiZZn.cjs +0 -1
@@ -1,42 +1,212 @@
1
- import { jsx as o, jsxs as A } from "react/jsx-runtime";
2
- import * as b from "react";
3
- import { g as T, a as S, s as I, _ as m, b as L, e as N, f as R, P as e, c as v, h as z } from "../../../useThemeProps-Dg9Uoq7q.js";
4
- import { u as M, F as O, I as _ } from "../../../InputBase-C_yPRkam.js";
5
- import { T as $ } from "../../../Typography-CyFLZjnE.js";
6
- import { c as j } from "../../../createSvgIcon-KaSN8JhZ.js";
7
- const F = j(/* @__PURE__ */ o("path", {
1
+ import { jsx as p, jsxs as W } from "react/jsx-runtime";
2
+ import * as T from "react";
3
+ import { b as I, g as M, s as x, f as m, a as d, u as N, _ as O, h as A, P as t, e as B } from "../../../useThemeProps-B6yTTpAe.js";
4
+ import { u as S, F as _, c as z } from "../../../InputBase-B13Nzzhk.js";
5
+ import { e as U } from "../../../extendSxProp-BRHiEwyk.js";
6
+ import { c as F } from "../../../createSvgIcon-qXNZi4k1.js";
7
+ const w = F(/* @__PURE__ */ p("path", {
8
8
  d: "M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"
9
9
  }), "Search");
10
- function U(n) {
11
- return S("MuiInputAdornment", n);
10
+ function D(n) {
11
+ return I("MuiTypography", n);
12
12
  }
13
- const w = T("MuiInputAdornment", ["root", "filled", "standard", "outlined", "positionStart", "positionEnd", "disablePointerEvents", "hiddenLabel", "sizeSmall"]), g = w;
14
- var y;
15
- const B = ["children", "className", "component", "disablePointerEvents", "disableTypography", "position", "variant"], D = (n, t) => {
13
+ M("MuiTypography", ["root", "h1", "h2", "h3", "h4", "h5", "h6", "subtitle1", "subtitle2", "body1", "body2", "inherit", "button", "caption", "overline", "alignLeft", "alignRight", "alignCenter", "alignJustify", "noWrap", "gutterBottom", "paragraph"]);
14
+ const V = ["align", "className", "component", "gutterBottom", "noWrap", "paragraph", "variant", "variantMapping"], k = (n) => {
16
15
  const {
17
- ownerState: s
16
+ align: o,
17
+ gutterBottom: e,
18
+ noWrap: a,
19
+ paragraph: r,
20
+ variant: i,
21
+ classes: c
22
+ } = n, l = {
23
+ root: ["root", i, n.align !== "inherit" && `align${m(o)}`, e && "gutterBottom", a && "noWrap", r && "paragraph"]
24
+ };
25
+ return B(l, D, c);
26
+ }, q = x("span", {
27
+ name: "MuiTypography",
28
+ slot: "Root",
29
+ overridesResolver: (n, o) => {
30
+ const {
31
+ ownerState: e
32
+ } = n;
33
+ return [o.root, e.variant && o[e.variant], e.align !== "inherit" && o[`align${m(e.align)}`], e.noWrap && o.noWrap, e.gutterBottom && o.gutterBottom, e.paragraph && o.paragraph];
34
+ }
35
+ })(({
36
+ theme: n,
37
+ ownerState: o
38
+ }) => d({
39
+ margin: 0
40
+ }, o.variant === "inherit" && {
41
+ // Some elements, like <button> on Chrome have default font that doesn't inherit, reset this.
42
+ font: "inherit"
43
+ }, o.variant !== "inherit" && n.typography[o.variant], o.align !== "inherit" && {
44
+ textAlign: o.align
45
+ }, o.noWrap && {
46
+ overflow: "hidden",
47
+ textOverflow: "ellipsis",
48
+ whiteSpace: "nowrap"
49
+ }, o.gutterBottom && {
50
+ marginBottom: "0.35em"
51
+ }, o.paragraph && {
52
+ marginBottom: 16
53
+ })), C = {
54
+ h1: "h1",
55
+ h2: "h2",
56
+ h3: "h3",
57
+ h4: "h4",
58
+ h5: "h5",
59
+ h6: "h6",
60
+ subtitle1: "h6",
61
+ subtitle2: "h6",
62
+ body1: "p",
63
+ body2: "p",
64
+ inherit: "p"
65
+ }, H = {
66
+ primary: "primary.main",
67
+ textPrimary: "text.primary",
68
+ secondary: "secondary.main",
69
+ textSecondary: "text.secondary",
70
+ error: "error.main"
71
+ }, J = (n) => H[n] || n, R = /* @__PURE__ */ T.forwardRef(function(o, e) {
72
+ const a = N({
73
+ props: o,
74
+ name: "MuiTypography"
75
+ }), r = J(a.color), i = U(d({}, a, {
76
+ color: r
77
+ })), {
78
+ align: c = "inherit",
79
+ className: l,
80
+ component: g,
81
+ gutterBottom: v = !1,
82
+ noWrap: u = !1,
83
+ paragraph: y = !1,
84
+ variant: s = "body1",
85
+ variantMapping: h = C
86
+ } = i, f = O(i, V), b = d({}, i, {
87
+ align: c,
88
+ color: r,
89
+ className: l,
90
+ component: g,
91
+ gutterBottom: v,
92
+ noWrap: u,
93
+ paragraph: y,
94
+ variant: s,
95
+ variantMapping: h
96
+ }), j = g || (y ? "p" : h[s] || C[s]) || "span", L = k(b);
97
+ return /* @__PURE__ */ p(q, d({
98
+ as: j,
99
+ ref: e,
100
+ ownerState: b,
101
+ className: A(L.root, l)
102
+ }, f));
103
+ });
104
+ process.env.NODE_ENV !== "production" && (R.propTypes = {
105
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
106
+ // │ These PropTypes are generated from the TypeScript type definitions. │
107
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
108
+ // └─────────────────────────────────────────────────────────────────────┘
109
+ /**
110
+ * Set the text-align on the component.
111
+ * @default 'inherit'
112
+ */
113
+ align: t.oneOf(["center", "inherit", "justify", "left", "right"]),
114
+ /**
115
+ * The content of the component.
116
+ */
117
+ children: t.node,
118
+ /**
119
+ * Override or extend the styles applied to the component.
120
+ */
121
+ classes: t.object,
122
+ /**
123
+ * @ignore
124
+ */
125
+ className: t.string,
126
+ /**
127
+ * The component used for the root node.
128
+ * Either a string to use a HTML element or a component.
129
+ */
130
+ component: t.elementType,
131
+ /**
132
+ * If `true`, the text will have a bottom margin.
133
+ * @default false
134
+ */
135
+ gutterBottom: t.bool,
136
+ /**
137
+ * If `true`, the text will not wrap, but instead will truncate with a text overflow ellipsis.
138
+ *
139
+ * Note that text overflow can only happen with block or inline-block level elements
140
+ * (the element needs to have a width in order to overflow).
141
+ * @default false
142
+ */
143
+ noWrap: t.bool,
144
+ /**
145
+ * If `true`, the element will be a paragraph element.
146
+ * @default false
147
+ */
148
+ paragraph: t.bool,
149
+ /**
150
+ * The system prop that allows defining system overrides as well as additional CSS styles.
151
+ */
152
+ sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
153
+ /**
154
+ * Applies the theme typography styles.
155
+ * @default 'body1'
156
+ */
157
+ variant: t.oneOfType([t.oneOf(["body1", "body2", "button", "caption", "h1", "h2", "h3", "h4", "h5", "h6", "inherit", "overline", "subtitle1", "subtitle2"]), t.string]),
158
+ /**
159
+ * The component maps the variant prop to a range of different HTML element types.
160
+ * For instance, subtitle1 to `<h6>`.
161
+ * If you wish to change that mapping, you can provide your own.
162
+ * Alternatively, you can use the `component` prop.
163
+ * @default {
164
+ * h1: 'h1',
165
+ * h2: 'h2',
166
+ * h3: 'h3',
167
+ * h4: 'h4',
168
+ * h5: 'h5',
169
+ * h6: 'h6',
170
+ * subtitle1: 'h6',
171
+ * subtitle2: 'h6',
172
+ * body1: 'p',
173
+ * body2: 'p',
174
+ * inherit: 'p',
175
+ * }
176
+ */
177
+ variantMapping: t.object
178
+ });
179
+ const G = R;
180
+ function K(n) {
181
+ return I("MuiInputAdornment", n);
182
+ }
183
+ const Q = M("MuiInputAdornment", ["root", "filled", "standard", "outlined", "positionStart", "positionEnd", "disablePointerEvents", "hiddenLabel", "sizeSmall"]), P = Q;
184
+ var E;
185
+ const X = ["children", "className", "component", "disablePointerEvents", "disableTypography", "position", "variant"], Y = (n, o) => {
186
+ const {
187
+ ownerState: e
18
188
  } = n;
19
- return [t.root, t[`position${v(s.position)}`], s.disablePointerEvents === !0 && t.disablePointerEvents, t[s.variant]];
20
- }, V = (n) => {
189
+ return [o.root, o[`position${m(e.position)}`], e.disablePointerEvents === !0 && o.disablePointerEvents, o[e.variant]];
190
+ }, Z = (n) => {
21
191
  const {
22
- classes: t,
23
- disablePointerEvents: s,
192
+ classes: o,
193
+ disablePointerEvents: e,
24
194
  hiddenLabel: a,
25
195
  position: r,
26
- size: l,
27
- variant: p
28
- } = n, d = {
29
- root: ["root", s && "disablePointerEvents", r && `position${v(r)}`, p, a && "hiddenLabel", l && `size${v(l)}`]
196
+ size: i,
197
+ variant: c
198
+ } = n, l = {
199
+ root: ["root", e && "disablePointerEvents", r && `position${m(r)}`, c, a && "hiddenLabel", i && `size${m(i)}`]
30
200
  };
31
- return z(d, U, t);
32
- }, k = I("div", {
201
+ return B(l, K, o);
202
+ }, tt = x("div", {
33
203
  name: "MuiInputAdornment",
34
204
  slot: "Root",
35
- overridesResolver: D
205
+ overridesResolver: Y
36
206
  })(({
37
207
  theme: n,
38
- ownerState: t
39
- }) => m({
208
+ ownerState: o
209
+ }) => d({
40
210
  display: "flex",
41
211
  height: "0.01em",
42
212
  // Fix IE11 flexbox alignment. To remove at some point.
@@ -44,57 +214,57 @@ const B = ["children", "className", "component", "disablePointerEvents", "disabl
44
214
  alignItems: "center",
45
215
  whiteSpace: "nowrap",
46
216
  color: (n.vars || n).palette.action.active
47
- }, t.variant === "filled" && {
217
+ }, o.variant === "filled" && {
48
218
  // Styles applied to the root element if `variant="filled"`.
49
- [`&.${g.positionStart}&:not(.${g.hiddenLabel})`]: {
219
+ [`&.${P.positionStart}&:not(.${P.hiddenLabel})`]: {
50
220
  marginTop: 16
51
221
  }
52
- }, t.position === "start" && {
222
+ }, o.position === "start" && {
53
223
  // Styles applied to the root element if `position="start"`.
54
224
  marginRight: 8
55
- }, t.position === "end" && {
225
+ }, o.position === "end" && {
56
226
  // Styles applied to the root element if `position="end"`.
57
227
  marginLeft: 8
58
- }, t.disablePointerEvents === !0 && {
228
+ }, o.disablePointerEvents === !0 && {
59
229
  // Styles applied to the root element if `disablePointerEvents={true}`.
60
230
  pointerEvents: "none"
61
- })), E = /* @__PURE__ */ b.forwardRef(function(t, s) {
62
- const a = L({
63
- props: t,
231
+ })), $ = /* @__PURE__ */ T.forwardRef(function(o, e) {
232
+ const a = N({
233
+ props: o,
64
234
  name: "MuiInputAdornment"
65
235
  }), {
66
236
  children: r,
67
- className: l,
68
- component: p = "div",
69
- disablePointerEvents: d = !1,
70
- disableTypography: P = !1,
71
- position: h,
72
- variant: c
73
- } = a, x = N(a, B), i = M() || {};
74
- let u = c;
75
- c && i.variant && process.env.NODE_ENV !== "production" && c === i.variant && console.error("MUI: The `InputAdornment` variant infers the variant prop you do not have to provide one."), i && !u && (u = i.variant);
76
- const f = m({}, a, {
77
- hiddenLabel: i.hiddenLabel,
78
- size: i.size,
79
- disablePointerEvents: d,
80
- position: h,
237
+ className: i,
238
+ component: c = "div",
239
+ disablePointerEvents: l = !1,
240
+ disableTypography: g = !1,
241
+ position: v,
81
242
  variant: u
82
- }), C = V(f);
83
- return /* @__PURE__ */ o(O.Provider, {
243
+ } = a, y = O(a, X), s = S() || {};
244
+ let h = u;
245
+ u && s.variant && process.env.NODE_ENV !== "production" && u === s.variant && console.error("MUI: The `InputAdornment` variant infers the variant prop you do not have to provide one."), s && !h && (h = s.variant);
246
+ const f = d({}, a, {
247
+ hiddenLabel: s.hiddenLabel,
248
+ size: s.size,
249
+ disablePointerEvents: l,
250
+ position: v,
251
+ variant: h
252
+ }), b = Z(f);
253
+ return /* @__PURE__ */ p(_.Provider, {
84
254
  value: null,
85
- children: /* @__PURE__ */ o(k, m({
86
- as: p,
255
+ children: /* @__PURE__ */ p(tt, d({
256
+ as: c,
87
257
  ownerState: f,
88
- className: R(C.root, l),
89
- ref: s
90
- }, x, {
91
- children: typeof r == "string" && !P ? /* @__PURE__ */ o($, {
258
+ className: A(b.root, i),
259
+ ref: e
260
+ }, y, {
261
+ children: typeof r == "string" && !g ? /* @__PURE__ */ p(G, {
92
262
  color: "text.secondary",
93
263
  children: r
94
- }) : /* @__PURE__ */ A(b.Fragment, {
95
- children: [h === "start" ? (
264
+ }) : /* @__PURE__ */ W(T.Fragment, {
265
+ children: [v === "start" ? (
96
266
  /* notranslate needed while Google Translate will not fix zero-width space issue */
97
- y || (y = /* @__PURE__ */ o("span", {
267
+ E || (E = /* @__PURE__ */ p("span", {
98
268
  className: "notranslate",
99
269
  children: "​"
100
270
  }))
@@ -103,7 +273,7 @@ const B = ["children", "className", "component", "disablePointerEvents", "disabl
103
273
  }))
104
274
  });
105
275
  });
106
- process.env.NODE_ENV !== "production" && (E.propTypes = {
276
+ process.env.NODE_ENV !== "production" && ($.propTypes = {
107
277
  // ┌────────────────────────────── Warning ──────────────────────────────┐
108
278
  // │ These PropTypes are generated from the TypeScript type definitions. │
109
279
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -111,47 +281,47 @@ process.env.NODE_ENV !== "production" && (E.propTypes = {
111
281
  /**
112
282
  * The content of the component, normally an `IconButton` or string.
113
283
  */
114
- children: e.node,
284
+ children: t.node,
115
285
  /**
116
286
  * Override or extend the styles applied to the component.
117
287
  */
118
- classes: e.object,
288
+ classes: t.object,
119
289
  /**
120
290
  * @ignore
121
291
  */
122
- className: e.string,
292
+ className: t.string,
123
293
  /**
124
294
  * The component used for the root node.
125
295
  * Either a string to use a HTML element or a component.
126
296
  */
127
- component: e.elementType,
297
+ component: t.elementType,
128
298
  /**
129
299
  * Disable pointer events on the root.
130
300
  * This allows for the content of the adornment to focus the `input` on click.
131
301
  * @default false
132
302
  */
133
- disablePointerEvents: e.bool,
303
+ disablePointerEvents: t.bool,
134
304
  /**
135
305
  * If children is a string then disable wrapping in a Typography component.
136
306
  * @default false
137
307
  */
138
- disableTypography: e.bool,
308
+ disableTypography: t.bool,
139
309
  /**
140
310
  * The position this adornment should appear relative to the `Input`.
141
311
  */
142
- position: e.oneOf(["end", "start"]).isRequired,
312
+ position: t.oneOf(["end", "start"]).isRequired,
143
313
  /**
144
314
  * The system prop that allows defining system overrides as well as additional CSS styles.
145
315
  */
146
- sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
316
+ sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
147
317
  /**
148
318
  * The variant to use.
149
319
  * Note: If you are using the `TextField` component or the `FormControl` component
150
320
  * you do not have to set this manually.
151
321
  */
152
- variant: e.oneOf(["filled", "outlined", "standard"])
322
+ variant: t.oneOf(["filled", "outlined", "standard"])
153
323
  });
154
- const q = E, H = I(_)(({ theme: n }) => ({
324
+ const ot = $, nt = x(z)(({ theme: n }) => ({
155
325
  width: "auto",
156
326
  padding: "0px 12px",
157
327
  backgroundColor: n.palette.grey[50],
@@ -159,17 +329,17 @@ const q = E, H = I(_)(({ theme: n }) => ({
159
329
  "& .MuiInputBase-input": {
160
330
  padding: "8px 0px"
161
331
  }
162
- })), X = ({
332
+ })), pt = ({
163
333
  placeholder: n = "Rechercher",
164
- ...t
165
- }) => /* @__PURE__ */ o(
166
- H,
334
+ ...o
335
+ }) => /* @__PURE__ */ p(
336
+ nt,
167
337
  {
168
- ...t,
338
+ ...o,
169
339
  placeholder: n,
170
- startAdornment: /* @__PURE__ */ o(q, { position: "start", disablePointerEvents: !0, children: /* @__PURE__ */ o(F, {}) })
340
+ startAdornment: /* @__PURE__ */ p(ot, { position: "start", disablePointerEvents: !0, children: /* @__PURE__ */ p(w, {}) })
171
341
  }
172
342
  );
173
343
  export {
174
- X as default
344
+ pt as default
175
345
  };