@linzjs/step-ag-grid 1.4.4 → 1.4.5

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.
Files changed (100) hide show
  1. package/dist/index.js +1602 -3043
  2. package/dist/index.js.map +1 -1
  3. package/dist/src/components/GridLoadableCell.d.ts +2 -0
  4. package/dist/src/components/gridForm/GridFormDropDown.d.ts +1 -1
  5. package/dist/src/components/gridForm/GridFormMultiSelect.d.ts +1 -1
  6. package/dist/src/components/gridPopoverEdit/GridPopoverMenu.d.ts +1 -1
  7. package/dist/src/react-menu3/components/ControlledMenu.d.ts +2 -0
  8. package/dist/src/react-menu3/components/FocusableItem.d.ts +1 -0
  9. package/dist/src/react-menu3/components/Menu.d.ts +2 -0
  10. package/dist/src/react-menu3/components/MenuButton.d.ts +1 -0
  11. package/dist/src/react-menu3/components/MenuDivider.d.ts +2 -0
  12. package/dist/src/react-menu3/components/MenuGroup.d.ts +2 -0
  13. package/dist/src/react-menu3/components/MenuHeader.d.ts +2 -0
  14. package/dist/src/react-menu3/components/MenuItem.d.ts +1 -0
  15. package/dist/src/react-menu3/components/MenuList.d.ts +30 -0
  16. package/dist/src/react-menu3/components/MenuRadioGroup.d.ts +2 -0
  17. package/dist/src/react-menu3/components/SubMenu.d.ts +1 -0
  18. package/dist/src/react-menu3/hooks/index.d.ts +9 -0
  19. package/dist/src/react-menu3/hooks/useBEM.d.ts +9 -0
  20. package/dist/src/react-menu3/hooks/useCombinedRef.d.ts +2 -0
  21. package/dist/src/react-menu3/hooks/useIsomorphicLayoutEffect.d.ts +3 -0
  22. package/dist/src/react-menu3/hooks/useItemEffect.d.ts +2 -0
  23. package/dist/src/react-menu3/hooks/useItemState.d.ts +6 -0
  24. package/dist/src/react-menu3/hooks/useItems.d.ts +5 -0
  25. package/dist/src/react-menu3/hooks/useMenuChange.d.ts +1 -0
  26. package/dist/src/react-menu3/hooks/useMenuState.d.ts +11 -0
  27. package/dist/src/react-menu3/hooks/useMenuStateAndFocus.d.ts +10 -0
  28. package/dist/src/react-menu3/index.d.ts +11 -0
  29. package/dist/src/react-menu3/positionUtils/getPositionHelpers.d.ts +10 -0
  30. package/dist/src/react-menu3/positionUtils/index.d.ts +3 -0
  31. package/dist/src/react-menu3/positionUtils/placeArrowHorizontal.d.ts +7 -0
  32. package/dist/src/react-menu3/positionUtils/placeArrowVertical.d.ts +7 -0
  33. package/dist/src/react-menu3/positionUtils/placeLeftorRight.d.ts +21 -0
  34. package/dist/src/react-menu3/positionUtils/placeToporBottom.d.ts +21 -0
  35. package/dist/src/react-menu3/positionUtils/positionContextMenu.d.ts +8 -0
  36. package/dist/src/react-menu3/positionUtils/positionMenu.d.ts +21 -0
  37. package/dist/src/react-menu3/style-utils/index.d.ts +11 -0
  38. package/dist/src/react-menu3/utils/constants.d.ts +50 -0
  39. package/dist/src/react-menu3/utils/index.d.ts +4 -0
  40. package/dist/src/react-menu3/utils/propTypes.d.ts +55 -0
  41. package/dist/src/react-menu3/utils/utils.d.ts +27 -0
  42. package/dist/src/react-menu3/utils/withHovering.d.ts +1 -0
  43. package/dist/step-ag-grid.esm.js +1513 -2953
  44. package/dist/step-ag-grid.esm.js.map +1 -1
  45. package/package.json +18 -9
  46. package/src/components/GridLoadableCell.scss +4 -0
  47. package/src/components/GridLoadableCell.tsx +5 -1
  48. package/src/components/GridPopoverHook.tsx +4 -50
  49. package/src/components/gridForm/GridFormDropDown.tsx +2 -2
  50. package/src/components/gridForm/GridFormMultiSelect.tsx +4 -4
  51. package/src/components/gridForm/GridFormPopoutMenu.tsx +1 -1
  52. package/src/components/gridPopoverEdit/GridPopoverMenu.scss +6 -2
  53. package/src/components/gridPopoverEdit/GridPopoverMenu.tsx +1 -1
  54. package/src/components/gridRender/GridRenderPopoutMenuCell.tsx +7 -9
  55. package/src/react-menu3/components/ControlledMenu.tsx +260 -0
  56. package/src/react-menu3/components/FocusableItem.tsx +70 -0
  57. package/src/react-menu3/components/Menu.tsx +96 -0
  58. package/src/react-menu3/components/MenuButton.tsx +33 -0
  59. package/src/react-menu3/components/MenuDivider.tsx +21 -0
  60. package/src/react-menu3/components/MenuGroup.tsx +38 -0
  61. package/src/react-menu3/components/MenuHeader.tsx +21 -0
  62. package/src/react-menu3/components/MenuItem.tsx +130 -0
  63. package/src/react-menu3/components/MenuList.tsx +434 -0
  64. package/src/react-menu3/components/MenuRadioGroup.tsx +33 -0
  65. package/src/react-menu3/components/SubMenu.tsx +243 -0
  66. package/src/react-menu3/hooks/index.ts +9 -0
  67. package/src/react-menu3/hooks/useBEM.ts +32 -0
  68. package/src/react-menu3/hooks/useCombinedRef.ts +30 -0
  69. package/src/react-menu3/hooks/useIsomorphicLayoutEffect.ts +15 -0
  70. package/src/react-menu3/hooks/useItemEffect.ts +22 -0
  71. package/src/react-menu3/hooks/useItemState.ts +63 -0
  72. package/src/react-menu3/hooks/useItems.ts +110 -0
  73. package/src/react-menu3/hooks/useMenuChange.ts +12 -0
  74. package/src/react-menu3/hooks/useMenuState.ts +24 -0
  75. package/src/react-menu3/hooks/useMenuStateAndFocus.ts +15 -0
  76. package/src/react-menu3/index.d.ts +682 -0
  77. package/src/react-menu3/index.ts +11 -0
  78. package/src/react-menu3/positionUtils/getPositionHelpers.ts +76 -0
  79. package/src/react-menu3/positionUtils/index.ts +3 -0
  80. package/src/react-menu3/positionUtils/placeArrowHorizontal.ts +8 -0
  81. package/src/react-menu3/positionUtils/placeArrowVertical.ts +8 -0
  82. package/src/react-menu3/positionUtils/placeLeftorRight.ts +76 -0
  83. package/src/react-menu3/positionUtils/placeToporBottom.ts +77 -0
  84. package/src/react-menu3/positionUtils/positionContextMenu.ts +49 -0
  85. package/src/react-menu3/positionUtils/positionMenu.ts +73 -0
  86. package/src/react-menu3/style-utils/index.ts +80 -0
  87. package/src/react-menu3/style-utils.d.ts +110 -0
  88. package/src/react-menu3/styles/_mixins.scss +11 -0
  89. package/src/react-menu3/styles/_var.scss +20 -0
  90. package/src/react-menu3/styles/core.scss +80 -0
  91. package/src/react-menu3/styles/index.scss +70 -0
  92. package/src/react-menu3/styles/theme-dark.scss +30 -0
  93. package/src/react-menu3/styles/transitions/slide.scss +47 -0
  94. package/src/react-menu3/utils/constants.ts +63 -0
  95. package/src/react-menu3/utils/index.ts +4 -0
  96. package/src/react-menu3/utils/propTypes.ts +61 -0
  97. package/src/react-menu3/utils/utils.ts +71 -0
  98. package/src/react-menu3/utils/withHovering.tsx +22 -0
  99. package/src/stories/components/GridPopoutEditDropDown.stories.tsx +1 -3
  100. package/src/utils/util.ts +2 -1
