@czi-sds/mcp 0.2.2 → 0.3.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 (50) hide show
  1. package/data/zeroheight-cache.json +5195 -0
  2. package/data/zeroheight-exports/Accordion.md +675 -0
  3. package/data/zeroheight-exports/Banner.md +576 -0
  4. package/data/zeroheight-exports/Borders.md +118 -0
  5. package/data/zeroheight-exports/Buttons.md +2260 -0
  6. package/data/zeroheight-exports/Callout.md +756 -0
  7. package/data/zeroheight-exports/Colors.md +633 -0
  8. package/data/zeroheight-exports/Content-Card.md +162 -0
  9. package/data/zeroheight-exports/Contributing-to-SDS.md +99 -0
  10. package/data/zeroheight-exports/Control-Inputs.md +2066 -0
  11. package/data/zeroheight-exports/Corners.md +112 -0
  12. package/data/zeroheight-exports/Cover-page.md +4 -0
  13. package/data/zeroheight-exports/Dialog.md +1133 -0
  14. package/data/zeroheight-exports/Downloads.md +121 -0
  15. package/data/zeroheight-exports/Drop-Shadows.md +80 -0
  16. package/data/zeroheight-exports/Dropdown-Input.md +1149 -0
  17. package/data/zeroheight-exports/Dropdown-Menu.md +3787 -0
  18. package/data/zeroheight-exports/Element-Status-Tracker.md +268 -0
  19. package/data/zeroheight-exports/Field-Inputs.md +965 -0
  20. package/data/zeroheight-exports/Filters.md +868 -0
  21. package/data/zeroheight-exports/Getting-Started.md +1296 -0
  22. package/data/zeroheight-exports/Hero.md +256 -0
  23. package/data/zeroheight-exports/Icons.md +432 -0
  24. package/data/zeroheight-exports/Intent.md +47 -0
  25. package/data/zeroheight-exports/Introduction-to-Bases.md +36 -0
  26. package/data/zeroheight-exports/Introduction-to-Cells.md +36 -0
  27. package/data/zeroheight-exports/Introduction-to-DNA.md +36 -0
  28. package/data/zeroheight-exports/Introduction-to-Genes.md +36 -0
  29. package/data/zeroheight-exports/Introduction.md +116 -0
  30. package/data/zeroheight-exports/Link.md +373 -0
  31. package/data/zeroheight-exports/Lists.md +617 -0
  32. package/data/zeroheight-exports/Loading-Indicator.md +38 -0
  33. package/data/zeroheight-exports/Navigation.md +853 -0
  34. package/data/zeroheight-exports/Notification.md +858 -0
  35. package/data/zeroheight-exports/Panel.md +862 -0
  36. package/data/zeroheight-exports/README.md +124 -0
  37. package/data/zeroheight-exports/Responsive-Design.md +275 -0
  38. package/data/zeroheight-exports/Search-Input.md +54 -0
  39. package/data/zeroheight-exports/Search.md +609 -0
  40. package/data/zeroheight-exports/Segmented-Control.md +561 -0
  41. package/data/zeroheight-exports/Spacing.md +298 -0
  42. package/data/zeroheight-exports/Table.md +4832 -0
  43. package/data/zeroheight-exports/Tabs.md +773 -0
  44. package/data/zeroheight-exports/Tags.md +1025 -0
  45. package/data/zeroheight-exports/Text-Link.md +185 -0
  46. package/data/zeroheight-exports/Theming.md +313 -0
  47. package/data/zeroheight-exports/Tooltips.md +1564 -0
  48. package/data/zeroheight-exports/Typography.md +769 -0
  49. package/dist/stdio.js +188 -0
  50. package/package.json +4 -3
