Skip to content

Commit 884e352

Browse files
authored
feat: update tooling dependencies (#310)
1 parent b646a62 commit 884e352

55 files changed

Lines changed: 2056 additions & 5669 deletions

Some content is hidden

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

package.json

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,12 @@
6363
"react-image-size": "^2.0.0"
6464
},
6565
"devDependencies": {
66-
"@babel/core": "^7.23.9",
67-
"@babel/eslint-parser": "^7.23.10",
68-
"@babel/plugin-transform-runtime": "^7.23.9",
69-
"@babel/preset-env": "^7.23.9",
70-
"@babel/preset-react": "^7.23.3",
71-
"@babel/runtime": "^7.23.9",
66+
"@babel/core": "^7.26.10",
67+
"@babel/eslint-parser": "^7.26.10",
68+
"@babel/plugin-transform-runtime": "^7.26.10",
69+
"@babel/preset-env": "^7.26.10",
70+
"@babel/preset-react": "^7.26.10",
71+
"@babel/runtime": "^7.26.10",
7272
"@mll-lab/eslint-config": "^3.1.0",
7373
"@mll-lab/eslint-plugin": "^1.3.4",
7474
"@mll-lab/prettier-config": "^1.0.0",
@@ -79,13 +79,13 @@
7979
"@rollup/plugin-typescript": "^11.1.6",
8080
"@semantic-release/changelog": "^6.0.3",
8181
"@semantic-release/git": "^10.0.1",
82-
"@storybook/addon-essentials": "^7.5.3",
83-
"@storybook/addons": "^7.5.3",
84-
"@storybook/react": "^7.5.3",
85-
"@storybook/react-webpack5": "^7.5.3",
82+
"@storybook/addon-essentials": "^8.0.0",
83+
"@storybook/addons": "^7.6.17",
84+
"@storybook/react": "^8.0.0",
85+
"@storybook/react-webpack5": "^8.0.0",
8686
"@storybook/storybook-deployer": "^2.8.16",
8787
"@testing-library/dom": "^9.3.3",
88-
"@testing-library/jest-dom": "^6.1.4",
88+
"@testing-library/jest-dom": "^6.6.4",
8989
"@testing-library/react": "^14.1.2",
9090
"@testing-library/react-hooks": "^8.0.1",
9191
"@testing-library/user-event": "^13.5.0",
@@ -95,7 +95,6 @@
9595
"@types/react": "^18.2.38",
9696
"@types/react-datepicker": "^4.19.3",
9797
"@types/react-dom": "^18.2.17",
98-
"@types/testing-library__jest-dom": "^6.0.0",
9998
"babel-jest": "^29.7.0",
10099
"babel-loader": "^9.1.3",
101100
"babel-plugin-import": "^1.13.8",
@@ -121,18 +120,18 @@
121120
"react-is": "^18.2.0",
122121
"require-from-string": "^2.0.2",
123122
"rimraf": "^6.0.1",
124-
"rollup": "^4.9.6",
123+
"rollup": "^4.22.4",
125124
"rollup-plugin-peer-deps-external": "^2.2.4",
126125
"rollup-plugin-styles": "^4.0.0",
127126
"semantic-release": "^25.0.1",
128-
"storybook": "^7.6.12",
127+
"storybook": "^8.0.0",
129128
"style-loader": "^3.3.3",
130129
"styled-components": "^6.1.1",
131130
"ts-jest": "^29.1.1",
132131
"ts-loader": "^9.5.1",
133132
"ts-node": "^10.9.1",
134133
"typescript": "^5.3.2",
135-
"webpack": "^5.89.0"
134+
"webpack": "^5.97.0"
136135
},
137136
"packageManager": "yarn@4.10.3"
138137
}

src/Alert/index.stories.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Story } from '@storybook/react';
1+
import { StoryFn } from '@storybook/react';
22
import React from 'react';
33

44
import { Alert, AlertProps } from './index';
@@ -21,7 +21,7 @@ export default {
2121
},
2222
};
2323

