@protonradio/proton-ui 0.1.23 → 0.1.24

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,13 @@
1
1
  import { JSX as JSX_2 } from 'react/jsx-runtime';
2
+ import { PressEvent } from 'react-aria';
3
+
4
+ export declare function Button(props: ButtonProps): JSX_2.Element;
5
+
6
+ export declare namespace Button {
7
+ var defaultProps: {
8
+ variant: string;
9
+ };
10
+ }
2
11
 
3
12
  export declare function ButtonGroup(props: ButtonGroupProps): JSX_2.Element;
4
13
 
@@ -38,6 +47,25 @@ declare interface ButtonGroupProps {
38
47
  children?: React.ReactNode;
39
48
  }
40
49
 
50
+ declare interface ButtonProps {
51
+ /**
52
+ * The button's visual aesthetic.
53
+ */
54
+ variant?: "primary" | "secondary" | "danger";
55
+ /**
56
+ * Should the button be non-interactive?
57
+ */
58
+ isDisabled?: boolean;
59
+ /**
60
+ * Called when the button is pressed (on release, not keydown).
61
+ */
62
+ onPress?: (e: PressEvent) => void;
63
+ /**
64
+ * The content to display within the button.
65
+ */
66
+ children?: React.ReactNode;
67
+ }
68
+
41
69
  export declare function Switch(props: SwitchProps): JSX_2.Element;
42
70
 
43
71
  export declare namespace Switch {