woocommerce/plugins/woocommerce-blocks/assets/js/base/components/state-input
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
..
StateInputProps.ts Add client side postcode validation (https://github.com/woocommerce/woocommerce-blocks/pull/8503) 2023-03-14 19:37:28 +07:00
billing-state-input.tsx Update `AddressForm` and related components to TypeScript (https://github.com/woocommerce/woocommerce-blocks/pull/4365) 2021-06-17 09:35:24 +01:00
index.ts Update `AddressForm` and related components to TypeScript (https://github.com/woocommerce/woocommerce-blocks/pull/4365) 2021-06-17 09:35:24 +01:00
shipping-state-input.tsx Update `AddressForm` and related components to TypeScript (https://github.com/woocommerce/woocommerce-blocks/pull/4365) 2021-06-17 09:35:24 +01:00
state-input.tsx Remove WC Core shipping settings if Cart/Checkout blocks are in use (https://github.com/woocommerce/woocommerce-blocks/pull/8679) 2023-03-13 11:49:28 +00:00
style.scss fix issue with no margins on phone input (https://github.com/woocommerce/woocommerce-blocks/pull/2989) 2020-08-11 10:00:53 +01:00