kepler.gl
Version:
kepler.gl is a webgl based application to visualize large scale location data in the browser
37 lines (36 loc) • 6.27 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("react"));
var _styledComponents = _interopRequireDefault(require("styled-components"));
var _loadingSpinner = _interopRequireDefault(require("../common/loading-spinner"));
var _localization = require("@kepler.gl/localization");
var _templateObject, _templateObject2; // SPDX-License-Identifier: MIT
// Copyright contributors to the kepler.gl project
var StyledSpinner = _styledComponents["default"].div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n text-align: center;\n\n span {\n margin: 0 auto;\n }\n"])));
var StyledLoadingDialog = _styledComponents["default"].div.attrs({
className: 'data-loading-dialog'
})(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n align-items: center;\n justify-content: center;\n flex-grow: 1;\n\n .loading-content {\n display: flex;\n justify-content: center;\n align-items: center;\n }\n\n .loading-message {\n margin-left: 32px;\n color: ", ";\n font-weight: 500;\n font-size: 14px;\n }\n"])), function (props) {
return props.theme.titleColorLT;
});
var LoadingDialog = function LoadingDialog(_ref) {
var _ref$size = _ref.size,
size = _ref$size === void 0 ? 64 : _ref$size,
_ref$message = _ref.message,
message = _ref$message === void 0 ? 'modal.loadingDialog.loading' : _ref$message;
return /*#__PURE__*/_react["default"].createElement(StyledLoadingDialog, null, /*#__PURE__*/_react["default"].createElement("div", {
className: "loading-content"
}, /*#__PURE__*/_react["default"].createElement(StyledSpinner, null, /*#__PURE__*/_react["default"].createElement(_loadingSpinner["default"], {
size: size
})), /*#__PURE__*/_react["default"].createElement("div", {
className: "loading-message"
}, /*#__PURE__*/_react["default"].createElement(_localization.FormattedMessage, {
id: message
}))));
};
var _default = exports["default"] = LoadingDialog;
//# sourceMappingUR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