@abdellatifui/react 3.1.17 → 3.1.20

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.
@@ -1 +1 @@
1
- {"version":3,"file":"MenuBox.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Contextmenu/ContextMenuNG/Components/MenuBox.tsx"],"names":[],"mappings":"AACA,OAAO,KAAmD,MAAM,OAAO,CAAA;AAoCvE,eAAO,MAAM,OAAO,+DAiKlB,CAAA"}
1
+ {"version":3,"file":"MenuBox.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Contextmenu/ContextMenuNG/Components/MenuBox.tsx"],"names":[],"mappings":"AACA,OAAO,KAAmD,MAAM,OAAO,CAAA;AAkDvE,eAAO,MAAM,OAAO,+DA8GlB,CAAA"}
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- export declare const MenuItem: React.ForwardRefExoticComponent<React.RefAttributes<unknown>>;
3
- export declare const PinnedMenuItem: React.ForwardRefExoticComponent<React.RefAttributes<unknown>>;
2
+ export declare const MenuItem: React.NamedExoticComponent<object>;
3
+ export declare const PinnedMenuItem: React.NamedExoticComponent<object>;
4
4
  //# sourceMappingURL=MenuItems.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MenuItems.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Contextmenu/ContextMenuNG/Components/MenuItems.tsx"],"names":[],"mappings":"AACA,OAAO,KAAoD,MAAM,OAAO,CAAA;AAiKxE,eAAO,MAAM,QAAQ,+DAgClB,CAAA;AAEH,eAAO,MAAM,cAAc,+DAsCzB,CAAA"}
