@czi-sds/mcp 0.16.0 → 0.18.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 (167) 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/ProteinStructureViewer.md +1044 -0
  44. package/data/component-docs/SegmentedControl.md +396 -0
  45. package/data/component-docs/StackedBarChart.md +475 -0
  46. package/data/component-docs/Table.md +2000 -0
  47. package/data/component-docs/TableHeader.md +53 -0
  48. package/data/component-docs/TableRow.md +74 -0
  49. package/data/component-docs/Tabs.md +455 -0
  50. package/data/component-docs/Tag.md +647 -0
  51. package/data/component-docs/TagFilter.md +131 -0
  52. package/data/component-docs/Tooltip.md +561 -0
  53. package/data/component-docs/TooltipCondensed.md +203 -0
  54. package/data/component-docs/TooltipTable.md +145 -0
  55. package/data/component-docs/index.json +267 -0
  56. package/data/component-list.json +2 -5
  57. package/data/component-props/Accordion.json +31 -11
  58. package/data/component-props/Alert.json +3 -3
  59. package/data/component-props/Autocomplete.json +150 -15
  60. package/data/component-props/Banner.json +31 -17
  61. package/data/component-props/Button.json +45 -20
  62. package/data/component-props/ButtonDropdown.json +36 -17
  63. package/data/component-props/ButtonDropdownLegacy.json +11 -11
  64. package/data/component-props/ButtonGroup.json +32 -11
  65. package/data/component-props/ButtonIcon.json +10 -10
  66. package/data/component-props/ButtonLegacy.json +19 -19
  67. package/data/component-props/ButtonToggle.json +32 -19
  68. package/data/component-props/ButtonToggleLegacy.json +11 -11
  69. package/data/component-props/Callout.json +58 -17
  70. package/data/component-props/CellBasic.json +94 -41
  71. package/data/component-props/CellComponent.json +23 -7
  72. package/data/component-props/CellHeader.json +62 -19
  73. package/data/component-props/ComplexFilter.json +52 -21
  74. package/data/component-props/ContentCard.json +70 -47
  75. package/data/component-props/Dialog.json +47 -14
  76. package/data/component-props/Dropdown.json +68 -31
  77. package/data/component-props/DropdownMenu.json +128 -23
  78. package/data/component-props/HeatmapChart.json +88 -12
  79. package/data/component-props/Hero.json +80 -39
  80. package/data/component-props/Icon.json +20 -9
  81. package/data/component-props/InputCheckbox.json +36 -14
  82. package/data/component-props/InputDropdown.json +75 -27
  83. package/data/component-props/InputRadio.json +31 -13
  84. package/data/component-props/InputSearch.json +41 -18
  85. package/data/component-props/InputSlider.json +46 -19
  86. package/data/component-props/InputText.json +26 -19
  87. package/data/component-props/InputToggle.json +26 -9
  88. package/data/component-props/IntentMessage.json +38 -9
  89. package/data/component-props/Link.json +13 -7
  90. package/data/component-props/LoadingIndicator.json +11 -3
  91. package/data/component-props/MenuItem.json +38 -19
  92. package/data/component-props/MenuSelect.json +8 -8
  93. package/data/component-props/NavigationFooter.json +49 -19
  94. package/data/component-props/NavigationHeader.json +150 -37
  95. package/data/component-props/NavigationJumpTo.json +33 -7
  96. package/data/component-props/Notification.json +39 -21
  97. package/data/component-props/Pagination.json +39 -11
  98. package/data/component-props/Panel.json +62 -9
  99. package/data/component-props/Popover.json +80 -7
  100. package/data/component-props/PreComposedTable.json +99 -27
  101. package/data/component-props/ProteinStructureViewer.json +117 -0
  102. package/data/component-props/SegmentedControl.json +42 -3
  103. package/data/component-props/StackedBarChart.json +116 -42
  104. package/data/component-props/TableRow.json +38 -19
  105. package/data/component-props/Tabs.json +66 -9
  106. package/data/component-props/Tag.json +34 -17
  107. package/data/component-props/TagFilter.json +10 -3
  108. package/data/component-props/Tooltip.json +49 -18
  109. package/data/component-props/TooltipCondensed.json +18 -9
  110. package/data/component-props/TooltipTable.json +17 -7
  111. package/data/resources/{zeroheight-rules.md → documentation-rules.md} +43 -30
  112. package/data/resources/figma-rules.md +2 -2
  113. package/data/tailwind.json +20 -14
  114. package/dist/stdio.js +112 -208
  115. package/package.json +9 -5
  116. package/data/component-props/ButtonDropdownV2.json +0 -34
  117. package/data/component-props/ButtonNew.json +0 -47
  118. package/data/component-props/ButtonToggleV2.json +0 -44
  119. package/data/component-props/ButtonV2.json +0 -43
  120. package/data/zeroheight-cache.json +0 -10259
  121. package/data/zeroheight-exports/Accordion.md +0 -774
  122. package/data/zeroheight-exports/Banner.md +0 -691
  123. package/data/zeroheight-exports/Borders.md +0 -117
  124. package/data/zeroheight-exports/Buttons.md +0 -1854
  125. package/data/zeroheight-exports/Callout.md +0 -931
  126. package/data/zeroheight-exports/Colors.md +0 -1755
  127. package/data/zeroheight-exports/Content-Card.md +0 -309
  128. package/data/zeroheight-exports/Contributing-to-SDS.md +0 -98
  129. package/data/zeroheight-exports/Control-Inputs.md +0 -2818
  130. package/data/zeroheight-exports/Corners.md +0 -104
  131. package/data/zeroheight-exports/Cover-page.md +0 -3
  132. package/data/zeroheight-exports/Dialog.md +0 -1367
  133. package/data/zeroheight-exports/Downloads.md +0 -236
  134. package/data/zeroheight-exports/Drop-Shadows.md +0 -79
  135. package/data/zeroheight-exports/Dropdown-Input.md +0 -1776
  136. package/data/zeroheight-exports/Dropdown-Menus.md +0 -913
  137. package/data/zeroheight-exports/Element-Status-Tracker.md +0 -267
  138. package/data/zeroheight-exports/Field-Inputs.md +0 -1405
  139. package/data/zeroheight-exports/Filters.md +0 -1111
  140. package/data/zeroheight-exports/Getting-Started.md +0 -1157
  141. package/data/zeroheight-exports/Hero.md +0 -414
  142. package/data/zeroheight-exports/Icons.md +0 -2067
  143. package/data/zeroheight-exports/Intent.md +0 -86
  144. package/data/zeroheight-exports/Introduction-to-Bases.md +0 -35
  145. package/data/zeroheight-exports/Introduction-to-Cells.md +0 -35
  146. package/data/zeroheight-exports/Introduction-to-DNA.md +0 -35
  147. package/data/zeroheight-exports/Introduction-to-Genes.md +0 -35
  148. package/data/zeroheight-exports/Introduction.md +0 -115
  149. package/data/zeroheight-exports/Link.md +0 -432
  150. package/data/zeroheight-exports/Lists.md +0 -986
  151. package/data/zeroheight-exports/Loading-Indicator.md +0 -41
  152. package/data/zeroheight-exports/Navigation.md +0 -1190
  153. package/data/zeroheight-exports/Notification.md +0 -1038
  154. package/data/zeroheight-exports/Panel.md +0 -1030
  155. package/data/zeroheight-exports/README.md +0 -122
  156. package/data/zeroheight-exports/Responsive-Design.md +0 -330
  157. package/data/zeroheight-exports/Search-Input.md +0 -91
  158. package/data/zeroheight-exports/Search.md +0 -822
  159. package/data/zeroheight-exports/Segmented-Control.md +0 -609
  160. package/data/zeroheight-exports/Spacing.md +0 -297
  161. package/data/zeroheight-exports/Table.md +0 -5345
  162. package/data/zeroheight-exports/Tabs.md +0 -1324
  163. package/data/zeroheight-exports/Tags.md +0 -1545
  164. package/data/zeroheight-exports/Text-Link.md +0 -268
  165. package/data/zeroheight-exports/Theming.md +0 -362
  166. package/data/zeroheight-exports/Tooltips.md +0 -2015
  167. package/data/zeroheight-exports/Typography.md +0 -800
