@czi-sds/mcp 0.16.0 → 0.17.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 (164) hide show
  1. package/README.md +2 -1
  2. package/data/component-docs/Accordion.md +291 -0
  3. package/data/component-docs/Autocomplete.md +525 -0
  4. package/data/component-docs/Banner.md +231 -0
  5. package/data/component-docs/Button.md +224 -0
  6. package/data/component-docs/ButtonDropdown.md +256 -0
  7. package/data/component-docs/ButtonGroup.md +320 -0
  8. package/data/component-docs/ButtonToggle.md +397 -0
  9. package/data/component-docs/Callout.md +268 -0
  10. package/data/component-docs/CellBasic.md +122 -0
  11. package/data/component-docs/CellComponent.md +63 -0
  12. package/data/component-docs/CellHeader.md +128 -0
  13. package/data/component-docs/ComplexFilter.md +294 -0
  14. package/data/component-docs/ContentCard.md +406 -0
  15. package/data/component-docs/Dialog.md +651 -0
  16. package/data/component-docs/Dropdown.md +155 -0
  17. package/data/component-docs/DropdownMenu.md +949 -0
  18. package/data/component-docs/HeatmapChart.md +782 -0
  19. package/data/component-docs/Hero.md +363 -0
  20. package/data/component-docs/Icon.md +283 -0
  21. package/data/component-docs/InputCheckbox.md +205 -0
  22. package/data/component-docs/InputDropdown.md +482 -0
  23. package/data/component-docs/InputRadio.md +173 -0
  24. package/data/component-docs/InputSearch.md +81 -0
  25. package/data/component-docs/InputSlider.md +189 -0
  26. package/data/component-docs/InputText.md +110 -0
  27. package/data/component-docs/InputToggle.md +141 -0
  28. package/data/component-docs/IntentMessage.md +293 -0
  29. package/data/component-docs/Legend.md +442 -0
  30. package/data/component-docs/Link.md +23 -0
  31. package/data/component-docs/List.md +300 -0
  32. package/data/component-docs/LoadingIndicator.md +198 -0
  33. package/data/component-docs/Menu.md +298 -0
  34. package/data/component-docs/MenuItem.md +100 -0
  35. package/data/component-docs/NavigationFooter.md +165 -0
  36. package/data/component-docs/NavigationHeader.md +500 -0
  37. package/data/component-docs/NavigationJumpTo.md +414 -0
  38. package/data/component-docs/Notification.md +288 -0
  39. package/data/component-docs/Pagination.md +67 -0
  40. package/data/component-docs/Panel.md +636 -0
  41. package/data/component-docs/Popover.md +448 -0
  42. package/data/component-docs/PreComposedTable.md +2947 -0
  43. package/data/component-docs/SegmentedControl.md +396 -0
  44. package/data/component-docs/StackedBarChart.md +475 -0
  45. package/data/component-docs/Table.md +2000 -0
  46. package/data/component-docs/TableHeader.md +53 -0
  47. package/data/component-docs/TableRow.md +74 -0
  48. package/data/component-docs/Tabs.md +455 -0
  49. package/data/component-docs/Tag.md +647 -0
  50. package/data/component-docs/TagFilter.md +131 -0
  51. package/data/component-docs/Tooltip.md +561 -0
  52. package/data/component-docs/TooltipCondensed.md +203 -0
  53. package/data/component-docs/TooltipTable.md +145 -0
  54. package/data/component-docs/index.json +262 -0
  55. package/data/component-list.json +2 -5
  56. package/data/component-props/Accordion.json +31 -11
  57. package/data/component-props/Alert.json +3 -3
  58. package/data/component-props/Autocomplete.json +150 -15
  59. package/data/component-props/Banner.json +31 -17
  60. package/data/component-props/Button.json +45 -20
  61. package/data/component-props/ButtonDropdown.json +36 -17
  62. package/data/component-props/ButtonDropdownLegacy.json +11 -11
  63. package/data/component-props/ButtonGroup.json +32 -11
  64. package/data/component-props/ButtonIcon.json +10 -10
  65. package/data/component-props/ButtonLegacy.json +19 -19
  66. package/data/component-props/ButtonToggle.json +32 -19
  67. package/data/component-props/ButtonToggleLegacy.json +11 -11
  68. package/data/component-props/Callout.json +58 -17
  69. package/data/component-props/CellBasic.json +94 -41
  70. package/data/component-props/CellComponent.json +23 -7
  71. package/data/component-props/CellHeader.json +62 -19
  72. package/data/component-props/ComplexFilter.json +52 -21
  73. package/data/component-props/ContentCard.json +70 -47
  74. package/data/component-props/Dialog.json +47 -14
  75. package/data/component-props/Dropdown.json +68 -31
  76. package/data/component-props/DropdownMenu.json +128 -23
  77. package/data/component-props/HeatmapChart.json +88 -12
  78. package/data/component-props/Hero.json +80 -39
  79. package/data/component-props/Icon.json +20 -9
  80. package/data/component-props/InputCheckbox.json +36 -14
  81. package/data/component-props/InputDropdown.json +75 -27
  82. package/data/component-props/InputRadio.json +31 -13
  83. package/data/component-props/InputSearch.json +41 -18
  84. package/data/component-props/InputSlider.json +46 -19
  85. package/data/component-props/InputText.json +26 -19
  86. package/data/component-props/InputToggle.json +26 -9
  87. package/data/component-props/IntentMessage.json +38 -9
  88. package/data/component-props/Link.json +13 -7
  89. package/data/component-props/LoadingIndicator.json +11 -3
  90. package/data/component-props/MenuItem.json +38 -19
  91. package/data/component-props/MenuSelect.json +8 -8
  92. package/data/component-props/NavigationFooter.json +49 -19
  93. package/data/component-props/NavigationHeader.json +150 -37
  94. package/data/component-props/NavigationJumpTo.json +33 -7
  95. package/data/component-props/Notification.json +39 -21
  96. package/data/component-props/Pagination.json +39 -11
  97. package/data/component-props/Panel.json +62 -9
  98. package/data/component-props/Popover.json +80 -7
  99. package/data/component-props/PreComposedTable.json +99 -27
  100. package/data/component-props/SegmentedControl.json +42 -3
  101. package/data/component-props/StackedBarChart.json +116 -42
  102. package/data/component-props/TableRow.json +38 -19
  103. package/data/component-props/Tabs.json +66 -9
  104. package/data/component-props/Tag.json +34 -17
  105. package/data/component-props/TagFilter.json +10 -3
  106. package/data/component-props/Tooltip.json +49 -18
  107. package/data/component-props/TooltipCondensed.json +18 -9
  108. package/data/component-props/TooltipTable.json +17 -7
  109. package/data/resources/{zeroheight-rules.md → documentation-rules.md} +43 -30
  110. package/data/resources/figma-rules.md +2 -2
  111. package/dist/stdio.js +112 -208
  112. package/package.json +9 -5
  113. package/data/component-props/ButtonDropdownV2.json +0 -34
  114. package/data/component-props/ButtonNew.json +0 -47
  115. package/data/component-props/ButtonToggleV2.json +0 -44
  116. package/data/component-props/ButtonV2.json +0 -43
  117. package/data/zeroheight-cache.json +0 -10259
  118. package/data/zeroheight-exports/Accordion.md +0 -774
  119. package/data/zeroheight-exports/Banner.md +0 -691
  120. package/data/zeroheight-exports/Borders.md +0 -117
  121. package/data/zeroheight-exports/Buttons.md +0 -1854
  122. package/data/zeroheight-exports/Callout.md +0 -931
  123. package/data/zeroheight-exports/Colors.md +0 -1755
  124. package/data/zeroheight-exports/Content-Card.md +0 -309
  125. package/data/zeroheight-exports/Contributing-to-SDS.md +0 -98
  126. package/data/zeroheight-exports/Control-Inputs.md +0 -2818
  127. package/data/zeroheight-exports/Corners.md +0 -104
  128. package/data/zeroheight-exports/Cover-page.md +0 -3
  129. package/data/zeroheight-exports/Dialog.md +0 -1367
  130. package/data/zeroheight-exports/Downloads.md +0 -236
  131. package/data/zeroheight-exports/Drop-Shadows.md +0 -79
  132. package/data/zeroheight-exports/Dropdown-Input.md +0 -1776
  133. package/data/zeroheight-exports/Dropdown-Menus.md +0 -913
  134. package/data/zeroheight-exports/Element-Status-Tracker.md +0 -267
  135. package/data/zeroheight-exports/Field-Inputs.md +0 -1405
  136. package/data/zeroheight-exports/Filters.md +0 -1111
  137. package/data/zeroheight-exports/Getting-Started.md +0 -1157
  138. package/data/zeroheight-exports/Hero.md +0 -414
  139. package/data/zeroheight-exports/Icons.md +0 -2067
  140. package/data/zeroheight-exports/Intent.md +0 -86
  141. package/data/zeroheight-exports/Introduction-to-Bases.md +0 -35
  142. package/data/zeroheight-exports/Introduction-to-Cells.md +0 -35
  143. package/data/zeroheight-exports/Introduction-to-DNA.md +0 -35
  144. package/data/zeroheight-exports/Introduction-to-Genes.md +0 -35
  145. package/data/zeroheight-exports/Introduction.md +0 -115
  146. package/data/zeroheight-exports/Link.md +0 -432
  147. package/data/zeroheight-exports/Lists.md +0 -986
  148. package/data/zeroheight-exports/Loading-Indicator.md +0 -41
  149. package/data/zeroheight-exports/Navigation.md +0 -1190
  150. package/data/zeroheight-exports/Notification.md +0 -1038
  151. package/data/zeroheight-exports/Panel.md +0 -1030
  152. package/data/zeroheight-exports/README.md +0 -122
  153. package/data/zeroheight-exports/Responsive-Design.md +0 -330
  154. package/data/zeroheight-exports/Search-Input.md +0 -91
  155. package/data/zeroheight-exports/Search.md +0 -822
  156. package/data/zeroheight-exports/Segmented-Control.md +0 -609
  157. package/data/zeroheight-exports/Spacing.md +0 -297
  158. package/data/zeroheight-exports/Table.md +0 -5345
  159. package/data/zeroheight-exports/Tabs.md +0 -1324
  160. package/data/zeroheight-exports/Tags.md +0 -1545
  161. package/data/zeroheight-exports/Text-Link.md +0 -268
  162. package/data/zeroheight-exports/Theming.md +0 -362
  163. package/data/zeroheight-exports/Tooltips.md +0 -2015
  164. package/data/zeroheight-exports/Typography.md +0 -800
