@elliemae/ds-menu-items 3.27.0-next.1 → 3.27.0-next.12

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 (96) hide show
  1. package/dist/cjs/components/ActionMenuItem/index.js +6 -61
  2. package/dist/cjs/components/ActionMenuItem/index.js.map +2 -2
  3. package/dist/cjs/components/MultiMenuItem/index.js +6 -79
  4. package/dist/cjs/components/MultiMenuItem/index.js.map +2 -2
  5. package/dist/cjs/components/Section/index.js +6 -29
  6. package/dist/cjs/components/Section/index.js.map +2 -2
  7. package/dist/cjs/components/Separator/index.js +6 -32
  8. package/dist/cjs/components/Separator/index.js.map +2 -2
  9. package/dist/cjs/components/SingleMenuItem/index.js +6 -84
  10. package/dist/cjs/components/SingleMenuItem/index.js.map +3 -3
  11. package/dist/cjs/components/SingleWithSubmenuItem/index.js +5 -124
  12. package/dist/cjs/components/SingleWithSubmenuItem/index.js.map +2 -2
  13. package/dist/cjs/components/SkeletonMenuItem/index.js +5 -26
  14. package/dist/cjs/components/SkeletonMenuItem/index.js.map +2 -2
  15. package/dist/cjs/components/SubmenuItem/index.js +5 -128
  16. package/dist/cjs/components/SubmenuItem/index.js.map +2 -2
  17. package/dist/cjs/components/index.js +51 -9
  18. package/dist/cjs/components/index.js.map +2 -2
  19. package/dist/cjs/exported-related/index.js +9 -2
  20. package/dist/cjs/exported-related/index.js.map +2 -2
  21. package/dist/cjs/index.js +45 -3
  22. package/dist/cjs/index.js.map +2 -2
  23. package/dist/esm/components/ActionMenuItem/index.js +11 -65
  24. package/dist/esm/components/ActionMenuItem/index.js.map +3 -3
  25. package/dist/esm/components/MultiMenuItem/index.js +12 -79
  26. package/dist/esm/components/MultiMenuItem/index.js.map +3 -3
  27. package/dist/esm/components/Section/index.js +12 -29
  28. package/dist/esm/components/Section/index.js.map +3 -3
  29. package/dist/esm/components/Separator/index.js +11 -37
  30. package/dist/esm/components/Separator/index.js.map +3 -3
  31. package/dist/esm/components/SingleMenuItem/index.js +11 -88
  32. package/dist/esm/components/SingleMenuItem/index.js.map +3 -3
  33. package/dist/esm/components/SingleWithSubmenuItem/index.js +9 -131
  34. package/dist/esm/components/SingleWithSubmenuItem/index.js.map +3 -3
  35. package/dist/esm/components/SkeletonMenuItem/index.js +10 -26
  36. package/dist/esm/components/SkeletonMenuItem/index.js.map +3 -3
  37. package/dist/esm/components/SubmenuItem/index.js +9 -135
  38. package/dist/esm/components/SubmenuItem/index.js.map +3 -3
  39. package/dist/esm/components/index.js +92 -8
  40. package/dist/esm/components/index.js.map +2 -2
  41. package/dist/esm/exported-related/index.js +5 -1
  42. package/dist/esm/exported-related/index.js.map +2 -2
  43. package/dist/esm/index.js +77 -2
  44. package/dist/esm/index.js.map +2 -2
  45. package/dist/types/components/ActionMenuItem/index.d.ts +1 -5
  46. package/dist/types/components/MultiMenuItem/index.d.ts +1 -5
  47. package/dist/types/components/Section/index.d.ts +1 -5
  48. package/dist/types/components/Separator/index.d.ts +1 -5
  49. package/dist/types/components/SingleMenuItem/index.d.ts +1 -5
  50. package/dist/types/components/SingleWithSubmenuItem/index.d.ts +1 -5
  51. package/dist/types/components/SkeletonMenuItem/index.d.ts +1 -4
  52. package/dist/types/components/SubmenuItem/index.d.ts +1 -5
  53. package/dist/types/components/index.d.ts +8 -8
  54. package/dist/types/exported-related/index.d.ts +1 -1
  55. package/dist/types/index.d.ts +2 -2
  56. package/package.json +11 -8
  57. package/dist/cjs/components/SingleWithSubmenuItem/useGetSubmenuHandlers.js +0 -87
  58. package/dist/cjs/components/SingleWithSubmenuItem/useGetSubmenuHandlers.js.map +0 -7
  59. package/dist/cjs/components/SubmenuItem/getChevronHandlers.js +0 -72
  60. package/dist/cjs/components/SubmenuItem/getChevronHandlers.js.map +0 -7
  61. package/dist/cjs/components/SubmenuItem/getEllipsisHandlers.js +0 -64
  62. package/dist/cjs/components/SubmenuItem/getEllipsisHandlers.js.map +0 -7
  63. package/dist/cjs/components/SubmenuItem/useGetSubmenuHandlers.js +0 -46
  64. package/dist/cjs/components/SubmenuItem/useGetSubmenuHandlers.js.map +0 -7
  65. package/dist/cjs/components/styled.js +0 -192
  66. package/dist/cjs/components/styled.js.map +0 -7
  67. package/dist/cjs/components/useGetGlobalsAndXStyledProps.js +0 -42
  68. package/dist/cjs/components/useGetGlobalsAndXStyledProps.js.map +0 -7
  69. package/dist/cjs/exported-related/constants.js +0 -51
  70. package/dist/cjs/exported-related/constants.js.map +0 -7
  71. package/dist/cjs/react-desc-prop-types.js +0 -169
  72. package/dist/cjs/react-desc-prop-types.js.map +0 -7
  73. package/dist/esm/components/SingleWithSubmenuItem/useGetSubmenuHandlers.js +0 -57
  74. package/dist/esm/components/SingleWithSubmenuItem/useGetSubmenuHandlers.js.map +0 -7
  75. package/dist/esm/components/SubmenuItem/getChevronHandlers.js +0 -42
  76. package/dist/esm/components/SubmenuItem/getChevronHandlers.js.map +0 -7
  77. package/dist/esm/components/SubmenuItem/getEllipsisHandlers.js +0 -34
  78. package/dist/esm/components/SubmenuItem/getEllipsisHandlers.js.map +0 -7
  79. package/dist/esm/components/SubmenuItem/useGetSubmenuHandlers.js +0 -16
  80. package/dist/esm/components/SubmenuItem/useGetSubmenuHandlers.js.map +0 -7
  81. package/dist/esm/components/styled.js +0 -162
  82. package/dist/esm/components/styled.js.map +0 -7
  83. package/dist/esm/components/useGetGlobalsAndXStyledProps.js +0 -12
  84. package/dist/esm/components/useGetGlobalsAndXStyledProps.js.map +0 -7
  85. package/dist/esm/exported-related/constants.js +0 -21
  86. package/dist/esm/exported-related/constants.js.map +0 -7
  87. package/dist/esm/react-desc-prop-types.js +0 -139
  88. package/dist/esm/react-desc-prop-types.js.map +0 -7
  89. package/dist/types/components/SingleWithSubmenuItem/useGetSubmenuHandlers.d.ts +0 -7
  90. package/dist/types/components/SubmenuItem/getChevronHandlers.d.ts +0 -7
  91. package/dist/types/components/SubmenuItem/getEllipsisHandlers.d.ts +0 -8
  92. package/dist/types/components/SubmenuItem/useGetSubmenuHandlers.d.ts +0 -8
  93. package/dist/types/components/styled.d.ts +0 -22
  94. package/dist/types/components/useGetGlobalsAndXStyledProps.d.ts +0 -5
  95. package/dist/types/exported-related/constants.d.ts +0 -15
  96. package/dist/types/react-desc-prop-types.d.ts +0 -106
