1 | (function (global, factory) {
|
2 | if (typeof define === "function" && define.amd) {
|
3 | define(['exports'], factory);
|
4 | } else if (typeof exports !== "undefined") {
|
5 | factory(exports);
|
6 | } else {
|
7 | var mod = {
|
8 | exports: {}
|
9 | };
|
10 | factory(mod.exports);
|
11 | global.resetRules = mod.exports;
|
12 | }
|
13 | })(this, function (exports) {
|
14 | 'use strict';
|
15 |
|
16 | Object.defineProperty(exports, "__esModule", {
|
17 | value: true
|
18 | });
|
19 |
|
20 | var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
|
21 | return typeof obj;
|
22 | } : function (obj) {
|
23 | return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
24 | };
|
25 |
|
26 | var resetSizes = {
|
27 | margin: 0,
|
28 | padding: 0,
|
29 | border: 0,
|
30 | fontSize: '100%',
|
31 | font: 'inherit',
|
32 | verticalAlign: 'baseline'
|
33 | };
|
34 |
|
35 | function isObject(variable) {
|
36 | return variable !== null && (typeof variable === 'undefined' ? 'undefined' : _typeof(variable)) === 'object';
|
37 | }
|
38 |
|
39 | function getReset() {
|
40 | var value = arguments.length <= 0 || arguments[0] === undefined ? 'initial' : arguments[0];
|
41 |
|
42 | if (isObject(value)) {
|
43 | return value;
|
44 | }
|
45 |
|
46 | switch (value) {
|
47 | case 'sizes':
|
48 | return resetSizes;
|
49 |
|
50 | case 'initial':
|
51 | default:
|
52 | return {
|
53 | all: 'initial'
|
54 | };
|
55 | }
|
56 | }
|
57 |
|
58 | exports.default = getReset;
|
59 | }); |
\ | No newline at end of file |