Skip to content

Commit

Permalink
Merge branch 'main' into 9879-more-bidi
Browse files Browse the repository at this point in the history
  • Loading branch information
kodiakhq[bot] authored Dec 3, 2021
2 parents 123231d + 1716f04 commit 5e85c69
Show file tree
Hide file tree
Showing 235 changed files with 5,698 additions and 1,260 deletions.
9 changes: 9 additions & 0 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -839,6 +839,15 @@
"code",
"doc"
]
},
{
"login": "Kman316",
"name": "Cathal Kenneally",
"avatar_url": "https://avatars.githubusercontent.com/u/25666525?v=4",
"profile": "https://github.com/Kman316",
"contributions": [
"code"
]
}
],
"commitConvention": "none"
Expand Down
6 changes: 6 additions & 0 deletions .github/ISSUE_TEMPLATE/ACCESSIBILITY_ISSUE.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@ body:
placeholder: e.g. v10.42.0
validations:
required: true
- type: input
id: react-version
attributes:
label: React version
description: 'Which React version are you using?'
placeholder: e.g. v17.0.2
- type: input
id: tool
attributes:
Expand Down
6 changes: 6 additions & 0 deletions .github/ISSUE_TEMPLATE/BUG_REPORT.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ body:
placeholder: e.g. v10.42.0
validations:
required: true
- type: input
id: react-version
attributes:
label: React version
description: 'Which React version are you using?'
placeholder: e.g. v17.0.2
- type: textarea
id: description
attributes:
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Use Node.js 14.x
uses: actions/setup-node@v2.4.1
uses: actions/setup-node@v2.5.0
with:
node-version: '14.x'
- name: Run yarn dedupe
Expand All @@ -23,7 +23,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Use Node.js 14.x
uses: actions/setup-node@v2.4.1
uses: actions/setup-node@v2.5.0
with:
node-version: '14.x'
- name: Install dependencies
Expand All @@ -36,7 +36,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Use Node.js 14.x
uses: actions/setup-node@v2.4.1
uses: actions/setup-node@v2.5.0
with:
node-version: '14.x'
- name: Install dependencies
Expand All @@ -51,10 +51,10 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Use Node.js 14.x
uses: actions/setup-node@v2.4.1
uses: actions/setup-node@v2.5.0
with:
node-version: '14.x'
- uses: actions/cache@v2.1.6
- uses: actions/cache@v2.1.7
id: cache
with:
path: |
Expand All @@ -77,10 +77,10 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Use Node.js 14.x
uses: actions/setup-node@v2.4.1
uses: actions/setup-node@v2.5.0
with:
node-version: '14.x'
- uses: actions/cache@v2.1.6
- uses: actions/cache@v2.1.7
id: cache
with:
path: |
Expand Down Expand Up @@ -113,10 +113,10 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Use Node.js 14.x
uses: actions/setup-node@v2.4.1
uses: actions/setup-node@v2.5.0
with:
node-version: '14.x'
- uses: actions/cache@v2.1.6
- uses: actions/cache@v2.1.7
id: cache
with:
path: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-react-storybook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
steps:
- uses: actions/checkout@main
- name: Use Node.js 14.x
uses: actions/setup-node@v2.4.1
uses: actions/setup-node@v2.5.0
with:
node-version: '14.x'
- name: Install dependencies
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-vanilla-devenv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
steps:
- uses: actions/checkout@main
- name: Use Node.js 14.x
uses: actions/setup-node@v2.4.1
uses: actions/setup-node@v2.5.0
with:
node-version: '14.x'
- name: Install dependencies
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nightly-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
steps:
- uses: actions/checkout@main
- name: Use Node.js 14.x
uses: actions/setup-node@v2.4.1
uses: actions/setup-node@v2.5.0
with:
node-version: '14.x'
- name: Install dependencies
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- uses: actions/checkout@v1

- name: Use Node.js 14.x
uses: actions/setup-node@v2.4.1
uses: actions/setup-node@v2.5.0
with:
node-version: '14.x'
registry-url: 'https://registry.npmjs.org'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sync-generated-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
steps:
- uses: actions/checkout@v1
- name: Use Node.js 14.x
uses: actions/setup-node@v2.4.1
uses: actions/setup-node@v2.5.0
with:
node-version: '14.x'
- name: Install dependencies
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ check out our [Contributing Guide](/.github/CONTRIBUTING.md) and our
</tr>
<tr>
<td align="center"><a href="https://github.com/motou"><img src="https://avatars.githubusercontent.com/u/1215956?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Zhen Wang</b></sub></a><br /><a href="https://github.com/carbon-design-system/carbon/commits?author=motou" title="Code">💻</a> <a href="https://github.com/carbon-design-system/carbon/commits?author=motou" title="Documentation">📖</a></td>
<td align="center"><a href="https://github.com/Kman316"><img src="https://avatars.githubusercontent.com/u/25666525?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Cathal Kenneally</b></sub></a><br /><a href="https://github.com/carbon-design-system/carbon/commits?author=Kman316" title="Code">💻</a></td>
</tr>
</table>

