@lumx/react 4.5.2-alpha.4 → 4.5.2-alpha.6

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.
Files changed (3) hide show
  1. package/index.d.ts +16 -16
  2. package/index.js.map +1 -1
  3. package/package.json +4 -4
package/index.d.ts CHANGED
@@ -762,9 +762,9 @@ declare const DEFAULT_PROPS: Partial<ButtonProps$1>;
762
762
 
763
763
  interface ButtonProps extends GenericProps$1, ReactToJSX<ButtonProps$1> {
764
764
  /** callback for clicking on the button */
765
- onClick?: (event?: React.MouseEvent) => void;
765
+ onClick?: (event: React.MouseEvent) => void;
766
766
  /** callback for pressing a key on the button */
767
- onKeyPress?: (event?: React.KeyboardEvent) => void;
767
+ onKeyPress?: (event: React.KeyboardEvent) => void;
768
768
  }
769
769
  /**
770
770
  * Button component.
@@ -773,7 +773,7 @@ interface ButtonProps extends GenericProps$1, ReactToJSX<ButtonProps$1> {
773
773
  * @param ref Component ref.
774
774
  * @return React element.
775
775
  */
776
- declare const Button: Comp<ButtonProps, HTMLButtonElement | HTMLAnchorElement>;
776
+ declare const Button: Comp<ButtonProps, HTMLAnchorElement | HTMLButtonElement>;
777
777
 
778
778
  interface IconButtonProps$1 extends BaseButtonProps {
779
779
  /**
@@ -804,9 +804,9 @@ interface IconButtonProps extends GenericProps$1, ReactToJSX<IconButtonProps$1,
804
804
  /** Whether the tooltip should be hidden or not. */
805
805
  hideTooltip?: boolean;
806
806
  /** callback for clicking on the button */
807
- onClick?: (event?: React.MouseEvent) => void;
807
+ onClick?: (event: React.MouseEvent) => void;
808
808
  /** callback for pressing a key on the button */
809
- onKeyPress?: (event?: React.KeyboardEvent) => void;
809
+ onKeyPress?: (event: React.KeyboardEvent) => void;
810
810
  }
811
811
  /**
812
812
  * IconButton component.
@@ -909,13 +909,13 @@ interface ChipProps$1 extends HasClassName, HasDisabled, HasTheme, HasAriaDisabl
909
909
  /** reference to the root element */
910
910
  ref?: CommonRef;
911
911
  /** On "after" element clicked callback. */
912
- handleAfterClick?: (event?: any) => void;
912
+ handleAfterClick?: (event: any) => void;
913
913
  /** On element key down callback. */
914
- handleKeyDown?: (event?: any) => void;
914
+ handleKeyDown?: (event: any) => void;
915
915
  /** On "before" element clicked callback. */
916
- handleBeforeClick?: (event?: any) => void;
916
+ handleBeforeClick?: (event: any) => void;
917
917
  /** On element clicked callback. */
918
- handleClick?: (event?: any) => void;
918
+ handleClick?: (event: any) => void;
919
919
  /** name of the prop for handling key down events */
920
920
  keyDownProp?: string;
921
921
  /** name of the prop for tab index */
@@ -944,13 +944,13 @@ interface ChipProps extends GenericProps$1, ReactToJSX<ChipProps$1, ChipPropsToO
944
944
  /** A component to be rendered before the content. */
945
945
  before?: ReactNode;
946
946
  /** On "after" element clicked callback. */
947
- onAfterClick?: (event?: React.MouseEvent) => void;
947
+ onAfterClick?: (event: React.MouseEvent) => void;
948
948
  /** On "before" element clicked callback. */
949
- onBeforeClick?: (event?: React.MouseEvent) => void;
949
+ onBeforeClick?: (event: React.MouseEvent) => void;
950
950
  /** On element clicked callback. */
951
- onClick?: (event?: React.MouseEvent) => void;
951
+ onClick?: (event: React.MouseEvent) => void;
952
952
  /** On element key down callback. */
953
- onKeyDown?: (event?: React.KeyboardEvent) => void;
953
+ onKeyDown?: (event: React.KeyboardEvent) => void;
954
954
  }
955
955
  /**
956
956
  * Chip component.
@@ -1662,7 +1662,7 @@ declare const GenericBlockGapSize: Pick<{
1662
1662
  readonly medium: "medium";
1663
1663
  readonly big: "big";
1664
1664
  readonly huge: "huge";
1665
- }, "medium" | "tiny" | "regular" | "big" | "huge">;
1665
+ }, "tiny" | "regular" | "medium" | "big" | "huge">;
1666
1666
  type GenericBlockGapSize = ValueOf$1<typeof GenericBlockGapSize>;
1667
1667
 
1668
1668
  interface GenericBlockProps extends FlexBoxProps {
@@ -2331,7 +2331,7 @@ interface LinkProps extends GenericProps$1, ReactToJSX<LinkProps$1> {
2331
2331
  */
2332
2332
  leftIcon?: string;
2333
2333
  /** Click handler. */
2334
- onClick?: (event?: React.MouseEvent) => void;
2334
+ onClick?: (event: React.MouseEvent) => void;
2335
2335
  /**
2336
2336
  * Right icon (SVG path).
2337
2337
  * @deprecated Instead, simply nest `<Icon />` in the children
@@ -2347,7 +2347,7 @@ interface LinkProps extends GenericProps$1, ReactToJSX<LinkProps$1> {
2347
2347
  * @param ref Component ref.
2348
2348
  * @return React element.
2349
2349
  */
2350
- declare const Link: Comp<LinkProps, HTMLButtonElement | HTMLAnchorElement>;
2350
+ declare const Link: Comp<LinkProps, HTMLAnchorElement | HTMLButtonElement>;
2351
2351
 
2352
2352
  /**
2353
2353
  * Defines the props of the component.