@notificationapi/react 0.0.9 → 0.0.11

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 (33) hide show
  1. package/dist/assets/BellOutlined.js +18 -15
  2. package/dist/assets/Inbox.js +2376 -2270
  3. package/dist/assets/Notification.js +1967 -1342
  4. package/dist/assets/Preferences.js +828 -782
  5. package/dist/assets/PurePanel.js +24 -23
  6. package/dist/assets/button.js +275 -265
  7. package/dist/assets/colors.js +19298 -7652
  8. package/dist/assets/index.js +48 -47
  9. package/dist/assets/index2.js +94 -92
  10. package/dist/assets/index3.js +2990 -2647
  11. package/dist/components/Notifications/Inbox.d.ts +0 -1
  12. package/dist/components/Notifications/InboxHeader.d.ts +2 -3
  13. package/dist/components/Notifications/InboxHeader.js +14 -13
  14. package/dist/components/Notifications/Notification.d.ts +3 -3
  15. package/dist/components/Notifications/NotificationCounter.d.ts +1 -1
  16. package/dist/components/Notifications/NotificationFeed.d.ts +2 -2
  17. package/dist/components/Notifications/NotificationLauncher.d.ts +0 -1
  18. package/dist/components/Notifications/NotificationPopup.d.ts +2 -2
  19. package/dist/components/Notifications/UnreadBadge.d.ts +1 -1
  20. package/dist/components/Notifications/UnreadBadge.js +1 -1
  21. package/dist/components/Preferences/NotificationPreferencesInline.d.ts +2 -3
  22. package/dist/components/Preferences/NotificationPreferencesPopup.d.ts +3 -3
  23. package/dist/components/Preferences/NotificationPreferencesPopup.js +684 -647
  24. package/dist/components/Preferences/PreferenceInput.d.ts +10 -0
  25. package/dist/components/Preferences/{PreferenceGroup.js → PreferenceInput.js} +2 -3
  26. package/dist/components/Preferences/Preferences.d.ts +1 -2
  27. package/dist/components/Preferences/Preferences.js +4 -5
  28. package/dist/components/Provider/index.d.ts +4 -22
  29. package/dist/components/Provider/index.js +139 -117
  30. package/dist/interface.d.ts +19 -0
  31. package/dist/interface.js +1 -0
  32. package/package.json +1 -1
  33. package/dist/components/Preferences/PreferenceGroup.d.ts +0 -8
@@ -1,13 +1,14 @@
1
- import { _ as R, C as w, a as I } from "./colors.js";
1
+ import { _ as R, C as w, a as E } from "./colors.js";
2
2
  import * as e from "react";
3
- import { I as j, u as y } from "./index3.js";
4
- var z = { icon: { tag: "svg", attrs: { "fill-rule": "evenodd", viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z" } }] }, name: "close", theme: "outlined" }, E = function(s, c) {
5
- return /* @__PURE__ */ e.createElement(j, R({}, s, {
6
- ref: c,
7
- icon: z
3
+ import { I as y, u as I } from "./index3.js";
4
+ var j = { icon: { tag: "svg", attrs: { "fill-rule": "evenodd", viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z" } }] }, name: "close", theme: "outlined" }, z = function(s, l) {
5
+ return /* @__PURE__ */ e.createElement(y, R({}, s, {
6
+ ref: l,
7
+ icon: j
8
8
  }));
9
- }, _ = /* @__PURE__ */ e.forwardRef(E);
10
- function S(n) {
9
+ }, S = /* @__PURE__ */ e.forwardRef(z);
10
+ process.env.NODE_ENV !== "production" && (S.displayName = "CloseOutlined");
11
+ function L(n) {
11
12
  return (s) => /* @__PURE__ */ e.createElement(w, {
12
13
  theme: {
13
14
  token: {
@@ -17,23 +18,23 @@ function S(n) {
17
18
  }
18
19
  }, /* @__PURE__ */ e.createElement(n, Object.assign({}, s)));
19
20
  }
20
- const M = (n, s, c, L) => S((o) => {
21
+ const N = (n, s, l, W) => L((r) => {
21
22
  const {
22
23
  prefixCls: f,
23
24
  style: p
24
- } = o, a = e.useRef(null), [g, m] = e.useState(0), [v, P] = e.useState(0), [l, C] = y(!1, {
25
- value: o.open
25
+ } = r, a = e.useRef(null), [g, m] = e.useState(0), [v, C] = e.useState(0), [c, P] = I(!1, {
26
+ value: r.open
26
27
  }), {
27
- getPrefixCls: h
28
- } = e.useContext(I), O = h("select", f);
28
+ getPrefixCls: O
29
+ } = e.useContext(E), h = O("select", f);
29
30
  e.useEffect(() => {
30
- if (C(!0), typeof ResizeObserver < "u") {
31
+ if (P(!0), typeof ResizeObserver < "u") {
31
32
  const i = new ResizeObserver((t) => {
32
- const r = t[0].target;
33
- m(r.offsetHeight + 8), P(r.offsetWidth);
33
+ const o = t[0].target;
34
+ m(o.offsetHeight + 8), C(o.offsetWidth);
34
35
  }), u = setInterval(() => {
35
36
  var t;
36
- const r = `.${O}-dropdown`, d = (t = a.current) === null || t === void 0 ? void 0 : t.querySelector(r);
37
+ const o = `.${h}-dropdown`, d = (t = a.current) === null || t === void 0 ? void 0 : t.querySelector(o);
37
38
  d && (clearInterval(u), i.observe(d));
38
39
  }, 10);
39
40
  return () => {
@@ -41,12 +42,12 @@ const M = (n, s, c, L) => S((o) => {
41
42
  };
42
43
  }
43
44
  }, []);
44
- let b = Object.assign(Object.assign({}, o), {
45
+ let b = Object.assign(Object.assign({}, r), {
45
46
  style: Object.assign(Object.assign({}, p), {
46
47
  margin: 0
47
48
  }),
48
- open: l,
49
- visible: l,
49
+ open: c,
50
+ visible: c,
50
51
  getPopupContainer: () => a.current
51
52
  });
52
53
  const x = {
@@ -60,7 +61,7 @@ const M = (n, s, c, L) => S((o) => {
60
61
  }, /* @__PURE__ */ e.createElement(n, Object.assign({}, b)));
61
62
  });
62
63
  export {
63
- _ as R,
64
- M as g,
65
- S as w
64
+ S as R,
65
+ N as g,
66
+ L as w
66
67
  };