@protonradio/proton-ui 0.1.25 → 0.1.27
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.
- package/dist/proton-ui.es.d.ts +23 -0
- package/dist/proton-ui.es.js +386 -369
- package/dist/proton-ui.es.js.map +1 -1
- package/dist/proton-ui.umd.js +10 -10
- package/dist/proton-ui.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/proton-ui.es.d.ts
CHANGED
|
@@ -56,6 +56,10 @@ declare interface ButtonProps {
|
|
|
56
56
|
* Should the button be non-interactive?
|
|
57
57
|
*/
|
|
58
58
|
isDisabled?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* The URL that the button should link to. Turns the element into an `a` tag.
|
|
61
|
+
*/
|
|
62
|
+
href?: string;
|
|
59
63
|
/**
|
|
60
64
|
* Called when the button is pressed (on release, not keydown).
|
|
61
65
|
*/
|
|
@@ -66,6 +70,25 @@ declare interface ButtonProps {
|
|
|
66
70
|
children?: React.ReactNode;
|
|
67
71
|
}
|
|
68
72
|
|
|
73
|
+
export declare function Icon(props: IconProps): JSX_2.Element;
|
|
74
|
+
|
|
75
|
+
declare type IconID = "external-link";
|
|
76
|
+
|
|
77
|
+
declare interface IconProps {
|
|
78
|
+
/**
|
|
79
|
+
* The spritesheet ID defined in the Icons spritesheet.
|
|
80
|
+
*/
|
|
81
|
+
id: IconID;
|
|
82
|
+
/**
|
|
83
|
+
* The desired width/height of the icon. Accepts any valid CSS unit.
|
|
84
|
+
*/
|
|
85
|
+
size?: number | string;
|
|
86
|
+
/**
|
|
87
|
+
* The stroke color of the icon.
|
|
88
|
+
*/
|
|
89
|
+
color?: string;
|
|
90
|
+
}
|
|
91
|
+
|
|
69
92
|
export declare function Switch(props: SwitchProps): JSX_2.Element;
|
|
70
93
|
|
|
71
94
|
export declare namespace Switch {
|