@stack-spot/portal-layout 0.0.50 → 0.0.52

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 (105) hide show
  1. package/dist/Layout.d.ts +5 -4
  2. package/dist/Layout.d.ts.map +1 -1
  3. package/dist/Layout.js +4 -3
  4. package/dist/Layout.js.map +1 -1
  5. package/dist/LayoutOverlayManager.js +6 -6
  6. package/dist/LayoutOverlayManager.js.map +1 -1
  7. package/dist/components/Dialog.d.ts +1 -1
  8. package/dist/components/Dialog.js +1 -1
  9. package/dist/components/Header.d.ts +1 -1
  10. package/dist/components/Header.d.ts.map +1 -1
  11. package/dist/components/Header.js +8 -4
  12. package/dist/components/Header.js.map +1 -1
  13. package/dist/components/OverlayContent.d.ts +1 -1
  14. package/dist/components/OverlayContent.js +20 -20
  15. package/dist/components/PortalSwitcher.d.ts +1 -1
  16. package/dist/components/PortalSwitcher.js +54 -54
  17. package/dist/components/SelectionList.d.ts +1 -1
  18. package/dist/components/SelectionList.d.ts.map +1 -1
  19. package/dist/components/SelectionList.js +61 -58
  20. package/dist/components/SelectionList.js.map +1 -1
  21. package/dist/components/Toaster.d.ts +1 -1
  22. package/dist/components/Toaster.js +1 -1
  23. package/dist/components/UserMenu.d.ts +1 -1
  24. package/dist/components/UserMenu.js +41 -41
  25. package/dist/components/error/ErrorBoundary.d.ts +1 -1
  26. package/dist/components/error/ErrorBoundary.js +1 -1
  27. package/dist/components/error/ErrorFeedback.d.ts +1 -1
  28. package/dist/components/error/ErrorFeedback.js +1 -1
  29. package/dist/components/error/SilentErrorBoundary.d.ts +1 -1
  30. package/dist/components/error/SilentErrorBoundary.js +1 -1
  31. package/dist/components/menu/MenuContent.d.ts +10 -12
  32. package/dist/components/menu/MenuContent.d.ts.map +1 -1
  33. package/dist/components/menu/MenuContent.js +150 -147
  34. package/dist/components/menu/MenuContent.js.map +1 -1
  35. package/dist/components/menu/MenuSections.d.ts +1 -1
  36. package/dist/components/menu/MenuSections.d.ts.map +1 -1
  37. package/dist/components/menu/MenuSections.js +7 -5
  38. package/dist/components/menu/MenuSections.js.map +1 -1
  39. package/dist/components/menu/PageSelector.d.ts +1 -1
  40. package/dist/components/menu/PageSelector.d.ts.map +1 -1
  41. package/dist/components/menu/PageSelector.js +68 -66
  42. package/dist/components/menu/PageSelector.js.map +1 -1
  43. package/dist/components/menu/use-check-text-overflow.js.map +1 -1
  44. package/dist/layout-context.d.ts +10 -0
  45. package/dist/layout-context.d.ts.map +1 -0
  46. package/dist/layout-context.js +11 -0
  47. package/dist/layout-context.js.map +1 -0
  48. package/dist/layout.css +466 -465
  49. package/dist/svg/AI.d.ts +1 -1
  50. package/dist/svg/AI.js +1 -1
  51. package/dist/svg/EDP.d.ts +1 -1
  52. package/dist/svg/EDP.js +1 -1
  53. package/dist/svg/Forbidden.d.ts +1 -1
  54. package/dist/svg/Forbidden.js +1 -1
  55. package/dist/svg/HUB.d.ts +1 -1
  56. package/dist/svg/HUB.js +1 -1
  57. package/dist/svg/Logo.d.ts +1 -1
  58. package/dist/svg/Logo.js +1 -1
  59. package/dist/svg/NotFound.d.ts +1 -1
  60. package/dist/svg/NotFound.js +1 -1
  61. package/dist/svg/ServerError.d.ts +1 -1
  62. package/dist/svg/ServerError.js +1 -1
  63. package/dist/svg/Unauthenticated.d.ts +1 -1
  64. package/dist/svg/Unauthenticated.js +1 -1
  65. package/dist/toaster.js +1 -1
  66. package/dist/utils.js.map +1 -1
  67. package/package.json +1 -1
  68. package/src/Layout.tsx +106 -103
  69. package/src/LayoutOverlayManager.tsx +273 -273
  70. package/src/components/Dialog.tsx +93 -93
  71. package/src/components/Header.tsx +34 -29
  72. package/src/components/OverlayContent.tsx +58 -58
  73. package/src/components/PortalSwitcher.tsx +147 -147
  74. package/src/components/SelectionList.tsx +272 -268
  75. package/src/components/Toaster.tsx +16 -16
  76. package/src/components/UserMenu.tsx +111 -111
  77. package/src/components/error/ErrorBoundary.tsx +38 -38
  78. package/src/components/error/ErrorFeedback.tsx +114 -114
  79. package/src/components/error/ErrorManager.ts +31 -31
  80. package/src/components/error/SilentErrorBoundary.tsx +54 -54
  81. package/src/components/menu/MenuContent.tsx +296 -293
  82. package/src/components/menu/MenuSections.tsx +270 -268
  83. package/src/components/menu/PageSelector.tsx +154 -152
  84. package/src/components/menu/constants.ts +2 -2
  85. package/src/components/menu/types.ts +112 -112
  86. package/src/components/menu/use-check-text-overflow.tsx +26 -26
  87. package/src/components/menu/use-keyboard-controls.tsx +70 -70
  88. package/src/components/types.ts +15 -15
  89. package/src/dictionary.ts +25 -25
  90. package/src/elements.ts +24 -24
  91. package/src/errors.ts +11 -11
  92. package/src/index.ts +17 -17
  93. package/src/layout-context.tsx +22 -0
  94. package/src/layout.css +466 -465
  95. package/src/svg/AI.tsx +37 -37
  96. package/src/svg/EDP.tsx +35 -35
  97. package/src/svg/Forbidden.tsx +22 -22
  98. package/src/svg/HUB.tsx +35 -35
  99. package/src/svg/Logo.tsx +35 -35
  100. package/src/svg/NotFound.tsx +16 -16
  101. package/src/svg/ServerError.tsx +33 -33
  102. package/src/svg/Unauthenticated.tsx +16 -16
  103. package/src/toaster.tsx +76 -76
  104. package/src/utils.ts +114 -114
  105. package/tsconfig.json +8 -8
