@elliemae/ds-menu-items 3.27.0-next.8 → 3.27.0-rc.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/cjs/components/ActionMenuItem/index.js +6 -61
- package/dist/cjs/components/ActionMenuItem/index.js.map +2 -2
- package/dist/cjs/components/MultiMenuItem/index.js +6 -79
- package/dist/cjs/components/MultiMenuItem/index.js.map +2 -2
- package/dist/cjs/components/Section/index.js +6 -29
- package/dist/cjs/components/Section/index.js.map +2 -2
- package/dist/cjs/components/Separator/index.js +6 -32
- package/dist/cjs/components/Separator/index.js.map +2 -2
- package/dist/cjs/components/SingleMenuItem/index.js +6 -84
- package/dist/cjs/components/SingleMenuItem/index.js.map +3 -3
- package/dist/cjs/components/SingleWithSubmenuItem/index.js +5 -124
- package/dist/cjs/components/SingleWithSubmenuItem/index.js.map +2 -2
- package/dist/cjs/components/SkeletonMenuItem/index.js +5 -26
- package/dist/cjs/components/SkeletonMenuItem/index.js.map +2 -2
- package/dist/cjs/components/SubmenuItem/index.js +5 -128
- package/dist/cjs/components/SubmenuItem/index.js.map +2 -2
- package/dist/cjs/components/index.js +51 -9
- package/dist/cjs/components/index.js.map +2 -2
- package/dist/cjs/exported-related/index.js +9 -2
- package/dist/cjs/exported-related/index.js.map +2 -2
- package/dist/cjs/index.js +45 -4
- package/dist/cjs/index.js.map +2 -2
- package/dist/esm/components/ActionMenuItem/index.js +11 -65
- package/dist/esm/components/ActionMenuItem/index.js.map +3 -3
- package/dist/esm/components/MultiMenuItem/index.js +12 -79
- package/dist/esm/components/MultiMenuItem/index.js.map +3 -3
- package/dist/esm/components/Section/index.js +12 -29
- package/dist/esm/components/Section/index.js.map +3 -3
- package/dist/esm/components/Separator/index.js +11 -37
- package/dist/esm/components/Separator/index.js.map +3 -3
- package/dist/esm/components/SingleMenuItem/index.js +11 -88
- package/dist/esm/components/SingleMenuItem/index.js.map +3 -3
- package/dist/esm/components/SingleWithSubmenuItem/index.js +9 -131
- package/dist/esm/components/SingleWithSubmenuItem/index.js.map +3 -3
- package/dist/esm/components/SkeletonMenuItem/index.js +10 -26
- package/dist/esm/components/SkeletonMenuItem/index.js.map +3 -3
- package/dist/esm/components/SubmenuItem/index.js +9 -135
- package/dist/esm/components/SubmenuItem/index.js.map +3 -3
- package/dist/esm/components/index.js +92 -8
- package/dist/esm/components/index.js.map +2 -2
- package/dist/esm/exported-related/index.js +5 -1
- package/dist/esm/exported-related/index.js.map +2 -2
- package/dist/esm/index.js +77 -3
- package/dist/esm/index.js.map +2 -2
- package/dist/types/components/ActionMenuItem/index.d.ts +1 -5
- package/dist/types/components/MultiMenuItem/index.d.ts +1 -5
- package/dist/types/components/Section/index.d.ts +1 -5
- package/dist/types/components/Separator/index.d.ts +1 -5
- package/dist/types/components/SingleMenuItem/index.d.ts +1 -5
- package/dist/types/components/SingleWithSubmenuItem/index.d.ts +1 -5
- package/dist/types/components/SkeletonMenuItem/index.d.ts +1 -4
- package/dist/types/components/SubmenuItem/index.d.ts +1 -5
- package/dist/types/components/index.d.ts +8 -8
- package/dist/types/exported-related/index.d.ts +1 -1
- package/dist/types/index.d.ts +2 -3
- package/package.json +11 -12
- package/dist/cjs/TempTreeviewItem.js +0 -133
- package/dist/cjs/TempTreeviewItem.js.map +0 -7
- package/dist/cjs/components/SingleWithSubmenuItem/useGetSubmenuHandlers.js +0 -87
- package/dist/cjs/components/SingleWithSubmenuItem/useGetSubmenuHandlers.js.map +0 -7
- package/dist/cjs/components/SubmenuItem/getChevronHandlers.js +0 -72
- package/dist/cjs/components/SubmenuItem/getChevronHandlers.js.map +0 -7
- package/dist/cjs/components/SubmenuItem/getEllipsisHandlers.js +0 -64
- package/dist/cjs/components/SubmenuItem/getEllipsisHandlers.js.map +0 -7
- package/dist/cjs/components/SubmenuItem/useGetSubmenuHandlers.js +0 -46
- package/dist/cjs/components/SubmenuItem/useGetSubmenuHandlers.js.map +0 -7
- package/dist/cjs/components/styled.js +0 -192
- package/dist/cjs/components/styled.js.map +0 -7
- package/dist/cjs/components/useGetGlobalsAndXStyledProps.js +0 -42
- package/dist/cjs/components/useGetGlobalsAndXStyledProps.js.map +0 -7
- package/dist/cjs/exported-related/constants.js +0 -51
- package/dist/cjs/exported-related/constants.js.map +0 -7
- package/dist/cjs/react-desc-prop-types.js +0 -169
- package/dist/cjs/react-desc-prop-types.js.map +0 -7
- package/dist/esm/TempTreeviewItem.js +0 -103
- package/dist/esm/TempTreeviewItem.js.map +0 -7
- package/dist/esm/components/SingleWithSubmenuItem/useGetSubmenuHandlers.js +0 -57
- package/dist/esm/components/SingleWithSubmenuItem/useGetSubmenuHandlers.js.map +0 -7
- package/dist/esm/components/SubmenuItem/getChevronHandlers.js +0 -42
- package/dist/esm/components/SubmenuItem/getChevronHandlers.js.map +0 -7
- package/dist/esm/components/SubmenuItem/getEllipsisHandlers.js +0 -34
- package/dist/esm/components/SubmenuItem/getEllipsisHandlers.js.map +0 -7
- package/dist/esm/components/SubmenuItem/useGetSubmenuHandlers.js +0 -16
- package/dist/esm/components/SubmenuItem/useGetSubmenuHandlers.js.map +0 -7
- package/dist/esm/components/styled.js +0 -162
- package/dist/esm/components/styled.js.map +0 -7
- package/dist/esm/components/useGetGlobalsAndXStyledProps.js +0 -12
- package/dist/esm/components/useGetGlobalsAndXStyledProps.js.map +0 -7
- package/dist/esm/exported-related/constants.js +0 -21
- package/dist/esm/exported-related/constants.js.map +0 -7
- package/dist/esm/react-desc-prop-types.js +0 -139
- package/dist/esm/react-desc-prop-types.js.map +0 -7
- package/dist/types/TempTreeviewItem.d.ts +0 -16
- package/dist/types/components/SingleWithSubmenuItem/useGetSubmenuHandlers.d.ts +0 -7
- package/dist/types/components/SubmenuItem/getChevronHandlers.d.ts +0 -7
- package/dist/types/components/SubmenuItem/getEllipsisHandlers.d.ts +0 -8
- package/dist/types/components/SubmenuItem/useGetSubmenuHandlers.d.ts +0 -8
- package/dist/types/components/styled.d.ts +0 -22
- package/dist/types/components/useGetGlobalsAndXStyledProps.d.ts +0 -5
- package/dist/types/exported-related/constants.d.ts +0 -15
- package/dist/types/react-desc-prop-types.d.ts +0 -106
|
@@ -28,33 +28,12 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
29
|
var SkeletonMenuItem_exports = {};
|
|
30
30
|
__export(SkeletonMenuItem_exports, {
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
DSMenuItemsSkeleton: () => import_ds_menu_items_skeleton.DSMenuItemsSkeleton,
|
|
32
|
+
DSMenuItemsSkeletonWithSchema: () => import_ds_menu_items_skeleton.DSMenuItemsSkeletonWithSchema,
|
|
33
|
+
DSSkeletonMenuItem: () => import_ds_menu_items_skeleton.DSMenuItemsSkeleton,
|
|
34
|
+
SkeletonMenuItem: () => import_ds_menu_items_skeleton.DSMenuItemsSkeleton
|
|
33
35
|
});
|
|
34
36
|
module.exports = __toCommonJS(SkeletonMenuItem_exports);
|
|
35
37
|
var React = __toESM(require("react"));
|
|
36
|
-
var
|
|
37
|
-
var import_react = require("react");
|
|
38
|
-
var import_ds_skeleton = require("@elliemae/ds-skeleton");
|
|
39
|
-
var import_styled = require("../styled.js");
|
|
40
|
-
const SkeletonMenuItem = (props) => {
|
|
41
|
-
const { wrapperStyles, isActive, dsId } = props;
|
|
42
|
-
const gridLayout = (0, import_react.useMemo)(() => ["16px", "auto"], []);
|
|
43
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
44
|
-
import_styled.StyledGlobalMenuItemWrapper,
|
|
45
|
-
{
|
|
46
|
-
id: dsId,
|
|
47
|
-
"data-type": "skeleton",
|
|
48
|
-
"data-testid": "ds-skeleton-menu-item",
|
|
49
|
-
role: "option",
|
|
50
|
-
"aria-label": "skeleton",
|
|
51
|
-
style: wrapperStyles,
|
|
52
|
-
isActive,
|
|
53
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_styled.StyledContentWrapper, { cols: gridLayout, minHeight: "16px", gutter: "xxs", alignItems: "center", children: [
|
|
54
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_skeleton.DSSkeleton, { variant: "rectangular", width: "100%" }),
|
|
55
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_skeleton.DSSkeleton, { variant: "rectangular", width: "100%" })
|
|
56
|
-
] })
|
|
57
|
-
}
|
|
58
|
-
);
|
|
59
|
-
};
|
|
38
|
+
var import_ds_menu_items_skeleton = require("@elliemae/ds-menu-items-skeleton");
|
|
60
39
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/components/SkeletonMenuItem/index.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;
|
|
4
|
+
"sourcesContent": ["export {\n // legacy exports where renaming like this, keeping around for backwards compatibility.\n DSMenuItemsSkeleton as SkeletonMenuItem,\n DSMenuItemsSkeleton as DSSkeletonMenuItem,\n // the \"current\" correctly named export\n DSMenuItemsSkeleton,\n DSMenuItemsSkeletonWithSchema,\n type DSMenuItemsSkeletonT,\n} from '@elliemae/ds-menu-items-skeleton';\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,oCAQO;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -28,135 +28,12 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
29
|
var SubmenuItem_exports = {};
|
|
30
30
|
__export(SubmenuItem_exports, {
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
DSMenuItemsSubmenu: () => import_ds_menu_items_submenu.DSMenuItemsSubmenu,
|
|
32
|
+
DSMenuItemsSubmenuWithSchema: () => import_ds_menu_items_submenu.DSMenuItemsSubmenuWithSchema,
|
|
33
|
+
SubmenuItem: () => import_ds_menu_items_submenu.DSMenuItemsSubmenu,
|
|
34
|
+
SubmenuItemWithSchema: () => import_ds_menu_items_submenu.DSMenuItemsSubmenuWithSchema
|
|
33
35
|
});
|
|
34
36
|
module.exports = __toCommonJS(SubmenuItem_exports);
|
|
35
37
|
var React = __toESM(require("react"));
|
|
36
|
-
var
|
|
37
|
-
var import_react = require("react");
|
|
38
|
-
var import_ds_icons = require("@elliemae/ds-icons");
|
|
39
|
-
var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
|
|
40
|
-
var import_react_desc_prop_types = require("../../react-desc-prop-types.js");
|
|
41
|
-
var import_styled = require("../styled.js");
|
|
42
|
-
var import_useGetSubmenuHandlers = require("./useGetSubmenuHandlers.js");
|
|
43
|
-
var import_exported_related = require("../../exported-related/index.js");
|
|
44
|
-
var import_useGetGlobalsAndXStyledProps = require("../useGetGlobalsAndXStyledProps.js");
|
|
45
|
-
const SubmenuItem = (props) => {
|
|
46
|
-
const propsWithDefault = (0, import_ds_props_helpers.useMemoMergePropsWithDefault)(props, import_react_desc_prop_types.defaultSubmenuProps);
|
|
47
|
-
(0, import_ds_props_helpers.useValidateTypescriptPropTypes)(propsWithDefault, import_react_desc_prop_types.itemProps, `${import_exported_related.DSMenuItemName}Submenu`);
|
|
48
|
-
const {
|
|
49
|
-
dsId,
|
|
50
|
-
label,
|
|
51
|
-
secondaryLabel,
|
|
52
|
-
isActive,
|
|
53
|
-
disabled,
|
|
54
|
-
isSubmenuOpened,
|
|
55
|
-
rightAddon,
|
|
56
|
-
innerRef,
|
|
57
|
-
wrapperStyles,
|
|
58
|
-
optionsShouldHavePadding,
|
|
59
|
-
render: Render,
|
|
60
|
-
Dropdown,
|
|
61
|
-
dropdownProps: {
|
|
62
|
-
options,
|
|
63
|
-
openedSubmenus,
|
|
64
|
-
onSubmenuToggle,
|
|
65
|
-
selectedOptions,
|
|
66
|
-
onKeyDown,
|
|
67
|
-
onOptionClick,
|
|
68
|
-
onClickOutside,
|
|
69
|
-
minWidth,
|
|
70
|
-
maxHeight
|
|
71
|
-
}
|
|
72
|
-
} = propsWithDefault;
|
|
73
|
-
const [delayedIsOpened, setDelayedIsOpened] = (0, import_react.useState)(false);
|
|
74
|
-
(0, import_react.useEffect)(() => {
|
|
75
|
-
setTimeout(() => setDelayedIsOpened(isSubmenuOpened));
|
|
76
|
-
}, [isSubmenuOpened]);
|
|
77
|
-
const { onMouseEnterHandler, onMouseLeaveHandler, onMouseDownHandler, onEllipsisClick } = (0, import_useGetSubmenuHandlers.useGetSubmenuHandlers)(propsWithDefault);
|
|
78
|
-
const gridLayout = (0, import_react.useMemo)(() => {
|
|
79
|
-
const cols = ["auto"];
|
|
80
|
-
if (secondaryLabel !== void 0)
|
|
81
|
-
cols.push("min-content");
|
|
82
|
-
cols.push("min-content");
|
|
83
|
-
return cols;
|
|
84
|
-
}, [secondaryLabel]);
|
|
85
|
-
const { globalAttributes, xStyledProps } = (0, import_useGetGlobalsAndXStyledProps.useGetGlobalsAndXStyledProps)(
|
|
86
|
-
propsWithDefault,
|
|
87
|
-
props.original ? {
|
|
88
|
-
onMouseEnter: onMouseEnterHandler,
|
|
89
|
-
onMouseLeave: onMouseLeaveHandler,
|
|
90
|
-
onMouseDown: onMouseDownHandler
|
|
91
|
-
} : void 0
|
|
92
|
-
);
|
|
93
|
-
const { minWidth: customMinWidth, ...restXStyled } = xStyledProps;
|
|
94
|
-
const { onMouseLeave, onMouseEnter, onMouseDown, ...restGlobalAttributes } = globalAttributes;
|
|
95
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
96
|
-
Dropdown,
|
|
97
|
-
{
|
|
98
|
-
isOpened: delayedIsOpened,
|
|
99
|
-
options: options ?? [],
|
|
100
|
-
onOptionClick,
|
|
101
|
-
startPlacementPreference: "right-start",
|
|
102
|
-
placementOrderPreference: ["right-start", "right-end", "left-start", "left-end"],
|
|
103
|
-
selectedOptions,
|
|
104
|
-
openedSubmenus,
|
|
105
|
-
onSubmenuToggle,
|
|
106
|
-
onKeyDown,
|
|
107
|
-
onClickOutside,
|
|
108
|
-
customOffset: [-4, 1],
|
|
109
|
-
wrapperStyles: { ...wrapperStyles, w: "100%" },
|
|
110
|
-
as: "li",
|
|
111
|
-
role: "option",
|
|
112
|
-
minWidth,
|
|
113
|
-
maxHeight,
|
|
114
|
-
"aria-selected": isSubmenuOpened,
|
|
115
|
-
"aria-describedby": `dropdownmenu-submenu-${dsId}`,
|
|
116
|
-
"data-popover-label": label,
|
|
117
|
-
id: dsId,
|
|
118
|
-
onMouseEnter: onMouseEnterHandler,
|
|
119
|
-
onMouseLeave: onMouseLeaveHandler,
|
|
120
|
-
onMouseDown: onMouseDownHandler,
|
|
121
|
-
...restGlobalAttributes,
|
|
122
|
-
...restXStyled,
|
|
123
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
124
|
-
import_styled.StyledGlobalMenuItemWrapper,
|
|
125
|
-
{
|
|
126
|
-
pr: 0,
|
|
127
|
-
isSelected: isSubmenuOpened,
|
|
128
|
-
isActive,
|
|
129
|
-
onMouseEnter: onMouseEnterHandler,
|
|
130
|
-
onMouseLeave: onMouseLeaveHandler,
|
|
131
|
-
innerRef,
|
|
132
|
-
disabled,
|
|
133
|
-
pl: optionsShouldHavePadding ? 40 : 16,
|
|
134
|
-
as: "div",
|
|
135
|
-
"data-type": "submenu",
|
|
136
|
-
children: [
|
|
137
|
-
Render !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Render, { ...propsWithDefault }) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_styled.StyledContentWrapper, { cols: gridLayout, gutter: "xxs", alignItems: "center", children: [
|
|
138
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styled.StyleMenuItemLabel, { children: label }),
|
|
139
|
-
secondaryLabel !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styled.StyleMenuItemSecondaryLabel, { children: secondaryLabel }),
|
|
140
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_styled.StyledIconContainer, { children: [
|
|
141
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styled.StyledVerticalSeparator, {}),
|
|
142
|
-
rightAddon === "ellipsis" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styled.StyledEllipsisButton, { tabIndex: -1, onClick: onEllipsisClick, disabled, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
143
|
-
import_ds_icons.MoreOptionsVert,
|
|
144
|
-
{
|
|
145
|
-
className: "ds-dropdown-menu-v2-more-options",
|
|
146
|
-
color: disabled ? ["neutral", "500"] : ["brand-primary", "600"],
|
|
147
|
-
size: "s"
|
|
148
|
-
}
|
|
149
|
-
) }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_icons.ChevronRight, { color: disabled ? ["neutral", "500"] : ["brand-primary", "600"], size: "s" })
|
|
150
|
-
] })
|
|
151
|
-
] }),
|
|
152
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { id: `dropdownmenu-submenu-${dsId}`, style: { display: "none" }, children: "submenu, to open this submenu press the Right Arrow key" })
|
|
153
|
-
]
|
|
154
|
-
}
|
|
155
|
-
)
|
|
156
|
-
}
|
|
157
|
-
);
|
|
158
|
-
};
|
|
159
|
-
SubmenuItem.displayName = `${import_exported_related.DSMenuItemName}Submenu`;
|
|
160
|
-
const SubmenuItemWithSchema = (0, import_ds_props_helpers.describe)(SubmenuItem);
|
|
161
|
-
SubmenuItemWithSchema.propTypes = import_react_desc_prop_types.itemProps;
|
|
38
|
+
var import_ds_menu_items_submenu = require("@elliemae/ds-menu-items-submenu");
|
|
162
39
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/components/SubmenuItem/index.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;
|
|
4
|
+
"sourcesContent": ["export {\n // legacy exports where renaming like this, keeping around for backwards compatibility.\n DSMenuItemsSubmenu as SubmenuItem,\n DSMenuItemsSubmenuWithSchema as SubmenuItemWithSchema,\n // the \"current\" correctly named export\n DSMenuItemsSubmenu,\n DSMenuItemsSubmenuWithSchema,\n type DSMenuItemsSubmenuT,\n} from '@elliemae/ds-menu-items-submenu';\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,mCAQO;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -5,6 +5,10 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __getProtoOf = Object.getPrototypeOf;
|
|
7
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
8
12
|
var __copyProps = (to, from, except, desc) => {
|
|
9
13
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
10
14
|
for (let key of __getOwnPropNames(from))
|
|
@@ -13,7 +17,6 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
13
17
|
}
|
|
14
18
|
return to;
|
|
15
19
|
};
|
|
16
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
17
20
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
18
21
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
19
22
|
// file that has been converted to a CommonJS file using a Babel-
|
|
@@ -24,14 +27,53 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
24
27
|
));
|
|
25
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
26
29
|
var components_exports = {};
|
|
30
|
+
__export(components_exports, {
|
|
31
|
+
ActionMenuItem: () => import_ActionMenuItem.ActionMenuItem,
|
|
32
|
+
ActionMenuItemWithSchema: () => import_ActionMenuItem.ActionMenuItemWithSchema,
|
|
33
|
+
DSActionMenuItem: () => import_ActionMenuItem.DSActionMenuItem,
|
|
34
|
+
DSMenuItemsAction: () => import_ActionMenuItem.DSMenuItemsAction,
|
|
35
|
+
DSMenuItemsActionWithSchema: () => import_ActionMenuItem.DSMenuItemsActionWithSchema,
|
|
36
|
+
DSMenuItemsMulti: () => import_MultiMenuItem.DSMenuItemsMulti,
|
|
37
|
+
DSMenuItemsMultiWithSchema: () => import_MultiMenuItem.DSMenuItemsMultiWithSchema,
|
|
38
|
+
DSMenuItemsSection: () => import_Section.DSMenuItemsSection,
|
|
39
|
+
DSMenuItemsSectionWithSchema: () => import_Section.DSMenuItemsSectionWithSchema,
|
|
40
|
+
DSMenuItemsSeparator: () => import_Separator.DSMenuItemsSeparator,
|
|
41
|
+
DSMenuItemsSeparatorWithSchema: () => import_Separator.DSMenuItemsSeparatorWithSchema,
|
|
42
|
+
DSMenuItemsSingle: () => import_SingleMenuItem.DSMenuItemsSingle,
|
|
43
|
+
DSMenuItemsSingleWithSchema: () => import_SingleMenuItem.DSMenuItemsSingleWithSchema,
|
|
44
|
+
DSMenuItemsSingleWithSubmenu: () => import_SingleWithSubmenuItem.DSMenuItemsSingleWithSubmenu,
|
|
45
|
+
DSMenuItemsSingleWithSubmenuWithSchema: () => import_SingleWithSubmenuItem.DSMenuItemsSingleWithSubmenuWithSchema,
|
|
46
|
+
DSMenuItemsSkeleton: () => import_SkeletonMenuItem.DSMenuItemsSkeleton,
|
|
47
|
+
DSMenuItemsSkeletonWithSchema: () => import_SkeletonMenuItem.DSMenuItemsSkeletonWithSchema,
|
|
48
|
+
DSMenuItemsSubmenu: () => import_SubmenuItem.DSMenuItemsSubmenu,
|
|
49
|
+
DSMenuItemsSubmenuWithSchema: () => import_SubmenuItem.DSMenuItemsSubmenuWithSchema,
|
|
50
|
+
DSMultiMenuItem: () => import_MultiMenuItem.DSMultiMenuItem,
|
|
51
|
+
DSSectionMenuItem: () => import_Section.DSSectionMenuItem,
|
|
52
|
+
DSSeparatorMenuItem: () => import_Separator.DSSeparatorMenuItem,
|
|
53
|
+
DSSingleMenuItem: () => import_SingleMenuItem.DSSingleMenuItem,
|
|
54
|
+
DSSkeletonMenuItem: () => import_SkeletonMenuItem.DSSkeletonMenuItem,
|
|
55
|
+
MultiMenuItem: () => import_MultiMenuItem.MultiMenuItem,
|
|
56
|
+
MultiMenuItemWithSchema: () => import_MultiMenuItem.MultiMenuItemWithSchema,
|
|
57
|
+
Section: () => import_Section.Section,
|
|
58
|
+
SectionWithSchema: () => import_Section.SectionWithSchema,
|
|
59
|
+
Separator: () => import_Separator.Separator,
|
|
60
|
+
SeparatorWithSchema: () => import_Separator.SeparatorWithSchema,
|
|
61
|
+
SingleMenuItem: () => import_SingleMenuItem.SingleMenuItem,
|
|
62
|
+
SingleMenuItemWithSchema: () => import_SingleMenuItem.SingleMenuItemWithSchema,
|
|
63
|
+
SingleWithSubmenuItem: () => import_SingleWithSubmenuItem.SingleWithSubmenuItem,
|
|
64
|
+
SingleWithSubmenuItemWithSchema: () => import_SingleWithSubmenuItem.SingleWithSubmenuItemWithSchema,
|
|
65
|
+
SkeletonMenuItem: () => import_SkeletonMenuItem.SkeletonMenuItem,
|
|
66
|
+
SubmenuItem: () => import_SubmenuItem.SubmenuItem,
|
|
67
|
+
SubmenuItemWithSchema: () => import_SubmenuItem.SubmenuItemWithSchema
|
|
68
|
+
});
|
|
27
69
|
module.exports = __toCommonJS(components_exports);
|
|
28
70
|
var React = __toESM(require("react"));
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
71
|
+
var import_ActionMenuItem = require("./ActionMenuItem/index.js");
|
|
72
|
+
var import_MultiMenuItem = require("./MultiMenuItem/index.js");
|
|
73
|
+
var import_Section = require("./Section/index.js");
|
|
74
|
+
var import_Separator = require("./Separator/index.js");
|
|
75
|
+
var import_SingleMenuItem = require("./SingleMenuItem/index.js");
|
|
76
|
+
var import_SingleWithSubmenuItem = require("./SingleWithSubmenuItem/index.js");
|
|
77
|
+
var import_SkeletonMenuItem = require("./SkeletonMenuItem/index.js");
|
|
78
|
+
var import_SubmenuItem = require("./SubmenuItem/index.js");
|
|
37
79
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/components/index.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["export
|
|
5
|
-
"mappings": "
|
|
4
|
+
"sourcesContent": ["export {\n ActionMenuItem,\n DSActionMenuItem,\n ActionMenuItemWithSchema,\n DSMenuItemsAction,\n DSMenuItemsActionWithSchema,\n type DSMenuItemsActionT,\n} from './ActionMenuItem/index.js';\nexport {\n MultiMenuItem,\n DSMultiMenuItem,\n MultiMenuItemWithSchema,\n DSMenuItemsMulti,\n DSMenuItemsMultiWithSchema,\n type DSMenuItemsMultiT,\n} from './MultiMenuItem/index.js';\nexport {\n Section,\n DSSectionMenuItem,\n SectionWithSchema,\n DSMenuItemsSection,\n DSMenuItemsSectionWithSchema,\n type DSMenuItemsSectionT,\n} from './Section/index.js';\nexport {\n Separator,\n DSSeparatorMenuItem,\n SeparatorWithSchema,\n DSMenuItemsSeparator,\n DSMenuItemsSeparatorWithSchema,\n type DSMenuItemsSeparatorT,\n} from './Separator/index.js';\nexport {\n SingleMenuItem,\n DSSingleMenuItem,\n SingleMenuItemWithSchema,\n DSMenuItemsSingle,\n DSMenuItemsSingleWithSchema,\n type DSMenuItemsSingleT,\n} from './SingleMenuItem/index.js';\nexport {\n SingleWithSubmenuItem,\n SingleWithSubmenuItemWithSchema,\n DSMenuItemsSingleWithSubmenu,\n DSMenuItemsSingleWithSubmenuWithSchema,\n type DSMenuItemsSingleWithSubmenuT,\n} from './SingleWithSubmenuItem/index.js';\nexport {\n SkeletonMenuItem,\n DSSkeletonMenuItem,\n DSMenuItemsSkeleton,\n DSMenuItemsSkeletonWithSchema,\n type DSMenuItemsSkeletonT,\n} from './SkeletonMenuItem/index.js';\nexport {\n SubmenuItem,\n SubmenuItemWithSchema,\n DSMenuItemsSubmenu,\n DSMenuItemsSubmenuWithSchema,\n type DSMenuItemsSubmenuT,\n} from './SubmenuItem/index.js';\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,4BAOO;AACP,2BAOO;AACP,qBAOO;AACP,uBAOO;AACP,4BAOO;AACP,mCAMO;AACP,8BAMO;AACP,yBAMO;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -5,6 +5,10 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __getProtoOf = Object.getPrototypeOf;
|
|
7
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
8
12
|
var __copyProps = (to, from, except, desc) => {
|
|
9
13
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
10
14
|
for (let key of __getOwnPropNames(from))
|
|
@@ -13,7 +17,6 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
13
17
|
}
|
|
14
18
|
return to;
|
|
15
19
|
};
|
|
16
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
17
20
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
18
21
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
19
22
|
// file that has been converted to a CommonJS file using a Babel-
|
|
@@ -24,7 +27,11 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
24
27
|
));
|
|
25
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
26
29
|
var exported_related_exports = {};
|
|
30
|
+
__export(exported_related_exports, {
|
|
31
|
+
DSMenuItemName: () => import_ds_menu_items_commons.DSMenuItemName,
|
|
32
|
+
DSMenuItemSlots: () => import_ds_menu_items_commons.DSMenuItemSlots
|
|
33
|
+
});
|
|
27
34
|
module.exports = __toCommonJS(exported_related_exports);
|
|
28
35
|
var React = __toESM(require("react"));
|
|
29
|
-
|
|
36
|
+
var import_ds_menu_items_commons = require("@elliemae/ds-menu-items-commons");
|
|
30
37
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/exported-related/index.ts", "../../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["export
|
|
5
|
-
"mappings": "
|
|
4
|
+
"sourcesContent": ["export { DSMenuItemName, DSMenuItemSlots } from '@elliemae/ds-menu-items-commons';\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,mCAAgD;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/cjs/index.js
CHANGED
|
@@ -5,6 +5,10 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __getProtoOf = Object.getPrototypeOf;
|
|
7
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
8
12
|
var __copyProps = (to, from, except, desc) => {
|
|
9
13
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
10
14
|
for (let key of __getOwnPropNames(from))
|
|
@@ -13,7 +17,6 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
13
17
|
}
|
|
14
18
|
return to;
|
|
15
19
|
};
|
|
16
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
17
20
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
18
21
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
19
22
|
// file that has been converted to a CommonJS file using a Babel-
|
|
@@ -24,9 +27,47 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
24
27
|
));
|
|
25
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
26
29
|
var src_exports = {};
|
|
30
|
+
__export(src_exports, {
|
|
31
|
+
ActionMenuItem: () => import_components.ActionMenuItem,
|
|
32
|
+
ActionMenuItemWithSchema: () => import_components.ActionMenuItemWithSchema,
|
|
33
|
+
DSActionMenuItem: () => import_components.DSActionMenuItem,
|
|
34
|
+
DSMenuItemName: () => import_exported_related.DSMenuItemName,
|
|
35
|
+
DSMenuItemSlots: () => import_exported_related.DSMenuItemSlots,
|
|
36
|
+
DSMenuItemsAction: () => import_components.DSMenuItemsAction,
|
|
37
|
+
DSMenuItemsActionWithSchema: () => import_components.DSMenuItemsActionWithSchema,
|
|
38
|
+
DSMenuItemsMulti: () => import_components.DSMenuItemsMulti,
|
|
39
|
+
DSMenuItemsMultiWithSchema: () => import_components.DSMenuItemsMultiWithSchema,
|
|
40
|
+
DSMenuItemsSection: () => import_components.DSMenuItemsSection,
|
|
41
|
+
DSMenuItemsSectionWithSchema: () => import_components.DSMenuItemsSectionWithSchema,
|
|
42
|
+
DSMenuItemsSeparator: () => import_components.DSMenuItemsSeparator,
|
|
43
|
+
DSMenuItemsSeparatorWithSchema: () => import_components.DSMenuItemsSeparatorWithSchema,
|
|
44
|
+
DSMenuItemsSingle: () => import_components.DSMenuItemsSingle,
|
|
45
|
+
DSMenuItemsSingleWithSchema: () => import_components.DSMenuItemsSingleWithSchema,
|
|
46
|
+
DSMenuItemsSingleWithSubmenu: () => import_components.DSMenuItemsSingleWithSubmenu,
|
|
47
|
+
DSMenuItemsSingleWithSubmenuWithSchema: () => import_components.DSMenuItemsSingleWithSubmenuWithSchema,
|
|
48
|
+
DSMenuItemsSkeleton: () => import_components.DSMenuItemsSkeleton,
|
|
49
|
+
DSMenuItemsSkeletonWithSchema: () => import_components.DSMenuItemsSkeletonWithSchema,
|
|
50
|
+
DSMultiMenuItem: () => import_components.DSMultiMenuItem,
|
|
51
|
+
DSSectionMenuItem: () => import_components.DSSectionMenuItem,
|
|
52
|
+
DSSeparatorMenuItem: () => import_components.DSSeparatorMenuItem,
|
|
53
|
+
DSSingleMenuItem: () => import_components.DSSingleMenuItem,
|
|
54
|
+
DSSkeletonMenuItem: () => import_components.DSSkeletonMenuItem,
|
|
55
|
+
MultiMenuItem: () => import_components.MultiMenuItem,
|
|
56
|
+
MultiMenuItemWithSchema: () => import_components.MultiMenuItemWithSchema,
|
|
57
|
+
Section: () => import_components.Section,
|
|
58
|
+
SectionWithSchema: () => import_components.SectionWithSchema,
|
|
59
|
+
Separator: () => import_components.Separator,
|
|
60
|
+
SeparatorWithSchema: () => import_components.SeparatorWithSchema,
|
|
61
|
+
SingleMenuItem: () => import_components.SingleMenuItem,
|
|
62
|
+
SingleMenuItemWithSchema: () => import_components.SingleMenuItemWithSchema,
|
|
63
|
+
SingleWithSubmenuItem: () => import_components.SingleWithSubmenuItem,
|
|
64
|
+
SingleWithSubmenuItemWithSchema: () => import_components.SingleWithSubmenuItemWithSchema,
|
|
65
|
+
SkeletonMenuItem: () => import_components.SkeletonMenuItem,
|
|
66
|
+
SubmenuItem: () => import_components.SubmenuItem,
|
|
67
|
+
SubmenuItemWithSchema: () => import_components.SubmenuItemWithSchema
|
|
68
|
+
});
|
|
27
69
|
module.exports = __toCommonJS(src_exports);
|
|
28
70
|
var React = __toESM(require("react"));
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
__reExport(src_exports, require("./TempTreeviewItem.js"), module.exports);
|
|
71
|
+
var import_components = require("./components/index.js");
|
|
72
|
+
var import_exported_related = require("./exported-related/index.js");
|
|
32
73
|
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/index.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["import type {} from '@xstyled/system';\nimport type {} from '@xstyled/util';\n\nexport
|
|
5
|
-
"mappings": "
|
|
4
|
+
"sourcesContent": ["import type {} from '@xstyled/system';\nimport type {} from '@xstyled/util';\n\nexport {\n // legacy names\n ActionMenuItem,\n DSActionMenuItem,\n ActionMenuItemWithSchema,\n // correct convention names\n DSMenuItemsAction,\n DSMenuItemsActionWithSchema,\n type DSMenuItemsActionT,\n\n // legacy names\n MultiMenuItem,\n DSMultiMenuItem,\n MultiMenuItemWithSchema,\n // correct convention names\n DSMenuItemsMulti,\n DSMenuItemsMultiWithSchema,\n type DSMenuItemsMultiT,\n\n // legacy names\n Section,\n DSSectionMenuItem,\n SectionWithSchema,\n // correct convention names\n DSMenuItemsSection,\n DSMenuItemsSectionWithSchema,\n type DSMenuItemsSectionT,\n\n // legacy names\n Separator,\n DSSeparatorMenuItem,\n SeparatorWithSchema,\n // correct convention names\n DSMenuItemsSeparator,\n DSMenuItemsSeparatorWithSchema,\n type DSMenuItemsSeparatorT,\n\n // legacy names\n SingleMenuItem,\n DSSingleMenuItem,\n SingleMenuItemWithSchema,\n // correct convention names\n DSMenuItemsSingle,\n DSMenuItemsSingleWithSchema,\n type DSMenuItemsSingleT,\n\n // legacy names\n SingleWithSubmenuItem,\n SingleWithSubmenuItemWithSchema,\n // correct convention names\n DSMenuItemsSingleWithSubmenu,\n DSMenuItemsSingleWithSubmenuWithSchema,\n type DSMenuItemsSingleWithSubmenuT,\n\n // legacy names\n SkeletonMenuItem,\n DSSkeletonMenuItem,\n // correct convention names\n DSMenuItemsSkeleton,\n DSMenuItemsSkeletonWithSchema,\n type DSMenuItemsSkeletonT,\n\n // legacy names\n SubmenuItem,\n SubmenuItemWithSchema,\n // correct convention names\n} from './components/index.js';\nexport { DSMenuItemName, DSMenuItemSlots } from './exported-related/index.js';\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADGvB,wBAkEO;AACP,8BAAgD;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,70 +1,16 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { useMemo } from "react";
|
|
4
|
-
import { describe, useMemoMergePropsWithDefault, useValidateTypescriptPropTypes } from "@elliemae/ds-props-helpers";
|
|
5
|
-
import { defaultActionProps, ActionMenuItemPropTypes } from "../../react-desc-prop-types.js";
|
|
6
2
|
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
import { useGetGlobalsAndXStyledProps } from "../useGetGlobalsAndXStyledProps.js";
|
|
14
|
-
const ActionMenuItem = (props) => {
|
|
15
|
-
const propsWithDefault = useMemoMergePropsWithDefault(props, defaultActionProps);
|
|
16
|
-
useValidateTypescriptPropTypes(propsWithDefault, ActionMenuItemPropTypes, `${DSMenuItemName}Action`);
|
|
17
|
-
const {
|
|
18
|
-
dsId,
|
|
19
|
-
label,
|
|
20
|
-
secondaryLabel,
|
|
21
|
-
onClick,
|
|
22
|
-
isActive,
|
|
23
|
-
disabled,
|
|
24
|
-
innerRef,
|
|
25
|
-
wrapperStyles,
|
|
26
|
-
optionsShouldHavePadding,
|
|
27
|
-
render: Render
|
|
28
|
-
} = propsWithDefault;
|
|
29
|
-
const { globalAttributes, xStyledProps } = useGetGlobalsAndXStyledProps(
|
|
30
|
-
propsWithDefault,
|
|
31
|
-
props.original ? {
|
|
32
|
-
onClick
|
|
33
|
-
} : void 0
|
|
34
|
-
);
|
|
35
|
-
const gridLayout = useMemo(() => {
|
|
36
|
-
const cols = ["auto"];
|
|
37
|
-
if (secondaryLabel)
|
|
38
|
-
cols.push("min-content");
|
|
39
|
-
return cols;
|
|
40
|
-
}, [secondaryLabel]);
|
|
41
|
-
return /* @__PURE__ */ jsx(
|
|
42
|
-
StyledGlobalMenuItemWrapper,
|
|
43
|
-
{
|
|
44
|
-
id: dsId,
|
|
45
|
-
role: "option",
|
|
46
|
-
isActive,
|
|
47
|
-
disabled,
|
|
48
|
-
onClick: !disabled ? onClick : void 0,
|
|
49
|
-
innerRef,
|
|
50
|
-
pl: optionsShouldHavePadding ? 40 : 16,
|
|
51
|
-
style: wrapperStyles,
|
|
52
|
-
"data-type": "action",
|
|
53
|
-
...globalAttributes,
|
|
54
|
-
...xStyledProps,
|
|
55
|
-
children: Render !== void 0 ? /* @__PURE__ */ jsx(Render, { ...propsWithDefault }) : /* @__PURE__ */ jsx(StyledContentWrapper, { cols: gridLayout, minHeight: "16px", gutter: "xxs", alignItems: "center", children: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
56
|
-
/* @__PURE__ */ jsx(StyleMenuItemLabel, { children: label }),
|
|
57
|
-
secondaryLabel !== void 0 && /* @__PURE__ */ jsx(StyleMenuItemSecondaryLabel, { children: secondaryLabel })
|
|
58
|
-
] }) })
|
|
59
|
-
}
|
|
60
|
-
);
|
|
61
|
-
};
|
|
62
|
-
ActionMenuItem.displayName = "DSActionMenuItem";
|
|
63
|
-
const ActionMenuItemWithSchema = describe(ActionMenuItem);
|
|
64
|
-
ActionMenuItemWithSchema.propTypes = ActionMenuItemPropTypes;
|
|
3
|
+
DSMenuItemsAction,
|
|
4
|
+
DSMenuItemsAction as DSMenuItemsAction2,
|
|
5
|
+
DSMenuItemsActionWithSchema,
|
|
6
|
+
DSMenuItemsAction as DSMenuItemsAction3,
|
|
7
|
+
DSMenuItemsActionWithSchema as DSMenuItemsActionWithSchema2
|
|
8
|
+
} from "@elliemae/ds-menu-items-action";
|
|
65
9
|
export {
|
|
66
|
-
ActionMenuItem,
|
|
67
|
-
ActionMenuItemWithSchema,
|
|
68
|
-
|
|
10
|
+
DSMenuItemsAction as ActionMenuItem,
|
|
11
|
+
DSMenuItemsActionWithSchema as ActionMenuItemWithSchema,
|
|
12
|
+
DSMenuItemsAction2 as DSActionMenuItem,
|
|
13
|
+
DSMenuItemsAction3 as DSMenuItemsAction,
|
|
14
|
+
DSMenuItemsActionWithSchema2 as DSMenuItemsActionWithSchema
|
|
69
15
|
};
|
|
70
16
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/components/ActionMenuItem/index.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;
|
|
6
|
-
"names": []
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export {\n // legacy exports where renaming like this, keeping around for backwards compatibility.\n DSMenuItemsAction as ActionMenuItem,\n DSMenuItemsAction as DSActionMenuItem,\n DSMenuItemsActionWithSchema as ActionMenuItemWithSchema,\n // the \"current\" correctly named export\n DSMenuItemsAction,\n DSMenuItemsActionWithSchema,\n type DSMenuItemsActionT,\n} from '@elliemae/ds-menu-items-action';\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACAvB;AAAA,EAEuB;AAAA,EACA,qBAArBA;AAAA,EAC+B;AAAA,EAE/B,qBAAAA;AAAA,EACA,+BAAAC;AAAA,OAEK;",
|
|
6
|
+
"names": ["DSMenuItemsAction", "DSMenuItemsActionWithSchema"]
|
|
7
7
|
}
|