main repo

This commit is contained in:
Basilosaurusrex
2025-11-24 18:09:40 +01:00
parent b636ee5e70
commit f027651f9b
34146 changed files with 4436636 additions and 0 deletions

21
node_modules/react-hook-form/LICENSE generated vendored Normal file
View File

@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2019-present Beier(Bill) Luo
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

147
node_modules/react-hook-form/README.md generated vendored Normal file
View File

@@ -0,0 +1,147 @@
<div align="center">
<a href="https://react-hook-form.com" title="React Hook Form - Simple React forms validation">
<img src="https://raw.githubusercontent.com/react-hook-form/react-hook-form/master/docs/logo.png" alt="React Hook Form Logo - React hook custom hook for form validation" />
</a>
</div>
<div align="center">
[![npm downloads](https://img.shields.io/npm/dm/react-hook-form.svg?style=for-the-badge)](https://www.npmjs.com/package/react-hook-form)
[![npm](https://img.shields.io/npm/dt/react-hook-form.svg?style=for-the-badge)](https://www.npmjs.com/package/react-hook-form)
[![npm](https://img.shields.io/npm/l/react-hook-form?style=for-the-badge)](https://github.com/react-hook-form/react-hook-form/blob/master/LICENSE)
[![Discord](https://img.shields.io/discord/754891658327359538.svg?style=for-the-badge&label=&logo=discord&logoColor=ffffff&color=7389D8&labelColor=6A7EC2)](https://discord.gg/yYv7GZ8)
</div>
<p align="center">
<a href="https://react-hook-form.com/get-started">Get started</a> |
<a href="https://react-hook-form.com/docs">API</a> |
<a href="https://react-hook-form.com/form-builder">Form Builder</a> |
<a href="https://react-hook-form.com/faqs">FAQs</a> |
<a href="https://github.com/react-hook-form/react-hook-form/tree/master/examples">Examples</a>
</p>
### Features
- Built with performance, UX and DX in mind
- Embraces native HTML form [validation](https://react-hook-form.com/get-started#Applyvalidation)
- Out of the box integration with [UI libraries](https://codesandbox.io/s/react-hook-form-v7-controller-5h1q5)
- [Small size](https://bundlephobia.com/result?p=react-hook-form@latest) and no [dependencies](./package.json)
- Support [Yup](https://github.com/jquense/yup), [Zod](https://github.com/colinhacks/zod), [AJV](https://github.com/ajv-validator/ajv), [Superstruct](https://github.com/ianstormtaylor/superstruct), [Joi](https://github.com/hapijs/joi) and [others](https://github.com/react-hook-form/resolvers)
### Install
npm install react-hook-form
### Quickstart
```jsx
import { useForm } from 'react-hook-form';
function App() {
const {
register,
handleSubmit,
formState: { errors },
} = useForm();
return (
<form onSubmit={handleSubmit((data) => console.log(data))}>
<input {...register('firstName')} />
<input {...register('lastName', { required: true })} />
{errors.lastName && <p>Last name is required.</p>}
<input {...register('age', { pattern: /\d+/ })} />
{errors.age && <p>Please enter number for age.</p>}
<input type="submit" />
</form>
);
}
```
<a href="https://ui.dev/bytes/?r=bill">
<img src="https://raw.githubusercontent.com/react-hook-form/react-hook-form/master/docs/ads-1.jpeg" />
</a>
### Sponsors
Thanks go to these kind and lovely sponsors!
<a target="_blank" href='https://route4me.com/'>
<img width="94" src="https://images.opencollective.com/route4me/71fb6fa/avatar/256.png?height=256" />
</a>
<a target="_blank" href='https://toss.im'>
<img width="94" src="https://images.opencollective.com/toss/3ed69b3/logo/256.png" />
</a>
<a target="_blank" href='https://principal.com/about-us'>
<img width="94" src="https://images.opencollective.com/principal/431e690/logo/256.png?height=256" />
</a>
<a target="_blank" href="https://graphcms.com">
<img width="94" src="https://avatars.githubusercontent.com/u/31031438" />
</a>
<a target="_blank" href="https://www.beekai.com/">
<img width="94" src="https://www.beekai.com/marketing/logo/logo.svg" />
</a>
<a target="_blank" href="https://kanamekey.com">
<img width="94" src="https://images.opencollective.com/kaname/d15fd98/logo/256.png" />
</a>
<a target="_blank" href="https://www.casinoreviews.net/">
<img width="94" src="https://images.opencollective.com/casinoreviews/f0877d1/logo/256.png" />
</a>
### Past sponsors
<a href="https://www.leniolabs.com/" target="_blank">
<img src="https://images.opencollective.com/leniolabs_/63e9b6e/logo/256.png" width="48" height="48" />
</a>
<a target="_blank" href="https://underbelly.is">
<img width="48" src="https://images.opencollective.com/underbelly/989a4a6/logo/256.png" />
</a>
<a target="_blank" href="https://feathery.io">
<img width="48" src="https://images.opencollective.com/feathery1/c29b0a1/logo/256.png" />
</a>
<a target="_blank" href="https://getform.io">
<img width="48" src="https://images.opencollective.com/getformio2/3c978c8/avatar/256.png" />
</a>
<a href="https://marmelab.com/" target="_blank">
<img src="https://images.opencollective.com/marmelab/d7fd82f/logo/256.png" width="48" height="48" />
</a>
<a target="_blank" href="https://formcarry.com/">
<img width="48" src="https://images.opencollective.com/formcarry/a40a4ea/logo/256.png" />
</a>
<a target="_blank" href="https://fabform.io">
<img width="48" src="https://images.opencollective.com/fabform/2834037/logo/256.png" />
</a>
<a target="_blank" href="https://www.thinkmill.com.au/">
<img width="48" src="https://images.opencollective.com/thinkmill/28910ec/logo/256.png" />
</a>
<a target="_blank" href="https://kwork.studio/">
<img width="48" src="https://images.opencollective.com/knowledge-work/f91b72d/logo/256.png" />
</a>
<a target="_blank" href="https://fiberplane.com/">
<img width="48" src="https://avatars.githubusercontent.com/u/61152955?s=200&v=4" />
</a>
<a target="_blank" href="https://www.jetbrains.com/">
<img width="48" src="https://resources.jetbrains.com/storage/products/company/brand/logos/jb_beam.png" />
</a>
<a target="_blank" href="https://www.mirakl.com/">
<img width="48" src="https://images.opencollective.com/mirakl/0b191f0/logo/256.png" />
</a>
<a target="_blank" href='https://wantedlyinc.com'>
<img width="48" src="https://images.opencollective.com/wantedly/d94e44e/logo/256.png" />
</a>
### Backers
Thanks go to all our backers! [[Become a backer](https://opencollective.com/react-hook-form#backer)].
<a href="https://opencollective.com/react-hook-form#backers">
<img src="https://opencollective.com/react-hook-form/backers.svg?width=950" />
</a>
### Contributors
Thanks go to these wonderful people! [[Become a contributor](CONTRIBUTING.md)].
<a href="https://github.com/react-hook-form/react-hook-form/graphs/contributors">
<img src="https://opencollective.com/react-hook-form/contributors.svg?width=890&button=false" />
</a>

View File

@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=controller.server.test.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"controller.server.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/controller.server.test.tsx"],"names":[],"mappings":""}

View File

@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=controller.test.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"controller.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/controller.test.tsx"],"names":[],"mappings":""}

View File

@@ -0,0 +1,2 @@
import 'whatwg-fetch';
//# sourceMappingURL=form.test.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"form.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/form.test.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC"}

View File

@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=validateField.test.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"validateField.test.d.ts","sourceRoot":"","sources":["../../../src/__tests__/logic/validateField.test.tsx"],"names":[],"mappings":""}

View File

@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=type.test.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"type.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/type.test.tsx"],"names":[],"mappings":""}

View File

@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=useController.test.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"useController.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/useController.test.tsx"],"names":[],"mappings":""}

View File

@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=useFieldArray.test.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"useFieldArray.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/useFieldArray.test.tsx"],"names":[],"mappings":""}

View File

@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=append.test.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"append.test.d.ts","sourceRoot":"","sources":["../../../src/__tests__/useFieldArray/append.test.tsx"],"names":[],"mappings":""}

View File

@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=focus.test.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"focus.test.d.ts","sourceRoot":"","sources":["../../../src/__tests__/useFieldArray/focus.test.tsx"],"names":[],"mappings":""}

View File

@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=insert.test.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"insert.test.d.ts","sourceRoot":"","sources":["../../../src/__tests__/useFieldArray/insert.test.tsx"],"names":[],"mappings":""}

