@elliemae/ds-form 2.3.2 → 2.4.0-rc.1

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.
@@ -59,7 +59,7 @@ const DSInput = _ref => {
59
59
  "aria-label": otherProps['aria-label'],
60
60
  "aria-describedby": otherProps['aria-describedby'],
61
61
  autoFocus: autoFocus,
62
- className: "".concat(className, " ").concat(disabled ? 'input-disabled' : ''),
62
+ className: "".concat(className, " ").concat(disabled ? 'input-disabled' : '').concat(readOnly ? 'read-only' : ''),
63
63
  clearable: clearable,
64
64
  containerProps: containerProps,
65
65
  customInputType: customInputType,
@@ -275,7 +275,7 @@ class InputImpl extends React.Component {
275
275
  },
276
276
  className,
277
277
  autoFocus,
278
- disabled: disabled || readOnly,
278
+ disabled,
279
279
  maxLength,
280
280
  minLength,
281
281
  name,
@@ -296,7 +296,8 @@ class InputImpl extends React.Component {
296
296
  min,
297
297
  max,
298
298
  style,
299
- tabIndex
299
+ tabIndex,
300
+ readOnly
300
301
  }, containerProps);
301
302
 
302
303
  let InputComponent = /*#__PURE__*/jsxRuntime.jsx(WrapperForTooltipInput, {
@@ -64,22 +64,21 @@ const DSInputProtected = _ref => {
64
64
  }, [leftAddon, rightAddon]);
65
65
  const handleLeft = React.useCallback(() => {
66
66
  setLocked(!inputLocked);
67
- }, [leftAddon, inputLocked]);
67
+ }, [inputLocked]);
68
68
  const handleRight = React.useCallback(() => {
69
69
  setHidden(!inputHidden);
70
- }, [rightAddon, inputHidden]);
70
+ }, [inputHidden]);
71
71
  return /*#__PURE__*/_jsx__default["default"]("div", {}, void 0, /*#__PURE__*/_jsx__default["default"](DSInputGroup["default"], {
72
72
  leftAddon: left ? /*#__PURE__*/_jsx__default["default"](DSButton__default["default"], {
73
73
  "aria-label": "".concat(inputLocked ? 'Allow' : 'Disallow', " Edition"),
74
74
  buttonType: "secondary",
75
- icon: ADDON_ICON_OPTIONS[inputLocked ? options.LEFT_ADDON_OPTIONS.LockUnlocked : options.LEFT_ADDON_OPTIONS.LockLocked],
75
+ icon: ADDON_ICON_OPTIONS[inputLocked ? options.LEFT_ADDON_OPTIONS.LockLocked : options.LEFT_ADDON_OPTIONS.LockUnlocked],
76
76
  onClick: handleLeft
77
77
  }) : undefined,
78
- readOnly: left ? inputLocked : readOnly,
79
78
  rightAddon: right ? /*#__PURE__*/_jsx__default["default"](DSButton__default["default"], {
80
79
  "aria-label": "".concat(inputHidden ? 'Show' : 'Hide', " Characters"),
81
80
  buttonType: "secondary",
82
- icon: ADDON_ICON_OPTIONS[inputHidden ? options.RIGHT_ADDON_OPTIONS.VisibleView : options.RIGHT_ADDON_OPTIONS.InvisibleHide],
81
+ icon: ADDON_ICON_OPTIONS[inputHidden ? options.RIGHT_ADDON_OPTIONS.InvisibleHide : options.RIGHT_ADDON_OPTIONS.VisibleView],
83
82
  onClick: handleRight,
84
83
  containerProps: {
85
84
  'data-testid': 'inputprotected-show-hide-button'
@@ -89,7 +88,7 @@ const DSInputProtected = _ref => {
89
88
  mask: mask,
90
89
  placeholderChar: placeholderChar,
91
90
  onChange: onChange,
92
- readOnly: left ? inputLocked : readOnly,
91
+ disabled: left ? inputLocked : readOnly,
93
92
  type: right && inputHidden ? 'password' : type,
94
93
  value: value
95
94
  }))));
@@ -5,16 +5,19 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var _jsx = require('@babel/runtime/helpers/jsx');
6
6
  require('react');
7
7
  var reactDesc = require('react-desc');
8
+ var Grid = require('@elliemae/ds-grid');
8
9
  var dsControlledForm = require('@elliemae/ds-controlled-form');
9
10
  var props = require('../../props.js');
10
- var styled$1 = require('./styled.js');
11
11
  var styled = require('../styled.js');
12
+ var styled$1 = require('./styled.js');
12
13
  var jsxRuntime = require('react/jsx-runtime');
13
14
 
14
15
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
15
16
 
16
17
  var _jsx__default = /*#__PURE__*/_interopDefaultLegacy(_jsx);
17
18
 
19
+ function noop() {}
20
+
18
21
  const MultiMenuItem = props => {
19
22
  const {
20
23
  dsId,
@@ -39,7 +42,6 @@ const MultiMenuItem = props => {
39
42
  isActive: isActive,
40
43
  isSelected: isSelected,
41
44
  isFocus: isFocus,
42
- onClick: onClick,
43
45
  ref: innerRef,
44
46
  onMouseDown: onMouseDown,
45
47
  onMouseEnter: onMouseEnter,
@@ -49,17 +51,26 @@ const MultiMenuItem = props => {
49
51
  "aria-selected": isSelected,
50
52
  style: wrapperStyles,
51
53
  pr: render ? 0 : 40,
54
+ onClick: onClick,
55
+ onKeyDown: onClick,
52
56
  "data-testid": "combobox-option",
53
- children: /*#__PURE__*/_jsx__default["default"](styled$1.StyledItemContent, {}, void 0, render ? render(props) : /*#__PURE__*/_jsx__default["default"](dsControlledForm.DSControlledCheckbox, {
54
- disabled: disabled,
55
- checked: isSelected,
56
- onMouseDown: onMouseDown,
57
- name: value,
58
- ariaLabel: label,
59
- label: label,
60
- id: value,
61
- onChange: onClick
62
- }))
57
+ children: /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
58
+ children: render ? render(props) : /*#__PURE__*/_jsx__default["default"](Grid.Grid, {
59
+ cols: ['16px', 'auto'],
60
+ minHeight: "16px",
61
+ gutter: "xxs",
62
+ alignItems: "center"
63
+ }, void 0, /*#__PURE__*/_jsx__default["default"](dsControlledForm.DSControlledCheckbox, {
64
+ disabled: disabled,
65
+ checked: isSelected,
66
+ onMouseDown: onMouseDown,
67
+ name: value,
68
+ "aria-label": label,
69
+ id: value,
70
+ onChange: noop,
71
+ tabIndex: tabIndex
72
+ }), /*#__PURE__*/_jsx__default["default"](styled$1.StyledMultiMenuItemLabel, {}, void 0, /*#__PURE__*/_jsx__default["default"](styled.StyleMenuItemLabel, {}, void 0, label)))
73
+ })
63
74
  });
64
75
  };
65
76
 
@@ -69,3 +80,4 @@ MultiMenuItemWithSchema.propTypes = props.itemProps;
69
80
 
70
81
  exports.MultiMenuItem = MultiMenuItem;
71
82
  exports.MultiMenuItemWithSchema = MultiMenuItemWithSchema;
83
+ exports.noop = noop;
@@ -8,8 +8,8 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
8
8
 
9
9
  var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
10
10
 
11
- const StyledItemContent = /*#__PURE__*/styled__default["default"].div.withConfig({
11
+ const StyledMultiMenuItemLabel = /*#__PURE__*/styled__default["default"].label.withConfig({
12
12
  componentId: "sc-1stlix4-0"
13
- })(["display:flex;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;width:100%;"]);
13
+ })(["padding-left:8px;color:rgb(37,41,47);font-size:13px;line-height:13px;display:inherit;"]);
14
14
 
15
- exports.StyledItemContent = StyledItemContent;
15
+ exports.StyledMultiMenuItemLabel = StyledMultiMenuItemLabel;
@@ -5,7 +5,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var _jsx = require('@babel/runtime/helpers/jsx');
6
6
  require('react');
7
7
  var reactDesc = require('react-desc');
8
- var DSTruncatedTooltipText = require('@elliemae/ds-truncated-tooltip-text');
9
8
  var dsIcons = require('@elliemae/ds-icons');
10
9
  var Grid = require('@elliemae/ds-grid');
11
10
  var props = require('../../props.js');
@@ -53,15 +52,13 @@ const SingleMenuItem = props => {
53
52
  disabled: disabled,
54
53
  children: render ? render(props) : /*#__PURE__*/_jsx__default["default"](Grid__default["default"], {
55
54
  cols: ['16px', 'auto'],
56
- height: "16px",
55
+ minHeight: "16px",
57
56
  gutter: "xxs",
58
57
  alignItems: "center"
59
58
  }, void 0, /*#__PURE__*/_jsx__default["default"]("div", {}, void 0, isSelected && /*#__PURE__*/_jsx__default["default"](dsIcons.Checkmark, {
60
59
  size: "s",
61
60
  color: ['brand-primary', '600']
62
- })), /*#__PURE__*/_jsx__default["default"](DSTruncatedTooltipText.SimpleTruncatedTooltipText, {
63
- value: label
64
- }))
61
+ })), /*#__PURE__*/_jsx__default["default"](styled.StyleMenuItemLabel, {}, void 0, label))
65
62
  });
