@protonradio/proton-ui 0.1.35 → 0.1.36
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 +15 -0
- package/dist/proton-ui.es.js +4313 -2093
- 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/package.json +1 -1
package/dist/proton-ui.es.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { AriaSelectOptions } from 'react-aria';
|
|
1
2
|
import { ColumnProps } from '@react-stately/table';
|
|
2
3
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
3
4
|
import { PressEvent } from 'react-aria';
|
|
5
|
+
import { default as React_2 } from 'react';
|
|
4
6
|
import { Row } from '@react-stately/table';
|
|
5
7
|
import { Section } from '@react-stately/table';
|
|
6
8
|
import { TableBody } from '@react-stately/table';
|
|
@@ -110,6 +112,19 @@ export { Row }
|
|
|
110
112
|
|
|
111
113
|
export { Section }
|
|
112
114
|
|
|
115
|
+
export declare const Select: {
|
|
116
|
+
Menu: typeof SelectMenu;
|
|
117
|
+
Option: any;
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
declare function SelectMenu<T extends object>(props: SelectProps<T>): JSX_2.Element;
|
|
121
|
+
|
|
122
|
+
declare interface SelectProps<T> extends Omit<AriaSelectOptions<T>, "children"> {
|
|
123
|
+
label?: string;
|
|
124
|
+
name: string;
|
|
125
|
+
children: React_2.ReactNode | ((item: T) => React_2.ReactNode);
|
|
126
|
+
}
|
|
127
|
+
|
|
113
128
|
export declare function Switch(props: SwitchProps): JSX_2.Element;
|
|
114
129
|
|
|
115
130
|
export declare namespace Switch {
|