Skip to content

Commit

Permalink
release: bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
edmundhung committed Sep 20, 2022
1 parent 505a9e9 commit ea4ad3f
Show file tree
Hide file tree
Showing 16 changed files with 66 additions and 65 deletions.
2 changes: 1 addition & 1 deletion examples/advanced/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@conform-to/advanced-example",
"private": true,
"dependencies": {
"@conform-to/react": "0.3.0",
"@conform-to/react": "0.3.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-scripts": "5.0.1"
Expand Down
2 changes: 1 addition & 1 deletion examples/basics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@conform-to/basics-example",
"private": true,
"dependencies": {
"@conform-to/react": "0.3.0",
"@conform-to/react": "0.3.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-scripts": "5.0.1"
Expand Down
2 changes: 1 addition & 1 deletion examples/list/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@conform-to/list-example",
"private": true,
"dependencies": {
"@conform-to/react": "0.3.0",
"@conform-to/react": "0.3.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-scripts": "5.0.1"
Expand Down
2 changes: 1 addition & 1 deletion examples/material-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@conform-to/mui-example",
"private": true,
"dependencies": {
"@conform-to/react": "0.3.0",
"@conform-to/react": "0.3.1",
"@emotion/react": "^11.10.0",
"@emotion/styled": "^11.10.0",
"@mui/material": "^5.10.2",
Expand Down
2 changes: 1 addition & 1 deletion examples/nested/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@conform-to/nested-example",
"private": true,
"dependencies": {
"@conform-to/react": "0.3.0",
"@conform-to/react": "0.3.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-scripts": "5.0.1"
Expand Down
21 changes: 11 additions & 10 deletions examples/remix/app/routes/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { FieldsetConfig } from '@conform-to/react';
import { useForm, useFieldset, useFieldList } from '@conform-to/react';
import { useForm, useFieldset, useFieldList, conform } from '@conform-to/react';
import { ifNonEmptyString, resolve } from '@conform-to/zod';
import type { ActionArgs } from '@remix-run/node';
import { Form, useActionData } from '@remix-run/react';
Expand Down Expand Up @@ -49,15 +49,18 @@ export default function OrderForm() {
);
const [taskList, control] = useFieldList(formProps.ref, tasks.config);

console.log('error', formState?.error);
console.log('title', title.config);
console.log('tasks', tasks.config);

return (
<Form method="post" {...formProps}>
<fieldset>
<label>
<div>Title</div>
<input
className={title.error ? 'error' : ''}
name={title.config.name}
defaultValue={title.config.defaultValue}
{...conform.input(title.config)}
/>
<div>{title.error}</div>
</label>
Expand Down Expand Up @@ -106,22 +109,20 @@ function TaskFieldset({ title, ...config }: TaskFieldsetProps) {
<label>
<div>{title}</div>
<input
type="text"
className={content.error ? 'error' : ''}
name={content.config.name}
defaultValue={content.config.defaultValue}
{...conform.input(content.config)}
/>
<div>{content.error}</div>
</label>
<div>
<label>
<span>Completed</span>
<input
type="checkbox"
className={completed.error ? 'error' : ''}
name={completed.config.name}
value="yes"
defaultChecked={completed.config.defaultValue === 'yes'}
{...conform.input(completed.config, {
type: 'checkbox',
value: 'yes',
})}
/>
</label>
</div>
Expand Down
4 changes: 2 additions & 2 deletions examples/remix/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"start": "remix-serve build"
},
"dependencies": {
"@conform-to/react": "0.3.0",
"@conform-to/zod": "0.3.0",
"@conform-to/react": "0.3.1",
"@conform-to/zod": "0.3.1",
"@remix-run/node": "^1.6.3",
"@remix-run/react": "^1.6.3",
"@remix-run/serve": "^1.6.3",
Expand Down
2 changes: 1 addition & 1 deletion examples/validation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@conform-to/validation-example",
"private": true,
"dependencies": {
"@conform-to/react": "0.3.0",
"@conform-to/react": "0.3.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-scripts": "5.0.1"
Expand Down
4 changes: 2 additions & 2 deletions examples/yup/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"name": "@conform-to/yup-example",
"private": true,
"dependencies": {
"@conform-to/react": "0.3.0",
"@conform-to/yup": "0.3.0",
"@conform-to/react": "0.3.1",
"@conform-to/yup": "0.3.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-scripts": "5.0.1",
Expand Down
4 changes: 2 additions & 2 deletions examples/zod/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"name": "@conform-to/zod-example",
"private": true,
"dependencies": {
"@conform-to/react": "0.3.0",
"@conform-to/zod": "0.3.0",
"@conform-to/react": "0.3.1",
"@conform-to/zod": "0.3.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-scripts": "5.0.1",
Expand Down
64 changes: 32 additions & 32 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion packages/conform-dom/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@conform-to/dom",
"description": "A set of opinionated helpers built on top of the Constraint Validation API",
"license": "MIT",
"version": "0.3.0",
"version": "0.3.1",
"main": "index.js",
"module": "module/index.js",
"repository": {
Expand Down
Loading

0 comments on commit ea4ad3f

Please sign in to comment.