UNPKG

calcite-react

Version:
121 lines (103 loc) 24.4 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _react = _interopRequireWildcard(require("react")); var _propTypes = _interopRequireDefault(require("prop-types")); var _styledComponents = require("styled-components"); var _helpers = require("../utils/helpers"); var _CalciteTheme = _interopRequireDefault(require("./CalciteTheme")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 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; } } function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } function _templateObject() { var data = _taggedTemplateLiteral(["\n html {\n height: 100%;\n font-size: 100%;\n }\n\n body {\n min-height: 100%;\n margin: 0;\n\n tracking: 0;\n font-family: ", ";\n line-height: 1.55rem;\n color: #4c4c4c;\n background-color: #ffffff;\n\n -webkit-font-smoothing: subpixel-antialiased;\n\n font-feature-settings: \"kern\";\n\n font-kerning: normal;\n text-rendering: optimizeLegibility;\n font-feature-settings : \"liga\" 1,\"calt\" 0;\n }\n\n .wrapper {\n overflow: hidden;\n }\n\n article,\n aside,\n details,\n figcaption,\n figure,\n footer,\n header,\n hgroup,\n nav,\n section,\n summary {\n display: block;\n }\n\n audio,\n canvas,\n video {\n display: inline-block;\n }\n\n audio:not([controls]) {\n display: none;\n height: 0;\n }\n\n [hidden] {\n display: none;\n }\n\n svg:not(:root) {\n overflow: hidden;\n }\n\n video,\n img {\n max-width: 100%;\n height: auto;\n }\n\n .ie {\n main {\n display: block;\n }\n\n select {\n padding-right: 8px;\n }\n }\n\n /* DatePicker */\n\n .SingleDatePicker_picker,\n .DateRangePicker_picker {\n margin-top: -20px;\n z-index: 101 !important;\n\n .DayPickerKeyboardShortcuts_buttonReset {\n font-size: 0.875rem;\n }\n .DayPickerKeyboardShortcuts_show__bottomRight::before {\n border-right-color: ", ";\n }\n .DayPickerKeyboardShortcuts_show__bottomRight:hover::before {\n border-right-color: ", ";\n }\n .DayPickerKeyboardShortcuts_show__topRight::before {\n border-right-color: ", ";\n }\n .DayPickerKeyboardShortcuts_show__topRight:hover::before {\n border-right-color: ", ";\n }\n .DayPickerKeyboardShortcuts_show__topLeft::before {\n border-left-color: ", ";\n }\n .DayPickerKeyboardShortcuts_show__topLeft:hover::before {\n border-left-color: ", ";\n }\n .DayPickerKeyboardShortcuts_panel {\n border: 1px solid ", ";\n border-radius: ", ";\n }\n .DayPickerKeyboardShortcuts_list {\n font-size: 0.875rem;\n }\n .CalendarDay {\n font-size: 0.875rem;\n }\n .CalendarDay__default {\n color: #565a5c;\n }\n .CalendarDay__outside {\n color: #565a5c;\n }\n .CalendarDay__highlighted_calendar {\n color: #565a5c;\n }\n .CalendarDay__highlighted_calendar:active,\n .CalendarDay__highlighted_calendar:hover {\n color: #565a5c;\n }\n .CalendarDay__selected_span {\n background: ", ";\n border: 1px double ", ";\n color: ", ";\n }\n .CalendarDay__selected_span:active,\n .CalendarDay__selected_span:hover {\n background: ", ";\n border: 1px double ", ";\n color: #fff;\n }\n .CalendarDay__selected,\n .CalendarDay__selected:active,\n .CalendarDay__selected:hover {\n background: ", ";\n border: 1px double ", ";\n color: #fff;\n }\n .CalendarDay__hovered_span,\n .CalendarDay__hovered_span:hover {\n background: ", ";\n border: 1px double ", ";\n color: ", ";\n }\n .CalendarDay__hovered_span:active {\n background: ", ";\n border: 1px double ", ";\n color: ", ";\n }\n .CalendarDay__blocked_calendar,\n .CalendarDay__blocked_calendar:active,\n .CalendarDay__blocked_calendar:hover {\n color: #82888a;\n }\n .CalendarDay__blocked_out_of_range,\n .CalendarDay__blocked_out_of_range:active,\n .CalendarDay__blocked_out_of_range:hover {\n color: #cacccd;\n }\n .CalendarMonth_caption {\n color: #565a5c;\n font-size: 0.9375rem;\n }\n .DayPickerNavigation_button__horizontalDefault {\n border-radius: ", ";\n }\n .DayPickerNavigation_svg__vertical {\n fill: #565a5c;\n }\n .DayPicker__withBorder {\n box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05),\n 0 0 0 1px ", ";\n border-radius: ", ";\n }\n .DayPicker_weekHeaders {\n display: none;\n }\n .DayPicker_weekHeader__verticalScrollable {\n border-bottom: 1px solid ", ";\n }\n .DayPicker_weekHeader_ul {\n font-size: 0.875rem;\n }\n .DayPicker_transitionContainer {\n border-radius: ", ";\n }\n }\n\n /* Toastify */\n\n .Toastify__toast-container.Toastify__toast-container {\n width: ", ";\n\n &--top-center,\n &--bottom-center {\n margin-left: ", ";\n }\n }\n\n .Toastify__toast.Toastify__toast {\n padding: 0.775rem;\n box-shadow: ", ";\n border-top: 3px solid ", ";\n border-radius: 3px;\n font-family: ", ";\n color: ", ";\n background: ", ";\n\n &--info {\n border-top-color: ", ";\n background: ", ";\n }\n &--success {\n border-top-color: ", ";\n background: ", ";\n }\n &--warning {\n border-top-color: ", ";\n background: ", ";\n }\n &--error {\n border-top-color: ", ";\n background: ", ";\n }\n }\n\n .Toastify__toast .Toastify__toast-body {\n ", ";\n }\n\n .Toastify__progress-bar.Toastify__progress-bar {\n visibility: hidden;\n\n &--default {\n background: ", ";\n }\n\n &.progress-visible {\n visibility: visible;\n }\n\n ", ";\n }\n\n /* FORM PSEUDO ELEMENTS */\n\n :placeholder {\n color: #767676;\n }\n :input-placeholder {\n color: #767676;\n }\n ::-webkit-input-placeholder {\n color: #767676;\n }\n ::-moz-placeholder {\n color: #767676;\n }\n :-ms-input-placeholder {\n color: #767676;\n }\n ::-ms-value {\n border: none;\n background-color: transparent;\n }\n\n /* Type */\n @font-face {\n font-family: 'Avenir Next';\n src: url('https://webapps-cdn.esri.com/CDN/fonts/v1.0.0/77156710-6a58-4606-b189-b4185e75967b.woff2')\n format('woff2'),\n url('https://webapps-cdn.esri.com/CDN/fonts/v1.0.0/3d5260a1-e4cd-4567-80ed-69d23c40355f.woff')\n format('woff');\n font-weight: 300;\n font-style: normal;\n }\n\n @font-face {\n font-family: 'Avenir Next';\n src: url('https://webapps-cdn.esri.com/CDN/fonts/v1.0.0/77caabd3-1877-4634-85c8-8e398a093b99.woff2')\n format('woff2'),\n url('https://webapps-cdn.esri.com/CDN/fonts/v1.0.0/e388ac99-8c6a-4451-8690-1d15b4d45adb.woff')\n format('woff');\n font-weight: 400;\n font-style: normal;\n }\n\n @font-face {\n font-family: 'Avenir Next';\n src: url('https://webapps-cdn.esri.com/CDN/fonts/v1.0.0/014f2daa-c310-4a36-b9fd-79a8e0c48d44.woff2')\n format('woff2'),\n url('https://webapps-cdn.esri.com/CDN/fonts/v1.0.0/12b00842-ec20-4c7f-aa72-802fb00f6cc4.woff')\n format('woff');\n font-weight: 400;\n font-style: italic;\n }\n\n @font-face {\n font-family: 'Avenir Next';\n src: url('https://webapps-cdn.esri.com/CDN/fonts/v1.0.0/e78b17bb-11fb-4860-8d66-4ee0d0c1e117.woff2')\n format('woff2'),\n url('https://webapps-cdn.esri.com/CDN/fonts/v1.0.0/d4ffabb3-dd7c-472a-bdfb-6700383c6354.woff')\n format('woff');\n font-weight: 700;\n font-style: normal;\n }\n\n @font-face {\n font-family: 'Avenir Next';\n src: url('https://webapps-cdn.esri.com/CDN/fonts/v1.0.0/77156710-6a58-4606-b189-b4185e75967b-ext.woff2')\n format('woff2'),\n url('https://webapps-cdn.esri.com/CDN/fonts/v1.0.0/3d5260a1-e4cd-4567-80ed-69d23c40355f-ext.woff')\n format('woff');\n font-weight: 300;\n font-style: normal;\n unicode-range: U+0100-017f, U+0180-024f, U+1-1eff, U+02b0-02ff;\n }\n\n @font-face {\n font-family: 'Avenir Next';\n src: url('https://webapps-cdn.esri.com/CDN/fonts/v1.0.0/77caabd3-1877-4634-85c8-8e398a093b99-ext.woff2')\n format('woff2'),\n url('https://webapps-cdn.esri.com/CDN/fonts/v1.0.0/e388ac99-8c6a-4451-8690-1d15b4d45adb-ext.woff')\n format('woff');\n font-weight: 400;\n font-style: normal;\n unicode-range: U+0100-017f, U+0180-024f, U+1-1eff, U+02b0-02ff;\n }\n\n @font-face {\n font-family: 'Avenir Next';\n src: url('https://webapps-cdn.esri.com/CDN/fonts/v1.0.0/014f2daa-c310-4a36-b9fd-79a8e0c48d44-ext.woff2')\n format('woff2'),\n url('https://webapps-cdn.esri.com/CDN/fonts/v1.0.0/12b00842-ec20-4c7f-aa72-802fb00f6cc4-ext.woff')\n format('woff');\n font-weight: 400;\n font-style: italic;\n unicode-range: U+0100-017f, U+0180-024f, U+1-1eff, U+02b0-02ff;\n }\n\n @font-face {\n font-family: 'Avenir Next';\n src: url('https://webapps-cdn.esri.com/CDN/fonts/v1.0.0/9851da0a-2481-4687-bbeb-ed4ab170dc38-ext.woff2')\n format('woff2'),\n url('https://webapps-cdn.esri.com/CDN/fonts/v1.0.0/cebce072-9561-4c6d-8c89-f0cefec63289-ext.woff')\n format('woff');\n font-weight: 700;\n font-style: normal;\n unicode-range: U+0100-017f, U+0180-024f, U+1-1eff, U+02b0-02ff;\n }\n\n @font-face {\n font-family: 'Avenir Next';\n src: url('https://webapps-cdn.esri.com/CDN/fonts/v1.0.0/e78b17bb-11fb-4860-8d66-4ee0d0c1e117-ext.woff2')\n format('woff2'),\n url('https://webapps-cdn.esri.com/CDN/fonts/v1.0.0/d4ffabb3-dd7c-472a-bdfb-6700383c6354-ext.woff')\n format('woff');\n font-weight: 700;\n font-style: normal;\n unicode-range: U+0100-017f, U+0180-024f, U+1-1eff, U+02b0-02ff;\n }\n\n @font-face {\n font-family: 'Avenir Next';\n src: url('https://webapps-cdn.esri.com/CDN/fonts/v1.0.0/77156710-6a58-4606-b189-b4185e75967b-greek.woff2')\n format('woff2'),\n url('https://webapps-cdn.esri.com/CDN/fonts/v1.0.0/3d5260a1-e4cd-4567-80ed-69d23c40355f-greek.woff')\n format('woff');\n font-weight: 300;\n font-style: normal;\n unicode-range: U+0370-03ff;\n }\n\n @font-face {\n font-family: 'Avenir Next';\n src: url('https://webapps-cdn.esri.com/CDN/fonts/v1.0.0/77caabd3-1877-4634-85c8-8e398a093b99-greek.woff2')\n format('woff2'),\n url('https://webapps-cdn.esri.com/CDN/fonts/v1.0.0/e388ac99-8c6a-4451-8690-1d15b4d45adb-greek.woff')\n format('woff');\n font-weight: 400;\n font-style: normal;\n unicode-range: U+0370-03ff;\n }\n\n @font-face {\n font-family: 'Avenir Next';\n src: url('https://webapps-cdn.esri.com/CDN/fonts/v1.0.0/014f2daa-c310-4a36-b9fd-79a8e0c48d44-greek.woff2')\n format('woff2'),\n url('https://webapps-cdn.esri.com/CDN/fonts/v1.0.0/12b00842-ec20-4c7f-aa72-802fb00f6cc4-greek.woff')\n format('woff');\n font-weight: 400;\n font-style: italic;\n unicode-range: U+0370-03ff;\n }\n\n @font-face {\n font-family: 'Avenir Next';\n src: url('https://webapps-cdn.esri.com/CDN/fonts/v1.0.0/e78b17bb-11fb-4860-8d66-4ee0d0c1e117-greek.woff2')\n format('woff2'),\n url('https://webapps-cdn.esri.com/CDN/fonts/v1.0.0/d4ffabb3-dd7c-472a-bdfb-6700383c6354-greek.woff')\n format('woff');\n font-weight: 700;\n font-style: normal;\n unicode-range: U+0370-03ff;\n }\n\n @font-face {\n font-family: 'Avenir Next';\n src: url('https://webapps-cdn.esri.com/CDN/fonts/v1.0.0/174d458a-81e0-4174-9473-35e3bf0a613c.woff2')\n format('woff2'),\n url('https://webapps-cdn.esri.com/CDN/fonts/v1.0.0/57a79aa3-9b06-4ba7-a9a4-2b766d826ecf.woff')\n format('woff');\n font-weight: 300;\n font-style: normal;\n unicode-range: U+0400-04ff;\n }\n @font-face {\n font-family: 'Avenir Next';\n src: url('https://webapps-cdn.esri.com/CDN/fonts/v1.0.0/7db1f672-3a8f-4d19-9c49-7f61aed450b5.woff2')\n format('woff2'),\n url('https://webapps-cdn.esri.com/CDN/fonts/v1.0.0/4ab86b35-c0c2-42b5-98ad-4b6eba66b197.woff')\n format('woff');\n font-weight: 400;\n font-style: normal;\n unicode-range: U+0400-04ff;\n }\n @font-face {\n font-family: 'Avenir Next';\n src: url('https://webapps-cdn.esri.com/CDN/fonts/v1.0.0/b17468ea-cf53-4635-984b-4d930a68ed4d.woff2')\n format('woff2'),\n url('https://webapps-cdn.esri.com/CDN/fonts/v1.0.0/4d1d0d0d-9ea6-4117-901f-8b32ca1ab936.woff')\n format('woff');\n font-weight: 400;\n font-style: italic;\n unicode-range: U+0400-04ff;\n }\n @font-face {\n font-family: 'Avenir Next';\n src: url('https://webapps-cdn.esri.com/CDN/fonts/v1.0.0/40d36b4a-60c6-460a-bf43-4c948c23563e.woff2')\n format('woff2'),\n url('https://webapps-cdn.esri.com/CDN/fonts/v1.0.0/45b78f45-e639-4836-8612-e0892e120f14.woff')\n format('woff');\n font-weight: 700;\n font-style: normal;\n unicode-range: U+0400-04ff;\n }\n\n @font-face {\n font-family: 'Avenir Next';\n src: url('https://webapps-cdn.esri.com/CDN/fonts/v1.0.0/281f890c-8412-4ee3-84ed-8b5d062d2ab8.woff2')\n format('woff2'),\n url('https://webapps-cdn.esri.com/CDN/fonts/v1.0.0/5729f02e-f6b0-4f35-8ee5-c2cffa65fa76.woff')\n format('woff');\n font-weight: 300; // there is no 300 in georgian, so use the same files as 400 instead\n font-style: normal;\n unicode-range: U+10a0-10ff;\n }\n\n @font-face {\n font-family: 'Avenir Next';\n src: url('https://webapps-cdn.esri.com/CDN/fonts/v1.0.0/281f890c-8412-4ee3-84ed-8b5d062d2ab8.woff2')\n format('woff2'),\n url('https://webapps-cdn.esri.com/CDN/fonts/v1.0.0/5729f02e-f6b0-4f35-8ee5-c2cffa65fa76.woff')\n format('woff');\n font-weight: 400;\n font-style: normal;\n unicode-range: U+10a0-10ff;\n }\n\n @font-face {\n font-family: 'Avenir Next';\n src: url('https://webapps-cdn.esri.com/CDN/fonts/v1.0.0/2200dfff-da50-40b0-bc12-5e4b872a1998.woff2')\n format('woff2'),\n url('https://webapps-cdn.esri.com/CDN/fonts/v1.0.0/dc10b3bd-5076-4df5-a5f5-e5961f4a6938.woff')\n format('woff');\n font-weight: 700;\n font-style: normal;\n unicode-range: U+10a0-10ff;\n }\n\n @font-face {\n font-family: 'Avenir Next';\n src: url('https://webapps-cdn.esri.com/CDN/fonts/v1.0.0/2a1ae9a5-b6b5-405c-b660-bbdf1b356952.woff2')\n format('woff2'),\n url('https://webapps-cdn.esri.com/CDN/fonts/v1.0.0/a8aeea1b-1a9d-45b7-8ad9-7c71824599e2.woff')\n format('woff');\n font-weight: 300;\n font-style: normal;\n unicode-range: U+0600-06ff, U+FB50-FDFF, U+FE70-FEFF;\n }\n\n @font-face {\n font-family: 'Avenir Next';\n src: url('https://webapps-cdn.esri.com/CDN/fonts/v1.0.0/6ea5fa46-5311-450b-8744-288a30c55348.woff2')\n format('woff2'),\n url('https://webapps-cdn.esri.com/CDN/fonts/v1.0.0/d9e4040d-32ff-4a1c-ac04-927a781da1f5.woff')\n format('woff');\n font-weight: 400;\n font-style: normal;\n unicode-range: U+0600-06ff, U+FB50-FDFF, U+FE70-FEFF;\n }\n\n @font-face {\n font-family: 'Avenir Next';\n src: url('https://webapps-cdn.esri.com/CDN/fonts/v1.0.0/97694c53-4e94-4f9e-969b-a148adfcdcfd.woff2')\n format('woff2'),\n url('https://webapps-cdn.esri.com/CDN/fonts/v1.0.0/8b01637a-f445-4f10-92ea-b84a355f7690.woff')\n format('woff');\n font-weight: 700;\n font-style: normal;\n unicode-range: U+0600-06ff, U+FB50-FDFF, U+FE70-FEFF;\n }\n\n @font-face {\n font-family: 'Avenir Next';\n src: url('https://webapps-cdn.esri.com/CDN/fonts/v1.0.0/31da4b04-f98a-4b5f-b545-a31d26da99e5.woff2')\n format('woff2'),\n url('https://webapps-cdn.esri.com/CDN/fonts/v1.0.0/d98fb015-7ef6-404f-a58a-5c9242d79770.woff')\n format('woff');\n font-weight: 300; // there is no 300 in hebrew, so use the same files as 400 instead\n font-style: normal;\n unicode-range: U+0590-05ff, U+FB00-FB4F;\n }\n\n @font-face {\n font-family: 'Avenir Next';\n src: url('https://webapps-cdn.esri.com/CDN/fonts/v1.0.0/31da4b04-f98a-4b5f-b545-a31d26da99e5.woff2')\n format('woff2'),\n url('https://webapps-cdn.esri.com/CDN/fonts/v1.0.0/d98fb015-7ef6-404f-a58a-5c9242d79770.woff')\n format('woff');\n font-weight: 400;\n font-style: normal;\n unicode-range: U+0590-05ff, U+FB00-FB4F;\n }\n\n @font-face {\n font-family: 'Avenir Next';\n src: url('https://webapps-cdn.esri.com/CDN/fonts/v1.0.0/32a2c5cf-6736-44a6-a276-49ba7e030944.woff2')\n format('woff2'),\n url('https://webapps-cdn.esri.com/CDN/fonts/v1.0.0/fa71df11-7b19-4baf-8ff7-3537dea718f0.woff')\n format('woff');\n font-weight: 400;\n font-style: italic;\n unicode-range: U+0590-05ff, U+FB00-FB4F;\n }\n\n @font-face {\n font-family: 'Avenir Next';\n src: url('https://webapps-cdn.esri.com/CDN/fonts/v1.0.0/a9eaf4d3-6427-42df-9306-3ea1270f7b1a.woff2')\n format('woff2'),\n url('https://webapps-cdn.esri.com/CDN/fonts/v1.0.0/f4a085c3-1c64-4fc0-a598-26f3e658c2b0.woff')\n format('woff');\n font-weight: 700;\n font-style: normal;\n unicode-range: U+0590-05ff, U+FB00-FB4F;\n }\n\n @font-face {\n font-family: 'Avenir Next';\n src: url('https://webapps-cdn.esri.com/CDN/fonts/v1.0.0/94aa531e-7746-4df0-bb6e-349891f2eda5.woff2')\n format('woff2'),\n url('https://webapps-cdn.esri.com/CDN/fonts/v1.0.0/121524c1-8d82-4155-bfb3-fd2f15f09e93.woff')\n format('woff');\n font-weight: 300;\n font-style: normal;\n unicode-range: U+0900-097f;\n }\n\n @font-face {\n font-family: 'Avenir Next';\n src: url('https://webapps-cdn.esri.com/CDN/fonts/v1.0.0/3ae1e25e-3aa6-4061-a016-a079159f9d65.woff2')\n format('woff2'),\n url('https://webapps-cdn.esri.com/CDN/fonts/v1.0.0/f1799750-0952-403f-8108-b2402eed0f62.woff')\n format('woff');\n font-weight: 400;\n font-style: normal;\n unicode-range: U+0900-097f;\n }\n\n @font-face {\n font-family: 'Avenir Next';\n src: url('https://webapps-cdn.esri.com/CDN/fonts/v1.0.0/41331c3c-3759-4462-8695-33c9a21b6a5b.woff2')\n format('woff2'),\n url('https://webapps-cdn.esri.com/CDN/fonts/v1.0.0/31e0c094-e345-4a54-a797-d5f1a5885572.woff')\n format('woff');\n font-weight: 700;\n font-style: normal;\n unicode-range: U+0900-097f;\n }\n\n @font-face {\n font-family: 'SST Vietnamese';\n src: url('https://webapps-cdn.esri.com/CDN/fonts/v1.0.0/c4cc9032-7eee-4a6e-ae8b-f384b1349bcf.woff2')\n format('woff2'),\n url('https://webapps-cdn.esri.com/CDN/fonts/v1.0.0/1b3078ef-2971-4c95-b6ca-13ab528758cb.woff')\n format('woff');\n font-weight: 300;\n font-style: normal;\n }\n\n @font-face {\n font-family: 'SST Vietnamese';\n src: url('https://webapps-cdn.esri.com/CDN/fonts/v1.0.0/c1905e2e-a1cb-49de-9bb0-ce3c5ffc85ae.woff2')\n format('woff2'),\n url('https://webapps-cdn.esri.com/CDN/fonts/v1.0.0/341bcc5e-7ac0-44ff-819d-5887892eab1b.woff')\n format('woff');\n font-weight: 400;\n font-style: normal;\n }\n\n @font-face {\n font-family: 'SST Vietnamese';\n src: url('https://webapps-cdn.esri.com/CDN/fonts/v1.0.0/4daa2125-53c6-4da8-9614-8a1049eaccc2.woff2')\n format('woff2'),\n url('https://webapps-cdn.esri.com/CDN/fonts/v1.0.0/0763eab1-d6ed-4c73-afb0-895f930df099.woff')\n format('woff');\n font-weight: 700;\n font-style: normal;\n }\n"]); _templateObject = function _templateObject() { return data; }; return data; } function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); } //Do the global styles stuff var CalciteReactGlobalStyles = (0, _styledComponents.createGlobalStyle)(_templateObject(), function (props) { return props.theme.type.avenirFamily; }, function (props) { return props.theme.palette.blue; }, function (props) { return props.theme.palette.blue; }, function (props) { return props.theme.palette.blue; }, function (props) { return props.theme.palette.blue; }, function (props) { return props.theme.palette.blue; }, function (props) { return props.theme.palette.blue; }, function (props) { return props.theme.palette.lighterGray; }, function (props) { return props.theme.borderRadius; }, function (props) { return props.theme.palette.lightestBlue; }, function (props) { return props.theme.palette.lighterBlue; }, function (props) { return props.theme.palette.darkBlue; }, function (props) { return props.theme.palette.darkBlue; }, function (props) { return props.theme.palette.darkBlue; }, function (props) { return props.theme.palette.blue; }, function (props) { return props.theme.palette.blue; }, function (props) { return props.theme.palette.lightestBlue; }, function (props) { return props.theme.palette.lighterBlue; }, function (props) { return props.theme.palette.Brand_Blue_200; }, function (props) { return props.theme.palette.lighterBlue; }, function (props) { return props.theme.palette.lighterBlue; }, function (props) { return props.theme.palette.Brand_Blue_200; }, function (props) { return props.theme.borderRadius; }, function (props) { return props.theme.palette.lightestGray; }, function (props) { return props.theme.borderRadius; }, function (props) { return props.theme.palette.lighterGray; }, function (props) { return props.theme.borderRadius; }, function (props) { return props.theme.toasterWidth; }, function (props) { return (0, _helpers.unitCalc)(props.theme.toasterWidth, -0.5, '*'); }, _CalciteTheme.default.boxShadow, _CalciteTheme.default.palette.blue, _CalciteTheme.default.type.avenirFamily, _CalciteTheme.default.palette.offBlack, _CalciteTheme.default.palette.white, _CalciteTheme.default.palette.blue, _CalciteTheme.default.palette.white, _CalciteTheme.default.palette.green, _CalciteTheme.default.palette.white, _CalciteTheme.default.palette.yellow, _CalciteTheme.default.palette.white, _CalciteTheme.default.palette.red, _CalciteTheme.default.palette.white, function () { return (0, _helpers.fontSize)(-1); }, _CalciteTheme.default.palette.blue, function (props) { return props.showProgress && (0, _styledComponents.css)(["visibility:visible;&.progress-hidden{visibility:hidden;}"]); }); var CalciteThemeProvider = function CalciteThemeProvider(_ref) { var children = _ref.children, theme = _ref.theme, other = _objectWithoutProperties(_ref, ["children", "theme"]); return _react.default.createElement(_styledComponents.ThemeProvider, { theme: theme }, _react.default.createElement(_react.Fragment, null, _react.default.createElement(CalciteReactGlobalStyles, null), children)); }; CalciteThemeProvider.propTypes = { children: _propTypes.default.node, theme: _propTypes.default.object }; CalciteThemeProvider.defaultProps = { theme: _CalciteTheme.default }; var _default = CalciteThemeProvider; exports.default = _default;