@zohodesk/dot 1.0.0-temp-175.6 → 1.0.0-temp-181

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 (237) hide show
  1. package/.cli/propValidation_report.html +1 -1
  2. package/README.md +30 -0
  3. package/assets/Appearance/dark/mode/Dot_DarkMode.module.css +0 -1
  4. package/assets/Appearance/light/mode/Dot_LightMode.module.css +0 -1
  5. package/assets/Appearance/pureDark/mode/Dot_PureDarkMode.module.css +0 -1
  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 +7 -7
  13. package/coverage/IconButton/IconButton.module.css.html +1 -1
  14. package/coverage/IconButton/index.html +11 -11
  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/coverage-final.json +16 -16
  31. package/coverage/coverage-summary.json +17 -17
  32. package/coverage/index.html +11 -11
  33. package/es/Drawer/Drawer.js +6 -3
  34. package/es/Drawer/props/defaultProps.js +2 -1
  35. package/es/Drawer/props/propTypes.js +2 -1
  36. package/es/Hooks/Dragger/useDragger.js +4 -3
  37. package/es/IconButton/IconButton.js +2 -2
  38. package/es/NewStar/NewStar.module.css +128 -67
  39. package/es/emptystate/CommonEmptyState/CommonEmptyState.module.css +4 -0
  40. package/es/form/fields/TextEditor/TextEditor.module.css +63 -47
  41. package/es/list/status/StatusDropdown/StatusDropdown.js +2 -1
  42. package/es/list/status/StatusListItem/StatusListItem.js +12 -5
  43. package/es/list/status/StatusListItem/props/defaultProps.js +2 -1
  44. package/es/list/status/StatusListItem/props/propTypes.js +3 -1
  45. package/es/lookup/Lookup/Lookup.js +6 -3
  46. package/es/v1/DotWrapper/DotWrapper.js +28 -0
  47. package/es/v1/DotWrapper/libraryChunks/appearance/component/DarkMode_Component.js +1 -0
  48. package/es/v1/DotWrapper/libraryChunks/appearance/component/LightMode_Component.js +1 -0
  49. package/es/v1/DotWrapper/libraryChunks/appearance/component/PureDarkMode_Component.js +1 -0
  50. package/es/v1/DotWrapper/libraryChunks/appearance/dot/DarkMode_Dot.js +1 -0
  51. package/es/v1/DotWrapper/libraryChunks/appearance/dot/LightMode_Dot.js +1 -0
  52. package/es/v1/DotWrapper/libraryChunks/appearance/dot/PureDarkMode_Dot.js +1 -0
  53. package/es/v1/DotWrapper/libraryChunks/appearance/svg/DarkMode_SVG.js +1 -0
  54. package/es/v1/DotWrapper/libraryChunks/appearance/svg/LightMode_SVG.js +1 -0
  55. package/es/v1/DotWrapper/libraryChunks/appearance/svg/PureDarkMode_SVG.js +1 -0
  56. package/es/v1/DotWrapper/libraryChunks/dynamicImports.js +19 -0
  57. package/es/v1/DotWrapper/libraryChunks/themes/component/blue/Blue_Dark_Component.js +3 -0
  58. package/es/v1/DotWrapper/libraryChunks/themes/component/blue/Blue_Light_Component.js +3 -0
  59. package/es/v1/DotWrapper/libraryChunks/themes/component/blue/Blue_PureDark_Component.js +3 -0
  60. package/es/v1/DotWrapper/libraryChunks/themes/component/green/Green_Dark_Component.js +3 -0
  61. package/es/v1/DotWrapper/libraryChunks/themes/component/green/Green_Light_Component.js +3 -0
  62. package/es/v1/DotWrapper/libraryChunks/themes/component/green/Green_PureDark_Component.js +3 -0
  63. package/es/v1/DotWrapper/libraryChunks/themes/component/orange/Orange_Dark_Component.js +3 -0
  64. package/es/v1/DotWrapper/libraryChunks/themes/component/orange/Orange_Light_Component.js +3 -0
  65. package/es/v1/DotWrapper/libraryChunks/themes/component/orange/Orange_PureDark_Component.js +3 -0
  66. package/es/v1/DotWrapper/libraryChunks/themes/component/red/Red_Dark_Component.js +3 -0
  67. package/es/v1/DotWrapper/libraryChunks/themes/component/red/Red_Light_Component.js +3 -0
  68. package/es/v1/DotWrapper/libraryChunks/themes/component/red/Red_PureDark_Component.js +3 -0
  69. package/es/v1/DotWrapper/libraryChunks/themes/component/yellow/Yellow_Dark_Component.js +3 -0
  70. package/es/v1/DotWrapper/libraryChunks/themes/component/yellow/Yellow_Light_Component.js +3 -0
  71. package/es/v1/DotWrapper/libraryChunks/themes/component/yellow/Yellow_PureDark_Component.js +3 -0
  72. package/es/v1/DotWrapper/libraryChunks/themes/dot/blue/Blue_Dark_Dot.js +1 -0
  73. package/es/v1/DotWrapper/libraryChunks/themes/dot/blue/Blue_Light_Dot.js +1 -0
  74. package/es/v1/DotWrapper/libraryChunks/themes/dot/blue/Blue_PureDark_Dot.js +1 -0
  75. package/es/v1/DotWrapper/libraryChunks/themes/dot/green/Green_Dark_Dot.js +1 -0
  76. package/es/v1/DotWrapper/libraryChunks/themes/dot/green/Green_Light_Dot.js +1 -0
  77. package/es/v1/DotWrapper/libraryChunks/themes/dot/green/Green_PureDark_Dot.js +1 -0
  78. package/es/v1/DotWrapper/libraryChunks/themes/dot/orange/Orange_Dark_Dot.js +1 -0
  79. package/es/v1/DotWrapper/libraryChunks/themes/dot/orange/Orange_Light_Dot.js +1 -0
  80. package/es/v1/DotWrapper/libraryChunks/themes/dot/orange/Orange_PureDark_Dot.js +1 -0
  81. package/es/v1/DotWrapper/libraryChunks/themes/dot/red/Red_Dark_Dot.js +1 -0
  82. package/es/v1/DotWrapper/libraryChunks/themes/dot/red/Red_Light_Dot.js +1 -0
  83. package/es/v1/DotWrapper/libraryChunks/themes/dot/red/Red_PureDark_Dot.js +1 -0
  84. package/es/v1/DotWrapper/libraryChunks/themes/dot/yellow/Yellow_Dark_Dot.js +1 -0
  85. package/es/v1/DotWrapper/libraryChunks/themes/dot/yellow/Yellow_Light_Dot.js +1 -0
  86. package/es/v1/DotWrapper/libraryChunks/themes/dot/yellow/Yellow_PureDark_Dot.js +1 -0
  87. package/es/v1/DotWrapper/libraryChunks/themes/svg/blue/Blue_Dark_SVG.js +1 -0
  88. package/es/v1/DotWrapper/libraryChunks/themes/svg/blue/Blue_Light_SVG.js +1 -0
  89. package/es/v1/DotWrapper/libraryChunks/themes/svg/blue/Blue_PureDark_SVG.js +1 -0
  90. package/es/v1/DotWrapper/libraryChunks/themes/svg/green/Green_Dark_SVG.js +1 -0
  91. package/es/v1/DotWrapper/libraryChunks/themes/svg/green/Green_Light_SVG.js +1 -0
  92. package/es/v1/DotWrapper/libraryChunks/themes/svg/green/Green_PureDark_SVG.js +1 -0
  93. package/es/v1/DotWrapper/libraryChunks/themes/svg/orange/Orange_Dark_SVG.js +1 -0
  94. package/es/v1/DotWrapper/libraryChunks/themes/svg/orange/Orange_Light_SVG.js +1 -0
  95. package/es/v1/DotWrapper/libraryChunks/themes/svg/orange/Orange_PureDark_SVG.js +1 -0
  96. package/es/v1/DotWrapper/libraryChunks/themes/svg/red/Red_Dark_SVG.js +1 -0
  97. package/es/v1/DotWrapper/libraryChunks/themes/svg/red/Red_Light_SVG.js +1 -0
  98. package/es/v1/DotWrapper/libraryChunks/themes/svg/red/Red_PureDark_SVG.js +1 -0
  99. package/es/v1/DotWrapper/libraryChunks/themes/svg/yellow/Yellow_Dark_SVG.js +1 -0
  100. package/es/v1/DotWrapper/libraryChunks/themes/svg/yellow/Yellow_Light_SVG.js +1 -0
  101. package/es/v1/DotWrapper/libraryChunks/themes/svg/yellow/Yellow_PureDark_SVG.js +1 -0
  102. package/es/v1/DotWrapper/props/defaultProps.js +7 -0
  103. package/es/v1/DotWrapper/props/propTypes.js +8 -0
  104. package/es/v1/DotWrapper/utils/appearanceProperties.js +46 -0
  105. package/es/v1/DotWrapper/utils/errorMessage.js +7 -0
  106. package/es/v1/DotWrapper/utils/importFiles.js +18 -0
  107. package/es/v1/DotWrapper/utils/themeProperties.js +220 -0
  108. package/es/v1/Drawer/Drawer.js +6 -3
  109. package/es/v1/Drawer/props/defaultProps.js +2 -1
  110. package/es/v1/Drawer/props/propTypes.js +2 -1
  111. package/es/v1/GlobalNotification/GlobalNotification.js +51 -19
  112. package/es/v1/GlobalNotification/props/defaultProps.js +3 -1
  113. package/es/v1/GlobalNotification/props/propTypes.js +12 -2
  114. package/es/v1/IconButton/IconButton.js +2 -2
  115. package/es/v1/form/fields/SelectField/SelectField.js +1 -9
  116. package/es/v1/form/fields/TextBoxField/TextBoxField.js +122 -142
  117. package/es/v1/form/fields/TextEditorField/TextEditorField.js +133 -153
  118. package/es/v1/form/fields/TextEditorWrapper/TextEditorWrapper.js +137 -178
  119. package/es/v1/form/fields/TextareaField/TextareaField.js +113 -137
  120. package/es/v1/form/fields/ValidationMessage/ValidationMessage.js +43 -43
  121. package/es/v1/form/layout/Field/Field.js +24 -28
  122. package/es/v1/form/layout/Section/Section.js +25 -33
  123. package/es/v1/form/layout/Section/props/propTypes.js +0 -1
  124. package/es/v1/list/Subject/Subject.js +39 -48
  125. package/es/v1/list/TagNew/TagNew.js +18 -27
  126. package/es/v1/list/Thread/Thread.js +26 -35
  127. package/es/v1/list/status/StatusDropdown/StatusDropdown.js +2 -1
  128. package/es/v1/list/status/StatusListItem/StatusListItem.js +12 -5
  129. package/es/v1/list/status/StatusListItem/props/defaultProps.js +2 -1
  130. package/es/v1/list/status/StatusListItem/props/propTypes.js +3 -1
  131. package/es/v1/lookup/Lookup/Lookup.js +6 -3
  132. package/es/version2/GlobalNotification/GlobalNotification.module.css +1 -2
  133. package/lib/Drawer/Drawer.js +6 -3
  134. package/lib/Drawer/props/defaultProps.js +2 -1
  135. package/lib/Drawer/props/propTypes.js +2 -1
  136. package/lib/Hooks/Dragger/useDragger.js +4 -3
  137. package/lib/IconButton/IconButton.js +2 -2
  138. package/lib/NewStar/NewStar.module.css +128 -67
  139. package/lib/emptystate/CommonEmptyState/CommonEmptyState.module.css +4 -0
  140. package/lib/form/fields/TextEditor/TextEditor.module.css +63 -47
  141. package/lib/list/status/StatusDropdown/StatusDropdown.js +2 -1
  142. package/lib/list/status/StatusListItem/StatusListItem.js +12 -5
  143. package/lib/list/status/StatusListItem/props/defaultProps.js +2 -1
  144. package/lib/list/status/StatusListItem/props/propTypes.js +3 -1
  145. package/lib/lookup/Lookup/Lookup.js +14 -3
  146. package/lib/v1/DotWrapper/DotWrapper.js +41 -0
  147. package/lib/v1/DotWrapper/libraryChunks/appearance/component/DarkMode_Component.js +3 -0
  148. package/lib/v1/DotWrapper/libraryChunks/appearance/component/LightMode_Component.js +3 -0
  149. package/lib/v1/DotWrapper/libraryChunks/appearance/component/PureDarkMode_Component.js +3 -0
  150. package/lib/v1/DotWrapper/libraryChunks/appearance/dot/DarkMode_Dot.js +3 -0
  151. package/lib/v1/DotWrapper/libraryChunks/appearance/dot/LightMode_Dot.js +3 -0
  152. package/lib/v1/DotWrapper/libraryChunks/appearance/dot/PureDarkMode_Dot.js +3 -0
  153. package/lib/v1/DotWrapper/libraryChunks/appearance/svg/DarkMode_SVG.js +3 -0
  154. package/lib/v1/DotWrapper/libraryChunks/appearance/svg/LightMode_SVG.js +3 -0
  155. package/lib/v1/DotWrapper/libraryChunks/appearance/svg/PureDarkMode_SVG.js +3 -0
  156. package/lib/v1/DotWrapper/libraryChunks/dynamicImports.js +33 -0
  157. package/lib/v1/DotWrapper/libraryChunks/themes/component/blue/Blue_Dark_Component.js +7 -0
  158. package/lib/v1/DotWrapper/libraryChunks/themes/component/blue/Blue_Light_Component.js +7 -0
  159. package/lib/v1/DotWrapper/libraryChunks/themes/component/blue/Blue_PureDark_Component.js +7 -0
  160. package/lib/v1/DotWrapper/libraryChunks/themes/component/green/Green_Dark_Component.js +7 -0
  161. package/lib/v1/DotWrapper/libraryChunks/themes/component/green/Green_Light_Component.js +7 -0
  162. package/lib/v1/DotWrapper/libraryChunks/themes/component/green/Green_PureDark_Component.js +7 -0
  163. package/lib/v1/DotWrapper/libraryChunks/themes/component/orange/Orange_Dark_Component.js +7 -0
  164. package/lib/v1/DotWrapper/libraryChunks/themes/component/orange/Orange_Light_Component.js +7 -0
  165. package/lib/v1/DotWrapper/libraryChunks/themes/component/orange/Orange_PureDark_Component.js +7 -0
  166. package/lib/v1/DotWrapper/libraryChunks/themes/component/red/Red_Dark_Component.js +7 -0
  167. package/lib/v1/DotWrapper/libraryChunks/themes/component/red/Red_Light_Component.js +7 -0
  168. package/lib/v1/DotWrapper/libraryChunks/themes/component/red/Red_PureDark_Component.js +7 -0
  169. package/lib/v1/DotWrapper/libraryChunks/themes/component/yellow/Yellow_Dark_Component.js +7 -0
  170. package/lib/v1/DotWrapper/libraryChunks/themes/component/yellow/Yellow_Light_Component.js +7 -0
  171. package/lib/v1/DotWrapper/libraryChunks/themes/component/yellow/Yellow_PureDark_Component.js +7 -0
  172. package/lib/v1/DotWrapper/libraryChunks/themes/dot/blue/Blue_Dark_Dot.js +3 -0
  173. package/lib/v1/DotWrapper/libraryChunks/themes/dot/blue/Blue_Light_Dot.js +3 -0
  174. package/lib/v1/DotWrapper/libraryChunks/themes/dot/blue/Blue_PureDark_Dot.js +3 -0
  175. package/lib/v1/DotWrapper/libraryChunks/themes/dot/green/Green_Dark_Dot.js +3 -0
  176. package/lib/v1/DotWrapper/libraryChunks/themes/dot/green/Green_Light_Dot.js +3 -0
  177. package/lib/v1/DotWrapper/libraryChunks/themes/dot/green/Green_PureDark_Dot.js +3 -0
  178. package/lib/v1/DotWrapper/libraryChunks/themes/dot/orange/Orange_Dark_Dot.js +3 -0
  179. package/lib/v1/DotWrapper/libraryChunks/themes/dot/orange/Orange_Light_Dot.js +3 -0
  180. package/lib/v1/DotWrapper/libraryChunks/themes/dot/orange/Orange_PureDark_Dot.js +3 -0
  181. package/lib/v1/DotWrapper/libraryChunks/themes/dot/red/Red_Dark_Dot.js +3 -0
  182. package/lib/v1/DotWrapper/libraryChunks/themes/dot/red/Red_Light_Dot.js +3 -0
  183. package/lib/v1/DotWrapper/libraryChunks/themes/dot/red/Red_PureDark_Dot.js +3 -0
  184. package/lib/v1/DotWrapper/libraryChunks/themes/dot/yellow/Yellow_Dark_Dot.js +3 -0
  185. package/lib/v1/DotWrapper/libraryChunks/themes/dot/yellow/Yellow_Light_Dot.js +3 -0
  186. package/lib/v1/DotWrapper/libraryChunks/themes/dot/yellow/Yellow_PureDark_Dot.js +3 -0
  187. package/lib/v1/DotWrapper/libraryChunks/themes/svg/blue/Blue_Dark_SVG.js +3 -0
  188. package/lib/v1/DotWrapper/libraryChunks/themes/svg/blue/Blue_Light_SVG.js +3 -0
  189. package/lib/v1/DotWrapper/libraryChunks/themes/svg/blue/Blue_PureDark_SVG.js +3 -0
  190. package/lib/v1/DotWrapper/libraryChunks/themes/svg/green/Green_Dark_SVG.js +3 -0
  191. package/lib/v1/DotWrapper/libraryChunks/themes/svg/green/Green_Light_SVG.js +3 -0
  192. package/lib/v1/DotWrapper/libraryChunks/themes/svg/green/Green_PureDark_SVG.js +3 -0
  193. package/lib/v1/DotWrapper/libraryChunks/themes/svg/orange/Orange_Dark_SVG.js +3 -0
  194. package/lib/v1/DotWrapper/libraryChunks/themes/svg/orange/Orange_Light_SVG.js +3 -0
  195. package/lib/v1/DotWrapper/libraryChunks/themes/svg/orange/Orange_PureDark_SVG.js +3 -0
  196. package/lib/v1/DotWrapper/libraryChunks/themes/svg/red/Red_Dark_SVG.js +3 -0
  197. package/lib/v1/DotWrapper/libraryChunks/themes/svg/red/Red_Light_SVG.js +3 -0
  198. package/lib/v1/DotWrapper/libraryChunks/themes/svg/red/Red_PureDark_SVG.js +3 -0
  199. package/lib/v1/DotWrapper/libraryChunks/themes/svg/yellow/Yellow_Dark_SVG.js +3 -0
  200. package/lib/v1/DotWrapper/libraryChunks/themes/svg/yellow/Yellow_Light_SVG.js +3 -0
  201. package/lib/v1/DotWrapper/libraryChunks/themes/svg/yellow/Yellow_PureDark_SVG.js +3 -0
  202. package/lib/v1/DotWrapper/props/defaultProps.js +14 -0
  203. package/lib/v1/DotWrapper/props/propTypes.js +19 -0
  204. package/lib/v1/DotWrapper/utils/appearanceProperties.js +79 -0
  205. package/lib/v1/DotWrapper/utils/errorMessage.js +14 -0
  206. package/lib/v1/DotWrapper/utils/importFiles.js +25 -0
  207. package/lib/v1/DotWrapper/utils/themeProperties.js +325 -0
  208. package/lib/v1/Drawer/Drawer.js +6 -3
  209. package/lib/v1/Drawer/props/defaultProps.js +2 -1
  210. package/lib/v1/Drawer/props/propTypes.js +2 -1
  211. package/lib/v1/GlobalNotification/GlobalNotification.js +66 -17
  212. package/lib/v1/GlobalNotification/props/defaultProps.js +3 -1
  213. package/lib/v1/GlobalNotification/props/propTypes.js +17 -4
  214. package/lib/v1/IconButton/IconButton.js +2 -2
  215. package/lib/v1/form/fields/SelectField/SelectField.js +1 -7
  216. package/lib/v1/form/fields/TextBoxField/TextBoxField.js +125 -181
  217. package/lib/v1/form/fields/TextEditorField/TextEditorField.js +138 -193
  218. package/lib/v1/form/fields/TextEditorWrapper/TextEditorWrapper.js +160 -212
  219. package/lib/v1/form/fields/TextareaField/TextareaField.js +117 -177
  220. package/lib/v1/form/fields/ValidationMessage/ValidationMessage.js +41 -80
  221. package/lib/v1/form/layout/Field/Field.js +22 -69
  222. package/lib/v1/form/layout/Section/Section.js +27 -72
  223. package/lib/v1/form/layout/Section/props/propTypes.js +0 -1
  224. package/lib/v1/list/Subject/Subject.js +39 -87
  225. package/lib/v1/list/TagNew/TagNew.js +18 -66
  226. package/lib/v1/list/Thread/Thread.js +25 -73
  227. package/lib/v1/list/status/StatusDropdown/StatusDropdown.js +2 -1
  228. package/lib/v1/list/status/StatusListItem/StatusListItem.js +12 -5
  229. package/lib/v1/list/status/StatusListItem/props/defaultProps.js +2 -1
  230. package/lib/v1/list/status/StatusListItem/props/propTypes.js +3 -1
  231. package/lib/v1/lookup/Lookup/Lookup.js +11 -6
  232. package/lib/version2/GlobalNotification/GlobalNotification.module.css +1 -2
  233. package/package.json +13 -13
  234. package/prePublish.js +0 -69
  235. package/react-cli.config.js +6 -1
  236. package/result.json +1 -1
  237. package/unittest/index.html +1 -1
