@czi-sds/mcp 0.16.0 → 0.18.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/README.md +2 -1
- package/data/component-docs/Accordion.md +291 -0
- package/data/component-docs/Autocomplete.md +525 -0
- package/data/component-docs/Banner.md +231 -0
- package/data/component-docs/Button.md +224 -0
- package/data/component-docs/ButtonDropdown.md +256 -0
- package/data/component-docs/ButtonGroup.md +320 -0
- package/data/component-docs/ButtonToggle.md +397 -0
- package/data/component-docs/Callout.md +268 -0
- package/data/component-docs/CellBasic.md +122 -0
- package/data/component-docs/CellComponent.md +63 -0
- package/data/component-docs/CellHeader.md +128 -0
- package/data/component-docs/ComplexFilter.md +294 -0
- package/data/component-docs/ContentCard.md +406 -0
- package/data/component-docs/Dialog.md +651 -0
- package/data/component-docs/Dropdown.md +155 -0
- package/data/component-docs/DropdownMenu.md +949 -0
- package/data/component-docs/HeatmapChart.md +782 -0
- package/data/component-docs/Hero.md +363 -0
- package/data/component-docs/Icon.md +283 -0
- package/data/component-docs/InputCheckbox.md +205 -0
- package/data/component-docs/InputDropdown.md +482 -0
- package/data/component-docs/InputRadio.md +173 -0
- package/data/component-docs/InputSearch.md +81 -0
- package/data/component-docs/InputSlider.md +189 -0
- package/data/component-docs/InputText.md +110 -0
- package/data/component-docs/InputToggle.md +141 -0
- package/data/component-docs/IntentMessage.md +293 -0
- package/data/component-docs/Legend.md +442 -0
- package/data/component-docs/Link.md +23 -0
- package/data/component-docs/List.md +300 -0
- package/data/component-docs/LoadingIndicator.md +198 -0
- package/data/component-docs/Menu.md +298 -0
- package/data/component-docs/MenuItem.md +100 -0
- package/data/component-docs/NavigationFooter.md +165 -0
- package/data/component-docs/NavigationHeader.md +500 -0
- package/data/component-docs/NavigationJumpTo.md +414 -0
- package/data/component-docs/Notification.md +288 -0
- package/data/component-docs/Pagination.md +67 -0
- package/data/component-docs/Panel.md +636 -0
- package/data/component-docs/Popover.md +448 -0
- package/data/component-docs/PreComposedTable.md +2947 -0
- package/data/component-docs/ProteinStructureViewer.md +1044 -0
- package/data/component-docs/SegmentedControl.md +396 -0
- package/data/component-docs/StackedBarChart.md +475 -0
- package/data/component-docs/Table.md +2000 -0
- package/data/component-docs/TableHeader.md +53 -0
- package/data/component-docs/TableRow.md +74 -0
- package/data/component-docs/Tabs.md +455 -0
- package/data/component-docs/Tag.md +647 -0
- package/data/component-docs/TagFilter.md +131 -0
- package/data/component-docs/Tooltip.md +561 -0
- package/data/component-docs/TooltipCondensed.md +203 -0
- package/data/component-docs/TooltipTable.md +145 -0
- package/data/component-docs/index.json +267 -0
- package/data/component-list.json +2 -5
- package/data/component-props/Accordion.json +31 -11
- package/data/component-props/Alert.json +3 -3
- package/data/component-props/Autocomplete.json +150 -15
- package/data/component-props/Banner.json +31 -17
- package/data/component-props/Button.json +45 -20
- package/data/component-props/ButtonDropdown.json +36 -17
- package/data/component-props/ButtonDropdownLegacy.json +11 -11
- package/data/component-props/ButtonGroup.json +32 -11
- package/data/component-props/ButtonIcon.json +10 -10
- package/data/component-props/ButtonLegacy.json +19 -19
- package/data/component-props/ButtonToggle.json +32 -19
- package/data/component-props/ButtonToggleLegacy.json +11 -11
- package/data/component-props/Callout.json +58 -17
- package/data/component-props/CellBasic.json +94 -41
- package/data/component-props/CellComponent.json +23 -7
- package/data/component-props/CellHeader.json +62 -19
- package/data/component-props/ComplexFilter.json +52 -21
- package/data/component-props/ContentCard.json +70 -47
- package/data/component-props/Dialog.json +47 -14
- package/data/component-props/Dropdown.json +68 -31
- package/data/component-props/DropdownMenu.json +128 -23
- package/data/component-props/HeatmapChart.json +88 -12
- package/data/component-props/Hero.json +80 -39
- package/data/component-props/Icon.json +20 -9
- package/data/component-props/InputCheckbox.json +36 -14
- package/data/component-props/InputDropdown.json +75 -27
- package/data/component-props/InputRadio.json +31 -13
- package/data/component-props/InputSearch.json +41 -18
- package/data/component-props/InputSlider.json +46 -19
- package/data/component-props/InputText.json +26 -19
- package/data/component-props/InputToggle.json +26 -9
- package/data/component-props/IntentMessage.json +38 -9
- package/data/component-props/Link.json +13 -7
- package/data/component-props/LoadingIndicator.json +11 -3
- package/data/component-props/MenuItem.json +38 -19
- package/data/component-props/MenuSelect.json +8 -8
- package/data/component-props/NavigationFooter.json +49 -19
- package/data/component-props/NavigationHeader.json +150 -37
- package/data/component-props/NavigationJumpTo.json +33 -7
- package/data/component-props/Notification.json +39 -21
- package/data/component-props/Pagination.json +39 -11
- package/data/component-props/Panel.json +62 -9
- package/data/component-props/Popover.json +80 -7
- package/data/component-props/PreComposedTable.json +99 -27
- package/data/component-props/ProteinStructureViewer.json +117 -0
- package/data/component-props/SegmentedControl.json +42 -3
- package/data/component-props/StackedBarChart.json +116 -42
- package/data/component-props/TableRow.json +38 -19
- package/data/component-props/Tabs.json +66 -9
- package/data/component-props/Tag.json +34 -17
- package/data/component-props/TagFilter.json +10 -3
- package/data/component-props/Tooltip.json +49 -18
- package/data/component-props/TooltipCondensed.json +18 -9
- package/data/component-props/TooltipTable.json +17 -7
- package/data/resources/{zeroheight-rules.md → documentation-rules.md} +43 -30
- package/data/resources/figma-rules.md +2 -2
- package/data/tailwind.json +20 -14
- package/dist/stdio.js +112 -208
- package/package.json +9 -5
- package/data/component-props/ButtonDropdownV2.json +0 -34
- package/data/component-props/ButtonNew.json +0 -47
- package/data/component-props/ButtonToggleV2.json +0 -44
- package/data/component-props/ButtonV2.json +0 -43
- package/data/zeroheight-cache.json +0 -10259
- package/data/zeroheight-exports/Accordion.md +0 -774
- package/data/zeroheight-exports/Banner.md +0 -691
- package/data/zeroheight-exports/Borders.md +0 -117
- package/data/zeroheight-exports/Buttons.md +0 -1854
- package/data/zeroheight-exports/Callout.md +0 -931
- package/data/zeroheight-exports/Colors.md +0 -1755
- package/data/zeroheight-exports/Content-Card.md +0 -309
- package/data/zeroheight-exports/Contributing-to-SDS.md +0 -98
- package/data/zeroheight-exports/Control-Inputs.md +0 -2818
- package/data/zeroheight-exports/Corners.md +0 -104
- package/data/zeroheight-exports/Cover-page.md +0 -3
- package/data/zeroheight-exports/Dialog.md +0 -1367
- package/data/zeroheight-exports/Downloads.md +0 -236
- package/data/zeroheight-exports/Drop-Shadows.md +0 -79
- package/data/zeroheight-exports/Dropdown-Input.md +0 -1776
- package/data/zeroheight-exports/Dropdown-Menus.md +0 -913
- package/data/zeroheight-exports/Element-Status-Tracker.md +0 -267
- package/data/zeroheight-exports/Field-Inputs.md +0 -1405
- package/data/zeroheight-exports/Filters.md +0 -1111
- package/data/zeroheight-exports/Getting-Started.md +0 -1157
- package/data/zeroheight-exports/Hero.md +0 -414
- package/data/zeroheight-exports/Icons.md +0 -2067
- package/data/zeroheight-exports/Intent.md +0 -86
- package/data/zeroheight-exports/Introduction-to-Bases.md +0 -35
- package/data/zeroheight-exports/Introduction-to-Cells.md +0 -35
- package/data/zeroheight-exports/Introduction-to-DNA.md +0 -35
- package/data/zeroheight-exports/Introduction-to-Genes.md +0 -35
- package/data/zeroheight-exports/Introduction.md +0 -115
- package/data/zeroheight-exports/Link.md +0 -432
- package/data/zeroheight-exports/Lists.md +0 -986
- package/data/zeroheight-exports/Loading-Indicator.md +0 -41
- package/data/zeroheight-exports/Navigation.md +0 -1190
- package/data/zeroheight-exports/Notification.md +0 -1038
- package/data/zeroheight-exports/Panel.md +0 -1030
- package/data/zeroheight-exports/README.md +0 -122
- package/data/zeroheight-exports/Responsive-Design.md +0 -330
- package/data/zeroheight-exports/Search-Input.md +0 -91
- package/data/zeroheight-exports/Search.md +0 -822
- package/data/zeroheight-exports/Segmented-Control.md +0 -609
- package/data/zeroheight-exports/Spacing.md +0 -297
- package/data/zeroheight-exports/Table.md +0 -5345
- package/data/zeroheight-exports/Tabs.md +0 -1324
- package/data/zeroheight-exports/Tags.md +0 -1545
- package/data/zeroheight-exports/Text-Link.md +0 -268
- package/data/zeroheight-exports/Theming.md +0 -362
- package/data/zeroheight-exports/Tooltips.md +0 -2015
- package/data/zeroheight-exports/Typography.md +0 -800
|
@@ -2,49 +2,154 @@
|
|
|
2
2
|
"DropdownMenu": {
|
|
3
3
|
"props": {
|
|
4
4
|
"ClickAwayListenerProps": {
|
|
5
|
-
"
|
|
6
|
-
"isRequired": false
|
|
5
|
+
"description": "Passes props to the MUI ClickAwayListener .",
|
|
6
|
+
"isRequired": false,
|
|
7
|
+
"type": "Partial<ClickAwayListenerProps>"
|
|
7
8
|
},
|
|
8
9
|
"groupBy": {
|
|
9
|
-
"
|
|
10
|
-
"isRequired": false
|
|
10
|
+
"description": "Groups menu items according to their assigned section.",
|
|
11
|
+
"isRequired": false,
|
|
12
|
+
"type": "function"
|
|
11
13
|
},
|
|
12
14
|
"keepSearchOnSelect": {
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
+
"defaultValue": true,
|
|
16
|
+
"description": "Maintains a search input when a user selects a menu item (only if multiple selections are allowed via the multiple prop; otherwise the dropdown closes upon selection).",
|
|
17
|
+
"isRequired": false,
|
|
18
|
+
"type": "boolean"
|
|
15
19
|
},
|
|
16
20
|
"label": {
|
|
17
|
-
"
|
|
18
|
-
"
|
|
21
|
+
"defaultValue": "Search",
|
|
22
|
+
"description": "The placeholder text of the search input.",
|
|
23
|
+
"isRequired": false,
|
|
24
|
+
"type": "string"
|
|
19
25
|
},
|
|
20
26
|
"multiple": {
|
|
21
|
-
"
|
|
22
|
-
"
|
|
27
|
+
"defaultValue": false,
|
|
28
|
+
"description": "Allows user to select multiple menu items; see more in the MUI Autocomplete API .",
|
|
29
|
+
"isRequired": false,
|
|
30
|
+
"type": "boolean"
|
|
23
31
|
},
|
|
24
32
|
"open": {
|
|
25
|
-
"
|
|
26
|
-
"
|
|
33
|
+
"defaultValue": false,
|
|
34
|
+
"description": "Whether the menu is showing. The menu holds no open state of its own, so this and anchorEl are what the opening control sets.",
|
|
35
|
+
"isRequired": false,
|
|
36
|
+
"type": "boolean"
|
|
27
37
|
},
|
|
28
38
|
"options": {
|
|
29
|
-
"
|
|
30
|
-
"isRequired": false
|
|
39
|
+
"description": "Required. One object per menu item, each needing at least a name. An option that itself has an options array turns the menu into columns, which changes how it is sized.",
|
|
40
|
+
"isRequired": false,
|
|
41
|
+
"type": "T[]"
|
|
31
42
|
},
|
|
32
43
|
"search": {
|
|
33
|
-
"
|
|
34
|
-
"
|
|
44
|
+
"defaultValue": false,
|
|
45
|
+
"description": "Provides a search bar at the top of the menu from which users can narrow the list of menu items.",
|
|
46
|
+
"isRequired": false,
|
|
47
|
+
"type": "boolean"
|
|
35
48
|
},
|
|
36
49
|
"title": {
|
|
37
|
-
"
|
|
38
|
-
"isRequired": false
|
|
50
|
+
"description": "Sets a heading for the menu.",
|
|
51
|
+
"isRequired": false,
|
|
52
|
+
"type": "ReactNode"
|
|
39
53
|
},
|
|
40
54
|
"subTitle": {
|
|
41
|
-
"
|
|
42
|
-
"isRequired": false
|
|
55
|
+
"description": "A second line below the header's title. It is only rendered when title is set as well.",
|
|
56
|
+
"isRequired": false,
|
|
57
|
+
"type": "ReactNode"
|
|
43
58
|
},
|
|
44
59
|
"width": {
|
|
45
|
-
"
|
|
46
|
-
"
|
|
60
|
+
"defaultValue": 160,
|
|
61
|
+
"description": "The width of the menu, as a number of pixels or any CSS width. The 160px minimum still applies underneath it, and a menu whose options are laid out in columns ignores this and sizes itself to its content.",
|
|
62
|
+
"isRequired": false,
|
|
63
|
+
"type": "string | number | string & {}"
|
|
64
|
+
},
|
|
65
|
+
"anchorEl": {
|
|
66
|
+
"description": "Required. The element the menu is positioned against, usually the control that opens it. Until it is set the menu renders an empty container: the list is only mounted once there is something to anchor it to. See the MUI Popper API .",
|
|
67
|
+
"isRequired": true,
|
|
68
|
+
"type": "HTMLElement | null"
|
|
69
|
+
},
|
|
70
|
+
"children": {
|
|
71
|
+
"description": "Rendered inside the menu below the list, for footers such as an apply button.",
|
|
72
|
+
"isRequired": false,
|
|
73
|
+
"type": "JSX.Element | null"
|
|
74
|
+
},
|
|
75
|
+
"headerComponentSlot": {
|
|
76
|
+
"description": "Rendered in the menu's header, below title. Either one is enough to give the menu a header.",
|
|
77
|
+
"isRequired": false,
|
|
78
|
+
"type": "Element"
|
|
79
|
+
},
|
|
80
|
+
"InputBaseProps": {
|
|
81
|
+
"description": "Passed to the InputSearch the search prop renders. The menu sets autoFocus from isSearchAutoFocus and onClick to a no-op after these, so those two are the menu's to decide.",
|
|
82
|
+
"isRequired": false,
|
|
83
|
+
"type": "Partial<InputSearchProps>"
|
|
84
|
+
},
|
|
85
|
+
"isOptionEqualToValue": {
|
|
86
|
+
"defaultValue": "(option, val) => option.name === val.name",
|
|
87
|
+
"description": "Changes how a selected value is compared against the available options; see more in the MUI Autocomplete API or in the Recipes section.",
|
|
88
|
+
"isRequired": false,
|
|
89
|
+
"type": "function"
|
|
90
|
+
},
|
|
91
|
+
"isSearchAutoFocus": {
|
|
92
|
+
"defaultValue": true,
|
|
93
|
+
"description": "Puts the cursor in the search input as the menu opens. It overrides any autoFocus given through InputBaseProps.",
|
|
94
|
+
"isRequired": false,
|
|
95
|
+
"type": "boolean"
|
|
96
|
+
},
|
|
97
|
+
"noOptionsText": {
|
|
98
|
+
"defaultValue": "No options",
|
|
99
|
+
"description": "Sets the text that displays if there are no matching search results; see more in the MUI Autocomplete API .",
|
|
100
|
+
"isRequired": false,
|
|
101
|
+
"type": "string"
|
|
102
|
+
},
|
|
103
|
+
"onClickAway": {
|
|
104
|
+
"defaultValue": "noop",
|
|
105
|
+
"description": "Sets what happens when a user clicks outside of the DropdownMenu. This is where a menu is normally closed. Signature: function(event: MouseEvent | TouchEvent) => void",
|
|
106
|
+
"isRequired": false,
|
|
107
|
+
"type": "function"
|
|
108
|
+
},
|
|
109
|
+
"onClose": {
|
|
110
|
+
"description": "Called when the list asks to close, such as on selecting an option in a single-select menu. Closing is still yours to carry out through open. Signature: function(event: SyntheticEvent, reason: AutocompleteCloseReason) => void",
|
|
111
|
+
"isRequired": false,
|
|
112
|
+
"type": "(event: SyntheticEvent<Element, Event>, reason: AutocompleteCloseReason) => void"
|
|
113
|
+
},
|
|
114
|
+
"onInputChange": {
|
|
115
|
+
"description": "Called as the search text changes; see more in the MUI Autocomplete API or in the Recipes section. Signature: function(event: SyntheticEvent, value: string, reason: AutocompleteInputChangeReason) => void",
|
|
116
|
+
"isRequired": false,
|
|
117
|
+
"type": "(event: SyntheticEvent<Element, Event>, value: string, reason: AutocompleteInputChangeReason) => void"
|
|
118
|
+
},
|
|
119
|
+
"onOpen": {
|
|
120
|
+
"description": "Called when the list asks to open. Signature: function(event: SyntheticEvent) => void",
|
|
121
|
+
"isRequired": false,
|
|
122
|
+
"type": "(event: SyntheticEvent<Element, Event>) => void"
|
|
123
|
+
},
|
|
124
|
+
"PaperComponent": {
|
|
125
|
+
"defaultValue": "SDSs StyledPaper",
|
|
126
|
+
"description": "The surface the menu is drawn on. Replace it to restyle the menu's background, border and shadow.",
|
|
127
|
+
"isRequired": false,
|
|
128
|
+
"type": "ReactNode"
|
|
129
|
+
},
|
|
130
|
+
"PopperBaseProps": {
|
|
131
|
+
"defaultValue": {},
|
|
132
|
+
"description": "Passes custom props to the MUI Popper the menu is placed with. Learn more in the Popper documentation , and see all the props available to pass to it on the Popper API page . See an example of PopperBaseProps in use in the Recipes section. Its sx is merged over the menu's own sizing, so this is also how the 160px minimum width is lifted.",
|
|
133
|
+
"isRequired": false,
|
|
134
|
+
"type": "Partial<PopperProps>"
|
|
135
|
+
},
|
|
136
|
+
"PopperComponent": {
|
|
137
|
+
"defaultValue": "SDSs StyledPopper",
|
|
138
|
+
"description": "The MUI Popper component is included as part of the SDS DropdownMenu component, and its styles can be changed or added to.",
|
|
139
|
+
"isRequired": false,
|
|
140
|
+
"type": "ReactNode"
|
|
141
|
+
},
|
|
142
|
+
"PopperPlacement": {
|
|
143
|
+
"defaultValue": "bottom-start",
|
|
144
|
+
"description": "Where the menu sits relative to its anchor, as MUI's Popper understands it: one of \"auto\", \"top\", \"bottom\", \"left\", \"right\", each also available with a -start or -end suffix.",
|
|
145
|
+
"isRequired": false,
|
|
146
|
+
"type": "\"bottom\" | \"left\" | \"right\" | \"top\" | \"auto\" | \"auto-start\" | \"auto-end\" | \"top-start\" | \"top-end\" | \"bottom-start\" | \"bottom-end\" | \"right-start\" | \"right-end\" | \"left-start\" | \"left-end\""
|
|
147
|
+
},
|
|
148
|
+
"renderInput": {
|
|
149
|
+
"description": "Replaces the search input entirely. Most menus want InputBaseProps instead, which keeps the SDS input. Signature: function(params: AutocompleteRenderInputParams) => ReactNode",
|
|
150
|
+
"isRequired": false,
|
|
151
|
+
"type": "ReactNode"
|
|
47
152
|
}
|
|
48
153
|
}
|
|
49
154
|
}
|
|
50
|
-
}
|
|
155
|
+
}
|
|
@@ -2,28 +2,104 @@
|
|
|
2
2
|
"HeatmapChart": {
|
|
3
3
|
"props": {
|
|
4
4
|
"axisPointer": {
|
|
5
|
-
"
|
|
5
|
+
"defaultValue": "hidden",
|
|
6
|
+
"description": "The crosshair following the pointer. One object applies to both axes; a\ntwo-entry array configures them separately.\nhttps://echarts.apache.org/en/option.html#axisPointer",
|
|
6
7
|
"isRequired": false,
|
|
7
|
-
"
|
|
8
|
+
"type": "AxisPointerOption | AxisPointerOption[]"
|
|
8
9
|
},
|
|
9
10
|
"camera": {
|
|
10
|
-
"
|
|
11
|
+
"defaultValue": "40 × 20 when active",
|
|
12
|
+
"description": "Renders only a window of the grid, measured in cells, and lets the pointer\npan it. Sizes are ignored unless `active` is true.\n\nThe `camera` prop is utilized for implementing camera view port functionality\nwithin a specific area of the chart. This feature empowers users to render\na confined portion of the heatmap. This selective rendering strategy becomes\nespecially advantageous when dealing with extensive datasets. Instead of\nrendering the entire heatmap at once, the chart dynamically loads and renders\nspecific segments as the user scrolls through the data. This approach optimizes\nperformance and enables the creation of heatmaps with large amounts of data.\n\nThe `height` and `width` properties are used to specify the dimensions of the\ncamera view port. The `active` property is used to enable or disable the camera\nview port functionality.",
|
|
11
13
|
"isRequired": false,
|
|
12
|
-
"
|
|
14
|
+
"type": "{ active: boolean; height: number; width: number; }"
|
|
13
15
|
},
|
|
14
16
|
"echartsRendererMode": {
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
+
"defaultValue": "svg",
|
|
18
|
+
"description": "Which renderer ECharts initialises with. Canvas copes better with very\nlarge grids. Changing it rebuilds the chart.",
|
|
19
|
+
"isRequired": false,
|
|
20
|
+
"type": "\"canvas\" | \"svg\""
|
|
17
21
|
},
|
|
18
22
|
"symbol": {
|
|
19
|
-
"
|
|
23
|
+
"defaultValue": "rect",
|
|
24
|
+
"description": "The shape of a cell. Circles turn the grid into a dot plot, where diameter\ncan carry a second measurement.",
|
|
20
25
|
"isRequired": false,
|
|
21
|
-
"
|
|
26
|
+
"type": "\"circle\" | \"rect\" | \"roundRect\""
|
|
27
|
+
},
|
|
28
|
+
"data": {
|
|
29
|
+
"defaultValue": "- (required)",
|
|
30
|
+
"description": "The cells, as a flat array of objects whose fields are named by `encode`.\nThe data point object shape can be whatever you like, but it must be consistent with the `encode` option\nFor example, if the data point shape is:\n{\n geneIndex: 0,\n cellTypeIndex: 0,\n percentage: 0.5\n}\nand you want geneIndex to be encoded to x axis and cellTypeIndex to be encoded to y axis, then make sure your encode option is:\nencode: {\n x: 'geneIndex',\n y: 'cellTypeIndex'\n}",
|
|
31
|
+
"isRequired": true,
|
|
32
|
+
"type": "OptionSourceDataTypedArray | OptionSourceDataOriginal<OptionDataValue, OptionDataItemOriginal<OptionDataValue>> | OptionSourceDataObjectRows<OptionDataValue> | OptionSourceDataArrayRows<OptionDataValue> | OptionSourceDataKeyedColumns<OptionDataValue>"
|
|
33
|
+
},
|
|
34
|
+
"xAxisData": {
|
|
35
|
+
"defaultValue": "- (required)",
|
|
36
|
+
"description": "The categories along the x axis. A cell's encoded x value is an index into\nthis array.\nFor example:\n[{ value: \"gene1\", textStyle: { color: \"red\" } }, \"gene2\", \"gene3\"]",
|
|
37
|
+
"isRequired": true,
|
|
38
|
+
"type": "CategoryAxisData"
|
|
39
|
+
},
|
|
40
|
+
"yAxisData": {
|
|
41
|
+
"defaultValue": "- (required)",
|
|
42
|
+
"description": "The categories along the y axis.\nFor example:\n[{ value: \"cellType1\", textStyle: { color: \"red\" } }, \"cellType2\", \"cellType3\"]",
|
|
43
|
+
"isRequired": true,
|
|
44
|
+
"type": "CategoryAxisData"
|
|
45
|
+
},
|
|
46
|
+
"width": {
|
|
47
|
+
"defaultValue": "- (required)",
|
|
48
|
+
"description": "Width of the chart in pixels. Must be greater than zero; the component\nthrows otherwise.",
|
|
49
|
+
"isRequired": true,
|
|
50
|
+
"type": "number"
|
|
51
|
+
},
|
|
52
|
+
"height": {
|
|
53
|
+
"defaultValue": "- (required)",
|
|
54
|
+
"description": "Height of the chart in pixels, under the same rule.",
|
|
55
|
+
"isRequired": true,
|
|
56
|
+
"type": "number"
|
|
22
57
|
},
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"isRequired": false
|
|
58
|
+
"encode": {
|
|
59
|
+
"description": "Which fields of a data item place it on each axis. Omitting it leaves\nECharts to guess from the field order.\nFor example, if the data is:\n{\n geneIndex: 0,\n cellTypeIndex: 0,\n percentage: 0.5\n}\nand we want to encode `geneIndex` to x axis and `cellTypeIndex` to y axis, then\nencode: {\n x: 'geneIndex',\n y: 'cellTypeIndex'\n}\nhttps://echarts.apache.org/en/option.html#series-scatter.encode",
|
|
60
|
+
"isRequired": false,
|
|
61
|
+
"type": "{ x: string; y: string; }"
|
|
62
|
+
},
|
|
63
|
+
"symbolSize": {
|
|
64
|
+
"defaultValue": 5,
|
|
65
|
+
"description": "Cell size in pixels: one number, a [width, height] pair, or a callback\ngiven the data item. Set it to the cell pitch for a solid grid.\n\n`symbolSize` can be set to single numbers like 10, or use an array to represent width and height. For example, [20, 10] means symbol width is 20, and height is 10.\n\nIf size of symbols needs to be different, you can set with callback function in the following format:\n\n(value: Array|number, params: Object) => number|Array\n\nThe first parameter value is the value in data, and the second parameter params is the rest parameters of data item.\nhttps://echarts.apache.org/en/option.html#series-scatter.symbolSize",
|
|
66
|
+
"isRequired": false,
|
|
67
|
+
"type": "number | number[] | SymbolSizeCallback<CallbackDataParams>"
|
|
68
|
+
},
|
|
69
|
+
"itemStyle": {
|
|
70
|
+
"defaultValue": "solid black",
|
|
71
|
+
"description": "How a cell is painted. Its color accepts a callback receiving the data\nitem, which is how a value becomes a color.\nhttps://echarts.apache.org/en/option.html#series-scatter.itemStyle",
|
|
72
|
+
"isRequired": false,
|
|
73
|
+
"type": "ItemStyleOption<CallbackDataParams>"
|
|
74
|
+
},
|
|
75
|
+
"emphasis": {
|
|
76
|
+
"defaultValue": "a 2–4px border",
|
|
77
|
+
"description": "How a cell is drawn while the pointer is over it. Takes the same shape as\n`itemStyle`: color, border, opacity.\nhttps://echarts.apache.org/en/option.html#series-scatter.emphasis",
|
|
78
|
+
"isRequired": false,
|
|
79
|
+
"type": "ScatterStateOption<CallbackDataParams> & { focus?: DefaultEmphasisFocus | undefined; scale?: number | boolean | undefined; } & { ...; }"
|
|
80
|
+
},
|
|
81
|
+
"dataZoom": {
|
|
82
|
+
"defaultValue": "the camera window",
|
|
83
|
+
"description": "ECharts' dataZoom configuration for that window, merged over the defaults\nit sets. One object applies to both axes; a two-entry array configures them\nseparately. It reaches the chart only while `camera.active` is true.\n\nThe `dataZoom` prop is utilized for implementing zoom functionality within a\nspecific area of the chart. This feature empowers users to inspect data in\ngranular detail, obtain an overview of the entire dataset, or eliminate\noutlier points.\nBy applying the `dataZoom` prop while locking the zoom level, the chart\nefficiently renders a confined portion of the heatmap. This selective\nrendering strategy becomes especially advantageous when dealing with\nextensive datasets. Instead of rendering the entire heatmap at once,\nthe chart dynamically loads and renders specific segments as the user\nscrolls through the data. This approach optimizes performance and enables\nthe creation of heatmaps with large amounts of data.\nhttps://echarts.apache.org/en/option.html#dataZoom",
|
|
84
|
+
"isRequired": false,
|
|
85
|
+
"type": "SliderDataZoomOption | InsideDataZoomOption | DataZoomComponentOption[]"
|
|
86
|
+
},
|
|
87
|
+
"grid": {
|
|
88
|
+
"defaultValue": "fills the container",
|
|
89
|
+
"description": "Where the plotting area sits inside the container. The function form\nreceives the computed default, for insetting it without recomputing the\nsize.\nhttps://echarts.apache.org/en/option.html#grid",
|
|
90
|
+
"isRequired": false,
|
|
91
|
+
"type": "GridOption | GridOption[] | (defaultOption: GridOption | GridOption[] | undefined) => GridOption | GridOption[] | undefined"
|
|
92
|
+
},
|
|
93
|
+
"options": {
|
|
94
|
+
"description": "Anything else ECharts understands, merged over the generated options.\nhttps://echarts.apache.org/en/option.html",
|
|
95
|
+
"isRequired": false,
|
|
96
|
+
"type": "EChartsOption"
|
|
97
|
+
},
|
|
98
|
+
"onEvents": {
|
|
99
|
+
"description": "ECharts event listeners by name. Each handler gets the raw event, whose\ndata property is the cell, and the chart instance.\nhttps://echarts.apache.org/en/api.html#events",
|
|
100
|
+
"isRequired": false,
|
|
101
|
+
"type": "Record<string, (event: unknown, chart: EChartsType) => void>"
|
|
26
102
|
}
|
|
27
103
|
}
|
|
28
104
|
}
|
|
29
|
-
}
|
|
105
|
+
}
|
|
@@ -2,81 +2,122 @@
|
|
|
2
2
|
"Hero": {
|
|
3
3
|
"props": {
|
|
4
4
|
"backgroundFill": {
|
|
5
|
-
"
|
|
6
|
-
"isRequired": false
|
|
5
|
+
"description": "A string becomes the background color, so any CSS color or gradient works. A node is rendered full-bleed behind the content, and an img or video inside it is scaled to cover the section.",
|
|
6
|
+
"isRequired": false,
|
|
7
|
+
"type": "ReactNode"
|
|
7
8
|
},
|
|
8
9
|
"captionText": {
|
|
9
|
-
"
|
|
10
|
-
"isRequired": false
|
|
10
|
+
"description": "Supporting copy rendered below the headline.",
|
|
11
|
+
"isRequired": false,
|
|
12
|
+
"type": "string"
|
|
11
13
|
},
|
|
12
14
|
"darkeningMask": {
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
+
"defaultValue": false,
|
|
16
|
+
"description": "Adds a solid layer over the background. Pair it with darkeningMaskOpacity, which is 0 by default.",
|
|
17
|
+
"isRequired": false,
|
|
18
|
+
"type": "boolean"
|
|
15
19
|
},
|
|
16
20
|
"darkeningMaskColor": {
|
|
17
|
-
"
|
|
18
|
-
"
|
|
21
|
+
"defaultValue": "#000000",
|
|
22
|
+
"description": "The color of that layer.",
|
|
23
|
+
"isRequired": false,
|
|
24
|
+
"type": "string"
|
|
19
25
|
},
|
|
20
26
|
"darkeningMaskOpacity": {
|
|
21
|
-
"
|
|
22
|
-
"
|
|
27
|
+
"defaultValue": 0,
|
|
28
|
+
"description": "The opacity of that layer, from 0 to 1.",
|
|
29
|
+
"isRequired": false,
|
|
30
|
+
"type": "number"
|
|
23
31
|
},
|
|
24
32
|
"darkeningVignette": {
|
|
25
|
-
"
|
|
26
|
-
"
|
|
33
|
+
"defaultValue": false,
|
|
34
|
+
"description": "Draws a 40px gradient along the top edge, above the content, so a transparent header navigation stays legible.",
|
|
35
|
+
"isRequired": false,
|
|
36
|
+
"type": "boolean"
|
|
27
37
|
},
|
|
28
38
|
"hasInvertTextColor": {
|
|
29
|
-
"
|
|
30
|
-
"
|
|
39
|
+
"defaultValue": false,
|
|
40
|
+
"description": "Sets the headline and caption in the light text color, for a hero over a dark backdrop: imagery, or a darkening mask over it. The color is the same in both themes, because the backdrop it is read against is.",
|
|
41
|
+
"isRequired": false,
|
|
42
|
+
"type": "boolean"
|
|
31
43
|
},
|
|
32
44
|
"headerFontSize": {
|
|
33
|
-
"
|
|
34
|
-
"
|
|
45
|
+
"defaultValue": "m",
|
|
46
|
+
"description": "The type scale of the headline.",
|
|
47
|
+
"isRequired": false,
|
|
48
|
+
"type": "\"s\" | \"m\" | \"l\""
|
|
35
49
|
},
|
|
36
50
|
"headerText": {
|
|
37
|
-
"
|
|
38
|
-
"isRequired": false
|
|
51
|
+
"description": "The headline. Rendered as an h1 and omitted entirely when not provided.",
|
|
52
|
+
"isRequired": false,
|
|
53
|
+
"type": "string"
|
|
39
54
|
},
|
|
40
55
|
"heroHeight": {
|
|
41
|
-
"
|
|
42
|
-
"
|
|
56
|
+
"defaultValue": "fit-content",
|
|
57
|
+
"description": "Any CSS height. Below a 512px viewport it is ignored and the section falls back to fit-content.",
|
|
58
|
+
"isRequired": false,
|
|
59
|
+
"type": "string"
|
|
43
60
|
},
|
|
44
61
|
"overlayContainerMinMargin": {
|
|
45
|
-
"
|
|
46
|
-
"
|
|
62
|
+
"defaultValue": "24px / 40px / 120px",
|
|
63
|
+
"description": "Overrides the side padding at each breakpoint. The value is written straight into CSS, so it needs a unit. The number type in the signature is wrong: a plain number produces an invalid declaration and the side padding drops to zero.",
|
|
64
|
+
"isRequired": false,
|
|
65
|
+
"type": "{ small: number; medium: number; large: number; }"
|
|
47
66
|
},
|
|
48
67
|
"overlayContentWidth": {
|
|
49
|
-
"
|
|
50
|
-
"
|
|
68
|
+
"defaultValue": "100%",
|
|
69
|
+
"description": "Any CSS width for the content block, for example \"60%\" or \"640px\".",
|
|
70
|
+
"isRequired": false,
|
|
71
|
+
"type": "string"
|
|
51
72
|
},
|
|
52
73
|
"overlayContentPosition": {
|
|
53
|
-
"
|
|
54
|
-
"
|
|
74
|
+
"defaultValue": "center",
|
|
75
|
+
"description": "Where the content block sits inside the section. Only visible when the section is taller or wider than the content.",
|
|
76
|
+
"isRequired": false,
|
|
77
|
+
"type": "\"center\" | \"bottom\" | \"left\" | \"right\" | \"top\" | \"top-left\" | \"top-right\" | \"bottom-left\" | \"bottom-right\""
|
|
55
78
|
},
|
|
56
79
|
"overlayMedia": {
|
|
57
|
-
"
|
|
58
|
-
"isRequired": false
|
|
80
|
+
"description": "A media layer above the background and independent of the text block. An img or video inside it is scaled to cover the layer.",
|
|
81
|
+
"isRequired": false,
|
|
82
|
+
"type": "ReactNode"
|
|
59
83
|
},
|
|
60
84
|
"overlayMediaPosition": {
|
|
61
|
-
"
|
|
62
|
-
"
|
|
85
|
+
"defaultValue": "center",
|
|
86
|
+
"description": "Where that layer sits inside the section.",
|
|
87
|
+
"isRequired": false,
|
|
88
|
+
"type": "\"center\" | \"bottom\" | \"left\" | \"right\" | \"top\" | \"top-left\" | \"top-right\" | \"bottom-left\" | \"bottom-right\""
|
|
63
89
|
},
|
|
64
90
|
"overlayMediaMaxHeight": {
|
|
65
|
-
"
|
|
66
|
-
"isRequired": false
|
|
91
|
+
"description": "Sets the height of the media layer, with the same caveat.",
|
|
92
|
+
"isRequired": false,
|
|
93
|
+
"type": "string"
|
|
67
94
|
},
|
|
68
95
|
"overlayMediaMaxWidth": {
|
|
69
|
-
"
|
|
70
|
-
"isRequired": false
|
|
96
|
+
"description": "Sets the width of the media layer outright rather than a maximum, despite the name. Without it the layer has no width.",
|
|
97
|
+
"isRequired": false,
|
|
98
|
+
"type": "string"
|
|
71
99
|
},
|
|
72
100
|
"overlayMediaMargin": {
|
|
73
|
-
"
|
|
74
|
-
"
|
|
101
|
+
"defaultValue": "0",
|
|
102
|
+
"description": "A margin shorthand for the media layer. Pass the object form to vary it by breakpoint: small below md, medium below lg, large above.",
|
|
103
|
+
"isRequired": false,
|
|
104
|
+
"type": "string | { small: string; medium: string; large: string; }"
|
|
75
105
|
},
|
|
76
106
|
"textAlignment": {
|
|
77
|
-
"
|
|
78
|
-
"isRequired": false
|
|
107
|
+
"description": "Aligns the text within the content block, which starts at the leading edge when the prop is unset. This is separate from overlayContentPosition, which moves the block itself.",
|
|
108
|
+
"isRequired": false,
|
|
109
|
+
"type": "\"center\" | \"left\" | \"right\""
|
|
110
|
+
},
|
|
111
|
+
"children": {
|
|
112
|
+
"description": "Rendered in a full-width slot below the caption. Use it for buttons, links, or a search field.",
|
|
113
|
+
"isRequired": false,
|
|
114
|
+
"type": "ReactNode"
|
|
115
|
+
},
|
|
116
|
+
"className": {
|
|
117
|
+
"description": "Declared so it type-checks, but nothing in the component reads it: it travels with the rest of the props onto the section element.",
|
|
118
|
+
"isRequired": false,
|
|
119
|
+
"type": "string"
|
|
79
120
|
}
|
|
80
121
|
}
|
|
81
122
|
}
|
|
82
|
-
}
|
|
123
|
+
}
|
|
@@ -2,21 +2,32 @@
|
|
|
2
2
|
"Icon": {
|
|
3
3
|
"props": {
|
|
4
4
|
"color": {
|
|
5
|
-
"
|
|
6
|
-
"
|
|
5
|
+
"defaultValue": "indigo",
|
|
6
|
+
"description": "A hue from the SDS palette. Note that this is the SDS color prop, not the MUI one, and it does not accept a CSS color.",
|
|
7
|
+
"isRequired": false,
|
|
8
|
+
"type": "\"blue\" | \"gray\" | \"green\" | \"purple\" | \"indigo\" | \"red\" | \"yellow\""
|
|
7
9
|
},
|
|
8
10
|
"sdsIcon": {
|
|
9
|
-
"
|
|
10
|
-
"isRequired": true
|
|
11
|
+
"description": "Required. The name of the icon, as listed in the Icon Bank. Names are case-sensitive, for example \"XMark\" and \"LightBulb\".",
|
|
12
|
+
"isRequired": true,
|
|
13
|
+
"type": "\"ArrowsDiagonalIn\" | \"ArrowsDiagonalOut\" | \"ArrowsUpDown\" | \"Bacteria\" | \"BarChartHorizontal3\" | \"BarChartVertical3\" | \"BarChartVertical4\" | \"Book\" | \"Check\" | \"CheckCircle\" | \"ChevronDown\" | \"ChevronDown2\" | \"ChevronLeft2\" | \"ChevronLeft\" | \"ChevronRight2\" | \"ChevronRight\" | \"ChevronUp\" | \"ChevronUp2\" | \"CirclesOverlap2\" | \"Cli\" | \"Code\" | \"Compass\" | \"Copy\" | \"Cube\" | \"DNA\" | \"Document\" | \"DotPlot\" | \"DotsHorizontal\" | \"Download\" | \"Droplet\" | \"Edit\" | \"Envelope\" | \"ExclamationMarkCircle\" | \"ExclamationMarkSpeechBubble\" | \"EyeClosed\" | \"EyeOpen\" | \"Filter\" | \"FlagCheck\" | \"FlagOutline\" | \"FlagQuestionMark\" | \"FlagXMark\" | \"Flask\" | \"FlaskPrivate\" | \"FlaskPublic\" | \"Gear\" | \"Gene\" | \"Github\" | \"Globe\" | \"GlobeBasic\" | \"Grid\" | \"GridDots3\" | \"GridPrivate\" | \"GridPublic\" | \"House\" | \"Hand\" | \"HandOpen\" | \"HandPointer\" | \"Image\" | \"InfoCircle\" | \"InfoSpeechBubble\" | \"Label\" | \"Lasso\" | \"LifeRing\" | \"LightBulb\" | \"LinesDashed3Solid1\" | \"LinesHorizontal3\" | \"Link\" | \"List\" | \"Loading\" | \"Lock\" | \"LockCircle\" | \"Maximize\" | \"Minimize\" | \"Minus\" | \"Open\" | \"Package\" | \"Pause\" | \"People\" | \"Percentage\" | \"Person\" | \"PieChart\" | \"PieChartXMark\" | \"Pin\" | \"PinLocation\" | \"Play\" | \"Plus\" | \"PlusCircle\" | \"ProjectPrivate\" | \"ProjectPublic\" | \"PuzzlePiece\" | \"QuestionMark\" | \"QuestionMarkCircle\" | \"Quote\" | \"Read\" | \"Refresh\" | \"Report\" | \"Rocket\" | \"RotateLeft\" | \"RotateRight\" | \"Save\" | \"Scale\" | \"ScatterPlot\" | \"Search\" | \"SearchLinesHorizontal3\" | \"Send\" | \"Share\" | \"SlidersHorizontal\" | \"Sparkle\" | \"Sparkles\" | \"SpeechBubbles\" | \"SquareOnDashedSquare\" | \"SquareOnSquareArrowDownRight\" | \"Starburst\" | \"Star\" | \"Table\" | \"ThumbsDown\" | \"ThumbsUp\" | \"TrashCan\" | \"TreeDendogram\" | \"TreeHorizontal\" | \"TreeHorizontalPrivate\" | \"TreeHorizontalPublic\" | \"TreeHorizontalTopRightFilled\" | \"TreeVertical\" | \"TriangleDown\" | \"TriangleLeft\" | \"TriangleRight\" | \"TriangleUp\" | \"Update\" | \"Umap\" | \"Upload\" | \"Virus\" | \"VirusCircleS\" | \"Widget\" | \"XMark\" | \"XMarkCircle\""
|
|
11
14
|
},
|
|
12
15
|
"sdsSize": {
|
|
13
|
-
"
|
|
14
|
-
"isRequired": true
|
|
16
|
+
"description": "Required. Which sizes are accepted depends on the icon named in sdsIcon.",
|
|
17
|
+
"isRequired": true,
|
|
18
|
+
"type": "\"s\" | \"xs\" | \"l\" | \"xl\" | \"xxs\""
|
|
15
19
|
},
|
|
16
20
|
"shade": {
|
|
17
|
-
"
|
|
18
|
-
"
|
|
21
|
+
"defaultValue": "500 in light mode, 600 in dark mode",
|
|
22
|
+
"description": "The step within the chosen hue.",
|
|
23
|
+
"isRequired": false,
|
|
24
|
+
"type": "100 | 200 | 300 | 400 | 500 | 600 | 700 | 800"
|
|
25
|
+
},
|
|
26
|
+
"className": {
|
|
27
|
+
"description": "Applied to the SVG. Useful for overriding the fill from a parent component.",
|
|
28
|
+
"isRequired": false,
|
|
29
|
+
"type": "string"
|
|
19
30
|
}
|
|
20
31
|
}
|
|
21
32
|
}
|
|
22
|
-
}
|
|
33
|
+
}
|
|
@@ -2,32 +2,54 @@
|
|
|
2
2
|
"InputCheckbox": {
|
|
3
3
|
"props": {
|
|
4
4
|
"caption": {
|
|
5
|
-
"
|
|
6
|
-
"isRequired": false
|
|
5
|
+
"description": "The caption of the InputCheckbox appears beneath the label in a lighter text color.",
|
|
6
|
+
"isRequired": false,
|
|
7
|
+
"type": "string"
|
|
7
8
|
},
|
|
8
9
|
"disabled": {
|
|
9
|
-
"
|
|
10
|
-
"isRequired": false,
|
|
10
|
+
"defaultValue": false,
|
|
11
11
|
"description": "If `true`, the component is disabled.",
|
|
12
|
-
"
|
|
12
|
+
"isRequired": false,
|
|
13
|
+
"type": "boolean"
|
|
13
14
|
},
|
|
14
15
|
"intent": {
|
|
15
|
-
"
|
|
16
|
-
"
|
|
16
|
+
"defaultValue": "default",
|
|
17
|
+
"description": "Colors the border of the empty box. The checked box always uses the accent color.",
|
|
18
|
+
"isRequired": false,
|
|
19
|
+
"type": "\"default\" | \"negative\" | \"notice\" | \"positive\""
|
|
17
20
|
},
|
|
18
21
|
"label": {
|
|
19
|
-
"
|
|
20
|
-
"isRequired": false
|
|
22
|
+
"description": "The label of the InputCheckbox. When omitted, the box renders on its own with no label element.",
|
|
23
|
+
"isRequired": false,
|
|
24
|
+
"type": "ReactNode"
|
|
21
25
|
},
|
|
22
26
|
"stage": {
|
|
23
|
-
"
|
|
24
|
-
"isRequired": false
|
|
27
|
+
"description": "Sets the state of the checkbox. It overrides checked, so a checkbox with a stage only changes when you recompute the stage from an onChange handler. Omit it to let the checkbox manage its own state.",
|
|
28
|
+
"isRequired": false,
|
|
29
|
+
"type": "\"checked\" | \"indeterminate\" | \"unchecked\""
|
|
25
30
|
},
|
|
26
31
|
"classes": {
|
|
27
|
-
"
|
|
32
|
+
"defaultValue": {},
|
|
33
|
+
"description": "Class names for the internal elements: root, labelCaptionContainer, label,\ncaption, checkbox, checkboxCheckedIcon, checkboxDefaultIcon, and\ncheckboxIndeterminateIcon.",
|
|
34
|
+
"isRequired": false,
|
|
35
|
+
"type": "{ root?: string | undefined; labelCaptionContainer?: string | undefined; label?: string | undefined; caption?: string | undefined; checkbox?: string | undefined; checkboxCheckedIcon?: string | undefined; checkboxDefaultIcon?: string | undefined; checkboxIndeterminateIcon?: string | undefined; }"
|
|
36
|
+
},
|
|
37
|
+
"checkboxProps": {
|
|
38
|
+
"defaultValue": {},
|
|
39
|
+
"description": "Directly pass these props to the underlying MUI checkbox.",
|
|
40
|
+
"isRequired": false,
|
|
41
|
+
"type": "Partial<CheckboxProps>"
|
|
42
|
+
},
|
|
43
|
+
"checked": {
|
|
44
|
+
"description": "If `true`, the component is checked.",
|
|
45
|
+
"isRequired": false,
|
|
46
|
+
"type": "boolean"
|
|
47
|
+
},
|
|
48
|
+
"onChange": {
|
|
49
|
+
"description": "Callback fired when the state is changed.\n@param event The event source of the callback.\nYou can pull out the new checked state by accessing `event.target.checked` (boolean).",
|
|
28
50
|
"isRequired": false,
|
|
29
|
-
"
|
|
51
|
+
"type": "function"
|
|
30
52
|
}
|
|
31
53
|
}
|
|
32
54
|
}
|
|
33
|
-
}
|
|
55
|
+
}
|