@@ -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 { TimesMini } from '@citric/icons';
3
3
  import { IconButton } from '@citric/ui';
4
4
  import { ToastContainer } from 'react-toastify';
@@ -4,6 +4,6 @@ interface Props {
4
4
  email?: string;
5
5
  options?: SelectionListProps['items'];
6
6
  }
7
- export declare const UserMenu: ({ userName, email, options }: Props) => import("react/jsx-runtime").JSX.Element;
7
+ export declare const UserMenu: ({ userName, email, options }: Props) => import("react/jsx-runtime.js").JSX.Element;
8
8
  export {};
9
9
  //# 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 { useState } from 'react';
8
8
  import { styled } from 'styled-components';
9
9
  import { SelectionList } from './SelectionList.js';
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
  export const UserMenu = ({ userName, email, options }) => {
@@ -16,7 +16,7 @@ export declare class ErrorBoundary extends Component<Props, State> {
16
16
  };
17
17
  componentDidCatch(error: any, errorInfo: any): void;
18
18
  componentDidUpdate(prevProps: Readonly<Props>): void;
19
- render(): string | number | boolean | import("react/jsx-runtime").JSX.Element | Iterable<import("react").ReactNode> | null | undefined;
19
+ render(): string | number | boolean | import("react/jsx-runtime.js").JSX.Element | Iterable<import("react").ReactNode> | null | undefined;
20
20
  }
