@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.
Files changed (262) hide show
  1. package/Common/AlertBox/index.js +5 -0
  2. package/Common/AlertBox/index.module.css +44 -50
  3. package/Common/AvatarGroup/Avatar/index.js +11 -0
  4. package/Common/AvatarGroup/Avatar/index.module.css +50 -30
  5. package/Common/AvatarGroup/Overlay/index.js +6 -0
  6. package/Common/AvatarGroup/Overlay/index.module.css +28 -21
  7. package/Common/AvatarGroup/index.js +21 -0
  8. package/Common/AvatarGroup/index.module.css +12 -11
  9. package/Common/Badge/index.js +7 -0
  10. package/Common/Badge/index.module.css +34 -26
  11. package/Common/BadgeGroup/index.js +6 -0
  12. package/Common/BadgeGroup/index.module.css +75 -51
  13. package/Common/Banner/index.js +4 -0
  14. package/Common/Banner/index.module.css +30 -27
  15. package/Common/BaseActiveLink/index.js +14 -0
  16. package/Common/BaseButton/index.js +10 -0
  17. package/Common/BaseButton/index.module.css +332 -105
  18. package/Common/BaseCodeBox/index.js +50 -0
  19. package/Common/BaseCodeBox/index.module.css +76 -58
  20. package/Common/BaseCrossLink/index.js +12 -0
  21. package/Common/BaseCrossLink/index.module.css +57 -39
  22. package/Common/BaseLinkTabs/index.js +5 -0
  23. package/Common/BaseLinkTabs/index.module.css +67 -33
  24. package/Common/BasePagination/Ellipsis/index.js +4 -0
  25. package/Common/BasePagination/Ellipsis/index.module.css +14 -8
  26. package/Common/BasePagination/PaginationListItem/index.js +6 -0
  27. package/Common/BasePagination/PaginationListItem/index.module.css +36 -21
  28. package/Common/BasePagination/PrevNextArrow.js +7 -0
  29. package/Common/BasePagination/index.js +10 -0
  30. package/Common/BasePagination/index.module.css +27 -26
  31. package/Common/BasePagination/useGetPageElements.js +77 -0
  32. package/Common/Blockquote/index.js +4 -0
  33. package/Common/Blockquote/index.module.css +44 -23
  34. package/Common/Breadcrumbs/BreadcrumbHomeLink/index.js +9 -0
  35. package/Common/Breadcrumbs/BreadcrumbHomeLink/index.module.css +3 -3
  36. package/Common/Breadcrumbs/BreadcrumbItem/index.js +6 -0
  37. package/Common/Breadcrumbs/BreadcrumbItem/index.module.css +38 -27
  38. package/Common/Breadcrumbs/BreadcrumbLink/index.js +5 -0
  39. package/Common/Breadcrumbs/BreadcrumbLink/index.module.css +26 -16
  40. package/Common/Breadcrumbs/BreadcrumbRoot/index.js +4 -0
  41. package/Common/Breadcrumbs/BreadcrumbRoot/index.module.css +8 -7
  42. package/Common/Breadcrumbs/BreadcrumbTruncatedItem/index.js +4 -0
  43. package/Common/Breadcrumbs/index.js +22 -0
  44. package/Common/ChangeHistory/index.js +9 -0
  45. package/Common/ChangeHistory/index.module.css +181 -66
  46. package/Common/CodeTabs/index.js +5 -0
  47. package/Common/CodeTabs/index.module.css +47 -36
  48. package/Common/DataTag/index.js +18 -0
  49. package/Common/DataTag/index.module.css +30 -32
  50. package/Common/GlowingBackdrop/index.js +5 -0
  51. package/Common/GlowingBackdrop/index.module.css +126 -28
  52. package/Common/LanguageDropDown/index.js +11 -0
  53. package/Common/LanguageDropDown/index.module.css +140 -42
  54. package/Common/Modal/index.js +10 -0
  55. package/Common/Modal/index.module.css +217 -62
  56. package/Common/NodejsLogo/index.js +7 -0
  57. package/Common/NodejsLogo/index.module.css +3 -4
  58. package/Common/Notification/index.js +6 -0
  59. package/Common/Notification/index.module.css +101 -17
  60. package/Common/Preview/index.js +7 -0
  61. package/Common/Preview/index.module.css +269 -65
  62. package/Common/Select/index.js +46 -0
  63. package/Common/Select/index.module.css +294 -127
  64. package/Common/Separator/index.js +7 -0
  65. package/Common/Separator/index.module.css +7 -10
  66. package/Common/Skeleton/index.js +18 -0
  67. package/Common/Skeleton/index.module.css +118 -21
  68. package/Common/Tabs/index.js +6 -0
  69. package/Common/Tabs/index.module.css +58 -40
  70. package/Common/ThemeToggle/index.js +7 -0
  71. package/Common/ThemeToggle/index.module.css +18 -11
  72. package/Common/Tooltip/index.js +8 -0
  73. package/Common/Tooltip/index.module.css +119 -29
  74. package/Containers/Article/index.js +4 -0
  75. package/Containers/Article/index.module.css +127 -58
  76. package/Containers/DocSideBar/index.js +1 -0
  77. package/Containers/Footer/index.js +22 -0
  78. package/Containers/Footer/index.module.css +51 -36
  79. package/Containers/MetaBar/index.js +12 -0
  80. package/Containers/MetaBar/index.module.css +101 -69
  81. package/Containers/NavBar/NavItem/index.js +7 -0
  82. package/Containers/NavBar/NavItem/index.module.css +50 -36
  83. package/Containers/NavBar/index.js +18 -0
  84. package/Containers/NavBar/index.module.css +176 -96
  85. package/Containers/Sidebar/ProgressionIcon/index.js +3 -0
  86. package/Containers/Sidebar/SidebarGroup/index.js +9 -0
  87. package/Containers/Sidebar/SidebarGroup/index.module.css +180 -52
  88. package/Containers/Sidebar/SidebarItem/index.js +11 -0
  89. package/Containers/Sidebar/SidebarItem/index.module.css +49 -38
  90. package/Containers/Sidebar/index.js +15 -0
  91. package/Containers/Sidebar/index.module.css +42 -24
  92. package/Icons/HexagonGrid.js +3 -0
  93. package/Icons/InstallationMethod/Choco.js +3 -0
  94. package/Icons/InstallationMethod/Devbox.js +3 -0
  95. package/Icons/InstallationMethod/Docker.js +3 -0
  96. package/Icons/InstallationMethod/FNM.js +3 -0
  97. package/Icons/InstallationMethod/Homebrew.js +3 -0
  98. package/Icons/InstallationMethod/N.js +5 -0
  99. package/Icons/InstallationMethod/NVM.js +3 -0
  100. package/Icons/InstallationMethod/Volta.js +3 -0
  101. package/Icons/InstallationMethod/{index.ts → index.js} +0 -1
  102. package/Icons/Logos/JsWhite.js +3 -0
  103. package/Icons/Logos/Nodejs.js +12 -0
  104. package/Icons/Logos/index.js +3 -0
  105. package/Icons/OperatingSystem/AIX.js +3 -0
  106. package/Icons/OperatingSystem/Apple.js +3 -0
  107. package/Icons/OperatingSystem/Linux.js +3 -0
  108. package/Icons/OperatingSystem/Microsoft.js +3 -0
  109. package/Icons/OperatingSystem/{index.ts → index.js} +0 -1
  110. package/Icons/PackageManager/Npm.js +3 -0
  111. package/Icons/PackageManager/Pnpm.js +3 -0
  112. package/Icons/PackageManager/Yarn.js +3 -0
  113. package/Icons/PackageManager/{index.ts → index.js} +0 -1
  114. package/Icons/Social/Bluesky.js +3 -0
  115. package/Icons/Social/Discord.js +3 -0
  116. package/Icons/Social/GitHub.js +3 -0
  117. package/Icons/Social/LinkedIn.js +3 -0
  118. package/Icons/Social/Mastodon.js +3 -0
  119. package/Icons/Social/Slack.js +3 -0
  120. package/Icons/Social/X.js +3 -0
  121. package/Icons/Social/{index.ts → index.js} +0 -1
  122. package/MDX/CodeTabs.js +16 -0
  123. package/package.json +6 -54
  124. package/stylelint/one-utility-class-per-line.mjs +34 -50
  125. package/stylelint/utils.mjs +19 -25
  126. package/styles/index.css +1124 -26
  127. package/types.js +1 -0
  128. package/Common/AlertBox/index.stories.tsx +0 -96
  129. package/Common/AlertBox/index.tsx +0 -24
  130. package/Common/AvatarGroup/Avatar/index.stories.tsx +0 -22
  131. package/Common/AvatarGroup/Avatar/index.tsx +0 -67
  132. package/Common/AvatarGroup/Overlay/index.stories.tsx +0 -33
  133. package/Common/AvatarGroup/Overlay/index.tsx +0 -37
  134. package/Common/AvatarGroup/__tests__/index.test.jsx +0 -55
  135. package/Common/AvatarGroup/index.stories.tsx +0 -56
  136. package/Common/AvatarGroup/index.tsx +0 -83
  137. package/Common/Badge/index.stories.tsx +0 -38
  138. package/Common/Badge/index.tsx +0 -35
  139. package/Common/BadgeGroup/index.stories.tsx +0 -35
  140. package/Common/BadgeGroup/index.tsx +0 -35
  141. package/Common/Banner/index.stories.tsx +0 -29
  142. package/Common/Banner/index.tsx +0 -18
  143. package/Common/BaseActiveLink/__tests__/index.test.jsx +0 -52
  144. package/Common/BaseActiveLink/index.tsx +0 -34
  145. package/Common/BaseButton/index.stories.tsx +0 -67
  146. package/Common/BaseButton/index.tsx +0 -59
  147. package/Common/BaseCodeBox/index.stories.tsx +0 -39
  148. package/Common/BaseCodeBox/index.tsx +0 -122
  149. package/Common/BaseCrossLink/index.stories.tsx +0 -38
  150. package/Common/BaseCrossLink/index.tsx +0 -46
  151. package/Common/BaseLinkTabs/index.stories.tsx +0 -34
  152. package/Common/BaseLinkTabs/index.tsx +0 -53
  153. package/Common/BasePagination/Ellipsis/index.stories.tsx +0 -10
  154. package/Common/BasePagination/Ellipsis/index.tsx +0 -11
  155. package/Common/BasePagination/PaginationListItem/__tests__/index.test.jsx +0 -58
  156. package/Common/BasePagination/PaginationListItem/index.stories.tsx +0 -40
  157. package/Common/BasePagination/PaginationListItem/index.tsx +0 -39
  158. package/Common/BasePagination/PrevNextArrow.tsx +0 -15
  159. package/Common/BasePagination/__tests__/index.test.jsx +0 -180
  160. package/Common/BasePagination/index.stories.tsx +0 -67
  161. package/Common/BasePagination/index.tsx +0 -77
  162. package/Common/BasePagination/useGetPageElements.tsx +0 -132
  163. package/Common/Blockquote/index.stories.tsx +0 -45
  164. package/Common/Blockquote/index.tsx +0 -11
  165. package/Common/Breadcrumbs/BreadcrumbHomeLink/index.tsx +0 -30
  166. package/Common/Breadcrumbs/BreadcrumbItem/index.tsx +0 -42
  167. package/Common/Breadcrumbs/BreadcrumbLink/index.tsx +0 -37
  168. package/Common/Breadcrumbs/BreadcrumbRoot/index.tsx +0 -20
  169. package/Common/Breadcrumbs/BreadcrumbTruncatedItem/index.tsx +0 -9
  170. package/Common/Breadcrumbs/index.stories.tsx +0 -94
  171. package/Common/Breadcrumbs/index.tsx +0 -81
  172. package/Common/ChangeHistory/index.stories.tsx +0 -130
  173. package/Common/ChangeHistory/index.tsx +0 -67
  174. package/Common/CodeTabs/index.stories.tsx +0 -73
  175. package/Common/CodeTabs/index.tsx +0 -16
  176. package/Common/DataTag/index.stories.tsx +0 -40
  177. package/Common/DataTag/index.tsx +0 -39
  178. package/Common/GlowingBackdrop/index.stories.tsx +0 -10
  179. package/Common/GlowingBackdrop/index.tsx +0 -13
  180. package/Common/LanguageDropDown/index.stories.tsx +0 -19
  181. package/Common/LanguageDropDown/index.tsx +0 -56
  182. package/Common/Modal/index.stories.tsx +0 -34
  183. package/Common/Modal/index.tsx +0 -50
  184. package/Common/NodejsLogo/index.stories.tsx +0 -14
  185. package/Common/NodejsLogo/index.tsx +0 -26
  186. package/Common/Notification/index.stories.tsx +0 -36
  187. package/Common/Notification/index.tsx +0 -34
  188. package/Common/Preview/index.stories.tsx +0 -44
  189. package/Common/Preview/index.tsx +0 -25
  190. package/Common/Select/__tests__/index.test.jsx +0 -67
  191. package/Common/Select/index.stories.tsx +0 -111
  192. package/Common/Select/index.tsx +0 -187
  193. package/Common/Separator/index.stories.tsx +0 -32
  194. package/Common/Separator/index.tsx +0 -27
  195. package/Common/Skeleton/index.tsx +0 -39
  196. package/Common/Tabs/__tests__/index.test.jsx +0 -52
  197. package/Common/Tabs/index.stories.tsx +0 -50
  198. package/Common/Tabs/index.tsx +0 -54
  199. package/Common/ThemeToggle/__tests__/index.test.jsx +0 -35
  200. package/Common/ThemeToggle/index.stories.tsx +0 -10
  201. package/Common/ThemeToggle/index.tsx +0 -15
  202. package/Common/Tooltip/index.stories.tsx +0 -73
  203. package/Common/Tooltip/index.tsx +0 -48
  204. package/Containers/Article/index.stories.tsx +0 -39
  205. package/Containers/Article/index.tsx +0 -9
  206. package/Containers/DocSideBar/index.tsx +0 -0
  207. package/Containers/Footer/index.stories.tsx +0 -27
  208. package/Containers/Footer/index.tsx +0 -95
  209. package/Containers/MetaBar/__tests__/index.test.jsx +0 -63
  210. package/Containers/MetaBar/index.stories.tsx +0 -80
  211. package/Containers/MetaBar/index.tsx +0 -72
  212. package/Containers/NavBar/NavItem/index.stories.tsx +0 -38
  213. package/Containers/NavBar/NavItem/index.tsx +0 -44
  214. package/Containers/NavBar/index.stories.tsx +0 -45
  215. package/Containers/NavBar/index.tsx +0 -94
  216. package/Containers/Sidebar/ProgressionIcon/index.tsx +0 -16
  217. package/Containers/Sidebar/SidebarGroup/index.stories.tsx +0 -36
  218. package/Containers/Sidebar/SidebarGroup/index.tsx +0 -49
  219. package/Containers/Sidebar/SidebarItem/index.stories.tsx +0 -15
  220. package/Containers/Sidebar/SidebarItem/index.tsx +0 -43
  221. package/Containers/Sidebar/index.stories.tsx +0 -88
  222. package/Containers/Sidebar/index.tsx +0 -70
  223. package/Icons/HexagonGrid.stories.tsx +0 -10
  224. package/Icons/HexagonGrid.tsx +0 -1434
  225. package/Icons/InstallationMethod/Choco.tsx +0 -78
  226. package/Icons/InstallationMethod/Devbox.tsx +0 -21
  227. package/Icons/InstallationMethod/Docker.tsx +0 -20
  228. package/Icons/InstallationMethod/FNM.tsx +0 -132
  229. package/Icons/InstallationMethod/Homebrew.tsx +0 -69
  230. package/Icons/InstallationMethod/N.tsx +0 -32
  231. package/Icons/InstallationMethod/NVM.tsx +0 -63
  232. package/Icons/InstallationMethod/Volta.tsx +0 -34
  233. package/Icons/Logos/JsGreen.tsx +0 -24
  234. package/Icons/Logos/JsWhite.tsx +0 -37
  235. package/Icons/Logos/Nodejs.tsx +0 -372
  236. package/Icons/Logos/NodejsStackedBlack.tsx +0 -98
  237. package/Icons/Logos/NodejsStackedDark.tsx +0 -124
  238. package/Icons/Logos/NodejsStackedLight.tsx +0 -123
  239. package/Icons/Logos/NodejsStackedWhite.tsx +0 -98
  240. package/Icons/Logos/index.ts +0 -17
  241. package/Icons/OperatingSystem/AIX.tsx +0 -46
  242. package/Icons/OperatingSystem/Apple.tsx +0 -23
  243. package/Icons/OperatingSystem/Linux.tsx +0 -969
  244. package/Icons/OperatingSystem/Microsoft.tsx +0 -19
  245. package/Icons/PackageManager/Npm.tsx +0 -21
  246. package/Icons/PackageManager/Pnpm.tsx +0 -22
  247. package/Icons/PackageManager/Yarn.tsx +0 -22
  248. package/Icons/Social/Bluesky.tsx +0 -19
  249. package/Icons/Social/Discord.tsx +0 -20
  250. package/Icons/Social/GitHub.tsx +0 -16
  251. package/Icons/Social/LinkedIn.tsx +0 -16
  252. package/Icons/Social/Mastodon.tsx +0 -36
  253. package/Icons/Social/Slack.tsx +0 -31
  254. package/Icons/Social/X.tsx +0 -16
  255. package/MDX/CodeTabs.tsx +0 -47
  256. package/stylelint/__tests__/index.test.mjs +0 -80
  257. package/styles/animations.css +0 -47
  258. package/styles/base.css +0 -17
  259. package/styles/effects.css +0 -12
  260. package/styles/markdown.css +0 -173
  261. package/styles/theme.css +0 -175
  262. package/types.ts +0 -25
