@hitachivantara/uikit-react-lab 4.0.3 → 4.1.0

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 (432) hide show
  1. package/dist/ColorPicker/ColorPicker.js +25 -78
  2. package/dist/ColorPicker/ColorPicker.js.map +1 -1
  3. package/dist/ColorPicker/Fields/Fields.js +15 -47
  4. package/dist/ColorPicker/Fields/Fields.js.map +1 -1
  5. package/dist/ColorPicker/Fields/index.js +0 -2
  6. package/dist/ColorPicker/Fields/index.js.map +1 -1
  7. package/dist/ColorPicker/Fields/styles.js +0 -2
  8. package/dist/ColorPicker/Fields/styles.js.map +1 -1
  9. package/dist/ColorPicker/Picker/Picker.js +5 -23
  10. package/dist/ColorPicker/Picker/Picker.js.map +1 -1
  11. package/dist/ColorPicker/Picker/index.js +0 -2
  12. package/dist/ColorPicker/Picker/index.js.map +1 -1
  13. package/dist/ColorPicker/Picker/styles.js +0 -2
  14. package/dist/ColorPicker/Picker/styles.js.map +1 -1
  15. package/dist/ColorPicker/PresetColors/PresetColors.js +2 -24
  16. package/dist/ColorPicker/PresetColors/PresetColors.js.map +1 -1
  17. package/dist/ColorPicker/PresetColors/index.js +0 -2
  18. package/dist/ColorPicker/PresetColors/index.js.map +1 -1
  19. package/dist/ColorPicker/PresetColors/styles.js +0 -2
  20. package/dist/ColorPicker/PresetColors/styles.js.map +1 -1
  21. package/dist/ColorPicker/index.js +0 -2
  22. package/dist/ColorPicker/index.js.map +1 -1
  23. package/dist/ColorPicker/styles.js +0 -2
  24. package/dist/ColorPicker/styles.js.map +1 -1
  25. package/dist/Drawer/Drawer.js +10 -50
  26. package/dist/Drawer/Drawer.js.map +1 -1
  27. package/dist/Drawer/index.js +0 -2
  28. package/dist/Drawer/index.js.map +1 -1
  29. package/dist/Drawer/styles.js +0 -3
  30. package/dist/Drawer/styles.js.map +1 -1
  31. package/dist/ImageCarousel/ImageCarousel.js +46 -149
  32. package/dist/ImageCarousel/ImageCarousel.js.map +1 -1
  33. package/dist/ImageCarousel/index.js +0 -2
  34. package/dist/ImageCarousel/index.js.map +1 -1
  35. package/dist/ImageCarousel/styles.js +0 -5
  36. package/dist/ImageCarousel/styles.js.map +1 -1
  37. package/dist/InlineEditor/InlineEditor.js +25 -82
  38. package/dist/InlineEditor/InlineEditor.js.map +1 -1
  39. package/dist/InlineEditor/index.js +0 -2
  40. package/dist/InlineEditor/index.js.map +1 -1
  41. package/dist/InlineEditor/styles.js +0 -14
  42. package/dist/InlineEditor/styles.js.map +1 -1
  43. package/dist/NavigationAnchors/NavigationAnchors.js +44 -116
  44. package/dist/NavigationAnchors/NavigationAnchors.js.map +1 -1
  45. package/dist/NavigationAnchors/NavigationOption.js +0 -10
  46. package/dist/NavigationAnchors/NavigationOption.js.map +1 -1
  47. package/dist/NavigationAnchors/index.js +0 -2
  48. package/dist/NavigationAnchors/index.js.map +1 -1
  49. package/dist/NavigationAnchors/styles.js +0 -2
  50. package/dist/NavigationAnchors/styles.js.map +1 -1
  51. package/dist/NotificationPanel/EmptyStatePanel/EmptyStatePanel.js +5 -26
  52. package/dist/NotificationPanel/EmptyStatePanel/EmptyStatePanel.js.map +1 -1
  53. package/dist/NotificationPanel/EmptyStatePanel/index.js +0 -2
  54. package/dist/NotificationPanel/EmptyStatePanel/index.js.map +1 -1
  55. package/dist/NotificationPanel/EmptyStatePanel/styles.js +0 -2
  56. package/dist/NotificationPanel/EmptyStatePanel/styles.js.map +1 -1
  57. package/dist/NotificationPanel/Notification/Notification.js +12 -57
  58. package/dist/NotificationPanel/Notification/Notification.js.map +1 -1
  59. package/dist/NotificationPanel/Notification/index.js +0 -2
  60. package/dist/NotificationPanel/Notification/index.js.map +1 -1
  61. package/dist/NotificationPanel/Notification/styles.js +0 -14
  62. package/dist/NotificationPanel/Notification/styles.js.map +1 -1
  63. package/dist/NotificationPanel/NotificationPanel.js +23 -92
  64. package/dist/NotificationPanel/NotificationPanel.js.map +1 -1
  65. package/dist/NotificationPanel/NotificationsIndicator/NotificationsIndicator.js +4 -35
  66. package/dist/NotificationPanel/NotificationsIndicator/NotificationsIndicator.js.map +1 -1
  67. package/dist/NotificationPanel/NotificationsIndicator/index.js +0 -2
  68. package/dist/NotificationPanel/NotificationsIndicator/index.js.map +1 -1
  69. package/dist/NotificationPanel/NotificationsIndicator/styles.js +0 -2
  70. package/dist/NotificationPanel/NotificationsIndicator/styles.js.map +1 -1
  71. package/dist/NotificationPanel/index.js +0 -2
  72. package/dist/NotificationPanel/index.js.map +1 -1
  73. package/dist/NotificationPanel/styles.js +0 -2
  74. package/dist/NotificationPanel/styles.js.map +1 -1
  75. package/dist/StepNavigation/DefaultNavigation/DefaultNavigation.js +15 -44
  76. package/dist/StepNavigation/DefaultNavigation/DefaultNavigation.js.map +1 -1
  77. package/dist/StepNavigation/DefaultNavigation/Step/Step.js +9 -41
  78. package/dist/StepNavigation/DefaultNavigation/Step/Step.js.map +1 -1
  79. package/dist/StepNavigation/DefaultNavigation/Step/index.js +0 -2
  80. package/dist/StepNavigation/DefaultNavigation/Step/index.js.map +1 -1
  81. package/dist/StepNavigation/DefaultNavigation/Step/styles.js +0 -2
  82. package/dist/StepNavigation/DefaultNavigation/Step/styles.js.map +1 -1
  83. package/dist/StepNavigation/DefaultNavigation/index.js +0 -2
  84. package/dist/StepNavigation/DefaultNavigation/index.js.map +1 -1
  85. package/dist/StepNavigation/DefaultNavigation/styles.js +0 -2
  86. package/dist/StepNavigation/DefaultNavigation/styles.js.map +1 -1
  87. package/dist/StepNavigation/DefaultNavigation/utils.js +0 -3
  88. package/dist/StepNavigation/DefaultNavigation/utils.js.map +1 -1
  89. package/dist/StepNavigation/SimpleNavigation/Dot/Dot.js +6 -47
  90. package/dist/StepNavigation/SimpleNavigation/Dot/Dot.js.map +1 -1
  91. package/dist/StepNavigation/SimpleNavigation/Dot/index.js +0 -2
  92. package/dist/StepNavigation/SimpleNavigation/Dot/index.js.map +1 -1
  93. package/dist/StepNavigation/SimpleNavigation/Dot/styles.js.map +1 -1
  94. package/dist/StepNavigation/SimpleNavigation/SimpleNavigation.js +14 -44
  95. package/dist/StepNavigation/SimpleNavigation/SimpleNavigation.js.map +1 -1
  96. package/dist/StepNavigation/SimpleNavigation/index.js +0 -2
  97. package/dist/StepNavigation/SimpleNavigation/index.js.map +1 -1
  98. package/dist/StepNavigation/SimpleNavigation/styles.js +0 -2
  99. package/dist/StepNavigation/SimpleNavigation/styles.js.map +1 -1
  100. package/dist/StepNavigation/SimpleNavigation/utils.js +0 -6
  101. package/dist/StepNavigation/SimpleNavigation/utils.js.map +1 -1
  102. package/dist/StepNavigation/StepNavigation.d.ts +12 -10
  103. package/dist/StepNavigation/StepNavigation.js +39 -106
  104. package/dist/StepNavigation/StepNavigation.js.map +1 -1
  105. package/dist/StepNavigation/index.js +0 -2
  106. package/dist/StepNavigation/index.js.map +1 -1
  107. package/dist/StepNavigation/styles.js +0 -2
  108. package/dist/StepNavigation/styles.js.map +1 -1
  109. package/dist/StepNavigation/utils.js.map +1 -1
  110. package/dist/TimeAgo/TimeAgo.js +13 -44
  111. package/dist/TimeAgo/TimeAgo.js.map +1 -1
  112. package/dist/TimeAgo/formatUtils.js +15 -35
  113. package/dist/TimeAgo/formatUtils.js.map +1 -1
  114. package/dist/TimeAgo/index.js +0 -3
  115. package/dist/TimeAgo/index.js.map +1 -1
  116. package/dist/TimeAgo/styles.js.map +1 -1
  117. package/dist/TimeAgo/useTimeAgo.js +7 -16
  118. package/dist/TimeAgo/useTimeAgo.js.map +1 -1
  119. package/dist/TimeAgo/useTimeout.js +0 -2
  120. package/dist/TimeAgo/useTimeout.js.map +1 -1
  121. package/dist/Wizard/Wizard.d.ts +4 -0
  122. package/dist/Wizard/Wizard.js +46 -86
  123. package/dist/Wizard/Wizard.js.map +1 -1
  124. package/dist/Wizard/WizardActions/WizardActions.js +26 -81
  125. package/dist/Wizard/WizardActions/WizardActions.js.map +1 -1
  126. package/dist/Wizard/WizardActions/index.js +0 -2
  127. package/dist/Wizard/WizardActions/index.js.map +1 -1
  128. package/dist/Wizard/WizardActions/styles.js +0 -2
  129. package/dist/Wizard/WizardActions/styles.js.map +1 -1
  130. package/dist/Wizard/WizardContainer/WizardContainer.js +5 -35
  131. package/dist/Wizard/WizardContainer/WizardContainer.js.map +1 -1
  132. package/dist/Wizard/WizardContainer/index.js +0 -2
  133. package/dist/Wizard/WizardContainer/index.js.map +1 -1
  134. package/dist/Wizard/WizardContainer/styles.js +0 -2
  135. package/dist/Wizard/WizardContainer/styles.js.map +1 -1
  136. package/dist/Wizard/WizardContent/LoadingContainer.js +2 -25
  137. package/dist/Wizard/WizardContent/LoadingContainer.js.map +1 -1
  138. package/dist/Wizard/WizardContent/WizardContent.d.ts +4 -0
  139. package/dist/Wizard/WizardContent/WizardContent.js +84 -59
  140. package/dist/Wizard/WizardContent/WizardContent.js.map +1 -1
  141. package/dist/Wizard/WizardContent/index.js +0 -2
  142. package/dist/Wizard/WizardContent/index.js.map +1 -1
  143. package/dist/Wizard/WizardContent/styles.js +16 -4
  144. package/dist/Wizard/WizardContent/styles.js.map +1 -1
  145. package/dist/Wizard/WizardContext/WizardContext.d.ts +4 -6
  146. package/dist/Wizard/WizardContext/WizardContext.js +0 -4
  147. package/dist/Wizard/WizardContext/WizardContext.js.map +1 -1
  148. package/dist/Wizard/WizardContext/WizardContextProvider.js +1 -10
  149. package/dist/Wizard/WizardContext/WizardContextProvider.js.map +1 -1
  150. package/dist/Wizard/WizardContext/index.js +0 -3
  151. package/dist/Wizard/WizardContext/index.js.map +1 -1
  152. package/dist/Wizard/WizardTitle/WizardTitle.js +29 -56
  153. package/dist/Wizard/WizardTitle/WizardTitle.js.map +1 -1
  154. package/dist/Wizard/WizardTitle/index.js +0 -2
  155. package/dist/Wizard/WizardTitle/index.js.map +1 -1
  156. package/dist/Wizard/WizardTitle/styles.js +0 -2
  157. package/dist/Wizard/WizardTitle/styles.js.map +1 -1
  158. package/dist/Wizard/index.js +0 -8
  159. package/dist/Wizard/index.js.map +1 -1
  160. package/dist/Wizard/styles.js +0 -2
  161. package/dist/Wizard/styles.js.map +1 -1
  162. package/dist/index.js +0 -23
  163. package/dist/index.js.map +1 -1
  164. package/dist/legacy/ColorPicker/ColorPicker.js +26 -51
  165. package/dist/legacy/ColorPicker/ColorPicker.js.map +1 -1
  166. package/dist/legacy/ColorPicker/Fields/Fields.js +17 -27
  167. package/dist/legacy/ColorPicker/Fields/Fields.js.map +1 -1
  168. package/dist/legacy/ColorPicker/Fields/index.js.map +1 -1
  169. package/dist/legacy/ColorPicker/Fields/styles.js.map +1 -1
  170. package/dist/legacy/ColorPicker/Picker/Picker.js +7 -7
  171. package/dist/legacy/ColorPicker/Picker/Picker.js.map +1 -1
  172. package/dist/legacy/ColorPicker/Picker/index.js.map +1 -1
  173. package/dist/legacy/ColorPicker/Picker/styles.js.map +1 -1
  174. package/dist/legacy/ColorPicker/PresetColors/PresetColors.js +2 -7
  175. package/dist/legacy/ColorPicker/PresetColors/PresetColors.js.map +1 -1
  176. package/dist/legacy/ColorPicker/PresetColors/index.js.map +1 -1
  177. package/dist/legacy/ColorPicker/PresetColors/styles.js.map +1 -1
  178. package/dist/legacy/ColorPicker/index.js.map +1 -1
  179. package/dist/legacy/ColorPicker/styles.js +0 -1
  180. package/dist/legacy/ColorPicker/styles.js.map +1 -1
  181. package/dist/legacy/Drawer/Drawer.js +11 -30
  182. package/dist/legacy/Drawer/Drawer.js.map +1 -1
  183. package/dist/legacy/Drawer/index.js.map +1 -1
  184. package/dist/legacy/Drawer/styles.js +0 -2
  185. package/dist/legacy/Drawer/styles.js.map +1 -1
  186. package/dist/legacy/ImageCarousel/ImageCarousel.js +46 -120
  187. package/dist/legacy/ImageCarousel/ImageCarousel.js.map +1 -1
  188. package/dist/legacy/ImageCarousel/index.js.map +1 -1
  189. package/dist/legacy/ImageCarousel/styles.js +0 -3
  190. package/dist/legacy/ImageCarousel/styles.js.map +1 -1
  191. package/dist/legacy/InlineEditor/InlineEditor.js +26 -55
  192. package/dist/legacy/InlineEditor/InlineEditor.js.map +1 -1
  193. package/dist/legacy/InlineEditor/index.js.map +1 -1
  194. package/dist/legacy/InlineEditor/styles.js +0 -5
  195. package/dist/legacy/InlineEditor/styles.js.map +1 -1
  196. package/dist/legacy/NavigationAnchors/NavigationAnchors.js +44 -82
  197. package/dist/legacy/NavigationAnchors/NavigationAnchors.js.map +1 -1
  198. package/dist/legacy/NavigationAnchors/NavigationOption.js +0 -5
  199. package/dist/legacy/NavigationAnchors/NavigationOption.js.map +1 -1
  200. package/dist/legacy/NavigationAnchors/index.js.map +1 -1
  201. package/dist/legacy/NavigationAnchors/styles.js +0 -1
  202. package/dist/legacy/NavigationAnchors/styles.js.map +1 -1
  203. package/dist/legacy/NotificationPanel/EmptyStatePanel/EmptyStatePanel.js +5 -16
  204. package/dist/legacy/NotificationPanel/EmptyStatePanel/EmptyStatePanel.js.map +1 -1
  205. package/dist/legacy/NotificationPanel/EmptyStatePanel/index.js.map +1 -1
  206. package/dist/legacy/NotificationPanel/EmptyStatePanel/styles.js +0 -1
  207. package/dist/legacy/NotificationPanel/EmptyStatePanel/styles.js.map +1 -1
  208. package/dist/legacy/NotificationPanel/Notification/Notification.js +12 -44
  209. package/dist/legacy/NotificationPanel/Notification/Notification.js.map +1 -1
  210. package/dist/legacy/NotificationPanel/Notification/index.js.map +1 -1
  211. package/dist/legacy/NotificationPanel/Notification/styles.js +0 -5
  212. package/dist/legacy/NotificationPanel/Notification/styles.js.map +1 -1
  213. package/dist/legacy/NotificationPanel/NotificationPanel.js +23 -61
  214. package/dist/legacy/NotificationPanel/NotificationPanel.js.map +1 -1
  215. package/dist/legacy/NotificationPanel/NotificationsIndicator/NotificationsIndicator.js +4 -17
  216. package/dist/legacy/NotificationPanel/NotificationsIndicator/NotificationsIndicator.js.map +1 -1
  217. package/dist/legacy/NotificationPanel/NotificationsIndicator/index.js.map +1 -1
  218. package/dist/legacy/NotificationPanel/NotificationsIndicator/styles.js +0 -1
  219. package/dist/legacy/NotificationPanel/NotificationsIndicator/styles.js.map +1 -1
  220. package/dist/legacy/NotificationPanel/index.js.map +1 -1
  221. package/dist/legacy/NotificationPanel/styles.js +0 -1
  222. package/dist/legacy/NotificationPanel/styles.js.map +1 -1
  223. package/dist/legacy/StepNavigation/DefaultNavigation/DefaultNavigation.js +16 -27
  224. package/dist/legacy/StepNavigation/DefaultNavigation/DefaultNavigation.js.map +1 -1
  225. package/dist/legacy/StepNavigation/DefaultNavigation/Step/Step.js +10 -29
  226. package/dist/legacy/StepNavigation/DefaultNavigation/Step/Step.js.map +1 -1
  227. package/dist/legacy/StepNavigation/DefaultNavigation/Step/index.js.map +1 -1
  228. package/dist/legacy/StepNavigation/DefaultNavigation/Step/styles.js +0 -1
  229. package/dist/legacy/StepNavigation/DefaultNavigation/Step/styles.js.map +1 -1
  230. package/dist/legacy/StepNavigation/DefaultNavigation/index.js.map +1 -1
  231. package/dist/legacy/StepNavigation/DefaultNavigation/styles.js +0 -1
  232. package/dist/legacy/StepNavigation/DefaultNavigation/styles.js.map +1 -1
  233. package/dist/legacy/StepNavigation/DefaultNavigation/utils.js +0 -2
  234. package/dist/legacy/StepNavigation/DefaultNavigation/utils.js.map +1 -1
  235. package/dist/legacy/StepNavigation/SimpleNavigation/Dot/Dot.js +7 -21
  236. package/dist/legacy/StepNavigation/SimpleNavigation/Dot/Dot.js.map +1 -1
  237. package/dist/legacy/StepNavigation/SimpleNavigation/Dot/index.js.map +1 -1
  238. package/dist/legacy/StepNavigation/SimpleNavigation/Dot/styles.js.map +1 -1
  239. package/dist/legacy/StepNavigation/SimpleNavigation/SimpleNavigation.js +15 -26
  240. package/dist/legacy/StepNavigation/SimpleNavigation/SimpleNavigation.js.map +1 -1
  241. package/dist/legacy/StepNavigation/SimpleNavigation/index.js.map +1 -1
  242. package/dist/legacy/StepNavigation/SimpleNavigation/styles.js +0 -1
  243. package/dist/legacy/StepNavigation/SimpleNavigation/styles.js.map +1 -1
  244. package/dist/legacy/StepNavigation/SimpleNavigation/utils.js +0 -6
  245. package/dist/legacy/StepNavigation/SimpleNavigation/utils.js.map +1 -1
  246. package/dist/legacy/StepNavigation/StepNavigation.d.ts +12 -10
  247. package/dist/legacy/StepNavigation/StepNavigation.js +40 -78
  248. package/dist/legacy/StepNavigation/StepNavigation.js.map +1 -1
  249. package/dist/legacy/StepNavigation/index.js.map +1 -1
  250. package/dist/legacy/StepNavigation/styles.js +0 -1
  251. package/dist/legacy/StepNavigation/styles.js.map +1 -1
  252. package/dist/legacy/StepNavigation/utils.js.map +1 -1
  253. package/dist/legacy/TimeAgo/TimeAgo.js +14 -27
  254. package/dist/legacy/TimeAgo/TimeAgo.js.map +1 -1
  255. package/dist/legacy/TimeAgo/formatUtils.js +16 -18
  256. package/dist/legacy/TimeAgo/formatUtils.js.map +1 -1
  257. package/dist/legacy/TimeAgo/index.js.map +1 -1
  258. package/dist/legacy/TimeAgo/styles.js.map +1 -1
  259. package/dist/legacy/TimeAgo/useTimeAgo.js +8 -11
  260. package/dist/legacy/TimeAgo/useTimeAgo.js.map +1 -1
  261. package/dist/legacy/TimeAgo/useTimeout.js.map +1 -1
  262. package/dist/legacy/Wizard/Wizard.d.ts +4 -0
  263. package/dist/legacy/Wizard/Wizard.js +46 -60
  264. package/dist/legacy/Wizard/Wizard.js.map +1 -1
  265. package/dist/legacy/Wizard/WizardActions/WizardActions.js +26 -55
  266. package/dist/legacy/Wizard/WizardActions/WizardActions.js.map +1 -1
  267. package/dist/legacy/Wizard/WizardActions/index.js.map +1 -1
  268. package/dist/legacy/Wizard/WizardActions/styles.js +0 -1
  269. package/dist/legacy/Wizard/WizardActions/styles.js.map +1 -1
  270. package/dist/legacy/Wizard/WizardContainer/WizardContainer.js +5 -17
  271. package/dist/legacy/Wizard/WizardContainer/WizardContainer.js.map +1 -1
  272. package/dist/legacy/Wizard/WizardContainer/index.js.map +1 -1
  273. package/dist/legacy/Wizard/WizardContainer/styles.js +0 -1
  274. package/dist/legacy/Wizard/WizardContainer/styles.js.map +1 -1
  275. package/dist/legacy/Wizard/WizardContent/LoadingContainer.js +2 -8
  276. package/dist/legacy/Wizard/WizardContent/LoadingContainer.js.map +1 -1
  277. package/dist/legacy/Wizard/WizardContent/WizardContent.d.ts +4 -0
  278. package/dist/legacy/Wizard/WizardContent/WizardContent.js +85 -32
  279. package/dist/legacy/Wizard/WizardContent/WizardContent.js.map +1 -1
  280. package/dist/legacy/Wizard/WizardContent/index.js.map +1 -1
  281. package/dist/legacy/Wizard/WizardContent/styles.js +16 -3
  282. package/dist/legacy/Wizard/WizardContent/styles.js.map +1 -1
  283. package/dist/legacy/Wizard/WizardContext/WizardContext.d.ts +4 -6
  284. package/dist/legacy/Wizard/WizardContext/WizardContext.js +0 -2
  285. package/dist/legacy/Wizard/WizardContext/WizardContext.js.map +1 -1
  286. package/dist/legacy/Wizard/WizardContext/WizardContextProvider.js +1 -5
  287. package/dist/legacy/Wizard/WizardContext/WizardContextProvider.js.map +1 -1
  288. package/dist/legacy/Wizard/WizardContext/index.js.map +1 -1
  289. package/dist/legacy/Wizard/WizardTitle/WizardTitle.js +29 -40
  290. package/dist/legacy/Wizard/WizardTitle/WizardTitle.js.map +1 -1
  291. package/dist/legacy/Wizard/WizardTitle/index.js.map +1 -1
  292. package/dist/legacy/Wizard/WizardTitle/styles.js +0 -1
  293. package/dist/legacy/Wizard/WizardTitle/styles.js.map +1 -1
  294. package/dist/legacy/Wizard/index.js.map +1 -1
  295. package/dist/legacy/Wizard/styles.js +0 -1
  296. package/dist/legacy/Wizard/styles.js.map +1 -1
  297. package/dist/legacy/index.js.map +1 -1
  298. package/dist/modern/ColorPicker/ColorPicker.js +1 -25
  299. package/dist/modern/ColorPicker/ColorPicker.js.map +1 -1
  300. package/dist/modern/ColorPicker/Fields/Fields.js +3 -10
  301. package/dist/modern/ColorPicker/Fields/Fields.js.map +1 -1
  302. package/dist/modern/ColorPicker/Fields/index.js.map +1 -1
  303. package/dist/modern/ColorPicker/Fields/styles.js.map +1 -1
  304. package/dist/modern/ColorPicker/Picker/Picker.js +3 -3
  305. package/dist/modern/ColorPicker/Picker/Picker.js.map +1 -1
  306. package/dist/modern/ColorPicker/Picker/index.js.map +1 -1
  307. package/dist/modern/ColorPicker/Picker/styles.js.map +1 -1
  308. package/dist/modern/ColorPicker/PresetColors/PresetColors.js +0 -5
  309. package/dist/modern/ColorPicker/PresetColors/PresetColors.js.map +1 -1
  310. package/dist/modern/ColorPicker/PresetColors/index.js.map +1 -1
  311. package/dist/modern/ColorPicker/PresetColors/styles.js.map +1 -1
  312. package/dist/modern/ColorPicker/index.js.map +1 -1
  313. package/dist/modern/ColorPicker/styles.js +0 -1
  314. package/dist/modern/ColorPicker/styles.js.map +1 -1
  315. package/dist/modern/Drawer/Drawer.js +11 -30
  316. package/dist/modern/Drawer/Drawer.js.map +1 -1
  317. package/dist/modern/Drawer/index.js.map +1 -1
  318. package/dist/modern/Drawer/styles.js +0 -2
  319. package/dist/modern/Drawer/styles.js.map +1 -1
  320. package/dist/modern/ImageCarousel/ImageCarousel.js +18 -83
  321. package/dist/modern/ImageCarousel/ImageCarousel.js.map +1 -1
  322. package/dist/modern/ImageCarousel/index.js.map +1 -1
  323. package/dist/modern/ImageCarousel/styles.js +0 -1
  324. package/dist/modern/ImageCarousel/styles.js.map +1 -1
  325. package/dist/modern/InlineEditor/InlineEditor.js +16 -43
  326. package/dist/modern/InlineEditor/InlineEditor.js.map +1 -1
  327. package/dist/modern/InlineEditor/index.js.map +1 -1
  328. package/dist/modern/InlineEditor/styles.js +0 -5
  329. package/dist/modern/InlineEditor/styles.js.map +1 -1
  330. package/dist/modern/NavigationAnchors/NavigationAnchors.js +40 -74
  331. package/dist/modern/NavigationAnchors/NavigationAnchors.js.map +1 -1
  332. package/dist/modern/NavigationAnchors/NavigationOption.js +0 -6
  333. package/dist/modern/NavigationAnchors/NavigationOption.js.map +1 -1
  334. package/dist/modern/NavigationAnchors/index.js.map +1 -1
  335. package/dist/modern/NavigationAnchors/styles.js +0 -1
  336. package/dist/modern/NavigationAnchors/styles.js.map +1 -1
  337. package/dist/modern/NotificationPanel/EmptyStatePanel/EmptyStatePanel.js +0 -11
  338. package/dist/modern/NotificationPanel/EmptyStatePanel/EmptyStatePanel.js.map +1 -1
  339. package/dist/modern/NotificationPanel/EmptyStatePanel/index.js.map +1 -1
  340. package/dist/modern/NotificationPanel/EmptyStatePanel/styles.js +0 -1
  341. package/dist/modern/NotificationPanel/EmptyStatePanel/styles.js.map +1 -1
  342. package/dist/modern/NotificationPanel/Notification/Notification.js +2 -33
  343. package/dist/modern/NotificationPanel/Notification/Notification.js.map +1 -1
  344. package/dist/modern/NotificationPanel/Notification/index.js.map +1 -1
  345. package/dist/modern/NotificationPanel/Notification/styles.js +0 -5
  346. package/dist/modern/NotificationPanel/Notification/styles.js.map +1 -1
  347. package/dist/modern/NotificationPanel/NotificationPanel.js +16 -50
  348. package/dist/modern/NotificationPanel/NotificationPanel.js.map +1 -1
  349. package/dist/modern/NotificationPanel/NotificationsIndicator/NotificationsIndicator.js +6 -19
  350. package/dist/modern/NotificationPanel/NotificationsIndicator/NotificationsIndicator.js.map +1 -1
  351. package/dist/modern/NotificationPanel/NotificationsIndicator/index.js.map +1 -1
  352. package/dist/modern/NotificationPanel/NotificationsIndicator/styles.js +0 -1
  353. package/dist/modern/NotificationPanel/NotificationsIndicator/styles.js.map +1 -1
  354. package/dist/modern/NotificationPanel/index.js.map +1 -1
  355. package/dist/modern/NotificationPanel/styles.js +0 -1
  356. package/dist/modern/NotificationPanel/styles.js.map +1 -1
  357. package/dist/modern/StepNavigation/DefaultNavigation/DefaultNavigation.js +14 -23
  358. package/dist/modern/StepNavigation/DefaultNavigation/DefaultNavigation.js.map +1 -1
  359. package/dist/modern/StepNavigation/DefaultNavigation/Step/Step.js +1 -20
  360. package/dist/modern/StepNavigation/DefaultNavigation/Step/Step.js.map +1 -1
  361. package/dist/modern/StepNavigation/DefaultNavigation/Step/index.js.map +1 -1
  362. package/dist/modern/StepNavigation/DefaultNavigation/Step/styles.js +0 -1
  363. package/dist/modern/StepNavigation/DefaultNavigation/Step/styles.js.map +1 -1
  364. package/dist/modern/StepNavigation/DefaultNavigation/index.js.map +1 -1
  365. package/dist/modern/StepNavigation/DefaultNavigation/styles.js +0 -1
  366. package/dist/modern/StepNavigation/DefaultNavigation/styles.js.map +1 -1
  367. package/dist/modern/StepNavigation/DefaultNavigation/utils.js +0 -2
  368. package/dist/modern/StepNavigation/DefaultNavigation/utils.js.map +1 -1
  369. package/dist/modern/StepNavigation/SimpleNavigation/Dot/Dot.js +1 -15
  370. package/dist/modern/StepNavigation/SimpleNavigation/Dot/Dot.js.map +1 -1
  371. package/dist/modern/StepNavigation/SimpleNavigation/Dot/index.js.map +1 -1
  372. package/dist/modern/StepNavigation/SimpleNavigation/Dot/styles.js.map +1 -1
  373. package/dist/modern/StepNavigation/SimpleNavigation/SimpleNavigation.js +14 -23
  374. package/dist/modern/StepNavigation/SimpleNavigation/SimpleNavigation.js.map +1 -1
  375. package/dist/modern/StepNavigation/SimpleNavigation/index.js.map +1 -1
  376. package/dist/modern/StepNavigation/SimpleNavigation/styles.js +0 -1
  377. package/dist/modern/StepNavigation/SimpleNavigation/styles.js.map +1 -1
  378. package/dist/modern/StepNavigation/SimpleNavigation/utils.js +0 -6
  379. package/dist/modern/StepNavigation/SimpleNavigation/utils.js.map +1 -1
  380. package/dist/modern/StepNavigation/StepNavigation.d.ts +12 -10
  381. package/dist/modern/StepNavigation/StepNavigation.js +25 -62
  382. package/dist/modern/StepNavigation/StepNavigation.js.map +1 -1
  383. package/dist/modern/StepNavigation/index.js.map +1 -1
  384. package/dist/modern/StepNavigation/styles.js +0 -1
  385. package/dist/modern/StepNavigation/styles.js.map +1 -1
  386. package/dist/modern/StepNavigation/utils.js.map +1 -1
  387. package/dist/modern/TimeAgo/TimeAgo.js +11 -24
  388. package/dist/modern/TimeAgo/TimeAgo.js.map +1 -1
  389. package/dist/modern/TimeAgo/formatUtils.js +16 -18
  390. package/dist/modern/TimeAgo/formatUtils.js.map +1 -1
  391. package/dist/modern/TimeAgo/index.js.map +1 -1
  392. package/dist/modern/TimeAgo/styles.js.map +1 -1
  393. package/dist/modern/TimeAgo/useTimeAgo.js +1 -3
  394. package/dist/modern/TimeAgo/useTimeAgo.js.map +1 -1
  395. package/dist/modern/TimeAgo/useTimeout.js.map +1 -1
  396. package/dist/modern/Wizard/Wizard.d.ts +4 -0
  397. package/dist/modern/Wizard/Wizard.js +33 -49
  398. package/dist/modern/Wizard/Wizard.js.map +1 -1
  399. package/dist/modern/Wizard/WizardActions/WizardActions.js +0 -24
  400. package/dist/modern/Wizard/WizardActions/WizardActions.js.map +1 -1
  401. package/dist/modern/Wizard/WizardActions/index.js.map +1 -1
  402. package/dist/modern/Wizard/WizardActions/styles.js +0 -1
  403. package/dist/modern/Wizard/WizardActions/styles.js.map +1 -1
  404. package/dist/modern/Wizard/WizardContainer/WizardContainer.js +7 -19
  405. package/dist/modern/Wizard/WizardContainer/WizardContainer.js.map +1 -1
  406. package/dist/modern/Wizard/WizardContainer/index.js.map +1 -1
  407. package/dist/modern/Wizard/WizardContainer/styles.js +0 -1
  408. package/dist/modern/Wizard/WizardContainer/styles.js.map +1 -1
  409. package/dist/modern/Wizard/WizardContent/LoadingContainer.js +4 -10
  410. package/dist/modern/Wizard/WizardContent/LoadingContainer.js.map +1 -1
  411. package/dist/modern/Wizard/WizardContent/WizardContent.d.ts +4 -0
  412. package/dist/modern/Wizard/WizardContent/WizardContent.js +65 -22
  413. package/dist/modern/Wizard/WizardContent/WizardContent.js.map +1 -1
  414. package/dist/modern/Wizard/WizardContent/index.js.map +1 -1
  415. package/dist/modern/Wizard/WizardContent/styles.js +16 -3
  416. package/dist/modern/Wizard/WizardContent/styles.js.map +1 -1
  417. package/dist/modern/Wizard/WizardContext/WizardContext.d.ts +4 -6
  418. package/dist/modern/Wizard/WizardContext/WizardContext.js +0 -2
  419. package/dist/modern/Wizard/WizardContext/WizardContext.js.map +1 -1
  420. package/dist/modern/Wizard/WizardContext/WizardContextProvider.js +0 -4
  421. package/dist/modern/Wizard/WizardContext/WizardContextProvider.js.map +1 -1
  422. package/dist/modern/Wizard/WizardContext/index.js.map +1 -1
  423. package/dist/modern/Wizard/WizardTitle/WizardTitle.js +15 -24
  424. package/dist/modern/Wizard/WizardTitle/WizardTitle.js.map +1 -1
  425. package/dist/modern/Wizard/WizardTitle/index.js.map +1 -1
  426. package/dist/modern/Wizard/WizardTitle/styles.js +0 -1
  427. package/dist/modern/Wizard/WizardTitle/styles.js.map +1 -1
  428. package/dist/modern/Wizard/index.js.map +1 -1
  429. package/dist/modern/Wizard/styles.js +0 -1
  430. package/dist/modern/Wizard/styles.js.map +1 -1
  431. package/dist/modern/index.js.map +1 -1
  432. package/package.json +6 -5
