@protonradio/proton-ui 0.1.14 → 0.1.16
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 +38 -0
- package/dist/proton-ui.es.js +1395 -950
- 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 +4 -2
package/dist/proton-ui.es.d.ts
CHANGED
|
@@ -1,5 +1,43 @@
|
|
|
1
1
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
2
2
|
|
|
3
|
+
export declare function ButtonGroup(props: ButtonGroupProps): JSX_2.Element;
|
|
4
|
+
|
|
5
|
+
export declare namespace ButtonGroup {
|
|
6
|
+
var Option: (props: ButtonGroupOptionProps) => JSX_2.Element;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
declare interface ButtonGroupOptionProps {
|
|
10
|
+
/**
|
|
11
|
+
* The value of this option. When this option is selected, this value will
|
|
12
|
+
* become the ButtonGroup's new `selectedValue`.
|
|
13
|
+
*/
|
|
14
|
+
value: string;
|
|
15
|
+
/**
|
|
16
|
+
* The text or component to be rendered as this option's content.
|
|
17
|
+
*/
|
|
18
|
+
children: React.ReactNode;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
declare interface ButtonGroupProps {
|
|
22
|
+
/**
|
|
23
|
+
* The value of the currently selected option in the ButtonGroup. Providing
|
|
24
|
+
* this prop causes the component to become controlled.
|
|
25
|
+
*/
|
|
26
|
+
value: string;
|
|
27
|
+
/**
|
|
28
|
+
* The initially selected value of the ButtonGroup.
|
|
29
|
+
*/
|
|
30
|
+
defaultValue: string;
|
|
31
|
+
/**
|
|
32
|
+
* Called when the ButtonGroup's selected value changes.
|
|
33
|
+
*/
|
|
34
|
+
onChange?: (value: string) => void;
|
|
35
|
+
/**
|
|
36
|
+
* The ButtonGroup.Option elements to be rendered as the selectable values.
|
|
37
|
+
*/
|
|
38
|
+
children?: React.ReactNode;
|
|
39
|
+
}
|
|
40
|
+
|
|
3
41
|
export declare function Switch(props: SwitchProps): JSX_2.Element;
|
|
4
42
|
|
|
5
43
|
export declare namespace Switch {
|