@czi-sds/mcp 0.2.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 (98) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +34 -0
  3. package/data/component-list.json +55 -0
  4. package/data/component-props/Accordion.json +31 -0
  5. package/data/component-props/Alert.json +52 -0
  6. package/data/component-props/Autocomplete.json +52 -0
  7. package/data/component-props/Banner.json +35 -0
  8. package/data/component-props/Button.json +109 -0
  9. package/data/component-props/ButtonIcon.json +80 -0
  10. package/data/component-props/ButtonToggle.json +91 -0
  11. package/data/component-props/Callout.json +93 -0
  12. package/data/component-props/CellBasic.json +102 -0
  13. package/data/component-props/CellComponent.json +46 -0
  14. package/data/component-props/CellHeader.json +78 -0
  15. package/data/component-props/Chip.json +73 -0
  16. package/data/component-props/ComplexFilter.json +19 -0
  17. package/data/component-props/ContentCard.json +18 -0
  18. package/data/component-props/Dropdown.json +107 -0
  19. package/data/component-props/DropdownMenu.json +86 -0
  20. package/data/component-props/HeatmapChart.json +110 -0
  21. package/data/component-props/Icon.json +27 -0
  22. package/data/component-props/InputCheckbox.json +76 -0
  23. package/data/component-props/InputDropdown.json +72 -0
  24. package/data/component-props/InputRadio.json +75 -0
  25. package/data/component-props/InputSearch.json +99 -0
  26. package/data/component-props/InputSlider.json +56 -0
  27. package/data/component-props/InputText.json +95 -0
  28. package/data/component-props/InputToggle.json +72 -0
  29. package/data/component-props/List.json +43 -0
  30. package/data/component-props/LoadingIndicator.json +11 -0
  31. package/data/component-props/Menu.json +48 -0
  32. package/data/component-props/MenuItem.json +72 -0
  33. package/data/component-props/MenuSelect.json +83 -0
  34. package/data/component-props/NavigationFooter.json +50 -0
  35. package/data/component-props/NavigationHeader.json +119 -0
  36. package/data/component-props/NavigationJumpTo.json +58 -0
  37. package/data/component-props/Notification.json +89 -0
  38. package/data/component-props/Pagination.json +51 -0
  39. package/data/component-props/Panel.json +72 -0
  40. package/data/component-props/SegmentedControl.json +65 -0
  41. package/data/component-props/Table.json +26 -0
  42. package/data/component-props/TableRow.json +70 -0
  43. package/data/component-props/Tag.json +86 -0
  44. package/data/component-props/TagFilter.json +58 -0
  45. package/data/component-props/Tooltip.json +86 -0
  46. package/data/component-props/TooltipTable.json +22 -0
  47. package/data/component-props-storybook/Accordion-storybook.json +45 -0
  48. package/data/component-props-storybook/Alert-storybook.json +30 -0
  49. package/data/component-props-storybook/Autocomplete-storybook.json +67 -0
  50. package/data/component-props-storybook/Banner-storybook.json +78 -0
  51. package/data/component-props-storybook/Button-storybook.json +115 -0
  52. package/data/component-props-storybook/ButtonDropdown-storybook.json +73 -0
  53. package/data/component-props-storybook/ButtonIcon-storybook.json +60 -0
  54. package/data/component-props-storybook/ButtonToggle-storybook.json +68 -0
  55. package/data/component-props-storybook/Callout-storybook.json +90 -0
  56. package/data/component-props-storybook/CellBasic-storybook.json +138 -0
  57. package/data/component-props-storybook/CellComponent-storybook.json +48 -0
  58. package/data/component-props-storybook/CellHeader-storybook.json +71 -0
  59. package/data/component-props-storybook/Chip-storybook.json +26 -0
  60. package/data/component-props-storybook/ComplexFilter-storybook.json +60 -0
  61. package/data/component-props-storybook/ContentCard-storybook.json +175 -0
  62. package/data/component-props-storybook/Dialog-storybook.json +56 -0
  63. package/data/component-props-storybook/Dropdown-storybook.json +93 -0
  64. package/data/component-props-storybook/DropdownMenu-storybook.json +73 -0
  65. package/data/component-props-storybook/HeatmapChart-storybook.json +55 -0
  66. package/data/component-props-storybook/Icon-storybook.json +75 -0
  67. package/data/component-props-storybook/InputCheckbox-storybook.json +57 -0
  68. package/data/component-props-storybook/InputDropdown-storybook.json +80 -0
  69. package/data/component-props-storybook/InputRadio-storybook.json +56 -0
  70. package/data/component-props-storybook/InputSearch-storybook.json +55 -0
  71. package/data/component-props-storybook/InputSlider-storybook.json +55 -0
  72. package/data/component-props-storybook/InputText-storybook.json +59 -0
  73. package/data/component-props-storybook/InputToggle-storybook.json +42 -0
  74. package/data/component-props-storybook/Link-storybook.json +50 -0
  75. package/data/component-props-storybook/List-storybook.json +26 -0
  76. package/data/component-props-storybook/LoadingIndicator-storybook.json +34 -0
  77. package/data/component-props-storybook/Menu-storybook.json +26 -0
  78. package/data/component-props-storybook/MenuItem-storybook.json +74 -0
  79. package/data/component-props-storybook/MenuSelect-storybook.json +38 -0
  80. package/data/component-props-storybook/NavigationFooter-storybook.json +67 -0
  81. package/data/component-props-storybook/NavigationHeader-storybook.json +115 -0
  82. package/data/component-props-storybook/NavigationJumpTo-storybook.json +41 -0
  83. package/data/component-props-storybook/Notification-storybook.json +89 -0
  84. package/data/component-props-storybook/Pagination-storybook.json +50 -0
  85. package/data/component-props-storybook/Panel-storybook.json +52 -0
  86. package/data/component-props-storybook/SegmentedControl-storybook.json +30 -0
  87. package/data/component-props-storybook/Table-storybook.json +26 -0
  88. package/data/component-props-storybook/TableHeader-storybook.json +26 -0
  89. package/data/component-props-storybook/TableRow-storybook.json +62 -0
  90. package/data/component-props-storybook/Tabs-storybook.json +45 -0
  91. package/data/component-props-storybook/Tag-storybook.json +78 -0
  92. package/data/component-props-storybook/TagFilter-storybook.json +30 -0
  93. package/data/component-props-storybook/Tooltip-storybook.json +85 -0
  94. package/data/component-props-storybook/TooltipCondensed-storybook.json +38 -0
  95. package/data/component-props-storybook/TooltipTable-storybook.json +47 -0
  96. package/data/tailwind.json +3009 -0
  97. package/dist/stdio.js +357 -0
  98. package/package.json +66 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 Chan Zuckerberg Initiative Foundation
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,34 @@
1
+ # SDS MCP Server
2
+
3
+ An MCP server providing AI assistants with access to SDS components,
4
+ examples, design tokens and migration patterns.
5
+
6
+ ## Features
7
+
8
+ - **Component Library**: Get components, props, and usage examples
9
+ - **Migration Support**: Upgrade guidance with before/after code
10
+ snippets
11
+ - **Design Tokens**: Access semantic tokens and font styles for consistent
12
+ theming
13
+
14
+ ## Available Tools
15
+
16
+ - `get_components` - List all Chakra UI components
17
+ - `get_component_props` - Get component properties and configuration
18
+ - `get_component_example` - Retrieve usage examples and code patterns
19
+ - `get_theme` - Get theme tokens, semantic tokens, text styles and layer styles
20
+
21
+ ## Setup
22
+
23
+ ### Claude Desktop / Cursor
24
+
25
+ ```json
26
+ {
27
+ "mcpServers": {
28
+ "sds-mcp": {
29
+ "command": "npx",
30
+ "args": ["-y", "@czi-sds/mcp"]
31
+ }
32
+ }
33
+ }
34
+ ```
@@ -0,0 +1,55 @@
1
+ {
2
+ "components": [
3
+ "Accordion",
4
+ "Alert",
5
+ "Autocomplete",
6
+ "Banner",
7
+ "Button",
8
+ "ButtonDropdown",
9
+ "ButtonIcon",
10
+ "ButtonToggle",
11
+ "Callout",
12
+ "CellBasic",
13
+ "CellComponent",
14
+ "CellHeader",
15
+ "Chip",
16
+ "ComplexFilter",
17
+ "ContentCard",
18
+ "Dialog",
19
+ "Dropdown",
20
+ "DropdownMenu",
21
+ "Icon",
22
+ "InputCheckbox",
23
+ "InputDropdown",
24
+ "InputRadio",
25
+ "InputSearch",
26
+ "InputSlider",
27
+ "InputText",
28
+ "InputToggle",
29
+ "Link",
30
+ "List",
31
+ "LoadingIndicator",
32
+ "Menu",
33
+ "MenuItem",
34
+ "MenuSelect",
35
+ "NavigationFooter",
36
+ "NavigationHeader",
37
+ "NavigationJumpTo",
38
+ "Notification",
39
+ "Pagination",
40
+ "Panel",
41
+ "SegmentedControl",
42
+ "Table",
43
+ "TableHeader",
44
+ "TableRow",
45
+ "Tabs",
46
+ "Tag",
47
+ "TagFilter",
48
+ "Tooltip",
49
+ "TooltipCondensed",
50
+ "TooltipTable"
51
+ ],
52
+ "data-viz": [
53
+ "HeatmapChart"
54
+ ]
55
+ }
@@ -0,0 +1,31 @@
1
+ {
2
+ "Accordion": {
3
+ "props": {
4
+ "children": {
5
+ "type": "ReactNode",
6
+ "isRequired": false,
7
+ "description": "The content of the component."
8
+ },
9
+ "className": {
10
+ "type": "string",
11
+ "isRequired": false
12
+ },
13
+ "style": {
14
+ "type": "CSSProperties",
15
+ "isRequired": false
16
+ },
17
+ "id": {
18
+ "type": "string",
19
+ "isRequired": false
20
+ },
21
+ "onChange": {
22
+ "type": "FormEventHandler<HTMLDivElement>",
23
+ "isRequired": false
24
+ },
25
+ "onClick": {
26
+ "type": "function",
27
+ "isRequired": false
28
+ }
29
+ }
30
+ }
31
+ }
@@ -0,0 +1,52 @@
1
+ {
2
+ "Alert": {
3
+ "props": {
4
+ "color": {
5
+ "type": "\"success\" | \"info\" | \"warning\" | \"error\"",
6
+ "isRequired": false,
7
+ "description": "The color of the component. Unless provided, the value is taken from the `severity` prop.\nIt supports both default and custom theme colors, which can be added as shown in the\n[palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors)."
8
+ },
9
+ "icon": {
10
+ "type": "ReactNode",
11
+ "isRequired": false,
12
+ "description": "Override the icon displayed before the children.\nUnless provided, the icon is mapped to the value of the `severity` prop.\nSet to `false` to remove the `icon`."
13
+ },
14
+ "onClose": {
15
+ "type": "(event: SyntheticEvent<Element, Event>) => void",
16
+ "isRequired": false,
17
+ "description": "Callback fired when the component requests to be closed.\nWhen provided and no `action` prop is set, a close icon button is displayed that triggers the callback when clicked.\n@param event The event source of the callback."
18
+ },
19
+ "variant": {
20
+ "type": "\"standard\" | \"filled\" | \"outlined\"",
21
+ "isRequired": false,
22
+ "description": "The variant to use.",
23
+ "defaultValue": "standard"
24
+ },
25
+ "className": {
26
+ "type": "string",
27
+ "isRequired": false
28
+ },
29
+ "style": {
30
+ "type": "CSSProperties",
31
+ "isRequired": false
32
+ },
33
+ "children": {
34
+ "type": "ReactNode",
35
+ "isRequired": false,
36
+ "description": "The content of the component."
37
+ },
38
+ "id": {
39
+ "type": "string",
40
+ "isRequired": false
41
+ },
42
+ "onChange": {
43
+ "type": "FormEventHandler<HTMLDivElement>",
44
+ "isRequired": false
45
+ },
46
+ "onClick": {
47
+ "type": "function",
48
+ "isRequired": false
49
+ }
50
+ }
51
+ }
52
+ }
@@ -0,0 +1,52 @@
1
+ {
2
+ "Autocomplete": {
3
+ "props": {
4
+ "style": {
5
+ "type": "CSSProperties",
6
+ "isRequired": false
7
+ },
8
+ "children": {
9
+ "type": "ReactNode",
10
+ "isRequired": false,
11
+ "description": "Popper render function or node."
12
+ },
13
+ "open": {
14
+ "type": "\"false\" | \"true\"",
15
+ "isRequired": true,
16
+ "description": "If `true`, the component is shown."
17
+ },
18
+ "className": {
19
+ "type": "string",
20
+ "isRequired": false
21
+ },
22
+ "id": {
23
+ "type": "string",
24
+ "isRequired": false
25
+ },
26
+ "onChange": {
27
+ "type": "FormEventHandler<HTMLDivElement>",
28
+ "isRequired": false
29
+ },
30
+ "onClick": {
31
+ "type": "function",
32
+ "isRequired": false
33
+ },
34
+ "count": {
35
+ "type": "number",
36
+ "isRequired": false
37
+ },
38
+ "icon": {
39
+ "type": "ReactElement",
40
+ "isRequired": false
41
+ },
42
+ "search": {
43
+ "type": "\"false\" | \"true\"",
44
+ "isRequired": false
45
+ },
46
+ "width": {
47
+ "type": "number",
48
+ "isRequired": false
49
+ }
50
+ }
51
+ }
52
+ }
@@ -0,0 +1,35 @@
1
+ {
2
+ "Banner": {
3
+ "props": {
4
+ "icon": {
5
+ "type": "ReactElement",
6
+ "isRequired": false
7
+ },
8
+ "sdsIconProps": {
9
+ "type": "IconProps<string | number | symbol>",
10
+ "isRequired": false
11
+ },
12
+ "dismissed": {
13
+ "type": "\"false\" | \"true\"",
14
+ "isRequired": false
15
+ },
16
+ "dismissible": {
17
+ "type": "\"false\" | \"true\"",
18
+ "isRequired": false
19
+ },
20
+ "onClose": {
21
+ "type": "function",
22
+ "isRequired": false
23
+ },
24
+ "intent": {
25
+ "type": "\"info\" | \"negative\" | \"notice\" | \"positive\"",
26
+ "isRequired": false
27
+ },
28
+ "sdsType": {
29
+ "type": "\"primary\" | \"secondary\"",
30
+ "isRequired": true,
31
+ "description": "The type/variant of the component"
32
+ }
33
+ }
34
+ }
35
+ }
@@ -0,0 +1,109 @@
1
+ {
2
+ "Button": {
3
+ "props": {
4
+ "className": {
5
+ "type": "string",
6
+ "isRequired": false
7
+ },
8
+ "style": {
9
+ "type": "CSSProperties",
10
+ "isRequired": false
11
+ },
12
+ "children": {
13
+ "type": "ReactNode",
14
+ "isRequired": false,
15
+ "description": "The content of the component.\nThe content of the component."
16
+ },
17
+ "disabled": {
18
+ "type": "\"false\" | \"true\"",
19
+ "isRequired": false,
20
+ "description": "If `true`, the component is disabled.",
21
+ "defaultValue": "false\nfalse"
22
+ },
23
+ "color": {
24
+ "type": "\"inherit\" | \"primary\" | \"secondary\" | \"success\" | \"error\" | \"info\" | \"warning\"",
25
+ "isRequired": false,
26
+ "description": "The color of the component.\nIt supports both default and custom theme colors, which can be added as shown in the\n[palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).",
27
+ "defaultValue": "primary"
28
+ },
29
+ "fullWidth": {
30
+ "type": "\"false\" | \"true\"",
31
+ "isRequired": false,
32
+ "description": "If `true`, the button will take up the full width of its container.",
33
+ "defaultValue": false
34
+ },
35
+ "href": {
36
+ "type": "string",
37
+ "isRequired": false,
38
+ "description": "The URL to link to when the button is clicked.\nIf defined, an `a` element will be used as the root node."
39
+ },
40
+ "size": {
41
+ "type": "\"small\" | \"medium\" | \"large\"",
42
+ "isRequired": false,
43
+ "description": "The size of the component.\n`small` is equivalent to the dense button styling.",
44
+ "defaultValue": "medium"
45
+ },
46
+ "variant": {
47
+ "type": "\"text\" | \"outlined\" | \"contained\"",
48
+ "isRequired": false,
49
+ "description": "The variant to use.",
50
+ "defaultValue": "text"
51
+ },
52
+ "name": {
53
+ "type": "string",
54
+ "isRequired": false
55
+ },
56
+ "value": {
57
+ "type": "\"string\" | \"number\" | \"readonly string[]\"",
58
+ "isRequired": false
59
+ },
60
+ "id": {
61
+ "type": "string",
62
+ "isRequired": false
63
+ },
64
+ "onChange": {
65
+ "type": "FormEventHandler<HTMLButtonElement>",
66
+ "isRequired": false
67
+ },
68
+ "onClick": {
69
+ "type": "function",
70
+ "isRequired": false
71
+ },
72
+ "sdsStyle": {
73
+ "type": "\"icon\" | \"minimal\" | \"rounded\" | \"square\"",
74
+ "isRequired": true,
75
+ "description": "The visual style variant of the component"
76
+ },
77
+ "sdsType": {
78
+ "type": "\"primary\" | \"secondary\" | \"tertiary\" | \"destructive\"",
79
+ "isRequired": false,
80
+ "description": "The type/variant of the component"
81
+ },
82
+ "sdsSize": {
83
+ "type": "\"small\" | \"medium\" | \"large\"",
84
+ "isRequired": false,
85
+ "description": "The size of the component"
86
+ },
87
+ "icon": {
88
+ "type": "ReactElement",
89
+ "isRequired": true
90
+ },
91
+ "sdsIconProps": {
92
+ "type": "Partial<IconProps<keyof IconNameToSizes>>",
93
+ "isRequired": false
94
+ },
95
+ "isAllCaps": {
96
+ "type": "\"false\" | \"true\"",
97
+ "isRequired": false
98
+ },
99
+ "target": {
100
+ "type": "\"string & {}\" | \"_self\" | \"_blank\" | \"_parent\" | \"_top\"",
101
+ "isRequired": false
102
+ },
103
+ "isRounded": {
104
+ "type": "\"false\" | \"true\"",
105
+ "isRequired": false
106
+ }
107
+ }
108
+ }
109
+ }
@@ -0,0 +1,80 @@
1
+ {
2
+ "ButtonIcon": {
3
+ "props": {
4
+ "className": {
5
+ "type": "string",
6
+ "isRequired": false
7
+ },
8
+ "style": {
9
+ "type": "CSSProperties",
10
+ "isRequired": false
11
+ },
12
+ "children": {
13
+ "type": "ReactNode",
14
+ "isRequired": false,
15
+ "description": "The icon to display.\nThe content of the component."
16
+ },
17
+ "disabled": {
18
+ "type": "\"false\" | \"true\"",
19
+ "isRequired": false,
20
+ "description": "If `true`, the component is disabled.",
21
+ "defaultValue": "false\nfalse"
22
+ },
23
+ "color": {
24
+ "type": "\"inherit\" | \"default\" | \"primary\" | \"secondary\" | \"error\" | \"info\" | \"success\" | \"warning\"",
25
+ "isRequired": false,
26
+ "description": "The color of the component.\nIt supports both default and custom theme colors, which can be added as shown in the\n[palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).",
27
+ "defaultValue": "default"
28
+ },
29
+ "size": {
30
+ "type": "\"small\" | \"medium\" | \"large\"",
31
+ "isRequired": false,
32
+ "description": "The size of the component.\n`small` is equivalent to the dense button styling.",
33
+ "defaultValue": "medium"
34
+ },
35
+ "name": {
36
+ "type": "string",
37
+ "isRequired": false
38
+ },
39
+ "value": {
40
+ "type": "\"string\" | \"number\" | \"readonly string[]\"",
41
+ "isRequired": false
42
+ },
43
+ "id": {
44
+ "type": "string",
45
+ "isRequired": false
46
+ },
47
+ "onChange": {
48
+ "type": "FormEventHandler<HTMLButtonElement>",
49
+ "isRequired": false
50
+ },
51
+ "onClick": {
52
+ "type": "function",
53
+ "isRequired": false
54
+ },
55
+ "sdsSize": {
56
+ "type": "\"small\" | \"medium\" | \"large\"",
57
+ "isRequired": false,
58
+ "description": "The size of the component"
59
+ },
60
+ "sdsType": {
61
+ "type": "\"primary\" | \"secondary\" | \"tertiary\"",
62
+ "isRequired": false,
63
+ "description": "The type/variant of the component"
64
+ },
65
+ "icon": {
66
+ "type": "ReactElement",
67
+ "isRequired": true
68
+ },
69
+ "sdsIcon": {
70
+ "type": "ReactElement",
71
+ "isRequired": false,
72
+ "description": "@deprecated (masoudmanson): This prop is deprecated and will be removed in the next major version.\nPlease use `icon` instead."
73
+ },
74
+ "sdsIconProps": {
75
+ "type": "IconProps<string | number | symbol>",
76
+ "isRequired": false
77
+ }
78
+ }
79
+ }
80
+ }
@@ -0,0 +1,91 @@
1
+ {
2
+ "ButtonToggle": {
3
+ "props": {
4
+ "className": {
5
+ "type": "string",
6
+ "isRequired": false
7
+ },
8
+ "style": {
9
+ "type": "CSSProperties",
10
+ "isRequired": false
11
+ },
12
+ "children": {
13
+ "type": "ReactNode",
14
+ "isRequired": false,
15
+ "description": "The content of the component."
16
+ },
17
+ "disabled": {
18
+ "type": "\"false\" | \"true\"",
19
+ "isRequired": false,
20
+ "description": "If `true`, the component is disabled."
21
+ },
22
+ "color": {
23
+ "type": "\"inherit\" | \"primary\" | \"secondary\" | \"success\" | \"error\" | \"info\" | \"warning\"",
24
+ "isRequired": false,
25
+ "description": "The color of the component.\nIt supports both default and custom theme colors, which can be added as shown in the\n[palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).",
26
+ "defaultValue": "primary"
27
+ },
28
+ "fullWidth": {
29
+ "type": "\"false\" | \"true\"",
30
+ "isRequired": false,
31
+ "description": "If `true`, the button will take up the full width of its container.",
32
+ "defaultValue": false
33
+ },
34
+ "href": {
35
+ "type": "string",
36
+ "isRequired": false,
37
+ "description": "The URL to link to when the button is clicked.\nIf defined, an `a` element will be used as the root node."
38
+ },
39
+ "size": {
40
+ "type": "\"small\" | \"medium\" | \"large\"",
41
+ "isRequired": false,
42
+ "description": "The size of the component.\n`small` is equivalent to the dense button styling.",
43
+ "defaultValue": "medium"
44
+ },
45
+ "variant": {
46
+ "type": "\"text\" | \"outlined\" | \"contained\"",
47
+ "isRequired": false,
48
+ "description": "The variant to use.",
49
+ "defaultValue": "text"
50
+ },
51
+ "name": {
52
+ "type": "string",
53
+ "isRequired": false
54
+ },
55
+ "value": {
56
+ "type": "\"string\" | \"number\" | \"readonly string[]\"",
57
+ "isRequired": false
58
+ },
59
+ "id": {
60
+ "type": "string",
61
+ "isRequired": false
62
+ },
63
+ "onChange": {
64
+ "type": "FormEventHandler<HTMLButtonElement>",
65
+ "isRequired": false
66
+ },
67
+ "onClick": {
68
+ "type": "function",
69
+ "isRequired": false
70
+ },
71
+ "icon": {
72
+ "type": "ReactElement",
73
+ "isRequired": true
74
+ },
75
+ "sdsSize": {
76
+ "type": "\"small\" | \"medium\" | \"large\"",
77
+ "isRequired": false,
78
+ "description": "The size of the component"
79
+ },
80
+ "sdsStage": {
81
+ "type": "\"off\" | \"on\"",
82
+ "isRequired": false
83
+ },
84
+ "sdsType": {
85
+ "type": "\"primary\" | \"secondary\"",
86
+ "isRequired": false,
87
+ "description": "The type/variant of the component"
88
+ }
89
+ }
90
+ }
91
+ }
@@ -0,0 +1,93 @@
1
+ {
2
+ "Callout": {
3
+ "props": {
4
+ "className": {
5
+ "type": "string",
6
+ "isRequired": false
7
+ },
8
+ "style": {
9
+ "type": "CSSProperties",
10
+ "isRequired": false
11
+ },
12
+ "children": {
13
+ "type": "ReactNode",
14
+ "isRequired": false,
15
+ "description": "The content of the component."
16
+ },
17
+ "variant": {
18
+ "type": "\"standard\" | \"filled\" | \"outlined\"",
19
+ "isRequired": false,
20
+ "description": "The variant to use.",
21
+ "defaultValue": "standard"
22
+ },
23
+ "id": {
24
+ "type": "string",
25
+ "isRequired": false
26
+ },
27
+ "color": {
28
+ "type": "\"success\" | \"info\" | \"warning\" | \"error\"",
29
+ "isRequired": false,
30
+ "description": "The color of the component. Unless provided, the value is taken from the `severity` prop.\nIt supports both default and custom theme colors, which can be added as shown in the\n[palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors)."
31
+ },
32
+ "onChange": {
33
+ "type": "FormEventHandler<HTMLDivElement>",
34
+ "isRequired": false
35
+ },
36
+ "onClick": {
37
+ "type": "function",
38
+ "isRequired": false
39
+ },
40
+ "icon": {
41
+ "type": "ReactNode",
42
+ "isRequired": false,
43
+ "description": "Override the icon displayed before the children.\nUnless provided, the icon is mapped to the value of the `severity` prop.\nSet to `false` to remove the `icon`."
44
+ },
45
+ "onClose": {
46
+ "type": "(event: SyntheticEvent<Element, Event>) => void",
47
+ "isRequired": false,
48
+ "description": "Callback fired when the component requests to be closed.\nWhen provided and no `action` prop is set, a close icon button is displayed that triggers the callback when clicked.\n@param event The event source of the callback."
49
+ },
50
+ "autoDismiss": {
51
+ "type": "\"number\" | \"false\" | \"true\"",
52
+ "isRequired": false
53
+ },
54
+ "dismissed": {
55
+ "type": "\"false\" | \"true\"",
56
+ "isRequired": false
57
+ },
58
+ "sdsIconProps": {
59
+ "type": "IconProps<string | number | symbol>",
60
+ "isRequired": false
61
+ },
62
+ "intent": {
63
+ "type": "\"info\" | \"negative\" | \"notice\" | \"positive\"",
64
+ "isRequired": true
65
+ },
66
+ "sdsStage": {
67
+ "type": "\"closed\" | \"open\"",
68
+ "isRequired": false
69
+ },
70
+ "hideTitle": {
71
+ "type": "\"false\" | \"true\"",
72
+ "isRequired": false
73
+ },
74
+ "body": {
75
+ "type": "ReactNode",
76
+ "isRequired": false
77
+ },
78
+ "hideBody": {
79
+ "type": "\"false\" | \"true\"",
80
+ "isRequired": false
81
+ },
82
+ "extraContent": {
83
+ "type": "ReactNode",
84
+ "isRequired": false
85
+ },
86
+ "sdsStyle": {
87
+ "type": "\"persistent\" | \"expandable\" | \"dismissible\"",
88
+ "isRequired": false,
89
+ "description": "The visual style variant of the component"
90
+ }
91
+ }
92
+ }
93
+ }