@zohodesk/dot 1.0.0-temp-181.2 → 1.0.0-temp-181.4

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 (80) hide show
  1. package/.cli/UnValidatedFiles.html +101 -0
  2. package/.cli/propValidation_report.html +1 -1
  3. package/README.md +11 -1
  4. package/assets/Appearance/dark/mode/Dot_DarkMode.module.css +3 -0
  5. package/assets/Appearance/light/mode/Dot_LightMode.module.css +3 -0
  6. package/assets/Appearance/pureDark/mode/Dot_PureDarkMode.module.css +3 -0
  7. package/coverage/ExternalLink/ExternalLink.js.html +1 -1
  8. package/coverage/ExternalLink/ExternalLink.module.css.html +1 -1
  9. package/coverage/ExternalLink/index.html +1 -1
  10. package/coverage/ExternalLink/props/defaultProps.js.html +1 -1
  11. package/coverage/ExternalLink/props/index.html +1 -1
  12. package/coverage/ExternalLink/props/propTypes.js.html +1 -1
  13. package/coverage/IconButton/IconButton.js.html +1 -1
  14. package/coverage/IconButton/IconButton.module.css.html +1 -1
  15. package/coverage/IconButton/index.html +1 -1
  16. package/coverage/IconButton/props/defaultProps.js.html +1 -1
  17. package/coverage/IconButton/props/index.html +1 -1
  18. package/coverage/IconButton/props/propTypes.js.html +1 -1
  19. package/coverage/Image/Image.js.html +1 -1
  20. package/coverage/Image/Image.module.css.html +1 -1
  21. package/coverage/Image/index.html +1 -1
  22. package/coverage/Image/props/defaultProps.js.html +1 -1
  23. package/coverage/Image/props/index.html +1 -1
  24. package/coverage/Image/props/propTypes.js.html +1 -1
  25. package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.js.html +1 -1
  26. package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.module.css.html +1 -1
  27. package/coverage/avatar/AvatarWithTeam/index.html +1 -1
  28. package/coverage/avatar/AvatarWithTeam/props/defaultProps.js.html +1 -1
  29. package/coverage/avatar/AvatarWithTeam/props/index.html +1 -1
  30. package/coverage/avatar/AvatarWithTeam/props/propTypes.js.html +1 -1
  31. package/coverage/index.html +1 -1
  32. package/es/form/fields/CheckBoxField/CheckBoxField.js +3 -1
  33. package/es/form/fields/CheckBoxField/props/propTypes.js +1 -0
  34. package/es/form/fields/Fields.module.css +20 -0
  35. package/es/form/fields/RadioField/RadioField.js +12 -3
  36. package/es/form/fields/TagsMultiSelect/TagsMultiSelect.js +4 -4
  37. package/es/form/fields/TagsMultiSelect/TagsMultiSelect.module.css +9 -0
  38. package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +9 -2
  39. package/es/form/fields/TagsMultiSelectField/props/defaultProps.js +3 -1
  40. package/es/form/fields/TagsMultiSelectField/props/propTypes.js +5 -1
  41. package/es/v1/DotWrapper/DotWrapper.js +4 -1
  42. package/es/v1/form/fields/CheckBoxField/CheckBoxField.js +3 -1
  43. package/es/v1/form/fields/CheckBoxField/props/propTypes.js +1 -0
  44. package/es/v1/form/fields/RadioField/RadioField.js +34 -12
  45. package/es/v1/form/fields/RadioField/props/defaultProps.js +1 -0
  46. package/es/v1/form/fields/RadioField/props/propTypes.js +2 -0
  47. package/es/v1/form/fields/RadioField/useRadio.js +44 -0
  48. package/es/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +42 -13
  49. package/es/v1/form/fields/TagsMultiSelect/props/defaultProps.js +4 -1
  50. package/es/v1/form/fields/TagsMultiSelect/props/propTypes.js +10 -1
  51. package/es/v1/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +9 -2
  52. package/es/v1/form/fields/TagsMultiSelectField/props/defaultProps.js +3 -1
  53. package/es/v1/form/fields/TagsMultiSelectField/props/propTypes.js +5 -1
  54. package/es/v1/form/layout/Section/Section.js +3 -2
  55. package/lib/form/fields/CheckBoxField/CheckBoxField.js +3 -1
  56. package/lib/form/fields/CheckBoxField/props/propTypes.js +1 -0
  57. package/lib/form/fields/Fields.module.css +20 -0
  58. package/lib/form/fields/RadioField/RadioField.js +15 -3
  59. package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.js +5 -5
  60. package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.module.css +9 -0
  61. package/lib/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +9 -2
  62. package/lib/form/fields/TagsMultiSelectField/props/defaultProps.js +3 -1
  63. package/lib/form/fields/TagsMultiSelectField/props/propTypes.js +5 -1
  64. package/lib/v1/DotWrapper/DotWrapper.js +7 -1
  65. package/lib/v1/form/fields/CheckBoxField/CheckBoxField.js +3 -1
  66. package/lib/v1/form/fields/CheckBoxField/props/propTypes.js +1 -0
  67. package/lib/v1/form/fields/RadioField/RadioField.js +37 -10
  68. package/lib/v1/form/fields/RadioField/props/defaultProps.js +1 -0
  69. package/lib/v1/form/fields/RadioField/props/propTypes.js +2 -0
  70. package/lib/v1/form/fields/RadioField/useRadio.js +50 -0
  71. package/lib/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +45 -13
  72. package/lib/v1/form/fields/TagsMultiSelect/props/defaultProps.js +4 -1
  73. package/lib/v1/form/fields/TagsMultiSelect/props/propTypes.js +10 -1
  74. package/lib/v1/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +9 -2
  75. package/lib/v1/form/fields/TagsMultiSelectField/props/defaultProps.js +3 -1
  76. package/lib/v1/form/fields/TagsMultiSelectField/props/propTypes.js +5 -1
  77. package/lib/v1/form/layout/Section/Section.js +3 -4
  78. package/package.json +8 -8
  79. package/propValidationArg.json +8 -4
  80. package/result.json +1 -1
