@zohodesk/components 1.0.0-temp-199.20 → 1.0.0-temp-248

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.
Files changed (38) hide show
  1. package/README.md +10 -0
  2. package/es/ListItem/ListItem.module.css +4 -12
  3. package/es/MultiSelect/AdvancedGroupMultiSelect.js +2 -6
  4. package/es/MultiSelect/MultiSelect.js +2 -2
  5. package/es/MultiSelect/Suggestions.js +2 -7
  6. package/es/MultiSelect/props/defaultProps.js +0 -2
  7. package/es/MultiSelect/props/propTypes.js +3 -11
  8. package/es/Select/GroupSelect.js +1 -1
  9. package/es/Select/Select.js +5 -3
  10. package/es/Select/SelectWithAvatar.js +3 -3
  11. package/es/Select/SelectWithIcon.js +3 -10
  12. package/es/Select/__tests__/Select.spec.js +5 -0
  13. package/es/Select/props/defaultProps.js +2 -4
  14. package/es/Select/props/propTypes.js +5 -12
  15. package/es/TextBoxIcon/TextBoxIcon.js +0 -1
  16. package/es/common/common.module.css +1 -1
  17. package/es/shared/InputFieldLine/InputFieldLine.js +2 -1
  18. package/es/shared/InputFieldLine/InputFieldLine.module.css +13 -7
  19. package/es/v1/DropBox/DropBoxElement/DropBoxElement.js +1 -1
  20. package/lib/ListItem/ListItem.module.css +4 -12
  21. package/lib/MultiSelect/AdvancedGroupMultiSelect.js +3 -8
  22. package/lib/MultiSelect/MultiSelect.js +2 -2
  23. package/lib/MultiSelect/Suggestions.js +2 -6
  24. package/lib/MultiSelect/props/defaultProps.js +0 -2
  25. package/lib/MultiSelect/props/propTypes.js +5 -13
  26. package/lib/Select/GroupSelect.js +1 -2
  27. package/lib/Select/Select.js +8 -5
  28. package/lib/Select/SelectWithAvatar.js +3 -4
  29. package/lib/Select/SelectWithIcon.js +3 -10
  30. package/lib/Select/__tests__/Select.spec.js +5 -0
  31. package/lib/Select/props/defaultProps.js +3 -5
  32. package/lib/Select/props/propTypes.js +5 -12
  33. package/lib/TextBoxIcon/TextBoxIcon.js +0 -1
  34. package/lib/common/common.module.css +1 -1
  35. package/lib/shared/InputFieldLine/InputFieldLine.js +2 -1
  36. package/lib/shared/InputFieldLine/InputFieldLine.module.css +13 -7
  37. package/lib/v1/DropBox/DropBoxElement/DropBoxElement.js +5 -5
  38. package/package.json +4 -4
package/README.md CHANGED
@@ -2,6 +2,16 @@
2
2
 
3
3
  Dot UI is a customizable React component library built to deliver a clean, accessible, and developer-friendly UI experience. It offers a growing set of reusable components designed to align with modern design systems and streamline application development across projects.
4
4
 
5
+ # 1.5.7
6
+ - **InputFieldline**
7
+ - changed the handling of conditional logic for padding and size properties.
8
+
9
+ - **TextBoxIcon**
10
+ - added support for `InputFieldLineProps` via the customProps object.
11
+
12
+ - **Select**
13
+ - Removed the size prop from InputFieldLine usage, as it is unused.
14
+
5
15
  # 1.5.6
6
16
 
7
17
  - **ListItemWithRadio, ListItemWithCheckBox**
@@ -1,4 +1,3 @@
1
- /* css:lineheight-validation:ignore */
2
1
  .varClass {
3
2
  /* listitem default variables */
4
3
  --listitem_font_size: var(--zd_font_size13);
@@ -16,14 +15,9 @@
16
15
 
17
16
  /* listitem tick icon default variables */
18
17
  --listitem_tickicon_color: var(--zdt_listitem_default_tickicon);
19
-
20
- /* multiLine value for list item */
21
- --listitem_multiline_lineheight: 1.5385;
22
- }
23
- [dir=ltr] .varClass {
18
+ }[dir=ltr] .varClass {
24
19
  --listitem_avatar_margin: 0 var(--zd_size15) 0 0;
25
- }
26
- [dir=rtl] .varClass {
20
+ }[dir=rtl] .varClass {
27
21
  --listitem_avatar_margin: 0 0 0 var(--zd_size15);
28
22
  }
