Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@altiore/form

Package Overview
Dependencies
Maintainers
1
Versions
187
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@altiore/form - npm Package Compare versions

Comparing version 0.3.25 to 0.3.26

4

dist/create-field-array/create-field-array.d.ts

@@ -52,2 +52,4 @@ import { ValidateFuncType } from '../@common/types';

*/
export declare const createFieldArray: <T extends FieldArrayProps>(component: (props: Omit<T, "validators"> & InternalFieldArrayProps) => JSX.Element) => (props: T) => JSX.Element;
export declare const createFieldArray: <T extends FieldArrayProps>(component: (props: Omit<T, "validators"> & InternalFieldArrayProps) => JSX.Element) => <Values extends Record<string, any> = Record<string, any>>(props: T & {
name: keyof Values;
}) => JSX.Element;
/// <reference types="react" />
import { ComponentMeta, ComponentStory } from '@storybook/react';
import FieldArray from './field-array';
declare const _default: ComponentMeta<(props: import("./field-array/field-array").IFieldArray) => JSX.Element>;
declare const _default: ComponentMeta<(<Values extends Record<string, any> = Record<string, any>>(props: import("./field-array/field-array").IFieldArray & {
name: keyof Values;
}) => JSX.Element)>;
export default _default;

@@ -6,0 +8,0 @@ export declare const SimplestFieldArray: ComponentStory<typeof FieldArray>;

/// <reference types="react" />
import { FieldArrayProps } from '..';
export declare const TagsArray: (props: FieldArrayProps) => JSX.Element;
export declare const TagsArray: <Values extends Record<string, any> = Record<string, any>>(props: FieldArrayProps & {
name: keyof Values;
}) => JSX.Element;
export interface IFieldArray extends FieldArrayProps {
label?: string;
}
export declare const FieldArray: (props: IFieldArray) => JSX.Element;
export declare const FieldArraySimplest: (props: IFieldArray) => JSX.Element;
export declare const FieldArray: <Values extends Record<string, any> = Record<string, any>>(props: IFieldArray & {
name: keyof Values;
}) => JSX.Element;
export declare const FieldArraySimplest: <Values extends Record<string, any> = Record<string, any>>(props: IFieldArray & {
name: keyof Values;
}) => JSX.Element;

@@ -5,3 +5,3 @@ import { FieldMeta, ValidateFuncType } from '../@common/types';

name: string;
defaultValue?: string;
defaultValue?: any;
validators?: Array<ValidateFuncType>;

@@ -35,2 +35,4 @@ };

*/
export declare const createField: <T extends FieldProps>(component: (props: Omit<T, "validators"> & InternalFieldProps & FieldMeta) => JSX.Element) => (props: T) => JSX.Element;
export declare const createField: <T extends FieldProps>(component: (props: Omit<T, "validators"> & InternalFieldProps & FieldMeta) => JSX.Element) => <Values extends Record<string, any> = Record<string, any>>(props: T & {
name: keyof Values;
}) => JSX.Element;
/// <reference types="react" />
import { ComponentMeta, ComponentStory } from '@storybook/react';
import Field from './field';
declare const _default: ComponentMeta<(props: import("./field/field").IField) => JSX.Element>;
declare const _default: ComponentMeta<(<Values extends Record<string, any> = Record<string, any>>(props: import("./field/field").IField & {
name: keyof Values;
}) => JSX.Element)>;
export default _default;
export declare const SimplestField: ComponentStory<typeof Field>;
export declare const InsideFormField: ComponentStory<typeof Field>;

@@ -6,2 +6,4 @@ /// <reference types="react" />

}
export declare const Field: (props: IField) => JSX.Element;
export declare const Field: <Values extends Record<string, any> = Record<string, any>>(props: IField & {
name: keyof Values;
}) => JSX.Element;
import { ReactNode } from 'react';
export interface FormProps {
export interface FormProps<Values extends Record<string, any>> {
children: ReactNode;
defaultValues?: Record<string, any>;
onSubmit: (values: unknown) => void;
defaultValues?: Partial<Values>;
onSubmit: (values: Partial<Values>) => void;
}

@@ -24,2 +24,2 @@ /**

*/
export declare const Form: ({ children, defaultValues, onSubmit, }: FormProps) => JSX.Element;
export declare const Form: <Values extends Record<string, any> = Record<string, any>>({ children, defaultValues, onSubmit, }: FormProps<Values>) => JSX.Element;
/// <reference types="react" />
import { ComponentMeta } from '@storybook/react';
declare const _default: ComponentMeta<({ children, defaultValues, onSubmit, }: import("./form").FormProps) => JSX.Element>;
declare const _default: ComponentMeta<(<Values extends Record<string, any> = Record<string, any>>({ children, defaultValues, onSubmit, }: import("./form").FormProps<Values>) => JSX.Element)>;
export default _default;
export declare const SimplestForm: any;
export declare const FormWithCustomField: any;
{
"name": "@altiore/form",
"version": "0.3.25",
"version": "0.3.26",
"description": "Form helper for building powerful forms",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc