dhx-react-suite 1.0.9 → 1.1.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/index.d.ts
CHANGED
|
@@ -380,9 +380,10 @@ export declare function Ribbon({ items, onAction, style }: RibbonProps): JSX_2.E
|
|
|
380
380
|
|
|
381
381
|
declare interface RibbonBlock {
|
|
382
382
|
type: "block";
|
|
383
|
+
title?: string;
|
|
383
384
|
label?: string;
|
|
384
385
|
direction?: "col" | "row";
|
|
385
|
-
items?: RibbonSubItem[];
|
|
386
|
+
items?: (RibbonSubItem | RibbonBlock)[];
|
|
386
387
|
}
|
|
387
388
|
|
|
388
389
|
export declare type RibbonItem = RibbonSubItem | RibbonBlock;
|
|
@@ -396,20 +397,23 @@ export declare interface RibbonProps {
|
|
|
396
397
|
declare interface RibbonSubItem {
|
|
397
398
|
id?: string;
|
|
398
399
|
type?: "separator" | "sep" | "input" | "selectButton";
|
|
400
|
+
value?: string;
|
|
399
401
|
text?: string;
|
|
400
402
|
icon?: React.ReactNode;
|
|
401
403
|
active?: boolean;
|
|
402
404
|
twoState?: boolean;
|
|
403
405
|
group?: string;
|
|
404
406
|
disabled?: boolean;
|
|
407
|
+
hidden?: boolean;
|
|
405
408
|
tooltip?: string;
|
|
406
409
|
label?: string;
|
|
407
|
-
size?: "
|
|
410
|
+
size?: "auto" | "small";
|
|
408
411
|
placeholder?: string;
|
|
409
|
-
value?: string;
|
|
410
412
|
width?: number;
|
|
413
|
+
count?: number;
|
|
411
414
|
items?: {
|
|
412
415
|
value: string;
|
|
416
|
+
hotkey?: string;
|
|
413
417
|
}[];
|
|
414
418
|
onClick?: (item: RibbonSubItem) => void;
|
|
415
419
|
onChange?: (value: string) => void;
|