@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.
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
@@ -1,192 +0,0 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
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
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var styled_exports = {};
30
- __export(styled_exports, {
31
- StyleMenuItemLabel: () => StyleMenuItemLabel,
32
- StyleMenuItemSecondaryLabel: () => StyleMenuItemSecondaryLabel,
33
- StyledContentWrapper: () => StyledContentWrapper,
34
- StyledEllipsisButton: () => StyledEllipsisButton,
35
- StyledGlobalMenuItemWrapper: () => StyledGlobalMenuItemWrapper,
36
- StyledGroupLabel: () => StyledGroupLabel,
37
- StyledIconContainer: () => StyledIconContainer,
38
- StyledItemContent: () => StyledItemContent,
39
- StyledSectionWrapper: () => StyledSectionWrapper,
40
- StyledSeparator: () => StyledSeparator,
41
- StyledSeparatorWrapper: () => StyledSeparatorWrapper,
42
- StyledVerticalSeparator: () => StyledVerticalSeparator
43
- });
44
- module.exports = __toCommonJS(styled_exports);
45
- var React = __toESM(require("react"));
46
- var import_ds_system = require("@elliemae/ds-system");
47
- var import_ds_grid = require("@elliemae/ds-grid");
48
- var import_exported_related = require("../exported-related/index.js");
49
- const borderOutside = () => import_ds_system.css`
50
- :after {
51
- display: block;
52
- content: ' ';
53
- position: absolute;
54
- top: 0;
55
- left: 0;
56
- right: 0;
57
- bottom: 0;
58
- border: 1px solid ${({ theme }) => theme.colors.brand[500]};
59
- pointer-events: none;
60
- z-index: 7;
61
- }
62
- `;
63
- const disabledOption = () => import_ds_system.css`
64
- color: ${({ theme }) => theme.colors.neutral[500]};
65
- background-color: ${({ theme }) => theme.colors.neutral["000"]};
66
- cursor: not-allowed;
67
- * {
68
- cursor: not-allowed;
69
- }
70
- `;
71
- const StyledGlobalMenuItemWrapper = (0, import_ds_system.styled)("li", {
72
- name: import_exported_related.DSMenuItemName,
73
- slot: import_exported_related.DSMenuItemSlots.MENU_ITEM_WRAPPER
74
- })`
75
- cursor: pointer;
76
- min-height: 32px;
77
-
78
- padding-left: 16px;
79
- padding-right: 16px;
80
- display: grid;
81
- align-items: center;
82
- list-style: none;
83
- position: relative;
84
-
85
- ${(props) => {
86
- if (props.disabled)
87
- return disabledOption();
88
- if (props.isActive)
89
- return borderOutside();
90
- return "";
91
- }};
92
-
93
- background-color: ${(props) => props.isActive ? props.theme.colors.brand[200] : props.theme.colors.neutral["000"]};
94
-
95
- // focus style for standalone version
96
- &:focus {
97
- ${(props) => {
98
- if (props.disabled)
99
- return disabledOption();
100
- return borderOutside();
101
- }};
102
- outline: none;
103
- background-color: ${(props) => !props.disabled ? props.theme.colors.brand[200] : props.theme.colors.neutral["000"]};
104
- }
105
- &:hover {
106
- background-color: ${(props) => !props.disabled && props.theme.colors.brand[200]};
107
- }
108
- ${import_ds_system.xStyledCommonProps}
109
- `;
110
- const StyleMenuItemLabel = (0, import_ds_system.styled)("span", { name: import_exported_related.DSMenuItemName, slot: import_exported_related.DSMenuItemSlots.MENU_ITEM_LABEL })`
111
- padding: 8px 0;
112
- font-size: 13px;
113
- `;
114
- const StyleMenuItemSecondaryLabel = (0, import_ds_system.styled)("span", {
115
- name: import_exported_related.DSMenuItemName,
116
- slot: import_exported_related.DSMenuItemSlots.MENU_ITEM_SECONDARY_LABEL
117
- })`
118
- padding: 8px 0;
119
- font-size: 11px;
120
- font-style: italic;
121
- color: brand-800;
122
- `;
123
- const StyledIconContainer = (0, import_ds_system.styled)("div", { name: import_exported_related.DSMenuItemName, slot: import_exported_related.DSMenuItemSlots.MENU_ITEM_ICON })`
124
- width: 25px;
125
- height: 24px;
126
- display: grid;
127
- grid-template-columns: min-content auto;
128
- place-items: center;
129
- `;
130
- const StyledEllipsisButton = (0, import_ds_system.styled)("div", {
131
- name: import_exported_related.DSMenuItemName,
132
- slot: import_exported_related.DSMenuItemSlots.MENU_ITEM_ELLIPSIS_BUTTON
133
- })`
134
- position: relative;
135
- width: 100%;
136
- height: 100%;
137
- display: grid;
138
- place-items: center;
139
- background: transparent;
140
- :active {
141
- ${(props) => props.disabled ? "" : borderOutside()}
142
- }
143
- `;
144
- const StyledItemContent = (0, import_ds_system.styled)("div", { name: import_exported_related.DSMenuItemName, slot: import_exported_related.DSMenuItemSlots.MENU_ITEM_CONTENT })`
145
- display: flex;
146
- width: 100%;
147
- margin: 8px 0px;
148
- `;
149
- const StyledSeparator = (0, import_ds_system.styled)("hr", { name: import_exported_related.DSMenuItemName, slot: import_exported_related.DSMenuItemSlots.MENU_ITEM_SEPARATOR })`
150
- border: 0;
151
- border-top: 1px solid #697489;
152
- margin: 4px 0px;
153
- padding: 0;
154
- `;
155
- const StyledSeparatorWrapper = (0, import_ds_system.styled)("li", {
156
- name: import_exported_related.DSMenuItemName,
157
- slot: import_exported_related.DSMenuItemSlots.MENU_ITEM_SEPARATOR_WRAPPER
158
- })`
159
- list-style: none;
160
- padding: 0px 16px;
161
-
162
- ${import_ds_system.xStyledCommonProps}
163
- `;
164
- const StyledGroupLabel = (0, import_ds_system.styled)("span", { name: import_exported_related.DSMenuItemName, slot: import_exported_related.DSMenuItemSlots.MENU_ITEM_GROUP_LABEL })`
165
- font-size: 13px;
166
- color: neutral-500;
167
- `;
168
- const StyledSectionWrapper = (0, import_ds_system.styled)("li", {
169
- name: import_exported_related.DSMenuItemName,
170
- slot: import_exported_related.DSMenuItemSlots.MENU_ITEM_SECTION_WRAPPER
171
- })`
172
- list-style: none;
173
- padding: 0px 16px;
174
- height: 24px;
175
- display: flex;
176
- align-items: center;
177
-
178
- ${import_ds_system.xStyledCommonProps}
179
- `;
180
- const StyledVerticalSeparator = (0, import_ds_system.styled)("div", {
181
- name: import_exported_related.DSMenuItemName,
182
- slot: import_exported_related.DSMenuItemSlots.MENU_ITEM_VERTICAL_SEPARATOR
183
- })`
184
- width: 1px;
185
- height: 18px;
186
- background-color: neutral-300;
187
- `;
188
- const StyledContentWrapper = (0, import_ds_system.styled)(import_ds_grid.Grid, {
189
- name: import_exported_related.DSMenuItemName,
190
- slot: import_exported_related.DSMenuItemSlots.MENU_ITEM_CONTENT_WRAPPER
191
- })``;
192
- //# sourceMappingURL=styled.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/components/styled.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["import type { LayoutProps, SizingProps, PositionProps, SpaceProps } from '@elliemae/ds-system';\nimport { styled, css, xStyledCommonProps } from '@elliemae/ds-system';\nimport { Grid } from '@elliemae/ds-grid';\nimport { DSMenuItemName, DSMenuItemSlots } from '../exported-related/index.js';\n\nconst borderOutside = () => css`\n :after {\n display: block;\n content: ' ';\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n border: 1px solid ${({ theme }) => theme.colors.brand[500]};\n pointer-events: none;\n z-index: 7;\n }\n`;\n\nconst disabledOption = () => css`\n color: ${({ theme }) => theme.colors.neutral[500]};\n background-color: ${({ theme }) => theme.colors.neutral['000']};\n cursor: not-allowed;\n * {\n cursor: not-allowed;\n }\n`;\n\ninterface StyledGlobalMenuItemWrapperT extends LayoutProps, SizingProps, PositionProps, SpaceProps {\n isSelected?: boolean;\n isActive?: boolean;\n disabled?: boolean;\n}\n\nexport const StyledGlobalMenuItemWrapper = styled('li', {\n name: DSMenuItemName,\n slot: DSMenuItemSlots.MENU_ITEM_WRAPPER,\n})<StyledGlobalMenuItemWrapperT>`\n cursor: pointer;\n min-height: 32px;\n\n padding-left: 16px;\n padding-right: 16px;\n display: grid;\n align-items: center;\n list-style: none;\n position: relative;\n\n ${(props) => {\n if (props.disabled) return disabledOption();\n if (props.isActive) return borderOutside();\n return '';\n }};\n\n background-color: ${(props) => (props.isActive ? props.theme.colors.brand[200] : props.theme.colors.neutral['000'])};\n\n // focus style for standalone version\n &:focus {\n ${(props) => {\n if (props.disabled) return disabledOption();\n return borderOutside();\n }};\n outline: none;\n background-color: ${(props) =>\n !props.disabled ? props.theme.colors.brand[200] : props.theme.colors.neutral['000']};\n }\n &:hover {\n background-color: ${(props) => !props.disabled && props.theme.colors.brand[200]};\n }\n ${xStyledCommonProps}\n`;\n\nexport const StyleMenuItemLabel = styled('span', { name: DSMenuItemName, slot: DSMenuItemSlots.MENU_ITEM_LABEL })`\n padding: 8px 0;\n font-size: 13px;\n`;\n\nexport const StyleMenuItemSecondaryLabel = styled('span', {\n name: DSMenuItemName,\n slot: DSMenuItemSlots.MENU_ITEM_SECONDARY_LABEL,\n})`\n padding: 8px 0;\n font-size: 11px;\n font-style: italic;\n color: brand-800;\n`;\n\nexport const StyledIconContainer = styled('div', { name: DSMenuItemName, slot: DSMenuItemSlots.MENU_ITEM_ICON })`\n width: 25px;\n height: 24px;\n display: grid;\n grid-template-columns: min-content auto;\n place-items: center;\n`;\n\nexport const StyledEllipsisButton = styled('div', {\n name: DSMenuItemName,\n slot: DSMenuItemSlots.MENU_ITEM_ELLIPSIS_BUTTON,\n})<{ disabled: boolean }>`\n position: relative;\n width: 100%;\n height: 100%;\n display: grid;\n place-items: center;\n background: transparent;\n :active {\n ${(props) => (props.disabled ? '' : borderOutside())}\n }\n`;\n\nexport const StyledItemContent = styled('div', { name: DSMenuItemName, slot: DSMenuItemSlots.MENU_ITEM_CONTENT })`\n display: flex;\n width: 100%;\n margin: 8px 0px;\n`;\n\nexport const StyledSeparator = styled('hr', { name: DSMenuItemName, slot: DSMenuItemSlots.MENU_ITEM_SEPARATOR })`\n border: 0;\n border-top: 1px solid #697489;\n margin: 4px 0px;\n padding: 0;\n`;\n\nexport const StyledSeparatorWrapper = styled('li', {\n name: DSMenuItemName,\n slot: DSMenuItemSlots.MENU_ITEM_SEPARATOR_WRAPPER,\n})`\n list-style: none;\n padding: 0px 16px;\n\n ${xStyledCommonProps}\n`;\n\nexport const StyledGroupLabel = styled('span', { name: DSMenuItemName, slot: DSMenuItemSlots.MENU_ITEM_GROUP_LABEL })`\n font-size: 13px;\n color: neutral-500;\n`;\n\nexport const StyledSectionWrapper = styled('li', {\n name: DSMenuItemName,\n slot: DSMenuItemSlots.MENU_ITEM_SECTION_WRAPPER,\n})`\n list-style: none;\n padding: 0px 16px;\n height: 24px;\n display: flex;\n align-items: center;\n\n ${xStyledCommonProps}\n`;\n\nexport const StyledVerticalSeparator = styled('div', {\n name: DSMenuItemName,\n slot: DSMenuItemSlots.MENU_ITEM_VERTICAL_SEPARATOR,\n})`\n width: 1px;\n height: 18px;\n background-color: neutral-300;\n`;\n\nexport const StyledContentWrapper = styled(Grid, {\n name: DSMenuItemName,\n slot: DSMenuItemSlots.MENU_ITEM_CONTENT_WRAPPER,\n})``;\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;ACAA,YAAuB;ADCvB,uBAAgD;AAChD,qBAAqB;AACrB,8BAAgD;AAEhD,MAAM,gBAAgB,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wBASJ,CAAC,EAAE,MAAM,MAAM,MAAM,OAAO,MAAM,GAAG;AAAA;AAAA;AAAA;AAAA;AAM7D,MAAM,iBAAiB,MAAM;AAAA,WAClB,CAAC,EAAE,MAAM,MAAM,MAAM,OAAO,QAAQ,GAAG;AAAA,sBAC5B,CAAC,EAAE,MAAM,MAAM,MAAM,OAAO,QAAQ,KAAK;AAAA;AAAA;AAAA;AAAA;AAAA;AAaxD,MAAM,kCAA8B,yBAAO,MAAM;AAAA,EACtD,MAAM;AAAA,EACN,MAAM,wCAAgB;AACxB,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAWG,CAAC,UAAU;AACX,MAAI,MAAM;AAAU,WAAO,eAAe;AAC1C,MAAI,MAAM;AAAU,WAAO,cAAc;AACzC,SAAO;AACT;AAAA;AAAA,sBAEoB,CAAC,UAAW,MAAM,WAAW,MAAM,MAAM,OAAO,MAAM,GAAG,IAAI,MAAM,MAAM,OAAO,QAAQ,KAAK;AAAA;AAAA;AAAA;AAAA,MAI7G,CAAC,UAAU;AACX,MAAI,MAAM;AAAU,WAAO,eAAe;AAC1C,SAAO,cAAc;AACvB;AAAA;AAAA,wBAEoB,CAAC,UACnB,CAAC,MAAM,WAAW,M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,wCAAgB;AACxB,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAOG;AAAA;AAGG,MAAM,8BAA0B,yBAAO,OAAO;AAAA,EACnD,MAAM;AAAA,EACN,MAAM,wCAAgB;AACxB,CAAC;AAAA;AAAA;AAAA;AAAA;AAMM,MAAM,2BAAuB,yBAAO,qBAAM;AAAA,EAC/C,MAAM;AAAA,EACN,MAAM,wCAAgB;AACxB,CAAC;",
6
- "names": []
7
- }
@@ -1,42 +0,0 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
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
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var useGetGlobalsAndXStyledProps_exports = {};
30
- __export(useGetGlobalsAndXStyledProps_exports, {
31
- useGetGlobalsAndXStyledProps: () => useGetGlobalsAndXStyledProps
32
- });
33
- module.exports = __toCommonJS(useGetGlobalsAndXStyledProps_exports);
34
- var React = __toESM(require("react"));
35
- var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
36
- const useGetGlobalsAndXStyledProps = (props, toMergeEvents) => {
37
- const sourceGlobalProps = props.original ?? props;
38
- const globalAttributes = (0, import_ds_props_helpers.useGetGlobalAttributes)(sourceGlobalProps, toMergeEvents);
39
- const xStyledProps = (0, import_ds_props_helpers.useGetXstyledProps)(sourceGlobalProps);
40
- return { globalAttributes, xStyledProps };
41
- };
42
- //# sourceMappingURL=useGetGlobalsAndXStyledProps.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/components/useGetGlobalsAndXStyledProps.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["import { useGetGlobalAttributes, useGetXstyledProps } from '@elliemae/ds-props-helpers';\nimport type { DSMenuItemT } from '../react-desc-prop-types.js';\n\nexport const useGetGlobalsAndXStyledProps = (\n props: DSMenuItemT.AllTypeItems,\n toMergeEvents?: Record<string, unknown>,\n) => {\n const sourceGlobalProps = props.original ?? props;\n\n const globalAttributes = useGetGlobalAttributes(sourceGlobalProps, toMergeEvents);\n const xStyledProps = useGetXstyledProps(sourceGlobalProps);\n\n return { globalAttributes, xStyledProps };\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,8BAA2D;AAGpD,MAAM,+BAA+B,CAC1C,OACA,kBACG;AACH,QAAM,oBAAoB,MAAM,YAAY;AAE5C,QAAM,uBAAmB,gDAAuB,mBAAmB,aAAa;AAChF,QAAM,mBAAe,4CAAmB,iBAAiB;AAEzD,SAAO,EAAE,kBAAkB,aAAa;AAC1C;",
6
- "names": []
7
- }
@@ -1,51 +0,0 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
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
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var constants_exports = {};
30
- __export(constants_exports, {
31
- DSMenuItemName: () => DSMenuItemName,
32
- DSMenuItemSlots: () => DSMenuItemSlots
33
- });
34
- module.exports = __toCommonJS(constants_exports);
35
- var React = __toESM(require("react"));
36
- const DSMenuItemName = "DSMenuItem";
37
- const DSMenuItemSlots = {
38
- MENU_ITEM_WRAPPER: "menu-item-wrapper",
39
- MENU_ITEM_LABEL: "menu-item-label",
40
- MENU_ITEM_SECONDARY_LABEL: "menu-item-secondary-label",
41
- MENU_ITEM_ICON: "menu-item-icon",
42
- MENU_ITEM_ELLIPSIS_BUTTON: "menu-item-ellipsis-button",
43
- MENU_ITEM_CONTENT: "menu-item-content",
44
- MENU_ITEM_SEPARATOR: "menu-item-separator",
45
- MENU_ITEM_SEPARATOR_WRAPPER: "menu-item-separator-wrapper",
46
- MENU_ITEM_GROUP_LABEL: "menu-item-group-label",
47
- MENU_ITEM_SECTION_WRAPPER: "menu-item-section-wrapper",
48
- MENU_ITEM_VERTICAL_SEPARATOR: "menu-item-vertical-separator",
49
- MENU_ITEM_CONTENT_WRAPPER: "menu-item-content-wrapper"
50
- };
51
- //# sourceMappingURL=constants.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/exported-related/constants.ts", "../../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["export const DSMenuItemName = 'DSMenuItem';\n\nexport const DSMenuItemSlots = {\n MENU_ITEM_WRAPPER: 'menu-item-wrapper',\n MENU_ITEM_LABEL: 'menu-item-label',\n MENU_ITEM_SECONDARY_LABEL: 'menu-item-secondary-label',\n MENU_ITEM_ICON: 'menu-item-icon',\n MENU_ITEM_ELLIPSIS_BUTTON: 'menu-item-ellipsis-button',\n MENU_ITEM_CONTENT: 'menu-item-content',\n MENU_ITEM_SEPARATOR: 'menu-item-separator',\n MENU_ITEM_SEPARATOR_WRAPPER: 'menu-item-separator-wrapper',\n MENU_ITEM_GROUP_LABEL: 'menu-item-group-label',\n MENU_ITEM_SECTION_WRAPPER: 'menu-item-section-wrapper',\n MENU_ITEM_VERTICAL_SEPARATOR: 'menu-item-vertical-separator',\n MENU_ITEM_CONTENT_WRAPPER: 'menu-item-content-wrapper',\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAhB,MAAM,iBAAiB;AAEvB,MAAM,kBAAkB;AAAA,EAC7B,mBAAmB;AAAA,EACnB,iBAAiB;AAAA,EACjB,2BAA2B;AAAA,EAC3B,gBAAgB;AAAA,EAChB,2BAA2B;AAAA,EAC3B,mBAAmB;AAAA,EACnB,qBAAqB;AAAA,EACrB,6BAA6B;AAAA,EAC7B,uBAAuB;AAAA,EACvB,2BAA2B;AAAA,EAC3B,8BAA8B;AAAA,EAC9B,2BAA2B;AAC7B;",
6
- "names": []
7
- }
@@ -1,169 +0,0 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
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
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var react_desc_prop_types_exports = {};
30
- __export(react_desc_prop_types_exports, {
31
- ActionMenuItemPropTypes: () => ActionMenuItemPropTypes,
32
- MenuItemPropTypes: () => MenuItemPropTypes,
33
- MultiMenuItemPropTypes: () => MultiMenuItemPropTypes,
34
- SectionMenuItemPropTypes: () => SectionMenuItemPropTypes,
35
- SingleMenuItemPropTypes: () => SingleMenuItemPropTypes,
36
- defaultActionProps: () => defaultActionProps,
37
- defaultCommonProps: () => defaultCommonProps,
38
- defaultMultiProps: () => defaultMultiProps,
39
- defaultSectionProps: () => defaultSectionProps,
40
- defaultSeparatorProps: () => defaultSeparatorProps,
41
- defaultSingleProps: () => defaultSingleProps,
42
- defaultSingleWithSubmenuProps: () => defaultSingleWithSubmenuProps,
43
- defaultSubmenuProps: () => defaultSubmenuProps,
44
- itemProps: () => itemProps
45
- });
46
- module.exports = __toCommonJS(react_desc_prop_types_exports);
47
- var React = __toESM(require("react"));
48
- var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
49
- const noop = () => null;
50
- const defaultCommonProps = {
51
- innerRef: noop,
52
- wrapperStyles: {}
53
- };
54
- const defaultActionProps = {
55
- ...defaultCommonProps,
56
- label: "",
57
- value: void 0,
58
- disabled: false,
59
- isActive: false,
60
- onClick: noop,
61
- optionsShouldHavePadding: false,
62
- tabIndex: 0
63
- };
64
- const defaultMultiProps = {
65
- ...defaultCommonProps,
66
- label: "",
67
- isActive: false,
68
- disabled: false,
69
- isSelected: false,
70
- onClick: noop,
71
- onMouseDown: noop,
72
- onMouseEnter: noop,
73
- onMouseLeave: noop,
74
- tabIndex: 0
75
- };
76
- const defaultSingleProps = {
77
- ...defaultCommonProps,
78
- label: "",
79
- isActive: false,
80
- disabled: false,
81
- isSelected: false,
82
- onClick: noop,
83
- onMouseDown: noop,
84
- onMouseEnter: noop,
85
- onMouseLeave: noop,
86
- dataTestid: "ds-menu-item",
87
- tabIndex: 0
88
- };
89
- const defaultSubmenuProps = {
90
- ...defaultCommonProps,
91
- label: "",
92
- isActive: false,
93
- disabled: false,
94
- isSubmenuOpened: false,
95
- onSubmenuOpen: noop,
96
- rightAddon: "chevron",
97
- optionsShouldHavePadding: false,
98
- Dropdown: noop,
99
- dropdownProps: {
100
- options: [],
101
- onSubmenuToggle: noop,
102
- openedSubmenus: {},
103
- selectedOptions: {},
104
- onKeyDown: noop,
105
- onOptionClick: noop,
106
- onClickOutside: noop,
107
- minWidth: "auto",
108
- maxHeight: "auto"
109
- }
110
- };
111
- const defaultSectionProps = {
112
- ...defaultCommonProps,
113
- label: ""
114
- };
115
- const defaultSeparatorProps = {
116
- ...defaultCommonProps
117
- };
118
- const defaultSingleWithSubmenuProps = {
119
- ...defaultSingleProps,
120
- ...defaultSubmenuProps
121
- };
122
- const itemProps = {
123
- ...import_ds_props_helpers.globalAttributesPropTypes,
124
- ...import_ds_props_helpers.xstyledPropTypes,
125
- dsId: import_ds_props_helpers.PropTypes.string,
126
- innerRef: import_ds_props_helpers.PropTypes.oneOfType([import_ds_props_helpers.PropTypes.func, import_ds_props_helpers.PropTypes.shape({ current: import_ds_props_helpers.PropTypes.any })]),
127
- wrapperStyles: import_ds_props_helpers.PropTypes.object,
128
- render: import_ds_props_helpers.PropTypes.func
129
- };
130
- const MenuItemPropTypes = {
131
- dsId: import_ds_props_helpers.PropTypes.string.description("The unique ID for the menu item.").isRequired,
132
- innerRef: import_ds_props_helpers.PropTypes.oneOfType([
133
- import_ds_props_helpers.PropTypes.shape({
134
- current: import_ds_props_helpers.PropTypes.node
135
- }),
136
- import_ds_props_helpers.PropTypes.func.description(
137
- " A ref object or callback function to access the underlying DOM element (HTMLLIElement) of the menu item."
138
- )
139
- ]),
140
- render: import_ds_props_helpers.PropTypes.func.description("A custom render function to render the content of the menu item.")
141
- };
142
- const SingleMenuItemPropTypes = {
143
- ...MenuItemPropTypes,
144
- label: import_ds_props_helpers.PropTypes.string.description("The label of the menu item."),
145
- secondaryLabel: import_ds_props_helpers.PropTypes.string.description("The secondary label of the menu item."),
146
- isActive: import_ds_props_helpers.PropTypes.bool.description("Whether the menu item is active."),
147
- disabled: import_ds_props_helpers.PropTypes.bool.description("Whether the menu item is disabled."),
148
- isSelected: import_ds_props_helpers.PropTypes.bool.description("Whether the menu item is selected.")
149
- };
150
- const MultiMenuItemPropTypes = {
151
- ...MenuItemPropTypes,
152
- label: import_ds_props_helpers.PropTypes.string.description("The label of the menu item."),
153
- secondaryLabel: import_ds_props_helpers.PropTypes.string.description("The secondary label of the menu item."),
154
- isActive: import_ds_props_helpers.PropTypes.bool.description("Whether the menu item is active."),
155
- disabled: import_ds_props_helpers.PropTypes.bool.description("Whether the menu item is disabled."),
156
- isSelected: import_ds_props_helpers.PropTypes.bool.description("Whether the menu item is selected.")
157
- };
158
- const ActionMenuItemPropTypes = {
159
- ...MenuItemPropTypes,
160
- label: import_ds_props_helpers.PropTypes.string.description("The label of the menu item."),
161
- value: import_ds_props_helpers.PropTypes.any.description("The value of the menu item."),
162
- disabled: import_ds_props_helpers.PropTypes.bool.description("Whether the menu item is disabled."),
163
- isActive: import_ds_props_helpers.PropTypes.bool.description("Whether the menu item is active.")
164
- };
165
- const SectionMenuItemPropTypes = {
166
- ...MenuItemPropTypes,
167
- label: import_ds_props_helpers.PropTypes.string.description("The label of the menu item.")
168
- };
169
- //# sourceMappingURL=react-desc-prop-types.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/react-desc-prop-types.ts", "../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["/* eslint-disable max-lines */\n/* eslint-disable @typescript-eslint/no-explicit-any */\nimport type { PropsWithChildren, WeakValidationMap } from 'react';\nimport type React from 'react';\nimport type { SizingProps } from '@elliemae/ds-system';\nimport { PropTypes, globalAttributesPropTypes, xstyledPropTypes } from '@elliemae/ds-props-helpers';\nexport namespace DSMenuItemT {\n export interface CommonProps<T = Record<string, unknown>> {\n dsId: string;\n innerRef?: React.RefObject<HTMLLIElement> | ((_ref: HTMLLIElement) => void);\n wrapperStyles?: Record<string, unknown>;\n render?: React.ComponentType<T>;\n original?: Record<string, unknown>;\n }\n\n export interface ActionProps extends CommonProps<ActionProps> {\n label?: string;\n secondaryLabel?: string;\n value?: unknown;\n disabled?: boolean;\n isActive?: boolean;\n onClick?: React.MouseEventHandler;\n optionsShouldHavePadding?: boolean;\n tabIndex: WCAGTabIndex;\n }\n\n export interface SkeletonProps extends CommonProps<ActionProps> {\n secondaryLabel?: string;\n isActive?: boolean;\n onClick?: React.MouseEventHandler;\n tabIndex?: WCAGTabIndex;\n }\n\n export interface MultiProps extends CommonProps<MultiProps> {\n label?: string;\n isActive?: boolean;\n disabled?: boolean;\n isSelected?: boolean;\n onClick?: React.MouseEventHandler;\n onKeyDown?: React.KeyboardEventHandler;\n onMouseDown?: React.MouseEventHandler;\n onMouseEnter?: React.MouseEventHandler;\n onMouseLeave?: React.MouseEventHandler;\n dataTestid?: string;\n tabIndex?: WCAGTabIndex;\n value?: unknown;\n }\n\n export interface SingleProps extends CommonProps<SingleProps> {\n label?: string;\n secondaryLabel?: string;\n isActive?: boolean;\n disabled?: boolean;\n isSelected?: boolean;\n onClick?: React.MouseEventHandler;\n onKeyDown?: React.KeyboardEventHandler;\n onMouseDown?: React.MouseEventHandler;\n onMouseEnter?: React.MouseEventHandler;\n onMouseLeave?: React.MouseEventHandler;\n dataTestid?: string;\n tabIndex?: number;\n value?: unknown;\n }\n\n export interface SubmenuProps extends CommonProps<SubmenuProps> {\n label?: string;\n secondaryLabel?: string;\n isActive?: boolean;\n disabled?: boolean;\n isSubmenuOpened?: boolean;\n onSubmenuOpen?: React.MouseEventHandler;\n onSubmenuClose?: React.MouseEventHandler;\n rightAddon?: 'ellipsis' | 'chevron';\n optionsShouldHavePadding?: boolean;\n onMouseEnter?: React.MouseEventHandler;\n onMouseLeave?: React.MouseEventHandler;\n onMouseDown?: React.MouseEventHandler;\n Dropdown: React.ComponentType<PropsWithChildren<SubmenuProps['dropdownProps']>>;\n dropdownProps?: {\n options: any[];\n onSubmenuToggle?: (\n nextOpenedSubmenus: Record<string, boolean>,\n submenu: any,\n e: React.MouseEvent | React.KeyboardEvent,\n ) => void;\n openedSubmenus?: Record<string, boolean>;\n selectedOptions?: Record<string, boolean>;\n onKeyDown?: React.KeyboardEventHandler;\n onOptionClick?: (\n nextSelectedOptions: Record<string, boolean>,\n clickedOption: any,\n e: React.MouseEvent | React.KeyboardEvent,\n ) => void;\n onClickOutside?: (e: MouseEvent | React.KeyboardEvent | TouchEvent) => void;\n minWidth?: SizingProps['minWidth'];\n maxHeight?: SizingProps['maxHeight'];\n [key: string]: unknown;\n };\n }\n\n export interface SectionProps extends CommonProps<SectionProps> {\n label?: string;\n }\n\n export type SeparatorProps = CommonProps<SeparatorProps>;\n\n export interface SingleWithSubmenuProps extends Omit<SingleProps, 'render'>, Omit<SubmenuProps, 'render'> {\n render?: React.ComponentType<SingleWithSubmenuProps>;\n }\n export type AllTypeItems = ActionProps | MultiProps | SingleProps | SubmenuProps | SectionProps | SeparatorProps;\n}\n\nconst noop = () => null;\n\nexport const defaultCommonProps: Partial<Omit<DSMenuItemT.CommonProps, 'render'>> = {\n innerRef: noop,\n wrapperStyles: {},\n};\n\nexport const defaultActionProps: Partial<DSMenuItemT.ActionProps> = {\n ...defaultCommonProps,\n label: '',\n value: undefined,\n disabled: false,\n isActive: false,\n onClick: noop,\n optionsShouldHavePadding: false,\n tabIndex: 0,\n};\n\nexport const defaultMultiProps: Partial<DSMenuItemT.MultiProps> = {\n ...defaultCommonProps,\n label: '',\n isActive: false,\n disabled: false,\n isSelected: false,\n onClick: noop,\n onMouseDown: noop,\n onMouseEnter: noop,\n onMouseLeave: noop,\n tabIndex: 0,\n};\n\nexport const defaultSingleProps: Partial<DSMenuItemT.SingleProps> = {\n ...defaultCommonProps,\n label: '',\n isActive: false,\n disabled: false,\n isSelected: false,\n onClick: noop,\n onMouseDown: noop,\n onMouseEnter: noop,\n onMouseLeave: noop,\n dataTestid: 'ds-menu-item',\n tabIndex: 0,\n};\n\nexport const defaultSubmenuProps: Partial<DSMenuItemT.SubmenuProps> = {\n ...defaultCommonProps,\n label: '',\n isActive: false,\n disabled: false,\n isSubmenuOpened: false,\n onSubmenuOpen: noop,\n rightAddon: 'chevron',\n optionsShouldHavePadding: false,\n Dropdown: noop,\n dropdownProps: {\n options: [],\n onSubmenuToggle: noop,\n openedSubmenus: {},\n selectedOptions: {},\n onKeyDown: noop,\n onOptionClick: noop,\n onClickOutside: noop,\n minWidth: 'auto',\n maxHeight: 'auto',\n },\n};\n\nexport const defaultSectionProps: Partial<DSMenuItemT.SectionProps> = {\n ...defaultCommonProps,\n label: '',\n};\n\nexport const defaultSeparatorProps: Partial<DSMenuItemT.SeparatorProps> = {\n ...defaultCommonProps,\n};\n\nexport const defaultSingleWithSubmenuProps: Partial<Omit<DSMenuItemT.SingleWithSubmenuProps, 'render'>> = {\n ...defaultSingleProps,\n ...defaultSubmenuProps,\n};\n\nexport const itemProps = {\n ...globalAttributesPropTypes,\n ...xstyledPropTypes,\n dsId: PropTypes.string,\n innerRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({ current: PropTypes.any })]),\n wrapperStyles: PropTypes.object,\n render: PropTypes.func,\n} as WeakValidationMap<unknown>;\n\nexport const MenuItemPropTypes = {\n dsId: PropTypes.string.description('The unique ID for the menu item.').isRequired,\n innerRef: PropTypes.oneOfType([\n PropTypes.shape({\n current: PropTypes.node,\n }),\n PropTypes.func.description(\n ' A ref object or callback function to access the underlying DOM element (HTMLLIElement) of the menu item.',\n ),\n ]),\n render: PropTypes.func.description('A custom render function to render the content of the menu item.'),\n} as WeakValidationMap<unknown>;\n\nexport const SingleMenuItemPropTypes = {\n ...MenuItemPropTypes,\n label: PropTypes.string.description('The label of the menu item.'),\n secondaryLabel: PropTypes.string.description('The secondary label of the menu item.'),\n isActive: PropTypes.bool.description('Whether the menu item is active.'),\n disabled: PropTypes.bool.description('Whether the menu item is disabled.'),\n isSelected: PropTypes.bool.description('Whether the menu item is selected.'),\n} as WeakValidationMap<unknown>;\n\nexport const MultiMenuItemPropTypes = {\n ...MenuItemPropTypes,\n label: PropTypes.string.description('The label of the menu item.'),\n secondaryLabel: PropTypes.string.description('The secondary label of the menu item.'),\n isActive: PropTypes.bool.description('Whether the menu item is active.'),\n disabled: PropTypes.bool.description('Whether the menu item is disabled.'),\n isSelected: PropTypes.bool.description('Whether the menu item is selected.'),\n} as WeakValidationMap<unknown>;\n\nexport const ActionMenuItemPropTypes = {\n ...MenuItemPropTypes,\n label: PropTypes.string.description('The label of the menu item.'),\n value: PropTypes.any.description('The value of the menu item.'),\n disabled: PropTypes.bool.description('Whether the menu item is disabled.'),\n isActive: PropTypes.bool.description('Whether the menu item is active.'),\n} as WeakValidationMap<unknown>;\n\nexport const SectionMenuItemPropTypes = {\n ...MenuItemPropTypes,\n label: PropTypes.string.description('The label of the menu item.'),\n} as WeakValidationMap<unknown>;\n", "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;ACAA,YAAuB;ADKvB,8BAAuE;AA2GvE,MAAM,OAAO,MAAM;AAEZ,MAAM,qBAAuE;AAAA,EAClF,UAAU;AAAA,EACV,eAAe,CAAC;AAClB;AAEO,MAAM,qBAAuD;AAAA,EAClE,GAAG;AAAA,EACH,OAAO;AAAA,EACP,OAAO;AAAA,EACP,UAAU;AAAA,EACV,UAAU;AAAA,EACV,SAAS;AAAA,EACT,0BAA0B;AAAA,EAC1B,UAAU;AACZ;AAEO,MAAM,oBAAqD;AAAA,EAChE,GAAG;AAAA,EACH,OAAO;AAAA,EACP,UAAU;AAAA,EACV,UAAU;AAAA,EACV,YAAY;AAAA,EACZ,SAAS;AAAA,EACT,aAAa;AAAA,EACb,cAAc;AAAA,EACd,cAAc;AAAA,EACd,UAAU;AACZ;AAEO,MAAM,qBAAuD;AAAA,EAClE,GAAG;AAAA,EACH,OAAO;AAAA,EACP,UAAU;AAAA,EACV,UAAU;AAAA,EACV,YAAY;AAAA,EACZ,SAAS;AAAA,EACT,aAAa;AAAA,EACb,cAAc;AAAA,EACd,cAAc;AAAA,EACd,YAAY;AAAA,EACZ,UAAU;AACZ;AAEO,MAAM,sBAAyD;AAAA,EACpE,GAAG;AAAA,EACH,OAAO;AAAA,EACP,UAAU;AAAA,EACV,UAAU;AAAA,EACV,i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,kCAAU,KAAK,YAAY,oCAAoC;AAC7E;AAEO,MAAM,yBAAyB;AAAA,EACpC,GAAG;AAAA,EACH,OAAO,kCAAU,OAAO,YAAY,6BAA6B;AAAA,EACjE,gBAAgB,kCAAU,OAAO,YAAY,uCAAuC;AAAA,EACpF,UAAU,kCAAU,KAAK,YAAY,kCAAkC;AAAA,EACvE,UAAU,kCAAU,KAAK,YAAY,oCAAoC;AAAA,EACzE,YAAY,kCAAU,KAAK,YAAY,oCAAoC;AAC7E;AAEO,MAAM,0BAA0B;AAAA,EACrC,GAAG;AAAA,EACH,OAAO,kCAAU,OAAO,YAAY,6BAA6B;AAAA,EACjE,OAAO,kCAAU,IAAI,YAAY,6BAA6B;AAAA,EAC9D,UAAU,kCAAU,KAAK,YAAY,oCAAoC;AAAA,EACzE,UAAU,kCAAU,KAAK,YAAY,kCAAkC;AACzE;AAEO,MAAM,2BAA2B;AAAA,EACtC,GAAG;AAAA,EACH,OAAO,kCAAU,OAAO,YAAY,6BAA6B;AACnE;",
6
- "names": []
7
- }
@@ -1,103 +0,0 @@
1
- import * as React from "react";
2
- import { jsx, jsxs } from "react/jsx-runtime";
3
- import React2, { useCallback, useMemo } from "react";
4
- import { styled, css } from "@elliemae/ds-system";
5
- import { ArrowheadDown, ArrowheadRight, Folder, FilePdf } from "@elliemae/ds-icons";
6
- import { DSButtonV2 } from "@elliemae/ds-button-v2";
7
- import { DSSeparatorV2 } from "@elliemae/ds-separator";
8
- import { DSTypography } from "@elliemae/ds-typography";
9
- import { Grid } from "@elliemae/ds-grid";
10
- import { DSControlledCheckbox } from "@elliemae/ds-form-checkbox";
11
- import { DSControlledRadio } from "@elliemae/ds-form-radio";
12
- const borderStyle = css`
13
- outline: 2px solid ${({ theme }) => theme.colors.brand["700"]};
14
- outline-offset: -2px;
15
- `;
16
- const MenuItemWrapper = styled(Grid)`
17
- height: 36px;
18
-
19
- ${({ isFocused }) => isFocused && borderStyle};
20
- &:hover {
21
- background-color: ${({ theme }) => theme.colors.brand["200"]};
22
- }
23
- `;
24
- const StyledButton = styled(DSButtonV2)`
25
- &:hover:not(:disabled) {
26
- background-color: transparent;
27
- }
28
- `;
29
- const TreeviewItem = (props) => {
30
- const { onCollapse, item, onSelect = () => {
31
- }, isSelected, multiple } = props;
32
- const cols = useMemo(() => {
33
- if (isSelected !== void 0) {
34
- return ["auto", "auto", "auto", "1fr"];
35
- }
36
- return ["auto", "auto", "1fr"];
37
- }, [isSelected]);
38
- const subItemsLength = useMemo(() => {
39
- if (item.subitems && item.subitems?.length > 0) {
40
- return item.subitems.length;
41
- }
42
- return 0;
43
- }, [item.subitems]);
44
- const expandableButton = useMemo(() => {
45
- if (subItemsLength > 0) {
46
- return /* @__PURE__ */ jsxs(Grid, { cols: ["auto", "auto"], alignItems: "center", children: [
47
- /* @__PURE__ */ jsx(
48
- StyledButton,
49
- {
50
- "aria-label": "Expand",
51
- buttonType: "icon",
52
- size: "s",
53
- onClick: () => {
54
- onCollapse(item.dsId);
55
- },
56
- children: item.collapsed === false ? /* @__PURE__ */ jsx(ArrowheadDown, { size: "s", color: ["brand-primary", "800"] }) : /* @__PURE__ */ jsx(ArrowheadRight, { size: "s", color: ["brand-primary", "800"] })
57
- }
58
- ),
59
- /* @__PURE__ */ jsx(Folder, { color: ["brand-primary", "700"] })
60
- ] });
61
- }
62
- return /* @__PURE__ */ jsx(Grid, { alignItems: "center", children: /* @__PURE__ */ jsx(FilePdf, { color: ["brand-primary", "700"] }) });
63
- }, [item.collapsed, item.dsId, onCollapse, subItemsLength]);
64
- const SelectComponent = React2.useMemo(() => {
65
- if (multiple) {
66
- return DSControlledCheckbox;
67
- }
68
- return DSControlledRadio;
69
- }, [multiple]);
70
- const handleOnSelect = useCallback(() => {
71
- onSelect(item.dsId);
72
- }, [item.dsId, onSelect]);
73
- const [isFocused, setIsFocused] = React2.useState(false);
74
- return /* @__PURE__ */ jsx(MenuItemWrapper, { px: "xxs", isFocused, children: /* @__PURE__ */ jsxs(Grid, { cols, marginLeft: item.depth * 24, gutter: "xxs2", alignItems: "center", children: [
75
- isSelected !== void 0 && /* @__PURE__ */ jsx(
76
- SelectComponent,
77
- {
78
- onFocus: () => setIsFocused(true),
79
- onBlur: () => setIsFocused(false),
80
- checked: isSelected,
81
- onChange: handleOnSelect,
82
- "aria-label": "Select",
83
- value: item.dsId
84
- }
85
- ),
86
- expandableButton,
87
- /* @__PURE__ */ jsx(Grid, { alignItems: "flex-end", children: /* @__PURE__ */ jsxs(DSTypography, { variant: "b1", id: `${item.dsId}-text`, children: [
88
- "Test ",
89
- item.dsId
90
- ] }) }),
91
- subItemsLength > 0 && /* @__PURE__ */ jsxs(Grid, { cols: ["min-content", "auto"], gutter: "xxs", children: [
92
- /* @__PURE__ */ jsx(Grid, { alignItems: "center", children: /* @__PURE__ */ jsx(DSSeparatorV2, { isVertical: true, height: "80%" }) }),
93
- /* @__PURE__ */ jsx(Grid, { alignItems: "flex-end", children: /* @__PURE__ */ jsxs(DSTypography, { variant: "b1", color: "neutral-500", children: [
94
- subItemsLength,
95
- " Items"
96
- ] }) })
97
- ] })
98
- ] }) });
99
- };
100
- export {
101
- TreeviewItem
102
- };
103
- //# sourceMappingURL=TempTreeviewItem.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/TempTreeviewItem.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable arrow-body-style */\n/* eslint-disable max-lines */\n/* eslint-disable react/no-array-index-key */\nimport React, { useCallback, useMemo } from 'react';\nimport { styled, css } from '@elliemae/ds-system';\nimport { ArrowheadDown, ArrowheadRight, Folder, FilePdf } from '@elliemae/ds-icons';\nimport { DSButtonV2 } from '@elliemae/ds-button-v2';\nimport { DSSeparatorV2 } from '@elliemae/ds-separator';\nimport { DSTypography } from '@elliemae/ds-typography';\nimport { Grid } from '@elliemae/ds-grid';\nimport { DSControlledCheckbox } from '@elliemae/ds-form-checkbox';\nimport { DSControlledRadio } from '@elliemae/ds-form-radio';\n\nconst borderStyle = css`\n outline: 2px solid ${({ theme }) => theme.colors.brand['700']};\n outline-offset: -2px;\n`;\nconst MenuItemWrapper = styled(Grid)<{ isFocused: boolean }>`\n height: 36px;\n\n ${({ isFocused }) => isFocused && borderStyle};\n &:hover {\n background-color: ${({ theme }) => theme.colors.brand['200']};\n }\n`;\n\nconst StyledButton = styled(DSButtonV2)`\n &:hover:not(:disabled) {\n background-color: transparent;\n }\n`;\n\ninterface ItemT {\n dsId: string;\n collapsed?: boolean;\n depth: number;\n subitems: ItemT[] | null;\n}\ninterface TreeviewItemProps {\n onCollapse: (dsId: string) => void;\n item: ItemT;\n onSelect?: (dsId: string) => void;\n isSelected?: boolean;\n multiple?: boolean;\n}\n\nexport const TreeviewItem: React.ComponentType<TreeviewItemProps> = (props) => {\n const { onCollapse, item, onSelect = () => {}, isSelected, multiple } = props;\n const cols = useMemo(() => {\n if (isSelected !== undefined) {\n return ['auto', 'auto', 'auto', '1fr'];\n }\n return ['auto', 'auto', '1fr'];\n }, [isSelected]);\n\n const subItemsLength = useMemo(() => {\n if (item.subitems && item.subitems?.length > 0) {\n return item.subitems.length;\n }\n return 0;\n }, [item.subitems]);\n const expandableButton = useMemo(() => {\n if (subItemsLength > 0) {\n return (\n <Grid cols={['auto', 'auto']} alignItems=\"center\">\n <StyledButton\n aria-label=\"Expand\"\n buttonType=\"icon\"\n size=\"s\"\n onClick={() => {\n onCollapse(item.dsId);\n }}\n >\n {item.collapsed === false ? (\n <ArrowheadDown size=\"s\" color={['brand-primary', '800']} />\n ) : (\n <ArrowheadRight size=\"s\" color={['brand-primary', '800']} />\n )}\n </StyledButton>\n <Folder color={['brand-primary', '700']} />\n </Grid>\n );\n }\n return (\n <Grid alignItems=\"center\">\n <FilePdf color={['brand-primary', '700']} />\n </Grid>\n );\n }, [item.collapsed, item.dsId, onCollapse, subItemsLength]);\n\n const SelectComponent = React.useMemo(() => {\n if (multiple) {\n return DSControlledCheckbox;\n }\n return DSControlledRadio;\n }, [multiple]);\n const handleOnSelect = useCallback(() => {\n onSelect(item.dsId);\n }, [item.dsId, onSelect]);\n const [isFocused, setIsFocused] = React.useState(false);\n return (\n <MenuItemWrapper px=\"xxs\" isFocused={isFocused}>\n <Grid cols={cols} marginLeft={item.depth * 24} gutter=\"xxs2\" alignItems=\"center\">\n {isSelected !== undefined && (\n <SelectComponent\n onFocus={() => setIsFocused(true)}\n onBlur={() => setIsFocused(false)}\n checked={isSelected}\n onChange={handleOnSelect}\n aria-label=\"Select\"\n value={item.dsId}\n />\n )}\n {expandableButton}\n <Grid alignItems=\"flex-end\">\n <DSTypography variant=\"b1\" id={`${item.dsId}-text`}>\n Test {item.dsId}\n </DSTypography>\n </Grid>\n {subItemsLength > 0 && (\n <Grid cols={['min-content', 'auto']} gutter=\"xxs\">\n <Grid alignItems=\"center\">\n <DSSeparatorV2 isVertical height=\"80%\" />\n </Grid>\n <Grid alignItems=\"flex-end\">\n <DSTypography variant=\"b1\" color=\"neutral-500\">\n {subItemsLength} Items\n </DSTypography>\n </Grid>\n </Grid>\n )}\n </Grid>\n </MenuItemWrapper>\n );\n};\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACgEf,SAUM,KAVN;AA7DR,OAAOA,UAAS,aAAa,eAAe;AAC5C,SAAS,QAAQ,WAAW;AAC5B,SAAS,eAAe,gBAAgB,QAAQ,eAAe;AAC/D,SAAS,kBAAkB;AAC3B,SAAS,qBAAqB;AAC9B,SAAS,oBAAoB;AAC7B,SAAS,YAAY;AACrB,SAAS,4BAA4B;AACrC,SAAS,yBAAyB;AAElC,MAAM,cAAc;AAAA,uBACG,CAAC,EAAE,MAAM,MAAM,MAAM,OAAO,MAAM,KAAK;AAAA;AAAA;AAG9D,MAAM,kBAAkB,OAAO,IAAI;AAAA;AAAA;AAAA,IAG/B,CAAC,EAAE,UAAU,MAAM,aAAa;AAAA;AAAA,wBAEZ,CAAC,EAAE,MAAM,MAAM,MAAM,OAAO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