woocommerce/plugins/woocommerce-blocks/assets/js/base/components/cart-checkout/totals
Thomas Roberts c3f4310fe2 Add `TotalsWrapper` component (https://github.com/woocommerce/woocommerce-blocks/pull/4415)
* Add TotalsWrapper component and associated styling

* Add TotalsWrapper around the subtotal, fees and discount

* Remove margins/paddings/borders from sidebar elements

This is to allow TotalsWrapper to be the component responsible for handling spacing and borders.

* Update styles to allow components to be wrapped in TotalsWrapper

* Move TotalsWrapper to checkout package

* Wrap all parts of Cart sidebar in TotalsWrapper

* Remove border from coupon panel

* Add has-bottom-border option to TotalsWrapper

* Wrap checkout sidebar components in TotalsWrapper

* Remove border/padding from order summary

* Add hasValidFills function

This will be used to check if a Slot has any fills that return truthy values.

* Remove borderSize and hasBottomBorder props from TotalsWrapper

* Wrap Slots in TotalsWrapper

* Update hasValidFills to check length of array

* Update tests and snapshots

* Only render tax totals if tax is more than 0
2021-07-02 15:56:39 +01:00
..
coupon Add `TotalsWrapper` component (https://github.com/woocommerce/woocommerce-blocks/pull/4415) 2021-07-02 15:56:39 +01:00
discount Change `couponName` filter to `coupons` and update documentation (https://github.com/woocommerce/woocommerce-blocks/pull/4312) 2021-07-01 14:12:46 +01:00
footer-item remove usage of mustBeString (https://github.com/woocommerce/woocommerce-blocks/pull/4294) 2021-06-01 09:46:02 +01:00
shipping Update design of cart and checkout sidebars (https://github.com/woocommerce/woocommerce-blocks/pull/4180) 2021-05-17 15:00:57 +01:00
index.js Fix broken shipping Calculator (https://github.com/woocommerce/woocommerce-blocks/pull/3778) 2021-02-03 12:35:17 +01:00