@zohodesk/dot 1.4.11 → 1.4.13

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 (120) hide show
  1. package/.cli/propValidation_report.html +1 -1
  2. package/README.md +13 -1
  3. package/assets/Appearance/dark/mode/Dot_DarkMode.module.css +3 -0
  4. package/assets/Appearance/light/mode/Dot_LightMode.module.css +3 -0
  5. package/assets/Appearance/pureDark/mode/Dot_PureDarkMode.module.css +3 -0
  6. package/coverage/ExternalLink/ExternalLink.js.html +1 -1
  7. package/coverage/ExternalLink/ExternalLink.module.css.html +1 -1
  8. package/coverage/ExternalLink/index.html +1 -1
  9. package/coverage/ExternalLink/props/defaultProps.js.html +1 -1
  10. package/coverage/ExternalLink/props/index.html +1 -1
  11. package/coverage/ExternalLink/props/propTypes.js.html +1 -1
  12. package/coverage/IconButton/IconButton.js.html +1 -1
  13. package/coverage/IconButton/IconButton.module.css.html +1 -1
  14. package/coverage/IconButton/index.html +1 -1
  15. package/coverage/IconButton/props/defaultProps.js.html +1 -1
  16. package/coverage/IconButton/props/index.html +1 -1
  17. package/coverage/IconButton/props/propTypes.js.html +1 -1
  18. package/coverage/Image/Image.js.html +1 -1
  19. package/coverage/Image/Image.module.css.html +1 -1
  20. package/coverage/Image/index.html +1 -1
  21. package/coverage/Image/props/defaultProps.js.html +1 -1
  22. package/coverage/Image/props/index.html +1 -1
  23. package/coverage/Image/props/propTypes.js.html +1 -1
  24. package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.js.html +1 -1
  25. package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.module.css.html +1 -1
  26. package/coverage/avatar/AvatarWithTeam/index.html +1 -1
  27. package/coverage/avatar/AvatarWithTeam/props/defaultProps.js.html +1 -1
  28. package/coverage/avatar/AvatarWithTeam/props/index.html +1 -1
  29. package/coverage/avatar/AvatarWithTeam/props/propTypes.js.html +1 -1
  30. package/coverage/index.html +1 -1
  31. package/es/FreezeLayer/FreezeLayer.js +1 -1
  32. package/es/dropdown/ToggleDropDown/ToggleDropDown.js +8 -0
  33. package/es/dropdown/ToggleDropDown/props/defaultProps.js +2 -0
  34. package/es/dropdown/ToggleDropDown/props/propTypes.js +4 -0
  35. package/es/form/fields/CheckBoxField/CheckBoxField.js +3 -1
  36. package/es/form/fields/CheckBoxField/props/propTypes.js +1 -0
  37. package/es/form/fields/Fields.module.css +20 -0
  38. package/es/form/fields/RadioField/RadioField.js +15 -3
  39. package/es/form/fields/TextareaField/TextareaField.js +2 -0
  40. package/es/form/fields/TextareaField/props/propTypes.js +1 -0
  41. package/es/v1/ActionButton/ActionButton.js +1 -1
  42. package/es/v1/AttachmentViewer/AttachmentViewer.js +2 -2
  43. package/es/v1/Drawer/Drawer.js +2 -2
  44. package/es/v1/FlipCard/FlipCard.js +1 -1
  45. package/es/v1/FreezeLayer/FreezeLayer.js +2 -2
  46. package/es/v1/Loader/Loader.js +1 -1
  47. package/es/v1/ToastMessage/ToastMessage.js +2 -2
  48. package/es/v1/alert/AlertLookup/AlertLookup.js +1 -1
  49. package/es/v1/avatar/AvatarIcon/AvatarIcon.js +1 -1
  50. package/es/v1/dropdown/ToggleDropDown/ToggleDropDown.js +11 -3
  51. package/es/v1/dropdown/ToggleDropDown/props/defaultProps.js +2 -0
  52. package/es/v1/dropdown/ToggleDropDown/props/propTypes.js +4 -0
  53. package/es/v1/form/fields/CheckBoxField/CheckBoxField.js +3 -1
  54. package/es/v1/form/fields/CheckBoxField/props/propTypes.js +1 -0
  55. package/es/v1/form/fields/CurrencyField/CurrencyField.js +1 -1
  56. package/es/v1/form/fields/DateField/DateField.js +1 -1
  57. package/es/v1/form/fields/MultiSelectField/MultiSelectField.js +1 -1
  58. package/es/v1/form/fields/RadioField/RadioField.js +37 -12
  59. package/es/v1/form/fields/RadioField/props/defaultProps.js +1 -0
  60. package/es/v1/form/fields/RadioField/props/propTypes.js +2 -0
  61. package/es/v1/form/fields/RadioField/useRadio.js +44 -0
  62. package/es/v1/form/fields/SelectField/SelectField.js +1 -1
  63. package/es/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +1 -1
  64. package/es/v1/form/fields/TextBoxField/TextBoxField.js +1 -1
  65. package/es/v1/form/fields/TextareaField/TextareaField.js +3 -1
  66. package/es/v1/form/fields/TextareaField/props/propTypes.js +1 -0
  67. package/es/v1/list/status/StatusDropdown/StatusDropdown.js +2 -2
  68. package/es/v1/list/status/StatusListItem/StatusListItem.js +1 -1
  69. package/es/v1/lookup/header/ViewDropDown/ViewDropDown.js +1 -1
  70. package/es/v1/notification/DesktopNotification/DesktopNotification.js +1 -1
  71. package/es/v1/notification/DesktopNotification/props/defaultProps.js +1 -1
  72. package/es/v1/notification/DesktopNotificationHeader/props/defaultProps.js +1 -1
  73. package/lib/FreezeLayer/FreezeLayer.js +1 -1
  74. package/lib/dropdown/ToggleDropDown/ToggleDropDown.js +8 -0
  75. package/lib/dropdown/ToggleDropDown/props/defaultProps.js +2 -0
  76. package/lib/dropdown/ToggleDropDown/props/propTypes.js +4 -0
  77. package/lib/form/fields/CheckBoxField/CheckBoxField.js +3 -1
  78. package/lib/form/fields/CheckBoxField/props/propTypes.js +1 -0
  79. package/lib/form/fields/Fields.module.css +20 -0
  80. package/lib/form/fields/RadioField/RadioField.js +18 -3
  81. package/lib/form/fields/TextareaField/TextareaField.js +2 -0
  82. package/lib/form/fields/TextareaField/props/propTypes.js +1 -0
  83. package/lib/v1/ActionButton/ActionButton.js +1 -1
  84. package/lib/v1/AttachmentViewer/AttachmentViewer.js +2 -2
  85. package/lib/v1/Drawer/Drawer.js +2 -2
  86. package/lib/v1/FlipCard/FlipCard.js +1 -1
  87. package/lib/v1/FreezeLayer/FreezeLayer.js +2 -2
  88. package/lib/v1/Loader/Loader.js +1 -1
  89. package/lib/v1/ToastMessage/ToastMessage.js +2 -2
  90. package/lib/v1/alert/AlertLookup/AlertLookup.js +1 -1
  91. package/lib/v1/avatar/AvatarIcon/AvatarIcon.js +1 -1
  92. package/lib/v1/dropdown/ToggleDropDown/ToggleDropDown.js +11 -3
  93. package/lib/v1/dropdown/ToggleDropDown/props/defaultProps.js +2 -0
  94. package/lib/v1/dropdown/ToggleDropDown/props/propTypes.js +4 -0
  95. package/lib/v1/form/fields/CheckBoxField/CheckBoxField.js +3 -1
  96. package/lib/v1/form/fields/CheckBoxField/props/propTypes.js +1 -0
  97. package/lib/v1/form/fields/CurrencyField/CurrencyField.js +1 -1
  98. package/lib/v1/form/fields/DateField/DateField.js +1 -1
  99. package/lib/v1/form/fields/MultiSelectField/MultiSelectField.js +1 -1
  100. package/lib/v1/form/fields/RadioField/RadioField.js +40 -10
  101. package/lib/v1/form/fields/RadioField/props/defaultProps.js +1 -0
  102. package/lib/v1/form/fields/RadioField/props/propTypes.js +2 -0
  103. package/lib/v1/form/fields/RadioField/useRadio.js +50 -0
  104. package/lib/v1/form/fields/SelectField/SelectField.js +1 -1
  105. package/lib/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +1 -1
  106. package/lib/v1/form/fields/TextBoxField/TextBoxField.js +1 -1
  107. package/lib/v1/form/fields/TextareaField/TextareaField.js +3 -1
  108. package/lib/v1/form/fields/TextareaField/props/propTypes.js +1 -0
  109. package/lib/v1/list/status/StatusDropdown/StatusDropdown.js +2 -2
  110. package/lib/v1/list/status/StatusListItem/StatusListItem.js +1 -1
  111. package/lib/v1/lookup/header/ViewDropDown/ViewDropDown.js +1 -1
  112. package/lib/v1/notification/DesktopNotification/DesktopNotification.js +1 -1
  113. package/lib/v1/notification/DesktopNotification/props/defaultProps.js +1 -1
  114. package/lib/v1/notification/DesktopNotificationHeader/props/defaultProps.js +1 -1
  115. package/package.json +6 -6
  116. package/result.json +1 -1
  117. package/es/v1/Provider/Config.js +0 -20
  118. package/lib/v1/Provider/Config.js +0 -29
  119. /package/es/{FreezeLayer → Hooks}/useFreezeLayer.js +0 -0
  120. /package/lib/{FreezeLayer → Hooks}/useFreezeLayer.js +0 -0
