@notificationapi/react 1.7.0 → 1.8.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 +4 -3
- package/dist/assets/Box.js +26 -24
- package/dist/assets/Button.js +20 -18
- package/dist/assets/ButtonBase.js +193 -185
- package/dist/assets/DefaultPropsProvider.js +416 -4199
- package/dist/assets/DefaultPropsProvider2.js +992 -0
- package/dist/assets/Divider.js +2 -1
- package/dist/assets/GlobalStyles.js +23 -0
- package/dist/assets/Grow.js +87 -92
- package/dist/assets/IconButton.js +8 -7
- package/dist/assets/List.js +12 -11
- package/dist/assets/Modal.js +18 -17
- package/dist/assets/Notification.js +787 -770
- package/dist/assets/Paper.js +6 -6
- package/dist/assets/Popover.js +38 -37
- package/dist/assets/Portal.js +38 -48
- package/dist/assets/Stack.js +32 -30
- package/dist/assets/Typography.js +84 -97
- package/dist/assets/createSvgIcon.js +25 -24
- package/dist/assets/createTheme.js +2828 -0
- package/dist/assets/dividerClasses.js +16 -15
- package/dist/assets/exactProp.js +13 -0
- package/dist/assets/index.js +19 -148
- package/dist/assets/index2.js +151 -0
- package/dist/assets/useTheme.js +6 -7
- package/dist/assets/{useTheme2.js → useThemeWithoutDefault.js} +63 -67
- package/dist/assets/utils.js +2 -2
- package/dist/components/Notifications/Inbox.js +592 -582
- package/dist/components/Notifications/InboxHeader.js +31 -30
- package/dist/components/Notifications/Notification.js +4 -2
- package/dist/components/Notifications/NotificationFeed.js +40 -32
- package/dist/components/Notifications/NotificationLauncher.js +90 -64
- package/dist/components/Notifications/NotificationPopup.js +76 -65
- package/dist/components/Preferences/NotificationPreferencesInline.js +57 -39
- package/dist/components/Preferences/NotificationPreferencesPopup.js +111 -99
- package/dist/components/Preferences/PreferenceInput.js +427 -414
- package/dist/components/Preferences/Preferences.js +329 -278
- package/dist/components/Provider/index.d.ts +2 -0
- package/dist/components/Provider/index.js +1008 -401
- package/dist/components/Slack/SlackConnect.js +8 -7
- package/dist/main.d.ts +2 -0
- package/dist/main.js +6 -3
- package/dist/utils/theme.d.ts +17 -0
- package/dist/utils/theme.js +104 -0
- package/package.json +1 -1
package/dist/assets/Paper.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as P from "react";
|
|
2
|
-
import { g as
|
|
3
|
-
import { u as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
2
|
+
import { g as h, a as u, d as f, P as a } from "./createTheme.js";
|
|
3
|
+
import { g as b, s as g, m as w, u as T, c as $, a as x } from "./DefaultPropsProvider.js";
|
|
4
|
+
import { u as O, c as C } from "./ButtonBase.js";
|
|
5
|
+
import { jsx as N } from "react/jsx-runtime";
|
|
6
6
|
import { i as R } from "./integerPropType.js";
|
|
7
7
|
function j(e) {
|
|
8
8
|
return h("MuiPaper", e);
|
|
@@ -76,7 +76,7 @@ const E = (e) => {
|
|
|
76
76
|
variant: v
|
|
77
77
|
}, y = E(d);
|
|
78
78
|
return process.env.NODE_ENV !== "production" && r.shadows[n] === void 0 && console.error([`MUI: The elevation provided <Paper elevation={${n}}> is not available in the theme.`, `Please make sure that \`theme.shadows[${n}]\` is defined.`].join(`
|
|
79
|
-
`)), /* @__PURE__ */
|
|
79
|
+
`)), /* @__PURE__ */ N(M, {
|
|
80
80
|
as: l,
|
|
81
81
|
ownerState: d,
|
|
82
82
|
className: $(y.root, i),
|
|
@@ -123,7 +123,7 @@ process.env.NODE_ENV !== "production" && (U.propTypes = {
|
|
|
123
123
|
* It accepts values between 0 and 24 inclusive.
|
|
124
124
|
* @default 1
|
|
125
125
|
*/
|
|
126
|
-
elevation:
|
|
126
|
+
elevation: C(R, (e) => {
|
|
127
127
|
const {
|
|
128
128
|
elevation: o,
|
|
129
129
|
variant: t
|
package/dist/assets/Popover.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { g as
|
|
1
|
+
import * as c from "react";
|
|
2
|
+
import { g as Pe, P as e } from "./createTheme.js";
|
|
3
|
+
import { g as ve, s as te, u as ye, c as Y, a as be } from "./DefaultPropsProvider.js";
|
|
3
4
|
import { i as Te } from "./List.js";
|
|
4
|
-
import {
|
|
5
|
+
import { b as X, r as Ee, c as Oe, e as Re } from "./ButtonBase.js";
|
|
5
6
|
import { jsx as z } from "react/jsx-runtime";
|
|
6
7
|
import { M as we, o as J } from "./Modal.js";
|
|
7
8
|
import { P as xe } from "./Paper.js";
|
|
@@ -11,20 +12,20 @@ import { i as Me } from "./integerPropType.js";
|
|
|
11
12
|
import { G as Ne } from "./Grow.js";
|
|
12
13
|
function je(t, o = 166) {
|
|
13
14
|
let n;
|
|
14
|
-
function
|
|
15
|
+
function P(...R) {
|
|
15
16
|
const a = () => {
|
|
16
17
|
t.apply(this, R);
|
|
17
18
|
};
|
|
18
19
|
clearTimeout(n), n = setTimeout(a, o);
|
|
19
20
|
}
|
|
20
|
-
return
|
|
21
|
+
return P.clear = () => {
|
|
21
22
|
clearTimeout(n);
|
|
22
|
-
},
|
|
23
|
+
}, P;
|
|
23
24
|
}
|
|
24
25
|
function ze(t) {
|
|
25
|
-
return
|
|
26
|
+
return Pe("MuiPopover", t);
|
|
26
27
|
}
|
|
27
|
-
|
|
28
|
+
ve("MuiPopover", ["root", "paper"]);
|
|
28
29
|
function Z(t, o) {
|
|
29
30
|
let n = 0;
|
|
30
31
|
return typeof o == "number" ? n = o : o === "center" ? n = t.height / 2 : o === "bottom" && (n = t.height), n;
|
|
@@ -67,8 +68,8 @@ const De = (t) => {
|
|
|
67
68
|
maxHeight: "calc(100% - 32px)",
|
|
68
69
|
// We disable the focus ring for mouse, touch and keyboard users.
|
|
69
70
|
outline: 0
|
|
70
|
-
}), Ue = /* @__PURE__ */
|
|
71
|
-
const
|
|
71
|
+
}), Ue = /* @__PURE__ */ c.forwardRef(function(o, n) {
|
|
72
|
+
const P = ye({
|
|
72
73
|
props: o,
|
|
73
74
|
name: "MuiPopover"
|
|
74
75
|
}), {
|
|
@@ -101,8 +102,8 @@ const De = (t) => {
|
|
|
101
102
|
} = {},
|
|
102
103
|
disableScrollLock: M = !1,
|
|
103
104
|
...le
|
|
104
|
-
} =
|
|
105
|
-
...
|
|
105
|
+
} = P, h = (E == null ? void 0 : E.paper) ?? se, N = c.useRef(), j = {
|
|
106
|
+
...P,
|
|
106
107
|
anchorOrigin: v,
|
|
107
108
|
anchorReference: y,
|
|
108
109
|
elevation: D,
|
|
@@ -112,7 +113,7 @@ const De = (t) => {
|
|
|
112
113
|
TransitionComponent: x,
|
|
113
114
|
transitionDuration: C,
|
|
114
115
|
TransitionProps: S
|
|
115
|
-
}, U = De(j), H =
|
|
116
|
+
}, U = De(j), H = c.useCallback(() => {
|
|
116
117
|
if (y === "anchorPosition")
|
|
117
118
|
return process.env.NODE_ENV !== "production" && (w || console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')), w;
|
|
118
119
|
const r = O(a), i = r && r.nodeType === 1 ? r : K(N.current).body, s = i.getBoundingClientRect();
|
|
@@ -125,10 +126,10 @@ const De = (t) => {
|
|
|
125
126
|
top: s.top + Z(s, v.vertical),
|
|
126
127
|
left: s.left + ee(s, v.horizontal)
|
|
127
128
|
};
|
|
128
|
-
}, [a, v.horizontal, v.vertical, w, y]), I =
|
|
129
|
+
}, [a, v.horizontal, v.vertical, w, y]), I = c.useCallback((r) => ({
|
|
129
130
|
vertical: Z(r, b.vertical),
|
|
130
131
|
horizontal: ee(r, b.horizontal)
|
|
131
|
-
}), [b.horizontal, b.vertical]), L =
|
|
132
|
+
}), [b.horizontal, b.vertical]), L = c.useCallback((r) => {
|
|
132
133
|
const i = {
|
|
133
134
|
width: r.offsetWidth,
|
|
134
135
|
height: r.offsetHeight
|
|
@@ -140,48 +141,48 @@ const De = (t) => {
|
|
|
140
141
|
transformOrigin: oe(s)
|
|
141
142
|
};
|
|
142
143
|
const d = H();
|
|
143
|
-
let m = d.top - s.vertical,
|
|
144
|
-
const B = m + i.height, $ =
|
|
144
|
+
let m = d.top - s.vertical, g = d.left - s.horizontal;
|
|
145
|
+
const B = m + i.height, $ = g + i.width, F = J(O(a)), T = F.innerHeight - l, G = F.innerWidth - l;
|
|
145
146
|
if (l !== null && m < l) {
|
|
146
|
-
const
|
|
147
|
-
m -=
|
|
147
|
+
const p = m - l;
|
|
148
|
+
m -= p, s.vertical += p;
|
|
148
149
|
} else if (l !== null && B > T) {
|
|
149
|
-
const
|
|
150
|
-
m -=
|
|
150
|
+
const p = B - T;
|
|
151
|
+
m -= p, s.vertical += p;
|
|
151
152
|
}
|
|
152
153
|
if (process.env.NODE_ENV !== "production" && i.height > T && i.height && T && console.error(["MUI: The popover component is too tall.", `Some part of it can not be seen on the screen (${i.height - T}px).`, "Please consider adding a `max-height` to improve the user-experience."].join(`
|
|
153
|
-
`)), l !== null &&
|
|
154
|
-
const
|
|
155
|
-
|
|
154
|
+
`)), l !== null && g < l) {
|
|
155
|
+
const p = g - l;
|
|
156
|
+
g -= p, s.horizontal += p;
|
|
156
157
|
} else if ($ > G) {
|
|
157
|
-
const
|
|
158
|
-
|
|
158
|
+
const p = $ - G;
|
|
159
|
+
g -= p, s.horizontal += p;
|
|
159
160
|
}
|
|
160
161
|
return {
|
|
161
162
|
top: `${Math.round(m)}px`,
|
|
162
|
-
left: `${Math.round(
|
|
163
|
+
left: `${Math.round(g)}px`,
|
|
163
164
|
transformOrigin: oe(s)
|
|
164
165
|
};
|
|
165
|
-
}, [a, y, H, I, l]), [
|
|
166
|
+
}, [a, y, H, I, l]), [pe, V] = c.useState(u), f = c.useCallback(() => {
|
|
166
167
|
const r = N.current;
|
|
167
168
|
if (!r)
|
|
168
169
|
return;
|
|
169
170
|
const i = L(r);
|
|
170
171
|
i.top !== null && r.style.setProperty("top", i.top), i.left !== null && (r.style.left = i.left), r.style.transformOrigin = i.transformOrigin, V(!0);
|
|
171
172
|
}, [L]);
|
|
172
|
-
|
|
173
|
-
const
|
|
173
|
+
c.useEffect(() => (M && window.addEventListener("scroll", f), () => window.removeEventListener("scroll", f)), [a, M, f]);
|
|
174
|
+
const ce = (r, i) => {
|
|
174
175
|
k && k(r, i), f();
|
|
175
176
|
}, fe = () => {
|
|
176
177
|
V(!1);
|
|
177
178
|
};
|
|
178
|
-
|
|
179
|
+
c.useEffect(() => {
|
|
179
180
|
u && f();
|
|
180
|
-
}),
|
|
181
|
+
}), c.useImperativeHandle(R, () => u ? {
|
|
181
182
|
updatePosition: () => {
|
|
182
183
|
f();
|
|
183
184
|
}
|
|
184
|
-
} : null, [u, f]),
|
|
185
|
+
} : null, [u, f]), c.useEffect(() => {
|
|
185
186
|
if (!u)
|
|
186
187
|
return;
|
|
187
188
|
const r = je(() => {
|
|
@@ -205,7 +206,7 @@ const De = (t) => {
|
|
|
205
206
|
additionalProps: {
|
|
206
207
|
elevation: D,
|
|
207
208
|
className: Y(U.paper, h == null ? void 0 : h.className),
|
|
208
|
-
style:
|
|
209
|
+
style: pe ? h.style : {
|
|
209
210
|
...h.style,
|
|
210
211
|
opacity: 0
|
|
211
212
|
}
|
|
@@ -228,7 +229,7 @@ const De = (t) => {
|
|
|
228
229
|
},
|
|
229
230
|
ownerState: j,
|
|
230
231
|
className: Y(U.root, re)
|
|
231
|
-
}),
|
|
232
|
+
}), ge = Ce(N, A.ref);
|
|
232
233
|
return /* @__PURE__ */ z(_, {
|
|
233
234
|
...me,
|
|
234
235
|
...!Te(_) && {
|
|
@@ -240,13 +241,13 @@ const De = (t) => {
|
|
|
240
241
|
children: /* @__PURE__ */ z(x, {
|
|
241
242
|
appear: !0,
|
|
242
243
|
in: u,
|
|
243
|
-
onEntering:
|
|
244
|
+
onEntering: ce,
|
|
244
245
|
onExited: fe,
|
|
245
246
|
timeout: q,
|
|
246
247
|
...S,
|
|
247
248
|
children: /* @__PURE__ */ z(he, {
|
|
248
249
|
...A,
|
|
249
|
-
ref:
|
|
250
|
+
ref: ge,
|
|
250
251
|
children: ne
|
|
251
252
|
})
|
|
252
253
|
})
|
package/dist/assets/Portal.js
CHANGED
|
@@ -1,77 +1,68 @@
|
|
|
1
|
-
import { P as c } from "./
|
|
2
|
-
import { c as m,
|
|
1
|
+
import { P as c } from "./createTheme.js";
|
|
2
|
+
import { c as m, d as f } from "./ButtonBase.js";
|
|
3
3
|
import * as u from "react";
|
|
4
4
|
import { a as P } from "./utils.js";
|
|
5
|
-
import { u as
|
|
6
|
-
|
|
5
|
+
import { u as T, s as d } from "./resolveComponentProps.js";
|
|
6
|
+
import { e as h } from "./exactProp.js";
|
|
7
|
+
function R(e) {
|
|
7
8
|
const {
|
|
8
9
|
prototype: n = {}
|
|
9
10
|
} = e;
|
|
10
11
|
return !!n.isReactComponent;
|
|
11
12
|
}
|
|
12
|
-
function E(e, n,
|
|
13
|
-
const
|
|
14
|
-
if (
|
|
13
|
+
function E(e, n, i, o, s) {
|
|
14
|
+
const t = e[n], r = s || n;
|
|
15
|
+
if (t == null || // When server-side rendering React doesn't warn either.
|
|
15
16
|
// This is not an accurate check for SSR.
|
|
16
17
|
// This is only in place for Emotion compat.
|
|
17
18
|
// TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved.
|
|
18
19
|
typeof window > "u")
|
|
19
20
|
return null;
|
|
20
21
|
let a;
|
|
21
|
-
const l =
|
|
22
|
-
return typeof l == "function" && !
|
|
23
|
-
}
|
|
24
|
-
const w = m(c.element, E);
|
|
25
|
-
w.isRequired = m(c.element.isRequired, E);
|
|
26
|
-
const N = "exact-prop: ";
|
|
27
|
-
function T(e) {
|
|
28
|
-
return process.env.NODE_ENV === "production" ? e : {
|
|
29
|
-
...e,
|
|
30
|
-
[N]: (n) => {
|
|
31
|
-
const r = Object.keys(n).filter((t) => !e.hasOwnProperty(t));
|
|
32
|
-
return r.length > 0 ? new Error(`The following props are not supported: ${r.map((t) => `\`${t}\``).join(", ")}. Please remove them.`) : null;
|
|
33
|
-
}
|
|
34
|
-
};
|
|
22
|
+
const l = t.type;
|
|
23
|
+
return typeof l == "function" && !R(l) && (a = "Did you accidentally use a plain function component for an element instead?"), a !== void 0 ? new Error(`Invalid ${o} \`${r}\` supplied to \`${i}\`. Expected an element that can hold a ref. ${a} For more information see https://mui.com/r/caveat-with-refs-guide`) : null;
|
|
35
24
|
}
|
|
36
|
-
|
|
25
|
+
const v = m(c.element, E);
|
|
26
|
+
v.isRequired = m(c.element.isRequired, E);
|
|
27
|
+
function N(e, n, i, o, s) {
|
|
37
28
|
if (process.env.NODE_ENV === "production")
|
|
38
29
|
return null;
|
|
39
|
-
const
|
|
40
|
-
return
|
|
30
|
+
const t = e[n], r = s || n;
|
|
31
|
+
return t == null ? null : t && t.nodeType !== 1 ? new Error(`Invalid ${o} \`${r}\` supplied to \`${i}\`. Expected an HTMLElement.`) : null;
|
|
41
32
|
}
|
|
42
|
-
function
|
|
33
|
+
function C(e) {
|
|
43
34
|
return e && e.ownerDocument || document;
|
|
44
35
|
}
|
|
45
|
-
function
|
|
36
|
+
function g(e) {
|
|
46
37
|
var n;
|
|
47
38
|
return parseInt(u.version, 10) >= 19 ? ((n = e == null ? void 0 : e.props) == null ? void 0 : n.ref) || null : (e == null ? void 0 : e.ref) || null;
|
|
48
39
|
}
|
|
49
|
-
function
|
|
40
|
+
function w(e) {
|
|
50
41
|
return typeof e == "function" ? e() : e;
|
|
51
42
|
}
|
|
52
|
-
const p = /* @__PURE__ */ u.forwardRef(function(n,
|
|
43
|
+
const p = /* @__PURE__ */ u.forwardRef(function(n, i) {
|
|
53
44
|
const {
|
|
54
|
-
children:
|
|
45
|
+
children: o,
|
|
55
46
|
container: s,
|
|
56
|
-
disablePortal:
|
|
57
|
-
} = n, [
|
|
47
|
+
disablePortal: t = !1
|
|
48
|
+
} = n, [r, a] = u.useState(null), l = T(/* @__PURE__ */ u.isValidElement(o) ? g(o) : null, i);
|
|
58
49
|
if (f(() => {
|
|
59
|
-
|
|
60
|
-
}, [s,
|
|
61
|
-
if (
|
|
62
|
-
return d(
|
|
63
|
-
d(
|
|
50
|
+
t || a(w(s) || document.body);
|
|
51
|
+
}, [s, t]), f(() => {
|
|
52
|
+
if (r && !t)
|
|
53
|
+
return d(i, r), () => {
|
|
54
|
+
d(i, null);
|
|
64
55
|
};
|
|
65
|
-
}, [
|
|
66
|
-
if (/* @__PURE__ */ u.isValidElement(
|
|
56
|
+
}, [i, r, t]), t) {
|
|
57
|
+
if (/* @__PURE__ */ u.isValidElement(o)) {
|
|
67
58
|
const y = {
|
|
68
59
|
ref: l
|
|
69
60
|
};
|
|
70
|
-
return /* @__PURE__ */ u.cloneElement(
|
|
61
|
+
return /* @__PURE__ */ u.cloneElement(o, y);
|
|
71
62
|
}
|
|
72
|
-
return
|
|
63
|
+
return o;
|
|
73
64
|
}
|
|
74
|
-
return
|
|
65
|
+
return r && /* @__PURE__ */ P.createPortal(o, r);
|
|
75
66
|
});
|
|
76
67
|
process.env.NODE_ENV !== "production" && (p.propTypes = {
|
|
77
68
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
@@ -92,19 +83,18 @@ process.env.NODE_ENV !== "production" && (p.propTypes = {
|
|
|
92
83
|
* By default, it uses the body of the top-level document object,
|
|
93
84
|
* so it's simply `document.body` most of the time.
|
|
94
85
|
*/
|
|
95
|
-
container: c.oneOfType([
|
|
86
|
+
container: c.oneOfType([N, c.func]),
|
|
96
87
|
/**
|
|
97
88
|
* The `children` will be under the DOM hierarchy of the parent component.
|
|
98
89
|
* @default false
|
|
99
90
|
*/
|
|
100
91
|
disablePortal: c.bool
|
|
101
92
|
});
|
|
102
|
-
process.env.NODE_ENV !== "production" && (p.propTypes =
|
|
93
|
+
process.env.NODE_ENV !== "production" && (p.propTypes = h(p.propTypes));
|
|
103
94
|
export {
|
|
104
|
-
|
|
95
|
+
N as H,
|
|
105
96
|
p as P,
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
x as o
|
|
97
|
+
v as e,
|
|
98
|
+
g,
|
|
99
|
+
C as o
|
|
110
100
|
};
|
package/dist/assets/Stack.js
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import * as l from "react";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
import { P as e, b as S, h as g, r as m, j as V, k as N, m as D, g as E, l as h } from "./createTheme.js";
|
|
3
|
+
import { e as R, c as B, a as M, s as w, u as G } from "./DefaultPropsProvider.js";
|
|
4
|
+
import { jsx as U } from "react/jsx-runtime";
|
|
5
|
+
import { e as _ } from "./Typography.js";
|
|
6
|
+
import { r as $ } from "./DefaultPropsProvider2.js";
|
|
7
|
+
import { u as A } from "./useTheme.js";
|
|
8
|
+
const L = R();
|
|
9
|
+
function q(o) {
|
|
8
10
|
const {
|
|
9
11
|
theme: r,
|
|
10
12
|
name: n,
|
|
11
13
|
props: t
|
|
12
14
|
} = o;
|
|
13
|
-
return !r || !r.components || !r.components[n] || !r.components[n].defaultProps ? t :
|
|
15
|
+
return !r || !r.components || !r.components[n] || !r.components[n].defaultProps ? t : $(r.components[n].defaultProps, t);
|
|
14
16
|
}
|
|
15
17
|
function z({
|
|
16
18
|
props: o,
|
|
@@ -19,19 +21,19 @@ function z({
|
|
|
19
21
|
themeId: t
|
|
20
22
|
}) {
|
|
21
23
|
let s = A(n);
|
|
22
|
-
return t && (s = s[t] || s),
|
|
24
|
+
return t && (s = s[t] || s), q({
|
|
23
25
|
theme: s,
|
|
24
26
|
name: r,
|
|
25
27
|
props: o
|
|
26
28
|
});
|
|
27
29
|
}
|
|
28
|
-
function
|
|
30
|
+
function se(...o) {
|
|
29
31
|
return o.reduce((r, n) => n == null ? r : function(...s) {
|
|
30
32
|
r.apply(this, s), n.apply(this, s);
|
|
31
33
|
}, () => {
|
|
32
34
|
});
|
|
33
35
|
}
|
|
34
|
-
const H =
|
|
36
|
+
const H = S(), I = L("div", {
|
|
35
37
|
name: "MuiStack",
|
|
36
38
|
slot: "Root",
|
|
37
39
|
overridesResolver: (o, r) => r.root
|
|
@@ -71,7 +73,7 @@ const Q = (o) => ({
|
|
|
71
73
|
}))
|
|
72
74
|
};
|
|
73
75
|
if (o.spacing) {
|
|
74
|
-
const t =
|
|
76
|
+
const t = V(r), s = Object.keys(r.breakpoints.values).reduce((c, a) => ((typeof o.spacing == "object" && o.spacing[a] != null || typeof o.direction == "object" && o.direction[a] != null) && (c[a] = !0), c), {}), i = m({
|
|
75
77
|
values: o.direction,
|
|
76
78
|
base: s
|
|
77
79
|
}), u = m({
|
|
@@ -83,7 +85,7 @@ const Q = (o) => ({
|
|
|
83
85
|
const f = a > 0 ? i[p[a - 1]] : "column";
|
|
84
86
|
i[c] = f;
|
|
85
87
|
}
|
|
86
|
-
}), n =
|
|
88
|
+
}), n = N(n, g({
|
|
87
89
|
theme: r
|
|
88
90
|
}, u, (c, a) => o.useFlexGap ? {
|
|
89
91
|
gap: h(t, c)
|
|
@@ -98,7 +100,7 @@ const Q = (o) => ({
|
|
|
98
100
|
}
|
|
99
101
|
}));
|
|
100
102
|
}
|
|
101
|
-
return n =
|
|
103
|
+
return n = D(r.breakpoints, n), n;
|
|
102
104
|
};
|
|
103
105
|
function X(o = {}) {
|
|
104
106
|
const {
|
|
@@ -106,29 +108,29 @@ function X(o = {}) {
|
|
|
106
108
|
createStyledComponent: r = I,
|
|
107
109
|
useThemeProps: n = J,
|
|
108
110
|
componentName: t = "MuiStack"
|
|
109
|
-
} = o, s = () =>
|
|
111
|
+
} = o, s = () => M({
|
|
110
112
|
root: ["root"]
|
|
111
|
-
}, (c) =>
|
|
112
|
-
const p = n(c), y =
|
|
113
|
+
}, (c) => E(t, c), {}), i = r(W), u = /* @__PURE__ */ l.forwardRef(function(c, a) {
|
|
114
|
+
const p = n(c), y = _(p), {
|
|
113
115
|
component: f = "div",
|
|
114
116
|
direction: b = "column",
|
|
115
117
|
spacing: C = 0,
|
|
116
118
|
divider: v,
|
|
117
119
|
children: O,
|
|
118
|
-
className:
|
|
119
|
-
useFlexGap:
|
|
120
|
-
...
|
|
120
|
+
className: j,
|
|
121
|
+
useFlexGap: k = !1,
|
|
122
|
+
...x
|
|
121
123
|
} = y, P = {
|
|
122
124
|
direction: b,
|
|
123
125
|
spacing: C,
|
|
124
|
-
useFlexGap:
|
|
126
|
+
useFlexGap: k
|
|
125
127
|
}, F = s();
|
|
126
|
-
return /* @__PURE__ */
|
|
128
|
+
return /* @__PURE__ */ U(i, {
|
|
127
129
|
as: f,
|
|
128
130
|
ownerState: P,
|
|
129
131
|
ref: a,
|
|
130
|
-
className:
|
|
131
|
-
...
|
|
132
|
+
className: B(F.root, j),
|
|
133
|
+
...x,
|
|
132
134
|
children: v ? K(O, v) : O
|
|
133
135
|
});
|
|
134
136
|
});
|
|
@@ -140,7 +142,7 @@ function X(o = {}) {
|
|
|
140
142
|
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
141
143
|
}), u;
|
|
142
144
|
}
|
|
143
|
-
function
|
|
145
|
+
function ce({
|
|
144
146
|
props: o,
|
|
145
147
|
states: r,
|
|
146
148
|
muiFormControl: n
|
|
@@ -149,16 +151,16 @@ function te({
|
|
|
149
151
|
}
|
|
150
152
|
const T = /* @__PURE__ */ l.createContext(void 0);
|
|
151
153
|
process.env.NODE_ENV !== "production" && (T.displayName = "FormControlContext");
|
|
152
|
-
function
|
|
154
|
+
function ie() {
|
|
153
155
|
return l.useContext(T);
|
|
154
156
|
}
|
|
155
157
|
const Y = X({
|
|
156
|
-
createStyledComponent:
|
|
158
|
+
createStyledComponent: w("div", {
|
|
157
159
|
name: "MuiStack",
|
|
158
160
|
slot: "Root",
|
|
159
161
|
overridesResolver: (o, r) => r.root
|
|
160
162
|
}),
|
|
161
|
-
useThemeProps: (o) =>
|
|
163
|
+
useThemeProps: (o) => G({
|
|
162
164
|
props: o,
|
|
163
165
|
name: "MuiStack"
|
|
164
166
|
})
|
|
@@ -210,7 +212,7 @@ process.env.NODE_ENV !== "production" && (Y.propTypes = {
|
|
|
210
212
|
export {
|
|
211
213
|
T as F,
|
|
212
214
|
Y as S,
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
215
|
+
se as c,
|
|
216
|
+
ce as f,
|
|
217
|
+
ie as u
|
|
216
218
|
};
|