Skip to content

Commit

Permalink
Merge branch 'main' into ts-search-skeleton
Browse files Browse the repository at this point in the history
  • Loading branch information
kodiakhq[bot] authored Mar 16, 2023
2 parents cd2f1c3 + 47966b1 commit 1a22daf
Show file tree
Hide file tree
Showing 151 changed files with 2,647 additions and 1,183 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18.14
18.15
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 removed .yarn/cache/moo-npm-0.5.1-6281c30315-2d8c013f1f.zip
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: 0 additions & 1 deletion config/jest-config-carbon/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ module.exports = {
reporters: ['default'],
setupFiles: [require.resolve('./setup/setup.js')],
setupFilesAfterEnv: [require.resolve('./setup/setupAfterEnv.js')],
snapshotSerializers: ['enzyme-to-json/serializer'],
testMatch: [
'<rootDir>/**/__tests__/**/*.js?(x)',
'<rootDir>/**/*.(spec|test).js?(x)',
Expand Down
5 changes: 1 addition & 4 deletions config/jest-config-carbon/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "jest-config-carbon",
"private": true,
"description": "Jest configuration and preset for Carbon",
"version": "1.7.0",
"version": "1.8.0",
"license": "Apache-2.0",
"main": "index.js",
"repository": {
Expand All @@ -27,13 +27,10 @@
"@babel/preset-env": "^7.18.2",
"@babel/preset-react": "^7.17.12",
"@babel/runtime": "^7.18.3",
"@wojtekmaj/enzyme-adapter-react-17": "^0.8.0",
"accessibility-checker": "^3.1.32",
"axe-core": "^4.3.5",
"babel-jest": "^28.1.0",
"chalk": "^4.1.1",
"enzyme": "^3.11.0",
"enzyme-to-json": "^3.6.2",
"jest-circus": "^28.1.0",
"jest-environment-jsdom": "^28.1.0",
"jest-watch-typeahead": "^1.1.0",
Expand Down
5 changes: 0 additions & 5 deletions config/jest-config-carbon/setup/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@ global.requestAnimationFrame = function requestAnimationFrame(callback) {
callback();
};

const enzyme = jest.requireActual('enzyme');
const Adapter = jest.requireActual('@wojtekmaj/enzyme-adapter-react-17');

enzyme.configure({ adapter: new Adapter() });

if (global.HTMLElement) {
// This is a quirk that we need to bring in due to how our `tabbable` dependency
// determines what nodes are focusable. Without this override, it's unable to
Expand Down
2 changes: 1 addition & 1 deletion docs/release.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ following:
to automatically generate the prerelease versions for packages
- [ ] Specify `minor` as the release type
- [ ] Provide the tag for the release. For example, if the previous release
was `v11.1.0-rc.0` this tag would be `v11.2.0`. To find the previous
was `v11.1.0-rc.0` this tag would be `v11.1.0`. To find the previous
release, view the
[tag list](https://github.com/carbon-design-system/carbon/tags).
- [ ] Review and approve the Pull Request generated from this action
Expand Down
37 changes: 37 additions & 0 deletions e2e/components/ComboButton/ComboButton-test.e2e.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/**
* Copyright IBM Corp. 2023
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/

'use strict';

const { expect, test } = require('@playwright/test');
const { themes } = require('../../test-utils/env');
const { snapshotStory, visitStory } = require('../../test-utils/storybook');

test.describe('ComboButton', () => {
themes.forEach((theme) => {
test.describe(theme, () => {
test('combo-button @vrt', async ({ page }) => {
await snapshotStory(page, {
component: 'ComboButton',
id: 'experimental-unstable-combobutton--default',
theme,
});
});
});
});

test('accessibility-checker @avt', async ({ page }) => {
await visitStory(page, {
component: 'ComboButton',
id: 'experimental-unstable-combobutton--default',
globals: {
theme: 'white',
},
});
await expect(page).toHaveNoACViolations('ComboButton');
});
});
37 changes: 37 additions & 0 deletions e2e/components/MenuButton/MenuButton-test.e2e.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/**
* Copyright IBM Corp. 2023
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/

'use strict';

const { expect, test } = require('@playwright/test');
const { themes } = require('../../test-utils/env');
const { snapshotStory, visitStory } = require('../../test-utils/storybook');

test.describe('MenuButton', () => {
themes.forEach((theme) => {
test.describe(theme, () => {
test('menu-button @vrt', async ({ page }) => {
await snapshotStory(page, {
component: 'MenuButton',
id: 'experimental-unstable-menubutton--default',
theme,
});
});
});
});

test('accessibility-checker @avt', async ({ page }) => {
await visitStory(page, {
component: 'MenuButton',
id: 'experimental-unstable-menubutton--default',
globals: {
theme: 'white',
},
});
await expect(page).toHaveNoACViolations('MenuButton');
});
});
4 changes: 2 additions & 2 deletions examples/class-prefix/package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "class-prefix",
"private": true,
"version": "0.21.0",
"version": "0.22.0",
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
},
"dependencies": {
"@carbon/react": "^1.24.0",
"@carbon/react": "^1.25.0",
"react": "^17.0.0",
"react-dom": "^17.0.0"
},
Expand Down
4 changes: 2 additions & 2 deletions examples/codesandbox-styles/package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"name": "codesandbox-styles",
"private": true,
"version": "0.27.0",
"version": "0.28.0",
"scripts": {
"develop": "vite"
},
"devDependencies": {
"vite": "^2.8.0"
},
"dependencies": {
"@carbon/styles": "^1.24.0",
"@carbon/styles": "^1.25.0",
"sass": "^1.51.0"
}
}
4 changes: 2 additions & 2 deletions examples/codesandbox-with-sass-compilation/package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "codesandbox-with-sass-compilation",
"version": "0.25.0",
"version": "0.26.0",
"private": true,
"dependencies": {
"@carbon/react": "^1.24.0",
"@carbon/react": "^1.25.0",
"react": "^17.0.0",
"react-dom": "^17.0.0"
},
Expand Down
4 changes: 2 additions & 2 deletions examples/codesandbox/package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "codesandbox",
"version": "0.25.0",
"version": "0.26.0",
"private": true,
"dependencies": {
"@carbon/react": "^1.24.0",
"@carbon/react": "^1.25.0",
"react": "^17.0.0",
"react-dom": "^17.0.0"
},
Expand Down
4 changes: 2 additions & 2 deletions examples/custom-theme/package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "custom-theme",
"private": true,
"version": "0.22.0",
"version": "0.23.0",
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
},
"dependencies": {
"@carbon/react": "^1.24.0",
"@carbon/react": "^1.25.0",
"react": "^17.0.0",
"react-dom": "^17.0.0"
},
Expand Down
4 changes: 2 additions & 2 deletions examples/id-prefix/package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "id-prefix",
"private": true,
"version": "0.21.0",
"version": "0.22.0",
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
},
"dependencies": {
"@carbon/react": "^1.24.0",
"@carbon/react": "^1.25.0",
"react": "^17.0.0",
"react-dom": "^17.0.0"
},
Expand Down
4 changes: 2 additions & 2 deletions examples/incremental-migration/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "incremental-migration",
"private": true,
"version": "0.24.0",
"version": "0.25.0",
"scripts": {
"build": "next build",
"dev": "next dev",
Expand All @@ -13,7 +13,7 @@
},
"dependencies": {
"@carbon/icons-react": "^10.49.0",
"@carbon/react": "^1.24.0",
"@carbon/react": "^1.25.0",
"carbon-components": "^10.57.0",
"carbon-components-react": "^7.57.0",
"carbon-icons": "^7.0.7",
Expand Down
4 changes: 2 additions & 2 deletions examples/light-dark-mode/package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"name": "examples-light-dark",
"private": true,
"version": "0.22.0",
"version": "0.23.0",
"scripts": {
"build": "next build",
"dev": "next dev",
"lint": "next lint",
"start": "next start"
},
"dependencies": {
"@carbon/react": "^1.24.0",
"@carbon/react": "^1.25.0",
"next": "12.1.4",
"react": "18.0.0",
"react-dom": "18.0.0"
Expand Down
4 changes: 2 additions & 2 deletions examples/nextjs/package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"name": "examples-nextjs",
"private": true,
"version": "0.24.0",
"version": "0.25.0",
"scripts": {
"build": "next build",
"dev": "next dev",
"lint": "next lint",
"start": "next start"
},
"dependencies": {
"@carbon/react": "^1.24.0",
"@carbon/react": "^1.25.0",
"next": "12.1.4",
"react": "18.0.0",
"react-dom": "18.0.0"
Expand Down
4 changes: 2 additions & 2 deletions examples/vite/package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "vite",
"private": true,
"version": "0.22.0",
"version": "0.23.0",
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
},
"dependencies": {
"@carbon/react": "^1.24.0",
"@carbon/react": "^1.25.0",
"react": "^17.0.0",
"react-dom": "^17.0.0"
},
Expand Down
12 changes: 2 additions & 10 deletions examples/vite/src/index.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
@use '@carbon/react/scss/compat/themes' as compat;
@use '@carbon/react/scss/themes';
@use '@carbon/react/scss/theme' with (
$fallback: compat.$g100,
$theme: themes.$g100
@use '@carbon/react' with (
$font-path: '@ibm/plex'
);
@use '@carbon/react';

:root {
@include theme.theme();
}
6 changes: 3 additions & 3 deletions packages/carbon-components-react/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "carbon-components-react",
"description": "The Carbon Design System is IBM’s open-source design system for products and experiences.",
"version": "8.24.0",
"version": "8.25.0",
"license": "Apache-2.0",
"main": "lib/index.js",
"module": "es/index.js",
Expand Down Expand Up @@ -39,8 +39,8 @@
"sass": "^1.33.0"
},
"dependencies": {
"@carbon/react": "^1.24.0",
"@carbon/styles": "^1.24.0",
"@carbon/react": "^1.25.0",
"@carbon/styles": "^1.25.0",
"@carbon/telemetry": "0.1.0"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/carbon-components/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "carbon-components",
"description": "The Carbon Design System is IBM’s open-source design system for products and experiences.",
"version": "11.24.0",
"version": "11.25.0",
"license": "Apache-2.0",
"repository": {
"type": "git",
Expand Down Expand Up @@ -40,7 +40,7 @@
"sass": "^1.33.0"
},
"dependencies": {
"@carbon/styles": "^1.24.0",
"@carbon/styles": "^1.25.0",
"@carbon/telemetry": "0.1.0"
},
"devDependencies": {
Expand Down
6 changes: 0 additions & 6 deletions packages/react/.storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import './styles.scss';
import '../src/feature-flags';

import { configureActions } from '@storybook/addon-actions';
import { white, g10, g90, g100 } from '@carbon/themes';
import React from 'react';
import { breakpoints } from '@carbon/layout';
Expand Down Expand Up @@ -203,11 +202,6 @@ export const parameters = {
},
};

configureActions({
depth: 3,
limit: 10,
});

export const decorators = [
(Story, context) => {
const { locale, theme } = context.globals;
Expand Down
Loading

0 comments on commit 1a22daf

Please sign in to comment.