@node-core/ui-components 1.0.1-0bb5d49b96e1f11e1ef6cf965861929693053ca6 → 1.0.1-1ccf19c1836415b6ec7bc2d63ffba4686b390ca9
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.
|
@@ -11,6 +11,7 @@ type SidebarGroupProps = {
|
|
|
11
11
|
items: Array<Omit<ComponentProps<typeof SidebarItem>, 'as' | 'pathname'>>;
|
|
12
12
|
as?: LinkLike;
|
|
13
13
|
pathname?: string;
|
|
14
|
+
className: string;
|
|
14
15
|
showProgressionIcons?: boolean;
|
|
15
16
|
};
|
|
16
17
|
|
|
@@ -18,13 +19,17 @@ const SidebarGroup: FC<SidebarGroupProps> = ({
|
|
|
18
19
|
groupName,
|
|
19
20
|
items,
|
|
20
21
|
showProgressionIcons,
|
|
22
|
+
className,
|
|
21
23
|
...props
|
|
22
24
|
}) => (
|
|
23
25
|
<section
|
|
24
|
-
className={classNames(
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
className={classNames(
|
|
27
|
+
{
|
|
28
|
+
[styles.group]: true,
|
|
29
|
+
[styles.progression]: showProgressionIcons,
|
|
30
|
+
},
|
|
31
|
+
className
|
|
32
|
+
)}
|
|
28
33
|
>
|
|
29
34
|
<label className={styles.groupName}>{groupName}</label>
|
|
30
35
|
<ul className={styles.itemList}>
|
|
@@ -36,7 +36,7 @@ const SidebarItem: FC<SidebarItemProps> = ({
|
|
|
36
36
|
)}
|
|
37
37
|
<span className={styles.label}>{label}</span>
|
|
38
38
|
|
|
39
|
-
{link
|
|
39
|
+
{/^https?:/.test(link) && <ArrowUpRightIcon className={styles.icon} />}
|
|
40
40
|
</BaseActiveLink>
|
|
41
41
|
);
|
|
42
42
|
|
|
@@ -45,6 +45,7 @@ const SideBar: FC<PropsWithChildren<SidebarProps>> = ({
|
|
|
45
45
|
values={selectItems}
|
|
46
46
|
defaultValue={currentItem?.value}
|
|
47
47
|
onChange={onSelect}
|
|
48
|
+
className={styles.mobileSelect}
|
|
48
49
|
/>
|
|
49
50
|
)}
|
|
50
51
|
|
|
@@ -56,6 +57,7 @@ const SideBar: FC<PropsWithChildren<SidebarProps>> = ({
|
|
|
56
57
|
pathname={pathname}
|
|
57
58
|
as={as}
|
|
58
59
|
showProgressionIcons={showProgressionIcons}
|
|
60
|
+
className={styles.navigation}
|
|
59
61
|
/>
|
|
60
62
|
))}
|
|
61
63
|
</aside>
|
package/package.json
CHANGED
|
@@ -13,11 +13,11 @@
|
|
|
13
13
|
"files": [
|
|
14
14
|
"Common",
|
|
15
15
|
"Containers",
|
|
16
|
-
"MDX",
|
|
17
16
|
"Icons",
|
|
17
|
+
"MDX",
|
|
18
|
+
"stylelint",
|
|
18
19
|
"styles",
|
|
19
|
-
"types.ts"
|
|
20
|
-
"stylelint"
|
|
20
|
+
"types.ts"
|
|
21
21
|
],
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@heroicons/react": "^2.2.0",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"tailwindcss": "~4.0.17"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@storybook/addon-themes": "^9.0.3",
|
|
41
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
43
|
"@storybook/react": "^9.0.3",
|
|
44
44
|
"@storybook/react-webpack5": "^9.0.3",
|
|
@@ -74,17 +74,17 @@
|
|
|
74
74
|
"engines": {
|
|
75
75
|
"node": ">=20"
|
|
76
76
|
},
|
|
77
|
-
"version": "1.0.1-
|
|
77
|
+
"version": "1.0.1-1ccf19c1836415b6ec7bc2d63ffba4686b390ca9",
|
|
78
78
|
"scripts": {
|
|
79
|
-
"check-types": "tsc --noEmit",
|
|
80
79
|
"lint": "turbo run lint:js lint:css",
|
|
81
80
|
"lint:css": "stylelint \"**/*.css\" --allow-empty-input --cache --cache-strategy=content --cache-location=.stylelintcache",
|
|
82
|
-
"lint:fix": "
|
|
81
|
+
"lint:fix": "node --run lint -- -- --fix",
|
|
83
82
|
"lint:js": "eslint \"**/*.{js,mjs,ts,tsx}\"",
|
|
83
|
+
"lint:types": "tsc --noEmit",
|
|
84
84
|
"storybook": "cross-env NODE_NO_WARNINGS=1 storybook dev -p 6006 --quiet",
|
|
85
85
|
"storybook:build": "cross-env NODE_NO_WARNINGS=1 storybook build --quiet --webpack-stats-json",
|
|
86
|
-
"test": "
|
|
86
|
+
"test": "node --run test:unit",
|
|
87
87
|
"test:unit": "cross-env NODE_NO_WARNINGS=1 node --experimental-test-coverage --test-coverage-exclude=**/*.test.* --enable-source-maps --import=global-jsdom/register --import=tsx --import=../../tests/setup.mjs --test **/*.test.*",
|
|
88
|
-
"test:unit:watch": "
|
|
88
|
+
"test:unit:watch": "node --run test:unit -- --watch"
|
|
89
89
|
}
|
|
90
90
|
}
|