@czi-sds/mcp 0.3.0 → 0.5.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 (150) hide show
  1. package/data/component-props/Accordion.json +14 -15
  2. package/data/component-props/Alert.json +2 -44
  3. package/data/component-props/Autocomplete.json +14 -32
  4. package/data/component-props/Banner.json +11 -12
  5. package/data/component-props/Button.json +17 -82
  6. package/data/component-props/ButtonDropdown.json +26 -0
  7. package/data/component-props/ButtonIcon.json +4 -60
  8. package/data/component-props/ButtonToggle.json +2 -66
  9. package/data/component-props/Callout.json +11 -65
  10. package/data/component-props/CellBasic.json +28 -56
  11. package/data/component-props/CellComponent.json +4 -32
  12. package/data/component-props/CellHeader.json +13 -49
  13. package/data/component-props/ComplexFilter.json +24 -4
  14. package/data/component-props/ContentCard.json +66 -2
  15. package/data/component-props/Dialog.json +26 -0
  16. package/data/component-props/Dropdown.json +29 -67
  17. package/data/component-props/DropdownMenu.json +16 -56
  18. package/data/component-props/HeatmapChart.json +6 -87
  19. package/data/component-props/Icon.json +3 -8
  20. package/data/component-props/InputCheckbox.json +5 -53
  21. package/data/component-props/InputDropdown.json +11 -33
  22. package/data/component-props/InputRadio.json +5 -53
  23. package/data/component-props/InputSearch.json +6 -70
  24. package/data/component-props/InputSlider.json +21 -35
  25. package/data/component-props/InputText.json +7 -63
  26. package/data/component-props/InputToggle.json +5 -54
  27. package/data/component-props/Link.json +18 -0
  28. package/data/component-props/LoadingIndicator.json +1 -2
  29. package/data/component-props/MenuItem.json +11 -41
  30. package/data/component-props/MenuSelect.json +4 -67
  31. package/data/component-props/NavigationFooter.json +0 -8
  32. package/data/component-props/NavigationHeader.json +14 -65
  33. package/data/component-props/NavigationJumpTo.json +0 -40
  34. package/data/component-props/Notification.json +14 -58
  35. package/data/component-props/Pagination.json +8 -33
  36. package/data/component-props/Panel.json +4 -54
  37. package/data/component-props/SegmentedControl.json +0 -55
  38. package/data/component-props/TableRow.json +10 -38
  39. package/data/component-props/Tabs.json +18 -0
  40. package/data/component-props/Tag.json +10 -56
  41. package/data/component-props/TagFilter.json +0 -47
  42. package/data/component-props/Tooltip.json +12 -61
  43. package/data/component-props/TooltipCondensed.json +18 -0
  44. package/data/component-props/TooltipTable.json +0 -4
  45. package/data/resources/figma-rules.md +101 -0
  46. package/data/resources/sds-component-rules.md +189 -0
  47. package/data/resources/zeroheight-rules.md +180 -0
  48. package/data/zeroheight-cache.json +1 -1
  49. package/data/zeroheight-exports/Accordion.md +167 -125
  50. package/data/zeroheight-exports/Banner.md +71 -48
  51. package/data/zeroheight-exports/Borders.md +72 -73
  52. package/data/zeroheight-exports/Buttons.md +375 -330
  53. package/data/zeroheight-exports/Callout.md +138 -116
  54. package/data/zeroheight-exports/Colors.md +254 -255
  55. package/data/zeroheight-exports/Content-Card.md +36 -37
  56. package/data/zeroheight-exports/Contributing-to-SDS.md +34 -35
  57. package/data/zeroheight-exports/Control-Inputs.md +289 -234
  58. package/data/zeroheight-exports/Corners.md +63 -64
  59. package/data/zeroheight-exports/Cover-page.md +0 -1
  60. package/data/zeroheight-exports/Dialog.md +237 -179
  61. package/data/zeroheight-exports/Downloads.md +10 -11
  62. package/data/zeroheight-exports/Drop-Shadows.md +40 -41
  63. package/data/zeroheight-exports/Dropdown-Input.md +158 -127
  64. package/data/zeroheight-exports/Dropdown-Menu.md +814 -718
  65. package/data/zeroheight-exports/Element-Status-Tracker.md +191 -192
  66. package/data/zeroheight-exports/Field-Inputs.md +149 -130
  67. package/data/zeroheight-exports/Filters.md +114 -94
  68. package/data/zeroheight-exports/Getting-Started.md +112 -249
  69. package/data/zeroheight-exports/Hero.md +43 -37
  70. package/data/zeroheight-exports/Icons.md +205 -206
  71. package/data/zeroheight-exports/Intent.md +6 -7
  72. package/data/zeroheight-exports/Introduction-to-Bases.md +8 -9
  73. package/data/zeroheight-exports/Introduction-to-Cells.md +11 -12
  74. package/data/zeroheight-exports/Introduction-to-DNA.md +8 -9
  75. package/data/zeroheight-exports/Introduction-to-Genes.md +8 -9
  76. package/data/zeroheight-exports/Introduction.md +52 -53
  77. package/data/zeroheight-exports/Link.md +50 -37
  78. package/data/zeroheight-exports/Lists.md +78 -63
  79. package/data/zeroheight-exports/Loading-Indicator.md +7 -8
  80. package/data/zeroheight-exports/Navigation.md +163 -142
  81. package/data/zeroheight-exports/Notification.md +132 -102
  82. package/data/zeroheight-exports/Panel.md +231 -115
  83. package/data/zeroheight-exports/README.md +1 -1
  84. package/data/zeroheight-exports/Responsive-Design.md +35 -32
  85. package/data/zeroheight-exports/Search-Input.md +9 -10
  86. package/data/zeroheight-exports/Search.md +87 -104
  87. package/data/zeroheight-exports/Segmented-Control.md +68 -45
  88. package/data/zeroheight-exports/Spacing.md +210 -211
  89. package/data/zeroheight-exports/Table.md +414 -302
  90. package/data/zeroheight-exports/Tabs.md +126 -98
  91. package/data/zeroheight-exports/Tags.md +148 -118
  92. package/data/zeroheight-exports/Text-Link.md +32 -33
  93. package/data/zeroheight-exports/Theming.md +48 -29
  94. package/data/zeroheight-exports/Tooltips.md +253 -237
  95. package/data/zeroheight-exports/Typography.md +463 -464
  96. package/dist/stdio.js +136 -135
  97. package/package.json +3 -4
  98. package/data/component-props/Chip.json +0 -73
  99. package/data/component-props/List.json +0 -43
  100. package/data/component-props/Menu.json +0 -48
  101. package/data/component-props/Table.json +0 -26
  102. package/data/component-props-storybook/Accordion-storybook.json +0 -45
  103. package/data/component-props-storybook/Alert-storybook.json +0 -30
  104. package/data/component-props-storybook/Autocomplete-storybook.json +0 -67
  105. package/data/component-props-storybook/Banner-storybook.json +0 -78
  106. package/data/component-props-storybook/Button-storybook.json +0 -115
  107. package/data/component-props-storybook/ButtonDropdown-storybook.json +0 -73
  108. package/data/component-props-storybook/ButtonIcon-storybook.json +0 -60
  109. package/data/component-props-storybook/ButtonToggle-storybook.json +0 -68
  110. package/data/component-props-storybook/Callout-storybook.json +0 -90
  111. package/data/component-props-storybook/CellBasic-storybook.json +0 -138
  112. package/data/component-props-storybook/CellComponent-storybook.json +0 -48
  113. package/data/component-props-storybook/CellHeader-storybook.json +0 -71
  114. package/data/component-props-storybook/Chip-storybook.json +0 -26
  115. package/data/component-props-storybook/ComplexFilter-storybook.json +0 -60
  116. package/data/component-props-storybook/ContentCard-storybook.json +0 -175
  117. package/data/component-props-storybook/Dialog-storybook.json +0 -56
  118. package/data/component-props-storybook/Dropdown-storybook.json +0 -93
  119. package/data/component-props-storybook/DropdownMenu-storybook.json +0 -73
  120. package/data/component-props-storybook/HeatmapChart-storybook.json +0 -55
  121. package/data/component-props-storybook/Icon-storybook.json +0 -75
  122. package/data/component-props-storybook/InputCheckbox-storybook.json +0 -57
  123. package/data/component-props-storybook/InputDropdown-storybook.json +0 -80
  124. package/data/component-props-storybook/InputRadio-storybook.json +0 -56
  125. package/data/component-props-storybook/InputSearch-storybook.json +0 -55
  126. package/data/component-props-storybook/InputSlider-storybook.json +0 -55
  127. package/data/component-props-storybook/InputText-storybook.json +0 -59
  128. package/data/component-props-storybook/InputToggle-storybook.json +0 -42
  129. package/data/component-props-storybook/Link-storybook.json +0 -50
  130. package/data/component-props-storybook/List-storybook.json +0 -26
  131. package/data/component-props-storybook/LoadingIndicator-storybook.json +0 -34
  132. package/data/component-props-storybook/Menu-storybook.json +0 -26
  133. package/data/component-props-storybook/MenuItem-storybook.json +0 -74
  134. package/data/component-props-storybook/MenuSelect-storybook.json +0 -38
  135. package/data/component-props-storybook/NavigationFooter-storybook.json +0 -67
  136. package/data/component-props-storybook/NavigationHeader-storybook.json +0 -115
  137. package/data/component-props-storybook/NavigationJumpTo-storybook.json +0 -41
  138. package/data/component-props-storybook/Notification-storybook.json +0 -89
  139. package/data/component-props-storybook/Pagination-storybook.json +0 -50
  140. package/data/component-props-storybook/Panel-storybook.json +0 -52
  141. package/data/component-props-storybook/SegmentedControl-storybook.json +0 -30
  142. package/data/component-props-storybook/Table-storybook.json +0 -26
  143. package/data/component-props-storybook/TableHeader-storybook.json +0 -26
  144. package/data/component-props-storybook/TableRow-storybook.json +0 -62
  145. package/data/component-props-storybook/Tabs-storybook.json +0 -45
  146. package/data/component-props-storybook/Tag-storybook.json +0 -78
  147. package/data/component-props-storybook/TagFilter-storybook.json +0 -30
  148. package/data/component-props-storybook/Tooltip-storybook.json +0 -85
  149. package/data/component-props-storybook/TooltipCondensed-storybook.json +0 -38
  150. package/data/component-props-storybook/TooltipTable-storybook.json +0 -47
