@notificationapi/react 1.4.0 → 1.5.0
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/assets/Badge.js +1 -1
- package/dist/assets/Box.js +13 -13
- package/dist/assets/Button.js +781 -0
- package/dist/assets/ButtonBase.js +409 -622
- package/dist/assets/DefaultPropsProvider.js +220 -215
- package/dist/assets/Divider.js +105 -154
- package/dist/assets/Grow.js +201 -0
- package/dist/assets/IconButton.js +1 -1
- package/dist/assets/List.js +142 -0
- package/dist/assets/Modal.js +1094 -0
- package/dist/assets/Notification.js +80 -79
- package/dist/assets/Paper.js +1 -1
- package/dist/assets/Popover.js +8 -6
- package/dist/assets/Portal.js +2 -2
- package/dist/assets/Stack.js +216 -0
- package/dist/assets/Typography.js +193 -117
- package/dist/assets/WebPushOptInMessage.js +40 -814
- package/dist/assets/createSvgIcon.js +5 -5
- package/dist/assets/dividerClasses.js +56 -0
- package/dist/assets/index.js +151 -0
- package/dist/assets/useTheme2.js +253 -11
- package/dist/assets/utils.js +4 -4
- package/dist/components/Notifications/Inbox.js +2927 -9
- package/dist/components/Notifications/InboxHeader.js +2146 -7
- package/dist/components/Notifications/NotificationFeed.js +13 -13
- package/dist/components/Notifications/NotificationLauncher.js +2 -2
- package/dist/components/Notifications/NotificationPopup.js +7 -7
- package/dist/components/Preferences/NotificationPreferencesPopup.js +608 -7
- package/dist/components/Preferences/PreferenceInput.js +1451 -6
- package/dist/components/Preferences/Preferences.js +368 -515
- package/dist/components/Preferences/index.js +1 -1
- package/dist/components/Provider/index.js +226 -202
- package/dist/components/Slack/SlackConnect.d.ts +12 -0
- package/dist/components/Slack/SlackConnect.js +4826 -0
- package/dist/components/Slack/index.d.ts +1 -0
- package/dist/components/Slack/index.js +4 -0
- package/dist/components/WebPush/WebPushOptInMessage.js +3 -2
- package/dist/main.d.ts +1 -0
- package/dist/main.js +5 -3
- package/package.json +4 -4
- package/dist/assets/Inbox.js +0 -3061
- package/dist/assets/InboxHeader.js +0 -2338
- package/dist/assets/NotificationPreferencesPopup.js +0 -1694
- package/dist/assets/PreferenceInput.js +0 -1657
|
@@ -1,192 +1,45 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import * as
|
|
3
|
-
import { useContext as
|
|
4
|
-
import { NotificationAPIContext as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
* react-is.production.js
|
|
20
|
-
*
|
|
21
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
-
*
|
|
23
|
-
* This source code is licensed under the MIT license found in the
|
|
24
|
-
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/
|
|
26
|
-
var pe;
|
|
27
|
-
function Fe() {
|
|
28
|
-
if (pe) return l;
|
|
29
|
-
pe = 1;
|
|
30
|
-
var o = Symbol.for("react.transitional.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), p = Symbol.for("react.consumer"), f = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), E = Symbol.for("react.suspense"), a = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), b = Symbol.for("react.offscreen"), x = Symbol.for("react.client.reference");
|
|
31
|
-
function g(e) {
|
|
32
|
-
if (typeof e == "object" && e !== null) {
|
|
33
|
-
var h = e.$$typeof;
|
|
34
|
-
switch (h) {
|
|
35
|
-
case o:
|
|
36
|
-
switch (e = e.type, e) {
|
|
37
|
-
case n:
|
|
38
|
-
case c:
|
|
39
|
-
case s:
|
|
40
|
-
case E:
|
|
41
|
-
case a:
|
|
42
|
-
return e;
|
|
43
|
-
default:
|
|
44
|
-
switch (e = e && e.$$typeof, e) {
|
|
45
|
-
case f:
|
|
46
|
-
case u:
|
|
47
|
-
case T:
|
|
48
|
-
case y:
|
|
49
|
-
return e;
|
|
50
|
-
case p:
|
|
51
|
-
return e;
|
|
52
|
-
default:
|
|
53
|
-
return h;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
case r:
|
|
57
|
-
return h;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
return l.ContextConsumer = p, l.ContextProvider = f, l.Element = o, l.ForwardRef = u, l.Fragment = n, l.Lazy = T, l.Memo = y, l.Portal = r, l.Profiler = c, l.StrictMode = s, l.Suspense = E, l.SuspenseList = a, l.isContextConsumer = function(e) {
|
|
62
|
-
return g(e) === p;
|
|
63
|
-
}, l.isContextProvider = function(e) {
|
|
64
|
-
return g(e) === f;
|
|
65
|
-
}, l.isElement = function(e) {
|
|
66
|
-
return typeof e == "object" && e !== null && e.$$typeof === o;
|
|
67
|
-
}, l.isForwardRef = function(e) {
|
|
68
|
-
return g(e) === u;
|
|
69
|
-
}, l.isFragment = function(e) {
|
|
70
|
-
return g(e) === n;
|
|
71
|
-
}, l.isLazy = function(e) {
|
|
72
|
-
return g(e) === T;
|
|
73
|
-
}, l.isMemo = function(e) {
|
|
74
|
-
return g(e) === y;
|
|
75
|
-
}, l.isPortal = function(e) {
|
|
76
|
-
return g(e) === r;
|
|
77
|
-
}, l.isProfiler = function(e) {
|
|
78
|
-
return g(e) === c;
|
|
79
|
-
}, l.isStrictMode = function(e) {
|
|
80
|
-
return g(e) === s;
|
|
81
|
-
}, l.isSuspense = function(e) {
|
|
82
|
-
return g(e) === E;
|
|
83
|
-
}, l.isSuspenseList = function(e) {
|
|
84
|
-
return g(e) === a;
|
|
85
|
-
}, l.isValidElementType = function(e) {
|
|
86
|
-
return typeof e == "string" || typeof e == "function" || e === n || e === c || e === s || e === E || e === a || e === b || typeof e == "object" && e !== null && (e.$$typeof === T || e.$$typeof === y || e.$$typeof === f || e.$$typeof === p || e.$$typeof === u || e.$$typeof === x || e.getModuleId !== void 0);
|
|
87
|
-
}, l.typeOf = g, l;
|
|
88
|
-
}
|
|
89
|
-
var d = {};
|
|
90
|
-
/**
|
|
91
|
-
* @license React
|
|
92
|
-
* react-is.development.js
|
|
93
|
-
*
|
|
94
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
95
|
-
*
|
|
96
|
-
* This source code is licensed under the MIT license found in the
|
|
97
|
-
* LICENSE file in the root directory of this source tree.
|
|
98
|
-
*/
|
|
99
|
-
var fe;
|
|
100
|
-
function Le() {
|
|
101
|
-
return fe || (fe = 1, process.env.NODE_ENV !== "production" && function() {
|
|
102
|
-
function o(e) {
|
|
103
|
-
if (typeof e == "object" && e !== null) {
|
|
104
|
-
var h = e.$$typeof;
|
|
105
|
-
switch (h) {
|
|
106
|
-
case r:
|
|
107
|
-
switch (e = e.type, e) {
|
|
108
|
-
case s:
|
|
109
|
-
case p:
|
|
110
|
-
case c:
|
|
111
|
-
case a:
|
|
112
|
-
case y:
|
|
113
|
-
return e;
|
|
114
|
-
default:
|
|
115
|
-
switch (e = e && e.$$typeof, e) {
|
|
116
|
-
case u:
|
|
117
|
-
case E:
|
|
118
|
-
case b:
|
|
119
|
-
case T:
|
|
120
|
-
return e;
|
|
121
|
-
case f:
|
|
122
|
-
return e;
|
|
123
|
-
default:
|
|
124
|
-
return h;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
case n:
|
|
128
|
-
return h;
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
var r = Symbol.for("react.transitional.element"), n = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), c = Symbol.for("react.strict_mode"), p = Symbol.for("react.profiler"), f = Symbol.for("react.consumer"), u = Symbol.for("react.context"), E = Symbol.for("react.forward_ref"), a = Symbol.for("react.suspense"), y = Symbol.for("react.suspense_list"), T = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), x = Symbol.for("react.offscreen"), g = Symbol.for("react.client.reference");
|
|
133
|
-
d.ContextConsumer = f, d.ContextProvider = u, d.Element = r, d.ForwardRef = E, d.Fragment = s, d.Lazy = b, d.Memo = T, d.Portal = n, d.Profiler = p, d.StrictMode = c, d.Suspense = a, d.SuspenseList = y, d.isContextConsumer = function(e) {
|
|
134
|
-
return o(e) === f;
|
|
135
|
-
}, d.isContextProvider = function(e) {
|
|
136
|
-
return o(e) === u;
|
|
137
|
-
}, d.isElement = function(e) {
|
|
138
|
-
return typeof e == "object" && e !== null && e.$$typeof === r;
|
|
139
|
-
}, d.isForwardRef = function(e) {
|
|
140
|
-
return o(e) === E;
|
|
141
|
-
}, d.isFragment = function(e) {
|
|
142
|
-
return o(e) === s;
|
|
143
|
-
}, d.isLazy = function(e) {
|
|
144
|
-
return o(e) === b;
|
|
145
|
-
}, d.isMemo = function(e) {
|
|
146
|
-
return o(e) === T;
|
|
147
|
-
}, d.isPortal = function(e) {
|
|
148
|
-
return o(e) === n;
|
|
149
|
-
}, d.isProfiler = function(e) {
|
|
150
|
-
return o(e) === p;
|
|
151
|
-
}, d.isStrictMode = function(e) {
|
|
152
|
-
return o(e) === c;
|
|
153
|
-
}, d.isSuspense = function(e) {
|
|
154
|
-
return o(e) === a;
|
|
155
|
-
}, d.isSuspenseList = function(e) {
|
|
156
|
-
return o(e) === y;
|
|
157
|
-
}, d.isValidElementType = function(e) {
|
|
158
|
-
return typeof e == "string" || typeof e == "function" || e === s || e === p || e === c || e === a || e === y || e === x || typeof e == "object" && e !== null && (e.$$typeof === b || e.$$typeof === T || e.$$typeof === u || e.$$typeof === f || e.$$typeof === E || e.$$typeof === g || e.getModuleId !== void 0);
|
|
159
|
-
}, d.typeOf = o;
|
|
160
|
-
}()), d;
|
|
161
|
-
}
|
|
162
|
-
process.env.NODE_ENV === "production" ? te.exports = Fe() : te.exports = Le();
|
|
163
|
-
var Ye = te.exports;
|
|
164
|
-
function ze(o) {
|
|
165
|
-
return Z("MuiCollapse", o);
|
|
1
|
+
import { jsx as i, jsxs as G, Fragment as he } from "react/jsx-runtime";
|
|
2
|
+
import * as p from "react";
|
|
3
|
+
import { useContext as ye } from "react";
|
|
4
|
+
import { NotificationAPIContext as be } from "../Provider/context.js";
|
|
5
|
+
import { PreferenceInput as ie } from "./PreferenceInput.js";
|
|
6
|
+
import { r as xe } from "../../assets/index.js";
|
|
7
|
+
import { g as q, e as _, s as T, m as I, u as J, c as U, P as e, b as K, L as ve } from "../../assets/DefaultPropsProvider.js";
|
|
8
|
+
import { u as Ce, e as Te, a as se, c as we, B as Ee } from "../../assets/ButtonBase.js";
|
|
9
|
+
import { P as Re } from "../../assets/Paper.js";
|
|
10
|
+
import { a as Ae } from "../../assets/dividerClasses.js";
|
|
11
|
+
import { u as Se } from "../../assets/useTheme.js";
|
|
12
|
+
import { T as Ne, g as ae } from "../../assets/utils.js";
|
|
13
|
+
import { u as Ie } from "../../assets/resolveComponentProps.js";
|
|
14
|
+
import { c as De } from "../../assets/createSvgIcon.js";
|
|
15
|
+
import { T as ce } from "../../assets/Typography.js";
|
|
16
|
+
import { B as Me } from "../../assets/Box.js";
|
|
17
|
+
function Pe(o) {
|
|
18
|
+
return _("MuiCollapse", o);
|
|
166
19
|
}
|
|
167
|
-
|
|
168
|
-
const
|
|
20
|
+
q("MuiCollapse", ["root", "horizontal", "vertical", "entered", "hidden", "wrapper", "wrapperInner"]);
|
|
21
|
+
const Oe = (o) => {
|
|
169
22
|
const {
|
|
170
|
-
orientation:
|
|
23
|
+
orientation: t,
|
|
171
24
|
classes: n
|
|
172
25
|
} = o, s = {
|
|
173
|
-
root: ["root", `${
|
|
26
|
+
root: ["root", `${t}`],
|
|
174
27
|
entered: ["entered"],
|
|
175
28
|
hidden: ["hidden"],
|
|
176
|
-
wrapper: ["wrapper", `${
|
|
177
|
-
wrapperInner: ["wrapperInner", `${
|
|
29
|
+
wrapper: ["wrapper", `${t}`],
|
|
30
|
+
wrapperInner: ["wrapperInner", `${t}`]
|
|
178
31
|
};
|
|
179
|
-
return K(s,
|
|
180
|
-
},
|
|
32
|
+
return K(s, Pe, n);
|
|
33
|
+
}, $e = T("div", {
|
|
181
34
|
name: "MuiCollapse",
|
|
182
35
|
slot: "Root",
|
|
183
|
-
overridesResolver: (o,
|
|
36
|
+
overridesResolver: (o, t) => {
|
|
184
37
|
const {
|
|
185
38
|
ownerState: n
|
|
186
39
|
} = o;
|
|
187
|
-
return [
|
|
40
|
+
return [t.root, t[n.orientation], n.state === "entered" && t.entered, n.state === "exited" && !n.in && n.collapsedSize === "0px" && t.hidden];
|
|
188
41
|
}
|
|
189
|
-
})(
|
|
42
|
+
})(I(({
|
|
190
43
|
theme: o
|
|
191
44
|
}) => ({
|
|
192
45
|
height: 0,
|
|
@@ -219,16 +72,16 @@ const Ve = (o) => {
|
|
|
219
72
|
}
|
|
220
73
|
}, {
|
|
221
74
|
props: ({
|
|
222
|
-
ownerState:
|
|
223
|
-
}) =>
|
|
75
|
+
ownerState: t
|
|
76
|
+
}) => t.state === "exited" && !t.in && t.collapsedSize === "0px",
|
|
224
77
|
style: {
|
|
225
78
|
visibility: "hidden"
|
|
226
79
|
}
|
|
227
80
|
}]
|
|
228
|
-
}))),
|
|
81
|
+
}))), ze = T("div", {
|
|
229
82
|
name: "MuiCollapse",
|
|
230
83
|
slot: "Wrapper",
|
|
231
|
-
overridesResolver: (o,
|
|
84
|
+
overridesResolver: (o, t) => t.wrapper
|
|
232
85
|
})({
|
|
233
86
|
// Hack to get children with a negative margin to not falsify the height computation.
|
|
234
87
|
display: "flex",
|
|
@@ -242,10 +95,10 @@ const Ve = (o) => {
|
|
|
242
95
|
height: "100%"
|
|
243
96
|
}
|
|
244
97
|
}]
|
|
245
|
-
}),
|
|
98
|
+
}), je = T("div", {
|
|
246
99
|
name: "MuiCollapse",
|
|
247
100
|
slot: "WrapperInner",
|
|
248
|
-
overridesResolver: (o,
|
|
101
|
+
overridesResolver: (o, t) => t.wrapperInner
|
|
249
102
|
})({
|
|
250
103
|
width: "100%",
|
|
251
104
|
variants: [{
|
|
@@ -257,135 +110,135 @@ const Ve = (o) => {
|
|
|
257
110
|
height: "100%"
|
|
258
111
|
}
|
|
259
112
|
}]
|
|
260
|
-
}),
|
|
113
|
+
}), L = /* @__PURE__ */ p.forwardRef(function(t, n) {
|
|
261
114
|
const s = J({
|
|
262
|
-
props:
|
|
115
|
+
props: t,
|
|
263
116
|
name: "MuiCollapse"
|
|
264
117
|
}), {
|
|
265
118
|
addEndListener: c,
|
|
266
|
-
children:
|
|
267
|
-
className:
|
|
268
|
-
collapsedSize:
|
|
269
|
-
component:
|
|
119
|
+
children: l,
|
|
120
|
+
className: u,
|
|
121
|
+
collapsedSize: d = "0px",
|
|
122
|
+
component: m,
|
|
270
123
|
easing: a,
|
|
271
|
-
in:
|
|
272
|
-
onEnter:
|
|
273
|
-
onEntered:
|
|
274
|
-
onEntering:
|
|
275
|
-
onExit:
|
|
276
|
-
onExited:
|
|
277
|
-
onExiting:
|
|
278
|
-
orientation:
|
|
124
|
+
in: g,
|
|
125
|
+
onEnter: E,
|
|
126
|
+
onEntered: R,
|
|
127
|
+
onEntering: A,
|
|
128
|
+
onExit: D,
|
|
129
|
+
onExited: w,
|
|
130
|
+
onExiting: v,
|
|
131
|
+
orientation: f = "vertical",
|
|
279
132
|
style: M,
|
|
280
|
-
timeout:
|
|
133
|
+
timeout: b = ve.standard,
|
|
281
134
|
// eslint-disable-next-line react/prop-types
|
|
282
|
-
TransitionComponent:
|
|
135
|
+
TransitionComponent: k = Ne,
|
|
283
136
|
...Q
|
|
284
|
-
} = s,
|
|
137
|
+
} = s, P = {
|
|
285
138
|
...s,
|
|
286
|
-
orientation:
|
|
287
|
-
collapsedSize:
|
|
288
|
-
},
|
|
289
|
-
if (
|
|
290
|
-
const
|
|
291
|
-
|
|
139
|
+
orientation: f,
|
|
140
|
+
collapsedSize: d
|
|
141
|
+
}, x = Oe(P), O = Se(), X = Ce(), C = p.useRef(null), $ = p.useRef(), z = typeof d == "number" ? `${d}px` : d, S = f === "horizontal", N = S ? "width" : "height", j = p.useRef(null), Y = Ie(n, j), V = (r) => (h) => {
|
|
142
|
+
if (r) {
|
|
143
|
+
const y = j.current;
|
|
144
|
+
h === void 0 ? r(y) : r(y, h);
|
|
292
145
|
}
|
|
293
|
-
},
|
|
294
|
-
|
|
295
|
-
}),
|
|
296
|
-
const
|
|
297
|
-
|
|
146
|
+
}, Z = () => C.current ? C.current[S ? "clientWidth" : "clientHeight"] : 0, le = V((r, h) => {
|
|
147
|
+
C.current && S && (C.current.style.position = "absolute"), r.style[N] = z, E && E(r, h);
|
|
148
|
+
}), pe = V((r, h) => {
|
|
149
|
+
const y = Z();
|
|
150
|
+
C.current && S && (C.current.style.position = "");
|
|
298
151
|
const {
|
|
299
|
-
duration:
|
|
300
|
-
easing:
|
|
301
|
-
} =
|
|
152
|
+
duration: B,
|
|
153
|
+
easing: H
|
|
154
|
+
} = ae({
|
|
302
155
|
style: M,
|
|
303
|
-
timeout:
|
|
156
|
+
timeout: b,
|
|
304
157
|
easing: a
|
|
305
158
|
}, {
|
|
306
159
|
mode: "enter"
|
|
307
160
|
});
|
|
308
|
-
if (
|
|
309
|
-
const
|
|
310
|
-
|
|
161
|
+
if (b === "auto") {
|
|
162
|
+
const re = O.transitions.getAutoHeightDuration(y);
|
|
163
|
+
r.style.transitionDuration = `${re}ms`, $.current = re;
|
|
311
164
|
} else
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
}),
|
|
315
|
-
|
|
316
|
-
}),
|
|
317
|
-
|
|
318
|
-
}),
|
|
319
|
-
const
|
|
320
|
-
duration:
|
|
321
|
-
easing:
|
|
322
|
-
} =
|
|
165
|
+
r.style.transitionDuration = typeof B == "string" ? B : `${B}ms`;
|
|
166
|
+
r.style[N] = `${y}px`, r.style.transitionTimingFunction = H, A && A(r, h);
|
|
167
|
+
}), ue = V((r, h) => {
|
|
168
|
+
r.style[N] = "auto", R && R(r, h);
|
|
169
|
+
}), fe = V((r) => {
|
|
170
|
+
r.style[N] = `${Z()}px`, D && D(r);
|
|
171
|
+
}), me = V(w), ge = V((r) => {
|
|
172
|
+
const h = Z(), {
|
|
173
|
+
duration: y,
|
|
174
|
+
easing: B
|
|
175
|
+
} = ae({
|
|
323
176
|
style: M,
|
|
324
|
-
timeout:
|
|
177
|
+
timeout: b,
|
|
325
178
|
easing: a
|
|
326
179
|
}, {
|
|
327
180
|
mode: "exit"
|
|
328
181
|
});
|
|
329
|
-
if (
|
|
330
|
-
const
|
|
331
|
-
|
|
182
|
+
if (b === "auto") {
|
|
183
|
+
const H = O.transitions.getAutoHeightDuration(h);
|
|
184
|
+
r.style.transitionDuration = `${H}ms`, $.current = H;
|
|
332
185
|
} else
|
|
333
|
-
|
|
334
|
-
|
|
186
|
+
r.style.transitionDuration = typeof y == "string" ? y : `${y}ms`;
|
|
187
|
+
r.style[N] = z, r.style.transitionTimingFunction = B, v && v(r);
|
|
335
188
|
});
|
|
336
|
-
return /* @__PURE__ */
|
|
337
|
-
in:
|
|
338
|
-
onEnter:
|
|
339
|
-
onEntered:
|
|
340
|
-
onEntering:
|
|
341
|
-
onExit:
|
|
342
|
-
onExited:
|
|
343
|
-
onExiting:
|
|
344
|
-
addEndListener: (
|
|
345
|
-
|
|
189
|
+
return /* @__PURE__ */ i(k, {
|
|
190
|
+
in: g,
|
|
191
|
+
onEnter: le,
|
|
192
|
+
onEntered: ue,
|
|
193
|
+
onEntering: pe,
|
|
194
|
+
onExit: fe,
|
|
195
|
+
onExited: me,
|
|
196
|
+
onExiting: ge,
|
|
197
|
+
addEndListener: (r) => {
|
|
198
|
+
b === "auto" && X.start($.current || 0, r), c && c(j.current, r);
|
|
346
199
|
},
|
|
347
|
-
nodeRef:
|
|
348
|
-
timeout:
|
|
200
|
+
nodeRef: j,
|
|
201
|
+
timeout: b === "auto" ? null : b,
|
|
349
202
|
...Q,
|
|
350
|
-
children: (
|
|
351
|
-
ownerState:
|
|
352
|
-
...
|
|
353
|
-
}) => /* @__PURE__ */
|
|
354
|
-
as:
|
|
355
|
-
className:
|
|
356
|
-
entered:
|
|
357
|
-
exited: !
|
|
358
|
-
}[
|
|
203
|
+
children: (r, {
|
|
204
|
+
ownerState: h,
|
|
205
|
+
...y
|
|
206
|
+
}) => /* @__PURE__ */ i($e, {
|
|
207
|
+
as: m,
|
|
208
|
+
className: U(x.root, u, {
|
|
209
|
+
entered: x.entered,
|
|
210
|
+
exited: !g && z === "0px" && x.hidden
|
|
211
|
+
}[r]),
|
|
359
212
|
style: {
|
|
360
|
-
[
|
|
213
|
+
[S ? "minWidth" : "minHeight"]: z,
|
|
361
214
|
...M
|
|
362
215
|
},
|
|
363
|
-
ref:
|
|
216
|
+
ref: Y,
|
|
364
217
|
ownerState: {
|
|
365
|
-
...
|
|
366
|
-
state:
|
|
218
|
+
...P,
|
|
219
|
+
state: r
|
|
367
220
|
},
|
|
368
|
-
...
|
|
369
|
-
children: /* @__PURE__ */
|
|
221
|
+
...y,
|
|
222
|
+
children: /* @__PURE__ */ i(ze, {
|
|
370
223
|
ownerState: {
|
|
371
|
-
...
|
|
372
|
-
state:
|
|
224
|
+
...P,
|
|
225
|
+
state: r
|
|
373
226
|
},
|
|
374
|
-
className:
|
|
375
|
-
ref:
|
|
376
|
-
children: /* @__PURE__ */
|
|
227
|
+
className: x.wrapper,
|
|
228
|
+
ref: C,
|
|
229
|
+
children: /* @__PURE__ */ i(je, {
|
|
377
230
|
ownerState: {
|
|
378
|
-
...
|
|
379
|
-
state:
|
|
231
|
+
...P,
|
|
232
|
+
state: r
|
|
380
233
|
},
|
|
381
|
-
className:
|
|
382
|
-
children:
|
|
234
|
+
className: x.wrapperInner,
|
|
235
|
+
children: l
|
|
383
236
|
})
|
|
384
237
|
})
|
|
385
238
|
})
|
|
386
239
|
});
|
|
387
240
|
});
|
|
388
|
-
process.env.NODE_ENV !== "production" && (
|
|
241
|
+
process.env.NODE_ENV !== "production" && (L.propTypes = {
|
|
389
242
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
390
243
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
391
244
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -395,78 +248,78 @@ process.env.NODE_ENV !== "production" && (H.propTypes = {
|
|
|
395
248
|
* node and a done callback. Allows for more fine grained transition end
|
|
396
249
|
* logic. Note: Timeouts are still used as a fallback if provided.
|
|
397
250
|
*/
|
|
398
|
-
addEndListener:
|
|
251
|
+
addEndListener: e.func,
|
|
399
252
|
/**
|
|
400
253
|
* The content node to be collapsed.
|
|
401
254
|
*/
|
|
402
|
-
children:
|
|
255
|
+
children: e.node,
|
|
403
256
|
/**
|
|
404
257
|
* Override or extend the styles applied to the component.
|
|
405
258
|
*/
|
|
406
|
-
classes:
|
|
259
|
+
classes: e.object,
|
|
407
260
|
/**
|
|
408
261
|
* @ignore
|
|
409
262
|
*/
|
|
410
|
-
className:
|
|
263
|
+
className: e.string,
|
|
411
264
|
/**
|
|
412
265
|
* The width (horizontal) or height (vertical) of the container when collapsed.
|
|
413
266
|
* @default '0px'
|
|
414
267
|
*/
|
|
415
|
-
collapsedSize:
|
|
268
|
+
collapsedSize: e.oneOfType([e.number, e.string]),
|
|
416
269
|
/**
|
|
417
270
|
* The component used for the root node.
|
|
418
271
|
* Either a string to use a HTML element or a component.
|
|
419
272
|
*/
|
|
420
|
-
component:
|
|
273
|
+
component: Te,
|
|
421
274
|
/**
|
|
422
275
|
* The transition timing function.
|
|
423
276
|
* You may specify a single easing or a object containing enter and exit values.
|
|
424
277
|
*/
|
|
425
|
-
easing:
|
|
426
|
-
enter:
|
|
427
|
-
exit:
|
|
428
|
-
}),
|
|
278
|
+
easing: e.oneOfType([e.shape({
|
|
279
|
+
enter: e.string,
|
|
280
|
+
exit: e.string
|
|
281
|
+
}), e.string]),
|
|
429
282
|
/**
|
|
430
283
|
* If `true`, the component will transition in.
|
|
431
284
|
*/
|
|
432
|
-
in:
|
|
285
|
+
in: e.bool,
|
|
433
286
|
/**
|
|
434
287
|
* @ignore
|
|
435
288
|
*/
|
|
436
|
-
onEnter:
|
|
289
|
+
onEnter: e.func,
|
|
437
290
|
/**
|
|
438
291
|
* @ignore
|
|
439
292
|
*/
|
|
440
|
-
onEntered:
|
|
293
|
+
onEntered: e.func,
|
|
441
294
|
/**
|
|
442
295
|
* @ignore
|
|
443
296
|
*/
|
|
444
|
-
onEntering:
|
|
297
|
+
onEntering: e.func,
|
|
445
298
|
/**
|
|
446
299
|
* @ignore
|
|
447
300
|
*/
|
|
448
|
-
onExit:
|
|
301
|
+
onExit: e.func,
|
|
449
302
|
/**
|
|
450
303
|
* @ignore
|
|
451
304
|
*/
|
|
452
|
-
onExited:
|
|
305
|
+
onExited: e.func,
|
|
453
306
|
/**
|
|
454
307
|
* @ignore
|
|
455
308
|
*/
|
|
456
|
-
onExiting:
|
|
309
|
+
onExiting: e.func,
|
|
457
310
|
/**
|
|
458
311
|
* The transition orientation.
|
|
459
312
|
* @default 'vertical'
|
|
460
313
|
*/
|
|
461
|
-
orientation:
|
|
314
|
+
orientation: e.oneOf(["horizontal", "vertical"]),
|
|
462
315
|
/**
|
|
463
316
|
* @ignore
|
|
464
317
|
*/
|
|
465
|
-
style:
|
|
318
|
+
style: e.object,
|
|
466
319
|
/**
|
|
467
320
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
468
321
|
*/
|
|
469
|
-
sx:
|
|
322
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
470
323
|
/**
|
|
471
324
|
* The duration for the transition, in milliseconds.
|
|
472
325
|
* You may specify a single timeout for all transitions, or individually with an object.
|
|
@@ -474,51 +327,51 @@ process.env.NODE_ENV !== "production" && (H.propTypes = {
|
|
|
474
327
|
* Set to 'auto' to automatically calculate transition time based on height.
|
|
475
328
|
* @default duration.standard
|
|
476
329
|
*/
|
|
477
|
-
timeout:
|
|
478
|
-
appear:
|
|
479
|
-
enter:
|
|
480
|
-
exit:
|
|
330
|
+
timeout: e.oneOfType([e.oneOf(["auto"]), e.number, e.shape({
|
|
331
|
+
appear: e.number,
|
|
332
|
+
enter: e.number,
|
|
333
|
+
exit: e.number
|
|
481
334
|
})])
|
|
482
335
|
});
|
|
483
|
-
|
|
484
|
-
const
|
|
485
|
-
process.env.NODE_ENV !== "production" && (
|
|
486
|
-
function
|
|
487
|
-
return
|
|
336
|
+
L && (L.muiSupportAuto = !0);
|
|
337
|
+
const ne = /* @__PURE__ */ p.createContext({});
|
|
338
|
+
process.env.NODE_ENV !== "production" && (ne.displayName = "AccordionContext");
|
|
339
|
+
function Ve(o) {
|
|
340
|
+
return _("MuiAccordion", o);
|
|
488
341
|
}
|
|
489
|
-
const
|
|
342
|
+
const F = q("MuiAccordion", ["root", "heading", "rounded", "expanded", "disabled", "gutters", "region"]), We = (o) => {
|
|
490
343
|
const {
|
|
491
|
-
classes:
|
|
344
|
+
classes: t,
|
|
492
345
|
square: n,
|
|
493
346
|
expanded: s,
|
|
494
347
|
disabled: c,
|
|
495
|
-
disableGutters:
|
|
348
|
+
disableGutters: l
|
|
496
349
|
} = o;
|
|
497
350
|
return K({
|
|
498
|
-
root: ["root", !n && "rounded", s && "expanded", c && "disabled", !
|
|
351
|
+
root: ["root", !n && "rounded", s && "expanded", c && "disabled", !l && "gutters"],
|
|
499
352
|
heading: ["heading"],
|
|
500
353
|
region: ["region"]
|
|
501
|
-
},
|
|
502
|
-
},
|
|
354
|
+
}, Ve, t);
|
|
355
|
+
}, ke = T(Re, {
|
|
503
356
|
name: "MuiAccordion",
|
|
504
357
|
slot: "Root",
|
|
505
|
-
overridesResolver: (o,
|
|
358
|
+
overridesResolver: (o, t) => {
|
|
506
359
|
const {
|
|
507
360
|
ownerState: n
|
|
508
361
|
} = o;
|
|
509
362
|
return [{
|
|
510
|
-
[`& .${
|
|
511
|
-
},
|
|
363
|
+
[`& .${F.region}`]: t.region
|
|
364
|
+
}, t.root, !n.square && t.rounded, !n.disableGutters && t.gutters];
|
|
512
365
|
}
|
|
513
|
-
})(
|
|
366
|
+
})(I(({
|
|
514
367
|
theme: o
|
|
515
368
|
}) => {
|
|
516
|
-
const
|
|
369
|
+
const t = {
|
|
517
370
|
duration: o.transitions.duration.shortest
|
|
518
371
|
};
|
|
519
372
|
return {
|
|
520
373
|
position: "relative",
|
|
521
|
-
transition: o.transitions.create(["margin"],
|
|
374
|
+
transition: o.transitions.create(["margin"], t),
|
|
522
375
|
overflowAnchor: "none",
|
|
523
376
|
// Keep the same scrolling position
|
|
524
377
|
"&::before": {
|
|
@@ -530,14 +383,14 @@ const q = X("MuiAccordion", ["root", "heading", "rounded", "expanded", "disabled
|
|
|
530
383
|
content: '""',
|
|
531
384
|
opacity: 1,
|
|
532
385
|
backgroundColor: (o.vars || o).palette.divider,
|
|
533
|
-
transition: o.transitions.create(["opacity", "background-color"],
|
|
386
|
+
transition: o.transitions.create(["opacity", "background-color"], t)
|
|
534
387
|
},
|
|
535
388
|
"&:first-of-type": {
|
|
536
389
|
"&::before": {
|
|
537
390
|
display: "none"
|
|
538
391
|
}
|
|
539
392
|
},
|
|
540
|
-
[`&.${
|
|
393
|
+
[`&.${F.expanded}`]: {
|
|
541
394
|
"&::before": {
|
|
542
395
|
opacity: 0
|
|
543
396
|
},
|
|
@@ -553,15 +406,15 @@ const q = X("MuiAccordion", ["root", "heading", "rounded", "expanded", "disabled
|
|
|
553
406
|
}
|
|
554
407
|
}
|
|
555
408
|
},
|
|
556
|
-
[`&.${
|
|
409
|
+
[`&.${F.disabled}`]: {
|
|
557
410
|
backgroundColor: (o.vars || o).palette.action.disabledBackground
|
|
558
411
|
}
|
|
559
412
|
};
|
|
560
|
-
}),
|
|
413
|
+
}), I(({
|
|
561
414
|
theme: o
|
|
562
415
|
}) => ({
|
|
563
416
|
variants: [{
|
|
564
|
-
props: (
|
|
417
|
+
props: (t) => !t.square,
|
|
565
418
|
style: {
|
|
566
419
|
borderRadius: 0,
|
|
567
420
|
"&:first-of-type": {
|
|
@@ -579,101 +432,101 @@ const q = X("MuiAccordion", ["root", "heading", "rounded", "expanded", "disabled
|
|
|
579
432
|
}
|
|
580
433
|
}
|
|
581
434
|
}, {
|
|
582
|
-
props: (
|
|
435
|
+
props: (t) => !t.disableGutters,
|
|
583
436
|
style: {
|
|
584
|
-
[`&.${
|
|
437
|
+
[`&.${F.expanded}`]: {
|
|
585
438
|
margin: "16px 0"
|
|
586
439
|
}
|
|
587
440
|
}
|
|
588
441
|
}]
|
|
589
|
-
}))),
|
|
442
|
+
}))), Be = T("h3", {
|
|
590
443
|
name: "MuiAccordion",
|
|
591
444
|
slot: "Heading",
|
|
592
|
-
overridesResolver: (o,
|
|
445
|
+
overridesResolver: (o, t) => t.heading
|
|
593
446
|
})({
|
|
594
447
|
all: "unset"
|
|
595
|
-
}),
|
|
448
|
+
}), ee = /* @__PURE__ */ p.forwardRef(function(t, n) {
|
|
596
449
|
const s = J({
|
|
597
|
-
props:
|
|
450
|
+
props: t,
|
|
598
451
|
name: "MuiAccordion"
|
|
599
452
|
}), {
|
|
600
453
|
children: c,
|
|
601
|
-
className:
|
|
602
|
-
defaultExpanded:
|
|
603
|
-
disabled:
|
|
604
|
-
disableGutters:
|
|
454
|
+
className: l,
|
|
455
|
+
defaultExpanded: u = !1,
|
|
456
|
+
disabled: d = !1,
|
|
457
|
+
disableGutters: m = !1,
|
|
605
458
|
expanded: a,
|
|
606
|
-
onChange:
|
|
607
|
-
square:
|
|
608
|
-
slots:
|
|
609
|
-
slotProps:
|
|
610
|
-
TransitionComponent:
|
|
611
|
-
TransitionProps:
|
|
612
|
-
...
|
|
613
|
-
} = s, [
|
|
459
|
+
onChange: g,
|
|
460
|
+
square: E = !1,
|
|
461
|
+
slots: R = {},
|
|
462
|
+
slotProps: A = {},
|
|
463
|
+
TransitionComponent: D,
|
|
464
|
+
TransitionProps: w,
|
|
465
|
+
...v
|
|
466
|
+
} = s, [f, M] = Ae({
|
|
614
467
|
controlled: a,
|
|
615
|
-
default:
|
|
468
|
+
default: u,
|
|
616
469
|
name: "Accordion",
|
|
617
470
|
state: "expanded"
|
|
618
|
-
}),
|
|
619
|
-
M(!
|
|
620
|
-
}, [
|
|
621
|
-
expanded:
|
|
622
|
-
disabled:
|
|
623
|
-
disableGutters:
|
|
624
|
-
toggle:
|
|
625
|
-
}), [
|
|
471
|
+
}), b = p.useCallback((Y) => {
|
|
472
|
+
M(!f), g && g(Y, !f);
|
|
473
|
+
}, [f, g, M]), [k, ...Q] = p.Children.toArray(c), P = p.useMemo(() => ({
|
|
474
|
+
expanded: f,
|
|
475
|
+
disabled: d,
|
|
476
|
+
disableGutters: m,
|
|
477
|
+
toggle: b
|
|
478
|
+
}), [f, d, m, b]), x = {
|
|
626
479
|
...s,
|
|
627
|
-
square:
|
|
628
|
-
disabled:
|
|
629
|
-
disableGutters:
|
|
630
|
-
expanded:
|
|
631
|
-
},
|
|
632
|
-
transition:
|
|
633
|
-
...
|
|
634
|
-
},
|
|
635
|
-
transition:
|
|
636
|
-
...
|
|
637
|
-
},
|
|
638
|
-
slots:
|
|
639
|
-
slotProps:
|
|
640
|
-
}, [
|
|
641
|
-
elementType:
|
|
642
|
-
externalForwardedProps:
|
|
643
|
-
className:
|
|
644
|
-
ownerState:
|
|
645
|
-
}), [
|
|
646
|
-
elementType:
|
|
647
|
-
externalForwardedProps:
|
|
648
|
-
ownerState:
|
|
480
|
+
square: E,
|
|
481
|
+
disabled: d,
|
|
482
|
+
disableGutters: m,
|
|
483
|
+
expanded: f
|
|
484
|
+
}, O = We(x), X = {
|
|
485
|
+
transition: D,
|
|
486
|
+
...R
|
|
487
|
+
}, C = {
|
|
488
|
+
transition: w,
|
|
489
|
+
...A
|
|
490
|
+
}, $ = {
|
|
491
|
+
slots: X,
|
|
492
|
+
slotProps: C
|
|
493
|
+
}, [z, S] = se("heading", {
|
|
494
|
+
elementType: Be,
|
|
495
|
+
externalForwardedProps: $,
|
|
496
|
+
className: O.heading,
|
|
497
|
+
ownerState: x
|
|
498
|
+
}), [N, j] = se("transition", {
|
|
499
|
+
elementType: L,
|
|
500
|
+
externalForwardedProps: $,
|
|
501
|
+
ownerState: x
|
|
649
502
|
});
|
|
650
|
-
return /* @__PURE__ */ G(
|
|
651
|
-
className:
|
|
503
|
+
return /* @__PURE__ */ G(ke, {
|
|
504
|
+
className: U(O.root, l),
|
|
652
505
|
ref: n,
|
|
653
|
-
ownerState:
|
|
654
|
-
square:
|
|
655
|
-
...
|
|
656
|
-
children: [/* @__PURE__ */
|
|
657
|
-
...
|
|
658
|
-
children: /* @__PURE__ */
|
|
659
|
-
value:
|
|
660
|
-
children:
|
|
506
|
+
ownerState: x,
|
|
507
|
+
square: E,
|
|
508
|
+
...v,
|
|
509
|
+
children: [/* @__PURE__ */ i(z, {
|
|
510
|
+
...S,
|
|
511
|
+
children: /* @__PURE__ */ i(ne.Provider, {
|
|
512
|
+
value: P,
|
|
513
|
+
children: k
|
|
661
514
|
})
|
|
662
|
-
}), /* @__PURE__ */
|
|
663
|
-
in:
|
|
515
|
+
}), /* @__PURE__ */ i(N, {
|
|
516
|
+
in: f,
|
|
664
517
|
timeout: "auto",
|
|
665
|
-
...
|
|
666
|
-
children: /* @__PURE__ */
|
|
667
|
-
"aria-labelledby":
|
|
668
|
-
id:
|
|
518
|
+
...j,
|
|
519
|
+
children: /* @__PURE__ */ i("div", {
|
|
520
|
+
"aria-labelledby": k.props.id,
|
|
521
|
+
id: k.props["aria-controls"],
|
|
669
522
|
role: "region",
|
|
670
|
-
className:
|
|
523
|
+
className: O.region,
|
|
671
524
|
children: Q
|
|
672
525
|
})
|
|
673
526
|
})]
|
|
674
527
|
});
|
|
675
528
|
});
|
|
676
|
-
process.env.NODE_ENV !== "production" && (
|
|
529
|
+
process.env.NODE_ENV !== "production" && (ee.propTypes = {
|
|
677
530
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
678
531
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
679
532
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -681,118 +534,118 @@ process.env.NODE_ENV !== "production" && (re.propTypes = {
|
|
|
681
534
|
/**
|
|
682
535
|
* The content of the component.
|
|
683
536
|
*/
|
|
684
|
-
children:
|
|
685
|
-
const
|
|
686
|
-
return
|
|
537
|
+
children: we(e.node.isRequired, (o) => {
|
|
538
|
+
const t = p.Children.toArray(o.children)[0];
|
|
539
|
+
return xe.isFragment(t) ? new Error("MUI: The Accordion doesn't accept a Fragment as a child. Consider providing an array instead.") : /* @__PURE__ */ p.isValidElement(t) ? null : new Error("MUI: Expected the first child of Accordion to be a valid element.");
|
|
687
540
|
}),
|
|
688
541
|
/**
|
|
689
542
|
* Override or extend the styles applied to the component.
|
|
690
543
|
*/
|
|
691
|
-
classes:
|
|
544
|
+
classes: e.object,
|
|
692
545
|
/**
|
|
693
546
|
* @ignore
|
|
694
547
|
*/
|
|
695
|
-
className:
|
|
548
|
+
className: e.string,
|
|
696
549
|
/**
|
|
697
550
|
* If `true`, expands the accordion by default.
|
|
698
551
|
* @default false
|
|
699
552
|
*/
|
|
700
|
-
defaultExpanded:
|
|
553
|
+
defaultExpanded: e.bool,
|
|
701
554
|
/**
|
|
702
555
|
* If `true`, the component is disabled.
|
|
703
556
|
* @default false
|
|
704
557
|
*/
|
|
705
|
-
disabled:
|
|
558
|
+
disabled: e.bool,
|
|
706
559
|
/**
|
|
707
560
|
* If `true`, it removes the margin between two expanded accordion items and the increase of height.
|
|
708
561
|
* @default false
|
|
709
562
|
*/
|
|
710
|
-
disableGutters:
|
|
563
|
+
disableGutters: e.bool,
|
|
711
564
|
/**
|
|
712
565
|
* If `true`, expands the accordion, otherwise collapse it.
|
|
713
566
|
* Setting this prop enables control over the accordion.
|
|
714
567
|
*/
|
|
715
|
-
expanded:
|
|
568
|
+
expanded: e.bool,
|
|
716
569
|
/**
|
|
717
570
|
* Callback fired when the expand/collapse state is changed.
|
|
718
571
|
*
|
|
719
572
|
* @param {React.SyntheticEvent} event The event source of the callback. **Warning**: This is a generic event not a change event.
|
|
720
573
|
* @param {boolean} expanded The `expanded` state of the accordion.
|
|
721
574
|
*/
|
|
722
|
-
onChange:
|
|
575
|
+
onChange: e.func,
|
|
723
576
|
/**
|
|
724
577
|
* The props used for each slot inside.
|
|
725
578
|
* @default {}
|
|
726
579
|
*/
|
|
727
|
-
slotProps:
|
|
728
|
-
heading:
|
|
729
|
-
transition:
|
|
580
|
+
slotProps: e.shape({
|
|
581
|
+
heading: e.oneOfType([e.func, e.object]),
|
|
582
|
+
transition: e.oneOfType([e.func, e.object])
|
|
730
583
|
}),
|
|
731
584
|
/**
|
|
732
585
|
* The components used for each slot inside.
|
|
733
586
|
* @default {}
|
|
734
587
|
*/
|
|
735
|
-
slots:
|
|
736
|
-
heading:
|
|
737
|
-
transition:
|
|
588
|
+
slots: e.shape({
|
|
589
|
+
heading: e.elementType,
|
|
590
|
+
transition: e.elementType
|
|
738
591
|
}),
|
|
739
592
|
/**
|
|
740
593
|
* If `true`, rounded corners are disabled.
|
|
741
594
|
* @default false
|
|
742
595
|
*/
|
|
743
|
-
square:
|
|
596
|
+
square: e.bool,
|
|
744
597
|
/**
|
|
745
598
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
746
599
|
*/
|
|
747
|
-
sx:
|
|
600
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
748
601
|
/**
|
|
749
602
|
* The component used for the transition.
|
|
750
603
|
* [Follow this guide](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
|
|
751
604
|
* @deprecated Use `slots.transition` instead. This prop will be removed in v7. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
752
605
|
*/
|
|
753
|
-
TransitionComponent:
|
|
606
|
+
TransitionComponent: e.elementType,
|
|
754
607
|
/**
|
|
755
608
|
* Props applied to the transition element.
|
|
756
609
|
* By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
|
|
757
610
|
* @deprecated Use `slotProps.transition` instead. This prop will be removed in v7. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
758
611
|
*/
|
|
759
|
-
TransitionProps:
|
|
612
|
+
TransitionProps: e.object
|
|
760
613
|
});
|
|
761
|
-
function
|
|
762
|
-
return
|
|
614
|
+
function Ge(o) {
|
|
615
|
+
return _("MuiAccordionDetails", o);
|
|
763
616
|
}
|
|
764
|
-
|
|
765
|
-
const
|
|
617
|
+
q("MuiAccordionDetails", ["root"]);
|
|
618
|
+
const Ue = (o) => {
|
|
766
619
|
const {
|
|
767
|
-
classes:
|
|
620
|
+
classes: t
|
|
768
621
|
} = o;
|
|
769
622
|
return K({
|
|
770
623
|
root: ["root"]
|
|
771
|
-
},
|
|
772
|
-
},
|
|
624
|
+
}, Ge, t);
|
|
625
|
+
}, He = T("div", {
|
|
773
626
|
name: "MuiAccordionDetails",
|
|
774
627
|
slot: "Root",
|
|
775
|
-
overridesResolver: (o,
|
|
776
|
-
})(
|
|
628
|
+
overridesResolver: (o, t) => t.root
|
|
629
|
+
})(I(({
|
|
777
630
|
theme: o
|
|
778
631
|
}) => ({
|
|
779
632
|
padding: o.spacing(1, 2, 2)
|
|
780
|
-
}))),
|
|
633
|
+
}))), oe = /* @__PURE__ */ p.forwardRef(function(t, n) {
|
|
781
634
|
const s = J({
|
|
782
|
-
props:
|
|
635
|
+
props: t,
|
|
783
636
|
name: "MuiAccordionDetails"
|
|
784
637
|
}), {
|
|
785
638
|
className: c,
|
|
786
|
-
...
|
|
787
|
-
} = s,
|
|
788
|
-
return /* @__PURE__ */
|
|
789
|
-
className:
|
|
639
|
+
...l
|
|
640
|
+
} = s, u = s, d = Ue(u);
|
|
641
|
+
return /* @__PURE__ */ i(He, {
|
|
642
|
+
className: U(d.root, c),
|
|
790
643
|
ref: n,
|
|
791
|
-
ownerState:
|
|
792
|
-
...
|
|
644
|
+
ownerState: u,
|
|
645
|
+
...l
|
|
793
646
|
});
|
|
794
647
|
});
|
|
795
|
-
process.env.NODE_ENV !== "production" && (
|
|
648
|
+
process.env.NODE_ENV !== "production" && (oe.propTypes = {
|
|
796
649
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
797
650
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
798
651
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -800,26 +653,26 @@ process.env.NODE_ENV !== "production" && (ne.propTypes = {
|
|
|
800
653
|
/**
|
|
801
654
|
* The content of the component.
|
|
802
655
|
*/
|
|
803
|
-
children:
|
|
656
|
+
children: e.node,
|
|
804
657
|
/**
|
|
805
658
|
* Override or extend the styles applied to the component.
|
|
806
659
|
*/
|
|
807
|
-
classes:
|
|
660
|
+
classes: e.object,
|
|
808
661
|
/**
|
|
809
662
|
* @ignore
|
|
810
663
|
*/
|
|
811
|
-
className:
|
|
664
|
+
className: e.string,
|
|
812
665
|
/**
|
|
813
666
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
814
667
|
*/
|
|
815
|
-
sx:
|
|
668
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
816
669
|
});
|
|
817
|
-
function
|
|
818
|
-
return
|
|
670
|
+
function Fe(o) {
|
|
671
|
+
return _("MuiAccordionSummary", o);
|
|
819
672
|
}
|
|
820
|
-
const
|
|
673
|
+
const W = q("MuiAccordionSummary", ["root", "expanded", "focusVisible", "disabled", "gutters", "contentGutters", "content", "expandIconWrapper"]), Le = (o) => {
|
|
821
674
|
const {
|
|
822
|
-
classes:
|
|
675
|
+
classes: t,
|
|
823
676
|
expanded: n,
|
|
824
677
|
disabled: s,
|
|
825
678
|
disableGutters: c
|
|
@@ -829,15 +682,15 @@ const V = X("MuiAccordionSummary", ["root", "expanded", "focusVisible", "disable
|
|
|
829
682
|
focusVisible: ["focusVisible"],
|
|
830
683
|
content: ["content", n && "expanded", !c && "contentGutters"],
|
|
831
684
|
expandIconWrapper: ["expandIconWrapper", n && "expanded"]
|
|
832
|
-
},
|
|
833
|
-
},
|
|
685
|
+
}, Fe, t);
|
|
686
|
+
}, qe = T(Ee, {
|
|
834
687
|
name: "MuiAccordionSummary",
|
|
835
688
|
slot: "Root",
|
|
836
|
-
overridesResolver: (o,
|
|
837
|
-
})(
|
|
689
|
+
overridesResolver: (o, t) => t.root
|
|
690
|
+
})(I(({
|
|
838
691
|
theme: o
|
|
839
692
|
}) => {
|
|
840
|
-
const
|
|
693
|
+
const t = {
|
|
841
694
|
duration: o.transitions.duration.shortest
|
|
842
695
|
};
|
|
843
696
|
return {
|
|
@@ -845,30 +698,30 @@ const V = X("MuiAccordionSummary", ["root", "expanded", "focusVisible", "disable
|
|
|
845
698
|
width: "100%",
|
|
846
699
|
minHeight: 48,
|
|
847
700
|
padding: o.spacing(0, 2),
|
|
848
|
-
transition: o.transitions.create(["min-height", "background-color"],
|
|
849
|
-
[`&.${
|
|
701
|
+
transition: o.transitions.create(["min-height", "background-color"], t),
|
|
702
|
+
[`&.${W.focusVisible}`]: {
|
|
850
703
|
backgroundColor: (o.vars || o).palette.action.focus
|
|
851
704
|
},
|
|
852
|
-
[`&.${
|
|
705
|
+
[`&.${W.disabled}`]: {
|
|
853
706
|
opacity: (o.vars || o).palette.action.disabledOpacity
|
|
854
707
|
},
|
|
855
|
-
[`&:hover:not(.${
|
|
708
|
+
[`&:hover:not(.${W.disabled})`]: {
|
|
856
709
|
cursor: "pointer"
|
|
857
710
|
},
|
|
858
711
|
variants: [{
|
|
859
712
|
props: (n) => !n.disableGutters,
|
|
860
713
|
style: {
|
|
861
|
-
[`&.${
|
|
714
|
+
[`&.${W.expanded}`]: {
|
|
862
715
|
minHeight: 64
|
|
863
716
|
}
|
|
864
717
|
}
|
|
865
718
|
}]
|
|
866
719
|
};
|
|
867
|
-
})),
|
|
720
|
+
})), _e = T("span", {
|
|
868
721
|
name: "MuiAccordionSummary",
|
|
869
722
|
slot: "Content",
|
|
870
|
-
overridesResolver: (o,
|
|
871
|
-
})(
|
|
723
|
+
overridesResolver: (o, t) => t.content
|
|
724
|
+
})(I(({
|
|
872
725
|
theme: o
|
|
873
726
|
}) => ({
|
|
874
727
|
display: "flex",
|
|
@@ -876,21 +729,21 @@ const V = X("MuiAccordionSummary", ["root", "expanded", "focusVisible", "disable
|
|
|
876
729
|
flexGrow: 1,
|
|
877
730
|
margin: "12px 0",
|
|
878
731
|
variants: [{
|
|
879
|
-
props: (
|
|
732
|
+
props: (t) => !t.disableGutters,
|
|
880
733
|
style: {
|
|
881
734
|
transition: o.transitions.create(["margin"], {
|
|
882
735
|
duration: o.transitions.duration.shortest
|
|
883
736
|
}),
|
|
884
|
-
[`&.${
|
|
737
|
+
[`&.${W.expanded}`]: {
|
|
885
738
|
margin: "20px 0"
|
|
886
739
|
}
|
|
887
740
|
}
|
|
888
741
|
}]
|
|
889
|
-
}))),
|
|
742
|
+
}))), Je = T("span", {
|
|
890
743
|
name: "MuiAccordionSummary",
|
|
891
744
|
slot: "ExpandIconWrapper",
|
|
892
|
-
overridesResolver: (o,
|
|
893
|
-
})(
|
|
745
|
+
overridesResolver: (o, t) => t.expandIconWrapper
|
|
746
|
+
})(I(({
|
|
894
747
|
theme: o
|
|
895
748
|
}) => ({
|
|
896
749
|
display: "flex",
|
|
@@ -899,56 +752,56 @@ const V = X("MuiAccordionSummary", ["root", "expanded", "focusVisible", "disable
|
|
|
899
752
|
transition: o.transitions.create("transform", {
|
|
900
753
|
duration: o.transitions.duration.shortest
|
|
901
754
|
}),
|
|
902
|
-
[`&.${
|
|
755
|
+
[`&.${W.expanded}`]: {
|
|
903
756
|
transform: "rotate(180deg)"
|
|
904
757
|
}
|
|
905
|
-
}))),
|
|
758
|
+
}))), te = /* @__PURE__ */ p.forwardRef(function(t, n) {
|
|
906
759
|
const s = J({
|
|
907
|
-
props:
|
|
760
|
+
props: t,
|
|
908
761
|
name: "MuiAccordionSummary"
|
|
909
762
|
}), {
|
|
910
763
|
children: c,
|
|
911
|
-
className:
|
|
912
|
-
expandIcon:
|
|
913
|
-
focusVisibleClassName:
|
|
914
|
-
onClick:
|
|
764
|
+
className: l,
|
|
765
|
+
expandIcon: u,
|
|
766
|
+
focusVisibleClassName: d,
|
|
767
|
+
onClick: m,
|
|
915
768
|
...a
|
|
916
769
|
} = s, {
|
|
917
|
-
disabled:
|
|
918
|
-
disableGutters:
|
|
919
|
-
expanded:
|
|
920
|
-
toggle:
|
|
921
|
-
} =
|
|
922
|
-
|
|
923
|
-
},
|
|
770
|
+
disabled: g = !1,
|
|
771
|
+
disableGutters: E,
|
|
772
|
+
expanded: R,
|
|
773
|
+
toggle: A
|
|
774
|
+
} = p.useContext(ne), D = (f) => {
|
|
775
|
+
A && A(f), m && m(f);
|
|
776
|
+
}, w = {
|
|
924
777
|
...s,
|
|
925
|
-
expanded:
|
|
926
|
-
disabled:
|
|
927
|
-
disableGutters:
|
|
928
|
-
},
|
|
929
|
-
return /* @__PURE__ */ G(
|
|
778
|
+
expanded: R,
|
|
779
|
+
disabled: g,
|
|
780
|
+
disableGutters: E
|
|
781
|
+
}, v = Le(w);
|
|
782
|
+
return /* @__PURE__ */ G(qe, {
|
|
930
783
|
focusRipple: !1,
|
|
931
784
|
disableRipple: !0,
|
|
932
|
-
disabled:
|
|
933
|
-
"aria-expanded":
|
|
934
|
-
className:
|
|
935
|
-
focusVisibleClassName:
|
|
936
|
-
onClick:
|
|
785
|
+
disabled: g,
|
|
786
|
+
"aria-expanded": R,
|
|
787
|
+
className: U(v.root, l),
|
|
788
|
+
focusVisibleClassName: U(v.focusVisible, d),
|
|
789
|
+
onClick: D,
|
|
937
790
|
ref: n,
|
|
938
|
-
ownerState:
|
|
791
|
+
ownerState: w,
|
|
939
792
|
...a,
|
|
940
|
-
children: [/* @__PURE__ */
|
|
941
|
-
className:
|
|
942
|
-
ownerState:
|
|
793
|
+
children: [/* @__PURE__ */ i(_e, {
|
|
794
|
+
className: v.content,
|
|
795
|
+
ownerState: w,
|
|
943
796
|
children: c
|
|
944
|
-
}),
|
|
945
|
-
className:
|
|
946
|
-
ownerState:
|
|
947
|
-
children:
|
|
797
|
+
}), u && /* @__PURE__ */ i(Je, {
|
|
798
|
+
className: v.expandIconWrapper,
|
|
799
|
+
ownerState: w,
|
|
800
|
+
children: u
|
|
948
801
|
})]
|
|
949
802
|
});
|
|
950
803
|
});
|
|
951
|
-
process.env.NODE_ENV !== "production" && (
|
|
804
|
+
process.env.NODE_ENV !== "production" && (te.propTypes = {
|
|
952
805
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
953
806
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
954
807
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -956,19 +809,19 @@ process.env.NODE_ENV !== "production" && (ie.propTypes = {
|
|
|
956
809
|
/**
|
|
957
810
|
* The content of the component.
|
|
958
811
|
*/
|
|
959
|
-
children:
|
|
812
|
+
children: e.node,
|
|
960
813
|
/**
|
|
961
814
|
* Override or extend the styles applied to the component.
|
|
962
815
|
*/
|
|
963
|
-
classes:
|
|
816
|
+
classes: e.object,
|
|
964
817
|
/**
|
|
965
818
|
* @ignore
|
|
966
819
|
*/
|
|
967
|
-
className:
|
|
820
|
+
className: e.string,
|
|
968
821
|
/**
|
|
969
822
|
* The icon to display as the expand indicator.
|
|
970
823
|
*/
|
|
971
|
-
expandIcon:
|
|
824
|
+
expandIcon: e.node,
|
|
972
825
|
/**
|
|
973
826
|
* This prop can help identify which element has keyboard focus.
|
|
974
827
|
* The class name will be applied when the element gains the focus through keyboard interaction.
|
|
@@ -977,57 +830,57 @@ process.env.NODE_ENV !== "production" && (ie.propTypes = {
|
|
|
977
830
|
* A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
|
|
978
831
|
* if needed.
|
|
979
832
|
*/
|
|
980
|
-
focusVisibleClassName:
|
|
833
|
+
focusVisibleClassName: e.string,
|
|
981
834
|
/**
|
|
982
835
|
* @ignore
|
|
983
836
|
*/
|
|
984
|
-
onClick:
|
|
837
|
+
onClick: e.func,
|
|
985
838
|
/**
|
|
986
839
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
987
840
|
*/
|
|
988
|
-
sx:
|
|
841
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
989
842
|
});
|
|
990
|
-
const
|
|
843
|
+
const de = De(/* @__PURE__ */ i("path", {
|
|
991
844
|
d: "M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"
|
|
992
845
|
}), "ExpandMore");
|
|
993
|
-
function
|
|
994
|
-
const o =
|
|
846
|
+
function uo() {
|
|
847
|
+
const o = ye(be);
|
|
995
848
|
if (!o || !o.preferences)
|
|
996
849
|
return null;
|
|
997
|
-
const
|
|
998
|
-
var
|
|
999
|
-
const s = (
|
|
850
|
+
const t = o.preferences.notifications.sort((n, s) => n.title.localeCompare(s.title)).map((n) => {
|
|
851
|
+
var u, d, m;
|
|
852
|
+
const s = (u = o.preferences) == null ? void 0 : u.preferences.filter(
|
|
1000
853
|
(a) => a.notificationId === n.notificationId && !a.subNotificationId
|
|
1001
|
-
), c = (
|
|
854
|
+
), c = (d = o.preferences) == null ? void 0 : d.preferences.filter(
|
|
1002
855
|
(a) => a.notificationId === n.notificationId && a.subNotificationId
|
|
1003
|
-
),
|
|
856
|
+
), l = (m = o.preferences) == null ? void 0 : m.subNotifications.filter(
|
|
1004
857
|
(a) => c == null ? void 0 : c.find(
|
|
1005
|
-
(
|
|
858
|
+
(g) => g.subNotificationId === a.subNotificationId
|
|
1006
859
|
)
|
|
1007
860
|
);
|
|
1008
861
|
return /* @__PURE__ */ G(
|
|
1009
|
-
|
|
862
|
+
ee,
|
|
1010
863
|
{
|
|
1011
864
|
style: {
|
|
1012
865
|
marginBottom: 0,
|
|
1013
866
|
marginTop: 0
|
|
1014
867
|
},
|
|
1015
868
|
children: [
|
|
1016
|
-
/* @__PURE__ */
|
|
1017
|
-
|
|
869
|
+
/* @__PURE__ */ i(
|
|
870
|
+
te,
|
|
1018
871
|
{
|
|
1019
|
-
expandIcon: /* @__PURE__ */
|
|
872
|
+
expandIcon: /* @__PURE__ */ i(de, {}),
|
|
1020
873
|
style: {
|
|
1021
874
|
backgroundColor: "#f0f0f0",
|
|
1022
875
|
flexDirection: "row-reverse",
|
|
1023
876
|
gap: 16
|
|
1024
877
|
},
|
|
1025
|
-
children: /* @__PURE__ */
|
|
878
|
+
children: /* @__PURE__ */ i(ce, { variant: "body1", children: n.title })
|
|
1026
879
|
}
|
|
1027
880
|
),
|
|
1028
|
-
/* @__PURE__ */
|
|
1029
|
-
/* @__PURE__ */
|
|
1030
|
-
|
|
881
|
+
/* @__PURE__ */ i(oe, { children: /* @__PURE__ */ G(he, { children: [
|
|
882
|
+
/* @__PURE__ */ i(
|
|
883
|
+
ie,
|
|
1031
884
|
{
|
|
1032
885
|
notification: n,
|
|
1033
886
|
preferences: s || [],
|
|
@@ -1035,26 +888,26 @@ function To() {
|
|
|
1035
888
|
},
|
|
1036
889
|
n.notificationId
|
|
1037
890
|
),
|
|
1038
|
-
|
|
1039
|
-
|
|
891
|
+
l == null ? void 0 : l.map((a) => /* @__PURE__ */ G(
|
|
892
|
+
ee,
|
|
1040
893
|
{
|
|
1041
894
|
style: {
|
|
1042
895
|
marginTop: 12
|
|
1043
896
|
},
|
|
1044
897
|
children: [
|
|
1045
|
-
/* @__PURE__ */
|
|
1046
|
-
|
|
898
|
+
/* @__PURE__ */ i(
|
|
899
|
+
te,
|
|
1047
900
|
{
|
|
1048
|
-
expandIcon: /* @__PURE__ */
|
|
901
|
+
expandIcon: /* @__PURE__ */ i(de, {}),
|
|
1049
902
|
style: {
|
|
1050
903
|
flexDirection: "row-reverse",
|
|
1051
904
|
gap: 16
|
|
1052
905
|
},
|
|
1053
|
-
children: /* @__PURE__ */
|
|
906
|
+
children: /* @__PURE__ */ i(ce, { variant: "body1", children: a.title })
|
|
1054
907
|
}
|
|
1055
908
|
),
|
|
1056
|
-
/* @__PURE__ */
|
|
1057
|
-
|
|
909
|
+
/* @__PURE__ */ i(oe, { children: /* @__PURE__ */ i(
|
|
910
|
+
ie,
|
|
1058
911
|
{
|
|
1059
912
|
notification: n,
|
|
1060
913
|
preferences: c || [],
|
|
@@ -1073,8 +926,8 @@ function To() {
|
|
|
1073
926
|
n.notificationId
|
|
1074
927
|
);
|
|
1075
928
|
});
|
|
1076
|
-
return /* @__PURE__ */
|
|
929
|
+
return /* @__PURE__ */ i(Me, { sx: { borderRadius: 2, overflow: "hidden" }, children: t });
|
|
1077
930
|
}
|
|
1078
931
|
export {
|
|
1079
|
-
|
|
932
|
+
uo as Preferences
|
|
1080
933
|
};
|