dhx-react-suite 1.0.7 → 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/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
 
@@ -512,30 +521,37 @@ export declare const tokens: {
512
521
  font: string;
513
522
  };
514
523
 
515
- export declare function Toolbar({ items, style }: ToolbarProps): JSX_2.Element;
524
+ export declare function Toolbar({ items, onAction, style }: ToolbarProps): JSX_2.Element;
516
525
 
517
526
  export declare interface ToolbarItem {
518
527
  id?: string;
519
- type?: "separator" | "spacer" | "input" | "select";
528
+ type?: "navItem" | "separator" | "spacer" | "input" | "select" | "imageButton";
529
+ value?: string;
520
530
  text?: string;
521
531
  icon?: React.ReactNode;
522
- active?: boolean;
532
+ src?: string;
533
+ items?: MenuItem[];
534
+ width?: number;
535
+ placeholder?: string;
536
+ tooltip?: string;
523
537
  twoState?: boolean;
538
+ active?: boolean;
539
+ group?: string;
524
540
  disabled?: boolean;
541
+ hidden?: boolean;
542
+ count?: number;
525
543
  label?: string;
526
- placeholder?: string;
527
- value?: string;
528
- width?: number;
529
544
  options?: {
530
545
  value: string;
531
546
  label: string;
532
547
  }[];
533
- onClick?: (item: ToolbarItem) => void;
548
+ onClick?: (id: string) => void;
534
549
  onChange?: (value: string) => void;
535
550
  }
536
551
 
537
552
  export declare interface ToolbarProps {
538
553
  items?: ToolbarItem[];
554
+ onAction?: (id: string) => void;
539
555
  style?: React.CSSProperties;
540
556
  }
541
557
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dhx-react-suite",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "description": "TypeScript ui-components",
5
5
  "type": "module",
6
6
  "main": "./dist/dhx-react-suite.umd.cjs",