@@ -9,18 +9,14 @@ import styles from "./styles";
9
9
  import { jsx as _jsx } from "react/jsx-runtime";
10
10
  import { jsxs as _jsxs } from "react/jsx-runtime";
11
11
  dayjs.extend(relativeTime);
12
-
13
12
  const hideTooltip = evt => evt.target.scrollHeight <= evt.target.clientHeight;
14
-
15
13
  const wrapperTooltip = (Component, label) => {
16
- const ComponentFunction = () => Component; // override thr withTooltip styles as we want to use the styles of the component
17
-
18
-
14
+ const ComponentFunction = () => Component;
15
+ // override thr withTooltip styles as we want to use the styles of the component
19
16
  return withTooltip(ComponentFunction, label, "top", hideTooltip, {
20
17
  style: {}
21
18
  });
22
19
  };
23
-
24
20
  const Notification = ({
25
21
  classes,
26
22
  className,
@@ -38,17 +34,13 @@ const Notification = ({
38
34
  if (!isRead) {
39
35
  return dayjs(date).fromNow();
40
36
  }
41
-
42
37
  const d = dayjs(date);
43
38
  let format = "D MMMM YYYY, h:mm A";
44
-
45
39
  if (d.isSame(Date.now(), "week")) {
46
40
  format = "ddd, h:mm A";
47
41
  }
48
-
49
42
  return d.format(format);
50
43
  };
51
-
52
44
  const NotificationWithTooltip = wrapperTooltip( /*#__PURE__*/_jsx("div", {
53
45
  className: classes.messageContainer,
54
46
  children: /*#__PURE__*/_jsx(HvTypography, {
@@ -84,7 +76,6 @@ const Notification = ({
84
76
  })]
85
77
  });
86
78
  };
87
-
88
79
  process.env.NODE_ENV !== "production" ? Notification.propTypes = {
89
80
  /**
90
81
  * A Jss Object used to override or extend the component styles.
@@ -94,113 +85,91 @@ process.env.NODE_ENV !== "production" ? Notification.propTypes = {
94
85
  * Styles applied to the component root of the accordion.
95
86
  */
96
87
  root: PropTypes.string,
97
-
98
88
  /**
99
89
  * Styles applied to the notification wrapper.
100
90
  */
101
91
  notificationWrapper: PropTypes.string,
102
-
103
92
  /**
104
93
  * Styles applied to the notification wrapper when the actions dropdown is open.
105
94
  */
106
95
  notificationWrapperDropdown: PropTypes.string,
107
-
108
96
  /**
109
97
  * Styles applied to the notification icon container.
110
98
  */
111
99
  iconContainer: PropTypes.string,
112
-
113
100
  /**
114
101
  * Styles applied to the notification message container.
115
102
  */
116
103
  messageContainer: PropTypes.string,
117
-
118
104
  /**
119
105
  * Styles applied to the notification time container.
120
106
  */
121
107
  timeContainer: PropTypes.string,
122
-
123
108
  /**
124
109
  * Styles applied to the notification bullet.
125
110
  */
126
111
  bullet: PropTypes.string,
127
-
128
112
  /**
129
113
  * Styles applied to the content when it is hidden.
130
114
  */
131
115
  hide: PropTypes.string,
132
-
133
116
  /**
134
117
  * Styles applied to the notification time indicator.
135
118
  */
136
119
  time: PropTypes.string,
137
-
138
120
  /**
139
121
  * Styles applied to the notification is read.
140
122
  */
141
123
  read: PropTypes.string,
142
-
143
124
  /**
144
125
  * Styles applied when the notification dropdown is open.
145
126
  */
146
127
  notificationDropdownOpen: PropTypes.string,
147
-
148
128
  /**
149
129
  * Styles applied to the notification message actions dropdown.
150
130
  */
151
131
  notificationActionWrapper: PropTypes.string,
152
-
153
132
  /**
154
133
  * Styles applied to the notification when clickable
155
134
  */
156
135
  clickable: PropTypes.string
157
136
  }).isRequired,
158
-
159
137
  /**
160
138
  * Class names to be applied to the accordion.
161
139
  */
162
140
  className: PropTypes.string,
163
-
164
141
  /**
165
142
  * Notification id
166
143
  */
167
144
  notificationId: PropTypes.string,
168
-
169
145
  /**
170
146
  * Title of the notification
171
147
  */
172
148
  title: PropTypes.string.isRequired,
173
-
174
149
  /**
175
150
  * 'true' if the notification has been read or 'false' if it has not been read
176
151
  */
177
152
  isRead: PropTypes.bool.isRequired,
178
-
179
153
  /**
180
154
  * date the notification was created
181
155
  */
182
156
  date: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.object]).isRequired,
183
-
184
157
  /**
185
158
  * renderable icon that denotes the status of the notification
186
159
  */
187
160
  icon: PropTypes.element,
188
-
189
161
  /**
190
162
  * Click action applied to the notification
191
163
  */
192
164
  onClick: PropTypes.func,
193
-
194
165
  /**
195
166
  * On Key Press action applied to the notification
196
167
  */
197
168
  onKeyPress: PropTypes.func,
198
-
199
169
  /**
200
170
  * Actions to be executed by the notification, available in the dropdown menu
201
171
  */
202
172
  rightContainer: PropTypes.node,
203
-
204
173
  /**
205
174
  * Denotes index of clicked notification
206
175
  */
@@ -1 +1 @@
1
- {"version":3,"file":"Notification.js","names":["React","PropTypes","clsx","dayjs","relativeTime","HvTypography","withTooltip","withStyles","styles","extend","hideTooltip","evt","target","scrollHeight","clientHeight","wrapperTooltip","Component","label","ComponentFunction","style","Notification","classes","className","notificationId","title","isRead","icon","date","onClick","onKeyPress","rightContainer","isHighlighted","getTime","fromNow","d","format","isSame","Date","now","NotificationWithTooltip","messageContainer","event","root","notificationWrapperDropdown","read","notificationWrapper","notificationDropdownOpen","clickable","iconContainer","timeContainer","bullet","hide","time","notificationActionWrapper","propTypes","shape","string","isRequired","bool","oneOfType","number","object","element","func","node","name"],"sources":["../../../../src/NotificationPanel/Notification/Notification.js"],"sourcesContent":["import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport clsx from \"clsx\";\nimport dayjs from \"dayjs\";\nimport relativeTime from \"dayjs/plugin/relativeTime\";\nimport { HvTypography, withTooltip } from \"@hitachivantara/uikit-react-core\";\nimport { withStyles } from \"@mui/styles\";\nimport styles from \"./styles\";\n\ndayjs.extend(relativeTime);\n\nconst hideTooltip = (evt) => evt.target.scrollHeight <= evt.target.clientHeight;\n\nconst wrapperTooltip = (Component, label) => {\n const ComponentFunction = () => Component;\n // override thr withTooltip styles as we want to use the styles of the component\n return withTooltip(ComponentFunction, label, \"top\", hideTooltip, { style: {} });\n};\n\nconst Notification = ({\n classes,\n className,\n notificationId,\n title,\n isRead,\n icon,\n date,\n onClick,\n onKeyPress,\n rightContainer,\n isHighlighted,\n}) => {\n const getTime = () => {\n if (!isRead) {\n return dayjs(date).fromNow();\n }\n\n const d = dayjs(date);\n let format = \"D MMMM YYYY, h:mm A\";\n\n if (d.isSame(Date.now(), \"week\")) {\n format = \"ddd, h:mm A\";\n }\n\n return d.format(format);\n };\n\n const NotificationWithTooltip = wrapperTooltip(\n <div className={classes.messageContainer}>\n <HvTypography variant={isRead ? \"normalText\" : \"highlightText\"}>{title}</HvTypography>\n </div>,\n title\n );\n\n return (\n <div\n onClick={(event) => onClick?.(event, notificationId)}\n onKeyPress={(event) => onKeyPress?.(event, notificationId)}\n className={clsx(className, classes.root, {\n [classes.notificationWrapperDropdown]: isHighlighted,\n [classes.read]: isRead,\n })}\n role=\"button\"\n tabIndex={0}\n >\n <div\n className={clsx(classes.notificationWrapper, {\n [classes.notificationDropdownOpen]: isHighlighted,\n [classes.clickable]: !!onClick,\n })}\n >\n <div className={classes.iconContainer}>{icon}</div>\n <div>\n <NotificationWithTooltip />\n <div className={classes.timeContainer}>\n <div\n className={clsx(classes.bullet, {\n [classes.hide]: isRead,\n })}\n />\n <div className={classes.time}>{getTime()}</div>\n </div>\n </div>\n </div>\n <div className={classes.notificationActionWrapper}>{rightContainer}</div>\n </div>\n );\n};\n\nNotification.propTypes = {\n /**\n * A Jss Object used to override or extend the component styles.\n */\n classes: PropTypes.shape({\n /**\n * Styles applied to the component root of the accordion.\n */\n root: PropTypes.string,\n /**\n * Styles applied to the notification wrapper.\n */\n notificationWrapper: PropTypes.string,\n\n /**\n * Styles applied to the notification wrapper when the actions dropdown is open.\n */\n notificationWrapperDropdown: PropTypes.string,\n\n /**\n * Styles applied to the notification icon container.\n */\n iconContainer: PropTypes.string,\n\n /**\n * Styles applied to the notification message container.\n */\n messageContainer: PropTypes.string,\n\n /**\n * Styles applied to the notification time container.\n */\n timeContainer: PropTypes.string,\n\n /**\n * Styles applied to the notification bullet.\n */\n bullet: PropTypes.string,\n\n /**\n * Styles applied to the content when it is hidden.\n */\n hide: PropTypes.string,\n\n /**\n * Styles applied to the notification time indicator.\n */\n time: PropTypes.string,\n /**\n * Styles applied to the notification is read.\n */\n read: PropTypes.string,\n /**\n * Styles applied when the notification dropdown is open.\n */\n notificationDropdownOpen: PropTypes.string,\n\n /**\n * Styles applied to the notification message actions dropdown.\n */\n notificationActionWrapper: PropTypes.string,\n /**\n * Styles applied to the notification when clickable\n */\n clickable: PropTypes.string,\n }).isRequired,\n\n /**\n * Class names to be applied to the accordion.\n */\n className: PropTypes.string,\n /**\n * Notification id\n */\n notificationId: PropTypes.string,\n /**\n * Title of the notification\n */\n title: PropTypes.string.isRequired,\n /**\n * 'true' if the notification has been read or 'false' if it has not been read\n */\n isRead: PropTypes.bool.isRequired,\n /**\n * date the notification was created\n */\n date: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.object]).isRequired,\n /**\n * renderable icon that denotes the status of the notification\n */\n icon: PropTypes.element,\n /**\n * Click action applied to the notification\n */\n onClick: PropTypes.func,\n /**\n * On Key Press action applied to the notification\n */\n onKeyPress: PropTypes.func,\n /**\n * Actions to be executed by the notification, available in the dropdown menu\n */\n rightContainer: PropTypes.node,\n /**\n * Denotes index of clicked notification\n */\n isHighlighted: PropTypes.bool,\n};\n\nexport default withStyles(styles, { name: \"HvNotificationPanelNotification\" })(Notification);\n"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,IAAP,MAAiB,MAAjB;AAC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;AACA;EACE9B,IAAI,EAAE1B,SAAS,CAAC0D,SAAV,CAAoB,CAAC1D,SAAS,CAACuD,MAAX,EAAmBvD,SAAS,CAAC2D,MAA7B,EAAqC3D,SAAS,CAAC4D,MAA/C,CAApB,EAA4EJ,UAtF3D;;EAuFvB;AACF;AACA;EACE/B,IAAI,EAAEzB,SAAS,CAAC6D,OA1FO;;EA2FvB;AACF;AACA;EACElC,OAAO,EAAE3B,SAAS,CAAC8D,IA9FI;;EA+FvB;AACF;AACA;EACElC,UAAU,EAAE5B,SAAS,CAAC8D,IAlGC;;EAmGvB;AACF;AACA;EACEjC,cAAc,EAAE7B,SAAS,CAAC+D,IAtGH;;EAuGvB;AACF;AACA;EACEjC,aAAa,EAAE9B,SAAS,CAACyD;AA1GF,CAAzB;AA6GA,eAAenD,UAAU,CAACC,MAAD,EAAS;EAAEyD,IAAI,EAAE;AAAR,CAAT,CAAV,CAAgE7C,YAAhE,CAAf"}
1
+ {"version":3,"file":"Notification.js","names":["React","PropTypes","clsx","dayjs","relativeTime","HvTypography","withTooltip","withStyles","styles","extend","hideTooltip","evt","target","scrollHeight","clientHeight","wrapperTooltip","Component","label","ComponentFunction","style","Notification","classes","className","notificationId","title","isRead","icon","date","onClick","onKeyPress","rightContainer","isHighlighted","getTime","fromNow","d","format","isSame","Date","now","NotificationWithTooltip","messageContainer","event","root","notificationWrapperDropdown","read","notificationWrapper","notificationDropdownOpen","clickable","iconContainer","timeContainer","bullet","hide","time","notificationActionWrapper","propTypes","shape","string","isRequired","bool","oneOfType","number","object","element","func","node","name"],"sources":["../../../../src/NotificationPanel/Notification/Notification.js"],"sourcesContent":["import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport clsx from \"clsx\";\nimport dayjs from \"dayjs\";\nimport relativeTime from \"dayjs/plugin/relativeTime\";\nimport { HvTypography, withTooltip } from \"@hitachivantara/uikit-react-core\";\nimport { withStyles } from \"@mui/styles\";\nimport styles from \"./styles\";\n\ndayjs.extend(relativeTime);\n\nconst hideTooltip = (evt) => evt.target.scrollHeight <= evt.target.clientHeight;\n\nconst wrapperTooltip = (Component, label) => {\n const ComponentFunction = () => Component;\n // override thr withTooltip styles as we want to use the styles of the component\n return withTooltip(ComponentFunction, label, \"top\", hideTooltip, { style: {} });\n};\n\nconst Notification = ({\n classes,\n className,\n notificationId,\n title,\n isRead,\n icon,\n date,\n onClick,\n onKeyPress,\n rightContainer,\n isHighlighted,\n}) => {\n const getTime = () => {\n if (!isRead) {\n return dayjs(date).fromNow();\n }\n\n const d = dayjs(date);\n let format = \"D MMMM YYYY, h:mm A\";\n\n if (d.isSame(Date.now(), \"week\")) {\n format = \"ddd, h:mm A\";\n }\n\n return d.format(format);\n };\n\n const NotificationWithTooltip = wrapperTooltip(\n <div className={classes.messageContainer}>\n <HvTypography variant={isRead ? \"normalText\" : \"highlightText\"}>{title}</HvTypography>\n </div>,\n title\n );\n\n return (\n <div\n onClick={(event) => onClick?.(event, notificationId)}\n onKeyPress={(event) => onKeyPress?.(event, notificationId)}\n className={clsx(className, classes.root, {\n [classes.notificationWrapperDropdown]: isHighlighted,\n [classes.read]: isRead,\n })}\n role=\"button\"\n tabIndex={0}\n >\n <div\n className={clsx(classes.notificationWrapper, {\n [classes.notificationDropdownOpen]: isHighlighted,\n [classes.clickable]: !!onClick,\n })}\n >\n <div className={classes.iconContainer}>{icon}</div>\n <div>\n <NotificationWithTooltip />\n <div className={classes.timeContainer}>\n <div\n className={clsx(classes.bullet, {\n [classes.hide]: isRead,\n })}\n />\n <div className={classes.time}>{getTime()}</div>\n </div>\n </div>\n </div>\n <div className={classes.notificationActionWrapper}>{rightContainer}</div>\n </div>\n );\n};\n\nNotification.propTypes = {\n /**\n * A Jss Object used to override or extend the component styles.\n */\n classes: PropTypes.shape({\n /**\n * Styles applied to the component root of the accordion.\n */\n root: PropTypes.string,\n /**\n * Styles applied to the notification wrapper.\n */\n notificationWrapper: PropTypes.string,\n\n /**\n * Styles applied to the notification wrapper when the actions dropdown is open.\n */\n notificationWrapperDropdown: PropTypes.string,\n\n /**\n * Styles applied to the notification icon container.\n */\n iconContainer: PropTypes.string,\n\n /**\n * Styles applied to the notification message container.\n */\n messageContainer: PropTypes.string,\n\n /**\n * Styles applied to the notification time container.\n */\n timeContainer: PropTypes.string,\n\n /**\n * Styles applied to the notification bullet.\n */\n bullet: PropTypes.string,\n\n /**\n * Styles applied to the content when it is hidden.\n */\n hide: PropTypes.string,\n\n /**\n * Styles applied to the notification time indicator.\n */\n time: PropTypes.string,\n /**\n * Styles applied to the notification is read.\n */\n read: PropTypes.string,\n /**\n * Styles applied when the notification dropdown is open.\n */\n notificationDropdownOpen: PropTypes.string,\n\n /**\n * Styles applied to the notification message actions dropdown.\n */\n notificationActionWrapper: PropTypes.string,\n /**\n * Styles applied to the notification when clickable\n */\n clickable: PropTypes.string,\n }).isRequired,\n\n /**\n * Class names to be applied to the accordion.\n */\n className: PropTypes.string,\n /**\n * Notification id\n */\n notificationId: PropTypes.string,\n /**\n * Title of the notification\n */\n title: PropTypes.string.isRequired,\n /**\n * 'true' if the notification has been read or 'false' if it has not been read\n */\n isRead: PropTypes.bool.isRequired,\n /**\n * date the notification was created\n */\n date: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.object]).isRequired,\n /**\n * renderable icon that denotes the status of the notification\n */\n icon: PropTypes.element,\n /**\n * Click action applied to the notification\n */\n onClick: PropTypes.func,\n /**\n * On Key Press action applied to the notification\n */\n onKeyPress: PropTypes.func,\n /**\n * Actions to be executed by the notification, available in the dropdown menu\n */\n rightContainer: PropTypes.node,\n /**\n * Denotes index of clicked notification\n */\n isHighlighted: PropTypes.bool,\n};\n\nexport default withStyles(styles, { name: \"HvNotificationPanelNotification\" })(Notification);\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAClC,OAAOC,IAAI,MAAM,MAAM;AACvB,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAOC,YAAY,MAAM,2BAA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AAI,EAAEzB,SAAS,CAAC6D,OAAO;EACvB;AACF;AACA;EACElC,OAAO,EAAE3B,SAAS,CAAC8D,IAAI;EACvB;AACF;AACA;EACElC,UAAU,EAAE5B,SAAS,CAAC8D,IAAI;EAC1B;AACF;AACA;EACEjC,cAAc,EAAE7B,SAAS,CAAC+D,IAAI;EAC9B;AACF;AACA;EACEjC,aAAa,EAAE9B,SAAS,CAACyD;AAC3B,CAAC;AAED,eAAenD,UAAU,CAACC,MAAM,EAAE;EAAEyD,IAAI,EAAE;AAAkC,CAAC,CAAC,CAAC7C,YAAY,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["default"],"sources":["../../../../src/NotificationPanel/Notification/index.js"],"sourcesContent":["export { default } from \"./Notification\";\n"],"mappings":"AAAA,SAASA,OAAT,QAAwB,gBAAxB"}
1
+ {"version":3,"file":"index.js","names":["default"],"sources":["../../../../src/NotificationPanel/Notification/index.js"],"sourcesContent":["export { default } from \"./Notification\";\n"],"mappings":"AAAA,SAASA,OAAO,QAAQ,gBAAgB"}
@@ -1,9 +1,6 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
2
-
3
2
  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; }
4
-
5
3
  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; }
6
-
7
4
  const outlineStyles = {
8
5
  outlineColor: "#52A8EC",
9
6
  outlineStyle: "solid",
@@ -11,7 +8,6 @@ const outlineStyles = {
11
8
  outlineOffset: "-1px",
12
9
  boxShadow: "0 0 0 1px #52A8EC, 0 0 0 4px rgba(29,155,209,.3)"
13
10
  };
14
-
15
11
  const styles = theme => ({
16
12
  root: {
17
13
  display: "flex",
@@ -120,6 +116,5 @@ const styles = theme => ({
120
116
  }
121
117
  }
122
118
  });
123
-
124
119
  export default styles;
125
120
  //# sourceMappingURL=styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles.js","names":["outlineStyles","outlineColor","outlineStyle","outlineWidth","outlineOffset","boxShadow","styles","theme","root","display","backgroundColor","hv","palette","atmosphere","atmo1","margin","outline","atmo3","atmo2","notificationWrapper","minHeight","marginRight","spacing","xs","color","accent","acce1","padding","paddingRight","cursor","iconContainer","width","minWidth","sm","messageContainer","maxWidth","lineClamp","boxOrient","overflow","wordBreak","title","typography","highlightText","marginBottom","timeContainer","vizText","alignItems","bullet","height","borderRadius","hide","read","clickable","notificationWrapperDropdown","notificationDropdownOpen","notificationActionWrapper","marginTop"],"sources":["../../../../src/NotificationPanel/Notification/styles.js"],"sourcesContent":["const outlineStyles = {\n outlineColor: \"#52A8EC\",\n outlineStyle: \"solid\",\n outlineWidth: \"0px\",\n outlineOffset: \"-1px\",\n boxShadow: \"0 0 0 1px #52A8EC, 0 0 0 4px rgba(29,155,209,.3)\",\n};\n\nconst styles = (theme) => ({\n root: {\n display: \"flex\",\n backgroundColor: theme.hv.palette.atmosphere.atmo1,\n margin: \"3px 3px 6px 3px\",\n \"&:hover\": {\n outline: `3px solid ${theme.hv.palette.atmosphere.atmo3}`,\n backgroundColor: theme.hv.palette.atmosphere.atmo3,\n \"& $notificationActionWrapper\": {\n display: \"block\",\n },\n },\n \"&$read\": {\n backgroundColor: theme.hv.palette.atmosphere.atmo2,\n outline: `3px solid ${theme.hv.palette.atmosphere.atmo2}`,\n \"&:hover\": {\n backgroundColor: theme.hv.palette.atmosphere.atmo3,\n outline: `3px solid ${theme.hv.palette.atmosphere.atmo3}`,\n\n \"&.focus-visible\": {\n ...outlineStyles,\n },\n },\n },\n\n \"&.focus-visible\": {\n ...outlineStyles,\n backgroundColor: theme.hv.palette.atmosphere.atmo3,\n \"&$read\": {\n ...outlineStyles,\n },\n\n \"& $notificationActionWrapper\": {\n display: \"block\",\n },\n },\n },\n notificationWrapper: {\n display: \"flex\",\n minHeight: \"72px\",\n marginRight: theme.hv.spacing.xs,\n color: theme.hv.palette.accent.acce1,\n padding: \"17px\",\n paddingRight: 0,\n\n \"&:focus\": {\n backgroundColor: theme.hv.palette.atmosphere.atmo3,\n outline: `5px solid ${theme.hv.palette.atmosphere.atmo3}`,\n boxShadow: \"none\",\n \"& $notificationActionWrapper\": {\n display: \"block\",\n },\n },\n\n \"&.focus-visible\": {\n ...outlineStyles,\n backgroundColor: theme.hv.palette.atmosphere.atmo3,\n \"& $notificationActionWrapper\": {\n display: \"block\",\n },\n },\n\n \"&$clickable\": {\n cursor: \"pointer\",\n },\n },\n\n iconContainer: {\n width: \"32px\",\n minWidth: \"32px\",\n marginRight: `${theme.hv.spacing.sm}px`,\n },\n\n messageContainer: {\n width: \"196px\",\n maxWidth: \"196px\",\n display: \"-webkit-box\",\n lineClamp: 2,\n boxOrient: \"vertical\",\n overflow: \"hidden\",\n wordBreak: \"break-all\",\n },\n\n title: {\n ...theme.hv.typography.highlightText,\n marginBottom: \"5px\",\n },\n timeContainer: {\n ...theme.hv.typography.vizText,\n display: \"flex\",\n alignItems: \"center\",\n },\n bullet: {\n width: \"8px\",\n height: \"8px\",\n borderRadius: \"50%\",\n marginRight: \"4px\",\n backgroundColor: theme.hv.palette.accent.acce1,\n\n \"&$hide\": {\n display: \"none\",\n },\n },\n hide: {},\n read: {},\n clickable: {},\n notificationWrapperDropdown: {\n outline: `3px solid ${theme.hv.palette.atmosphere.atmo3}`,\n backgroundColor: theme.hv.palette.atmosphere.atmo3,\n \"& $notificationActionWrapper\": {\n display: \"block\",\n },\n \"&$read\": {\n backgroundColor: theme.hv.palette.atmosphere.atmo3,\n outline: `3px solid ${theme.hv.palette.atmosphere.atmo3}`,\n },\n },\n\n notificationDropdownOpen: {\n backgroundColor: theme.hv.palette.atmosphere.atmo3,\n },\n\n notificationActionWrapper: {\n \"& > div\": {\n marginTop: 17,\n },\n },\n});\n\nexport default styles;\n"],"mappings":";;;;;;AAAA,MAAMA,aAAa,GAAG;EACpBC,YAAY,EAAE,SADM;EAEpBC,YAAY,EAAE,OAFM;EAGpBC,YAAY,EAAE,KAHM;EAIpBC,aAAa,EAAE,MAJK;EAKpBC,SAAS,EAAE;AALS,CAAtB;;AAQA,MAAMC,MAAM,GAAIC,KAAD,KAAY;EACzBC,IAAI,EAAE;IACJC,OAAO,EAAE,MADL;IAEJC,eAAe,EAAEH,KAAK,CAACI,EAAN,CAASC,OAAT,CAAiBC,UAAjB,CAA4BC,KAFzC;IAGJC,MAAM,EAAE,iBAHJ;IAIJ,WAAW;MACTC,OAAO,EAAG,aAAYT,KAAK,CAACI,EAAN,CAASC,OAAT,CAAiBC,UAAjB,CAA4BI,KAAM,EAD/C;MAETP,eAAe,EAAEH,KAAK,CAACI,EAAN,CAASC,OAAT,CAAiBC,UAAjB,CAA4BI,KAFpC;MAGT,gCAAgC;QAC9BR,OAAO,EAAE;MADqB;IAHvB,CAJP;IAWJ,UAAU;MACRC,eAAe,EAAEH,KAAK,CAACI,EAAN,CAASC,OAAT,CAAiBC,UAAjB,CAA4BK,KADrC;MAERF,OAAO,EAAG,aAAYT,KAAK,CAACI,EAAN,CAASC,OAAT,CAAiBC,UAAjB,CAA4BK,KAAM,EAFhD;MAGR,WAAW;QACTR,eAAe,EAAEH,KAAK,CAACI,EAAN,CAASC,OAAT,CAAiBC,UAAjB,CAA4BI,KADpC;QAETD,OAAO,EAAG,aAAYT,KAAK,CAACI,EAAN,CAASC,OAAT,CAAiBC,UAAjB,CAA4BI,KAAM,EAF/C;QAIT,qCACKjB,aADL;MAJS;IAHH,CAXN;IAwBJ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AAyB,EAAE;IACzB,WAAW;MACTC,SAAS,EAAE;IADF;EADc;AA1HF,CAAZ,CAAf;;AAiIA,eAAelD,MAAf"}
1
+ {"version":3,"file":"styles.js","names":["outlineStyles","outlineColor","outlineStyle","outlineWidth","outlineOffset","boxShadow","styles","theme","root","display","backgroundColor","hv","palette","atmosphere","atmo1","margin","outline","atmo3","atmo2","notificationWrapper","minHeight","marginRight","spacing","xs","color","accent","acce1","padding","paddingRight","cursor","iconContainer","width","minWidth","sm","messageContainer","maxWidth","lineClamp","boxOrient","overflow","wordBreak","title","typography","highlightText","marginBottom","timeContainer","vizText","alignItems","bullet","height","borderRadius","hide","read","clickable","notificationWrapperDropdown","notificationDropdownOpen","notificationActionWrapper","marginTop"],"sources":["../../../../src/NotificationPanel/Notification/styles.js"],"sourcesContent":["const outlineStyles = {\n outlineColor: \"#52A8EC\",\n outlineStyle: \"solid\",\n outlineWidth: \"0px\",\n outlineOffset: \"-1px\",\n boxShadow: \"0 0 0 1px #52A8EC, 0 0 0 4px rgba(29,155,209,.3)\",\n};\n\nconst styles = (theme) => ({\n root: {\n display: \"flex\",\n backgroundColor: theme.hv.palette.atmosphere.atmo1,\n margin: \"3px 3px 6px 3px\",\n \"&:hover\": {\n outline: `3px solid ${theme.hv.palette.atmosphere.atmo3}`,\n backgroundColor: theme.hv.palette.atmosphere.atmo3,\n \"& $notificationActionWrapper\": {\n display: \"block\",\n },\n },\n \"&$read\": {\n backgroundColor: theme.hv.palette.atmosphere.atmo2,\n outline: `3px solid ${theme.hv.palette.atmosphere.atmo2}`,\n \"&:hover\": {\n backgroundColor: theme.hv.palette.atmosphere.atmo3,\n outline: `3px solid ${theme.hv.palette.atmosphere.atmo3}`,\n\n \"&.focus-visible\": {\n ...outlineStyles,\n },\n },\n },\n\n \"&.focus-visible\": {\n ...outlineStyles,\n backgroundColor: theme.hv.palette.atmosphere.atmo3,\n \"&$read\": {\n ...outlineStyles,\n },\n\n \"& $notificationActionWrapper\": {\n display: \"block\",\n },\n },\n },\n notificationWrapper: {\n display: \"flex\",\n minHeight: \"72px\",\n marginRight: theme.hv.spacing.xs,\n color: theme.hv.palette.accent.acce1,\n padding: \"17px\",\n paddingRight: 0,\n\n \"&:focus\": {\n backgroundColor: theme.hv.palette.atmosphere.atmo3,\n outline: `5px solid ${theme.hv.palette.atmosphere.atmo3}`,\n boxShadow: \"none\",\n \"& $notificationActionWrapper\": {\n display: \"block\",\n },\n },\n\n \"&.focus-visible\": {\n ...outlineStyles,\n backgroundColor: theme.hv.palette.atmosphere.atmo3,\n \"& $notificationActionWrapper\": {\n display: \"block\",\n },\n },\n\n \"&$clickable\": {\n cursor: \"pointer\",\n },\n },\n\n iconContainer: {\n width: \"32px\",\n minWidth: \"32px\",\n marginRight: `${theme.hv.spacing.sm}px`,\n },\n\n messageContainer: {\n width: \"196px\",\n maxWidth: \"196px\",\n display: \"-webkit-box\",\n lineClamp: 2,\n boxOrient: \"vertical\",\n overflow: \"hidden\",\n wordBreak: \"break-all\",\n },\n\n title: {\n ...theme.hv.typography.highlightText,\n marginBottom: \"5px\",\n },\n timeContainer: {\n ...theme.hv.typography.vizText,\n display: \"flex\",\n alignItems: \"center\",\n },\n bullet: {\n width: \"8px\",\n height: \"8px\",\n borderRadius: \"50%\",\n marginRight: \"4px\",\n backgroundColor: theme.hv.palette.accent.acce1,\n\n \"&$hide\": {\n display: \"none\",\n },\n },\n hide: {},\n read: {},\n clickable: {},\n notificationWrapperDropdown: {\n outline: `3px solid ${theme.hv.palette.atmosphere.atmo3}`,\n backgroundColor: theme.hv.palette.atmosphere.atmo3,\n \"& $notificationActionWrapper\": {\n display: \"block\",\n },\n \"&$read\": {\n backgroundColor: theme.hv.palette.atmosphere.atmo3,\n outline: `3px solid ${theme.hv.palette.atmosphere.atmo3}`,\n },\n },\n\n notificationDropdownOpen: {\n backgroundColor: theme.hv.palette.atmosphere.atmo3,\n },\n\n notificationActionWrapper: {\n \"& > div\": {\n marginTop: 17,\n },\n },\n});\n\nexport default styles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IACfqC,UAAU,EAAE;EAAQ,EACrB;EACDC,MAAM,EAAE;IACNhB,KAAK,EAAE,KAAK;IACZiB,MAAM,EAAE,KAAK;IACbC,YAAY,EAAE,KAAK;IACnB5B,WAAW,EAAE,KAAK;IAClBX,eAAe,EAAEH,KAAK,CAACI,EAAE,CAACC,OAAO,CAACa,MAAM,CAACC,KAAK;IAE9C,QAAQ,EAAE;MACRjB,OAAO,EAAE;IACX;EACF,CAAC;EACDyC,IAAI,EAAE,CAAC,CAAC;EACRC,IAAI,EAAE,CAAC,CAAC;EACRC,SAAS,EAAE,CAAC,CAAC;EACbC,2BAA2B,EAAE;IAC3BrC,OAAO,EAAG,aAAYT,KAAK,CAACI,EAAE,CAACC,OAAO,CAACC,UAAU,CAACI,KAAM,EAAC;IACzDP,eAAe,EAAEH,KAAK,CAACI,EAAE,CAACC,OAAO,CAACC,UAAU,CAACI,KAAK;IAClD,8BAA8B,EAAE;MAC9BR,OAAO,EAAE;IACX,CAAC;IACD,QAAQ,EAAE;MACRC,eAAe,EAAEH,KAAK,CAACI,EAAE,CAACC,OAAO,CAACC,UAAU,CAACI,KAAK;MAClDD,OAAO,EAAG,aAAYT,KAAK,CAACI,EAAE,CAACC,OAAO,CAACC,UAAU,CAACI,KAAM;IAC1D;EACF,CAAC;EAEDqC,wBAAwB,EAAE;IACxB5C,eAAe,EAAEH,KAAK,CAACI,EAAE,CAACC,OAAO,CAACC,UAAU,CAACI;EAC/C,CAAC;EAEDsC,yBAAyB,EAAE;IACzB,SAAS,EAAE;MACTC,SAAS,EAAE;IACb;EACF;AACF,CAAC,CAAC;AAEF,eAAelD,MAAM"}
@@ -1,12 +1,8 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
3
3
  const _excluded = ["id", "className", "classes", "open", "footer", "notifications", "hasNewNotifications", "emptyStatePanelTitle", "emptyStatePanelMessage", "emptyStatePanelIcon", "labels", "newNotificationsButtonAction", "locale"];
4
-
5
4
  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; }
6
-
7
5
  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; }
8
-
9
- import "core-js/modules/web.dom-collections.iterator.js";
10
6
  import React, { useState } from "react";
11
7
  import PropTypes from "prop-types";
12
8
  import clsx from "clsx";
@@ -29,34 +25,32 @@ const DEFAULT_LABELS = {
29
25
  buttonLabel: "Update"
30
26
  }
31
27
  };
28
+
32
29
  /**
33
30
  * Notification Panel displays all of read and unread notifications. Still in development
34
31
  */
35
-
36
32
  const HvNotificationPanel = _ref => {
37
33
  let {
38
- id,
39
- className,
40
- classes,
41
- open,
42
- footer,
43
- notifications,
44
- hasNewNotifications = false,
45
- emptyStatePanelTitle = "No notifications",
46
- emptyStatePanelMessage = "You currently have no notifications.",
47
- emptyStatePanelIcon,
48
- labels: labelsProp,
49
- newNotificationsButtonAction,
50
- locale: localeProp
51
- } = _ref,
52
- others = _objectWithoutProperties(_ref, _excluded);
53
-
34
+ id,
35
+ className,
36
+ classes,
37
+ open,
38
+ footer,
39
+ notifications,
40
+ hasNewNotifications = false,
41
+ emptyStatePanelTitle = "No notifications",
42
+ emptyStatePanelMessage = "You currently have no notifications.",
43
+ emptyStatePanelIcon,
44
+ labels: labelsProp,
45
+ newNotificationsButtonAction,
46
+ locale: localeProp
47
+ } = _ref,
48
+ others = _objectWithoutProperties(_ref, _excluded);
54
49
  const localeFromProvider = useLocale();
55
50
  const locale = localeProp || localeFromProvider;
56
51
  const [highlighted, setHighlighted] = useState(undefined);
57
52
  const [isExpanded, setIsExpanded] = useState(false);
58
53
  const labels = useLabels(DEFAULT_LABELS, labelsProp);
59
-
60
54
  const generateNotificationsActions = (notificationId, onToggle, actions) => {
61
55
  const expand = notificationId === highlighted;
62
56
  const dList = [...actions.values];
@@ -64,25 +58,21 @@ const HvNotificationPanel = _ref => {
64
58
  expanded: expand,
65
59
  onClick: (event, item) => {
66
60
  var _item$callback;
67
-
68
61
  setHighlighted(undefined);
69
62
  item === null || item === void 0 ? void 0 : (_item$callback = item.callback) === null || _item$callback === void 0 ? void 0 : _item$callback.call(item, event, notificationId);
70
63
  },
71
64
  dataList: dList,
72
65
  onToggle: (event, s) => {
73
66
  onToggle === null || onToggle === void 0 ? void 0 : onToggle(event, s);
74
-
75
67
  if (s) {
76
68
  setHighlighted(notificationId);
77
69
  } else {
78
70
  setHighlighted(undefined);
79
71
  }
80
-
81
72
  setIsExpanded(!isExpanded);
82
73
  }
83
74
  }, actions.dropDownMenuProps));
