@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.
Files changed (42) hide show
  1. package/data/component-list.json +1 -0
  2. package/data/component-props/NavigationHeader.json +4 -0
  3. package/data/tailwind.json +25 -25
  4. package/data/zeroheight-cache.json +5065 -1
  5. package/data/zeroheight-exports/Accordion.md +79 -22
  6. package/data/zeroheight-exports/Banner.md +102 -10
  7. package/data/zeroheight-exports/Buttons.md +1010 -1461
  8. package/data/zeroheight-exports/Callout.md +164 -11
  9. package/data/zeroheight-exports/Colors.md +1164 -41
  10. package/data/zeroheight-exports/Content-Card.md +148 -0
  11. package/data/zeroheight-exports/Control-Inputs.md +769 -72
  12. package/data/zeroheight-exports/Corners.md +8 -15
  13. package/data/zeroheight-exports/Dialog.md +190 -14
  14. package/data/zeroheight-exports/Downloads.md +116 -0
  15. package/data/zeroheight-exports/Dropdown-Input.md +612 -16
  16. package/data/zeroheight-exports/Dropdown-Menus.md +935 -0
  17. package/data/zeroheight-exports/Field-Inputs.md +430 -9
  18. package/data/zeroheight-exports/Filters.md +232 -9
  19. package/data/zeroheight-exports/Getting-Started.md +7 -9
  20. package/data/zeroheight-exports/Hero.md +152 -0
  21. package/data/zeroheight-exports/Icons.md +1854 -218
  22. package/data/zeroheight-exports/Intent.md +40 -0
  23. package/data/zeroheight-exports/Link.md +52 -6
  24. package/data/zeroheight-exports/Lists.md +360 -6
  25. package/data/zeroheight-exports/Loading-Indicator.md +6 -2
  26. package/data/zeroheight-exports/Navigation.md +324 -8
  27. package/data/zeroheight-exports/Notification.md +166 -16
  28. package/data/zeroheight-exports/Panel.md +68 -16
  29. package/data/zeroheight-exports/README.md +17 -19
  30. package/data/zeroheight-exports/Responsive-Design.md +52 -0
  31. package/data/zeroheight-exports/Search-Input.md +40 -2
  32. package/data/zeroheight-exports/Search.md +232 -2
  33. package/data/zeroheight-exports/Segmented-Control.md +34 -9
  34. package/data/zeroheight-exports/Table.md +452 -51
  35. package/data/zeroheight-exports/Tabs.md +534 -11
  36. package/data/zeroheight-exports/Tags.md +504 -14
  37. package/data/zeroheight-exports/Text-Link.md +90 -6
  38. package/data/zeroheight-exports/Theming.md +36 -6
  39. package/data/zeroheight-exports/Tooltips.md +453 -18
  40. package/data/zeroheight-exports/Typography.md +64 -32
  41. package/package.json +3 -3
  42. package/data/zeroheight-exports/Dropdown-Menu.md +0 -3883
@@ -11,7 +11,13 @@ Accordions are elements that can be used by designers to hide or reveal content.
11
11
 
12
12
  Click on each state below to enter inspect view and get details on its code attributes and any global styles it uses.
13
13
 
14
+ **Accordion**
14
15
 
16
+ ---
17
+
18
+ ---
19
+
20
+ **Accordion**
15
21
 
16
22
  ---
17
23
 
@@ -21,6 +27,10 @@ Click on each state below to enter inspect view and get details on its code attr
21
27
 
22
28
  These rules establish how much margin should exist between and around elements.
23
29
 
30
+ **Accordion spacing**
31
+
32
+ ---
33
+
24
34
  ## Code
25
35
 
26
36
  ## Accordion Component
@@ -51,8 +61,20 @@ Once expanded, the content revealed within the Accordion can be whatever the des
51
61
 
52
62
  Click on each state below to enter inspect view and get details on its code attributes and any global styles it uses.
53
63
 
64
+ **Accordion**
65
+
66
+ ---
67
+
68
+ ---
69
+
70
+ **Accordion**
71
+
72
+ ---
73
+
54
74
  ---
55
75
 
76
+ **Accordion**
77
+
56
78
  ---
57
79
 
58
80
  ---
@@ -61,6 +83,10 @@ Click on each state below to enter inspect view and get details on its code attr
61
83
 
62
84
  These rules establish how much margin should exist between and around elements.
63
85
 
86
+ **Accordion spacing**
87
+
88
+ ---
89
+
64
90
  ## Code
65
91
 
66
92
  ## Accordion Component
@@ -74,8 +100,6 @@ These rules establish how much margin should exist between and around elements.
74
100
 
