UNPKG

calcite-react

Version:
80 lines (69 loc) 3.66 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.StyledSpanCrumb = exports.StyledCrumb = exports.StyledBreadcrumbs = void 0; var _styledComponents = _interopRequireWildcard(require("styled-components")); var _helpers = require("../utils/helpers"); var _color = require("../utils/color"); var _CalciteThemeProvider = require("../CalciteThemeProvider"); var _Elements = require("../Elements"); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } // Copyright 2019 Esri // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License.​ // styled-components // Utils, common elements // Calcite theme and Esri colors // Calcite components // Icons // Third party libraries var StyledBreadcrumbs = _styledComponents.default.nav.withConfig({ displayName: "StyledBreadcrumbs", componentId: "z9j3tq-0" })(["", ";color:", ";display:flex;"], (0, _helpers.fontSize)(-2), function (props) { return props.theme.palette.darkerGray; }); exports.StyledBreadcrumbs = StyledBreadcrumbs; StyledBreadcrumbs.defaultProps = { theme: _CalciteThemeProvider.CalciteTheme }; var StyledCrumb = (0, _styledComponents.default)(_Elements.CalciteA).withConfig({ displayName: "StyledCrumb", componentId: "z9j3tq-1" })(["color:", ";&::before{content:'", "';color:", ";font-weight:400;display:inline-block;padding:0 0.5rem;}&:first-child::before{display:none;}&:last-child{font-weight:600;}", ";"], function (props) { return props.theme.palette.darkerGray; }, function (props) { return props.dividerCharacter; }, function (props) { return props.theme.palette.darkerGray; }, function (props) { return props.white && (0, _styledComponents.css)(["color:", ";", ";&::before{color:", ";}"], props.theme.palette.white, (0, _color.linkColor)(props.theme.palette.white, props.theme.palette.lightestGray), props.theme.palette.white); }); exports.StyledCrumb = StyledCrumb; StyledCrumb.defaultProps = { theme: _CalciteThemeProvider.CalciteTheme }; var StyledSpanCrumb = _styledComponents.default.span.withConfig({ displayName: "StyledSpanCrumb", componentId: "z9j3tq-2" })(["color:", ";&::before{content:'", "';color:", ";font-weight:400;display:inline-block;padding:0 0.5rem;}&:first-child::before{display:none;}&:last-child{font-weight:600;}", ";"], function (props) { return props.theme.palette.darkerGray; }, function (props) { return props.dividerCharacter; }, function (props) { return props.theme.palette.darkerGray; }, function (props) { return props.white && (0, _styledComponents.css)(["color:", ";&::before{color:", ";}"], props.theme.palette.white, props.theme.palette.white); }); exports.StyledSpanCrumb = StyledSpanCrumb; StyledSpanCrumb.defaultProps = { theme: _CalciteThemeProvider.CalciteTheme };