|
839 | 839 | "type": {
|
840 | 840 | "name": "shape",
|
841 | 841 | "value": {
|
842 |
| - "breadcrumb": { |
| 842 | + "label": { |
843 | 843 | "name": "string",
|
844 | 844 | "required": false
|
845 | 845 | }
|
846 | 846 | }
|
847 | 847 | },
|
848 | 848 | "required": false,
|
849 |
| - "description": "Assistive text for accessibility that labels the icon.\n**Assistive text for accessibility.**\nThis object is merged with the default props object on every render.\n* `breadcrumb`: The assistive text for the breadcrumb trail.", |
| 849 | + "description": "**Assistive text for accessibility.**\nThis object is merged with the default props object on every render.\n* `label`: The assistive text for the breadcrumb trail.", |
850 | 850 | "defaultValue": {
|
851 |
| - "value": "{\n breadcrumb: 'Breadcrumbs',\n}", |
| 851 | + "value": "{\n label: 'Breadcrumbs',\n}", |
852 | 852 | "computed": false
|
853 | 853 | }
|
854 | 854 | },
|
|
866 | 866 | "dependencies": []
|
867 | 867 | },
|
868 | 868 | "button": {
|
869 |
| - "description": "The Button component is the Lightning Design System Button component. The Button should be used for label buttons, icon buttons, or buttons that have both labels and icons.\nEither a <code>label</code> or <code>assistiveText</code> is required; see the Prop Details table below.\nFor buttons that maintain selected/unselected states, use the <a href=\"#/button-stateful\">ButtonStateful</a> component.", |
| 869 | + "description": "The Button component is the Lightning Design System Button component. The Button should be used for label buttons, icon buttons, or buttons that have both labels and icons.\nEither a <code>label</code> or <code>assistiveText.icon</code> is required; see the Prop Details table below.\nFor buttons that maintain selected/unselected states, use the <a href=\"#/button-stateful\">ButtonStateful</a> component.", |
870 | 870 | "methods": [
|
871 | 871 | {
|
872 | 872 | "name": "getClassName",
|
|
968 | 968 | },
|
969 | 969 | "assistiveText": {
|
970 | 970 | "type": {
|
971 |
| - "name": "string" |
| 971 | + "name": "shape", |
| 972 | + "value": { |
| 973 | + "icon": { |
| 974 | + "name": "string", |
| 975 | + "required": false |
| 976 | + } |
| 977 | + } |
972 | 978 | },
|
973 | 979 | "required": false,
|
974 |
| - "description": "Text that is visually hidden but read aloud by screenreaders to tell the user what the icon means.\nIf the button has an icon and a visible label, you can omit the <code>assistiveText</code> prop and use the <code>label</code> prop." |
| 980 | + "description": "**Assistive text for accessibility.**\nThis object is merged with the default props object on every render.\n* `icon`: Text that is visually hidden but read aloud by screenreaders to tell the user what the icon means. If the button has an icon and a visible label, you can omit the <code>assistiveText.icon</code> prop and use the <code>label</code> prop.", |
| 981 | + "defaultValue": { |
| 982 | + "value": "{ icon: '' }", |
| 983 | + "computed": false |
| 984 | + } |
975 | 985 | },
|
976 | 986 | "buttonRef": {
|
977 | 987 | "type": {
|
|
1166 | 1176 | ]
|
1167 | 1177 | },
|
1168 | 1178 | "required": false,
|
1169 |
| - "description": "Visible label on the button. If the button is an icon button with no label, you must use the <code>assistiveText</code> prop." |
| 1179 | + "description": "Visible label on the button. If the button is an icon button with no label, you must use the <code>assistiveText.icon</code> prop." |
1170 | 1180 | },
|
1171 | 1181 | "onBlur": {
|
1172 | 1182 | "type": {
|
|
1394 | 1404 | }
|
1395 | 1405 | },
|
1396 | 1406 | "required": false,
|
1397 |
| - "description": "Assistive text for accessibility that labels the icon.\n**Assistive text for accessibility.**\nThis object is merged with the default props object on every render.\n* `icon`: Text that is visually hidden but read aloud by screenreaders to tell the user what the icon means. This should also include the state of the button. If the button has an icon and a visible label, you can omit the <code>icon</code> prop and use the <code>label</code> prop.", |
| 1407 | + "description": "**Assistive text for accessibility.**\nThis object is merged with the default props object on every render.\n* `icon`: Text that is visually hidden but read aloud by screenreaders to tell the user what the icon means. This should also include the state of the button. If the button has an icon and a visible label, you can omit the <code>icon</code> prop and use the <code>label</code> prop.", |
1398 | 1408 | "defaultValue": {
|
1399 | 1409 | "value": "{ icon: '' }",
|
1400 | 1410 | "computed": false
|
|
3532 | 3542 | "props": {
|
3533 | 3543 | "assistiveText": {
|
3534 | 3544 | "type": {
|
3535 |
| - "name": "string" |
| 3545 | + "name": "object" |
3536 | 3546 | },
|
3537 | 3547 | "required": false,
|
3538 | 3548 | "description": "Description of the menu for screenreaders.",
|
3539 | 3549 | "defaultValue": {
|
3540 |
| - "value": "'Actions'", |
| 3550 | + "value": "{ icon: 'Actions' }", |
3541 | 3551 | "computed": false
|
3542 | 3552 | }
|
3543 | 3553 | },
|
|
4765 | 4775 | }
|
4766 | 4776 | ],
|
4767 | 4777 | "props": {
|
| 4778 | + "assistiveText": { |
| 4779 | + "type": { |
| 4780 | + "name": "shape", |
| 4781 | + "value": { |
| 4782 | + "skipToNav": { |
| 4783 | + "name": "string", |
| 4784 | + "required": false |
| 4785 | + }, |
| 4786 | + "skipToContent": { |
| 4787 | + "name": "string", |
| 4788 | + "required": false |
| 4789 | + } |
| 4790 | + } |
| 4791 | + }, |
| 4792 | + "required": false, |
| 4793 | + "description": "**Assistive text for accessibility.**\nThis object is merged with the default props object on every render.\n* `skipToNav`: The localized text that will be read back for the \"Skip to Navigation\" accessibility link.\n* `skipToContent`: The localized text that will be read back for the \"Skip to Main Content\" accessibility link.", |
| 4794 | + "defaultValue": { |
| 4795 | + "value": "{\n skipToNav: 'Skip to Navigation',\n skipToContent: 'Skip to Main Content',\n}", |
| 4796 | + "computed": false |
| 4797 | + } |
| 4798 | + }, |
4768 | 4799 | "children": {
|
4769 | 4800 | "type": {
|
4770 | 4801 | "name": "node"
|
|
4803 | 4834 | },
|
4804 | 4835 | "required": false,
|
4805 | 4836 | "description": "Required for accessibility. Should jump the user to the primary navigation."
|
4806 |
| - }, |
4807 |
| - "skipToContentAssistiveText": { |
4808 |
| - "type": { |
4809 |
| - "name": "string" |
4810 |
| - }, |
4811 |
| - "required": false, |
4812 |
| - "description": "The localized text that will be read back for the \"Skip to Main Content\" accessibility link.", |
4813 |
| - "defaultValue": { |
4814 |
| - "value": "'Skip to Main Content'", |
4815 |
| - "computed": false |
4816 |
| - } |
4817 |
| - }, |
4818 |
| - "skipToNavAssistiveText": { |
4819 |
| - "type": { |
4820 |
| - "name": "string" |
4821 |
| - }, |
4822 |
| - "required": false, |
4823 |
| - "description": "The localized text that will be read back for the \"Skip to Navigation\" accessibility link.", |
4824 |
| - "defaultValue": { |
4825 |
| - "value": "'Skip to Navigation'", |
4826 |
| - "computed": false |
4827 |
| - } |
4828 | 4837 | }
|
4829 | 4838 | },
|
4830 | 4839 | "route": "global-header",
|
|
5321 | 5330 | },
|
5322 | 5331 | "assistiveText": {
|
5323 | 5332 | "type": {
|
5324 |
| - "name": "string" |
| 5333 | + "name": "shape", |
| 5334 | + "value": { |
| 5335 | + "icon": { |
| 5336 | + "name": "string", |
| 5337 | + "required": false |
| 5338 | + } |
| 5339 | + } |
5325 | 5340 | },
|
5326 |
| - "required": true, |
5327 |
| - "description": "Text that is visually hidden but read aloud by screenreaders to tell the user what the icon means." |
| 5341 | + "required": false, |
| 5342 | + "description": "**Assistive text for accessibility.**\nThis object is merged with the default props object on every render.\n* `icon`: Text that is visually hidden but read aloud by screenreaders to tell the user what the icon means. If the button has an icon and a visible label, you can omit the <code>assistiveText.icon</code> prop and use the <code>label</code> prop." |
5328 | 5343 | },
|
5329 | 5344 | "align": {
|
5330 | 5345 | "type": {
|
|
6496 | 6511 | },
|
6497 | 6512 | "assistiveText": {
|
6498 | 6513 | "type": {
|
6499 |
| - "name": "string" |
| 6514 | + "name": "object" |
6500 | 6515 | },
|
6501 | 6516 | "required": false,
|
6502 | 6517 | "description": "This prop is passed onto the triggering `Button`. Text that is visually hidden but read aloud by screenreaders to tell the user what the icon means. You can omit this prop if you are using the `label` prop."
|
|
7476 | 7491 | "name": "func"
|
7477 | 7492 | },
|
7478 | 7493 | "required": false,
|
7479 |
| - "description": "Function that returns parent node to contain Modal. Should return document.querySelector('#myModalContainer')." |
| 7494 | + "description": "Function whose return value is the mount node to insert the Modal element into. The default is `() => document.body`." |
7480 | 7495 | },
|
7481 | 7496 | "portalClassName": {
|
7482 | 7497 | "type": {
|
|
10248 | 10263 | "name": "number"
|
10249 | 10264 | },
|
10250 | 10265 | "required": false,
|
10251 |
| - "description": "This is the initial value of an uncontrolled form element and is present\nonly to provide compatibility with hybrid framework applications that\nare not entirely React. It should only be used in an application without\ncentralized state (Redux, Flux). \"Controlled components\" with centralized\nstate is highly recommended. See [Code Overview](https://github.com/salesforce/design-system-react/blob/master/docs/codebase-overview.md#controlled-and-uncontrolled-components) for more information.", |
10252 |
| - "defaultValue": { |
10253 |
| - "value": "0", |
10254 |
| - "computed": false |
10255 |
| - } |
| 10266 | + "description": "This is the initial value of an uncontrolled form element and is present\nonly to provide compatibility with hybrid framework applications that\nare not entirely React. It should only be used in an application without\ncentralized state (Redux, Flux). \"Controlled components\" with centralized\nstate is highly recommended. See [Code Overview](https://github.com/salesforce/design-system-react/blob/master/docs/codebase-overview.md#controlled-and-uncontrolled-components) for more information." |
10256 | 10267 | },
|
10257 | 10268 | "disabled": {
|
10258 | 10269 | "type": {
|
|
10366 | 10377 | "name": "number"
|
10367 | 10378 | },
|
10368 | 10379 | "required": false,
|
10369 |
| - "description": "The Slider is a controlled component, and will always display this value." |
| 10380 | + "description": "The Slider should be a controlled component, and will always display this value. This should always be used if you are using a Flux/Redux framework." |
10370 | 10381 | },
|
10371 | 10382 | "vertical": {
|
10372 | 10383 | "type": {
|
|
0 commit comments