@@ -1,7 +1,7 @@
1
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
2
 
3
3
  /**** Libraries ****/
4
- import React, { PureComponent } from 'react';
4
+ import React, { memo } from 'react';
5
5
  import { defaultProps } from './props/defaultProps';
6
6
  import { propTypes } from './props/propTypes';
7
7
  /**** Components ****/
@@ -9,153 +9,129 @@ 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 { getUniqueId } from '@zohodesk/components/es/v1/Provider/IdProvider';
12
+ import { useUniqueId } from '@zohodesk/components/es/v1/Provider/IdProvider';
13
13
  import FieldContainer from '../FieldContainer/FieldContainer';
14
14
  /**** CSS ****/
15
15
 
16
16
  import style from '../../../../form/fields/Fields.module.css';
17
- export default class TextareaField extends PureComponent {
18
- constructor(props) {
19
- super(props);
20
- this.handleChange = this.handleChange.bind(this);
21
- this.handleBlur = this.handleBlur.bind(this);
22
- this.handleGetRef = this.handleGetRef.bind(this); // this.handleLabelClick = this.handleLabelClick.bind(this);
23
17
 
24
- this.getNextId = getUniqueId(this);
25
- }
18
+ const TextareaField = props => {
19
+ const {
20
+ labelName,
21
+ id,
22
+ isMandatory,
23
+ textBoxSize,
24
+ animated,
25
+ textBoxVariant,
26
+ isReadOnly,
27
+ validationMessage,
28
+ validationPalette,
29
+ maxLength,
30
+ value,
31
+ errorType,
32
+ isDisabled,
33
+ title,
34
+ placeHolder,
35
+ dataId,
36
+ dataSelectorId,
37
+ validationRuleMessage,
38
+ validationRulePalette,
39
+ // onKeyDown,
40
+ infoText,
41
+ borderColor,
42
+ fieldSize,
43
+ labelPalette,
44
+ labelCustomClass,
45
+ htmlId,
46
+ lockedInfoText,
47
+ isLocked,
48
+ customProps,
49
+ renderLabelProps,
50
+ onChange,
51
+ onBlur,
52
+ getRef
53
+ } = props;
54
+ const {
55
+ LabelProps = {},
56
+ TextareaProps = {},
57
+ ValidationMessageProps1 = {},
58
+ ValidationMessageProps2 = {}
59
+ } = customProps;
60
+ const getNextId = useUniqueId();
61
+ let uniqueId = htmlId ? htmlId : getNextId();
26
62
 
27
- handleChange(value) {
28
- let {
29
- id,
30
- onChange
31
- } = this.props;
63
+ const handleChange = value => {
32
64
  onChange && onChange(id, value);
33
- }
65
+ };
34
66
 
35
- handleBlur(value) {
36
- let {
37
- id,
38
- onBlur
39
- } = this.props;
67
+ const handleBlur = value => {
40
68
  onBlur && onBlur(id, value);
41
- }
69
+ };
42
70
 
43
- handleGetRef(el) {
44
- let {
45
- getRef,
46
- id
47
- } = this.props;
48
- this.textarea = el;
71
+ const handleGetRef = el => {
49
72
  getRef && getRef(el, id);
50
- } // handleLabelClick() {
51
- // let { isFocusOnLabelClick } = this.props;
52
- // if (isFocusOnLabelClick && this.textarea && this.textarea.focus) {
53
- // this.textarea.focus();
54
- // }
55
- // }
73
+ };
56
74
 
75
+ return /*#__PURE__*/React.createElement("div", {
76
+ className: `${style.container} ${isDisabled ? style.disabled : isReadOnly ? style.readonly : ''}`,
77
+ "data-title": isDisabled ? title : null,
78
+ "data-selector-id": dataSelectorId
79
+ }, labelName && /*#__PURE__*/React.createElement(FieldContainer, {
80
+ infoText: infoText,
81
+ isLocked: isLocked,
82
+ lockedInfoText: lockedInfoText,
83
+ renderProps: renderLabelProps
84
+ }, /*#__PURE__*/React.createElement(Label, _extends({
85
+ text: labelName,
86
+ id: id,
87
+ size: fieldSize === 'small' ? 'small' : 'medium',
88
+ palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
89
+ customClass: `${style.fieldLabel} ${labelCustomClass} ${isMandatory ? style.labelMandatory : ''}`,
90
+ htmlFor: uniqueId,
91
+ dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`
92
+ }, LabelProps))), /*#__PURE__*/React.createElement("div", {
93
+ className: `${style.fieldContainer} ${labelName ? style[`fieldMargin_${fieldSize}`] : ''}`
94
+ }, /*#__PURE__*/React.createElement(Textarea, _extends({
95
+ onChange: handleChange,
96
+ animated: animated,
97
+ size: fieldSize === 'medium' ? textBoxSize : 'xmedium',
98
+ variant: textBoxVariant,
99
+ isReadOnly: isReadOnly,
100
+ isDisabled: isDisabled,
101
+ getRef: handleGetRef,
102
+ maxLength: maxLength,
103
+ text: value,
104
+ placeHolder: placeHolder,
105
+ dataId: `property(${dataId})`,
106
+ onBlur: handleBlur,
107
+ borderColor: borderColor,
108
+ needEffect: isReadOnly || isDisabled ? false : true,
109
+ resize: "vertical" // onKeyDown={onKeyDown}
110
+ ,
111
+ htmlId: uniqueId
112
+ }, TextareaProps, {
113
+ a11y: {
114
+ ariaLabelledby: labelName
115
+ }
116
+ })), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
117
+ text: validationMessage,
118
+ palette: validationPalette,
119
+ type: errorType,
120
+ htmlFor: uniqueId,
121
+ dataId: `${dataId}_ValidationMessage`
122
+ }, ValidationMessageProps1)), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
123
+ text: validationRuleMessage,
124
+ palette: validationRulePalette,
125
+ type: errorType,
126
+ htmlFor: uniqueId,
127
+ dataId: `${dataId}_ValidationRuleMessage`
128
+ }, ValidationMessageProps2))));
129
+ };
57
130
 
58
- render() {
59
- let {
60
- labelName,
61
- id,
62
- isMandatory,
63
- textBoxSize,
64
- animated,
65
- textBoxVariant,
66
- isReadOnly,
67
- validationMessage,
68
- validationPalette,
69
- maxLength,
70
- value,
71
- errorType,
72
- isDisabled,
73
- title,
74
- placeHolder,
75
- dataId,
76
- dataSelectorId,
77
- validationRuleMessage,
78
- validationRulePalette,
79
- // onKeyDown,
80
- infoText,
81
- borderColor,
82
- fieldSize,
83
- labelPalette,
84
- labelCustomClass,
85
- htmlId,
86
- lockedInfoText,
87
- isLocked,
88
- customProps,
89
- renderLabelProps
90
- } = this.props;
91
- const {
92
- LabelProps = {},
93
- TextareaProps = {},
94
- ValidationMessageProps1 = {},
95
- ValidationMessageProps2 = {}
96
- } = customProps;
97
- let uniqueId = htmlId ? htmlId : this.getNextId();
98
- return /*#__PURE__*/React.createElement("div", {
99
- className: `${style.container} ${isDisabled ? style.disabled : isReadOnly ? style.readonly : ''}`,
100
- "data-title": isDisabled ? title : null,
101
- "data-selector-id": dataSelectorId
102
- }, labelName && /*#__PURE__*/React.createElement(FieldContainer, {
103
- infoText: infoText,
104
- isLocked: isLocked,
105
- lockedInfoText: lockedInfoText,
106
- renderProps: renderLabelProps
107
- }, /*#__PURE__*/React.createElement(Label, _extends({
108
- text: labelName,
109
- id: id,
110
- size: fieldSize === 'small' ? 'small' : 'medium',
111
- palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
112
- customClass: `${style.fieldLabel} ${labelCustomClass} ${isMandatory ? style.labelMandatory : ''}`,
113
- htmlFor: uniqueId,
114
- dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`
115
- }, LabelProps))), /*#__PURE__*/React.createElement("div", {
116
- className: `${style.fieldContainer} ${labelName ? style[`fieldMargin_${fieldSize}`] : ''}`
117
- }, /*#__PURE__*/React.createElement(Textarea, _extends({
118
- onChange: this.handleChange,
119
- animated: animated,
120
- size: fieldSize === 'medium' ? textBoxSize : 'xmedium',
121
- variant: textBoxVariant,
122
- isReadOnly: isReadOnly,
123
- isDisabled: isDisabled,
124
- getRef: this.handleGetRef,
125
- maxLength: maxLength,
126
- text: value,
127
- placeHolder: placeHolder,
128
- dataId: `property(${dataId})`,
129
- onBlur: this.handleBlur,
130
- borderColor: borderColor,
131
- needEffect: isReadOnly || isDisabled ? false : true,
132
- resize: "vertical" // onKeyDown={onKeyDown}
133
- ,
134
- htmlId: uniqueId
135
- }, TextareaProps, {
136
- a11y: {
137
- ariaLabelledby: labelName
138
- }
139
- })), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
140
- text: validationMessage,
141
- palette: validationPalette,
142
- type: errorType,
143
- htmlFor: uniqueId,
144
- dataId: `${dataId}_ValidationMessage`
145
- }, ValidationMessageProps1)), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
146
- text: validationRuleMessage,
147
- palette: validationRulePalette,
148
- type: errorType,
149
- htmlFor: uniqueId,
150
- dataId: `${dataId}_ValidationRuleMessage`
151
- }, ValidationMessageProps2))));
152
- }
153
-
154
- }
155
131
  TextareaField.propTypes = propTypes;
