Skip to content
This repository was archived by the owner on Mar 21, 2025. It is now read-only.

Commit 2b764dd

Browse files
author
Andy Wilson
committed
fix: update to yarn 4
1 parent 7508b6d commit 2b764dd

File tree

222 files changed

+1490
-7956
lines changed

Some content is hidden

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

222 files changed

+1490
-7956
lines changed

.pnp.cjs

Lines changed: 1033 additions & 3458 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
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.

package.json

Lines changed: 1 addition & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -28,57 +28,8 @@
2828
"prepare": "husky install"
2929
},
3030
"devDependencies": {
31-
"eslint-plugin-prettier": "5.0.0",
3231
"husky": "8.0.3",
33-
"lerna": "7.1.5",
34-
"prettier": "3.0.1"
35-
},
36-
"prettier": {
37-
"printWidth": 80,
38-
"semi": true,
39-
"singleQuote": true,
40-
"trailingComma": "es5"
41-
},
42-
"eslintConfig": {
43-
"extends": [
44-
"plugin:import/errors",
45-
"plugin:import/warnings",
46-
"plugin:import/typescript"
47-
],
48-
"plugins": [
49-
"import"
50-
],
51-
"parserOptions": {
52-
"sourceType": "module",
53-
"ecmaVersion": "latest",
54-
"ecmaFeatures": {
55-
"jsx": true,
56-
"modules": true
57-
}
58-
},
59-
"rules": {
60-
"@typescript-eslint/no-empty-function": "off",
61-
"import/no-unresolved": "off",
62-
"import/no-named-as-default": "off",
63-
"import/no-anonymous-default-export": "off",
64-
"import/order": [
65-
"error",
66-
{
67-
"groups": [
68-
"builtin",
69-
"external",
70-
"parent",
71-
"sibling",
72-
"index"
73-
],
74-
"newlines-between": "always",
75-
"alphabetize": {
76-
"order": "asc",
77-
"caseInsensitive": true
78-
}
79-
}
80-
]
81-
}
32+
"lerna": "7.1.5"
8233
},
8334
"packageManager": "[email protected]"
8435
}

packages/components/package.json

