@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,67 @@
|
|
|
1
|
+
/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */
|
|
2
|
+
.root {
|
|
3
|
+
> [role='tabpanel'] > :first-child {
|
|
4
|
+
border-top-left-radius: 0;
|
|
5
|
+
border-top-right-radius: 0;
|
|
6
|
+
}
|
|
7
|
+
> div:nth-of-type(1) {
|
|
8
|
+
display: flex;
|
|
9
|
+
border-top-left-radius: 0.25rem;
|
|
10
|
+
border-top-right-radius: 0.25rem;
|
|
11
|
+
border-inline-style: var(--tw-border-style);
|
|
12
|
+
border-inline-width: 1px;
|
|
13
|
+
border-top-style: var(--tw-border-style);
|
|
14
|
+
border-top-width: 1px;
|
|
15
|
+
border-color: var(--color-neutral-900, #2c3437);
|
|
16
|
+
background-color: var(--color-neutral-950, #0d121c);
|
|
17
|
+
padding-inline: calc(var(--spacing, 0.25rem)*2);
|
|
18
|
+
padding-top: calc(var(--spacing, 0.25rem)*3);
|
|
19
|
+
@media (width >= 48rem) {
|
|
20
|
+
padding-inline: calc(var(--spacing, 0.25rem)*4);
|
|
21
|
+
}
|
|
22
|
+
.trigger {
|
|
23
|
+
border-bottom-style: var(--tw-border-style);
|
|
24
|
+
border-bottom-width: 1px;
|
|
25
|
+
border-bottom-color: transparent;
|
|
26
|
+
padding-inline: calc(var(--spacing, 0.25rem)*1);
|
|
27
|
+
color: var(--color-neutral-200, #e9edf0);
|
|
28
|
+
&[data-state='active'] {
|
|
29
|
+
border-bottom-color: var(--color-green-400, #84ba64);
|
|
30
|
+
color: var(--color-green-400, #84ba64);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
.link {
|
|
34
|
+
display: none;
|
|
35
|
+
align-items: center;
|
|
36
|
+
gap: calc(var(--spacing, 0.25rem)*2);
|
|
37
|
+
text-align: center;
|
|
38
|
+
color: var(--color-neutral-200, #e9edf0);
|
|
39
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
40
|
+
transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
|
|
41
|
+
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function, cubic-bezier(0.4, 0, 0.2, 1)));
|
|
42
|
+
transition-duration: var(--tw-duration, var(--default-transition-duration, 150ms));
|
|
43
|
+
}
|
|
44
|
+
@media (width >= 64rem) {
|
|
45
|
+
display: flex;
|
|
46
|
+
}
|
|
47
|
+
& > .icon {
|
|
48
|
+
width: calc(var(--spacing, 0.25rem)*4);
|
|
49
|
+
height: calc(var(--spacing, 0.25rem)*4);
|
|
50
|
+
color: var(--color-neutral-300, #d9e1e4);
|
|
51
|
+
}
|
|
52
|
+
&:is(:link, :visited) {
|
|
53
|
+
&:hover {
|
|
54
|
+
color: var(--color-neutral-400, #cbd4d9);
|
|
55
|
+
& > .icon {
|
|
56
|
+
color: var(--color-neutral-600, #929fa5);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
@property --tw-border-style {
|
|
64
|
+
syntax: "*";
|
|
65
|
+
inherits: false;
|
|
66
|
+
initial-value: solid;
|
|
67
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import classNames from 'classnames';
|
|
3
|
+
import styles from './index.module.css';
|
|
4
|
+
// These symbols match up with the types used in
|
|
5
|
+
// node core, and the ones defined at
|
|
6
|
+
// https://github.com/nodejs/api-docs-tooling/blob/main/src/types.d.ts#L22 (`HeadingMetadataEntry['type']`)
|
|
7
|
+
const symbolMap = {
|
|
8
|
+
event: 'E',
|
|
9
|
+
method: 'M',
|
|
10
|
+
property: 'P',
|
|
11
|
+
class: 'C',
|
|
12
|
+
module: 'M',
|
|
13
|
+
classMethod: 'S',
|
|
14
|
+
global: 'G',
|
|
15
|
+
ctor: 'C',
|
|
16
|
+
};
|
|
17
|
+
const DataTag = ({ kind, size = 'md' }) => (_jsx("div", { className: classNames(styles.dataTag, styles[size], styles[kind]), children: _jsx("span", { children: symbolMap[kind] }) }));
|
|
18
|
+
export default DataTag;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */
|
|
2
|
+
.dataTag {
|
|
3
|
+
display: flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
justify-content: center;
|
|
6
|
+
border-radius: calc(infinity*1px);
|
|
7
|
+
--tw-font-weight: var(--font-weight-semibold, 600);
|
|
8
|
+
font-weight: var(--font-weight-semibold, 600);
|
|
9
|
+
color: var(--color-white, #fff);
|
|
10
|
+
&.lg {
|
|
11
|
+
width: calc(var(--spacing, 0.25rem)*12);
|
|
12
|
+
height: calc(var(--spacing, 0.25rem)*12);
|
|
13
|
+
font-size: var(--text-2xl, 1.5rem);
|
|
14
|
+
line-height: var(--tw-leading, var(--text-2xl--line-height, 1.33333));
|
|
15
|
+
}
|
|
16
|
+
&.md {
|
|
17
|
+
width: calc(var(--spacing, 0.25rem)*10);
|
|
18
|
+
height: calc(var(--spacing, 0.25rem)*10);
|
|
19
|
+
font-size: var(--text-xl, 1.25rem);
|
|
20
|
+
line-height: var(--tw-leading, var(--text-xl--line-height, 1.4));
|
|
21
|
+
}
|
|
22
|
+
&.sm {
|
|
23
|
+
width: calc(var(--spacing, 0.25rem)*8);
|
|
24
|
+
height: calc(var(--spacing, 0.25rem)*8);
|
|
25
|
+
}
|
|
26
|
+
&.event {
|
|
27
|
+
background-color: var(--color-accent1-600, #9756d6);
|
|
28
|
+
}
|
|
29
|
+
&.method {
|
|
30
|
+
background-color: var(--color-info-600, #0c7bb3);
|
|
31
|
+
}
|
|
32
|
+
&.property {
|
|
33
|
+
background-color: var(--color-green-600, #417e38);
|
|
34
|
+
}
|
|
35
|
+
&.class {
|
|
36
|
+
background-color: var(--color-warning-600, #ae5f00);
|
|
37
|
+
}
|
|
38
|
+
&.module {
|
|
39
|
+
background-color: var(--color-red-600, oklch(0.577 0.245 27.325));
|
|
40
|
+
}
|
|
41
|
+
&.classMethod {
|
|
42
|
+
background-color: var(--color-blue-600, oklch(0.546 0.245 262.881));
|
|
43
|
+
}
|
|
44
|
+
&.ctor {
|
|
45
|
+
background-color: var(--color-accent2-600, #d6246e);
|
|
46
|
+
}
|
|
47
|
+
&.global {
|
|
48
|
+
background-color: var(--color-amber-600, oklch(0.666 0.179 58.318));
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
@property --tw-font-weight {
|
|
52
|
+
syntax: "*";
|
|
53
|
+
inherits: false;
|
|
54
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import HexagonGrid from '#ui/Icons/HexagonGrid';
|
|
3
|
+
import styles from './index.module.css';
|
|
4
|
+
const GlowingBackdrop = () => (_jsx("div", { className: styles.glowingBackdrop, children: _jsx(HexagonGrid, {}) }));
|
|
5
|
+
export default GlowingBackdrop;
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */
|
|
2
|
+
.glowingBackdrop {
|
|
3
|
+
position: absolute;
|
|
4
|
+
top: calc(var(--spacing, 0.25rem)*0);
|
|
5
|
+
left: calc(var(--spacing, 0.25rem)*0);
|
|
6
|
+
z-index: -10;
|
|
7
|
+
width: 100%;
|
|
8
|
+
height: 100%;
|
|
9
|
+
opacity: 50%;
|
|
10
|
+
&::after {
|
|
11
|
+
content: var(--tw-content);
|
|
12
|
+
position: absolute;
|
|
13
|
+
}
|
|
14
|
+
&::after {
|
|
15
|
+
content: var(--tw-content);
|
|
16
|
+
inset: calc(var(--spacing, 0.25rem)*0);
|
|
17
|
+
}
|
|
18
|
+
&::after {
|
|
19
|
+
content: var(--tw-content);
|
|
20
|
+
margin: auto;
|
|
21
|
+
}
|
|
22
|
+
&::after {
|
|
23
|
+
content: var(--tw-content);
|
|
24
|
+
aspect-ratio: 1 / 1;
|
|
25
|
+
}
|
|
26
|
+
&::after {
|
|
27
|
+
content: var(--tw-content);
|
|
28
|
+
width: 300px;
|
|
29
|
+
}
|
|
30
|
+
&::after {
|
|
31
|
+
content: var(--tw-content);
|
|
32
|
+
border-radius: calc(infinity*1px);
|
|
33
|
+
}
|
|
34
|
+
&::after {
|
|
35
|
+
content: var(--tw-content);
|
|
36
|
+
background-color: var(--color-green-300, #99cc7d);
|
|
37
|
+
}
|
|
38
|
+
&::after {
|
|
39
|
+
content: var(--tw-content);
|
|
40
|
+
--tw-blur: blur(120px);
|
|
41
|
+
filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
|
|
42
|
+
}
|
|
43
|
+
&::after {
|
|
44
|
+
content: var(--tw-content);
|
|
45
|
+
--tw-content: '';
|
|
46
|
+
content: var(--tw-content);
|
|
47
|
+
}
|
|
48
|
+
@media (width >= 48rem) {
|
|
49
|
+
opacity: 100%;
|
|
50
|
+
}
|
|
51
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
52
|
+
&::after {
|
|
53
|
+
content: var(--tw-content);
|
|
54
|
+
background-color: var(--color-green-700, #2c682c);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
svg {
|
|
58
|
+
position: absolute;
|
|
59
|
+
inset: calc(var(--spacing, 0.25rem)*0);
|
|
60
|
+
margin: auto;
|
|
61
|
+
aspect-ratio: 1.67;
|
|
62
|
+
max-width: 1004px;
|
|
63
|
+
object-fit: cover;
|
|
64
|
+
color: var(--color-neutral-300, #d9e1e4);
|
|
65
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
66
|
+
color: color-mix(in srgb, #2c3437 75%, transparent);
|
|
67
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
68
|
+
color: color-mix(in oklab, var(--color-neutral-900, #2c3437) 75%, transparent);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
@property --tw-content {
|
|
74
|
+
syntax: "*";
|
|
75
|
+
initial-value: "";
|
|
76
|
+
inherits: false;
|
|
77
|
+
}
|
|
78
|
+
@property --tw-blur {
|
|
79
|
+
syntax: "*";
|
|
80
|
+
inherits: false;
|
|
81
|
+
}
|
|
82
|
+
@property --tw-brightness {
|
|
83
|
+
syntax: "*";
|
|
84
|
+
inherits: false;
|
|
85
|
+
}
|
|
86
|
+
@property --tw-contrast {
|
|
87
|
+
syntax: "*";
|
|
88
|
+
inherits: false;
|
|
89
|
+
}
|
|
90
|
+
@property --tw-grayscale {
|
|
91
|
+
syntax: "*";
|
|
92
|
+
inherits: false;
|
|
93
|
+
}
|
|
94
|
+
@property --tw-hue-rotate {
|
|
95
|
+
syntax: "*";
|
|
96
|
+
inherits: false;
|
|
97
|
+
}
|
|
98
|
+
@property --tw-invert {
|
|
99
|
+
syntax: "*";
|
|
100
|
+
inherits: false;
|
|
101
|
+
}
|
|
102
|
+
@property --tw-opacity {
|
|
103
|
+
syntax: "*";
|
|
104
|
+
inherits: false;
|
|
105
|
+
}
|
|
106
|
+
@property --tw-saturate {
|
|
107
|
+
syntax: "*";
|
|
108
|
+
inherits: false;
|
|
109
|
+
}
|
|
110
|
+
@property --tw-sepia {
|
|
111
|
+
syntax: "*";
|
|
112
|
+
inherits: false;
|
|
113
|
+
}
|
|
114
|
+
@property --tw-drop-shadow {
|
|
115
|
+
syntax: "*";
|
|
116
|
+
inherits: false;
|
|
117
|
+
}
|
|
118
|
+
@property --tw-drop-shadow-color {
|
|
119
|
+
syntax: "*";
|
|
120
|
+
inherits: false;
|
|
121
|
+
}
|
|
122
|
+
@property --tw-drop-shadow-alpha {
|
|
123
|
+
syntax: "<percentage>";
|
|
124
|
+
inherits: false;
|
|
125
|
+
initial-value: 100%;
|
|
126
|
+
}
|
|
127
|
+
@property --tw-drop-shadow-size {
|
|
128
|
+
syntax: "*";
|
|
129
|
+
inherits: false;
|
|
130
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { LanguageIcon } from '@heroicons/react/24/outline';
|
|
3
|
+
import * as DropdownMenu from '@radix-ui/react-dropdown-menu';
|
|
4
|
+
import classNames from 'classnames';
|
|
5
|
+
import styles from './index.module.css';
|
|
6
|
+
const LanguageDropdown = ({ onChange = () => { }, currentLanguage, availableLanguages, ariaLabel, }) => {
|
|
7
|
+
return (_jsxs(DropdownMenu.Root, { children: [_jsx(DropdownMenu.Trigger, { asChild: true, children: _jsx("button", { className: styles.languageDropdown, "aria-label": ariaLabel, children: _jsx(LanguageIcon, { height: "20" }) }) }), _jsx(DropdownMenu.Portal, { children: _jsx(DropdownMenu.Content, { align: "start", className: styles.dropDownContent, sideOffset: 5, children: _jsx("div", { children: availableLanguages.map(({ name, code, localName }) => (_jsx(DropdownMenu.Item, { onClick: () => onChange({ name, code, localName }), className: classNames(styles.dropDownItem, {
|
|
8
|
+
[styles.currentDropDown]: code === currentLanguage,
|
|
9
|
+
}), children: localName }, code))) }) }) })] }));
|
|
10
|
+
};
|
|
11
|
+
export default LanguageDropdown;
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */
|
|
2
|
+
.languageDropdown {
|
|
3
|
+
height: calc(var(--spacing, 0.25rem)*9);
|
|
4
|
+
width: calc(var(--spacing, 0.25rem)*9);
|
|
5
|
+
border-radius: var(--radius-md, 0.375rem);
|
|
6
|
+
padding: calc(var(--spacing, 0.25rem)*2);
|
|
7
|
+
color: var(--color-neutral-700, #6e7b83);
|
|
8
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
9
|
+
transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
|
|
10
|
+
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function, cubic-bezier(0.4, 0, 0.2, 1)));
|
|
11
|
+
transition-duration: var(--tw-duration, var(--default-transition-duration, 150ms));
|
|
12
|
+
}
|
|
13
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
14
|
+
color: var(--color-neutral-300, #d9e1e4);
|
|
15
|
+
}
|
|
16
|
+
&:hover {
|
|
17
|
+
background-color: var(--color-neutral-100, #f6f7f9);
|
|
18
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
19
|
+
background-color: var(--color-neutral-900, #2c3437);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
.dropDownContent {
|
|
24
|
+
max-height: calc(var(--spacing, 0.25rem)*80);
|
|
25
|
+
width: calc(var(--spacing, 0.25rem)*48);
|
|
26
|
+
overflow: hidden;
|
|
27
|
+
border-radius: var(--radius-sm, 0.25rem);
|
|
28
|
+
border-style: var(--tw-border-style);
|
|
29
|
+
border-width: 1px;
|
|
30
|
+
border-color: var(--color-neutral-200, #e9edf0);
|
|
31
|
+
background-color: var(--color-white, #fff);
|
|
32
|
+
--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));
|
|
33
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
34
|
+
--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));
|
|
35
|
+
}
|
|
36
|
+
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
37
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
38
|
+
border-color: var(--color-neutral-900, #2c3437);
|
|
39
|
+
}
|
|
40
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
41
|
+
background-color: var(--color-neutral-950, #0d121c);
|
|
42
|
+
}
|
|
43
|
+
> div {
|
|
44
|
+
max-height: calc(var(--spacing, 0.25rem)*80);
|
|
45
|
+
width: calc(var(--spacing, 0.25rem)*48);
|
|
46
|
+
overflow-y: auto;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
.dropDownItem {
|
|
50
|
+
cursor: pointer;
|
|
51
|
+
padding-inline: calc(var(--spacing, 0.25rem)*2.5);
|
|
52
|
+
padding-block: calc(var(--spacing, 0.25rem)*1.5);
|
|
53
|
+
font-size: var(--text-sm, 0.875rem);
|
|
54
|
+
line-height: var(--tw-leading, var(--text-sm--line-height, 1.42857));
|
|
55
|
+
--tw-font-weight: var(--font-weight-medium, 500);
|
|
56
|
+
font-weight: var(--font-weight-medium, 500);
|
|
57
|
+
color: var(--color-neutral-800, #556066);
|
|
58
|
+
--tw-outline-style: none;
|
|
59
|
+
outline-style: none;
|
|
60
|
+
@media (forced-colors: active) {
|
|
61
|
+
outline: 2px solid transparent;
|
|
62
|
+
outline-offset: 2px;
|
|
63
|
+
}
|
|
64
|
+
&[data-highlighted] {
|
|
65
|
+
background-color: var(--color-green-600, #417e38);
|
|
66
|
+
}
|
|
67
|
+
&[data-highlighted] {
|
|
68
|
+
color: var(--color-white, #fff);
|
|
69
|
+
}
|
|
70
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
71
|
+
color: var(--color-white, #fff);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
.currentDropDown {
|
|
75
|
+
background-color: var(--color-green-600, #417e38);
|
|
76
|
+
color: var(--color-white, #fff);
|
|
77
|
+
}
|
|
78
|
+
@property --tw-border-style {
|
|
79
|
+
syntax: "*";
|
|
80
|
+
inherits: false;
|
|
81
|
+
initial-value: solid;
|
|
82
|
+
}
|
|
83
|
+
@property --tw-shadow {
|
|
84
|
+
syntax: "*";
|
|
85
|
+
inherits: false;
|
|
86
|
+
initial-value: 0 0 #0000;
|
|
87
|
+
}
|
|
88
|
+
@property --tw-shadow-color {
|
|
89
|
+
syntax: "*";
|
|
90
|
+
inherits: false;
|
|
91
|
+
}
|
|
92
|
+
@property --tw-shadow-alpha {
|
|
93
|
+
syntax: "<percentage>";
|
|
94
|
+
inherits: false;
|
|
95
|
+
initial-value: 100%;
|
|
96
|
+
}
|
|
97
|
+
@property --tw-inset-shadow {
|
|
98
|
+
syntax: "*";
|
|
99
|
+
inherits: false;
|
|
100
|
+
initial-value: 0 0 #0000;
|
|
101
|
+
}
|
|
102
|
+
@property --tw-inset-shadow-color {
|
|
103
|
+
syntax: "*";
|
|
104
|
+
inherits: false;
|
|
105
|
+
}
|
|
106
|
+
@property --tw-inset-shadow-alpha {
|
|
107
|
+
syntax: "<percentage>";
|
|
108
|
+
inherits: false;
|
|
109
|
+
initial-value: 100%;
|
|
110
|
+
}
|
|
111
|
+
@property --tw-ring-color {
|
|
112
|
+
syntax: "*";
|
|
113
|
+
inherits: false;
|
|
114
|
+
}
|
|
115
|
+
@property --tw-ring-shadow {
|
|
116
|
+
syntax: "*";
|
|
117
|
+
inherits: false;
|
|
118
|
+
initial-value: 0 0 #0000;
|
|
119
|
+
}
|
|
120
|
+
@property --tw-inset-ring-color {
|
|
121
|
+
syntax: "*";
|
|
122
|
+
inherits: false;
|
|
123
|
+
}
|
|
124
|
+
@property --tw-inset-ring-shadow {
|
|
125
|
+
syntax: "*";
|
|
126
|
+
inherits: false;
|
|
127
|
+
initial-value: 0 0 #0000;
|
|
128
|
+
}
|
|
129
|
+
@property --tw-ring-inset {
|
|
130
|
+
syntax: "*";
|
|
131
|
+
inherits: false;
|
|
132
|
+
}
|
|
133
|
+
@property --tw-ring-offset-width {
|
|
134
|
+
syntax: "<length>";
|
|
135
|
+
inherits: false;
|
|
136
|
+
initial-value: 0px;
|
|
137
|
+
}
|
|
138
|
+
@property --tw-ring-offset-color {
|
|
139
|
+
syntax: "*";
|
|
140
|
+
inherits: false;
|
|
141
|
+
initial-value: #fff;
|
|
142
|
+
}
|
|
143
|
+
@property --tw-ring-offset-shadow {
|
|
144
|
+
syntax: "*";
|
|
145
|
+
inherits: false;
|
|
146
|
+
initial-value: 0 0 #0000;
|
|
147
|
+
}
|
|
148
|
+
@property --tw-font-weight {
|
|
149
|
+
syntax: "*";
|
|
150
|
+
inherits: false;
|
|
151
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { XMarkIcon } from '@heroicons/react/24/outline';
|
|
4
|
+
import * as Dialog from '@radix-ui/react-dialog';
|
|
5
|
+
import styles from './index.module.css';
|
|
6
|
+
const Modal = ({ children, open = false, onOpenChange = () => { }, }) => (_jsx(Dialog.Root, { open: open, onOpenChange: onOpenChange, children: _jsx(Dialog.Portal, { children: _jsx(Dialog.Overlay, { className: styles.overlay, children: _jsxs(Dialog.Content, { className: styles.content, children: [_jsx(Dialog.Trigger, { className: styles.close, children: _jsx(XMarkIcon, {}) }), children, _jsx(Dialog.Close, {})] }) }) }) }));
|
|
7
|
+
const Title = ({ children }) => (_jsx(Dialog.Title, { className: styles.title, children: children }));
|
|
8
|
+
const Description = ({ children }) => (_jsx(Dialog.Description, { className: styles.description, children: children }));
|
|
9
|
+
const Content = ({ children }) => (_jsx("main", { className: styles.wrapper, children: children }));
|
|
10
|
+
export { Modal, Title, Description, Content };
|
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */
|
|
2
|
+
.overlay {
|
|
3
|
+
position: fixed;
|
|
4
|
+
inset: calc(var(--spacing, 0.25rem)*0);
|
|
5
|
+
display: flex;
|
|
6
|
+
justify-content: center;
|
|
7
|
+
background-color: color-mix(in srgb, #fff 40%, transparent);
|
|
8
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
9
|
+
background-color: color-mix(in oklab, var(--color-white, #fff) 40%, transparent);
|
|
10
|
+
}
|
|
11
|
+
--tw-backdrop-blur: blur(2px);
|
|
12
|
+
-webkit-backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
|
|
13
|
+
backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
|
|
14
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
15
|
+
background-color: color-mix(in srgb, #0d121c 40%, transparent);
|
|
16
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
17
|
+
background-color: color-mix(in oklab, var(--color-neutral-950, #0d121c) 40%, transparent);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
.content {
|
|
21
|
+
position: relative;
|
|
22
|
+
margin: calc(var(--spacing, 0.25rem)*4);
|
|
23
|
+
display: inline-flex;
|
|
24
|
+
width: 100%;
|
|
25
|
+
max-width: var(--container-3xl, 48rem);
|
|
26
|
+
flex-direction: column;
|
|
27
|
+
gap: calc(var(--spacing, 0.25rem)*2);
|
|
28
|
+
overflow-y: auto;
|
|
29
|
+
border-radius: 0.25rem;
|
|
30
|
+
border-style: var(--tw-border-style);
|
|
31
|
+
border-width: 1px;
|
|
32
|
+
border-color: var(--color-neutral-200, #e9edf0);
|
|
33
|
+
background-color: var(--color-white, #fff);
|
|
34
|
+
padding: calc(var(--spacing, 0.25rem)*8);
|
|
35
|
+
&:focus {
|
|
36
|
+
--tw-outline-style: none;
|
|
37
|
+
outline-style: none;
|
|
38
|
+
}
|
|
39
|
+
@media (width >= 670px) {
|
|
40
|
+
padding: calc(var(--spacing, 0.25rem)*6);
|
|
41
|
+
}
|
|
42
|
+
@media (width >= 40rem) {
|
|
43
|
+
margin-block: calc(var(--spacing, 0.25rem)*20);
|
|
44
|
+
}
|
|
45
|
+
@media (width >= 80rem) {
|
|
46
|
+
padding: calc(var(--spacing, 0.25rem)*12);
|
|
47
|
+
}
|
|
48
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
49
|
+
background-color: var(--color-neutral-950, #0d121c);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
.close {
|
|
53
|
+
position: absolute;
|
|
54
|
+
top: calc(var(--spacing, 0.25rem)*3);
|
|
55
|
+
right: calc(var(--spacing, 0.25rem)*3);
|
|
56
|
+
display: block;
|
|
57
|
+
width: calc(var(--spacing, 0.25rem)*7);
|
|
58
|
+
height: calc(var(--spacing, 0.25rem)*7);
|
|
59
|
+
cursor: pointer;
|
|
60
|
+
border-radius: var(--radius-sm, 0.25rem);
|
|
61
|
+
padding: calc(var(--spacing, 0.25rem)*1);
|
|
62
|
+
&:hover {
|
|
63
|
+
@media (hover: hover) {
|
|
64
|
+
background-color: var(--color-neutral-100, #f6f7f9);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
&:focus {
|
|
68
|
+
--tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
|
|
69
|
+
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
70
|
+
}
|
|
71
|
+
&:focus {
|
|
72
|
+
--tw-ring-color: var(--color-neutral-200, #e9edf0);
|
|
73
|
+
}
|
|
74
|
+
&:focus {
|
|
75
|
+
--tw-outline-style: none;
|
|
76
|
+
outline-style: none;
|
|
77
|
+
}
|
|
78
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
79
|
+
&:hover {
|
|
80
|
+
@media (hover: hover) {
|
|
81
|
+
background-color: var(--color-neutral-900, #2c3437);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
86
|
+
&:focus {
|
|
87
|
+
--tw-ring-color: var(--color-neutral-900, #2c3437);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
.title {
|
|
92
|
+
font-size: var(--text-3xl, 1.875rem);
|
|
93
|
+
line-height: var(--tw-leading, var(--text-3xl--line-height, 1.2));
|
|
94
|
+
--tw-font-weight: var(--font-weight-semibold, 600);
|
|
95
|
+
font-weight: var(--font-weight-semibold, 600);
|
|
96
|
+
color: var(--color-neutral-900, #2c3437);
|
|
97
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
98
|
+
color: var(--color-white, #fff);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
.description {
|
|
102
|
+
margin-bottom: calc(var(--spacing, 0.25rem)*2);
|
|
103
|
+
font-size: var(--text-lg, 1.125rem);
|
|
104
|
+
line-height: var(--tw-leading, var(--text-lg--line-height, 1.55556));
|
|
105
|
+
--tw-font-weight: var(--font-weight-regular, 400);
|
|
106
|
+
font-weight: var(--font-weight-regular, 400);
|
|
107
|
+
color: var(--color-neutral-800, #556066);
|
|
108
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
109
|
+
color: var(--color-neutral-200, #e9edf0);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
.wrapper {
|
|
113
|
+
display: flex;
|
|
114
|
+
flex-direction: column;
|
|
115
|
+
gap: calc(var(--spacing, 0.25rem)*4);
|
|
116
|
+
pre {
|
|
117
|
+
overflow: auto;
|
|
118
|
+
}
|
|
119
|
+
code,
|
|
120
|
+
a {
|
|
121
|
+
overflow-wrap: break-word;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
@property --tw-backdrop-blur {
|
|
126
|
+
syntax: "*";
|
|
127
|
+
inherits: false;
|
|
128
|
+
}
|
|
129
|
+
@property --tw-backdrop-brightness {
|
|
130
|
+
syntax: "*";
|
|
131
|
+
inherits: false;
|
|
132
|
+
}
|
|
133
|
+
@property --tw-backdrop-contrast {
|
|
134
|
+
syntax: "*";
|
|
135
|
+
inherits: false;
|
|
136
|
+
}
|
|
137
|
+
@property --tw-backdrop-grayscale {
|
|
138
|
+
syntax: "*";
|
|
139
|
+
inherits: false;
|
|
140
|
+
}
|
|
141
|
+
@property --tw-backdrop-hue-rotate {
|
|
142
|
+
syntax: "*";
|
|
143
|
+
inherits: false;
|
|
144
|
+
}
|
|
145
|
+
@property --tw-backdrop-invert {
|
|
146
|
+
syntax: "*";
|
|
147
|
+
inherits: false;
|
|
148
|
+
}
|
|
149
|
+
@property --tw-backdrop-opacity {
|
|
150
|
+
syntax: "*";
|
|
151
|
+
inherits: false;
|
|
152
|
+
}
|
|
153
|
+
@property --tw-backdrop-saturate {
|
|
154
|
+
syntax: "*";
|
|
155
|
+
inherits: false;
|
|
156
|
+
}
|
|
157
|
+
@property --tw-backdrop-sepia {
|
|
158
|
+
syntax: "*";
|
|
159
|
+
inherits: false;
|
|
160
|
+
}
|
|
161
|
+
@property --tw-border-style {
|
|
162
|
+
syntax: "*";
|
|
163
|
+
inherits: false;
|
|
164
|
+
initial-value: solid;
|
|
165
|
+
}
|
|
166
|
+
@property --tw-shadow {
|
|
167
|
+
syntax: "*";
|
|
168
|
+
inherits: false;
|
|
169
|
+
initial-value: 0 0 #0000;
|
|
170
|
+
}
|
|
171
|
+
@property --tw-shadow-color {
|
|
172
|
+
syntax: "*";
|
|
173
|
+
inherits: false;
|
|
174
|
+
}
|
|
175
|
+
@property --tw-shadow-alpha {
|
|
176
|
+
syntax: "<percentage>";
|
|
177
|
+
inherits: false;
|
|
178
|
+
initial-value: 100%;
|
|
179
|
+
}
|
|
180
|
+
@property --tw-inset-shadow {
|
|
181
|
+
syntax: "*";
|
|
182
|
+
inherits: false;
|
|
183
|
+
initial-value: 0 0 #0000;
|
|
184
|
+
}
|
|
185
|
+
@property --tw-inset-shadow-color {
|
|
186
|
+
syntax: "*";
|
|
187
|
+
inherits: false;
|
|
188
|
+
}
|
|
189
|
+
@property --tw-inset-shadow-alpha {
|
|
190
|
+
syntax: "<percentage>";
|
|
191
|
+
inherits: false;
|
|
192
|
+
initial-value: 100%;
|
|
193
|
+
}
|
|
194
|
+
@property --tw-ring-color {
|
|
195
|
+
syntax: "*";
|
|
196
|
+
inherits: false;
|
|
197
|
+
}
|
|
198
|
+
@property --tw-ring-shadow {
|
|
199
|
+
syntax: "*";
|
|
200
|
+
inherits: false;
|
|
201
|
+
initial-value: 0 0 #0000;
|
|
202
|
+
}
|
|
203
|
+
@property --tw-inset-ring-color {
|
|
204
|
+
syntax: "*";
|
|
205
|
+
inherits: false;
|
|
206
|
+
}
|
|
207
|
+
@property --tw-inset-ring-shadow {
|
|
208
|
+
syntax: "*";
|
|
209
|
+
inherits: false;
|
|
210
|
+
initial-value: 0 0 #0000;
|
|
211
|
+
}
|
|
212
|
+
@property --tw-ring-inset {
|
|
213
|
+
syntax: "*";
|
|
214
|
+
inherits: false;
|
|
215
|
+
}
|
|
216
|
+
@property --tw-ring-offset-width {
|
|
217
|
+
syntax: "<length>";
|
|
218
|
+
inherits: false;
|
|
219
|
+
initial-value: 0px;
|
|
220
|
+
}
|
|
221
|
+
@property --tw-ring-offset-color {
|
|
222
|
+
syntax: "*";
|
|
223
|
+
inherits: false;
|
|
224
|
+
initial-value: #fff;
|
|
225
|
+
}
|
|
226
|
+
@property --tw-ring-offset-shadow {
|
|
227
|
+
syntax: "*";
|
|
228
|
+
inherits: false;
|
|
229
|
+
initial-value: 0 0 #0000;
|
|
230
|
+
}
|
|
231
|
+
@property --tw-font-weight {
|
|
232
|
+
syntax: "*";
|
|
233
|
+
inherits: false;
|
|
234
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import NodejsIcon from '#ui/Icons/Logos/Nodejs';
|
|
3
|
+
import style from './index.module.css';
|
|
4
|
+
const NodejsLogo = ({ variant = 'default', ariaLabel, }) => {
|
|
5
|
+
return (_jsx(NodejsIcon, { variant: variant, className: style.nodejsLogo, ariaLabel: ariaLabel }));
|
|
6
|
+
};
|
|
7
|
+
export default NodejsLogo;
|