@kakadu/components 1.1.21 → 1.1.22

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,4 @@
1
- import React, { type ReactNode, type HTMLProps } from 'react';
1
+ import { type ReactNode, type HTMLProps } from 'react';
2
2
  import { type IconType } from '../icons/icon';
3
3
  export declare enum ButtonVariant {
4
4
  primary = "primary",
@@ -13,8 +13,8 @@ export declare const buttonDangerStyles: string;
13
13
  type BaseButtonProperties = Omit<HTMLProps<HTMLButtonElement>, 'children'> & {
14
14
  readonly variant?: ButtonVariant;
15
15
  readonly tooltip?: string;
16
- readonly iconLeft?: IconType | React.ReactNode;
17
- readonly iconRight?: IconType | React.ReactNode;
16
+ readonly iconLeft?: IconType | ReactNode;
17
+ readonly iconRight?: IconType | ReactNode;
18
18
  readonly isLoading?: boolean;
19
19
  readonly hasMovingGradients?: boolean;
20
20
  readonly movingGradientsCount?: number;
@@ -1,4 +1,4 @@
1
- import React, { type ComponentType } from 'react';
1
+ import { type ComponentType, type ReactNode } from 'react';
2
2
  type InitialFocusElement = HTMLElement | null;
3
3
  type ModalProviderProperties<Data = any> = {
4
4
  isVisible: boolean;
@@ -16,7 +16,7 @@ export type ModalProperties<Data = any> = {
16
16
  readonly shouldCloseOnOutsideClick?: boolean;
17
17
  readonly shouldCloseOnEscapePress?: boolean;
18
18
  readonly onClose?: (data?: Data) => void;
19
- readonly children?: React.ReactNode;
19
+ readonly children?: ReactNode;
20
20
  };
21
21
  type ModalBaseProperties<ModalResult> = Omit<ModalProperties<ModalResult>, 'isVisible' | 'onClose'>;
22
22
  export default function Modal<Data = any>({ root, maxWidth, className, isVisible, isFullWidth, shouldCloseOnOutsideClick, shouldCloseOnEscapePress, showCloseButton, onClose, children, }: ModalProperties<Data>): import("react/jsx-runtime").JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kakadu/components",
3
- "version": "1.1.21",
3
+ "version": "1.1.22",
4
4
  "description": "Kakadu components library",
5
5
  "license": "MIT",
6
6
  "main": "./build/index.js",