@notificationapi/react 0.0.33 → 0.0.35

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 (30) hide show
  1. package/README.md +1 -1
  2. package/dist/assets/AntdIcon.js +1 -1
  3. package/dist/assets/CloseOutlined.js +13 -0
  4. package/dist/assets/Notification.js +17 -16
  5. package/dist/assets/PreferenceInput.js +1470 -0
  6. package/dist/assets/PurePanel.js +32 -42
  7. package/dist/assets/WebPushOptInMessage.js +478 -0
  8. package/dist/assets/button.js +50 -50
  9. package/dist/assets/colors.js +25 -20840
  10. package/dist/assets/compact-item.js +860 -0
  11. package/dist/assets/index.js +11 -9
  12. package/dist/assets/index2.js +10 -9
  13. package/dist/assets/index3.js +2303 -3150
  14. package/dist/assets/presets.js +22 -22
  15. package/dist/assets/reactNode.js +20821 -0
  16. package/dist/components/Notifications/Inbox.js +81 -78
  17. package/dist/components/Notifications/NotificationFeed.js +59 -31
  18. package/dist/components/Notifications/NotificationLauncher.js +61 -41
  19. package/dist/components/Notifications/NotificationPopup.js +72 -65
  20. package/dist/components/Preferences/NotificationPreferencesInline.d.ts +1 -1
  21. package/dist/components/Preferences/NotificationPreferencesInline.js +39 -5
  22. package/dist/components/Preferences/NotificationPreferencesPopup.d.ts +1 -1
  23. package/dist/components/Preferences/NotificationPreferencesPopup.js +463 -464
  24. package/dist/components/Preferences/PreferenceInput.js +5 -1466
  25. package/dist/components/Preferences/Preferences.js +24 -23
  26. package/dist/components/Provider/index.d.ts +9 -1
  27. package/dist/components/Provider/index.js +214 -156
  28. package/dist/components/WebPush/WebPushOptInMessage.d.ts +14 -0
  29. package/dist/components/WebPush/WebPushOptInMessage.js +8 -0
  30. package/package.json +2 -2
@@ -1,17 +1,20 @@
1
1
  import { jsx as wt, jsxs as $i } from "react/jsx-runtime";
2
2
  import { InboxHeader as Un } from "./InboxHeader.js";
3
- import { c as le, b as yt, e as re, d as Ct, a as Me, _ as ue, i as xi, f as ce, w as ct, k as wi, n as qn } from "../../assets/presets.js";
4
- import { p as xr, K as oe, D as mn, E as Ei, G as Ii, u as kt, o as wr, t as $n, s as Er, m as Oi, x as Ni, R as Ri, l as Mi, n as Pi, H as Di, h as zi, F as _i, e as _n, I as Ti, v as Li, d as Bi, J as ji, L as Hi, M as Vi, N as Ai, O as Fi, Q as Wi, S as Ki } from "../../assets/index3.js";
5
- import { K as nt, L as Et, t as xn, M as wn, I as Tt, j as Xi, N as Gi, _ as pt, y as Ui, s as qi, q as Yi, O as Ji, Q as Qi, l as gn, T as sn, g as Wt, m as Nt, a as Rt, r as Yt, R as En, u as J, f as Ir, e as Tn, D as Zi, k as ki, h as Yn, w as eo, S as to, c as Or } from "../../assets/colors.js";
3
+ import { c as le, d as yt, f as re, e as Ct, a as Me, _ as ue, i as xi, b as ce, w as ct, k as wi, n as qn } from "../../assets/presets.js";
4
+ import { f as xr, K as oe, n as mn, o as Ei, p as Ii, k as wr, R as Oi, q as Ni, u as Ri, F as Mi, r as Pi, l as Di, d as zi, s as _i, t as Ti, v as Li, w as Bi, x as ji, y as Hi, A as Vi } from "../../assets/index3.js";
5
+ import { z as Et, v as $n, V as xn, Q as Tt, i as Ai, W as Fi, d as pt, I as Wi, _ as Ki, b as Xi, X as Gi, Y as Ui, A as gn, T as sn, g as Wt, m as Nt, a as Rt, r as Yt, Z as wn, u as J, h as Er, f as _n, D as qi, q as Yi, p as Yn, H as Ji, $ as Qi, c as Ir } from "../../assets/reactNode.js";
6
6
  import * as i from "react";
7
- import X, { useState as Lt, useMemo as In, useCallback as Jn, useRef as _e, useEffect as cn, useContext as en, createContext as no, Children as Qn } from "react";
8
- import { u as ro, r as qt, a as Nr, L as io, N as Zn } from "../../assets/Notification.js";
9
- import { NotificationAPIContext as oo } from "../Provider/index.js";
7
+ import X, { useState as Lt, useMemo as En, useCallback as Jn, useRef as _e, useEffect as cn, useContext as kt, createContext as Zi, Children as Qn } from "react";
8
+ import { u as ki, r as qt, a as Or, L as eo, N as Zn } from "../../assets/Notification.js";
9
+ import { NotificationAPIContext as to } from "../Provider/index.js";
10
10
  import { Filter as kn } from "./interface.js";
11
+ import { u as en, o as Nr, t as In, g as no, R as ro, c as io, d as oo, a as Tn } from "../../assets/compact-item.js";
11
12
  import { I as nn } from "../../assets/AntdIcon.js";
12
13
  import { R as er } from "../../assets/RightOutlined.js";
13
14
  import { p as tn } from "../../assets/pickAttrs.js";
