@woosmap/ui 2.7.0 → 2.11.0

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.
@@ -3,6 +3,7 @@ import React, { Component } from 'react';
3
3
  import cl from 'classnames';
4
4
  import PropTypes from 'prop-types';
5
5
  import copy from '../utils/CopyToClipoard';
6
+ import Constants from '../../Constants';
6
7
  import { tr } from '../utils/locale';
7
8
  import Tab from '../Tab/Tab';
8
9
  import CodeSnippet from '../CodeSnippet/CodeSnippet';
@@ -37,8 +38,11 @@ export default class SkeletonDemo extends Component {
37
38
 
38
39
  copy = (text) => {
39
40
  const { copied } = this.state;
40
-
41
- if (text !== null && copy(text) && !copied) {
41
+ let textToCopy = text;
42
+ if (textToCopy) {
43
+ textToCopy = textToCopy.replace(Constants.woosmapKey, tr('YOUR_KEY_HERE'));
44
+ }
45
+ if (textToCopy !== null && copy(textToCopy) && !copied) {
42
46
  this.setState({ copied: true });
43
47
  this.copyTimeout = setTimeout(() => this.setState({ copied: false }), 1000);
44
48
  }
@@ -119,12 +123,15 @@ export default class SkeletonDemo extends Component {
119
123
  if (!headerFilters) {
120
124
  return null;
121
125
  }
122
- return headerFilters.map((filter) => (
123
- <div key={filter.label || filter.key} className="demo__input-container">
124
- {filter.label ? <p className="demo__label">{filter.label}</p> : false}
125
- {filter.component}
126
- </div>
127
- ));
126
+ return headerFilters.map(
127
+ (filter) =>
128
+ filter && (
129
+ <div key={filter.label || filter.key} className={cl('demo__input-container', filter.className)}>
130
+ {filter.label ? <p className="demo__label">{filter.label}</p> : false}
131
+ {filter.component}
132
+ </div>
133
+ )
134
+ );
128
135
  };
129
136
 
130
137
  renderFooterFilters = () => {
@@ -158,6 +165,7 @@ export default class SkeletonDemo extends Component {
158
165
  docLink,
159
166
  docLabel,
160
167
  renderCode,
168
+ subHeader,
161
169
  } = this.props;
162
170
  const { copied } = this.state;
163
171
  return (
@@ -188,6 +196,7 @@ export default class SkeletonDemo extends Component {
188
196
  {docLabel || tr('Go to documentation')}
189
197
  </a>
190
198
  </p>
199
+ <div className="demo__desc">{subHeader}</div>
191
200
  </div>
192
201
  )}
193
202
  </div>
@@ -281,6 +290,7 @@ SkeletonDemo.defaultProps = {
281
290
  body: '',
282
291
  method: '',
283
292
  header: null,
293
+ subHeader: null,
284
294
  };
285
295
  SkeletonDemo.propTypes = {
286
296
  id: PropTypes.string,
@@ -301,5 +311,6 @@ SkeletonDemo.propTypes = {
301
311
  referer: PropTypes.string,
302
312
  body: PropTypes.string,
303
313
  method: PropTypes.string,
314
+ subHeader: PropTypes.object,
304
315
  response: PropTypes.oneOfType([PropTypes.object, PropTypes.array]),
305
316
  };
@@ -5,8 +5,21 @@ import Button from '../Button/Button';
5
5
 
6
6
  export default class Label extends Component {
7
7
  render() {
8
- const { size, round, label, color, privilege, product, closable, closeCb, className, isPill, noWrap, ...rest } =
9
- this.props;
8
+ const {
9
+ size,
10
+ round,
11
+ label,
12
+ color,
13
+ privilege,
14
+ product,
15
+ closable,
16
+ closeCb,
17
+ className,
18
+ isPill,
19
+ noWrap,
20
+ plan,
21
+ ...rest
22
+ } = this.props;
10
23
  const classes = cl(
11
24
  'label',
12
25
  { 'label--round': round },
@@ -16,6 +29,7 @@ export default class Label extends Component {
16
29
  privilege ? `label--${privilege}` : null,
17
30
  isPill ? 'label--pill' : null,
18
31
  noWrap ? 'label--nowrap' : null,
32
+ plan ? `label--${plan}` : null,
19
33
  className
20
34
  );
21
35
  return (
@@ -39,6 +53,7 @@ Label.defaultProps = {
39
53
  closeCb: null,
40
54
  isPill: null,
41
55
  noWrap: null,
56
+ plan: undefined,
42
57
  };
43
58
 
44
59
  Label.propTypes = {
@@ -57,6 +72,7 @@ Label.propTypes = {
57
72
  'traffic',
58
73
  undefined,
59
74
  ]),
75
+ plan: PropTypes.oneOf(['free', 'standard', 'enterprise', undefined]),
60
76
  size: PropTypes.oneOf(['small', 'mini', 'nano', undefined]),
61
77
  privilege: PropTypes.oneOf(['superuser', 'staff', 'owner', 'co-owner', undefined]),
62
78
  round: PropTypes.bool,
@@ -73,6 +73,12 @@
73
73
  background-color $merchant
74
74
  &--traffic
75
75
  background-color $traffic
76
+ &--free
77
+ background-color $free
78
+ &--standard
79
+ background-color $standard
80
+ &--enterprise
81
+ background-color $enterprise
76
82
  &--superuser
77
83
  background-color $superuser
78
84
  &--staff
@@ -167,7 +167,7 @@ AddressAutocomplete.defaultProps = {
167
167
  defaultValue: null,
168
168
  apiOrder: ['localities', 'address'],
169
169
  language: null,
170
- componentsLocalities: { country: ['gb'] },
170
+ componentsLocalities: { country: ['fr', 'gb'] },
171
171
  componentsAddress: null,
172
172
  inputChangeCb: null,
173
173
  };
@@ -15,6 +15,8 @@
15
15
  "Bose Reseller Store": "Bose Reseller Store",
16
16
  "Bose Store": "Bose Store",
17
17
  "Cancel": "Cancel",
18
+ "Checkout": "Checkout",
19
+ "Checkout integration: on full addresses, renders the right part of the address in the right form fields": "Checkout integration: on full addresses, renders the right part of the address in the right form fields",
18
20
  "Choose your style": "Choose your style",
19
21
  "Code": "Code",
20
22
  "Coming step": "Coming step",
@@ -26,7 +28,7 @@
26
28
  "Customized Solutions": "Customized Solutions",
27
29
  "Default": "Default",
28
30
  "Destination": "Destination",
29
- "Display Map Pois": "Display Map Pois",
31
+ "Display Map POIs": "Display Map POIs",
30
32
  "Display Woosmap Stores overlay": "Display Woosmap Stores overlay",
31
33
  "Display your regional promotions and catchment area.": "Display your regional promotions and catchment area.",
32
34
  "Distance API": "Distance API",
@@ -60,7 +62,6 @@
60
62
  "New": "New",
61
63
  "No locality found": "No locality found",
62
64
  "No route found": "No route found",
63
- "Offer autocomplete on city names, suburb names, postcodes and full addresses in some countries. Accelerate customer journey by searching on full words as well as substrings, with high flexibility on typos.": "Offer autocomplete on city names, suburb names, postcodes and full addresses in some countries. Accelerate customer journey by searching on full words as well as substrings, with high flexibility on typos.",
64
65
  "Origin": "Origin",
65
66
  "Parking": "Parking",
66
67
  "Point of interest": "Point of interest",
@@ -73,13 +74,15 @@
73
74
  "Response": "Response",
74
75
  "Results": "Results",
75
76
  "Schedule a Demo": "Schedule a Demo",
76
- "Search API": "Search API",
77
77
  "Search among your own Points of Interest. Find stores by geography, by attributes or by autocomplete on store names.": "Search among your own Points of Interest. Find stores by geography, by attributes or by autocomplete on store names.",
78
78
  "Shopping centers": "Shopping centers",
79
79
  "Should be at least {{count}} chars long": "Should be at least {{count}} char long",
80
80
  "Should be at least {{count}} chars long__plural": "Should be at least {{count}} chars long",
81
81
  "Should be at most {{count}} chars long": "Should be at most {{count}} char long",
82
82
  "Should be at most {{count}} chars long__plural": "Should be at most {{count}} chars long",
83
+ "Store Locator": "Store Locator",
84
+ "Store Locator integration: autocomplete on city names, suburb names, postcodes...": "Store Locator integration: autocomplete on city names, suburb names, postcodes...",
85
+ "Store Search API": "Store Search API",
83
86
  "The Woosmap Distance API delivers road distance and travel time between origins and destinations, to plan a simple journey (up to 25 waypoints) or for matrix computations (up to 200 elements).": "The Woosmap Distance API delivers road distance and travel time between origins and destinations, to plan a simple journey (up to 25 waypoints) or for matrix computations (up to 200 elements).",
84
87
  "The value you’ve entered is already in the list": "The value you’ve entered is already in the list",
85
88
  "There are some errors": "There are some errors",
@@ -93,10 +96,13 @@
93
96
  "Type in an address": "Type in an address",
94
97
  "Type in an address ": "Type in an address ",
95
98
  "Types": "Types",
96
- "Usecase": "Usecase",
99
+ "Use case": "Use case",
97
100
  "Validate": "Validate",
98
101
  "Wheelchair Access": "Wheelchair Access",
102
+ "Woosmap Localities sorts and displays the 5 most relevant results, with priority to the most likely results, recognises common abbreviations and apostrophes, with high tolerance for typos.": "Woosmap Localities sorts and displays the 5 most relevant results, with priority to the most likely results, recognises common abbreviations and apostrophes, with high tolerance for typos.",
99
103
  "Woosmap Map is a vector tiles map based, which guarantees smooth zooming and panning transitions, a mobile-optimised loading and clear rendering at every scale. It provides a worldwide cover, cutting edge details and ability to display 3D buildings at closest/street zoom levels.": "Woosmap Map is a vector tiles map based, which guarantees smooth zooming and panning transitions, a mobile-optimised loading and clear rendering at every scale. It provides a worldwide cover, cutting edge details and ability to display 3D buildings at closest/street zoom levels.",
104
+ "YOUR_KEY_HERE": "YOUR_KEY_HERE",
105
+ "You can select bewteen 2 use cases:": "You can select bewteen 2 use cases:",
100
106
  "Zoos": "Zoos",
101
107
  "http://developers.woosmap.com": "http://developers.woosmap.com",
102
108
  "near ... ": "near ... ",
@@ -15,9 +15,11 @@
15
15
  "Bose Reseller Store": "Revendeur Bose",
16
16
  "Bose Store": "Magasin Bose",
17
17
  "Cancel": "Annuler",
18
+ "Checkout": "Checkout",
19
+ "Checkout integration: on full addresses, renders the right part of the address in the right form fields": "Cas d’usage type Checkout : autocompletion sur une adresse complète pour pré-remplir les champs d’un formulaire",
18
20
  "Choose your style": "Choisir le style",
19
21
  "Code": "Code",
20
- "Coming step": "",
22
+ "Coming step": "Prochaine étape",
21
23
  "Confirm": "Confirmer",
22
24
  "Continent": "Continent",
23
25
  "Copied!": "Copié !",
@@ -26,7 +28,7 @@
26
28
  "Customized Solutions": "Solutions personnalisées",
27
29
  "Default": "Défaut",
28
30
  "Destination": "Destination",
29
- "Display Map Pois": "Afficher les Pois de la carte",
31
+ "Display Map POIs": "Afficher les POIs de la carte",
30
32
  "Display Woosmap Stores overlay": "Afficher la couche de magasins Woosmap",
31
33
  "Display your regional promotions and catchment area.": "Affichez les offres promotionnelles de la région, et la zone de chalandise.",
32
34
  "Distance API": "Distance API",
@@ -60,11 +62,10 @@
60
62
  "New": "Nouveau",
61
63
  "No locality found": "Aucune localité correspondante",
62
64
  "No route found": "Aucune route correspondante",
63
- "Offer autocomplete on city names, suburb names, postcodes and full addresses in some countries. Accelerate customer journey by searching on full words as well as substrings, with high flexibility on typos.": "Woosmap Localities API permet de proposer de l’autocomplétion sur les noms de ville, les codes postaux, aéroports, stations de métro, centres commerciaux et les adresses postales complètes dans certains pays.",
64
65
  "Origin": "Départ",
65
66
  "Parking": "Parking",
66
67
  "Point of interest": "Points d'intérêt",
67
- "Postal code": "Codes postal",
68
+ "Postal code": "Code postal",
68
69
  "Postal codes": "Codes postaux",
69
70
  "Region / State": "Région / Etat",
70
71
  "Request": "Requête",
@@ -73,13 +74,15 @@
73
74
  "Response": "Réponse",
74
75
  "Results": "Résultats",
75
76
  "Schedule a Demo": "Démo vendeur",
76
- "Search API": "Search API",
77
77
  "Search among your own Points of Interest. Find stores by geography, by attributes or by autocomplete on store names.": "Un moteur de recherche dédié pour vos propres données. Trouvez des points de vente dans un rayon donné autour de coordonnées géographiques, par leurs attributs ou par autocomplétion sur les noms de magasins.",
78
78
  "Shopping centers": "Centres commerciaux",
79
79
  "Should be at least {{count}} chars long": "Ce champ doit être d'au moins {{count}} caractère",
80
80
  "Should be at least {{count}} chars long__plural": "Ce champ doit être d'au moins {{count}} caractères",
81
81
  "Should be at most {{count}} chars long": "Ce champ doit être d'au plus {{count}} caractère",
82
82
  "Should be at most {{count}} chars long__plural": "Ce champ doit être d'au plus {{count}} caractères",
83
+ "Store Locator": "Store Locator",
84
+ "Store Locator integration: autocomplete on city names, suburb names, postcodes...": "Cas d’usage type Store Locator : autocomplétion sur les noms de ville, les codes postaux, les aéroports, les stations de métro, les centres commerciaux...",
85
+ "Store Search API": "Store Search API",
83
86
  "The Woosmap Distance API delivers road distance and travel time between origins and destinations, to plan a simple journey (up to 25 waypoints) or for matrix computations (up to 200 elements).": "L'API Woosmap Distance fournit la distance et le temps de parcours entre 2 coordonnées géographiques pour un trajet simple (avec jusqu’à 25 points de passage) ou pour des calculs matriciels (jusqu’à 200 éléments).",
84
87
  "The value you’ve entered is already in the list": "La valeur saisie est déjà dans la liste",
85
88
  "There are some errors": "Des erreurs se sont produites",
@@ -93,10 +96,13 @@
93
96
  "Type in an address": "Adresse",
94
97
  "Type in an address ": "Saisir une adresse",
95
98
  "Types": "Types",
96
- "Usecase": "Cas d'utilisation",
99
+ "Use case": "Cas d'usage",
97
100
  "Validate": "Valider",
98
101
  "Wheelchair Access": "Accès handicapés",
102
+ "Woosmap Localities sorts and displays the 5 most relevant results, with priority to the most likely results, recognises common abbreviations and apostrophes, with high tolerance for typos.": "Woosmap Localities trie et affiche les 5 résultats les plus pertinents, avec en priorité les résultats les plus probables, sait reconnaître les abréviations courantes et les apostrophes en intégrant une grande tolérance aux fautes de frappe.",
99
103
  "Woosmap Map is a vector tiles map based, which guarantees smooth zooming and panning transitions, a mobile-optimised loading and clear rendering at every scale. It provides a worldwide cover, cutting edge details and ability to display 3D buildings at closest/street zoom levels.": "Woosmap Map est une carte vectorielle qui garantit une navigation fluide, sans impact sur les performances du navigateur et un téléchargement plus rapide et optimisé pour mobile.",
104
+ "YOUR_KEY_HERE": "VOTRE_CLE_ICI",
105
+ "You can select bewteen 2 use cases:": "Vous pouvez selectionner l'un des deux cas d'usage suivants :",
100
106
  "Zoos": "Zoos",
101
107
  "http://developers.woosmap.com": "http://developers.woosmap.com",
102
108
  "near ... ": "à proximité de ... ",
@@ -98,11 +98,15 @@ $metricsLastCreatedProjects = rgba(233, 249, 242, 1) // #e9f9f2
98
98
  $apiKey = #595390
99
99
 
100
100
  // Privilege
101
- $superuser = #5d8cbd
101
+ $superuser = #277ed7
102
102
  $staff = #ec4a8e
103
103
  $owner = #4e6d94
104
104
  $co-owner = #6fbb8a
105
105
 
106
+ // Plans
107
+ $free = #72b3a7
108
+ $standard = #4b7bd3
109
+ $enterprise = #c3417d
106
110
 
107
111
  // Alerts
108
112
  $success2 = rgba(14, 206, 170, 1)// #0eceaa
@@ -247,178 +251,25 @@ $light1 = rgba(255, 255, 255, .01)
247
251
 
248
252
  $localitiesDark = rgba(0, 152, 220, 1) // #00b0ff
249
253
  $localities = rgba(0, 176, 255, 1) // #00B0FF
250
- $localities95 = rgba(0, 176, 255, .95)
251
- $localities90 = rgba(0, 176, 255, .9)
252
- $localities85 = rgba(0, 176, 255, .85)
253
- $localities80 = rgba(0, 176, 255, .8)
254
- $localities75 = rgba(0, 176, 255, .75)
255
- $localities70 = rgba(0, 176, 255, .7)
256
- $localities65 = rgba(0, 176, 255, .65)
257
- $localities60 = rgba(0, 176, 255, .6)
258
- $localities55 = rgba(0, 176, 255, .55)
259
- $localities50 = rgba(0, 176, 255, .5)
260
- $localities45 = rgba(0, 176, 255, .45)
261
- $localities40 = rgba(0, 176, 255, .4)
262
- $localities35 = rgba(0, 176, 255, .35)
263
- $localities30 = rgba(0, 176, 255, .3)
264
- $localities25 = rgba(0, 176, 255, .25)
265
- $localities20 = rgba(0, 176, 255, .2)
266
- $localities15 = rgba(0, 176, 255, .15)
267
- $localities10 = rgba(0, 176, 255, .1)
268
- $localities5 = rgba(0, 176, 255, .05)
269
254
 
270
255
  $geolocationDark = rgba(1, 175, 73, 1) // #01af49
271
- $geolocation = rgba(0, 200, 83, 1) // #81C784
272
- $geolocation95 = rgba(0, 200, 83, .95)
273
- $geolocation90 = rgba(0, 200, 83, .9)
274
- $geolocation85 = rgba(0, 200, 83, .85)
275
- $geolocation80 = rgba(0, 200, 83, .8)
276
- $geolocation75 = rgba(0, 200, 83, .75)
277
- $geolocation70 = rgba(0, 200, 83, .7)
278
- $geolocation65 = rgba(0, 200, 83, .65)
279
- $geolocation60 = rgba(0, 200, 83, .6)
280
- $geolocation55 = rgba(0, 200, 83, .55)
281
- $geolocation50 = rgba(0, 200, 83, .5)
282
- $geolocation45 = rgba(0, 200, 83, .45)
283
- $geolocation40 = rgba(0, 200, 83, .4)
284
- $geolocation35 = rgba(0, 200, 83, .35)
285
- $geolocation30 = rgba(0, 200, 83, .3)
286
- $geolocation25 = rgba(0, 200, 83, .25)
287
- $geolocation20 = rgba(0, 200, 83, .2)
288
- $geolocation15 = rgba(0, 200, 83, .15)
289
- $geolocation10 = rgba(0, 200, 83, .1)
290
- $geolocation5 = rgba(0, 200, 83, .05)
256
+ $geolocation = rgba(0, 200, 83, 1) // #00c853
291
257
 
292
258
  $distanceDark = rgba(255, 115, 0, 1) // #FF7300
293
259
  $distance = rgba(255, 145, 0, 1) // #FF9100
294
- $distance95 = rgba(255, 145, 0, .95)
295
- $distance90 = rgba(255, 145, 0, .9)
296
- $distance85 = rgba(255, 145, 0, .85)
297
- $distance80 = rgba(255, 145, 0, .8)
298
- $distance75 = rgba(255, 145, 0, .75)
299
- $distance70 = rgba(255, 145, 0, .7)
300
- $distance65 = rgba(255, 145, 0, .65)
301
- $distance60 = rgba(255, 145, 0, .6)
302
- $distance55 = rgba(255, 145, 0, .55)
303
- $distance50 = rgba(255, 145, 0, .5)
304
- $distance45 = rgba(255, 145, 0, .45)
305
- $distance40 = rgba(255, 145, 0, .4)
306
- $distance35 = rgba(255, 145, 0, .35)
307
- $distance30 = rgba(255, 145, 0, .3)
308
- $distance25 = rgba(255, 145, 0, .25)
309
- $distance20 = rgba(255, 145, 0, .2)
310
- $distance15 = rgba(255, 145, 0, .15)
311
- $distance10 = rgba(255, 145, 0, .1)
312
- $distance5 = rgba(255, 145, 0, .05)
313
260
 
314
261
  $storesDark = rgba(37, 109, 212, 1) // #256dd4
315
- $stores = rgba(56, 138, 255, 1) // #448AFF
316
- $stores95 = rgba(56, 138, 255, .95)
317
- $stores90 = rgba(56, 138, 255, .9)
318
- $stores85 = rgba(56, 138, 255, .85)
319
- $stores80 = rgba(56, 138, 255, .8)
320
- $stores75 = rgba(56, 138, 255, .75)
321
- $stores70 = rgba(56, 138, 255, .7)
322
- $stores65 = rgba(56, 138, 255, .65)
323
- $stores60 = rgba(56, 138, 255, .6)
324
- $stores55 = rgba(56, 138, 255, .55)
325
- $stores50 = rgba(56, 138, 255, .5)
326
- $stores45 = rgba(56, 138, 255, .45)
327
- $stores40 = rgba(56, 138, 255, .4)
328
- $stores35 = rgba(56, 138, 255, .35)
329
- $stores30 = rgba(56, 138, 255, .3)
330
- $stores25 = rgba(56, 138, 255, .25)
331
- $stores20 = rgba(56, 138, 255, .2)
332
- $stores15 = rgba(56, 138, 255, .15)
333
- $stores10 = rgba(56, 138, 255, .1)
334
- $stores5 = rgba(56, 138, 255, .05)
262
+ $stores = rgba(56, 138, 255, 1) // #388aff
335
263
 
336
264
  $addressDark = rgba(59, 179, 195, 1) // #38b3c3
337
- $address = rgba(77, 208, 255, 1) // #4DD0E1
338
- $address95 = rgba(77, 208, 255, .95)
339
- $address90 = rgba(77, 208, 255, .9)
340
- $address85 = rgba(77, 208, 255, .85)
341
- $address80 = rgba(77, 208, 255, .8)
342
- $address75 = rgba(77, 208, 255, .75)
343
- $address70 = rgba(77, 208, 255, .7)
344
- $address65 = rgba(77, 208, 255, .65)
345
- $address60 = rgba(77, 208, 255, .6)
346
- $address55 = rgba(77, 208, 255, .55)
347
- $address50 = rgba(77, 208, 255, .5)
348
- $address45 = rgba(77, 208, 255, .45)
349
- $address40 = rgba(77, 208, 255, .4)
350
- $address35 = rgba(77, 208, 255, .35)
351
- $address30 = rgba(77, 208, 255, .3)
352
- $address25 = rgba(77, 208, 255, .25)
353
- $address20 = rgba(77, 208, 255, .2)
354
- $address15 = rgba(77, 208, 255, .15)
355
- $address10 = rgba(77, 208, 255, .1)
356
- $address5 = rgba(77, 208, 255, .05)
265
+ $address = rgba(77, 208, 255, 1) // #4dd0ff
357
266
 
358
267
  $mapDark = rgba(134, 106, 96, 1) // #866a60
359
268
  $map = rgba(161, 136, 127, 1) // #A1887F
360
- $map95 = rgba(161, 136, 127, .95)
361
- $map90 = rgba(161, 136, 127, .9)
362
- $map85 = rgba(161, 136, 127, .85)
363
- $map80 = rgba(161, 136, 127, .8)
364
- $map75 = rgba(161, 136, 127, .75)
365
- $map70 = rgba(161, 136, 127, .7)
366
- $map65 = rgba(161, 136, 127, .65)
367
- $map60 = rgba(161, 136, 127, .6)
368
- $map55 = rgba(161, 136, 127, .55)
369
- $map50 = rgba(161, 136, 127, .5)
370
- $map45 = rgba(161, 136, 127, .45)
371
- $map40 = rgba(161, 136, 127, .4)
372
- $map35 = rgba(161, 136, 127, .35)
373
- $map30 = rgba(161, 136, 127, .3)
374
- $map25 = rgba(161, 136, 127, .25)
375
- $map20 = rgba(161, 136, 127, .2)
376
- $map15 = rgba(161, 136, 127, .15)
377
- $map10 = rgba(161, 136, 127, .1)
378
- $map5 = rgba(161, 136, 127, .05)
379
-
380
269
 
381
270
 
382
271
  $merchantDark = rgba(81, 107, 119, 1) // #516b77
383
272
  $merchant = rgba(120, 144, 156, 1) // #78909C
384
- $merchant95 = rgba(120, 144, 156, .95)
385
- $merchant90 = rgba(120, 144, 156, .9)
386
- $merchant85 = rgba(120, 144, 156, .85)
387
- $merchant80 = rgba(120, 144, 156, .8)
388
- $merchant75 = rgba(120, 144, 156, .75)
389
- $merchant70 = rgba(120, 144, 156, .7)
390
- $merchant65 = rgba(120, 144, 156, .65)
391
- $merchant60 = rgba(120, 144, 156, .6)
392
- $merchant55 = rgba(120, 144, 156, .55)
393
- $merchant50 = rgba(120, 144, 156, .5)
394
- $merchant45 = rgba(120, 144, 156, .45)
395
- $merchant40 = rgba(120, 144, 156, .4)
396
- $merchant35 = rgba(120, 144, 156, .35)
397
- $merchant30 = rgba(120, 144, 156, .3)
398
- $merchant25 = rgba(120, 144, 156, .25)
399
- $merchant20 = rgba(120, 144, 156, .2)
400
- $merchant15 = rgba(120, 144, 156, .15)
401
- $merchant10 = rgba(120, 144, 156, .1)
402
- $merchant5 = rgba(120, 144, 156, .05)
403
273
 
404
274
  $trafficDark = rgba(2165, 46, 111, 1)// #D82E6F
405
- $traffic = rgba(255, 124, 129, 1) // #FF4081
406
- $traffic95 = rgba(255, 124, 129, .95)
407
- $traffic90 = rgba(255, 124, 129, .9)
408
- $traffic85 = rgba(255, 124, 129, .85)
409
- $traffic80 = rgba(255, 124, 129, .8)
410
- $traffic75 = rgba(255, 124, 129, .75)
411
- $traffic70 = rgba(255, 124, 129, .7)
412
- $traffic65 = rgba(255, 124, 129, .65)
413
- $traffic60 = rgba(255, 124, 129, .6)
414
- $traffic55 = rgba(255, 124, 129, .55)
415
- $traffic50 = rgba(255, 124, 129, .5)
416
- $traffic45 = rgba(255, 124, 129, .45)
417
- $traffic40 = rgba(255, 124, 129, .4)
418
- $traffic35 = rgba(255, 124, 129, .35)
419
- $traffic30 = rgba(255, 124, 129, .3)
420
- $traffic25 = rgba(255, 124, 129, .25)
421
- $traffic20 = rgba(255, 124, 129, .2)
422
- $traffic15 = rgba(255, 124, 129, .15)
423
- $traffic10 = rgba(255, 124, 129, .1)
424
- $traffic5 = rgba(255, 124, 129, .05)
275
+ $traffic = rgba(255, 124, 129, 1) // #ff7c81
@@ -50,6 +50,7 @@ $mapHeight = 36rem
50
50
  padding 1.6rem 2.6rem 3rem 2.6rem
51
51
  mbib(2)
52
52
  &--address
53
+ &--localitiesaddress
53
54
  &__formcontainer
54
55
  width 100%
55
56
  height 100%
@@ -61,6 +62,7 @@ $mapHeight = 36rem
61
62
  max-height 49.1rem!important
62
63
  .demo__map
63
64
  height 54rem
65
+ width 50rem
64
66
  &--map
65
67
  .demo__map
66
68
  width 55rem
@@ -88,7 +90,13 @@ $mapHeight = 36rem
88
90
  a
89
91
  color $primary
90
92
  font-weight 600
91
- cursor pointer
93
+ cursor pointer
94
+ &__list
95
+ margin-left 6rem
96
+ li
97
+ list-style disc
98
+ list-style-position inside
99
+ margin-bottom 1rem
92
100
  &__cost
93
101
  display block
94
102
  margin-bottom 1rem
@@ -131,14 +139,19 @@ $mapHeight = 36rem
131
139
  .demo--search &
132
140
  .demo--distance &
133
141
  .demo--address &
142
+ .demo--localitiesaddress &
134
143
  margin-bottom 1rem
135
144
  .demo__input-container
136
145
  margin-bottom 2rem
137
146
  .demo--address &
147
+ .demo--localitiesaddress &
138
148
  mbi(4)
139
149
  flex-wrap nowrap
140
150
  > :nth-child(2)
141
151
  width 100%
152
+ .demo--localitiesaddress &
153
+ .demo__input-container
154
+ width 100%
142
155
  &-footer
143
156
  &-header
144
157
  mbi(2)
@@ -160,6 +173,7 @@ $mapHeight = 36rem
160
173
  .demo__input-container
161
174
  margin-bottom 0rem
162
175
  .demo--address &
176
+ .demo--localitiesaddress &
163
177
  mbi(4)
164
178
  :nth-child(2)
165
179
  .select
@@ -211,6 +225,7 @@ $mapHeight = 36rem
211
225
  box-shadow none
212
226
  zoom .8
213
227
  .demo--address &
228
+ .demo--localitiesaddress &
214
229
  width 34rem
215
230
  &__header
216
231
  mbi(2)
@@ -225,6 +240,7 @@ $mapHeight = 36rem
225
240
  box-shadow 0 0 .6rem $dark15
226
241
  .demo--localities--uk &
227
242
  .demo--address &
243
+ .demo--localitiesaddress &
228
244
  display none
229
245
  .demo--distance &
230
246
  background $distance
@@ -233,6 +249,7 @@ $mapHeight = 36rem
233
249
  background $localities
234
250
  background linear-gradient(90deg, $localities 70%, $localitiesDark 100%)
235
251
  .demo--address &
252
+ .demo--localitiesaddress &
236
253
  background $address
237
254
  background linear-gradient(90deg, $address 70%, $addressDark 100%)
238
255
  .demo--merchant &
@@ -262,11 +279,13 @@ $mapHeight = 36rem
262
279
  mbib(1)
263
280
  .demo--localities--uk &
264
281
  .demo--address &
282
+ .demo--localitiesaddress &
265
283
  padding 0
266
284
  font-size 1.5rem
267
285
  mbib(2)
268
286
  background-color #f3f9fd
269
287
  .demo--address &
288
+ .demo--localitiesaddress &
270
289
  height auto
271
290
  .localities-matched
272
291
  background-color $resultMatch
@@ -295,6 +314,7 @@ $mapHeight = 36rem
295
314
  background $localities
296
315
  background linear-gradient(90deg, $localitiesDark 0%, $localities 20%)
297
316
  .demo--address &
317
+ .demo--localitiesaddress &
298
318
  background $address
299
319
  background linear-gradient(90deg, $addressDark 0%, $address 20%)
300
320
  .demo--merchant &
@@ -366,6 +386,7 @@ $mapHeight = 36rem
366
386
  &-footer
367
387
  .demo--distance &
368
388
  .demo--address &
389
+ .demo--localitiesaddress &
369
390
  .demo--map &
370
391
  margin-bottom 0
371
392
  .demo
@@ -387,6 +408,7 @@ $mapHeight = 36rem
387
408
  margin-bottom 0
388
409
  &-header
389
410
  .demo--address &
411
+ .demo--localitiesaddress &
390
412
  flex-wrap wrap
391
413
  .demo--geolocation &
392
414
  margin-bottom 2rem
@@ -402,6 +424,10 @@ $mapHeight = 36rem
402
424
  .demo
403
425
  &__input-container
404
426
  margin-right 0
427
+ .demo--localities &
428
+ .demo__input-container
429
+ &:first-child
430
+ margin-bottom 3rem
405
431
  &__input-container
406
432
  align-items flex-start
407
433
  flex-direction column
@@ -445,6 +471,7 @@ $mapHeight = 36rem
445
471
  &-footer
446
472
  flex-direction column
447
473
  .demo--address &
474
+ .demo--localitiesaddress &
448
475
  .demo--map &
449
476
  .demo--distance &
450
477
  flex-direction row
@@ -479,10 +506,17 @@ $mapHeight = 36rem
479
506
  font-size 80% !important
480
507
  .demo--merchant &
481
508
  justify-content center
509
+ &.demo--localities
510
+ .demo
511
+ &__content-header
512
+ flex-direction column
513
+ &__input-container
514
+ margin-right 0
482
515
  @media screen and (max-width 440px)
483
516
  .demo
484
517
  &.demo--distance
485
518
  &.demo--address
519
+ .demo--localitiesaddress &
486
520
  &.demo--map
487
521
  .demo__input-container
488
522
  &:nth-child(3)
@@ -495,6 +529,7 @@ $mapHeight = 36rem
495
529
  &.demo--distance
496
530
  &.demo--localities
497
531
  &.demo--address
532
+ .demo--localitiesaddress &
498
533
  .flag
499
534
  width 2rem
500
535
  height 1.4rem
@@ -514,9 +549,13 @@ $mapHeight = 36rem
514
549
  justify-content flex-start
515
550
  flex-direction column
516
551
  &.demo--address
552
+ &.demo--localitiesaddress
517
553
  .demo__input-container--inline
518
554
  .input
519
555
  margin 0 0 2rem 0
556
+ &.demo--localitiesaddress
557
+ .demo__input-container
558
+ width 100%
520
559
  &.demo--merchant
521
560
  .demo__results
522
561
  padding 2rem 0
@@ -526,6 +565,9 @@ $mapHeight = 36rem
526
565
  font-size 1.4rem
527
566
  height 3.6rem
528
567
  padding 0 .8rem
568
+ &__desc
569
+ &__list
570
+ margin-left 2rem
529
571
 
530
572
  @media screen and (max-width 370px)
531
573
  .demo