├── .eslintrc ├── .github └── workflows │ └── ci.yml ├── .github_changelog_generator ├── .gitignore ├── .nvmrc ├── .prettierrc.yml ├── CHANGELOG.md ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── docs ├── .DS_Store ├── .nvmrc ├── .parcelrc ├── babel.config.js ├── package-lock.json ├── package.json ├── sitemap-ignore.json ├── src │ ├── App.tsx │ ├── assets │ │ ├── OpenGraph.png │ │ ├── icon.svg │ │ ├── maskable-icon.svg │ │ ├── nav-button.svg │ │ └── readme-logo.svg │ ├── components │ │ ├── Editor.tsx │ │ ├── HeadingLink.tsx │ │ ├── Navigation.tsx │ │ └── examples │ │ │ ├── dynamic-forms.tsx │ │ │ └── static-forms.tsx │ ├── global.d.ts │ ├── index.html │ ├── index.tsx │ ├── pages │ │ ├── About.mdx │ │ ├── api │ │ │ ├── FielderProvider.mdx │ │ │ ├── useField.mdx │ │ │ ├── useForm.mdx │ │ │ ├── useFormContext.mdx │ │ │ └── useSubmit.mdx │ │ ├── examples │ │ │ ├── dynamic-forms.mdx │ │ │ └── static-forms.mdx │ │ └── guides │ │ │ ├── getting-started.mdx │ │ │ ├── react-native.mdx │ │ │ ├── submission.mdx │ │ │ ├── type-safety.mdx │ │ │ └── validation.mdx │ ├── robots.txt │ ├── routes.ts │ ├── scale.ts │ └── service-worker.tsx ├── tsconfig.json └── webpack.config.mjs ├── examples ├── 1-basics │ ├── .npmrc │ ├── .nvmrc │ ├── cypress.json │ ├── cypress │ │ ├── integration │ │ │ └── index.ts │ │ └── tsconfig.json │ ├── index.html │ ├── package.json │ ├── setup.mjs │ ├── src │ │ ├── components │ │ │ ├── Card.css │ │ │ ├── Card.tsx │ │ │ └── index.ts │ │ ├── form │ │ │ ├── Form.tsx │ │ │ ├── FormContent.tsx │ │ │ └── index.ts │ │ ├── index.tsx │ │ └── util.tsx │ ├── styles │ │ ├── button.css │ │ ├── card.css │ │ ├── form.css │ │ ├── label.css │ │ ├── site.css │ │ ├── step.css │ │ └── style.css │ └── tsconfig.json ├── 2-multi-step │ ├── .npmrc │ ├── .nvmrc │ ├── cypress.json │ ├── cypress │ │ ├── integration │ │ │ └── index.ts │ │ └── tsconfig.json │ ├── index.html │ ├── package.json │ ├── setup.mjs │ ├── src │ │ ├── components │ │ │ ├── Card.css │ │ │ ├── Card.tsx │ │ │ ├── FormSection.tsx │ │ │ └── index.ts │ │ ├── index.tsx │ │ ├── register-form │ │ │ ├── Form.tsx │ │ │ ├── index.ts │ │ │ └── sections │ │ │ │ ├── Credentials.tsx │ │ │ │ ├── Terms.tsx │ │ │ │ └── index.ts │ │ └── util.tsx │ ├── styles │ │ ├── button.css │ │ ├── card.css │ │ ├── form.css │ │ ├── label.css │ │ ├── site.css │ │ ├── step.css │ │ └── style.css │ └── tsconfig.json ├── 3-branching │ ├── .npmrc │ ├── .nvmrc │ ├── cypress.json │ ├── cypress │ │ ├── integration │ │ │ └── index.ts │ │ └── tsconfig.json │ ├── index.html │ ├── package.json │ ├── setup.mjs │ ├── src │ │ ├── index.html │ │ ├── index.tsx │ │ └── register-form │ │ │ ├── Form.tsx │ │ │ ├── index.tsx │ │ │ ├── sections │ │ │ ├── GettingStarted.tsx │ │ │ ├── Login.tsx │ │ │ ├── SignUp.tsx │ │ │ └── index.ts │ │ │ └── validation.ts │ ├── styles │ │ ├── button.css │ │ ├── card.css │ │ ├── form.css │ │ ├── label.css │ │ ├── site.css │ │ ├── step.css │ │ └── style.css │ └── tsconfig.json ├── 4-native │ ├── .expo-shared │ │ └── assets.json │ ├── .gitignore │ ├── App.js │ ├── app.json │ ├── assets │ │ ├── icon.png │ │ └── splash.png │ ├── babel.config.js │ └── package.json └── README.md ├── jest.config.js ├── package.json ├── preact └── package.json ├── react-to-preact.js ├── rollup.config.js ├── src ├── __snapshots__ │ └── useForm.spec.tsx.snap ├── actions │ ├── blurField.ts │ ├── mountField.ts │ ├── setFieldState.ts │ ├── setFieldValidation.ts │ ├── setFieldValue.ts │ ├── unmountField.ts │ ├── util.ts │ ├── validateField.ts │ └── validateSubmission.ts ├── context.ts ├── index.ts ├── types.ts ├── useField.spec.tsx ├── useField.ts ├── useForm.spec.tsx ├── useForm.ts ├── useSubmit.ts ├── useSynchronousReducer.ts ├── util │ └── index.ts └── validation │ ├── applyValidationToState.ts │ └── batchValidationErrors.ts └── tsconfig.json /.eslintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/.eslintrc -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.github_changelog_generator: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/.github_changelog_generator -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/.gitignore -------------------------------------------------------------------------------- /.nvmrc: -------------------------------------------------------------------------------- 1 | 16 -------------------------------------------------------------------------------- /.prettierrc.yml: -------------------------------------------------------------------------------- 1 | singleQuote: true 2 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/README.md -------------------------------------------------------------------------------- /docs/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/docs/.DS_Store -------------------------------------------------------------------------------- /docs/.nvmrc: -------------------------------------------------------------------------------- 1 | 16 -------------------------------------------------------------------------------- /docs/.parcelrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/docs/.parcelrc -------------------------------------------------------------------------------- /docs/babel.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/docs/babel.config.js -------------------------------------------------------------------------------- /docs/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/docs/package-lock.json -------------------------------------------------------------------------------- /docs/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/docs/package.json -------------------------------------------------------------------------------- /docs/sitemap-ignore.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/docs/sitemap-ignore.json -------------------------------------------------------------------------------- /docs/src/App.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/docs/src/App.tsx -------------------------------------------------------------------------------- /docs/src/assets/OpenGraph.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/docs/src/assets/OpenGraph.png -------------------------------------------------------------------------------- /docs/src/assets/icon.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/docs/src/assets/icon.svg -------------------------------------------------------------------------------- /docs/src/assets/maskable-icon.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/docs/src/assets/maskable-icon.svg -------------------------------------------------------------------------------- /docs/src/assets/nav-button.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/docs/src/assets/nav-button.svg -------------------------------------------------------------------------------- /docs/src/assets/readme-logo.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/docs/src/assets/readme-logo.svg -------------------------------------------------------------------------------- /docs/src/components/Editor.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/docs/src/components/Editor.tsx -------------------------------------------------------------------------------- /docs/src/components/HeadingLink.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/docs/src/components/HeadingLink.tsx -------------------------------------------------------------------------------- /docs/src/components/Navigation.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/docs/src/components/Navigation.tsx -------------------------------------------------------------------------------- /docs/src/components/examples/dynamic-forms.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/docs/src/components/examples/dynamic-forms.tsx -------------------------------------------------------------------------------- /docs/src/components/examples/static-forms.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/docs/src/components/examples/static-forms.tsx -------------------------------------------------------------------------------- /docs/src/global.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/docs/src/global.d.ts -------------------------------------------------------------------------------- /docs/src/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/docs/src/index.html -------------------------------------------------------------------------------- /docs/src/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/docs/src/index.tsx -------------------------------------------------------------------------------- /docs/src/pages/About.mdx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/docs/src/pages/About.mdx -------------------------------------------------------------------------------- /docs/src/pages/api/FielderProvider.mdx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/docs/src/pages/api/FielderProvider.mdx -------------------------------------------------------------------------------- /docs/src/pages/api/useField.mdx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/docs/src/pages/api/useField.mdx -------------------------------------------------------------------------------- /docs/src/pages/api/useForm.mdx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/docs/src/pages/api/useForm.mdx -------------------------------------------------------------------------------- /docs/src/pages/api/useFormContext.mdx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/docs/src/pages/api/useFormContext.mdx -------------------------------------------------------------------------------- /docs/src/pages/api/useSubmit.mdx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/docs/src/pages/api/useSubmit.mdx -------------------------------------------------------------------------------- /docs/src/pages/examples/dynamic-forms.mdx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/docs/src/pages/examples/dynamic-forms.mdx -------------------------------------------------------------------------------- /docs/src/pages/examples/static-forms.mdx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/docs/src/pages/examples/static-forms.mdx -------------------------------------------------------------------------------- /docs/src/pages/guides/getting-started.mdx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/docs/src/pages/guides/getting-started.mdx -------------------------------------------------------------------------------- /docs/src/pages/guides/react-native.mdx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/docs/src/pages/guides/react-native.mdx -------------------------------------------------------------------------------- /docs/src/pages/guides/submission.mdx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/docs/src/pages/guides/submission.mdx -------------------------------------------------------------------------------- /docs/src/pages/guides/type-safety.mdx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/docs/src/pages/guides/type-safety.mdx -------------------------------------------------------------------------------- /docs/src/pages/guides/validation.mdx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/docs/src/pages/guides/validation.mdx -------------------------------------------------------------------------------- /docs/src/robots.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/docs/src/robots.txt -------------------------------------------------------------------------------- /docs/src/routes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/docs/src/routes.ts -------------------------------------------------------------------------------- /docs/src/scale.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/docs/src/scale.ts -------------------------------------------------------------------------------- /docs/src/service-worker.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/docs/src/service-worker.tsx -------------------------------------------------------------------------------- /docs/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/docs/tsconfig.json -------------------------------------------------------------------------------- /docs/webpack.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/docs/webpack.config.mjs -------------------------------------------------------------------------------- /examples/1-basics/.npmrc: -------------------------------------------------------------------------------- 1 | package-lock=false -------------------------------------------------------------------------------- /examples/1-basics/.nvmrc: -------------------------------------------------------------------------------- 1 | 15 -------------------------------------------------------------------------------- /examples/1-basics/cypress.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/examples/1-basics/cypress.json -------------------------------------------------------------------------------- /examples/1-basics/cypress/integration/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/examples/1-basics/cypress/integration/index.ts -------------------------------------------------------------------------------- /examples/1-basics/cypress/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/examples/1-basics/cypress/tsconfig.json -------------------------------------------------------------------------------- /examples/1-basics/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/examples/1-basics/index.html -------------------------------------------------------------------------------- /examples/1-basics/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/examples/1-basics/package.json -------------------------------------------------------------------------------- /examples/1-basics/setup.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/examples/1-basics/setup.mjs -------------------------------------------------------------------------------- /examples/1-basics/src/components/Card.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/examples/1-basics/src/components/Card.css -------------------------------------------------------------------------------- /examples/1-basics/src/components/Card.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/examples/1-basics/src/components/Card.tsx -------------------------------------------------------------------------------- /examples/1-basics/src/components/index.ts: -------------------------------------------------------------------------------- 1 | export * from './Card'; 2 | -------------------------------------------------------------------------------- /examples/1-basics/src/form/Form.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/examples/1-basics/src/form/Form.tsx -------------------------------------------------------------------------------- /examples/1-basics/src/form/FormContent.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/examples/1-basics/src/form/FormContent.tsx -------------------------------------------------------------------------------- /examples/1-basics/src/form/index.ts: -------------------------------------------------------------------------------- 1 | export * from './Form'; 2 | -------------------------------------------------------------------------------- /examples/1-basics/src/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/examples/1-basics/src/index.tsx -------------------------------------------------------------------------------- /examples/1-basics/src/util.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/examples/1-basics/src/util.tsx -------------------------------------------------------------------------------- /examples/1-basics/styles/button.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/examples/1-basics/styles/button.css -------------------------------------------------------------------------------- /examples/1-basics/styles/card.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/examples/1-basics/styles/card.css -------------------------------------------------------------------------------- /examples/1-basics/styles/form.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/examples/1-basics/styles/form.css -------------------------------------------------------------------------------- /examples/1-basics/styles/label.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/examples/1-basics/styles/label.css -------------------------------------------------------------------------------- /examples/1-basics/styles/site.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/examples/1-basics/styles/site.css -------------------------------------------------------------------------------- /examples/1-basics/styles/step.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/examples/1-basics/styles/step.css -------------------------------------------------------------------------------- /examples/1-basics/styles/style.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/examples/1-basics/styles/style.css -------------------------------------------------------------------------------- /examples/1-basics/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/examples/1-basics/tsconfig.json -------------------------------------------------------------------------------- /examples/2-multi-step/.npmrc: -------------------------------------------------------------------------------- 1 | package-lock=false -------------------------------------------------------------------------------- /examples/2-multi-step/.nvmrc: -------------------------------------------------------------------------------- 1 | 15 -------------------------------------------------------------------------------- /examples/2-multi-step/cypress.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/examples/2-multi-step/cypress.json -------------------------------------------------------------------------------- /examples/2-multi-step/cypress/integration/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/examples/2-multi-step/cypress/integration/index.ts -------------------------------------------------------------------------------- /examples/2-multi-step/cypress/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/examples/2-multi-step/cypress/tsconfig.json -------------------------------------------------------------------------------- /examples/2-multi-step/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/examples/2-multi-step/index.html -------------------------------------------------------------------------------- /examples/2-multi-step/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/examples/2-multi-step/package.json -------------------------------------------------------------------------------- /examples/2-multi-step/setup.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/examples/2-multi-step/setup.mjs -------------------------------------------------------------------------------- /examples/2-multi-step/src/components/Card.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/examples/2-multi-step/src/components/Card.css -------------------------------------------------------------------------------- /examples/2-multi-step/src/components/Card.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/examples/2-multi-step/src/components/Card.tsx -------------------------------------------------------------------------------- /examples/2-multi-step/src/components/FormSection.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/examples/2-multi-step/src/components/FormSection.tsx -------------------------------------------------------------------------------- /examples/2-multi-step/src/components/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/examples/2-multi-step/src/components/index.ts -------------------------------------------------------------------------------- /examples/2-multi-step/src/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/examples/2-multi-step/src/index.tsx -------------------------------------------------------------------------------- /examples/2-multi-step/src/register-form/Form.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/examples/2-multi-step/src/register-form/Form.tsx -------------------------------------------------------------------------------- /examples/2-multi-step/src/register-form/index.ts: -------------------------------------------------------------------------------- 1 | export * from './Form'; 2 | -------------------------------------------------------------------------------- /examples/2-multi-step/src/register-form/sections/Credentials.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/examples/2-multi-step/src/register-form/sections/Credentials.tsx -------------------------------------------------------------------------------- /examples/2-multi-step/src/register-form/sections/Terms.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/examples/2-multi-step/src/register-form/sections/Terms.tsx -------------------------------------------------------------------------------- /examples/2-multi-step/src/register-form/sections/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/examples/2-multi-step/src/register-form/sections/index.ts -------------------------------------------------------------------------------- /examples/2-multi-step/src/util.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/examples/2-multi-step/src/util.tsx -------------------------------------------------------------------------------- /examples/2-multi-step/styles/button.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/examples/2-multi-step/styles/button.css -------------------------------------------------------------------------------- /examples/2-multi-step/styles/card.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/examples/2-multi-step/styles/card.css -------------------------------------------------------------------------------- /examples/2-multi-step/styles/form.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/examples/2-multi-step/styles/form.css -------------------------------------------------------------------------------- /examples/2-multi-step/styles/label.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/examples/2-multi-step/styles/label.css -------------------------------------------------------------------------------- /examples/2-multi-step/styles/site.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/examples/2-multi-step/styles/site.css -------------------------------------------------------------------------------- /examples/2-multi-step/styles/step.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/examples/2-multi-step/styles/step.css -------------------------------------------------------------------------------- /examples/2-multi-step/styles/style.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/examples/2-multi-step/styles/style.css -------------------------------------------------------------------------------- /examples/2-multi-step/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/examples/2-multi-step/tsconfig.json -------------------------------------------------------------------------------- /examples/3-branching/.npmrc: -------------------------------------------------------------------------------- 1 | package-lock=false -------------------------------------------------------------------------------- /examples/3-branching/.nvmrc: -------------------------------------------------------------------------------- 1 | 15 -------------------------------------------------------------------------------- /examples/3-branching/cypress.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/examples/3-branching/cypress.json -------------------------------------------------------------------------------- /examples/3-branching/cypress/integration/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/examples/3-branching/cypress/integration/index.ts -------------------------------------------------------------------------------- /examples/3-branching/cypress/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/examples/3-branching/cypress/tsconfig.json -------------------------------------------------------------------------------- /examples/3-branching/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/examples/3-branching/index.html -------------------------------------------------------------------------------- /examples/3-branching/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/examples/3-branching/package.json -------------------------------------------------------------------------------- /examples/3-branching/setup.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/examples/3-branching/setup.mjs -------------------------------------------------------------------------------- /examples/3-branching/src/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/examples/3-branching/src/index.html -------------------------------------------------------------------------------- /examples/3-branching/src/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/examples/3-branching/src/index.tsx -------------------------------------------------------------------------------- /examples/3-branching/src/register-form/Form.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/examples/3-branching/src/register-form/Form.tsx -------------------------------------------------------------------------------- /examples/3-branching/src/register-form/index.tsx: -------------------------------------------------------------------------------- 1 | export * from './Form'; 2 | -------------------------------------------------------------------------------- /examples/3-branching/src/register-form/sections/GettingStarted.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/examples/3-branching/src/register-form/sections/GettingStarted.tsx -------------------------------------------------------------------------------- /examples/3-branching/src/register-form/sections/Login.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/examples/3-branching/src/register-form/sections/Login.tsx -------------------------------------------------------------------------------- /examples/3-branching/src/register-form/sections/SignUp.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/examples/3-branching/src/register-form/sections/SignUp.tsx -------------------------------------------------------------------------------- /examples/3-branching/src/register-form/sections/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/examples/3-branching/src/register-form/sections/index.ts -------------------------------------------------------------------------------- /examples/3-branching/src/register-form/validation.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/examples/3-branching/src/register-form/validation.ts -------------------------------------------------------------------------------- /examples/3-branching/styles/button.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/examples/3-branching/styles/button.css -------------------------------------------------------------------------------- /examples/3-branching/styles/card.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/examples/3-branching/styles/card.css -------------------------------------------------------------------------------- /examples/3-branching/styles/form.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/examples/3-branching/styles/form.css -------------------------------------------------------------------------------- /examples/3-branching/styles/label.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/examples/3-branching/styles/label.css -------------------------------------------------------------------------------- /examples/3-branching/styles/site.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/examples/3-branching/styles/site.css -------------------------------------------------------------------------------- /examples/3-branching/styles/step.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/examples/3-branching/styles/step.css -------------------------------------------------------------------------------- /examples/3-branching/styles/style.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/examples/3-branching/styles/style.css -------------------------------------------------------------------------------- /examples/3-branching/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/examples/3-branching/tsconfig.json -------------------------------------------------------------------------------- /examples/4-native/.expo-shared/assets.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/examples/4-native/.expo-shared/assets.json -------------------------------------------------------------------------------- /examples/4-native/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/examples/4-native/.gitignore -------------------------------------------------------------------------------- /examples/4-native/App.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/examples/4-native/App.js -------------------------------------------------------------------------------- /examples/4-native/app.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/examples/4-native/app.json -------------------------------------------------------------------------------- /examples/4-native/assets/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/examples/4-native/assets/icon.png -------------------------------------------------------------------------------- /examples/4-native/assets/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/examples/4-native/assets/splash.png -------------------------------------------------------------------------------- /examples/4-native/babel.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/examples/4-native/babel.config.js -------------------------------------------------------------------------------- /examples/4-native/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/examples/4-native/package.json -------------------------------------------------------------------------------- /examples/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/examples/README.md -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | preset: 'ts-jest', 3 | }; 4 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/package.json -------------------------------------------------------------------------------- /preact/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/preact/package.json -------------------------------------------------------------------------------- /react-to-preact.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/react-to-preact.js -------------------------------------------------------------------------------- /rollup.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/rollup.config.js -------------------------------------------------------------------------------- /src/__snapshots__/useForm.spec.tsx.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/src/__snapshots__/useForm.spec.tsx.snap -------------------------------------------------------------------------------- /src/actions/blurField.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/src/actions/blurField.ts -------------------------------------------------------------------------------- /src/actions/mountField.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/src/actions/mountField.ts -------------------------------------------------------------------------------- /src/actions/setFieldState.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/src/actions/setFieldState.ts -------------------------------------------------------------------------------- /src/actions/setFieldValidation.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/src/actions/setFieldValidation.ts -------------------------------------------------------------------------------- /src/actions/setFieldValue.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/src/actions/setFieldValue.ts -------------------------------------------------------------------------------- /src/actions/unmountField.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/src/actions/unmountField.ts -------------------------------------------------------------------------------- /src/actions/util.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/src/actions/util.ts -------------------------------------------------------------------------------- /src/actions/validateField.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/src/actions/validateField.ts -------------------------------------------------------------------------------- /src/actions/validateSubmission.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/src/actions/validateSubmission.ts -------------------------------------------------------------------------------- /src/context.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/src/context.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/src/types.ts -------------------------------------------------------------------------------- /src/useField.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/src/useField.spec.tsx -------------------------------------------------------------------------------- /src/useField.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/src/useField.ts -------------------------------------------------------------------------------- /src/useForm.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/src/useForm.spec.tsx -------------------------------------------------------------------------------- /src/useForm.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/src/useForm.ts -------------------------------------------------------------------------------- /src/useSubmit.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/src/useSubmit.ts -------------------------------------------------------------------------------- /src/useSynchronousReducer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/src/useSynchronousReducer.ts -------------------------------------------------------------------------------- /src/util/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/src/util/index.ts -------------------------------------------------------------------------------- /src/validation/applyValidationToState.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/src/validation/applyValidationToState.ts -------------------------------------------------------------------------------- /src/validation/batchValidationErrors.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/src/validation/batchValidationErrors.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrichardson/fielder/HEAD/tsconfig.json --------------------------------------------------------------------------------