Mike Jolley
4a8609737d
Increase specificity of wc-block-totals__change-address-button ( https://github.com/woocommerce/woocommerce-blocks/pull/2162 )
2020-04-08 17:23:17 +02:00
Mike Jolley
55d0067426
Update previews and editor styles for cart and checkout blocks ( https://github.com/woocommerce/woocommerce-blocks/pull/2160 )
...
* Update cart block editor styles to more closely match frontend
* Checkout editor styles
* Add image assets for previews and correct totals
* Add new previews
* Cart Preview
* Checkout preview
* Remove optional chaining
2020-04-08 16:03:39 +01:00
Mike Jolley
d73d9ca12e
Refactor some of the shipping hooks/context usage ( https://github.com/woocommerce/woocommerce-blocks/pull/2146 )
...
* Counting helpers for shipping rates and packages
* Use new helpers
* Make shipping calculator use shipping context directly
* Totals should use current address
* Avoid useShippingRates
* Return rates and other items from useShippingRatse in useStoreCart instead
* Update tests
* Merge conflict
* Merge conflict
2020-04-08 12:20:41 +01:00
Mike Jolley
0000cac384
Don't show "select" labels for shipping or payment method steps if there is only one option ( https://github.com/woocommerce/woocommerce-blocks/pull/2133 )
...
* Only show descriptions if shipping/payment methods > 1
* Hide descriptions if no description text is set
* Fix object length
* methods->options
* Counting helpers for shipping rates and packages
* Use new helpers
2020-04-08 10:00:31 +02:00
Albert Juhé Lluveras
8a78371703
Checkout: fix skeleton and responsive styles ( https://github.com/woocommerce/woocommerce-blocks/pull/2109 )
2020-04-03 14:17:09 +01:00
Seghir Nadir
c361a158c4
Respect needs_shipping in Cart and Checkout ( https://github.com/woocommerce/woocommerce-blocks/pull/2101 )
...
* replace SHIPPING_ENABLED with needsShipping
* rename needsShipping variable
* only show shipping in checkout sidebar if we need shipping
2020-04-02 18:10:36 +01:00
Seghir Nadir
0046b73bbf
delete passed arg to useShippingRates since it's not needed
2020-03-31 13:22:41 +01:00
Albert Juhé Lluveras
5e78c47e4d
Move some base components to subfolders ( https://github.com/woocommerce/woocommerce-blocks/pull/2034 )
2020-03-30 15:04:27 +02:00