@notificationapi/react 1.7.0 → 1.9.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.
Files changed (47) hide show
  1. package/dist/assets/Badge.js +60 -64
  2. package/dist/assets/Box.js +26 -24
  3. package/dist/assets/Button.js +22 -19
  4. package/dist/assets/ButtonBase.js +193 -185
  5. package/dist/assets/DefaultPropsProvider.js +416 -4199
  6. package/dist/assets/DefaultPropsProvider2.js +992 -0
  7. package/dist/assets/Divider.js +22 -18
  8. package/dist/assets/GlobalStyles.js +23 -0
  9. package/dist/assets/Grow.js +1513 -120
  10. package/dist/assets/IconButton.js +8 -7
  11. package/dist/assets/List.js +12 -11
  12. package/dist/assets/Modal.js +18 -17
  13. package/dist/assets/Notification.js +787 -770
  14. package/dist/assets/Paper.js +8 -8
  15. package/dist/assets/Popover.js +37 -36
  16. package/dist/assets/Portal.js +39 -49
  17. package/dist/assets/Stack.js +32 -30
  18. package/dist/assets/Typography.js +84 -97
  19. package/dist/assets/createSvgIcon.js +25 -24
  20. package/dist/assets/createTheme.js +2828 -0
  21. package/dist/assets/exactProp.js +13 -0
  22. package/dist/assets/index.js +19 -148
  23. package/dist/assets/index2.js +151 -0
  24. package/dist/assets/useControlled.js +49 -0
  25. package/dist/assets/usePreviousProps.js +10 -0
  26. package/dist/assets/useTheme.js +6 -7
  27. package/dist/assets/{useTheme2.js → useThemeWithoutDefault.js} +63 -67
  28. package/dist/assets/utils.js +4 -4
  29. package/dist/components/Notifications/Inbox.js +593 -583
  30. package/dist/components/Notifications/InboxHeader.js +360 -1754
  31. package/dist/components/Notifications/Notification.js +4 -2
  32. package/dist/components/Notifications/NotificationFeed.js +40 -32
  33. package/dist/components/Notifications/NotificationLauncher.js +90 -64
  34. package/dist/components/Notifications/NotificationPopup.js +76 -65
  35. package/dist/components/Preferences/NotificationPreferencesInline.js +57 -39
  36. package/dist/components/Preferences/NotificationPreferencesPopup.js +111 -99
  37. package/dist/components/Preferences/PreferenceInput.js +427 -414
  38. package/dist/components/Preferences/Preferences.js +329 -278
  39. package/dist/components/Provider/index.d.ts +2 -0
  40. package/dist/components/Provider/index.js +1008 -401
  41. package/dist/components/Slack/SlackConnect.js +4627 -2024
  42. package/dist/main.d.ts +2 -0
  43. package/dist/main.js +6 -3
  44. package/dist/utils/theme.d.ts +17 -0
  45. package/dist/utils/theme.js +104 -0
  46. package/package.json +1 -1
  47. package/dist/assets/dividerClasses.js +0 -56
@@ -1,13 +1,13 @@
1
1
  import * as P from "react";
2
- import { g as b, e as h, s as g, m as w, u as T, c as $, a as u, f, P as a, b as x } from "./DefaultPropsProvider.js";
3
- import { u as O } from "./useTheme.js";
4
- import { jsx as C } from "react/jsx-runtime";
5
- import { c as N } from "./ButtonBase.js";
2
+ import { g as b, b as u, d as f, P as a } from "./createTheme.js";
3
+ import { g as h, 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
- return h("MuiPaper", e);
8
+ return b("MuiPaper", e);
9
9
  }
