@cgi-learning-hub/ui 1.4.0-dev.1742808353 → 1.4.0-dev.1742811842
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/Alert-CvizDCvx.cjs +1 -0
- package/dist/{Alert-Cf7qtf3j.js → Alert-D7eKsj1P.js} +69 -72
- package/dist/Autocomplete-Cfz4sLy8.js +1829 -0
- package/dist/Autocomplete-DjU6i3zL.cjs +6 -0
- package/dist/Close-ZXg7X3Tz.cjs +1 -0
- package/dist/Close-r-ZUhk0-.js +9 -0
- package/dist/{ToggleButtonGroup-C4TIPNEI.js → ToggleButtonGroup-B-zfmsAO.js} +2531 -4342
- package/dist/ToggleButtonGroup-D3bdznCl.cjs +137 -0
- package/dist/components/Alert/Alert.cjs.js +1 -1
- package/dist/components/Alert/Alert.es.js +1 -1
- package/dist/components/Alert/index.cjs.js +1 -1
- package/dist/components/Alert/index.es.js +1 -1
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.es.js +366 -365
- package/dist/components/stories/Alert.stories.cjs.js +1 -1
- package/dist/components/stories/Alert.stories.es.js +1 -1
- package/dist/components/stories/Autocomplete.stories.cjs.js +3 -0
- package/dist/components/stories/Autocomplete.stories.d.ts +6 -0
- package/dist/components/stories/Autocomplete.stories.es.js +62 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +366 -365
- package/package.json +1 -1
- package/dist/Alert-YypXW36J.cjs +0 -1
- package/dist/ToggleButtonGroup-D1NZalgd.cjs +0 -142
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const n=require("react/jsx-runtime"),J=require("./useTheme-MahNaB8C.cjs"),K=require("react"),e=require("./generateUtilityClasses-KugHyZhN.cjs"),I=require("./memoTheme-WwIyYqBX.cjs"),c=require("./useSlot-CGbU9jGm.cjs"),f=require("./createSimplePaletteValueFilter-PTK3TAhW.cjs"),g=require("./createSvgIcon-2wwaxLPT.cjs"),Q=require("./Close-ZXg7X3Tz.cjs"),l=require("./DefaultPropsProvider-BTnRBr0O.cjs"),X=require("./IconButton-BLZJne06.cjs"),m=require("./capitalize-B3tmp8MO.cjs"),Y=require("./Paper-ByOgFIEE.cjs"),ee=require("./Typography-3CpuuLtj.cjs");function oe(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=oe(K);function z(o){return e.generateUtilityClass("MuiAlertTitle",o)}const te=e.generateUtilityClasses("MuiAlertTitle",["root"]),se=o=>{const{classes:s}=o,r={root:["root"]};return l.composeClasses(r,z,s)},re=l.styled(ee.Typography,{name:"MuiAlertTitle",slot:"Root",overridesResolver:(o,s)=>s.root})(I.memoTheme(({theme:o})=>({fontWeight:o.typography.fontWeightMedium,marginTop:-2}))),v=M.forwardRef(function(s,r){const t=l.useDefaultProps({props:s,name:"MuiAlertTitle"}),{className:p,...y}=t,u=t,d=se(u);return n.jsx(re,{gutterBottom:!0,component:"div",ownerState:u,ref:r,className:e.clsx(d.root,p),...y})});process.env.NODE_ENV!=="production"&&(v.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])});function ne(o){return e.generateUtilityClass("MuiAlert",o)}const b=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"]),le=g.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"),pe=g.createSvgIcon(n.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),ae=g.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"),ie=g.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"),ce=o=>{const{variant:s,color:r,severity:t,classes:p}=o,y={root:["root",`color${m.capitalize(r||t)}`,`${s}${m.capitalize(r||t)}`,`${s}`],icon:["icon"],message:["message"],action:["action"]};return l.composeClasses(y,ne,p)},ye=l.styled(Y.Paper,{name:"MuiAlert",slot:"Root",overridesResolver:(o,s)=>{const{ownerState:r}=o;return[s.root,s[r.variant],s[`${r.variant}${m.capitalize(r.color||r.severity)}`]]}})(I.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),[`& .${b.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}`,[`& .${b.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)}}}))]}})),ue=l.styled("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(o,s)=>s.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),de=l.styled("div",{name:"MuiAlert",slot:"Message",overridesResolver:(o,s)=>s.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),Te=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}),h={success:n.jsx(le,{fontSize:"inherit"}),warning:n.jsx(pe,{fontSize:"inherit"}),error:n.jsx(ae,{fontSize:"inherit"}),info:n.jsx(ie,{fontSize:"inherit"})},R=M.forwardRef(function(s,r){const t=l.useDefaultProps({props:s,name:"MuiAlert"}),{action:p,children:y,className:u,closeText:d="Close",color:S,components:C={},componentsProps:$={},icon:A,iconMapping:w=h,onClose:j,role:B="alert",severity:T="success",slotProps:q={},slots:N={},variant:k="standard",...L}=t,a={...t,color:S,severity:T,variant:k,colorSeverity:S||T},P=ce(a),i={slots:{closeButton:C.CloseButton,closeIcon:C.CloseIcon,...N},slotProps:{...$,...q}},[E,U]=c.useSlot("root",{ref:r,shouldForwardComponentProp:!0,className:e.clsx(P.root,u),elementType:ye,externalForwardedProps:{...i,...L},ownerState:a,additionalProps:{role:B,elevation:0}}),[F,V]=c.useSlot("icon",{className:P.icon,elementType:ue,externalForwardedProps:i,ownerState:a}),[W,D]=c.useSlot("message",{className:P.message,elementType:de,externalForwardedProps:i,ownerState:a}),[x,O]=c.useSlot("action",{className:P.action,elementType:Te,externalForwardedProps:i,ownerState:a}),[H,_]=c.useSlot("closeButton",{elementType:X.IconButton,externalForwardedProps:i,ownerState:a}),[Z,G]=c.useSlot("closeIcon",{elementType:Q.CloseIcon,externalForwardedProps:i,ownerState:a});return n.jsxs(E,{...U,children:[A!==!1?n.jsx(F,{...V,children:A||w[T]||h[T]}):null,n.jsx(W,{...D,children:y}),p!=null?n.jsx(x,{...O,children:p}):null,p==null&&j?n.jsx(x,{...O,children:n.jsx(H,{size:"small","aria-label":d,title:d,color:"inherit",onClick:j,..._,children:n.jsx(Z,{fontSize:"small",...G})})}):null]})});process.env.NODE_ENV!=="production"&&(R.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 Pe=({severity:o="success",...s})=>{const r=J.useTheme();return n.jsxs(R,{color:o,sx:{bgcolor:e.alpha(r.palette[o].light,.35)},...s,children:[s.title?n.jsx(v,{children:s.title}):null,s.children]})};exports.Alert=Pe;exports.AlertTitle=v;exports.alertTitleClasses=te;exports.getAlertTitleUtilityClass=z;
|
|
@@ -1,27 +1,28 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as r, jsxs as j } from "react/jsx-runtime";
|
|
2
2
|
import { u as te } from "./useTheme-DepbBZga.js";
|
|
3
3
|
import * as $ from "react";
|
|
4
4
|
import { G as R, H as z, I as w, P as e, q as h, s as M, n as se } from "./generateUtilityClasses-CqzQXpT_.js";
|
|
5
5
|
import { m as B } from "./memoTheme-B0xVysYu.js";
|
|
6
6
|
import { u as c } from "./useSlot-CqjfyGd9.js";
|
|
7
7
|
import { c as v } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
|
|
8
|
-
import { c as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
8
|
+
import { c as y } from "./createSvgIcon-BFqOnlgU.js";
|
|
9
|
+
import { C as ne } from "./Close-r-ZUhk0-.js";
|
|
10
|
+
import { u as N, s as d, c as L } from "./DefaultPropsProvider-CXfMJdg8.js";
|
|
11
|
+
import { I as re } from "./IconButton-BQW0xjdH.js";
|
|
11
12
|
import { c as T } from "./capitalize-Bs7Xs33U.js";
|
|
12
|
-
import { P as
|
|
13
|
-
import { T as
|
|
14
|
-
function
|
|
13
|
+
import { P as le } from "./Paper-DeL_n4k9.js";
|
|
14
|
+
import { T as ae } from "./Typography-DZ11k9cZ.js";
|
|
15
|
+
function ie(o) {
|
|
15
16
|
return z("MuiAlertTitle", o);
|
|
16
17
|
}
|
|
17
|
-
const
|
|
18
|
+
const Be = R("MuiAlertTitle", ["root"]), ce = (o) => {
|
|
18
19
|
const {
|
|
19
20
|
classes: s
|
|
20
21
|
} = o;
|
|
21
|
-
return
|
|
22
|
+
return L({
|
|
22
23
|
root: ["root"]
|
|
23
|
-
},
|
|
24
|
-
},
|
|
24
|
+
}, ie, s);
|
|
25
|
+
}, pe = d(ae, {
|
|
25
26
|
name: "MuiAlertTitle",
|
|
26
27
|
slot: "Root",
|
|
27
28
|
overridesResolver: (o, s) => s.root
|
|
@@ -30,20 +31,20 @@ const we = R("MuiAlertTitle", ["root"]), ie = (o) => {
|
|
|
30
31
|
}) => ({
|
|
31
32
|
fontWeight: o.typography.fontWeightMedium,
|
|
32
33
|
marginTop: -2
|
|
33
|
-
}))), k = /* @__PURE__ */ $.forwardRef(function(s,
|
|
34
|
-
const t =
|
|
34
|
+
}))), k = /* @__PURE__ */ $.forwardRef(function(s, n) {
|
|
35
|
+
const t = N({
|
|
35
36
|
props: s,
|
|
36
37
|
name: "MuiAlertTitle"
|
|
37
38
|
}), {
|
|
38
39
|
className: l,
|
|
39
40
|
...p
|
|
40
|
-
} = t,
|
|
41
|
-
return /* @__PURE__ */
|
|
41
|
+
} = t, u = t, f = ce(u);
|
|
42
|
+
return /* @__PURE__ */ r(pe, {
|
|
42
43
|
gutterBottom: !0,
|
|
43
44
|
component: "div",
|
|
44
|
-
ownerState:
|
|
45
|
-
ref:
|
|
46
|
-
className: w(
|
|
45
|
+
ownerState: u,
|
|
46
|
+
ref: n,
|
|
47
|
+
className: w(f.root, l),
|
|
47
48
|
...p
|
|
48
49
|
});
|
|
49
50
|
});
|
|
@@ -69,46 +70,43 @@ process.env.NODE_ENV !== "production" && (k.propTypes = {
|
|
|
69
70
|
*/
|
|
70
71
|
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
71
72
|
});
|
|
72
|
-
const pe = d(/* @__PURE__ */ n("path", {
|
|
73
|
-
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"
|
|
74
|
-
}), "Close");
|
|
75
73
|
function de(o) {
|
|
76
74
|
return z("MuiAlert", o);
|
|
77
75
|
}
|
|
78
|
-
const x = 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"]), ue =
|
|
76
|
+
const x = 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"]), ue = y(/* @__PURE__ */ r("path", {
|
|
79
77
|
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"
|
|
80
|
-
}), "SuccessOutlined"), fe =
|
|
78
|
+
}), "SuccessOutlined"), fe = y(/* @__PURE__ */ r("path", {
|
|
81
79
|
d: "M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"
|
|
82
|
-
}), "ReportProblemOutlined"), ge =
|
|
80
|
+
}), "ReportProblemOutlined"), ge = y(/* @__PURE__ */ r("path", {
|
|
83
81
|
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"
|
|
84
|
-
}), "ErrorOutline"), me =
|
|
82
|
+
}), "ErrorOutline"), me = y(/* @__PURE__ */ r("path", {
|
|
85
83
|
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"
|
|
86
84
|
}), "InfoOutlined"), ye = (o) => {
|
|
87
85
|
const {
|
|
88
86
|
variant: s,
|
|
89
|
-
color:
|
|
87
|
+
color: n,
|
|
90
88
|
severity: t,
|
|
91
89
|
classes: l
|
|
92
90
|
} = o, p = {
|
|
93
|
-
root: ["root", `color${T(
|
|
91
|
+
root: ["root", `color${T(n || t)}`, `${s}${T(n || t)}`, `${s}`],
|
|
94
92
|
icon: ["icon"],
|
|
95
93
|
message: ["message"],
|
|
96
94
|
action: ["action"]
|
|
97
95
|
};
|
|
98
|
-
return
|
|
99
|
-
}, ve =
|
|
96
|
+
return L(p, de, l);
|
|
97
|
+
}, ve = d(le, {
|
|
100
98
|
name: "MuiAlert",
|
|
101
99
|
slot: "Root",
|
|
102
100
|
overridesResolver: (o, s) => {
|
|
103
101
|
const {
|
|
104
|
-
ownerState:
|
|
102
|
+
ownerState: n
|
|
105
103
|
} = o;
|
|
106
|
-
return [s.root, s[
|
|
104
|
+
return [s.root, s[n.variant], s[`${n.variant}${T(n.color || n.severity)}`]];
|
|
107
105
|
}
|
|
108
106
|
})(B(({
|
|
109
107
|
theme: o
|
|
110
108
|
}) => {
|
|
111
|
-
const s = o.palette.mode === "light" ? h : M,
|
|
109
|
+
const s = o.palette.mode === "light" ? h : M, n = o.palette.mode === "light" ? M : h;
|
|
112
110
|
return {
|
|
113
111
|
...o.typography.body2,
|
|
114
112
|
backgroundColor: "transparent",
|
|
@@ -121,7 +119,7 @@ const x = R("MuiAlert", ["root", "action", "icon", "message", "filled", "colorSu
|
|
|
121
119
|
},
|
|
122
120
|
style: {
|
|
123
121
|
color: o.vars ? o.vars.palette.Alert[`${t}Color`] : s(o.palette[t].light, 0.6),
|
|
124
|
-
backgroundColor: o.vars ? o.vars.palette.Alert[`${t}StandardBg`] :
|
|
122
|
+
backgroundColor: o.vars ? o.vars.palette.Alert[`${t}StandardBg`] : n(o.palette[t].light, 0.9),
|
|
125
123
|
[`& .${x.icon}`]: o.vars ? {
|
|
126
124
|
color: o.vars.palette.Alert[`${t}IconColor`]
|
|
127
125
|
} : {
|
|
@@ -159,7 +157,7 @@ const x = R("MuiAlert", ["root", "action", "icon", "message", "filled", "colorSu
|
|
|
159
157
|
}
|
|
160
158
|
}))]
|
|
161
159
|
};
|
|
162
|
-
})), Te =
|
|
160
|
+
})), Te = d("div", {
|
|
163
161
|
name: "MuiAlert",
|
|
164
162
|
slot: "Icon",
|
|
165
163
|
overridesResolver: (o, s) => s.icon
|
|
@@ -169,7 +167,7 @@ const x = R("MuiAlert", ["root", "action", "icon", "message", "filled", "colorSu
|
|
|
169
167
|
display: "flex",
|
|
170
168
|
fontSize: 22,
|
|
171
169
|
opacity: 0.9
|
|
172
|
-
}), Ae =
|
|
170
|
+
}), Ae = d("div", {
|
|
173
171
|
name: "MuiAlert",
|
|
174
172
|
slot: "Message",
|
|
175
173
|
overridesResolver: (o, s) => s.message
|
|
@@ -177,7 +175,7 @@ const x = R("MuiAlert", ["root", "action", "icon", "message", "filled", "colorSu
|
|
|
177
175
|
padding: "8px 0",
|
|
178
176
|
minWidth: 0,
|
|
179
177
|
overflow: "auto"
|
|
180
|
-
}), Ce =
|
|
178
|
+
}), Ce = d("div", {
|
|
181
179
|
name: "MuiAlert",
|
|
182
180
|
slot: "Action",
|
|
183
181
|
overridesResolver: (o, s) => s.action
|
|
@@ -188,27 +186,27 @@ const x = R("MuiAlert", ["root", "action", "icon", "message", "filled", "colorSu
|
|
|
188
186
|
marginLeft: "auto",
|
|
189
187
|
marginRight: -8
|
|
190
188
|
}), P = {
|
|
191
|
-
success: /* @__PURE__ */
|
|
189
|
+
success: /* @__PURE__ */ r(ue, {
|
|
192
190
|
fontSize: "inherit"
|
|
193
191
|
}),
|
|
194
|
-
warning: /* @__PURE__ */
|
|
192
|
+
warning: /* @__PURE__ */ r(fe, {
|
|
195
193
|
fontSize: "inherit"
|
|
196
194
|
}),
|
|
197
|
-
error: /* @__PURE__ */
|
|
195
|
+
error: /* @__PURE__ */ r(ge, {
|
|
198
196
|
fontSize: "inherit"
|
|
199
197
|
}),
|
|
200
|
-
info: /* @__PURE__ */
|
|
198
|
+
info: /* @__PURE__ */ r(me, {
|
|
201
199
|
fontSize: "inherit"
|
|
202
200
|
})
|
|
203
|
-
}, E = /* @__PURE__ */ $.forwardRef(function(s,
|
|
204
|
-
const t =
|
|
201
|
+
}, E = /* @__PURE__ */ $.forwardRef(function(s, n) {
|
|
202
|
+
const t = N({
|
|
205
203
|
props: s,
|
|
206
204
|
name: "MuiAlert"
|
|
207
205
|
}), {
|
|
208
206
|
action: l,
|
|
209
207
|
children: p,
|
|
210
|
-
className:
|
|
211
|
-
closeText:
|
|
208
|
+
className: u,
|
|
209
|
+
closeText: f = "Close",
|
|
212
210
|
color: A,
|
|
213
211
|
components: C = {},
|
|
214
212
|
componentsProps: W = {},
|
|
@@ -216,7 +214,7 @@ const x = R("MuiAlert", ["root", "action", "icon", "message", "filled", "colorSu
|
|
|
216
214
|
iconMapping: F = P,
|
|
217
215
|
onClose: I,
|
|
218
216
|
role: H = "alert",
|
|
219
|
-
severity:
|
|
217
|
+
severity: g = "success",
|
|
220
218
|
slotProps: U = {},
|
|
221
219
|
slots: V = {},
|
|
222
220
|
variant: D = "standard",
|
|
@@ -224,10 +222,10 @@ const x = R("MuiAlert", ["root", "action", "icon", "message", "filled", "colorSu
|
|
|
224
222
|
} = t, a = {
|
|
225
223
|
...t,
|
|
226
224
|
color: A,
|
|
227
|
-
severity:
|
|
225
|
+
severity: g,
|
|
228
226
|
variant: D,
|
|
229
|
-
colorSeverity: A ||
|
|
230
|
-
},
|
|
227
|
+
colorSeverity: A || g
|
|
228
|
+
}, m = ye(a), i = {
|
|
231
229
|
slots: {
|
|
232
230
|
closeButton: C.CloseButton,
|
|
233
231
|
closeIcon: C.CloseIcon,
|
|
@@ -238,9 +236,9 @@ const x = R("MuiAlert", ["root", "action", "icon", "message", "filled", "colorSu
|
|
|
238
236
|
...U
|
|
239
237
|
}
|
|
240
238
|
}, [_, q] = c("root", {
|
|
241
|
-
ref:
|
|
239
|
+
ref: n,
|
|
242
240
|
shouldForwardComponentProp: !0,
|
|
243
|
-
className: w(
|
|
241
|
+
className: w(m.root, u),
|
|
244
242
|
elementType: ve,
|
|
245
243
|
externalForwardedProps: {
|
|
246
244
|
...i,
|
|
@@ -252,50 +250,50 @@ const x = R("MuiAlert", ["root", "action", "icon", "message", "filled", "colorSu
|
|
|
252
250
|
elevation: 0
|
|
253
251
|
}
|
|
254
252
|
}), [G, J] = c("icon", {
|
|
255
|
-
className:
|
|
253
|
+
className: m.icon,
|
|
256
254
|
elementType: Te,
|
|
257
255
|
externalForwardedProps: i,
|
|
258
256
|
ownerState: a
|
|
259
257
|
}), [K, Q] = c("message", {
|
|
260
|
-
className:
|
|
258
|
+
className: m.message,
|
|
261
259
|
elementType: Ae,
|
|
262
260
|
externalForwardedProps: i,
|
|
263
261
|
ownerState: a
|
|
264
262
|
}), [O, b] = c("action", {
|
|
265
|
-
className:
|
|
263
|
+
className: m.action,
|
|
266
264
|
elementType: Ce,
|
|
267
265
|
externalForwardedProps: i,
|
|
268
266
|
ownerState: a
|
|
269
267
|
}), [X, Y] = c("closeButton", {
|
|
270
|
-
elementType:
|
|
268
|
+
elementType: re,
|
|
271
269
|
externalForwardedProps: i,
|
|
272
270
|
ownerState: a
|
|
273
271
|
}), [ee, oe] = c("closeIcon", {
|
|
274
|
-
elementType:
|
|
272
|
+
elementType: ne,
|
|
275
273
|
externalForwardedProps: i,
|
|
276
274
|
ownerState: a
|
|
277
275
|
});
|
|
278
276
|
return /* @__PURE__ */ j(_, {
|
|
279
277
|
...q,
|
|
280
|
-
children: [S !== !1 ? /* @__PURE__ */
|
|
278
|
+
children: [S !== !1 ? /* @__PURE__ */ r(G, {
|
|
281
279
|
...J,
|
|
282
|
-
children: S || F[
|
|
283
|
-
}) : null, /* @__PURE__ */
|
|
280
|
+
children: S || F[g] || P[g]
|
|
281
|
+
}) : null, /* @__PURE__ */ r(K, {
|
|
284
282
|
...Q,
|
|
285
283
|
children: p
|
|
286
|
-
}), l != null ? /* @__PURE__ */
|
|
284
|
+
}), l != null ? /* @__PURE__ */ r(O, {
|
|
287
285
|
...b,
|
|
288
286
|
children: l
|
|
289
|
-
}) : null, l == null && I ? /* @__PURE__ */
|
|
287
|
+
}) : null, l == null && I ? /* @__PURE__ */ r(O, {
|
|
290
288
|
...b,
|
|
291
|
-
children: /* @__PURE__ */
|
|
289
|
+
children: /* @__PURE__ */ r(X, {
|
|
292
290
|
size: "small",
|
|
293
|
-
"aria-label":
|
|
294
|
-
title:
|
|
291
|
+
"aria-label": f,
|
|
292
|
+
title: f,
|
|
295
293
|
color: "inherit",
|
|
296
294
|
onClick: I,
|
|
297
295
|
...Y,
|
|
298
|
-
children: /* @__PURE__ */
|
|
296
|
+
children: /* @__PURE__ */ r(ee, {
|
|
299
297
|
fontSize: "small",
|
|
300
298
|
...oe
|
|
301
299
|
})
|
|
@@ -428,19 +426,19 @@ process.env.NODE_ENV !== "production" && (E.propTypes = {
|
|
|
428
426
|
*/
|
|
429
427
|
variant: e.oneOfType([e.oneOf(["filled", "outlined", "standard"]), e.string])
|
|
430
428
|
});
|
|
431
|
-
const
|
|
429
|
+
const Ne = ({
|
|
432
430
|
severity: o = "success",
|
|
433
431
|
...s
|
|
434
432
|
}) => {
|
|
435
|
-
const
|
|
433
|
+
const n = te();
|
|
436
434
|
return /* @__PURE__ */ j(
|
|
437
435
|
E,
|
|
438
436
|
{
|
|
439
437
|
color: o,
|
|
440
|
-
sx: { bgcolor: se(
|
|
438
|
+
sx: { bgcolor: se(n.palette[o].light, 0.35) },
|
|
441
439
|
...s,
|
|
442
440
|
children: [
|
|
443
|
-
s.title ? /* @__PURE__ */
|
|
441
|
+
s.title ? /* @__PURE__ */ r(k, { children: s.title }) : null,
|
|
444
442
|
s.children
|
|
445
443
|
]
|
|
446
444
|
}
|
|
@@ -448,8 +446,7 @@ const Be = ({
|
|
|
448
446
|
};
|
|
449
447
|
export {
|
|
450
448
|
k as A,
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
ae as g
|
|
449
|
+
Be as a,
|
|
450
|
+
Ne as b,
|
|
451
|
+
ie as g
|
|
455
452
|
};
|