@czi-sds/mcp 0.16.0 → 0.17.0

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 (164) hide show
  1. package/README.md +2 -1
  2. package/data/component-docs/Accordion.md +291 -0
  3. package/data/component-docs/Autocomplete.md +525 -0
  4. package/data/component-docs/Banner.md +231 -0
  5. package/data/component-docs/Button.md +224 -0
  6. package/data/component-docs/ButtonDropdown.md +256 -0
  7. package/data/component-docs/ButtonGroup.md +320 -0
  8. package/data/component-docs/ButtonToggle.md +397 -0
  9. package/data/component-docs/Callout.md +268 -0
  10. package/data/component-docs/CellBasic.md +122 -0
  11. package/data/component-docs/CellComponent.md +63 -0
  12. package/data/component-docs/CellHeader.md +128 -0
  13. package/data/component-docs/ComplexFilter.md +294 -0
  14. package/data/component-docs/ContentCard.md +406 -0
  15. package/data/component-docs/Dialog.md +651 -0
  16. package/data/component-docs/Dropdown.md +155 -0
  17. package/data/component-docs/DropdownMenu.md +949 -0
  18. package/data/component-docs/HeatmapChart.md +782 -0
  19. package/data/component-docs/Hero.md +363 -0
  20. package/data/component-docs/Icon.md +283 -0
  21. package/data/component-docs/InputCheckbox.md +205 -0
  22. package/data/component-docs/InputDropdown.md +482 -0
  23. package/data/component-docs/InputRadio.md +173 -0
  24. package/data/component-docs/InputSearch.md +81 -0
  25. package/data/component-docs/InputSlider.md +189 -0
  26. package/data/component-docs/InputText.md +110 -0
  27. package/data/component-docs/InputToggle.md +141 -0
  28. package/data/component-docs/IntentMessage.md +293 -0
  29. package/data/component-docs/Legend.md +442 -0
  30. package/data/component-docs/Link.md +23 -0
  31. package/data/component-docs/List.md +300 -0
  32. package/data/component-docs/LoadingIndicator.md +198 -0
  33. package/data/component-docs/Menu.md +298 -0
  34. package/data/component-docs/MenuItem.md +100 -0
  35. package/data/component-docs/NavigationFooter.md +165 -0
  36. package/data/component-docs/NavigationHeader.md +500 -0
  37. package/data/component-docs/NavigationJumpTo.md +414 -0
  38. package/data/component-docs/Notification.md +288 -0
  39. package/data/component-docs/Pagination.md +67 -0
  40. package/data/component-docs/Panel.md +636 -0
  41. package/data/component-docs/Popover.md +448 -0
  42. package/data/component-docs/PreComposedTable.md +2947 -0
  43. package/data/component-docs/SegmentedControl.md +396 -0
  44. package/data/component-docs/StackedBarChart.md +475 -0
  45. package/data/component-docs/Table.md +2000 -0
  46. package/data/component-docs/TableHeader.md +53 -0
  47. package/data/component-docs/TableRow.md +74 -0
  48. package/data/component-docs/Tabs.md +455 -0
  49. package/data/component-docs/Tag.md +647 -0
  50. package/data/component-docs/TagFilter.md +131 -0
  51. package/data/component-docs/Tooltip.md +561 -0
  52. package/data/component-docs/TooltipCondensed.md +203 -0
  53. package/data/component-docs/TooltipTable.md +145 -0
  54. package/data/component-docs/index.json +262 -0
  55. package/data/component-list.json +2 -5
  56. package/data/component-props/Accordion.json +31 -11
  57. package/data/component-props/Alert.json +3 -3
  58. package/data/component-props/Autocomplete.json +150 -15
  59. package/data/component-props/Banner.json +31 -17
  60. package/data/component-props/Button.json +45 -20
  61. package/data/component-props/ButtonDropdown.json +36 -17
  62. package/data/component-props/ButtonDropdownLegacy.json +11 -11
  63. package/data/component-props/ButtonGroup.json +32 -11
  64. package/data/component-props/ButtonIcon.json +10 -10
  65. package/data/component-props/ButtonLegacy.json +19 -19
  66. package/data/component-props/ButtonToggle.json +32 -19
  67. package/data/component-props/ButtonToggleLegacy.json +11 -11
  68. package/data/component-props/Callout.json +58 -17
  69. package/data/component-props/CellBasic.json +94 -41
  70. package/data/component-props/CellComponent.json +23 -7
  71. package/data/component-props/CellHeader.json +62 -19
  72. package/data/component-props/ComplexFilter.json +52 -21
  73. package/data/component-props/ContentCard.json +70 -47
  74. package/data/component-props/Dialog.json +47 -14
  75. package/data/component-props/Dropdown.json +68 -31
  76. package/data/component-props/DropdownMenu.json +128 -23
  77. package/data/component-props/HeatmapChart.json +88 -12
  78. package/data/component-props/Hero.json +80 -39
  79. package/data/component-props/Icon.json +20 -9
  80. package/data/component-props/InputCheckbox.json +36 -14
  81. package/data/component-props/InputDropdown.json +75 -27
  82. package/data/component-props/InputRadio.json +31 -13
  83. package/data/component-props/InputSearch.json +41 -18
  84. package/data/component-props/InputSlider.json +46 -19
  85. package/data/component-props/InputText.json +26 -19
  86. package/data/component-props/InputToggle.json +26 -9
  87. package/data/component-props/IntentMessage.json +38 -9
  88. package/data/component-props/Link.json +13 -7
  89. package/data/component-props/LoadingIndicator.json +11 -3
  90. package/data/component-props/MenuItem.json +38 -19
  91. package/data/component-props/MenuSelect.json +8 -8
  92. package/data/component-props/NavigationFooter.json +49 -19
  93. package/data/component-props/NavigationHeader.json +150 -37
  94. package/data/component-props/NavigationJumpTo.json +33 -7
  95. package/data/component-props/Notification.json +39 -21
  96. package/data/component-props/Pagination.json +39 -11
  97. package/data/component-props/Panel.json +62 -9
  98. package/data/component-props/Popover.json +80 -7
  99. package/data/component-props/PreComposedTable.json +99 -27
  100. package/data/component-props/SegmentedControl.json +42 -3
  101. package/data/component-props/StackedBarChart.json +116 -42
  102. package/data/component-props/TableRow.json +38 -19
  103. package/data/component-props/Tabs.json +66 -9
  104. package/data/component-props/Tag.json +34 -17
  105. package/data/component-props/TagFilter.json +10 -3
  106. package/data/component-props/Tooltip.json +49 -18
  107. package/data/component-props/TooltipCondensed.json +18 -9
  108. package/data/component-props/TooltipTable.json +17 -7
  109. package/data/resources/{zeroheight-rules.md → documentation-rules.md} +43 -30
  110. package/data/resources/figma-rules.md +2 -2
  111. package/dist/stdio.js +112 -208
  112. package/package.json +9 -5
  113. package/data/component-props/ButtonDropdownV2.json +0 -34
  114. package/data/component-props/ButtonNew.json +0 -47
  115. package/data/component-props/ButtonToggleV2.json +0 -44
  116. package/data/component-props/ButtonV2.json +0 -43
  117. package/data/zeroheight-cache.json +0 -10259
  118. package/data/zeroheight-exports/Accordion.md +0 -774
  119. package/data/zeroheight-exports/Banner.md +0 -691
  120. package/data/zeroheight-exports/Borders.md +0 -117
  121. package/data/zeroheight-exports/Buttons.md +0 -1854
  122. package/data/zeroheight-exports/Callout.md +0 -931
  123. package/data/zeroheight-exports/Colors.md +0 -1755
  124. package/data/zeroheight-exports/Content-Card.md +0 -309
  125. package/data/zeroheight-exports/Contributing-to-SDS.md +0 -98
  126. package/data/zeroheight-exports/Control-Inputs.md +0 -2818
  127. package/data/zeroheight-exports/Corners.md +0 -104
  128. package/data/zeroheight-exports/Cover-page.md +0 -3
  129. package/data/zeroheight-exports/Dialog.md +0 -1367
  130. package/data/zeroheight-exports/Downloads.md +0 -236
  131. package/data/zeroheight-exports/Drop-Shadows.md +0 -79
  132. package/data/zeroheight-exports/Dropdown-Input.md +0 -1776
  133. package/data/zeroheight-exports/Dropdown-Menus.md +0 -913
  134. package/data/zeroheight-exports/Element-Status-Tracker.md +0 -267
  135. package/data/zeroheight-exports/Field-Inputs.md +0 -1405
  136. package/data/zeroheight-exports/Filters.md +0 -1111
  137. package/data/zeroheight-exports/Getting-Started.md +0 -1157
  138. package/data/zeroheight-exports/Hero.md +0 -414
  139. package/data/zeroheight-exports/Icons.md +0 -2067
  140. package/data/zeroheight-exports/Intent.md +0 -86
  141. package/data/zeroheight-exports/Introduction-to-Bases.md +0 -35
  142. package/data/zeroheight-exports/Introduction-to-Cells.md +0 -35
  143. package/data/zeroheight-exports/Introduction-to-DNA.md +0 -35
  144. package/data/zeroheight-exports/Introduction-to-Genes.md +0 -35
  145. package/data/zeroheight-exports/Introduction.md +0 -115
  146. package/data/zeroheight-exports/Link.md +0 -432
  147. package/data/zeroheight-exports/Lists.md +0 -986
  148. package/data/zeroheight-exports/Loading-Indicator.md +0 -41
  149. package/data/zeroheight-exports/Navigation.md +0 -1190
  150. package/data/zeroheight-exports/Notification.md +0 -1038
  151. package/data/zeroheight-exports/Panel.md +0 -1030
  152. package/data/zeroheight-exports/README.md +0 -122
  153. package/data/zeroheight-exports/Responsive-Design.md +0 -330
  154. package/data/zeroheight-exports/Search-Input.md +0 -91
  155. package/data/zeroheight-exports/Search.md +0 -822
  156. package/data/zeroheight-exports/Segmented-Control.md +0 -609
  157. package/data/zeroheight-exports/Spacing.md +0 -297
  158. package/data/zeroheight-exports/Table.md +0 -5345
  159. package/data/zeroheight-exports/Tabs.md +0 -1324
  160. package/data/zeroheight-exports/Tags.md +0 -1545
  161. package/data/zeroheight-exports/Text-Link.md +0 -268
  162. package/data/zeroheight-exports/Theming.md +0 -362
  163. package/data/zeroheight-exports/Tooltips.md +0 -2015
  164. package/data/zeroheight-exports/Typography.md +0 -800
