From f11bb005862ac6a0884c60456e7c08aae8fbc219 Mon Sep 17 00:00:00 2001 From: Akira Sudoh Date: Wed, 30 Dec 2020 11:59:48 +0900 Subject: [PATCH] docs(card): catch up with latest change This change updates the document as we introduced `` and ``. Refs #4789. --- .../__stories__/README.stories.mdx | 13 ++-- .../__stories__/README.stories.react.mdx | 6 +- .../__stories__/README.stories.mdx | 8 ++- .../card/__stories__/README.stories.mdx | 69 ++++++++++--------- .../carousel/__stories__/README.stories.mdx | 6 +- .../__stories__/README.stories.react.mdx | 6 +- .../__stories__/README.stories.mdx | 5 +- .../__stories__/README.stories.mdx | 3 +- 8 files changed, 65 insertions(+), 51 deletions(-) diff --git a/packages/web-components/src/components/card-section-carousel/__stories__/README.stories.mdx b/packages/web-components/src/components/card-section-carousel/__stories__/README.stories.mdx index ea713094b5e..3a5f5be05b4 100644 --- a/packages/web-components/src/components/card-section-carousel/__stories__/README.stories.mdx +++ b/packages/web-components/src/components/card-section-carousel/__stories__/README.stories.mdx @@ -11,6 +11,7 @@ Here's a quick example to get you started. ```javascript import '@carbon/ibmdotcom-web-components/es/components/card/card.js'; +import '@carbon/ibmdotcom-web-components/es/components/card/card-heading.js'; import '@carbon/ibmdotcom-web-components/es/components/card/card-footer.js'; import '@carbon/ibmdotcom-web-components/es/components/content-section/content-section.js'; import '@carbon/ibmdotcom-web-components/es/components/content-section/content-section-heading.js'; @@ -28,7 +29,7 @@ import '@carbon/ibmdotcom-web-components/es/components/carousel/carousel.js'; - Lorem ipsum dolor sit amet + Lorem ipsum dolor sit amet Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean et ultricies est. - Lorem ipsum dolor sit amet + Lorem ipsum dolor sit amet Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean et ultricies est. - Lorem ipsum dolor sit amet + Lorem ipsum dolor sit amet Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean et ultricies est. - Lorem ipsum dolor sit amet + Lorem ipsum dolor sit amet Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean et ultricies est. - Lorem ipsum dolor sit amet + Lorem ipsum dolor sit amet Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean et ultricies est. - Lorem ipsum dolor sit amet + Lorem ipsum dolor sit amet Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean et ultricies est. - Lorem ipsum dolor sit amet + Lorem ipsum dolor sit amet Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean et ultricies est. - Lorem ipsum dolor sit amet + Lorem ipsum dolor sit amet Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean et ultricies est. Mauris iaculis eget dolor nec hendrerit. Phasellus at elit sollicitudin, sodales nulla quis, consequat libero. diff --git a/packages/web-components/src/components/card-section-images/__stories__/README.stories.mdx b/packages/web-components/src/components/card-section-images/__stories__/README.stories.mdx index f5b2b8d3915..2e77e8c10e6 100644 --- a/packages/web-components/src/components/card-section-images/__stories__/README.stories.mdx +++ b/packages/web-components/src/components/card-section-images/__stories__/README.stories.mdx @@ -19,6 +19,8 @@ Here's a quick example to get you started. ```javascript import '@carbon/ibmdotcom-web-components/es/components/card-section-images/card-section-images.js'; +import '@carbon/ibmdotcom-web-components/es/components/card/card-eyebrow.js'; +import '@carbon/ibmdotcom-web-components/es/components/card/card-heading.js'; import '@carbon/ibmdotcom-web-components/es/components/card-group/card-group.js'; import '@carbon/ibmdotcom-web-components/es/components/card-group/card-group-item.js'; @@ -29,11 +31,11 @@ import '@carbon/ibmdotcom-web-components/es/components/card-group/card-group-ite ```html - + -
Topic
-
Natural Language Processing.
+ Topic + Natural Language Processing. ${ArrowRight20({ slot: 'icon' })} diff --git a/packages/web-components/src/components/card/__stories__/README.stories.mdx b/packages/web-components/src/components/card/__stories__/README.stories.mdx index e9fb244e630..a04e687d794 100644 --- a/packages/web-components/src/components/card/__stories__/README.stories.mdx +++ b/packages/web-components/src/components/card/__stories__/README.stories.mdx @@ -18,14 +18,16 @@ Here's a quick example to get you started. ```javascript import '@carbon/ibmdotcom-web-components/es/components/card/card.js'; +import '@carbon/ibmdotcom-web-components/es/components/card/card-eyebrow.js'; +import '@carbon/ibmdotcom-web-components/es/components/card/card-heading.js'; ``` ### HTML ```html - Eyebrow text - Lorem ipsum dolor sit amet + Eyebrow text + Lorem ipsum dolor sit amet Card CTA text + Eyebrow text + Lorem ipsum dolor +

Copy to be shown on hover if the pictogram placement is bottom

+ + - Eyebrow text - Lorem ipsum dolor -

Copy to be shown on hover if the pictogram placement is bottom

