@stack-spot/portal-layout 2.32.4 → 2.32.5-beta.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.
Files changed (54) hide show
  1. package/CHANGELOG.md +140 -0
  2. package/dist/Layout.d.ts +6 -7
  3. package/dist/Layout.d.ts.map +1 -1
  4. package/dist/Layout.js +30 -11
  5. package/dist/Layout.js.map +1 -1
  6. package/dist/LayoutOverlayManager.d.ts +77 -11
  7. package/dist/LayoutOverlayManager.d.ts.map +1 -1
  8. package/dist/LayoutOverlayManager.js +159 -46
  9. package/dist/LayoutOverlayManager.js.map +1 -1
  10. package/dist/components/Dialog.d.ts +1 -1
  11. package/dist/components/Dialog.d.ts.map +1 -1
  12. package/dist/components/NotificationCenter/NotificationsPanelFooter.js +1 -1
  13. package/dist/components/NotificationCenter/NotificationsPanelFooter.js.map +1 -1
  14. package/dist/components/NotificationCenter/dictionary.d.ts +1 -1
  15. package/dist/components/NotificationCenter/dictionary.d.ts.map +1 -1
  16. package/dist/components/NotificationCenter/dictionary.js +2 -2
  17. package/dist/components/NotificationCenter/dictionary.js.map +1 -1
  18. package/dist/components/OverlayContent.js +2 -2
  19. package/dist/components/error/ErrorBoundary.d.ts.map +1 -1
  20. package/dist/components/error/SilentErrorBoundary.d.ts.map +1 -1
  21. package/dist/components/menu/MenuSections.d.ts.map +1 -1
  22. package/dist/components/menu/MenuSections.js +17 -7
  23. package/dist/components/menu/MenuSections.js.map +1 -1
  24. package/dist/components/menu/types.d.ts +7 -0
  25. package/dist/components/menu/types.d.ts.map +1 -1
  26. package/dist/components/tour/StepNavigation.d.ts.map +1 -1
  27. package/dist/components/tour/StepNavigation.js +2 -1
  28. package/dist/components/tour/StepNavigation.js.map +1 -1
  29. package/dist/dictionary.js +2 -2
  30. package/dist/dictionary.js.map +1 -1
  31. package/dist/elements.d.ts +1 -0
  32. package/dist/elements.d.ts.map +1 -1
  33. package/dist/elements.js +1 -0
  34. package/dist/elements.js.map +1 -1
  35. package/dist/index.d.ts +1 -0
  36. package/dist/index.d.ts.map +1 -1
  37. package/dist/index.js +1 -0
  38. package/dist/index.js.map +1 -1
  39. package/dist/layout.css +31 -4
  40. package/package.json +6 -4
  41. package/readme.md +0 -1
  42. package/src/Layout.tsx +70 -22
  43. package/src/LayoutOverlayManager.tsx +206 -54
  44. package/src/components/Dialog.tsx +1 -1
  45. package/src/components/NotificationCenter/NotificationsPanelFooter.tsx +1 -1
  46. package/src/components/NotificationCenter/dictionary.ts +2 -2
  47. package/src/components/OverlayContent.tsx +2 -2
  48. package/src/components/menu/MenuSections.tsx +19 -8
  49. package/src/components/menu/types.ts +7 -0
  50. package/src/components/tour/StepNavigation.tsx +3 -1
  51. package/src/dictionary.ts +2 -2
  52. package/src/elements.ts +1 -0
  53. package/src/index.ts +1 -0
  54. package/src/layout.css +31 -4
@@ -2,6 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
2
2
  /* eslint-disable react-hooks/rules-of-hooks */
3
3
  import { Button } from '@citric/core';
4
4
  import { focusAccessibleElement, focusFirstChild } from '@stack-spot/portal-components';
5
+ import { last } from 'lodash';
5
6
  import { useLayoutEffect, useState } from 'react';
6
7
  import { Dialog } from './components/Dialog.js';
7
8
  import { CLOSE_OVERLAY_ID, OverlayContent } from './components/OverlayContent.js';
@@ -32,12 +33,6 @@ class LayoutOverlayManager {
32
33
  writable: true,
33
34
  value: void 0
34
35
  });
35
- Object.defineProperty(this, "onModalClose", {
36
- enumerable: true,
37
- configurable: true,
38
- writable: true,
39
- value: void 0
40
- });
41
36
  /**
42
37
  * Last element with focus before an overlay is shown.
43
38
  */
@@ -47,6 +42,18 @@ class LayoutOverlayManager {
47
42
  writable: true,
48
43
  value: null
49
44
  });
45
+ Object.defineProperty(this, "modals", {
46
+ enumerable: true,
47
+ configurable: true,
48
+ writable: true,
49
+ value: []
50
+ });
51
+ Object.defineProperty(this, "panels", {
52
+ enumerable: true,
53
+ configurable: true,
54
+ writable: true,
55
+ value: []
56
+ });
50
57
  /**
51
58
  * Closes the toaster with the specified id.
52
59
  * @param id the id of the toaster to close.
@@ -121,11 +128,17 @@ class LayoutOverlayManager {
121
128
  if (!this.elements)
122
129
  this.setupElements();
123
130
  }, []);
124
- const [modal, setModal] = useState();
125
- const [rightPanel, setRightPanel] = useState();
131
+ const [modal, setModal] = useState([]);
132
+ const [rightPanel, setRightPanel] = useState([]);
126
133
  const [bottomDialog, setBottomDialog] = useState();
127
- this.setContent.modal = setModal;
128
- this.setContent.rightPanel = setRightPanel;
134
+ this.setContent.modal = (content) => {
135
+ this.modals = content;
136
+ setModal(content);
137
+ };
138
+ this.setContent.rightPanel = (content) => {
139
+ this.panels = content;
140
+ setRightPanel(content);
141
+ };
129
142
  this.setContent.bottomDialog = setBottomDialog;
130
143
  return { modal, rightPanel, bottomDialog };
131
144
  }
@@ -196,6 +209,18 @@ class LayoutOverlayManager {
196
209
  isModalOpen() {
197
210
  return this.elements?.modal?.classList.contains('visible') ?? false;
198
211
  }
212
+ /**
213
+ * @returns the number of modals currently tracked.
214
+ */
215
+ getNumberOfOpenModals() {
216
+ return this.modals.length;
217
+ }
218
+ /**
219
+ * @returns the number of right panels currently tracked.
220
+ */
221
+ getNumberOfOpenRightPanels() {
222
+ return this.panels.length;
223
+ }
199
224
  /**
200
225
  * @returns true if the right panel is currently opened. False otherwise.
201
226
  */