156
- TextareaField.defaultProps = defaultProps; // if (__DOCS__) {
157
- // TextareaField.docs = {
158
- // componentGroup: 'Form Fields',
159
- // folderName: 'General'
160
- // };
161
- // }
132
+ TextareaField.defaultProps = defaultProps;
133
+ const MemoizedTextareaField = /*#__PURE__*/memo(TextareaField);
134
+ MemoizedTextareaField.propTypes = propTypes;
135
+ MemoizedTextareaField.defaultProps = defaultProps;
136
+ MemoizedTextareaField.displayName = 'TextareaField';
137
+ export default TextareaField;
@@ -5,50 +5,50 @@ import Label from '@zohodesk/components/es/v1/Label/Label';
5
5
  import colors from '@zohodesk/components/es/Label/LabelColors.module.css';
6
6
  import style from '../../../../form/fields/ValidationMessage/ValidationMessage.module.css';
7
7
  import { Icon } from '@zohodesk/icons';
8
- export default class ValidationMessage extends React.Component {
9
- render() {
10
- let {
11
- palette,
12
- text,
13
- htmlFor,
14
- onClick,
15
- type,
16
- size,
17
- dataId,
18
- clipped,
19
- a11y,
20
- tooltip,
21
- dataSelectorId
22
- } = this.props;
23
- let {
24
- role = 'alert'
25
- } = a11y;
26
- return /*#__PURE__*/React.createElement("div", {
27
- role: role,
28
- onClick: onClick,
29
- className: `${type === 'primary' ? style.primary : style.secondary}`,
30
- "data-id": "errorMsgContainer",
31
- "data-test-id": "errorMsgContainer",
32
- "data-selector-id": dataSelectorId
33
- }, /*#__PURE__*/React.createElement(Label, {
34
- text: text,
35
- htmlFor: htmlFor,
36
- palette: palette,
37
- size: size,
38
- dataId: dataId,
39
- clipped: clipped,
40
- title: clipped ? text : '',
41
- customClass: style.lable
42
- }), tooltip ? /*#__PURE__*/React.createElement("span", {
43
- className: `${style.icon} ${colors[palette]}`,
44
- "data-title": tooltip
45
- }, /*#__PURE__*/React.createElement(Icon, {
46
- name: "ZD-information57",
47
- size: "14"
48
- })) : null);
49
- }
50
8
 
51
- }
9
+ const ValidationMessage = props => {
10
+ const {
11
+ palette,
12
+ text,
13
+ htmlFor,
14
+ onClick,
15
+ type,
16
+ size,
17
+ dataId,
18
+ clipped,
19
+ a11y,
20
+ tooltip,
21
+ dataSelectorId
22
+ } = props;
23
+ const {
24
+ role = 'alert'
25
+ } = a11y;
26
+ return /*#__PURE__*/React.createElement("div", {
27
+ role: role,
28
+ onClick: onClick,
29
+ className: `${type === 'primary' ? style.primary : style.secondary}`,
30
+ "data-id": "errorMsgContainer",
31
+ "data-test-id": "errorMsgContainer",
32
+ "data-selector-id": dataSelectorId
33
+ }, /*#__PURE__*/React.createElement(Label, {
34
+ text: text,
35
+ htmlFor: htmlFor,
36
+ palette: palette,
37
+ size: size,
38
+ dataId: dataId,
39
+ clipped: clipped,
40
+ title: clipped ? text : '',
41
+ customClass: style.lable
42
+ }), tooltip ? /*#__PURE__*/React.createElement("span", {
43
+ className: `${style.icon} ${colors[palette]}`,
44
+ "data-title": tooltip
45
+ }, /*#__PURE__*/React.createElement(Icon, {
46
+ name: "ZD-information57",
47
+ size: "14"
48
+ })) : null);
49
+ };
50
+
51
+ export default ValidationMessage;
52
52
  ValidationMessage.propTypes = propTypes;
