@nnc-digital/nnc-design-system 1.0.0-alpha52 → 1.0.0-alpha54

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.js CHANGED
@@ -6681,7 +6681,8 @@ var Map$1 = function (_a) {
6681
6681
  * A Google Maps marker to be placed inside a Map component
6682
6682
  */
6683
6683
  var MapMarker = function (options) {
6684
- var _a = React__default.default.useState(), marker = _a[0], setMarker = _a[1];
6684
+ var _a;
6685
+ var _b = React__default.default.useState(), marker = _b[0], setMarker = _b[1];
6685
6686
  var themeContext = React.useContext(styled.ThemeContext);
6686
6687
  var icon = {
6687
6688
  path: 'M19.7,5.6c-0.1,0-0.5,0.1-0.9,0.1c-3.3,0.4-6.5,2-8.9,4.4c-2.6,2.6-4.2,5.9-4.6,9.6c-0.1,1,0,3.1,0.1,4.1c0.3,2.1,1.1,4.2,2.3,6.6c0.9,1.6,1.6,2.9,4.2,7c0.9,1.4,1.9,3.1,2.6,4.2c2.3,3.9,4.1,7.9,5.4,11.9c0.2,0.6,0.3,0.8,0.6,0.9c0.5,0.2,1.1,0.1,1.4-0.3c0.1-0.1,0.2-0.5,0.4-0.9c1.1-3.3,2.5-6.5,4.2-9.5c1.2-2.2,2-3.6,4.4-7.4c1.7-2.7,2.3-3.6,2.9-4.8c1.6-2.9,2.5-5.3,2.9-7.8c0.2-1,0.2-3.1,0.1-4.1c-0.2-1.5-0.5-3-1-4.2c-2.1-5.2-6.8-8.9-12.4-9.8C22.9,5.6,20.2,5.5,19.7,5.6z',
@@ -6691,7 +6692,7 @@ var MapMarker = function (options) {
6691
6692
  labelOrigin: new google.maps.Point(21, 25),
6692
6693
  };
6693
6694
  var mergedOptions = __assign$2(__assign$2({}, options), { anchorPoint: new google.maps.Point(-5, -40), icon: icon, label: {
6694
- text: typeof options.label === 'string' ? options.label : options.label.text,
6695
+ text: typeof options.label === 'string' ? options.label : (_a = options.label.text) !== null && _a !== void 0 ? _a : '',
6695
6696
  color: 'white',
6696
6697
  }, position: options.position, title: options.title });
6697
6698
  React__default.default.useEffect(function () {
@@ -30442,7 +30443,7 @@ const Container$5 = styled__default.default.div`
30442
30443
 
30443
30444
  var DirectoryMap = function (_a) {
30444
30445
  var _b, _c;
30445
- var allowCookies = _a.allowCookies, mapProps = _a.mapProps;
30446
+ var _d = _a.allowCookies, allowCookies = _d === void 0 ? true : _d, mapProps = _a.mapProps;
30446
30447
  var cookiesAccepted = wereCookiesAccepted(allowCookies);
30447
30448
  var apiKey = (_b = process.env.NEXT_PUBLIC_GOOGLE_MAPS_API_KEY) !== null && _b !== void 0 ? _b : '';
30448
30449
  var latLong = mapProps.centre.split(',');