@baseline-ui/core 0.40.0 → 0.40.1
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.d.mts +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +6 -6
package/dist/index.d.mts
CHANGED
|
@@ -2463,6 +2463,12 @@ interface ButtonSelectProps extends StylingProps, Pick<SelectProps, "isDisabled"
|
|
|
2463
2463
|
* @default "toggle"
|
|
2464
2464
|
*/
|
|
2465
2465
|
buttonBehaviour?: ButtonBehaviour | ((activeKey: string) => ButtonBehaviour);
|
|
2466
|
+
/** A callback that is called when the button is pressed. */
|
|
2467
|
+
onButtonAction?: (options: {
|
|
2468
|
+
isSelected: boolean;
|
|
2469
|
+
selectedKey: string;
|
|
2470
|
+
buttonBehaviour: ButtonBehaviour;
|
|
2471
|
+
}) => void;
|
|
2466
2472
|
}
|
|
2467
2473
|
|
|
2468
2474
|
declare const ButtonSelect: React__default.ForwardRefExoticComponent<ButtonSelectProps & React__default.RefAttributes<HTMLDivElement>>;
|
package/dist/index.d.ts
CHANGED
|
@@ -2463,6 +2463,12 @@ interface ButtonSelectProps extends StylingProps, Pick<SelectProps, "isDisabled"
|
|
|
2463
2463
|
* @default "toggle"
|
|
2464
2464
|
*/
|
|
2465
2465
|
buttonBehaviour?: ButtonBehaviour | ((activeKey: string) => ButtonBehaviour);
|
|
2466
|
+
/** A callback that is called when the button is pressed. */
|
|
2467
|
+
onButtonAction?: (options: {
|
|
2468
|
+
isSelected: boolean;
|
|
2469
|
+
selectedKey: string;
|
|
2470
|
+
buttonBehaviour: ButtonBehaviour;
|
|
2471
|
+
}) => void;
|
|
2466
2472
|
}
|
|
2467
2473
|
|
|
2468
2474
|
declare const ButtonSelect: React__default.ForwardRefExoticComponent<ButtonSelectProps & React__default.RefAttributes<HTMLDivElement>>;
|