84
75
  };
85
-
86
76
  const notificationElementGenerator = notificationsToRender => {
87
77
  return notificationsToRender.map(notification => {
88
78
  const notificationIsHighlighted = highlighted === notification.id;
@@ -100,11 +90,8 @@ const HvNotificationPanel = _ref => {
100
90
  }, notification.id);
101
91
  });
102
92
  };
103
-
104
93
  const hasNotifications = notifications.length > 0;
105
-
106
94
  const renderNotifications = notificationsToRender => notificationElementGenerator(notificationsToRender);
107
-
108
95
  return /*#__PURE__*/_jsxs(HvPanel, _objectSpread(_objectSpread({
109
96
  id: id,
110
97
  className: clsx(className, classes.root, open === false && classes.closed, open && classes.open)
@@ -131,25 +118,21 @@ const HvNotificationPanel = _ref => {
131
118
  })]
132
119
  }));
133
120
  };
134
-
135
121
  process.env.NODE_ENV !== "production" ? HvNotificationPanel.propTypes = {
136
122
  /**
137
123
  * Id to be applied to the root node of the panel.
138
124
  */
139
125
  id: PropTypes.string,
140
-
141
126
  /**
142
127
  * Class names to be applied to the root element.
143
128
  */
144
129
  className: PropTypes.string,
145
-
146
130
  /**
147
131
  * 'true' if panel is open or 'false' if the panel is not open
148
132
  *
149
133
  * @deprecated This logic should be external, i.e. using the HvAppSwitcherPanel inside a Drawer component.
150
134
  */
151
135
  open: deprecatedPropType(PropTypes.bool),
152
-
153
136
  /**
154
137
  * A Jss Object used to override or extend the styles applied.
155
138
  */
@@ -158,43 +141,35 @@ process.env.NODE_ENV !== "production" ? HvNotificationPanel.propTypes = {
158
141
  * styles object applied to the root
159
142
  */
160
143
  root: PropTypes.string,
161
-
162
144
  /**
163
145
  * styles object applied to the root when closed
164
146
  */
165
147
  closed: PropTypes.string,
166
-
167
148
  /**
168
149
  * styles object applied to the root when open
169
150
  */
170
151
  open: PropTypes.string,
171
-
172
152
  /**
173
153
  * styles object applied to the panel
174
154
  */
175
155
  panel: PropTypes.string,
176
-
177
156
  /**
178
157
  * styles object applied to the action bar
179
158
  */
180
159
  actionBar: PropTypes.string,
181
-
182
160
  /**
183
161
  * styles object applied to the root of the action bar
184
162
  */
185
163
  actionBarRoot: PropTypes.string,
186
-
187
164
  /**
188
165
  * styles object applied to the new notification indicator
189
166
  */
190
167
  notificationsIndicator: PropTypes.string,
191
-
192
168
  /**
193
169
  * styles object applied to the empty state panel
194
170
  */
195
171
  emptyState: PropTypes.string
196
172
  }).isRequired,
