@cube-dev/ui-kit 0.6.21 → 0.6.25

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.
@@ -4,10 +4,10 @@ import { AriaButtonProps } from '@react-types/button';
4
4
  export interface CubeActionProps extends BaseProps, TagNameProps, BaseStyleProps, ContainerStyleProps, TextStyleProps, Omit<AriaButtonProps, 'type'> {
5
5
  to?: string;
6
6
  label?: string;
7
- skipWarnings?: boolean;
8
7
  preventDefault?: boolean;
9
- onClick?: MouseEventHandler;
10
8
  htmlType?: 'button' | 'submit' | 'reset' | undefined;
9
+ onClick?: MouseEventHandler;
10
+ allowNativeEvents?: boolean;
11
11
  }
12
12
  /**
13
13
  * Helper to open link.
@@ -1,8 +1,9 @@
1
- /// <reference types="react" />
1
+ import { MouseEventHandler } from 'react';
2
2
  import { BaseProps, BaseStyleProps, ContainerStyleProps, TagNameProps, TextStyleProps } from '../../types';
3
3
  import { FocusableOptions } from '@react-aria/focus';
4
4
  export interface CubeActiveZoneProps extends BaseProps, TagNameProps, BaseStyleProps, ContainerStyleProps, TextStyleProps, FocusableOptions {
5
5
  label?: string;
6
+ onClick?: MouseEventHandler;
6
7
  }
7
8
  declare const _ActiveZone: import("react").ForwardRefExoticComponent<CubeActiveZoneProps & import("react").RefAttributes<unknown>>;
8
9
  export { _ActiveZone as ActiveZone };
@@ -40,7 +40,7 @@ export interface BasePropsWithoutChildren extends Pick<AllHTMLAttributes<HTMLEle
40
40
  }
41
41
  export interface BaseProps extends BasePropsWithoutChildren, Pick<AllHTMLAttributes<HTMLElementTagNameMap['div']>, 'children'> {
42
42
  }
43
- export interface AllBaseProps<K extends keyof HTMLElementTagNameMap = 'div'> extends BaseProps, Omit<AllHTMLAttributes<HTMLElementTagNameMap[K]>, 'style' | 'size'> {
43
+ export interface AllBaseProps<K extends keyof HTMLElementTagNameMap = 'div'> extends BaseProps, Omit<AllHTMLAttributes<HTMLElementTagNameMap[K]>, 'style' | 'size' | 'disabled' | 'hidden'> {
44
44
  as?: string;
45
45
  }
46
46
  export declare type BaseStyleProps = Pick<Styles, typeof BASE_STYLES[number]>;