@pingux/astro 2.0.3-alpha.3 → 2.0.3-alpha.4
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/lib/cjs/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.js +2 -1
- package/lib/cjs/components/ListBox/Option.js +7 -3
- package/lib/cjs/components/MultivaluesField/MultivaluesField.stories.js +21 -11
- package/lib/cjs/components/TooltipTrigger/TooltipTrigger.stories.js +3 -1
- package/lib/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.js +2 -1
- package/lib/components/ListBox/Option.js +7 -3
- package/lib/components/MultivaluesField/MultivaluesField.stories.js +21 -11
- package/lib/components/TooltipTrigger/TooltipTrigger.stories.js +3 -1
- package/package.json +1 -1
@@ -233,7 +233,8 @@ var EnvironmentBreadcrumb = /*#__PURE__*/(0, _react.forwardRef)(function (props,
|
|
233
233
|
containerProps: {
|
234
234
|
// this one is needed to cancel default scrollBox items behavior
|
235
235
|
sx: {
|
236
|
-
overflow: 'visible'
|
236
|
+
overflow: 'visible',
|
237
|
+
padding: '3px'
|
237
238
|
}
|
238
239
|
},
|
239
240
|
onChange: setSearchValue
|
@@ -40,7 +40,8 @@ var Option = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
40
40
|
others = (0, _objectWithoutProperties2["default"])(props, _excluded);
|
41
41
|
var key = item.key,
|
42
42
|
itemProps = item.props,
|
43
|
-
rendered = item.rendered
|
43
|
+
rendered = item.rendered,
|
44
|
+
ariaLabel = item['aria-label'];
|
44
45
|
var state = (0, _react.useContext)(_ListBoxContext.ListBoxContext);
|
45
46
|
var isSeparator = itemProps.isSeparator,
|
46
47
|
dataId = itemProps['data-id'];
|
@@ -87,7 +88,9 @@ var Option = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
87
88
|
"data-id": dataId,
|
88
89
|
className: classNames,
|
89
90
|
onPointerOver: setFocusOnHover
|
90
|
-
}, optionProps, others
|
91
|
+
}, optionProps, others, {
|
92
|
+
"aria-label": ariaLabel
|
93
|
+
}), isSelected && (0, _react2.jsx)(_Icon["default"], {
|
91
94
|
icon: _CircleSmallIcon["default"]
|
92
95
|
}), rendered);
|
93
96
|
});
|
@@ -99,7 +102,8 @@ Option.propTypes = {
|
|
99
102
|
'data-id': _propTypes["default"].string,
|
100
103
|
isSeparator: _propTypes["default"].bool
|
101
104
|
}),
|
102
|
-
rendered: _propTypes["default"].node
|
105
|
+
rendered: _propTypes["default"].node,
|
106
|
+
'aria-label': _propTypes["default"].string
|
103
107
|
}),
|
104
108
|
state: _propTypes["default"].shape({
|
105
109
|
disabledKeys: _isIterable.isIterableProp,
|
@@ -295,7 +295,8 @@ var Default = function Default(args) {
|
|
295
295
|
}), function (item) {
|
296
296
|
return (0, _react2.jsx)(_index.Item, {
|
297
297
|
key: item.key,
|
298
|
-
"data-id": item.name
|
298
|
+
"data-id": item.name,
|
299
|
+
"aria-label": item.name
|
299
300
|
}, item.name);
|
300
301
|
}));
|
301
302
|
};
|
@@ -321,7 +322,8 @@ var Uncontrolled = function Uncontrolled(args) {
|
|
321
322
|
}), function (item) {
|
322
323
|
return (0, _react2.jsx)(_index.Item, {
|
323
324
|
key: item.key,
|
324
|
-
"data-id": item.name
|
325
|
+
"data-id": item.name,
|
326
|
+
"aria-label": item.name
|
325
327
|
}, item.name);
|
326
328
|
}));
|
327
329
|
};
|
@@ -353,7 +355,8 @@ var Controlled = function Controlled(args) {
|
|
353
355
|
}), function (item) {
|
354
356
|
return (0, _react2.jsx)(_index.Item, {
|
355
357
|
key: item.key,
|
356
|
-
"data-id": item.name
|
358
|
+
"data-id": item.name,
|
359
|
+
"aria-label": item.name
|
357
360
|
}, item.name);
|
358
361
|
}));
|
359
362
|
};
|
@@ -379,7 +382,8 @@ var Error = function Error(args) {
|
|
379
382
|
}), function (item) {
|
380
383
|
return (0, _react2.jsx)(_index.Item, {
|
381
384
|
key: item.key,
|
382
|
-
"data-id": item.name
|
385
|
+
"data-id": item.name,
|
386
|
+
"aria-label": item.name
|
383
387
|
}, item.name);
|
384
388
|
}));
|
385
389
|
};
|
@@ -405,7 +409,8 @@ var ReadOnlyField = function ReadOnlyField(args) {
|
|
405
409
|
}), function (item) {
|
406
410
|
return (0, _react2.jsx)(_index.Item, {
|
407
411
|
key: item.key,
|
408
|
-
"data-id": item.name
|
412
|
+
"data-id": item.name,
|
413
|
+
"aria-label": item.name
|
409
414
|
}, item.name);
|
410
415
|
}));
|
411
416
|
};
|
@@ -431,7 +436,8 @@ var ReadOnlyValues = function ReadOnlyValues(args) {
|
|
431
436
|
}), function (item) {
|
432
437
|
return (0, _react2.jsx)(_index.Item, {
|
433
438
|
key: item.key,
|
434
|
-
"data-id": item.name
|
439
|
+
"data-id": item.name,
|
440
|
+
"aria-label": item.name
|
435
441
|
}, item.name);
|
436
442
|
}));
|
437
443
|
};
|
@@ -457,7 +463,8 @@ var DisabledKeys = function DisabledKeys(args) {
|
|
457
463
|
}), function (item) {
|
458
464
|
return (0, _react2.jsx)(_index.Item, {
|
459
465
|
key: item.key,
|
460
|
-
"data-id": item.name
|
466
|
+
"data-id": item.name,
|
467
|
+
"aria-label": item.name
|
461
468
|
}, item.name);
|
462
469
|
}));
|
463
470
|
};
|
@@ -483,7 +490,8 @@ var CustomValues = function CustomValues(args) {
|
|
483
490
|
}), function (item) {
|
484
491
|
return (0, _react2.jsx)(_index.Item, {
|
485
492
|
key: item.key,
|
486
|
-
"data-id": item.name
|
493
|
+
"data-id": item.name,
|
494
|
+
"aria-label": item.name
|
487
495
|
}, item.name);
|
488
496
|
}));
|
489
497
|
};
|
@@ -513,7 +521,8 @@ var IconSlotsInBadge = function IconSlotsInBadge(args) {
|
|
513
521
|
}), function (item) {
|
514
522
|
return (0, _react2.jsx)(_index.Item, {
|
515
523
|
key: item.key,
|
516
|
-
"data-id": item.name
|
524
|
+
"data-id": item.name,
|
525
|
+
"aria-label": item.name
|
517
526
|
}, item.name);
|
518
527
|
}));
|
519
528
|
};
|
@@ -536,7 +545,7 @@ var CustomSize = function CustomSize(args) {
|
|
536
545
|
}, (0, _react2.jsx)(_index.Box, {
|
537
546
|
width: 300
|
538
547
|
}, (0, _react2.jsx)(_index.OverlayProvider
|
539
|
-
// note: spacing for demo purpose only so that the select list renders in the
|
548
|
+
// note: spacing for demo purpose only so that the select list renders in the right place
|
540
549
|
, {
|
541
550
|
style: setOverlayStyle(direction, isOpen, '25%', '25%', '75%')
|
542
551
|
}, (0, _react2.jsx)(_index.MultivaluesField, (0, _extends2["default"])({
|
@@ -546,7 +555,8 @@ var CustomSize = function CustomSize(args) {
|
|
546
555
|
}), function (item) {
|
547
556
|
return (0, _react2.jsx)(_index.Item, {
|
548
557
|
key: item.key,
|
549
|
-
"data-id": item.name
|
558
|
+
"data-id": item.name,
|
559
|
+
"aria-label": item.name
|
550
560
|
}, item.name);
|
551
561
|
}))));
|
552
562
|
};
|
@@ -61,7 +61,9 @@ var Disabled = function Disabled() {
|
|
61
61
|
return (0, _react2.jsx)(_index.TooltipTrigger, {
|
62
62
|
delay: 0,
|
63
63
|
isDisabled: true
|
64
|
-
}, (0, _react2.jsx)(_index.IconButton,
|
64
|
+
}, (0, _react2.jsx)(_index.IconButton, {
|
65
|
+
"aria-label": "Earth Icon"
|
66
|
+
}, (0, _react2.jsx)(_index.Icon, {
|
65
67
|
icon: _EarthIcon["default"]
|
66
68
|
})), (0, _react2.jsx)(_index.Tooltip, null, "Hello World"));
|
67
69
|
};
|
@@ -219,7 +219,8 @@ var EnvironmentBreadcrumb = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
219
219
|
containerProps: {
|
220
220
|
// this one is needed to cancel default scrollBox items behavior
|
221
221
|
sx: {
|
222
|
-
overflow: 'visible'
|
222
|
+
overflow: 'visible',
|
223
|
+
padding: '3px'
|
223
224
|
}
|
224
225
|
},
|
225
226
|
onChange: setSearchValue
|
@@ -29,7 +29,8 @@ var Option = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
29
29
|
others = _objectWithoutProperties(props, _excluded);
|
30
30
|
var key = item.key,
|
31
31
|
itemProps = item.props,
|
32
|
-
rendered = item.rendered
|
32
|
+
rendered = item.rendered,
|
33
|
+
ariaLabel = item['aria-label'];
|
33
34
|
var state = useContext(ListBoxContext);
|
34
35
|
var isSeparator = itemProps.isSeparator,
|
35
36
|
dataId = itemProps['data-id'];
|
@@ -76,7 +77,9 @@ var Option = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
76
77
|
"data-id": dataId,
|
77
78
|
className: classNames,
|
78
79
|
onPointerOver: setFocusOnHover
|
79
|
-
}, optionProps, others
|
80
|
+
}, optionProps, others, {
|
81
|
+
"aria-label": ariaLabel
|
82
|
+
}), isSelected && ___EmotionJSX(Icon, {
|
80
83
|
icon: CircleSmallIcon
|
81
84
|
}), rendered);
|
82
85
|
});
|
@@ -88,7 +91,8 @@ Option.propTypes = {
|
|
88
91
|
'data-id': PropTypes.string,
|
89
92
|
isSeparator: PropTypes.bool
|
90
93
|
}),
|
91
|
-
rendered: PropTypes.node
|
94
|
+
rendered: PropTypes.node,
|
95
|
+
'aria-label': PropTypes.string
|
92
96
|
}),
|
93
97
|
state: PropTypes.shape({
|
94
98
|
disabledKeys: isIterableProp,
|
@@ -283,7 +283,8 @@ export var Default = function Default(args) {
|
|
283
283
|
}), function (item) {
|
284
284
|
return ___EmotionJSX(Item, {
|
285
285
|
key: item.key,
|
286
|
-
"data-id": item.name
|
286
|
+
"data-id": item.name,
|
287
|
+
"aria-label": item.name
|
287
288
|
}, item.name);
|
288
289
|
}));
|
289
290
|
};
|
@@ -308,7 +309,8 @@ export var Uncontrolled = function Uncontrolled(args) {
|
|
308
309
|
}), function (item) {
|
309
310
|
return ___EmotionJSX(Item, {
|
310
311
|
key: item.key,
|
311
|
-
"data-id": item.name
|
312
|
+
"data-id": item.name,
|
313
|
+
"aria-label": item.name
|
312
314
|
}, item.name);
|
313
315
|
}));
|
314
316
|
};
|
@@ -339,7 +341,8 @@ export var Controlled = function Controlled(args) {
|
|
339
341
|
}), function (item) {
|
340
342
|
return ___EmotionJSX(Item, {
|
341
343
|
key: item.key,
|
342
|
-
"data-id": item.name
|
344
|
+
"data-id": item.name,
|
345
|
+
"aria-label": item.name
|
343
346
|
}, item.name);
|
344
347
|
}));
|
345
348
|
};
|
@@ -364,7 +367,8 @@ export var Error = function Error(args) {
|
|
364
367
|
}), function (item) {
|
365
368
|
return ___EmotionJSX(Item, {
|
366
369
|
key: item.key,
|
367
|
-
"data-id": item.name
|
370
|
+
"data-id": item.name,
|
371
|
+
"aria-label": item.name
|
368
372
|
}, item.name);
|
369
373
|
}));
|
370
374
|
};
|
@@ -389,7 +393,8 @@ export var ReadOnlyField = function ReadOnlyField(args) {
|
|
389
393
|
}), function (item) {
|
390
394
|
return ___EmotionJSX(Item, {
|
391
395
|
key: item.key,
|
392
|
-
"data-id": item.name
|
396
|
+
"data-id": item.name,
|
397
|
+
"aria-label": item.name
|
393
398
|
}, item.name);
|
394
399
|
}));
|
395
400
|
};
|
@@ -414,7 +419,8 @@ export var ReadOnlyValues = function ReadOnlyValues(args) {
|
|
414
419
|
}), function (item) {
|
415
420
|
return ___EmotionJSX(Item, {
|
416
421
|
key: item.key,
|
417
|
-
"data-id": item.name
|
422
|
+
"data-id": item.name,
|
423
|
+
"aria-label": item.name
|
418
424
|
}, item.name);
|
419
425
|
}));
|
420
426
|
};
|
@@ -439,7 +445,8 @@ export var DisabledKeys = function DisabledKeys(args) {
|
|
439
445
|
}), function (item) {
|
440
446
|
return ___EmotionJSX(Item, {
|
441
447
|
key: item.key,
|
442
|
-
"data-id": item.name
|
448
|
+
"data-id": item.name,
|
449
|
+
"aria-label": item.name
|
443
450
|
}, item.name);
|
444
451
|
}));
|
445
452
|
};
|
@@ -464,7 +471,8 @@ export var CustomValues = function CustomValues(args) {
|
|
464
471
|
}), function (item) {
|
465
472
|
return ___EmotionJSX(Item, {
|
466
473
|
key: item.key,
|
467
|
-
"data-id": item.name
|
474
|
+
"data-id": item.name,
|
475
|
+
"aria-label": item.name
|
468
476
|
}, item.name);
|
469
477
|
}));
|
470
478
|
};
|
@@ -493,7 +501,8 @@ export var IconSlotsInBadge = function IconSlotsInBadge(args) {
|
|
493
501
|
}), function (item) {
|
494
502
|
return ___EmotionJSX(Item, {
|
495
503
|
key: item.key,
|
496
|
-
"data-id": item.name
|
504
|
+
"data-id": item.name,
|
505
|
+
"aria-label": item.name
|
497
506
|
}, item.name);
|
498
507
|
}));
|
499
508
|
};
|
@@ -515,7 +524,7 @@ export var CustomSize = function CustomSize(args) {
|
|
515
524
|
}, ___EmotionJSX(Box, {
|
516
525
|
width: 300
|
517
526
|
}, ___EmotionJSX(OverlayProvider
|
518
|
-
// note: spacing for demo purpose only so that the select list renders in the
|
527
|
+
// note: spacing for demo purpose only so that the select list renders in the right place
|
519
528
|
, {
|
520
529
|
style: setOverlayStyle(direction, isOpen, '25%', '25%', '75%')
|
521
530
|
}, ___EmotionJSX(MultivaluesField, _extends({
|
@@ -525,7 +534,8 @@ export var CustomSize = function CustomSize(args) {
|
|
525
534
|
}), function (item) {
|
526
535
|
return ___EmotionJSX(Item, {
|
527
536
|
key: item.key,
|
528
|
-
"data-id": item.name
|
537
|
+
"data-id": item.name,
|
538
|
+
"aria-label": item.name
|
529
539
|
}, item.name);
|
530
540
|
}))));
|
531
541
|
};
|
@@ -45,7 +45,9 @@ export var Disabled = function Disabled() {
|
|
45
45
|
return ___EmotionJSX(TooltipTrigger, {
|
46
46
|
delay: 0,
|
47
47
|
isDisabled: true
|
48
|
-
}, ___EmotionJSX(IconButton,
|
48
|
+
}, ___EmotionJSX(IconButton, {
|
49
|
+
"aria-label": "Earth Icon"
|
50
|
+
}, ___EmotionJSX(Icon, {
|
49
51
|
icon: Earth
|
50
52
|
})), ___EmotionJSX(Tooltip, null, "Hello World"));
|
51
53
|
};
|