Skip to content

Commit

Permalink
chore: update v11 branch with latest from main branch (#2616)
Browse files Browse the repository at this point in the history
* status indicator pattern

* Update index.mdx

Full copy edit and revision.

* copy edits, finalizing names for indicators

* chore: temporarily remove status indicator from sidenav

* docs(support-02): update support-02 value (#2288)

* add button variants to live modal preivew (#2299)

* docs(Modal): update modal live preview

* docs(Modal): add solo button example to code docs

* docs(Modal): update action handler

Co-authored-by: Josefina Mancilla <[email protected]>
Co-authored-by: TJ Egan <[email protected]>
Co-authored-by: Andrea N. Cardona <[email protected]>

* chore(gatsby): remove v3.0 FAST_REFRESH flag (#2336)

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>

* comms: All about Carbon additions, edits, deletions (#2338)

* comms: all about carbon additions

* update to the team page

* copyediting pass

* Update src/pages/all-about-carbon/who-uses-carbon.mdx

Co-authored-by: emyarod <[email protected]>

* Update src/pages/all-about-carbon/who-uses-carbon.mdx

Co-authored-by: emyarod <[email protected]>

* Update src/pages/all-about-carbon/who-uses-carbon.mdx

Co-authored-by: emyarod <[email protected]>

* Update src/pages/all-about-carbon/who-uses-carbon.mdx

Co-authored-by: emyarod <[email protected]>

* Update src/pages/all-about-carbon/who-uses-carbon.mdx

Co-authored-by: emyarod <[email protected]>

* Delete why-use-carbon copy.mdx

Co-authored-by: emyarod <[email protected]>

* copy edits to who uses carbon (#2347)

* fix: update Carbon for IBM.com community index links (#2343)

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>

* Removed space between paragraphs (#2351)

Removed space between paragraphs in “Overview” and “Carbon is open source” so the copy reads continuously without paragraph breaks. Not needed and disrupting the one thought.

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>

* Copy edit: Added “be” to “they can be used” (#2349)

Added “be” to “they can be used” in the “Overview” paragraph

Co-authored-by: TJ Egan <[email protected]>

* fix: minor updates to vue tutorial (#2352)

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>

* Update index.mdx (#2361)

typo to fix anchor link from "Actions: The main actions needed to complete or cancel the dialog task. Button groupings change based on modal variant. Use descriptive words for the actions like Add, Delete, Save and avoid vague words like Done or OK."

original line 60: "[Button groupings](/patterns/dialog-pattern#buttons-groups) change based on"
fixed line 60: "[Button groupings](/patterns/dialog-pattern#button-groups) change based on"

* Audit avt1 component demo label text area (#2335)

* testing

* fix(componeent-demo): audit-avt1-component-demo-label-text-area

* fix(componeent-demo): updated label title

* fix: undo change

* fix: remove console log

* Update src/components/ComponentDemo/ComponentDemo.js

Co-authored-by: TJ Egan <[email protected]>

* fix: add label variable

Co-authored-by: Josefina Mancilla <[email protected]>
Co-authored-by: TJ Egan <[email protected]>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>

* chore(release): update to v10.36.0 (#2365)

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>

* chore: remove references to #carbon-elements channel (#2371)

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>

* Update link for github tutorials (#2362)

Previous link gives 404

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>

* Compressed Images (#2392)

Co-authored-by: kodiakhq <[email protected]>

* update to steering committee (#2400)

* chore: format (#2398)

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>

* chore(release): v10.37.0 (#2405)

* chore: remove sw

* Update package.json

* Update deploy.yml

* update carbon-charts version/add new demos (#2300)

* update charts version

* fix card

* chore: format

Co-authored-by: emyarod <[email protected]>

* Fixes hover-primary-text hex for blue 70 (#2409)

Blue 70 should be #0043ce

Co-authored-by: Andrea N. Cardona <[email protected]>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>

* chore(release): v10.37.1 (#2415)

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>

* feat: add StatusIndicator table component (#2377)

* feat: add StatusIndicator table component

* feat: add other attention yaml entries

* feat: add status and statusExtended paletts

* fix: palette name

* feat: add glyph table

* chore: update theme

* fix: color palette switcher border

* refactor: clean up styles and components

* fix: use object to prevent blurry svgs on safari/ff

* fix: remove SVG filter junk

* feat: twoColumn color palette prop

* fix: dark caution ghost paths

* fix: palette data, caret size, overview paragraph spacing

* Update status-indicators.yaml

* fix: token names, image assets

* fix: add number badge image

* fix: add image url

* Update status-indicators.yaml

* fix: indicator data, checkmark filled, image cols

* Update status-indicators.yaml

* fix: glyph swap

Co-authored-by: jeanservaas <[email protected]>

* fix(code-snippet): fix accessbility duplicate header (#2334)

* testing

* fix(code-snippet): fix accessbility duplicate header

* Update usage.mdx

* fix: overflow content headers

Co-authored-by: Josefina Mancilla <[email protected]>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>

* Compressed Images (#2427)

Co-authored-by: kodiakhq <[email protected]>

* Release/v10.38.0 (#2425)

* testing

* chore(release): v10.38.0

* whoops

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>

* fix(Typography): fix issues with inline copy button (#2433)

* docs: add feducation video to v11 page (#2431)

Co-authored-by: Scott Strubberg <[email protected]>

* add carbon charts slack channel link (#2429)

Co-authored-by: TJ Egan <[email protected]>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>

* docs: add Image production guidelines Sketch kit (#2437)

* docs: add image production guidelines sketch kit

-Add sketch kit as a tile

* update: link to sketch cloud

* docs: add steering committee members (#2434)

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Co-authored-by: TJ Egan <[email protected]>

* Update accessibility.mdx

* Update code.mdx

* Status indicator follow-up (#2436)

* fix(CodeSnippet): use token for copy button (#2441)

* fix(CodeSnippet): use token for copy button

* fix(CodeSnippet): set correct hover color

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>

* chore(release): v10.39.0 (#2442)

* testing

* chore(release): v10.39.0

* Update usage.mdx

* Compressed Images (#2446)

Co-authored-by: kodiakhq <[email protected]>

* Add design to codeowners (#2445)

* Release/v10.40.0 rc.0 (#2453)

* testing

* chore(release): smoke test for v10.40.0-rc.0

* v10.40.0 (#2458)

* testing

* chore(release): v10.40.0

* chore(release): v10.40.0

* dark color-scheme value for 2 demo components (#2466)

* update color-scheme for code bar component

* dark color-scheme for the component demo snippet

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>

* fix(IconLibrary): fix issue with glyph only icons (#2457)

* fix(IconLibrary): fix issue with glyph only icons

* fix(IconLibrary): change path

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>

* demo link list only scrollable if there's overflow (#2462)

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>

* update carbon charts to v0.41.92 (#2461)

Co-authored-by: Andrea N. Cardona <[email protected]>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>

* v10.40.1 (#2469)

* testing

* chore(release): v10.40.1

* whoops

* fix broken dataviz links (#2468)

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>

* fix(color): fix v10 color page bugs (#2471)

* testing

* fix(color): fix v10 color page bugs

* fix(color): fix v10 color page bugs v2

* chore: update lockfile (#2479)

* chore: fix carbon-components-react resolutions (#2481)

* fix(dataviz): broken links (#2477)

Co-authored-by: DAK <[email protected]>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>

* chore(project): update carbon to v10.41.0 (#2478)

* chore(project): update carbon to v10.41.0-rc.0

* chore(project): update carbon to v10.41.0

* feat(homepage): add beta blog (#2483)

* Compressed Images (#2485)

Co-authored-by: kodiakhq <[email protected]>

* docs: remove Andrew and Jillian from team page 😔 (#2486)

* style(Meetups): add space to buttons (#2482)

* update carbon charts react to 0.41.101 & d3 to 7.0.0 (#2484)

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>

* docs: add new medium article to v11 page (#2498)

* Update code.mdx (#2499)

* Content switcher images (#2492)

* updated images

reuploaded and renamed images

* updated images

updated images with new styles

* fixed bg

fixed usage-1 background color

* fixed broken image

updated broken image

* replaced image

replaces low res usage image for high res

* reuploaded high res image

trouble shooting high res image

* docs(dataviz): add histogram (#2493)

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>

* docs(web-components): introduce CDN feature (#2496)

* docs(web-components): introduce CDN feature

Carbon Web Components are now available via CDN links, which can greatly
 reduce the development setup if importing as part of a front-end
 application build/tool chain.

* docs(web-components): adding codesandbox url for CDN

Co-authored-by: Josefina Mancilla <[email protected]>

* chore(project): update carbon to v10.42.0 (#2505)

* [Don't merge yet] feat: update to gtc v2 and gatsby v3 (#2416)

* chore: update deps

* fix: gatsby v3 migration woes

* chore: fix shadowing issues

* chore: update charts to use gatsby-image

Co-authored-by: Josefina Mancilla <[email protected]>

* fix(Icons): add additional logic to handle glyph-only icons (#2488)

Co-authored-by: Andrea N. Cardona <[email protected]>

* chore: build fresh lock file to resolve build failure (#2509)

* chore: build fresh lock file

* chore: remove gatsby v2 flags

* chore: fix node engine syntax

* fix: component index query

* fix: husky warning

* chore: migrate to Carbon eslint configuration (#2510)

* fix(overflowmenu): fix tabbing order (#2515)

* testing

* fix(overflowmenu): fix tabbing order

* whoops

* Compressed Images (#2524)

Co-authored-by: kodiakhq <[email protected]>

* docs: add myself to team page 👋 (#2526)

* fix: content guidance links (#2536)

* Term 'light' used instead of 'dark' (#2504)

In the paragraph 
'Dark themes
Gray 90 components are paired with Gray 100 backgrounds to make the Gray 100 Theme and Gray 80 components with Gray 90 backgrounds to make the Gray 90 Theme. Some components, such as buttons and toggles, share the same colors across both light themes.' - term 'light' (word behind the last one) is used and there should be 'dark'.

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>

* chore(project): update carbon to v10.43.0 (#2534)

* chore(project): update carbon to v10.43.0-rc.0

* chore(project): update carbon to v10.43.0

* fix(UIShell): update storybook link (#2525)

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>

* docs: partners and advisory board updates (#2533)

* fix: update content for design kit

New:
- Added maintainer name and link to bluepages

Changed:
- Updated design kit link

* fix: update content for design kit (#2120)

* fix: update content for design kit

New:
- Added maintainer name and link to bluepages

Changed:
- Updated design kit link

* edit: move maintainer section

* update

* update: images

* chatbot sync

* edits

* update: title content fixes

* update: more title edits

* fix: typo

* docs(dataviz): add tree diagram demos, update network thumbnail (#2543)

* docs(dataviz): add histogram

* docs(dataviz): add tree diagram demos, update network thumbnail

* docs(dataviz): add network diagram demos & tree diagram card (#2502)

* docs(dataviz): add histogram

* docs(dataviz): add network diagram demos & tree diagram card

* update icon

* update game

* update charts to 0.48.4

* remove unnecessary card

* demos(dataviz): add alluvial chart (#2546)

* docs(dataviz): add histogram

* demos(dataviz): add alluvial chart

* fix(overview-page): update image import (#2545)

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>

* Compressed Images (#2548)

Co-authored-by: kodiakhq <[email protected]>

* fix: update link to the new URL of Gatsby theme (#2552)

* chore(project): update carbon to v10.44.0 (#2551)

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>

* fix(ClickableTile): fix padding issue (#2521)

Co-authored-by: Andrea N. Cardona <[email protected]>

* Updated Optional versus required fields section (#2528)

Updated documentation to include the use of (required) as well as (optional).

Co-authored-by: Lauren Rice <[email protected]>

* update double slider image (#2556)

took out extra image of slider in over section

Co-authored-by: Lauren Rice <[email protected]>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>

* Update to include required labeling guidance (#2531)

Added guidance for marking form fields required or optional depending on use case, and added Default values sub-section in the Offering Help section.

Co-authored-by: tracey king <[email protected]>
Co-authored-by: Lauren Rice <[email protected]>

* feat(type): added new styles (#2555)

* feat(type): added new styles

* feat(type): removed zombie

Co-authored-by: Abbey Hart <[email protected]>

* chore(project): update carbon to v10.45.0-rc.0 (#2560)

Co-authored-by: Taylor Jones <[email protected]>

* feat(MediumPosts): automates pulling in posts from our Medium account (#2562)

* feat(MediumPosts): ta da

* feat(MediumPosts): added to the latest news section

* feat(MediumPosts): shadow'd component to fix colors

* update charts to 0.50.5 (#2567)

* docs(dataviz): add histogram

* update charts to 0.50.5

* fix(Carbon-Website): update component accessibility links (#2569)

* Compressed Images (#2541)

Co-authored-by: kodiakhq <[email protected]>
Co-authored-by: Alison Joseph <[email protected]>

* doc: tile component update (#2519)

* doc: tile component update

* Update src/pages/components/tile/usage.mdx

Co-authored-by: TJ Egan <[email protected]>

* Update src/pages/components/tile/usage.mdx

Co-authored-by: TJ Egan <[email protected]>

* Update src/pages/components/tile/usage.mdx

Co-authored-by: TJ Egan <[email protected]>

* Update src/pages/components/tile/usage.mdx

Co-authored-by: TJ Egan <[email protected]>

* Update src/pages/components/tile/usage.mdx

Co-authored-by: TJ Egan <[email protected]>

* Update src/pages/components/tile/usage.mdx

Co-authored-by: TJ Egan <[email protected]>

* Update src/pages/components/tile/usage.mdx

Co-authored-by: TJ Egan <[email protected]>

* Update src/pages/components/tile/usage.mdx

Co-authored-by: TJ Egan <[email protected]>

* Update src/pages/components/tile/usage.mdx

Co-authored-by: Anna Gonzales <[email protected]>

* Update src/pages/components/tile/usage.mdx

Co-authored-by: Anna Gonzales <[email protected]>

* Update src/pages/components/tile/usage.mdx

Co-authored-by: Anna Gonzales <[email protected]>

* Update src/pages/components/tile/usage.mdx

Co-authored-by: tracey king <[email protected]>

* Update src/pages/components/tile/usage.mdx

Co-authored-by: tracey king <[email protected]>

* Update src/pages/components/tile/usage.mdx

Co-authored-by: Anna Gonzales <[email protected]>

* Update src/pages/components/tile/usage.mdx

Co-authored-by: Anna Gonzales <[email protected]>

* Update src/pages/components/tile/usage.mdx

Co-authored-by: Anna Gonzales <[email protected]>

* tile-v2-update

* tile-v2-update

* tile-v2-update

* doc-tile-component

* doc-tile-component

* doc-tile-component

* doc-tile-component

* doc-tile-component

* doc-tile-component

Co-authored-by: TJ Egan <[email protected]>
Co-authored-by: Anna Gonzales <[email protected]>
Co-authored-by: tracey king <[email protected]>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>

* Fix a small typo in documentation (#2586)

Fix the typo in documentation by updating with correct component name.

* doc-tile-update (#2580)

* docs(web-components): adding code links for web components (#2588)

* docs(web-components): adding code links for web components

* fix(components): fixing quotes for web components

* docs(components): adding web components links to usage tabs

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>

* Theme-2.1.3 (#2577)

* docs(button): add icon only ghost button (#2589)

* docs(button): add icon only ghost button

* Update style.mdx

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>

* docs[designing]: added freehand resource (#2591)

* Update usage.mdx (#2597)

* Update svelte.mdx (#2595)

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>

* feat(design-resources): added a11y kit (#2601)

* Compressed Images (#2605)

Co-authored-by: kodiakhq <[email protected]>

* Remove Mike Abbink from Carbon team page (#2610)

* Remove Mike Abbink from Carbon team page

Remove Mike Abbink from Carbon team page

* removed profile ender thing

Co-authored-by: Anna Gonzales <[email protected]>

* chore(Carbon Website): update to v10.47.0 (#2598)

* chore(Carbon Website): update to v10.47.0-rc.0

* chore: update to stable

Co-authored-by: Taylor Jones <[email protected]>
Co-authored-by: Scott Strubberg <[email protected]>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>

* Form image updates for component usage page and pattern page (#2559)

* update images for form usage and patter

Updated:
Component:
• required pattern image
• optional pattern image

Pattern:
• required pattern image
• optional pattern image
• do and don't required form image

* trouble shooting image size

• optional/required images should be 6 columns not 8

• don't image missing

* trouble shooting images

added in caption markdown

* Update index.mdx

added break after when to use on pattern page

* updated capitalization

• updated do/don't capitalization in pattern section

* updated images

reuploaded the images at new sizes

* Update Elements.png

updated element image

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>

* docs: add Francine Lucca to Carbon team page (#2611)

Co-authored-by: Vince Picone <[email protected]>

* chore: update theme and other dependencies (#2602)

* chore: update theme and other dependencies

* chore: update packages again

Co-authored-by: Abbey Hart <[email protected]>

* Update index.mdx (#2604)

* Update src/pages/guidelines/color/overview.mdx

Co-authored-by: Anna Gonzales <[email protected]>

* Remove medium post shadowing (#2618)

Co-authored-by: Jean Servaas <[email protected]>
Co-authored-by: Jan Child <[email protected]>
Co-authored-by: Jan Child <[email protected]>
Co-authored-by: Vince Picone <[email protected]>
Co-authored-by: Vince Picone <[email protected]>
Co-authored-by: TJ Egan <[email protected]>
Co-authored-by: DAK <[email protected]>
Co-authored-by: Josefina Mancilla <[email protected]>
Co-authored-by: Andrea N. Cardona <[email protected]>
Co-authored-by: emyarod <[email protected]>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Co-authored-by: Mike Abbink <[email protected]>
Co-authored-by: Lee Chase <[email protected]>
Co-authored-by: Chris Connors <[email protected]>
Co-authored-by: Josh Black <[email protected]>
Co-authored-by: Mariusz Mickiewicz <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: kodiakhq <[email protected]>
Co-authored-by: natashadecoste <[email protected]>
Co-authored-by: emyarod <[email protected]>
Co-authored-by: Graham Harper <[email protected]>
Co-authored-by: jeanservaas <[email protected]>
Co-authored-by: Josefina Mancilla <[email protected]>
Co-authored-by: Matt Rosno <[email protected]>
Co-authored-by: Scott Strubberg <[email protected]>
Co-authored-by: Eliad Moosavi <[email protected]>
Co-authored-by: Lauren Rice <[email protected]>
Co-authored-by: Sam Robbins <[email protected]>
Co-authored-by: tracey king <[email protected]>
Co-authored-by: Jeffrey Chew <[email protected]>
Co-authored-by: Joe Harvey <[email protected]>
Co-authored-by: esmahh <[email protected]>
Co-authored-by: Stephane Rodet <[email protected]>
Co-authored-by: jjennings7 <[email protected]>
Co-authored-by: Abbey Hart <[email protected]>
Co-authored-by: Taylor Jones <[email protected]>
Co-authored-by: thyhmdo <[email protected]>
Co-authored-by: Anna Gonzales <[email protected]>
Co-authored-by: Vamshi Murari <[email protected]>
Co-authored-by: Anna Gonzales <[email protected]>
Co-authored-by: Taylor Jones <[email protected]>
Co-authored-by: Francine Lucca <[email protected]>
  • Loading branch information
Show file tree
Hide file tree
Showing 343 changed files with 13,317 additions and 9,807 deletions.
3 changes: 2 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"extends": ["wesbos"],
"extends": ["carbon"],
"globals": {
"fathom": "readonly"
},
"root": true,
"rules": {
"react/prop-types": 0,
"react/destructuring-assignment": 0,
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: Use Node.js 12.x
- name: Use Node.js 14.x
uses: actions/setup-node@v2-beta
with:
node-version: 12.x
node-version: 14.x

- name: Install packages
run: yarn install --frozen-lockfile --network-timeout 300000
Expand Down
8 changes: 1 addition & 7 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
{
"editor.formatOnSave": true,
"[javascript]": {
"editor.formatOnSave": false
},
"[javascriptreact]": {
"editor.formatOnSave": false
},
"prettier.disableLanguages": ["javascript", "javascriptreact"],
"eslint.lintTask.enable": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}
Expand Down
1 change: 0 additions & 1 deletion gatsby-browser.js
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
/* eslint-disable import/prefer-default-export */
import './src/styles/index.scss';
8 changes: 3 additions & 5 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ module.exports = {
keywords:
'IBM, design, system, Carbon, design system, Bluemix, styleguide, style, guide, components, library, pattern, kit, component, cloud',
},
flags: {
PRESERVE_WEBPACK_CACHE: true,
FAST_DEV: true,
},
plugins: [
{
resolve: 'gatsby-source-filesystem',
Expand Down Expand Up @@ -46,13 +42,14 @@ module.exports = {
resolve: 'gatsby-theme-carbon',
options: {
mdxExtensions: ['.mdx'],
isServiceWorkerEnabled: true,
isServiceWorkerEnabled: false,
iconPath: './src/images/favicon.svg',
titleType: 'prepend',
repository: {
baseUrl: 'https://github.com/carbon-design-system/carbon-website',
subDirectory: '',
},
mediumAccount: 'carbondesign',
},
},
{
Expand All @@ -76,5 +73,6 @@ module.exports = {
directory: path.resolve(__dirname, './src/data/chart-index'),
},
},
'gatsby-plugin-remove-serviceworker',
],
};
2 changes: 1 addition & 1 deletion gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ exports.onCreateWebpackConfig = ({ actions, getConfig }) => {
rules: [
{
test: /\.md$/,
loaders: ['html-loader', 'markdown-loader'],
use: ['html-loader', 'markdown-loader'],
},
{
test: /\.html$/,
Expand Down
1 change: 0 additions & 1 deletion gatsby-ssr.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable import/prefer-default-export */
import React from 'react';
import ogimage from './src/images/ogimage.png';

Expand Down
91 changes: 39 additions & 52 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"dev": "gatsby develop -H 0.0.0.0",
"dev:clean": "gatsby clean && yarn dev",
"clean": "gatsby clean",
"build": "node --max-old-space-size=4096 ./node_modules/.bin/gatsby build",
"build": "node --max-old-space-size=8192 ./node_modules/.bin/gatsby build",
"build:clean": "gatsby clean && yarn build",
"build:analyze": "yarn install --force && yarn clean && ANALYZE=true yarn build",
"serve": "gatsby serve",
Expand All @@ -23,7 +23,7 @@
"update-browserslist": "npx browserslist-ga"
},
"engines": {
"node": ">=10"
"node": "14.x"
},
"browserslist": [
"last 1 edge version",
Expand All @@ -36,81 +36,68 @@
"/.cache/*",
"/node_modules/*"
],
"resolutions": {
"carbon-components": "^10.36.0",
"carbon-components-react": "^7.36.0",
"@carbon/elements": "^10.35.0",
"@carbon/icons": "^10.33.0",
"@carbon/icons-react": "^10.33.0",
"gatsby-remark-images": "^3.3.33"
},
"dependencies": {
"@carbon/charts-react": "0.41.62",
"@carbon/elements": "^10.35.0",
"@carbon/icons": "^10.33.0",
"@carbon/icons-react": "^10.33.0",
"@carbon/pictograms": "^11.11.0",
"@carbon/pictograms-react": "^11.11.0",
"@loadable/component": "^5.12.0",
"@babel/core": "^7.15.8",
"@carbon/charts-react": "0.50.8",
"@carbon/elements": "^10.46.0",
"@carbon/icons": "^10.42.0",
"@carbon/icons-react": "^10.42.0",
"@carbon/pictograms": "^11.20.0",
"@carbon/pictograms-react": "^11.20.0",
"@loadable/component": "^5.15.0",
"@slack/web-api": "^5.11.0",
"carbon-components": "^10.36.0",
"carbon-components-react": "^7.36.0",
"babel-preset-env": "^1.7.0",
"babel-preset-gatsby": "^1.14.0",
"carbon-components": "^10.47.0",
"carbon-components-react": "^7.47.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": "^2.19.8",
"gatsby-image": "^2.4.15",
"gatsby-theme-carbon": "^1.29.1",
"gatsby": "^3.14.3",
"gatsby-image": "^3.7.1",
"gatsby-plugin-image": "^1.14.1",
"gatsby-theme-carbon": "^2.1.5",
"lodash-es": "^4.17.15",
"markdown-it": "^9.0.1",
"nanoid": "^2.1.11",
"prettier-config-carbon": "^0.6.0",
"prettier-config-carbon": "^0.4.0",
"prop-types": "^15.7.2",
"react": "^16.8.6",
"react": "^17.0.2",
"react-copy-to-clipboard": "^5.0.1",
"react-dom": "^17.0.2",
"react-live": "^2.2.1",
"use-media": "^1.4.0"
"use-media": "^1.4.0",
"webpack": "^5.59.0"
},
"devDependencies": {
"@babel/core": "^7.11.1",
"@loadable/babel-plugin": "^5.12.0",
"@loadable/webpack-plugin": "^5.12.0",
"@loadable/webpack-plugin": "^5.15.0",
"@now/node": "^1.6.1",
"@philpl/buble": "^0.19.7",
"babel-eslint": "^10.1.0",
"babel-preset-gatsby": "^0.2.29",
"d3": "^5.12.0",
"core-js": "^3.18.3",
"d3": "7.0.0",
"dotenv": "^8.2.0",
"eslint": "^6.8.0",
"eslint-config-airbnb": "^18.1.0",
"eslint-config-prettier": "^6.10.1",
"eslint-config-wesbos": "0.0.19",
"eslint-plugin-html": "^6.0.0",
"eslint-plugin-import": "^2.20.1",
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-prettier": "^3.1.2",
"eslint-plugin-react": "^7.19.0",
"eslint-plugin-react-hooks": "^2.5.1",
"eslint": "^7.32.0",
"eslint-config-carbon": "^2.8.0",
"fs-extra": "^9.0.1",
"gatsby-plugin-lodash": "^3.1.3",
"gatsby-plugin-manifest": "^2.4.34",
"gatsby-plugin-lodash": "^4.14.0",
"gatsby-plugin-manifest": "^3.14.0",
"gatsby-plugin-remove-serviceworker": "^1.0.0",
"gatsby-plugin-sharp": "^2.6.27",
"gatsby-plugin-sitemap": "^2.2.30",
"gatsby-remark-images": "^3.3.33",
"gatsby-source-filesystem": "^2.3.24",
"gatsby-transformer-sharp": "^2.5.13",
"html-loader": "^0.5.5",
"gatsby-plugin-sharp": "^3.14.1",
"gatsby-plugin-sitemap": "^4.10.0",
"gatsby-remark-images": "^5.11.0",
"gatsby-source-filesystem": "^3.14.0",
"gatsby-transformer-sharp": "^3.14.0",
"html-loader": "^2.1.2",
"husky": "^4.2.3",
"lint-staged": ">=10.0.9",
"markdown-loader": "^5.0.0",
"node-fetch": "^3.0.0-beta.9",
"markdown-loader": "^6.0.0",
"node-fetch": "^2.6.1",
"prettier": "^2.0.2",
"prismjs": "^1.17.1",
"react-dom": "^16.12.0",
"react-ga": "^2.6.0",
"use-resize-observer": "^4.0.0"
},
"husky": {
Expand All @@ -119,7 +106,7 @@
}
},
"lint-staged": {
"*.{js}": [
"*.js": [
"eslint --fix"
],
"*.{css,scss,json,html,yaml,md,mdx}": [
Expand Down
12 changes: 5 additions & 7 deletions src/components/ChartIndexPage/ChartIndexListItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

import { Link, Tag, TooltipIcon } from 'carbon-components-react';
import Image from 'gatsby-image';
import { GatsbyImage } from 'gatsby-plugin-image';
import React from 'react';

// Placeholder image
Expand All @@ -16,21 +16,20 @@ const ChartIndexListItem = React.memo(
({ codeUrl, description, image, maintainer, name, websiteUrl }) => {
let img;

if (image?.fluid) {
if (image?.gatsbyImageData) {
img = (
<Image
<GatsbyImage
className="index-image"
alt={`Image for the ${name} chart`}
fluid={image.fluid}
image={image.gatsbyImageData}
/>
);
} else {
img = <img src={placeholder} alt={`Placeholder for the ${name} chart`} />;
}

return (
<>
<article className="component-index-item">
<article className="component-index-item">
<div className="component-index-item__image">{img}</div>
<div className="component-index-item__content">
<header className="component-index-item__name">{name}</header>
Expand Down Expand Up @@ -67,7 +66,6 @@ const ChartIndexListItem = React.memo(
</footer>
</div>
</article>
</>
);
}
);
Expand Down
2 changes: 1 addition & 1 deletion src/components/ChartIndexPage/ChartIndexNotFound.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function ChartIndexNotFound() {
<Row>
<Column sm={4} md={6} lg={6}>
<p className="component-index-not-found__text">
If you have designs or code for a chart that isn't listed here,
If you have designs or code for a chart that isnt listed here,
please
<Link
className="component-index-not-found__link"
Expand Down
10 changes: 5 additions & 5 deletions src/components/ChartIndexPage/ChartIndexSearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,16 @@ function ChartIndexSearch({ value, onChange }) {
}

ChartIndexSearch.propTypes = {
/**
* Control the value of the search using the `value` prop
*/
value: PropTypes.string.isRequired,

/**
* Receive an update for the latest value and use it to update the passed in
* `value`
*/
onChange: PropTypes.func.isRequired,

/**
* Control the value of the search using the `value` prop
*/
value: PropTypes.string.isRequired,
};

export default ChartIndexSearch;
10 changes: 5 additions & 5 deletions src/components/ChartIndexPage/ChartIndexSort.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,16 @@ function ChartIndexSort({ initialSortOption, options, onChange }) {
}

ChartIndexSort.propTypes = {
/**
* Provide the available sort options to be selected
*/
options: PropTypes.arrayOf(PropTypes.string),

/**
* Receive an update for the latest value and use it to update the passed in
* `value`
*/
onChange: PropTypes.func.isRequired,

/**
* Provide the available sort options to be selected
*/
options: PropTypes.arrayOf(PropTypes.string),
};

export default ChartIndexSort;
3 changes: 2 additions & 1 deletion src/components/ChartIndexPage/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,9 @@ function ChartIndexPage() {
{filterLabels.map(({ title, options, key }) => (
<div key={key} className="component-index-filter__option">
<legend className="component-index-filter__label">{title}</legend>
{options.map((selectedFilter) => (
{options.map((selectedFilter, i) => (
<Checkbox
key={`${selectedFilter}-${i}`}
labelText={selectedFilter}
id={selectedFilter}
checked={selected.includes(selectedFilter)}
Expand Down
4 changes: 1 addition & 3 deletions src/components/ChartIndexPage/useChartIndexData.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ const CHART_INDEX_DATA = graphql`
name
relativeDirectory
childImageSharp {
fluid(maxWidth: 640, maxHeight: 480) {
...GatsbyImageSharpFluid
}
gatsbyImageData(width: 640, height: 480)
}
}
}
Expand Down
Loading

0 comments on commit c30bf4b

Please sign in to comment.