Skip to content

Commit 773391b

Browse files
feat: added box component (#19)
1 parent 5051b3c commit 773391b

35 files changed

+1520
-30
lines changed

.changeset/two-bats-warn.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@brifui/box": patch
3+
---
4+
5+
first release

.github/workflows/test.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,7 @@ jobs:
1717
uses: ./.github/common-actions/install
1818

1919
- name: Build packages
20-
run: yarn build
20+
run: yarn build
21+
22+
- name: Test
23+
run: yarn test

.vscode/settings.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
{
22
"editor.formatOnSave": true,
33
"editor.defaultFormatter": "dbaeumer.vscode-eslint",
4+
"eslint.workingDirectories": [
5+
{
6+
"pattern": "packages/*"
7+
}
8+
],
9+
"typescript.tsdk": "node_modules/typescript/lib",
10+
"typescript.format.enable": false,
11+
"editor.semanticHighlighting.enabled": false,
12+
"typescript.tsserver.enableTracing": true
413
}

.yarn/install-state.gz

108 KB
Binary file not shown.

.yarnrc.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@ nodeLinker: node-modules
22

33
afterInstall: yarn after:install
44

5+
enableTransparentWorkspaces: false
6+
7+
logFilters:
8+
- code: YN002
9+
level: discard
10+
511
plugins:
612
- checksum: 0a2a35fbed2f33f0df1ceb1db51bf72554201f994eaecb86cbc62a295c3d05f7cc44fa8be8e64fc5e1c0bee4f529a17a0cc429ea9e3486ad467443291d5a8e3b
713
path: .yarn/plugins/@yarnpkg/plugin-after-install.cjs

docs/app/page.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
import { Box } from "@brifui/components";
2+
13
export default function Home() {
24
return (
3-
<div className="flex items-center justify-center min-h-screen">
4-
<h1>Hello world!</h1>
5-
</div>
5+
<Box className="flex items-center justify-center min-h-screen">
6+
<Box as="h1">Hello world!</Box>
7+
</Box>
68
);
79
}

docs/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"lint": "next lint"
1010
},
1111
"dependencies": {
12+
"@brifui/components": "workspace:*",
1213
"next": "15.1.4",
1314
"react": "^19.0.0",
1415
"react-dom": "^19.0.0"

mocks/setup.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import "@testing-library/jest-dom/vitest";
2+
import { configure } from "@testing-library/react";
3+
4+
configure({
5+
reactStrictMode: true
6+
});

package.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@
1212
},
1313
"scripts": {
1414
"build": "turbo build",
15-
"test": "turbo run test",
1615
"dev": "turbo dev",
1716
"lint": "turbo lint",
17+
"test": "turbo run test",
18+
"test:watch": "turbo run test:watch",
1819
"codegen": "turbo run codegen --concurrency 1 --ui stream",
1920
"format": "prettier --write \"**/*.{ts,tsx,md}\"",
2021
"prepare": "husky",
@@ -30,22 +31,27 @@
3031
"@commitlint/cli": "^19.6.1",
3132
"@commitlint/config-conventional": "^19.6.0",
3233
"@commitlint/cz-commitlint": "^19.6.1",
34+
"@testing-library/dom": "^10.4.0",
35+
"@testing-library/jest-dom": "^6.6.3",
36+
"@testing-library/react": "^16.1.0",
3337
"clean-package": "^2.2.0",
3438
"commitizen": "^4.3.1",
3539
"husky": "^9.1.7",
3640
"inquirer": "9",
3741
"prettier": "^3.2.5",
3842
"tsup": "^8.3.5",
3943
"turbo": "^2.3.3",
40-
"typescript": "5.5.4"
44+
"typescript": "5.5.4",
45+
"vitest": "^2.1.8"
4146
},
4247
"engines": {
4348
"node": ">=20.x"
4449
},
4550
"packageManager": "[email protected]",
4651
"workspaces": [
4752
"docs/",
48-
"packages/*"
53+
"packages/*",
54+
"packages/components/*"
4955
],
5056
"config": {
5157
"commitizen": {

packages/components/box/.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.backup

0 commit comments

Comments
 (0)