Skip to content

Commit

Permalink
Push update
Browse files Browse the repository at this point in the history
  • Loading branch information
vantezzen committed Nov 25, 2024
1 parent f664c5a commit caa7572
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
5 changes: 0 additions & 5 deletions .changeset/tricky-phones-argue.md

This file was deleted.

2 changes: 1 addition & 1 deletion package-lock.json

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

6 changes: 6 additions & 0 deletions packages/mantine/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @autoform/mantine

## 2.2.0

### Minor Changes

- f664c5a: Fixed import path in Mantine integration

## 2.1.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/mantine/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@autoform/mantine",
"version": "2.1.0",
"version": "2.2.0",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/shadcn/registry/autoform.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
{
"path": "autoform/components/BooleanField.tsx",
"target": "components/ui/autoform/components/BooleanField.tsx",
"content": "import React from \"react\";\nimport { Checkbox } from \"@/components/ui/checkbox\";\nimport { AutoFormFieldProps } from \"@autoform/react\";\nimport { Label } from \"../../label\";\n\nexport const BooleanField: React.FC<AutoFormFieldProps> = ({\n field,\n label,\n id,\n inputProps,\n}) => (\n <div className=\"flex items-center space-x-2\">\n <Checkbox\n id={id}\n onCheckedChange={(checked) => {\n // react-hook-form expects an event object\n const event = {\n target: {\n name: field.key,\n value: checked,\n },\n };\n inputProps.onChange(event);\n }}\n checked={inputProps.value}\n />\n <Label htmlFor={id}>\n {label}\n {field.required && <span className=\"text-destructive\"> *</span>}\n </Label>\n </div>\n);\n",
"content": "import React from \"react\";\nimport { Checkbox } from \"@/components/ui/checkbox\";\nimport { AutoFormFieldProps } from \"@autoform/react\";\nimport { Label } from \"../../label\";\n\nexport const BooleanField: React.FC<AutoFormFieldProps> = ({\n field,\n label,\n id,\n inputProps,\n value\n}) => (\n <div className=\"flex items-center space-x-2\">\n <Checkbox\n id={id}\n onCheckedChange={(checked) => {\n // react-hook-form expects an event object\n const event = {\n target: {\n name: field.key,\n value: checked,\n },\n };\n inputProps.onChange(event);\n }}\n checked={value}\n />\n <Label htmlFor={id}>\n {label}\n {field.required && <span className=\"text-destructive\"> *</span>}\n </Label>\n </div>\n);\n",
"type": "registry:ui"
},
{
Expand Down

0 comments on commit caa7572

Please sign in to comment.