@automattic/vip-design-system 2.4.5 → 2.6.1

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 (97) hide show
  1. package/build/system/Breadcrumbs/Breadcrumbs.d.ts +1 -0
  2. package/build/system/Breadcrumbs/Breadcrumbs.js +75 -20
  3. package/build/system/Breadcrumbs/Breadcrumbs.stories.d.ts +2 -0
  4. package/build/system/Breadcrumbs/Breadcrumbs.stories.js +47 -7
  5. package/build/system/Breadcrumbs/Breadcrumbs.test.js +72 -0
  6. package/build/system/Breadcrumbs/styles.d.ts +2 -0
  7. package/build/system/Breadcrumbs/styles.js +8 -2
  8. package/build/system/Dropdown/Dropdown.d.ts +25 -36
  9. package/build/system/Dropdown/Dropdown.js +60 -99
  10. package/build/system/Dropdown/Dropdown.stories.d.ts +1 -26
  11. package/build/system/Dropdown/Dropdown.test.js +51 -28
  12. package/build/system/Dropdown/DropdownContent.d.ts +14 -10
  13. package/build/system/Dropdown/DropdownContent.js +43 -47
  14. package/build/system/Dropdown/DropdownItem.d.ts +20 -32
  15. package/build/system/Dropdown/DropdownItem.js +86 -103
  16. package/build/system/Dropdown/DropdownLabel.d.ts +11 -7
  17. package/build/system/Dropdown/DropdownLabel.js +29 -29
  18. package/build/system/Dropdown/DropdownSeparator.d.ts +10 -6
  19. package/build/system/Dropdown/DropdownSeparator.js +28 -28
  20. package/build/system/Dropdown/index.d.ts +17 -39
  21. package/build/system/Dropdown/index.js +23 -50
  22. package/build/system/FilterDropdown/FilterDropdown.d.ts +27 -0
  23. package/build/system/FilterDropdown/FilterDropdown.js +75 -0
  24. package/build/system/FilterDropdown/FilterDropdown.stories.d.ts +18 -0
  25. package/build/system/FilterDropdown/FilterDropdown.stories.js +46 -0
  26. package/build/system/FilterDropdown/FilterDropdown.test.d.ts +1 -0
  27. package/build/system/FilterDropdown/FilterDropdown.test.js +53 -0
  28. package/build/system/Hr/Hr.d.ts +7 -0
  29. package/build/system/Hr/Hr.js +22 -0
  30. package/build/system/Hr/Hr.stories.d.ts +23 -0
  31. package/build/system/Hr/Hr.stories.js +30 -0
  32. package/build/system/Hr/Hr.test.d.ts +1 -0
  33. package/build/system/Hr/Hr.test.js +41 -0
  34. package/build/system/Link/Link.d.ts +11 -1
  35. package/build/system/Link/Link.js +16 -1
  36. package/build/system/Link/Link.stories.d.ts +14 -1
  37. package/build/system/Link/Link.stories.js +16 -3
  38. package/build/system/Nav/styles.js +2 -1
  39. package/build/system/Page/Page.d.ts +2 -0
  40. package/build/system/Page/Page.js +10 -0
  41. package/build/system/Page/Page.test.d.ts +1 -0
  42. package/build/system/Page/Page.test.js +41 -0
  43. package/build/system/index.d.ts +3 -1
  44. package/build/system/index.js +4 -0
  45. package/build/system/theme/index.d.ts +889 -23
  46. package/build/system/theme/index.js +7 -8
  47. package/build/system/utils/stories/CustomLink.d.ts +1 -0
  48. package/build/system/utils/stories/CustomLink.js +7 -1
  49. package/package.json +1 -1
  50. package/src/system/Breadcrumbs/Breadcrumbs.stories.tsx +32 -3
  51. package/src/system/Breadcrumbs/Breadcrumbs.test.tsx +60 -0
  52. package/src/system/Breadcrumbs/Breadcrumbs.tsx +100 -29
  53. package/src/system/Breadcrumbs/styles.ts +11 -0
  54. package/src/system/Dropdown/{Dropdown.test.js → Dropdown.test.tsx} +2 -1
  55. package/src/system/Dropdown/Dropdown.tsx +72 -0
  56. package/src/system/Dropdown/DropdownContent.tsx +46 -0
  57. package/src/system/Dropdown/DropdownItem.tsx +112 -0
  58. package/src/system/Dropdown/DropdownLabel.tsx +29 -0
  59. package/src/system/Dropdown/DropdownSeparator.tsx +28 -0
  60. package/src/system/Dropdown/{index.js → index.ts} +1 -3
  61. package/src/system/FilterDropdown/FilterDropdown.stories.tsx +57 -0
  62. package/src/system/FilterDropdown/FilterDropdown.test.tsx +52 -0
  63. package/src/system/FilterDropdown/FilterDropdown.tsx +92 -0
  64. package/src/system/Hr/Hr.stories.tsx +48 -0
  65. package/src/system/Hr/Hr.test.tsx +22 -0
  66. package/src/system/Hr/Hr.tsx +11 -0
  67. package/src/system/Link/Link.stories.tsx +42 -1
  68. package/src/system/Link/Link.tsx +17 -8
  69. package/src/system/Nav/styles.ts +1 -0
  70. package/src/system/Page/Page.test.tsx +22 -0
  71. package/src/system/Page/Page.tsx +3 -0
  72. package/src/system/index.js +4 -0
  73. package/src/system/theme/index.js +7 -8
  74. package/src/system/utils/stories/CustomLink.tsx +6 -0
  75. package/tokens/valet-core/$metadata.json +1 -17
  76. package/tokens/valet-core/$themes.json +0 -2586
  77. package/src/system/Dropdown/Dropdown.js +0 -101
  78. package/src/system/Dropdown/DropdownContent.js +0 -50
  79. package/src/system/Dropdown/DropdownItem.js +0 -108
  80. package/src/system/Dropdown/DropdownLabel.js +0 -31
  81. package/src/system/Dropdown/DropdownSeparator.js +0 -30
  82. package/tokens/valet-core/figma-parsely-web-type.json +0 -1217
  83. package/tokens/valet-core/figma-valet-web-type.json +0 -1217
  84. package/tokens/valet-core/figma-wpvip-services-web-type.json +0 -1267
  85. package/tokens/valet-core/figma-wpvip-web-type.json +0 -1213
  86. package/tokens/valet-core/parsely-web-color.json +0 -729
  87. package/tokens/valet-core/parsely-web-core.json +0 -172
  88. package/tokens/valet-core/parsely-web-type.json +0 -362
  89. package/tokens/valet-core/valet-web-color.json +0 -677
  90. package/tokens/valet-core/valet-web-core.json +0 -172
  91. package/tokens/valet-core/wpvip-services-web-color.json +0 -730
  92. package/tokens/valet-core/wpvip-services-web-core.json +0 -172
  93. package/tokens/valet-core/wpvip-services-web-type.json +0 -412
  94. package/tokens/valet-core/wpvip-web-color-dark.json +0 -735
  95. package/tokens/valet-core/wpvip-web-color.json +0 -730
  96. package/tokens/valet-core/wpvip-web-type.json +0 -412
  97. package/tokens/valet-core/wpvip-web.json +0 -1310
