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

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/Box-7uR7JZiM.cjs +1 -0
  2. package/dist/Box-CPGTKTgx.js +56 -0
  3. package/dist/ButtonBase-B0tkJ9zf.js +831 -0
  4. package/dist/ButtonBase-DCL6Xlnm.cjs +75 -0
  5. package/dist/CircularProgress-CZX5SfKt.cjs +28 -0
  6. package/dist/CircularProgress-CguDBnxV.js +215 -0
  7. package/dist/IconButton-CJ1Nt-jf.js +182 -0
  8. package/dist/IconButton-De7ZdW2q.cjs +2 -0
  9. package/dist/{InputBase-B13Nzzhk.js → InputBase-C_yPRkam.js} +193 -215
  10. package/dist/InputBase-Dvr5GnwD.cjs +4 -0
  11. package/dist/Tab-Bhm9hCrX.cjs +1 -0
  12. package/dist/Tab-C4l6V01S.js +237 -0
  13. package/dist/TransitionGroupContext-C7wWJ6l7.js +14 -0
  14. package/dist/TransitionGroupContext-g4tmk10h.cjs +1 -0
  15. package/dist/Typography-CyFLZjnE.js +202 -0
  16. package/dist/Typography-DwsN2Ttm.cjs +1 -0
  17. package/dist/assets/index.css +1 -1
  18. package/dist/components/Dropzone/Dropzone.cjs.js +5 -0
  19. package/dist/components/Dropzone/Dropzone.d.ts +9 -0
  20. package/dist/components/Dropzone/Dropzone.es.js +1210 -0
  21. package/dist/components/Dropzone/Dropzone.stories.cjs.js +1 -0
  22. package/dist/components/{AnotherComponent/AnotherComponent.stories.d.ts → Dropzone/Dropzone.stories.d.ts} +1 -2
  23. package/dist/components/Dropzone/Dropzone.stories.es.js +17 -0
  24. package/dist/components/Dropzone/index.cjs.js +1 -0
  25. package/dist/components/Dropzone/index.d.ts +2 -0
  26. package/dist/components/Dropzone/index.es.js +4 -0
  27. package/dist/components/buttons/DefaultButton/DefaultButton.cjs.js +1 -28
  28. package/dist/components/buttons/DefaultButton/DefaultButton.es.js +408 -267
  29. package/dist/components/buttons/DefaultButton/DefaultButtonIcon.cjs.js +1 -1
  30. package/dist/components/buttons/DefaultButton/DefaultButtonIcon.es.js +5 -5
  31. package/dist/components/buttons/IconButton.stories.cjs.js +1 -0
  32. package/dist/components/buttons/IconButton.stories.d.ts +4 -0
  33. package/dist/components/buttons/IconButton.stories.es.js +27 -0
  34. package/dist/components/buttons/PrimaryButton/PrimaryButton.cjs.js +1 -1
  35. package/dist/components/buttons/PrimaryButton/PrimaryButton.es.js +1 -1
  36. package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.cjs.js +1 -1
  37. package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.d.ts +1 -1
  38. package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.es.js +8 -7
  39. package/dist/components/buttons/SecondaryButton/SecondaryButton.cjs.js +1 -1
  40. package/dist/components/buttons/SecondaryButton/SecondaryButton.es.js +1 -1
  41. package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.cjs.js +1 -1
  42. package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.d.ts +1 -1
  43. package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.es.js +10 -9
  44. package/dist/components/index.cjs.js +1 -1
  45. package/dist/components/index.d.ts +4 -2
  46. package/dist/components/index.es.js +18 -14
  47. package/dist/components/inputs/SearchInput/SearchInput.cjs.js +1 -1
  48. package/dist/components/inputs/SearchInput/SearchInput.es.js +77 -247
  49. package/dist/components/inputs/SearchInput/SearchInput.stories.cjs.js +1 -0
  50. package/dist/components/inputs/SearchInput/SearchInput.stories.d.ts +4 -0
  51. package/dist/components/inputs/SearchInput/SearchInput.stories.es.js +16 -0
  52. package/dist/components/inputs/TextInput/TextInput.cjs.js +11 -13
  53. package/dist/components/inputs/TextInput/TextInput.es.js +1844 -1631
  54. package/dist/components/inputs/TextInput/TextInput.stories.cjs.js +1 -0
  55. package/dist/components/inputs/TextInput/TextInput.stories.d.ts +4 -0
  56. package/dist/components/inputs/TextInput/TextInput.stories.es.js +17 -0
  57. package/dist/components/lists/FileList/FileList.cjs.js +1 -0
  58. package/dist/components/lists/FileList/FileList.d.ts +7 -0
  59. package/dist/components/lists/FileList/FileList.es.js +19 -0
  60. package/dist/components/lists/FileList/FileList.stories.cjs.js +1 -0
  61. package/dist/components/lists/FileList/FileList.stories.d.ts +4 -0
  62. package/dist/components/lists/FileList/FileList.stories.es.js +28 -0
  63. package/dist/components/lists/FileList/FileListItem.cjs.js +1 -0
  64. package/dist/components/lists/FileList/FileListItem.d.ts +13 -0
  65. package/dist/components/lists/FileList/FileListItem.es.js +41 -0
  66. package/dist/components/lists/FileList/index.cjs.js +1 -0
  67. package/dist/components/lists/FileList/index.d.ts +4 -0
  68. package/dist/components/lists/FileList/index.es.js +6 -0
  69. package/dist/components/lists/TabList.stories.cjs.js +4 -0
  70. package/dist/components/lists/TabList.stories.d.ts +4 -0
  71. package/dist/components/lists/TabList.stories.es.js +1027 -0
  72. package/dist/components/lists/index.cjs.js +1 -0
  73. package/dist/components/lists/index.d.ts +1 -0
  74. package/dist/components/lists/index.es.js +6 -0
  75. package/dist/{createSvgIcon-jvI3LIfI.cjs → createSvgIcon-B6bZPuto.cjs} +1 -1
  76. package/dist/createSvgIcon-BX8WQ5r-.cjs +2 -0
  77. package/dist/{createSvgIcon-qXNZi4k1.js → createSvgIcon-KaSN8JhZ.js} +8 -8
  78. package/dist/createSvgIcon-m_wsenOJ.js +84 -0
  79. package/dist/index.cjs.js +1 -1
  80. package/dist/index.es.js +16 -12
  81. package/dist/isHostComponent-PydJW4A4.cjs +1 -0
  82. package/dist/isHostComponent-kiaBvYVo.js +6 -0
  83. package/dist/ownerWindow-C7EH1lr6.js +23 -0
  84. package/dist/ownerWindow-Dk_4aaak.cjs +1 -0
  85. package/dist/refType-CHSN6ysS.cjs +1 -0
  86. package/dist/refType-Hh9tfnoF.js +29 -0
  87. package/dist/unsupportedProp-Bn6XWqwH.cjs +1 -0
  88. package/dist/unsupportedProp-BuVD30Gh.js +9 -0
  89. package/dist/useControlled-BsLcOmhe.js +48 -0
  90. package/dist/useControlled-jN3fqFfv.cjs +3 -0
  91. package/dist/useForkRef-CGd3Nhyb.cjs +1 -0
  92. package/dist/useForkRef-DwN_Iz9R.js +17 -0
  93. package/dist/useIsFocusVisible-BF0lT08B.cjs +1 -0
  94. package/dist/useIsFocusVisible-D8ksiuhS.js +69 -0
  95. package/dist/useSlotProps-MoAYME1z.js +70 -0
  96. package/dist/useSlotProps-R4s13HHI.cjs +1 -0
  97. package/dist/useTheme-BDPYLOoP.cjs +1 -0
  98. package/dist/useTheme-DJEDOopE.js +9 -0
  99. package/dist/{useThemeProps-B6yTTpAe.js → useThemeProps-Dg9Uoq7q.js} +1018 -1024
  100. package/dist/useThemeProps-jkB5q9ie.cjs +65 -0
  101. package/dist/useTimeout-KN97abZR.js +47 -0
  102. package/dist/useTimeout-qjxkiZZn.cjs +1 -0
  103. package/package.json +2 -1
  104. package/dist/Button-Tkz5NkF_.cjs +0 -1
  105. package/dist/Button-X7eWZQfX.js +0 -356
  106. package/dist/ButtonBase-CKfcGhaU.js +0 -892
  107. package/dist/ButtonBase-Cg8cBMzO.cjs +0 -75
  108. package/dist/Input-CAb0EFzc.cjs +0 -1
  109. package/dist/Input-CbYjsRHK.js +0 -322
  110. package/dist/InputBase-CKlCw9fj.cjs +0 -4
  111. package/dist/components/AnotherComponent/AnotherComponent.cjs.js +0 -1
  112. package/dist/components/AnotherComponent/AnotherComponent.d.ts +0 -2
  113. package/dist/components/AnotherComponent/AnotherComponent.es.js +0 -15
  114. package/dist/components/AnotherComponent/AnotherComponent.stories.cjs.js +0 -1
  115. package/dist/components/AnotherComponent/AnotherComponent.stories.es.js +0 -22
  116. package/dist/components/AnotherComponent/index.cjs.js +0 -1
  117. package/dist/components/AnotherComponent/index.d.ts +0 -2
  118. package/dist/components/AnotherComponent/index.es.js +0 -4
  119. package/dist/components/BasicButtons/BasicButtons.cjs.js +0 -1
  120. package/dist/components/BasicButtons/BasicButtons.d.ts +0 -2
  121. package/dist/components/BasicButtons/BasicButtons.es.js +0 -189
  122. package/dist/components/BasicButtons/BasicButtons.stories.cjs.js +0 -1
  123. package/dist/components/BasicButtons/BasicButtons.stories.d.ts +0 -5
  124. package/dist/components/BasicButtons/BasicButtons.stories.es.js +0 -22
  125. package/dist/components/BasicButtons/index.cjs.js +0 -1
  126. package/dist/components/BasicButtons/index.d.ts +0 -2
  127. package/dist/components/BasicButtons/index.es.js +0 -4
  128. package/dist/extendSxProp-BRHiEwyk.js +0 -29
  129. package/dist/extendSxProp-CvhhU9Vb.cjs +0 -1
  130. package/dist/useForkRef-82uiK71d.cjs +0 -1
  131. package/dist/useForkRef-CLcOhrzI.js +0 -44
  132. package/dist/useTheme-BWRyHzdn.js +0 -65
  133. package/dist/useTheme-BpLcDNG1.cjs +0 -1
  134. package/dist/useThemeProps-CDriK9TK.cjs +0 -65
