@elliemae/ds-menu 2.0.0-alpha.10 → 2.0.0-alpha.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.
- package/cjs/Menu.js +2 -2
- package/cjs/MenuItems/MenuItem.js +4 -3
- package/cjs/MenuItems/SearchableGroup.js +1 -0
- package/cjs/MenuItems/SearchableList.js +1 -0
- package/cjs/MenuItems/SubMenu.js +1 -0
- package/esm/Menu.js +2 -2
- package/esm/MenuItems/MenuItem.js +4 -3
- package/esm/MenuItems/SearchableGroup.js +1 -0
- package/esm/MenuItems/SearchableList.js +1 -0
- package/esm/MenuItems/SubMenu.js +1 -0
- package/package.json +11 -11
- package/cjs/package.json +0 -7
- package/esm/package.json +0 -7
package/cjs/Menu.js
CHANGED
|
@@ -50,7 +50,7 @@ const MenuComponent = dsClassnames.aggregatedClasses('div')(blockName, '', ({
|
|
|
50
50
|
type
|
|
51
51
|
}) => ({
|
|
52
52
|
'menu-combo-box': menuComboBox,
|
|
53
|
-
[
|
|
53
|
+
["type-".concat(type)]: type
|
|
54
54
|
}));
|
|
55
55
|
/**
|
|
56
56
|
* todo: -- IDEA -- each menu could have an overlay based on an overlay stack context so we can
|
|
@@ -129,7 +129,7 @@ function DSMenu(_ref) {
|
|
|
129
129
|
maxWidth
|
|
130
130
|
}, responsiveHeight ? {
|
|
131
131
|
overflowY: 'scroll',
|
|
132
|
-
maxHeight: responsiveHeight ?
|
|
132
|
+
maxHeight: responsiveHeight ? "".concat(window.innerHeight - RESPONSIVE_HEIHGT_MARGIN, "px") : undefined
|
|
133
133
|
} : {})
|
|
134
134
|
}, void 0, nextChildren)
|
|
135
135
|
}))) : null;
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
6
6
|
var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
|
|
7
7
|
var _jsx = require('@babel/runtime/helpers/jsx');
|
|
8
|
+
require('core-js/modules/web.dom-collections.iterator.js');
|
|
8
9
|
var React = require('react');
|
|
9
10
|
var reactDesc = require('react-desc');
|
|
10
11
|
var lodash = require('lodash');
|
|
@@ -62,7 +63,7 @@ const Wrapper = dsClassnames.aggregatedClasses('li')(blockName, null, ({
|
|
|
62
63
|
disabledAddonInactive,
|
|
63
64
|
customRenderer,
|
|
64
65
|
fixedItem,
|
|
65
|
-
[
|
|
66
|
+
["menu-type-".concat(type)]: type
|
|
66
67
|
}));
|
|
67
68
|
|
|
68
69
|
const calculateSize = (length = 0) => {
|
|
@@ -141,8 +142,8 @@ function MenuItem(props) {
|
|
|
141
142
|
onClick: onClick,
|
|
142
143
|
children: [!noAddon && renderAddons(leftAddon, fixedItem), label && /*#__PURE__*/_jsx__default["default"](Content, {
|
|
143
144
|
style: maxOption > 0 ? {
|
|
144
|
-
width:
|
|
145
|
-
maxWidth:
|
|
145
|
+
width: "".concat(calculateSize(maxOption), "px"),
|
|
146
|
+
maxWidth: "".concat(calculateSize(maxOption), "px")
|
|
146
147
|
} : undefined
|
|
147
148
|
}, void 0, /*#__PURE__*/_jsx__default["default"](DSTruncatedTooltipText__default["default"], {
|
|
148
149
|
value: label
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var _jsx = require('@babel/runtime/helpers/jsx');
|
|
6
|
+
require('core-js/modules/web.dom-collections.iterator.js');
|
|
6
7
|
var React = require('react');
|
|
7
8
|
var dsClassnames = require('@elliemae/ds-classnames');
|
|
8
9
|
var FocusGroup = require('@elliemae/ds-shared/FocusGroup');
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
6
|
+
require('core-js/modules/web.dom-collections.iterator.js');
|
|
6
7
|
var React = require('react');
|
|
7
8
|
var reactDesc = require('react-desc');
|
|
8
9
|
var utils = require('@elliemae/ds-utilities/utils');
|
package/cjs/MenuItems/SubMenu.js
CHANGED
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
6
6
|
var _jsx = require('@babel/runtime/helpers/jsx');
|
|
7
|
+
require('core-js/modules/web.dom-collections.iterator.js');
|
|
7
8
|
var React = require('react');
|
|
8
9
|
var reactDesc = require('react-desc');
|
|
9
10
|
var ChevronRight = require('@elliemae/ds-icons/ChevronSmallRight');
|
package/esm/Menu.js
CHANGED
|
@@ -39,7 +39,7 @@ const MenuComponent = aggregatedClasses('div')(blockName, '', ({
|
|
|
39
39
|
type
|
|
40
40
|
}) => ({
|
|
41
41
|
'menu-combo-box': menuComboBox,
|
|
42
|
-
[
|
|
42
|
+
["type-".concat(type)]: type
|
|
43
43
|
}));
|
|
44
44
|
/**
|
|
45
45
|
* todo: -- IDEA -- each menu could have an overlay based on an overlay stack context so we can
|
|
@@ -118,7 +118,7 @@ function DSMenu(_ref) {
|
|
|
118
118
|
maxWidth
|
|
119
119
|
}, responsiveHeight ? {
|
|
120
120
|
overflowY: 'scroll',
|
|
121
|
-
maxHeight: responsiveHeight ?
|
|
121
|
+
maxHeight: responsiveHeight ? "".concat(window.innerHeight - RESPONSIVE_HEIHGT_MARGIN, "px") : undefined
|
|
122
122
|
} : {})
|
|
123
123
|
}, void 0, nextChildren)
|
|
124
124
|
}))) : null;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
2
2
|
import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';
|
|
3
3
|
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
4
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
4
5
|
import { useContext, useRef, useMemo } from 'react';
|
|
5
6
|
import { PropTypes, describe } from 'react-desc';
|
|
6
7
|
import { omit } from 'lodash';
|
|
@@ -51,7 +52,7 @@ const Wrapper = aggregatedClasses('li')(blockName, null, ({
|
|
|
51
52
|
disabledAddonInactive,
|
|
52
53
|
customRenderer,
|
|
53
54
|
fixedItem,
|
|
54
|
-
[
|
|
55
|
+
["menu-type-".concat(type)]: type
|
|
55
56
|
}));
|
|
56
57
|
|
|
57
58
|
const calculateSize = (length = 0) => {
|
|
@@ -130,8 +131,8 @@ function MenuItem(props) {
|
|
|
130
131
|
onClick: onClick,
|
|
131
132
|
children: [!noAddon && renderAddons(leftAddon, fixedItem), label && /*#__PURE__*/_jsx(Content, {
|
|
132
133
|
style: maxOption > 0 ? {
|
|
133
|
-
width:
|
|
134
|
-
maxWidth:
|
|
134
|
+
width: "".concat(calculateSize(maxOption), "px"),
|
|
135
|
+
maxWidth: "".concat(calculateSize(maxOption), "px")
|
|
135
136
|
} : undefined
|
|
136
137
|
}, void 0, /*#__PURE__*/_jsx(DSTruncatedTooltipText, {
|
|
137
138
|
value: label
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
2
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
2
3
|
import { useRef, useState, useEffect, useContext, useMemo } from 'react';
|
|
3
4
|
import { aggregatedClasses } from '@elliemae/ds-classnames';
|
|
4
5
|
import { focusGroupManagerHoc } from '@elliemae/ds-shared/FocusGroup';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
2
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
2
3
|
import { useState, useCallback, useMemo } from 'react';
|
|
3
4
|
import { PropTypes, describe } from 'react-desc';
|
|
4
5
|
import { uniqBy } from '@elliemae/ds-utilities/utils';
|
package/esm/MenuItems/SubMenu.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
2
2
|
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
3
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
3
4
|
import { useRef, useState, useCallback } from 'react';
|
|
4
5
|
import { PropTypes, describe } from 'react-desc';
|
|
5
6
|
import ChevronRight from '@elliemae/ds-icons/ChevronSmallRight';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-menu",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.11",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Menu",
|
|
6
6
|
"module": "./esm/index.js",
|
|
@@ -100,16 +100,16 @@
|
|
|
100
100
|
"build": "node ../../scripts/build/build.js"
|
|
101
101
|
},
|
|
102
102
|
"dependencies": {
|
|
103
|
-
"@elliemae/ds-button": "2.0.0-alpha.
|
|
104
|
-
"@elliemae/ds-classnames": "2.0.0-alpha.
|
|
105
|
-
"@elliemae/ds-form": "2.0.0-alpha.
|
|
106
|
-
"@elliemae/ds-hidden": "2.0.0-alpha.
|
|
107
|
-
"@elliemae/ds-icons": "2.0.0-alpha.
|
|
108
|
-
"@elliemae/ds-popper": "2.0.0-alpha.
|
|
109
|
-
"@elliemae/ds-separator": "2.0.0-alpha.
|
|
110
|
-
"@elliemae/ds-shared": "2.0.0-alpha.
|
|
111
|
-
"@elliemae/ds-truncated-tooltip-text": "2.0.0-alpha.
|
|
112
|
-
"@elliemae/ds-utilities": "2.0.0-alpha.
|
|
103
|
+
"@elliemae/ds-button": "2.0.0-alpha.11",
|
|
104
|
+
"@elliemae/ds-classnames": "2.0.0-alpha.11",
|
|
105
|
+
"@elliemae/ds-form": "2.0.0-alpha.11",
|
|
106
|
+
"@elliemae/ds-hidden": "2.0.0-alpha.11",
|
|
107
|
+
"@elliemae/ds-icons": "2.0.0-alpha.11",
|
|
108
|
+
"@elliemae/ds-popper": "2.0.0-alpha.11",
|
|
109
|
+
"@elliemae/ds-separator": "2.0.0-alpha.11",
|
|
110
|
+
"@elliemae/ds-shared": "2.0.0-alpha.11",
|
|
111
|
+
"@elliemae/ds-truncated-tooltip-text": "2.0.0-alpha.11",
|
|
112
|
+
"@elliemae/ds-utilities": "2.0.0-alpha.11",
|
|
113
113
|
"prop-types": "~15.7.2",
|
|
114
114
|
"react-desc": "~4.1.3",
|
|
115
115
|
"react-spring": "~8.0.27",
|
package/cjs/package.json
DELETED