woocommerce/plugins/woocommerce-blocks/assets/js/base
Seghir Nadir 6c136e4e1a
normalize IDs for form fields in Checkout (#47650)
* normalize IDs for form fields and fix types

* update docs as well

* update rest of docs

* Add changefile(s) from automation for the following project(s): woocommerce-blocks

* fix linting for document

* also align classnames

* revert to correct classname

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-05-22 22:54:03 +02:00
..
components normalize IDs for form fields in Checkout (#47650) 2024-05-22 22:54:03 +02:00
context Update blocks JS tests to React 18 (#47383) 2024-05-15 21:33:36 +12:00
hocs Upgrade webpack to version 5 (https://github.com/woocommerce/woocommerce-blocks/pull/8013) 2023-09-20 17:31:52 -03:00
hooks Fixed Blocks Linting Errors (#42727) 2023-12-12 15:05:20 -08:00
utils Correctly attribute focus back when opening the mini cart several times (#47683) 2024-05-22 17:03:22 +02:00
README.MD Update cart/checkout usage of the @wordpress/components Slot Fill (#47105) 2024-05-16 21:46:24 +12:00

README.MD

Base Components/Context/Hooks

Base components are designed to be used on the frontend of a store. Due to this, we need to avoid using heavy WordPress externals as dependencies (@wordpress/blocks, @wordpress/block-editor, etc).

Note 2 exceptions, we do use the Slot and Fill which we import and bundle from @wordpress/components. Otherwise you should avoid importing anything else from that package.

The other exception is the FormTokenField, which is used in deprecated blocks and use of that import is also deprecated.

If you need primitive/low-level components to build components in this library, please use Ariakit to build them. See Button for an example.

Check the built *.assets.php files to ensure extra dependencies aren't being added to the build.