@eaze/address-display
Advanced tools
Comparing version 1.1.19 to 1.1.20
@@ -30,5 +30,3 @@ 'use strict'; | ||
var MapContainer = /*#__PURE__*/(0, _reactEmotion2.default)('div', { | ||
target: 'css-1nzegll0' | ||
})('position:absolute;right:0;top:0;width:16.67rem;height:15rem;background-size:cover;background-repeat:no-repeat;background-position:right;background-image:url(', generateUrl, ');', function (_ref) { | ||
var MapContainer = /*#__PURE__*/(0, _reactEmotion2.default)('div')('position:absolute;right:0;top:0;width:16.67rem;height:15rem;background-size:cover;background-repeat:no-repeat;background-position:right;background-image:url(', generateUrl, ');', function (_ref) { | ||
var showLargeMap = _ref.showLargeMap; | ||
@@ -45,3 +43,3 @@ | ||
return '\'https://maps.googleapis.com/maps/api/staticmap?center=' + latitude + ', ' + longitude + '&markers=color' + encodeURIComponent(':') + '0x1B9ECC%7Clabel' + encodeURIComponent(':') + '%7C' + latitude + ', ' + longitude + '&zoom=14&size=' + (showLargeMap ? '200x180' : '375x180') + '&scale=2&key=' + googleMapsKey + '\''; | ||
return '\'https://maps.googleapis.com/maps/api/staticmap?center=' + latitude + ', ' + longitude + '&markers=size:' + (showLargeMap ? 'tiny' : 'mid') + '%7Ccolor' + encodeURIComponent(':') + '0x1B9ECC%7Clabel' + encodeURIComponent(':') + '%7C' + latitude + ', ' + longitude + '&zoom=14&size=' + (showLargeMap ? '200x180' : '375x180') + '&scale=2&key=' + googleMapsKey + '\''; | ||
} | ||
@@ -48,0 +46,0 @@ |
@@ -37,17 +37,9 @@ 'use strict'; | ||
var Container = /*#__PURE__*/(0, _reactEmotion2.default)('div', { | ||
target: 'css-1a2dgdh0' | ||
})('width:100%;min-height:5rem;border-top:0.1rem solid ', lightGray, ';border-bottom:0.1rem solid ', lightGray, ';position:relative;overflow:hidden;display:block;@media (min-width:768px){border-top:none;border-bottom:0.1rem solid ', lightGray, ';min-height:12.2rem;}'); | ||
var Container = /*#__PURE__*/(0, _reactEmotion2.default)('div')('width:100%;min-height:5rem;border-top:0.1rem solid ', lightGray, ';border-bottom:0.1rem solid ', lightGray, ';position:relative;overflow:hidden;display:block;@media (min-width:768px){border-top:none;border-bottom:0.1rem solid ', lightGray, ';min-height:12.2rem;}'); | ||
var Transparency = /*#__PURE__*/(0, _reactEmotion2.default)('div', { | ||
target: 'css-1a2dgdh1' | ||
})('position:absolute;top:0;bottom:0;left:0;right:0;background:linear-gradient(90deg,white 50%,rgba(255,255,255,0) 75%,rgba(255,255,255,0));z-index:1;'); | ||
var Transparency = /*#__PURE__*/(0, _reactEmotion2.default)('div')('position:absolute;top:0;bottom:0;left:0;right:0;background:linear-gradient(90deg,white 50%,rgba(255,255,255,0) 75%,rgba(255,255,255,0));z-index:1;'); | ||
var AddressDetails = /*#__PURE__*/(0, _reactEmotion2.default)('div', { | ||
target: 'css-1a2dgdh2' | ||
})('z-index:2;position:relative;'); | ||
var AddressDetails = /*#__PURE__*/(0, _reactEmotion2.default)('div')('z-index:2;position:relative;'); | ||
var ArrowContainer = /*#__PURE__*/(0, _reactEmotion2.default)('div', { | ||
target: 'css-1a2dgdh3' | ||
})('position:absolute;bottom:0.5rem;right:1rem;'); | ||
var ArrowContainer = /*#__PURE__*/(0, _reactEmotion2.default)('div')('position:absolute;bottom:0.5rem;right:1rem;'); | ||
@@ -54,0 +46,0 @@ var RoundArrow = function RoundArrow(props) { |
{ | ||
"name": "@eaze/address-display", | ||
"version": "1.1.19", | ||
"version": "1.1.20", | ||
"description": "Address Display component", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -30,3 +30,3 @@ // This component is specifically for generating a static google maps image | ||
function generateUrl ({ latitude, longitude, googleMapsKey, showLargeMap }) { | ||
return `'https://maps.googleapis.com/maps/api/staticmap?center=${latitude}, ${longitude}&markers=color${encodeURIComponent(':')}0x1B9ECC%7Clabel${encodeURIComponent(':')}%7C${latitude}, ${longitude}&zoom=14&size=${showLargeMap ? '200x180' : '375x180'}&scale=2&key=${googleMapsKey}'` | ||
return `'https://maps.googleapis.com/maps/api/staticmap?center=${latitude}, ${longitude}&markers=size:${showLargeMap ? 'tiny' : 'mid'}%7Ccolor${encodeURIComponent(':')}0x1B9ECC%7Clabel${encodeURIComponent(':')}%7C${latitude}, ${longitude}&zoom=14&size=${showLargeMap ? '200x180' : '375x180'}&scale=2&key=${googleMapsKey}'` | ||
} | ||
@@ -33,0 +33,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
91919
394