Skip to content
This repository was archived by the owner on Jan 15, 2025. It is now read-only.

Commit c74dd4e

Browse files
committed
Add new files and update dependencies
1 parent 49373aa commit c74dd4e

Some content is hidden

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

78 files changed

+2970
-2793
lines changed

.idea/inspectionProfiles/Project_Default.xml

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/docs/.storybook/preview.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import '@/ui/globals.css';
1+
import '@/app/globals.css';
22
import type { Preview } from '@storybook/react';
33

44
const preview: Preview = {

apps/docs/package.json

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -15,28 +15,28 @@
1515
"@codefixlabs/lib": "workspace:*",
1616
"@codefixlabs/ui": "workspace:*",
1717
"@faker-js/faker": "^8.3.1",
18-
"@hookform/resolvers": "^3.3.3",
19-
"@storybook/addon-a11y": "^7.6.6",
20-
"@storybook/addon-essentials": "^7.6.6",
21-
"@storybook/addon-interactions": "^7.6.6",
22-
"@storybook/addon-links": "^7.6.6",
23-
"@storybook/blocks": "^7.6.6",
24-
"@storybook/manager-api": "^7.6.6",
25-
"@storybook/nextjs": "^7.6.6",
26-
"@storybook/react": "^7.6.6",
18+
"@hookform/resolvers": "^3.3.4",
19+
"@storybook/addon-a11y": "^7.6.7",
20+
"@storybook/addon-essentials": "^7.6.7",
21+
"@storybook/addon-interactions": "^7.6.7",
22+
"@storybook/addon-links": "^7.6.7",
23+
"@storybook/blocks": "^7.6.7",
24+
"@storybook/manager-api": "^7.6.7",
25+
"@storybook/nextjs": "^7.6.7",
26+
"@storybook/react": "^7.6.7",
2727
"@storybook/testing-library": "^0.2.2",
28-
"@storybook/theming": "^7.6.6",
29-
"@storybook/types": "^7.6.6",
30-
"@tanstack/react-table": "^8.11.2",
28+
"@storybook/theming": "^7.6.7",
29+
"@storybook/types": "^7.6.7",
30+
"@tanstack/react-table": "^8.11.3",
3131
"class-variance-authority": "^0.7.0",
32-
"date-fns": "^3.0.6",
33-
"lucide-react": "^0.303.0",
32+
"date-fns": "^3.1.0",
33+
"lucide-react": "^0.306.0",
3434
"next": "^14.0.4",
3535
"react": "^18.2.0",
3636
"react-day-picker": "^8.10.0",
3737
"react-dom": "^18.2.0",
3838
"react-hook-form": "^7.49.2",
39-
"storybook": "^7.6.6",
39+
"storybook": "^7.6.7",
4040
"tailwind-merge": "^2.2.0",
4141
"zod": "^3.22.4"
4242
},
@@ -50,8 +50,8 @@
5050
"autoprefixer": "^10.4.16",
5151
"chromatic": "^10.2.0",
5252
"eslint-config-codefixlabs": "workspace:*",
53-
"postcss": "^8.4.32",
54-
"tailwindcss": "^3.4.0",
53+
"postcss": "^8.4.33",
54+
"tailwindcss": "^3.4.1",
5555
"typescript": "^5.3.3"
5656
}
5757
}
File renamed without changes.

apps/docs/src/app/layout.tsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
1-
import '@/ui/globals.css';
1+
import '@/app/globals.css';
22
import type { Metadata } from 'next';
3-
import { nunito } from '@/ui/fonts';
3+
import { Nunito } from 'next/font/google';
4+
import React from 'react';
5+
6+
const nunito = Nunito({
7+
subsets: ['vietnamese'],
8+
variable: '--font-sans',
9+
weight: 'variable',
10+
});
411

