@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.
- package/data/component-props/Accordion.json +14 -15
- package/data/component-props/Alert.json +2 -44
- package/data/component-props/Autocomplete.json +14 -32
- package/data/component-props/Banner.json +11 -12
- package/data/component-props/Button.json +17 -82
- package/data/component-props/ButtonDropdown.json +26 -0
- package/data/component-props/ButtonIcon.json +4 -60
- package/data/component-props/ButtonToggle.json +2 -66
- package/data/component-props/Callout.json +11 -65
- package/data/component-props/CellBasic.json +28 -56
- package/data/component-props/CellComponent.json +4 -32
- package/data/component-props/CellHeader.json +13 -49
- package/data/component-props/ComplexFilter.json +24 -4
- package/data/component-props/ContentCard.json +66 -2
- package/data/component-props/Dialog.json +26 -0
- package/data/component-props/Dropdown.json +29 -67
- package/data/component-props/DropdownMenu.json +16 -56
- package/data/component-props/HeatmapChart.json +6 -87
- package/data/component-props/Icon.json +3 -8
- package/data/component-props/InputCheckbox.json +5 -53
- package/data/component-props/InputDropdown.json +11 -33
- package/data/component-props/InputRadio.json +5 -53
- package/data/component-props/InputSearch.json +6 -70
- package/data/component-props/InputSlider.json +21 -35
- package/data/component-props/InputText.json +7 -63
- package/data/component-props/InputToggle.json +5 -54
- package/data/component-props/Link.json +18 -0
- package/data/component-props/LoadingIndicator.json +1 -2
- package/data/component-props/MenuItem.json +11 -41
- package/data/component-props/MenuSelect.json +4 -67
- package/data/component-props/NavigationFooter.json +0 -8
- package/data/component-props/NavigationHeader.json +14 -65
- package/data/component-props/NavigationJumpTo.json +0 -40
- package/data/component-props/Notification.json +14 -58
- package/data/component-props/Pagination.json +8 -33
- package/data/component-props/Panel.json +4 -54
- package/data/component-props/SegmentedControl.json +0 -55
- package/data/component-props/TableRow.json +10 -38
- package/data/component-props/Tabs.json +18 -0
- package/data/component-props/Tag.json +10 -56
- package/data/component-props/TagFilter.json +0 -47
- package/data/component-props/Tooltip.json +12 -61
- package/data/component-props/TooltipCondensed.json +18 -0
- package/data/component-props/TooltipTable.json +0 -4
- package/data/resources/figma-rules.md +101 -0
- package/data/resources/sds-component-rules.md +189 -0
- package/data/resources/zeroheight-rules.md +180 -0
- package/data/zeroheight-cache.json +1 -1
- package/data/zeroheight-exports/Accordion.md +167 -125
- package/data/zeroheight-exports/Banner.md +71 -48
- package/data/zeroheight-exports/Borders.md +72 -73
- package/data/zeroheight-exports/Buttons.md +375 -330
- package/data/zeroheight-exports/Callout.md +138 -116
- package/data/zeroheight-exports/Colors.md +254 -255
- package/data/zeroheight-exports/Content-Card.md +36 -37
- package/data/zeroheight-exports/Contributing-to-SDS.md +34 -35
- package/data/zeroheight-exports/Control-Inputs.md +289 -234
- package/data/zeroheight-exports/Corners.md +63 -64
- package/data/zeroheight-exports/Cover-page.md +0 -1
- package/data/zeroheight-exports/Dialog.md +237 -179
- package/data/zeroheight-exports/Downloads.md +10 -11
- package/data/zeroheight-exports/Drop-Shadows.md +40 -41
- package/data/zeroheight-exports/Dropdown-Input.md +158 -127
- package/data/zeroheight-exports/Dropdown-Menu.md +814 -718
- package/data/zeroheight-exports/Element-Status-Tracker.md +191 -192
- package/data/zeroheight-exports/Field-Inputs.md +149 -130
- package/data/zeroheight-exports/Filters.md +114 -94
- package/data/zeroheight-exports/Getting-Started.md +112 -249
- package/data/zeroheight-exports/Hero.md +43 -37
- package/data/zeroheight-exports/Icons.md +205 -206
- package/data/zeroheight-exports/Intent.md +6 -7
- package/data/zeroheight-exports/Introduction-to-Bases.md +8 -9
- package/data/zeroheight-exports/Introduction-to-Cells.md +11 -12
- package/data/zeroheight-exports/Introduction-to-DNA.md +8 -9
- package/data/zeroheight-exports/Introduction-to-Genes.md +8 -9
- package/data/zeroheight-exports/Introduction.md +52 -53
- package/data/zeroheight-exports/Link.md +50 -37
- package/data/zeroheight-exports/Lists.md +78 -63
- package/data/zeroheight-exports/Loading-Indicator.md +7 -8
- package/data/zeroheight-exports/Navigation.md +163 -142
- package/data/zeroheight-exports/Notification.md +132 -102
- package/data/zeroheight-exports/Panel.md +231 -115
- package/data/zeroheight-exports/README.md +1 -1
- package/data/zeroheight-exports/Responsive-Design.md +35 -32
- package/data/zeroheight-exports/Search-Input.md +9 -10
- package/data/zeroheight-exports/Search.md +87 -104
- package/data/zeroheight-exports/Segmented-Control.md +68 -45
- package/data/zeroheight-exports/Spacing.md +210 -211
- package/data/zeroheight-exports/Table.md +414 -302
- package/data/zeroheight-exports/Tabs.md +126 -98
- package/data/zeroheight-exports/Tags.md +148 -118
- package/data/zeroheight-exports/Text-Link.md +32 -33
- package/data/zeroheight-exports/Theming.md +48 -29
- package/data/zeroheight-exports/Tooltips.md +253 -237
- package/data/zeroheight-exports/Typography.md +463 -464
- package/dist/stdio.js +136 -135
- package/package.json +3 -4
- package/data/component-props/Chip.json +0 -73
- package/data/component-props/List.json +0 -43
- package/data/component-props/Menu.json +0 -48
- package/data/component-props/Table.json +0 -26
- package/data/component-props-storybook/Accordion-storybook.json +0 -45
- package/data/component-props-storybook/Alert-storybook.json +0 -30
- package/data/component-props-storybook/Autocomplete-storybook.json +0 -67
- package/data/component-props-storybook/Banner-storybook.json +0 -78
- package/data/component-props-storybook/Button-storybook.json +0 -115
- package/data/component-props-storybook/ButtonDropdown-storybook.json +0 -73
- package/data/component-props-storybook/ButtonIcon-storybook.json +0 -60
- package/data/component-props-storybook/ButtonToggle-storybook.json +0 -68
- package/data/component-props-storybook/Callout-storybook.json +0 -90
- package/data/component-props-storybook/CellBasic-storybook.json +0 -138
- package/data/component-props-storybook/CellComponent-storybook.json +0 -48
- package/data/component-props-storybook/CellHeader-storybook.json +0 -71
- package/data/component-props-storybook/Chip-storybook.json +0 -26
- package/data/component-props-storybook/ComplexFilter-storybook.json +0 -60
- package/data/component-props-storybook/ContentCard-storybook.json +0 -175
- package/data/component-props-storybook/Dialog-storybook.json +0 -56
- package/data/component-props-storybook/Dropdown-storybook.json +0 -93
- package/data/component-props-storybook/DropdownMenu-storybook.json +0 -73
- package/data/component-props-storybook/HeatmapChart-storybook.json +0 -55
- package/data/component-props-storybook/Icon-storybook.json +0 -75
- package/data/component-props-storybook/InputCheckbox-storybook.json +0 -57
- package/data/component-props-storybook/InputDropdown-storybook.json +0 -80
- package/data/component-props-storybook/InputRadio-storybook.json +0 -56
- package/data/component-props-storybook/InputSearch-storybook.json +0 -55
- package/data/component-props-storybook/InputSlider-storybook.json +0 -55
- package/data/component-props-storybook/InputText-storybook.json +0 -59
- package/data/component-props-storybook/InputToggle-storybook.json +0 -42
- package/data/component-props-storybook/Link-storybook.json +0 -50
- package/data/component-props-storybook/List-storybook.json +0 -26
- package/data/component-props-storybook/LoadingIndicator-storybook.json +0 -34
- package/data/component-props-storybook/Menu-storybook.json +0 -26
- package/data/component-props-storybook/MenuItem-storybook.json +0 -74
- package/data/component-props-storybook/MenuSelect-storybook.json +0 -38
- package/data/component-props-storybook/NavigationFooter-storybook.json +0 -67
- package/data/component-props-storybook/NavigationHeader-storybook.json +0 -115
- package/data/component-props-storybook/NavigationJumpTo-storybook.json +0 -41
- package/data/component-props-storybook/Notification-storybook.json +0 -89
- package/data/component-props-storybook/Pagination-storybook.json +0 -50
- package/data/component-props-storybook/Panel-storybook.json +0 -52
- package/data/component-props-storybook/SegmentedControl-storybook.json +0 -30
- package/data/component-props-storybook/Table-storybook.json +0 -26
- package/data/component-props-storybook/TableHeader-storybook.json +0 -26
- package/data/component-props-storybook/TableRow-storybook.json +0 -62
- package/data/component-props-storybook/Tabs-storybook.json +0 -45
- package/data/component-props-storybook/Tag-storybook.json +0 -78
- package/data/component-props-storybook/TagFilter-storybook.json +0 -30
- package/data/component-props-storybook/Tooltip-storybook.json +0 -85
- package/data/component-props-storybook/TooltipCondensed-storybook.json +0 -38
- 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
|
-
|
|
|
8
|
-
| --- |
|
|
7
|
+
| | In Figma | | | Meets Accessibility | | | In CZ ID Codebase |
|
|
8
|
+
| --- | -------- | --- | --- | ------------------- | --- | --- | ----------------- |
|
|
9
9
|
|
|
10
|
-
|
|
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.
|
|
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
|
-
|
|
|
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
|
-
|
|
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
|
-
|
|
89
|
-
|
|
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
|
|
100
|
-
|
|
|
101
|
-
| `buttonDefinition` | `{`
|
|
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": [
|
|
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
|
-
<!
|
|
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
|
-
{
|
|
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": [
|
|
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
|
-
<!
|
|
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
|
-
{
|
|
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": [
|
|
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
|
-
<!
|
|
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
|
-
{
|
|
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
|
-
|