@patternfly/react-core 4.198.6 → 4.198.9
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.
- package/CHANGELOG.md +27 -0
- package/dist/esm/components/BackToTop/BackToTop.js +1 -1
- package/dist/esm/components/BackToTop/BackToTop.js.map +1 -1
- package/dist/esm/components/Button/Button.d.ts +5 -1
- package/dist/esm/components/Button/Button.d.ts.map +1 -1
- package/dist/esm/components/Button/Button.js +2 -2
- package/dist/esm/components/Button/Button.js.map +1 -1
- package/dist/esm/components/CalendarMonth/CalendarMonth.js +2 -2
- package/dist/esm/components/CalendarMonth/CalendarMonth.js.map +1 -1
- package/dist/esm/components/{ChipGroup → Chip}/Chip.d.ts +0 -0
- package/dist/esm/components/Chip/Chip.d.ts.map +1 -0
- package/dist/esm/components/{ChipGroup → Chip}/Chip.js +0 -0
- package/dist/esm/components/Chip/Chip.js.map +1 -0
- package/dist/esm/components/Chip/index.d.ts +2 -0
- package/dist/esm/components/Chip/index.d.ts.map +1 -0
- package/dist/esm/components/Chip/index.js +2 -0
- package/dist/esm/components/Chip/index.js.map +1 -0
- package/dist/esm/components/ChipGroup/ChipGroup.d.ts.map +1 -1
- package/dist/esm/components/ChipGroup/ChipGroup.js +4 -4
- package/dist/esm/components/ChipGroup/ChipGroup.js.map +1 -1
- package/dist/esm/components/ChipGroup/index.d.ts +0 -1
- package/dist/esm/components/ChipGroup/index.d.ts.map +1 -1
- package/dist/esm/components/ChipGroup/index.js +0 -1
- package/dist/esm/components/ChipGroup/index.js.map +1 -1
- package/dist/esm/components/ClipboardCopy/ClipboardCopy.d.ts.map +1 -1
- package/dist/esm/components/ClipboardCopy/ClipboardCopy.js +3 -1
- package/dist/esm/components/ClipboardCopy/ClipboardCopy.js.map +1 -1
- package/dist/esm/components/DataList/DataListItem.js +1 -1
- package/dist/esm/components/DataList/DataListItem.js.map +1 -1
- package/dist/esm/components/DualListSelector/DualListSelectorListItem.d.ts.map +1 -1
- package/dist/esm/components/DualListSelector/DualListSelectorListItem.js +4 -2
- package/dist/esm/components/DualListSelector/DualListSelectorListItem.js.map +1 -1
- package/dist/esm/components/LabelGroup/LabelGroup.d.ts.map +1 -1
- package/dist/esm/components/LabelGroup/LabelGroup.js +2 -2
- package/dist/esm/components/LabelGroup/LabelGroup.js.map +1 -1
- package/dist/esm/components/Menu/MenuItem.d.ts.map +1 -1
- package/dist/esm/components/Menu/MenuItem.js +3 -3
- package/dist/esm/components/Menu/MenuItem.js.map +1 -1
- package/dist/esm/components/Menu/MenuList.js +1 -1
- package/dist/esm/components/Menu/MenuList.js.map +1 -1
- package/dist/esm/components/OptionsMenu/OptionsMenu.js +1 -1
- package/dist/esm/components/OptionsMenu/OptionsMenu.js.map +1 -1
- package/dist/esm/components/OptionsMenu/OptionsMenuToggle.d.ts +2 -2
- package/dist/esm/components/OptionsMenu/OptionsMenuToggle.d.ts.map +1 -1
- package/dist/esm/components/OptionsMenu/OptionsMenuToggleWithText.d.ts +5 -1
- package/dist/esm/components/OptionsMenu/OptionsMenuToggleWithText.d.ts.map +1 -1
- package/dist/esm/components/OptionsMenu/OptionsMenuToggleWithText.js +7 -3
- package/dist/esm/components/OptionsMenu/OptionsMenuToggleWithText.js.map +1 -1
- package/dist/esm/components/Select/Select.d.ts.map +1 -1
- package/dist/esm/components/Select/Select.js +10 -3
- package/dist/esm/components/Select/Select.js.map +1 -1
- package/dist/esm/components/Select/SelectOption.d.ts.map +1 -1
- package/dist/esm/components/Select/SelectOption.js +2 -1
- package/dist/esm/components/Select/SelectOption.js.map +1 -1
- package/dist/esm/components/Select/SelectToggle.d.ts.map +1 -1
- package/dist/esm/components/Select/SelectToggle.js +5 -1
- package/dist/esm/components/Select/SelectToggle.js.map +1 -1
- package/dist/esm/components/Select/selectConstants.d.ts +0 -10
- package/dist/esm/components/Select/selectConstants.d.ts.map +1 -1
- package/dist/esm/components/Select/selectConstants.js +0 -10
- package/dist/esm/components/Select/selectConstants.js.map +1 -1
- package/dist/esm/components/SimpleList/SimpleList.js +1 -1
- package/dist/esm/components/SimpleList/SimpleList.js.map +1 -1
- package/dist/esm/components/Spinner/Spinner.d.ts +5 -1
- package/dist/esm/components/Spinner/Spinner.d.ts.map +1 -1
- package/dist/esm/components/Spinner/Spinner.js +2 -2
- package/dist/esm/components/Spinner/Spinner.js.map +1 -1
- package/dist/esm/components/TimePicker/TimePicker.d.ts.map +1 -1
- package/dist/esm/components/TimePicker/TimePicker.js +1 -1
- package/dist/esm/components/TimePicker/TimePicker.js.map +1 -1
- package/dist/esm/components/TimePicker/index.d.ts +0 -1
- package/dist/esm/components/TimePicker/index.d.ts.map +1 -1
- package/dist/esm/components/TimePicker/index.js +0 -1
- package/dist/esm/components/TimePicker/index.js.map +1 -1
- package/dist/esm/components/Toolbar/ToolbarFilter.d.ts.map +1 -1
- package/dist/esm/components/Toolbar/ToolbarFilter.js +2 -1
- package/dist/esm/components/Toolbar/ToolbarFilter.js.map +1 -1
- package/dist/esm/components/TreeView/TreeViewListItem.d.ts.map +1 -1
- package/dist/esm/components/TreeView/TreeViewListItem.js +3 -3
- package/dist/esm/components/TreeView/TreeViewListItem.js.map +1 -1
- package/dist/esm/components/index.d.ts +1 -0
- package/dist/esm/components/index.d.ts.map +1 -1
- package/dist/esm/components/index.js +1 -0
- package/dist/esm/components/index.js.map +1 -1
- package/dist/esm/helpers/constants.d.ts +10 -0
- package/dist/esm/helpers/constants.d.ts.map +1 -1
- package/dist/esm/helpers/constants.js +10 -0
- package/dist/esm/helpers/constants.js.map +1 -1
- package/dist/js/components/BackToTop/BackToTop.js +1 -1
- package/dist/js/components/BackToTop/BackToTop.js.map +1 -1
- package/dist/js/components/Button/Button.d.ts +5 -1
- package/dist/js/components/Button/Button.d.ts.map +1 -1
- package/dist/js/components/Button/Button.js +2 -2
- package/dist/js/components/Button/Button.js.map +1 -1
- package/dist/js/components/CalendarMonth/CalendarMonth.js +2 -2
- package/dist/js/components/CalendarMonth/CalendarMonth.js.map +1 -1
- package/dist/js/components/{ChipGroup → Chip}/Chip.d.ts +0 -0
- package/dist/js/components/Chip/Chip.d.ts.map +1 -0
- package/dist/js/components/{ChipGroup → Chip}/Chip.js +0 -0
- package/dist/js/components/Chip/Chip.js.map +1 -0
- package/dist/js/components/Chip/index.d.ts +2 -0
- package/dist/js/components/Chip/index.d.ts.map +1 -0
- package/dist/js/components/Chip/index.js +5 -0
- package/dist/js/components/Chip/index.js.map +1 -0
- package/dist/js/components/ChipGroup/ChipGroup.d.ts.map +1 -1
- package/dist/js/components/ChipGroup/ChipGroup.js +4 -4
- package/dist/js/components/ChipGroup/ChipGroup.js.map +1 -1
- package/dist/js/components/ChipGroup/index.d.ts +0 -1
- package/dist/js/components/ChipGroup/index.d.ts.map +1 -1
- package/dist/js/components/ChipGroup/index.js +0 -1
- package/dist/js/components/ChipGroup/index.js.map +1 -1
- package/dist/js/components/ClipboardCopy/ClipboardCopy.d.ts.map +1 -1
- package/dist/js/components/ClipboardCopy/ClipboardCopy.js +3 -1
- package/dist/js/components/ClipboardCopy/ClipboardCopy.js.map +1 -1
- package/dist/js/components/DataList/DataListItem.js +2 -2
- package/dist/js/components/DataList/DataListItem.js.map +1 -1
- package/dist/js/components/DualListSelector/DualListSelectorListItem.d.ts.map +1 -1
- package/dist/js/components/DualListSelector/DualListSelectorListItem.js +4 -2
- package/dist/js/components/DualListSelector/DualListSelectorListItem.js.map +1 -1
- package/dist/js/components/LabelGroup/LabelGroup.d.ts.map +1 -1
- package/dist/js/components/LabelGroup/LabelGroup.js +2 -2
- package/dist/js/components/LabelGroup/LabelGroup.js.map +1 -1
- package/dist/js/components/Menu/MenuItem.d.ts.map +1 -1
- package/dist/js/components/Menu/MenuItem.js +3 -3
- package/dist/js/components/Menu/MenuItem.js.map +1 -1
- package/dist/js/components/Menu/MenuList.js +1 -1
- package/dist/js/components/Menu/MenuList.js.map +1 -1
- package/dist/js/components/OptionsMenu/OptionsMenu.js +1 -1
- package/dist/js/components/OptionsMenu/OptionsMenu.js.map +1 -1
- package/dist/js/components/OptionsMenu/OptionsMenuToggle.d.ts +2 -2
- package/dist/js/components/OptionsMenu/OptionsMenuToggle.d.ts.map +1 -1
- package/dist/js/components/OptionsMenu/OptionsMenuToggleWithText.d.ts +5 -1
- package/dist/js/components/OptionsMenu/OptionsMenuToggleWithText.d.ts.map +1 -1
- package/dist/js/components/OptionsMenu/OptionsMenuToggleWithText.js +7 -3
- package/dist/js/components/OptionsMenu/OptionsMenuToggleWithText.js.map +1 -1
- package/dist/js/components/Select/Select.d.ts.map +1 -1
- package/dist/js/components/Select/Select.js +23 -16
- package/dist/js/components/Select/Select.js.map +1 -1
- package/dist/js/components/Select/SelectOption.d.ts.map +1 -1
- package/dist/js/components/Select/SelectOption.js +7 -6
- package/dist/js/components/Select/SelectOption.js.map +1 -1
- package/dist/js/components/Select/SelectToggle.d.ts.map +1 -1
- package/dist/js/components/Select/SelectToggle.js +14 -10
- package/dist/js/components/Select/SelectToggle.js.map +1 -1
- package/dist/js/components/Select/selectConstants.d.ts +0 -10
- package/dist/js/components/Select/selectConstants.d.ts.map +1 -1
- package/dist/js/components/Select/selectConstants.js +1 -11
- package/dist/js/components/Select/selectConstants.js.map +1 -1
- package/dist/js/components/SimpleList/SimpleList.js +1 -1
- package/dist/js/components/SimpleList/SimpleList.js.map +1 -1
- package/dist/js/components/Spinner/Spinner.d.ts +5 -1
- package/dist/js/components/Spinner/Spinner.d.ts.map +1 -1
- package/dist/js/components/Spinner/Spinner.js +2 -2
- package/dist/js/components/Spinner/Spinner.js.map +1 -1
- package/dist/js/components/TimePicker/TimePicker.d.ts.map +1 -1
- package/dist/js/components/TimePicker/TimePicker.js +8 -8
- package/dist/js/components/TimePicker/TimePicker.js.map +1 -1
- package/dist/js/components/TimePicker/index.d.ts +0 -1
- package/dist/js/components/TimePicker/index.d.ts.map +1 -1
- package/dist/js/components/TimePicker/index.js +0 -1
- package/dist/js/components/TimePicker/index.js.map +1 -1
- package/dist/js/components/Toolbar/ToolbarFilter.d.ts.map +1 -1
- package/dist/js/components/Toolbar/ToolbarFilter.js +2 -1
- package/dist/js/components/Toolbar/ToolbarFilter.js.map +1 -1
- package/dist/js/components/TreeView/TreeViewListItem.d.ts.map +1 -1
- package/dist/js/components/TreeView/TreeViewListItem.js +3 -3
- package/dist/js/components/TreeView/TreeViewListItem.js.map +1 -1
- package/dist/js/components/index.d.ts +1 -0
- package/dist/js/components/index.d.ts.map +1 -1
- package/dist/js/components/index.js +1 -0
- package/dist/js/components/index.js.map +1 -1
- package/dist/js/helpers/constants.d.ts +10 -0
- package/dist/js/helpers/constants.d.ts.map +1 -1
- package/dist/js/helpers/constants.js +11 -1
- package/dist/js/helpers/constants.js.map +1 -1
- package/dist/umd/react-core.css +156 -155
- package/dist/umd/react-core.js +54 -48
- package/dist/umd/react-core.min.css +82 -81
- package/dist/umd/react-core.min.js +5 -6
- package/package.json +6 -6
- package/src/components/BackToTop/BackToTop.tsx +1 -1
- package/src/components/Backdrop/examples/BackdropSpinner.tsx +1 -1
- package/src/components/Button/Button.tsx +13 -2
- package/src/components/Button/__tests__/__snapshots__/Button.test.tsx.snap +2 -0
- package/src/components/Button/examples/ButtonProgress.tsx +33 -14
- package/src/components/CalendarMonth/CalendarMonth.tsx +2 -2
- package/src/components/Card/examples/Card.md +28 -823
- package/src/components/Card/examples/CardBasic.tsx +10 -0
- package/src/components/Card/examples/CardExpandable.tsx +107 -0
- package/src/components/Card/examples/CardExpandableWithIcon.tsx +89 -0
- package/src/components/Card/examples/CardHeaderInCardHead.tsx +73 -0
- package/src/components/Card/examples/CardLegacySelectable.tsx +99 -0
- package/src/components/Card/examples/CardOnlyActionsInCardHead.tsx +67 -0
- package/src/components/Card/examples/CardOnlyImageInCardHead.tsx +16 -0
- package/src/components/Card/examples/CardSelectable.tsx +107 -0
- package/src/components/Card/examples/CardWithBodySectionFills.tsx +12 -0
- package/src/components/Card/examples/CardWithHeadingElement.tsx +10 -0
- package/src/components/Card/examples/CardWithImageAndActions.tsx +93 -0
- package/src/components/Card/examples/CardWithModifiers.tsx +33 -0
- package/src/components/Card/examples/CardWithMultipleBodySections.tsx +12 -0
- package/src/components/Card/examples/CardWithNoFooter.tsx +9 -0
- package/src/components/Card/examples/CardWithNoHeader.tsx +9 -0
- package/src/components/Card/examples/CardWithOnlyBodySection.tsx +8 -0
- package/src/components/{ChipGroup → Chip}/Chip.tsx +0 -0
- package/src/components/{ChipGroup → Chip}/__tests__/Chip.test.tsx +0 -0
- package/src/components/{ChipGroup → Chip}/__tests__/Generated/Chip.test.tsx +0 -0
- package/src/components/{ChipGroup → Chip}/__tests__/Generated/__snapshots__/Chip.test.tsx.snap +0 -0
- package/src/components/{ChipGroup → Chip}/__tests__/__snapshots__/Chip.test.tsx.snap +0 -0
- package/src/components/Chip/examples/Chip.md +86 -0
- package/src/components/Chip/index.ts +1 -0
- package/src/components/ChipGroup/ChipGroup.tsx +7 -10
- package/src/components/ChipGroup/__tests__/ChipGroup.test.tsx +2 -1
- package/src/components/ChipGroup/__tests__/__snapshots__/ChipGroup.test.tsx.snap +8 -3
- package/src/components/ChipGroup/examples/ChipGroup.md +2 -79
- package/src/components/ChipGroup/index.ts +0 -1
- package/src/components/ClipboardCopy/ClipboardCopy.tsx +3 -1
- package/src/components/DataList/DataListItem.tsx +1 -1
- package/src/components/DualListSelector/DualListSelectorListItem.tsx +5 -2
- package/src/components/EmptyState/examples/EmptyState.md +2 -14
- package/src/components/InputGroup/examples/InputGroup.md +1 -1
- package/src/components/LabelGroup/LabelGroup.tsx +4 -8
- package/src/components/Menu/MenuItem.tsx +5 -6
- package/src/components/Menu/MenuList.tsx +1 -1
- package/src/components/OptionsMenu/OptionsMenu.tsx +1 -1
- package/src/components/OptionsMenu/OptionsMenuToggle.tsx +2 -2
- package/src/components/OptionsMenu/OptionsMenuToggleWithText.tsx +9 -1
- package/src/components/OptionsMenu/__tests__/__snapshots__/OptionsMenu.test.tsx.snap +0 -2
- package/src/components/Progress/examples/Progress.md +29 -25
- package/src/components/Select/Select.tsx +11 -4
- package/src/components/Select/SelectOption.tsx +2 -1
- package/src/components/Select/SelectToggle.tsx +5 -1
- package/src/components/Select/__tests__/__snapshots__/Select.test.tsx.snap +4 -0
- package/src/components/Select/selectConstants.tsx +0 -11
- package/src/components/Sidebar/examples/Sidebar.md +6 -6
- package/src/components/SimpleList/SimpleList.tsx +1 -1
- package/src/components/SimpleList/__tests__/__snapshots__/SimpleList.test.tsx.snap +0 -1
- package/src/components/Spinner/Spinner.tsx +10 -1
- package/src/components/Spinner/__tests__/Generated/__snapshots__/Spinner.test.tsx.snap +1 -0
- package/src/components/Spinner/__tests__/__snapshots__/Spinner.test.tsx.snap +5 -0
- package/src/components/Spinner/examples/Spinner.md +6 -6
- package/src/components/TimePicker/TimePicker.tsx +1 -1
- package/src/components/TimePicker/index.ts +0 -1
- package/src/components/Toolbar/ToolbarFilter.tsx +2 -1
- package/src/components/Tooltip/examples/Tooltip.md +12 -5
- package/src/components/TreeView/TreeViewListItem.tsx +1 -2
- package/src/components/index.ts +1 -0
- package/src/demos/DateTimePicker.md +5 -5
- package/src/demos/Tabs/NestedTabsDemo.js +1 -1
- package/src/demos/Toolbar.md +4 -2
- package/src/helpers/constants.ts +11 -0
- package/dist/esm/components/ChipGroup/Chip.d.ts.map +0 -1
- package/dist/esm/components/ChipGroup/Chip.js.map +0 -1
- package/dist/esm/components/TimePicker/TimeOption.d.ts +0 -19
- package/dist/esm/components/TimePicker/TimeOption.d.ts.map +0 -1
- package/dist/esm/components/TimePicker/TimeOption.js +0 -13
- package/dist/esm/components/TimePicker/TimeOption.js.map +0 -1
- package/dist/js/components/ChipGroup/Chip.d.ts.map +0 -1
- package/dist/js/components/ChipGroup/Chip.js.map +0 -1
- package/dist/js/components/TimePicker/TimeOption.d.ts +0 -19
- package/dist/js/components/TimePicker/TimeOption.d.ts.map +0 -1
- package/dist/js/components/TimePicker/TimeOption.js +0 -17
- package/dist/js/components/TimePicker/TimeOption.js.map +0 -1
- package/src/components/TimePicker/TimeOption.tsx +0 -49
|
@@ -7,7 +7,7 @@ propComponents: ['Progress']
|
|
|
7
7
|
|
|
8
8
|
## Examples
|
|
9
9
|
### Basic
|
|
10
|
-
```
|
|
10
|
+
```ts
|
|
11
11
|
import React from 'react';
|
|
12
12
|
import { Progress, ProgressSize, ProgressMeasureLocation, ProgressVariant } from '@patternfly/react-core';
|
|
13
13
|
|
|
@@ -15,7 +15,7 @@ import { Progress, ProgressSize, ProgressMeasureLocation, ProgressVariant } from
|
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
### Small
|
|
18
|
-
```
|
|
18
|
+
```ts
|
|
19
19
|
import React from 'react';
|
|
20
20
|
import { Progress, ProgressSize, ProgressMeasureLocation, ProgressVariant } from '@patternfly/react-core';
|
|
21
21
|
|
|
@@ -23,7 +23,7 @@ import { Progress, ProgressSize, ProgressMeasureLocation, ProgressVariant } from
|
|
|
23
23
|
```
|
|
24
24
|
|
|
25
25
|
### Large
|
|
26
|
-
```
|
|
26
|
+
```ts
|
|
27
27
|
import React from 'react';
|
|
28
28
|
import { Progress, ProgressSize, ProgressMeasureLocation, ProgressVariant } from '@patternfly/react-core';
|
|
29
29
|
|
|
@@ -31,7 +31,7 @@ import { Progress, ProgressSize, ProgressMeasureLocation, ProgressVariant } from
|
|
|
31
31
|
```
|
|
32
32
|
|
|
33
33
|
### Outside
|
|
34
|
-
```
|
|
34
|
+
```ts
|
|
35
35
|
import React from 'react';
|
|
36
36
|
import { Progress, ProgressSize, ProgressMeasureLocation, ProgressVariant } from '@patternfly/react-core';
|
|
37
37
|
|
|
@@ -39,7 +39,7 @@ import { Progress, ProgressSize, ProgressMeasureLocation, ProgressVariant } from
|
|
|
39
39
|
```
|
|
40
40
|
|
|
41
41
|
### Inside
|
|
42
|
-
```
|
|
42
|
+
```ts
|
|
43
43
|
import React from 'react';
|
|
44
44
|
import { Progress, ProgressSize, ProgressMeasureLocation, ProgressVariant } from '@patternfly/react-core';
|
|
45
45
|
|
|
@@ -47,7 +47,7 @@ import { Progress, ProgressSize, ProgressMeasureLocation, ProgressVariant } from
|
|
|
47
47
|
```
|
|
48
48
|
|
|
49
49
|
### Success
|
|
50
|
-
```
|
|
50
|
+
```ts
|
|
51
51
|
import React from 'react';
|
|
52
52
|
import { Progress, ProgressSize, ProgressMeasureLocation, ProgressVariant } from '@patternfly/react-core';
|
|
53
53
|
|
|
@@ -55,7 +55,7 @@ import { Progress, ProgressSize, ProgressMeasureLocation, ProgressVariant } from
|
|
|
55
55
|
```
|
|
56
56
|
|
|
57
57
|
### Failure
|
|
58
|
-
```
|
|
58
|
+
```ts
|
|
59
59
|
import React from 'react';
|
|
60
60
|
import { Progress, ProgressSize, ProgressMeasureLocation, ProgressVariant } from '@patternfly/react-core';
|
|
61
61
|
|
|
@@ -63,7 +63,7 @@ import { Progress, ProgressSize, ProgressMeasureLocation, ProgressVariant } from
|
|
|
63
63
|
```
|
|
64
64
|
|
|
65
65
|
### Warning
|
|
66
|
-
```
|
|
66
|
+
```ts
|
|
67
67
|
import React from 'react';
|
|
68
68
|
import { Progress, ProgressSize, ProgressMeasureLocation, ProgressVariant } from '@patternfly/react-core';
|
|
69
69
|
|
|
@@ -71,7 +71,7 @@ import { Progress, ProgressSize, ProgressMeasureLocation, ProgressVariant } from
|
|
|
71
71
|
```
|
|
72
72
|
|
|
73
73
|
### Inside success
|
|
74
|
-
```
|
|
74
|
+
```ts
|
|
75
75
|
import React from 'react';
|
|
76
76
|
import { Progress, ProgressSize, ProgressMeasureLocation, ProgressVariant } from '@patternfly/react-core';
|
|
77
77
|
|
|
@@ -84,9 +84,9 @@ import { Progress, ProgressSize, ProgressMeasureLocation, ProgressVariant } from
|
|
|
84
84
|
```
|
|
85
85
|
|
|
86
86
|
### Outside failure
|
|
87
|
-
```
|
|
87
|
+
```ts
|
|
88
88
|
import React from 'react';
|
|
89
|
-
import { Progress,
|
|
89
|
+
import { Progress, ProgressMeasureLocation, ProgressVariant } from '@patternfly/react-core';
|
|
90
90
|
|
|
91
91
|
<Progress
|
|
92
92
|
value={33}
|
|
@@ -97,25 +97,25 @@ import { Progress, ProgressSize, ProgressMeasureLocation, ProgressVariant } from
|
|
|
97
97
|
```
|
|
98
98
|
|
|
99
99
|
### Single line
|
|
100
|
-
```
|
|
100
|
+
```ts
|
|
101
101
|
import React from 'react';
|
|
102
|
-
import { Progress,
|
|
102
|
+
import { Progress, ProgressMeasureLocation, ProgressVariant } from '@patternfly/react-core';
|
|
103
103
|
|
|
104
104
|
<Progress value={33} measureLocation={ProgressMeasureLocation.outside} aria-label="Title"/>
|
|
105
105
|
```
|
|
106
106
|
|
|
107
107
|
### Without measure
|
|
108
|
-
```
|
|
108
|
+
```ts
|
|
109
109
|
import React from 'react';
|
|
110
|
-
import { Progress,
|
|
110
|
+
import { Progress, ProgressMeasureLocation } from '@patternfly/react-core';
|
|
111
111
|
|
|
112
112
|
<Progress value={33} title="Title" measureLocation={ProgressMeasureLocation.none} />
|
|
113
113
|
```
|
|
114
114
|
|
|
115
115
|
### Failure without measure
|
|
116
|
-
```
|
|
116
|
+
```ts
|
|
117
117
|
import React from 'react';
|
|
118
|
-
import { Progress,
|
|
118
|
+
import { Progress, ProgressMeasureLocation, ProgressVariant } from '@patternfly/react-core';
|
|
119
119
|
|
|
120
120
|
<Progress
|
|
121
121
|
value={33}
|
|
@@ -127,23 +127,23 @@ import { Progress, ProgressSize, ProgressMeasureLocation, ProgressVariant } from
|
|
|
127
127
|
|
|
128
128
|
|
|
129
129
|
### Finite step
|
|
130
|
-
```
|
|
130
|
+
```ts
|
|
131
131
|
import React from 'react';
|
|
132
|
-
import { Progress,
|
|
132
|
+
import { Progress, ProgressMeasureLocation } from '@patternfly/react-core';
|
|
133
133
|
|
|
134
134
|
<Progress value={2} min={0} max={5} title="Title" measureLocation={ProgressMeasureLocation.top} label="2 of 5" valueText="2 of 5"/>
|
|
135
135
|
```
|
|
136
136
|
|
|
137
137
|
### Progress (step instruction)
|
|
138
|
-
```
|
|
138
|
+
```ts
|
|
139
139
|
import React from 'react';
|
|
140
|
-
import { Progress
|
|
140
|
+
import { Progress} from '@patternfly/react-core';
|
|
141
141
|
|
|
142
142
|
<Progress value={2} title="Title" min={0} max={5} label="Step 2: Copying files" valueText="Step 2: Copying files" />
|
|
143
143
|
```
|
|
144
144
|
|
|
145
145
|
### Truncate title
|
|
146
|
-
```
|
|
146
|
+
```ts
|
|
147
147
|
import React from 'react';
|
|
148
148
|
import { Progress } from '@patternfly/react-core';
|
|
149
149
|
|
|
@@ -151,11 +151,15 @@ import { Progress } from '@patternfly/react-core';
|
|
|
151
151
|
```
|
|
152
152
|
|
|
153
153
|
### Title outside of progress bar
|
|
154
|
-
```
|
|
154
|
+
```ts
|
|
155
155
|
import React from 'react';
|
|
156
156
|
import {
|
|
157
|
-
DescriptionList,
|
|
158
|
-
|
|
157
|
+
DescriptionList,
|
|
158
|
+
DescriptionListGroup,
|
|
159
|
+
DescriptionListTerm,
|
|
160
|
+
DescriptionListDescription,
|
|
161
|
+
Progress,
|
|
162
|
+
ProgressMeasureLocation,
|
|
159
163
|
} from '@patternfly/react-core';
|
|
160
164
|
|
|
161
165
|
<DescriptionList>
|
|
@@ -17,10 +17,10 @@ import {
|
|
|
17
17
|
SelectVariant,
|
|
18
18
|
SelectPosition,
|
|
19
19
|
SelectDirection,
|
|
20
|
-
KeyTypes,
|
|
21
20
|
SelectFooterTabbableItems
|
|
22
21
|
} from './selectConstants';
|
|
23
|
-
import {
|
|
22
|
+
import { ChipGroup, ChipGroupProps } from '../ChipGroup';
|
|
23
|
+
import { Chip } from '../Chip';
|
|
24
24
|
import { Spinner } from '../Spinner';
|
|
25
25
|
import {
|
|
26
26
|
keyHandler,
|
|
@@ -31,6 +31,7 @@ import {
|
|
|
31
31
|
PickOptional,
|
|
32
32
|
GenerateId
|
|
33
33
|
} from '../../helpers';
|
|
34
|
+
import { KeyTypes } from '../../helpers/constants';
|
|
34
35
|
import { Divider } from '../Divider';
|
|
35
36
|
import { ToggleMenuBaseProps, Popper } from '../../helpers/Popper/Popper';
|
|
36
37
|
import { createRenderableFavorites, extendItemsWithFavorite } from '../../helpers/favorites';
|
|
@@ -671,10 +672,12 @@ export class Select extends React.Component<SelectProps & OUIAProps, SelectState
|
|
|
671
672
|
const { isOpen, onFavorite } = this.props;
|
|
672
673
|
const { typeaheadCurrIndex, tabbedIntoFavoritesMenu } = this.state;
|
|
673
674
|
const typeaheadActiveChild = this.getTypeaheadActiveChild(typeaheadCurrIndex);
|
|
674
|
-
|
|
675
675
|
if (isOpen) {
|
|
676
676
|
if (position === 'enter') {
|
|
677
|
-
if (
|
|
677
|
+
if (
|
|
678
|
+
typeaheadCurrIndex !== -1 && // do not allow selection without moving to an initial option
|
|
679
|
+
(typeaheadActiveChild || (this.refCollection[0] && this.refCollection[0][0]))
|
|
680
|
+
) {
|
|
678
681
|
this.setState({
|
|
679
682
|
typeaheadInputValue:
|
|
680
683
|
(typeaheadActiveChild && typeaheadActiveChild.innerText) || this.refCollection[0][0].innerText
|
|
@@ -753,6 +756,7 @@ export class Select extends React.Component<SelectProps & OUIAProps, SelectState
|
|
|
753
756
|
// Close if there is no footer
|
|
754
757
|
if (!this.props.footer) {
|
|
755
758
|
this.onToggle(false);
|
|
759
|
+
this.onClose();
|
|
756
760
|
} else {
|
|
757
761
|
// has footer
|
|
758
762
|
const tabbableItems = findTabbableElements(this.footerRef, SelectFooterTabbableItems);
|
|
@@ -761,12 +765,14 @@ export class Select extends React.Component<SelectProps & OUIAProps, SelectState
|
|
|
761
765
|
if (shiftKey) {
|
|
762
766
|
// close toggle if shift key and tab on input
|
|
763
767
|
this.onToggle(false);
|
|
768
|
+
this.onClose();
|
|
764
769
|
} else {
|
|
765
770
|
// tab to first tabbable item in footer
|
|
766
771
|
if (tabbableItems[0]) {
|
|
767
772
|
tabbableItems[0].focus();
|
|
768
773
|
} else {
|
|
769
774
|
this.onToggle(false);
|
|
775
|
+
this.onClose();
|
|
770
776
|
}
|
|
771
777
|
}
|
|
772
778
|
} else {
|
|
@@ -787,6 +793,7 @@ export class Select extends React.Component<SelectProps & OUIAProps, SelectState
|
|
|
787
793
|
// no next item, close toggle
|
|
788
794
|
this.onToggle(false);
|
|
789
795
|
this.inputRef.current.focus();
|
|
796
|
+
this.onClose();
|
|
790
797
|
}
|
|
791
798
|
}
|
|
792
799
|
}
|
|
@@ -3,9 +3,10 @@ import styles from '@patternfly/react-styles/css/components/Select/select';
|
|
|
3
3
|
import checkStyles from '@patternfly/react-styles/css/components/Check/check';
|
|
4
4
|
import { css } from '@patternfly/react-styles';
|
|
5
5
|
import CheckIcon from '@patternfly/react-icons/dist/esm/icons/check-icon';
|
|
6
|
-
import { SelectConsumer, SelectVariant
|
|
6
|
+
import { SelectConsumer, SelectVariant } from './selectConstants';
|
|
7
7
|
import StarIcon from '@patternfly/react-icons/dist/esm/icons/star-icon';
|
|
8
8
|
import { getUniqueId } from '../../helpers/util';
|
|
9
|
+
import { KeyTypes } from '../../helpers/constants';
|
|
9
10
|
|
|
10
11
|
export interface SelectOptionObject {
|
|
11
12
|
/** Function returns a string to represent the select option object */
|
|
@@ -3,9 +3,10 @@ import styles from '@patternfly/react-styles/css/components/Select/select';
|
|
|
3
3
|
import buttonStyles from '@patternfly/react-styles/css/components/Button/button';
|
|
4
4
|
import { css } from '@patternfly/react-styles';
|
|
5
5
|
import CaretDownIcon from '@patternfly/react-icons/dist/esm/icons/caret-down-icon';
|
|
6
|
-
import {
|
|
6
|
+
import { SelectVariant, SelectFooterTabbableItems } from './selectConstants';
|
|
7
7
|
import { PickOptional } from '../../helpers/typeUtils';
|
|
8
8
|
import { findTabbableElements } from '../../helpers/util';
|
|
9
|
+
import { KeyTypes } from '../../helpers/constants';
|
|
9
10
|
|
|
10
11
|
export interface SelectToggleProps extends React.HTMLProps<HTMLElement> {
|
|
11
12
|
/** HTML ID of dropdown toggle */
|
|
@@ -320,6 +321,9 @@ export class SelectToggle extends React.Component<SelectToggleProps> {
|
|
|
320
321
|
onClick={_event => {
|
|
321
322
|
if (!isDisabled) {
|
|
322
323
|
onToggle(!isOpen);
|
|
324
|
+
if (isOpen) {
|
|
325
|
+
onClose();
|
|
326
|
+
}
|
|
323
327
|
}
|
|
324
328
|
}}
|
|
325
329
|
onKeyDown={this.onKeyDown}
|
|
@@ -10545,9 +10545,11 @@ exports[`typeahead multi select renders selected successfully 1`] = `
|
|
|
10545
10545
|
class="pf-c-select__toggle-wrapper"
|
|
10546
10546
|
>
|
|
10547
10547
|
<div
|
|
10548
|
+
aria-label="Chip group category"
|
|
10548
10549
|
class="pf-c-chip-group"
|
|
10549
10550
|
data-ouia-component-type="PF4/ChipGroup"
|
|
10550
10551
|
data-ouia-safe="true"
|
|
10552
|
+
role="group"
|
|
10551
10553
|
>
|
|
10552
10554
|
<div
|
|
10553
10555
|
class="pf-c-chip-group__main"
|
|
@@ -10807,9 +10809,11 @@ exports[`typeahead multi select renders selected successfully 1`] = `
|
|
|
10807
10809
|
prefix="pf-random-id-"
|
|
10808
10810
|
>
|
|
10809
10811
|
<div
|
|
10812
|
+
aria-label="Chip group category"
|
|
10810
10813
|
className="pf-c-chip-group"
|
|
10811
10814
|
data-ouia-component-type="PF4/ChipGroup"
|
|
10812
10815
|
data-ouia-safe={true}
|
|
10816
|
+
role="group"
|
|
10813
10817
|
>
|
|
10814
10818
|
<div
|
|
10815
10819
|
className="pf-c-chip-group__main"
|
|
@@ -35,15 +35,4 @@ export enum SelectDirection {
|
|
|
35
35
|
down = 'down'
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
export const KeyTypes = {
|
|
39
|
-
Tab: 'Tab',
|
|
40
|
-
Space: ' ',
|
|
41
|
-
Escape: 'Escape',
|
|
42
|
-
Enter: 'Enter',
|
|
43
|
-
ArrowUp: 'ArrowUp',
|
|
44
|
-
ArrowDown: 'ArrowDown',
|
|
45
|
-
ArrowLeft: 'ArrowLeft',
|
|
46
|
-
ArrowRight: 'ArrowRight'
|
|
47
|
-
};
|
|
48
|
-
|
|
49
38
|
export const SelectFooterTabbableItems = 'input, button, select, textarea, a[href]';
|
|
@@ -55,12 +55,12 @@ import { Sidebar, SidebarContent, SidebarPanel } from '@patternfly/react-core';
|
|
|
55
55
|
```
|
|
56
56
|
|
|
57
57
|
### Sticky panel
|
|
58
|
-
A `
|
|
58
|
+
A `tabIndex` should be added to the `Sidebar` when there is scrollable content in order for the overflow content to be accessible by keyboard.
|
|
59
59
|
```js
|
|
60
60
|
import React from 'react';
|
|
61
61
|
import { Sidebar, SidebarContent, SidebarPanel } from '@patternfly/react-core';
|
|
62
62
|
|
|
63
|
-
<Sidebar style={{ height: '200px', overflow: 'auto' }}
|
|
63
|
+
<Sidebar style={{ height: '200px', overflow: 'auto' }} tabIndex={0}>
|
|
64
64
|
<SidebarPanel variant="sticky">
|
|
65
65
|
Sticky sidebar panel
|
|
66
66
|
</SidebarPanel>
|
|
@@ -73,12 +73,12 @@ import { Sidebar, SidebarContent, SidebarPanel } from '@patternfly/react-core';
|
|
|
73
73
|
```
|
|
74
74
|
|
|
75
75
|
### Static panel
|
|
76
|
-
A `
|
|
76
|
+
A `tabIndex` should be added to the `Sidebar` when there is scrollable content in order for the overflow content to be accessible by keyboard.
|
|
77
77
|
```js
|
|
78
78
|
import React from 'react';
|
|
79
79
|
import { Sidebar, SidebarContent, SidebarPanel } from '@patternfly/react-core';
|
|
80
80
|
|
|
81
|
-
<Sidebar style={{ height: '200px', overflow: 'auto' }}
|
|
81
|
+
<Sidebar style={{ height: '200px', overflow: 'auto' }} tabIndex={0}>
|
|
82
82
|
<SidebarPanel variant="static">
|
|
83
83
|
Static sidebar panel
|
|
84
84
|
</SidebarPanel>
|
|
@@ -91,12 +91,12 @@ import { Sidebar, SidebarContent, SidebarPanel } from '@patternfly/react-core';
|
|
|
91
91
|
```
|
|
92
92
|
|
|
93
93
|
### Responsive panel width
|
|
94
|
-
A `
|
|
94
|
+
A `tabIndex` should be added to the `Sidebar` when there is scrollable content in order for the overflow content to be accessible by keyboard.
|
|
95
95
|
```js
|
|
96
96
|
import React from 'react';
|
|
97
97
|
import { Sidebar, SidebarContent, SidebarPanel } from '@patternfly/react-core';
|
|
98
98
|
|
|
99
|
-
<Sidebar style={{ height: '200px', overflow: 'auto' }}
|
|
99
|
+
<Sidebar style={{ height: '200px', overflow: 'auto' }} tabIndex={0}>
|
|
100
100
|
<SidebarPanel width={{ default: 'width_50', lg: 'width_33', xl: 'width_75' }}>
|
|
101
101
|
Sidebar panel
|
|
102
102
|
</SidebarPanel>
|
|
@@ -72,7 +72,7 @@ export class SimpleList extends React.Component<SimpleListProps, SimpleListState
|
|
|
72
72
|
isControlled
|
|
73
73
|
}}
|
|
74
74
|
>
|
|
75
|
-
<div className={css(styles.simpleList, className)} {...props}
|
|
75
|
+
<div className={css(styles.simpleList, className)} {...props}>
|
|
76
76
|
{isGrouped && children}
|
|
77
77
|
{!isGrouped && <ul>{children}</ul>}
|
|
78
78
|
</div>
|
|
@@ -14,12 +14,16 @@ export interface SpinnerProps extends Omit<React.HTMLProps<HTMLSpanElement>, 'si
|
|
|
14
14
|
className?: string;
|
|
15
15
|
/** Size variant of progress. */
|
|
16
16
|
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
17
|
-
/**
|
|
17
|
+
/** Text describing that current loading status or progress */
|
|
18
18
|
'aria-valuetext'?: string;
|
|
19
19
|
/** Whether to use an SVG (new) rather than a span (old) */
|
|
20
20
|
isSVG?: boolean;
|
|
21
21
|
/** Diameter of spinner set as CSS variable */
|
|
22
22
|
diameter?: string;
|
|
23
|
+
/** Accessible label to describe what is loading */
|
|
24
|
+
'aria-label'?: string;
|
|
25
|
+
/** Id of element which describes what is being loaded */
|
|
26
|
+
'aria-labelledBy'?: string;
|
|
23
27
|
}
|
|
24
28
|
|
|
25
29
|
export const Spinner: React.FunctionComponent<SpinnerProps> = ({
|
|
@@ -29,6 +33,8 @@ export const Spinner: React.FunctionComponent<SpinnerProps> = ({
|
|
|
29
33
|
'aria-valuetext': ariaValueText = 'Loading...',
|
|
30
34
|
isSVG = false,
|
|
31
35
|
diameter,
|
|
36
|
+
'aria-label': ariaLabel,
|
|
37
|
+
'aria-labelledBy': ariaLabelledBy,
|
|
32
38
|
...props
|
|
33
39
|
}: SpinnerProps) => {
|
|
34
40
|
const Component = isSVG ? 'svg' : ('span' as any);
|
|
@@ -40,6 +46,9 @@ export const Spinner: React.FunctionComponent<SpinnerProps> = ({
|
|
|
40
46
|
aria-valuetext={ariaValueText}
|
|
41
47
|
{...(isSVG && { viewBox: '0 0 100 100' })}
|
|
42
48
|
{...(diameter && { style: { '--pf-c-spinner--diameter': diameter } })}
|
|
49
|
+
{...(ariaLabel && { 'aria-label': ariaLabel })}
|
|
50
|
+
{...(ariaLabelledBy && { 'aria-labelledBy': ariaLabelledBy })}
|
|
51
|
+
{...(!ariaLabel && !ariaLabelledBy && { 'aria-label': 'Contents' })}
|
|
43
52
|
{...props}
|
|
44
53
|
>
|
|
45
54
|
{isSVG ? (
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`extra large spinner 1`] = `
|
|
4
4
|
<span
|
|
5
|
+
aria-label="Contents"
|
|
5
6
|
aria-valuetext="Loading..."
|
|
6
7
|
className="pf-c-spinner pf-m-xl"
|
|
7
8
|
role="progressbar"
|
|
@@ -20,6 +21,7 @@ exports[`extra large spinner 1`] = `
|
|
|
20
21
|
|
|
21
22
|
exports[`large spinner 1`] = `
|
|
22
23
|
<span
|
|
24
|
+
aria-label="Contents"
|
|
23
25
|
aria-valuetext="Loading..."
|
|
24
26
|
className="pf-c-spinner pf-m-lg"
|
|
25
27
|
role="progressbar"
|
|
@@ -38,6 +40,7 @@ exports[`large spinner 1`] = `
|
|
|
38
40
|
|
|
39
41
|
exports[`medium spinner 1`] = `
|
|
40
42
|
<span
|
|
43
|
+
aria-label="Contents"
|
|
41
44
|
aria-valuetext="Loading..."
|
|
42
45
|
className="pf-c-spinner pf-m-md"
|
|
43
46
|
role="progressbar"
|
|
@@ -56,6 +59,7 @@ exports[`medium spinner 1`] = `
|
|
|
56
59
|
|
|
57
60
|
exports[`simple spinner 1`] = `
|
|
58
61
|
<span
|
|
62
|
+
aria-label="Contents"
|
|
59
63
|
aria-valuetext="Loading..."
|
|
60
64
|
className="pf-c-spinner pf-m-xl"
|
|
61
65
|
role="progressbar"
|
|
@@ -74,6 +78,7 @@ exports[`simple spinner 1`] = `
|
|
|
74
78
|
|
|
75
79
|
exports[`small spinner 1`] = `
|
|
76
80
|
<span
|
|
81
|
+
aria-label="Contents"
|
|
77
82
|
aria-valuetext="Loading..."
|
|
78
83
|
className="pf-c-spinner pf-m-sm"
|
|
79
84
|
role="progressbar"
|
|
@@ -11,7 +11,7 @@ propComponents: ['Spinner']
|
|
|
11
11
|
import React from 'react';
|
|
12
12
|
import { Spinner } from '@patternfly/react-core';
|
|
13
13
|
|
|
14
|
-
<Spinner isSVG />
|
|
14
|
+
<Spinner isSVG aria-label="Contents of the basic example"/>
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
### Size variations
|
|
@@ -20,10 +20,10 @@ import React from 'react';
|
|
|
20
20
|
import { Spinner } from '@patternfly/react-core';
|
|
21
21
|
|
|
22
22
|
<React.Fragment>
|
|
23
|
-
<Spinner isSVG size="sm"/>
|
|
24
|
-
<Spinner isSVG size="md"/>
|
|
25
|
-
<Spinner isSVG size="lg"/>
|
|
26
|
-
<Spinner isSVG size="xl"/>
|
|
23
|
+
<Spinner isSVG size="sm" aria-label="Contents of the small example"/>
|
|
24
|
+
<Spinner isSVG size="md" aria-label="Contents of the medium example"/>
|
|
25
|
+
<Spinner isSVG size="lg" aria-label="Contents of the large example"/>
|
|
26
|
+
<Spinner isSVG size="xl" aria-label="Contents of the extra large example"/>
|
|
27
27
|
</React.Fragment>
|
|
28
28
|
```
|
|
29
29
|
|
|
@@ -32,6 +32,6 @@ import { Spinner } from '@patternfly/react-core';
|
|
|
32
32
|
import React from 'react';
|
|
33
33
|
import { Spinner } from '@patternfly/react-core';
|
|
34
34
|
|
|
35
|
-
<Spinner isSVG diameter="80px" />
|
|
35
|
+
<Spinner isSVG diameter="80px" aria-label="Contents of the custom size example"/>
|
|
36
36
|
```
|
|
37
37
|
|
|
@@ -6,9 +6,9 @@ import menuStyles from '@patternfly/react-styles/css/components/Menu/menu';
|
|
|
6
6
|
import { getUniqueId } from '../../helpers';
|
|
7
7
|
import { Popper } from '../../helpers/Popper/Popper';
|
|
8
8
|
import { Menu, MenuContent, MenuList, MenuItem } from '../Menu';
|
|
9
|
-
import { KeyTypes } from '../Select';
|
|
10
9
|
import { InputGroup } from '../InputGroup';
|
|
11
10
|
import { TextInput, TextInputProps } from '../TextInput';
|
|
11
|
+
import { KeyTypes } from '../../helpers/constants';
|
|
12
12
|
import {
|
|
13
13
|
parseTime,
|
|
14
14
|
validateTime,
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import * as ReactDOM from 'react-dom';
|
|
3
3
|
import { ToolbarItem, ToolbarItemProps } from './ToolbarItem';
|
|
4
|
-
import { ChipGroup
|
|
4
|
+
import { ChipGroup } from '../ChipGroup';
|
|
5
|
+
import { Chip } from '../Chip';
|
|
5
6
|
import { ToolbarContentContext, ToolbarContext } from './ToolbarUtils';
|
|
6
7
|
import { PickOptional } from '../../helpers/typeUtils';
|
|
7
8
|
|
|
@@ -78,7 +78,7 @@ IconExample = () => {
|
|
|
78
78
|
return (
|
|
79
79
|
<div style={{ margin: '100px' }}>
|
|
80
80
|
<Tooltip content={showSuccessContent ? doneCopyText : copyText}>
|
|
81
|
-
<Button variant="plain" id="tt-ref" onClick={() => setShowSuccessContent(!showSuccessContent)}>
|
|
81
|
+
<Button variant="plain" aria-label="Icon with tooltip attached" id="tt-ref" onClick={() => setShowSuccessContent(!showSuccessContent)}>
|
|
82
82
|
<CopyIcon />
|
|
83
83
|
</Button>
|
|
84
84
|
</Tooltip>
|
|
@@ -124,6 +124,7 @@ OptionsTooltip = () => {
|
|
|
124
124
|
setTrigger(updatedTrigger);
|
|
125
125
|
}}
|
|
126
126
|
aria-label="trigger: mouseenter"
|
|
127
|
+
id="trigger_mouseenter"
|
|
127
128
|
/>
|
|
128
129
|
<Checkbox
|
|
129
130
|
label="trigger: focus"
|
|
@@ -136,6 +137,7 @@ OptionsTooltip = () => {
|
|
|
136
137
|
setTrigger(updatedTrigger);
|
|
137
138
|
}}
|
|
138
139
|
aria-label="trigger: focus"
|
|
140
|
+
id="trigger_focus"
|
|
139
141
|
/>
|
|
140
142
|
<Checkbox
|
|
141
143
|
label="trigger: click"
|
|
@@ -148,6 +150,7 @@ OptionsTooltip = () => {
|
|
|
148
150
|
setTimeout(() => setTrigger(updatedTrigger));
|
|
149
151
|
}}
|
|
150
152
|
aria-label="trigger: click"
|
|
153
|
+
id="trigger_click"
|
|
151
154
|
/>
|
|
152
155
|
<Checkbox
|
|
153
156
|
label="trigger: manual"
|
|
@@ -159,7 +162,8 @@ OptionsTooltip = () => {
|
|
|
159
162
|
setIsVisible(false);
|
|
160
163
|
setTrigger(updatedTrigger);
|
|
161
164
|
}}
|
|
162
|
-
aria-label="trigger: manual"
|
|
165
|
+
aria-label="trigger: manual"
|
|
166
|
+
id="trigger_manual"
|
|
163
167
|
/>
|
|
164
168
|
</div>
|
|
165
169
|
<div style={{ border: '1px solid'}}>
|
|
@@ -167,7 +171,8 @@ OptionsTooltip = () => {
|
|
|
167
171
|
label="content left-aligned"
|
|
168
172
|
isChecked={contentLeftAligned}
|
|
169
173
|
onChange={(checked) => setContentLeftAligned(checked)}
|
|
170
|
-
aria-label="content left-aligned"
|
|
174
|
+
aria-label="content left-aligned"
|
|
175
|
+
id="content_left_aligned"
|
|
171
176
|
/>
|
|
172
177
|
</div>
|
|
173
178
|
<div style={{ border: '1px solid'}}>
|
|
@@ -175,7 +180,8 @@ OptionsTooltip = () => {
|
|
|
175
180
|
label="enableFlip"
|
|
176
181
|
isChecked={enableFlip}
|
|
177
182
|
onChange={(checked) => setEnableFlip(checked)}
|
|
178
|
-
aria-label="enableFlip"
|
|
183
|
+
aria-label="enableFlip"
|
|
184
|
+
id="enable_flip"
|
|
179
185
|
/>
|
|
180
186
|
</div>
|
|
181
187
|
<div style={{ border: '1px solid'}}>
|
|
@@ -210,7 +216,8 @@ OptionsTooltip = () => {
|
|
|
210
216
|
label="isVisible (also set trigger to only manual to programmatically control it)"
|
|
211
217
|
isChecked={isVisible}
|
|
212
218
|
onChange={(checked) => setIsVisible(checked)}
|
|
213
|
-
aria-label="isVisible"
|
|
219
|
+
aria-label="isVisible"
|
|
220
|
+
id="is_visible"
|
|
214
221
|
/>
|
|
215
222
|
</div>
|
|
216
223
|
<div style={{ border: '1px solid'}}>
|
|
@@ -167,7 +167,7 @@ const TreeViewListItemBase: React.FunctionComponent<TreeViewListItemProps> = ({
|
|
|
167
167
|
id={id}
|
|
168
168
|
className={css(styles.treeViewListItem, internalIsExpanded && styles.modifiers.expanded)}
|
|
169
169
|
{...(internalIsExpanded && { 'aria-expanded': 'true' })}
|
|
170
|
-
role=
|
|
170
|
+
role="treeitem"
|
|
171
171
|
tabIndex={-1}
|
|
172
172
|
>
|
|
173
173
|
<div className={css(styles.treeViewContent)}>
|
|
@@ -191,7 +191,6 @@ const TreeViewListItemBase: React.FunctionComponent<TreeViewListItemProps> = ({
|
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
193
|
}}
|
|
194
|
-
{...(!children && { role: 'treeitem' })}
|
|
195
194
|
tabIndex={-1}
|
|
196
195
|
>
|
|
197
196
|
<div className={css(styles.treeViewNodeContainer)}>
|
package/src/components/index.ts
CHANGED
|
@@ -57,7 +57,7 @@ DateTimePicker = () => {
|
|
|
57
57
|
<DropdownItem key={time} component="button" value={`${time}:00`}>
|
|
58
58
|
{`${time}:00`}
|
|
59
59
|
</DropdownItem>
|
|
60
|
-
))
|
|
60
|
+
));
|
|
61
61
|
const calendar = (
|
|
62
62
|
<CalendarMonth
|
|
63
63
|
date={valueDate}
|
|
@@ -68,7 +68,7 @@ DateTimePicker = () => {
|
|
|
68
68
|
<Dropdown
|
|
69
69
|
onSelect={onSelectTime}
|
|
70
70
|
toggle={
|
|
71
|
-
<DropdownToggle toggleIndicator={null} onToggle={onToggleTime} style={{ padding: '6px 16px' }}>
|
|
71
|
+
<DropdownToggle aria-label="Toggle the time picker menu" toggleIndicator={null} onToggle={onToggleTime} style={{ padding: '6px 16px' }}>
|
|
72
72
|
<OutlinedClockIcon />
|
|
73
73
|
</DropdownToggle>
|
|
74
74
|
}
|
|
@@ -77,7 +77,7 @@ DateTimePicker = () => {
|
|
|
77
77
|
/>
|
|
78
78
|
);
|
|
79
79
|
const calendarButton = (
|
|
80
|
-
<Button variant="control" onClick={onToggleCalendar}>
|
|
80
|
+
<Button variant="control" aria-label="Toggle the calendar" onClick={onToggleCalendar}>
|
|
81
81
|
<OutlinedCalendarAltIcon />
|
|
82
82
|
</Button>
|
|
83
83
|
);
|
|
@@ -92,7 +92,7 @@ DateTimePicker = () => {
|
|
|
92
92
|
hasAutoWidth
|
|
93
93
|
>
|
|
94
94
|
<InputGroup>
|
|
95
|
-
<TextInput type="'datetime-local" id="date-time" value={valueDate + ' ' + valueTime} isReadOnly/>
|
|
95
|
+
<TextInput type="'datetime-local" id="date-time" aria-label="date and time picker demo" value={valueDate + ' ' + valueTime} isReadOnly/>
|
|
96
96
|
{calendarButton}
|
|
97
97
|
{time}
|
|
98
98
|
</InputGroup>
|
|
@@ -100,4 +100,4 @@ DateTimePicker = () => {
|
|
|
100
100
|
</div>
|
|
101
101
|
);
|
|
102
102
|
};
|
|
103
|
-
```
|
|
103
|
+
```
|