Skip to content
This repository was archived by the owner on Dec 25, 2025. It is now read-only.
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/chakra-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"chroma-js": "^3.0.0",
"create-color": "^2.0.6",
"framer-motion": "^11.3.17",
"react-hook-form": "^7.53.0",
"zod": "^3.23.8"
},
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/chakra-ui/src/components/default/form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
} from "@fabrix-framework/fabrix";
import { Switch, Input, Stack, Button, Box } from "@chakra-ui/react";
import { Select } from "chakra-react-select";
import { useController } from "@fabrix-framework/fabrix/rhf";
import { useController } from "react-hook-form";
import { LabelledHeading } from "./shared";

export const ChakraForm = (props: FormComponentProps) => {
Expand Down
7 changes: 2 additions & 5 deletions packages/fabrix/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@
".": {
"types": "./dist/fabrix.d.mts",
"default": "./dist/fabrix.mjs"
},
"./rhf": {
"types": "./dist/rhf.d.mts",
"default": "./dist/rhf.mjs"
}
},
"files": [
Expand All @@ -37,7 +33,8 @@
"peerDependencies": {
"graphql": "^16",
"react": "^18",
"react-dom": "^18"
"react-dom": "^18",
"react-hook-form": "^7"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added RHF here

},
"devDependencies": {
"@fabrix-framework/eslint-config": "workspace:*",
Expand Down
1 change: 0 additions & 1 deletion packages/fabrix/rhf/index.ts

This file was deleted.

2 changes: 1 addition & 1 deletion packages/fabrix/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const devOpts =

export default defineConfig({
format: ["esm"],
entry: { fabrix: "src/index.ts", rhf: "rhf/index.ts" },
entry: { fabrix: "src/index.ts" },
clean: true,
minify: true,
dts: true,
Expand Down
5 changes: 4 additions & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.