@elliemae/ds-menu-items 3.13.1-rc.1 → 3.13.1

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.
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import type { DSMenuItemT } from '../../react-desc-prop-types';
3
+ declare const ActionMenuItem: React.ComponentType<DSMenuItemT.ActionProps>;
4
+ declare const ActionMenuItemWithSchema: import("@elliemae/ds-utilities/dist/types/props-helpers/propTypes/types").DocumentedReactComponent<DSMenuItemT.ActionProps>;
5
+ export { ActionMenuItem, ActionMenuItemWithSchema };
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import type { DSMenuItemT } from '../../react-desc-prop-types';
3
+ declare const MultiMenuItem: React.ComponentType<DSMenuItemT.MultiProps>;
4
+ declare const MultiMenuItemWithSchema: import("@elliemae/ds-utilities/dist/types/props-helpers/propTypes/types").DocumentedReactComponent<DSMenuItemT.MultiProps>;
5
+ export { MultiMenuItem, MultiMenuItemWithSchema };
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import type { DSMenuItemT } from '../../react-desc-prop-types';
3
+ declare const Section: React.ComponentType<DSMenuItemT.SectionProps>;
4
+ declare const SectionWithSchema: import("@elliemae/ds-utilities/dist/types/props-helpers/propTypes/types").DocumentedReactComponent<DSMenuItemT.SectionProps>;
5
+ export { Section, SectionWithSchema };
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import type { DSMenuItemT } from '../../react-desc-prop-types';
3
+ declare const Separator: React.ComponentType<DSMenuItemT.SeparatorProps>;
4
+ declare const SeparatorWithSchema: import("@elliemae/ds-utilities/dist/types/props-helpers/propTypes/types").DocumentedReactComponent<DSMenuItemT.SeparatorProps>;
5
+ export { Separator, SeparatorWithSchema };
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import type { DSMenuItemT } from '../../react-desc-prop-types';
3
+ declare const SingleMenuItem: React.ComponentType<DSMenuItemT.SingleProps>;
4
+ export { SingleMenuItem };
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import type { DSMenuItemT } from '../../react-desc-prop-types';
3
+ declare const SingleWithSubmenuItem: React.ComponentType<DSMenuItemT.SingleWithSubmenuProps>;
4
+ declare const SingleWithSubmenuItemWithSchema: import("@elliemae/ds-utilities/dist/types/props-helpers/propTypes/types").DocumentedReactComponent<DSMenuItemT.SingleWithSubmenuProps>;
5
+ export { SingleWithSubmenuItem, SingleWithSubmenuItemWithSchema };
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import type { DSMenuItemT } from '../../react-desc-prop-types';
3
+ export declare const useGetSubmenuHandlers: ({ disabled, rightAddon, isSubmenuOpened, onMouseEnter, onSubmenuOpen, onSubmenuClose, onMouseLeave, }: Required<DSMenuItemT.SingleWithSubmenuProps>) => {
4
+ onMouseEnterHandler: (e: React.MouseEvent) => void;
5
+ onMouseLeaveHandler: (e: React.MouseEvent) => void;
6
+ onEllipsisClick: import("react").MouseEventHandler<Element>;
7
+ };
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import type { DSMenuItemT } from '../../react-desc-prop-types';
3
+ declare const SubmenuItem: React.ComponentType<DSMenuItemT.SubmenuProps>;
4
+ declare const SubmenuItemWithSchema: import("@elliemae/ds-utilities/dist/types/props-helpers/propTypes/types").DocumentedReactComponent<DSMenuItemT.SubmenuProps>;
5
+ export { SubmenuItem, SubmenuItemWithSchema };
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import type { DSMenuItemT } from '../../react-desc-prop-types';
3
+ export declare const useGetSubmenuHandlers: ({ disabled, rightAddon, isSubmenuOpened, onMouseEnter, onSubmenuOpen, onSubmenuClose, onMouseLeave, }: Required<DSMenuItemT.SubmenuProps>) => {
4
+ onMouseEnterHandler: (e: React.MouseEvent) => void;
5
+ onMouseLeaveHandler: (e: React.MouseEvent) => void;
6
+ onEllipsisClick: import("react").MouseEventHandler<Element>;
7
+ };
@@ -0,0 +1,7 @@
1
+ export * from './ActionMenuItem';
2
+ export * from './MultiMenuItem';
3
+ export * from './Section';
4
+ export * from './Separator';
5
+ export * from './SingleMenuItem';
6
+ export * from './SingleWithSubmenuItem';
7
+ export * from './SubmenuItem';
@@ -0,0 +1,22 @@
1
+ /// <reference types="react" />
2
+ import type { LayoutProps, SizingProps, PositionProps, SpaceProps } from '@elliemae/ds-system';
3
+ interface StyledGlobalMenuItemWrapperT extends LayoutProps, SizingProps, PositionProps, SpaceProps {
4
+ isSelected?: boolean;
5
+ isActive?: boolean;
6
+ disabled?: boolean;
7
+ }
8
+ export declare const StyledGlobalMenuItemWrapper: import("styled-components").StyledComponent<"li", import("@elliemae/ds-system").Theme, StyledGlobalMenuItemWrapperT, never>;
9
+ export declare const StyleMenuItemLabel: import("styled-components").StyledComponent<"span", import("@elliemae/ds-system").Theme, object, never>;
10
+ export declare const StyleMenuItemSecondaryLabel: import("styled-components").StyledComponent<"span", import("@elliemae/ds-system").Theme, object, never>;
11
+ export declare const StyledIconContainer: import("styled-components").StyledComponent<"div", import("@elliemae/ds-system").Theme, object, never>;
12
+ export declare const StyledEllipsisButton: import("styled-components").StyledComponent<"div", import("@elliemae/ds-system").Theme, {
13
+ disabled: boolean;
14
+ }, never>;
15
+ export declare const StyledItemContent: import("styled-components").StyledComponent<"div", import("@elliemae/ds-system").Theme, object, never>;
16
+ export declare const StyledSeparator: import("styled-components").StyledComponent<"hr", import("@elliemae/ds-system").Theme, object, never>;
17
+ export declare const StyledSeparatorWrapper: import("styled-components").StyledComponent<"li", import("@elliemae/ds-system").Theme, import("@xstyled/util").Props<import("@xstyled/system").Theme> & import("@xstyled/system").TypographyProps<import("@xstyled/system").Theme> & SpaceProps & import("@xstyled/system").BoxShadowProps<import("@xstyled/system").Theme> & import("@xstyled/system").FlexboxesProps<import("@xstyled/system").Theme> & LayoutProps<import("@xstyled/system").Theme> & import("@elliemae/ds-system").ColorProps, never>;
18
+ export declare const StyledGroupLabel: import("styled-components").StyledComponent<"span", import("@elliemae/ds-system").Theme, object, never>;
19
+ export declare const StyledSectionWrapper: import("styled-components").StyledComponent<"li", import("@elliemae/ds-system").Theme, import("@xstyled/util").Props<import("@xstyled/system").Theme> & import("@xstyled/system").TypographyProps<import("@xstyled/system").Theme> & SpaceProps & import("@xstyled/system").BoxShadowProps<import("@xstyled/system").Theme> & import("@xstyled/system").FlexboxesProps<import("@xstyled/system").Theme> & LayoutProps<import("@xstyled/system").Theme> & import("@elliemae/ds-system").ColorProps, never>;
20
+ export declare const StyledVerticalSeparator: import("styled-components").StyledComponent<"div", import("@elliemae/ds-system").Theme, object, never>;
21
+ export declare const StyledContentWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/dist/types/react-desc-prop-types").DSGridT.Props & import("react").RefAttributes<HTMLDivElement>>, import("@elliemae/ds-system").Theme, object, never>;
22
+ export {};
@@ -0,0 +1,15 @@
1
+ export declare const DSMenuItemName = "DSMenuItem";
2
+ export declare const DSMenuItemSlots: {
3
+ MENU_ITEM_WRAPPER: string;
4
+ MENU_ITEM_LABEL: string;
5
+ MENU_ITEM_SECONDARY_LABEL: string;
6
+ MENU_ITEM_ICON: string;
7
+ MENU_ITEM_ELLIPSIS_BUTTON: string;
8
+ MENU_ITEM_CONTENT: string;
9
+ MENU_ITEM_SEPARATOR: string;
10
+ MENU_ITEM_SEPARATOR_WRAPPER: string;
11
+ MENU_ITEM_GROUP_LABEL: string;
12
+ MENU_ITEM_SECTION_WRAPPER: string;
13
+ MENU_ITEM_VERTICAL_SEPARATOR: string;
14
+ MENU_ITEM_CONTENT_WRAPPER: string;
15
+ };
@@ -0,0 +1 @@
1
+ export * from './constants';
@@ -0,0 +1,2 @@
1
+ export * from './components';
2
+ export * from './exported-related';
@@ -0,0 +1,86 @@
1
+ import type { PropsWithChildren, WeakValidationMap } from 'react';
2
+ import type React from 'react';
3
+ import type { SizingProps } from '@elliemae/ds-system';
4
+ export declare namespace DSMenuItemT {
5
+ interface CommonProps<T = Record<string, unknown>> {
6
+ dsId: string;
7
+ innerRef?: React.RefObject<HTMLLIElement> | ((_ref: HTMLLIElement) => void);
8
+ wrapperStyles?: Record<string, unknown>;
9
+ render?: React.ComponentType<T>;
10
+ }
11
+ interface ActionProps extends CommonProps<ActionProps> {
12
+ label?: string;
13
+ secondaryLabel?: string;
14
+ value?: unknown;
15
+ disabled?: boolean;
16
+ isActive?: boolean;
17
+ onClick?: React.MouseEventHandler;
18
+ optionsShouldHavePadding?: boolean;
19
+ }
20
+ interface MultiProps extends CommonProps<MultiProps> {
21
+ label?: string;
22
+ isActive?: boolean;
23
+ disabled?: boolean;
24
+ isSelected?: boolean;
25
+ onClick?: React.MouseEventHandler;
26
+ onMouseDown?: React.MouseEventHandler;
27
+ onMouseEnter?: React.MouseEventHandler;
28
+ onMouseLeave?: React.MouseEventHandler;
29
+ tabIndex?: WCAGTabIndex;
30
+ }
31
+ interface SingleProps extends CommonProps<SingleProps> {
32
+ label?: string;
33
+ secondaryLabel?: string;
34
+ isActive?: boolean;
35
+ disabled?: boolean;
36
+ isSelected?: boolean;
37
+ onClick?: React.MouseEventHandler;
38
+ onMouseDown?: React.MouseEventHandler;
39
+ onMouseEnter?: React.MouseEventHandler;
40
+ onMouseLeave?: React.MouseEventHandler;
41
+ dataTestid?: string;
42
+ tabIndex?: number;
43
+ }
44
+ interface SubmenuProps extends CommonProps<SubmenuProps> {
45
+ label?: string;
46
+ secondaryLabel?: string;
47
+ isActive?: boolean;
48
+ disabled?: boolean;
49
+ isSubmenuOpened?: boolean;
50
+ onSubmenuOpen?: React.MouseEventHandler;
51
+ onSubmenuClose?: React.MouseEventHandler;
52
+ rightAddon?: 'ellipsis' | 'chevron';
53
+ optionsShouldHavePadding?: boolean;
54
+ onMouseEnter?: React.MouseEventHandler;
55
+ onMouseLeave?: React.MouseEventHandler;
56
+ Dropdown: React.ComponentType<PropsWithChildren<SubmenuProps['dropdownProps']>>;
57
+ dropdownProps?: {
58
+ options: any[];
59
+ onSubmenuToggle?: (nextOpenedSubmenus: Record<string, boolean>, submenu: any, e: React.MouseEvent | React.KeyboardEvent) => void;
60
+ openedSubmenus?: Record<string, boolean>;
61
+ selectedOptions?: Record<string, boolean>;
62
+ onKeyDown?: React.KeyboardEventHandler;
63
+ onOptionClick?: (nextSelectedOptions: Record<string, boolean>, clickedOption: any, e: React.MouseEvent | React.KeyboardEvent) => void;
64
+ onClickOutside?: (e: React.MouseEvent | React.KeyboardEvent | React.TouchEvent) => void;
65
+ minWidth?: SizingProps['minWidth'];
66
+ maxHeight?: SizingProps['maxHeight'];
67
+ [key: string]: unknown;
68
+ };
69
+ }
70
+ interface SectionProps extends CommonProps<SectionProps> {
71
+ label?: string;
72
+ }
73
+ type SeparatorProps = CommonProps<SeparatorProps>;
74
+ interface SingleWithSubmenuProps extends Omit<SingleProps, 'render'>, Omit<SubmenuProps, 'render'> {
75
+ render?: React.ComponentType<SingleWithSubmenuProps>;
76
+ }
77
+ }
78
+ export declare const defaultCommonProps: Partial<Omit<DSMenuItemT.CommonProps, 'render'>>;
79
+ export declare const defaultActionProps: Partial<DSMenuItemT.ActionProps>;
80
+ export declare const defaultMultiProps: Partial<DSMenuItemT.MultiProps>;
81
+ export declare const defaultSingleProps: Partial<DSMenuItemT.SingleProps>;
82
+ export declare const defaultSubmenuProps: Partial<DSMenuItemT.SubmenuProps>;
83
+ export declare const defaultSectionProps: Partial<DSMenuItemT.SectionProps>;
84
+ export declare const defaultSeparatorProps: Partial<DSMenuItemT.SeparatorProps>;
85
+ export declare const defaultSingleWithSubmenuProps: Partial<Omit<DSMenuItemT.SingleWithSubmenuProps, 'render'>>;
86
+ export declare const itemProps: WeakValidationMap<unknown>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-menu-items",
3
- "version": "3.13.1-rc.1",
3
+ "version": "3.13.1",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Menu Items",
6
6
  "files": [
@@ -37,11 +37,11 @@
37
37
  "dependencies": {
38
38
  "@xstyled/system": "~3.7.0",
39
39
  "@xstyled/util": "3.7.0",
40
- "@elliemae/ds-form-checkbox": "3.13.1-rc.1",
41
- "@elliemae/ds-grid": "3.13.1-rc.1",
42
- "@elliemae/ds-icons": "3.13.1-rc.1",
43
- "@elliemae/ds-utilities": "3.13.1-rc.1",
44
- "@elliemae/ds-system": "3.13.1-rc.1"
40
+ "@elliemae/ds-form-checkbox": "3.13.1",
41
+ "@elliemae/ds-icons": "3.13.1",
42
+ "@elliemae/ds-system": "3.13.1",
43
+ "@elliemae/ds-utilities": "3.13.1",
44
+ "@elliemae/ds-grid": "3.13.1"
45
45
  },
46
46
  "peerDependencies": {
47
47
  "lodash": "^4.17.21",