@elliemae/ds-form 2.4.0-rc.0 → 2.4.1-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.
@@ -16,6 +16,8 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
16
16
 
17
17
  var _jsx__default = /*#__PURE__*/_interopDefaultLegacy(_jsx);
18
18
 
19
+ function noop() {}
20
+
19
21
  const MultiMenuItem = props => {
20
22
  const {
21
23
  dsId,
@@ -50,6 +52,7 @@ const MultiMenuItem = props => {
50
52
  style: wrapperStyles,
51
53
  pr: render ? 0 : 40,
52
54
  onClick: onClick,
55
+ onKeyDown: onClick,
53
56
  "data-testid": "combobox-option",
54
57
  children: /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
55
58
  children: render ? render(props) : /*#__PURE__*/_jsx__default["default"](Grid.Grid, {
@@ -64,7 +67,7 @@ const MultiMenuItem = props => {
64
67
  name: value,
65
68
  "aria-label": label,
66
69
  id: value,
67
- onChange: () => {},
70
+ onChange: noop,
68
71
  tabIndex: tabIndex
69
72
  }), /*#__PURE__*/_jsx__default["default"](styled$1.StyledMultiMenuItemLabel, {}, void 0, /*#__PURE__*/_jsx__default["default"](styled.StyleMenuItemLabel, {}, void 0, label)))
70
73
  })
@@ -77,3 +80,4 @@ MultiMenuItemWithSchema.propTypes = props.itemProps;
77
80
 
78
81
  exports.MultiMenuItem = MultiMenuItem;
79
82
  exports.MultiMenuItemWithSchema = MultiMenuItemWithSchema;
83
+ exports.noop = noop;
@@ -14,6 +14,7 @@ var index$3 = require('./Separator/index.js');
14
14
  exports.SingleMenuItem = SingleMenuItem.SingleMenuItem;
15
15
  exports.MultiMenuItem = MultiMenuItem.MultiMenuItem;
16
16
  exports.MultiMenuItemWithSchema = MultiMenuItem.MultiMenuItemWithSchema;
17
+ exports.noop = MultiMenuItem.noop;
17
18
  exports.MenuItem = index.MenuItem;
18
19
  exports.MenuItemWithSchema = index.MenuItemWithSchema;
19
20
  exports.SubmenuItem = index$1.SubmenuItem;
@@ -14,6 +14,7 @@ var index$3 = require('./components/Separator/index.js');
14
14
  exports.SingleMenuItem = SingleMenuItem.SingleMenuItem;
15
15
  exports.MultiMenuItem = MultiMenuItem.MultiMenuItem;
16
16
  exports.MultiMenuItemWithSchema = MultiMenuItem.MultiMenuItemWithSchema;
17
+ exports.noop = MultiMenuItem.noop;
17
18
  exports.MenuItem = index.MenuItem;
18
19
  exports.MenuItemWithSchema = index.MenuItemWithSchema;
19
20
  exports.SubmenuItem = index$1.SubmenuItem;
package/cjs/index.js CHANGED
@@ -79,6 +79,7 @@ exports.DSLargeInputTextWithSchema = DSLargeInputText.DSLargeInputTextWithSchema
79
79
  exports.SingleMenuItem = SingleMenuItem.SingleMenuItem;
80
80
  exports.MultiMenuItem = MultiMenuItem.MultiMenuItem;
81
81
  exports.MultiMenuItemWithSchema = MultiMenuItem.MultiMenuItemWithSchema;
82
+ exports.noop = MultiMenuItem.noop;
82
83
  exports.MenuItem = index.MenuItem;
83
84
  exports.MenuItemWithSchema = index.MenuItemWithSchema;
84
85
  exports.SubmenuItem = index$1.SubmenuItem;
@@ -8,6 +8,8 @@ import { StyledGlobalMenuItemWrapper, StyleMenuItemLabel } from '../styled.js';
8
8
  import { StyledMultiMenuItemLabel } from './styled.js';
9
9
  import { jsx, Fragment } from 'react/jsx-runtime';
10
10
 
11
+ function noop() {}
12
+
11
13
  const MultiMenuItem = props => {
12
14
  const {
13
15
  dsId,
@@ -42,6 +44,7 @@ const MultiMenuItem = props => {
42
44
  style: wrapperStyles,
43
45
  pr: render ? 0 : 40,
44
46
  onClick: onClick,
47
+ onKeyDown: onClick,
45
48
  "data-testid": "combobox-option",
46
49
  children: /*#__PURE__*/jsx(Fragment, {
47
50
  children: render ? render(props) : /*#__PURE__*/_jsx(Grid, {
@@ -56,7 +59,7 @@ const MultiMenuItem = props => {
56
59
  name: value,
57
60
  "aria-label": label,
58
61
  id: value,
59
- onChange: () => {},
62
+ onChange: noop,
60
63
  tabIndex: tabIndex
61
64
  }), /*#__PURE__*/_jsx(StyledMultiMenuItemLabel, {}, void 0, /*#__PURE__*/_jsx(StyleMenuItemLabel, {}, void 0, label)))
62
65
  })
@@ -67,4 +70,4 @@ MultiMenuItem.defaultProps = defaultProps;
67
70
  const MultiMenuItemWithSchema = describe(MultiMenuItem);
68
71
  MultiMenuItemWithSchema.propTypes = itemProps;
69
72
 
70
- export { MultiMenuItem, MultiMenuItemWithSchema };
73
+ export { MultiMenuItem, MultiMenuItemWithSchema, noop };
@@ -1,5 +1,5 @@
1
1
  export { SingleMenuItem } from './SingleMenuItem/SingleMenuItem.js';
2
- export { MultiMenuItem, MultiMenuItemWithSchema } from './MultiMenuItem/MultiMenuItem.js';
2
+ export { MultiMenuItem, MultiMenuItemWithSchema, noop } from './MultiMenuItem/MultiMenuItem.js';
3
3
  export { MenuItem, MenuItemWithSchema } from './MenuItem/index.js';
4
4
  export { SubmenuItem, SubmenuItemWithSchema } from './SubmenuItem/index.js';
5
5
  export { Section } from './Section/index.js';
@@ -1,5 +1,5 @@
1
1
  export { SingleMenuItem } from './components/SingleMenuItem/SingleMenuItem.js';
2
- export { MultiMenuItem, MultiMenuItemWithSchema } from './components/MultiMenuItem/MultiMenuItem.js';
2
+ export { MultiMenuItem, MultiMenuItemWithSchema, noop } from './components/MultiMenuItem/MultiMenuItem.js';
3
3
  export { MenuItem, MenuItemWithSchema } from './components/MenuItem/index.js';
4
4
  export { SubmenuItem, SubmenuItemWithSchema } from './components/SubmenuItem/index.js';
5
5
  export { Section } from './components/Section/index.js';
package/esm/index.js CHANGED
@@ -17,7 +17,7 @@ export { DSInputProtected, DSInputProtectedWithSchema } from './InputProtected/D
17
17
  export { LEFT_ADDON_OPTIONS, RIGHT_ADDON_OPTIONS } from './InputProtected/options.js';
18
18
  export { default as DSLargeInputText, DSLargeInputTextWithSchema } from './LargeInputText/DSLargeInputText.js';
19
19
  export { SingleMenuItem } from './MenuItem/components/SingleMenuItem/SingleMenuItem.js';
20
- export { MultiMenuItem, MultiMenuItemWithSchema } from './MenuItem/components/MultiMenuItem/MultiMenuItem.js';
20
+ export { MultiMenuItem, MultiMenuItemWithSchema, noop } from './MenuItem/components/MultiMenuItem/MultiMenuItem.js';
21
21
  export { MenuItem, MenuItemWithSchema } from './MenuItem/components/MenuItem/index.js';
22
22
  export { SubmenuItem, SubmenuItemWithSchema } from './MenuItem/components/SubmenuItem/index.js';
23
23
  export { Section } from './MenuItem/components/Section/index.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-form",
3
- "version": "2.4.0-rc.0",
3
+ "version": "2.4.1-rc.0",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Form",
6
6
  "module": "./esm/index.js",
@@ -748,25 +748,25 @@
748
748
  "build": "node ../../scripts/build/build.js"
749
749
  },
750
750
  "dependencies": {
751
- "@elliemae/ds-button": "2.4.0-rc.0",
752
- "@elliemae/ds-circular-progress-indicator": "2.4.0-rc.0",
753
- "@elliemae/ds-classnames": "2.4.0-rc.0",
754
- "@elliemae/ds-controlled-form": "2.4.0-rc.0",
755
- "@elliemae/ds-dropdownmenu": "2.4.0-rc.0",
756
- "@elliemae/ds-grid": "2.4.0-rc.0",
757
- "@elliemae/ds-icon": "2.4.0-rc.0",
758
- "@elliemae/ds-icons": "2.4.0-rc.0",
759
- "@elliemae/ds-menu": "2.4.0-rc.0",
760
- "@elliemae/ds-overlay": "2.4.0-rc.0",
761
- "@elliemae/ds-popper": "2.4.0-rc.0",
762
- "@elliemae/ds-props-helpers": "2.4.0-rc.0",
763
- "@elliemae/ds-separator": "2.4.0-rc.0",
764
- "@elliemae/ds-shared": "2.4.0-rc.0",
765
- "@elliemae/ds-system": "2.4.0-rc.0",
766
- "@elliemae/ds-text-wrapper": "2.4.0-rc.0",
767
- "@elliemae/ds-tooltip": "2.4.0-rc.0",
768
- "@elliemae/ds-truncated-tooltip-text": "2.4.0-rc.0",
769
- "@elliemae/ds-utilities": "2.4.0-rc.0",
751
+ "@elliemae/ds-button": "2.4.1-rc.0",
752
+ "@elliemae/ds-circular-progress-indicator": "2.4.1-rc.0",
753
+ "@elliemae/ds-classnames": "2.4.1-rc.0",
754
+ "@elliemae/ds-controlled-form": "2.4.1-rc.0",
755
+ "@elliemae/ds-dropdownmenu": "2.4.1-rc.0",
756
+ "@elliemae/ds-grid": "2.4.1-rc.0",
757
+ "@elliemae/ds-icon": "2.4.1-rc.0",
758
+ "@elliemae/ds-icons": "2.4.1-rc.0",
759
+ "@elliemae/ds-menu": "2.4.1-rc.0",
760
+ "@elliemae/ds-overlay": "2.4.1-rc.0",
761
+ "@elliemae/ds-popper": "2.4.1-rc.0",
762
+ "@elliemae/ds-props-helpers": "2.4.1-rc.0",
763
+ "@elliemae/ds-separator": "2.4.1-rc.0",
764
+ "@elliemae/ds-shared": "2.4.1-rc.0",
765
+ "@elliemae/ds-system": "2.4.1-rc.0",
766
+ "@elliemae/ds-text-wrapper": "2.4.1-rc.0",
767
+ "@elliemae/ds-tooltip": "2.4.1-rc.0",
768
+ "@elliemae/ds-truncated-tooltip-text": "2.4.1-rc.0",
769
+ "@elliemae/ds-utilities": "2.4.1-rc.0",
770
770
  "@elliemae/react-popper": "1.0.2",
771
771
  "@xstyled/styled-components": "~3.1.1",
772
772
  "csstype": "~3.0.9",
@@ -1,6 +1,7 @@
1
1
  /// <reference path="../../../../../../../shared/typings/react-desc.d.ts" />
2
2
  /// <reference types="react" />
3
3
  import { MenuItemT } from '../../props';
4
+ export declare function noop<T extends unknown[]>(..._args: T): void;
4
5
  declare const MultiMenuItem: {
5
6
  (props: MenuItemT): JSX.Element;
6
7
  propTypes: {