dhx-react-suite 1.0.6 → 1.0.8

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
@@ -326,23 +326,32 @@ export declare function MessageProvider({ children }: {
326
326
 
327
327
  export declare type MessageType = "success" | "error" | "warning" | "info";
328
328
 
329
- export declare function Navbar({ logo, items, vertical, style }: NavbarProps): JSX_2.Element;
329
+ export declare function Navbar({ logo, items, vertical, onAction, style }: NavbarProps): JSX_2.Element;
330
330
 
331
331
  export declare interface NavbarItem {
332
332
  id?: string;
333
- type?: "separator" | "spacer" | "input" | "menuItem";
333
+ type?: "navItem" | "separator" | "spacer" | "input" | "imageButton";
334
334
  value?: string;
335
335
  icon?: React.ReactNode;
336
+ src?: string;
336
337
  items?: MenuItem[];
337
338
  width?: number;
338
339
  placeholder?: string;
339
- onClick?: () => void;
340
+ tooltip?: string;
341
+ twoState?: boolean;
342
+ active?: boolean;
343
+ disabled?: boolean;
344
+ hidden?: boolean;
345
+ count?: number;
346
+ onClick?: (id: string) => void;
347
+ onChange?: (value: string) => void;
340
348
  }
341
349
 
342
350
  export declare interface NavbarProps {
343
351
  logo?: React.ReactNode;
344
352
  items?: NavbarItem[];
345
353
  vertical?: boolean;
354
+ onAction?: (id: string) => void;
346
355
  style?: React.CSSProperties;
347
356
  }
348
357
 
@@ -539,21 +548,25 @@ export declare interface ToolbarProps {
539
548
  style?: React.CSSProperties;
540
549
  }
541
550
 
542
- export declare function Tree({ data, checkbox, editable, onSelect, onCheck, style }: TreeProps): JSX_2.Element;
551
+ export declare function Tree({ data, checkbox, editable, dragMode, tooltip, onSelect, onCheck, onChange, style, }: TreeProps): JSX_2.Element;
543
552
 
544
553
  export declare interface TreeNode {
545
554
  id: string;
546
555
  value?: string;
547
556
  count?: number;
548
557
  items?: TreeNode[];
558
+ opened?: boolean;
549
559
  }
550
560
 
551
561
  export declare interface TreeProps {
552
562
  data?: TreeNode[];
553
563
  checkbox?: boolean;
554
564
  editable?: boolean;
565
+ dragMode?: "both" | "move" | "copy";
566
+ tooltip?: (node: TreeNode) => string;
555
567
  onSelect?: (node: TreeNode) => void;
556
568
  onCheck?: (id: string, checked: boolean) => void;
569
+ onChange?: (data: TreeNode[]) => void;
557
570
  style?: React.CSSProperties;
558
571
  }
559
572
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dhx-react-suite",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "description": "TypeScript ui-components",
5
5
  "type": "module",
6
6
  "main": "./dist/dhx-react-suite.umd.cjs",