@@ -1,432 +0,0 @@
1
- # Link
2
-
3
- Links are interactive elements that, when clicked, navigate the user away from the page they are currently viewing to another page or screen.
4
-
5
- ## Guidelines
6
-
7
- ## Overview
8
-
9
- | | In Figma | | | Meets Accessibility | | | In Code |
10
- | --- | -------- | --- | --- | ------------------- | --- | --- | ------- |
11
-
12
- ### Link Variants
13
-
14
- There are two Link variants available to use depending on the background on top of which they are placed and whether that background provides enough contrast for Link – Default to be seen. Links can be used inline or separate from a paragraph of text.
15
-
16
- Though visually similar to Button – Minimal, Links navigate the user away from the page they are currently viewing to another page. This is in contrast to Button – Minimal, which keeps the user on the same page and facilitates on-screen actions such as opening Dialogs or indicating less-emphasized actions.
17
-
18
- Links come in two sizes: fontXs and fontS to align with SDS' most common body copy font sizes.
19
-
20
- > **Note:** When including an inline Link in your Figma designs, styles must be manually applied as there is no way to save the Link style in Figma as a text style. Use the Link Figma component for links that are not inline.
21
-
22
- **Preview_Link_Default**
23
-
24
- ---
25
-
26
- **Preview_Link_Dashed**
27
-
28
- ---
29
-
30
- ---
31
-
32
- ### Live Instance
33
-
34
- Interact with the live instance below and adjust the available props to better conceptualize how it will appear in product:
35
-
36
- Default
37
-
38
- ---
39
-
40
- ### Link – Default
41
-
42
- Use Link – Default only when the Link is placed on `surface-primary`, `surface-secondary`, or `surface-tertiary` backgrounds to ensure there is enough contrast to pass visual accessibility standards, otherwise use Link – Dashed.
43
-
44
- | Default | Hover | Pressed |
45
- | ------- | ----- | ------- |
46
-
47
- **Default Visual Example_Default**
48
-
49
- ---
50
-
51
- **Default Visual Example_Hover**
52
-
53
- ---
54
-
55
- **Default visual example_Pressed**
56
-
57
- ---
58
-
59
- ---
60
-
61
- ### Link – Dashed
62
-
63
- Use Link – Dashed when the Link is placed on a background where the Link – Default does not provide enough contrast to pass visual accessibility standards. The color of the link and its underline should match the color of the text used in the paragraph it is placed within, see Color Rules below.
64
-
65
- See Borders section for Link Underline details.
66
-
67
- | Default | Hover | Pressed |
68
- | ------- | ----- | ------- |
69
-
70
- **Dashed Visual Example_Default**
71
-
72
- ---
73
-
74
- **Dashed Visual Example_Hover**
75
-
76
- ---
77
-
78
- **Dashed Visual Example_Pressed**
79
-
80
- ---
81
-
82
- #### Color Rules
83
-
84
- The color of Link – Dashed and its underline should match the color of the text used in the paragraph it is placed within.
85
-
86
- | Primary Text | Secondary Text | On-fill Text |
87
- | ------------ | -------------- | ------------ |
88
-
89
- **Dashed Visual Example_Black Text**
90
-
91
- ---
92
-
93
- **Dashed Visual Example_Gray500 text**
94
-
95
- ---
96
-
97
- **Dashed Visual Example_White text**
98
-
99
- ---
100
-
101
- ---
102
-
103
- ### Link Spacing Rules
104
-
105
- These rules establish how much margin should exist between and around elements.
106
-
107
- > **Note:** The underline for Link – Dashed is spaced lower than the default text-decoration underline.
108
-
109
- **Dashed Text Link spacing**
110
-
111
- ---
112
-
113
- ## Code
114
-
115
- > **Note:** The code examples below must install dependencies before displaying and may take extra time to load
116
-
117
- ## Link
118
-
119
- ### SDS Source Code
120
-
121
- The component's source code in the SDS codebase can be found here.
122
-
123
- ### MUI Documentation
124
-
125
- Documentation for the underlying MUI component can be found here. There are no differences between the SDS and MUI component.
126
-
127
- ### Props
128
-
129
- Any custom SDS props and MUI props required for implementation are found on the table below. See the MUI documentation for additional optional props.
130
-
131
- | Name | Type | Default | Description |
132
- | ------------ | ------------- | --------- | ----------- | --------------------------------------------------------------------------------------------------- |
133
- | `sdsStyle` | `"default"` ` | "dashed"` | `"default"` | The style of underline corresponding to the `text-decoration` CSS property. Default is `underline`. |
134
- | `sdsSize` | `"xs" | "s"` | `"xs"` | The font size of the `Link` component |
135
- | `fontWeight` | `"normal"` ` | "bold"` | `"normal"` | The font weight of the `Link` component. |
136
-
137
- ### Code examples
138
-
139
- #### Link – Default
140
-
141
- This example has the minimum props needed for the `Link` component.
142
-
143
- **/styles.css**
144
-
145
- ```css
146
- body {
147
- font-size: 13px;
148
- font-weight: 400;
149
- letter-spacing: 0.08px;
150
- line-height: 20px;
151
- text-transform: none;
152
- font-family: "Inter", sans-serif;
153
- }
154
-
155
- h1 {
156
- font-size: 1.5rem;
157
- }
158
-
159
- .app {
160
- padding: 20px;
161
- }
162
- ```
163
-
164
- **tsconfig.json**
165
-
166
- ```json
167
- {
168
- "include": ["./**/*"],
169
- "compilerOptions": {
170
- "strict": true,
171
- "esModuleInterop": true,
172
- "lib": ["dom", "es2015"],
173
- "jsx": "react-jsx"
174
- }
175
- }
176
- ```
177
-
178
- **/App.tsx**
179
-
180
- ```tsx
181
- import { Link } from "@czi-sds/components";
182
- import "./styles.css";
183
-
184
- function App() {
185
- return (
186
- <div className="app">
187
- <Link href="#">Science Design System</Link>
188
- </div>
189
- );
190
- }
191
-
192
- export default App;
193
- ```
194
-
195
- **/index.tsx**
196
-
197
- ```tsx
198
- import React from "react";
199
- import { createRoot } from "react-dom/client";
200
- import { ThemeProvider as EmotionThemeProvider } from "@emotion/react";
201
- import { StyledEngineProvider, ThemeProvider } from "@mui/material/styles";
202
- import { Theme } from "@czi-sds/components";
203
- import CssBaseline from "@mui/material/CssBaseline";
204
- import useMediaQuery from "@mui/material/useMediaQuery";
205
-
206
- import App from "./App";
207
-
208
- const container = document.getElementById("root");
209
- const root = createRoot(container!);
210
-
211
- const RootApp = () => {
212
- const prefersDarkMode = useMediaQuery("(prefers-color-scheme: dark)");
213
- const theme = prefersDarkMode ? Theme("dark") : Theme("light");
214
-
215
- return (
216
- <StyledEngineProvider injectFirst>
217
- <ThemeProvider theme={theme}>
218
- <EmotionThemeProvider theme={theme}>
219
- <CssBaseline />
220
- <App />
221
- </EmotionThemeProvider>
222
- </ThemeProvider>
223
- </StyledEngineProvider>
224
- );
225
- };
226
-
227
- root.render(
228
- <React.StrictMode>
229
- <RootApp />
230
- </React.StrictMode>
231
- );
232
- ```
233
-
234
- **/public/index.html**
235
-
236
- ```html
237
- <!doctype html>
238
- <html lang="en">
239
- <head>
240
- <meta charset="UTF-8" />
241
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
242
- <link rel="preconnect" href="https://fonts.googleapis.com" />
243
- <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
244
- <link
245
- href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap"
246
- rel="stylesheet"
247
- />
248
- <link
249
- href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&display=swap"
250
- rel="stylesheet"
251
- />
252
- </head>
253
- <body>
254
- <div id="root"></div>
255
- </body>
256
- </html>
257
- ```
258
-
259
- **/package.json**
260
-
261
- ```json
262
- {
263
- "dependencies": {
264
- "react": "^18.0.0",
265
- "react-dom": "^18.0.0",
266
- "react-scripts": "^4.0.0"
267
- },
268
- "devDependencies": {
269
- "@types/react": "^18.0.0",
270
- "@types/react-dom": "^18.0.0",
271
- "typescript": "^4.0.0"
272
- },
273
- "main": "/index.tsx"
274
- }
275
- ```
276
-
277
- ---
278
-
279
- #### Link – Dashed
280
-
281
- This example demonstrates the use of a the dashed variant of the `Link` component embedded within a sentence.
282
-
283
- **/styles.css**
284
-
285
- ```css
286
- body {
287
- font-size: 13px;
288
- font-weight: 400;
289
- letter-spacing: 0.08px;
290
- line-height: 20px;
291
- text-transform: none;
292
- font-family: "Inter", sans-serif;
293
- }
294
-
295
- h1 {
296
- font-size: 1.5rem;
297
- }
298
-
299
- .app {
300
- padding: 20px;
301
- }
302
- ```
303
-
304
- **tsconfig.json**
305
-
306
- ```json
307
- {
308
- "include": ["./**/*"],
309
- "compilerOptions": {
310
- "strict": true,
311
- "esModuleInterop": true,
312
- "lib": ["dom", "es2015"],
313
- "jsx": "react-jsx"
314
- }
315
- }
316
- ```
317
-
318
- **/App.tsx**
319
-
320
- ```tsx
321
- import { Link, getSemanticColors } from "@czi-sds/components";
322
- import { styled, useTheme } from "@mui/material";
323
- import "./styles.css";
324
-
325
- function App() {
326
- const theme = useTheme();
327
- const semanticColors = getSemanticColors({ theme });
328
-
329
- const StyledParagraph = styled("p")`
330
- background-color: ${semanticColors?.accent?.surfacePrimary};
331
- padding: 10px;
332
- `;
333
-
334
- return (
335
- <div className="app">
336
- <StyledParagraph>
337
- Lorem ipsum{" "}
338
- <Link href="#" sdsStyle="dashed">
339
- dolor sit apsidy
340
- </Link>{" "}
341
- consectetur, adipisicing elit.
342
- </StyledParagraph>
343
- </div>
344
- );
345
- }
346
-
347
- export default App;
348
- ```
349
-
350
- **/index.tsx**
351
-
352
- ```tsx
353
- import React from "react";
354
- import { createRoot } from "react-dom/client";
355
- import { ThemeProvider as EmotionThemeProvider } from "@emotion/react";
356
- import { StyledEngineProvider, ThemeProvider } from "@mui/material/styles";
357
- import { Theme } from "@czi-sds/components";
358
- import CssBaseline from "@mui/material/CssBaseline";
359
- import useMediaQuery from "@mui/material/useMediaQuery";
360
-
361
- import App from "./App";
362
-
363
- const container = document.getElementById("root");
364
- const root = createRoot(container!);
365
-
366
- const RootApp = () => {
367
- const prefersDarkMode = useMediaQuery("(prefers-color-scheme: dark)");
368
- const theme = prefersDarkMode ? Theme("dark") : Theme("light");
369
-
370
- return (
371
- <StyledEngineProvider injectFirst>
372
- <ThemeProvider theme={theme}>
373
- <EmotionThemeProvider theme={theme}>
374
- <CssBaseline />
375
- <App />
376
- </EmotionThemeProvider>
377
- </ThemeProvider>
378
- </StyledEngineProvider>
379
- );
380
- };
381
-
382
- root.render(
383
- <React.StrictMode>
384
- <RootApp />
385
- </React.StrictMode>
386
- );
387
- ```
388
-
389
- **/public/index.html**
390
-
391
- ```html
392
- <!doctype html>
393
- <html lang="en">
394
- <head>
395
- <meta charset="UTF-8" />
396
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
397
- <link rel="preconnect" href="https://fonts.googleapis.com" />
398
- <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
399
- <link
400
- href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap"
401
- rel="stylesheet"
402
- />
403
- <link
404
- href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&display=swap"
405
- rel="stylesheet"
406
- />
407
- </head>
408
- <body>
409
- <div id="root"></div>
410
- </body>
411
- </html>
412
- ```
413
-
414
- **/package.json**
415
-
416
- ```json
417
- {
418
- "dependencies": {
419
- "react": "^18.0.0",
420
- "react-dom": "^18.0.0",
421
- "react-scripts": "^4.0.0"
422
- },
423
- "devDependencies": {
424
- "@types/react": "^18.0.0",
425
- "@types/react-dom": "^18.0.0",
426
- "typescript": "^4.0.0"
427
- },
428
- "main": "/index.tsx"
429
- }
430
- ```
431
-
432
- ---