@czi-sds/mcp 0.16.0 → 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (164) hide show
  1. package/README.md +2 -1
  2. package/data/component-docs/Accordion.md +291 -0
  3. package/data/component-docs/Autocomplete.md +525 -0
  4. package/data/component-docs/Banner.md +231 -0
  5. package/data/component-docs/Button.md +224 -0
  6. package/data/component-docs/ButtonDropdown.md +256 -0
  7. package/data/component-docs/ButtonGroup.md +320 -0
  8. package/data/component-docs/ButtonToggle.md +397 -0
  9. package/data/component-docs/Callout.md +268 -0
  10. package/data/component-docs/CellBasic.md +122 -0
  11. package/data/component-docs/CellComponent.md +63 -0
  12. package/data/component-docs/CellHeader.md +128 -0
  13. package/data/component-docs/ComplexFilter.md +294 -0
  14. package/data/component-docs/ContentCard.md +406 -0
  15. package/data/component-docs/Dialog.md +651 -0
  16. package/data/component-docs/Dropdown.md +155 -0
  17. package/data/component-docs/DropdownMenu.md +949 -0
  18. package/data/component-docs/HeatmapChart.md +782 -0
  19. package/data/component-docs/Hero.md +363 -0
  20. package/data/component-docs/Icon.md +283 -0
  21. package/data/component-docs/InputCheckbox.md +205 -0
  22. package/data/component-docs/InputDropdown.md +482 -0
  23. package/data/component-docs/InputRadio.md +173 -0
  24. package/data/component-docs/InputSearch.md +81 -0
  25. package/data/component-docs/InputSlider.md +189 -0
  26. package/data/component-docs/InputText.md +110 -0
  27. package/data/component-docs/InputToggle.md +141 -0
  28. package/data/component-docs/IntentMessage.md +293 -0
  29. package/data/component-docs/Legend.md +442 -0
  30. package/data/component-docs/Link.md +23 -0
  31. package/data/component-docs/List.md +300 -0
  32. package/data/component-docs/LoadingIndicator.md +198 -0
  33. package/data/component-docs/Menu.md +298 -0
  34. package/data/component-docs/MenuItem.md +100 -0
  35. package/data/component-docs/NavigationFooter.md +165 -0
  36. package/data/component-docs/NavigationHeader.md +500 -0
  37. package/data/component-docs/NavigationJumpTo.md +414 -0
  38. package/data/component-docs/Notification.md +288 -0
  39. package/data/component-docs/Pagination.md +67 -0
  40. package/data/component-docs/Panel.md +636 -0
  41. package/data/component-docs/Popover.md +448 -0
  42. package/data/component-docs/PreComposedTable.md +2947 -0
  43. package/data/component-docs/SegmentedControl.md +396 -0
  44. package/data/component-docs/StackedBarChart.md +475 -0
  45. package/data/component-docs/Table.md +2000 -0
  46. package/data/component-docs/TableHeader.md +53 -0
  47. package/data/component-docs/TableRow.md +74 -0
  48. package/data/component-docs/Tabs.md +455 -0
  49. package/data/component-docs/Tag.md +647 -0
  50. package/data/component-docs/TagFilter.md +131 -0
  51. package/data/component-docs/Tooltip.md +561 -0
  52. package/data/component-docs/TooltipCondensed.md +203 -0
  53. package/data/component-docs/TooltipTable.md +145 -0
  54. package/data/component-docs/index.json +262 -0
  55. package/data/component-list.json +2 -5
  56. package/data/component-props/Accordion.json +31 -11
  57. package/data/component-props/Alert.json +3 -3
  58. package/data/component-props/Autocomplete.json +150 -15
  59. package/data/component-props/Banner.json +31 -17
  60. package/data/component-props/Button.json +45 -20
  61. package/data/component-props/ButtonDropdown.json +36 -17
  62. package/data/component-props/ButtonDropdownLegacy.json +11 -11
  63. package/data/component-props/ButtonGroup.json +32 -11
  64. package/data/component-props/ButtonIcon.json +10 -10
  65. package/data/component-props/ButtonLegacy.json +19 -19
  66. package/data/component-props/ButtonToggle.json +32 -19
  67. package/data/component-props/ButtonToggleLegacy.json +11 -11
  68. package/data/component-props/Callout.json +58 -17
  69. package/data/component-props/CellBasic.json +94 -41
  70. package/data/component-props/CellComponent.json +23 -7
  71. package/data/component-props/CellHeader.json +62 -19
  72. package/data/component-props/ComplexFilter.json +52 -21
  73. package/data/component-props/ContentCard.json +70 -47
  74. package/data/component-props/Dialog.json +47 -14
  75. package/data/component-props/Dropdown.json +68 -31
  76. package/data/component-props/DropdownMenu.json +128 -23
  77. package/data/component-props/HeatmapChart.json +88 -12
  78. package/data/component-props/Hero.json +80 -39
  79. package/data/component-props/Icon.json +20 -9
  80. package/data/component-props/InputCheckbox.json +36 -14
  81. package/data/component-props/InputDropdown.json +75 -27
  82. package/data/component-props/InputRadio.json +31 -13
  83. package/data/component-props/InputSearch.json +41 -18
  84. package/data/component-props/InputSlider.json +46 -19
  85. package/data/component-props/InputText.json +26 -19
  86. package/data/component-props/InputToggle.json +26 -9
  87. package/data/component-props/IntentMessage.json +38 -9
  88. package/data/component-props/Link.json +13 -7
  89. package/data/component-props/LoadingIndicator.json +11 -3
  90. package/data/component-props/MenuItem.json +38 -19
  91. package/data/component-props/MenuSelect.json +8 -8
  92. package/data/component-props/NavigationFooter.json +49 -19
  93. package/data/component-props/NavigationHeader.json +150 -37
  94. package/data/component-props/NavigationJumpTo.json +33 -7
  95. package/data/component-props/Notification.json +39 -21
  96. package/data/component-props/Pagination.json +39 -11
  97. package/data/component-props/Panel.json +62 -9
  98. package/data/component-props/Popover.json +80 -7
  99. package/data/component-props/PreComposedTable.json +99 -27
  100. package/data/component-props/SegmentedControl.json +42 -3
  101. package/data/component-props/StackedBarChart.json +116 -42
  102. package/data/component-props/TableRow.json +38 -19
  103. package/data/component-props/Tabs.json +66 -9
  104. package/data/component-props/Tag.json +34 -17
  105. package/data/component-props/TagFilter.json +10 -3
  106. package/data/component-props/Tooltip.json +49 -18
  107. package/data/component-props/TooltipCondensed.json +18 -9
  108. package/data/component-props/TooltipTable.json +17 -7
  109. package/data/resources/{zeroheight-rules.md → documentation-rules.md} +43 -30
  110. package/data/resources/figma-rules.md +2 -2
  111. package/dist/stdio.js +112 -208
  112. package/package.json +9 -5
  113. package/data/component-props/ButtonDropdownV2.json +0 -34
  114. package/data/component-props/ButtonNew.json +0 -47
  115. package/data/component-props/ButtonToggleV2.json +0 -44
  116. package/data/component-props/ButtonV2.json +0 -43
  117. package/data/zeroheight-cache.json +0 -10259
  118. package/data/zeroheight-exports/Accordion.md +0 -774
  119. package/data/zeroheight-exports/Banner.md +0 -691
  120. package/data/zeroheight-exports/Borders.md +0 -117
  121. package/data/zeroheight-exports/Buttons.md +0 -1854
  122. package/data/zeroheight-exports/Callout.md +0 -931
  123. package/data/zeroheight-exports/Colors.md +0 -1755
  124. package/data/zeroheight-exports/Content-Card.md +0 -309
  125. package/data/zeroheight-exports/Contributing-to-SDS.md +0 -98
  126. package/data/zeroheight-exports/Control-Inputs.md +0 -2818
  127. package/data/zeroheight-exports/Corners.md +0 -104
  128. package/data/zeroheight-exports/Cover-page.md +0 -3
  129. package/data/zeroheight-exports/Dialog.md +0 -1367
  130. package/data/zeroheight-exports/Downloads.md +0 -236
  131. package/data/zeroheight-exports/Drop-Shadows.md +0 -79
  132. package/data/zeroheight-exports/Dropdown-Input.md +0 -1776
  133. package/data/zeroheight-exports/Dropdown-Menus.md +0 -913
  134. package/data/zeroheight-exports/Element-Status-Tracker.md +0 -267
  135. package/data/zeroheight-exports/Field-Inputs.md +0 -1405
  136. package/data/zeroheight-exports/Filters.md +0 -1111
  137. package/data/zeroheight-exports/Getting-Started.md +0 -1157
  138. package/data/zeroheight-exports/Hero.md +0 -414
  139. package/data/zeroheight-exports/Icons.md +0 -2067
  140. package/data/zeroheight-exports/Intent.md +0 -86
  141. package/data/zeroheight-exports/Introduction-to-Bases.md +0 -35
  142. package/data/zeroheight-exports/Introduction-to-Cells.md +0 -35
  143. package/data/zeroheight-exports/Introduction-to-DNA.md +0 -35
  144. package/data/zeroheight-exports/Introduction-to-Genes.md +0 -35
  145. package/data/zeroheight-exports/Introduction.md +0 -115
  146. package/data/zeroheight-exports/Link.md +0 -432
  147. package/data/zeroheight-exports/Lists.md +0 -986
  148. package/data/zeroheight-exports/Loading-Indicator.md +0 -41
  149. package/data/zeroheight-exports/Navigation.md +0 -1190
  150. package/data/zeroheight-exports/Notification.md +0 -1038
  151. package/data/zeroheight-exports/Panel.md +0 -1030
  152. package/data/zeroheight-exports/README.md +0 -122
  153. package/data/zeroheight-exports/Responsive-Design.md +0 -330
  154. package/data/zeroheight-exports/Search-Input.md +0 -91
  155. package/data/zeroheight-exports/Search.md +0 -822
  156. package/data/zeroheight-exports/Segmented-Control.md +0 -609
  157. package/data/zeroheight-exports/Spacing.md +0 -297
  158. package/data/zeroheight-exports/Table.md +0 -5345
  159. package/data/zeroheight-exports/Tabs.md +0 -1324
  160. package/data/zeroheight-exports/Tags.md +0 -1545
  161. package/data/zeroheight-exports/Text-Link.md +0 -268
  162. package/data/zeroheight-exports/Theming.md +0 -362
  163. package/data/zeroheight-exports/Tooltips.md +0 -2015
  164. package/data/zeroheight-exports/Typography.md +0 -800
