@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.
Files changed (145) 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/zeroheight-exports/Accordion.md +167 -125
  46. package/data/zeroheight-exports/Banner.md +71 -48
  47. package/data/zeroheight-exports/Borders.md +72 -73
  48. package/data/zeroheight-exports/Buttons.md +375 -330
  49. package/data/zeroheight-exports/Callout.md +138 -116
  50. package/data/zeroheight-exports/Colors.md +254 -255
  51. package/data/zeroheight-exports/Content-Card.md +36 -37
  52. package/data/zeroheight-exports/Contributing-to-SDS.md +34 -35
  53. package/data/zeroheight-exports/Control-Inputs.md +289 -234
  54. package/data/zeroheight-exports/Corners.md +63 -64
  55. package/data/zeroheight-exports/Cover-page.md +0 -1
  56. package/data/zeroheight-exports/Dialog.md +237 -179
  57. package/data/zeroheight-exports/Downloads.md +10 -11
  58. package/data/zeroheight-exports/Drop-Shadows.md +40 -41
  59. package/data/zeroheight-exports/Dropdown-Input.md +158 -127
  60. package/data/zeroheight-exports/Dropdown-Menu.md +814 -718
  61. package/data/zeroheight-exports/Element-Status-Tracker.md +191 -192
  62. package/data/zeroheight-exports/Field-Inputs.md +149 -130
  63. package/data/zeroheight-exports/Filters.md +114 -94
  64. package/data/zeroheight-exports/Getting-Started.md +112 -249
  65. package/data/zeroheight-exports/Hero.md +43 -37
  66. package/data/zeroheight-exports/Icons.md +205 -206
  67. package/data/zeroheight-exports/Intent.md +6 -7
  68. package/data/zeroheight-exports/Introduction-to-Bases.md +8 -9
  69. package/data/zeroheight-exports/Introduction-to-Cells.md +11 -12
  70. package/data/zeroheight-exports/Introduction-to-DNA.md +8 -9
  71. package/data/zeroheight-exports/Introduction-to-Genes.md +8 -9
  72. package/data/zeroheight-exports/Introduction.md +52 -53
  73. package/data/zeroheight-exports/Link.md +50 -37
  74. package/data/zeroheight-exports/Lists.md +78 -63
  75. package/data/zeroheight-exports/Loading-Indicator.md +7 -8
  76. package/data/zeroheight-exports/Navigation.md +163 -142
  77. package/data/zeroheight-exports/Notification.md +132 -102
  78. package/data/zeroheight-exports/Panel.md +231 -115
  79. package/data/zeroheight-exports/Responsive-Design.md +35 -32
  80. package/data/zeroheight-exports/Search-Input.md +9 -10
  81. package/data/zeroheight-exports/Search.md +87 -104
  82. package/data/zeroheight-exports/Segmented-Control.md +68 -45
  83. package/data/zeroheight-exports/Spacing.md +210 -211
  84. package/data/zeroheight-exports/Table.md +414 -302
  85. package/data/zeroheight-exports/Tabs.md +126 -98
  86. package/data/zeroheight-exports/Tags.md +148 -118
  87. package/data/zeroheight-exports/Text-Link.md +32 -33
  88. package/data/zeroheight-exports/Theming.md +48 -29
  89. package/data/zeroheight-exports/Tooltips.md +253 -237
  90. package/data/zeroheight-exports/Typography.md +463 -464
  91. package/dist/stdio.js +44 -132
  92. package/package.json +3 -4
  93. package/data/component-props/Chip.json +0 -73
  94. package/data/component-props/List.json +0 -43
  95. package/data/component-props/Menu.json +0 -48
  96. package/data/component-props/Table.json +0 -26
  97. package/data/component-props-storybook/Accordion-storybook.json +0 -45
  98. package/data/component-props-storybook/Alert-storybook.json +0 -30
  99. package/data/component-props-storybook/Autocomplete-storybook.json +0 -67
  100. package/data/component-props-storybook/Banner-storybook.json +0 -78
  101. package/data/component-props-storybook/Button-storybook.json +0 -115
  102. package/data/component-props-storybook/ButtonDropdown-storybook.json +0 -73
  103. package/data/component-props-storybook/ButtonIcon-storybook.json +0 -60
  104. package/data/component-props-storybook/ButtonToggle-storybook.json +0 -68
  105. package/data/component-props-storybook/Callout-storybook.json +0 -90
  106. package/data/component-props-storybook/CellBasic-storybook.json +0 -138
  107. package/data/component-props-storybook/CellComponent-storybook.json +0 -48
  108. package/data/component-props-storybook/CellHeader-storybook.json +0 -71
  109. package/data/component-props-storybook/Chip-storybook.json +0 -26
  110. package/data/component-props-storybook/ComplexFilter-storybook.json +0 -60
  111. package/data/component-props-storybook/ContentCard-storybook.json +0 -175
  112. package/data/component-props-storybook/Dialog-storybook.json +0 -56
  113. package/data/component-props-storybook/Dropdown-storybook.json +0 -93
  114. package/data/component-props-storybook/DropdownMenu-storybook.json +0 -73
  115. package/data/component-props-storybook/HeatmapChart-storybook.json +0 -55
  116. package/data/component-props-storybook/Icon-storybook.json +0 -75
  117. package/data/component-props-storybook/InputCheckbox-storybook.json +0 -57
  118. package/data/component-props-storybook/InputDropdown-storybook.json +0 -80
  119. package/data/component-props-storybook/InputRadio-storybook.json +0 -56
  120. package/data/component-props-storybook/InputSearch-storybook.json +0 -55
  121. package/data/component-props-storybook/InputSlider-storybook.json +0 -55
  122. package/data/component-props-storybook/InputText-storybook.json +0 -59
  123. package/data/component-props-storybook/InputToggle-storybook.json +0 -42
  124. package/data/component-props-storybook/Link-storybook.json +0 -50
  125. package/data/component-props-storybook/List-storybook.json +0 -26
  126. package/data/component-props-storybook/LoadingIndicator-storybook.json +0 -34
  127. package/data/component-props-storybook/Menu-storybook.json +0 -26
  128. package/data/component-props-storybook/MenuItem-storybook.json +0 -74
  129. package/data/component-props-storybook/MenuSelect-storybook.json +0 -38
  130. package/data/component-props-storybook/NavigationFooter-storybook.json +0 -67
  131. package/data/component-props-storybook/NavigationHeader-storybook.json +0 -115
  132. package/data/component-props-storybook/NavigationJumpTo-storybook.json +0 -41
  133. package/data/component-props-storybook/Notification-storybook.json +0 -89
  134. package/data/component-props-storybook/Pagination-storybook.json +0 -50
  135. package/data/component-props-storybook/Panel-storybook.json +0 -52
  136. package/data/component-props-storybook/SegmentedControl-storybook.json +0 -30
  137. package/data/component-props-storybook/Table-storybook.json +0 -26
  138. package/data/component-props-storybook/TableHeader-storybook.json +0 -26
  139. package/data/component-props-storybook/TableRow-storybook.json +0 -62
  140. package/data/component-props-storybook/Tabs-storybook.json +0 -45
  141. package/data/component-props-storybook/Tag-storybook.json +0 -78
  142. package/data/component-props-storybook/TagFilter-storybook.json +0 -30
  143. package/data/component-props-storybook/Tooltip-storybook.json +0 -85
  144. package/data/component-props-storybook/TooltipCondensed-storybook.json +0 -38
  145. package/data/component-props-storybook/TooltipTable-storybook.json +0 -47
