@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.
- package/dist/assets/BellOutlined.js +18 -15
- package/dist/assets/Inbox.js +2376 -2270
- package/dist/assets/Notification.js +1967 -1342
- package/dist/assets/Preferences.js +828 -782
- 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 +3 -3
- package/dist/components/Notifications/NotificationCounter.d.ts +1 -1
- package/dist/components/Notifications/NotificationFeed.d.ts +2 -2
- package/dist/components/Notifications/NotificationLauncher.d.ts +0 -1
- package/dist/components/Notifications/NotificationPopup.d.ts +2 -2
- package/dist/components/Notifications/UnreadBadge.d.ts +1 -1
- package/dist/components/Notifications/UnreadBadge.js +1 -1
- package/dist/components/Preferences/NotificationPreferencesInline.d.ts +2 -3
- package/dist/components/Preferences/NotificationPreferencesPopup.d.ts +3 -3
- package/dist/components/Preferences/NotificationPreferencesPopup.js +684 -647
- package/dist/components/Preferences/PreferenceInput.d.ts +10 -0
- package/dist/components/Preferences/{PreferenceGroup.js → PreferenceInput.js} +2 -3
- package/dist/components/Preferences/Preferences.d.ts +1 -2
- package/dist/components/Preferences/Preferences.js +4 -5
- package/dist/components/Provider/index.d.ts +4 -22
- package/dist/components/Provider/index.js +139 -117
- package/dist/interface.d.ts +19 -0
- package/dist/interface.js +1 -0
- package/package.json +1 -1
- package/dist/components/Preferences/PreferenceGroup.d.ts +0 -8
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { d as
|
|
1
|
+
import { d as c, _ as l } from "./colors.js";
|
|
2
2
|
import * as t from "react";
|
|
3
|
-
import { I as
|
|
3
|
+
import { I as s } from "./index3.js";
|
|
4
4
|
var d = `accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
5
5
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
6
6
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
@@ -18,11 +18,11 @@ var d = `accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
|
18
18
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
19
19
|
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
20
20
|
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
21
|
-
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,
|
|
21
|
+
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`, p = "".concat(d, " ").concat(u).split(/[\s\n]+/), m = "aria-", h = "data-";
|
|
22
22
|
function i(o, n) {
|
|
23
23
|
return o.indexOf(n) === 0;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function O(o) {
|
|
26
26
|
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, e;
|
|
27
27
|
n === !1 ? e = {
|
|
28
28
|
aria: !0,
|
|
@@ -30,28 +30,31 @@ function M(o) {
|
|
|
30
30
|
attr: !0
|
|
31
31
|
} : n === !0 ? e = {
|
|
32
32
|
aria: !0
|
|
33
|
-
} : e =
|
|
33
|
+
} : e = c({}, n);
|
|
34
34
|
var r = {};
|
|
35
35
|
return Object.keys(o).forEach(function(a) {
|
|
36
36
|
// Aria
|
|
37
|
-
(e.aria && (a === "role" || i(a,
|
|
37
|
+
(e.aria && (a === "role" || i(a, m)) || // Data
|
|
38
38
|
e.data && i(a, h) || // Attr
|
|
39
|
-
e.attr &&
|
|
39
|
+
e.attr && p.includes(a)) && (r[a] = o[a]);
|
|
40
40
|
}), r;
|
|
41
41
|
}
|
|
42
42
|
var g = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z" } }] }, name: "right", theme: "outlined" }, f = function(n, e) {
|
|
43
|
-
return /* @__PURE__ */ t.createElement(
|
|
43
|
+
return /* @__PURE__ */ t.createElement(s, l({}, n, {
|
|
44
44
|
ref: e,
|
|
45
45
|
icon: g
|
|
46
46
|
}));
|
|
47
|
-
},
|
|
48
|
-
|
|
47
|
+
}, v = /* @__PURE__ */ t.forwardRef(f);
|
|
48
|
+
process.env.NODE_ENV !== "production" && (v.displayName = "RightOutlined");
|
|
49
|
+
var y = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M816 768h-24V428c0-141.1-104.3-257.7-240-277.1V112c0-22.1-17.9-40-40-40s-40 17.9-40 40v38.9c-135.7 19.4-240 136-240 277.1v340h-24c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h216c0 61.8 50.2 112 112 112s112-50.2 112-112h216c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM512 888c-26.5 0-48-21.5-48-48h96c0 26.5-21.5 48-48 48zM304 768V428c0-55.6 21.6-107.8 60.9-147.1S456.4 220 512 220c55.6 0 107.8 21.6 147.1 60.9S720 372.4 720 428v340H304z" } }] }, name: "bell", theme: "outlined" }, E = function(n, e) {
|
|
50
|
+
return /* @__PURE__ */ t.createElement(s, l({}, n, {
|
|
49
51
|
ref: e,
|
|
50
|
-
icon:
|
|
52
|
+
icon: y
|
|
51
53
|
}));
|
|
52
|
-
},
|
|
54
|
+
}, S = /* @__PURE__ */ t.forwardRef(E);
|
|
55
|
+
process.env.NODE_ENV !== "production" && (S.displayName = "BellOutlined");
|
|
53
56
|
export {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
+
S as R,
|
|
58
|
+
v as a,
|
|
59
|
+
O as p
|
|
57
60
|
};
|