@egov3/system-design 1.0.16 → 1.0.21

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 (55) hide show
  1. package/.github/workflows/publish.yml +4 -2
  2. package/__tests__/components/InputField.test.tsx +101 -101
  3. package/dist/index.d.ts +2 -0
  4. package/dist/index.js +5 -0
  5. package/dist/jest.config.d.ts +3 -0
  6. package/dist/jest.config.js +46 -0
  7. package/dist/jest.setup.d.ts +1 -0
  8. package/dist/jest.setup.js +4 -0
  9. package/dist/src/app/page.d.ts +0 -0
  10. package/dist/src/app/page.js +1 -0
  11. package/dist/src/components/InputField/index.d.ts +19 -0
  12. package/dist/src/components/InputField/index.js +37 -0
  13. package/dist/src/components/index.d.ts +3 -0
  14. package/dist/src/components/index.js +5 -0
  15. package/dist/src/svg/ClearIcon.d.ts +4 -0
  16. package/dist/src/svg/ClearIcon.js +8 -0
  17. package/dist/src/svg/index.d.ts +2 -0
  18. package/dist/src/svg/index.js +5 -0
  19. package/dist/src/utils/ClassNamesFn.d.ts +1 -0
  20. package/dist/src/utils/ClassNamesFn.js +5 -0
  21. package/dist/tsconfig.tsbuildinfo +1 -0
  22. package/index.tsx +3 -3
  23. package/jest.config.ts +45 -45
  24. package/jest.setup.ts +2 -2
  25. package/package.json +90 -90
  26. package/public/img/Circled-1.svg +11 -11
  27. package/public/img/Circled-2.svg +11 -11
  28. package/public/img/Circled-3.svg +11 -11
  29. package/public/img/Mobile-chat.svg +11 -11
  30. package/public/img/accessibility-1.svg +3 -3
  31. package/public/img/account-1.svg +3 -3
  32. package/public/img/car.svg +3 -3
  33. package/public/img/language-1.svg +5 -5
  34. package/public/img/logo.svg +7 -7
  35. package/src/components/InputField/InputField.module.scss +57 -57
  36. package/src/components/InputField/index.tsx +108 -108
  37. package/src/components/index.tsx +3 -3
  38. package/src/stories/CardWrapperItem.tsx +29 -29
  39. package/src/stories/Configure.tsx +494 -494
  40. package/src/stories/assets/accessibility.svg +4 -4
  41. package/src/stories/assets/discord.svg +15 -15
  42. package/src/stories/assets/github.svg +3 -3
  43. package/src/stories/assets/tutorials.svg +12 -12
  44. package/src/stories/assets/youtube.svg +4 -4
  45. package/src/stories/components/Button.stories.tsx +127 -127
  46. package/src/styles/colors.module.scss +42 -42
  47. package/src/styles/globals.scss +43 -43
  48. package/src/styles/structure.module.scss +60 -60
  49. package/src/styles/typography.module.scss +120 -120
  50. package/src/svg/ClearIcon.tsx +26 -26
  51. package/src/svg/index.tsx +3 -3
  52. package/src/utils/ClassNamesFn.tsx +2 -2
  53. package/tsconfig.json +38 -38
  54. package/.storybook/main.ts +0 -21
  55. package/.storybook/preview.ts +0 -24