@@ -1,54 +1,72 @@
1
- @reference "../../styles/index.css";
2
-
1
+ /*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */
3
2
  .tabsRoot {
4
- @apply grid
5
- max-w-full;
6
-
3
+ display: grid;
4
+ max-width: 100%;
7
5
  .tabsList {
8
- @apply font-open-sans
9
- scrollbar-thin
10
- flex
11
- gap-2
12
- overflow-x-auto;
13
-
6
+ display: flex;
7
+ gap: calc(var(--spacing, 0.25rem)*2);
8
+ overflow-x: auto;
9
+ font-family: var(--font-open-sans, var(--font-open-sans));
10
+ scrollbar-width: thin;
14
11
  .tabsTrigger {
15
- @apply whitespace-nowrap
16
- border-b-2
17
- border-b-transparent
18
- px-1
19
- pb-[11px]
20
- text-sm
21
- font-semibold
22
- text-neutral-800
23
- dark:text-neutral-200;
24
-
12
+ border-bottom-style: var(--tw-border-style);
13
+ border-bottom-width: 2px;
14
+ border-bottom-color: transparent;
15
+ padding-inline: calc(var(--spacing, 0.25rem)*1);
16
+ padding-bottom: 11px;
17
+ font-size: var(--text-sm, 0.875rem);
18
+ line-height: var(--tw-leading, var(--text-sm--line-height, 1.42857));
19
+ --tw-font-weight: var(--font-weight-semibold, 600);
20
+ font-weight: var(--font-weight-semibold, 600);
21
+ white-space: nowrap;
22
+ color: var(--color-neutral-800, #556066);
23
+ &:where([data-theme=dark], [data-theme=dark] *) {
24
+ color: var(--color-neutral-200, #e9edf0);
25
+ }
25
26
  .tabSecondaryLabel {
26
- @apply pl-1
27
- text-neutral-500
28
- dark:text-neutral-800;
27
+ padding-left: calc(var(--spacing, 0.25rem)*1);
28
+ color: var(--color-neutral-500, #b1bcc2);
29
+ &:where([data-theme=dark], [data-theme=dark] *) {
30
+ color: var(--color-neutral-800, #556066);
31
+ }
29
32
  }
30
-
31
33
  &[data-state='active'] {
32
- @apply border-b-green-600
33
- text-green-600
34
- dark:border-b-green-400
35
- dark:text-green-400;
36
-
34
+ border-bottom-color: var(--color-green-600, #417e38);
35
+ color: var(--color-green-600, #417e38);
36
+ &:where([data-theme=dark], [data-theme=dark] *) {
37
+ border-bottom-color: var(--color-green-400, #84ba64);
38
+ }
39
+ &:where([data-theme=dark], [data-theme=dark] *) {
40
+ color: var(--color-green-400, #84ba64);
41
+ }
37
42
  .tabSecondaryLabel {
38
- @apply text-green-800
39
- dark:text-green-600;
43
+ color: var(--color-green-800, #2c682c);
44
+ &:where([data-theme=dark], [data-theme=dark] *) {
45
+ color: var(--color-green-600, #417e38);
46
+ }
40
47
  }
41
48
  }
42
49
  }
43
-
44
50
  .addons {
45
- @apply ml-auto
46
- border-b-2
47
- border-b-transparent
48
- px-1
49
- pb-[11px]
50
- text-sm
51
- font-semibold;
51
+ margin-left: auto;
52
+ border-bottom-style: var(--tw-border-style);
53
+ border-bottom-width: 2px;
54
+ border-bottom-color: transparent;
55
+ padding-inline: calc(var(--spacing, 0.25rem)*1);
56
+ padding-bottom: 11px;
57
+ font-size: var(--text-sm, 0.875rem);
58
+ line-height: var(--tw-leading, var(--text-sm--line-height, 1.42857));
59
+ --tw-font-weight: var(--font-weight-semibold, 600);
60
+ font-weight: var(--font-weight-semibold, 600);
52
61
  }
53
62
  }
54
63
  }
64
+ @property --tw-border-style {
65
+ syntax: "*";
66
+ inherits: false;
67
+ initial-value: solid;
68
+ }
69
+ @property --tw-font-weight {
70
+ syntax: "*";
71
+ inherits: false;
72
+ }
@@ -0,0 +1,7 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { MoonIcon, SunIcon } from '@heroicons/react/24/outline';
3
+ import styles from './index.module.css';
4
+ const ThemeToggle = props => {
5
+ return (_jsxs("button", { type: "button", className: styles.themeToggle, ...props, children: [_jsx(MoonIcon, { className: "block dark:hidden", height: "20" }), _jsx(SunIcon, { className: "hidden dark:block", height: "20" })] }));
6
+ };
7
+ export default ThemeToggle;
@@ -1,15 +1,22 @@
1
- @reference "../../styles/index.css";
2
-
1
+ /*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */
3
2
  .themeToggle {
4
- @apply size-9
5
- rounded-md
6
- p-2
7
- text-neutral-700
8
- motion-safe:transition-colors
9
- dark:text-neutral-300;
10
-
3
+ width: calc(var(--spacing, 0.25rem)*9);
4
+ height: 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
+ }
11
16
  &:hover {
12
- @apply bg-neutral-100
13
- dark:bg-neutral-900;
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
+ }
14
21
  }
15
22
  }
@@ -0,0 +1,8 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import * as TooltipPrimitive from '@radix-ui/react-tooltip';
3
+ import classNames from 'classnames';
4
+ import styles from './index.module.css';
5
+ const Tooltip = ({ kind = 'default', children, content, asChild = false, side = 'bottom', container, }) => (_jsx(TooltipPrimitive.Provider, { delayDuration: 200, children: _jsxs(TooltipPrimitive.Root, { children: [_jsx(TooltipPrimitive.Trigger, { asChild: asChild, children: children }), _jsx(TooltipPrimitive.Portal, { container: container, children: _jsxs(TooltipPrimitive.Content, { side: side, sideOffset: 4, className: classNames(styles[kind], styles.content, {
6
+ 'mx-1.5': side === 'top' || side === 'bottom',
7
+ }), children: [content, _jsx(TooltipPrimitive.Arrow, { className: styles.arrow, width: 14, height: 6 })] }) })] }) }));
8
+ export default Tooltip;
@@ -1,43 +1,133 @@
1
- @reference "../../styles/index.css";
2
-
1
+ /*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */
3
2
  .content {
4
- @apply rounded-md
5
- border
6
- bg-white
7
- text-sm
8
- font-medium
9
- text-neutral-900
10
- shadow-lg
11
- dark:bg-neutral-950
12
- dark:text-white;
13
-
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
+ }
14
23
  &.default {
15
- @apply border-neutral-200
16
- dark:border-neutral-900;
17
-
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
+ }
18
28
  .arrow {
19
- @apply fill-neutral-200
20
- dark:fill-neutral-900;
29
+ fill: var(--color-neutral-200, #e9edf0);
30
+ &:where([data-theme=dark], [data-theme=dark] *) {
31
+ fill: var(--color-neutral-900, #2c3437);
32
+ }
21
33
  }
22
34
  }
23
-
24
35
  &.error {
25
- @apply border-danger-400
26
- dark:border-danger-900;
27
-
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
+ }
28
40
  .arrow {
29
- @apply fill-danger-400
30
- dark:fill-danger-900;
41
+ fill: var(--color-danger-400, #fa8e8e);
42
+ &:where([data-theme=dark], [data-theme=dark] *) {
43
+ fill: var(--color-danger-900, #661514);
44
+ }
31
45
  }
32
46
  }
33
-
34
47
  &.warning {
35
- @apply border-warning-400
36
- dark:border-warning-900;
37
-
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
+ }
38
52
  .arrow {
39
- @apply fill-warning-400
40
- dark:fill-warning-900;
53
+ fill: var(--color-warning-400, #e99c40);
54
+ &:where([data-theme=dark], [data-theme=dark] *) {
55
+ fill: var(--color-warning-900, #4d2f0b);
56
+ }
41
57
  }
42
58
  }
43
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,4 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import styles from './index.module.css';
3
+ const ArticleLayout = ({ children }) => (_jsx("div", { className: styles.articleLayout, children: children }));
4
+ export default ArticleLayout;
@@ -1,70 +1,139 @@
1
- @reference "../../styles/index.css";
2
-
1
+ /*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */
3
2
  .articleLayout {
4
- @apply max-w-8xl
5
- mx-auto
6
- block
7
- w-full
8
- sm:grid
9
- sm:grid-cols-[theme(spacing.52)_1fr]
10
- sm:grid-rows-[1fr]
11
- sm:overflow-visible
12
- sm:[grid-template-areas:'sidebar_main''sidebar_footer']
13
- md:grid-cols-[theme(spacing.64)_1fr]
14
- lg:grid-cols-[theme(spacing.52)_1fr_theme(spacing.52)]
15
- lg:[grid-template-areas:'sidebar_main_metabar''sidebar_footer_metabar']
16
- xl:grid-cols-[theme(spacing.80)_1fr_theme(spacing.80)];
17
-
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
+ }
18
34
  > *:nth-child(1) {
19
- @apply [grid-area:sidebar]
20
- lg:sticky
21
- lg:top-0
22
- lg:h-[100vh]
23
- lg:overflow-y-auto;
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
+ }
24
48
  }
25
-
26
49
  > *:nth-child(2) {
27
- @apply contents
28
- sm:max-lg:block;
29
-
50
+ display: contents;
51
+ @media (width >= 40rem) {
52
+ @media (width < 64rem) {
53
+ display: block;
54
+ }
55
+ }
30
56
  > *:first-child {
31
- @apply sm:bg-gradient-subtle
32
- sm:dark:bg-gradient-subtle-dark
33
- xl:px-18
34
- p-4
35
- [grid-area:main]
36
- motion-safe:scroll-smooth
37
- sm:bg-fixed
38
- sm:p-12;
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
+ }
39
85
  }
40
-
41
86
  > *:last-child {
42
- @apply mt-8
43
- border-t
44
- [grid-area:metabar]
45
- sm:mt-0
46
- lg:sticky
47
- lg:top-0
48
- lg:max-w-xs
49
- lg:border-l
50
- lg:border-t-0;
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
+ }
51
111
  }
52
112
  }
53
-
54
113
  > *:nth-child(3) {
55
- @apply sticky
56
- bottom-0
57
- flex
58
- w-full
59
- flex-col
60
- items-center
61
- self-stretch
62
- border-t
63
- border-t-neutral-200
64
- bg-white
65
- py-4
66
- [grid-area:footer]
67
- dark:border-t-neutral-900
68
- dark:bg-neutral-950;
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
+ }
69
133
  }
70
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;
@@ -1,46 +1,61 @@
1
- @reference "../../styles/index.css";
2
-
1
+ /*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */
3
2
  .footer {
4
- @apply flex
5
- flex-col
6
- items-center
7
- gap-6
8
- border-t
9
- border-neutral-200
10
- bg-white
11
- py-4
12
- sm:px-8
13
- md:flex-row
14
- md:justify-between
15
- md:py-5
16
- dark:border-neutral-900
17
- dark:bg-neutral-950;
18
-
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
+ }
19
30
  .sectionPrimary {
20
- @apply flex
21
- flex-wrap
22
- content-start
23
- items-center
24
- justify-center
25
- gap-1
26
- self-stretch;
27
-
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;
28
38
  a {
29
- @apply whitespace-nowrap;
39
+ white-space: nowrap;
30
40
  }
31
41
  }
32
-
33
42
  .sectionSecondary {
34
- @apply flex
35
- flex-col
36
- items-center
37
- gap-1
38
- md:flex-row;
39
-
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
+ }
40
50
  .social {
41
- @apply flex
42
- items-center
43
- gap-1;
51
+ display: flex;
52
+ align-items: center;
53
+ gap: calc(var(--spacing, 0.25rem)*1);
44
54
  }
45
55
  }
46
56
  }
57
+ @property --tw-border-style {
58
+ syntax: "*";
59
+ inherits: false;
60
+ initial-value: solid;
61
+ }