woocommerce/plugins/woocommerce-blocks/packages/checkout/utils/validation/test
Niels Lange 83b5019e4d Add client side postcode validation (https://github.com/woocommerce/woocommerce-blocks/pull/8503)
* Add client side postcode validation

* Prevent server-side validation

* Adjust translation

* Only validate postcode if country is available

* Specify return type of isPostcode()

* Convert function to static variable set

* Refactor <ValidatedTextInput> for postcode validation

* Refactor customValidationHandler

* Use customValidationHandler as intermediate function

* Hyphenate file names

* Update packages/checkout/utils/validation/is-postcode.ts

Co-authored-by: Mike Jolley <mike.jolley@me.com>

* Normalise postcode on input

* Fix usage of out of date value from input field

---------

Co-authored-by: Mike Jolley <mike.jolley@me.com>
2023-03-14 19:37:28 +07:00
..
index.tsx Custom validation messages using the field name/label (https://github.com/woocommerce/woocommerce-blocks/pull/8143) 2023-01-13 15:54:35 +00:00
is-postcode.ts Add client side postcode validation (https://github.com/woocommerce/woocommerce-blocks/pull/8503) 2023-03-14 19:37:28 +07:00