@node-core/ui-components 1.0.1-9592ede0c373887bc655fce1377f06f063194424 → 1.0.1-a0f03ae69979a5fea7c16262ff88cbeef11452c2

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.
@@ -73,4 +73,11 @@
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
+ }
76
83
  }
@@ -6,6 +6,12 @@ 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
+
9
15
  export const Info: Story = {
10
16
  args: {
11
17
  level: 'info',
@@ -46,6 +52,23 @@ export const Danger: Story = {
46
52
  },
47
53
  };
48
54
 
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
+
49
72
  export const WithIcon: Story = {
50
73
  args: {
51
74
  level: 'info',
@@ -73,11 +73,14 @@
73
73
 
74
74
  &.secondary {
75
75
  @apply rounded-lg
76
+ border
77
+ border-neutral-200
76
78
  text-neutral-800
79
+ dark:border-neutral-900
77
80
  dark:text-neutral-200;
78
81
 
79
82
  &:hover:not([aria-disabled='true']) {
80
- @apply bg-neutral-100
83
+ @apply bg-neutral-200
81
84
  text-neutral-800
82
85
  dark:bg-neutral-900
83
86
  dark:text-neutral-200;
@@ -0,0 +1,83 @@
1
+ @reference "../../styles/index.css";
2
+
3
+ .summary {
4
+ @apply outline-hidden
5
+ flex
6
+ h-9
7
+ cursor-pointer
8
+ select-none
9
+ items-center
10
+ gap-2
11
+ rounded-md
12
+ border
13
+ border-neutral-200
14
+ p-2
15
+ text-sm
16
+ text-neutral-700
17
+ motion-safe:transition-colors
18
+ dark:border-neutral-900
19
+ dark:text-neutral-300;
20
+
21
+ &:hover,
22
+ &:focus-visible {
23
+ @apply bg-neutral-100
24
+ dark:bg-neutral-900;
25
+ }
26
+ }
27
+
28
+ .dropdownContentWrapper {
29
+ @apply absolute
30
+ right-0
31
+ top-full
32
+ z-50
33
+ mt-1
34
+ max-h-80
35
+ w-52
36
+ overflow-hidden
37
+ rounded-sm
38
+ border
39
+ border-neutral-200
40
+ bg-white
41
+ shadow-lg
42
+ dark:border-neutral-900
43
+ dark:bg-neutral-950;
44
+ }
45
+
46
+ .dropdownContentInner {
47
+ @apply max-h-80
48
+ w-52
49
+ overflow-y-auto;
50
+ }
51
+
52
+ .dropdownItem {
53
+ @apply outline-hidden
54
+ block
55
+ px-2.5
56
+ py-1.5
57
+ text-sm
58
+ font-medium
59
+ text-neutral-800
60
+ no-underline
61
+ motion-safe:transition-colors
62
+ dark:text-white;
63
+
64
+ &:hover,
65
+ &:focus-visible {
66
+ @apply bg-green-600
67
+ text-white;
68
+ }
69
+ }
70
+
71
+ .dropdownLabel {
72
+ @apply block
73
+ text-sm
74
+ font-medium
75
+ leading-tight;
76
+ }
77
+
78
+ .dropdownVersions {
79
+ @apply block
80
+ text-xs
81
+ leading-tight
82
+ opacity-75;
83
+ }
@@ -0,0 +1,130 @@
1
+ import type { Meta as MetaObj, StoryObj } from '@storybook/react';
2
+
3
+ import ChangeHistory from '#ui/Common/ChangeHistory';
4
+
5
+ type Story = StoryObj<typeof ChangeHistory>;
6
+ type Meta = MetaObj<typeof ChangeHistory>;
7
+
8
+ const SAMPLE_CHANGES = [
9
+ {
10
+ versions: ['v15.4.0'],
11
+ label: 'No longer experimental',
12
+ url: 'https://github.com/nodejs/node/pull/12345',
13
+ },
14
+ {
15
+ versions: ['v15.0.0', 'v14.17.0'],
16
+ label: 'Added in v15.0.0, v14.17.0',
17
+ url: 'https://github.com/nodejs/node/pull/67890',
18
+ },
19
+ {
20
+ versions: ['v16.0.0'],
21
+ label: 'Deprecated in 16',
22
+ },
23
+ ];
24
+
25
+ const LARGE_SAMPLE_CHANGES = [
26
+ {
27
+ versions: ['v20.0.0'],
28
+ label: 'Breaking change in v20',
29
+ url: 'https://github.com/nodejs/node/pull/50001',
30
+ },
31
+ {
32
+ versions: ['v19.8.0'],
33
+ label: 'Performance improvement',
34
+ url: 'https://github.com/nodejs/node/pull/49999',
35
+ },
36
+ {
37
+ versions: ['v19.0.0'],
38
+ label: 'API redesign',
39
+ url: 'https://github.com/nodejs/node/pull/49000',
40
+ },
41
+ {
42
+ versions: ['v18.17.0', 'v18.16.1'],
43
+ label: 'Security fix backported',
44
+ url: 'https://github.com/nodejs/node/pull/48500',
45
+ },
46
+ {
47
+ versions: ['v18.0.0'],
48
+ label: 'Major version release',
49
+ url: 'https://github.com/nodejs/node/pull/47000',
50
+ },
51
+ {
52
+ versions: ['v17.9.0'],
53
+ label: 'Experimental feature added',
54
+ url: 'https://github.com/nodejs/node/pull/46500',
55
+ },
56
+ {
57
+ versions: ['v17.0.0'],
58
+ label: 'Node.js 17 release',
59
+ url: 'https://github.com/nodejs/node/pull/45000',
60
+ },
61
+ {
62
+ versions: ['v16.15.0', 'v16.14.2'],
63
+ label: 'Bug fix release',
64
+ url: 'https://github.com/nodejs/node/pull/44000',
65
+ },
66
+ {
67
+ versions: ['v16.0.0'],
68
+ label: 'Deprecated in v16',
69
+ url: 'https://github.com/nodejs/node/pull/43000',
70
+ },
71
+ {
72
+ versions: ['v15.14.0'],
73
+ label: 'Feature enhancement',
74
+ url: 'https://github.com/nodejs/node/pull/42000',
75
+ },
76
+ {
77
+ versions: ['v15.0.0', 'v14.17.0'],
78
+ label: 'Initial implementation',
79
+ url: 'https://github.com/nodejs/node/pull/41000',
80
+ },
81
+ {
82
+ versions: ['v14.18.0'],
83
+ label: 'Documentation update',
84
+ url: 'https://github.com/nodejs/node/pull/40000',
85
+ },
86
+ {
87
+ versions: ['v14.0.0'],
88
+ label: 'Added to stable API',
89
+ url: 'https://github.com/nodejs/node/pull/39000',
90
+ },
91
+ {
92
+ versions: ['v13.14.0'],
93
+ label: 'Experimental flag removed',
94
+ url: 'https://github.com/nodejs/node/pull/38000',
95
+ },
96
+ {
97
+ versions: ['v12.22.0', 'v12.21.0'],
98
+ label: 'Backported to LTS',
99
+ url: 'https://github.com/nodejs/node/pull/37000',
100
+ },
101
+ {
102
+ versions: ['v12.0.0'],
103
+ label: 'First experimental version',
104
+ url: 'https://github.com/nodejs/node/pull/36000',
105
+ },
106
+ ];
107
+
108
+ export const Default: Story = {
109
+ render: args => (
110
+ <div className="right-0 flex justify-end">
111
+ <ChangeHistory {...args} />
112
+ </div>
113
+ ),
114
+ args: {
115
+ changes: SAMPLE_CHANGES,
116
+ },
117
+ };
118
+
119
+ export const LargeHistory: Story = {
120
+ render: args => (
121
+ <div className="right-0 flex justify-end">
122
+ <ChangeHistory {...args} />
123
+ </div>
124
+ ),
125
+ args: {
126
+ changes: LARGE_SAMPLE_CHANGES,
127
+ },
128
+ };
129
+
130
+ export default { component: ChangeHistory } as Meta;
@@ -0,0 +1,67 @@
1
+ import { ChevronDownIcon, ClockIcon } from '@heroicons/react/24/outline';
2
+ import classNames from 'classnames';
3
+ import type { FC, ComponentProps } from 'react';
4
+
5
+ import type { LinkLike } from '#ui/types.js';
6
+
7
+ import styles from './index.module.css';
8
+
9
+ export type HistoryChange = {
10
+ versions: Array<string>;
11
+ label: string;
12
+ url?: string;
13
+ };
14
+
15
+ type ChangeHistoryProps = ComponentProps<'div'> & {
16
+ label: string;
17
+ changes: Array<HistoryChange>;
18
+ as?: LinkLike;
19
+ };
20
+
21
+ const ChangeHistory: FC<ChangeHistoryProps> = ({
22
+ label = 'History',
23
+ changes = [],
24
+ className,
25
+ as: As = 'a',
26
+ 'aria-label': ariaLabel = label,
27
+ ...props
28
+ }) => (
29
+ <div className={classNames('relative', 'inline-block', className)} {...props}>
30
+ <details className="group">
31
+ <summary className={styles.summary} role="button" aria-haspopup="menu">
32
+ <ClockIcon className="size-4" />
33
+ <span>{label}</span>
34
+ <ChevronDownIcon className="size-3 group-open:rotate-180 motion-safe:transition-transform" />
35
+ </summary>
36
+ <div
37
+ className={styles.dropdownContentWrapper}
38
+ role="menu"
39
+ aria-label={ariaLabel}
40
+ >
41
+ <div className={styles.dropdownContentInner}>
42
+ {changes.map((change, index) => {
43
+ const MenuItem = change.url ? As : 'div';
44
+
45
+ return (
46
+ <MenuItem
47
+ key={index}
48
+ className={styles.dropdownItem}
49
+ role="menuitem"
50
+ tabIndex={0}
51
+ aria-label={`${change.label}: ${change.versions.join(', ')}`}
52
+ href={change.url}
53
+ >
54
+ <div className={styles.dropdownLabel}>{change.label}</div>
55
+ <div className={styles.dropdownVersions}>
56
+ {change.versions.join(', ')}
57
+ </div>
58
+ </MenuItem>
59
+ );
60
+ })}
61
+ </div>
62
+ </div>
63
+ </details>
64
+ </div>
65
+ );
66
+
67
+ export default ChangeHistory;
@@ -17,6 +17,7 @@
17
17
  w-full
18
18
  max-w-3xl
19
19
  flex-col
20
+ gap-2
20
21
  overflow-y-auto
21
22
  rounded
22
23
  border
@@ -47,8 +48,7 @@
47
48
  }
48
49
 
49
50
  .title {
50
- @apply mb-2
51
- text-3xl
51
+ @apply 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-4
59
+ mb-2
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 from '#ui/Common/Modal';
3
+ import { Modal, Title, Description, Content } from '#ui/Common/Modal';
4
4
 
5
5
  type Story = StoryObj<typeof Modal>;
6
6
  type Meta = MetaObj<typeof Modal>;
@@ -8,10 +8,12 @@ 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.',
13
11
  children: (
14
- <>
12
+ <Content>
13
+ <Title>Node.js Versions Information</Title>
14
+ <Description>
15
+ Get all information about Node.js versions and their changes.
16
+ </Description>
15
17
  <p>
16
18
  Lorem ipsum dolor sit amet consectetur adipisicing elit. Architecto
17
19
  atque sint doloremque, sapiente recusandae debitis libero nostrum
@@ -24,7 +26,7 @@ export const Default: Story = {
24
26
  amet minus sit architecto blanditiis hic sed odit cumque numquam
25
27
  dignissimos delectus.
26
28
  </p>
27
- </>
29
+ </Content>
28
30
  ),
29
31
  },
30
32
  };
@@ -7,15 +7,11 @@ 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;
12
10
  open?: boolean;
13
11
  onOpenChange?: (open: boolean) => void;
14
12
  }>;
15
13
 
16
14
  const Modal: FC<ModalProps> = ({
17
- heading,
18
- subheading,
19
15
  children,
20
16
  open = false,
21
17
  onOpenChange = () => {},
@@ -28,15 +24,7 @@ const Modal: FC<ModalProps> = ({
28
24
  <XMarkIcon />
29
25
  </Dialog.Trigger>
30
26
 
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>
27
+ {children}
40
28
 
41
29
  <Dialog.Close />
42
30
  </Dialog.Content>
@@ -45,4 +33,18 @@ const Modal: FC<ModalProps> = ({
45
33
  </Dialog.Root>
46
34
  );
47
35
 
48
- export default Modal;
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 };
@@ -15,6 +15,7 @@ type SidebarProps = {
15
15
  onSelect: (value: string) => void;
16
16
  as?: LinkLike;
17
17
  showProgressionIcons?: boolean;
18
+ placeholder?: string;
18
19
  };
19
20
 
20
21
  const SideBar: FC<PropsWithChildren<SidebarProps>> = ({
@@ -25,6 +26,7 @@ const SideBar: FC<PropsWithChildren<SidebarProps>> = ({
25
26
  as,
26
27
  showProgressionIcons = false,
27
28
  children,
29
+ placeholder,
28
30
  }) => {
29
31
  const selectItems = groups.map(({ items, groupName }) => ({
30
32
  label: groupName,
@@ -44,6 +46,7 @@ const SideBar: FC<PropsWithChildren<SidebarProps>> = ({
44
46
  label={title}
45
47
  values={selectItems}
46
48
  defaultValue={currentItem?.value}
49
+ placeholder={placeholder}
47
50
  onChange={onSelect}
48
51
  className={styles.mobileSelect}
49
52
  />
@@ -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="mask1_12_17"
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.2211 28.9482C75.4847 28.5316 74.6105 28.5316 73.8743 28.9482L54.5024 40.1993C53.7662 40.616 53.3521 41.4029 53.3521 42.2366V64.7846C53.3521 65.6181 53.8122 66.405 54.5024 66.8219L73.8743 78.0729C74.6105 78.4894 75.4847 78.4894 76.2211 78.0729L95.5929 66.8219C96.3288 66.405 96.7431 65.6181 96.7431 64.7846V42.2366C96.7431 41.4029 96.2832 40.616 95.5929 40.1993L76.2211 28.9482Z"
87
- fill="white"
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(#mask1_12_17)">
90
+ <g mask="url(#mask1_1_1661)">
91
91
  <path
92
- d="M103.17 53.5459H53.4209V61.8043H103.17V53.5459Z"
93
- fill="#008026"
92
+ d="M97.0564 70.1316H53.35V78.39H97.0564V70.1316Z"
93
+ fill="#750787"
94
94
  />
95
95
  <path
96
- d="M103.17 61.8042H53.4209V70.1621H103.17V61.8042Z"
96
+ d="M97.0564 61.7731H53.35V70.131H97.0564V61.7731Z"
97
97
  fill="#004DFF"
98
98
  />
99
99
  <path
100
- d="M103.17 37.0293H53.4209V45.2877H103.17V37.0293Z"
101
- fill="#FF8C00"
100
+ d="M97.0564 53.5147H53.35V61.7732H97.0564V53.5147Z"
101
+ fill="#008026"
102
102
  />
103
103
  <path
104
- d="M103.17 45.2876H53.4209V53.546H103.17V45.2876Z"
104
+ d="M97.0564 45.2563H53.35V53.5148H97.0564V45.2563Z"
105
105
  fill="#FFED00"
106
106
  />
107
107
  <path
108
- d="M103.17 28.6714H53.4209V37.0293H103.17V28.6714Z"
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="M103.17 70.1626H53.4209V78.421H103.17V70.1626Z"
113
- fill="#750787"
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
- <clipPath id="clip0_12_17">
137
- <rect width="267" height="79.988" fill="white" />
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/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-9592ede0c373887bc655fce1377f06f063194424",
77
+ "version": "1.0.1-a0f03ae69979a5fea7c16262ff88cbeef11452c2",
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": "turbo run lint:js lint:css --no-cache -- --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": "turbo test:unit",
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": "cross-env NODE_OPTIONS=\"--watch\" pnpm test:unit"
88
+ "test:unit:watch": "node --run test:unit -- --watch"
89
89
  }
90
90
  }