diff --git a/package.json b/package.json index c4d298d65cb..18600c91536 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "build:analyze": "yarn install --force && yarn clean && ANALYZE=true yarn build", "serve": "gatsby serve", "lint:js": "eslint . --fix", - "format": "prettier --write 'src/**/*.{js,json,css,scss,md,mdx,yaml}'", + "format": "prettier --write 'src/**/*.{css,scss,json,html,yaml,md,mdx}'", "update-browserslist": "npx browserslist-ga" }, "engines": { @@ -100,7 +100,7 @@ "*.js": [ "eslint --fix" ], - "*.{json,css,scss,md,mdx,yaml}": [ + "*.{css,scss,json,html,yaml,md,mdx}": [ "prettier --write" ] } diff --git a/src/components/ColorBlock/color-block.scss b/src/components/ColorBlock/color-block.scss index d7a81823c4c..47495dc51be 100644 --- a/src/components/ColorBlock/color-block.scss +++ b/src/components/ColorBlock/color-block.scss @@ -1,6 +1,6 @@ .color-block { position: relative; - @include carbon--type-style('body-short-01'); + @include carbon--type-style("body-short-01"); } .color-block__color { @@ -14,7 +14,7 @@ // needed to fix anti-aliasing issue in firefox &:before { position: absolute; - content: ''; + content: ""; height: rem(14px); width: rem(14px); border-radius: rem(14px); @@ -44,19 +44,19 @@ .color-blocks .bx--col-lg-2:nth-child(2) { margin-right: 40%; - @include carbon--breakpoint('md') { + @include carbon--breakpoint("md") { margin-right: 0; } } .color-blocks .bx--col-lg-2:nth-child(3) { - @include carbon--breakpoint('md') { + @include carbon--breakpoint("md") { margin-left: $spacing-07; } } .color-square { - @include carbon--type-style('body-short-01'); + @include carbon--type-style("body-short-01"); padding: $spacing-05; } diff --git a/src/components/ColorGrid/_color-grid.scss b/src/components/ColorGrid/_color-grid.scss index f4c116a967a..2218eff9ee2 100644 --- a/src/components/ColorGrid/_color-grid.scss +++ b/src/components/ColorGrid/_color-grid.scss @@ -2,13 +2,13 @@ display: grid; grid-template-columns: repeat(6, 1fr); - @include carbon--breakpoint('md') { + @include carbon--breakpoint("md") { grid-template-columns: repeat(12, 1fr); } } .color-grid__swatch::before { - content: ''; + content: ""; display: block; height: 0; padding-bottom: 100%; diff --git a/src/components/ColorTokenTable/color-token-table.scss b/src/components/ColorTokenTable/color-token-table.scss index 6b049a4fee3..c15f29d8061 100644 --- a/src/components/ColorTokenTable/color-token-table.scss +++ b/src/components/ColorTokenTable/color-token-table.scss @@ -12,7 +12,7 @@ } .color-token-table__theme-switcher::before { - content: ''; + content: ""; display: block; position: absolute; top: -16px; @@ -66,11 +66,11 @@ h3.page-h3--sticky { border-radius: 0; height: 3rem; - @include carbon--breakpoint('sm') { + @include carbon--breakpoint("sm") { padding-right: $spacing-05; } - @include carbon--breakpoint('md') { + @include carbon--breakpoint("md") { padding-right: 4rem; } } diff --git a/src/components/ComponentDemo/Code/Code.module.scss b/src/components/ComponentDemo/Code/Code.module.scss index 623851b3d42..4bc0905c4ef 100644 --- a/src/components/ComponentDemo/Code/Code.module.scss +++ b/src/components/ComponentDemo/Code/Code.module.scss @@ -8,8 +8,8 @@ } .container { - font-family: 'IBM Plex Mono', 'Menlo', 'DejaVu Sans Mono', - 'Bitstream Vera Sans Mono', Courier, monospace; + font-family: "IBM Plex Mono", "Menlo", "DejaVu Sans Mono", + "Bitstream Vera Sans Mono", Courier, monospace; position: relative; max-height: 320px; overflow-y: auto; @@ -28,7 +28,7 @@ } &::before, &::after { - z-index: z('floating'); + z-index: z("floating"); } } @@ -47,7 +47,7 @@ .link-list { display: flex; overflow-x: scroll; - @include carbon--breakpoint('md') { + @include carbon--breakpoint("md") { overflow-x: visible; } } @@ -55,7 +55,7 @@ .link-list a { display: flex; align-items: center; - @include carbon--type-style('body-short-01'); + @include carbon--type-style("body-short-01"); color: $inverse-01; text-decoration: none; margin-right: $spacing-06; diff --git a/src/components/ComponentDemo/ComponentDemo.module.scss b/src/components/ComponentDemo/ComponentDemo.module.scss index 1ba8701511b..abee2025a59 100644 --- a/src/components/ComponentDemo/ComponentDemo.module.scss +++ b/src/components/ComponentDemo/ComponentDemo.module.scss @@ -6,14 +6,14 @@ grid-template-columns: 1fr; grid-template-rows: 35rem minmax(1fr, 320px); grid-template-areas: - 'preview' - 'editor'; + "preview" + "editor"; margin-top: 0; - @include carbon--breakpoint('md') { + @include carbon--breakpoint("md") { grid-template-columns: 1fr 240px; grid-template-areas: - 'preview knobs' - 'editor editor'; + "preview knobs" + "editor editor"; } } @@ -26,8 +26,8 @@ .knobless-container { grid-template-areas: - 'preview preview' - 'editor editor'; + "preview preview" + "editor editor"; } .icon-button-row { @@ -74,8 +74,8 @@ box-shadow: -2px 2px 6px rgba(0, 0, 0, 0.2); height: 100%; max-height: 35rem; - transition: transform $duration--moderate-01 carbon--motion('entrance'); - @include carbon--breakpoint('md') { + transition: transform $duration--moderate-01 carbon--motion("entrance"); + @include carbon--breakpoint("md") { position: static; box-shadow: none; } @@ -109,8 +109,8 @@ width: 100%; display: flex; align-items: center; - font-family: 'IBM Plex Mono', 'Menlo', 'DejaVu Sans Mono', - 'Bitstream Vera Sans Mono', Courier, monospace; + font-family: "IBM Plex Mono", "Menlo", "DejaVu Sans Mono", + "Bitstream Vera Sans Mono", Courier, monospace; font-size: 12px; } @@ -141,7 +141,7 @@ fieldset.form-group { $emit-custom-properties: true ); - @include carbon--breakpoint('lg') { + @include carbon--breakpoint("lg") { max-width: 70%; } } @@ -187,7 +187,7 @@ fieldset.form-group { .editor-container pre, .editor-container textarea { // important to override react-live inline styles - font-family: 'IBM Plex Mono', monospace !important; + font-family: "IBM Plex Mono", monospace !important; white-space: pre !important; } diff --git a/src/components/ComponentOverview/component-overview.scss b/src/components/ComponentOverview/component-overview.scss index c051947a87f..5a7e805b15e 100644 --- a/src/components/ComponentOverview/component-overview.scss +++ b/src/components/ComponentOverview/component-overview.scss @@ -26,7 +26,7 @@ $hover-ui: #e5e5e5; } // Display two colums - @include carbon--breakpoint('sm') { + @include carbon--breakpoint("sm") { width: 50%; border-bottom: 1px solid $carbon--gray-20; border-right: 1px solid $carbon--gray-20; @@ -47,7 +47,7 @@ $hover-ui: #e5e5e5; } // Display three columnns - @include carbon--breakpoint('lg') { + @include carbon--breakpoint("lg") { width: 33.33%; &:nth-child(2n + 2) { @@ -71,7 +71,7 @@ $hover-ui: #e5e5e5; } // Display four columnns - @include carbon--breakpoint('xlg') { + @include carbon--breakpoint("xlg") { width: 25%; &:nth-child(3n + 3) { @@ -104,14 +104,14 @@ $hover-ui: #e5e5e5; width: 100%; } -.container .component-item__img[src*='svg'] { +.container .component-item__img[src*="svg"] { margin-bottom: 0; background: transparent; display: block; } .component-name { - @include carbon--type-style('caption-01'); + @include carbon--type-style("caption-01"); color: $text-01; text-decoration: none; text-align: left; diff --git a/src/components/GlossaryComponent/GlossaryList/glossary-list.scss b/src/components/GlossaryComponent/GlossaryList/glossary-list.scss index dda00ec0bd9..477356fe6c9 100644 --- a/src/components/GlossaryComponent/GlossaryList/glossary-list.scss +++ b/src/components/GlossaryComponent/GlossaryList/glossary-list.scss @@ -16,7 +16,7 @@ } .glossary-entry__subtext { - @include carbon--type-style('body-short-02'); + @include carbon--type-style("body-short-02"); color: $text-02; font-style: italic; padding: 0px; diff --git a/src/components/GlossaryComponent/GlossaryNav/glossary-nav.scss b/src/components/GlossaryComponent/GlossaryNav/glossary-nav.scss index 98589a57873..b427be25a9e 100644 --- a/src/components/GlossaryComponent/GlossaryNav/glossary-nav.scss +++ b/src/components/GlossaryComponent/GlossaryNav/glossary-nav.scss @@ -9,7 +9,7 @@ line-height: 1.5; padding-top: rem(160px); - @include carbon--breakpoint('lg') { + @include carbon--breakpoint("lg") { display: flex; } @@ -28,7 +28,7 @@ } .glossary .bx--list__item a { - @include carbon--type-style('body-short-02'); + @include carbon--type-style("body-short-02"); width: rem(24px); height: rem(24px); padding: rem(1px) 0 0 0; diff --git a/src/components/HomepageVideo/homepage-video.scss b/src/components/HomepageVideo/homepage-video.scss index 37b0377660b..c634a406367 100644 --- a/src/components/HomepageVideo/homepage-video.scss +++ b/src/components/HomepageVideo/homepage-video.scss @@ -5,7 +5,7 @@ top: 0; right: 0; - @include carbon--breakpoint('md') { + @include carbon--breakpoint("md") { width: 100%; } } @@ -53,7 +53,7 @@ padding: 0; z-index: 10; //need this to be above dots overlay - @include carbon--breakpoint('lg') { + @include carbon--breakpoint("lg") { left: 271px; } } @@ -63,5 +63,5 @@ } .homepage-video--controls:focus { - @include focus-outline('outline'); + @include focus-outline("outline"); } diff --git a/src/components/OverviewCard/overview-card-group.scss b/src/components/OverviewCard/overview-card-group.scss index d7bc599f5d4..c875e4fbd83 100644 --- a/src/components/OverviewCard/overview-card-group.scss +++ b/src/components/OverviewCard/overview-card-group.scss @@ -1,11 +1,11 @@ .overview-card-group { - @include carbon--breakpoint('md') { + @include carbon--breakpoint("md") { margin: $spacing-05 rem(-16px) $spacing-07 rem(-16px); } } .overview-card-group .overview-card { - @include carbon--breakpoint('lg') { + @include carbon--breakpoint("lg") { border-left: 1px solid $carbon--gray-20; } } @@ -15,7 +15,7 @@ border-left: 1px solid transparent; } -@include carbon--breakpoint-down('lg') { +@include carbon--breakpoint-down("lg") { .overview-card-group .#{$prefix}--col-lg-4:nth-child(even) .overview-card { border-left: 1px solid $carbon--gray-20; } @@ -26,7 +26,7 @@ } } -@include carbon--breakpoint-between('lg', 'xlg') { +@include carbon--breakpoint-between("lg", "xlg") { //selects every item after the first 3 .overview-card-group .#{$prefix}--col-lg-4:nth-child(n + 4) .overview-card { border-top: 1px solid $carbon--gray-20; @@ -38,7 +38,7 @@ } } -@include carbon--breakpoint('xlg') { +@include carbon--breakpoint("xlg") { .overview-card-group .bx--col-max-3 { flex: 0 0 25%; width: 25%; diff --git a/src/components/OverviewCard/overview-card.scss b/src/components/OverviewCard/overview-card.scss index 3effc52e669..daf6399b464 100644 --- a/src/components/OverviewCard/overview-card.scss +++ b/src/components/OverviewCard/overview-card.scss @@ -22,7 +22,7 @@ } .overview-card__title { - @include carbon--type-style('caption-01'); + @include carbon--type-style("caption-01"); text-decoration: none; color: $text-01; position: relative; @@ -45,8 +45,8 @@ } .overview-card__img .gatsby-resp-image-wrapper, -.overview-card__img img[src*='svg'], -.overview-card__img img[src*='gif'] { +.overview-card__img img[src*="svg"], +.overview-card__img img[src*="gif"] { position: relative; width: 100%; height: 100%; diff --git a/src/components/TypeScaleTable/type-scale-table.scss b/src/components/TypeScaleTable/type-scale-table.scss index a5edf19f036..ebea9cc6a34 100644 --- a/src/components/TypeScaleTable/type-scale-table.scss +++ b/src/components/TypeScaleTable/type-scale-table.scss @@ -10,7 +10,7 @@ $type-scale: 0.75rem, 0.875rem, 1rem, 1.125rem, 1.25rem, 1.5rem, 1.75rem, 2rem, } table thead th { - @include carbon--type-style('caption-01'); + @include carbon--type-style("caption-01"); border: none; color: $text-03; padding: $spacing-05 0; @@ -29,15 +29,15 @@ $type-scale: 0.75rem, 0.875rem, 1rem, 1.125rem, 1.25rem, 1.5rem, 1.75rem, 2rem, font-size: 0.75rem; padding: 0 $spacing-09 0 0; - @include carbon--breakpoint('md') { + @include carbon--breakpoint("md") { padding-right: rem(112px); } - @include carbon--breakpoint('lg') { + @include carbon--breakpoint("lg") { padding-right: $spacing-07; } - @include carbon--breakpoint('xlg') { + @include carbon--breakpoint("xlg") { padding-right: $spacing-09; } } diff --git a/src/components/TypesetStyle/typeset-example.scss b/src/components/TypesetStyle/typeset-example.scss index df4368c2078..3a721f71591 100644 --- a/src/components/TypesetStyle/typeset-example.scss +++ b/src/components/TypesetStyle/typeset-example.scss @@ -7,7 +7,7 @@ margin-left: -$spacing-03; margin-right: -$spacing-03; - @include carbon--breakpoint('md') { + @include carbon--breakpoint("md") { margin-left: 0; margin-right: 0; } @@ -27,12 +27,12 @@ padding: $spacing-05; overflow: hidden; - @include carbon--breakpoint('md') { + @include carbon--breakpoint("md") { width: 62.5%; padding-right: 15%; } - @include carbon--breakpoint('lg') { + @include carbon--breakpoint("lg") { width: 66.7%; } } @@ -40,7 +40,7 @@ .bx--typeset-example-specs { padding: $spacing-05 $spacing-06; - @include carbon--breakpoint('md') { + @include carbon--breakpoint("md") { width: 33.3%; border-left: 1px solid $carbon--gray-20; } diff --git a/src/components/TypesetStyle/typeset-style.scss b/src/components/TypesetStyle/typeset-style.scss index e633e29c3a9..e88a9c87a5f 100644 --- a/src/components/TypesetStyle/typeset-style.scss +++ b/src/components/TypesetStyle/typeset-style.scss @@ -1,4 +1,4 @@ -$prefix: 'bx'; +$prefix: "bx"; // Typeset Style .#{$prefix}--typeset-style-container { @@ -6,13 +6,13 @@ $prefix: 'bx'; padding: 0 $spacing-03; margin-bottom: $spacing-09; - @include carbon--breakpoint('md') { + @include carbon--breakpoint("md") { padding: 0; left: 0; margin-right: 0; } - @include carbon--breakpoint('lg') { + @include carbon--breakpoint("lg") { margin-top: 0; left: 0.5rem; margin-right: $spacing-03; @@ -69,7 +69,7 @@ $prefix: 'bx'; top: 0; width: 100vw; - @include carbon--breakpoint('md') { + @include carbon--breakpoint("md") { margin-left: 0; width: 100%; } @@ -88,13 +88,13 @@ $prefix: 'bx'; &:before, &:after { - content: ''; + content: ""; position: absolute; background: $carbon--gray-10; height: 6rem; width: 1rem; - @include carbon--breakpoint('md') { + @include carbon--breakpoint("md") { height: 4rem; } } @@ -123,11 +123,11 @@ $prefix: 'bx'; padding-right: 0; width: 100%; - @include carbon--breakpoint('md') { + @include carbon--breakpoint("md") { width: 62.5%; } - @include carbon--breakpoint('lg') { + @include carbon--breakpoint("lg") { width: 50%; } } @@ -148,14 +148,14 @@ $prefix: 'bx'; grid-template-columns: auto 1fr auto; width: 100%; - @include carbon--breakpoint('md') { + @include carbon--breakpoint("md") { border-top: none; border-bottom: none; border-left: 1px solid $carbon--gray-20; width: 37.5%; } - @include carbon--breakpoint('lg') { + @include carbon--breakpoint("lg") { width: 50%; } } @@ -218,7 +218,7 @@ $prefix: 'bx'; position: relative; margin-top: $spacing-05; - @include carbon--breakpoint('md') { + @include carbon--breakpoint("md") { margin-top: 0; } } @@ -330,7 +330,7 @@ $prefix: 'bx'; &:after { background: $carbon--black-100; - content: ''; + content: ""; position: absolute; height: rem(1px); width: var(--track-width); @@ -374,13 +374,13 @@ $prefix: 'bx'; margin-left: -$spacing-03; margin-right: -$spacing-03; - @include carbon--breakpoint('md') { + @include carbon--breakpoint("md") { margin-left: 0; margin-right: 0; } } -div[class*='PageHeader-module--page-header--shifted'] +div[class*="PageHeader-module--page-header--shifted"] + div > div > .#{$prefix}--sticky-container-visible { diff --git a/src/gatsby-theme-carbon/templates/Homepage.module.scss b/src/gatsby-theme-carbon/templates/Homepage.module.scss index 2c9e1374a33..2576e0800f6 100644 --- a/src/gatsby-theme-carbon/templates/Homepage.module.scss +++ b/src/gatsby-theme-carbon/templates/Homepage.module.scss @@ -1,11 +1,11 @@ .callout-link { - @include carbon--type-style('body-long-02'); + @include carbon--type-style("body-long-02"); margin-top: $spacing-06; display: block; } :global { - .container--homepage [class*='Main'] { + .container--homepage [class*="Main"] { padding-top: 3rem; } } diff --git a/src/pages/community/patterns/chatbot/content.mdx b/src/pages/community/patterns/chatbot/content.mdx index 2f962a41891..900d7a692d1 100644 --- a/src/pages/community/patterns/chatbot/content.mdx +++ b/src/pages/community/patterns/chatbot/content.mdx @@ -1,7 +1,7 @@ --- title: Chatbots description: Use a chatbot when a user would benefit from requesting information on-demand with natural language. They should receive a useful and trustworthy response related to their question or task. -tabs: ['Overview', 'Usage', 'Flows', 'Content'] +tabs: ["Overview", "Usage", "Flows", "Content"] --- @@ -59,7 +59,8 @@ Ensure the success of your bot by following these principles: + href="http://ai-design.eu-de.mybluemix.net/design/ai/conversation/planning" + > diff --git a/src/pages/community/patterns/chatbot/flows.mdx b/src/pages/community/patterns/chatbot/flows.mdx index dcc704dd5e6..2c93937bdf8 100644 --- a/src/pages/community/patterns/chatbot/flows.mdx +++ b/src/pages/community/patterns/chatbot/flows.mdx @@ -1,7 +1,7 @@ --- title: Chatbots description: Use a chatbot when a user would benefit from requesting information on-demand with natural language. They should receive a useful and trustworthy response related to their question or task. -tabs: ['Overview', 'Usage', 'Flows', 'Content'] +tabs: ["Overview", "Usage", "Flows", "Content"] --- diff --git a/src/pages/community/patterns/chatbot/overview.mdx b/src/pages/community/patterns/chatbot/overview.mdx index 083e3fc6042..676f232a03b 100644 --- a/src/pages/community/patterns/chatbot/overview.mdx +++ b/src/pages/community/patterns/chatbot/overview.mdx @@ -1,10 +1,10 @@ --- title: Chatbots description: Use a chatbot when a user would benefit from requesting information on-demand with natural language. They should receive a useful and trustworthy response related to their question or task. -tabs: ['Overview', 'Usage', 'Flows', 'Content'] +tabs: ["Overview", "Usage", "Flows", "Content"] --- -import { Tag, Link } from 'carbon-components-react'; +import { Tag, Link } from "carbon-components-react"; #### Maintainer: @@ -107,7 +107,8 @@ For **common chatbot sub-patterns, features or experimental components**, click title="Chatbot Design Kit" aspectRatio="2:1" actionIcon="download" - href="https://sketch.cloud/s/k8j5g"> + href="https://sketch.cloud/s/k8j5g" + > diff --git a/src/pages/community/patterns/chatbot/usage.mdx b/src/pages/community/patterns/chatbot/usage.mdx index 485ab636cbc..0507540c078 100644 --- a/src/pages/community/patterns/chatbot/usage.mdx +++ b/src/pages/community/patterns/chatbot/usage.mdx @@ -1,7 +1,7 @@ --- title: Chatbots description: Use a chatbot when a user would benefit from requesting information on-demand with natural language. They should receive a useful and trustworthy response related to their question or task. -tabs: ['Overview', 'Usage', 'Flows', 'Content'] +tabs: ["Overview", "Usage", "Flows", "Content"] --- import { @@ -12,7 +12,7 @@ import { StructuredListBody, UnorderedList, ListItem, -} from 'carbon-components-react'; +} from "carbon-components-react"; diff --git a/src/pages/community/patterns/remove-pattern/index.mdx b/src/pages/community/patterns/remove-pattern/index.mdx index 4606bedb67d..b05083f181a 100644 --- a/src/pages/community/patterns/remove-pattern/index.mdx +++ b/src/pages/community/patterns/remove-pattern/index.mdx @@ -55,14 +55,14 @@ Optionally a [Done modal](#done-modal), [Requested modal](#requested-modal) or [ ![The user enters the resource name in order to confirm deletion.](images/2.png) - {' '} + {" "} The user needs to enter the resource name in order to confirm deletion. ![When the resource name is entered the Delete button is enabled.](images/3.png) - {' '} + {" "} When the resource name is entered the Delete button is enabled. @@ -114,7 +114,7 @@ Text should tell the user the consequences of the removal and that the action ca ![Example of a medium impact remove modal](images/first-view.png) - {' '} + {" "} Removal modals should include consequences of removal, and "This action cannot be undone" statement. @@ -149,7 +149,7 @@ Some deletion or removal actions don't happen immediately, in these situations i ![Example of a delete successful modal](images/Requested.png) - {' '} + {" "} Use a success modal to show that a delete request has been made / is in progress. @@ -171,7 +171,7 @@ An optional notification can be used to confirm a delete or remove action has co ![Example of a successful delete notification](images/7_updated.png) - {' '} + {" "} An optional notification can be used to confirm the delete or remove action with medium or high impact actions. diff --git a/src/pages/components/UI-shell-header/accessibility.mdx b/src/pages/components/UI-shell-header/accessibility.mdx index e6bf724e917..6dee9f41e79 100644 --- a/src/pages/components/UI-shell-header/accessibility.mdx +++ b/src/pages/components/UI-shell-header/accessibility.mdx @@ -1,7 +1,7 @@ --- title: UI shell header description: This header is part of the Carbon UI shell. A shell is a collection of components shared by all products within a platform. -tabs: ['Code', 'Usage', 'Style', 'Accessibility'] +tabs: ["Code", "Usage", "Style", "Accessibility"] --- import { @@ -13,7 +13,7 @@ import { StructuredListCell, OrderedList, ListItem, -} from 'carbon-components-react'; +} from "carbon-components-react"; diff --git a/src/pages/components/UI-shell-header/code.mdx b/src/pages/components/UI-shell-header/code.mdx index 6cce923ba7b..445d8758208 100644 --- a/src/pages/components/UI-shell-header/code.mdx +++ b/src/pages/components/UI-shell-header/code.mdx @@ -1,7 +1,7 @@ --- title: UI shell header description: This header is part of the Carbon UI shell. A shell is a collection of components shared by all products within a platform. -tabs: ['Code', 'Usage', 'Style', 'Accessibility'] +tabs: ["Code", "Usage", "Style", "Accessibility"] --- ## Header base diff --git a/src/pages/components/UI-shell-header/style.mdx b/src/pages/components/UI-shell-header/style.mdx index 3de4590562e..caf82c314df 100644 --- a/src/pages/components/UI-shell-header/style.mdx +++ b/src/pages/components/UI-shell-header/style.mdx @@ -1,7 +1,7 @@ --- title: UI shell header description: This header is part of the Carbon UI shell. A shell is a collection of components shared by all products within a platform. -tabs: ['Code', 'Usage', 'Style', 'Accessibility'] +tabs: ["Code", "Usage", "Style", "Accessibility"] --- ## Color diff --git a/src/pages/components/UI-shell-header/usage.mdx b/src/pages/components/UI-shell-header/usage.mdx index 74164946da9..90795e02acf 100644 --- a/src/pages/components/UI-shell-header/usage.mdx +++ b/src/pages/components/UI-shell-header/usage.mdx @@ -1,7 +1,7 @@ --- title: UI shell header description: This header is part of the Carbon UI shell. A shell is a collection of components shared by all products within a platform. -tabs: ['Code', 'Usage', 'Style', 'Accessibility'] +tabs: ["Code", "Usage", "Style", "Accessibility"] --- @@ -29,7 +29,8 @@ This header is part of the Carbon UI shell. A shell is a collection of component + href="https://sketch.cloud/s/EjVmA" + > diff --git a/src/pages/components/UI-shell-left-panel/code.mdx b/src/pages/components/UI-shell-left-panel/code.mdx index bd23e292c64..11dfc0e5961 100644 --- a/src/pages/components/UI-shell-left-panel/code.mdx +++ b/src/pages/components/UI-shell-left-panel/code.mdx @@ -1,7 +1,7 @@ --- title: UI shell left panel description: This left panel is part of the Carbon UI shell. A shell is a collection of components shared by all products within a platform. -tabs: ['Code', 'Usage', 'Style'] +tabs: ["Code", "Usage", "Style"] --- ## Fixed side-nav diff --git a/src/pages/components/UI-shell-left-panel/style.mdx b/src/pages/components/UI-shell-left-panel/style.mdx index b31a8c9a9f5..dd2da6f1b8e 100644 --- a/src/pages/components/UI-shell-left-panel/style.mdx +++ b/src/pages/components/UI-shell-left-panel/style.mdx @@ -1,7 +1,7 @@ --- title: UI shell left panel description: This left panel is part of the Carbon UI shell. A shell is a collection of components shared by all products within a platform. -tabs: ['Code', 'Usage', 'Style'] +tabs: ["Code", "Usage", "Style"] --- ## Color diff --git a/src/pages/components/UI-shell-left-panel/usage.mdx b/src/pages/components/UI-shell-left-panel/usage.mdx index 57dbe0d9b0b..62cadf6714b 100644 --- a/src/pages/components/UI-shell-left-panel/usage.mdx +++ b/src/pages/components/UI-shell-left-panel/usage.mdx @@ -1,7 +1,7 @@ --- title: UI shell left panel description: This left panel is part of the Carbon UI shell. A shell is a collection of components shared by all products within a platform. -tabs: ['Code', 'Usage', 'Style'] +tabs: ["Code", "Usage", "Style"] --- @@ -24,7 +24,8 @@ This left panel is part of the Carbon UI shell. A shell is a collection of compo + href="https://sketch.cloud/s/EjVmA" + > diff --git a/src/pages/components/UI-shell-right-panel/code.mdx b/src/pages/components/UI-shell-right-panel/code.mdx index 2f7295702e7..2675eb687e7 100644 --- a/src/pages/components/UI-shell-right-panel/code.mdx +++ b/src/pages/components/UI-shell-right-panel/code.mdx @@ -1,7 +1,7 @@ --- title: UI shell right panel description: This right panel is part of the Carbon UI shell. A shell is a collection of components shared by all products within a platform. -tabs: ['Code', 'Usage', 'Style'] +tabs: ["Code", "Usage", "Style"] --- ## Right panel diff --git a/src/pages/components/UI-shell-right-panel/style.mdx b/src/pages/components/UI-shell-right-panel/style.mdx index 84c662b67ba..92c688ce447 100644 --- a/src/pages/components/UI-shell-right-panel/style.mdx +++ b/src/pages/components/UI-shell-right-panel/style.mdx @@ -1,7 +1,7 @@ --- title: UI shell right panel description: This right panel is part of the Carbon UI shell. A shell is a collection of components shared by all products within a platform. -tabs: ['Code', 'Usage', 'Style'] +tabs: ["Code", "Usage", "Style"] --- ## Color diff --git a/src/pages/components/UI-shell-right-panel/usage.mdx b/src/pages/components/UI-shell-right-panel/usage.mdx index fb9f28def9a..1ed3f868d6d 100644 --- a/src/pages/components/UI-shell-right-panel/usage.mdx +++ b/src/pages/components/UI-shell-right-panel/usage.mdx @@ -1,7 +1,7 @@ --- title: UI shell right panel description: This right panel is part of the Carbon UI shell. A shell is a collection of components shared by all products within a platform. -tabs: ['Code', 'Usage', 'Style'] +tabs: ["Code", "Usage", "Style"] --- @@ -24,7 +24,8 @@ The right panel is part of the Carbon UI shell. A shell is a collection of compo + href="https://sketch.cloud/s/EjVmA" + > diff --git a/src/pages/components/accordion/accessibility.mdx b/src/pages/components/accordion/accessibility.mdx index 035a5886a85..1d3578d60a6 100755 --- a/src/pages/components/accordion/accessibility.mdx +++ b/src/pages/components/accordion/accessibility.mdx @@ -1,7 +1,7 @@ --- title: Accordion description: The accordion component delivers large amounts of content in a small space through progressive disclosure. The user gets key details about the underlying content and can choose to expand that content. -tabs: ['Code', 'Usage', 'Style', 'Accessibility'] +tabs: ["Code", "Usage", "Style", "Accessibility"] --- import { @@ -13,7 +13,7 @@ import { StructuredListCell, OrderedList, ListItem, -} from 'carbon-components-react'; +} from "carbon-components-react"; How it works diff --git a/src/pages/components/accordion/code.mdx b/src/pages/components/accordion/code.mdx index fefec6bff1e..ef3cb94bdde 100755 --- a/src/pages/components/accordion/code.mdx +++ b/src/pages/components/accordion/code.mdx @@ -1,20 +1,21 @@ --- title: Accordion description: The accordion component delivers large amounts of content in a small space through progressive disclosure. The user gets key details about the underlying content and can choose to expand that content. -tabs: ['Code', 'Usage', 'Style', 'Accessibility'] +tabs: ["Code", "Usage", "Style", "Accessibility"] --- {` + knobs={{ AccordionItem: ["open"] }} +>{` content 1 diff --git a/src/pages/components/accordion/style.mdx b/src/pages/components/accordion/style.mdx index 537cd5bd0e4..b7c4ede8188 100755 --- a/src/pages/components/accordion/style.mdx +++ b/src/pages/components/accordion/style.mdx @@ -1,7 +1,7 @@ --- title: Accordion description: The accordion component delivers large amounts of content in a small space through progressive disclosure. The user gets key details about the underlying content and can choose to expand that content. -tabs: ['Code', 'Usage', 'Style', 'Accessibility'] +tabs: ["Code", "Usage", "Style", "Accessibility"] --- ## Color diff --git a/src/pages/components/accordion/usage.mdx b/src/pages/components/accordion/usage.mdx index ae1678750fd..6b507a7ca4d 100755 --- a/src/pages/components/accordion/usage.mdx +++ b/src/pages/components/accordion/usage.mdx @@ -1,7 +1,7 @@ --- title: Accordion description: The accordion component delivers large amounts of content in a small space through progressive disclosure. The user gets key details about the underlying content and can choose to expand that content. -tabs: ['Code', 'Usage', 'Style', 'Accessibility'] +tabs: ["Code", "Usage", "Style", "Accessibility"] --- ## General guidance diff --git a/src/pages/components/breadcrumb/accessibility.mdx b/src/pages/components/breadcrumb/accessibility.mdx index d13f8464e44..8aa39378293 100644 --- a/src/pages/components/breadcrumb/accessibility.mdx +++ b/src/pages/components/breadcrumb/accessibility.mdx @@ -1,7 +1,7 @@ --- title: Breadcrumb description: The breadcrumb component is a secondary navigation pattern that shows hierarchy among content or traces a user’s path. -tabs: ['Code', 'Usage', 'Style', 'Accessibility'] +tabs: ["Code", "Usage", "Style", "Accessibility"] --- import { @@ -13,7 +13,7 @@ import { StructuredListCell, OrderedList, ListItem, -} from 'carbon-components-react'; +} from "carbon-components-react"; How it works diff --git a/src/pages/components/breadcrumb/code.mdx b/src/pages/components/breadcrumb/code.mdx index d6d3a3823c7..f82f2683d6a 100755 --- a/src/pages/components/breadcrumb/code.mdx +++ b/src/pages/components/breadcrumb/code.mdx @@ -1,23 +1,24 @@ --- title: Breadcrumb description: The breadcrumb component is a secondary navigation pattern that shows hierarchy among content or traces a user’s path. -tabs: ['Code', 'Usage', 'Style', 'Accessibility'] +tabs: ["Code", "Usage", "Style", "Accessibility"] --- {` + Breadcrumb: ["noTrailingSlash"], + BreadcrumbItem: ["isCurrentPage"], + }} +>{` Breadcrumb 1 Breadcrumb 2 diff --git a/src/pages/components/breadcrumb/style.mdx b/src/pages/components/breadcrumb/style.mdx index 90ab7b87bd6..43387447aab 100755 --- a/src/pages/components/breadcrumb/style.mdx +++ b/src/pages/components/breadcrumb/style.mdx @@ -1,7 +1,7 @@ --- title: Breadcrumb description: The breadcrumb component is a secondary navigation pattern that shows hierarchy among content or traces a user’s path. -tabs: ['Code', 'Usage', 'Style', 'Accessibility'] +tabs: ["Code", "Usage", "Style", "Accessibility"] --- ## Color diff --git a/src/pages/components/breadcrumb/usage.mdx b/src/pages/components/breadcrumb/usage.mdx index 247ac239cd5..9d56810bd75 100755 --- a/src/pages/components/breadcrumb/usage.mdx +++ b/src/pages/components/breadcrumb/usage.mdx @@ -1,7 +1,7 @@ --- title: Breadcrumb description: The breadcrumb component is a secondary navigation pattern that shows hierarchy among content or traces a user’s path. -tabs: ['Code', 'Usage', 'Style', 'Accessibility'] +tabs: ["Code", "Usage", "Style", "Accessibility"] --- ## General guidance diff --git a/src/pages/components/button/accessibility.mdx b/src/pages/components/button/accessibility.mdx index 7ff8f8f6f27..8c563bea146 100644 --- a/src/pages/components/button/accessibility.mdx +++ b/src/pages/components/button/accessibility.mdx @@ -1,7 +1,7 @@ --- title: Button description: Buttons are used to initialize an action. Button labels express what action will occur when the user interacts with it.``` -tabs: ['Code', 'Usage', 'Style', 'Accessibility'] +tabs: ["Code", "Usage", "Style", "Accessibility"] --- import { @@ -13,7 +13,7 @@ import { StructuredListCell, OrderedList, ListItem, -} from 'carbon-components-react'; +} from "carbon-components-react"; How it works diff --git a/src/pages/components/button/code.mdx b/src/pages/components/button/code.mdx index 4ebbaf6af88..459bae40a17 100755 --- a/src/pages/components/button/code.mdx +++ b/src/pages/components/button/code.mdx @@ -1,18 +1,19 @@ --- title: Button description: Buttons are used to initialize an action. Button labels express what action will occur when the user interacts with it.``` -tabs: ['Code', 'Usage', 'Style', 'Accessibility'] +tabs: ["Code", "Usage", "Style", "Accessibility"] --- {``} + Button: ["kind", "disabled", "size"], + }} +>{``} diff --git a/src/pages/components/button/style.mdx b/src/pages/components/button/style.mdx index 623cb2ef493..c330c70eb69 100755 --- a/src/pages/components/button/style.mdx +++ b/src/pages/components/button/style.mdx @@ -1,7 +1,7 @@ --- title: Button description: Buttons are used to initialize an action. Button labels express what action will occur when the user interacts with it. -tabs: ['Code', 'Usage', 'Style', 'Accessibility'] +tabs: ["Code", "Usage", "Style", "Accessibility"] --- ## Color diff --git a/src/pages/components/button/usage.mdx b/src/pages/components/button/usage.mdx index 7f784749156..e185a3759a7 100755 --- a/src/pages/components/button/usage.mdx +++ b/src/pages/components/button/usage.mdx @@ -1,7 +1,7 @@ --- title: Button description: Buttons are used to initialize an action. Button labels express what action will occur when the user interacts with it. -tabs: ['Code', 'Usage', 'Style', 'Accessibility'] +tabs: ["Code", "Usage", "Style", "Accessibility"] --- diff --git a/src/pages/components/checkbox/accessibility.mdx b/src/pages/components/checkbox/accessibility.mdx index 84bcab76368..a80c39a87a8 100644 --- a/src/pages/components/checkbox/accessibility.mdx +++ b/src/pages/components/checkbox/accessibility.mdx @@ -1,7 +1,7 @@ --- title: Checkbox description: Checkboxes are used for a list of options where the user may select multiple options, including all or none. -tabs: ['Code', 'Usage', 'Style', 'Accessibility'] +tabs: ["Code", "Usage", "Style", "Accessibility"] --- import { @@ -13,7 +13,7 @@ import { StructuredListCell, OrderedList, ListItem, -} from 'carbon-components-react'; +} from "carbon-components-react"; How it works diff --git a/src/pages/components/checkbox/code.mdx b/src/pages/components/checkbox/code.mdx index f4a7136cd54..0a77794878a 100755 --- a/src/pages/components/checkbox/code.mdx +++ b/src/pages/components/checkbox/code.mdx @@ -1,19 +1,20 @@ --- title: Checkbox description: Checkboxes are used for a list of options where the user may select multiple options, including all or none. -tabs: ['Code', 'Usage', 'Style', 'Accessibility'] +tabs: ["Code", "Usage", "Style", "Accessibility"] --- + knobs={{ Checkbox: ["indeterminate", "disabled", "hideLabel"] }} +> {`
Checkbox heading diff --git a/src/pages/components/checkbox/style.mdx b/src/pages/components/checkbox/style.mdx index 11327201135..3c6148f47fc 100755 --- a/src/pages/components/checkbox/style.mdx +++ b/src/pages/components/checkbox/style.mdx @@ -1,7 +1,7 @@ --- title: Checkbox description: Checkboxes are used for a list of options where the user may select multiple options, including all or none. -tabs: ['Code', 'Usage', 'Style', 'Accessibility'] +tabs: ["Code", "Usage", "Style", "Accessibility"] --- ## Color diff --git a/src/pages/components/checkbox/usage.mdx b/src/pages/components/checkbox/usage.mdx index 4b5a68a3abf..0ba936542dc 100755 --- a/src/pages/components/checkbox/usage.mdx +++ b/src/pages/components/checkbox/usage.mdx @@ -1,7 +1,7 @@ --- title: Checkbox description: Checkboxes are used for a list of options where the user may select multiple options, including all or none. -tabs: ['Code', 'Usage', 'Style', 'Accessibility'] +tabs: ["Code", "Usage", "Style", "Accessibility"] --- diff --git a/src/pages/components/code-snippet/accessibility.mdx b/src/pages/components/code-snippet/accessibility.mdx index cd4e651a2a3..f78c8edabcc 100644 --- a/src/pages/components/code-snippet/accessibility.mdx +++ b/src/pages/components/code-snippet/accessibility.mdx @@ -1,7 +1,7 @@ --- title: Code snippet description: Code snippets are small blocks of reusable code that can be inserted in a code file. -tabs: ['Code', 'Usage', 'Style', 'Accessibility'] +tabs: ["Code", "Usage", "Style", "Accessibility"] --- import { @@ -13,7 +13,7 @@ import { StructuredListCell, OrderedList, ListItem, -} from 'carbon-components-react'; +} from "carbon-components-react"; diff --git a/src/pages/components/code-snippet/code.mdx b/src/pages/components/code-snippet/code.mdx index a5e4fd9e953..824da14f450 100755 --- a/src/pages/components/code-snippet/code.mdx +++ b/src/pages/components/code-snippet/code.mdx @@ -1,20 +1,21 @@ --- title: Code snippet description: Code snippets are small blocks of reusable code that can be inserted in a code file. -tabs: ['Code', 'Usage', 'Style', 'Accessibility'] +tabs: ["Code", "Usage", "Style", "Accessibility"] --- + knobs={{ CodeSnippet: ["type"] }} +> {` {\`@mixin grid-container { diff --git a/src/pages/components/code-snippet/style.mdx b/src/pages/components/code-snippet/style.mdx index 38129ae4ad3..7fdb0ca3a81 100755 --- a/src/pages/components/code-snippet/style.mdx +++ b/src/pages/components/code-snippet/style.mdx @@ -1,7 +1,7 @@ --- title: Code snippet description: Code snippets are small blocks of reusable code that can be inserted in a code file. -tabs: ['Code', 'Usage', 'Style', 'Accessibility'] +tabs: ["Code", "Usage", "Style", "Accessibility"] --- ## Color diff --git a/src/pages/components/code-snippet/usage.mdx b/src/pages/components/code-snippet/usage.mdx index b956f042feb..867226d4fa8 100644 --- a/src/pages/components/code-snippet/usage.mdx +++ b/src/pages/components/code-snippet/usage.mdx @@ -1,7 +1,7 @@ --- title: Code snippet description: Code snippets are small blocks of reusable code that can be inserted in a code file. -tabs: ['Code', 'Usage', 'Style', 'Accessibility'] +tabs: ["Code", "Usage", "Style", "Accessibility"] --- ## General guidance diff --git a/src/pages/components/content-switcher/accessibility.mdx b/src/pages/components/content-switcher/accessibility.mdx index a3089bc2667..e918af507e8 100644 --- a/src/pages/components/content-switcher/accessibility.mdx +++ b/src/pages/components/content-switcher/accessibility.mdx @@ -1,7 +1,7 @@ --- title: Content switcher description: Content switchers manipulate the content shown following an exclusive or “either/or” pattern. It is used to toggle between two or more content sections within the same space on screen. -tabs: ['Code', 'Usage', 'Style', 'Accessibility'] +tabs: ["Code", "Usage", "Style", "Accessibility"] --- import { @@ -13,7 +13,7 @@ import { StructuredListCell, OrderedList, ListItem, -} from 'carbon-components-react'; +} from "carbon-components-react"; diff --git a/src/pages/components/content-switcher/code.mdx b/src/pages/components/content-switcher/code.mdx index 89b4d98bdab..6ae5bcbd2af 100755 --- a/src/pages/components/content-switcher/code.mdx +++ b/src/pages/components/content-switcher/code.mdx @@ -1,19 +1,20 @@ --- title: Content switcher description: Content switchers manipulate the content shown following an exclusive or “either/or” pattern. It is used to toggle between two or more content sections within the same space on screen. -tabs: ['Code', 'Usage', 'Style', 'Accessibility'] +tabs: ["Code", "Usage", "Style", "Accessibility"] --- {` + "http://vue.carbondesignsystem.com/?path=/story/components-cvcontentswitcher--default", + Vanilla: "https://the-carbon-components.netlify.com/?nav=content-switcher", + }} +>{` diff --git a/src/pages/components/content-switcher/style.mdx b/src/pages/components/content-switcher/style.mdx index 85872125127..50ba6bc7af9 100755 --- a/src/pages/components/content-switcher/style.mdx +++ b/src/pages/components/content-switcher/style.mdx @@ -1,7 +1,7 @@ --- title: Content switcher description: Content switchers manipulate the content shown following an exclusive or “either/or” pattern. It is used to toggle between two or more content sections within the same space on screen. -tabs: ['Code', 'Usage', 'Style', 'Accessibility'] +tabs: ["Code", "Usage", "Style", "Accessibility"] --- ## Color diff --git a/src/pages/components/content-switcher/usage.mdx b/src/pages/components/content-switcher/usage.mdx index 5fc731eac0e..6064222d00d 100755 --- a/src/pages/components/content-switcher/usage.mdx +++ b/src/pages/components/content-switcher/usage.mdx @@ -1,7 +1,7 @@ --- title: Content switcher description: Content switchers manipulate the content shown following an exclusive or “either/or” pattern. It is used to toggle between two or more content sections within the same space on screen. -tabs: ['Code', 'Usage', 'Style', 'Accessibility'] +tabs: ["Code", "Usage", "Style", "Accessibility"] --- ## General guidance diff --git a/src/pages/components/data-table/accessibility.mdx b/src/pages/components/data-table/accessibility.mdx index bd011c80425..8b4a3e22f17 100644 --- a/src/pages/components/data-table/accessibility.mdx +++ b/src/pages/components/data-table/accessibility.mdx @@ -1,7 +1,7 @@ --- title: Data table description: The data table component allows for the flexible display and sorting of information. -tabs: ['Code', 'Usage', 'Style', 'Accessibility'] +tabs: ["Code", "Usage", "Style", "Accessibility"] --- import { @@ -13,7 +13,7 @@ import { StructuredListCell, OrderedList, ListItem, -} from 'carbon-components-react'; +} from "carbon-components-react"; diff --git a/src/pages/components/data-table/code.mdx b/src/pages/components/data-table/code.mdx index a2b083a119b..fee1d2c83f3 100644 --- a/src/pages/components/data-table/code.mdx +++ b/src/pages/components/data-table/code.mdx @@ -1,25 +1,26 @@ --- title: Data table description: The data table component allows for the flexible display and sorting of information. -tabs: ['Code', 'Usage', 'Style', 'Accessibility'] +tabs: ["Code", "Usage", "Style", "Accessibility"] --- -import { rowData, headerData } from '../../../data/components/data-table.js'; +import { rowData, headerData } from "../../../data/components/data-table.js"; ## Default {`{` ( @@ -51,16 +52,17 @@ import { rowData, headerData } from '../../../data/components/data-table.js'; {`{` ( @@ -100,16 +102,17 @@ import { rowData, headerData } from '../../../data/components/data-table.js'; {`{` ( @@ -144,85 +147,85 @@ import { rowData, headerData } from '../../../data/components/data-table.js'; ```javascript const headerData = [ { - header: 'Name', - key: 'name', + header: "Name", + key: "name", }, { - header: 'Protocol', - key: 'protocol', + header: "Protocol", + key: "protocol", }, { - header: 'Port', - key: 'port', + header: "Port", + key: "port", }, { - header: 'Rule', - key: 'rule', + header: "Rule", + key: "rule", }, { - header: 'Attached Groups', - key: 'attached_groups', + header: "Attached Groups", + key: "attached_groups", }, { - header: 'Status', - key: 'status', + header: "Status", + key: "status", }, ]; const rowData = [ { - attached_groups: 'Kevins VM Groups', - id: 'a', - name: 'Load Balancer 3', + attached_groups: "Kevins VM Groups", + id: "a", + name: "Load Balancer 3", port: 3000, - protocol: 'HTTP', - rule: 'Round robin', - status: 'Disabled', + protocol: "HTTP", + rule: "Round robin", + status: "Disabled", }, { - attached_groups: 'Maureens VM Groups', - id: 'b', - name: 'Load Balancer 1', + attached_groups: "Maureens VM Groups", + id: "b", + name: "Load Balancer 1", port: 443, - protocol: 'HTTP', - rule: 'Round robin', - status: 'Starting', + protocol: "HTTP", + rule: "Round robin", + status: "Starting", }, { - attached_groups: 'Andrews VM Groups', - id: 'c', - name: 'Load Balancer 2', + attached_groups: "Andrews VM Groups", + id: "c", + name: "Load Balancer 2", port: 80, - protocol: 'HTTP', - rule: 'DNS delegation', - status: 'Active', + protocol: "HTTP", + rule: "DNS delegation", + status: "Active", }, { - attached_groups: 'Marcs VM Groups', - id: 'd', - name: 'Load Balancer 6', + attached_groups: "Marcs VM Groups", + id: "d", + name: "Load Balancer 6", port: 3000, - protocol: 'HTTP', - rule: 'Round robin', - status: 'Disabled', + protocol: "HTTP", + rule: "Round robin", + status: "Disabled", }, { - attached_groups: 'Mels VM Groups', - id: 'e', - name: 'Load Balancer 4', + attached_groups: "Mels VM Groups", + id: "e", + name: "Load Balancer 4", port: 443, - protocol: 'HTTP', - rule: 'Round robin', - status: 'Starting', + protocol: "HTTP", + rule: "Round robin", + status: "Starting", }, { - attached_groups: 'Ronjas VM Groups', - id: 'f', - name: 'Load Balancer 5', + attached_groups: "Ronjas VM Groups", + id: "f", + name: "Load Balancer 5", port: 80, - protocol: 'HTTP', - rule: 'DNS delegation', - status: 'Active', + protocol: "HTTP", + rule: "DNS delegation", + status: "Active", }, ]; ``` diff --git a/src/pages/components/data-table/style.mdx b/src/pages/components/data-table/style.mdx index e59b3c3adb3..38109a61ff7 100755 --- a/src/pages/components/data-table/style.mdx +++ b/src/pages/components/data-table/style.mdx @@ -1,7 +1,7 @@ --- title: Data table description: The data table component allows for the flexible display and sorting of information. -tabs: ['Code', 'Usage', 'Style', 'Accessibility'] +tabs: ["Code", "Usage", "Style", "Accessibility"] --- ## Color diff --git a/src/pages/components/data-table/usage.mdx b/src/pages/components/data-table/usage.mdx index 046686c3a2b..1f7ff68d3de 100755 --- a/src/pages/components/data-table/usage.mdx +++ b/src/pages/components/data-table/usage.mdx @@ -1,7 +1,7 @@ --- title: Data table description: The data table component allows for the flexible display and sorting of information. -tabs: ['Code', 'Usage', 'Style', 'Accessibility'] +tabs: ["Code", "Usage", "Style", "Accessibility"] --- ## Basic data table diff --git a/src/pages/components/date-picker/accessibility.mdx b/src/pages/components/date-picker/accessibility.mdx index fddc4f0a3a1..11d5a00e528 100644 --- a/src/pages/components/date-picker/accessibility.mdx +++ b/src/pages/components/date-picker/accessibility.mdx @@ -1,7 +1,7 @@ --- title: Date picker description: Date and time pickers allow users to select a single or a range of dates and times. -tabs: ['Code', 'Usage', 'Style', 'Accessibility'] +tabs: ["Code", "Usage", "Style", "Accessibility"] --- import { @@ -13,7 +13,7 @@ import { StructuredListCell, OrderedList, ListItem, -} from 'carbon-components-react'; +} from "carbon-components-react"; diff --git a/src/pages/components/date-picker/code.mdx b/src/pages/components/date-picker/code.mdx index 93a5e7cf771..3388d011834 100755 --- a/src/pages/components/date-picker/code.mdx +++ b/src/pages/components/date-picker/code.mdx @@ -1,24 +1,25 @@ --- title: Date picker description: Date and time pickers allow users to select a single or a range of dates and times. -tabs: ['Code', 'Usage', 'Style', 'Accessibility'] +tabs: ["Code", "Usage", "Style", "Accessibility"] --- ## Default {` + "http://vue.carbondesignsystem.com/?path=/story/components-cvdatepicker--default", + Vanilla: "https://the-carbon-components.netlify.com/?nav=date-picker", + }} +>{` {` + "http://vue.carbondesignsystem.com/?path=/story/components-cvdatepicker--single", + Vanilla: "https://the-carbon-components.netlify.com/?nav=date-picker", + }} +>{` {` + "http://vue.carbondesignsystem.com/?path=/story/components-cvdatepicker--range", + Vanilla: "https://the-carbon-components.netlify.com/?nav=date-picker", + }} +>{` diff --git a/src/pages/components/dropdown/accessibility.mdx b/src/pages/components/dropdown/accessibility.mdx index 2ee0360e397..fab00659573 100644 --- a/src/pages/components/dropdown/accessibility.mdx +++ b/src/pages/components/dropdown/accessibility.mdx @@ -1,7 +1,7 @@ --- title: Dropdown description: Dropdowns present a list of options that can be used to filter or sort existing content. They can also be used as menus. -tabs: ['Code', 'Usage', 'Style', 'Accessibility'] +tabs: ["Code", "Usage", "Style", "Accessibility"] --- import { @@ -13,7 +13,7 @@ import { StructuredListCell, OrderedList, ListItem, -} from 'carbon-components-react'; +} from "carbon-components-react"; diff --git a/src/pages/components/dropdown/code.mdx b/src/pages/components/dropdown/code.mdx index 0cce09bb8a2..397f34bf8a0 100755 --- a/src/pages/components/dropdown/code.mdx +++ b/src/pages/components/dropdown/code.mdx @@ -1,25 +1,26 @@ --- title: Dropdown description: Dropdowns present a list of options that can be used to filter or sort existing content. They can also be used as menus. -tabs: ['Code', 'Usage', 'Style', 'Accessibility'] +tabs: ["Code", "Usage", "Style", "Accessibility"] --- -import items from '../../../data/components/dropdown.js'; +import items from "../../../data/components/dropdown.js"; ## Default {` + "http://vue.carbondesignsystem.com/?path=/story/components-cvdropdown--default", + Vanilla: "https://the-carbon-components.netlify.com/?nav=dropdown", + }} +>{` {` + "http://vue.carbondesignsystem.com/?path=/story/components-cvcombobox--default", + Vanilla: "https://the-carbon-components.netlify.com/?nav=combo-box", + }} +>{` {` + "http://vue.carbondesignsystem.com/?path=/story/components-cvmultiselect--default", + Vanilla: "https://the-carbon-components.netlify.com/?nav=multi-select", + }} +>{` {` + "http://vue.carbondesignsystem.com/?path=/story/components-cvmultiselect--default", + Vanilla: "https://the-carbon-components.netlify.com/?nav=multi-select", + }} +>{` diff --git a/src/pages/components/file-uploader/code.mdx b/src/pages/components/file-uploader/code.mdx index 190456a0447..7a253dbbf38 100755 --- a/src/pages/components/file-uploader/code.mdx +++ b/src/pages/components/file-uploader/code.mdx @@ -1,7 +1,7 @@ --- title: File uploader description: File uploaders allow the user to transfer a file or submit content of their own. -tabs: ['Code', 'Usage', 'Style', 'Accessibility'] +tabs: ["Code", "Usage", "Style", "Accessibility"] --- ## File uploader @@ -9,14 +9,15 @@ tabs: ['Code', 'Usage', 'Style', 'Accessibility'] + knobs={{ FileUploader: ["multiple"] }} +> {`
+ knobs={{ FileUploaderDropContainer: ["multiple", "disabled"] }} +> {`
Account photo @@ -71,14 +73,15 @@ tabs: ['Code', 'Usage', 'Style', 'Accessibility'] + knobs={{ FileUploaderItem: ["status", "invalid"] }} +> {`
diff --git a/src/pages/components/file-uploader/style.mdx b/src/pages/components/file-uploader/style.mdx index b5e79b08c32..d741fbde95b 100644 --- a/src/pages/components/file-uploader/style.mdx +++ b/src/pages/components/file-uploader/style.mdx @@ -1,7 +1,7 @@ --- title: File uploader description: File uploaders allow the user to transfer a file or submit content of their own. -tabs: ['Code', 'Usage', 'Style', 'Accessibility'] +tabs: ["Code", "Usage", "Style", "Accessibility"] --- ## Color diff --git a/src/pages/components/file-uploader/usage.mdx b/src/pages/components/file-uploader/usage.mdx index 6384f5f3b13..24c51b91158 100755 --- a/src/pages/components/file-uploader/usage.mdx +++ b/src/pages/components/file-uploader/usage.mdx @@ -1,7 +1,7 @@ --- title: File uploader description: File uploaders allow the user to transfer a file or submit content of their own. -tabs: ['Code', 'Usage', 'Style', 'Accessibility'] +tabs: ["Code", "Usage", "Style", "Accessibility"] --- diff --git a/src/pages/components/form/accessibility.mdx b/src/pages/components/form/accessibility.mdx index a4ed6abfc28..e705ebfb2a1 100644 --- a/src/pages/components/form/accessibility.mdx +++ b/src/pages/components/form/accessibility.mdx @@ -1,7 +1,7 @@ --- title: Form description: Forms are used for submitting data. Consider each field and what value the data will provide. -tabs: ['Code', 'Usage', 'Style', 'Accessibility'] +tabs: ["Code", "Usage", "Style", "Accessibility"] --- import { @@ -13,7 +13,7 @@ import { StructuredListCell, OrderedList, ListItem, -} from 'carbon-components-react'; +} from "carbon-components-react"; How it works diff --git a/src/pages/components/form/code.mdx b/src/pages/components/form/code.mdx index 2d78fbc2f0b..c0d3a649bf8 100755 --- a/src/pages/components/form/code.mdx +++ b/src/pages/components/form/code.mdx @@ -1,26 +1,27 @@ --- title: Form description: Forms are used for submitting data. Consider each field and what value the data will provide. -tabs: ['Code', 'Usage', 'Style', 'Accessibility'] +tabs: ["Code", "Usage", "Style", "Accessibility"] --- ## Form + TextInput: ["disabled", "invalid", "light", "type"], + TextArea: ["disabled", "invalid", "light"], + Select: ["disabled", "invalid", "light", "inline"], + SelectItem: ["disabled", "hidden"], + }} +> {`
diff --git a/src/pages/components/form/style.mdx b/src/pages/components/form/style.mdx index 9dae6983b39..150e5a57b3f 100644 --- a/src/pages/components/form/style.mdx +++ b/src/pages/components/form/style.mdx @@ -1,7 +1,7 @@ --- title: Form description: Forms are used for submitting data. Consider each field and what value the data will provide. -tabs: ['Code', 'Usage', 'Style', ' Accessibility'] +tabs: ["Code", "Usage", "Style", " Accessibility"] --- ## Color diff --git a/src/pages/components/form/usage.mdx b/src/pages/components/form/usage.mdx index fa5afe37c3c..3b7fe64c540 100755 --- a/src/pages/components/form/usage.mdx +++ b/src/pages/components/form/usage.mdx @@ -1,7 +1,7 @@ --- title: Form description: Forms are used for submitting data. Consider each field and what value the data will provide. -tabs: ['Code', 'Usage', 'Style', 'Accessibility'] +tabs: ["Code", "Usage", "Style", "Accessibility"] --- diff --git a/src/pages/components/inline-loading/accessibility.mdx b/src/pages/components/inline-loading/accessibility.mdx index c34b8eca765..8d822e9a6c6 100644 --- a/src/pages/components/inline-loading/accessibility.mdx +++ b/src/pages/components/inline-loading/accessibility.mdx @@ -1,6 +1,6 @@ --- title: Inline Loading -tabs: ['Code', 'Usage', 'Style', 'Accessibility'] +tabs: ["Code", "Usage", "Style", "Accessibility"] --- import { @@ -12,7 +12,7 @@ import { StructuredListCell, OrderedList, ListItem, -} from 'carbon-components-react'; +} from "carbon-components-react"; How it works diff --git a/src/pages/components/inline-loading/code.mdx b/src/pages/components/inline-loading/code.mdx index af1f693fd33..c1dbda638cf 100755 --- a/src/pages/components/inline-loading/code.mdx +++ b/src/pages/components/inline-loading/code.mdx @@ -1,19 +1,20 @@ --- title: Inline loading description: Inline loading spinners notify a user that their action is being processed. -tabs: ['Code', 'Usage', 'Style', 'Accessibility'] +tabs: ["Code", "Usage", "Style", "Accessibility"] --- {``} + InlineLoading: ["status"], + }} +>{``} diff --git a/src/pages/components/inline-loading/style.mdx b/src/pages/components/inline-loading/style.mdx index c4c15ef9be7..ac0430b6a32 100644 --- a/src/pages/components/inline-loading/style.mdx +++ b/src/pages/components/inline-loading/style.mdx @@ -1,7 +1,7 @@ --- title: Inline loading description: Inline loading spinners notify a user that their action is being processed. -tabs: ['Code', 'Usage', 'Style', 'Accessibility'] +tabs: ["Code", "Usage", "Style", "Accessibility"] --- ## Color diff --git a/src/pages/components/inline-loading/usage.mdx b/src/pages/components/inline-loading/usage.mdx index a71604b5c7b..3ea3aa20f3c 100755 --- a/src/pages/components/inline-loading/usage.mdx +++ b/src/pages/components/inline-loading/usage.mdx @@ -1,7 +1,7 @@ --- title: Inline loading description: Inline loading spinners notify a user that their action is being processed. -tabs: ['Code', 'Usage', 'Style', 'Accessibility'] +tabs: ["Code", "Usage", "Style", "Accessibility"] --- diff --git a/src/pages/components/link/accessibility.mdx b/src/pages/components/link/accessibility.mdx index a02b888f8f4..e529d1bc6c3 100644 --- a/src/pages/components/link/accessibility.mdx +++ b/src/pages/components/link/accessibility.mdx @@ -1,7 +1,7 @@ --- title: Link description: Checkboxes are used for a list of options where the user may select multiple options, including all or none. -tabs: ['Code', 'Usage', 'Style', 'Accessibility'] +tabs: ["Code", "Usage", "Style", "Accessibility"] --- import { @@ -13,7 +13,7 @@ import { StructuredListCell, OrderedList, ListItem, -} from 'carbon-components-react'; +} from "carbon-components-react"; How it works diff --git a/src/pages/components/link/code.mdx b/src/pages/components/link/code.mdx index a14824fef17..a2a5797f638 100755 --- a/src/pages/components/link/code.mdx +++ b/src/pages/components/link/code.mdx @@ -1,18 +1,19 @@ --- title: Link description: Links are used primarily as a navigational element. Links may also change what or how data is displayed. -tabs: ['Code', 'Usage', 'Style', 'Accessibility'] +tabs: ["Code", "Usage", "Style", "Accessibility"] --- + knobs={{ Link: ["disabled", "inline"] }} +> {` Link `} diff --git a/src/pages/components/link/style.mdx b/src/pages/components/link/style.mdx index f47212fe9be..16b4eb13ccf 100755 --- a/src/pages/components/link/style.mdx +++ b/src/pages/components/link/style.mdx @@ -1,7 +1,7 @@ --- title: Link description: Links are used primarily as a navigational element. Links may also change what or how data is displayed. -tabs: ['Code', 'Usage', 'Style', 'Accessibility'] +tabs: ["Code", "Usage", "Style", "Accessibility"] --- ## Color diff --git a/src/pages/components/link/usage.mdx b/src/pages/components/link/usage.mdx index 0f74ad4407e..10bef7fd752 100755 --- a/src/pages/components/link/usage.mdx +++ b/src/pages/components/link/usage.mdx @@ -1,7 +1,7 @@ --- title: Link description: Links are used primarily as a navigational element. Links may also change what or how data is displayed. -tabs: ['Code', 'Usage', 'Style', 'Accessibility'] +tabs: ["Code", "Usage", "Style", "Accessibility"] --- ## General guidance diff --git a/src/pages/components/list/accessibility.mdx b/src/pages/components/list/accessibility.mdx index e80488d7b4a..5669933bcfb 100644 --- a/src/pages/components/list/accessibility.mdx +++ b/src/pages/components/list/accessibility.mdx @@ -1,7 +1,7 @@ --- title: List description: Lists consist of related content grouped together and organized vertically. -tabs: ['Code', 'Usage', 'Style', 'Accessibility'] +tabs: ["Code", "Usage", "Style", "Accessibility"] --- import { @@ -13,7 +13,7 @@ import { StructuredListCell, OrderedList, ListItem, -} from 'carbon-components-react'; +} from "carbon-components-react"; How it works diff --git a/src/pages/components/list/code.mdx b/src/pages/components/list/code.mdx index 95015012fe1..0fe9fc9e092 100755 --- a/src/pages/components/list/code.mdx +++ b/src/pages/components/list/code.mdx @@ -1,7 +1,7 @@ --- title: List description: Lists consist of related content grouped together and organized vertically. -tabs: ['Code', 'Usage', 'Style', 'Accessibility'] +tabs: ["Code", "Usage", "Style", "Accessibility"] --- ## Ordered @@ -9,13 +9,14 @@ tabs: ['Code', 'Usage', 'Style', 'Accessibility'] + "http://vue.carbondesignsystem.com/?path=/story/components-cvlist--default", + Vanilla: "https://the-carbon-components.netlify.com/?nav=list", + }} +> {` @@ -47,13 +48,14 @@ tabs: ['Code', 'Usage', 'Style', 'Accessibility'] + "http://vue.carbondesignsystem.com/?path=/story/components-cvlist--default", + Vanilla: "https://the-carbon-components.netlify.com/?nav=list", + }} +> {` diff --git a/src/pages/components/list/style.mdx b/src/pages/components/list/style.mdx index 117d98814c5..c7954c8b61a 100755 --- a/src/pages/components/list/style.mdx +++ b/src/pages/components/list/style.mdx @@ -1,7 +1,7 @@ --- title: List description: Lists consist of related content grouped together and organized vertically. -tabs: ['Code', 'Usage', 'Style', 'Accessibility'] +tabs: ["Code", "Usage", "Style", "Accessibility"] --- ## Color diff --git a/src/pages/components/list/usage.mdx b/src/pages/components/list/usage.mdx index 8d876466f4b..20488fe49b2 100755 --- a/src/pages/components/list/usage.mdx +++ b/src/pages/components/list/usage.mdx @@ -1,7 +1,7 @@ --- title: List description: Lists consist of related content grouped together and organized vertically. -tabs: ['Code', 'Usage', 'Style', 'Accessibility'] +tabs: ["Code", "Usage", "Style", "Accessibility"] --- ## General guidance diff --git a/src/pages/components/loading/accessibility.mdx b/src/pages/components/loading/accessibility.mdx index 42f134b1f9e..d54ff64296f 100644 --- a/src/pages/components/loading/accessibility.mdx +++ b/src/pages/components/loading/accessibility.mdx @@ -1,7 +1,7 @@ --- title: Loading description: Loading spinners are used when retrieving data or performing slow computations, and help to notify users that loading is underway. -tabs: ['Code', 'Usage', 'Style', 'Accessibility'] +tabs: ["Code", "Usage", "Style", "Accessibility"] --- import { @@ -13,7 +13,7 @@ import { StructuredListCell, OrderedList, ListItem, -} from 'carbon-components-react'; +} from "carbon-components-react"; How it works diff --git a/src/pages/components/loading/code.mdx b/src/pages/components/loading/code.mdx index 33645f39d10..2e03659ef81 100755 --- a/src/pages/components/loading/code.mdx +++ b/src/pages/components/loading/code.mdx @@ -1,21 +1,22 @@ --- title: Loading description: Loading spinners are used when retrieving data or performing slow computations, and help to notify users that loading is underway. -tabs: ['Code', 'Usage', 'Style', 'Accessibility'] +tabs: ["Code", "Usage", "Style", "Accessibility"] --- ## Loading + knobs={{ Loading: ["small"] }} +> {` How it works diff --git a/src/pages/components/modal/code.mdx b/src/pages/components/modal/code.mdx index a410064d326..9fa73cc4b70 100755 --- a/src/pages/components/modal/code.mdx +++ b/src/pages/components/modal/code.mdx @@ -1,27 +1,28 @@ --- title: Modal description: Modals focus the user’s attention exclusively on one task or piece of information via a window that sits on top of the page content. -tabs: ['Code', 'Usage', 'Style', 'Accessibility'] +tabs: ["Code", "Usage", "Style", "Accessibility"] --- + }} +> {` diff --git a/src/pages/components/notification/accessibility.mdx b/src/pages/components/notification/accessibility.mdx index fbf620ea542..5926c581bec 100644 --- a/src/pages/components/notification/accessibility.mdx +++ b/src/pages/components/notification/accessibility.mdx @@ -1,7 +1,7 @@ --- title: Notification description: Notifications are messages that communicate information to the user. The two main types of notificaitons are toast notifications and inline notifications. -tabs: ['Code', 'Usage', 'Style', 'Accessibility'] +tabs: ["Code", "Usage", "Style", "Accessibility"] --- import { @@ -13,7 +13,7 @@ import { StructuredListCell, OrderedList, ListItem, -} from 'carbon-components-react'; +} from "carbon-components-react"; How it works diff --git a/src/pages/components/notification/code.mdx b/src/pages/components/notification/code.mdx index 9a360e84e35..240b068c07e 100755 --- a/src/pages/components/notification/code.mdx +++ b/src/pages/components/notification/code.mdx @@ -1,7 +1,7 @@ --- title: Notification description: Notifications are messages that communicate information to the user. The two main types of notificaitons are toast notifications and inline notifications. -tabs: ['Code', 'Usage', 'Style', 'Accessibility'] +tabs: ["Code", "Usage", "Style", "Accessibility"] --- ## Toast notification @@ -9,14 +9,15 @@ tabs: ['Code', 'Usage', 'Style', 'Accessibility'] + knobs={{ ToastNotification: ["hideCloseButton", "kind", "lowContrast"] }} +> {`
+ knobs={{ InlineNotification: ["hideCloseButton", "lowContrast"] }} +> {`
diff --git a/src/pages/components/number-input/code.mdx b/src/pages/components/number-input/code.mdx index f2f983cc69f..b6771dc741b 100755 --- a/src/pages/components/number-input/code.mdx +++ b/src/pages/components/number-input/code.mdx @@ -1,7 +1,7 @@ --- title: Number input description: Number inputs are similar to text inputs, but contain controls used to increase or decrease an incremental value. -tabs: ['Code', 'Usage', 'Style', 'Accessibility'] +tabs: ["Code", "Usage", "Style", "Accessibility"] --- ## Number input @@ -9,13 +9,14 @@ tabs: ['Code', 'Usage', 'Style', 'Accessibility'] + "http://vue.carbondesignsystem.com/?path=/story/components-cvnumberinput--default", + Vanilla: "https://the-carbon-components.netlify.com/?nav=number-input", + }} +> {` + "http://vue.carbondesignsystem.com/?path=/story/components-cvnumberinput--default", + Vanilla: "https://the-carbon-components.netlify.com/?nav=number-input", + }} +> {` How it works diff --git a/src/pages/components/overflow-menu/code.mdx b/src/pages/components/overflow-menu/code.mdx index 991bca6e5ea..ef5b6620691 100755 --- a/src/pages/components/overflow-menu/code.mdx +++ b/src/pages/components/overflow-menu/code.mdx @@ -1,23 +1,24 @@ --- title: Overflow menu description: Overflow menus are used when additional options are available to the user and there is a space constraint. -tabs: ['Code', 'Usage', 'Style', 'Accessibility'] +tabs: ["Code", "Usage", "Style", "Accessibility"] --- + OverflowMenuItem: ["disabled", "hasDivider", "isDelete"], + }} +> {` diff --git a/src/pages/components/pagination/code.mdx b/src/pages/components/pagination/code.mdx index f0f1e7ce2a8..14fd97a5794 100755 --- a/src/pages/components/pagination/code.mdx +++ b/src/pages/components/pagination/code.mdx @@ -1,22 +1,23 @@ --- title: Pagination description: Pagination is used for splitting up content or data into several pages, with a control for navigating to the next or previous page. -tabs: ['Code', 'Usage', 'Style', 'Accessibility'] +tabs: ["Code", "Usage", "Style", "Accessibility"] --- + Pagination: ["disabled", "isLastPage", "pageInputDisabled", "pagesUnknown"], + }} +> {`
diff --git a/src/pages/components/progress-indicator/code.mdx b/src/pages/components/progress-indicator/code.mdx index 09ee580c582..eb21dc6b5a2 100755 --- a/src/pages/components/progress-indicator/code.mdx +++ b/src/pages/components/progress-indicator/code.mdx @@ -1,7 +1,7 @@ --- title: Progress indicator description: A progress indicator is a visual representation of a user's progress through a set of steps. It guides the user through a number of steps in order to complete a specified process. -tabs: ['Code', 'Usage', 'Style', 'Accessibility'] +tabs: ["Code", "Usage", "Style", "Accessibility"] --- ## Progress indicator diff --git a/src/pages/components/progress-indicator/style.mdx b/src/pages/components/progress-indicator/style.mdx index 908502b39c9..9576764100e 100755 --- a/src/pages/components/progress-indicator/style.mdx +++ b/src/pages/components/progress-indicator/style.mdx @@ -1,7 +1,7 @@ --- title: Progress indicator description: A progress indicator is a visual representation of a user's progress through a set of steps. It guides the user through a number of steps in order to complete a specified process. -tabs: ['Code', 'Usage', 'Style', 'Accessibility'] +tabs: ["Code", "Usage", "Style", "Accessibility"] --- ## Color diff --git a/src/pages/components/progress-indicator/usage.mdx b/src/pages/components/progress-indicator/usage.mdx index f2a09e425b9..d5be48c8802 100755 --- a/src/pages/components/progress-indicator/usage.mdx +++ b/src/pages/components/progress-indicator/usage.mdx @@ -1,7 +1,7 @@ --- title: Progress indicator description: A progress indicator is a visual representation of a user's progress through a set of steps. It guides the user through a number of steps in order to complete a specified process. -tabs: ['Code', 'Usage', 'Style', 'Accessibility'] +tabs: ["Code", "Usage", "Style", "Accessibility"] --- ## General guidance diff --git a/src/pages/components/radio-button/accessibility.mdx b/src/pages/components/radio-button/accessibility.mdx index 9e619db87eb..425ffde6fe9 100644 --- a/src/pages/components/radio-button/accessibility.mdx +++ b/src/pages/components/radio-button/accessibility.mdx @@ -1,7 +1,7 @@ --- title: Radio button description: Radio buttons are used when two or more options are mutually exclusive, meaning the user must select only one option. -tabs: ['Code', 'Usage', 'Style', 'Accessibility'] +tabs: ["Code", "Usage", "Style", "Accessibility"] --- import { @@ -13,7 +13,7 @@ import { StructuredListCell, OrderedList, ListItem, -} from 'carbon-components-react'; +} from "carbon-components-react"; How it works diff --git a/src/pages/components/radio-button/code.mdx b/src/pages/components/radio-button/code.mdx index f84412cbcaf..411802393d4 100755 --- a/src/pages/components/radio-button/code.mdx +++ b/src/pages/components/radio-button/code.mdx @@ -1,7 +1,7 @@ --- title: Radio button description: Radio buttons are used when two or more options are mutually exclusive, meaning the user must select only one option. -tabs: ['Code', 'Usage', 'Style', 'Accessibility'] +tabs: ["Code", "Usage", "Style", "Accessibility"] --- ## Radio button @@ -9,16 +9,17 @@ tabs: ['Code', 'Usage', 'Style', 'Accessibility'] + RadioButtonGroup: ["orientation", "labelPosition"], + }} +> {` How it works diff --git a/src/pages/components/search/code.mdx b/src/pages/components/search/code.mdx index ae00abdc432..2d3dfed0d32 100755 --- a/src/pages/components/search/code.mdx +++ b/src/pages/components/search/code.mdx @@ -1,19 +1,20 @@ --- title: Search description: Search enables users to specify a word or a phrase to find relevant pieces of content without the use of navigation. -tabs: ['Code', 'Usage', 'Style', 'Accessibility'] +tabs: ["Code", "Usage", "Style", "Accessibility"] --- + knobs={{ Search: ["size", "light"] }} +> {` How it works diff --git a/src/pages/components/select/code.mdx b/src/pages/components/select/code.mdx index 953aab5c97c..09ed9ac113d 100755 --- a/src/pages/components/select/code.mdx +++ b/src/pages/components/select/code.mdx @@ -1,23 +1,24 @@ --- title: Select description: Select is a type of input that is used in forms, where a user is submitting data and chooses one option from a list. -tabs: ['Code', 'Usage', 'Style', 'Accessibility'] +tabs: ["Code", "Usage", "Style", "Accessibility"] --- + Select: ["disabled", "inline", "invalid", "light"], + SelectItem: ["disabled", "hidden"], + SelectItemGroup: ["disabled"], + }} +> {`