@@ -1,139 +0,0 @@
1
- import * as React from "react";
2
- import { PropTypes, globalAttributesPropTypes, xstyledPropTypes } from "@elliemae/ds-props-helpers";
3
- const noop = () => null;
4
- const defaultCommonProps = {
5
- innerRef: noop,
6
- wrapperStyles: {}
7
- };
8
- const defaultActionProps = {
9
- ...defaultCommonProps,
10
- label: "",
11
- value: void 0,
12
- disabled: false,
13
- isActive: false,
14
- onClick: noop,
15
- optionsShouldHavePadding: false,
16
- tabIndex: 0
17
- };
18
- const defaultMultiProps = {
19
- ...defaultCommonProps,
20
- label: "",
21
- isActive: false,
22
- disabled: false,
23
- isSelected: false,
24
- onClick: noop,
25
- onMouseDown: noop,
26
- onMouseEnter: noop,
27
- onMouseLeave: noop,
28
- tabIndex: 0
29
- };
30
- const defaultSingleProps = {
31
- ...defaultCommonProps,
32
- label: "",
33
- isActive: false,
34
- disabled: false,
35
- isSelected: false,
36
- onClick: noop,
37
- onMouseDown: noop,
38
- onMouseEnter: noop,
39
- onMouseLeave: noop,
40
- dataTestid: "ds-menu-item",
41
- tabIndex: 0
42
- };
43
- const defaultSubmenuProps = {
44
- ...defaultCommonProps,
45
- label: "",
46
- isActive: false,
47
- disabled: false,
48
- isSubmenuOpened: false,
49
- onSubmenuOpen: noop,
50
- rightAddon: "chevron",
51
- optionsShouldHavePadding: false,
52
- Dropdown: noop,
53
- dropdownProps: {
54
- options: [],
55
- onSubmenuToggle: noop,
56
- openedSubmenus: {},
57
- selectedOptions: {},
58
- onKeyDown: noop,
59
- onOptionClick: noop,
60
- onClickOutside: noop,
61
- minWidth: "auto",
62
- maxHeight: "auto"
63
- }
64
- };
65
- const defaultSectionProps = {
66
- ...defaultCommonProps,
67
- label: ""
68
- };
69
- const defaultSeparatorProps = {
70
- ...defaultCommonProps
71
- };
72
- const defaultSingleWithSubmenuProps = {
73
- ...defaultSingleProps,
74
- ...defaultSubmenuProps
75
- };
76
- const itemProps = {
77
- ...globalAttributesPropTypes,
78
- ...xstyledPropTypes,
79
- dsId: PropTypes.string,
80
- innerRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({ current: PropTypes.any })]),
81
- wrapperStyles: PropTypes.object,
82
- render: PropTypes.func
83
- };
84
- const MenuItemPropTypes = {
85
- dsId: PropTypes.string.description("The unique ID for the menu item.").isRequired,
86
- innerRef: PropTypes.oneOfType([
87
- PropTypes.shape({
88
- current: PropTypes.node
89
- }),
90
- PropTypes.func.description(
91
- " A ref object or callback function to access the underlying DOM element (HTMLLIElement) of the menu item."
92
- )
93
- ]),
94
- render: PropTypes.func.description("A custom render function to render the content of the menu item.")
95
- };
96
- const SingleMenuItemPropTypes = {
97
- ...MenuItemPropTypes,
98
- label: PropTypes.string.description("The label of the menu item."),
99
- secondaryLabel: PropTypes.string.description("The secondary label of the menu item."),
100
- isActive: PropTypes.bool.description("Whether the menu item is active."),
101
- disabled: PropTypes.bool.description("Whether the menu item is disabled."),
102
- isSelected: PropTypes.bool.description("Whether the menu item is selected.")
103
- };
104
- const MultiMenuItemPropTypes = {
105
- ...MenuItemPropTypes,
106
- label: PropTypes.string.description("The label of the menu item."),
107
- secondaryLabel: PropTypes.string.description("The secondary label of the menu item."),
108
- isActive: PropTypes.bool.description("Whether the menu item is active."),
109
- disabled: PropTypes.bool.description("Whether the menu item is disabled."),
110
- isSelected: PropTypes.bool.description("Whether the menu item is selected.")
111
- };
112
- const ActionMenuItemPropTypes = {
113
- ...MenuItemPropTypes,
114
- label: PropTypes.string.description("The label of the menu item."),
115
- value: PropTypes.any.description("The value of the menu item."),
116
- disabled: PropTypes.bool.description("Whether the menu item is disabled."),
117
- isActive: PropTypes.bool.description("Whether the menu item is active.")
118
- };
119
- const SectionMenuItemPropTypes = {
120
- ...MenuItemPropTypes,
121
- label: PropTypes.string.description("The label of the menu item.")
122
- };
123
- export {
124
- ActionMenuItemPropTypes,
125
- MenuItemPropTypes,
126
- MultiMenuItemPropTypes,
127
- SectionMenuItemPropTypes,
128
- SingleMenuItemPropTypes,
129
- defaultActionProps,
130
- defaultCommonProps,
131
- defaultMultiProps,
132
- defaultSectionProps,
133
- defaultSeparatorProps,
134
- defaultSingleProps,
135
- defaultSingleWithSubmenuProps,
136
- defaultSubmenuProps,
137
- itemProps
138
- };
139
- //# sourceMappingURL=react-desc-prop-types.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/react-desc-prop-types.ts"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable max-lines */\n/* eslint-disable @typescript-eslint/no-explicit-any */\nimport type { PropsWithChildren, WeakValidationMap } from 'react';\nimport type React from 'react';\nimport type { SizingProps } from '@elliemae/ds-system';\nimport { PropTypes, globalAttributesPropTypes, xstyledPropTypes } from '@elliemae/ds-props-helpers';\nexport namespace DSMenuItemT {\n export interface CommonProps<T = Record<string, unknown>> {\n dsId: string;\n innerRef?: React.RefObject<HTMLLIElement> | ((_ref: HTMLLIElement) => void);\n wrapperStyles?: Record<string, unknown>;\n render?: React.ComponentType<T>;\n original?: Record<string, unknown>;\n }\n\n export interface ActionProps extends CommonProps<ActionProps> {\n label?: string;\n secondaryLabel?: string;\n value?: unknown;\n disabled?: boolean;\n isActive?: boolean;\n onClick?: React.MouseEventHandler;\n optionsShouldHavePadding?: boolean;\n tabIndex: WCAGTabIndex;\n }\n\n export interface SkeletonProps extends CommonProps<ActionProps> {\n secondaryLabel?: string;\n isActive?: boolean;\n onClick?: React.MouseEventHandler;\n tabIndex?: WCAGTabIndex;\n }\n\n export interface MultiProps extends CommonProps<MultiProps> {\n label?: string;\n isActive?: boolean;\n disabled?: boolean;\n isSelected?: boolean;\n onClick?: React.MouseEventHandler;\n onKeyDown?: React.KeyboardEventHandler;\n onMouseDown?: React.MouseEventHandler;\n onMouseEnter?: React.MouseEventHandler;\n onMouseLeave?: React.MouseEventHandler;\n dataTestid?: string;\n tabIndex?: WCAGTabIndex;\n value?: unknown;\n }\n\n export interface SingleProps extends CommonProps<SingleProps> {\n label?: string;\n secondaryLabel?: string;\n isActive?: boolean;\n disabled?: boolean;\n isSelected?: boolean;\n onClick?: React.MouseEventHandler;\n onKeyDown?: React.KeyboardEventHandler;\n onMouseDown?: React.MouseEventHandler;\n onMouseEnter?: React.MouseEventHandler;\n onMouseLeave?: React.MouseEventHandler;\n dataTestid?: string;\n tabIndex?: number;\n value?: unknown;\n }\n\n export interface SubmenuProps extends CommonProps<SubmenuProps> {\n label?: string;\n secondaryLabel?: string;\n isActive?: boolean;\n disabled?: boolean;\n isSubmenuOpened?: boolean;\n onSubmenuOpen?: React.MouseEventHandler;\n onSubmenuClose?: React.MouseEventHandler;\n rightAddon?: 'ellipsis' | 'chevron';\n optionsShouldHavePadding?: boolean;\n onMouseEnter?: React.MouseEventHandler;\n onMouseLeave?: React.MouseEventHandler;\n onMouseDown?: React.MouseEventHandler;\n Dropdown: React.ComponentType<PropsWithChildren<SubmenuProps['dropdownProps']>>;\n dropdownProps?: {\n options: any[];\n onSubmenuToggle?: (\n nextOpenedSubmenus: Record<string, boolean>,\n submenu: any,\n e: React.MouseEvent | React.KeyboardEvent,\n ) => void;\n openedSubmenus?: Record<string, boolean>;\n selectedOptions?: Record<string, boolean>;\n onKeyDown?: React.KeyboardEventHandler;\n onOptionClick?: (\n nextSelectedOptions: Record<string, boolean>,\n clickedOption: any,\n e: React.MouseEvent | React.KeyboardEvent,\n ) => void;\n onClickOutside?: (e: MouseEvent | React.KeyboardEvent | TouchEvent) => void;\n minWidth?: SizingProps['minWidth'];\n maxHeight?: SizingProps['maxHeight'];\n [key: string]: unknown;\n };\n }\n\n export interface SectionProps extends CommonProps<SectionProps> {\n label?: string;\n }\n\n export type SeparatorProps = CommonProps<SeparatorProps>;\n\n export interface SingleWithSubmenuProps extends Omit<SingleProps, 'render'>, Omit<SubmenuProps, 'render'> {\n render?: React.ComponentType<SingleWithSubmenuProps>;\n }\n export type AllTypeItems = ActionProps | MultiProps | SingleProps | SubmenuProps | SectionProps | SeparatorProps;\n}\n\nconst noop = () => null;\n\nexport const defaultCommonProps: Partial<Omit<DSMenuItemT.CommonProps, 'render'>> = {\n innerRef: noop,\n wrapperStyles: {},\n};\n\nexport const defaultActionProps: Partial<DSMenuItemT.ActionProps> = {\n ...defaultCommonProps,\n label: '',\n value: undefined,\n disabled: false,\n isActive: false,\n onClick: noop,\n optionsShouldHavePadding: false,\n tabIndex: 0,\n};\n\nexport const defaultMultiProps: Partial<DSMenuItemT.MultiProps> = {\n ...defaultCommonProps,\n label: '',\n isActive: false,\n disabled: false,\n isSelected: false,\n onClick: noop,\n onMouseDown: noop,\n onMouseEnter: noop,\n onMouseLeave: noop,\n tabIndex: 0,\n};\n\nexport const defaultSingleProps: Partial<DSMenuItemT.SingleProps> = {\n ...defaultCommonProps,\n label: '',\n isActive: false,\n disabled: false,\n isSelected: false,\n onClick: noop,\n onMouseDown: noop,\n onMouseEnter: noop,\n onMouseLeave: noop,\n dataTestid: 'ds-menu-item',\n tabIndex: 0,\n};\n\nexport const defaultSubmenuProps: Partial<DSMenuItemT.SubmenuProps> = {\n ...defaultCommonProps,\n label: '',\n isActive: false,\n disabled: false,\n isSubmenuOpened: false,\n onSubmenuOpen: noop,\n rightAddon: 'chevron',\n optionsShouldHavePadding: false,\n Dropdown: noop,\n dropdownProps: {\n options: [],\n onSubmenuToggle: noop,\n openedSubmenus: {},\n selectedOptions: {},\n onKeyDown: noop,\n onOptionClick: noop,\n onClickOutside: noop,\n minWidth: 'auto',\n maxHeight: 'auto',\n },\n};\n\nexport const defaultSectionProps: Partial<DSMenuItemT.SectionProps> = {\n ...defaultCommonProps,\n label: '',\n};\n\nexport const defaultSeparatorProps: Partial<DSMenuItemT.SeparatorProps> = {\n ...defaultCommonProps,\n};\n\nexport const defaultSingleWithSubmenuProps: Partial<Omit<DSMenuItemT.SingleWithSubmenuProps, 'render'>> = {\n ...defaultSingleProps,\n ...defaultSubmenuProps,\n};\n\nexport const itemProps = {\n ...globalAttributesPropTypes,\n ...xstyledPropTypes,\n dsId: PropTypes.string,\n innerRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({ current: PropTypes.any })]),\n wrapperStyles: PropTypes.object,\n render: PropTypes.func,\n} as WeakValidationMap<unknown>;\n\nexport const MenuItemPropTypes = {\n dsId: PropTypes.string.description('The unique ID for the menu item.').isRequired,\n innerRef: PropTypes.oneOfType([\n PropTypes.shape({\n current: PropTypes.node,\n }),\n PropTypes.func.description(\n ' A ref object or callback function to access the underlying DOM element (HTMLLIElement) of the menu item.',\n ),\n ]),\n render: PropTypes.func.description('A custom render function to render the content of the menu item.'),\n} as WeakValidationMap<unknown>;\n\nexport const SingleMenuItemPropTypes = {\n ...MenuItemPropTypes,\n label: PropTypes.string.description('The label of the menu item.'),\n secondaryLabel: PropTypes.string.description('The secondary label of the menu item.'),\n isActive: PropTypes.bool.description('Whether the menu item is active.'),\n disabled: PropTypes.bool.description('Whether the menu item is disabled.'),\n isSelected: PropTypes.bool.description('Whether the menu item is selected.'),\n} as WeakValidationMap<unknown>;\n\nexport const MultiMenuItemPropTypes = {\n ...MenuItemPropTypes,\n label: PropTypes.string.description('The label of the menu item.'),\n secondaryLabel: PropTypes.string.description('The secondary label of the menu item.'),\n isActive: PropTypes.bool.description('Whether the menu item is active.'),\n disabled: PropTypes.bool.description('Whether the menu item is disabled.'),\n isSelected: PropTypes.bool.description('Whether the menu item is selected.'),\n} as WeakValidationMap<unknown>;\n\nexport const ActionMenuItemPropTypes = {\n ...MenuItemPropTypes,\n label: PropTypes.string.description('The label of the menu item.'),\n value: PropTypes.any.description('The value of the menu item.'),\n disabled: PropTypes.bool.description('Whether the menu item is disabled.'),\n isActive: PropTypes.bool.description('Whether the menu item is active.'),\n} as WeakValidationMap<unknown>;\n\nexport const SectionMenuItemPropTypes = {\n ...MenuItemPropTypes,\n label: PropTypes.string.description('The label of the menu item.'),\n} as WeakValidationMap<unknown>;\n"],
5
- "mappings": "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",
6
- "names": []
7
- }
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- import type { DSMenuItemT } from '../../react-desc-prop-types.js';
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
- };
@@ -1,7 +0,0 @@
1
- import type { DSMenuItemT } from '../../react-desc-prop-types.js';
2
- export declare const getChevronHandlers: ({ isSubmenuOpened, onMouseEnter, onSubmenuOpen, onSubmenuClose, onMouseLeave, onMouseDown, disabled, }: Required<DSMenuItemT.SubmenuProps>) => {
3
- onMouseEnterHandler: (e: React.MouseEvent) => void;
4
- onMouseLeaveHandler: (e: React.MouseEvent) => void;
5
- onMouseDownHandler: (e: React.MouseEvent) => void;
6
- onEllipsisClick: () => never;
7
- };
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- import type { DSMenuItemT } from '../../react-desc-prop-types.js';
3
- export declare const getEllipsisHandlers: ({ disabled, isSubmenuOpened, onMouseEnter, onSubmenuOpen, onSubmenuClose, onMouseLeave, onMouseDown, }: Required<DSMenuItemT.SubmenuProps>) => {
4
- onMouseEnterHandler: import("react").MouseEventHandler<Element>;
5
- onMouseLeaveHandler: import("react").MouseEventHandler<Element>;
6
- onMouseDownHandler: import("react").MouseEventHandler<Element>;
7
- onEllipsisClick: import("react").MouseEventHandler<Element>;
8
- };
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- import type { DSMenuItemT } from '../../react-desc-prop-types.js';
3
- export declare const useGetSubmenuHandlers: (submenuProps: Required<DSMenuItemT.SubmenuProps>) => {
4
- onMouseEnterHandler: import("react").MouseEventHandler<Element>;
5
- onMouseLeaveHandler: import("react").MouseEventHandler<Element>;
6
- onMouseDownHandler: import("react").MouseEventHandler<Element>;
7
- onEllipsisClick: import("react").MouseEventHandler<Element>;
8
- };
@@ -1,22 +0,0 @@
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 & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<"li">, never>;
9
- export declare const StyleMenuItemLabel: import("styled-components").StyledComponent<"span", import("@elliemae/ds-system").Theme, object & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<"span">, never>;
10
- export declare const StyleMenuItemSecondaryLabel: import("styled-components").StyledComponent<"span", import("@elliemae/ds-system").Theme, object & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<"span">, never>;
11
- export declare const StyledIconContainer: import("styled-components").StyledComponent<"div", import("@elliemae/ds-system").Theme, object & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<"div">, never>;
12
- export declare const StyledEllipsisButton: import("styled-components").StyledComponent<"div", import("@elliemae/ds-system").Theme, {
13
- disabled: boolean;
14
- } & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<"div">, never>;
15
- export declare const StyledItemContent: import("styled-components").StyledComponent<"div", import("@elliemae/ds-system").Theme, object & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<"div">, never>;
16
- export declare const StyledSeparator: import("styled-components").StyledComponent<"hr", import("@elliemae/ds-system").Theme, object & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<"hr">, 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> & import("@elliemae/ds-system").BackgroundProps & 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 & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<"li">, never>;
18
- export declare const StyledGroupLabel: import("styled-components").StyledComponent<"span", import("@elliemae/ds-system").Theme, object & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<"span">, 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> & import("@elliemae/ds-system").BackgroundProps & 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 & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<"li">, never>;
20
- export declare const StyledVerticalSeparator: import("styled-components").StyledComponent<"div", import("@elliemae/ds-system").Theme, object & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<"div">, never>;
21
- export declare const StyledContentWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid").DSGridT.Props & import("react").RefAttributes<HTMLDivElement>>, import("@elliemae/ds-system").Theme, object & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid").DSGridT.Props & import("react").RefAttributes<HTMLDivElement>>>, never>;
22
- export {};
@@ -1,5 +0,0 @@
1
- import type { DSMenuItemT } from '../react-desc-prop-types.js';
2
- export declare const useGetGlobalsAndXStyledProps: (props: DSMenuItemT.AllTypeItems, toMergeEvents?: Record<string, unknown>) => {
3
- globalAttributes: import("@elliemae/ds-props-helpers").GlobalAttributesT<Element>;
4
- xStyledProps: import("@elliemae/ds-props-helpers").XstyledProps;
5
- };
@@ -1,15 +0,0 @@
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
- };
@@ -1,106 +0,0 @@
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
- original?: Record<string, unknown>;
11
- }
12
- interface ActionProps extends CommonProps<ActionProps> {
13
- label?: string;
14
- secondaryLabel?: string;
15
- value?: unknown;
16
- disabled?: boolean;
17
- isActive?: boolean;
18
- onClick?: React.MouseEventHandler;
19
- optionsShouldHavePadding?: boolean;
20
- tabIndex: WCAGTabIndex;
21
- }
22
- interface SkeletonProps extends CommonProps<ActionProps> {
23
- secondaryLabel?: string;
24
- isActive?: boolean;
25
- onClick?: React.MouseEventHandler;
26
- tabIndex?: WCAGTabIndex;
27
- }
28
- interface MultiProps extends CommonProps<MultiProps> {
29
- label?: string;
30
- isActive?: boolean;
31
- disabled?: boolean;
32
- isSelected?: boolean;
33
- onClick?: React.MouseEventHandler;
34
- onKeyDown?: React.KeyboardEventHandler;
35
- onMouseDown?: React.MouseEventHandler;
36
- onMouseEnter?: React.MouseEventHandler;
37
- onMouseLeave?: React.MouseEventHandler;
38
- dataTestid?: string;
39
- tabIndex?: WCAGTabIndex;
40
- value?: unknown;
41
- }
42
- interface SingleProps extends CommonProps<SingleProps> {
43
- label?: string;
44
- secondaryLabel?: string;
45
- isActive?: boolean;
46
- disabled?: boolean;
47
- isSelected?: boolean;
48
- onClick?: React.MouseEventHandler;
49
- onKeyDown?: React.KeyboardEventHandler;
50
- onMouseDown?: React.MouseEventHandler;
51
- onMouseEnter?: React.MouseEventHandler;
52
- onMouseLeave?: React.MouseEventHandler;
53
- dataTestid?: string;
54
- tabIndex?: number;
55
- value?: unknown;
56
- }
57
- interface SubmenuProps extends CommonProps<SubmenuProps> {
58
- label?: string;
59
- secondaryLabel?: string;
60
- isActive?: boolean;
61
- disabled?: boolean;
62
- isSubmenuOpened?: boolean;
63
- onSubmenuOpen?: React.MouseEventHandler;
64
- onSubmenuClose?: React.MouseEventHandler;
65
- rightAddon?: 'ellipsis' | 'chevron';
66
- optionsShouldHavePadding?: boolean;
67
- onMouseEnter?: React.MouseEventHandler;
68
- onMouseLeave?: React.MouseEventHandler;
69
- onMouseDown?: React.MouseEventHandler;
70
- Dropdown: React.ComponentType<PropsWithChildren<SubmenuProps['dropdownProps']>>;
71
- dropdownProps?: {
72
- options: any[];
73
- onSubmenuToggle?: (nextOpenedSubmenus: Record<string, boolean>, submenu: any, e: React.MouseEvent | React.KeyboardEvent) => void;
74
- openedSubmenus?: Record<string, boolean>;
75
- selectedOptions?: Record<string, boolean>;
76
- onKeyDown?: React.KeyboardEventHandler;
77
- onOptionClick?: (nextSelectedOptions: Record<string, boolean>, clickedOption: any, e: React.MouseEvent | React.KeyboardEvent) => void;
78
- onClickOutside?: (e: MouseEvent | React.KeyboardEvent | TouchEvent) => void;
79
- minWidth?: SizingProps['minWidth'];
80
- maxHeight?: SizingProps['maxHeight'];
81
- [key: string]: unknown;
82
- };
83
- }
84
- interface SectionProps extends CommonProps<SectionProps> {
85
- label?: string;
86
- }
87
- type SeparatorProps = CommonProps<SeparatorProps>;
88
- interface SingleWithSubmenuProps extends Omit<SingleProps, 'render'>, Omit<SubmenuProps, 'render'> {
89
- render?: React.ComponentType<SingleWithSubmenuProps>;
90
- }
91
- type AllTypeItems = ActionProps | MultiProps | SingleProps | SubmenuProps | SectionProps | SeparatorProps;
92
- }
93
- export declare const defaultCommonProps: Partial<Omit<DSMenuItemT.CommonProps, 'render'>>;
94
- export declare const defaultActionProps: Partial<DSMenuItemT.ActionProps>;
95
- export declare const defaultMultiProps: Partial<DSMenuItemT.MultiProps>;
96
- export declare const defaultSingleProps: Partial<DSMenuItemT.SingleProps>;
97
- export declare const defaultSubmenuProps: Partial<DSMenuItemT.SubmenuProps>;
98
- export declare const defaultSectionProps: Partial<DSMenuItemT.SectionProps>;
99
- export declare const defaultSeparatorProps: Partial<DSMenuItemT.SeparatorProps>;
100
- export declare const defaultSingleWithSubmenuProps: Partial<Omit<DSMenuItemT.SingleWithSubmenuProps, 'render'>>;
101
- export declare const itemProps: WeakValidationMap<unknown>;
102
- export declare const MenuItemPropTypes: WeakValidationMap<unknown>;
103
- export declare const SingleMenuItemPropTypes: WeakValidationMap<unknown>;
104
- export declare const MultiMenuItemPropTypes: WeakValidationMap<unknown>;
105
- export declare const ActionMenuItemPropTypes: WeakValidationMap<unknown>;
106
- export declare const SectionMenuItemPropTypes: WeakValidationMap<unknown>;