@cgi-learning-hub/ui 1.2.0-dev.1725030880 → 1.2.0-dev.1725450842
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-BJvmuM0Y.js → Box-B6xx2g1Y.js} +32 -30
- package/dist/Box-P3WhGgSH.cjs +1 -0
- package/dist/Button-BlSyZq45.js +454 -0
- package/dist/Button-CZO3I5oS.cjs +1 -0
- package/dist/ButtonBase-C-IxZjoy.cjs +75 -0
- package/dist/ButtonBase-Mr4S_NG8.js +890 -0
- package/dist/CircularProgress-D1dO7At_.cjs +28 -0
- package/dist/CircularProgress-bltZBt14.js +251 -0
- package/dist/DatePicker-B8FaO6N3.cjs +19 -0
- package/dist/{DatePicker-xLT3dl8F.js → DatePicker-BM4qYpPt.js} +3809 -3722
- package/dist/DefaultButton-BbTf0WK8.cjs +1 -0
- package/dist/{DefaultButton-CKY6tuni.js → DefaultButton-Crs2UW2V.js} +95 -75
- package/dist/DefaultPropsProvider-BDdV3S11.js +468 -0
- package/dist/DefaultPropsProvider-DwweZ7qj.cjs +17 -0
- package/dist/IconButton-8pelIq63.cjs +2 -0
- package/dist/IconButton-DeGwRNnI.js +239 -0
- package/dist/InputAdornment-BhrFtLIz.cjs +1 -0
- package/dist/{InputAdornment-zaw7AFWU.js → InputAdornment-Dd24Ymt-.js} +81 -65
- package/dist/InputBase-BUzAEUpC.js +802 -0
- package/dist/InputBase-OefmcFzX.cjs +3 -0
- package/dist/Stack-BnpqP5GW.cjs +1 -0
- package/dist/{Stack-Dlgk5t_M.js → Stack-D_hQlRGm.js} +62 -60
- package/dist/Tabs-BqbRbRmo.cjs +4 -0
- package/dist/Tabs-D0SZWveL.js +1222 -0
- package/dist/TextField-DXEOL4uC.cjs +12 -0
- package/dist/{TextField-DG1754qQ.js → TextField-cX-VBTii.js} +3033 -2408
- package/dist/{Tooltip-BjTwTSrD.js → Tooltip-B3_y8U1N.js} +4682 -3406
- package/dist/Tooltip-DiglEjt6.cjs +100 -0
- package/dist/TransitionGroupContext-LWgXgADB.cjs +1 -0
- package/dist/TransitionGroupContext-SbAHUhOx.js +64 -0
- package/dist/Typography-DWgJpyZG.cjs +1 -0
- package/dist/Typography-kwaQt8VQ.js +258 -0
- package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
- package/dist/components/DatePicker/DatePicker.es.js +3 -3
- package/dist/components/DatePicker/DatePicker.stories.cjs.js +1 -1
- package/dist/components/DatePicker/DatePicker.stories.es.js +3 -3
- package/dist/components/DatePicker/index.cjs.js +1 -1
- package/dist/components/DatePicker/index.es.js +1 -1
- package/dist/components/DefaultButton/DefaultButton.cjs.js +1 -1
- package/dist/components/DefaultButton/DefaultButton.es.js +2 -2
- package/dist/components/DefaultButton/DefaultButtonIcon.cjs.js +1 -1
- package/dist/components/DefaultButton/DefaultButtonIcon.es.js +108 -67
- package/dist/components/DefaultButton/index.cjs.js +1 -1
- package/dist/components/DefaultButton/index.es.js +1 -1
- package/dist/components/Dropzone/Dropzone.cjs.js +5 -5
- package/dist/components/Dropzone/Dropzone.es.js +8 -8
- package/dist/components/FileList/FileList.cjs.js +1 -1
- package/dist/components/FileList/FileList.es.js +1 -1
- package/dist/components/FileList/FileListItem.cjs.js +1 -1
- package/dist/components/FileList/FileListItem.es.js +10 -11
- package/dist/components/IconButton.stories.cjs.js +1 -1
- package/dist/components/IconButton.stories.es.js +13 -14
- package/dist/components/Loader/Loader.cjs.js +1 -1
- package/dist/components/Loader/Loader.es.js +1 -1
- package/dist/components/PaperHeader/PaperHeader.cjs.js +1 -1
- package/dist/components/PaperHeader/PaperHeader.es.js +2 -2
- package/dist/components/PaperHeader/PaperHeader.stories.cjs.js +1 -1
- package/dist/components/PaperHeader/PaperHeader.stories.es.js +7 -7
- package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
- package/dist/components/PasswordInput/PasswordInput.es.js +5 -5
- package/dist/components/PrimaryButton/PrimaryButton.cjs.js +1 -1
- package/dist/components/PrimaryButton/PrimaryButton.es.js +1 -1
- package/dist/components/PrimaryButton/PrimaryButton.stories.cjs.js +1 -1
- package/dist/components/PrimaryButton/PrimaryButton.stories.es.js +1 -1
- package/dist/components/QueryError/QueryError.cjs.js +1 -1
- package/dist/components/QueryError/QueryError.es.js +1 -1
- package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/SearchInput/SearchInput.es.js +4 -4
- package/dist/components/SecondaryButton/SecondaryButton.cjs.js +1 -1
- package/dist/components/SecondaryButton/SecondaryButton.es.js +1 -1
- package/dist/components/SecondaryButton/SecondaryButton.stories.cjs.js +1 -1
- package/dist/components/SecondaryButton/SecondaryButton.stories.es.js +1 -1
- package/dist/components/TabList.stories.cjs.js +1 -1
- package/dist/components/TabList.stories.es.js +62 -59
- package/dist/components/TextInput/TextInput.cjs.js +1 -1
- package/dist/components/TextInput/TextInput.es.js +1 -1
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.es.js +240 -235
- package/dist/createSvgIcon-BNfyXTi3.cjs +2 -0
- package/dist/createSvgIcon-BwYG_otT.js +249 -0
- package/dist/createSvgIcon-DIHNjNhw.js +88 -0
- package/dist/createSvgIcon-DMxj0zKp.cjs +1 -0
- package/dist/extendSxProp-BkIEJBCN.js +37 -0
- package/dist/extendSxProp-DhEbeVWY.cjs +1 -0
- package/dist/{fr-CXEmlY0d.js → fr-BmQdNgE2.js} +13 -13
- package/dist/{fr-C4bcUC-9.cjs → fr-BwBKunbe.cjs} +1 -1
- package/dist/generateUtilityClasses-BwskEdpL.js +58 -0
- package/dist/generateUtilityClasses-CzQVzFT6.cjs +1 -0
- package/dist/identifier-Dx5_fEyA.cjs +59 -0
- package/dist/identifier-SatcAo-F.js +2930 -0
- package/dist/index-C1wNRRuv.js +89 -0
- package/dist/index-D30fIOec.cjs +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +238 -233
- package/dist/{ownerWindow-C7EH1lr6.js → ownerWindow-BoRkeomM.js} +2 -2
- package/dist/{refType-D1DDOFsy.cjs → refType-CVYH4raj.cjs} +1 -1
- package/dist/{refType-DiVIFcsY.js → refType-Dv9Yduc2.js} +1 -1
- package/dist/useControlled-Bf7_InaL.cjs +3 -0
- package/dist/useControlled-D59BLg1S.js +48 -0
- package/dist/useEventCallback-BgMlqKLP.js +14 -0
- package/dist/useEventCallback-CrCf96iG.cjs +1 -0
- package/dist/useId-CyGZMA-F.js +19 -0
- package/dist/useId-D5Txt-1B.cjs +1 -0
- package/dist/{useTheme-1gSw-INq.js → useTheme-5-WD2s8Q.js} +5 -5
- package/dist/useTheme-C3EDRRFw.js +128 -0
- package/dist/useTheme-C8ZuVDEs.cjs +1 -0
- package/dist/useTheme-pRydhCrj.cjs +1 -0
- package/dist/useThemeProps-D26oU7wL.cjs +1 -0
- package/dist/useThemeProps-uqUSigAC.js +40 -0
- package/package.json +8 -8
- package/dist/Box-2ZrLOc7U.cjs +0 -1
- package/dist/Button-HyZp1VKI.js +0 -359
- package/dist/Button-NhaA68Of.cjs +0 -1
- package/dist/ButtonBase-CnINN-P4.cjs +0 -75
- package/dist/ButtonBase-cOL6Mpcp.js +0 -827
- package/dist/CircularProgress-01RZzfpF.cjs +0 -28
- package/dist/CircularProgress-DO4r9-x8.js +0 -217
- package/dist/DatePicker-DZBeZYG6.cjs +0 -19
- package/dist/DefaultButton-BMmuKPgA.cjs +0 -1
- package/dist/IconButton-3v-0zgZW.cjs +0 -2
- package/dist/IconButton-BBfmzBP6.js +0 -184
- package/dist/InputAdornment-DHmtETz3.cjs +0 -1
- package/dist/InputBase-BpGQgBej.cjs +0 -3
- package/dist/InputBase-COUxfhh1.js +0 -794
- package/dist/Stack-D9IYPfJ8.cjs +0 -1
- package/dist/Tabs-Blo-8Ro5.js +0 -1091
- package/dist/Tabs-D0e7cB4l.cjs +0 -4
- package/dist/TextField-8AuRLRIK.cjs +0 -12
- package/dist/Tooltip-Cp3Dh6LR.cjs +0 -95
- package/dist/TransitionGroupContext-BkoHK5Kx.js +0 -14
- package/dist/TransitionGroupContext-mYDSzffd.cjs +0 -1
- package/dist/Typography-DjrvRhOr.js +0 -178
- package/dist/Typography-YHooSvuR.cjs +0 -1
- package/dist/createStyled--XbpooZB.js +0 -142
- package/dist/createStyled-CuYz_ckk.cjs +0 -1
- package/dist/createSvgIcon-CUiH3cta.cjs +0 -1
- package/dist/createSvgIcon-D29Io9jD.js +0 -183
- package/dist/createSvgIcon-DTc4Xvfk.cjs +0 -2
- package/dist/createSvgIcon-DvOXtgXV.js +0 -76
- package/dist/identifier-CAQ9PWqs.js +0 -3046
- package/dist/identifier-CWIj084w.cjs +0 -50
- package/dist/isHostComponent-PydJW4A4.cjs +0 -1
- package/dist/isHostComponent-kiaBvYVo.js +0 -6
- package/dist/styled-Bt4oYVnF.cjs +0 -17
- package/dist/styled-Co-8YWfm.js +0 -533
- package/dist/useControlled-DKpcyPsg.cjs +0 -3
- package/dist/useControlled-DoRrpN8o.js +0 -48
- package/dist/useId-BW-oWmul.js +0 -19
- package/dist/useId-Cw0TtD-8.cjs +0 -1
- package/dist/useIsFocusVisible-Bv_7uvif.cjs +0 -1
- package/dist/useIsFocusVisible-DhASXQ4o.js +0 -69
- package/dist/useTheme-Dm6RnXrf.cjs +0 -1
- package/dist/useTheme-HJhneR9g.js +0 -99
- package/dist/useTheme-T2P7WhLG.cjs +0 -1
- package/dist/useThemeProps-BKIVQv3E.js +0 -17
- package/dist/useThemeProps-BfZ3lLQs.js +0 -27
- package/dist/useThemeProps-BpFUkYqe.cjs +0 -1
- package/dist/useThemeProps-Co5ylM0H.cjs +0 -1
- package/dist/useTimeout-BdvDipeg.js +0 -47
- package/dist/useTimeout-XUWYBnl6.cjs +0 -1
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
import * as c from "react";
|
|
2
|
+
import { I as z, J as C, K as a, n as g, L as O, P as t } from "./identifier-SatcAo-F.js";
|
|
3
|
+
import { s as B, m as y, u as I, c as T } from "./DefaultPropsProvider-BDdV3S11.js";
|
|
4
|
+
import { jsx as $ } from "react/jsx-runtime";
|
|
5
|
+
import { B as h } from "./ButtonBase-Mr4S_NG8.js";
|
|
6
|
+
import { c as S } from "./refType-Dv9Yduc2.js";
|
|
7
|
+
function k(o) {
|
|
8
|
+
return z("MuiIconButton", o);
|
|
9
|
+
}
|
|
10
|
+
const x = C("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorError", "colorInfo", "colorSuccess", "colorWarning", "edgeStart", "edgeEnd", "sizeSmall", "sizeMedium", "sizeLarge"]), w = x, j = (o) => {
|
|
11
|
+
const {
|
|
12
|
+
classes: e,
|
|
13
|
+
disabled: r,
|
|
14
|
+
color: s,
|
|
15
|
+
edge: n,
|
|
16
|
+
size: i
|
|
17
|
+
} = o, l = {
|
|
18
|
+
root: ["root", r && "disabled", s !== "default" && `color${a(s)}`, n && `edge${a(n)}`, `size${a(i)}`]
|
|
19
|
+
};
|
|
20
|
+
return T(l, k, e);
|
|
21
|
+
}, E = B(h, {
|
|
22
|
+
name: "MuiIconButton",
|
|
23
|
+
slot: "Root",
|
|
24
|
+
overridesResolver: (o, e) => {
|
|
25
|
+
const {
|
|
26
|
+
ownerState: r
|
|
27
|
+
} = o;
|
|
28
|
+
return [e.root, r.color !== "default" && e[`color${a(r.color)}`], r.edge && e[`edge${a(r.edge)}`], e[`size${a(r.size)}`]];
|
|
29
|
+
}
|
|
30
|
+
})(y(({
|
|
31
|
+
theme: o
|
|
32
|
+
}) => ({
|
|
33
|
+
textAlign: "center",
|
|
34
|
+
flex: "0 0 auto",
|
|
35
|
+
fontSize: o.typography.pxToRem(24),
|
|
36
|
+
padding: 8,
|
|
37
|
+
borderRadius: "50%",
|
|
38
|
+
color: (o.vars || o).palette.action.active,
|
|
39
|
+
transition: o.transitions.create("background-color", {
|
|
40
|
+
duration: o.transitions.duration.shortest
|
|
41
|
+
}),
|
|
42
|
+
variants: [{
|
|
43
|
+
props: {
|
|
44
|
+
disableRipple: !1
|
|
45
|
+
},
|
|
46
|
+
style: {
|
|
47
|
+
"&:hover": {
|
|
48
|
+
backgroundColor: o.vars ? `rgba(${o.vars.palette.action.activeChannel} / ${o.vars.palette.action.hoverOpacity})` : g(o.palette.action.active, o.palette.action.hoverOpacity),
|
|
49
|
+
// Reset on touch devices, it doesn't add specificity
|
|
50
|
+
"@media (hover: none)": {
|
|
51
|
+
backgroundColor: "transparent"
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}, {
|
|
56
|
+
props: {
|
|
57
|
+
edge: "start"
|
|
58
|
+
},
|
|
59
|
+
style: {
|
|
60
|
+
marginLeft: -12
|
|
61
|
+
}
|
|
62
|
+
}, {
|
|
63
|
+
props: {
|
|
64
|
+
edge: "start",
|
|
65
|
+
size: "small"
|
|
66
|
+
},
|
|
67
|
+
style: {
|
|
68
|
+
marginLeft: -3
|
|
69
|
+
}
|
|
70
|
+
}, {
|
|
71
|
+
props: {
|
|
72
|
+
edge: "end"
|
|
73
|
+
},
|
|
74
|
+
style: {
|
|
75
|
+
marginRight: -12
|
|
76
|
+
}
|
|
77
|
+
}, {
|
|
78
|
+
props: {
|
|
79
|
+
edge: "end",
|
|
80
|
+
size: "small"
|
|
81
|
+
},
|
|
82
|
+
style: {
|
|
83
|
+
marginRight: -3
|
|
84
|
+
}
|
|
85
|
+
}]
|
|
86
|
+
})), y(({
|
|
87
|
+
theme: o
|
|
88
|
+
}) => ({
|
|
89
|
+
variants: [{
|
|
90
|
+
props: {
|
|
91
|
+
color: "inherit"
|
|
92
|
+
},
|
|
93
|
+
style: {
|
|
94
|
+
color: "inherit"
|
|
95
|
+
}
|
|
96
|
+
}, ...Object.entries(o.palette).filter(([, e]) => e && e.main).map(([e]) => ({
|
|
97
|
+
props: {
|
|
98
|
+
color: e
|
|
99
|
+
},
|
|
100
|
+
style: {
|
|
101
|
+
color: (o.vars || o).palette[e].main
|
|
102
|
+
}
|
|
103
|
+
})), ...Object.entries(o.palette).filter(([, e]) => e && e.main).map(([e]) => ({
|
|
104
|
+
props: {
|
|
105
|
+
color: e,
|
|
106
|
+
disableRipple: !1
|
|
107
|
+
},
|
|
108
|
+
style: {
|
|
109
|
+
"&:hover": {
|
|
110
|
+
backgroundColor: o.vars ? `rgba(${(o.vars || o).palette[e].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : g((o.vars || o).palette[e].main, o.palette.action.hoverOpacity),
|
|
111
|
+
// Reset on touch devices, it doesn't add specificity
|
|
112
|
+
"@media (hover: none)": {
|
|
113
|
+
backgroundColor: "transparent"
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
})), {
|
|
118
|
+
props: {
|
|
119
|
+
size: "small"
|
|
120
|
+
},
|
|
121
|
+
style: {
|
|
122
|
+
padding: 5,
|
|
123
|
+
fontSize: o.typography.pxToRem(18)
|
|
124
|
+
}
|
|
125
|
+
}, {
|
|
126
|
+
props: {
|
|
127
|
+
size: "large"
|
|
128
|
+
},
|
|
129
|
+
style: {
|
|
130
|
+
padding: 12,
|
|
131
|
+
fontSize: o.typography.pxToRem(28)
|
|
132
|
+
}
|
|
133
|
+
}],
|
|
134
|
+
[`&.${w.disabled}`]: {
|
|
135
|
+
backgroundColor: "transparent",
|
|
136
|
+
color: (o.vars || o).palette.action.disabled
|
|
137
|
+
}
|
|
138
|
+
}))), M = /* @__PURE__ */ c.forwardRef(function(e, r) {
|
|
139
|
+
const s = I({
|
|
140
|
+
props: e,
|
|
141
|
+
name: "MuiIconButton"
|
|
142
|
+
}), {
|
|
143
|
+
edge: n = !1,
|
|
144
|
+
children: i,
|
|
145
|
+
className: l,
|
|
146
|
+
color: b = "default",
|
|
147
|
+
disabled: p = !1,
|
|
148
|
+
disableFocusRipple: d = !1,
|
|
149
|
+
disableRipple: u = !1,
|
|
150
|
+
size: m = "medium",
|
|
151
|
+
...v
|
|
152
|
+
} = s, f = {
|
|
153
|
+
...s,
|
|
154
|
+
edge: n,
|
|
155
|
+
color: b,
|
|
156
|
+
disabled: p,
|
|
157
|
+
disableFocusRipple: d,
|
|
158
|
+
disableRipple: u,
|
|
159
|
+
size: m
|
|
160
|
+
}, R = j(f);
|
|
161
|
+
return /* @__PURE__ */ $(E, {
|
|
162
|
+
className: O(R.root, l),
|
|
163
|
+
centerRipple: !0,
|
|
164
|
+
focusRipple: !d,
|
|
165
|
+
disabled: p,
|
|
166
|
+
disableRipple: u,
|
|
167
|
+
ref: r,
|
|
168
|
+
...v,
|
|
169
|
+
ownerState: f,
|
|
170
|
+
children: i
|
|
171
|
+
});
|
|
172
|
+
});
|
|
173
|
+
process.env.NODE_ENV !== "production" && (M.propTypes = {
|
|
174
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
175
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
176
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
177
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
178
|
+
/**
|
|
179
|
+
* The icon to display.
|
|
180
|
+
*/
|
|
181
|
+
children: S(t.node, (o) => c.Children.toArray(o.children).some((r) => /* @__PURE__ */ c.isValidElement(r) && r.props.onClick) ? new Error(["MUI: You are providing an onClick event listener to a child of a button element.", "Prefer applying it to the IconButton directly.", "This guarantees that the whole <button> will be responsive to click events."].join(`
|
|
182
|
+
`)) : null),
|
|
183
|
+
/**
|
|
184
|
+
* Override or extend the styles applied to the component.
|
|
185
|
+
*/
|
|
186
|
+
classes: t.object,
|
|
187
|
+
/**
|
|
188
|
+
* @ignore
|
|
189
|
+
*/
|
|
190
|
+
className: t.string,
|
|
191
|
+
/**
|
|
192
|
+
* The color of the component.
|
|
193
|
+
* It supports both default and custom theme colors, which can be added as shown in the
|
|
194
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
195
|
+
* @default 'default'
|
|
196
|
+
*/
|
|
197
|
+
color: t.oneOfType([t.oneOf(["inherit", "default", "primary", "secondary", "error", "info", "success", "warning"]), t.string]),
|
|
198
|
+
/**
|
|
199
|
+
* If `true`, the component is disabled.
|
|
200
|
+
* @default false
|
|
201
|
+
*/
|
|
202
|
+
disabled: t.bool,
|
|
203
|
+
/**
|
|
204
|
+
* If `true`, the keyboard focus ripple is disabled.
|
|
205
|
+
* @default false
|
|
206
|
+
*/
|
|
207
|
+
disableFocusRipple: t.bool,
|
|
208
|
+
/**
|
|
209
|
+
* If `true`, the ripple effect is disabled.
|
|
210
|
+
*
|
|
211
|
+
* ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
|
|
212
|
+
* to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
|
|
213
|
+
* @default false
|
|
214
|
+
*/
|
|
215
|
+
disableRipple: t.bool,
|
|
216
|
+
/**
|
|
217
|
+
* If given, uses a negative margin to counteract the padding on one
|
|
218
|
+
* side (this is often helpful for aligning the left or right
|
|
219
|
+
* side of the icon with content above or below, without ruining the border
|
|
220
|
+
* size and shape).
|
|
221
|
+
* @default false
|
|
222
|
+
*/
|
|
223
|
+
edge: t.oneOf(["end", "start", !1]),
|
|
224
|
+
/**
|
|
225
|
+
* The size of the component.
|
|
226
|
+
* `small` is equivalent to the dense button styling.
|
|
227
|
+
* @default 'medium'
|
|
228
|
+
*/
|
|
229
|
+
size: t.oneOfType([t.oneOf(["small", "medium", "large"]), t.string]),
|
|
230
|
+
/**
|
|
231
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
232
|
+
*/
|
|
233
|
+
sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object])
|
|
234
|
+
});
|
|
235
|
+
export {
|
|
236
|
+
M as I,
|
|
237
|
+
k as g,
|
|
238
|
+
w as i
|
|
239
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const j=require("react"),e=require("./identifier-Dx5_fEyA.cjs"),f=require("./InputBase-OefmcFzX.cjs"),l=require("./DefaultPropsProvider-DwweZ7qj.cjs"),a=require("react/jsx-runtime"),O=require("./Typography-DWgJpyZG.cjs");function x(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(o,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return o.default=t,Object.freeze(o)}const P=x(j);function A(t){return e.generateUtilityClass("MuiInputAdornment",t)}const b=e.generateUtilityClasses("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var T;const C=(t,o)=>{const{ownerState:n}=t;return[o.root,o[`position${e.capitalize(n.position)}`],n.disablePointerEvents===!0&&o.disablePointerEvents,o[n.variant]]},S=t=>{const{classes:o,disablePointerEvents:n,hiddenLabel:r,position:s,size:p,variant:c}=t,d={root:["root",n&&"disablePointerEvents",s&&`position${e.capitalize(s)}`,c,r&&"hiddenLabel",p&&`size${e.capitalize(p)}`]};return l.composeClasses(d,A,o)},z=l.styled("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:C})(l.memoTheme(({theme:t})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(t.vars||t).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${b.positionStart}&:not(.${b.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),h=P.forwardRef(function(o,n){const r=l.useDefaultProps({props:o,name:"MuiInputAdornment"}),{children:s,className:p,component:c="div",disablePointerEvents:d=!1,disableTypography:g=!1,position:m,variant:u,...E}=r,i=f.useFormControl()||{};let y=u;u&&i.variant&&process.env.NODE_ENV!=="production"&&u===i.variant&&console.error("MUI: The `InputAdornment` variant infers the variant prop you do not have to provide one."),i&&!y&&(y=i.variant);const v={...r,hiddenLabel:i.hiddenLabel,size:i.size,disablePointerEvents:d,position:m,variant:y},I=S(v);return a.jsx(f.FormControlContext.Provider,{value:null,children:a.jsx(z,{as:c,ownerState:v,className:e.clsx(I.root,p),ref:n,...E,children:typeof s=="string"&&!g?a.jsx(O.Typography,{color:"textSecondary",children:s}):a.jsxs(P.Fragment,{children:[m==="start"?T||(T=a.jsx("span",{className:"notranslate",children:""})):null,s]})})})});process.env.NODE_ENV!=="production"&&(h.propTypes={children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,component:e.PropTypes.elementType,disablePointerEvents:e.PropTypes.bool,disableTypography:e.PropTypes.bool,position:e.PropTypes.oneOf(["end","start"]).isRequired,sx:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object,e.PropTypes.bool])),e.PropTypes.func,e.PropTypes.object]),variant:e.PropTypes.oneOf(["filled","outlined","standard"])});exports.InputAdornment=h;
|
|
@@ -1,62 +1,76 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { u as
|
|
4
|
-
import { s as
|
|
5
|
-
import { jsx as l, jsxs as
|
|
6
|
-
import { T as
|
|
7
|
-
function
|
|
8
|
-
return
|
|
1
|
+
import * as h from "react";
|
|
2
|
+
import { J as P, I as T, L as A, P as e, K as u } from "./identifier-SatcAo-F.js";
|
|
3
|
+
import { u as C, F as x } from "./InputBase-BUzAEUpC.js";
|
|
4
|
+
import { s as L, m as N, u as S, c as O } from "./DefaultPropsProvider-BDdV3S11.js";
|
|
5
|
+
import { jsx as l, jsxs as R } from "react/jsx-runtime";
|
|
6
|
+
import { T as w } from "./Typography-kwaQt8VQ.js";
|
|
7
|
+
function z(t) {
|
|
8
|
+
return T("MuiInputAdornment", t);
|
|
9
9
|
}
|
|
10
|
-
const
|
|
11
|
-
var
|
|
12
|
-
const
|
|
10
|
+
const b = P("MuiInputAdornment", ["root", "filled", "standard", "outlined", "positionStart", "positionEnd", "disablePointerEvents", "hiddenLabel", "sizeSmall"]);
|
|
11
|
+
var y;
|
|
12
|
+
const j = (t, o) => {
|
|
13
13
|
const {
|
|
14
14
|
ownerState: n
|
|
15
15
|
} = t;
|
|
16
|
-
return [o.root, o[`position${
|
|
17
|
-
},
|
|
16
|
+
return [o.root, o[`position${u(n.position)}`], n.disablePointerEvents === !0 && o.disablePointerEvents, o[n.variant]];
|
|
17
|
+
}, F = (t) => {
|
|
18
18
|
const {
|
|
19
19
|
classes: o,
|
|
20
20
|
disablePointerEvents: n,
|
|
21
|
-
hiddenLabel:
|
|
21
|
+
hiddenLabel: i,
|
|
22
22
|
position: s,
|
|
23
23
|
size: a,
|
|
24
24
|
variant: p
|
|
25
25
|
} = t, d = {
|
|
26
|
-
root: ["root", n && "disablePointerEvents", s && `position${
|
|
26
|
+
root: ["root", n && "disablePointerEvents", s && `position${u(s)}`, p, i && "hiddenLabel", a && `size${u(a)}`]
|
|
27
27
|
};
|
|
28
|
-
return
|
|
29
|
-
},
|
|
28
|
+
return O(d, z, o);
|
|
29
|
+
}, M = L("div", {
|
|
30
30
|
name: "MuiInputAdornment",
|
|
31
31
|
slot: "Root",
|
|
32
|
-
overridesResolver:
|
|
33
|
-
})(({
|
|
34
|
-
theme: t
|
|
35
|
-
|
|
36
|
-
}) => u({
|
|
32
|
+
overridesResolver: j
|
|
33
|
+
})(N(({
|
|
34
|
+
theme: t
|
|
35
|
+
}) => ({
|
|
37
36
|
display: "flex",
|
|
38
|
-
height: "0.01em",
|
|
39
|
-
// Fix IE11 flexbox alignment. To remove at some point.
|
|
40
37
|
maxHeight: "2em",
|
|
41
38
|
alignItems: "center",
|
|
42
39
|
whiteSpace: "nowrap",
|
|
43
|
-
color: (t.vars || t).palette.action.active
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
40
|
+
color: (t.vars || t).palette.action.active,
|
|
41
|
+
variants: [{
|
|
42
|
+
props: {
|
|
43
|
+
variant: "filled"
|
|
44
|
+
},
|
|
45
|
+
style: {
|
|
46
|
+
[`&.${b.positionStart}&:not(.${b.hiddenLabel})`]: {
|
|
47
|
+
marginTop: 16
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}, {
|
|
51
|
+
props: {
|
|
52
|
+
position: "start"
|
|
53
|
+
},
|
|
54
|
+
style: {
|
|
55
|
+
marginRight: 8
|
|
56
|
+
}
|
|
57
|
+
}, {
|
|
58
|
+
props: {
|
|
59
|
+
position: "end"
|
|
60
|
+
},
|
|
61
|
+
style: {
|
|
62
|
+
marginLeft: 8
|
|
63
|
+
}
|
|
64
|
+
}, {
|
|
65
|
+
props: {
|
|
66
|
+
disablePointerEvents: !0
|
|
67
|
+
},
|
|
68
|
+
style: {
|
|
69
|
+
pointerEvents: "none"
|
|
70
|
+
}
|
|
71
|
+
}]
|
|
72
|
+
}))), U = /* @__PURE__ */ h.forwardRef(function(o, n) {
|
|
73
|
+
const i = S({
|
|
60
74
|
props: o,
|
|
61
75
|
name: "MuiInputAdornment"
|
|
62
76
|
}), {
|
|
@@ -64,43 +78,45 @@ const M = ["children", "className", "component", "disablePointerEvents", "disabl
|
|
|
64
78
|
className: a,
|
|
65
79
|
component: p = "div",
|
|
66
80
|
disablePointerEvents: d = !1,
|
|
67
|
-
disableTypography:
|
|
68
|
-
position:
|
|
69
|
-
variant: c
|
|
70
|
-
|
|
81
|
+
disableTypography: g = !1,
|
|
82
|
+
position: v,
|
|
83
|
+
variant: c,
|
|
84
|
+
...E
|
|
85
|
+
} = i, r = C() || {};
|
|
71
86
|
let m = c;
|
|
72
|
-
c &&
|
|
73
|
-
const
|
|
74
|
-
|
|
75
|
-
|
|
87
|
+
c && r.variant && process.env.NODE_ENV !== "production" && c === r.variant && console.error("MUI: The `InputAdornment` variant infers the variant prop you do not have to provide one."), r && !m && (m = r.variant);
|
|
88
|
+
const f = {
|
|
89
|
+
...i,
|
|
90
|
+
hiddenLabel: r.hiddenLabel,
|
|
91
|
+
size: r.size,
|
|
76
92
|
disablePointerEvents: d,
|
|
77
|
-
position:
|
|
93
|
+
position: v,
|
|
78
94
|
variant: m
|
|
79
|
-
}
|
|
80
|
-
return /* @__PURE__ */ l(
|
|
95
|
+
}, I = F(f);
|
|
96
|
+
return /* @__PURE__ */ l(x.Provider, {
|
|
81
97
|
value: null,
|
|
82
|
-
children: /* @__PURE__ */ l(
|
|
98
|
+
children: /* @__PURE__ */ l(M, {
|
|
83
99
|
as: p,
|
|
84
|
-
ownerState:
|
|
85
|
-
className:
|
|
86
|
-
ref: n
|
|
87
|
-
|
|
88
|
-
children: typeof s == "string" && !
|
|
89
|
-
color: "
|
|
100
|
+
ownerState: f,
|
|
101
|
+
className: A(I.root, a),
|
|
102
|
+
ref: n,
|
|
103
|
+
...E,
|
|
104
|
+
children: typeof s == "string" && !g ? /* @__PURE__ */ l(w, {
|
|
105
|
+
color: "textSecondary",
|
|
90
106
|
children: s
|
|
91
|
-
}) : /* @__PURE__ */
|
|
92
|
-
children: [
|
|
107
|
+
}) : /* @__PURE__ */ R(h.Fragment, {
|
|
108
|
+
children: [v === "start" ? (
|
|
93
109
|
/* notranslate needed while Google Translate will not fix zero-width space issue */
|
|
94
|
-
|
|
110
|
+
y || (y = /* @__PURE__ */ l("span", {
|
|
95
111
|
className: "notranslate",
|
|
96
112
|
children: ""
|
|
97
113
|
}))
|
|
98
114
|
) : null, s]
|
|
99
115
|
})
|
|
100
|
-
})
|
|
116
|
+
})
|
|
101
117
|
});
|
|
102
118
|
});
|
|
103
|
-
process.env.NODE_ENV !== "production" && (
|
|
119
|
+
process.env.NODE_ENV !== "production" && (U.propTypes = {
|
|
104
120
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
105
121
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
106
122
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -149,5 +165,5 @@ process.env.NODE_ENV !== "production" && (S.propTypes = {
|
|
|
149
165
|
variant: e.oneOf(["filled", "outlined", "standard"])
|
|
150
166
|
});
|
|
151
167
|
export {
|
|
152
|
-
|
|
168
|
+
U as I
|
|
153
169
|
};
|