512
export const metadata: Metadata = {
613
description: 'Generated by create next app',

apps/docs/src/app/page.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import {
1212
} from '@codefixlabs/ui';
1313
import { BellIcon, CheckIcon } from 'lucide-react';
1414
import Link from 'next/link';
15+
import * as React from 'react';
1516

1617
const notifications = [
1718
{

apps/docs/src/stories/dialog/dialog.stories.tsx

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,9 @@ export const Basic: Story = {
7474
</div>
7575
</DialogBody>
7676
<DialogFooter>
77-
<DialogClose asChild className="ml-auto">
78-
<Button type="submit">Save changes</Button>
77+
<DialogClose>Cancel</DialogClose>
78+
<DialogClose type="submit" variant="primary">
79+
Save changes
7980
</DialogClose>
8081
</DialogFooter>
8182
</DialogContent>
@@ -118,8 +119,9 @@ export const Scrolling: Story = {
118119
</DialogBody>
119120

120121
<DialogFooter>
121-
<DialogClose asChild className="ml-auto">
122-
<Button type="submit">Save changes</Button>
122+
<DialogClose>Cancel</DialogClose>
123+
<DialogClose type="submit" variant="primary">
124+
Save changes
123125
</DialogClose>
124126
</DialogFooter>
125127
</DialogContent>
@@ -271,13 +273,8 @@ function DialogForm(
271273
</DialogBody>
272274

273275
<DialogFooter>
274-
<DialogClose asChild>
275-
<Button
276-
disabled={form.formState.isSubmitting}
277-
variant="outline"
278-
>
279-
Cancel
280-
</Button>
276+
<DialogClose disabled={form.formState.isSubmitting}>
277+
Cancel
281278
</DialogClose>
282279

283280
<Button loading={form.formState.isSubmitting} type="submit">

apps/docs/src/stories/drawer/drawer.stories.tsx

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,8 @@ export const Basic: Story = {
4646
</p>
4747
</DrawerBody>
4848
<DrawerFooter>
49-
<DrawerClose asChild>
50-
<Button variant="ghost">Secondary</Button>
51-
</DrawerClose>
52-
<DrawerClose asChild>
53-
<Button>Primary</Button>
54-
</DrawerClose>
49+
<DrawerClose>Secondary</DrawerClose>
50+
<DrawerClose variant="primary">Primary</DrawerClose>
5551
</DrawerFooter>
5652
</DrawerContent>
5753
</Drawer>
@@ -92,12 +88,8 @@ export const Scrolling: Story = {
9288
))}
9389
</DrawerBody>
9490
<DrawerFooter>
95-
<DrawerClose asChild>
96-
<Button variant="ghost">Secondary</Button>
97-
</DrawerClose>
98-
<DrawerClose asChild>
99-
<Button>Primary</Button>
100-
</DrawerClose>
91+
<DrawerClose>Secondary</DrawerClose>
92+
<DrawerClose variant="primary">Primary</DrawerClose>
10193
</DrawerFooter>
10294
</DrawerContent>
10395
</Drawer>

apps/docs/src/ui/fonts.ts

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

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
],
88
"scripts": {
99
"build": "turbo run build",
10-
"build:packages": "turbo run build --filter='./packages/*'",
10+
"build:packages": "turbo run build --force --filter='./packages/*'",
1111
"changeset": "changeset",
1212
"clean": "turbo run clean && rm -rf .turbo node_modules",
1313
"dev": "turbo run dev",
@@ -53,9 +53,9 @@
5353
"eslint": "^8.56.0",
5454
"lint-staged": "^15.2.0",
5555
"prettier": "^3.1.1",
56-
"prettier-plugin-tailwindcss": "^0.5.10",
56+
"prettier-plugin-tailwindcss": "^0.5.11",
5757
"simple-git-hooks": "^2.9.0",
58-
"turbo": "^1.11.2"
58+
"turbo": "^1.11.3"
5959
},
6060
"packageManager": "[email protected]"
6161
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": ["./library"]
3+
}

packages/eslint-config-codefixlabs/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# eslint-config-codefixlabs
22

3+
## 0.1.20
4+
5+
### Patch Changes
6+
7+
- Add new files and update dependencies
8+
39
## 0.1.19
410

511
### Patch Changes

packages/eslint-config-codefixlabs/package.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,12 @@
11
{
22
"name": "eslint-config-codefixlabs",
3-
"version": "0.1.19",
3+
"version": "0.1.20",
44
"license": "MIT",
55
"sideEffects": false,
66
"main": "index.js",
77
"scripts": {
88
"clean": "rm -rf node_modules"
99
},
10-
"eslintConfig": {
11-
"extends": [
12-
"./library"
13-
]
14-
},
1510
"dependencies": {
1611
"@vercel/style-guide": "^5.1.0",
1712
"eslint-plugin-mdx": "^3.1.1",

packages/hooks/.eslintrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": ["eslint-config-codefixlabs/react"]
3+
}

packages/hooks/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @codefixlabs/hooks
22

3+
## 0.1.31
4+
5+
### Patch Changes
6+
7+
- Add new files and update dependencies
8+
39
## 0.1.30
410

511
### Patch Changes

packages/hooks/package.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@codefixlabs/hooks",
3-
"version": "0.1.30",
3+
"version": "0.1.31",
44
"license": "MIT",
55
"sideEffects": false,
66
"exports": {
@@ -28,11 +28,6 @@
2828
"dev": "tsup --watch",
2929
"lint": "eslint src/"
3030
},
31-
"eslintConfig": {
32-
"extends": [
33-
"eslint-config-codefixlabs/react"
34-
]
35-
},
3631
"dependencies": {
3732
"country-state-city": "^3.2.1",
3833
"react": "^18.2.0",

packages/lib/.eslintrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": ["eslint-config-codefixlabs/react"]
3+
}

packages/lib/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @codefixlabs/lib
22

3+
## 0.1.33
4+
5+
### Patch Changes
6+
7+
- Add new files and update dependencies
8+
39
## 0.1.32
410

511
### Patch Changes

packages/lib/package.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@codefixlabs/lib",
3-
"version": "0.1.32",
3+
"version": "0.1.33",
44
"license": "MIT",
55
"sideEffects": false,
66
"exports": {
@@ -28,11 +28,6 @@
2828
"dev": "tsup --watch",
2929
"lint": "eslint src/"
3030
},
31-
"eslintConfig": {
32-
"extends": [
33-
"eslint-config-codefixlabs/react"
34-
]
35-
},
3631
"dependencies": {
3732
"libphonenumber-js": "^1.10.53",
3833
"react": "^18.2.0",

packages/tailwindcss/.eslintrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": ["eslint-config-codefixlabs/library"]
3+
}

packages/tailwindcss/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @codefixlabs/tailwindcss
22

3+
## 0.1.44
4+
5+
### Patch Changes
6+
7+
- Add new files and update dependencies
8+
39
## 0.1.43
410

511
### Patch Changes

packages/tailwindcss/package.json

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@codefixlabs/tailwindcss",
3-
"version": "0.1.43",
3+
"version": "0.1.44",
44
"license": "MIT",
55
"sideEffects": false,
66
"exports": {
@@ -28,15 +28,10 @@
2828
"dev": "tsup --watch",
2929
"lint": "eslint src/"
3030
},
31-
"eslintConfig": {
32-
"extends": [
33-
"eslint-config-codefixlabs/library"
34-
]
35-
},
3631
"dependencies": {
3732
"@tailwindcss/container-queries": "^0.1.1",
3833
"@tailwindcss/typography": "^0.5.10",
39-
"tailwindcss": "^3.4.0"
34+
"tailwindcss": "^3.4.1"
4035
},
4136
"devDependencies": {
4237
"@codefixlabs/tsconfig": "workspace:*",

packages/ui/.eslintrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": ["eslint-config-codefixlabs/react"]
3+
}

packages/ui/CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# @codefixlabs/ui
22

3+
## 0.1.85
4+
5+
### Patch Changes
6+
7+
- Add new files and update dependencies
8+
- Updated dependencies
9+
- @codefixlabs/hooks@0.1.31
10+
- @codefixlabs/lib@0.1.33
11+
312
## 0.1.84
413

514
### Patch Changes

0 commit comments

Comments
 (0)