@woosmap/ui 4.214.0 → 4.216.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@woosmap/ui",
3
- "version": "4.214.0",
3
+ "version": "4.216.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/WebGeoServices/ui.git"
@@ -350,47 +350,84 @@ export default class AutocompleteAddressDemo extends Component {
350
350
  default:
351
351
  break;
352
352
  }
353
- console.log(`country: ${country}`);
354
353
  });
355
- let codeName = 'Postal Code';
354
+ let addressLine1 = 'Address Line 1';
355
+ let addressLine1PH = 'Street address, PO box, company name';
356
+ let addressLine2 = 'Address Line 2';
357
+ let addressLine2PH = 'Apartment, suite, unit, building, floor';
358
+ let townCity = 'City / Locality';
359
+ let townCityPH = 'City or town';
360
+ let stateRegion = 'State / Province / Region';
361
+ let stateRegionPH = 'State, province or region';
362
+ let codeName = 'ZIP / Postal Code';
363
+ let codeNamePH = 'Postal code or ZIP';
356
364
  if (country === 'United States') {
365
+ addressLine1 = 'Street Address';
366
+ addressLine1PH = 'Street number and name';
367
+ addressLine2 = 'Apt / Suite / Unit';
368
+ addressLine2PH = 'Optional: Apt, Suite, Unit';
369
+ townCity = 'City';
370
+ townCityPH = 'City';
371
+ stateRegion = 'State';
372
+ stateRegionPH = 'State (e.g. CA)';
357
373
  codeName = 'ZIP Code';
374
+ codeNamePH = '5-digit ZIP code';
375
+ } else if (country === 'United Kingdom') {
376
+ addressLine1 = 'Address Line 1';
377
+ addressLine1PH = 'House number and street name';
378
+ addressLine2 = 'Address Line 2';
379
+ addressLine2PH = 'Optional: Flat, Building, Floor';
380
+ townCity = 'Town / City';
381
+ townCityPH = 'Town or city';
382
+ stateRegion = 'County (optional)';
383
+ stateRegionPH = 'County (if applicable)';
384
+ codeName = 'Postcode';
385
+ codeNamePH = 'Postcode (e.g. SW1A 1AA)';
358
386
  } else if (country === 'Ireland') {
387
+ addressLine1 = 'Address Line 1';
388
+ addressLine1PH = 'Street name and number';
389
+ addressLine2 = 'Address Line 2';
390
+ addressLine2PH = 'Optional: Apartment, Block, Floor';
391
+ townCity = 'Town / City';
392
+ townCityPH = 'Town or city';
393
+ stateRegion = 'County';
394
+ stateRegionPH = 'County';
359
395
  codeName = 'Eircode';
396
+ codeNamePH = 'Eircode';
360
397
  }
361
398
  return (
362
399
  <>
363
400
  <div className="showcase-result-wrapper-col">
364
401
  <Input
365
- label="Apartment, unit, suite, or floor #"
366
- placeholder="Apartment, unit, suite, or floor #"
367
- value={shippingAddress2}
402
+ label={addressLine1}
403
+ placeholder={addressLine1PH}
404
+ value={shippingAddress}
368
405
  onChange={() => {}}
369
406
  />
370
407
  <Input
371
- label="Street number, street name"
372
- placeholder="Street number, street name"
373
- value={shippingAddress}
408
+ className="fullw"
409
+ label={stateRegion}
410
+ placeholder={stateRegionPH}
411
+ value={state}
374
412
  onChange={() => {}}
375
413
  />
376
- <Input label="City" value={locality} placeholder="City" onChange={() => {}} />
414
+ <Input label={townCity} value={locality} placeholder={townCityPH} onChange={() => {}} />
377
415
  </div>
378
416
  <div className="showcase-result-wrapper-col">
379
417
  <Input
380
- className="fullw"
381
- label="State/Province"
382
- placeholder="State/Province"
383
- value={state}
418
+ label={addressLine2}
419
+ placeholder={addressLine2PH}
420
+ value={shippingAddress2}
384
421
  onChange={() => {}}
385
422
  />
386
423
  <Input
387
424
  className="fullw"
388
425
  label={codeName}
389
- placeholder={codeName}
426
+ placeholder={codeNamePH}
390
427
  value={postcode}
391
428
  onChange={() => {}}
392
429
  />
393
- <Input label="Country/Region" placeholder="Country/Region" value={country} onChange={() => {}} />
430
+ <Input label="Country" placeholder="Country" value={country} onChange={() => {}} />
394
431
  </div>
395
432
  </>
396
433
  );