197
-
198
173
  /**
199
174
  * The properties of the notifications to be rendered in the Panel.
200
175
  */
@@ -214,32 +189,26 @@ process.env.NODE_ENV !== "production" ? HvNotificationPanel.propTypes = {
214
189
  dropDownMenuProps: PropTypes.instanceOf(Object)
215
190
  })
216
191
  })),
217
-
218
192
  /**
219
193
  * Whether to render the new notifications indicator
220
194
  */
221
195
  hasNewNotifications: PropTypes.bool,
222
-
223
196
  /**
224
197
  * Action buttons to render in footer
225
198
  */
226
199
  footer: PropTypes.node,
227
-
228
200
  /**
229
201
  * Title of the EmptyStatePanel
230
202
  */
231
203
  emptyStatePanelTitle: PropTypes.string,
232
-
233
204
  /**
234
205
  * Message of the EmptyStatePanel
235
206
  */
236
207
  emptyStatePanelMessage: PropTypes.string,
237
-
238
208
  /**
239
209
  * Empty Panel custom Icon
240
210
  */
241
211
  emptyStatePanelIcon: PropTypes.node,
242
-
243
212
  /**
244
213
  * Labels to apply to the Panel
245
214
  */
@@ -251,7 +220,6 @@ process.env.NODE_ENV !== "production" ? HvNotificationPanel.propTypes = {
251
220
  olderNotifications: PropTypes.string,
252
221
  newNotifications: PropTypes.string
253
222
  },