@@ -2,57 +2,105 @@
2
2
  "InputDropdown": {
3
3
  "props": {
4
4
  "counter": {
5
- "type": "ReactNode",
6
- "isRequired": false
5
+ "description": "If multiple set to true, this number shows the number of selected menu items.",
6
+ "isRequired": false,
7
+ "type": "ReactNode"
7
8
  },
8
9
  "classes": {
9
- "type": "complex",
10
- "isRequired": false
10
+ "description": "A class name for each part of the input, for styling one of them without reaching through the DOM: root, label, labelDetailsWrapper, contentWrapper, details, counter, iconWrapper, chevronIcon and minimalDetails.",
11
+ "isRequired": false,
12
+ "type": "{ root?: string | undefined; label?: string | undefined; labelDetailsWrapper?: string | undefined; contentWrapper?: string | undefined; details?: string | undefined; counter?: string | undefined; iconWrapper?: string | undefined; chevronIcon?: string | undefined; minimalDetails?: string | undefined; }"
11
13
  },
12
14
  "disabled": {
13
- "type": "\"false\" | \"true\"",
14
- "isRequired": false
15
+ "defaultValue": false,
16
+ "description": "If true, the component is disabled.",
17
+ "isRequired": false,
18
+ "type": "boolean"
15
19
  },
16
20
  "intent": {
17
- "type": "\"default\" | \"negative\" | \"notice\" | \"positive\"",
18
- "isRequired": false
21
+ "defaultValue": "default",
22
+ "description": "The color of the component.",
23
+ "isRequired": false,
24
+ "type": "\"default\" | \"negative\" | \"notice\" | \"positive\""
19
25
  },
20
26
  "label": {
21
- "type": "ReactNode",
22
- "isRequired": true
27
+ "description": "The label of the Input Button.",
28
+ "isRequired": true,
29
+ "type": "ReactNode"
23
30
  },
24
31
  "multiple": {
25
- "type": "\"false\" | \"true\"",
26
- "isRequired": false
32
+ "defaultValue": false,
33
+ "description": "Allows users to select multiple menu items.multiple=true cannot be used with the minimum variant.",
34
+ "isRequired": false,
35
+ "type": "boolean"
27
36
  },
28
37
  "sdsStyle": {
29
- "type": "\"minimal\" | \"square\" | \"rounded\"",
30
- "isRequired": false
38
+ "defaultValue": "square",
39
+ "description": "The visual appearance of the component.",
40
+ "isRequired": false,
41
+ "type": "\"square\" | \"rounded\" | \"minimal\""
31
42
  },
32
43
  "sdsType": {
33
- "type": "\"value\" | \"label\"",
34
- "isRequired": false
44
+ "defaultValue": "label",
45
+ "description": "The label variant includes the label within the input field and showcases the selected menu item as additional details or sets the counter when in multi-select mode. The value variant replaces the label with the selected value directly within the input field. The detailed information is then displayed in a separate section dedicated to displaying additional details. However, it's important to note that the value variant cannot be used in conjunction with multi-select mode.",
46
+ "isRequired": false,
47
+ "type": "\"label\" | \"value\""
35
48
  },
36
49
  "shouldPutAColonAfterLabel": {
37
- "type": "\"false\" | \"true\"",
38
- "isRequired": false
50
+ "defaultValue": true,
51
+ "description": "If true, a colon (:) will be added after the label or value.",
52
+ "isRequired": false,
53
+ "type": "boolean"
39
54
  },
40
55
  "shouldTruncateMinimalDetails": {
41
- "type": "\"false\" | \"true\"",
42
- "isRequired": false
56
+ "defaultValue": false,
57
+ "description": "If true, the details section of the minimal variant displays a truncated one-liner with an ellipsis (...), if false the details section expands to multiple lines for a comprehensive display.",
58
+ "isRequired": false,
59
+ "type": "boolean"
43
60
  },
44
61
  "startIcon": {
45
- "type": "ReactNode",
46
- "isRequired": false
62
+ "description": "An element placed before the label, passed straight through to the underlying MUI Button.",
63
+ "isRequired": false,
64
+ "type": "ReactNode"
47
65
  },
48
66
  "style": {
49
- "type": "CSSProperties",
50
- "isRequired": false
67
+ "description": "Inline styles for the input's root element.",
68
+ "isRequired": false,
69
+ "type": "CSSProperties"
51
70
  },
52
71
  "width": {
53
- "type": "string",
54
- "isRequired": false
72
+ "defaultValue": "auto",
73
+ "description": "How wide the input is. A bare number is read as pixels, so \"240\" means 240px, and any other value is used as the CSS width, such as \"100%\" or \"20rem\". Values below 90px are ignored, since the input keeps that as its minimum. Left unset, the input is as wide as its content, or as wide as its container if MUI's fullWidth is set.",
74
+ "isRequired": false,
75
+ "type": "string"
76
+ },
77
+ "className": {
78
+ "description": "Added to the input's root element, alongside anything classes.root puts there.",
79
+ "isRequired": false,
80
+ "type": "string"
81
+ },
82
+ "details": {
83
+ "description": "A text showing details for the selected menu item.",
84
+ "isRequired": false,
85
+ "type": "ReactNode"
86
+ },
87
+ "onClick": {
88
+ "defaultValue": "(event: React.MouseEvent<HTMLElement>) => void",
89
+ "description": "Sets what happens when a user clicks on the component.",
90
+ "isRequired": true,
91
+ "type": "function"
92
+ },
93
+ "state": {
94
+ "defaultValue": "default",
95
+ "description": "Draws the input in its open state. The input has no idea whether its menu is showing, so set this from whatever holds that state.",
96
+ "isRequired": false,
97
+ "type": "\"open\" | \"default\""
98
+ },
99
+ "value": {
100
+ "description": "The value that will be displayed in the component for the value variant.",
101
+ "isRequired": false,
102
+ "type": "ReactNode"
55
103
  }
56
104
  }
57
105
  }