@@ -1,172 +0,0 @@
1
- {
2
- "space": {
3
- "padding": {
4
- "global": {
5
- "value": "{space.responsive.4-7}",
6
- "type": "spacing",
7
- "description": "Use for global padding for the application—usually the outer margins of the screen. "
8
- }
9
- },
10
- "responsive": {
11
- "x-small": {
12
- "value": "{space.responsive.3-4}",
13
- "type": "spacing"
14
- },
15
- "small": {
16
- "value": "{space.responsive.4-5}",
17
- "type": "spacing"
18
- },
19
- "medium": {
20
- "value": "{space.responsive.5-6}",
21
- "type": "spacing"
22
- },
23
- "large": {
24
- "value": "{space.responsive.6-7}",
25
- "type": "spacing",
26
- "description": "The default space between sequential blocks in a layout"
27
- },
28
- "x-large": {
29
- "value": "{space.responsive.7-8}",
30
- "type": "spacing"
31
- },
32
- "xx-large": {
33
- "value": "{space.responsive.8-9}",
34
- "type": "spacing"
35
- },
36
- "xxx-large": {
37
- "value": "{space.responsive.9-10}",
38
- "type": "spacing"
39
- }
40
- },
41
- "static": {
42
- "x-small": {
43
- "value": "{space.static.1}",
44
- "type": "spacing"
45
- },
46
- "small": {
47
- "value": "{space.static.2}",
48
- "type": "spacing"
49
- },
50
- "medium": {
51
- "value": "{space.static.3}",
52
- "type": "spacing"
53
- },
54
- "large": {
55
- "value": "{space.static.4}",
56
- "type": "spacing"
57
- },
58
- "x-large": {
59
- "value": "{space.static.5}",
60
- "type": "spacing"
61
- },
62
- "xx-large": {
63
- "value": "{space.static.6}",
64
- "type": "spacing"
65
- },
66
- "xxx-large": {
67
- "value": "{space.static.7}",
68
- "type": "spacing"
69
- }
70
- }
71
- },
72
- "shadow": {
73
- "high": {
74
- "value": "{shadow.3}",
75
- "type": "boxShadow"
76
- },
77
- "medium": {
78
- "value": "{shadow.2}",
79
- "type": "boxShadow"
80
- },
81
- "low": {
82
- "value": "{shadow.1}",
83
- "type": "boxShadow"
84
- }
85
- },
86
- "breakpoint": {
87
- "S": {
88
- "value": "320",
89
- "type": "sizing",
90
- "description": "< 655px"
91
- },
92
- "M": {
93
- "value": "656",
94
- "type": "sizing",
95
- "description": "656–1047px"
96
- },
97
- "L": {
98
- "value": "1048",
99
- "type": "sizing"
100
- },
101
- "XL": {
102
- "value": "1312",
103
- "type": "sizing",
104
- "description": "1312–1535px"
105
- },
106
- "XXL": {
107
- "value": "1536",
108
- "type": "sizing",
109
- "description": "1536–1647px"
110
- },
111
- "MAX": {
112
- "value": "1648",
113
- "type": "sizing",
114
- "description": "1648px +"
115
- }
116
- },
117
- "alignment": {
118
- "center": {
119
- "value": "744",
120
- "type": "sizing",
121
- "description": "min-width: 744px"
122
- },
123
- "wide": {
124
- "value": "1008",
125
- "type": "sizing",
126
- "description": "min-width: 1008px"
127
- },
128
- "full": {
129
- "value": "1536",
130
- "type": "sizing",
131
- "description": "max-width: 1536px"
132
- }
133
- },
134
- "borderRadius": {
135
- "static": {
136
- "small": {
137
- "value": "{borderRadius.static.2}",
138
- "type": "borderRadius"
139
- },
140
- "medium": {
141
- "value": "{borderRadius.static.3}",
142
- "type": "borderRadius"
143
- },
144
- "large": {
145
- "value": "{borderRadius.static.4}",
146
- "type": "borderRadius"
147
- },
148
- "x-large": {
149
- "value": "{borderRadius.static.5}",
150
- "type": "borderRadius"
151
- },
152
- "xx-large": {
153
- "value": "{borderRadius.static.6}",
154
- "type": "borderRadius"
155
- },
156
- "x-small": {
157
- "value": "{borderRadius.static.1}",
158
- "type": "borderRadius"
159
- }
160
- },
161
- "responsive": {
162
- "medium": {
163
- "value": "{borderRadius.responsive.3-5}",
164
- "type": "borderRadius"
165
- },
166
- "large": {
167
- "value": "{borderRadius.responsive.4-6}",
168
- "type": "borderRadius"
169
- }
170
- }
171
- }
172
- }
@@ -1,362 +0,0 @@
1
- {
2
- "body": {
3
- "1-short": {
4
- "value": {
5
- "fontFamily": "{fontFamily.sans}",
6
- "fontWeight": "{fontWeight.regular}",
7
- "lineHeight": "{lineHeight.4}",
8
- "fontSize": "{fontSize.static.2}"
9
- },
10
- "type": "typography"
11
- },
12
- "1-short-medium": {
13
- "value": {
14
- "fontFamily": "{fontFamily.sans}",
15
- "fontWeight": "{fontWeight.medium}",
16
- "lineHeight": "{lineHeight.4}",
17
- "fontSize": "{fontSize.static.2}"
18
- },
19
- "type": "typography"
20
- },
21
- "1-short-caps": {
22
- "value": {
23
- "fontFamily": "{fontFamily.sans}",
24
- "fontWeight": "{fontWeight.regular}",
25
- "lineHeight": "{lineHeight.4}",
26
- "fontSize": "{fontSize.static.2}",
27
- "textCase": "uppercase"
28
- },
29
- "type": "typography"
30
- },
31
- "2-short": {
32
- "value": {
33
- "fontFamily": "{fontFamily.sans}",
34
- "fontWeight": "{fontWeight.regular}",
35
- "lineHeight": "{lineHeight.4}",
36
- "fontSize": "{fontSize.static.3}"
37
- },
38
- "type": "typography"
39
- },
40
- "2-short-medium": {
41
- "value": {
42
- "fontFamily": "{fontFamily.sans}",
43
- "fontWeight": "{fontWeight.bold}",
44
- "lineHeight": "{lineHeight.4}",
45
- "fontSize": "{fontSize.static.3}"
46
- },
47
- "type": "typography"
48
- },
49
- "3-short": {
50
- "value": {
51
- "fontFamily": "{fontFamily.sans}",
52
- "fontWeight": "{fontWeight.regular}",
53
- "lineHeight": "{lineHeight.4}",
54
- "fontSize": "{fontSize.static.4}"
55
- },
56
- "type": "typography"
57
- },
58
- "4-short": {
59
- "value": {
60
- "fontFamily": "{fontFamily.sans}",
61
- "fontWeight": "{fontWeight.medium}",
62
- "lineHeight": "{lineHeight.4}",
63
- "fontSize": "{fontSize.static.5}"
64
- },
65
- "type": "typography"
66
- },
67
- "4-serif": {
68
- "value": {
69
- "fontFamily": "{fontFamily.serif}",
70
- "fontWeight": "{fontWeight.regular}",
71
- "lineHeight": "{lineHeight.5}",
72
- "fontSize": "{fontSize.static.5}"
73
- },
74
- "type": "typography"
75
- }
76
- },
77
- "heading": {
78
- "1": {
79
- "value": {
80
- "fontFamily": "{fontFamily.sans}",
81
- "fontWeight": "{fontWeight.bold}",
82
- "lineHeight": "{lineHeight.responsive}",
83
- "fontSize": "{fontSize.responsive.6}",
84
- "letterSpacing": "{letterSpacing.tight}"
85
- },
86
- "type": "typography"
87
- },
88
- "2": {
89
- "value": {
90
- "fontFamily": "{fontFamily.sans}",
91
- "fontWeight": "{fontWeight.bold}",
92
- "lineHeight": "{lineHeight.responsive}",
93
- "fontSize": "{fontSize.responsive.8}",
94
- "letterSpacing": "{letterSpacing.tight}"
95
- },
96
- "type": "typography"
97
- },
98
- "3": {
99
- "value": {
100
- "fontFamily": "{fontFamily.sans}",
101
- "fontWeight": "{fontWeight.bold}",
102
- "lineHeight": "{lineHeight.responsive}",
103
- "fontSize": "{fontSize.responsive.9}",
104
- "letterSpacing": "{letterSpacing.tight}"
105
- },
106
- "type": "typography"
107
- },
108
- "4": {
109
- "value": {
110
- "fontFamily": "{fontFamily.sans}",
111
- "fontWeight": "{fontWeight.bold}",
112
- "lineHeight": "{lineHeight.responsive}",
113
- "fontSize": "{fontSize.responsive.10}",
114
- "letterSpacing": "{letterSpacing.tight}"
115
- },
116
- "type": "typography"
117
- },
118
- "5": {
119
- "value": {
120
- "fontFamily": "{fontFamily.sans}",
121
- "fontWeight": "{fontWeight.bold}",
122
- "lineHeight": "{lineHeight.responsive}",
123
- "fontSize": "{fontSize.responsive.11}",
124
- "letterSpacing": "{letterSpacing.tight}"
125
- },
126
- "type": "typography"
127
- },
128
- "6": {
129
- "value": {
130
- "fontFamily": "{fontFamily.sans}",
131
- "fontWeight": "{fontWeight.bold}",
132
- "lineHeight": "{lineHeight.responsive}",
133
- "fontSize": "{fontSize.responsive.12}",
134
- "letterSpacing": "{letterSpacing.tight}"
135
- },
136
- "type": "typography"
137
- },
138
- "7": {
139
- "value": {
140
- "fontFamily": "{fontFamily.sans}",
141
- "fontWeight": "{fontWeight.bold}",
142
- "lineHeight": "{lineHeight.responsive}",
143
- "fontSize": "{fontSize.responsive.13}",
144
- "letterSpacing": "{letterSpacing.tight}"
145
- },
146
- "type": "typography"
147
- },
148
- "7-serif": {
149
- "value": {
150
- "fontFamily": "{fontFamily.serif}",
151
- "fontWeight": "{fontWeight.bold}",
152
- "lineHeight": "{lineHeight.responsive}",
153
- "fontSize": "{fontSize.responsive.13}",
154
- "letterSpacing": "{letterSpacing.tight}"
155
- },
156
- "type": "typography"
157
- },
158
- "6-serif": {
159
- "value": {
160
- "fontFamily": "{fontFamily.serif}",
161
- "fontWeight": "{fontWeight.bold}",
162
- "lineHeight": "{lineHeight.responsive}",
163
- "fontSize": "{fontSize.responsive.12}",
164
- "letterSpacing": "{letterSpacing.tight}"
165
- },
166
- "type": "typography"
167
- },
168
- "5-serif": {
169
- "value": {
170
- "fontFamily": "{fontFamily.serif}",
171
- "fontWeight": "{fontWeight.bold}",
172
- "lineHeight": "{lineHeight.responsive}",
173
- "fontSize": "{fontSize.responsive.11}",
174
- "letterSpacing": "{letterSpacing.tight}"
175
- },
176
- "type": "typography"
177
- }
178
- },
179
- "paragraph": {
180
- "1": {
181
- "value": {
182
- "fontFamily": "{fontFamily.sans}",
183
- "fontWeight": "{fontWeight.regular}",
184
- "lineHeight": "{lineHeight.4}",
185
- "fontSize": "{fontSize.responsive.8}",
186
- "letterSpacing": "{letterSpacing.tight}"
187
- },
188
- "type": "typography"
189
- }
190
- },
191
- "quotation": {
192
- "1": {
193
- "value": {
194
- "fontFamily": "{fontFamily.serif}",
195
- "fontWeight": "{fontWeight.bold}",
196
- "lineHeight": "{lineHeight.4}",
197
- "fontSize": "{fontSize.responsive.7}",
198
- "letterSpacing": "{letterSpacing.tight}"
199
- },
200
- "type": "typography"
201
- },
202
- "2": {
203
- "value": {
204
- "fontFamily": "{fontFamily.serif}",
205
- "fontWeight": "{fontWeight.bold}",
206
- "lineHeight": "{lineHeight.4}",
207
- "fontSize": "{fontSize.responsive.8}",
208
- "letterSpacing": "{letterSpacing.tight}"
209
- },
210
- "type": "typography"
211
- },
212
- "3": {
213
- "value": {
214
- "fontFamily": "{fontFamily.serif}",
215
- "fontWeight": "{fontWeight.bold}",
216
- "lineHeight": "{lineHeight.3}",
217
- "fontSize": "{fontSize.responsive.9}",
218
- "letterSpacing": "{letterSpacing.tight}"
219
- },
220
- "type": "typography"
221
- }
222
- },
223
- "caption": {
224
- "1": {
225
- "value": {
226
- "fontFamily": "{fontFamily.sans}",
227
- "fontWeight": "{fontWeight.regular}",
228
- "lineHeight": "{lineHeight.4}",
229
- "fontSize": "{fontSize.static.1}",
230
- "letterSpacing": "{letterSpacing.loose}"
231
- },
232
- "type": "typography"
233
- },
234
- "2": {
235
- "value": {
236
- "fontFamily": "{fontFamily.sans}",
237
- "fontWeight": "{fontWeight.regular}",
238
- "lineHeight": "{lineHeight.4}",
239
- "fontSize": "{fontSize.static.2}",
240
- "letterSpacing": "{letterSpacing.loose}"
241
- },
242
- "type": "typography"
243
- }
244
- },
245
- "code": {
246
- "1": {
247
- "value": {
248
- "fontFamily": "{fontFamily.monospace}",
249
- "fontWeight": "{fontWeight.regular}",
250
- "lineHeight": "{lineHeight.4}",
251
- "fontSize": "{fontSize.static.2}"
252
- },
253
- "type": "typography"
254
- },
255
- "2": {
256
- "value": {
257
- "fontFamily": "{fontFamily.monospace}",
258
- "fontWeight": "{fontWeight.regular}",
259
- "lineHeight": "{lineHeight.4}",
260
- "fontSize": "{fontSize.static.3}"
261
- },
262
- "type": "typography"
263
- }
264
- },
265
- "supporting": {
266
- "helper-text": {
267
- "1": {
268
- "value": {
269
- "fontFamily": "{fontFamily.sans}",
270
- "fontWeight": "{fontWeight.regular}",
271
- "lineHeight": "{lineHeight.4}",
272
- "fontSize": "{fontSize.static.1}",
273
- "letterSpacing": "{letterSpacing.loose}"
274
- },
275
- "type": "typography"
276
- },
277
- "1-caps": {
278
- "value": {
279
- "fontFamily": "{fontFamily.sans}",
280
- "fontWeight": "{fontWeight.regular}",
281
- "lineHeight": "{lineHeight.4}",
282
- "fontSize": "{fontSize.static.1}",
283
- "letterSpacing": "{letterSpacing.loose}",
284
- "textCase": "{textCase.uppercase}"
285
- },
286
- "type": "typography"
287
- }
288
- },
289
- "support-text": {
290
- "1": {
291
- "value": {
292
- "fontFamily": "{fontFamily.accent}",
293
- "fontWeight": "{fontWeight.bold}",
294
- "lineHeight": "{lineHeight.4}",
295
- "fontSize": "{fontSize.static.1}",
296
- "letterSpacing": "{letterSpacing.loose}",
297
- "textCase": "{textCase.uppercase}"
298
- },
299
- "type": "typography"
300
- },
301
- "2": {
302
- "value": {
303
- "fontFamily": "{fontFamily.accent}",
304
- "fontWeight": "{fontWeight.bold}",
305
- "lineHeight": "{lineHeight.4}",
306
- "fontSize": "{fontSize.static.3}",
307
- "letterSpacing": "{letterSpacing.loose}",
308
- "textCase": "{textCase.uppercase}"
309
- },
310
- "type": "typography"
311
- }
312
- }
313
- },
314
- "fontFamily": {
315
- "sans": {
316
- "value": "Aktiv Grotesk VF",
317
- "type": "fontFamilies"
318
- },
319
- "serif": {
320
- "value": "IvarText-Regular",
321
- "type": "fontFamilies"
322
- },
323
- "display": {
324
- "value": "Aktiv Grotesk VF",
325
- "type": "fontFamilies"
326
- },
327
- "accent": {
328
- "value": "Aktiv Grotesk VF",
329
- "type": "fontFamilies"
330
- },
331
- "mono": {
332
- "value": "AkkuratMonoLLWeb-Regular",
333
- "type": "fontFamilies"
334
- }
335
- },
336
- "letterSpacing": {
337
- "tight": {
338
- "value": "-0.01em",
339
- "type": "letterSpacing"
340
- },
341
- "none": {
342
- "value": "0em",
343
- "type": "letterSpacing"
344
- },
345
- "loose": {
346
- "value": "0.03em",
347
- "type": "letterSpacing"
348
- }
349
- },
350
- "statistic": {
351
- "1": {
352
- "value": {
353
- "fontFamily": "{fontFamily.sans}",
354
- "fontWeight": "{fontWeight.regular}",
355
- "lineHeight": "{lineHeight.responsive}",
356
- "fontSize": "{fontSize.responsive.12}",
357
- "letterSpacing": "{letterSpacing.tight}"
358
- },
359
- "type": "typography"
360
- }
361
- }
362
- }