1 | "use strict";
|
2 |
|
3 | var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4 |
|
5 | exports.__esModule = true;
|
6 | exports["default"] = void 0;
|
7 |
|
8 | var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
9 |
|
10 | 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; }
|
11 |
|
12 | 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; }
|
13 |
|
14 | var themedProps = {
|
15 | light: {
|
16 | borderColor: "inherit",
|
17 | _active: {
|
18 | bg: "gray.200"
|
19 | }
|
20 | },
|
21 | dark: {
|
22 | color: "whiteAlpha.800",
|
23 | borderColor: "whiteAlpha.300",
|
24 | _active: {
|
25 | bg: "whiteAlpha.300"
|
26 | }
|
27 | }
|
28 | };
|
29 |
|
30 | var styleProps = function styleProps(_ref) {
|
31 | var colorMode = _ref.colorMode,
|
32 | size = _ref.size;
|
33 | return _objectSpread({
|
34 | borderLeft: "1px",
|
35 | _first: {
|
36 | roundedTopRight: size === "sm" ? 1 : 3
|
37 | },
|
38 | _last: {
|
39 | roundedBottomRight: size === "sm" ? 1 : 3,
|
40 | mt: "-1px",
|
41 | borderTopWidth: 1
|
42 | },
|
43 | _disabled: {
|
44 | opacity: 0.4,
|
45 | cursor: "not-allowed"
|
46 | }
|
47 | }, themedProps[colorMode]);
|
48 | };
|
49 |
|
50 | var _default = styleProps;
|
51 | exports["default"] = _default; |
\ | No newline at end of file |