58
- }
106
+ }
@@ -2,31 +2,49 @@
2
2
  "InputRadio": {
3
3
  "props": {
4
4
  "caption": {
5
- "type": "ReactNode",
6
- "isRequired": false
5
+ "description": "The caption of the InputRadio appears beneath the label in a lighter text color.",
6
+ "isRequired": false,
7
+ "type": "ReactNode"
7
8
  },
8
9
  "disabled": {
9
- "type": "\"false\" | \"true\"",
10
+ "defaultValue": false,
11
+ "description": "If `true`, the component is disabled.",
10
12
  "isRequired": false,
11
- "description": "If `true`, the component is disabled."
13
+ "type": "boolean"
12
14
  },
13
15
  "intent": {
14
- "type": "\"default\" | \"negative\" | \"notice\" | \"positive\"",
15
- "isRequired": false
16
+ "defaultValue": "default",
17
+ "description": "Colors the border of the empty circle. The selected radio always uses the accent color.",
18
+ "isRequired": false,
19
+ "type": "\"default\" | \"negative\" | \"notice\" | \"positive\""
16
20
  },
17
21
  "label": {
18
- "type": "ReactNode",
19
- "isRequired": false
22
+ "description": "The label of the InputRadio.",
23
+ "isRequired": false,
24
+ "type": "ReactNode"
20
25
  },
21
26
  "stage": {
22
- "type": "\"checked\" | \"unchecked\"",
23
- "isRequired": false
27
+ "description": "Sets the radio as \"checked\" or \"unchecked\", overriding checked. Omit it inside a RadioGroup, which drives the selection itself.",
28
+ "isRequired": false,
29
+ "type": "\"checked\" | \"unchecked\""
24
30
  },
25
31
  "classes": {
26
- "type": "complex",
32
+ "defaultValue": {},
33
+ "description": "Class names for the internal elements: root, labelCaptionContainer, label,\ncaption, radioButton, radioCheckedIcon, radioCheckedIconDot, and\nradioDefaultIcon.",
34
+ "isRequired": false,
35
+ "type": "{ root?: string | undefined; labelCaptionContainer?: string | undefined; label?: string | undefined; caption?: string | undefined; radioButton?: string | undefined; radioCheckedIcon?: string | undefined; radioCheckedIconDot?: string | undefined; radioDefaultIcon?: string | undefined; }"
36
+ },
37
+ "value": {
38
+ "description": "The value a RadioGroup compares against to decide whether this radio is\nselected. It also backs the label and caption element ids, so give every\nradio a unique one.",
39
+ "isRequired": false,
40
+ "type": "string"
41
+ },
42
+ "radioProps": {
43
+ "defaultValue": {},
44
+ "description": "Directly pass these props to the underlying MUI radio.",
27
45
  "isRequired": false,
28
- "description": "Override or extend the styles applied to the component."
46
+ "type": "Partial<RadioProps>"
29
47
  }
30
48
  }
31
49
  }