@@ -13,13 +13,13 @@ import TextBoxIcon from '@zohodesk/components/es/v1/TextBoxIcon/TextBoxIcon';
13
13
  import Loader from '@zohodesk/svg/lib/Loader/Loader';
14
14
  import CommonEmptyState from '../../emptystate/CommonEmptyState/CommonEmptyState';
15
15
  import EmptySearch from '@zohodesk/svg/lib/emptystate/version3/EmptySearch';
16
- import CssProvider from '@zohodesk/components/es/v1/Provider/CssProvider';
16
+ import CssProvider from '@zohodesk/components/es/Provider/CssProvider';
17
17
  import { scrollTo, findScrollEnd } from '@zohodesk/components/es/utils/Common';
18
- import { getUniqueId } from '@zohodesk/components/es/v1/Provider/IdProvider';
18
+ import { getUniqueId } from '@zohodesk/components/es/Provider/IdProvider';
19
19
  import btnStyle from '@zohodesk/components/es/semantic/Button/semanticButton.module.css';
20
20
  import RippleEffect from '@zohodesk/components/es/v1/RippleEffect/RippleEffect';
21
21
  import ResponsiveDropBox from '@zohodesk/components/es/v1/ResponsiveDropBox/ResponsiveDropBox';
22
- import { ResponsiveReceiver } from '@zohodesk/components/es/v1/Responsive/CustomResponsive';
22
+ import { ResponsiveReceiver } from '@zohodesk/components/es/Responsive/CustomResponsive';
23
23
  import style from '../../../dropdown/ToggleDropDown/ToggleDropDown.module.css';
