@zohodesk/dot 1.0.0-beta.226 → 1.0.0-beta.227

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 (257) hide show
  1. package/README.md +4 -0
  2. package/assets/Appearance/pureDark/mode/dotPureDarkMode.module.css +16 -16
  3. package/es/ActionButton/docs/ActionButton__default.docs.js +144 -0
  4. package/es/AlphabeticList/docs/AlphabeticList__default.docs.js +34 -0
  5. package/es/AlphabeticList/docs/AlphabeticList__horizontal.docs.js +43 -0
  6. package/es/Attachment/docs/Attachment__default.docs.js +54 -0
  7. package/es/AttachmentViewer/docs/AttachmentViewer__default.docs.js +70 -0
  8. package/es/ChannelIcon/docs/ChannelIcon__default.docs.js +57 -0
  9. package/es/Drawer/docs/Drawer__default.docs.js +87 -0
  10. package/es/Drawer/docs/Drawer__multiDrawer.docs.js +112 -0
  11. package/es/Drawer/docs/Drawer__noFreeze.docs.js +20 -0
  12. package/es/Drawer/docs/Drawer__withModal.docs.js +74 -0
  13. package/es/ExternalLink/docs/ExternalLink__default.docs.js +19 -0
  14. package/es/FlipCard/docs/FlipCard__default.docs.js +66 -0
  15. package/es/FormAction/docs/FormAction__default.docs.js +72 -0
  16. package/es/FreezeLayer/docs/FreezeLayer__dark.docs.js +51 -0
  17. package/es/FreezeLayer/docs/FreezeLayer__default.docs.js +48 -0
  18. package/es/IconButton/docs/IconButton__default.docs.js +219 -0
  19. package/es/Image/docs/Image__default.docs.js +22 -0
  20. package/es/ImportantNotes/docs/ImportantNotes__default.docs.js +22 -0
  21. package/es/Link/docs/Link__default.docs.js +36 -0
  22. package/es/Loader/docs/Loader__default.docs.js +23 -0
  23. package/es/Message/docs/Message__default.docs.js +55 -0
  24. package/es/MessageBanner/docs/MessageBanner__default.docs.js +88 -0
  25. package/es/NewStar/docs/NewStar__default.docs.js +62 -0
  26. package/es/PlusIcon/docs/PlusIcon__default.docs.js +16 -0
  27. package/es/ToastMessage/docs/ToastMessage__custom.docs.js +92 -0
  28. package/es/ToastMessage/docs/ToastMessage__information.docs.js +54 -0
  29. package/es/ToastMessage/docs/ToastMessage__primary.docs.js +125 -0
  30. package/es/ToastMessage/docs/ToastMessage__secondary.docs.js +37 -0
  31. package/es/ToastMessage/docs/ToastMessage__success.docs.js +61 -0
  32. package/es/Upload/docs/Upload__default.docs.js +61 -0
  33. package/es/alert/AlertHeader/docs/AlertHeader__default.docs.js +63 -0
  34. package/es/alert/AlertLookup/docs/AlertLookup__default.docs.js +132 -0
  35. package/es/avatar/AvatarClose/docs/AvatarClose__default.docs.js +26 -0
  36. package/es/avatar/AvatarCollision/docs/AvatarCollision__default.docs.js +35 -0
  37. package/es/avatar/AvatarIcon/docs/AvatarIcon__palette.docs.js +40 -0
  38. package/es/avatar/AvatarIcon/docs/AvatarIcon__size.docs.js +46 -0
  39. package/es/avatar/AvatarStatus/docs/AvatarStatus__size.docs.js +35 -0
  40. package/es/avatar/AvatarStatus/docs/AvatarStatus__state.docs.js +51 -0
  41. package/es/avatar/AvatarThread/docs/AvatarThread__default.docs.js +147 -0
  42. package/es/avatar/AvatarUser/docs/AvatarUser__default.docs.js +173 -0
  43. package/es/avatar/AvatarWithTeam/docs/AvatarWithTeam__default.docs.js +24 -0
  44. package/es/deprecated/SelectDropdown/docs/SelectDropdown__default.docs.js +34 -0
  45. package/es/docs/formDocs.js +26 -0
  46. package/es/docs/generalDocs.js +135 -0
  47. package/es/docs/lookupDocs.js +44 -0
  48. package/es/docs/setupDocs.js +22 -0
  49. package/es/dropdown/ToggleDropDown/docs/ToggleDropDown__default.docs.js +228 -0
  50. package/es/emptystate/CommonEmptyState/docs/CommonEmptyState__default.docs.js +111 -0
  51. package/es/emptystate/EditionPage/docs/EditionPage__default.docs.js +21 -0
  52. package/es/errorstate/Inconvenience/docs/Inconvenience__default.docs.js +19 -0
  53. package/es/errorstate/LinkText/docs/LinkText__default.docs.js +17 -0
  54. package/es/errorstate/NoRequestFound/docs/NoRequestFound__default.docs.js +19 -0
  55. package/es/errorstate/PermissionPlay/docs/PermissionPlay__default.docs.js +20 -0
  56. package/es/errorstate/RequestUrlNotFound/docs/RequestUrlNotFound__default.docs.js +19 -0
  57. package/es/errorstate/UnableToProcess/docs/UnableToProcess__default.docs.js +19 -0
  58. package/es/errorstate/UnauthorizedLogin/docs/UnauthorizedLogin__insufficient.docs.js +20 -0
  59. package/es/errorstate/UnauthorizedLogin/docs/UnauthorizedLogin__unauthorizedLogin.docs.js +19 -0
  60. package/es/errorstate/WillBack/docs/WillBack__default.docs.js +21 -0
  61. package/es/form/fields/CheckBoxField/docs/CheckBoxField__default.docs.js +30 -0
  62. package/es/form/fields/DateField/docs/DateField__default.docs.js +25 -0
  63. package/es/form/fields/MultiSelectField/docs/MultiSelectField__default.docs.js +48 -0
  64. package/es/form/fields/PhoneField/docs/PhoneField__default.docs.js +26 -0
  65. package/es/form/fields/SelectField/docs/SelectField__default.docs.js +58 -0
  66. package/es/form/fields/TagsMultiSelect/docs/TagsMultiSelect__default.docs.js +77 -0
  67. package/es/form/fields/TagsMultiSelectField/docs/TagsMultiSelectField__default.docs.js +82 -0
  68. package/es/form/fields/TextBoxField/docs/TextBoxField__default.docs.js +45 -0
  69. package/es/form/fields/TextEditorField/docs/TextEditorField__default.docs.js +43 -0
  70. package/es/form/fields/TextareaField/docs/TextareaField__default.docs.js +26 -0
  71. package/es/form/fields/ValidationMessage/docs/ValidationMessage__default.docs.js +58 -0
  72. package/es/form/layout/Field/docs/Field__default.docs.js +25 -0
  73. package/es/form/layout/Section/docs/Section__default.docs.js +21 -0
  74. package/es/layout/SetupDetailLayout/docs/SetupDetailLayout__default.docs.js +29 -0
  75. package/es/layout/SubtabLayout/docs/SubtabLayout__default.docs.js +67 -0
  76. package/es/list/AvatarFlip/docs/AvatarFlip__default.docs.js +100 -0
  77. package/es/list/BluePrintStatus/docs/BluePrintStatus__default.docs.js +19 -0
  78. package/es/list/Comment/docs/Comment__default.docs.js +26 -0
  79. package/es/list/DotNew/docs/DotNew__default.docs.js +20 -0
  80. package/es/list/GridStencils/docs/GridStencils__default.docs.js +35 -0
  81. package/es/list/Icons/docs/FloatingIcons__default.docs.js +24 -0
  82. package/es/list/ListLayout/docs/ListLayout__default.docs.js +60 -0
  83. package/es/list/ListStencils/docs/ListStencils__default.docs.js +20 -0
  84. package/es/list/SecondaryText/docs/ContactName__default.docs.js +23 -0
  85. package/es/list/SecondryPanel/docs/SecondryPanelDocs.module.css +37 -0
  86. package/es/list/SecondryPanel/docs/SecondryPanel__default.docs.js +81 -0
  87. package/es/list/SentimentStatus/docs/SentimentStatus__default.docs.js +19 -0
  88. package/es/list/Subject/docs/Subject__default.docs.js +44 -0
  89. package/es/list/TagNew/docs/TagNew__default.docs.js +23 -0
  90. package/es/list/Thread/docs/Thread__default.docs.js +22 -0
  91. package/es/list/UserTime/docs/UserTime__default.docs.js +157 -0
  92. package/es/list/status/StatusDropdown/docs/StatusDropdown__default.docs.js +129 -0
  93. package/es/list/status/StatusListItem/docs/StatusListItem__default.docs.js +27 -0
  94. package/es/lookup/EmptyPage/docs/EmptyPage__account.docs.js +20 -0
  95. package/es/lookup/EmptyPage/docs/EmptyPage__contact.docs.js +20 -0
  96. package/es/lookup/EmptyPage/docs/EmptyPage__default.docs.js +17 -0
  97. package/es/lookup/EmptyPage/docs/EmptyPage__product.docs.js +20 -0
  98. package/es/lookup/Lookup/docs/Lookup__contact.docs.js +196 -0
  99. package/es/lookup/Lookup/docs/Lookup__default.docs.js +68 -0
  100. package/es/lookup/header/Close/docs/Close__default.docs.js +19 -0
  101. package/es/lookup/header/ModuleHeader/docs/ModuleHeader__default.docs.js +51 -0
  102. package/es/lookup/header/Search/docs/Search__default.docs.js +124 -0
  103. package/es/lookup/header/TicketHeader/docs/TicketHeader__default.docs.js +83 -0
  104. package/es/lookup/header/Title/docs/Title__default.docs.js +21 -0
  105. package/es/lookup/header/ViewDropDown/docs/ViewDropDown__default.docs.js +75 -0
  106. package/es/setup/header/Button/docs/Button__default.docs.js +22 -0
  107. package/es/setup/header/Link/docs/Link__default.docs.js +23 -0
  108. package/es/setup/header/Search/docs/Search__default.docs.js +41 -0
  109. package/es/setup/header/Views/docs/Views__default.docs.js +24 -0
  110. package/es/setup/helptips/Description/docs/Description__default.docs.js +26 -0
  111. package/es/setup/helptips/Link/docs/Link__default.docs.js +27 -0
  112. package/es/setup/helptips/ListGroup/docs/ListGroup__default.docs.js +30 -0
  113. package/es/setup/helptips/Title/docs/Title__default.docs.js +26 -0
  114. package/es/setup/table/Table/docs/Table__default.docs.js +181 -0
  115. package/es/setup/table/Text/docs/Text__default.docs.js +35 -0
  116. package/es/svg/docs/SVG__default.docs.js +49 -0
  117. package/es/version2/AlertClose/docs/AlertClose__default.docs.js +47 -0
  118. package/es/version2/GlobalNotification/docs/GlobalNotification__default.docs.js +95 -0
  119. package/es/version2/alertIcons/docs/AlertIcons__default.docs.js +138 -0
  120. package/es/version2/errorstate/Inconvenience/docs/Inconvenience__default.docs.js +18 -0
  121. package/es/version2/errorstate/OopsSomethingMiss/docs/OopsSomethingMiss__default.docs.js +20 -0
  122. package/es/version2/errorstate/UnableToProcessRequest/docs/UnableToProcessRequest__default.docs.js +30 -0
  123. package/es/version2/errorstate/UnauthorizedLogin/docs/UnauthorizedLogin__default.docs.js +18 -0
  124. package/es/version2/errorstate/UrlNotFound/docs/UrlNotFound__default.docs.js +20 -0
  125. package/es/version2/errorstate/WillBeRightBack/docs/WillBeRightBack__default.docs.js +18 -0
  126. package/es/version2/lookup/AlertHeader/docs/AlertHeader__default.docs.js +56 -0
  127. package/es/version2/lookup/AlertLookup/docs/AlertLookup__default.docs.js +157 -0
  128. package/es/version2/notification/DesktopNotification/docs/DesktopNotification__default.docs.js +92 -0
  129. package/es/version2/notification/DesktopNotificationHeader/docs/DesktopNotificationHeader__default.docs.js +57 -0
  130. package/lib/ActionButton/docs/ActionButton__default.docs.js +197 -0
  131. package/lib/AlphabeticList/docs/AlphabeticList__default.docs.js +82 -0
  132. package/lib/AlphabeticList/docs/AlphabeticList__horizontal.docs.js +91 -0
  133. package/lib/Attachment/docs/Attachment__default.docs.js +104 -0
  134. package/lib/AttachmentViewer/docs/AttachmentViewer__default.docs.js +123 -0
  135. package/lib/ChannelIcon/docs/ChannelIcon__default.docs.js +112 -0
  136. package/lib/Drawer/docs/Drawer__default.docs.js +143 -0
  137. package/lib/Drawer/docs/Drawer__multiDrawer.docs.js +171 -0
  138. package/lib/Drawer/docs/Drawer__noFreeze.docs.js +65 -0
  139. package/lib/Drawer/docs/Drawer__withModal.docs.js +131 -0
  140. package/lib/ExternalLink/docs/ExternalLink__default.docs.js +68 -0
  141. package/lib/FlipCard/docs/FlipCard__default.docs.js +121 -0
  142. package/lib/FormAction/docs/FormAction__default.docs.js +127 -0
  143. package/lib/FreezeLayer/docs/FreezeLayer__dark.docs.js +103 -0
  144. package/lib/FreezeLayer/docs/FreezeLayer__default.docs.js +100 -0
  145. package/lib/IconButton/docs/IconButton__default.docs.js +272 -0
  146. package/lib/Image/docs/Image__default.docs.js +76 -0
  147. package/lib/ImportantNotes/docs/ImportantNotes__default.docs.js +68 -0
  148. package/lib/Link/docs/Link__default.docs.js +90 -0
  149. package/lib/Loader/docs/Loader__default.docs.js +68 -0
  150. package/lib/Message/docs/Message__default.docs.js +100 -0
  151. package/lib/MessageBanner/docs/MessageBanner__default.docs.js +132 -0
  152. package/lib/NewStar/docs/NewStar__default.docs.js +111 -0
  153. package/lib/PlusIcon/docs/PlusIcon__default.docs.js +70 -0
  154. package/lib/ToastMessage/docs/ToastMessage__custom.docs.js +151 -0
  155. package/lib/ToastMessage/docs/ToastMessage__information.docs.js +108 -0
  156. package/lib/ToastMessage/docs/ToastMessage__primary.docs.js +175 -0
  157. package/lib/ToastMessage/docs/ToastMessage__secondary.docs.js +91 -0
  158. package/lib/ToastMessage/docs/ToastMessage__success.docs.js +115 -0
  159. package/lib/Upload/docs/Upload__default.docs.js +110 -0
  160. package/lib/alert/AlertHeader/docs/AlertHeader__default.docs.js +112 -0
  161. package/lib/alert/AlertLookup/docs/AlertLookup__default.docs.js +187 -0
  162. package/lib/avatar/AvatarClose/docs/AvatarClose__default.docs.js +72 -0
  163. package/lib/avatar/AvatarCollision/docs/AvatarCollision__default.docs.js +81 -0
  164. package/lib/avatar/AvatarIcon/docs/AvatarIcon__palette.docs.js +95 -0
  165. package/lib/avatar/AvatarIcon/docs/AvatarIcon__size.docs.js +99 -0
  166. package/lib/avatar/AvatarStatus/docs/AvatarStatus__size.docs.js +90 -0
  167. package/lib/avatar/AvatarStatus/docs/AvatarStatus__state.docs.js +104 -0
  168. package/lib/avatar/AvatarThread/docs/AvatarThread__default.docs.js +198 -0
  169. package/lib/avatar/AvatarUser/docs/AvatarUser__default.docs.js +224 -0
  170. package/lib/avatar/AvatarWithTeam/docs/AvatarWithTeam__default.docs.js +74 -0
  171. package/lib/deprecated/SelectDropdown/docs/SelectDropdown__default.docs.js +80 -0
  172. package/lib/docs/formDocs.js +215 -0
  173. package/lib/docs/generalDocs.js +1055 -0
  174. package/lib/docs/lookupDocs.js +287 -0
  175. package/lib/docs/setupDocs.js +183 -0
  176. package/lib/dropdown/ToggleDropDown/docs/ToggleDropDown__default.docs.js +279 -0
  177. package/lib/emptystate/CommonEmptyState/docs/CommonEmptyState__default.docs.js +171 -0
  178. package/lib/emptystate/EditionPage/docs/EditionPage__default.docs.js +74 -0
  179. package/lib/errorstate/Inconvenience/docs/Inconvenience__default.docs.js +69 -0
  180. package/lib/errorstate/LinkText/docs/LinkText__default.docs.js +67 -0
  181. package/lib/errorstate/NoRequestFound/docs/NoRequestFound__default.docs.js +68 -0
  182. package/lib/errorstate/PermissionPlay/docs/PermissionPlay__default.docs.js +70 -0
  183. package/lib/errorstate/RequestUrlNotFound/docs/RequestUrlNotFound__default.docs.js +69 -0
  184. package/lib/errorstate/UnableToProcess/docs/UnableToProcess__default.docs.js +69 -0
  185. package/lib/errorstate/UnauthorizedLogin/docs/UnauthorizedLogin__insufficient.docs.js +70 -0
  186. package/lib/errorstate/UnauthorizedLogin/docs/UnauthorizedLogin__unauthorizedLogin.docs.js +69 -0
  187. package/lib/errorstate/WillBack/docs/WillBack__default.docs.js +71 -0
  188. package/lib/form/fields/CheckBoxField/docs/CheckBoxField__default.docs.js +80 -0
  189. package/lib/form/fields/DateField/docs/DateField__default.docs.js +74 -0
  190. package/lib/form/fields/MultiSelectField/docs/MultiSelectField__default.docs.js +100 -0
  191. package/lib/form/fields/PhoneField/docs/PhoneField__default.docs.js +76 -0
  192. package/lib/form/fields/SelectField/docs/SelectField__default.docs.js +110 -0
  193. package/lib/form/fields/TagsMultiSelect/docs/TagsMultiSelect__default.docs.js +126 -0
  194. package/lib/form/fields/TagsMultiSelectField/docs/TagsMultiSelectField__default.docs.js +96 -0
  195. package/lib/form/fields/TextBoxField/docs/TextBoxField__default.docs.js +97 -0
  196. package/lib/form/fields/TextEditorField/docs/TextEditorField__default.docs.js +94 -0
  197. package/lib/form/fields/TextareaField/docs/TextareaField__default.docs.js +76 -0
  198. package/lib/form/fields/ValidationMessage/docs/ValidationMessage__default.docs.js +103 -0
  199. package/lib/form/layout/Field/docs/Field__default.docs.js +74 -0
  200. package/lib/form/layout/Section/docs/Section__default.docs.js +71 -0
  201. package/lib/layout/SetupDetailLayout/docs/SetupDetailLayout__default.docs.js +80 -0
  202. package/lib/layout/SubtabLayout/docs/SubtabLayout__default.docs.js +118 -0
  203. package/lib/list/AvatarFlip/docs/AvatarFlip__default.docs.js +149 -0
  204. package/lib/list/BluePrintStatus/docs/BluePrintStatus__default.docs.js +65 -0
  205. package/lib/list/Comment/docs/Comment__default.docs.js +76 -0
  206. package/lib/list/DotNew/docs/DotNew__default.docs.js +70 -0
  207. package/lib/list/GridStencils/docs/GridStencils__default.docs.js +86 -0
  208. package/lib/list/Icons/docs/FloatingIcons__default.docs.js +81 -0
  209. package/lib/list/ListLayout/docs/ListLayout__default.docs.js +111 -0
  210. package/lib/list/ListStencils/docs/ListStencils__default.docs.js +70 -0
  211. package/lib/list/SecondaryText/docs/ContactName__default.docs.js +73 -0
  212. package/lib/list/SecondryPanel/docs/SecondryPanelDocs.module.css +37 -0
  213. package/lib/list/SecondryPanel/docs/SecondryPanel__default.docs.js +133 -0
  214. package/lib/list/SentimentStatus/docs/SentimentStatus__default.docs.js +65 -0
  215. package/lib/list/Subject/docs/Subject__default.docs.js +94 -0
  216. package/lib/list/TagNew/docs/TagNew__default.docs.js +73 -0
  217. package/lib/list/Thread/docs/Thread__default.docs.js +72 -0
  218. package/lib/list/UserTime/docs/UserTime__default.docs.js +196 -0
  219. package/lib/list/status/StatusDropdown/docs/StatusDropdown__default.docs.js +178 -0
  220. package/lib/list/status/StatusListItem/docs/StatusListItem__default.docs.js +77 -0
  221. package/lib/lookup/EmptyPage/docs/EmptyPage__account.docs.js +70 -0
  222. package/lib/lookup/EmptyPage/docs/EmptyPage__contact.docs.js +70 -0
  223. package/lib/lookup/EmptyPage/docs/EmptyPage__default.docs.js +67 -0
  224. package/lib/lookup/EmptyPage/docs/EmptyPage__product.docs.js +70 -0
  225. package/lib/lookup/Lookup/docs/Lookup__contact.docs.js +247 -0
  226. package/lib/lookup/Lookup/docs/Lookup__default.docs.js +121 -0
  227. package/lib/lookup/header/Close/docs/Close__default.docs.js +69 -0
  228. package/lib/lookup/header/ModuleHeader/docs/ModuleHeader__default.docs.js +99 -0
  229. package/lib/lookup/header/Search/docs/Search__default.docs.js +175 -0
  230. package/lib/lookup/header/TicketHeader/docs/TicketHeader__default.docs.js +133 -0
  231. package/lib/lookup/header/Title/docs/Title__default.docs.js +71 -0
  232. package/lib/lookup/header/ViewDropDown/docs/ViewDropDown__default.docs.js +119 -0
  233. package/lib/setup/header/Button/docs/Button__default.docs.js +68 -0
  234. package/lib/setup/header/Link/docs/Link__default.docs.js +69 -0
  235. package/lib/setup/header/Search/docs/Search__default.docs.js +92 -0
  236. package/lib/setup/header/Views/docs/Views__default.docs.js +70 -0
  237. package/lib/setup/helptips/Description/docs/Description__default.docs.js +72 -0
  238. package/lib/setup/helptips/Link/docs/Link__default.docs.js +73 -0
  239. package/lib/setup/helptips/ListGroup/docs/ListGroup__default.docs.js +76 -0
  240. package/lib/setup/helptips/Title/docs/Title__default.docs.js +72 -0
  241. package/lib/setup/table/Table/docs/Table__default.docs.js +238 -0
  242. package/lib/setup/table/Text/docs/Text__default.docs.js +84 -0
  243. package/lib/svg/docs/SVG__default.docs.js +101 -0
  244. package/lib/version2/AlertClose/docs/AlertClose__default.docs.js +97 -0
  245. package/lib/version2/GlobalNotification/docs/GlobalNotification__default.docs.js +143 -0
  246. package/lib/version2/alertIcons/docs/AlertIcons__default.docs.js +187 -0
  247. package/lib/version2/errorstate/Inconvenience/docs/Inconvenience__default.docs.js +68 -0
  248. package/lib/version2/errorstate/OopsSomethingMiss/docs/OopsSomethingMiss__default.docs.js +70 -0
  249. package/lib/version2/errorstate/UnableToProcessRequest/docs/UnableToProcessRequest__default.docs.js +80 -0
  250. package/lib/version2/errorstate/UnauthorizedLogin/docs/UnauthorizedLogin__default.docs.js +68 -0
  251. package/lib/version2/errorstate/UrlNotFound/docs/UrlNotFound__default.docs.js +70 -0
  252. package/lib/version2/errorstate/WillBeRightBack/docs/WillBeRightBack__default.docs.js +68 -0
  253. package/lib/version2/lookup/AlertHeader/docs/AlertHeader__default.docs.js +105 -0
  254. package/lib/version2/lookup/AlertLookup/docs/AlertLookup__default.docs.js +212 -0
  255. package/lib/version2/notification/DesktopNotification/docs/DesktopNotification__default.docs.js +142 -0
  256. package/lib/version2/notification/DesktopNotificationHeader/docs/DesktopNotificationHeader__default.docs.js +108 -0
  257. package/package.json +3 -3