32
- }
50
+ }
@@ -2,39 +2,62 @@
2
2
  "InputSearch": {
3
3
  "props": {
4
4
  "disabled": {
5
- "type": "\"false\" | \"true\"",
6
- "isRequired": false,
5
+ "defaultValue": false,
7
6
  "description": "If `true`, the component is disabled.",
8
- "defaultValue": false
7
+ "isRequired": false,
8
+ "type": "boolean"
9
9
  },
10
10
  "id": {
11
- "type": "string",
12
- "isRequired": false,
13
- "description": "The id of the `input` element.\nUse this prop to make `label` and `helperText` accessible for screen readers."
11
+ "description": "The id of the `input` element.\nUse this prop to make `label` and `helperText` accessible for screen readers.",
12
+ "isRequired": true,
13
+ "type": "string"
14
14
  },
15
15
  "intent": {
16
- "type": "\"negative\" | \"notice\" | \"positive\" | \"default\"",
17
- "isRequired": false
16
+ "defaultValue": "default",
17
+ "description": "Alters the border color and visual intent of the search input.",
18
+ "isRequired": false,
19
+ "type": "\"default\" | \"negative\" | \"notice\" | \"positive\""
18
20
  },
19
21
  "label": {
20
- "type": "ReactNode",
21
- "isRequired": false,
22
- "description": "The label content."
22
+ "description": "The label content.",
23
+ "isRequired": true,
24
+ "type": "ReactNode"
23
25
  },
24
26
  "placeholder": {
25
- "type": "string",
27
+ "defaultValue": "Search",
28
+ "description": "The short hint displayed in the `input` before the user enters a value.",
26
29
  "isRequired": false,
27
- "description": "The short hint displayed in the `input` before the user enters a value."
30
+ "type": "string"
28
31
  },
29
32
  "sdsStyle": {
30
- "type": "\"rounded\" | \"square\"",
31
- "isRequired": false
33
+ "defaultValue": "square",
34
+ "description": "Determines the visual style of the component, with options for rounded or square design.",
35
+ "isRequired": false,
36
+ "type": "\"square\" | \"rounded\""
32
37
  },
33
38
  "classes": {
34
- "type": "Partial",
39
+ "defaultValue": {},
40
+ "description": "Override or extend the styles applied to the component.",
41
+ "isRequired": false,
42
+ "type": "Partial<TextFieldClasses> & { root?: string | undefined; label?: string | undefined; input?: string | undefined; endAdornment?: string | undefined; startAdornment?: string | undefined; clearButton?: string | undefined; searchButton?: string | undefined; }"
43
+ },
44
+ "handleSubmit": {
45
+ "defaultValue": "function(value: string) => void",
46
+ "description": "This function is called when the Search icon is clicked, allowing user to handle the search operation.",
47
+ "isRequired": false,
48
+ "type": "(value: string) => void"
49
+ },
50
+ "onChange": {
51
+ "defaultValue": "function(event: React.ChangeEvent) => void",
52
+ "description": "Callback fired when the value is changed.\n@param event The event source of the callback.\nYou can pull out the new value by accessing `event.target.value` (string).\n@param event The event source of the callback.\nYou can pull out the new value by accessing `event.target.value` (string).\n@param event The event source of the callback.\nYou can pull out the new value by accessing `event.target.value` (string).",
53
+ "isRequired": false,
54
+ "type": "function"
55
+ },
56
+ "value": {
57
+ "description": "The value of the `input` element, required for a controlled component.",
35
58
  "isRequired": false,
36
- "description": "Override or extend the styles applied to the component."
59
+ "type": "string"
37
60
  }
38
61
  }
39
62
  }