@@ -217,13 +242,17 @@ class LayoutOverlayManager {
217
242
  * @param content a react element with the modal content.
218
243
  * @param options the modal options {@link CustomModalOptions}.
219
244
  */
220
- showCustomModal(content, { size = 'medium', onClose, ignoreFirstFocusOnCloseButton = true } = {}) {
245
+ showCustomModal(content, { size = 'medium', onClose, ignoreFirstFocusOnCloseButton = true, stack = false, id } = {}) {
221
246
  if (!this.elements?.modal)
222
247
  throw new ElementNotFound('modal', elementIds.modal);
223
248
  if (!this.setContent.modal)
224
249
  throw new LayoutError('unable to show modal, because it has not been setup yet.');
225
- this.onModalClose = onClose;
226
- this.setContent.modal(content);
250
+ const modal = { element: content, onClose, size, stack, id };
251
+ const currentModalSize = last(this.modals)?.size;
252
+ this.setContent.modal(stack ? [...this.modals, modal] : [modal]);
253
+ // we should remove the previous size, if any, before showing the modal
254
+ if (currentModalSize)
255
+ this.elements.modal.classList.remove(currentModalSize);
227
256
  this.showOverlay(this.elements.modal, [size], true, true, ignoreFirstFocusOnCloseButton);
228
257
  }
229
258
  /**
@@ -234,17 +263,26 @@ class LayoutOverlayManager {
234
263
  *
235
264
  * @param options the modal options: {@link OverlayContentProps} & { size: {@link ModalSize} }.
236
265
  */
237
- showModal({ size, ignoreFirstFocusOnCloseButton, ...props }) {
238
- this.showCustomModal(_jsx(OverlayContent, { ...props, onClose: () => this.closeModal(), type: "modal" }), { size, onClose: props.onClose, ignoreFirstFocusOnCloseButton });
266
+ showModal({ size, ignoreFirstFocusOnCloseButton, stack, onGoBack, id, ...props }) {
267
+ const handleBack = onGoBack ?? ((stack && this.modals.length >= 1) ? () => this.popModal() : undefined);
268
+ this.showCustomModal(_jsx(OverlayContent, { ...props, onGoBack: handleBack, onClose: () => this.closeModal(), type: "modal" }), { size, onClose: props.onClose, ignoreFirstFocusOnCloseButton, stack, id });
239
269
  }
240
270
  showDialog({ ignoreFirstFocusOnCloseButton = false, options, size = 'small' }) {
241
271
  let dialogResult = false;
242
272
  return new Promise((resolve, reject) => {
243
273
  try {
244
- this.showCustomModal(_jsx(Dialog, { ...options, onCancel: () => this.closeModal(), onConfirm: () => {
245
- dialogResult = true;
246
- this.closeModal();
247
- } }), { size, onClose: () => resolve(dialogResult), ignoreFirstFocusOnCloseButton });
274
+ if (options.type === 'panel') {
275
+ this.showCustomRightPanel(_jsx(Dialog, { ...options, onCancel: () => this.closeModal(), onConfirm: () => {
276
+ dialogResult = true;
277
+ this.closeModal();
278
+ } }), { size: size, onClose: () => resolve(dialogResult) });
279
+ }
280
+ else {
281
+ this.showCustomModal(_jsx(Dialog, { ...options, onCancel: () => this.closeModal(), onConfirm: () => {
282
+ dialogResult = true;
283
+ this.closeModal();
284
+ } }), { size, onClose: () => resolve(dialogResult), ignoreFirstFocusOnCloseButton });
285
+ }
248
286
  }
249
287
  catch (error) {
250
288
  reject(error);
@@ -317,16 +355,19 @@ class LayoutOverlayManager {
317
355
  * @param content a react element with the modal content.
318
356
  * @param options the modal options {@link CustomModalOptions}.
319
357
  */
320
- showCustomRightPanel(content, { size = 'medium', onClose } = {}) {
358
+ showCustomRightPanel(content, { size = 'medium', onClose, ignoreFirstFocusOnCloseButton = true, stack = false, id } = {}) {
321
359
  if (!this.elements?.rightPanel)
322
360
  throw new ElementNotFound('right panel overlay', elementIds.rightPanel);
323
361
  if (!this.setContent.rightPanel)
324
362
  throw new LayoutError('unable to show right panel overlay, because it has not been setup yet.');
325
- this.onModalClose = onClose;
326
- this.setContent.rightPanel(content);
327
- this.elements?.rightPanel.classList.add(size);
363
+ const panel = { element: content, onClose, size, stack, id };
364
+ const currentPanelSize = last(this.modals)?.size;
365
+ this.setContent.rightPanel(stack ? [...this.panels, panel] : [panel]);
366
+ // we should remove the previous size, if any, before showing the panel
367
+ if (currentPanelSize)
368
+ this.elements.rightPanel.classList.remove(currentPanelSize);
328
369
  setTimeout(() => {
329
- this.showOverlay(this.elements?.rightPanel, [], true, true);
370
+ this.showOverlay(this.elements?.rightPanel, [size], true, true, ignoreFirstFocusOnCloseButton);
330
371
  });
331
372
  }
332
373
  /**
@@ -337,8 +378,9 @@ class LayoutOverlayManager {
337
378
  *
338
379
  * @param options the modal options: {@link OverlayContentProps} & { size: {@link ModalSize} }.
339
380
  */
340
- showRightPanel({ size, ...props }) {
341
- this.showCustomRightPanel(_jsx(OverlayContent, { ...props, onClose: () => this.closeRightPanel(), type: "panel" }), { size, onClose: props.onClose });
381
+ showRightPanel({ size, ignoreFirstFocusOnCloseButton, stack, onGoBack, id, ...props }) {
382
+ const handleBack = onGoBack ?? ((stack && this.panels.length >= 1) ? () => this.popRightPanel() : undefined);
383
+ this.showCustomRightPanel(_jsx(OverlayContent, { ...props, onGoBack: handleBack, onClose: () => this.closeRightPanel(), type: "panel" }), { size, onClose: props.onClose, ignoreFirstFocusOnCloseButton, stack, id });
342
384
  }
343
385
  /*
344
386
  * Focus the element that had focus before the last overlay was opened. If the element is not visible anymore, another one that makes
@@ -349,58 +391,129 @@ class LayoutOverlayManager {
349
391
  this.lastActiveElement = null;
350
392
  }
351
393
  /**
352
- * Closes the modal if it's open.
394
+ * Closes all opened modals.
353
395
  * @param runCloseListener whether or not to run the function `onClose` passed to `showModal` or `showCustomModal`. Defaults to true.
354
396
  */
355
397
  closeModal(runCloseListener = true) {
356
398
  this.elements?.modal?.classList.remove('visible');
357
- this.elements?.backdrop?.setAttribute('class', '');
358
- if (runCloseListener && this.onModalClose) {
359
- const onClose = this.onModalClose;
360
- // setting it to undefined before running it prevents nested calls to closeModal from generating infinite loops.
361
- this.onModalClose = undefined;
362
- onClose();
399
+ const shouldHideBackdrop = this.panels.length === 0;
400
+ if (shouldHideBackdrop)
401
+ this.elements?.backdrop?.setAttribute('class', '');
402
+ if (runCloseListener) {
403
+ this.modals.forEach((modal) => {
404
+ const onClose = modal.onClose;
405
+ // setting it to undefined before running it prevents nested calls to closeModal from generating infinite loops.
406
+ modal.onClose = undefined;
407
+ onClose?.();
408
+ });
363
409
  }
364
410
  const animationMS = parseFloat(valueOfLayoutVar('--modal-animation-duration')) * 1000;
365
411
  setTimeout(() => {
366
- if (this.elements?.backdrop?.classList.contains('visible')) {
412
+ if (shouldHideBackdrop && this.elements?.backdrop?.classList.contains('visible')) {
367
413
  // eslint-disable-next-line no-console
368
414
  console.warn(multipleCallsWarning('modal', animationMS));
369
415
  this.elements?.modal?.classList.remove('visible');
370
416
  }
371
417
  if (this.setContent.modal)
372
- this.setContent.modal(undefined);
373
- this.hideOverlay(this.elements?.modal);
418
+ this.setContent.modal([]);
419
+ if (shouldHideBackdrop)
420
+ this.hideOverlay(this.elements?.modal);
374
421
  this.focusLastActiveElement();
375
422
  }, animationMS);
376
423
  }
377
424
  /**
378
- * Closes the right panel if it's open.
425
+ * Closes the top-most modal in the stack. Will behave like `closeModal` if only a single modal exists in the stack.
426
+ * @param amount number of modals to pop. Defaults to 1.
427
+ * @param runCloseListener whether or not to run the function `onClose` passed to `showModal` or `showCustomModal`. Defaults to true.
428
+ */
429
+ popModal(amount = 1, runCloseListener = true) {
430
+ if (amount <= 0)
431
+ return;
432
+ if (this.modals.length <= amount)
433
+ return this.closeModal(runCloseListener);
434
+ for (let i = 0; i < amount; i++) {
435
+ const modalToClose = this.modals.pop(); // "!": because of the second "if", the array can't have less than "amount + 1" elements
436
+ if (runCloseListener)
437
+ modalToClose.onClose?.();
438
+ this.elements?.modal?.classList.remove(modalToClose.size);
439
+ }
440
+ const topModal = last(this.modals); // "!": because of the second "if", the array can't have less than "amount + 1" elements
441
+ this.elements?.modal?.classList.add(topModal.size);
442
+ this.setContent.modal?.([...this.modals]);
443
+ }
444
+ /**
445
+ * Close all modals in the stack of modal until the modal with the given id is found. If no modal with the given id is found, nothing
446
+ * happens.
447
+ * @param id the id of the modal to pop to.
448
+ * @param inclusive when true, the modal with the given id is also popped. Defaults to false.
449
+ */
450
+ popModalTo(id, inclusive = false) {
451
+ const index = this.modals.findIndex(m => m.id === id);
452
+ if (index >= 0)
453
+ this.popModal(this.modals.length - index - (inclusive ? 0 : 1));
454
+ }
455
+ /**
456
+ * Closes all opened right panels.
379
457
  * @param runCloseListener whether or not to run the function `onClose` passed to `showRightPanel` or `showCustomRightPanel`. Defaults to
380
458
  * true.
381
459
  */
382
460
  closeRightPanel(runCloseListener = true) {
383
461
  this.elements?.rightPanel?.classList.remove('visible');
384
- this.elements?.backdrop?.setAttribute('class', '');
385
- if (runCloseListener && this.onModalClose) {
386
- const onClose = this.onModalClose;
387
- // setting it to undefined before running it prevents nested calls to closeRightPanel from generating infinite loops.
388
- this.onModalClose = undefined;
389
- onClose();
462
+ const shouldHideBackdrop = this.modals.length === 0;
463
+ if (shouldHideBackdrop)
464
+ this.elements?.backdrop?.setAttribute('class', '');
465
+ if (runCloseListener) {
466
+ this.panels.forEach((panel) => {
467
+ const onClose = panel.onClose;
468
+ // setting it to undefined before running it prevents nested calls to closeRightPanel from generating infinite loops.
469
+ panel.onClose = undefined;
470
+ onClose?.();
471
+ });
390
472
  }
391
473
  const animationMS = parseFloat(valueOfLayoutVar('--right-panel-animation-duration')) * 1000;
392
474
  setTimeout(() => {
393
- if (this.elements?.backdrop?.classList.contains('visible')) {
475
+ if (shouldHideBackdrop && this.elements?.backdrop?.classList.contains('visible')) {
394
476
  // eslint-disable-next-line no-console
395
477
  console.warn(multipleCallsWarning('rightPanel', animationMS));
396
478
  this.elements?.rightPanel?.classList.remove('visible');
397
479
  }
398
480
  if (this.setContent.rightPanel)
399
- this.setContent.rightPanel(undefined);
400
- this.hideOverlay(this.elements?.rightPanel);
481
+ this.setContent.rightPanel([]);
482
+ if (shouldHideBackdrop)
483
+ this.hideOverlay(this.elements?.rightPanel);
401
484
  this.focusLastActiveElement();
402
485
  }, animationMS);
403
486
  }
487
+ /**
488
+ * Closes the top-most modal in the stack. Will behave like `closeModal` if only a single modal exists in the stack.
489
+ * @param runCloseListener whether or not to run the function `onClose` passed to `showModal` or `showCustomModal`. Defaults to true.
490
+ */
491
+ popRightPanel(amount = 1, runCloseListener = true) {
492
+ if (amount <= 0)
493
+ return;
494
+ if (this.panels.length <= amount)
495
+ return this.closeRightPanel(runCloseListener);
496
+ for (let i = 0; i < amount; i++) {
497
+ const panelToClose = this.panels.pop(); // "!": because of the second "if", the array can't have less than "amount + 1" elements
498
+ if (runCloseListener)
499
+ panelToClose.onClose?.();
500
+ this.elements?.rightPanel?.classList.remove(panelToClose.size);
501
+ }
502
+ const topPanel = last(this.panels); // "!": because of the second "if", the array can't have less than "amount + 1" elements
503
+ this.elements?.rightPanel?.classList.add(topPanel.size);
504
+ this.setContent.rightPanel?.([...this.panels]);
505
+ }
506
+ /**
507
+ * Close all right panels in the stack of panels until the panel with the given id is found. If no panel with the given id is found,
508
+ * nothing happens.
509
+ * @param id the id of the right panel to pop to.
510
+ * @param inclusive when true, the right panel with the given id is also popped. Defaults to false.
511
+ */
512
+ popRightPanelTo(id, inclusive = false) {
513
+ const index = this.panels.findIndex(m => m.id === id);
514
+ if (index >= 0)
515
+ this.popRightPanel(this.panels.length - index - (inclusive ? 0 : 1));
516
+ }
404
517
  /**
405
518
  * Closes the bottom dialog if it's open.
406
519
  */
@@ -1 +1 @@
1
- {"version":3,"file":"LayoutOverlayManager.js","sourceRoot":"","sources":["../src/LayoutOverlayManager.tsx"],"names":[],"mappings":";AAAA,+CAA+C;AAE/C,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AACrC,OAAO,EAAE,sBAAsB,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AACvF,OAAO,EAAgB,eAAe,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAC/D,OAAO,EAAE,MAAM,EAAiB,MAAM,qBAAqB,CAAA;AAC3D,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAuB,MAAM,6BAA6B,CAAA;AACnG,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAC5C,OAAO,EAAkB,UAAU,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAC1E,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AACvD,OAAO,EAA+C,iBAAiB,EAAE,WAAW,IAAI,gBAAgB,EAAE,MAAM,WAAW,CAAA;AAE3H,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AA8C1C,SAAS,oBAAoB,CAAC,IAA4B,EAAE,MAAc;IACxE,OAAO;sDAC6C,IAAI,sCAAsC,IAAI,eAAe,MAAM;;;;GAItH,CAAC,OAAO,CAAC,WAAW,EAAE,GAAG,CAAC,CAAA;AAC7B,CAAC;AAED,MAAM,oBAAoB;IAA1B;QAEU;;;;mBAAmC,EAAE;WAAA;QACrC;;;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AI,CAAC,UAAU,CAAC,UAAU,EAAE,CAAC,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAA;IAChD,CAAC;IAED;;;;;OAKG;IACH,eAAe,CAAC,EAAU,EAAE,SAAS,GAAG,KAAK;QAC3C,MAAM,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,CAAA;QACrD,IAAI,KAAK,IAAI,CAAC;YAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,KAAK,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;IACtF,CAAC;IAED;;OAEG;IACH,iBAAiB;QACf,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAA;IAC/C,CAAC;IAED;;;;OAIG;IACH,aAAa,CAAC,OAAoB;QAChC,OAAO,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE,KAAK,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAA;IAClD,CAAC;IAED;;;;OAIG;IACH,kBAAkB,CAAC,OAAoB;QACrC,OAAO,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE,UAAU,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAA;IACvD,CAAC;IAmDD,WAAW,CAAC,OAAY;QACtB,OAAO,gBAAgB,CAAC,OAAO,CAAC,CAAA;IAClC,CAAC;CAOF;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,IAAI,oBAAoB,EAAE,CAAA"}
@@ -66,7 +66,7 @@ interface Props extends Omit<DialogOptions, 'message'> {
66
66
  /**
67
67
  * Function to run when the confirm button is clicked.
68
68
  */
69
- onConfirm: () => void;
69
+ onConfirm?: () => void;
70
70
  /**
71
71
  * Function to run when the cancel button is clicked.
72
72
  */
@@ -1 +1 @@
1
- {"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../src/components/Dialog.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAE1D,OAAO,EAAE,SAAS,EAAY,MAAM,OAAO,CAAA;AAI3C,UAAU,UAAU;IAClB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,UAAU,CAAC;IACzC;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IACzB;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAC;IAC1D;;;OAGG;IACH,WAAW,CAAC,EAAE,eAAe,CAAC;CAC/B;AAED,UAAU,KAAM,SAAQ,IAAI,CAAC,aAAa,EAAE,SAAS,CAAC;IACpD;;OAEG;IACH,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB;;OAEG;IACH,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB;AASD;;;;GAIG;AACH,eAAO,MAAM,MAAM,GAAI,gIAapB,KAAK,4CAsCP,CAAA"}
1
+ {"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../src/components/Dialog.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAE1D,OAAO,EAAE,SAAS,EAAY,MAAM,OAAO,CAAA;AAI3C,UAAU,UAAU;IAClB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,UAAU,CAAC;IACzC;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IACzB;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAC;IAC1D;;;OAGG;IACH,WAAW,CAAC,EAAE,eAAe,CAAC;CAC/B;AAED,UAAU,KAAM,SAAQ,IAAI,CAAC,aAAa,EAAE,SAAS,CAAC;IACpD;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB;;OAEG;IACH,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB;AASD;;;;GAIG;AACH,eAAO,MAAM,MAAM,GAAI,gIAapB,KAAK,4CAsCP,CAAA"}
@@ -7,6 +7,6 @@ export const NotificationPanelFooter = ({ onClose }) => {
7
7
  const t = useNotificationsDictionary();
8
8
  const controller = useNotificationController();
9
9
  const Link = useAnchorTag();
10
- return (_jsx(Button, { as: Link, onClick: onClose, size: "sm", colorScheme: "inverse", appearance: "text", className: "see-all", href: controller.config.notificationsPath, children: _jsx(Text, { appearance: "microtext1", children: t.seeAll }) }));
10
+ return (_jsx(Button, { as: Link, onClick: onClose, size: "sm", colorScheme: "inverse", appearance: "text", className: "see-all", href: controller.config.notificationsPath, children: _jsx(Text, { appearance: "microtext1", children: t.viewAll }) }));
11
11
  };
12
12
  //# sourceMappingURL=NotificationsPanelFooter.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NotificationsPanelFooter.js","sourceRoot":"","sources":["../../../src/components/NotificationCenter/NotificationsPanelFooter.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAA;AACnE,OAAO,EAAE,yBAAyB,EAAE,MAAM,6CAA6C,CAAA;AACvF,OAAO,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAA;AAEzD,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,EAAE,OAAO,EAA2B,EAAE,EAAE;IAC9E,MAAM,CAAC,GAAG,0BAA0B,EAAE,CAAA;IACtC,MAAM,UAAU,GAAG,yBAAyB,EAAE,CAAA;IAC9C,MAAM,IAAI,GAAG,YAAY,EAAE,CAAA;IAC3B,OAAO,CACL,KAAC,MAAM,IACL,EAAE,EAAE,IAAI,EACR,OAAO,EAAE,OAAO,EAChB,IAAI,EAAC,IAAI,EACT,WAAW,EAAC,SAAS,EACrB,UAAU,EAAC,MAAM,EACjB,SAAS,EAAC,SAAS,EACnB,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,iBAAiB,YAEzC,KAAC,IAAI,IAAC,UAAU,EAAC,YAAY,YAC1B,CAAC,CAAC,MAAM,GACJ,GACA,CACV,CAAA;AACH,CAAC,CAAA"}
1
+ {"version":3,"file":"NotificationsPanelFooter.js","sourceRoot":"","sources":["../../../src/components/NotificationCenter/NotificationsPanelFooter.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAA;AACnE,OAAO,EAAE,yBAAyB,EAAE,MAAM,6CAA6C,CAAA;AACvF,OAAO,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAA;AAEzD,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,EAAE,OAAO,EAA2B,EAAE,EAAE;IAC9E,MAAM,CAAC,GAAG,0BAA0B,EAAE,CAAA;IACtC,MAAM,UAAU,GAAG,yBAAyB,EAAE,CAAA;IAC9C,MAAM,IAAI,GAAG,YAAY,EAAE,CAAA;IAC3B,OAAO,CACL,KAAC,MAAM,IACL,EAAE,EAAE,IAAI,EACR,OAAO,EAAE,OAAO,EAChB,IAAI,EAAC,IAAI,EACT,WAAW,EAAC,SAAS,EACrB,UAAU,EAAC,MAAM,EACjB,SAAS,EAAC,SAAS,EACnB,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,iBAAiB,YAEzC,KAAC,IAAI,IAAC,UAAU,EAAC,YAAY,YAC1B,CAAC,CAAC,OAAO,GACL,GACA,CACV,CAAA;AACH,CAAC,CAAA"}
@@ -1,2 +1,2 @@
1
- export declare const useNotificationsDictionary: () => Record<"close" | "notifications" | "ALL.ariaLabel" | "UNREAD.ariaLabel" | "HIGH.ariaLabel" | "MEDIUM.ariaLabel" | "LOW.ariaLabel" | "ALL.label" | "UNREAD.label" | "HIGH.label" | "MEDIUM.label" | "LOW.label" | "seeAll" | "openNotifications" | "hasUnread" | "loadingNotifications" | "tour", string>;
1
+ export declare const useNotificationsDictionary: () => Record<"close" | "notifications" | "ALL.ariaLabel" | "UNREAD.ariaLabel" | "HIGH.ariaLabel" | "MEDIUM.ariaLabel" | "LOW.ariaLabel" | "ALL.label" | "UNREAD.label" | "HIGH.label" | "MEDIUM.label" | "LOW.label" | "viewAll" | "openNotifications" | "hasUnread" | "loadingNotifications" | "tour", string>;
2
2
  //# sourceMappingURL=dictionary.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dictionary.d.ts","sourceRoot":"","sources":["../../../src/components/NotificationCenter/dictionary.ts"],"names":[],"mappings":"AA2CA,eAAO,MAAM,0BAA0B,gTAAiC,CAAA"}
1
+ {"version":3,"file":"dictionary.d.ts","sourceRoot":"","sources":["../../../src/components/NotificationCenter/dictionary.ts"],"names":[],"mappings":"AA2CA,eAAO,MAAM,0BAA0B,iTAAiC,CAAA"}
@@ -12,7 +12,7 @@ const dictionary = {
12
12
  'HIGH.label': 'High',
13
13
  'MEDIUM.label': 'Medium',
14
14
  'LOW.label': 'Low',
15
- seeAll: 'See all notifications',
15
+ viewAll: 'View all notifications',
16
16
  openNotifications: 'View notifications',
17
17
  hasUnread: 'Has Unread notifications',
18
18
  close: 'Close',
@@ -31,7 +31,7 @@ const dictionary = {
31
31
  'HIGH.label': 'Alto',
32
32
  'MEDIUM.label': 'Médio',
33
33
  'LOW.label': 'Baixo',
34
- seeAll: 'Ver todas as notificações',
34
+ viewAll: 'Ver todas as notificações',
35
35
  openNotifications: 'Visualizar notificações',
36
36
  hasUnread: 'Existem notificações não lidas',
37
37
  close: 'Fechar',
@@ -1 +1 @@
1
- {"version":3,"file":"dictionary.js","sourceRoot":"","sources":["../../../src/components/NotificationCenter/dictionary.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAEvE,MAAM,UAAU,GAAG;IACjB,EAAE,EAAE;QACF,aAAa,EAAE,eAAe;QAC9B,eAAe,EAAE,wBAAwB;QACzC,kBAAkB,EAAE,2BAA2B;QAC/C,gBAAgB,EAAE,6BAA6B;QAC/C,kBAAkB,EAAE,4CAA4C;QAChE,eAAe,EAAE,yCAAyC;QAC1D,WAAW,EAAE,KAAK;QAClB,cAAc,EAAE,QAAQ;QACxB,YAAY,EAAE,MAAM;QACpB,cAAc,EAAE,QAAQ;QACxB,WAAW,EAAE,KAAK;QAClB,MAAM,EAAE,uBAAuB;QAC/B,iBAAiB,EAAE,oBAAoB;QACvC,SAAS,EAAE,0BAA0B;QACrC,KAAK,EAAE,OAAO;QACd,oBAAoB,EAAE,2FAA2F;QACjH,IAAI,EAAE,+IAA+I;KACtJ;IACD,EAAE,EAAE;QACF,aAAa,EAAE,cAAc;QAC7B,eAAe,EAAE,+BAA+B;QAChD,kBAAkB,EAAE,gCAAgC;QACpD,gBAAgB,EAAE,+BAA+B;QACjD,kBAAkB,EAAE,4CAA4C;QAChE,eAAe,EAAE,4CAA4C;QAC7D,WAAW,EAAE,OAAO;QACpB,cAAc,EAAE,WAAW;QAC3B,YAAY,EAAE,MAAM;QACpB,cAAc,EAAE,OAAO;QACvB,WAAW,EAAE,OAAO;QACpB,MAAM,EAAE,2BAA2B;QACnC,iBAAiB,EAAE,yBAAyB;QAC5C,SAAS,EAAE,gCAAgC;QAC3C,KAAK,EAAE,QAAQ;QACf,oBAAoB,EAAE,sFAAsF;QAC5G,IAAI,EAAE,2JAA2J;KAClK;CACmB,CAAA;AAEtB,MAAM,CAAC,MAAM,0BAA0B,GAAG,GAAG,EAAE,CAAC,YAAY,CAAC,UAAU,CAAC,CAAA"}
1
+ {"version":3,"file":"dictionary.js","sourceRoot":"","sources":["../../../src/components/NotificationCenter/dictionary.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAEvE,MAAM,UAAU,GAAG;IACjB,EAAE,EAAE;QACF,aAAa,EAAE,eAAe;QAC9B,eAAe,EAAE,wBAAwB;QACzC,kBAAkB,EAAE,2BAA2B;QAC/C,gBAAgB,EAAE,6BAA6B;QAC/C,kBAAkB,EAAE,4CAA4C;QAChE,eAAe,EAAE,yCAAyC;QAC1D,WAAW,EAAE,KAAK;QAClB,cAAc,EAAE,QAAQ;QACxB,YAAY,EAAE,MAAM;QACpB,cAAc,EAAE,QAAQ;QACxB,WAAW,EAAE,KAAK;QAClB,OAAO,EAAE,wBAAwB;QACjC,iBAAiB,EAAE,oBAAoB;QACvC,SAAS,EAAE,0BAA0B;QACrC,KAAK,EAAE,OAAO;QACd,oBAAoB,EAAE,2FAA2F;QACjH,IAAI,EAAE,+IAA+I;KACtJ;IACD,EAAE,EAAE;QACF,aAAa,EAAE,cAAc;QAC7B,eAAe,EAAE,+BAA+B;QAChD,kBAAkB,EAAE,gCAAgC;QACpD,gBAAgB,EAAE,+BAA+B;QACjD,kBAAkB,EAAE,4CAA4C;QAChE,eAAe,EAAE,4CAA4C;QAC7D,WAAW,EAAE,OAAO;QACpB,cAAc,EAAE,WAAW;QAC3B,YAAY,EAAE,MAAM;QACpB,cAAc,EAAE,OAAO;QACvB,WAAW,EAAE,OAAO;QACpB,OAAO,EAAE,2BAA2B;QACpC,iBAAiB,EAAE,yBAAyB;QAC5C,SAAS,EAAE,gCAAgC;QAC3C,KAAK,EAAE,QAAQ;QACf,oBAAoB,EAAE,sFAAsF;QAC5G,IAAI,EAAE,2JAA2J;KAClK;CACmB,CAAA;AAEtB,MAAM,CAAC,MAAM,0BAA0B,GAAG,GAAG,EAAE,CAAC,YAAY,CAAC,UAAU,CAAC,CAAA"}
@@ -20,7 +20,7 @@ const ContentBox = styled.section `
20
20
  flex-direction: column;
21
21
  flex: 1;
22
22
  }
23
- header {
23
+ > header {
24
24
  display: flex;
25
25
  flex-direction: row;
26
26
  margin-bottom: 1.25rem;
@@ -32,6 +32,6 @@ const ContentBox = styled.section `
32
32
  */
33
33
  export const OverlayContent = ({ children, title, subtitle, className, style, onClose, onGoBack, type }) => {
34
34
  const t = useDictionary();
35
- return (_jsxs(ContentBox, { style: style, className: listToClass([className, type]), children: [_jsxs("header", { children: [_jsxs(Flex, { flexDirection: "column", flex: 1, children: [_jsxs(Flex, { style: { gap: '6px' }, children: [onGoBack && (_jsx(IconButton, { appearance: "circle", onClick: onGoBack, title: t.goBack, "aria-label": t.goBack, children: _jsx(ArrowLeft, {}) })), _jsx(Text, { as: "h2", appearance: type === 'modal' ? 'h3' : 'h4', children: title })] }), subtitle && _jsx(Text, { appearance: "body2", colorScheme: "light.700", children: subtitle })] }), _jsx(IconButton, { appearance: "circle", onClick: onClose, title: t.close, "aria-label": t.close, id: CLOSE_OVERLAY_ID, children: _jsx(TimesMini, {}) })] }), children] }));
35
+ return (_jsxs(ContentBox, { style: style, className: listToClass([className, type]), children: [_jsxs("header", { children: [_jsxs(Flex, { flexDirection: "column", flex: 1, children: [_jsxs(Flex, { style: { gap: '6px' }, children: [onGoBack && (_jsx(IconButton, { appearance: "circle", onClick: onGoBack, title: t.goBack, "aria-label": t.goBack, children: _jsx(ArrowLeft, {}) })), _jsx(Text, { as: "h1", appearance: type === 'modal' ? 'h3' : 'h4', children: title })] }), subtitle && _jsx(Text, { appearance: "body2", colorScheme: "light.700", children: subtitle })] }), _jsx(IconButton, { appearance: "circle", onClick: onClose, title: t.close, "aria-label": t.close, id: CLOSE_OVERLAY_ID, children: _jsx(TimesMini, {}) })] }), children] }));
36
36
  };
37
37
  //# sourceMappingURL=OverlayContent.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ErrorBoundary.d.ts","sourceRoot":"","sources":["../../../src/components/error/ErrorBoundary.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAiB,MAAM,qCAAqC,CAAA;AACrF,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGjC,UAAU,KAAM,SAAQ,gBAAgB;IACtC,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,UAAU,KAAK;IACb,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED;;;;;;;;GAQG;AACH,qBAAa,aAAc,SAAQ,SAAS,CAAC,KAAK,EAAE,KAAK,CAAC;gBAC5C,KAAK,EAAE,KAAK;IAKxB,MAAM,CAAC,wBAAwB,CAAC,KAAK,EAAE,GAAG;;;;;;;;;;;eALtC,MAAO,SAAS;gBAKU,MAAO,YACpC;;gBAKU,MAAO,aAAa;;;;IAF/B,iBAAiB,CAAC,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG;IAM5C,kBAAkB,CAAC,SAAS,EAAE,QAAQ,CAAC,KAAK,CAAC;IAI7C,MAAM;CAKP"}
1
+ {"version":3,"file":"ErrorBoundary.d.ts","sourceRoot":"","sources":["../../../src/components/error/ErrorBoundary.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAiB,MAAM,qCAAqC,CAAA;AACrF,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGjC,UAAU,KAAM,SAAQ,gBAAgB;IACtC,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,UAAU,KAAK;IACb,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED;;;;;;;;GAQG;AACH,qBAAa,aAAc,SAAQ,SAAS,CAAC,KAAK,EAAE,KAAK,CAAC;gBAC5C,KAAK,EAAE,KAAK;IAKxB,MAAM,CAAC,wBAAwB,CAAC,KAAK,EAAE,GAAG;;;;;;;;;;;;;;;;;;IAI1C,iBAAiB,CAAC,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG;IAM5C,kBAAkB,CAAC,SAAS,EAAE,QAAQ,CAAC,KAAK,CAAC;IAI7C,MAAM;CAKP"}
@@ -1 +1 @@
1
- {"version":3,"file":"SilentErrorBoundary.d.ts","sourceRoot":"","sources":["../../../src/components/error/SilentErrorBoundary.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAA;AAEtE,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGjC,UAAU,KAAM,SAAQ,gBAAgB;IACtC,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,UAAU,KAAK;IACb,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED;;;;;;;;;GASG;AACH,qBAAa,mBAAoB,SAAQ,SAAS,CAAC,KAAK,EAAE,KAAK,CAAC;gBAClD,KAAK,EAAE,KAAK;IAKxB,MAAM,CAAC,wBAAwB,CAAC,KAAK,EAAE,GAAG;;;;;;;;;;;eAN5C,MAAO,SAAQ;gBAGX,MAAG,YAAY;;gBAOa,MAAO,aACrC;;;;IADA,iBAAiB,CAAC,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG;IAM5C,kBAAkB,CAAC,SAAS,EAAE,QAAQ,CAAC,KAAK,CAAC;IAI7C,MAAM;CAoBP"}
1
+ {"version":3,"file":"SilentErrorBoundary.d.ts","sourceRoot":"","sources":["../../../src/components/error/SilentErrorBoundary.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAA;AAEtE,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGjC,UAAU,KAAM,SAAQ,gBAAgB;IACtC,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,UAAU,KAAK;IACb,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED;;;;;;;;;GASG;AACH,qBAAa,mBAAoB,SAAQ,SAAS,CAAC,KAAK,EAAE,KAAK,CAAC;gBAClD,KAAK,EAAE,KAAK;IAKxB,MAAM,CAAC,wBAAwB,CAAC,KAAK,EAAE,GAAG;;;;;;;;;;;;;;;;;;IAI1C,iBAAiB,CAAC,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG;IAM5C,kBAAkB,CAAC,SAAS,EAAE,QAAQ,CAAC,KAAK,CAAC;IAI7C,MAAM;CAoBP"}
@@ -1 +1 @@
1
- {"version":3,"file":"MenuSections.d.ts","sourceRoot":"","sources":["../../../src/components/menu/MenuSections.tsx"],"names":[],"mappings":"AAeA,OAAO,EAAE,SAAS,EAAe,MAAM,SAAS,CAAA;AAyChD;;GAEG;AACH,wBAAgB,sBAAsB,SAOrC;AA8JD;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,YAAY,GAAI,wBAA6B,SAAS,4CAiJlE,CAAA"}
1
+ {"version":3,"file":"MenuSections.d.ts","sourceRoot":"","sources":["../../../src/components/menu/MenuSections.tsx"],"names":[],"mappings":"AAeA,OAAO,EAAE,SAAS,EAAe,MAAM,SAAS,CAAA;AAyChD;;GAEG;AACH,wBAAgB,sBAAsB,SAOrC;AAiKD;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,YAAY,GAAI,wBAA6B,SAAS,4CAyJlE,CAAA"}
@@ -124,6 +124,10 @@ const Section = ({ icon, label, href, target, onClick, active, content, customCo
124
124
  if (onClick)
125
125
  onClick();
126
126
  hideOverlayImmediately();
127
+ const classList = document.getElementById(elementIds.layout)?.classList;
128
+ if (!classList)
129
+ return;
130
+ classList.remove('menu-manual');
127
131
  }
128
132
  const labelText = typeof label === 'string' ? label : label.id;
129
133
  return (_jsx(_Fragment, { children: _jsx(Link, { href: href, target: target, onClick: click, "aria-label": labelText, onKeyDown: onClick ? e => e.key === 'Enter' && onClick() : undefined, ...(active ? { 'aria-current': 'page' } : undefined), ...(!href ? { 'tabIndex': 0 } : undefined), children: _jsx(ReactTooltip, { text: labelText, position: "right", tabIndex: -1, target: document.getElementById(elementIds.layout), disableTooltip: () => !document.getElementById(elementIds.layout), sx: { width: 'inherit' }, children: _jsxs(Flex, { alignItems: "center", justifyContent: "center", flexWrap: "nowrap", px: 3, w: "100%", children: [_jsx(IconBox, { className: badge ? 'section-icon-with-badge' : 'section-icon', children: icon }), _jsxs(Flex, { alignItems: "center", justifyContent: "space-between", w: "100%", className: "section-text", children: [typeof label === 'string' ? (_jsx(Text, { appearance: "microtext1", className: "section-label", ml: 3, children: label })) : (label.element), badge && _jsx(Box, { className: "section-badge", children: badge })] })] }) }) }) }));
@@ -157,6 +161,7 @@ const OverlayRenderer = ({ content, customContent }) => {
157
161
  */
158
162
  export const MenuSections = ({ sections = [], ...props }) => {
159
163
  const Link = useAnchorTag();
164
+ const [showSupport, setShowSupport] = useState(true);
160
165
  const t = useTranslate(dictionary);
161
166
  // this is a mock state only used to force an update on the component.
162
167
  const [_, setUpdate] = useState(0);
@@ -165,11 +170,14 @@ export const MenuSections = ({ sections = [], ...props }) => {
165
170
  if (!layout)
166
171
  return;
167
172
  if (layout.classList.contains('menu-compact')) {
168
- layout.classList.remove('menu-compact', 'menu-manual');
173
+ layout.classList.remove('menu-compact');
174
+ setShowSupport(true);
169
175
  }
170
176
  else {
171
- layout.classList.add('menu-compact', 'menu-manual');
177
+ layout.classList.add('menu-compact');
178
+ setShowSupport(false);
172
179
  }
180
+ layout.classList.add('menu-manual');
173
181
  setUpdate(current => current + 1);
174
182
  }, []);
175
183
  // the current overlay showing, when the user hovers the section icon. This is the index of the item in the sections array.
@@ -178,6 +186,9 @@ export const MenuSections = ({ sections = [], ...props }) => {
178
186
  const sectionsWithoutCustom = useMemo(() => sections.filter((s) => !s.type), [sections]);
179
187
  const sectionItemsOverlay = useMemo(() => sectionsWithoutCustom.flatMap((s) => 'children' in s ? s.children?.map((c) => c) : s), [sectionsWithoutCustom]);
180
188
  const sectionItems = useMemo(() => sections.reduce((result, s, i) => {
189
+ if (s.label === t.contactUs && !showSupport) {
190
+ return result;
191
+ }
181
192
  if (s.type) {
182
193
  return (s.hidden ? result : [
183
194
  ...result,
@@ -190,7 +201,7 @@ export const MenuSections = ({ sections = [], ...props }) => {
190
201
  ? _jsx(CollapsibleSection, { listItems: sectionItemsOverlay, ...s, setCurrentOverlay: setCurrentOverlay })
191
202
  : _jsx(Section, { id: sectionItemsOverlay.findIndex((sio) => sio?.label === s.label), ...s, setCurrentOverlay: setCurrentOverlay, hasContent: !!props.content || !!props.customContent }, i) }, s.label),
192
203
  ]);
193
- }, []), [sections]);
204
+ }, []), [sections, showSupport]);
194
205
  function onPressEscape() {
195
206
  getAccessibilityButtonOfSectionWithActiveOverlay()?.focus();
196
207
  hideOverlayImmediately();
@@ -219,10 +230,10 @@ export const MenuSections = ({ sections = [], ...props }) => {
219
230
  ? _jsx(OverlayRenderer, { content: props.content, customContent: props.customContent }, 'contentKey' in props ? props.contentKey : undefined)
220
231
  : _jsx(OverlayRenderer, { content: sectionItemsOverlay[currentOverlay]?.content, customContent: sectionItemsOverlay[currentOverlay]?.customContent }, currentOverlay);
221
232
  }
222
- return (_jsxs(_Fragment, { children: [_jsx(MenuSectionGroup, { className: "open root no-indentation", children: sectionItems }), _jsxs(Flex, { mb: 7, alignItems: "center", children: [_jsx(RateAndContactUsItem, { ...props }), _jsx(ReactTooltip, { text: t.toggle, position: "right", tabIndex: -1, disableTooltip: () => !document.getElementById(elementIds.layout), target: document.getElementById(elementIds.layout), sx: { width: 'inherit' }, children: _jsxs("button", { "aria-label": t.toggle, role: "menuitem", className: "toggle sections-footer", onClick: toggleMenu, children: [_jsxs(IconBox, { children: [_jsx(Expand, { className: "expand" }), _jsx(Collapse, { className: "collapse" })] }), _jsx(Text, { appearance: "microtext1", ml: 8, className: "collapse", colorScheme: "light.contrastText", children: t.hide })] }) }), (props.settings?.show) &&
233
+ return (_jsxs(_Fragment, { children: [_jsx(MenuSectionGroup, { className: "open root no-indentation", children: sectionItems }), _jsxs(Flex, { alignItems: "center", children: [_jsx(RateAndContactUsItem, { ...props, showSupport: showSupport }), _jsx(ReactTooltip, { text: t.toggle, position: "right", tabIndex: -1, disableTooltip: () => !document.getElementById(elementIds.layout), target: document.getElementById(elementIds.layout), sx: { width: 'inherit' }, children: _jsxs("button", { "aria-label": t.toggle, role: "menuitem", className: "toggle sections-footer", onClick: toggleMenu, children: [_jsxs(IconBox, { children: [_jsx(Expand, { className: "expand" }), _jsx(Collapse, { className: "collapse" })] }), _jsx(Text, { appearance: "microtext1", ml: 8, className: "collapse", colorScheme: "light.contrastText", children: t.hide })] }) }), (props.settings?.show) &&
223
234
  _jsx(Link, { href: props.settings?.href, onClick: props.settings?.onClick, className: "sections-footer toggle", "aria-label": t.settings, ...(props.settings.active ? { 'aria-current': 'page' } : undefined), children: _jsxs(ReactTooltip, { text: t.settings, position: "right", tabIndex: -1, disableTooltip: () => !document.getElementById(elementIds.layout), target: document.getElementById(elementIds.layout), sx: { width: 'inherit' }, children: [_jsx(IconBox, { "aria-label": t.settingsIcon, children: _jsx(Cog, {}) }), _jsx(Text, { appearance: "microtext1", ml: 8, className: "collapse", children: t.settings })] }) })] })] }));
224
235
  };
225
- const RateAndContactUsItem = ({ ...props }) => {
236
+ const RateAndContactUsItem = ({ showSupport, ...props }) => {
226
237
  const t = useTranslate(dictionary);
227
238
  const alreadyAnswered = localStorage.getItem('RATED_US_IN');
228
239
  const hasAnsweredLess30Days = alreadyAnswered ? isLessThan30Days(new Date(+alreadyAnswered), new Date(Date.now())) : false;
@@ -236,8 +247,7 @@ const RateAndContactUsItem = ({ ...props }) => {
236
247
  localStorage.removeItem('viewNpsItem');
237
248
  }, []);
238
249
  return _jsxs(_Fragment, { children: [(props.rateUs?.show && !hasAnsweredLess30Days) &&
239
- _jsxs("button", { role: "menuitem", className: "toggle sections-footer", onClick: props.rateUs?.onClick, ...(props.rateUs.active ? { 'aria-current': 'page' } : undefined), children: [_jsx(IconBox, { "aria-label": t.rateUsIcon, sx: { paddingTop: '2px' }, children: _jsx(StarFillWithGradient, { id: "svg-icon", className: "gradient-svg rotate-icon" }) }), _jsx(Text, { appearance: "microtext1", ml: 8, sx: { marginTop: '3px' }, className: "collapse gradient grow-shrink", colorScheme: "light.contrastText", children: t.rateUs })] }), (props.contactUs?.show) &&
240
- _jsxs(Link, { href: props.contactUs?.href, className: "toggle sections-footer", onClick: props.contactUs?.onClick, ...(props.contactUs.active ? { 'aria-current': 'page' } : undefined), target: props.contactUs?.target, children: [_jsx(IconBox, { "aria-label": t.contactIcon, children: _jsx(Support, {}) }), _jsx(Text, { appearance: "microtext1", ml: 8, sx: { marginTop: '3px' }, className: "collapse", colorScheme: "light.contrastText", children: t.contactUs })] })] });
250
+ _jsxs("button", { role: "menuitem", className: "toggle sections-footer", onClick: props.rateUs?.onClick, ...(props.rateUs.active ? { 'aria-current': 'page' } : undefined), children: [_jsx(IconBox, { "aria-label": t.rateUsIcon, sx: { paddingTop: '2px' }, children: _jsx(StarFillWithGradient, { id: "svg-icon", className: "gradient-svg rotate-icon" }) }), _jsx(Text, { appearance: "microtext1", ml: 8, sx: { marginTop: '3px' }, className: "collapse gradient grow-shrink", colorScheme: "light.contrastText", children: t.rateUs })] }), (props.contactUs?.show && showSupport) && (_jsxs(Link, { href: props.contactUs?.href, className: "toggle sections-footer", onClick: props.contactUs?.onClick, ...(props.contactUs.active ? { 'aria-current': 'page' } : undefined), target: props.contactUs?.target, children: [_jsx(IconBox, { "aria-label": t.contactIcon, children: _jsx(Support, {}) }), _jsx(Text, { appearance: "microtext1", ml: 8, sx: { marginTop: '3px' }, className: "collapse", colorScheme: "light.contrastText", children: t.contactUs })] }))] });
241
251
  };
242
252
  /**
243
253
  * A menu item that is actually a subgroup and can be collapsed/expanded.