@elliemae/ds-menu-items-commons 3.27.0-next.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,51 @@
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=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/constants/index.ts", "../../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["// this package is about exposing common constants for the menu items components\n// this is where we solve the problem of avoiding breaking changes after splitting the DSMenuItems package into sub-packages\n// for this reason the values of the constants are not following the pattern ( they are not using the name of the component as prefix)\n// not following the patterns assure we don't break the existing code that was using the constants from the DSMenuItems package.\n// yes, this means that the values are repeating the 'menu-item-' prefix, but this is the price to pay to avoid breaking changes.\nexport const DSMenuItemName = 'DSMenuItem';\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} as const;\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADKhB,MAAM,iBAAiB;AACvB,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
+ }
@@ -0,0 +1,53 @@
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 src_exports = {};
30
+ __export(src_exports, {
31
+ DSMenuItemName: () => import_constants.DSMenuItemName,
32
+ DSMenuItemSlots: () => import_constants.DSMenuItemSlots,
33
+ DSMenuItemsCommonsDefaultProps: () => import_react_desc_prop_types.DSMenuItemsCommonsDefaultProps,
34
+ DSMenuItemsCommonsPropTypes: () => import_react_desc_prop_types.DSMenuItemsCommonsPropTypes,
35
+ StyleMenuItemLabel: () => import_styled.StyleMenuItemLabel,
36
+ StyleMenuItemSecondaryLabel: () => import_styled.StyleMenuItemSecondaryLabel,
37
+ StyledContentWrapper: () => import_styled.StyledContentWrapper,
38
+ StyledEllipsisButton: () => import_styled.StyledEllipsisButton,
39
+ StyledGlobalMenuItemWrapper: () => import_styled.StyledGlobalMenuItemWrapper,
40
+ StyledGroupLabel: () => import_styled.StyledGroupLabel,
41
+ StyledIconContainer: () => import_styled.StyledIconContainer,
42
+ StyledItemContent: () => import_styled.StyledItemContent,
43
+ StyledSectionWrapper: () => import_styled.StyledSectionWrapper,
44
+ StyledSeparator: () => import_styled.StyledSeparator,
45
+ StyledSeparatorWrapper: () => import_styled.StyledSeparatorWrapper,
46
+ StyledVerticalSeparator: () => import_styled.StyledVerticalSeparator
47
+ });
48
+ module.exports = __toCommonJS(src_exports);
49
+ var React = __toESM(require("react"));
50
+ var import_react_desc_prop_types = require("./react-desc-prop-types.js");
51
+ var import_constants = require("./constants/index.js");
52
+ var import_styled = require("./styled.js");
53
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/index.ts", "../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["// this is a workaround to typescript error TS2742\n// https://github.com/microsoft/TypeScript/issues/47663\nimport type {} from '@xstyled/system';\nimport type {} from '@xstyled/util';\nexport {\n type DSMenuItemsCommonsT,\n DSMenuItemsCommonsPropTypes,\n DSMenuItemsCommonsDefaultProps,\n} from './react-desc-prop-types.js';\nexport { DSMenuItemName, DSMenuItemSlots } from './constants/index.js';\n\nexport {\n StyledGlobalMenuItemWrapper,\n StyleMenuItemLabel,\n StyleMenuItemSecondaryLabel,\n StyledIconContainer,\n StyledEllipsisButton,\n StyledItemContent,\n StyledSeparator,\n StyledSeparatorWrapper,\n StyledGroupLabel,\n StyledSectionWrapper,\n StyledVerticalSeparator,\n StyledContentWrapper,\n} from './styled.js';\n\n// this and related `ds-menu-` components are NOT meant to be polymorphic\n// the plan for the `ds-menu-` components is for them to be following the OOP inheritance model instead\n// check \"WhatIsGoingOn.md\" for more details.\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADIvB,mCAIO;AACP,uBAAgD;AAEhD,oBAaO;",
6
+ "names": []
7
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "type": "commonjs",
3
+ "sideEffects": [
4
+ "*.css",
5
+ "*.scss"
6
+ ]
7
+ }
@@ -0,0 +1,60 @@
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
+ DSMenuItemsCommonsDefaultProps: () => DSMenuItemsCommonsDefaultProps,
32
+ DSMenuItemsCommonsPropTypes: () => DSMenuItemsCommonsPropTypes,
33
+ DSMenuItemsCommonsPropTypesSchema: () => DSMenuItemsCommonsPropTypesSchema
34
+ });
35
+ module.exports = __toCommonJS(react_desc_prop_types_exports);
36
+ var React = __toESM(require("react"));
37
+ var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
38
+ const DSMenuItemsCommonsDefaultProps = {
39
+ innerRef: () => {
40
+ },
41
+ wrapperStyles: {}
42
+ };
43
+ const DSMenuItemsCommonsPropTypes = {
44
+ dsId: import_ds_props_helpers.PropTypes.string.description(
45
+ "unique identifier that MUST NOT be repeated to ensure all functionalities works as expected"
46
+ ).isRequired,
47
+ wrapperStyles: import_ds_props_helpers.PropTypes.object.description("Styles to be applied to the wrapper element.").defaultValue(DSMenuItemsCommonsDefaultProps.wrapperStyles),
48
+ render: import_ds_props_helpers.PropTypes.func.description("A React component that can be used to render the menu item.").signature("React.ComponentType"),
49
+ innerRef: import_ds_props_helpers.PropTypes.oneOfType([
50
+ import_ds_props_helpers.PropTypes.shape({
51
+ current: import_ds_props_helpers.PropTypes.node
52
+ }),
53
+ import_ds_props_helpers.PropTypes.func.description(
54
+ " A ref object or callback function to access the main underlying DOM element of the menu item."
55
+ )
56
+ ]).defaultValue(`(() => {})`),
57
+ original: import_ds_props_helpers.PropTypes.object.description("")
58
+ };
59
+ const DSMenuItemsCommonsPropTypesSchema = DSMenuItemsCommonsPropTypes;
60
+ //# sourceMappingURL=react-desc-prop-types.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/react-desc-prop-types.ts", "../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["/* eslint-disable @typescript-eslint/no-redundant-type-constituents */\n/* eslint-disable @typescript-eslint/no-empty-interface */\nimport type { DSPropTypesSchema } from '@elliemae/ds-props-helpers';\nimport { PropTypes } from '@elliemae/ds-props-helpers';\nimport type React from 'react';\nimport type { WeakValidationMap } from 'react';\n\nexport declare namespace DSMenuItemsCommonsT {\n export interface RequiredProps {\n dsId: string;\n }\n\n export interface DefaultProps {\n innerRef: React.RefObject<HTMLLIElement> | ((_ref: HTMLLIElement) => void);\n wrapperStyles: React.CSSProperties;\n }\n\n export interface OptionalProps<T> {\n render?: React.ComponentType<T>;\n original?: Record<string, unknown>;\n }\n\n export interface Props<T = unknown>\n extends Partial<DefaultProps>,\n OptionalProps<T>,\n // each single menu-item is in charge of spreading the GlobalAttributesT & XstyledProps\n // they are NOT inherited from a common element from ds-menu-items-commons\n // Omit<\n // GlobalAttributesT<HTMLButtonElement>,\n // keyof DefaultProps | keyof OptionalProps | keyof RequiredProps | keyof XstyledProps\n // >,\n // XstyledProps,\n RequiredProps {}\n\n export interface InternalProps<T = unknown>\n extends DefaultProps,\n OptionalProps<T>,\n // each single menu-item is in charge of spreading the GlobalAttributesT & XstyledProps\n // they are NOT inherited from a common element from ds-menu-items-commons\n // Omit<\n // GlobalAttributesT<HTMLButtonElement>,\n // keyof DefaultProps | keyof OptionalProps | keyof RequiredProps | keyof XstyledProps\n // >,\n // XstyledProps,\n RequiredProps {}\n}\n\nexport const DSMenuItemsCommonsDefaultProps: DSMenuItemsCommonsT.DefaultProps = {\n innerRef: () => {},\n wrapperStyles: {},\n} as const;\n\nexport const DSMenuItemsCommonsPropTypes: DSPropTypesSchema<DSMenuItemsCommonsT.Props> = {\n dsId: PropTypes.string.description(\n 'unique identifier that MUST NOT be repeated to ensure all functionalities works as expected',\n ).isRequired,\n wrapperStyles: PropTypes.object\n .description('Styles to be applied to the wrapper element.')\n .defaultValue(DSMenuItemsCommonsDefaultProps.wrapperStyles),\n render: PropTypes.func\n .description('A React component that can be used to render the menu item.')\n .signature('React.ComponentType'),\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 main underlying DOM element of the menu item.',\n ),\n ]).defaultValue(`(() => {})`),\n original: PropTypes.object.description(''),\n};\n\nexport const DSMenuItemsCommonsPropTypesSchema =\n DSMenuItemsCommonsPropTypes as unknown as WeakValidationMap<DSMenuItemsCommonsT.Props>;\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADGvB,8BAA0B;AA4CnB,MAAM,iCAAmE;AAAA,EAC9E,UAAU,MAAM;AAAA,EAAC;AAAA,EACjB,eAAe,CAAC;AAClB;AAEO,MAAM,8BAA4E;AAAA,EACvF,MAAM,kCAAU,OAAO;AAAA,IACrB;AAAA,EACF,EAAE;AAAA,EACF,eAAe,kCAAU,OACtB,YAAY,8CAA8C,EAC1D,aAAa,+BAA+B,aAAa;AAAA,EAC5D,QAAQ,kCAAU,KACf,YAAY,6DAA6D,EACzE,UAAU,qBAAqB;AAAA,EAClC,UAAU,kCAAU,UAAU;AAAA,IAC5B,kCAAU,MAAM;AAAA,MACd,SAAS,kCAAU;AAAA,IACrB,CAAC;AAAA,IACD,kCAAU,KAAK;AAAA,MACb;AAAA,IACF;AAAA,EACF,CAAC,EAAE,aAAa,YAAY;AAAA,EAC5B,UAAU,kCAAU,OAAO,YAAY,EAAE;AAC3C;AAEO,MAAM,oCACX;",
6
+ "names": []
7
+ }
@@ -0,0 +1,192 @@
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_constants = require("./constants/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_constants.DSMenuItemName,
73
+ slot: import_constants.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_constants.DSMenuItemName, slot: import_constants.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_constants.DSMenuItemName,
116
+ slot: import_constants.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_constants.DSMenuItemName, slot: import_constants.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_constants.DSMenuItemName,
132
+ slot: import_constants.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_constants.DSMenuItemName, slot: import_constants.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_constants.DSMenuItemName, slot: import_constants.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_constants.DSMenuItemName,
157
+ slot: import_constants.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_constants.DSMenuItemName, slot: import_constants.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_constants.DSMenuItemName,
170
+ slot: import_constants.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_constants.DSMenuItemName,
182
+ slot: import_constants.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_constants.DSMenuItemName,
190
+ slot: import_constants.DSMenuItemSlots.MENU_ITEM_CONTENT_WRAPPER
191
+ })``;
192
+ //# sourceMappingURL=styled.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/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 './constants/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": "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",
6
+ "names": []
7
+ }
@@ -0,0 +1,21 @@
1
+ import * as React from "react";
2
+ const DSMenuItemName = "DSMenuItem";
3
+ const DSMenuItemSlots = {
4
+ MENU_ITEM_WRAPPER: "menu-item-wrapper",
5
+ MENU_ITEM_LABEL: "menu-item-label",
6
+ MENU_ITEM_SECONDARY_LABEL: "menu-item-secondary-label",
7
+ MENU_ITEM_ICON: "menu-item-icon",
8
+ MENU_ITEM_ELLIPSIS_BUTTON: "menu-item-ellipsis-button",
9
+ MENU_ITEM_CONTENT: "menu-item-content",
10
+ MENU_ITEM_SEPARATOR: "menu-item-separator",
11
+ MENU_ITEM_SEPARATOR_WRAPPER: "menu-item-separator-wrapper",
12
+ MENU_ITEM_GROUP_LABEL: "menu-item-group-label",
13
+ MENU_ITEM_SECTION_WRAPPER: "menu-item-section-wrapper",
14
+ MENU_ITEM_VERTICAL_SEPARATOR: "menu-item-vertical-separator",
15
+ MENU_ITEM_CONTENT_WRAPPER: "menu-item-content-wrapper"
16
+ };
17
+ export {
18
+ DSMenuItemName,
19
+ DSMenuItemSlots
20
+ };
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/constants/index.ts"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "// this package is about exposing common constants for the menu items components\n// this is where we solve the problem of avoiding breaking changes after splitting the DSMenuItems package into sub-packages\n// for this reason the values of the constants are not following the pattern ( they are not using the name of the component as prefix)\n// not following the patterns assure we don't break the existing code that was using the constants from the DSMenuItems package.\n// yes, this means that the values are repeating the 'menu-item-' prefix, but this is the price to pay to avoid breaking changes.\nexport const DSMenuItemName = 'DSMenuItem';\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} as const;\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACKhB,MAAM,iBAAiB;AACvB,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
+ }
@@ -0,0 +1,39 @@
1
+ import * as React from "react";
2
+ import {
3
+ DSMenuItemsCommonsPropTypes,
4
+ DSMenuItemsCommonsDefaultProps
5
+ } from "./react-desc-prop-types.js";
6
+ import { DSMenuItemName, DSMenuItemSlots } from "./constants/index.js";
7
+ import {
8
+ StyledGlobalMenuItemWrapper,
9
+ StyleMenuItemLabel,
10
+ StyleMenuItemSecondaryLabel,
11
+ StyledIconContainer,
12
+ StyledEllipsisButton,
13
+ StyledItemContent,
14
+ StyledSeparator,
15
+ StyledSeparatorWrapper,
16
+ StyledGroupLabel,
17
+ StyledSectionWrapper,
18
+ StyledVerticalSeparator,
19
+ StyledContentWrapper
20
+ } from "./styled.js";
21
+ export {
22
+ DSMenuItemName,
23
+ DSMenuItemSlots,
24
+ DSMenuItemsCommonsDefaultProps,
25
+ DSMenuItemsCommonsPropTypes,
26
+ StyleMenuItemLabel,
27
+ StyleMenuItemSecondaryLabel,
28
+ StyledContentWrapper,
29
+ StyledEllipsisButton,
30
+ StyledGlobalMenuItemWrapper,
31
+ StyledGroupLabel,
32
+ StyledIconContainer,
33
+ StyledItemContent,
34
+ StyledSectionWrapper,
35
+ StyledSeparator,
36
+ StyledSeparatorWrapper,
37
+ StyledVerticalSeparator
38
+ };
39
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/index.ts"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "// this is a workaround to typescript error TS2742\n// https://github.com/microsoft/TypeScript/issues/47663\nimport type {} from '@xstyled/system';\nimport type {} from '@xstyled/util';\nexport {\n type DSMenuItemsCommonsT,\n DSMenuItemsCommonsPropTypes,\n DSMenuItemsCommonsDefaultProps,\n} from './react-desc-prop-types.js';\nexport { DSMenuItemName, DSMenuItemSlots } from './constants/index.js';\n\nexport {\n StyledGlobalMenuItemWrapper,\n StyleMenuItemLabel,\n StyleMenuItemSecondaryLabel,\n StyledIconContainer,\n StyledEllipsisButton,\n StyledItemContent,\n StyledSeparator,\n StyledSeparatorWrapper,\n StyledGroupLabel,\n StyledSectionWrapper,\n StyledVerticalSeparator,\n StyledContentWrapper,\n} from './styled.js';\n\n// this and related `ds-menu-` components are NOT meant to be polymorphic\n// the plan for the `ds-menu-` components is for them to be following the OOP inheritance model instead\n// check \"WhatIsGoingOn.md\" for more details.\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACIvB;AAAA,EAEE;AAAA,EACA;AAAA,OACK;AACP,SAAS,gBAAgB,uBAAuB;AAEhD;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;",
6
+ "names": []
7
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "type": "module",
3
+ "sideEffects": [
4
+ "*.css",
5
+ "*.scss"
6
+ ]
7
+ }
@@ -0,0 +1,30 @@
1
+ import * as React from "react";
2
+ import { PropTypes } from "@elliemae/ds-props-helpers";
3
+ const DSMenuItemsCommonsDefaultProps = {
4
+ innerRef: () => {
5
+ },
6
+ wrapperStyles: {}
7
+ };
8
+ const DSMenuItemsCommonsPropTypes = {
9
+ dsId: PropTypes.string.description(
10
+ "unique identifier that MUST NOT be repeated to ensure all functionalities works as expected"
11
+ ).isRequired,
12
+ wrapperStyles: PropTypes.object.description("Styles to be applied to the wrapper element.").defaultValue(DSMenuItemsCommonsDefaultProps.wrapperStyles),
13
+ render: PropTypes.func.description("A React component that can be used to render the menu item.").signature("React.ComponentType"),
14
+ innerRef: PropTypes.oneOfType([
15
+ PropTypes.shape({
16
+ current: PropTypes.node
17
+ }),
18
+ PropTypes.func.description(
19
+ " A ref object or callback function to access the main underlying DOM element of the menu item."
20
+ )
21
+ ]).defaultValue(`(() => {})`),
22
+ original: PropTypes.object.description("")
23
+ };
24
+ const DSMenuItemsCommonsPropTypesSchema = DSMenuItemsCommonsPropTypes;
25
+ export {
26
+ DSMenuItemsCommonsDefaultProps,
27
+ DSMenuItemsCommonsPropTypes,
28
+ DSMenuItemsCommonsPropTypesSchema
29
+ };
30
+ //# sourceMappingURL=react-desc-prop-types.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/react-desc-prop-types.ts"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable @typescript-eslint/no-redundant-type-constituents */\n/* eslint-disable @typescript-eslint/no-empty-interface */\nimport type { DSPropTypesSchema } from '@elliemae/ds-props-helpers';\nimport { PropTypes } from '@elliemae/ds-props-helpers';\nimport type React from 'react';\nimport type { WeakValidationMap } from 'react';\n\nexport declare namespace DSMenuItemsCommonsT {\n export interface RequiredProps {\n dsId: string;\n }\n\n export interface DefaultProps {\n innerRef: React.RefObject<HTMLLIElement> | ((_ref: HTMLLIElement) => void);\n wrapperStyles: React.CSSProperties;\n }\n\n export interface OptionalProps<T> {\n render?: React.ComponentType<T>;\n original?: Record<string, unknown>;\n }\n\n export interface Props<T = unknown>\n extends Partial<DefaultProps>,\n OptionalProps<T>,\n // each single menu-item is in charge of spreading the GlobalAttributesT & XstyledProps\n // they are NOT inherited from a common element from ds-menu-items-commons\n // Omit<\n // GlobalAttributesT<HTMLButtonElement>,\n // keyof DefaultProps | keyof OptionalProps | keyof RequiredProps | keyof XstyledProps\n // >,\n // XstyledProps,\n RequiredProps {}\n\n export interface InternalProps<T = unknown>\n extends DefaultProps,\n OptionalProps<T>,\n // each single menu-item is in charge of spreading the GlobalAttributesT & XstyledProps\n // they are NOT inherited from a common element from ds-menu-items-commons\n // Omit<\n // GlobalAttributesT<HTMLButtonElement>,\n // keyof DefaultProps | keyof OptionalProps | keyof RequiredProps | keyof XstyledProps\n // >,\n // XstyledProps,\n RequiredProps {}\n}\n\nexport const DSMenuItemsCommonsDefaultProps: DSMenuItemsCommonsT.DefaultProps = {\n innerRef: () => {},\n wrapperStyles: {},\n} as const;\n\nexport const DSMenuItemsCommonsPropTypes: DSPropTypesSchema<DSMenuItemsCommonsT.Props> = {\n dsId: PropTypes.string.description(\n 'unique identifier that MUST NOT be repeated to ensure all functionalities works as expected',\n ).isRequired,\n wrapperStyles: PropTypes.object\n .description('Styles to be applied to the wrapper element.')\n .defaultValue(DSMenuItemsCommonsDefaultProps.wrapperStyles),\n render: PropTypes.func\n .description('A React component that can be used to render the menu item.')\n .signature('React.ComponentType'),\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 main underlying DOM element of the menu item.',\n ),\n ]).defaultValue(`(() => {})`),\n original: PropTypes.object.description(''),\n};\n\nexport const DSMenuItemsCommonsPropTypesSchema =\n DSMenuItemsCommonsPropTypes as unknown as WeakValidationMap<DSMenuItemsCommonsT.Props>;\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACGvB,SAAS,iBAAiB;AA4CnB,MAAM,iCAAmE;AAAA,EAC9E,UAAU,MAAM;AAAA,EAAC;AAAA,EACjB,eAAe,CAAC;AAClB;AAEO,MAAM,8BAA4E;AAAA,EACvF,MAAM,UAAU,OAAO;AAAA,IACrB;AAAA,EACF,EAAE;AAAA,EACF,eAAe,UAAU,OACtB,YAAY,8CAA8C,EAC1D,aAAa,+BAA+B,aAAa;AAAA,EAC5D,QAAQ,UAAU,KACf,YAAY,6DAA6D,EACzE,UAAU,qBAAqB;AAAA,EAClC,UAAU,UAAU,UAAU;AAAA,IAC5B,UAAU,MAAM;AAAA,MACd,SAAS,UAAU;AAAA,IACrB,CAAC;AAAA,IACD,UAAU,KAAK;AAAA,MACb;AAAA,IACF;AAAA,EACF,CAAC,EAAE,aAAa,YAAY;AAAA,EAC5B,UAAU,UAAU,OAAO,YAAY,EAAE;AAC3C;AAEO,MAAM,oCACX;",
6
+ "names": []
7
+ }
@@ -0,0 +1,162 @@
1
+ import * as React from "react";
2
+ import { styled, css, xStyledCommonProps } from "@elliemae/ds-system";
3
+ import { Grid } from "@elliemae/ds-grid";
4
+ import { DSMenuItemName, DSMenuItemSlots } from "./constants/index.js";
5
+ const borderOutside = () => css`
6
+ :after {
7
+ display: block;
8
+ content: ' ';
9
+ position: absolute;
10
+ top: 0;
11
+ left: 0;
12
+ right: 0;
13
+ bottom: 0;
14
+ border: 1px solid ${({ theme }) => theme.colors.brand[500]};
15
+ pointer-events: none;
16
+ z-index: 7;
17
+ }
18
+ `;
19
+ const disabledOption = () => css`
20
+ color: ${({ theme }) => theme.colors.neutral[500]};
21
+ background-color: ${({ theme }) => theme.colors.neutral["000"]};
22
+ cursor: not-allowed;
23
+ * {
24
+ cursor: not-allowed;
25
+ }
26
+ `;
27
+ const StyledGlobalMenuItemWrapper = styled("li", {
28
+ name: DSMenuItemName,
29
+ slot: DSMenuItemSlots.MENU_ITEM_WRAPPER
30
+ })`
31
+ cursor: pointer;
32
+ min-height: 32px;
33
+
34
+ padding-left: 16px;
35
+ padding-right: 16px;
36
+ display: grid;
37
+ align-items: center;
38
+ list-style: none;
39
+ position: relative;
40
+
41
+ ${(props) => {
42
+ if (props.disabled)
43
+ return disabledOption();
44
+ if (props.isActive)
45
+ return borderOutside();
46
+ return "";
47
+ }};
48
+
49
+ background-color: ${(props) => props.isActive ? props.theme.colors.brand[200] : props.theme.colors.neutral["000"]};
50
+
51
+ // focus style for standalone version
52
+ &:focus {
53
+ ${(props) => {
54
+ if (props.disabled)
55
+ return disabledOption();
56
+ return borderOutside();
57
+ }};
58
+ outline: none;
59
+ background-color: ${(props) => !props.disabled ? props.theme.colors.brand[200] : props.theme.colors.neutral["000"]};
60
+ }
61
+ &:hover {
62
+ background-color: ${(props) => !props.disabled && props.theme.colors.brand[200]};
63
+ }
64
+ ${xStyledCommonProps}
65
+ `;
66
+ const StyleMenuItemLabel = styled("span", { name: DSMenuItemName, slot: DSMenuItemSlots.MENU_ITEM_LABEL })`
67
+ padding: 8px 0;
68
+ font-size: 13px;
69
+ `;
70
+ const StyleMenuItemSecondaryLabel = styled("span", {
71
+ name: DSMenuItemName,
72
+ slot: DSMenuItemSlots.MENU_ITEM_SECONDARY_LABEL
73
+ })`
74
+ padding: 8px 0;
75
+ font-size: 11px;
76
+ font-style: italic;
77
+ color: brand-800;
78
+ `;
79
+ const StyledIconContainer = styled("div", { name: DSMenuItemName, slot: DSMenuItemSlots.MENU_ITEM_ICON })`
80
+ width: 25px;
81
+ height: 24px;
82
+ display: grid;
83
+ grid-template-columns: min-content auto;
84
+ place-items: center;
85
+ `;
86
+ const StyledEllipsisButton = styled("div", {
87
+ name: DSMenuItemName,
88
+ slot: DSMenuItemSlots.MENU_ITEM_ELLIPSIS_BUTTON
89
+ })`
90
+ position: relative;
91
+ width: 100%;
92
+ height: 100%;
93
+ display: grid;
94
+ place-items: center;
95
+ background: transparent;
96
+ :active {
97
+ ${(props) => props.disabled ? "" : borderOutside()}
98
+ }
99
+ `;
100
+ const StyledItemContent = styled("div", { name: DSMenuItemName, slot: DSMenuItemSlots.MENU_ITEM_CONTENT })`
101
+ display: flex;
102
+ width: 100%;
103
+ margin: 8px 0px;
104
+ `;
105
+ const StyledSeparator = styled("hr", { name: DSMenuItemName, slot: DSMenuItemSlots.MENU_ITEM_SEPARATOR })`
106
+ border: 0;
107
+ border-top: 1px solid #697489;
108
+ margin: 4px 0px;
109
+ padding: 0;
110
+ `;
111
+ const StyledSeparatorWrapper = styled("li", {
112
+ name: DSMenuItemName,
113
+ slot: DSMenuItemSlots.MENU_ITEM_SEPARATOR_WRAPPER
114
+ })`
115
+ list-style: none;
116
+ padding: 0px 16px;
117
+
118
+ ${xStyledCommonProps}
119
+ `;
120
+ const StyledGroupLabel = styled("span", { name: DSMenuItemName, slot: DSMenuItemSlots.MENU_ITEM_GROUP_LABEL })`
121
+ font-size: 13px;
122
+ color: neutral-500;
123
+ `;
124
+ const StyledSectionWrapper = styled("li", {
125
+ name: DSMenuItemName,
126
+ slot: DSMenuItemSlots.MENU_ITEM_SECTION_WRAPPER
127
+ })`
128
+ list-style: none;
129
+ padding: 0px 16px;
130
+ height: 24px;
131
+ display: flex;
132
+ align-items: center;
133
+
134
+ ${xStyledCommonProps}
135
+ `;
136
+ const StyledVerticalSeparator = styled("div", {
137
+ name: DSMenuItemName,
138
+ slot: DSMenuItemSlots.MENU_ITEM_VERTICAL_SEPARATOR
139
+ })`
140
+ width: 1px;
141
+ height: 18px;
142
+ background-color: neutral-300;
143
+ `;
144
+ const StyledContentWrapper = styled(Grid, {
145
+ name: DSMenuItemName,
146
+ slot: DSMenuItemSlots.MENU_ITEM_CONTENT_WRAPPER
147
+ })``;
148
+ export {
149
+ StyleMenuItemLabel,
150
+ StyleMenuItemSecondaryLabel,
151
+ StyledContentWrapper,
152
+ StyledEllipsisButton,
153
+ StyledGlobalMenuItemWrapper,
154
+ StyledGroupLabel,
155
+ StyledIconContainer,
156
+ StyledItemContent,
157
+ StyledSectionWrapper,
158
+ StyledSeparator,
159
+ StyledSeparatorWrapper,
160
+ StyledVerticalSeparator
161
+ };
162
+ //# sourceMappingURL=styled.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/styled.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "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 './constants/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"],
5
+ "mappings": "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",
6
+ "names": []
7
+ }
@@ -0,0 +1,15 @@
1
+ export declare const DSMenuItemName = "DSMenuItem";
2
+ export declare const DSMenuItemSlots: {
3
+ readonly MENU_ITEM_WRAPPER: "menu-item-wrapper";
4
+ readonly MENU_ITEM_LABEL: "menu-item-label";
5
+ readonly MENU_ITEM_SECONDARY_LABEL: "menu-item-secondary-label";
6
+ readonly MENU_ITEM_ICON: "menu-item-icon";
7
+ readonly MENU_ITEM_ELLIPSIS_BUTTON: "menu-item-ellipsis-button";
8
+ readonly MENU_ITEM_CONTENT: "menu-item-content";
9
+ readonly MENU_ITEM_SEPARATOR: "menu-item-separator";
10
+ readonly MENU_ITEM_SEPARATOR_WRAPPER: "menu-item-separator-wrapper";
11
+ readonly MENU_ITEM_GROUP_LABEL: "menu-item-group-label";
12
+ readonly MENU_ITEM_SECTION_WRAPPER: "menu-item-section-wrapper";
13
+ readonly MENU_ITEM_VERTICAL_SEPARATOR: "menu-item-vertical-separator";
14
+ readonly MENU_ITEM_CONTENT_WRAPPER: "menu-item-content-wrapper";
15
+ };
@@ -0,0 +1,3 @@
1
+ export { type DSMenuItemsCommonsT, DSMenuItemsCommonsPropTypes, DSMenuItemsCommonsDefaultProps, } from './react-desc-prop-types.js';
2
+ export { DSMenuItemName, DSMenuItemSlots } from './constants/index.js';
3
+ export { StyledGlobalMenuItemWrapper, StyleMenuItemLabel, StyleMenuItemSecondaryLabel, StyledIconContainer, StyledEllipsisButton, StyledItemContent, StyledSeparator, StyledSeparatorWrapper, StyledGroupLabel, StyledSectionWrapper, StyledVerticalSeparator, StyledContentWrapper, } from './styled.js';
@@ -0,0 +1,22 @@
1
+ import type { DSPropTypesSchema } from '@elliemae/ds-props-helpers';
2
+ import type React from 'react';
3
+ export declare namespace DSMenuItemsCommonsT {
4
+ interface RequiredProps {
5
+ dsId: string;
6
+ }
7
+ interface DefaultProps {
8
+ innerRef: React.RefObject<HTMLLIElement> | ((_ref: HTMLLIElement) => void);
9
+ wrapperStyles: React.CSSProperties;
10
+ }
11
+ interface OptionalProps<T> {
12
+ render?: React.ComponentType<T>;
13
+ original?: Record<string, unknown>;
14
+ }
15
+ interface Props<T = unknown> extends Partial<DefaultProps>, OptionalProps<T>, RequiredProps {
16
+ }
17
+ interface InternalProps<T = unknown> extends DefaultProps, OptionalProps<T>, RequiredProps {
18
+ }
19
+ }
20
+ export declare const DSMenuItemsCommonsDefaultProps: DSMenuItemsCommonsT.DefaultProps;
21
+ export declare const DSMenuItemsCommonsPropTypes: DSPropTypesSchema<DSMenuItemsCommonsT.Props>;
22
+ export declare const DSMenuItemsCommonsPropTypesSchema: React.WeakValidationMap<DSMenuItemsCommonsT.Props<unknown>>;
@@ -0,0 +1,22 @@
1
+ /// <reference types="react" />
2
+ import type { LayoutProps, SizingProps, PositionProps, SpaceProps } from '@elliemae/ds-system';
3
+ interface StyledGlobalMenuItemWrapperT extends LayoutProps, SizingProps, PositionProps, SpaceProps {
4
+ isSelected?: boolean;
5
+ isActive?: boolean;
6
+ disabled?: boolean;
7
+ }
8
+ export declare const StyledGlobalMenuItemWrapper: import("styled-components").StyledComponent<"li", import("@elliemae/ds-system").Theme, StyledGlobalMenuItemWrapperT & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<"li">, never>;
9
+ export declare const StyleMenuItemLabel: import("styled-components").StyledComponent<"span", import("@elliemae/ds-system").Theme, object & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<"span">, never>;
10
+ export declare const StyleMenuItemSecondaryLabel: import("styled-components").StyledComponent<"span", import("@elliemae/ds-system").Theme, object & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<"span">, never>;
11
+ export declare const StyledIconContainer: import("styled-components").StyledComponent<"div", import("@elliemae/ds-system").Theme, object & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<"div">, never>;
12
+ export declare const StyledEllipsisButton: import("styled-components").StyledComponent<"div", import("@elliemae/ds-system").Theme, {
13
+ disabled: boolean;
14
+ } & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<"div">, never>;
15
+ export declare const StyledItemContent: import("styled-components").StyledComponent<"div", import("@elliemae/ds-system").Theme, object & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<"div">, never>;
16
+ export declare const StyledSeparator: import("styled-components").StyledComponent<"hr", import("@elliemae/ds-system").Theme, object & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<"hr">, never>;
17
+ export declare const StyledSeparatorWrapper: import("styled-components").StyledComponent<"li", import("@elliemae/ds-system").Theme, import("@xstyled/util").Props<import("@xstyled/system").Theme> & import("@xstyled/system").TypographyProps<import("@xstyled/system").Theme> & import("@elliemae/ds-system").BackgroundProps & SpaceProps & import("@xstyled/system").BoxShadowProps<import("@xstyled/system").Theme> & import("@xstyled/system").FlexboxesProps<import("@xstyled/system").Theme> & LayoutProps<import("@xstyled/system").Theme> & import("@elliemae/ds-system").ColorProps & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<"li">, never>;
18
+ export declare const StyledGroupLabel: import("styled-components").StyledComponent<"span", import("@elliemae/ds-system").Theme, object & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<"span">, never>;
19
+ export declare const StyledSectionWrapper: import("styled-components").StyledComponent<"li", import("@elliemae/ds-system").Theme, import("@xstyled/util").Props<import("@xstyled/system").Theme> & import("@xstyled/system").TypographyProps<import("@xstyled/system").Theme> & import("@elliemae/ds-system").BackgroundProps & SpaceProps & import("@xstyled/system").BoxShadowProps<import("@xstyled/system").Theme> & import("@xstyled/system").FlexboxesProps<import("@xstyled/system").Theme> & LayoutProps<import("@xstyled/system").Theme> & import("@elliemae/ds-system").ColorProps & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<"li">, never>;
20
+ export declare const StyledVerticalSeparator: import("styled-components").StyledComponent<"div", import("@elliemae/ds-system").Theme, object & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<"div">, never>;
21
+ export declare const StyledContentWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid").DSGridT.Props & import("react").RefAttributes<HTMLDivElement>>, import("@elliemae/ds-system").Theme, object & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid").DSGridT.Props & import("react").RefAttributes<HTMLDivElement>>>, never>;
22
+ export {};
package/package.json ADDED
@@ -0,0 +1,73 @@
1
+ {
2
+ "name": "@elliemae/ds-menu-items-commons",
3
+ "version": "3.27.0-next.11",
4
+ "license": "MIT",
5
+ "description": "ICE MT - Dimsum - Menu Items Commons",
6
+ "files": [
7
+ "dist"
8
+ ],
9
+ "module": "./dist/esm/index.js",
10
+ "main": "./dist/cjs/index.js",
11
+ "types": "./dist/types/index.d.ts",
12
+ "exports": {
13
+ ".": {
14
+ "import": "./dist/esm/index.js",
15
+ "require": "./dist/cjs/index.js"
16
+ }
17
+ },
18
+ "sideEffects": [
19
+ "*.css",
20
+ "*.scss"
21
+ ],
22
+ "repository": {
23
+ "type": "git",
24
+ "url": "https://git.elliemae.io/platform-ui/dimsum.git"
25
+ },
26
+ "engines": {
27
+ "pnpm": ">=6",
28
+ "node": ">=16"
29
+ },
30
+ "author": "ICE MT",
31
+ "jestSonar": {
32
+ "sonar56x": true,
33
+ "reportPath": "reports",
34
+ "reportFile": "tests.xml",
35
+ "indent": 4
36
+ },
37
+ "dependencies": {
38
+ "@xstyled/styled-components": "~3.6.0",
39
+ "@elliemae/ds-grid": "3.27.0-next.11",
40
+ "@elliemae/ds-props-helpers": "3.27.0-next.11",
41
+ "@elliemae/ds-system": "3.27.0-next.11"
42
+ },
43
+ "devDependencies": {
44
+ "lodash": "^4.17.21",
45
+ "styled-components": "~5.3.9",
46
+ "@elliemae/ds-monorepo-devops": "3.27.0-next.11"
47
+ },
48
+ "peerDependencies": {
49
+ "@testing-library/jest-dom": "~5.16.4",
50
+ "@testing-library/react": "~12.1.3",
51
+ "@testing-library/user-event": "~13.5.0",
52
+ "lodash": "^4.17.21",
53
+ "react": "^17.0.2",
54
+ "react-dom": "^17.0.2",
55
+ "styled-components": "~5.3.9"
56
+ },
57
+ "publishConfig": {
58
+ "access": "public",
59
+ "typeSafety": true
60
+ },
61
+ "scripts": {
62
+ "dev": "cross-env NODE_ENV=development node ../../../scripts/build/build.mjs --watch",
63
+ "test": "pui-cli test --passWithNoTests",
64
+ "lint": "node ../../../scripts/lint.mjs --fix",
65
+ "eslint:fix": "eslint --ext='.js,.jsx,.test.js,.ts,.tsx' --fix --config='../../../.eslintrc.js' src/",
66
+ "dts": "node ../../scripts/dts.mjs",
67
+ "dts:withdeps": "pnpm --filter {.}... dts",
68
+ "build": "cross-env NODE_ENV=production node ../../../scripts/build/build.mjs",
69
+ "dev:build": "pnpm --filter {.}... build",
70
+ "dev:install": "pnpm --filter {.}... i --no-lockfile && pnpm run dev:build",
71
+ "checkDeps": "npx -yes ../../util/ds-codemods check-missing-packages --projectFolderPath=\"./\" --ignorePackagesGlobPattern=\"\" --ignoreFilesGlobPattern=\"**/test-ables/*,**/tests/*\""
72
+ }
73
+ }