40
- }
63
+ }
@@ -2,41 +2,68 @@
2
2
  "InputSlider": {
3
3
  "props": {
4
4
  "disabled": {
5
- "type": "\"false\" | \"true\"",
6
- "isRequired": false,
5
+ "defaultValue": false,
7
6
  "description": "If `true`, the component is disabled.",
8
- "defaultValue": false
7
+ "isRequired": false,
8
+ "type": "boolean"
9
9
  },
10
10
  "marks": {
11
- "type": "\"false\" | \"true\" | \"readonly Mark[]\"",
12
- "isRequired": false,
11
+ "defaultValue": false,
13
12
  "description": "Marks indicate predetermined values to which the user can move the slider.\nIf `true` the marks are spaced according the value of the `step` prop.\nIf an array, it should contain objects with `value` and an optional `label` keys.",
14
- "defaultValue": false
13
+ "isRequired": false,
14
+ "type": "false | true | readonly Mark[]"
15
15
  },
16
16
  "max": {
17
- "type": "number",
18
- "isRequired": false,
17
+ "defaultValue": 100,
19
18
  "description": "The maximum allowed value of the slider.\nShould not be equal to min.",
20
- "defaultValue": 100
19
+ "isRequired": false,
20
+ "type": "number"
21
21
  },
22
22
  "min": {
23
- "type": "number",
24
- "isRequired": false,
23
+ "defaultValue": 0,
25
24
  "description": "The minimum allowed value of the slider.\nShould not be equal to max.",
26
- "defaultValue": 0
25
+ "isRequired": false,
26
+ "type": "number"
27
27
  },
28
28
  "step": {
29
- "type": "number",
30
- "isRequired": false,
29
+ "defaultValue": 1,
31
30
  "description": "The granularity with which the slider can step through values. (A \"discrete\" slider.)\nThe `min` prop serves as the origin for the valid values.\nWe recommend (max - min) to be evenly divisible by the step.\n\nWhen step is `null`, the thumb can only be slid onto marks provided with the `marks` prop.",
32
- "defaultValue": 1
31
+ "isRequired": false,
32
+ "type": "number | null"
33
33
  },
34
34
  "valueLabelDisplay": {
35
- "type": "\"on\" | \"auto\" | \"off\"",
36
- "isRequired": false,
35
+ "defaultValue": "off",
37
36
  "description": "Controls when the value label is displayed:\n\n- `auto` the value label will display when the thumb is hovered or focused.\n- `on` will display persistently.\n- `off` will never display.",
38
- "defaultValue": "off"
37
+ "isRequired": false,
38
+ "type": "\"off\" | \"on\" | \"auto\""
39
+ },
40
+ "defaultValue": {
41
+ "description": "The default value. Use when the component is not controlled.",
42
+ "isRequired": false,
43
+ "type": "number | number[]"
44
+ },
45
+ "value": {
46
+ "description": "The value of the slider.\nFor ranged sliders, provide an array with two values.",
47
+ "isRequired": false,
48
+ "type": "number | number[]"
49
+ },
50
+ "onChange": {
51
+ "description": "Callback function that is fired when the slider's value changed.\n@param event The event source of the callback.\nYou can pull out the new value by accessing `event.target.value` (any).\n**Warning**: This is a generic event not a change event.\n@param value The new value.\n@param activeThumb Index of the currently moved thumb.",
52
+ "isRequired": false,
53
+ "type": "(event: Event, value: number | number[], activeThumb: number) => void"
54
+ },
55
+ "orientation": {
56
+ "defaultValue": "horizontal",
57
+ "description": "The component orientation.",
58
+ "isRequired": false,
59
+ "type": "\"horizontal\" | \"vertical\""
60
+ },
61
+ "aria-label": {
62
+ "defaultValue": "Slider value",
63
+ "description": "The label of the slider.",
64
+ "isRequired": false,
65
+ "type": "string"
39
66
  }
40
67
  }
41
68
  }
