@node-core/ui-components 1.0.1-4ebead0c76b580d1bf722ebcd0f644e82dc06c0d → 1.0.1-6272aabe8580cc905658dbf0d638b23110a6799e
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Common/AlertBox/index.module.css +0 -7
- package/Common/AlertBox/index.stories.tsx +0 -23
- package/Common/BaseButton/index.module.css +1 -4
- package/Common/Modal/index.module.css +3 -3
- package/Common/Modal/index.stories.tsx +5 -7
- package/Common/Modal/index.tsx +14 -16
- package/Containers/DocSideBar/index.tsx +0 -0
- package/Containers/Sidebar/index.tsx +0 -3
- package/Icons/Logos/Nodejs.tsx +3 -3
- package/package.json +9 -9
- package/styles/markdown.css +1 -1
|
@@ -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-
|
|
80
|
+
@apply bg-neutral-100
|
|
84
81
|
text-neutral-800
|
|
85
82
|
dark:bg-neutral-900
|
|
86
83
|
dark:text-neutral-200;
|
|
@@ -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
|
|
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-
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
27
|
+
</>
|
|
30
28
|
),
|
|
31
29
|
},
|
|
32
30
|
};
|
package/Common/Modal/index.tsx
CHANGED
|
@@ -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
|
-
{
|
|
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
|
-
|
|
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;
|
|
File without changes
|
|
@@ -15,7 +15,6 @@ type SidebarProps = {
|
|
|
15
15
|
onSelect: (value: string) => void;
|
|
16
16
|
as?: LinkLike;
|
|
17
17
|
showProgressionIcons?: boolean;
|
|
18
|
-
placeholder?: string;
|
|
19
18
|
};
|
|
20
19
|
|
|
21
20
|
const SideBar: FC<PropsWithChildren<SidebarProps>> = ({
|
|
@@ -26,7 +25,6 @@ const SideBar: FC<PropsWithChildren<SidebarProps>> = ({
|
|
|
26
25
|
as,
|
|
27
26
|
showProgressionIcons = false,
|
|
28
27
|
children,
|
|
29
|
-
placeholder,
|
|
30
28
|
}) => {
|
|
31
29
|
const selectItems = groups.map(({ items, groupName }) => ({
|
|
32
30
|
label: groupName,
|
|
@@ -46,7 +44,6 @@ const SideBar: FC<PropsWithChildren<SidebarProps>> = ({
|
|
|
46
44
|
label={title}
|
|
47
45
|
values={selectItems}
|
|
48
46
|
defaultValue={currentItem?.value}
|
|
49
|
-
placeholder={placeholder}
|
|
50
47
|
onChange={onSelect}
|
|
51
48
|
className={styles.mobileSelect}
|
|
52
49
|
/>
|
package/Icons/Logos/Nodejs.tsx
CHANGED
|
@@ -72,7 +72,7 @@ const NodejsIcon: FC<NodeJsLogoProps> = ({
|
|
|
72
72
|
/>
|
|
73
73
|
|
|
74
74
|
{variant === 'pride' ? (
|
|
75
|
-
<g
|
|
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
|
|
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
|
|
221
|
+
<feFlood flood-opacity="0" result="BackgroundImageFix" />
|
|
222
222
|
<feColorMatrix
|
|
223
223
|
in="SourceAlpha"
|
|
224
224
|
type="matrix"
|
package/package.json
CHANGED
|
@@ -30,21 +30,21 @@
|
|
|
30
30
|
"@radix-ui/react-tabs": "~1.1.12",
|
|
31
31
|
"@radix-ui/react-toast": "~1.2.14",
|
|
32
32
|
"@radix-ui/react-tooltip": "~1.2.7",
|
|
33
|
-
"@tailwindcss/postcss": "~4.1.
|
|
33
|
+
"@tailwindcss/postcss": "~4.1.8",
|
|
34
34
|
"@vcarl/remark-headings": "~0.1.0",
|
|
35
35
|
"classnames": "~2.5.1",
|
|
36
36
|
"postcss-calc": "^10.1.1",
|
|
37
37
|
"tailwindcss": "~4.0.17"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@storybook/addon-styling-webpack": "^
|
|
41
|
-
"@storybook/addon-themes": "^9.0.
|
|
40
|
+
"@storybook/addon-styling-webpack": "^1.0.1",
|
|
41
|
+
"@storybook/addon-themes": "^9.0.3",
|
|
42
42
|
"@storybook/addon-webpack5-compiler-swc": "^3.0.0",
|
|
43
|
-
"@storybook/react": "^9.0.
|
|
44
|
-
"@storybook/react-webpack5": "^9.0.
|
|
43
|
+
"@storybook/react": "^9.0.3",
|
|
44
|
+
"@storybook/react-webpack5": "^9.0.3",
|
|
45
45
|
"@testing-library/user-event": "~14.6.1",
|
|
46
46
|
"@types/node": "22.15.3",
|
|
47
|
-
"@types/react": "^19.1.
|
|
47
|
+
"@types/react": "^19.1.6",
|
|
48
48
|
"cross-env": "^7.0.3",
|
|
49
49
|
"css-loader": "~7.1.2",
|
|
50
50
|
"eslint-plugin-react": "~7.37.4",
|
|
@@ -52,13 +52,13 @@
|
|
|
52
52
|
"global-jsdom": "^26.0.0",
|
|
53
53
|
"postcss-loader": "~8.1.1",
|
|
54
54
|
"react": "^19.1.0",
|
|
55
|
-
"storybook": "^9.0.
|
|
55
|
+
"storybook": "^9.0.3",
|
|
56
56
|
"style-loader": "~4.0.0",
|
|
57
57
|
"stylelint": "^16.20.0",
|
|
58
58
|
"stylelint-config-standard": "^38.0.0",
|
|
59
59
|
"stylelint-order": "7.0.0",
|
|
60
60
|
"stylelint-selector-bem-pattern": "4.0.1",
|
|
61
|
-
"tsx": "^4.
|
|
61
|
+
"tsx": "^4.19.3",
|
|
62
62
|
"typescript": "~5.8.2",
|
|
63
63
|
"typescript-eslint": "~8.33.1"
|
|
64
64
|
},
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"engines": {
|
|
75
75
|
"node": ">=20"
|
|
76
76
|
},
|
|
77
|
-
"version": "1.0.1-
|
|
77
|
+
"version": "1.0.1-6272aabe8580cc905658dbf0d638b23110a6799e",
|
|
78
78
|
"scripts": {
|
|
79
79
|
"lint": "turbo run lint:js lint:css",
|
|
80
80
|
"lint:css": "stylelint \"**/*.css\" --allow-empty-input --cache --cache-strategy=content --cache-location=.stylelintcache",
|