254
-
255
223
  /**
256
224
  * Labels to apply to the element of the New Notifications Indicator
257
225
  */
@@ -260,12 +228,10 @@ process.env.NODE_ENV !== "production" ? HvNotificationPanel.propTypes = {
260
228
  buttonLabel: PropTypes.string
261
229
  }
262
230
  }),
263
-
264
231
  /**
265
232
  * Function to be supplied to the notification update button
266
233
  */
267
234
  newNotificationsButtonAction: PropTypes.func,
268
-
269
235
  /**
270
236
  * The locale to be used on the notification date, if undefined it will use the one from the HvProvider
271
237
  */
@@ -1 +1 @@
1
- {"version":3,"file":"NotificationPanel.js","names":["React","useState","PropTypes","clsx","deprecatedPropType","withStyles","HvPanel","HvActionBar","HvDropDownMenu","setId","useLabels","useLocale","styles","Notification","EmptyStatePanel","NotificationsIndicator","DEFAULT_LABELS","notificationGroupHeader","newNotifications","olderNotifications","notificationIndicator","label","buttonLabel","HvNotificationPanel","id","className","classes","open","footer","notifications","hasNewNotifications","emptyStatePanelTitle","emptyStatePanelMessage","emptyStatePanelIcon","labels","labelsProp","newNotificationsButtonAction","locale","localeProp","others","localeFromProvider","highlighted","setHighlighted","undefined","isExpanded","setIsExpanded","generateNotificationsActions","notificationId","onToggle","actions","expand","dList","values","event","item","callback","s","dropDownMenuProps","notificationElementGenerator","notificationsToRender","map","notification","notificationIsHighlighted","title","isRead","icon","date","onClick","onKeyPress","hasNotifications","length","renderNotifications","root","closed","panel","emptyState","actionBarRoot","actionBar","propTypes","string","bool","shape","notificationsIndicator","isRequired","arrayOf","oneOfType","number","object","element","func","action","instanceOf","Object","node","name"],"sources":["../../../src/NotificationPanel/NotificationPanel.js"],"sourcesContent":["import React, { useState } from \"react\";\nimport PropTypes from \"prop-types\";\nimport clsx from \"clsx\";\nimport { deprecatedPropType } from \"@mui/material\";\nimport { withStyles } from \"@mui/styles\";\n\nimport {\n HvPanel,\n HvActionBar,\n HvDropDownMenu,\n setId,\n useLabels,\n useLocale,\n} from \"@hitachivantara/uikit-react-core\";\n\nimport styles from \"./styles\";\n\nimport Notification from \"./Notification\";\nimport EmptyStatePanel from \"./EmptyStatePanel\";\nimport NotificationsIndicator from \"./NotificationsIndicator\";\n\nconst DEFAULT_LABELS = {\n notificationGroupHeader: {\n newNotifications: \"New\",\n olderNotifications: \"Earlier\",\n },\n notificationIndicator: {\n label: \"You have new notifications\",\n buttonLabel: \"Update\",\n },\n};\n\n/**\n * Notification Panel displays all of read and unread notifications. Still in development\n */\nconst HvNotificationPanel = ({\n id,\n className,\n classes,\n open,\n footer,\n notifications,\n hasNewNotifications = false,\n emptyStatePanelTitle = \"No notifications\",\n emptyStatePanelMessage = \"You currently have no notifications.\",\n emptyStatePanelIcon,\n labels: labelsProp,\n newNotificationsButtonAction,\n locale: localeProp,\n ...others\n}) => {\n const localeFromProvider = useLocale();\n\n const locale = localeProp || localeFromProvider;\n\n const [highlighted, setHighlighted] = useState(undefined);\n const [isExpanded, setIsExpanded] = useState(false);\n\n const labels = useLabels(DEFAULT_LABELS, labelsProp);\n\n const generateNotificationsActions = (notificationId, onToggle, actions) => {\n const expand = notificationId === highlighted;\n const dList = [...actions.values];\n return (\n <HvDropDownMenu\n expanded={expand}\n onClick={(event, item) => {\n setHighlighted(undefined);\n item?.callback?.(event, notificationId);\n }}\n dataList={dList}\n onToggle={(event, s) => {\n onToggle?.(event, s);\n if (s) {\n setHighlighted(notificationId);\n } else {\n setHighlighted(undefined);\n }\n setIsExpanded(!isExpanded);\n }}\n {...actions.dropDownMenuProps}\n />\n );\n };\n\n const notificationElementGenerator = (notificationsToRender) => {\n return notificationsToRender.map((notification) => {\n const notificationIsHighlighted = highlighted === notification.id;\n return (\n <Notification\n key={notification.id}\n notificationId={notification.id}\n title={notification.title}\n isRead={notification.isRead}\n icon={notification.icon}\n date={notification.date}\n onClick={notification.onClick}\n onKeyPress={notification.onKeyPress}\n rightContainer={generateNotificationsActions(\n notification.id,\n notification.onToggle,\n notification.actions\n )}\n isHighlighted={notificationIsHighlighted}\n locale={locale}\n />\n );\n });\n };\n\n const hasNotifications = notifications.length > 0;\n\n const renderNotifications = (notificationsToRender) =>\n notificationElementGenerator(notificationsToRender);\n\n return (\n <HvPanel\n id={id}\n className={clsx(className, classes.root, {\n [classes.closed]: open === false,\n [classes.open]: open,\n })}\n {...others}\n >\n {hasNewNotifications && (\n <NotificationsIndicator\n labels={labels.notificationIndicator}\n onClick={newNotificationsButtonAction}\n />\n )}\n {hasNotifications ? (\n <div className={classes.panel}>\n {notifications.length > 0 && renderNotifications(notifications)}\n </div>\n ) : (\n <EmptyStatePanel\n id={setId(id, \"empty-state\")}\n title={emptyStatePanelTitle}\n message={emptyStatePanelMessage}\n icon={emptyStatePanelIcon}\n className={classes.emptyState}\n />\n )}\n {footer && (\n <HvActionBar\n id={setId(id, \"action-bar\")}\n classes={{\n root: classes.actionBarRoot,\n }}\n className={classes.actionBar}\n >\n {footer}\n </HvActionBar>\n )}\n </HvPanel>\n );\n};\n\nHvNotificationPanel.propTypes = {\n /**\n * Id to be applied to the root node of the panel.\n */\n id: PropTypes.string,\n /**\n * Class names to be applied to the root element.\n */\n className: PropTypes.string,\n /**\n * 'true' if panel is open or 'false' if the panel is not open\n *\n * @deprecated This logic should be external, i.e. using the HvAppSwitcherPanel inside a Drawer component.\n */\n open: deprecatedPropType(PropTypes.bool),\n /**\n * A Jss Object used to override or extend the styles applied.\n */\n classes: PropTypes.shape({\n /**\n * styles object applied to the root\n */\n root: PropTypes.string,\n /**\n * styles object applied to the root when closed\n */\n closed: PropTypes.string,\n /**\n * styles object applied to the root when open\n */\n open: PropTypes.string,\n /**\n * styles object applied to the panel\n */\n panel: PropTypes.string,\n /**\n * styles object applied to the action bar\n */\n actionBar: PropTypes.string,\n /**\n * styles object applied to the root of the action bar\n */\n actionBarRoot: PropTypes.string,\n /**\n * styles object applied to the new notification indicator\n */\n notificationsIndicator: PropTypes.string,\n /**\n * styles object applied to the empty state panel\n */\n emptyState: PropTypes.string,\n }).isRequired,\n /**\n * The properties of the notifications to be rendered in the Panel.\n */\n notifications: PropTypes.arrayOf(\n PropTypes.shape({\n id: PropTypes.string.isRequired,\n title: PropTypes.string.isRequired,\n isRead: PropTypes.bool.isRequired,\n date: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.object]).isRequired,\n icon: PropTypes.element,\n onClick: PropTypes.func,\n onKeyPress: PropTypes.func,\n onToggle: PropTypes.func,\n actions: PropTypes.shape({\n label: PropTypes.bool,\n action: PropTypes.string,\n callback: PropTypes.func,\n dropDownMenuProps: PropTypes.instanceOf(Object),\n }),\n })\n ),\n /**\n * Whether to render the new notifications indicator\n */\n hasNewNotifications: PropTypes.bool,\n /**\n * Action buttons to render in footer\n */\n footer: PropTypes.node,\n /**\n * Title of the EmptyStatePanel\n */\n emptyStatePanelTitle: PropTypes.string,\n /**\n * Message of the EmptyStatePanel\n */\n emptyStatePanelMessage: PropTypes.string,\n /**\n * Empty Panel custom Icon\n */\n emptyStatePanelIcon: PropTypes.node,\n /**\n * Labels to apply to the Panel\n */\n labels: PropTypes.shape({\n /**\n * Labels to apply to the groups separating newer and older notifications\n */\n notificationGroupHeader: {\n olderNotifications: PropTypes.string,\n newNotifications: PropTypes.string,\n },\n /**\n * Labels to apply to the element of the New Notifications Indicator\n */\n notificationIndicator: {\n label: PropTypes.string,\n buttonLabel: PropTypes.string,\n },\n }),\n /**\n * Function to be supplied to the notification update button\n */\n newNotificationsButtonAction: PropTypes.func,\n /**\n * The locale to be used on the notification date, if undefined it will use the one from the HvProvider\n */\n locale: PropTypes.string,\n};\n\nexport default withStyles(styles, { name: \"HvNotificationPanel\" })(HvNotificationPanel);\n"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,QAAhB,QAAgC,OAAhC;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,IAAP,MAAiB,MAAjB;AACA,SAASC,kBAAT,QAAmC,eAAnC;AACA,SAASC,UAAT,QAA2B,aAA3B;AAEA,SACEC,OADF,EAEEC,WAFF,EAGEC,cAHF,EAIEC,KAJF,EAKEC,SALF,EAMEC,SANF,QAOO,kCAPP;AASA,OAAOC,MAAP,MAAmB,UAAnB;AAEA,OAAOC,YAAP,MAAyB,gBAAzB;AACA,OAAOC,eAAP,MAA4B,mBAA5B;AACA,OAAOC,sBAAP,MAAmC,0BAAnC;;;AAEA,MAAMC,cAAc,GAAG;EACrBC,uBAAuB,EAAE;IACvBC,gBAAgB,EAAE,KADK;IAEvBC,kBAAkB,EAAE;EAFG,CADJ;EAKrBC,qBAAqB,EAAE;IACrBC,KAAK,EAAE,4BADc;IAErBC,WAAW,EAAE;EAFQ;AALF,CAAvB;AAWA;AACA;AACA;;AACA,MAAMC,mBAAmB,GAAG,QAetB;EAAA,IAfuB;IAC3BC,EAD2B;IAE3BC,SAF2B;IAG3BC,OAH2B;IAI3BC,IAJ2B;IAK3BC,MAL2B;IAM3BC,aAN2B;IAO3BC,mBAAmB,GAAG,KAPK;IAQ3BC,oBAAoB,GAAG,kBARI;IAS3BC,sBAAsB,GAAG,sCATE;IAU3BC,mBAV2B;IAW3BC,MAAM,EAAEC,UAXmB;IAY3BC,4BAZ2B;IAa3BC,MAAM,EAAEC;EAbmB,CAevB;EAAA,IADDC,MACC;;EACJ,MAAMC,kBAAkB,GAAG7B,SAAS,EAApC;EAEA,MAAM0B,MAAM,GAAGC,UAAU,IAAIE,kBAA7B;EAEA,MAAM,CAACC,WAAD,EAAcC,cAAd,IAAgCzC,QAAQ,CAA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E,MADP;MAEvB7D,gBAAgB,EAAEhB,SAAS,CAAC6E;IAFL,CAJH;;IAQtB;AACJ;AACA;IACI3D,qBAAqB,EAAE;MACrBC,KAAK,EAAEnB,SAAS,CAAC6E,MADI;MAErBzD,WAAW,EAAEpB,SAAS,CAAC6E;IAFF;EAXD,CAAhB,CAhGsB;;EAgH9B;AACF;AACA;EACE3C,4BAA4B,EAAElC,SAAS,CAACuF,IAnHV;;EAoH9B;AACF;AACA;EACEpD,MAAM,EAAEnC,SAAS,CAAC6E;AAvHY,CAAhC;AA0HA,eAAe1E,UAAU,CAACO,MAAD,EAAS;EAAEkF,IAAI,EAAE;AAAR,CAAT,CAAV,CAAoDvE,mBAApD,CAAf"}
1
+ {"version":3,"file":"NotificationPanel.js","names":["React","useState","PropTypes","clsx","deprecatedPropType","withStyles","HvPanel","HvActionBar","HvDropDownMenu","setId","useLabels","useLocale","styles","Notification","EmptyStatePanel","NotificationsIndicator","DEFAULT_LABELS","notificationGroupHeader","newNotifications","olderNotifications","notificationIndicator","label","buttonLabel","HvNotificationPanel","id","className","classes","open","footer","notifications","hasNewNotifications","emptyStatePanelTitle","emptyStatePanelMessage","emptyStatePanelIcon","labels","labelsProp","newNotificationsButtonAction","locale","localeProp","others","localeFromProvider","highlighted","setHighlighted","undefined","isExpanded","setIsExpanded","generateNotificationsActions","notificationId","onToggle","actions","expand","dList","values","event","item","callback","s","dropDownMenuProps","notificationElementGenerator","notificationsToRender","map","notification","notificationIsHighlighted","title","isRead","icon","date","onClick","onKeyPress","hasNotifications","length","renderNotifications","root","closed","panel","emptyState","actionBarRoot","actionBar","propTypes","string","bool","shape","notificationsIndicator","isRequired","arrayOf","oneOfType","number","object","element","func","action","instanceOf","Object","node","name"],"sources":["../../../src/NotificationPanel/NotificationPanel.js"],"sourcesContent":["import React, { useState } from \"react\";\nimport PropTypes from \"prop-types\";\nimport clsx from \"clsx\";\nimport { deprecatedPropType } from \"@mui/material\";\nimport { withStyles } from \"@mui/styles\";\n\nimport {\n HvPanel,\n HvActionBar,\n HvDropDownMenu,\n setId,\n useLabels,\n useLocale,\n} from \"@hitachivantara/uikit-react-core\";\n\nimport styles from \"./styles\";\n\nimport Notification from \"./Notification\";\nimport EmptyStatePanel from \"./EmptyStatePanel\";\nimport NotificationsIndicator from \"./NotificationsIndicator\";\n\nconst DEFAULT_LABELS = {\n notificationGroupHeader: {\n newNotifications: \"New\",\n olderNotifications: \"Earlier\",\n },\n notificationIndicator: {\n label: \"You have new notifications\",\n buttonLabel: \"Update\",\n },\n};\n\n/**\n * Notification Panel displays all of read and unread notifications. Still in development\n */\nconst HvNotificationPanel = ({\n id,\n className,\n classes,\n open,\n footer,\n notifications,\n hasNewNotifications = false,\n emptyStatePanelTitle = \"No notifications\",\n emptyStatePanelMessage = \"You currently have no notifications.\",\n emptyStatePanelIcon,\n labels: labelsProp,\n newNotificationsButtonAction,\n locale: localeProp,\n ...others\n}) => {\n const localeFromProvider = useLocale();\n\n const locale = localeProp || localeFromProvider;\n\n const [highlighted, setHighlighted] = useState(undefined);\n const [isExpanded, setIsExpanded] = useState(false);\n\n const labels = useLabels(DEFAULT_LABELS, labelsProp);\n\n const generateNotificationsActions = (notificationId, onToggle, actions) => {\n const expand = notificationId === highlighted;\n const dList = [...actions.values];\n return (\n <HvDropDownMenu\n expanded={expand}\n onClick={(event, item) => {\n setHighlighted(undefined);\n item?.callback?.(event, notificationId);\n }}\n dataList={dList}\n onToggle={(event, s) => {\n onToggle?.(event, s);\n if (s) {\n setHighlighted(notificationId);\n } else {\n setHighlighted(undefined);\n }\n setIsExpanded(!isExpanded);\n }}\n {...actions.dropDownMenuProps}\n />\n );\n };\n\n const notificationElementGenerator = (notificationsToRender) => {\n return notificationsToRender.map((notification) => {\n const notificationIsHighlighted = highlighted === notification.id;\n return (\n <Notification\n key={notification.id}\n notificationId={notification.id}\n title={notification.title}\n isRead={notification.isRead}\n icon={notification.icon}\n date={notification.date}\n onClick={notification.onClick}\n onKeyPress={notification.onKeyPress}\n rightContainer={generateNotificationsActions(\n notification.id,\n notification.onToggle,\n notification.actions\n )}\n isHighlighted={notificationIsHighlighted}\n locale={locale}\n />\n );\n });\n };\n\n const hasNotifications = notifications.length > 0;\n\n const renderNotifications = (notificationsToRender) =>\n notificationElementGenerator(notificationsToRender);\n\n return (\n <HvPanel\n id={id}\n className={clsx(className, classes.root, {\n [classes.closed]: open === false,\n [classes.open]: open,\n })}\n {...others}\n >\n {hasNewNotifications && (\n <NotificationsIndicator\n labels={labels.notificationIndicator}\n onClick={newNotificationsButtonAction}\n />\n )}\n {hasNotifications ? (\n <div className={classes.panel}>\n {notifications.length > 0 && renderNotifications(notifications)}\n </div>\n ) : (\n <EmptyStatePanel\n id={setId(id, \"empty-state\")}\n title={emptyStatePanelTitle}\n message={emptyStatePanelMessage}\n icon={emptyStatePanelIcon}\n className={classes.emptyState}\n />\n )}\n {footer && (\n <HvActionBar\n id={setId(id, \"action-bar\")}\n classes={{\n root: classes.actionBarRoot,\n }}\n className={classes.actionBar}\n >\n {footer}\n </HvActionBar>\n )}\n </HvPanel>\n );\n};\n\nHvNotificationPanel.propTypes = {\n /**\n * Id to be applied to the root node of the panel.\n */\n id: PropTypes.string,\n /**\n * Class names to be applied to the root element.\n */\n className: PropTypes.string,\n /**\n * 'true' if panel is open or 'false' if the panel is not open\n *\n * @deprecated This logic should be external, i.e. using the HvAppSwitcherPanel inside a Drawer component.\n */\n open: deprecatedPropType(PropTypes.bool),\n /**\n * A Jss Object used to override or extend the styles applied.\n */\n classes: PropTypes.shape({\n /**\n * styles object applied to the root\n */\n root: PropTypes.string,\n /**\n * styles object applied to the root when closed\n */\n closed: PropTypes.string,\n /**\n * styles object applied to the root when open\n */\n open: PropTypes.string,\n /**\n * styles object applied to the panel\n */\n panel: PropTypes.string,\n /**\n * styles object applied to the action bar\n */\n actionBar: PropTypes.string,\n /**\n * styles object applied to the root of the action bar\n */\n actionBarRoot: PropTypes.string,\n /**\n * styles object applied to the new notification indicator\n */\n notificationsIndicator: PropTypes.string,\n /**\n * styles object applied to the empty state panel\n */\n emptyState: PropTypes.string,\n }).isRequired,\n /**\n * The properties of the notifications to be rendered in the Panel.\n */\n notifications: PropTypes.arrayOf(\n PropTypes.shape({\n id: PropTypes.string.isRequired,\n title: PropTypes.string.isRequired,\n isRead: PropTypes.bool.isRequired,\n date: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.object]).isRequired,\n icon: PropTypes.element,\n onClick: PropTypes.func,\n onKeyPress: PropTypes.func,\n onToggle: PropTypes.func,\n actions: PropTypes.shape({\n label: PropTypes.bool,\n action: PropTypes.string,\n callback: PropTypes.func,\n dropDownMenuProps: PropTypes.instanceOf(Object),\n }),\n })\n ),\n /**\n * Whether to render the new notifications indicator\n */\n hasNewNotifications: PropTypes.bool,\n /**\n * Action buttons to render in footer\n */\n footer: PropTypes.node,\n /**\n * Title of the EmptyStatePanel\n */\n emptyStatePanelTitle: PropTypes.string,\n /**\n * Message of the EmptyStatePanel\n */\n emptyStatePanelMessage: PropTypes.string,\n /**\n * Empty Panel custom Icon\n */\n emptyStatePanelIcon: PropTypes.node,\n /**\n * Labels to apply to the Panel\n */\n labels: PropTypes.shape({\n /**\n * Labels to apply to the groups separating newer and older notifications\n */\n notificationGroupHeader: {\n olderNotifications: PropTypes.string,\n newNotifications: PropTypes.string,\n },\n /**\n * Labels to apply to the element of the New Notifications Indicator\n */\n notificationIndicator: {\n label: PropTypes.string,\n buttonLabel: PropTypes.string,\n },\n }),\n /**\n * Function to be supplied to the notification update button\n */\n newNotificationsButtonAction: PropTypes.func,\n /**\n * The locale to be used on the notification date, if undefined it will use the one from the HvProvider\n */\n locale: PropTypes.string,\n};\n\nexport default withStyles(styles, { name: \"HvNotificationPanel\" })(HvNotificationPanel);\n"],"mappings":";;;;;AAAA,OAAOA,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AACvC,OAAOC,SAAS,MAAM,YAAY;AAClC,OAAOC,IAAI,MAAM,MAAM;AACvB,SAASC,kBAAkB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