@node-core/ui-components 1.0.1-cc5c2626b0639fe2088a736f54169ea3e10ed325 → 1.0.1-e1f87bde264af01e260a8efa4fab1749a2c6bc29
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/Common/AlertBox/index.js +5 -0
- package/Common/AlertBox/index.module.css +44 -50
- package/Common/AvatarGroup/Avatar/index.js +11 -0
- package/Common/AvatarGroup/Avatar/index.module.css +50 -30
- package/Common/AvatarGroup/Overlay/index.js +6 -0
- package/Common/AvatarGroup/Overlay/index.module.css +28 -21
- package/Common/AvatarGroup/index.js +21 -0
- package/Common/AvatarGroup/index.module.css +12 -11
- package/Common/Badge/index.js +7 -0
- package/Common/Badge/index.module.css +34 -26
- package/Common/BadgeGroup/index.js +6 -0
- package/Common/BadgeGroup/index.module.css +75 -51
- package/Common/Banner/index.js +4 -0
- package/Common/Banner/index.module.css +30 -27
- package/Common/BaseActiveLink/index.js +14 -0
- package/Common/BaseButton/index.js +10 -0
- package/Common/BaseButton/index.module.css +332 -105
- package/Common/BaseCodeBox/index.js +50 -0
- package/Common/BaseCodeBox/index.module.css +76 -58
- package/Common/BaseCrossLink/index.js +12 -0
- package/Common/BaseCrossLink/index.module.css +57 -39
- package/Common/BaseLinkTabs/index.js +5 -0
- package/Common/BaseLinkTabs/index.module.css +67 -33
- package/Common/BasePagination/Ellipsis/index.js +4 -0
- package/Common/BasePagination/Ellipsis/index.module.css +14 -8
- package/Common/BasePagination/PaginationListItem/index.js +6 -0
- package/Common/BasePagination/PaginationListItem/index.module.css +36 -21
- package/Common/BasePagination/PrevNextArrow.js +7 -0
- package/Common/BasePagination/index.js +10 -0
- package/Common/BasePagination/index.module.css +27 -26
- package/Common/BasePagination/useGetPageElements.js +77 -0
- package/Common/Blockquote/index.js +4 -0
- package/Common/Blockquote/index.module.css +44 -23
- package/Common/Breadcrumbs/BreadcrumbHomeLink/index.js +9 -0
- package/Common/Breadcrumbs/BreadcrumbHomeLink/index.module.css +3 -3
- package/Common/Breadcrumbs/BreadcrumbItem/index.js +6 -0
- package/Common/Breadcrumbs/BreadcrumbItem/index.module.css +38 -27
- package/Common/Breadcrumbs/BreadcrumbLink/index.js +5 -0
- package/Common/Breadcrumbs/BreadcrumbLink/index.module.css +26 -16
- package/Common/Breadcrumbs/BreadcrumbRoot/index.js +4 -0
- package/Common/Breadcrumbs/BreadcrumbRoot/index.module.css +8 -7
- package/Common/Breadcrumbs/BreadcrumbTruncatedItem/index.js +4 -0
- package/Common/Breadcrumbs/index.js +22 -0
- package/Common/ChangeHistory/index.js +9 -0
- package/Common/ChangeHistory/index.module.css +181 -66
- package/Common/CodeTabs/index.js +5 -0
- package/Common/CodeTabs/index.module.css +47 -36
- package/Common/DataTag/index.js +18 -0
- package/Common/DataTag/index.module.css +30 -32
- package/Common/GlowingBackdrop/index.js +5 -0
- package/Common/GlowingBackdrop/index.module.css +126 -28
- package/Common/LanguageDropDown/index.js +11 -0
- package/Common/LanguageDropDown/index.module.css +140 -42
- package/Common/Modal/index.js +10 -0
- package/Common/Modal/index.module.css +217 -62
- package/Common/NodejsLogo/index.js +7 -0
- package/Common/NodejsLogo/index.module.css +3 -4
- package/Common/Notification/index.js +6 -0
- package/Common/Notification/index.module.css +101 -17
- package/Common/Preview/index.js +7 -0
- package/Common/Preview/index.module.css +269 -65
- package/Common/Select/index.js +46 -0
- package/Common/Select/index.module.css +294 -127
- package/Common/Separator/index.js +7 -0
- package/Common/Separator/index.module.css +7 -10
- package/Common/Skeleton/index.js +18 -0
- package/Common/Skeleton/index.module.css +118 -21
- package/Common/Tabs/index.js +6 -0
- package/Common/Tabs/index.module.css +58 -40
- package/Common/ThemeToggle/index.js +7 -0
- package/Common/ThemeToggle/index.module.css +18 -11
- package/Common/Tooltip/index.js +8 -0
- package/Common/Tooltip/index.module.css +119 -29
- package/Containers/Article/index.js +4 -0
- package/Containers/Article/index.module.css +127 -58
- package/Containers/DocSideBar/index.js +1 -0
- package/Containers/Footer/index.js +22 -0
- package/Containers/Footer/index.module.css +51 -36
- package/Containers/MetaBar/index.js +12 -0
- package/Containers/MetaBar/index.module.css +101 -69
- package/Containers/NavBar/NavItem/index.js +7 -0
- package/Containers/NavBar/NavItem/index.module.css +50 -36
- package/Containers/NavBar/index.js +18 -0
- package/Containers/NavBar/index.module.css +176 -96
- package/Containers/Sidebar/ProgressionIcon/index.js +3 -0
- package/Containers/Sidebar/SidebarGroup/index.js +9 -0
- package/Containers/Sidebar/SidebarGroup/index.module.css +180 -52
- package/Containers/Sidebar/SidebarItem/index.js +11 -0
- package/Containers/Sidebar/SidebarItem/index.module.css +49 -38
- package/Containers/Sidebar/index.js +15 -0
- package/Containers/Sidebar/index.module.css +42 -24
- package/Icons/HexagonGrid.js +3 -0
- package/Icons/InstallationMethod/Choco.js +3 -0
- package/Icons/InstallationMethod/Devbox.js +3 -0
- package/Icons/InstallationMethod/Docker.js +3 -0
- package/Icons/InstallationMethod/FNM.js +3 -0
- package/Icons/InstallationMethod/Homebrew.js +3 -0
- package/Icons/InstallationMethod/N.js +5 -0
- package/Icons/InstallationMethod/NVM.js +3 -0
- package/Icons/InstallationMethod/Volta.js +3 -0
- package/Icons/InstallationMethod/{index.ts → index.js} +0 -1
- package/Icons/Logos/JsWhite.js +3 -0
- package/Icons/Logos/Nodejs.js +12 -0
- package/Icons/Logos/index.js +3 -0
- package/Icons/OperatingSystem/AIX.js +3 -0
- package/Icons/OperatingSystem/Apple.js +3 -0
- package/Icons/OperatingSystem/Linux.js +3 -0
- package/Icons/OperatingSystem/Microsoft.js +3 -0
- package/Icons/OperatingSystem/{index.ts → index.js} +0 -1
- package/Icons/PackageManager/Npm.js +3 -0
- package/Icons/PackageManager/Pnpm.js +3 -0
- package/Icons/PackageManager/Yarn.js +3 -0
- package/Icons/PackageManager/{index.ts → index.js} +0 -1
- package/Icons/Social/Bluesky.js +3 -0
- package/Icons/Social/Discord.js +3 -0
- package/Icons/Social/GitHub.js +3 -0
- package/Icons/Social/LinkedIn.js +3 -0
- package/Icons/Social/Mastodon.js +3 -0
- package/Icons/Social/Slack.js +3 -0
- package/Icons/Social/X.js +3 -0
- package/Icons/Social/{index.ts → index.js} +0 -1
- package/MDX/CodeTabs.js +16 -0
- package/package.json +6 -54
- package/stylelint/one-utility-class-per-line.mjs +34 -50
- package/stylelint/utils.mjs +19 -25
- package/styles/index.css +1124 -26
- package/types.js +1 -0
- package/Common/AlertBox/index.stories.tsx +0 -96
- package/Common/AlertBox/index.tsx +0 -24
- package/Common/AvatarGroup/Avatar/index.stories.tsx +0 -22
- package/Common/AvatarGroup/Avatar/index.tsx +0 -67
- package/Common/AvatarGroup/Overlay/index.stories.tsx +0 -33
- package/Common/AvatarGroup/Overlay/index.tsx +0 -37
- package/Common/AvatarGroup/__tests__/index.test.jsx +0 -55
- package/Common/AvatarGroup/index.stories.tsx +0 -56
- package/Common/AvatarGroup/index.tsx +0 -83
- package/Common/Badge/index.stories.tsx +0 -38
- package/Common/Badge/index.tsx +0 -35
- package/Common/BadgeGroup/index.stories.tsx +0 -35
- package/Common/BadgeGroup/index.tsx +0 -35
- package/Common/Banner/index.stories.tsx +0 -29
- package/Common/Banner/index.tsx +0 -18
- package/Common/BaseActiveLink/__tests__/index.test.jsx +0 -52
- package/Common/BaseActiveLink/index.tsx +0 -34
- package/Common/BaseButton/index.stories.tsx +0 -67
- package/Common/BaseButton/index.tsx +0 -59
- package/Common/BaseCodeBox/index.stories.tsx +0 -39
- package/Common/BaseCodeBox/index.tsx +0 -122
- package/Common/BaseCrossLink/index.stories.tsx +0 -38
- package/Common/BaseCrossLink/index.tsx +0 -46
- package/Common/BaseLinkTabs/index.stories.tsx +0 -34
- package/Common/BaseLinkTabs/index.tsx +0 -53
- package/Common/BasePagination/Ellipsis/index.stories.tsx +0 -10
- package/Common/BasePagination/Ellipsis/index.tsx +0 -11
- package/Common/BasePagination/PaginationListItem/__tests__/index.test.jsx +0 -58
- package/Common/BasePagination/PaginationListItem/index.stories.tsx +0 -40
- package/Common/BasePagination/PaginationListItem/index.tsx +0 -39
- package/Common/BasePagination/PrevNextArrow.tsx +0 -15
- package/Common/BasePagination/__tests__/index.test.jsx +0 -180
- package/Common/BasePagination/index.stories.tsx +0 -67
- package/Common/BasePagination/index.tsx +0 -77
- package/Common/BasePagination/useGetPageElements.tsx +0 -132
- package/Common/Blockquote/index.stories.tsx +0 -45
- package/Common/Blockquote/index.tsx +0 -11
- package/Common/Breadcrumbs/BreadcrumbHomeLink/index.tsx +0 -30
- package/Common/Breadcrumbs/BreadcrumbItem/index.tsx +0 -42
- package/Common/Breadcrumbs/BreadcrumbLink/index.tsx +0 -37
- package/Common/Breadcrumbs/BreadcrumbRoot/index.tsx +0 -20
- package/Common/Breadcrumbs/BreadcrumbTruncatedItem/index.tsx +0 -9
- package/Common/Breadcrumbs/index.stories.tsx +0 -94
- package/Common/Breadcrumbs/index.tsx +0 -81
- package/Common/ChangeHistory/index.stories.tsx +0 -130
- package/Common/ChangeHistory/index.tsx +0 -67
- package/Common/CodeTabs/index.stories.tsx +0 -73
- package/Common/CodeTabs/index.tsx +0 -16
- package/Common/DataTag/index.stories.tsx +0 -40
- package/Common/DataTag/index.tsx +0 -39
- package/Common/GlowingBackdrop/index.stories.tsx +0 -10
- package/Common/GlowingBackdrop/index.tsx +0 -13
- package/Common/LanguageDropDown/index.stories.tsx +0 -19
- package/Common/LanguageDropDown/index.tsx +0 -56
- package/Common/Modal/index.stories.tsx +0 -34
- package/Common/Modal/index.tsx +0 -50
- package/Common/NodejsLogo/index.stories.tsx +0 -14
- package/Common/NodejsLogo/index.tsx +0 -26
- package/Common/Notification/index.stories.tsx +0 -36
- package/Common/Notification/index.tsx +0 -34
- package/Common/Preview/index.stories.tsx +0 -44
- package/Common/Preview/index.tsx +0 -25
- package/Common/Select/__tests__/index.test.jsx +0 -67
- package/Common/Select/index.stories.tsx +0 -111
- package/Common/Select/index.tsx +0 -187
- package/Common/Separator/index.stories.tsx +0 -32
- package/Common/Separator/index.tsx +0 -27
- package/Common/Skeleton/index.tsx +0 -39
- package/Common/Tabs/__tests__/index.test.jsx +0 -52
- package/Common/Tabs/index.stories.tsx +0 -50
- package/Common/Tabs/index.tsx +0 -54
- package/Common/ThemeToggle/__tests__/index.test.jsx +0 -35
- package/Common/ThemeToggle/index.stories.tsx +0 -10
- package/Common/ThemeToggle/index.tsx +0 -15
- package/Common/Tooltip/index.stories.tsx +0 -73
- package/Common/Tooltip/index.tsx +0 -48
- package/Containers/Article/index.stories.tsx +0 -39
- package/Containers/Article/index.tsx +0 -9
- package/Containers/DocSideBar/index.tsx +0 -0
- package/Containers/Footer/index.stories.tsx +0 -27
- package/Containers/Footer/index.tsx +0 -95
- package/Containers/MetaBar/__tests__/index.test.jsx +0 -63
- package/Containers/MetaBar/index.stories.tsx +0 -80
- package/Containers/MetaBar/index.tsx +0 -72
- package/Containers/NavBar/NavItem/index.stories.tsx +0 -38
- package/Containers/NavBar/NavItem/index.tsx +0 -44
- package/Containers/NavBar/index.stories.tsx +0 -45
- package/Containers/NavBar/index.tsx +0 -94
- package/Containers/Sidebar/ProgressionIcon/index.tsx +0 -16
- package/Containers/Sidebar/SidebarGroup/index.stories.tsx +0 -36
- package/Containers/Sidebar/SidebarGroup/index.tsx +0 -49
- package/Containers/Sidebar/SidebarItem/index.stories.tsx +0 -15
- package/Containers/Sidebar/SidebarItem/index.tsx +0 -43
- package/Containers/Sidebar/index.stories.tsx +0 -88
- package/Containers/Sidebar/index.tsx +0 -70
- package/Icons/HexagonGrid.stories.tsx +0 -10
- package/Icons/HexagonGrid.tsx +0 -1434
- package/Icons/InstallationMethod/Choco.tsx +0 -78
- package/Icons/InstallationMethod/Devbox.tsx +0 -21
- package/Icons/InstallationMethod/Docker.tsx +0 -20
- package/Icons/InstallationMethod/FNM.tsx +0 -132
- package/Icons/InstallationMethod/Homebrew.tsx +0 -69
- package/Icons/InstallationMethod/N.tsx +0 -32
- package/Icons/InstallationMethod/NVM.tsx +0 -63
- package/Icons/InstallationMethod/Volta.tsx +0 -34
- package/Icons/Logos/JsGreen.tsx +0 -24
- package/Icons/Logos/JsWhite.tsx +0 -37
- package/Icons/Logos/Nodejs.tsx +0 -372
- package/Icons/Logos/NodejsStackedBlack.tsx +0 -98
- package/Icons/Logos/NodejsStackedDark.tsx +0 -124
- package/Icons/Logos/NodejsStackedLight.tsx +0 -123
- package/Icons/Logos/NodejsStackedWhite.tsx +0 -98
- package/Icons/Logos/index.ts +0 -17
- package/Icons/OperatingSystem/AIX.tsx +0 -46
- package/Icons/OperatingSystem/Apple.tsx +0 -23
- package/Icons/OperatingSystem/Linux.tsx +0 -969
- package/Icons/OperatingSystem/Microsoft.tsx +0 -19
- package/Icons/PackageManager/Npm.tsx +0 -21
- package/Icons/PackageManager/Pnpm.tsx +0 -22
- package/Icons/PackageManager/Yarn.tsx +0 -22
- package/Icons/Social/Bluesky.tsx +0 -19
- package/Icons/Social/Discord.tsx +0 -20
- package/Icons/Social/GitHub.tsx +0 -16
- package/Icons/Social/LinkedIn.tsx +0 -16
- package/Icons/Social/Mastodon.tsx +0 -36
- package/Icons/Social/Slack.tsx +0 -31
- package/Icons/Social/X.tsx +0 -16
- package/MDX/CodeTabs.tsx +0 -47
- package/stylelint/__tests__/index.test.mjs +0 -80
- package/styles/animations.css +0 -47
- package/styles/base.css +0 -17
- package/styles/effects.css +0 -12
- package/styles/markdown.css +0 -173
- package/styles/theme.css +0 -175
- package/types.ts +0 -25
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { Fragment, useMemo } from 'react';
|
|
3
|
+
import styles from './index.module.css';
|
|
4
|
+
const MetaBar = ({ items, headings, as: Component = 'a', heading, }) => {
|
|
5
|
+
// The default depth of headings to display in the table of contents.
|
|
6
|
+
const { minDepth = 2, items: headingItems = [] } = headings || {};
|
|
7
|
+
const filteredHeadings = useMemo(() => headingItems.filter(({ depth }) => depth >= minDepth && depth <= 4), [minDepth, headingItems]);
|
|
8
|
+
return (_jsx("div", { className: styles.wrapper, children: _jsxs("dl", { children: [Object.entries(items)
|
|
9
|
+
.filter(([, value]) => !!value)
|
|
10
|
+
.map(([key, value]) => (_jsxs(Fragment, { children: [_jsx("dt", { children: key }), _jsx("dd", { children: value })] }, key))), filteredHeadings.length > 0 && (_jsxs(_Fragment, { children: [_jsx("dt", { children: heading }), _jsx("dd", { children: _jsx("ol", { children: filteredHeadings.map(head => (_jsx("li", { className: head.depth === 3 ? 'pl-2' : head.depth === 4 ? 'pl-4' : '', children: _jsxs(Component, { href: `#${head?.data?.id}`, children: [' ', head.value] }) }, head.value))) }) })] }))] }) }));
|
|
11
|
+
};
|
|
12
|
+
export default MetaBar;
|
|
@@ -1,91 +1,123 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */
|
|
3
2
|
.wrapper {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
3
|
+
display: flex;
|
|
4
|
+
width: 100%;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
align-items: flex-start;
|
|
7
|
+
gap: calc(var(--spacing, 0.25rem)*8);
|
|
8
|
+
border-color: var(--color-neutral-200, #e9edf0);
|
|
9
|
+
padding-inline: calc(var(--spacing, 0.25rem)*4);
|
|
10
|
+
padding-block: calc(var(--spacing, 0.25rem)*6);
|
|
11
|
+
overflow-wrap: anywhere;
|
|
12
|
+
@media (width >= 64rem) {
|
|
13
|
+
position: sticky;
|
|
14
|
+
}
|
|
15
|
+
@media (width >= 64rem) {
|
|
16
|
+
top: calc(var(--spacing, 0.25rem)*0);
|
|
17
|
+
}
|
|
18
|
+
@media (width >= 64rem) {
|
|
19
|
+
max-height: 100vh;
|
|
20
|
+
}
|
|
21
|
+
@media (width >= 64rem) {
|
|
22
|
+
padding-inline: calc(var(--spacing, 0.25rem)*6);
|
|
23
|
+
}
|
|
24
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
25
|
+
border-color: var(--color-neutral-900, #2c3437);
|
|
26
|
+
}
|
|
19
27
|
dl {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
28
|
+
display: flex;
|
|
29
|
+
width: 100%;
|
|
30
|
+
flex-direction: column;
|
|
31
|
+
gap: calc(var(--spacing, 0.25rem)*1.5);
|
|
32
|
+
padding-bottom: calc(var(--spacing, 0.25rem)*12);
|
|
33
|
+
scrollbar-width: none;
|
|
34
|
+
@media (width >= 64rem) {
|
|
35
|
+
max-height: calc(100vh - var(--header-height));
|
|
36
|
+
}
|
|
37
|
+
@media (width >= 64rem) {
|
|
38
|
+
overflow-y: auto;
|
|
39
|
+
}
|
|
40
|
+
&::-webkit-scrollbar {
|
|
41
|
+
display: none;
|
|
42
|
+
}
|
|
29
43
|
}
|
|
30
|
-
|
|
31
44
|
dt {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
45
|
+
margin-bottom: calc(var(--spacing, 0.25rem)*2);
|
|
46
|
+
font-size: var(--text-sm, 0.875rem);
|
|
47
|
+
line-height: var(--tw-leading, var(--text-sm--line-height, 1.42857));
|
|
48
|
+
--tw-font-weight: var(--font-weight-medium, 500);
|
|
49
|
+
font-weight: var(--font-weight-medium, 500);
|
|
50
|
+
color: var(--color-neutral-800, #556066);
|
|
51
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
52
|
+
color: var(--color-neutral-200, #e9edf0);
|
|
53
|
+
}
|
|
37
54
|
}
|
|
38
|
-
|
|
39
55
|
dd {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
56
|
+
margin-bottom: calc(var(--spacing, 0.25rem)*8);
|
|
57
|
+
display: flex;
|
|
58
|
+
align-items: center;
|
|
59
|
+
gap: calc(var(--spacing, 0.25rem)*2);
|
|
60
|
+
font-size: var(--text-sm, 0.875rem);
|
|
61
|
+
line-height: var(--tw-leading, var(--text-sm--line-height, 1.42857));
|
|
62
|
+
color: var(--color-neutral-900, #2c3437);
|
|
63
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
64
|
+
color: var(--color-white, #fff);
|
|
65
|
+
}
|
|
48
66
|
a {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
67
|
+
--tw-font-weight: var(--font-weight-semibold, 600);
|
|
68
|
+
font-weight: var(--font-weight-semibold, 600);
|
|
69
|
+
color: var(--color-neutral-900, #2c3437);
|
|
70
|
+
text-decoration-line: underline;
|
|
71
|
+
@media (width < 670px) {
|
|
72
|
+
display: inline-block;
|
|
73
|
+
}
|
|
74
|
+
@media (width < 670px) {
|
|
75
|
+
padding-block: calc(var(--spacing, 0.25rem)*1);
|
|
76
|
+
}
|
|
77
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
78
|
+
color: var(--color-white, #fff);
|
|
79
|
+
}
|
|
56
80
|
&:hover {
|
|
57
|
-
|
|
58
|
-
|
|
81
|
+
color: var(--color-neutral-700, #6e7b83);
|
|
82
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
83
|
+
color: var(--color-neutral-500, #b1bcc2);
|
|
84
|
+
}
|
|
59
85
|
}
|
|
60
86
|
}
|
|
61
|
-
|
|
62
87
|
ol {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
88
|
+
display: flex;
|
|
89
|
+
width: 100%;
|
|
90
|
+
list-style-type: none;
|
|
91
|
+
flex-direction: column;
|
|
92
|
+
gap: calc(var(--spacing, 0.25rem)*1.5);
|
|
93
|
+
padding: calc(var(--spacing, 0.25rem)*0);
|
|
69
94
|
}
|
|
70
|
-
|
|
71
95
|
svg {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
96
|
+
width: calc(var(--spacing, 0.25rem)*4);
|
|
97
|
+
height: calc(var(--spacing, 0.25rem)*4);
|
|
98
|
+
color: var(--color-neutral-600, #929fa5);
|
|
99
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
100
|
+
color: var(--color-neutral-400, #cbd4d9);
|
|
101
|
+
}
|
|
75
102
|
}
|
|
76
|
-
|
|
77
103
|
&:last-child {
|
|
78
|
-
|
|
104
|
+
margin-bottom: calc(var(--spacing, 0.25rem)*0);
|
|
79
105
|
}
|
|
80
106
|
}
|
|
81
|
-
|
|
82
107
|
[data-on-dark] {
|
|
83
|
-
|
|
84
|
-
|
|
108
|
+
display: none;
|
|
109
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
110
|
+
display: block;
|
|
111
|
+
}
|
|
85
112
|
}
|
|
86
|
-
|
|
87
113
|
[data-on-light] {
|
|
88
|
-
|
|
89
|
-
|
|
114
|
+
display: block;
|
|
115
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
116
|
+
display: none;
|
|
117
|
+
}
|
|
90
118
|
}
|
|
91
119
|
}
|
|
120
|
+
@property --tw-font-weight {
|
|
121
|
+
syntax: "*";
|
|
122
|
+
inherits: false;
|
|
123
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { ArrowUpRightIcon } from '@heroicons/react/24/solid';
|
|
3
|
+
import classNames from 'classnames';
|
|
4
|
+
import BaseActiveLink from '#ui/Common/BaseActiveLink';
|
|
5
|
+
import styles from './index.module.css';
|
|
6
|
+
const NavItem = ({ href = '', type = 'nav', children, className, target, ...props }) => (_jsxs(BaseActiveLink, { target: target, href: href, className: classNames(styles.navItem, styles[type], className), activeClassName: styles.active, allowSubPath: href.startsWith('/'), ...props, children: [_jsx("span", { className: styles.label, children: children }), target === '_blank' && _jsx(ArrowUpRightIcon, { className: styles.icon })] }));
|
|
7
|
+
export default NavItem;
|
|
@@ -1,60 +1,74 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */
|
|
3
2
|
.navItem {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
3
|
+
display: inline-flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
gap: calc(var(--spacing, 0.25rem)*2);
|
|
6
|
+
border-radius: var(--radius-sm, 0.25rem);
|
|
7
|
+
padding-inline: calc(var(--spacing, 0.25rem)*3);
|
|
8
|
+
padding-block: calc(var(--spacing, 0.25rem)*2);
|
|
9
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
10
|
+
transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
|
|
11
|
+
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function, cubic-bezier(0.4, 0, 0.2, 1)));
|
|
12
|
+
transition-duration: var(--tw-duration, var(--default-transition-duration, 150ms));
|
|
13
|
+
}
|
|
12
14
|
.label {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
15
|
+
font-size: var(--text-base, 1rem);
|
|
16
|
+
line-height: var(--tw-leading, var(--text-base--line-height, 1.5));
|
|
17
|
+
--tw-font-weight: var(--font-weight-medium, 500);
|
|
18
|
+
font-weight: var(--font-weight-medium, 500);
|
|
19
|
+
@media (width >= 64rem) {
|
|
20
|
+
font-size: var(--text-sm, 0.875rem);
|
|
21
|
+
line-height: var(--tw-leading, var(--text-sm--line-height, 1.42857));
|
|
22
|
+
}
|
|
16
23
|
}
|
|
17
|
-
|
|
18
24
|
.icon {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
25
|
+
width: calc(var(--spacing, 0.25rem)*3);
|
|
26
|
+
height: calc(var(--spacing, 0.25rem)*3);
|
|
27
|
+
color: var(--color-neutral-500, #b1bcc2);
|
|
28
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
29
|
+
color: var(--color-neutral-200, #e9edf0);
|
|
30
|
+
}
|
|
22
31
|
}
|
|
23
|
-
|
|
24
32
|
&:hover {
|
|
25
|
-
|
|
26
|
-
|
|
33
|
+
background-color: var(--color-neutral-100, #f6f7f9);
|
|
34
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
35
|
+
background-color: var(--color-neutral-900, #2c3437);
|
|
36
|
+
}
|
|
27
37
|
}
|
|
28
|
-
|
|
29
38
|
&.nav {
|
|
30
39
|
.label {
|
|
31
|
-
|
|
32
|
-
|
|
40
|
+
color: var(--color-neutral-900, #2c3437);
|
|
41
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
42
|
+
color: var(--color-white, #fff);
|
|
43
|
+
}
|
|
33
44
|
}
|
|
34
|
-
|
|
35
45
|
&.active {
|
|
36
|
-
|
|
37
|
-
|
|
46
|
+
background-color: var(--color-green-600, #417e38);
|
|
38
47
|
.label {
|
|
39
|
-
|
|
48
|
+
color: var(--color-white, #fff);
|
|
40
49
|
}
|
|
41
|
-
|
|
42
50
|
.icon {
|
|
43
|
-
|
|
44
|
-
|
|
51
|
+
color: var(--color-white, #fff);
|
|
52
|
+
opacity: 50%;
|
|
45
53
|
}
|
|
46
54
|
}
|
|
47
55
|
}
|
|
48
|
-
|
|
49
56
|
&.footer {
|
|
50
57
|
.label {
|
|
51
|
-
|
|
52
|
-
|
|
58
|
+
color: var(--color-neutral-800, #556066);
|
|
59
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
60
|
+
color: var(--color-white, #fff);
|
|
61
|
+
}
|
|
53
62
|
}
|
|
54
|
-
|
|
55
63
|
&:hover {
|
|
56
|
-
|
|
57
|
-
|
|
64
|
+
background-color: var(--color-neutral-100, #f6f7f9);
|
|
65
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
66
|
+
background-color: var(--color-neutral-900, #2c3437);
|
|
67
|
+
}
|
|
58
68
|
}
|
|
59
69
|
}
|
|
60
70
|
}
|
|
71
|
+
@property --tw-font-weight {
|
|
72
|
+
syntax: "*";
|
|
73
|
+
inherits: false;
|
|
74
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import Hamburger from '@heroicons/react/24/solid/Bars3Icon';
|
|
4
|
+
import XMark from '@heroicons/react/24/solid/XMarkIcon';
|
|
5
|
+
import * as Label from '@radix-ui/react-label';
|
|
6
|
+
import classNames from 'classnames';
|
|
7
|
+
import { useState } from 'react';
|
|
8
|
+
import NavItem from '#ui/Containers/NavBar/NavItem';
|
|
9
|
+
import style from './index.module.css';
|
|
10
|
+
const navInteractionIcons = {
|
|
11
|
+
show: _jsx(Hamburger, { className: style.navInteractionIcon }),
|
|
12
|
+
close: _jsx(XMark, { className: style.navInteractionIcon }),
|
|
13
|
+
};
|
|
14
|
+
const NavBar = ({ children, Logo, as: Component = 'a', navItems, pathname, sidebarItemTogglerAriaLabel, }) => {
|
|
15
|
+
const [isMenuOpen, setIsMenuOpen] = useState(false);
|
|
16
|
+
return (_jsxs("nav", { className: style.container, children: [_jsxs("div", { className: style.nodeIconAndMobileItemsToggler, children: [_jsx(Component, { className: style.nodeIconWrapper, href: "/", "aria-label": "Home", children: _jsx(Logo, {}) }), _jsx(Label.Root, { className: style.sidebarItemTogglerLabel, htmlFor: "sidebarItemToggler", role: "button", "aria-label": sidebarItemTogglerAriaLabel, children: navInteractionIcons[isMenuOpen ? 'close' : 'show'] })] }), _jsx("input", { className: classNames(['peer', style.sidebarItemToggler]), id: "sidebarItemToggler", type: "checkbox", onChange: e => setIsMenuOpen(() => e.target.checked), "aria-label": sidebarItemTogglerAriaLabel, tabIndex: -1 }), _jsxs("div", { className: `${style.main} hidden peer-checked:flex`, children: [_jsx("div", { className: style.navItems, children: navItems.map(({ text, link, target }) => (_jsx(NavItem, { pathname: pathname, as: Component, href: link, target: target, children: text }, link))) }), _jsx("div", { className: style.actionsWrapper, children: children })] })] }));
|
|
17
|
+
};
|
|
18
|
+
export default NavBar;
|
|
@@ -1,125 +1,205 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */
|
|
3
2
|
.container {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
3
|
+
border-color: var(--color-neutral-200, #e9edf0);
|
|
4
|
+
background-color: var(--color-white, #fff);
|
|
5
|
+
@media (width >= 64rem) {
|
|
6
|
+
display: flex;
|
|
7
|
+
}
|
|
8
|
+
@media (width >= 64rem) {
|
|
9
|
+
height: calc(var(--spacing, 0.25rem)*16);
|
|
10
|
+
}
|
|
11
|
+
@media (width >= 64rem) {
|
|
12
|
+
flex-direction: row;
|
|
13
|
+
}
|
|
14
|
+
@media (width >= 64rem) {
|
|
15
|
+
align-items: center;
|
|
16
|
+
}
|
|
17
|
+
@media (width >= 64rem) {
|
|
18
|
+
gap: calc(var(--spacing, 0.25rem)*8);
|
|
19
|
+
}
|
|
20
|
+
@media (width >= 64rem) {
|
|
21
|
+
border-bottom-style: var(--tw-border-style);
|
|
22
|
+
border-bottom-width: 1px;
|
|
23
|
+
}
|
|
24
|
+
@media (width >= 64rem) {
|
|
25
|
+
padding-inline: calc(var(--spacing, 0.25rem)*8);
|
|
26
|
+
}
|
|
27
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
28
|
+
border-color: var(--color-neutral-900, #2c3437);
|
|
29
|
+
}
|
|
30
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
31
|
+
background-color: var(--color-neutral-950, #0d121c);
|
|
32
|
+
}
|
|
15
33
|
}
|
|
16
|
-
|
|
17
34
|
.nodeIconAndMobileItemsToggler {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
35
|
+
display: flex;
|
|
36
|
+
height: calc(var(--spacing, 0.25rem)*16);
|
|
37
|
+
flex-shrink: 0;
|
|
38
|
+
align-items: center;
|
|
39
|
+
border-bottom-style: var(--tw-border-style);
|
|
40
|
+
border-bottom-width: 1px;
|
|
41
|
+
border-color: var(--color-neutral-200, #e9edf0);
|
|
42
|
+
padding-inline: calc(var(--spacing, 0.25rem)*4);
|
|
43
|
+
@media (width >= 64rem) {
|
|
44
|
+
display: flex;
|
|
45
|
+
}
|
|
46
|
+
@media (width >= 64rem) {
|
|
47
|
+
height: 100%;
|
|
48
|
+
}
|
|
49
|
+
@media (width >= 64rem) {
|
|
50
|
+
align-items: center;
|
|
51
|
+
}
|
|
52
|
+
@media (width >= 64rem) {
|
|
53
|
+
border-style: var(--tw-border-style);
|
|
54
|
+
border-width: 0px;
|
|
55
|
+
}
|
|
56
|
+
@media (width >= 64rem) {
|
|
57
|
+
padding-inline: calc(var(--spacing, 0.25rem)*0);
|
|
58
|
+
}
|
|
59
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
60
|
+
border-color: var(--color-neutral-900, #2c3437);
|
|
61
|
+
}
|
|
31
62
|
}
|
|
32
|
-
|
|
33
63
|
.sidebarItemToggler {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
64
|
+
position: absolute;
|
|
65
|
+
right: calc(var(--spacing, 0.25rem)*4);
|
|
66
|
+
z-index: -10;
|
|
67
|
+
--tw-translate-y: -200%;
|
|
68
|
+
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
69
|
+
appearance: none;
|
|
70
|
+
opacity: 0%;
|
|
40
71
|
}
|
|
41
|
-
|
|
42
72
|
.nodeIconWrapper {
|
|
43
|
-
|
|
44
|
-
|
|
73
|
+
height: 30px;
|
|
74
|
+
flex: 1;
|
|
45
75
|
}
|
|
46
|
-
|
|
47
76
|
.navInteractionIcon,
|
|
48
77
|
.sidebarItemToggler {
|
|
49
|
-
|
|
78
|
+
width: calc(var(--spacing, 0.25rem)*6);
|
|
79
|
+
height: calc(var(--spacing, 0.25rem)*6);
|
|
50
80
|
}
|
|
51
|
-
|
|
52
81
|
.sidebarItemTogglerLabel {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
82
|
+
display: block;
|
|
83
|
+
cursor: pointer;
|
|
84
|
+
@media (width >= 64rem) {
|
|
85
|
+
display: none;
|
|
86
|
+
}
|
|
56
87
|
}
|
|
57
|
-
|
|
58
88
|
.main {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
89
|
+
flex: 1;
|
|
90
|
+
flex-direction: column;
|
|
91
|
+
justify-content: space-between;
|
|
92
|
+
gap: calc(var(--spacing, 0.25rem)*4);
|
|
93
|
+
@media (width >= 64rem) {
|
|
94
|
+
display: flex;
|
|
95
|
+
}
|
|
96
|
+
@media (width >= 64rem) {
|
|
97
|
+
flex-direction: row;
|
|
98
|
+
}
|
|
99
|
+
@media (width >= 64rem) {
|
|
100
|
+
align-items: center;
|
|
101
|
+
}
|
|
66
102
|
}
|
|
67
|
-
|
|
68
103
|
.navItems {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
104
|
+
display: flex;
|
|
105
|
+
flex-direction: column;
|
|
106
|
+
gap: calc(var(--spacing, 0.25rem)*0);
|
|
107
|
+
border-bottom-style: var(--tw-border-style);
|
|
108
|
+
border-bottom-width: 1px;
|
|
109
|
+
border-color: var(--color-neutral-200, #e9edf0);
|
|
110
|
+
padding: calc(var(--spacing, 0.25rem)*4);
|
|
111
|
+
@media (width >= 64rem) {
|
|
112
|
+
flex: 1;
|
|
113
|
+
}
|
|
114
|
+
@media (width >= 64rem) {
|
|
115
|
+
flex-direction: row;
|
|
116
|
+
}
|
|
117
|
+
@media (width >= 64rem) {
|
|
118
|
+
gap: calc(var(--spacing, 0.25rem)*1);
|
|
119
|
+
}
|
|
120
|
+
@media (width >= 64rem) {
|
|
121
|
+
border-style: var(--tw-border-style);
|
|
122
|
+
border-width: 0px;
|
|
123
|
+
}
|
|
124
|
+
@media (width >= 64rem) {
|
|
125
|
+
padding: calc(var(--spacing, 0.25rem)*0);
|
|
126
|
+
}
|
|
127
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
128
|
+
border-color: var(--color-neutral-900, #2c3437);
|
|
129
|
+
}
|
|
81
130
|
}
|
|
82
|
-
|
|
83
131
|
.actionsWrapper {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
132
|
+
display: flex;
|
|
133
|
+
flex-direction: row;
|
|
134
|
+
flex-wrap: wrap;
|
|
135
|
+
align-items: center;
|
|
136
|
+
justify-content: space-between;
|
|
137
|
+
gap: calc(var(--spacing, 0.25rem)*2);
|
|
138
|
+
border-bottom-style: var(--tw-border-style);
|
|
139
|
+
border-bottom-width: 1px;
|
|
140
|
+
border-color: var(--color-neutral-200, #e9edf0);
|
|
141
|
+
padding: calc(var(--spacing, 0.25rem)*4);
|
|
142
|
+
@media (width >= 40rem) {
|
|
143
|
+
flex-wrap: nowrap;
|
|
144
|
+
}
|
|
145
|
+
@media (width >= 64rem) {
|
|
146
|
+
flex-basis: calc(var(--spacing, 0.25rem)*96);
|
|
147
|
+
}
|
|
148
|
+
@media (width >= 64rem) {
|
|
149
|
+
border-style: var(--tw-border-style);
|
|
150
|
+
border-width: 0px;
|
|
151
|
+
}
|
|
152
|
+
@media (width >= 64rem) {
|
|
153
|
+
padding: calc(var(--spacing, 0.25rem)*0);
|
|
154
|
+
}
|
|
155
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
156
|
+
border-color: var(--color-neutral-900, #2c3437);
|
|
157
|
+
}
|
|
98
158
|
}
|
|
99
|
-
|
|
100
159
|
span.searchButtonSkeleton {
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
160
|
+
margin-block: 1px;
|
|
161
|
+
margin-right: calc(var(--spacing, 0.25rem)*2);
|
|
162
|
+
flex-grow: 1;
|
|
163
|
+
border-radius: var(--radius-xl, 0.75rem);
|
|
106
164
|
&:empty {
|
|
107
|
-
|
|
165
|
+
height: calc(var(--spacing, 0.25rem)*10);
|
|
108
166
|
}
|
|
109
167
|
}
|
|
110
|
-
|
|
111
168
|
.ghIconWrapper {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
169
|
+
width: calc(var(--spacing, 0.25rem)*9);
|
|
170
|
+
height: calc(var(--spacing, 0.25rem)*9);
|
|
171
|
+
border-radius: var(--radius-md, 0.375rem);
|
|
172
|
+
padding: calc(var(--spacing, 0.25rem)*2);
|
|
116
173
|
svg {
|
|
117
|
-
|
|
118
|
-
|
|
174
|
+
fill: var(--color-neutral-700, #6e7b83);
|
|
175
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
176
|
+
fill: var(--color-neutral-300, #d9e1e4);
|
|
177
|
+
}
|
|
119
178
|
}
|
|
120
|
-
|
|
121
179
|
&:hover {
|
|
122
|
-
|
|
123
|
-
|
|
180
|
+
background-color: var(--color-neutral-100, #f6f7f9);
|
|
181
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
182
|
+
background-color: var(--color-neutral-900, #2c3437);
|
|
183
|
+
}
|
|
124
184
|
}
|
|
125
185
|
}
|
|
186
|
+
@property --tw-border-style {
|
|
187
|
+
syntax: "*";
|
|
188
|
+
inherits: false;
|
|
189
|
+
initial-value: solid;
|
|
190
|
+
}
|
|
191
|
+
@property --tw-translate-x {
|
|
192
|
+
syntax: "*";
|
|
193
|
+
inherits: false;
|
|
194
|
+
initial-value: 0;
|
|
195
|
+
}
|
|
196
|
+
@property --tw-translate-y {
|
|
197
|
+
syntax: "*";
|
|
198
|
+
inherits: false;
|
|
199
|
+
initial-value: 0;
|
|
200
|
+
}
|
|
201
|
+
@property --tw-translate-z {
|
|
202
|
+
syntax: "*";
|
|
203
|
+
inherits: false;
|
|
204
|
+
initial-value: 0;
|
|
205
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
const ProgressionIcon = props => (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "18", viewBox: "0 0 16 18", fill: "none", ...props, children: _jsx("path", { d: "M9 3.26795L8 2.6906L7 3.26795L3.5359 5.26795L2.5359 5.8453V7V11V12.1547L3.5359 12.7321L7 14.7321L8 15.3094L9 14.7321L12.4641 12.7321L13.4641 12.1547V11V7V5.8453L12.4641 5.26795L9 3.26795Z" }) }));
|
|
3
|
+
export default ProgressionIcon;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import classNames from 'classnames';
|
|
3
|
+
import SidebarItem from '#ui/Containers/Sidebar/SidebarItem';
|
|
4
|
+
import styles from './index.module.css';
|
|
5
|
+
const SidebarGroup = ({ groupName, items, showProgressionIcons, className, ...props }) => (_jsxs("section", { className: classNames({
|
|
6
|
+
[styles.group]: true,
|
|
7
|
+
[styles.progression]: showProgressionIcons,
|
|
8
|
+
}, className), children: [_jsx("label", { className: styles.groupName, children: groupName }), _jsx("ul", { className: styles.itemList, children: items.map(({ label, link }) => (_jsx(SidebarItem, { label: label, link: link, showProgressionIcons: showProgressionIcons, ...props }, link))) })] }));
|
|
9
|
+
export default SidebarGroup;
|