Skip to content

Commit

Permalink
Merge branch '4.x' into Add/required-className
Browse files Browse the repository at this point in the history
  • Loading branch information
beatrizmaselli authored Oct 22, 2024
2 parents d6af858 + 1db4252 commit e034d37
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 9 deletions.
18 changes: 17 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,23 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
### Added
- "...-required" classNames for the StyleguideInput component.

## [4.25.5] - 2024-10-09

### Fixed

- Denmark (DNK) postal code rules.

## [4.25.4] - 2024-10-02

### Added
- Two new postal codes to Dominican Republic (DOM) country file.

## [4.25.3] - 2024-10-02

### Fixed

- Changed the rules for France (FRA) so the number field is shown to users.

## [4.25.2] - 2024-09-18

### Added
Expand All @@ -23,7 +40,6 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
### Fixed
- Logic to validate if a country should use Number Keyboard (shouldShowNumberKeyboard).


## [4.25.0] - 2024-09-13

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "address-form",
"vendor": "vtex",
"version": "4.25.2",
"version": "4.25.5",
"title": "address-form React component",
"description": "address-form React component",
"defaultLocale": "en",
Expand Down
6 changes: 4 additions & 2 deletions react/country/DNK.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ export default {
},
{
name: 'postalCode',
maxLength: 50,
label: 'postalCode',
maxLength: 4,
label: 'Postnumre',
mask: '1234',
regex: '^\\d{4}$',
required: true,
size: 'small',
autoComplete: 'nope',
Expand Down
8 changes: 5 additions & 3 deletions react/country/DOM.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { TWO_LEVELS } from '../constants'
import { secondLevelPostalCodes } from '../transforms/postalCodes'
import { getOneLevel, getTwoLevels } from '../transforms/addressFieldsOptions'
import { secondLevelPostalCodes } from '../transforms/postalCodes'

// Based on sheet provided by Rodolfo Bússola:
// https://docs.google.com/spreadsheets/d/1_uoFfVCg-E8lrGJ235ZkcqnK0cspyX53/edit?usp=sharing&ouid=113929948326320493678&rtpof=true&sd=true
Expand Down Expand Up @@ -43,7 +43,8 @@ const countryData = {
'El Pino': '63400'
},
'Distrito Nacional': {
'Santo Domingo De Guzmán': '10101'
'Santo Domingo De Guzmán': '10101',
'Santo Domingo Distrito Nacional': '10100'
},
Duarte: {
'San Francisco de Macorís': '31000',
Expand All @@ -69,7 +70,8 @@ const countryData = {
Moca: '53011',
'Cayetano Germosén': '56100',
'Gaspar Hernández': '56200',
'Jamao Al Norte': '56400'
'Jamao Al Norte': '56400',
'El Higuerito': '56000'
},
'Hato Mayor': {
'Hato Mayor': '25000',
Expand Down
2 changes: 1 addition & 1 deletion react/country/FRA.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default {
size: 'xlarge',
},
{
hidden: true,
hidden: false,
name: 'number',
maxLength: 750,
label: 'number',
Expand Down
2 changes: 1 addition & 1 deletion react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vtex/address-form",
"version": "4.25.2",
"version": "4.25.5",
"description": "address-form React component",
"main": "lib/index.js",
"files": [
Expand Down

0 comments on commit e034d37

Please sign in to comment.