diff --git a/.github/workflows/update-carbon-gatsby-deps.yml b/.github/workflows/update-carbon-gatsby-deps.yml index ac9a77ea8e8..bba673ff2f0 100644 --- a/.github/workflows/update-carbon-gatsby-deps.yml +++ b/.github/workflows/update-carbon-gatsby-deps.yml @@ -24,11 +24,8 @@ jobs: - name: Update dependencies run: | yarn up \ - @carbon/react@next \ - @carbon/elements@next \ @carbon/pictograms@next \ @carbon/pictograms-react@next \ - @carbon/icons@next \ @carbon/icons-react@next \ gatsby-theme-carbon@latest \ - name: Generate token diff --git a/.husky/pre-commit b/.husky/pre-commit new file mode 100644 index 00000000000..041c660c92b --- /dev/null +++ b/.husky/pre-commit @@ -0,0 +1 @@ +npx --no-install lint-staged diff --git a/README.md b/README.md index 467bd128634..4c335721387 100644 --- a/README.md +++ b/README.md @@ -3,8 +3,9 @@ ![Deployment status](https://github.com/carbon-design-system/carbon-website/workflows/Deployment%20status/badge.svg) This is the [Carbon Design System website](http://www.carbondesignsystem.com). -It's built using the [gatsby-theme-carbon](https://gatsby.carbondesignsystem.com/) -with [GatsbyJS](https://www.gatsbyjs.org/). +It's built using the +[gatsby-theme-carbon](https://gatsby.carbondesignsystem.com/) with +[GatsbyJS](https://www.gatsbyjs.org/). ## 📂 Structure @@ -22,8 +23,10 @@ src ## 👩‍💻 Develop - 🤝 [Contribution guidelines](.github/CONTRIBUTING.md) -- 📚 [Content and Markdown guidelines](https://gatsby-theme-carbon.now.sh/components/markdown) -- 🗺 [Navigation guidelines](https://gatsby-theme-carbon.now.sh/guides/navigation/sidebar) +- 📚 + [Content and Markdown guidelines](https://gatsby-theme-carbon.now.sh/components/markdown) +- 🗺 + [Navigation guidelines](https://gatsby-theme-carbon.now.sh/guides/navigation/sidebar) - `yarn install` – install dependencies - `yarn dev` – start the development server diff --git a/gatsby-config.js b/gatsby-config.js index 8d6822d2c88..1836c950d4d 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -1,6 +1,7 @@ const path = require('path'); module.exports = { + trailingSlash: `always`, siteMetadata: { title: 'Carbon Design System', siteUrl: 'https://www.carbondesignsystem.com', @@ -38,6 +39,16 @@ module.exports = { 'gatsby-plugin-sharp', 'gatsby-transformer-sharp', 'gatsby-plugin-lodash', + { + resolve: 'gatsby-plugin-manifest', + options: { + name: 'Carbon Design System', + short_name: 'Carbon', + icon: 'src/images/favicon.svg', + start_url: '/', + display: 'browser', + }, + }, { resolve: 'gatsby-theme-carbon', options: { @@ -55,28 +66,12 @@ module.exports = { }, }, }, - { - resolve: 'gatsby-plugin-manifest', - options: { - name: 'Carbon Design System', - short_name: 'Carbon', - icon: 'src/images/favicon.svg', - }, - }, 'gatsby-plugin-sitemap', - { - resolve: 'gatsby-plugin-component-index', - options: { - directory: path.resolve(__dirname, './src/data/index'), - }, - }, { resolve: 'gatsby-plugin-chart-index', options: { directory: path.resolve(__dirname, './src/data/chart-index'), }, }, - 'gatsby-plugin-remove-serviceworker', - 'gatsby-plugin-meta-redirect', ], }; diff --git a/gatsby-ssr.js b/gatsby-ssr.js index c598cf832fc..ffc4fa9e5aa 100644 --- a/gatsby-ssr.js +++ b/gatsby-ssr.js @@ -21,7 +21,7 @@ export const onRenderBody = ({ setHeadComponents, setPostBodyComponents }) => { }`; setHeadComponents([ - , + , { property="og:description" content="Carbon is IBM’s open source design system for products and digital experiences. With the IBM Design Language as its foundation, the system consists of working code, design tools and resources, human interface guidelines, and a vibrant community of contributors." />, - , + , , - , + , =18.x" @@ -37,74 +37,38 @@ "/node_modules/*" ], "dependencies": { - "@babel/core": "^7.15.8", "@carbon/charts-react": "0.55.0", - "@carbon/elements": "^11.51.0", - "@carbon/icons": "^11.47.0", - "@carbon/icons-react": "^11.47.0", - "@carbon/pictograms": "^12.38.0", - "@carbon/pictograms-react": "^11.64.0", - "@carbon/react": "^1.64.0", - "@loadable/component": "^5.15.2", - "@slack/web-api": "^5.11.0", - "babel-preset-env": "^1.7.0", - "babel-preset-gatsby": "^2.9.0", - "change-case": "^4.1.1", - "classnames": "^2.2.6", - "codesandbox": "^2.1.10", - "copy-to-clipboard": "^3.2.1", - "fuse.js": "^6.4.1", - "gatsby": "^4.25.7", - "gatsby-image": "^3.7.1", - "gatsby-plugin-image": "^2.9.0", - "gatsby-theme-carbon": "^3.4.19", - "lodash-es": "^4.17.15", - "markdown-it": "^12.3.2", - "nanoid": "^2.1.11", - "prettier-config-carbon": "^0.4.0", - "prop-types": "^15.7.2", - "react": "^17.0.2", - "react-copy-to-clipboard": "^5.0.1", - "react-dom": "^17.0.2", - "react-live": "^3.1.0", - "use-media": "^1.4.0", - "webpack": "^5.76.0" + "@carbon/icons-react": "^11.48.0", + "@carbon/pictograms": "^12.39.0", + "@carbon/pictograms-react": "^11.65.0", + "@loadable/babel-plugin": "^5.16.1", + "@loadable/component": "^5.16.4", + "codesandbox": "^2.2.3", + "d3": "^7.9.0", + "gatsby": "^5.13.5", + "gatsby-plugin-sharp": "^5.13.1", + "gatsby-theme-carbon": "^4.0.8", + "markdown-it": "^14.1.0", + "prettier-config-carbon": "^0.11.0", + "react": "^18.2.0", + "react-copy-to-clipboard": "^5.1.0", + "react-dom": "^18.2.0" }, "devDependencies": { "@loadable/babel-plugin": "^5.12.0", - "@loadable/webpack-plugin": "^5.15.2", - "@now/node": "^1.6.1", - "@philpl/buble": "^0.19.7", - "babel-eslint": "^10.1.0", "babel-preset-carbon": "^0.0.14", - "core-js": "^3.18.3", - "d3": "7.0.0", - "dotenv": "^8.2.0", - "eslint": "^8.36.0", - "eslint-config-carbon": "^3.1.0", - "fs-extra": "^9.0.1", - "gatsby-plugin-lodash": "^5.9.0", - "gatsby-plugin-manifest": "^4.9.0", - "gatsby-plugin-meta-redirect": "^1.1.1", - "gatsby-plugin-remove-serviceworker": "^1.0.0", - "gatsby-plugin-sharp": "^4.25.1", - "gatsby-plugin-sitemap": "^5.9.0", - "gatsby-remark-images": "^6.9.0", - "gatsby-source-filesystem": "^4.9.0", - "gatsby-transformer-sharp": "^4.9.0", - "html-loader": "^3.1.0", - "husky": "^4.2.3", + "eslint": "^8.57.0", + "eslint-config-carbon": "3.15.0", + "gatsby-plugin-lodash": "^6.13.1", + "gatsby-plugin-sitemap": "^6.13.1", + "gatsby-source-filesystem": "^5.13.1", + "gatsby-transformer-sharp": "^5.13.1", + "html-loader": "^5.1.0", + "husky": "^9.0.11", "lint-staged": ">=10.0.9", - "markdown-loader": "^6.0.0", - "node-fetch": "^2.6.1", + "markdown-loader": "^8.0.0", "prettier": "^2.0.2", - "prismjs": "^1.17.1", - "use-resize-observer": "^4.0.0" - }, - "husky": { - "hooks": { - "pre-commit": "lint-staged" - } + "typescript": "^4.8.4" }, "lint-staged": { "*.js": [ diff --git a/src/components/ColorPalette/ColorPalette.js b/src/components/ColorPalette/ColorPalette.js index 46aeba19f9b..881965d4801 100644 --- a/src/components/ColorPalette/ColorPalette.js +++ b/src/components/ColorPalette/ColorPalette.js @@ -179,7 +179,8 @@ const ColorPalette = ({ onChange={handleKeyboard} className={paletteSwitcher} selectionMode="automatic" - selectedIndex={0}> + selectedIndex={0} + size="lg"> diff --git a/src/components/ColorPalette/ColorPalette.module.scss b/src/components/ColorPalette/ColorPalette.module.scss index c4c99342203..74a573c085c 100644 --- a/src/components/ColorPalette/ColorPalette.module.scss +++ b/src/components/ColorPalette/ColorPalette.module.scss @@ -56,8 +56,8 @@ } .palette-switcher :global(.cds--content-switcher-btn) { - border-radius: 0; color: $text-01; + border-radius: 0 !important; } .palette-switcher :global(.cds--content-switcher--selected) { @@ -67,11 +67,7 @@ .palette-switcher :global(.cds--content-switcher-btn:focus) { outline: 1px solid $inverse-focus-ui; box-shadow: none; - outline-offset: -4px; -} - -.palette-switcher :global(.cds--content-switcher-btn) { - border-radius: 0; + outline-offset: -5px; } .palette-switcher diff --git a/src/components/ColorTokenTable/ColorTokenTable.js b/src/components/ColorTokenTable/ColorTokenTable.js index e41b51385e8..570308a3c80 100644 --- a/src/components/ColorTokenTable/ColorTokenTable.js +++ b/src/components/ColorTokenTable/ColorTokenTable.js @@ -9,12 +9,14 @@ import { import { CopyToClipboard } from 'react-copy-to-clipboard/lib/Component'; import StickyContainer from '../TypesetStyle/StickyContainer'; import colorTokens from '../../data/guidelines/color-tokens'; +import H3 from 'gatsby-theme-carbon/src/components/markdown/H3'; export default class ColorTokenTable extends React.Component { state = { theme: 'white', sticky: false, mobile: false, + type: 'core', }; componentDidMount() { @@ -23,6 +25,7 @@ export default class ColorTokenTable extends React.Component { mobile: true, }); } + this.setState({ type: this.props.type }); this.addResizeListener(); this.addScrollListener(); } @@ -159,351 +162,402 @@ export default class ColorTokenTable extends React.Component {
-
-

Background

-
-
- - - - - - - - - - {Object.keys(colorTokens['background-tokens']).map((token, i) => - this.renderToken( - token, - colorTokens['background-tokens'][token], - i - ) - )} - -
TokenRoleValue
-
-
-

Layer

-
-
- - - - - - - - - - {Object.keys(colorTokens['layer-tokens']).map((token, i) => - this.renderToken(token, colorTokens['layer-tokens'][token], i) - )} - -
TokenRoleValue
-
-
-

Layer accent

-
-
- - - - - - - - - - {Object.keys(colorTokens['layer-accent-tokens']).map( - (token, i) => - this.renderToken( - token, - colorTokens['layer-accent-tokens'][token], - i - ) - )} - -
TokenRoleValue
-
-
-

Field

-
-
- - - - - - - - - - {Object.keys(colorTokens['field-tokens']).map((token, i) => - this.renderToken(token, colorTokens['field-tokens'][token], i) - )} - -
TokenRoleValue
-
-
-

Border

-
-
- - - - - - - - - - {Object.keys(colorTokens['border-tokens']).map((token, i) => - this.renderToken( - token, - colorTokens['border-tokens'][token], - i - ) - )} - -
TokenRoleValue
-
-
-

Text

-
-
- - - - - - - - - - {Object.keys(colorTokens['text-tokens']).map((token, i) => - this.renderToken(token, colorTokens['text-tokens'][token], i) - )} - -
TokenRoleValue
-
-
-

Link

-
-
- - - - - - - - - - {Object.keys(colorTokens['link-tokens']).map((token, i) => - this.renderToken(token, colorTokens['link-tokens'][token], i) - )} - -
TokenRoleValue
-
-
-

Icon

-
-
- - - - - - - - - - {Object.keys(colorTokens['icon-tokens']).map((token, i) => - this.renderToken(token, colorTokens['icon-tokens'][token], i) - )} - -
TokenRoleValue
-
-
-

Button

-
-
- - - - - - - - - - {Object.keys(colorTokens['button-tokens']).map((token, i) => - this.renderToken( - token, - colorTokens['button-tokens'][token], - i - ) - )} - -
TokenRoleValue
-
-
-

Support

-
-
- - - - - - - - - - {Object.keys(colorTokens['support-tokens']).map((token, i) => - this.renderToken( - token, - colorTokens['support-tokens'][token], - i - ) - )} - -
TokenRoleValue
-
-
-

Focus

-
-
- - - - - - - - - - {Object.keys(colorTokens['focus-tokens']).map((token, i) => - this.renderToken(token, colorTokens['focus-tokens'][token], i) - )} - -
TokenRoleValue
-
-
-

Miscellaneous

-
-
- - - - - - - - - - {Object.keys(colorTokens['miscellaneous']).map((token, i) => - this.renderToken( - token, - colorTokens['miscellaneous'][token], - i - ) - )} - -
TokenRoleValue
-
-
-

Tag

-
-
- - - - - - - - - - {Object.keys(colorTokens['tag']).map((token, i) => - this.renderToken( - token, - colorTokens['tag'][token], - i - ) - )} - -
TokenRoleValue
-
-
-

AI

-
-
- - - - - - - - - - {Object.keys(colorTokens['ai']).map((token, i) => - this.renderToken( - token, - colorTokens['ai'][token], - i - ) - )} - -
TokenRoleValue
-
-
-

Chat

-
-
- - - - - - - - - - {Object.keys(colorTokens['chat']).map((token, i) => - this.renderToken( - token, - colorTokens['chat'][token], - i - ) - )} - -
TokenRoleValue
-
-
-

Chat button

-
-
- - - - - - - - - - {Object.keys(colorTokens['chat-button']).map((token, i) => - this.renderToken( - token, - colorTokens['chat-button'][token], - i - ) - )} - -
TokenRoleValue
-
+ {this.state.type === 'core' && ( + <> +
+

+ Background +

+
+
+ + + + + + + + + + {Object.keys(colorTokens['background-tokens']).map( + (token, i) => + this.renderToken( + token, + colorTokens['background-tokens'][token], + i + ) + )} + +
TokenRoleValue
+
+
+

Layer

+
+
+ + + + + + + + + + {Object.keys(colorTokens['layer-tokens']).map((token, i) => + this.renderToken( + token, + colorTokens['layer-tokens'][token], + i + ) + )} + +
TokenRoleValue
+
+
+

Layer accent

+
+
+ + + + + + + + + + {Object.keys(colorTokens['layer-accent-tokens']).map( + (token, i) => + this.renderToken( + token, + colorTokens['layer-accent-tokens'][token], + i + ) + )} + +
TokenRoleValue
+
+
+

Field

+
+
+ + + + + + + + + + {Object.keys(colorTokens['field-tokens']).map((token, i) => + this.renderToken( + token, + colorTokens['field-tokens'][token], + i + ) + )} + +
TokenRoleValue
+
+
+

Border

+
+
+ + + + + + + + + + {Object.keys(colorTokens['border-tokens']).map((token, i) => + this.renderToken( + token, + colorTokens['border-tokens'][token], + i + ) + )} + +
TokenRoleValue
+
+
+

Text

+
+
+ + + + + + + + + + {Object.keys(colorTokens['text-tokens']).map((token, i) => + this.renderToken( + token, + colorTokens['text-tokens'][token], + i + ) + )} + +
TokenRoleValue
+
+
+

Link

+
+
+ + + + + + + + + + {Object.keys(colorTokens['link-tokens']).map((token, i) => + this.renderToken( + token, + colorTokens['link-tokens'][token], + i + ) + )} + +
TokenRoleValue
+
+
+

Icon

+
+
+ + + + + + + + + + {Object.keys(colorTokens['icon-tokens']).map((token, i) => + this.renderToken( + token, + colorTokens['icon-tokens'][token], + i + ) + )} + +
TokenRoleValue
+
+
+

Support

+
+
+ + + + + + + + + + {Object.keys(colorTokens['support-tokens']).map( + (token, i) => + this.renderToken( + token, + colorTokens['support-tokens'][token], + i + ) + )} + +
TokenRoleValue
+
+
+

Focus

+
+
+ + + + + + + + + + {Object.keys(colorTokens['focus-tokens']).map((token, i) => + this.renderToken( + token, + colorTokens['focus-tokens'][token], + i + ) + )} + +
TokenRoleValue
+
+
+

Miscellaneous

+
+
+ + + + + + + + + + {Object.keys(colorTokens['miscellaneous']).map((token, i) => + this.renderToken( + token, + colorTokens['miscellaneous'][token], + i + ) + )} + +
TokenRoleValue
+
+ + )} + {this.state.type === 'component' && ( + <> +
+

Button

+
+
+ + + + + + + + + + {Object.keys(colorTokens['button-tokens']).map((token, i) => + this.renderToken( + token, + colorTokens['button-tokens'][token], + i + ) + )} + +
TokenRoleValue
+
+
+

Tag

+
+
+ + + + + + + + + + {Object.keys(colorTokens['tag']).map((token, i) => + this.renderToken(token, colorTokens['tag'][token], i) + )} + +
TokenRoleValue
+
+
+

Notification

+
+
+ + + + + + + + + + {Object.keys(colorTokens['notification']).map((token, i) => + this.renderToken( + token, + colorTokens['notification'][token], + i + ) + )} + +
TokenRoleValue
+
+ + )} + {this.state.type === 'ai' && ( + <> +
+

General AI

+
+
+ + + + + + + + + + {Object.keys(colorTokens['ai']).map((token, i) => + this.renderToken(token, colorTokens['ai'][token], i) + )} + +
TokenRoleValue
+
+
+

Chat

+
+
+ + + + + + + + + + {Object.keys(colorTokens['chat']).map((token, i) => + this.renderToken(token, colorTokens['chat'][token], i) + )} + +
TokenRoleValue
+
+
+

Chat button

+
+
+ + + + + + + + + + {Object.keys(colorTokens['chat-button']).map((token, i) => + this.renderToken( + token, + colorTokens['chat-button'][token], + i + ) + )} + +
TokenRoleValue
+
+ + )}
); diff --git a/src/components/ComponentOverview/images/AI label.svg b/src/components/ComponentOverview/images/AI label.svg new file mode 100644 index 00000000000..de42354e723 --- /dev/null +++ b/src/components/ComponentOverview/images/AI label.svg @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/src/components/ComponentStatus/ComponentStatus.js b/src/components/ComponentStatus/ComponentStatus.js deleted file mode 100644 index 585b7c44882..00000000000 --- a/src/components/ComponentStatus/ComponentStatus.js +++ /dev/null @@ -1,136 +0,0 @@ -import React from 'react'; -import { Tag } from '@carbon/react'; -import Packages from '../../../package.json'; -import componentStatus from '../../data/components.json'; - -const tags = { - stable: Stable, - experimental: Experimental, - new: New, - updated: Updated, - deprectated: Deprecated, - underConstruction: Under construction, - notAvailable: , -}; - -class ComponentStatus extends React.Component { - renderItems = (currentItem) => ( - - {currentItem.component} - - {Object.keys(currentItem.vanilla) - .filter((key) => currentItem.vanilla[key]) - .map((key) => ( - {tags[key]} - ))} - - - {Object.keys(currentItem.react) - .filter((key) => currentItem.react[key]) - .map((key) => ( - {tags[key]} - ))} - - - {Object.keys(currentItem.angular) - .filter((key) => currentItem.angular[key]) - .map((key) => ( - {tags[key]} - ))} - - - {Object.keys(currentItem.vue) - .filter((key) => currentItem.vue[key]) - .map((key) => ( - {tags[key]} - ))} - - - ); - - render() { - const coreVersion = Packages.dependencies['@carbon/react']; - return ( -
-
-

Current version: {coreVersion}

-
-
- - - - - - - - - - - - {Object.keys(componentStatus.components).map((component) => - this.renderItems(componentStatus.components[component]) - )} - -
ComponentVanillaReactAngularVue
-
-
-

Key

-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
TagDescription
{tags.stable}Component is dev and design production-ready.
{tags.experimental} - Component can be used but is not considered stable and changes - to it may occur. -
{tags.deprectated} - Component has either been replaced by a new version or it is - no longer being supported by the system. -
{tags.notAvailable}Component is not available in this framework.
{tags.new} - Component is new to framework in the last major version - update. -
{tags.updated} - An existing component that had been under review, tweaked, and - re-released in the last major version. -
{tags.underConstruction}New components that are currently being worked on.
-
-
- ); - } -} - -export default ComponentStatus; diff --git a/src/components/ComponentStatus/component-status.scss b/src/components/ComponentStatus/component-status.scss deleted file mode 100644 index 1b4435a4f95..00000000000 --- a/src/components/ComponentStatus/component-status.scss +++ /dev/null @@ -1,23 +0,0 @@ -.component-status { - overflow-x: auto; -} -.component-status .cds--tag { - white-space: nowrap; -} - -.component-status .page-table td { - padding: $spacing-04 $spacing-05; - white-space: nowrap; -} - -.component-status__key { - margin-top: rem(80px); -} - -.component-status__key .page-h4 { - margin-bottom: $spacing-06; -} - -.component-status--unavailable { - padding-left: $spacing-04; -} diff --git a/src/components/ComponentStatus/index.js b/src/components/ComponentStatus/index.js deleted file mode 100644 index fc6b1eab773..00000000000 --- a/src/components/ComponentStatus/index.js +++ /dev/null @@ -1,3 +0,0 @@ -import ComponentStatus from './ComponentStatus'; - -export default ComponentStatus; diff --git a/src/gatsby-theme-carbon/templates/Homepage.js b/src/components/Homepage.js similarity index 94% rename from src/gatsby-theme-carbon/templates/Homepage.js rename to src/components/Homepage.js index 3e2111a7f4e..b44540fe617 100644 --- a/src/gatsby-theme-carbon/templates/Homepage.js +++ b/src/components/Homepage.js @@ -1,10 +1,10 @@ import React from 'react'; import { HomepageCallout, ResourceCard } from 'gatsby-theme-carbon'; -import HomepageTemplate from 'gatsby-theme-carbon/src/templates/Homepage'; +import HomepageTemplate from 'gatsby-theme-carbon/src/components/Layouts/Homepage'; import { blue20, purple20, gray100 } from '@carbon/elements'; import { calloutLink, callToAction } from './Homepage.module.scss'; // import HomepageVideo from '../../components/HomepageVideo/HomepageVideo'; -import ImageV11 from '../../components/Homepage/Carbon-AI-banner-image.jpg'; +import ImageV11 from './Homepage/Carbon-AI-banner-image.jpg'; const FirstLeftText = () =>

