@altiore/form
Advanced tools
Comparing version 0.3.29 to 0.3.30
import { FormProps } from './types'; | ||
/** | ||
* Компонент Form принимает children, defaultValues, onSubmit | ||
/** Форма - элемент взаимодействия пользователя с сайтом или приложением | ||
* | ||
* @component | ||
* | ||
* @typedef Form | ||
* @prop {React.ReactNode} [children] Childrens формы | ||
* @prop {React.ReactNode} [defaultValues] Дефолтные значения | ||
* @prop {func} [onSubmit] ... | ||
* | ||
* @example | ||
*import {Form} from '@altiore/form'; | ||
* const Template: ComponentStory<typeof Form> = ({children, ...args}) => ( | ||
*<Form {...args}>{children}</Form> | ||
*); | ||
* return (any) | ||
* Простейший вариант формы выглядит следующим образом: мы используем элементы <input name="name"/> и <button type="submit">Submit</button>, предварительно импортировав ее из библиотеки <a href ='https://github.com/altiore/form'>@altiore/form</a>. | ||
*/ | ||
export declare const Form: <Values extends Record<string, any> = Record<string, any>>({ children, defaultValues, onSubmit, }: FormProps<Values>) => JSX.Element; |
@@ -20,18 +20,5 @@ var __assign = (this && this.__assign) || function () { | ||
import { FieldType } from '../@common/types'; | ||
/** | ||
* Компонент Form принимает children, defaultValues, onSubmit | ||
/** Форма - элемент взаимодействия пользователя с сайтом или приложением | ||
* | ||
* @component | ||
* | ||
* @typedef Form | ||
* @prop {React.ReactNode} [children] Childrens формы | ||
* @prop {React.ReactNode} [defaultValues] Дефолтные значения | ||
* @prop {func} [onSubmit] ... | ||
* | ||
* @example | ||
*import {Form} from '@altiore/form'; | ||
* const Template: ComponentStory<typeof Form> = ({children, ...args}) => ( | ||
*<Form {...args}>{children}</Form> | ||
*); | ||
* return (any) | ||
* Простейший вариант формы выглядит следующим образом: мы используем элементы <input name="name"/> и <button type="submit">Submit</button>, предварительно импортировав ее из библиотеки <a href ='https://github.com/altiore/form'>@altiore/form</a>. | ||
*/ | ||
@@ -38,0 +25,0 @@ export var Form = function (_a) { |
{ | ||
"name": "@altiore/form", | ||
"version": "0.3.29", | ||
"version": "0.3.30", | ||
"description": "Form helper for building powerful forms", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
69262
1394