21
21
  export {};
22
22
  //# 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 { Component } from 'react';
3
3
  import { ErrorFeedback } from './ErrorFeedback.js';
4
4
  import { ErrorManager } from './ErrorManager.js';
@@ -1,3 +1,3 @@
1
1
  import { ErrorDescription } from './ErrorManager.js';
2
- export declare const ErrorFeedback: ({ code, message, debug }: ErrorDescription) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const ErrorFeedback: ({ code, message, debug }: ErrorDescription) => import("react/jsx-runtime.js").JSX.Element;
3
3
  //# sourceMappingURL=ErrorFeedback.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 { Box, Button, Container, Flex, LinkBox, Text } from '@citric/core';
3
3
  import { useTranslate } from '@stack-spot/portal-translate';
4
4
  import { useState } from 'react';
@@ -17,7 +17,7 @@ export declare class SilentErrorBoundary extends Component<Props, State> {
17
17
  };
18
18
  componentDidCatch(error: any, errorInfo: any): void;
19
19
  componentDidUpdate(prevProps: Readonly<Props>): void;
20
- render(): string | number | boolean | import("react/jsx-runtime").JSX.Element | Iterable<import("react").ReactNode> | null | undefined;
20
+ render(): string | number | boolean | import("react/jsx-runtime.js").JSX.Element | Iterable<import("react").ReactNode> | null | undefined;
21
21
  }
22
22
  export {};
23
23
  //# 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';
@@ -19,7 +19,6 @@ export declare const MenuGroup: import("styled-components").IStyledComponent<"we
19
19
  id?: string | undefined;
20
20
  lang?: string | undefined;
21
21
  nonce?: string | undefined;
22
- placeholder?: string | undefined;
23
22
  slot?: string | undefined;
24
23
  spellCheck?: (boolean | "false" | "true") | undefined;
25
24
  style?: import("react").CSSProperties | undefined;
@@ -51,7 +50,7 @@ export declare const MenuGroup: import("styled-components").IStyledComponent<"we
51
50
  results?: number | undefined;
52
51
  security?: string | undefined;
53
52
  unselectable?: "on" | "off" | undefined;
54
- inputMode?: "search" | "text" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
53
+ inputMode?: "search" | "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
55
54
  is?: string | undefined;
56
55
  "aria-activedescendant"?: string | undefined;
57
56
  "aria-atomic"?: (boolean | "false" | "true") | undefined;
@@ -65,7 +64,7 @@ export declare const MenuGroup: import("styled-components").IStyledComponent<"we
65
64
  "aria-colindextext"?: string | undefined;
66
65
  "aria-colspan"?: number | undefined;
67
66
  "aria-controls"?: string | undefined;
68
- "aria-current"?: boolean | "time" | "page" | "false" | "true" | "step" | "location" | "date" | undefined;
67
+ "aria-current"?: boolean | "page" | "false" | "true" | "time" | "step" | "location" | "date" | undefined;
69
68
  "aria-describedby"?: string | undefined;
70
69
  "aria-description"?: string | undefined;
71
70
  "aria-details"?: string | undefined;
@@ -75,7 +74,7 @@ export declare const MenuGroup: import("styled-components").IStyledComponent<"we
75
74
  "aria-expanded"?: (boolean | "false" | "true") | undefined;
76
75
  "aria-flowto"?: string | undefined;
77
76
  "aria-grabbed"?: (boolean | "false" | "true") | undefined;
78
- "aria-haspopup"?: boolean | "dialog" | "menu" | "grid" | "listbox" | "false" | "true" | "tree" | undefined;
77
+ "aria-haspopup"?: boolean | "grid" | "listbox" | "menu" | "false" | "true" | "dialog" | "tree" | undefined;
79
78
  "aria-hidden"?: (boolean | "false" | "true") | undefined;
80
79
  "aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
