woocommerce/plugins/woocommerce-blocks/assets/js/base/components
Rua Haszard 7f44458418 Basic storybook implementation (https://github.com/woocommerce/woocommerce-blocks/pull/1636)
* install & configure storybook (via magic npx script)

* fix indentation in storybook generated files

* eslint ignore generated storybook files (for now at least)

* unhide storybook folder, consistent with Gutenberg project

* demo story for one of our components (with no css/styles)

* hack in scss webpack config & add story for button:
- fixes scss imports breaking storybook build
- note scss / styling doesn't work yet
+ organise our component stories into folder

* git ignore storybook-static build folder

* pin dependencies for storybook

* piggy-back off main webpack config for storybook module.rules (for scss)

* use gutenberg (wp-components) styles in storybook

* use system font for storybook, consistent with wp-admin/gberg and reasonable default for components in front end

* add --ci flag to prevent storybook opening new browser tab…
- see also https://github.com/storybookjs/storybook/issues/6201

* rename default stories to Default (following Gutenberg pattern)

* add story for ErrorPlaceholder

* failing ProductPreview story (committing to PR as an example for discussion)

* storybook for components/icons

* fix aliased dependencies in components for storybook:
append our webpack aliases to storybook webpack config

* basic story for PriceSlider (looks right but interaction broken)

* fix PriceSlider user interaction:
- PriceSlider expects client to handle onChange and pass in new min/max

* add comment about priceslider max/min (todoish)

* remove default stories from storybook scaffolding

* organise stories by module (aka folder in codebase)

* package-lock update after rebase

* remove unnecessary ignores (default stories are gone)

* delete experimental/risky/broken stories:
- icons components are changing in woocommerce/woocommerce-blocks#1644
- we need to refactor/do more work to get ProductPreview working (settings globals)

* remove unnecessary import

* clarify PriceSlider component intended usage comment in story

* remove redundant wrapper divs from stories

* add common storybook addons (used by Gutenberg storybook)

* rebuild package.lock after rebase

* remove unnecessary wrapper div

* package fixes after rebase

* add configuration for storybook source loader

* add decorators for a11y and knobs plugins

* remove unnecessary react import & import useState from WP

Co-authored-by: Darren Ethier <darren@roughsmootheng.in>
2020-01-31 09:59:14 +13:00
..
block-error-boundary Add block error boundary to JS-rendered blocks (https://github.com/woocommerce/woocommerce-blocks/pull/1166) 2019-11-15 15:15:55 +01:00
button Basic storybook implementation (https://github.com/woocommerce/woocommerce-blocks/pull/1636) 2020-01-31 09:59:14 +13:00
checkbox-list fix translation quantities (https://github.com/woocommerce/woocommerce-blocks/pull/1415) 2019-12-19 10:22:53 +01:00
checkout add fieldset and legend to FormStep component (https://github.com/woocommerce/woocommerce-blocks/pull/1400) 2020-01-13 10:21:20 -05:00
country-input Create CountryInput component (https://github.com/woocommerce/woocommerce-blocks/pull/1585) 2020-01-17 17:58:08 +01:00
dropdown-selector All Products & filters accessibility improvements (https://github.com/woocommerce/woocommerce-blocks/pull/1656) 2020-01-30 11:04:39 +01:00
filter-submit-button All Products & filters accessibility improvements (https://github.com/woocommerce/woocommerce-blocks/pull/1656) 2020-01-30 11:04:39 +01:00
formatted-monetary-amount show discount on cart line items & price styling (https://github.com/woocommerce/woocommerce-blocks/pull/1548) 2020-01-15 09:52:42 +13:00
input-row Create CountryInput component (https://github.com/woocommerce/woocommerce-blocks/pull/1585) 2020-01-17 17:58:08 +01:00
label Add 'Go' button to Attribute Filter (https://github.com/woocommerce/woocommerce-blocks/pull/1332) 2019-12-06 16:36:55 +01:00
load-more-button Update dependencies order (https://github.com/woocommerce/woocommerce-blocks/pull/1146) 2019-11-08 17:30:11 +01:00
pagination All Products & filters accessibility improvements (https://github.com/woocommerce/woocommerce-blocks/pull/1656) 2020-01-30 11:04:39 +01:00
payment-methods Add payment method api and components to checkout steps (https://github.com/woocommerce/woocommerce-blocks/pull/1349) 2020-01-06 17:28:09 -05:00
price-slider Basic storybook implementation (https://github.com/woocommerce/woocommerce-blocks/pull/1636) 2020-01-31 09:59:14 +13:00
product-list All Products & filters accessibility improvements (https://github.com/woocommerce/woocommerce-blocks/pull/1656) 2020-01-30 11:04:39 +01:00
product-list-item Implement useProductLayoutContext for layout prefix in atomic blocks. (https://github.com/woocommerce/woocommerce-blocks/pull/1183) 2019-11-18 15:25:29 +01:00
product-sort-select Update dependencies order (https://github.com/woocommerce/woocommerce-blocks/pull/1146) 2019-11-08 17:30:11 +01:00
quantity-selector Add Quantity selector component for cart line items (https://github.com/woocommerce/woocommerce-blocks/pull/1558) 2020-01-15 11:32:54 +00:00
radio-control Make RadioControl id optional (https://github.com/woocommerce/woocommerce-blocks/pull/1563) 2020-01-14 21:21:29 +01:00
read-more Basic storybook implementation (https://github.com/woocommerce/woocommerce-blocks/pull/1636) 2020-01-31 09:59:14 +13:00
review-list Use wc_review_ratings_enabled() API function to check if review ratings are enabled (https://github.com/woocommerce/woocommerce-blocks/pull/1374) 2019-12-13 18:13:11 +01:00
review-list-item Update dependencies order (https://github.com/woocommerce/woocommerce-blocks/pull/1146) 2019-11-08 17:30:11 +01:00
review-sort-select Update dependencies order (https://github.com/woocommerce/woocommerce-blocks/pull/1146) 2019-11-08 17:30:11 +01:00
sort-select Update dependencies order (https://github.com/woocommerce/woocommerce-blocks/pull/1146) 2019-11-08 17:30:11 +01:00
tabs Add payment method api and components to checkout steps (https://github.com/woocommerce/woocommerce-blocks/pull/1349) 2020-01-06 17:28:09 -05:00
text-input Make TextInput respect prefers-reduced-motion preference (https://github.com/woocommerce/woocommerce-blocks/pull/1588) 2020-01-18 10:39:13 +01:00
totals Add Cart totals to Cart block (https://github.com/woocommerce/woocommerce-blocks/pull/1411) 2020-01-10 15:37:27 +01:00