@@ -10,6 +10,9 @@ import Icon from '@zohodesk/icons/es/Icon';
10
10
  import Label from '@zohodesk/components/es/v1/Label/Label';
11
11
  import Radio from '@zohodesk/components/es/v1/Radio/Radio';
12
12
  import ValidationMessage from '../ValidationMessage/ValidationMessage';
13
+ /** Hook */
14
+
15
+ import useRadio from './useRadio';
13
16
  /** Css */
14
17
 
15
18
  import style from '../../../../form/fields/Fields.module.css';
@@ -30,11 +33,13 @@ const RadioField = props => {
30
33
  size,
31
34
  selectedValue,
32
35
  isActive,
36
+ getRef,
33
37
  dataId,
34
38
  dataSelectorId,
35
39
  validationRuleMessage,
36
40
  validationRulePalette,
37
41
  isReadOnly,
42
+ isBoxStyle,
38
43
  variant,
39
44
  customProps,
40
45
  onChange
@@ -46,11 +51,16 @@ const RadioField = props => {
46
51
  ValidationMessageProps1 = {},
47
52
  ValidationMessageProps2 = {}
48
53
  } = customProps;
49
-
50
- const handleChange = value => {
51
- onChange && onChange(id, value);
52
- };
53
-
54
+ const {
55
+ handleGetRef,
56
+ handleChange
57
+ } = useRadio({
58
+ id,
59
+ onChange,
60
+ getRef,
61
+ options,
62
+ selectedValue
63
+ });
54
64
  return /*#__PURE__*/React.createElement("div", {
55
65
  className: `${style.container} ${isDisabled ? style.disabled : isReadOnly ? style.readonly : ''}`,
56
66
  "data-title": isDisabled ? title : null,
@@ -63,16 +73,18 @@ const RadioField = props => {
63
73
  customClass: `${style.fieldLabel} ${isMandatory ? style.labelMandatory : ''}`,
64
74
  dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`
65
75
  }, LabelProps)), /*#__PURE__*/React.createElement("div", {
66
- className: `${style.fieldContainer} ${labelName ? style.fieldMargin_medium : ''} ${style.radioContainer}`
76
+ className: `${style.fieldContainer} ${isBoxStyle ? style.radiosWrapper : ''} ${labelName ? style.fieldMargin_medium : ''} ${style.radioContainer}`
67
77
  }, options.map((option, index) => {
68
78
  let {
69
79
  text,
70
80
  value,
81
+ disabled = false,
71
82
  infoTooltip
72
83
  } = option;
84
+ let isChecked = selectedValue == value;
73
85
  return /*#__PURE__*/React.createElement("span", {
74
86
  key: index,
75
- className: `${style.radio} ${!!infoTooltip ? style.labelContainer : ''}`
87
+ className: `${!isBoxStyle ? style.radio : ''} ${style.radioWrap}`
76
88
  }, /*#__PURE__*/React.createElement(Radio, _extends({
77
89
  id: index,
78
90
  value: value,
@@ -80,20 +92,30 @@ const RadioField = props => {
80
92
  text: text,
81
93
  labelPalette: labelPalette,
82
94
  labelSize: labelSize,
83
- active: isActive,
84
- disabled: isDisabled,
95
+ active: isActive || isBoxStyle && isChecked,
96
+ disabled: disabled || isDisabled,
85
97
  onChange: handleChange,
98
+ getRef: handleGetRef,
86
99
  size: size,
87
- checked: selectedValue == value,
100
+ checked: isChecked,
88
101
  dataId: dataId,
89
102
  isReadOnly: isReadOnly,
90
103
  variant: variant
91
- }, RadioProps)), !!infoTooltip ? /*#__PURE__*/React.createElement(Icon, _extends({
104
+ }, RadioProps, {
105
+ a11y: {
106
+ tabIndex: !!selectedValue ? isChecked ? '0' : '-1' : index === 0 ? '0' : '-1',
107
+ ...RadioProps.a11y
108
+ },
109
+ customClass: {
110
+ customRadioWrap: `${isBoxStyle ? style.radioBox : ''} ${isBoxStyle && isChecked ? style.radioBoxActive : ''}`,
111
+ ...RadioProps.customClass
112
+ }
113
+ }), !!infoTooltip ? /*#__PURE__*/React.createElement(Icon, _extends({
92
114
  name: "ZD-GN-info",
93
115
  size: "16",
94
116
  title: infoTooltip,
95
117
  iconClass: style.infoIcon
96
- }, InfoIconProps)) : null);
118
+ }, InfoIconProps)) : null));
97
119
  })), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
98
120
  text: validationMessage,
99
121
  palette: validationPalette,
@@ -1,5 +1,6 @@
1
1
  export const defaultProps = {
2
2
  errorType: 'primary',
3
+ isBoxStyle: false,
3
4
  isMandatory: false,
4
5
  isDisabled: false,
5
6
  isReadOnly: false,
@@ -2,8 +2,10 @@ import PropTypes from 'prop-types';
2
2
  export const propTypes = {
3
3
  dataId: PropTypes.string,
4
4
  errorType: PropTypes.oneOf(['primary', 'secondary']),
5
+ getRef: PropTypes.func,
5
6
  id: PropTypes.string,
6
7
  isActive: PropTypes.bool,
8
+ isBoxStyle: PropTypes.bool,
7
9
  isDisabled: PropTypes.bool,
8
10
  isMandatory: PropTypes.bool,
9
11
  isReadOnly: PropTypes.bool,
@@ -0,0 +1,44 @@
1
+ import { useRef, useEffect } from 'react';
2
+ export default function useRadio(_ref) {
3
+ let {
4
+ id,
5
+ onChange,
6
+ getRef,
7
+ options,
8
+ selectedValue
9
+ } = _ref;
10
+
11
+ const handleChange = value => {
12
+ onChange && onChange(id, value);
13
+ };
14
+
15
+ const radioRef = useRef({
16
+ radios: {},
17
+ focus: () => {}
18
+ }).current;
19
+ const firstRadioValue = options[0].value;
20
+
21
+ function handleGetRef(ele, val) {
22
+ radioRef.radios[val] = ele;
23
+ }
24
+
25
+ function handleFocus() {
26
+ if (!!selectedValue) {
27
+ radioRef.radios[selectedValue].focus();
28
+ } else {
29
+ radioRef.radios[firstRadioValue].focus();
30
+ }
31
+ }
32
+
33
+ useEffect(() => {
34
+ radioRef.focus = handleFocus;
35
+ getRef && getRef(radioRef, id);
36
+ return () => {
37
+ getRef && getRef(null, id);
38
+ };
39
+ }, [getRef]);
40
+ return {
41
+ handleGetRef,
42
+ handleChange
43
+ };
44
+ }
@@ -1,3 +1,5 @@
1
+ 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); }
2
+
1
3
  import React from 'react';
2
4
  import { defaultProps } from './props/defaultProps';
3
5
  import { propTypes } from './props/propTypes';
@@ -11,6 +13,7 @@ import DropDownSeparator from '@zohodesk/components/es/v1/DropDown/DropDownSepar
11
13
  import CommonEmptyState from '../../../emptystate/CommonEmptyState/CommonEmptyState';
12
14
  import ResponsiveDropBox from '@zohodesk/components/es/v1/ResponsiveDropBox/ResponsiveDropBox';
13
15
  import { ResponsiveReceiver } from '@zohodesk/components/es/v1/Responsive/CustomResponsive';
16
+ import MultiSelectHeader from '@zohodesk/components/es/v1/MultiSelect/MultiSelectHeader';
14
17
  import { stopBubbling } from '../../../../utils/General';
15
18
  import { scrollTo, findScrollEnd } from '@zohodesk/components/es/utils/Common.js';
16
19
  import style from '../../../../form/fields/TagsMultiSelect/TagsMultiSelect.module.css';
@@ -140,14 +143,29 @@ export default class TagsMultiSelect extends React.Component {
140
143
  boxSize,
141
144
  onSelectTag,
142
145
  clickableTag,
143
- dataSelectorId
146
+ dataSelectorId,
147
+ handleSelectAll,
148
+ selectAllText,
149
+ needSelectAll,
150
+ customClass,
151
+ customProps
144
152
  } = this.props;
145
153
  let {
146
154
  showAll
147
155
  } = this.state;
148
156
  let chipLimit = !isPopupReady ? showAll ? tagsList.length : chipNeedToShow : tagsList.length;
157
+ let {
158
+ tagCustomClass = '',
159
+ listItemClass = '',
160
+ textBoxIconWrapperClass = ''
161
+ } = customClass;
162
+ const {
163
+ TextBoxIconProps = {},
164
+ TagWrapperProps = {},
165
+ TagProps = {}
166
+ } = customProps;
149
167
  return /*#__PURE__*/React.createElement("div", {
150
- className: ` ${!isReadOnly ? ` ${needBorder ? style.hasBorder : ''}
168
+ className: `${style.container} ${!isReadOnly ? ` ${needBorder ? style.hasBorder : ''}
151
169
  ${needBorder ? style[`borderColor_${borderColor}`] : style.borderColor_transparent} ${isPopupReady && needBorder ? style.active : ''}` : ''} ${className}`,
152
170
  onClick: stopBubbling,
153
171
  "data-id": `${dataId}_tagsContainer`,
@@ -157,7 +175,7 @@ export default class TagsMultiSelect extends React.Component {
157
175
  alignBox: "row",
158
176
  align: "vertical",
159
177
  isCover: false,
160
- className: style.tagDiv,
178
+ className: `${style.tagDiv} ${textBoxIconWrapperClass}`,
161
179
  wrap: "wrap",
162
180
  eleRef: getTargetRef,
163
181
  scroll: "vertical"
@@ -165,20 +183,23 @@ export default class TagsMultiSelect extends React.Component {
165
183
  let {
166
184
  name,
167
185
  tagType,
168
- id
186
+ id,
187
+ boxCustomProps,
188
+ tagCustomProps
169
189
  } = tag;
170
- return index < chipLimit ? /*#__PURE__*/React.createElement(Box, {
190
+ return index < chipLimit ? /*#__PURE__*/React.createElement(Box, _extends({
171
191
  className: style.tag,
172
192
  key: index
173
- }, /*#__PURE__*/React.createElement(Tag, {
193
+ }, TagWrapperProps, boxCustomProps), /*#__PURE__*/React.createElement(Tag, _extends({
174
194
  id: id,
175
195
  text: name,
176
196
  onRemove: isReadOnly ? null : deleteTag.bind(this, name),
177
197
  closeTitle: i18nKeys.deleteText,
178
198
  palette: clickableTag ? 'defaultLink' : tagType === 'SYSTEM' ? 'primary' : 'default',
179
199
  isReadOnly: isReadOnly,
180
- onSelectTag: onSelectTag ? onSelectTag : undefined
181
- })) : null;
200
+ onSelectTag: onSelectTag ? onSelectTag : undefined,
201
+ customClass: tagCustomClass
202
+ }, TagProps, tagCustomProps))) : null;
182
203
  }), tagsList.length > chipNeedToShow && !isPopupReady ? /*#__PURE__*/React.createElement(Box, {
183
204
  className: style.moreLess,
184
205
  dataId: `${dataId}_tagsMore`,
@@ -190,7 +211,7 @@ export default class TagsMultiSelect extends React.Component {
190
211
  className: style.inputWrapper
191
212
  }, /*#__PURE__*/React.createElement("span", {
192
213
  className: style.custmSpan
193
- }, name), /*#__PURE__*/React.createElement(TextBoxIcon, {
214
+ }, name), /*#__PURE__*/React.createElement(TextBoxIcon, _extends({
194
215
  htmlId: htmlId,
195
216
  dataId: `${dataId}_tagInp`,
196
217
  value: name,
@@ -207,7 +228,7 @@ export default class TagsMultiSelect extends React.Component {
207
228
  },
208
229
  size: "xsmall",
209
230
  inputRef: this.textInputRef
210
- }, getTextBoxChildren ? getTextBoxChildren() : null))), isPopupOpen ? /*#__PURE__*/React.createElement(ResponsiveReceiver, {
231
+ }, TextBoxIconProps), getTextBoxChildren ? getTextBoxChildren() : null))), isPopupOpen ? /*#__PURE__*/React.createElement(ResponsiveReceiver, {
211
232
  query: this.responsiveFunc,
212
233
  responsiveId: "Helmet"
213
234
  }, _ref2 => {
@@ -231,7 +252,12 @@ export default class TagsMultiSelect extends React.Component {
231
252
  alignBox: "row"
232
253
  }, /*#__PURE__*/React.createElement(Box, {
233
254
  flexible: true
234
- }, isTagListLoading ? /*#__PURE__*/React.createElement(Container, {
255
+ }, needSelectAll ? /*#__PURE__*/React.createElement(MultiSelectHeader, {
256
+ onSelect: handleSelectAll,
257
+ selectAllText: selectAllText,
258
+ suggestions: searchList,
259
+ dataId: `${dataId}_selectAll`
260
+ }) : null, isTagListLoading ? /*#__PURE__*/React.createElement(Container, {
235
261
  align: "both",
236
262
  className: `${tabletMode ? '' : style.viewpopNew}`
237
263
  }, /*#__PURE__*/React.createElement(Loader, null)) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Container, {
@@ -245,7 +271,8 @@ export default class TagsMultiSelect extends React.Component {
245
271
  }, searchList.map((item, index) => {
246
272
  let {
247
273
  name,
248
- isNew
274
+ isNew,
275
+ listItemProps
249
276
  } = item;
250
277
  return /*#__PURE__*/React.createElement(React.Fragment, null, searchList.length > 1 && isNew ? /*#__PURE__*/React.createElement(DropDownSeparator, null) : null, /*#__PURE__*/React.createElement(ListItem, {
251
278
  key: index,
@@ -257,7 +284,9 @@ export default class TagsMultiSelect extends React.Component {
257
284
  needTick: true,
258
285
  highlight: selectSearchIndex === index,
259
286
  getRef: this.getSelectedItemRef,
260
- isDisabled: listDisabled
287
+ isDisabled: listDisabled,
288
+ customProps: listItemProps,
289
+ customClass: listItemClass
261
290
  }, isNew ? /*#__PURE__*/React.createElement(Container, {
262
291
  alignBox: "row",
263
292
  align: "vertical"
@@ -7,5 +7,8 @@ export const defaultProps = {
7
7
  dataId: '',
8
8
  boxSize: 'default',
9
9
  clickableTag: false,
10
- dataSelectorId: 'tagsMultiSelectField'
10
+ dataSelectorId: 'tagsMultiSelectField',
11
+ needSelectAll: false,
12
+ customClass: {},
13
+ customProps: {}
11
14
  };
@@ -40,5 +40,14 @@ export const propTypes = {
40
40
  boxSize: PropTypes.string,
41
41
  onSelectTag: PropTypes.func,
42
42
  clickableTag: PropTypes.bool,
43
- dataSelectorId: PropTypes.string
43
+ dataSelectorId: PropTypes.string,
44
+ handleSelectAll: PropTypes.func,
45
+ selectAllText: PropTypes.string,
46
+ needSelectAll: PropTypes.bool,
47
+ customClass: PropTypes.object,
48
+ customProps: PropTypes.shape({
49
+ TextBoxIconProps: PropTypes.object,
50
+ TagWrapperProps: PropTypes.object,
51
+ TagProps: PropTypes.object
52
+ })
44
53
  };
@@ -75,7 +75,11 @@ const TagsMultiSelectField = props => {
75
75
  value,
76
76
  selectedValueCount,
77
77
  validationMessage,
78
- options
78
+ options,
79
+ infoText,
80
+ isLocked,
81
+ lockedInfoText,
82
+ alignField
79
83
  } = fieldProperties;
80
84
  options = options || [];
81
85
 
@@ -191,7 +195,10 @@ const TagsMultiSelectField = props => {
191
195
  "data-selector-id": dataSelectorId
192
196
  }, labelName && /*#__PURE__*/React.createElement(FieldContainer, {
193
197
  ePhiData: ePhiData,
194
- alignContainer: "baseline",
198
+ alignContainer: alignField,
199
+ infoText: infoText,
200
+ isLocked: isLocked,
201
+ lockedInfoText: lockedInfoText,
195
202
  renderProps: {
196
203
  end: renderEnd
197
204
  }
@@ -2,7 +2,9 @@ import { FieldCommonDefaultProps } from '../../props/FieldCommonDefaultProps';
2
2
  export const defaultProps = {
3
3
  fieldProperties: {
4
4
  isDisabled: false,
5
- isMandatory: false
5
+ isMandatory: false,
6
+ isLocked: false,
7
+ alignField: 'baseline'
6
8
  },
7
9
  styleProperties: {
8
10
  containerClass: '',
@@ -11,7 +11,11 @@ export const propTypes = {
11
11
  selectedValueCount: PropTypes.string,
12
12
  validationMessage: PropTypes.string,
13
13
  options: PropTypes.array,
14
- clickableTag: PropTypes.bool
14
+ clickableTag: PropTypes.bool,
15
+ infoText: PropTypes.string,
16
+ isLocked: PropTypes.bool,
17
+ lockedInfoText: PropTypes.string,
18
+ alignField: PropTypes.oneOf(['vertical', 'baseline'])
15
19
  }),
16
20
  styleProperties: PropTypes.shape({
17
21
  labelSize: PropTypes.string,
@@ -10,7 +10,8 @@ const Section = props => {
10
10
  titleClass,
11
11
  className,
12
12
  column,
13
- formName
13
+ formName,
14
+ children
14
15
  } = props;
15
16
  return /*#__PURE__*/React.createElement("div", {
16
17
  "data-id": dataId,
@@ -22,7 +23,7 @@ const Section = props => {
22
23
  className: `${className ? className : ''} ${column == 'single' ? style.singleColumn : ''}`,
23
24
  "data-id": formName && formName,
24
25
  "data-test-id": formName && formName
25
- }, this.props.children));
26
+ }, children));
26
27
  };
27
28
 
28
29
  export default Section;
@@ -110,6 +110,7 @@ var CheckBoxField = /*#__PURE__*/function (_PureComponent) {
110
110
  dataSelectorId = _this$props3.dataSelectorId,
111
111
  validationRuleMessage = _this$props3.validationRuleMessage,
112
112
  validationRulePalette = _this$props3.validationRulePalette,
113
+ getContainerRef = _this$props3.getContainerRef,
113
114
  infoText = _this$props3.infoText,
114
115
  fieldSize = _this$props3.fieldSize,
115
116
  labelPalette = _this$props3.labelPalette,
@@ -167,7 +168,8 @@ var CheckBoxField = /*#__PURE__*/function (_PureComponent) {
167
168
  disabled: removeEvent,
168
169
  checked: checked,
169
170
  getRef: this.handleGetRef,
170
- dataId: dataId
171
+ dataId: dataId,
172
+ getContainerRef: getContainerRef
171
173
  }, CheckBoxProps))), !isDirectCol && /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
172
174
  flexible: true
173
175
  }, labelElement)), validationMessage && /*#__PURE__*/_react["default"].createElement(_ValidationMessage["default"], _extends({
@@ -23,6 +23,7 @@ var propTypes = _objectSpread({
23
23
  errorType: _propTypes["default"].oneOf(['primary', 'secondary']),
24
24
  fieldSize: _propTypes["default"].oneOf(['small', 'medium']),
25
25
  getRef: _propTypes["default"].func,
26
+ getContainerRef: _propTypes["default"].func,
26
27
  id: _propTypes["default"].string.isRequired,
27
28
  labelCustomClass: _propTypes["default"].string,
28
29
  labelName: _propTypes["default"].string,
@@ -60,6 +60,26 @@
60
60
  [dir=rtl] .radio {
61
61
  margin: var(--zd_size5) 0 var(--zd_size5) var(--zd_size32) ;
62
62
  }
63
+ .radio, .radioWrap {
64
+ max-width: 100%
65
+ }
66
+ .radiosWrapper {
67
+ gap: var(--zd_size10)
68
+ }
69
+ .radioBox {
70
+ max-width: 100% ;
71
+ height: var(--zd_size36) ;
72
+ transition: border var(--zd_transition3);
73
+ padding: 0 var(--zd_size10) ;
74
+ border: 1px solid var(--zdt_radiofield_box_border);
75
+ border-radius: 6px
76
+ }
77
+ .radioBox:hover, .radioBoxActive {
78
+ border-color: var(--zdt_radiofield_box_active_border)
79
+ }
80
+ .radioBoxActive {
81
+ background-color: var(--zdt_radiofield_box_active_bg)
82
+ }
63
83
  [dir=ltr] .duration {
64
84
  margin-right: var(--zd_size15) ;
65
85
  }
@@ -13,6 +13,8 @@ var _defaultProps = require("./props/defaultProps");
13
13
 
14
14
  var _propTypes = require("./props/propTypes");
15
15
 
16
+ var _Icon = _interopRequireDefault(require("@zohodesk/icons/es/Icon"));
17
+
16
18
  var _Label = _interopRequireDefault(require("@zohodesk/components/lib/Label/Label"));
17
19
 
18
20
  var _Radio = _interopRequireDefault(require("@zohodesk/components/lib/Radio/Radio"));
@@ -103,6 +105,8 @@ var RadioField = /*#__PURE__*/function (_PureComponent) {
103
105
  LabelProps = _customProps$LabelPro === void 0 ? {} : _customProps$LabelPro,
104
106
  _customProps$RadioPro = customProps.RadioProps,
105
107
  RadioProps = _customProps$RadioPro === void 0 ? {} : _customProps$RadioPro,
108
+ _customProps$InfoIcon = customProps.InfoIconProps,
109
+ InfoIconProps = _customProps$InfoIcon === void 0 ? {} : _customProps$InfoIcon,
106
110
  _customProps$Validati = customProps.ValidationMessageProps1,
107
111
  ValidationMessageProps1 = _customProps$Validati === void 0 ? {} : _customProps$Validati,
108
112
  _customProps$Validati2 = customProps.ValidationMessageProps2,
@@ -122,7 +126,10 @@ var RadioField = /*#__PURE__*/function (_PureComponent) {
122
126
  className: "".concat(_FieldsModule["default"].fieldContainer, " ").concat(labelName ? _FieldsModule["default"].fieldMargin_medium : '', " ").concat(_FieldsModule["default"].radioContainer)
123
127
  }, options.map(function (option, index) {
124
128
  var text = option.text,
125
- value = option.value;
129
+ value = option.value,
130
+ _option$disabled = option.disabled,
131
+ disabled = _option$disabled === void 0 ? false : _option$disabled,
132
+ infoTooltip = option.infoTooltip;
126
133
  return /*#__PURE__*/_react["default"].createElement("span", {
127
134
  key: index,
128
135
  className: "".concat(_FieldsModule["default"].radio)
@@ -134,14 +141,19 @@ var RadioField = /*#__PURE__*/function (_PureComponent) {
134
141
  labelPalette: labelPalette,
135
142
  labelSize: labelSize,
136
143
  active: isActive,
137
- disabled: isDisabled,
144
+ disabled: disabled || isDisabled,
138
145
  onChange: _this2.handleChange,
139
146
  size: size,
140
147
  checked: selectedValue == value,
141
148
  dataId: dataId,
142
149
  isReadOnly: isReadOnly,
143
150
  variant: variant
144
- }, RadioProps)));
151
+ }, RadioProps), !!infoTooltip ? /*#__PURE__*/_react["default"].createElement(_Icon["default"], _extends({
152
+ name: "ZD-GN-info",
153
+ size: "16",
154
+ title: infoTooltip,
155
+ iconClass: _FieldsModule["default"].infoIcon
156
+ }, InfoIconProps)) : null));
145
157
  })), validationMessage && /*#__PURE__*/_react["default"].createElement(_ValidationMessage["default"], _extends({
146
158
  text: validationMessage,
147
159
  palette: validationPalette,
@@ -33,12 +33,12 @@ var _ResponsiveDropBox = _interopRequireDefault(require("@zohodesk/components/li
33
33
 
34
34
  var _CustomResponsive = require("@zohodesk/components/lib/Responsive/CustomResponsive");
35
35
 
36
+ var _MultiSelectHeader = _interopRequireDefault(require("@zohodesk/components/lib/MultiSelect/MultiSelectHeader"));
37
+
36
38
  var _General = require("../../../utils/General");
37
39
 
38
40
  var _Common = require("@zohodesk/components/lib/utils/Common.js");
39
41
 
40
- var _MultiSelectHeader = _interopRequireDefault(require("@zohodesk/components/lib/MultiSelect/MultiSelectHeader"));
41
-
42
42
  var _TagsMultiSelectModule = _interopRequireDefault(require("./TagsMultiSelect.module.css"));
43
43
 
44
44
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -225,7 +225,7 @@ var TagsMultiSelect = /*#__PURE__*/function (_React$Component) {
225
225
  _customProps$TagProps = customProps.TagProps,
226
226
  TagProps = _customProps$TagProps === void 0 ? {} : _customProps$TagProps;
227
227
  return /*#__PURE__*/_react["default"].createElement("div", {
228
- className: " ".concat(!isReadOnly ? " ".concat(needBorder ? _TagsMultiSelectModule["default"].hasBorder : '', "\n ").concat(needBorder ? _TagsMultiSelectModule["default"]["borderColor_".concat(borderColor)] : _TagsMultiSelectModule["default"].borderColor_transparent, " ").concat(isPopupReady && needBorder ? _TagsMultiSelectModule["default"].active : '') : '', " ").concat(className),
228
+ className: "".concat(_TagsMultiSelectModule["default"].container, " ").concat(!isReadOnly ? " ".concat(needBorder ? _TagsMultiSelectModule["default"].hasBorder : '', "\n ").concat(needBorder ? _TagsMultiSelectModule["default"]["borderColor_".concat(borderColor)] : _TagsMultiSelectModule["default"].borderColor_transparent, " ").concat(isPopupReady && needBorder ? _TagsMultiSelectModule["default"].active : '') : '', " ").concat(className),
229
229
  onClick: _General.stopBubbling,
230
230
  "data-id": "".concat(dataId, "_tagsContainer"),
231
231
  "data-test-id": "".concat(dataId, "_tagsContainer"),
@@ -247,7 +247,7 @@ var TagsMultiSelect = /*#__PURE__*/function (_React$Component) {
247
247
  return index < chipLimit ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, _extends({
248
248
  className: _TagsMultiSelectModule["default"].tag,
249
249
  key: index
250
- }, boxCustomProps, TagWrapperProps), /*#__PURE__*/_react["default"].createElement(_Tag["default"], _extends({
250
+ }, TagWrapperProps, boxCustomProps), /*#__PURE__*/_react["default"].createElement(_Tag["default"], _extends({
251
251
  id: id,
252
252
  text: name,
253
253
  onRemove: isReadOnly ? null : deleteTag.bind(_this3, name),
@@ -256,7 +256,7 @@ var TagsMultiSelect = /*#__PURE__*/function (_React$Component) {
256
256
  isReadOnly: isReadOnly,
257
257
  onSelectTag: onSelectTag ? onSelectTag : undefined,
258
258
  customClass: tagCustomClass
259
- }, tagCustomProps, TagProps))) : null;
259
+ }, TagProps, tagCustomProps))) : null;
260
260
  }), tagsList.length > chipNeedToShow && !isPopupReady ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
261
261
  className: _TagsMultiSelectModule["default"].moreLess,
262
262
  dataId: "".concat(dataId, "_tagsMore"),
@@ -1,3 +1,6 @@
1
+ .container {
2
+ position: relative;
3
+ }
1
4
  .tag {
2
5
  max-width: 100% ;
3
6
  }
@@ -91,6 +94,12 @@
91
94
  max-width: 100% ;
92
95
  visibility: hidden;
93
96
  }
97
+ [dir=ltr] .custmSpan {
98
+ padding-right: var(--zd_size28) ;
99
+ }
100
+ [dir=rtl] .custmSpan {
101
+ padding-left: var(--zd_size28) ;
102
+ }
94
103
  .custmInp {
95
104
  position: absolute;
96
105
  top: 0 ;
@@ -117,7 +117,11 @@ var TagsMultiSelectField = function TagsMultiSelectField(props) {
117
117
  value = fieldProperties.value,
118
118
  selectedValueCount = fieldProperties.selectedValueCount,
119
119
  validationMessage = fieldProperties.validationMessage,
120
- options = fieldProperties.options;
120
+ options = fieldProperties.options,
121
+ infoText = fieldProperties.infoText,
122
+ isLocked = fieldProperties.isLocked,
123
+ lockedInfoText = fieldProperties.lockedInfoText,
124
+ alignField = fieldProperties.alignField;
121
125
  options = options || [];
122
126
 
123
127
  var handleKeyUp = function handleKeyUp(event) {
@@ -230,7 +234,10 @@ var TagsMultiSelectField = function TagsMultiSelectField(props) {
230
234
  "data-selector-id": dataSelectorId
231
235
  }, labelName && /*#__PURE__*/_react["default"].createElement(_FieldContainer["default"], {
232
236
  ePhiData: ePhiData,
233
- alignContainer: "baseline",
237
+ alignContainer: alignField,
238
+ infoText: infoText,
239
+ isLocked: isLocked,
240
+ lockedInfoText: lockedInfoText,
234
241
  renderProps: {
235
242
  end: renderEnd
236
243
  }
@@ -16,7 +16,9 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
16
16
  var defaultProps = _objectSpread({
17
17
  fieldProperties: {
18
18
  isDisabled: false,
19
- isMandatory: false
19
+ isMandatory: false,
20
+ isLocked: false,
21
+ alignField: 'baseline'
20
22
  },
21
23
  styleProperties: {
22
24
  containerClass: '',
@@ -22,7 +22,11 @@ var propTypes = {
22
22
  selectedValueCount: _propTypes["default"].string,
23
23
  validationMessage: _propTypes["default"].string,
24
24
  options: _propTypes["default"].array,
25
- clickableTag: _propTypes["default"].bool
25
+ clickableTag: _propTypes["default"].bool,
26
+ infoText: _propTypes["default"].string,
27
+ isLocked: _propTypes["default"].bool,
28
+ lockedInfoText: _propTypes["default"].string,
29
+ alignField: _propTypes["default"].oneOf(['vertical', 'baseline'])
26
30
  }),
27
31
  styleProperties: _propTypes["default"].shape({
28
32
  labelSize: _propTypes["default"].string,
@@ -9,6 +9,12 @@ var _react = _interopRequireDefault(require("react"));
9
9
 
10
10
  var _dynamicImports = require("./libraryChunks/dynamicImports");
11
11
 
12
+ require("@zohodesk/components/assets/Contrast/lightContrastLightness.module.css");
13
+
14
+ require("@zohodesk/components/assets/Contrast/darkContrastLightness.module.css");
15
+
16
+ require("@zohodesk/components/assets/Contrast/pureDarkContrastLightness.module.css");
17
+
12
18
  require("@zohodesk/variables/assets/colorVariables.module.css");
13
19
 
14
20
  require("@zohodesk/variables/assets/dotVariables.module.css");
@@ -57,7 +63,7 @@ function DotWrapper(props) {
57
63
  var combinedStyles = _objectSpread(_objectSpread({}, baseZoom), baseFont);
58
64
 
59
65
  return /*#__PURE__*/_react["default"].createElement("div", {
60
- className: "".concat(className, " rootWrapper"),
66
+ className: "rootWrapper ".concat(className),
61
67
  style: combinedStyles
62
68
  }, children);
63
69
  }