66
63
  };
67
64
 
@@ -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;
@@ -37,7 +37,7 @@ const focusBorderCss = _ref3 => {
37
37
 
38
38
  const StyledGlobalMenuItemWrapper = /*#__PURE__*/styled__default["default"].li.withConfig({
39
39
  componentId: "sc-jyoobd-0"
40
- })(["cursor:pointer;height:32px;padding-left:16px;padding-right:16px;display:grid;align-items:center;list-style:none;position:relative;", " ", " ", " ", " ", ";background-color:", ";&:hover{background-color:", ";}"], styledComponents.position, styledComponents.layout, styledComponents.sizing, styledComponents.space, props => {
40
+ })(["cursor:pointer;min-height:32px;padding-left:16px;padding-right:16px;display:grid;align-items:center;list-style:none;position:relative;", " ", " ", " ", " ", ";background-color:", ";&:hover{background-color:", ";}"], styledComponents.position, styledComponents.layout, styledComponents.sizing, styledComponents.space, props => {
41
41
  if (props.disabled) return disabledOption();
42
42
  if (props.isFocus) return focusBorderCss(props);
43
43
  if (props.isActive) return activeBorderCss(props);
@@ -49,7 +49,11 @@ const StyledMenuItemWrapper = /*#__PURE__*/styled__default["default"](StyledGlob
49
49
  const StyledSubmenuItemWrapper = /*#__PURE__*/styled__default["default"](StyledGlobalMenuItemWrapper).withConfig({
50
50
  componentId: "sc-jyoobd-2"
51
51
  })(["", ";padding-right:0;"], props => props.isSelected || props.isActive ? activeBorderCss(props) : '');
52
+ const StyleMenuItemLabel = /*#__PURE__*/styled__default["default"].span.withConfig({
53
+ componentId: "sc-jyoobd-3"
54
+ })(["padding:8px 0;"]);
52
55
 
56
+ exports.StyleMenuItemLabel = StyleMenuItemLabel;
53
57
  exports.StyledGlobalMenuItemWrapper = StyledGlobalMenuItemWrapper;
54
58
  exports.StyledMenuItemWrapper = StyledMenuItemWrapper;
55
59
  exports.StyledSubmenuItemWrapper = StyledSubmenuItemWrapper;
@@ -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;
@@ -50,7 +50,7 @@ const DSInput = _ref => {
50
50
  "aria-label": otherProps['aria-label'],
51
51
  "aria-describedby": otherProps['aria-describedby'],
52
52
  autoFocus: autoFocus,
53
- className: "".concat(className, " ").concat(disabled ? 'input-disabled' : ''),
53
+ className: "".concat(className, " ").concat(disabled ? 'input-disabled' : '').concat(readOnly ? 'read-only' : ''),
54
54
  clearable: clearable,
55
55
  containerProps: containerProps,
56
56
  customInputType: customInputType,
@@ -263,7 +263,7 @@ class InputImpl extends Component {
263
263
  },
264
264
  className,
265
265
  autoFocus,
266
- disabled: disabled || readOnly,
266
+ disabled,
267
267
  maxLength,
268
268
  minLength,
269
269
  name,
@@ -284,7 +284,8 @@ class InputImpl extends Component {
284
284
  min,
285
285
  max,
286
286
  style,
287
- tabIndex
287
+ tabIndex,
288
+ readOnly
288
289
  }, containerProps);
289
290
 
290
291
  let InputComponent = /*#__PURE__*/jsx(WrapperForTooltipInput, {
@@ -53,22 +53,21 @@ const DSInputProtected = _ref => {
53
53
  }, [leftAddon, rightAddon]);
54
54
  const handleLeft = useCallback(() => {
55
55
  setLocked(!inputLocked);
56
- }, [leftAddon, inputLocked]);
56
+ }, [inputLocked]);
57
57
  const handleRight = useCallback(() => {
58
58
  setHidden(!inputHidden);
59
- }, [rightAddon, inputHidden]);
59
+ }, [inputHidden]);
60
60
  return /*#__PURE__*/_jsx("div", {}, void 0, /*#__PURE__*/_jsx(DSInputGroup, {
61
61
  leftAddon: left ? /*#__PURE__*/_jsx(DSButton, {
62
62
  "aria-label": "".concat(inputLocked ? 'Allow' : 'Disallow', " Edition"),
63
63
  buttonType: "secondary",
64
- icon: ADDON_ICON_OPTIONS[inputLocked ? LEFT_ADDON_OPTIONS.LockUnlocked : LEFT_ADDON_OPTIONS.LockLocked],
64
+ icon: ADDON_ICON_OPTIONS[inputLocked ? LEFT_ADDON_OPTIONS.LockLocked : LEFT_ADDON_OPTIONS.LockUnlocked],
65
65
  onClick: handleLeft
66
66
  }) : undefined,
67
- readOnly: left ? inputLocked : readOnly,
68
67
  rightAddon: right ? /*#__PURE__*/_jsx(DSButton, {
69
68
  "aria-label": "".concat(inputHidden ? 'Show' : 'Hide', " Characters"),
70
69
  buttonType: "secondary",
71
- icon: ADDON_ICON_OPTIONS[inputHidden ? RIGHT_ADDON_OPTIONS.VisibleView : RIGHT_ADDON_OPTIONS.InvisibleHide],
70
+ icon: ADDON_ICON_OPTIONS[inputHidden ? RIGHT_ADDON_OPTIONS.InvisibleHide : RIGHT_ADDON_OPTIONS.VisibleView],
72
71
  onClick: handleRight,
73
72
  containerProps: {
74
73
  'data-testid': 'inputprotected-show-hide-button'
@@ -78,7 +77,7 @@ const DSInputProtected = _ref => {
78
77
  mask: mask,
79
78
  placeholderChar: placeholderChar,
80
79
  onChange: onChange,
81
- readOnly: left ? inputLocked : readOnly,
80
+ disabled: left ? inputLocked : readOnly,
82
81
  type: right && inputHidden ? 'password' : type,
83
82
  value: value
84
83
  }))));
@@ -1,11 +1,14 @@
1
1
  import _jsx from '@babel/runtime/helpers/esm/jsx';
2
2
  import 'react';
3
3
  import { describe } from 'react-desc';
4
+ import { Grid } from '@elliemae/ds-grid';
4
5
  import { DSControlledCheckbox } from '@elliemae/ds-controlled-form';
5
6
  import { itemProps, defaultProps } from '../../props.js';
6
- import { StyledItemContent } from './styled.js';
7
- import { StyledGlobalMenuItemWrapper } from '../styled.js';
8
- import { jsx } from 'react/jsx-runtime';
7
+ import { StyledGlobalMenuItemWrapper, StyleMenuItemLabel } from '../styled.js';
8
+ import { StyledMultiMenuItemLabel } from './styled.js';
9
+ import { jsx, Fragment } from 'react/jsx-runtime';
10
+
11
+ function noop() {}
9
12
 
10
13
  const MultiMenuItem = props => {
11
14
  const {
@@ -31,7 +34,6 @@ const MultiMenuItem = props => {
31
34
  isActive: isActive,
32
35
  isSelected: isSelected,
33
36
  isFocus: isFocus,
34
- onClick: onClick,
35
37
  ref: innerRef,
36
38
  onMouseDown: onMouseDown,
37
39
  onMouseEnter: onMouseEnter,
@@ -41,17 +43,26 @@ const MultiMenuItem = props => {
41
43
  "aria-selected": isSelected,
42
44
  style: wrapperStyles,
43
45
  pr: render ? 0 : 40,
46
+ onClick: onClick,
47
+ onKeyDown: onClick,
44
48
  "data-testid": "combobox-option",
45
- children: /*#__PURE__*/_jsx(StyledItemContent, {}, void 0, render ? render(props) : /*#__PURE__*/_jsx(DSControlledCheckbox, {
46
- disabled: disabled,
47
- checked: isSelected,
48
- onMouseDown: onMouseDown,
49
- name: value,
50
- ariaLabel: label,
51
- label: label,
52
- id: value,
53
- onChange: onClick
54
- }))
49
+ children: /*#__PURE__*/jsx(Fragment, {
50
+ children: render ? render(props) : /*#__PURE__*/_jsx(Grid, {
51
+ cols: ['16px', 'auto'],
52
+ minHeight: "16px",
53
+ gutter: "xxs",
54
+ alignItems: "center"
55
+ }, void 0, /*#__PURE__*/_jsx(DSControlledCheckbox, {
56
+ disabled: disabled,
57
+ checked: isSelected,
58
+ onMouseDown: onMouseDown,
59
+ name: value,
60
+ "aria-label": label,
61
+ id: value,
62
+ onChange: noop,
63
+ tabIndex: tabIndex
64
+ }), /*#__PURE__*/_jsx(StyledMultiMenuItemLabel, {}, void 0, /*#__PURE__*/_jsx(StyleMenuItemLabel, {}, void 0, label)))
65
+ })
55
66
  });
56
67
  };
57
68
 
@@ -59,4 +70,4 @@ MultiMenuItem.defaultProps = defaultProps;
59
70
  const MultiMenuItemWithSchema = describe(MultiMenuItem);
60
71
  MultiMenuItemWithSchema.propTypes = itemProps;
61
72
 
62
- export { MultiMenuItem, MultiMenuItemWithSchema };
73
+ export { MultiMenuItem, MultiMenuItemWithSchema, noop };
@@ -1,7 +1,7 @@
1
1
  import styled from 'styled-components';
2
2
 
3
- const StyledItemContent = /*#__PURE__*/styled.div.withConfig({
3
+ const StyledMultiMenuItemLabel = /*#__PURE__*/styled.label.withConfig({
4
4
  componentId: "sc-1stlix4-0"
5
- })(["display:flex;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;width:100%;"]);
5
+ })(["padding-left:8px;color:rgb(37,41,47);font-size:13px;line-height:13px;display:inherit;"]);
6
6
 
7
- export { StyledItemContent };
7
+ export { StyledMultiMenuItemLabel };
@@ -1,11 +1,10 @@
1
1
  import _jsx from '@babel/runtime/helpers/esm/jsx';
2
2
  import 'react';
3
3
  import { describe } from 'react-desc';
4
- import { SimpleTruncatedTooltipText } from '@elliemae/ds-truncated-tooltip-text';
5
4
  import { Checkmark } from '@elliemae/ds-icons';
6
5
  import Grid from '@elliemae/ds-grid';
7
6
  import { itemProps, defaultProps } from '../../props.js';
8
- import { StyledGlobalMenuItemWrapper } from '../styled.js';
7
+ import { StyledGlobalMenuItemWrapper, StyleMenuItemLabel } from '../styled.js';
9
8
  import { jsx } from 'react/jsx-runtime';
10
9
 
11
10
  const SingleMenuItem = props => {
@@ -44,15 +43,13 @@ const SingleMenuItem = props => {
44
43
  disabled: disabled,
45
44
  children: render ? render(props) : /*#__PURE__*/_jsx(Grid, {
46
45
  cols: ['16px', 'auto'],
47
- height: "16px",
46
+ minHeight: "16px",
48
47
  gutter: "xxs",
49
48
  alignItems: "center"
50
49
  }, void 0, /*#__PURE__*/_jsx("div", {}, void 0, isSelected && /*#__PURE__*/_jsx(Checkmark, {
51
50
  size: "s",
52
51
  color: ['brand-primary', '600']
53
- })), /*#__PURE__*/_jsx(SimpleTruncatedTooltipText, {
54
- value: label
55
- }))
52
+ })), /*#__PURE__*/_jsx(StyleMenuItemLabel, {}, void 0, label))
56
53
  });
