From 4f7d48f498a4bcee6cf9e12674c8af639daf8567 Mon Sep 17 00:00:00 2001 From: Jeff Chew Date: Thu, 21 Oct 2021 12:55:09 -0400 Subject: [PATCH] docs(web-components): adding code links for web components (#2588) * docs(web-components): adding code links for web components * fix(components): fixing quotes for web components * docs(components): adding web components links to usage tabs Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> --- src/pages/components/UI-shell-header/code.mdx | 10 ++++++++++ src/pages/components/UI-shell-left-panel/code.mdx | 10 ++++++++++ src/pages/components/accordion/code.mdx | 11 +++++++++++ src/pages/components/accordion/usage.mdx | 1 + src/pages/components/breadcrumb/code.mdx | 12 ++++++++++++ src/pages/components/breadcrumb/usage.mdx | 2 ++ src/pages/components/button/code.mdx | 13 +++++++++++++ src/pages/components/button/usage.mdx | 3 +++ src/pages/components/checkbox/code.mdx | 11 +++++++++++ src/pages/components/checkbox/usage.mdx | 1 + src/pages/components/code-snippet/code.mdx | 13 +++++++++++++ src/pages/components/code-snippet/usage.mdx | 3 +++ src/pages/components/content-switcher/code.mdx | 11 +++++++++++ src/pages/components/content-switcher/usage.mdx | 1 + src/pages/components/data-table/code.mdx | 14 ++++++++++++++ src/pages/components/data-table/usage.mdx | 4 ++++ src/pages/components/date-picker/code.mdx | 14 ++++++++++++++ src/pages/components/date-picker/usage.mdx | 4 ++++ src/pages/components/dropdown/code.mdx | 14 ++++++++++++++ src/pages/components/dropdown/usage.mdx | 4 ++++ src/pages/components/file-uploader/code.mdx | 13 +++++++++++++ src/pages/components/file-uploader/usage.mdx | 3 +++ src/pages/components/form/code.mdx | 11 +++++++++++ src/pages/components/form/usage.mdx | 1 + src/pages/components/inline-loading/code.mdx | 11 +++++++++++ src/pages/components/inline-loading/usage.mdx | 1 + src/pages/components/link/code.mdx | 11 +++++++++++ src/pages/components/link/usage.mdx | 1 + src/pages/components/list/code.mdx | 12 ++++++++++++ src/pages/components/list/usage.mdx | 2 ++ src/pages/components/loading/code.mdx | 11 +++++++++++ src/pages/components/loading/usage.mdx | 1 + src/pages/components/modal/code.mdx | 14 ++++++++++++++ src/pages/components/modal/usage.mdx | 4 ++++ src/pages/components/notification/code.mdx | 12 ++++++++++++ src/pages/components/notification/usage.mdx | 2 ++ src/pages/components/number-input/code.mdx | 12 ++++++++++++ src/pages/components/number-input/usage.mdx | 2 ++ src/pages/components/overflow-menu/code.mdx | 11 +++++++++++ src/pages/components/overflow-menu/usage.mdx | 1 + src/pages/components/pagination/code.mdx | 11 +++++++++++ src/pages/components/pagination/usage.mdx | 1 + src/pages/components/progress-indicator/code.mdx | 11 +++++++++++ src/pages/components/progress-indicator/usage.mdx | 1 + src/pages/components/radio-button/code.mdx | 11 +++++++++++ src/pages/components/radio-button/usage.mdx | 1 + src/pages/components/search/code.mdx | 11 +++++++++++ src/pages/components/search/usage.mdx | 1 + src/pages/components/select/code.mdx | 11 +++++++++++ src/pages/components/select/usage.mdx | 1 + src/pages/components/slider/code.mdx | 11 +++++++++++ src/pages/components/slider/usage.mdx | 1 + src/pages/components/structured-list/code.mdx | 12 ++++++++++++ src/pages/components/structured-list/usage.mdx | 2 ++ src/pages/components/tabs/code.mdx | 11 +++++++++++ src/pages/components/tabs/usage.mdx | 1 + src/pages/components/tag/code.mdx | 11 +++++++++++ src/pages/components/tag/usage.mdx | 1 + src/pages/components/text-input/code.mdx | 13 +++++++++++++ src/pages/components/text-input/usage.mdx | 3 +++ src/pages/components/tile/code.mdx | 15 +++++++++++++++ src/pages/components/tile/usage.mdx | 5 +++++ src/pages/components/toggle/code.mdx | 12 ++++++++++++ src/pages/components/toggle/usage.mdx | 2 ++ src/pages/components/tooltip/code.mdx | 13 +++++++++++++ src/pages/components/tooltip/usage.mdx | 3 +++ 66 files changed, 468 insertions(+) diff --git a/src/pages/components/UI-shell-header/code.mdx b/src/pages/components/UI-shell-header/code.mdx index 2c392d4104b..755e6d9cd16 100644 --- a/src/pages/components/UI-shell-header/code.mdx +++ b/src/pages/components/UI-shell-header/code.mdx @@ -46,6 +46,16 @@ the Storybooks for each framework below. + + + + + + + ## Demo diff --git a/src/pages/components/UI-shell-left-panel/code.mdx b/src/pages/components/UI-shell-left-panel/code.mdx index b58d01733cb..a3103367593 100644 --- a/src/pages/components/UI-shell-left-panel/code.mdx +++ b/src/pages/components/UI-shell-left-panel/code.mdx @@ -46,6 +46,16 @@ see the Storybooks for each framework below. + + + + + + + ## Demo diff --git a/src/pages/components/accordion/code.mdx b/src/pages/components/accordion/code.mdx index 8ae84b37b8c..cae7f9a1c3a 100755 --- a/src/pages/components/accordion/code.mdx +++ b/src/pages/components/accordion/code.mdx @@ -47,6 +47,16 @@ usage documentation, see the Storybooks for each framework below. + + + + + + + ## Live demo @@ -72,6 +82,7 @@ usage documentation, see the Storybooks for each framework below. Vue: 'http://vue.carbondesignsystem.com/?path=/story/components-cvaccordion--default', Vanilla: 'https://the-carbon-components.netlify.com/?nav=accordion', + "Web Components": 'https://web-components.carbondesignsystem.com/?path=/story/components-accordion--default', }}> {` diff --git a/src/pages/components/accordion/usage.mdx b/src/pages/components/accordion/usage.mdx index f6cb46d6d6a..b7cbf842316 100755 --- a/src/pages/components/accordion/usage.mdx +++ b/src/pages/components/accordion/usage.mdx @@ -69,6 +69,7 @@ extra click; instead use a full scrolling page with normal headers. Vue: 'http://vue.carbondesignsystem.com/?path=/story/components-cvaccordion--default', Vanilla: 'https://the-carbon-components.netlify.com/?nav=accordion', + "Web Components": 'https://web-components.carbondesignsystem.com/?path=/story/components-accordion--default', }}> {` diff --git a/src/pages/components/breadcrumb/code.mdx b/src/pages/components/breadcrumb/code.mdx index 3ec541d5da0..ab084e4b340 100755 --- a/src/pages/components/breadcrumb/code.mdx +++ b/src/pages/components/breadcrumb/code.mdx @@ -46,6 +46,16 @@ usage documentation, see the Storybooks for each framework below. + + + + + + + ## Live demo @@ -68,6 +78,7 @@ usage documentation, see the Storybooks for each framework below. Vue: 'http://vue.carbondesignsystem.com/?path=/story/components-cvbreadcrumb--default', Vanilla: 'https://the-carbon-components.netlify.com/?nav=breadcrumb', + "Web Components": 'https://web-components.carbondesignsystem.com/?path=/story/components-breadcrumb--default', }}>{` Breadcrumb 1 @@ -85,6 +96,7 @@ usage documentation, see the Storybooks for each framework below. Vue: 'http://vue.carbondesignsystem.com/?path=/story/components-cvbreadcrumb--default', Vanilla: 'https://the-carbon-components.netlify.com/?nav=breadcrumb', + "Web Components": 'https://web-components.carbondesignsystem.com/?path=/story/components-breadcrumb--default', }}>{` Breadcrumb 1 diff --git a/src/pages/components/breadcrumb/usage.mdx b/src/pages/components/breadcrumb/usage.mdx index 26e7fdca5a3..fce702a96ce 100755 --- a/src/pages/components/breadcrumb/usage.mdx +++ b/src/pages/components/breadcrumb/usage.mdx @@ -79,6 +79,7 @@ type used should be consistent across a product. Vue: 'http://vue.carbondesignsystem.com/?path=/story/components-cvbreadcrumb--default', Vanilla: 'https://the-carbon-components.netlify.com/?nav=breadcrumb', + "Web Components": 'https://web-components.carbondesignsystem.com/?path=/story/components-breadcrumb--default', }}>{` Breadcrumb 1 @@ -96,6 +97,7 @@ type used should be consistent across a product. Vue: 'http://vue.carbondesignsystem.com/?path=/story/components-cvbreadcrumb--default', Vanilla: 'https://the-carbon-components.netlify.com/?nav=breadcrumb', + "Web Components": 'https://web-components.carbondesignsystem.com/?path=/story/components-breadcrumb--default', }}>{` Breadcrumb 1 diff --git a/src/pages/components/button/code.mdx b/src/pages/components/button/code.mdx index bbf669317d8..f723acce83d 100755 --- a/src/pages/components/button/code.mdx +++ b/src/pages/components/button/code.mdx @@ -48,6 +48,16 @@ documentation, see the Storybooks for each framework below. + + + + + + + ## Live demo @@ -81,6 +91,7 @@ documentation, see the Storybooks for each framework below. Vue: 'http://vue.carbondesignsystem.com/?path=/story/components-cvbutton--default', Vanilla: 'https://the-carbon-components.netlify.com/?nav=button', + "Web Components": 'https://web-components.carbondesignsystem.com/?path=/story/components-button--default', }}>{` `} @@ -97,6 +108,7 @@ documentation, see the Storybooks for each framework below. Vue: 'http://vue.carbondesignsystem.com/?path=/story/components-cvbutton--default', Vanilla: 'https://the-carbon-components.netlify.com/?nav=button', + "Web Components": 'https://web-components.carbondesignsystem.com/?path=/story/components-button--default', }}>{` `} @@ -113,6 +125,7 @@ documentation, see the Storybooks for each framework below. Vue: 'http://vue.carbondesignsystem.com/?path=/story/components-cvbutton--icon-only', Vanilla: 'https://the-carbon-components.netlify.com/?nav=button', + "Web Components": 'https://web-components.carbondesignsystem.com/?path=/story/components-button--icon', }}>{` `} @@ -127,6 +128,7 @@ import { Add16 } from '@carbon/icons-react'; Vue: 'http://vue.carbondesignsystem.com/?path=/story/components-cvbutton--default', Vanilla: 'https://the-carbon-components.netlify.com/?nav=button', + "Web Components": 'https://web-components.carbondesignsystem.com/?path=/story/components-button--default', }}>{` `} @@ -143,6 +145,7 @@ import { Add16 } from '@carbon/icons-react'; Vue: 'http://vue.carbondesignsystem.com/?path=/story/components-cvbutton--icon-only', Vanilla: 'https://the-carbon-components.netlify.com/?nav=button', + "Web Components": 'https://web-components.carbondesignsystem.com/?path=/story/components-button--icon', }}>{`