@@ -0,0 +1,162 @@
1
+ # Content Card
2
+
3
+ Content Cards are used throughout the UI to present information in a visually organized format that highlights key information or details in a way that is scannable and easy to digest.
4
+
5
+ ## Guidelines
6
+
7
+ ## Overview
8
+
9
+ | | In Figma | | | Meets Accessibility | | | In Code |
10
+ | --- | --- | --- | --- | --- | --- | --- | --- |
11
+
12
+ ### Content Card Variants
13
+
14
+ Content Cards come in two different variants: Narrow and Wide. When viewed on narrow screens, such as a mobile device, the Narrow variant is automatically displayed. Teams can decide how many cards they wish to arrange horizontally and / or vertically on a page.
15
+
16
+ Teams can individually control each element on Content Card including having two slots (one next to the Title text and one in the body of the card) that can be filled with whatever content is needed, providing maximum flexibility and serving a wide range of use cases.
17
+
18
+ ---
19
+
20
+ ### Live Instance
21
+
22
+ Interact with the live instance below and adjust the available props to better conceptualize how it will appear in product:
23
+
24
+ ---
25
+
26
+ ### Content Card – Wide
27
+
28
+ Content Card – Wide has the text and body content arranged horizontally beside the visual element and is best used by itself or beside one other Content Card; if more than two Content Cards need to be displayed horizontally beside each other, use the Narrow variant. When the width of the container the Content Card is placed within is reduced to less than 600px, the Wide variant will automatically convert to a Narrow variant.
29
+
30
+ All text elements (overline text, title text, subtitle text, metadata text, body text) are optional and any combination of these elements can be used as teams see necessary.
31
+
32
+ The visual element on the Content Card can be an image, an icon, or not used at all. When displaying an image, teams set the width of the image in pixels and its height will automatically adjust as needed based on the overall space available to the Content Card on the page. The image can either be displayed with padding around it or extended to the edge of the Content Card's container. The image can be positioned on the left or right side of the Content Card.
33
+
34
+ Teams can choose whether to display the Content Card with a bounding box, with a decorative border, as well as determine the position of and how many Buttons, if any, are included. For Content Cards with one or zero Buttons, the Content Card itself can function as a Button.
35
+
36
+ #### Visual Element Options
37
+
38
+ | Image | Icon | None |
39
+ | --- | --- | --- |
40
+
41
+ #### Image Options
42
+
43
+ | Image left (padding) | Image left (no padding) | Image right (padding) | Image right (no padding) |
44
+ | --- | --- | --- | --- |
45
+
46
+ #### Content Options
47
+
48
+ | Text | Slot |
49
+ | --- | --- |
50
+
51
+ #### Additional Options
52
+
53
+ All of the following options are available regardless of whether the image is positioned on the left or right side of the Content Card
54
+
55
+ | With decorative border | Without decorative border | With bounding box | Without bounding box |
56
+ | --- | --- | --- | --- |
57
+
58
+ | Left-aligned Buttons | Right-aligned Buttons |
59
+ | --- | --- |
60
+
61
+ #### Interaction States
62
+
63
+ For Content Cards with one or zero Buttons, the Content Card itself can function as a Button.
64
+
65
+ The following states are used regardless of whether there is a visual element included on the Content Card and, if the visual element is an image, regardless of whether it is positioned on the left or right side of the Content Card.
66
+
67
+ | Default | Hover | Pressed |
68
+ | --- | --- | --- |
69
+
70
+ ---
71
+
72
+ ### Content Card – Narrow
73
+
74
+ Content Card – Narrow has the text and body content arranged vertically below the visual element and is best used beside two or more other Content Cards. When viewed on narrow screens, such as a mobile device, any horizontally arranged Content Cards will wrap to stack in a single column.
75
+
76
+ All text elements (overline text, title text, subtitle text, metadata text, body text) are optional and any combination of these elements can be used as teams see necessary.
77
+
78
+ The Narrow variant can either use an image as a visual element or not contain a visual element at all. Teams set the height of the image in pixels and its width will automatically adjust as needed based on the overall space available to the Content Card on the page. The image can either be displayed with padding around it or extended to the edge of the Content Card's container.
79
+
80
+ Teams can choose whether to display the Content Card with a bounding box, with a decorative border, as well as determine the position of and how many Buttons, if any, are included. For Content Cards with one or zero Buttons, the Content Card itself can function as a Button.
81
+
82
+ #### Visual Element Options
83
+
84
+ | Image | Icon | None |
85
+ | --- | --- | --- |
86
+
87
+ #### Image Options
88
+
89
+ | Padding | No Padding |
90
+ | --- | --- |
91
+
92
+ #### Content Options
93
+
94
+ | Text | Slot |
95
+ | --- | --- |
96
+
97
+ #### Additional Options
98
+
99
+ | With decorative border | Without decorative border | With bounding box | Without bounding box |
100
+ | --- | --- | --- | --- |
101
+
102
+ | Left-aligned Buttons | Right-aligned Buttons |
103
+ | --- | --- |
104
+
105
+ #### Interaction States
106
+
107
+ For Content Cards with one or zero Buttons, the Content Card itself can function as a Button.
108
+
109
+ The following states are used regardless of whether there is a visual element included on the Content Card.
110
+
111
+ | Default | Hover | Pressed |
112
+ | --- | --- | --- |
113
+
114
+ ---
115
+
116
+ ### Content Card Spacing
117
+
118
+ These rules establish how much margin should exist between and around elements.
119
+
120
+ ## Code
121
+
122
+ >**Note:** The code examples below must install dependencies before displaying and may take extra time to load
123
+
124
+ ## Content Card
125
+
126
+ ### SDS Source Code
127
+
128
+ The component's source code in the SDS codebase can be found here.
129
+
130
+ ### MUI Documentation
131
+
132
+ Documentation for the underlying MUI `Card` component can be found here.
133
+
134
+ ### Props
135
+
136
+ Any custom SDS props and MUI props required for implementation are found on the table below. See the MUI documentation for additional optional props.
137
+
138
+ | Name | Type | Default | Description |
139
+ | --- | --- | --- | --- |
140
+ | `boundingBox` | `boolean` | `true` | If `true`, wraps content and visuals inside a bounded layout with background and padding. |
141
+ | `buttonsPosition` | `"left"` |`"right"` | `"left"` | Determines the alignment of buttons in the ContentCardActions component. |
142
+ | `classes` | `object` | `-` | Custom class names for different card sub-sections (e.g., cardPaper, cardTitle, cardActions, etc.). Could be used to style the component with TailwindCss. Full list of available class names are:`cardPaper`, `cardContent`, `cardHeader`, `cardMedia`, `cardOverline`, `cardTitle`, `cardSubtitle`, `cardMetadata`, `cardActions`, `clickableCardButton` |
143
+ | `decorativeBorder` | `boolean` | `false` | If `true`, shows a decorative border around the card. |
144
+ | `children` | `ReactNode` | `-` | The content to be displayed inside the card body, including custom components and ContentCardActions. |
145
+ | `clickableCard` | `boolean` | `false` | If `true`, wraps the card with an action area and makes it clickable. |
146
+ | `clickableCardProps` | `Partial<SdsMinimalButtonProps>` | `-` | Props forwarded to the clickable card wrapper when clickableCard is true. |
147
+ | `icon` | `ReactNode` | `-` | The icon displayed in the card when `visualElementType` is `icon`. |
148
+ | `image` | `ReactNode` | `-` | The image displayed in the card when `visualElementType` is `image`. |
149
+ | `imagePadding` | `boolean` | `false` | If `true`, applies padding around the image inside the card. |
150
+ | `imagePosition` | `"left"` | `"right"` | `"left"` | Position of the image in the card layout (left or right). |
151
+ | `imageSize` | `number` | `300` | Width of the image area in pixels when `visualElementType` is `image`. |
152
+ | `metadataText` | `ReactNode` | `-` | Optional metadata text, usually used for extra context like date or author. |
153
+ | `overlineText` | `ReactNode` | `-` | A small overline text displayed above the title. |
154
+ | `sdsType` | `"wide"` | `"narrow"` | `"wide"` | Determines the card layout style. `wide` shows the image and content side by side, `narrow` stacks them vertically. |
155
+ | `subtitleText` | `ReactNode` | `-` | Optional subtitle text displayed below the title. |
156
+ | `titleText` | `ReactNode` | `-` | The main title text of the card. |
157
+ | `visualElementType` | `"image"` | `"icon"` | `"none"` | `"none"` | Specifies what type of visual element to render on the card: an image, an icon, or none. |
158
+
159
+ ### Code examples
160
+
161
+ >**Note:** Due to a bug in Zeroheight we are unable to publish code examples at this time; we will update this section once a fix is released.
162
+
@@ -0,0 +1,99 @@
1
+ # Contributing to SDS
2
+
3
+ Use the following guides when you have a new request for something to be added or changed in the design system or want to serve as a contributor to the SDS team
4
+
5
+ ## Contribution Guide
6
+
7
+ ### Contribution and Request Flow
8
+
9
+ #### Assess and Plan
10
+
11
+ 1. Check if the component already exists by checking the SDS Documentation to confirm
12
+ 2. If not, submit the request or idea you want to contribute to the SDS by creating a github issue
13
+ 3. The SDS Team will assess the request and make sure they understand the needs
14
+ 4. **Decision Point**: should it be included in the SDS?
15
+ 1. If the needs are joint across multiple projects, the SDS team will likely decide to include it
16
+ 2. If not, it can become a **Snowflake** (a one-off component maintained by the product teams)
17
+
18
+ #### Design
19
+
20
+ 1. **Decision Point**: who will build the component, the SDS or product team?
21
+ 1. SDS team – if the SDS team has bandwidth in alignment with other priorities
22
+ 2. Product team – if the product team is in a rush and need it sooner. They may build for SDS or in their own codebase to be incorporated into SDS later
23
+ 2. Design Process – gather requirements, design critique, design review with SDS team and product teams, and iteration and hand-off to engineering with specs. Communicate with teams throughout.
24
+
25
+ #### Implementation and Testing
26
+
27
+ 1. Engineering Design Review – for larger components and when needed, review engineering design plans
28
+ 2. Code Implementation with PRs, Design QA
29
+ 3. Documentation Build
30
+ 4. Figma Component Build
31
+
32
+ **Launch**
33
+
34
+ 1. Communicate Update – release notes in** #sci-design-system-releases** channel
35
+
36
+ ### Contribution Guides
37
+
38
+ When getting started with contributing, here are guides to follow. Be sure to also partner with an SDS core team member.
39
+
40
+ * Contributing Design – SDS Feature Design Process
41
+ * Contributing Code – [guide coming soon]
42
+ * Contributing Documentation – [guide coming soon]
43
+
44
+ ## Contributor Models
45
+
46
+ ### Ways to Contribute
47
+
48
+ There are a range of tasks and projects to work on as a contributor to the SDS, such as:
49
+
50
+ * Fixing a bug; grab something from the backlog
51
+ * Flagging things to the SDS team; give the SDS team feedback
52
+ * Brainstorming new feature needs; suggest features
53
+ * Participating in engineering design reviews
54
+
55
+ ### Commitment Levels
56
+
57
+ Contributing to the SDS doesn't need to be a huge time commitment and there are many different ways to serve as a contributor to the SDS.
58
+
59
+ #### One-Off Contributor (Occasional)
60
+
61
+ * Contribute when they have free time or interest in a particular project
62
+ * No commitment to contribute long term; contributions can be sporadic
63
+
64
+ Some examples include: 
65
+
66
+ * Participating during SDS events, such as hackathons, sprints, or workshops
67
+ * Pick up one-off tickets, such as a well-defined accessibility task
68
+ * Make fixes or contributions on things relevant to your current work—if you’re already working on something on your team and want to contribute back to SDS
69
+
70
+ #### Team Representative
71
+
72
+ These contributors are go-to SDS advocates on their teams and point people. Their expectations include:
73
+
74
+ * Consistent involvement within their team
75
+ * Act as advocates, spreading awareness and encouraging participation, such as:
76
+ * Flagging when a SDS component is beneficial
77
+ * When their team has a need to share with SDS
78
+ * Watching for breaking changes so their team can react if needed
79
+ * May not be directly involved in development but promote the project's importance
80
+ * Project based: if the SDS team is collaborating on a project with their team
81
+
82
+ Current team representatives:
83
+
84
+ * Janeece Pourroy – design
85
+ * Harley Thomas – design
86
+ * Karen Liang – design
87
+ * Timmy Huang – engineering
88
+ * Jerry Fu – engineering
89
+
90
+ #### Commitment to a Timeframe (fixed-term)
91
+
92
+ These contributors commit to a specific period, typically 3 to 6 months, at the Quarter and Half planning times, to work on SDS and its roadmap. This involves:
93
+
94
+ * Defined time commitment
95
+ * Attend SDS meetings
96
+ * Typically involved in development, planning, or execution of project goals
97
+ * Providing a more predictable level of support over a specified timeframe
98
+ * Revisited after initial timeframe commitment is complete
99
+