29
23
  .list {
@@ -82,9 +76,8 @@
82
76
  [dir=rtl] .beforeChild{
83
77
  margin-left: var(--zd_size10) ;
84
78
  }
85
- /* css:lineheight-validation:ignore */
86
79
  .value, .multiLineValue {
87
- line-height: var(--listitem_multiline_lineheight);
80
+ line-height: 1.5385;
88
81
  }
89
82
  .multiLineValue,.multiLine{
90
83
  composes: lineClamp from '../common/common.module.css';
@@ -130,8 +123,7 @@
130
123
  .lhsBox_medium,
131
124
  .lhsBox_large{
132
125
  composes: varClass;
133
- /* --listitem_doubleline_content_height: calc(var(--listitem_font_size) * 2 ); */
134
- --listitem_doubleline_content_height: calc((var(--listitem_font_size) * var(--listitem_multiline_lineheight)) * 2 );
126
+ --listitem_doubleline_content_height: calc(var(--listitem_font_size) * 2 );
135
127
  height: 100% ;
136
128
  composes: dflex alignVertical from '../common/common.module.css';
137
129
  }
@@ -889,12 +889,8 @@ class AdvancedGroupMultiSelect extends React.Component {
889
889
  autoComplete,
890
890
  getTargetRef,
891
891
  isFocus,
892
- limit,
893
- customProps
892
+ limit
894
893
  } = this.props;
895
- const {
896
- SuggestionsProps = {}
897
- } = customProps;
898
894
  let {
899
895
  clearText = MULTISELECT_I18N_KEYS.clearText,
900
896
  limitReachedMessage = MULTISELECT_I18N_KEYS.limitReachedMessage
@@ -1063,7 +1059,7 @@ class AdvancedGroupMultiSelect extends React.Component {
1063
1059
  a11y: {
1064
1060
  role: 'heading'
1065
1061
  }
1066
- })), /*#__PURE__*/React.createElement(Suggestions, { ...SuggestionsProps,
1062
+ })), /*#__PURE__*/React.createElement(Suggestions, {
1067
1063
  suggestions: suggestions,
1068
1064
  selectedOptions: selectedOptionIds,
1069
1065
  getRef: this.suggestionItemRef,
@@ -1095,9 +1095,9 @@ export class MultiSelectComponent extends React.Component {
1095
1095
  isLoading,
1096
1096
  selectAllText,
1097
1097
  needSelectAll,
1098
+ customProps,
1098
1099
  isVirtualizerEnabled,
1099
- limit,
1100
- customProps
1100
+ limit
1101
1101
  } = this.props;
1102
1102
  const {
1103
1103
  selectedOptions,
@@ -193,23 +193,18 @@ export default class Suggestions extends React.PureComponent {
193
193
  htmlId,
194
194
  a11y,
195
195
  getVirtualizerPublicMethods,
196
- setVirtualizerContainerRefFunction,
197
- customClass
196
+ setVirtualizerContainerRefFunction
198
197
  } = this.props;
199
198
  const {
200
199
  ariaParentRole,
201
200
  ariaMultiselectable
202
201
  } = a11y;
203
- const {
204
- containerClass = ''
205
- } = customClass;
206
202
  return /*#__PURE__*/React.createElement(Container, {
207
203
  isCover: false,
208
204
  role: ariaParentRole,
209
205
  id: htmlId,
210
206
  tabindex: "0",
211
- "aria-multiselectable": ariaMultiselectable,
212
- className: containerClass
207
+ "aria-multiselectable": ariaMultiselectable
213
208
  }, /*#__PURE__*/React.createElement(Box, {
214
209
  dataId: `${dataId}`,
215
210
  className: className ? className : ''
@@ -38,7 +38,6 @@ export const AdvancedGroupMultiSelect_defaultProps = {
38
38
  palette: 'default',
39
39
  isLoading: false,
40
40
  dataSelectorId: 'advancedGroupMultiSelect',
41
- customProps: {},
42
41
  allowValueFallback: true
43
42
  };
44
43
  export const AdvancedMultiSelect_defaultProps = {
@@ -170,6 +169,5 @@ export const SelectedOptions_defaultProps = {
170
169
  export const Suggestions_defaultProps = {
171
170
  a11y: {},
172
171
  isVirtualizerEnabled: false,
173
- customClass: {},
174
172
  needMultiLineText: false
175
173
  };
@@ -114,8 +114,7 @@ export const MultiSelect_propTypes = {
114
114
  setAriaId: PropTypes.string,
115
115
  ariaErrorId: PropTypes.string,
116
116
  customProps: PropTypes.shape({
117
- TextBoxIconProps: PropTypes.object,
118
- SuggestionsProps: PropTypes.object
117
+ TextBoxIconProps: PropTypes.object
119
118
  }),
120
119
  isFocus: PropTypes.bool,
121
120
  allowValueFallback: PropTypes.bool,
@@ -200,11 +199,7 @@ export const Suggestions_propTypes = {
200
199
  })),
201
200
  renderBeforeChildren: PropTypes.oneOfType([PropTypes.func, PropTypes.node]),
202
201
  limit: PropTypes.number,
203
- limitReachedMessage: PropTypes.string,
204
- customClass: PropTypes.shape({
205
- containerClass: PropTypes.string
206
- }),
207
- needMultiLineText: PropTypes.bool
202
+ limitReachedMessage: PropTypes.string
208
203
  };
209
204
  export const AdvancedGroupMultiSelect_propTypes = {
210
205
  animationStyle: PropTypes.string,
@@ -278,10 +273,7 @@ export const AdvancedGroupMultiSelect_propTypes = {
278
273
  dataSelectorId: PropTypes.string,
279
274
  isFocus: PropTypes.bool,
280
275
  allowValueFallback: PropTypes.bool,
281
- limit: PropTypes.number,
282
- customProps: PropTypes.shape({
283
- SuggestionsProps: PropTypes.object
284
- })
276
+ limit: PropTypes.number
285
277
  };
286
278
  export const AdvancedMultiSelect_propTypes = { ...MultiSelect_propTypes,
287
279
  selectedOptionDetails: PropTypes.string,
@@ -623,7 +623,7 @@ export class GroupSelectComponent extends PureComponent {
623
623
  let {
624
624
  TextBoxIconProps = {},
625
625
  TextBoxProps = {},
626
- SuggestionsProps = {}
626
+ SuggestionsProps
627
627
  } = customProps;
628
628
  return /*#__PURE__*/React.createElement("div", {
629
629
  className: `${style.container} ${style[`box_${size}`]} ${isReadOnly ? style.readonly : ''} ${borderColor === 'transparent' ? style.transparentContainer : ''} ${iconOnHover && (isReadOnly || isDisabled) ? style.iconOnHoverReadonly : iconOnHover && !(isReadOnly || isDisabled) ? style.iconOnHoverStyle : ''}`,
@@ -835,7 +835,8 @@ export class SelectComponent extends Component {
835
835
  TextBoxProps = {},
836
836
  DropdownSearchTextBoxProps = {},
837
837
  SuggestionsProps = {},
838
- TextBoxIconProps = {}
838
+ TextBoxIconProps = {},
839
+ InputFieldLineProps = {}
839
840
  } = customProps;
840
841
  const inputFieldLineA11yAttributes = this.getInputFieldLineA11y({
841
842
  setAriaId,
@@ -855,14 +856,15 @@ export class SelectComponent extends Component {
855
856
  "data-id": `${isDisabled ? `${dataId}_disabled` : isReadOnly ? `${dataId}_readOnly` : dataId}`,
856
857
  "data-test-id": `${isDisabled ? `${dataId}_disabled` : isReadOnly ? `${dataId}_readOnly` : dataId}`
857
858
  }, isRenderable(renderCustomSelectedValue) ? /*#__PURE__*/React.createElement(InputFieldLine, {
858
- isActive: isPopupReady,
859
859
  border: needBorder ? 'bottom' : 'none',
860
+ hasPadding: true,
861
+ ...InputFieldLineProps,
862
+ isActive: isPopupReady,
860
863
  size: size,
861
864
  borderColor: borderColor,
862
865
  isDisabled: isDisabled,
863
866
  isReadOnly: isReadOnly,
864
867
  onKeyDown: this.handleKeyDown,
865
- hasPadding: true,
866
868
  a11yAttributes: inputFieldLineA11yAttributes
867
869
  }, renderNode(renderCustomSelectedValue, {
868
870
  isDisabled,
@@ -169,8 +169,8 @@ class SelectWithAvatarComponent extends SelectComponent {
169
169
  needEffect,
170
170
  isLoading,
171
171
  dataSelectorId,
172
- getTargetRef,
173
- customProps
172
+ customProps,
173
+ getTargetRef
174
174
  } = this.props;
175
175
  i18nKeys = Object.assign({}, i18nKeys, {
176
176
  emptyText: i18nKeys.emptyText || emptyMessage,
@@ -195,7 +195,7 @@ class SelectWithAvatarComponent extends SelectComponent {
195
195
  let {
196
196
  TextBoxProps,
197
197
  DropdownSearchTextBoxProps,
198
- SuggestionsProps = {}
198
+ SuggestionsProps
199
199
  } = customProps;
200
200
  return /*#__PURE__*/React.createElement("div", {
201
201
  className: `${style.wrapper} ${isDisabled ? style.disabled : ''} ${isReadOnly ? style.readOnly : ''} ${needEffect && !(isDisabled || isReadOnly) ? style.effect : ''} ${className ? className : ''}`,
@@ -357,8 +357,7 @@ class SelectWithIcon extends Component {
357
357
  htmlId,
358
358
  isLoading,
359
359
  dataSelectorId,
360
- customProps,
361
- customClass
360
+ customProps
362
361
  } = this.props;
363
362
  i18nKeys = Object.assign({}, i18nKeys, {
364
363
  emptyText: i18nKeys.emptyText || emptyMessage,
@@ -376,11 +375,8 @@ class SelectWithIcon extends Component {
376
375
  TextBoxProps = {},
377
376
  DropdownSearchTextBoxProps = {},
378
377
  TextBoxIconProps = {},
379
- ListItemProps = {}
378
+ ListItemProps
380
379
  } = customProps;
381
- const {
382
- dropBoxClass = ''
383
- } = customClass;
384
380
  return /*#__PURE__*/React.createElement("div", {
385
381
  className: `${style.container} ${style[`box_${size}`]} ${isReadOnly ? style.readonly : ''} ${borderColor === 'transparent' ? style.transparentContainer : ''}`,
386
382
  "data-title": isDisabled ? title : null,
@@ -477,10 +473,7 @@ class SelectWithIcon extends Component {
477
473
  size: boxSize,
478
474
  isPadding: false,
479
475
  isResponsivePadding: true,
480
- alignBox: "row",
481
- customClass: {
482
- customDropBox: dropBoxClass
483
- }
476
+ alignBox: "row"
484
477
  }, isLoading ? /*#__PURE__*/React.createElement(Container, {
485
478
  align: "both",
486
479
  className: style.loader
@@ -962,6 +962,11 @@ describe('Select snapshot - ', () => {
962
962
  },
963
963
  listItemProps: {
964
964
  'data-custom-listitem-attr': 'true'
965
+ },
966
+ InputFieldLineProps: {
967
+ tagAttributes: {
968
+ 'data-custom-attr': 'true'
969
+ }
965
970
  }
966
971
  }
967
972
  }));
@@ -102,8 +102,7 @@ export const SelectWithAvatar_defaultProps = {
102
102
  i18nKeys: {},
103
103
  customProps: {},
104
104
  needEffect: true,
105
- isLoading: false,
106
- customProps: {}
105
+ isLoading: false
107
106
  };
108
107
  export const SelectWithIcon_defaultProps = {
109
108
  isReadOnly: false,
@@ -132,6 +131,5 @@ export const SelectWithIcon_defaultProps = {
132
131
  isLoading: false,
133
132
  isAbsolutePositioningNeeded: true,
134
133
  isRestrictScroll: false,
135
- customProps: {},
136
- customClass: {}
134
+ customProps: {}
137
135
  };
@@ -87,7 +87,8 @@ export const Select_propTypes = {
87
87
  TextBoxIconProps: PropTypes.object,
88
88
  DropdownSearchTextBoxProps: PropTypes.object,
89
89
  listItemProps: PropTypes.object,
90
- SuggestionsProps: PropTypes.object
90
+ SuggestionsProps: PropTypes.object,
91
+ InputFieldLineProps: PropTypes.object
91
92
  }),
92
93
  isLoading: PropTypes.bool,
93
94
  dataSelectorId: PropTypes.string,
@@ -186,8 +187,7 @@ export const GroupSelect_propTypes = {
186
187
  isDefaultSelectValue: PropTypes.bool,
187
188
  customProps: PropTypes.shape({
188
189
  TextBoxProps: PropTypes.object,
189
- TextBoxIconProps: PropTypes.object,
190
- SuggestionsProps: PropTypes.object
190
+ TextBoxIconProps: PropTypes.object
191
191
  }),
192
192
  allowValueFallback: PropTypes.bool
193
193
  };
@@ -250,10 +250,7 @@ export const SelectWithAvatar_propTypes = { ...Select_propTypes,
250
250
  htmlId: PropTypes.string,
251
251
  needEffect: PropTypes.bool,
252
252
  isLoading: PropTypes.bool,
253
- dataSelectorId: PropTypes.string,
254
- customProps: PropTypes.shape({
255
- SuggestionsProps: PropTypes.object
256
- })
253
+ dataSelectorId: PropTypes.string
257
254
  };
258
255
  export const SelectWithIcon_propTypes = {
259
256
  animationStyle: PropTypes.oneOf(['default', 'bounce']),
@@ -318,10 +315,6 @@ export const SelectWithIcon_propTypes = {
318
315
  TextBoxProps: PropTypes.object,
319
316
  DropdownSearchTextBoxProps: PropTypes.object,
320
317
  SuggestionsProps: PropTypes.object,
321
- TextBoxIconProps: PropTypes.object,
322
- ListItemProps: PropTypes.object
323
- }),
324
- customClass: PropTypes.shape({
325
- dropBoxClass: PropTypes.string
318
+ TextBoxIconProps: PropTypes.object
326
319
  })
327
320
  };
@@ -130,7 +130,6 @@ export default class TextBoxIcon extends React.Component {
130
130
  return /*#__PURE__*/React.createElement(InputFieldLine, {
131
131
  isActive: isActive || isFocus,
132
132
  border: needBorder ? 'bottom' : 'none',
133
- size: size,
134
133
  borderColor: borderColor,
135
134
  hasEffect: needEffect,
136
135
  isDisabled: isDisabled,
@@ -501,7 +501,7 @@
501
501
  }
502
502
  .lineClamp {
503
503
  composes: wbreak clamp;
504
- -webkit-line-clamp: var(--line-clamp, 3);
504
+ -webkit-line-clamp: var(--line-clamp,2);
505
505
  }
506
506
 
507
507
  .offSelection {
@@ -36,7 +36,8 @@ function InputFieldLine(props) {
36
36
  dataId: dataId,
37
37
  onClick: onClick,
38
38
  onKeyDown: onKeyDown,
39
- className: `${style.varClass} ${style.customContainer} ${hasPadding ? style[size] : ''} ${borderClass} ${isDisabled ? style.disabled : isReadOnly ? hasEffect ? style.effect : style.readonly : style.effect} ${border !== 'none' ? `${borderColorClass} ${style.hasBorder}` : ''} ${isActive && !(isDisabled || isReadOnly) ? style.active : ''} ${customClass}`
39
+ scroll: !!size ? 'vertical' : undefined,
40
+ className: `${style.varClass} ${style.customContainer} ${!!size ? style[size] : ''} ${hasPadding ? style[`padding_${size}`] : ''} ${borderClass} ${isDisabled ? style.disabled : isReadOnly ? hasEffect ? style.effect : style.readonly : style.effect} ${border !== 'none' ? `${borderColorClass} ${style.hasBorder}` : ''} ${isActive && !(isDisabled || isReadOnly) ? style.active : ''} ${customClass}`
40
41
  }, children);
41
42
  }
42
43
 
@@ -6,12 +6,12 @@
6
6
  }
7
7
 
8
8
  .customContainer {
9
- composes: oflowy from '../../common/common.module.css';
10
9
  cursor: var(--local_cursor);
11
10
  border-color: var(--local_inputFieldLine_border_color);
12
11
  }
13
12
 
14
- .disabled,.readonly {
13
+ .disabled,
14
+ .readonly {
15
15
  --local_cursor: not-allowed;
16
16
  }
17
17
 
@@ -57,28 +57,34 @@
57
57
  border-style: solid;
58
58
  }
59
59
 
60
+ .padding_small,
61
+ .padding_xmedium {
62
+ --local_padding: var(--zd_size3);
63
+ }
64
+
65
+ .padding_medium,
66
+ .padding_large {
67
+ --local_padding: var(--zd_size8);
68
+ }
69
+
60
70
  .xmedium {
61
71
  min-height: var(--zd_size30) ;
62
- --local_padding: var(--zd_size3);
63
72
  }
64
73
 
65
74
  .small {
66
75
  max-height: var(--zd_size200) ;
67
- --local_padding: var(--zd_size3);
68
76
  }
69
77
 
70
78
  .medium {
71
79
  max-height: var(--zd_size350) ;
72
- --local_padding: var(--zd_size8);
73
80
  }
74
81
 
75
82
  .large {
76
83
  max-height: var(--zd_size400) ;
77
- --local_padding: var(--zd_size8);
78
84
  }
79
85
 
80
86
  .border_bottom {
81
- border-width: 0 0 var(--local_inputFieldLine_border_width) 0;
87
+ border-width: 0 0 var(--local_inputFieldLine_border_width) 0;
82
88
  padding-bottom: var(--local_padding);
83
89
  }
84
90
 
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import useDropboxPosCalc from "../../../DropBox/DropBoxElement/useDropboxPosCalc";
3
3
  import cssJSLogic from "../../../DropBox/DropBoxElement/css/cssJSLogic";
4
- import { positionMapping } from "../../../DropBox/DropBoxPositionMapping.js";
4
+ import { positionMapping } from '@zohodesk/dotkit/es/react/components/Popup/utils/positioning';
5
5
  import { DropBoxElementDefaultProps } from "./props/defaultProps";
6
6
  import { DropBoxElementPropTypes } from "./props/propTypes";
7
7
  import { mergeStyle } from '@zohodesk/utils';
@@ -1,4 +1,3 @@
1
- /* css:lineheight-validation:ignore */
2
1
  .varClass {
3
2
  /* listitem default variables */
4
3
  --listitem_font_size: var(--zd_font_size13);
@@ -16,14 +15,9 @@
16
15
 
17
16
  /* listitem tick icon default variables */
18
17
  --listitem_tickicon_color: var(--zdt_listitem_default_tickicon);
19
-
20
- /* multiLine value for list item */
21
- --listitem_multiline_lineheight: 1.5385;
22
- }
23
- [dir=ltr] .varClass {
18
+ }[dir=ltr] .varClass {
24
19
  --listitem_avatar_margin: 0 var(--zd_size15) 0 0;
25
- }
26
- [dir=rtl] .varClass {
20
+ }[dir=rtl] .varClass {
27
21
  --listitem_avatar_margin: 0 0 0 var(--zd_size15);
28
22
  }
29
23
  .list {
@@ -82,9 +76,8 @@
82
76
  [dir=rtl] .beforeChild{
83
77
  margin-left: var(--zd_size10) ;
84
78
  }
85
- /* css:lineheight-validation:ignore */
86
79
  .value, .multiLineValue {
87
- line-height: var(--listitem_multiline_lineheight);
80
+ line-height: 1.5385;
88
81
  }
89
82
  .multiLineValue,.multiLine{
90
83
  composes: lineClamp from '../common/common.module.css';
@@ -130,8 +123,7 @@
130
123
  .lhsBox_medium,
131
124
  .lhsBox_large{
132
125
  composes: varClass;
133
- /* --listitem_doubleline_content_height: calc(var(--listitem_font_size) * 2 ); */
134
- --listitem_doubleline_content_height: calc((var(--listitem_font_size) * var(--listitem_multiline_lineheight)) * 2 );
126
+ --listitem_doubleline_content_height: calc(var(--listitem_font_size) * 2 );
135
127
  height: 100% ;
136
128
  composes: dflex alignVertical from '../common/common.module.css';
137
129
  }
@@ -55,8 +55,6 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
55
55
 
56
56
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
57
57
 
58
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
59
-
60
58
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
61
59
 
62
60
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
@@ -981,10 +979,7 @@ var AdvancedGroupMultiSelect = /*#__PURE__*/function (_React$Component) {
981
979
  autoComplete = _this$props9.autoComplete,
982
980
  getTargetRef = _this$props9.getTargetRef,
983
981
  isFocus = _this$props9.isFocus,
984
- limit = _this$props9.limit,
985
- customProps = _this$props9.customProps;
986
- var _customProps$Suggesti = customProps.SuggestionsProps,
987
- SuggestionsProps = _customProps$Suggesti === void 0 ? {} : _customProps$Suggesti;
982
+ limit = _this$props9.limit;
988
983
  var _i18nKeys = i18nKeys,
989
984
  _i18nKeys$clearText = _i18nKeys.clearText,
990
985
  clearText = _i18nKeys$clearText === void 0 ? _constants.MULTISELECT_I18N_KEYS.clearText : _i18nKeys$clearText,
@@ -1150,7 +1145,7 @@ var AdvancedGroupMultiSelect = /*#__PURE__*/function (_React$Component) {
1150
1145
  a11y: {
1151
1146
  role: 'heading'
1152
1147
  }
1153
- })), /*#__PURE__*/_react["default"].createElement(_Suggestions["default"], _extends({}, SuggestionsProps, {
1148
+ })), /*#__PURE__*/_react["default"].createElement(_Suggestions["default"], {
1154
1149
  suggestions: suggestions,
1155
1150
  selectedOptions: selectedOptionIds,
1156
1151
  getRef: _this5.suggestionItemRef,
@@ -1165,7 +1160,7 @@ var AdvancedGroupMultiSelect = /*#__PURE__*/function (_React$Component) {
1165
1160
  limit: limit,
1166
1161
  limitReachedMessage: limitReachedMessage,
1167
1162
  dataId: "".concat(dataId, "_Options")
1168
- })));
1163
+ }));
1169
1164
  }) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
1170
1165
  options: revampedGroups,
1171
1166
  searchString: searchStr,
@@ -1171,9 +1171,9 @@ var MultiSelectComponent = /*#__PURE__*/function (_React$Component) {
1171
1171
  isLoading = _this$props15.isLoading,
1172
1172
  selectAllText = _this$props15.selectAllText,
1173
1173
  needSelectAll = _this$props15.needSelectAll,
1174
+ customProps = _this$props15.customProps,
1174
1175
  isVirtualizerEnabled = _this$props15.isVirtualizerEnabled,
1175
- limit = _this$props15.limit,
1176
- customProps = _this$props15.customProps;
1176
+ limit = _this$props15.limit;
1177
1177
  var _this$state9 = this.state,
1178
1178
  selectedOptions = _this$state9.selectedOptions,
1179
1179
  searchStr = _this$state9.searchStr,
@@ -247,19 +247,15 @@ var Suggestions = /*#__PURE__*/function (_React$PureComponent) {
247
247
  htmlId = _this$props2.htmlId,
248
248
  a11y = _this$props2.a11y,
249
249
  getVirtualizerPublicMethods = _this$props2.getVirtualizerPublicMethods,
250
- setVirtualizerContainerRefFunction = _this$props2.setVirtualizerContainerRefFunction,
251
- customClass = _this$props2.customClass;
250
+ setVirtualizerContainerRefFunction = _this$props2.setVirtualizerContainerRefFunction;
252
251
  var ariaParentRole = a11y.ariaParentRole,
253
252
  ariaMultiselectable = a11y.ariaMultiselectable;
254
- var _customClass$containe = customClass.containerClass,
255
- containerClass = _customClass$containe === void 0 ? '' : _customClass$containe;
256
253
  return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
257
254
  isCover: false,
258
255
  role: ariaParentRole,
259
256
  id: htmlId,
260
257
  tabindex: "0",
261
- "aria-multiselectable": ariaMultiselectable,
262
- className: containerClass
258
+ "aria-multiselectable": ariaMultiselectable
263
259
  }, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
264
260
  dataId: "".concat(dataId),
265
261
  className: className ? className : ''
@@ -46,7 +46,6 @@ var AdvancedGroupMultiSelect_defaultProps = {
46
46
  palette: 'default',
47
47
  isLoading: false,
48
48
  dataSelectorId: 'advancedGroupMultiSelect',
49
- customProps: {},
50
49
  allowValueFallback: true
51
50
  };
52
51
  exports.AdvancedGroupMultiSelect_defaultProps = AdvancedGroupMultiSelect_defaultProps;
@@ -185,7 +184,6 @@ exports.SelectedOptions_defaultProps = SelectedOptions_defaultProps;
185
184
  var Suggestions_defaultProps = {
186
185
  a11y: {},
187
186
  isVirtualizerEnabled: false,
188
- customClass: {},
189
187
  needMultiLineText: false
190
188
  };
191
189
  exports.Suggestions_defaultProps = Suggestions_defaultProps;
@@ -133,8 +133,7 @@ var MultiSelect_propTypes = {
133
133
  setAriaId: _propTypes["default"].string,
134
134
  ariaErrorId: _propTypes["default"].string,
135
135
  customProps: _propTypes["default"].shape({
136
- TextBoxIconProps: _propTypes["default"].object,
137
- SuggestionsProps: _propTypes["default"].object
136
+ TextBoxIconProps: _propTypes["default"].object
138
137
  }),
139
138
  isFocus: _propTypes["default"].bool,
140
139
  allowValueFallback: _propTypes["default"].bool,
@@ -190,8 +189,7 @@ var SelectedOptions_propTypes = {
190
189
  limit: _propTypes["default"].number
191
190
  };
192
191
  exports.SelectedOptions_propTypes = SelectedOptions_propTypes;
193
-
194
- var Suggestions_propTypes = _defineProperty({
192
+ var Suggestions_propTypes = {
195
193
  a11y: _propTypes["default"].shape({
196
194
  ariaParentRole: _propTypes["default"].string,
197
195
  ariaMultiselectable: _propTypes["default"].bool
@@ -225,12 +223,8 @@ var Suggestions_propTypes = _defineProperty({
225
223
  })),
226
224
  renderBeforeChildren: _propTypes["default"].oneOfType([_propTypes["default"].func, _propTypes["default"].node]),
227
225
  limit: _propTypes["default"].number,
228
- limitReachedMessage: _propTypes["default"].string,
229
- customClass: _propTypes["default"].shape({
230
- containerClass: _propTypes["default"].string
231
- })
232
- }, "needMultiLineText", _propTypes["default"].bool);
233
-
226
+ limitReachedMessage: _propTypes["default"].string
227
+ };
234
228
  exports.Suggestions_propTypes = Suggestions_propTypes;
235
229
  var AdvancedGroupMultiSelect_propTypes = (_AdvancedGroupMultiSe = {
236
230
  animationStyle: _propTypes["default"].string,
@@ -301,9 +295,7 @@ var AdvancedGroupMultiSelect_propTypes = (_AdvancedGroupMultiSe = {
301
295
  needToCloseOnSelect: _propTypes["default"].func,
302
296
  searchStr: _propTypes["default"].string,
303
297
  children: _propTypes["default"].node
304
- }, _defineProperty(_AdvancedGroupMultiSe, "dataSelectorId", _propTypes["default"].string), _defineProperty(_AdvancedGroupMultiSe, "isFocus", _propTypes["default"].bool), _defineProperty(_AdvancedGroupMultiSe, "allowValueFallback", _propTypes["default"].bool), _defineProperty(_AdvancedGroupMultiSe, "limit", _propTypes["default"].number), _defineProperty(_AdvancedGroupMultiSe, "customProps", _propTypes["default"].shape({
305
- SuggestionsProps: _propTypes["default"].object
306
- })), _AdvancedGroupMultiSe);
298
+ }, _defineProperty(_AdvancedGroupMultiSe, "dataSelectorId", _propTypes["default"].string), _defineProperty(_AdvancedGroupMultiSe, "isFocus", _propTypes["default"].bool), _defineProperty(_AdvancedGroupMultiSe, "allowValueFallback", _propTypes["default"].bool), _defineProperty(_AdvancedGroupMultiSe, "limit", _propTypes["default"].number), _AdvancedGroupMultiSe);
307
299
  exports.AdvancedGroupMultiSelect_propTypes = AdvancedGroupMultiSelect_propTypes;
308
300
 
309
301
  var AdvancedMultiSelect_propTypes = _objectSpread(_objectSpread({}, MultiSelect_propTypes), {}, {
@@ -700,8 +700,7 @@ var GroupSelectComponent = /*#__PURE__*/function (_PureComponent) {
700
700
  TextBoxIconProps = _customProps$TextBoxI === void 0 ? {} : _customProps$TextBoxI,
701
701
  _customProps$TextBoxP = customProps.TextBoxProps,
702
702
  TextBoxProps = _customProps$TextBoxP === void 0 ? {} : _customProps$TextBoxP,
703
- _customProps$Suggesti = customProps.SuggestionsProps,
704
- SuggestionsProps = _customProps$Suggesti === void 0 ? {} : _customProps$Suggesti;
703
+ SuggestionsProps = customProps.SuggestionsProps;
705
704
  return /*#__PURE__*/_react["default"].createElement("div", {
706
705
  className: "".concat(_SelectModule["default"].container, " ").concat(_SelectModule["default"]["box_".concat(size)], " ").concat(isReadOnly ? _SelectModule["default"].readonly : '', " ").concat(borderColor === 'transparent' ? _SelectModule["default"].transparentContainer : '', " ").concat(iconOnHover && (isReadOnly || isDisabled) ? _SelectModule["default"].iconOnHoverReadonly : iconOnHover && !(isReadOnly || isDisabled) ? _SelectModule["default"].iconOnHoverStyle : ''),
707
706
  "data-id": dataIdSlctComp,
@@ -885,7 +885,9 @@ var SelectComponent = /*#__PURE__*/function (_Component) {
885
885
  _customProps$Suggesti = customProps.SuggestionsProps,
886
886
  SuggestionsProps = _customProps$Suggesti === void 0 ? {} : _customProps$Suggesti,
887
887
  _customProps$TextBoxI = customProps.TextBoxIconProps,
888
- TextBoxIconProps = _customProps$TextBoxI === void 0 ? {} : _customProps$TextBoxI;
888
+ TextBoxIconProps = _customProps$TextBoxI === void 0 ? {} : _customProps$TextBoxI,
889
+ _customProps$InputFie = customProps.InputFieldLineProps,
890
+ InputFieldLineProps = _customProps$InputFie === void 0 ? {} : _customProps$InputFie;
889
891
  var inputFieldLineA11yAttributes = this.getInputFieldLineA11y({
890
892
  setAriaId: setAriaId,
891
893
  isReadOnly: isReadOnly,
@@ -903,17 +905,18 @@ var SelectComponent = /*#__PURE__*/function (_Component) {
903
905
  ref: getTargetRef,
904
906
  "data-id": "".concat(isDisabled ? "".concat(dataId, "_disabled") : isReadOnly ? "".concat(dataId, "_readOnly") : dataId),
905
907
  "data-test-id": "".concat(isDisabled ? "".concat(dataId, "_disabled") : isReadOnly ? "".concat(dataId, "_readOnly") : dataId)
906
- }, (0, _utils.isRenderable)(renderCustomSelectedValue) ? /*#__PURE__*/_react["default"].createElement(_InputFieldLine["default"], {
907
- isActive: isPopupReady,
908
+ }, (0, _utils.isRenderable)(renderCustomSelectedValue) ? /*#__PURE__*/_react["default"].createElement(_InputFieldLine["default"], _extends({
908
909
  border: needBorder ? 'bottom' : 'none',
910
+ hasPadding: true
911
+ }, InputFieldLineProps, {
912
+ isActive: isPopupReady,
909
913
  size: size,
910
914
  borderColor: borderColor,
911
915
  isDisabled: isDisabled,
912
916
  isReadOnly: isReadOnly,
913
917
  onKeyDown: this.handleKeyDown,
914
- hasPadding: true,
915
918
  a11yAttributes: inputFieldLineA11yAttributes
916
- }, (0, _utils.renderNode)(renderCustomSelectedValue, {
919
+ }), (0, _utils.renderNode)(renderCustomSelectedValue, {
917
920
  isDisabled: isDisabled,
918
921
  isPopupOpen: isPopupOpen,
919
922
  isReadOnly: isReadOnly,
@@ -221,8 +221,8 @@ var SelectWithAvatarComponent = /*#__PURE__*/function (_SelectComponent) {
221
221
  needEffect = _this$props.needEffect,
222
222
  isLoading = _this$props.isLoading,
223
223
  dataSelectorId = _this$props.dataSelectorId,
224
- getTargetRef = _this$props.getTargetRef,
225
- customProps = _this$props.customProps;
224
+ customProps = _this$props.customProps,
225
+ getTargetRef = _this$props.getTargetRef;
226
226
  i18nKeys = Object.assign({}, i18nKeys, {
227
227
  emptyText: i18nKeys.emptyText || emptyMessage,
228
228
  searchEmptyText: i18nKeys.searchEmptyText || searchEmptyMessage
@@ -245,8 +245,7 @@ var SelectWithAvatarComponent = /*#__PURE__*/function (_SelectComponent) {
245
245
  var ariaErrorId = this.getNextAriaId();
246
246
  var TextBoxProps = customProps.TextBoxProps,
247
247
  DropdownSearchTextBoxProps = customProps.DropdownSearchTextBoxProps,
248
- _customProps$Suggesti = customProps.SuggestionsProps,
249
- SuggestionsProps = _customProps$Suggesti === void 0 ? {} : _customProps$Suggesti;
248
+ SuggestionsProps = customProps.SuggestionsProps;
250
249
  return /*#__PURE__*/_react["default"].createElement("div", {
251
250
  className: "".concat(_MultiSelectModule["default"].wrapper, " ").concat(isDisabled ? _MultiSelectModule["default"].disabled : '', " ").concat(isReadOnly ? _MultiSelectModule["default"].readOnly : '', " ").concat(needEffect && !(isDisabled || isReadOnly) ? _MultiSelectModule["default"].effect : '', " ").concat(className ? className : ''),
252
251
  "data-id": "".concat(isDisabled ? "".concat(dataId, "_disabled") : isReadOnly ? "".concat(dataId, "_readOnly") : dataId),
@@ -431,8 +431,7 @@ var SelectWithIcon = /*#__PURE__*/function (_Component) {
431
431
  htmlId = _this$props7.htmlId,
432
432
  isLoading = _this$props7.isLoading,
433
433
  dataSelectorId = _this$props7.dataSelectorId,
434
- customProps = _this$props7.customProps,
435
- customClass = _this$props7.customClass;
434
+ customProps = _this$props7.customProps;
436
435
  i18nKeys = Object.assign({}, i18nKeys, {
437
436
  emptyText: i18nKeys.emptyText || emptyMessage,
438
437
  searchEmptyText: i18nKeys.searchEmptyText || searchEmptyMessage
@@ -450,10 +449,7 @@ var SelectWithIcon = /*#__PURE__*/function (_Component) {
450
449
  DropdownSearchTextBoxProps = _customProps$Dropdown === void 0 ? {} : _customProps$Dropdown,
451
450
  _customProps$TextBoxI = customProps.TextBoxIconProps,
452
451
  TextBoxIconProps = _customProps$TextBoxI === void 0 ? {} : _customProps$TextBoxI,
453
- _customProps$ListItem = customProps.ListItemProps,
454
- ListItemProps = _customProps$ListItem === void 0 ? {} : _customProps$ListItem;
455
- var _customClass$dropBoxC = customClass.dropBoxClass,
456
- dropBoxClass = _customClass$dropBoxC === void 0 ? '' : _customClass$dropBoxC;
452
+ ListItemProps = customProps.ListItemProps;
457
453
  return /*#__PURE__*/_react["default"].createElement("div", {
458
454
  className: "".concat(_SelectModule["default"].container, " ").concat(_SelectModule["default"]["box_".concat(size)], " ").concat(isReadOnly ? _SelectModule["default"].readonly : '', " ").concat(borderColor === 'transparent' ? _SelectModule["default"].transparentContainer : ''),
459
455
  "data-title": isDisabled ? title : null,
@@ -546,10 +542,7 @@ var SelectWithIcon = /*#__PURE__*/function (_Component) {
546
542
  size: boxSize,
547
543
  isPadding: false,
548
544
  isResponsivePadding: true,
549
- alignBox: "row",
550
- customClass: {
551
- customDropBox: dropBoxClass
552
- }
545
+ alignBox: "row"
553
546
  }, isLoading ? /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
554
547
  align: "both",
555
548
  className: _SelectModule["default"].loader
@@ -1203,6 +1203,11 @@ describe('Select snapshot - ', function () {
1203
1203
  },
1204
1204
  listItemProps: {
1205
1205
  'data-custom-listitem-attr': 'true'
1206
+ },
1207
+ InputFieldLineProps: {
1208
+ tagAttributes: {
1209
+ 'data-custom-attr': 'true'
1210
+ }
1206
1211
  }
1207
1212
  }
1208
1213
  })),
@@ -91,8 +91,7 @@ var GroupSelect_defaultProps = {
91
91
  allowValueFallback: true
92
92
  };
93
93
  exports.GroupSelect_defaultProps = GroupSelect_defaultProps;
94
-
95
- var SelectWithAvatar_defaultProps = _defineProperty({
94
+ var SelectWithAvatar_defaultProps = {
96
95
  animationStyle: 'bounce',
97
96
  defaultDropBoxPosition: 'bottom',
98
97
  dropBoxSize: 'small',
@@ -118,8 +117,7 @@ var SelectWithAvatar_defaultProps = _defineProperty({
118
117
  customProps: {},
119
118
  needEffect: true,
120
119
  isLoading: false
121
- }, "customProps", {});
122
-
120
+ };
123
121
  exports.SelectWithAvatar_defaultProps = SelectWithAvatar_defaultProps;
124
122
  var SelectWithIcon_defaultProps = (_SelectWithIcon_defau = {
125
123
  isReadOnly: false,
@@ -130,5 +128,5 @@ var SelectWithIcon_defaultProps = (_SelectWithIcon_defau = {
130
128
  needListBorder: false,
131
129
  needSearch: false,
132
130
  boxSize: 'default'
133
- }, _defineProperty(_SelectWithIcon_defau, "needListBorder", false), _defineProperty(_SelectWithIcon_defau, "needCloseOnSelect", true), _defineProperty(_SelectWithIcon_defau, "borderColor", 'default'), _defineProperty(_SelectWithIcon_defau, "needTick", true), _defineProperty(_SelectWithIcon_defau, "searchBoxSize", 'small'), _defineProperty(_SelectWithIcon_defau, "size", 'medium'), _defineProperty(_SelectWithIcon_defau, "searchFields", []), _defineProperty(_SelectWithIcon_defau, "textBoxSize", 'medium'), _defineProperty(_SelectWithIcon_defau, "textBoxVariant", 'default'), _defineProperty(_SelectWithIcon_defau, "dataId", 'selectWithIcon'), _defineProperty(_SelectWithIcon_defau, "dataSelectorId", 'selectWithIcon'), _defineProperty(_SelectWithIcon_defau, "dropBoxSize", 'small'), _defineProperty(_SelectWithIcon_defau, "needIcon", true), _defineProperty(_SelectWithIcon_defau, "iconSize", '14'), _defineProperty(_SelectWithIcon_defau, "i18nKeys", {}), _defineProperty(_SelectWithIcon_defau, "isLoading", false), _defineProperty(_SelectWithIcon_defau, "isAbsolutePositioningNeeded", true), _defineProperty(_SelectWithIcon_defau, "isRestrictScroll", false), _defineProperty(_SelectWithIcon_defau, "customProps", {}), _defineProperty(_SelectWithIcon_defau, "customClass", {}), _SelectWithIcon_defau);
131
+ }, _defineProperty(_SelectWithIcon_defau, "needListBorder", false), _defineProperty(_SelectWithIcon_defau, "needCloseOnSelect", true), _defineProperty(_SelectWithIcon_defau, "borderColor", 'default'), _defineProperty(_SelectWithIcon_defau, "needTick", true), _defineProperty(_SelectWithIcon_defau, "searchBoxSize", 'small'), _defineProperty(_SelectWithIcon_defau, "size", 'medium'), _defineProperty(_SelectWithIcon_defau, "searchFields", []), _defineProperty(_SelectWithIcon_defau, "textBoxSize", 'medium'), _defineProperty(_SelectWithIcon_defau, "textBoxVariant", 'default'), _defineProperty(_SelectWithIcon_defau, "dataId", 'selectWithIcon'), _defineProperty(_SelectWithIcon_defau, "dataSelectorId", 'selectWithIcon'), _defineProperty(_SelectWithIcon_defau, "dropBoxSize", 'small'), _defineProperty(_SelectWithIcon_defau, "needIcon", true), _defineProperty(_SelectWithIcon_defau, "iconSize", '14'), _defineProperty(_SelectWithIcon_defau, "i18nKeys", {}), _defineProperty(_SelectWithIcon_defau, "isLoading", false), _defineProperty(_SelectWithIcon_defau, "isAbsolutePositioningNeeded", true), _defineProperty(_SelectWithIcon_defau, "isRestrictScroll", false), _defineProperty(_SelectWithIcon_defau, "customProps", {}), _SelectWithIcon_defau);
134
132
  exports.SelectWithIcon_defaultProps = SelectWithIcon_defaultProps;
@@ -103,7 +103,8 @@ var Select_propTypes = {
103
103
  TextBoxIconProps: _propTypes["default"].object,
104
104
  DropdownSearchTextBoxProps: _propTypes["default"].object,
105
105
  listItemProps: _propTypes["default"].object,
106
- SuggestionsProps: _propTypes["default"].object
106
+ SuggestionsProps: _propTypes["default"].object,
107
+ InputFieldLineProps: _propTypes["default"].object
107
108
  }),
108
109
  isLoading: _propTypes["default"].bool,
109
110
  dataSelectorId: _propTypes["default"].string,
@@ -203,8 +204,7 @@ var GroupSelect_propTypes = {
203
204
  isDefaultSelectValue: _propTypes["default"].bool,
204
205
  customProps: _propTypes["default"].shape({
205
206
  TextBoxProps: _propTypes["default"].object,
206
- TextBoxIconProps: _propTypes["default"].object,
207
- SuggestionsProps: _propTypes["default"].object
207
+ TextBoxIconProps: _propTypes["default"].object
208
208
  }),
209
209
  allowValueFallback: _propTypes["default"].bool
210
210
  };
@@ -269,10 +269,7 @@ var SelectWithAvatar_propTypes = _objectSpread(_objectSpread({}, Select_propType
269
269
  htmlId: _propTypes["default"].string,
270
270
  needEffect: _propTypes["default"].bool,
271
271
  isLoading: _propTypes["default"].bool,
272
- dataSelectorId: _propTypes["default"].string,
273
- customProps: _propTypes["default"].shape({
274
- SuggestionsProps: _propTypes["default"].object
275
- })
272
+ dataSelectorId: _propTypes["default"].string
276
273
  });
277
274
 
278
275
  exports.SelectWithAvatar_propTypes = SelectWithAvatar_propTypes;
@@ -339,11 +336,7 @@ var SelectWithIcon_propTypes = {
339
336
  TextBoxProps: _propTypes["default"].object,
340
337
  DropdownSearchTextBoxProps: _propTypes["default"].object,
341
338
  SuggestionsProps: _propTypes["default"].object,
342
- TextBoxIconProps: _propTypes["default"].object,
343
- ListItemProps: _propTypes["default"].object
344
- }),
345
- customClass: _propTypes["default"].shape({
346
- dropBoxClass: _propTypes["default"].string
339
+ TextBoxIconProps: _propTypes["default"].object
347
340
  })
348
341
  };
349
342
  exports.SelectWithIcon_propTypes = SelectWithIcon_propTypes;
@@ -176,7 +176,6 @@ var TextBoxIcon = /*#__PURE__*/function (_React$Component) {
176
176
  return /*#__PURE__*/_react["default"].createElement(_InputFieldLine["default"], {
177
177
  isActive: isActive || isFocus,
178
178
  border: needBorder ? 'bottom' : 'none',
179
- size: size,
180
179
  borderColor: borderColor,
181
180
  hasEffect: needEffect,
182
181
  isDisabled: isDisabled,
@@ -501,7 +501,7 @@
501
501
  }
502
502
  .lineClamp {
503
503
  composes: wbreak clamp;
504
- -webkit-line-clamp: var(--line-clamp, 3);
504
+ -webkit-line-clamp: var(--line-clamp,2);
505
505
  }
506
506
 
507
507
  .offSelection {
@@ -47,7 +47,8 @@ function InputFieldLine(props) {
47
47
  dataId: dataId,
48
48
  onClick: onClick,
49
49
  onKeyDown: onKeyDown,
50
- className: "".concat(_InputFieldLineModule["default"].varClass, " ").concat(_InputFieldLineModule["default"].customContainer, " ").concat(hasPadding ? _InputFieldLineModule["default"][size] : '', " ").concat(borderClass, " ").concat(isDisabled ? _InputFieldLineModule["default"].disabled : isReadOnly ? hasEffect ? _InputFieldLineModule["default"].effect : _InputFieldLineModule["default"].readonly : _InputFieldLineModule["default"].effect, " ").concat(border !== 'none' ? "".concat(borderColorClass, " ").concat(_InputFieldLineModule["default"].hasBorder) : '', " ").concat(isActive && !(isDisabled || isReadOnly) ? _InputFieldLineModule["default"].active : '', " ").concat(customClass)
50
+ scroll: !!size ? 'vertical' : undefined,
51
+ className: "".concat(_InputFieldLineModule["default"].varClass, " ").concat(_InputFieldLineModule["default"].customContainer, " ").concat(!!size ? _InputFieldLineModule["default"][size] : '', " ").concat(hasPadding ? _InputFieldLineModule["default"]["padding_".concat(size)] : '', " ").concat(borderClass, " ").concat(isDisabled ? _InputFieldLineModule["default"].disabled : isReadOnly ? hasEffect ? _InputFieldLineModule["default"].effect : _InputFieldLineModule["default"].readonly : _InputFieldLineModule["default"].effect, " ").concat(border !== 'none' ? "".concat(borderColorClass, " ").concat(_InputFieldLineModule["default"].hasBorder) : '', " ").concat(isActive && !(isDisabled || isReadOnly) ? _InputFieldLineModule["default"].active : '', " ").concat(customClass)
51
52
  }), children);
52
53
  }
53
54
 
@@ -6,12 +6,12 @@
6
6
  }
7
7
 
8
8
  .customContainer {
9
- composes: oflowy from '../../common/common.module.css';
10
9
  cursor: var(--local_cursor);
11
10
  border-color: var(--local_inputFieldLine_border_color);
12
11
  }
13
12
 
14
- .disabled,.readonly {
13
+ .disabled,
14
+ .readonly {
15
15
  --local_cursor: not-allowed;
16
16
  }
17
17
 
@@ -57,28 +57,34 @@
57
57
  border-style: solid;
58
58
  }
59
59
 
60
+ .padding_small,
61
+ .padding_xmedium {
62
+ --local_padding: var(--zd_size3);
63
+ }
64
+
65
+ .padding_medium,
66
+ .padding_large {
67
+ --local_padding: var(--zd_size8);
68
+ }
69
+
60
70
  .xmedium {
61
71
  min-height: var(--zd_size30) ;
62
- --local_padding: var(--zd_size3);
63
72
  }
64
73
 
65
74
  .small {
66
75
  max-height: var(--zd_size200) ;
67
- --local_padding: var(--zd_size3);
68
76
  }
69
77
 
70
78
  .medium {
71
79
  max-height: var(--zd_size350) ;
72
- --local_padding: var(--zd_size8);
73
80
  }
74
81
 
75
82
  .large {
76
83
  max-height: var(--zd_size400) ;
77
- --local_padding: var(--zd_size8);
78
84
  }
79
85
 
80
86
  .border_bottom {
81
- border-width: 0 0 var(--local_inputFieldLine_border_width) 0;
87
+ border-width: 0 0 var(--local_inputFieldLine_border_width) 0;
82
88
  padding-bottom: var(--local_padding);
83
89
  }
84
90
 
@@ -11,7 +11,7 @@ var _useDropboxPosCalc2 = _interopRequireDefault(require("../../../DropBox/DropB
11
11
 
12
12
  var _cssJSLogic2 = _interopRequireDefault(require("../../../DropBox/DropBoxElement/css/cssJSLogic"));
13
13
 
14
- var _DropBoxPositionMapping = require("../../../DropBox/DropBoxPositionMapping.js");
14
+ var _positioning = require("@zohodesk/dotkit/es/react/components/Popup/utils/positioning");
15
15
 
16
16
  var _defaultProps = require("./props/defaultProps");
17
17
 
@@ -74,13 +74,13 @@ function DropBoxElement(props) {
74
74
  ariaMultiselectable = a11y.ariaMultiselectable,
75
75
  ariaLabelledby = a11y.ariaLabelledby;
76
76
  boxPosition = boxPosition && boxPosition != 'undefined' ? boxPosition : 'bottomCenter';
77
- var boxDirection = _DropBoxPositionMapping.positionMapping[boxPosition].direction;
77
+ var boxDirection = _positioning.positionMapping[boxPosition].direction;
78
78
 
79
79
  if (isAbsolute) {
80
- arrowPosition = arrowPosition ? arrowPosition : _DropBoxPositionMapping.positionMapping[boxPosition].arrowPosition;
81
- boxPosition = _DropBoxPositionMapping.positionMapping[boxPosition].positionStyle;
80
+ arrowPosition = arrowPosition ? arrowPosition : _positioning.positionMapping[boxPosition].arrowPosition;
81
+ boxPosition = _positioning.positionMapping[boxPosition].positionStyle;
82
82
  } else {
83
- arrowPosition = _DropBoxPositionMapping.positionMapping[boxPosition].arrowPosition;
83
+ arrowPosition = _positioning.positionMapping[boxPosition].arrowPosition;
84
84
  }
85
85
 
86
86
  var _useDropboxPosCalc = (0, _useDropboxPosCalc2["default"])(props),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/components",
3
- "version": "1.0.0-temp-199.20",
3
+ "version": "1.0.0-temp-248",
4
4
  "main": "es/index.js",
5
5
  "module": "es/index.js",
6
6
  "private": false,
@@ -39,7 +39,7 @@
39
39
  "build:css:umd": "npm run clean && npm run init && react-cli build:css:umd",
40
40
  "coverage": "react-cli coverage",
41
41
  "prepare": "npm run init && npm run css:build ",
42
- "prepublishOnly": "node prePublish.js && npm run css:review && npm run review:props ",
42
+ "prepublishOnly": "node prePublish.js && npm run download_only && npm run css:review && npm run review:props ",
43
43
  "postpublish": "node postPublish.js",
44
44
  "report": "react-cli publish:report",
45
45
  "test": "react-cli test",
@@ -80,7 +80,7 @@
80
80
  "@zohodesk-private/react-prop-validator": "1.2.3",
81
81
  "@zohodesk/a11y": "2.3.8",
82
82
  "@zohodesk/docstool": "1.0.0-alpha-2",
83
- "@zohodesk/dotkit": "1.0.5",
83
+ "@zohodesk/dotkit": "1.0.6",
84
84
  "@zohodesk/hooks": "2.0.6",
85
85
  "@zohodesk/icons": "1.1.6",
86
86
  "@zohodesk/layout": "3.1.0",
@@ -110,7 +110,7 @@
110
110
  "@zohodesk/utils": "1.3.16",
111
111
  "@zohodesk/a11y": "2.3.8",
112
112
  "@zohodesk/layout": "3.1.0",
113
- "@zohodesk/dotkit": "1.0.5",
113
+ "@zohodesk/dotkit": "1.0.6",
114
114
  "color": "4.2.3"
115
115
  }
116
116
  }