53
53
  ValidationMessage.defaultProps = defaultProps; // if (__DOCS__) {
54
54
  // ValidationMessage.docs = {
@@ -1,33 +1,29 @@
1
- import React, { Component } from 'react';
1
+ import React from 'react';
2
2
  import { defaultProps } from './props/defaultProps';
3
3
  import { propTypes } from './props/propTypes';
4
4
  import style from '../../../../form/layout/Field/Field.module.css';
5
- export default class Field extends Component {
6
- render() {
7
- let {
8
- width,
9
- children,
10
- rowBreak,
11
- column,
12
- className,
13
- containerClass,
14
- dataId
15
- } = this.props;
16
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
17
- className: `${containerClass ? containerClass : ''} ${column == 'single' ? `${style.singleColumn}` : `${style[width]} `}`,
18
- "data-id": dataId,
19
- "data-test-id": dataId
20
- }, /*#__PURE__*/React.createElement("div", {
21
- className: `${className ? className : ''} ${`fieldWidth_${width}`}`
22
- }, children)), rowBreak && /*#__PURE__*/React.createElement("div", {
23
- className: style.rowBreak
24
- }));
25
- }
26
5
 
27
- }
6
+ const Field = props => {
7
+ const {
8
+ width,
9
+ children,
10
+ rowBreak,
11
+ column,
12
+ className,
13
+ containerClass,
14
+ dataId
15
+ } = props;
16
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
17
+ className: `${containerClass ? containerClass : ''} ${column == 'single' ? `${style.singleColumn}` : `${style[width]} `}`,
18
+ "data-id": dataId,
19
+ "data-test-id": dataId
20
+ }, /*#__PURE__*/React.createElement("div", {
21
+ className: `${className ? className : ''} ${`fieldWidth_${width}`}`
22
+ }, children)), rowBreak && /*#__PURE__*/React.createElement("div", {
23
+ className: style.rowBreak
24
+ }));
25
+ };
26
+
28
27
  Field.propTypes = propTypes;