14
- import { R as ao, g as lo } from "../../assets/PurePanel.js";
15
+ import { g as ao } from "../../assets/PurePanel.js";
16
+ import { K as nt } from "../../assets/colors.js";
17
+ import { R as lo } from "../../assets/CloseOutlined.js";
15
18
  const so = new nt("antMoveDownIn", {
16
19
  "0%": {
17
20
  transform: "translate3d(0, 100%, 0)",
@@ -441,7 +444,7 @@ function Mo(e) {
441
444
  function Po() {
442
445
  var e = i.useRef(null), t = function(n) {
443
446
  e.current || (e.current = [], Mo(function() {
444
- wn.unstable_batchedUpdates(function() {
447
+ xn.unstable_batchedUpdates(function() {
445
448
  e.current.forEach(function(o) {
446
449
  o();
447
450
  }), e.current = null;
@@ -451,7 +454,7 @@ function Po() {
451
454
  return t;
452
455
  }
453
456
  function Jt(e, t) {
454
- var r = i.useState(t), n = re(r, 2), o = n[0], a = n[1], l = xn(function(s) {
457
+ var r = i.useState(t), n = re(r, 2), o = n[0], a = n[1], l = $n(function(s) {
455
458
  e(function() {
456
459
  a(s);
457
460
  });
@@ -482,10 +485,10 @@ function Bo(e) {
482
485
  function jo(e, t) {
483
486
  var r = e.prefixCls, n = r === void 0 ? "rc-overflow" : r, o = e.data, a = o === void 0 ? [] : o, l = e.renderItem, s = e.renderRawItem, u = e.itemKey, v = e.itemWidth, m = v === void 0 ? 10 : v, f = e.ssr, g = e.style, d = e.className, c = e.maxCount, p = e.renderRest, S = e.renderRawRest, b = e.suffix, h = e.component, y = h === void 0 ? "div" : h, $ = e.itemComponent, M = e.onVisibleChange, x = Ct(e, Lo), C = f === "full", w = Po(), R = Jt(w, null), N = re(R, 2), H = N[0], K = N[1], V = H || 0, B = Jt(w, /* @__PURE__ */ new Map()), G = re(B, 2), W = G[0], T = G[1], E = Jt(w, 0), I = re(E, 2), Z = I[0], j = I[1], we = Jt(w, 0), pe = re(we, 2), de = pe[0], me = pe[1], He = Jt(w, 0), ie = re(He, 2), he = ie[0], Te = ie[1], D = Lt(null), O = re(D, 2), z = O[0], k = O[1], A = Lt(null), Q = re(A, 2), P = Q[0], Ce = Q[1], ae = i.useMemo(function() {
484
487
  return P === null && C ? Number.MAX_SAFE_INTEGER : P || 0;
485
- }, [P, H]), $e = Lt(!1), Ie = re($e, 2), se = Ie[0], Se = Ie[1], be = "".concat(n, "-item"), xe = Math.max(Z, de), Je = c === Lr, fe = a.length && Je, Pe = c === Br, De = fe || typeof c == "number" && a.length > c, je = In(function() {
488
+ }, [P, H]), $e = Lt(!1), Ie = re($e, 2), se = Ie[0], Se = Ie[1], be = "".concat(n, "-item"), xe = Math.max(Z, de), Je = c === Lr, fe = a.length && Je, Pe = c === Br, De = fe || typeof c == "number" && a.length > c, je = En(function() {
486
489
  var ne = a;
487
490
  return fe ? H === null && C ? ne = a : ne = a.slice(0, Math.min(a.length, V / m)) : typeof c == "number" && (ne = a.slice(0, c)), ne;
488
- }, [a, m, H, c, fe]), Ve = In(function() {
491
+ }, [a, m, H, c, fe]), Ve = En(function() {
489
492
  return fe ? a.slice(ae + 1) : a.slice(je.length);
490
493
  }, [a, je, fe, ae]), Ze = Jn(function(ne, U) {
491
494
  var Re;
@@ -618,7 +621,7 @@ var Ho = function(t, r) {
618
621
  }, N), {}, {
619
622
  // Override over origin props
620
623
  id: a,
621
- ref: Xi(r, R),
624
+ ref: Ai(r, R),
622
625
  disabled: s,
623
626
  tabIndex: u,
624
627
  autoComplete: m || "off",
@@ -1022,7 +1025,7 @@ var ko = function(t, r, n) {
1022
1025
  if (!r || !r.length)
1023
1026
  return null;
1024
1027
  var o = !1, a = function s(u, v) {
1025
- var m = Gi(v), f = m[0], g = m.slice(1);
1028
+ var m = Fi(v), f = m[0], g = m.slice(1);
1026
1029
  if (!f)
1027
1030
  return [u];
1028
1031
  var d = u.split(f);
@@ -1083,11 +1086,11 @@ var ta = ["id", "prefixCls", "className", "showSearch", "tagRender", "direction"
1083
1086
  return H;
1084
1087
  var ge = (Oe = m[0]) === null || Oe === void 0 ? void 0 : Oe.value;
1085
1088
  return typeof ge == "string" || typeof ge == "number" ? String(ge) : "";
1086
- }, [H, S, m]), Ae = S === "combobox" && typeof y == "function" && y() || null, Xe = typeof $ == "function" && $(), ut = Ui(fe, Xe == null || (r = Xe.props) === null || r === void 0 ? void 0 : r.ref), ht = i.useState(!1), Qe = re(ht, 2), Pt = Qe[0], dt = Qe[1];
1089
+ }, [H, S, m]), Ae = S === "combobox" && typeof y == "function" && y() || null, Xe = typeof $ == "function" && $(), ut = Wi(fe, Xe == null || (r = Xe.props) === null || r === void 0 ? void 0 : r.ref), ht = i.useState(!1), Qe = re(ht, 2), Pt = Qe[0], dt = Qe[1];
1087
1090
  Tt(function() {
1088
1091
  dt(!0);
1089
1092
  }, []);
1090
- var ft = kt(!1, {
1093
+ var ft = en(!1, {
1091
1094
  defaultValue: x,
1092
1095
  value: M
1093
1096
  }), mt = re(ft, 2), it = mt[0], ne = mt[1], U = Pt ? it : !1, Re = !c && g;
@@ -1469,9 +1472,9 @@ function sa(e, t, r, n) {
1469
1472
  }
1470
1473
  var ca = /* @__PURE__ */ function() {
1471
1474
  function e() {
1472
- Yi(this, e), ce(this, "maps", void 0), ce(this, "id", 0), this.maps = /* @__PURE__ */ Object.create(null);
1475
+ Xi(this, e), ce(this, "maps", void 0), ce(this, "id", 0), this.maps = /* @__PURE__ */ Object.create(null);
1473
1476
  }
1474
- return qi(e, [{
1477
+ return Ki(e, [{
1475
1478
  key: "set",
1476
1479
  value: function(r, n) {
1477
1480
  this.maps[r] = n, this.id += 1;
@@ -1494,7 +1497,7 @@ function ua(e, t, r) {
1494
1497
  var c = function() {
1495
1498
  s.current.forEach(function(S, b) {
1496
1499
  if (S && S.offsetParent) {
1497
- var h = Ji(S), y = h.offsetHeight;
1500
+ var h = Gi(S), y = h.offsetHeight;
1498
1501
  u.current.get(b) !== y && u.current.set(b, h.offsetHeight);
1499
1502
  }
1500
1503
  }), l(function(S) {
@@ -1811,7 +1814,7 @@ function ha(e, t) {
1811
1814
  x: I ? -O : O,
1812
1815
  y: ie
1813
1816
  };
1814
- }, Re = _e(U()), We = xn(function(q) {
1817
+ }, Re = _e(U()), We = $n(function(q) {
1815
1818
  if (y) {
1816
1819
  var F = ue(ue({}, U()), q);
1817
1820
  (Re.current.x !== F.x || Re.current.y !== F.y) && (y(F), Re.current = F);
@@ -1819,7 +1822,7 @@ function ha(e, t) {
1819
1822
  });
1820
1823
  function qe(q, F) {
1821
1824
  var ve = q;
1822
- F ? (wn.flushSync(function() {
1825
+ F ? (xn.flushSync(function() {
1823
1826
  z(ve);
1824
1827
  }), We()) : Ie(ve);
1825
1828
  }
@@ -1830,8 +1833,8 @@ function ha(e, t) {
1830
1833
  var L = function(F) {
1831
1834
  var ve = F, Ne = p ? p - Le.width : 0;
1832
1835
  return ve = Math.max(ve, 0), ve = Math.min(ve, Ne), ve;
1833
- }, _ = xn(function(q, F) {
1834
- F ? (wn.flushSync(function() {
1836
+ }, _ = $n(function(q, F) {
1837
+ F ? (xn.flushSync(function() {
1835
1838
  z(function(ve) {
1836
1839
  var Ne = ve + (I ? -q : q);
1837
1840
  return L(Ne);
@@ -1970,7 +1973,7 @@ function dr(e) {
1970
1973
  return typeof e == "string" || typeof e == "number";
1971
1974
  }
1972
1975
  var ya = function(t, r) {
1973
- var n = wo(), o = n.prefixCls, a = n.id, l = n.open, s = n.multiple, u = n.mode, v = n.searchValue, m = n.toggleOpen, f = n.notFoundContent, g = n.onPopupScroll, d = i.useContext(jn), c = d.maxCount, p = d.flattenOptions, S = d.onActiveValue, b = d.defaultActiveFirstOption, h = d.onSelect, y = d.menuItemSelectedIcon, $ = d.rawValues, M = d.fieldNames, x = d.virtual, C = d.direction, w = d.listHeight, R = d.listItemHeight, N = d.optionRender, H = "".concat(o, "-item"), K = Qi(function() {
1976
+ var n = wo(), o = n.prefixCls, a = n.id, l = n.open, s = n.multiple, u = n.mode, v = n.searchValue, m = n.toggleOpen, f = n.notFoundContent, g = n.onPopupScroll, d = i.useContext(jn), c = d.maxCount, p = d.flattenOptions, S = d.onActiveValue, b = d.defaultActiveFirstOption, h = d.onSelect, y = d.menuItemSelectedIcon, $ = d.rawValues, M = d.fieldNames, x = d.virtual, C = d.direction, w = d.listHeight, R = d.listItemHeight, N = d.optionRender, H = "".concat(o, "-item"), K = Ui(function() {
1974
1977
  return p;
1975
1978
  }, [l, p], function(D, O) {
1976
1979
  return O[0] && D[1] !== O[1];
@@ -2128,7 +2131,7 @@ var ya = function(t, r) {
2128
2131
  }
2129
2132
  var Ie = A.disabled, se = A.title;
2130
2133
  A.children;
2131
- var Se = A.style, be = A.className, xe = Ct(A, ba), Je = wr(xe, me), fe = pe(P), Pe = Ie || !fe && B, De = "".concat(H, "-option"), je = le(H, De, be, ce(ce(ce(ce({}, "".concat(De, "-grouped"), k), "".concat(De, "-active"), Z === O && !Pe), "".concat(De, "-disabled"), Pe), "".concat(De, "-selected"), fe)), Ve = He(D), Ze = !y || typeof y == "function" || fe, tt = typeof Ve == "number" ? Ve : Ve || P, Le = dr(tt) ? tt.toString() : void 0;
2134
+ var Se = A.style, be = A.className, xe = Ct(A, ba), Je = Nr(xe, me), fe = pe(P), Pe = Ie || !fe && B, De = "".concat(H, "-option"), je = le(H, De, be, ce(ce(ce(ce({}, "".concat(De, "-grouped"), k), "".concat(De, "-active"), Z === O && !Pe), "".concat(De, "-disabled"), Pe), "".concat(De, "-selected"), fe)), Ve = He(D), Ze = !y || typeof y == "function" || fe, tt = typeof Ve == "number" ? Ve : Ve || P, Le = dr(tt) ? tt.toString() : void 0;
2132
2135
  return se !== void 0 && (Le = se), /* @__PURE__ */ i.createElement("div", Me({}, tn(Je), x ? {} : ie(D, O), {
2133
2136
  "aria-selected": fe,
2134
2137
  className: je,
@@ -2231,7 +2234,7 @@ function Na(e) {
2231
2234
  }
2232
2235
  function Fn(e) {
2233
2236
  var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
2234
- return $n(e).map(function(r, n) {
2237
+ return In(e).map(function(r, n) {
2235
2238
  if (!/* @__PURE__ */ i.isValidElement(r) || !r.type)
2236
2239
  return null;
2237
2240
  var o = r, a = o.type.isSelectOptGroup, l = o.key, s = o.props, u = s.children, v = Ct(s, Oa);
@@ -2292,14 +2295,14 @@ function Ma(e) {
2292
2295
  }
2293
2296
  if (n) {
2294
2297
  var M = null;
2295
- $n(n).some(function(x) {
2298
+ In(n).some(function(x) {
2296
2299
  if (!/* @__PURE__ */ i.isValidElement(x) || !x.type)
2297
2300
  return !1;
2298
2301
  var C = x, w = C.type;
2299
2302
  if (w.isSelectOption)
2300
2303
  return !1;
2301
2304
  if (w.isSelectOptGroup) {
2302
- var R = $n(x.props.children).every(function(N) {
2305
+ var R = In(x.props.children).every(function(N) {
2303
2306
  return !/* @__PURE__ */ i.isValidElement(N) || !x.type || N.type.isSelectOption ? !0 : (M = N.type, !1);
2304
2307
  });
2305
2308
  return !R;
@@ -2340,7 +2343,7 @@ var Gr = /* @__PURE__ */ i.forwardRef(function(e, t) {
2340
2343
  me
2341
2344
  ]
2342
2345
  /* eslint-enable react-hooks/exhaustive-deps */
2343
- ), he = kt("", {
2346
+ ), he = en("", {
2344
2347
  value: v !== void 0 ? v : u,
2345
2348
  postState: function(L) {
2346
2349
  return L || "";
@@ -2371,7 +2374,7 @@ var Gr = /* @__PURE__ */ i.forwardRef(function(e, t) {
2371
2374
  title: ot
2372
2375
  };
2373
2376
  });
2374
- }, [ie, $, k]), Ce = kt(E, {
2377
+ }, [ie, $, k]), Ce = en(E, {
2375
2378
  value: T
2376
2379
  }), ae = re(Ce, 2), $e = ae[0], Ie = ae[1], se = i.useMemo(function() {
2377
2380
  var ee, L = de && $e === null ? [] : $e, _ = P(L);
@@ -2616,7 +2619,7 @@ const qr = () => {
2616
2619
  borderColor: a,
2617
2620
  shadowColor: l,
2618
2621
  contentColor: s
2619
- } = In(() => ({
2622
+ } = En(() => ({
2620
2623
  borderColor: new sn(t).onBackground(o).toHexShortString(),
2621
2624
  shadowColor: new sn(r).onBackground(o).toHexShortString(),
2622
2625
  contentColor: new sn(n).onBackground(o).toHexShortString()
@@ -2737,7 +2740,7 @@ const Yr = /* @__PURE__ */ i.createElement(Ur, null), Jr = /* @__PURE__ */ i.cre
2737
2740
  getPrefixCls: m,
2738
2741
  direction: f,
2739
2742
  empty: g
2740
- } = i.useContext(Rt), d = m("empty", n), [c, p, S] = La(d), [b] = Er("Empty"), h = typeof a < "u" ? a : b == null ? void 0 : b.description, y = typeof h == "string" ? h : "empty";
2743
+ } = i.useContext(Rt), d = m("empty", n), [c, p, S] = La(d), [b] = wr("Empty"), h = typeof a < "u" ? a : b == null ? void 0 : b.description, y = typeof h == "string" ? h : "empty";
2741
2744
  let $ = null;
2742
2745
  return typeof o == "string" ? $ = /* @__PURE__ */ i.createElement("img", {
2743
2746
  alt: y,
@@ -2765,7 +2768,7 @@ const Qr = (e) => {
2765
2768
  componentName: t
2766
2769
  } = e, {
2767
2770
  getPrefixCls: r
2768
- } = en(Rt), n = r("empty");
2771
+ } = kt(Rt), n = r("empty");
2769
2772
  switch (t) {
2770
2773
  case "Table":
2771
2774
  case "List":
@@ -2900,7 +2903,7 @@ const gr = (e) => {
2900
2903
  display: "flex",
2901
2904
  "&-content": Object.assign({
2902
2905
  flex: "auto"
2903
- }, En),
2906
+ }, wn),
2904
2907
  "&-state": {
2905
2908
  flex: "none",
2906
2909
  display: "flex",
@@ -3031,7 +3034,7 @@ const gr = (e) => {
3031
3034
  // fix whitespace wrapping. custom tags display all whitespace within.
3032
3035
  textOverflow: "ellipsis"
3033
3036
  },
3034
- "&-remove": Object.assign(Object.assign({}, Ir()), {
3037
+ "&-remove": Object.assign(Object.assign({}, Er()), {
3035
3038
  display: "inline-flex",
3036
3039
  alignItems: "center",
3037
3040
  color: u,
@@ -3589,20 +3592,20 @@ const Ua = (e) => {
3589
3592
  fontWeight: "normal",
3590
3593
  position: "relative",
3591
3594
  userSelect: "none"
3592
- }, En), {
3595
+ }, wn), {
3593
3596
  // https://github.com/ant-design/ant-design/issues/40421
3594
3597
  [`> ${t}-typography`]: {
3595
3598
  display: "inline"
3596
3599
  }
3597
3600
  }),
3598
3601
  // ======================= Placeholder =======================
3599
- [`${r}-selection-placeholder`]: Object.assign(Object.assign({}, En), {
3602
+ [`${r}-selection-placeholder`]: Object.assign(Object.assign({}, wn), {
3600
3603
  flex: 1,
3601
3604
  color: e.colorTextPlaceholder,
3602
3605
  pointerEvents: "none"
3603
3606
  }),
3604
3607
  // ========================== Arrow ==========================
3605
- [`${r}-arrow`]: Object.assign(Object.assign({}, Ir()), {
3608
+ [`${r}-arrow`]: Object.assign(Object.assign({}, Er()), {
3606
3609
  position: "absolute",
3607
3610
  top: "50%",
3608
3611
  insetInlineStart: "auto",
@@ -3711,7 +3714,7 @@ const Ua = (e) => {
3711
3714
  // =====================================================
3712
3715
  // == Space Compact ==
3713
3716
  // =====================================================
3714
- Oi(e, {
3717
+ no(e, {
3715
3718
  borderElCls: `${t}-selector`,
3716
3719
  focusElCls: `${t}-focused`
3717
3720
  })
@@ -3762,13 +3765,13 @@ function ll(e) {
3762
3765
  showArrow: f,
3763
3766
  componentName: g
3764
3767
  } = e;
3765
- process.env.NODE_ENV !== "production" && Tn(g).deprecated(!r, "clearIcon", "allowClear={{ clearIcon: React.ReactNode }}");
3766
- const d = r ?? /* @__PURE__ */ i.createElement(Ni, null), c = (h) => t === null && !s && !f ? null : /* @__PURE__ */ i.createElement(i.Fragment, null, v !== !1 && h, s && m);
3768
+ process.env.NODE_ENV !== "production" && _n(g).deprecated(!r, "clearIcon", "allowClear={{ clearIcon: React.ReactNode }}");
3769
+ const d = r ?? /* @__PURE__ */ i.createElement(ro, null), c = (h) => t === null && !s && !f ? null : /* @__PURE__ */ i.createElement(i.Fragment, null, v !== !1 && h, s && m);
3767
3770
  let p = null;
3768
3771
  if (t !== void 0)
3769
3772
  p = c(t);
3770
3773
  else if (a)
3771
- p = c(/* @__PURE__ */ i.createElement(Mi, {
3774
+ p = c(/* @__PURE__ */ i.createElement(io, {
3772
3775
  spin: !0
3773
3776
  }));
3774
3777
  else {
@@ -3786,9 +3789,9 @@ function ll(e) {
3786
3789
  };
3787
3790
  }
3788
3791
  let S = null;
3789
- n !== void 0 ? S = n : l ? S = /* @__PURE__ */ i.createElement(Ri, null) : S = null;
3792
+ n !== void 0 ? S = n : l ? S = /* @__PURE__ */ i.createElement(Oi, null) : S = null;
3790
3793
  let b = null;
3791
- return o !== void 0 ? b = o : b = /* @__PURE__ */ i.createElement(ao, null), {
3794
+ return o !== void 0 ? b = o : b = /* @__PURE__ */ i.createElement(lo, null), {
3792
3795
  clearIcon: d,
3793
3796
  suffixIcon: p,
3794
3797
  itemIcon: S,
@@ -3845,7 +3848,7 @@ const ni = "SECRET_COMBOBOX_MODE_DO_NOT_USE", ri = (e, t) => {
3845
3848
  } = i.useContext(Rt), [, j] = gn(), we = g ?? (j == null ? void 0 : j.controlHeight), pe = B("select", n), de = B(), me = $ ?? W, {
3846
3849
  compactSize: He,
3847
3850
  compactItemClassnames: ie
3848
- } = Pi(pe, me), [he, Te] = Di("select", C, o), D = zi(pe), [O, z, k] = nl(pe, D), A = i.useMemo(() => {
3851
+ } = oo(pe, me), [he, Te] = Ni("select", C, o), D = Ri(pe), [O, z, k] = nl(pe, D), A = i.useMemo(() => {
3849
3852
  const {
3850
3853
  mode: Ae
3851
3854
  } = e;
@@ -3856,7 +3859,7 @@ const ni = "SECRET_COMBOBOX_MODE_DO_NOT_USE", ri = (e, t) => {
3856
3859
  hasFeedback: $e,
3857
3860
  isFormItemInput: Ie,
3858
3861
  feedbackIcon: se
3859
- } = i.useContext(_i), Se = ji(ae, S);
3862
+ } = i.useContext(Mi), Se = _i(ae, S);
3860
3863
  let be;
3861
3864
  p !== void 0 ? be = p : A === "combobox" ? be = null : be = (G == null ? void 0 : G("Select")) || /* @__PURE__ */ i.createElement(Qr, {
3862
3865
  componentName: "Select"
@@ -3875,23 +3878,23 @@ const ni = "SECRET_COMBOBOX_MODE_DO_NOT_USE", ri = (e, t) => {
3875
3878
  componentName: "Select"
3876
3879
  })), De = x === !0 ? {
3877
3880
  clearIcon: Pe
3878
- } : x, je = wr(K, ["suffixIcon", "itemIcon"]), Ve = le(u || v, {
3881
+ } : x, je = Nr(K, ["suffixIcon", "itemIcon"]), Ve = le(u || v, {
3879
3882
  [`${pe}-dropdown-${me}`]: me === "rtl"
3880
- }, l, k, D, z), Ze = _n((Ae) => {
3883
+ }, l, k, D, z), Ze = Tn((Ae) => {
3881
3884
  var Xe;
3882
3885
  return (Xe = d ?? He) !== null && Xe !== void 0 ? Xe : Ae;
3883
- }), tt = i.useContext(Zi), Le = c ?? tt, Be = le({
3886
+ }), tt = i.useContext(qi), Le = c ?? tt, Be = le({
3884
3887
  [`${pe}-lg`]: Ze === "large",
3885
3888
  [`${pe}-sm`]: Ze === "small",
3886
3889
  [`${pe}-rtl`]: me === "rtl",
3887
3890
  [`${pe}-${he}`]: Te,
3888
3891
  [`${pe}-in-form-item`]: Ie
3889
- }, Ti(pe, Se, $e), ie, Z == null ? void 0 : Z.className, a, l, k, D, z), ke = i.useMemo(() => f !== void 0 ? f : me === "rtl" ? "bottomRight" : "bottomLeft", [f, me]);
3892
+ }, Pi(pe, Se, $e), ie, Z == null ? void 0 : Z.className, a, l, k, D, z), ke = i.useMemo(() => f !== void 0 ? f : me === "rtl" ? "bottomRight" : "bottomLeft", [f, me]);
3890
3893
  if (process.env.NODE_ENV !== "production") {
3891
- const Ae = Tn("Select");
3894
+ const Ae = _n("Select");
3892
3895
  Ae.deprecated(!v, "dropdownClassName", "popupClassName"), Ae.deprecated(h === void 0, "dropdownMatchSelectWidth", "popupMatchSelectWidth"), process.env.NODE_ENV !== "production" && Ae(!("showArrow" in e), "deprecated", "`showArrow` is deprecated which will be removed in next major version. It will be a default behavior, you can hide it by setting `suffixIcon` to null."), Ae.deprecated(!("bordered" in e), "bordered", "variant"), process.env.NODE_ENV !== "production" && Ae(!(typeof H < "u" && !Q), "usage", "`maxCount` only works with mode `multiple` or `tags`");
3893
3896
  }
3894
- const [Ue] = Li("SelectLike", w == null ? void 0 : w.zIndex);
3897
+ const [Ue] = Di("SelectLike", w == null ? void 0 : w.zIndex);
3895
3898
  return O(/* @__PURE__ */ i.createElement(Wn, Object.assign({
3896
3899
  ref: t,
3897
3900
  virtual: T,
@@ -3899,7 +3902,7 @@ const ni = "SECRET_COMBOBOX_MODE_DO_NOT_USE", ri = (e, t) => {
3899
3902
  }, je, {
3900
3903
  style: Object.assign(Object.assign({}, Z == null ? void 0 : Z.style), M),
3901
3904
  dropdownMatchSelectWidth: Ce,
3902
- transitionName: Bi(de, "slide-up", R),
3905
+ transitionName: zi(de, "slide-up", R),
3903
3906
  builtinPlacements: Ha(b, I),
3904
3907
  listHeight: m,
3905
3908
  listItemHeight: we,
@@ -3924,7 +3927,7 @@ const ni = "SECRET_COMBOBOX_MODE_DO_NOT_USE", ri = (e, t) => {
3924
3927
  })));
3925
3928
  };
3926
3929
  process.env.NODE_ENV !== "production" && (ri.displayName = "Select");
3927
- const Mt = /* @__PURE__ */ i.forwardRef(ri), ul = lo(Mt);
3930
+ const Mt = /* @__PURE__ */ i.forwardRef(ri), ul = ao(Mt);
3928
3931
  Mt.SECRET_COMBOBOX_MODE_DO_NOT_USE = ni;
3929
3932
  Mt.Option = Vn;
3930
3933
  Mt.OptGroup = Hn;
@@ -3968,7 +3971,7 @@ function gl(e, t, r) {
3968
3971
  debounceMode: a !== !1
3969
3972
  });
3970
3973
  }
3971
- const ii = /* @__PURE__ */ no({}), vl = (e) => {
3974
+ const ii = /* @__PURE__ */ Zi({}), vl = (e) => {
3972
3975
  const {
3973
3976
  componentCls: t
3974
3977
  } = e;
@@ -4205,7 +4208,7 @@ const ai = /* @__PURE__ */ i.forwardRef((e, t) => {
4205
4208
  lg: !1,
4206
4209
  xl: !1,
4207
4210
  xxl: !1
4208
- }), b = Sr(o, p), h = Sr(n, p), y = i.useRef(u), $ = ro();
4211
+ }), b = Sr(o, p), h = Sr(n, p), y = i.useRef(u), $ = ki();
4209
4212
  i.useEffect(() => {
4210
4213
  const T = $.subscribe((E) => {
4211
4214
  S(E);
@@ -4396,10 +4399,10 @@ function Ft(e, t, r) {
4396
4399
  return Math.floor((r - 1) / n) + 1;
4397
4400
  }
4398
4401
  var si = function(t) {
4399
- var r = t.prefixCls, n = r === void 0 ? "rc-pagination" : r, o = t.selectPrefixCls, a = o === void 0 ? "rc-select" : o, l = t.className, s = t.selectComponentClass, u = t.current, v = t.defaultCurrent, m = v === void 0 ? 1 : v, f = t.total, g = f === void 0 ? 0 : f, d = t.pageSize, c = t.defaultPageSize, p = c === void 0 ? 10 : c, S = t.onChange, b = S === void 0 ? yn : S, h = t.hideOnSinglePage, y = t.align, $ = t.showPrevNextJumpers, M = $ === void 0 ? !0 : $, x = t.showQuickJumper, C = t.showLessItems, w = t.showTitle, R = w === void 0 ? !0 : w, N = t.onShowSizeChange, H = N === void 0 ? yn : N, K = t.locale, V = K === void 0 ? Pl : K, B = t.style, G = t.totalBoundaryShowSizeChanger, W = G === void 0 ? 50 : G, T = t.disabled, E = t.simple, I = t.showTotal, Z = t.showSizeChanger, j = Z === void 0 ? g > W : Z, we = t.pageSizeOptions, pe = t.itemRender, de = pe === void 0 ? zl : pe, me = t.jumpPrevIcon, He = t.jumpNextIcon, ie = t.prevIcon, he = t.nextIcon, Te = X.useRef(null), D = kt(10, {
4402
+ var r = t.prefixCls, n = r === void 0 ? "rc-pagination" : r, o = t.selectPrefixCls, a = o === void 0 ? "rc-select" : o, l = t.className, s = t.selectComponentClass, u = t.current, v = t.defaultCurrent, m = v === void 0 ? 1 : v, f = t.total, g = f === void 0 ? 0 : f, d = t.pageSize, c = t.defaultPageSize, p = c === void 0 ? 10 : c, S = t.onChange, b = S === void 0 ? yn : S, h = t.hideOnSinglePage, y = t.align, $ = t.showPrevNextJumpers, M = $ === void 0 ? !0 : $, x = t.showQuickJumper, C = t.showLessItems, w = t.showTitle, R = w === void 0 ? !0 : w, N = t.onShowSizeChange, H = N === void 0 ? yn : N, K = t.locale, V = K === void 0 ? Pl : K, B = t.style, G = t.totalBoundaryShowSizeChanger, W = G === void 0 ? 50 : G, T = t.disabled, E = t.simple, I = t.showTotal, Z = t.showSizeChanger, j = Z === void 0 ? g > W : Z, we = t.pageSizeOptions, pe = t.itemRender, de = pe === void 0 ? zl : pe, me = t.jumpPrevIcon, He = t.jumpNextIcon, ie = t.prevIcon, he = t.nextIcon, Te = X.useRef(null), D = en(10, {
4400
4403
  value: d,
4401
4404
  defaultValue: p
4402
- }), O = re(D, 2), z = O[0], k = O[1], A = kt(1, {
4405
+ }), O = re(D, 2), z = O[0], k = O[1], A = en(1, {
4403
4406
  value: u,
4404
4407
  defaultValue: m,
4405
4408
  postState: function(Ee) {
@@ -4802,7 +4805,7 @@ const _l = (e) => {
4802
4805
  "&-quick-jumper": {
4803
4806
  height: e.itemSizeSM,
4804
4807
  lineHeight: J(e.itemSizeSM),
4805
- input: Object.assign(Object.assign({}, Ai(e)), {
4808
+ input: Object.assign(Object.assign({}, Bi(e)), {
4806
4809
  width: e.paginationMiniQuickJumperInputWidth,
4807
4810
  height: e.controlHeightSM
4808
4811
  })
@@ -4991,13 +4994,13 @@ const _l = (e) => {
4991
4994
  marginInlineStart: e.marginXS,
4992
4995
  lineHeight: J(e.controlHeight),
4993
4996
  verticalAlign: "top",
4994
- input: Object.assign(Object.assign(Object.assign({}, Fi(e)), Wi(e, {
4997
+ input: Object.assign(Object.assign(Object.assign({}, ji(e)), Hi(e, {
4995
4998
  borderColor: e.colorBorder,
4996
4999
  hoverBorderColor: e.colorPrimaryHover,
4997
5000
  activeBorderColor: e.colorPrimary,
4998
5001
  activeShadow: e.activeShadow
4999
5002
  })), {
5000
- "&[disabled]": Object.assign({}, Ki(e)),
5003
+ "&[disabled]": Object.assign({}, Vi(e)),
5001
5004
  width: e.calc(e.controlHeightLG).mul(1.25).equal(),
5002
5005
  height: e.controlHeight,
5003
5006
  boxSizing: "border-box",
@@ -5124,7 +5127,7 @@ const _l = (e) => {
5124
5127
  } = e;
5125
5128
  return {
5126
5129
  [`${t}:not(${t}-disabled)`]: {
5127
- [`${t}-item`]: Object.assign({}, ki(e)),
5130
+ [`${t}-item`]: Object.assign({}, Yi(e)),
5128
5131
  [`${t}-jump-prev, ${t}-jump-next`]: {
5129
5132
  "&:focus-visible": Object.assign({
5130
5133
  [`${t}-item-link-icon`]: {
@@ -5150,7 +5153,7 @@ const _l = (e) => {
5150
5153
  itemActiveBgDisabled: e.controlItemBgActiveDisabled,
5151
5154
  itemInputBg: e.colorBgContainer,
5152
5155
  miniOptionsSizeChangerTop: 0
5153
- }, Hi(e)), fi = (e) => Nt(e, {
5156
+ }, Ti(e)), fi = (e) => Nt(e, {
5154
5157
  inputOutlineOffset: 0,
5155
5158
  paginationMiniOptionsMarginInlineStart: e.calc(e.marginXXS).div(2).equal(),
5156
5159
  paginationMiniQuickJumperInputWidth: e.calc(e.controlHeightLG).mul(1.1).equal(),
@@ -5160,7 +5163,7 @@ const _l = (e) => {
5160
5163
  paginationSlashMarginInlineEnd: e.marginSM,
5161
5164
  paginationEllipsisTextIndent: "0.13em"
5162
5165
  // magic for ui experience
5163
- }, Vi(e)), Al = Wt("Pagination", (e) => {
5166
+ }, Li(e)), Al = Wt("Pagination", (e) => {
5164
5167
  const t = fi(e);
5165
5168
  return [Hl(t), Vl(t)];
5166
5169
  }, di), Fl = (e) => {
@@ -5243,7 +5246,7 @@ const _l = (e) => {
5243
5246
  }
5244
5247
  }
5245
5248
  };
5246
- }, Wl = eo(["Pagination", "bordered"], (e) => {
5249
+ }, Wl = Ji(["Pagination", "bordered"], (e) => {
5247
5250
  const t = fi(e);
5248
5251
  return [Fl(t)];
5249
5252
  }, di);
@@ -5269,7 +5272,7 @@ const mi = (e) => {
5269
5272
  showSizeChanger: f
5270
5273
  } = e, g = Kl(e, ["align", "prefixCls", "selectPrefixCls", "className", "rootClassName", "style", "size", "locale", "selectComponentClass", "responsive", "showSizeChanger"]), {
5271
5274
  xs: d
5272
- } = Nr(m), [, c] = gn(), {
5275
+ } = Or(m), [, c] = gn(), {
5273
5276
  getPrefixCls: p,
5274
5277
  direction: S,
5275
5278
  pagination: b = {}
@@ -5313,7 +5316,7 @@ const mi = (e) => {
5313
5316
  jumpPrevIcon: E,
5314
5317
  jumpNextIcon: I
5315
5318
  };
5316
- }, [S, h]), [w] = Er("Pagination", to), R = Object.assign(Object.assign({}, w), u), N = _n(s), H = N === "small" || !!(d && !N && m), K = p("select", n), V = le({
5319
+ }, [S, h]), [w] = wr("Pagination", Qi), R = Object.assign(Object.assign({}, w), u), N = Tn(s), H = N === "small" || !!(d && !N && m), K = p("select", n), V = le({
5317
5320
  [`${h}-${t}`]: !!t,
5318
5321
  [`${h}-mini`]: H,
5319
5322
  [`${h}-rtl`]: S === "rtl",
@@ -5404,7 +5407,7 @@ function Ul(e) {
5404
5407
  indicator: r,
5405
5408
  percent: n
5406
5409
  } = e, o = `${t}-dot`;
5407
- return r && /* @__PURE__ */ i.isValidElement(r) ? Or(r, {
5410
+ return r && /* @__PURE__ */ i.isValidElement(r) ? Ir(r, {
5408
5411
  className: le(r.props.className, o),
5409
5412
  percent: n
5410
5413
  }) : /* @__PURE__ */ i.createElement(Gl, {
@@ -5749,7 +5752,7 @@ const Kn = (e) => {
5749
5752
  }, [o, n]);
5750
5753
  const N = i.useMemo(() => typeof f < "u" && !g, [f, g]);
5751
5754
  if (process.env.NODE_ENV !== "production") {
5752
- const W = Tn("Spin");
5755
+ const W = _n("Spin");
5753
5756
  process.env.NODE_ENV !== "production" && W(!u || N || g, "usage", "`tip` only work in nest or fullscreen pattern.");
5754
5757
  }
5755
5758
  const H = le(y, h == null ? void 0 : h.className, {
@@ -5808,7 +5811,7 @@ const rs = (e) => {
5808
5811
  } = e, l = hi(e, ["prefixCls", "className", "avatar", "title", "description"]);
5809
5812
  const {
5810
5813
  getPrefixCls: s
5811
- } = en(Rt), u = s("list", t), v = le(`${u}-item-meta`, r), m = /* @__PURE__ */ X.createElement("div", {
5814
+ } = kt(Rt), u = s("list", t), v = le(`${u}-item-meta`, r), m = /* @__PURE__ */ X.createElement("div", {
5812
5815
  className: `${u}-item-meta-content`
5813
5816
  }, o && /* @__PURE__ */ X.createElement("h4", {
5814
5817
  className: `${u}-item-meta-title`
@@ -5833,10 +5836,10 @@ const rs = (e) => {
5833
5836
  } = e, m = hi(e, ["prefixCls", "children", "actions", "extra", "styles", "className", "classNames", "colStyle"]), {
5834
5837
  grid: f,
5835
5838
  itemLayout: g
5836
- } = en(Xn), {
5839
+ } = kt(Xn), {
5837
5840
  getPrefixCls: d,
5838
5841
  list: c
5839
- } = en(Rt), p = (C) => {
5842
+ } = kt(Rt), p = (C) => {
5840
5843
  var w, R;
5841
5844
  return le((R = (w = c == null ? void 0 : c.item) === null || w === void 0 ? void 0 : w.classNames) === null || R === void 0 ? void 0 : R[C], u == null ? void 0 : u[C]);
5842
5845
  }, S = (C) => {
@@ -5871,7 +5874,7 @@ const rs = (e) => {
5871
5874
  className: le(`${y}-item-extra`, p("extra")),
5872
5875
  key: "extra",
5873
5876
  style: S("extra")
5874
- }, a)] : [n, $, Or(a, {
5877
+ }, a)] : [n, $, Ir(a, {
5875
5878
  key: "extra"
5876
5879
  })]);
5877
5880
  return f ? /* @__PURE__ */ X.createElement(oi, {
@@ -6244,7 +6247,7 @@ function ds(e, t) {
6244
6247
  typeof me == "boolean" && (me = {
6245
6248
  spinning: me
6246
6249
  });
6247
- const He = !!(me != null && me.spinning), ie = _n(c);
6250
+ const He = !!(me != null && me.spinning), ie = Tn(c);
6248
6251
  let he = "";
6249
6252
  switch (ie) {
6250
6253
  case "large":
@@ -6279,7 +6282,7 @@ function ds(e, t) {
6279
6282
  })));
6280
6283
  let k = pt(d);
6281
6284
  r && d.length > (D.current - 1) * D.pageSize && (k = pt(d).splice((D.current - 1) * D.pageSize, D.pageSize));
6282
- const A = Object.keys(g || {}).some((se) => ["xs", "sm", "md", "lg", "xl", "xxl"].includes(se)), Q = Nr(A), P = i.useMemo(() => {
6285
+ const A = Object.keys(g || {}).some((se) => ["xs", "sm", "md", "lg", "xl", "xxl"].includes(se)), Q = Or(A), P = i.useMemo(() => {
6283
6286
  for (let se = 0; se < qt.length; se += 1) {
6284
6287
  const Se = qt[se];
6285
6288
  if (Q[Se])
@@ -6335,14 +6338,14 @@ const bi = /* @__PURE__ */ i.forwardRef(ds);
6335
6338
  process.env.NODE_ENV !== "production" && (bi.displayName = "List");
6336
6339
  const Qt = bi;
6337
6340
  Qt.Item = Si;
6338
- const Es = (e) => {
6341
+ const Ns = (e) => {
6339
6342
  var u, v, m, f, g, d;
6340
- const t = en(oo);
6343
+ const t = kt(to);
6341
6344
  if (!t)
6342
6345
  return null;
6343
6346
  const r = (c) => e.filter === kn.ALL || !e.filter ? c : e.filter === kn.UNARCHIVED ? c.filter((p) => !p.archived) : c.filter(e.filter);
6344
6347
  if (t.notifications === void 0) return null;
6345
- const o = r(t.notifications).sort((c, p) => new Date(c.date).getTime() - new Date(p.date).getTime()), a = {}, l = new io();
6348
+ const o = r(t.notifications).sort((c, p) => new Date(c.date).getTime() - new Date(p.date).getTime()), a = {}, l = new eo();
6346
6349
  o.forEach((c) => {
6347
6350
  var p, S;
6348
6351
  if ((S = (p = c.deliveryOptions) == null ? void 0 : p.instant) != null && S.batching) {
@@ -6445,5 +6448,5 @@ const Es = (e) => {
6445
6448
  ) });
6446
6449
  };
6447
6450
  export {
6448
- Es as Inbox
6451
+ Ns as Inbox
6449
6452
  };