@pingux/astro 1.1.0-alpha.4 → 1.1.0-alpha.5

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 (30) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/lib/cjs/components/AccordionGridItem/AccordionGridItemBody.js +1 -1
  3. package/lib/cjs/components/AccordionGridItem/AccordionGridItemHeader.js +1 -1
  4. package/lib/cjs/components/AccordionGroup/AccordionGroup.test.js +6 -3
  5. package/lib/cjs/components/AccordionItem/AccordionItem.js +1 -2
  6. package/lib/cjs/components/Button/Button.js +1 -2
  7. package/lib/cjs/components/Button/Button.stories.js +2 -1
  8. package/lib/cjs/components/Button/Button.test.js +2 -1
  9. package/lib/cjs/components/ColorField/ColorField.js +1 -0
  10. package/lib/cjs/components/IconButton/IconButton.js +1 -1
  11. package/lib/cjs/components/IconButton/IconButton.test.js +4 -5
  12. package/lib/cjs/components/ImageUploadField/ImagePreviewButton.js +2 -1
  13. package/lib/cjs/components/ListBox/ListBox.js +3 -6
  14. package/lib/cjs/components/ListBox/ListBox.test.js +2 -0
  15. package/lib/cjs/components/MultivaluesField/MultivaluesField.js +2 -1
  16. package/lib/components/AccordionGridItem/AccordionGridItemBody.js +1 -1
  17. package/lib/components/AccordionGridItem/AccordionGridItemHeader.js +1 -1
  18. package/lib/components/AccordionGroup/AccordionGroup.test.js +6 -3
  19. package/lib/components/AccordionItem/AccordionItem.js +2 -3
  20. package/lib/components/Button/Button.js +2 -3
  21. package/lib/components/Button/Button.stories.js +2 -1
  22. package/lib/components/Button/Button.test.js +2 -1
  23. package/lib/components/ColorField/ColorField.js +1 -0
  24. package/lib/components/IconButton/IconButton.js +1 -1
  25. package/lib/components/IconButton/IconButton.test.js +4 -5
  26. package/lib/components/ImageUploadField/ImagePreviewButton.js +2 -1
  27. package/lib/components/ListBox/ListBox.js +3 -5
  28. package/lib/components/ListBox/ListBox.test.js +2 -0
  29. package/lib/components/MultivaluesField/MultivaluesField.js +2 -1
  30. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [1.1.0-alpha.5](https://gitlab.corp.pingidentity.com/ux/pingux/compare/@pingux/astro@1.1.0-alpha.4...@pingux/astro@1.1.0-alpha.5) (2022-01-21)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * [UIP-5030] Components shouldn't have a default aria-label ([8927951](https://gitlab.corp.pingidentity.com/ux/pingux/commit/8927951339ef49faa03f5654d9e8f357b136430a))
12
+
13
+
14
+
15
+
16
+
6
17
  # [1.1.0-alpha.4](https://gitlab.corp.pingidentity.com/ux/pingux/compare/@pingux/astro@1.1.0-alpha.3...@pingux/astro@1.1.0-alpha.4) (2022-01-21)
7
18
 
8
19
 
@@ -77,7 +77,7 @@ var AccordionGridItemBody = /*#__PURE__*/(0, _react.forwardRef)(function (props,
77
77
  }, mergedProps, {
78
78
  isSelected: isSelected,
79
79
  className: classNames,
80
- "aria-label": ariaLabel || 'Grid Cell'
80
+ "aria-label": ariaLabel
81
81
  }), children);
82
82
  });
