@kakadu/components 1.7.2 → 1.7.3

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,4 +1,5 @@
1
- export default function ButtonTooltip({ label, className, }: {
1
+ export type ButtonTooltipProperties = {
2
2
  readonly label: string;
3
3
  readonly className?: string;
4
- }): import("react/jsx-runtime").JSX.Element;
4
+ };
5
+ export default function ButtonTooltip({ label, className, }: ButtonTooltipProperties): import("react/jsx-runtime").JSX.Element;
@@ -21,7 +21,7 @@ type BaseButtonProperties = Omit<HTMLProps<HTMLButtonElement>, 'children'> & {
21
21
  readonly hasMovingStars?: boolean;
22
22
  readonly movingStarsCount?: number;
23
23
  };
24
- type ButtonProperties = BaseButtonProperties & ({
24
+ export type ButtonProperties = BaseButtonProperties & ({
25
25
  children: ReactNode;
26
26
  label?: string;
27
27
  } | {
@@ -1,8 +1,9 @@
1
1
  import { type HTMLProps } from 'react';
2
2
  import { type IconType } from '../icons/icon';
3
- export default function Card({ icon, title, description, action, href, target, rel, className, ...properties }: {
3
+ export type CardProperties = HTMLProps<HTMLButtonElement> & {
4
4
  readonly icon?: IconType;
5
5
  readonly title: string;
6
6
  readonly description: string;
7
7
  readonly action: string;
8
- } & HTMLProps<HTMLButtonElement>): import("react/jsx-runtime").JSX.Element;
8
+ };
9
+ export default function Card({ icon, title, description, action, href, target, rel, className, ...properties }: CardProperties): import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,6 @@
1
- export default function Datum({ title, value, hasCopyButton, }: {
1
+ export type DatumProperties = {
2
2
  readonly title: string;
3
3
  readonly value: string;
4
4
  readonly hasCopyButton?: boolean;
5
- }): import("react/jsx-runtime").JSX.Element;
5
+ };
6
+ export default function Datum({ title, value, hasCopyButton }: DatumProperties): import("react/jsx-runtime").JSX.Element;
@@ -6,8 +6,9 @@ export declare enum IconButtonVariant {
6
6
  warning = "warning",
7
7
  danger = "danger"
8
8
  }
9
- export default function IconButton({ icon, variant, label, className, ...properties }: {
9
+ export type IconButtonProperties = HTMLProps<HTMLButtonElement> & {
10
10
  readonly icon: IconType;
11
11
  readonly variant?: IconButtonVariant;
12
12
  readonly label: string;
13
- } & HTMLProps<HTMLButtonElement>): import("react/jsx-runtime").JSX.Element;
13
+ };
14
+ export default function IconButton({ icon, variant, label, className, ...properties }: IconButtonProperties): import("react/jsx-runtime").JSX.Element;
@@ -6,7 +6,8 @@ export declare enum NoticeType {
6
6
  warning = "warning",
7
7
  danger = "danger"
8
8
  }
9
- export default function Notice({ type, icon, className, children, ...properties }: {
9
+ export type NoticeProperties = HTMLProps<HTMLDivElement> & {
10
10
  readonly type?: NoticeType;
11
11
  readonly icon?: IconType;
12
- } & HTMLProps<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
12
+ };
13
+ export default function Notice({ type, icon, className, children, ...properties }: NoticeProperties): import("react/jsx-runtime").JSX.Element;
@@ -9,7 +9,7 @@ type BaseTextButtonProperties = Omit<HTMLProps<HTMLButtonElement>, 'children'> &
9
9
  readonly variant?: TextButtonVariant;
10
10
  readonly tooltip?: string;
11
11
  };
12
- type TextButtonProperties = BaseTextButtonProperties & ({
12
+ export type TextButtonProperties = BaseTextButtonProperties & ({
13
13
  children: ReactNode;
14
14
  label?: string;
15
15
  } | {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kakadu/components",
3
- "version": "1.7.2",
3
+ "version": "1.7.3",
4
4
  "description": "Kakadu components library",
5
5
  "license": "MIT",
6
6
  "main": "./build/index.js",