Skip to content

Commit ca30a5e

Browse files
committed
chore(rename): 🚚 remove the reakit usage
1 parent 99dcf2d commit ca30a5e

File tree

9 files changed

+15
-55
lines changed

9 files changed

+15
-55
lines changed

.storybook/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ interface Props {
4040

4141
export function createPreviewTabs(props: Props) {
4242
const { js, ts, jsUtils, tsUtils, css, deps: extraDeps = [] } = props;
43-
const deps = ["@adaptui/react@latest", "reakit@latest", ...extraDeps];
43+
const deps = ["@adaptui/react@latest", ...extraDeps];
4444
const tabs = [];
4545

4646
if (js) {

.vscode/reakit.code-snippets

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

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<h1 align="center">AdaptUI React</h1>
22

33
<p align="center">
4-
Collection of headless components/hooks that are accessible, composable, customizable from low level to build your own UI & Design System powered by <a href="https://ariakit.org/">Reakit</a>
4+
Collection of headless components/hooks that are accessible, composable, customizable from low level to build your own UI & Design System powered by <a href="https://ariakit.org/">Ariakit</a>
55
System.
66
<a href="https://adaptui-react.vercel.app/"><strong>Explore all components »</strong></a>
77
</p>
@@ -28,10 +28,10 @@ System.
2828

2929
```sh
3030
# npm
31-
npm install @adaptui/react reakit
31+
npm install @adaptui/react
3232

3333
# Yarn
34-
yarn add @adaptui/react reakit
34+
yarn add @adaptui/react
3535
```
3636

3737
> Make sure `react react-dom` is installed.

package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"a11y",
99
"ui",
1010
"toolkit",
11-
"reakit",
11+
"ariakit",
1212
"react",
1313
"components",
1414
"nostyle",
@@ -195,8 +195,6 @@
195195
"react-test-renderer": "18.1.0",
196196
"react-transition-group": "4.4.2",
197197
"react-virtual": "2.10.4",
198-
"reakit": "1.3.11",
199-
"reakit-test-utils": "0.15.2",
200198
"release-it": "15.0.0",
201199
"rimraf": "3.0.2",
202200
"sort-package-json": "1.57.0",
@@ -212,7 +210,6 @@
212210
"yaml": "2.1.1"
213211
},
214212
"peerDependencies": {
215-
"ariakit": "2.0.0-next.29",
216213
"react": "16.x || 17.x || 18.x",
217214
"react-dom": "16.x || 17.x || 18.x"
218215
},

scripts/utils/inject-csb-links.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ const getSandboxShortURL = async parsed => {
7171

7272
const getSandboxContents = (files, extraDeps) => {
7373
const deps = {
74-
reakit: "latest",
7574
"@adaptui/react": "latest",
7675
react: "^16.8.0",
7776
"react-dom": "^16.8.0",

src/progress/stories/CircularProgress.component.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as React from "react";
2+
import { Button } from "ariakit";
23
import { css, keyframes } from "@emotion/css";
3-
import { Button } from "reakit";
44

55
import {
66
Progress,
@@ -17,7 +17,9 @@ export interface CircularProgressProps extends ProgressStateProps {
1717
withLabel?: boolean;
1818
}
1919

20-
export const CircularProgress: React.FC<CircularProgressProps> = props => {
20+
export const CircularProgress: React.FC<
21+
React.PropsWithChildren<CircularProgressProps>
22+
> = props => {
2123
const { withLabel = false, children, ...rest } = props;
2224
const [value, setValue] = React.useState<number | null>(0);
2325
const state = useProgressState({

src/progress/stories/CircularProgress.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default {
1717
preview: createPreviewTabs({
1818
js,
1919
ts,
20-
deps: ["reakit@latest", "@emotion/css@latest"],
20+
deps: ["@emotion/css@latest"],
2121
}),
2222
},
2323
} as Meta;

src/progress/stories/LinearProgress.component.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as React from "react";
2+
import { Button } from "ariakit";
23
import { cx } from "ariakit-utils";
34
import { css, keyframes } from "@emotion/css";
4-
import { Button } from "reakit";
55

66
import {
77
Progress,
@@ -24,7 +24,9 @@ export interface LinearProgressProps extends ProgressStateProps {
2424
withStripeAnimation?: boolean;
2525
}
2626

27-
export const LinearProgress: React.FC<LinearProgressProps> = props => {
27+
export const LinearProgress: React.FC<
28+
React.PropsWithChildren<LinearProgressProps>
29+
> = props => {
2830
const {
2931
children,
3032
withLabel = false,

src/progress/stories/LinearProgress.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default {
1717
preview: createPreviewTabs({
1818
js,
1919
ts,
20-
deps: ["reakit@latest", "@emotion/css@latest"],
20+
deps: ["@emotion/css@latest"],
2121
}),
2222
},
2323
} as Meta;

0 commit comments

Comments
 (0)