View File

@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=move.test.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"move.test.d.ts","sourceRoot":"","sources":["../../../src/__tests__/useFieldArray/move.test.tsx"],"names":[],"mappings":""}

View File

@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=prepend.test.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"prepend.test.d.ts","sourceRoot":"","sources":["../../../src/__tests__/useFieldArray/prepend.test.tsx"],"names":[],"mappings":""}

View File

@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=remove.test.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"remove.test.d.ts","sourceRoot":"","sources":["../../../src/__tests__/useFieldArray/remove.test.tsx"],"names":[],"mappings":""}

View File

@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=replace.test.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"replace.test.d.ts","sourceRoot":"","sources":["../../../src/__tests__/useFieldArray/replace.test.tsx"],"names":[],"mappings":""}

View File

@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=swap.test.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"swap.test.d.ts","sourceRoot":"","sources":["../../../src/__tests__/useFieldArray/swap.test.tsx"],"names":[],"mappings":""}

View File

@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=update.test.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"update.test.d.ts","sourceRoot":"","sources":["../../../src/__tests__/useFieldArray/update.test.tsx"],"names":[],"mappings":""}

View File

@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=useForm.server.test.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"useForm.server.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/useForm.server.test.tsx"],"names":[],"mappings":""}

View File

@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=useForm.test.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"useForm.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/useForm.test.tsx"],"names":[],"mappings":""}