24
24
  export class ToggleDropDown extends Component {
25
25
  constructor(props) {
@@ -522,6 +522,10 @@ export class ToggleDropDown extends Component {
522
522
  getFooter,
523
523
  customProps,
524
524
  needMultiLineText,
525
+ isAbsolutePositioningNeeded,
526
+ positionsOffset,
527
+ targetOffset,
528
+ isRestrictScroll,
525
529
  customClass
526
530
  } = this.props;
527
531
  let {
@@ -624,6 +628,10 @@ export class ToggleDropDown extends Component {
624
628
  palette: palette,
625
629
  isResponsivePadding: true,
626
630
  needFocusScope: true,
631
+ isAbsolutePositioningNeeded: isAbsolutePositioningNeeded,
632
+ positionsOffset: positionsOffset,
633
+ targetOffset: targetOffset,
634
+ isRestrictScroll: isRestrictScroll,
627
635
  customProps: {
628
636
  focusScopeProps: {
629
637
  loadNextOptions: this.handleGetNextOptions,
@@ -23,5 +23,7 @@ export const defaultProps = {
23
23
  preventPopupClose: false,
24
24
  dataSelectorId: 'toggleDropdown',
25
25
  needMultiLineText: false,
26
+ isAbsolutePositioningNeeded: true,
27
+ isRestrictScroll: false,
26
28
  customClass: {}
27
29
  };
@@ -74,6 +74,10 @@ export const propTypes = {
74
74
  customListBox: PropTypes.string
75
75
  }),
76
76
  onSelectLabel: PropTypes.func,
77
+ isAbsolutePositioningNeeded: PropTypes.bool,
78
+ isRestrictScroll: PropTypes.bool,
79
+ positionsOffset: PropTypes.object,
80
+ targetOffset: PropTypes.object,
77
81
  from: PropTypes.string,
78
82
  top: PropTypes.number
79
83
  };
@@ -42,6 +42,7 @@ function CheckBoxField(props) {
42
42
  customProps,
43
43
  renderLabelProps,
44
44
  getRef,
45
+ getContainerRef,
45
46
  onChange
46
47
  } = props;
47
48
  const {
@@ -100,7 +101,8 @@ function CheckBoxField(props) {
100
101
  disabled: removeEvent,
101
102
  checked: checked,
102
103
  getRef: handleGetRef,
103
- dataId: dataId
104
+ dataId: dataId,
105
+ getContainerRef: getContainerRef
104
106
  }, CheckBoxProps))), !isDirectCol && /*#__PURE__*/React.createElement(Box, {
105
107
  flexible: true
106
108
  }, labelElement)), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
@@ -6,6 +6,7 @@ export const propTypes = {
6
6
  errorType: PropTypes.oneOf(['primary', 'secondary']),
7
7
  fieldSize: PropTypes.oneOf(['small', 'medium']),
8
8
  getRef: PropTypes.func,
9
+ getContainerRef: PropTypes.func,
9
10
  id: PropTypes.string.isRequired,
10
11
  labelCustomClass: PropTypes.string,
11
12
  labelName: PropTypes.string,
@@ -9,7 +9,7 @@ import { propTypes } from './props/propTypes';
9
9
  import Label from '@zohodesk/components/es/v1/Label/Label';
10
10
  import TextBox from '@zohodesk/components/es/v1/TextBox/TextBox';
11
11
  import ValidationMessage from '../ValidationMessage/ValidationMessage';
12
- import { useUniqueId } from '@zohodesk/components/es/v1/Provider/IdProvider';
12
+ import { useUniqueId } from '@zohodesk/components/es/Provider/IdProvider';
13
13
  import FieldContainer from '../FieldContainer/FieldContainer';
14
14
  /**** CSS ****/
15
15
 
@@ -9,7 +9,7 @@ import { propTypes } from './props/propTypes';
9
9
  import Label from '@zohodesk/components/es/v1/Label/Label';
10
10
  import DateWidget from '@zohodesk/components/es/v1/DateTime/DateWidget';
11
11
  import ValidationMessage from '../ValidationMessage/ValidationMessage';
12
- import { useUniqueId } from '@zohodesk/components/es/v1/Provider/IdProvider';
12
+ import { useUniqueId } from '@zohodesk/components/es/Provider/IdProvider';
13
13
  import FieldContainer from '../FieldContainer/FieldContainer';
14
14
  /**** CSS ****/
15
15
 
@@ -9,7 +9,7 @@ import { propTypes } from './props/propTypes';
9
9
  import Label from '@zohodesk/components/es/v1/Label/Label';
10
10
  import MultiSelect from '@zohodesk/components/es/v1/MultiSelect/MultiSelect';
11
11
  import ValidationMessage from '../ValidationMessage/ValidationMessage';
12
- import { useUniqueId } from '@zohodesk/components/es/v1/Provider/IdProvider';
12
+ import { useUniqueId } from '@zohodesk/components/es/Provider/IdProvider';
13
13
  import FieldContainer from '../FieldContainer/FieldContainer';
14
14
  /** CSS */
15
15
 
@@ -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,19 @@ 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,
82
+ tooltip,
71
83
  infoTooltip
72
84
  } = option;
85
+ let isChecked = selectedValue == value;
73
86
  return /*#__PURE__*/React.createElement("span", {
74
87
  key: index,
75
- className: `${style.radio} ${!!infoTooltip ? style.labelContainer : ''}`
88
+ className: `${!isBoxStyle ? style.radio : ''} ${style.radioWrap}`
76
89
  }, /*#__PURE__*/React.createElement(Radio, _extends({
77
90
  id: index,
78
91
  value: value,
@@ -80,20 +93,32 @@ const RadioField = props => {
80
93
  text: text,
81
94
  labelPalette: labelPalette,
82
95
  labelSize: labelSize,
83
- active: isActive,
84
- disabled: isDisabled,
96
+ active: isActive || isBoxStyle && isChecked,
97
+ disabled: disabled || isDisabled,
98
+ disabledTitle: tooltip,
99
+ title: tooltip,
85
100
  onChange: handleChange,
101
+ getRef: handleGetRef,
86
102
  size: size,
87
- checked: selectedValue == value,
103
+ checked: isChecked,
88
104
  dataId: dataId,
89
105
  isReadOnly: isReadOnly,
90
106
  variant: variant
91
- }, RadioProps)), !!infoTooltip ? /*#__PURE__*/React.createElement(Icon, _extends({
107
+ }, RadioProps, {
108
+ a11y: {
109
+ tabIndex: !!selectedValue ? isChecked ? '0' : '-1' : index === 0 ? '0' : '-1',
110
+ ...RadioProps.a11y
111
+ },
112
+ customClass: {
113
+ customRadioWrap: `${isBoxStyle ? style.radioBox : ''} ${isBoxStyle && isChecked ? style.radioBoxActive : ''}`,
114
+ ...RadioProps.customClass
115
+ }
116
+ }), !!infoTooltip ? /*#__PURE__*/React.createElement(Icon, _extends({
92
117
  name: "ZD-GN-info",
93
118
  size: "16",
94
119
  title: infoTooltip,
95
120
  iconClass: style.infoIcon
96
- }, InfoIconProps)) : null);
121
+ }, InfoIconProps)) : null));
97
122
  })), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
