@sonic-equipment/ui 0.0.11 → 0.0.12
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/README.md +46 -18
- package/dist/badges/tag/tag.d.ts +5 -0
- package/dist/badges/tag/tag.stories.d.ts +18 -0
- package/dist/base.css +18 -0
- package/dist/buttons/button/button.d.ts +13 -8
- package/dist/buttons/button/button.stories.d.ts +11 -6
- package/dist/buttons/favorite/favorite-button.d.ts +2 -2
- package/dist/buttons/favorite/favorite-button.stories.d.ts +6 -6
- package/dist/buttons/icon-button/icon-button.d.ts +9 -7
- package/dist/buttons/icon-button/icon-button.stories.d.ts +6 -6
- package/dist/cards/product-card/product-card.d.ts +9 -9
- package/dist/cards/product-card/product-card.stories.d.ts +3 -3
- package/dist/display/product-price/product-price.d.ts +11 -0
- package/dist/display/product-price/product-price.stories.d.ts +15 -0
- package/dist/display/product-sku/product-sku.d.ts +4 -0
- package/dist/display/product-sku/product-sku.stories.d.ts +13 -0
- package/dist/fonts.css +96 -49
- package/dist/icons/arrows/left-arrow-filled-icon.d.ts +2 -0
- package/dist/icons/arrows/right-arrow-filled-icon.d.ts +2 -0
- package/dist/icons/cart/cart-filled-icon.d.ts +2 -0
- package/dist/icons/cart/cart-outlined-icon.d.ts +2 -0
- package/dist/index.d.ts +89 -45
- package/dist/index.js +72 -31
- package/dist/inputs/checkbox/checkbox.d.ts +11 -4
- package/dist/inputs/checkbox/checkbox.stories.d.ts +8 -6
- package/dist/product-listing/filters/colors/color-filter.d.ts +5 -5
- package/dist/product-listing/filters/filter/filter.d.ts +4 -4
- package/dist/product-listing/product-listing.d.ts +16 -13
- package/dist/product-listing/product-listing.stories.d.ts +7 -7
- package/dist/product-listing/search-params.d.ts +3 -3
- package/dist/shared/types/product.d.ts +4 -0
- package/dist/styles.css +296 -89
- package/dist/tokens/tokens.d.ts +2 -0
- package/dist/typography/heading/heading.d.ts +17 -0
- package/dist/typography/heading/heading.stories.d.ts +37 -0
- package/package.json +50 -30
- package/dist/reset.css +0 -384
- /package/dist/icons/favorite/{favorite-outline-icon.d.ts → favorite-outlined-icon.d.ts} +0 -0
package/dist/styles.css
CHANGED
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
--font-family-sonic: 'Pancetta', sans-serif;
|
|
3
|
-
|
|
4
|
-
--font-size-
|
|
5
|
-
--font-size-
|
|
6
|
-
--font-size-
|
|
7
|
-
--font-size-
|
|
8
|
-
--font-size-
|
|
9
|
-
--font-size-
|
|
10
|
-
--font-size-
|
|
11
|
-
--font-size-
|
|
12
|
-
--font-size-
|
|
13
|
-
--font-size-
|
|
14
|
-
--font-size-
|
|
15
|
-
--font-size-
|
|
16
|
-
--font-size-
|
|
17
|
-
|
|
1
|
+
:root {
|
|
2
|
+
--font-family-sonic: 'Pancetta', sans-serif;
|
|
3
|
+
|
|
4
|
+
--font-size-11: 0.6875rem;
|
|
5
|
+
--font-size-12: 0.75rem;
|
|
6
|
+
--font-size-14: 0.875rem;
|
|
7
|
+
--font-size-16: 1rem;
|
|
8
|
+
--font-size-18: 1.125rem;
|
|
9
|
+
--font-size-24: 1.5rem;
|
|
10
|
+
--font-size-32: 2rem;
|
|
11
|
+
--font-size-36: 2.25rem;
|
|
12
|
+
--font-size-44: 2.75rem;
|
|
13
|
+
--font-size-48: 3rem;
|
|
14
|
+
--font-size-52: 3.25rem;
|
|
15
|
+
--font-size-64: 4rem;
|
|
16
|
+
--font-size-96: 6rem;
|
|
17
|
+
|
|
18
|
+
--font-size-base: var(--font-size-16);
|
|
18
19
|
|
|
19
20
|
--font-weight-thin: 100;
|
|
20
21
|
--font-weight-extralight: 200;
|
|
@@ -25,6 +26,40 @@
|
|
|
25
26
|
--font-weight-bold: 700;
|
|
26
27
|
--font-weight-extrabold: 800;
|
|
27
28
|
--font-weight-black: 900;
|
|
29
|
+
|
|
30
|
+
--font-weight-base: var(--font-weight-normal);
|
|
31
|
+
|
|
32
|
+
--line-height-22: 1.375rem;
|
|
33
|
+
--line-height-24: 1.5rem;
|
|
34
|
+
--line-height-28: 1.75rem;
|
|
35
|
+
--line-height-38: 2.375rem;
|
|
36
|
+
--line-height-42: 2.625rem;
|
|
37
|
+
--line-height-44: 2.75rem;
|
|
38
|
+
--line-height-56: 3.5rem;
|
|
39
|
+
--line-height-84: 5.25rem;
|
|
40
|
+
|
|
41
|
+
--line-height-base: var(--line-height-24);
|
|
42
|
+
|
|
43
|
+
--text-heading-xxl-size: var(--font-size-96);
|
|
44
|
+
--text-heading-xxl-line-height: var(--line-height-84);
|
|
45
|
+
|
|
46
|
+
--text-heading-xl-size: var(--font-size-64);
|
|
47
|
+
--text-heading-xl-line-height: var(--line-height-56);
|
|
48
|
+
|
|
49
|
+
--text-heading-l-size: var(--font-size-52);
|
|
50
|
+
--text-heading-l-line-height: var(--line-height-44);
|
|
51
|
+
|
|
52
|
+
--text-heading-m-size: var(--font-size-48);
|
|
53
|
+
--text-heading-m-line-height: var(--line-height-42);
|
|
54
|
+
|
|
55
|
+
--text-heading-s-size: var(--font-size-44);
|
|
56
|
+
--text-heading-s-line-height: var(--line-height-38);
|
|
57
|
+
|
|
58
|
+
--text-heading-xs-size: var(--font-size-32);
|
|
59
|
+
--text-heading-xs-line-height: var(--line-height-28);
|
|
60
|
+
|
|
61
|
+
--text-heading-xxs-size: var(--font-size-24);
|
|
62
|
+
--text-heading-xxs-line-height: var(--line-height-22);
|
|
28
63
|
}
|
|
29
64
|
:root {
|
|
30
65
|
--breakpoint-sm: 640px;
|
|
@@ -34,30 +69,32 @@
|
|
|
34
69
|
--breakpoint-xxl: 1536px;
|
|
35
70
|
}
|
|
36
71
|
:root {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
--space-
|
|
43
|
-
--space-
|
|
44
|
-
--space-
|
|
45
|
-
--space-
|
|
46
|
-
--space-
|
|
47
|
-
--space-
|
|
48
|
-
--space-
|
|
49
|
-
--space-
|
|
50
|
-
--space-
|
|
51
|
-
--space-
|
|
52
|
-
--space-
|
|
53
|
-
--space-
|
|
54
|
-
--space-
|
|
55
|
-
--space-
|
|
56
|
-
--space-
|
|
57
|
-
--space-
|
|
58
|
-
|
|
59
|
-
--space-
|
|
60
|
-
--space-
|
|
72
|
+
/*********************************************************
|
|
73
|
+
*
|
|
74
|
+
* Global spacing tokens
|
|
75
|
+
*
|
|
76
|
+
*********************************************************/
|
|
77
|
+
--space-0: 0;
|
|
78
|
+
--space-2: 2px;
|
|
79
|
+
--space-4: 4px;
|
|
80
|
+
--space-8: 8px;
|
|
81
|
+
--space-16: 16px;
|
|
82
|
+
--space-20: 20px;
|
|
83
|
+
--space-24: 24px;
|
|
84
|
+
--space-32: 32px;
|
|
85
|
+
--space-36: 36px;
|
|
86
|
+
--space-44: 44px;
|
|
87
|
+
--space-48: 48px;
|
|
88
|
+
--space-52: 52px;
|
|
89
|
+
--space-56: 56px;
|
|
90
|
+
--space-64: 64px;
|
|
91
|
+
--space-72: 72px;
|
|
92
|
+
--space-96: 96px;
|
|
93
|
+
|
|
94
|
+
--space-20: 20px;
|
|
95
|
+
--space-40: 40px;
|
|
96
|
+
--space-80: 80px;
|
|
97
|
+
--space-100: 100px;
|
|
61
98
|
}
|
|
62
99
|
:root {
|
|
63
100
|
/*********************************************************
|
|
@@ -66,6 +103,8 @@
|
|
|
66
103
|
*
|
|
67
104
|
*********************************************************/
|
|
68
105
|
|
|
106
|
+
--color-transparent: transparent;
|
|
107
|
+
|
|
69
108
|
--color-white: #ffffff;
|
|
70
109
|
|
|
71
110
|
--color-red-50: #fff0f1;
|
|
@@ -92,11 +131,23 @@
|
|
|
92
131
|
*
|
|
93
132
|
*********************************************************/
|
|
94
133
|
|
|
134
|
+
--color-brand-white: var(--color-white);
|
|
95
135
|
--color-brand-black: var(--color-black);
|
|
96
136
|
|
|
97
137
|
--color-brand-red: var(--color-red-700);
|
|
98
138
|
--color-brand-dark-red: var(--color-red-800);
|
|
99
139
|
|
|
140
|
+
--color-brand-dark-steelblue: #44586b;
|
|
141
|
+
--color-brand-light-steelblue: #6ca1b6;
|
|
142
|
+
--color-brand-dark-golden-rod: #d2a558;
|
|
143
|
+
|
|
144
|
+
--color-status-available: #007000;
|
|
145
|
+
|
|
146
|
+
--color-semantic-okay: #30d158;
|
|
147
|
+
--color-semantic-notify: #ff9f0a;
|
|
148
|
+
--color-semantic-stop: #e30613;
|
|
149
|
+
--color-semantic-information: #0a84ff;
|
|
150
|
+
|
|
100
151
|
--color-brand-light-gray: var(--color-gray-100);
|
|
101
152
|
--color-brand-medium-gray: var(--color-gray-500);
|
|
102
153
|
--color-brand-dark-gray: var(--color-gray-900);
|
|
@@ -104,37 +155,60 @@
|
|
|
104
155
|
--color-focus-ring: var(--color-brand-red);
|
|
105
156
|
}
|
|
106
157
|
:root {
|
|
158
|
+
/*********************************************************
|
|
159
|
+
*
|
|
160
|
+
* Global border radius tokens
|
|
161
|
+
*
|
|
162
|
+
*********************************************************/
|
|
107
163
|
--border-radius-0: 0px;
|
|
108
|
-
--border-radius-
|
|
109
|
-
--border-radius-
|
|
110
|
-
--border-radius-
|
|
111
|
-
--border-radius-
|
|
112
|
-
--border-radius-
|
|
113
|
-
--border-radius-
|
|
114
|
-
--border-radius-
|
|
115
|
-
--border-radius-
|
|
116
|
-
--border-radius-
|
|
164
|
+
--border-radius-2: 2px;
|
|
165
|
+
--border-radius-4: 4px;
|
|
166
|
+
--border-radius-6: 6px;
|
|
167
|
+
--border-radius-8: 8px;
|
|
168
|
+
--border-radius-12: 12px;
|
|
169
|
+
--border-radius-16: 16px;
|
|
170
|
+
--border-radius-20: 20px;
|
|
171
|
+
--border-radius-22: 22px;
|
|
172
|
+
--border-radius-30: 30px;
|
|
117
173
|
--border-radius-full: 9999px;
|
|
118
|
-
|
|
119
|
-
|
|
120
174
|
|
|
175
|
+
/*********************************************************
|
|
176
|
+
*
|
|
177
|
+
* Global border width tokens
|
|
178
|
+
*
|
|
179
|
+
*********************************************************/
|
|
121
180
|
--border-width-0: 0px;
|
|
122
181
|
--border-width-1: 1px;
|
|
123
182
|
--border-width-2: 2px;
|
|
124
183
|
--border-width-3: 4px;
|
|
125
184
|
}
|
|
185
|
+
|
|
126
186
|
.button-module-V4meK {
|
|
127
|
-
|
|
187
|
+
all: unset;
|
|
188
|
+
|
|
128
189
|
align-items: center;
|
|
129
|
-
|
|
190
|
+
display: inline-flex;
|
|
130
191
|
flex-shrink: 0;
|
|
192
|
+
font-size: var(--font-size-base);
|
|
193
|
+
font-style: italic;
|
|
194
|
+
font-weight: var(--font-weight-bold);
|
|
195
|
+
justify-content: center;
|
|
196
|
+
line-height: var(--line-height-base);
|
|
197
|
+
text-transform: uppercase;
|
|
131
198
|
-webkit-user-select: none;
|
|
132
199
|
-moz-user-select: none;
|
|
133
200
|
user-select: none;
|
|
134
|
-
vertical-align:
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
201
|
+
vertical-align: text-bottom;
|
|
202
|
+
cursor: pointer;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.button-module-V4meK:where([data-disabled]) {
|
|
206
|
+
cursor: default;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.button-module-V4meK {
|
|
210
|
+
|
|
211
|
+
gap: 3px;
|
|
138
212
|
}
|
|
139
213
|
|
|
140
214
|
/*********************************************************
|
|
@@ -145,14 +219,14 @@
|
|
|
145
219
|
|
|
146
220
|
.button-module-GVTEW {
|
|
147
221
|
min-height: 40px;
|
|
148
|
-
border-radius: var(--border-radius-
|
|
149
|
-
padding-inline: var(--space-
|
|
222
|
+
border-radius: var(--border-radius-20);
|
|
223
|
+
padding-inline: var(--space-20);
|
|
150
224
|
}
|
|
151
225
|
|
|
152
226
|
.button-module-nyNY8 {
|
|
153
|
-
min-height: 44px;
|
|
154
|
-
border-radius: var(--border-radius-
|
|
155
|
-
padding-inline: var(--space-
|
|
227
|
+
min-height: 44px;
|
|
228
|
+
border-radius: var(--border-radius-22);
|
|
229
|
+
padding-inline: var(--space-24);
|
|
156
230
|
}
|
|
157
231
|
|
|
158
232
|
/*********************************************************
|
|
@@ -161,31 +235,75 @@
|
|
|
161
235
|
*
|
|
162
236
|
*********************************************************/
|
|
163
237
|
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
.button-module-AjvlY:where(.button-module-tmyk8) {
|
|
238
|
+
.button-module-tmyk8:where(.button-module-vq9GI, .button-module-AjvlY) {
|
|
167
239
|
background-color: var(--color-brand-red);
|
|
168
|
-
color: var(--color-white);
|
|
240
|
+
color: var(--color-brand-white);
|
|
169
241
|
}
|
|
170
242
|
|
|
171
|
-
.button-module-AjvlY:where(.button-module-tmyk8):where([data-
|
|
172
|
-
.button-module-AjvlY:where(.button-module-tmyk8):where([data-pressed]) {
|
|
243
|
+
.button-module-tmyk8:where(.button-module-vq9GI, .button-module-AjvlY):where([data-hovered], .button-module-YzPAr, .button-module--xzsY, .button-module-XMFzj), .button-module-tmyk8:where(.button-module-vq9GI, .button-module-AjvlY):where([data-pressed]) {
|
|
173
244
|
background-color: var(--color-brand-dark-red);
|
|
174
245
|
}
|
|
175
246
|
|
|
176
|
-
|
|
247
|
+
.button-module-tmyk8:where(.button-module-f4UVe) {
|
|
248
|
+
color: var(--color-brand-black);
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
.button-module-tmyk8:where(.button-module-f4UVe):where([data-hovered], .button-module-YzPAr, .button-module--xzsY, .button-module-XMFzj), .button-module-tmyk8:where(.button-module-f4UVe):where([data-pressed]) {
|
|
252
|
+
color: var(--color-brand-red);
|
|
253
|
+
}
|
|
177
254
|
|
|
178
|
-
.button-module-
|
|
179
|
-
background-color: var(--color-white);
|
|
180
|
-
color: var(--color-black);
|
|
255
|
+
.button-module-tmyk8:where(.button-module-vq9GI) {
|
|
181
256
|
border: 1px solid var(--color-brand-medium-gray);
|
|
182
257
|
}
|
|
183
258
|
|
|
184
|
-
.button-module-
|
|
185
|
-
|
|
259
|
+
.button-module-tmyk8 .button-module-ydQAo {
|
|
260
|
+
color: var(--color-brand-white);
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
.button-module-tmyk8:where([data-disabled]) {
|
|
264
|
+
background-color: var(--color-red-100);
|
|
265
|
+
color: var(--color-red-50);
|
|
266
|
+
border-color: var(--color-brand-light-gray);
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
.button-module--1bCH:where(.button-module-vq9GI, .button-module-AjvlY) {
|
|
270
|
+
background-color: var(--color-brand-white);
|
|
271
|
+
color: var(--color-brand-black);
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
.button-module--1bCH:where(.button-module-vq9GI, .button-module-AjvlY):where([data-hovered], .button-module-YzPAr, .button-module--xzsY, .button-module-XMFzj), .button-module--1bCH:where(.button-module-vq9GI, .button-module-AjvlY):where([data-pressed]) {
|
|
186
275
|
background-color: var(--color-brand-light-gray);
|
|
187
276
|
}
|
|
277
|
+
|
|
278
|
+
.button-module--1bCH:where(.button-module-f4UVe) {
|
|
279
|
+
color: var(--color-brand-black);
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
.button-module--1bCH:where(.button-module-f4UVe):where([data-hovered], .button-module-YzPAr, .button-module--xzsY, .button-module-XMFzj), .button-module--1bCH:where(.button-module-f4UVe):where([data-pressed]) {
|
|
283
|
+
color: var(--color-brand-red);
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.button-module--1bCH:where(.button-module-vq9GI) {
|
|
287
|
+
border: 1px solid var(--color-brand-medium-gray);
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
.button-module--1bCH .button-module-ydQAo {
|
|
291
|
+
color: var(--color-brand-red);
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
.button-module--1bCH:where([data-disabled]) {
|
|
295
|
+
background-color: var(--color-white);
|
|
296
|
+
color: var(--color-brand-medium-gray);
|
|
297
|
+
border-color: var(--color-brand-medium-gray);
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
.button-module--1bCH:where([data-disabled]) .button-module-ydQAo {
|
|
301
|
+
color: var(--color-red-300);
|
|
302
|
+
}
|
|
303
|
+
|
|
188
304
|
.icon-button-module-HJm0i {
|
|
305
|
+
all: unset;
|
|
306
|
+
|
|
189
307
|
display: flex;
|
|
190
308
|
align-items: center;
|
|
191
309
|
justify-content: center;
|
|
@@ -229,40 +347,122 @@
|
|
|
229
347
|
.icon-button-module-fTeP4:where([data-pressed]), .icon-button-module-dM0eo:where([data-pressed]) {
|
|
230
348
|
color: var(--color-brand-dark-red);
|
|
231
349
|
}
|
|
232
|
-
|
|
233
|
-
|
|
350
|
+
|
|
351
|
+
.favorite-button-module-tXSS3:where(.favorite-button-module-6FS3Q) {
|
|
352
|
+
color: var(--color-brand-red);
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
.product-price-module-oIU1K {
|
|
356
|
+
--current-price-color: var(--color-brand-black);
|
|
357
|
+
|
|
358
|
+
display: flex;
|
|
359
|
+
flex-direction: column;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
.product-price-module-oIU1K .product-price-module-til0s {
|
|
363
|
+
font-weight: var(--font-weight-bold);
|
|
364
|
+
color: var(--color-brand-dark-gray);
|
|
365
|
+
text-decoration: line-through;
|
|
366
|
+
font-size: var(--font-size-18);
|
|
367
|
+
padding-left: var(--space-4);
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
.product-price-module-oIU1K .product-price-module-FfVhl {
|
|
371
|
+
display: flex;
|
|
372
|
+
gap: var(--space-4);
|
|
373
|
+
align-items: baseline;
|
|
374
|
+
margin-top: calc(var(--space-4) * -1);
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
.product-price-module-oIU1K .product-price-module-pvy2w {
|
|
378
|
+
position: relative;
|
|
379
|
+
display: flex;
|
|
380
|
+
line-height: 1;
|
|
381
|
+
color: var(--current-price-color);
|
|
382
|
+
font-weight: var(--font-weight-black);
|
|
383
|
+
font-size: var(--font-size-36);
|
|
384
|
+
font-style: italic;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
.product-price-module-oIU1K .product-price-module-pvy2w > * {
|
|
388
|
+
line-height: 1;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
.product-price-module-oIU1K .product-price-module-pvy2w .product-price-module-GCw07 {
|
|
392
|
+
font-size: 36px;
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
.product-price-module-oIU1K .product-price-module-pvy2w .product-price-module-N56iV {
|
|
396
|
+
margin-bottom: 0;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
.product-price-module-oIU1K .product-price-module-pvy2w .product-price-module-eWOOF {
|
|
400
|
+
position: relative;
|
|
401
|
+
font-size: var(--font-size-24);
|
|
402
|
+
margin-left: -0.375rem;
|
|
403
|
+
margin-top: 2px;
|
|
404
|
+
vertical-align: top;
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
.product-price-module-oIU1K .product-price-module-96DoG {
|
|
408
|
+
font-size: var(--font-size-12);
|
|
409
|
+
color: var(--color-brand-dark-gray);
|
|
410
|
+
font-weight: var(--font-weight-normal);
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
.product-price-module-oIU1K:has(.product-price-module-til0s) {
|
|
414
|
+
--current-price-color: var(--color-brand-red);
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
.product-sku-module-ITb8x {
|
|
418
|
+
all: unset;
|
|
419
|
+
font-size: var(--font-size-14);
|
|
420
|
+
color: var(--color-brand-dark-gray);;
|
|
234
421
|
}
|
|
422
|
+
|
|
235
423
|
.checkbox-module-y3eBg {
|
|
424
|
+
all: unset;
|
|
425
|
+
|
|
236
426
|
--selected-color: var(--color-brand-red);
|
|
237
427
|
--selected-color-pressed: var(--color-brand-dark-red);
|
|
428
|
+
--disabled-color: color-mix(in srgb, var(--selected-color) 20%, transparent);
|
|
429
|
+
|
|
238
430
|
--checkmark-color: var(--color-white);
|
|
431
|
+
--disabled-checkmark-color: color-mix(
|
|
432
|
+
in srgb,
|
|
433
|
+
var(--checkmark-color) 40%,
|
|
434
|
+
transparent
|
|
435
|
+
);
|
|
436
|
+
|
|
437
|
+
box-sizing: border-box;
|
|
239
438
|
|
|
240
439
|
display: flex;
|
|
241
440
|
align-items: center;
|
|
242
|
-
gap:
|
|
243
|
-
font-size: var(--font-size-24);
|
|
244
|
-
line-height: 14px;
|
|
441
|
+
gap: 4px;
|
|
245
442
|
color: var(--color-brand-black);
|
|
246
443
|
forced-color-adjust: none;
|
|
247
444
|
}
|
|
248
445
|
|
|
249
446
|
.checkbox-module-y3eBg .checkbox-module-TqLux {
|
|
447
|
+
box-sizing: border-box;
|
|
250
448
|
width: 16px;
|
|
251
449
|
height: 16px;
|
|
252
450
|
border: 2px solid var(--color-brand-medium-gray);
|
|
253
|
-
border-radius: var(--border-radius-
|
|
451
|
+
border-radius: var(--border-radius-2);
|
|
254
452
|
transition: all 200ms;
|
|
255
453
|
display: flex;
|
|
256
454
|
align-items: center;
|
|
257
|
-
justify-content: center;
|
|
455
|
+
justify-content: center;
|
|
456
|
+
color: var(--checkmark-color);
|
|
258
457
|
}
|
|
259
458
|
|
|
260
459
|
.checkbox-module-y3eBg .checkbox-module-Yhrdp {
|
|
261
460
|
width: 1rem;
|
|
262
461
|
height: 1rem;
|
|
263
462
|
fill: none;
|
|
264
|
-
stroke:
|
|
265
|
-
stroke-width:
|
|
463
|
+
stroke: currentColor;
|
|
464
|
+
stroke-width: 2px;
|
|
465
|
+
stroke-linecap: round;
|
|
266
466
|
stroke-dasharray: 22px;
|
|
267
467
|
stroke-dashoffset: 66;
|
|
268
468
|
transition: all 200ms;
|
|
@@ -272,10 +472,11 @@
|
|
|
272
472
|
border-color: var(--color-brand-dark-gray);
|
|
273
473
|
}
|
|
274
474
|
|
|
275
|
-
.checkbox-module-y3eBg[data-focus-visible] .checkbox-module-TqLux {
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
475
|
+
.checkbox-module-y3eBg.checkbox-module-zoTSP .checkbox-module-TqLux, .checkbox-module-y3eBg.checkbox-module-sHmzp .checkbox-module-TqLux, .checkbox-module-y3eBg[data-focus-visible] .checkbox-module-TqLux {
|
|
476
|
+
outline: 2px solid var(--color-brand-white);
|
|
477
|
+
outline-offset: 0px;
|
|
478
|
+
box-shadow: 0 0 8px 2px var(--color-brand-red);
|
|
479
|
+
}
|
|
279
480
|
|
|
280
481
|
.checkbox-module-y3eBg[data-selected] .checkbox-module-TqLux, .checkbox-module-y3eBg[data-indeterminate] .checkbox-module-TqLux {
|
|
281
482
|
border-color: var(--selected-color);
|
|
@@ -294,4 +495,10 @@
|
|
|
294
495
|
.checkbox-module-y3eBg[data-indeterminate] .checkbox-module-Yhrdp {
|
|
295
496
|
stroke: none;
|
|
296
497
|
fill: var(--checkmark-color);
|
|
297
|
-
}
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
.checkbox-module-y3eBg[data-disabled] .checkbox-module-TqLux {
|
|
501
|
+
border-color: var(--color-transparent);
|
|
502
|
+
background-color: var(--disabled-color);
|
|
503
|
+
color: var(--disabled-checkmark-color);
|
|
504
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const SIZES: readonly ["xxl", "xl", "l", "m", "s", "xs", "xxs"];
|
|
3
|
+
export declare const TAGS: readonly ["h1", "h2", "h3", "h4", "h5", "h6", "h7"];
|
|
4
|
+
type Size = (typeof SIZES)[number];
|
|
5
|
+
type Tag = (typeof TAGS)[number];
|
|
6
|
+
interface HeadingProps {
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
className?: string;
|
|
9
|
+
italic?: boolean;
|
|
10
|
+
size: Size;
|
|
11
|
+
tag?: Tag;
|
|
12
|
+
uppercase?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare function Heading({ children, className, italic, size, tag, uppercase, }: HeadingProps): import("react").ReactElement<{
|
|
15
|
+
className: string;
|
|
16
|
+
}, string | import("react").JSXElementConstructor<any>>;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
|
2
|
+
import { Heading } from './heading';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
argTypes: {
|
|
5
|
+
size: {
|
|
6
|
+
control: {
|
|
7
|
+
type: "select";
|
|
8
|
+
};
|
|
9
|
+
description: string;
|
|
10
|
+
name: string;
|
|
11
|
+
options: readonly ["xxl", "xl", "l", "m", "s", "xs", "xxs"];
|
|
12
|
+
};
|
|
13
|
+
tag: {
|
|
14
|
+
control: {
|
|
15
|
+
type: "select";
|
|
16
|
+
};
|
|
17
|
+
description: string;
|
|
18
|
+
name: string;
|
|
19
|
+
options: readonly ["h1", "h2", "h3", "h4", "h5", "h6", "h7"];
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
args: {
|
|
23
|
+
children: string;
|
|
24
|
+
size: "xxl";
|
|
25
|
+
tag: "h1";
|
|
26
|
+
uppercase: true;
|
|
27
|
+
};
|
|
28
|
+
component: typeof Heading;
|
|
29
|
+
parameters: {
|
|
30
|
+
layout: string;
|
|
31
|
+
};
|
|
32
|
+
tags: string[];
|
|
33
|
+
title: string;
|
|
34
|
+
};
|
|
35
|
+
export default meta;
|
|
36
|
+
type Story = StoryObj<typeof meta>;
|
|
37
|
+
export declare const Default: Story;
|