@protonradio/proton-ui 0.10.13-beta.1 → 0.10.13-beta.2
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/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +1 -6
- package/dist/index.es.js +3 -3
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -581,7 +581,7 @@ export declare const ResponsiveSelect: {
|
|
|
581
581
|
* Supports controlled and uncontrolled modes.
|
|
582
582
|
* @interface SelectProps
|
|
583
583
|
*/
|
|
584
|
-
declare function ResponsiveSelectMenu
|
|
584
|
+
declare function ResponsiveSelectMenu({ label, name, isDisabled, disabledKeys, selectedKey, onSelectionChange, onOpen, onClose, items, "data-testid": testId, children, }: SelectProps<ActionMenuAction>): JSX_2.Element;
|
|
585
585
|
|
|
586
586
|
export declare const Row: <T = object>(props: ProtonRowProps<T>) => JSX.Element;
|
|
587
587
|
|
|
@@ -635,11 +635,6 @@ export declare const Select: {
|
|
|
635
635
|
Option: <T>(props: ItemProps<T>) => JSX_3.Element;
|
|
636
636
|
};
|
|
637
637
|
|
|
638
|
-
declare interface SelectItem {
|
|
639
|
-
name: string;
|
|
640
|
-
[key: string]: any;
|
|
641
|
-
}
|
|
642
|
-
|
|
643
638
|
/**
|
|
644
639
|
* A dropdown select menu that opens a popover. Supports controlled and uncontrolled modes.
|
|
645
640
|
* @interface SelectProps
|
package/dist/index.es.js
CHANGED
|
@@ -11236,7 +11236,6 @@ function yh({
|
|
|
11236
11236
|
onOpenChange: (S) => {
|
|
11237
11237
|
S ? i == null || i() : a == null || a();
|
|
11238
11238
|
},
|
|
11239
|
-
items: s,
|
|
11240
11239
|
"data-testid": u,
|
|
11241
11240
|
children: c
|
|
11242
11241
|
}, f = Fu(d), p = Ar(Tr.MEDIUM), m = M(null), g = M(null), { labelProps: y, triggerProps: P, valueProps: x, menuProps: $ } = Qs(
|
|
@@ -11248,8 +11247,9 @@ function yh({
|
|
|
11248
11247
|
f.isOpen && g.current && m.current && !g.current.style.minWidth && (g.current.style.minWidth = `${m.current.offsetWidth}px`);
|
|
11249
11248
|
});
|
|
11250
11249
|
const k = (s == null ? void 0 : s.map((S) => ({
|
|
11251
|
-
key: S.
|
|
11252
|
-
label: S.
|
|
11250
|
+
key: S.key,
|
|
11251
|
+
label: S.label,
|
|
11252
|
+
to: S.to,
|
|
11253
11253
|
onAction: (w) => {
|
|
11254
11254
|
o == null || o(w), f.close();
|
|
11255
11255
|
}
|