98
123
  text: validationMessage,
99
124
  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
+ }
@@ -9,7 +9,7 @@ import { propTypes } from './props/propTypes';
9
9
  import Label from '@zohodesk/components/es/v1/Label/Label';
10
10
  import Select from '@zohodesk/components/es/v1/Select/Select';
11
11
  import ValidationMessage from '../ValidationMessage/ValidationMessage';
12
- import { useUniqueId } from '@zohodesk/components/es/v1/Provider/IdProvider';
12
+ import { useUniqueId } from '@zohodesk/components/es/Provider/IdProvider';
13
13
  import FieldContainer from '../FieldContainer/FieldContainer';
14
14
  /** CSS */
15
15
 
@@ -12,7 +12,7 @@ import Loader from '@zohodesk/svg/lib/Loader/Loader';
12
12
  import DropDownSeparator from '@zohodesk/components/es/v1/DropDown/DropDownSeparator';
13
13
  import CommonEmptyState from '../../../emptystate/CommonEmptyState/CommonEmptyState';
14
14
  import ResponsiveDropBox from '@zohodesk/components/es/v1/ResponsiveDropBox/ResponsiveDropBox';
15
- import { ResponsiveReceiver } from '@zohodesk/components/es/v1/Responsive/CustomResponsive';
15
+ import { ResponsiveReceiver } from '@zohodesk/components/es/Responsive/CustomResponsive';
16
16
  import MultiSelectHeader from '@zohodesk/components/es/v1/MultiSelect/MultiSelectHeader';
