@czi-sds/mcp 0.2.2 → 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 (147) 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-cache.json +5195 -0
  46. package/data/zeroheight-exports/Accordion.md +717 -0
  47. package/data/zeroheight-exports/Banner.md +599 -0
  48. package/data/zeroheight-exports/Borders.md +117 -0
  49. package/data/zeroheight-exports/Buttons.md +2305 -0
  50. package/data/zeroheight-exports/Callout.md +778 -0
  51. package/data/zeroheight-exports/Colors.md +632 -0
  52. package/data/zeroheight-exports/Content-Card.md +161 -0
  53. package/data/zeroheight-exports/Contributing-to-SDS.md +98 -0
  54. package/data/zeroheight-exports/Control-Inputs.md +2121 -0
  55. package/data/zeroheight-exports/Corners.md +111 -0
  56. package/data/zeroheight-exports/Cover-page.md +3 -0
  57. package/data/zeroheight-exports/Dialog.md +1191 -0
  58. package/data/zeroheight-exports/Downloads.md +120 -0
  59. package/data/zeroheight-exports/Drop-Shadows.md +79 -0
  60. package/data/zeroheight-exports/Dropdown-Input.md +1180 -0
  61. package/data/zeroheight-exports/Dropdown-Menu.md +3883 -0
  62. package/data/zeroheight-exports/Element-Status-Tracker.md +267 -0
  63. package/data/zeroheight-exports/Field-Inputs.md +984 -0
  64. package/data/zeroheight-exports/Filters.md +888 -0
  65. package/data/zeroheight-exports/Getting-Started.md +1159 -0
  66. package/data/zeroheight-exports/Hero.md +262 -0
  67. package/data/zeroheight-exports/Icons.md +431 -0
  68. package/data/zeroheight-exports/Intent.md +46 -0
  69. package/data/zeroheight-exports/Introduction-to-Bases.md +35 -0
  70. package/data/zeroheight-exports/Introduction-to-Cells.md +35 -0
  71. package/data/zeroheight-exports/Introduction-to-DNA.md +35 -0
  72. package/data/zeroheight-exports/Introduction-to-Genes.md +35 -0
  73. package/data/zeroheight-exports/Introduction.md +115 -0
  74. package/data/zeroheight-exports/Link.md +386 -0
  75. package/data/zeroheight-exports/Lists.md +632 -0
  76. package/data/zeroheight-exports/Loading-Indicator.md +37 -0
  77. package/data/zeroheight-exports/Navigation.md +874 -0
  78. package/data/zeroheight-exports/Notification.md +888 -0
  79. package/data/zeroheight-exports/Panel.md +978 -0
  80. package/data/zeroheight-exports/README.md +124 -0
  81. package/data/zeroheight-exports/Responsive-Design.md +278 -0
  82. package/data/zeroheight-exports/Search-Input.md +53 -0
  83. package/data/zeroheight-exports/Search.md +592 -0
  84. package/data/zeroheight-exports/Segmented-Control.md +584 -0
  85. package/data/zeroheight-exports/Spacing.md +297 -0
  86. package/data/zeroheight-exports/Table.md +4944 -0
  87. package/data/zeroheight-exports/Tabs.md +801 -0
  88. package/data/zeroheight-exports/Tags.md +1055 -0
  89. package/data/zeroheight-exports/Text-Link.md +184 -0
  90. package/data/zeroheight-exports/Theming.md +332 -0
  91. package/data/zeroheight-exports/Tooltips.md +1580 -0
  92. package/data/zeroheight-exports/Typography.md +768 -0
  93. package/dist/stdio.js +193 -93
  94. package/package.json +4 -4
  95. package/data/component-props/Chip.json +0 -73
  96. package/data/component-props/List.json +0 -43
  97. package/data/component-props/Menu.json +0 -48
  98. package/data/component-props/Table.json +0 -26
  99. package/data/component-props-storybook/Accordion-storybook.json +0 -45
  100. package/data/component-props-storybook/Alert-storybook.json +0 -30
  101. package/data/component-props-storybook/Autocomplete-storybook.json +0 -67
  102. package/data/component-props-storybook/Banner-storybook.json +0 -78
  103. package/data/component-props-storybook/Button-storybook.json +0 -115
  104. package/data/component-props-storybook/ButtonDropdown-storybook.json +0 -73
  105. package/data/component-props-storybook/ButtonIcon-storybook.json +0 -60
  106. package/data/component-props-storybook/ButtonToggle-storybook.json +0 -68
  107. package/data/component-props-storybook/Callout-storybook.json +0 -90
  108. package/data/component-props-storybook/CellBasic-storybook.json +0 -138
  109. package/data/component-props-storybook/CellComponent-storybook.json +0 -48
  110. package/data/component-props-storybook/CellHeader-storybook.json +0 -71
  111. package/data/component-props-storybook/Chip-storybook.json +0 -26
  112. package/data/component-props-storybook/ComplexFilter-storybook.json +0 -60
  113. package/data/component-props-storybook/ContentCard-storybook.json +0 -175
  114. package/data/component-props-storybook/Dialog-storybook.json +0 -56
  115. package/data/component-props-storybook/Dropdown-storybook.json +0 -93
  116. package/data/component-props-storybook/DropdownMenu-storybook.json +0 -73
  117. package/data/component-props-storybook/HeatmapChart-storybook.json +0 -55
  118. package/data/component-props-storybook/Icon-storybook.json +0 -75
  119. package/data/component-props-storybook/InputCheckbox-storybook.json +0 -57
  120. package/data/component-props-storybook/InputDropdown-storybook.json +0 -80
  121. package/data/component-props-storybook/InputRadio-storybook.json +0 -56
  122. package/data/component-props-storybook/InputSearch-storybook.json +0 -55
  123. package/data/component-props-storybook/InputSlider-storybook.json +0 -55
  124. package/data/component-props-storybook/InputText-storybook.json +0 -59
  125. package/data/component-props-storybook/InputToggle-storybook.json +0 -42
  126. package/data/component-props-storybook/Link-storybook.json +0 -50
  127. package/data/component-props-storybook/List-storybook.json +0 -26
  128. package/data/component-props-storybook/LoadingIndicator-storybook.json +0 -34
  129. package/data/component-props-storybook/Menu-storybook.json +0 -26
  130. package/data/component-props-storybook/MenuItem-storybook.json +0 -74
  131. package/data/component-props-storybook/MenuSelect-storybook.json +0 -38
  132. package/data/component-props-storybook/NavigationFooter-storybook.json +0 -67
  133. package/data/component-props-storybook/NavigationHeader-storybook.json +0 -115
  134. package/data/component-props-storybook/NavigationJumpTo-storybook.json +0 -41
  135. package/data/component-props-storybook/Notification-storybook.json +0 -89
  136. package/data/component-props-storybook/Pagination-storybook.json +0 -50
  137. package/data/component-props-storybook/Panel-storybook.json +0 -52
  138. package/data/component-props-storybook/SegmentedControl-storybook.json +0 -30
  139. package/data/component-props-storybook/Table-storybook.json +0 -26
  140. package/data/component-props-storybook/TableHeader-storybook.json +0 -26
  141. package/data/component-props-storybook/TableRow-storybook.json +0 -62
  142. package/data/component-props-storybook/Tabs-storybook.json +0 -45
  143. package/data/component-props-storybook/Tag-storybook.json +0 -78
  144. package/data/component-props-storybook/TagFilter-storybook.json +0 -30
  145. package/data/component-props-storybook/Tooltip-storybook.json +0 -85
  146. package/data/component-props-storybook/TooltipCondensed-storybook.json +0 -38
  147. package/data/component-props-storybook/TooltipTable-storybook.json +0 -47