@@ -6,8 +6,8 @@ Hero is located at the top of the page above all other content and features key
6
6
 
7
7
  ## Overview
8
8
 
9
- | | In Figma | | | Meets Accessibility | | | In Code |
10
- | --- | --- | --- | --- | --- | --- | --- | --- |
9
+ | | In Figma | | | Meets Accessibility | | | In Code |
10
+ | --- | -------- | --- | --- | ------------------- | --- | --- | ------- |
11
11
 
12
12
  The Hero component was designed to support a wide range of potential product needs, giving teams flexibility to implement content in their applications as desired. Teams can fill the background with their visual of choice (image, video, color, gradient, etc.), overlay any combination of elements (text, image, buttons, links, etc.) on top of their chosen background, as well as turn on a darkening mask to make text easier to read and / or a darkening vignette positioned at the top of the container to make the transition from Header Navigation to Hero visually smooth.
13
13
 
@@ -18,77 +18,77 @@ When displayed at Large Breakpoints, the content area has a `max-width` of `1024
18
18
  For example: if the screen is `1200px` wide, the width of the content area would be `960px` (`1200px-120px-120px = 960px`). If, however, the screen is `1500px` wide, the width of the content area would max out and be `1024px` (`1500px-120px-120px = 1260px`) since `1260px` is larger than `1024px`, and thus a `width` of `1024px` would be used for the content area. This ensures that, even when viewed on extra wide displays, the overlay content will always be viewable by users.
19
19
 
20
20
  | Breakpoint: Large | Breakpoint: Medium | Breakpoint: Small |
21
- | --- | --- | --- |
21
+ | ----------------- | ------------------ | ----------------- |
22
22
 
23
23
  #### Background Fill Options
24
24
 
25
25
  The Hero component background can be filled with any CSS color, including gradients, or any type of media such as images, videos, GIFs, etc.
26
26
 
27
27
  | Color | Media |
28
- | --- | --- |
28
+ | ----- | ----- |
29
29
 
30
30
  #### Darkening Mask
31
31
 
32
32
  The darkening mask is an overlay element used to subtly dim the Hero's background, thereby enhancing the visibility and focus on the overlay elements; the mask's opacity can be set by the team implementing it.
33
33
 
34
34
  | Disabled | Enabled |
35
- | --- | --- |
35
+ | -------- | ------- |
36
36
 
37
37
  #### Darkening Vignette
38
38
 
39
39
  The darkening vignette is an overlay element positioned at the top of Hero that subtly fades from solid to transparent, smoothing the transition from the Header Navigation to the Hero background.
40
40
 
41
41
  | Disabled | Enabled |
42
- | --- | --- |
42
+ | -------- | ------- |
43
43
 
44
44
  #### Overlay Content Visibility
45
45
 
46
46
  Overlay content elements (title text, caption text, and content slot) can be used or not depending on teams' needs; the examples below show one element hidden at a time to demonstrate, but any combination of elements can be used.
47
47
 
48
48
  | All elements displayed | Title hidden | Caption hidden | Content slot hidden |
49
- | --- | --- | --- | --- |
49
+ | ---------------------- | ------------ | -------------- | ------------------- |
50
50
 
51
51
  #### Text Alignment Options
52
52
 
53
53
  Alignment settings apply to both title and caption text.
54
54
 
55
55
  | Left-aligned | Center-aligned | Right-aligned |
56
- | --- | --- | --- |
56
+ | ------------ | -------------- | ------------- |
57
57
 
58
58
  #### Overlay Content Position
59
59
 
60
60
  | Top-left | Top | Top-right |
61
- | --- | --- | --- |
61
+ | -------- | --- | --------- |
62
62
 
63
63
  | Left | Center | Right |
64
- | --- | --- | --- |
64
+ | ---- | ------ | ----- |
65
65
 
66
66
  | Bottom-left | Bottom | Bottom-right |
67
- | --- | --- | --- |
67
+ | ----------- | ------ | ------------ |
68
68
 
69
69
  #### Overlay Media Options
70
70
 
71
71
  In addition to overlay content, media (images, videos, GIFs, etc.) can be optionally overlayed on top of the Hero component's background; it can take whatever size or shape teams need.
72
72
 
73
73
  | Overlay media hidden | Overlay media displayed | Larger overlay media | Smaller overlay media |
74
- | --- | --- | --- | --- |
74
+ | -------------------- | ----------------------- | -------------------- | --------------------- |
75
75
 
76
76
  #### Overlay Media Position
77
77
 
78
78
  | Top-left | Top | Top-right |
79
- | --- | --- | --- |
79
+ | -------- | --- | --------- |
80
80
 
81
81
  | Left | Center | Right |
82
- | --- | --- | --- |
82
+ | ---- | ------ | ----- |
83
83
 
84
84
  | Bottom-left | Bottom | Bottom-right |
85
- | --- | --- | --- |
85
+ | ----------- | ------ | ------------ |
86
86
 
87
87
  ## Code
88
88
 
89
- >**Note:** Code details coming soon
89
+ > **Note:** Code details coming soon
90
90
 
91
- >**Note:** The code examples below must install dependencies before displaying and may take extra time to load
91
+ > **Note:** The code examples below must install dependencies before displaying and may take extra time to load
92
92
 
93
93
  ## Hero
94
94
 
@@ -109,10 +109,10 @@ Documentation for the underlying MUI `[update]` component can be found here.
109
109
  Any custom SDS props and MUI props required for implementation are found on the table below. See the MUI documentation for additional optional props.
110
110
 
111
111
  | Name | Type | Default | Description |
112
- | --- | --- | --- | --- |
113
- | | | | |
114
- | | | | |
115
- | | | | |
112
+ | ---- | ---- | ------- | ----------- |
113
+ | | | | |
114
+ | | | | |
115
+ | | | | |
116
116
 
117
117
  ### Code examples
118
118
 
@@ -141,13 +141,11 @@ h1 {
141
141
 
142
142
  ```json
