@cgi-learning-hub/ui 0.0.1-dev.1708990372 → 0.0.1-dev.1709027888
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/Box-7uR7JZiM.cjs +1 -0
- package/dist/Box-CPGTKTgx.js +56 -0
- package/dist/ButtonBase-B0tkJ9zf.js +831 -0
- package/dist/ButtonBase-DCL6Xlnm.cjs +75 -0
- package/dist/CircularProgress-CZX5SfKt.cjs +28 -0
- package/dist/CircularProgress-CguDBnxV.js +215 -0
- package/dist/IconButton-CJ1Nt-jf.js +182 -0
- package/dist/IconButton-De7ZdW2q.cjs +2 -0
- package/dist/{InputBase-B13Nzzhk.js → InputBase-C_yPRkam.js} +193 -215
- package/dist/InputBase-Dvr5GnwD.cjs +4 -0
- package/dist/Tab-Bhm9hCrX.cjs +1 -0
- package/dist/Tab-C4l6V01S.js +237 -0
- package/dist/TransitionGroupContext-C7wWJ6l7.js +14 -0
- package/dist/TransitionGroupContext-g4tmk10h.cjs +1 -0
- package/dist/Typography-CyFLZjnE.js +202 -0
- package/dist/Typography-DwsN2Ttm.cjs +1 -0
- package/dist/assets/index.css +1 -1
- package/dist/components/Dropzone/Dropzone.cjs.js +5 -0
- package/dist/components/Dropzone/Dropzone.d.ts +11 -0
- package/dist/components/Dropzone/Dropzone.es.js +1215 -0
- package/dist/components/Dropzone/Dropzone.stories.cjs.js +1 -0
- package/dist/components/{AnotherComponent/AnotherComponent.stories.d.ts → Dropzone/Dropzone.stories.d.ts} +1 -2
- package/dist/components/Dropzone/Dropzone.stories.es.js +17 -0
- package/dist/components/Dropzone/index.cjs.js +1 -0
- package/dist/components/Dropzone/index.d.ts +2 -0
- package/dist/components/Dropzone/index.es.js +4 -0
- package/dist/components/buttons/DefaultButton/DefaultButton.cjs.js +1 -28
- package/dist/components/buttons/DefaultButton/DefaultButton.es.js +408 -267
- package/dist/components/buttons/DefaultButton/DefaultButtonIcon.cjs.js +1 -1
- package/dist/components/buttons/DefaultButton/DefaultButtonIcon.es.js +5 -5
- package/dist/components/buttons/IconButton.stories.cjs.js +1 -0
- package/dist/components/buttons/IconButton.stories.d.ts +4 -0
- package/dist/components/buttons/IconButton.stories.es.js +27 -0
- 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 +8 -7
- 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 +10 -9
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.d.ts +4 -2
- package/dist/components/index.es.js +18 -14
- package/dist/components/inputs/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/inputs/SearchInput/SearchInput.es.js +77 -247
- package/dist/components/inputs/SearchInput/SearchInput.stories.cjs.js +1 -0
- package/dist/components/inputs/SearchInput/SearchInput.stories.d.ts +4 -0
- package/dist/components/inputs/SearchInput/SearchInput.stories.es.js +16 -0
- package/dist/components/inputs/TextInput/TextInput.cjs.js +11 -13
- package/dist/components/inputs/TextInput/TextInput.es.js +1844 -1631
- package/dist/components/inputs/TextInput/TextInput.stories.cjs.js +1 -0
- package/dist/components/inputs/TextInput/TextInput.stories.d.ts +4 -0
- package/dist/components/inputs/TextInput/TextInput.stories.es.js +17 -0
- package/dist/components/lists/FileList/FileList.cjs.js +1 -0
- package/dist/components/lists/FileList/FileList.d.ts +7 -0
- package/dist/components/lists/FileList/FileList.es.js +19 -0
- package/dist/components/lists/FileList/FileList.stories.cjs.js +1 -0
- package/dist/components/lists/FileList/FileList.stories.d.ts +4 -0
- package/dist/components/lists/FileList/FileList.stories.es.js +28 -0
- package/dist/components/lists/FileList/FileListItem.cjs.js +1 -0
- package/dist/components/lists/FileList/FileListItem.d.ts +13 -0
- package/dist/components/lists/FileList/FileListItem.es.js +41 -0
- package/dist/components/lists/FileList/index.cjs.js +1 -0
- package/dist/components/lists/FileList/index.d.ts +4 -0
- package/dist/components/lists/FileList/index.es.js +6 -0
- package/dist/components/lists/TabList.stories.cjs.js +4 -0
- package/dist/components/lists/TabList.stories.d.ts +4 -0
- package/dist/components/lists/TabList.stories.es.js +1027 -0
- package/dist/components/lists/index.cjs.js +1 -0
- package/dist/components/lists/index.d.ts +1 -0
- package/dist/components/lists/index.es.js +6 -0
- package/dist/{createSvgIcon-jvI3LIfI.cjs → createSvgIcon-B6bZPuto.cjs} +1 -1
- package/dist/createSvgIcon-BX8WQ5r-.cjs +2 -0
- package/dist/{createSvgIcon-qXNZi4k1.js → createSvgIcon-KaSN8JhZ.js} +8 -8
- package/dist/createSvgIcon-m_wsenOJ.js +84 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +16 -12
- package/dist/isHostComponent-PydJW4A4.cjs +1 -0
- package/dist/isHostComponent-kiaBvYVo.js +6 -0
- package/dist/ownerWindow-C7EH1lr6.js +23 -0
- package/dist/ownerWindow-Dk_4aaak.cjs +1 -0
- package/dist/refType-CHSN6ysS.cjs +1 -0
- package/dist/refType-Hh9tfnoF.js +29 -0
- package/dist/unsupportedProp-Bn6XWqwH.cjs +1 -0
- package/dist/unsupportedProp-BuVD30Gh.js +9 -0
- package/dist/useControlled-BsLcOmhe.js +48 -0
- package/dist/useControlled-jN3fqFfv.cjs +3 -0
- package/dist/useForkRef-CGd3Nhyb.cjs +1 -0
- package/dist/useForkRef-DwN_Iz9R.js +17 -0
- package/dist/useIsFocusVisible-BF0lT08B.cjs +1 -0
- package/dist/useIsFocusVisible-D8ksiuhS.js +69 -0
- package/dist/useSlotProps-MoAYME1z.js +70 -0
- package/dist/useSlotProps-R4s13HHI.cjs +1 -0
- package/dist/useTheme-BDPYLOoP.cjs +1 -0
- package/dist/useTheme-DJEDOopE.js +9 -0
- package/dist/{useThemeProps-B6yTTpAe.js → useThemeProps-Dg9Uoq7q.js} +1018 -1024
- package/dist/useThemeProps-jkB5q9ie.cjs +65 -0
- package/dist/useTimeout-KN97abZR.js +47 -0
- package/dist/useTimeout-qjxkiZZn.cjs +1 -0
- package/package.json +2 -1
- package/dist/Button-Tkz5NkF_.cjs +0 -1
- package/dist/Button-X7eWZQfX.js +0 -356
- package/dist/ButtonBase-CKfcGhaU.js +0 -892
- package/dist/ButtonBase-Cg8cBMzO.cjs +0 -75
- package/dist/Input-CAb0EFzc.cjs +0 -1
- package/dist/Input-CbYjsRHK.js +0 -322
- package/dist/InputBase-CKlCw9fj.cjs +0 -4
- package/dist/components/AnotherComponent/AnotherComponent.cjs.js +0 -1
- package/dist/components/AnotherComponent/AnotherComponent.d.ts +0 -2
- package/dist/components/AnotherComponent/AnotherComponent.es.js +0 -15
- package/dist/components/AnotherComponent/AnotherComponent.stories.cjs.js +0 -1
- package/dist/components/AnotherComponent/AnotherComponent.stories.es.js +0 -22
- package/dist/components/AnotherComponent/index.cjs.js +0 -1
- package/dist/components/AnotherComponent/index.d.ts +0 -2
- package/dist/components/AnotherComponent/index.es.js +0 -4
- package/dist/components/BasicButtons/BasicButtons.cjs.js +0 -1
- package/dist/components/BasicButtons/BasicButtons.d.ts +0 -2
- package/dist/components/BasicButtons/BasicButtons.es.js +0 -189
- package/dist/components/BasicButtons/BasicButtons.stories.cjs.js +0 -1
- package/dist/components/BasicButtons/BasicButtons.stories.d.ts +0 -5
- package/dist/components/BasicButtons/BasicButtons.stories.es.js +0 -22
- package/dist/components/BasicButtons/index.cjs.js +0 -1
- package/dist/components/BasicButtons/index.d.ts +0 -2
- package/dist/components/BasicButtons/index.es.js +0 -4
- package/dist/extendSxProp-BRHiEwyk.js +0 -29
- package/dist/extendSxProp-CvhhU9Vb.cjs +0 -1
- package/dist/useForkRef-82uiK71d.cjs +0 -1
- package/dist/useForkRef-CLcOhrzI.js +0 -44
- package/dist/useTheme-BWRyHzdn.js +0 -65
- package/dist/useTheme-BpLcDNG1.cjs +0 -1
- package/dist/useThemeProps-CDriK9TK.cjs +0 -65
|
@@ -1,212 +1,42 @@
|
|
|
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 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
|
|
11
|
-
return
|
|
10
|
+
function U(n) {
|
|
11
|
+
return S("MuiInputAdornment", n);
|
|
12
12
|
}
|
|
13
|
-
|
|
14
|
-
|
|
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
|
-
|
|
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 [
|
|
190
|
-
},
|
|
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:
|
|
193
|
-
disablePointerEvents:
|
|
22
|
+
classes: t,
|
|
23
|
+
disablePointerEvents: s,
|
|
194
24
|
hiddenLabel: a,
|
|
195
25
|
position: r,
|
|
196
|
-
size:
|
|
197
|
-
variant:
|
|
198
|
-
} = n,
|
|
199
|
-
root: ["root",
|
|
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
|
|
202
|
-
},
|
|
31
|
+
return z(d, U, t);
|
|
32
|
+
}, k = I("div", {
|
|
203
33
|
name: "MuiInputAdornment",
|
|
204
34
|
slot: "Root",
|
|
205
|
-
overridesResolver:
|
|
35
|
+
overridesResolver: D
|
|
206
36
|
})(({
|
|
207
37
|
theme: n,
|
|
208
|
-
ownerState:
|
|
209
|
-
}) =>
|
|
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
|
-
},
|
|
47
|
+
}, t.variant === "filled" && {
|
|
218
48
|
// Styles applied to the root element if `variant="filled"`.
|
|
219
|
-
[`&.${
|
|
49
|
+
[`&.${g.positionStart}&:not(.${g.hiddenLabel})`]: {
|
|
220
50
|
marginTop: 16
|
|
221
51
|
}
|
|
222
|
-
},
|
|
52
|
+
}, t.position === "start" && {
|
|
223
53
|
// Styles applied to the root element if `position="start"`.
|
|
224
54
|
marginRight: 8
|
|
225
|
-
},
|
|
55
|
+
}, t.position === "end" && {
|
|
226
56
|
// Styles applied to the root element if `position="end"`.
|
|
227
57
|
marginLeft: 8
|
|
228
|
-
},
|
|
58
|
+
}, t.disablePointerEvents === !0 && {
|
|
229
59
|
// Styles applied to the root element if `disablePointerEvents={true}`.
|
|
230
60
|
pointerEvents: "none"
|
|
231
|
-
})),
|
|
232
|
-
const a =
|
|
233
|
-
props:
|
|
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:
|
|
238
|
-
component:
|
|
239
|
-
disablePointerEvents:
|
|
240
|
-
disableTypography:
|
|
241
|
-
position:
|
|
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
|
-
}
|
|
244
|
-
|
|
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__ */
|
|
256
|
-
as:
|
|
85
|
+
children: /* @__PURE__ */ o(k, m({
|
|
86
|
+
as: p,
|
|
257
87
|
ownerState: f,
|
|
258
|
-
className:
|
|
259
|
-
ref:
|
|
260
|
-
},
|
|
261
|
-
children: typeof r == "string" && !
|
|
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__ */
|
|
265
|
-
children: [
|
|
94
|
+
}) : /* @__PURE__ */ A(b.Fragment, {
|
|
95
|
+
children: [h === "start" ? (
|
|
266
96
|
/* notranslate needed while Google Translate will not fix zero-width space issue */
|
|
267
|
-
|
|
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" && (
|
|
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:
|
|
114
|
+
children: e.node,
|
|
285
115
|
/**
|
|
286
116
|
* Override or extend the styles applied to the component.
|
|
287
117
|
*/
|
|
288
|
-
classes:
|
|
118
|
+
classes: e.object,
|
|
289
119
|
/**
|
|
290
120
|
* @ignore
|
|
291
121
|
*/
|
|
292
|
-
className:
|
|
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:
|
|
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:
|
|
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:
|
|
138
|
+
disableTypography: e.bool,
|
|
309
139
|
/**
|
|
310
140
|
* The position this adornment should appear relative to the `Input`.
|
|
311
141
|
*/
|
|
312
|
-
position:
|
|
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:
|
|
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:
|
|
152
|
+
variant: e.oneOf(["filled", "outlined", "standard"])
|
|
323
153
|
});
|
|
324
|
-
const
|
|
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
|
-
})),
|
|
162
|
+
})), X = ({
|
|
333
163
|
placeholder: n = "Rechercher",
|
|
334
|
-
...
|
|
335
|
-
}) => /* @__PURE__ */
|
|
336
|
-
|
|
164
|
+
...t
|
|
165
|
+
}) => /* @__PURE__ */ o(
|
|
166
|
+
H,
|
|
337
167
|
{
|
|
338
|
-
...
|
|
168
|
+
...t,
|
|
339
169
|
placeholder: n,
|
|
340
|
-
startAdornment: /* @__PURE__ */
|
|
170
|
+
startAdornment: /* @__PURE__ */ o(q, { position: "start", disablePointerEvents: !0, children: /* @__PURE__ */ o(F, {}) })
|
|
341
171
|
}
|
|
342
172
|
);
|
|
343
173
|
export {
|
|
344
|
-
|
|
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,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
|
+
};
|