From 76ce5e551362aaccd5ba910d3c227321dddfe4e2 Mon Sep 17 00:00:00 2001 From: Wojciech Date: Sun, 30 Jun 2024 17:54:58 +0200 Subject: [PATCH] update README.md --- README.md | 11 ++++++++--- package.json | 4 ++-- zod-to-fields.svg | 1 + 3 files changed, 11 insertions(+), 5 deletions(-) create mode 100644 zod-to-fields.svg diff --git a/README.md b/README.md index 7b97341..8882737 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,9 @@ -# Zod To Fields +

+ Zod To Fields +

+

+ Logo +

> **

> Automate your form field generation with type safety. @@ -76,7 +81,7 @@ Ensure you have the power of Zod To Fields in your project by installing it via ```bash # With npm -npm install zod-to-fields --save +npm install zod-to-fields # With Yarn yarn add zod-to-fields @@ -200,7 +205,7 @@ withFieldOptions({ #### Type Behavior -- `z.string()` will generate field options of type `InputStringFieldOptions`, which is narrowed to allow string types like `text`, `password`, etc. You can override these settings with any other property which is a subset of `Partial`. +- `z.string()` will generate field options of type `InputStringFieldOptions`, which is narrowed to allow string types like `text`, `password`, etc. You can override these settings with any other property which is a subset of `Partial>`. - `z.enum()` and `z.nativeEnum()` will generate field options of type `InputEnumFieldOptions`, allowing you to specify options either as a select dropdown or as radio buttons. diff --git a/package.json b/package.json index 18c3866..d91dba2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "zod-to-fields", - "version": "0.1.37", + "version": "0.1.38", "description": "Turn your Zod schemas into configurable field arrays for easy integration with HTML, React, Vue, and more.", "main": "lib/cjs/index.js", "module": "lib/esm/index.js", @@ -50,7 +50,7 @@ "zod": "^3.0.0" }, "scripts": { - "dev:react": "pnpm --filter react dev", + "dev:react": "pnpm --filter react-example dev", "preinstall": "npx only-allow pnpm", "prepare": "husky install", "build": "tsc --project tsconfig.cjs.json && tsc-alias --project tsconfig.cjs.json && tsc --project tsconfig.esm.json && tsc-alias --project tsconfig.esm.json && echo 'Build complete'", diff --git a/zod-to-fields.svg b/zod-to-fields.svg new file mode 100644 index 0000000..c5dacba --- /dev/null +++ b/zod-to-fields.svg @@ -0,0 +1 @@ + \ No newline at end of file