@apipass/design-system 1.9.8 → 1.10.0
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/lib/embedded-styles.js +1 -1
- package/dist/lib/index.cjs +4 -4
- package/dist/lib/index.cjs.map +1 -1
- package/dist/lib/index.js +563 -519
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/style.css +1 -1
- package/dist/types/ui/primitives/SplitButton/SplitButton.d.ts +15 -0
- package/dist/types/ui/primitives/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type ButtonProps, type MenuPopoverProps, type MenuProps } from "primitives";
|
|
2
|
+
import type React from "react";
|
|
3
|
+
import "./splitButton.css";
|
|
4
|
+
export interface SplitButtonProps<T extends object> extends Pick<MenuProps<T>, "onAction"> {
|
|
5
|
+
label: React.ReactNode;
|
|
6
|
+
children: MenuProps<T>["children"];
|
|
7
|
+
variant?: ButtonProps["variant"];
|
|
8
|
+
size?: ButtonProps["size"];
|
|
9
|
+
icon?: React.ReactNode;
|
|
10
|
+
isDisabled?: boolean;
|
|
11
|
+
onPress?: ButtonProps["onPress"];
|
|
12
|
+
menuLabel?: string;
|
|
13
|
+
placement?: MenuPopoverProps["placement"];
|
|
14
|
+
}
|
|
15
|
+
export declare function SplitButton<T extends object>({ label, children, variant, size, icon, isDisabled, onPress, onAction, menuLabel, placement, }: SplitButtonProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -22,6 +22,7 @@ export * from "./Radio/Radio";
|
|
|
22
22
|
export * from "./Search/Search";
|
|
23
23
|
export * from "./Select/Select";
|
|
24
24
|
export * from "./Slider/Slider";
|
|
25
|
+
export * from "./SplitButton/SplitButton";
|
|
25
26
|
export * from "./Switch/Switch";
|
|
26
27
|
export * from "./Tab/Tab";
|
|
27
28
|
export * from "./Table/Table";
|