Carbon Design System

; diff --git a/src/gatsby-theme-carbon/templates/Homepage.module.scss b/src/components/Homepage.module.scss similarity index 100% rename from src/gatsby-theme-carbon/templates/Homepage.module.scss rename to src/components/Homepage.module.scss diff --git a/src/components/Homepage/Carbon-V11-Banner-Image.svg b/src/components/Homepage/Carbon-V11-Banner-Image.svg deleted file mode 100644 index d410d239987..00000000000 --- a/src/components/Homepage/Carbon-V11-Banner-Image.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/src/components/HomepageVideo/HomepageVideo.js b/src/components/HomepageVideo/HomepageVideo.js deleted file mode 100644 index c01c8bb8031..00000000000 --- a/src/components/HomepageVideo/HomepageVideo.js +++ /dev/null @@ -1,49 +0,0 @@ -/* eslint-disable jsx-a11y/media-has-caption */ -import React, { useRef, useState } from 'react'; -import ToggleIcon from './ToggleIcon'; - -import webm from './carbon.webm'; -import mp4 from './carbon.mp4'; - -import poster from './poster.jpg'; - -const HomepageVideo = () => { - const videoRef = useRef(); - const [paused, setPaused] = useState(false); - const [hovering, setHovering] = useState(false); - - const onClick = () => { - if (videoRef.current) { - if (paused) { - setPaused(false); - videoRef.current.play(); - } else { - setPaused(true); - videoRef.current.pause(); - } - } - }; - - return ( -
-
- -
-
- -
- ); -}; - -export default HomepageVideo; diff --git a/src/components/HomepageVideo/ToggleIcon.js b/src/components/HomepageVideo/ToggleIcon.js deleted file mode 100644 index 3162931ff29..00000000000 --- a/src/components/HomepageVideo/ToggleIcon.js +++ /dev/null @@ -1,18 +0,0 @@ -import React from 'react'; -import { - PlayOutline, - PlayOutlineFilled, - PauseOutline, - PauseOutlineFilled, -} from '@carbon/icons-react'; - -const Pause = ({ hovering }) => - hovering ? : ; - -const Play = ({ hovering }) => - hovering ? : ; - -const ToggleIcon = ({ paused, hovering }) => - paused ? : ; - -export default ToggleIcon; diff --git a/src/components/HomepageVideo/carbon-mobile.mp4 b/src/components/HomepageVideo/carbon-mobile.mp4 deleted file mode 100644 index 67dd0b28c02..00000000000 Binary files a/src/components/HomepageVideo/carbon-mobile.mp4 and /dev/null differ diff --git a/src/components/HomepageVideo/carbon-mobile.webm b/src/components/HomepageVideo/carbon-mobile.webm deleted file mode 100644 index 84ead056eec..00000000000 Binary files a/src/components/HomepageVideo/carbon-mobile.webm and /dev/null differ diff --git a/src/components/HomepageVideo/carbon.mp4 b/src/components/HomepageVideo/carbon.mp4 deleted file mode 100644 index 5d93b63a6f9..00000000000 Binary files a/src/components/HomepageVideo/carbon.mp4 and /dev/null differ diff --git a/src/components/HomepageVideo/carbon.webm b/src/components/HomepageVideo/carbon.webm deleted file mode 100644 index da48c988951..00000000000 Binary files a/src/components/HomepageVideo/carbon.webm and /dev/null differ diff --git a/src/components/HomepageVideo/homepage-video.scss b/src/components/HomepageVideo/homepage-video.scss deleted file mode 100644 index 54dd1b6eae8..00000000000 --- a/src/components/HomepageVideo/homepage-video.scss +++ /dev/null @@ -1,68 +0,0 @@ -.homepage-video--main { - width: 180%; - height: 100%; - position: absolute; - top: 0; - right: 0; - - @include breakpoint('md') { - width: 100%; - } -} - -.homepage-video--wrapper { - width: 100%; - height: 100%; - position: absolute; - top: 0; - right: 0; - padding-bottom: 56.25%; //needed to make video fit container -} - -.homepage-video--wrapper video { - width: 100%; - object-fit: cover; - @include breakpoint-down(1260px) { - top: -10%; - } - - @include breakpoint-down(1100px) { - top: 0; - } -} - -.homepage--video--overlay { - position: absolute; - width: 100%; - height: 100%; - top: 0; - left: 0; - background: $black-100; - opacity: 0.6; -} - -.homepage-video--controls { - position: absolute; - bottom: rem(14px); - left: 1rem; - height: rem(24px); - width: rem(24px); - background: transparent; - outline: none; - border: none; - padding: 0; - cursor: pointer; - z-index: 10; //need this to be above dots overlay - - @include breakpoint('lg') { - left: 271px; - } -} - -.homepage-video--controls svg { - fill: white; -} - -.homepage-video--controls:focus { - @include focus-outline('outline'); -} diff --git a/src/components/HomepageVideo/index.js b/src/components/HomepageVideo/index.js deleted file mode 100644 index ad4649a6a2d..00000000000 --- a/src/components/HomepageVideo/index.js +++ /dev/null @@ -1,3 +0,0 @@ -import HomepageVideo from './HomepageVideo'; - -export default HomepageVideo; diff --git a/src/components/HomepageVideo/poster.jpg b/src/components/HomepageVideo/poster.jpg deleted file mode 100644 index c019bec414f..00000000000 Binary files a/src/components/HomepageVideo/poster.jpg and /dev/null differ diff --git a/src/components/ListSection/ListSection.js b/src/components/ListSection/ListSection.js deleted file mode 100644 index e622ca7286a..00000000000 --- a/src/components/ListSection/ListSection.js +++ /dev/null @@ -1,10 +0,0 @@ -import React from 'react'; -import cx from 'classnames'; -import { Row } from 'gatsby-theme-carbon'; -import { listSection } from './ListSection.module.scss'; - -const ListSection = ({ className, ...props }) => ( - -); - -export default ListSection; diff --git a/src/components/ListSection/ListSection.module.scss b/src/components/ListSection/ListSection.module.scss deleted file mode 100644 index dd082a4591d..00000000000 --- a/src/components/ListSection/ListSection.module.scss +++ /dev/null @@ -1,28 +0,0 @@ -//--------------------------------------- -// Principles page -//--------------------------------------- -.list-section { - --space: 24px; - padding-top: 2rem; -} - -.list-section::before { - content: ''; - display: block; - background: $ui-04; - height: 1px; - width: calc(100% - 2rem); - margin: 0rem 1rem 1.5rem 1rem; -} - -.list-section h2 { - margin-top: 0; -} - -// Principles/Layout page -.list-section [class*='cds--col'] { - margin-bottom: 1.5rem; - @include breakpoint('md') { - margin-bottom: 0; - } -} diff --git a/src/components/ListSection/index.js b/src/components/ListSection/index.js deleted file mode 100644 index 450743b0944..00000000000 --- a/src/components/ListSection/index.js +++ /dev/null @@ -1,3 +0,0 @@ -import ListSection from './ListSection'; - -export default ListSection; diff --git a/src/components/Profile/Profile.js b/src/components/Profile/Profile.js deleted file mode 100644 index cf9a5322148..00000000000 --- a/src/components/Profile/Profile.js +++ /dev/null @@ -1,35 +0,0 @@ -import React from 'react'; -import PropTypes from 'prop-types'; -import { - profileContainer, - cardContainer, - contentContainer, - imageContainer, - nameStyle, - titleStyle, -} from './profile.module.scss'; - -const Profile = ({ name, title, children }) => ( -
-
-
-
-
-
{name}
-
{title}
-
-
{children}
-
-
-
-
-); - -Profile.propTypes = { - children: PropTypes.node, - name: PropTypes.string, - title: PropTypes.string, -}; - -export default Profile; diff --git a/src/components/Profile/index.js b/src/components/Profile/index.js deleted file mode 100644 index f271fa81e7e..00000000000 --- a/src/components/Profile/index.js +++ /dev/null @@ -1,3 +0,0 @@ -import Profile from './Profile'; - -export default Profile; diff --git a/src/components/Profile/profile.module.scss b/src/components/Profile/profile.module.scss deleted file mode 100644 index 7dd9542764a..00000000000 --- a/src/components/Profile/profile.module.scss +++ /dev/null @@ -1,51 +0,0 @@ -.profileContainer:nth-child(3n + 2), -.profileContainer:nth-child(3n + 3) { - border-left: 1px solid $gray-30; - border-bottom: 1px solid $gray-30; -} - -.profileContainer:nth-child(3n + 1) { - border-bottom: 1px solid $gray-30; -} - -.profileContainer:nth-last-child(-n + 3) { - @include breakpoint('lg') { - border-bottom: 0px; - } -} - -.profileContainer:nth-last-child(-n + 2) { - @include breakpoint('md') { - border-bottom: 0px; - } -} - -.cardContainer { - display: flex; - flex-direction: row; - justify-content: space-between; - background: $white-0; -} - -.contentContainer { - width: 100%; -} - -.imageContainer { - width: 100%; - height: 100%; -} - -.nameStyle { - @include type-style('heading-01', true); - color: $black-100; - padding-left: $spacing-05; - padding-top: $spacing-05; -} - -.titleStyle { - @include type-style('label-01', true); - color: $gray-80; - padding-left: $spacing-05; - width: 95%; -} diff --git a/src/components/SVGLibraries/shared/ActionBar.js b/src/components/SVGLibraries/shared/ActionBar.js index 9e6d6d8f314..6ce0ec377cc 100644 --- a/src/components/SVGLibraries/shared/ActionBar.js +++ b/src/components/SVGLibraries/shared/ActionBar.js @@ -53,8 +53,7 @@ const ActionBar = ({ aria-hidden={!isActionBarVisible} className={cx(container, { [hidden]: !isActionBarVisible, - })} - > + })}>
@@ -306,19 +307,23 @@ accessibility violations, you'd see because both the `Breadcrumb` and `Tabs` components use `