@@ -0,0 +1,129 @@
1
+ import React from 'react';
2
+ import StatusDropdown from '../StatusDropdown';
3
+ import { StatusText } from '../../../SecondaryText';
4
+ export default class StatusDropdown__default extends React.Component {
5
+ constructor(props) {
6
+ super(props);
7
+ this.state = {
8
+ value: 'Open',
9
+ options: [{
10
+ statusType: 'Open',
11
+ name: 'Opensdd',
12
+ key: 'Opensdd',
13
+ statusColor: 'black'
14
+ }, {
15
+ statusType: 'Open',
16
+ name: 'Escalated',
17
+ key: 'Escalated',
18
+ statusColor: 'black'
19
+ }, {
20
+ statusType: 'Closed',
21
+ name: 'Closed',
22
+ key: 'Closed',
23
+ statusColor: 'green'
24
+ }, {
25
+ statusType: 'On Hold',
26
+ name: 'On Hold Status',
27
+ key: 'On Hold Status',
28
+ statusColor: 'orange'
29
+ }, {
30
+ statusType: 'Open',
31
+ name: 'Open',
32
+ key: 'Open',
33
+ statusColor: 'black'
34
+ }, {
35
+ statusType: 'On Hold',
36
+ name: 'Pending Developer Implement',
37
+ key: 'Pending Developer Implement',
38
+ statusColor: 'orange'
39
+ }, {
40
+ statusType: 'Open',
41
+ name: 'Inprogress',
42
+ key: 'Inprogress',
43
+ statusColor: 'black'
44
+ }]
45
+ };
46
+ this.onSelect = this.onSelect.bind(this);
47
+ this.getNextOptions = this.getNextOptions.bind(this);
48
+ }
49
+
50
+ onSelect(element, e) {
51
+ this.setState({
52
+ value: element
53
+ });
54
+ }
55
+
56
+ getNextOptions() {
57
+ this.setState({
58
+ options: [{
59
+ statusType: 'Open',
60
+ name: 'Opensdd',
61
+ key: 'Opensdd',
62
+ statusColor: 'black'
63
+ }, {
64
+ statusType: 'Open',
65
+ name: 'Escalated',
66
+ key: 'Escalated',
67
+ statusColor: 'black'
68
+ }, {
69
+ statusType: 'Closed',
70
+ name: 'Closed',
71
+ key: 'Closed',
72
+ statusColor: 'green'
73
+ }, {
74
+ statusType: 'On Hold',
75
+ name: 'On Hold Status',
76
+ key: 'On Hold Status',
77
+ statusColor: 'orange'
78
+ }, {
79
+ statusType: 'Open',
80
+ name: 'Open',
81
+ key: 'Open',
82
+ statusColor: 'black'
83
+ }, {
84
+ statusType: 'On Hold',
85
+ name: 'Pending Developer Implement',
86
+ key: 'Pending Developer Implement',
87
+ statusColor: 'orange'
88
+ }, {
89
+ statusType: 'Open',
90
+ name: 'Inprogress',
91
+ key: 'Inprogress',
92
+ statusColor: 'black'
93
+ }]
94
+ });
95
+ }
96
+
97
+ render() {
98
+ let {
99
+ options
100
+ } = this.state;
101
+ return /*#__PURE__*/React.createElement("div", {
102
+ style: {
103
+ margin: '30px',
104
+ display: 'inline-flex',
105
+ maxWidth: '200px'
106
+ }
107
+ }, /*#__PURE__*/React.createElement(StatusDropdown, {
108
+ value: this.state.value,
109
+ dataTitle: this.state.value,
110
+ keyName: "name",
111
+ onClick: this.onSelect,
112
+ isSearch: true,
113
+ title: "Status",
114
+ options: options,
115
+ isNextOptions: true,
116
+ getNextOptions: this.getNextOptions,
117
+ arrowIconPosition: "overlay",
118
+ isEditable: true,
119
+ statusColor: "statusColor",
120
+ placeHolderText: "Search Status"
121
+ }, /*#__PURE__*/React.createElement(StatusText, {
122
+ text: this.state.value
123
+ })));
124
+ }
125
+
126
+ }
127
+ StatusDropdown__default.docs = {
128
+ componentGroup: 'Molecule'
129
+ };
@@ -0,0 +1,27 @@
1
+ import React from 'react';
2
+ import StatusListItem from '../StatusListItem';
3
+ import { StatusText } from '../../../SecondaryText';
4
+ export default class StatusListItem__default extends React.Component {
5
+ render() {
6
+ return /*#__PURE__*/React.createElement("div", {
7
+ style: {
8
+ margin: '30px',
9
+ display: 'inline-block'
10
+ }
11
+ }, /*#__PURE__*/React.createElement(StatusListItem, {
12
+ value: "On Hold",
13
+ bulletColor: "orange"
14
+ }), /*#__PURE__*/React.createElement(StatusListItem, {
15
+ value: "Open",
16
+ bulletColor: "black"
17
+ }), /*#__PURE__*/React.createElement(StatusListItem, {
18
+ value: "Closed",
19
+ bulletColor: "green"
20
+ }));
21
+ }
22
+
23
+ }
24
+ StatusListItem__default.docs = {
25
+ componentGroup: 'StatusListItem',
26
+ folderName: 'List'
27
+ };
@@ -0,0 +1,20 @@
1
+ /*** Libraries ***/
2
+ import React, { Component } from 'react';
3
+ /*** Components ***/
4
+
5
+ import EmptyPage from '../EmptyPage';
6
+ export default class EmptyPage__account extends Component {
7
+ render() {
8
+ return /*#__PURE__*/React.createElement(EmptyPage, {
9
+ type: "account",
10
+ title: "No Accounts Found"
11
+ });
12
+ }
13
+
14
+ }
15
+
16
+ if (false) {
17
+ EmptyPage__account.docs = {
18
+ componentGroup: 'Lookup'
19
+ };
20
+ }
@@ -0,0 +1,20 @@
1
+ /*** Libraries ***/
2
+ import React, { Component } from 'react';
3
+ /*** Components ***/
4
+
5
+ import EmptyPage from '../EmptyPage';
6
+ export default class EmptyPage__contact extends Component {
7
+ render() {
8
+ return /*#__PURE__*/React.createElement(EmptyPage, {
9
+ type: "contact",
10
+ title: "No Contacts Found"
11
+ });
12
+ }
13
+
14
+ }
15
+
16
+ if (false) {
17
+ EmptyPage__contact.docs = {
18
+ componentGroup: 'Lookup'
19
+ };
20
+ }
@@ -0,0 +1,17 @@
1
+ /*** Libraries ***/
2
+ import React, { Component } from 'react';
3
+ /*** Components ***/
4
+
5
+ import EmptyPage from '../EmptyPage';
6
+ export default class EmptyPage__default extends Component {
7
+ render() {
8
+ return /*#__PURE__*/React.createElement(EmptyPage, null);
9
+ }
10
+
11
+ }
12
+
13
+ if (false) {
14
+ EmptyPage__default.docs = {
15
+ componentGroup: 'Lookup'
16
+ };
17
+ }
@@ -0,0 +1,20 @@
1
+ /*** Libraries ***/
2
+ import React, { Component } from 'react';
3
+ /*** Components ***/
4
+
5
+ import EmptyPage from '../EmptyPage';
6
+ export default class EmptyPage__product extends Component {
7
+ render() {
8
+ return /*#__PURE__*/React.createElement(EmptyPage, {
9
+ type: "product",
10
+ title: "No Products Found"
11
+ });
12
+ }
13
+
14
+ }
15
+
16
+ if (false) {
17
+ EmptyPage__product.docs = {
18
+ componentGroup: 'Lookup'
19
+ };
20
+ }
@@ -0,0 +1,196 @@
1
+ /*** Libraries ***/
2
+ import React, { Component } from 'react';
3
+ import PropTypes from 'prop-types';
4
+ /*** Components ***/
5
+
6
+ import Modal from '@zohodesk/components/lib/Modal/Modal'; // import ContactLookup from '../../ContactLookup/ContactLookup.js';
7
+ // import ContactLookupController from '../../../moduleForm/lookupController/ContactLookupController/ContactLookupController';
8
+
9
+ /*** Methods ***/
10
+
11
+ import { getFullName } from '../../../utils/General';
12
+ let contacts = {
13
+ id_1: {
14
+ firstName: 'Antro Arul ',
15
+ lastName: 'Xavier',
16
+ src: null,
17
+ email: 'antro.j@zohocorp.com',
18
+ mobile: '9600745911',
19
+ accountId: '1236',
20
+ account: {
21
+ accountName: 'Zoho Desk'
22
+ },
23
+ id: 'id_1',
24
+ secondaryEmail: 'antro.j+1@zohocorp.com',
25
+ phoneNo: '9600745912'
26
+ },
27
+ id_2: {
28
+ firstName: 'Ujil Axper',
29
+ email: null,
30
+ mobile: null,
31
+ id: 'id_2',
32
+ secondaryEmail: '',
33
+ phone: '9600745912'
34
+ },
35
+ id_3: {
36
+ lastName: 'Selva Kumar PL',
37
+ email: '',
38
+ mobile: null,
39
+ accountId: '1235',
40
+ account: {
41
+ accountName: 'My Account'
42
+ },
43
+ id: 'id_3',
44
+ secondaryEmail: 'selva.kumar+1@zohocorp.com',
45
+ phone: '9600745912'
46
+ },
47
+ id_4: {
48
+ firstName: 'Arun Kumar M',
49
+ email: 'arun.kumar@zohocorp.com',
50
+ mobile: '9089765342',
51
+ accountId: '1234',
52
+ account: {
53
+ accountName: 'Zoho CRM'
54
+ },
55
+ id: 'id_4',
56
+ secondaryEmail: '',
57
+ phone: ''
58
+ },
59
+ id_5: {
60
+ lastName: 'Ravikumar Selvam',
61
+ email: '',
62
+ mobile: '8765432910',
63
+ accountName: {},
64
+ id: 'id_5',
65
+ secondaryEmail: '',
66
+ phone: ''
67
+ }
68
+ };
69
+ let accounts = {
70
+ '1234': {
71
+ accountName: 'Zoho CRM'
72
+ },
73
+ '1235': {
74
+ accountName: 'My Account'
75
+ },
76
+ '1236': {
77
+ accountName: 'Zoho Desk'
78
+ }
79
+ };
80
+ export default class Lookup__contact extends Component {
81
+ constructor(props) {
82
+ super(props);
83
+ this.state = {
84
+ value: '',
85
+ selected: '',
86
+ searchStr: '',
87
+ isShowAlert: false
88
+ };
89
+ this.handleLookupShow = this.handleLookupShow.bind(this);
90
+ this.handleLookupHide = this.handleLookupHide.bind(this);
91
+ this.handleSearch = this.handleSearch.bind(this);
92
+ this.handleClear = this.handleClear.bind(this);
93
+ this.handleSelect = this.handleSelect.bind(this);
94
+ this.handleSelectStartsWith = this.handleSelectStartsWith.bind(this);
95
+ this.handleSearchAPI = this.handleSearchAPI.bind(this);
96
+ }
97
+
98
+ handleLookupShow() {
99
+ this.setState({
100
+ isShowAlert: true
101
+ });
102
+ }
103
+
104
+ handleLookupHide() {
105
+ this.setState({
106
+ isShowAlert: false
107
+ });
108
+ }
109
+
110
+ handleSearch(val) {
111
+ this.setState({
112
+ value: val,
113
+ selected: ''
114
+ });
115
+ }
116
+
117
+ handleClear() {
118
+ this.handleSearch('');
119
+ }
120
+
121
+ handleSelect(id) {
122
+ let {
123
+ onSelect
124
+ } = this.props;
125
+ onSelect && onSelect(id);
126
+ let {
127
+ firstName = '',
128
+ lastName = ''
129
+ } = contacts[id];
130
+ let contactName = getFullName(firstName, lastName);
131
+ this.setState({
132
+ selected: contactName,
133
+ value: ''
134
+ });
135
+ this.handleLookupHide();
136
+ }
137
+
138
+ handleSelectStartsWith(startsWith) {
139
+ this.setState({
140
+ selectedStartsWithChar: startsWith
141
+ });
142
+ }
143
+
144
+ handleSearchAPI(val) {
145
+ this.setState({
146
+ searchStr: val
147
+ });
148
+ }
149
+
150
+ render() {
151
+ let {
152
+ value,
153
+ selected,
154
+ selectedStartsWithChar,
155
+ searchStr,
156
+ isShowAlert
157
+ } = this.state;
158
+ let {
159
+ getLookupTarget
160
+ } = this.props;
161
+ return /*#__PURE__*/React.createElement("div", {
162
+ style: {
163
+ height: '90vh'
164
+ }
165
+ }, getLookupTarget ? getLookupTarget({
166
+ onLookupShow: this.handleLookupShow
167
+ }) : {
168
+ /* <ContactLookupController
169
+ value={value || selected}
170
+ suggestionItems={['id_1', 'id_2', 'id_3', 'id_4', 'id_5']}
171
+ moduleData={contacts}
172
+ accounts={accounts}
173
+ needClearIcon
174
+ needSearchIcon
175
+ needSuggestionBox
176
+ onClear={this.handleClear}
177
+ onChange={this.handleSearch}
178
+ onSearch={this.handleLookupShow}
179
+ onSelect={this.handleSelect}
180
+ searchStr={searchStr}
181
+ onSearchAPI={this.handleSearchAPI}
182
+ />*/
183
+ }, /*#__PURE__*/React.createElement(Modal, null));
184
+ }
185
+
186
+ }
187
+ Lookup__contact.propTypes = {
188
+ getLookupTarget: PropTypes.func,
189
+ onSelect: PropTypes.func
190
+ };
191
+
192
+ if (false) {
193
+ Lookup__contact.docs = {
194
+ componentGroup: 'Lookup'
195
+ };
196
+ }
@@ -0,0 +1,68 @@
1
+ /*** Libraries ***/
2
+ import React, { Component } from 'react';
3
+ /*** Components ***/
4
+
5
+ import Lookup from '../Lookup';
6
+ import ModuleHeader from '../../header/ModuleHeader/ModuleHeader';
7
+ import Section from '../../Section/Section';
8
+ export default class Lookup__default extends Component {
9
+ constructor(props) {
10
+ super(props);
11
+ this.state = {
12
+ isShow: false,
13
+ searchStr: ''
14
+ };
15
+ this.handleLookupShow = this.handleLookupShow.bind(this);
16
+ this.handleLookupHide = this.handleLookupHide.bind(this);
17
+ this.handleLookupSearch = this.handleLookupSearch.bind(this);
18
+ }
19
+
20
+ handleLookupShow() {
21
+ this.setState({
22
+ isShow: true
23
+ });
24
+ }
25
+
26
+ handleLookupHide() {
27
+ this.setState({
28
+ isShow: false
29
+ });
30
+ }
31
+
32
+ handleLookupSearch(val) {
33
+ this.setState({
34
+ searchStr: val
35
+ });
36
+ }
37
+
38
+ render() {
39
+ let {
40
+ isShow,
41
+ searchStr
42
+ } = this.state;
43
+ return /*#__PURE__*/React.createElement("div", {
44
+ style: {
45
+ height: '90vh'
46
+ }
47
+ }, /*#__PURE__*/React.createElement("span", {
48
+ onClick: this.handleLookupShow
49
+ }, "Open"), /*#__PURE__*/React.createElement(Lookup, {
50
+ animationStyle: "scale",
51
+ isActive: isShow
52
+ }, /*#__PURE__*/React.createElement(ModuleHeader, {
53
+ title: "Select Contact",
54
+ needSearch: true,
55
+ onLookupClose: this.handleLookupHide,
56
+ onSearchChange: this.handleLookupSearch,
57
+ searchStr: searchStr,
58
+ searchPlaceHolder: "Search contact"
59
+ }), /*#__PURE__*/React.createElement(Section, null)));
60
+ }
61
+
62
+ }
63
+
64
+ if (false) {
65
+ Lookup__default.docs = {
66
+ componentGroup: 'Lookup'
67
+ };
68
+ }
@@ -0,0 +1,19 @@
1
+ import React, { Component } from 'react';
2
+ import PropTypes from 'prop-types';
3
+ import Close from '../Close';
4
+ export default class Close__default extends Component {
5
+ constructor(props) {
6
+ super(props);
7
+ }
8
+
9
+ render() {
10
+ return /*#__PURE__*/React.createElement(Close, null);
11
+ }
12
+
13
+ }
14
+
15
+ if (false) {
16
+ Close__default.docs = {
17
+ componentGroup: 'Lookup'
18
+ };
19
+ }
@@ -0,0 +1,51 @@
1
+ /*** Libraries ***/
2
+ import React, { Component } from 'react';
3
+ /*** Components ***/
4
+
5
+ import ModuleHeader from '../ModuleHeader';
6
+ export default class ModuleHeader__default extends Component {
7
+ constructor(props) {
8
+ super(props);
9
+ this.state = {
10
+ searchStr: ''
11
+ };
12
+ this.handleSearch = this.handleSearch.bind(this);
13
+ }
14
+
15
+ handleSearch(value) {
16
+ this.setState({
17
+ searchStr: value
18
+ });
19
+ }
20
+
21
+ render() {
22
+ let {
23
+ searchStr
24
+ } = this.state;
25
+ return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(ModuleHeader, {
26
+ title: "Find Duplicate",
27
+ needSearch: true,
28
+ searchStr: searchStr,
29
+ onSearchChange: this.handleSearch,
30
+ searchPlaceHolder: "Search",
31
+ miniDescription: "Select a field to search for duplicate records",
32
+ onLookupClose: () => {}
33
+ }), /*#__PURE__*/React.createElement(ModuleHeader, {
34
+ title: "Find Duplicate",
35
+ needSearch: true,
36
+ searchStr: searchStr,
37
+ onSearchChange: this.handleSearch,
38
+ searchPlaceHolder: "Search",
39
+ miniDescription: "Select a field to search for duplicate records",
40
+ onLookupClose: () => {},
41
+ palette: "white"
42
+ }));
43
+ }
44
+
45
+ }
46
+
47
+ if (false) {
48
+ ModuleHeader__default.docs = {
49
+ componentGroup: 'Lookup'
50
+ };
51
+ }
@@ -0,0 +1,124 @@
1
+ /*** Libraries ***/
2
+ import React, { Component } from 'react';
3
+ import { Container } from '@zohodesk/components/lib/Layout';
4
+ /*** Components ***/
5
+
6
+ import Search from '../Search';
7
+ export default class Search__default extends Component {
8
+ constructor(props) {
9
+ super(props);
10
+ this.state = {
11
+ searchStr: '',
12
+ value: 'All Fields',
13
+ selectedId: '1'
14
+ };
15
+ this.handleChange = this.handleChange.bind(this);
16
+ this.onSelect = this.onSelect.bind(this);
17
+ }
18
+
19
+ handleChange(value) {
20
+ this.setState({
21
+ searchStr: value
22
+ });
23
+ }
24
+
25
+ onSelect(element, e) {
26
+ this.setState({
27
+ value: e.value,
28
+ selectedId: e.id
29
+ });
30
+ }
31
+
32
+ render() {
33
+ const {
34
+ searchStr,
35
+ value,
36
+ selectedId
37
+ } = this.state;
38
+ const Obj = [{
39
+ value: 'All Fields',
40
+ id: '1'
41
+ }, {
42
+ needDivider: true
43
+ }, {
44
+ value: 'Conatct Name, Email, Phone',
45
+ id: '2'
46
+ }, {
47
+ value: 'Account',
48
+ id: '3'
49
+ }, {
50
+ value: 'Customer Place',
51
+ id: '4'
52
+ }, {
53
+ value: 'Conatct ID',
54
+ id: '5'
55
+ }];
56
+ const style = {
57
+ width: '280px',
58
+ margin: '20px'
59
+ },
60
+ boxStyle = {
61
+ border: '1px solid #e3e6eb',
62
+ padding: '15px 20px 25px',
63
+ marginBottom: '10px'
64
+ },
65
+ titleStyle = {
66
+ fontSize: '13px',
67
+ paddingBottom: '25px',
68
+ textTransform: 'upperCase'
69
+ };
70
+ return /*#__PURE__*/React.createElement("div", {
71
+ style: style
72
+ }, /*#__PURE__*/React.createElement("div", {
73
+ style: boxStyle
74
+ }, /*#__PURE__*/React.createElement("div", {
75
+ style: titleStyle
76
+ }, "Default"), /*#__PURE__*/React.createElement(Search, {
77
+ placeHolder: "Search",
78
+ onChange: this.handleChange,
79
+ onSearch: e => {
80
+ console.log(e);
81
+ },
82
+ searchStr: searchStr
83
+ })), /*#__PURE__*/React.createElement("div", {
84
+ style: boxStyle
85
+ }, /*#__PURE__*/React.createElement("div", {
86
+ style: titleStyle
87
+ }, "Search With Options"), /*#__PURE__*/React.createElement(Container, {
88
+ alignBox: "row"
89
+ }, /*#__PURE__*/React.createElement(Search, {
90
+ placeHolder: "Search",
91
+ onChange: this.handleChange,
92
+ onSearch: e => {
93
+ console.log(e);
94
+ },
95
+ searchStr: searchStr,
96
+ isBoxed: true,
97
+ options: Obj,
98
+ value: value,
99
+ selectedId: selectedId,
100
+ title: value,
101
+ onSelect: this.onSelect
102
+ }))), /*#__PURE__*/React.createElement("div", {
103
+ style: boxStyle
104
+ }, /*#__PURE__*/React.createElement("div", {
105
+ style: titleStyle
106
+ }, "Search Icon With Box"), /*#__PURE__*/React.createElement(Search, {
107
+ placeHolder: "Search",
108
+ onChange: this.handleChange,
109
+ onSearch: e => {
110
+ console.log(e);
111
+ },
112
+ searchStr: searchStr,
113
+ isBoxed: true,
114
+ isSearchIconNeed: true
115
+ })));
116
+ }
117
+
118
+ }
119
+
120
+ if (false) {
121
+ Search__default.docs = {
122
+ componentGroup: 'Lookup'
123
+ };
124
+ }