@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.
- package/dist/assets/Badge.js +1 -1
- package/dist/assets/Box.js +13 -13
- package/dist/assets/Button.js +781 -0
- package/dist/assets/ButtonBase.js +409 -622
- package/dist/assets/DefaultPropsProvider.js +220 -215
- package/dist/assets/Divider.js +105 -154
- package/dist/assets/Grow.js +201 -0
- package/dist/assets/IconButton.js +1 -1
- package/dist/assets/List.js +142 -0
- package/dist/assets/Modal.js +1094 -0
- package/dist/assets/Notification.js +80 -79
- package/dist/assets/Paper.js +1 -1
- package/dist/assets/Popover.js +8 -6
- package/dist/assets/Portal.js +2 -2
- package/dist/assets/Stack.js +216 -0
- package/dist/assets/Typography.js +193 -117
- package/dist/assets/WebPushOptInMessage.js +40 -814
- package/dist/assets/createSvgIcon.js +5 -5
- package/dist/assets/dividerClasses.js +56 -0
- package/dist/assets/index.js +151 -0
- package/dist/assets/useTheme2.js +253 -11
- package/dist/assets/utils.js +4 -4
- package/dist/components/Notifications/Inbox.js +2927 -9
- package/dist/components/Notifications/InboxHeader.js +2146 -7
- package/dist/components/Notifications/NotificationFeed.js +13 -13
- package/dist/components/Notifications/NotificationLauncher.js +2 -2
- package/dist/components/Notifications/NotificationPopup.js +7 -7
- package/dist/components/Preferences/NotificationPreferencesPopup.js +608 -7
- package/dist/components/Preferences/PreferenceInput.js +1451 -6
- package/dist/components/Preferences/Preferences.js +368 -515
- package/dist/components/Preferences/index.js +1 -1
- package/dist/components/Provider/index.js +226 -202
- package/dist/components/Slack/SlackConnect.d.ts +12 -0
- package/dist/components/Slack/SlackConnect.js +4826 -0
- package/dist/components/Slack/index.d.ts +1 -0
- package/dist/components/Slack/index.js +4 -0
- package/dist/components/WebPush/WebPushOptInMessage.js +3 -2
- package/dist/main.d.ts +1 -0
- package/dist/main.js +5 -3
- package/package.json +4 -4
- package/dist/assets/Inbox.js +0 -3061
- package/dist/assets/InboxHeader.js +0 -2338
- package/dist/assets/NotificationPreferencesPopup.js +0 -1694
- package/dist/assets/PreferenceInput.js +0 -1657
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as h from "react";
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import {
|
|
2
|
+
import { jsxs as I, jsx as b } from "react/jsx-runtime";
|
|
3
|
+
import { e as w, g as C, s as T, h as z, m as N, u as O, c as R, P as e, b as j } from "./DefaultPropsProvider.js";
|
|
4
4
|
function E(o) {
|
|
5
5
|
return w("MuiSvgIcon", o);
|
|
6
6
|
}
|
|
@@ -142,7 +142,7 @@ const $ = (o) => {
|
|
|
142
142
|
}, S = {};
|
|
143
143
|
d || (S.viewBox = m);
|
|
144
144
|
const v = $(i);
|
|
145
|
-
return /* @__PURE__ */
|
|
145
|
+
return /* @__PURE__ */ I(A, {
|
|
146
146
|
as: a,
|
|
147
147
|
className: R(v.root, c),
|
|
148
148
|
focusable: "false",
|
|
@@ -154,7 +154,7 @@ const $ = (o) => {
|
|
|
154
154
|
...y,
|
|
155
155
|
...f && t.props,
|
|
156
156
|
ownerState: i,
|
|
157
|
-
children: [f ? t.props.children : t, l ? /* @__PURE__ */
|
|
157
|
+
children: [f ? t.props.children : t, l ? /* @__PURE__ */ b("title", {
|
|
158
158
|
children: l
|
|
159
159
|
}) : null]
|
|
160
160
|
});
|
|
@@ -234,7 +234,7 @@ process.env.NODE_ENV !== "production" && (x.propTypes = {
|
|
|
234
234
|
x.muiName = "SvgIcon";
|
|
235
235
|
function V(o, r) {
|
|
236
236
|
function n(s, t) {
|
|
237
|
-
return /* @__PURE__ */
|
|
237
|
+
return /* @__PURE__ */ b(x, {
|
|
238
238
|
"data-testid": `${r}Icon`,
|
|
239
239
|
ref: t,
|
|
240
240
|
...s,
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import * as n from "react";
|
|
2
|
+
import { g as h, e as g } from "./DefaultPropsProvider.js";
|
|
3
|
+
let r = 0;
|
|
4
|
+
function m(e) {
|
|
5
|
+
const [t, o] = n.useState(e), s = e || t;
|
|
6
|
+
return n.useEffect(() => {
|
|
7
|
+
t == null && (r += 1, o(`mui-${r}`));
|
|
8
|
+
}, [t]), s;
|
|
9
|
+
}
|
|
10
|
+
const p = {
|
|
11
|
+
...n
|
|
12
|
+
}, u = p.useId;
|
|
13
|
+
function b(e) {
|
|
14
|
+
if (u !== void 0) {
|
|
15
|
+
const t = u();
|
|
16
|
+
return e ?? t;
|
|
17
|
+
}
|
|
18
|
+
return m(e);
|
|
19
|
+
}
|
|
20
|
+
function v({
|
|
21
|
+
controlled: e,
|
|
22
|
+
default: t,
|
|
23
|
+
name: o,
|
|
24
|
+
state: s = "value"
|
|
25
|
+
}) {
|
|
26
|
+
const {
|
|
27
|
+
current: i
|
|
28
|
+
} = n.useRef(e !== void 0), [c, a] = n.useState(t), d = i ? e : c;
|
|
29
|
+
if (process.env.NODE_ENV !== "production") {
|
|
30
|
+
n.useEffect(() => {
|
|
31
|
+
i !== (e !== void 0) && console.error([`MUI: A component is changing the ${i ? "" : "un"}controlled ${s} state of ${o} to be ${i ? "un" : ""}controlled.`, "Elements should not switch from uncontrolled to controlled (or vice versa).", `Decide between using a controlled or uncontrolled ${o} element for the lifetime of the component.`, "The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.", "More info: https://fb.me/react-controlled-components"].join(`
|
|
32
|
+
`));
|
|
33
|
+
}, [s, o, e]);
|
|
34
|
+
const {
|
|
35
|
+
current: l
|
|
36
|
+
} = n.useRef(t);
|
|
37
|
+
n.useEffect(() => {
|
|
38
|
+
!i && !Object.is(l, t) && console.error([`MUI: A component is changing the default ${s} state of an uncontrolled ${o} after being initialized. To suppress this warning opt to use a controlled ${o}.`].join(`
|
|
39
|
+
`));
|
|
40
|
+
}, [JSON.stringify(t)]);
|
|
41
|
+
}
|
|
42
|
+
const f = n.useCallback((l) => {
|
|
43
|
+
i || a(l);
|
|
44
|
+
}, []);
|
|
45
|
+
return [d, f];
|
|
46
|
+
}
|
|
47
|
+
function C(e) {
|
|
48
|
+
return g("MuiDivider", e);
|
|
49
|
+
}
|
|
50
|
+
const $ = h("MuiDivider", ["root", "absolute", "fullWidth", "inset", "middle", "flexItem", "light", "vertical", "withChildren", "withChildrenVertical", "textAlignRight", "textAlignLeft", "wrapper", "wrapperVertical"]);
|
|
51
|
+
export {
|
|
52
|
+
v as a,
|
|
53
|
+
$ as d,
|
|
54
|
+
C as g,
|
|
55
|
+
b as u
|
|
56
|
+
};
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
var P = { exports: {} }, e = {};
|
|
2
|
+
/**
|
|
3
|
+
* @license React
|
|
4
|
+
* react-is.production.js
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the MIT license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/
|
|
11
|
+
var d;
|
|
12
|
+
function y() {
|
|
13
|
+
if (d) return e;
|
|
14
|
+
d = 1;
|
|
15
|
+
var n = Symbol.for("react.transitional.element"), R = Symbol.for("react.portal"), T = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), f = Symbol.for("react.profiler"), i = Symbol.for("react.consumer"), u = Symbol.for("react.context"), a = Symbol.for("react.forward_ref"), E = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"), l = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), S = Symbol.for("react.offscreen"), C = Symbol.for("react.client.reference");
|
|
16
|
+
function o(r) {
|
|
17
|
+
if (typeof r == "object" && r !== null) {
|
|
18
|
+
var m = r.$$typeof;
|
|
19
|
+
switch (m) {
|
|
20
|
+
case n:
|
|
21
|
+
switch (r = r.type, r) {
|
|
22
|
+
case T:
|
|
23
|
+
case f:
|
|
24
|
+
case s:
|
|
25
|
+
case E:
|
|
26
|
+
case c:
|
|
27
|
+
return r;
|
|
28
|
+
default:
|
|
29
|
+
switch (r = r && r.$$typeof, r) {
|
|
30
|
+
case u:
|
|
31
|
+
case a:
|
|
32
|
+
case _:
|
|
33
|
+
case l:
|
|
34
|
+
return r;
|
|
35
|
+
case i:
|
|
36
|
+
return r;
|
|
37
|
+
default:
|
|
38
|
+
return m;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
case R:
|
|
42
|
+
return m;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
return e.ContextConsumer = i, e.ContextProvider = u, e.Element = n, e.ForwardRef = a, e.Fragment = T, e.Lazy = _, e.Memo = l, e.Portal = R, e.Profiler = f, e.StrictMode = s, e.Suspense = E, e.SuspenseList = c, e.isContextConsumer = function(r) {
|
|
47
|
+
return o(r) === i;
|
|
48
|
+
}, e.isContextProvider = function(r) {
|
|
49
|
+
return o(r) === u;
|
|
50
|
+
}, e.isElement = function(r) {
|
|
51
|
+
return typeof r == "object" && r !== null && r.$$typeof === n;
|
|
52
|
+
}, e.isForwardRef = function(r) {
|
|
53
|
+
return o(r) === a;
|
|
54
|
+
}, e.isFragment = function(r) {
|
|
55
|
+
return o(r) === T;
|
|
56
|
+
}, e.isLazy = function(r) {
|
|
57
|
+
return o(r) === _;
|
|
58
|
+
}, e.isMemo = function(r) {
|
|
59
|
+
return o(r) === l;
|
|
60
|
+
}, e.isPortal = function(r) {
|
|
61
|
+
return o(r) === R;
|
|
62
|
+
}, e.isProfiler = function(r) {
|
|
63
|
+
return o(r) === f;
|
|
64
|
+
}, e.isStrictMode = function(r) {
|
|
65
|
+
return o(r) === s;
|
|
66
|
+
}, e.isSuspense = function(r) {
|
|
67
|
+
return o(r) === E;
|
|
68
|
+
}, e.isSuspenseList = function(r) {
|
|
69
|
+
return o(r) === c;
|
|
70
|
+
}, e.isValidElementType = function(r) {
|
|
71
|
+
return typeof r == "string" || typeof r == "function" || r === T || r === f || r === s || r === E || r === c || r === S || typeof r == "object" && r !== null && (r.$$typeof === _ || r.$$typeof === l || r.$$typeof === u || r.$$typeof === i || r.$$typeof === a || r.$$typeof === C || r.getModuleId !== void 0);
|
|
72
|
+
}, e.typeOf = o, e;
|
|
73
|
+
}
|
|
74
|
+
var t = {};
|
|
75
|
+
/**
|
|
76
|
+
* @license React
|
|
77
|
+
* react-is.development.js
|
|
78
|
+
*
|
|
79
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
80
|
+
*
|
|
81
|
+
* This source code is licensed under the MIT license found in the
|
|
82
|
+
* LICENSE file in the root directory of this source tree.
|
|
83
|
+
*/
|
|
84
|
+
var A;
|
|
85
|
+
function p() {
|
|
86
|
+
return A || (A = 1, process.env.NODE_ENV !== "production" && function() {
|
|
87
|
+
function n(r) {
|
|
88
|
+
if (typeof r == "object" && r !== null) {
|
|
89
|
+
var m = r.$$typeof;
|
|
90
|
+
switch (m) {
|
|
91
|
+
case R:
|
|
92
|
+
switch (r = r.type, r) {
|
|
93
|
+
case s:
|
|
94
|
+
case i:
|
|
95
|
+
case f:
|
|
96
|
+
case c:
|
|
97
|
+
case l:
|
|
98
|
+
return r;
|
|
99
|
+
default:
|
|
100
|
+
switch (r = r && r.$$typeof, r) {
|
|
101
|
+
case a:
|
|
102
|
+
case E:
|
|
103
|
+
case S:
|
|
104
|
+
case _:
|
|
105
|
+
return r;
|
|
106
|
+
case u:
|
|
107
|
+
return r;
|
|
108
|
+
default:
|
|
109
|
+
return m;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
case T:
|
|
113
|
+
return m;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
var R = Symbol.for("react.transitional.element"), T = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), f = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), u = Symbol.for("react.consumer"), a = Symbol.for("react.context"), E = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), l = Symbol.for("react.suspense_list"), _ = Symbol.for("react.memo"), S = Symbol.for("react.lazy"), C = Symbol.for("react.offscreen"), o = Symbol.for("react.client.reference");
|
|
118
|
+
t.ContextConsumer = u, t.ContextProvider = a, t.Element = R, t.ForwardRef = E, t.Fragment = s, t.Lazy = S, t.Memo = _, t.Portal = T, t.Profiler = i, t.StrictMode = f, t.Suspense = c, t.SuspenseList = l, t.isContextConsumer = function(r) {
|
|
119
|
+
return n(r) === u;
|
|
120
|
+
}, t.isContextProvider = function(r) {
|
|
121
|
+
return n(r) === a;
|
|
122
|
+
}, t.isElement = function(r) {
|
|
123
|
+
return typeof r == "object" && r !== null && r.$$typeof === R;
|
|
124
|
+
}, t.isForwardRef = function(r) {
|
|
125
|
+
return n(r) === E;
|
|
126
|
+
}, t.isFragment = function(r) {
|
|
127
|
+
return n(r) === s;
|
|
128
|
+
}, t.isLazy = function(r) {
|
|
129
|
+
return n(r) === S;
|
|
130
|
+
}, t.isMemo = function(r) {
|
|
131
|
+
return n(r) === _;
|
|
132
|
+
}, t.isPortal = function(r) {
|
|
133
|
+
return n(r) === T;
|
|
134
|
+
}, t.isProfiler = function(r) {
|
|
135
|
+
return n(r) === i;
|
|
136
|
+
}, t.isStrictMode = function(r) {
|
|
137
|
+
return n(r) === f;
|
|
138
|
+
}, t.isSuspense = function(r) {
|
|
139
|
+
return n(r) === c;
|
|
140
|
+
}, t.isSuspenseList = function(r) {
|
|
141
|
+
return n(r) === l;
|
|
142
|
+
}, t.isValidElementType = function(r) {
|
|
143
|
+
return typeof r == "string" || typeof r == "function" || r === s || r === i || r === f || r === c || r === l || r === C || typeof r == "object" && r !== null && (r.$$typeof === S || r.$$typeof === _ || r.$$typeof === a || r.$$typeof === u || r.$$typeof === E || r.$$typeof === o || r.getModuleId !== void 0);
|
|
144
|
+
}, t.typeOf = n;
|
|
145
|
+
}()), t;
|
|
146
|
+
}
|
|
147
|
+
process.env.NODE_ENV === "production" ? P.exports = y() : P.exports = p();
|
|
148
|
+
var Y = P.exports;
|
|
149
|
+
export {
|
|
150
|
+
Y as r
|
|
151
|
+
};
|
package/dist/assets/useTheme2.js
CHANGED
|
@@ -1,16 +1,258 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import * as
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { z as L, A as fe, E as le, B as me, D as ye, F as D, G as F, H as de, p as Ee } from "./DefaultPropsProvider.js";
|
|
2
|
+
import * as b from "react";
|
|
3
|
+
var h = { exports: {} }, o = {};
|
|
4
|
+
/** @license React v16.13.1
|
|
5
|
+
* react-is.production.min.js
|
|
6
|
+
*
|
|
7
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the MIT license found in the
|
|
10
|
+
* LICENSE file in the root directory of this source tree.
|
|
11
|
+
*/
|
|
12
|
+
var I;
|
|
13
|
+
function ve() {
|
|
14
|
+
if (I) return o;
|
|
15
|
+
I = 1;
|
|
16
|
+
var r = typeof Symbol == "function" && Symbol.for, n = r ? Symbol.for("react.element") : 60103, c = r ? Symbol.for("react.portal") : 60106, u = r ? Symbol.for("react.fragment") : 60107, l = r ? Symbol.for("react.strict_mode") : 60108, i = r ? Symbol.for("react.profiler") : 60114, s = r ? Symbol.for("react.provider") : 60109, y = r ? Symbol.for("react.context") : 60110, d = r ? Symbol.for("react.async_mode") : 60111, E = r ? Symbol.for("react.concurrent_mode") : 60111, v = r ? Symbol.for("react.forward_ref") : 60112, p = r ? Symbol.for("react.suspense") : 60113, R = r ? Symbol.for("react.suspense_list") : 60120, S = r ? Symbol.for("react.memo") : 60115, _ = r ? Symbol.for("react.lazy") : 60116, $ = r ? Symbol.for("react.block") : 60121, x = r ? Symbol.for("react.fundamental") : 60117, P = r ? Symbol.for("react.responder") : 60118, A = r ? Symbol.for("react.scope") : 60119;
|
|
17
|
+
function m(e) {
|
|
18
|
+
if (typeof e == "object" && e !== null) {
|
|
19
|
+
var T = e.$$typeof;
|
|
20
|
+
switch (T) {
|
|
21
|
+
case n:
|
|
22
|
+
switch (e = e.type, e) {
|
|
23
|
+
case d:
|
|
24
|
+
case E:
|
|
25
|
+
case u:
|
|
26
|
+
case i:
|
|
27
|
+
case l:
|
|
28
|
+
case p:
|
|
29
|
+
return e;
|
|
30
|
+
default:
|
|
31
|
+
switch (e = e && e.$$typeof, e) {
|
|
32
|
+
case y:
|
|
33
|
+
case v:
|
|
34
|
+
case _:
|
|
35
|
+
case S:
|
|
36
|
+
case s:
|
|
37
|
+
return e;
|
|
38
|
+
default:
|
|
39
|
+
return T;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
case c:
|
|
43
|
+
return T;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
function f(e) {
|
|
48
|
+
return m(e) === E;
|
|
49
|
+
}
|
|
50
|
+
return o.AsyncMode = d, o.ConcurrentMode = E, o.ContextConsumer = y, o.ContextProvider = s, o.Element = n, o.ForwardRef = v, o.Fragment = u, o.Lazy = _, o.Memo = S, o.Portal = c, o.Profiler = i, o.StrictMode = l, o.Suspense = p, o.isAsyncMode = function(e) {
|
|
51
|
+
return f(e) || m(e) === d;
|
|
52
|
+
}, o.isConcurrentMode = f, o.isContextConsumer = function(e) {
|
|
53
|
+
return m(e) === y;
|
|
54
|
+
}, o.isContextProvider = function(e) {
|
|
55
|
+
return m(e) === s;
|
|
56
|
+
}, o.isElement = function(e) {
|
|
57
|
+
return typeof e == "object" && e !== null && e.$$typeof === n;
|
|
58
|
+
}, o.isForwardRef = function(e) {
|
|
59
|
+
return m(e) === v;
|
|
60
|
+
}, o.isFragment = function(e) {
|
|
61
|
+
return m(e) === u;
|
|
62
|
+
}, o.isLazy = function(e) {
|
|
63
|
+
return m(e) === _;
|
|
64
|
+
}, o.isMemo = function(e) {
|
|
65
|
+
return m(e) === S;
|
|
66
|
+
}, o.isPortal = function(e) {
|
|
67
|
+
return m(e) === c;
|
|
68
|
+
}, o.isProfiler = function(e) {
|
|
69
|
+
return m(e) === i;
|
|
70
|
+
}, o.isStrictMode = function(e) {
|
|
71
|
+
return m(e) === l;
|
|
72
|
+
}, o.isSuspense = function(e) {
|
|
73
|
+
return m(e) === p;
|
|
74
|
+
}, o.isValidElementType = function(e) {
|
|
75
|
+
return typeof e == "string" || typeof e == "function" || e === u || e === E || e === i || e === l || e === p || e === R || typeof e == "object" && e !== null && (e.$$typeof === _ || e.$$typeof === S || e.$$typeof === s || e.$$typeof === y || e.$$typeof === v || e.$$typeof === x || e.$$typeof === P || e.$$typeof === A || e.$$typeof === $);
|
|
76
|
+
}, o.typeOf = m, o;
|
|
5
77
|
}
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
78
|
+
var a = {};
|
|
79
|
+
/** @license React v16.13.1
|
|
80
|
+
* react-is.development.js
|
|
81
|
+
*
|
|
82
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
83
|
+
*
|
|
84
|
+
* This source code is licensed under the MIT license found in the
|
|
85
|
+
* LICENSE file in the root directory of this source tree.
|
|
86
|
+
*/
|
|
87
|
+
var Y;
|
|
88
|
+
function pe() {
|
|
89
|
+
return Y || (Y = 1, process.env.NODE_ENV !== "production" && function() {
|
|
90
|
+
var r = typeof Symbol == "function" && Symbol.for, n = r ? Symbol.for("react.element") : 60103, c = r ? Symbol.for("react.portal") : 60106, u = r ? Symbol.for("react.fragment") : 60107, l = r ? Symbol.for("react.strict_mode") : 60108, i = r ? Symbol.for("react.profiler") : 60114, s = r ? Symbol.for("react.provider") : 60109, y = r ? Symbol.for("react.context") : 60110, d = r ? Symbol.for("react.async_mode") : 60111, E = r ? Symbol.for("react.concurrent_mode") : 60111, v = r ? Symbol.for("react.forward_ref") : 60112, p = r ? Symbol.for("react.suspense") : 60113, R = r ? Symbol.for("react.suspense_list") : 60120, S = r ? Symbol.for("react.memo") : 60115, _ = r ? Symbol.for("react.lazy") : 60116, $ = r ? Symbol.for("react.block") : 60121, x = r ? Symbol.for("react.fundamental") : 60117, P = r ? Symbol.for("react.responder") : 60118, A = r ? Symbol.for("react.scope") : 60119;
|
|
91
|
+
function m(t) {
|
|
92
|
+
return typeof t == "string" || typeof t == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
93
|
+
t === u || t === E || t === i || t === l || t === p || t === R || typeof t == "object" && t !== null && (t.$$typeof === _ || t.$$typeof === S || t.$$typeof === s || t.$$typeof === y || t.$$typeof === v || t.$$typeof === x || t.$$typeof === P || t.$$typeof === A || t.$$typeof === $);
|
|
94
|
+
}
|
|
95
|
+
function f(t) {
|
|
96
|
+
if (typeof t == "object" && t !== null) {
|
|
97
|
+
var M = t.$$typeof;
|
|
98
|
+
switch (M) {
|
|
99
|
+
case n:
|
|
100
|
+
var C = t.type;
|
|
101
|
+
switch (C) {
|
|
102
|
+
case d:
|
|
103
|
+
case E:
|
|
104
|
+
case u:
|
|
105
|
+
case i:
|
|
106
|
+
case l:
|
|
107
|
+
case p:
|
|
108
|
+
return C;
|
|
109
|
+
default:
|
|
110
|
+
var w = C && C.$$typeof;
|
|
111
|
+
switch (w) {
|
|
112
|
+
case y:
|
|
113
|
+
case v:
|
|
114
|
+
case _:
|
|
115
|
+
case S:
|
|
116
|
+
case s:
|
|
117
|
+
return w;
|
|
118
|
+
default:
|
|
119
|
+
return M;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
case c:
|
|
123
|
+
return M;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
var e = d, T = E, q = y, V = s, U = n, X = v, G = u, J = _, W = S, j = c, B = i, H = l, K = p, g = !1;
|
|
128
|
+
function Z(t) {
|
|
129
|
+
return g || (g = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), O(t) || f(t) === d;
|
|
130
|
+
}
|
|
131
|
+
function O(t) {
|
|
132
|
+
return f(t) === E;
|
|
133
|
+
}
|
|
134
|
+
function Q(t) {
|
|
135
|
+
return f(t) === y;
|
|
136
|
+
}
|
|
137
|
+
function ee(t) {
|
|
138
|
+
return f(t) === s;
|
|
139
|
+
}
|
|
140
|
+
function re(t) {
|
|
141
|
+
return typeof t == "object" && t !== null && t.$$typeof === n;
|
|
142
|
+
}
|
|
143
|
+
function te(t) {
|
|
144
|
+
return f(t) === v;
|
|
145
|
+
}
|
|
146
|
+
function ne(t) {
|
|
147
|
+
return f(t) === u;
|
|
148
|
+
}
|
|
149
|
+
function oe(t) {
|
|
150
|
+
return f(t) === _;
|
|
151
|
+
}
|
|
152
|
+
function ae(t) {
|
|
153
|
+
return f(t) === S;
|
|
154
|
+
}
|
|
155
|
+
function se(t) {
|
|
156
|
+
return f(t) === c;
|
|
157
|
+
}
|
|
158
|
+
function ie(t) {
|
|
159
|
+
return f(t) === i;
|
|
160
|
+
}
|
|
161
|
+
function ce(t) {
|
|
162
|
+
return f(t) === l;
|
|
163
|
+
}
|
|
164
|
+
function ue(t) {
|
|
165
|
+
return f(t) === p;
|
|
166
|
+
}
|
|
167
|
+
a.AsyncMode = e, a.ConcurrentMode = T, a.ContextConsumer = q, a.ContextProvider = V, a.Element = U, a.ForwardRef = X, a.Fragment = G, a.Lazy = J, a.Memo = W, a.Portal = j, a.Profiler = B, a.StrictMode = H, a.Suspense = K, a.isAsyncMode = Z, a.isConcurrentMode = O, a.isContextConsumer = Q, a.isContextProvider = ee, a.isElement = re, a.isForwardRef = te, a.isFragment = ne, a.isLazy = oe, a.isMemo = ae, a.isPortal = se, a.isProfiler = ie, a.isStrictMode = ce, a.isSuspense = ue, a.isValidElementType = m, a.typeOf = f;
|
|
168
|
+
}()), a;
|
|
9
169
|
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
170
|
+
process.env.NODE_ENV === "production" ? h.exports = ve() : h.exports = pe();
|
|
171
|
+
var Se = h.exports, z = Se, _e = {
|
|
172
|
+
$$typeof: !0,
|
|
173
|
+
render: !0,
|
|
174
|
+
defaultProps: !0,
|
|
175
|
+
displayName: !0,
|
|
176
|
+
propTypes: !0
|
|
177
|
+
}, Te = {
|
|
178
|
+
$$typeof: !0,
|
|
179
|
+
compare: !0,
|
|
180
|
+
defaultProps: !0,
|
|
181
|
+
displayName: !0,
|
|
182
|
+
propTypes: !0,
|
|
183
|
+
type: !0
|
|
184
|
+
}, k = {};
|
|
185
|
+
k[z.ForwardRef] = _e;
|
|
186
|
+
k[z.Memo] = Te;
|
|
187
|
+
var N = function(n, c) {
|
|
188
|
+
var u = arguments;
|
|
189
|
+
if (c == null || !fe.call(c, "css"))
|
|
190
|
+
return b.createElement.apply(void 0, u);
|
|
191
|
+
var l = u.length, i = new Array(l);
|
|
192
|
+
i[0] = le, i[1] = me(n, c);
|
|
193
|
+
for (var s = 2; s < l; s++)
|
|
194
|
+
i[s] = u[s];
|
|
195
|
+
return b.createElement.apply(null, i);
|
|
196
|
+
};
|
|
197
|
+
(function(r) {
|
|
198
|
+
var n;
|
|
199
|
+
n || (n = r.JSX || (r.JSX = {}));
|
|
200
|
+
})(N || (N = {}));
|
|
201
|
+
var Pe = /* @__PURE__ */ ye(function(r, n) {
|
|
202
|
+
var c = r.styles, u = L([c], void 0, b.useContext(D)), l = b.useRef();
|
|
203
|
+
return F(function() {
|
|
204
|
+
var i = n.key + "-global", s = new n.sheet.constructor({
|
|
205
|
+
key: i,
|
|
206
|
+
nonce: n.sheet.nonce,
|
|
207
|
+
container: n.sheet.container,
|
|
208
|
+
speedy: n.sheet.isSpeedy
|
|
209
|
+
}), y = !1, d = document.querySelector('style[data-emotion="' + i + " " + u.name + '"]');
|
|
210
|
+
return n.sheet.tags.length && (s.before = n.sheet.tags[0]), d !== null && (y = !0, d.setAttribute("data-emotion", i), s.hydrate([d])), l.current = [s, y], function() {
|
|
211
|
+
s.flush();
|
|
212
|
+
};
|
|
213
|
+
}, [n]), F(function() {
|
|
214
|
+
var i = l.current, s = i[0], y = i[1];
|
|
215
|
+
if (y) {
|
|
216
|
+
i[1] = !1;
|
|
217
|
+
return;
|
|
218
|
+
}
|
|
219
|
+
if (u.next !== void 0 && de(n, u.next, !0), s.tags.length) {
|
|
220
|
+
var d = s.tags[s.tags.length - 1].nextElementSibling;
|
|
221
|
+
s.before = d, s.flush();
|
|
222
|
+
}
|
|
223
|
+
n.insert("", u, s, !1);
|
|
224
|
+
}, [n, u.name]), null;
|
|
225
|
+
});
|
|
226
|
+
function be() {
|
|
227
|
+
for (var r = arguments.length, n = new Array(r), c = 0; c < r; c++)
|
|
228
|
+
n[c] = arguments[c];
|
|
229
|
+
return L(n);
|
|
230
|
+
}
|
|
231
|
+
function Ae() {
|
|
232
|
+
var r = be.apply(void 0, arguments), n = "animation-" + r.name;
|
|
233
|
+
return {
|
|
234
|
+
name: n,
|
|
235
|
+
styles: "@keyframes " + n + "{" + r.styles + "}",
|
|
236
|
+
anim: 1,
|
|
237
|
+
toString: function() {
|
|
238
|
+
return "_EMO_" + this.name + "_" + this.styles + "_EMO_";
|
|
239
|
+
}
|
|
240
|
+
};
|
|
241
|
+
}
|
|
242
|
+
function Ce(r) {
|
|
243
|
+
return Object.keys(r).length === 0;
|
|
244
|
+
}
|
|
245
|
+
function Re(r = null) {
|
|
246
|
+
const n = b.useContext(D);
|
|
247
|
+
return !n || Ce(n) ? r : n;
|
|
248
|
+
}
|
|
249
|
+
const $e = Ee();
|
|
250
|
+
function Me(r = $e) {
|
|
251
|
+
return Re(r);
|
|
13
252
|
}
|
|
14
253
|
export {
|
|
15
|
-
|
|
254
|
+
Pe as G,
|
|
255
|
+
be as c,
|
|
256
|
+
Ae as k,
|
|
257
|
+
Me as u
|
|
16
258
|
};
|
package/dist/assets/utils.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as k,
|
|
2
|
-
import {
|
|
1
|
+
import { _ as k, f as I, T as A } from "./ButtonBase.js";
|
|
2
|
+
import { M as U, P as c } from "./DefaultPropsProvider.js";
|
|
3
3
|
import T from "react";
|
|
4
4
|
var N = { exports: {} }, y = {};
|
|
5
5
|
/**
|
|
@@ -737,7 +737,7 @@ function Y(p, g) {
|
|
|
737
737
|
export {
|
|
738
738
|
D as R,
|
|
739
739
|
E as T,
|
|
740
|
-
|
|
740
|
+
G as a,
|
|
741
741
|
Y as g,
|
|
742
|
-
|
|
742
|
+
W as r
|
|
743
743
|
};
|