@notificationapi/react 0.0.37 → 1.0.1
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/Badge.js +456 -0
- package/dist/assets/Box.js +57 -0
- package/dist/assets/ButtonBase.js +1224 -0
- package/dist/assets/DefaultPropsProvider.js +4368 -0
- package/dist/assets/Divider.js +343 -0
- package/dist/assets/IconButton.js +225 -0
- package/dist/assets/Inbox.js +3051 -0
- package/dist/assets/InboxHeader.js +2338 -0
- package/dist/assets/Notification.js +5349 -7150
- package/dist/assets/NotificationPreferencesPopup.js +1694 -0
- package/dist/assets/Paper.js +154 -0
- package/dist/assets/Popover.js +451 -0
- package/dist/assets/Portal.js +110 -0
- package/dist/assets/PreferenceInput.js +1545 -1366
- package/dist/assets/Typography.js +292 -0
- package/dist/assets/WebPushOptInMessage.js +794 -407
- package/dist/assets/channelUtils.js +33 -65
- package/dist/assets/createSimplePaletteValueFilter.js +17 -0
- package/dist/assets/createSvgIcon.js +248 -0
- package/dist/assets/integerPropType.js +31 -0
- package/dist/assets/resolveComponentProps.js +93 -0
- package/dist/assets/style.css +1 -0
- package/dist/assets/useSlotProps.js +24 -0
- package/dist/assets/useTheme.js +10 -0
- package/dist/assets/useTheme2.js +16 -0
- package/dist/assets/utils.js +743 -0
- package/dist/components/Notifications/DefaultEmpty.d.ts +3 -0
- package/dist/components/Notifications/DefaultEmpty.js +7 -0
- package/dist/components/Notifications/Inbox.d.ts +4 -4
- package/dist/components/Notifications/Inbox.js +9 -6450
- package/dist/components/Notifications/InboxHeader.d.ts +1 -1
- package/dist/components/Notifications/InboxHeader.js +7 -53
- package/dist/components/Notifications/Notification.d.ts +3 -4
- package/dist/components/Notifications/Notification.js +6 -5
- package/dist/components/Notifications/NotificationCounter.js +16 -6
- package/dist/components/Notifications/NotificationFeed.d.ts +1 -2
- package/dist/components/Notifications/NotificationFeed.js +41 -38
- package/dist/components/Notifications/NotificationLauncher.d.ts +1 -0
- package/dist/components/Notifications/NotificationLauncher.js +100 -114
- package/dist/components/Notifications/NotificationPopup.d.ts +3 -4
- package/dist/components/Notifications/NotificationPopup.js +86 -88
- package/dist/components/Notifications/UnreadBadge.d.ts +7 -4
- package/dist/components/Notifications/UnreadBadge.js +28 -20
- package/dist/components/Notifications/interface.d.ts +0 -4
- package/dist/components/Notifications/interface.js +4 -5
- package/dist/components/Preferences/NotificationPreferencesInline.js +14 -14
- package/dist/components/Preferences/NotificationPreferencesPopup.js +7 -2068
- package/dist/components/Preferences/PreferenceInput.js +4 -3
- package/dist/components/Preferences/Preferences.js +1042 -547
- package/dist/components/Preferences/channelUtils.js +3 -4
- package/dist/components/Preferences/index.js +1 -1
- package/dist/components/Provider/context.d.ts +27 -0
- package/dist/components/Provider/context.js +7 -0
- package/dist/components/Provider/index.d.ts +2 -25
- package/dist/components/Provider/index.js +22 -24
- package/dist/components/WebPush/WebPushOptInMessage.js +3 -4
- package/dist/main.d.ts +1 -0
- package/dist/main.js +4 -4
- package/package.json +14 -12
- package/dist/assets/AntdIcon.js +0 -200
- package/dist/assets/CloseOutlined.js +0 -13
- package/dist/assets/PurePanel.js +0 -59
- package/dist/assets/RightOutlined.js +0 -13
- package/dist/assets/button.js +0 -1660
- package/dist/assets/colors.js +0 -36
- package/dist/assets/compact-item.js +0 -860
- package/dist/assets/index.js +0 -271
- package/dist/assets/index2.js +0 -647
- package/dist/assets/index3.js +0 -7527
- package/dist/assets/pickAttrs.js +0 -42
- package/dist/assets/presets.js +0 -810
- package/dist/assets/reactNode.js +0 -20821
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { r as P, m as S, u as c, a as u } from "./resolveComponentProps.js";
|
|
2
|
+
function g(e) {
|
|
3
|
+
var s;
|
|
4
|
+
const {
|
|
5
|
+
elementType: t,
|
|
6
|
+
externalSlotProps: n,
|
|
7
|
+
ownerState: r,
|
|
8
|
+
skipResolvingSlotProps: p = !1,
|
|
9
|
+
...a
|
|
10
|
+
} = e, o = p ? {} : P(n, r), {
|
|
11
|
+
props: l,
|
|
12
|
+
internalRef: f
|
|
13
|
+
} = S({
|
|
14
|
+
...a,
|
|
15
|
+
externalSlotProps: o
|
|
16
|
+
}), i = c(f, o == null ? void 0 : o.ref, (s = e.additionalProps) == null ? void 0 : s.ref);
|
|
17
|
+
return u(t, {
|
|
18
|
+
...l,
|
|
19
|
+
ref: i
|
|
20
|
+
}, r);
|
|
21
|
+
}
|
|
22
|
+
export {
|
|
23
|
+
g as u
|
|
24
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as o from "react";
|
|
2
|
+
import { T as r, d as s } from "./DefaultPropsProvider.js";
|
|
3
|
+
import { u as t } from "./useTheme2.js";
|
|
4
|
+
function a() {
|
|
5
|
+
const e = t(s);
|
|
6
|
+
return process.env.NODE_ENV !== "production" && o.useDebugValue(e), e[r] || e;
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
a as u
|
|
10
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { i as n, j as o } from "./DefaultPropsProvider.js";
|
|
2
|
+
import * as s from "react";
|
|
3
|
+
function m(e) {
|
|
4
|
+
return Object.keys(e).length === 0;
|
|
5
|
+
}
|
|
6
|
+
function r(e = null) {
|
|
7
|
+
const t = s.useContext(n);
|
|
8
|
+
return !t || m(t) ? e : t;
|
|
9
|
+
}
|
|
10
|
+
const u = o();
|
|
11
|
+
function a(e = u) {
|
|
12
|
+
return r(e);
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
a as u
|
|
16
|
+
};
|