@node-core/ui-components 0.0.1 → 1.0.1-1b9af3ec9e0268bfc734b2489cbc584fa3edf026
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 +77 -0
- package/Common/AvatarGroup/Avatar/index.js +11 -0
- package/Common/AvatarGroup/Avatar/index.module.css +60 -0
- package/Common/AvatarGroup/Overlay/index.js +6 -0
- package/Common/AvatarGroup/Overlay/index.module.css +38 -0
- package/Common/AvatarGroup/index.js +21 -0
- package/Common/AvatarGroup/index.module.css +22 -0
- package/Common/Badge/index.js +7 -0
- package/Common/Badge/index.module.css +46 -0
- package/Common/BadgeGroup/index.js +6 -0
- package/Common/BadgeGroup/index.module.css +101 -0
- package/Common/Banner/index.js +4 -0
- package/Common/Banner/index.module.css +45 -0
- package/Common/BaseActiveLink/index.js +14 -0
- package/Common/BaseButton/index.js +10 -0
- package/Common/BaseButton/index.module.css +372 -0
- package/Common/BaseCodeBox/index.js +50 -0
- package/Common/BaseCodeBox/index.module.css +96 -0
- package/Common/BaseCrossLink/index.js +12 -0
- package/Common/BaseCrossLink/index.module.css +69 -0
- package/Common/BaseLinkTabs/index.js +5 -0
- package/Common/BaseLinkTabs/index.module.css +77 -0
- package/Common/BasePagination/Ellipsis/index.js +4 -0
- package/Common/BasePagination/Ellipsis/index.module.css +16 -0
- package/Common/BasePagination/PaginationListItem/index.js +6 -0
- package/Common/BasePagination/PaginationListItem/index.module.css +42 -0
- package/Common/BasePagination/PrevNextArrow.js +7 -0
- package/Common/BasePagination/index.js +10 -0
- package/Common/BasePagination/index.module.css +40 -0
- package/Common/BasePagination/useGetPageElements.js +77 -0
- package/Common/Blockquote/index.js +4 -0
- package/Common/Blockquote/index.module.css +50 -0
- package/Common/Breadcrumbs/BreadcrumbHomeLink/index.js +9 -0
- package/Common/Breadcrumbs/BreadcrumbHomeLink/index.module.css +5 -0
- package/Common/Breadcrumbs/BreadcrumbItem/index.js +6 -0
- package/Common/Breadcrumbs/BreadcrumbItem/index.module.css +52 -0
- package/Common/Breadcrumbs/BreadcrumbLink/index.js +5 -0
- package/Common/Breadcrumbs/BreadcrumbLink/index.module.css +32 -0
- package/Common/Breadcrumbs/BreadcrumbRoot/index.js +4 -0
- package/Common/Breadcrumbs/BreadcrumbRoot/index.module.css +10 -0
- 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 +198 -0
- package/Common/CodeTabs/index.js +5 -0
- package/Common/CodeTabs/index.module.css +67 -0
- package/Common/DataTag/index.js +18 -0
- package/Common/DataTag/index.module.css +54 -0
- package/Common/GlowingBackdrop/index.js +5 -0
- package/Common/GlowingBackdrop/index.module.css +130 -0
- package/Common/LanguageDropDown/index.js +11 -0
- package/Common/LanguageDropDown/index.module.css +151 -0
- package/Common/Modal/index.js +10 -0
- package/Common/Modal/index.module.css +234 -0
- package/Common/NodejsLogo/index.js +7 -0
- package/Common/NodejsLogo/index.module.css +5 -0
- package/Common/Notification/index.js +6 -0
- package/Common/Notification/index.module.css +104 -0
- package/Common/Preview/index.js +7 -0
- package/Common/Preview/index.module.css +283 -0
- package/Common/Select/index.js +46 -0
- package/Common/Select/index.module.css +328 -0
- package/Common/Separator/index.js +7 -0
- package/Common/Separator/index.module.css +13 -0
- package/Common/Skeleton/index.js +18 -0
- package/Common/Skeleton/index.module.css +127 -0
- package/Common/Tabs/index.js +6 -0
- package/Common/Tabs/index.module.css +72 -0
- package/Common/ThemeToggle/index.js +7 -0
- package/Common/ThemeToggle/index.module.css +22 -0
- package/Common/Tooltip/index.js +8 -0
- package/Common/Tooltip/index.module.css +133 -0
- package/Containers/Article/index.js +4 -0
- package/Containers/Article/index.module.css +139 -0
- package/Containers/DocSideBar/index.js +1 -0
- package/Containers/Footer/index.js +22 -0
- package/Containers/Footer/index.module.css +61 -0
- package/Containers/MetaBar/index.js +12 -0
- package/Containers/MetaBar/index.module.css +123 -0
- package/Containers/NavBar/NavItem/index.js +7 -0
- package/Containers/NavBar/NavItem/index.module.css +74 -0
- package/Containers/NavBar/index.js +18 -0
- package/Containers/NavBar/index.module.css +205 -0
- package/Containers/Sidebar/ProgressionIcon/index.js +3 -0
- package/Containers/Sidebar/SidebarGroup/index.js +9 -0
- package/Containers/Sidebar/SidebarGroup/index.module.css +192 -0
- package/Containers/Sidebar/SidebarItem/index.js +11 -0
- package/Containers/Sidebar/SidebarItem/index.module.css +67 -0
- package/Containers/Sidebar/index.js +15 -0
- package/Containers/Sidebar/index.module.css +48 -0
- 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.js +9 -0
- package/Icons/Logos/JsGreen.js +3 -0
- package/Icons/Logos/JsWhite.js +3 -0
- package/Icons/Logos/Nodejs.js +6 -0
- package/Icons/Logos/NodejsStackedBlack.js +3 -0
- package/Icons/Logos/NodejsStackedDark.js +3 -0
- package/Icons/Logos/NodejsStackedLight.js +3 -0
- package/Icons/Logos/NodejsStackedWhite.js +3 -0
- package/Icons/Logos/index.js +8 -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.js +5 -0
- 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.js +4 -0
- 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.js +8 -0
- package/LICENSE +21 -0
- package/MDX/CodeTabs.js +16 -0
- package/package.json +39 -5
- package/stylelint/one-utility-class-per-line.mjs +48 -0
- package/stylelint/utils.mjs +47 -0
- package/styles/index.css +1139 -0
- package/types.js +1 -0
- package/README.md +0 -1
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */
|
|
2
|
+
.content {
|
|
3
|
+
border-radius: var(--radius-md, 0.375rem);
|
|
4
|
+
border-style: var(--tw-border-style);
|
|
5
|
+
border-width: 1px;
|
|
6
|
+
background-color: var(--color-white, #fff);
|
|
7
|
+
font-size: var(--text-sm, 0.875rem);
|
|
8
|
+
line-height: var(--tw-leading, var(--text-sm--line-height, 1.42857));
|
|
9
|
+
--tw-font-weight: var(--font-weight-medium, 500);
|
|
10
|
+
font-weight: var(--font-weight-medium, 500);
|
|
11
|
+
color: var(--color-neutral-900, #2c3437);
|
|
12
|
+
--tw-shadow: 0px 4px 6px -2px var(--tw-shadow-color, color-mix(in srgb, #101828 3%, transparent)), 0px 12px 16px -4px var(--tw-shadow-color, color-mix(in srgb, #101828 8%, transparent));
|
|
13
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
14
|
+
--tw-shadow: 0px 4px 6px -2px var(--tw-shadow-color, color-mix(in oklab, var(--color-shadow, #101828) 3%, transparent)), 0px 12px 16px -4px var(--tw-shadow-color, color-mix(in oklab, var(--color-shadow, #101828) 8%, transparent));
|
|
15
|
+
}
|
|
16
|
+
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
17
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
18
|
+
background-color: var(--color-neutral-950, #0d121c);
|
|
19
|
+
}
|
|
20
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
21
|
+
color: var(--color-white, #fff);
|
|
22
|
+
}
|
|
23
|
+
&.default {
|
|
24
|
+
border-color: var(--color-neutral-200, #e9edf0);
|
|
25
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
26
|
+
border-color: var(--color-neutral-900, #2c3437);
|
|
27
|
+
}
|
|
28
|
+
.arrow {
|
|
29
|
+
fill: var(--color-neutral-200, #e9edf0);
|
|
30
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
31
|
+
fill: var(--color-neutral-900, #2c3437);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
&.error {
|
|
36
|
+
border-color: var(--color-danger-400, #fa8e8e);
|
|
37
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
38
|
+
border-color: var(--color-danger-900, #661514);
|
|
39
|
+
}
|
|
40
|
+
.arrow {
|
|
41
|
+
fill: var(--color-danger-400, #fa8e8e);
|
|
42
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
43
|
+
fill: var(--color-danger-900, #661514);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
&.warning {
|
|
48
|
+
border-color: var(--color-warning-400, #e99c40);
|
|
49
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
50
|
+
border-color: var(--color-warning-900, #4d2f0b);
|
|
51
|
+
}
|
|
52
|
+
.arrow {
|
|
53
|
+
fill: var(--color-warning-400, #e99c40);
|
|
54
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
55
|
+
fill: var(--color-warning-900, #4d2f0b);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
@property --tw-border-style {
|
|
61
|
+
syntax: "*";
|
|
62
|
+
inherits: false;
|
|
63
|
+
initial-value: solid;
|
|
64
|
+
}
|
|
65
|
+
@property --tw-font-weight {
|
|
66
|
+
syntax: "*";
|
|
67
|
+
inherits: false;
|
|
68
|
+
}
|
|
69
|
+
@property --tw-shadow {
|
|
70
|
+
syntax: "*";
|
|
71
|
+
inherits: false;
|
|
72
|
+
initial-value: 0 0 #0000;
|
|
73
|
+
}
|
|
74
|
+
@property --tw-shadow-color {
|
|
75
|
+
syntax: "*";
|
|
76
|
+
inherits: false;
|
|
77
|
+
}
|
|
78
|
+
@property --tw-shadow-alpha {
|
|
79
|
+
syntax: "<percentage>";
|
|
80
|
+
inherits: false;
|
|
81
|
+
initial-value: 100%;
|
|
82
|
+
}
|
|
83
|
+
@property --tw-inset-shadow {
|
|
84
|
+
syntax: "*";
|
|
85
|
+
inherits: false;
|
|
86
|
+
initial-value: 0 0 #0000;
|
|
87
|
+
}
|
|
88
|
+
@property --tw-inset-shadow-color {
|
|
89
|
+
syntax: "*";
|
|
90
|
+
inherits: false;
|
|
91
|
+
}
|
|
92
|
+
@property --tw-inset-shadow-alpha {
|
|
93
|
+
syntax: "<percentage>";
|
|
94
|
+
inherits: false;
|
|
95
|
+
initial-value: 100%;
|
|
96
|
+
}
|
|
97
|
+
@property --tw-ring-color {
|
|
98
|
+
syntax: "*";
|
|
99
|
+
inherits: false;
|
|
100
|
+
}
|
|
101
|
+
@property --tw-ring-shadow {
|
|
102
|
+
syntax: "*";
|
|
103
|
+
inherits: false;
|
|
104
|
+
initial-value: 0 0 #0000;
|
|
105
|
+
}
|
|
106
|
+
@property --tw-inset-ring-color {
|
|
107
|
+
syntax: "*";
|
|
108
|
+
inherits: false;
|
|
109
|
+
}
|
|
110
|
+
@property --tw-inset-ring-shadow {
|
|
111
|
+
syntax: "*";
|
|
112
|
+
inherits: false;
|
|
113
|
+
initial-value: 0 0 #0000;
|
|
114
|
+
}
|
|
115
|
+
@property --tw-ring-inset {
|
|
116
|
+
syntax: "*";
|
|
117
|
+
inherits: false;
|
|
118
|
+
}
|
|
119
|
+
@property --tw-ring-offset-width {
|
|
120
|
+
syntax: "<length>";
|
|
121
|
+
inherits: false;
|
|
122
|
+
initial-value: 0px;
|
|
123
|
+
}
|
|
124
|
+
@property --tw-ring-offset-color {
|
|
125
|
+
syntax: "*";
|
|
126
|
+
inherits: false;
|
|
127
|
+
initial-value: #fff;
|
|
128
|
+
}
|
|
129
|
+
@property --tw-ring-offset-shadow {
|
|
130
|
+
syntax: "*";
|
|
131
|
+
inherits: false;
|
|
132
|
+
initial-value: 0 0 #0000;
|
|
133
|
+
}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */
|
|
2
|
+
.articleLayout {
|
|
3
|
+
margin-inline: auto;
|
|
4
|
+
display: block;
|
|
5
|
+
width: 100%;
|
|
6
|
+
max-width: 95rem;
|
|
7
|
+
@media (width >= 40rem) {
|
|
8
|
+
display: grid;
|
|
9
|
+
}
|
|
10
|
+
@media (width >= 40rem) {
|
|
11
|
+
grid-template-columns: 13rem 1fr;
|
|
12
|
+
}
|
|
13
|
+
@media (width >= 40rem) {
|
|
14
|
+
grid-template-rows: 1fr;
|
|
15
|
+
}
|
|
16
|
+
@media (width >= 40rem) {
|
|
17
|
+
overflow: visible;
|
|
18
|
+
}
|
|
19
|
+
@media (width >= 40rem) {
|
|
20
|
+
grid-template-areas: 'sidebar main''sidebar footer';
|
|
21
|
+
}
|
|
22
|
+
@media (width >= 48rem) {
|
|
23
|
+
grid-template-columns: 16rem 1fr;
|
|
24
|
+
}
|
|
25
|
+
@media (width >= 64rem) {
|
|
26
|
+
grid-template-columns: 13rem 1fr 13rem;
|
|
27
|
+
}
|
|
28
|
+
@media (width >= 64rem) {
|
|
29
|
+
grid-template-areas: 'sidebar main metabar''sidebar footer metabar';
|
|
30
|
+
}
|
|
31
|
+
@media (width >= 80rem) {
|
|
32
|
+
grid-template-columns: 20rem 1fr 20rem;
|
|
33
|
+
}
|
|
34
|
+
> *:nth-child(1) {
|
|
35
|
+
grid-area: sidebar;
|
|
36
|
+
@media (width >= 64rem) {
|
|
37
|
+
position: sticky;
|
|
38
|
+
}
|
|
39
|
+
@media (width >= 64rem) {
|
|
40
|
+
top: calc(var(--spacing, 0.25rem)*0);
|
|
41
|
+
}
|
|
42
|
+
@media (width >= 64rem) {
|
|
43
|
+
height: 100vh;
|
|
44
|
+
}
|
|
45
|
+
@media (width >= 64rem) {
|
|
46
|
+
overflow-y: auto;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
> *:nth-child(2) {
|
|
50
|
+
display: contents;
|
|
51
|
+
@media (width >= 40rem) {
|
|
52
|
+
@media (width < 64rem) {
|
|
53
|
+
display: block;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
> *:first-child {
|
|
57
|
+
padding: calc(var(--spacing, 0.25rem)*4);
|
|
58
|
+
grid-area: main;
|
|
59
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
60
|
+
scroll-behavior: smooth;
|
|
61
|
+
}
|
|
62
|
+
@media (width >= 40rem) {
|
|
63
|
+
background-image: linear-gradient( 180deg, color-mix(in srgb, #f6f7f9 50%, transparent) 0%, color-mix(in srgb, #f6f7f9 0%, transparent) 48.32% );
|
|
64
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
65
|
+
background-image: linear-gradient( 180deg, color-mix(in oklab, var(--color-neutral-100) 50%, transparent) 0%, color-mix(in oklab, var(--color-neutral-100) 0%, transparent) 48.32% );
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
@media (width >= 40rem) {
|
|
69
|
+
background-attachment: fixed;
|
|
70
|
+
}
|
|
71
|
+
@media (width >= 40rem) {
|
|
72
|
+
padding: calc(var(--spacing, 0.25rem)*12);
|
|
73
|
+
}
|
|
74
|
+
@media (width >= 80rem) {
|
|
75
|
+
padding-inline: calc(var(--spacing, 0.25rem)*18);
|
|
76
|
+
}
|
|
77
|
+
@media (width >= 40rem) {
|
|
78
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
79
|
+
background-image: linear-gradient( 180deg, color-mix(in srgb, #2c3437 50%, transparent) 0%, color-mix(in srgb, #2c3437 0%, transparent) 48.32% );
|
|
80
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
81
|
+
background-image: linear-gradient( 180deg, color-mix(in oklab, var(--color-neutral-900) 50%, transparent) 0%, color-mix(in oklab, var(--color-neutral-900) 0%, transparent) 48.32% );
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
> *:last-child {
|
|
87
|
+
margin-top: calc(var(--spacing, 0.25rem)*8);
|
|
88
|
+
border-top-style: var(--tw-border-style);
|
|
89
|
+
border-top-width: 1px;
|
|
90
|
+
grid-area: metabar;
|
|
91
|
+
@media (width >= 40rem) {
|
|
92
|
+
margin-top: calc(var(--spacing, 0.25rem)*0);
|
|
93
|
+
}
|
|
94
|
+
@media (width >= 64rem) {
|
|
95
|
+
position: sticky;
|
|
96
|
+
}
|
|
97
|
+
@media (width >= 64rem) {
|
|
98
|
+
top: calc(var(--spacing, 0.25rem)*0);
|
|
99
|
+
}
|
|
100
|
+
@media (width >= 64rem) {
|
|
101
|
+
max-width: var(--container-xs, 20rem);
|
|
102
|
+
}
|
|
103
|
+
@media (width >= 64rem) {
|
|
104
|
+
border-top-style: var(--tw-border-style);
|
|
105
|
+
border-top-width: 0px;
|
|
106
|
+
}
|
|
107
|
+
@media (width >= 64rem) {
|
|
108
|
+
border-left-style: var(--tw-border-style);
|
|
109
|
+
border-left-width: 1px;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
> *:nth-child(3) {
|
|
114
|
+
position: sticky;
|
|
115
|
+
bottom: calc(var(--spacing, 0.25rem)*0);
|
|
116
|
+
display: flex;
|
|
117
|
+
width: 100%;
|
|
118
|
+
flex-direction: column;
|
|
119
|
+
align-items: center;
|
|
120
|
+
align-self: stretch;
|
|
121
|
+
border-top-style: var(--tw-border-style);
|
|
122
|
+
border-top-width: 1px;
|
|
123
|
+
border-top-color: var(--color-neutral-200, #e9edf0);
|
|
124
|
+
background-color: var(--color-white, #fff);
|
|
125
|
+
padding-block: calc(var(--spacing, 0.25rem)*4);
|
|
126
|
+
grid-area: footer;
|
|
127
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
128
|
+
border-top-color: var(--color-neutral-900, #2c3437);
|
|
129
|
+
}
|
|
130
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
131
|
+
background-color: var(--color-neutral-950, #0d121c);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
@property --tw-border-style {
|
|
136
|
+
syntax: "*";
|
|
137
|
+
inherits: false;
|
|
138
|
+
initial-value: solid;
|
|
139
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import NavItem from '#ui/Containers/NavBar/NavItem';
|
|
4
|
+
import { Bluesky, Discord, GitHub, LinkedIn, Mastodon, Slack, X, } from '#ui/Icons/Social';
|
|
5
|
+
import styles from './index.module.css';
|
|
6
|
+
const footerSocialIcons = {
|
|
7
|
+
github: GitHub,
|
|
8
|
+
mastodon: Mastodon,
|
|
9
|
+
twitter: X,
|
|
10
|
+
slack: Slack,
|
|
11
|
+
linkedin: LinkedIn,
|
|
12
|
+
bluesky: Bluesky,
|
|
13
|
+
discord: Discord,
|
|
14
|
+
};
|
|
15
|
+
const Footer = ({ pathname = '/', as = 'a', navigation }) => {
|
|
16
|
+
const openJSlink = navigation.footerLinks.at(-1);
|
|
17
|
+
return (_jsxs("footer", { className: styles.footer, children: [_jsx("div", { className: styles.sectionPrimary, children: navigation.footerLinks.slice(0, -1).map(item => (_jsx(NavItem, { type: "footer", href: item.link, as: as, pathname: pathname, children: item.text }, item.link))) }), _jsxs("div", { className: styles.sectionSecondary, children: [_jsxs(NavItem, { type: "footer", href: openJSlink.link, as: as, pathname: pathname, children: ["\u00A9 ", openJSlink.text] }), _jsx("div", { className: styles.social, children: navigation.socialLinks.map(link => {
|
|
18
|
+
const SocialIcon = footerSocialIcons[link.icon];
|
|
19
|
+
return (_jsx(NavItem, { href: link.link, type: "footer", as: as, pathname: pathname, children: _jsx(SocialIcon, { width: 20, height: 20, "aria-label": link.link }) }, link.icon));
|
|
20
|
+
}) })] })] }));
|
|
21
|
+
};
|
|
22
|
+
export default Footer;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */
|
|
2
|
+
.footer {
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
align-items: center;
|
|
6
|
+
gap: calc(var(--spacing, 0.25rem)*6);
|
|
7
|
+
border-top-style: var(--tw-border-style);
|
|
8
|
+
border-top-width: 1px;
|
|
9
|
+
border-color: var(--color-neutral-200, #e9edf0);
|
|
10
|
+
background-color: var(--color-white, #fff);
|
|
11
|
+
padding-block: calc(var(--spacing, 0.25rem)*4);
|
|
12
|
+
@media (width >= 40rem) {
|
|
13
|
+
padding-inline: calc(var(--spacing, 0.25rem)*8);
|
|
14
|
+
}
|
|
15
|
+
@media (width >= 48rem) {
|
|
16
|
+
flex-direction: row;
|
|
17
|
+
}
|
|
18
|
+
@media (width >= 48rem) {
|
|
19
|
+
justify-content: space-between;
|
|
20
|
+
}
|
|
21
|
+
@media (width >= 48rem) {
|
|
22
|
+
padding-block: calc(var(--spacing, 0.25rem)*5);
|
|
23
|
+
}
|
|
24
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
25
|
+
border-color: var(--color-neutral-900, #2c3437);
|
|
26
|
+
}
|
|
27
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
28
|
+
background-color: var(--color-neutral-950, #0d121c);
|
|
29
|
+
}
|
|
30
|
+
.sectionPrimary {
|
|
31
|
+
display: flex;
|
|
32
|
+
flex-wrap: wrap;
|
|
33
|
+
align-content: flex-start;
|
|
34
|
+
align-items: center;
|
|
35
|
+
justify-content: center;
|
|
36
|
+
gap: calc(var(--spacing, 0.25rem)*1);
|
|
37
|
+
align-self: stretch;
|
|
38
|
+
a {
|
|
39
|
+
white-space: nowrap;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
.sectionSecondary {
|
|
43
|
+
display: flex;
|
|
44
|
+
flex-direction: column;
|
|
45
|
+
align-items: center;
|
|
46
|
+
gap: calc(var(--spacing, 0.25rem)*1);
|
|
47
|
+
@media (width >= 48rem) {
|
|
48
|
+
flex-direction: row;
|
|
49
|
+
}
|
|
50
|
+
.social {
|
|
51
|
+
display: flex;
|
|
52
|
+
align-items: center;
|
|
53
|
+
gap: calc(var(--spacing, 0.25rem)*1);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
@property --tw-border-style {
|
|
58
|
+
syntax: "*";
|
|
59
|
+
inherits: false;
|
|
60
|
+
initial-value: solid;
|
|
61
|
+
}
|
|
@@ -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;
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */
|
|
2
|
+
.wrapper {
|
|
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
|
+
}
|
|
27
|
+
dl {
|
|
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
|
+
}
|
|
43
|
+
}
|
|
44
|
+
dt {
|
|
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
|
+
}
|
|
54
|
+
}
|
|
55
|
+
dd {
|
|
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
|
+
}
|
|
66
|
+
a {
|
|
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
|
+
}
|
|
80
|
+
&:hover {
|
|
81
|
+
color: var(--color-neutral-700, #6e7b83);
|
|
82
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
83
|
+
color: var(--color-neutral-500, #b1bcc2);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
ol {
|
|
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);
|
|
94
|
+
}
|
|
95
|
+
svg {
|
|
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
|
+
}
|
|
102
|
+
}
|
|
103
|
+
&:last-child {
|
|
104
|
+
margin-bottom: calc(var(--spacing, 0.25rem)*0);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
[data-on-dark] {
|
|
108
|
+
display: none;
|
|
109
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
110
|
+
display: block;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
[data-on-light] {
|
|
114
|
+
display: block;
|
|
115
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
116
|
+
display: none;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
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;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */
|
|
2
|
+
.navItem {
|
|
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
|
+
}
|
|
14
|
+
.label {
|
|
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
|
+
}
|
|
23
|
+
}
|
|
24
|
+
.icon {
|
|
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
|
+
}
|
|
31
|
+
}
|
|
32
|
+
&:hover {
|
|
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
|
+
}
|
|
37
|
+
}
|
|
38
|
+
&.nav {
|
|
39
|
+
.label {
|
|
40
|
+
color: var(--color-neutral-900, #2c3437);
|
|
41
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
42
|
+
color: var(--color-white, #fff);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
&.active {
|
|
46
|
+
background-color: var(--color-green-600, #417e38);
|
|
47
|
+
.label {
|
|
48
|
+
color: var(--color-white, #fff);
|
|
49
|
+
}
|
|
50
|
+
.icon {
|
|
51
|
+
color: var(--color-white, #fff);
|
|
52
|
+
opacity: 50%;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
&.footer {
|
|
57
|
+
.label {
|
|
58
|
+
color: var(--color-neutral-800, #556066);
|
|
59
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
60
|
+
color: var(--color-white, #fff);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
&:hover {
|
|
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
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
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;
|