57
54
  };
58
55
 
@@ -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';
@@ -29,7 +29,7 @@ const focusBorderCss = _ref3 => {
29
29
 
30
30
  const StyledGlobalMenuItemWrapper = /*#__PURE__*/styled.li.withConfig({
31
31
  componentId: "sc-jyoobd-0"
32
- })(["cursor:pointer;height:32px;padding-left:16px;padding-right:16px;display:grid;align-items:center;list-style:none;position:relative;", " ", " ", " ", " ", ";background-color:", ";&:hover{background-color:", ";}"], position, layout, sizing, space, props => {
32
+ })(["cursor:pointer;min-height:32px;padding-left:16px;padding-right:16px;display:grid;align-items:center;list-style:none;position:relative;", " ", " ", " ", " ", ";background-color:", ";&:hover{background-color:", ";}"], position, layout, sizing, space, props => {
33
33
  if (props.disabled) return disabledOption();
34
34
  if (props.isFocus) return focusBorderCss(props);
35
35
  if (props.isActive) return activeBorderCss(props);
@@ -41,5 +41,8 @@ const StyledMenuItemWrapper = /*#__PURE__*/styled(StyledGlobalMenuItemWrapper).w
41
41
  const StyledSubmenuItemWrapper = /*#__PURE__*/styled(StyledGlobalMenuItemWrapper).withConfig({
42
42
  componentId: "sc-jyoobd-2"
43
43
  })(["", ";padding-right:0;"], props => props.isSelected || props.isActive ? activeBorderCss(props) : '');
44
+ const StyleMenuItemLabel = /*#__PURE__*/styled.span.withConfig({
45
+ componentId: "sc-jyoobd-3"
46
+ })(["padding:8px 0;"]);
44
47
 
45
- export { StyledGlobalMenuItemWrapper, StyledMenuItemWrapper, StyledSubmenuItemWrapper };
48
+ export { StyleMenuItemLabel, StyledGlobalMenuItemWrapper, StyledMenuItemWrapper, StyledSubmenuItemWrapper };
@@ -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.3.2",
3
+ "version": "2.4.0-rc.1",
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.3.2",
752
- "@elliemae/ds-circular-progress-indicator": "2.3.2",
753
- "@elliemae/ds-classnames": "2.3.2",
754
- "@elliemae/ds-controlled-form": "2.3.2",
755
- "@elliemae/ds-dropdownmenu": "2.3.2",
756
- "@elliemae/ds-grid": "2.3.2",
757
- "@elliemae/ds-icon": "2.3.2",
758
- "@elliemae/ds-icons": "2.3.2",
759
- "@elliemae/ds-menu": "2.3.2",
760
- "@elliemae/ds-overlay": "2.3.2",
761
- "@elliemae/ds-popper": "2.3.2",
762
- "@elliemae/ds-props-helpers": "2.3.2",
763
- "@elliemae/ds-separator": "2.3.2",
764
- "@elliemae/ds-shared": "2.3.2",
765
- "@elliemae/ds-system": "2.3.2",
766
- "@elliemae/ds-text-wrapper": "2.3.2",
767
- "@elliemae/ds-tooltip": "2.3.2",
768
- "@elliemae/ds-truncated-tooltip-text": "2.3.2",
769
- "@elliemae/ds-utilities": "2.3.2",
751
+ "@elliemae/ds-button": "2.4.0-rc.1",
752
+ "@elliemae/ds-circular-progress-indicator": "2.4.0-rc.1",
753
+ "@elliemae/ds-classnames": "2.4.0-rc.1",
754
+ "@elliemae/ds-controlled-form": "2.4.0-rc.1",
755
+ "@elliemae/ds-dropdownmenu": "2.4.0-rc.1",
756
+ "@elliemae/ds-grid": "2.4.0-rc.1",
757
+ "@elliemae/ds-icon": "2.4.0-rc.1",
758
+ "@elliemae/ds-icons": "2.4.0-rc.1",
759
+ "@elliemae/ds-menu": "2.4.0-rc.1",
760
+ "@elliemae/ds-overlay": "2.4.0-rc.1",
761
+ "@elliemae/ds-popper": "2.4.0-rc.1",
762
+ "@elliemae/ds-props-helpers": "2.4.0-rc.1",
763
+ "@elliemae/ds-separator": "2.4.0-rc.1",
764
+ "@elliemae/ds-shared": "2.4.0-rc.1",
765
+ "@elliemae/ds-system": "2.4.0-rc.1",
766
+ "@elliemae/ds-text-wrapper": "2.4.0-rc.1",
767
+ "@elliemae/ds-tooltip": "2.4.0-rc.1",
768
+ "@elliemae/ds-truncated-tooltip-text": "2.4.0-rc.1",
769
+ "@elliemae/ds-utilities": "2.4.0-rc.1",
770
770
  "@elliemae/react-popper": "1.0.2",
771
771
  "@xstyled/styled-components": "~3.1.1",
772
772
  "csstype": "~3.0.9",
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- export declare const DateInputFluidContainer: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {}, never>;
3
- export declare const DateInputWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {}, never>;
2
+ export declare const DateInputFluidContainer: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/types/react-desc-prop-types").DSGridT.Props & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {}, never>;
3
+ export declare const DateInputWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/types/react-desc-prop-types").DSGridT.Props & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {}, never>;
4
4
  export declare const DateInputInput: import("styled-components").StyledComponent<"input", import("styled-components").DefaultTheme, {}, never>;
5
5
  export declare const DateInputDivider: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
@@ -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: {
@@ -1 +1 @@
1
- export declare const StyledItemContent: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
1
+ export declare const StyledMultiMenuItemLabel: import("styled-components").StyledComponent<"label", import("styled-components").DefaultTheme, {}, never>;
@@ -5,3 +5,4 @@ export declare const StyledMenuItemWrapper: import("styled-components").StyledCo
5
5
  disabled: boolean;
6
6
  }, never>;
7
7
  export declare const StyledSubmenuItemWrapper: import("styled-components").StyledComponent<"li", import("styled-components").DefaultTheme, Pick<MenuItemT, "isActive" | "isSelected" | "isFocus"> & LayoutProps<import("@xstyled/system").Theme> & SizingProps<import("@xstyled/system").Theme> & PositionProps<import("@xstyled/system").Theme> & SpaceProps<import("@xstyled/system").Theme>, never>;
8
+ export declare const StyleMenuItemLabel: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;