@@ -1,986 +0,0 @@
1
- # Lists
2
-
3
- Utilizing a list to present information makes it easier to digest or act upon when compared to showing that same content in a solid block of text.
4
-
5
- ## Overview
6
-
7
- ## List Variants
8
-
9
- | There are two types of Lists—Unordered Lists where the order of content does not matter and Ordered Lists which communicate a specific sequence for the content. Use a Header with either list type to help provide context to the content presented in the list. Follow the usage criteria accompanying each variant as a guide for selecting the correct List for any given use case. | | **Jump to variant:** Unordered Ordered |
10
- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --- | -------------------------------------- |
11
-
12
- ---
13
-
14
- ## Lists
15
-
16
- | | In Figma | | | Meets Accessibility | | | In napari hub + .org Codebases |
17
- | --- | -------- | --- | --- | ------------------- | --- | --- | ------------------------------ |
18
-
19
- ### Unordered List
20
-
21
- Use when the order of the list's content does not matter.
22
-
23
- | **bodyM** | **bodyS** | **bodyXs** | **bodyXxs** |
24
- | --------- | --------- | ---------- | ----------- |
25
-
26
- **List**
27
-
28
- ---
29
-
30
- **List**
31
-
32
- ---
33
-
34
- **List**
35
-
36
- ---
37
-
38
- **List**
39
-
40
- ---
41
-
42
- ### Ordered List
43
-
44
- Use when the list's content needs to be presented in a specific order or sequence.
45
-
46
- | **bodyM** | **bodyS** | **bodyXs** | **bodyXxs** |
47
- | --------- | --------- | ---------- | ----------- |
48
-
49
- **List**
50
-
51
- ---
52
-
53
- **List**
54
-
55
- ---
56
-
57
- **List**
58
-
59
- ---
60
-
61
- **List**
62
-
63
- ---
64
-
65
- ---
66
-
67
- ### List Spacing
68
-
69
- Spacing between List Items changes based on the font mixin size used. See the table below for spacing reference.
70
-
71
- | **bodyM** | **bodyS** | **bodyXs** | **bodyXxs** |
72
- | --------- | --------- | ---------- | ----------- |
73
-
74
- **UL_bodyM**
75
-
76
- ---
77
-
78
- **UL_bodyS**
79
-
80
- ---
81
-
82
- **UL_bodyXs**
83
-
84
- ---
85
-
86
- **UL_bodyXxs**
87
-
88
- ---
89
-
90
- ---
91
-
92
- **OL_bodyM**
93
-
94
- ---
95
-
96
- **OL_bodyS**
97
-
98
- ---
99
-
100
- **OL_bodyXs**
101
-
102
- ---
103
-
104
- **OL_bodyXxs**
105
-
106
- ---
107
-
108
- ## Code
109
-
110
- ## List Component
111
-
112
- | Below you will find an interactive Storybook iframe for Lists. Tabs within each iframe provide a different set of tools: The Controls tab allows you to see and adjust all available props. The Actions tab shows you data displayed by event handler arguments. | | **Jump to component:** List |
113
- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --- | --------------------------- |
114
-
115
- ---
116
-
117
- > This component appears as it is in the default SDS codebase. Once imported into the napari hub or napari.org codebases, use a theme file to enable the napari visual appearance customization.
118
-
119
- ### List
120
-
121
- Storybook
122
-
123
- ---
124
-
125
- Utilizing a list to present information makes it easier to digest or act upon when compared to showing that same content in a solid block of text.
126
-
127
- ## Overview
128
-
129
- ## List Variants
130
-
131
- | There are two types of Lists—Unordered Lists where the order of content does not matter and Ordered Lists which communicate a specific sequence for the content. Use a Header with either list type to help provide context to the content presented in the list. Follow the usage criteria accompanying each variant as a guide for selecting the correct List for any given use case. | | **Jump to variant:** Unordered Ordered |
132
- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --- | -------------------------------------- |
133
-
134
- ---
135
-
136
- ## Lists
137
-
138
- | | In Figma | | | Meets Accessibility | | | In CZ GEN EPI Codebase |
139
- | --- | -------- | --- | --- | ------------------- | --- | --- | ---------------------- |
140
-
141
- ### Unordered List
142
-
143
- Use when the order of the list's content does not matter.
144
-
145
- | **fontBodyL** | **fontBodyM** | **fontBodyS** | **fontBodyXs** | **fontBodyXxs** | **fontBodyXxxs** |
146
- | ------------- | ------------- | ------------- | -------------- | --------------- | ---------------- |
147
-
148
- **List**
149
-
150
- ---
151
-
152
- **List**
153
-
154
- ---
155
-
156
- **List**
157
-
158
- ---
159
-
160
- **List**
161
-
162
- ---
163
-
164
- **List**
165
-
166
- ---
167
-
168
- **List**
169
-
170
- ---
171
-
172
- ### Ordered List
173
-
174
- Use when the list's content needs to be presented in a specific order or sequence.
175
-
176
- | **fontBodyL** | **fontBodyM** | **fontBodyS** | **fontBodyXs** | **fontBodyXxs** | **fontBodyXxxs** |
177
- | ------------- | ------------- | ------------- | -------------- | --------------- | ---------------- |
178
-
179
- **List**
180
-
181
- ---
182
-
183
- **List**
184
-
185
- ---
186
-
187
- **List**
188
-
189
- ---
190
-
191
- **List**
192
-
193
- ---
194
-
195
- **List**
196
-
197
- ---
198
-
199
- **List**
200
-
201
- ---
202
-
203
- ---
204
-
205
- ### List Spacing
206
-
207
- Spacing between List Items changes based on the font mixin size used. See the table below for spacing reference.
208
-
209
- | **fontBodyL** | **fontBodyM** | **fontBodyS** | **fontBodyXs** | **fontBodyXxs** | **fontBodyXxxs** |
210
- | ------------- | ------------- | ------------- | -------------- | --------------- | ---------------- |
211
-
212
- **UL_fontL**
213
-
214
- ---
215
-
216
- **UL_fontM**
217
-
218
- ---
219
-
220
- **UL_fontS**
221
-
222
- ---
223
-
224
- **UL_fontXs**
225
-
226
- ---
227
-
228
- **UL_fontXxs**
229
-
230
- ---
231
-
232
- **UL_fontXxxs**
233
-
234
- ---
235
-
236
- ---
237
-
238
- **OL_fontL**
239
-
240
- ---
241
-
242
- **OL_fontM**
243
-
244
- ---
245
-
246
- **OL_fontS**
247
-
248
- ---
249
-
250
- **OL_fontXs**
251
-
252
- ---
253
-
254
- **OL_fontXxs**
255
-
256
- ---
257
-
258
- **OL_fontXxxs**
259
-
260
- ---
261
-
262
- ## Code
263
-
264
- ## List Component
265
-
266
- | Below you will find an interactive Storybook iframe for Lists. Tabs within each iframe provide a different set of tools: The Controls tab allows you to see and adjust all available props. The Actions tab shows you data displayed by event handler arguments. | | **Jump to component:** List |
267
- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --- | --------------------------- |
268
-
269
- ---
270
-
271
- > This component appears as it is in the default SDS codebase. Once imported into the CZ GEN EPI codebase, use a theme file to enable the CZ GEN EPI visual appearance customization.
272
-
273
- ### List
274
-
275
- Storybook
276
-
277
- ---
278
-
279
- Utilizing a list to present information makes it easier to digest or act upon when compared to showing that same content in a solid block of text.
280
-
281
- ## Overview
282
-
283
- ## List Variants
284
-
285
- | There are two types of Lists—Unordered Lists where the order of content does not matter and Ordered Lists which communicate a specific sequence for the content. Use a Header with either list type to help provide context to the content presented in the list. Follow the usage criteria accompanying each variant as a guide for selecting the correct List for any given use case. | | **Jump to variant:** Unordered Ordered |
286
- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --- | -------------------------------------- |
287
-
288
- ---
289
-
290
- ## Lists
291
-
292
- | | In Figma | | | Meets Accessibility | | | In CZ ID Codebase |
293
- | --- | -------- | --- | --- | ------------------- | --- | --- | ----------------- |
294
-
295
- ### Unordered List
296
-
297
- Use when the order of the list's content does not matter.
298
-
299
- | **fontBodyL** | **fontBodyM** | **fontBodyS** | **fontBodyXs** | **fontBodyXxs** | **fontBodyXxxs** |
300
- | ------------- | ------------- | ------------- | -------------- | --------------- | ---------------- |
301
-
302
- **List**
303
-
304
- ---
305
-
306
- **List**
307
-
308
- ---
309
-
310
- **List**
311
-
312
- ---
313
-
314
- **List**
315
-
316
- ---
317
-
318
- **List**
319
-
320
- ---
321
-
322
- **List**
323
-
324
- ---
325
-
326
- ### Ordered List
327
-
328
- Use when the list's content needs to be presented in a specific order or sequence.
329
-
330
- | **fontBodyL** | **fontBodyM** | **fontBodyS** | **fontBodyXs** | **fontBodyXxs** | **fontBodyXxxs** |
331
- | ------------- | ------------- | ------------- | -------------- | --------------- | ---------------- |
332
-
333
- **List**
334
-
335
- ---
336
-
337
- **List**
338
-
339
- ---
340
-
341
- **List**
342
-
343
- ---
344
-
345
- **List**
346
-
347
- ---
348
-
349
- **List**
350
-
351
- ---
352
-
353
- **List**
354
-
355
- ---
356
-
357
- ---
358
-
359
- ### List Spacing
360
-
361
- Spacing between List Items changes based on the font mixin size used. See the table below for spacing reference.
362
-
363
- | **fontBodyL** | **fontBodyM** | **fontBodyS** | **fontBodyXs** | **fontBodyXxs** | **fontBodyXxxs** |
364
- | ------------- | ------------- | ------------- | -------------- | --------------- | ---------------- |
365
-
366
- **UL_fontL**
367
-
368
- ---
369
-
370
- **UL_fontM**
371
-
372
- ---
373
-
374
- **UL_fontS**
375
-
376
- ---
377
-
378
- **UL_fontXs**
379
-
380
- ---
381
-
382
- **UL_fontXxs**
383
-
384
- ---
385
-
386
- **UL_fontXxxs**
387
-
388
- ---
389
-
390
- ---
391
-
392
- **OL_fontL**
393
-
394
- ---
395
-
396
- **OL_fontM**
397
-
398
- ---
399
-
400
- **OL_fontS**
401
-
402
- ---
403
-
404
- **OL_fontXs**
405
-
406
- ---
407
-
408
- **OL_fontXxs**
409
-
410
- ---
411
-
412
- **OL_fontXxxs**
413
-
414
- ---
415
-
416
- ## Code
417
-
418
- ## List Component
419
-
420
- | Below you will find an interactive Storybook iframe for Lists. Tabs within each iframe provide a different set of tools: The Controls tab allows you to see and adjust all available props. The Actions tab shows you data displayed by event handler arguments. | | **Jump to component:** List |
421
- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --- | --------------------------- |
422
-
423
- ---
424
-
425
- ### List
426
-
427
- Storybook
428
-
429
- ---
430
-
431
- Utilizing a list to present information makes it easier to digest or act upon when compared to showing that same content in a solid block of text.
432
-
433
- ## Guidelines
434
-
435
- ## Overview
436
-
437
- | | In Figma | | | Meets Accessibility | | | In Code |
438
- | --- | -------- | --- | --- | ------------------- | --- | --- | ------- |
439
-
440
- ### List Variants
441
-
442
- There are two types of Lists—Unordered where the order of content does not matter and Ordered which communicate a specific sequence for the content. Use a header with either list type to help provide context to the content presented in the list.
443
-
444
- **Preview_List_Ordered**
445
-
446
- ---
447
-
448
- **Preview_List_Unordered**
449
-
450
- ---
451
-
452
- ---
453
-
454
- ### Live Instance
455
-
456
- Interact with the live instance below and adjust the available props to better conceptualize how it will appear in product:
457
-
458
- Default
459
-
460
- ---
461
-
462
- ### List – Ordered
463
-
464
- Use when the list's content needs to be presented in a specific order or sequence.
465
-
466
- | fontBodyL | fontBodyM | fontBodyS | fontBodyXs | fontBodyXxs | fontBodyXxxs |
467
- | --------- | --------- | --------- | ---------- | ----------- | ------------ |
468
-
469
- **List_Ordered_L**
470
-
471
- ---
472
-
473
- **List_Ordered_M**
474
-
475
- ---
476
-
477
- **List_Ordered_S**
478
-
479
- ---
480
-
481
- **List_Ordered_Xs**
482
-
483
- ---
484
-
485
- **List_Ordered_Xxs**
486
-
487
- ---
488
-
489
- **List_Ordered_Xxxs**
490
-
491
- ---
492
-
493
- ---
494
-
495
- ### List – Unordered
496
-
497
- Use when the order of the list's content does not matter.
498
-
499
- | fontBodyL | fontBodyM | fontBodyS | fontBodyXs | fontBodyXxs | fontBodyXxxs |
500
- | --------- | --------- | --------- | ---------- | ----------- | ------------ |
501
-
502
- **List_Unordered_L**
503
-
504
- ---
505
-
506
- **List_Unordered_M**
507
-
508
- ---
509
-
510
- **List_Unordered_S**
511
-
512
- ---
513
-
514
- **List_Unordered_Xs**
515
-
516
- ---
517
-
518
- **List_Unordered_Xxs**
519
-
520
- ---
521
-
522
- **List_Unordered_Xxxs**
523
-
524
- ---
525
-
526
- ---
527
-
528
- ### List Spacing
529
-
530
- Spacing between List Items changes based on the font size used. See the table below for spacing reference.
531
-
532
- | fontBodyL | fontBodyM | fontBodyS | fontBodyXs | fontBodyXxs | fontBodyXxxs |
533
- | --------- | --------- | --------- | ---------- | ----------- | ------------ |
534
-
535
- **UL_fontL**
536
-
537
- ---
538
-
539
- **UL_fontM**
540
-
541
- ---
542
-
543
- **UL_fontS**
544
-
545
- ---
546
-
547
- **UL_fontXs**
548
-
549
- ---
550
-
551
- **UL_fontXxs**
552
-
553
- ---
554
-
555
- **UL_fontXxxs**
556
-
557
- ---
558
-
559
- **OL_fontL**
560
-
561
- ---
562
-
563
- **OL_fontM**
564
-
565
- ---
566
-
567
- **OL_fontS**
568
-
569
- ---
570
-
571
- **OL_fontXs**
572
-
573
- ---
574
-
575
- **OL_fontXxs**
576
-
577
- ---
578
-
579
- **OL_fontXxxs**
580
-
581
- ---
582
-
583
- ## Code
584
-
585
- > **Note:** The code examples below must install dependencies before displaying and may take extra time to load
586
-
587
- ## List
588
-
589
- ### SDS Source Code
590
-
591
- The component's source code in the SDS codebase can be found here.
592
-
593
- ### Props
594
-
595
- Any custom SDS props and MUI props required for implementation are found on the table below. See the MUI documentation for additional optional props.
596
-
597
- | Name | Type | Default | Description |
598
- | -------------- | ---------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------ | ------ | ---- | ----- | -------------------------------------------------------------------------------------------- |
599
- | `marginBottom` | `"xxxs"` ` | "xxs"` ` | "xs"` ` | "s"` ` | "m"` ` | "l"` | `"s"` | Determines the bottom margin size for the list, controlling its spacing from other elements. |
600
- | `ordered` | `boolean` | `false` | Specifies the type of list component to render. When set to `true`, the list will be an ordered `"ol"` tag, while `false` will render an unordered `"ul"` tag. |
601
-
602
- ## ListItem
603
-
604
- ### SDS Source Code
605
-
606
- The component's source code in the SDS codebase can be found here.
607
-
608
- ### Props
609
-
610
- Any custom SDS props and MUI props required for implementation are found on the table below. See the MUI documentation for additional optional props.
611
-
612
- | Name | Type | Default | Description |
613
- | -------------- | ---------- | -------- | ---------------------------------------------------------------------------------------------- | ------ | --------------------------------------------------------------------------------------------- | ---- | ----- | ------------------------------------------------------------------- |
614
- | `fontSize` | `"xxxs"` ` | "xxs"` ` | "xs"` ` | "s"` ` | "m"` ` | "l"` | `"s"` | Sets the font size for the list items, influencing their text size. |
615
- | `marginBottom` | `"s"` ` | "xs"` ` | "xxs"` | `"xs"` | Controls the bottom margin size for the list items, affecting the spacing between list items. |
616
- | `ordered` | `boolean` | `false` | Specifies the style and spacings of the list item components based on the parent list element. |
617
-
618
- ### Code examples
619
-
620
- #### Unordered list
621
-
622
- This example shows an unordered `List` of items.
623
-
624
- **/styles.css**
625
-
626
- ```css
627
- body {
628
- font-size: 13px;
629
- font-weight: 400;
630
- letter-spacing: 0.08px;
631
- line-height: 20px;
632
- text-transform: none;
633
- font-family: "Inter", sans-serif;
634
- }
635
-
636
- h1 {
637
- font-size: 1.5rem;
638
- }
639
-
640
- .app {
641
- padding: 20px;
642
- }
643
- ```
644
-
645
- **tsconfig.json**
646
-
647
- ```json
648
- {
649
- "include": ["./**/*"],
650
- "compilerOptions": {
651
- "strict": true,
652
- "esModuleInterop": true,
653
- "lib": ["dom", "es2015"],
654
- "jsx": "react-jsx"
655
- }
656
- }
657
- ```
658
-
659
- **/App.tsx**
660
-
661
- ```tsx
662
- import { List, ListItem } from "@czi-sds/components";
663
- import "./styles.css";
664
-
665
- function App() {
666
- return (
667
- <div className="app">
668
- <List>
669
- <ListItem fontSize="l" marginBottom="s">
670
- fontSize=l marginBottom=s
671
- </ListItem>
672
- <ListItem fontSize="m" marginBottom="s">
673
- fontSize=m marginBottom=s
674
- </ListItem>
675
- <ListItem fontSize="s" marginBottom="xs">
676
- fontSize=s marginBottom=xs
677
- </ListItem>
678
- <ListItem fontSize="xs" marginBottom="xs">
679
- fontSize=xs marginBottom=xs
680
- </ListItem>
681
- <ListItem fontSize="xxs" marginBottom="xs">
682
- fontSize=xxs marginBottom=xs
683
- </ListItem>
684
- <ListItem fontSize="xxxs" marginBottom="xxs">
685
- fontSize=xxxs marginBottom=xxs
686
- </ListItem>
687
- </List>
688
- </div>
689
- );
690
- }
691
-
692
- export default App;
693
- ```
694
-
695
- **/index.tsx**
696
-
697
- ```tsx
698
- import React from "react";
699
- import { createRoot } from "react-dom/client";
700
- import { ThemeProvider as EmotionThemeProvider } from "@emotion/react";
701
- import { StyledEngineProvider, ThemeProvider } from "@mui/material/styles";
702
- import { Theme } from "@czi-sds/components";
703
- import CssBaseline from "@mui/material/CssBaseline";
704
- import useMediaQuery from "@mui/material/useMediaQuery";
705
-
706
- import App from "./App";
707
-
708
- const container = document.getElementById("root");
709
- const root = createRoot(container!);
710
-
711
- const RootApp = () => {
712
- const prefersDarkMode = useMediaQuery("(prefers-color-scheme: dark)");
713
- const theme = prefersDarkMode ? Theme("dark") : Theme("light");
714
-
715
- return (
716
- <StyledEngineProvider injectFirst>
717
- <ThemeProvider theme={theme}>
718
- <EmotionThemeProvider theme={theme}>
719
- <CssBaseline />
720
- <App />
721
- </EmotionThemeProvider>
722
- </ThemeProvider>
723
- </StyledEngineProvider>
724
- );
725
- };
726
-
727
- root.render(
728
- <React.StrictMode>
729
- <RootApp />
730
- </React.StrictMode>
731
- );
732
- ```
733
-
734
- **/public/index.html**
735
-
736
- ```html
737
- <!doctype html>
738
- <html lang="en">
739
- <head>
740
- <meta charset="UTF-8" />
741
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
742
- <link rel="preconnect" href="https://fonts.googleapis.com" />
743
- <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
744
- <link
745
- href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap"
746
- rel="stylesheet"
747
- />
748
- <link
749
- href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&display=swap"
750
- rel="stylesheet"
751
- />
752
- </head>
753
- <body>
754
- <div id="root"></div>
755
- </body>
756
- </html>
757
- ```
758
-
759
- **/package.json**
760
-
761
- ```json
762
- {
763
- "dependencies": {
764
- "react": "^18.0.0",
765
- "react-dom": "^18.0.0",
766
- "react-scripts": "^4.0.0"
767
- },
768
- "devDependencies": {
769
- "@types/react": "^18.0.0",
770
- "@types/react-dom": "^18.0.0",
771
- "typescript": "^4.0.0"
772
- },
773
- "main": "/index.tsx"
774
- }
775
- ```
776
-
777
- ---
778
-
779
- #### Ordered List
780
-
781
- This example shows an ordered `List` of items with nested items.
782
-
783
- **/styles.css**
784
-
785
- ```css
786
- body {
787
- font-size: 13px;
788
- font-weight: 400;
789
- letter-spacing: 0.08px;
790
- line-height: 20px;
791
- text-transform: none;
792
- font-family: "Inter", sans-serif;
793
- }
794
-
795
- h1 {
796
- font-size: 1.5rem;
797
- }
798
-
799
- .app {
800
- padding: 20px;
801
- }
802
- ```
803
-
804
- **tsconfig.json**
805
-
806
- ```json
807
- {
808
- "include": ["./**/*"],
809
- "compilerOptions": {
810
- "strict": true,
811
- "esModuleInterop": true,
812
- "lib": ["dom", "es2015"],
813
- "jsx": "react-jsx"
814
- }
815
- }
816
- ```
817
-
818
- **/App.tsx**
819
-
820
- ```tsx
821
- import { List, ListItem, ListSubheader } from "@czi-sds/components";
822
- import "./styles.css";
823
-
824
- function App() {
825
- return (
826
- <div className="app">
827
- <List
828
- ordered
829
- subheader={
830
- <ListSubheader disableSticky>
831
- Font sizes and spacing for a nested ordered list
832
- </ListSubheader>
833
- }
834
- >
835
- <ListItem ordered>
836
- <span>
837
- Nested List 1
838
- <List ordered>
839
- <ListItem ordered fontSize="l" marginBottom="s">
840
- fontSize=l marginBottom=s
841
- </ListItem>
842
- <ListItem ordered fontSize="m" marginBottom="s">
843
- fontSize=m marginBottom=s
844
- </ListItem>
845
- <ListItem ordered fontSize="s" marginBottom="xs">
846
- fontSize=s marginBottom=xs
847
- </ListItem>
848
- </List>
849
- </span>
850
- </ListItem>
851
- <ListItem ordered>
852
- <span>
853
- Nested List 2
854
- <List ordered>
855
- <ListItem ordered fontSize="l">
856
- <span>
857
- Nested List 2
858
- <List ordered>
859
- <ListItem ordered fontSize="l" marginBottom="s">
860
- fontSize=l marginBottom=s
861
- </ListItem>
862
- <ListItem ordered fontSize="m" marginBottom="s">
863
- fontSize=m marginBottom=s
864
- </ListItem>
865
- <ListItem ordered fontSize="s" marginBottom="xs">
866
- fontSize=s marginBottom=xs
867
- </ListItem>
868
- </List>
869
- </span>
870
- </ListItem>
871
- <ListItem ordered fontSize="m" marginBottom="s">
872
- fontSize=m marginBottom=s
873
- </ListItem>
874
- <ListItem ordered fontSize="s" marginBottom="xs">
875
- fontSize=s marginBottom=xs
876
- </ListItem>
877
- </List>
878
- </span>
879
- </ListItem>
880
- <ListItem ordered>
881
- <span>
882
- Nested List 3
883
- <List ordered>
884
- <ListItem ordered fontSize="l" marginBottom="s">
885
- fontSize=l marginBottom=s
886
- </ListItem>
887
- <ListItem ordered fontSize="m" marginBottom="s">
888
- fontSize=m marginBottom=s
889
- </ListItem>
890
- <ListItem ordered fontSize="s" marginBottom="xs">
891
- fontSize=s marginBottom=xs
892
- </ListItem>
893
- </List>
894
- </span>
895
- </ListItem>
896
- </List>
897
- </div>
898
- );
899
- }
900
-
901
- export default App;
902
- ```
903
-
904
- **/index.tsx**
905
-
906
- ```tsx
907
- import React from "react";
908
- import { createRoot } from "react-dom/client";
909
- import { ThemeProvider as EmotionThemeProvider } from "@emotion/react";
910
- import { StyledEngineProvider, ThemeProvider } from "@mui/material/styles";
911
- import { Theme } from "@czi-sds/components";
912
- import CssBaseline from "@mui/material/CssBaseline";
913
- import useMediaQuery from "@mui/material/useMediaQuery";
914
-
915
- import App from "./App";
916
-
917
- const container = document.getElementById("root");
918
- const root = createRoot(container!);
919
-
920
- const RootApp = () => {
921
- const prefersDarkMode = useMediaQuery("(prefers-color-scheme: dark)");
922
- const theme = prefersDarkMode ? Theme("dark") : Theme("light");
923
-
924
- return (
925
- <StyledEngineProvider injectFirst>
926
- <ThemeProvider theme={theme}>
927
- <EmotionThemeProvider theme={theme}>
928
- <CssBaseline />
929
- <App />
930
- </EmotionThemeProvider>
931
- </ThemeProvider>
932
- </StyledEngineProvider>
933
- );
934
- };
935
-
936
- root.render(
937
- <React.StrictMode>
938
- <RootApp />
939
- </React.StrictMode>
940
- );
941
- ```
942
-
943
- **/public/index.html**
944
-
945
- ```html
946
- <!doctype html>
947
- <html lang="en">
948
- <head>
949
- <meta charset="UTF-8" />
950
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
951
- <link rel="preconnect" href="https://fonts.googleapis.com" />
952
- <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
953
- <link
954
- href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap"
955
- rel="stylesheet"
956
- />
957
- <link
958
- href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&display=swap"
959
- rel="stylesheet"
960
- />
961
- </head>
962
- <body>
963
- <div id="root"></div>
964
- </body>
965
- </html>
966
- ```
967
-
968
- **/package.json**
969
-
970
- ```json
971
- {
972
- "dependencies": {
973
- "react": "^18.0.0",
974
- "react-dom": "^18.0.0",
975
- "react-scripts": "^4.0.0"
976
- },
977
- "devDependencies": {
978
- "@types/react": "^18.0.0",
979
- "@types/react-dom": "^18.0.0",
980
- "typescript": "^4.0.0"
981
- },
982
- "main": "/index.tsx"
983
- }
984
- ```
985
-
986
- ---