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