Lines changed: 28 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,11 @@
6363
}
6464
},
6565
"devDependencies": {
66+
"@babel/core": "^7.22.11",
6667
"@babel/preset-env": "7.22.10",
6768
"@babel/preset-react": "7.22.5",
6869
"@babel/preset-typescript": "7.22.11",
70+
"@jest/globals": "29.1.1",
6971
"@size-limit/file": "8.2.6",
7072
"@storybook/addon-essentials": "7.2.3",
7173
"@storybook/addon-interactions": "7.2.3",
@@ -78,21 +80,34 @@
7880
"@storybook/react-webpack5": "7.2.3",
7981
"@storybook/testing-library": "0.2.0",
8082
"@techstack/tcm-cli": "workspace:*",
81-
"@testing-library/react": "14.0.0",
83+
"@testing-library/react": "^14.0.0",
8284
"@tsconfig/create-react-app": "2.0.1",
8385
"@tsconfig/recommended": "1.0.2",
86+
"@types/jest": "^29.5.4",
87+
"@types/node": "^20.5.6",
88+
"@types/react": "^18.2.21",
8489
"@types/react-dom": "18.2.7",
90+
"@typescript-eslint/eslint-plugin": "^6.4.1",
91+
"@typescript-eslint/parser": "^6.4.1",
8592
"chromatic": "6.24.0",
8693
"cross-env": "7.0.3",
87-
"eslint-plugin-import": "2.28.0",
94+
"eslint": "^8.47.0",
95+
"eslint-config-prettier": "9.0.0",
96+
"eslint-plugin-import": "2.28.1",
97+
"eslint-plugin-prettier": "^5.0.0",
98+
"eslint-plugin-react": "7.33.2",
8899
"esm": "3.2.25",
89-
"react": "18.2.0",
90-
"react-dom": "18.2.0",
100+
"jest": "29.1.1",
101+
"jest-environment-jsdom": "29.1.1",
102+
"jest-watch-typeahead": "2.2.2",
103+
"prettier": "3.0.2",
104+
"react-dom": "^18.2.0",
91105
"react-is": "18.2.0",
92106
"sass": "1.66.1",
93107
"sass-loader": "13.3.2",
94108
"size-limit": "8.2.6",
95109
"storybook": "7.2.3",
110+
"ts-jest": "29.1.1",
96111
"tslib": "2.6.2",
97112
"typescript": "5.2.2",
98113
"webpack": "5.88.2"
@@ -101,22 +116,29 @@
101116
"@emotion/is-prop-valid": "1.2.1",
102117
"@tanstack/react-table": "8.9.3",
103118
"@techstack/memoize": "workspace:*",
119+
"@techstack/react-feather": "workspace:*",
120+
"@techstack/react-lazy-named": "workspace:*",
104121
"@techstack/styled-system": "1.0.78",
105122
"@techstack/theme": "workspace:*",
106123
"@types/react-table": "7.7.14",
107124
"classnames": "2.3.2",
108-
"csstype": "3.1.2",
125+
"csstype": "^3.1.2",
109126
"deepmerge": "4.3.1",
110127
"i18next": "23.4.4",
128+
"react": "^18.2.0",
111129
"react-date-picker": "10.5.0",
112130
"react-datetime-picker": "5.5.1",
113131
"react-i18next": "13.2.0",
114-
"react-lazy-named": "1.2.2",
115132
"react-responsive-carousel": "3.2.23",
116133
"react-table": "7.8.0",
117134
"react-virtual": "2.10.4",
118135
"styled-components": "6.0.7"
119136
},
137+
"eslintConfig": {
138+
"rules": {
139+
"import/no-unresolved": "off"
140+
}
141+
},
120142
"gitHead": "7bb2bc7bbce0432773369ca533adf6d1719e877a",
121143
"browser": {
122144
"./node_modules/@storybook/client-api": "./node_modules/@storybook/client-api/dist/cjs/index.js",
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Avatar, { Props as AvatarProps } from './Avatar';
1+
import { Avatar, Props as AvatarProps } from './Avatar';
22

33
export default Avatar;
44
export { Avatar, AvatarProps };

packages/components/src/atoms/button/__test__/index.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { act, screen, waitFor } from '@testing-library/react';
22

33
import { mountWithTheme } from '../../../test-tools';
4-
import Button from '../index';
4+
import { Button } from '../index';
55

66
describe('<Button />', () => {
77
it('renders default correctly', () => {

packages/components/src/atoms/button/story.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Button from './index';
1+
import { Button } from './index';
22

33
export default {
44
title: 'Components / Atoms / Button',

packages/components/src/atoms/button/styled.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { variant } from '@techstack/styled-system';
22

33
import { Interactable, StyledBoxProps } from '../../primal';
4-
import styled from '../../workarounds/styled-components';
4+
import { default as styled } from '../../workarounds/styled-components';
55

66
export const iconMargins = {
77
left: {

packages/components/src/atoms/card/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { default as CardAction, Props as CardActionProps } from './Actions';
2-
import Card, { Props as CardProps } from './Card';
2+
import { Card, Props as CardProps } from './Card';
33
import { default as CardContent, Props as CardContentProps } from './Content';
44

55
export {

packages/components/src/atoms/card/story.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Meta } from '@storybook/react';
22

3-
import Button from '../button';
3+
import { Button } from '../button';
44

55
import { Card } from './Card';
66

packages/components/src/atoms/divider/__test__/index.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { mountWithTheme } from '../../../test-tools';
2-
import Divider from '../index';
2+
import { Divider } from '../index';
33

44
describe('<Divider />', () => {
55
it('renders correctly', () => {

packages/components/src/atoms/divider/story.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Divider from './index';
1+
import { Divider } from './index';
22

33
export default {
44
title: 'Components / Atoms / Divider',

packages/components/src/atoms/divider/styled.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { StyledBoxProps } from '../../primal';
2-
import styled from '../../workarounds/styled-components';
2+
import { default as styled } from '../../workarounds/styled-components';
33

44
export const StyledHr = styled.hr`
55
${StyledBoxProps}

packages/components/src/atoms/grid/__test__/index.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { mountWithTheme } from '../../../test-tools';
2-
import Grid, { Cell } from '../index';
2+
import { Grid, Cell } from '../index';
33

44
describe('<Grid />', () => {
55
it('renders correctly', () => {

packages/components/src/atoms/grid/story.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Grid, { Cell } from './index';
1+
import { Grid, Cell } from './index';
22

33
export default {
44
title: 'Components / Atoms / Grid',

packages/components/src/atoms/grid/styled.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { grid } from '@techstack/styled-system';
22

33
import { Box } from '../../primal';
4-
import styled from '../../workarounds/styled-components';
4+
import { default as styled } from '../../workarounds/styled-components';
55

66
export const StyledGrid = styled(Box)`
77
${grid}

packages/components/src/atoms/input/Input.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { ThemeContext } from 'styled-components';
1010
import { BoxProps } from '../../primal';
1111
import { DefaultThemeWithDefaultStyles } from '../../utils';
1212

13-
import Checkbox from './checkbox';
13+
import { Checkbox } from './checkbox';
1414
import { StyledInput, StyledTextArea } from './styled';
1515
import { InputPropsUnion } from './types';
1616

packages/components/src/atoms/input/__test__/index.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { mountWithTheme } from '../../../test-tools';
2-
import Input from '../index';
2+
import { Input } from '../index';
33

44
describe('<Input />', () => {
55
it('renders correctly', () => {

packages/components/src/atoms/input/checkbox/__test__/index.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { waitFor, screen, act } from '@testing-library/react';
22

33
import { mountWithTheme } from '../../../../test-tools';
4-
import Checkbox from '../index';
4+
import { Checkbox } from '../index';
55

66
describe('<Checkbox />', () => {
77
it('renders correctly no icon', () => {

packages/components/src/atoms/input/story.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Input from './index';
1+
import { Input } from './index';
22

33
export default {
44
title: 'Components / Atoms / Input',

packages/components/src/atoms/input/styled.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { StyledBoxProps } from '../../primal';
2-
import styled from '../../workarounds/styled-components';
2+
import { default as styled } from '../../workarounds/styled-components';
33

44
export const StyledInput = styled.input`
55
${StyledBoxProps}

packages/components/src/atoms/table/Table.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
import { FC, useRef, useState } from 'react';
1010
import { useVirtual } from 'react-virtual';
1111

12-
import Button from '../button';
12+
import { Button } from '../button';
1313

1414
import {
1515
StyledTable,

packages/components/src/atoms/table/__test__/index.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { mountWithTheme } from '../../../test-tools';
2-
import Table from '../index';
2+
import { Table } from '../index';
33

44
describe('<Table />', () => {
55
it('should render correctly', () => {

packages/components/src/atoms/table/story.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Table from './index';
1+
import { Table } from './index';
22

33
export default {
44
title: 'Components / Atoms / Table',

packages/components/src/atoms/table/styled.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { StyledBoxProps } from '../../primal';
2-
import styled from '../../workarounds/styled-components';
2+
import { default as styled } from '../../workarounds/styled-components';
33

44
export const StyledTable = styled.table`
55
${StyledBoxProps}

packages/components/src/molecules/accordion/story.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Accordion from './index';
1+
import { Accordion } from './index';
22

33
export default {
44
title: 'Components / Molecules / Accordion',

packages/components/src/molecules/accordion/styled.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { StyledBox, Box } from '../../primal';
2-
import styled from '../../workarounds/styled-components';
2+
import { default as styled } from '../../workarounds/styled-components';
33

44
export const StyledAccordion = styled(Box)<{
55
open: boolean;

packages/components/src/molecules/buttonGroup/story.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Button } from '../../atoms';
22

3-
import ButtonGroup from './index';
3+
import { ButtonGroup } from './index';
44

55
export default {
66
title: 'Components / Molecules / ButtonGroup',

packages/components/src/molecules/buttonGroup/styled.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Box } from '../../primal';
2-
import styled from '../../workarounds/styled-components';
2+
import { default as styled } from '../../workarounds/styled-components';
33

44
export const StyledBox = styled(Box)`
55
button {

packages/components/src/molecules/carousel/story.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Meta } from '@storybook/react';
22

3-
import Carousel from './';
3+
import { Carousel } from './';
44

55
export default {
66
title: 'Components / Molecules / Carousel',

packages/components/src/molecules/carousel/styled.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Box } from '../../primal';
2-
import styled from '../../workarounds/styled-components';
2+
import { default as styled } from '../../workarounds/styled-components';
33

44
export const StyledCarousel = styled(Box)`
55
.carousel-root,

packages/components/src/primal/box/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Box, { Props as BoxProps } from './Box';
1+
import { default as Box, Props as BoxProps } from './Box';
22
import { StyledBox, StyledBoxProps } from './styled';
33

44
export { Box, BoxProps, StyledBox, StyledBoxProps };

packages/components/src/primal/box/story.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Meta } from '@storybook/react';
22

3-
import Box from './Box';
3+
import { Box } from './Box';
44

55
export default {
66
title: 'Components / Primal / Box',

packages/components/src/primal/box/styled.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {
1515
} from '@techstack/styled-system';
1616

1717
import { shouldForwardProp } from '../../utils';
18-
import styled from '../../workarounds/styled-components';
18+
import { default as styled } from '../../workarounds/styled-components';
1919

2020
const utilProps = system({
2121
visibility: {

packages/components/src/primal/editor/Editor.tsx

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)