@zohodesk/dot 1.9.2 → 1.9.3

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 (885) hide show
  1. package/README.md +15 -0
  2. package/_react-cli.config.js +27 -0
  3. package/assets/Appearance/dark/mode/Dot_DarkMode.module.css +425 -422
  4. package/assets/Appearance/dark/themes/blue/blue_DotTheme_DarkTheme.module.css +16 -16
  5. package/assets/Appearance/dark/themes/green/green_DotTheme_DarkTheme.module.css +16 -16
  6. package/assets/Appearance/dark/themes/orange/orange_DotTheme_DarkTheme.module.css +16 -16
  7. package/assets/Appearance/dark/themes/red/red_DotTheme_DarkTheme.module.css +16 -16
  8. package/assets/Appearance/dark/themes/yellow/yellow_DotTheme_DarkTheme.module.css +16 -16
  9. package/assets/Appearance/light/mode/Dot_LightMode.module.css +425 -422
  10. package/assets/Appearance/light/themes/blue/blue_DotTheme_LightTheme.module.css +16 -16
  11. package/assets/Appearance/light/themes/green/green_DotTheme_LightTheme.module.css +16 -16
  12. package/assets/Appearance/light/themes/orange/orange_DotTheme_LightTheme.module.css +16 -16
  13. package/assets/Appearance/light/themes/red/red_DotTheme_LightTheme.module.css +16 -16
  14. package/assets/Appearance/light/themes/yellow/yellow_DotTheme_LightTheme.module.css +16 -16
  15. package/assets/Appearance/pureDark/mode/Dot_PureDarkMode.module.css +425 -422
  16. package/assets/Appearance/pureDark/themes/blue/blue_DotTheme_PureDarkTheme.module.css +16 -16
  17. package/assets/Appearance/pureDark/themes/green/green_DotTheme_PureDarkTheme.module.css +16 -16
  18. package/assets/Appearance/pureDark/themes/orange/orange_DotTheme_PureDarkTheme.module.css +16 -16
  19. package/assets/Appearance/pureDark/themes/red/red_DotTheme_PureDarkTheme.module.css +16 -16
  20. package/assets/Appearance/pureDark/themes/yellow/yellow_DotTheme_PureDarkTheme.module.css +16 -16
  21. package/cbt.config.js +41 -0
  22. package/es/AlphabeticList/AlphabeticList.module.css +0 -0
  23. package/es/AttachmentViewer/AttachmentViewer.js +20 -24
  24. package/es/AudioPlayer/Timer/__tests__/Timer.spec.js +1 -2
  25. package/es/AudioPlayer/__tests__/AudioPlayer.spec.js +39 -38
  26. package/es/ChannelIcon/ChannelIcon.js +11 -13
  27. package/es/DotProvider/DotProvider.js +4 -2
  28. package/es/Drawer/Drawer.js +5 -4
  29. package/es/ExternalLink/ExternalLink.js +5 -4
  30. package/es/ExternalLink/ExternalLink.module.css +0 -0
  31. package/es/ExternalLink/__tests__/ExternalLink.spec.js +0 -0
  32. package/es/FlipCard/FlipCard.js +12 -14
  33. package/es/IconButton/IconButton.js +5 -4
  34. package/es/Link/Link.js +10 -8
  35. package/es/Message/Message.js +5 -4
  36. package/es/Onboarding/Onboarding.js +25 -33
  37. package/es/PlusIcon/PlusIcon.js +0 -0
  38. package/es/Separator/Separator.module.css +5 -5
  39. package/es/TagWithIcon/TagWithIcon.module.css +2 -2
  40. package/es/ToastMessage/ToastMessage.js +4 -2
  41. package/es/ToastMessage/ToastMessage.module.css +0 -0
  42. package/es/actions/AutoClose.js +1 -2
  43. package/es/alert/AlertLookup/AlertLookup.js +12 -14
  44. package/es/avatar/AvatarClose/AvatarClose.js +7 -7
  45. package/es/avatar/AvatarCollision/AvatarCollision.js +7 -7
  46. package/es/avatar/AvatarIcon/AvatarIcon.js +5 -4
  47. package/es/avatar/AvatarStatus/AvatarStatus.js +8 -7
  48. package/es/avatar/AvatarThread/AvatarThread.js +7 -7
  49. package/es/avatar/AvatarUser/AvatarUser.js +9 -10
  50. package/es/avatar/AvatarWithTeam/AvatarWithTeam.js +14 -17
  51. package/es/dot_layer.module.css +1 -1
  52. package/es/dropdown/ToggleDropDown/ToggleDropDown.js +24 -28
  53. package/es/emptystate/CommonEmptyState/CommonEmptyState.js +0 -0
  54. package/es/errorstate/Inconvenience/Inconvenience.js +1 -1
  55. package/es/errorstate/UnableToProcess/UnableToProcess.js +1 -1
  56. package/es/form/fields/CheckBoxField/CheckBoxField.js +13 -15
  57. package/es/form/fields/CurrencyField/CurrencyField.js +12 -14
  58. package/es/form/fields/DateField/DateField.js +13 -14
  59. package/es/form/fields/Fields.module.css +4 -1
  60. package/es/form/fields/MultiSelectField/MultiSelectField.js +12 -13
  61. package/es/form/fields/PhoneField/PhoneField.js +7 -7
  62. package/es/form/fields/RadioField/RadioField.js +17 -19
  63. package/es/form/fields/SelectField/SelectField.js +13 -14
  64. package/es/form/fields/TagsMultiSelect/TagsMultiSelect.js +20 -20
  65. package/es/form/fields/TagsMultiSelect/props/propTypes.js +2 -1
  66. package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +11 -11
  67. package/es/form/fields/TextBoxField/TextBoxField.js +13 -14
  68. package/es/form/fields/TextEditor/TextEditor.module.css +0 -0
  69. package/es/form/fields/TextEditorField/TextEditorField.js +10 -11
  70. package/es/form/fields/TextEditorWrapper/TextEditorWrapper.js +10 -11
  71. package/es/form/fields/TextareaField/TextareaField.js +14 -15
  72. package/es/form/fields/ValidationMessage/ValidationMessage.js +4 -2
  73. package/es/form/layout/Field/Field.js +0 -0
  74. package/es/form/layout/Section/Section.js +0 -0
  75. package/es/layout/SubtabLayout/SubtabLayout.js +6 -4
  76. package/es/list/DepartmentDropDown/DepartmentDropDown.js +17 -10
  77. package/es/list/DepartmentDropDown/props/defaultProps.js +2 -1
  78. package/es/list/DepartmentDropDown/props/propTypes.js +3 -0
  79. package/es/list/GridStencils/GridStencils.module.css +14 -5
  80. package/es/list/ListLayout/ListLayout.js +5 -4
  81. package/es/list/SecondaryText/AccountName.js +6 -4
  82. package/es/list/SecondaryText/ContactName.js +6 -4
  83. package/es/list/SecondaryText/Email.js +5 -4
  84. package/es/list/SecondaryText/PhoneNumber.js +5 -4
  85. package/es/list/SecondaryText/TicketId.js +7 -7
  86. package/es/list/SecondaryText/Website.js +0 -0
  87. package/es/list/SecondryPanel/SecondryPanel.js +0 -0
  88. package/es/list/Subject/Subject.js +5 -4
  89. package/es/list/status/StatusDropdown/StatusDropdown.js +7 -2
  90. package/es/list/status/StatusDropdown/props/defaultProps.js +2 -1
  91. package/es/list/status/StatusDropdown/props/propTypes.js +4 -1
  92. package/es/list/status/StatusListItem/StatusListItem.js +11 -7
  93. package/es/list/status/StatusListItem/StatusListItem.module.css +38 -17
  94. package/es/list/status/StatusListItem/__tests__/__snapshots__/StatusListItem.spec.js.snap +30 -23
  95. package/es/list/status/StatusListItem/props/defaultProps.js +2 -1
  96. package/es/list/status/StatusListItem/props/propTypes.js +2 -1
  97. package/es/lookup/EmptyPage/EmptyPage.js +0 -0
  98. package/es/lookup/Lookup/Lookup.js +5 -4
  99. package/es/lookup/Lookup/Lookup.module.css +0 -0
  100. package/es/lookup/header/Search/Search.js +3 -5
  101. package/es/lookup/header/TicketHeader/TicketHeader.module.css +0 -0
  102. package/es/lookup/header/ViewDropDown/ViewDropDown.module.css +0 -0
  103. package/es/setup/helptips/Link/Link.js +0 -0
  104. package/es/setup/helptips/Title/Title.js +0 -0
  105. package/es/setup/table/Text/TableText.module.css +0 -0
  106. package/es/setup/table/Text/Text.js +0 -0
  107. package/es/version2/GlobalNotification/GlobalNotification.js +9 -8
  108. package/es/version2/lookup/AlertLookup/AlertLookup.js +15 -15
  109. package/es/version2/notification/DesktopNotification/DesktopNotification.js +7 -6
  110. package/lib/AlphabeticList/AlphabeticList.module.css +0 -0
  111. package/lib/Drawer/Drawer.js +0 -0
  112. package/lib/ExternalLink/ExternalLink.js +0 -0
  113. package/lib/ExternalLink/ExternalLink.module.css +0 -0
  114. package/lib/ExternalLink/__tests__/ExternalLink.spec.js +0 -0
  115. package/lib/Link/Link.js +0 -0
  116. package/lib/PlusIcon/PlusIcon.js +0 -0
  117. package/lib/Separator/Separator.module.css +5 -5
  118. package/lib/TagWithIcon/TagWithIcon.module.css +2 -2
  119. package/lib/ToastMessage/ToastMessage.js +0 -0
  120. package/lib/ToastMessage/ToastMessage.module.css +0 -0
  121. package/lib/avatar/AvatarStatus/AvatarStatus.js +0 -0
  122. package/lib/avatar/AvatarUser/AvatarUser.js +0 -0
  123. package/lib/dot_layer.module.css +1 -1
  124. package/lib/emptystate/CommonEmptyState/CommonEmptyState.js +0 -0
  125. package/lib/errorstate/Inconvenience/Inconvenience.js +1 -1
  126. package/lib/errorstate/UnableToProcess/UnableToProcess.js +1 -1
  127. package/lib/form/fields/CheckBoxField/CheckBoxField.js +0 -0
  128. package/lib/form/fields/Fields.module.css +4 -1
  129. package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.js +12 -7
  130. package/lib/form/fields/TagsMultiSelect/props/propTypes.js +2 -1
  131. package/lib/form/fields/TextEditor/TextEditor.module.css +0 -0
  132. package/lib/form/layout/Field/Field.js +0 -0
  133. package/lib/form/layout/Section/Section.js +0 -0
  134. package/lib/list/DepartmentDropDown/DepartmentDropDown.js +16 -10
  135. package/lib/list/DepartmentDropDown/props/defaultProps.js +2 -1
  136. package/lib/list/DepartmentDropDown/props/propTypes.js +2 -0
  137. package/lib/list/GridStencils/GridStencils.module.css +14 -5
  138. package/lib/list/SecondaryText/Website.js +0 -0
  139. package/lib/list/SecondryPanel/SecondryPanel.js +0 -0
  140. package/lib/list/status/StatusDropdown/StatusDropdown.js +6 -2
  141. package/lib/list/status/StatusDropdown/props/defaultProps.js +2 -1
  142. package/lib/list/status/StatusDropdown/props/propTypes.js +3 -1
  143. package/lib/list/status/StatusListItem/StatusListItem.js +7 -3
  144. package/lib/list/status/StatusListItem/StatusListItem.module.css +38 -17
  145. package/lib/list/status/StatusListItem/__tests__/__snapshots__/StatusListItem.spec.js.snap +30 -23
  146. package/lib/list/status/StatusListItem/props/defaultProps.js +2 -1
  147. package/lib/list/status/StatusListItem/props/propTypes.js +2 -1
  148. package/lib/lookup/EmptyPage/EmptyPage.js +0 -0
  149. package/lib/lookup/Lookup/Lookup.js +0 -0
  150. package/lib/lookup/Lookup/Lookup.module.css +0 -0
  151. package/lib/lookup/header/TicketHeader/TicketHeader.module.css +0 -0
  152. package/lib/lookup/header/ViewDropDown/ViewDropDown.module.css +0 -0
  153. package/lib/setup/helptips/Link/Link.js +0 -0
  154. package/lib/setup/helptips/Title/Title.js +0 -0
  155. package/lib/setup/table/Text/TableText.module.css +0 -0
  156. package/lib/setup/table/Text/Text.js +0 -0
  157. package/package.json +16 -20
  158. package/es/v1/ActionButton/ActionButton.js +0 -155
  159. package/es/v1/ActionButton/props/defaultProps.js +0 -19
  160. package/es/v1/ActionButton/props/propTypes.js +0 -37
  161. package/es/v1/AlphabeticList/AlphabeticList.js +0 -94
  162. package/es/v1/AlphabeticList/props/defaultProps.js +0 -12
  163. package/es/v1/AlphabeticList/props/propTypes.js +0 -23
  164. package/es/v1/Attachment/Attachment.js +0 -96
  165. package/es/v1/Attachment/props/defaultProps.js +0 -8
  166. package/es/v1/Attachment/props/propTypes.js +0 -18
  167. package/es/v1/AttachmentViewer/AttachmentImage.js +0 -81
  168. package/es/v1/AttachmentViewer/AttachmentViewer.js +0 -626
  169. package/es/v1/AttachmentViewer/props/defaultProps.js +0 -11
  170. package/es/v1/AttachmentViewer/props/propTypes.js +0 -36
  171. package/es/v1/ChannelIcon/ChannelIcon.js +0 -93
  172. package/es/v1/ChannelIcon/props/defaultProps.js +0 -7
  173. package/es/v1/ChannelIcon/props/propTypes.js +0 -25
  174. package/es/v1/Drawer/Drawer.js +0 -270
  175. package/es/v1/Drawer/props/defaultProps.js +0 -23
  176. package/es/v1/Drawer/props/propTypes.js +0 -53
  177. package/es/v1/ExternalLink/ExternalLink.js +0 -48
  178. package/es/v1/ExternalLink/props/defaultProps.js +0 -5
  179. package/es/v1/ExternalLink/props/propTypes.js +0 -12
  180. package/es/v1/FlipCard/FlipCard.js +0 -132
  181. package/es/v1/FlipCard/props/defaultProps.js +0 -5
  182. package/es/v1/FlipCard/props/propTypes.js +0 -37
  183. package/es/v1/FormAction/FormAction.js +0 -75
  184. package/es/v1/FormAction/props/defaultProps.js +0 -5
  185. package/es/v1/FormAction/props/propTypes.js +0 -8
  186. package/es/v1/FreezeLayer/FreezeLayer.js +0 -74
  187. package/es/v1/FreezeLayer/props/defaultProps.js +0 -9
  188. package/es/v1/FreezeLayer/props/propTypes.js +0 -19
  189. package/es/v1/GlobalNotification/GlobalNotification.js +0 -144
  190. package/es/v1/GlobalNotification/props/defaultProps.js +0 -6
  191. package/es/v1/GlobalNotification/props/propTypes.js +0 -42
  192. package/es/v1/IconButton/IconButton.js +0 -112
  193. package/es/v1/IconButton/props/defaultProps.js +0 -17
  194. package/es/v1/IconButton/props/propTypes.js +0 -33
  195. package/es/v1/Image/Image.js +0 -36
  196. package/es/v1/Image/props/defaultProps.js +0 -4
  197. package/es/v1/Image/props/propTypes.js +0 -15
  198. package/es/v1/ImportantNotes/ImportantNotes.js +0 -41
  199. package/es/v1/ImportantNotes/props/defaultProps.js +0 -6
  200. package/es/v1/ImportantNotes/props/propTypes.js +0 -10
  201. package/es/v1/Link/Link.js +0 -93
  202. package/es/v1/Link/props/defaultProps.js +0 -5
  203. package/es/v1/Link/props/propTypes.js +0 -18
  204. package/es/v1/Loader/Loader.js +0 -15
  205. package/es/v1/Message/Message.js +0 -91
  206. package/es/v1/Message/props/defaultProps.js +0 -4
  207. package/es/v1/Message/props/propTypes.js +0 -20
  208. package/es/v1/MessageBanner/MessageBanner.js +0 -60
  209. package/es/v1/MessageBanner/props/defaultProps.js +0 -7
  210. package/es/v1/MessageBanner/props/propTypes.js +0 -13
  211. package/es/v1/NewStar/NewStar.js +0 -61
  212. package/es/v1/NewStar/props/defaultProps.js +0 -4
  213. package/es/v1/NewStar/props/propTypes.js +0 -6
  214. package/es/v1/PlusIcon/PlusIcon.js +0 -32
  215. package/es/v1/PlusIcon/props/defaultProps.js +0 -8
  216. package/es/v1/PlusIcon/props/propTypes.js +0 -11
  217. package/es/v1/Separator/Separator.js +0 -53
  218. package/es/v1/Separator/props/defaultProps.js +0 -12
  219. package/es/v1/Separator/props/propTypes.js +0 -11
  220. package/es/v1/TagWithIcon/TagWithIcon.js +0 -39
  221. package/es/v1/TagWithIcon/props/defaultProps.js +0 -8
  222. package/es/v1/TagWithIcon/props/propTypes.js +0 -13
  223. package/es/v1/ToastMessage/ToastMessage.js +0 -201
  224. package/es/v1/ToastMessage/props/defaultProps.js +0 -18
  225. package/es/v1/ToastMessage/props/propTypes.js +0 -40
  226. package/es/v1/Upload/Upload.js +0 -69
  227. package/es/v1/Upload/props/defaultProps.js +0 -7
  228. package/es/v1/Upload/props/propTypes.js +0 -17
  229. package/es/v1/actions/AutoClose.js +0 -44
  230. package/es/v1/actions/props/defaultProps.js +0 -3
  231. package/es/v1/actions/props/propTypes.js +0 -8
  232. package/es/v1/alert/AlertClose/AlertClose.js +0 -43
  233. package/es/v1/alert/AlertClose/props/propTypes.js +0 -8
  234. package/es/v1/alert/AlertHeader/AlertHeader.js +0 -82
  235. package/es/v1/alert/AlertHeader/props/defaultProps.js +0 -12
  236. package/es/v1/alert/AlertHeader/props/propTypes.js +0 -20
  237. package/es/v1/alert/AlertLookup/AlertLookup.js +0 -166
  238. package/es/v1/alert/AlertLookup/props/defaultProps.js +0 -13
  239. package/es/v1/alert/AlertLookup/props/propTypes.js +0 -36
  240. package/es/v1/alert/alertIcons/AlarmAlertIcon.js +0 -65
  241. package/es/v1/alert/alertIcons/AlertIcons.js +0 -57
  242. package/es/v1/alert/alertIcons/DangerAlertIcon.js +0 -65
  243. package/es/v1/alert/alertIcons/ErrorAlertIcon.js +0 -70
  244. package/es/v1/alert/alertIcons/InfoAlertIcon.js +0 -74
  245. package/es/v1/alert/alertIcons/NotificationAlertIcon.js +0 -70
  246. package/es/v1/alert/alertIcons/SuccessAlertIcon.js +0 -65
  247. package/es/v1/alert/alertIcons/WarningAlertIcon.js +0 -65
  248. package/es/v1/alert/alertIcons/index.js +0 -8
  249. package/es/v1/alert/alertIcons/props/defaultProps.js +0 -27
  250. package/es/v1/alert/alertIcons/props/propTypes.js +0 -34
  251. package/es/v1/alert/index.js +0 -2
  252. package/es/v1/avatar/AvatarClose/AvatarClose.js +0 -47
  253. package/es/v1/avatar/AvatarClose/props/defaultProps.js +0 -7
  254. package/es/v1/avatar/AvatarClose/props/propTypes.js +0 -15
  255. package/es/v1/avatar/AvatarCollision/AvatarCollision.js +0 -51
  256. package/es/v1/avatar/AvatarCollision/props/defaultProps.js +0 -8
  257. package/es/v1/avatar/AvatarCollision/props/propTypes.js +0 -17
  258. package/es/v1/avatar/AvatarIcon/AvatarIcon.js +0 -48
  259. package/es/v1/avatar/AvatarIcon/props/defaultProps.js +0 -14
  260. package/es/v1/avatar/AvatarIcon/props/propTypes.js +0 -20
  261. package/es/v1/avatar/AvatarStatus/AvatarStatus.js +0 -59
  262. package/es/v1/avatar/AvatarStatus/props/defaultProps.js +0 -12
  263. package/es/v1/avatar/AvatarStatus/props/propTypes.js +0 -26
  264. package/es/v1/avatar/AvatarThread/AvatarThread.js +0 -72
  265. package/es/v1/avatar/AvatarThread/props/defaultProps.js +0 -9
  266. package/es/v1/avatar/AvatarThread/props/propTypes.js +0 -30
  267. package/es/v1/avatar/AvatarUser/AvatarUser.js +0 -110
  268. package/es/v1/avatar/AvatarUser/props/defaultProps.js +0 -8
  269. package/es/v1/avatar/AvatarUser/props/propTypes.js +0 -35
  270. package/es/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +0 -94
  271. package/es/v1/avatar/AvatarWithTeam/props/defaultProps.js +0 -9
  272. package/es/v1/avatar/AvatarWithTeam/props/propTypes.js +0 -25
  273. package/es/v1/avatar/index.js +0 -7
  274. package/es/v1/dropdown/ToggleDropDown/ToggleDropDown.js +0 -880
  275. package/es/v1/dropdown/ToggleDropDown/props/defaultProps.js +0 -29
  276. package/es/v1/dropdown/ToggleDropDown/props/propTypes.js +0 -83
  277. package/es/v1/emptystate/CommonEmptyState/CommonEmptyState.js +0 -64
  278. package/es/v1/emptystate/CommonEmptyState/props/defaultProps.js +0 -10
  279. package/es/v1/emptystate/CommonEmptyState/props/propTypes.js +0 -21
  280. package/es/v1/emptystate/EditionPage/EditionPage.js +0 -51
  281. package/es/v1/emptystate/EditionPage/props/defaultProps.js +0 -5
  282. package/es/v1/emptystate/EditionPage/props/propTypes.js +0 -11
  283. package/es/v1/errorstate/Inconvenience/Inconvenience.js +0 -60
  284. package/es/v1/errorstate/Inconvenience/props/defaultProps.js +0 -8
  285. package/es/v1/errorstate/Inconvenience/props/propTypes.js +0 -16
  286. package/es/v1/errorstate/OopsSomethingMiss/OopsSomethingMiss.js +0 -64
  287. package/es/v1/errorstate/OopsSomethingMiss/props/defaultProps.js +0 -8
  288. package/es/v1/errorstate/OopsSomethingMiss/props/propTypes.js +0 -16
  289. package/es/v1/errorstate/UnableToProcessRequest/UnableToProcessRequest.js +0 -64
  290. package/es/v1/errorstate/UnableToProcessRequest/props/defaultProps.js +0 -8
  291. package/es/v1/errorstate/UnableToProcessRequest/props/propTypes.js +0 -16
  292. package/es/v1/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +0 -65
  293. package/es/v1/errorstate/UnauthorizedLogin/props/defaultProps.js +0 -9
  294. package/es/v1/errorstate/UnauthorizedLogin/props/propTypes.js +0 -17
  295. package/es/v1/errorstate/UrlNotFound/UrlNotFound.js +0 -64
  296. package/es/v1/errorstate/UrlNotFound/props/defaultProps.js +0 -8
  297. package/es/v1/errorstate/UrlNotFound/props/propTypes.js +0 -16
  298. package/es/v1/errorstate/WillBeRightBack/WillBeRightBack.js +0 -64
  299. package/es/v1/errorstate/WillBeRightBack/props/defaultProps.js +0 -8
  300. package/es/v1/errorstate/WillBeRightBack/props/propTypes.js +0 -16
  301. package/es/v1/form/fields/CheckBoxField/CheckBoxField.js +0 -130
  302. package/es/v1/form/fields/CheckBoxField/props/defaultProps.js +0 -12
  303. package/es/v1/form/fields/CheckBoxField/props/propTypes.js +0 -29
  304. package/es/v1/form/fields/CurrencyField/CurrencyField.js +0 -160
  305. package/es/v1/form/fields/CurrencyField/props/defaultProps.js +0 -17
  306. package/es/v1/form/fields/CurrencyField/props/propTypes.js +0 -39
  307. package/es/v1/form/fields/DateField/DateField.js +0 -164
  308. package/es/v1/form/fields/DateField/props/defaultProps.js +0 -19
  309. package/es/v1/form/fields/DateField/props/propTypes.js +0 -39
  310. package/es/v1/form/fields/FieldContainer/FieldContainer.js +0 -66
  311. package/es/v1/form/fields/FieldContainer/props/defaultProps.js +0 -6
  312. package/es/v1/form/fields/FieldContainer/props/propTypes.js +0 -24
  313. package/es/v1/form/fields/MultiSelectField/MultiSelectField.js +0 -190
  314. package/es/v1/form/fields/MultiSelectField/props/defaultProps.js +0 -17
  315. package/es/v1/form/fields/MultiSelectField/props/propTypes.js +0 -50
  316. package/es/v1/form/fields/PhoneField/PhoneField.js +0 -161
  317. package/es/v1/form/fields/PhoneField/props/defaultProps.js +0 -16
  318. package/es/v1/form/fields/PhoneField/props/propTypes.js +0 -47
  319. package/es/v1/form/fields/RadioField/RadioField.js +0 -144
  320. package/es/v1/form/fields/RadioField/props/defaultProps.js +0 -13
  321. package/es/v1/form/fields/RadioField/props/propTypes.js +0 -33
  322. package/es/v1/form/fields/RadioField/useRadio.js +0 -44
  323. package/es/v1/form/fields/SelectField/SelectField.js +0 -160
  324. package/es/v1/form/fields/SelectField/props/defaultProps.js +0 -18
  325. package/es/v1/form/fields/SelectField/props/propTypes.js +0 -50
  326. package/es/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +0 -333
  327. package/es/v1/form/fields/TagsMultiSelect/props/defaultProps.js +0 -16
  328. package/es/v1/form/fields/TagsMultiSelect/props/propTypes.js +0 -57
  329. package/es/v1/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +0 -276
  330. package/es/v1/form/fields/TagsMultiSelectField/props/defaultProps.js +0 -23
  331. package/es/v1/form/fields/TagsMultiSelectField/props/propTypes.js +0 -71
  332. package/es/v1/form/fields/TextBoxField/TextBoxField.js +0 -144
  333. package/es/v1/form/fields/TextBoxField/props/defaultProps.js +0 -17
  334. package/es/v1/form/fields/TextBoxField/props/propTypes.js +0 -44
  335. package/es/v1/form/fields/TextEditor/TextEditor.js +0 -418
  336. package/es/v1/form/fields/TextEditor/props/defaultProps.js +0 -16
  337. package/es/v1/form/fields/TextEditor/props/propTypes.js +0 -53
  338. package/es/v1/form/fields/TextEditorField/TextEditorField.js +0 -159
  339. package/es/v1/form/fields/TextEditorField/props/defaultProps.js +0 -15
  340. package/es/v1/form/fields/TextEditorField/props/propTypes.js +0 -59
  341. package/es/v1/form/fields/TextEditorWrapper/TextEditorWrapper.js +0 -163
  342. package/es/v1/form/fields/TextEditorWrapper/props/defaultProps.js +0 -9
  343. package/es/v1/form/fields/TextEditorWrapper/props/propTypes.js +0 -40
  344. package/es/v1/form/fields/TextareaField/TextareaField.js +0 -140
  345. package/es/v1/form/fields/TextareaField/props/defaultProps.js +0 -15
  346. package/es/v1/form/fields/TextareaField/props/propTypes.js +0 -35
  347. package/es/v1/form/fields/ValidationMessage/ValidationMessage.js +0 -58
  348. package/es/v1/form/fields/ValidationMessage/props/defaultProps.js +0 -7
  349. package/es/v1/form/fields/ValidationMessage/props/propTypes.js +0 -16
  350. package/es/v1/form/fields/index.js +0 -16
  351. package/es/v1/form/fields/props/FieldCommonDefaultProps.js +0 -10
  352. package/es/v1/form/fields/props/FieldCommonPropTypes.js +0 -17
  353. package/es/v1/form/layout/Field/Field.js +0 -29
  354. package/es/v1/form/layout/Field/props/defaultProps.js +0 -4
  355. package/es/v1/form/layout/Field/props/propTypes.js +0 -10
  356. package/es/v1/form/layout/Section/Section.js +0 -30
  357. package/es/v1/form/layout/Section/props/propTypes.js +0 -11
  358. package/es/v1/form/layout/index.js +0 -2
  359. package/es/v1/layout/SetupDetailLayout/SetupDetailLayout.js +0 -174
  360. package/es/v1/layout/SetupDetailLayout/index.js +0 -4
  361. package/es/v1/layout/SetupDetailLayout/props/defaultProps.js +0 -20
  362. package/es/v1/layout/SetupDetailLayout/props/propTypes.js +0 -40
  363. package/es/v1/layout/SubtabLayout/SubtabLayout.js +0 -126
  364. package/es/v1/layout/SubtabLayout/index.js +0 -4
  365. package/es/v1/layout/SubtabLayout/props/defaultProps.js +0 -25
  366. package/es/v1/layout/SubtabLayout/props/propTypes.js +0 -40
  367. package/es/v1/list/AvatarFlip/AvatarFlip.js +0 -73
  368. package/es/v1/list/AvatarFlip/props/defaultProps.js +0 -6
  369. package/es/v1/list/AvatarFlip/props/propTypes.js +0 -29
  370. package/es/v1/list/BluePrintStatus/BluePrintStatus.js +0 -21
  371. package/es/v1/list/BluePrintStatus/props/propTypes.js +0 -4
  372. package/es/v1/list/Comment/Comment.js +0 -35
  373. package/es/v1/list/Comment/props/defaultProps.js +0 -4
  374. package/es/v1/list/Comment/props/propTypes.js +0 -7
  375. package/es/v1/list/DepartmentDropDown/DepartmentDropDown.js +0 -85
  376. package/es/v1/list/DepartmentDropDown/props/defaultProps.js +0 -7
  377. package/es/v1/list/DepartmentDropDown/props/propTypes.js +0 -24
  378. package/es/v1/list/Dot/Dot.js +0 -15
  379. package/es/v1/list/Dot/props/defaultProps.js +0 -4
  380. package/es/v1/list/Dot/props/propTypes.js +0 -5
  381. package/es/v1/list/DotNew/DotNew.js +0 -22
  382. package/es/v1/list/DotNew/props/defaultProps.js +0 -3
  383. package/es/v1/list/DotNew/props/propTypes.js +0 -6
  384. package/es/v1/list/GridStencils/GridStencils.js +0 -31
  385. package/es/v1/list/GridStencils/props/propTypes.js +0 -8
  386. package/es/v1/list/Icons/AddNewIcon.js +0 -25
  387. package/es/v1/list/Icons/CompleteIcon.js +0 -27
  388. package/es/v1/list/Icons/DeleteIcon.js +0 -28
  389. package/es/v1/list/Icons/EditIcon.js +0 -28
  390. package/es/v1/list/Icons/FloatingIcons.js +0 -23
  391. package/es/v1/list/Icons/ReadUnreadIcon.js +0 -32
  392. package/es/v1/list/Icons/SmartIcon.js +0 -25
  393. package/es/v1/list/Icons/index.js +0 -7
  394. package/es/v1/list/Icons/props/defaultProps.js +0 -6
  395. package/es/v1/list/Icons/props/propTypes.js +0 -53
  396. package/es/v1/list/ListLayout/ListLayout.js +0 -68
  397. package/es/v1/list/ListLayout/props/defaultProps.js +0 -11
  398. package/es/v1/list/ListLayout/props/propTypes.js +0 -27
  399. package/es/v1/list/ListStencils/ListStencils.js +0 -44
  400. package/es/v1/list/ListStencils/props/defaultProps.js +0 -3
  401. package/es/v1/list/ListStencils/props/propTypes.js +0 -4
  402. package/es/v1/list/SecondaryText/AccountName.js +0 -77
  403. package/es/v1/list/SecondaryText/ContactName.js +0 -76
  404. package/es/v1/list/SecondaryText/DepartmentText.js +0 -18
  405. package/es/v1/list/SecondaryText/Email.js +0 -47
  406. package/es/v1/list/SecondaryText/HappinessRating.js +0 -23
  407. package/es/v1/list/SecondaryText/PhoneNumber.js +0 -51
  408. package/es/v1/list/SecondaryText/PriorityText.js +0 -21
  409. package/es/v1/list/SecondaryText/SecondaryText.js +0 -27
  410. package/es/v1/list/SecondaryText/StatusText.js +0 -22
  411. package/es/v1/list/SecondaryText/TicketId.js +0 -41
  412. package/es/v1/list/SecondaryText/Website.js +0 -35
  413. package/es/v1/list/SecondaryText/index.js +0 -11
  414. package/es/v1/list/SecondaryText/props/defaultProps.js +0 -44
  415. package/es/v1/list/SecondaryText/props/propTypes.js +0 -142
  416. package/es/v1/list/SecondryPanel/SecondryPanel.js +0 -87
  417. package/es/v1/list/SecondryPanel/props/defaultProps.js +0 -18
  418. package/es/v1/list/SecondryPanel/props/propTypes.js +0 -27
  419. package/es/v1/list/SentimentStatus/SentimentStatus.js +0 -23
  420. package/es/v1/list/SentimentStatus/props/propTypes.js +0 -5
  421. package/es/v1/list/Subject/Subject.js +0 -52
  422. package/es/v1/list/Subject/props/defaultProps.js +0 -8
  423. package/es/v1/list/Subject/props/propTypes.js +0 -20
  424. package/es/v1/list/TagNew/TagNew.js +0 -24
  425. package/es/v1/list/TagNew/props/defaultProps.js +0 -4
  426. package/es/v1/list/TagNew/props/propTypes.js +0 -8
  427. package/es/v1/list/Thread/Thread.js +0 -33
  428. package/es/v1/list/Thread/props/defaultProps.js +0 -4
  429. package/es/v1/list/Thread/props/propTypes.js +0 -8
  430. package/es/v1/list/index.js +0 -16
  431. package/es/v1/list/status/StatusDropdown/StatusDropdown.js +0 -307
  432. package/es/v1/list/status/StatusDropdown/props/defaultProps.js +0 -22
  433. package/es/v1/list/status/StatusDropdown/props/propTypes.js +0 -60
  434. package/es/v1/list/status/StatusListItem/StatusListItem.js +0 -108
  435. package/es/v1/list/status/StatusListItem/props/defaultProps.js +0 -16
  436. package/es/v1/list/status/StatusListItem/props/propTypes.js +0 -31
  437. package/es/v1/list/status/index.js +0 -2
  438. package/es/v1/lookup/EmptyPage/EmptyPage.js +0 -54
  439. package/es/v1/lookup/EmptyPage/props/defaultProps.js +0 -4
  440. package/es/v1/lookup/EmptyPage/props/propTypes.js +0 -5
  441. package/es/v1/lookup/Lookup/Lookup.js +0 -116
  442. package/es/v1/lookup/Lookup/props/defaultProps.js +0 -9
  443. package/es/v1/lookup/Lookup/props/propTypes.js +0 -24
  444. package/es/v1/lookup/Section/Section.js +0 -18
  445. package/es/v1/lookup/Section/props/propTypes.js +0 -6
  446. package/es/v1/lookup/header/Close/Close.js +0 -30
  447. package/es/v1/lookup/header/Close/props/defaultProps.js +0 -3
  448. package/es/v1/lookup/header/Close/props/propTypes.js +0 -6
  449. package/es/v1/lookup/header/ModuleHeader/ModuleHeader.js +0 -89
  450. package/es/v1/lookup/header/ModuleHeader/props/defaultProps.js +0 -9
  451. package/es/v1/lookup/header/ModuleHeader/props/propTypes.js +0 -20
  452. package/es/v1/lookup/header/Search/Search.js +0 -179
  453. package/es/v1/lookup/header/Search/props/defaultProps.js +0 -5
  454. package/es/v1/lookup/header/Search/props/propTypes.js +0 -28
  455. package/es/v1/lookup/header/TicketHeader/TicketHeader.js +0 -108
  456. package/es/v1/lookup/header/TicketHeader/props/defaultProps.js +0 -10
  457. package/es/v1/lookup/header/TicketHeader/props/propTypes.js +0 -21
  458. package/es/v1/lookup/header/Title/Title.js +0 -27
  459. package/es/v1/lookup/header/Title/props/defaultProps.js +0 -3
  460. package/es/v1/lookup/header/Title/props/propTypes.js +0 -6
  461. package/es/v1/lookup/header/ViewDropDown/ViewDropDown.js +0 -194
  462. package/es/v1/lookup/header/ViewDropDown/props/defaultProps.js +0 -10
  463. package/es/v1/lookup/header/ViewDropDown/props/propTypes.js +0 -27
  464. package/es/v1/lookup/header/index.js +0 -5
  465. package/es/v1/notification/DesktopNotification/DesktopNotification.js +0 -190
  466. package/es/v1/notification/DesktopNotification/props/defaultProps.js +0 -17
  467. package/es/v1/notification/DesktopNotification/props/propTypes.js +0 -43
  468. package/es/v1/notification/DesktopNotificationHeader/DesktopNotificationHeader.js +0 -91
  469. package/es/v1/notification/DesktopNotificationHeader/props/defaultProps.js +0 -7
  470. package/es/v1/notification/DesktopNotificationHeader/props/propTypes.js +0 -13
  471. package/es/v1/setup/header/Button/Button.js +0 -24
  472. package/es/v1/setup/header/Button/props/defaultProps.js +0 -4
  473. package/es/v1/setup/header/Button/props/propTypes.js +0 -7
  474. package/es/v1/setup/header/Link/Link.js +0 -32
  475. package/es/v1/setup/header/Link/props/defaultProps.js +0 -4
  476. package/es/v1/setup/header/Link/props/propTypes.js +0 -8
  477. package/es/v1/setup/header/Search/Search.js +0 -60
  478. package/es/v1/setup/header/Search/props/defaultProps.js +0 -6
  479. package/es/v1/setup/header/Search/props/propTypes.js +0 -12
  480. package/es/v1/setup/header/Views/Views.js +0 -34
  481. package/es/v1/setup/header/Views/props/defaultProps.js +0 -6
  482. package/es/v1/setup/header/Views/props/propTypes.js +0 -9
  483. package/es/v1/setup/header/index.js +0 -4
  484. package/es/v1/setup/helptips/Description/Description.js +0 -12
  485. package/es/v1/setup/helptips/Description/props/propTypes.js +0 -4
  486. package/es/v1/setup/helptips/Link/Link.js +0 -29
  487. package/es/v1/setup/helptips/Link/props/propTypes.js +0 -7
  488. package/es/v1/setup/helptips/ListGroup/ListGroup.js +0 -27
  489. package/es/v1/setup/helptips/ListGroup/props/propTypes.js +0 -5
  490. package/es/v1/setup/helptips/Title/Title.js +0 -12
  491. package/es/v1/setup/helptips/Title/props/propTypes.js +0 -4
  492. package/es/v1/setup/helptips/index.js +0 -4
  493. package/es/v1/setup/index.js +0 -6
  494. package/es/v1/setup/table/Table/Table.js +0 -22
  495. package/es/v1/setup/table/Table/props/defaultProps.js +0 -4
  496. package/es/v1/setup/table/Table/props/propTypes.js +0 -6
  497. package/es/v1/setup/table/TableBody/TableBody.js +0 -26
  498. package/es/v1/setup/table/TableBody/props/defaultProps.js +0 -3
  499. package/es/v1/setup/table/TableBody/props/propTypes.js +0 -7
  500. package/es/v1/setup/table/TableData/TableData.js +0 -31
  501. package/es/v1/setup/table/TableData/props/defaultProps.js +0 -5
  502. package/es/v1/setup/table/TableData/props/propTypes.js +0 -11
  503. package/es/v1/setup/table/TableHead/TableHead.js +0 -31
  504. package/es/v1/setup/table/TableHead/props/defaultProps.js +0 -4
  505. package/es/v1/setup/table/TableHead/props/propTypes.js +0 -8
  506. package/es/v1/setup/table/TableRow/TableRow.js +0 -36
  507. package/es/v1/setup/table/TableRow/props/defaultProps.js +0 -4
  508. package/es/v1/setup/table/TableRow/props/propTypes.js +0 -11
  509. package/es/v1/setup/table/Text/Text.js +0 -50
  510. package/es/v1/setup/table/Text/props/defaultProps.js +0 -7
  511. package/es/v1/setup/table/Text/props/propTypes.js +0 -13
  512. package/es/v1/setup/table/index.js +0 -5
  513. package/es/v1/svg/PlusIcon.js +0 -25
  514. package/es/v1/svg/SnippetIcon.js +0 -27
  515. package/es/v1/svg/TemplateIcon.js +0 -28
  516. package/es/v1/svg/index.js +0 -3
  517. package/es/v1/svg/props/defaultProps.js +0 -15
  518. package/es/v1/svg/props/propTypes.js +0 -16
  519. package/es/v1/utils/ChannelIconMapping.js +0 -129
  520. package/es/v1/utils/General.js +0 -45
  521. package/es/v1/utils/editorUtils.js +0 -193
  522. package/lib/v1/ActionButton/ActionButton.js +0 -173
  523. package/lib/v1/ActionButton/props/defaultProps.js +0 -26
  524. package/lib/v1/ActionButton/props/propTypes.js +0 -48
  525. package/lib/v1/AlphabeticList/AlphabeticList.js +0 -113
  526. package/lib/v1/AlphabeticList/props/defaultProps.js +0 -20
  527. package/lib/v1/AlphabeticList/props/propTypes.js +0 -50
  528. package/lib/v1/Attachment/Attachment.js +0 -110
  529. package/lib/v1/Attachment/props/defaultProps.js +0 -15
  530. package/lib/v1/Attachment/props/propTypes.js +0 -29
  531. package/lib/v1/AttachmentViewer/AttachmentImage.js +0 -117
  532. package/lib/v1/AttachmentViewer/AttachmentViewer.js +0 -713
  533. package/lib/v1/AttachmentViewer/props/defaultProps.js +0 -19
  534. package/lib/v1/AttachmentViewer/props/propTypes.js +0 -48
  535. package/lib/v1/ChannelIcon/ChannelIcon.js +0 -114
  536. package/lib/v1/ChannelIcon/props/defaultProps.js +0 -14
  537. package/lib/v1/ChannelIcon/props/propTypes.js +0 -36
  538. package/lib/v1/Drawer/Drawer.js +0 -302
  539. package/lib/v1/Drawer/props/defaultProps.js +0 -32
  540. package/lib/v1/Drawer/props/propTypes.js +0 -67
  541. package/lib/v1/ExternalLink/ExternalLink.js +0 -57
  542. package/lib/v1/ExternalLink/props/defaultProps.js +0 -12
  543. package/lib/v1/ExternalLink/props/propTypes.js +0 -23
  544. package/lib/v1/FlipCard/FlipCard.js +0 -149
  545. package/lib/v1/FlipCard/props/defaultProps.js +0 -12
  546. package/lib/v1/FlipCard/props/propTypes.js +0 -48
  547. package/lib/v1/FormAction/FormAction.js +0 -102
  548. package/lib/v1/FormAction/props/defaultProps.js +0 -12
  549. package/lib/v1/FormAction/props/propTypes.js +0 -19
  550. package/lib/v1/FreezeLayer/FreezeLayer.js +0 -94
  551. package/lib/v1/FreezeLayer/props/defaultProps.js +0 -16
  552. package/lib/v1/FreezeLayer/props/propTypes.js +0 -31
  553. package/lib/v1/GlobalNotification/GlobalNotification.js +0 -187
  554. package/lib/v1/GlobalNotification/props/defaultProps.js +0 -13
  555. package/lib/v1/GlobalNotification/props/propTypes.js +0 -58
  556. package/lib/v1/IconButton/IconButton.js +0 -149
  557. package/lib/v1/IconButton/props/defaultProps.js +0 -24
  558. package/lib/v1/IconButton/props/propTypes.js +0 -43
  559. package/lib/v1/Image/Image.js +0 -48
  560. package/lib/v1/Image/props/defaultProps.js +0 -11
  561. package/lib/v1/Image/props/propTypes.js +0 -26
  562. package/lib/v1/ImportantNotes/ImportantNotes.js +0 -55
  563. package/lib/v1/ImportantNotes/props/defaultProps.js +0 -13
  564. package/lib/v1/ImportantNotes/props/propTypes.js +0 -21
  565. package/lib/v1/Link/Link.js +0 -116
  566. package/lib/v1/Link/props/defaultProps.js +0 -12
  567. package/lib/v1/Link/props/propTypes.js +0 -29
  568. package/lib/v1/Loader/Loader.js +0 -27
  569. package/lib/v1/Message/Message.js +0 -113
  570. package/lib/v1/Message/props/defaultProps.js +0 -11
  571. package/lib/v1/Message/props/propTypes.js +0 -41
  572. package/lib/v1/MessageBanner/MessageBanner.js +0 -75
  573. package/lib/v1/MessageBanner/props/defaultProps.js +0 -14
  574. package/lib/v1/MessageBanner/props/propTypes.js +0 -24
  575. package/lib/v1/NewStar/NewStar.js +0 -74
  576. package/lib/v1/NewStar/props/defaultProps.js +0 -11
  577. package/lib/v1/NewStar/props/propTypes.js +0 -17
  578. package/lib/v1/PlusIcon/PlusIcon.js +0 -45
  579. package/lib/v1/PlusIcon/props/defaultProps.js +0 -15
  580. package/lib/v1/PlusIcon/props/propTypes.js +0 -22
  581. package/lib/v1/Separator/Separator.js +0 -66
  582. package/lib/v1/Separator/props/defaultProps.js +0 -19
  583. package/lib/v1/Separator/props/propTypes.js +0 -22
  584. package/lib/v1/TagWithIcon/TagWithIcon.js +0 -53
  585. package/lib/v1/TagWithIcon/props/defaultProps.js +0 -15
  586. package/lib/v1/TagWithIcon/props/propTypes.js +0 -24
  587. package/lib/v1/ToastMessage/ToastMessage.js +0 -246
  588. package/lib/v1/ToastMessage/props/defaultProps.js +0 -25
  589. package/lib/v1/ToastMessage/props/propTypes.js +0 -51
  590. package/lib/v1/Upload/Upload.js +0 -83
  591. package/lib/v1/Upload/props/defaultProps.js +0 -14
  592. package/lib/v1/Upload/props/propTypes.js +0 -28
  593. package/lib/v1/actions/AutoClose.js +0 -75
  594. package/lib/v1/actions/props/defaultProps.js +0 -10
  595. package/lib/v1/actions/props/propTypes.js +0 -19
  596. package/lib/v1/alert/AlertClose/AlertClose.js +0 -62
  597. package/lib/v1/alert/AlertClose/props/propTypes.js +0 -19
  598. package/lib/v1/alert/AlertHeader/AlertHeader.js +0 -107
  599. package/lib/v1/alert/AlertHeader/props/defaultProps.js +0 -19
  600. package/lib/v1/alert/AlertHeader/props/propTypes.js +0 -31
  601. package/lib/v1/alert/AlertLookup/AlertLookup.js +0 -187
  602. package/lib/v1/alert/AlertLookup/props/defaultProps.js +0 -20
  603. package/lib/v1/alert/AlertLookup/props/propTypes.js +0 -47
  604. package/lib/v1/alert/alertIcons/AlarmAlertIcon.js +0 -77
  605. package/lib/v1/alert/alertIcons/AlertIcons.js +0 -78
  606. package/lib/v1/alert/alertIcons/DangerAlertIcon.js +0 -77
  607. package/lib/v1/alert/alertIcons/ErrorAlertIcon.js +0 -82
  608. package/lib/v1/alert/alertIcons/InfoAlertIcon.js +0 -86
  609. package/lib/v1/alert/alertIcons/NotificationAlertIcon.js +0 -82
  610. package/lib/v1/alert/alertIcons/SuccessAlertIcon.js +0 -77
  611. package/lib/v1/alert/alertIcons/WarningAlertIcon.js +0 -77
  612. package/lib/v1/alert/alertIcons/index.js +0 -71
  613. package/lib/v1/alert/alertIcons/props/defaultProps.js +0 -41
  614. package/lib/v1/alert/alertIcons/props/propTypes.js +0 -52
  615. package/lib/v1/alert/index.js +0 -23
  616. package/lib/v1/avatar/AvatarClose/AvatarClose.js +0 -61
  617. package/lib/v1/avatar/AvatarClose/props/defaultProps.js +0 -14
  618. package/lib/v1/avatar/AvatarClose/props/propTypes.js +0 -26
  619. package/lib/v1/avatar/AvatarCollision/AvatarCollision.js +0 -65
  620. package/lib/v1/avatar/AvatarCollision/props/defaultProps.js +0 -15
  621. package/lib/v1/avatar/AvatarCollision/props/propTypes.js +0 -28
  622. package/lib/v1/avatar/AvatarIcon/AvatarIcon.js +0 -63
  623. package/lib/v1/avatar/AvatarIcon/props/defaultProps.js +0 -21
  624. package/lib/v1/avatar/AvatarIcon/props/propTypes.js +0 -31
  625. package/lib/v1/avatar/AvatarStatus/AvatarStatus.js +0 -73
  626. package/lib/v1/avatar/AvatarStatus/props/defaultProps.js +0 -19
  627. package/lib/v1/avatar/AvatarStatus/props/propTypes.js +0 -35
  628. package/lib/v1/avatar/AvatarThread/AvatarThread.js +0 -85
  629. package/lib/v1/avatar/AvatarThread/props/defaultProps.js +0 -16
  630. package/lib/v1/avatar/AvatarThread/props/propTypes.js +0 -41
  631. package/lib/v1/avatar/AvatarUser/AvatarUser.js +0 -122
  632. package/lib/v1/avatar/AvatarUser/props/defaultProps.js +0 -15
  633. package/lib/v1/avatar/AvatarUser/props/propTypes.js +0 -46
  634. package/lib/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +0 -109
  635. package/lib/v1/avatar/AvatarWithTeam/props/defaultProps.js +0 -16
  636. package/lib/v1/avatar/AvatarWithTeam/props/propTypes.js +0 -36
  637. package/lib/v1/avatar/index.js +0 -63
  638. package/lib/v1/dropdown/ToggleDropDown/ToggleDropDown.js +0 -946
  639. package/lib/v1/dropdown/ToggleDropDown/props/defaultProps.js +0 -36
  640. package/lib/v1/dropdown/ToggleDropDown/props/propTypes.js +0 -94
  641. package/lib/v1/emptystate/CommonEmptyState/CommonEmptyState.js +0 -77
  642. package/lib/v1/emptystate/CommonEmptyState/props/defaultProps.js +0 -17
  643. package/lib/v1/emptystate/CommonEmptyState/props/propTypes.js +0 -32
  644. package/lib/v1/emptystate/EditionPage/EditionPage.js +0 -64
  645. package/lib/v1/emptystate/EditionPage/props/defaultProps.js +0 -12
  646. package/lib/v1/emptystate/EditionPage/props/propTypes.js +0 -22
  647. package/lib/v1/errorstate/Inconvenience/Inconvenience.js +0 -76
  648. package/lib/v1/errorstate/Inconvenience/props/defaultProps.js +0 -15
  649. package/lib/v1/errorstate/Inconvenience/props/propTypes.js +0 -27
  650. package/lib/v1/errorstate/OopsSomethingMiss/OopsSomethingMiss.js +0 -80
  651. package/lib/v1/errorstate/OopsSomethingMiss/props/defaultProps.js +0 -15
  652. package/lib/v1/errorstate/OopsSomethingMiss/props/propTypes.js +0 -27
  653. package/lib/v1/errorstate/UnableToProcessRequest/UnableToProcessRequest.js +0 -80
  654. package/lib/v1/errorstate/UnableToProcessRequest/props/defaultProps.js +0 -15
  655. package/lib/v1/errorstate/UnableToProcessRequest/props/propTypes.js +0 -27
  656. package/lib/v1/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +0 -81
  657. package/lib/v1/errorstate/UnauthorizedLogin/props/defaultProps.js +0 -16
  658. package/lib/v1/errorstate/UnauthorizedLogin/props/propTypes.js +0 -28
  659. package/lib/v1/errorstate/UrlNotFound/UrlNotFound.js +0 -80
  660. package/lib/v1/errorstate/UrlNotFound/props/defaultProps.js +0 -15
  661. package/lib/v1/errorstate/UrlNotFound/props/propTypes.js +0 -27
  662. package/lib/v1/errorstate/WillBeRightBack/WillBeRightBack.js +0 -80
  663. package/lib/v1/errorstate/WillBeRightBack/props/defaultProps.js +0 -15
  664. package/lib/v1/errorstate/WillBeRightBack/props/propTypes.js +0 -27
  665. package/lib/v1/form/fields/CheckBoxField/CheckBoxField.js +0 -148
  666. package/lib/v1/form/fields/CheckBoxField/props/defaultProps.js +0 -27
  667. package/lib/v1/form/fields/CheckBoxField/props/propTypes.js +0 -47
  668. package/lib/v1/form/fields/CurrencyField/CurrencyField.js +0 -194
  669. package/lib/v1/form/fields/CurrencyField/props/defaultProps.js +0 -32
  670. package/lib/v1/form/fields/CurrencyField/props/propTypes.js +0 -57
  671. package/lib/v1/form/fields/DateField/DateField.js +0 -183
  672. package/lib/v1/form/fields/DateField/props/defaultProps.js +0 -34
  673. package/lib/v1/form/fields/DateField/props/propTypes.js +0 -57
  674. package/lib/v1/form/fields/FieldContainer/FieldContainer.js +0 -87
  675. package/lib/v1/form/fields/FieldContainer/props/defaultProps.js +0 -22
  676. package/lib/v1/form/fields/FieldContainer/props/propTypes.js +0 -35
  677. package/lib/v1/form/fields/MultiSelectField/MultiSelectField.js +0 -208
  678. package/lib/v1/form/fields/MultiSelectField/props/defaultProps.js +0 -32
  679. package/lib/v1/form/fields/MultiSelectField/props/propTypes.js +0 -68
  680. package/lib/v1/form/fields/PhoneField/PhoneField.js +0 -193
  681. package/lib/v1/form/fields/PhoneField/props/defaultProps.js +0 -23
  682. package/lib/v1/form/fields/PhoneField/props/propTypes.js +0 -58
  683. package/lib/v1/form/fields/RadioField/RadioField.js +0 -164
  684. package/lib/v1/form/fields/RadioField/props/defaultProps.js +0 -20
  685. package/lib/v1/form/fields/RadioField/props/propTypes.js +0 -44
  686. package/lib/v1/form/fields/RadioField/useRadio.js +0 -50
  687. package/lib/v1/form/fields/SelectField/SelectField.js +0 -179
  688. package/lib/v1/form/fields/SelectField/props/defaultProps.js +0 -33
  689. package/lib/v1/form/fields/SelectField/props/propTypes.js +0 -68
  690. package/lib/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +0 -387
  691. package/lib/v1/form/fields/TagsMultiSelect/props/defaultProps.js +0 -23
  692. package/lib/v1/form/fields/TagsMultiSelect/props/propTypes.js +0 -68
  693. package/lib/v1/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +0 -317
  694. package/lib/v1/form/fields/TagsMultiSelectField/props/defaultProps.js +0 -38
  695. package/lib/v1/form/fields/TagsMultiSelectField/props/propTypes.js +0 -83
  696. package/lib/v1/form/fields/TextBoxField/TextBoxField.js +0 -163
  697. package/lib/v1/form/fields/TextBoxField/props/defaultProps.js +0 -32
  698. package/lib/v1/form/fields/TextBoxField/props/propTypes.js +0 -62
  699. package/lib/v1/form/fields/TextEditor/TextEditor.js +0 -462
  700. package/lib/v1/form/fields/TextEditor/props/defaultProps.js +0 -23
  701. package/lib/v1/form/fields/TextEditor/props/propTypes.js +0 -64
  702. package/lib/v1/form/fields/TextEditorField/TextEditorField.js +0 -175
  703. package/lib/v1/form/fields/TextEditorField/props/defaultProps.js +0 -30
  704. package/lib/v1/form/fields/TextEditorField/props/propTypes.js +0 -67
  705. package/lib/v1/form/fields/TextEditorWrapper/TextEditorWrapper.js +0 -204
  706. package/lib/v1/form/fields/TextEditorWrapper/props/defaultProps.js +0 -16
  707. package/lib/v1/form/fields/TextEditorWrapper/props/propTypes.js +0 -51
  708. package/lib/v1/form/fields/TextareaField/TextareaField.js +0 -157
  709. package/lib/v1/form/fields/TextareaField/props/defaultProps.js +0 -30
  710. package/lib/v1/form/fields/TextareaField/props/propTypes.js +0 -53
  711. package/lib/v1/form/fields/ValidationMessage/ValidationMessage.js +0 -71
  712. package/lib/v1/form/fields/ValidationMessage/props/defaultProps.js +0 -14
  713. package/lib/v1/form/fields/ValidationMessage/props/propTypes.js +0 -27
  714. package/lib/v1/form/fields/index.js +0 -135
  715. package/lib/v1/form/fields/props/FieldCommonDefaultProps.js +0 -19
  716. package/lib/v1/form/fields/props/FieldCommonPropTypes.js +0 -28
  717. package/lib/v1/form/layout/Field/Field.js +0 -40
  718. package/lib/v1/form/layout/Field/props/defaultProps.js +0 -11
  719. package/lib/v1/form/layout/Field/props/propTypes.js +0 -21
  720. package/lib/v1/form/layout/Section/Section.js +0 -40
  721. package/lib/v1/form/layout/Section/props/propTypes.js +0 -22
  722. package/lib/v1/form/layout/index.js +0 -23
  723. package/lib/v1/layout/SetupDetailLayout/SetupDetailLayout.js +0 -212
  724. package/lib/v1/layout/SetupDetailLayout/index.js +0 -37
  725. package/lib/v1/layout/SetupDetailLayout/props/defaultProps.js +0 -30
  726. package/lib/v1/layout/SetupDetailLayout/props/propTypes.js +0 -54
  727. package/lib/v1/layout/SubtabLayout/SubtabLayout.js +0 -146
  728. package/lib/v1/layout/SubtabLayout/index.js +0 -37
  729. package/lib/v1/layout/SubtabLayout/props/defaultProps.js +0 -35
  730. package/lib/v1/layout/SubtabLayout/props/propTypes.js +0 -54
  731. package/lib/v1/list/AvatarFlip/AvatarFlip.js +0 -86
  732. package/lib/v1/list/AvatarFlip/props/defaultProps.js +0 -13
  733. package/lib/v1/list/AvatarFlip/props/propTypes.js +0 -40
  734. package/lib/v1/list/BluePrintStatus/BluePrintStatus.js +0 -33
  735. package/lib/v1/list/BluePrintStatus/props/propTypes.js +0 -15
  736. package/lib/v1/list/Comment/Comment.js +0 -49
  737. package/lib/v1/list/Comment/props/defaultProps.js +0 -11
  738. package/lib/v1/list/Comment/props/propTypes.js +0 -18
  739. package/lib/v1/list/DepartmentDropDown/DepartmentDropDown.js +0 -102
  740. package/lib/v1/list/DepartmentDropDown/props/defaultProps.js +0 -14
  741. package/lib/v1/list/DepartmentDropDown/props/propTypes.js +0 -35
  742. package/lib/v1/list/Dot/Dot.js +0 -27
  743. package/lib/v1/list/Dot/props/defaultProps.js +0 -11
  744. package/lib/v1/list/Dot/props/propTypes.js +0 -16
  745. package/lib/v1/list/DotNew/DotNew.js +0 -34
  746. package/lib/v1/list/DotNew/props/defaultProps.js +0 -10
  747. package/lib/v1/list/DotNew/props/propTypes.js +0 -17
  748. package/lib/v1/list/GridStencils/GridStencils.js +0 -42
  749. package/lib/v1/list/GridStencils/props/propTypes.js +0 -19
  750. package/lib/v1/list/Icons/AddNewIcon.js +0 -38
  751. package/lib/v1/list/Icons/CompleteIcon.js +0 -40
  752. package/lib/v1/list/Icons/DeleteIcon.js +0 -41
  753. package/lib/v1/list/Icons/EditIcon.js +0 -41
  754. package/lib/v1/list/Icons/FloatingIcons.js +0 -42
  755. package/lib/v1/list/Icons/ReadUnreadIcon.js +0 -46
  756. package/lib/v1/list/Icons/SmartIcon.js +0 -38
  757. package/lib/v1/list/Icons/index.js +0 -63
  758. package/lib/v1/list/Icons/props/defaultProps.js +0 -14
  759. package/lib/v1/list/Icons/props/propTypes.js +0 -70
  760. package/lib/v1/list/ListLayout/ListLayout.js +0 -82
  761. package/lib/v1/list/ListLayout/props/defaultProps.js +0 -18
  762. package/lib/v1/list/ListLayout/props/propTypes.js +0 -39
  763. package/lib/v1/list/ListStencils/ListStencils.js +0 -57
  764. package/lib/v1/list/ListStencils/props/defaultProps.js +0 -10
  765. package/lib/v1/list/ListStencils/props/propTypes.js +0 -15
  766. package/lib/v1/list/SecondaryText/AccountName.js +0 -86
  767. package/lib/v1/list/SecondaryText/ContactName.js +0 -94
  768. package/lib/v1/list/SecondaryText/DepartmentText.js +0 -29
  769. package/lib/v1/list/SecondaryText/Email.js +0 -53
  770. package/lib/v1/list/SecondaryText/HappinessRating.js +0 -34
  771. package/lib/v1/list/SecondaryText/PhoneNumber.js +0 -57
  772. package/lib/v1/list/SecondaryText/PriorityText.js +0 -33
  773. package/lib/v1/list/SecondaryText/SecondaryText.js +0 -38
  774. package/lib/v1/list/SecondaryText/StatusText.js +0 -34
  775. package/lib/v1/list/SecondaryText/TicketId.js +0 -54
  776. package/lib/v1/list/SecondaryText/Website.js +0 -48
  777. package/lib/v1/list/SecondaryText/index.js +0 -95
  778. package/lib/v1/list/SecondaryText/props/defaultProps.js +0 -59
  779. package/lib/v1/list/SecondaryText/props/propTypes.js +0 -163
  780. package/lib/v1/list/SecondryPanel/SecondryPanel.js +0 -104
  781. package/lib/v1/list/SecondryPanel/props/defaultProps.js +0 -28
  782. package/lib/v1/list/SecondryPanel/props/propTypes.js +0 -41
  783. package/lib/v1/list/SentimentStatus/SentimentStatus.js +0 -35
  784. package/lib/v1/list/SentimentStatus/props/propTypes.js +0 -16
  785. package/lib/v1/list/Subject/Subject.js +0 -65
  786. package/lib/v1/list/Subject/props/defaultProps.js +0 -15
  787. package/lib/v1/list/Subject/props/propTypes.js +0 -31
  788. package/lib/v1/list/TagNew/TagNew.js +0 -35
  789. package/lib/v1/list/TagNew/props/defaultProps.js +0 -11
  790. package/lib/v1/list/TagNew/props/propTypes.js +0 -19
  791. package/lib/v1/list/Thread/Thread.js +0 -46
  792. package/lib/v1/list/Thread/props/defaultProps.js +0 -11
  793. package/lib/v1/list/Thread/props/propTypes.js +0 -19
  794. package/lib/v1/list/index.js +0 -165
  795. package/lib/v1/list/status/StatusDropdown/StatusDropdown.js +0 -363
  796. package/lib/v1/list/status/StatusDropdown/props/defaultProps.js +0 -29
  797. package/lib/v1/list/status/StatusDropdown/props/propTypes.js +0 -34
  798. package/lib/v1/list/status/StatusListItem/StatusListItem.js +0 -124
  799. package/lib/v1/list/status/StatusListItem/props/defaultProps.js +0 -23
  800. package/lib/v1/list/status/StatusListItem/props/propTypes.js +0 -42
  801. package/lib/v1/list/status/index.js +0 -23
  802. package/lib/v1/lookup/EmptyPage/EmptyPage.js +0 -70
  803. package/lib/v1/lookup/EmptyPage/props/defaultProps.js +0 -11
  804. package/lib/v1/lookup/EmptyPage/props/propTypes.js +0 -16
  805. package/lib/v1/lookup/Lookup/Lookup.js +0 -145
  806. package/lib/v1/lookup/Lookup/props/defaultProps.js +0 -16
  807. package/lib/v1/lookup/Lookup/props/propTypes.js +0 -35
  808. package/lib/v1/lookup/Section/Section.js +0 -30
  809. package/lib/v1/lookup/Section/props/propTypes.js +0 -17
  810. package/lib/v1/lookup/header/Close/Close.js +0 -47
  811. package/lib/v1/lookup/header/Close/props/defaultProps.js +0 -10
  812. package/lib/v1/lookup/header/Close/props/propTypes.js +0 -17
  813. package/lib/v1/lookup/header/ModuleHeader/ModuleHeader.js +0 -116
  814. package/lib/v1/lookup/header/ModuleHeader/props/defaultProps.js +0 -16
  815. package/lib/v1/lookup/header/ModuleHeader/props/propTypes.js +0 -31
  816. package/lib/v1/lookup/header/Search/Search.js +0 -208
  817. package/lib/v1/lookup/header/Search/props/defaultProps.js +0 -12
  818. package/lib/v1/lookup/header/Search/props/propTypes.js +0 -40
  819. package/lib/v1/lookup/header/TicketHeader/TicketHeader.js +0 -133
  820. package/lib/v1/lookup/header/TicketHeader/props/defaultProps.js +0 -17
  821. package/lib/v1/lookup/header/TicketHeader/props/propTypes.js +0 -32
  822. package/lib/v1/lookup/header/Title/Title.js +0 -44
  823. package/lib/v1/lookup/header/Title/props/defaultProps.js +0 -10
  824. package/lib/v1/lookup/header/Title/props/propTypes.js +0 -17
  825. package/lib/v1/lookup/header/ViewDropDown/ViewDropDown.js +0 -239
  826. package/lib/v1/lookup/header/ViewDropDown/props/defaultProps.js +0 -17
  827. package/lib/v1/lookup/header/ViewDropDown/props/propTypes.js +0 -38
  828. package/lib/v1/lookup/header/index.js +0 -47
  829. package/lib/v1/notification/DesktopNotification/DesktopNotification.js +0 -209
  830. package/lib/v1/notification/DesktopNotification/props/defaultProps.js +0 -26
  831. package/lib/v1/notification/DesktopNotification/props/propTypes.js +0 -55
  832. package/lib/v1/notification/DesktopNotificationHeader/DesktopNotificationHeader.js +0 -105
  833. package/lib/v1/notification/DesktopNotificationHeader/props/defaultProps.js +0 -16
  834. package/lib/v1/notification/DesktopNotificationHeader/props/propTypes.js +0 -24
  835. package/lib/v1/setup/header/Button/Button.js +0 -37
  836. package/lib/v1/setup/header/Button/props/defaultProps.js +0 -11
  837. package/lib/v1/setup/header/Button/props/propTypes.js +0 -18
  838. package/lib/v1/setup/header/Link/Link.js +0 -47
  839. package/lib/v1/setup/header/Link/props/defaultProps.js +0 -11
  840. package/lib/v1/setup/header/Link/props/propTypes.js +0 -19
  841. package/lib/v1/setup/header/Search/Search.js +0 -99
  842. package/lib/v1/setup/header/Search/props/defaultProps.js +0 -13
  843. package/lib/v1/setup/header/Search/props/propTypes.js +0 -23
  844. package/lib/v1/setup/header/Views/Views.js +0 -47
  845. package/lib/v1/setup/header/Views/props/defaultProps.js +0 -13
  846. package/lib/v1/setup/header/Views/props/propTypes.js +0 -20
  847. package/lib/v1/setup/header/index.js +0 -39
  848. package/lib/v1/setup/helptips/Description/Description.js +0 -23
  849. package/lib/v1/setup/helptips/Description/props/propTypes.js +0 -15
  850. package/lib/v1/setup/helptips/Link/Link.js +0 -42
  851. package/lib/v1/setup/helptips/Link/props/propTypes.js +0 -18
  852. package/lib/v1/setup/helptips/ListGroup/ListGroup.js +0 -42
  853. package/lib/v1/setup/helptips/ListGroup/props/propTypes.js +0 -16
  854. package/lib/v1/setup/helptips/Title/Title.js +0 -23
  855. package/lib/v1/setup/helptips/Title/props/propTypes.js +0 -15
  856. package/lib/v1/setup/helptips/index.js +0 -39
  857. package/lib/v1/setup/index.js +0 -24
  858. package/lib/v1/setup/table/Table/Table.js +0 -34
  859. package/lib/v1/setup/table/Table/props/defaultProps.js +0 -11
  860. package/lib/v1/setup/table/Table/props/propTypes.js +0 -17
  861. package/lib/v1/setup/table/TableBody/TableBody.js +0 -39
  862. package/lib/v1/setup/table/TableBody/props/defaultProps.js +0 -10
  863. package/lib/v1/setup/table/TableBody/props/propTypes.js +0 -18
  864. package/lib/v1/setup/table/TableData/TableData.js +0 -44
  865. package/lib/v1/setup/table/TableData/props/defaultProps.js +0 -12
  866. package/lib/v1/setup/table/TableData/props/propTypes.js +0 -22
  867. package/lib/v1/setup/table/TableHead/TableHead.js +0 -44
  868. package/lib/v1/setup/table/TableHead/props/defaultProps.js +0 -11
  869. package/lib/v1/setup/table/TableHead/props/propTypes.js +0 -19
  870. package/lib/v1/setup/table/TableRow/TableRow.js +0 -49
  871. package/lib/v1/setup/table/TableRow/props/defaultProps.js +0 -11
  872. package/lib/v1/setup/table/TableRow/props/propTypes.js +0 -22
  873. package/lib/v1/setup/table/Text/Text.js +0 -64
  874. package/lib/v1/setup/table/Text/props/defaultProps.js +0 -14
  875. package/lib/v1/setup/table/Text/props/propTypes.js +0 -24
  876. package/lib/v1/setup/table/index.js +0 -47
  877. package/lib/v1/svg/PlusIcon.js +0 -37
  878. package/lib/v1/svg/SnippetIcon.js +0 -39
  879. package/lib/v1/svg/TemplateIcon.js +0 -40
  880. package/lib/v1/svg/index.js +0 -31
  881. package/lib/v1/svg/props/defaultProps.js +0 -24
  882. package/lib/v1/svg/props/propTypes.js +0 -29
  883. package/lib/v1/utils/ChannelIconMapping.js +0 -138
  884. package/lib/v1/utils/General.js +0 -58
  885. package/lib/v1/utils/editorUtils.js +0 -224
