UNPKG

kepler.gl

Version:

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

40 lines (39 loc) 5.88 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 _classnames = _interopRequireDefault(require("classnames")); var _templateObject, _templateObject2; // SPDX-License-Identifier: MIT // Copyright contributors to the kepler.gl project var StyledPanelTitle = _styledComponents["default"].div.attrs(function (props) { return { className: (0, _classnames["default"])('panel-title', props.className) }; })(_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: 'layer-manager-header' })(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-top: 16px;\n margin-bottom: 32px;\n"]))); var PanelTitleFactory = function PanelTitleFactory() { var PanelTitle = function PanelTitle(_ref) { var title = _ref.title, className = _ref.className, children = _ref.children; return /*#__PURE__*/_react["default"].createElement(PanelHeaderRow, null, /*#__PURE__*/_react["default"].createElement(StyledPanelTitle, { className: className || 'panel-title' }, title), children); }; return PanelTitle; }; var _default = exports["default"] = PanelTitleFactory; //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJfcmVhY3QiLCJfaW50ZXJvcFJlcXVpcmVEZWZhdWx0IiwicmVxdWlyZSIsIl9zdHlsZWRDb21wb25lbnRzIiwiX2NsYXNzbmFtZXMiLCJfdGVtcGxhd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