-
Notifications
You must be signed in to change notification settings - Fork 823
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into perf/tooltip
- Loading branch information
Showing
249 changed files
with
13,218 additions
and
13,181 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# Add the following users as reviewers on new pull requests | ||
|
||
* @benoitgrelard @jjenzz @andy-hook | ||
* @StephenHaney @vladmoroz @lucasmotta @hadihallak @chaance |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
16.17.0 | ||
18 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
import type { StorybookConfig } from '@storybook/react-webpack5'; | ||
import path from 'path'; | ||
|
||
const config: StorybookConfig = { | ||
stories: ['../packages/core/**/*.stories.tsx', '../packages/react/**/*.stories.tsx'], | ||
addons: [ | ||
getAbsolutePath('@storybook/addon-essentials'), | ||
getAbsolutePath('@storybook/addon-storysource'), | ||
], | ||
framework: { | ||
name: getAbsolutePath('@storybook/react-webpack5'), | ||
options: { | ||
builder: { | ||
useSWC: true, | ||
}, | ||
// enable React strict mode | ||
strictMode: true, | ||
}, | ||
}, | ||
swc: () => ({ | ||
jsc: { | ||
transform: { | ||
react: { | ||
// Do not require importing React into scope to use JSX | ||
runtime: 'automatic', | ||
}, | ||
}, | ||
}, | ||
}), | ||
|
||
// we need to add aliases to webpack so it knows how to follow | ||
// to the source of the packages rather than the built version (dist) | ||
webpackFinal: async (config) => ({ | ||
...config, | ||
resolve: { | ||
...config.resolve, | ||
alias: { | ||
...config.resolve.alias, | ||
...convertTsConfigPathsToWebpackAliases(), | ||
}, | ||
}, | ||
}), | ||
}; | ||
|
||
export default config; | ||
|
||
/** | ||
* This function is used to resolve the absolute path of a package. | ||
* It is needed in projects that use Yarn PnP or are set up within a monorepo. | ||
*/ | ||
function getAbsolutePath(value: string): any { | ||
return path.dirname(require.resolve(path.join(value, 'package.json'))); | ||
} | ||
|
||
function convertTsConfigPathsToWebpackAliases() { | ||
const rootDir = path.resolve(__dirname, '../'); | ||
const tsconfig = require('../tsconfig.json'); | ||
const tsconfigPaths: Array<string | string[]> = Object.entries(tsconfig.compilerOptions.paths); | ||
|
||
return tsconfigPaths.reduce((aliases, [realPath, mappedPath]) => { | ||
aliases[realPath] = path.join(rootDir, mappedPath[0]); | ||
return aliases; | ||
}, {}); | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { addons } from '@storybook/manager-api'; | ||
import { themes } from '@storybook/theming'; | ||
|
||
addons.setConfig({ | ||
enableShortcuts: false, | ||
theme: themes.light, | ||
}); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import type { Preview } from '@storybook/react'; | ||
|
||
const preview: Preview = { | ||
parameters: { | ||
// This should work after upgrading to Storybook 7.6 but doesn't. | ||
// I am leaving it commented out here so we can fix it one day. | ||
// | ||
// options: { | ||
// storySort: { | ||
// order: ['Components', 'Utilities'], | ||
// }, | ||
// }, | ||
|
||
// disables Chromatic on a global level | ||
chromatic: { disable: true }, | ||
}, | ||
}; | ||
|
||
export default preview; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
releases: | ||
"@radix-ui/react-avatar": patch | ||
|
||
declined: | ||
- primitives |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
releases: | ||
"@radix-ui/react-focus-guards": patch | ||
|
||
declined: | ||
- primitives | ||
- "@radix-ui/react-dialog" | ||
- "@radix-ui/react-menu" | ||
- "@radix-ui/react-popover" | ||
- "@radix-ui/react-select" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
releases: | ||
"@radix-ui/react-alert-dialog": patch | ||
"@radix-ui/react-context-menu": patch | ||
"@radix-ui/react-dialog": patch | ||
"@radix-ui/react-dropdown-menu": patch | ||
"@radix-ui/react-hover-card": patch | ||
"@radix-ui/react-menu": patch | ||
"@radix-ui/react-menubar": patch | ||
"@radix-ui/react-popover": patch | ||
"@radix-ui/react-portal": patch | ||
"@radix-ui/react-select": patch | ||
"@radix-ui/react-toast": patch | ||
"@radix-ui/react-tooltip": patch | ||
|
||
declined: | ||
- primitives |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
releases: | ||
"@radix-ui/react-accordion": patch | ||
"@radix-ui/react-alert-dialog": patch | ||
"@radix-ui/react-checkbox": patch | ||
"@radix-ui/react-collapsible": patch | ||
"@radix-ui/react-context-menu": patch | ||
"@radix-ui/react-dialog": patch | ||
"@radix-ui/react-dropdown-menu": patch | ||
"@radix-ui/react-hover-card": patch | ||
"@radix-ui/react-menu": patch | ||
"@radix-ui/react-menubar": patch | ||
"@radix-ui/react-navigation-menu": patch | ||
"@radix-ui/react-popover": patch | ||
"@radix-ui/react-presence": patch | ||
"@radix-ui/react-radio-group": patch | ||
"@radix-ui/react-scroll-area": patch | ||
"@radix-ui/react-tabs": patch | ||
"@radix-ui/react-toast": patch | ||
"@radix-ui/react-tooltip": patch | ||
|
||
declined: | ||
- primitives |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
releases: | ||
"@radix-ui/react-alert-dialog": patch | ||
"@radix-ui/react-context-menu": patch | ||
"@radix-ui/react-dialog": patch | ||
"@radix-ui/react-dismissable-layer": patch | ||
"@radix-ui/react-dropdown-menu": patch | ||
"@radix-ui/react-hover-card": patch | ||
"@radix-ui/react-menu": patch | ||
"@radix-ui/react-menubar": patch | ||
"@radix-ui/react-navigation-menu": patch | ||
"@radix-ui/react-popover": patch | ||
"@radix-ui/react-select": patch | ||
"@radix-ui/react-toast": patch | ||
"@radix-ui/react-tooltip": patch | ||
|
||
declined: | ||
- primitives |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
declined: | ||
- primitives |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
releases: | ||
"@radix-ui/react-select": patch | ||
|
||
declined: | ||
- primitives |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
releases: | ||
"@radix-ui/react-checkbox": patch | ||
|
||
declined: | ||
- primitives |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
releases: | ||
"@radix-ui/react-scroll-area": minor | ||
|
||
declined: | ||
- primitives | ||
- ssr-testing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
releases: | ||
"@radix-ui/react-context": patch | ||
|
||
declined: | ||
- primitives | ||
- "@radix-ui/react-accordion" | ||
- "@radix-ui/react-alert-dialog" | ||
- "@radix-ui/react-avatar" | ||
- "@radix-ui/react-checkbox" | ||
- "@radix-ui/react-collapsible" | ||
- "@radix-ui/react-collection" | ||
- "@radix-ui/react-context-menu" | ||
- "@radix-ui/react-dialog" | ||
- "@radix-ui/react-dropdown-menu" | ||
- "@radix-ui/react-form" | ||
- "@radix-ui/react-hover-card" | ||
- "@radix-ui/react-menu" | ||
- "@radix-ui/react-menubar" | ||
- "@radix-ui/react-navigation-menu" | ||
- "@radix-ui/react-popover" | ||
- "@radix-ui/react-popper" | ||
- "@radix-ui/react-progress" | ||
- "@radix-ui/react-radio-group" | ||
- "@radix-ui/react-roving-focus" | ||
- "@radix-ui/react-scroll-area" | ||
- "@radix-ui/react-select" | ||
- "@radix-ui/react-slider" | ||
- "@radix-ui/react-switch" | ||
- "@radix-ui/react-tabs" | ||
- "@radix-ui/react-toast" | ||
- "@radix-ui/react-toggle-group" | ||
- "@radix-ui/react-toolbar" | ||
- "@radix-ui/react-tooltip" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
releases: | ||
"@radix-ui/react-select": patch | ||
|
||
declined: | ||
- primitives |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
releases: | ||
"@radix-ui/react-select": patch | ||
|
||
declined: | ||
- primitives |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
releases: | ||
"@radix-ui/react-select": patch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.