woocommerce/plugins/woocommerce-blocks/assets/js/base/components
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
..
block-error-boundary Fixed Blocks Linting Errors (#42727) 2023-12-12 15:05:20 -08:00
button replace Stories root Dir to "External Components" (https://github.com/woocommerce/woocommerce-blocks/pull/11910) 2023-11-27 04:14:58 -08:00
cart-checkout Add Checkbox support for Additional Fields in Checkout Block (#42780) 2023-12-18 13:21:36 +01:00
combobox Add select field type for custom checkout fields (#42758) 2023-12-15 06:39:22 -08:00
country-input Fixed Blocks Linting Errors (#42727) 2023-12-12 15:05:20 -08:00
drawer update text domain in plugins/woocommerce-blocks (#42717) 2023-12-12 14:12:36 -08:00
filter-element-label Fixed Blocks Linting Errors (#42727) 2023-12-12 15:05:20 -08:00
filter-placeholder Make loading placeholder colors match the current font color (https://github.com/woocommerce/woocommerce-blocks/pull/7658) 2022-11-15 18:08:44 -03:00
filter-reset-button update text domain in plugins/woocommerce-blocks (#42717) 2023-12-12 14:12:36 -08:00
filter-submit-button update text domain in plugins/woocommerce-blocks (#42717) 2023-12-12 14:12:36 -08:00
form Ts blocks (https://github.com/woocommerce/woocommerce-blocks/pull/5668) 2022-02-07 09:34:30 +00:00
form-token-field Add Notices Documentation to Storybook and upgrade to Storybook 7 (https://github.com/woocommerce/woocommerce-blocks/pull/11524) 2023-11-02 13:01:42 +00:00
load-more-button update text domain in plugins/woocommerce-blocks (#42717) 2023-12-12 14:12:36 -08:00
loading-mask Fixed Blocks Linting Errors (#42727) 2023-12-12 15:05:20 -08:00
noninteractive Fix: Mini Cart block button should be disabled in the editor (https://github.com/woocommerce/woocommerce-blocks/pull/5308) 2021-12-07 21:29:56 +07:00
notice-banner Fixed Blocks Linting Errors (#42727) 2023-12-12 15:05:20 -08:00
pagination Fixed Blocks Linting Errors (#42727) 2023-12-12 15:05:20 -08:00
price-slider update text domain in plugins/woocommerce-blocks (#42717) 2023-12-12 14:12:36 -08:00
product-list Fixed Blocks Linting Errors (#42727) 2023-12-12 15:05:20 -08:00
product-name Add Notices Documentation to Storybook and upgrade to Storybook 7 (https://github.com/woocommerce/woocommerce-blocks/pull/11524) 2023-11-02 13:01:42 +00:00
product-price Fixed Blocks Linting Errors (#42727) 2023-12-12 15:05:20 -08:00
product-rating update text domain in plugins/woocommerce-blocks (#42717) 2023-12-12 14:12:36 -08:00
quantity-selector Fixed Blocks Linting Errors (#42727) 2023-12-12 15:05:20 -08:00
read-more Fixed Blocks Linting Errors (#42727) 2023-12-12 15:05:20 -08:00
reviews Fixed Blocks Linting Errors (#42727) 2023-12-12 15:05:20 -08:00
sidebar-layout Fix alignment issue with 'Add Coupon Code' button in WooCommerce Blocks checkout page (https://github.com/woocommerce/woocommerce-blocks/pull/9392) 2023-05-12 12:28:08 +07:00
skeleton 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
snackbar-list Add Notices Documentation to Storybook and upgrade to Storybook 7 (https://github.com/woocommerce/woocommerce-blocks/pull/11524) 2023-11-02 13:01:42 +00:00
state-input Fixed Blocks Linting Errors (#42727) 2023-12-12 15:05:20 -08:00
summary Add text limit to payment method descriptions in the page editor (https://github.com/woocommerce/woocommerce-blocks/pull/9708) 2023-06-07 02:29:15 -07:00
tabs update text domain in plugins/woocommerce-blocks (#42717) 2023-12-12 14:12:36 -08:00
README.md Adjust contributor docs (https://github.com/woocommerce/woocommerce-blocks/pull/9622) 2023-05-30 13:30:36 +07:00
index.ts Move `Title` to components package (https://github.com/woocommerce/woocommerce-blocks/pull/11383) 2023-11-01 03:40:29 -07:00

README.md

WooCommerce Blocks - General Purpose Components

These are shared components used in WooCommerce blocks, and may be used in the store front end (shopper experience) as well as the editor or admin dashboard.

See Components & Storybook doc for more information.