woocommerce/plugins/woocommerce-blocks/assets/js/blocks/checkout
Alex Florisca 9b8256cc3e
[Feature] Express Checkout Improvements (#50791)
* Add new buttonAttributes API to style express checkout buttons coherently (#47899)

* Expose buttonAttributes to the express payment methods

* Add size and label attributes to the express checkout area

* Remove defaultHeight

* default button Label

* Remove the button label attribute

* Remove px from height

* Change large button height to 55px

* Load express checkout block with attributes

* Add toggle and borderRadius controls and remove getting border radius from the theme

* Remove extra border radius text

* Only pass buttonAttributes if toggled on

* Move express payment block attribute logic into a Provider

* Tidy up editor grid and parse attributes into context on frontend

* Add px to border-radius input

* Express payment methods not selectable

* Add a test

* lint fixes

* default button height is 48 not 4

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

* Update docs

* Add tests for express payment methods

* Center images within the express payment area in the editor

* Apply the buttonAttributes to the li container in the editor regardless of showButtonStyles

* Fix style issue

* fix linting

* fix lint again

* Update manifest

* Update docs manifest

* Resize images in editor

* lint fix

---------

Co-authored-by: github-actions <github-actions@github.com>

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

* Synchronise the express payment settings between the Cart & Checkout blocks (#50688)

* Add express payment methods to sidebar

* Only add extra props for express payment methods

* Update docs

* Make title, description and gatewayId types optional

* Update docs

* Fix types again and editor side

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

* handle situation when no methods are active

* Update manifest

* Add express payment methods to inspector controls for express checkout block (#50983)

* Remove forced styles on the editor

* Remove the darkMode setting from the buttonAttributes API (#51109)

* Remove darkMode from the buttonAttributes API

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

---------

Co-authored-by: github-actions <github-actions@github.com>

* Accept supports declarations for express payment style controls + merchant ux improvements in the editor (#51296)

* Fix images in editor displaying weird

* Fix long express payment names breaking layout

* Default to uniform styles off

* Use heightControl for border radius and fix height for cart buttons

* Move formatting title and description to the config validation

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

* Fix linting

* Fix failing test

* Add back the 48px height for images in editor

* Fix linting again

* Update docs

* Update docs manifest

* Update docs to fix linting

* Add comment to test to better explain why we are expecting a console warning

* make strings translatable

* Sync cart & checkout directly without option

* Remove current styles

* Change the beta label

* Replace < and > with symbol references in docs

* Update docs manifest

* Increase padding of beta label

* fix linter issues

* change to using looger helper

* fix CSS

---------

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Nadir Seghir <nadir.seghir@gmail.com>
2024-09-18 19:49:27 +00:00
..
address-card Hadren styles for interactive elements in Checkout block (#51375) 2024-09-16 13:03:20 +00:00
address-wrapper [Performance]: Replace `classnames` usage with `clsx` (#47760) 2024-05-31 05:49:36 +02:00
checkout-order-error Fixed Blocks Linting Errors (#42727) 2023-12-12 15:05:20 -08:00
empty-cart Fixed Blocks Linting Errors (#42727) 2023-12-12 15:05:20 -08:00
form-step Fix most of lint warnings (#50869) 2024-08-23 14:30:14 +02:00
inner-blocks [Feature] Express Checkout Improvements (#50791) 2024-09-18 19:49:27 +00:00
order-notes Update blocks JS tests to React 18 (#47383) 2024-05-15 21:33:36 +12:00
phone-number update text domain in plugins/woocommerce-blocks (#42717) 2023-12-12 14:12:36 -08:00
styles [Accessibility] Fix focus order on checkout block page (#49649) 2024-08-20 15:42:38 +02:00
test Display address card for virtual products if shopper's address is known (#50127) 2024-07-31 15:17:21 +02:00
attributes.ts Move Checkout block attributes into metadata (`block.json`) (https://github.com/woocommerce/woocommerce-blocks/pull/5594) 2022-01-28 16:37:06 +00:00
block.json Update all blocks to V3 (#48720) 2024-08-20 10:14:11 +00:00
block.tsx Revert "Add new buttonAttributes API to style express checkout buttons coherently (#47899) (#50763) 2024-08-19 18:54:58 +01:00
context.ts Revert "Add new buttonAttributes API to style express checkout buttons coherently (#47899) (#50763) 2024-08-19 18:54:58 +01:00
edit.tsx [Accessibility] Fix focus order on checkout block page (#49649) 2024-08-20 15:42:38 +02:00
frontend.tsx Spread metadata when loading block in frontend (https://github.com/woocommerce/woocommerce-blocks/pull/5732) 2022-02-08 10:33:27 +00:00
index.tsx [Performance]: Replace `classnames` usage with `clsx` (#47760) 2024-05-31 05:49:36 +02:00
types.ts Change Checkout form step numbering so it can only be toggled for all blocks, not individually per-step (#47479) 2024-05-22 07:03:48 -07:00
utils.ts Use address format from server in address card (#45852) 2024-04-08 01:43:42 -07:00