@node-core/ui-components 1.0.1-6cb8b0a0c75c24f5ccc84bb07a1ea9b4b810abd2 → 1.0.1-6ce9ac9c19dbcf93f5af658cca3784484762d8a3
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 +7 -0
- package/Common/AlertBox/index.stories.tsx +23 -0
- package/Common/AvatarGroup/index.module.css +4 -8
- package/Common/AvatarGroup/index.tsx +1 -5
- package/Common/BaseButton/index.module.css +4 -1
- package/Common/BaseCodeBox/index.module.css +0 -6
- package/Common/BaseCodeBox/index.tsx +7 -18
- package/Common/ChangeHistory/index.module.css +83 -0
- package/Common/ChangeHistory/index.stories.tsx +130 -0
- package/Common/ChangeHistory/index.tsx +67 -0
- package/Common/CodeTabs/index.stories.tsx +1 -2
- package/Common/DataTag/index.module.css +56 -0
- package/Common/DataTag/index.stories.tsx +40 -0
- package/Common/DataTag/index.tsx +39 -0
- package/Common/Modal/index.module.css +3 -3
- package/Common/Modal/index.stories.tsx +7 -5
- package/Common/Modal/index.tsx +16 -14
- package/Common/Tabs/index.module.css +2 -1
- package/Containers/DocSideBar/index.tsx +0 -0
- package/{Common/ProgressionSidebar/ProgressionSidebarIcon → Containers/Sidebar/ProgressionIcon}/index.tsx +2 -2
- package/Containers/Sidebar/SidebarGroup/index.module.css +54 -16
- package/Containers/Sidebar/SidebarGroup/index.tsx +21 -2
- package/Containers/Sidebar/SidebarItem/index.module.css +39 -18
- package/Containers/Sidebar/SidebarItem/index.tsx +25 -8
- package/Containers/Sidebar/index.module.css +5 -6
- package/Containers/Sidebar/index.stories.tsx +78 -74
- package/Containers/Sidebar/index.tsx +17 -5
- package/Icons/Logos/Nodejs.tsx +201 -17
- package/MDX/CodeTabs.tsx +47 -0
- package/package.json +26 -28
- package/styles/markdown.css +1 -1
- package/Common/ProgressionSidebar/ProgressionSidebarGroup/index.module.css +0 -47
- package/Common/ProgressionSidebar/ProgressionSidebarGroup/index.tsx +0 -35
- package/Common/ProgressionSidebar/ProgressionSidebarItem/index.module.css +0 -39
- package/Common/ProgressionSidebar/ProgressionSidebarItem/index.tsx +0 -32
- package/Common/ProgressionSidebar/index.module.css +0 -30
- package/Common/ProgressionSidebar/index.stories.tsx +0 -79
- package/Common/ProgressionSidebar/index.tsx +0 -59
package/Icons/Logos/Nodejs.tsx
CHANGED
|
@@ -72,9 +72,9 @@ const NodejsIcon: FC<NodeJsLogoProps> = ({
|
|
|
72
72
|
/>
|
|
73
73
|
|
|
74
74
|
{variant === 'pride' ? (
|
|
75
|
-
|
|
75
|
+
<g clipPath="url(#clip0_1_1661)">
|
|
76
76
|
<mask
|
|
77
|
-
id="
|
|
77
|
+
id="mask1_1_1661"
|
|
78
78
|
style={{ maskType: 'alpha' }}
|
|
79
79
|
maskUnits="userSpaceOnUse"
|
|
80
80
|
x="53"
|
|
@@ -83,37 +83,77 @@ const NodejsIcon: FC<NodeJsLogoProps> = ({
|
|
|
83
83
|
height="51"
|
|
84
84
|
>
|
|
85
85
|
<path
|
|
86
|
-
d="M76.
|
|
87
|
-
fill="
|
|
86
|
+
d="M76.3478 28.9593C75.9882 28.7545 75.5815 28.6469 75.1677 28.6469C74.7539 28.6469 74.3472 28.7545 73.9876 28.9593L54.5067 40.2057C53.7665 40.6229 53.35 41.4099 53.35 42.2422V64.7816C53.35 65.6147 53.8126 66.4016 54.5067 66.8181L73.9876 78.0645C74.3472 78.2693 74.7539 78.3769 75.1677 78.3769C75.5815 78.3769 75.9882 78.2693 76.3478 78.0645L95.8286 66.8181C96.5689 66.4016 96.9854 65.6139 96.9854 64.7816V42.2422C96.9813 41.8325 96.8729 41.4307 96.6705 41.0745C96.4681 40.7184 96.1784 40.4196 95.8286 40.2064L76.3478 28.9593Z"
|
|
87
|
+
fill="url(#paint0_linear_1_1661)"
|
|
88
88
|
/>
|
|
89
89
|
</mask>
|
|
90
|
-
<g mask="url(#
|
|
90
|
+
<g mask="url(#mask1_1_1661)">
|
|
91
91
|
<path
|
|
92
|
-
d="
|
|
93
|
-
fill="#
|
|
92
|
+
d="M97.0564 70.1316H53.35V78.39H97.0564V70.1316Z"
|
|
93
|
+
fill="#750787"
|
|
94
94
|
/>
|
|
95
95
|
<path
|
|
96
|
-
d="
|
|
96
|
+
d="M97.0564 61.7731H53.35V70.131H97.0564V61.7731Z"
|
|
97
97
|
fill="#004DFF"
|
|
98
98
|
/>
|
|
99
99
|
<path
|
|
100
|
-
d="
|
|
101
|
-
fill="#
|
|
100
|
+
d="M97.0564 53.5147H53.35V61.7732H97.0564V53.5147Z"
|
|
101
|
+
fill="#008026"
|
|
102
102
|
/>
|
|
103
103
|
<path
|
|
104
|
-
d="
|
|
104
|
+
d="M97.0564 45.2563H53.35V53.5148H97.0564V45.2563Z"
|
|
105
105
|
fill="#FFED00"
|
|
106
106
|
/>
|
|
107
107
|
<path
|
|
108
|
-
d="
|
|
108
|
+
d="M97.0564 36.998H53.35V45.2565H97.0564V36.998Z"
|
|
109
|
+
fill="#FF8C00"
|
|
110
|
+
/>
|
|
111
|
+
<path
|
|
112
|
+
d="M97.0564 28.64H53.35V36.998H97.0564V28.64Z"
|
|
109
113
|
fill="#E40303"
|
|
110
114
|
/>
|
|
115
|
+
</g>
|
|
116
|
+
<g style={{ mixBlendMode: 'luminosity' }} opacity="0.5">
|
|
111
117
|
<path
|
|
112
|
-
d="
|
|
113
|
-
fill="
|
|
118
|
+
d="M76.3478 28.9593C75.9882 28.7545 75.5815 28.6469 75.1677 28.6469C74.7539 28.6469 74.3472 28.7545 73.9876 28.9593L54.5067 40.2057C53.7665 40.6229 53.35 41.4099 53.35 42.2422V64.7816C53.35 65.6147 53.8126 66.4016 54.5067 66.8181L73.9876 78.0645C74.3472 78.2693 74.7539 78.3769 75.1677 78.3769C75.5815 78.3769 75.9882 78.2693 76.3478 78.0645L95.8286 66.8181C96.5689 66.4016 96.9854 65.6139 96.9854 64.7816V42.2422C96.9813 41.8325 96.8729 41.4307 96.6705 41.0745C96.4681 40.7184 96.1784 40.4196 95.8286 40.2064L76.3478 28.9593Z"
|
|
119
|
+
fill="white"
|
|
114
120
|
/>
|
|
121
|
+
<g style={{ mixBlendMode: 'luminosity' }}>
|
|
122
|
+
<mask
|
|
123
|
+
id="mask2_1_1661"
|
|
124
|
+
style={{ maskType: 'alpha' }}
|
|
125
|
+
maskUnits="userSpaceOnUse"
|
|
126
|
+
x="53"
|
|
127
|
+
y="28"
|
|
128
|
+
width="44"
|
|
129
|
+
height="51"
|
|
130
|
+
>
|
|
131
|
+
<path
|
|
132
|
+
d="M76.3478 28.9593C75.9882 28.7545 75.5815 28.6469 75.1677 28.6469C74.7539 28.6469 74.3472 28.7545 73.9876 28.9593L54.5067 40.2057C53.7665 40.6229 53.35 41.4099 53.35 42.2422V64.7816C53.35 65.6147 53.8126 66.4016 54.5067 66.8181L73.9876 78.0645C74.3472 78.2693 74.7539 78.3769 75.1677 78.3769C75.5815 78.3769 75.9882 78.2693 76.3478 78.0645L95.8286 66.8181C96.5689 66.4016 96.9854 65.6139 96.9854 64.7816V42.2422C96.9813 41.8325 96.8729 41.4307 96.6705 41.0745C96.4681 40.7184 96.1784 40.4196 95.8286 40.2064L76.3478 28.9593Z"
|
|
133
|
+
fill="url(#paint1_linear_1_1661)"
|
|
134
|
+
/>
|
|
135
|
+
</mask>
|
|
136
|
+
<g mask="url(#mask2_1_1661)">
|
|
137
|
+
<path
|
|
138
|
+
d="M76.3478 28.9593C75.9882 28.7545 75.5815 28.6469 75.1677 28.6469C74.7539 28.6469 74.3472 28.7545 73.9876 28.9593L54.5067 40.2057C53.7665 40.6229 53.35 41.4099 53.35 42.2422V64.7816C53.35 65.6147 53.8126 66.4016 54.5067 66.8181L73.9876 78.0645C74.3472 78.2693 74.7539 78.3769 75.1677 78.3769C75.5815 78.3769 75.9882 78.2693 76.3478 78.0645L95.8286 66.8181C96.5689 66.4016 96.9854 65.6139 96.9854 64.7816V42.2422C96.9813 41.8325 96.8729 41.4307 96.6705 41.0745C96.4681 40.7184 96.1784 40.4196 95.8286 40.2064L76.3478 28.9593Z"
|
|
139
|
+
fill="url(#paint2_linear_1_1661)"
|
|
140
|
+
/>
|
|
141
|
+
<g filter="url(#filter0_d_1_1661)">
|
|
142
|
+
<path
|
|
143
|
+
d="M95.8746 40.2064L76.301 28.9586C76.1087 28.8617 75.9073 28.7843 75.6996 28.7277L53.8153 66.2174C54.0002 66.4491 54.292 66.7869 54.5237 66.9258L73.9875 78.0645C74.5428 78.3882 75.1903 78.481 75.7924 78.2954L96.3832 40.6229C96.2478 40.4469 96.0738 40.3044 95.8746 40.2064Z"
|
|
144
|
+
fill="url(#paint3_linear_1_1661)"
|
|
145
|
+
/>
|
|
146
|
+
</g>
|
|
147
|
+
<g filter="url(#filter1_d_1_1661)">
|
|
148
|
+
<path
|
|
149
|
+
d="M95.8265 66.8181C96.3818 66.4937 96.8826 65.8866 96.8826 65.1549L75.5587 28.6823C75.0033 28.5895 74.4019 28.6356 73.8926 28.9593L54.4585 40.1596L75.4198 78.3882C75.7247 78.3383 76.0207 78.2448 76.2989 78.1105L95.8265 66.8181Z"
|
|
150
|
+
fill="url(#paint4_linear_1_1661)"
|
|
151
|
+
/>
|
|
152
|
+
</g>
|
|
153
|
+
</g>
|
|
154
|
+
</g>
|
|
115
155
|
</g>
|
|
116
|
-
|
|
156
|
+
</g>
|
|
117
157
|
) : (
|
|
118
158
|
<>
|
|
119
159
|
<path
|
|
@@ -131,10 +171,154 @@ const NodejsIcon: FC<NodeJsLogoProps> = ({
|
|
|
131
171
|
</>
|
|
132
172
|
)}
|
|
133
173
|
</g>
|
|
174
|
+
|
|
134
175
|
{variant === 'pride' ? (
|
|
135
176
|
<defs>
|
|
136
|
-
<
|
|
137
|
-
|
|
177
|
+
<filter
|
|
178
|
+
id="filter0_d_1_1661"
|
|
179
|
+
x="41.8153"
|
|
180
|
+
y="16.7277"
|
|
181
|
+
width="66.5679"
|
|
182
|
+
height="73.6624"
|
|
183
|
+
filterUnits="userSpaceOnUse"
|
|
184
|
+
color-interpolation-filters="sRGB"
|
|
185
|
+
>
|
|
186
|
+
<feFlood floodOpacity="0" result="BackgroundImageFix" />
|
|
187
|
+
<feColorMatrix
|
|
188
|
+
in="SourceAlpha"
|
|
189
|
+
type="matrix"
|
|
190
|
+
values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"
|
|
191
|
+
result="hardAlpha"
|
|
192
|
+
/>
|
|
193
|
+
<feOffset />
|
|
194
|
+
<feGaussianBlur stdDeviation="6" />
|
|
195
|
+
<feComposite in2="hardAlpha" operator="out" />
|
|
196
|
+
<feColorMatrix
|
|
197
|
+
type="matrix"
|
|
198
|
+
values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.75 0"
|
|
199
|
+
/>
|
|
200
|
+
<feBlend
|
|
201
|
+
mode="normal"
|
|
202
|
+
in2="BackgroundImageFix"
|
|
203
|
+
result="effect1_dropShadow_1_1661"
|
|
204
|
+
/>
|
|
205
|
+
<feBlend
|
|
206
|
+
mode="normal"
|
|
207
|
+
in="SourceGraphic"
|
|
208
|
+
in2="effect1_dropShadow_1_1661"
|
|
209
|
+
result="shape"
|
|
210
|
+
/>
|
|
211
|
+
</filter>
|
|
212
|
+
<filter
|
|
213
|
+
id="filter1_d_1_1661"
|
|
214
|
+
x="42.4585"
|
|
215
|
+
y="16.64"
|
|
216
|
+
width="66.4241"
|
|
217
|
+
height="73.7482"
|
|
218
|
+
filterUnits="userSpaceOnUse"
|
|
219
|
+
color-interpolation-filters="sRGB"
|
|
220
|
+
>
|
|
221
|
+
<feFlood floodOpacity="0" result="BackgroundImageFix" />
|
|
222
|
+
<feColorMatrix
|
|
223
|
+
in="SourceAlpha"
|
|
224
|
+
type="matrix"
|
|
225
|
+
values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"
|
|
226
|
+
result="hardAlpha"
|
|
227
|
+
/>
|
|
228
|
+
<feOffset />
|
|
229
|
+
<feGaussianBlur stdDeviation="6" />
|
|
230
|
+
<feComposite in2="hardAlpha" operator="out" />
|
|
231
|
+
<feColorMatrix
|
|
232
|
+
type="matrix"
|
|
233
|
+
values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.75 0"
|
|
234
|
+
/>
|
|
235
|
+
<feBlend
|
|
236
|
+
mode="normal"
|
|
237
|
+
in2="BackgroundImageFix"
|
|
238
|
+
result="effect1_dropShadow_1_1661"
|
|
239
|
+
/>
|
|
240
|
+
<feBlend
|
|
241
|
+
mode="normal"
|
|
242
|
+
in="SourceGraphic"
|
|
243
|
+
in2="effect1_dropShadow_1_1661"
|
|
244
|
+
result="shape"
|
|
245
|
+
/>
|
|
246
|
+
</filter>
|
|
247
|
+
<linearGradient
|
|
248
|
+
id="paint0_linear_1_1661"
|
|
249
|
+
x1="83.1011"
|
|
250
|
+
y1="37.3355"
|
|
251
|
+
x2="65.4825"
|
|
252
|
+
y2="73.2718"
|
|
253
|
+
gradientUnits="userSpaceOnUse"
|
|
254
|
+
>
|
|
255
|
+
<stop stop-color="#3F873F" />
|
|
256
|
+
<stop offset="0.33" stop-color="#3F8B3D" />
|
|
257
|
+
<stop offset="0.637" stop-color="#3E9638" />
|
|
258
|
+
<stop offset="0.934" stop-color="#3DA92E" />
|
|
259
|
+
<stop offset="1" stop-color="#3DAE2B" />
|
|
260
|
+
</linearGradient>
|
|
261
|
+
<linearGradient
|
|
262
|
+
id="paint1_linear_1_1661"
|
|
263
|
+
x1="83.1011"
|
|
264
|
+
y1="37.3355"
|
|
265
|
+
x2="65.4825"
|
|
266
|
+
y2="73.2718"
|
|
267
|
+
gradientUnits="userSpaceOnUse"
|
|
268
|
+
>
|
|
269
|
+
<stop stop-color="#3F873F" />
|
|
270
|
+
<stop offset="0.33" stop-color="#3F8B3D" />
|
|
271
|
+
<stop offset="0.637" stop-color="#3E9638" />
|
|
272
|
+
<stop offset="0.934" stop-color="#3DA92E" />
|
|
273
|
+
<stop offset="1" stop-color="#3DAE2B" />
|
|
274
|
+
</linearGradient>
|
|
275
|
+
<linearGradient
|
|
276
|
+
id="paint2_linear_1_1661"
|
|
277
|
+
x1="83.1011"
|
|
278
|
+
y1="37.3355"
|
|
279
|
+
x2="65.4825"
|
|
280
|
+
y2="73.2718"
|
|
281
|
+
gradientUnits="userSpaceOnUse"
|
|
282
|
+
>
|
|
283
|
+
<stop stop-color="#3F873F" />
|
|
284
|
+
<stop offset="0.33" stop-color="#3F8B3D" />
|
|
285
|
+
<stop offset="0.637" stop-color="#3E9638" />
|
|
286
|
+
<stop offset="0.934" stop-color="#3DA92E" />
|
|
287
|
+
<stop offset="1" stop-color="#3DAE2B" />
|
|
288
|
+
</linearGradient>
|
|
289
|
+
<linearGradient
|
|
290
|
+
id="paint3_linear_1_1661"
|
|
291
|
+
x1="72.2067"
|
|
292
|
+
y1="56.1434"
|
|
293
|
+
x2="121.636"
|
|
294
|
+
y2="19.6297"
|
|
295
|
+
gradientUnits="userSpaceOnUse"
|
|
296
|
+
>
|
|
297
|
+
<stop offset="0.138" stop-color="#3F873F" />
|
|
298
|
+
<stop offset="0.402" stop-color="#52A044" />
|
|
299
|
+
<stop offset="0.713" stop-color="#64B749" />
|
|
300
|
+
<stop offset="0.908" stop-color="#6ABF4B" />
|
|
301
|
+
</linearGradient>
|
|
302
|
+
<linearGradient
|
|
303
|
+
id="paint4_linear_1_1661"
|
|
304
|
+
x1="52.636"
|
|
305
|
+
y1="53.5048"
|
|
306
|
+
x2="97.7135"
|
|
307
|
+
y2="53.5048"
|
|
308
|
+
gradientUnits="userSpaceOnUse"
|
|
309
|
+
>
|
|
310
|
+
<stop offset="0.092" stop-color="#6ABF4B" />
|
|
311
|
+
<stop offset="0.287" stop-color="#64B749" />
|
|
312
|
+
<stop offset="0.598" stop-color="#52A044" />
|
|
313
|
+
<stop offset="0.862" stop-color="#3F873F" />
|
|
314
|
+
</linearGradient>
|
|
315
|
+
<clipPath id="clip0_1_1661">
|
|
316
|
+
<rect
|
|
317
|
+
width="43.7067"
|
|
318
|
+
height="49.75"
|
|
319
|
+
fill="white"
|
|
320
|
+
transform="translate(53.35 28.64)"
|
|
321
|
+
/>
|
|
138
322
|
</clipPath>
|
|
139
323
|
</defs>
|
|
140
324
|
) : (
|
package/MDX/CodeTabs.tsx
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
2
|
+
import type { FC, ReactElement } from 'react';
|
|
3
|
+
|
|
4
|
+
import CodeTabs from '#ui/Common/CodeTabs';
|
|
5
|
+
|
|
6
|
+
type MDXCodeTabsProps = {
|
|
7
|
+
children: Array<ReactElement<unknown>>;
|
|
8
|
+
languages: string;
|
|
9
|
+
displayNames?: string;
|
|
10
|
+
defaultTab?: string;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
const MDXCodeTabs: FC<MDXCodeTabsProps> = ({
|
|
14
|
+
languages: rawLanguages,
|
|
15
|
+
displayNames: rawDisplayNames,
|
|
16
|
+
children: codes,
|
|
17
|
+
defaultTab = '0',
|
|
18
|
+
...props
|
|
19
|
+
}) => {
|
|
20
|
+
const languages = rawLanguages.split('|');
|
|
21
|
+
const displayNames = rawDisplayNames?.split('|') ?? [];
|
|
22
|
+
|
|
23
|
+
const tabs = languages.map((language, index) => {
|
|
24
|
+
const displayName = displayNames[index];
|
|
25
|
+
|
|
26
|
+
return {
|
|
27
|
+
key: `${language}-${index}`,
|
|
28
|
+
label: displayName?.length ? displayName : language.toUpperCase(),
|
|
29
|
+
};
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
return (
|
|
33
|
+
<CodeTabs
|
|
34
|
+
tabs={tabs}
|
|
35
|
+
defaultValue={tabs[Number(defaultTab)].key}
|
|
36
|
+
{...props}
|
|
37
|
+
>
|
|
38
|
+
{languages.map((_, index) => (
|
|
39
|
+
<TabsPrimitive.Content key={tabs[index].key} value={tabs[index].key}>
|
|
40
|
+
{codes[index]}
|
|
41
|
+
</TabsPrimitive.Content>
|
|
42
|
+
))}
|
|
43
|
+
</CodeTabs>
|
|
44
|
+
);
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
export default MDXCodeTabs;
|
package/package.json
CHANGED
|
@@ -14,55 +14,53 @@
|
|
|
14
14
|
"Common",
|
|
15
15
|
"Containers",
|
|
16
16
|
"Icons",
|
|
17
|
+
"MDX",
|
|
18
|
+
"stylelint",
|
|
17
19
|
"styles",
|
|
18
|
-
"types.ts"
|
|
19
|
-
"stylelint"
|
|
20
|
+
"types.ts"
|
|
20
21
|
],
|
|
21
22
|
"dependencies": {
|
|
22
23
|
"@heroicons/react": "^2.2.0",
|
|
23
|
-
"@radix-ui/react-avatar": "^1.1.
|
|
24
|
-
"@radix-ui/react-dialog": "^1.1.
|
|
25
|
-
"@radix-ui/react-dropdown-menu": "~2.1.
|
|
26
|
-
"@radix-ui/react-label": "~2.1.
|
|
27
|
-
"@radix-ui/react-select": "~2.2.
|
|
28
|
-
"@radix-ui/react-separator": "~1.1.
|
|
29
|
-
"@radix-ui/react-tabs": "~1.1.
|
|
30
|
-
"@radix-ui/react-toast": "~1.2.
|
|
31
|
-
"@radix-ui/react-tooltip": "~1.2.
|
|
32
|
-
"@tailwindcss/postcss": "~4.1.
|
|
24
|
+
"@radix-ui/react-avatar": "^1.1.10",
|
|
25
|
+
"@radix-ui/react-dialog": "^1.1.14",
|
|
26
|
+
"@radix-ui/react-dropdown-menu": "~2.1.15",
|
|
27
|
+
"@radix-ui/react-label": "~2.1.7",
|
|
28
|
+
"@radix-ui/react-select": "~2.2.5",
|
|
29
|
+
"@radix-ui/react-separator": "~1.1.7",
|
|
30
|
+
"@radix-ui/react-tabs": "~1.1.12",
|
|
31
|
+
"@radix-ui/react-toast": "~1.2.14",
|
|
32
|
+
"@radix-ui/react-tooltip": "~1.2.7",
|
|
33
|
+
"@tailwindcss/postcss": "~4.1.8",
|
|
33
34
|
"@vcarl/remark-headings": "~0.1.0",
|
|
34
35
|
"classnames": "~2.5.1",
|
|
35
36
|
"postcss-calc": "^10.1.1",
|
|
36
37
|
"tailwindcss": "~4.0.17"
|
|
37
38
|
},
|
|
38
39
|
"devDependencies": {
|
|
39
|
-
"@storybook/addon-controls": "^8.6.12",
|
|
40
|
-
"@storybook/addon-interactions": "^8.6.12",
|
|
41
40
|
"@storybook/addon-styling-webpack": "^1.0.1",
|
|
42
|
-
"@storybook/addon-themes": "^
|
|
43
|
-
"@storybook/addon-viewport": "^8.6.12",
|
|
41
|
+
"@storybook/addon-themes": "^9.0.3",
|
|
44
42
|
"@storybook/addon-webpack5-compiler-swc": "^3.0.0",
|
|
45
|
-
"@storybook/react": "^
|
|
46
|
-
"@storybook/react-webpack5": "^
|
|
43
|
+
"@storybook/react": "^9.0.3",
|
|
44
|
+
"@storybook/react-webpack5": "^9.0.3",
|
|
47
45
|
"@testing-library/user-event": "~14.6.1",
|
|
48
46
|
"@types/node": "22.15.3",
|
|
49
|
-
"@types/react": "^19.1.
|
|
47
|
+
"@types/react": "^19.1.6",
|
|
50
48
|
"cross-env": "^7.0.3",
|
|
51
49
|
"css-loader": "~7.1.2",
|
|
52
50
|
"eslint-plugin-react": "~7.37.4",
|
|
53
|
-
"eslint-plugin-storybook": "~0.
|
|
51
|
+
"eslint-plugin-storybook": "~9.0.3",
|
|
54
52
|
"global-jsdom": "^26.0.0",
|
|
55
53
|
"postcss-loader": "~8.1.1",
|
|
56
54
|
"react": "^19.1.0",
|
|
57
|
-
"storybook": "^
|
|
55
|
+
"storybook": "^9.0.3",
|
|
58
56
|
"style-loader": "~4.0.0",
|
|
59
|
-
"stylelint": "^16.
|
|
57
|
+
"stylelint": "^16.20.0",
|
|
60
58
|
"stylelint-config-standard": "^38.0.0",
|
|
61
59
|
"stylelint-order": "7.0.0",
|
|
62
60
|
"stylelint-selector-bem-pattern": "4.0.1",
|
|
63
61
|
"tsx": "^4.19.3",
|
|
64
62
|
"typescript": "~5.8.2",
|
|
65
|
-
"typescript-eslint": "~8.
|
|
63
|
+
"typescript-eslint": "~8.33.1"
|
|
66
64
|
},
|
|
67
65
|
"imports": {
|
|
68
66
|
"#ui/*": [
|
|
@@ -76,17 +74,17 @@
|
|
|
76
74
|
"engines": {
|
|
77
75
|
"node": ">=20"
|
|
78
76
|
},
|
|
79
|
-
"version": "1.0.1-
|
|
77
|
+
"version": "1.0.1-6ce9ac9c19dbcf93f5af658cca3784484762d8a3",
|
|
80
78
|
"scripts": {
|
|
81
|
-
"check-types": "tsc --noEmit",
|
|
82
79
|
"lint": "turbo run lint:js lint:css",
|
|
83
80
|
"lint:css": "stylelint \"**/*.css\" --allow-empty-input --cache --cache-strategy=content --cache-location=.stylelintcache",
|
|
84
|
-
"lint:fix": "
|
|
81
|
+
"lint:fix": "node --run lint -- -- --fix",
|
|
85
82
|
"lint:js": "eslint \"**/*.{js,mjs,ts,tsx}\"",
|
|
83
|
+
"lint:types": "tsc --noEmit",
|
|
86
84
|
"storybook": "cross-env NODE_NO_WARNINGS=1 storybook dev -p 6006 --quiet",
|
|
87
85
|
"storybook:build": "cross-env NODE_NO_WARNINGS=1 storybook build --quiet --webpack-stats-json",
|
|
88
|
-
"test": "
|
|
86
|
+
"test": "node --run test:unit",
|
|
89
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.*",
|
|
90
|
-
"test:unit:watch": "
|
|
88
|
+
"test:unit:watch": "node --run test:unit -- --watch"
|
|
91
89
|
}
|
|
92
90
|
}
|
package/styles/markdown.css
CHANGED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
@reference "../../../styles/index.css";
|
|
2
|
-
|
|
3
|
-
.group {
|
|
4
|
-
@apply flex
|
|
5
|
-
flex-col
|
|
6
|
-
gap-4
|
|
7
|
-
text-sm
|
|
8
|
-
font-medium
|
|
9
|
-
text-neutral-800
|
|
10
|
-
dark:text-neutral-200;
|
|
11
|
-
|
|
12
|
-
.items {
|
|
13
|
-
@apply relative
|
|
14
|
-
-left-1
|
|
15
|
-
flex
|
|
16
|
-
flex-col
|
|
17
|
-
gap-2
|
|
18
|
-
after:absolute
|
|
19
|
-
after:left-[0.45rem]
|
|
20
|
-
after:top-0
|
|
21
|
-
after:z-10
|
|
22
|
-
after:h-full
|
|
23
|
-
after:w-px
|
|
24
|
-
after:bg-neutral-200
|
|
25
|
-
after:content-['']
|
|
26
|
-
dark:after:bg-neutral-800;
|
|
27
|
-
|
|
28
|
-
a {
|
|
29
|
-
@apply first:before:absolute
|
|
30
|
-
first:before:bottom-[calc(50%+0.25rem)]
|
|
31
|
-
first:before:left-0
|
|
32
|
-
first:before:h-20
|
|
33
|
-
first:before:w-4
|
|
34
|
-
first:before:bg-white
|
|
35
|
-
first:before:content-['']
|
|
36
|
-
last:after:absolute
|
|
37
|
-
last:after:left-0
|
|
38
|
-
last:after:top-[calc(50%+0.25rem)]
|
|
39
|
-
last:after:h-20
|
|
40
|
-
last:after:w-4
|
|
41
|
-
last:after:bg-white
|
|
42
|
-
last:after:content-['']
|
|
43
|
-
first:dark:before:bg-neutral-950
|
|
44
|
-
last:dark:after:bg-neutral-950;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import type { ComponentProps, FC } from 'react';
|
|
2
|
-
|
|
3
|
-
import ProgressionSidebarItem from '#ui/Common/ProgressionSidebar/ProgressionSidebarItem';
|
|
4
|
-
import type { FormattedMessage, LinkLike } from '#ui/types';
|
|
5
|
-
|
|
6
|
-
import styles from './index.module.css';
|
|
7
|
-
|
|
8
|
-
type ProgressionSidebarGroupProps = {
|
|
9
|
-
groupName: FormattedMessage;
|
|
10
|
-
items: Array<ComponentProps<typeof ProgressionSidebarItem>>;
|
|
11
|
-
pathname?: string;
|
|
12
|
-
as?: LinkLike;
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
const ProgressionSidebarGroup: FC<ProgressionSidebarGroupProps> = ({
|
|
16
|
-
groupName,
|
|
17
|
-
items,
|
|
18
|
-
...props
|
|
19
|
-
}) => (
|
|
20
|
-
<section className={styles.group}>
|
|
21
|
-
{groupName}
|
|
22
|
-
<div className={styles.items}>
|
|
23
|
-
{items.map(({ label, link }) => (
|
|
24
|
-
<ProgressionSidebarItem
|
|
25
|
-
key={link}
|
|
26
|
-
label={label}
|
|
27
|
-
link={link}
|
|
28
|
-
{...props}
|
|
29
|
-
/>
|
|
30
|
-
))}
|
|
31
|
-
</div>
|
|
32
|
-
</section>
|
|
33
|
-
);
|
|
34
|
-
|
|
35
|
-
export default ProgressionSidebarGroup;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
@reference "../../../styles/index.css";
|
|
2
|
-
|
|
3
|
-
a.item {
|
|
4
|
-
@apply font-regular
|
|
5
|
-
relative
|
|
6
|
-
z-20
|
|
7
|
-
flex
|
|
8
|
-
w-full
|
|
9
|
-
items-center
|
|
10
|
-
gap-1
|
|
11
|
-
overflow-hidden
|
|
12
|
-
text-sm
|
|
13
|
-
text-neutral-800
|
|
14
|
-
dark:text-neutral-200;
|
|
15
|
-
|
|
16
|
-
&:hover {
|
|
17
|
-
@apply text-neutral-900
|
|
18
|
-
motion-safe:transition-colors
|
|
19
|
-
dark:text-white;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
svg {
|
|
23
|
-
@apply shrink-0
|
|
24
|
-
fill-neutral-200
|
|
25
|
-
stroke-white
|
|
26
|
-
stroke-[4]
|
|
27
|
-
dark:fill-neutral-800
|
|
28
|
-
dark:stroke-neutral-950;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
&.active {
|
|
32
|
-
@apply text-neutral-900
|
|
33
|
-
dark:text-white;
|
|
34
|
-
|
|
35
|
-
svg {
|
|
36
|
-
@apply fill-green-500;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import type { FC } from 'react';
|
|
2
|
-
|
|
3
|
-
import BaseActiveLink from '#ui/Common/BaseActiveLink';
|
|
4
|
-
import ProgressionSidebarIcon from '#ui/Common/ProgressionSidebar/ProgressionSidebarIcon';
|
|
5
|
-
import type { FormattedMessage, LinkLike } from '#ui/types';
|
|
6
|
-
|
|
7
|
-
import styles from './index.module.css';
|
|
8
|
-
|
|
9
|
-
type ProgressionSidebarItemProps = {
|
|
10
|
-
label: FormattedMessage;
|
|
11
|
-
link: string;
|
|
12
|
-
as?: LinkLike;
|
|
13
|
-
pathname?: string;
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
const ProgressionSidebarItem: FC<ProgressionSidebarItemProps> = ({
|
|
17
|
-
label,
|
|
18
|
-
link,
|
|
19
|
-
...props
|
|
20
|
-
}) => (
|
|
21
|
-
<BaseActiveLink
|
|
22
|
-
className={styles.item}
|
|
23
|
-
activeClassName={styles.active}
|
|
24
|
-
href={link}
|
|
25
|
-
{...props}
|
|
26
|
-
>
|
|
27
|
-
<ProgressionSidebarIcon />
|
|
28
|
-
{label}
|
|
29
|
-
</BaseActiveLink>
|
|
30
|
-
);
|
|
31
|
-
|
|
32
|
-
export default ProgressionSidebarItem;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
@reference "../../styles/index.css";
|
|
2
|
-
|
|
3
|
-
.wrapper {
|
|
4
|
-
@apply flex
|
|
5
|
-
w-full
|
|
6
|
-
flex-col
|
|
7
|
-
gap-8
|
|
8
|
-
overflow-auto
|
|
9
|
-
border-r-0
|
|
10
|
-
border-neutral-200
|
|
11
|
-
bg-white
|
|
12
|
-
px-4
|
|
13
|
-
py-6
|
|
14
|
-
sm:border-r
|
|
15
|
-
md:max-w-xs
|
|
16
|
-
lg:px-6
|
|
17
|
-
dark:border-neutral-900
|
|
18
|
-
dark:bg-neutral-950;
|
|
19
|
-
|
|
20
|
-
> section {
|
|
21
|
-
@apply hidden
|
|
22
|
-
sm:flex;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
> span {
|
|
26
|
-
@apply flex
|
|
27
|
-
w-full
|
|
28
|
-
sm:hidden;
|
|
29
|
-
}
|
|
30
|
-
}
|