42
- }
69
+ }
@@ -2,43 +2,50 @@
2
2
  "InputText": {
3
3
  "props": {
4
4
  "disabled": {
5
- "type": "\"false\" | \"true\"",
6
- "isRequired": false,
5
+ "defaultValue": false,
7
6
  "description": "If `true`, the component is disabled.",
8
- "defaultValue": false
7
+ "isRequired": false,
8
+ "type": "boolean"
9
9
  },
10
10
  "hideLabel": {
11
- "type": "\"false\" | \"true\"",
12
- "isRequired": false
11
+ "defaultValue": false,
12
+ "description": "If true, the label is hidden.",
13
+ "isRequired": false,
14
+ "type": "boolean"
13
15
  },
14
16
  "id": {
15
- "type": "string",
16
- "isRequired": false,
17
- "description": "The id of the `input` element.\nUse this prop to make `label` and `helperText` accessible for screen readers."
17
+ "description": "The id of the `input` element.\nUse this prop to make `label` and `helperText` accessible for screen readers.",
18
+ "isRequired": true,
19
+ "type": "string"
18
20
  },
19
21
  "intent": {
20
- "type": "\"default\" | \"negative\" | \"notice\" | \"positive\"",
21
- "isRequired": false
22
+ "defaultValue": "default",
23
+ "description": "Alters the border color and visual intent of the search input.",
24
+ "isRequired": false,
25
+ "type": "\"default\" | \"negative\" | \"notice\" | \"positive\""
22
26
  },
23
27
  "label": {
24
- "type": "ReactNode",
28
+ "description": "The label content.",
25
29
  "isRequired": false,
26
- "description": "The label content."
30
+ "type": "ReactNode"
27
31
  },
28
32
  "placeholder": {
29
- "type": "string",
33
+ "description": "The short hint displayed in the `input` before the user enters a value.",
30
34
  "isRequired": false,
31
- "description": "The short hint displayed in the `input` before the user enters a value."
35
+ "type": "string"
32
36
  },
33
37
  "sdsType": {
34
- "type": "\"textField\" | \"textArea\"",
35
- "isRequired": false
38
+ "defaultValue": "textField",
39
+ "description": "Defines the type of component to render, with options for a text input or text area.",
40
+ "isRequired": false,
41
+ "type": "\"textField\" | \"textArea\""
36
42
  },
37
43
  "classes": {
38
- "type": "Partial<TextFieldClasses> & { root?: string; label?: string; input?: string; }",
44
+ "defaultValue": {},
45
+ "description": "Override or extend the styles applied to the component.",
39
46
  "isRequired": false,
40
- "description": "Override or extend the styles applied to the component."
47
+ "type": "Partial<TextFieldClasses> & { root?: string | undefined; label?: string | undefined; input?: string | undefined; endAdornment?: string | undefined; startAdornment?: string | undefined; clearButton?: string | undefined; searchButton?: string | undefined; }"
41
48
  }
42
49
  }
43
50
  }