@@ -1,29 +1,28 @@
1
1
  {
2
2
  "Accordion": {
3
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",
4
+ "defaultExpanded": {
5
+ "type": "any",
15
6
  "isRequired": false
16
7
  },
17
8
  "id": {
18
9
  "type": "string",
19
10
  "isRequired": false
20
11
  },
21
- "onChange": {
22
- "type": "FormEventHandler<HTMLDivElement>",
12
+ "togglePosition": {
13
+ "type": "any",
23
14
  "isRequired": false
24
15
  },
25
- "onClick": {
26
- "type": "function",
16
+ "useDivider": {
17
+ "type": "any",
18
+ "isRequired": false
19
+ }
20
+ }
21
+ },
22
+ "AccordionHeader": {
23
+ "props": {
24
+ "subtitle": {
25
+ "type": "string",
27
26
  "isRequired": false
28
27
  }
29
28
  }
@@ -1,50 +1,8 @@
1
1
  {
2
2
  "Alert": {
3
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",
4
+ "text": {
5
+ "type": "any",
48
6
  "isRequired": false
49
7
  }
50
8
  }
@@ -1,50 +1,32 @@
1
1
  {
2
2
  "Autocomplete": {
3
3
  "props": {
4
- "style": {
5
- "type": "CSSProperties",
4
+ "groupBy": {
5
+ "type": "any",
6
6
  "isRequired": false
7
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>",
8
+ "intent": {
9
+ "type": "any",
28
10
  "isRequired": false
29
11
  },
30
- "onClick": {
31
- "type": "function",
12
+ "keepSearchOnSelect": {
13
+ "type": "any",
32
14
  "isRequired": false
33
15
  },
34
- "count": {
35
- "type": "number",
16
+ "label": {
17
+ "type": "any",
36
18
  "isRequired": false
37
19
  },
38
- "icon": {
39
- "type": "ReactElement",
20
+ "multiple": {
21
+ "type": "any",
40
22
  "isRequired": false
41
23
  },
42
- "search": {
43
- "type": "\"false\" | \"true\"",
24
+ "onChange": {
25
+ "type": "FormEventHandler<HTMLDivElement>",
44
26
  "isRequired": false
45
27
  },
46
- "width": {
47
- "type": "number",
28
+ "options": {
29
+ "type": "any",
48
30
  "isRequired": false
49
31
  }
50
32
  }
@@ -1,14 +1,6 @@
1
1
  {
2
2
  "Banner": {
3
3
  "props": {
4
- "icon": {
5
- "type": "ReactElement",
6
- "isRequired": false
7
- },
8
- "sdsIconProps": {
9
- "type": "IconProps<string | number | symbol>",
10
- "isRequired": false
11
- },
12
4
  "dismissed": {
13
5
  "type": "\"false\" | \"true\"",
14
6
  "isRequired": false
@@ -17,18 +9,25 @@
17
9
  "type": "\"false\" | \"true\"",
18
10
  "isRequired": false
19
11
  },
20
- "onClose": {
21
- "type": "function",
12
+ "icon": {
13
+ "type": "ReactElement",
22
14
  "isRequired": false
23
15
  },
24
16
  "intent": {
25
17
  "type": "\"info\" | \"negative\" | \"notice\" | \"positive\"",
26
18
  "isRequired": false
27
19
  },
20
+ "sdsIconProps": {
21
+ "type": "IconProps<string | number | symbol>",
22
+ "isRequired": false
23
+ },
28
24
  "sdsType": {
29
25
  "type": "\"primary\" | \"secondary\"",
30
- "isRequired": true,
31
- "description": "The type/variant of the component"
26
+ "isRequired": true
27
+ },
28
+ "textChild": {
29
+ "type": "any",
30
+ "isRequired": false
32
31
  }
33
32
  }
34
33
  }
@@ -1,107 +1,42 @@
1
1
  {
2
2
  "Button": {
3
3
  "props": {
4
- "className": {
5
- "type": "string",
6
- "isRequired": false
7
- },
8
- "style": {
9
- "type": "CSSProperties",
10
- "isRequired": false
11
- },
12
- "children": {
4
+ "endIcon": {
13
5
  "type": "ReactNode",
14
6
  "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"
7
+ "description": "Element placed after the children."
22
8
  },
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"
9
+ "icon": {
10
+ "type": "ReactElement",
11
+ "isRequired": true
28
12
  },
29
- "fullWidth": {
13
+ "isAllCaps": {
30
14
  "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
15
  "isRequired": false
67
16
  },
68
17
  "onClick": {
69
18
  "type": "function",
70
19
  "isRequired": false
71
20
  },
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
21
  "sdsSize": {
83
22
  "type": "\"small\" | \"medium\" | \"large\"",
84
- "isRequired": false,
85
- "description": "The size of the component"
23
+ "isRequired": false
86
24
  },
87
- "icon": {
88
- "type": "ReactElement",
25
+ "sdsStyle": {
26
+ "type": "\"icon\" | \"minimal\" | \"rounded\" | \"square\"",
89
27
  "isRequired": true
90
28
  },
91
- "sdsIconProps": {
92
- "type": "Partial<IconProps<keyof IconNameToSizes>>",
93
- "isRequired": false
94
- },
95
- "isAllCaps": {
96
- "type": "\"false\" | \"true\"",
29
+ "sdsType": {
30
+ "type": "\"primary\" | \"secondary\" | \"tertiary\" | \"destructive\"",
97
31
  "isRequired": false
98
32
  },
99
- "target": {
100
- "type": "\"string & {}\" | \"_self\" | \"_blank\" | \"_parent\" | \"_top\"",
101
- "isRequired": false
33
+ "startIcon": {
34
+ "type": "ReactNode",
35
+ "isRequired": false,
36
+ "description": "Element placed before the children."
102
37
  },
103
- "isRounded": {
104
- "type": "\"false\" | \"true\"",
38
+ "text": {
39
+ "type": "any",
105
40
  "isRequired": false
106
41
  }
107
42
  }
@@ -0,0 +1,26 @@
1
+ {
2
+ "ButtonDropdown": {
3
+ "props": {
4
+ "disabled": {
5
+ "type": "any",
6
+ "isRequired": false
7
+ },
8
+ "icon": {
9
+ "type": "any",
10
+ "isRequired": false
11
+ },
12
+ "sdsSize": {
13
+ "type": "any",
14
+ "isRequired": false
15
+ },
16
+ "sdsStyle": {
17
+ "type": "any",
18
+ "isRequired": false
19
+ },
20
+ "sdsType": {
21
+ "type": "any",
22
+ "isRequired": false
23
+ }
24
+ }
25
+ }
26
+ }
@@ -1,78 +1,22 @@
1
1
  {
2
2
  "ButtonIcon": {
3
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
4
  "disabled": {
18
5
  "type": "\"false\" | \"true\"",
19
6
  "isRequired": false,
20
7
  "description": "If `true`, the component is disabled.",
21
8
  "defaultValue": "false\nfalse"
22
9
  },
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
10
+ "icon": {
11
+ "type": "ReactElement",
12
+ "isRequired": true
54
13
  },
55
14
  "sdsSize": {
56
15
  "type": "\"small\" | \"medium\" | \"large\"",
57
- "isRequired": false,
58
- "description": "The size of the component"
16
+ "isRequired": false
59
17
  },
60
18
  "sdsType": {
61
19
  "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
20
  "isRequired": false
77
21
  }
78
22
  }
@@ -1,81 +1,18 @@
1
1
  {
2
2
  "ButtonToggle": {
3
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
4
  "disabled": {
18
5
  "type": "\"false\" | \"true\"",
19
6
  "isRequired": false,
20
7
  "description": "If `true`, the component is disabled."
21
8
  },
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
9
  "icon": {
72
10
  "type": "ReactElement",
73
11
  "isRequired": true
74
12
  },
75
13
  "sdsSize": {
76
14
  "type": "\"small\" | \"medium\" | \"large\"",
77
- "isRequired": false,
78
- "description": "The size of the component"
15
+ "isRequired": false
79
16
  },
80
17
  "sdsStage": {
81
18
  "type": "\"off\" | \"on\"",
@@ -83,8 +20,7 @@
83
20
  },
84
21
  "sdsType": {
85
22
  "type": "\"primary\" | \"secondary\"",
86
- "isRequired": false,
87
- "description": "The type/variant of the component"
23
+ "isRequired": false
88
24
  }
89
25
  }
90
26
  }
@@ -1,40 +1,20 @@
1
1
  {
2
2
  "Callout": {
3
3
  "props": {
4
- "className": {
5
- "type": "string",
6
- "isRequired": false
7
- },
8
- "style": {
9
- "type": "CSSProperties",
4
+ "autoDismiss": {
5
+ "type": "\"number\" | \"false\" | \"true\"",
10
6
  "isRequired": false
11
7
  },
12
- "children": {
8
+ "body": {
13
9
  "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
10
  "isRequired": false
26
11
  },
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>",
12
+ "hideBody": {
13
+ "type": "\"false\" | \"true\"",
34
14
  "isRequired": false
35
15
  },
36
- "onClick": {
37
- "type": "function",
16
+ "hideTitle": {
17
+ "type": "\"false\" | \"true\"",
38
18
  "isRequired": false
39
19
  },
40
20
  "icon": {
@@ -42,51 +22,17 @@
42
22
  "isRequired": false,
43
23
  "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
24
  },
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
25
  "intent": {
63
26
  "type": "\"info\" | \"negative\" | \"notice\" | \"positive\"",
64
27
  "isRequired": true
65
28
  },
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\"",
29
+ "sdsStyle": {
30
+ "type": "\"persistent\" | \"expandable\" | \"dismissible\"",
80
31
  "isRequired": false
81
32
  },
82
- "extraContent": {
83
- "type": "ReactNode",
33
+ "title": {
34
+ "type": "string",
84
35
  "isRequired": false
85
- },
86
- "sdsStyle": {
87
- "type": "\"persistent\" | \"expandable\" | \"dismissible\"",
88
- "isRequired": false,
89
- "description": "The visual style variant of the component"
90
36
  }
91
37
  }
92
38
  }