@@ -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"
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"
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"
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
+ }
@@ -2,41 +2,60 @@
2
2
  "MenuItem": {
3
3
  "props": {
4
4
  "column": {
5
- "type": "ReactNode",
6
- "isRequired": false
5
+ "description": "The column prop determines the content displayed in the right column of the menu item. This content can be customized to provide additional information or context for the menu item.",
6
+ "isRequired": false,
7
+ "type": "ReactNode"
7
8
  },
8
9
  "disabled": {
9
- "type": "\"false\" | \"true\"",
10
- "isRequired": false,
10
+ "defaultValue": false,
11
11
  "description": "If `true`, the component is disabled.",
12
- "defaultValue": false
12
+ "isRequired": false,
13
+ "type": "boolean"
13
14
  },
14
15
  "icon": {
15
- "type": "any",
16
- "isRequired": false
16
+ "description": "The icon shown at the start of the item, either the name of an SDS icon or an element of your own. Only icons that come in a small size can be named here.",
17
+ "isRequired": false,
18
+ "type": "IconName | ReactElement"
17
19
  },
18
20
  "isMultiSelect": {
19
- "type": "\"false\" | \"true\"",
20
- "isRequired": false
21
+ "defaultValue": false,
22
+ "description": "When true, designates that the menu item supports multi-select functionality.",
23
+ "isRequired": false,
24
+ "type": "boolean"
21
25
  },
22
26
  "sdsIconProps": {
23
- "type": "IconProps<IconName>",
24
- "isRequired": false
27
+ "description": "Enables you to pass additional props to customize the SDS icon within the menu item.",
28
+ "isRequired": false,
29
+ "type": "IconProps<IconName>"
25
30
  },
26
31
  "sdsStyle": {
27
- "type": "\"determinate\" | \"indeterminate\"",
28
- "isRequired": false
32
+ "defaultValue": "determinate",
33
+ "description": "Determines the style of the menu item, whether it is determinate or indeterminate.",
34
+ "isRequired": false,
35
+ "type": "\"indeterminate\" | \"determinate\""
29
36
  },
30
37
  "sdsType": {
31
- "type": "\"action\" | \"default\"",
32
- "isRequired": false
38
+ "defaultValue": "default",
39
+ "description": "An \"action\" item leaves out the selection mark at its start, for a menu whose items run a command rather than choose a value.",
40
+ "isRequired": false,
41
+ "type": "\"action\" | \"default\""
33
42
  },
34
43
  "selected": {
35
- "type": "\"false\" | \"true\"",
36
- "isRequired": false,
44
+ "defaultValue": false,
37
45
  "description": "If `true`, the component is selected.",
38
- "defaultValue": false
46
+ "isRequired": false,
47
+ "type": "boolean"
48
+ },
49
+ "children": {
50
+ "description": "The content of the component.",
51
+ "isRequired": false,
52
+ "type": "ReactNode"
53
+ },
54
+ "sdsIcon": {
55
+ "description": "@deprecated Use `icon` instead.\n(masoudmanson): This prop is deprecated and will be removed in the next major version.\nPlease replace instances of `sdsIcon` with `icon`.",
56
+ "isRequired": false,
57
+ "type": "IconName | ReactElement"
39
58
  }
40
59
  }
41
60
  }
