@abdellatifui/react 3.2.104 → 3.2.106

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/nextgen.d.ts CHANGED
@@ -295,13 +295,11 @@ export declare interface ContextMenuProps {
295
295
  }
296
296
 
297
297
  declare type ContextMenuProps_2 = {
298
- items: {
299
- title: string;
300
- items: [];
301
- };
298
+ items: MenuData;
302
299
  event: default_2.MouseEvent<HTMLButtonElement> | null;
303
300
  shortcutScopeRef: default_2.RefObject<HTMLDivElement> | null;
304
301
  modelProps: ModelProps;
302
+ paperClassname: string;
305
303
  fixedLocation: {
306
304
  x: number;
307
305
  y: number;
@@ -636,6 +634,37 @@ export declare interface MenuButtonProps extends ButtonProps {
636
634
  }>;
637
635
  }
638
636
 
637
+ declare interface MenuData {
638
+ title?: string;
639
+ items: MenuItem[];
640
+ }
641
+
642
+ declare interface MenuItem {
643
+ label: string;
644
+ action?: (e?: any, item?: MenuItem) => void;
645
+ disabled?: boolean;
646
+ subItems?: MenuItem[];
647
+ pinned?: boolean | 'both';
648
+ seperator?: boolean;
649
+ shortcut?: {
650
+ ctrl?: boolean;
651
+ alt?: boolean;
652
+ shift?: boolean;
653
+ key?: string;
654
+ };
655
+ danger?: boolean;
656
+ icon?: default_2.ReactNode;
657
+ type?: 'default' | 'checkbox' | 'switch' | 'radiogroup' | 'accordion' | 'custom';
658
+ size?: string;
659
+ defaultChecked?: boolean;
660
+ checked?: boolean;
661
+ className?: string;
662
+ custom?: default_2.ReactNode;
663
+ content?: default_2.ReactNode;
664
+ group?: MenuItem[];
665
+ onChange?: (val: any) => void;
666
+ }
667
+
639
668
  export declare const Model: default_2.MemoExoticComponent<(props: ModelProps_2) => JSX.Element>;
640
669
 
641
670
  export declare const ModelContext: Context< {}>;