@stack-spot/portal-layout 1.0.0 → 1.0.2

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 (66) hide show
  1. package/dist/Layout.d.ts +2 -2
  2. package/dist/Layout.js +1 -1
  3. package/dist/LayoutOverlayManager.js +6 -6
  4. package/dist/LayoutOverlayManager.js.map +1 -1
  5. package/dist/components/Dialog.d.ts +1 -1
  6. package/dist/components/Dialog.js +1 -1
  7. package/dist/components/Header.d.ts +1 -1
  8. package/dist/components/Header.js +1 -1
  9. package/dist/components/OverlayContent.d.ts +1 -1
  10. package/dist/components/OverlayContent.js +20 -20
  11. package/dist/components/PortalSwitcher.d.ts +1 -1
  12. package/dist/components/PortalSwitcher.js +54 -54
  13. package/dist/components/Toaster.d.ts +33 -1
  14. package/dist/components/Toaster.d.ts.map +1 -1
  15. package/dist/components/Toaster.js +26 -2
  16. package/dist/components/Toaster.js.map +1 -1
  17. package/dist/components/UserMenu.d.ts +1 -1
  18. package/dist/components/UserMenu.js +41 -41
  19. package/dist/components/error/ErrorBoundary.d.ts +1 -1
  20. package/dist/components/error/ErrorBoundary.js +1 -1
  21. package/dist/components/error/SilentErrorBoundary.d.ts +1 -1
  22. package/dist/components/error/SilentErrorBoundary.js +1 -1
  23. package/dist/components/menu/MenuContent.d.ts +2 -2
  24. package/dist/components/menu/MenuContent.d.ts.map +1 -1
  25. package/dist/components/menu/MenuContent.js +125 -132
  26. package/dist/components/menu/MenuContent.js.map +1 -1
  27. package/dist/components/menu/MenuSections.d.ts +1 -1
  28. package/dist/components/menu/MenuSections.js +1 -1
  29. package/dist/components/menu/MenuSections.js.map +1 -1
  30. package/dist/components/menu/PageSelector.d.ts +1 -1
  31. package/dist/components/menu/PageSelector.js +69 -69
  32. package/dist/components/menu/PageSelector.js.map +1 -1
  33. package/dist/components/tour/PortalSwitcherStep.js +1 -1
  34. package/dist/layout.css +477 -468
  35. package/dist/toaster.d.ts +2 -20
  36. package/dist/toaster.d.ts.map +1 -1
  37. package/dist/toaster.js +19 -17
  38. package/dist/toaster.js.map +1 -1
  39. package/package.json +3 -2
  40. package/readme.md +146 -146
  41. package/src/Layout.tsx +171 -171
  42. package/src/LayoutOverlayManager.tsx +464 -464
  43. package/src/components/Dialog.tsx +140 -140
  44. package/src/components/Header.tsx +62 -62
  45. package/src/components/OverlayContent.tsx +80 -80
  46. package/src/components/PortalSwitcher.tsx +161 -161
  47. package/src/components/Toaster.tsx +95 -24
  48. package/src/components/UserMenu.tsx +124 -124
  49. package/src/components/error/ErrorBoundary.tsx +47 -47
  50. package/src/components/error/ErrorManager.ts +47 -47
  51. package/src/components/error/SilentErrorBoundary.tsx +64 -64
  52. package/src/components/menu/MenuContent.tsx +270 -277
  53. package/src/components/menu/MenuSections.tsx +320 -320
  54. package/src/components/menu/PageSelector.tsx +164 -164
  55. package/src/components/menu/constants.ts +2 -2
  56. package/src/components/menu/types.ts +205 -205
  57. package/src/components/tour/PortalSwitcherStep.tsx +39 -39
  58. package/src/components/types.ts +1 -1
  59. package/src/dictionary.ts +28 -28
  60. package/src/elements.ts +30 -30
  61. package/src/errors.ts +11 -11
  62. package/src/index.ts +14 -14
  63. package/src/layout.css +477 -468
  64. package/src/toaster.tsx +153 -187
  65. package/src/utils.ts +29 -29
  66. package/tsconfig.json +8 -8
