Skip to content

Commit 7e450d3

Browse files
committed
Merge remote-tracking branch 'origin' into field-wrapper-migration
2 parents 6c0a572 + 3ffc1b5 commit 7e450d3

File tree

212 files changed

+8964
-6253
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

212 files changed

+8964
-6253
lines changed

.eslintrc.js

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// @ts-check
2-
31
module.exports = /** @type {import('eslint').Linter.Config} */ ({
42
extends: [
53
'prettier',
@@ -96,5 +94,17 @@ module.exports = /** @type {import('eslint').Linter.Config} */ ({
9694
'react/prop-types': 'off',
9795
},
9896
},
97+
{
98+
files: ['*.ts', '*.tsx'],
99+
rules: {
100+
'@typescript-eslint/no-explicit-any': 'off',
101+
102+
'react/prop-types': 'off',
103+
'react-hooks/exhaustive-deps': 'off',
104+
'react/boolean-prop-naming': 'off',
105+
'@typescript-eslint/ban-ts-comment': 'off',
106+
'@typescript-eslint/ban-types': 'off',
107+
},
108+
},
99109
],
100110
});

.github/workflows/main.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ on:
77

88
concurrency: ${{ github.workflow }}-${{ github.ref }}
99

10+
permissions:
11+
contents: write # Read-only access to repository contents
12+
issues: write # Write access to issues
13+
pull-requests: write # Write access to pull requests
14+
statuses: write # Write access to commit statuses
15+
1016
jobs:
1117
publish:
1218
runs-on: ubuntu-latest
@@ -83,7 +89,6 @@ jobs:
8389
id: publish_chromatic
8490
uses: chromaui/action@v1
8591
with:
86-
onlyChanged: true
8792
exitZeroOnChanges: true
8893
exitOnceUploaded: true
8994
autoAcceptChanges: true

.github/workflows/pull-request.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ concurrency:
99
group: ci-pull-request=${{github.ref}}-1
1010
cancel-in-progress: true
1111

12+
permissions:
13+
contents: read # Read-only access to repository contents
14+
issues: write # Write access to issues
15+
pull-requests: write # Write access to pull requests
16+
statuses: write # Write access to commit statuses
17+
1218
jobs:
1319
build:
1420
name: 'Build & canary release'
@@ -143,7 +149,6 @@ jobs:
143149
with:
144150
exitZeroOnChanges: true
145151
exitOnceUploaded: true
146-
onlyChanged: true
147152
debug: true
148153
token: ${{ secrets.GITHUB_TOKEN }}
149154
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}

.github/workflows/size-limit.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ concurrency:
99
group: ci-size-limit=${{github.ref}}-1
1010
cancel-in-progress: true
1111

12+
permissions:
13+
contents: read # Read-only access to repository contents
14+
issues: write # Write access to issues
15+
pull-requests: write # Write access to pull requests
16+
statuses: write # Write access to commit statuses
17+
1218
jobs:
1319
size-limit:
1420
name: 'Measure size of the library'
@@ -38,7 +44,7 @@ jobs:
3844
run: pnpm build
3945

4046
- name: Download baseline stats
41-
uses: dawidd6/action-download-artifact@v2
47+
uses: dawidd6/action-download-artifact@v4
4248
if: github.event.number
4349
with:
4450
workflow: size-limit.yml
@@ -54,7 +60,7 @@ jobs:
5460
run: echo '${{ steps.measure_size.outputs.result }}' > ./size-limit-report/output.json
5561

5662
- name: Upload stats
57-
uses: actions/upload-artifact@v2
63+
uses: actions/upload-artifact@v4
5864
with:
5965
name: size-limit-report
6066
path: ${{ env.REPORT_FOLDER }}

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v16
1+
18.19.1

.size-limit.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,20 @@ module.exports = [
1919
}),
2020
);
2121
},
22-
limit: '215kB',
22+
limit: '225kB',
2323
},
2424
{
2525
name: 'Tree shaking (just a Button)',
2626
path: './dist/es/index.js',
2727
webpack: true,
2828
import: '{ Button }',
29-
limit: '29 kB',
29+
limit: '36 kB',
30+
},
31+
{
32+
name: 'Tree shaking (just an Icon)',
33+
path: './dist/es/index.js',
34+
webpack: true,
35+
import: '{ AiIcon }',
36+
limit: '25 kB',
3037
},
3138
];

.storybook/main.js

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,23 @@
33
/** @type {import('@storybook/core-common').StorybookConfig} */
44
const config = {
55
staticDirs: ['../public'],
6+
67
framework: {
78
name: '@storybook/react-vite',
89
options: {},
910
},
11+
1012
features: {
1113
postcss: false,
1214
emotionAlias: false,
1315
buildStoriesJson: true,
1416
interactionsDebugger: true,
15-
argTypeTargetsV7: true,
16-
storyStoreV7: true,
17+
argTypeTargetsV7: false,
1718
modernInlineRender: true,
1819
},
20+
1921
stories: ['../src/**/*.stories.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'],
22+
2023
addons: [
2124
'@storybook/addon-links',
2225
'@storybook/addon-essentials',
@@ -30,8 +33,9 @@ const config = {
3033
},
3134
},
3235
],
33-
// docs: {
34-
// autodocs: true,
35-
// },
36+
37+
docs: {
38+
autodocs: true,
39+
},
3640
};
3741
export default config;

.storybook/preview.jsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { DocsContainer } from '@storybook/addon-docs';
2-
import { configure } from '@storybook/testing-library';
2+
import { configure } from '@storybook/test';
33
import isChromatic from 'chromatic/isChromatic';
44
import { config } from 'react-transition-group';
55
import { Root } from '../src';
@@ -19,7 +19,6 @@ export const parameters = {
1919
</DocsContainer>
2020
),
2121
},
22-
actions: { argTypesRegex: '^on[A-Z].*' },
2322
backgrounds: {
2423
default: 'transparent',
2524
values: [

0 commit comments

Comments
 (0)