@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.
Files changed (44) hide show
  1. package/dist/assets/Badge.js +1 -1
  2. package/dist/assets/Box.js +13 -13
  3. package/dist/assets/Button.js +781 -0
  4. package/dist/assets/ButtonBase.js +409 -622
  5. package/dist/assets/DefaultPropsProvider.js +220 -215
  6. package/dist/assets/Divider.js +105 -154
  7. package/dist/assets/Grow.js +201 -0
  8. package/dist/assets/IconButton.js +1 -1
  9. package/dist/assets/List.js +142 -0
  10. package/dist/assets/Modal.js +1094 -0
  11. package/dist/assets/Notification.js +80 -79
  12. package/dist/assets/Paper.js +1 -1
  13. package/dist/assets/Popover.js +8 -6
  14. package/dist/assets/Portal.js +2 -2
  15. package/dist/assets/Stack.js +216 -0
  16. package/dist/assets/Typography.js +193 -117
  17. package/dist/assets/WebPushOptInMessage.js +40 -814
  18. package/dist/assets/createSvgIcon.js +5 -5
  19. package/dist/assets/dividerClasses.js +56 -0
  20. package/dist/assets/index.js +151 -0
  21. package/dist/assets/useTheme2.js +253 -11
  22. package/dist/assets/utils.js +4 -4
  23. package/dist/components/Notifications/Inbox.js +2927 -9
  24. package/dist/components/Notifications/InboxHeader.js +2146 -7
  25. package/dist/components/Notifications/NotificationFeed.js +13 -13
  26. package/dist/components/Notifications/NotificationLauncher.js +2 -2
  27. package/dist/components/Notifications/NotificationPopup.js +7 -7
  28. package/dist/components/Preferences/NotificationPreferencesPopup.js +608 -7
  29. package/dist/components/Preferences/PreferenceInput.js +1451 -6
  30. package/dist/components/Preferences/Preferences.js +368 -515
  31. package/dist/components/Preferences/index.js +1 -1
  32. package/dist/components/Provider/index.js +226 -202
  33. package/dist/components/Slack/SlackConnect.d.ts +12 -0
  34. package/dist/components/Slack/SlackConnect.js +4826 -0
  35. package/dist/components/Slack/index.d.ts +1 -0
  36. package/dist/components/Slack/index.js +4 -0
  37. package/dist/components/WebPush/WebPushOptInMessage.js +3 -2
  38. package/dist/main.d.ts +1 -0
  39. package/dist/main.js +5 -3
  40. package/package.json +4 -4
  41. package/dist/assets/Inbox.js +0 -3061
  42. package/dist/assets/InboxHeader.js +0 -2338
  43. package/dist/assets/NotificationPreferencesPopup.js +0 -1694
  44. package/dist/assets/PreferenceInput.js +0 -1657
@@ -1,9 +1,9 @@
1
1
  import { jsx as _, jsxs as ut } from "react/jsx-runtime";
2
- import { g as ai, a as ui, s as $t, m as li, u as ci, c as fi, P as p, f as hi, K as dn, q as pi, L as di } from "./DefaultPropsProvider.js";
2
+ import { g as ai, e as ui, s as $t, m as li, u as ci, c as fi, P as p, b as hi, Q as dn, M as pi, R as di } from "./DefaultPropsProvider.js";
3
3
  import * as mt from "react";
4
4
  import De, { useMemo as ne, useCallback as mi, useRef as Kt, useState as gi, useEffect as er } from "react";
5
5
  import { c as mn } from "./createSvgIcon.js";
6
- import { u as yi } from "./ButtonBase.js";
6
+ import { a as yi } from "./ButtonBase.js";
7
7
  import { T as tr } from "./Typography.js";
8
8
  import { I as wi } from "./IconButton.js";
9
9
  import { B as vi } from "./Badge.js";
