@epilot/volt-ui 1.1.10 → 1.1.12
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/components/field/field.d.ts +8 -3
- package/dist/index.cjs.js +15 -15
- package/dist/index.es.js +2037 -2035
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -5,7 +5,9 @@ type FieldInputRef = HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement
|
|
|
5
5
|
declare const useFieldContext: () => {
|
|
6
6
|
inputRef: React.RefObject<FieldInputRef>;
|
|
7
7
|
};
|
|
8
|
-
declare const FieldGroup: ({ className, ...props }: React.ComponentProps<"div">
|
|
8
|
+
declare const FieldGroup: ({ className, direction, ...props }: React.ComponentProps<"div"> & {
|
|
9
|
+
direction?: "column" | "row";
|
|
10
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
9
11
|
declare const FieldSet: ({ className, ...props }: React.ComponentProps<"fieldset">) => import("react/jsx-runtime").JSX.Element;
|
|
10
12
|
declare const fieldVariants: (props?: ({
|
|
11
13
|
variant?: "destructive" | "default" | "highlight" | "readonly" | null | undefined;
|
|
@@ -22,10 +24,13 @@ type FieldLabelContentProps = React.ComponentProps<"div"> & {
|
|
|
22
24
|
showOnHover?: boolean;
|
|
23
25
|
};
|
|
24
26
|
declare const FieldLabelContent: ({ className, showOnHover, ...props }: FieldLabelContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
25
|
-
declare const
|
|
27
|
+
declare const fieldDescriptionVariants: (props?: ({
|
|
28
|
+
variant?: "default" | "helper" | null | undefined;
|
|
29
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
30
|
+
declare const FieldDescription: ({ className, variant, ...props }: React.ComponentProps<"p"> & VariantProps<typeof fieldDescriptionVariants>) => import("react/jsx-runtime").JSX.Element;
|
|
26
31
|
declare const FieldError: ({ className, children, errors, ...props }: React.ComponentProps<"div"> & {
|
|
27
32
|
errors?: Array<{
|
|
28
33
|
message?: string;
|
|
29
34
|
} | undefined>;
|
|
30
35
|
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
31
|
-
export { Field, FieldSet, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLabelContent, useFieldContext, fieldVariants, };
|
|
36
|
+
export { Field, FieldSet, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLabelContent, useFieldContext, fieldVariants, fieldDescriptionVariants, };
|