@stack-spot/portal-layout 2.35.0 → 2.36.0-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.
- package/CHANGELOG.md +92 -0
- package/dist/Layout.d.ts +5 -1
- package/dist/Layout.d.ts.map +1 -1
- package/dist/Layout.js +28 -9
- package/dist/Layout.js.map +1 -1
- package/dist/LayoutOverlayManager.d.ts +77 -11
- package/dist/LayoutOverlayManager.d.ts.map +1 -1
- package/dist/LayoutOverlayManager.js +152 -47
- package/dist/LayoutOverlayManager.js.map +1 -1
- package/dist/components/NotificationCenter/NotificationsPanelFooter.js +1 -1
- package/dist/components/NotificationCenter/NotificationsPanelFooter.js.map +1 -1
- package/dist/components/NotificationCenter/dictionary.d.ts +1 -1
- package/dist/components/NotificationCenter/dictionary.d.ts.map +1 -1
- package/dist/components/NotificationCenter/dictionary.js +2 -2
- package/dist/components/NotificationCenter/dictionary.js.map +1 -1
- package/dist/components/OverlayContent.js +2 -2
- package/dist/components/error/ErrorBoundary.d.ts.map +1 -1
- package/dist/components/error/SilentErrorBoundary.d.ts.map +1 -1
- package/dist/components/menu/MenuSections.d.ts.map +1 -1
- package/dist/components/menu/MenuSections.js +14 -5
- package/dist/components/menu/MenuSections.js.map +1 -1
- package/dist/components/menu/types.d.ts +7 -0
- package/dist/components/menu/types.d.ts.map +1 -1
- package/dist/components/tour/StepNavigation.d.ts.map +1 -1
- package/dist/components/tour/StepNavigation.js +2 -1
- package/dist/components/tour/StepNavigation.js.map +1 -1
- package/dist/dictionary.js +2 -2
- package/dist/dictionary.js.map +1 -1
- package/dist/elements.d.ts +1 -0
- package/dist/elements.d.ts.map +1 -1
- package/dist/elements.js +1 -0
- package/dist/elements.js.map +1 -1
- package/dist/layout.css +30 -3
- package/package.json +6 -4
- package/readme.md +0 -1
- package/src/Layout.tsx +68 -18
- package/src/LayoutOverlayManager.tsx +186 -48
- package/src/components/NotificationCenter/NotificationsPanelFooter.tsx +1 -1
- package/src/components/NotificationCenter/dictionary.ts +2 -2
- package/src/components/OverlayContent.tsx +2 -2
- package/src/components/menu/MenuSections.tsx +14 -5
- package/src/components/menu/types.ts +7 -0
- package/src/components/tour/StepNavigation.tsx +3 -1
- package/src/dictionary.ts +2 -2
- package/src/elements.ts +1 -0
- package/src/layout.css +30 -3
|
@@ -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 =
|
|
128
|
-
|
|
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
|
-
|
|
226
|
-
this.
|
|
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,24 +263,25 @@ class LayoutOverlayManager {
|
|
|
234
263
|
*
|
|
235
264
|
* @param options the modal options: {@link OverlayContentProps} & { size: {@link ModalSize} }.
|
|
236
265
|
*/
|
|
237
|
-
showModal({ size, ignoreFirstFocusOnCloseButton, ...props }) {
|
|
238
|
-
|
|
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
|
-
if (options.type === '
|
|
245
|
-
this.
|
|
274
|
+
if (options.type === 'panel') {
|
|
275
|
+
this.showCustomRightPanel(_jsx(Dialog, { ...options, onCancel: () => this.closeModal(), onConfirm: () => {
|
|
246
276
|
dialogResult = true;
|
|
247
277
|
this.closeModal();
|
|
248
|
-
} }), { size, onClose: () => resolve(dialogResult)
|
|
278
|
+
} }), { size: size, onClose: () => resolve(dialogResult) });
|
|
249
279
|
}
|
|
250
280
|
else {
|
|
251
|
-
this.
|
|
281
|
+
this.showCustomModal(_jsx(Dialog, { ...options, onCancel: () => this.closeModal(), onConfirm: () => {
|
|
252
282
|
dialogResult = true;
|
|
253
283
|
this.closeModal();
|
|
254
|
-
} }), { size
|
|
284
|
+
} }), { size, onClose: () => resolve(dialogResult), ignoreFirstFocusOnCloseButton });
|
|
255
285
|
}
|
|
256
286
|
}
|
|
257
287
|
catch (error) {
|
|
@@ -325,16 +355,19 @@ class LayoutOverlayManager {
|
|
|
325
355
|
* @param content a react element with the modal content.
|
|
326
356
|
* @param options the modal options {@link CustomModalOptions}.
|
|
327
357
|
*/
|
|
328
|
-
showCustomRightPanel(content, { size = 'medium', onClose } = {}) {
|
|
358
|
+
showCustomRightPanel(content, { size = 'medium', onClose, ignoreFirstFocusOnCloseButton = true, stack = false, id } = {}) {
|
|
329
359
|
if (!this.elements?.rightPanel)
|
|
330
360
|
throw new ElementNotFound('right panel overlay', elementIds.rightPanel);
|
|
331
361
|
if (!this.setContent.rightPanel)
|
|
332
362
|
throw new LayoutError('unable to show right panel overlay, because it has not been setup yet.');
|
|
333
|
-
|
|
334
|
-
this.
|
|
335
|
-
this.
|
|
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);
|
|
336
369
|
setTimeout(() => {
|
|
337
|
-
this.showOverlay(this.elements?.rightPanel, [], true, true);
|
|
370
|
+
this.showOverlay(this.elements?.rightPanel, [size], true, true, ignoreFirstFocusOnCloseButton);
|
|
338
371
|
});
|
|
339
372
|
}
|
|
340
373
|
/**
|
|
@@ -345,8 +378,9 @@ class LayoutOverlayManager {
|
|
|
345
378
|
*
|
|
346
379
|
* @param options the modal options: {@link OverlayContentProps} & { size: {@link ModalSize} }.
|
|
347
380
|
*/
|
|
348
|
-
showRightPanel({ size, ...props }) {
|
|
349
|
-
|
|
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 });
|
|
350
384
|
}
|
|
351
385
|
/*
|
|
352
386
|
* Focus the element that had focus before the last overlay was opened. If the element is not visible anymore, another one that makes
|
|
@@ -357,58 +391,129 @@ class LayoutOverlayManager {
|
|
|
357
391
|
this.lastActiveElement = null;
|
|
358
392
|
}
|
|
359
393
|
/**
|
|
360
|
-
* Closes
|
|
394
|
+
* Closes all opened modals.
|
|
361
395
|
* @param runCloseListener whether or not to run the function `onClose` passed to `showModal` or `showCustomModal`. Defaults to true.
|
|
362
396
|
*/
|
|
363
397
|
closeModal(runCloseListener = true) {
|
|
364
398
|
this.elements?.modal?.classList.remove('visible');
|
|
365
|
-
this.
|
|
366
|
-
if (
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
this.
|
|
370
|
-
|
|
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
|
+
});
|
|
371
409
|
}
|
|
372
410
|
const animationMS = parseFloat(valueOfLayoutVar('--modal-animation-duration')) * 1000;
|
|
373
411
|
setTimeout(() => {
|
|
374
|
-
if (this.elements?.backdrop?.classList.contains('visible')) {
|
|
412
|
+
if (shouldHideBackdrop && this.elements?.backdrop?.classList.contains('visible')) {
|
|
375
413
|
// eslint-disable-next-line no-console
|
|
376
414
|
console.warn(multipleCallsWarning('modal', animationMS));
|
|
377
415
|
this.elements?.modal?.classList.remove('visible');
|
|
378
416
|
}
|
|
379
417
|
if (this.setContent.modal)
|
|
380
|
-
this.setContent.modal(
|
|
381
|
-
|
|
418
|
+
this.setContent.modal([]);
|
|
419
|
+
if (shouldHideBackdrop)
|
|
420
|
+
this.hideOverlay(this.elements?.modal);
|
|
382
421
|
this.focusLastActiveElement();
|
|
383
422
|
}, animationMS);
|
|
384
423
|
}
|
|
385
424
|
/**
|
|
386
|
-
* Closes the
|
|
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.
|
|
387
457
|
* @param runCloseListener whether or not to run the function `onClose` passed to `showRightPanel` or `showCustomRightPanel`. Defaults to
|
|
388
458
|
* true.
|
|
389
459
|
*/
|
|
390
460
|
closeRightPanel(runCloseListener = true) {
|
|
391
461
|
this.elements?.rightPanel?.classList.remove('visible');
|
|
392
|
-
this.
|
|
393
|
-
if (
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
this.
|
|
397
|
-
|
|
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
|
+
});
|
|
398
472
|
}
|
|
399
473
|
const animationMS = parseFloat(valueOfLayoutVar('--right-panel-animation-duration')) * 1000;
|
|
400
474
|
setTimeout(() => {
|
|
401
|
-
if (this.elements?.backdrop?.classList.contains('visible')) {
|
|
475
|
+
if (shouldHideBackdrop && this.elements?.backdrop?.classList.contains('visible')) {
|
|
402
476
|
// eslint-disable-next-line no-console
|
|
403
477
|
console.warn(multipleCallsWarning('rightPanel', animationMS));
|
|
404
478
|
this.elements?.rightPanel?.classList.remove('visible');
|
|
405
479
|
}
|
|
406
480
|
if (this.setContent.rightPanel)
|
|
407
|
-
this.setContent.rightPanel(
|
|
408
|
-
|
|
481
|
+
this.setContent.rightPanel([]);
|
|
482
|
+
if (shouldHideBackdrop)
|
|
483
|
+
this.hideOverlay(this.elements?.rightPanel);
|
|
409
484
|
this.focusLastActiveElement();
|
|
410
485
|
}, animationMS);
|
|
411
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
|
+
}
|
|
412
517
|
/**
|
|
413
518
|
* Closes the bottom dialog if it's open.
|
|
414
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;QA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G;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"}
|
|
@@ -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.
|
|
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,
|
|
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" | "
|
|
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,
|
|
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
|
-
|
|
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
|
-
|
|
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,
|
|
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: "
|
|
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
|
|
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
|
|
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;
|
|
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);
|
|
@@ -166,9 +171,11 @@ export const MenuSections = ({ sections = [], ...props }) => {
|
|
|
166
171
|
return;
|
|
167
172
|
if (layout.classList.contains('menu-compact')) {
|
|
168
173
|
layout.classList.remove('menu-compact');
|
|
174
|
+
setShowSupport(true);
|
|
169
175
|
}
|
|
170
176
|
else {
|
|
171
177
|
layout.classList.add('menu-compact');
|
|
178
|
+
setShowSupport(false);
|
|
172
179
|
}
|
|
173
180
|
layout.classList.add('menu-manual');
|
|
174
181
|
setUpdate(current => current + 1);
|
|
@@ -179,6 +186,9 @@ export const MenuSections = ({ sections = [], ...props }) => {
|
|
|
179
186
|
const sectionsWithoutCustom = useMemo(() => sections.filter((s) => !s.type), [sections]);
|
|
180
187
|
const sectionItemsOverlay = useMemo(() => sectionsWithoutCustom.flatMap((s) => 'children' in s ? s.children?.map((c) => c) : s), [sectionsWithoutCustom]);
|
|
181
188
|
const sectionItems = useMemo(() => sections.reduce((result, s, i) => {
|
|
189
|
+
if (s.label === t.contactUs && !showSupport) {
|
|
190
|
+
return result;
|
|
191
|
+
}
|
|
182
192
|
if (s.type) {
|
|
183
193
|
return (s.hidden ? result : [
|
|
184
194
|
...result,
|
|
@@ -191,7 +201,7 @@ export const MenuSections = ({ sections = [], ...props }) => {
|
|
|
191
201
|
? _jsx(CollapsibleSection, { listItems: sectionItemsOverlay, ...s, setCurrentOverlay: setCurrentOverlay })
|
|
192
202
|
: _jsx(Section, { id: sectionItemsOverlay.findIndex((sio) => sio?.label === s.label), ...s, setCurrentOverlay: setCurrentOverlay, hasContent: !!props.content || !!props.customContent }, i) }, s.label),
|
|
193
203
|
]);
|
|
194
|
-
}, []), [sections]);
|
|
204
|
+
}, []), [sections, showSupport]);
|
|
195
205
|
function onPressEscape() {
|
|
196
206
|
getAccessibilityButtonOfSectionWithActiveOverlay()?.focus();
|
|
197
207
|
hideOverlayImmediately();
|
|
@@ -220,10 +230,10 @@ export const MenuSections = ({ sections = [], ...props }) => {
|
|
|
220
230
|
? _jsx(OverlayRenderer, { content: props.content, customContent: props.customContent }, 'contentKey' in props ? props.contentKey : undefined)
|
|
221
231
|
: _jsx(OverlayRenderer, { content: sectionItemsOverlay[currentOverlay]?.content, customContent: sectionItemsOverlay[currentOverlay]?.customContent }, currentOverlay);
|
|
222
232
|
}
|
|
223
|
-
return (_jsxs(_Fragment, { children: [_jsx(MenuSectionGroup, { className: "open root no-indentation", children: sectionItems }), _jsxs(Flex, { 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) &&
|
|
224
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 })] }) })] })] }));
|
|
225
235
|
};
|
|
226
|
-
const RateAndContactUsItem = ({ ...props }) => {
|
|
236
|
+
const RateAndContactUsItem = ({ showSupport, ...props }) => {
|
|
227
237
|
const t = useTranslate(dictionary);
|
|
228
238
|
const alreadyAnswered = localStorage.getItem('RATED_US_IN');
|
|
229
239
|
const hasAnsweredLess30Days = alreadyAnswered ? isLessThan30Days(new Date(+alreadyAnswered), new Date(Date.now())) : false;
|
|
@@ -237,8 +247,7 @@ const RateAndContactUsItem = ({ ...props }) => {
|
|
|
237
247
|
localStorage.removeItem('viewNpsItem');
|
|
238
248
|
}, []);
|
|
239
249
|
return _jsxs(_Fragment, { children: [(props.rateUs?.show && !hasAnsweredLess30Days) &&
|
|
240
|
-
_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) &&
|
|
241
|
-
_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 })] }))] });
|
|
242
251
|
};
|
|
243
252
|
/**
|
|
244
253
|
* A menu item that is actually a subgroup and can be collapsed/expanded.
|