View File

@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=clearErrors.test.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"clearErrors.test.d.ts","sourceRoot":"","sources":["../../../src/__tests__/useForm/clearErrors.test.tsx"],"names":[],"mappings":""}

View File

@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=formState.test.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"formState.test.d.ts","sourceRoot":"","sources":["../../../src/__tests__/useForm/formState.test.tsx"],"names":[],"mappings":""}

View File

@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=getFieldState.test.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"getFieldState.test.d.ts","sourceRoot":"","sources":["../../../src/__tests__/useForm/getFieldState.test.tsx"],"names":[],"mappings":""}

View File

@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=getValues.test.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"getValues.test.d.ts","sourceRoot":"","sources":["../../../src/__tests__/useForm/getValues.test.tsx"],"names":[],"mappings":""}

View File

@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=handleSubmit.test.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"handleSubmit.test.d.ts","sourceRoot":"","sources":["../../../src/__tests__/useForm/handleSubmit.test.tsx"],"names":[],"mappings":""}

View File

@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=register.test.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"register.test.d.ts","sourceRoot":"","sources":["../../../src/__tests__/useForm/register.test.tsx"],"names":[],"mappings":""}

View File

@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=reset.test.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"reset.test.d.ts","sourceRoot":"","sources":["../../../src/__tests__/useForm/reset.test.tsx"],"names":[],"mappings":""}

View File

@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=resetField.test.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"resetField.test.d.ts","sourceRoot":"","sources":["../../../src/__tests__/useForm/resetField.test.tsx"],"names":[],"mappings":""}

View File

@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=resolver.test.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"resolver.test.d.ts","sourceRoot":"","sources":["../../../src/__tests__/useForm/resolver.test.tsx"],"names":[],"mappings":""}

View File

@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=setError.test.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"setError.test.d.ts","sourceRoot":"","sources":["../../../src/__tests__/useForm/setError.test.tsx"],"names":[],"mappings":""}

View File

@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=setValue.test.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"setValue.test.d.ts","sourceRoot":"","sources":["../../../src/__tests__/useForm/setValue.test.tsx"],"names":[],"mappings":""}

View File

@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=trigger.test.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"trigger.test.d.ts","sourceRoot":"","sources":["../../../src/__tests__/useForm/trigger.test.tsx"],"names":[],"mappings":""}

View File

@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=unregister.test.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"unregister.test.d.ts","sourceRoot":"","sources":["../../../src/__tests__/useForm/unregister.test.tsx"],"names":[],"mappings":""}

View File

@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=watch.test.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"watch.test.d.ts","sourceRoot":"","sources":["../../../src/__tests__/useForm/watch.test.tsx"],"names":[],"mappings":""}

View File

@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=useFormContext.server.test.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"useFormContext.server.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/useFormContext.server.test.tsx"],"names":[],"mappings":""}

View File

@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=useFormContext.test.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"useFormContext.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/useFormContext.test.tsx"],"names":[],"mappings":""}

View File

@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=useFormState.test.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"useFormState.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/useFormState.test.tsx"],"names":[],"mappings":""}

View File

@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=useWatch.test.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"useWatch.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/useWatch.test.tsx"],"names":[],"mappings":""}

View File

@@ -0,0 +1,5 @@
export * from './pathString';
export * from './traversable';
export * from './tuple';
export * from './type';
//# sourceMappingURL=index.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/__typetest__/__fixtures__/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC"}