@@ -152,10 +152,10 @@ const gn = /* @__PURE__ */ mt.forwardRef(function(e, r) {
152
152
  ...typeof c.img == "function" ? c.img(O) : c.img,
153
153
  src: g,
154
154
  srcSet: v
155
- }), U = g || v, z = U && y !== "error";
156
- O.colorDefault = !z, delete O.ownerState;
157
- const M = Oi(O), [ee, pe] = yi("img", {
158
- className: M.img,
155
+ }), U = g || v, M = U && y !== "error";
156
+ O.colorDefault = !M, delete O.ownerState;
157
+ const z = Oi(O), [ee, pe] = yi("img", {
158
+ className: z.img,
159
159
  elementType: ki,
160
160
  externalForwardedProps: {
161
161
  slots: l,
@@ -174,14 +174,14 @@ const gn = /* @__PURE__ */ mt.forwardRef(function(e, r) {
174
174
  },
175
175
  ownerState: O
176
176
  });
177
- return z ? D = /* @__PURE__ */ _(ee, {
177
+ return M ? D = /* @__PURE__ */ _(ee, {
178
178
  ...pe
179
179
  }) : s || s === 0 ? D = s : U && i ? D = i[0] : D = /* @__PURE__ */ _(xi, {
180
180
  ownerState: O,
181
- className: M.fallback
181
+ className: z.fallback
182
182
  }), /* @__PURE__ */ _(Si, {
183
183
  as: a,
184
- className: fi(M.root, o),
184
+ className: fi(z.root, o),
185
185
  ref: r,
186
186
  ...k,
187
187
  ownerState: O,
@@ -315,7 +315,7 @@ function m(t) {
315
315
  function nr(t) {
316
316
  return t = Number(t), isNaN(t) ? 0 : t;
317
317
  }
318
- function zt(t) {
318
+ function Mt(t) {
319
319
  return typeof t == "number";
320
320
  }
321
321
  function yn(t) {
@@ -383,7 +383,7 @@ function E(t) {
383
383
  return t.call(this, ...e.map(m));
384
384
  };
385
385
  }
386
- function Mt(t) {
386
+ function zt(t) {
387
387
  return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
388
388
  }
389
389
  const or = "__liquidClass__";
@@ -411,7 +411,7 @@ class ji extends fe {
411
411
  super(e, r), this.name = "ParseError", this.message = e.message, super.update();
412
412
  }
413
413
  }
414
- class zi extends fe {
414
+ class Mi extends fe {
415
415
  constructor(e, r) {
416
416
  super(e, r.token), this.name = "RenderError", this.message = e.message, super.update();
417
417
  }
@@ -429,7 +429,7 @@ class On extends fe {
429
429
  return e.name === "LiquidErrors";
430
430
  }
431
431
  }
432
- class Mi extends fe {
432
+ class zi extends fe {
433
433
  constructor(e, r) {
434
434
  super(e, r), this.name = "UndefinedVariableError", this.message = e.message, super.update();
435
435
  }
@@ -1111,7 +1111,7 @@ class Ss {
1111
1111
  if (o && n.write(o), n.break || n.continue)
1112
1112
  break;
1113
1113
  } catch (o) {
1114
- const a = fe.is(o) ? o : new zi(o, s);
1114
+ const a = fe.is(o) ? o : new Mi(o, s);
1115
1115
  if (r.opts.catchAllErrors)
1116
1116
  i.push(a);
1117
1117
  else
@@ -1172,7 +1172,7 @@ function* xs(t, e, r) {
1172
1172
  } catch (i) {
1173
1173
  if (r && i.name === "InternalUndefinedVariableError")
1174
1174
  return null;
1175
- throw new Mi(i, t);
1175
+ throw new zi(i, t);
1176
1176
  }
1177
1177
  }
1178
1178
  function Rn(t) {
@@ -1301,7 +1301,7 @@ function Is(t) {
1301
1301
  return Pn(t, ".");
1302
1302
  }
1303
1303
  const js = "/";
1304
- var zs = /* @__PURE__ */ Object.freeze({
1304
+ var Ms = /* @__PURE__ */ Object.freeze({
1305
1305
  __proto__: null,
1306
1306
  resolve: Rs,
1307
1307
  readFile: Ps,
@@ -1311,7 +1311,7 @@ var zs = /* @__PURE__ */ Object.freeze({
1311
1311
  dirname: Is,
1312
1312
  sep: js
1313
1313
  });
1314
- function Ms(t, e, ...r) {
1314
+ function zs(t, e, ...r) {
1315
1315
  return t = m(t), A(t) || N(t) ? t.length ? t : e : t === !1 && new Map(r).get("allow_false") ? !1 : it(t, this.context) ? e : t;
1316
1316
  }
1317
1317
  function Tr(t, e = 0) {
@@ -1335,7 +1335,7 @@ const Us = {
1335
1335
  handler: Tn
1336
1336
  };
1337
1337
  var En = {
1338
- default: Ms,
1338
+ default: zs,
1339
1339
  raw: Us,
1340
1340
  jsonify: Tr,
1341
1341
  to_integer: qs,
@@ -1429,7 +1429,7 @@ const de = {
1429
1429
  keyValueSeparator: ":",
1430
1430
  cache: void 0,
1431
1431
  extname: "",
1432
- fs: zs,
1432
+ fs: Ms,
1433
1433
  dynamicPartials: !0,
1434
1434
  jsTruthy: !1,
1435
1435
  dateFormat: "%A, %B %-e, %Y at %-l:%M %P %z",
@@ -2229,12 +2229,12 @@ const Po = (t) => decodeURIComponent(h(t)).replace(/\+/g, " "), Eo = (t) => enco
2229
2229
  function jo(t, e = "default", r = !1) {
2230
2230
  t = h(t);
2231
2231
  const n = Io[e];
2232
- return n && (e === "latin" && (t = zo(t)), t = t.replace(n, "-").replace(/^-|-$/g, "")), r ? t : t.toLowerCase();
2232
+ return n && (e === "latin" && (t = Mo(t)), t = t.replace(n, "-").replace(/^-|-$/g, "")), r ? t : t.toLowerCase();
2233
2233
  }
2234
- function zo(t) {
2234
+ function Mo(t) {
2235
2235
  return t.replace(/[àáâãäå]/g, "a").replace(/[æ]/g, "ae").replace(/[ç]/g, "c").replace(/[èéêë]/g, "e").replace(/[ìíîï]/g, "i").replace(/[ð]/g, "d").replace(/[ñ]/g, "n").replace(/[òóôõöø]/g, "o").replace(/[ùúûü]/g, "u").replace(/[ýÿ]/g, "y").replace(/[ß]/g, "ss").replace(/[œ]/g, "oe").replace(/[þ]/g, "th").replace(/[ẞ]/g, "SS").replace(/[Œ]/g, "OE").replace(/[Þ]/g, "TH");
2236
2236
  }
2237
- var Mo = /* @__PURE__ */ Object.freeze({
2237
+ var zo = /* @__PURE__ */ Object.freeze({
2238
2238
  __proto__: null,
2239
2239
  url_decode: Po,
2240
2240
  url_encode: Eo,
@@ -2404,7 +2404,7 @@ function Ht(t, e, r) {
2404
2404
  var n, i, s;
2405
2405
  const o = ((n = t == null ? void 0 : t.length) !== null && n !== void 0 ? n : 0) + ((i = e == null ? void 0 : e.length) !== null && i !== void 0 ? i : 0) + ((s = r == null ? void 0 : r.length) !== null && s !== void 0 ? s : 0);
2406
2406
  this.context.memoryLimit.use(o);
2407
- const a = zn(t, this.context.opts, r);
2407
+ const a = Mn(t, this.context.opts, r);
2408
2408
  return a ? (e = m(e), e = $(e) ? this.context.opts.dateFormat : h(e), He(a, e)) : t;
2409
2409
  }
2410
2410
  function ca(t) {
@@ -2420,7 +2420,7 @@ function pa(t, e, r) {
2420
2420
  return jn.call(this, t, "%B", e, r);
2421
2421
  }
2422
2422
  function jn(t, e, r, n) {
2423
- const i = zn(t, this.context.opts);
2423
+ const i = Mn(t, this.context.opts);
2424
2424
  if (!i)
2425
2425
  return t;
2426
2426
  if (r === "ordinal") {
@@ -2429,10 +2429,10 @@ function jn(t, e, r, n) {
2429
2429
  }
2430
2430
  return He(i, `%d ${e} %Y`);
2431
2431
  }
2432
- function zn(t, e, r) {
2432
+ function Mn(t, e, r) {
2433
2433
  let n;
2434
2434
  const i = r ?? e.timezoneOffset, s = e.locale;
2435
- return t = m(t), t === "now" || t === "today" ? n = new q(Date.now(), s, i) : zt(t) ? n = new q(t * 1e3, s, i) : N(t) ? /^\d+$/.test(t) ? n = new q(+t * 1e3, s, i) : e.preserveTimezones && r === void 0 ? n = q.createDateFixedToTimezone(t, s) : n = new q(t, s, i) : n = new q(t, s, i), n.valid() ? n : void 0;
2435
+ return t = m(t), t === "now" || t === "today" ? n = new q(Date.now(), s, i) : Mt(t) ? n = new q(t * 1e3, s, i) : N(t) ? /^\d+$/.test(t) ? n = new q(+t * 1e3, s, i) : e.preserveTimezones && r === void 0 ? n = q.createDateFixedToTimezone(t, s) : n = new q(t, s, i) : n = new q(t, s, i), n.valid() ? n : void 0;
2436
2436
  }
2437
2437
  var da = /* @__PURE__ */ Object.freeze({
2438
2438
  __proto__: null,
@@ -2455,7 +2455,7 @@ function ga(t, e) {
2455
2455
  }
2456
2456
  function ya(t, e) {
2457
2457
  const r = h(t);
2458
- return this.context.memoryLimit.use(r.length), e ? (e = Mt(h(e)), r.replace(new RegExp(`^[${e}]+`, "g"), "")) : r.replace(/^\s+/, "");
2458
+ return this.context.memoryLimit.use(r.length), e ? (e = zt(h(e)), r.replace(new RegExp(`^[${e}]+`, "g"), "")) : r.replace(/^\s+/, "");
2459
2459
  }
2460
2460
  function wa(t) {
2461
2461
  const e = h(t);
@@ -2480,7 +2480,7 @@ function Oa(t, e) {
2480
2480
  return i === -1 ? r : r.substring(0, i) + r.substring(i + n.length);
2481
2481
  }
2482
2482
  function Sa(t, e) {
2483
- return t = h(t), this.context.memoryLimit.use(t.length), e ? (e = Mt(h(e)), t.replace(new RegExp(`[${e}]+$`, "g"), "")) : t.replace(/\s+$/, "");
2483
+ return t = h(t), this.context.memoryLimit.use(t.length), e ? (e = zt(h(e)), t.replace(new RegExp(`[${e}]+$`, "g"), "")) : t.replace(/\s+$/, "");
2484
2484
  }
2485
2485
  function ka(t, e) {
2486
2486
  const r = h(t);
@@ -2492,7 +2492,7 @@ function ka(t, e) {
2492
2492
  }
2493
2493
  function xa(t, e) {
2494
2494
  const r = h(t);
2495
- return this.context.memoryLimit.use(r.length), e ? (e = Mt(h(e)), r.replace(new RegExp(`^[${e}]+`, "g"), "").replace(new RegExp(`[${e}]+$`, "g"), "")) : r.trim();
2495
+ return this.context.memoryLimit.use(r.length), e ? (e = zt(h(e)), r.replace(new RegExp(`^[${e}]+`, "g"), "").replace(new RegExp(`[${e}]+$`, "g"), "")) : r.trim();
2496
2496
  }
2497
2497
  function La(t) {
2498
2498
  const e = h(t);
@@ -2583,8 +2583,8 @@ var Ia = /* @__PURE__ */ Object.freeze({
2583
2583
  number_of_words: Na,
2584
2584
  array_to_sentence_string: $a
2585
2585
  });
2586
- const ja = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, Zs), Ro), Mo), la), da), Ia), En);
2587
- class za extends T {
2586
+ const ja = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, Zs), Ro), zo), la), da), Ia), En);
2587
+ class Ma extends T {
2588
2588
  constructor(e, r, n) {
2589
2589
  super(e, r, n), this.key = this.tokenizer.readIdentifier().content, this.tokenizer.assert(this.key, "expected variable name"), this.tokenizer.skipBlank(), this.tokenizer.assert(this.tokenizer.peek() === "=", 'expected "="'), this.tokenizer.advance(), this.value = new I(this.tokenizer.readFilteredValue(), this.liquid);
2590
2590
  }
@@ -2593,7 +2593,7 @@ class za extends T {
2593
2593
  }
2594
2594
  }
2595
2595
  const kr = ["offset", "limit", "reversed"];
2596
- class Ma extends T {
2596
+ class za extends T {
2597
2597
  constructor(e, r, n, i) {
2598
2598
  super(e, r, n);
2599
2599
  const s = this.tokenizer.readIdentifier(), o = this.tokenizer.readIdentifier(), a = this.tokenizer.readValue();
@@ -2804,7 +2804,7 @@ class Ja extends T {
2804
2804
  }
2805
2805
  render(e, r) {
2806
2806
  const n = e.environments;
2807
- zt(n[this.variable]) || (n[this.variable] = 0), r.write(h(--n[this.variable]));
2807
+ Mt(n[this.variable]) || (n[this.variable] = 0), r.write(h(--n[this.variable]));
2808
2808
  }
2809
2809
  }
2810
2810
  class Qa extends T {
@@ -2863,7 +2863,7 @@ class Ga extends T {
2863
2863
  }
2864
2864
  render(e, r) {
2865
2865
  const n = e.environments;
2866
- zt(n[this.variable]) || (n[this.variable] = 0);
2866
+ Mt(n[this.variable]) || (n[this.variable] = 0);
2867
2867
  const i = n[this.variable];
2868
2868
  n[this.variable]++, r.write(h(i));
2869
2869
  }
@@ -3050,8 +3050,8 @@ class uu extends T {
3050
3050
  }
3051
3051
  }
3052
3052
  const lu = {
3053
- assign: za,
3054
- for: Ma,
3053
+ assign: Ma,
3054
+ for: za,
3055
3055
  capture: Va,
3056
3056
  case: Ba,
3057
3057
  comment: Ha,
@@ -3176,12 +3176,12 @@ class Jt {
3176
3176
  };
3177
3177
  }
3178
3178
  }
3179
- var Mn = "en", Qt = {}, wt = {};
3179
+ var zn = "en", Qt = {}, wt = {};
3180
3180
  function Cn() {
3181
- return Mn;
3181
+ return zn;
3182
3182
  }
3183
3183
  function cu(t) {
3184
- Mn = t;
3184
+ zn = t;
3185
3185
  }
3186
3186
  function fu(t) {
3187
3187
  return Qt[t];
@@ -3835,7 +3835,7 @@ function Tt(t) {
3835
3835
  function ju(t, e) {
3836
3836
  var r = typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
3837
3837
  if (r) return (r = r.call(t)).next.bind(r);
3838
- if (Array.isArray(t) || (r = zu(t)) || e) {
3838
+ if (Array.isArray(t) || (r = Mu(t)) || e) {
3839
3839
  r && (t = r);
3840
3840
  var n = 0;
3841
3841
  return function() {
@@ -3845,7 +3845,7 @@ function ju(t, e) {
3845
3845
  throw new TypeError(`Invalid attempt to iterate non-iterable instance.
3846
3846
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
3847
3847
  }
3848
- function zu(t, e) {
3848
+ function Mu(t, e) {
3849
3849
  if (t) {
3850
3850
  if (typeof t == "string") return Ir(t, e);
3851
3851
  var r = Object.prototype.toString.call(t).slice(8, -1);
@@ -3859,7 +3859,7 @@ function Ir(t, e) {
3859
3859
  n[r] = t[r];
3860
3860
  return n;
3861
3861
  }
3862
- function Mu(t, e) {
3862
+ function zu(t, e) {
3863
3863
  for (var r = ju(t), n; !(n = r()).done; ) {
3864
3864
  var i = n.value;
3865
3865
  if (e(i))
@@ -3960,7 +3960,7 @@ function jr(t, e, r) {
3960
3960
  if (e === "now" ? s = ye(t) : s = ye(e), i !== void 0 && s !== void 0)
3961
3961
  return i - s * (1 - Zt(n));
3962
3962
  }
3963
- function zr(t, e) {
3963
+ function Mr(t, e) {
3964
3964
  var r = Object.keys(t);
3965
3965
  if (Object.getOwnPropertySymbols) {
3966
3966
  var n = Object.getOwnPropertySymbols(t);
@@ -3973,9 +3973,9 @@ function zr(t, e) {
3973
3973
  function Bu(t) {
3974
3974
  for (var e = 1; e < arguments.length; e++) {
3975
3975
  var r = arguments[e] != null ? arguments[e] : {};
3976
- e % 2 ? zr(Object(r), !0).forEach(function(n) {
3976
+ e % 2 ? Mr(Object(r), !0).forEach(function(n) {
3977
3977
  Hu(t, n, r[n]);
3978
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : zr(Object(r)).forEach(function(n) {
3978
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : Mr(Object(r)).forEach(function(n) {
3979
3979
  Object.defineProperty(t, n, Object.getOwnPropertyDescriptor(r, n));
3980
3980
  });
3981
3981
  }
@@ -4127,7 +4127,7 @@ const rl = [{
4127
4127
  steps: rl,
4128
4128
  labels: "long"
4129
4129
  };
4130
- function Mr(t, e) {
4130
+ function zr(t, e) {
4131
4131
  var r = Object.keys(t);
4132
4132
  if (Object.getOwnPropertySymbols) {
4133
4133
  var n = Object.getOwnPropertySymbols(t);
@@ -4140,9 +4140,9 @@ function Mr(t, e) {
4140
4140
  function Cr(t) {
4141
4141
  for (var e = 1; e < arguments.length; e++) {
4142
4142
  var r = arguments[e] != null ? arguments[e] : {};
4143
- e % 2 ? Mr(Object(r), !0).forEach(function(n) {
4143
+ e % 2 ? zr(Object(r), !0).forEach(function(n) {
4144
4144
  nl(t, n, r[n]);
4145
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : Mr(Object(r)).forEach(function(n) {
4145
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : zr(Object(r)).forEach(function(n) {
4146
4146
  Object.defineProperty(t, n, Object.getOwnPropertyDescriptor(r, n));
4147
4147
  });
4148
4148
  }
@@ -4683,7 +4683,7 @@ function Al(t, e, r) {
4683
4683
  var P = /* @__PURE__ */ function() {
4684
4684
  function t() {
4685
4685
  var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = r.polyfill;
4686
- xl(this, t), typeof e == "string" && (e = [e]), this.locale = Mu(e.concat(t.getDefaultLocale()), me), typeof Intl < "u" && Intl.NumberFormat && (this.numberFormat = new Intl.NumberFormat(this.locale)), n === !1 ? (this.IntlRelativeTimeFormat = Intl.RelativeTimeFormat, this.IntlPluralRules = Intl.PluralRules) : (this.IntlRelativeTimeFormat = X, this.IntlPluralRules = X.PluralRules), this.relativeTimeFormatCache = new $r(), this.pluralRulesCache = new $r();
4686
+ xl(this, t), typeof e == "string" && (e = [e]), this.locale = zu(e.concat(t.getDefaultLocale()), me), typeof Intl < "u" && Intl.NumberFormat && (this.numberFormat = new Intl.NumberFormat(this.locale)), n === !1 ? (this.IntlRelativeTimeFormat = Intl.RelativeTimeFormat, this.IntlPluralRules = Intl.PluralRules) : (this.IntlRelativeTimeFormat = X, this.IntlPluralRules = X.PluralRules), this.relativeTimeFormatCache = new $r(), this.pluralRulesCache = new $r();
4687
4687
  }
4688
4688
  return Al(t, [{
4689
4689
  key: "format",
@@ -4722,7 +4722,7 @@ var P = /* @__PURE__ */ function() {
4722
4722
  future: d,
4723
4723
  getNextStep: !0
4724
4724
  }
4725
- ), O = Tl(D, 3), y = O[0], U = O[1], z = O[2], M = this.formatDateForStep(s, U, f, {
4725
+ ), O = Tl(D, 3), y = O[0], U = O[1], M = O[2], z = this.formatDateForStep(s, U, f, {
4726
4726
  labels: a,
4727
4727
  labelsType: l,
4728
4728
  nowLabel: g,
@@ -4732,15 +4732,15 @@ var P = /* @__PURE__ */ function() {
4732
4732
  }) || "";
4733
4733
  if (i.getTimeToNextUpdate) {
4734
4734
  var ee = Ku(s, U, {
4735
- nextStep: z,
4735
+ nextStep: M,
4736
4736
  prevStep: y,
4737
4737
  now: c,
4738
4738
  future: d,
4739
4739
  round: k
4740
4740
  });
4741
- return [M, ee];
4741
+ return [z, ee];
4742
4742
  }
4743
- return M;
4743
+ return z;
4744
4744
  }
4745
4745
  }, {
4746
4746
  key: "formatDateForStep",
@@ -5269,7 +5269,7 @@ function jl(t, e) {
5269
5269
  return !1;
5270
5270
  return !0;
5271
5271
  }
5272
- function zl(t, e) {
5272
+ function Ml(t, e) {
5273
5273
  e === void 0 && (e = jl);
5274
5274
  var r = null;
5275
5275
  function n() {
@@ -5296,7 +5296,7 @@ function Pt(t) {
5296
5296
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
5297
5297
  }, Pt(t);
5298
5298
  }
5299
- function Ml(t) {
5299
+ function zl(t) {
5300
5300
  if (ei())
5301
5301
  return Intl.DateTimeFormat.supportedLocalesOf(t)[0];
5302
5302
  }
@@ -5365,11 +5365,11 @@ function Hl(t, e) {
5365
5365
  return i.format(s);
5366
5366
  };
5367
5367
  }
5368
- const Wl = zl(Hl);
5368
+ const Wl = Ml(Hl);
5369
5369
  var pt = {};
5370
5370
  function Yl(t) {
5371
5371
  var e = t.toString();
5372
- return pt[e] ? pt[e] : pt[e] = Ml(t);
5372
+ return pt[e] ? pt[e] : pt[e] = zl(t);
5373
5373
  }
5374
5374
  function Et(t) {
5375
5375
  "@babel/helpers - typeof";
@@ -5622,27 +5622,27 @@ function mc(t) {
5622
5622
  e = ne(function() {
5623
5623
  return Jl(e);
5624
5624
  }, [e]);
5625
- var z = mi(function() {
5625
+ var M = mi(function() {
5626
5626
  var W = (F || Date.now()) - D, xe;
5627
5627
  if (r && W >= e.getTime() && (W = e.getTime(), xe = !0), a !== void 0) {
5628
- var ze = e.getTime() - a * 1e3;
5629
- W > ze && (W = ze, xe = !0);
5628
+ var Me = e.getTime() - a * 1e3;
5629
+ W > Me && (W = Me, xe = !0);
5630
5630
  }
5631
5631
  var si = U.format(e, s, {
5632
5632
  getTimeToNextUpdate: !0,
5633
5633
  now: W,
5634
5634
  future: r,
5635
5635
  round: o
5636
- }), Xt = Ue(si, 2), oi = Xt[0], Me = Xt[1];
5637
- return xe ? Me = yc : Me = d || Me || 60 * 1e3, [oi, W + Me];
5638
- }, [e, r, s, d, o, a, U, F]), M = Kt();
5639
- M.current = z;
5640
- var ee = ne(z, []), pe = Ue(ee, 2), Se = pe[0], at = pe[1], Ne = gi(Se), $e = Ue(Ne, 2), Ie = $e[0], ke = $e[1], je = Kt();
5636
+ }), Xt = Ue(si, 2), oi = Xt[0], ze = Xt[1];
5637
+ return xe ? ze = yc : ze = d || ze || 60 * 1e3, [oi, W + ze];
5638
+ }, [e, r, s, d, o, a, U, F]), z = Kt();
5639
+ z.current = M;
5640
+ var ee = ne(M, []), pe = Ue(ee, 2), Se = pe[0], at = pe[1], Ne = gi(Se), $e = Ue(Ne, 2), Ie = $e[0], ke = $e[1], je = Kt();
5641
5641
  er(function() {
5642
5642
  if (v)
5643
5643
  return je.current = uc.add({
5644
5644
  getNextValue: function() {
5645
- return M.current();
5645
+ return z.current();
5646
5646
  },
5647
5647
  setValue: ke,
5648
5648
  nextUpdateTime: at
@@ -5653,10 +5653,10 @@ function mc(t) {
5653
5653
  if (je.current)
5654
5654
  je.current.forceUpdate();
5655
5655
  else {
5656
- var W = z(), xe = Ue(W, 1), ze = xe[0];
5657
- ke(ze);
5656
+ var W = M(), xe = Ue(W, 1), Me = xe[0];
5657
+ ke(Me);
5658
5658
  }
5659
- }, [z]);
5659
+ }, [M]);
5660
5660
  var Gt = ne(function() {
5661
5661
  return Wl(y, f);
5662
5662
  }, [y, f]), ii = ne(function() {
@@ -5728,7 +5728,7 @@ function Sc(t, e) {
5728
5728
  return r;
5729
5729
  }
5730
5730
  function rt(t) {
5731
- var e = t.date, r = t.future, n = t.timeStyle, i = t.round, s = t.minTimeLeft, o = t.locale, a = t.locales, l = a === void 0 ? [] : a, c = t.formatVerboseDate, f = t.verboseDateFormat, d = t.updateInterval, g = t.tick, v = t.now, F = t.timeOffset, k = t.polyfill, D = t.tooltip, O = D === void 0 ? !0 : D, y = t.component, U = y === void 0 ? Ke : y, z = t.container, M = t.wrapperComponent, ee = t.wrapperProps, pe = Oc(t, Tc), Se = mc({
5731
+ var e = t.date, r = t.future, n = t.timeStyle, i = t.round, s = t.minTimeLeft, o = t.locale, a = t.locales, l = a === void 0 ? [] : a, c = t.formatVerboseDate, f = t.verboseDateFormat, d = t.updateInterval, g = t.tick, v = t.now, F = t.timeOffset, k = t.polyfill, D = t.tooltip, O = D === void 0 ? !0 : D, y = t.component, U = y === void 0 ? Ke : y, M = t.container, z = t.wrapperComponent, ee = t.wrapperProps, pe = Oc(t, Tc), Se = mc({
5732
5732
  date: e,
5733
5733
  future: r,
5734
5734
  timeStyle: n,
@@ -5747,7 +5747,7 @@ function rt(t) {
5747
5747
  date: at,
5748
5748
  verboseDate: Ne,
5749
5749
  tooltip: O
5750
- }, pe), $e), ke = M || z;
5750
+ }, pe), $e), ke = z || M;
5751
5751
  return ke ? /* @__PURE__ */ De.createElement(ke, tt({}, ee, {
5752
5752
  verboseDate: Ne
5753
5753
  }), Ie) : Ie;
@@ -5934,10 +5934,12 @@ const kc = di.div`
5934
5934
  {
5935
5935
  style: {
5936
5936
  position: "relative",
5937
- width: 52,
5937
+ minWidth: 52,
5938
5938
  height: 32,
5939
5939
  display: "flex",
5940
- alignItems: "center"
5940
+ alignItems: "center",
5941
+ justifyContent: "flex-end",
5942
+ paddingRight: 12
5941
5943
  },
5942
5944
  children: [
5943
5945
  /* @__PURE__ */ _(
@@ -5946,6 +5948,10 @@ const kc = di.div`
5946
5948
  className: "notification-archive-button",
5947
5949
  size: "small",
5948
5950
  onClick: (y) => (t.markAsArchived(v), y.preventDefault(), y.stopPropagation(), !1),
5951
+ style: {
5952
+ position: "absolute",
5953
+ left: 0
5954
+ },
5949
5955
  children: /* @__PURE__ */ _(Ai, { fontSize: "small" })
5950
5956
  }
5951
5957
  ),
@@ -5956,12 +5962,7 @@ const kc = di.div`
5956
5962
  color: "error",
5957
5963
  className: "notification-highlight",
5958
5964
  style: {
5959
- visibility: d ? "hidden" : "visible",
5960
- marginRight: 0,
5961
- marginLeft: 12,
5962
- marginTop: 6,
5963
- bottom: 2,
5964
- right: 0
5965
+ visibility: d ? "hidden" : "visible"
5965
5966
  }
5966
5967
  }
5967
5968
  )
@@ -1,5 +1,5 @@
1
1
  import * as P from "react";
2
- import { g as b, a as h, s as g, m as w, u as T, c as $, b as u, e as f, P as a, f as x } from "./DefaultPropsProvider.js";
2
+ import { g as b, e as h, s as g, m as w, u as T, c as $, a as u, f, P as a, b as x } from "./DefaultPropsProvider.js";
3
3
  import { u as O } from "./useTheme.js";
4
4
  import { jsx as C } from "react/jsx-runtime";
5
5
  import { c as N } from "./ButtonBase.js";
@@ -1,14 +1,14 @@
1
1
  import * as p from "react";
2
- import { g as ge, a as ve, s as te, u as ye, c as Y, P as e, f as be } from "./DefaultPropsProvider.js";
3
- import { i as Te } from "./Inbox.js";
4
- import { u as X, r as Ee, c as Oe, e as Re } from "./ButtonBase.js";
2
+ import { g as ge, e as ve, s as te, u as ye, c as Y, P as e, b as be } from "./DefaultPropsProvider.js";
3
+ import { i as Te } from "./List.js";
4
+ import { a as X, r as Ee, c as Oe, e as Re } from "./ButtonBase.js";
5
5
  import { jsx as z } from "react/jsx-runtime";
6
- import { M as we, o as J } from "./NotificationPreferencesPopup.js";
6
+ import { M as we, o as J } from "./Modal.js";
7
7
  import { P as xe } from "./Paper.js";
8
8
  import { o as K, H as Q } from "./Portal.js";
9
9
  import { u as Ce } from "./resolveComponentProps.js";
10
10
  import { i as Me } from "./integerPropType.js";
11
- import { G as Ne } from "./InboxHeader.js";
11
+ import { G as Ne } from "./Grow.js";
12
12
  function je(t, o = 166) {
13
13
  let n;
14
14
  function g(...R) {
@@ -447,5 +447,7 @@ process.env.NODE_ENV !== "production" && (Ue.propTypes = {
447
447
  TransitionProps: e.object
448
448
  });
449
449
  export {
450
- Ue as P
450
+ Ue as P,
451
+ Se as a,
452
+ je as d
451
453
  };
@@ -1,7 +1,7 @@
1
1
  import { P as c } from "./DefaultPropsProvider.js";
2
- import { c as m, a as f } from "./ButtonBase.js";
2
+ import { c as m, b as f } from "./ButtonBase.js";
3
3
  import * as u from "react";
4
- import { r as P } from "./utils.js";
4
+ import { a as P } from "./utils.js";
5
5
  import { u as h, s as d } from "./resolveComponentProps.js";
6
6
  function v(e) {
7
7
  const {