kepler.gl
Version:
kepler.gl is a webgl based application to visualize large scale location data in the browser
25 lines (24 loc) • 4.13 kB
JavaScript
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = exports.IconButton = void 0;
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
var _styledComponents = _interopRequireDefault(require("styled-components"));
var _styledComponents2 = require("./styled-components");
var _templateObject; // SPDX-License-Identifier: MIT
// Copyright contributors to the kepler.gl project
var IconButton = exports.IconButton = (0, _styledComponents["default"])(_styledComponents2.Button)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n width: ", "px;\n height: 32px;\n color: ", ";\n background-color: ", ";\n border-radius: 4px;\n margin-left: 7px;\n border: 0;\n padding: 0;\n\n .__react_component_tooltip {\n font-family: ", ";\n }\n svg {\n margin: 0;\n }\n &.active {\n background-color: ", ";\n }\n"])), function (props) {
return props.collapsed ? 0 : 32;
}, function (props) {
return props.theme.playbackButtonColor;
}, function (props) {
return props.theme.playbackButtonBgColor;
}, function (props) {
return props.theme.fontFamily;
}, function (props) {
return props.theme.playbackButtonActBgColor;
});
var _default = exports["default"] = IconButton;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJfc3R5bGVkQ29tcG9uZW50cyIsIl9pbnRlcm9wUmVxdWlyZURlZmF1bHQiLCJyZXF1aXJlIiwiX3N0eWxlZENvbXBvbmVudHMyIiwiX3RlbXBsYXRlT2JqZWN0IiwiSWNvbkJ1dHRvbiIsImV4cG9ydHMiLCJzdHlsZWQiLCJCdXR0b24iLCJfdGFnZ2VkVGVtcGxhdGVMaXRlcmFsMiIsInByb3BzIiwiY29sbGFwc2VkIiwidGhlbWUiLCJwbGF5YmFja0J1dHRvbkNvbG9yIiwicGxheWJhY2tCdXR0b25CZ0NvbG9yIiwiZm9udEZhbWlseSIsInBsYXliY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