17
17
  import { stopBubbling } from '../../../../utils/General';
18
18
  import { scrollTo, findScrollEnd } from '@zohodesk/components/es/utils/Common.js';
@@ -9,7 +9,7 @@ import { propTypes } from './props/propTypes';
9
9
  import Label from '@zohodesk/components/es/v1/Label/Label';
10
10
  import TextBoxIcon from '@zohodesk/components/es/v1/TextBoxIcon/TextBoxIcon';
11
11
  import ValidationMessage from '../ValidationMessage/ValidationMessage';
12
- import { useUniqueId } from '@zohodesk/components/es/v1/Provider/IdProvider';
12
+ import { useUniqueId } from '@zohodesk/components/es/Provider/IdProvider';
13
13
  import FieldContainer from '../FieldContainer/FieldContainer';
14
14
  /**** CSS ****/
15
15
 
@@ -9,7 +9,7 @@ import { propTypes } from './props/propTypes';
9
9
  import Label from '@zohodesk/components/es/v1/Label/Label';
10
10
  import Textarea from '@zohodesk/components/es/v1/Textarea/Textarea';
11
11
  import ValidationMessage from '../ValidationMessage/ValidationMessage';
12
- import { useUniqueId } from '@zohodesk/components/es/v1/Provider/IdProvider';
12
+ import { useUniqueId } from '@zohodesk/components/es/Provider/IdProvider';
13
13
  import FieldContainer from '../FieldContainer/FieldContainer';