@@ -1,6 +1,8 @@
1
1
  /// <reference types="react" />
2
+ import "./GridLoadableCell.scss";
2
3
  export declare const GridLoadableCell: (props: {
3
4
  isLoading: boolean;
4
5
  dataTestId?: string;
5
6
  children: JSX.Element | string;
7
+ className?: string;
6
8
  }) => JSX.Element;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import "@szhsin/react-menu/dist/index.css";
2
+ import "../../react-menu3/styles/index.scss";
3
3
  import { GridBaseRow } from "../Grid";
4
4
  import { GenericCellEditorParams, GridFormProps } from "../GridCell";
5
5
  export interface GridPopoutEditDropDownSelectedItem<RowType, ValueType> {
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import "@szhsin/react-menu/dist/index.css";
2
+ import "../../react-menu3/styles/index.scss";
3
3
  import { GridBaseRow } from "../Grid";
4
4
  import { GenericCellEditorParams, GridFormProps } from "../GridCell";
5
5
  interface FinalSelectOption<ValueType> {
@@ -1,5 +1,5 @@
1
1
  import "./GridPopoverMenu.scss";
2
- import "@szhsin/react-menu/dist/index.css";
2
+ import "../../react-menu3/styles/index.scss";
3
3
  import { ColDef } from "ag-grid-community";
4
4
  import { GridBaseRow } from "../Grid";
5
5
  import { GridFormPopoutMenuProps } from "../gridForm/GridFormPopoutMenu";
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const ControlledMenu: import("react").ForwardRefExoticComponent<Pick<any, string | number | symbol> & import("react").RefAttributes<unknown>>;
@@ -0,0 +1 @@
1
+ export declare const FocusableItem: any;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const Menu: import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>;
@@ -0,0 +1 @@
1
+ export declare const MenuButton: any;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const MenuDivider: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>>;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const MenuGroup: import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const MenuHeader: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>>;
@@ -0,0 +1 @@
1
+ export declare const MenuItem: any;
@@ -0,0 +1,30 @@
1
+ /// <reference types="react" />
2
+ export declare const MenuList: ({ ariaLabel, menuClassName, menuStyle, arrowClassName, arrowStyle, anchorPoint, anchorRef, containerRef, externalRef, parentScrollingRef, arrow, align, direction, position, overflow, setDownOverflow, repositionFlag, captureFocus, state, endTransition, isDisabled, menuItemFocus, offsetX, offsetY, children, onClose, ...restProps }: {
3
+ [x: string]: any;
4
+ ariaLabel: any;
5
+ menuClassName: any;
6
+ menuStyle: any;
7
+ arrowClassName: any;
8
+ arrowStyle: any;
9
+ anchorPoint: any;
10
+ anchorRef: any;
11
+ containerRef: any;
12
+ externalRef: any;
13
+ parentScrollingRef: any;
14
+ arrow: any;
15
+ align?: string | undefined;
16
+ direction?: string | undefined;
17
+ position?: string | undefined;
18
+ overflow?: string | undefined;
19
+ setDownOverflow: any;
20
+ repositionFlag: any;
21
+ captureFocus?: boolean | undefined;
22
+ state: any;
23
+ endTransition: any;
24
+ isDisabled: any;
25
+ menuItemFocus: any;
26
+ offsetX?: number | undefined;
27
+ offsetY?: number | undefined;
28
+ children: any;
29
+ onClose: any;
30
+ }) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const MenuRadioGroup: import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>;
@@ -0,0 +1 @@
1
+ export declare const SubMenu: any;
@@ -0,0 +1,9 @@
1
+ export { useBEM } from "./useBEM";
2
+ export { useCombinedRef } from "./useCombinedRef";
3
+ export { useLayoutEffect } from "./useIsomorphicLayoutEffect";
4
+ export { useItems } from "./useItems";
5
+ export { useItemEffect } from "./useItemEffect";
6
+ export { useItemState } from "./useItemState";
7
+ export { useMenuChange } from "./useMenuChange";
8
+ export { useMenuState } from "./useMenuState";
9
+ export { useMenuStateAndFocus } from "./useMenuStateAndFocus";
@@ -0,0 +1,9 @@
1
+ declare type useBemModifiers = Record<string, boolean | string | undefined>;
2
+ interface useBemProps {
3
+ block: string;
4
+ element: string;
5
+ modifiers: useBemModifiers;
6
+ className: string | ((modifiers: useBemModifiers) => string | undefined);
7
+ }
8
+ export declare const useBEM: ({ block, element, modifiers, className }: useBemProps) => string;
9
+ export {};
@@ -0,0 +1,2 @@
1
+ import { Ref } from "react";
2
+ export declare const useCombinedRef: <Instance>(refA: Ref<Instance> | undefined, refB: Ref<Instance> | undefined) => Ref<Instance> | undefined;
@@ -0,0 +1,3 @@
1
+ import { useLayoutEffect } from "react";
2
+ declare const useIsomorphicLayoutEffect: typeof useLayoutEffect;
3
+ export { useIsomorphicLayoutEffect as useLayoutEffect };
@@ -0,0 +1,2 @@
1
+ import { MutableRefObject } from "react";
2
+ export declare const useItemEffect: (isDisabled: boolean, itemRef: MutableRefObject<any>, updateItems: (item: any, isMounted?: boolean) => void) => void;
@@ -0,0 +1,6 @@
1
+ export declare const useItemState: (itemRef: any, focusRef: any, isHovering: any, isDisabled: any) => {
2
+ setHover: () => void;
3
+ onBlur: (e: any) => void;
4
+ onPointerMove: () => void;
5
+ onPointerLeave: (_: any, keepHover: any) => void;
6
+ };
@@ -0,0 +1,5 @@
1
+ export declare const useItems: (menuRef: any, focusRef: any) => {
2
+ hoverItem: undefined;
3
+ dispatch: (actionType: any, item: any, nextIndex: any) => void;
4
+ updateItems: (item: any, isMounted: any) => void;
5
+ };
@@ -0,0 +1 @@
1
+ export declare const useMenuChange: (onMenuChange: any, isOpen: any) => void;
@@ -0,0 +1,11 @@
1
+ interface useMenuStateProps {
2
+ initialMounted?: boolean;
3
+ unmountOnClose?: boolean;
4
+ transition: boolean | Record<string, string>;
5
+ transitionTimeout?: number;
6
+ }
7
+ export declare const useMenuState: (props?: useMenuStateProps) => (((toEnter?: boolean | undefined) => void) | {
8
+ state: string | undefined;
9
+ endTransition: () => void;
10
+ })[];
11
+ export {};
@@ -0,0 +1,10 @@
1
+ export declare const useMenuStateAndFocus: (options: any) => (((toEnter?: boolean | undefined) => void) | {
2
+ state: string | undefined;
3
+ endTransition: () => void;
4
+ } | ((position: any, alwaysUpdate: any) => void) | {
5
+ menuItemFocus: undefined;
6
+ } | {
7
+ state: string | undefined;
8
+ endTransition: () => void;
9
+ menuItemFocus: undefined;
10
+ })[];
@@ -0,0 +1,11 @@
1
+ export { useMenuState } from "./hooks";
2
+ export { MenuButton } from "./components/MenuButton";
3
+ export { Menu } from "./components/Menu";
4
+ export { ControlledMenu } from "./components/ControlledMenu";
5
+ export { SubMenu } from "./components/SubMenu";
6
+ export { MenuItem } from "./components/MenuItem";
7
+ export { FocusableItem } from "./components/FocusableItem";
8
+ export { MenuDivider } from "./components/MenuDivider";
9
+ export { MenuHeader } from "./components/MenuHeader";
10
+ export { MenuGroup } from "./components/MenuGroup";
11
+ export { MenuRadioGroup } from "./components/MenuRadioGroup";
@@ -0,0 +1,10 @@
1
+ export declare const getPositionHelpers: (containerRef: any, menuRef: any, menuScroll: any, boundingBoxPadding: any) => {
2
+ menuRect: any;
3
+ containerRect: any;
4
+ getLeftOverflow: (x: any) => number;
5
+ getRightOverflow: (x: any) => number;
6
+ getTopOverflow: (y: any) => number;
7
+ getBottomOverflow: (y: any) => number;
8
+ confineHorizontally: (x: any) => any;
9
+ confineVertically: (y: any) => any;
10
+ };
@@ -0,0 +1,3 @@
1
+ export { getPositionHelpers } from "./getPositionHelpers";
2
+ export { positionContextMenu } from "./positionContextMenu";
3
+ export { positionMenu } from "./positionMenu";
@@ -0,0 +1,7 @@
1
+ export declare const placeArrowHorizontal: ({ arrowRef, menuX, anchorRect, containerRect, menuRect }: {
2
+ arrowRef: any;
3
+ menuX: any;
4
+ anchorRect: any;
5
+ containerRect: any;
6
+ menuRect: any;
7
+ }) => number;
@@ -0,0 +1,7 @@
1
+ export declare const placeArrowVertical: ({ arrowRef, menuY, anchorRect, containerRect, menuRect }: {
2
+ arrowRef: any;
3
+ menuY: any;
4
+ anchorRect: any;
5
+ containerRect: any;
6
+ menuRect: any;
7
+ }) => number;
@@ -0,0 +1,21 @@
1
+ export declare const placeLeftorRight: ({ anchorRect, containerRect, menuRect, placeLeftorRightY, placeLeftX, placeRightX, getLeftOverflow, getRightOverflow, confineHorizontally, confineVertically, arrowRef, arrow, direction, position, }: {
2
+ anchorRect: any;
3
+ containerRect: any;
4
+ menuRect: any;
5
+ placeLeftorRightY: any;
6
+ placeLeftX: any;
7
+ placeRightX: any;
8
+ getLeftOverflow: any;
9
+ getRightOverflow: any;
10
+ confineHorizontally: any;
11
+ confineVertically: any;
12
+ arrowRef: any;
13
+ arrow: any;
14
+ direction: any;
15
+ position: any;
16
+ }) => {
17
+ arrowY: number | undefined;
18
+ x: any;
19
+ y: any;
20
+ computedDirection: any;
21
+ };
@@ -0,0 +1,21 @@
1
+ export declare const placeToporBottom: ({ anchorRect, containerRect, menuRect, placeToporBottomX, placeTopY, placeBottomY, getTopOverflow, getBottomOverflow, confineHorizontally, confineVertically, arrowRef, arrow, direction, position, }: {
2
+ anchorRect: any;
3
+ containerRect: any;
4
+ menuRect: any;
5
+ placeToporBottomX: any;
6
+ placeTopY: any;
7
+ placeBottomY: any;
8
+ getTopOverflow: any;
9
+ getBottomOverflow: any;
10
+ confineHorizontally: any;
11
+ confineVertically: any;
12
+ arrowRef: any;
13
+ arrow: any;
14
+ direction: any;
15
+ position: any;
16
+ }) => {
17
+ arrowX: number | undefined;
18
+ x: any;
19
+ y: any;
20
+ computedDirection: string;
21
+ };
@@ -0,0 +1,8 @@
1
+ export declare const positionContextMenu: ({ positionHelpers, anchorPoint }: {
2
+ positionHelpers: any;
3
+ anchorPoint: any;
4
+ }) => {
5
+ x: any;
6
+ y: any;
7
+ computedDirection: string;
8
+ };
@@ -0,0 +1,21 @@
1
+ export declare const positionMenu: ({ arrow, align, direction, offsetX, offsetY, position, anchorRef, arrowRef, positionHelpers, }: {
2
+ arrow: any;
3
+ align: any;
4
+ direction: any;
5
+ offsetX: any;
6
+ offsetY: any;
7
+ position: any;
8
+ anchorRef: any;
9
+ arrowRef: any;
10
+ positionHelpers: any;
11
+ }) => {
12
+ arrowY: number | undefined;
13
+ x: any;
14
+ y: any;
15
+ computedDirection: any;
16
+ } | {
17
+ arrowX: number | undefined;
18
+ x: any;
19
+ y: any;
20
+ computedDirection: string;
21
+ };
@@ -0,0 +1,11 @@
1
+ declare const menuSelector: {};
2
+ declare const menuArrowSelector: {};
3
+ declare const menuItemSelector: {};
4
+ declare const menuDividerSelector: {};
5
+ declare const menuHeaderSelector: {};
6
+ declare const menuGroupSelector: {};
7
+ declare const radioGroupSelector: {};
8
+ declare const submenuSelector: {};
9
+ declare const menuContainerSelector: {};
10
+ declare const menuButtonSelector: {};
11
+ export { menuContainerSelector, menuButtonSelector, menuSelector, menuArrowSelector, menuItemSelector, menuDividerSelector, menuHeaderSelector, menuGroupSelector, radioGroupSelector, submenuSelector, };
@@ -0,0 +1,50 @@
1
+ /// <reference types="react" />
2
+ export declare const menuContainerClass = "szh-menu-container";
3
+ export declare const menuClass = "szh-menu";
4
+ export declare const menuButtonClass = "szh-menu-button";
5
+ export declare const menuArrowClass = "arrow";
6
+ export declare const menuItemClass = "item";
7
+ export declare const menuDividerClass = "divider";
8
+ export declare const menuHeaderClass = "header";
9
+ export declare const menuGroupClass = "group";
10
+ export declare const subMenuClass = "submenu";
11
+ export declare const radioGroupClass = "radio-group";
12
+ export declare const HoverItemContext: import("react").Context<unknown>;
13
+ export declare const MenuListItemContext: import("react").Context<{}>;
14
+ export declare const MenuListContext: import("react").Context<{}>;
15
+ export declare const EventHandlersContext: import("react").Context<{}>;
16
+ export declare const RadioGroupContext: import("react").Context<{}>;
17
+ export declare const SettingsContext: import("react").Context<{}>;
18
+ export declare const ItemSettingsContext: import("react").Context<{}>;
19
+ export declare const Keys: Readonly<{
20
+ ENTER: "Enter";
21
+ ESC: "Escape";
22
+ SPACE: " ";
23
+ HOME: "Home";
24
+ END: "End";
25
+ LEFT: "ArrowLeft";
26
+ RIGHT: "ArrowRight";
27
+ UP: "ArrowUp";
28
+ DOWN: "ArrowDown";
29
+ }>;
30
+ export declare const HoverActionTypes: Readonly<{
31
+ RESET: 0;
32
+ SET: 1;
33
+ UNSET: 2;
34
+ INCREASE: 3;
35
+ DECREASE: 4;
36
+ FIRST: 5;
37
+ LAST: 6;
38
+ SET_INDEX: 7;
39
+ }>;
40
+ export declare const CloseReason: Readonly<{
41
+ CLICK: "click";
42
+ CANCEL: "cancel";
43
+ BLUR: "blur";
44
+ SCROLL: "scroll";
45
+ }>;
46
+ export declare const FocusPositions: Readonly<{
47
+ FIRST: "first";
48
+ LAST: "last";
49
+ }>;
50
+ export declare const MenuStateMap: Record<string, string | undefined>;
@@ -0,0 +1,4 @@
1
+ export * from "./constants";
2
+ export * from "./utils";
3
+ export * from "./propTypes";
4
+ export { withHovering } from "./withHovering";
@@ -0,0 +1,55 @@
1
+ export declare const stylePropTypes: (name?: string) => {
2
+ [x: string]: import("prop-types").Requireable<NonNullable<string | ((...args: any[]) => any) | null | undefined>>;
3
+ };
4
+ export declare const menuPropTypes: {
5
+ menuStyle: import("prop-types").Requireable<object>;
6
+ arrowStyle: import("prop-types").Requireable<object>;
7
+ arrow: import("prop-types").Requireable<boolean>;
8
+ setDownOverflow: import("prop-types").Requireable<boolean>;
9
+ offsetX: import("prop-types").Requireable<number>;
10
+ offsetY: import("prop-types").Requireable<number>;
11
+ align: import("prop-types").Requireable<string>;
12
+ direction: import("prop-types").Requireable<string>;
13
+ position: import("prop-types").Requireable<string>;
14
+ overflow: import("prop-types").Requireable<string>;
15
+ className: import("prop-types").Requireable<string>;
16
+ };
17
+ export declare const rootMenuPropTypes: {
18
+ containerProps: import("prop-types").Requireable<object>;
19
+ initialMounted: import("prop-types").Requireable<boolean>;
20
+ unmountOnClose: import("prop-types").Requireable<boolean>;
21
+ transition: import("prop-types").Requireable<NonNullable<boolean | Required<import("prop-types").InferProps<{
22
+ open: import("prop-types").Requireable<boolean>;
23
+ close: import("prop-types").Requireable<boolean>;
24
+ item: import("prop-types").Requireable<boolean>;
25
+ }>> | null | undefined>>;
26
+ transitionTimeout: import("prop-types").Requireable<number>;
27
+ boundingBoxRef: import("prop-types").Requireable<object>;
28
+ boundingBoxPadding: import("prop-types").Requireable<string>;
29
+ reposition: import("prop-types").Requireable<string>;
30
+ repositionFlag: import("prop-types").Requireable<NonNullable<string | number | null | undefined>>;
31
+ viewScroll: import("prop-types").Requireable<string>;
32
+ submenuOpenDelay: import("prop-types").Requireable<number>;
33
+ submenuCloseDelay: import("prop-types").Requireable<number>;
34
+ portal: import("prop-types").Requireable<NonNullable<boolean | Required<import("prop-types").InferProps<{
35
+ target: import("prop-types").Requireable<object>;
36
+ stablePosition: import("prop-types").Requireable<boolean>;
37
+ }>> | null | undefined>>;
38
+ theming: import("prop-types").Requireable<string>;
39
+ onItemClick: import("prop-types").Requireable<(...args: any[]) => any>;
40
+ menuStyle: import("prop-types").Requireable<object>;
41
+ arrowStyle: import("prop-types").Requireable<object>;
42
+ arrow: import("prop-types").Requireable<boolean>;
43
+ setDownOverflow: import("prop-types").Requireable<boolean>;
44
+ offsetX: import("prop-types").Requireable<number>;
45
+ offsetY: import("prop-types").Requireable<number>;
46
+ align: import("prop-types").Requireable<string>;
47
+ direction: import("prop-types").Requireable<string>;
48
+ position: import("prop-types").Requireable<string>;
49
+ overflow: import("prop-types").Requireable<string>;
50
+ className: import("prop-types").Requireable<string>;
51
+ };
52
+ export declare const uncontrolledMenuPropTypes: {
53
+ instanceRef: import("prop-types").Requireable<object>;
54
+ onMenuChange: import("prop-types").Requireable<(...args: any[]) => any>;
55
+ };
@@ -0,0 +1,27 @@
1
+ import { unstable_batchedUpdates } from "react-dom";
2
+ export declare const isMenuOpen: (state: any) => boolean;
3
+ export declare const batchedUpdates: typeof unstable_batchedUpdates;
4
+ export declare const values: {
5
+ <T>(o: {
6
+ [s: string]: T;
7
+ } | ArrayLike<T>): T[];
8
+ (o: {}): any[];
9
+ };
10
+ export declare const floatEqual: (a: number, b: number, diff?: number) => boolean;
11
+ export declare const getTransition: (transition: boolean | Record<string, string>, name: string) => boolean;
12
+ export declare const safeCall: (fn: any, arg: any) => any;
13
+ export declare const getName: (component: any) => any;
14
+ export declare const defineName: (name: any, component: any) => any;
15
+ export declare const mergeProps: (target: Record<string, any>, source: Record<string, any>) => Record<string, any>;
16
+ export declare const parsePadding: (paddingStr: any) => {
17
+ top: number;
18
+ right: number;
19
+ bottom: number;
20
+ left: number;
21
+ };
22
+ export declare const getScrollAncestor: (node: any) => any;
23
+ export declare function commonProps(isDisabled: any, isHovering: any): {
24
+ "aria-disabled": any;
25
+ tabIndex: number;
26
+ };
27
+ export declare function indexOfNode(nodeList: any, node: any): number;
@@ -0,0 +1 @@
1
+ export declare const withHovering: (name: string, WrappedComponent: any) => any;