44
- }
51
+ }
@@ -2,22 +2,39 @@
2
2
  "InputToggle": {
3
3
  "props": {
4
4
  "disabled": {
5
- "type": "\"false\" | \"true\"",
5
+ "defaultValue": false,
6
+ "description": "If `true`, the component is disabled.",
6
7
  "isRequired": false,
7
- "description": "If `true`, the component is disabled."
8
+ "type": "boolean"
8
9
  },
9
10
  "offLabel": {
10
- "type": "string",
11
- "isRequired": false
11
+ "defaultValue": "Off",
12
+ "description": "The text displayed within the InputToggle when it's off.",
13
+ "isRequired": false,
14
+ "type": "string"
12
15
  },
13
16
  "onLabel": {
14
- "type": "string",
15
- "isRequired": false
17
+ "defaultValue": "On",
18
+ "description": "The text displayed within the InputToggle when it's on.",
19
+ "isRequired": false,
20
+ "type": "string"
16
21
  },
17
22
  "width": {
18
- "type": "number",
19
- "isRequired": false
23
+ "defaultValue": 62,
24
+ "description": "Controls the width of the InputToggle element, in pixels. Increase it when custom labels do not fit.",
25
+ "isRequired": false,
26
+ "type": "number"
27
+ },
28
+ "checked": {
29
+ "description": "If `true`, the component is checked.",
30
+ "isRequired": false,
31
+ "type": "boolean"
32
+ },
33
+ "onChange": {
34
+ "description": "Called whenever the user toggles the component, in either direction. It is\ngiven the event alone: unlike MUI's, it is not passed the new checked\nstate, which is read from the event's target instead.",
35
+ "isRequired": false,
36
+ "type": "function"
20
37
  }
21
38
  }
22
39
  }