1
+ {"version":3,"file":"MenuItems.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Contextmenu/ContextMenuNG/Components/MenuItems.tsx"],"names":[],"mappings":"AACA,OAAO,KAAkE,MAAM,OAAO,CAAA;AAoOtF,eAAO,MAAM,QAAQ,oCAwCnB,CAAC;AAEH,eAAO,MAAM,cAAc,oCAsCzB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ContextMenu.d.ts","sourceRoot":"","sources":["../../../../../src/components/Contextmenu/ContextMenuNG/ContextMenu.tsx"],"names":[],"mappings":"AACA,OAAO,KAA2F,MAAM,OAAO,CAAA;AAO/G,KAAK,gBAAgB,GAAG;IACpB,KAAK,EAAG;QACJ,KAAK,EAAG,MAAM,CAAE;QAChB,KAAK,EAAG,EAAE,CAAE;KACf,CAAE;IACH,KAAK,EAAG,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,GAAG,IAAI,CAAE;IACpD,gBAAgB,EAAG,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,GAAG,IAAI,CAAE;IAC3D,aAAa,EAAG;QACZ,CAAC,EAAG,MAAM,CAAE;QACZ,CAAC,EAAG,MAAM,CAAA;KACb,CAAA;CACJ,CAAA;AA+GD,eAAO,MAAM,WAAW,6GAA6B,CAAA"}
1
+ {"version":3,"file":"ContextMenu.d.ts","sourceRoot":"","sources":["../../../../../src/components/Contextmenu/ContextMenuNG/ContextMenu.tsx"],"names":[],"mappings":"AACA,OAAO,KAA8E,MAAM,OAAO,CAAA;AAOlG,KAAK,gBAAgB,GAAG;IACpB,KAAK,EAAG;QACJ,KAAK,EAAG,MAAM,CAAE;QAChB,KAAK,EAAG,EAAE,CAAE;KACf,CAAE;IACH,KAAK,EAAG,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,GAAG,IAAI,CAAE;IACpD,gBAAgB,EAAG,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,GAAG,IAAI,CAAE;IAC3D,aAAa,EAAG;QACZ,CAAC,EAAG,MAAM,CAAE;QACZ,CAAC,EAAG,MAAM,CAAA;KACb,CAAA;CACJ,CAAA;AAqHD,eAAO,MAAM,WAAW,6GAA6B,CAAA"}
@@ -0,0 +1,21 @@
1
+ interface SubmenuPosition {
2
+ position: 'left' | 'right';
3
+ top: number;
4
+ }
5
+ interface SubItem {
6
+ label: string;
7
+ action?: () => void;
8
+ subItems?: SubItem[];
9
+ [key: string]: any;
10
+ }
11
+ interface UseSubmenuPositionProps {
12
+ subItems?: SubItem[];
13
+ showSubMenu: boolean;
14
+ }
15
+ export declare const useSubmenuPosition: ({ subItems, showSubMenu }: UseSubmenuPositionProps) => {
16
+ submenuPosition: SubmenuPosition;
17
+ menuItemRef: import("react").MutableRefObject<HTMLDivElement>;
18
+ updatePosition: () => void;
19
+ };
20
+ export {};
21
+ //# sourceMappingURL=useSubmenuPosition.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSubmenuPosition.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Contextmenu/ContextMenuNG/hooks/useSubmenuPosition.tsx"],"names":[],"mappings":"AAEA,UAAU,eAAe;IACrB,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;IAC3B,GAAG,EAAE,MAAM,CAAC;CACf;AAED,UAAU,OAAO;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAC;IACrB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACtB;AAED,UAAU,uBAAuB;IAC7B,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAC;IACrB,WAAW,EAAE,OAAO,CAAC;CACxB;AAED,eAAO,MAAM,kBAAkB,GAAI,2BAA2B,uBAAuB;;;;CA8EpF,CAAC"}
@@ -91,61 +91,6 @@ export declare const data: ({
91
91
  content?: undefined;
92
92
  onChange?: undefined;
93
93
  group?: undefined;
94
- } | {
95
- label: string;
96
- icon: import("react/jsx-runtime").JSX.Element;
97
- action: () => void;
98
- seperator: boolean;
99
- size: string;
100
- type: string;
101
- shortcut: {
102
- ctrl: boolean;
103
- key: string;
104
- alt: boolean;
105
- shift: boolean;
106
- };
107
- subItems: ({
108
- label: string;
109
- action: () => void;
110
- seperator: boolean;
111
- size: string;
112
- type: string;
113
- shortcut: {
114
- ctrl: boolean;
115
- key: string;
116
- alt: boolean;
117
- shift: boolean;
118
- };
119
- subItems: {
120
- label: string;
121
- action: () => void;
122
- shortcut: {
123
- ctrl: boolean;
124
- alt: boolean;
125
- key: string;
126
- };
127
- }[];
128
- danger?: undefined;
129
- defaultChecked?: undefined;
130
- } | {
131
- label: string;
132
- action: () => void;
133
- danger: boolean;
134
- seperator: boolean;
135
- size: string;
136
- type: string;
137
- defaultChecked: boolean;
138
- shortcut?: undefined;
139
- subItems?: undefined;
140
- })[];
141
- pinned?: undefined;
142
- disabled?: undefined;
143
- danger?: undefined;
144
- defaultChecked?: undefined;
145
- defaultOpen?: undefined;
146
- content?: undefined;
147
- onChange?: undefined;
148
- group?: undefined;
149
94
  } | {
150
95
  label: string;
151
96
  icon: import("react/jsx-runtime").JSX.Element;
@@ -219,6 +164,61 @@ export declare const data: ({
219
164
  content?: undefined;
220
165
  onChange?: undefined;
221
166
  group?: undefined;
167
+ } | {
168
+ label: string;
169
+ icon: import("react/jsx-runtime").JSX.Element;
170
+ action: () => void;
171
+ seperator: boolean;
172
+ size: string;
173
+ type: string;
174
+ shortcut: {
175
+ ctrl: boolean;
176
+ key: string;
177
+ alt: boolean;
178
+ shift: boolean;
179
+ };
180
+ subItems: ({
181
+ label: string;
182
+ action: () => void;
183
+ seperator: boolean;
184
+ size: string;
185
+ type: string;
186
+ shortcut: {
187
+ ctrl: boolean;
188
+ key: string;
189
+ alt: boolean;
190
+ shift: boolean;
191
+ };
192
+ subItems: {
193
+ label: string;
194
+ action: () => void;
195
+ shortcut: {
196
+ ctrl: boolean;
197
+ alt: boolean;
198
+ key: string;
199
+ };
200
+ }[];
201
+ danger?: undefined;
202
+ defaultChecked?: undefined;
203
+ } | {
204
+ label: string;
205
+ action: () => void;
206
+ danger: boolean;
207
+ seperator: boolean;
208
+ size: string;
209
+ type: string;
210
+ defaultChecked: boolean;
211
+ shortcut?: undefined;
212
+ subItems?: undefined;
213
+ })[];
214
+ pinned?: undefined;
215
+ disabled?: undefined;
216
+ danger?: undefined;
217
+ defaultChecked?: undefined;
218
+ defaultOpen?: undefined;
219
+ content?: undefined;
220
+ onChange?: undefined;
221
+ group?: undefined;
222
222
  } | {
223
223
  label: string;
224
224
  action: () => void;
@@ -1 +1 @@
1
- {"version":3,"file":"ContextmenuItems.d.ts","sourceRoot":"","sources":["../../../../src/components/playground-data/ContextmenuItems.tsx"],"names":[],"mappings":"AAWA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA8NhB,CAAC"}
1
+ {"version":3,"file":"ContextmenuItems.d.ts","sourceRoot":"","sources":["../../../../src/components/playground-data/ContextmenuItems.tsx"],"names":[],"mappings":"AAWA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA+NhB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"map.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/Map/map.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA0B,MAAM,OAAO,CAAC;;;;;;;;;;;;;;;;AAS/C,wBAcC;AA0ED,eAAO,MAAM,OAAO,KAAoB,CAAC;AA8BzC,eAAO,MAAM,cAAc,KAAoB,CAAC;AAYhD,eAAO,MAAM,mBAAmB,KAAoB,CAAC;AAQrD,eAAO,MAAM,UAAU,KAAoB,CAAC"}
1
+ {"version":3,"file":"map.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/Map/map.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA0B,MAAM,OAAO,CAAC;;;;;;;;;;;;;;;;AAS/C,wBAcC;AA0ED,eAAO,MAAM,OAAO,KAAoB,CAAC;AAiCzC,eAAO,MAAM,cAAc,KAAoB,CAAC;AAYhD,eAAO,MAAM,mBAAmB,KAAoB,CAAC;AAQrD,eAAO,MAAM,UAAU,KAAoB,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@abdellatifui/react",
3
3
  "private": false,
4
- "version": "3.1.17",
4
+ "version": "3.1.20",
5
5
  "type": "module",
6
6
  "types": "dist/nextgen.d.ts",
7
7
  "files": [