@node-core/ui-components 1.0.1-ab0ba1dcb1d91392c44e91b1e74e9f565e460543 → 1.0.1-c0bc4dd7eb49f97f35ce0983849d17702404c76a

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 (206) hide show
  1. package/{src/Common → Common}/AlertBox/index.module.css +0 -7
  2. package/{src/Common → Common}/AlertBox/index.stories.tsx +0 -23
  3. package/{src/Common → Common}/BaseButton/index.module.css +1 -4
  4. package/{src/Common → Common}/BasePagination/PaginationListItem/__tests__/index.test.jsx +1 -1
  5. package/{src/Common → Common}/BasePagination/__tests__/index.test.jsx +1 -1
  6. package/{src/Common → Common}/Modal/index.module.css +3 -3
  7. package/{src/Common → Common}/Modal/index.stories.tsx +5 -7
  8. package/{src/Common → Common}/Modal/index.tsx +14 -16
  9. package/{src/Icons → Icons}/Logos/Nodejs.tsx +3 -3
  10. package/package.json +30 -21
  11. package/{src/styles → styles}/markdown.css +1 -1
  12. package/.lintstagedrc.json +0 -5
  13. package/.postcssrc.json +0 -6
  14. package/.storybook/constants.ts +0 -28
  15. package/.storybook/main.ts +0 -38
  16. package/.storybook/preview-head.html +0 -20
  17. package/.storybook/preview.tsx +0 -32
  18. package/.stylelintignore +0 -1
  19. package/.stylelintrc.mjs +0 -56
  20. package/__design__/colors.stories.tsx +0 -82
  21. package/__design__/effects.stories.tsx +0 -7
  22. package/__design__/font-family.stories.tsx +0 -76
  23. package/__design__/list.stories.tsx +0 -27
  24. package/__design__/node-logos.stories.tsx +0 -61
  25. package/__design__/platform-logos.stories.tsx +0 -31
  26. package/__design__/social-logos.stories.tsx +0 -33
  27. package/__design__/table.stories.tsx +0 -56
  28. package/__design__/text.stories.tsx +0 -100
  29. package/eslint.config.js +0 -61
  30. package/src/global.d.ts +0 -4
  31. package/tsconfig.json +0 -20
  32. package/turbo.json +0 -31
  33. /package/{src/Common → Common}/AlertBox/index.tsx +0 -0
  34. /package/{src/Common → Common}/AvatarGroup/Avatar/index.module.css +0 -0
  35. /package/{src/Common → Common}/AvatarGroup/Avatar/index.stories.tsx +0 -0
  36. /package/{src/Common → Common}/AvatarGroup/Avatar/index.tsx +0 -0
  37. /package/{src/Common → Common}/AvatarGroup/Overlay/index.module.css +0 -0
  38. /package/{src/Common → Common}/AvatarGroup/Overlay/index.stories.tsx +0 -0
  39. /package/{src/Common → Common}/AvatarGroup/Overlay/index.tsx +0 -0
  40. /package/{src/Common → Common}/AvatarGroup/__tests__/index.test.jsx +0 -0
  41. /package/{src/Common → Common}/AvatarGroup/index.module.css +0 -0
  42. /package/{src/Common → Common}/AvatarGroup/index.stories.tsx +0 -0
  43. /package/{src/Common → Common}/AvatarGroup/index.tsx +0 -0
  44. /package/{src/Common → Common}/Badge/index.module.css +0 -0
  45. /package/{src/Common → Common}/Badge/index.stories.tsx +0 -0
  46. /package/{src/Common → Common}/Badge/index.tsx +0 -0
  47. /package/{src/Common → Common}/BadgeGroup/index.module.css +0 -0
  48. /package/{src/Common → Common}/BadgeGroup/index.stories.tsx +0 -0
  49. /package/{src/Common → Common}/BadgeGroup/index.tsx +0 -0
  50. /package/{src/Common → Common}/Banner/index.module.css +0 -0
  51. /package/{src/Common → Common}/Banner/index.stories.tsx +0 -0
  52. /package/{src/Common → Common}/Banner/index.tsx +0 -0
  53. /package/{src/Common → Common}/BaseActiveLink/__tests__/index.test.jsx +0 -0
  54. /package/{src/Common → Common}/BaseActiveLink/index.tsx +0 -0
  55. /package/{src/Common → Common}/BaseButton/index.stories.tsx +0 -0
  56. /package/{src/Common → Common}/BaseButton/index.tsx +0 -0
  57. /package/{src/Common → Common}/BaseCodeBox/index.module.css +0 -0
  58. /package/{src/Common → Common}/BaseCodeBox/index.stories.tsx +0 -0
  59. /package/{src/Common → Common}/BaseCodeBox/index.tsx +0 -0
  60. /package/{src/Common → Common}/BaseCrossLink/index.module.css +0 -0
  61. /package/{src/Common → Common}/BaseCrossLink/index.stories.tsx +0 -0
  62. /package/{src/Common → Common}/BaseCrossLink/index.tsx +0 -0
  63. /package/{src/Common → Common}/BaseLinkTabs/index.module.css +0 -0
  64. /package/{src/Common → Common}/BaseLinkTabs/index.stories.tsx +0 -0
  65. /package/{src/Common → Common}/BaseLinkTabs/index.tsx +0 -0
  66. /package/{src/Common → Common}/BasePagination/Ellipsis/index.module.css +0 -0
  67. /package/{src/Common → Common}/BasePagination/Ellipsis/index.stories.tsx +0 -0
  68. /package/{src/Common → Common}/BasePagination/Ellipsis/index.tsx +0 -0
  69. /package/{src/Common → Common}/BasePagination/PaginationListItem/index.module.css +0 -0
  70. /package/{src/Common → Common}/BasePagination/PaginationListItem/index.stories.tsx +0 -0
  71. /package/{src/Common → Common}/BasePagination/PaginationListItem/index.tsx +0 -0
  72. /package/{src/Common → Common}/BasePagination/PrevNextArrow.tsx +0 -0
  73. /package/{src/Common → Common}/BasePagination/index.module.css +0 -0
  74. /package/{src/Common → Common}/BasePagination/index.stories.tsx +0 -0
  75. /package/{src/Common → Common}/BasePagination/index.tsx +0 -0
  76. /package/{src/Common → Common}/BasePagination/useGetPageElements.tsx +0 -0
  77. /package/{src/Common → Common}/Blockquote/index.module.css +0 -0
  78. /package/{src/Common → Common}/Blockquote/index.stories.tsx +0 -0
  79. /package/{src/Common → Common}/Blockquote/index.tsx +0 -0
  80. /package/{src/Common → Common}/Breadcrumbs/BreadcrumbHomeLink/index.module.css +0 -0
  81. /package/{src/Common → Common}/Breadcrumbs/BreadcrumbHomeLink/index.tsx +0 -0
  82. /package/{src/Common → Common}/Breadcrumbs/BreadcrumbItem/index.module.css +0 -0
  83. /package/{src/Common → Common}/Breadcrumbs/BreadcrumbItem/index.tsx +0 -0
  84. /package/{src/Common → Common}/Breadcrumbs/BreadcrumbLink/index.module.css +0 -0
  85. /package/{src/Common → Common}/Breadcrumbs/BreadcrumbLink/index.tsx +0 -0
  86. /package/{src/Common → Common}/Breadcrumbs/BreadcrumbRoot/index.module.css +0 -0
  87. /package/{src/Common → Common}/Breadcrumbs/BreadcrumbRoot/index.tsx +0 -0
  88. /package/{src/Common → Common}/Breadcrumbs/BreadcrumbTruncatedItem/index.tsx +0 -0
  89. /package/{src/Common → Common}/Breadcrumbs/index.stories.tsx +0 -0
  90. /package/{src/Common → Common}/Breadcrumbs/index.tsx +0 -0
  91. /package/{src/Common → Common}/ChangeHistory/index.module.css +0 -0
  92. /package/{src/Common → Common}/ChangeHistory/index.stories.tsx +0 -0
  93. /package/{src/Common → Common}/ChangeHistory/index.tsx +0 -0
  94. /package/{src/Common → Common}/CodeTabs/index.module.css +0 -0
  95. /package/{src/Common → Common}/CodeTabs/index.stories.tsx +0 -0
  96. /package/{src/Common → Common}/CodeTabs/index.tsx +0 -0
  97. /package/{src/Common → Common}/DataTag/index.module.css +0 -0
  98. /package/{src/Common → Common}/DataTag/index.stories.tsx +0 -0
  99. /package/{src/Common → Common}/DataTag/index.tsx +0 -0
  100. /package/{src/Common → Common}/GlowingBackdrop/index.module.css +0 -0
  101. /package/{src/Common → Common}/GlowingBackdrop/index.stories.tsx +0 -0
  102. /package/{src/Common → Common}/GlowingBackdrop/index.tsx +0 -0
  103. /package/{src/Common → Common}/LanguageDropDown/index.module.css +0 -0
  104. /package/{src/Common → Common}/LanguageDropDown/index.stories.tsx +0 -0
  105. /package/{src/Common → Common}/LanguageDropDown/index.tsx +0 -0
  106. /package/{src/Common → Common}/NodejsLogo/index.module.css +0 -0
  107. /package/{src/Common → Common}/NodejsLogo/index.stories.tsx +0 -0
  108. /package/{src/Common → Common}/NodejsLogo/index.tsx +0 -0
  109. /package/{src/Common → Common}/Notification/index.module.css +0 -0
  110. /package/{src/Common → Common}/Notification/index.stories.tsx +0 -0
  111. /package/{src/Common → Common}/Notification/index.tsx +0 -0
  112. /package/{src/Common → Common}/Preview/index.module.css +0 -0
  113. /package/{src/Common → Common}/Preview/index.stories.tsx +0 -0
  114. /package/{src/Common → Common}/Preview/index.tsx +0 -0
  115. /package/{src/Common → Common}/Select/__tests__/index.test.jsx +0 -0
  116. /package/{src/Common → Common}/Select/index.module.css +0 -0
  117. /package/{src/Common → Common}/Select/index.stories.tsx +0 -0
  118. /package/{src/Common → Common}/Select/index.tsx +0 -0
  119. /package/{src/Common → Common}/Separator/index.module.css +0 -0
  120. /package/{src/Common → Common}/Separator/index.stories.tsx +0 -0
  121. /package/{src/Common → Common}/Separator/index.tsx +0 -0
  122. /package/{src/Common → Common}/Skeleton/index.module.css +0 -0
  123. /package/{src/Common → Common}/Skeleton/index.tsx +0 -0
  124. /package/{src/Common → Common}/Tabs/__tests__/index.test.jsx +0 -0
  125. /package/{src/Common → Common}/Tabs/index.module.css +0 -0
  126. /package/{src/Common → Common}/Tabs/index.stories.tsx +0 -0
  127. /package/{src/Common → Common}/Tabs/index.tsx +0 -0
  128. /package/{src/Common → Common}/ThemeToggle/__tests__/index.test.jsx +0 -0
  129. /package/{src/Common → Common}/ThemeToggle/index.module.css +0 -0
  130. /package/{src/Common → Common}/ThemeToggle/index.stories.tsx +0 -0
  131. /package/{src/Common → Common}/ThemeToggle/index.tsx +0 -0
  132. /package/{src/Common → Common}/Tooltip/index.module.css +0 -0
  133. /package/{src/Common → Common}/Tooltip/index.stories.tsx +0 -0
  134. /package/{src/Common → Common}/Tooltip/index.tsx +0 -0
  135. /package/{src/Containers → Containers}/Article/index.module.css +0 -0
  136. /package/{src/Containers → Containers}/Article/index.stories.tsx +0 -0
  137. /package/{src/Containers → Containers}/Article/index.tsx +0 -0
  138. /package/{src/Containers → Containers}/DocSideBar/index.tsx +0 -0
  139. /package/{src/Containers → Containers}/Footer/index.module.css +0 -0
  140. /package/{src/Containers → Containers}/Footer/index.stories.tsx +0 -0
  141. /package/{src/Containers → Containers}/Footer/index.tsx +0 -0
  142. /package/{src/Containers → Containers}/MetaBar/__tests__/index.test.jsx +0 -0
  143. /package/{src/Containers → Containers}/MetaBar/index.module.css +0 -0
  144. /package/{src/Containers → Containers}/MetaBar/index.stories.tsx +0 -0
  145. /package/{src/Containers → Containers}/MetaBar/index.tsx +0 -0
  146. /package/{src/Containers → Containers}/NavBar/NavItem/index.module.css +0 -0
  147. /package/{src/Containers → Containers}/NavBar/NavItem/index.stories.tsx +0 -0
  148. /package/{src/Containers → Containers}/NavBar/NavItem/index.tsx +0 -0
  149. /package/{src/Containers → Containers}/NavBar/index.module.css +0 -0
  150. /package/{src/Containers → Containers}/NavBar/index.stories.tsx +0 -0
  151. /package/{src/Containers → Containers}/NavBar/index.tsx +0 -0
  152. /package/{src/Containers → Containers}/Sidebar/ProgressionIcon/index.tsx +0 -0
  153. /package/{src/Containers → Containers}/Sidebar/SidebarGroup/index.module.css +0 -0
  154. /package/{src/Containers → Containers}/Sidebar/SidebarGroup/index.stories.tsx +0 -0
  155. /package/{src/Containers → Containers}/Sidebar/SidebarGroup/index.tsx +0 -0
  156. /package/{src/Containers → Containers}/Sidebar/SidebarItem/index.module.css +0 -0
  157. /package/{src/Containers → Containers}/Sidebar/SidebarItem/index.stories.tsx +0 -0
  158. /package/{src/Containers → Containers}/Sidebar/SidebarItem/index.tsx +0 -0
  159. /package/{src/Containers → Containers}/Sidebar/index.module.css +0 -0
  160. /package/{src/Containers → Containers}/Sidebar/index.stories.tsx +0 -0
  161. /package/{src/Containers → Containers}/Sidebar/index.tsx +0 -0
  162. /package/{src/Icons → Icons}/HexagonGrid.stories.tsx +0 -0
  163. /package/{src/Icons → Icons}/HexagonGrid.tsx +0 -0
  164. /package/{src/Icons → Icons}/InstallationMethod/Choco.tsx +0 -0
  165. /package/{src/Icons → Icons}/InstallationMethod/Devbox.tsx +0 -0
  166. /package/{src/Icons → Icons}/InstallationMethod/Docker.tsx +0 -0
  167. /package/{src/Icons → Icons}/InstallationMethod/FNM.tsx +0 -0
  168. /package/{src/Icons → Icons}/InstallationMethod/Homebrew.tsx +0 -0
  169. /package/{src/Icons → Icons}/InstallationMethod/N.tsx +0 -0
  170. /package/{src/Icons → Icons}/InstallationMethod/NVM.tsx +0 -0
  171. /package/{src/Icons → Icons}/InstallationMethod/Volta.tsx +0 -0
  172. /package/{src/Icons → Icons}/InstallationMethod/index.ts +0 -0
  173. /package/{src/Icons → Icons}/Logos/JsGreen.tsx +0 -0
  174. /package/{src/Icons → Icons}/Logos/JsWhite.tsx +0 -0
  175. /package/{src/Icons → Icons}/Logos/NodejsStackedBlack.tsx +0 -0
  176. /package/{src/Icons → Icons}/Logos/NodejsStackedDark.tsx +0 -0
  177. /package/{src/Icons → Icons}/Logos/NodejsStackedLight.tsx +0 -0
  178. /package/{src/Icons → Icons}/Logos/NodejsStackedWhite.tsx +0 -0
  179. /package/{src/Icons → Icons}/Logos/index.ts +0 -0
  180. /package/{src/Icons → Icons}/OperatingSystem/AIX.tsx +0 -0
  181. /package/{src/Icons → Icons}/OperatingSystem/Apple.tsx +0 -0
  182. /package/{src/Icons → Icons}/OperatingSystem/Linux.tsx +0 -0
  183. /package/{src/Icons → Icons}/OperatingSystem/Microsoft.tsx +0 -0
  184. /package/{src/Icons → Icons}/OperatingSystem/index.ts +0 -0
  185. /package/{src/Icons → Icons}/PackageManager/Npm.tsx +0 -0
  186. /package/{src/Icons → Icons}/PackageManager/Pnpm.tsx +0 -0
  187. /package/{src/Icons → Icons}/PackageManager/Yarn.tsx +0 -0
  188. /package/{src/Icons → Icons}/PackageManager/index.ts +0 -0
  189. /package/{src/Icons → Icons}/Social/Bluesky.tsx +0 -0
  190. /package/{src/Icons → Icons}/Social/Discord.tsx +0 -0
  191. /package/{src/Icons → Icons}/Social/GitHub.tsx +0 -0
  192. /package/{src/Icons → Icons}/Social/LinkedIn.tsx +0 -0
  193. /package/{src/Icons → Icons}/Social/Mastodon.tsx +0 -0
  194. /package/{src/Icons → Icons}/Social/Slack.tsx +0 -0
  195. /package/{src/Icons → Icons}/Social/X.tsx +0 -0
  196. /package/{src/Icons → Icons}/Social/index.ts +0 -0
  197. /package/{src/MDX → MDX}/CodeTabs.tsx +0 -0
  198. /package/{src/stylelint → stylelint}/__tests__/index.test.mjs +0 -0
  199. /package/{src/stylelint → stylelint}/one-utility-class-per-line.mjs +0 -0
  200. /package/{src/stylelint → stylelint}/utils.mjs +0 -0
  201. /package/{src/styles → styles}/animations.css +0 -0
  202. /package/{src/styles → styles}/base.css +0 -0
  203. /package/{src/styles → styles}/effects.css +0 -0
  204. /package/{src/styles → styles}/index.css +0 -0
  205. /package/{src/styles → styles}/theme.css +0 -0
  206. /package/{src/types.ts → types.ts} +0 -0
