@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
@@ -0,0 +1,5 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import classNames from 'classnames';
3
+ import styles from './index.module.css';
4
+ const AlertBox = ({ level, title, children, size = 'default', }) => (_jsxs("div", { className: classNames(styles.alertBox, styles[level], styles[size]), children: [_jsx("span", { className: styles.title, children: title }), _jsx("span", { children: children })] }));
5
+ export default AlertBox;
@@ -1,83 +1,77 @@
1
- @reference "../../styles/index.css";
2
-
1
+ /*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */
3
2
  .alertBox {
4
- @apply flex
5
- flex-row
6
- items-center
7
- gap-2
8
- rounded-sm
9
- px-4
10
- py-3
11
- text-sm
12
- text-white;
13
-
3
+ display: flex;
4
+ flex-direction: row;
5
+ align-items: center;
6
+ gap: calc(var(--spacing, 0.25rem)*2);
7
+ border-radius: var(--radius-sm, 0.25rem);
8
+ padding-inline: calc(var(--spacing, 0.25rem)*4);
9
+ padding-block: calc(var(--spacing, 0.25rem)*3);
10
+ font-size: var(--text-sm, 0.875rem);
11
+ line-height: var(--tw-leading, var(--text-sm--line-height, 1.42857));
12
+ color: var(--color-white, #fff);
14
13
  a {
15
- @apply font-bold
16
- text-white
17
- underline
18
- hover:text-white;
19
-
14
+ --tw-font-weight: var(--font-weight-bold, 700);
15
+ font-weight: var(--font-weight-bold, 700);
16
+ color: var(--color-white, #fff);
17
+ text-decoration-line: underline;
20
18
  &:hover {
21
- @apply no-underline;
19
+ @media (hover: hover) {
20
+ color: var(--color-white, #fff);
21
+ }
22
+ }
23
+ &:hover {
24
+ text-decoration-line: none;
22
25
  }
23
26
  }
24
-
25
27
  &.small {
26
- @apply gap-1
27
- py-2
28
- text-xs;
29
-
28
+ gap: calc(var(--spacing, 0.25rem)*1);
29
+ padding-block: calc(var(--spacing, 0.25rem)*2);
30
+ font-size: var(--text-xs, 0.75rem);
31
+ line-height: var(--tw-leading, var(--text-xs--line-height, 1.33333));
30
32
  .title {
31
- @apply px-1;
33
+ padding-inline: calc(var(--spacing, 0.25rem)*1);
32
34
  }
33
35
  }
34
-
35
36
  .title {
36
- @apply rounded-xs
37
- px-1.5;
37
+ border-radius: var(--radius-xs, 0.125rem);
38
+ padding-inline: calc(var(--spacing, 0.25rem)*1.5);
38
39
  }
39
-
40
40
  svg {
41
- @apply inline
42
- size-5;
41
+ display: inline;
42
+ width: calc(var(--spacing, 0.25rem)*5);
43
+ height: calc(var(--spacing, 0.25rem)*5);
43
44
  }
44
-
45
45
  &.info {
46
- @apply bg-info-600;
47
-
46
+ background-color: var(--color-info-600, #0c7bb3);
48
47
  .title {
49
- @apply bg-info-700;
48
+ background-color: var(--color-info-700, #066291);
50
49
  }
51
50
  }
52
-
53
51
  &.success {
54
- @apply bg-green-600;
55
-
52
+ background-color: var(--color-green-600, #417e38);
56
53
  .title {
57
- @apply bg-green-700;
54
+ background-color: var(--color-green-700, #2c682c);
58
55
  }
59
56
  }
60
-
61
57
  &.warning {
62
- @apply bg-warning-600;
63
-
58
+ background-color: var(--color-warning-600, #ae5f00);
64
59
  .title {
65
- @apply bg-warning-700;
60
+ background-color: var(--color-warning-700, #8b4d04);
66
61
  }
67
62
  }
68
-
69
63
  &.danger {
70
- @apply bg-danger-600;
71
-
64
+ background-color: var(--color-danger-600, #de1a1b);
72
65
  .title {
73
- @apply bg-danger-700;
66
+ background-color: var(--color-danger-700, #b80c0c);
74
67
  }
75
68
  }
76
-
77
69
  code {
78
- /* Ignore the styles from `markdown.css` */
79
70
  all: unset;
80
-
81
- @apply font-ibm-plex-mono;
71
+ font-family: var(--font-ibm-plex-mono, var(--font-ibm-plex-mono));
82
72
  }
83
73
  }
74
+ @property --tw-font-weight {
75
+ syntax: "*";
76
+ inherits: false;
77
+ }
@@ -0,0 +1,11 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import * as RadixAvatar from '@radix-ui/react-avatar';
3
+ import classNames from 'classnames';
4
+ import { forwardRef } from 'react';
5
+ import styles from './index.module.css';
6
+ const Avatar = forwardRef(({ image, nickname, name, fallback, url, size = 'small', as: Component = 'a', ...props }, ref) => {
7
+ if (!url)
8
+ Component = 'div';
9
+ return (_jsx(RadixAvatar.Root, { ...props, ref: ref, className: classNames(styles.avatar, styles[size], props.className), children: _jsxs(Component, { href: url || undefined, target: url ? '_blank' : undefined, className: styles.wrapper, children: [_jsx(RadixAvatar.Image, { loading: "lazy", decoding: "async", src: image, alt: name || nickname, className: styles.item }), _jsx(RadixAvatar.Fallback, { className: classNames(styles.item, styles[size]), children: fallback })] }) }));
10
+ });
11
+ export default Avatar;
@@ -1,40 +1,60 @@
1
- @reference "../../../styles/index.css";
2
-
1
+ /*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */
3
2
  .item {
4
- @apply xs:max-h-10
5
- xs:max-w-10
6
- flex
7
- h-full
8
- max-h-12
9
- w-full
10
- max-w-12
11
- items-center
12
- justify-center
13
- rounded-full
14
- border-2
15
- border-transparent
16
- bg-neutral-100
17
- object-cover
18
- text-xs
19
- text-neutral-800
20
- dark:bg-neutral-900
21
- dark:text-neutral-300;
3
+ display: flex;
4
+ height: 100%;
5
+ max-height: calc(var(--spacing, 0.25rem)*12);
6
+ width: 100%;
7
+ max-width: calc(var(--spacing, 0.25rem)*12);
8
+ align-items: center;
9
+ justify-content: center;
10
+ border-radius: calc(infinity*1px);
11
+ border-style: var(--tw-border-style);
12
+ border-width: 2px;
13
+ border-color: transparent;
14
+ background-color: var(--color-neutral-100, #f6f7f9);
15
+ object-fit: cover;
16
+ font-size: var(--text-xs, 0.75rem);
17
+ line-height: var(--tw-leading, var(--text-xs--line-height, 1.33333));
18
+ color: var(--color-neutral-800, #556066);
19
+ @media (width >= 670px) {
20
+ max-height: calc(var(--spacing, 0.25rem)*10);
21
+ }
22
+ @media (width >= 670px) {
23
+ max-width: calc(var(--spacing, 0.25rem)*10);
24
+ }
25
+ &:where([data-theme=dark], [data-theme=dark] *) {
26
+ background-color: var(--color-neutral-900, #2c3437);
27
+ }
28
+ &:where([data-theme=dark], [data-theme=dark] *) {
29
+ color: var(--color-neutral-300, #d9e1e4);
30
+ }
22
31
  }
23
-
24
32
  .avatar {
25
- @apply size-8;
26
-
33
+ width: calc(var(--spacing, 0.25rem)*8);
34
+ height: calc(var(--spacing, 0.25rem)*8);
27
35
  .wrapper {
28
- @apply max-xs:block
29
- max-xs:py-0;
36
+ @media (width < 670px) {
37
+ display: block;
38
+ }
39
+ @media (width < 670px) {
40
+ padding-block: calc(var(--spacing, 0.25rem)*0);
41
+ }
30
42
  }
31
43
  }
32
-
33
44
  .small {
34
- @apply xs:size-8
35
- size-10;
45
+ width: calc(var(--spacing, 0.25rem)*10);
46
+ height: calc(var(--spacing, 0.25rem)*10);
47
+ @media (width >= 670px) {
48
+ width: calc(var(--spacing, 0.25rem)*8);
49
+ height: calc(var(--spacing, 0.25rem)*8);
50
+ }
36
51
  }
37
-
38
52
  .medium {
39
- @apply size-10;
53
+ width: calc(var(--spacing, 0.25rem)*10);
54
+ height: calc(var(--spacing, 0.25rem)*10);
55
+ }
56
+ @property --tw-border-style {
57
+ syntax: "*";
58
+ inherits: false;
59
+ initial-value: solid;
40
60
  }
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { ArrowUpRightIcon } from '@heroicons/react/24/solid';
3
+ import Avatar from '#ui/Common/AvatarGroup/Avatar';
4
+ import styles from './index.module.css';
5
+ const AvatarOverlay = ({ image, name, nickname, fallback, url, as: Component = 'a', }) => (_jsxs(Component, { className: styles.overlay, href: url, target: "_blank", children: [_jsx(Avatar, { image: image, name: name, nickname: nickname, fallback: fallback, size: "medium" }), _jsxs("div", { className: styles.user, children: [name && _jsx("div", { className: styles.name, children: name }), nickname && _jsx("div", { className: styles.nickname, children: nickname })] }), _jsx(ArrowUpRightIcon, { className: styles.arrow })] }));
6
+ export default AvatarOverlay;
@@ -1,31 +1,38 @@
1
- @reference "../../../styles/index.css";
2
-
1
+ /*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */
3
2
  .overlay {
4
- @apply flex
5
- min-w-56
6
- items-center
7
- gap-2
8
- p-3;
3
+ display: flex;
4
+ min-width: calc(var(--spacing, 0.25rem)*56);
5
+ align-items: center;
6
+ gap: calc(var(--spacing, 0.25rem)*2);
7
+ padding: calc(var(--spacing, 0.25rem)*3);
9
8
  }
10
-
11
9
  .user {
12
- @apply grow;
10
+ flex-grow: 1;
13
11
  }
14
-
15
12
  .name {
16
- @apply font-semibold
17
- text-neutral-900
18
- dark:text-neutral-300;
13
+ --tw-font-weight: var(--font-weight-semibold, 600);
14
+ font-weight: var(--font-weight-semibold, 600);
15
+ color: var(--color-neutral-900, #2c3437);
16
+ &:where([data-theme=dark], [data-theme=dark] *) {
17
+ color: var(--color-neutral-300, #d9e1e4);
18
+ }
19
19
  }
20
-
21
20
  .nickname {
22
- @apply font-medium
23
- text-neutral-700
24
- dark:text-neutral-500;
21
+ --tw-font-weight: var(--font-weight-medium, 500);
22
+ font-weight: var(--font-weight-medium, 500);
23
+ color: var(--color-neutral-700, #6e7b83);
24
+ &:where([data-theme=dark], [data-theme=dark] *) {
25
+ color: var(--color-neutral-500, #b1bcc2);
26
+ }
25
27
  }
26
-
27
28
  .arrow {
28
- @apply w-3
29
- fill-neutral-600
30
- dark:fill-white;
29
+ width: calc(var(--spacing, 0.25rem)*3);
30
+ fill: var(--color-neutral-600, #929fa5);
31
+ &:where([data-theme=dark], [data-theme=dark] *) {
32
+ fill: var(--color-white, #fff);
33
+ }
34
+ }
35
+ @property --tw-font-weight {
36
+ syntax: "*";
37
+ inherits: false;
31
38
  }
@@ -0,0 +1,21 @@
1
+ 'use client';
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import classNames from 'classnames';
4
+ import { useState, useMemo } from 'react';
5
+ import Avatar from '#ui/Common/AvatarGroup/Avatar';
6
+ import avatarstyles from '#ui/Common/AvatarGroup/Avatar/index.module.css';
7
+ import AvatarOverlay from '#ui/Common/AvatarGroup/Overlay';
8
+ import Tooltip from '#ui/Common/Tooltip';
9
+ import styles from './index.module.css';
10
+ const AvatarGroup = ({ avatars, limit = 10, isExpandable = true, size = 'small', container, as, }) => {
11
+ const [showMore, setShowMore] = useState(false);
12
+ const renderAvatars = useMemo(() => avatars.slice(0, showMore ? avatars.length : limit), [avatars, limit, showMore]);
13
+ const handleShowMoreClick = isExpandable
14
+ ? () => setShowMore(prev => !prev)
15
+ : undefined;
16
+ return (_jsxs("div", { className: classNames(styles.avatarGroup, styles[size]), children: [renderAvatars.map(avatar => (_jsx(Tooltip, { asChild: true, container: container, content: _jsx(AvatarOverlay, { ...avatar, as: as }), children: _jsx(Avatar, { ...avatar, size: size, className: classNames({
17
+ 'cursor-pointer': avatar.url,
18
+ 'pointer-events-none': !avatar.url,
19
+ }), as: as }) }, avatar.nickname))), avatars.length > limit && (_jsx("span", { onClick: handleShowMoreClick, className: classNames(avatarstyles.avatar, avatarstyles[size], 'cursor-pointer'), children: _jsx("span", { className: avatarstyles.item, children: `${showMore ? '-' : '+'}${avatars.length - limit}` }) }))] }));
20
+ };
21
+ export default AvatarGroup;
@@ -1,21 +1,22 @@
1
- @reference "../../styles/index.css";
2
-
1
+ /*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */
3
2
  .avatarGroup {
4
- @apply flex
5
- flex-wrap
6
- items-center;
3
+ display: flex;
4
+ flex-wrap: wrap;
5
+ align-items: center;
7
6
  }
8
-
9
7
  .small {
10
8
  > span {
11
- @apply -ml-2
12
- first:ml-0;
9
+ margin-left: calc(var(--spacing, 0.25rem)*-2);
10
+ &:first-child {
11
+ margin-left: calc(var(--spacing, 0.25rem)*0);
12
+ }
13
13
  }
14
14
  }
15
-
16
15
  .medium {
17
16
  > span {
18
- @apply -ml-2.5
19
- first:ml-0;
17
+ margin-left: calc(var(--spacing, 0.25rem)*-2.5);
18
+ &:first-child {
19
+ margin-left: calc(var(--spacing, 0.25rem)*0);
20
+ }
20
21
  }
21
22
  }
@@ -0,0 +1,7 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import classNames from 'classnames';
3
+ import styles from './index.module.css';
4
+ const Badge = ({ kind = 'default', size = 'medium', className, children, ...props }) => {
5
+ return (_jsx("span", { className: classNames(styles.badge, styles[kind], styles[size], className), ...props, children: children }));
6
+ };
7
+ export default Badge;
@@ -1,38 +1,46 @@
1
- @reference "../../styles/index.css";
2
-
1
+ /*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */
3
2
  .badge {
4
- @apply rounded-full
5
- border
6
- text-center
7
- text-white;
8
-
3
+ border-radius: calc(infinity*1px);
4
+ border-style: var(--tw-border-style);
5
+ border-width: 1px;
6
+ text-align: center;
7
+ color: var(--color-white, #fff);
9
8
  &.small {
10
- @apply px-1.5
11
- py-0.5
12
- text-xs;
9
+ padding-inline: calc(var(--spacing, 0.25rem)*1.5);
10
+ padding-block: calc(var(--spacing, 0.25rem)*0.5);
11
+ font-size: var(--text-xs, 0.75rem);
12
+ line-height: var(--tw-leading, var(--text-xs--line-height, 1.33333));
13
13
  }
14
-
15
14
  &.medium {
16
- @apply px-2.5
17
- py-0.5
18
- text-base;
15
+ padding-inline: calc(var(--spacing, 0.25rem)*2.5);
16
+ padding-block: calc(var(--spacing, 0.25rem)*0.5);
17
+ font-size: var(--text-base, 1rem);
18
+ line-height: var(--tw-leading, var(--text-base--line-height, 1.5));
19
19
  }
20
-
21
20
  &.default {
22
- @apply border-green-200
23
- bg-green-600
24
- dark:border-green-800;
21
+ border-color: var(--color-green-200, #c5e5b4);
22
+ background-color: var(--color-green-600, #417e38);
23
+ &:where([data-theme=dark], [data-theme=dark] *) {
24
+ border-color: var(--color-green-800, #2c682c);
25
+ }
25
26
  }
26
-
27
27
  &.error {
28
- @apply border-danger-200
29
- bg-danger-600
30
- dark:border-danger-800;
28
+ border-color: var(--color-danger-200, #fad3d4);
29
+ background-color: var(--color-danger-600, #de1a1b);
30
+ &:where([data-theme=dark], [data-theme=dark] *) {
31
+ border-color: var(--color-danger-800, #900e0e);
32
+ }
31
33
  }
32
-
33
34
  &.warning {
34
- @apply border-warning-200
35
- bg-warning-600
36
- dark:border-warning-600;
35
+ border-color: var(--color-warning-200, #fad9b0);
36
+ background-color: var(--color-warning-600, #ae5f00);
37
+ &:where([data-theme=dark], [data-theme=dark] *) {
38
+ border-color: var(--color-warning-600, #ae5f00);
39
+ }
37
40
  }
38
41
  }
42
+ @property --tw-border-style {
43
+ syntax: "*";
44
+ inherits: false;
45
+ initial-value: solid;
46
+ }
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import ArrowRightIcon from '@heroicons/react/24/solid/ArrowRightIcon';
3
+ import Badge from '#ui/Common/Badge';
4
+ import styles from './index.module.css';
5
+ const BadgeGroup = ({ kind = 'default', badgeText, children, as: Component = 'a', ...args }) => (_jsxs(Component, { className: `${styles.wrapper} ${styles[kind]}`, ...args, children: [badgeText && (_jsx(Badge, { kind: kind, className: styles.badge, children: badgeText })), _jsx("span", { className: styles.message, children: children }), args.href && _jsx(ArrowRightIcon, { className: styles.icon })] }));
6
+ export default BadgeGroup;
@@ -1,77 +1,101 @@
1
- @reference "../../styles/index.css";
2
-
1
+ /*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */
3
2
  .wrapper {
4
- @apply flex
5
- w-fit
6
- items-center
7
- rounded-full
8
- border
9
- py-1
10
- pl-1
11
- pr-2.5
12
- text-sm
13
- font-medium;
14
-
3
+ display: flex;
4
+ width: fit-content;
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);
15
16
  .icon {
16
- @apply size-4;
17
+ width: calc(var(--spacing, 0.25rem)*4);
18
+ height: calc(var(--spacing, 0.25rem)*4);
17
19
  }
18
-
19
20
  .badge {
20
- @apply mr-2;
21
+ margin-right: calc(var(--spacing, 0.25rem)*2);
21
22
  }
22
-
23
23
  .message {
24
- @apply mr-1;
24
+ margin-right: calc(var(--spacing, 0.25rem)*1);
25
25
  }
26
-
27
26
  &.default {
28
- @apply border-green-200
29
- bg-green-100
30
- dark:border-green-700
31
- dark:bg-neutral-900;
32
-
27
+ border-color: var(--color-green-200, #c5e5b4);
28
+ background-color: var(--color-green-100, #edf2eb);
29
+ &:where([data-theme=dark], [data-theme=dark] *) {
30
+ border-color: var(--color-green-700, #2c682c);
31
+ }
32
+ &:where([data-theme=dark], [data-theme=dark] *) {
33
+ background-color: var(--color-neutral-900, #2c3437);
34
+ }
33
35
  .icon {
34
- @apply text-green-500
35
- dark:text-green-300;
36
+ color: var(--color-green-500, #5fa04e);
37
+ &:where([data-theme=dark], [data-theme=dark] *) {
38
+ color: var(--color-green-300, #99cc7d);
39
+ }
36
40
  }
37
-
38
41
  .message {
39
- @apply text-green-700
40
- dark:text-green-300;
42
+ color: var(--color-green-700, #2c682c);
43
+ &:where([data-theme=dark], [data-theme=dark] *) {
44
+ color: var(--color-green-300, #99cc7d);
45
+ }
41
46
  }
42
47
  }
43
-
44
48
  &.error {
45
- @apply border-danger-200
46
- bg-danger-100
47
- dark:border-danger-700
48
- dark:bg-neutral-900;
49
-
49
+ border-color: var(--color-danger-200, #fad3d4);
50
+ background-color: var(--color-danger-100, #fbf1f0);
51
+ &:where([data-theme=dark], [data-theme=dark] *) {
52
+ border-color: var(--color-danger-700, #b80c0c);
53
+ }
54
+ &:where([data-theme=dark], [data-theme=dark] *) {
55
+ background-color: var(--color-neutral-900, #2c3437);
56
+ }
50
57
  .icon {
51
- @apply text-danger-500
52
- dark:text-danger-300;
58
+ color: var(--color-danger-500, #f65354);
59
+ &:where([data-theme=dark], [data-theme=dark] *) {
60
+ color: var(--color-danger-300, #fab6b7);
61
+ }
53
62
  }
54
-
55
63
  .message {
56
- @apply text-danger-700
57
- dark:text-danger-300;
64
+ color: var(--color-danger-700, #b80c0c);
65
+ &:where([data-theme=dark], [data-theme=dark] *) {
66
+ color: var(--color-danger-300, #fab6b7);
67
+ }
58
68
  }
59
69
  }
60
-
61
70
  &.warning {
62
- @apply border-warning-200
63
- bg-warning-100
64
- dark:border-warning-700
65
- dark:bg-neutral-900;
66
-
71
+ border-color: var(--color-warning-200, #fad9b0);
72
+ background-color: var(--color-warning-100, #fdf3e7);
73
+ &:where([data-theme=dark], [data-theme=dark] *) {
74
+ border-color: var(--color-warning-700, #8b4d04);
75
+ }
76
+ &:where([data-theme=dark], [data-theme=dark] *) {
77
+ background-color: var(--color-neutral-900, #2c3437);
78
+ }
67
79
  .icon {
68
- @apply text-warning-500
69
- dark:text-warning-300;
80
+ color: var(--color-warning-500, #d07912);
81
+ &:where([data-theme=dark], [data-theme=dark] *) {
82
+ color: var(--color-warning-300, #f5bc75);
83
+ }
70
84
  }
71
-
72
85
  .message {
73
- @apply text-warning-700
74
- dark:text-warning-300;
86
+ color: var(--color-warning-700, #8b4d04);
87
+ &:where([data-theme=dark], [data-theme=dark] *) {
88
+ color: var(--color-warning-300, #f5bc75);
89
+ }
75
90
  }
76
91
  }
77
92
  }
93
+ @property --tw-border-style {
94
+ syntax: "*";
95
+ inherits: false;
96
+ initial-value: solid;
97
+ }
98
+ @property --tw-font-weight {
99
+ syntax: "*";
100
+ inherits: false;
101
+ }
@@ -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;