81
80
  "aria-keyshortcuts"?: string | undefined;
@@ -92,7 +91,7 @@ export declare const MenuGroup: import("styled-components").IStyledComponent<"we
92
91
  "aria-posinset"?: number | undefined;
93
92
  "aria-pressed"?: boolean | "mixed" | "false" | "true" | undefined;
94
93
  "aria-readonly"?: (boolean | "false" | "true") | undefined;
95
- "aria-relevant"?: "text" | "all" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
94
+ "aria-relevant"?: "all" | "text" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
96
95
  "aria-required"?: (boolean | "false" | "true") | undefined;
97
96
  "aria-roledescription"?: string | undefined;
98
97
  "aria-rowcount"?: number | undefined;
@@ -291,7 +290,6 @@ export declare const Title: import("styled-components").IStyledComponent<"web",
291
290
  id?: string | undefined;
292
291
  lang?: string | undefined;
293
292
  nonce?: string | undefined;
294
- placeholder?: string | undefined;
295
293
  slot?: string | undefined;
296
294
  spellCheck?: (boolean | "false" | "true") | undefined;
297
295
  style?: import("react").CSSProperties | undefined;
@@ -323,7 +321,7 @@ export declare const Title: import("styled-components").IStyledComponent<"web",
323
321
  results?: number | undefined;
324
322
  security?: string | undefined;
325
323
  unselectable?: "on" | "off" | undefined;
326
- inputMode?: "search" | "text" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
324
+ inputMode?: "search" | "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
327
325
  is?: string | undefined;
328
326
  "aria-activedescendant"?: string | undefined;
329
327
  "aria-atomic"?: (boolean | "false" | "true") | undefined;
@@ -337,7 +335,7 @@ export declare const Title: import("styled-components").IStyledComponent<"web",
337
335
  "aria-colindextext"?: string | undefined;
338
336
  "aria-colspan"?: number | undefined;
339
337
  "aria-controls"?: string | undefined;
340
- "aria-current"?: boolean | "time" | "page" | "false" | "true" | "step" | "location" | "date" | undefined;
338
+ "aria-current"?: boolean | "page" | "false" | "true" | "time" | "step" | "location" | "date" | undefined;
341
339
  "aria-describedby"?: string | undefined;
342
340
  "aria-description"?: string | undefined;
343
341
  "aria-details"?: string | undefined;
@@ -347,7 +345,7 @@ export declare const Title: import("styled-components").IStyledComponent<"web",
347
345
  "aria-expanded"?: (boolean | "false" | "true") | undefined;
348
346
  "aria-flowto"?: string | undefined;
349
347
  "aria-grabbed"?: (boolean | "false" | "true") | undefined;
350
- "aria-haspopup"?: boolean | "dialog" | "menu" | "grid" | "listbox" | "false" | "true" | "tree" | undefined;
348
+ "aria-haspopup"?: boolean | "grid" | "listbox" | "menu" | "false" | "true" | "dialog" | "tree" | undefined;
351
349
  "aria-hidden"?: (boolean | "false" | "true") | undefined;
352
350
  "aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
353
351
  "aria-keyshortcuts"?: string | undefined;
@@ -364,7 +362,7 @@ export declare const Title: import("styled-components").IStyledComponent<"web",
364
362
  "aria-posinset"?: number | undefined;
365
363
  "aria-pressed"?: boolean | "mixed" | "false" | "true" | undefined;
366
364
  "aria-readonly"?: (boolean | "false" | "true") | undefined;
367
- "aria-relevant"?: "text" | "all" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
365
+ "aria-relevant"?: "all" | "text" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
368
366
  "aria-required"?: (boolean | "false" | "true") | undefined;
369
367
  "aria-roledescription"?: string | undefined;
370
368
  "aria-rowcount"?: number | undefined;
@@ -545,6 +543,6 @@ export declare const Title: import("styled-components").IStyledComponent<"web",
545
543
  onTransitionEnd?: import("react").TransitionEventHandler<HTMLElement> | undefined;
