@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.
Files changed (44) hide show
  1. package/dist/assets/Badge.js +1 -1
  2. package/dist/assets/Box.js +13 -13
  3. package/dist/assets/Button.js +781 -0
  4. package/dist/assets/ButtonBase.js +409 -622
  5. package/dist/assets/DefaultPropsProvider.js +220 -215
  6. package/dist/assets/Divider.js +105 -154
  7. package/dist/assets/Grow.js +201 -0
  8. package/dist/assets/IconButton.js +1 -1
  9. package/dist/assets/List.js +142 -0
  10. package/dist/assets/Modal.js +1094 -0
  11. package/dist/assets/Notification.js +80 -79
  12. package/dist/assets/Paper.js +1 -1
  13. package/dist/assets/Popover.js +8 -6
  14. package/dist/assets/Portal.js +2 -2
  15. package/dist/assets/Stack.js +216 -0
  16. package/dist/assets/Typography.js +193 -117
  17. package/dist/assets/WebPushOptInMessage.js +40 -814
  18. package/dist/assets/createSvgIcon.js +5 -5
  19. package/dist/assets/dividerClasses.js +56 -0
  20. package/dist/assets/index.js +151 -0
  21. package/dist/assets/useTheme2.js +253 -11
  22. package/dist/assets/utils.js +4 -4
  23. package/dist/components/Notifications/Inbox.js +2927 -9
  24. package/dist/components/Notifications/InboxHeader.js +2146 -7
  25. package/dist/components/Notifications/NotificationFeed.js +13 -13
  26. package/dist/components/Notifications/NotificationLauncher.js +2 -2
  27. package/dist/components/Notifications/NotificationPopup.js +7 -7
  28. package/dist/components/Preferences/NotificationPreferencesPopup.js +608 -7
  29. package/dist/components/Preferences/PreferenceInput.js +1451 -6
  30. package/dist/components/Preferences/Preferences.js +368 -515
  31. package/dist/components/Preferences/index.js +1 -1
  32. package/dist/components/Provider/index.js +226 -202
  33. package/dist/components/Slack/SlackConnect.d.ts +12 -0
  34. package/dist/components/Slack/SlackConnect.js +4826 -0
  35. package/dist/components/Slack/index.d.ts +1 -0
  36. package/dist/components/Slack/index.js +4 -0
  37. package/dist/components/WebPush/WebPushOptInMessage.js +3 -2
  38. package/dist/main.d.ts +1 -0
  39. package/dist/main.js +5 -3
  40. package/package.json +4 -4
  41. package/dist/assets/Inbox.js +0 -3061
  42. package/dist/assets/InboxHeader.js +0 -2338
  43. package/dist/assets/NotificationPreferencesPopup.js +0 -1694
  44. package/dist/assets/PreferenceInput.js +0 -1657
@@ -1,5 +1,5 @@
1
1
  import * as x from "react";
2
- import { g as Y, a as w, s as M, h as t, m as rr, u as or, c as A, P as o, f as ar } from "./DefaultPropsProvider.js";
2
+ import { g as Y, e as w, s as M, h as t, m as rr, u as or, c as A, P as o, b as ar } from "./DefaultPropsProvider.js";
3
3
  import { c as nr } from "./createSimplePaletteValueFilter.js";
4
4
  import { jsxs as tr, jsx as er } from "react/jsx-runtime";
5
5
  import { u as F } from "./useSlotProps.js";
@@ -1,9 +1,9 @@
1
- import { k as x, l as p, c as h, g as T, n as y, T as B, C as N, P as e } from "./DefaultPropsProvider.js";
1
+ import { i as x, j as p, c as h, g as T, k as y, T as B, C as N, P as e } from "./DefaultPropsProvider.js";
2
2
  import * as C from "react";
3
3
  import { jsx as g } from "react/jsx-runtime";
4
4
  import { u as b } from "./useTheme2.js";
5
- import { e as v } from "./Typography.js";
6
- function E(n = {}) {
5
+ import { e as j } from "./Typography.js";
6
+ function v(n = {}) {
7
7
  const {
8
8
  themeId: t,
9
9
  defaultTheme: m,
@@ -14,26 +14,26 @@ function E(n = {}) {
14
14
  })(p);
15
15
  return /* @__PURE__ */ C.forwardRef(function(l, f) {
16
16
  const s = b(m), {
17
- className: d,
18
- component: i = "div",
17
+ className: i,
18
+ component: d = "div",
19
19
  ...u
20
- } = v(l);
20
+ } = j(l);
21
21
  return /* @__PURE__ */ g(c, {
22
- as: i,
22
+ as: d,
23
23
  ref: f,
24
- className: h(d, r ? r(a) : a),
24
+ className: h(i, r ? r(a) : a),
25
25
  theme: t && s[t] || s,
26
26
  ...u
27
27
  });
28
28
  });
29
29
  }
30
- const O = T("MuiBox", ["root"]), P = y(), j = E({
30
+ const E = T("MuiBox", ["root"]), O = y(), P = v({
31
31
  themeId: B,
32
- defaultTheme: P,
33
- defaultClassName: O.root,
32
+ defaultTheme: O,
33
+ defaultClassName: E.root,
34
34
  generateClassName: N.generate
35
35
  });
36
- process.env.NODE_ENV !== "production" && (j.propTypes = {
36
+ process.env.NODE_ENV !== "production" && (P.propTypes = {
37
37
  // ┌────────────────────────────── Warning ──────────────────────────────┐
38
38
  // │ These PropTypes are generated from the TypeScript type definitions. │
39
39
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -53,5 +53,5 @@ process.env.NODE_ENV !== "production" && (j.propTypes = {
53
53
  sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
54
54
  });
55
55
  export {
56
- j as B
56
+ P as B
57
57
  };