24-
export const Default: Story<AlertProps> = function Default(args) {
24+
export const Default: StoryFn<AlertProps> = function Default(args) {
2525
return (
2626
<Alert message="Warning Text" type="warning" closable showIcon {...args} />
2727
);

src/Autocomplete/index.stories.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Story } from '@storybook/react';
1+
import { StoryFn } from '@storybook/react';
22
import React from 'react';
33

44
import { toFormInputOption } from '../Form';
@@ -9,7 +9,7 @@ export default {
99
title: 'Autocomplete',
1010
};
1111

12-
export const WithOptions: Story<AutocompleteProps> = function WithOptions(
12+
export const WithOptions: StoryFn<AutocompleteProps> = function WithOptions(
1313
args,
1414
) {
1515
return (

src/Avatar/index.stories.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Story } from '@storybook/react';
1+
import { StoryFn } from '@storybook/react';
22
import { range } from 'lodash';
33
import React from 'react';
44

@@ -15,7 +15,7 @@ export default {
1515
},
1616
};
1717

18-
export const Default: Story<AvatarProps> = function Default(args) {
18+
export const Default: StoryFn<AvatarProps> = function Default(args) {
1919
return (
2020
<Avatar
2121
style={{
@@ -29,12 +29,12 @@ export const Default: Story<AvatarProps> = function Default(args) {
2929
);
3030
};
3131

32-
export const CustomizableUserAvatar: Story<UserAvatarProps> =
32+
export const CustomizableUserAvatar: StoryFn<UserAvatarProps> =
3333
function CustomizableUserAvatar(args) {
3434
return <UserAvatar {...args} />;
3535
};
3636

37-
export const VariableUserAvatars: Story<Omit<UserAvatarProps, 'username'>> =
37+
export const VariableUserAvatars: StoryFn<Omit<UserAvatarProps, 'username'>> =
3838
function VariableUserAvatars(args) {
3939
return (
4040
<>

src/BackTop/index.stories.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { VerticalAlignTopOutlined } from '@ant-design/icons';
2-
import { Story } from '@storybook/react';
2+
import { StoryFn } from '@storybook/react';
33
import React from 'react';
44

55
import { BackTop, BackTopProps } from './index';
@@ -8,7 +8,7 @@ export default {
88
title: 'BackTop',
99
};
1010

11-
export const Default: Story<BackTopProps> = function Default(args) {
11+
export const Default: StoryFn<BackTopProps> = function Default(args) {
1212
return (
1313
<div>
1414
<div style={{ height: '1600px' }}>

src/Badge/index.stories.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { BellOutlined } from '@ant-design/icons';
2-
import { Story } from '@storybook/react';
2+
import { StoryFn } from '@storybook/react';
33
import React from 'react';
44

55
import { Badge, BadgeProps } from './index';
@@ -8,7 +8,7 @@ export default {
88
title: 'Badge',
99
};
1010

11-
export const Default: Story<BadgeProps> = function Default(args) {
11+
export const Default: StoryFn<BadgeProps> = function Default(args) {
1212
return (
1313
<div>
1414
<Badge size="small" count={5} offset={[5, 0]} {...args}>

src/Breadcrumb/index.stories.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { HomeOutlined } from '@ant-design/icons';
2-
import { Story } from '@storybook/react';
2+
import { StoryFn } from '@storybook/react';
33
import React from 'react';
44

55
import { Breadcrumb, BreadcrumbProps } from './index';
@@ -8,7 +8,7 @@ export default {
88
title: 'Breadcrumb',
99
};
1010

11-
export const Default: Story<BreadcrumbProps> = function Default(args) {
11+
export const Default: StoryFn<BreadcrumbProps> = function Default(args) {
1212
return (
1313
<Breadcrumb {...args}>
1414
<Breadcrumb.Item>

src/Button/index.stories.tsx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Story } from '@storybook/react';
1+
import { StoryFn } from '@storybook/react';
22
import React from 'react';
33

44
import {
@@ -36,16 +36,16 @@ export default {
3636
},
3737
};
3838

39-
export const Default: Story<ButtonProps> = function Default(args) {
39+
export const Default: StoryFn<ButtonProps> = function Default(args) {
4040
return <Button {...args}>Default</Button>;
4141
};
42-
export const Create: Story<ButtonProps> = function Create(args) {
42+
export const Create: StoryFn<ButtonProps> = function Create(args) {
4343
return <CreateButton {...args} />;
4444
};
45-
export const Save: Story<ButtonProps> = function Save(args) {
45+
export const Save: StoryFn<ButtonProps> = function Save(args) {
4646
return <SaveButton {...args} />;
4747
};
48-
export const SaveWithHotkey: Story<SaveButtonByNumpadEnterProps> =
48+
export const SaveWithHotkey: StoryFn<SaveButtonByNumpadEnterProps> =
4949
function SaveWithHotkey(args) {
5050
return (
5151
<div>
@@ -56,26 +56,26 @@ export const SaveWithHotkey: Story<SaveButtonByNumpadEnterProps> =
5656
</div>
5757
);
5858
};
59-
export const Info: Story<ButtonProps> = function Info(args) {
59+
export const Info: StoryFn<ButtonProps> = function Info(args) {
6060
return <InfoButton {...args}>Info</InfoButton>;
6161
};
62-
export const Edit: Story<ButtonProps> = function Edit(args) {
62+
export const Edit: StoryFn<ButtonProps> = function Edit(args) {
6363
return <EditButton {...args} />;
6464
};
65-
export const Warning: Story<ButtonProps> = function Warning(args) {
65+
export const Warning: StoryFn<ButtonProps> = function Warning(args) {
6666
return (
6767
<WarningButton {...args}>Do something slightly dangerous</WarningButton>
6868
);
6969
};
70-
export const Cancel: Story<ButtonProps> = function Cancel(args) {
70+
export const Cancel: StoryFn<ButtonProps> = function Cancel(args) {
7171
return <CancelButton {...args} />;
7272
};
73-
export const Reset: Story<ButtonProps> = function Reset(args) {
73+
export const Reset: StoryFn<ButtonProps> = function Reset(args) {
7474
return <ResetButton {...args} />;
7575
};
76-
export const Delete: Story<ButtonProps> = function Delete(args) {
76+
export const Delete: StoryFn<ButtonProps> = function Delete(args) {
7777
return <DeleteButton {...args} />;
7878
};
79-
export const Send: Story<ButtonProps> = function Send(args) {
79+
export const Send: StoryFn<ButtonProps> = function Send(args) {
8080
return <SendButton {...args} />;
8181
};

src/Card/index.stories.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Story } from '@storybook/react';
1+
import { StoryFn } from '@storybook/react';
22
import React from 'react';
33

44
import { THEME } from '../theme';
@@ -9,23 +9,23 @@ export default {
99
title: 'Card',
1010
};
1111

12-
export const Default: Story<CardProps> = function Default(args) {
12+
export const Default: StoryFn<CardProps> = function Default(args) {
1313
return (
1414
<Card title="Default size card" {...args}>
1515
<p>Card content</p>
1616
</Card>
1717
);
1818
};
1919

20-
export const InnerCard: Story<CardProps> = function InnerCard(args) {
20+
export const InnerCard: StoryFn<CardProps> = function InnerCard(args) {
2121
return (
2222
<Card type="inner" title="Inner Card title" extra="Extra content" {...args}>
2323
Inner Card content
2424
</Card>
2525
);
2626
};
2727

28-
export const TabsCard: Story<CardProps> = function TabsCard(args) {
28+
export const TabsCard: StoryFn<CardProps> = function TabsCard(args) {
2929
return (
3030
<Card
3131
title="Card with Tabs"
@@ -51,7 +51,7 @@ const gridStyle = {
5151
width: '25%',
5252
};
5353

54-
export const CardsGrid: Story<CardProps> = function CardsGrid(args) {
54+
export const CardsGrid: StoryFn<CardProps> = function CardsGrid(args) {
5555
return (
5656
<Card title="Cards Grid" {...args} style={{ width: 400 }}>
5757
<Card.Grid style={gridStyle}>Content</Card.Grid>
@@ -63,15 +63,15 @@ export const CardsGrid: Story<CardProps> = function CardsGrid(args) {
6363
);
6464
};
6565

66-
export const CardMeta: Story<CardProps> = function CardMeta(args) {
66+
export const CardMeta: StoryFn<CardProps> = function CardMeta(args) {
6767
return (
6868
<Card hoverable style={{ width: 240 }} cover="Some cover" {...args}>
6969
<Card.Meta title="Europe Street beat" description="www.google.com" />
7070
</Card>
7171
);
7272
};
7373

74-
export const CardOnColoredBackground: Story<CardProps> =
74+
export const CardOnColoredBackground: StoryFn<CardProps> =
7575
function CardOnColoredBackground(args) {
7676
return (
7777
<div style={{ background: THEME.backgroundColor, padding: 20 }}>

src/Checkbox/index.stories.tsx

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Story } from '@storybook/react';
1+
import { StoryFn } from '@storybook/react';
22
import React from 'react';
33

44
import { Form } from '../Form';
@@ -9,25 +9,24 @@ export default {
99
title: 'Checkbox',
1010
};
1111

12-
export const Default: Story<CheckboxProps> = function Default(args) {
12+
export const Default: StoryFn<CheckboxProps> = function Default(args) {
1313
return (
1414
<Checkbox defaultChecked {...args}>
1515
Checkbox
1616
</Checkbox>
1717
);
1818
};
1919

20-
export const DisabledCheckbox: Story<CheckboxProps> = function DisabledCheckbox(
21-
args,
22-
) {
23-
return (
24-
<Checkbox defaultChecked disabled {...args}>
25-
Checkbox
26-
</Checkbox>
27-
);
28-
};
20+
export const DisabledCheckbox: StoryFn<CheckboxProps> =
21+
function DisabledCheckbox(args) {
22+
return (
23+
<Checkbox defaultChecked disabled {...args}>
24+
Checkbox
25+
</Checkbox>
26+
);
27+
};
2928

30-
export const IndeterminateCheckbox: Story<CheckboxProps> =
29+
export const IndeterminateCheckbox: StoryFn<CheckboxProps> =
3130
function IndeterminateCheckbox(args) {
3231
return (
3332
<Checkbox indeterminate {...args}>
@@ -36,11 +35,13 @@ export const IndeterminateCheckbox: Story<CheckboxProps> =
3635
);
3736
};
3837

39-
export const WithoutLabel: Story<CheckboxProps> = function WithoutLabel(args) {
38+
export const WithoutLabel: StoryFn<CheckboxProps> = function WithoutLabel(
39+
args,
40+
) {
4041
return <Checkbox defaultChecked {...args} />;
4142
};
4243

43-
export const WithFormLabel: Story<CheckboxProps> = function WithFormLabel(
44+
export const WithFormLabel: StoryFn<CheckboxProps> = function WithFormLabel(
4445
args,
4546
) {
4647
return (

0 commit comments

Comments
 (0)