14
14
  /**** CSS ****/
15
15
 
@@ -37,6 +37,7 @@ const TextareaField = props => {
37
37
  validationRuleMessage,
38
38
  validationRulePalette,
39
39
  // onKeyDown,
40
+ onFocus,
40
41
  infoText,
41
42
  borderColor,
42
43
  fieldSize,
@@ -103,6 +104,7 @@ const TextareaField = props => {
103
104
  text: value,
104
105
  placeHolder: placeHolder,
105
106
  dataId: `property(${dataId})`,
107
+ onFocus: onFocus,
106
108
  onBlur: handleBlur,
107
109
  borderColor: borderColor,
108
110
  needEffect: isReadOnly || isDisabled ? false : true,
@@ -12,6 +12,7 @@ export const propTypes = {
12
12
  labelName: PropTypes.string,
13
13
  labelPalette: PropTypes.string,
14
14
  maxLength: PropTypes.number,
15
+ onFocus: PropTypes.func,
15
16
  onBlur: PropTypes.func,
16
17
  onChange: PropTypes.func,
17
18
  placeHolder: PropTypes.string,
@@ -15,8 +15,8 @@ import CommonEmptyState from '../../../emptystate/CommonEmptyState/CommonEmptySt
15
15
  import StatusListItem from '../StatusListItem/StatusListItem';
16
16
  import commonStyle from '@zohodesk/components/es/common/common.module.css';
17
17
  import ResponsiveDropBox from '@zohodesk/components/es/v1/ResponsiveDropBox/ResponsiveDropBox';
18
- import { ResponsiveReceiver } from '@zohodesk/components/es/v1/Responsive/CustomResponsive';
19
- import { useUniqueId } from '@zohodesk/components/es/v1/Provider/IdProvider';
18
+ import { ResponsiveReceiver } from '@zohodesk/components/es/Responsive/CustomResponsive';
19
+ import { useUniqueId } from '@zohodesk/components/es/Provider/IdProvider';
20
20
  import btnStyle from '@zohodesk/components/es/semantic/Button/semanticButton.module.css';
21
21
  import style from '../../../../list/status/StatusDropdown/StatusDropdown.module.css';
22
22
 
@@ -8,7 +8,7 @@ import { Container, Box } from '@zohodesk/components/es/v1/Layout';
8
8
  /**** Components ****/
9
9
 
10
10
  import { Icon } from '@zohodesk/icons';
11
- import CssProvider from '@zohodesk/components/es/v1/Provider/CssProvider';
11
+ import CssProvider from '@zohodesk/components/es/Provider/CssProvider';
12
12
  /**** CSS ****/
13
13
 
14
14
  import style from '../../../../list/status/StatusListItem/StatusListItem.module.css';
@@ -10,7 +10,7 @@ import ListItem from '@zohodesk/components/es/v1/ListItem/ListItem';
10
10
  import DropDownSearch from '@zohodesk/components/es/v1/DropDown/DropDownSearch';
11
11
  import { Card, CardHeader, CardContent } from '@zohodesk/components/es/v1/Card';
12
12
  import ResponsiveDropBox from '@zohodesk/components/es/v1/ResponsiveDropBox/ResponsiveDropBox';
13
- import { ResponsiveReceiver } from '@zohodesk/components/es/v1/Responsive/CustomResponsive';
13
+ import { ResponsiveReceiver } from '@zohodesk/components/es/Responsive/CustomResponsive';
14
14
  /**** Icons ****/
15
15
 
16
16
  import { Icon } from '@zohodesk/icons';
@@ -4,7 +4,7 @@ import React from 'react';
4
4
  import defaultProps from './props/defaultProps';
5
5
  import { propTypes, DesktopNotificationUI_propTypes } from './props/propTypes';
6
6
  import { Container, Box } from '@zohodesk/components/es/v1/Layout';
7
- import { useZIndex } from '@zohodesk/components/es/v1/Provider/ZindexProvider';
7
+ import { useZIndex } from '@zohodesk/components/es/Provider/ZindexProvider';
8
8
  import AutoClose from '../../../actions/AutoClose';
9
9
  import Button from '@zohodesk/components/es/v1/Button/Button';
10
10
  import FormAction from '../../../FormAction/FormAction';
@@ -1,4 +1,4 @@
1
- import { getDotLibraryConfig } from '../../../Provider/Config';
1
+ import { getDotLibraryConfig } from '../../../../Provider/Config';
2
2
  export default {
3
3
  isMore: false,
4
4
  isAnimate: true,
@@ -1,4 +1,4 @@
1
- import { getDotLibraryConfig } from '../../../Provider/Config';
1
+ import { getDotLibraryConfig } from '../../../../Provider/Config';
2
2
  export default {
3
3
  needIcon: true,
4
4
  variant: 'primary',
@@ -21,7 +21,7 @@ var _ZindexProvider = require("@zohodesk/components/lib/Provider/ZindexProvider"
21
21
 
22
22
  var _cssJSLogic2 = _interopRequireDefault(require("./css/cssJSLogic"));
23
23
 
24
- var _useFreezeLayer2 = _interopRequireDefault(require("./useFreezeLayer"));
24
+ var _useFreezeLayer2 = _interopRequireDefault(require("../Hooks/useFreezeLayer"));
25
25
 
26
26
  var _FreezeLayerModule = _interopRequireDefault(require("./css/FreezeLayer.module.css"));
27
27
 
@@ -590,6 +590,10 @@ var ToggleDropDown = /*#__PURE__*/function (_Component) {
590
590
  getFooter = _this$props9.getFooter,
591
591
  customProps = _this$props9.customProps,
592
592
  needMultiLineText = _this$props9.needMultiLineText,
593
+ isAbsolutePositioningNeeded = _this$props9.isAbsolutePositioningNeeded,
594
+ positionsOffset = _this$props9.positionsOffset,
595
+ targetOffset = _this$props9.targetOffset,
596
+ isRestrictScroll = _this$props9.isRestrictScroll,
593
597
  customClass = _this$props9.customClass;
594
598
  var _customProps$ToggleDr = customProps.ToggleDropDownProps,
595
599
  ToggleDropDownProps = _customProps$ToggleDr === void 0 ? {} : _customProps$ToggleDr,
@@ -691,6 +695,10 @@ var ToggleDropDown = /*#__PURE__*/function (_Component) {
691
695
  palette: palette,
692
696
  isResponsivePadding: true,
693
697
  needFocusScope: true,
698
+ isAbsolutePositioningNeeded: isAbsolutePositioningNeeded,
699
+ positionsOffset: positionsOffset,
700
+ targetOffset: targetOffset,
701
+ isRestrictScroll: isRestrictScroll,
694
702
  customProps: {
695
703
  focusScopeProps: {
696
704
  loadNextOptions: _this5.handleGetNextOptions,
@@ -29,6 +29,8 @@ var defaultProps = {
29
29
  preventPopupClose: false,
30
30
  dataSelectorId: 'toggleDropdown',
31
31
  needMultiLineText: false,
32
+ isAbsolutePositioningNeeded: true,
33
+ isRestrictScroll: false,
32
34
  customClass: {}
33
35
  };
34
36
  exports.defaultProps = defaultProps;
@@ -84,6 +84,10 @@ var propTypes = {
84
84
  customListBox: _propTypes["default"].string
85
85
  }),
86
86
  onSelectLabel: _propTypes["default"].func,
87
+ isAbsolutePositioningNeeded: _propTypes["default"].bool,
88
+ isRestrictScroll: _propTypes["default"].bool,
89
+ positionsOffset: _propTypes["default"].object,
90
+ targetOffset: _propTypes["default"].object,
87
91
  from: _propTypes["default"].string,
88
92
  top: _propTypes["default"].number
89
93
  };
@@ -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,11 @@ 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
+ tooltip = option.tooltip,
133
+ infoTooltip = option.infoTooltip;
126
134
  return /*#__PURE__*/_react["default"].createElement("span", {
127
135
  key: index,
128
136
  className: "".concat(_FieldsModule["default"].radio)
@@ -134,14 +142,21 @@ var RadioField = /*#__PURE__*/function (_PureComponent) {
134
142
  labelPalette: labelPalette,
135
143
  labelSize: labelSize,
136
144
  active: isActive,
137
- disabled: isDisabled,
145
+ disabled: disabled || isDisabled,
146
+ disabledTitle: tooltip,
147
+ title: tooltip,
138
148
  onChange: _this2.handleChange,
139
149
  size: size,
140
150
  checked: selectedValue == value,
141
151
  dataId: dataId,
142
152
  isReadOnly: isReadOnly,
143
153
  variant: variant
144
- }, RadioProps)));
154
+ }, RadioProps), !!infoTooltip ? /*#__PURE__*/_react["default"].createElement(_Icon["default"], _extends({
155
+ name: "ZD-GN-info",
156
+ size: "16",
157
+ title: infoTooltip,
158
+ iconClass: _FieldsModule["default"].infoIcon
159
+ }, InfoIconProps)) : null));
145
160
  })), validationMessage && /*#__PURE__*/_react["default"].createElement(_ValidationMessage["default"], _extends({
146
161
  text: validationMessage,
147
162
  palette: validationPalette,
@@ -126,6 +126,7 @@ var TextareaField = /*#__PURE__*/function (_PureComponent) {
126
126
  dataSelectorId = _this$props4.dataSelectorId,
127
127
  validationRuleMessage = _this$props4.validationRuleMessage,
128
128
  validationRulePalette = _this$props4.validationRulePalette,
129
+ onFocus = _this$props4.onFocus,
129
130
  infoText = _this$props4.infoText,
130
131
  borderColor = _this$props4.borderColor,
131
132
  fieldSize = _this$props4.fieldSize,
@@ -176,6 +177,7 @@ var TextareaField = /*#__PURE__*/function (_PureComponent) {
176
177
  text: value,
177
178
  placeHolder: placeHolder,
178
179
  dataId: "property(".concat(dataId, ")"),
180
+ onFocus: onFocus,
179
181
  onBlur: this.handleBlur,
180
182
  borderColor: borderColor,
181
183
  needEffect: isReadOnly || isDisabled ? false : true,
@@ -29,6 +29,7 @@ var propTypes = _objectSpread({
29
29
  labelName: _propTypes["default"].string,
30
30
  labelPalette: _propTypes["default"].string,
31
31
  maxLength: _propTypes["default"].number,
32
+ onFocus: _propTypes["default"].func,
32
33
  onBlur: _propTypes["default"].func,
33
34
  onChange: _propTypes["default"].func,
34
35
  placeHolder: _propTypes["default"].string,
@@ -21,7 +21,7 @@ var _Layout = require("@zohodesk/components/es/v1/Layout");
21
21
 
22
22
  var _ResponsiveDropBox = _interopRequireDefault(require("@zohodesk/components/es/v1/ResponsiveDropBox/ResponsiveDropBox"));
23
23
 
24
- var _CssProvider = _interopRequireDefault(require("@zohodesk/components/es/v1/Provider/CssProvider"));
24
+ var _CssProvider = _interopRequireDefault(require("@zohodesk/components/es/Provider/CssProvider"));
25
25
 
26
26
  var _semanticButtonModule = _interopRequireDefault(require("@zohodesk/components/es/semantic/Button/semanticButton.module.css"));
27
27
 
@@ -19,9 +19,9 @@ var _icons = require("@zohodesk/icons");
19
19
 
20
20
  var _Avatar = _interopRequireDefault(require("@zohodesk/components/es/v1/Avatar/Avatar"));
21
21
 
22
- var _CustomResponsive = require("@zohodesk/components/es/v1/Responsive/CustomResponsive");
22
+ var _CustomResponsive = require("@zohodesk/components/es/Responsive/CustomResponsive");
23
23
 
24
- var _IdProvider = require("@zohodesk/components/es/v1/Provider/IdProvider");
24
+ var _IdProvider = require("@zohodesk/components/es/Provider/IdProvider");
25
25
 
26
26
  var _AttachmentImage = _interopRequireDefault(require("./AttachmentImage"));
27
27