woocommerce/plugins/woocommerce-blocks/assets/js/base/components/cart-checkout
Seghir Nadir 8ecfcfb9a0
Add Checkbox support for Additional Fields in Checkout Block (#42780)
* Introduce Additional Fields API for Checkout Block https://github.com/woocommerce/woocommerce-blocks/pull/12073

* revert test to what it was

* Default to text, if the type supplied is not supported throw an error

* Add type for options

* Return null if somehow the select made it through without options

* Make select fields type enum and add options to schema

* Lint fixes

* Update plugins/woocommerce-blocks/assets/js/base/components/cart-checkout/address-form/address-form.tsx

Co-authored-by: Niels Lange <info@nielslange.de>

* Update plugins/woocommerce/src/Blocks/Domain/Services/CheckoutFields.php

Co-authored-by: Niels Lange <info@nielslange.de>

* Update checks to log errors and fail gracefully

* Add field id to class names

* Fix lint error

* Fix short array use

* Introduce Additional Fields API for Checkout Block https://github.com/woocommerce/woocommerce-blocks/pull/12073

* Default to text, if the type supplied is not supported throw an error

* Lint fixes

* Introduce Additional Fields API for Checkout Block https://github.com/woocommerce/woocommerce-blocks/pull/12073

* add support for registering checkboxes

* remove extra error log

* add styling

* fix rebase conflit

* fix rebase conflit 2

* fix linter errors

* address review comments

* add warning for checkbox

* fix changes

---------

Co-authored-by: Thomas Roberts <thomas.roberts@automattic.com>
Co-authored-by: Thomas Roberts <5656702+opr@users.noreply.github.com>
Co-authored-by: Niels Lange <info@nielslange.de>
2023-12-18 13:21:36 +01:00
..
address-form Add Checkbox support for Additional Fields in Checkout Block (#42780) 2023-12-18 13:21:36 +01:00
cart-line-items-table Fixed Blocks Linting Errors (#42727) 2023-12-12 15:05:20 -08:00
local-pickup-select Move `RadioControl`and `RadioControlAccordion` components to components package (https://github.com/woocommerce/woocommerce-blocks/pull/11312) 2023-10-23 15:59:19 +01:00
order-summary update text domain in plugins/woocommerce-blocks (#42717) 2023-12-12 14:12:36 -08:00
payment-method-icons Simplify @woocommerce/types imports (https://github.com/woocommerce/woocommerce-blocks/pull/8019) 2022-12-23 18:59:02 +07:00
payment-method-label Update @woocmmerce/eslint-plugin to 2.0.0 (https://github.com/woocommerce/woocommerce-blocks/pull/6203) 2022-04-08 14:47:19 +01:00
pickup-location update text domain in plugins/woocommerce-blocks (#42717) 2023-12-12 14:12:36 -08:00
place-order-button Checkout block: Full width Place Order button when Return To Cart link is disabled. (https://github.com/woocommerce/woocommerce-blocks/pull/9721) 2023-06-05 15:31:32 +01:00
policies Fixed Blocks Linting Errors (#42727) 2023-12-12 15:05:20 -08:00
product-backorder-badge update text domain in plugins/woocommerce-blocks (#42717) 2023-12-12 14:12:36 -08:00
product-badge Add universal border radius for form elements and components (https://github.com/woocommerce/woocommerce-blocks/pull/11193) 2023-10-11 17:04:45 +01:00
product-details Fix/you do not need lodash (https://github.com/woocommerce/woocommerce-blocks/pull/9161) 2023-04-28 11:29:45 +01:00
product-image Add theme-level global styles to Cart and Checkout block (https://github.com/woocommerce/woocommerce-blocks/pull/8809) 2023-04-22 00:11:10 +04:00
product-low-stock-badge update text domain in plugins/woocommerce-blocks (#42717) 2023-12-12 14:12:36 -08:00
product-metadata Simplify @woocommerce/types imports (https://github.com/woocommerce/woocommerce-blocks/pull/8019) 2022-12-23 18:59:02 +07:00
product-sale-badge update text domain in plugins/woocommerce-blocks (#42717) 2023-12-12 14:12:36 -08:00
product-summary Fix es lint warnings (https://github.com/woocommerce/woocommerce-blocks/pull/4206) 2021-05-16 18:59:32 +01:00
return-to-cart-button update text domain in plugins/woocommerce-blocks (#42717) 2023-12-12 14:12:36 -08:00
shipping-calculator update text domain in plugins/woocommerce-blocks (#42717) 2023-12-12 14:12:36 -08:00
shipping-location update text domain in plugins/woocommerce-blocks (#42717) 2023-12-12 14:12:36 -08:00
shipping-rates-control Fixed Blocks Linting Errors (#42727) 2023-12-12 15:05:20 -08:00
shipping-rates-control-package update text domain in plugins/woocommerce-blocks (#42717) 2023-12-12 14:12:36 -08:00
totals Fixed Blocks Linting Errors (#42727) 2023-12-12 15:05:20 -08:00
index.js Move `FormStep` to the components package (https://github.com/woocommerce/woocommerce-blocks/pull/11246) 2023-10-23 08:57:45 -07:00