29
- Field.defaultProps = defaultProps; // if (__DOCS__) {
30
- // Field.docs = {
31
- // componentGroup: 'ModuleAddForm'
32
- // };
33
- // }
28
+ Field.defaultProps = defaultProps;
29
+ export default Field;
@@ -1,37 +1,29 @@
1
- import React, { Component } from 'react';
1
+ import React from 'react';
2
2
  import { propTypes } from './props/propTypes';
3
3
  import style from '../../../../form/layout/Section/ModuleFormSection.module.css';
4
- export default class Section extends Component {
5
- constructor(props) {
6
- super(props);
7
- }
8
4
 
9
- render() {
10
- let {
11
- title,
12
- dataId,
13
- containerClass,
14
- titleClass,
15
- className,
16
- column,
17
- formName
18
- } = this.props;
19
- return /*#__PURE__*/React.createElement("div", {
20
- "data-id": dataId,
21
- "data-test-id": dataId,
22
- className: containerClass ? containerClass : ''
23
- }, title && /*#__PURE__*/React.createElement("div", {
24
- className: titleClass ? titleClass : ''
25
- }, title), /*#__PURE__*/React.createElement("div", {
26
- className: `${className ? className : ''} ${column == 'single' ? style.singleColumn : ''}`,
27
- "data-id": formName && formName,
28
- "data-test-id": formName && formName
29
- }, this.props.children));
30
- }
5
+ const Section = props => {
6
+ const {
7
+ title,
8
+ dataId,
9
+ containerClass,
10
+ titleClass,
11
+ className,
12
+ column,
13
+ formName
14
+ } = props;
15
+ return /*#__PURE__*/React.createElement("div", {
16
+ "data-id": dataId,
17
+ "data-test-id": dataId,
18
+ className: containerClass ? containerClass : ''
19
+ }, title && /*#__PURE__*/React.createElement("div", {
20
+ className: titleClass ? titleClass : ''
21
+ }, title), /*#__PURE__*/React.createElement("div", {
22
+ className: `${className ? className : ''} ${column == 'single' ? style.singleColumn : ''}`,
23
+ "data-id": formName && formName,
24
+ "data-test-id": formName && formName
25
+ }, this.props.children));
26
+ };
31
27
 
32
- }
33
- Section.propTypes = propTypes; // if (__DOCS__) {
34
- // Section.docs = {
35
- // componentGroup: 'ModuleAddForm'
36
- // };
37
- // }
28
+ export default Section;
29
+ Section.propTypes = propTypes;
@@ -1,6 +1,5 @@
1
1
  import PropTypes from 'prop-types';