75
101
  Storybook
76
102
 
77
-
78
-
79
103
  ---
80
104
 
81
105
  Accordions are expandable/collapsable elements that hide and reveal content to help control the amount of information presented to the user at one time.
@@ -93,6 +117,14 @@ Accordions are elements that can be used to hide or reveal content. Use the head
93
117
 
94
118
  The Accordion indicator arrow may appear to the left or the right of the header. Accordions may show a subtitle below the header text. Accordions may show bottom divider lines to help visually separate them from one another.
95
119
 
120
+ **Preview_Guidelines_Accordion_toggleLeft**
121
+
122
+ ---
123
+
124
+ **Preview_Guidelines_Accordion_toggleRight**
125
+
126
+ ---
127
+
96
128
  ---
97
129
 
98
130
  ### Live Instance
@@ -110,6 +142,22 @@ Left-aligned toggles works well when the Accordion's container is wide, because
110
142
  | Default | Default + Divider | Default + Subtitle | Expanded |
111
143
  | ------- | ----------------- | ------------------ | -------- |
112
144
 
145
+ **toggleLeft_collapsed_no subtitle_no underline**
146
+
147
+ ---
148
+
149
+ **toggleLeft_collapsed_no subtitle_underlined**
150
+
151
+ ---
152
+
153
+ **toggleLeft_collapsed_subtitle_no underline**
154
+
155
+ ---
156
+
157
+ **toggleLeft_expanded_no subtitle_no underline**
158
+
159
+ ---
160
+
113
161
  ---
114
162
 
115
163
  ### Accordion – Right Toggle
@@ -119,12 +167,32 @@ Use when there's a preference for the Accordion toggle to appear to the right of
119
167
  | Default | Default + Divider | Default + Subtitle | Expanded |
120
168
  | ------- | ----------------- | ------------------ | -------- |
121
169
 
170
+ **toggleRight_collapsed_no subtitle_no underline_n**
171
+
172
+ ---
173
+
174
+ **toggleRight_collapsed_no subtitle_underlined_n**
175
+
176
+ ---
177
+
178
+ **toggleRight_collapsed_subtitle_no underline**
179
+
180
+ ---
181
+
182
+ **toggleRight_expanded_no subtitle_no underline**
183
+
184
+ ---
185
+
122
186
  ---
123
187
 
124
188
  ### Accordion Spacing
125
189
 
126
190
  These rules establish how much margin should exist between and around elements.
127
191
 
192
+ **Accordion spacing**
193
+
194
+ ---
195
+
128
196
  ## Code
129
197
 
130
198
  > **Note:** The code examples below must install dependencies before displaying and may take extra time to load