@@ -73,11 +73,4 @@
73
73
  @apply bg-danger-700;
74
74
  }
75
75
  }
76
-
77
- code {
78
- /* Ignore the styles from `markdown.css` */
79
- all: unset;
80
-
81
- @apply font-ibm-plex-mono;
82
- }
83
76
  }
@@ -6,12 +6,6 @@ import AlertBox from '#ui/Common/AlertBox';
6
6
  type Story = StoryObj<typeof AlertBox>;
7
7
  type Meta = MetaObj<typeof AlertBox>;
8
8
 
9
- const withMain = (args: React.ComponentProps<typeof AlertBox>) => (
10
- <main>
11
- <AlertBox {...args} />
12
- </main>
13
- );
14
-
15
9
  export const Info: Story = {
16
10
  args: {
17
11
  level: 'info',
@@ -52,23 +46,6 @@ export const Danger: Story = {
52
46
  },
53
47
  };
54
48
 
55
- export const InMarkdown: Story = {
56
- args: {
57
- level: 'danger',
58
- title: '0',
59
- children: (
60
- <>
61
- In a markdown component, <code>Code renders correctly,</code>{' '}
62
- <a href="#">
63
- <code>even when in a link</code>
64
- </a>
65
- </>
66
- ),
67
- size: 'default',
68
- },
69
- render: withMain,
70
- };
71
-
72
49
  export const WithIcon: Story = {
73
50
  args: {
74
51
  level: 'info',
@@ -73,14 +73,11 @@
73
73
 
74
74
  &.secondary {
75
75
  @apply rounded-lg
76
- border
77
- border-neutral-200
78
76
  text-neutral-800
79
- dark:border-neutral-900
80
77
  dark:text-neutral-200;
81
78
 
82
79
  &:hover:not([aria-disabled='true']) {
83
- @apply bg-neutral-200
80
+ @apply bg-neutral-100
84
81
  text-neutral-800
85
82
  dark:bg-neutral-900
86
83
  dark:text-neutral-200;
@@ -3,7 +3,7 @@ import assert from 'node:assert/strict';
3
3
 
4
4
  import { render, screen } from '@testing-library/react';
5
5
 
6
- import { isVisible } from '../../../../../../../tests/utilities.mjs';
6
+ import { isVisible } from '../../../../../../tests/utilities.mjs';
7
7
 
8
8
  import PaginationListItem from '#ui/Common/BasePagination/PaginationListItem';
9
9
 
@@ -3,7 +3,7 @@ import assert from 'node:assert/strict';
3
3
 
4
4
  import { render, screen } from '@testing-library/react';
5
5
 
6
- import { isVisible } from '../../../../../../tests/utilities.mjs';
6
+ import { isVisible } from '../../../../../tests/utilities.mjs';
7
7
 
8
8
  import BasePagination from '#ui/Common/BasePagination';
9
9
 
@@ -17,7 +17,6 @@
17
17
  w-full
18
18
  max-w-3xl
19
19
  flex-col
20
- gap-2
21
20
  overflow-y-auto
22
21
  rounded
23
22
  border
@@ -48,7 +47,8 @@
48
47
  }
49
48
 
50
49
  .title {
51
- @apply text-3xl
50
+ @apply mb-2
51
+ text-3xl
52
52
  font-semibold
53
53
  text-neutral-900
54
54
  dark:text-white;
@@ -56,7 +56,7 @@
56
56
 
57
57
  .description {
58
58
  @apply font-regular
59
- mb-2
59
+ mb-4
60
60
  text-lg
61
61
  text-neutral-800
62
62
  dark:text-neutral-200;
@@ -1,6 +1,6 @@
1
1
  import type { Meta as MetaObj, StoryObj } from '@storybook/react';
2
2
 
3
- import { Modal, Title, Description, Content } from '#ui/Common/Modal';
3
+ import Modal from '#ui/Common/Modal';
4
4
 
5
5
  type Story = StoryObj<typeof Modal>;
6
6
  type Meta = MetaObj<typeof Modal>;
@@ -8,12 +8,10 @@ type Meta = MetaObj<typeof Modal>;
8
8
  export const Default: Story = {
9
9
  args: {
10
10
  open: true,
11
+ heading: 'Node.js Versions Information',
12
+ subheading: 'Get all information about Node.js versions and their changes.',
11
13
  children: (
12
- <Content>
13
- <Title>Node.js Versions Information</Title>
14
- <Description>
15
- Get all information about Node.js versions and their changes.
16
- </Description>
14
+ <>
17
15
  <p>
18
16
  Lorem ipsum dolor sit amet consectetur adipisicing elit. Architecto
19
17
  atque sint doloremque, sapiente recusandae debitis libero nostrum
@@ -26,7 +24,7 @@ export const Default: Story = {
26
24
  amet minus sit architecto blanditiis hic sed odit cumque numquam
27
25
  dignissimos delectus.
28
26
  </p>
29
- </Content>
27
+ </>
30
28
  ),
31
29
  },
32
30
  };
@@ -7,11 +7,15 @@ import type { FC, PropsWithChildren } from 'react';
7
7
  import styles from './index.module.css';
8
8
 
9
9
  type ModalProps = PropsWithChildren<{
10
+ heading: string;
11
+ subheading?: string;
10
12
  open?: boolean;
11
13
  onOpenChange?: (open: boolean) => void;
12
14
  }>;
13
15
 
14
16
  const Modal: FC<ModalProps> = ({
17
+ heading,
18
+ subheading,
15
19
  children,
16
20
  open = false,
17
21
  onOpenChange = () => {},
@@ -24,7 +28,15 @@ const Modal: FC<ModalProps> = ({
24
28
  <XMarkIcon />
25
29
  </Dialog.Trigger>
26
30
 
27
- {children}
31
+ <Dialog.Title className={styles.title}>{heading}</Dialog.Title>
32
+
33
+ {subheading && (
34
+ <Dialog.Description className={styles.description}>
35
+ {subheading}
36
+ </Dialog.Description>
37
+ )}
38
+
39
+ <main className={styles.wrapper}>{children}</main>
28
40
 
29
41
  <Dialog.Close />
30
42
  </Dialog.Content>
@@ -33,18 +45,4 @@ const Modal: FC<ModalProps> = ({
33
45
  </Dialog.Root>
34
46
  );
35
47
 
36
- const Title = ({ children }: PropsWithChildren) => (
37
- <Dialog.Title className={styles.title}>{children}</Dialog.Title>
38
- );
39
-
40
- const Description = ({ children }: PropsWithChildren) => (
41
- <Dialog.Description className={styles.description}>
42
- {children}
43
- </Dialog.Description>
44
- );
45
-
46
- const Content = ({ children }: PropsWithChildren) => (
47
- <main className={styles.wrapper}>{children}</main>
48
- );
49
-
50
- export { Modal, Title, Description, Content };
48
+ export default Modal;
@@ -72,7 +72,7 @@ const NodejsIcon: FC<NodeJsLogoProps> = ({
72
72
  />
73
73
 
74
74
  {variant === 'pride' ? (
75
- <g clipPath="url(#clip0_1_1661)">
75
+ <g clip-path="url(#clip0_1_1661)">
76
76
  <mask
77
77
  id="mask1_1_1661"
78
78
  style={{ maskType: 'alpha' }}
@@ -183,7 +183,7 @@ const NodejsIcon: FC<NodeJsLogoProps> = ({
183
183
  filterUnits="userSpaceOnUse"
184
184
  color-interpolation-filters="sRGB"
185
185
  >
186
- <feFlood floodOpacity="0" result="BackgroundImageFix" />
186
+ <feFlood flood-opacity="0" result="BackgroundImageFix" />
187
187
  <feColorMatrix
188
188
  in="SourceAlpha"
189
189
  type="matrix"
@@ -218,7 +218,7 @@ const NodejsIcon: FC<NodeJsLogoProps> = ({
218
218
  filterUnits="userSpaceOnUse"
219
219
  color-interpolation-filters="sRGB"
220
220
  >
221
- <feFlood floodOpacity="0" result="BackgroundImageFix" />
221
+ <feFlood flood-opacity="0" result="BackgroundImageFix" />
222
222
  <feColorMatrix
223
223
  in="SourceAlpha"
224
224
  type="matrix"
package/package.json CHANGED
@@ -3,13 +3,22 @@
3
3
  "type": "module",
4
4
  "exports": {
5
5
  "./*": [
6
- "./src/*",
7
- "./src/*.tsx",
8
- "./src/*/index.tsx",
9
- "./src/*.ts",
10
- "./src/*/index.ts"
6
+ "./*",
7
+ "./*.tsx",
8
+ "./*/index.tsx",
9
+ "./*.ts",
10
+ "./*/index.ts"
11
11
  ]
12
12
  },
13
+ "files": [
14
+ "Common",
15
+ "Containers",
16
+ "Icons",
17
+ "MDX",
18
+ "stylelint",
19
+ "styles",
20
+ "types.ts"
21
+ ],
13
22
  "dependencies": {
14
23
  "@heroicons/react": "^2.2.0",
15
24
  "@radix-ui/react-avatar": "^1.1.10",
@@ -21,21 +30,21 @@
21
30
  "@radix-ui/react-tabs": "~1.1.12",
22
31
  "@radix-ui/react-toast": "~1.2.14",
23
32
  "@radix-ui/react-tooltip": "~1.2.7",
24
- "@tailwindcss/postcss": "~4.1.11",
33
+ "@tailwindcss/postcss": "~4.1.8",
25
34
  "@vcarl/remark-headings": "~0.1.0",
26
35
  "classnames": "~2.5.1",
27
36
  "postcss-calc": "^10.1.1",
28
37
  "tailwindcss": "~4.0.17"
29
38
  },
30
39
  "devDependencies": {
31
- "@storybook/addon-styling-webpack": "^2.0.0",
32
- "@storybook/addon-themes": "^9.0.15",
40
+ "@storybook/addon-styling-webpack": "^1.0.1",
41
+ "@storybook/addon-themes": "^9.0.3",
33
42
  "@storybook/addon-webpack5-compiler-swc": "^3.0.0",
34
- "@storybook/react": "^9.0.15",
35
- "@storybook/react-webpack5": "^9.0.15",
43
+ "@storybook/react": "^9.0.3",
44
+ "@storybook/react-webpack5": "^9.0.3",
36
45
  "@testing-library/user-event": "~14.6.1",
37
46
  "@types/node": "22.15.3",
38
- "@types/react": "^19.1.8",
47
+ "@types/react": "^19.1.6",
39
48
  "cross-env": "^7.0.3",
40
49
  "css-loader": "~7.1.2",
41
50
  "eslint-plugin-react": "~7.37.4",
@@ -43,29 +52,29 @@
43
52
  "global-jsdom": "^26.0.0",
44
53
  "postcss-loader": "~8.1.1",
45
54
  "react": "^19.1.0",
46
- "storybook": "^9.0.15",
55
+ "storybook": "^9.0.3",
47
56
  "style-loader": "~4.0.0",
48
- "stylelint": "^16.21.1",
57
+ "stylelint": "^16.20.0",
49
58
  "stylelint-config-standard": "^38.0.0",
50
59
  "stylelint-order": "7.0.0",
51
60
  "stylelint-selector-bem-pattern": "4.0.1",
52
- "tsx": "^4.20.3",
61
+ "tsx": "^4.19.3",
53
62
  "typescript": "~5.8.2",
54
- "typescript-eslint": "~8.35.1"
63
+ "typescript-eslint": "~8.33.1"
55
64
  },
56
65
  "imports": {
57
66
  "#ui/*": [
58
- "./src/*",
59
- "./src/*.tsx",
60
- "./src/*/index.tsx",
61
- "./src/*.ts",
62
- "./src/*/index.ts"
67
+ "./*",
68
+ "./*.tsx",
69
+ "./*/index.tsx",
70
+ "./*.ts",
71
+ "./*/index.ts"
63
72
  ]
64
73
  },
65
74
  "engines": {
66
75
  "node": ">=20"
67
76
  },
68
- "version": "1.0.1-ab0ba1dcb1d91392c44e91b1e74e9f565e460543",
77
+ "version": "1.0.1-c0bc4dd7eb49f97f35ce0983849d17702404c76a",
69
78
  "scripts": {
70
79
  "lint": "turbo run lint:js lint:css",
71
80
  "lint:css": "stylelint \"**/*.css\" --allow-empty-input --cache --cache-strategy=content --cache-location=.stylelintcache",
@@ -157,7 +157,7 @@ main {
157
157
  @apply font-semibold;
158
158
  }
159
159
 
160
- tr:last-child > td {
160
+ tr:last-child td {
161
161
  @apply sm:border-b-0;
162
162
 
163
163
  &:last-child {
@@ -1,5 +0,0 @@
1
- {
2
- "**/*.{js,mjs,ts,tsx,md,mdx}": ["prettier --check --write", "eslint --fix"],
3
- "**/*.css": ["stylelint --allow-empty-input --fix", "prettier --write"],
4
- "**/*.{json,yml}": ["prettier --check --write"]
5
- }
package/.postcssrc.json DELETED
@@ -1,6 +0,0 @@
1
- {
2
- "plugins": {
3
- "postcss-calc": {},
4
- "@tailwindcss/postcss": {}
5
- }
6
- }
@@ -1,28 +0,0 @@
1
- // This defines "execution" modes that Chromatic will run on the each Storybook Story
2
- // This allows us to test each Story with different parameters
3
- // @see https://www.chromatic.com/blog/introducing-story-modes/
4
- export const STORYBOOK_MODES = {
5
- 'dark mobile': {
6
- theme: 'dark',
7
- viewport: 'small',
8
- },
9
- 'dark desktop': {
10
- theme: 'dark',
11
- viewport: 'large',
12
- },
13
- 'light mobile': {
14
- theme: 'light',
15
- viewport: 'small',
16
- },
17
- 'light desktop': {
18
- theme: 'light',
19
- viewport: 'large',
20
- },
21
- };
22
-
23
- // These are the supported Viewports for our Storybook Stories
24
- // It is also the different viewports that Chromatic will run the Visual Regression Tests
25
- export const STORYBOOK_SIZES = {
26
- small: { name: 'Small', styles: { width: '414px', height: '896px' } },
27
- large: { name: 'Large', styles: { width: '1024px', height: '768px' } },
28
- };
@@ -1,38 +0,0 @@
1
- import type { StorybookConfig } from '@storybook/react-webpack5';
2
-
3
- const config: StorybookConfig = {
4
- stories: ['../**/*.stories.tsx'],
5
- logLevel: 'error',
6
- typescript: { reactDocgen: false, check: false },
7
- core: { disableTelemetry: true, disableWhatsNewNotifications: true },
8
- framework: '@storybook/react-webpack5',
9
- swc: () => ({ jsc: { transform: { react: { runtime: 'automatic' } } } }),
10
- addons: [
11
- '@storybook/addon-webpack5-compiler-swc',
12
- '@storybook/addon-themes',
13
- {
14
- name: '@storybook/addon-styling-webpack',
15
- options: {
16
- rules: [
17
- // Replaces existing CSS rules to support PostCSS
18
- {
19
- test: /\.css$/,
20
- use: [
21
- 'style-loader',
22
- {
23
- loader: 'css-loader',
24
- options: {
25
- esModule: false,
26
- importLoaders: 1,
27
- },
28
- },
29
- 'postcss-loader',
30
- ],
31
- },
32
- ],
33
- },
34
- },
35
- ],
36
- };
37
-
38
- export default config;
@@ -1,20 +0,0 @@
1
- <link rel="preconnect" href="https://fonts.googleapis.com" />
2
- <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
3
-
4
- <link
5
- rel="stylesheet"
6
- href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono&family=Open+Sans:ital,wght@0,300..800;1,300..800"
7
- />
8
-
9
- <style>
10
- :root {
11
- color-scheme: light;
12
-
13
- --font-ibm-plex-mono: 'IBM Plex Mono';
14
- --font-open-sans: 'Open Sans';
15
- }
16
-
17
- html[data-theme='dark'] {
18
- color-scheme: dark;
19
- }
20
- </style>
@@ -1,32 +0,0 @@
1
- import * as Toast from '@radix-ui/react-toast';
2
- import { withThemeByDataAttribute } from '@storybook/addon-themes';
3
- import type { Preview, ReactRenderer } from '@storybook/react';
4
-
5
- import { STORYBOOK_MODES, STORYBOOK_SIZES } from './constants';
6
-
7
- import '#ui/styles/index.css';
8
-
9
- const preview: Preview = {
10
- parameters: {
11
- chromatic: { modes: STORYBOOK_MODES },
12
- viewport: { defaultViewport: 'large', viewports: STORYBOOK_SIZES },
13
- },
14
- decorators: [
15
- Story => (
16
- <Toast.Provider>
17
- <Story />
18
- <Toast.Viewport />
19
- </Toast.Provider>
20
- ),
21
- withThemeByDataAttribute<ReactRenderer>({
22
- themes: { light: '', dark: 'dark' },
23
- defaultTheme: 'light',
24
- attributeName: 'data-theme',
25
- }),
26
- // TODO(@avivkeller): Once storybook fixes their types
27
- // this can be removed, since `withThemeByDataAttribute`
28
- // will return the same type that is accepted by `Preview`
29
- ] as Preview['decorators'],
30
- };
31
-
32
- export default preview;
package/.stylelintignore DELETED
@@ -1 +0,0 @@
1
- storybook-static
package/.stylelintrc.mjs DELETED
@@ -1,56 +0,0 @@
1
- // These are all the custom `@` (at) rules that we use within our custom PostCSS plugins
2
- const CUSTOM_AT_RULES = [
3
- // Tailwind-specific at-rules
4
- 'apply',
5
- 'layer',
6
- 'responsive',
7
- 'reference',
8
- 'utility',
9
- 'theme',
10
- 'custom-variant',
11
- 'screen',
12
- 'source',
13
- 'tailwind',
14
- 'variants',
15
- ];
16
-
17
- // Enforces certain selectors to be only in camelCase notation
18
- // We use these for id selectors and classname selectors
19
- const ONLY_ALLOW_CAMEL_CASE_SELECTORS = [
20
- /^(?:[a-z]+(?:[A-Z][a-z]*)*)$/,
21
- { message: s => `Expected '${s}' to be in camelCase` },
22
- ];
23
-
24
- export default {
25
- extends: ['stylelint-config-standard'],
26
- plugins: [
27
- 'stylelint-order',
28
- 'stylelint-selector-bem-pattern',
29
- '#ui/stylelint/one-utility-class-per-line.mjs',
30
- ],
31
- rules: {
32
- // Enforces Element Class Names to be camelCase
33
- 'selector-class-pattern': ONLY_ALLOW_CAMEL_CASE_SELECTORS,
34
- // Enforces Element IDs to be camelCase
35
- 'selector-id-pattern': ONLY_ALLOW_CAMEL_CASE_SELECTORS,
36
- // Allow Tailwind-based CSS Rules
37
- 'at-rule-no-unknown': [true, { ignoreAtRules: CUSTOM_AT_RULES }],
38
- // Allow the Global CSS Selector
39
- 'selector-pseudo-class-no-unknown': [
40
- true,
41
- { ignorePseudoClasses: ['global'] },
42
- ],
43
- // Enforces the order of the CSS properties to be in alphabetical order
44
- 'order/properties-alphabetical-order': true,
45
- 'no-descending-specificity': null,
46
- // Disables the Level-4 Media Queries; Since they're more exotic and less known
47
- 'media-feature-range-notation': 'prefix',
48
- // Adopts the import notation from `postcss-import`
49
- 'import-notation': 'string',
50
- // Allow the `@apply` at rule as its part of Tailwind
51
- 'at-rule-no-deprecated': [true, { ignoreAtRules: CUSTOM_AT_RULES }],
52
- 'nodejs/one-utility-class-per-line': true,
53
- // We need complex `:not()` for headings with anchor
54
- 'selector-not-notation': null,
55
- },
56
- };
@@ -1,82 +0,0 @@
1
- import type { Meta as MetaObj, StoryObj } from '@storybook/react';
2
-
3
- export const Colors: StoryObj = {
4
- render: () => (
5
- <div className="flex flex-row justify-between">
6
- <div className="flex w-full flex-col items-center justify-between gap-1">
7
- <div className="flex flex-row gap-1">
8
- <div className="h-20 w-20 bg-green-100" />
9
- <div className="h-20 w-20 bg-green-200" />
10
- <div className="h-20 w-20 bg-green-300" />
11
- <div className="h-20 w-20 bg-green-400" />
12
- <div className="h-20 w-20 bg-green-600" />
13
- <div className="h-20 w-20 bg-green-700" />
14
- <div className="h-20 w-20 bg-green-800" />
15
- <div className="h-20 w-20 bg-green-900" />
16
- </div>
17
- <div className="flex flex-row gap-1">
18
- <div className="h-20 w-20 bg-neutral-100" />
19
- <div className="h-20 w-20 bg-neutral-200" />
20
- <div className="h-20 w-20 bg-neutral-300" />
21
- <div className="h-20 w-20 bg-neutral-400" />
22
- <div className="h-20 w-20 bg-neutral-600" />
23
- <div className="h-20 w-20 bg-neutral-700" />
24
- <div className="h-20 w-20 bg-neutral-800" />
25
- <div className="h-20 w-20 bg-neutral-900" />
26
- </div>
27
- <div className="flex flex-row gap-1">
28
- <div className="bg-danger-100 h-20 w-20" />
29
- <div className="bg-danger-200 h-20 w-20" />
30
- <div className="bg-danger-300 h-20 w-20" />
31
- <div className="bg-danger-400 h-20 w-20" />
32
- <div className="bg-danger-600 h-20 w-20" />
33
- <div className="bg-danger-700 h-20 w-20" />
34
- <div className="bg-danger-800 h-20 w-20" />
35
- <div className="bg-danger-900 h-20 w-20" />
36
- </div>
37
- <div className="flex flex-row gap-1">
38
- <div className="bg-warning-100 h-20 w-20" />
39
- <div className="bg-warning-200 h-20 w-20" />
40
- <div className="bg-warning-300 h-20 w-20" />
41
- <div className="bg-warning-400 h-20 w-20" />
42
- <div className="bg-warning-600 h-20 w-20" />
43
- <div className="bg-warning-700 h-20 w-20" />
44
- <div className="bg-warning-800 h-20 w-20" />
45
- <div className="bg-warning-900 h-20 w-20" />
46
- </div>
47
- <div className="flex flex-row gap-1">
48
- <div className="bg-info-100 h-20 w-20" />
49
- <div className="bg-info-200 h-20 w-20" />
50
- <div className="bg-info-300 h-20 w-20" />
51
- <div className="bg-info-400 h-20 w-20" />
52
- <div className="bg-info-600 h-20 w-20" />
53
- <div className="bg-info-700 h-20 w-20" />
54
- <div className="bg-info-800 h-20 w-20" />
55
- <div className="bg-info-900 h-20 w-20" />
56
- </div>
57
- <div className="flex flex-row gap-1">
58
- <div className="bg-accent1-100 h-20 w-20" />
59
- <div className="bg-accent1-200 h-20 w-20" />
60
- <div className="bg-accent1-300 h-20 w-20" />
61
- <div className="bg-accent1-400 h-20 w-20" />
62
- <div className="bg-accent1-600 h-20 w-20" />
63
- <div className="bg-accent1-700 h-20 w-20" />
64
- <div className="bg-accent1-800 h-20 w-20" />
65
- <div className="bg-accent1-900 h-20 w-20" />
66
- </div>
67
- <div className="flex flex-row gap-1">
68
- <div className="bg-accent2-100 h-20 w-20" />
69
- <div className="bg-accent2-200 h-20 w-20" />
70
- <div className="bg-accent2-300 h-20 w-20" />
71
- <div className="bg-accent2-400 h-20 w-20" />
72
- <div className="bg-accent2-600 h-20 w-20" />
73
- <div className="bg-accent2-700 h-20 w-20" />
74
- <div className="bg-accent2-800 h-20 w-20" />
75
- <div className="bg-accent2-900 h-20 w-20" />
76
- </div>
77
- </div>
78
- </div>
79
- ),
80
- };
81
-
82
- export default { title: 'Design System' } as MetaObj;
@@ -1,7 +0,0 @@
1
- import type { Meta as MetaObj, StoryObj } from '@storybook/react';
2
-
3
- export const H1Special: StoryObj = {
4
- render: () => <h1 className="special">Special H1</h1>,
5
- };
6
-
7
- export default { title: 'Design System' } as MetaObj;