2
2
  export const propTypes = {
3
- children: PropTypes.node,
4
3
  className: PropTypes.string,
5
4
  containerClass: PropTypes.string,
6
5
  dataId: PropTypes.string,
@@ -1,57 +1,48 @@
1
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
2
 
3
- import React, { Component } from 'react';
3
+ import React from 'react';
4
4
  import { defaultProps } from './props/defaultProps';
5
5
  import { propTypes } from './props/propTypes';
6
6
  import Link from '../../Link/Link';
7
7
  import style from '../../../list/Subject/Subject.module.css';
8
- export default class Subject extends Component {
9
- constructor(props) {
10
- super(props);
11
- }
12
8
 
13
- render() {
14
- let {
15
- text,
16
- dataId,
17
- urlName,
18
- href,
19
- urlData,
20
- onClick,
21
- isLink,
22
- target,
23
- fontWeight,
24
- className,
25
- isDotted,
26
- children,
27
- customProps
28
- } = this.props;
29
- let {
30
- LinkProps = {},
31
- TextProps = {}
32
- } = customProps;
33
- return /*#__PURE__*/React.createElement(React.Fragment, null, isLink ? /*#__PURE__*/React.createElement(Link, _extends({
34
- urlName: urlName,
35
- href: href,
36
- urlData: urlData,
37
- onClick: onClick,
38
- className: `${style.subject} ${isDotted ? style.dotted : ''} ${className} ${style[`font_${fontWeight}`]} ${style.cursorPointer}`,
39
- dataId: dataId,
40
- title: text,
41
- target: target
42
- }, LinkProps), children ? children : text) : /*#__PURE__*/React.createElement("span", _extends({
43
- className: `${style.subject} ${isDotted ? style.dotted : ''} ${className} ${style[`font_${fontWeight}`]}`,
44
- "data-title": text,
45
- "data-id": dataId,
46
- "data-test-id": dataId
47
- }, TextProps), text));
48
- }
9
+ const Subject = props => {
10
+ const {
11
+ text,
12
+ dataId,
13
+ urlName,
14
+ href,
15
+ urlData,
16
+ onClick,
17
+ isLink,
18
+ target,
19
+ fontWeight,
20
+ className,
21
+ isDotted,
22
+ children,
23
+ customProps
24
+ } = props;
25
+ const {
26
+ LinkProps = {},
27
+ TextProps = {}
28
+ } = customProps;
29
+ return /*#__PURE__*/React.createElement(React.Fragment, null, isLink ? /*#__PURE__*/React.createElement(Link, _extends({
30
+ urlName: urlName,
31
+ href: href,
32
+ urlData: urlData,
33
+ onClick: onClick,
34
+ className: `${style.subject} ${isDotted ? style.dotted : ''} ${className} ${style[`font_${fontWeight}`]} ${style.cursorPointer}`,
35
+ dataId: dataId,
36
+ title: text,
37
+ target: target
38
+ }, LinkProps), children ? children : text) : /*#__PURE__*/React.createElement("span", _extends({
39
+ className: `${style.subject} ${isDotted ? style.dotted : ''} ${className} ${style[`font_${fontWeight}`]}`,
40
+ "data-title": text,
41
+ "data-id": dataId,
42
+ "data-test-id": dataId
43
+ }, TextProps), text));
44
+ };
49
45
 
50
- }
46
+ export default Subject;
51
47
  Subject.propTypes = propTypes;
52
- Subject.defaultProps = defaultProps; // if (__DOCS__) {
53
- // Subject.docs = {
54
- // folderName: 'List',
55
- // componentGroup: 'Subject'
56
- // };
57
- // }
48
+ Subject.defaultProps = defaultProps;
@@ -1,33 +1,24 @@
1
- import React, { Component } from 'react';
1
+ import React from 'react';
2
2
  import { defaultProps } from './props/defaultProps';
3
3
  import { propTypes } from './props/propTypes';
4
4
  import style from '../../../list/TagNew/TagNew.module.css';
5
- export default class TagNew extends Component {
6
- constructor(props) {
7
- super(props);
8
- }
9
5
 
10
- render() {
11
- let {
12
- className,
13
- text,
14
- animate,
15
- onClick,
16
- dataId
17
- } = this.props;
18
- return /*#__PURE__*/React.createElement("div", {
19
- className: `${style.tagStyle} ${animate ? style.bounceIn : ''} ${className ? className : ''}`,
20
- onClick: onClick,
21
- "data-id": dataId,
22
- "data-test-id": dataId
23
- }, text);
24
- }
6
+ const TagNew = props => {
7
+ const {
8
+ className,
9
+ text,
10
+ animate,
11
+ onClick,
12
+ dataId
13
+ } = props;
14
+ return /*#__PURE__*/React.createElement("div", {
15
+ className: `${style.tagStyle} ${animate ? style.bounceIn : ''} ${className ? className : ''}`,
16
+ onClick: onClick,
17
+ "data-id": dataId,
18
+ "data-test-id": dataId
19
+ }, text);
20
+ };
25
21
 
26
- }
22
+ export default TagNew;
27
23
  TagNew.propTypes = propTypes;
28
- TagNew.defaultProps = defaultProps; // if (__DOCS__) {
29
- // TagNew.docs = {
30
- // folderName: 'List',
31
- // componentGroup: 'TagNew'
32
- // };
33
- // }
24
+ TagNew.defaultProps = defaultProps;