UNPKG

kepler.gl

Version:

kepler.gl is a webgl based application to visualize large scale location data in the browser

37 lines (36 loc) 5.7 kB
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral")); var _react = _interopRequireDefault(require("react")); var _styledComponents = _interopRequireDefault(require("styled-components")); var _templateObject, _templateObject2; // SPDX-License-Identifier: MIT // Copyright contributors to the kepler.gl project var StyledSidePanelTitle = _styledComponents["default"].div.attrs({ className: 'panel-title' })(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n color: ", ";\n font-size: ", ";\n line-height: ", ";\n font-weight: 400;\n letter-spacing: 1.25px;\n"])), function (props) { return props.theme.titleTextColor; }, function (props) { return props.theme.sidePanelTitleFontsize; }, function (props) { return props.theme.sidePanelTitleLineHeight; }); var PanelHeaderRow = _styledComponents["default"].div.attrs({ className: 'side-panel-header-row' })(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-top: 0px;\n margin-bottom: 8px;\n"]))); var SidePanelTitleFactory = function SidePanelTitleFactory() { var SidePanelTitle = function SidePanelTitle(_ref) { var title = _ref.title, className = _ref.className, children = _ref.children; return /*#__PURE__*/_react["default"].createElement(PanelHeaderRow, null, /*#__PURE__*/_react["default"].createElement(StyledSidePanelTitle, { className: className || 'side-panel-title' }, title), children); }; return SidePanelTitle; }; var _default = exports["default"] = SidePanelTitleFactory; //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJfcmVhY3QiLCJfaW50ZXJvcFJlcXVpcmVEZWZhdWx0IiwicmVxdWlyZSIsIl9zdHlsZWRDb21wb25lbnRzIiwiX3RlbXBsYXRlT2JqZWN0IiwiX3RlbXBsYXRlT2JqZWN0MiIsIlN0eWx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