546
544
  onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLElement> | undefined;
547
545
  }>;
548
- export declare const ActionItem: ({ label, onClick, href, active, icon, badge, overflow }: MenuAction) => import("react/jsx-runtime").JSX.Element;
549
- export declare const MenuContent: ({ pageSelector, goBack, title, subtitle, afterTitle, options, loading, error }: MenuSectionContent) => import("react/jsx-runtime").JSX.Element;
546
+ export declare const ActionItem: ({ label, onClick, href, active, icon, badge, overflow }: MenuAction) => import("react/jsx-runtime.js").JSX.Element;
547
+ export declare const MenuContent: ({ pageSelector, goBack, title, subtitle, afterTitle, options, loading, error }: MenuSectionContent) => import("react/jsx-runtime.js").JSX.Element;
550
548
  //# sourceMappingURL=MenuContent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MenuContent.d.ts","sourceRoot":"","sources":["../../../src/components/menu/MenuContent.tsx"],"names":[],"mappings":";;AAUA,OAAO,EAAa,UAAU,EAAY,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAY7E,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIjB,CAAA;AAED,eAAO,MAAM,UAAU,4DAAsE,UAAU,4CAuBtG,CAAA;AAoED,eAAO,MAAM,WAAW,mFAAyF,kBAAkB,4CAsClI,CAAA"}
@@ -1,4 +1,5 @@
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
+ /* eslint-disable react-refresh/only-export-components */
2
3
  /* eslint-disable @typescript-eslint/no-unused-vars */
3
4
  import { Flex, IconBox, Text } from '@citric/core';
4
5
  import { ArrowLeft, ChevronDown } from '@citric/icons';
@@ -6,162 +7,164 @@ import { LoadingCircular } from '@citric/ui';
6
7
  import { listToClass, theme } from '@stack-spot/portal-theme';
7
8
  import { useMemo, useState } from 'react';
8
9
  import { styled } from 'styled-components';
10
+ import { useAnchorTag } from '../../layout-context.js';
9
11
  import { hideOverlayImmediately } from './MenuSections.js';
10
12
  import { PageSelector } from './PageSelector.js';
11
13
  import { MENU_CONTENT_ITEM_PADDING as ITEM_PADDING, MENU_CONTENT_PADDING as PADDING } from './constants.js';
12
14
  import { useCheckTextOverflow } from './use-check-text-overflow.js';
