@storybook/addon-a11y 6.5.0-alpha.21 → 6.5.0-alpha.25
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/dist/cjs/a11yHighlight.js +2 -2
- package/dist/cjs/a11yRunner.js +7 -7
- package/dist/cjs/components/A11YPanel.js +9 -7
- package/dist/cjs/components/A11yContext.js +16 -12
- package/dist/cjs/components/ColorFilters.js +5 -5
- package/dist/cjs/components/Report/Elements.js +5 -3
- package/dist/cjs/components/Report/HighlightToggle.js +7 -5
- package/dist/cjs/components/Report/Item.js +8 -6
- package/dist/cjs/components/Report/index.js +5 -5
- package/dist/cjs/components/Tabs.js +7 -7
- package/dist/cjs/components/VisionSimulator.js +11 -9
- package/dist/cjs/constants.js +1 -1
- package/dist/cjs/highlight.js +1 -1
- package/dist/cjs/index.js +2 -0
- package/dist/cjs/params.js +5 -1
- package/dist/esm/a11yHighlight.js +2 -2
- package/dist/esm/a11yRunner.js +1 -1
- package/dist/esm/components/A11YPanel.js +3 -2
- package/dist/esm/components/A11yContext.js +16 -13
- package/dist/esm/components/Report/Elements.js +3 -2
- package/dist/esm/components/Report/HighlightToggle.js +4 -3
- package/dist/esm/components/Report/Item.js +3 -2
- package/dist/esm/components/Tabs.js +1 -0
- package/dist/esm/components/VisionSimulator.js +5 -4
- package/dist/esm/params.js +1 -0
- package/dist/modern/components/A11yContext.js +4 -2
- package/dist/modern/params.js +1 -0
- package/package.json +9 -9
- package/dist/cjs/typings.d.js +0 -1
- package/dist/esm/typings.d.js +0 -0
- package/dist/modern/typings.d.js +0 -0
|
@@ -4,11 +4,11 @@ require("core-js/modules/es.array.from.js");
|
|
|
4
4
|
|
|
5
5
|
require("core-js/modules/es.string.iterator.js");
|
|
6
6
|
|
|
7
|
-
require("core-js/modules/es.
|
|
7
|
+
require("core-js/modules/es.array.iterator.js");
|
|
8
8
|
|
|
9
9
|
require("core-js/modules/es.object.to-string.js");
|
|
10
10
|
|
|
11
|
-
require("core-js/modules/es.
|
|
11
|
+
require("core-js/modules/es.set.js");
|
|
12
12
|
|
|
13
13
|
require("core-js/modules/web.dom-collections.iterator.js");
|
|
14
14
|
|
package/dist/cjs/a11yRunner.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
4
|
|
|
5
|
-
require("core-js/modules/es.
|
|
5
|
+
require("core-js/modules/es.array.iterator.js");
|
|
6
6
|
|
|
7
7
|
require("core-js/modules/es.string.iterator.js");
|
|
8
8
|
|
|
9
|
-
require("core-js/modules/es.
|
|
9
|
+
require("core-js/modules/es.weak-map.js");
|
|
10
10
|
|
|
11
11
|
require("core-js/modules/web.dom-collections.iterator.js");
|
|
12
12
|
|
|
@@ -18,10 +18,10 @@ require("core-js/modules/es.symbol.description.js");
|
|
|
18
18
|
|
|
19
19
|
require("core-js/modules/es.symbol.iterator.js");
|
|
20
20
|
|
|
21
|
-
require("core-js/modules/es.promise.js");
|
|
22
|
-
|
|
23
21
|
require("core-js/modules/es.object.to-string.js");
|
|
24
22
|
|
|
23
|
+
require("core-js/modules/es.promise.js");
|
|
24
|
+
|
|
25
25
|
require("regenerator-runtime/runtime.js");
|
|
26
26
|
|
|
27
27
|
var _global = _interopRequireDefault(require("global"));
|
|
@@ -32,9 +32,9 @@ var _constants = require("./constants");
|
|
|
32
32
|
|
|
33
33
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
34
34
|
|
|
35
|
-
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var
|
|
35
|
+
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); }
|
|
36
36
|
|
|
37
|
-
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (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; }
|
|
37
|
+
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; }
|
|
38
38
|
|
|
39
39
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
40
40
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
4
|
|
|
5
5
|
require("core-js/modules/es.symbol.js");
|
|
6
6
|
|
|
@@ -10,10 +10,10 @@ require("core-js/modules/es.object.to-string.js");
|
|
|
10
10
|
|
|
11
11
|
require("core-js/modules/es.symbol.iterator.js");
|
|
12
12
|
|
|
13
|
-
require("core-js/modules/es.string.iterator.js");
|
|
14
|
-
|
|
15
13
|
require("core-js/modules/es.array.iterator.js");
|
|
16
14
|
|
|
15
|
+
require("core-js/modules/es.string.iterator.js");
|
|
16
|
+
|
|
17
17
|
require("core-js/modules/web.dom-collections.iterator.js");
|
|
18
18
|
|
|
19
19
|
require("core-js/modules/es.array.slice.js");
|
|
@@ -22,6 +22,8 @@ require("core-js/modules/es.function.name.js");
|
|
|
22
22
|
|
|
23
23
|
require("core-js/modules/es.array.from.js");
|
|
24
24
|
|
|
25
|
+
require("core-js/modules/es.regexp.exec.js");
|
|
26
|
+
|
|
25
27
|
require("core-js/modules/es.weak-map.js");
|
|
26
28
|
|
|
27
29
|
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
@@ -29,7 +31,7 @@ require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
|
29
31
|
Object.defineProperty(exports, "__esModule", {
|
|
30
32
|
value: true
|
|
31
33
|
});
|
|
32
|
-
exports.
|
|
34
|
+
exports.RuleType = exports.A11YPanel = void 0;
|
|
33
35
|
|
|
34
36
|
var _react = _interopRequireWildcard(require("react"));
|
|
35
37
|
|
|
@@ -47,9 +49,9 @@ var _A11yContext = require("./A11yContext");
|
|
|
47
49
|
|
|
48
50
|
var _constants = require("../constants");
|
|
49
51
|
|
|
50
|
-
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var
|
|
52
|
+
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); }
|
|
51
53
|
|
|
52
|
-
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (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; }
|
|
54
|
+
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; }
|
|
53
55
|
|
|
54
56
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
55
57
|
|
|
@@ -61,7 +63,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
61
63
|
|
|
62
64
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
63
65
|
|
|
64
|
-
function _iterableToArrayLimit(arr, i) {
|
|
66
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
65
67
|
|
|
66
68
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
67
69
|
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
require("core-js/modules/es.object.keys.js");
|
|
4
6
|
|
|
5
7
|
require("core-js/modules/es.symbol.js");
|
|
6
8
|
|
|
7
9
|
require("core-js/modules/es.symbol.description.js");
|
|
8
10
|
|
|
9
|
-
require("core-js/modules/es.object.to-string.js");
|
|
10
|
-
|
|
11
11
|
require("core-js/modules/es.symbol.iterator.js");
|
|
12
12
|
|
|
13
|
-
require("core-js/modules/es.string.iterator.js");
|
|
14
|
-
|
|
15
13
|
require("core-js/modules/es.array.iterator.js");
|
|
16
14
|
|
|
15
|
+
require("core-js/modules/es.string.iterator.js");
|
|
16
|
+
|
|
17
17
|
require("core-js/modules/web.dom-collections.iterator.js");
|
|
18
18
|
|
|
19
19
|
require("core-js/modules/es.array.slice.js");
|
|
@@ -22,6 +22,8 @@ require("core-js/modules/es.function.name.js");
|
|
|
22
22
|
|
|
23
23
|
require("core-js/modules/es.array.from.js");
|
|
24
24
|
|
|
25
|
+
require("core-js/modules/es.regexp.exec.js");
|
|
26
|
+
|
|
25
27
|
require("core-js/modules/es.object.assign.js");
|
|
26
28
|
|
|
27
29
|
require("core-js/modules/es.weak-map.js");
|
|
@@ -37,12 +39,12 @@ require("core-js/modules/es.array.concat.js");
|
|
|
37
39
|
|
|
38
40
|
require("core-js/modules/es.array.filter.js");
|
|
39
41
|
|
|
42
|
+
require("core-js/modules/es.object.to-string.js");
|
|
43
|
+
|
|
40
44
|
require("core-js/modules/es.array.includes.js");
|
|
41
45
|
|
|
42
46
|
require("core-js/modules/es.string.includes.js");
|
|
43
47
|
|
|
44
|
-
require("core-js/modules/es.object.keys.js");
|
|
45
|
-
|
|
46
48
|
var React = _interopRequireWildcard(require("react"));
|
|
47
49
|
|
|
48
50
|
var _theming = require("@storybook/theming");
|
|
@@ -53,9 +55,11 @@ var _coreEvents = require("@storybook/core-events");
|
|
|
53
55
|
|
|
54
56
|
var _constants = require("../constants");
|
|
55
57
|
|
|
56
|
-
|
|
58
|
+
var _excluded = ["active"];
|
|
59
|
+
|
|
60
|
+
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); }
|
|
57
61
|
|
|
58
|
-
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (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; }
|
|
62
|
+
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; }
|
|
59
63
|
|
|
60
64
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
61
65
|
|
|
@@ -65,7 +69,7 @@ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableTo
|
|
|
65
69
|
|
|
66
70
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
67
71
|
|
|
68
|
-
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator
|
|
72
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
69
73
|
|
|
70
74
|
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
71
75
|
|
|
@@ -77,7 +81,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
77
81
|
|
|
78
82
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
79
83
|
|
|
80
|
-
function _iterableToArrayLimit(arr, i) {
|
|
84
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
81
85
|
|
|
82
86
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
83
87
|
|
|
@@ -113,7 +117,7 @@ var A11yContextProvider = function A11yContextProvider(_ref) {
|
|
|
113
117
|
var _useChannel;
|
|
114
118
|
|
|
115
119
|
var active = _ref.active,
|
|
116
|
-
props = _objectWithoutProperties(_ref,
|
|
120
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
117
121
|
|
|
118
122
|
var _React$useState = React.useState(defaultResult),
|
|
119
123
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
4
|
|
|
5
|
-
require("core-js/modules/es.
|
|
5
|
+
require("core-js/modules/es.array.iterator.js");
|
|
6
6
|
|
|
7
7
|
require("core-js/modules/es.object.to-string.js");
|
|
8
8
|
|
|
9
9
|
require("core-js/modules/es.string.iterator.js");
|
|
10
10
|
|
|
11
|
-
require("core-js/modules/es.
|
|
11
|
+
require("core-js/modules/es.weak-map.js");
|
|
12
12
|
|
|
13
13
|
require("core-js/modules/web.dom-collections.iterator.js");
|
|
14
14
|
|
|
@@ -27,9 +27,9 @@ exports.Filters = void 0;
|
|
|
27
27
|
|
|
28
28
|
var React = _interopRequireWildcard(require("react"));
|
|
29
29
|
|
|
30
|
-
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var
|
|
30
|
+
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); }
|
|
31
31
|
|
|
32
|
-
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (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; }
|
|
32
|
+
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; }
|
|
33
33
|
|
|
34
34
|
var Filters = function Filters(props) {
|
|
35
35
|
return /*#__PURE__*/React.createElement("svg", props, /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("filter", {
|
|
@@ -8,10 +8,10 @@ require("core-js/modules/es.object.to-string.js");
|
|
|
8
8
|
|
|
9
9
|
require("core-js/modules/es.symbol.iterator.js");
|
|
10
10
|
|
|
11
|
-
require("core-js/modules/es.string.iterator.js");
|
|
12
|
-
|
|
13
11
|
require("core-js/modules/es.array.iterator.js");
|
|
14
12
|
|
|
13
|
+
require("core-js/modules/es.string.iterator.js");
|
|
14
|
+
|
|
15
15
|
require("core-js/modules/web.dom-collections.iterator.js");
|
|
16
16
|
|
|
17
17
|
require("core-js/modules/es.array.from.js");
|
|
@@ -20,6 +20,8 @@ require("core-js/modules/es.array.slice.js");
|
|
|
20
20
|
|
|
21
21
|
require("core-js/modules/es.function.name.js");
|
|
22
22
|
|
|
23
|
+
require("core-js/modules/es.regexp.exec.js");
|
|
24
|
+
|
|
23
25
|
Object.defineProperty(exports, "__esModule", {
|
|
24
26
|
value: true
|
|
25
27
|
});
|
|
@@ -45,7 +47,7 @@ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread n
|
|
|
45
47
|
|
|
46
48
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
47
49
|
|
|
48
|
-
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator
|
|
50
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
49
51
|
|
|
50
52
|
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
51
53
|
|
|
@@ -4,14 +4,12 @@ require("core-js/modules/es.symbol.js");
|
|
|
4
4
|
|
|
5
5
|
require("core-js/modules/es.symbol.description.js");
|
|
6
6
|
|
|
7
|
-
require("core-js/modules/es.object.to-string.js");
|
|
8
|
-
|
|
9
7
|
require("core-js/modules/es.symbol.iterator.js");
|
|
10
8
|
|
|
11
|
-
require("core-js/modules/es.string.iterator.js");
|
|
12
|
-
|
|
13
9
|
require("core-js/modules/es.array.iterator.js");
|
|
14
10
|
|
|
11
|
+
require("core-js/modules/es.string.iterator.js");
|
|
12
|
+
|
|
15
13
|
require("core-js/modules/web.dom-collections.iterator.js");
|
|
16
14
|
|
|
17
15
|
require("core-js/modules/es.array.slice.js");
|
|
@@ -20,6 +18,8 @@ require("core-js/modules/es.function.name.js");
|
|
|
20
18
|
|
|
21
19
|
require("core-js/modules/es.array.from.js");
|
|
22
20
|
|
|
21
|
+
require("core-js/modules/es.regexp.exec.js");
|
|
22
|
+
|
|
23
23
|
Object.defineProperty(exports, "__esModule", {
|
|
24
24
|
value: true
|
|
25
25
|
});
|
|
@@ -27,6 +27,8 @@ exports.default = void 0;
|
|
|
27
27
|
|
|
28
28
|
require("core-js/modules/es.array.filter.js");
|
|
29
29
|
|
|
30
|
+
require("core-js/modules/es.object.to-string.js");
|
|
31
|
+
|
|
30
32
|
require("core-js/modules/es.array.includes.js");
|
|
31
33
|
|
|
32
34
|
require("core-js/modules/es.string.includes.js");
|
|
@@ -49,7 +51,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
49
51
|
|
|
50
52
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
51
53
|
|
|
52
|
-
function _iterableToArrayLimit(arr, i) {
|
|
54
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
53
55
|
|
|
54
56
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
55
57
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
4
|
|
|
5
5
|
require("core-js/modules/es.symbol.js");
|
|
6
6
|
|
|
@@ -10,10 +10,10 @@ require("core-js/modules/es.object.to-string.js");
|
|
|
10
10
|
|
|
11
11
|
require("core-js/modules/es.symbol.iterator.js");
|
|
12
12
|
|
|
13
|
-
require("core-js/modules/es.string.iterator.js");
|
|
14
|
-
|
|
15
13
|
require("core-js/modules/es.array.iterator.js");
|
|
16
14
|
|
|
15
|
+
require("core-js/modules/es.string.iterator.js");
|
|
16
|
+
|
|
17
17
|
require("core-js/modules/web.dom-collections.iterator.js");
|
|
18
18
|
|
|
19
19
|
require("core-js/modules/es.array.slice.js");
|
|
@@ -22,6 +22,8 @@ require("core-js/modules/es.function.name.js");
|
|
|
22
22
|
|
|
23
23
|
require("core-js/modules/es.array.from.js");
|
|
24
24
|
|
|
25
|
+
require("core-js/modules/es.regexp.exec.js");
|
|
26
|
+
|
|
25
27
|
require("core-js/modules/es.weak-map.js");
|
|
26
28
|
|
|
27
29
|
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
@@ -49,9 +51,9 @@ var _HighlightToggle = _interopRequireDefault(require("./HighlightToggle"));
|
|
|
49
51
|
|
|
50
52
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
51
53
|
|
|
52
|
-
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var
|
|
54
|
+
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); }
|
|
53
55
|
|
|
54
|
-
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (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; }
|
|
56
|
+
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; }
|
|
55
57
|
|
|
56
58
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
57
59
|
|
|
@@ -61,7 +63,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
61
63
|
|
|
62
64
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
63
65
|
|
|
64
|
-
function _iterableToArrayLimit(arr, i) {
|
|
66
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
65
67
|
|
|
66
68
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
67
69
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
4
|
|
|
5
|
-
require("core-js/modules/es.
|
|
5
|
+
require("core-js/modules/es.array.iterator.js");
|
|
6
6
|
|
|
7
7
|
require("core-js/modules/es.object.to-string.js");
|
|
8
8
|
|
|
9
9
|
require("core-js/modules/es.string.iterator.js");
|
|
10
10
|
|
|
11
|
-
require("core-js/modules/es.
|
|
11
|
+
require("core-js/modules/es.weak-map.js");
|
|
12
12
|
|
|
13
13
|
require("core-js/modules/web.dom-collections.iterator.js");
|
|
14
14
|
|
|
@@ -35,9 +35,9 @@ var _components = require("@storybook/components");
|
|
|
35
35
|
|
|
36
36
|
var _Item = require("./Item");
|
|
37
37
|
|
|
38
|
-
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var
|
|
38
|
+
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); }
|
|
39
39
|
|
|
40
|
-
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (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; }
|
|
40
|
+
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; }
|
|
41
41
|
|
|
42
42
|
var Report = function Report(_ref) {
|
|
43
43
|
var items = _ref.items,
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
4
|
|
|
5
|
-
require("core-js/modules/es.
|
|
6
|
-
|
|
7
|
-
require("core-js/modules/es.object.to-string.js");
|
|
5
|
+
require("core-js/modules/es.array.iterator.js");
|
|
8
6
|
|
|
9
7
|
require("core-js/modules/es.string.iterator.js");
|
|
10
8
|
|
|
11
|
-
require("core-js/modules/es.
|
|
9
|
+
require("core-js/modules/es.weak-map.js");
|
|
12
10
|
|
|
13
11
|
require("core-js/modules/web.dom-collections.iterator.js");
|
|
14
12
|
|
|
@@ -27,6 +25,8 @@ exports.Tabs = void 0;
|
|
|
27
25
|
|
|
28
26
|
require("core-js/modules/es.string.bold.js");
|
|
29
27
|
|
|
28
|
+
require("core-js/modules/es.object.to-string.js");
|
|
29
|
+
|
|
30
30
|
require("core-js/modules/es.array.concat.js");
|
|
31
31
|
|
|
32
32
|
require("core-js/modules/es.array.map.js");
|
|
@@ -43,9 +43,9 @@ var _A11yContext = require("./A11yContext");
|
|
|
43
43
|
|
|
44
44
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
45
45
|
|
|
46
|
-
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var
|
|
46
|
+
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); }
|
|
47
47
|
|
|
48
|
-
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (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; }
|
|
48
|
+
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; }
|
|
49
49
|
|
|
50
50
|
// TODO: reuse the Tabs component from @storybook/theming instead of re-building identical functionality
|
|
51
51
|
var Container = _theming.styled.div({
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
4
|
|
|
5
5
|
require("core-js/modules/es.symbol.js");
|
|
6
6
|
|
|
7
7
|
require("core-js/modules/es.symbol.description.js");
|
|
8
8
|
|
|
9
|
-
require("core-js/modules/es.object.to-string.js");
|
|
10
|
-
|
|
11
9
|
require("core-js/modules/es.symbol.iterator.js");
|
|
12
10
|
|
|
13
|
-
require("core-js/modules/es.string.iterator.js");
|
|
14
|
-
|
|
15
11
|
require("core-js/modules/es.array.iterator.js");
|
|
16
12
|
|
|
13
|
+
require("core-js/modules/es.string.iterator.js");
|
|
14
|
+
|
|
17
15
|
require("core-js/modules/web.dom-collections.iterator.js");
|
|
18
16
|
|
|
19
17
|
require("core-js/modules/es.array.from.js");
|
|
20
18
|
|
|
21
19
|
require("core-js/modules/es.function.name.js");
|
|
22
20
|
|
|
21
|
+
require("core-js/modules/es.regexp.exec.js");
|
|
22
|
+
|
|
23
23
|
require("core-js/modules/es.weak-map.js");
|
|
24
24
|
|
|
25
25
|
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
@@ -31,6 +31,8 @@ exports.VisionSimulator = void 0;
|
|
|
31
31
|
|
|
32
32
|
require("core-js/modules/es.array.filter.js");
|
|
33
33
|
|
|
34
|
+
require("core-js/modules/es.object.to-string.js");
|
|
35
|
+
|
|
34
36
|
require("core-js/modules/es.array.concat.js");
|
|
35
37
|
|
|
36
38
|
require("core-js/modules/es.array.map.js");
|
|
@@ -45,9 +47,9 @@ var _components = require("@storybook/components");
|
|
|
45
47
|
|
|
46
48
|
var _ColorFilters = require("./ColorFilters");
|
|
47
49
|
|
|
48
|
-
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var
|
|
50
|
+
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); }
|
|
49
51
|
|
|
50
|
-
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (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; }
|
|
52
|
+
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
53
|
|
|
52
54
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
53
55
|
|
|
@@ -55,7 +57,7 @@ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArra
|
|
|
55
57
|
|
|
56
58
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
57
59
|
|
|
58
|
-
function _iterableToArrayLimit(arr, i) {
|
|
60
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
59
61
|
|
|
60
62
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
61
63
|
|
|
@@ -65,7 +67,7 @@ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread n
|
|
|
65
67
|
|
|
66
68
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
67
69
|
|
|
68
|
-
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator
|
|
70
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
69
71
|
|
|
70
72
|
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
71
73
|
|
package/dist/cjs/constants.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.PARAM_KEY = exports.PANEL_ID = exports.HIGHLIGHT_STYLE_ID = exports.EVENTS = exports.ADDON_ID = void 0;
|
|
7
7
|
var ADDON_ID = 'storybook/a11y';
|
|
8
8
|
exports.ADDON_ID = ADDON_ID;
|
|
9
9
|
var PANEL_ID = "".concat(ADDON_ID, "/panel");
|
package/dist/cjs/highlight.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.highlightStyle = exports.highlightObject = void 0;
|
|
7
7
|
|
|
8
8
|
var highlightStyle = function highlightStyle(color) {
|
|
9
9
|
return "\n outline: 2px dashed ".concat(color, ";\n outline-offset: 2px;\n box-shadow: 0 0 0 6px rgba(255,255,255,0.6);\n");
|
package/dist/cjs/index.js
CHANGED
|
@@ -4,6 +4,8 @@ require("core-js/modules/es.array.slice.js");
|
|
|
4
4
|
|
|
5
5
|
require("core-js/modules/es.object.freeze.js");
|
|
6
6
|
|
|
7
|
+
require("core-js/modules/es.object.to-string.js");
|
|
8
|
+
|
|
7
9
|
require("core-js/modules/web.dom-collections.for-each.js");
|
|
8
10
|
|
|
9
11
|
require("core-js/modules/es.object.keys.js");
|
package/dist/cjs/params.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "core-js/modules/es.array.from.js";
|
|
2
2
|
import "core-js/modules/es.string.iterator.js";
|
|
3
|
-
import "core-js/modules/es.set.js";
|
|
4
|
-
import "core-js/modules/es.object.to-string.js";
|
|
5
3
|
import "core-js/modules/es.array.iterator.js";
|
|
4
|
+
import "core-js/modules/es.object.to-string.js";
|
|
5
|
+
import "core-js/modules/es.set.js";
|
|
6
6
|
import "core-js/modules/web.dom-collections.iterator.js";
|
|
7
7
|
import "core-js/modules/es.array.join.js";
|
|
8
8
|
import "core-js/modules/es.array.map.js";
|
package/dist/esm/a11yRunner.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "core-js/modules/es.promise.js";
|
|
2
1
|
import "core-js/modules/es.object.to-string.js";
|
|
2
|
+
import "core-js/modules/es.promise.js";
|
|
3
3
|
import "regenerator-runtime/runtime.js";
|
|
4
4
|
|
|
5
5
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
@@ -2,12 +2,13 @@ import "core-js/modules/es.symbol.js";
|
|
|
2
2
|
import "core-js/modules/es.symbol.description.js";
|
|
3
3
|
import "core-js/modules/es.object.to-string.js";
|
|
4
4
|
import "core-js/modules/es.symbol.iterator.js";
|
|
5
|
-
import "core-js/modules/es.string.iterator.js";
|
|
6
5
|
import "core-js/modules/es.array.iterator.js";
|
|
6
|
+
import "core-js/modules/es.string.iterator.js";
|
|
7
7
|
import "core-js/modules/web.dom-collections.iterator.js";
|
|
8
8
|
import "core-js/modules/es.array.slice.js";
|
|
9
9
|
import "core-js/modules/es.function.name.js";
|
|
10
10
|
import "core-js/modules/es.array.from.js";
|
|
11
|
+
import "core-js/modules/es.regexp.exec.js";
|
|
11
12
|
|
|
12
13
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
13
14
|
|
|
@@ -19,7 +20,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
19
20
|
|
|
20
21
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
21
22
|
|
|
22
|
-
function _iterableToArrayLimit(arr, i) {
|
|
23
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
23
24
|
|
|
24
25
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
25
26
|
|
|
@@ -1,29 +1,32 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
-
|
|
3
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
4
|
-
|
|
5
|
-
import "core-js/modules/es.array.concat.js";
|
|
6
|
-
import "core-js/modules/es.array.filter.js";
|
|
7
|
-
import "core-js/modules/es.array.includes.js";
|
|
8
|
-
import "core-js/modules/es.string.includes.js";
|
|
9
1
|
import "core-js/modules/es.object.keys.js";
|
|
10
2
|
import "core-js/modules/es.symbol.js";
|
|
11
3
|
import "core-js/modules/es.symbol.description.js";
|
|
12
|
-
import "core-js/modules/es.object.to-string.js";
|
|
13
4
|
import "core-js/modules/es.symbol.iterator.js";
|
|
14
|
-
import "core-js/modules/es.string.iterator.js";
|
|
15
5
|
import "core-js/modules/es.array.iterator.js";
|
|
6
|
+
import "core-js/modules/es.string.iterator.js";
|
|
16
7
|
import "core-js/modules/web.dom-collections.iterator.js";
|
|
17
8
|
import "core-js/modules/es.array.slice.js";
|
|
18
9
|
import "core-js/modules/es.function.name.js";
|
|
19
10
|
import "core-js/modules/es.array.from.js";
|
|
11
|
+
import "core-js/modules/es.regexp.exec.js";
|
|
20
12
|
import "core-js/modules/es.object.assign.js";
|
|
13
|
+
var _excluded = ["active"];
|
|
14
|
+
|
|
15
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
16
|
+
|
|
17
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
18
|
+
|
|
19
|
+
import "core-js/modules/es.array.concat.js";
|
|
20
|
+
import "core-js/modules/es.array.filter.js";
|
|
21
|
+
import "core-js/modules/es.object.to-string.js";
|
|
22
|
+
import "core-js/modules/es.array.includes.js";
|
|
23
|
+
import "core-js/modules/es.string.includes.js";
|
|
21
24
|
|
|
22
25
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
23
26
|
|
|
24
27
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
25
28
|
|
|
26
|
-
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator
|
|
29
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
27
30
|
|
|
28
31
|
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
29
32
|
|
|
@@ -35,7 +38,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
35
38
|
|
|
36
39
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
37
40
|
|
|
38
|
-
function _iterableToArrayLimit(arr, i) {
|
|
41
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
39
42
|
|
|
40
43
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
41
44
|
|
|
@@ -74,7 +77,7 @@ export var A11yContextProvider = function A11yContextProvider(_ref) {
|
|
|
74
77
|
var _useChannel;
|
|
75
78
|
|
|
76
79
|
var active = _ref.active,
|
|
77
|
-
props = _objectWithoutProperties(_ref,
|
|
80
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
78
81
|
|
|
79
82
|
var _React$useState = React.useState(defaultResult),
|
|
80
83
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
@@ -4,12 +4,13 @@ import "core-js/modules/es.symbol.js";
|
|
|
4
4
|
import "core-js/modules/es.symbol.description.js";
|
|
5
5
|
import "core-js/modules/es.object.to-string.js";
|
|
6
6
|
import "core-js/modules/es.symbol.iterator.js";
|
|
7
|
-
import "core-js/modules/es.string.iterator.js";
|
|
8
7
|
import "core-js/modules/es.array.iterator.js";
|
|
8
|
+
import "core-js/modules/es.string.iterator.js";
|
|
9
9
|
import "core-js/modules/web.dom-collections.iterator.js";
|
|
10
10
|
import "core-js/modules/es.array.from.js";
|
|
11
11
|
import "core-js/modules/es.array.slice.js";
|
|
12
12
|
import "core-js/modules/es.function.name.js";
|
|
13
|
+
import "core-js/modules/es.regexp.exec.js";
|
|
13
14
|
|
|
14
15
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
15
16
|
|
|
@@ -17,7 +18,7 @@ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread n
|
|
|
17
18
|
|
|
18
19
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
19
20
|
|
|
20
|
-
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator
|
|
21
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
21
22
|
|
|
22
23
|
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
23
24
|
|
|
@@ -6,24 +6,25 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
6
6
|
|
|
7
7
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
8
8
|
|
|
9
|
-
function _iterableToArrayLimit(arr, i) {
|
|
9
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
10
10
|
|
|
11
11
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
12
12
|
|
|
13
13
|
import "core-js/modules/es.array.filter.js";
|
|
14
|
+
import "core-js/modules/es.object.to-string.js";
|
|
14
15
|
import "core-js/modules/es.array.includes.js";
|
|
15
16
|
import "core-js/modules/es.string.includes.js";
|
|
16
17
|
import "core-js/modules/es.array.map.js";
|
|
17
18
|
import "core-js/modules/es.symbol.js";
|
|
18
19
|
import "core-js/modules/es.symbol.description.js";
|
|
19
|
-
import "core-js/modules/es.object.to-string.js";
|
|
20
20
|
import "core-js/modules/es.symbol.iterator.js";
|
|
21
|
-
import "core-js/modules/es.string.iterator.js";
|
|
22
21
|
import "core-js/modules/es.array.iterator.js";
|
|
22
|
+
import "core-js/modules/es.string.iterator.js";
|
|
23
23
|
import "core-js/modules/web.dom-collections.iterator.js";
|
|
24
24
|
import "core-js/modules/es.array.slice.js";
|
|
25
25
|
import "core-js/modules/es.function.name.js";
|
|
26
26
|
import "core-js/modules/es.array.from.js";
|
|
27
|
+
import "core-js/modules/es.regexp.exec.js";
|
|
27
28
|
import React from 'react';
|
|
28
29
|
import { styled } from '@storybook/theming';
|
|
29
30
|
import { useA11yContext } from '../A11yContext';
|
|
@@ -3,12 +3,13 @@ import "core-js/modules/es.symbol.js";
|
|
|
3
3
|
import "core-js/modules/es.symbol.description.js";
|
|
4
4
|
import "core-js/modules/es.object.to-string.js";
|
|
5
5
|
import "core-js/modules/es.symbol.iterator.js";
|
|
6
|
-
import "core-js/modules/es.string.iterator.js";
|
|
7
6
|
import "core-js/modules/es.array.iterator.js";
|
|
7
|
+
import "core-js/modules/es.string.iterator.js";
|
|
8
8
|
import "core-js/modules/web.dom-collections.iterator.js";
|
|
9
9
|
import "core-js/modules/es.array.slice.js";
|
|
10
10
|
import "core-js/modules/es.function.name.js";
|
|
11
11
|
import "core-js/modules/es.array.from.js";
|
|
12
|
+
import "core-js/modules/es.regexp.exec.js";
|
|
12
13
|
|
|
13
14
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
14
15
|
|
|
@@ -18,7 +19,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
18
19
|
|
|
19
20
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
20
21
|
|
|
21
|
-
function _iterableToArrayLimit(arr, i) {
|
|
22
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
22
23
|
|
|
23
24
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
24
25
|
|
|
@@ -4,7 +4,7 @@ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArra
|
|
|
4
4
|
|
|
5
5
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
6
6
|
|
|
7
|
-
function _iterableToArrayLimit(arr, i) {
|
|
7
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
8
8
|
|
|
9
9
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
10
10
|
|
|
@@ -14,25 +14,26 @@ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread n
|
|
|
14
14
|
|
|
15
15
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
16
16
|
|
|
17
|
-
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator
|
|
17
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
18
18
|
|
|
19
19
|
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
20
20
|
|
|
21
21
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
22
22
|
|
|
23
23
|
import "core-js/modules/es.array.filter.js";
|
|
24
|
+
import "core-js/modules/es.object.to-string.js";
|
|
24
25
|
import "core-js/modules/es.array.concat.js";
|
|
25
26
|
import "core-js/modules/es.array.map.js";
|
|
26
27
|
import "core-js/modules/es.array.slice.js";
|
|
27
28
|
import "core-js/modules/es.symbol.js";
|
|
28
29
|
import "core-js/modules/es.symbol.description.js";
|
|
29
|
-
import "core-js/modules/es.object.to-string.js";
|
|
30
30
|
import "core-js/modules/es.symbol.iterator.js";
|
|
31
|
-
import "core-js/modules/es.string.iterator.js";
|
|
32
31
|
import "core-js/modules/es.array.iterator.js";
|
|
32
|
+
import "core-js/modules/es.string.iterator.js";
|
|
33
33
|
import "core-js/modules/web.dom-collections.iterator.js";
|
|
34
34
|
import "core-js/modules/es.array.from.js";
|
|
35
35
|
import "core-js/modules/es.function.name.js";
|
|
36
|
+
import "core-js/modules/es.regexp.exec.js";
|
|
36
37
|
import React, { useState } from 'react';
|
|
37
38
|
import { Global, styled } from '@storybook/theming';
|
|
38
39
|
import { Icons, IconButton, WithTooltip, TooltipLinkList } from '@storybook/components';
|
package/dist/esm/params.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
const _excluded = ["active"];
|
|
2
|
+
|
|
1
3
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
4
|
|
|
3
5
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
@@ -29,11 +31,11 @@ const defaultResult = {
|
|
|
29
31
|
incomplete: [],
|
|
30
32
|
violations: []
|
|
31
33
|
};
|
|
32
|
-
export const A11yContextProvider =
|
|
34
|
+
export const A11yContextProvider = _ref => {
|
|
33
35
|
let {
|
|
34
36
|
active
|
|
35
37
|
} = _ref,
|
|
36
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
38
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
37
39
|
|
|
38
40
|
const [results, setResults] = React.useState(defaultResult);
|
|
39
41
|
const [tab, setTab] = React.useState(0);
|
package/dist/modern/params.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/addon-a11y",
|
|
3
|
-
"version": "6.5.0-alpha.
|
|
3
|
+
"version": "6.5.0-alpha.25",
|
|
4
4
|
"description": "Test component compliance with web accessibility standards",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"a11y",
|
|
@@ -45,14 +45,14 @@
|
|
|
45
45
|
"prepare": "node ../../scripts/prepare.js"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@storybook/addons": "6.5.0-alpha.
|
|
49
|
-
"@storybook/api": "6.5.0-alpha.
|
|
50
|
-
"@storybook/channels": "6.5.0-alpha.
|
|
51
|
-
"@storybook/client-logger": "6.5.0-alpha.
|
|
52
|
-
"@storybook/components": "6.5.0-alpha.
|
|
53
|
-
"@storybook/core-events": "6.5.0-alpha.
|
|
48
|
+
"@storybook/addons": "6.5.0-alpha.25",
|
|
49
|
+
"@storybook/api": "6.5.0-alpha.25",
|
|
50
|
+
"@storybook/channels": "6.5.0-alpha.25",
|
|
51
|
+
"@storybook/client-logger": "6.5.0-alpha.25",
|
|
52
|
+
"@storybook/components": "6.5.0-alpha.25",
|
|
53
|
+
"@storybook/core-events": "6.5.0-alpha.25",
|
|
54
54
|
"@storybook/csf": "0.0.2--canary.87bc651.0",
|
|
55
|
-
"@storybook/theming": "6.5.0-alpha.
|
|
55
|
+
"@storybook/theming": "6.5.0-alpha.25",
|
|
56
56
|
"axe-core": "^4.2.0",
|
|
57
57
|
"core-js": "^3.8.2",
|
|
58
58
|
"global": "^4.4.0",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"publishConfig": {
|
|
82
82
|
"access": "public"
|
|
83
83
|
},
|
|
84
|
-
"gitHead": "
|
|
84
|
+
"gitHead": "25ed23c17e07452af0dbd34665eb9a6dfdac526c",
|
|
85
85
|
"sbmodern": "dist/modern/index.js",
|
|
86
86
|
"storybook": {
|
|
87
87
|
"displayName": "Accessibility",
|
package/dist/cjs/typings.d.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
package/dist/esm/typings.d.js
DELETED
|
File without changes
|
package/dist/modern/typings.d.js
DELETED
|
File without changes
|