42
- }
61
+ }
@@ -2,19 +2,19 @@
2
2
  "MenuSelect": {
3
3
  "props": {
4
4
  "keepSearchOnSelect": {
5
- "type": "\"false\" | \"true\"",
6
- "isRequired": false
5
+ "isRequired": false,
6
+ "type": "boolean"
7
7
  },
8
8
  "multiple": {
9
- "type": "\"false\" | \"true\"",
10
- "isRequired": false,
9
+ "defaultValue": false,
11
10
  "description": "If `true`, `value` must be an array and the menu will support multiple selections.",
12
- "defaultValue": false
11
+ "isRequired": false,
12
+ "type": "boolean"
13
13
  },
14
14
  "search": {
15
- "type": "\"false\" | \"true\"",
16
- "isRequired": false
15
+ "isRequired": false,
16
+ "type": "boolean"
17
17
  }
18
18
  }
19
19
  }
20
- }
20
+ }
@@ -2,42 +2,72 @@
2
2
  "NavigationFooter": {
3
3
  "props": {
4
4
  "backgroundAppearance": {
5
- "type": "\"matchBackground\" | \"dark\"",
5
+ "defaultValue": "matchBackground",
6
+ "description": "\"dark\" puts the footer on a dark surface and inverts its text and dividers, in light mode only.",
6
7
  "isRequired": false,
7
- "defaultValue": "matchBackground"
8
+ "type": "\"matchBackground\" | \"dark\""
8
9
  },
9
10
  "images": {
10
- "type": "FooterImage[]",
11
- "isRequired": false
11
+ "description": "An array of images displayed in the footer. Each item includes an image, optional link URL, and component.",
12
+ "isRequired": false,
13
+ "type": "FooterImage[]"
12
14
  },
13
15
  "logo": {
14
- "type": "ReactNode",
15
- "isRequired": false
16
+ "description": "The logo displayed in the footer. Can be any valid React node such as an image, icon, or SVG.",
17
+ "isRequired": false,
18
+ "type": "ReactNode"
16
19
  },
17
20
  "logoUrl": {
18
- "type": "string",
19
- "isRequired": false
21
+ "description": "If provided, clicking the logo will navigate to this URL.",
22
+ "isRequired": false,
23
+ "type": "string"
20
24
  },
21
25
  "navItems": {
22
- "type": "NavigationFooterNavItem[]",
23
- "isRequired": false
26
+ "description": "The prominent links on the top row, next to the logo. They are headings, not body text, and get no dividers.",
27
+ "isRequired": false,
28
+ "type": "NavigationFooterNavItem[]"
24
29
  },
25
30
  "navLinks": {
26
- "type": "NavigationFooterNavItem[]",
27
- "isRequired": false
31
+ "description": "The smaller links on the bottom row, drawn in one line with dividers between them.",
32
+ "isRequired": false,
33
+ "type": "NavigationFooterNavItem[]"
28
34
  },
29
35
  "tag": {
30
- "type": "string",
31
- "isRequired": false
36
+ "description": "A small label displayed next to the title.",
37
+ "isRequired": false,
38
+ "type": "string"
32
39
  },
33
40
  "tagColor": {
34
- "type": "\"info\" | \"positive\" | \"notice\" | \"negative\" | \"neutral\" | \"beta\" | \"[string, string]\" | \"[string, string, string]\"",
35
- "isRequired": false
41
+ "description": "The Tag's color. A tuple sets the label, background, and icon colors by hand.",
42
+ "isRequired": false,
43
+ "type": "\"info\" | \"negative\" | \"notice\" | \"positive\" | \"neutral\" | \"beta\" | [string, string] | [string, string, string]"
36
44
  },
37
45
  "title": {
38
- "type": "string",
39
- "isRequired": false
46
+ "description": "The main title displayed in the footer.",
47
+ "isRequired": false,
48
+ "type": "string"
49
+ },
50
+ "logoComponent": {
51
+ "defaultValue": "a",
52
+ "description": "Specifies the component to use for the logo link. Defaults to an anchor tag.",
53
+ "isRequired": false,
54
+ "type": "\"symbol\" | \"object\" | \"style\" | \"button\" | \"div\" | \"a\" | \"abbr\" | \"address\" | \"area\" | \"article\" | \"aside\" | \"audio\" | \"b\" | \"base\" | \"bdi\" | \"bdo\" | \"big\" | \"blockquote\" | \"body\" | \"br\" | \"canvas\" | \"caption\" | \"center\" | \"cite\" | \"code\" | \"col\" | \"colgroup\" | \"data\" | \"datalist\" | \"dd\" | \"del\" | \"details\" | \"dfn\" | \"dialog\" | \"dl\" | \"dt\" | \"em\" | \"embed\" | \"fieldset\" | \"figcaption\" | \"figure\" | \"footer\" | \"form\" | \"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\" | \"head\" | \"header\" | \"hgroup\" | \"hr\" | \"html\" | \"i\" | \"iframe\" | \"img\" | \"input\" | \"ins\" | \"kbd\" | \"keygen\" | \"label\" | \"legend\" | \"li\" | \"link\" | \"main\" | \"map\" | \"mark\" | \"menu\" | \"menuitem\" | \"meta\" | \"meter\" | \"nav\" | \"noindex\" | \"noscript\" | \"ol\" | \"optgroup\" | \"option\" | \"output\" | \"p\" | \"param\" | \"picture\" | \"pre\" | \"progress\" | \"q\" | \"rp\" | \"rt\" | \"ruby\" | \"s\" | \"samp\" | \"search\" | \"slot\" | \"script\" | \"section\" | \"select\" | \"small\" | \"source\" | \"span\" | \"strong\" | \"sub\" | \"summary\" | \"sup\" | \"table\" | \"template\" | \"tbody\" | \"td\" | \"textarea\" | \"tfoot\" | \"th\" | \"thead\" | \"time\" | \"title\" | \"tr\" | \"track\" | \"u\" | \"ul\" | \"var\" | \"video\" | \"wbr\" | \"webview\" | \"svg\" | \"animate\" | \"animateMotion\" | \"animateTransform\" | \"circle\" | \"clipPath\" | \"defs\" | \"desc\" | \"ellipse\" | \"feBlend\" | \"feColorMatrix\" | \"feComponentTransfer\" | \"feComposite\" | \"feConvolveMatrix\" | \"feDiffuseLighting\" | \"feDisplacementMap\" | \"feDistantLight\" | \"feDropShadow\" | \"feFlood\" | \"feFuncA\" | \"feFuncB\" | \"feFuncG\" | \"feFuncR\" | \"feGaussianBlur\" | \"feImage\" | \"feMerge\" | \"feMergeNode\" | \"feMorphology\" | \"feOffset\" | \"fePointLight\" | \"feSpecularLighting\" | \"feSpotLight\" | \"feTile\" | \"feTurbulence\" | \"filter\" | \"foreignObject\" | \"g\" | \"image\" | \"line\" | \"linearGradient\" | \"marker\" | \"mask\" | \"metadata\" | \"mpath\" | \"path\" | \"pattern\" | \"polygon\" | \"polyline\" | \"radialGradient\" | \"rect\" | \"set\" | \"stop\" | \"switch\" | \"text\" | \"textPath\" | \"tspan\" | \"use\" | \"view\" | ComponentClass<any, any> | FunctionComponent<any>"
55
+ },
56
+ "logoLinkProps": {
57
+ "description": "Additional props passed to the logo link component.",
58
+ "isRequired": false,
59
+ "type": "Record<string, unknown>"
60
+ },
61
+ "image": {
62
+ "description": "The image element to be displayed. Can be an icon, image, SVG, or any ReactNode.",
63
+ "isRequired": false,
64
+ "type": "ReactNode"
65
+ },
66
+ "label": {
67
+ "description": "The text label displayed for the navigation item.",
68
+ "isRequired": false,
69
+ "type": "string"
40
70
  }
41
71
  }
42
72
  }
43
- }
73
+ }