@czi-sds/mcp 0.5.2 → 0.5.4
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/data/component-list.json +1 -0
- package/data/component-props/NavigationHeader.json +4 -0
- package/data/tailwind.json +25 -25
- package/data/zeroheight-cache.json +5065 -1
- package/data/zeroheight-exports/Accordion.md +79 -22
- package/data/zeroheight-exports/Banner.md +102 -10
- package/data/zeroheight-exports/Buttons.md +1010 -1461
- package/data/zeroheight-exports/Callout.md +164 -11
- package/data/zeroheight-exports/Colors.md +1164 -41
- package/data/zeroheight-exports/Content-Card.md +148 -0
- package/data/zeroheight-exports/Control-Inputs.md +769 -72
- package/data/zeroheight-exports/Corners.md +8 -15
- package/data/zeroheight-exports/Dialog.md +190 -14
- package/data/zeroheight-exports/Downloads.md +116 -0
- package/data/zeroheight-exports/Dropdown-Input.md +612 -16
- package/data/zeroheight-exports/Dropdown-Menus.md +935 -0
- package/data/zeroheight-exports/Field-Inputs.md +430 -9
- package/data/zeroheight-exports/Filters.md +232 -9
- package/data/zeroheight-exports/Getting-Started.md +7 -9
- package/data/zeroheight-exports/Hero.md +152 -0
- package/data/zeroheight-exports/Icons.md +1854 -218
- package/data/zeroheight-exports/Intent.md +40 -0
- package/data/zeroheight-exports/Link.md +52 -6
- package/data/zeroheight-exports/Lists.md +360 -6
- package/data/zeroheight-exports/Loading-Indicator.md +6 -2
- package/data/zeroheight-exports/Navigation.md +324 -8
- package/data/zeroheight-exports/Notification.md +166 -16
- package/data/zeroheight-exports/Panel.md +68 -16
- package/data/zeroheight-exports/README.md +17 -19
- package/data/zeroheight-exports/Responsive-Design.md +52 -0
- package/data/zeroheight-exports/Search-Input.md +40 -2
- package/data/zeroheight-exports/Search.md +232 -2
- package/data/zeroheight-exports/Segmented-Control.md +34 -9
- package/data/zeroheight-exports/Table.md +452 -51
- package/data/zeroheight-exports/Tabs.md +534 -11
- package/data/zeroheight-exports/Tags.md +504 -14
- package/data/zeroheight-exports/Text-Link.md +90 -6
- package/data/zeroheight-exports/Theming.md +36 -6
- package/data/zeroheight-exports/Tooltips.md +453 -18
- package/data/zeroheight-exports/Typography.md +64 -32
- package/package.json +3 -3
- package/data/zeroheight-exports/Dropdown-Menu.md +0 -3883
|
@@ -14,26 +14,62 @@ Users can filter using any combination of Filter options presented to them—see
|
|
|
14
14
|
| **Closed** | **Open** | **Active** |
|
|
15
15
|
| ---------- | -------- | ---------- |
|
|
16
16
|
|
|
17
|
+
**Filter_Closed**
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
**Filter_Open**
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
**Filter_Active**
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
17
29
|
### Filter Variants
|
|
18
30
|
|
|
31
|
+
**Default**
|
|
32
|
+
|
|
33
|
+
---
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
**Default + Search**
|
|
38
|
+
|
|
19
39
|
---
|
|
20
40
|
|
|
21
41
|
### Filter Example
|
|
22
42
|
|
|
23
43
|
The example below shows Filters being used as part of the plugin search on napari hub.
|
|
24
44
|
|
|
45
|
+
**Filter_Example**
|
|
46
|
+
|
|
47
|
+
---
|
|
48
|
+
|
|
25
49
|
---
|
|
26
50
|
|
|
27
51
|
### Filter Spacing
|
|
28
52
|
|
|
29
53
|
These rules establish how much margin should exist between and around elements. Follow spacing rules for Dropdown Menus for spacing guidance for the Filter Input.
|
|
30
54
|
|
|
55
|
+
**Filter_Spacing**
|
|
56
|
+
|
|
57
|
+
---
|
|
58
|
+
|
|
31
59
|
---
|
|
32
60
|
|
|
33
61
|
## Filtering Logic
|
|
34
62
|
|
|
35
63
|
Filtering logic is handled at the product level; however, this section offers some suggestions for best practices to consider when establishing filtering logic.
|
|
36
64
|
|
|
65
|
+
**Between filter categories: use "AND"**
|
|
66
|
+
|
|
67
|
+
---
|
|
68
|
+
|
|
69
|
+
**Within filter categories: use "OR"**
|
|
70
|
+
|
|
71
|
+
---
|
|
72
|
+
|
|
37
73
|
## Code
|
|
38
74
|
|
|
39
75
|
## Filter Components
|
|
@@ -67,32 +103,74 @@ The Dropdown Menu that is activated when the Filter Label is clicked displays th
|
|
|
67
103
|
| **Closed** | **Open** | **Active** |
|
|
68
104
|
| ---------- | -------- | ---------- |
|
|
69
105
|
|
|
106
|
+
**Complex Filter_Closed**
|
|
107
|
+
|
|
108
|
+
---
|
|
109
|
+
|
|
110
|
+
**Complex Filter_Open**
|
|
111
|
+
|
|
112
|
+
---
|
|
113
|
+
|
|
114
|
+
**Complex Filter_Active**
|
|
115
|
+
|
|
116
|
+
---
|
|
117
|
+
|
|
70
118
|
### Filter Variants
|
|
71
119
|
|
|
120
|
+
**Single-select**
|
|
121
|
+
|
|
122
|
+
---
|
|
123
|
+
|
|
124
|
+
---
|
|
125
|
+
|
|
126
|
+
**Single-select + Search**
|
|
127
|
+
|
|
72
128
|
---
|
|
73
129
|
|
|
74
130
|
---
|
|
75
131
|
|
|
132
|
+
**Multi-select**
|
|
133
|
+
|
|
134
|
+
---
|
|
135
|
+
|
|
76
136
|
---
|
|
77
137
|
|
|
138
|
+
**Multi-select + Search**
|
|
78
139
|
|
|
140
|
+
---
|
|
79
141
|
|
|
80
142
|
### Filter Example
|
|
81
143
|
|
|
82
144
|
The example below shows Complex Filters being used as part of a Basic Panel in CZ GEN EPI.
|
|
83
145
|
|
|
146
|
+
**Complex Filter_Example**
|
|
147
|
+
|
|
148
|
+
---
|
|
149
|
+
|
|
84
150
|
---
|
|
85
151
|
|
|
86
152
|
### Filter Spacing
|
|
87
153
|
|
|
88
154
|
These rules establish how much margin should exist between and around elements. Follow spacing rules for Dropdown Menus for spacing guidance for the Complex Filter Input.
|
|
89
155
|
|
|
156
|
+
**Complex Filter_Spacing**
|
|
157
|
+
|
|
158
|
+
---
|
|
159
|
+
|
|
90
160
|
---
|
|
91
161
|
|
|
92
162
|
## Filtering Logic
|
|
93
163
|
|
|
94
164
|
Filtering logic is handled at the product level, however, this section offers some suggestions for best practices to consider when establishing filtering logic.
|
|
95
165
|
|
|
166
|
+
**Between filter categories: use "AND"**
|
|
167
|
+
|
|
168
|
+
---
|
|
169
|
+
|
|
170
|
+
---
|
|
171
|
+
|
|
172
|
+
**Within filter categories: use "OR"**
|
|
173
|
+
|
|
96
174
|
---
|
|
97
175
|
|
|
98
176
|
## Code
|
|
@@ -130,15 +208,29 @@ Filters are used to narrow down large amounts of data based on specific criteria
|
|
|
130
208
|
|
|
131
209
|
Use the Simple Filter when there are only a few options to filter on or there are only a few filter categories needed for a given dataset. Simple Filters are comprised of a Filter Label combined with a Filter Input that is Single-select (Radio Lockup), Multi-select (Checkbox Lockup), or a Range (Slider) depending on the filtering needs of the dataset. In contrast to Complex Filters which keep filter options contained within a Dropdown Menu, Simple Filters have all of the options for each filter exposed in the UI and viewable by the user. Users can filter using any combination of Filter options presented to them—see the Filtering Logic section below for an overview of how applied Filters affect the dataset being filtered.
|
|
132
210
|
|
|
211
|
+
**Single-select**
|
|
212
|
+
|
|
213
|
+
---
|
|
214
|
+
|
|
215
|
+
---
|
|
216
|
+
|
|
217
|
+
**Multi-select**
|
|
218
|
+
|
|
219
|
+
---
|
|
220
|
+
|
|
133
221
|
---
|
|
134
222
|
|
|
223
|
+
**Range**
|
|
224
|
+
|
|
135
225
|
---
|
|
136
226
|
|
|
137
227
|
### Simple Filter Example
|
|
138
228
|
|
|
139
229
|
The example below shows Simple Filters being used as part of a Basic Panel in CZ ID.
|
|
140
230
|
|
|
231
|
+
**Simple Filter_Example**
|
|
141
232
|
|
|
233
|
+
---
|
|
142
234
|
|
|
143
235
|
---
|
|
144
236
|
|
|
@@ -146,6 +238,10 @@ The example below shows Simple Filters being used as part of a Basic Panel in CZ
|
|
|
146
238
|
|
|
147
239
|
These rules establish how much margin should exist between and around elements.
|
|
148
240
|
|
|
241
|
+
**Simple Filter Spacing**
|
|
242
|
+
|
|
243
|
+
---
|
|
244
|
+
|
|
149
245
|
---
|
|
150
246
|
|
|
151
247
|
## Complex Filter
|
|
@@ -160,34 +256,80 @@ The Dropdown Menu that is activated when the Filter Label is clicked displays th
|
|
|
160
256
|
| **Closed** | **Open** | **Active** |
|
|
161
257
|
| ---------- | -------- | ---------- |
|
|
162
258
|
|
|
259
|
+
**Complex Filter_Closed**
|
|
260
|
+
|
|
261
|
+
---
|
|
262
|
+
|
|
263
|
+
**Complex Filter_Open**
|
|
264
|
+
|
|
265
|
+
---
|
|
266
|
+
|
|
267
|
+
**Complex Filter_Active**
|
|
268
|
+
|
|
269
|
+
---
|
|
270
|
+
|
|
163
271
|
### Complex Filter Variants
|
|
164
272
|
|
|
273
|
+
**Single-select**
|
|
274
|
+
|
|
275
|
+
---
|
|
276
|
+
|
|
277
|
+
---
|
|
278
|
+
|
|
279
|
+
**Single-select + Search**
|
|
280
|
+
|
|
165
281
|
---
|
|
166
282
|
|
|
167
283
|
---
|
|
168
284
|
|
|
285
|
+
**Multi-select**
|
|
286
|
+
|
|
169
287
|
---
|
|
170
288
|
|
|
171
289
|
---
|
|
172
290
|
|
|
291
|
+
**Multi-select + Search**
|
|
173
292
|
|
|
293
|
+
---
|
|
294
|
+
|
|
295
|
+
---
|
|
296
|
+
|
|
297
|
+
**Range**
|
|
298
|
+
|
|
299
|
+
---
|
|
174
300
|
|
|
175
301
|
### Complex Filter Example
|
|
176
302
|
|
|
177
303
|
The example below shows Complex Filters being used as part of a Basic Panel in CZ ID.
|
|
178
304
|
|
|
305
|
+
**Complex Filter_Example**
|
|
306
|
+
|
|
307
|
+
---
|
|
308
|
+
|
|
179
309
|
---
|
|
180
310
|
|
|
181
311
|
### Complex Filter Spacing
|
|
182
312
|
|
|
183
313
|
These rules establish how much margin should exist between and around elements. Follow spacing rules for Dropdown Menus for spacing guidance for the Complex Filter Input.
|
|
184
314
|
|
|
315
|
+
**Complex Filter_Spacing**
|
|
316
|
+
|
|
317
|
+
---
|
|
318
|
+
|
|
185
319
|
---
|
|
186
320
|
|
|
187
321
|
## Filtering Logic
|
|
188
322
|
|
|
189
323
|
Filtering logic is handled at the product level, however, this section offers some suggestions for best practices to consider when establishing filtering logic.
|
|
190
324
|
|
|
325
|
+
**Between filter categories: use “AND”**
|
|
326
|
+
|
|
327
|
+
---
|
|
328
|
+
|
|
329
|
+
---
|
|
330
|
+
|
|
331
|
+
**Within filter category: use “OR”**
|
|
332
|
+
|
|
191
333
|
---
|
|
192
334
|
|
|
193
335
|
## Code
|
|
@@ -220,6 +362,14 @@ Filters are used to narrow down large amounts of data based on specific criteria
|
|
|
220
362
|
|
|
221
363
|
### Visual Preview
|
|
222
364
|
|
|
365
|
+
**Preview_Guidelines_Filter_Simple**
|
|
366
|
+
|
|
367
|
+
---
|
|
368
|
+
|
|
369
|
+
**Preview_Guidelines_Filter_Complex**
|
|
370
|
+
|
|
371
|
+
---
|
|
372
|
+
|
|
223
373
|
---
|
|
224
374
|
|
|
225
375
|
## Simple Filter
|
|
@@ -240,18 +390,38 @@ Use Simple Filter when there are only a few filter categories or a few options p
|
|
|
240
390
|
| Single-select | Multi-select | Range |
|
|
241
391
|
| ------------- | ------------ | ----- |
|
|
242
392
|
|
|
393
|
+
**Simple Filter_Single-select**
|
|
394
|
+
|
|
395
|
+
---
|
|
396
|
+
|
|
397
|
+
**Simple Filter_Multi-select**
|
|
398
|
+
|
|
399
|
+
---
|
|
400
|
+
|
|
401
|
+
**Simple Filter_Range**
|
|
402
|
+
|
|
403
|
+
---
|
|
404
|
+
|
|
243
405
|
---
|
|
244
406
|
|
|
245
407
|
### Simple Filter example
|
|
246
408
|
|
|
247
409
|
The example below shows Simple Filters being used as part of a Basic Panel (documentation to come) in CZ ID.
|
|
248
410
|
|
|
411
|
+
**Simple Filter_Example**
|
|
412
|
+
|
|
413
|
+
---
|
|
414
|
+
|
|
249
415
|
---
|
|
250
416
|
|
|
251
417
|
### Simple Filter Spacing
|
|
252
418
|
|
|
253
419
|
These rules establish how much margin should exist between and around elements.
|
|
254
420
|
|
|
421
|
+
**Simple Filter Spacing**
|
|
422
|
+
|
|
423
|
+
---
|
|
424
|
+
|
|
255
425
|
---
|
|
256
426
|
|
|
257
427
|
## Complex Filter
|
|
@@ -276,29 +446,77 @@ The Dropdown Menu triggered when the Dropdown Input is clicked can be Single-sel
|
|
|
276
446
|
| Single-select | Single-select + Search | Multi-select | Multi-select + Search | Range |
|
|
277
447
|
| ------------- | ---------------------- | ------------ | --------------------- | ----- |
|
|
278
448
|
|
|
449
|
+
**Complex Filter_Input_Single-select**
|
|
450
|
+
|
|
451
|
+
---
|
|
452
|
+
|
|
453
|
+
**Complex Filter_Input_Single-select + Search**
|
|
454
|
+
|
|
455
|
+
---
|
|
456
|
+
|
|
457
|
+
**Complex Filter_Input_Multi-select**
|
|
458
|
+
|
|
459
|
+
---
|
|
460
|
+
|
|
461
|
+
**Complex Filter_Input_Multi-select + Search**
|
|
462
|
+
|
|
463
|
+
---
|
|
464
|
+
|
|
465
|
+
**Complex Filter_Input_Range**
|
|
466
|
+
|
|
467
|
+
---
|
|
468
|
+
|
|
279
469
|
#### **Complex Filter states**
|
|
280
470
|
|
|
281
471
|
| Closed | Open | Active |
|
|
282
472
|
| ------ | ---- | ------ |
|
|
283
473
|
|
|
474
|
+
**Complex Filter_Closed**
|
|
475
|
+
|
|
476
|
+
---
|
|
477
|
+
|
|
478
|
+
**Complex Filter_Open**
|
|
479
|
+
|
|
480
|
+
---
|
|
481
|
+
|
|
482
|
+
**Complex Filter_Active**
|
|
483
|
+
|
|
484
|
+
---
|
|
485
|
+
|
|
284
486
|
---
|
|
285
487
|
|
|
286
488
|
### Complex Filter example
|
|
287
489
|
|
|
288
490
|
The example below shows Complex Filters being used as part of a Basic Panel (documentation to come) in CZ ID.
|
|
289
491
|
|
|
492
|
+
**Complex Filter_Example**
|
|
493
|
+
|
|
494
|
+
---
|
|
495
|
+
|
|
290
496
|
---
|
|
291
497
|
|
|
292
498
|
### Complex Filter Spacing
|
|
293
499
|
|
|
294
500
|
These rules establish how much margin should exist between and around elements. Follow spacing rules for Dropdown Menus for spacing guidance for the Complex Filter Input.
|
|
295
501
|
|
|
502
|
+
**Complex Filter_Spacing**
|
|
503
|
+
|
|
504
|
+
---
|
|
505
|
+
|
|
296
506
|
---
|
|
297
507
|
|
|
298
508
|
### Filtering Logic
|
|
299
509
|
|
|
300
510
|
Filtering logic is handled at the product level, however, this section offers some suggestions for best practices to consider when establishing filtering logic.
|
|
301
511
|
|
|
512
|
+
**Between filter categories: use "AND"**
|
|
513
|
+
|
|
514
|
+
---
|
|
515
|
+
|
|
516
|
+
**Within filter categories: use "OR"**
|
|
517
|
+
|
|
518
|
+
---
|
|
519
|
+
|
|
302
520
|
## Code
|
|
303
521
|
|
|
304
522
|
## Filter Components
|
|
@@ -308,6 +526,14 @@ Filtering logic is handled at the product level, however, this section offers so
|
|
|
308
526
|
|
|
309
527
|
### Visual Preview
|
|
310
528
|
|
|
529
|
+
**Preview_Code_Filter_Simple**
|
|
530
|
+
|
|
531
|
+
---
|
|
532
|
+
|
|
533
|
+
**Preview_Code_Filter_Complex**
|
|
534
|
+
|
|
535
|
+
---
|
|
536
|
+
|
|
311
537
|
> **Note:** The code examples below must install dependencies before displaying and may take extra time to load
|
|
312
538
|
|
|
313
539
|
---
|
|
@@ -484,15 +710,14 @@ root.render(
|
|
|
484
710
|
<head>
|
|
485
711
|
<meta charset="UTF-8" />
|
|
486
712
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
487
|
-
<title>Filters</title>
|
|
488
713
|
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
489
714
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
|
490
715
|
<link
|
|
491
|
-
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap"
|
|
716
|
+
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap"
|
|
492
717
|
rel="stylesheet"
|
|
493
718
|
/>
|
|
494
719
|
<link
|
|
495
|
-
href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;600&display=swap"
|
|
720
|
+
href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&display=swap"
|
|
496
721
|
rel="stylesheet"
|
|
497
722
|
/>
|
|
498
723
|
</head>
|
|
@@ -666,15 +891,14 @@ root.render(
|
|
|
666
891
|
<head>
|
|
667
892
|
<meta charset="UTF-8" />
|
|
668
893
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
669
|
-
<title>Filters</title>
|
|
670
894
|
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
671
895
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
|
672
896
|
<link
|
|
673
|
-
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap"
|
|
897
|
+
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap"
|
|
674
898
|
rel="stylesheet"
|
|
675
899
|
/>
|
|
676
900
|
<link
|
|
677
|
-
href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;600&display=swap"
|
|
901
|
+
href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&display=swap"
|
|
678
902
|
rel="stylesheet"
|
|
679
903
|
/>
|
|
680
904
|
</head>
|
|
@@ -849,15 +1073,14 @@ root.render(
|
|
|
849
1073
|
<head>
|
|
850
1074
|
<meta charset="UTF-8" />
|
|
851
1075
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
852
|
-
<title>Filters</title>
|
|
853
1076
|
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
854
1077
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
|
855
1078
|
<link
|
|
856
|
-
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap"
|
|
1079
|
+
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap"
|
|
857
1080
|
rel="stylesheet"
|
|
858
1081
|
/>
|
|
859
1082
|
<link
|
|
860
|
-
href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;600&display=swap"
|
|
1083
|
+
href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&display=swap"
|
|
861
1084
|
rel="stylesheet"
|
|
862
1085
|
/>
|
|
863
1086
|
</head>
|
|
@@ -89,8 +89,6 @@ npm i czifui
|
|
|
89
89
|
yarn add czifui
|
|
90
90
|
```
|
|
91
91
|
|
|
92
|
-
|
|
93
|
-
|
|
94
92
|
SDS currently uses Material UI v5
|
|
95
93
|
|
|
96
94
|
czifui installs without direct dependencies to prevent version errors. Please ensure the following peer dependencies are also installed:
|
|
@@ -482,8 +480,6 @@ export const Tag = styled.div`
|
|
|
482
480
|
`;
|
|
483
481
|
```
|
|
484
482
|
|
|
485
|
-
|
|
486
|
-
|
|
487
483
|
4. **CSS & SCSS Variables** - Variables for the `defaultTheme` to use if your app doesn't support `@emotion/styled`
|
|
488
484
|
|
|
489
485
|
```css
|
|
@@ -549,8 +545,6 @@ import { ThemeProvider as EmotionThemeProvider } from "@emotion/react";
|
|
|
549
545
|
</StylesProvider>;
|
|
550
546
|
```
|
|
551
547
|
|
|
552
|
-
|
|
553
|
-
|
|
554
548
|
3. If you need to override the default SDS theme, please follow the instructions here.
|
|
555
549
|
|
|
556
550
|
---
|
|
@@ -1113,10 +1107,14 @@ To use the default theme in your React application, complete the following:
|
|
|
1113
1107
|
```html
|
|
1114
1108
|
// installs the sds font from google fonts
|
|
1115
1109
|
|
|
1116
|
-
<link rel="preconnect" href="https://fonts.
|
|
1117
|
-
|
|
1110
|
+
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
1111
|
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
|
1118
1112
|
<link
|
|
1119
|
-
href="https://fonts.googleapis.com/css2?family=
|
|
1113
|
+
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap"
|
|
1114
|
+
rel="stylesheet"
|
|
1115
|
+
/>
|
|
1116
|
+
<link
|
|
1117
|
+
href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&display=swap"
|
|
1120
1118
|
rel="stylesheet"
|
|
1121
1119
|
/>
|
|
1122
1120
|
```
|
|
@@ -20,6 +20,18 @@ For example: if the screen is `1200px` wide, the width of the content area would
|
|
|
20
20
|
| Breakpoint: Large | Breakpoint: Medium | Breakpoint: Small |
|
|
21
21
|
| ----------------- | ------------------ | ----------------- |
|
|
22
22
|
|
|
23
|
+
**Preview_Guidelines_Hero_large**
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
**Preview_Guidelines_Hero_medium**
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
**Preview_Guidelines_Hero_small**
|
|
32
|
+
|
|
33
|
+
---
|
|
34
|
+
|
|
23
35
|
#### Background Fill Options
|
|
24
36
|
|
|
25
37
|
The Hero component background can be filled with any CSS color, including gradients, or any type of media such as images, videos, GIFs, etc.
|
|
@@ -27,6 +39,14 @@ The Hero component background can be filled with any CSS color, including gradie
|
|
|
27
39
|
| Color | Media |
|
|
28
40
|
| ----- | ----- |
|
|
29
41
|
|
|
42
|
+
**Hero_background_color**
|
|
43
|
+
|
|
44
|
+
---
|
|
45
|
+
|
|
46
|
+
**Hero_background_image**
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
30
50
|
#### Darkening Mask
|
|
31
51
|
|
|
32
52
|
The darkening mask is an overlay element used to subtly dim the Hero's background, thereby enhancing the visibility and focus on the overlay elements; the mask's opacity can be set by the team implementing it.
|
|
@@ -34,6 +54,14 @@ The darkening mask is an overlay element used to subtly dim the Hero's backgroun
|
|
|
34
54
|
| Disabled | Enabled |
|
|
35
55
|
| -------- | ------- |
|
|
36
56
|
|
|
57
|
+
**Hero_darkening mask_false**
|
|
58
|
+
|
|
59
|
+
---
|
|
60
|
+
|
|
61
|
+
**Hero_darkening mask_true**
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
|
|
37
65
|
#### Darkening Vignette
|
|
38
66
|
|
|
39
67
|
The darkening vignette is an overlay element positioned at the top of Hero that subtly fades from solid to transparent, smoothing the transition from the Header Navigation to the Hero background.
|
|
@@ -41,6 +69,14 @@ The darkening vignette is an overlay element positioned at the top of Hero that
|
|
|
41
69
|
| Disabled | Enabled |
|
|
42
70
|
| -------- | ------- |
|
|
43
71
|
|
|
72
|
+
**Hero_darkening vignette_false**
|
|
73
|
+
|
|
74
|
+
---
|
|
75
|
+
|
|
76
|
+
**Hero_darkening vignette_true**
|
|
77
|
+
|
|
78
|
+
---
|
|
79
|
+
|
|
44
80
|
#### Overlay Content Visibility
|
|
45
81
|
|
|
46
82
|
Overlay content elements (title text, caption text, and content slot) can be used or not depending on teams' needs; the examples below show one element hidden at a time to demonstrate, but any combination of elements can be used.
|
|
@@ -48,6 +84,22 @@ Overlay content elements (title text, caption text, and content slot) can be use
|
|
|
48
84
|
| All elements displayed | Title hidden | Caption hidden | Content slot hidden |
|
|
49
85
|
| ---------------------- | ------------ | -------------- | ------------------- |
|
|
50
86
|
|
|
87
|
+
**Hero_overlay content_options_all visible**
|
|
88
|
+
|
|
89
|
+
---
|
|
90
|
+
|
|
91
|
+
**Hero_overlay content_options_no title**
|
|
92
|
+
|
|
93
|
+
---
|
|
94
|
+
|
|
95
|
+
**Hero_overlay content_options_no caption**
|
|
96
|
+
|
|
97
|
+
---
|
|
98
|
+
|
|
99
|
+
**Hero_overlay content_options_no slot**
|
|
100
|
+
|
|
101
|
+
---
|
|
102
|
+
|
|
51
103
|
#### Text Alignment Options
|
|
52
104
|
|
|
53
105
|
Alignment settings apply to both title and caption text.
|
|
@@ -55,17 +107,65 @@ Alignment settings apply to both title and caption text.
|
|
|
55
107
|
| Left-aligned | Center-aligned | Right-aligned |
|
|
56
108
|
| ------------ | -------------- | ------------- |
|
|
57
109
|
|
|
110
|
+
**Hero_overlay text_alignment_left-aligned**
|
|
111
|
+
|
|
112
|
+
---
|
|
113
|
+
|
|
114
|
+
**Hero_overlay text_alignment_center-aligned**
|
|
115
|
+
|
|
116
|
+
---
|
|
117
|
+
|
|
118
|
+
**Hero_overlay text_alignment_right-aligned**
|
|
119
|
+
|
|
120
|
+
---
|
|
121
|
+
|
|
58
122
|
#### Overlay Content Position
|
|
59
123
|
|
|
60
124
|
| Top-left | Top | Top-right |
|
|
61
125
|
| -------- | --- | --------- |
|
|
62
126
|
|
|
127
|
+
**Hero_overlay content_position_top-left**
|
|
128
|
+
|
|
129
|
+
---
|
|
130
|
+
|
|
131
|
+
**Hero_overlay content_position_top**
|
|
132
|
+
|
|
133
|
+
---
|
|
134
|
+
|
|
135
|
+
**Hero_overlay content_position_top-right**
|
|
136
|
+
|
|
137
|
+
---
|
|
138
|
+
|
|
63
139
|
| Left | Center | Right |
|
|
64
140
|
| ---- | ------ | ----- |
|
|
65
141
|
|
|
142
|
+
**Hero_overlay content_position_left**
|
|
143
|
+
|
|
144
|
+
---
|
|
145
|
+
|
|
146
|
+
**Hero_overlay content_position_center**
|
|
147
|
+
|
|
148
|
+
---
|
|
149
|
+
|
|
150
|
+
**Hero_overlay content_position_right**
|
|
151
|
+
|
|
152
|
+
---
|
|
153
|
+
|
|
66
154
|
| Bottom-left | Bottom | Bottom-right |
|
|
67
155
|
| ----------- | ------ | ------------ |
|
|
68
156
|
|
|
157
|
+
**Hero_overlay content_position_bottom-left**
|
|
158
|
+
|
|
159
|
+
---
|
|
160
|
+
|
|
161
|
+
**Hero_overlay content_position_bottom**
|
|
162
|
+
|
|
163
|
+
---
|
|
164
|
+
|
|
165
|
+
**Hero_overlay content_position_bottom-right**
|
|
166
|
+
|
|
167
|
+
---
|
|
168
|
+
|
|
69
169
|
#### Overlay Media Options
|
|
70
170
|
|
|
71
171
|
In addition to overlay content, media (images, videos, GIFs, etc.) can be optionally overlayed on top of the Hero component's background; it can take whatever size or shape teams need.
|
|
@@ -73,17 +173,69 @@ In addition to overlay content, media (images, videos, GIFs, etc.) can be option
|
|
|
73
173
|
| Overlay media hidden | Overlay media displayed | Larger overlay media | Smaller overlay media |
|
|
74
174
|
| -------------------- | ----------------------- | -------------------- | --------------------- |
|
|
75
175
|
|
|
176
|
+
**Hero_overlay image_false**
|
|
177
|
+
|
|
178
|
+
---
|
|
179
|
+
|
|
180
|
+
**Hero_overlay image_true**
|
|
181
|
+
|
|
182
|
+
---
|
|
183
|
+
|
|
184
|
+
**Hero_overlay image_true_larger**
|
|
185
|
+
|
|
186
|
+
---
|
|
187
|
+
|
|
188
|
+
**Hero_overlay image_true_smaller**
|
|
189
|
+
|
|
190
|
+
---
|
|
191
|
+
|
|
76
192
|
#### Overlay Media Position
|
|
77
193
|
|
|
78
194
|
| Top-left | Top | Top-right |
|
|
79
195
|
| -------- | --- | --------- |
|
|
80
196
|
|
|
197
|
+
**Hero_overlay image_position_top-left**
|
|
198
|
+
|
|
199
|
+
---
|
|
200
|
+
|
|
201
|
+
**Hero_overlay image_position_top**
|
|
202
|
+
|
|
203
|
+
---
|
|
204
|
+
|
|
205
|
+
**Hero_overlay image_position_top-right**
|
|
206
|
+
|
|
207
|
+
---
|
|
208
|
+
|
|
81
209
|
| Left | Center | Right |
|
|
82
210
|
| ---- | ------ | ----- |
|
|
83
211
|
|
|
212
|
+
**Hero_overlay image_position_left**
|
|
213
|
+
|
|
214
|
+
---
|
|
215
|
+
|
|
216
|
+
**Hero_overlay image_position_center**
|
|
217
|
+
|
|
218
|
+
---
|
|
219
|
+
|
|
220
|
+
**Hero_overlay image_position_right**
|
|
221
|
+
|
|
222
|
+
---
|
|
223
|
+
|
|
84
224
|
| Bottom-left | Bottom | Bottom-right |
|
|
85
225
|
| ----------- | ------ | ------------ |
|
|
86
226
|
|
|
227
|
+
**Hero_overlay image_position_bottom-left**
|
|
228
|
+
|
|
229
|
+
---
|
|
230
|
+
|
|
231
|
+
**Hero_overlay image_position_bottom**
|
|
232
|
+
|
|
233
|
+
---
|
|
234
|
+
|
|
235
|
+
**Hero_overlay image_position_bottom-right**
|
|
236
|
+
|
|
237
|
+
---
|
|
238
|
+
|
|
87
239
|
## Code
|
|
88
240
|
|
|
89
241
|
> **Note:** Code details coming soon
|