@storybook/addon-a11y 5.1.6 → 5.1.10
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/typings.d.js +1 -0
- package/package.json +8 -8
- package/dist/components/A11YPanel.test.js +0 -246
- package/dist/components/Report/HighlightToggle.test.js +0 -40
- package/dist/components/Report/__snapshots__/HighlightToggle.test.js.snap +0 -353
- package/dist/components/__snapshots__/A11YPanel.test.js.snap +0 -1109
- package/dist/typings.d.ts +0 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/addon-a11y",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.10",
|
|
4
4
|
"description": "a11y addon for storybook",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"a11y",
|
|
@@ -26,12 +26,12 @@
|
|
|
26
26
|
"prepare": "node ../../scripts/prepare.js"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@storybook/addons": "5.1.
|
|
30
|
-
"@storybook/api": "5.1.
|
|
31
|
-
"@storybook/client-logger": "5.1.
|
|
32
|
-
"@storybook/components": "5.1.
|
|
33
|
-
"@storybook/core-events": "5.1.
|
|
34
|
-
"@storybook/theming": "5.1.
|
|
29
|
+
"@storybook/addons": "5.1.10",
|
|
30
|
+
"@storybook/api": "5.1.10",
|
|
31
|
+
"@storybook/client-logger": "5.1.10",
|
|
32
|
+
"@storybook/components": "5.1.10",
|
|
33
|
+
"@storybook/core-events": "5.1.10",
|
|
34
|
+
"@storybook/theming": "5.1.10",
|
|
35
35
|
"axe-core": "^3.2.2",
|
|
36
36
|
"common-tags": "^1.8.0",
|
|
37
37
|
"core-js": "^3.0.1",
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"publishConfig": {
|
|
52
52
|
"access": "public"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "000361f27f8a9c78201ffce1fac080178f0a62a0"
|
|
55
55
|
}
|
|
@@ -1,246 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
require("core-js/modules/es.symbol");
|
|
4
|
-
|
|
5
|
-
require("core-js/modules/es.symbol.description");
|
|
6
|
-
|
|
7
|
-
require("core-js/modules/es.symbol.iterator");
|
|
8
|
-
|
|
9
|
-
require("core-js/modules/es.array.find");
|
|
10
|
-
|
|
11
|
-
require("core-js/modules/es.array.is-array");
|
|
12
|
-
|
|
13
|
-
require("core-js/modules/es.array.iterator");
|
|
14
|
-
|
|
15
|
-
require("core-js/modules/es.object.to-string");
|
|
16
|
-
|
|
17
|
-
require("core-js/modules/es.string.iterator");
|
|
18
|
-
|
|
19
|
-
require("core-js/modules/es.string.trim");
|
|
20
|
-
|
|
21
|
-
require("core-js/modules/web.dom-collections.iterator");
|
|
22
|
-
|
|
23
|
-
var _react = _interopRequireDefault(require("react"));
|
|
24
|
-
|
|
25
|
-
var _enzyme = require("enzyme");
|
|
26
|
-
|
|
27
|
-
var _theming = require("@storybook/theming");
|
|
28
|
-
|
|
29
|
-
var _coreEvents = require("@storybook/core-events");
|
|
30
|
-
|
|
31
|
-
var _components = require("@storybook/components");
|
|
32
|
-
|
|
33
|
-
var _A11YPanel = require("./A11YPanel");
|
|
34
|
-
|
|
35
|
-
var _constants = require("../constants");
|
|
36
|
-
|
|
37
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
38
|
-
|
|
39
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
40
|
-
|
|
41
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
42
|
-
|
|
43
|
-
function _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_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; }
|
|
44
|
-
|
|
45
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
46
|
-
|
|
47
|
-
function createApi() {
|
|
48
|
-
return {
|
|
49
|
-
emit: jest.fn(),
|
|
50
|
-
on: jest.fn(),
|
|
51
|
-
off: jest.fn()
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
var axeResult = {
|
|
56
|
-
incomplete: [{
|
|
57
|
-
id: 'color-contrast',
|
|
58
|
-
impact: 'serious',
|
|
59
|
-
tags: ['cat.color', 'wcag2aa', 'wcag143'],
|
|
60
|
-
description: 'Ensures the contrast between foreground and background colors meets WCAG 2 AA contrast ratio thresholds',
|
|
61
|
-
help: 'Elements must have sufficient color contrast',
|
|
62
|
-
helpUrl: 'https://dequeuniversity.com/rules/axe/3.2/color-contrast?application=axeAPI',
|
|
63
|
-
nodes: []
|
|
64
|
-
}],
|
|
65
|
-
passes: [{
|
|
66
|
-
id: 'aria-allowed-attr',
|
|
67
|
-
impact: null,
|
|
68
|
-
tags: ['cat.aria', 'wcag2a', 'wcag412'],
|
|
69
|
-
description: "Ensures ARIA attributes are allowed for an element's role",
|
|
70
|
-
help: 'Elements must only use allowed ARIA attributes',
|
|
71
|
-
helpUrl: 'https://dequeuniversity.com/rules/axe/3.2/aria-allowed-attr?application=axeAPI',
|
|
72
|
-
nodes: []
|
|
73
|
-
}],
|
|
74
|
-
violations: [{
|
|
75
|
-
id: 'color-contrast',
|
|
76
|
-
impact: 'serious',
|
|
77
|
-
tags: ['cat.color', 'wcag2aa', 'wcag143'],
|
|
78
|
-
description: 'Ensures the contrast between foreground and background colors meets WCAG 2 AA contrast ratio thresholds',
|
|
79
|
-
help: 'Elements must have sufficient color contrast',
|
|
80
|
-
helpUrl: 'https://dequeuniversity.com/rules/axe/3.2/color-contrast?application=axeAPI',
|
|
81
|
-
nodes: []
|
|
82
|
-
}]
|
|
83
|
-
};
|
|
84
|
-
|
|
85
|
-
function ThemedA11YPanel(props) {
|
|
86
|
-
return _react["default"].createElement(_theming.ThemeProvider, {
|
|
87
|
-
theme: (0, _theming.convert)(_theming.themes.light)
|
|
88
|
-
}, _react["default"].createElement(_A11YPanel.A11YPanel, props));
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
describe('A11YPanel', function () {
|
|
92
|
-
it('should register STORY_RENDERED and RESULT updater on mount', function () {
|
|
93
|
-
// given
|
|
94
|
-
var api = createApi();
|
|
95
|
-
expect(api.on).not.toHaveBeenCalled(); // when
|
|
96
|
-
|
|
97
|
-
(0, _enzyme.mount)(_react["default"].createElement(ThemedA11YPanel, {
|
|
98
|
-
api: api
|
|
99
|
-
})); // then
|
|
100
|
-
|
|
101
|
-
expect(api.on.mock.calls.length).toBe(2);
|
|
102
|
-
expect(api.on.mock.calls[0][0]).toBe(_coreEvents.STORY_RENDERED);
|
|
103
|
-
expect(api.on.mock.calls[1][0]).toBe(_constants.EVENTS.RESULT);
|
|
104
|
-
});
|
|
105
|
-
it('should request a run on tab activation', function () {
|
|
106
|
-
// given
|
|
107
|
-
var api = createApi();
|
|
108
|
-
var wrapper = (0, _enzyme.mount)(_react["default"].createElement(ThemedA11YPanel, {
|
|
109
|
-
api: api
|
|
110
|
-
}));
|
|
111
|
-
expect(api.emit).not.toHaveBeenCalled(); // when
|
|
112
|
-
|
|
113
|
-
wrapper.setProps({
|
|
114
|
-
active: true
|
|
115
|
-
});
|
|
116
|
-
wrapper.update(); // then
|
|
117
|
-
|
|
118
|
-
expect(api.emit).toHaveBeenCalledWith(_constants.EVENTS.REQUEST);
|
|
119
|
-
expect(wrapper.find(_components.ScrollArea).length).toBe(0);
|
|
120
|
-
});
|
|
121
|
-
it('should deregister STORY_RENDERED and RESULT updater on unmount', function () {
|
|
122
|
-
// given
|
|
123
|
-
var api = createApi();
|
|
124
|
-
var wrapper = (0, _enzyme.mount)(_react["default"].createElement(ThemedA11YPanel, {
|
|
125
|
-
api: api
|
|
126
|
-
}));
|
|
127
|
-
expect(api.off).not.toHaveBeenCalled(); // when
|
|
128
|
-
|
|
129
|
-
wrapper.unmount(); // then
|
|
130
|
-
|
|
131
|
-
expect(api.off.mock.calls.length).toBe(2);
|
|
132
|
-
expect(api.off.mock.calls[0][0]).toBe(_coreEvents.STORY_RENDERED);
|
|
133
|
-
expect(api.off.mock.calls[1][0]).toBe(_constants.EVENTS.RESULT);
|
|
134
|
-
});
|
|
135
|
-
it('should update run result', function () {
|
|
136
|
-
// given
|
|
137
|
-
var api = createApi();
|
|
138
|
-
var wrapper = (0, _enzyme.mount)(_react["default"].createElement(ThemedA11YPanel, {
|
|
139
|
-
api: api,
|
|
140
|
-
active: true
|
|
141
|
-
}));
|
|
142
|
-
var onUpdate = api.on.mock.calls.find(function (_ref) {
|
|
143
|
-
var _ref2 = _slicedToArray(_ref, 1),
|
|
144
|
-
event = _ref2[0];
|
|
145
|
-
|
|
146
|
-
return event === _constants.EVENTS.RESULT;
|
|
147
|
-
})[1];
|
|
148
|
-
expect(wrapper.find('button').last().text().trim()).toBe('Rerun tests'); // when
|
|
149
|
-
|
|
150
|
-
onUpdate(axeResult); // then
|
|
151
|
-
|
|
152
|
-
expect(wrapper.find('button').last().text().trim()).toBe('Tests completed');
|
|
153
|
-
});
|
|
154
|
-
it('should request run', function () {
|
|
155
|
-
// given
|
|
156
|
-
var api = createApi();
|
|
157
|
-
var wrapper = (0, _enzyme.mount)(_react["default"].createElement(ThemedA11YPanel, {
|
|
158
|
-
api: api,
|
|
159
|
-
active: true
|
|
160
|
-
}));
|
|
161
|
-
var request = api.on.mock.calls.find(function (_ref3) {
|
|
162
|
-
var _ref4 = _slicedToArray(_ref3, 1),
|
|
163
|
-
event = _ref4[0];
|
|
164
|
-
|
|
165
|
-
return event === _coreEvents.STORY_RENDERED;
|
|
166
|
-
})[1];
|
|
167
|
-
expect(wrapper.find('button').last().text().trim()).toBe('Rerun tests');
|
|
168
|
-
expect(api.emit).not.toHaveBeenCalled(); // when
|
|
169
|
-
|
|
170
|
-
request(); // then
|
|
171
|
-
|
|
172
|
-
expect(wrapper.find('button').last().text().trim()).toBe('Running test');
|
|
173
|
-
expect(api.emit).toHaveBeenCalledWith(_constants.EVENTS.REQUEST);
|
|
174
|
-
});
|
|
175
|
-
it('should NOT request run on inactive tab', function () {
|
|
176
|
-
// given
|
|
177
|
-
var api = createApi();
|
|
178
|
-
(0, _enzyme.mount)(_react["default"].createElement(ThemedA11YPanel, {
|
|
179
|
-
api: api,
|
|
180
|
-
active: false
|
|
181
|
-
}));
|
|
182
|
-
var request = api.on.mock.calls.find(function (_ref5) {
|
|
183
|
-
var _ref6 = _slicedToArray(_ref5, 1),
|
|
184
|
-
event = _ref6[0];
|
|
185
|
-
|
|
186
|
-
return event === _coreEvents.STORY_RENDERED;
|
|
187
|
-
})[1];
|
|
188
|
-
expect(api.emit).not.toHaveBeenCalled(); // when
|
|
189
|
-
|
|
190
|
-
request(); // then
|
|
191
|
-
|
|
192
|
-
expect(api.emit).not.toHaveBeenCalled();
|
|
193
|
-
});
|
|
194
|
-
it('should render report', function () {
|
|
195
|
-
// given
|
|
196
|
-
var api = createApi();
|
|
197
|
-
var wrapper = (0, _enzyme.mount)(_react["default"].createElement(ThemedA11YPanel, {
|
|
198
|
-
api: api,
|
|
199
|
-
active: true
|
|
200
|
-
}));
|
|
201
|
-
var onUpdate = api.on.mock.calls.find(function (_ref7) {
|
|
202
|
-
var _ref8 = _slicedToArray(_ref7, 1),
|
|
203
|
-
event = _ref8[0];
|
|
204
|
-
|
|
205
|
-
return event === _constants.EVENTS.RESULT;
|
|
206
|
-
})[1]; // when
|
|
207
|
-
|
|
208
|
-
onUpdate(axeResult); // then
|
|
209
|
-
|
|
210
|
-
expect(wrapper.find(_A11YPanel.A11YPanel)).toMatchSnapshot();
|
|
211
|
-
});
|
|
212
|
-
it("should render loader when it's running", function () {
|
|
213
|
-
// given
|
|
214
|
-
var api = createApi();
|
|
215
|
-
var wrapper = (0, _enzyme.mount)(_react["default"].createElement(ThemedA11YPanel, {
|
|
216
|
-
api: api,
|
|
217
|
-
active: true
|
|
218
|
-
}));
|
|
219
|
-
var request = api.on.mock.calls.find(function (_ref9) {
|
|
220
|
-
var _ref10 = _slicedToArray(_ref9, 1),
|
|
221
|
-
event = _ref10[0];
|
|
222
|
-
|
|
223
|
-
return event === _coreEvents.STORY_RENDERED;
|
|
224
|
-
})[1]; // when
|
|
225
|
-
|
|
226
|
-
request();
|
|
227
|
-
wrapper.update(); // then
|
|
228
|
-
|
|
229
|
-
expect(wrapper.find('ScrollArea').length).toBe(0);
|
|
230
|
-
expect(wrapper.find('Loader').length).toBe(1);
|
|
231
|
-
expect(wrapper.find('ActionBar').length).toBe(1);
|
|
232
|
-
expect(wrapper.find('Loader')).toMatchSnapshot();
|
|
233
|
-
});
|
|
234
|
-
it('should NOT anything when tab is not active', function () {
|
|
235
|
-
// given
|
|
236
|
-
var api = createApi(); // when
|
|
237
|
-
|
|
238
|
-
var wrapper = (0, _enzyme.mount)(_react["default"].createElement(ThemedA11YPanel, {
|
|
239
|
-
api: api,
|
|
240
|
-
active: false
|
|
241
|
-
})); // then
|
|
242
|
-
|
|
243
|
-
expect(wrapper.find('ScrollArea').length).toBe(0);
|
|
244
|
-
expect(wrapper.find('ActionBar').length).toBe(0);
|
|
245
|
-
});
|
|
246
|
-
});
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _react = _interopRequireDefault(require("react"));
|
|
4
|
-
|
|
5
|
-
var _enzyme = require("enzyme");
|
|
6
|
-
|
|
7
|
-
var _reactRedux = require("react-redux");
|
|
8
|
-
|
|
9
|
-
var _theming = require("@storybook/theming");
|
|
10
|
-
|
|
11
|
-
var _HighlightToggle = _interopRequireDefault(require("./HighlightToggle"));
|
|
12
|
-
|
|
13
|
-
var _reduxConfig = _interopRequireDefault(require("../../redux-config"));
|
|
14
|
-
|
|
15
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
16
|
-
|
|
17
|
-
function ThemedHighlightToggle(props) {
|
|
18
|
-
return _react["default"].createElement(_theming.ThemeProvider, {
|
|
19
|
-
theme: (0, _theming.convert)(_theming.themes.normal)
|
|
20
|
-
}, _react["default"].createElement(_HighlightToggle["default"], props));
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
describe('HighlightToggle component', function () {
|
|
24
|
-
test('should render', function () {
|
|
25
|
-
// given
|
|
26
|
-
var wrapper = (0, _enzyme.mount)(_react["default"].createElement(_reactRedux.Provider, {
|
|
27
|
-
store: _reduxConfig["default"]
|
|
28
|
-
}, _react["default"].createElement(ThemedHighlightToggle, null))); // then
|
|
29
|
-
|
|
30
|
-
expect(wrapper.exists()).toBe(true);
|
|
31
|
-
});
|
|
32
|
-
test('should match snapshot', function () {
|
|
33
|
-
// given
|
|
34
|
-
var wrapper = (0, _enzyme.mount)(_react["default"].createElement(_reactRedux.Provider, {
|
|
35
|
-
store: _reduxConfig["default"]
|
|
36
|
-
}, _react["default"].createElement(ThemedHighlightToggle, null))); // then
|
|
37
|
-
|
|
38
|
-
expect(wrapper).toMatchSnapshot();
|
|
39
|
-
});
|
|
40
|
-
});
|
|
@@ -1,353 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`HighlightToggle component should match snapshot 1`] = `
|
|
4
|
-
.emotion-0 {
|
|
5
|
-
cursor: not-allowed;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
<Provider
|
|
9
|
-
store={
|
|
10
|
-
Object {
|
|
11
|
-
"dispatch": [Function],
|
|
12
|
-
"getState": [Function],
|
|
13
|
-
"replaceReducer": [Function],
|
|
14
|
-
"subscribe": [Function],
|
|
15
|
-
Symbol(observable): [Function],
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
>
|
|
19
|
-
<ThemedHighlightToggle>
|
|
20
|
-
<ThemeProvider
|
|
21
|
-
theme={
|
|
22
|
-
Object {
|
|
23
|
-
"addonActionsTheme": Object {
|
|
24
|
-
"ARROW_ANIMATION_DURATION": "0",
|
|
25
|
-
"ARROW_COLOR": "rgba(0,0,0,0.3)",
|
|
26
|
-
"ARROW_FONT_SIZE": 8,
|
|
27
|
-
"ARROW_MARGIN_RIGHT": 4,
|
|
28
|
-
"BASE_BACKGROUND_COLOR": "transparent",
|
|
29
|
-
"BASE_COLOR": "#333333",
|
|
30
|
-
"BASE_FONT_FAMILY": "\\"Operator Mono\\", \\"Fira Code Retina\\", \\"Fira Code\\", \\"FiraCode-Retina\\", \\"Andale Mono\\", \\"Lucida Console\\", Consolas, Monaco, monospace",
|
|
31
|
-
"BASE_FONT_SIZE": 13,
|
|
32
|
-
"BASE_LINE_HEIGHT": "18px",
|
|
33
|
-
"HTML_ATTRIBUTE_NAME_COLOR": "rgb(153, 69, 0)",
|
|
34
|
-
"HTML_ATTRIBUTE_VALUE_COLOR": "rgb(26, 26, 166)",
|
|
35
|
-
"HTML_COMMENT_COLOR": "rgb(35, 110, 37)",
|
|
36
|
-
"HTML_DOCTYPE_COLOR": "rgb(192, 192, 192)",
|
|
37
|
-
"HTML_TAGNAME_COLOR": "rgb(136, 18, 128)",
|
|
38
|
-
"HTML_TAGNAME_TEXT_TRANSFORM": "lowercase",
|
|
39
|
-
"HTML_TAG_COLOR": "rgb(168, 148, 166)",
|
|
40
|
-
"OBJECT_NAME_COLOR": "rgb(136, 19, 145)",
|
|
41
|
-
"OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES": 10,
|
|
42
|
-
"OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES": 5,
|
|
43
|
-
"OBJECT_VALUE_BOOLEAN_COLOR": "rgb(28, 0, 207)",
|
|
44
|
-
"OBJECT_VALUE_FUNCTION_PREFIX_COLOR": "rgb(13, 34, 170)",
|
|
45
|
-
"OBJECT_VALUE_NULL_COLOR": "rgb(128, 128, 128)",
|
|
46
|
-
"OBJECT_VALUE_NUMBER_COLOR": "rgb(28, 0, 207)",
|
|
47
|
-
"OBJECT_VALUE_REGEXP_COLOR": "rgb(196, 26, 22)",
|
|
48
|
-
"OBJECT_VALUE_STRING_COLOR": "rgb(196, 26, 22)",
|
|
49
|
-
"OBJECT_VALUE_SYMBOL_COLOR": "rgb(196, 26, 22)",
|
|
50
|
-
"OBJECT_VALUE_UNDEFINED_COLOR": "rgb(128, 128, 128)",
|
|
51
|
-
"TABLE_BORDER_COLOR": "#aaa",
|
|
52
|
-
"TABLE_DATA_BACKGROUND_IMAGE": "linear-gradient(to bottom, white, white 50%, rgb(234, 243, 255) 50%, rgb(234, 243, 255))",
|
|
53
|
-
"TABLE_DATA_BACKGROUND_SIZE": "128px 32px",
|
|
54
|
-
"TABLE_SORT_ICON_COLOR": "#6e6e6e",
|
|
55
|
-
"TABLE_TH_BACKGROUND_COLOR": "#eee",
|
|
56
|
-
"TABLE_TH_HOVER_COLOR": "hsla(0, 0%, 90%, 1)",
|
|
57
|
-
"TREENODE_FONT_FAMILY": "\\"Operator Mono\\", \\"Fira Code Retina\\", \\"Fira Code\\", \\"FiraCode-Retina\\", \\"Andale Mono\\", \\"Lucida Console\\", Consolas, Monaco, monospace",
|
|
58
|
-
"TREENODE_FONT_SIZE": 13,
|
|
59
|
-
"TREENODE_LINE_HEIGHT": "18px",
|
|
60
|
-
"TREENODE_PADDING_LEFT": 12,
|
|
61
|
-
},
|
|
62
|
-
"animation": Object {
|
|
63
|
-
"float": Object {
|
|
64
|
-
"anim": 1,
|
|
65
|
-
"name": "animation-6tolu8",
|
|
66
|
-
"styles": "@keyframes animation-6tolu8{
|
|
67
|
-
0% { transform: translateY(1px); }
|
|
68
|
-
25% { transform: translateY(0px); }
|
|
69
|
-
50% { transform: translateY(-3px); }
|
|
70
|
-
100% { transform: translateY(1px); }
|
|
71
|
-
}",
|
|
72
|
-
"toString": [Function],
|
|
73
|
-
},
|
|
74
|
-
"glow": Object {
|
|
75
|
-
"anim": 1,
|
|
76
|
-
"name": "animation-r0iffl",
|
|
77
|
-
"styles": "@keyframes animation-r0iffl{
|
|
78
|
-
0%, 100% { opacity: 1; }
|
|
79
|
-
50% { opacity: .4; }
|
|
80
|
-
}",
|
|
81
|
-
"toString": [Function],
|
|
82
|
-
},
|
|
83
|
-
"hoverable": Object {
|
|
84
|
-
"map": "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9hbmltYXRpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBd0NxQiIsImZpbGUiOiIuLi9zcmMvYW5pbWF0aW9uLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzLCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9jb3JlJztcblxuZXhwb3J0IGNvbnN0IGVhc2luZyA9IHtcbiAgcnViYmVyOiAnY3ViaWMtYmV6aWVyKDAuMTc1LCAwLjg4NSwgMC4zMzUsIDEuMDUpJyxcbn07XG5cbmNvbnN0IHJvdGF0ZTM2MCA9IGtleWZyYW1lc2Bcblx0ZnJvbSB7XG5cdFx0dHJhbnNmb3JtOiByb3RhdGUoMGRlZyk7XG5cdH1cblx0dG8ge1xuXHRcdHRyYW5zZm9ybTogcm90YXRlKDM2MGRlZyk7XG5cdH1cbmA7XG5cbmNvbnN0IGdsb3cgPSBrZXlmcmFtZXNgXG4gIDAlLCAxMDAlIHsgb3BhY2l0eTogMTsgfVxuICA1MCUgeyBvcGFjaXR5OiAuNDsgfVxuYDtcblxuY29uc3QgZmxvYXQgPSBrZXlmcmFtZXNgXG4gIDAlIHsgdHJhbnNmb3JtOiB0cmFuc2xhdGVZKDFweCk7IH1cbiAgMjUlIHsgdHJhbnNmb3JtOiB0cmFuc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|
|
85
|
-
"name": "1023qba-hoverable",
|
|
86
|
-
"styles": "transition:all 150ms ease-out;transform:translate3d(0,0,0);&:hover{transform:translate3d(0,-2px,0);}&:active{transform:translate3d(0,0,0);}label:hoverable;",
|
|
87
|
-
},
|
|
88
|
-
"inlineGlow": Object {
|
|
89
|
-
"map": "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9hbmltYXRpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBaUNzQiIsImZpbGUiOiIuLi9zcmMvYW5pbWF0aW9uLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzLCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9jb3JlJztcblxuZXhwb3J0IGNvbnN0IGVhc2luZyA9IHtcbiAgcnViYmVyOiAnY3ViaWMtYmV6aWVyKDAuMTc1LCAwLjg4NSwgMC4zMzUsIDEuMDUpJyxcbn07XG5cbmNvbnN0IHJvdGF0ZTM2MCA9IGtleWZyYW1lc2Bcblx0ZnJvbSB7XG5cdFx0dHJhbnNmb3JtOiByb3RhdGUoMGRlZyk7XG5cdH1cblx0dG8ge1xuXHRcdHRyYW5zZm9ybTogcm90YXRlKDM2MGRlZyk7XG5cdH1cbmA7XG5cbmNvbnN0IGdsb3cgPSBrZXlmcmFtZXNgXG4gIDAlLCAxMDAlIHsgb3BhY2l0eTogMTsgfVxuICA1MCUgeyBvcGFjaXR5OiAuNDsgfVxuYDtcblxuY29uc3QgZmxvYXQgPSBrZXlmcmFtZXNgXG4gIDAlIHsgdHJhbnNmb3JtOiB0cmFuc2xhdGVZKDFweCk7IH1cbiAgMjUlIHsgdHJhbnNmb3JtOiB0cmFuc2xhdGVZKDBweCk7IH1cbiAgNTAlIHsgdHJhbnNmb3JtOiB0cmFuc2xhdGVZKC0zcHgpOyB9XG4gIDEwMCUgeyB0cmFuc2Zvcm06IHRyYW5zb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animation-r0iffl{
|
|
95
|
-
0%, 100% { opacity: 1; }
|
|
96
|
-
50% { opacity: .4; }
|
|
97
|
-
}",
|
|
98
|
-
},
|
|
99
|
-
"styles": "animation:animation-r0iffl 1.5s ease-in-out infinite;color:transparent;cursor:progress;label:inlineGlow;",
|
|
100
|
-
},
|
|
101
|
-
"jiggle": Object {
|
|
102
|
-
"anim": 1,
|
|
103
|
-
"name": "animation-ynpq7w",
|
|
104
|
-
"styles": "@keyframes animation-ynpq7w{
|
|
105
|
-
0%, 100% { transform:translate3d(0,0,0); }
|
|
106
|
-
12.5%, 62.5% { transform:translate3d(-4px,0,0); }
|
|
107
|
-
37.5%, 87.5% { transform: translate3d(4px,0,0); }
|
|
108
|
-
}",
|
|
109
|
-
"toString": [Function],
|
|
110
|
-
},
|
|
111
|
-
"rotate360": Object {
|
|
112
|
-
"anim": 1,
|
|
113
|
-
"name": "animation-u07e3c",
|
|
114
|
-
"styles": "@keyframes animation-u07e3c{
|
|
115
|
-
from {
|
|
116
|
-
transform: rotate(0deg);
|
|
117
|
-
}
|
|
118
|
-
to {
|
|
119
|
-
transform: rotate(360deg);
|
|
120
|
-
}
|
|
121
|
-
}",
|
|
122
|
-
"toString": [Function],
|
|
123
|
-
},
|
|
124
|
-
},
|
|
125
|
-
"appBorderColor": "rgba(0,0,0,.1)",
|
|
126
|
-
"appBorderRadius": 4,
|
|
127
|
-
"background": Object {
|
|
128
|
-
"app": "#F6F9FC",
|
|
129
|
-
"bar": "#FFFFFF",
|
|
130
|
-
"content": "#FFFFFF",
|
|
131
|
-
"critical": "#FF4400",
|
|
132
|
-
"gridCellSize": 10,
|
|
133
|
-
"hoverable": "rgba(0,0,0,.05)",
|
|
134
|
-
"negative": "#FEDED2",
|
|
135
|
-
"positive": "#E1FFD4",
|
|
136
|
-
"warning": "#FFF5CF",
|
|
137
|
-
},
|
|
138
|
-
"barBg": "#FFFFFF",
|
|
139
|
-
"barSelectedColor": "#1EA7FD",
|
|
140
|
-
"barTextColor": "#999999",
|
|
141
|
-
"base": "light",
|
|
142
|
-
"brand": Object {
|
|
143
|
-
"image": undefined,
|
|
144
|
-
"title": undefined,
|
|
145
|
-
"url": undefined,
|
|
146
|
-
},
|
|
147
|
-
"code": Object {
|
|
148
|
-
"language-json .token.boolean": Object {
|
|
149
|
-
"color": "#0000ff",
|
|
150
|
-
},
|
|
151
|
-
"language-json .token.number": Object {
|
|
152
|
-
"color": "#0000ff",
|
|
153
|
-
},
|
|
154
|
-
"language-json .token.property": Object {
|
|
155
|
-
"color": "#2B91AF",
|
|
156
|
-
},
|
|
157
|
-
"namespace": Object {
|
|
158
|
-
"opacity": 0.7,
|
|
159
|
-
},
|
|
160
|
-
"token": Object {
|
|
161
|
-
"&.atrule": Object {
|
|
162
|
-
"color": "#0000ff",
|
|
163
|
-
},
|
|
164
|
-
"&.attr-name": Object {
|
|
165
|
-
"color": "#ff0000",
|
|
166
|
-
},
|
|
167
|
-
"&.attr-value": Object {
|
|
168
|
-
"color": "#0000ff",
|
|
169
|
-
},
|
|
170
|
-
"&.bold": Object {
|
|
171
|
-
"fontWeight": "bold",
|
|
172
|
-
},
|
|
173
|
-
"&.boolean": Object {
|
|
174
|
-
"color": "#36acaa",
|
|
175
|
-
},
|
|
176
|
-
"&.cdata": Object {
|
|
177
|
-
"color": "#008000",
|
|
178
|
-
"fontStyle": "italic",
|
|
179
|
-
},
|
|
180
|
-
"&.class-name": Object {
|
|
181
|
-
"color": "#2B91AF",
|
|
182
|
-
},
|
|
183
|
-
"&.comment": Object {
|
|
184
|
-
"color": "#008000",
|
|
185
|
-
"fontStyle": "italic",
|
|
186
|
-
},
|
|
187
|
-
"&.constant": Object {
|
|
188
|
-
"color": "#36acaa",
|
|
189
|
-
},
|
|
190
|
-
"&.deleted": Object {
|
|
191
|
-
"color": "#9a050f",
|
|
192
|
-
},
|
|
193
|
-
"&.directive.tag .tag": Object {
|
|
194
|
-
"background": "#ffff00",
|
|
195
|
-
"color": "#393A34",
|
|
196
|
-
},
|
|
197
|
-
"&.doctype": Object {
|
|
198
|
-
"color": "#008000",
|
|
199
|
-
"fontStyle": "italic",
|
|
200
|
-
},
|
|
201
|
-
"&.entity": Object {
|
|
202
|
-
"color": "#ff0000",
|
|
203
|
-
},
|
|
204
|
-
"&.function": Object {
|
|
205
|
-
"color": "#393A34",
|
|
206
|
-
},
|
|
207
|
-
"&.important": Object {
|
|
208
|
-
"fontWeight": "bold",
|
|
209
|
-
},
|
|
210
|
-
"&.inserted": Object {
|
|
211
|
-
"color": "#36acaa",
|
|
212
|
-
},
|
|
213
|
-
"&.italic": Object {
|
|
214
|
-
"fontStyle": "italic",
|
|
215
|
-
},
|
|
216
|
-
"&.keyword": Object {
|
|
217
|
-
"color": "#0000ff",
|
|
218
|
-
},
|
|
219
|
-
"&.number": Object {
|
|
220
|
-
"color": "#36acaa",
|
|
221
|
-
},
|
|
222
|
-
"&.operator": Object {
|
|
223
|
-
"color": "#393A34",
|
|
224
|
-
},
|
|
225
|
-
"&.prolog": Object {
|
|
226
|
-
"color": "#008000",
|
|
227
|
-
"fontStyle": "italic",
|
|
228
|
-
},
|
|
229
|
-
"&.property": Object {
|
|
230
|
-
"color": "#ff0000",
|
|
231
|
-
},
|
|
232
|
-
"&.punctuation": Object {
|
|
233
|
-
"color": "#393A34",
|
|
234
|
-
},
|
|
235
|
-
"&.regex": Object {
|
|
236
|
-
"color": "#ff0000",
|
|
237
|
-
},
|
|
238
|
-
"&.selector": Object {
|
|
239
|
-
"color": "#800000",
|
|
240
|
-
},
|
|
241
|
-
"&.string": Object {
|
|
242
|
-
"color": "#A31515",
|
|
243
|
-
},
|
|
244
|
-
"&.symbol": Object {
|
|
245
|
-
"color": "#36acaa",
|
|
246
|
-
},
|
|
247
|
-
"&.tag": Object {
|
|
248
|
-
"color": "#800000",
|
|
249
|
-
},
|
|
250
|
-
"&.url": Object {
|
|
251
|
-
"color": "#36acaa",
|
|
252
|
-
},
|
|
253
|
-
"&.variable": Object {
|
|
254
|
-
"color": "#36acaa",
|
|
255
|
-
},
|
|
256
|
-
"WebkitFontSmoothing": "antialiased",
|
|
257
|
-
"fontFamily": "\\"Operator Mono\\", \\"Fira Code Retina\\", \\"Fira Code\\", \\"FiraCode-Retina\\", \\"Andale Mono\\", \\"Lucida Console\\", Consolas, Monaco, monospace",
|
|
258
|
-
},
|
|
259
|
-
},
|
|
260
|
-
"color": Object {
|
|
261
|
-
"ancillary": "#22a699",
|
|
262
|
-
"border": "rgba(0,0,0,.1)",
|
|
263
|
-
"critical": "#FFFFFF",
|
|
264
|
-
"dark": "#666666",
|
|
265
|
-
"darker": "#444444",
|
|
266
|
-
"darkest": "#333333",
|
|
267
|
-
"defaultText": "#333333",
|
|
268
|
-
"gold": "#FFAE00",
|
|
269
|
-
"green": "#66BF3C",
|
|
270
|
-
"inverseText": "#FFFFFF",
|
|
271
|
-
"light": "#F3F3F3",
|
|
272
|
-
"lighter": "#F8F8F8",
|
|
273
|
-
"lightest": "#FFFFFF",
|
|
274
|
-
"medium": "#DDDDDD",
|
|
275
|
-
"mediumdark": "#999999",
|
|
276
|
-
"mediumlight": "#EEEEEE",
|
|
277
|
-
"negative": "#FF4400",
|
|
278
|
-
"orange": "#FC521F",
|
|
279
|
-
"positive": "#66BF3C",
|
|
280
|
-
"primary": "#FF4785",
|
|
281
|
-
"purple": "#6F2CAC",
|
|
282
|
-
"seafoam": "#37D5D3",
|
|
283
|
-
"secondary": "#1EA7FD",
|
|
284
|
-
"tertiary": "#FAFBFC",
|
|
285
|
-
"ultraviolet": "#2A0481",
|
|
286
|
-
"warning": "#E69D00",
|
|
287
|
-
},
|
|
288
|
-
"easing": Object {
|
|
289
|
-
"rubber": "cubic-bezier(0.175, 0.885, 0.335, 1.05)",
|
|
290
|
-
},
|
|
291
|
-
"input": Object {
|
|
292
|
-
"background": "#FFFFFF",
|
|
293
|
-
"border": "rgba(0,0,0,.1)",
|
|
294
|
-
"borderRadius": 4,
|
|
295
|
-
"color": "#333333",
|
|
296
|
-
},
|
|
297
|
-
"layoutMargin": 10,
|
|
298
|
-
"typography": Object {
|
|
299
|
-
"fonts": Object {
|
|
300
|
-
"base": "\\"Nunito Sans\\", -apple-system, \\".SFNSText-Regular\\", \\"San Francisco\\", BlinkMacSystemFont, \\"Segoe UI\\", \\"Helvetica Neue\\", Helvetica, Arial, sans-serif",
|
|
301
|
-
"mono": "\\"Operator Mono\\", \\"Fira Code Retina\\", \\"Fira Code\\", \\"FiraCode-Retina\\", \\"Andale Mono\\", \\"Lucida Console\\", Consolas, Monaco, monospace",
|
|
302
|
-
},
|
|
303
|
-
"size": Object {
|
|
304
|
-
"code": 90,
|
|
305
|
-
"l1": 32,
|
|
306
|
-
"l2": 40,
|
|
307
|
-
"l3": 48,
|
|
308
|
-
"m1": 20,
|
|
309
|
-
"m2": 24,
|
|
310
|
-
"m3": 28,
|
|
311
|
-
"s1": 12,
|
|
312
|
-
"s2": 14,
|
|
313
|
-
"s3": 16,
|
|
314
|
-
},
|
|
315
|
-
"weight": Object {
|
|
316
|
-
"black": 900,
|
|
317
|
-
"bold": 700,
|
|
318
|
-
"regular": 400,
|
|
319
|
-
},
|
|
320
|
-
},
|
|
321
|
-
}
|
|
322
|
-
}
|
|
323
|
-
>
|
|
324
|
-
<ConnectFunction>
|
|
325
|
-
<HighlightToggle
|
|
326
|
-
addElement={[Function]}
|
|
327
|
-
elementsToHighlight={Array []}
|
|
328
|
-
highlightedElementsMap={Map {}}
|
|
329
|
-
indeterminate={false}
|
|
330
|
-
isToggledOn={false}
|
|
331
|
-
>
|
|
332
|
-
<Styled(input)
|
|
333
|
-
aria-label="Highlight result"
|
|
334
|
-
checked={false}
|
|
335
|
-
disabled={true}
|
|
336
|
-
onChange={[Function]}
|
|
337
|
-
type="checkbox"
|
|
338
|
-
>
|
|
339
|
-
<input
|
|
340
|
-
aria-label="Highlight result"
|
|
341
|
-
checked={false}
|
|
342
|
-
className="emotion-0"
|
|
343
|
-
disabled={true}
|
|
344
|
-
onChange={[Function]}
|
|
345
|
-
type="checkbox"
|
|
346
|
-
/>
|
|
347
|
-
</Styled(input)>
|
|
348
|
-
</HighlightToggle>
|
|
349
|
-
</ConnectFunction>
|
|
350
|
-
</ThemeProvider>
|
|
351
|
-
</ThemedHighlightToggle>
|
|
352
|
-
</Provider>
|
|
353
|
-
`;
|