@linzjs/step-ag-grid 23.0.1 → 24.0.0
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/src/components/ComponentLoadingWrapper.d.ts +1 -1
- package/dist/src/components/Grid.d.ts +17 -17
- package/dist/src/components/GridCell.d.ts +9 -9
- package/dist/src/components/GridCellFiller.d.ts +2 -2
- package/dist/src/components/GridCellMultiEditor.d.ts +6 -6
- package/dist/src/components/GridCellMultiSelectClassRules.d.ts +1 -1
- package/dist/src/components/GridIcon.d.ts +2 -2
- package/dist/src/components/GridNoRowsOverlay.d.ts +1 -1
- package/dist/src/components/GridPopoverHook.d.ts +2 -2
- package/dist/src/components/GridWrapper.d.ts +1 -1
- package/dist/src/components/PostSortRowsHook.d.ts +1 -1
- package/dist/src/components/clickInputWhenContainingCellClicked.d.ts +1 -1
- package/dist/src/components/gridFilter/GridFilterButtons.d.ts +5 -5
- package/dist/src/components/gridFilter/GridFilterColumnsToggle.d.ts +1 -1
- package/dist/src/components/gridFilter/GridFilterDownloadCsvButton.d.ts +1 -1
- package/dist/src/components/gridFilter/GridFilterHeaderIconButton.d.ts +2 -2
- package/dist/src/components/gridFilter/GridFilters.d.ts +1 -1
- package/dist/src/components/gridFilter/index.d.ts +7 -7
- package/dist/src/components/gridFilter/useGridFilter.d.ts +2 -2
- package/dist/src/components/gridForm/GridFormDropDown.d.ts +8 -8
- package/dist/src/components/gridForm/GridFormEditBearing.d.ts +2 -2
- package/dist/src/components/gridForm/GridFormMessage.d.ts +3 -3
- package/dist/src/components/gridForm/GridFormMultiSelect.d.ts +4 -4
- package/dist/src/components/gridForm/GridFormMultiSelectGrid.d.ts +4 -4
- package/dist/src/components/gridForm/GridFormPopoverMenu.d.ts +5 -5
- package/dist/src/components/gridForm/GridFormSubComponentTextArea.d.ts +4 -4
- package/dist/src/components/gridForm/GridFormSubComponentTextInput.d.ts +4 -4
- package/dist/src/components/gridForm/GridFormTextArea.d.ts +4 -4
- package/dist/src/components/gridForm/GridFormTextInput.d.ts +3 -3
- package/dist/src/components/gridForm/index.d.ts +10 -10
- package/dist/src/components/gridHeader/GridHeaderSelect.d.ts +1 -1
- package/dist/src/components/gridHeader/index.d.ts +1 -1
- package/dist/src/components/gridHook/index.d.ts +1 -1
- package/dist/src/components/gridHook/useGridContextMenu.d.ts +4 -4
- package/dist/src/components/gridPopoverEdit/GridButton.d.ts +5 -5
- package/dist/src/components/gridPopoverEdit/GridEditBoolean.d.ts +4 -4
- package/dist/src/components/gridPopoverEdit/GridPopoutEditMultiSelect.d.ts +4 -4
- package/dist/src/components/gridPopoverEdit/GridPopoutEditMultiSelectGrid.d.ts +4 -4
- package/dist/src/components/gridPopoverEdit/GridPopoverEditBearing.d.ts +4 -4
- package/dist/src/components/gridPopoverEdit/GridPopoverEditDropDown.d.ts +4 -4
- package/dist/src/components/gridPopoverEdit/GridPopoverMenu.d.ts +4 -4
- package/dist/src/components/gridPopoverEdit/GridPopoverMessage.d.ts +4 -4
- package/dist/src/components/gridPopoverEdit/GridPopoverTextArea.d.ts +4 -4
- package/dist/src/components/gridPopoverEdit/GridPopoverTextInput.d.ts +4 -4
- package/dist/src/components/gridPopoverEdit/index.d.ts +11 -11
- package/dist/src/components/gridRender/GridRenderGenericCell.d.ts +5 -5
- package/dist/src/components/gridRender/GridRenderPopoutMenuCell.d.ts +1 -1
- package/dist/src/components/gridRender/index.d.ts +2 -2
- package/dist/src/components/gridUtil.d.ts +1 -1
- package/dist/src/components/index.d.ts +19 -19
- package/dist/src/contexts/GridContext.d.ts +4 -4
- package/dist/src/contexts/GridContextProvider.d.ts +3 -3
- package/dist/src/contexts/GridPopoverContext.d.ts +3 -3
- package/dist/src/contexts/GridPopoverContextProvider.d.ts +4 -4
- package/dist/src/contexts/GridUpdatingContextProvider.d.ts +1 -1
- package/dist/src/index.d.ts +17 -17
- package/dist/src/lui/ActionButton.d.ts +9 -9
- package/dist/src/lui/FormError.d.ts +2 -2
- package/dist/src/lui/TextAreaInput.d.ts +1 -1
- package/dist/src/lui/TextInputFormatted.d.ts +2 -2
- package/dist/src/lui/reactUtils.d.ts +1 -1
- package/dist/src/lui/stateDeferredHook.d.ts +1 -1
- package/dist/src/react-menu3/components/ControlledMenu.d.ts +2 -2
- package/dist/src/react-menu3/components/FocusableItem.d.ts +3 -3
- package/dist/src/react-menu3/components/Menu.d.ts +3 -3
- package/dist/src/react-menu3/components/MenuButton.d.ts +2 -2
- package/dist/src/react-menu3/components/MenuDivider.d.ts +1 -1
- package/dist/src/react-menu3/components/MenuGroup.d.ts +2 -2
- package/dist/src/react-menu3/components/MenuHeader.d.ts +2 -2
- package/dist/src/react-menu3/components/MenuItem.d.ts +3 -3
- package/dist/src/react-menu3/components/MenuList.d.ts +1 -1
- package/dist/src/react-menu3/components/MenuRadioGroup.d.ts +2 -2
- package/dist/src/react-menu3/components/SubMenu.d.ts +5 -5
- package/dist/src/react-menu3/contexts/EventHandlersContext.d.ts +1 -1
- package/dist/src/react-menu3/contexts/MenuListContext.d.ts +2 -2
- package/dist/src/react-menu3/contexts/MenuListItemContext.d.ts +1 -1
- package/dist/src/react-menu3/contexts/RadioGroupContext.d.ts +1 -1
- package/dist/src/react-menu3/contexts/SettingsContext.d.ts +2 -2
- package/dist/src/react-menu3/hooks/index.d.ts +9 -9
- package/dist/src/react-menu3/hooks/useBEM.d.ts +1 -1
- package/dist/src/react-menu3/hooks/useCombinedRef.d.ts +1 -1
- package/dist/src/react-menu3/hooks/useIsomorphicLayoutEffect.d.ts +1 -1
- package/dist/src/react-menu3/hooks/useItemEffect.d.ts +1 -1
- package/dist/src/react-menu3/hooks/useItemState.d.ts +1 -1
- package/dist/src/react-menu3/hooks/useItems.d.ts +2 -2
- package/dist/src/react-menu3/hooks/useMenuChange.d.ts +1 -1
- package/dist/src/react-menu3/hooks/useMenuState.d.ts +1 -1
- package/dist/src/react-menu3/hooks/useMenuStateAndFocus.d.ts +1 -1
- package/dist/src/react-menu3/index.d.ts +11 -11
- package/dist/src/react-menu3/positionUtils/getPositionHelpers.d.ts +1 -1
- package/dist/src/react-menu3/positionUtils/index.d.ts +3 -3
- package/dist/src/react-menu3/positionUtils/placeArrowHorizontal.d.ts +1 -1
- package/dist/src/react-menu3/positionUtils/placeArrowVertical.d.ts +1 -1
- package/dist/src/react-menu3/positionUtils/placeLeftorRight.d.ts +4 -4
- package/dist/src/react-menu3/positionUtils/placeToporBottom.d.ts +5 -5
- package/dist/src/react-menu3/positionUtils/positionContextMenu.d.ts +2 -2
- package/dist/src/react-menu3/positionUtils/positionMenu.d.ts +5 -5
- package/dist/src/react-menu3/style-utils/index.d.ts +1 -1
- package/dist/src/react-menu3/types.d.ts +15 -15
- package/dist/src/react-menu3/utils/constants.d.ts +1 -1
- package/dist/src/react-menu3/utils/index.d.ts +3 -3
- package/dist/src/react-menu3/utils/utils.d.ts +5 -5
- package/dist/src/react-menu3/utils/withHovering.d.ts +1 -1
- package/dist/src/utils/testQuick.d.ts +2 -2
- package/dist/src/utils/testUtil.d.ts +2 -2
- package/dist/src/utils/textValidator.d.ts +2 -2
- package/dist/step-ag-grid.cjs.js +966 -952
- package/dist/step-ag-grid.cjs.js.map +1 -1
- package/dist/step-ag-grid.esm.js +968 -954
- package/dist/step-ag-grid.esm.js.map +1 -1
- package/package.json +26 -41
- package/src/components/ComponentLoadingWrapper.tsx +5 -6
- package/src/components/Grid.tsx +85 -83
- package/src/components/GridCell.test.tsx +15 -15
- package/src/components/GridCell.tsx +46 -44
- package/src/components/GridCellFiller.tsx +5 -4
- package/src/components/GridCellMultiEditor.tsx +7 -7
- package/src/components/GridCellMultiSelectClassRules.tsx +3 -3
- package/src/components/GridIcon.tsx +6 -7
- package/src/components/GridLoadableCell.tsx +2 -2
- package/src/components/GridNoRowsOverlay.tsx +8 -8
- package/src/components/GridPopoverHook.tsx +16 -16
- package/src/components/GridWrapper.tsx +2 -2
- package/src/components/PostSortRowsHook.ts +11 -11
- package/src/components/clickInputWhenContainingCellClicked.tsx +5 -5
- package/src/components/gridFilter/GridFilterButtons.tsx +8 -9
- package/src/components/gridFilter/GridFilterColumnsToggle.tsx +25 -26
- package/src/components/gridFilter/GridFilterDownloadCsvButton.tsx +12 -13
- package/src/components/gridFilter/GridFilterHeaderIconButton.tsx +9 -10
- package/src/components/gridFilter/GridFilterQuick.tsx +6 -6
- package/src/components/gridFilter/GridFilters.tsx +1 -1
- package/src/components/gridFilter/index.ts +7 -7
- package/src/components/gridFilter/useGridFilter.ts +3 -3
- package/src/components/gridForm/GridFormDropDown.tsx +56 -52
- package/src/components/gridForm/GridFormEditBearing.tsx +12 -12
- package/src/components/gridForm/GridFormMessage.tsx +10 -10
- package/src/components/gridForm/GridFormMultiSelect.tsx +53 -51
- package/src/components/gridForm/GridFormMultiSelectGrid.tsx +25 -26
- package/src/components/gridForm/GridFormPopoverMenu.tsx +32 -29
- package/src/components/gridForm/GridFormSubComponentTextArea.tsx +10 -10
- package/src/components/gridForm/GridFormSubComponentTextInput.tsx +8 -8
- package/src/components/gridForm/GridFormTextArea.tsx +11 -11
- package/src/components/gridForm/GridFormTextInput.tsx +11 -11
- package/src/components/gridForm/index.ts +10 -10
- package/src/components/gridHeader/GridHeaderSelect.tsx +9 -9
- package/src/components/gridHeader/index.ts +1 -1
- package/src/components/gridHook/index.ts +1 -1
- package/src/components/gridHook/useGridContextMenu.tsx +7 -7
- package/src/components/gridPopoverEdit/GridButton.tsx +13 -12
- package/src/components/gridPopoverEdit/GridEditBoolean.tsx +19 -18
- package/src/components/gridPopoverEdit/GridPopoutEditMultiSelect.ts +7 -6
- package/src/components/gridPopoverEdit/GridPopoutEditMultiSelectGrid.ts +7 -6
- package/src/components/gridPopoverEdit/GridPopoverEditBearing.ts +9 -9
- package/src/components/gridPopoverEdit/GridPopoverEditDropDown.ts +8 -7
- package/src/components/gridPopoverEdit/GridPopoverMenu.tsx +6 -6
- package/src/components/gridPopoverEdit/GridPopoverMessage.ts +4 -4
- package/src/components/gridPopoverEdit/GridPopoverTextArea.ts +4 -4
- package/src/components/gridPopoverEdit/GridPopoverTextInput.ts +4 -4
- package/src/components/gridPopoverEdit/index.ts +11 -11
- package/src/components/gridRender/GridRenderGenericCell.tsx +5 -5
- package/src/components/gridRender/GridRenderPopoutMenuCell.tsx +8 -9
- package/src/components/gridRender/index.ts +2 -2
- package/src/components/gridUtil.ts +3 -3
- package/src/components/index.ts +19 -19
- package/src/contexts/GridContext.tsx +52 -46
- package/src/contexts/GridContextProvider.test.tsx +14 -14
- package/src/contexts/GridContextProvider.tsx +42 -41
- package/src/contexts/GridPopoverContext.tsx +10 -7
- package/src/contexts/GridPopoverContextProvider.tsx +12 -10
- package/src/contexts/GridSubComponentContext.ts +6 -5
- package/src/contexts/GridUpdatingContext.tsx +5 -4
- package/src/contexts/GridUpdatingContextProvider.tsx +3 -3
- package/src/index.ts +17 -21
- package/src/lui/ActionButton.tsx +42 -41
- package/src/lui/FormError.tsx +4 -4
- package/src/lui/TextAreaInput.tsx +9 -9
- package/src/lui/TextInputFormatted.tsx +11 -11
- package/src/lui/reactUtils.test.tsx +8 -8
- package/src/lui/reactUtils.tsx +2 -2
- package/src/lui/stateDeferredHook.tsx +3 -5
- package/src/lui/timeoutHook.test.tsx +5 -5
- package/src/lui/timeoutHook.tsx +1 -1
- package/src/react-app-env.d.ts +1 -1
- package/src/react-menu3/components/ControlledMenu.tsx +48 -48
- package/src/react-menu3/components/FocusableItem.tsx +7 -7
- package/src/react-menu3/components/Menu.tsx +11 -11
- package/src/react-menu3/components/MenuButton.tsx +4 -4
- package/src/react-menu3/components/MenuDivider.tsx +4 -4
- package/src/react-menu3/components/MenuGroup.tsx +5 -5
- package/src/react-menu3/components/MenuHeader.tsx +4 -4
- package/src/react-menu3/components/MenuItem.tsx +14 -14
- package/src/react-menu3/components/MenuList.tsx +55 -55
- package/src/react-menu3/components/MenuRadioGroup.tsx +7 -7
- package/src/react-menu3/components/SubMenu.tsx +24 -24
- package/src/react-menu3/contexts/EventHandlersContext.ts +2 -2
- package/src/react-menu3/contexts/HoverItemContext.ts +1 -1
- package/src/react-menu3/contexts/ItemSettingsContext.ts +1 -1
- package/src/react-menu3/contexts/MenuListContext.ts +2 -2
- package/src/react-menu3/contexts/MenuListItemContext.ts +2 -2
- package/src/react-menu3/contexts/RadioGroupContext.ts +2 -2
- package/src/react-menu3/contexts/SettingsContext.ts +2 -2
- package/src/react-menu3/hooks/index.ts +9 -9
- package/src/react-menu3/hooks/useBEM.ts +4 -4
- package/src/react-menu3/hooks/useCombinedRef.ts +2 -2
- package/src/react-menu3/hooks/useIsomorphicLayoutEffect.ts +4 -4
- package/src/react-menu3/hooks/useItemEffect.ts +3 -3
- package/src/react-menu3/hooks/useItemState.ts +5 -5
- package/src/react-menu3/hooks/useItems.ts +8 -8
- package/src/react-menu3/hooks/useMenuChange.ts +3 -3
- package/src/react-menu3/hooks/useMenuState.ts +5 -5
- package/src/react-menu3/hooks/useMenuStateAndFocus.ts +4 -4
- package/src/react-menu3/index.ts +11 -11
- package/src/react-menu3/positionUtils/getPositionHelpers.ts +2 -2
- package/src/react-menu3/positionUtils/index.ts +3 -3
- package/src/react-menu3/positionUtils/placeArrowHorizontal.ts +1 -1
- package/src/react-menu3/positionUtils/placeArrowVertical.ts +1 -1
- package/src/react-menu3/positionUtils/placeLeftorRight.ts +13 -13
- package/src/react-menu3/positionUtils/placeToporBottom.ts +15 -15
- package/src/react-menu3/positionUtils/positionContextMenu.ts +4 -4
- package/src/react-menu3/positionUtils/positionMenu.ts +14 -14
- package/src/react-menu3/style-utils/index.ts +24 -24
- package/src/react-menu3/types.ts +15 -15
- package/src/react-menu3/utils/constants.ts +33 -33
- package/src/react-menu3/utils/index.ts +3 -4
- package/src/react-menu3/utils/propTypes2.ts +10 -10
- package/src/react-menu3/utils/utils.ts +14 -14
- package/src/react-menu3/utils/withHovering.tsx +3 -3
- package/src/stories/components/ActionButton.stories.tsx +23 -24
- package/src/stories/grid/FormTest.tsx +15 -16
- package/src/stories/grid/GridDragRow.stories.tsx +33 -34
- package/src/stories/grid/GridFilterButtons.stories.tsx +32 -33
- package/src/stories/grid/GridNoRowsOverlay.stories.tsx +9 -10
- package/src/stories/grid/GridNonEditableRow.stories.tsx +40 -41
- package/src/stories/grid/GridPinnedRow.stories.tsx +25 -26
- package/src/stories/grid/GridPopoutContextMenu.stories.tsx +33 -32
- package/src/stories/grid/GridPopoutEditBoolean.stories.tsx +21 -22
- package/src/stories/grid/GridPopoutEditGeneric.stories.tsx +18 -19
- package/src/stories/grid/GridPopoutEditGenericTextArea.stories.tsx +50 -49
- package/src/stories/grid/GridPopoverEditBearing.stories.tsx +25 -26
- package/src/stories/grid/GridPopoverEditDropDown.stories.tsx +93 -94
- package/src/stories/grid/GridPopoverEditMultiSelect.stories.tsx +62 -63
- package/src/stories/grid/GridPopoverEditMultiSelectGrid.stories.tsx +28 -28
- package/src/stories/grid/GridReadOnly.stories.tsx +66 -67
- package/src/stories/grid/GridViewList.stories.tsx +37 -38
- package/src/stories/grid/gridFormInteraction/GridFormDropDownInteraction.stories.tsx +37 -38
- package/src/stories/grid/gridFormInteraction/GridFormEditBearingCorrectionInteraction.stories.tsx +25 -26
- package/src/stories/grid/gridFormInteraction/GridFormEditBearingInteraction.stories.tsx +25 -26
- package/src/stories/grid/gridFormInteraction/GridFormMultiSelectGridInteraction.stories.tsx +31 -31
- package/src/stories/grid/gridFormInteraction/GridFormMultiSelectInteraction.stories.tsx +47 -48
- package/src/stories/grid/gridFormInteraction/GridFormPopoverMenuInteraction.stories.tsx +44 -45
- package/src/stories/grid/gridFormInteraction/GridFormTextAreaInteraction.stories.tsx +19 -20
- package/src/stories/grid/gridFormInteraction/GridFormTextInputInteraction.stories.tsx +21 -22
- package/src/stories/grid/gridFormStatic/GridFormDropDown.stories.tsx +40 -41
- package/src/stories/grid/gridFormStatic/GridFormEditBearing.stories.tsx +14 -15
- package/src/stories/grid/gridFormStatic/GridFormEditBearingCorrection.stories.tsx +14 -15
- package/src/stories/grid/gridFormStatic/GridFormMessage.stories.tsx +10 -11
- package/src/stories/grid/gridFormStatic/GridFormMultiSelect.stories.tsx +20 -21
- package/src/stories/grid/gridFormStatic/GridFormPopoverMenu.stories.tsx +16 -17
- package/src/stories/grid/gridFormStatic/GridFormTextArea.stories.tsx +13 -14
- package/src/stories/grid/gridFormStatic/GridFormTextInput.stories.tsx +13 -14
- package/src/stories/grid/interactions/GridKeyboardInteractions.stories.tsx +68 -71
- package/src/stories/react-menu/ReactMenu.stories.tsx +26 -26
- package/src/utils/bearing.test.ts +44 -44
- package/src/utils/bearing.ts +20 -20
- package/src/utils/deferredPromise.ts +1 -1
- package/src/utils/storybookTestUtil.ts +2 -2
- package/src/utils/testQuick.ts +15 -14
- package/src/utils/testUtil.ts +31 -36
- package/src/utils/textMatcher.test.ts +9 -9
- package/src/utils/textMatcher.ts +8 -8
- package/src/utils/textValidator.test.ts +56 -56
- package/src/utils/textValidator.ts +11 -11
- package/src/utils/util.test.ts +20 -20
- package/src/utils/util.ts +7 -7
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GridBaseRow } from
|
|
2
|
-
import { ColDefT, GenericCellEditorProps } from
|
|
3
|
-
import { GridFormTextInputProps } from
|
|
4
|
-
import { GenericCellColDef } from
|
|
1
|
+
import { GridBaseRow } from '../Grid';
|
|
2
|
+
import { ColDefT, GenericCellEditorProps } from '../GridCell';
|
|
3
|
+
import { GridFormTextInputProps } from '../gridForm/GridFormTextInput';
|
|
4
|
+
import { GenericCellColDef } from '../gridRender/GridRenderGenericCell';
|
|
5
5
|
export declare const GridPopoverTextInput: <TData extends GridBaseRow, TValue = any>(colDef: GenericCellColDef<TData, TValue>, params: GenericCellEditorProps<GridFormTextInputProps<TData>>) => ColDefT<TData, TValue>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
11
|
-
export * from
|
|
1
|
+
export * from './GridButton';
|
|
2
|
+
export * from './GridEditBoolean';
|
|
3
|
+
export * from './GridPopoutEditMultiSelect';
|
|
4
|
+
export * from './GridPopoutEditMultiSelectGrid';
|
|
5
|
+
export * from './GridPopoverEditBearing';
|
|
6
|
+
export * from './GridPopoverEditBearing';
|
|
7
|
+
export * from './GridPopoverEditDropDown';
|
|
8
|
+
export * from './GridPopoverMenu';
|
|
9
|
+
export * from './GridPopoverMessage';
|
|
10
|
+
export * from './GridPopoverTextArea';
|
|
11
|
+
export * from './GridPopoverTextInput';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ICellRendererParams } from
|
|
2
|
-
import { SuppressKeyboardEventParams } from
|
|
3
|
-
import { ReactElement } from
|
|
4
|
-
import { GridBaseRow } from
|
|
5
|
-
import { ColDefT } from
|
|
1
|
+
import { ICellRendererParams } from 'ag-grid-community';
|
|
2
|
+
import { SuppressKeyboardEventParams } from 'ag-grid-community';
|
|
3
|
+
import { ReactElement } from 'react';
|
|
4
|
+
import { GridBaseRow } from '../Grid';
|
|
5
|
+
import { ColDefT } from '../GridCell';
|
|
6
6
|
export interface GenericCellColDef<TData extends GridBaseRow, TValue = any> extends ColDefT<TData, TValue> {
|
|
7
7
|
exportable?: boolean;
|
|
8
8
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ICellRendererParams } from
|
|
1
|
+
import { ICellRendererParams } from 'ag-grid-community';
|
|
2
2
|
export declare const GridRenderPopoutMenuCell: (props: ICellRendererParams) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
1
|
+
export * from './GridRenderGenericCell';
|
|
2
|
+
export * from './GridRenderPopoutMenuCell';
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
11
|
-
export * from
|
|
12
|
-
export * from
|
|
13
|
-
export * from
|
|
14
|
-
export * from
|
|
15
|
-
export * from
|
|
16
|
-
export * from
|
|
17
|
-
export * from
|
|
18
|
-
export * from
|
|
19
|
-
export * from
|
|
1
|
+
export * from './clickInputWhenContainingCellClicked';
|
|
2
|
+
export * from './ComponentLoadingWrapper';
|
|
3
|
+
export * from './Grid';
|
|
4
|
+
export * from './GridCell';
|
|
5
|
+
export * from './GridCellFiller';
|
|
6
|
+
export * from './GridCellMultiEditor';
|
|
7
|
+
export * from './GridCellMultiSelectClassRules';
|
|
8
|
+
export * from './gridFilter';
|
|
9
|
+
export * from './gridForm';
|
|
10
|
+
export * from './gridHeader';
|
|
11
|
+
export * from './gridHook';
|
|
12
|
+
export * from './GridIcon';
|
|
13
|
+
export * from './GridLoadableCell';
|
|
14
|
+
export * from './GridNoRowsOverlay';
|
|
15
|
+
export * from './gridPopoverEdit';
|
|
16
|
+
export * from './GridPopoverHook';
|
|
17
|
+
export * from './gridRender';
|
|
18
|
+
export * from './GridWrapper';
|
|
19
|
+
export * from './PostSortRowsHook';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ColDef, GridApi, IRowNode } from
|
|
2
|
-
import { CsvExportParams } from
|
|
3
|
-
import { ColDefT, GridBaseRow } from
|
|
1
|
+
import { ColDef, GridApi, IRowNode } from 'ag-grid-community';
|
|
2
|
+
import { CsvExportParams } from 'ag-grid-community';
|
|
3
|
+
import { ColDefT, GridBaseRow } from '../components';
|
|
4
4
|
export type GridFilterExternal<TData extends GridBaseRow> = (data: TData, rowNode: IRowNode) => boolean;
|
|
5
5
|
export interface AutoSizeColumnsProps {
|
|
6
6
|
skipHeader?: boolean;
|
|
@@ -13,7 +13,7 @@ export type AutoSizeColumnsResult = {
|
|
|
13
13
|
} | null;
|
|
14
14
|
export interface GridContextType<TData extends GridBaseRow> {
|
|
15
15
|
gridReady: boolean;
|
|
16
|
-
gridRenderState: () => null |
|
|
16
|
+
gridRenderState: () => null | 'empty' | 'rows-visible';
|
|
17
17
|
getColDef: (colId?: string) => ColDef | undefined;
|
|
18
18
|
getColumns: (filter?: keyof ColDef | ((r: ColDef) => boolean | undefined | null | number | string)) => ColDefT<TData, any>[];
|
|
19
19
|
getColumnIds: (filter?: keyof ColDef | ((r: ColDef) => boolean | undefined | null | number | string)) => string[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ProcessCellForExportParams } from
|
|
2
|
-
import { PropsWithChildren, ReactElement } from
|
|
3
|
-
import { GridBaseRow } from
|
|
1
|
+
import { ProcessCellForExportParams } from 'ag-grid-community';
|
|
2
|
+
import { PropsWithChildren, ReactElement } from 'react';
|
|
3
|
+
import { GridBaseRow } from '../components';
|
|
4
4
|
/**
|
|
5
5
|
* Context for AgGrid operations.
|
|
6
6
|
* Make sure you wrap AgGrid in this.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RefObject } from
|
|
2
|
-
import { GridBaseRow } from
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
import { GridBaseRow } from '../components/Grid';
|
|
3
3
|
export interface GridPopoverContextType<TData extends GridBaseRow> {
|
|
4
4
|
anchorRef: RefObject<Element>;
|
|
5
5
|
saving: boolean;
|
|
@@ -9,7 +9,7 @@ export interface GridPopoverContextType<TData extends GridBaseRow> {
|
|
|
9
9
|
value: any;
|
|
10
10
|
data: TData;
|
|
11
11
|
selectedRows: TData[];
|
|
12
|
-
updateValue: (saveFn: (selectedRows: any[]) => Promise<boolean>, tabDirection: 1 | 0 | -1) => Promise<boolean
|
|
12
|
+
updateValue: (saveFn: (selectedRows: any[]) => Promise<boolean>, tabDirection: 1 | 0 | -1) => Promise<boolean> | boolean;
|
|
13
13
|
formatValue: (value: any) => any;
|
|
14
14
|
}
|
|
15
15
|
export declare const GridPopoverContext: import("react").Context<GridPopoverContextType<any>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ICellEditorParams } from
|
|
2
|
-
import { PropsWithChildren } from
|
|
1
|
+
import { ICellEditorParams } from 'ag-grid-community';
|
|
2
|
+
import { PropsWithChildren } from 'react';
|
|
3
3
|
interface GridPopoverContextProps {
|
|
4
|
-
props: ICellEditorParams
|
|
4
|
+
props: ICellEditorParams<any, any, any>;
|
|
5
5
|
}
|
|
6
|
-
export declare const GridPopoverContextProvider: (
|
|
6
|
+
export declare const GridPopoverContextProvider: (props2: PropsWithChildren<GridPopoverContextProps>) => import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { PropsWithChildren } from
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
2
|
export type GridUpdatingContextStatus = Record<string, (number | string)[] | undefined>;
|
|
3
3
|
export declare const GridUpdatingContextProvider: (props: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
11
|
-
export * from
|
|
12
|
-
export * from
|
|
13
|
-
export * from
|
|
14
|
-
export * from
|
|
15
|
-
export * from
|
|
16
|
-
export * from
|
|
17
|
-
export * from
|
|
1
|
+
export * from './components';
|
|
2
|
+
export * from './contexts/GridContext';
|
|
3
|
+
export * from './contexts/GridContextProvider';
|
|
4
|
+
export * from './contexts/GridPopoverContext';
|
|
5
|
+
export * from './contexts/GridPopoverContextProvider';
|
|
6
|
+
export * from './contexts/GridSubComponentContext';
|
|
7
|
+
export * from './contexts/GridUpdatingContext';
|
|
8
|
+
export * from './contexts/GridUpdatingContextProvider';
|
|
9
|
+
export * from './lui/ActionButton';
|
|
10
|
+
export * from './lui/FormError';
|
|
11
|
+
export * from './lui/TextAreaInput';
|
|
12
|
+
export * from './lui/TextInputFormatted';
|
|
13
|
+
export * from './react-menu3/index';
|
|
14
|
+
export * from './react-menu3/types';
|
|
15
|
+
export * from './utils/bearing';
|
|
16
|
+
export * from './utils/deferredPromise';
|
|
17
|
+
export * from './utils/util';
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import './ActionButton.scss';
|
|
2
|
+
import { LuiButtonProps } from '@linzjs/lui/dist/components/LuiButton/LuiButton';
|
|
3
|
+
import { IconName } from '@linzjs/lui/dist/components/LuiIcon/LuiIcon';
|
|
4
|
+
import { CSSProperties, ReactElement } from 'react';
|
|
5
5
|
export interface ActionButtonProps {
|
|
6
6
|
icon: IconName;
|
|
7
7
|
name?: string;
|
|
8
|
-
|
|
8
|
+
'aria-label'?: string;
|
|
9
9
|
inProgressName?: string;
|
|
10
10
|
title?: string;
|
|
11
11
|
dataTestId?: string;
|
|
12
|
-
size?:
|
|
13
|
-
iconPosition?:
|
|
14
|
-
className?:
|
|
12
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'ns';
|
|
13
|
+
iconPosition?: 'left' | 'right';
|
|
14
|
+
className?: 'ActionButton-fill' | 'ActionButton-tight' | string;
|
|
15
15
|
onClick: () => Promise<void> | void;
|
|
16
|
-
level?: LuiButtonProps[
|
|
16
|
+
level?: LuiButtonProps['level'];
|
|
17
17
|
style?: CSSProperties;
|
|
18
18
|
disabled?: boolean;
|
|
19
19
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { DetailedHTMLProps, InputHTMLAttributes, ReactElement } from
|
|
1
|
+
import './TextInputFormatted.scss';
|
|
2
|
+
import { DetailedHTMLProps, InputHTMLAttributes, ReactElement } from 'react';
|
|
3
3
|
export interface LuiTextInputProps extends DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement> {
|
|
4
4
|
value: string;
|
|
5
5
|
helpText?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Defers state change up to a minimum time since last state change.
|
|
3
3
|
*/
|
|
4
|
-
export declare const useStateDeferred: <T
|
|
4
|
+
export declare const useStateDeferred: <T>(initialValue: T) => [T, (v: T) => void, (v: T, w: number) => void];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ForwardedRef, MutableRefObject } from
|
|
2
|
-
import { ControlledMenuProps } from
|
|
1
|
+
import { ForwardedRef, MutableRefObject } from 'react';
|
|
2
|
+
import { ControlledMenuProps } from '../types';
|
|
3
3
|
export declare const ControlledMenuFr: ({ "aria-label": ariaLabel, className, containerProps, initialMounted, unmountOnClose, transition, transitionTimeout, boundingBoxRef, boundingBoxPadding, reposition, submenuOpenDelay, submenuCloseDelay, skipOpen, viewScroll, portal, theming, onItemClick, onClose, saveButtonRef, ...restProps }: ControlledMenuProps & {
|
|
4
4
|
saveButtonRef?: MutableRefObject<HTMLButtonElement | null>;
|
|
5
5
|
}, externalRef: ForwardedRef<HTMLUListElement>) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { LegacyRef, ReactElement } from
|
|
2
|
-
import { BaseProps } from
|
|
3
|
-
import { withHoveringResultProps } from
|
|
1
|
+
import { LegacyRef, ReactElement } from 'react';
|
|
2
|
+
import { BaseProps } from '../types';
|
|
3
|
+
import { withHoveringResultProps } from '../utils/withHovering';
|
|
4
4
|
export interface FocusableItemProps extends BaseProps, withHoveringResultProps {
|
|
5
5
|
disabled?: boolean;
|
|
6
6
|
children: (ref: LegacyRef<any>) => ReactElement;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ForwardedRef, ReactElement } from
|
|
2
|
-
import { MenuButtonModifiers, RenderProp, RootMenuProps, UncontrolledMenuProps } from
|
|
1
|
+
import { ForwardedRef, ReactElement } from 'react';
|
|
2
|
+
import { MenuButtonModifiers, RenderProp, RootMenuProps, UncontrolledMenuProps } from '../types';
|
|
3
3
|
export interface MenuProps extends RootMenuProps, UncontrolledMenuProps {
|
|
4
4
|
/**
|
|
5
5
|
* Can be a `MenuButton`, a `button` element, or a React component.
|
|
@@ -12,5 +12,5 @@ export interface MenuProps extends RootMenuProps, UncontrolledMenuProps {
|
|
|
12
12
|
*/
|
|
13
13
|
menuButton: RenderProp<MenuButtonModifiers, ReactElement>;
|
|
14
14
|
}
|
|
15
|
-
export declare function MenuFr({
|
|
15
|
+
export declare function MenuFr({ 'aria-label': ariaLabel, menuButton, instanceRef, onMenuChange, ...restProps }: MenuProps, externalRef: ForwardedRef<ReactElement>): import("react/jsx-runtime").JSX.Element;
|
|
16
16
|
export declare const Menu: import("react").ForwardRefExoticComponent<Omit<MenuProps, "ref"> & import("react").RefAttributes<ReactElement<any, string | import("react").JSXElementConstructor<any>>>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactNode } from
|
|
2
|
-
import { BaseProps, MenuButtonModifiers } from
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { BaseProps, MenuButtonModifiers } from '../types';
|
|
3
3
|
export interface MenuButtonProps extends BaseProps<MenuButtonModifiers> {
|
|
4
4
|
disabled?: boolean;
|
|
5
5
|
children?: ReactNode;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { BaseProps } from
|
|
1
|
+
import { BaseProps } from '../types';
|
|
2
2
|
export declare const MenuDivider: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<Omit<BaseProps<undefined>, "ref"> & import("react").RefAttributes<HTMLLIElement>>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ForwardedRef } from
|
|
2
|
-
import { BasePropsWithChildren } from
|
|
1
|
+
import { ForwardedRef } from 'react';
|
|
2
|
+
import { BasePropsWithChildren } from '../types';
|
|
3
3
|
export declare const MenuHeaderFr: ({ className, ...restProps }: BasePropsWithChildren, externalRef: ForwardedRef<HTMLLIElement>) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export declare const MenuHeader: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<Omit<BasePropsWithChildren<undefined>, "ref"> & import("react").RefAttributes<HTMLLIElement>>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BaseProps, ClickEvent, EventHandler, Hoverable, MenuItemTypeProp, RenderProp } from
|
|
2
|
-
import { withHoveringResultProps } from
|
|
1
|
+
import { BaseProps, ClickEvent, EventHandler, Hoverable, MenuItemTypeProp, RenderProp } from '../types';
|
|
2
|
+
import { withHoveringResultProps } from '../utils/withHovering';
|
|
3
3
|
export type MenuItemModifiers = Readonly<{
|
|
4
4
|
/**
|
|
5
5
|
* 'radio' for radio item, 'checkbox' for checkbox item, or `undefined` for other items.
|
|
@@ -22,7 +22,7 @@ export type MenuItemModifiers = Readonly<{
|
|
|
22
22
|
*/
|
|
23
23
|
anchor: boolean;
|
|
24
24
|
}>;
|
|
25
|
-
export interface MenuItemProps extends Omit<BaseProps<MenuItemModifiers>,
|
|
25
|
+
export interface MenuItemProps extends Omit<BaseProps<MenuItemModifiers>, 'onClick'>, Hoverable {
|
|
26
26
|
/**
|
|
27
27
|
* Any value provided to this prop will be available in the event object of click events.
|
|
28
28
|
*
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ControlledMenuProps } from
|
|
1
|
+
import { ControlledMenuProps } from '../types';
|
|
2
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, dontShrinkIfDirectionIsTop, offsetX, offsetY, children, onClose, ...restProps }: ControlledMenuProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ForwardedRef, ReactNode } from
|
|
2
|
-
import { BaseProps, EventHandler, RadioChangeEvent } from
|
|
1
|
+
import { ForwardedRef, ReactNode } from 'react';
|
|
2
|
+
import { BaseProps, EventHandler, RadioChangeEvent } from '../types';
|
|
3
3
|
export interface MenuRadioGroupProps extends BaseProps {
|
|
4
4
|
/**
|
|
5
5
|
* Optionally set the radio group name.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { CSSProperties, ReactNode } from
|
|
2
|
-
import { BaseProps, ClassNameProp, Hoverable, MenuAlign, MenuArrowModifiers, MenuDirection, MenuModifiers, MenuOverflow, MenuPosition, RenderProp, UncontrolledMenuProps } from
|
|
3
|
-
import { withHoveringResultProps } from
|
|
1
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
import { BaseProps, ClassNameProp, Hoverable, MenuAlign, MenuArrowModifiers, MenuDirection, MenuModifiers, MenuOverflow, MenuPosition, RenderProp, UncontrolledMenuProps } from '../types';
|
|
3
|
+
import { withHoveringResultProps } from '../utils/withHovering';
|
|
4
4
|
export type SubMenuItemModifiers = Readonly<{
|
|
5
5
|
/**
|
|
6
6
|
* Indicates if the submenu is open.
|
|
@@ -18,7 +18,7 @@ export type SubMenuItemModifiers = Readonly<{
|
|
|
18
18
|
/**
|
|
19
19
|
* Common props for `Menu`, `SubMenu` and `ControlledMenu`
|
|
20
20
|
*/
|
|
21
|
-
interface BaseMenuProps extends Omit<BaseProps,
|
|
21
|
+
interface BaseMenuProps extends Omit<BaseProps, 'style'> {
|
|
22
22
|
/**
|
|
23
23
|
* Can be a string or a function which receives a modifier object and returns a CSS `class` string.
|
|
24
24
|
*/
|
|
@@ -103,7 +103,7 @@ export interface SubMenuProps extends BaseMenuProps, Hoverable, UncontrolledMenu
|
|
|
103
103
|
* - 'none' submenu doesn't open with mouse or keyboard events;
|
|
104
104
|
* you can call the `openMenu` function on `instanceRef` to open submenu programmatically.
|
|
105
105
|
*/
|
|
106
|
-
openTrigger?:
|
|
106
|
+
openTrigger?: 'none' | 'clickOnly';
|
|
107
107
|
}
|
|
108
108
|
export declare const SubMenuFr: ({ "aria-label": ariaLabel, className, disabled, direction, label, openTrigger, onMenuChange, isHovering, instanceRef, menuItemRef, itemProps, ...restProps }: SubMenuProps) => import("react/jsx-runtime").JSX.Element;
|
|
109
109
|
export declare const SubMenu: import("react").ForwardRefExoticComponent<Omit<SubMenuProps, "ref"> & import("react").RefAttributes<any>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { MutableRefObject } from
|
|
2
|
-
import { MenuDirection, MenuOverflow } from
|
|
1
|
+
import { MutableRefObject } from 'react';
|
|
2
|
+
import { MenuDirection, MenuOverflow } from '../types';
|
|
3
3
|
export declare const MenuListContext: import("react").Context<{
|
|
4
4
|
overflow?: MenuOverflow;
|
|
5
5
|
overflowAmt?: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { MutableRefObject, RefObject } from
|
|
2
|
-
import { ControlledMenuProps, MenuReposition, MenuViewScroll, RectElement, TransitionFieldType } from
|
|
1
|
+
import { MutableRefObject, RefObject } from 'react';
|
|
2
|
+
import { ControlledMenuProps, MenuReposition, MenuViewScroll, RectElement, TransitionFieldType } from '../types';
|
|
3
3
|
interface SettingsContextType extends ControlledMenuProps {
|
|
4
4
|
rootMenuRef?: MutableRefObject<any>;
|
|
5
5
|
rootAnchorRef?: MutableRefObject<any>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { useBEM } from
|
|
2
|
-
export { useCombinedRef } from
|
|
3
|
-
export { useLayoutEffect } from
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
6
|
-
export { useItemState } from
|
|
7
|
-
export { useMenuChange } from
|
|
8
|
-
export { useMenuState } from
|
|
9
|
-
export { useMenuStateAndFocus } from
|
|
1
|
+
export { useBEM } from './useBEM';
|
|
2
|
+
export { useCombinedRef } from './useCombinedRef';
|
|
3
|
+
export { useLayoutEffect } from './useIsomorphicLayoutEffect';
|
|
4
|
+
export { useItemEffect } from './useItemEffect';
|
|
5
|
+
export { useItems } from './useItems';
|
|
6
|
+
export { useItemState } from './useItemState';
|
|
7
|
+
export { useMenuChange } from './useMenuChange';
|
|
8
|
+
export { useMenuState } from './useMenuState';
|
|
9
|
+
export { useMenuStateAndFocus } from './useMenuStateAndFocus';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ForwardedRef, LegacyRef } from
|
|
1
|
+
import { ForwardedRef, LegacyRef } from 'react';
|
|
2
2
|
export declare const useCombinedRef: <Instance>(refA: ForwardedRef<Instance> | undefined, refB: ForwardedRef<Instance> | undefined) => LegacyRef<Instance>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { MutableRefObject } from
|
|
1
|
+
import { MutableRefObject } from 'react';
|
|
2
2
|
export declare const useItemEffect: (isDisabled: boolean | undefined, menuItemRef: MutableRefObject<any> | undefined, updateItems: (item: any, isMounted?: boolean) => void) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FocusEvent, MutableRefObject } from
|
|
1
|
+
import { FocusEvent, MutableRefObject } from 'react';
|
|
2
2
|
export declare const useItemState: (menuItemRef: MutableRefObject<any> | undefined, focusRef: MutableRefObject<any> | undefined, isHovering?: boolean, isDisabled?: boolean) => {
|
|
3
3
|
setHover: () => void;
|
|
4
4
|
onBlur: (e: FocusEvent) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { MutableRefObject } from
|
|
2
|
-
import { FocusPosition } from
|
|
1
|
+
import { MutableRefObject } from 'react';
|
|
2
|
+
import { FocusPosition } from '../types';
|
|
3
3
|
export declare const useItems: (menuRef: MutableRefObject<any>, focusRef: MutableRefObject<any> | undefined) => {
|
|
4
4
|
hoverItem: HTMLDivElement | HTMLLIElement | ((prevItem: HTMLDivElement | HTMLLIElement) => HTMLDivElement | HTMLLIElement | undefined) | undefined;
|
|
5
5
|
dispatch: (actionType: number, item: any, nextIndex: FocusPosition) => void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { EventHandler, MenuChangeEvent } from
|
|
1
|
+
import { EventHandler, MenuChangeEvent } from '../types';
|
|
2
2
|
export declare const useMenuChange: (onMenuChange?: EventHandler<MenuChangeEvent>, isOpen?: boolean) => void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { FocusPosition, MenuStateOptions } from
|
|
1
|
+
import { FocusPosition, MenuStateOptions } from '../types';
|
|
2
2
|
export declare const useMenuStateAndFocus: (options: MenuStateOptions) => [any, (open?: boolean) => void, (position?: FocusPosition, alwaysUpdate?: boolean) => void];
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
export { Menu } from
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
8
|
-
export {
|
|
9
|
-
export {
|
|
10
|
-
export {
|
|
11
|
-
export {
|
|
1
|
+
export { ControlledMenu } from './components/ControlledMenu';
|
|
2
|
+
export { FocusableItem } from './components/FocusableItem';
|
|
3
|
+
export { Menu } from './components/Menu';
|
|
4
|
+
export { MenuButton } from './components/MenuButton';
|
|
5
|
+
export { MenuDivider } from './components/MenuDivider';
|
|
6
|
+
export { MenuGroup } from './components/MenuGroup';
|
|
7
|
+
export { MenuHeader } from './components/MenuHeader';
|
|
8
|
+
export { MenuItem } from './components/MenuItem';
|
|
9
|
+
export { MenuRadioGroup } from './components/MenuRadioGroup';
|
|
10
|
+
export { SubMenu } from './components/SubMenu';
|
|
11
|
+
export { useMenuState } from './hooks';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MutableRefObject } from
|
|
1
|
+
import { MutableRefObject } from 'react';
|
|
2
2
|
export declare const getPositionHelpers: (containerRef: MutableRefObject<HTMLElement | undefined>, menuRef: MutableRefObject<HTMLElement>, menuScroll: Window | Element, boundingBoxPadding: string | undefined) => {
|
|
3
3
|
menuRect: DOMRect;
|
|
4
4
|
containerRect: DOMRect;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { getPositionHelpers } from
|
|
2
|
-
export { positionContextMenu } from
|
|
3
|
-
export { positionMenu } from
|
|
1
|
+
export { getPositionHelpers } from './getPositionHelpers';
|
|
2
|
+
export { positionContextMenu } from './positionContextMenu';
|
|
3
|
+
export { positionMenu } from './positionMenu';
|