@@ -1,494 +1,494 @@
1
- import { Meta } from '@storybook/blocks';
2
- import Image from 'next/image';
3
-
4
- import Github from './assets/github.svg';
5
- import Discord from './assets/discord.svg';
6
- import Youtube from './assets/youtube.svg';
7
- import Tutorials from './assets/tutorials.svg';
8
- import Styling from './assets/styling.png';
9
- import Context from './assets/context.png';
10
- import Assets from './assets/assets.png';
11
- import Docs from './assets/docs.png';
12
- import Share from './assets/share.png';
13
- import FigmaPlugin from './assets/figma-plugin.png';
14
- import Testing from './assets/testing.png';
15
- import Accessibility from './assets/accessibility.png';
16
- import Theming from './assets/theming.png';
17
- import AddonLibrary from './assets/addon-library.png';
18
-
19
- export const RightArrow = () => (
20
- <>
21
- <svg
22
- viewBox="0 0 14 14"
23
- width="8px"
24
- height="14px"
25
- style={{
26
- marginLeft: '4px',
27
- display: 'inline-block',
28
- shapeRendering: 'inherit',
29
- verticalAlign: 'middle',
30
- fill: 'currentColor',
31
- }}
32
- >
33
- <path d="m11.1 7.35-5.5 5.5a.5.5 0 0 1-.7-.7L10.04 7 4.9 1.85a.5.5 0 1 1 .7-.7l5.5 5.5c.2.2.2.5 0 .7Z" />
34
- </svg>
35
- <Meta title="Configure your project" />
36
- <div className="sb-container">
37
- <div className="sb-section-title">
38
- # Configure your project $
39
- {`Because Storybook works separately from your app, you'll need to configure it for your specific stack and setup. Below, explore guides for configuring Storybook with popular frameworks and tools. If you get stuck, learn how you can ask for help from our community.`}
40
- </div>
41
- <div className="sb-section">
42
- <div className="sb-section-item">
43
- <Image
44
- src={Styling}
45
- alt="A wall of logos representing different styling technologies"
46
- width={0}
47
- height={0}
48
- style={{ width: '100%', height: 'auto' }}
49
- />
50
- <h4 className="sb-section-item-heading">Add styling and CSS</h4>
51
- <p className="sb-section-item-paragraph">
52
- Like with web applications, there are many ways to include CSS
53
- within Storybook. Learn more about setting up styling within
54
- Storybook.
55
- </p>
56
- <a
57
- href="https://storybook.js.org/docs/configure/styling-and-css"
58
- target="_blank"
59
- >
60
- Learn more
61
- <RightArrow />
62
- </a>
63
- </div>
64
- <div className="sb-section-item">
65
- <Image
66
- width={0}
67
- height={0}
68
- style={{ width: '100%', height: 'auto' }}
69
- src={Context}
70
- alt="An abstraction representing the composition of data for a component"
71
- />
72
- <h4 className="sb-section-item-heading">
73
- Provide context and mocking
74
- </h4>
75
- <p className="sb-section-item-paragraph">
76
- $
77
- {`Often when a story doesn't render, it's because your component is expecting a specific environment or context (like a theme provider) to be available.`}
78
- </p>
79
- <a
80
- href="https://storybook.js.org/docs/writing-stories/decorators#context-for-mocking"
81
- target="_blank"
82
- >
83
- Learn more
84
- <RightArrow />
85
- </a>
86
- </div>
87
- <div className="sb-section-item">
88
- <Image
89
- width={0}
90
- height={0}
91
- style={{ width: '100%', height: 'auto' }}
92
- src={Assets}
93
- alt="A representation of typography and image assets"
94
- />
95
- <div>
96
- <h4 className="sb-section-item-heading">
97
- Load assets and resources
98
- </h4>
99
- <p className="sb-section-item-paragraph">
100
- To link static files (like fonts) to your projects and stories,
101
- use the `staticDirs` configuration option to specify folders to
102
- load when starting Storybook.
103
- </p>
104
- <a
105
- href="https://storybook.js.org/docs/configure/images-and-assets"
106
- target="_blank"
107
- >
108
- Learn more
109
- <RightArrow />
110
- </a>
111
- </div>
112
- </div>
113
- </div>
114
- </div>
115
- <div className="sb-container">
116
- <div className="sb-section-title">
117
- # Do more with Storybook $
118
- {`Now that you know the basics, let's explore other parts of Storybook that will improve your experience. This list is just to get you started. You can customise Storybook in many ways to fit your needs.`}
119
- </div>
120
- <div className="sb-section">
121
- <div className="sb-features-grid">
122
- <div className="sb-grid-item">
123
- <Image
124
- width={0}
125
- height={0}
126
- style={{ width: '100%', height: 'auto' }}
127
- src={Docs}
128
- alt="A screenshot showing the autodocs tag being set, pointing a docs page being generated"
129
- />
130
- <h4 className="sb-section-item-heading">Autodocs</h4>
131
- <p className="sb-section-item-paragraph">
132
- Auto-generate living, interactive reference documentation from
133
- your components and stories.
134
- </p>
135
- <a
136
- href="https://storybook.js.org/docs/writing-docs/autodocs"
137
- target="_blank"
138
- >
139
- Learn more
140
- <RightArrow />
141
- </a>
142
- </div>
143
- <div className="sb-grid-item">
144
- <Image
145
- width={0}
146
- height={0}
147
- style={{ width: '100%', height: 'auto' }}
148
- src={Share}
149
- alt="A browser window showing a Storybook being published to a chromatic.com URL"
150
- />
151
- <h4 className="sb-section-item-heading">Publish to Chromatic</h4>
152
- <p className="sb-section-item-paragraph">
153
- Publish your Storybook to review and collaborate with your entire
154
- team.
155
- </p>
156
- <a
157
- href="https://storybook.js.org/docs/sharing/publish-storybook#publish-storybook-with-chromatic"
158
- target="_blank"
159
- >
160
- Learn more
161
- <RightArrow />
162
- </a>
163
- </div>
164
- <div className="sb-grid-item">
165
- <Image
166
- width={0}
167
- height={0}
168
- style={{ width: '100%', height: 'auto' }}
169
- src={FigmaPlugin}
170
- alt="Windows showing the Storybook plugin in Figma"
171
- />
172
- <h4 className="sb-section-item-heading">Figma Plugin</h4>
173
- <p className="sb-section-item-paragraph">
174
- Embed your stories into Figma to cross-reference the design and
175
- live implementation in one place.
176
- </p>
177
- <a
178
- href="https://storybook.js.org/docs/sharing/design-integrations#embed-storybook-in-figma-with-the-plugin"
179
- target="_blank"
180
- >
181
- Learn more
182
- <RightArrow />
183
- </a>
184
- </div>
185
- <div className="sb-grid-item">
186
- <Image
187
- width={0}
188
- height={0}
189
- style={{ width: '100%', height: 'auto' }}
190
- src={Testing}
191
- alt="Screenshot of tests passing and failing"
192
- />
193
- <h4 className="sb-section-item-heading">Testing</h4>
194
- <p className="sb-section-item-paragraph">
195
- Use stories to test a component in all its variations, no matter
196
- how complex.
197
- </p>
198
- <a
199
- href="https://storybook.js.org/docs/writing-tests"
200
- target="_blank"
201
- >
202
- Learn more
203
- <RightArrow />
204
- </a>
205
- </div>
206
- <div className="sb-grid-item">
207
- <Image
208
- width={0}
209
- height={0}
210
- style={{ width: '100%', height: 'auto' }}
211
- src={Accessibility}
212
- alt="Screenshot of accessibility tests passing and failing"
213
- />
214
- <h4 className="sb-section-item-heading">Accessibility</h4>
215
- <p className="sb-section-item-paragraph">
216
- Automatically test your components for a11y issues as you develop.
217
- </p>
218
- <a
219
- href="https://storybook.js.org/docs/writing-tests/accessibility-testing"
220
- target="_blank"
221
- >
222
- Learn more
223
- <RightArrow />
224
- </a>
225
- </div>
226
- <div className="sb-grid-item">
227
- <Image
228
- width={0}
229
- height={0}
230
- style={{ width: '100%', height: 'auto' }}
231
- src={Theming}
232
- alt="Screenshot of Storybook in light and dark mode"
233
- />
234
- <h4 className="sb-section-item-heading">Theming</h4>
235
- <p className="sb-section-item-paragraph">
236
- ${`Theme Storybook's UI to personalize it to your project.`}
237
- </p>
238
- <a
239
- href="https://storybook.js.org/docs/configure/theming"
240
- target="_blank"
241
- >
242
- Learn more
243
- <RightArrow />
244
- </a>
245
- </div>
246
- </div>
247
- </div>
248
- </div>
249
- <div className="sb-addon">
250
- <div className="sb-addon-text">
251
- <h4>Addons</h4>
252
- <p className="sb-section-item-paragraph">
253
- Integrate your tools with Storybook to connect workflows.
254
- </p>
255
- <a href="https://storybook.js.org/integrations/" target="_blank">
256
- Discover all addons
257
- <RightArrow />
258
- </a>
259
- </div>
260
- <div className="sb-addon-img">
261
- <Image
262
- width={650}
263
- height={347}
264
- src={AddonLibrary}
265
- alt="Integrate your tools with Storybook to connect workflows."
266
- />
267
- </div>
268
- </div>
269
- <div className="sb-section sb-socials">
270
- <div className="sb-section-item">
271
- <Image
272
- width={32}
273
- height={32}
274
- layout="fixed"
275
- src={Github}
276
- alt="Github logo"
277
- className="sb-explore-image"
278
- />
279
- Join our contributors building the future of UI development.
280
- <a href="https://github.com/storybookjs/storybook" target="_blank">
281
- Star on GitHub
282
- <RightArrow />
283
- </a>
284
- </div>
285
- <div className="sb-section-item">
286
- <Image
287
- width={33}
288
- height={32}
289
- layout="fixed"
290
- src={Discord}
291
- alt="Discord logo"
292
- className="sb-explore-image"
293
- />
294
- <div>
295
- Get support and chat with frontend developers.
296
- <a href="https://discord.gg/storybook" target="_blank">
297
- Join Discord server
298
- <RightArrow />
299
- </a>
300
- </div>
301
- </div>
302
- <div className="sb-section-item">
303
- <Image
304
- width={32}
305
- height={32}
306
- layout="fixed"
307
- src={Youtube}
308
- alt="Youtube logo"
309
- className="sb-explore-image"
310
- />
311
- <div>
312
- Watch tutorials, feature previews and interviews.
313
- <a href="https://www.youtube.com/@chromaticui" target="_blank">
314
- Watch on YouTube
315
- <RightArrow />
316
- </a>
317
- </div>
318
- </div>
319
- <div className="sb-section-item">
320
- <Image
321
- width={33}
322
- height={32}
323
- layout="fixed"
324
- src={Tutorials}
325
- alt="A book"
326
- className="sb-explore-image"
327
- />
328
- <p>Follow guided walkthroughs on for key workflows.</p>
329
-
330
- <a href="https://storybook.js.org/tutorials/" target="_blank">
331
- Discover tutorials
332
- <RightArrow />
333
- </a>
334
- </div>
335
- </div>
336
- <style>
337
- {`
338
- .sb-container {
339
- margin-bottom: 48px;
340
- }
341
-
342
- .sb-section {
343
- width: 100%;
344
- display: flex;
345
- flex-direction: row;
346
- gap: 20px;
347
- }
348
-
349
- img {
350
- object-fit: cover;
351
- }
352
-
353
- .sb-section-title {
354
- margin-bottom: 32px;
355
- }
356
-
357
- .sb-section a:not(h1 a, h2 a, h3 a) {
358
- font-size: 14px;
359
- }
360
-
361
- .sb-section-item, .sb-grid-item {
362
- flex: 1;
363
- display: flex;
364
- flex-direction: column;
365
- }
366
-
367
- .sb-section-item-heading {
368
- padding-top: 20px !important;
369
- padding-bottom: 5px !important;
370
- margin: 0 !important;
371
- }
372
- .sb-section-item-paragraph {
373
- margin: 0;
374
- padding-bottom: 10px;
375
- }
376
-
377
- .sb-chevron {
378
- margin-left: 5px;
379
- }
380
-
381
- .sb-features-grid {
382
- display: grid;
383
- grid-template-columns: repeat(2, 1fr);
384
- grid-gap: 32px 20px;
385
- }
386
-
387
- .sb-socials {
388
- display: grid;
389
- grid-template-columns: repeat(4, 1fr);
390
- }
391
-
392
- .sb-socials p {
393
- margin-bottom: 10px;
394
- }
395
-
396
- .sb-explore-image {
397
- max-height: 32px;
398
- align-self: flex-start;
399
- }
400
-
401
- .sb-addon {
402
- width: 100%;
403
- display: flex;
404
- align-items: center;
405
- position: relative;
406
- background-color: #EEF3F8;
407
- border-radius: 5px;
408
- border: 1px solid rgba(0, 0, 0, 0.05);
409
- background: #EEF3F8;
410
- height: 180px;
411
- margin-bottom: 48px;
412
- overflow: hidden;
413
- }
414
-
415
- .sb-addon-text {
416
- padding-left: 48px;
417
- max-width: 240px;
418
- }
419
-
420
- .sb-addon-text h4 {
421
- padding-top: 0px;
422
- }
423
-
424
- .sb-addon-img {
425
- position: absolute;
426
- left: 345px;
427
- top: 0;
428
- height: 100%;
429
- width: 200%;
430
- overflow: hidden;
431
- }
432
-
433
- .sb-addon-img img {
434
- width: 650px;
435
- transform: rotate(-15deg);
436
- margin-left: 40px;
437
- margin-top: -72px;
438
- box-shadow: 0 0 1px rgba(255, 255, 255, 0);
439
- backface-visibility: hidden;
440
- }
441
-
442
- @media screen and (max-width: 800px) {
443
- .sb-addon-img {
444
- left: 300px;
445
- }
446
- }
447
-
448
- @media screen and (max-width: 600px) {
449
- .sb-section {
450
- flex-direction: column;
451
- }
452
-
453
- .sb-features-grid {
454
- grid-template-columns: repeat(1, 1fr);
455
- }
456
-
457
- .sb-socials {
458
- grid-template-columns: repeat(2, 1fr);
459
- }
460
-
461
- .sb-addon {
462
- height: 280px;
463
- align-items: flex-start;
464
- padding-top: 32px;
465
- overflow: hidden;
466
- }
467
-
468
- .sb-addon-text {
469
- padding-left: 24px;
470
- }
471
-
472
- .sb-addon-img {
473
- right: 0;
474
- left: 0;
475
- top: 130px;
476
- bottom: 0;
477
- overflow: hidden;
478
- height: auto;
479
- width: 124%;
480
- }
481
-
482
- .sb-addon-img img {
483
- width: 1200px;
484
- transform: rotate(-12deg);
485
- margin-left: 0;
486
- margin-top: 48px;
487
- margin-bottom: -40px;
488
- margin-left: -24px;
489
- }
490
- }
491
- `}
492
- </style>
493
- </>
494
- );
1
+ import { Meta } from '@storybook/blocks';
2
+ import Image from 'next/image';
3
+
4
+ import Github from './assets/github.svg';
5
+ import Discord from './assets/discord.svg';
6
+ import Youtube from './assets/youtube.svg';
7
+ import Tutorials from './assets/tutorials.svg';
8
+ import Styling from './assets/styling.png';
9
+ import Context from './assets/context.png';
10
+ import Assets from './assets/assets.png';
11
+ import Docs from './assets/docs.png';
12
+ import Share from './assets/share.png';
13
+ import FigmaPlugin from './assets/figma-plugin.png';
14
+ import Testing from './assets/testing.png';
15
+ import Accessibility from './assets/accessibility.png';
16
+ import Theming from './assets/theming.png';
17
+ import AddonLibrary from './assets/addon-library.png';
18
+
19
+ export const RightArrow = () => (
20
+ <>
21
+ <svg
22
+ viewBox="0 0 14 14"
23
+ width="8px"
24
+ height="14px"
25
+ style={{
26
+ marginLeft: '4px',
27
+ display: 'inline-block',
28
+ shapeRendering: 'inherit',
29
+ verticalAlign: 'middle',
30
+ fill: 'currentColor',
31
+ }}
32
+ >
33
+ <path d="m11.1 7.35-5.5 5.5a.5.5 0 0 1-.7-.7L10.04 7 4.9 1.85a.5.5 0 1 1 .7-.7l5.5 5.5c.2.2.2.5 0 .7Z" />
34
+ </svg>
35
+ <Meta title="Configure your project" />
36
+ <div className="sb-container">
37
+ <div className="sb-section-title">
38
+ # Configure your project $
39
+ {`Because Storybook works separately from your app, you'll need to configure it for your specific stack and setup. Below, explore guides for configuring Storybook with popular frameworks and tools. If you get stuck, learn how you can ask for help from our community.`}
40
+ </div>
41
+ <div className="sb-section">
42
+ <div className="sb-section-item">
43
+ <Image
44
+ src={Styling}
45
+ alt="A wall of logos representing different styling technologies"
46
+ width={0}
47
+ height={0}
48
+ style={{ width: '100%', height: 'auto' }}
49
+ />
50
+ <h4 className="sb-section-item-heading">Add styling and CSS</h4>
51
+ <p className="sb-section-item-paragraph">
52
+ Like with web applications, there are many ways to include CSS
53
+ within Storybook. Learn more about setting up styling within
54
+ Storybook.
55
+ </p>
56
+ <a
57
+ href="https://storybook.js.org/docs/configure/styling-and-css"
58
+ target="_blank"
59
+ >
60
+ Learn more
61
+ <RightArrow />
62
+ </a>
63
+ </div>
64
+ <div className="sb-section-item">
65
+ <Image
66
+ width={0}
67
+ height={0}
68
+ style={{ width: '100%', height: 'auto' }}
69
+ src={Context}
70
+ alt="An abstraction representing the composition of data for a component"
71
+ />
72
+ <h4 className="sb-section-item-heading">
73
+ Provide context and mocking
74
+ </h4>
75
+ <p className="sb-section-item-paragraph">
76
+ $
77
+ {`Often when a story doesn't render, it's because your component is expecting a specific environment or context (like a theme provider) to be available.`}
78
+ </p>
79
+ <a
80
+ href="https://storybook.js.org/docs/writing-stories/decorators#context-for-mocking"
81
+ target="_blank"
82
+ >
83
+ Learn more
84
+ <RightArrow />
85
+ </a>
86
+ </div>
87
+ <div className="sb-section-item">
88
+ <Image
89
+ width={0}
90
+ height={0}
91
+ style={{ width: '100%', height: 'auto' }}
92
+ src={Assets}
93
+ alt="A representation of typography and image assets"
94
+ />
95
+ <div>
96
+ <h4 className="sb-section-item-heading">
97
+ Load assets and resources
98
+ </h4>
99
+ <p className="sb-section-item-paragraph">
100
+ To link static files (like fonts) to your projects and stories,
101
+ use the `staticDirs` configuration option to specify folders to
102
+ load when starting Storybook.
103
+ </p>
104
+ <a
105
+ href="https://storybook.js.org/docs/configure/images-and-assets"
106
+ target="_blank"
107
+ >
108
+ Learn more
109
+ <RightArrow />
110
+ </a>
111
+ </div>
112
+ </div>
113
+ </div>
114
+ </div>
115
+ <div className="sb-container">
116
+ <div className="sb-section-title">
117
+ # Do more with Storybook $
118
+ {`Now that you know the basics, let's explore other parts of Storybook that will improve your experience. This list is just to get you started. You can customise Storybook in many ways to fit your needs.`}
119
+ </div>
120
+ <div className="sb-section">
121
+ <div className="sb-features-grid">
122
+ <div className="sb-grid-item">
123
+ <Image
124
+ width={0}
125
+ height={0}
126
+ style={{ width: '100%', height: 'auto' }}
127
+ src={Docs}
128
+ alt="A screenshot showing the autodocs tag being set, pointing a docs page being generated"
129
+ />
130
+ <h4 className="sb-section-item-heading">Autodocs</h4>
131
+ <p className="sb-section-item-paragraph">
132
+ Auto-generate living, interactive reference documentation from
133
+ your components and stories.
134
+ </p>
135
+ <a
136
+ href="https://storybook.js.org/docs/writing-docs/autodocs"
137
+ target="_blank"
138
+ >
139
+ Learn more
140
+ <RightArrow />
141
+ </a>
142
+ </div>
143
+ <div className="sb-grid-item">
144
+ <Image
145
+ width={0}
146
+ height={0}
147
+ style={{ width: '100%', height: 'auto' }}
148
+ src={Share}
149
+ alt="A browser window showing a Storybook being published to a chromatic.com URL"
150
+ />
151
+ <h4 className="sb-section-item-heading">Publish to Chromatic</h4>
152
+ <p className="sb-section-item-paragraph">
153
+ Publish your Storybook to review and collaborate with your entire
154
+ team.
155
+ </p>
156
+ <a
157
+ href="https://storybook.js.org/docs/sharing/publish-storybook#publish-storybook-with-chromatic"
158
+ target="_blank"
159
+ >
160
+ Learn more
161
+ <RightArrow />
162
+ </a>
163
+ </div>
164
+ <div className="sb-grid-item">
165
+ <Image
166
+ width={0}
167
+ height={0}
168
+ style={{ width: '100%', height: 'auto' }}
169
+ src={FigmaPlugin}
170
+ alt="Windows showing the Storybook plugin in Figma"
171
+ />
172
+ <h4 className="sb-section-item-heading">Figma Plugin</h4>
173
+ <p className="sb-section-item-paragraph">
174
+ Embed your stories into Figma to cross-reference the design and
175
+ live implementation in one place.
176
+ </p>
177
+ <a
178
+ href="https://storybook.js.org/docs/sharing/design-integrations#embed-storybook-in-figma-with-the-plugin"
179
+ target="_blank"
180
+ >
181
+ Learn more
182
+ <RightArrow />
183
+ </a>
184
+ </div>
185
+ <div className="sb-grid-item">
186
+ <Image
187
+ width={0}
188
+ height={0}
189
+ style={{ width: '100%', height: 'auto' }}
190
+ src={Testing}
191
+ alt="Screenshot of tests passing and failing"
192
+ />
193
+ <h4 className="sb-section-item-heading">Testing</h4>
194
+ <p className="sb-section-item-paragraph">
195
+ Use stories to test a component in all its variations, no matter
196
+ how complex.
197
+ </p>
198
+ <a
199
+ href="https://storybook.js.org/docs/writing-tests"
200
+ target="_blank"
201
+ >
202
+ Learn more
203
+ <RightArrow />
204
+ </a>
205
+ </div>
206
+ <div className="sb-grid-item">
207
+ <Image
208
+ width={0}
209
+ height={0}
210
+ style={{ width: '100%', height: 'auto' }}
211
+ src={Accessibility}
212
+ alt="Screenshot of accessibility tests passing and failing"
213
+ />
214
+ <h4 className="sb-section-item-heading">Accessibility</h4>
215
+ <p className="sb-section-item-paragraph">
216
+ Automatically test your components for a11y issues as you develop.
217
+ </p>
218
+ <a
219
+ href="https://storybook.js.org/docs/writing-tests/accessibility-testing"
220
+ target="_blank"
221
+ >
222
+ Learn more
223
+ <RightArrow />
224
+ </a>
225
+ </div>
226
+ <div className="sb-grid-item">
227
+ <Image
228
+ width={0}
229
+ height={0}
230
+ style={{ width: '100%', height: 'auto' }}
231
+ src={Theming}
232
+ alt="Screenshot of Storybook in light and dark mode"
233
+ />
234
+ <h4 className="sb-section-item-heading">Theming</h4>
235
+ <p className="sb-section-item-paragraph">
236
+ ${`Theme Storybook's UI to personalize it to your project.`}
237
+ </p>
238
+ <a
239
+ href="https://storybook.js.org/docs/configure/theming"
240
+ target="_blank"
241
+ >
242
+ Learn more
243
+ <RightArrow />
244
+ </a>
245
+ </div>
246
+ </div>
247
+ </div>
248
+ </div>
249
+ <div className="sb-addon">
250
+ <div className="sb-addon-text">
251
+ <h4>Addons</h4>
252
+ <p className="sb-section-item-paragraph">
253
+ Integrate your tools with Storybook to connect workflows.
254
+ </p>
255
+ <a href="https://storybook.js.org/integrations/" target="_blank">
256
+ Discover all addons
257
+ <RightArrow />
258
+ </a>
259
+ </div>
260
+ <div className="sb-addon-img">
261
+ <Image
262
+ width={650}
263
+ height={347}
264
+ src={AddonLibrary}
265
+ alt="Integrate your tools with Storybook to connect workflows."
266
+ />
267
+ </div>
268
+ </div>
269
+ <div className="sb-section sb-socials">
270
+ <div className="sb-section-item">
271
+ <Image
272
+ width={32}
273
+ height={32}
274
+ layout="fixed"
275
+ src={Github}
276
+ alt="Github logo"
277
+ className="sb-explore-image"
278
+ />
279
+ Join our contributors building the future of UI development.
280
+ <a href="https://github.com/storybookjs/storybook" target="_blank">
281
+ Star on GitHub
282
+ <RightArrow />
283
+ </a>
284
+ </div>
285
+ <div className="sb-section-item">
286
+ <Image
287
+ width={33}
288
+ height={32}
289
+ layout="fixed"
290
+ src={Discord}
291
+ alt="Discord logo"
292
+ className="sb-explore-image"
293
+ />
294
+ <div>
295
+ Get support and chat with frontend developers.
296
+ <a href="https://discord.gg/storybook" target="_blank">
297
+ Join Discord server
298
+ <RightArrow />
299
+ </a>
300
+ </div>
301
+ </div>
302
+ <div className="sb-section-item">
303
+ <Image
304
+ width={32}
305
+ height={32}
306
+ layout="fixed"
307
+ src={Youtube}
308
+ alt="Youtube logo"
309
+ className="sb-explore-image"
310
+ />
311
+ <div>
312
+ Watch tutorials, feature previews and interviews.
313
+ <a href="https://www.youtube.com/@chromaticui" target="_blank">
314
+ Watch on YouTube
315
+ <RightArrow />
316
+ </a>
317
+ </div>
318
+ </div>
319
+ <div className="sb-section-item">
320
+ <Image
321
+ width={33}
322
+ height={32}
323
+ layout="fixed"
324
+ src={Tutorials}
325
+ alt="A book"
326
+ className="sb-explore-image"
327
+ />
328
+ <p>Follow guided walkthroughs on for key workflows.</p>
329
+
330
+ <a href="https://storybook.js.org/tutorials/" target="_blank">
331
+ Discover tutorials
332
+ <RightArrow />
333
+ </a>
334
+ </div>
335
+ </div>
336
+ <style>
337
+ {`
338
+ .sb-container {
339
+ margin-bottom: 48px;
340
+ }
341
+
342
+ .sb-section {
343
+ width: 100%;
344
+ display: flex;
345
+ flex-direction: row;
346
+ gap: 20px;
347
+ }
348
+
349
+ img {
350
+ object-fit: cover;
351
+ }
352
+
353
+ .sb-section-title {
354
+ margin-bottom: 32px;
355
+ }
356
+
357
+ .sb-section a:not(h1 a, h2 a, h3 a) {
358
+ font-size: 14px;
359
+ }
360
+
361
+ .sb-section-item, .sb-grid-item {
362
+ flex: 1;
363
+ display: flex;
364
+ flex-direction: column;
365
+ }
366
+
367
+ .sb-section-item-heading {
368
+ padding-top: 20px !important;
369
+ padding-bottom: 5px !important;
370
+ margin: 0 !important;
371
+ }
372
+ .sb-section-item-paragraph {
373
+ margin: 0;
374
+ padding-bottom: 10px;
375
+ }
376
+
377
+ .sb-chevron {
378
+ margin-left: 5px;
379
+ }
380
+
381
+ .sb-features-grid {
382
+ display: grid;
383
+ grid-template-columns: repeat(2, 1fr);
384
+ grid-gap: 32px 20px;
385
+ }
386
+
387
+ .sb-socials {
388
+ display: grid;
389
+ grid-template-columns: repeat(4, 1fr);
390
+ }
391
+
392
+ .sb-socials p {
393
+ margin-bottom: 10px;
394
+ }
395
+
396
+ .sb-explore-image {
397
+ max-height: 32px;
398
+ align-self: flex-start;
399
+ }
400
+
401
+ .sb-addon {
402
+ width: 100%;
403
+ display: flex;
404
+ align-items: center;
405
+ position: relative;
406
+ background-color: #EEF3F8;
407
+ border-radius: 5px;
408
+ border: 1px solid rgba(0, 0, 0, 0.05);
409
+ background: #EEF3F8;
410
+ height: 180px;
411
+ margin-bottom: 48px;
412
+ overflow: hidden;
413
+ }
414
+
415
+ .sb-addon-text {
416
+ padding-left: 48px;
417
+ max-width: 240px;
418
+ }
419
+
420
+ .sb-addon-text h4 {
421
+ padding-top: 0px;
422
+ }
423
+
424
+ .sb-addon-img {
425
+ position: absolute;
426
+ left: 345px;
427
+ top: 0;
428
+ height: 100%;
429
+ width: 200%;
430
+ overflow: hidden;
431
+ }
432
+
433
+ .sb-addon-img img {
434
+ width: 650px;
435
+ transform: rotate(-15deg);
436
+ margin-left: 40px;
437
+ margin-top: -72px;
438
+ box-shadow: 0 0 1px rgba(255, 255, 255, 0);
439
+ backface-visibility: hidden;
440
+ }
441
+
442
+ @media screen and (max-width: 800px) {
443
+ .sb-addon-img {
444
+ left: 300px;
445
+ }
446
+ }
447
+
448
+ @media screen and (max-width: 600px) {
449
+ .sb-section {
450
+ flex-direction: column;
451
+ }
452
+
453
+ .sb-features-grid {
454
+ grid-template-columns: repeat(1, 1fr);
455
+ }
456
+
457
+ .sb-socials {
458
+ grid-template-columns: repeat(2, 1fr);
459
+ }
460
+
461
+ .sb-addon {
462
+ height: 280px;
463
+ align-items: flex-start;
464
+ padding-top: 32px;
465
+ overflow: hidden;
466
+ }
467
+
468
+ .sb-addon-text {
469
+ padding-left: 24px;
470
+ }
471
+
472
+ .sb-addon-img {
473
+ right: 0;
474
+ left: 0;
475
+ top: 130px;
476
+ bottom: 0;
477
+ overflow: hidden;
478
+ height: auto;
479
+ width: 124%;
480
+ }
481
+
482
+ .sb-addon-img img {
483
+ width: 1200px;
484
+ transform: rotate(-12deg);
485
+ margin-left: 0;
486
+ margin-top: 48px;
487
+ margin-bottom: -40px;
488
+ margin-left: -24px;
489
+ }
490
+ }
491
+ `}
492
+ </style>
493
+ </>
494
+ );