- - - -
+ + +
``` ## Props diff --git a/packages/web-components/src/components/carousel/__stories__/README.stories.mdx b/packages/web-components/src/components/carousel/__stories__/README.stories.mdx index 6b288cf7c01..804cae1f2e1 100644 --- a/packages/web-components/src/components/carousel/__stories__/README.stories.mdx +++ b/packages/web-components/src/components/carousel/__stories__/README.stories.mdx @@ -16,6 +16,8 @@ Here's a quick example to get you started. ### JS ```javascript +import '@carbon/ibmdotcom-web-components/es/components/card/card.js'; +import '@carbon/ibmdotcom-web-components/es/components/card/card-heading.js'; import '@carbon/ibmdotcom-web-components/es/components/carousel/carousel.js'; import '@carbon/ibmdotcom-web-components/es/components/content-section/content-section-leading.js'; import '@carbon/ibmdotcom-web-components/es/components/content-section/content-section-heading.js'; @@ -48,7 +50,7 @@ import '@carbon/ibmdotcom-web-components/es/components/content-section/content-s - Lorem ipsum dolor sit amet + Lorem ipsum dolor sit amet Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean et ultricies est. - Lorem ipsum dolor sit amet + Lorem ipsum dolor sit amet Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean et ultricies est. Mauris iaculis eget dolor nec hendrerit. Phasellus at elit sollicitudin, sodales nulla quis, consequat libero. diff --git a/packages/web-components/src/components/carousel/__stories__/README.stories.react.mdx b/packages/web-components/src/components/carousel/__stories__/README.stories.react.mdx index a0300fffe2d..f1f1cd98e5d 100644 --- a/packages/web-components/src/components/carousel/__stories__/README.stories.react.mdx +++ b/packages/web-components/src/components/carousel/__stories__/README.stories.react.mdx @@ -18,6 +18,8 @@ Here's a quick example to get you started. ```javascript import ArrowRight20 from '@carbon/icons-react/es/arrow--right/20.js'; +import DDSCard from '@carbon/ibmdotcom-web-components/es/components-react/card/card.js'; +import DDSCardHeading from '@carbon/ibmdotcom-web-components/es/components-react/card/card-heading.js'; import DDSCarousel from '@carbon/ibmdotcom-web-components/es/components-react/carousel/carousel.js'; import DDSContentSection from '@carbon/ibmdotcom-web-components/es/components-react/content-section/content-section-leading.js'; import DDSContentSectionHeading from '@carbon/ibmdotcom-web-components/es/components-react/content-section/content-section-heading.js'; @@ -27,14 +29,14 @@ function App() { return ( - Lorem ipsum dolor sit amet + Lorem ipsum dolor sit amet Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean et ultricies est. - Lorem ipsum dolor sit amet + Lorem ipsum dolor sit amet Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean et ultricies est. Mauris iaculis eget dolor nec hendrerit. Phasellus at elit sollicitudin, sodales nulla quis, consequat libero. diff --git a/packages/web-components/src/components/content-group-cards/__stories__/README.stories.mdx b/packages/web-components/src/components/content-group-cards/__stories__/README.stories.mdx index ba048a4693b..e16d6516031 100644 --- a/packages/web-components/src/components/content-group-cards/__stories__/README.stories.mdx +++ b/packages/web-components/src/components/content-group-cards/__stories__/README.stories.mdx @@ -19,6 +19,7 @@ Here's a quick example to get you started. ##### JS ```javascript +import '@carbon/ibmdotcom-web-components/es/components/card/card-heading.js'; import '@carbon/ibmdotcom-web-components/es/components/content-group-cards/content-group-cards.js'; import '@carbon/ibmdotcom-web-components/es/components/content-group-cards/content-group-cards-item.js'; import '@carbon/ibmdotcom-web-components/es/components/content-group/content-group-heading.js'; @@ -31,14 +32,14 @@ import '@carbon/ibmdotcom-web-components/es/components/content-group/content-gro ${heading}

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

- Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt + Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

${ArrowRight20({ slot: 'icon' })}
- Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt + Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

${ArrowRight20({ slot: 'icon' })} diff --git a/packages/web-components/src/components/feature-card-block-medium/__stories__/README.stories.mdx b/packages/web-components/src/components/feature-card-block-medium/__stories__/README.stories.mdx index 6c5d102c5e9..2db0e2e01d2 100644 --- a/packages/web-components/src/components/feature-card-block-medium/__stories__/README.stories.mdx +++ b/packages/web-components/src/components/feature-card-block-medium/__stories__/README.stories.mdx @@ -17,6 +17,7 @@ Here's a quick example to get you started. ### JS ```javascript +import '@carbon/ibmdotcom-web-components/es/components/card/card-heading.js'; import '@carbon/ibmdotcom-web-components/es/components/feature-card/feature-card-footer.js'; import '@carbon/ibmdotcom-web-components/es/components/image/image.js'; import '@carbon/ibmdotcom-web-components/es/components/feature-card-block-medium/feature-card-block-medium.js'; @@ -37,7 +38,7 @@ import '@carbon/ibmdotcom-web-components/es/components/feature-card-block-medium alt="Image alt text" default-src="https://fpoimg.com/672x672?text=1:1&bg_color=ee5396&text_color=161616/ee5396/161616&text=1x1" > - Explore AI use cases in all industries + Explore AI use cases in all industries