@notificationapi/react 0.0.8 → 0.0.10
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/BellOutlined.js +18 -15
- package/dist/assets/Inbox.js +2376 -2270
- package/dist/assets/Notification.js +1960 -1340
- package/dist/assets/Preferences.js +564 -533
- package/dist/assets/PurePanel.js +24 -23
- package/dist/assets/button.js +275 -265
- package/dist/assets/colors.js +19298 -7652
- package/dist/assets/index.js +48 -47
- package/dist/assets/index2.js +94 -92
- package/dist/assets/index3.js +2990 -2647
- package/dist/components/Notifications/Inbox.d.ts +0 -1
- package/dist/components/Notifications/InboxHeader.d.ts +2 -3
- package/dist/components/Notifications/InboxHeader.js +14 -13
- package/dist/components/Notifications/Notification.d.ts +2 -3
- package/dist/components/Notifications/NotificationCounter.d.ts +1 -1
- package/dist/components/Notifications/NotificationFeed.d.ts +0 -1
- package/dist/components/Notifications/NotificationLauncher.d.ts +0 -1
- package/dist/components/Notifications/NotificationPopup.d.ts +0 -1
- package/dist/components/Notifications/UnreadBadge.d.ts +1 -1
- package/dist/components/Preferences/NotificationPreferencesInline.d.ts +2 -3
- package/dist/components/Preferences/NotificationPreferencesPopup.d.ts +2 -3
- package/dist/components/Preferences/NotificationPreferencesPopup.js +682 -646
- package/dist/components/Preferences/PreferenceGroup.d.ts +1 -2
- package/dist/components/Preferences/Preferences.d.ts +1 -2
- package/dist/components/Provider/index.d.ts +3 -2
- package/dist/components/Provider/index.js +102 -96
- package/package.json +1 -1
package/dist/assets/PurePanel.js
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { _ as R, C as w, a as
|
|
1
|
+
import { _ as R, C as w, a as E } from "./colors.js";
|
|
2
2
|
import * as e from "react";
|
|
3
|
-
import { I as
|
|
4
|
-
var
|
|
5
|
-
return /* @__PURE__ */ e.createElement(
|
|
6
|
-
ref:
|
|
7
|
-
icon:
|
|
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
|
-
},
|
|
10
|
-
|
|
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
|
|
21
|
+
const N = (n, s, l, W) => L((r) => {
|
|
21
22
|
const {
|
|
22
23
|
prefixCls: f,
|
|
23
24
|
style: p
|
|
24
|
-
} =
|
|
25
|
-
value:
|
|
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:
|
|
28
|
-
} = e.useContext(
|
|
28
|
+
getPrefixCls: O
|
|
29
|
+
} = e.useContext(E), h = O("select", f);
|
|
29
30
|
e.useEffect(() => {
|
|
30
|
-
if (
|
|
31
|
+
if (P(!0), typeof ResizeObserver < "u") {
|
|
31
32
|
const i = new ResizeObserver((t) => {
|
|
32
|
-
const
|
|
33
|
-
m(
|
|
33
|
+
const o = t[0].target;
|
|
34
|
+
m(o.offsetHeight + 8), C(o.offsetWidth);
|
|
34
35
|
}), u = setInterval(() => {
|
|
35
36
|
var t;
|
|
36
|
-
const
|
|
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({},
|
|
45
|
+
let b = Object.assign(Object.assign({}, r), {
|
|
45
46
|
style: Object.assign(Object.assign({}, p), {
|
|
46
47
|
margin: 0
|
|
47
48
|
}),
|
|
48
|
-
open:
|
|
49
|
-
visible:
|
|
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
|
-
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
S as R,
|
|
65
|
+
N as g,
|
|
66
|
+
L as w
|
|
66
67
|
};
|