23
- }
40
+ }
@@ -2,21 +2,50 @@
2
2
  "IntentMessage": {
3
3
  "props": {
4
4
  "autoOrder": {
5
- "type": "\"false\" | \"true\"",
6
- "isRequired": false
5
+ "defaultValue": true,
6
+ "description": "Sorts the messages by intent rather than using the order of the array. Set it to false to preserve your order.",
7
+ "isRequired": false,
8
+ "type": "boolean"
7
9
  },
8
10
  "border": {
9
- "type": "\"false\" | \"true\"",
10
- "isRequired": false
11
+ "defaultValue": false,
12
+ "description": "Draws a 2px vertical bar to the left of the wrapper, colored by the most severe intent in messages. This is the Intent Indicator from the guidelines.",
13
+ "isRequired": false,
14
+ "type": "boolean"
11
15
  },
12
16
  "messages": {
13
- "type": "IntentMessageItem[]",
14
- "isRequired": false
17
+ "defaultValue": [],
18
+ "description": "The messages to display, each with its own intent. See the table below for the shape of an item.",
19
+ "isRequired": false,
20
+ "type": "IntentMessageItem[]"
15
21
  },
16
22
  "orderBy": {
17
- "type": "IntentMessageIntent[]",
18
- "isRequired": false
23
+ "defaultValue": ["negative", "notice", "positive"],
24
+ "description": "Replaces the default severity ranking. It affects the sort order and, because it defines what counts as most severe, the border color as well, which means it still applies when autoOrder is false.",
25
+ "isRequired": false,
26
+ "type": "IntentMessageIntent[]"
27
+ },
28
+ "children": {
29
+ "description": "Rendered above the messages, inside the same wrapper. This is where the Input, or a group of Inputs, goes.",
30
+ "isRequired": false,
31
+ "type": "ReactNode"
32
+ },
33
+ "intent": {
34
+ "description": "Required. Sets the text color, the icon color, and this message's place in the ranking.",
35
+ "isRequired": false,
36
+ "type": "\"negative\" | \"notice\" | \"positive\""
37
+ },
38
+ "text": {
39
+ "description": "Required. The message copy. Long text wraps.",
40
+ "isRequired": false,
41
+ "type": "string"
42
+ },
43
+ "icon": {
44
+ "defaultValue": "CheckCircle for positive, ExclamationMarkCircle otherwise",
45
+ "description": "Replaces the default icon. A name renders at xs; an element is rendered as given, though its fill is still overridden by the intent color.",
46
+ "isRequired": false,
47
+ "type": "keyof IconNameToSizes | ReactElement"
19
48
  }
20
49
  }
21
50
  }
22
- }
51
+ }
@@ -2,17 +2,23 @@
2
2
  "Link": {
3
3
  "props": {
4
4
  "fontWeight": {
5
- "type": "any",
6
- "isRequired": false
5
+ "defaultValue": "normal",
6
+ "description": "Maps to font-weight 400 and 600.",
7
+ "isRequired": false,
8
+ "type": "\"normal\" | \"bold\""
7
9
  },
8
10
  "sdsSize": {
9
- "type": "any",
10
- "isRequired": false
11
+ "defaultValue": "s",
12
+ "description": "The font size, taken from the body scale rather than the link one.",
13
+ "isRequired": false,
14
+ "type": "\"s\" | \"xs\""
11
15
  },
12
16
  "sdsStyle": {
13
- "type": "any",
14
- "isRequired": false
17
+ "defaultValue": "default",
18
+ "description": "\"default\" underlines on hover, focus, and press only; \"dashed\" is underlined dashed at rest and solid on interaction.",
19
+ "isRequired": false,
20
+ "type": "\"default\" | \"dashed\""
15
21
  }
16
22
  }
17
23
  }
18
- }
24
+ }
@@ -2,9 +2,17 @@
2
2
  "LoadingIndicator": {
3
3
  "props": {
4
4
  "sdsStyle": {
5
- "type": "\"minimal\" | \"tag\"",
6
- "isRequired": true
5
+ "defaultValue": "- (required)",
6
+ "description": "Chooses between the two variants above. It has no default: leaving it out is a type error, and an indicator built without it renders unstyled.",
7
+ "isRequired": true,
8
+ "type": "\"minimal\" | \"tag\""
9
+ },
10
+ "aria-label": {
11
+ "defaultValue": "undefined",
12
+ "description": "Replaces what a screen reader announces for the status region, for example \"Loading cell types\". The visible text still reads \"Loading\". Without it, assistive technology announces the visible word.",
13
+ "isRequired": false,
14
+ "type": "string"
7
15
  }
8
16
  }
9
17
  }
10
- }
18
+ }