@stella-source/stellasource-dsl 0.1.4 → 0.1.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.
@@ -1,4 +1,4 @@
1
1
  import React from "react";
2
2
  import { StellaButtonProps } from "./types";
3
- declare const StellaButton: ({ disabled, variant, label, startIcon, endIcon, isLoading, className, id, htmlProps, onClick, }: StellaButtonProps) => React.JSX.Element;
3
+ declare const StellaButton: ({ disabled, variant, label, startIcon, endIcon, isLoading, className, id, htmlProps, onClick, preventDefault, type, }: StellaButtonProps) => React.JSX.Element;
4
4
  export default StellaButton;
@@ -2,7 +2,7 @@ import { StellaButtonVariant } from "./types";
2
2
  import { StellaButtonIcons, StellaButtonProps } from "./types";
3
3
  declare const _default: {
4
4
  title: string;
5
- component: ({ disabled, variant, label, startIcon, endIcon, isLoading, className, id, htmlProps, onClick, }: StellaButtonProps) => import("react").JSX.Element;
5
+ component: ({ disabled, variant, label, startIcon, endIcon, isLoading, className, id, htmlProps, onClick, preventDefault, type, }: StellaButtonProps) => import("react").JSX.Element;
6
6
  tags: string[];
7
7
  parameters: {};
8
8
  argTypes: {
@@ -10,13 +10,15 @@ export declare enum StellaButtonVariant {
10
10
  }
11
11
  export interface StellaButtonProps {
12
12
  label: string;
13
- onClick: () => void;
13
+ onClick: (e?: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
14
14
  id?: string;
15
+ type?: "button" | "submit" | "reset";
15
16
  className?: string;
16
17
  isLoading?: boolean;
17
18
  startIcon?: `${StellaButtonIcons}`;
18
19
  endIcon?: `${StellaButtonIcons}`;
19
20
  disabled?: boolean;
21
+ preventDefault?: boolean;
20
22
  variant?: `${StellaButtonVariant}`;
21
23
  htmlProps?: HTMLAttributes<HTMLButtonElement>;
22
24
  }