@opencxh/ui-kit 3.5.0 → 3.13.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.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1211 -1117
- package/dist/index.js.map +1 -1
- package/dist/src/action/SplitButton.d.ts +20 -0
- package/dist/src/content/PageHeader.d.ts +3 -0
- package/dist/src/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface SplitButtonOption {
|
|
3
|
+
id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
onClick: () => void;
|
|
6
|
+
variant?: "default" | "destructive";
|
|
7
|
+
}
|
|
8
|
+
export interface SplitButtonProps {
|
|
9
|
+
label: string;
|
|
10
|
+
onClick: () => void;
|
|
11
|
+
variant?: "primary" | "secondary" | "outline";
|
|
12
|
+
size?: "sm" | "md";
|
|
13
|
+
icon?: React.ReactNode;
|
|
14
|
+
options: SplitButtonOption[];
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* SplitButton component with theme integration and accessibility features
|
|
19
|
+
*/
|
|
20
|
+
export declare function SplitButton({ label, onClick, variant, size, icon, options, disabled, }: SplitButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
+
import { SplitButtonOption } from '../action/SplitButton';
|
|
2
3
|
export interface PageHeaderAction {
|
|
3
4
|
/** Action identifier */
|
|
4
5
|
id: string;
|
|
@@ -12,6 +13,8 @@ export interface PageHeaderAction {
|
|
|
12
13
|
variant?: "primary" | "secondary" | "outline" | "ghost" | "destructive";
|
|
13
14
|
/** Whether action is disabled */
|
|
14
15
|
disabled?: boolean;
|
|
16
|
+
/** Dropdown options for split button */
|
|
17
|
+
splitOptions?: SplitButtonOption[];
|
|
15
18
|
}
|
|
16
19
|
export interface PageHeaderProps {
|
|
17
20
|
/** Page title */
|
package/dist/src/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export { cn, createSizes, createVariants } from './utils/cn';
|
|
|
2
2
|
export { Button, type ButtonProps } from './action/Button';
|
|
3
3
|
export { ButtonGroup, type ButtonGroupProps } from './action/ButtonGroup';
|
|
4
4
|
export { Link, type LinkProps } from './action/Link';
|
|
5
|
+
export { SplitButton, type SplitButtonProps, type SplitButtonOption } from './action/SplitButton';
|
|
5
6
|
export { Checkbox, type CheckboxProps } from './input/Checkbox';
|
|
6
7
|
export { DatePicker, type DatePickerProps } from './input/DatePicker';
|
|
7
8
|
export { SearchableTextField, type SearchableTextFieldProps } from './input/SearchableTextField';
|