@abdellatifui/react 3.2.105 → 3.2.107
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 +32 -4
- package/dist/nextgen.js +2 -2
- package/package.json +1 -1
package/dist/nextgen.d.ts
CHANGED
|
@@ -295,10 +295,7 @@ 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;
|
|
@@ -637,6 +634,37 @@ export declare interface MenuButtonProps extends ButtonProps {
|
|
|
637
634
|
}>;
|
|
638
635
|
}
|
|
639
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
|
+
|
|
640
668
|
export declare const Model: default_2.MemoExoticComponent<(props: ModelProps_2) => JSX.Element>;
|
|
641
669
|
|
|
642
670
|
export declare const ModelContext: Context< {}>;
|
package/dist/nextgen.js
CHANGED
|
@@ -5997,14 +5997,14 @@ const sh = Ce("flex items-center justify-center z-1 css-iuur1", {
|
|
|
5997
5997
|
"model-overlay-abui custom-click-away flex justify-center items-center opacity-0 transition-all duration-(--animate-period) ease-in-out",
|
|
5998
5998
|
O?.current && "absolute!",
|
|
5999
5999
|
C,
|
|
6000
|
-
n && "z-500",
|
|
6000
|
+
n && "z-500 opacity-100",
|
|
6001
6001
|
l && "bg-transparent"
|
|
6002
6002
|
),
|
|
6003
6003
|
children: /* @__PURE__ */ c.jsx(
|
|
6004
6004
|
hf,
|
|
6005
6005
|
{
|
|
6006
6006
|
onClickAway: (M) => {
|
|
6007
|
-
$({ event: M, open: n, applyStackRules: z, isLastItemInArray: g, ref: w, container: O, children: x, props: e, _children: s, id: r }), S && z && g && H();
|
|
6007
|
+
console.log("Click Away Event ", M), $({ event: M, open: n, applyStackRules: z, isLastItemInArray: g, ref: w, container: O, children: x, props: e, _children: s, id: r }), S && z && g && H();
|
|
6008
6008
|
},
|
|
6009
6009
|
children: s || x
|
|
6010
6010
|
}
|