View File

@@ -0,0 +1,4 @@
type ConcatTenTimes<T extends string> = `${T}.${T}.${T}.${T}.${T}.${T}.${T}.${T}.${T}.${T}`;
export type HundredPathString<T extends string> = ConcatTenTimes<ConcatTenTimes<T>>;
export {};
//# sourceMappingURL=pathString.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"pathString.d.ts","sourceRoot":"","sources":["../../../src/__typetest__/__fixtures__/pathString.ts"],"names":[],"mappings":"AAAA,KAAK,cAAc,CAAC,CAAC,SAAS,MAAM,IAClC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;AAEtD,MAAM,MAAM,iBAAiB,CAAC,CAAC,SAAS,MAAM,IAAI,cAAc,CAC9D,cAAc,CAAC,CAAC,CAAC,CAClB,CAAC"}

View File

@@ -0,0 +1,14 @@
interface Base<T, V> {
foo: T;
bar: [T];
baz: Array<T>;
value: V;
}
export type InfiniteType<T> = Base<InfiniteType<T>, T>;
export type NullableInfiniteType<T> = null | undefined | Partial<Base<NullableInfiniteType<T>, T>>;
export type Depth3Type<T> = Base<Base<Base<never, T>, T>, T>;
export interface Nested<T> {
nested: T;
}
export {};
//# sourceMappingURL=traversable.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"traversable.d.ts","sourceRoot":"","sources":["../../../src/__typetest__/__fixtures__/traversable.ts"],"names":[],"mappings":"AAAA,UAAU,IAAI,CAAC,CAAC,EAAE,CAAC;IACjB,GAAG,EAAE,CAAC,CAAC;IACP,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC;IACT,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC;IACd,KAAK,EAAE,CAAC,CAAC;CACV;AAED,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAEvD,MAAM,MAAM,oBAAoB,CAAC,CAAC,IAC9B,IAAI,GACJ,SAAS,GACT,OAAO,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;AAE9C,MAAM,MAAM,UAAU,CAAC,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAE7D,MAAM,WAAW,MAAM,CAAC,CAAC;IACvB,MAAM,EAAE,CAAC,CAAC;CACX"}

View File

@@ -0,0 +1,15 @@
type ConcatTupleTenTimes<T extends unknown[]> = [
...T,
...T,
...T,
...T,
...T,
...T,
...T,
...T,
...T,
...T
];
export type HundredTuple<T> = ConcatTupleTenTimes<ConcatTupleTenTimes<[T]>>;
export {};
//# sourceMappingURL=tuple.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"tuple.d.ts","sourceRoot":"","sources":["../../../src/__typetest__/__fixtures__/tuple.ts"],"names":[],"mappings":"AAAA,KAAK,mBAAmB,CAAC,CAAC,SAAS,OAAO,EAAE,IAAI;IAC9C,GAAG,CAAC;IACJ,GAAG,CAAC;IACJ,GAAG,CAAC;IACJ,GAAG,CAAC;IACJ,GAAG,CAAC;IACJ,GAAG,CAAC;IACJ,GAAG,CAAC;IACJ,GAAG,CAAC;IACJ,GAAG,CAAC;IACJ,GAAG,CAAC;CACL,CAAC;AAEF,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,mBAAmB,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC"}

View File

@@ -0,0 +1,12 @@
/**
* tsd expects a value when calling expectType.
* We're mostly dealing with types though. Therefore,
* simply export this const and cast it to the expected type.
* @example
* ```
* type Actual = DropLastElement<[0, 1, 2]>;
* expectType<[0, 1]>(_ as Actual);
* ```
*/
export declare const _: never;
//# sourceMappingURL=type.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/__typetest__/__fixtures__/type.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,KAAK,CAAC"}

View File

@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=errors.test-d.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"errors.test-d.d.ts","sourceRoot":"","sources":["../../src/__typetest__/errors.test-d.ts"],"names":[],"mappings":""}

View File

@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=form.test-d.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"form.test-d.d.ts","sourceRoot":"","sources":["../../src/__typetest__/form.test-d.ts"],"names":[],"mappings":""}

View File

@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=common.test-d.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"common.test-d.d.ts","sourceRoot":"","sources":["../../../src/__typetest__/path/common.test-d.ts"],"names":[],"mappings":""}

View File

@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=eager.test-d.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"eager.test-d.d.ts","sourceRoot":"","sources":["../../../src/__typetest__/path/eager.test-d.ts"],"names":[],"mappings":""}

View File

