Skip to content

Commit

Permalink
fix: imports
Browse files Browse the repository at this point in the history
  • Loading branch information
MiroslavPetrik committed Mar 14, 2023
1 parent 257fabd commit be3e212
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 8 deletions.
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
"autoprefixer": "10.4.13",
"babel-loader": "^8.3.0",
"concurrently": "^7.6.0",
"form-atoms": "^3.0.0",
"happy-dom": "8.7.1",
"jotai-devtools": "0.3.0-next.3",
"postcss": "8.4.21",
Expand All @@ -81,7 +82,6 @@
"@form-atoms/field": "2.5.0",
"flowbite": "1.6.3",
"flowbite-react": "0.3.8",
"form-atoms": "3.0.0",
"jotai": "2.0.3",
"react": "18.2.0",
"react-dom": "18.2.0",
Expand Down Expand Up @@ -112,5 +112,8 @@
],
"@semantic-release/github"
]
},
"peerDependencies": {
"form-atoms": "^3"
}
}
4 changes: 2 additions & 2 deletions src/file-field/FileField.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {
FileFieldProps,
useClearFileFieldEffect,
useClearFileInputEffect,
useFileFieldProps,
} from "@form-atoms/field";
import { FileInput, FileInputProps } from "flowbite-react";
Expand All @@ -20,7 +20,7 @@ export const FileField = ({
...uiProps
}: FlowbiteFileFieldProps) => {
const { value, ...props } = useFileFieldProps(field);
useClearFileFieldEffect(field);
useClearFileInputEffect(field);

return (
<FlowbiteField
Expand Down
4 changes: 2 additions & 2 deletions src/radio-option/RadioOption.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import {
CheckboxField,
FieldProps,
ValidatedFieldAtom,
useCheckboxFieldProps,
useRequiredProps,
} from "@form-atoms/field";
import { HelperText, Label, Radio } from "flowbite-react";

import { useFieldError } from "../hooks";

export const RadioOption = <Field extends ValidatedFieldAtom<boolean>>({
export const RadioOption = <Field extends CheckboxField>({
field,
required,
label,
Expand Down
2 changes: 1 addition & 1 deletion src/stories/StoryForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const StoryForm = <Fields extends FormFields>({
{children({ required, form })}
<div className="flex gap-2">
<Button type="submit">Submit</Button>
<Button color="gray" onClick={reset}>
<Button color="gray" onClick={() => reset()}>
Reset
</Button>
</div>
Expand Down
6 changes: 4 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1874,7 +1874,7 @@ __metadata:
concurrently: ^7.6.0
flowbite: 1.6.3
flowbite-react: 0.3.8
form-atoms: 3.0.0
form-atoms: ^3.0.0
happy-dom: 8.7.1
jotai: 2.0.3
jotai-devtools: 0.3.0-next.3
Expand All @@ -1889,6 +1889,8 @@ __metadata:
typescript: 4.9.5
vitest: 0.28.4
zod: ^3.20.6
peerDependencies:
form-atoms: "*"
languageName: unknown
linkType: soft

Expand Down Expand Up @@ -8328,7 +8330,7 @@ __metadata:
languageName: node
linkType: hard

"form-atoms@npm:3.0.0":
"form-atoms@npm:^3.0.0":
version: 3.0.0
resolution: "form-atoms@npm:3.0.0"
dependencies:
Expand Down

0 comments on commit be3e212

Please sign in to comment.