dhx-react-suite 1.0.8 → 1.0.9
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/dhx-react-suite.js +1098 -996
- package/dist/dhx-react-suite.js.map +1 -1
- package/dist/dhx-react-suite.umd.cjs +2 -2
- package/dist/dhx-react-suite.umd.cjs.map +1 -1
- package/dist/index.d.ts +14 -7
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -521,30 +521,37 @@ export declare const tokens: {
|
|
|
521
521
|
font: string;
|
|
522
522
|
};
|
|
523
523
|
|
|
524
|
-
export declare function Toolbar({ items, style }: ToolbarProps): JSX_2.Element;
|
|
524
|
+
export declare function Toolbar({ items, onAction, style }: ToolbarProps): JSX_2.Element;
|
|
525
525
|
|
|
526
526
|
export declare interface ToolbarItem {
|
|
527
527
|
id?: string;
|
|
528
|
-
type?: "separator" | "spacer" | "input" | "select";
|
|
528
|
+
type?: "navItem" | "separator" | "spacer" | "input" | "select" | "imageButton";
|
|
529
|
+
value?: string;
|
|
529
530
|
text?: string;
|
|
530
531
|
icon?: React.ReactNode;
|
|
531
|
-
|
|
532
|
+
src?: string;
|
|
533
|
+
items?: MenuItem[];
|
|
534
|
+
width?: number;
|
|
535
|
+
placeholder?: string;
|
|
536
|
+
tooltip?: string;
|
|
532
537
|
twoState?: boolean;
|
|
538
|
+
active?: boolean;
|
|
539
|
+
group?: string;
|
|
533
540
|
disabled?: boolean;
|
|
541
|
+
hidden?: boolean;
|
|
542
|
+
count?: number;
|
|
534
543
|
label?: string;
|
|
535
|
-
placeholder?: string;
|
|
536
|
-
value?: string;
|
|
537
|
-
width?: number;
|
|
538
544
|
options?: {
|
|
539
545
|
value: string;
|
|
540
546
|
label: string;
|
|
541
547
|
}[];
|
|
542
|
-
onClick?: (
|
|
548
|
+
onClick?: (id: string) => void;
|
|
543
549
|
onChange?: (value: string) => void;
|
|
544
550
|
}
|
|
545
551
|
|
|
546
552
|
export declare interface ToolbarProps {
|
|
547
553
|
items?: ToolbarItem[];
|
|
554
|
+
onAction?: (id: string) => void;
|
|
548
555
|
style?: React.CSSProperties;
|
|
549
556
|
}
|
|
550
557
|
|