10
- b("MuiPaper", ["root", "rounded", "outlined", "elevation", "elevation0", "elevation1", "elevation2", "elevation3", "elevation4", "elevation5", "elevation6", "elevation7", "elevation8", "elevation9", "elevation10", "elevation11", "elevation12", "elevation13", "elevation14", "elevation15", "elevation16", "elevation17", "elevation18", "elevation19", "elevation20", "elevation21", "elevation22", "elevation23", "elevation24"]);
10
+ h("MuiPaper", ["root", "rounded", "outlined", "elevation", "elevation0", "elevation1", "elevation2", "elevation3", "elevation4", "elevation5", "elevation6", "elevation7", "elevation8", "elevation9", "elevation10", "elevation11", "elevation12", "elevation13", "elevation14", "elevation15", "elevation16", "elevation17", "elevation18", "elevation19", "elevation20", "elevation21", "elevation22", "elevation23", "elevation24"]);
11
11
  const E = (e) => {
12
12
  const {
13
13
  square: o,
@@ -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__ */ C(M, {
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: N(R, (e) => {
126
+ elevation: C(R, (e) => {
127
127
  const {
128
128
  elevation: o,
129
129
  variant: t
@@ -1,5 +1,6 @@
1
- import * as p from "react";
2
- import { g as ge, e as ve, s as te, u as ye, c as Y, P as e, b as be } from "./DefaultPropsProvider.js";
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
5
  import { a as X, r as Ee, c as Oe, e as Re } from "./ButtonBase.js";
5
6
  import { jsx as z } from "react/jsx-runtime";
@@ -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 g(...R) {
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 g.clear = () => {
21
+ return P.clear = () => {
21
22
  clearTimeout(n);
22
- }, g;
23
+ }, P;
23
24
  }
24
25
  function ze(t) {
25
- return ve("MuiPopover", t);
26
+ return Pe("MuiPopover", t);
26
27
  }
27
- ge("MuiPopover", ["root", "paper"]);
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__ */ p.forwardRef(function(o, n) {
71
- const g = ye({
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
- } = g, h = (E == null ? void 0 : E.paper) ?? se, N = p.useRef(), j = {
105
- ...g,
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 = p.useCallback(() => {
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 = p.useCallback((r) => ({
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 = p.useCallback((r) => {
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, P = d.left - s.horizontal;
144
- const B = m + i.height, $ = P + i.width, F = J(O(a)), T = F.innerHeight - l, G = F.innerWidth - l;
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 c = m - l;
147
- m -= c, s.vertical += c;
147
+ const p = m - l;
148
+ m -= p, s.vertical += p;
148
149
  } else if (l !== null && B > T) {
149
- const c = B - T;
150
- m -= c, s.vertical += c;
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 && P < l) {
154
- const c = P - l;
155
- P -= c, s.horizontal += c;
154
+ `)), l !== null && g < l) {
155
+ const p = g - l;
156
+ g -= p, s.horizontal += p;
156
157
  } else if ($ > G) {
157
- const c = $ - G;
158
- P -= c, s.horizontal += c;
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(P)}px`,
163
+ left: `${Math.round(g)}px`,
163
164
  transformOrigin: oe(s)
164
165
  };
165
- }, [a, y, H, I, l]), [ce, V] = p.useState(u), f = p.useCallback(() => {
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
- p.useEffect(() => (M && window.addEventListener("scroll", f), () => window.removeEventListener("scroll", f)), [a, M, f]);
173
- const pe = (r, i) => {
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
- p.useEffect(() => {
179
+ c.useEffect(() => {
179
180
  u && f();
180
- }), p.useImperativeHandle(R, () => u ? {
181
+ }), c.useImperativeHandle(R, () => u ? {
181
182
  updatePosition: () => {
182
183
  f();
183
184
  }
184
- } : null, [u, f]), p.useEffect(() => {
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: ce ? h.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
- }), Pe = Ce(N, A.ref);
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: pe,
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: Pe,
250
+ ref: ge,
250
251
  children: ne
251
252
  })
252
253
  })
@@ -1,77 +1,68 @@
1
- import { P as c } from "./DefaultPropsProvider.js";
2
- import { c as m, b as f } from "./ButtonBase.js";
1
+ import { P as c } from "./createTheme.js";
2
+ import { c as m, f } from "./ButtonBase.js";
3
3
  import * as u from "react";
4
- import { a as P } from "./utils.js";
5
- import { u as h, s as d } from "./resolveComponentProps.js";
6
- function v(e) {
4
+ import { r as P } from "./utils.js";
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, r, t, s) {
13
- const o = e[n], i = s || n;
14
- if (o == null || // When server-side rendering React doesn't warn either.
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 = o.type;
22
- return typeof l == "function" && !v(l) && (a = "Did you accidentally use a plain function component for an element instead?"), a !== void 0 ? new Error(`Invalid ${t} \`${i}\` supplied to \`${r}\`. Expected an element that can hold a ref. ${a} For more information see https://mui.com/r/caveat-with-refs-guide`) : null;
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
- function g(e, n, r, t, s) {
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 o = e[n], i = s || n;
40
- return o == null ? null : o && o.nodeType !== 1 ? new Error(`Invalid ${t} \`${i}\` supplied to \`${r}\`. Expected an HTMLElement.`) : null;
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 x(e) {
33
+ function C(e) {
43
34
  return e && e.ownerDocument || document;
44
35
  }
45
- function R(e) {
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 $(e) {
40
+ function w(e) {
50
41
  return typeof e == "function" ? e() : e;
51
42
  }
52
- const p = /* @__PURE__ */ u.forwardRef(function(n, r) {
43
+ const p = /* @__PURE__ */ u.forwardRef(function(n, i) {
53
44
  const {
54
- children: t,
45
+ children: o,
55
46
  container: s,
56
- disablePortal: o = !1
57
- } = n, [i, a] = u.useState(null), l = h(/* @__PURE__ */ u.isValidElement(t) ? R(t) : null, r);
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
- o || a($(s) || document.body);
60
- }, [s, o]), f(() => {
61
- if (i && !o)
62
- return d(r, i), () => {
63
- d(r, null);
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
- }, [r, i, o]), o) {
66
- if (/* @__PURE__ */ u.isValidElement(t)) {
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(t, y);
61
+ return /* @__PURE__ */ u.cloneElement(o, y);
71
62
  }
72
- return t;
63
+ return o;
73
64
  }
74
- return i && /* @__PURE__ */ P.createPortal(t, i);
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([g, c.func]),
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 = T(p.propTypes));
93
+ process.env.NODE_ENV !== "production" && (p.propTypes = h(p.propTypes));
103
94
  export {
104
- g as H,
95
+ N as H,
105
96
  p as P,
106
- T as a,
107
- w as e,
108
- R as g,
109
- x as o
97
+ v as e,
98
+ g,
99
+ C as o
110
100
  };
@@ -1,16 +1,18 @@
1
1
  import * as l from "react";
2
- import { o as S, r as V, P as e, p as N, q as g, t as m, v as D, w as E, x as R, c as w, b as B, e as M, y as h, s as G, u as U } from "./DefaultPropsProvider.js";
3
- import { jsx as _ } from "react/jsx-runtime";
4
- import { e as $ } from "./Typography.js";
5
- import { u as A } from "./useTheme2.js";
6
- const q = S();
7
- function L(o) {
2
+ import { P as e, a 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 : V(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), L({
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 ne(...o) {
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 = N(), I = q("div", {
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 = D(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({
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 = E(n, g({
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 = R(r.breakpoints, n), 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 = () => B({
111
+ } = o, s = () => M({
110
112
  root: ["root"]
111
- }, (c) => M(t, c), {}), i = r(W), u = /* @__PURE__ */ l.forwardRef(function(c, a) {
112
- const p = n(c), y = $(p), {
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: x,
119
- useFlexGap: j = !1,
120
- ...k
120
+ className: j,
121
+ useFlexGap: k = !1,
122
+ ...x
121
123
  } = y, P = {
122
124
  direction: b,
123
125
  spacing: C,
124
- useFlexGap: j
126
+ useFlexGap: k
125
127
  }, F = s();
126
- return /* @__PURE__ */ _(i, {
128
+ return /* @__PURE__ */ U(i, {
127
129
  as: f,
128
130
  ownerState: P,
129
131
  ref: a,
130
- className: w(F.root, x),
131
- ...k,
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 te({
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 se() {
154
+ function ie() {
153
155
  return l.useContext(T);
154
156
  }
155
157
  const Y = X({
156
- createStyledComponent: G("div", {
158
+ createStyledComponent: w("div", {
157
159
  name: "MuiStack",
158
160
  slot: "Root",
159
161
  overridesResolver: (o, r) => r.root
160
162
  }),
161
- useThemeProps: (o) => U({
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
- ne as c,
214
- te as f,
215
- se as u
215
+ se as c,
216
+ ce as f,
217
+ ie as u
216
218
  };