Expand Down
4 changes: 2 additions & 2 deletions config/eslint-config-carbon/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "eslint-config-carbon",
"description": "ESLint configuration for Carbon",
"version": "2.8.0",
"version": "2.9.0",
"license": "Apache-2.0",
"main": "index.js",
"repository": {
Expand Down Expand Up @@ -38,7 +38,7 @@
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-cypress": "^2.11.3",
"eslint-plugin-import": "^2.23.4",
"eslint-plugin-jest": "^24.3.6",
"eslint-plugin-jest": "^25.3.0",
"eslint-plugin-jsdoc": "^36.0.3",
"eslint-plugin-jsx-a11y": "^6.4.1",
"eslint-plugin-prettier": "^3.4.0",
Expand Down
11 changes: 4 additions & 7 deletions config/eslint-config-carbon/plugins/jest.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module.exports = {
],

// Enforce lowercase test names
'jest/lowercase-name': 'off',
'jest/prefer-lowercase-title': 'off',

// Disallow alias methods
'jest/no-alias-methods': 'error',
Expand Down Expand Up @@ -108,11 +108,8 @@ module.exports = {
// Suggest using toStrictEqual()
'jest/prefer-strict-equal': 'off',

// Suggest using toBeNull()
'jest/prefer-to-be-null': 'off',

// Suggest using toBeUndefined()
'jest/prefer-to-be-undefined': 'off',
// Suggest using toBe() for primitive literals
'jest/prefer-to-be': 'off',

// Suggest using toContain()
'jest/prefer-to-contain': 'off',
Expand All @@ -130,7 +127,7 @@ module.exports = {
'jest/require-top-level-describe': 'off',

// Enforce valid describe() callback
'jest/valid-describe': 'error',
'jest/valid-describe-callback': 'error',

// Enforce valid expect() usage
'jest/valid-expect': 'error',
Expand Down
2 changes: 2 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ module.exports = {
'!packages/{cli,components,sketch}/**',
'!packages/**/{examples,stories}/**',
'!**/*-story.js',
'!**/*.stories.js',
'!**/*-test.e2e.js',
],
reporters: ['default', 'jest-junit'],
};
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"actions/*",
"codemods",
"config/*",
"packages/*"
"packages/*",
"www"
],
"scripts": {
"build": "lerna run build --stream --prefix --npm-client yarn",
Expand All @@ -20,7 +21,7 @@
"doctoc": "doctoc --title '## Table of Contents'",
"format": "prettier --write '**/*.{js,md,scss,ts}' '!**/{build,es,lib,storybook,ts,umd}/**'",
"format:diff": "prettier --list-different '**/*.{js,md,scss,ts}' '!**/{build,es,lib,storybook,ts,umd}/**' '!packages/components/**'",
"lint": "eslint actions config codemods packages",
"lint": "eslint actions config codemods packages www",
"lint:styles": "stylelint '**/*.{css,scss}' --report-needless-disables --report-invalid-scope-disables",
"sync": "carbon-cli sync",
"test": "cross-env BABEL_ENV=test jest",
Expand Down
20 changes: 1 addition & 19 deletions packages/carbon-react/.storybook/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,7 @@
// LICENSE file in the root directory of this source tree.
//

@use '../index.scss' as styles with (
$css--font-face: true,
$css--plex-arabic: true,
);
@use '../scss/components/button';
@use '../scss/components/tag';
@use '../index.scss' as styles;

:root {
@include styles.theme(styles.$white);
Expand All @@ -31,16 +26,3 @@
body {
background: styles.$background;
}

html[lang='en'] body {
font-family: 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;
}

html[lang='ar'] body {
font-family: 'IBM Plex Sans Arabic', 'Helvetica Neue', Arial, sans-serif;
}

.text-mono {
font-family: 'IBM Plex Mono', Menlo, 'DejaVu Sans Mono',
'Bitstream Vera Sans Mono', Courier, monospace;
}
1 change: 1 addition & 0 deletions packages/carbon-react/__tests__/index-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ Array [
"HeaderNavigation",
"HeaderPanel",
"HeaderSideNavItems",
"IconButton",
"IconSkeleton",
"InlineLoading",
"InlineNotification",
Expand Down
10 changes: 5 additions & 5 deletions packages/carbon-react/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@carbon/react",
"description": "React components for the Carbon Design System",
"version": "0.9.0",
"version": "0.10.0",
"license": "Apache-2.0",
"main": "lib/index.js",
"module": "es/index.js",
Expand Down Expand Up @@ -43,11 +43,11 @@
},
"dependencies": {
"@carbon/feature-flags": "^0.6.0",
"@carbon/icons-react": "^10.43.0",
"@carbon/styles": "^0.9.0",
"@carbon/icons-react": "^10.44.0",
"@carbon/styles": "^0.10.0",
"@carbon/telemetry": "0.0.0-alpha.6",
"carbon-components": "^10.48.0",
"carbon-components-react": "^7.48.0",
"carbon-components": "^10.49.0",
"carbon-components-react": "^7.49.0",
"carbon-icons": "^7.0.7"
},
"devDependencies": {
Expand Down
9 changes: 9 additions & 0 deletions packages/carbon-react/scss/fonts/_index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Code generated by @carbon/react. DO NOT EDIT.
//
// Copyright IBM Corp. 2018, 2018
//
// This source code is licensed under the Apache-2.0 license found in the
// LICENSE file in the root directory of this source tree.
//

@forward '@carbon/styles/scss/fonts';
9 changes: 9 additions & 0 deletions packages/carbon-react/scss/fonts/_mono.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Code generated by @carbon/react. DO NOT EDIT.
//
// Copyright IBM Corp. 2018, 2018
//
// This source code is licensed under the Apache-2.0 license found in the
// LICENSE file in the root directory of this source tree.
//

@forward '@carbon/styles/scss/fonts/mono';
9 changes: 9 additions & 0 deletions packages/carbon-react/scss/fonts/_sans-arabic.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Code generated by @carbon/react. DO NOT EDIT.
//
// Copyright IBM Corp. 2018, 2018
//
// This source code is licensed under the Apache-2.0 license found in the
// LICENSE file in the root directory of this source tree.
//

@forward '@carbon/styles/scss/fonts/sans-arabic';
9 changes: 9 additions & 0 deletions packages/carbon-react/scss/fonts/_sans-devanagari.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Code generated by @carbon/react. DO NOT EDIT.
//
// Copyright IBM Corp. 2018, 2018
//
// This source code is licensed under the Apache-2.0 license found in the
// LICENSE file in the root directory of this source tree.
//

@forward '@carbon/styles/scss/fonts/sans-devanagari';
9 changes: 9 additions & 0 deletions packages/carbon-react/scss/fonts/_sans-hebrew.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Code generated by @carbon/react. DO NOT EDIT.
//
// Copyright IBM Corp. 2018, 2018
//
// This source code is licensed under the Apache-2.0 license found in the
// LICENSE file in the root directory of this source tree.
//

@forward '@carbon/styles/scss/fonts/sans-hebrew';
9 changes: 9 additions & 0 deletions packages/carbon-react/scss/fonts/_sans-thai-looped.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Code generated by @carbon/react. DO NOT EDIT.
//
// Copyright IBM Corp. 2018, 2018
//
// This source code is licensed under the Apache-2.0 license found in the
// LICENSE file in the root directory of this source tree.
//

@forward '@carbon/styles/scss/fonts/sans-thai-looped';
9 changes: 9 additions & 0 deletions packages/carbon-react/scss/fonts/_sans-thai.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Code generated by @carbon/react. DO NOT EDIT.
//
// Copyright IBM Corp. 2018, 2018
//
// This source code is licensed under the Apache-2.0 license found in the
// LICENSE file in the root directory of this source tree.
//

@forward '@carbon/styles/scss/fonts/sans-thai';
9 changes: 9 additions & 0 deletions packages/carbon-react/scss/fonts/_sans.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Code generated by @carbon/react. DO NOT EDIT.
//
// Copyright IBM Corp. 2018, 2018
//
// This source code is licensed under the Apache-2.0 license found in the
// LICENSE file in the root directory of this source tree.
//

@forward '@carbon/styles/scss/fonts/sans';
9 changes: 9 additions & 0 deletions packages/carbon-react/scss/fonts/_serif.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Code generated by @carbon/react. DO NOT EDIT.
//
// Copyright IBM Corp. 2018, 2018
//
// This source code is licensed under the Apache-2.0 license found in the
// LICENSE file in the root directory of this source tree.
//

@forward '@carbon/styles/scss/fonts/serif';
Loading

0 comments on commit 5e85c69

Please sign in to comment.