1 | "use strict";
|
2 |
|
3 | exports.__esModule = true;
|
4 | exports["default"] = buttons;
|
5 | var _statefulSelectors = _interopRequireDefault(require("../internalHelpers/_statefulSelectors"));
|
6 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
7 | var stateMap = [undefined, null, 'active', 'focus', 'hover'];
|
8 | function template(state) {
|
9 | return "button" + state + ",\n input[type=\"button\"]" + state + ",\n input[type=\"reset\"]" + state + ",\n input[type=\"submit\"]" + state;
|
10 | }
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 |
|
34 |
|
35 |
|
36 |
|
37 |
|
38 | function buttons() {
|
39 | for (var _len = arguments.length, states = new Array(_len), _key = 0; _key < _len; _key++) {
|
40 | states[_key] = arguments[_key];
|
41 | }
|
42 | return (0, _statefulSelectors["default"])(states, template, stateMap);
|
43 | }
|
44 | module.exports = exports.default; |
\ | No newline at end of file |