@@ -1,212 +1,42 @@
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", {
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", {
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 D(n) {
11
- return I("MuiTypography", n);
10
+ function U(n) {
11
+ return S("MuiInputAdornment", n);
12
12
  }
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) => {
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) => {
15
16
  const {
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
17
+ ownerState: s
188
18
  } = n;
189
- return [o.root, o[`position${m(e.position)}`], e.disablePointerEvents === !0 && o.disablePointerEvents, o[e.variant]];
190
- }, Z = (n) => {
19
+ return [t.root, t[`position${v(s.position)}`], s.disablePointerEvents === !0 && t.disablePointerEvents, t[s.variant]];
20
+ }, V = (n) => {
191
21
  const {
192
- classes: o,
193
- disablePointerEvents: e,
22
+ classes: t,
23
+ disablePointerEvents: s,
194
24
  hiddenLabel: a,
195
25
  position: r,
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)}`]
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)}`]
200
30
  };
201
- return B(l, K, o);
202
- }, tt = x("div", {
31
+ return z(d, U, t);
32
+ }, k = I("div", {
203
33
  name: "MuiInputAdornment",
204
34
  slot: "Root",
205
- overridesResolver: Y
35
+ overridesResolver: D
206
36
  })(({
207
37
  theme: n,
208
- ownerState: o
209
- }) => d({
38
+ ownerState: t
39
+ }) => m({
210
40
  display: "flex",
211
41
  height: "0.01em",
212
42
  // Fix IE11 flexbox alignment. To remove at some point.
@@ -214,57 +44,57 @@ const X = ["children", "className", "component", "disablePointerEvents", "disabl
214
44
  alignItems: "center",
215
45
  whiteSpace: "nowrap",
216
46
  color: (n.vars || n).palette.action.active
217
- }, o.variant === "filled" && {
47
+ }, t.variant === "filled" && {
218
48
  // Styles applied to the root element if `variant="filled"`.
219
- [`&.${P.positionStart}&:not(.${P.hiddenLabel})`]: {
49
+ [`&.${g.positionStart}&:not(.${g.hiddenLabel})`]: {
220
50
  marginTop: 16
221
51
  }
222
- }, o.position === "start" && {
52
+ }, t.position === "start" && {
223
53
  // Styles applied to the root element if `position="start"`.
224
54
  marginRight: 8
225
- }, o.position === "end" && {
55
+ }, t.position === "end" && {
226
56
  // Styles applied to the root element if `position="end"`.
227
57
  marginLeft: 8
228
- }, o.disablePointerEvents === !0 && {
58
+ }, t.disablePointerEvents === !0 && {
229
59
  // Styles applied to the root element if `disablePointerEvents={true}`.
230
60
  pointerEvents: "none"
231
- })), $ = /* @__PURE__ */ T.forwardRef(function(o, e) {
232
- const a = N({
233
- props: o,
61
+ })), E = /* @__PURE__ */ b.forwardRef(function(t, s) {
62
+ const a = L({
63
+ props: t,
234
64
  name: "MuiInputAdornment"
235
65
  }), {
236
66
  children: r,
237
- className: i,
238
- component: c = "div",
239
- disablePointerEvents: l = !1,
240
- disableTypography: g = !1,
241
- position: v,
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,
242
81
  variant: u
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, {
82
+ }), C = V(f);
83
+ return /* @__PURE__ */ o(O.Provider, {
254
84
  value: null,
255
- children: /* @__PURE__ */ p(tt, d({
256
- as: c,
85
+ children: /* @__PURE__ */ o(k, m({
86
+ as: p,
257
87
  ownerState: f,
258
- className: A(b.root, i),
259
- ref: e
260
- }, y, {
261
- children: typeof r == "string" && !g ? /* @__PURE__ */ p(G, {
88
+ className: R(C.root, l),
89
+ ref: s
90
+ }, x, {
91
+ children: typeof r == "string" && !P ? /* @__PURE__ */ o($, {
262
92
  color: "text.secondary",
263
93
  children: r
264
- }) : /* @__PURE__ */ W(T.Fragment, {
265
- children: [v === "start" ? (
94
+ }) : /* @__PURE__ */ A(b.Fragment, {
95
+ children: [h === "start" ? (
266
96
  /* notranslate needed while Google Translate will not fix zero-width space issue */
267
- E || (E = /* @__PURE__ */ p("span", {
97
+ y || (y = /* @__PURE__ */ o("span", {
268
98
  className: "notranslate",
269
99
  children: "​"
270
100
  }))
@@ -273,7 +103,7 @@ const X = ["children", "className", "component", "disablePointerEvents", "disabl
273
103
  }))
274
104
  });
275
105
  });
276
- process.env.NODE_ENV !== "production" && ($.propTypes = {
106
+ process.env.NODE_ENV !== "production" && (E.propTypes = {
277
107
  // ┌────────────────────────────── Warning ──────────────────────────────┐
278
108
  // │ These PropTypes are generated from the TypeScript type definitions. │
279
109
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -281,47 +111,47 @@ process.env.NODE_ENV !== "production" && ($.propTypes = {
281
111
  /**
282
112
  * The content of the component, normally an `IconButton` or string.
283
113
  */
284
- children: t.node,
114
+ children: e.node,
285
115
  /**
286
116
  * Override or extend the styles applied to the component.
287
117
  */
288
- classes: t.object,
118
+ classes: e.object,
289
119
  /**
290
120
  * @ignore
291
121
  */
292
- className: t.string,
122
+ className: e.string,
293
123
  /**
294
124
  * The component used for the root node.
295
125
  * Either a string to use a HTML element or a component.
296
126
  */
297
- component: t.elementType,
127
+ component: e.elementType,
298
128
  /**
299
129
  * Disable pointer events on the root.
300
130
  * This allows for the content of the adornment to focus the `input` on click.
301
131
  * @default false
302
132
  */
303
- disablePointerEvents: t.bool,
133
+ disablePointerEvents: e.bool,
304
134
  /**
305
135
  * If children is a string then disable wrapping in a Typography component.
306
136
  * @default false
307
137
  */
308
- disableTypography: t.bool,
138
+ disableTypography: e.bool,
309
139
  /**
310
140
  * The position this adornment should appear relative to the `Input`.
311
141
  */
312
- position: t.oneOf(["end", "start"]).isRequired,
142
+ position: e.oneOf(["end", "start"]).isRequired,
313
143
  /**
314
144
  * The system prop that allows defining system overrides as well as additional CSS styles.
315
145
  */
316
- sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
146
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
317
147
  /**
318
148
  * The variant to use.
319
149
  * Note: If you are using the `TextField` component or the `FormControl` component
320
150
  * you do not have to set this manually.
321
151
  */
322
- variant: t.oneOf(["filled", "outlined", "standard"])
152
+ variant: e.oneOf(["filled", "outlined", "standard"])
323
153
  });
324
- const ot = $, nt = x(z)(({ theme: n }) => ({
154
+ const q = E, H = I(_)(({ theme: n }) => ({
325
155
  width: "auto",
326
156
  padding: "0px 12px",
327
157
  backgroundColor: n.palette.grey[50],
@@ -329,17 +159,17 @@ const ot = $, nt = x(z)(({ theme: n }) => ({
329
159
  "& .MuiInputBase-input": {
330
160
  padding: "8px 0px"
331
161
  }
332
- })), pt = ({
162
+ })), X = ({
333
163
  placeholder: n = "Rechercher",
334
- ...o
335
- }) => /* @__PURE__ */ p(
336
- nt,
164
+ ...t
165
+ }) => /* @__PURE__ */ o(
166
+ H,
337
167
  {
338
- ...o,
168
+ ...t,
339
169
  placeholder: n,
340
- startAdornment: /* @__PURE__ */ p(ot, { position: "start", disablePointerEvents: !0, children: /* @__PURE__ */ p(w, {}) })
170
+ startAdornment: /* @__PURE__ */ o(q, { position: "start", disablePointerEvents: !0, children: /* @__PURE__ */ o(F, {}) })
341
171
  }
342
172
  );
343
173
  export {
344
- pt as default
174
+ X as default
345
175
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("react/jsx-runtime"),e=require("./SearchInput.cjs.js"),o={title:"Components/Inputs/SearchInput",component:e,argTypes:{}},s=r=>n.jsx(e,{...r}),t=s.bind({});t.args={placeholder:"Rechercher"};exports.Default=t;exports.default=o;
@@ -0,0 +1,4 @@
1
+ import { Meta, StoryFn } from "@storybook/react";
2
+ declare const stories: Meta<StoryFn<any>>;
3
+ export declare const Default: any;
4
+ export default stories;
@@ -0,0 +1,16 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import e from "./SearchInput.es.js";
3
+ const a = {
4
+ title: "Components/Inputs/SearchInput",
5
+ component: e,
6
+ argTypes: {
7
+ // Définissez ici vos paramètres d'histoires spécifiques aux arguments (args).
8
+ }
9
+ }, r = (t) => /* @__PURE__ */ o(e, { ...t }), n = r.bind({});
10
+ n.args = {
11
+ placeholder: "Rechercher"
12
+ };
13
+ export {
14
+ n as Default,
15
+ a as default
16
+ };