@@ -4,15 +4,15 @@ Segmented Control allows users to toggle between different views within an on-sc
4
4
 
5
5
  ## Overview
6
6
 
7
- | | In Figma | | | Meets Accessibility | | | In CZ ID Codebase |
8
- | --- | --- | --- | --- | --- | --- | --- | --- |
7
+ | | In Figma | | | Meets Accessibility | | | In CZ ID Codebase |
8
+ | --- | -------- | --- | --- | ------------------- | --- | --- | ----------------- |
9
9
 
10
-  Segmented Control allows users to toggle between different views of an on-screen element. There must be a minimum of two and can be up to four segments.
10
+ Segmented Control allows users to toggle between different views of an on-screen element. There must be a minimum of two and can be up to four segments.
11
11
 
12
12
  The Segmented Control component is comprised of Segmented Control Items each of which has a Default, Hover, and Active state. Designers can swap out default icons for icons relevant to their needed use case.
13
13
 
14
14
  | **Default / Active** | **Hover** |
15
- | --- | --- |
15
+ | -------------------- | --------- |
16
16
 
17
17
  ---
18
18
 
@@ -30,8 +30,8 @@ Segmented control relies on icons to communicate what’s being shown to the use
30
30
 
31
31
  ## Segmented Control Component
32
32
 
