@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.
- package/dist/Button-Tkz5NkF_.cjs +1 -0
- package/dist/Button-X7eWZQfX.js +356 -0
- package/dist/ButtonBase-CKfcGhaU.js +892 -0
- package/dist/ButtonBase-Cg8cBMzO.cjs +75 -0
- package/dist/Input-CAb0EFzc.cjs +1 -0
- package/dist/Input-CbYjsRHK.js +322 -0
- package/dist/{InputBase-C_yPRkam.js → InputBase-B13Nzzhk.js} +215 -193
- package/dist/InputBase-CKlCw9fj.cjs +4 -0
- package/dist/assets/index.css +1 -1
- package/dist/components/AnotherComponent/AnotherComponent.cjs.js +1 -0
- package/dist/components/AnotherComponent/AnotherComponent.d.ts +2 -0
- package/dist/components/AnotherComponent/AnotherComponent.es.js +15 -0
- package/dist/components/AnotherComponent/AnotherComponent.stories.cjs.js +1 -0
- package/dist/components/{Dropzone/Dropzone.stories.d.ts → AnotherComponent/AnotherComponent.stories.d.ts} +2 -1
- package/dist/components/AnotherComponent/AnotherComponent.stories.es.js +22 -0
- package/dist/components/AnotherComponent/index.cjs.js +1 -0
- package/dist/components/AnotherComponent/index.d.ts +2 -0
- package/dist/components/AnotherComponent/index.es.js +4 -0
- package/dist/components/BasicButtons/BasicButtons.cjs.js +1 -0
- package/dist/components/BasicButtons/BasicButtons.d.ts +2 -0
- package/dist/components/BasicButtons/BasicButtons.es.js +189 -0
- package/dist/components/BasicButtons/BasicButtons.stories.cjs.js +1 -0
- package/dist/components/BasicButtons/BasicButtons.stories.d.ts +5 -0
- package/dist/components/BasicButtons/BasicButtons.stories.es.js +22 -0
- package/dist/components/BasicButtons/index.cjs.js +1 -0
- package/dist/components/BasicButtons/index.d.ts +2 -0
- package/dist/components/BasicButtons/index.es.js +4 -0
- package/dist/components/buttons/DefaultButton/DefaultButton.cjs.js +28 -1
- package/dist/components/buttons/DefaultButton/DefaultButton.es.js +267 -408
- package/dist/components/buttons/DefaultButton/DefaultButtonIcon.cjs.js +1 -1
- package/dist/components/buttons/DefaultButton/DefaultButtonIcon.es.js +5 -5
- package/dist/components/buttons/PrimaryButton/PrimaryButton.cjs.js +1 -1
- package/dist/components/buttons/PrimaryButton/PrimaryButton.es.js +1 -1
- package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.cjs.js +1 -1
- package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.d.ts +1 -1
- package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.es.js +7 -8
- package/dist/components/buttons/SecondaryButton/SecondaryButton.cjs.js +1 -1
- package/dist/components/buttons/SecondaryButton/SecondaryButton.es.js +1 -1
- package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.cjs.js +1 -1
- package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.d.ts +1 -1
- package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.es.js +9 -10
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.d.ts +2 -4
- package/dist/components/index.es.js +14 -18
- package/dist/components/inputs/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/inputs/SearchInput/SearchInput.es.js +247 -77
- package/dist/components/inputs/TextInput/TextInput.cjs.js +13 -11
- package/dist/components/inputs/TextInput/TextInput.es.js +1631 -1844
- package/dist/{createSvgIcon-B6bZPuto.cjs → createSvgIcon-jvI3LIfI.cjs} +1 -1
- package/dist/{createSvgIcon-KaSN8JhZ.js → createSvgIcon-qXNZi4k1.js} +8 -8
- package/dist/extendSxProp-BRHiEwyk.js +29 -0
- package/dist/extendSxProp-CvhhU9Vb.cjs +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +12 -16
- package/dist/useForkRef-82uiK71d.cjs +1 -0
- package/dist/useForkRef-CLcOhrzI.js +44 -0
- package/dist/useTheme-BWRyHzdn.js +65 -0
- package/dist/useTheme-BpLcDNG1.cjs +1 -0
- package/dist/{useThemeProps-Dg9Uoq7q.js → useThemeProps-B6yTTpAe.js} +1024 -1018
- package/dist/useThemeProps-CDriK9TK.cjs +65 -0
- package/package.json +1 -2
- package/dist/Box-7uR7JZiM.cjs +0 -1
- package/dist/Box-CPGTKTgx.js +0 -56
- package/dist/ButtonBase-B0tkJ9zf.js +0 -831
- package/dist/ButtonBase-DCL6Xlnm.cjs +0 -75
- package/dist/CircularProgress-CZX5SfKt.cjs +0 -28
- package/dist/CircularProgress-CguDBnxV.js +0 -215
- package/dist/IconButton-CJ1Nt-jf.js +0 -182
- package/dist/IconButton-De7ZdW2q.cjs +0 -2
- package/dist/InputBase-Dvr5GnwD.cjs +0 -4
- package/dist/Tab-Bhm9hCrX.cjs +0 -1
- package/dist/Tab-C4l6V01S.js +0 -237
- package/dist/TransitionGroupContext-C7wWJ6l7.js +0 -14
- package/dist/TransitionGroupContext-g4tmk10h.cjs +0 -1
- package/dist/Typography-CyFLZjnE.js +0 -202
- package/dist/Typography-DwsN2Ttm.cjs +0 -1
- package/dist/components/Dropzone/Dropzone.cjs.js +0 -5
- package/dist/components/Dropzone/Dropzone.d.ts +0 -9
- package/dist/components/Dropzone/Dropzone.es.js +0 -1210
- package/dist/components/Dropzone/Dropzone.stories.cjs.js +0 -1
- package/dist/components/Dropzone/Dropzone.stories.es.js +0 -17
- package/dist/components/Dropzone/index.cjs.js +0 -1
- package/dist/components/Dropzone/index.d.ts +0 -2
- package/dist/components/Dropzone/index.es.js +0 -4
- package/dist/components/buttons/IconButton.stories.cjs.js +0 -1
- package/dist/components/buttons/IconButton.stories.d.ts +0 -4
- package/dist/components/buttons/IconButton.stories.es.js +0 -27
- package/dist/components/inputs/SearchInput/SearchInput.stories.cjs.js +0 -1
- package/dist/components/inputs/SearchInput/SearchInput.stories.d.ts +0 -4
- package/dist/components/inputs/SearchInput/SearchInput.stories.es.js +0 -16
- package/dist/components/inputs/TextInput/TextInput.stories.cjs.js +0 -1
- package/dist/components/inputs/TextInput/TextInput.stories.d.ts +0 -4
- package/dist/components/inputs/TextInput/TextInput.stories.es.js +0 -17
- package/dist/components/lists/FileList/FileList.cjs.js +0 -1
- package/dist/components/lists/FileList/FileList.d.ts +0 -7
- package/dist/components/lists/FileList/FileList.es.js +0 -19
- package/dist/components/lists/FileList/FileList.stories.cjs.js +0 -1
- package/dist/components/lists/FileList/FileList.stories.d.ts +0 -4
- package/dist/components/lists/FileList/FileList.stories.es.js +0 -28
- package/dist/components/lists/FileList/FileListItem.cjs.js +0 -1
- package/dist/components/lists/FileList/FileListItem.d.ts +0 -13
- package/dist/components/lists/FileList/FileListItem.es.js +0 -41
- package/dist/components/lists/FileList/index.cjs.js +0 -1
- package/dist/components/lists/FileList/index.d.ts +0 -4
- package/dist/components/lists/FileList/index.es.js +0 -6
- package/dist/components/lists/TabList.stories.cjs.js +0 -4
- package/dist/components/lists/TabList.stories.d.ts +0 -4
- package/dist/components/lists/TabList.stories.es.js +0 -1027
- package/dist/components/lists/index.cjs.js +0 -1
- package/dist/components/lists/index.d.ts +0 -1
- package/dist/components/lists/index.es.js +0 -6
- package/dist/createSvgIcon-BX8WQ5r-.cjs +0 -2
- package/dist/createSvgIcon-m_wsenOJ.js +0 -84
- package/dist/isHostComponent-PydJW4A4.cjs +0 -1
- package/dist/isHostComponent-kiaBvYVo.js +0 -6
- package/dist/ownerWindow-C7EH1lr6.js +0 -23
- package/dist/ownerWindow-Dk_4aaak.cjs +0 -1
- package/dist/refType-CHSN6ysS.cjs +0 -1
- package/dist/refType-Hh9tfnoF.js +0 -29
- package/dist/unsupportedProp-Bn6XWqwH.cjs +0 -1
- package/dist/unsupportedProp-BuVD30Gh.js +0 -9
- package/dist/useControlled-BsLcOmhe.js +0 -48
- package/dist/useControlled-jN3fqFfv.cjs +0 -3
- package/dist/useForkRef-CGd3Nhyb.cjs +0 -1
- package/dist/useForkRef-DwN_Iz9R.js +0 -17
- package/dist/useIsFocusVisible-BF0lT08B.cjs +0 -1
- package/dist/useIsFocusVisible-D8ksiuhS.js +0 -69
- package/dist/useSlotProps-MoAYME1z.js +0 -70
- package/dist/useSlotProps-R4s13HHI.cjs +0 -1
- package/dist/useTheme-BDPYLOoP.cjs +0 -1
- package/dist/useTheme-DJEDOopE.js +0 -9
- package/dist/useThemeProps-jkB5q9ie.cjs +0 -65
- package/dist/useTimeout-KN97abZR.js +0 -47
- package/dist/useTimeout-qjxkiZZn.cjs +0 -1
|
@@ -1,42 +1,212 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import * as
|
|
3
|
-
import {
|
|
4
|
-
import { u as
|
|
5
|
-
import {
|
|
6
|
-
import { c as
|
|
7
|
-
const
|
|
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
|
|
11
|
-
return
|
|
10
|
+
function D(n) {
|
|
11
|
+
return I("MuiTypography", n);
|
|
12
12
|
}
|
|
13
|
-
|
|
14
|
-
|
|
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
|
-
|
|
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 [
|
|
20
|
-
},
|
|
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:
|
|
23
|
-
disablePointerEvents:
|
|
192
|
+
classes: o,
|
|
193
|
+
disablePointerEvents: e,
|
|
24
194
|
hiddenLabel: a,
|
|
25
195
|
position: r,
|
|
26
|
-
size:
|
|
27
|
-
variant:
|
|
28
|
-
} = n,
|
|
29
|
-
root: ["root",
|
|
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
|
|
32
|
-
},
|
|
201
|
+
return B(l, K, o);
|
|
202
|
+
}, tt = x("div", {
|
|
33
203
|
name: "MuiInputAdornment",
|
|
34
204
|
slot: "Root",
|
|
35
|
-
overridesResolver:
|
|
205
|
+
overridesResolver: Y
|
|
36
206
|
})(({
|
|
37
207
|
theme: n,
|
|
38
|
-
ownerState:
|
|
39
|
-
}) =>
|
|
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
|
-
},
|
|
217
|
+
}, o.variant === "filled" && {
|
|
48
218
|
// Styles applied to the root element if `variant="filled"`.
|
|
49
|
-
[`&.${
|
|
219
|
+
[`&.${P.positionStart}&:not(.${P.hiddenLabel})`]: {
|
|
50
220
|
marginTop: 16
|
|
51
221
|
}
|
|
52
|
-
},
|
|
222
|
+
}, o.position === "start" && {
|
|
53
223
|
// Styles applied to the root element if `position="start"`.
|
|
54
224
|
marginRight: 8
|
|
55
|
-
},
|
|
225
|
+
}, o.position === "end" && {
|
|
56
226
|
// Styles applied to the root element if `position="end"`.
|
|
57
227
|
marginLeft: 8
|
|
58
|
-
},
|
|
228
|
+
}, o.disablePointerEvents === !0 && {
|
|
59
229
|
// Styles applied to the root element if `disablePointerEvents={true}`.
|
|
60
230
|
pointerEvents: "none"
|
|
61
|
-
})),
|
|
62
|
-
const a =
|
|
63
|
-
props:
|
|
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:
|
|
68
|
-
component:
|
|
69
|
-
disablePointerEvents:
|
|
70
|
-
disableTypography:
|
|
71
|
-
position:
|
|
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
|
-
}),
|
|
83
|
-
|
|
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__ */
|
|
86
|
-
as:
|
|
255
|
+
children: /* @__PURE__ */ p(tt, d({
|
|
256
|
+
as: c,
|
|
87
257
|
ownerState: f,
|
|
88
|
-
className:
|
|
89
|
-
ref:
|
|
90
|
-
},
|
|
91
|
-
children: typeof r == "string" && !
|
|
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__ */
|
|
95
|
-
children: [
|
|
264
|
+
}) : /* @__PURE__ */ W(T.Fragment, {
|
|
265
|
+
children: [v === "start" ? (
|
|
96
266
|
/* notranslate needed while Google Translate will not fix zero-width space issue */
|
|
97
|
-
|
|
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" && (
|
|
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:
|
|
284
|
+
children: t.node,
|
|
115
285
|
/**
|
|
116
286
|
* Override or extend the styles applied to the component.
|
|
117
287
|
*/
|
|
118
|
-
classes:
|
|
288
|
+
classes: t.object,
|
|
119
289
|
/**
|
|
120
290
|
* @ignore
|
|
121
291
|
*/
|
|
122
|
-
className:
|
|
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:
|
|
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:
|
|
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:
|
|
308
|
+
disableTypography: t.bool,
|
|
139
309
|
/**
|
|
140
310
|
* The position this adornment should appear relative to the `Input`.
|
|
141
311
|
*/
|
|
142
|
-
position:
|
|
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:
|
|
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:
|
|
322
|
+
variant: t.oneOf(["filled", "outlined", "standard"])
|
|
153
323
|
});
|
|
154
|
-
const
|
|
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
|
-
})),
|
|
332
|
+
})), pt = ({
|
|
163
333
|
placeholder: n = "Rechercher",
|
|
164
|
-
...
|
|
165
|
-
}) => /* @__PURE__ */
|
|
166
|
-
|
|
334
|
+
...o
|
|
335
|
+
}) => /* @__PURE__ */ p(
|
|
336
|
+
nt,
|
|
167
337
|
{
|
|
168
|
-
...
|
|
338
|
+
...o,
|
|
169
339
|
placeholder: n,
|
|
170
|
-
startAdornment: /* @__PURE__ */
|
|
340
|
+
startAdornment: /* @__PURE__ */ p(ot, { position: "start", disablePointerEvents: !0, children: /* @__PURE__ */ p(w, {}) })
|
|
171
341
|
}
|
|
172
342
|
);
|
|
173
343
|
export {
|
|
174
|
-
|
|
344
|
+
pt as default
|
|
175
345
|
};
|