@umami/react-zen 0.119.0 → 0.121.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +1418 -1413
- package/dist/index.d.mts +9 -10
- package/dist/index.d.ts +9 -10
- package/dist/index.js +782 -779
- package/dist/index.mjs +774 -771
- package/package.json +1 -1
- package/styles.css +1418 -1413
package/dist/index.d.mts
CHANGED
|
@@ -4,6 +4,15 @@ import * as react from 'react';
|
|
|
4
4
|
import { HTMLAttributes, ReactNode, ReactElement, Dispatch, SetStateAction } from 'react';
|
|
5
5
|
import { UseFormProps, SubmitHandler, UseFormReturn, RegisterOptions, FieldValues } from 'react-hook-form';
|
|
6
6
|
|
|
7
|
+
interface FormProps extends UseFormProps, Omit<HTMLAttributes<HTMLFormElement>, 'children'> {
|
|
8
|
+
autoComplete?: string;
|
|
9
|
+
onSubmit?: SubmitHandler<any>;
|
|
10
|
+
error?: ReactNode | Error;
|
|
11
|
+
preventSubmit?: boolean;
|
|
12
|
+
children?: ReactNode | ((e: UseFormReturn) => ReactNode);
|
|
13
|
+
}
|
|
14
|
+
declare function Form({ autoComplete, onSubmit, error, preventSubmit, mode, disabled, reValidateMode, defaultValues, values, errors, resetOptions, resolver, context, shouldFocusError, shouldUnregister, shouldUseNativeValidation, progressive, criteriaMode, delayError, className, children, ...props }: FormProps): react.JSX.Element;
|
|
15
|
+
|
|
7
16
|
declare const Breakpoints: readonly ["", "xs", "sm", "md", "lg", "xl"];
|
|
8
17
|
type Breakpoint = (typeof Breakpoints)[number];
|
|
9
18
|
type Responsive<T> = T | Partial<Record<Breakpoint, T>>;
|
|
@@ -50,16 +59,6 @@ type AlignItems = 'center' | 'start' | 'end' | 'flex-start' | 'flex-end' | 'self
|
|
|
50
59
|
type AlignSelf = 'center' | 'start' | 'end' | 'self-start' | 'self-end' | 'flex-start' | 'flex-end' | 'baseline' | 'stretch';
|
|
51
60
|
type ObjectFit = 'fill' | 'contain' | 'cover' | 'scale-down' | 'none';
|
|
52
61
|
|
|
53
|
-
interface FormProps extends UseFormProps, Omit<HTMLAttributes<HTMLFormElement>, 'children'> {
|
|
54
|
-
gap?: Responsive<Spacing>;
|
|
55
|
-
autoComplete?: string;
|
|
56
|
-
onSubmit?: SubmitHandler<any>;
|
|
57
|
-
error?: ReactNode | Error;
|
|
58
|
-
preventSubmit?: boolean;
|
|
59
|
-
children?: ReactNode | ((e: UseFormReturn) => ReactNode);
|
|
60
|
-
}
|
|
61
|
-
declare function Form({ gap, autoComplete, onSubmit, error, preventSubmit, mode, disabled, reValidateMode, defaultValues, values, errors, resetOptions, resolver, context, shouldFocusError, shouldUnregister, shouldUseNativeValidation, progressive, criteriaMode, delayError, className, children, ...props }: FormProps): react.JSX.Element;
|
|
62
|
-
|
|
63
62
|
interface BoxProps extends Omit<HTMLAttributes<HTMLElement>, 'color'> {
|
|
64
63
|
display?: Responsive<Display>;
|
|
65
64
|
color?: FontColor;
|
package/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,15 @@ import * as react from 'react';
|
|
|
4
4
|
import { HTMLAttributes, ReactNode, ReactElement, Dispatch, SetStateAction } from 'react';
|
|
5
5
|
import { UseFormProps, SubmitHandler, UseFormReturn, RegisterOptions, FieldValues } from 'react-hook-form';
|
|
6
6
|
|
|
7
|
+
interface FormProps extends UseFormProps, Omit<HTMLAttributes<HTMLFormElement>, 'children'> {
|
|
8
|
+
autoComplete?: string;
|
|
9
|
+
onSubmit?: SubmitHandler<any>;
|
|
10
|
+
error?: ReactNode | Error;
|
|
11
|
+
preventSubmit?: boolean;
|
|
12
|
+
children?: ReactNode | ((e: UseFormReturn) => ReactNode);
|
|
13
|
+
}
|
|
14
|
+
declare function Form({ autoComplete, onSubmit, error, preventSubmit, mode, disabled, reValidateMode, defaultValues, values, errors, resetOptions, resolver, context, shouldFocusError, shouldUnregister, shouldUseNativeValidation, progressive, criteriaMode, delayError, className, children, ...props }: FormProps): react.JSX.Element;
|
|
15
|
+
|
|
7
16
|
declare const Breakpoints: readonly ["", "xs", "sm", "md", "lg", "xl"];
|
|
8
17
|
type Breakpoint = (typeof Breakpoints)[number];
|
|
9
18
|
type Responsive<T> = T | Partial<Record<Breakpoint, T>>;
|
|
@@ -50,16 +59,6 @@ type AlignItems = 'center' | 'start' | 'end' | 'flex-start' | 'flex-end' | 'self
|
|
|
50
59
|
type AlignSelf = 'center' | 'start' | 'end' | 'self-start' | 'self-end' | 'flex-start' | 'flex-end' | 'baseline' | 'stretch';
|
|
51
60
|
type ObjectFit = 'fill' | 'contain' | 'cover' | 'scale-down' | 'none';
|
|
52
61
|
|
|
53
|
-
interface FormProps extends UseFormProps, Omit<HTMLAttributes<HTMLFormElement>, 'children'> {
|
|
54
|
-
gap?: Responsive<Spacing>;
|
|
55
|
-
autoComplete?: string;
|
|
56
|
-
onSubmit?: SubmitHandler<any>;
|
|
57
|
-
error?: ReactNode | Error;
|
|
58
|
-
preventSubmit?: boolean;
|
|
59
|
-
children?: ReactNode | ((e: UseFormReturn) => ReactNode);
|
|
60
|
-
}
|
|
61
|
-
declare function Form({ gap, autoComplete, onSubmit, error, preventSubmit, mode, disabled, reValidateMode, defaultValues, values, errors, resetOptions, resolver, context, shouldFocusError, shouldUnregister, shouldUseNativeValidation, progressive, criteriaMode, delayError, className, children, ...props }: FormProps): react.JSX.Element;
|
|
62
|
-
|
|
63
62
|
interface BoxProps extends Omit<HTMLAttributes<HTMLElement>, 'color'> {
|
|
64
63
|
display?: Responsive<Display>;
|
|
65
64
|
color?: FontColor;
|