13
- const BackLink = styled.a `
14
- display: flex;
15
- flex-direction: row;
16
- align-items: center;
17
- margin: ${PADDING}px;
18
- margin-bottom: 16px;
19
- gap: 6px;
15
+ const BackLink = styled.a `
16
+ display: flex;
17
+ flex-direction: row;
18
+ align-items: center;
19
+ margin: ${PADDING}px;
20
+ margin-bottom: 16px;
21
+ gap: 6px;
20
22
  `;
21
- export const MenuGroup = styled.ul `
22
- padding: 0 0 0 16px;
23
- display: flex;
24
- flex-direction: column;
25
- visibility: hidden;
26
- transition: visibility 0s 0.3s;
27
-
28
- &.no-indentation {
29
- padding: 0;
30
- }
31
-
32
- .item-row-group > a {
33
- padding: 0 16px;
34
- margin: 0;
35
- border-radius: 0;
36
- }
37
-
38
- .item-row-group > a::before {
39
- content: '';
40
- position: absolute;
41
- top: 0;
42
- left: 0;
43
- right: 0;
44
- bottom: 0;
45
- background-color: var(--light-300);
46
- opacity: 0.24;
47
- border-radius: inherit;
48
- }
49
-
50
- .item-row {
51
- display: flex;
52
- flex-direction: row;
53
- gap: 8px;
54
- align-items: center;
55
-
56
- .label {
57
- flex: 1;
58
- &.hidden, &.ellipsis {
59
- white-space: nowrap;
60
- overflow: hidden;
61
- }
62
- &.ellipsis {
63
- text-overflow: ellipsis;
64
- }
65
- }
66
- }
67
-
68
- .item-row-group {
69
- margin-top: 16px;
70
- }
71
-
72
- li a {
73
- position: relative;
74
- height: 0;
75
- overflow: hidden;
76
- transition: height 0.3s, background-color 0.2s;
77
- margin-left: ${PADDING - ITEM_PADDING}px;
78
- padding-left: ${ITEM_PADDING}px;
79
-
80
- &:hover {
81
- background-color: ${theme.color.light['500']};
82
- }
83
-
84
- &.action {
85
- &:before {
86
- content: '';
87
- position: absolute;
88
- left: 2px;
89
- width: 2px;
90
- height: 0;
91
- background: inherit;
92
- transition: height 0.2s;
93
- }
94
-
95
- &.active {
96
-
97
- &:hover {
98
- background-color: transparent;
99
- }
100
-
101
- &:before {
102
- background: ${theme.color.primary['500']};
103
- height: 24px;
104
- }
105
- }
106
-
107
- &:not(.active):hover:before {
108
- background: ${theme.color.light.contrastText};
109
- height: 24px;
110
- }
111
- }
112
-
113
- .chevron {
114
- transition: transform 0.3s;
115
- &:not(.open) {
116
- transform: rotate(-90deg);
117
- }
118
- }
119
-
120
- .item-row-title {
121
- opacity: 0.7;
122
- }
123
- }
124
-
125
- &.open {
126
- visibility: visible;
127
- transition: unset;
128
- & > li > a, & > li > .item-row-group > a {
129
- height: 40px;
130
- }
131
- }
132
-
133
- &:not(.open) &.open > li > a {
134
- height: 0;
135
- }
136
-
137
- &.root {
138
- margin-bottom: ${PADDING}px;
139
-
140
- & > li {
141
- .group-title {
142
- margin-left: ${PADDING}px;
143
- margin-bottom: 5px;
144
- margin-top: 40px;
145
- display: block;
146
- }
147
-
148
- &:first-child {
149
- .group-title {
150
- margin-top: 0;
151
- }
152
- }
153
- }
154
- }
23
+ export const MenuGroup = styled.ul `
24
+ padding: 0 0 0 16px;
25
+ display: flex;
26
+ flex-direction: column;
27
+ visibility: hidden;
28
+ transition: visibility 0s 0.3s;
29
+
30
+ &.no-indentation {
31
+ padding: 0;
32
+ }
33
+
34
+ .item-row-group > a {
35
+ padding: 0 16px;
36
+ margin: 0;
37
+ border-radius: 0;
38
+ }
39
+
40
+ .item-row-group > a::before {
41
+ content: '';
42
+ position: absolute;
43
+ top: 0;
44
+ left: 0;
45
+ right: 0;
46
+ bottom: 0;
47
+ background-color: var(--light-300);
48
+ opacity: 0.24;
49
+ border-radius: inherit;
50
+ }
51
+
52
+ .item-row {
53
+ display: flex;
54
+ flex-direction: row;
55
+ gap: 8px;
56
+ align-items: center;
57
+
58
+ .label {
59
+ flex: 1;
60
+ &.hidden, &.ellipsis {
61
+ white-space: nowrap;
62
+ overflow: hidden;
63
+ }
64
+ &.ellipsis {
65
+ text-overflow: ellipsis;
66
+ }
67
+ }
68
+ }
69
+
70
+ .item-row-group {
71
+ margin-top: 16px;
72
+ }
73
+
74
+ li a {
75
+ position: relative;
76
+ height: 0;
77
+ overflow: hidden;
78
+ transition: height 0.3s, background-color 0.2s;
79
+ margin-left: ${PADDING - ITEM_PADDING}px;
80
+ padding-left: ${ITEM_PADDING}px;
81
+
82
+ &:hover {
83
+ background-color: ${theme.color.light['500']};
84
+ }
85
+
86
+ &.action {
87
+ &:before {
88
+ content: '';
89
+ position: absolute;
90
+ left: 2px;
91
+ width: 2px;
92
+ height: 0;
93
+ background: inherit;
94
+ transition: height 0.2s;
95
+ }
96
+
97
+ &.active {
98
+
99
+ &:hover {
100
+ background-color: transparent;
101
+ }
102
+
103
+ &:before {
104
+ background: ${theme.color.primary['500']};
105
+ height: 24px;
106
+ }
107
+ }
108
+
109
+ &:not(.active):hover:before {
110
+ background: ${theme.color.light.contrastText};
111
+ height: 24px;
112
+ }
113
+ }
114
+
115
+ .chevron {
116
+ transition: transform 0.3s;
117
+ &:not(.open) {
118
+ transform: rotate(-90deg);
119
+ }
120
+ }
121
+
122
+ .item-row-title {
123
+ opacity: 0.7;
124
+ }
125
+ }
126
+
127
+ &.open {
128
+ visibility: visible;
129
+ transition: unset;
130
+ & > li > a, & > li > .item-row-group > a {
131
+ height: 40px;
132
+ }
133
+ }
134
+
135
+ &:not(.open) &.open > li > a {
136
+ height: 0;
137
+ }
138
+
139
+ &.root {
140
+ margin-bottom: ${PADDING}px;
141
+
142
+ & > li {
143
+ .group-title {
144
+ margin-left: ${PADDING}px;
145
+ margin-bottom: 5px;
146
+ margin-top: 40px;
147
+ display: block;
148
+ }
149
+
150
+ &:first-child {
151
+ .group-title {
152
+ margin-top: 0;
153
+ }
154
+ }
155
+ }
156
+ }
155
157
  `;
156
- export const Title = styled.header `
157
- display: flex;
158
- flex-direction: column;
159
- margin: ${PADDING}px 0 24px ${PADDING}px;
158
+ export const Title = styled.header `
159
+ display: flex;
160
+ flex-direction: column;
161
+ margin: ${PADDING}px 0 24px ${PADDING}px;
160
162
  `;
161
163
  export const ActionItem = ({ label, onClick, href, active, icon, badge, overflow = 'wrap' }) => {
164
+ const Link = useAnchorTag();
162
165
  const { ref, overflow: textOverflow } = useCheckTextOverflow();
163
166
  const isTextLabel = typeof label === 'string';
164
- return (_jsxs("a", { href: href, onClick: () => {
167
+ return (_jsxs(Link, { href: href, onClick: () => {
165
168
  if (active)
166
169
  return;
167
170
  if (onClick)
@@ -1 +1 @@
1
- {"version":3,"file":"MenuContent.js","sourceRoot":"","sources":["../../../src/components/menu/MenuContent.tsx"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,OAAO,EAAE,IAAI,EAAE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layImmediately(): void;
3
- export declare const MenuSections: ({ sections, ...props }: MenuProps) => import("react/jsx-runtime").JSX.Element;
3
+ export declare const MenuSections: ({ sections, ...props }: MenuProps) => import("react/jsx-runtime.js").JSX.Element;
4
4
  //# sourceMappingURL=MenuSections.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MenuSections.d.ts","sourceRoot":"","sources":["../../../src/components/menu/MenuSections.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,SAAS,EAAe,MAAM,SAAS,CAAA;AAsBhD,wBAAgB,sBAAsB,SAOrC;AAyHD,eAAO,MAAM,YAAY,2BAAiC,SAAS,4CA6FlE,CAAA"}
1
+ {"version":3,"file":"MenuSections.d.ts","sourceRoot":"","sources":["../../../src/components/menu/MenuSections.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,SAAS,EAAe,MAAM,SAAS,CAAA;AAsBhD,wBAAgB,sBAAsB,SAOrC;AA0HD,eAAO,MAAM,YAAY,2BAAiC,SAAS,4CA8FlE,CAAA"}