@elliemae/ds-menu-items 3.27.0-next.9 → 3.27.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.
Files changed (101) 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 -4
  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 -3
  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 -3
  56. package/package.json +11 -12
  57. package/dist/cjs/TempTreeviewItem.js +0 -133
  58. package/dist/cjs/TempTreeviewItem.js.map +0 -7
  59. package/dist/cjs/components/SingleWithSubmenuItem/useGetSubmenuHandlers.js +0 -87
  60. package/dist/cjs/components/SingleWithSubmenuItem/useGetSubmenuHandlers.js.map +0 -7
  61. package/dist/cjs/components/SubmenuItem/getChevronHandlers.js +0 -72
  62. package/dist/cjs/components/SubmenuItem/getChevronHandlers.js.map +0 -7
  63. package/dist/cjs/components/SubmenuItem/getEllipsisHandlers.js +0 -64
  64. package/dist/cjs/components/SubmenuItem/getEllipsisHandlers.js.map +0 -7
  65. package/dist/cjs/components/SubmenuItem/useGetSubmenuHandlers.js +0 -46
  66. package/dist/cjs/components/SubmenuItem/useGetSubmenuHandlers.js.map +0 -7
  67. package/dist/cjs/components/styled.js +0 -192
  68. package/dist/cjs/components/styled.js.map +0 -7
  69. package/dist/cjs/components/useGetGlobalsAndXStyledProps.js +0 -42
  70. package/dist/cjs/components/useGetGlobalsAndXStyledProps.js.map +0 -7
  71. package/dist/cjs/exported-related/constants.js +0 -51
  72. package/dist/cjs/exported-related/constants.js.map +0 -7
  73. package/dist/cjs/react-desc-prop-types.js +0 -169
  74. package/dist/cjs/react-desc-prop-types.js.map +0 -7
  75. package/dist/esm/TempTreeviewItem.js +0 -103
  76. package/dist/esm/TempTreeviewItem.js.map +0 -7
  77. package/dist/esm/components/SingleWithSubmenuItem/useGetSubmenuHandlers.js +0 -57
  78. package/dist/esm/components/SingleWithSubmenuItem/useGetSubmenuHandlers.js.map +0 -7
  79. package/dist/esm/components/SubmenuItem/getChevronHandlers.js +0 -42
  80. package/dist/esm/components/SubmenuItem/getChevronHandlers.js.map +0 -7
  81. package/dist/esm/components/SubmenuItem/getEllipsisHandlers.js +0 -34
  82. package/dist/esm/components/SubmenuItem/getEllipsisHandlers.js.map +0 -7
  83. package/dist/esm/components/SubmenuItem/useGetSubmenuHandlers.js +0 -16
  84. package/dist/esm/components/SubmenuItem/useGetSubmenuHandlers.js.map +0 -7
  85. package/dist/esm/components/styled.js +0 -162
  86. package/dist/esm/components/styled.js.map +0 -7
  87. package/dist/esm/components/useGetGlobalsAndXStyledProps.js +0 -12
  88. package/dist/esm/components/useGetGlobalsAndXStyledProps.js.map +0 -7
  89. package/dist/esm/exported-related/constants.js +0 -21
  90. package/dist/esm/exported-related/constants.js.map +0 -7
  91. package/dist/esm/react-desc-prop-types.js +0 -139
  92. package/dist/esm/react-desc-prop-types.js.map +0 -7
  93. package/dist/types/TempTreeviewItem.d.ts +0 -16
  94. package/dist/types/components/SingleWithSubmenuItem/useGetSubmenuHandlers.d.ts +0 -7
  95. package/dist/types/components/SubmenuItem/getChevronHandlers.d.ts +0 -7
  96. package/dist/types/components/SubmenuItem/getEllipsisHandlers.d.ts +0 -8
  97. package/dist/types/components/SubmenuItem/useGetSubmenuHandlers.d.ts +0 -8
  98. package/dist/types/components/styled.d.ts +0 -22
  99. package/dist/types/components/useGetGlobalsAndXStyledProps.d.ts +0 -5
  100. package/dist/types/exported-related/constants.d.ts +0 -15
  101. package/dist/types/react-desc-prop-types.d.ts +0 -106
@@ -28,68 +28,13 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
29
  var ActionMenuItem_exports = {};
30
30
  __export(ActionMenuItem_exports, {
31
- ActionMenuItem: () => ActionMenuItem,
32
- ActionMenuItemWithSchema: () => ActionMenuItemWithSchema,
33
- DSActionMenuItem: () => ActionMenuItem
31
+ ActionMenuItem: () => import_ds_menu_items_action.DSMenuItemsAction,
32
+ ActionMenuItemWithSchema: () => import_ds_menu_items_action.DSMenuItemsActionWithSchema,
33
+ DSActionMenuItem: () => import_ds_menu_items_action.DSMenuItemsAction,
34
+ DSMenuItemsAction: () => import_ds_menu_items_action.DSMenuItemsAction,
35
+ DSMenuItemsActionWithSchema: () => import_ds_menu_items_action.DSMenuItemsActionWithSchema
34
36
  });
35
37
  module.exports = __toCommonJS(ActionMenuItem_exports);
36
38
  var React = __toESM(require("react"));
