@epilot/volt-ui 1.0.0 → 1.0.1

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.
@@ -1,20 +1,20 @@
1
1
  import * as React from "react";
2
2
  import { type VariantProps } from "class-variance-authority";
3
3
  declare const baseColors: {
4
- readonly blue: "text-blue-default";
5
- readonly sky: "text-sky-default";
6
- readonly mint: "text-mint-default";
7
- readonly green: "text-green-default";
8
- readonly teal: "text-teal-default";
9
- readonly cyan: "text-cyan-default";
10
- readonly indigo: "text-indigo-default";
11
- readonly purple: "text-purple-default";
12
- readonly pink: "text-pink-default";
13
- readonly red: "text-red-default";
14
- readonly orange: "text-orange-default";
15
- readonly yellow: "text-yellow-default";
16
- readonly bronze: "text-bronze-default";
17
- readonly gray: "text-gray-default";
4
+ readonly blue: "blue";
5
+ readonly sky: "sky";
6
+ readonly mint: "mint";
7
+ readonly green: "green";
8
+ readonly teal: "teal";
9
+ readonly cyan: "cyan";
10
+ readonly indigo: "indigo";
11
+ readonly purple: "purple";
12
+ readonly pink: "pink";
13
+ readonly red: "red";
14
+ readonly orange: "orange";
15
+ readonly yellow: "yellow";
16
+ readonly bronze: "bronze";
17
+ readonly gray: "gray";
18
18
  };
19
19
  declare const styleClasses: {
20
20
  readonly soft: (color: string) => string;
@@ -3,13 +3,12 @@ import { type VariantProps } from "class-variance-authority";
3
3
  declare const calloutVariants: (props?: ({
4
4
  type?: "destructive" | "gray" | "info" | "success" | "warning" | null | undefined;
5
5
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6
- declare const Callout: ({ className, type, ...props }: React.ComponentProps<"div"> & VariantProps<typeof calloutVariants>) => import("react/jsx-runtime").JSX.Element;
6
+ declare const Callout: ({ className, type, customIcon, ...props }: React.ComponentProps<"div"> & VariantProps<typeof calloutVariants> & {
7
+ customIcon?: React.ReactNode;
8
+ }) => import("react/jsx-runtime").JSX.Element;
7
9
  declare const CalloutTitle: ({ className, ...props }: React.ComponentProps<"div">) => import("react/jsx-runtime").JSX.Element;
8
10
  declare const CalloutDescription: ({ className, ...props }: React.ComponentProps<"div">) => import("react/jsx-runtime").JSX.Element;
9
11
  declare const CalloutAction: ({ className, align, ...props }: React.ComponentProps<"div"> & {
10
12
  align?: "start" | "end";
11
13
  }) => import("react/jsx-runtime").JSX.Element;
12
- declare const CalloutIcon: ({ className, custom, ...props }: React.ComponentProps<"svg"> & {
13
- custom?: React.ReactNode;
14
- }) => import("react/jsx-runtime").JSX.Element;
15
- export { Callout, CalloutTitle, CalloutDescription, CalloutIcon, CalloutAction };
14
+ export { Callout, CalloutTitle, CalloutDescription, CalloutAction };
@@ -1,16 +1,21 @@
1
1
  import * as React from "react";
2
2
  import { Label } from "../../components/label/label";
3
+ import { VariantProps } from "class-variance-authority";
3
4
  type FieldInputRef = HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement | HTMLButtonElement | null;
4
5
  declare const useFieldContext: () => {
5
6
  inputRef: React.RefObject<FieldInputRef>;
6
7
  };
7
8
  declare const FieldGroup: ({ className, ...props }: React.ComponentProps<"div">) => import("react/jsx-runtime").JSX.Element;
8
9
  declare const FieldSet: ({ className, ...props }: React.ComponentProps<"fieldset">) => import("react/jsx-runtime").JSX.Element;
10
+ declare const fieldVariants: (props?: ({
11
+ variant?: "destructive" | "default" | "highlight" | null | undefined;
12
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
9
13
  type FieldProps = React.ComponentProps<"div"> & {
10
14
  children: React.ReactNode;
11
15
  onClick?: (event: React.MouseEvent<HTMLDivElement>) => void;
16
+ variant?: VariantProps<typeof fieldVariants>["variant"];
12
17
  };
13
- declare const Field: ({ className, children, onClick, ...props }: FieldProps) => import("react/jsx-runtime").JSX.Element;
18
+ declare const Field: ({ className, variant, children, onClick, ...props }: FieldProps) => import("react/jsx-runtime").JSX.Element;
14
19
  declare const FieldContent: ({ className, ...props }: React.ComponentProps<"div">) => import("react/jsx-runtime").JSX.Element;
15
20
  declare const FieldLabel: ({ className, ...props }: React.ComponentProps<typeof Label>) => import("react/jsx-runtime").JSX.Element;
16
21
  type FieldLabelContentProps = React.ComponentProps<"div"> & {
@@ -23,4 +28,4 @@ declare const FieldError: ({ className, children, errors, ...props }: React.Comp
23
28
  message?: string;
24
29
  } | undefined>;
25
30
  }) => import("react/jsx-runtime").JSX.Element | null;
26
- export { Field, FieldSet, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLabelContent, useFieldContext, };
31
+ export { Field, FieldSet, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLabelContent, useFieldContext, fieldVariants, };