@medway-ui/core 1.16.11 → 1.16.13

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.d.mts CHANGED
@@ -29,17 +29,35 @@ interface AlertButtonProps extends ComponentProps<"button">, VariantProps<typeof
29
29
  }
30
30
  declare function AlertButton({ className, variant, ...props }: AlertButtonProps): react_jsx_runtime.JSX.Element;
31
31
 
32
+ interface ButtonProps extends ComponentProps<"button">, VariantProps<typeof buttonVariants> {
33
+ asChild?: boolean;
34
+ containerClassName?: string;
35
+ iconRight?: ReactNode;
36
+ iconLeft?: ReactNode;
37
+ badge?: number | string;
38
+ loading?: boolean;
39
+ alert?: string;
40
+ }
41
+ declare const buttonVariants: (props?: ({
42
+ variant?: "regular" | "emphasis" | "success" | "warning" | "error" | "regular-soft" | "regular-basic" | "emphasis-soft" | "emphasis-basic" | "error-soft" | "error-basic" | "warning-soft" | "warning-basic" | "success-soft" | "success-basic" | "outlined" | "gradient" | "medbrain" | null | undefined;
43
+ size?: "sm" | "md" | "lg" | "xl" | null | undefined;
44
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
45
+ declare function Button({ className, containerClassName, variant, size, asChild, iconRight, iconLeft, badge, loading, alert, ...props }: ButtonProps): react_jsx_runtime.JSX.Element;
46
+
47
+ interface AlertDialogContentProps extends ComponentProps<typeof AlertDialog$1.Content> {
48
+ overlayClassName?: string;
49
+ }
32
50
  declare function AlertDialog({ ...props }: ComponentProps<typeof AlertDialog$1.Root>): react_jsx_runtime.JSX.Element;
33
51
  declare function AlertDialogTrigger({ ...props }: ComponentProps<typeof AlertDialog$1.Trigger>): react_jsx_runtime.JSX.Element;
34
52
  declare function AlertDialogPortal({ ...props }: ComponentProps<typeof AlertDialog$1.Portal>): react_jsx_runtime.JSX.Element;
35
53
  declare function AlertDialogOverlay({ className, ...props }: ComponentProps<typeof AlertDialog$1.Overlay>): react_jsx_runtime.JSX.Element;
36
- declare function AlertDialogContent({ className, ...props }: ComponentProps<typeof AlertDialog$1.Content>): react_jsx_runtime.JSX.Element;
54
+ declare function AlertDialogContent({ className, overlayClassName, ...props }: AlertDialogContentProps): react_jsx_runtime.JSX.Element;
37
55
  declare function AlertDialogHeader({ className, ...props }: ComponentProps<"div">): react_jsx_runtime.JSX.Element;
38
56
  declare function AlertDialogFooter({ className, ...props }: ComponentProps<"div">): react_jsx_runtime.JSX.Element;
39
57
  declare function AlertDialogTitle({ className, ...props }: ComponentProps<typeof AlertDialog$1.Title>): react_jsx_runtime.JSX.Element;
40
58
  declare function AlertDialogDescription({ className, ...props }: ComponentProps<typeof AlertDialog$1.Description>): react_jsx_runtime.JSX.Element;
41
- declare function AlertDialogAction({ className, ...props }: ComponentProps<typeof AlertDialog$1.Action>): react_jsx_runtime.JSX.Element;
42
- declare function AlertDialogCancel({ className, ...props }: ComponentProps<typeof AlertDialog$1.Cancel>): react_jsx_runtime.JSX.Element;
59
+ declare function AlertDialogAction({ className, variant, size, ...props }: ComponentProps<typeof AlertDialog$1.Action> & VariantProps<typeof buttonVariants>): react_jsx_runtime.JSX.Element;
60
+ declare function AlertDialogCancel({ className, variant, size, ...props }: ComponentProps<typeof AlertDialog$1.Cancel> & VariantProps<typeof buttonVariants>): react_jsx_runtime.JSX.Element;
43
61
 
44
62
  /**
45
63
  * Command component - Forked from cmdk (https://github.com/pacocoursey/cmdk)
@@ -218,21 +236,6 @@ declare function BreadcrumbPage({ className, ...props }: ComponentProps<"span">)
218
236
  declare function BreadcrumbSeparator({ children, className, ...props }: ComponentProps<"li">): react_jsx_runtime.JSX.Element;
219
237
  declare function BreadcrumbEllipsis({ className, ...props }: ComponentProps<"span">): react_jsx_runtime.JSX.Element;
220
238
 
221
- interface ButtonProps extends ComponentProps<"button">, VariantProps<typeof buttonVariants> {
222
- asChild?: boolean;
223
- containerClassName?: string;
224
- iconRight?: ReactNode;
225
- iconLeft?: ReactNode;
226
- badge?: number | string;
227
- loading?: boolean;
228
- alert?: string;
229
- }
230
- declare const buttonVariants: (props?: ({
231
- variant?: "regular" | "emphasis" | "success" | "warning" | "error" | "regular-soft" | "regular-basic" | "emphasis-soft" | "emphasis-basic" | "error-soft" | "error-basic" | "warning-soft" | "warning-basic" | "success-soft" | "success-basic" | "outlined" | "gradient" | "medbrain" | null | undefined;
232
- size?: "sm" | "md" | "lg" | "xl" | null | undefined;
233
- } & class_variance_authority_types.ClassProp) | undefined) => string;
234
- declare function Button({ className, containerClassName, variant, size, asChild, iconRight, iconLeft, badge, loading, alert, ...props }: ButtonProps): react_jsx_runtime.JSX.Element;
235
-
236
239
  interface ProgressCircleProps extends ComponentProps<"div"> {
237
240
  value: number | string;
238
241
  size?: number;
package/dist/index.d.ts CHANGED
@@ -29,17 +29,35 @@ interface AlertButtonProps extends ComponentProps<"button">, VariantProps<typeof
29
29
  }
30
30
  declare function AlertButton({ className, variant, ...props }: AlertButtonProps): react_jsx_runtime.JSX.Element;
31
31
 
32
+ interface ButtonProps extends ComponentProps<"button">, VariantProps<typeof buttonVariants> {
33
+ asChild?: boolean;
34
+ containerClassName?: string;
35
+ iconRight?: ReactNode;
36
+ iconLeft?: ReactNode;
37
+ badge?: number | string;
38
+ loading?: boolean;
39
+ alert?: string;
40
+ }
41
+ declare const buttonVariants: (props?: ({
42
+ variant?: "regular" | "emphasis" | "success" | "warning" | "error" | "regular-soft" | "regular-basic" | "emphasis-soft" | "emphasis-basic" | "error-soft" | "error-basic" | "warning-soft" | "warning-basic" | "success-soft" | "success-basic" | "outlined" | "gradient" | "medbrain" | null | undefined;
43
+ size?: "sm" | "md" | "lg" | "xl" | null | undefined;
44
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
45
+ declare function Button({ className, containerClassName, variant, size, asChild, iconRight, iconLeft, badge, loading, alert, ...props }: ButtonProps): react_jsx_runtime.JSX.Element;
46
+
47
+ interface AlertDialogContentProps extends ComponentProps<typeof AlertDialog$1.Content> {
48
+ overlayClassName?: string;
49
+ }
32
50
  declare function AlertDialog({ ...props }: ComponentProps<typeof AlertDialog$1.Root>): react_jsx_runtime.JSX.Element;
33
51
  declare function AlertDialogTrigger({ ...props }: ComponentProps<typeof AlertDialog$1.Trigger>): react_jsx_runtime.JSX.Element;
34
52
  declare function AlertDialogPortal({ ...props }: ComponentProps<typeof AlertDialog$1.Portal>): react_jsx_runtime.JSX.Element;
35
53
  declare function AlertDialogOverlay({ className, ...props }: ComponentProps<typeof AlertDialog$1.Overlay>): react_jsx_runtime.JSX.Element;
36
- declare function AlertDialogContent({ className, ...props }: ComponentProps<typeof AlertDialog$1.Content>): react_jsx_runtime.JSX.Element;
54
+ declare function AlertDialogContent({ className, overlayClassName, ...props }: AlertDialogContentProps): react_jsx_runtime.JSX.Element;
37
55
  declare function AlertDialogHeader({ className, ...props }: ComponentProps<"div">): react_jsx_runtime.JSX.Element;
38
56
  declare function AlertDialogFooter({ className, ...props }: ComponentProps<"div">): react_jsx_runtime.JSX.Element;
39
57
  declare function AlertDialogTitle({ className, ...props }: ComponentProps<typeof AlertDialog$1.Title>): react_jsx_runtime.JSX.Element;
40
58
  declare function AlertDialogDescription({ className, ...props }: ComponentProps<typeof AlertDialog$1.Description>): react_jsx_runtime.JSX.Element;
41
- declare function AlertDialogAction({ className, ...props }: ComponentProps<typeof AlertDialog$1.Action>): react_jsx_runtime.JSX.Element;
42
- declare function AlertDialogCancel({ className, ...props }: ComponentProps<typeof AlertDialog$1.Cancel>): react_jsx_runtime.JSX.Element;
59
+ declare function AlertDialogAction({ className, variant, size, ...props }: ComponentProps<typeof AlertDialog$1.Action> & VariantProps<typeof buttonVariants>): react_jsx_runtime.JSX.Element;
60
+ declare function AlertDialogCancel({ className, variant, size, ...props }: ComponentProps<typeof AlertDialog$1.Cancel> & VariantProps<typeof buttonVariants>): react_jsx_runtime.JSX.Element;
43
61
 
44
62
  /**
45
63
  * Command component - Forked from cmdk (https://github.com/pacocoursey/cmdk)
@@ -218,21 +236,6 @@ declare function BreadcrumbPage({ className, ...props }: ComponentProps<"span">)
218
236
  declare function BreadcrumbSeparator({ children, className, ...props }: ComponentProps<"li">): react_jsx_runtime.JSX.Element;
219
237
  declare function BreadcrumbEllipsis({ className, ...props }: ComponentProps<"span">): react_jsx_runtime.JSX.Element;
220
238
 
221
- interface ButtonProps extends ComponentProps<"button">, VariantProps<typeof buttonVariants> {
222
- asChild?: boolean;
223
- containerClassName?: string;
224
- iconRight?: ReactNode;
225
- iconLeft?: ReactNode;
226
- badge?: number | string;
227
- loading?: boolean;
228
- alert?: string;
229
- }
230
- declare const buttonVariants: (props?: ({
231
- variant?: "regular" | "emphasis" | "success" | "warning" | "error" | "regular-soft" | "regular-basic" | "emphasis-soft" | "emphasis-basic" | "error-soft" | "error-basic" | "warning-soft" | "warning-basic" | "success-soft" | "success-basic" | "outlined" | "gradient" | "medbrain" | null | undefined;
232
- size?: "sm" | "md" | "lg" | "xl" | null | undefined;
233
- } & class_variance_authority_types.ClassProp) | undefined) => string;
234
- declare function Button({ className, containerClassName, variant, size, asChild, iconRight, iconLeft, badge, loading, alert, ...props }: ButtonProps): react_jsx_runtime.JSX.Element;
235
-
236
239
  interface ProgressCircleProps extends ComponentProps<"div"> {
237
240
  value: number | string;
238
241
  size?: number;