33
- | Below you will find an interactive Storybook iframe for the Segmented Control. 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:** SegmentedControl |
34
- | --- | --- | --- |
33
+ | Below you will find an interactive Storybook iframe for the Segmented Control. 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:** SegmentedControl |
34
+ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --- | --------------------------------------- |
35
35
 
36
36
  ---
37
37
 
@@ -47,8 +47,8 @@ Segmented Control allows users to toggle between different views within an on-sc
47
47
 
48
48
  ## Overview
49
49
 
50
- | | In Figma | | | Meets Accessibility | | | In Code |
51
- | --- | --- | --- | --- | --- | --- | --- | --- |
50
+ | | In Figma | | | Meets Accessibility | | | In Code |
51
+ | --- | -------- | --- | --- | ------------------- | --- | --- | ------- |
52
52
 
53
53
  ### Live Instance
54
54
 
@@ -63,7 +63,7 @@ Segmented Control allows users to switch between different views of an on-screen
63
63
  Icons are used to communicate what will be shown on screen when that segment is clicked. When hovered over, each segment displays Tooltip – Dark to communicate what the icon represents. Any small variant icon can be used as a segment indicator.
64
64
 
65
65
  | Default / Active | Hover |
66
- | --- | --- |
66
+ | ---------------- | ----- |
67
67
 
68
68
  ---
69
69
 
@@ -73,7 +73,7 @@ These rules establish how much margin should exist between and around elements.
73
73
 
74
74
  ## Code
75
75
 
76
- >**Note:** The code examples below must install dependencies before displaying and may take extra time to load
76
+ > **Note:** The code examples below must install dependencies before displaying and may take extra time to load
77
77
 
