@node-core/ui-components 1.0.1-8d40ab18244525be54e73968c130884191ec178a → 1.0.1-8d8aeae1d57db17b2826637c948ae91f04155f12
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 +53 -46
- 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 -15
- package/Common/Badge/index.js +7 -0
- package/Common/Badge/index.module.css +48 -26
- package/Common/BadgeGroup/index.js +6 -0
- package/Common/BadgeGroup/index.module.css +130 -54
- 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 -102
- 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 +198 -0
- 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 +49 -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 +188 -22
- package/Containers/Sidebar/SidebarItem/index.js +11 -0
- package/Containers/Sidebar/SidebarItem/index.module.css +60 -28
- package/Containers/Sidebar/index.js +15 -0
- package/Containers/Sidebar/index.module.css +44 -27
- 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/Providers/NotificationProvider/index.js +16 -0
- package/Providers/NotificationProvider/index.module.css +7 -0
- package/package.json +19 -67
- 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 -73
- 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 -87
- 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/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 -32
- package/Common/Modal/index.tsx +0 -48
- 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/ProgressionSidebar/ProgressionSidebarGroup/index.module.css +0 -47
- package/Common/ProgressionSidebar/ProgressionSidebarGroup/index.tsx +0 -35
- package/Common/ProgressionSidebar/ProgressionSidebarIcon/index.tsx +0 -16
- package/Common/ProgressionSidebar/ProgressionSidebarItem/index.module.css +0 -39
- package/Common/ProgressionSidebar/ProgressionSidebarItem/index.tsx +0 -32
- package/Common/ProgressionSidebar/index.module.css +0 -30
- package/Common/ProgressionSidebar/index.stories.tsx +0 -79
- package/Common/ProgressionSidebar/index.tsx +0 -59
- 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/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/SidebarGroup/index.stories.tsx +0 -36
- package/Containers/Sidebar/SidebarGroup/index.tsx +0 -30
- package/Containers/Sidebar/SidebarItem/index.stories.tsx +0 -15
- package/Containers/Sidebar/SidebarItem/index.tsx +0 -26
- package/Containers/Sidebar/index.stories.tsx +0 -84
- package/Containers/Sidebar/index.tsx +0 -58
- 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 -188
- 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
|
@@ -1,77 +1,153 @@
|
|
|
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
|
-
|
|
3
|
+
display: flex;
|
|
4
|
+
width: 100%;
|
|
5
|
+
align-items: center;
|
|
6
|
+
border-radius: calc(infinity*1px);
|
|
7
|
+
border-style: var(--tw-border-style);
|
|
8
|
+
border-width: 1px;
|
|
9
|
+
padding-block: calc(var(--spacing, 0.25rem)*1);
|
|
10
|
+
padding-right: calc(var(--spacing, 0.25rem)*2.5);
|
|
11
|
+
padding-left: calc(var(--spacing, 0.25rem)*1);
|
|
12
|
+
font-size: var(--text-sm, 0.875rem);
|
|
13
|
+
line-height: var(--tw-leading, var(--text-sm--line-height, 1.42857));
|
|
14
|
+
--tw-font-weight: var(--font-weight-medium, 500);
|
|
15
|
+
font-weight: var(--font-weight-medium, 500);
|
|
16
|
+
@media (width >= 670px) {
|
|
17
|
+
width: fit-content;
|
|
18
|
+
}
|
|
15
19
|
.icon {
|
|
16
|
-
|
|
20
|
+
width: calc(var(--spacing, 0.25rem)*4);
|
|
21
|
+
height: calc(var(--spacing, 0.25rem)*4);
|
|
17
22
|
}
|
|
18
|
-
|
|
19
23
|
.badge {
|
|
20
|
-
|
|
24
|
+
margin-right: calc(var(--spacing, 0.25rem)*2);
|
|
21
25
|
}
|
|
22
|
-
|
|
23
26
|
.message {
|
|
24
|
-
|
|
27
|
+
margin-right: calc(var(--spacing, 0.25rem)*1);
|
|
25
28
|
}
|
|
26
|
-
|
|
27
29
|
&.default {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
border-color: var(--color-green-200, #c5e5b4);
|
|
31
|
+
background-color: var(--color-green-100, #edf2eb);
|
|
32
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
33
|
+
border-color: var(--color-green-700, #2c682c);
|
|
34
|
+
}
|
|
35
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
36
|
+
background-color: var(--color-neutral-900, #2c3437);
|
|
37
|
+
}
|
|
33
38
|
.icon {
|
|
34
|
-
|
|
35
|
-
|
|
39
|
+
color: var(--color-green-500, #5fa04e);
|
|
40
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
41
|
+
color: var(--color-green-300, #99cc7d);
|
|
42
|
+
}
|
|
36
43
|
}
|
|
37
|
-
|
|
38
|
-
.message {
|
|
39
|
-
|
|
40
|
-
|
|
44
|
+
.message,
|
|
45
|
+
.message a:not(:hover) {
|
|
46
|
+
color: var(--color-green-700, #2c682c);
|
|
47
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
48
|
+
color: var(--color-green-300, #99cc7d);
|
|
49
|
+
}
|
|
41
50
|
}
|
|
42
51
|
}
|
|
43
|
-
|
|
44
52
|
&.error {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
53
|
+
border-color: var(--color-danger-200, #fad3d4);
|
|
54
|
+
background-color: var(--color-danger-100, #fbf1f0);
|
|
55
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
56
|
+
border-color: var(--color-danger-700, #b80c0c);
|
|
57
|
+
}
|
|
58
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
59
|
+
background-color: var(--color-neutral-900, #2c3437);
|
|
60
|
+
}
|
|
50
61
|
.icon {
|
|
51
|
-
|
|
52
|
-
|
|
62
|
+
color: var(--color-danger-500, #f65354);
|
|
63
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
64
|
+
color: var(--color-danger-300, #fab6b7);
|
|
65
|
+
}
|
|
53
66
|
}
|
|
54
|
-
|
|
55
|
-
.message {
|
|
56
|
-
|
|
57
|
-
|
|
67
|
+
.message,
|
|
68
|
+
.message a:not(:hover) {
|
|
69
|
+
color: var(--color-danger-700, #b80c0c);
|
|
70
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
71
|
+
color: var(--color-danger-300, #fab6b7);
|
|
72
|
+
}
|
|
58
73
|
}
|
|
59
74
|
}
|
|
60
|
-
|
|
61
75
|
&.warning {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
76
|
+
border-color: var(--color-warning-200, #fad9b0);
|
|
77
|
+
background-color: var(--color-warning-100, #fdf3e7);
|
|
78
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
79
|
+
border-color: var(--color-warning-700, #8b4d04);
|
|
80
|
+
}
|
|
81
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
82
|
+
background-color: var(--color-neutral-900, #2c3437);
|
|
83
|
+
}
|
|
67
84
|
.icon {
|
|
68
|
-
|
|
69
|
-
|
|
85
|
+
color: var(--color-warning-500, #d07912);
|
|
86
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
87
|
+
color: var(--color-warning-300, #f5bc75);
|
|
88
|
+
}
|
|
70
89
|
}
|
|
71
|
-
|
|
72
|
-
.message {
|
|
73
|
-
|
|
74
|
-
|
|
90
|
+
.message,
|
|
91
|
+
.message a:not(:hover) {
|
|
92
|
+
color: var(--color-warning-700, #8b4d04);
|
|
93
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
94
|
+
color: var(--color-warning-300, #f5bc75);
|
|
95
|
+
}
|
|
75
96
|
}
|
|
76
97
|
}
|
|
98
|
+
&.info {
|
|
99
|
+
border-color: var(--color-info-200, #bce6fc);
|
|
100
|
+
background-color: var(--color-info-100, #e9f4fa);
|
|
101
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
102
|
+
border-color: var(--color-info-700, #066291);
|
|
103
|
+
}
|
|
104
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
105
|
+
background-color: var(--color-neutral-900, #2c3437);
|
|
106
|
+
}
|
|
107
|
+
.icon {
|
|
108
|
+
color: var(--color-info-500, #229ad6);
|
|
109
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
110
|
+
color: var(--color-info-300, #8ed4f8);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
.message,
|
|
114
|
+
.message a:not(:hover) {
|
|
115
|
+
color: var(--color-info-700, #066291);
|
|
116
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
117
|
+
color: var(--color-info-300, #8ed4f8);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
&.neutral {
|
|
122
|
+
border-color: var(--color-neutral-200, #e9edf0);
|
|
123
|
+
background-color: var(--color-neutral-100, #f6f7f9);
|
|
124
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
125
|
+
border-color: var(--color-neutral-700, #6e7b83);
|
|
126
|
+
}
|
|
127
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
128
|
+
background-color: var(--color-neutral-900, #2c3437);
|
|
129
|
+
}
|
|
130
|
+
.icon {
|
|
131
|
+
color: var(--color-neutral-500, #b1bcc2);
|
|
132
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
133
|
+
color: var(--color-neutral-300, #d9e1e4);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
.message,
|
|
137
|
+
.message a:not(:hover) {
|
|
138
|
+
color: var(--color-neutral-700, #6e7b83);
|
|
139
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
140
|
+
color: var(--color-neutral-300, #d9e1e4);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
@property --tw-border-style {
|
|
146
|
+
syntax: "*";
|
|
147
|
+
inherits: false;
|
|
148
|
+
initial-value: solid;
|
|
149
|
+
}
|
|
150
|
+
@property --tw-font-weight {
|
|
151
|
+
syntax: "*";
|
|
152
|
+
inherits: false;
|
|
77
153
|
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import styles from './index.module.css';
|
|
3
|
+
const Banner = ({ type = 'default', children, }) => (_jsx("div", { className: `${styles.banner} ${styles[type] || styles.default}`, children: children }));
|
|
4
|
+
export default Banner;
|
|
@@ -1,42 +1,45 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */
|
|
3
2
|
.banner {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
3
|
+
display: flex;
|
|
4
|
+
width: 100%;
|
|
5
|
+
flex-direction: row;
|
|
6
|
+
align-items: center;
|
|
7
|
+
justify-content: center;
|
|
8
|
+
gap: calc(var(--spacing, 0.25rem)*2);
|
|
9
|
+
padding-inline: calc(var(--spacing, 0.25rem)*8);
|
|
10
|
+
padding-block: calc(var(--spacing, 0.25rem)*3);
|
|
11
|
+
font-size: var(--text-sm, 0.875rem);
|
|
12
|
+
line-height: var(--tw-leading, var(--text-sm--line-height, 1.42857));
|
|
14
13
|
&,
|
|
15
14
|
a {
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
color: var(--color-white, #fff);
|
|
16
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
17
|
+
color: var(--color-white, #fff);
|
|
18
|
+
}
|
|
18
19
|
}
|
|
19
|
-
|
|
20
20
|
a {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
width: fit-content;
|
|
22
|
+
text-decoration-line: underline;
|
|
23
|
+
text-decoration-color: color-mix(in srgb, #fff 50%, transparent);
|
|
24
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
25
|
+
text-decoration-color: color-mix(in oklab, var(--color-white, #fff) 50%, transparent);
|
|
26
|
+
}
|
|
24
27
|
}
|
|
25
|
-
|
|
26
28
|
svg {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
+
width: calc(var(--spacing, 0.25rem)*4);
|
|
30
|
+
height: calc(var(--spacing, 0.25rem)*4);
|
|
31
|
+
color: color-mix(in srgb, #fff 50%, transparent);
|
|
32
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
33
|
+
color: color-mix(in oklab, var(--color-white, #fff) 50%, transparent);
|
|
34
|
+
}
|
|
29
35
|
}
|
|
30
36
|
}
|
|
31
|
-
|
|
32
37
|
.default {
|
|
33
|
-
|
|
38
|
+
background-color: var(--color-green-600, #417e38);
|
|
34
39
|
}
|
|
35
|
-
|
|
36
40
|
.error {
|
|
37
|
-
|
|
41
|
+
background-color: var(--color-danger-600, #de1a1b);
|
|
38
42
|
}
|
|
39
|
-
|
|
40
43
|
.warning {
|
|
41
|
-
|
|
44
|
+
background-color: var(--color-warning-600, #ae5f00);
|
|
42
45
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import classNames from 'classnames';
|
|
3
|
+
const BaseActiveLink = ({ activeClassName = 'active', allowSubPath = false, className, href = '', pathname = '/', as: Component = 'a', ...props }) => {
|
|
4
|
+
const finalClassName = classNames(className, {
|
|
5
|
+
[activeClassName]: allowSubPath
|
|
6
|
+
? // When using allowSubPath we want only to check if
|
|
7
|
+
// the current pathname starts with the utmost upper level
|
|
8
|
+
// of an href (e.g. /docs/...)
|
|
9
|
+
pathname.startsWith(`/${href.toString().split('/')[1]}`)
|
|
10
|
+
: href.toString() === pathname,
|
|
11
|
+
});
|
|
12
|
+
return _jsx(Component, { className: finalClassName, href: href, ...props });
|
|
13
|
+
};
|
|
14
|
+
export default BaseActiveLink;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import classNames from 'classnames';
|
|
3
|
+
import styles from './index.module.css';
|
|
4
|
+
const BaseButton = ({ kind = 'primary', size = 'default', disabled = false, className, as: Component = 'a', ...props }) => {
|
|
5
|
+
if ('href' in props && Component) {
|
|
6
|
+
return (_jsx(Component, { role: "button", href: disabled ? undefined : props.href, "aria-disabled": disabled, className: classNames(styles.button, styles[kind], styles[size], className), tabIndex: disabled ? -1 : 0, ...props }));
|
|
7
|
+
}
|
|
8
|
+
return (_jsx("button", { disabled: disabled, className: classNames(styles.button, styles[kind], styles[size], className), type: "button", ...props }));
|
|
9
|
+
};
|
|
10
|
+
export default BaseButton;
|