From 21e396d1ac4ba90d55e68c68ea454f5f1761a5b6 Mon Sep 17 00:00:00 2001 From: Jose Luis Leon Date: Thu, 3 Aug 2023 17:46:14 +0000 Subject: [PATCH] GITBOOK-1: Change structure names --- SUMMARY.md | 7 +++++++ packages/README.md | 2 ++ packages/web/README.md | 45 +++++++++++++++++++++--------------------- 3 files changed, 31 insertions(+), 23 deletions(-) create mode 100644 SUMMARY.md create mode 100644 packages/README.md diff --git a/SUMMARY.md b/SUMMARY.md new file mode 100644 index 0000000..71215ea --- /dev/null +++ b/SUMMARY.md @@ -0,0 +1,7 @@ +# Table of contents + +* [Overview](README.md) +* [Packages](packages/README.md) + * [Core](packages/core/README.md) + * [Native](packages/native/README.md) + * [Web](packages/web/README.md) diff --git a/packages/README.md b/packages/README.md new file mode 100644 index 0000000..11a08e8 --- /dev/null +++ b/packages/README.md @@ -0,0 +1,2 @@ +# Packages + diff --git a/packages/web/README.md b/packages/web/README.md index a0da95b..11c25b9 100644 --- a/packages/web/README.md +++ b/packages/web/README.md @@ -1,42 +1,41 @@ -[![CI](https://github.com/JoseLion/lynxts/actions/workflows/ci.yml/badge.svg)](https://github.com/JoseLion/lynxts/actions/workflows/ci.yml) -[![Release](https://github.com/JoseLion/lynxts/actions/workflows/release.yml/badge.svg)](https://github.com/JoseLion/lynxts/actions/workflows/release.yml) -[![NPM version](https://img.shields.io/npm/v/@lynxts/web?logo=npm)](https://www.npmjs.com/package/@lynxts/web) -[![NPM bundle size](https://img.shields.io/bundlephobia/min/@lynxts/web)](https://www.npmjs.com/package/@lynxts/web) -[![NPM downloads](https://img.shields.io/npm/dm/@lynxts/web)](https://www.npmjs.com/package/@lynxts/web) -[![NPM license](https://img.shields.io/npm/l/@lynxts/web)](./LICENSE) -[![GitHub Release Date](https://img.shields.io/github/release-date/JoseLion/lynxts)](https://github.com/JoseLion/lynxts/releases) -[![Known Vulnerabilities](https://snyk.io/test/github/JoseLion/lynxts/badge.svg)](https://snyk.io/test/github/JoseLion/lynxts) +# Web -Lynx.ts Logo +[![CI](https://github.com/JoseLion/lynxts/actions/workflows/ci.yml/badge.svg)](https://github.com/JoseLion/lynxts/actions/workflows/ci.yml) [![Release](https://github.com/JoseLion/lynxts/actions/workflows/release.yml/badge.svg)](https://github.com/JoseLion/lynxts/actions/workflows/release.yml) [![NPM version](https://img.shields.io/npm/v/@lynxts/web?logo=npm)](https://www.npmjs.com/package/@lynxts/web) [![NPM bundle size](https://img.shields.io/bundlephobia/min/@lynxts/web)](https://www.npmjs.com/package/@lynxts/web) [![NPM downloads](https://img.shields.io/npm/dm/@lynxts/web)](https://www.npmjs.com/package/@lynxts/web) [![NPM license](https://img.shields.io/npm/l/@lynxts/web)](LICENSE/) [![GitHub Release Date](https://img.shields.io/github/release-date/JoseLion/lynxts)](https://github.com/JoseLion/lynxts/releases) [![Known Vulnerabilities](https://snyk.io/test/github/JoseLion/lynxts/badge.svg)](https://snyk.io/test/github/JoseLion/lynxts) -# Lynx.ts Web +![Lynx.ts Logo](../../docs/assets/lynxts-logo%40512x512.png) + +## Lynx.ts Web TypeScript-first, lightning fast Forms for React.js and React Native. The `@lynxts/web` package provides abstractions and helpers specifically for React DOM, which makes working with forms simpler, more maintainable, and intuitive. -## Requirements +### Requirements -- **[lynxts/core](../core/README.md):** Same as the `@lynxts/web` version used -- **[React.js](https://react.dev/):** >=16.8.0 -- **[React DOM](https://www.npmjs.com/package/react-dom):** >=16.8.0 -- **[Yup](https://github.com/jquense/yup):** >=1.0.0 +* [**lynxts/core**](../core/)**:** Same as the `@lynxts/web` version used +* [**React.js**](https://react.dev/)**:** >=16.8.0 +* [**React DOM**](https://www.npmjs.com/package/react-dom)**:** >=16.8.0 +* [**Yup**](https://github.com/jquense/yup)**:** >=1.0.0 -## Install +### Install Using Yarn: + ``` yarn add @lynxts/core @lynxts/web react react-dom yup ``` Using NPM: + ``` npm i @lynxts/core @lynxts/web react react-dom yup ``` -## Usage +### Usage + +To make using forms in React.js web applications as simple as possible, `@lynxts/web` provides a `
` React component, which is nothing more than a -To make using forms in React.js web applications as simple as possible, `@lynxts/web` provides a `` React component, which is nothing more than a [ element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form) wrapped around Lynx.ts ``. This component accepts all the attributes of a `` plus all the `` props which you can use to set up the context. With this approach, your forms will not only be semantically correct, but you can also use a [