dhx-react-suite 1.1.8 → 1.1.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 +1535 -1364
- 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 +32 -10
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -147,6 +147,8 @@ export declare interface DataViewProps {
|
|
|
147
147
|
style?: React.CSSProperties;
|
|
148
148
|
}
|
|
149
149
|
|
|
150
|
+
export declare type DHXColor = "danger" | "secondary" | "primary" | "success";
|
|
151
|
+
|
|
150
152
|
export declare function Form({ config, defaultValues, onSubmit, style }: FormProps): JSX_2.Element;
|
|
151
153
|
|
|
152
154
|
export declare interface FormConfig {
|
|
@@ -409,47 +411,67 @@ export declare interface PopupProps {
|
|
|
409
411
|
style?: React.CSSProperties;
|
|
410
412
|
}
|
|
411
413
|
|
|
412
|
-
export declare function Ribbon({ items,
|
|
414
|
+
export declare function Ribbon({ items, css: cssProp, menuCss, style, onAction, onInputChange, onInputBlur, onInputFocus, onOpenMenu, }: RibbonProps): JSX_2.Element;
|
|
413
415
|
|
|
414
|
-
declare interface RibbonBlock {
|
|
416
|
+
export declare interface RibbonBlock {
|
|
415
417
|
type: "block";
|
|
418
|
+
id?: string;
|
|
416
419
|
title?: string;
|
|
417
420
|
label?: string;
|
|
418
421
|
direction?: "col" | "row";
|
|
422
|
+
css?: string | string[];
|
|
423
|
+
disabled?: boolean;
|
|
424
|
+
hidden?: boolean;
|
|
419
425
|
items?: (RibbonSubItem | RibbonBlock)[];
|
|
420
426
|
}
|
|
421
427
|
|
|
422
428
|
export declare type RibbonItem = RibbonSubItem | RibbonBlock;
|
|
423
429
|
|
|
430
|
+
export declare type RibbonItemSize = "auto" | "medium" | "small";
|
|
431
|
+
|
|
424
432
|
export declare interface RibbonProps {
|
|
425
433
|
items?: RibbonItem[];
|
|
426
|
-
|
|
434
|
+
css?: string;
|
|
435
|
+
menuCss?: string;
|
|
427
436
|
style?: React.CSSProperties;
|
|
437
|
+
onAction?: (id: string, item: RibbonSubItem) => void;
|
|
438
|
+
onInputChange?: (id: string, value: string) => void;
|
|
439
|
+
onInputBlur?: (id: string, value: string) => void;
|
|
440
|
+
onInputFocus?: (id: string, value: string) => void;
|
|
441
|
+
onOpenMenu?: (id: string) => void;
|
|
428
442
|
}
|
|
429
443
|
|
|
430
|
-
declare interface RibbonSubItem {
|
|
444
|
+
export declare interface RibbonSubItem {
|
|
431
445
|
id?: string;
|
|
432
|
-
type?: "separator" | "sep" | "input" | "selectButton";
|
|
446
|
+
type?: "button" | "navItem" | "imageButton" | "separator" | "sep" | "spacer" | "title" | "input" | "selectButton" | "customHTML";
|
|
433
447
|
value?: string;
|
|
434
448
|
text?: string;
|
|
449
|
+
html?: string;
|
|
435
450
|
icon?: React.ReactNode;
|
|
451
|
+
src?: string;
|
|
452
|
+
size?: RibbonItemSize;
|
|
453
|
+
color?: DHXColor;
|
|
454
|
+
view?: "flat" | "link";
|
|
455
|
+
circle?: boolean;
|
|
456
|
+
loading?: boolean;
|
|
436
457
|
active?: boolean;
|
|
437
458
|
twoState?: boolean;
|
|
438
459
|
group?: string;
|
|
439
460
|
disabled?: boolean;
|
|
440
461
|
hidden?: boolean;
|
|
441
462
|
tooltip?: string;
|
|
463
|
+
hotkey?: string;
|
|
442
464
|
label?: string;
|
|
443
|
-
size?: "auto" | "small";
|
|
444
465
|
placeholder?: string;
|
|
445
466
|
width?: number;
|
|
446
467
|
count?: number;
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
}[];
|
|
468
|
+
countColor?: DHXColor;
|
|
469
|
+
items?: MenuItem[];
|
|
470
|
+
css?: string | string[];
|
|
451
471
|
onClick?: (item: RibbonSubItem) => void;
|
|
452
472
|
onChange?: (value: string) => void;
|
|
473
|
+
onBlur?: (value: string) => void;
|
|
474
|
+
onFocus?: (value: string) => void;
|
|
453
475
|
}
|
|
454
476
|
|
|
455
477
|
export declare function Sidebar({ items, width, minWidth, header, footer, collapsed, defaultCollapsed, selected, defaultSelected, onSelect, onCollapse, onExpand, onBeforeCollapse, onBeforeExpand, onToggleItem, style, }: SidebarProps): JSX_2.Element;
|