@czi-sds/mcp 0.3.0 → 0.4.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/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/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 +44 -132
- 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,14 +4,14 @@ To help control the amount of information presented to the user, Accordions are
|
|
|
4
4
|
|
|
5
5
|
## Overview
|
|
6
6
|
|
|
7
|
-
|
|
|
8
|
-
| --- |
|
|
7
|
+
| | In Figma | | | Meets Accessibility | | | In napari hub + .org Codebases |
|
|
8
|
+
| --- | -------- | --- | --- | ------------------- | --- | --- | ------------------------------ |
|
|
9
9
|
|
|
10
10
|
Accordions are elements that can be used by designers to hide or reveal content. Use the header text to communicate what type of content the user can expect to see when the Accordion is expanded.
|
|
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
|
-
|
|
14
|
+
|
|
15
15
|
|
|
16
16
|
---
|
|
17
17
|
|
|
@@ -25,12 +25,12 @@ These rules establish how much margin should exist between and around elements.
|
|
|
25
25
|
|
|
26
26
|
## Accordion Component
|
|
27
27
|
|
|
28
|
-
| Below you will find an interactive Storybook iframe for Accordions.
|
|
29
|
-
|
|
|
28
|
+
| Below you will find an interactive Storybook iframe for Accordions. 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:** Accordion |
|
|
29
|
+
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --- | -------------------------------- |
|
|
30
30
|
|
|
31
31
|
---
|
|
32
32
|
|
|
33
|
-
>This component appears as it is in the default SDS codebase. Once imported into the napari hub or napari.org codebases, use a theme file to enable the napari visual appearance customization.
|
|
33
|
+
> This component appears as it is in the default SDS codebase. Once imported into the napari hub or napari.org codebases, use a theme file to enable the napari visual appearance customization.
|
|
34
34
|
|
|
35
35
|
### Accordion
|
|
36
36
|
|
|
@@ -42,8 +42,8 @@ To help control the amount of information presented to the user, Accordions are
|
|
|
42
42
|
|
|
43
43
|
## Overview
|
|
44
44
|
|
|
45
|
-
|
|
|
46
|
-
| --- |
|
|
45
|
+
| | In Figma | | | Meets Accessibility | | | In CZ ID Codebase |
|
|
46
|
+
| --- | -------- | --- | --- | ------------------- | --- | --- | ----------------- |
|
|
47
47
|
|
|
48
48
|
Accordions are elements that can be used by designers to hide or reveal content. Use the header text to communicate what type of content the user can expect to see when the Accordion is expanded. They can optionally include a bottom-positioned divider line to help visually separate an Accordion from the one below it.
|
|
49
49
|
|
|
@@ -65,8 +65,8 @@ These rules establish how much margin should exist between and around elements.
|
|
|
65
65
|
|
|
66
66
|
## Accordion Component
|
|
67
67
|
|
|
68
|
-
| Below you will find an interactive Storybook iframe for Accordions.
|
|
69
|
-
|
|
|
68
|
+
| Below you will find an interactive Storybook iframe for Accordions. 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:** Accordion |
|
|
69
|
+
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --- | -------------------------------- |
|
|
70
70
|
|
|
71
71
|
---
|
|
72
72
|
|
|
@@ -74,7 +74,7 @@ These rules establish how much margin should exist between and around elements.
|
|
|
74
74
|
|
|
75
75
|
Storybook
|
|
76
76
|
|
|
77
|
-
|
|
77
|
+
|
|
78
78
|
|
|
79
79
|
---
|
|
80
80
|
|
|
@@ -84,8 +84,8 @@ Accordions are expandable/collapsable elements that hide and reveal content to h
|
|
|
84
84
|
|
|
85
85
|
## Overview
|
|
86
86
|
|
|
87
|
-
|
|
|
88
|
-
| --- |
|
|
87
|
+
| | In Figma | | | Meets Accessibility | | | In Code |
|
|
88
|
+
| --- | -------- | --- | --- | ------------------- | --- | --- | ------- |
|
|
89
89
|
|
|
90
90
|
### Accordion Variants
|
|
91
91
|
|
|
@@ -107,8 +107,8 @@ Default
|
|
|
107
107
|
|
|
108
108
|
Left-aligned toggles works well when the Accordion's container is wide, because a right-aligned toggle would be far from the header text and it is less obvious that the two elements are related.
|
|
109
109
|
|
|
110
|
-
| Default | Default + Divider | Default + Subtitle
|
|
111
|
-
|
|
|
110
|
+
| Default | Default + Divider | Default + Subtitle | Expanded |
|
|
111
|
+
| ------- | ----------------- | ------------------ | -------- |
|
|
112
112
|
|
|
113
113
|
---
|
|
114
114
|
|
|
@@ -117,7 +117,7 @@ Left-aligned toggles works well when the Accordion's container is wide, because
|
|
|
117
117
|
Use when there's a preference for the Accordion toggle to appear to the right of its header text. The toggle icon right aligns to the right edge of the Accordion's container.
|
|
118
118
|
|
|
119
119
|
| Default | Default + Divider | Default + Subtitle | Expanded |
|
|
120
|
-
|
|
|
120
|
+
| ------- | ----------------- | ------------------ | -------- |
|
|
121
121
|
|
|
122
122
|
---
|
|
123
123
|
|
|
@@ -127,7 +127,7 @@ These rules establish how much margin should exist between and around elements.
|
|
|
127
127
|
|
|
128
128
|
## Code
|
|
129
129
|
|
|
130
|
-
|
|
130
|
+
> **Note:** The code examples below must install dependencies before displaying and may take extra time to load
|
|
131
131
|
|
|
132
132
|
## Accordion
|
|
133
133
|
|
|
@@ -139,14 +139,14 @@ The component's source code in the SDS codebase can be found here.
|
|
|
139
139
|
|
|
140
140
|
The SDS `Accordion` component introduces a couple new props that aren't part of the MUI version, that make it easier to implement options that may be needed in CZI products:
|
|
141
141
|
|
|
142
|
-
|
|
143
|
-
|
|
142
|
+
- **`useDivider`\*\***:\*\* this boolean prop adds a horizontal line below the accordion, which can help to visually separate it from other accordions if they are stacked
|
|
143
|
+
- **`togglePosition`\*\***:\*\* takes `right` (default) or `left` as values, and specifies where the baked-in Chevron icon that acts as a visual toggle sits
|
|
144
144
|
|
|
145
|
-
Additionally, there are a couple of MUI props that are not currently supported by the SDS `Accordion`
|
|
145
|
+
Additionally, there are a couple of MUI props that are not currently supported by the SDS `Accordion` component:
|
|
146
146
|
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
147
|
+
- **`defaultExpanded`\*\***:\*\* this boolean prop has no effect when used
|
|
148
|
+
- **`expanded`\*\***:\*\* this boolean prop is not recommended to be used with the SDS `Accordion` component, because it forces the accordion to remain open even when the user clicks it as though to close it
|
|
149
|
+
- **`disableGutters`\*\***:\*\* this boolean prop is not needed with the SDS accordion design, and has no effect
|
|
150
150
|
|
|
151
151
|
### MUI Documentation
|
|
152
152
|
|
|
@@ -156,15 +156,15 @@ Documentation for the underlying MUI component can be found here.
|
|
|
156
156
|
|
|
157
157
|
Any custom SDS props and MUI props required for implementation are found on the table below. See the MUI documentation for additional optional props.
|
|
158
158
|
|
|
159
|
-
| Name
|
|
160
|
-
|
|
|
161
|
-
| `id`
|
|
162
|
-
| `disabled`
|
|
163
|
-
| `togglePosition` | `"right"`
|
|
164
|
-
| `subtitle`
|
|
165
|
-
| `useDivider`
|
|
159
|
+
| Name | Type | Default | Description |
|
|
160
|
+
| ---------------- | ----------- | ------- | ---------------------------------------------------------------------------------------------------------------------------- | ------------------------------------ |
|
|
161
|
+
| `id` | `string` | `-` | A unique id for each accordion item. |
|
|
162
|
+
| `disabled` | `bool` | `false` | The `disabled` prop, when set to true, prevents user interaction with the Accordion component, keeping it in a static state. |
|
|
163
|
+
| `togglePosition` | `"right"` ` | "left"` | `right` | Position of the toggle chevron icon. |
|
|
164
|
+
| `subtitle` | `string` | `-` | A text that will be displayed as a subtitle beneath the accordion title. |
|
|
165
|
+
| `useDivider` | `bool` | `false` | Display a divider line between accordion items. |
|
|
166
166
|
|
|
167
|
-
There are more props that can be used with the `InputDropdown`
|
|
167
|
+
There are more props that can be used with the `InputDropdown` component, via those available to MUI's `Accordion` component.
|
|
168
168
|
|
|
169
169
|
### Code examples
|
|
170
170
|
|
|
@@ -197,13 +197,11 @@ h1 {
|
|
|
197
197
|
|
|
198
198
|
```json
|
|
199
199
|
{
|
|
200
|
-
"include": [
|
|
201
|
-
"./**/*"
|
|
202
|
-
],
|
|
200
|
+
"include": ["./**/*"],
|
|
203
201
|
"compilerOptions": {
|
|
204
202
|
"strict": true,
|
|
205
203
|
"esModuleInterop": true,
|
|
206
|
-
"lib": [
|
|
204
|
+
"lib": ["dom", "es2015"],
|
|
207
205
|
"jsx": "react-jsx"
|
|
208
206
|
}
|
|
209
207
|
}
|
|
@@ -213,17 +211,18 @@ h1 {
|
|
|
213
211
|
|
|
214
212
|
```tsx
|
|
215
213
|
// Most minimal Accordion (just has the basic requirements)
|
|
216
|
-
|
|
217
|
-
import {
|
|
214
|
+
|
|
215
|
+
import {
|
|
216
|
+
Accordion,
|
|
217
|
+
AccordionHeader,
|
|
218
|
+
AccordionDetails,
|
|
219
|
+
} from "@czi-sds/components";
|
|
218
220
|
import "./styles.css";
|
|
219
221
|
|
|
220
222
|
function App() {
|
|
221
223
|
return (
|
|
222
224
|
<div className="app">
|
|
223
|
-
<Accordion
|
|
224
|
-
id="accordion-1"
|
|
225
|
-
useDivider={false}
|
|
226
|
-
togglePosition="right">
|
|
225
|
+
<Accordion id="accordion-1" useDivider={false} togglePosition="right">
|
|
227
226
|
<AccordionHeader id={`accordion-1-header`}>
|
|
228
227
|
Accordion Header
|
|
229
228
|
</AccordionHeader>
|
|
@@ -276,13 +275,12 @@ root.render(
|
|
|
276
275
|
<RootApp />
|
|
277
276
|
</React.StrictMode>
|
|
278
277
|
);
|
|
279
|
-
|
|
280
278
|
```
|
|
281
279
|
|
|
282
280
|
**/public/index.html**
|
|
283
281
|
|
|
284
282
|
```html
|
|
285
|
-
<!
|
|
283
|
+
<!doctype html>
|
|
286
284
|
<html lang="en">
|
|
287
285
|
<head>
|
|
288
286
|
<meta charset="UTF-8" />
|
|
@@ -303,13 +301,24 @@ root.render(
|
|
|
303
301
|
<div id="root"></div>
|
|
304
302
|
</body>
|
|
305
303
|
</html>
|
|
306
|
-
|
|
307
304
|
```
|
|
308
305
|
|
|
309
306
|
**/package.json**
|
|
310
307
|
|
|
311
308
|
```json
|
|
312
|
-
{
|
|
309
|
+
{
|
|
310
|
+
"dependencies": {
|
|
311
|
+
"react": "^18.0.0",
|
|
312
|
+
"react-dom": "^18.0.0",
|
|
313
|
+
"react-scripts": "^4.0.0"
|
|
314
|
+
},
|
|
315
|
+
"devDependencies": {
|
|
316
|
+
"@types/react": "^18.0.0",
|
|
317
|
+
"@types/react-dom": "^18.0.0",
|
|
318
|
+
"typescript": "^4.0.0"
|
|
319
|
+
},
|
|
320
|
+
"main": "/index.tsx"
|
|
321
|
+
}
|
|
313
322
|
```
|
|
314
323
|
|
|
315
324
|
---
|
|
@@ -343,13 +352,11 @@ h1 {
|
|
|
343
352
|
|
|
344
353
|
```json
|
|
345
354
|
{
|
|
346
|
-
"include": [
|
|
347
|
-
"./**/*"
|
|
348
|
-
],
|
|
355
|
+
"include": ["./**/*"],
|
|
349
356
|
"compilerOptions": {
|
|
350
357
|
"strict": true,
|
|
351
358
|
"esModuleInterop": true,
|
|
352
|
-
"lib": [
|
|
359
|
+
"lib": ["dom", "es2015"],
|
|
353
360
|
"jsx": "react-jsx"
|
|
354
361
|
}
|
|
355
362
|
}
|
|
@@ -359,56 +366,63 @@ h1 {
|
|
|
359
366
|
|
|
360
367
|
```tsx
|
|
361
368
|
// Most minimal InputDropdown (just has the basic requirements)
|
|
362
|
-
|
|
363
|
-
import {
|
|
369
|
+
|
|
370
|
+
import {
|
|
371
|
+
Accordion,
|
|
372
|
+
AccordionHeader,
|
|
373
|
+
AccordionDetails,
|
|
374
|
+
} from "@czi-sds/components";
|
|
364
375
|
import "./styles.css";
|
|
365
376
|
|
|
366
377
|
function App() {
|
|
367
378
|
return (
|
|
368
379
|
<div className="app">
|
|
369
|
-
<Accordion
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
380
|
+
<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
|
+
>
|
|
374
385
|
Product Features
|
|
375
386
|
</AccordionHeader>
|
|
376
387
|
<AccordionDetails>
|
|
377
|
-
Unveil the multitude of features that make our product stand out. From
|
|
378
|
-
integration with your existing workflow to advanced
|
|
379
|
-
each feature has been meticulously crafted to
|
|
380
|
-
this section to discover how our product
|
|
388
|
+
Unveil the multitude of features that make our product stand out. From
|
|
389
|
+
seamless integration with your existing workflow to advanced
|
|
390
|
+
customization options, each feature has been meticulously crafted to
|
|
391
|
+
empower you. Navigate through this section to discover how our product
|
|
392
|
+
can revolutionize the way you work.
|
|
381
393
|
</AccordionDetails>
|
|
382
394
|
</Accordion>
|
|
383
|
-
<Accordion
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
395
|
+
<Accordion id="accordion-2" useDivider={true} togglePosition="right">
|
|
396
|
+
<AccordionHeader
|
|
397
|
+
id={`accordion-2-header`}
|
|
398
|
+
subtitle="Answers to commonly asked questions about our service"
|
|
399
|
+
>
|
|
388
400
|
FAQ Section
|
|
389
401
|
</AccordionHeader>
|
|
390
402
|
<AccordionDetails>
|
|
391
|
-
Delve into a comprehensive compilation of frequently asked questions
|
|
392
|
-
detailed answers. This section is your go-to resource for
|
|
393
|
-
you might have about our service. Whether it's
|
|
394
|
-
or functionality, we've got you covered
|
|
395
|
-
ensuring a smooth and informed
|
|
403
|
+
Delve into a comprehensive compilation of frequently asked questions
|
|
404
|
+
and their detailed answers. This section is your go-to resource for
|
|
405
|
+
clarifying any doubts you might have about our service. Whether it's
|
|
406
|
+
about pricing, compatibility, or functionality, we've got you covered
|
|
407
|
+
with clear and concise explanations, ensuring a smooth and informed
|
|
408
|
+
experience.
|
|
396
409
|
</AccordionDetails>
|
|
397
410
|
</Accordion>
|
|
398
|
-
|
|
399
|
-
<Accordion
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
411
|
+
|
|
412
|
+
<Accordion id="accordion-3" useDivider={false} togglePosition="right">
|
|
413
|
+
<AccordionHeader
|
|
414
|
+
id={`accordion-3-header`}
|
|
415
|
+
subtitle="Enhance your skills with our collection of educational materials"
|
|
416
|
+
>
|
|
404
417
|
Learning Resources
|
|
405
418
|
</AccordionHeader>
|
|
406
419
|
<AccordionDetails>
|
|
407
|
-
Embark on a journey of continuous improvement with our treasure trove
|
|
408
|
-
materials. This section hosts an array of tutorials,
|
|
409
|
-
articles designed to enhance your skills and
|
|
410
|
-
Whether you're a beginner or an expert,
|
|
411
|
-
insights to help you grow and excel in
|
|
420
|
+
Embark on a journey of continuous improvement with our treasure trove
|
|
421
|
+
of learning materials. This section hosts an array of tutorials,
|
|
422
|
+
guides, and insightful articles designed to enhance your skills and
|
|
423
|
+
deepen your understanding. Whether you're a beginner or an expert,
|
|
424
|
+
these resources offer valuable insights to help you grow and excel in
|
|
425
|
+
your endeavors.
|
|
412
426
|
</AccordionDetails>
|
|
413
427
|
</Accordion>
|
|
414
428
|
</div>
|
|
@@ -455,13 +469,12 @@ root.render(
|
|
|
455
469
|
<RootApp />
|
|
456
470
|
</React.StrictMode>
|
|
457
471
|
);
|
|
458
|
-
|
|
459
472
|
```
|
|
460
473
|
|
|
461
474
|
**/public/index.html**
|
|
462
475
|
|
|
463
476
|
```html
|
|
464
|
-
<!
|
|
477
|
+
<!doctype html>
|
|
465
478
|
<html lang="en">
|
|
466
479
|
<head>
|
|
467
480
|
<meta charset="UTF-8" />
|
|
@@ -482,13 +495,24 @@ root.render(
|
|
|
482
495
|
<div id="root"></div>
|
|
483
496
|
</body>
|
|
484
497
|
</html>
|
|
485
|
-
|
|
486
498
|
```
|
|
487
499
|
|
|
488
500
|
**/package.json**
|
|
489
501
|
|
|
490
502
|
```json
|
|
491
|
-
{
|
|
503
|
+
{
|
|
504
|
+
"dependencies": {
|
|
505
|
+
"react": "^18.0.0",
|
|
506
|
+
"react-dom": "^18.0.0",
|
|
507
|
+
"react-scripts": "^4.0.0"
|
|
508
|
+
},
|
|
509
|
+
"devDependencies": {
|
|
510
|
+
"@types/react": "^18.0.0",
|
|
511
|
+
"@types/react-dom": "^18.0.0",
|
|
512
|
+
"typescript": "^4.0.0"
|
|
513
|
+
},
|
|
514
|
+
"main": "/index.tsx"
|
|
515
|
+
}
|
|
492
516
|
```
|
|
493
517
|
|
|
494
518
|
---
|
|
@@ -522,13 +546,11 @@ h1 {
|
|
|
522
546
|
|
|
523
547
|
```json
|
|
524
548
|
{
|
|
525
|
-
"include": [
|
|
526
|
-
"./**/*"
|
|
527
|
-
],
|
|
549
|
+
"include": ["./**/*"],
|
|
528
550
|
"compilerOptions": {
|
|
529
551
|
"strict": true,
|
|
530
552
|
"esModuleInterop": true,
|
|
531
|
-
"lib": [
|
|
553
|
+
"lib": ["dom", "es2015"],
|
|
532
554
|
"jsx": "react-jsx"
|
|
533
555
|
}
|
|
534
556
|
}
|
|
@@ -538,57 +560,68 @@ h1 {
|
|
|
538
560
|
|
|
539
561
|
```tsx
|
|
540
562
|
// Most minimal InputDropdown (just has the basic requirements)
|
|
541
|
-
|
|
542
|
-
import {
|
|
563
|
+
|
|
564
|
+
import {
|
|
565
|
+
Accordion,
|
|
566
|
+
AccordionHeader,
|
|
567
|
+
AccordionDetails,
|
|
568
|
+
} from "@czi-sds/components";
|
|
543
569
|
import "./styles.css";
|
|
544
570
|
|
|
545
571
|
function App() {
|
|
546
572
|
return (
|
|
547
573
|
<div className="app">
|
|
548
|
-
<Accordion
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
574
|
+
<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
|
+
>
|
|
553
579
|
Product Features
|
|
554
580
|
</AccordionHeader>
|
|
555
581
|
<AccordionDetails>
|
|
556
|
-
Unveil the multitude of features that make our product stand out. From
|
|
557
|
-
integration with your existing workflow to advanced
|
|
558
|
-
each feature has been meticulously crafted to
|
|
559
|
-
this section to discover how our product
|
|
582
|
+
Unveil the multitude of features that make our product stand out. From
|
|
583
|
+
seamless integration with your existing workflow to advanced
|
|
584
|
+
customization options, each feature has been meticulously crafted to
|
|
585
|
+
empower you. Navigate through this section to discover how our product
|
|
586
|
+
can revolutionize the way you work.
|
|
560
587
|
</AccordionDetails>
|
|
561
588
|
</Accordion>
|
|
562
589
|
<Accordion
|
|
563
590
|
disabled={true}
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
591
|
+
id="accordion-2"
|
|
592
|
+
useDivider={true}
|
|
593
|
+
togglePosition="right"
|
|
594
|
+
>
|
|
595
|
+
<AccordionHeader
|
|
596
|
+
id={`accordion-2-header`}
|
|
597
|
+
subtitle="Answers to commonly asked questions about our service"
|
|
598
|
+
>
|
|
568
599
|
FAQ Section
|
|
569
600
|
</AccordionHeader>
|
|
570
601
|
<AccordionDetails>
|
|
571
|
-
Delve into a comprehensive compilation of frequently asked questions
|
|
572
|
-
detailed answers. This section is your go-to resource for
|
|
573
|
-
you might have about our service. Whether it's
|
|
574
|
-
or functionality, we've got you covered
|
|
575
|
-
ensuring a smooth and informed
|
|
602
|
+
Delve into a comprehensive compilation of frequently asked questions
|
|
603
|
+
and their detailed answers. This section is your go-to resource for
|
|
604
|
+
clarifying any doubts you might have about our service. Whether it's
|
|
605
|
+
about pricing, compatibility, or functionality, we've got you covered
|
|
606
|
+
with clear and concise explanations, ensuring a smooth and informed
|
|
607
|
+
experience.
|
|
576
608
|
</AccordionDetails>
|
|
577
609
|
</Accordion>
|
|
578
|
-
|
|
579
|
-
<Accordion
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
610
|
+
|
|
611
|
+
<Accordion id="accordion-3" useDivider={false} togglePosition="right">
|
|
612
|
+
<AccordionHeader
|
|
613
|
+
id={`accordion-3-header`}
|
|
614
|
+
subtitle="Enhance your skills with our collection of educational materials"
|
|
615
|
+
>
|
|
584
616
|
Learning Resources
|
|
585
617
|
</AccordionHeader>
|
|
586
618
|
<AccordionDetails>
|
|
587
|
-
Embark on a journey of continuous improvement with our treasure trove
|
|
588
|
-
materials. This section hosts an array of tutorials,
|
|
589
|
-
articles designed to enhance your skills and
|
|
590
|
-
Whether you're a beginner or an expert,
|
|
591
|
-
insights to help you grow and excel in
|
|
619
|
+
Embark on a journey of continuous improvement with our treasure trove
|
|
620
|
+
of learning materials. This section hosts an array of tutorials,
|
|
621
|
+
guides, and insightful articles designed to enhance your skills and
|
|
622
|
+
deepen your understanding. Whether you're a beginner or an expert,
|
|
623
|
+
these resources offer valuable insights to help you grow and excel in
|
|
624
|
+
your endeavors.
|
|
592
625
|
</AccordionDetails>
|
|
593
626
|
</Accordion>
|
|
594
627
|
</div>
|
|
@@ -635,13 +668,12 @@ root.render(
|
|
|
635
668
|
<RootApp />
|
|
636
669
|
</React.StrictMode>
|
|
637
670
|
);
|
|
638
|
-
|
|
639
671
|
```
|
|
640
672
|
|
|
641
673
|
**/public/index.html**
|
|
642
674
|
|
|
643
675
|
```html
|
|
644
|
-
<!
|
|
676
|
+
<!doctype html>
|
|
645
677
|
<html lang="en">
|
|
646
678
|
<head>
|
|
647
679
|
<meta charset="UTF-8" />
|
|
@@ -662,14 +694,24 @@ root.render(
|
|
|
662
694
|
<div id="root"></div>
|
|
663
695
|
</body>
|
|
664
696
|
</html>
|
|
665
|
-
|
|
666
697
|
```
|
|
667
698
|
|
|
668
699
|
**/package.json**
|
|
669
700
|
|
|
670
701
|
```json
|
|
671
|
-
{
|
|
702
|
+
{
|
|
703
|
+
"dependencies": {
|
|
704
|
+
"react": "^18.0.0",
|
|
705
|
+
"react-dom": "^18.0.0",
|
|
706
|
+
"react-scripts": "^4.0.0"
|
|
707
|
+
},
|
|
708
|
+
"devDependencies": {
|
|
709
|
+
"@types/react": "^18.0.0",
|
|
710
|
+
"@types/react-dom": "^18.0.0",
|
|
711
|
+
"typescript": "^4.0.0"
|
|
712
|
+
},
|
|
713
|
+
"main": "/index.tsx"
|
|
714
|
+
}
|
|
672
715
|
```
|
|
673
716
|
|
|
674
717
|
---
|
|
675
|
-
|