Skip to content

Commit 57666e0

Browse files
committed
refactor: 🎨 Separação de responsabilidades do monorepo
Separado os workspaces e testado story de button do documentation/react
1 parent ac2815f commit 57666e0

File tree

124 files changed

+28407
-44154
lines changed

Some content is hidden

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

124 files changed

+28407
-44154
lines changed

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,4 +147,8 @@ dist
147147
.yarn/unplugged
148148
.yarn/build-state.yml
149149
.yarn/install-state.gz
150-
.pnp.*
150+
.pnp.*
151+
152+
# dist ignore
153+
**/*.dist
154+
**/dist/
File renamed without changes.

packages/react/package.json renamed to applications/react/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@saturn/react",
2+
"name": "@saturn/app-react",
33
"version": "1.0.0",
44
"main": "./dist/index.js",
55
"module": "./dist/index.mjs",
@@ -14,9 +14,9 @@
1414
"license": "MIT",
1515
"description": "",
1616
"devDependencies": {
17-
"@saturn/eslint": "*",
18-
"@saturn/tokens": "*",
19-
"@saturn/tsconfig": "*",
17+
"@saturn/pack-eslint": "*",
18+
"@saturn/pack-tokens": "*",
19+
"@saturn/pack-tsconfig": "*",
2020
"@types/react": "^18.3.2",
2121
"@types/react-dom": "^18.3.0",
2222
"react": "^18.3.1",

applications/react/src/index.tsx

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import { styled } from "./styles";
2+
3+
export const Button = styled("button", {
4+
backgroundColor: "$gray900",
5+
borderRadius: "$sm",
6+
border: 0,
7+
fontWeight: "$bold",
8+
color: "$white",
9+
10+
variants: {
11+
size: {
12+
small: {
13+
fontSize: 14,
14+
padding: "$2 $4",
15+
},
16+
big: {
17+
fontSize: 16,
18+
padding: "$3 $6",
19+
},
20+
},
21+
},
22+
23+
defaultVariants: {
24+
size: "small",
25+
},
26+
});

packages/react/src/styles/index.ts renamed to applications/react/src/styles/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
lineHeights,
88
radii,
99
space,
10-
} from "@saturn/tokens";
10+
} from "@saturn/pack-tokens";
1111

1212
export const {
1313
styled,

applications/react/tsconfig.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": "@saturn/pack-tsconfig/react.json",
3+
"include": ["src"]
4+
}
File renamed without changes.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "@saturn/eslint"
3+
}
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)