Skip to content

Commit c1bdb40

Browse files
committed
Extract shared components into @darekkay/react-ui
1 parent 0c9762f commit c1bdb40

File tree

47 files changed

+52
-479
lines changed

Some content is hidden

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

47 files changed

+52
-479
lines changed

app/jest.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ module.exports = {
99
coverageThreshold: {
1010
global: {
1111
statements: 90,
12-
branches: 84,
13-
functions: 86,
12+
branches: 80,
13+
functions: 80,
1414
lines: 90,
1515
},
1616
},

app/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"version": "1.5.0",
55
"author": "Darek Kay <[email protected]> (https://darekkay.com/)",
66
"dependencies": {
7-
"@darekkay/styles": "3.3.4",
7+
"@darekkay/react-ui": "1.1.0",
8+
"@darekkay/styles": "4.2.1",
89
"@fortawesome/fontawesome-svg-core": "6.2.1",
910
"@fortawesome/free-brands-svg-icons": "6.2.1",
1011
"@fortawesome/free-regular-svg-icons": "6.2.1",

app/src/components/button/__stories__/index.stories.tsx renamed to app/src/__stories__/button.stories.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
import React from "react";
2+
import { Button, ButtonProps } from "@darekkay/react-ui";
23

34
import Icon from "components/icon";
45
import Section from "components/section";
56

6-
import Button, { Props as ButtonProps } from "../index";
7-
87
interface RowProps {
98
title: string;
109
children?: React.ReactNode;
@@ -35,7 +34,7 @@ const Row = ({
3534
);
3635

3736
export default {
38-
title: "Components/Button",
37+
title: "Shared Components/Button",
3938
};
4039

4140
export const Variants = () => (

app/src/components/forms/input/__stories__/index.stories.tsx renamed to app/src/__stories__/forms/input.stories.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
import React, { useState } from "react";
2-
3-
import Input from "../index";
2+
import { Input } from "@darekkay/react-ui";
43

54
export default {
6-
title: "Components/Forms/Input",
5+
title: "Shared Components/Forms/Input",
76
};
87

98
export const Variants = () => {

app/src/components/link/__stories__/index.stories.tsx renamed to app/src/__stories__/link.stories.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
import React from "react";
2+
import { Link } from "@darekkay/react-ui";
23

34
import Icon from "components/icon";
45

5-
import Link from "../index";
6-
76
export default {
8-
title: "Components/Link",
7+
title: "Shared Components/Link",
98
};
109

1110
export const Variants = () => {

app/src/common/hooks/__stories__/index.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { useState } from "react";
2+
import { Button } from "@darekkay/react-ui";
23

3-
import Button from "components/button";
44
import Section from "components/section";
55

66
import usePrevious from "../usePrevious";

app/src/common/testing.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Common wrapper around testing utilities.
33
*
44
* All utilities from @testing-library/react are re-exported.
5-
* Additionally, utilities from @testing-library/user-event and @testing-library/react-hooks are provided.
5+
* Additionally, utilities from @testing-library/user-event are provided.
66
* */
77

88
import React from "react";

app/src/components/button/__tests__/index.test.tsx

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

app/src/components/button/index.tsx

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

app/src/components/button/styles.scss

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

0 commit comments

Comments
 (0)