@cgi-learning-hub/ui 1.4.0-dev.1741181662 → 1.4.0-dev.1741799136

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.
@@ -0,0 +1 @@
1
+ "use strict";const n=require("react/jsx-runtime"),K=require("react"),e=require("./generateUtilityClasses-De8NU9_E.cjs"),h=require("./memoTheme-DrjvJtTP.cjs"),c=require("./useSlot-CC2AaOjN.cjs"),f=require("./createSimplePaletteValueFilter-PTK3TAhW.cjs"),u=require("./createSvgIcon-DJMYlO0S.cjs"),l=require("./DefaultPropsProvider-wpBXjN8r.cjs"),Q=require("./IconButton-CVOPR4EM.cjs"),v=require("./capitalize-CEByPz9F.cjs"),X=require("./Paper-EvOTlB_Q.cjs"),Y=require("./Typography-DPij13XT.cjs");function ee(o){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const r in o)if(r!=="default"){const t=Object.getOwnPropertyDescriptor(o,r);Object.defineProperty(s,r,t.get?t:{enumerable:!0,get:()=>o[r]})}}return s.default=o,Object.freeze(s)}const M=ee(K);function z(o){return e.generateUtilityClass("MuiAlertTitle",o)}const oe=e.generateUtilityClasses("MuiAlertTitle",["root"]),te=o=>{const{classes:s}=o,r={root:["root"]};return l.composeClasses(r,z,s)},se=l.styled(Y.Typography,{name:"MuiAlertTitle",slot:"Root",overridesResolver:(o,s)=>s.root})(h.memoTheme(({theme:o})=>({fontWeight:o.typography.fontWeightMedium,marginTop:-2}))),m=M.forwardRef(function(s,r){const t=l.useDefaultProps({props:s,name:"MuiAlertTitle"}),{className:p,...y}=t,d=t,T=te(d);return n.jsx(se,{gutterBottom:!0,component:"div",ownerState:d,ref:r,className:e.clsx(T.root,p),...y})});process.env.NODE_ENV!=="production"&&(m.propTypes={children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,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])});const R=u.createSvgIcon(n.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function re(o){return e.generateUtilityClass("MuiAlert",o)}const O=e.generateUtilityClasses("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),ne=u.createSvgIcon(n.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),le=u.createSvgIcon(n.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),pe=u.createSvgIcon(n.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),ae=u.createSvgIcon(n.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),ie=o=>{const{variant:s,color:r,severity:t,classes:p}=o,y={root:["root",`color${v.capitalize(r||t)}`,`${s}${v.capitalize(r||t)}`,`${s}`],icon:["icon"],message:["message"],action:["action"]};return l.composeClasses(y,re,p)},ce=l.styled(X.Paper,{name:"MuiAlert",slot:"Root",overridesResolver:(o,s)=>{const{ownerState:r}=o;return[s.root,s[r.variant],s[`${r.variant}${v.capitalize(r.color||r.severity)}`]]}})(h.memoTheme(({theme:o})=>{const s=o.palette.mode==="light"?e.darken:e.lighten,r=o.palette.mode==="light"?e.lighten:e.darken;return{...o.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(o.palette).filter(f.createSimplePaletteValueFilter(["light"])).map(([t])=>({props:{colorSeverity:t,variant:"standard"},style:{color:o.vars?o.vars.palette.Alert[`${t}Color`]:s(o.palette[t].light,.6),backgroundColor:o.vars?o.vars.palette.Alert[`${t}StandardBg`]:r(o.palette[t].light,.9),[`& .${O.icon}`]:o.vars?{color:o.vars.palette.Alert[`${t}IconColor`]}:{color:o.palette[t].main}}})),...Object.entries(o.palette).filter(f.createSimplePaletteValueFilter(["light"])).map(([t])=>({props:{colorSeverity:t,variant:"outlined"},style:{color:o.vars?o.vars.palette.Alert[`${t}Color`]:s(o.palette[t].light,.6),border:`1px solid ${(o.vars||o).palette[t].light}`,[`& .${O.icon}`]:o.vars?{color:o.vars.palette.Alert[`${t}IconColor`]}:{color:o.palette[t].main}}})),...Object.entries(o.palette).filter(f.createSimplePaletteValueFilter(["dark"])).map(([t])=>({props:{colorSeverity:t,variant:"filled"},style:{fontWeight:o.typography.fontWeightMedium,...o.vars?{color:o.vars.palette.Alert[`${t}FilledColor`],backgroundColor:o.vars.palette.Alert[`${t}FilledBg`]}:{backgroundColor:o.palette.mode==="dark"?o.palette[t].dark:o.palette[t].main,color:o.palette.getContrastText(o.palette[t].main)}}}))]}})),ye=l.styled("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(o,s)=>s.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),ue=l.styled("div",{name:"MuiAlert",slot:"Message",overridesResolver:(o,s)=>s.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),de=l.styled("div",{name:"MuiAlert",slot:"Action",overridesResolver:(o,s)=>s.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),b={success:n.jsx(ne,{fontSize:"inherit"}),warning:n.jsx(le,{fontSize:"inherit"}),error:n.jsx(pe,{fontSize:"inherit"}),info:n.jsx(ae,{fontSize:"inherit"})},$=M.forwardRef(function(s,r){const t=l.useDefaultProps({props:s,name:"MuiAlert"}),{action:p,children:y,className:d,closeText:T="Close",color:S,components:C={},componentsProps:w={},icon:A,iconMapping:B=b,onClose:j,role:N="alert",severity:P="success",slotProps:L={},slots:k={},variant:q="standard",...E}=t,a={...t,color:S,severity:P,variant:q,colorSeverity:S||P},g=ie(a),i={slots:{closeButton:C.CloseButton,closeIcon:C.CloseIcon,...k},slotProps:{...w,...L}},[U,F]=c.useSlot("root",{ref:r,shouldForwardComponentProp:!0,className:e.clsx(g.root,d),elementType:ce,externalForwardedProps:{...i,...E},ownerState:a,additionalProps:{role:N,elevation:0}}),[V,W]=c.useSlot("icon",{className:g.icon,elementType:ye,externalForwardedProps:i,ownerState:a}),[D,H]=c.useSlot("message",{className:g.message,elementType:ue,externalForwardedProps:i,ownerState:a}),[x,I]=c.useSlot("action",{className:g.action,elementType:de,externalForwardedProps:i,ownerState:a}),[_,Z]=c.useSlot("closeButton",{elementType:Q.IconButton,externalForwardedProps:i,ownerState:a}),[G,J]=c.useSlot("closeIcon",{elementType:R,externalForwardedProps:i,ownerState:a});return n.jsxs(U,{...F,children:[A!==!1?n.jsx(V,{...W,children:A||B[P]||b[P]}):null,n.jsx(D,{...H,children:y}),p!=null?n.jsx(x,{...I,children:p}):null,p==null&&j?n.jsx(x,{...I,children:n.jsx(_,{size:"small","aria-label":T,title:T,color:"inherit",onClick:j,...Z,children:n.jsx(G,{fontSize:"small",...J})})}):null]})});process.env.NODE_ENV!=="production"&&($.propTypes={action:e.PropTypes.node,children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,closeText:e.PropTypes.string,color:e.PropTypes.oneOfType([e.PropTypes.oneOf(["error","info","success","warning"]),e.PropTypes.string]),components:e.PropTypes.shape({CloseButton:e.PropTypes.elementType,CloseIcon:e.PropTypes.elementType}),componentsProps:e.PropTypes.shape({closeButton:e.PropTypes.object,closeIcon:e.PropTypes.object}),icon:e.PropTypes.node,iconMapping:e.PropTypes.shape({error:e.PropTypes.node,info:e.PropTypes.node,success:e.PropTypes.node,warning:e.PropTypes.node}),onClose:e.PropTypes.func,role:e.PropTypes.string,severity:e.PropTypes.oneOfType([e.PropTypes.oneOf(["error","info","success","warning"]),e.PropTypes.string]),slotProps:e.PropTypes.shape({action:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object]),closeButton:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object]),closeIcon:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object]),icon:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object]),message:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object]),root:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object])}),slots:e.PropTypes.shape({action:e.PropTypes.elementType,closeButton:e.PropTypes.elementType,closeIcon:e.PropTypes.elementType,icon:e.PropTypes.elementType,message:e.PropTypes.elementType,root:e.PropTypes.elementType}),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.oneOfType([e.PropTypes.oneOf(["filled","outlined","standard"]),e.PropTypes.string])});const Te=o=>n.jsxs($,{...o,color:o.severity,children:[o.title&&n.jsx(m,{children:o.title}),o.children]});exports.Alert=Te;exports.AlertTitle=m;exports.CloseIcon=R;exports.alertTitleClasses=oe;exports.getAlertTitleUtilityClass=z;
@@ -0,0 +1,440 @@
1
+ import { jsx as n, jsxs as j } from "react/jsx-runtime";
2
+ import * as $ from "react";
3
+ import { H as R, I as z, G as w, P as e, q as b, s as h } from "./generateUtilityClasses-DotvgSDH.js";
4
+ import { m as B } from "./memoTheme-CqmIydD-.js";
5
+ import { u as c } from "./useSlot-GZu0V5wJ.js";
6
+ import { c as v } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
7
+ import { c as d } from "./createSvgIcon-K2ZAdASa.js";
8
+ import { u as L, s as u, c as N } from "./DefaultPropsProvider-Cqcb4sws.js";
9
+ import { I as te } from "./IconButton-CCNUMz2l.js";
10
+ import { c as T } from "./capitalize-3KLkrEtk.js";
11
+ import { P as se } from "./Paper-BiZq6EF2.js";
12
+ import { T as ne } from "./Typography-SIQ6eleU.js";
13
+ function re(o) {
14
+ return z("MuiAlertTitle", o);
15
+ }
16
+ const $e = R("MuiAlertTitle", ["root"]), le = (o) => {
17
+ const {
18
+ classes: s
19
+ } = o;
20
+ return N({
21
+ root: ["root"]
22
+ }, re, s);
23
+ }, ae = u(ne, {
24
+ name: "MuiAlertTitle",
25
+ slot: "Root",
26
+ overridesResolver: (o, s) => s.root
27
+ })(B(({
28
+ theme: o
29
+ }) => ({
30
+ fontWeight: o.typography.fontWeightMedium,
31
+ marginTop: -2
32
+ }))), k = /* @__PURE__ */ $.forwardRef(function(s, r) {
33
+ const t = L({
34
+ props: s,
35
+ name: "MuiAlertTitle"
36
+ }), {
37
+ className: l,
38
+ ...p
39
+ } = t, f = t, g = le(f);
40
+ return /* @__PURE__ */ n(ae, {
41
+ gutterBottom: !0,
42
+ component: "div",
43
+ ownerState: f,
44
+ ref: r,
45
+ className: w(g.root, l),
46
+ ...p
47
+ });
48
+ });
49
+ process.env.NODE_ENV !== "production" && (k.propTypes = {
50
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
51
+ // │ These PropTypes are generated from the TypeScript type definitions. │
52
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
53
+ // └─────────────────────────────────────────────────────────────────────┘
54
+ /**
55
+ * The content of the component.
56
+ */
57
+ children: e.node,
58
+ /**
59
+ * Override or extend the styles applied to the component.
60
+ */
61
+ classes: e.object,
62
+ /**
63
+ * @ignore
64
+ */
65
+ className: e.string,
66
+ /**
67
+ * The system prop that allows defining system overrides as well as additional CSS styles.
68
+ */
69
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
70
+ });
71
+ const ie = d(/* @__PURE__ */ n("path", {
72
+ d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
73
+ }), "Close");
74
+ function ce(o) {
75
+ return z("MuiAlert", o);
76
+ }
77
+ const P = R("MuiAlert", ["root", "action", "icon", "message", "filled", "colorSuccess", "colorInfo", "colorWarning", "colorError", "filledSuccess", "filledInfo", "filledWarning", "filledError", "outlined", "outlinedSuccess", "outlinedInfo", "outlinedWarning", "outlinedError", "standard", "standardSuccess", "standardInfo", "standardWarning", "standardError"]), pe = d(/* @__PURE__ */ n("path", {
78
+ d: "M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"
79
+ }), "SuccessOutlined"), de = d(/* @__PURE__ */ n("path", {
80
+ d: "M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"
81
+ }), "ReportProblemOutlined"), ue = d(/* @__PURE__ */ n("path", {
82
+ d: "M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"
83
+ }), "ErrorOutline"), fe = d(/* @__PURE__ */ n("path", {
84
+ d: "M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"
85
+ }), "InfoOutlined"), ge = (o) => {
86
+ const {
87
+ variant: s,
88
+ color: r,
89
+ severity: t,
90
+ classes: l
91
+ } = o, p = {
92
+ root: ["root", `color${T(r || t)}`, `${s}${T(r || t)}`, `${s}`],
93
+ icon: ["icon"],
94
+ message: ["message"],
95
+ action: ["action"]
96
+ };
97
+ return N(p, ce, l);
98
+ }, me = u(se, {
99
+ name: "MuiAlert",
100
+ slot: "Root",
101
+ overridesResolver: (o, s) => {
102
+ const {
103
+ ownerState: r
104
+ } = o;
105
+ return [s.root, s[r.variant], s[`${r.variant}${T(r.color || r.severity)}`]];
106
+ }
107
+ })(B(({
108
+ theme: o
109
+ }) => {
110
+ const s = o.palette.mode === "light" ? b : h, r = o.palette.mode === "light" ? h : b;
111
+ return {
112
+ ...o.typography.body2,
113
+ backgroundColor: "transparent",
114
+ display: "flex",
115
+ padding: "6px 16px",
116
+ variants: [...Object.entries(o.palette).filter(v(["light"])).map(([t]) => ({
117
+ props: {
118
+ colorSeverity: t,
119
+ variant: "standard"
120
+ },
121
+ style: {
122
+ color: o.vars ? o.vars.palette.Alert[`${t}Color`] : s(o.palette[t].light, 0.6),
123
+ backgroundColor: o.vars ? o.vars.palette.Alert[`${t}StandardBg`] : r(o.palette[t].light, 0.9),
124
+ [`& .${P.icon}`]: o.vars ? {
125
+ color: o.vars.palette.Alert[`${t}IconColor`]
126
+ } : {
127
+ color: o.palette[t].main
128
+ }
129
+ }
130
+ })), ...Object.entries(o.palette).filter(v(["light"])).map(([t]) => ({
131
+ props: {
132
+ colorSeverity: t,
133
+ variant: "outlined"
134
+ },
135
+ style: {
136
+ color: o.vars ? o.vars.palette.Alert[`${t}Color`] : s(o.palette[t].light, 0.6),
137
+ border: `1px solid ${(o.vars || o).palette[t].light}`,
138
+ [`& .${P.icon}`]: o.vars ? {
139
+ color: o.vars.palette.Alert[`${t}IconColor`]
140
+ } : {
141
+ color: o.palette[t].main
142
+ }
143
+ }
144
+ })), ...Object.entries(o.palette).filter(v(["dark"])).map(([t]) => ({
145
+ props: {
146
+ colorSeverity: t,
147
+ variant: "filled"
148
+ },
149
+ style: {
150
+ fontWeight: o.typography.fontWeightMedium,
151
+ ...o.vars ? {
152
+ color: o.vars.palette.Alert[`${t}FilledColor`],
153
+ backgroundColor: o.vars.palette.Alert[`${t}FilledBg`]
154
+ } : {
155
+ backgroundColor: o.palette.mode === "dark" ? o.palette[t].dark : o.palette[t].main,
156
+ color: o.palette.getContrastText(o.palette[t].main)
157
+ }
158
+ }
159
+ }))]
160
+ };
161
+ })), ye = u("div", {
162
+ name: "MuiAlert",
163
+ slot: "Icon",
164
+ overridesResolver: (o, s) => s.icon
165
+ })({
166
+ marginRight: 12,
167
+ padding: "7px 0",
168
+ display: "flex",
169
+ fontSize: 22,
170
+ opacity: 0.9
171
+ }), ve = u("div", {
172
+ name: "MuiAlert",
173
+ slot: "Message",
174
+ overridesResolver: (o, s) => s.message
175
+ })({
176
+ padding: "8px 0",
177
+ minWidth: 0,
178
+ overflow: "auto"
179
+ }), Te = u("div", {
180
+ name: "MuiAlert",
181
+ slot: "Action",
182
+ overridesResolver: (o, s) => s.action
183
+ })({
184
+ display: "flex",
185
+ alignItems: "flex-start",
186
+ padding: "4px 0 0 16px",
187
+ marginLeft: "auto",
188
+ marginRight: -8
189
+ }), x = {
190
+ success: /* @__PURE__ */ n(pe, {
191
+ fontSize: "inherit"
192
+ }),
193
+ warning: /* @__PURE__ */ n(de, {
194
+ fontSize: "inherit"
195
+ }),
196
+ error: /* @__PURE__ */ n(ue, {
197
+ fontSize: "inherit"
198
+ }),
199
+ info: /* @__PURE__ */ n(fe, {
200
+ fontSize: "inherit"
201
+ })
202
+ }, E = /* @__PURE__ */ $.forwardRef(function(s, r) {
203
+ const t = L({
204
+ props: s,
205
+ name: "MuiAlert"
206
+ }), {
207
+ action: l,
208
+ children: p,
209
+ className: f,
210
+ closeText: g = "Close",
211
+ color: A,
212
+ components: C = {},
213
+ componentsProps: W = {},
214
+ icon: S,
215
+ iconMapping: F = x,
216
+ onClose: I,
217
+ role: H = "alert",
218
+ severity: m = "success",
219
+ slotProps: U = {},
220
+ slots: V = {},
221
+ variant: D = "standard",
222
+ ...Z
223
+ } = t, a = {
224
+ ...t,
225
+ color: A,
226
+ severity: m,
227
+ variant: D,
228
+ colorSeverity: A || m
229
+ }, y = ge(a), i = {
230
+ slots: {
231
+ closeButton: C.CloseButton,
232
+ closeIcon: C.CloseIcon,
233
+ ...V
234
+ },
235
+ slotProps: {
236
+ ...W,
237
+ ...U
238
+ }
239
+ }, [_, q] = c("root", {
240
+ ref: r,
241
+ shouldForwardComponentProp: !0,
242
+ className: w(y.root, f),
243
+ elementType: me,
244
+ externalForwardedProps: {
245
+ ...i,
246
+ ...Z
247
+ },
248
+ ownerState: a,
249
+ additionalProps: {
250
+ role: H,
251
+ elevation: 0
252
+ }
253
+ }), [G, J] = c("icon", {
254
+ className: y.icon,
255
+ elementType: ye,
256
+ externalForwardedProps: i,
257
+ ownerState: a
258
+ }), [K, Q] = c("message", {
259
+ className: y.message,
260
+ elementType: ve,
261
+ externalForwardedProps: i,
262
+ ownerState: a
263
+ }), [O, M] = c("action", {
264
+ className: y.action,
265
+ elementType: Te,
266
+ externalForwardedProps: i,
267
+ ownerState: a
268
+ }), [X, Y] = c("closeButton", {
269
+ elementType: te,
270
+ externalForwardedProps: i,
271
+ ownerState: a
272
+ }), [ee, oe] = c("closeIcon", {
273
+ elementType: ie,
274
+ externalForwardedProps: i,
275
+ ownerState: a
276
+ });
277
+ return /* @__PURE__ */ j(_, {
278
+ ...q,
279
+ children: [S !== !1 ? /* @__PURE__ */ n(G, {
280
+ ...J,
281
+ children: S || F[m] || x[m]
282
+ }) : null, /* @__PURE__ */ n(K, {
283
+ ...Q,
284
+ children: p
285
+ }), l != null ? /* @__PURE__ */ n(O, {
286
+ ...M,
287
+ children: l
288
+ }) : null, l == null && I ? /* @__PURE__ */ n(O, {
289
+ ...M,
290
+ children: /* @__PURE__ */ n(X, {
291
+ size: "small",
292
+ "aria-label": g,
293
+ title: g,
294
+ color: "inherit",
295
+ onClick: I,
296
+ ...Y,
297
+ children: /* @__PURE__ */ n(ee, {
298
+ fontSize: "small",
299
+ ...oe
300
+ })
301
+ })
302
+ }) : null]
303
+ });
304
+ });
305
+ process.env.NODE_ENV !== "production" && (E.propTypes = {
306
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
307
+ // │ These PropTypes are generated from the TypeScript type definitions. │
308
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
309
+ // └─────────────────────────────────────────────────────────────────────┘
310
+ /**
311
+ * The action to display. It renders after the message, at the end of the alert.
312
+ */
313
+ action: e.node,
314
+ /**
315
+ * The content of the component.
316
+ */
317
+ children: e.node,
318
+ /**
319
+ * Override or extend the styles applied to the component.
320
+ */
321
+ classes: e.object,
322
+ /**
323
+ * @ignore
324
+ */
325
+ className: e.string,
326
+ /**
327
+ * Override the default label for the *close popup* icon button.
328
+ *
329
+ * For localization purposes, you can use the provided [translations](https://mui.com/material-ui/guides/localization/).
330
+ * @default 'Close'
331
+ */
332
+ closeText: e.string,
333
+ /**
334
+ * The color of the component. Unless provided, the value is taken from the `severity` prop.
335
+ * It supports both default and custom theme colors, which can be added as shown in the
336
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
337
+ */
338
+ color: e.oneOfType([e.oneOf(["error", "info", "success", "warning"]), e.string]),
339
+ /**
340
+ * The components used for each slot inside.
341
+ *
342
+ * @deprecated use the `slots` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
343
+ *
344
+ * @default {}
345
+ */
346
+ components: e.shape({
347
+ CloseButton: e.elementType,
348
+ CloseIcon: e.elementType
349
+ }),
350
+ /**
351
+ * The extra props for the slot components.
352
+ * You can override the existing props or add new ones.
353
+ *
354
+ * @deprecated use the `slotProps` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
355
+ *
356
+ * @default {}
357
+ */
358
+ componentsProps: e.shape({
359
+ closeButton: e.object,
360
+ closeIcon: e.object
361
+ }),
362
+ /**
363
+ * Override the icon displayed before the children.
364
+ * Unless provided, the icon is mapped to the value of the `severity` prop.
365
+ * Set to `false` to remove the `icon`.
366
+ */
367
+ icon: e.node,
368
+ /**
369
+ * The component maps the `severity` prop to a range of different icons,
370
+ * for instance success to `<SuccessOutlined>`.
371
+ * If you wish to change this mapping, you can provide your own.
372
+ * Alternatively, you can use the `icon` prop to override the icon displayed.
373
+ */
374
+ iconMapping: e.shape({
375
+ error: e.node,
376
+ info: e.node,
377
+ success: e.node,
378
+ warning: e.node
379
+ }),
380
+ /**
381
+ * Callback fired when the component requests to be closed.
382
+ * When provided and no `action` prop is set, a close icon button is displayed that triggers the callback when clicked.
383
+ * @param {React.SyntheticEvent} event The event source of the callback.
384
+ */
385
+ onClose: e.func,
386
+ /**
387
+ * The ARIA role attribute of the element.
388
+ * @default 'alert'
389
+ */
390
+ role: e.string,
391
+ /**
392
+ * The severity of the alert. This defines the color and icon used.
393
+ * @default 'success'
394
+ */
395
+ severity: e.oneOfType([e.oneOf(["error", "info", "success", "warning"]), e.string]),
396
+ /**
397
+ * The props used for each slot inside.
398
+ * @default {}
399
+ */
400
+ slotProps: e.shape({
401
+ action: e.oneOfType([e.func, e.object]),
402
+ closeButton: e.oneOfType([e.func, e.object]),
403
+ closeIcon: e.oneOfType([e.func, e.object]),
404
+ icon: e.oneOfType([e.func, e.object]),
405
+ message: e.oneOfType([e.func, e.object]),
406
+ root: e.oneOfType([e.func, e.object])
407
+ }),
408
+ /**
409
+ * The components used for each slot inside.
410
+ * @default {}
411
+ */
412
+ slots: e.shape({
413
+ action: e.elementType,
414
+ closeButton: e.elementType,
415
+ closeIcon: e.elementType,
416
+ icon: e.elementType,
417
+ message: e.elementType,
418
+ root: e.elementType
419
+ }),
420
+ /**
421
+ * The system prop that allows defining system overrides as well as additional CSS styles.
422
+ */
423
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
424
+ /**
425
+ * The variant to use.
426
+ * @default 'standard'
427
+ */
428
+ variant: e.oneOfType([e.oneOf(["filled", "outlined", "standard"]), e.string])
429
+ });
430
+ const Re = (o) => /* @__PURE__ */ j(E, { ...o, color: o.severity, children: [
431
+ o.title && /* @__PURE__ */ n(k, { children: o.title }),
432
+ o.children
433
+ ] });
434
+ export {
435
+ k as A,
436
+ ie as C,
437
+ $e as a,
438
+ Re as b,
439
+ re as g
440
+ };