@prokodo/ui 0.1.7 → 0.1.9

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,8 +1,8 @@
1
1
  import type { ButtonDefaultProps } from "./Button.model";
2
- declare const _default: import("react").ForwardRefExoticComponent<(Omit<ButtonDefaultProps, "ref"> | Omit<Omit<import("./Button.model").ButtonProperties, "title" | "aria-label"> & {
2
+ declare const _default: import("react").ForwardRefExoticComponent<(Omit<ButtonDefaultProps, "ref"> | Omit<Omit<import("./Button.model").ButtonProperties, "title" | "image" | "aria-label"> & {
3
3
  iconProps: import("../icon").IconProps;
4
4
  "aria-label": string;
5
- }, "ref"> | Omit<Omit<import("./Button.model").ButtonProperties, "title" | "aria-label"> & {
5
+ }, "ref"> | Omit<Omit<import("./Button.model").ButtonProperties, "title" | "image" | "aria-label"> & {
6
6
  iconProps: import("../icon").IconProps;
7
7
  inert: boolean;
8
8
  }, "ref">) & import("react").RefAttributes<HTMLButtonElement>>;
@@ -1,4 +1,5 @@
1
1
  import type { IconProps } from "../icon";
2
+ import type { ImageProps } from "../image";
2
3
  import type { LinkProps } from "../link";
3
4
  import type { Ref, ButtonHTMLAttributes, ComponentType, ReactNode } from "react";
4
5
  export type ButtonRef = Ref<HTMLButtonElement>;
@@ -12,6 +13,7 @@ export type ButtonProperties = Omit<ButtonHTMLAttributes<HTMLButtonElement>, "co
12
13
  loading?: boolean;
13
14
  redirect?: LinkProps;
14
15
  disabled?: boolean;
16
+ image?: ImageProps;
15
17
  variant?: "contained" | "outlined" | "text";
16
18
  };
17
19
  export type ButtonDefaultProps = Omit<ButtonProperties, "title"> & {
@@ -19,16 +21,17 @@ export type ButtonDefaultProps = Omit<ButtonProperties, "title"> & {
19
21
  iconProps?: IconProps;
20
22
  "aria-label"?: string;
21
23
  };
22
- export type ButtonIconProps = (Omit<ButtonProperties, "title" | "aria-label"> & {
24
+ export type ButtonIconProps = (Omit<ButtonProperties, "title" | "aria-label" | "image"> & {
23
25
  iconProps: IconProps;
24
26
  "aria-label": string;
25
- }) | (Omit<ButtonProperties, "title" | "aria-label"> & {
27
+ }) | (Omit<ButtonProperties, "title" | "aria-label" | "image"> & {
26
28
  iconProps: IconProps;
27
29
  inert: boolean;
28
30
  });
29
31
  export type ButtonProps = ButtonIconProps | ButtonDefaultProps;
30
32
  export type ButtonViewProps = ButtonProps & {
31
33
  isIconOnly: boolean;
34
+ image?: ImageProps;
32
35
  LinkComponent: ComponentType<{
33
36
  href: string;
34
37
  className: string;