@@ -223,9 +291,7 @@ function App() {
223
291
  return (
224
292
  <div className="app">
225
293
  <Accordion id="accordion-1" useDivider={false} togglePosition="right">
226
- <AccordionHeader id={`accordion-1-header`}>
227
- Accordion Header
228
- </AccordionHeader>
294
+ <AccordionHeader>Accordion Header</AccordionHeader>
229
295
  <AccordionDetails>
230
296
  Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse
231
297
  malesuada lacus ex, sit amet blandit leo lobortis eget.
@@ -285,15 +351,14 @@ root.render(
285
351
  <head>
286
352
  <meta charset="UTF-8" />
287
353
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
288
- <title>Accordion</title>
289
354
  <link rel="preconnect" href="https://fonts.googleapis.com" />
290
355
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
291
356
  <link
292
- href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap"
357
+ href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap"
293
358
  rel="stylesheet"
294
359
  />
295
360
  <link
296
- href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;600&display=swap"
361
+ href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&display=swap"
297
362
  rel="stylesheet"
298
363
  />
299
364
  </head>
@@ -378,10 +443,7 @@ function App() {
378
443
  return (
379
444
  <div className="app">
380
445
  <Accordion id="accordion-1" useDivider={true} togglePosition="right">
381
- <AccordionHeader
382
- id={`accordion-1-header`}
383
- subtitle="Explore the functionalities of our amazing product"
384
- >
446
+ <AccordionHeader subtitle="Explore the functionalities of our amazing product">
385
447
  Product Features
386
448
  </AccordionHeader>
387
449
  <AccordionDetails>
@@ -479,15 +541,14 @@ root.render(
479
541
  <head>
480
542
  <meta charset="UTF-8" />
481
543
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
482
- <title>Accordion</title>
483
544
  <link rel="preconnect" href="https://fonts.googleapis.com" />
484
545
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
485
546
  <link
486
- href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap"
547
+ href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap"
487
548
  rel="stylesheet"
488
549
  />
489
550
  <link
490
- href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;600&display=swap"
551
+ href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&display=swap"
491
552
  rel="stylesheet"
492
553
  />
493
554
  </head>
@@ -572,10 +633,7 @@ function App() {
572
633
  return (
573
634
  <div className="app">
574
635
  <Accordion id="accordion-1" useDivider={true} togglePosition="right">
575
- <AccordionHeader
576
- id={`accordion-1-header`}
577
- subtitle="Explore the functionalities of our amazing product"
578
- >
636
+ <AccordionHeader subtitle="Explore the functionalities of our amazing product">
579
637
  Product Features
580
638
  </AccordionHeader>
581
639
  <AccordionDetails>
@@ -678,15 +736,14 @@ root.render(
678
736
  <head>
679
737
  <meta charset="UTF-8" />
680
738
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
681
- <title>Accordion</title>
682
739
  <link rel="preconnect" href="https://fonts.googleapis.com" />
683
740
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
684
741
  <link
685
- href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap"
742
+ href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap"
686
743
  rel="stylesheet"
687
744
  />
688
745
  <link
689
- href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;600&display=swap"
746
+ href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&display=swap"
690
747
  rel="stylesheet"
691
748
  />
692
749
  </head>
@@ -24,10 +24,20 @@ If additional context or information is needed beyond the space available on the
24
24
 
25
25
  When the information being communicated on the Banner is intended to remain persistent on the screen and is not manually dismissible by the user, use a persistent Banner. To allow the user to manually dismiss the Banner, use a dismissible Banner.
26
26
 
27
+ **Default (Persistent)**
27
28
 
29
+ ---
28
30
 
29
31
  ---
30
32
 
33
+ **Default (Dismissible)**
34
+
35
+ ---
36
+
37
+ ---
38
+
39
+ **Hover (Dismissible)**
40
+
31
41
  ---
32
42
 
33
43
  ### Secondary Banner
@@ -38,8 +48,20 @@ If additional context or information is needed beyond the space available on the
38
48
 
39
49
  When the information being communicated on the Banner is intended to remain persistent on the screen and is not manually dismissible by the user, use a persistent Banner. To allow the user to manually dismiss the Banner, use a dismissible Banner.
40
50
 
51
+ **Default (Persistent)**
52
+
53
+ ---
54
+
41
55
  ---
42
56
 
57
+ **Default (Dismissible)**
58
+
59
+ ---
60
+
61
+ ---
62
+
63
+ **Hover (Dismissible)**
64
+
43
65
  ---
44
66
 
45
67
  ---
@@ -48,6 +70,10 @@ When the information being communicated on the Banner is intended to remain pers
48
70
 
49
71
  These rules establish how much margin should exist between and around elements.
50
72
 
73
+ **Banner spacing**
74
+
75
+ ---
76
+
51
77
  ## Code
52
78
 
53
79
  ## Banner Component
@@ -82,6 +108,14 @@ Both Banner variants can optionally be set to be manually dismissible by the use
82
108
 
83
109
  Banners span the full width of the page.
84
110
 
111
+ **Preview_Guidelines_Banner_Primary**
112
+
113
+ ---
114
+
115
+ **Preview_Guidelines_Banner_Secondary**
116
+
117
+ ---
118
+
85
119
  ---
86
120
 
87
121
  ### Live Instance
@@ -103,6 +137,18 @@ When the information being communicated on the Banner is intended to remain pers
103
137
  | Default (Persistent) | Default (Dismissible) | Hover (Dismissible) |
104
138
  | -------------------- | --------------------- | ------------------- |
105
139
 
140
+ **Banner_Primary_Persistent_Default**
141
+
142
+ ---
143
+
144
+ **Banner_Primary_Dismissible_Default**
145
+
146
+ ---
147
+
148
+ **Banner_Primary_Dismissible_Hover**
149
+
150
+ ---
151
+
106
152
  ---
107
153
 
108
154
  ### Banner – Secondary
@@ -116,12 +162,28 @@ When the information being communicated on the Banner is intended to remain pers
116
162
  | Default (Persistent) | Default (Dismissible) | Hover (Dismissible) |
117
163
  | -------------------- | --------------------- | ------------------- |
118
164
 
165
+ **Banner_Secondary_Persistent_Default**
166
+
167
+ ---
168
+
169
+ **Banner_Secondary_Dismissible_Default**
170
+
171
+ ---
172
+
173
+ **Banner_Secondary_Dismissible_Hover**
174
+
175
+ ---
176
+
119
177
  ---
120
178
 
121
179
  ### Banner Spacing
122
180
 
123
181
  These rules establish how much margin should exist between and around elements.
124
182
 
183
+ **Banner spacing**
184
+
185
+ ---
186
+
125
187
  ---
126
188
 
127
189
  ### Intent Variations
@@ -135,11 +197,43 @@ Each intent is demonstrated below using the Dismissible variant for reference. R
135
197
  | Info | Negative | Notice | Positive |
136
198
  | ---- | -------- | ------ | -------- |
137
199
 
200
+ **Banner_Primary_Intent_Info**
201
+
202
+ ---
203
+
204
+ **Banner_Primary_Intent_Negative**
205
+
206
+ ---
207
+
208
+ **Banner_Primary_Intent_Notice**
209
+
210
+ ---
211
+
212
+ **Banner_Primary_Intent_Positive**
213
+
214
+ ---
215
+
138
216
  #### Secondary
139
217
 
140
218
  | Info | Negative | Notice | Positive |
141
219
  | ---- | -------- | ------ | -------- |
142
220
 
221
+ **Banner_Secondary_Intent_Info**
222
+
223
+ ---
224
+
225
+ **Banner_Secondary_Intent_Negative**
226
+
227
+ ---
228
+
229
+ **Banner_Secondary_Intent_Notice**
230
+
231
+ ---
232
+
233
+ **Banner_Secondary_Intent_Positive**
234
+
235
+ ---
236
+
143
237
  ## Code
144
238
 
145
239
  > **Note:** The code examples below must install dependencies before displaying and may take extra time to load
@@ -155,11 +249,12 @@ The component's source code in the SDS codebase can be found here.
155
249
  Any custom SDS props and MUI props required for implementation are found on the table below. See the MUI documentation for additional optional props.
156
250
 
157
251
  | Name | Type | Default | Description |
158
- | -------------- | -------------------- | ------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- |
252
+ | -------------- | -------------------- | ------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------ | ---------------------------------------- |
159
253
  | `dismissed` | `bool` | `false` | If `true`, the banner has been dismissed by the user. |
160
254
  | `dismissible` | `bool` | `true` | If `true`, the banner can be dismissed by the user. |
161
255
  | `sdsType` | `"primary"` ` | "secondary"` | `primary` | The `primary` variant has a `400` background color and white text color. The `secondary` variant has a `100` background color and `primary` text color. |
162
256
  | `icon` | `ReactNode` | `-` | The icon to be displayed within the banner. If not provided, a`InfoCircle` icon will be displayed. |
257
+ | `intent` | `"info" | "notice" | "negative" | "positive"` | `info` | The intent color of the Banner component |
163
258
  | `sdsIconProps` | `Partial<IconProps>` | `-` | Additional props to be passed to the icon component. |
164
259
  | `onClose` | `fn` | `-` | Callback fired when the component requests to be closed. When provided and no `action` prop is set, a close icon button is displayed that triggers the callback when clicked. **Signature:**`function(event: React.SyntheticEvent) => void` `event`. The event source of the callback. |
165
260
 
@@ -270,15 +365,14 @@ root.render(
270
365
  <head>
271
366
  <meta charset="UTF-8" />
272
367
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
273
- <title>Banner</title>
274
368
  <link rel="preconnect" href="https://fonts.googleapis.com" />
275
369
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
276
370
  <link
277
- href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap"
371
+ href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap"
278
372
  rel="stylesheet"
279
373
  />
280
374
  <link
281
- href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;600&display=swap"
375
+ href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&display=swap"
282
376
  rel="stylesheet"
283
377
  />
284
378
  </head>
@@ -413,15 +507,14 @@ root.render(
413
507
  <head>
414
508
  <meta charset="UTF-8" />
415
509
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
416
- <title>Banner</title>
417
510
  <link rel="preconnect" href="https://fonts.googleapis.com" />
418
511
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
419
512
  <link
420
- href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap"
513
+ href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap"
421
514
  rel="stylesheet"
422
515
  />
423
516
  <link
424
- href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;600&display=swap"
517
+ href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&display=swap"
425
518
  rel="stylesheet"
426
519
  />
427
520
  </head>
@@ -560,15 +653,14 @@ root.render(
560
653
  <head>
561
654
  <meta charset="UTF-8" />
562
655
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
563
- <title>Banner</title>
564
656
  <link rel="preconnect" href="https://fonts.googleapis.com" />
565
657
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
566
658
  <link
567
- href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap"
659
+ href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap"
568
660
  rel="stylesheet"
569
661
  />
570
662
  <link
571
- href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;600&display=swap"
663
+ href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&display=swap"
572
664
  rel="stylesheet"
573
665
  />
574
666
  </head>