Skip to content

Commit 18bf9cf

Browse files
feat(ariakit): ✨ update the core library to v2 (#326)
1 parent a0cf957 commit 18bf9cf

File tree

469 files changed

+8232
-25319
lines changed

Some content is hidden

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

469 files changed

+8232
-25319
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,4 @@ __js
5757
templates
5858
docs
5959
CHANGELOG.md
60+
.yalc

.husky/post-checkout

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh
2+
command -v git-lfs >/dev/null 2>&1 || { echo >&2 "\nThis repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting '.git/hooks/post-checkout'.\n"; exit 2; }
3+
git lfs post-checkout "$@"

.husky/post-commit

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh
2+
command -v git-lfs >/dev/null 2>&1 || { echo >&2 "\nThis repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting '.git/hooks/post-commit'.\n"; exit 2; }
3+
git lfs post-commit "$@"

.husky/post-merge

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh
2+
command -v git-lfs >/dev/null 2>&1 || { echo >&2 "\nThis repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting '.git/hooks/post-merge'.\n"; exit 2; }
3+
git lfs post-merge "$@"

.husky/pre-push

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh
2+
command -v git-lfs >/dev/null 2>&1 || { echo >&2 "\nThis repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting '.git/hooks/pre-push'.\n"; exit 2; }
3+
git lfs pre-push "$@"

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,4 @@ __js
5757
templates
5858
docs
5959
CHANGELOG.md
60+
.yalc

.storybook/preview.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export const decorators = [
1616
(Story, context) => {
1717
document.body.id = kebabCase(context.kind);
1818
document.body.classList.add("font-sans");
19+
document.body.classList.add("antialiased");
1920

2021
return <Story />;
2122
},

package.json

Lines changed: 59 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,8 @@
3737
],
3838
"scripts": {
3939
"postinstall": "concurrently \"husky install\" \"patch-package\"",
40-
"boot": "concurrently \"yarn keys\" \"yarn previews\"",
41-
"keys": "node scripts/builds/keys",
4240
"previews": "node scripts/builds/create-previews.js",
43-
"storybook": "cross-env TAILWIND_MODE=watch start-storybook -p 6006",
41+
"storybook": "yarn previews && cross-env TAILWIND_MODE=watch start-storybook -p 6006",
4442
"test": "jest --config ./jest.config.ts --no-cache",
4543
"lint": "eslint --color --ext .js,.jsx,.ts,.tsx .",
4644
"lint:fix": "eslint --color --ext .js,.jsx,.ts,.tsx . --fix",
@@ -86,41 +84,52 @@
8684
]
8785
},
8886
"dependencies": {
89-
"@chakra-ui/counter": "^1.2.5",
90-
"@chakra-ui/hooks": "^1.8.2",
91-
"@chakra-ui/react-utils": "^1.2.2",
92-
"@chakra-ui/utils": "^1.10.2",
93-
"@radix-ui/popper": "^0.1.0",
94-
"@radix-ui/react-use-rect": "^0.1.1",
95-
"@radix-ui/react-use-size": "^0.1.0",
96-
"@react-aria/i18n": "^3.3.5",
97-
"@react-aria/slider": "^3.0.4",
98-
"@react-aria/spinbutton": "^3.0.2",
99-
"@react-aria/utils": "^3.11.1",
100-
"@react-stately/slider": "^3.0.4",
101-
"@react-types/slider": "^3.0.3",
87+
"@chakra-ui/react-utils": "^1.2.3",
88+
"@chakra-ui/utils": "^1.10.4",
89+
"@internationalized/date": "3.0.0-rc.0",
90+
"@react-aria/button": "^3.4.4",
91+
"@react-aria/calendar": "3.0.0-rc.0",
92+
"@react-aria/datepicker": "3.0.0-rc.0",
93+
"@react-aria/i18n": "^3.3.9",
94+
"@react-aria/numberfield": "^3.1.6",
95+
"@react-aria/slider": "^3.0.8",
96+
"@react-aria/spinbutton": "^3.0.6",
97+
"@react-aria/utils": "^3.12.0",
98+
"@react-stately/calendar": "3.0.0-rc.0",
99+
"@react-stately/datepicker": "3.0.0-rc.0",
100+
"@react-stately/numberfield": "^3.0.7",
101+
"@react-stately/slider": "^3.0.8",
102+
"ariakit": "2.0.0-next.26",
103+
"ariakit-utils": "0.17.0-next.18",
102104
"date-fns": "^2.28.0",
103105
"raf": "^3.4.1",
104-
"react-remove-scroll": "^2.4.4",
106+
"react-remove-scroll": "^2.5.3",
105107
"reakit-system": "^0.15.2",
106108
"reakit-utils": "^0.15.2",
107109
"reakit-warning": "^0.6.2"
108110
},
109111
"devDependencies": {
110-
"@babel/cli": "7.17.6",
111-
"@babel/core": "7.17.9",
112+
"@babel/cli": "7.17.10",
113+
"@babel/core": "7.17.10",
112114
"@babel/plugin-proposal-class-properties": "7.16.7",
113115
"@babel/plugin-proposal-logical-assignment-operators": "7.16.7",
114116
"@babel/plugin-proposal-private-methods": "7.16.11",
115117
"@babel/plugin-proposal-private-property-in-object": "7.16.7",
116-
"@babel/preset-env": "7.16.11",
118+
"@babel/preset-env": "7.17.10",
117119
"@babel/preset-react": "7.16.7",
118120
"@babel/preset-typescript": "7.16.7",
119-
"@commitlint/cli": "16.2.3",
120-
"@commitlint/config-conventional": "16.2.1",
121+
"@commitlint/cli": "16.2.4",
122+
"@commitlint/config-conventional": "16.2.4",
121123
"@emotion/css": "11.9.0",
122-
"@react-spring/web": "9.4.4",
123-
"@release-it/conventional-changelog": "4.3.0",
124+
"@react-spring/web": "9.4.5",
125+
"@react-types/button": "^3.4.5",
126+
"@react-types/calendar": "3.0.0-rc.0",
127+
"@react-types/datepicker": "3.0.0-rc.0",
128+
"@react-types/dialog": "^3.3.5",
129+
"@react-types/numberfield": "^3.2.0",
130+
"@react-types/shared": "^3.12.0",
131+
"@react-types/slider": "^3.0.6",
132+
"@release-it/conventional-changelog": "5.0.0",
124133
"@storybook/addon-a11y": "6.4.22",
125134
"@storybook/addon-actions": "6.4.22",
126135
"@storybook/addon-essentials": "6.4.22",
@@ -130,77 +139,79 @@
130139
"@storybook/react": "6.4.22",
131140
"@testing-library/dom": "8.13.0",
132141
"@testing-library/jest-dom": "5.16.4",
133-
"@testing-library/react": "13.1.1",
142+
"@testing-library/react": "13.2.0",
134143
"@testing-library/react-hooks": "8.0.0",
135144
"@testing-library/user-event": "14.1.1",
136-
"@types/jest": "27.4.1",
145+
"@types/jest": "27.5.0",
137146
"@types/jest-axe": "3.5.3",
138147
"@types/jest-in-case": "1.0.5",
139148
"@types/mockdate": "3.0.0",
140-
"@types/node": "17.0.18",
149+
"@types/node": "17.0.31",
141150
"@types/raf": "3.4.0",
142-
"@types/react": "18.0.5",
143-
"@types/react-dom": "18.0.1",
151+
"@types/react": "18.0.9",
152+
"@types/react-dom": "18.0.3",
144153
"@types/react-transition-group": "4.4.4",
145154
"@types/testing-library__jest-dom": "5.14.3",
146155
"all-contributors-cli": "6.20.0",
147156
"ast-to-markdown": "1.0.0",
148-
"autoprefixer": "10.4.4",
149-
"babel-jest": "27.5.1",
150-
"babel-loader": "8.2.4",
157+
"autoprefixer": "10.4.7",
158+
"babel-jest": "28.1.0",
159+
"babel-loader": "8.2.5",
151160
"babel-plugin-jsx-remove-data-test-id": "3.0.0",
152161
"chalk": "4.1.0",
153162
"codesandbox": "2.2.3",
154163
"concurrently": "7.1.0",
155164
"cross-env": "7.0.3",
156-
"eslint": "8.13.0",
165+
"eslint": "8.15.0",
157166
"eslint-config-prettier": "8.5.0",
158167
"eslint-config-react-app": "7.0.1",
159168
"eslint-plugin-prettier": "4.0.0",
160169
"eslint-plugin-simple-import-sort": "7.0.0",
161-
"eslint-plugin-storybook": "0.5.10",
162-
"gacp": "2.10.2",
170+
"eslint-plugin-storybook": "0.5.11",
171+
"gacp": "3.0.1",
163172
"glob": "8.0.1",
164173
"glob-fs": "0.1.7",
165-
"husky": "7.0.4",
166-
"jest": "27.5.1",
174+
"husky": "8.0.0",
175+
"jest": "28.1.0",
167176
"jest-axe": "6.0.0",
177+
"jest-environment-jsdom": "^28.1.0",
168178
"jest-in-case": "1.0.2",
169-
"jest-matcher-utils": "27.5.1",
170-
"lint-staged": "12.3.8",
179+
"jest-matcher-utils": "28.1.0",
180+
"lint-staged": "12.4.1",
171181
"lodash": "4.17.21",
172182
"markdown-to-ast": "6.0.3",
173183
"markdown-toc": "1.2.0",
174-
"md-node-inject": "1.0.1",
184+
"md-node-inject": "2.0.0",
175185
"mockdate": "3.0.5",
176186
"node-fetch": "2.6.1",
177187
"outdent": "0.8.0",
178188
"patch-package": "6.4.7",
179189
"pinst": "3.0.0",
180-
"postcss": "8.4.12",
190+
"postcss": "8.4.13",
181191
"postcss-import": "14.1.0",
192+
"postcss-merge-selectors": "^0.0.6",
182193
"postcss-scopify": "0.1.9",
183194
"prettier": "2.6.2",
184195
"raw-loader": "4.0.2",
185-
"react": "18.0.0",
186-
"react-dom": "18.0.0",
196+
"react": "18.1.0",
197+
"react-dom": "18.1.0",
187198
"react-hook-form": "7.30.0",
188-
"react-test-renderer": "18.0.0",
199+
"react-test-renderer": "18.1.0",
189200
"react-transition-group": "4.4.2",
190201
"react-virtual": "2.10.4",
191202
"reakit": "1.3.11",
192203
"reakit-test-utils": "0.15.2",
193-
"release-it": "14.14.2",
204+
"release-it": "15.0.0",
194205
"rimraf": "3.0.2",
195-
"sort-package-json": "1.55.0",
206+
"sort-package-json": "1.57.0",
196207
"storybook-addon-preview": "2.2.0",
197208
"storybook-addon-react-docgen": "1.2.42",
198209
"strip-comments": "2.0.1",
199210
"tailwindcss": "3.0.24",
200-
"ts-jest": "27.1.4",
211+
"ts-jest": "28.0.2",
201212
"ts-morph": "14.0.0",
202213
"ts-node": "10.7.0",
203-
"typescript": "4.6.3",
214+
"typescript": "4.6.4",
204215
"webpack": "5.72.0",
205216
"yaml": "2.0.1"
206217
},

postcss.config.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,22 @@ function addIdScope() {
3131

3232
module.exports = {
3333
plugins: [
34+
require("postcss-import"),
3435
require("tailwindcss"),
3536
require("postcss-flexbugs-fixes"),
3637
require("autoprefixer")({ flexbox: "no-2009" }),
38+
require("postcss-merge-selectors")({
39+
matchers: {
40+
active: {
41+
selectorFilter: /(:active|\[data-active\])/,
42+
promote: true,
43+
},
44+
focusVisible: {
45+
selectorFilter: /(:focus-visible|\[data-focus-visible\])/,
46+
promote: true,
47+
},
48+
},
49+
}),
3750
rewriteRootRule(),
3851
addIdScope(),
3952
],

src/__mocks__/styleMock.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)