1 | "use strict";
|
2 |
|
3 | var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
4 |
|
5 | var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
6 |
|
7 | exports.__esModule = true;
|
8 | exports["default"] = void 0;
|
9 |
|
10 | var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
11 |
|
12 | var _IconPaths = _interopRequireDefault(require("../IconPaths"));
|
13 |
|
14 | var _colors = _interopRequireDefault(require("./colors"));
|
15 |
|
16 | var _sizes = _interopRequireWildcard(require("./sizes"));
|
17 |
|
18 | var _typography = _interopRequireDefault(require("./typography"));
|
19 |
|
20 | function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
21 |
|
22 | function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
23 |
|
24 | var space = _sizes.baseSizes;
|
25 | var shadows = {
|
26 | sm: "0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",
|
27 | md: "0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",
|
28 | lg: "0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",
|
29 | xl: "0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)",
|
30 | "2xl": "0 25px 50px -12px rgba(0, 0, 0, 0.25)",
|
31 | outline: "0 0 0 3px rgba(66, 153, 225, 0.6)",
|
32 | inner: "inset 0 2px 4px 0 rgba(0,0,0,0.06)",
|
33 | none: "none"
|
34 | };
|
35 | var breakpoints = ["30em", "48em", "62em", "80em"];
|
36 |
|
37 | breakpoints.sm = breakpoints[0];
|
38 | breakpoints.md = breakpoints[1];
|
39 | breakpoints.lg = breakpoints[2];
|
40 | breakpoints.xl = breakpoints[3];
|
41 | var zIndices = {
|
42 | hide: -1,
|
43 | auto: "auto",
|
44 | base: 0,
|
45 | docked: 10,
|
46 | dropdown: 1000,
|
47 | sticky: 1100,
|
48 | banner: 1200,
|
49 | overlay: 1300,
|
50 | modal: 1400,
|
51 | popover: 1500,
|
52 | skipLink: 1600,
|
53 | toast: 1700,
|
54 | tooltip: 1800
|
55 | };
|
56 | var radii = {
|
57 | none: "0",
|
58 | sm: "0.125rem",
|
59 | md: "0.25rem",
|
60 | lg: "0.5rem",
|
61 | full: "9999px"
|
62 | };
|
63 | var opacity = {
|
64 | "0": "0",
|
65 | "20%": "0.2",
|
66 | "40%": "0.4",
|
67 | "60%": "0.6",
|
68 | "80%": "0.8",
|
69 | "100%": "1"
|
70 | };
|
71 | var borders = {
|
72 | none: 0,
|
73 | "1px": "1px solid",
|
74 | "2px": "2px solid",
|
75 | "4px": "4px solid"
|
76 | };
|
77 |
|
78 |
|
79 |
|
80 |
|
81 |
|
82 |
|
83 |
|
84 |
|
85 |
|
86 | var theme = _objectSpread({
|
87 | breakpoints: breakpoints,
|
88 | zIndices: zIndices,
|
89 | radii: radii,
|
90 | opacity: opacity,
|
91 | borders: borders,
|
92 | colors: _colors["default"]
|
93 | }, _typography["default"], {
|
94 | sizes: _sizes["default"],
|
95 | shadows: shadows,
|
96 | space: space,
|
97 | icons: _IconPaths["default"]
|
98 | });
|
99 |
|
100 | var _default = theme;
|
101 | exports["default"] = _default; |
\ | No newline at end of file |