143
143
  {
144
- "include": [
145
- "./**/*"
146
- ],
144
+ "include": ["./**/*"],
147
145
  "compilerOptions": {
148
146
  "strict": true,
149
147
  "esModuleInterop": true,
150
- "lib": [ "dom", "es2015" ],
148
+ "lib": ["dom", "es2015"],
151
149
  "jsx": "react-jsx"
152
150
  }
153
151
  }
@@ -157,20 +155,19 @@ h1 {
157
155
 
158
156
  ```tsx
159
157
  // Most minimal Callout (just has the basic requirements)
160
-
158
+
161
159
  import { Callout, CalloutTitle } from "@czi-sds/components";
162
160
  import "./styles.css";
163
161
 
164
162
  function App() {
165
163
  return (
166
164
  <div className="app">
167
- <Callout
168
- intent="info"
169
- >
165
+ <Callout intent="info">
170
166
  <CalloutTitle>Callout box</CalloutTitle>
171
- The Callout Box component is a versatile UI element designed to draw attention to important
172
- information or messages within your interface. With its clean and elegant design, the
173
- Callout Box helps highlight key content, alerts, or contextual details.
167
+ The Callout Box component is a versatile UI element designed to draw
168
+ attention to important information or messages within your interface.
169
+ With its clean and elegant design, the Callout Box helps highlight key
170
+ content, alerts, or contextual details.
174
171
  </Callout>
175
172
  </div>
176
173
  );
@@ -216,13 +213,12 @@ root.render(
216
213
  <RootApp />
217
214
  </React.StrictMode>
218
215
  );
219
-
220
216
  ```
221
217
 
222
218
  **/public/index.html**
223
219
 
224
220
  ```html
225
- <!DOCTYPE html>
221
+ <!doctype html>
226
222
  <html lang="en">
227
223
  <head>
228
224
  <meta charset="UTF-8" />
@@ -243,14 +239,24 @@ root.render(
243
239
  <div id="root"></div>
244
240
  </body>
245
241
  </html>
246
-
247
242
  ```
248
243
 
249
244
  **/package.json**
250
245
 
251
246
  ```json
252
- {"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"}
247
+ {
248
+ "dependencies": {
249
+ "react": "^18.0.0",
250
+ "react-dom": "^18.0.0",
251
+ "react-scripts": "^4.0.0"
252
+ },
253
+ "devDependencies": {
254
+ "@types/react": "^18.0.0",
255
+ "@types/react-dom": "^18.0.0",
256
+ "typescript": "^4.0.0"
257
+ },
258
+ "main": "/index.tsx"
259
+ }
253
260
  ```
254
261
 
255
262
  ---
256
-