@elliemae/ds-form 2.4.1-rc.1 → 2.4.1-rc.2
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/MenuItem/components/MultiMenuItem/MultiMenuItem.js +11 -18
- package/cjs/MenuItem/components/MultiMenuItem/styled.js +3 -3
- package/esm/MenuItem/components/MultiMenuItem/MultiMenuItem.js +14 -21
- package/esm/MenuItem/components/MultiMenuItem/styled.js +3 -3
- package/package.json +20 -20
- package/types/MenuItem/components/MultiMenuItem/styled.d.ts +1 -1
|
@@ -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 Grid = require('@elliemae/ds-grid');
|
|
9
8
|
var dsControlledForm = require('@elliemae/ds-controlled-form');
|
|
10
9
|
var props = require('../../props.js');
|
|
11
10
|
var styled = require('../styled.js');
|
|
@@ -54,23 +53,17 @@ const MultiMenuItem = props => {
|
|
|
54
53
|
onClick: onClick,
|
|
55
54
|
onKeyDown: onClick,
|
|
56
55
|
"data-testid": "combobox-option",
|
|
57
|
-
children: /*#__PURE__*/
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
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
|
-
})
|
|
56
|
+
children: /*#__PURE__*/_jsx__default["default"](styled$1.StyledItemContent, {}, void 0, render ? render(props) : /*#__PURE__*/_jsx__default["default"](dsControlledForm.DSControlledCheckbox, {
|
|
57
|
+
disabled: disabled,
|
|
58
|
+
checked: isSelected,
|
|
59
|
+
onMouseDown: onMouseDown,
|
|
60
|
+
name: value,
|
|
61
|
+
label: label,
|
|
62
|
+
id: value,
|
|
63
|
+
onChange: noop,
|
|
64
|
+
tabIndex: tabIndex,
|
|
65
|
+
wrapLabel: true
|
|
66
|
+
}))
|
|
74
67
|
});
|
|
75
68
|
};
|
|
76
69
|
|
|
@@ -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
|
|
11
|
+
const StyledItemContent = /*#__PURE__*/styled__default["default"].div.withConfig({
|
|
12
12
|
componentId: "sc-1stlix4-0"
|
|
13
|
-
})(["
|
|
13
|
+
})(["display:flex;width:100%;"]);
|
|
14
14
|
|
|
15
|
-
exports.
|
|
15
|
+
exports.StyledItemContent = StyledItemContent;
|
|
@@ -1,12 +1,11 @@
|
|
|
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';
|
|
5
4
|
import { DSControlledCheckbox } from '@elliemae/ds-controlled-form';
|
|
6
5
|
import { itemProps, defaultProps } from '../../props.js';
|
|
7
|
-
import { StyledGlobalMenuItemWrapper
|
|
8
|
-
import {
|
|
9
|
-
import { jsx
|
|
6
|
+
import { StyledGlobalMenuItemWrapper } from '../styled.js';
|
|
7
|
+
import { StyledItemContent } from './styled.js';
|
|
8
|
+
import { jsx } from 'react/jsx-runtime';
|
|
10
9
|
|
|
11
10
|
function noop() {}
|
|
12
11
|
|
|
@@ -46,23 +45,17 @@ const MultiMenuItem = props => {
|
|
|
46
45
|
onClick: onClick,
|
|
47
46
|
onKeyDown: onClick,
|
|
48
47
|
"data-testid": "combobox-option",
|
|
49
|
-
children: /*#__PURE__*/
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
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
|
-
})
|
|
48
|
+
children: /*#__PURE__*/_jsx(StyledItemContent, {}, void 0, render ? render(props) : /*#__PURE__*/_jsx(DSControlledCheckbox, {
|
|
49
|
+
disabled: disabled,
|
|
50
|
+
checked: isSelected,
|
|
51
|
+
onMouseDown: onMouseDown,
|
|
52
|
+
name: value,
|
|
53
|
+
label: label,
|
|
54
|
+
id: value,
|
|
55
|
+
onChange: noop,
|
|
56
|
+
tabIndex: tabIndex,
|
|
57
|
+
wrapLabel: true
|
|
58
|
+
}))
|
|
66
59
|
});
|
|
67
60
|
};
|
|
68
61
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const StyledItemContent = /*#__PURE__*/styled.div.withConfig({
|
|
4
4
|
componentId: "sc-1stlix4-0"
|
|
5
|
-
})(["
|
|
5
|
+
})(["display:flex;width:100%;"]);
|
|
6
6
|
|
|
7
|
-
export {
|
|
7
|
+
export { StyledItemContent };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-form",
|
|
3
|
-
"version": "2.4.1-rc.
|
|
3
|
+
"version": "2.4.1-rc.2",
|
|
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.1-rc.
|
|
752
|
-
"@elliemae/ds-circular-progress-indicator": "2.4.1-rc.
|
|
753
|
-
"@elliemae/ds-classnames": "2.4.1-rc.
|
|
754
|
-
"@elliemae/ds-controlled-form": "2.4.1-rc.
|
|
755
|
-
"@elliemae/ds-dropdownmenu": "2.4.1-rc.
|
|
756
|
-
"@elliemae/ds-grid": "2.4.1-rc.
|
|
757
|
-
"@elliemae/ds-icon": "2.4.1-rc.
|
|
758
|
-
"@elliemae/ds-icons": "2.4.1-rc.
|
|
759
|
-
"@elliemae/ds-menu": "2.4.1-rc.
|
|
760
|
-
"@elliemae/ds-overlay": "2.4.1-rc.
|
|
761
|
-
"@elliemae/ds-popper": "2.4.1-rc.
|
|
762
|
-
"@elliemae/ds-props-helpers": "2.4.1-rc.
|
|
763
|
-
"@elliemae/ds-separator": "2.4.1-rc.
|
|
764
|
-
"@elliemae/ds-shared": "2.4.1-rc.
|
|
765
|
-
"@elliemae/ds-system": "2.4.1-rc.
|
|
766
|
-
"@elliemae/ds-text-wrapper": "2.4.1-rc.
|
|
767
|
-
"@elliemae/ds-tooltip": "2.4.1-rc.
|
|
768
|
-
"@elliemae/ds-truncated-tooltip-text": "2.4.1-rc.
|
|
769
|
-
"@elliemae/ds-utilities": "2.4.1-rc.
|
|
751
|
+
"@elliemae/ds-button": "2.4.1-rc.2",
|
|
752
|
+
"@elliemae/ds-circular-progress-indicator": "2.4.1-rc.2",
|
|
753
|
+
"@elliemae/ds-classnames": "2.4.1-rc.2",
|
|
754
|
+
"@elliemae/ds-controlled-form": "2.4.1-rc.2",
|
|
755
|
+
"@elliemae/ds-dropdownmenu": "2.4.1-rc.2",
|
|
756
|
+
"@elliemae/ds-grid": "2.4.1-rc.2",
|
|
757
|
+
"@elliemae/ds-icon": "2.4.1-rc.2",
|
|
758
|
+
"@elliemae/ds-icons": "2.4.1-rc.2",
|
|
759
|
+
"@elliemae/ds-menu": "2.4.1-rc.2",
|
|
760
|
+
"@elliemae/ds-overlay": "2.4.1-rc.2",
|
|
761
|
+
"@elliemae/ds-popper": "2.4.1-rc.2",
|
|
762
|
+
"@elliemae/ds-props-helpers": "2.4.1-rc.2",
|
|
763
|
+
"@elliemae/ds-separator": "2.4.1-rc.2",
|
|
764
|
+
"@elliemae/ds-shared": "2.4.1-rc.2",
|
|
765
|
+
"@elliemae/ds-system": "2.4.1-rc.2",
|
|
766
|
+
"@elliemae/ds-text-wrapper": "2.4.1-rc.2",
|
|
767
|
+
"@elliemae/ds-tooltip": "2.4.1-rc.2",
|
|
768
|
+
"@elliemae/ds-truncated-tooltip-text": "2.4.1-rc.2",
|
|
769
|
+
"@elliemae/ds-utilities": "2.4.1-rc.2",
|
|
770
770
|
"@elliemae/react-popper": "1.0.2",
|
|
771
771
|
"@xstyled/styled-components": "~3.1.1",
|
|
772
772
|
"csstype": "~3.0.9",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const
|
|
1
|
+
export declare const StyledItemContent: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|