37
- var import_jsx_runtime = require("react/jsx-runtime");
38
- var import_react = require("react");
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_exported_related = require("../../exported-related/index.js");
43
- var import_useGetGlobalsAndXStyledProps = require("../useGetGlobalsAndXStyledProps.js");
44
- const ActionMenuItem = (props) => {
45
- const propsWithDefault = (0, import_ds_props_helpers.useMemoMergePropsWithDefault)(props, import_react_desc_prop_types.defaultActionProps);
46
- (0, import_ds_props_helpers.useValidateTypescriptPropTypes)(propsWithDefault, import_react_desc_prop_types.ActionMenuItemPropTypes, `${import_exported_related.DSMenuItemName}Action`);
47
- const {
48
- dsId,
49
- label,
50
- secondaryLabel,
51
- onClick,
52
- isActive,
53
- disabled,
54
- innerRef,
55
- wrapperStyles,
56
- optionsShouldHavePadding,
57
- render: Render
58
- } = propsWithDefault;
59
- const { globalAttributes, xStyledProps } = (0, import_useGetGlobalsAndXStyledProps.useGetGlobalsAndXStyledProps)(
60
- propsWithDefault,
61
- props.original ? {
62
- onClick
63
- } : void 0
64
- );
65
- const gridLayout = (0, import_react.useMemo)(() => {
66
- const cols = ["auto"];
67
- if (secondaryLabel)
68
- cols.push("min-content");
69
- return cols;
70
- }, [secondaryLabel]);
71
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
72
- import_styled.StyledGlobalMenuItemWrapper,
73
- {
74
- id: dsId,
75
- role: "option",
76
- isActive,
77
- disabled,
78
- onClick: !disabled ? onClick : void 0,
79
- innerRef,
80
- pl: optionsShouldHavePadding ? 40 : 16,
81
- style: wrapperStyles,
82
- "data-type": "action",
83
- ...globalAttributes,
84
- ...xStyledProps,
85
- children: Render !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Render, { ...propsWithDefault }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styled.StyledContentWrapper, { cols: gridLayout, minHeight: "16px", gutter: "xxs", alignItems: "center", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
86
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styled.StyleMenuItemLabel, { children: label }),
87
- secondaryLabel !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styled.StyleMenuItemSecondaryLabel, { children: secondaryLabel })
88
- ] }) })
89
- }
90
- );
91
- };
92
- ActionMenuItem.displayName = "DSActionMenuItem";
93
- const ActionMenuItemWithSchema = (0, import_ds_props_helpers.describe)(ActionMenuItem);
94
- ActionMenuItemWithSchema.propTypes = import_react_desc_prop_types.ActionMenuItemPropTypes;
39
+ var import_ds_menu_items_action = require("@elliemae/ds-menu-items-action");
95
40
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/components/ActionMenuItem/index.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["import React, { useMemo } from 'react';\nimport { describe, useMemoMergePropsWithDefault, useValidateTypescriptPropTypes } from '@elliemae/ds-props-helpers';\nimport type { DSMenuItemT } from '../../react-desc-prop-types.js';\nimport { defaultActionProps, ActionMenuItemPropTypes } from '../../react-desc-prop-types.js';\nimport {\n StyledContentWrapper,\n StyledGlobalMenuItemWrapper,\n StyleMenuItemLabel,\n StyleMenuItemSecondaryLabel,\n} from '../styled.js';\nimport { DSMenuItemName } from '../../exported-related/index.js';\nimport { useGetGlobalsAndXStyledProps } from '../useGetGlobalsAndXStyledProps.js';\nconst ActionMenuItem: React.ComponentType<DSMenuItemT.ActionProps> = (props) => {\n const propsWithDefault = useMemoMergePropsWithDefault(props, defaultActionProps);\n\n useValidateTypescriptPropTypes(propsWithDefault, ActionMenuItemPropTypes, `${DSMenuItemName}Action`);\n\n const {\n dsId,\n label,\n secondaryLabel,\n onClick,\n isActive,\n disabled,\n innerRef,\n wrapperStyles,\n optionsShouldHavePadding,\n render: Render,\n } = propsWithDefault;\n\n const { globalAttributes, xStyledProps } = useGetGlobalsAndXStyledProps(\n propsWithDefault,\n props.original\n ? {\n onClick: onClick,\n }\n : undefined,\n );\n const gridLayout = useMemo(() => {\n const cols = ['auto'];\n if (secondaryLabel) cols.push('min-content');\n return cols;\n }, [secondaryLabel]);\n\n return (\n <StyledGlobalMenuItemWrapper\n id={dsId}\n role=\"option\"\n isActive={isActive}\n disabled={disabled}\n onClick={!disabled ? onClick : undefined}\n innerRef={innerRef}\n pl={optionsShouldHavePadding ? 40 : 16}\n style={wrapperStyles}\n data-type=\"action\"\n {...globalAttributes}\n {...xStyledProps}\n >\n {Render !== undefined ? (\n <Render {...propsWithDefault} />\n ) : (\n <StyledContentWrapper cols={gridLayout} minHeight=\"16px\" gutter=\"xxs\" alignItems=\"center\">\n <>\n <StyleMenuItemLabel>{label}</StyleMenuItemLabel>\n {secondaryLabel !== undefined && (\n <StyleMenuItemSecondaryLabel>{secondaryLabel}</StyleMenuItemSecondaryLabel>\n )}\n </>\n </StyledContentWrapper>\n )}\n </StyledGlobalMenuItemWrapper>\n );\n};\n\nActionMenuItem.displayName = 'DSActionMenuItem';\nconst ActionMenuItemWithSchema = describe(ActionMenuItem);\nActionMenuItemWithSchema.propTypes = ActionMenuItemPropTypes;\n\nexport { ActionMenuItem, ActionMenuItem as DSActionMenuItem, ActionMenuItemWithSchema };\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;AD2Df;AA3DR,mBAA+B;AAC/B,8BAAuF;AAEvF,mCAA4D;AAC5D,oBAKO;AACP,8BAA+B;AAC/B,0CAA6C;AAC7C,MAAM,iBAA+D,CAAC,UAAU;AAC9E,QAAM,uBAAmB,sDAA6B,OAAO,+CAAkB;AAE/E,8DAA+B,kBAAkB,sDAAyB,GAAG,8CAAsB;AAEnG,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,QAAQ;AAAA,EACV,IAAI;AAEJ,QAAM,EAAE,kBAAkB,aAAa,QAAI;AAAA,IACzC;AAAA,IACA,MAAM,WACF;AAAA,MACE;AAAA,IACF,IACA;AAAA,EACN;AACA,QAAM,iBAAa,sBAAQ,MAAM;AAC/B,UAAM,OAAO,CAAC,MAAM;AACpB,QAAI;AAAgB,WAAK,KAAK,aAAa;AAC3C,WAAO;AAAA,EACT,GAAG,CAAC,cAAc,CAAC;AAEnB,SACE;AAAA,IAAC;AAAA;AAAA,MACC,IAAI;AAAA,MACJ,MAAK;AAAA,MACL;AAAA,MACA;AAAA,MACA,SAAS,CAAC,WAAW,UAAU;AAAA,MAC/B;AAAA,MACA,IAAI,2BAA2B,KAAK;AAAA,MACpC,OAAO;AAAA,MACP,aAAU;AAAA,MACT,GAAG;AAAA,MACH,GAAG;AAAA,MAEH,qBAAW,SACV,4CAAC,UAAQ,GAAG,kBAAkB,IAE9B,4CAAC,sCAAqB,MAAM,YAAY,WAAU,QAAO,QAAO,OAAM,YAAW,UAC/E,sFACE;AAAA,oDAAC,oCAAoB,iBAAM;AAAA,QAC1B,mBAAmB,UAClB,4CAAC,6CAA6B,0BAAe;AAAA,SAEjD,GACF;AAAA;AAAA,EAEJ;AAEJ;AAEA,eAAe,cAAc;AAC7B,MAAM,+BAA2B,kCAAS,cAAc;AACxD,yBAAyB,YAAY;",
4
+ "sourcesContent": ["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", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,kCASO;",
6
6
  "names": []
7
7
  }
@@ -28,86 +28,13 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
29
  var MultiMenuItem_exports = {};
30
30
  __export(MultiMenuItem_exports, {
31
- DSMultiMenuItem: () => MultiMenuItem,
32
- MultiMenuItem: () => MultiMenuItem,
33
- MultiMenuItemWithSchema: () => MultiMenuItemWithSchema
31
+ DSMenuItemsMulti: () => import_ds_menu_items_multi.DSMenuItemsMulti,
32
+ DSMenuItemsMultiWithSchema: () => import_ds_menu_items_multi.DSMenuItemsMultiWithSchema,
33
+ DSMultiMenuItem: () => import_ds_menu_items_multi.DSMenuItemsMulti,
34
+ MultiMenuItem: () => import_ds_menu_items_multi.DSMenuItemsMulti,
35
+ MultiMenuItemWithSchema: () => import_ds_menu_items_multi.DSMenuItemsMultiWithSchema
34
36
  });
35
37
  module.exports = __toCommonJS(MultiMenuItem_exports);
36
38
  var React = __toESM(require("react"));
37
- var import_jsx_runtime = require("react/jsx-runtime");
38
- var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
39
- var import_ds_form_checkbox = require("@elliemae/ds-form-checkbox");
40
- var import_react_desc_prop_types = require("../../react-desc-prop-types.js");
41
- var import_styled = require("../styled.js");
42
- var import_useGetGlobalsAndXStyledProps = require("../useGetGlobalsAndXStyledProps.js");
43
- var import_exported_related = require("../../exported-related/index.js");
44
- const noop = () => null;
45
- const MultiMenuItem = (props) => {
46
- const propsWithDefault = (0, import_ds_props_helpers.useMemoMergePropsWithDefault)(props, import_react_desc_prop_types.defaultMultiProps);
47
- (0, import_ds_props_helpers.useValidateTypescriptPropTypes)(propsWithDefault, import_react_desc_prop_types.MultiMenuItemPropTypes, `${import_exported_related.DSMenuItemName}Multi`);
48
- const {
49
- dsId,
50
- label,
51
- disabled,
52
- isSelected,
53
- isActive,
54
- onClick,
55
- dataTestid,
56
- innerRef,
57
- onMouseEnter,
58
- onMouseLeave,
59
- onMouseDown,
60
- wrapperStyles,
61
- tabIndex,
62
- render: Render
63
- } = propsWithDefault;
64
- const { globalAttributes, xStyledProps } = (0, import_useGetGlobalsAndXStyledProps.useGetGlobalsAndXStyledProps)(
65
- propsWithDefault,
66
- props.original ? {
67
- onClick,
68
- onMouseDown,
69
- onMouseEnter,
70
- onMouseLeave
71
- } : void 0
72
- );
73
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
74
- import_styled.StyledGlobalMenuItemWrapper,
75
- {
76
- id: dsId,
77
- disabled,
78
- isActive,
79
- isSelected,
80
- innerRef,
81
- onMouseDown,
82
- onMouseEnter,
83
- onMouseLeave,
84
- role: "option",
85
- className: isActive ? "ds-list-item-active" : "",
86
- "aria-selected": isSelected,
87
- style: wrapperStyles,
88
- onClick,
89
- "data-testid": dataTestid,
90
- "data-type": "multi",
91
- ...globalAttributes,
92
- ...xStyledProps,
93
- children: Render !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Render, { ...props }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styled.StyledItemContent, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
94
- import_ds_form_checkbox.PresentationalCheckbox,
95
- {
96
- disabled,
97
- checked: isSelected,
98
- onMouseDown,
99
- name: label,
100
- label,
101
- onChange: noop,
102
- tabIndex,
103
- wrapLabel: true,
104
- device: "desktop"
105
- }
106
- ) })
107
- }
108
- );
109
- };
110
- MultiMenuItem.displayName = "DSMultiMenuItem";
111
- const MultiMenuItemWithSchema = (0, import_ds_props_helpers.describe)(MultiMenuItem);
112
- MultiMenuItemWithSchema.propTypes = import_react_desc_prop_types.MultiMenuItemPropTypes;
39
+ var import_ds_menu_items_multi = require("@elliemae/ds-menu-items-multi");
113
40
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/components/MultiMenuItem/index.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["import React from 'react';\nimport { describe, useMemoMergePropsWithDefault, useValidateTypescriptPropTypes } from '@elliemae/ds-props-helpers';\nimport { PresentationalCheckbox } from '@elliemae/ds-form-checkbox';\nimport type { DSMenuItemT } from '../../react-desc-prop-types.js';\nimport { defaultMultiProps, MultiMenuItemPropTypes } from '../../react-desc-prop-types.js';\nimport { StyledGlobalMenuItemWrapper, StyledItemContent } from '../styled.js';\nimport { useGetGlobalsAndXStyledProps } from '../useGetGlobalsAndXStyledProps.js';\nimport { DSMenuItemName } from '../../exported-related/index.js';\n\nconst noop = () => null;\n\nconst MultiMenuItem: React.ComponentType<DSMenuItemT.MultiProps> = (props) => {\n const propsWithDefault = useMemoMergePropsWithDefault(props, defaultMultiProps);\n\n useValidateTypescriptPropTypes(propsWithDefault, MultiMenuItemPropTypes, `${DSMenuItemName}Multi`);\n\n const {\n dsId,\n label,\n disabled,\n isSelected,\n isActive,\n onClick,\n dataTestid,\n innerRef,\n onMouseEnter,\n onMouseLeave,\n onMouseDown,\n wrapperStyles,\n tabIndex,\n render: Render,\n } = propsWithDefault;\n\n // menuitems use original prop from dsdropdownmenu or dscombobox\n const { globalAttributes, xStyledProps } = useGetGlobalsAndXStyledProps(\n propsWithDefault,\n props.original\n ? {\n onClick: onClick,\n onMouseDown: onMouseDown,\n onMouseEnter: onMouseEnter,\n onMouseLeave: onMouseLeave,\n }\n : undefined,\n );\n\n return (\n <StyledGlobalMenuItemWrapper\n id={dsId}\n disabled={disabled}\n isActive={isActive}\n isSelected={isSelected}\n innerRef={innerRef}\n onMouseDown={onMouseDown}\n onMouseEnter={onMouseEnter}\n onMouseLeave={onMouseLeave}\n role=\"option\"\n className={isActive ? 'ds-list-item-active' : ''}\n aria-selected={isSelected}\n style={wrapperStyles}\n onClick={onClick}\n data-testid={dataTestid}\n data-type=\"multi\"\n {...globalAttributes}\n {...xStyledProps}\n >\n {Render !== undefined ? (\n <Render {...props} />\n ) : (\n <StyledItemContent>\n <PresentationalCheckbox\n disabled={disabled}\n checked={isSelected}\n onMouseDown={onMouseDown}\n name={label}\n label={label}\n onChange={noop}\n tabIndex={tabIndex}\n wrapLabel\n device=\"desktop\"\n />\n </StyledItemContent>\n )}\n </StyledGlobalMenuItemWrapper>\n );\n};\n\nMultiMenuItem.displayName = 'DSMultiMenuItem';\nconst MultiMenuItemWithSchema = describe(MultiMenuItem);\nMultiMenuItemWithSchema.propTypes = MultiMenuItemPropTypes;\n\nexport { MultiMenuItem, MultiMenuItem as DSMultiMenuItem, MultiMenuItemWithSchema };\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADmEf;AAlER,8BAAuF;AACvF,8BAAuC;AAEvC,mCAA0D;AAC1D,oBAA+D;AAC/D,0CAA6C;AAC7C,8BAA+B;AAE/B,MAAM,OAAO,MAAM;AAEnB,MAAM,gBAA6D,CAAC,UAAU;AAC5E,QAAM,uBAAmB,sDAA6B,OAAO,8CAAiB;AAE9E,8DAA+B,kBAAkB,qDAAwB,GAAG,6CAAqB;AAEjG,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,QAAQ;AAAA,EACV,IAAI;AAGJ,QAAM,EAAE,kBAAkB,aAAa,QAAI;AAAA,IACzC;AAAA,IACA,MAAM,WACF;AAAA,MACE;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACF,IACA;AAAA,EACN;AAEA,SACE;AAAA,IAAC;AAAA;AAAA,MACC,IAAI;AAAA,MACJ;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA,MAAK;AAAA,MACL,WAAW,WAAW,wBAAwB;AAAA,MAC9C,iBAAe;AAAA,MACf,OAAO;AAAA,MACP;AAAA,MACA,eAAa;AAAA,MACb,aAAU;AAAA,MACT,GAAG;AAAA,MACH,GAAG;AAAA,MAEH,qBAAW,SACV,4CAAC,UAAQ,GAAG,OAAO,IAEnB,4CAAC,mCACC;AAAA,QAAC;AAAA;AAAA,UACC;AAAA,UACA,SAAS;AAAA,UACT;AAAA,UACA,MAAM;AAAA,UACN;AAAA,UACA,UAAU;AAAA,UACV;AAAA,UACA,WAAS;AAAA,UACT,QAAO;AAAA;AAAA,MACT,GACF;AAAA;AAAA,EAEJ;AAEJ;AAEA,cAAc,cAAc;AAC5B,MAAM,8BAA0B,kCAAS,aAAa;AACtD,wBAAwB,YAAY;",
4
+ "sourcesContent": ["export {\n // legacy exports where renaming like this, keeping around for backwards compatibility.\n DSMenuItemsMulti as MultiMenuItem,\n DSMenuItemsMulti as DSMultiMenuItem,\n DSMenuItemsMultiWithSchema as MultiMenuItemWithSchema,\n // the \"current\" correctly named export\n DSMenuItemsMulti,\n DSMenuItemsMultiWithSchema,\n type DSMenuItemsMultiT,\n} from '@elliemae/ds-menu-items-multi';\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,iCASO;",
6
6
  "names": []
7
7
  }
@@ -28,36 +28,13 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
29
  var Section_exports = {};
30
30
  __export(Section_exports, {
31
- DSSectionMenuItem: () => Section,
32
- Section: () => Section,
33
- SectionWithSchema: () => SectionWithSchema
31
+ DSMenuItemsSection: () => import_ds_menu_items_section.DSMenuItemsSection,
32
+ DSMenuItemsSectionWithSchema: () => import_ds_menu_items_section.DSMenuItemsSectionWithSchema,
33
+ DSSectionMenuItem: () => import_ds_menu_items_section.DSMenuItemsSection,
34
+ Section: () => import_ds_menu_items_section.DSMenuItemsSection,
35
+ SectionWithSchema: () => import_ds_menu_items_section.DSMenuItemsSectionWithSchema
34
36
  });
35
37
  module.exports = __toCommonJS(Section_exports);
36
38
  var React = __toESM(require("react"));
37
- var import_jsx_runtime = require("react/jsx-runtime");
38
- var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
39
- var import_react_desc_prop_types = require("../../react-desc-prop-types.js");
40
- var import_styled = require("../styled.js");
41
- var import_exported_related = require("../../exported-related/index.js");
42
- var import_useGetGlobalsAndXStyledProps = require("../useGetGlobalsAndXStyledProps.js");
43
- const Section = (props) => {
44
- const propsWithDefault = (0, import_ds_props_helpers.useMemoMergePropsWithDefault)(props, import_react_desc_prop_types.defaultSectionProps);
45
- (0, import_ds_props_helpers.useValidateTypescriptPropTypes)(propsWithDefault, import_react_desc_prop_types.SectionMenuItemPropTypes, `${import_exported_related.DSMenuItemName}Section`);
46
- const { label, wrapperStyles, innerRef, render: Render } = props;
47
- const { globalAttributes, xStyledProps } = (0, import_useGetGlobalsAndXStyledProps.useGetGlobalsAndXStyledProps)(propsWithDefault);
48
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
49
- import_styled.StyledSectionWrapper,
50
- {
51
- style: wrapperStyles,
52
- innerRef,
53
- role: "option",
54
- ...globalAttributes,
55
- ...xStyledProps,
56
- children: Render !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Render, { ...props }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styled.StyledGroupLabel, { children: label })
57
- }
58
- );
59
- };
60
- Section.displayName = "DSSectionMenuItem";
61
- const SectionWithSchema = (0, import_ds_props_helpers.describe)(Section);
62
- SectionWithSchema.propTypes = import_react_desc_prop_types.SectionMenuItemPropTypes;
39
+ var import_ds_menu_items_section = require("@elliemae/ds-menu-items-section");
63
40
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/components/Section/index.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["import React from 'react';\nimport { describe, useMemoMergePropsWithDefault, useValidateTypescriptPropTypes } from '@elliemae/ds-props-helpers';\nimport type { DSMenuItemT } from '../../react-desc-prop-types.js';\nimport { defaultSectionProps, SectionMenuItemPropTypes } from '../../react-desc-prop-types.js';\nimport { StyledSectionWrapper, StyledGroupLabel } from '../styled.js';\nimport { DSMenuItemName } from '../../exported-related/index.js';\nimport { useGetGlobalsAndXStyledProps } from '../useGetGlobalsAndXStyledProps.js';\n\nconst Section: React.ComponentType<DSMenuItemT.SectionProps> = (props) => {\n const propsWithDefault = useMemoMergePropsWithDefault(props, defaultSectionProps);\n\n useValidateTypescriptPropTypes(propsWithDefault, SectionMenuItemPropTypes, `${DSMenuItemName}Section`);\n\n const { label, wrapperStyles, innerRef, render: Render } = props;\n\n const { globalAttributes, xStyledProps } = useGetGlobalsAndXStyledProps(propsWithDefault);\n\n return (\n <StyledSectionWrapper\n style={wrapperStyles}\n innerRef={innerRef}\n role=\"option\"\n {...globalAttributes}\n {...xStyledProps}\n >\n {Render !== undefined ? <Render {...props} /> : <StyledGroupLabel>{label}</StyledGroupLabel>}\n </StyledSectionWrapper>\n );\n};\n\nSection.displayName = 'DSSectionMenuItem';\nconst SectionWithSchema = describe(Section);\nSectionWithSchema.propTypes = SectionMenuItemPropTypes;\n\nexport { Section, Section as DSSectionMenuItem, SectionWithSchema };\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADyBO;AAxB9B,8BAAuF;AAEvF,mCAA8D;AAC9D,oBAAuD;AACvD,8BAA+B;AAC/B,0CAA6C;AAE7C,MAAM,UAAyD,CAAC,UAAU;AACxE,QAAM,uBAAmB,sDAA6B,OAAO,gDAAmB;AAEhF,8DAA+B,kBAAkB,uDAA0B,GAAG,+CAAuB;AAErG,QAAM,EAAE,OAAO,eAAe,UAAU,QAAQ,OAAO,IAAI;AAE3D,QAAM,EAAE,kBAAkB,aAAa,QAAI,kEAA6B,gBAAgB;AAExF,SACE;AAAA,IAAC;AAAA;AAAA,MACC,OAAO;AAAA,MACP;AAAA,MACA,MAAK;AAAA,MACJ,GAAG;AAAA,MACH,GAAG;AAAA,MAEH,qBAAW,SAAY,4CAAC,UAAQ,GAAG,OAAO,IAAK,4CAAC,kCAAkB,iBAAM;AAAA;AAAA,EAC3E;AAEJ;AAEA,QAAQ,cAAc;AACtB,MAAM,wBAAoB,kCAAS,OAAO;AAC1C,kBAAkB,YAAY;",
4
+ "sourcesContent": ["export {\n // legacy exports where renaming like this, keeping around for backwards compatibility.\n DSMenuItemsSection as Section,\n DSMenuItemsSection as DSSectionMenuItem,\n DSMenuItemsSectionWithSchema as SectionWithSchema,\n // the \"current\" correctly named export\n DSMenuItemsSection,\n DSMenuItemsSectionWithSchema,\n type DSMenuItemsSectionT,\n} from '@elliemae/ds-menu-items-section';\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,mCASO;",
6
6
  "names": []
7
7
  }
@@ -28,39 +28,13 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
29
  var Separator_exports = {};
30
30
  __export(Separator_exports, {
31
- DSSeparatorMenuItem: () => Separator,
32
- Separator: () => Separator,
33
- SeparatorWithSchema: () => SeparatorWithSchema
31
+ DSMenuItemsSeparator: () => import_ds_menu_items_separator.DSMenuItemsSeparator,
32
+ DSMenuItemsSeparatorWithSchema: () => import_ds_menu_items_separator.DSMenuItemsSeparatorWithSchema,
33
+ DSSeparatorMenuItem: () => import_ds_menu_items_separator.DSMenuItemsSeparator,
34
+ Separator: () => import_ds_menu_items_separator.DSMenuItemsSeparator,
35
+ SeparatorWithSchema: () => import_ds_menu_items_separator.DSMenuItemsSeparatorWithSchema
34
36
  });
35
37
  module.exports = __toCommonJS(Separator_exports);
36
38
  var React = __toESM(require("react"));
37
- var import_jsx_runtime = require("react/jsx-runtime");
38
- var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
39
- var import_react_desc_prop_types = require("../../react-desc-prop-types.js");
40
- var import_styled = require("../styled.js");
41
- var import_exported_related = require("../../exported-related/index.js");
42
- const Separator = (props) => {
43
- const propsWithDefault = (0, import_ds_props_helpers.useMemoMergePropsWithDefault)(props, import_react_desc_prop_types.defaultSeparatorProps);
44
- (0, import_ds_props_helpers.useValidateTypescriptPropTypes)(propsWithDefault, import_react_desc_prop_types.MenuItemPropTypes, `${import_exported_related.DSMenuItemName}Separator`);
45
- const { wrapperStyles, innerRef, render: Render } = propsWithDefault;
46
- const sourceGlobalProps = propsWithDefault.original ?? propsWithDefault;
47
- const globalAttributes = (0, import_ds_props_helpers.useGetGlobalAttributes)(sourceGlobalProps);
48
- const xStyledProps = (0, import_ds_props_helpers.useGetXstyledProps)(sourceGlobalProps);
49
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
50
- import_styled.StyledSeparatorWrapper,
51
- {
52
- style: wrapperStyles,
53
- innerRef,
54
- "aria-label": "separator",
55
- ...globalAttributes,
56
- ...xStyledProps,
57
- role: "option",
58
- tabIndex: void 0,
59
- children: Render ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Render, { ...props }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styled.StyledSeparator, {})
60
- }
61
- );
62
- };
63
- Separator.displayName = `${import_exported_related.DSMenuItemName}Separator`;
64
- const SeparatorWithSchema = (0, import_ds_props_helpers.describe)(Separator);
65
- SeparatorWithSchema.propTypes = import_react_desc_prop_types.MenuItemPropTypes;
39
+ var import_ds_menu_items_separator = require("@elliemae/ds-menu-items-separator");
66
40
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/components/Separator/index.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["import React from 'react';\nimport {\n describe,\n useMemoMergePropsWithDefault,\n useGetGlobalAttributes,\n useGetXstyledProps,\n useValidateTypescriptPropTypes,\n} from '@elliemae/ds-props-helpers';\nimport type { DSMenuItemT } from '../../react-desc-prop-types.js';\nimport { MenuItemPropTypes, defaultSeparatorProps } from '../../react-desc-prop-types.js';\nimport { StyledSeparatorWrapper, StyledSeparator } from '../styled.js';\nimport { DSMenuItemName } from '../../exported-related/index.js';\n\nconst Separator: React.ComponentType<DSMenuItemT.SeparatorProps> = (props) => {\n const propsWithDefault = useMemoMergePropsWithDefault(props, defaultSeparatorProps);\n\n useValidateTypescriptPropTypes(propsWithDefault, MenuItemPropTypes, `${DSMenuItemName}Separator`);\n const { wrapperStyles, innerRef, render: Render } = propsWithDefault;\n\n // menuitems use original prop from dsdropdownmenu or dscombobox\n const sourceGlobalProps = propsWithDefault.original ?? propsWithDefault;\n\n const globalAttributes = useGetGlobalAttributes(sourceGlobalProps);\n\n const xStyledProps = useGetXstyledProps(sourceGlobalProps);\n return (\n <StyledSeparatorWrapper\n style={wrapperStyles}\n innerRef={innerRef}\n aria-label=\"separator\"\n {...globalAttributes}\n {...xStyledProps}\n role=\"option\"\n tabIndex={undefined}\n >\n {Render ? <Render {...props} /> : <StyledSeparator />}\n </StyledSeparatorWrapper>\n );\n};\n\nSeparator.displayName = `${DSMenuItemName}Separator`;\nconst SeparatorWithSchema = describe(Separator);\nSeparatorWithSchema.propTypes = MenuItemPropTypes;\n\nexport { Separator, Separator as DSSeparatorMenuItem, SeparatorWithSchema };\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADmCP;AAlChB,8BAMO;AAEP,mCAAyD;AACzD,oBAAwD;AACxD,8BAA+B;AAE/B,MAAM,YAA6D,CAAC,UAAU;AAC5E,QAAM,uBAAmB,sDAA6B,OAAO,kDAAqB;AAElF,8DAA+B,kBAAkB,gDAAmB,GAAG,iDAAyB;AAChG,QAAM,EAAE,eAAe,UAAU,QAAQ,OAAO,IAAI;AAGpD,QAAM,oBAAoB,iBAAiB,YAAY;AAEvD,QAAM,uBAAmB,gDAAuB,iBAAiB;AAEjE,QAAM,mBAAe,4CAAmB,iBAAiB;AACzD,SACE;AAAA,IAAC;AAAA;AAAA,MACC,OAAO;AAAA,MACP;AAAA,MACA,cAAW;AAAA,MACV,GAAG;AAAA,MACH,GAAG;AAAA,MACJ,MAAK;AAAA,MACL,UAAU;AAAA,MAET,mBAAS,4CAAC,UAAQ,GAAG,OAAO,IAAK,4CAAC,iCAAgB;AAAA;AAAA,EACrD;AAEJ;AAEA,UAAU,cAAc,GAAG;AAC3B,MAAM,0BAAsB,kCAAS,SAAS;AAC9C,oBAAoB,YAAY;",
4
+ "sourcesContent": ["export {\n // legacy exports where renaming like this, keeping around for backwards compatibility.\n DSMenuItemsSeparator as Separator,\n DSMenuItemsSeparator as DSSeparatorMenuItem,\n DSMenuItemsSeparatorWithSchema as SeparatorWithSchema,\n // the \"current\" correctly named export\n DSMenuItemsSeparator,\n DSMenuItemsSeparatorWithSchema,\n type DSMenuItemsSeparatorT,\n} from '@elliemae/ds-menu-items-separator';\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,qCASO;",
6
6
  "names": []
7
7
  }
@@ -28,91 +28,13 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
29
  var SingleMenuItem_exports = {};
30
30
  __export(SingleMenuItem_exports, {
31
- DSSingleMenuItem: () => SingleMenuItem,
32
- SingleMenuItem: () => SingleMenuItem,
33
- SingleMenuItemWithSchema: () => SingleMenuItemWithSchema
31
+ DSMenuItemsSingle: () => import_ds_menu_items_single.DSMenuItemsSingle,
32
+ DSMenuItemsSingleWithSchema: () => import_ds_menu_items_single.DSMenuItemsSingleWithSchema,
33
+ DSSingleMenuItem: () => import_ds_menu_items_single.DSMenuItemsSingle,
34
+ SingleMenuItem: () => import_ds_menu_items_single.DSMenuItemsSingle,
35
+ SingleMenuItemWithSchema: () => import_ds_menu_items_single.DSMenuItemsSingleWithSchema
34
36
  });
35
37
  module.exports = __toCommonJS(SingleMenuItem_exports);
36
38
  var React = __toESM(require("react"));
37
- var import_jsx_runtime = require("react/jsx-runtime");
38
- var import_react = __toESM(require("react"));
39
- var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
40
- var import_ds_icons = require("@elliemae/ds-icons");
41
- var import_useGetGlobalsAndXStyledProps = require("../useGetGlobalsAndXStyledProps.js");
42
- var import_react_desc_prop_types = require("../../react-desc-prop-types.js");
43
- var import_styled = require("../styled.js");
44
- var import_exported_related = require("../../exported-related/index.js");
45
- const SingleMenuItem = (props) => {
46
- const propsWithDefault = (0, import_ds_props_helpers.useMemoMergePropsWithDefault)(props, import_react_desc_prop_types.defaultSingleProps);
47
- (0, import_ds_props_helpers.useValidateTypescriptPropTypes)(propsWithDefault, import_react_desc_prop_types.SingleMenuItemPropTypes, `${import_exported_related.DSMenuItemName}Single`);
48
- const {
49
- dsId,
50
- label,
51
- secondaryLabel,
52
- isSelected,
53
- onClick,
54
- isActive,
55
- innerRef,
56
- onMouseDown,
57
- onMouseEnter,
58
- onMouseLeave,
59
- wrapperStyles,
60
- render: Render,
61
- dataTestid,
62
- disabled
63
- } = propsWithDefault;
64
- const onMouseDownHandler = import_react.default.useCallback(
65
- (e) => {
66
- if (disabled)
67
- return;
68
- onMouseDown?.(e);
69
- },
70
- [disabled, onMouseDown]
71
- );
72
- const { globalAttributes, xStyledProps } = (0, import_useGetGlobalsAndXStyledProps.useGetGlobalsAndXStyledProps)(
73
- propsWithDefault,
74
- props.original ? {
75
- onClick,
76
- onMouseDown: onMouseDownHandler,
77
- onMouseEnter,
78
- onMouseLeave
79
- } : void 0
80
- );
81
- const gridLayout = (0, import_react.useMemo)(() => {
82
- const cols = ["16px", "auto"];
83
- if (secondaryLabel)
84
- cols.push("min-content");
85
- return cols;
86
- }, [secondaryLabel]);
87
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
88
- import_styled.StyledGlobalMenuItemWrapper,
89
- {
90
- "aria-selected": isSelected,
91
- id: dsId,
92
- role: "option",
93
- isActive,
94
- isSelected,
95
- onClick,
96
- innerRef,
97
- onMouseDown: onMouseDownHandler,
98
- onMouseEnter,
99
- onMouseLeave,
100
- className: isActive ? "ds-list-item-active" : "",
101
- style: wrapperStyles,
102
- "data-testid": dataTestid,
103
- disabled,
104
- "data-type": "single",
105
- ...globalAttributes,
106
- ...xStyledProps,
107
- children: Render !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Render, { ...props }) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_styled.StyledContentWrapper, { cols: gridLayout, minHeight: "16px", gutter: "xxs", alignItems: "center", children: [
108
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: isSelected && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_icons.Checkmark, { size: "s", color: ["brand-primary", "600"] }) }),
109
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styled.StyleMenuItemLabel, { children: label }),
110
- secondaryLabel !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styled.StyleMenuItemSecondaryLabel, { children: secondaryLabel })
111
- ] })
112
- }
113
- );
114
- };
115
- SingleMenuItem.displayName = "DSSingleMenuItem";
116
- const SingleMenuItemWithSchema = (0, import_ds_props_helpers.describe)(SingleMenuItem);
117
- SingleMenuItemWithSchema.propTypes = import_react_desc_prop_types.SingleMenuItemPropTypes;
39
+ var import_ds_menu_items_single = require("@elliemae/ds-menu-items-single");
118
40
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/components/SingleMenuItem/index.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["import React, { useMemo } from 'react';\nimport { describe, useMemoMergePropsWithDefault, useValidateTypescriptPropTypes } from '@elliemae/ds-props-helpers';\nimport { Checkmark } from '@elliemae/ds-icons';\nimport { useGetGlobalsAndXStyledProps } from '../useGetGlobalsAndXStyledProps.js';\nimport type { DSMenuItemT } from '../../react-desc-prop-types.js';\nimport { defaultSingleProps, SingleMenuItemPropTypes } from '../../react-desc-prop-types.js';\nimport {\n StyledContentWrapper,\n StyledGlobalMenuItemWrapper,\n StyleMenuItemLabel,\n StyleMenuItemSecondaryLabel,\n} from '../styled.js';\nimport { DSMenuItemName } from '../../exported-related/index.js';\n\nconst SingleMenuItem: React.ComponentType<DSMenuItemT.SingleProps> = (props) => {\n const propsWithDefault = useMemoMergePropsWithDefault(props, defaultSingleProps);\n\n useValidateTypescriptPropTypes(propsWithDefault, SingleMenuItemPropTypes, `${DSMenuItemName}Single`);\n const {\n dsId,\n label,\n secondaryLabel,\n isSelected,\n onClick,\n isActive,\n innerRef,\n onMouseDown,\n onMouseEnter,\n onMouseLeave,\n wrapperStyles,\n render: Render,\n dataTestid,\n disabled,\n } = propsWithDefault;\n\n const onMouseDownHandler = React.useCallback(\n (e: React.MouseEvent) => {\n if (disabled) return;\n onMouseDown?.(e);\n },\n [disabled, onMouseDown],\n );\n\n const { globalAttributes, xStyledProps } = useGetGlobalsAndXStyledProps(\n propsWithDefault,\n props.original\n ? {\n onClick: onClick,\n onMouseDown: onMouseDownHandler,\n onMouseEnter: onMouseEnter,\n onMouseLeave: onMouseLeave,\n }\n : undefined,\n );\n\n const gridLayout = useMemo(() => {\n const cols = ['16px', 'auto'];\n if (secondaryLabel) cols.push('min-content');\n return cols;\n }, [secondaryLabel]);\n\n return (\n <StyledGlobalMenuItemWrapper\n aria-selected={isSelected}\n id={dsId}\n role=\"option\"\n isActive={isActive}\n isSelected={isSelected}\n onClick={onClick}\n innerRef={innerRef}\n onMouseDown={onMouseDownHandler}\n onMouseEnter={onMouseEnter}\n onMouseLeave={onMouseLeave}\n className={isActive ? 'ds-list-item-active' : ''}\n style={wrapperStyles}\n data-testid={dataTestid}\n disabled={disabled}\n data-type=\"single\"\n {...globalAttributes}\n {...xStyledProps}\n >\n {Render !== undefined ? (\n <Render {...props} />\n ) : (\n <StyledContentWrapper cols={gridLayout} minHeight=\"16px\" gutter=\"xxs\" alignItems=\"center\">\n <div>{isSelected && <Checkmark size=\"s\" color={['brand-primary', '600']} />}</div>\n <StyleMenuItemLabel>{label}</StyleMenuItemLabel>\n {secondaryLabel !== undefined && <StyleMenuItemSecondaryLabel>{secondaryLabel}</StyleMenuItemSecondaryLabel>}\n </StyledContentWrapper>\n )}\n </StyledGlobalMenuItemWrapper>\n );\n};\n\nSingleMenuItem.displayName = 'DSSingleMenuItem';\nconst SingleMenuItemWithSchema = describe(SingleMenuItem);\nSingleMenuItemWithSchema.propTypes = SingleMenuItemPropTypes;\n\nexport { SingleMenuItem, SingleMenuItem as DSSingleMenuItem, SingleMenuItemWithSchema };\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADkFf;AAlFR,mBAA+B;AAC/B,8BAAuF;AACvF,sBAA0B;AAC1B,0CAA6C;AAE7C,mCAA4D;AAC5D,oBAKO;AACP,8BAA+B;AAE/B,MAAM,iBAA+D,CAAC,UAAU;AAC9E,QAAM,uBAAmB,sDAA6B,OAAO,+CAAkB;AAE/E,8DAA+B,kBAAkB,sDAAyB,GAAG,8CAAsB;AACnG,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,QAAQ;AAAA,IACR;AAAA,IACA;AAAA,EACF,IAAI;AAEJ,QAAM,qBAAqB,aAAAA,QAAM;AAAA,IAC/B,CAAC,MAAwB;AACvB,UAAI;AAAU;AACd,oBAAc,CAAC;AAAA,IACjB;AAAA,IACA,CAAC,UAAU,WAAW;AAAA,EACxB;AAEA,QAAM,EAAE,kBAAkB,aAAa,QAAI;AAAA,IACzC;AAAA,IACA,MAAM,WACF;AAAA,MACE;AAAA,MACA,aAAa;AAAA,MACb;AAAA,MACA;AAAA,IACF,IACA;AAAA,EACN;AAEA,QAAM,iBAAa,sBAAQ,MAAM;AAC/B,UAAM,OAAO,CAAC,QAAQ,MAAM;AAC5B,QAAI;AAAgB,WAAK,KAAK,aAAa;AAC3C,WAAO;AAAA,EACT,GAAG,CAAC,cAAc,CAAC;AAEnB,SACE;AAAA,IAAC;AAAA;AAAA,MACC,iBAAe;AAAA,MACf,IAAI;AAAA,MACJ,MAAK;AAAA,MACL;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA,aAAa;AAAA,MACb;AAAA,MACA;AAAA,MACA,WAAW,WAAW,wBAAwB;AAAA,MAC9C,OAAO;AAAA,MACP,eAAa;AAAA,MACb;AAAA,MACA,aAAU;AAAA,MACT,GAAG;AAAA,MACH,GAAG;AAAA,MAEH,qBAAW,SACV,4CAAC,UAAQ,GAAG,OAAO,IAEnB,6CAAC,sCAAqB,MAAM,YAAY,WAAU,QAAO,QAAO,OAAM,YAAW,UAC/E;AAAA,oDAAC,SAAK,wBAAc,4CAAC,6BAAU,MAAK,KAAI,OAAO,CAAC,iBAAiB,KAAK,GAAG,GAAG;AAAA,QAC5E,4CAAC,oCAAoB,iBAAM;AAAA,QAC1B,mBAAmB,UAAa,4CAAC,6CAA6B,0BAAe;AAAA,SAChF;AAAA;AAAA,EAEJ;AAEJ;AAEA,eAAe,cAAc;AAC7B,MAAM,+BAA2B,kCAAS,cAAc;AACxD,yBAAyB,YAAY;",
6
- "names": ["React"]
4
+ "sourcesContent": ["export {\n // legacy exports where renaming like this, keeping around for backwards compatibility.\n DSMenuItemsSingle as SingleMenuItem,\n DSMenuItemsSingle as DSSingleMenuItem,\n DSMenuItemsSingleWithSchema as SingleMenuItemWithSchema,\n // the \"current\" correctly named export\n DSMenuItemsSingle,\n DSMenuItemsSingleWithSchema,\n type DSMenuItemsSingleT,\n} from '@elliemae/ds-menu-items-single';\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,kCASO;",
6
+ "names": []
7
7
  }
@@ -28,131 +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 SingleWithSubmenuItem_exports = {};
30
30
  __export(SingleWithSubmenuItem_exports, {
31
- SingleWithSubmenuItem: () => SingleWithSubmenuItem,
32
- SingleWithSubmenuItemWithSchema: () => SingleWithSubmenuItemWithSchema
31
+ DSMenuItemsSingleWithSubmenu: () => import_ds_menu_items_single_with_submenu.DSMenuItemsSingleWithSubmenu,
32
+ DSMenuItemsSingleWithSubmenuWithSchema: () => import_ds_menu_items_single_with_submenu.DSMenuItemsSingleWithSubmenuWithSchema,
33
+ SingleWithSubmenuItem: () => import_ds_menu_items_single_with_submenu.DSMenuItemsSingleWithSubmenu,
34
+ SingleWithSubmenuItemWithSchema: () => import_ds_menu_items_single_with_submenu.DSMenuItemsSingleWithSubmenuWithSchema
33
35
  });
34
36
  module.exports = __toCommonJS(SingleWithSubmenuItem_exports);
35
37
  var React = __toESM(require("react"));
36
- var import_jsx_runtime = require("react/jsx-runtime");
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 SingleWithSubmenuItem = (props) => {
46
- const propsWithDefault = (0, import_ds_props_helpers.useMemoMergePropsWithDefault)(
47
- props,
48
- import_react_desc_prop_types.defaultSingleWithSubmenuProps
49
- );
50
- (0, import_ds_props_helpers.useValidateTypescriptPropTypes)(propsWithDefault, import_react_desc_prop_types.itemProps, `${import_exported_related.DSMenuItemName}SingleWithSubmenu`);
51
- const {
52
- dsId,
53
- label,
54
- secondaryLabel,
55
- isActive,
56
- disabled,
57
- onClick,
58
- isSelected,
59
- isSubmenuOpened,
60
- rightAddon,
61
- innerRef,
62
- wrapperStyles,
63
- render: Render,
64
- Dropdown,
65
- dropdownProps: {
66
- options,
67
- openedSubmenus,
68
- onSubmenuToggle,
69
- selectedOptions,
70
- onKeyDown,
71
- onOptionClick,
72
- onClickOutside,
73
- minWidth,
74
- maxHeight
75
- }
76
- } = propsWithDefault;
77
- const [delayedIsOpened, setDelayedIsOpened] = (0, import_react.useState)(false);
78
- const { globalAttributes, xStyledProps } = (0, import_useGetGlobalsAndXStyledProps.useGetGlobalsAndXStyledProps)(propsWithDefault);
79
- const { minWidth: customMinWidth, ...restXStyled } = xStyledProps;
80
- (0, import_react.useEffect)(() => {
81
- setTimeout(() => setDelayedIsOpened(isSubmenuOpened));
82
- }, [isSubmenuOpened]);
83
- const { onMouseEnterHandler, onMouseLeaveHandler, onEllipsisClick } = (0, import_useGetSubmenuHandlers.useGetSubmenuHandlers)(propsWithDefault);
84
- const gridLayout = (0, import_react.useMemo)(() => {
85
- const cols = ["16px", "auto"];
86
- if (secondaryLabel)
87
- cols.push("min-content");
88
- cols.push("min-content");
89
- return cols;
90
- }, [secondaryLabel]);
91
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
92
- Dropdown,
93
- {
94
- isOpened: delayedIsOpened,
95
- options: options ?? [],
96
- onOptionClick,
97
- startPlacementPreference: "right-start",
98
- placementOrderPreference: ["right-start", "right-end", "left-start", "left-end"],
99
- selectedOptions,
100
- openedSubmenus,
101
- onSubmenuToggle,
102
- onKeyDown,
103
- onClickOutside,
104
- customOffset: [-4, 1],
105
- onMouseEnter: onMouseEnterHandler,
106
- onMouseLeave: onMouseLeaveHandler,
107
- wrapperStyles: { ...wrapperStyles, w: "100%" },
108
- minWidth,
109
- maxHeight,
110
- "data-popover-label": label,
111
- as: "li",
112
- role: "option",
113
- "aria-selected": isSubmenuOpened,
114
- "aria-describedby": `dropdownmenu-submenu-${dsId}`,
115
- id: dsId,
116
- ...globalAttributes,
117
- ...restXStyled,
118
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
119
- import_styled.StyledGlobalMenuItemWrapper,
120
- {
121
- pr: 0,
122
- onClick: !disabled ? onClick : void 0,
123
- isSelected: isSubmenuOpened,
124
- disabled,
125
- isActive,
126
- onMouseEnter: onMouseEnterHandler,
127
- onMouseLeave: onMouseLeaveHandler,
128
- as: "div",
129
- innerRef,
130
- "data-type": "single-with-submenu",
131
- children: [
132
- 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: [
133
- isSelected ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_icons.Checkmark, { size: "s", color: disabled ? ["neutral", "500"] : ["brand-primary", "600"] }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {}),
134
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styled.StyleMenuItemLabel, { children: label }),
135
- secondaryLabel !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styled.StyleMenuItemSecondaryLabel, { children: secondaryLabel }),
136
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_styled.StyledIconContainer, { children: [
137
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styled.StyledVerticalSeparator, {}),
138
- rightAddon === "ellipsis" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styled.StyledEllipsisButton, { tabIndex: -1, onClick: onEllipsisClick, disabled, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
139
- import_ds_icons.MoreOptionsVert,
140
- {
141
- className: "ds-dropdown-menu-v2-more-options",
142
- color: disabled ? ["neutral", "500"] : ["brand-primary", "600"],
143
- size: "s"
144
- }
145
- ) }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_icons.ChevronRight, { color: disabled ? ["neutral", "500"] : ["brand-primary", "600"], size: "s" })
146
- ] })
147
- ] }),
148
- /* @__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" })
149
- ]
150
- }
151
- )
152
- }
153
- );
154
- };
155
- SingleWithSubmenuItem.displayName = `${import_exported_related.DSMenuItemName}SingleWithSubmenu`;
156
- const SingleWithSubmenuItemWithSchema = (0, import_ds_props_helpers.describe)(SingleWithSubmenuItem);
157
- SingleWithSubmenuItemWithSchema.propTypes = import_react_desc_prop_types.itemProps;
38
+ var import_ds_menu_items_single_with_submenu = require("@elliemae/ds-menu-items-single-with-submenu");
158
39
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/components/SingleWithSubmenuItem/index.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["/* eslint-disable no-unused-vars */\n/* eslint-disable max-lines */\nimport React, { useEffect, useState, useMemo } from 'react';\nimport { MoreOptionsVert, ChevronRight, Checkmark } from '@elliemae/ds-icons';\nimport { describe, useMemoMergePropsWithDefault, useValidateTypescriptPropTypes } from '@elliemae/ds-props-helpers';\nimport type { DSMenuItemT } from '../../react-desc-prop-types.js';\nimport { defaultSingleWithSubmenuProps, itemProps } from '../../react-desc-prop-types.js';\nimport {\n StyleMenuItemLabel,\n StyleMenuItemSecondaryLabel,\n StyledIconContainer,\n StyledEllipsisButton,\n StyledGlobalMenuItemWrapper,\n StyledVerticalSeparator,\n StyledContentWrapper,\n} from '../styled.js';\nimport { useGetSubmenuHandlers } from './useGetSubmenuHandlers.js';\nimport { DSMenuItemName } from '../../exported-related/index.js';\nimport { useGetGlobalsAndXStyledProps } from '../useGetGlobalsAndXStyledProps.js';\n\nconst SingleWithSubmenuItem: React.ComponentType<DSMenuItemT.SingleWithSubmenuProps> = (props) => {\n const propsWithDefault = useMemoMergePropsWithDefault<Required<DSMenuItemT.SingleWithSubmenuProps>>(\n props,\n defaultSingleWithSubmenuProps,\n );\n\n useValidateTypescriptPropTypes(propsWithDefault, itemProps, `${DSMenuItemName}SingleWithSubmenu`);\n\n const {\n dsId,\n label,\n secondaryLabel,\n isActive,\n disabled,\n onClick,\n isSelected,\n isSubmenuOpened,\n rightAddon,\n innerRef,\n wrapperStyles,\n render: Render,\n Dropdown,\n dropdownProps: {\n options,\n openedSubmenus,\n onSubmenuToggle,\n selectedOptions,\n onKeyDown,\n onOptionClick,\n onClickOutside,\n minWidth,\n maxHeight,\n },\n } = propsWithDefault;\n\n // If we don't delay the opening of the poppers, the position will not be placed correctly\n // That why we delay it for the next render using the useEffect hook\n // TODO -- @carusox move this to utilities as a hook\n const [delayedIsOpened, setDelayedIsOpened] = useState(false);\n\n const { globalAttributes, xStyledProps } = useGetGlobalsAndXStyledProps(propsWithDefault);\n const { minWidth: customMinWidth, ...restXStyled } = xStyledProps;\n\n useEffect(() => {\n setTimeout(() => setDelayedIsOpened(isSubmenuOpened));\n }, [isSubmenuOpened]);\n\n const { onMouseEnterHandler, onMouseLeaveHandler, onEllipsisClick } = useGetSubmenuHandlers(propsWithDefault);\n\n const gridLayout = useMemo(() => {\n const cols = ['16px', 'auto'];\n if (secondaryLabel) cols.push('min-content');\n cols.push('min-content');\n return cols;\n }, [secondaryLabel]);\n\n return (\n <Dropdown\n isOpened={delayedIsOpened}\n options={options ?? []}\n onOptionClick={onOptionClick}\n startPlacementPreference=\"right-start\"\n placementOrderPreference={['right-start', 'right-end', 'left-start', 'left-end']}\n selectedOptions={selectedOptions}\n openedSubmenus={openedSubmenus}\n onSubmenuToggle={onSubmenuToggle}\n onKeyDown={onKeyDown}\n onClickOutside={onClickOutside}\n customOffset={[-4, 1]}\n onMouseEnter={onMouseEnterHandler}\n onMouseLeave={onMouseLeaveHandler}\n wrapperStyles={{ ...wrapperStyles, w: '100%' }}\n minWidth={minWidth}\n maxHeight={maxHeight}\n data-popover-label={label}\n as=\"li\"\n role=\"option\"\n aria-selected={isSubmenuOpened}\n aria-describedby={`dropdownmenu-submenu-${dsId}`}\n id={dsId}\n {...globalAttributes}\n {...restXStyled}\n >\n <StyledGlobalMenuItemWrapper\n pr={0}\n onClick={!disabled ? onClick : undefined}\n isSelected={isSubmenuOpened}\n disabled={disabled}\n isActive={isActive}\n onMouseEnter={onMouseEnterHandler}\n onMouseLeave={onMouseLeaveHandler}\n as={'div' as keyof JSX.IntrinsicElements}\n innerRef={innerRef}\n data-type=\"single-with-submenu\"\n >\n {Render !== undefined ? (\n <Render {...propsWithDefault} />\n ) : (\n <StyledContentWrapper cols={gridLayout} gutter=\"xxs\" alignItems=\"center\">\n {isSelected ? (\n <Checkmark size=\"s\" color={disabled ? ['neutral', '500'] : ['brand-primary', '600']} />\n ) : (\n <div />\n )}\n <StyleMenuItemLabel>{label}</StyleMenuItemLabel>\n {secondaryLabel !== undefined && (\n <StyleMenuItemSecondaryLabel>{secondaryLabel}</StyleMenuItemSecondaryLabel>\n )}\n <StyledIconContainer>\n <StyledVerticalSeparator />\n {rightAddon === 'ellipsis' ? (\n <StyledEllipsisButton tabIndex={-1} onClick={onEllipsisClick} disabled={disabled}>\n <MoreOptionsVert\n className=\"ds-dropdown-menu-v2-more-options\"\n color={disabled ? ['neutral', '500'] : ['brand-primary', '600']}\n size=\"s\"\n />\n </StyledEllipsisButton>\n ) : (\n <ChevronRight color={disabled ? ['neutral', '500'] : ['brand-primary', '600']} size=\"s\" />\n )}\n </StyledIconContainer>\n </StyledContentWrapper>\n )}\n <span id={`dropdownmenu-submenu-${dsId}`} style={{ display: 'none' }}>\n submenu, to open this submenu press the Right Arrow key\n </span>\n </StyledGlobalMenuItemWrapper>\n </Dropdown>\n );\n};\n\nSingleWithSubmenuItem.displayName = `${DSMenuItemName}SingleWithSubmenu`;\nconst SingleWithSubmenuItemWithSchema = describe(SingleWithSubmenuItem);\nSingleWithSubmenuItemWithSchema.propTypes = itemProps;\n\nexport { SingleWithSubmenuItem, SingleWithSubmenuItemWithSchema };\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADoHb;AAlHV,mBAAoD;AACpD,sBAAyD;AACzD,8BAAuF;AAEvF,mCAAyD;AACzD,oBAQO;AACP,mCAAsC;AACtC,8BAA+B;AAC/B,0CAA6C;AAE7C,MAAM,wBAAiF,CAAC,UAAU;AAChG,QAAM,uBAAmB;AAAA,IACvB;AAAA,IACA;AAAA,EACF;AAEA,8DAA+B,kBAAkB,wCAAW,GAAG,yDAAiC;AAEhG,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,QAAQ;AAAA,IACR;AAAA,IACA,eAAe;AAAA,MACb;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACF;AAAA,EACF,IAAI;AAKJ,QAAM,CAAC,iBAAiB,kBAAkB,QAAI,uBAAS,KAAK;AAE5D,QAAM,EAAE,kBAAkB,aAAa,QAAI,kEAA6B,gBAAgB;AACxF,QAAM,EAAE,UAAU,gBAAgB,GAAG,YAAY,IAAI;AAErD,8BAAU,MAAM;AACd,eAAW,MAAM,mBAAmB,eAAe,CAAC;AAAA,EACtD,GAAG,CAAC,eAAe,CAAC;AAEpB,QAAM,EAAE,qBAAqB,qBAAqB,gBAAgB,QAAI,oDAAsB,gBAAgB;AAE5G,QAAM,iBAAa,sBAAQ,MAAM;AAC/B,UAAM,OAAO,CAAC,QAAQ,MAAM;AAC5B,QAAI;AAAgB,WAAK,KAAK,aAAa;AAC3C,SAAK,KAAK,aAAa;AACvB,WAAO;AAAA,EACT,GAAG,CAAC,cAAc,CAAC;AAEnB,SACE;AAAA,IAAC;AAAA;AAAA,MACC,UAAU;AAAA,MACV,SAAS,WAAW,CAAC;AAAA,MACrB;AAAA,MACA,0BAAyB;AAAA,MACzB,0BAA0B,CAAC,eAAe,aAAa,cAAc,UAAU;AAAA,MAC/E;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA,cAAc,CAAC,IAAI,CAAC;AAAA,MACpB,cAAc;AAAA,MACd,cAAc;AAAA,MACd,eAAe,EAAE,GAAG,eAAe,GAAG,OAAO;AAAA,MAC7C;AAAA,MACA;AAAA,MACA,sBAAoB;AAAA,MACpB,IAAG;AAAA,MACH,MAAK;AAAA,MACL,iBAAe;AAAA,MACf,oBAAkB,wBAAwB;AAAA,MAC1C,IAAI;AAAA,MACH,GAAG;AAAA,MACH,GAAG;AAAA,MAEJ;AAAA,QAAC;AAAA;AAAA,UACC,IAAI;AAAA,UACJ,SAAS,CAAC,WAAW,UAAU;AAAA,UAC/B,YAAY;AAAA,UACZ;AAAA,UACA;AAAA,UACA,cAAc;AAAA,UACd,cAAc;AAAA,UACd,IAAI;AAAA,UACJ;AAAA,UACA,aAAU;AAAA,UAET;AAAA,uBAAW,SACV,4CAAC,UAAQ,GAAG,kBAAkB,IAE9B,6CAAC,sCAAqB,MAAM,YAAY,QAAO,OAAM,YAAW,UAC7D;AAAA,2BACC,4CAAC,6BAAU,MAAK,KAAI,OAAO,WAAW,CAAC,WAAW,KAAK,IAAI,CAAC,iBAAiB,KAAK,GAAG,IAErF,4CAAC,SAAI;AAAA,cAEP,4CAAC,oCAAoB,iBAAM;AAAA,cAC1B,mBAAmB,UAClB,4CAAC,6CAA6B,0BAAe;AAAA,cAE/C,6CAAC,qCACC;AAAA,4DAAC,yCAAwB;AAAA,gBACxB,eAAe,aACd,4CAAC,sCAAqB,UAAU,IAAI,SAAS,iBAAiB,UAC5D;AAAA,kBAAC;AAAA;AAAA,oBACC,WAAU;AAAA,oBACV,OAAO,WAAW,CAAC,WAAW,KAAK,IAAI,CAAC,iBAAiB,KAAK;AAAA,oBAC9D,MAAK;AAAA;AAAA,gBACP,GACF,IAEA,4CAAC,gCAAa,OAAO,WAAW,CAAC,WAAW,KAAK,IAAI,CAAC,iBAAiB,KAAK,GAAG,MAAK,KAAI;AAAA,iBAE5F;AAAA,eACF;AAAA,YAEF,4CAAC,UAAK,IAAI,wBAAwB,QAAQ,OAAO,EAAE,SAAS,OAAO,GAAG,qEAEtE;AAAA;AAAA;AAAA,MACF;AAAA;AAAA,EACF;AAEJ;AAEA,sBAAsB,cAAc,GAAG;AACvC,MAAM,sCAAkC,kCAAS,qBAAqB;AACtE,gCAAgC,YAAY;",
4
+ "sourcesContent": ["export {\n // legacy exports where renaming like this, keeping around for backwards compatibility.\n DSMenuItemsSingleWithSubmenu as SingleWithSubmenuItem,\n DSMenuItemsSingleWithSubmenuWithSchema as SingleWithSubmenuItemWithSchema,\n // the \"current\" correctly named export\n DSMenuItemsSingleWithSubmenu,\n DSMenuItemsSingleWithSubmenuWithSchema,\n type DSMenuItemsSingleWithSubmenuT,\n} from '@elliemae/ds-menu-items-single-with-submenu';\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,+CAQO;",
6
6
  "names": []
7
7
  }