package/dist/Layout.d.ts CHANGED
@@ -74,11 +74,11 @@ interface RawProps extends WithStyle {
74
74
  * Renders the layout with the React elements passed in the props.
75
75
  * @param props the component's props {@link RawProps}.
76
76
  */
77
- export declare const RawLayout: ({ menuSections, menuContent, header, children, tourProps, extra, errorDescriptor, onError, className, style }: RawProps) => import("react/jsx-runtime").JSX.Element;
77
+ export declare const RawLayout: ({ menuSections, menuContent, header, children, tourProps, extra, errorDescriptor, onError, className, style }: RawProps) => import("react/jsx-runtime.js").JSX.Element;
78
78
  /**
79
79
  * Renders the layout with a menu and header that follow the config objects passed as parameter.
80
80
  * @param props the component's props {@link Props}.
81
81
  */
82
- export declare const Layout: ({ menu, header, children, extra, errorDescriptor, onError, className, style, tourProps }: Props) => import("react/jsx-runtime").JSX.Element;
82
+ export declare const Layout: ({ menu, header, children, extra, errorDescriptor, onError, className, style, tourProps }: Props) => import("react/jsx-runtime.js").JSX.Element;
83
83
  export {};
84
84
  //# sourceMappingURL=Layout.d.ts.map
package/dist/Layout.js CHANGED
@@ -1,4 +1,4 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime.js";
2
2
  import { TourProvider, defaultTourConfig, isNewTourStep } from '@stack-spot/portal-components/Tour';
3
3
  import { CSSToCitricAdapter, listToClass } from '@stack-spot/portal-theme';
4
4
  import '@stack-spot/portal-theme/dist/theme.css';
@@ -1,4 +1,4 @@
1
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime.js";
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';
@@ -11,11 +11,11 @@ import { ElementNotFound, LayoutError } from './errors.js';
11
11
  import { closeReactToaster, showToaster as showReactToaster } from './toaster.js';
12
12
  import { valueOfLayoutVar } from './utils.js';
13
13
  function multipleCallsWarning(type, timeMS) {
14
- return `
15
- Attempted to show a modal or rightPanel while a ${type} was still being closed. Closing a ${type} takes only ${timeMS}ms, so this action
16
- is unlikely to have been triggered by the user and may point to errors in your code. Please check.\nTip: showModal and showRightPanel
17
- are sideEffects and should never be called during the render of a component. Try to use "useEffect" or link it to an event, like
18
- "onClick".
14
+ return `
15
+ Attempted to show a modal or rightPanel while a ${type} was still being closed. Closing a ${type} takes only ${timeMS}ms, so this action
16
+ is unlikely to have been triggered by the user and may point to errors in your code. Please check.\nTip: showModal and showRightPanel
17
+ are sideEffects and should never be called during the render of a component. Try to use "useEffect" or link it to an event, like
18
+ "onClick".
19
19
  `.replace(/\s*\n\s+/g, ' ');
20
20
  }
21
21
  class LayoutOverlayManager {
@@ -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;AAC3H,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AA2C1C,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;;;;;WAAyB;QACzB;;;;;WAAyB;QACjC;;WAEG;QACK;;;;mBAAoC,IAAI;WAAA;QA8XhD;;;WAGG;QACH;;;;mBAAe,iBAAiB;WAAA;IAClC,CAAC;IAjYS,aAAa;QACnB,IAAI,CAAC,QAAQ,GAAG,iBAAiB,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C,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"}
@@ -73,6 +73,6 @@ interface Props extends Omit<DialogOptions, 'message'> {
73
73
  * RightPanel.
74
74
  * @param props the React props of the component {@link Props}.
75
75
  */
76
- export declare const Dialog: ({ children, title, subtitle, cancel, confirm, validation, onConfirm, onCancel, type, buttonPlacement, buttonColor, }: Props) => import("react/jsx-runtime").JSX.Element;
76
+ export declare const Dialog: ({ children, title, subtitle, cancel, confirm, validation, onConfirm, onCancel, type, buttonPlacement, buttonColor, }: Props) => import("react/jsx-runtime.js").JSX.Element;
77
77
  export {};
78
78
  //# sourceMappingURL=Dialog.d.ts.map
@@ -1,4 +1,4 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime.js";
2
2
  import { Button, Flex, Input, Label } from '@citric/core';
3
3
  import { interpolate } from '@stack-spot/portal-translate';
4
4
  import { useState } from 'react';
@@ -39,5 +39,5 @@ export interface HeaderProps {
39
39
  * The page header.
40
40
  * @param props the React props for the header {@link HeaderProps}.
41
41
  */
42
- export declare const Header: ({ logo, logoHref, center, right, userName, email, options, portalSwitch }: HeaderProps) => import("react/jsx-runtime").JSX.Element;
42
+ export declare const Header: ({ logo, logoHref, center, right, userName, email, options, portalSwitch }: HeaderProps) => import("react/jsx-runtime.js").JSX.Element;
43
43
  //# sourceMappingURL=Header.d.ts.map
@@ -1,4 +1,4 @@
1
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime.js";
2
2
  import { Flex } from '@citric/core';
3
3
  import { useAnchorTag } from '@stack-spot/portal-components/anchor';
4
4
  import { Logo } from '@stack-spot/portal-components/svg';
@@ -33,6 +33,6 @@ interface Props extends OverlayContentProps {
33
33
  * Renders a modal or right panel with title, subtitle, close button and content.
34
34
  * @param props the React props for the component {@link Props}.
35
35
  */
36
- export declare const OverlayContent: ({ children, title, subtitle, className, style, onClose, type }: Props) => import("react/jsx-runtime").JSX.Element;
36
+ export declare const OverlayContent: ({ children, title, subtitle, className, style, onClose, type }: Props) => import("react/jsx-runtime.js").JSX.Element;
37
37
  export {};
38
38
  //# sourceMappingURL=OverlayContent.d.ts.map
@@ -1,4 +1,4 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime.js";
2
2
  import { Flex, Text } from '@citric/core';
3
3
  import { TimesMini } from '@citric/icons';
4
4
  import { IconButton } from '@citric/ui';
@@ -6,25 +6,25 @@ import { listToClass, theme } from '@stack-spot/portal-theme';
6
6
  import { styled } from 'styled-components';
7
7
  import { useDictionary } from '../dictionary.js';
8
8
  export const CLOSE_OVERLAY_ID = 'close-overlay';
9
- const ContentBox = styled.section `
10
- display: flex;
11
- flex-direction: column;
12
- border-radius: 1rem;
13
- background-color: ${theme.color.light['400']};
14
- &.modal {
15
- padding: 32px;
16
- }
17
- &.panel {
18
- padding: 20px;
19
- display: flex;
20
- flex-direction: column;
21
- flex: 1;
22
- }
23
- header {
24
- display: flex;
25
- flex-direction: row;
26
- margin-bottom: 1.25rem;
27
- }
9
+ const ContentBox = styled.section `
10
+ display: flex;
11
+ flex-direction: column;
12
+ border-radius: 1rem;
13
+ background-color: ${theme.color.light['400']};
14
+ &.modal {
15
+ padding: 32px;
16
+ }
17
+ &.panel {
18
+ padding: 20px;
19
+ display: flex;
20
+ flex-direction: column;
21
+ flex: 1;
22
+ }
23
+ header {
24
+ display: flex;
25
+ flex-direction: row;
26
+ margin-bottom: 1.25rem;
27
+ }
28
28
  `;
29
29
  /**
30
30
  * Renders a modal or right panel with title, subtitle, close button and content.
@@ -20,5 +20,5 @@ export interface PortalSwitcherProps {
20
20
  * Each item contains a logo with a link to the portal.
21
21
  * @param props the component Props {@link PortalSwitcherProps}.
22
22
  */
23
- export declare const PortalSwitcher: ({ portals }: PortalSwitcherProps) => import("react/jsx-runtime").JSX.Element;
23
+ export declare const PortalSwitcher: ({ portals }: PortalSwitcherProps) => import("react/jsx-runtime.js").JSX.Element;
24
24
  //# sourceMappingURL=PortalSwitcher.d.ts.map
@@ -1,4 +1,4 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime.js";
2
2
  import { Button, Flex, IconBox, Text } from '@citric/core';
3
3
  import { ArrowRight, CheckCircleFill, Select } from '@citric/icons';
4
4
  import { SelectionList } from '@stack-spot/portal-components/SelectionList';
@@ -13,59 +13,59 @@ const Logos = {
13
13
  'EDP': _jsx(EDP, {}),
14
14
  'HUB': _jsx(HUB, {}),
15
15
  };
16
- const PortalSwitcherBox = styled(Flex) `
17
- flex-direction: column;
18
- align-items: start;
19
- z-index: 10;
20
-
21
- .current-portal {
22
- padding: 8px;
23
- border-radius: 4px;
24
- cursor: pointer;
25
- &:hover {
26
- background-color: ${theme.color.light[500]};
27
- }
28
- }
29
-
30
- .selection-list {
31
- max-width: 360px;
32
- box-shadow: 4px 4px 48px 0px #000000;
33
- position: absolute;
34
- top: 50px;
35
-
36
- .selection-list-content {
37
- padding: 8px;
38
- border-width: 1px;
39
- border-style: solid;
40
- border-color: ${theme.color.light['500']};
41
-
42
- &> ul {
43
- display: flex;
44
- flex-direction: column;
45
- gap: 8px;
46
- }
47
-
48
- .action {
49
- padding: 16px;
50
- background-color: ${theme.color.light['400']};
51
- border-width: 1px;
52
- border-style: solid;
53
- border-color: ${theme.color.light['500']};
54
- border-radius: 4px;
55
-
56
- &:hover, &:hover a {
57
- background-color: ${theme.color.light['500']};
58
- }
59
-
60
- a {
61
- height: auto;
62
- transition: unset;
63
- align-items: flex-start;
64
- }
65
- }
66
- }
67
- }
68
-
16
+ const PortalSwitcherBox = styled(Flex) `
17
+ flex-direction: column;
18
+ align-items: start;
19
+ z-index: 10;
20
+
21
+ .current-portal {
22
+ padding: 8px;
23
+ border-radius: 4px;
24
+ cursor: pointer;
25
+ &:hover {
26
+ background-color: ${theme.color.light[500]};
27
+ }
28
+ }
29
+
30
+ .selection-list {
31
+ max-width: 360px;
32
+ box-shadow: 4px 4px 48px 0px #000000;
33
+ position: absolute;
34
+ top: 50px;
35
+
36
+ .selection-list-content {
37
+ padding: 8px;
38
+ border-width: 1px;
39
+ border-style: solid;
40
+ border-color: ${theme.color.light['500']};
41
+
42
+ &> ul {
43
+ display: flex;
44
+ flex-direction: column;
45
+ gap: 8px;
46
+ }
47
+
48
+ .action {
49
+ padding: 16px;
50
+ background-color: ${theme.color.light['400']};
51
+ border-width: 1px;
52
+ border-style: solid;
53
+ border-color: ${theme.color.light['500']};
54
+ border-radius: 4px;
55
+
56
+ &:hover, &:hover a {
57
+ background-color: ${theme.color.light['500']};
58
+ }
59
+
60
+ a {
61
+ height: auto;
62
+ transition: unset;
63
+ align-items: flex-start;
64
+ }
65
+ }
66
+ }
67
+ }
68
+
69
69
  `;
70
70
  const PORTAL_SWITCHER_ID = 'PortalSwitcher';
71
71
  /**
@@ -1,7 +1,39 @@
1
+ /// <reference types="react" />
1
2
  import 'react-toastify/dist/ReactToastify.css';
2
3
  export declare const TOASTER_CLOSE_BTN_CLASS = "btn-close";
3
4
  /**
4
5
  * Uses react-toastify to render a Toaster based on the Citric DS.
5
6
  */
6
- export declare const Toaster: () => import("react/jsx-runtime").JSX.Element;
7
+ export declare const Toaster: () => import("react/jsx-runtime.js").JSX.Element;
8
+ export interface ToasterAction {
9
+ /**
10
+ * The button's label.
11
+ */
12
+ label: string;
13
+ /**
14
+ * A function to run once the button is clicked.
15
+ */
16
+ onClick?: (event: React.MouseEvent) => void;
17
+ /**
18
+ * If this is set, instead of a button, an anchor is rendered with this href.
19
+ */
20
+ href?: string;
21
+ /**
22
+ * Whether or not to close the toaster once the button is clicked.
23
+ * @default true
24
+ */
25
+ closeOnClick?: boolean;
26
+ }
27
+ interface ToasterContentProps {
28
+ id: number | string;
29
+ actions?: ToasterAction[];
30
+ onClick?: (event: React.MouseEvent) => void;
31
+ title?: string;
32
+ message: React.ReactNode;
33
+ }
34
+ /**
35
+ * Renders a toaster with the default layout for toasters.
36
+ */
37
+ export declare const ToasterContent: ({ id, message, actions, onClick, title }: ToasterContentProps) => import("react/jsx-runtime.js").JSX.Element;
38
+ export {};
7
39
  //# sourceMappingURL=Toaster.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Toaster.d.ts","sourceRoot":"","sources":["../../src/components/Toaster.tsx"],"names":[],"mappings":"AAIA,OAAO,uCAAuC,CAAA;AAK9C,eAAO,MAAM,uBAAuB,cAAc,CAAA;AAWlD;;GAEG;AACH,eAAO,MAAM,OAAO,+CAAqD,CAAA"}
1
+ {"version":3,"file":"Toaster.d.ts","sourceRoot":"","sources":["../../src/components/Toaster.tsx"],"names":[],"mappings":";AAOA,OAAO,uCAAuC,CAAA;AAK9C,eAAO,MAAM,uBAAuB,cAAc,CAAA;AAWlD;;GAEG;AACH,eAAO,MAAM,OAAO,+CAAqD,CAAA;AAEzE,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAC;IAC5C;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,UAAU,mBAAmB;IAC3B,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,aAAa,EAAE,CAAC;IAC1B,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAC;IAC5C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B;AAYD;;GAEG;AACH,eAAO,MAAM,cAAc,6CAA8C,mBAAmB,4CAyB3F,CAAA"}
@@ -1,7 +1,10 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime.js";
2
+ import { Flex, Text } from '@citric/core';
2
3
  import { TimesMini } from '@citric/icons';
3
4
  import { IconButton } from '@citric/ui';
4
- import { ToastContainer } from 'react-toastify';
5
+ import { useAnchorTag } from '@stack-spot/portal-components/anchor';
6
+ import { useMemo } from 'react';
7
+ import { ToastContainer, toast } from 'react-toastify';
5
8
  import 'react-toastify/dist/ReactToastify.css';
6
9
  import { useDictionary } from '../dictionary.js';
7
10
  export const TOASTER_CLOSE_BTN_CLASS = 'btn-close';
@@ -13,4 +16,25 @@ const CloseButton = ({ closeToast }) => {
13
16
  * Uses react-toastify to render a Toaster based on the Citric DS.
14
17
  */
15
18
  export const Toaster = () => _jsx(ToastContainer, { closeButton: CloseButton });
19
+ const actionStyle = {
20
+ background: 'transparent',
21
+ border: 'none',
22
+ padding: 0,
23
+ color: 'inherit',
24
+ font: 'inherit',
25
+ fontWeight: 500,
26
+ cursor: 'pointer',
27
+ };
28
+ /**
29
+ * Renders a toaster with the default layout for toasters.
30
+ */
31
+ export const ToasterContent = ({ id, message, actions, onClick, title }) => {
32
+ const Link = useAnchorTag();
33
+ const buttons = useMemo(() => actions?.map(({ label, href, onClick, closeOnClick = true }) => (_jsx(Text, { as: href ? Link : 'button', href: href, style: actionStyle, onClick: (event) => {
34
+ onClick?.(event);
35
+ if (closeOnClick)
36
+ toast.dismiss(id);
37
+ }, children: label }, label))), [actions]);
38
+ return (_jsxs("div", { onClick: onClick, children: [_jsx("h1", { style: { textTransform: 'capitalize' }, children: title }), typeof message === 'string' ? _jsx("p", { children: message }) : message, buttons?.length ? _jsx(Flex, { style: { gap: '12px', marginTop: '12px' }, children: buttons }) : null] }));
39
+ };
16
40
  //# sourceMappingURL=Toaster.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Toaster.js","sourceRoot":"","sources":["../../src/components/Toaster.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAEvC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAC/C,OAAO,uCAAuC,CAAA;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAI7C,MAAM,CAAC,MAAM,uBAAuB,GAAG,WAAW,CAAA;AAElD,MAAM,WAAW,GAAG,CAAC,EAAE,UAAU,EAAoB,EAAE,EAAE;IACvD,MAAM,CAAC,GAAG,aAAa,EAAE,CAAA;IACzB,OAAO,CACL,KAAC,UAAU,IAAC,SAAS,EAAE,uBAAuB,EAAE,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC,CAAC,OAAO,YACnF,KAAC,SAAS,KAAG,GACF,CACd,CAAA;AACH,CAAC,CAAA;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,GAAG,EAAE,CAAC,KAAC,cAAc,IAAC,WAAW,EAAE,WAAW,GAAI,CAAA"}
1
+ {"version":3,"file":"Toaster.js","sourceRoot":"","sources":["../../src/components/Toaster.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAA;AACnE,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;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,EAAE,IAAI,EACV,KAAK,EAAE,WAAW,EAClB,OAAO,EAAE,CAAC,KAAuB,EAAE,EAAE;YACnC,OAAO,EAAE,CAAC,KAAK,CAAC,CAAA;YAChB,IAAI,YAAY;gBAAE,KAAK,CAAC,OAAO,CAAC,EAAE,CAAC,CAAA;QACrC,CAAC,YAEA,KAAK,IATD,KAAK,CAUL,CACR,CACF,EAAE,CAAC,OAAO,CAAC,CAAC,CAAA;IACb,OAAO,CACL,eAAK,OAAO,EAAE,OAAO,aACnB,aAAI,KAAK,EAAE,EAAE,aAAa,EAAE,YAAY,EAAE,YAAG,KAAK,GAAM,EACvD,OAAO,OAAO,KAAK,QAAQ,CAAC,CAAC,CAAC,sBAAI,OAAO,GAAK,CAAC,CAAC,CAAC,OAAO,EACxD,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,KAAC,IAAI,IAAC,KAAK,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,YAAG,OAAO,GAAQ,CAAC,CAAC,CAAC,IAAI,IACvF,CACP,CAAA;AACH,CAAC,CAAA"}
@@ -17,6 +17,6 @@ interface Props {
17
17
  * Renders the user menu.
18
18
  * @param props the component's props {@link Props}.
19
19
  */
20
- export declare const UserMenu: ({ userName, email, options }: Props) => import("react/jsx-runtime").JSX.Element;
20
+ export declare const UserMenu: ({ userName, email, options }: Props) => import("react/jsx-runtime.js").JSX.Element;
21
21
  export {};
22
22
  //# sourceMappingURL=UserMenu.d.ts.map
@@ -1,4 +1,4 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime.js";
2
2
  import { Flex, IconBox, LinkBox, Text } from '@citric/core';
3
3
  import { ChevronDown } from '@citric/icons';
4
4
  import { Avatar } from '@citric/ui';
@@ -8,46 +8,46 @@ import { interpolate, useTranslate } from '@stack-spot/portal-translate';
8
8
  import { useState } from 'react';
9
9
  import { styled } from 'styled-components';
10
10
  const USER_MENU_ID = 'userMenu';
11
- const UserMenuBox = styled.div `
12
- .user-menu-header {
13
- display: flex;
14
- flex-direction: column;
15
- justify-content: center;
16
- align-items: center;
17
- padding: 12px;
18
- border-bottom: 2px solid ${theme.color.light['600']};
19
- }
20
-
21
- .selection-list {
22
- position: absolute;
23
- top: var(--header-height);
24
- right: 20px;
25
- width: 266px;
26
-
27
- .selection-list-content {
28
- border: none;
29
- padding: 16px 16px 8px;
30
- background-color: ${theme.color.light['400']};
31
- }
32
-
33
- li {
34
- margin: 8px 0;
35
- & > a {
36
- border-radius: 6px;
37
- &:hover, &:focus {
38
- background: ${theme.color.light['500']};
39
- }
40
- }
41
- }
42
- }
43
-
44
- .username {
45
- margin: 5px 0 2px 0;
46
- }
47
-
48
- .chevron {
49
- transition: transform ease-out 0.3s;
50
- }
11
+ const UserMenuBox = styled.div `
12
+ .user-menu-header {
13
+ display: flex;
14
+ flex-direction: column;
15
+ justify-content: center;
16
+ align-items: center;
17
+ padding: 12px;
18
+ border-bottom: 2px solid ${theme.color.light['600']};
19
+ }
20
+
21
+ .selection-list {
22
+ position: absolute;
23
+ top: var(--header-height);
24
+ right: 20px;
25
+ width: 266px;
26
+
27
+ .selection-list-content {
28
+ border: none;
29
+ padding: 16px 16px 8px;
30
+ background-color: ${theme.color.light['400']};
31
+ }
32
+
33
+ li {
34
+ margin: 8px 0;
35
+ & > a {
36
+ border-radius: 6px;
37
+ &:hover, &:focus {
38
+ background: ${theme.color.light['500']};
39
+ }
40
+ }
41
+ }
42
+ }
43
+
44
+ .username {
45
+ margin: 5px 0 2px 0;
46
+ }
47
+
48
+ .chevron {
49
+ transition: transform ease-out 0.3s;
50
+ }
51
51
  `;
52
52
  const UserMenuHeader = ({ userName, email }) => (_jsxs("div", { className: "user-menu-header", children: [_jsx(Avatar, { size: "xs", children: userName }), _jsx(Text, { appearance: "body1", className: "username", children: userName }), email && _jsx(Text, { appearance: "microtext1", className: "email", colorScheme: "light.700", children: email })] }));
53
53
  /**
@@ -25,7 +25,7 @@ export declare class ErrorBoundary extends Component<Props, State> {
25
25
  };
26
26
  componentDidCatch(error: any, errorInfo: any): void;
27
27
  componentDidUpdate(prevProps: Readonly<Props>): void;
28
- render(): string | number | boolean | Iterable<import("react").ReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
28
+ render(): string | number | boolean | Iterable<import("react").ReactNode> | import("react/jsx-runtime.js").JSX.Element | null | undefined;
29
29
  }
30
30
  export {};
31
31
  //# sourceMappingURL=ErrorBoundary.d.ts.map
@@ -1,4 +1,4 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
1
+ import { jsx as _jsx } from "react/jsx-runtime.js";
2
2
  import { ErrorFeedback } from '@stack-spot/portal-components/ErrorFeedback';
3
3
  import { Component } from 'react';
4
4
  import { ErrorManager } from './ErrorManager.js';
@@ -26,7 +26,7 @@ export declare class SilentErrorBoundary extends Component<Props, State> {
26
26
  };
27
27
  componentDidCatch(error: any, errorInfo: any): void;
28
28
  componentDidUpdate(prevProps: Readonly<Props>): void;
29
- render(): string | number | boolean | Iterable<import("react").ReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
29
+ render(): string | number | boolean | Iterable<import("react").ReactNode> | import("react/jsx-runtime.js").JSX.Element | null | undefined;
30
30
  }
31
31
  export {};
32
32
  //# sourceMappingURL=SilentErrorBoundary.d.ts.map
@@ -1,4 +1,4 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
1
+ import { jsx as _jsx } from "react/jsx-runtime.js";
2
2
  import { theme } from '@stack-spot/portal-theme';
3
3
  import { Component } from 'react';
4
4
  import { ErrorManager } from './ErrorManager.js';
@@ -12,7 +12,7 @@ export declare const Title: import("styled-components/dist/types").IStyledCompon
12
12
  * A menu item that performs an action.
13
13
  * @param props the props for the component {@link MenuAction}.
14
14
  */
15
- export declare const ActionItem: ({ label, onClick, href, active, icon, badge, overflow }: MenuAction) => import("react/jsx-runtime").JSX.Element;
15
+ export declare const ActionItem: ({ label, onClick, href, active, icon, badge, overflow }: MenuAction) => import("react/jsx-runtime.js").JSX.Element;
16
16
  /**
17
17
  * Renders a menu-content interface.
18
18
  *
@@ -20,5 +20,5 @@ export declare const ActionItem: ({ label, onClick, href, active, icon, badge, o
20
20
  * one that changes according to section selected.
21
21
  * @param props the props for the component {@link MenuSectionContent}.
22
22
  */
23
- export declare const MenuContent: ({ pageSelector, goBack, title, subtitle, afterTitle, options, loading, error }: MenuSectionContent) => import("react/jsx-runtime").JSX.Element;
23
+ export declare const MenuContent: ({ pageSelector, goBack, title, subtitle, afterTitle, options, loading, error }: MenuSectionContent) => import("react/jsx-runtime.js").JSX.Element;
24
24
  //# sourceMappingURL=MenuContent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MenuContent.d.ts","sourceRoot":"","sources":["../../../src/components/menu/MenuContent.tsx"],"names":[],"mappings":";AAWA,OAAO,EAAa,UAAU,EAAY,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAW7E;;GAEG;AACH,eAAO,MAAM,SAAS,4OAsHrB,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,KAAK,kOAIjB,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,UAAU,4DAAsE,UAAU,4CAuBtG,CAAA;AAkDD;;;;;;GAMG;AACH,eAAO,MAAM,WAAW,mFAAyF,kBAAkB,4CAsClI,CAAA"}
1
+ {"version":3,"file":"MenuContent.d.ts","sourceRoot":"","sources":["../../../src/components/menu/MenuContent.tsx"],"names":[],"mappings":";AAWA,OAAO,EAAa,UAAU,EAAY,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAE7E;;GAEG;AACH,eAAO,MAAM,SAAS,4OAsHrB,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,KAAK,kOAIjB,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,UAAU,4DAAsE,UAAU,4CAuBtG,CAAA;AAkDD;;;;;;GAMG;AACH,eAAO,MAAM,WAAW,mFAAyF,kBAAkB,4CAwClI,CAAA"}