@elliemae/ds-form 2.3.0-next.15 → 2.3.0-next.19

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.
@@ -5,10 +5,11 @@ 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 }; }
@@ -50,16 +51,24 @@ const MultiMenuItem = props => {
50
51
  style: wrapperStyles,
51
52
  pr: render ? 0 : 40,
52
53
  "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
- }))
54
+ children: /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
55
+ children: render ? render(props) : /*#__PURE__*/_jsx__default["default"](Grid.Grid, {
56
+ cols: ['16px', 'auto'],
57
+ minHeight: "16px",
58
+ gutter: "xxs",
59
+ alignItems: "center"
60
+ }, void 0, /*#__PURE__*/_jsx__default["default"](dsControlledForm.DSControlledCheckbox, {
61
+ disabled: disabled,
62
+ checked: isSelected,
63
+ onMouseDown: onMouseDown,
64
+ name: value,
65
+ "aria-label": label,
66
+ id: value,
67
+ onChange: onClick
68
+ }), /*#__PURE__*/_jsx__default["default"](styled$1.StyledMultiMenuItemLabel, {
69
+ htmlFor: value
70
+ }, void 0, /*#__PURE__*/_jsx__default["default"](styled.StyleMenuItemLabel, {}, void 0, label)))
71
+ })
63
72
  });
64
73
  };
65
74
 
@@ -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
 
@@ -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;
@@ -1,11 +1,12 @@
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';
9
10
 
10
11
  const MultiMenuItem = props => {
11
12
  const {
@@ -42,16 +43,24 @@ const MultiMenuItem = props => {
42
43
  style: wrapperStyles,
43
44
  pr: render ? 0 : 40,
44
45
  "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
- }))
46
+ children: /*#__PURE__*/jsx(Fragment, {
47
+ children: render ? render(props) : /*#__PURE__*/_jsx(Grid, {
48
+ cols: ['16px', 'auto'],
49
+ minHeight: "16px",
50
+ gutter: "xxs",
51
+ alignItems: "center"
52
+ }, void 0, /*#__PURE__*/_jsx(DSControlledCheckbox, {
53
+ disabled: disabled,
54
+ checked: isSelected,
55
+ onMouseDown: onMouseDown,
56
+ name: value,
57
+ "aria-label": label,
58
+ id: value,
59
+ onChange: onClick
60
+ }), /*#__PURE__*/_jsx(StyledMultiMenuItemLabel, {
61
+ htmlFor: value
62
+ }, void 0, /*#__PURE__*/_jsx(StyleMenuItemLabel, {}, void 0, label)))
63
+ })
55
64
  });
56
65
  };
57
66
 
@@ -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
 
@@ -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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-form",
3
- "version": "2.3.0-next.15",
3
+ "version": "2.3.0-next.19",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Form",
6
6
  "module": "./esm/index.js",
@@ -748,36 +748,34 @@
748
748
  "build": "node ../../scripts/build/build.js"
749
749
  },
750
750
  "dependencies": {
751
- "@elliemae/ds-button": "2.3.0-next.15",
752
- "@elliemae/ds-circular-progress-indicator": "2.3.0-next.15",
753
- "@elliemae/ds-classnames": "2.3.0-next.15",
754
- "@elliemae/ds-controlled-form": "2.3.0-next.15",
755
- "@elliemae/ds-dropdownmenu": "2.3.0-next.15",
756
- "@elliemae/ds-form": "2.3.0-next.15",
757
- "@elliemae/ds-grid": "2.3.0-next.15",
758
- "@elliemae/ds-icon": "2.3.0-next.15",
759
- "@elliemae/ds-icons": "2.3.0-next.15",
760
- "@elliemae/ds-menu": "2.3.0-next.15",
761
- "@elliemae/ds-overlay": "2.3.0-next.15",
762
- "@elliemae/ds-pills": "2.3.0-next.15",
763
- "@elliemae/ds-popper": "2.3.0-next.15",
764
- "@elliemae/ds-popperjs": "2.3.0-next.15",
765
- "@elliemae/ds-props-helpers": "2.3.0-next.15",
766
- "@elliemae/ds-separator": "2.3.0-next.15",
767
- "@elliemae/ds-shared": "2.3.0-next.15",
768
- "@elliemae/ds-system": "2.3.0-next.15",
769
- "@elliemae/ds-text-wrapper": "2.3.0-next.15",
770
- "@elliemae/ds-tooltip": "2.3.0-next.15",
771
- "@elliemae/ds-truncated-tooltip-text": "2.3.0-next.15",
772
- "@elliemae/ds-utilities": "2.3.0-next.15",
751
+ "@elliemae/ds-button": "2.3.0-next.19",
752
+ "@elliemae/ds-circular-progress-indicator": "2.3.0-next.19",
753
+ "@elliemae/ds-classnames": "2.3.0-next.19",
754
+ "@elliemae/ds-controlled-form": "2.3.0-next.19",
755
+ "@elliemae/ds-dropdownmenu": "2.3.0-next.19",
756
+ "@elliemae/ds-grid": "2.3.0-next.19",
757
+ "@elliemae/ds-icon": "2.3.0-next.19",
758
+ "@elliemae/ds-icons": "2.3.0-next.19",
759
+ "@elliemae/ds-menu": "2.3.0-next.19",
760
+ "@elliemae/ds-overlay": "2.3.0-next.19",
761
+ "@elliemae/ds-popper": "2.3.0-next.19",
762
+ "@elliemae/ds-props-helpers": "2.3.0-next.19",
763
+ "@elliemae/ds-separator": "2.3.0-next.19",
764
+ "@elliemae/ds-shared": "2.3.0-next.19",
765
+ "@elliemae/ds-system": "2.3.0-next.19",
766
+ "@elliemae/ds-text-wrapper": "2.3.0-next.19",
767
+ "@elliemae/ds-tooltip": "2.3.0-next.19",
768
+ "@elliemae/ds-truncated-tooltip-text": "2.3.0-next.19",
769
+ "@elliemae/ds-utilities": "2.3.0-next.19",
773
770
  "@elliemae/react-popper": "1.0.2",
771
+ "@xstyled/styled-components": "~3.1.1",
772
+ "csstype": "~3.0.9",
774
773
  "memoize-one": "~5.1.1",
775
774
  "moment": "~2.29.1",
776
775
  "prop-types": "~15.7.2",
777
776
  "react-desc": "~4.1.3",
778
777
  "react-measure": "~2.5.2",
779
778
  "react-select": "~4.3.0",
780
- "react-virtual": "~2.8.2",
781
779
  "react-window": "~1.8.6",
782
780
  "resize-observer": "~1.0.2",
783
781
  "text-mask-core": "5.1.2",
@@ -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 +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>;