@pingux/astro 2.15.0-alpha.0 → 2.15.0-alpha.3
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.
@@ -49,9 +49,9 @@ var _excluded = ["defaultSelectedKeys", "direction", "disabledKeys", "containerP
|
|
49
49
|
function _getRequireWildcardCache(nodeInterop) { if (typeof _WeakMap !== "function") return null; var cacheBabelInterop = new _WeakMap(); var cacheNodeInterop = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
50
50
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? _Object$getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { _Object$defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
51
51
|
function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty2(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
52
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var
|
52
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context11, _context12; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context11 = ownKeys(Object(source), !0)).call(_context11, function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context12 = ownKeys(Object(source))).call(_context12, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
|
53
53
|
var MultivaluesField = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
54
|
-
var _context8,
|
54
|
+
var _context8, _listBoxRef$current;
|
55
55
|
var defaultSelectedKeys = props.defaultSelectedKeys,
|
56
56
|
direction = props.direction,
|
57
57
|
_props$disabledKeys = props.disabledKeys,
|
@@ -337,21 +337,20 @@ var MultivaluesField = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref)
|
|
337
337
|
return el.key === key;
|
338
338
|
});
|
339
339
|
if (item) {
|
340
|
-
return (0, _react2.jsx)(_.
|
341
|
-
as: "li",
|
342
|
-
key: "li ".concat(item.key)
|
343
|
-
}, (0, _react2.jsx)(_.Badge, {
|
340
|
+
return (0, _react2.jsx)(_.Badge, {
|
344
341
|
key: item.key,
|
345
|
-
role: "presentation",
|
346
342
|
label: item.name,
|
347
343
|
variant: "readOnlyBadge",
|
348
344
|
bg: "white",
|
349
345
|
textProps: {
|
350
346
|
sx: {
|
351
|
-
color: 'text.primary'
|
347
|
+
color: 'text.primary',
|
348
|
+
tabIndex: '-1'
|
352
349
|
}
|
353
|
-
}
|
354
|
-
|
350
|
+
},
|
351
|
+
as: "li",
|
352
|
+
tabIndex: 0
|
353
|
+
});
|
355
354
|
}
|
356
355
|
return null;
|
357
356
|
});
|
@@ -411,7 +410,7 @@ var MultivaluesField = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref)
|
|
411
410
|
}));
|
412
411
|
var visuallyHidden = (0, _react2.jsx)(_visuallyHidden.VisuallyHidden, {
|
413
412
|
id: "selectedKeysState"
|
414
|
-
}, "Selected options:", (0,
|
413
|
+
}, "Selected options:", (0, _from["default"])(selectionManager.selectedKeys).join(' '));
|
415
414
|
|
416
415
|
// the reason we are using two different visually hiddens, rather than one that updates it's value
|
417
416
|
// is because there are tests that break if an empty visually hidden is rendered in the TextField
|
@@ -11,7 +11,7 @@ import _slicedToArray from "@babel/runtime-corejs3/helpers/esm/slicedToArray";
|
|
11
11
|
import _objectWithoutProperties from "@babel/runtime-corejs3/helpers/esm/objectWithoutProperties";
|
12
12
|
var _excluded = ["defaultSelectedKeys", "direction", "disabledKeys", "containerProps", "hasAutoFocus", "hasNoStatusIndicator", "helperText", "inputProps", "isDisabled", "isNotFlippable", "isReadOnly", "isRequired", "items", "label", "mode", "onBlur", "onFocus", "onInputChange", "onKeyDown", "onKeyUp", "onOpenChange", "onSelectionChange", "placeholder", "readOnlyKeys", "selectedKeys", "scrollBoxProps", "status"];
|
13
13
|
function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
14
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var
|
14
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context11, _context12; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context11 = ownKeys(Object(source), !0)).call(_context11, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context12 = ownKeys(Object(source))).call(_context12, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
|
15
15
|
import _filterInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/filter";
|
16
16
|
import _includesInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/includes";
|
17
17
|
import _Array$from from "@babel/runtime-corejs3/core-js-stable/array/from";
|
@@ -39,7 +39,7 @@ import { statusDefaultProp, statusPropTypes } from '../../utils/docUtils/statusP
|
|
39
39
|
import ListBox from '../ListBox';
|
40
40
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
41
41
|
var MultivaluesField = /*#__PURE__*/forwardRef(function (props, ref) {
|
42
|
-
var _context8,
|
42
|
+
var _context8, _listBoxRef$current;
|
43
43
|
var defaultSelectedKeys = props.defaultSelectedKeys,
|
44
44
|
direction = props.direction,
|
45
45
|
_props$disabledKeys = props.disabledKeys,
|
@@ -325,21 +325,20 @@ var MultivaluesField = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
325
325
|
return el.key === key;
|
326
326
|
});
|
327
327
|
if (item) {
|
328
|
-
return ___EmotionJSX(
|
329
|
-
as: "li",
|
330
|
-
key: "li ".concat(item.key)
|
331
|
-
}, ___EmotionJSX(Badge, {
|
328
|
+
return ___EmotionJSX(Badge, {
|
332
329
|
key: item.key,
|
333
|
-
role: "presentation",
|
334
330
|
label: item.name,
|
335
331
|
variant: "readOnlyBadge",
|
336
332
|
bg: "white",
|
337
333
|
textProps: {
|
338
334
|
sx: {
|
339
|
-
color: 'text.primary'
|
335
|
+
color: 'text.primary',
|
336
|
+
tabIndex: '-1'
|
340
337
|
}
|
341
|
-
}
|
342
|
-
|
338
|
+
},
|
339
|
+
as: "li",
|
340
|
+
tabIndex: 0
|
341
|
+
});
|
343
342
|
}
|
344
343
|
return null;
|
345
344
|
});
|
@@ -399,7 +398,7 @@ var MultivaluesField = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
399
398
|
}));
|
400
399
|
var visuallyHidden = ___EmotionJSX(VisuallyHidden, {
|
401
400
|
id: "selectedKeysState"
|
402
|
-
}, "Selected options:",
|
401
|
+
}, "Selected options:", _Array$from(selectionManager.selectedKeys).join(' '));
|
403
402
|
|
404
403
|
// the reason we are using two different visually hiddens, rather than one that updates it's value
|
405
404
|
// is because there are tests that break if an empty visually hidden is rendered in the TextField
|