78
78
  ## SegmentedControl
79
79
 
@@ -85,8 +85,8 @@ The component's source code in the SDS codebase can be found here.
85
85
 
86
86
  The following props are available to MUI's `ToggleButtonGroup` but not SDS's `SegementedControl`:
87
87
 
88
- * **`exclusive`****:** This boolean prop determines whether just a single button within the control group can be selected at a time (default) or whether multiple can be. SDS's`SegmentedControl` is an exclusive control only, and setting `exclusive` to `false` has no effect.
89
- * **`size`****:** Has no effect for SDS's `SegmentedControl`
88
+ - **`exclusive`\*\***:\*\* This boolean prop determines whether just a single button within the control group can be selected at a time (default) or whether multiple can be. SDS's`SegmentedControl` is an exclusive control only, and setting `exclusive` to `false` has no effect.
89
+ - **`size`\*\***:\*\* Has no effect for SDS's `SegmentedControl`
90
90
 
91
91
  ### MUI Documentation
92
92
 
@@ -96,9 +96,9 @@ Documentation for the underlying MUI component can be found here.
96
96
 
97
97
  Any custom SDS props and MUI props required for implementation are found on the table below. See the MUI documentation for additional optional props.
98
98
 
99
- | Name | Type | Default | Description |
100
- | --- | --- | --- | --- |
101
- | `buttonDefinition` | `{` `disabled?: boolean;` `iconName: string;` `tooltipText: string;` `value: string;` `}[]` | `-` | An array of items containing an icon name and a tooltip text. |
99
+ | Name | Type | Default | Description |
100
+ | ------------------ | ------------------------------------------------------------------------------------------- | ------- | ------------------------------------------------------------- |
101
+ | `buttonDefinition` | `{` `disabled?: boolean;` `iconName: string;` `tooltipText: string;` `value: string;` `}[]` | `-` | An array of items containing an icon name and a tooltip text. |
102
102
 
103
103
  ### Code examples
104
104
 
