woocommerce/plugins/woocommerce-blocks/assets/js/blocks/cart-checkout/checkout
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
..
checkout-order-error Switch to `rest_preload_api_request` for API hydration in cart and checkout blocks. (https://github.com/woocommerce/woocommerce-blocks/pull/4090) 2021-04-27 11:16:23 +01:00
empty-cart Only use SHOP_URL if set (https://github.com/woocommerce/woocommerce-blocks/pull/3845) 2021-02-17 15:17:54 +00:00
form Update Express Payments Loading UI (https://github.com/woocommerce/woocommerce-blocks/pull/4228) 2021-06-16 13:44:40 +01:00
sidebar Add `TotalsWrapper` component (https://github.com/woocommerce/woocommerce-blocks/pull/4415) 2021-07-02 15:56:39 +01:00
attributes.js Update design of cart and checkout sidebars (https://github.com/woocommerce/woocommerce-blocks/pull/4180) 2021-05-17 15:00:57 +01:00
block.js Update design of cart and checkout sidebars (https://github.com/woocommerce/woocommerce-blocks/pull/4180) 2021-05-17 15:00:57 +01:00
edit.js Update design of cart and checkout sidebars (https://github.com/woocommerce/woocommerce-blocks/pull/4180) 2021-05-17 15:00:57 +01:00
editor.scss Use real previews for the Cart and Checkout blocks (https://github.com/woocommerce/woocommerce-blocks/pull/2992) 2020-08-13 14:24:51 +01:00
frontend.js Audit and Move Image Assets, update error state (https://github.com/woocommerce/woocommerce-blocks/pull/4389) 2021-06-29 15:04:24 +01:00
index.js Enable and fix all jsdoc rule violations (https://github.com/woocommerce/woocommerce-blocks/pull/3168) 2020-09-20 19:54:08 -04:00
style.scss Add `TotalsWrapper` component (https://github.com/woocommerce/woocommerce-blocks/pull/4415) 2021-07-02 15:56:39 +01:00
utils.js Use wp_login_url instead of hardcoding login path (https://github.com/woocommerce/woocommerce-blocks/pull/3090) 2020-09-01 10:56:11 +01:00