@@ -1,62 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.propTypes = void 0;
7
-
8
- var _FieldCommonPropTypes = require("../../props/FieldCommonPropTypes");
9
-
10
- var _propTypes = _interopRequireDefault(require("prop-types"));
11
-
12
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
13
-
14
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
15
-
16
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
17
-
18
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
19
-
20
- var propTypes = _objectSpread({
21
- borderColor: _propTypes["default"].oneOf(['transparent', 'default']),
22
- errorType: _propTypes["default"].oneOf(['primary', 'secondary']),
23
- fieldSize: _propTypes["default"].oneOf(['small', 'medium']),
24
- getRef: _propTypes["default"].func,
25
- id: _propTypes["default"].string,
26
- // isFocusOnLabelClick: PropTypes.bool,
27
- labelCustomClass: _propTypes["default"].string,
28
- labelName: _propTypes["default"].string.isRequired,
29
- labelPalette: _propTypes["default"].string,
30
- maxLength: _propTypes["default"].number,
31
- onBlur: _propTypes["default"].func,
32
- onChange: _propTypes["default"].func,
33
- onKeyDown: _propTypes["default"].func,
34
- placeHolder: _propTypes["default"].string,
35
- textBoxSize: _propTypes["default"].string,
36
- textBoxType: _propTypes["default"].string,
37
- textBoxVariant: _propTypes["default"].string,
38
- title: _propTypes["default"].string,
39
- validationMessage: _propTypes["default"].string,
40
- validationPalette: _propTypes["default"].string,
41
- validationRuleMessage: _propTypes["default"].string,
42
- validationRulePalette: _propTypes["default"].string,
43
- value: _propTypes["default"].string,
44
- isClickable: _propTypes["default"].bool,
45
- needReadOnlyStyle: _propTypes["default"].bool,
46
- children: _propTypes["default"].node,
47
- customProps: _propTypes["default"].shape({
48
- LabelProps: _propTypes["default"].object,
49
- TextBoxIconProps: _propTypes["default"].object,
50
- ValidationMessageProps1: _propTypes["default"].object,
51
- ValidationMessageProps2: _propTypes["default"].object
52
- }),
53
- htmlId: _propTypes["default"].string,
54
- onFocus: _propTypes["default"].func,
55
- ePhiData: _propTypes["default"].shape({
56
- ePhiTitle: _propTypes["default"].string,
57
- ePhiText: _propTypes["default"].string,
58
- ePhiStatus: _propTypes["default"].bool
59
- })
60
- }, _FieldCommonPropTypes.FieldCommonPropTypes);
61
-
62
- exports.propTypes = propTypes;
@@ -1,462 +0,0 @@
1
- "use strict";
2
-
3
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
-
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports["default"] = void 0;
9
-
10
- var _react = _interopRequireWildcard(require("react"));
11
-
12
- var _defaultProps = require("./props/defaultProps");
13
-
14
- var _propTypes = require("./props/propTypes");
15
-
16
- var _selectn = _interopRequireDefault(require("selectn"));
17
-
18
- var _Layout = require("@zohodesk/components/es/v1/Layout");
19
-
20
- var _editorUtils = require("../../../../utils/editorUtils");
21
-
22
- var _TextEditorModule = _interopRequireDefault(require("../../../../form/fields/TextEditor/TextEditor.module.css"));
23
-
24
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
25
-
26
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
27
-
28
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
29
-
30
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
31
-
32
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
33
-
34
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
35
-
36
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
37
-
38
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
39
-
40
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
41
-
42
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
43
-
44
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
45
-
46
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
47
-
48
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
49
-
50
- /* eslint-disable camelcase */
51
-
52
- /* eslint-disable no-undef */
53
-
54
- /* eslint-disable react/no-deprecated */
55
- var TextEditor = /*#__PURE__*/function (_Component) {
56
- _inherits(TextEditor, _Component);
57
-
58
- var _super = _createSuper(TextEditor);
59
-
60
- function TextEditor(props) {
61
- var _this;
62
-
63
- _classCallCheck(this, TextEditor);
64
-
65
- _this = _super.call(this, props);
66
- _this.state = {
67
- isEditorLoad: false,
68
- isResourceLoaded: false,
69
- isEditorShow: false
70
- };
71
- var methods = ['editorCallback', 'handleUpload', 'handleChange', 'focusCallback', 'handleInlineUpload', // 'handleDropUpload',
72
- 'blurCallback', 'handleGetContent', 'initializeEditor', 'clearEditorData', 'plainTextSwitchCallback', 'onWindowClick', 'toggleEditor'];
73
-
74
- _editorUtils.bind.apply(_assertThisInitialized(_this), methods);
75
-
76
- return _this;
77
- }
78
-
79
- _createClass(TextEditor, [{
80
- key: "componentDidMount",
81
- value: function componentDidMount() {
82
- var _this2 = this;
83
-
84
- this.mount = true;
85
-
86
- if (typeof global.ZohoDeskEditor === 'undefined') {
87
- (0, _editorUtils.loadResource)(this.props.EDITORURL, 'js', 'ZohoDeskEditor').then(function () {
88
- _this2.setState({
89
- isResourceLoaded: true
90
- });
91
- });
92
- } else {
93
- this.setState({
94
- isResourceLoaded: true
95
- });
96
- }
97
-
98
- window.addEventListener('click', this.onWindowClick);
99
- }
100
- }, {
101
- key: "initializeEditor",
102
- value: function initializeEditor(id, mode) {
103
- var _this$props = this.props,
104
- value = _this$props.value,
105
- _this$props$editorMod = _this$props.editorMode,
106
- editorMode = _this$props$editorMod === void 0 ? '' : _this$props$editorMod,
107
- _this$props$editorOpt = _this$props.editorOptions,
108
- editorOptions = _this$props$editorOpt === void 0 ? {} : _this$props$editorOpt,
109
- _this$props$needEdito = _this$props.needEditorFocus,
110
- needEditorFocus = _this$props$needEdito === void 0 ? true : _this$props$needEdito,
111
- fontFamily = _this$props.fontFamily,
112
- fontSize = _this$props.fontSize,
113
- initCallback = _this$props.initCallback,
114
- handleAlertMessage = _this$props.handleAlertMessage,
115
- needInlineAttachment = _this$props.needInlineAttachment,
116
- customInitOption = _this$props.customInitOption;
117
-
118
- if (id && global.ZohoDeskEditor) {
119
- var defaultObj = {
120
- id: id,
121
- content: (0, _editorUtils.fixEncoding)(value),
122
- callback: this.editorCallback,
123
- imageuploadcallback: this.handleInlineUpload,
124
- // handleInlineDropImage: handleDropUpload ? this.handleDropUpload : undefined,
125
- contentChanged: this.handleChange,
126
- focusCallback: this.focusCallback,
127
- lineHeight: 'Normal',
128
- backgroundColor: 'transparent',
129
- defaultfontsize: '14px',
130
- allowTagsInsertHTML: ['iframe'],
131
- allowAttrsInsertHTML: ['frameborder', 'allowfullscreen'],
132
- needEditorFocus: needEditorFocus,
133
- blurCallback: this.blurCallback,
134
- mode: mode,
135
- handleAlertMessage: handleAlertMessage,
136
- plainTextSwitchCallback: this.plainTextSwitchCallback,
137
- imgAspect: true,
138
- handleInlineDropImage: needInlineAttachment ? this.handleInlineUpload : null,
139
- needInlineAttachHandling: needInlineAttachment,
140
- hookOnInsertHTML: _editorUtils.validateEditorContentOnInsertHtml,
141
- needCustomPaste: function needCustomPaste(event, editorObj) {
142
- return true; // By default reply editor needs customPaste, so returning true.
143
- },
144
- htmlVersion: '<!Doctype html>'
145
- };
146
-
147
- if (!customInitOption) {
148
- if (!ZohoDeskEditor_Init.init) {
149
- global.editorInitialize && global.editorInitialize();
150
- }
151
-
152
- ZohoDeskEditor_Init.init(editorMode, fontFamily, initCallback, fontSize);
153
- }
154
-
155
- defaultObj = Object.assign(defaultObj, editorOptions);
156
- var globalEditor = global.ZohoDeskEditor;
157
- globalEditor && typeof globalEditor.create == 'function' && globalEditor.create(defaultObj, customInitOption);
158
- }
159
- }
160
- }, {
161
- key: "plainTextSwitchCallback",
162
- value: function plainTextSwitchCallback() {
163
- var _this$props2 = this.props,
164
- plainTextSwitchCallback = _this$props2.plainTextSwitchCallback,
165
- id = _this$props2.id;
166
- var content = this.handleGetContent();
167
- plainTextSwitchCallback && plainTextSwitchCallback(content, id);
168
- }
169
- }, {
170
- key: "clearEditorData",
171
- value: function clearEditorData(id) {
172
- var getRef = this.props.getRef;
173
-
174
- if (global.editor && global.editor[id]) {
175
- delete global.editor[id];
176
- }
177
-
178
- getRef && getRef(null);
179
- }
180
- }, {
181
- key: "UNSAFE_componentWillReceiveProps",
182
- value: function UNSAFE_componentWillReceiveProps(np) {
183
- var changeEditorContent = this.props.changeEditorContent;
184
- var id = np.id;
185
- var editorObj = global.editor ? global.editor[id] ? global.editor[id] : {} : {};
186
-
187
- if (np.isEmptyContent && editorObj) {
188
- editorObj.setContent('');
189
- }
190
-
191
- if (typeof changeEditorContent !== 'undefined' && np.changeEditorContent != changeEditorContent && np.changeEditorContent) {
192
- (0, _editorUtils.changeContent)(id, np.value);
193
- }
194
- }
195
- }, {
196
- key: "componentDidUpdate",
197
- value: function componentDidUpdate(prevProps, prevState) {
198
- var _this$props3 = this.props,
199
- id = _this$props3.id,
200
- value = _this$props3.value,
201
- shouldUpdateContent = _this$props3.shouldUpdateContent,
202
- mode = _this$props3.mode;
203
- var isResourceLoaded = this.state.isResourceLoaded;
204
-
205
- if (prevProps.id !== id) {
206
- global.editor[id] = global.editor[prevProps.id];
207
- delete global.editor[prevProps.id];
208
- shouldUpdateContent && (0, _editorUtils.changeContent)(id, value);
209
- }
210
-
211
- if (prevState.isResourceLoaded !== isResourceLoaded && isResourceLoaded) {
212
- this.initializeEditor(id, mode);
213
- }
214
- }
215
- }, {
216
- key: "componentWillUnmount",
217
- value: function componentWillUnmount() {
218
- this.mount = false;
219
- this.clearEditorData(this.props.id);
220
- window.removeEventListener('click', this.onWindowClick);
221
- }
222
- }, {
223
- key: "focusCallback",
224
- value: function focusCallback() {
225
- var onFocus = this.props.onFocus;
226
- onFocus && onFocus();
227
- }
228
- }, {
229
- key: "handleGetContent",
230
- value: function handleGetContent() {
231
- var id = this.props.id;
232
- var editorObj = global.editor[id] ? global.editor[id] : {};
233
- var content = (0, _editorUtils.getRichEditorContent)(id);
234
-
235
- if (!(0, _editorUtils.editorContentValidate)(editorObj)) {
236
- content = '';
237
- }
238
-
239
- content = content.trim();
240
- return content;
241
- }
242
- }, {
243
- key: "handleChange",
244
- value: function handleChange() {
245
- var _this$props4 = this.props,
246
- onChange = _this$props4.onChange,
247
- id = _this$props4.id;
248
-
249
- if (onChange) {
250
- var content = this.handleGetContent();
251
- onChange(content, id);
252
- }
253
- }
254
- }, {
255
- key: "editorCallback",
256
- value: function editorCallback(editorObj) {
257
- var _this$props5 = this.props,
258
- editorCallback = _this$props5.editorCallback,
259
- getRef = _this$props5.getRef,
260
- isCustomScroll = _this$props5.isCustomScroll,
261
- customCSS = _this$props5.customCSS;
262
- this.setState({
263
- isEditorLoad: true,
264
- isEditorShow: true
265
- });
266
- var id = this.props.id;
267
- global.editor = global.editor || {};
268
-
269
- if (!global.editor[id]) {
270
- global.editor[id] = editorObj;
271
- }
272
-
273
- editorCallback && editorCallback(editorObj);
274
- var iframe = (0, _selectn["default"])('iframe.contentDocument.body', editorObj) || null;
275
- var iframeHead = (0, _selectn["default"])('iframe.contentDocument.head', editorObj) || null;
276
- getRef && getRef(iframe);
277
-
278
- if (iframe) {
279
- iframe.addEventListener('click', function () {
280
- return editorObj.iframe.click();
281
- });
282
-
283
- if (isCustomScroll) {
284
- var link = document.createElement('style');
285
- link.innerText = "body{font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 0}.scroll{--zd-scroll-width:12px;--zd-scroll-height:12px;--zd-scroll-bg:rgba(255,255,255,0.1);--zd-scroll-corner-bg:transparent;--zd-scroll-thump:rgba(44,51,77,0.2);--zd-scroll-thump-hoverbg:rgba(44,51,77,0.3);--zd-scroll-border:rgba(44,51,77,0.1)}.scroll[data-scroll-palette='dark'],.scroll [data-scroll-palette='dark']{--zd-scroll-thump:rgba(255,255,255,0.2);--zd-scroll-thump-hoverbg:rgba(255,255,255,0.4);--zd-scroll-border:rgba(255,255,255,0.07)}.scroll,.scroll *{scrollbar-color:var(--zd-scroll-thump) var(--zd-scroll-bg);scrollbar-width:thin;-ms-scrollbar-highlight-color:var(--zd-scroll-bg);-ms-scrollbar-face-color:var(--zd-scroll-thump)}.scroll::-webkit-scrollbar,.scroll ::-webkit-scrollbar{background:var(--zd-scroll-corner-bg)}.scroll::-webkit-scrollbar:hover,.scroll ::-webkit-scrollbar:hover{background:var(--zd-scroll-bg)}.scroll::-webkit-scrollbar:horizontal,.scroll ::-webkit-scrollbar:horizontal{height:var(--zd-scroll-height)}.scroll::-webkit-scrollbar:vertical,.scroll ::-webkit-scrollbar:vertical{width:var(--zd-scroll-width)}.scroll::-webkit-scrollbar-button,.scroll ::-webkit-scrollbar-button{display:none;width:0;height:0}.scroll::-webkit-scrollbar-track:vertical,.scroll ::-webkit-scrollbar-track:vertical{border-left:1px solid transparent;border-right:1px solid transparent}.scroll::-webkit-scrollbar-track:vertical:hover,.scroll ::-webkit-scrollbar-track:vertical:hover{border-color:var(--zd-scroll-border)}.scroll::-webkit-scrollbar-track:horizontal,.scroll ::-webkit-scrollbar-track:horizontal{border-top:1px solid transparent;border-bottom:1px solid transparent}.scroll::-webkit-scrollbar-track:horizontal:hover,.scroll ::-webkit-scrollbar-track:horizontal:hover{border-color:var(--zd-scroll-border)}.scroll::-webkit-scrollbar-track-piece,.scroll ::-webkit-scrollbar-track-piece{background:inherit}.scroll::-webkit-scrollbar-thumb,.scroll ::-webkit-scrollbar-thumb{border-radius:10px;background:var(--zd-scroll-thump);background-clip:padding-box;border:3px solid transparent}.scroll::-webkit-scrollbar-thumb:hover,.scroll ::-webkit-scrollbar-thumb:hover{background:var(--zd-scroll-thump-hoverbg);background-clip:padding-box;border:3px solid transparent}.scroll::-webkit-scrollbar-corner,.scroll ::-webkit-scrollbar-corner{background:var(--zd-scroll-corner-bg)}.scroll::-webkit-resizer,.scroll::-webkit-resizer{background:inherit}";
286
- iframeHead.appendChild(link);
287
- iframe.classList.add('scroll');
288
- }
289
-
290
- var customStyleTag = document.createElement('style');
291
- customStyleTag.type = 'text/css';
292
- var customizedCSS = "pre {white-space: pre-wrap} ".concat(customCSS);
293
- var fontCSS = "@font-face {font-family: 'ZohoPuviRegular';src: url('https://static.zohocdn.com/zohofonts/zohopuvi/4.0/Zoho_Puvi_Regular.woff2') format('woff2');font-style: normal;font-weight: 400;text-rendering: optimizeLegibility;font-display: swap}@font-face {font-family: Regular;src: url('https://static.zohocdn.com/webfonts/lato2regular/font.woff2') format('woff2');font-weight: 400;font-style: normal;font-display: swap}@font-face {font-family: 'RobotoRegular';font-weight: 400;font-style: normal;font-display: swap;src: url('https://static.zohocdn.com/webfonts/robotoregular/font.woff2')}\n @font-face {font-family: 'ZohoPuvi';src: url('https://static.zohocdn.com/zohofonts/zohopuvi/4.0/Zoho_Puvi_Regular.woff2') format('woff2');font-style: normal;font-weight: 400;text-rendering: optimizeLegibility;font-display: swap}@font-face {font-family: ZDLato;src: url('https://static.zohocdn.com/webfonts/lato2regular/font.woff2') format('woff2');font-weight: 400;font-style: normal;font-display: swap}@font-face {font-family: 'Roboto';font-weight: 400;font-style: normal;font-display: swap;src: url('https://static.zohocdn.com/webfonts/robotoregular/font.woff2')}";
294
- customStyleTag.textContent = "".concat(customizedCSS, " ").concat(fontCSS);
295
- iframeHead.appendChild(customStyleTag);
296
- }
297
- }
298
- }, {
299
- key: "handleInlineUpload",
300
- value: function handleInlineUpload(file, successCallback, failureCallback, mode, editorObj) {
301
- var _this$props6 = this.props,
302
- id = _this$props6.id,
303
- progress = _this$props6.setInlineAttachmentInProgress,
304
- i18nKeys = _this$props6.i18nKeys,
305
- inlineImageProps = _this$props6.inlineImageProps;
306
- var fileUploadError = i18nKeys.fileUploadError,
307
- fileNotSupported = i18nKeys.fileNotSupported,
308
- fileSizeLimitExceed = i18nKeys.fileSizeLimitExceed,
309
- fileEmptyError = i18nKeys.fileEmptyError,
310
- fileNameLimitExceed = i18nKeys.fileNameLimitExceed;
311
- var _inlineImageProps$all = inlineImageProps.allowedFileExtensions,
312
- allowedFileExtensions = _inlineImageProps$all === void 0 ? ["jpeg", "jpg", "png", "gif", "bmp", "ico"] : _inlineImageProps$all,
313
- _inlineImageProps$fil = inlineImageProps.fileNameMaxCharacters,
314
- fileNameMaxCharacters = _inlineImageProps$fil === void 0 ? 200 : _inlineImageProps$fil,
315
- _inlineImageProps$fil2 = inlineImageProps.fileSizeMaxBytes,
316
- fileSizeMaxBytes = _inlineImageProps$fil2 === void 0 ? 3 * 1024 * 1024 : _inlineImageProps$fil2;
317
-
318
- if (!(0, _editorUtils.isFileNameSizeInvalid)(file.name, fileNameMaxCharacters)) {
319
- if (file.size != 0) {
320
- if (file.size <= fileSizeMaxBytes) {
321
- if ((0, _editorUtils.isImageFormat)(file.name, allowedFileExtensions)) {
322
- progress && progress(true);
323
- this.handleUpload(file).then(function (res) {
324
- successCallback(res);
325
- progress && progress(false);
326
-
327
- if (id && editorObj) {
328
- (0, _editorUtils.triggerKeyup)(editorObj.doc);
329
- }
330
- }, function () {
331
- failureCallback(fileUploadError);
332
- });
333
- } else {
334
- failureCallback(fileNotSupported);
335
- }
336
- } else {
337
- failureCallback(fileSizeLimitExceed);
338
- }
339
- } else {
340
- failureCallback(fileEmptyError);
341
- }
342
- } else {
343
- failureCallback(fileNameLimitExceed);
344
- }
345
- } // handleDropUpload(file, successCallback, failureCallback) {
346
- // let e = { target: { files: [file] } };
347
- // let { handleDropUpload } = this.props;
348
- // handleDropUpload(e).then(
349
- // (res) => {
350
- // successCallback(res);
351
- // },
352
- // () => {
353
- // failureCallback();
354
- // }
355
- // );
356
- // }
357
-
358
- }, {
359
- key: "blurCallback",
360
- value: function blurCallback() {
361
- var blurCallback = this.props.blurCallback;
362
- var content = this.handleGetContent();
363
- blurCallback && blurCallback(content);
364
- }
365
- }, {
366
- key: "handleUpload",
367
- value: function handleUpload(file) {
368
- var _this$props7 = this.props,
369
- onUpload = _this$props7.onUpload,
370
- editorMode = _this$props7.editorMode,
371
- getCSRFCookieName = _this$props7.getCSRFCookieName,
372
- getCSRFCookie = _this$props7.getCSRFCookie;
373
-
374
- try {
375
- var formData = new FormData();
376
- formData.append('img_file', file, file.name);
377
-
378
- if (getCSRFCookieName && getCSRFCookie) {
379
- formData.append(getCSRFCookieName(), getCSRFCookie());
380
- }
381
-
382
- return onUpload(formData, file);
383
- } catch (err) {
384
- return Promise.reject();
385
- }
386
- }
387
- }, {
388
- key: "onWindowClick",
389
- value: function onWindowClick(e) {
390
- var isEditorDefaultOpen = this.props.isEditorDefaultOpen;
391
- var element = e.target;
392
-
393
- if (!element.closest('[data-isEditor]') && !element.closest("[id='KB_Editor_UploadImage_Popup']") && !element.closest("[id='KB_Editor_Overlay']") && !element.closest('.zdeskEditor_popup') && element && typeof element.className === 'string' && !element.className.startsWith('KB') && !element.hasAttribute('data-insertoptions') && !element.closest('.KB_Editor_common_DropDown')) {
394
- var _this$props8 = this.props,
395
- _this$props8$value = _this$props8.value,
396
- value = _this$props8$value === void 0 ? '' : _this$props8$value,
397
- id = _this$props8.id;
398
- var cont = value;
399
-
400
- if (typeof editor !== 'undefined') {
401
- cont = editor['addFormEditor'] && editor['addFormEditor'].getContent();
402
- }
403
-
404
- if (!isEditorDefaultOpen) {
405
- if ((cont == '' || cont == '<div><br></div>') && this.mount) {
406
- this.toggleEditor(false);
407
- }
408
- }
409
- }
410
- }
411
- }, {
412
- key: "toggleEditor",
413
- value: function toggleEditor(value) {
414
- var toggleEdit = this.props.toggleEdit;
415
- toggleEdit && toggleEdit(value);
416
- }
417
- }, {
418
- key: "render",
419
- value: function render() {
420
- var _this$props9 = this.props,
421
- id = _this$props9.id,
422
- dataId = _this$props9.dataId,
423
- type = _this$props9.type,
424
- border = _this$props9.border,
425
- ImgLazyLoad = _this$props9.ImgLazyLoad,
426
- loadingComponent = _this$props9.loadingComponent,
427
- isNightMode = _this$props9.isNightMode,
428
- isReadOnly = _this$props9.isReadOnly,
429
- dataSelectorId = _this$props9.dataSelectorId,
430
- isDisabled = _this$props9.isDisabled;
431
- var _this$state = this.state,
432
- isEditorLoad = _this$state.isEditorLoad,
433
- isEditorShow = _this$state.isEditorShow;
434
- var editorDoc = ImgLazyLoad && global.editor && global.editor[id] ? global.editor[id].doc : null;
435
- return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
436
- className: "".concat(_TextEditorModule["default"].textEditor, " ").concat(_TextEditorModule["default"][type], " ").concat(_TextEditorModule["default"][border], "\n ").concat(isNightMode ? _TextEditorModule["default"].night : _TextEditorModule["default"].light, " ").concat(isReadOnly ? _TextEditorModule["default"].readOnly : '', " ").concat(isReadOnly || isDisabled ? _TextEditorModule["default"].disable : '', " ").concat(!isEditorShow ? _TextEditorModule["default"].editorHide : ''),
437
- dataId: dataId,
438
- "data-isEditor": true,
439
- dataSelectorId: dataSelectorId
440
- }, loadingComponent && !isEditorLoad ? loadingComponent : null, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
441
- flexible: true,
442
- id: id,
443
- dataId: dataId
444
- }), editorDoc && ImgLazyLoad ? /*#__PURE__*/_react["default"].createElement(ImgLazyLoad, {
445
- node: editorDoc
446
- }) : null, isReadOnly || isDisabled ? /*#__PURE__*/_react["default"].createElement("div", {
447
- className: _TextEditorModule["default"].readOnlyMask
448
- }) : null);
449
- }
450
- }]);
451
-
452
- return TextEditor;
453
- }(_react.Component);
454
-
455
- exports["default"] = TextEditor;
456
- TextEditor.defaultProps = _defaultProps.defaultProps;
457
- TextEditor.propTypes = _propTypes.propTypes; // if (__DOCS__) {
458
- // TextEditor.docs = {
459
- // componentGroup: 'Fields',
460
- // folderName: 'TextEditor'
461
- // };
462
- // }
@@ -1,23 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.defaultProps = void 0;
7
- var defaultProps = {
8
- border: 'borderTop',
9
- type: 'large',
10
- changeEditorContent: false,
11
- fontFamily: 'Lato',
12
- fontSize: '16',
13
- shouldUpdateContent: true,
14
- i18nKeys: {},
15
- needInlineAttachment: false,
16
- isNightMode: false,
17
- isReadOnly: false,
18
- dataSelectorId: 'textEditor',
19
- customCSS: '',
20
- isDisabled: false,
21
- inlineImageProps: {}
22
- };
23
- exports.defaultProps = defaultProps;
@@ -1,64 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.propTypes = void 0;
7
-
8
- var _propTypes = _interopRequireDefault(require("prop-types"));
9
-
10
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
-
12
- var propTypes = {
13
- ImgLazyLoad: _propTypes["default"].node,
14
- blurCallback: _propTypes["default"].func,
15
- border: _propTypes["default"].oneOf(['borderTop', 'borderAll', 'borderNone']),
16
- changeEditorContent: _propTypes["default"].bool,
17
- dataId: _propTypes["default"].string,
18
- editorCallback: _propTypes["default"].func,
19
- editorMode: _propTypes["default"].string,
20
- editorOptions: _propTypes["default"].object,
21
- fontFamily: _propTypes["default"].oneOf(['Lato', 'Roboto', 'Puvi']),
22
- fontSize: _propTypes["default"].string,
23
- getRef: _propTypes["default"].func,
24
- handleAlertMessage: _propTypes["default"].func,
25
- i18nKeys: _propTypes["default"].shape({
26
- fileUploadError: _propTypes["default"].string,
27
- fileNotSupported: _propTypes["default"].string,
28
- fileEmptyError: _propTypes["default"].string,
29
- fileNameLimitExceed: _propTypes["default"].string,
30
- fileSizeLimitExceed: _propTypes["default"].string
31
- }),
32
- id: _propTypes["default"].string,
33
- initCallback: _propTypes["default"].func,
34
- isCustomScroll: _propTypes["default"].bool,
35
- loadingComponent: _propTypes["default"].node,
36
- mode: _propTypes["default"].string,
37
- needEditorFocus: _propTypes["default"].bool,
38
- onChange: _propTypes["default"].func,
39
- onFocus: _propTypes["default"].func,
40
- onUpload: _propTypes["default"].func,
41
- plainTextSwitchCallback: _propTypes["default"].func,
42
- setInlineAttachmentInProgress: _propTypes["default"].func,
43
- shouldUpdateContent: _propTypes["default"].bool,
44
- type: _propTypes["default"].oneOf(['large', 'xlarge', 'medium', 'small', 'mini', 'default']),
45
- value: _propTypes["default"].string,
46
- needInlineAttachment: _propTypes["default"].bool,
47
- isNightMode: _propTypes["default"].bool,
48
- isReadOnly: _propTypes["default"].bool,
49
- EDITORURL: _propTypes["default"].string,
50
- getCSRFCookieName: _propTypes["default"].string,
51
- getCSRFCookie: _propTypes["default"].string,
52
- isEditorDefaultOpen: _propTypes["default"].bool,
53
- toggleEdit: _propTypes["default"].func,
54
- dataSelectorId: _propTypes["default"].string,
55
- customInitOption: _propTypes["default"].object,
56
- customCSS: _propTypes["default"].string,
57
- isDisabled: _propTypes["default"].bool,
58
- inlineImageProps: _propTypes["default"].shape({
59
- allowedFileExtensions: _propTypes["default"].array,
60
- fileNameMaxCharacters: _propTypes["default"].number,
61
- fileSizeMaxBytes: _propTypes["default"].number
62
- })
63
- };
64
- exports.propTypes = propTypes;