@pingux/astro 2.130.0 → 2.130.1-alpha.1
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.
@@ -293,6 +293,7 @@ var WithNoneOption = function WithNoneOption(args) {
|
|
293
293
|
exports.WithNoneOption = WithNoneOption;
|
294
294
|
var WithSlots = function WithSlots() {
|
295
295
|
return (0, _react2.jsx)(_index.SelectField, {
|
296
|
+
"aria-label": "with-slots",
|
296
297
|
slots: {
|
297
298
|
leftOfData: (0, _react2.jsx)(_index.Icon, {
|
298
299
|
icon: _CalendarRangeIcon["default"],
|
@@ -65,7 +65,9 @@ var useSelectField = function useSelectField(props, ref) {
|
|
65
65
|
// We use falsy booleans as defaults, but React Aria has this as true by default so we need to
|
66
66
|
// negate this.
|
67
67
|
var shouldFlip = !isNotFlippable;
|
68
|
+
var ariaLabel = props['aria-label'];
|
68
69
|
var selectProps = _objectSpread(_objectSpread({
|
70
|
+
'aria-label': ariaLabel,
|
69
71
|
defaultSelectedKey: defaultSelectedKey,
|
70
72
|
defaultText: defaultText,
|
71
73
|
disabledKeys: disabledKeys,
|
@@ -275,6 +275,7 @@ export var WithNoneOption = function WithNoneOption(args) {
|
|
275
275
|
};
|
276
276
|
export var WithSlots = function WithSlots() {
|
277
277
|
return ___EmotionJSX(SelectField, {
|
278
|
+
"aria-label": "with-slots",
|
278
279
|
slots: {
|
279
280
|
leftOfData: ___EmotionJSX(Icon, {
|
280
281
|
icon: CalendarRangeIcon,
|
@@ -54,7 +54,9 @@ var useSelectField = function useSelectField(props, ref) {
|
|
54
54
|
// We use falsy booleans as defaults, but React Aria has this as true by default so we need to
|
55
55
|
// negate this.
|
56
56
|
var shouldFlip = !isNotFlippable;
|
57
|
+
var ariaLabel = props['aria-label'];
|
57
58
|
var selectProps = _objectSpread(_objectSpread({
|
59
|
+
'aria-label': ariaLabel,
|
58
60
|
defaultSelectedKey: defaultSelectedKey,
|
59
61
|
defaultText: defaultText,
|
60
62
|
disabledKeys: disabledKeys,
|