83
83
  AccordionGridItemBody.propTypes = {
@@ -106,7 +106,7 @@ var AccordionGridItemHeader = /*#__PURE__*/(0, _react.forwardRef)(function (prop
106
106
  isSelected: isSelected,
107
107
  className: classNames
108
108
  }, others, {
109
- "aria-label": ariaLabel || 'Grid Cell'
109
+ "aria-label": ariaLabel
110
110
  }), (0, _react2.jsx)(_Box["default"], {
111
111
  isRow: true
112
112
  }, children, (0, _react2.jsx)(_Box["default"], {
@@ -32,15 +32,18 @@ var getComponent = function getComponent() {
32
32
  return (0, _testWrapper.render)((0, _react2.jsx)(_AccordionGroup["default"], (0, _extends2["default"])({}, defaultProps, props), (0, _react2.jsx)(_collections.Item, {
33
33
  key: "first",
34
34
  textValue: "Duplicate",
35
- "data-id": "first"
35
+ "data-id": "first",
36
+ label: "Accordion item"
36
37
  }, (0, _react2.jsx)(_Text["default"], null, "Render me!")), (0, _react2.jsx)(_collections.Item, {
37
38
  key: "second",
38
39
  textValue: "Duplicate",
39
- "data-id": "second"
40
+ "data-id": "second",
41
+ label: "Accordion item"
40
42
  }, (0, _react2.jsx)(_Text["default"], null, "Render me!")), (0, _react2.jsx)(_collections.Item, {
41
43
  key: "third",
42
44
  textValue: "Duplicate",
43
- "data-id": "third"
45
+ "data-id": "third",
46
+ label: "Accordion item"
44
47
  }, (0, _react2.jsx)(_Text["default"], null, "Render me!"))));
45
48
  }; // Need to be added to each test file to test accessibility using axe.
46
49
 
@@ -100,12 +100,11 @@ var AccordionItem = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
100
100
  buttonClasses = _useStatusClasses2.classNames;
101
101
 
102
102
  var ariaLabel = props['aria-label'] || item.props.label;
103
- (0, _hooks.useAriaLabelWarning)('AccordionItem', ariaLabel);
104
103
  return (0, _react2.jsx)(_index.Box, (0, _extends2["default"])({
105
104
  variant: "accordion.accordion",
106
105
  className: itemClasses
107
106
  }, others, containerProps), (0, _react2.jsx)(_themeUi.Button, (0, _extends2["default"])({
108
- "aria-label": ariaLabel || 'Accordion',
107
+ "aria-label": ariaLabel,
109
108
  ref: buttonRef,
110
109
  sx: {
111
110
  display: 'flex',
@@ -103,9 +103,8 @@ var Button = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
103
103
  classNames = _useStatusClasses.classNames;
104
104
 
105
105
  var ariaLabel = props['aria-label'];
106
- (0, _hooks.useAriaLabelWarning)('Button', ariaLabel);
107
106
  return (0, _react2.jsx)(_themeUi.Button, (0, _extends2["default"])({
108
- "aria-label": ariaLabel || 'Button',
107
+ "aria-label": ariaLabel,
109
108
  ref: buttonRef,
110
109
  className: classNames,
111
110
  role: "button",
@@ -93,7 +93,8 @@ exports.TextIconButton = TextIconButton;
93
93
  var TextButton = function TextButton() {
94
94
  return (0, _react2.jsx)(_["default"], {
95
95
  mb: "sm",
96
- variant: "text"
96
+ variant: "text",
97
+ "aria-label": "Add option"
97
98
  }, (0, _react2.jsx)(_Text["default"], {
98
99
  variant: "label",
99
100
  color: "active"
@@ -18,7 +18,8 @@ var _react2 = require("@emotion/react");
18
18
 
19
19
  var testId = 'test-button';
20
20
  var defaultProps = {
21
- 'data-testid': testId
21
+ 'data-testid': testId,
22
+ 'aria-label': 'Test button'
22
23
  };
23
24
 
24
25
  var getComponent = function getComponent() {
@@ -149,6 +149,7 @@ var ColorField = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
149
149
  return (0, _concat["default"])(_context2 = (0, _concat["default"])(_context3 = (0, _concat["default"])(_context4 = "rgba(".concat(colorValue === null || colorValue === void 0 ? void 0 : colorValue.red, ", ")).call(_context4, colorValue === null || colorValue === void 0 ? void 0 : colorValue.green, ", ")).call(_context3, colorValue === null || colorValue === void 0 ? void 0 : colorValue.blue, ", ")).call(_context2, colorValue === null || colorValue === void 0 ? void 0 : colorValue.alpha, ")");
150
150
  }, []);
151
151
  return (0, _react2.jsx)(_index.Box, fieldContainerProps, label && (0, _react2.jsx)(_index.Label, fieldLabelProps), (0, _react2.jsx)(_index.Button, (0, _extends2["default"])({
152
+ "aria-label": "Select color",
152
153
  bg: getRgbaFromState(state),
153
154
  onPress: handleButtonPress,
154
155
  ref: triggerRef,
@@ -115,7 +115,7 @@ var IconButton = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
115
115
  tabIndex: 0,
116
116
  ref: buttonRef,
117
117
  className: classNames,
118
- "aria-label": ariaLabel || 'Icon Button',
118
+ "aria-label": ariaLabel,
119
119
  sx: chipBg && isHovered && {
120
120
  'path': {
121
121
  fill: chipBg
@@ -29,7 +29,8 @@ var Icon = function Icon(props) {
29
29
  var testId = 'test-button';
30
30
  var defaultProps = {
31
31
  'data-testid': testId,
32
- icon: Icon
32
+ icon: Icon,
33
+ 'aria-label': 'Create'
33
34
  };
34
35
 
35
36
  var getComponent = function getComponent() {
@@ -162,10 +163,8 @@ test('tooltip is not shown on hover or focus when prop is not passed', function
162
163
  expect(_testWrapper.screen.queryByRole('tooltip')).not.toBeInTheDocument();
163
164
  });
164
165
  test('the button should be getting aria label attribute', function () {
165
- var testLabel = 'test label';
166
- getComponent({
167
- 'aria-label': testLabel
168
- });
166
+ var testLabel = defaultProps['aria-label'];
167
+ getComponent();
169
168
  expect(_testWrapper.screen.getByLabelText(testLabel)).toBeInTheDocument();
170
169
  });
171
170
  test('show button isDisabled status', function () {
@@ -113,7 +113,8 @@ var ImagePreviewButton = /*#__PURE__*/(0, _react.forwardRef)(function (props, re
113
113
  ref: buttonRef,
114
114
  variant: "imageUpload",
115
115
  sx: widthHeightSx,
116
- "data-testid": "image-preview-button"
116
+ "data-testid": "image-preview-button",
117
+ "aria-label": "Image preview"
117
118
  }, (0, _utils.mergeProps)(focusProps, others)), previewImage && isImageType ? imagePreview : noImagePreview, isLoading && loadingPreview, (isHovered || isFocusVisible) && !isLoading && hoveredPreview));
118
119
  });
119
120
  ImagePreviewButton.propTypes = {
@@ -55,8 +55,6 @@ var _ListBoxContext = require("./ListBoxContext");
55
55
 
56
56
  var _index = require("./index.js");
57
57
 
58
- var _hooks = require("../../hooks");
59
-
60
58
  var _isIterable = require("../../utils/devUtils/props/isIterable");
61
59
 
62
60
  var _Loader = _interopRequireDefault(require("../Loader"));
@@ -120,12 +118,11 @@ var ListBox = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
120
118
  selectedKeys = props.selectedKeys,
121
119
  selectionMode = props.selectionMode,
122
120
  state = props.state,
121
+ ariaLabel = props['aria-label'],
123
122
  ariaLabelledby = props['aria-labelledby'],
124
123
  ariaDescribedby = props['aria-describedby'],
125
124
  ariaDetails = props['aria-details'],
126
- others = (0, _objectWithoutProperties2["default"])(props, ["defaultSelectedKeys", "disabledKeys", "hasAutoFocus", "hasFocusWrap", "hasNoEmptySelection", "hasVirtualFocus", "id", "isLoading", "isFocusedOnHover", "isSelectedOnPressUp", "isVirtualized", "items", "keyboardDelegate", "label", "onLoadMore", "onScroll", "onSelectionChange", "renderEmptyState", "selectedKeys", "selectionMode", "state", "aria-labelledby", "aria-describedby", "aria-details"]);
127
- var ariaLabel = props['aria-label'];
128
- (0, _hooks.useAriaLabelWarning)('ListBox', ariaLabel);
125
+ others = (0, _objectWithoutProperties2["default"])(props, ["defaultSelectedKeys", "disabledKeys", "hasAutoFocus", "hasFocusWrap", "hasNoEmptySelection", "hasVirtualFocus", "id", "isLoading", "isFocusedOnHover", "isSelectedOnPressUp", "isVirtualized", "items", "keyboardDelegate", "label", "onLoadMore", "onScroll", "onSelectionChange", "renderEmptyState", "selectedKeys", "selectionMode", "state", "aria-label", "aria-labelledby", "aria-describedby", "aria-details"]);
129
126
  var focusStrategy = state.focusStrategy; // Object matching React Aria API with all options
130
127
 
131
128
  var listBoxOptions = {
@@ -149,7 +146,7 @@ var ListBox = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
149
146
  shouldFocusWrap: hasFocusWrap,
150
147
  shouldSelectOnPressUp: isSelectedOnPressUp,
151
148
  shouldUseVirtualFocus: hasVirtualFocus,
152
- 'aria-label': ariaLabel || 'ListBox',
149
+ 'aria-label': ariaLabel,
153
150
  'aria-labelledby': ariaLabelledby,
154
151
  'aria-describedby': ariaDescribedby,
155
152
  'aria-details': ariaDetails
@@ -44,11 +44,13 @@ var itemsWithSections = [{
44
44
  }];
45
45
  var defaultProps = {
46
46
  'data-testid': testId,
47
+ 'aria-label': 'listbox',
47
48
  'aria-labelledby': 'label',
48
49
  items: items
49
50
  };
50
51
  var defaultWithSectionsProps = {
51
52
  'data-testid': testId,
53
+ 'aria-label': 'listbox',
52
54
  'aria-labelledby': 'label',
53
55
  items: itemsWithSections
54
56
  };
@@ -352,7 +352,8 @@ var MultivaluesField = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref)
352
352
  hasAutoFocus: hasAutoFocus,
353
353
  hasVirtualFocus: true,
354
354
  hasNoEmptySelection: true,
355
- state: state
355
+ state: state,
356
+ "aria-label": "List of options"
356
357
  })), (0, _react2.jsx)(_overlays.DismissButton, {
357
358
  onDismiss: close
358
359
  }));
@@ -52,7 +52,7 @@ var AccordionGridItemBody = /*#__PURE__*/forwardRef(function (props, ref) {
52
52
  }, mergedProps, {
53
53
  isSelected: isSelected,
54
54
  className: classNames,
55
- "aria-label": ariaLabel || 'Grid Cell'
55
+ "aria-label": ariaLabel
56
56
  }), children);
57
57
  });
58
58
  AccordionGridItemBody.propTypes = {
@@ -76,7 +76,7 @@ var AccordionGridItemHeader = /*#__PURE__*/forwardRef(function (props, ref) {
76
76
  isSelected: isSelected,
77
77
  className: classNames
78
78
  }, others, {
79
- "aria-label": ariaLabel || 'Grid Cell'
79
+ "aria-label": ariaLabel
80
80
  }), ___EmotionJSX(Box, {
81
81
  isRow: true
82
82
  }, children, ___EmotionJSX(Box, {
@@ -18,15 +18,18 @@ var getComponent = function getComponent() {
18
18
  return render(___EmotionJSX(AccordionGroup, _extends({}, defaultProps, props), ___EmotionJSX(Item, {
19
19
  key: "first",
20
20
  textValue: "Duplicate",
21
- "data-id": "first"
21
+ "data-id": "first",
22
+ label: "Accordion item"
22
23
  }, ___EmotionJSX(Text, null, "Render me!")), ___EmotionJSX(Item, {
23
24
  key: "second",
24
25
  textValue: "Duplicate",
25
- "data-id": "second"
26
+ "data-id": "second",
27
+ label: "Accordion item"
26
28
  }, ___EmotionJSX(Text, null, "Render me!")), ___EmotionJSX(Item, {
27
29
  key: "third",
28
30
  textValue: "Duplicate",
29
- "data-id": "third"
31
+ "data-id": "third",
32
+ label: "Accordion item"
30
33
  }, ___EmotionJSX(Text, null, "Render me!"))));
31
34
  }; // Need to be added to each test file to test accessibility using axe.
32
35
 
@@ -11,7 +11,7 @@ import { useAccordionItem } from '@react-aria/accordion';
11
11
  import { useButton } from '@react-aria/button';
12
12
  import { useFocusRing } from '@react-aria/focus';
13
13
  import { Text, Icon, Box } from '../../index';
14
- import { useAriaLabelWarning, useStatusClasses } from '../../hooks';
14
+ import { useStatusClasses } from '../../hooks';
15
15
  import { AccordionContext } from '../../context/AccordionContext';
16
16
  import { jsx as ___EmotionJSX } from "@emotion/react";
17
17
  var AccordionItem = /*#__PURE__*/forwardRef(function (props, ref) {
@@ -72,12 +72,11 @@ var AccordionItem = /*#__PURE__*/forwardRef(function (props, ref) {
72
72
  buttonClasses = _useStatusClasses2.classNames;
73
73
 
74
74
  var ariaLabel = props['aria-label'] || item.props.label;
75
- useAriaLabelWarning('AccordionItem', ariaLabel);
76
75
  return ___EmotionJSX(Box, _extends({
77
76
  variant: "accordion.accordion",
78
77
  className: itemClasses
79
78
  }, others, containerProps), ___EmotionJSX(ThemeUIButton, _extends({
80
- "aria-label": ariaLabel || 'Accordion',
79
+ "aria-label": ariaLabel,
81
80
  ref: buttonRef,
82
81
  sx: {
83
82
  display: 'flex',
@@ -21,7 +21,7 @@ import { useButton } from '@react-aria/button';
21
21
  import { useHover } from '@react-aria/interactions';
22
22
  import { useFocusRing } from '@react-aria/focus';
23
23
  import { mergeProps } from '@react-aria/utils';
24
- import { useAriaLabelWarning, useStatusClasses, usePropWarning } from '../../hooks';
24
+ import { useStatusClasses, usePropWarning } from '../../hooks';
25
25
  import Loader from '../Loader';
26
26
  import { jsx as ___EmotionJSX } from "@emotion/react";
27
27
  var Button = /*#__PURE__*/forwardRef(function (props, ref) {
@@ -70,9 +70,8 @@ var Button = /*#__PURE__*/forwardRef(function (props, ref) {
70
70
  classNames = _useStatusClasses.classNames;
71
71
 
72
72
  var ariaLabel = props['aria-label'];
73
- useAriaLabelWarning('Button', ariaLabel);
74
73
  return ___EmotionJSX(ThemeUIButton, _extends({
75
- "aria-label": ariaLabel || 'Button',
74
+ "aria-label": ariaLabel,
76
75
  ref: buttonRef,
77
76
  className: classNames,
78
77
  role: "button",
@@ -62,7 +62,8 @@ export var TextIconButton = function TextIconButton() {
62
62
  export var TextButton = function TextButton() {
63
63
  return ___EmotionJSX(Button, {
64
64
  mb: "sm",
65
- variant: "text"
65
+ variant: "text",
66
+ "aria-label": "Add option"
66
67
  }, ___EmotionJSX(Text, {
67
68
  variant: "label",
68
69
  color: "active"
@@ -7,7 +7,8 @@ import Button from '.';
7
7
  import { jsx as ___EmotionJSX } from "@emotion/react";
8
8
  var testId = 'test-button';
9
9
  var defaultProps = {
10
- 'data-testid': testId
10
+ 'data-testid': testId,
11
+ 'aria-label': 'Test button'
11
12
  };
12
13
 
13
14
  var getComponent = function getComponent() {
@@ -108,6 +108,7 @@ var ColorField = /*#__PURE__*/forwardRef(function (props, ref) {
108
108
  return _concatInstanceProperty(_context2 = _concatInstanceProperty(_context3 = _concatInstanceProperty(_context4 = "rgba(".concat(colorValue === null || colorValue === void 0 ? void 0 : colorValue.red, ", ")).call(_context4, colorValue === null || colorValue === void 0 ? void 0 : colorValue.green, ", ")).call(_context3, colorValue === null || colorValue === void 0 ? void 0 : colorValue.blue, ", ")).call(_context2, colorValue === null || colorValue === void 0 ? void 0 : colorValue.alpha, ")");
109
109
  }, []);
110
110
  return ___EmotionJSX(Box, fieldContainerProps, label && ___EmotionJSX(Label, fieldLabelProps), ___EmotionJSX(Button, _extends({
111
+ "aria-label": "Select color",
111
112
  bg: getRgbaFromState(state),
112
113
  onPress: handleButtonPress,
113
114
  ref: triggerRef,
@@ -83,7 +83,7 @@ var IconButton = /*#__PURE__*/forwardRef(function (props, ref) {
83
83
  tabIndex: 0,
84
84
  ref: buttonRef,
85
85
  className: classNames,
86
- "aria-label": ariaLabel || 'Icon Button',
86
+ "aria-label": ariaLabel,
87
87
  sx: chipBg && isHovered && {
88
88
  'path': {
89
89
  fill: chipBg
@@ -17,7 +17,8 @@ var Icon = function Icon(props) {
17
17
  var testId = 'test-button';
18
18
  var defaultProps = {
19
19
  'data-testid': testId,
20
- icon: Icon
20
+ icon: Icon,
21
+ 'aria-label': 'Create'
21
22
  };
22
23
 
23
24
  var getComponent = function getComponent() {
@@ -115,10 +116,8 @@ test('tooltip is not shown on hover or focus when prop is not passed', function
115
116
  expect(screen.queryByRole('tooltip')).not.toBeInTheDocument();
116
117
  });
117
118
  test('the button should be getting aria label attribute', function () {
118
- var testLabel = 'test label';
119
- getComponent({
120
- 'aria-label': testLabel
121
- });
119
+ var testLabel = defaultProps['aria-label'];
120
+ getComponent();
122
121
  expect(screen.getByLabelText(testLabel)).toBeInTheDocument();
123
122
  });
124
123
  test('show button isDisabled status', function () {
@@ -92,7 +92,8 @@ var ImagePreviewButton = /*#__PURE__*/forwardRef(function (props, ref) {
92
92
  ref: buttonRef,
93
93
  variant: "imageUpload",
94
94
  sx: widthHeightSx,
95
- "data-testid": "image-preview-button"
95
+ "data-testid": "image-preview-button",
96
+ "aria-label": "Image preview"
96
97
  }, mergeProps(focusProps, others)), previewImage && isImageType ? imagePreview : noImagePreview, isLoading && loadingPreview, (isHovered || isFocusVisible) && !isLoading && hoveredPreview));
97
98
  });
98
99
  ImagePreviewButton.propTypes = {
@@ -24,7 +24,6 @@ import { useCollator } from '@react-aria/i18n';
24
24
  import { ListLayout } from '@react-stately/layout';
25
25
  import { ListBoxContext } from './ListBoxContext';
26
26
  import { Option } from './index.js';
27
- import { useAriaLabelWarning } from '../../hooks';
28
27
  import { isIterableProp } from '../../utils/devUtils/props/isIterable';
29
28
  import Loader from '../Loader';
30
29
  import ListBoxSection from './ListBoxSection';
@@ -77,13 +76,12 @@ var ListBox = /*#__PURE__*/forwardRef(function (props, ref) {
77
76
  selectedKeys = props.selectedKeys,
78
77
  selectionMode = props.selectionMode,
79
78
  state = props.state,
79
+ ariaLabel = props['aria-label'],
80
80
  ariaLabelledby = props['aria-labelledby'],
81
81
  ariaDescribedby = props['aria-describedby'],
82
82
  ariaDetails = props['aria-details'],
83
- others = _objectWithoutProperties(props, ["defaultSelectedKeys", "disabledKeys", "hasAutoFocus", "hasFocusWrap", "hasNoEmptySelection", "hasVirtualFocus", "id", "isLoading", "isFocusedOnHover", "isSelectedOnPressUp", "isVirtualized", "items", "keyboardDelegate", "label", "onLoadMore", "onScroll", "onSelectionChange", "renderEmptyState", "selectedKeys", "selectionMode", "state", "aria-labelledby", "aria-describedby", "aria-details"]);
83
+ others = _objectWithoutProperties(props, ["defaultSelectedKeys", "disabledKeys", "hasAutoFocus", "hasFocusWrap", "hasNoEmptySelection", "hasVirtualFocus", "id", "isLoading", "isFocusedOnHover", "isSelectedOnPressUp", "isVirtualized", "items", "keyboardDelegate", "label", "onLoadMore", "onScroll", "onSelectionChange", "renderEmptyState", "selectedKeys", "selectionMode", "state", "aria-label", "aria-labelledby", "aria-describedby", "aria-details"]);
84
84
 
85
- var ariaLabel = props['aria-label'];
86
- useAriaLabelWarning('ListBox', ariaLabel);
87
85
  var focusStrategy = state.focusStrategy; // Object matching React Aria API with all options
88
86
 
89
87
  var listBoxOptions = {
@@ -107,7 +105,7 @@ var ListBox = /*#__PURE__*/forwardRef(function (props, ref) {
107
105
  shouldFocusWrap: hasFocusWrap,
108
106
  shouldSelectOnPressUp: isSelectedOnPressUp,
109
107
  shouldUseVirtualFocus: hasVirtualFocus,
110
- 'aria-label': ariaLabel || 'ListBox',
108
+ 'aria-label': ariaLabel,
111
109
  'aria-labelledby': ariaLabelledby,
112
110
  'aria-describedby': ariaDescribedby,
113
111
  'aria-details': ariaDetails
@@ -29,11 +29,13 @@ var itemsWithSections = [{
29
29
  }];
30
30
  var defaultProps = {
31
31
  'data-testid': testId,
32
+ 'aria-label': 'listbox',
32
33
  'aria-labelledby': 'label',
33
34
  items: items
34
35
  };
35
36
  var defaultWithSectionsProps = {
36
37
  'data-testid': testId,
38
+ 'aria-label': 'listbox',
37
39
  'aria-labelledby': 'label',
38
40
  items: itemsWithSections
39
41
  };
@@ -311,7 +311,8 @@ var MultivaluesField = /*#__PURE__*/forwardRef(function (props, ref) {
311
311
  hasAutoFocus: hasAutoFocus,
312
312
  hasVirtualFocus: true,
313
313
  hasNoEmptySelection: true,
314
- state: state
314
+ state: state,
315
+ "aria-label": "List of options"
315
316
  })), ___EmotionJSX(DismissButton, {
316
317
  onDismiss: close
317
318
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pingux/astro",
3
- "version": "1.1.0-alpha.4",
3
+ "version": "1.1.0-alpha.5",
4
4
  "description": "PingUX themeable React component library",
5
5
  "author": "uxdev@pingidentity.com",
6
6
  "license": "Apache-2.0",