@@ -131,13 +131,11 @@ h1 {
131
131
 
132
132
  ```json
133
133
  {
134
- "include": [
135
- "./**/*"
136
- ],
134
+ "include": ["./**/*"],
137
135
  "compilerOptions": {
138
136
  "strict": true,
139
137
  "esModuleInterop": true,
140
- "lib": [ "dom", "es2015" ],
138
+ "lib": ["dom", "es2015"],
141
139
  "jsx": "react-jsx"
142
140
  }
143
141
  }
@@ -169,7 +167,7 @@ function App() {
169
167
  ];
170
168
  return (
171
169
  <div className="app">
172
- <SegmentedControl buttonDefinition={buttonDefinition}/>
170
+ <SegmentedControl buttonDefinition={buttonDefinition} />
173
171
  </div>
174
172
  );
175
173
  }
@@ -214,13 +212,12 @@ root.render(
214
212
  <RootApp />
215
213
  </React.StrictMode>
216
214
  );
217
-
218
215
  ```
219
216
 
220
217
  **/public/index.html**
221
218
 
222
219
  ```html
223
- <!DOCTYPE html>
220
+ <!doctype html>
224
221
  <html lang="en">
225
222
  <head>
226
223
  <meta charset="UTF-8" />
@@ -241,13 +238,24 @@ root.render(
241
238
  <div id="root"></div>
242
239
  </body>
243
240
  </html>
244
-
245
241
  ```
246
242
 
247
243
  **/package.json**
248
244
 
249
245
  ```json
250
- {"dependencies":{"react":"^18.0.0","react-dom":"^18.0.0","react-scripts":"^4.0.0"},"devDependencies":{"@types/react":"^18.0.0","@types/react-dom":"^18.0.0","typescript":"^4.0.0"},"main":"/index.tsx"}
246
+ {
247
+ "dependencies": {
248
+ "react": "^18.0.0",
249
+ "react-dom": "^18.0.0",
250
+ "react-scripts": "^4.0.0"
251
+ },
252
+ "devDependencies": {
253
+ "@types/react": "^18.0.0",
254
+ "@types/react-dom": "^18.0.0",
255
+ "typescript": "^4.0.0"
256
+ },
257
+ "main": "/index.tsx"
258
+ }
251
259
  ```
252
260
 
253
261
  ---
@@ -281,13 +289,11 @@ h1 {
281
289
 
282
290
  ```json
283
291
  {
284
- "include": [
285
- "./**/*"
286
- ],
292
+ "include": ["./**/*"],
287
293
  "compilerOptions": {
288
294
  "strict": true,
289
295
  "esModuleInterop": true,
290
- "lib": [ "dom", "es2015" ],
296
+ "lib": ["dom", "es2015"],
291
297
  "jsx": "react-jsx"
292
298
  }
293
299
  }
@@ -321,9 +327,9 @@ function App() {
321
327
  ];
322
328
  return (
323
329
  <div className="app">
324
- <SegmentedControl
325
- buttonDefinition={buttonDefinition}
326
- value={value}
330
+ <SegmentedControl
331
+ buttonDefinition={buttonDefinition}
332
+ value={value}
327
333
  onChange={(e, newValue) => setValue(newValue)}
328
334
  />
329
335
  </div>
@@ -370,13 +376,12 @@ root.render(
370
376
  <RootApp />
371
377
  </React.StrictMode>
372
378
  );
373
-
374
379
  ```
375
380
 
376
381
  **/public/index.html**
377
382
 
378
383
  ```html
379
- <!DOCTYPE html>
384
+ <!doctype html>
380
385
  <html lang="en">
381
386
  <head>
382
387
  <meta charset="UTF-8" />
@@ -397,13 +402,24 @@ root.render(
397
402
  <div id="root"></div>
398
403
  </body>
399
404
  </html>
400
-
401
405
  ```
402
406
 
403
407
  **/package.json**
404
408
 
405
409
  ```json
406
- {"dependencies":{"react":"^18.0.0","react-dom":"^18.0.0","react-scripts":"^4.0.0"},"devDependencies":{"@types/react":"^18.0.0","@types/react-dom":"^18.0.0","typescript":"^4.0.0"},"main":"/index.tsx"}
410
+ {
411
+ "dependencies": {
412
+ "react": "^18.0.0",
413
+ "react-dom": "^18.0.0",
414
+ "react-scripts": "^4.0.0"
415
+ },
416
+ "devDependencies": {
417
+ "@types/react": "^18.0.0",
418
+ "@types/react-dom": "^18.0.0",
419
+ "typescript": "^4.0.0"
420
+ },
421
+ "main": "/index.tsx"
422
+ }
407
423
  ```
408
424
 
409
425
  ---
@@ -437,13 +453,11 @@ h1 {
437
453
 
438
454
  ```json
439
455
  {
440
- "include": [
441
- "./**/*"
442
- ],
456
+ "include": ["./**/*"],
443
457
  "compilerOptions": {
444
458
  "strict": true,
445
459
  "esModuleInterop": true,
446
- "lib": [ "dom", "es2015" ],
460
+ "lib": ["dom", "es2015"],
447
461
  "jsx": "react-jsx"
448
462
  }
449
463
  }
@@ -476,7 +490,7 @@ function App() {
476
490
  ];
477
491
  return (
478
492
  <div className="app">
479
- <SegmentedControl buttonDefinition={buttonDefinition}/>
493
+ <SegmentedControl buttonDefinition={buttonDefinition} />
480
494
  </div>
481
495
  );
482
496
  }
@@ -521,13 +535,12 @@ root.render(
521
535
  <RootApp />
522
536
  </React.StrictMode>
523
537
  );
524
-
525
538
  ```
526
539
 
527
540
  **/public/index.html**
528
541
 
529
542
  ```html
530
- <!DOCTYPE html>
543
+ <!doctype html>
531
544
  <html lang="en">
532
545
  <head>
533
546
  <meta charset="UTF-8" />
@@ -548,14 +561,24 @@ root.render(
548
561
  <div id="root"></div>
549
562
  </body>
550
563
  </html>
551
-
552
564
  ```
553
565
 
554
566
  **/package.json**
555
567
 
556
568
  ```json
557
- {"dependencies":{"react":"^18.0.0","react-dom":"^18.0.0","react-scripts":"^4.0.0"},"devDependencies":{"@types/react":"^18.0.0","@types/react-dom":"^18.0.0","typescript":"^4.0.0"},"main":"/index.tsx"}
569
+ {
570
+ "dependencies": {
571
+ "react": "^18.0.0",
572
+ "react-dom": "^18.0.0",
573
+ "react-scripts": "^4.0.0"
574
+ },
575
+ "devDependencies": {
576
+ "@types/react": "^18.0.0",
577
+ "@types/react-dom": "^18.0.0",
578
+ "typescript": "^4.0.0"
579
+ },
580
+ "main": "/index.tsx"
581
+ }
558
582
  ```
559
583
 
560
584
  ---
561
-