kepler.gl
Version:
kepler.gl is a webgl based application to visualize large scale location data in the browser
28 lines (27 loc) • 4.71 kB
JavaScript
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("/Users/ihordykhta/Desktop/unfolded/kepler.gl/node_modules/react"));
var _styledComponents = _interopRequireDefault(require("/Users/ihordykhta/Desktop/unfolded/kepler.gl/node_modules/styled-components"));
var _src = require("/Users/ihordykhta/Desktop/unfolded/kepler.gl/src/constants/src");
var _fieldToken = _interopRequireDefault(require("../../common/field-token"));
var _templateObject; // SPDX-License-Identifier: MIT
// Copyright contributors to the kepler.gl project
var StyledSyncTimeHeader = _styledComponents["default"].div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n color: ", ";\n flex: 1;\n cursor: auto;\n display: grid;\n align-items: center;\n grid-column-gap: 8px;\n grid-auto-columns: min-content;\n grid-auto-flow: column;\n"])), function (props) {
return props.theme.subtextColor;
});
TimeSyncedFieldSelectorFactory.deps = [_fieldToken["default"]];
function TimeSyncedFieldSelectorFactory(FieldToken) {
var TimeSyncedFieldSelector = function TimeSyncedFieldSelector() {
return /*#__PURE__*/_react["default"].createElement(StyledSyncTimeHeader, null, /*#__PURE__*/_react["default"].createElement(FieldToken, {
type: _src.ALL_FIELD_TYPES.timestamp
}), /*#__PURE__*/_react["default"].createElement("span", null, "Synced"));
};
return TimeSyncedFieldSelector;
}
var _default = exports["default"] = TimeSyncedFieldSelectorFactory;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJfcmVhY3QiLCJfaW50ZXJvcFJlcXVpcmVEZWZhdWx0IiwicmVxdWlyZSIsIl9zdHlsZWRDb21wb25lbnRzIiwiX3NyYyIsIl9maWVsZFRva2VuIiwiX3RlbX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