@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=util.test-d.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"util.test-d.d.ts","sourceRoot":"","sources":["../../src/__typetest__/util.test-d.ts"],"names":[],"mappings":""}

22
node_modules/react-hook-form/dist/constants.d.ts generated vendored Normal file
View File

@@ -0,0 +1,22 @@
export declare const EVENTS: {
readonly BLUR: "blur";
readonly FOCUS_OUT: "focusout";
readonly CHANGE: "change";
};
export declare const VALIDATION_MODE: {
readonly onBlur: "onBlur";
readonly onChange: "onChange";
readonly onSubmit: "onSubmit";
readonly onTouched: "onTouched";
readonly all: "all";
};
export declare const INPUT_VALIDATION_RULES: {
readonly max: "max";
readonly min: "min";
readonly maxLength: "maxLength";
readonly minLength: "minLength";
readonly pattern: "pattern";
readonly required: "required";
readonly validate: "validate";
};
//# sourceMappingURL=constants.d.ts.map

1
node_modules/react-hook-form/dist/constants.d.ts.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;CAIT,CAAC;AAEX,eAAO,MAAM,eAAe;;;;;;CAMlB,CAAC;AAEX,eAAO,MAAM,sBAAsB;;;;;;;;CAQzB,CAAC"}

46
node_modules/react-hook-form/dist/controller.d.ts generated vendored Normal file
View File

@@ -0,0 +1,46 @@
import { ControllerProps, FieldPath, FieldValues } from './types';
/**
* Component based on `useController` hook to work with controlled component.
*
* @remarks
* [API](https://react-hook-form.com/docs/usecontroller/controller) • [Demo](https://codesandbox.io/s/react-hook-form-v6-controller-ts-jwyzw) • [Video](https://www.youtube.com/watch?v=N2UNk_UCVyA)
*
* @param props - the path name to the form field value, and validation rules.
*
* @returns provide field handler functions, field and form state.
*
* @example
* ```tsx
* function App() {
* const { control } = useForm<FormValues>({
* defaultValues: {
* test: ""
* }
* });
*
* return (
* <form>
* <Controller
* control={control}
* name="test"
* render={({ field: { onChange, onBlur, value, ref }, formState, fieldState }) => (
* <>
* <input
* onChange={onChange} // send value to hook form
* onBlur={onBlur} // notify when input is touched
* value={value} // return updated value
* ref={ref} // set ref for focus management
* />
* <p>{formState.isSubmitted ? "submitted" : ""}</p>
* <p>{fieldState.isTouched ? "touched" : ""}</p>
* </>
* )}
* />
* </form>
* );
* }
* ```
*/
declare const Controller: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>(props: ControllerProps<TFieldValues, TName>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
export { Controller };
//# sourceMappingURL=controller.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"controller.d.ts","sourceRoot":"","sources":["../src/controller.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAGlE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,QAAA,MAAM,UAAU,GACd,YAAY,SAAS,WAAW,gBAChC,KAAK,SAAS,SAAS,CAAC,YAAY,CAAC,mCAE9B,eAAe,CAAC,YAAY,EAAE,KAAK,CAAC,2FACe,CAAC;AAE7D,OAAO,EAAE,UAAU,EAAE,CAAC"}

27
node_modules/react-hook-form/dist/form.d.ts generated vendored Normal file
View File

@@ -0,0 +1,27 @@
import React from 'react';
import { FieldValues, FormProps } from './types';
/**
* Form component to manage submission.
*
* @param props - to setup submission detail. {@link FormProps}
*
* @returns form component or headless render prop.
*
* @example
* ```tsx
* function App() {
* const { control, formState: { errors } } = useForm();
*
* return (
* <Form action="/api" control={control}>
* <input {...register("name")} />
* <p>{errors?.root?.server && 'Server error'}</p>
* <button>Submit</button>
* </Form>
* );
* }
* ```
*/
declare function Form<T extends FieldValues, U extends FieldValues | undefined = undefined>(props: FormProps<T, U>): React.JSX.Element;
export { Form };
//# sourceMappingURL=form.d.ts.map

1
node_modules/react-hook-form/dist/form.d.ts.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../src/form.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAKjD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,iBAAS,IAAI,CACX,CAAC,SAAS,WAAW,EACrB,CAAC,SAAS,WAAW,GAAG,SAAS,GAAG,SAAS,EAC7C,KAAK,EAAE,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,qBA+GvB;AAED,OAAO,EAAE,IAAI,EAAE,CAAC"}

Some files were not shown because too many files have changed in this diff Show More