@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
@@ -5,13 +5,13 @@ import localeData from "dayjs/plugin/localeData";
5
5
  import localizedFormat from "dayjs/plugin/localizedFormat";
6
6
  import relativeTime from "dayjs/plugin/relativeTime";
7
7
  import updateLocale from "dayjs/plugin/updateLocale";
8
+
8
9
  /**
9
10
  * Relative time thresholds defined by
10
11
  * {@link https://xd.adobe.com/view/1b7df235-5cf8-4b51-a2f0-0be1bb591c55-4e2e/ Design System}
11
12
  *
12
13
  * Implementation using day.js {@link https://day.js.org/docs/en/customization/relative-time relativeTime}
13
14
  */
14
-
15
15
  var thresholds = [{
16
16
  l: "s",
17
17
  r: 119,
@@ -69,7 +69,6 @@ export var secondsUntilNextDay = function secondsUntilNextDay() {
69
69
  midnight.setMilliseconds(0);
70
70
  return (midnight.getTime() - date.getTime()) / 1000;
71
71
  };
72
-
73
72
  var secondsUntilNextWeek = function secondsUntilNextWeek() {
74
73
  var date = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : new Date();
75
74
  var firstMonthDayOfWeek = date.getDate() - date.getDay();
@@ -83,6 +82,7 @@ var secondsUntilNextWeek = function secondsUntilNextWeek() {
83
82
  firstDayNextWeek.setMilliseconds(0);
84
83
  return (firstDayNextWeek.getTime() - date.getTime()) / 1000;
85
84
  };
85
+
86
86
  /**
87
87
  * @typedef {Object} TimeAgo
88
88
  * @property {string} timeAgo - the formatted date using the "time ago format"
@@ -99,66 +99,64 @@ var secondsUntilNextWeek = function secondsUntilNextWeek() {
99
99
  *
100
100
  * @return {TimeAgo} the formatted date using the "time ago format" and the time until it needs to be updated
101
101
  */
102
-
103
-
104
102
  export var formatTimeAgo = function formatTimeAgo(date, locale) {
105
103
  var showSeconds = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
106
104
  var referenceDate = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : new Date();
107
105
  var dayReferenceDate = dayjs(referenceDate);
108
106
  var dayDate = dayjs(date).locale(locale);
109
107
  var dayDiffSeconds = dayReferenceDate.diff(dayDate, "second");
110
- var formatUseSeconds = showSeconds ? "LTS" : "LT"; // check if the date is after the reference date
108
+ var formatUseSeconds = showSeconds ? "LTS" : "LT";
111
109
 
110
+ // check if the date is after the reference date
112
111
  if (date.getTime() > referenceDate.getTime()) {
113
112
  return {
114
113
  timeAgo: dayDate.format("L ".concat(formatUseSeconds)),
115
114
  delay: (date.getTime() - referenceDate.getTime()) / 1000
116
115
  };
117
- } // just now, until the 2 minutes
118
-
116
+ }
119
117
 
118
+ // just now, until the 2 minutes
120
119
  if (dayDiffSeconds < 120) {
121
120
  return {
122
121
  timeAgo: dayjs.duration(dayDiffSeconds, "second").locale(locale).humanize(),
123
122
  delay: 120 - dayDiffSeconds
124
123
  };
125
- } // ago in minutes, until the 1 hour mark
126
-
124
+ }
127
125
 
126
+ // ago in minutes, until the 1 hour mark
128
127
  var dayDiffMinutes = dayReferenceDate.diff(dayDate, "minute");
129
-
130
128
  if (dayDiffMinutes < 60) {
131
129
  return {
132
130
  timeAgo: dayjs.duration(-dayDiffMinutes, "minute").locale(locale).humanize(true),
133
131
  delay: 60 * (dayDiffMinutes + 1) - dayDiffSeconds
134
132
  };
135
- } // formatted date with text description for today
136
-
133
+ }
137
134
 
135
+ // formatted date with text description for today
138
136
  if (dayReferenceDate.isSame(dayDate, "day")) {
139
137
  return {
140
138
  timeAgo: "".concat(dayDate.calendar(dayReferenceDate)),
141
139
  delay: secondsUntilNextDay(referenceDate)
142
140
  };
143
- } // formatted date with text description for yesterday
144
-
141
+ }
145
142
 
143
+ // formatted date with text description for yesterday
146
144
  if (dayReferenceDate.subtract(1, "day").isSame(dayDate, "day")) {
147
145
  return {
148
146
  timeAgo: "".concat(dayDate.calendar(dayReferenceDate)),
149
147
  delay: secondsUntilNextDay(referenceDate)
150
148
  };
151
- } // formatted date with week during the current week
152
-
149
+ }
153
150
 
151
+ // formatted date with week during the current week
154
152
  if (dayDate.isSame(dayReferenceDate, "week")) {
155
153
  return {
156
154
  timeAgo: dayDate.format("ddd, ".concat(formatUseSeconds)),
157
155
  delay: secondsUntilNextWeek(date)
158
156
  };
159
- } // formatted without special gimmicks
160
-
157
+ }
161
158
 
159
+ // formatted without special gimmicks
162
160
  return {
163
161
  timeAgo: dayDate.format("L ".concat(formatUseSeconds)),
164
162
  delay: 0
@@ -1 +1 @@
1
- {"version":3,"file":"formatUtils.js","names":["dayjs","calendar","duration","localeData","localizedFormat","relativeTime","updateLocale","thresholds","l","r","d","extend","secondsUntilNextDay","date","Date","midnight","getTime","setDate","getDate","setHours","setMinutes","setSeconds","setMilliseconds","secondsUntilNextWeek","firstMonthDayOfWeek","getDay","firstMonthDayOfNextWeek","firstDayNextWeek","formatTimeAgo","locale","showSeconds","referenceDate","dayReferenceDate","dayDate","dayDiffSeconds","diff","formatUseSeconds","timeAgo","format","delay","humanize","dayDiffMinutes","isSame","subtract"],"sources":["../../../src/TimeAgo/formatUtils.js"],"sourcesContent":["import dayjs from \"dayjs\";\nimport calendar from \"dayjs/plugin/calendar\";\nimport duration from \"dayjs/plugin/duration\";\nimport localeData from \"dayjs/plugin/localeData\";\nimport localizedFormat from \"dayjs/plugin/localizedFormat\";\nimport relativeTime from \"dayjs/plugin/relativeTime\";\nimport updateLocale from \"dayjs/plugin/updateLocale\";\n\n/**\n * Relative time thresholds defined by\n * {@link https://xd.adobe.com/view/1b7df235-5cf8-4b51-a2f0-0be1bb591c55-4e2e/ Design System}\n *\n * Implementation using day.js {@link https://day.js.org/docs/en/customization/relative-time relativeTime}\n */\nconst thresholds = [\n { l: \"s\", r: 119, d: \"second\" },\n { l: \"m\", r: 1 },\n { l: \"mm\", r: 59, d: \"minute\" },\n { l: \"h\", r: 1 },\n { l: \"hh\", r: 23, d: \"hour\" },\n { l: \"d\", r: 1 },\n { l: \"dd\", r: 29, d: \"day\" },\n { l: \"M\", r: 1 },\n { l: \"MM\", r: 11, d: \"month\" },\n { l: \"y\", r: 17 },\n { l: \"yy\", d: \"year\" },\n];\n\ndayjs.extend(localeData);\ndayjs.extend(duration);\ndayjs.extend(calendar);\ndayjs.extend(localizedFormat);\ndayjs.extend(relativeTime, { thresholds });\ndayjs.extend(updateLocale);\n\nexport const secondsUntilNextDay = (date = new Date()) => {\n const midnight = new Date(date.getTime());\n\n midnight.setDate(midnight.getDate() + 1);\n midnight.setHours(0);\n midnight.setMinutes(0);\n midnight.setSeconds(0);\n midnight.setMilliseconds(0);\n\n return (midnight.getTime() - date.getTime()) / 1000;\n};\n\nconst secondsUntilNextWeek = (date = new Date()) => {\n const firstMonthDayOfWeek = date.getDate() - date.getDay();\n const firstMonthDayOfNextWeek = firstMonthDayOfWeek + 7; // auto roll over to next month if needed\n\n const firstDayNextWeek = new Date(date.getTime());\n\n firstDayNextWeek.setDate(firstMonthDayOfNextWeek);\n firstDayNextWeek.setHours(0);\n firstDayNextWeek.setMinutes(0);\n firstDayNextWeek.setSeconds(0);\n firstDayNextWeek.setMilliseconds(0);\n\n return (firstDayNextWeek.getTime() - date.getTime()) / 1000;\n};\n\n/**\n * @typedef {Object} TimeAgo\n * @property {string} timeAgo - the formatted date using the \"time ago format\"\n * @property {number} delay - the time until the date needs to be updated\n */\n\n/**\n * Formats a date to the a relative time format using dayjs.\n *\n * @param {Date} date - date to format.\n * @param {String} locale - locale to use.\n * @param {Boolean} [showSeconds=false] - if seconds should be part of the result.\n * @param {Date} referenceDate - reference date to use when formatting (defaults to current date).\n *\n * @return {TimeAgo} the formatted date using the \"time ago format\" and the time until it needs to be updated\n */\nexport const formatTimeAgo = (date, locale, showSeconds = false, referenceDate = new Date()) => {\n const dayReferenceDate = dayjs(referenceDate);\n const dayDate = dayjs(date).locale(locale);\n\n const dayDiffSeconds = dayReferenceDate.diff(dayDate, \"second\");\n\n const formatUseSeconds = showSeconds ? \"LTS\" : \"LT\";\n\n // check if the date is after the reference date\n if (date.getTime() > referenceDate.getTime()) {\n return {\n timeAgo: dayDate.format(`L ${formatUseSeconds}`),\n delay: (date.getTime() - referenceDate.getTime()) / 1000,\n };\n }\n\n // just now, until the 2 minutes\n if (dayDiffSeconds < 120) {\n return {\n timeAgo: dayjs.duration(dayDiffSeconds, \"second\").locale(locale).humanize(),\n delay: 120 - dayDiffSeconds,\n };\n }\n\n // ago in minutes, until the 1 hour mark\n const dayDiffMinutes = dayReferenceDate.diff(dayDate, \"minute\");\n\n if (dayDiffMinutes < 60) {\n return {\n timeAgo: dayjs.duration(-dayDiffMinutes, \"minute\").locale(locale).humanize(true),\n delay: 60 * (dayDiffMinutes + 1) - dayDiffSeconds,\n };\n }\n\n // formatted date with text description for today\n if (dayReferenceDate.isSame(dayDate, \"day\")) {\n return {\n timeAgo: `${dayDate.calendar(dayReferenceDate)}`,\n delay: secondsUntilNextDay(referenceDate),\n };\n }\n\n // formatted date with text description for yesterday\n if (dayReferenceDate.subtract(1, \"day\").isSame(dayDate, \"day\")) {\n return {\n timeAgo: `${dayDate.calendar(dayReferenceDate)}`,\n delay: secondsUntilNextDay(referenceDate),\n };\n }\n\n // formatted date with week during the current week\n if (dayDate.isSame(dayReferenceDate, \"week\")) {\n return {\n timeAgo: dayDate.format(`ddd, ${formatUseSeconds}`),\n delay: secondsUntilNextWeek(date),\n };\n }\n\n // formatted without special gimmicks\n return {\n timeAgo: dayDate.format(`L ${formatUseSeconds}`),\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,CAAvB;;EAEA,IAAIQ,cAAc,GAAG,EAArB,EAAyB;IACvB,OAAO;MACLJ,OAAO,EAAErC,KAAK,CAACE,QAAN,CAAe,CAACuC,cAAhB,EAAgC,QAAhC,EAA0CZ,MAA1C,CAAiDA,MAAjD,EAAyDW,QAAzD,CAAkE,IAAlE,CADJ;MAELD,KAAK,EAAE,MAAME,cAAc,GAAG,CAAvB,IAA4BP;IAF9B,CAAP;EAID,CAhC6F,CAkC9F;;;EACA,IAAIF,gBAAgB,CAACU,MAAjB,CAAwBT,OAAxB,EAAiC,KAAjC,CAAJ,EAA6C;IAC3C,OAAO;MACLI,OAAO,YAAKJ,OAAO,CAAChC,QAAR,CAAiB+B,gBAAjB,CAAL,CADF;MAELO,KAAK,EAAE3B,mBAAmB,CAACmB,aAAD;IAFrB,CAAP;EAID,CAxC6F,CA0C9F;;;EACA,IAAIC,gBAAgB,CAACW,QAAjB,CAA0B,CAA1B,EAA6B,KAA7B,EAAoCD,MAApC,CAA2CT,OAA3C,EAAoD,KAApD,CAAJ,EAAgE;IAC9D,OAAO;MACLI,OAAO,YAAKJ,OAAO,CAAChC,QAAR,CAAiB+B,gBAAjB,CAAL,CADF;MAELO,KAAK,EAAE3B,mBAAmB,CAACmB,aAAD;IAFrB,CAAP;EAID,CAhD6F,CAkD9F;;;EACA,IAAIE,OAAO,CAACS,MAAR,CAAeV,gBAAf,EAAiC,MAAjC,CAAJ,EAA8C;IAC5C,OAAO;MACLK,OAAO,EAAEJ,OAAO,CAACK,MAAR,gBAAuBF,gBAAvB,EADJ;MAELG,KAAK,EAAEhB,oBAAoB,CAACV,IAAD;IAFtB,CAAP;EAID,CAxD6F,CA0D9F;;;EACA,OAAO;IACLwB,OAAO,EAAEJ,OAAO,CAACK,MAAR,aAAoBF,gBAApB,EADJ;IAELG,KAAK,EAAE;EAFF,CAAP;AAID,CA/DM"}
1
+ {"version":3,"file":"formatUtils.js","names":["dayjs","calendar","duration","localeData","localizedFormat","relativeTime","updateLocale","thresholds","l","r","d","extend","secondsUntilNextDay","date","Date","midnight","getTime","setDate","getDate","setHours","setMinutes","setSeconds","setMilliseconds","secondsUntilNextWeek","firstMonthDayOfWeek","getDay","firstMonthDayOfNextWeek","firstDayNextWeek","formatTimeAgo","locale","showSeconds","referenceDate","dayReferenceDate","dayDate","dayDiffSeconds","diff","formatUseSeconds","timeAgo","format","delay","humanize","dayDiffMinutes","isSame","subtract"],"sources":["../../../src/TimeAgo/formatUtils.js"],"sourcesContent":["import dayjs from \"dayjs\";\nimport calendar from \"dayjs/plugin/calendar\";\nimport duration from \"dayjs/plugin/duration\";\nimport localeData from \"dayjs/plugin/localeData\";\nimport localizedFormat from \"dayjs/plugin/localizedFormat\";\nimport relativeTime from \"dayjs/plugin/relativeTime\";\nimport updateLocale from \"dayjs/plugin/updateLocale\";\n\n/**\n * Relative time thresholds defined by\n * {@link https://xd.adobe.com/view/1b7df235-5cf8-4b51-a2f0-0be1bb591c55-4e2e/ Design System}\n *\n * Implementation using day.js {@link https://day.js.org/docs/en/customization/relative-time relativeTime}\n */\nconst thresholds = [\n { l: \"s\", r: 119, d: \"second\" },\n { l: \"m\", r: 1 },\n { l: \"mm\", r: 59, d: \"minute\" },\n { l: \"h\", r: 1 },\n { l: \"hh\", r: 23, d: \"hour\" },\n { l: \"d\", r: 1 },\n { l: \"dd\", r: 29, d: \"day\" },\n { l: \"M\", r: 1 },\n { l: \"MM\", r: 11, d: \"month\" },\n { l: \"y\", r: 17 },\n { l: \"yy\", d: \"year\" },\n];\n\ndayjs.extend(localeData);\ndayjs.extend(duration);\ndayjs.extend(calendar);\ndayjs.extend(localizedFormat);\ndayjs.extend(relativeTime, { thresholds });\ndayjs.extend(updateLocale);\n\nexport const secondsUntilNextDay = (date = new Date()) => {\n const midnight = new Date(date.getTime());\n\n midnight.setDate(midnight.getDate() + 1);\n midnight.setHours(0);\n midnight.setMinutes(0);\n midnight.setSeconds(0);\n midnight.setMilliseconds(0);\n\n return (midnight.getTime() - date.getTime()) / 1000;\n};\n\nconst secondsUntilNextWeek = (date = new Date()) => {\n const firstMonthDayOfWeek = date.getDate() - date.getDay();\n const firstMonthDayOfNextWeek = firstMonthDayOfWeek + 7; // auto roll over to next month if needed\n\n const firstDayNextWeek = new Date(date.getTime());\n\n firstDayNextWeek.setDate(firstMonthDayOfNextWeek);\n firstDayNextWeek.setHours(0);\n firstDayNextWeek.setMinutes(0);\n firstDayNextWeek.setSeconds(0);\n firstDayNextWeek.setMilliseconds(0);\n\n return (firstDayNextWeek.getTime() - date.getTime()) / 1000;\n};\n\n/**\n * @typedef {Object} TimeAgo\n * @property {string} timeAgo - the formatted date using the \"time ago format\"\n * @property {number} delay - the time until the date needs to be updated\n */\n\n/**\n * Formats a date to the a relative time format using dayjs.\n *\n * @param {Date} date - date to format.\n * @param {String} locale - locale to use.\n * @param {Boolean} [showSeconds=false] - if seconds should be part of the result.\n * @param {Date} referenceDate - reference date to use when formatting (defaults to current date).\n *\n * @return {TimeAgo} the formatted date using the \"time ago format\" and the time until it needs to be updated\n */\nexport const formatTimeAgo = (date, locale, showSeconds = false, referenceDate = new Date()) => {\n const dayReferenceDate = dayjs(referenceDate);\n const dayDate = dayjs(date).locale(locale);\n\n const dayDiffSeconds = dayReferenceDate.diff(dayDate, \"second\");\n\n const formatUseSeconds = showSeconds ? \"LTS\" : \"LT\";\n\n // check if the date is after the reference date\n if (date.getTime() > referenceDate.getTime()) {\n return {\n timeAgo: dayDate.format(`L ${formatUseSeconds}`),\n delay: (date.getTime() - referenceDate.getTime()) / 1000,\n };\n }\n\n // just now, until the 2 minutes\n if (dayDiffSeconds < 120) {\n return {\n timeAgo: dayjs.duration(dayDiffSeconds, \"second\").locale(locale).humanize(),\n delay: 120 - dayDiffSeconds,\n };\n }\n\n // ago in minutes, until the 1 hour mark\n const dayDiffMinutes = dayReferenceDate.diff(dayDate, \"minute\");\n\n if (dayDiffMinutes < 60) {\n return {\n timeAgo: dayjs.duration(-dayDiffMinutes, \"minute\").locale(locale).humanize(true),\n delay: 60 * (dayDiffMinutes + 1) - dayDiffSeconds,\n };\n }\n\n // formatted date with text description for today\n if (dayReferenceDate.isSame(dayDate, \"day\")) {\n return {\n timeAgo: `${dayDate.calendar(dayReferenceDate)}`,\n delay: secondsUntilNextDay(referenceDate),\n };\n }\n\n // formatted date with text description for yesterday\n if (dayReferenceDate.subtract(1, \"day\").isSame(dayDate, \"day\")) {\n return {\n timeAgo: `${dayDate.calendar(dayReferenceDate)}`,\n delay: secondsUntilNextDay(referenceDate),\n };\n }\n\n // formatted date with week during the current week\n if (dayDate.isSame(dayReferenceDate, \"week\")) {\n return {\n timeAgo: dayDate.format(`ddd, ${formatUseSeconds}`),\n delay: secondsUntilNextWeek(date),\n };\n }\n\n // formatted without special gimmicks\n return {\n timeAgo: dayDate.format(`L ${formatUseSeconds}`),\n delay: 0,\n };\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,QAAQ,MAAM,uBAAuB;AAC5C,OAAOC,QAAQ,MAAM,uBAAuB;AAC5C,OAAOC,UAAU,MAAM,yBAAyB;AAChD,OAAOC,eAAe,MAAM,8BAA8B;AAC1D,OAAOC,YAAY,MAAM,2BAA2B;AACpD,OAAOC,YAAY,MAAM,2BAA2B;;AAEpD;AACA;AACA;AACA;AACA;AACA;AACA,IAAMC,UAAU,GAAG,CACjB;EAAEC,CAAC,EAAE,GAAG;EAAEC,CAAC,EAAE,GAAG;EAAEC,CAAC,EAAE;AAAS,CAAC,EAC/B;EAAEF,CAAC,EAAE,GAAG;EAAEC,CAAC,EAAE;AAAE,CAAC,EAChB;EAAED,CAAC,EAAE,IAAI;EAAEC,CAAC,EAAE,EAAE;EAAEC,CAAC,EAAE;AAAS,CAAC,EAC/B;EAAEF,CAAC,EAAE,GAAG;EAAEC,CAAC,EAAE;AAAE,CAAC,EAChB;EAAED,CAAC,EAAE,IAAI;EAAEC,CAAC,EAAE,EAAE;EAAEC,CAAC,EAAE;AAAO,CAAC,EAC7B;EA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BAAgB,CAAC,CAAE;MAChDO,KAAK,EAAE3B,mBAAmB,CAACmB,aAAa;IAC1C,CAAC;EACH;;EAEA;EACA,IAAIE,OAAO,CAACS,MAAM,CAACV,gBAAgB,EAAE,MAAM,CAAC,EAAE;IAC5C,OAAO;MACLK,OAAO,EAAEJ,OAAO,CAACK,MAAM,gBAASF,gBAAgB,EAAG;MACnDG,KAAK,EAAEhB,oBAAoB,CAACV,IAAI;IAClC,CAAC;EACH;;EAEA;EACA,OAAO;IACLwB,OAAO,EAAEJ,OAAO,CAACK,MAAM,aAAMF,gBAAgB,EAAG;IAChDG,KAAK,EAAE;EACT,CAAC;AACH,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["default","useTimeAgo"],"sources":["../../../src/TimeAgo/index.js"],"sourcesContent":["export { default } from \"./TimeAgo\";\nexport { default as useTimeAgo } from \"./useTimeAgo\";\n"],"mappings":"AAAA,SAASA,OAAT,QAAwB,WAAxB;AACA,SAASA,OAAO,IAAIC,UAApB,QAAsC,cAAtC"}
1
+ {"version":3,"file":"index.js","names":["default","useTimeAgo"],"sources":["../../../src/TimeAgo/index.js"],"sourcesContent":["export { default } from \"./TimeAgo\";\nexport { default as useTimeAgo } from \"./useTimeAgo\";\n"],"mappings":"AAAA,SAASA,OAAO,QAAQ,WAAW;AACnC,SAASA,OAAO,IAAIC,UAAU,QAAQ,cAAc"}
@@ -1 +1 @@
1
- {"version":3,"file":"styles.js","names":["styles","root"],"sources":["../../../src/TimeAgo/styles.js"],"sourcesContent":["const styles = {\n root: {},\n};\n\nexport default styles;\n"],"mappings":"AAAA,IAAMA,MAAM,GAAG;EACbC,IAAI,EAAE;AADO,CAAf;AAIA,eAAeD,MAAf"}
1
+ {"version":3,"file":"styles.js","names":["styles","root"],"sources":["../../../src/TimeAgo/styles.js"],"sourcesContent":["const styles = {\n root: {},\n};\n\nexport default styles;\n"],"mappings":"AAAA,IAAMA,MAAM,GAAG;EACbC,IAAI,EAAE,CAAC;AACT,CAAC;AAED,eAAeD,MAAM"}
@@ -2,27 +2,24 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
2
2
  import { useEffect, useState } from "react";
3
3
  import useTimeout from "./useTimeout";
4
4
  import { formatTimeAgo } from "./formatUtils";
5
+
5
6
  /**
6
7
  * Calls `formatTimeAgo` with timestamp conversion
7
8
  */
8
-
9
9
  var fmt = function fmt(timestamp, locale, showSeconds) {
10
10
  var timestampMs = String(timestamp).length > 11 ? timestamp : timestamp * 1000;
11
11
  return formatTimeAgo(new Date(timestampMs), locale, showSeconds);
12
12
  };
13
-
14
13
  export default function useTimeAgo(timestamp, options) {
15
14
  var locale = options.locale,
16
- _options$disableRefre = options.disableRefresh,
17
- disableRefresh = _options$disableRefre === void 0 ? false : _options$disableRefre,
18
- _options$showSeconds = options.showSeconds,
19
- showSeconds = _options$showSeconds === void 0 ? false : _options$showSeconds;
20
-
15
+ _options$disableRefre = options.disableRefresh,
16
+ disableRefresh = _options$disableRefre === void 0 ? false : _options$disableRefre,
17
+ _options$showSeconds = options.showSeconds,
18
+ showSeconds = _options$showSeconds === void 0 ? false : _options$showSeconds;
21
19
  var _useState = useState(fmt(timestamp, locale, showSeconds)),
22
- _useState2 = _slicedToArray(_useState, 2),
23
- timeAgo = _useState2[0],
24
- setTimeAgo = _useState2[1];
25
-
20
+ _useState2 = _slicedToArray(_useState, 2),
21
+ timeAgo = _useState2[0],
22
+ setTimeAgo = _useState2[1];
26
23
  var refreshTime = disableRefresh ? 0 : timeAgo.delay * 1000;
27
24
  useEffect(function () {
28
25
  var newTimeAgo = fmt(timestamp, locale, showSeconds);
@@ -1 +1 @@
1
- {"version":3,"file":"useTimeAgo.js","names":["useEffect","useState","useTimeout","formatTimeAgo","fmt","timestamp","locale","showSeconds","timestampMs","String","length","Date","useTimeAgo","options","disableRefresh","timeAgo","setTimeAgo","refreshTime","delay","newTimeAgo"],"sources":["../../../src/TimeAgo/useTimeAgo.js"],"sourcesContent":["import { useEffect, useState } from \"react\";\nimport useTimeout from \"./useTimeout\";\nimport { formatTimeAgo } from \"./formatUtils\";\n\n/**\n * Calls `formatTimeAgo` with timestamp conversion\n */\nconst fmt = (timestamp, locale, showSeconds) => {\n const timestampMs = String(timestamp).length > 11 ? timestamp : timestamp * 1000;\n return formatTimeAgo(new Date(timestampMs), locale, showSeconds);\n};\n\nexport default function useTimeAgo(timestamp, options) {\n const { locale, disableRefresh = false, showSeconds = false } = options;\n const [timeAgo, setTimeAgo] = useState(fmt(timestamp, locale, showSeconds));\n const refreshTime = disableRefresh ? 0 : timeAgo.delay * 1000;\n\n useEffect(() => {\n const newTimeAgo = fmt(timestamp, locale, showSeconds);\n setTimeAgo(newTimeAgo);\n }, [timestamp, locale, showSeconds]);\n\n useTimeout(() => {\n const newTimeAgo = fmt(timestamp, locale, showSeconds);\n setTimeAgo(newTimeAgo);\n }, refreshTime);\n\n return timeAgo.timeAgo;\n}\n"],"mappings":";AAAA,SAASA,SAAT,EAAoBC,QAApB,QAAoC,OAApC;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,aAAT,QAA8B,eAA9B;AAEA;AACA;AACA;;AACA,IAAMC,GAAG,GAAG,SAANA,GAAM,CAACC,SAAD,EAAYC,MAAZ,EAAoBC,WAApB,EAAoC;EAC9C,IAAMC,WAAW,GAAGC,MAAM,CAACJ,SAAD,CAAN,CAAkBK,MAAlB,GAA2B,EAA3B,GAAgCL,SAAhC,GAA4CA,SAAS,GAAG,IAA5E;EACA,OAAOF,aAAa,CAAC,IAAIQ,IAAJ,CAASH,WAAT,CAAD,EAAwBF,MAAxB,EAAgCC,WAAhC,CAApB;AACD,CAHD;;AAKA,eAAe,SAASK,UAAT,CAAoBP,SAApB,EAA+BQ,OAA/B,EAAwC;EACrD,IAAQP,MAAR,GAAgEO,OAAhE,CAAQP,MAAR;EAAA,4BAAgEO,OAAhE,CAAgBC,cAAhB;EAAA,IAAgBA,cAAhB,sCAAiC,KAAjC;EAAA,2BAAgED,OAAhE,CAAwCN,WAAxC;EAAA,IAAwCA,WAAxC,qCAAsD,KAAtD;;EACA,gBAA8BN,QAAQ,CAACG,GAAG,CAACC,SAAD,EAAYC,MAAZ,EAAoBC,WAApB,CAAJ,CAAtC;EAAA;EAAA,IAAOQ,OAAP;EAAA,IAAgBC,UAAhB;;EACA,IAAMC,WAAW,GAAGH,cAAc,GAAG,CAAH,GAAOC,OAAO,CAACG,KAAR,GAAgB,IAAzD;EAEAlB,SAAS,CAAC,YAAM;IACd,IAAMmB,UAAU,GAAGf,GAAG,CAACC,SAAD,EAAYC,MAAZ,EAAoBC,WAApB,CAAtB;IACAS,UAAU,CAACG,UAAD,CAAV;EACD,CAHQ,EAGN,CAACd,SAAD,EAAYC,MAAZ,EAAoBC,WAApB,CAHM,CAAT;EAKAL,UAAU,CAAC,YAAM;IACf,IAAMiB,UAAU,GAAGf,GAAG,CAACC,SAAD,EAAYC,MAAZ,EAAoBC,WAApB,CAAtB;IACAS,UAAU,CAACG,UAAD,CAAV;EACD,CAHS,EAGPF,WAHO,CAAV;EAKA,OAAOF,OAAO,CAACA,OAAf;AACD"}
1
+ {"version":3,"file":"useTimeAgo.js","names":["useEffect","useState","useTimeout","formatTimeAgo","fmt","timestamp","locale","showSeconds","timestampMs","String","length","Date","useTimeAgo","options","disableRefresh","timeAgo","setTimeAgo","refreshTime","delay","newTimeAgo"],"sources":["../../../src/TimeAgo/useTimeAgo.js"],"sourcesContent":["import { useEffect, useState } from \"react\";\nimport useTimeout from \"./useTimeout\";\nimport { formatTimeAgo } from \"./formatUtils\";\n\n/**\n * Calls `formatTimeAgo` with timestamp conversion\n */\nconst fmt = (timestamp, locale, showSeconds) => {\n const timestampMs = String(timestamp).length > 11 ? timestamp : timestamp * 1000;\n return formatTimeAgo(new Date(timestampMs), locale, showSeconds);\n};\n\nexport default function useTimeAgo(timestamp, options) {\n const { locale, disableRefresh = false, showSeconds = false } = options;\n const [timeAgo, setTimeAgo] = useState(fmt(timestamp, locale, showSeconds));\n const refreshTime = disableRefresh ? 0 : timeAgo.delay * 1000;\n\n useEffect(() => {\n const newTimeAgo = fmt(timestamp, locale, showSeconds);\n setTimeAgo(newTimeAgo);\n }, [timestamp, locale, showSeconds]);\n\n useTimeout(() => {\n const newTimeAgo = fmt(timestamp, locale, showSeconds);\n setTimeAgo(newTimeAgo);\n }, refreshTime);\n\n return timeAgo.timeAgo;\n}\n"],"mappings":";AAAA,SAASA,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AAC3C,OAAOC,UAAU,MAAM,cAAc;AACrC,SAASC,aAAa,QAAQ,eAAe;;AAE7C;AACA;AACA;AACA,IAAMC,GAAG,GAAG,SAANA,GAAG,CAAIC,SAAS,EAAEC,MAAM,EAAEC,WAAW,EAAK;EAC9C,IAAMC,WAAW,GAAGC,MAAM,CAACJ,SAAS,CAAC,CAACK,MAAM,GAAG,EAAE,GAAGL,SAAS,GAAGA,SAAS,GAAG,IAAI;EAChF,OAAOF,aAAa,CAAC,IAAIQ,IAAI,CAACH,WAAW,CAAC,EAAEF,MAAM,EAAEC,WAAW,CAAC;AAClE,CAAC;AAED,eAAe,SAASK,UAAU,CAACP,SAAS,EAAEQ,OAAO,EAAE;EACrD,IAAQP,MAAM,GAAkDO,OAAO,CAA/DP,MAAM;IAAA,wBAAkDO,OAAO,CAAvDC,cAAc;IAAdA,cAAc,sCAAG,KAAK;IAAA,uBAA0BD,OAAO,CAA/BN,WAAW;IAAXA,WAAW,qCAAG,KAAK;EAC3D,gBAA8BN,QAAQ,CAACG,GAAG,CAACC,SAAS,EAAEC,MAAM,EAAEC,WAAW,CAAC,CAAC;IAAA;IAApEQ,OAAO;IAAEC,UAAU;EAC1B,IAAMC,WAAW,GAAGH,cAAc,GAAG,CAAC,GAAGC,OAAO,CAACG,KAAK,GAAG,IAAI;EAE7DlB,SAAS,CAAC,YAAM;IACd,IAAMmB,UAAU,GAAGf,GAAG,CAACC,SAAS,EAAEC,MAAM,EAAEC,WAAW,CAAC;IACtDS,UAAU,CAACG,UAAU,CAAC;EACxB,CAAC,EAAE,CAACd,SAAS,EAAEC,MAAM,EAAEC,WAAW,CAAC,CAAC;EAEpCL,UAAU,CAAC,YAAM;IACf,IAAMiB,UAAU,GAAGf,GAAG,CAACC,SAAS,EAAEC,MAAM,EAAEC,WAAW,CAAC;IACtDS,UAAU,CAACG,UAAU,CAAC;EACxB,CAAC,EAAEF,WAAW,CAAC;EAEf,OAAOF,OAAO,CAACA,OAAO;AACxB"}
@@ -1 +1 @@
1
- {"version":3,"file":"useTimeout.js","names":["useEffect","useRef","useTimeout","callback","delay","savedCallback","current","undefined","id","setTimeout","clearTimeout"],"sources":["../../../src/TimeAgo/useTimeout.js"],"sourcesContent":["import { useEffect, useRef } from \"react\";\n\nexport default function useTimeout(callback, delay) {\n const savedCallback = useRef(callback);\n\n useEffect(() => {\n savedCallback.current = callback;\n }, [callback]);\n\n useEffect(() => {\n if (!delay) return undefined;\n\n const id = setTimeout(() => savedCallback.current(), delay);\n return () => clearTimeout(id);\n }, [delay]);\n}\n"],"mappings":"AAAA,SAASA,SAAT,EAAoBC,MAApB,QAAkC,OAAlC;AAEA,eAAe,SAASC,UAAT,CAAoBC,QAApB,EAA8BC,KAA9B,EAAqC;EAClD,IAAMC,aAAa,GAAGJ,MAAM,CAACE,QAAD,CAA5B;EAEAH,SAAS,CAAC,YAAM;IACdK,aAAa,CAACC,OAAd,GAAwBH,QAAxB;EACD,CAFQ,EAEN,CAACA,QAAD,CAFM,CAAT;EAIAH,SAAS,CAAC,YAAM;IACd,IAAI,CAACI,KAAL,EAAY,OAAOG,SAAP;IAEZ,IAAMC,EAAE,GAAGC,UAAU,CAAC;MAAA,OAAMJ,aAAa,CAACC,OAAd,EAAN;IAAA,CAAD,EAAgCF,KAAhC,CAArB;IACA,OAAO;MAAA,OAAMM,YAAY,CAACF,EAAD,CAAlB;IAAA,CAAP;EACD,CALQ,EAKN,CAACJ,KAAD,CALM,CAAT;AAMD"}
1
+ {"version":3,"file":"useTimeout.js","names":["useEffect","useRef","useTimeout","callback","delay","savedCallback","current","undefined","id","setTimeout","clearTimeout"],"sources":["../../../src/TimeAgo/useTimeout.js"],"sourcesContent":["import { useEffect, useRef } from \"react\";\n\nexport default function useTimeout(callback, delay) {\n const savedCallback = useRef(callback);\n\n useEffect(() => {\n savedCallback.current = callback;\n }, [callback]);\n\n useEffect(() => {\n if (!delay) return undefined;\n\n const id = setTimeout(() => savedCallback.current(), delay);\n return () => clearTimeout(id);\n }, [delay]);\n}\n"],"mappings":"AAAA,SAASA,SAAS,EAAEC,MAAM,QAAQ,OAAO;AAEzC,eAAe,SAASC,UAAU,CAACC,QAAQ,EAAEC,KAAK,EAAE;EAClD,IAAMC,aAAa,GAAGJ,MAAM,CAACE,QAAQ,CAAC;EAEtCH,SAAS,CAAC,YAAM;IACdK,aAAa,CAACC,OAAO,GAAGH,QAAQ;EAClC,CAAC,EAAE,CAACA,QAAQ,CAAC,CAAC;EAEdH,SAAS,CAAC,YAAM;IACd,IAAI,CAACI,KAAK,EAAE,OAAOG,SAAS;IAE5B,IAAMC,EAAE,GAAGC,UAAU,CAAC;MAAA,OAAMJ,aAAa,CAACC,OAAO,EAAE;IAAA,GAAEF,KAAK,CAAC;IAC3D,OAAO;MAAA,OAAMM,YAAY,CAACF,EAAE,CAAC;IAAA;EAC/B,CAAC,EAAE,CAACJ,KAAK,CAAC,CAAC;AACb"}
@@ -42,6 +42,10 @@ export type HvWizardProps = StandardProps<
42
42
  * Shows the summary button.
43
43
  */
44
44
  hasSummary?: boolean;
45
+ /**
46
+ * The content of the summary.
47
+ */
48
+ summaryContent?: React.ReactNode;
45
49
  /**
46
50
  * Enables the skip button.
47
51
  */
@@ -8,12 +8,9 @@ import "core-js/modules/es.object.get-own-property-descriptors.js";
8
8
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
9
9
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
10
10
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
11
- var _excluded = ["className", "children", "onClose", "handleSubmit", "title", "open", "skippable", "loading", "hasSummary", "labels", "fixedHeight", "customStep"];
12
-
11
+ var _excluded = ["className", "children", "onClose", "handleSubmit", "title", "open", "skippable", "loading", "hasSummary", "summaryContent", "labels", "fixedHeight", "customStep"];
13
12
  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; }
14
-
15
13
  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; }
16
-
17
14
  import React from "react";
18
15
  import PropTypes from "prop-types";
19
16
  import { withStyles } from "@mui/styles";
@@ -25,50 +22,53 @@ import WizardActions from "./WizardActions";
25
22
  import styles from "./styles";
26
23
  import { jsx as _jsx } from "react/jsx-runtime";
27
24
  import { jsxs as _jsxs } from "react/jsx-runtime";
28
-
29
25
  var HvWizard = function HvWizard(_ref) {
30
26
  var className = _ref.className,
31
- children = _ref.children,
32
- onClose = _ref.onClose,
33
- handleSubmit = _ref.handleSubmit,
34
- title = _ref.title,
35
- open = _ref.open,
36
- _ref$skippable = _ref.skippable,
37
- skippable = _ref$skippable === void 0 ? true : _ref$skippable,
38
- _ref$loading = _ref.loading,
39
- loading = _ref$loading === void 0 ? false : _ref$loading,
40
- _ref$hasSummary = _ref.hasSummary,
41
- hasSummary = _ref$hasSummary === void 0 ? false : _ref$hasSummary,
42
- _ref$labels = _ref.labels,
43
- labels = _ref$labels === void 0 ? {
44
- cancel: "Cancel",
45
- next: "Next",
46
- previous: "Previous",
47
- skip: "Skip",
48
- submit: "Submit",
49
- summary: "Summary"
50
- } : _ref$labels,
51
- _ref$fixedHeight = _ref.fixedHeight,
52
- fixedHeight = _ref$fixedHeight === void 0 ? false : _ref$fixedHeight,
53
- customStep = _ref.customStep,
54
- others = _objectWithoutProperties(_ref, _excluded);
55
-
27
+ children = _ref.children,
28
+ onClose = _ref.onClose,
29
+ handleSubmit = _ref.handleSubmit,
30
+ title = _ref.title,
31
+ open = _ref.open,
32
+ _ref$skippable = _ref.skippable,
33
+ skippable = _ref$skippable === void 0 ? true : _ref$skippable,
34
+ _ref$loading = _ref.loading,
35
+ loading = _ref$loading === void 0 ? false : _ref$loading,
36
+ _ref$hasSummary = _ref.hasSummary,
37
+ hasSummary = _ref$hasSummary === void 0 ? false : _ref$hasSummary,
38
+ summaryContent = _ref.summaryContent,
39
+ _ref$labels = _ref.labels,
40
+ labels = _ref$labels === void 0 ? {
41
+ cancel: "Cancel",
42
+ next: "Next",
43
+ previous: "Previous",
44
+ skip: "Skip",
45
+ submit: "Submit",
46
+ summary: "Summary"
47
+ } : _ref$labels,
48
+ _ref$fixedHeight = _ref.fixedHeight,
49
+ fixedHeight = _ref$fixedHeight === void 0 ? false : _ref$fixedHeight,
50
+ customStep = _ref.customStep,
51
+ others = _objectWithoutProperties(_ref, _excluded);
56
52
  var _React$useState = React.useState({}),
57
- _React$useState2 = _slicedToArray(_React$useState, 2),
58
- context = _React$useState2[0],
59
- setContext = _React$useState2[1];
60
-
61
- var _React$useState3 = React.useState(0),
62
- _React$useState4 = _slicedToArray(_React$useState3, 2),
63
- tab = _React$useState4[0],
64
- setTab = _React$useState4[1];
65
-
53
+ _React$useState2 = _slicedToArray(_React$useState, 2),
54
+ context = _React$useState2[0],
55
+ setContext = _React$useState2[1];
56
+ var _React$useState3 = React.useState(null),
57
+ _React$useState4 = _slicedToArray(_React$useState3, 2),
58
+ summary = _React$useState4[0],
59
+ setSummary = _React$useState4[1];
60
+ var _React$useState5 = React.useState(0),
61
+ _React$useState6 = _slicedToArray(_React$useState5, 2),
62
+ tab = _React$useState6[0],
63
+ setTab = _React$useState6[1];
66
64
  var contextValue = React.useMemo(function () {
67
65
  return {
68
66
  context: context,
69
- setContext: setContext
67
+ setContext: setContext,
68
+ summary: summary,
69
+ setSummary: setSummary
70
70
  };
71
- }, [context, setContext]);
71
+ }, [context, summary]);
72
72
  React.useEffect(function () {
73
73
  if (!open) {
74
74
  setTab(0);
@@ -97,6 +97,7 @@ var HvWizard = function HvWizard(_ref) {
97
97
  loading: loading,
98
98
  fixedHeight: fixedHeight,
99
99
  tab: tab,
100
+ summaryContent: summaryContent,
100
101
  children: children
101
102
  }), /*#__PURE__*/_jsx(WizardActions, {
102
103
  loading: loading,
@@ -110,48 +111,43 @@ var HvWizard = function HvWizard(_ref) {
110
111
  }))
111
112
  });
112
113
  };
113
-
114
114
  process.env.NODE_ENV !== "production" ? HvWizard.propTypes = {
115
115
  /**
116
116
  * Class names to be applied.
117
117
  */
118
118
  className: PropTypes.string,
119
-
120
119
  /**
121
120
  * Current state of the Wizard.
122
121
  */
123
122
  open: PropTypes.bool.isRequired,
124
-
125
123
  /**
126
124
  * Function executed on close.
127
125
  */
128
126
  onClose: PropTypes.func.isRequired,
129
-
130
127
  /**
131
128
  * Function executed on submit.
132
129
  */
133
130
  handleSubmit: PropTypes.func.isRequired,
134
-
135
131
  /**
136
132
  * Enables the skip button.
137
133
  */
138
134
  skippable: PropTypes.bool,
139
-
140
135
  /**
141
136
  * Title for the wizard.
142
137
  */
143
138
  title: PropTypes.string,
144
-
145
139
  /**
146
140
  * Shows the summary button.
147
141
  */
148
142
  hasSummary: PropTypes.bool,
149
-
143
+ /**
144
+ * The content of the summary.
145
+ */
146
+ summaryContent: PropTypes.node,
150
147
  /**
151
148
  * The content of the component.
152
149
  */
153
150
  children: PropTypes.node,
154
-
155
151
  /**
156
152
  * An object containing all the labels for the wizard.
157
153
  */
@@ -160,43 +156,35 @@ process.env.NODE_ENV !== "production" ? HvWizard.propTypes = {
160
156
  * Cancel button label.
161
157
  */
162
158
  cancel: PropTypes.string,
163
-
164
159
  /**
165
160
  * Skip button label.
166
161
  */
167
162
  skip: PropTypes.string,
168
-
169
163
  /**
170
164
  * Previous button label.
171
165
  */
172
166
  previous: PropTypes.string,
173
-
174
167
  /**
175
168
  * Next button label.
176
169
  */
177
170
  next: PropTypes.string,
178
-
179
171
  /**
180
172
  * Submit button label.
181
173
  */
182
174
  submit: PropTypes.string,
183
-
184
175
  /**
185
176
  * Summary button label.
186
177
  */
187
178
  summary: PropTypes.string
188
179
  }),
189
-
190
180
  /**
191
181
  * Forces minimum height to the component.
192
182
  */
193
183
  fixedHeight: PropTypes.bool,
194
-
195
184
  /**
196
185
  * Whether the loading animation is shown.
197
186
  */
198
187
  loading: PropTypes.bool,
199
-
200
188
  /**
201
189
  * Custom object to define type, size and width of the StepNavigation component
202
190
  */
@@ -205,12 +193,10 @@ process.env.NODE_ENV !== "production" ? HvWizard.propTypes = {
205
193
  * Type of step navigation. Values = {"Simple", "Default"}.
206
194
  */
207
195
  type: PropTypes.oneOf(["Simple", "Default"]),
208
-
209
196
  /**
210
197
  * Sets one of the standard sizes of the steps. Values = {"XS", "SM", "MD", "LG", "XL"}
211
198
  */
212
199
  stepSize: PropTypes.oneOf(["XS", "SM", "MD", "LG", "XL"]),
213
-
214
200
  /**
215
201
  * Width of the component element on each breakpoint screen resolution.
216
202
  */
@@ -1 +1 @@
1
- {"version":3,"file":"Wizard.js","names":["React","PropTypes","withStyles","WizardContext","WizardContainer","WizardTitle","WizardContent","WizardActions","styles","HvWizard","className","children","onClose","handleSubmit","title","open","skippable","loading","hasSummary","labels","cancel","next","previous","skip","submit","summary","fixedHeight","customStep","others","useState","context","setContext","tab","setTab","contextValue","useMemo","useEffect","handleClose","useCallback","evt","reason","propTypes","string","bool","isRequired","func","node","shape","type","oneOf","stepSize","width","xs","number","sm","md","lg","xl","name"],"sources":["../../../src/Wizard/Wizard.js"],"sourcesContent":["import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport { withStyles } from \"@mui/styles\";\nimport WizardContext from \"./WizardContext\";\nimport WizardContainer from \"./WizardContainer\";\nimport WizardTitle from \"./WizardTitle\";\nimport WizardContent from \"./WizardContent\";\nimport WizardActions from \"./WizardActions\";\n\nimport styles from \"./styles\";\n\nconst HvWizard = ({\n className,\n children,\n onClose,\n handleSubmit,\n title,\n open,\n skippable = true,\n loading = false,\n hasSummary = false,\n labels = {\n cancel: \"Cancel\",\n next: \"Next\",\n previous: \"Previous\",\n skip: \"Skip\",\n submit: \"Submit\",\n summary: \"Summary\",\n },\n fixedHeight = false,\n customStep,\n ...others\n}) => {\n const [context, setContext] = React.useState({});\n const [tab, setTab] = React.useState(0);\n\n const contextValue = React.useMemo(\n () => ({\n context,\n setContext,\n }),\n [context, setContext]\n );\n\n React.useEffect(() => {\n if (!open) {\n setTab(0);\n }\n }, [open]);\n\n const handleClose = React.useCallback(\n (evt, reason) => {\n if (reason !== \"backdropClick\") {\n onClose(evt, reason);\n }\n },\n [onClose]\n );\n\n return (\n <WizardContext.Provider value={contextValue}>\n <WizardContainer className={className} handleClose={handleClose} open={open} {...others}>\n <WizardTitle\n title={title}\n hasSummary={hasSummary}\n labels={labels}\n tab={tab}\n changeTab={setTab}\n customStep={customStep}\n />\n <WizardContent loading={loading} fixedHeight={fixedHeight} tab={tab}>\n {children}\n </WizardContent>\n <WizardActions\n loading={loading}\n skippable={skippable}\n labels={labels}\n tab={tab}\n changeTab={setTab}\n handleClose={handleClose}\n handleSubmit={handleSubmit}\n />\n </WizardContainer>\n </WizardContext.Provider>\n );\n};\n\nHvWizard.propTypes = {\n /**\n * Class names to be applied.\n */\n className: PropTypes.string,\n /**\n * Current state of the Wizard.\n */\n open: PropTypes.bool.isRequired,\n /**\n * Function executed on close.\n */\n onClose: PropTypes.func.isRequired,\n /**\n * Function executed on submit.\n */\n handleSubmit: PropTypes.func.isRequired,\n /**\n * Enables the skip button.\n */\n skippable: PropTypes.bool,\n /**\n * Title for the wizard.\n */\n title: PropTypes.string,\n /**\n * Shows the summary button.\n */\n hasSummary: PropTypes.bool,\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * An object containing all the labels for the wizard.\n */\n labels: PropTypes.shape({\n /**\n * Cancel button label.\n */\n cancel: PropTypes.string,\n /**\n * Skip button label.\n */\n skip: PropTypes.string,\n /**\n * Previous button label.\n */\n previous: PropTypes.string,\n /**\n * Next button label.\n */\n next: PropTypes.string,\n /**\n * Submit button label.\n */\n submit: PropTypes.string,\n /**\n * Summary button label.\n */\n summary: PropTypes.string,\n }),\n /**\n * Forces minimum height to the component.\n */\n fixedHeight: PropTypes.bool,\n /**\n * Whether the loading animation is shown.\n */\n loading: PropTypes.bool,\n /**\n * Custom object to define type, size and width of the StepNavigation component\n */\n customStep: PropTypes.shape({\n /**\n * Type of step navigation. Values = {\"Simple\", \"Default\"}.\n */\n type: PropTypes.oneOf([\"Simple\", \"Default\"]),\n /**\n * Sets one of the standard sizes of the steps. Values = {\"XS\", \"SM\", \"MD\", \"LG\", \"XL\"}\n */\n stepSize: PropTypes.oneOf([\"XS\", \"SM\", \"MD\", \"LG\", \"XL\"]),\n /**\n * Width of the component element on each breakpoint screen resolution.\n */\n width: PropTypes.shape({\n xs: PropTypes.number,\n sm: PropTypes.number,\n md: PropTypes.number,\n lg: PropTypes.number,\n xl: PropTypes.number,\n }),\n }),\n};\n\nexport default withStyles(styles, { name: \"HvWizard\" })(HvWizard);\n"],"mappings":";;;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,SAASC,UAAT,QAA2B,aAA3B;AACA,OAAOC,aAAP,MAA0B,iBAA1B;AACA,OAAOC,eAAP,MAA4B,mBAA5B;AACA,OAAOC,WAAP,MAAwB,eAAxB;AACA,OAAOC,aAAP,MAA0B,iBAA1B;AACA,OAAOC,aAAP,MAA0B,iBAA1B;AA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ElD,SAAS,CAAC8C,KAAV,CAAgB;MACrBK,EAAE,EAAEnD,SAAS,CAACoD,MADO;MAErBC,EAAE,EAAErD,SAAS,CAACoD,MAFO;MAGrBE,EAAE,EAAEtD,SAAS,CAACoD,MAHO;MAIrBG,EAAE,EAAEvD,SAAS,CAACoD,MAJO;MAKrBI,EAAE,EAAExD,SAAS,CAACoD;IALO,CAAhB;EAZmB,CAAhB;AAzEO,CAArB;AA+FA,eAAenD,UAAU,CAACM,MAAD,EAAS;EAAEkD,IAAI,EAAE;AAAR,CAAT,CAAV,CAAyCjD,QAAzC,CAAf"}
1
+ {"version":3,"file":"Wizard.js","names":["React","PropTypes","withStyles","WizardContext","WizardContainer","WizardTitle","WizardContent","WizardActions","styles","HvWizard","className","children","onClose","handleSubmit","title","open","skippable","loading","hasSummary","summaryContent","labels","cancel","next","previous","skip","submit","summary","fixedHeight","customStep","others","useState","context","setContext","setSummary","tab","setTab","contextValue","useMemo","useEffect","handleClose","useCallback","evt","reason","propTypes","string","bool","isRequired","func","node","shape","type","oneOf","stepSize","width","xs","number","sm","md","lg","xl","name"],"sources":["../../../src/Wizard/Wizard.js"],"sourcesContent":["import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport { withStyles } from \"@mui/styles\";\nimport WizardContext from \"./WizardContext\";\nimport WizardContainer from \"./WizardContainer\";\nimport WizardTitle from \"./WizardTitle\";\nimport WizardContent from \"./WizardContent\";\nimport WizardActions from \"./WizardActions\";\n\nimport styles from \"./styles\";\n\nconst HvWizard = ({\n className,\n children,\n onClose,\n handleSubmit,\n title,\n open,\n skippable = true,\n loading = false,\n hasSummary = false,\n summaryContent,\n labels = {\n cancel: \"Cancel\",\n next: \"Next\",\n previous: \"Previous\",\n skip: \"Skip\",\n submit: \"Submit\",\n summary: \"Summary\",\n },\n fixedHeight = false,\n customStep,\n ...others\n}) => {\n const [context, setContext] = React.useState({});\n const [summary, setSummary] = React.useState(null);\n const [tab, setTab] = React.useState(0);\n\n const contextValue = React.useMemo(\n () => ({\n context,\n setContext,\n summary,\n setSummary,\n }),\n [context, summary]\n );\n\n React.useEffect(() => {\n if (!open) {\n setTab(0);\n }\n }, [open]);\n\n const handleClose = React.useCallback(\n (evt, reason) => {\n if (reason !== \"backdropClick\") {\n onClose(evt, reason);\n }\n },\n [onClose]\n );\n\n return (\n <WizardContext.Provider value={contextValue}>\n <WizardContainer className={className} handleClose={handleClose} open={open} {...others}>\n <WizardTitle\n title={title}\n hasSummary={hasSummary}\n labels={labels}\n tab={tab}\n changeTab={setTab}\n customStep={customStep}\n />\n <WizardContent\n loading={loading}\n fixedHeight={fixedHeight}\n tab={tab}\n summaryContent={summaryContent}\n >\n {children}\n </WizardContent>\n <WizardActions\n loading={loading}\n skippable={skippable}\n labels={labels}\n tab={tab}\n changeTab={setTab}\n handleClose={handleClose}\n handleSubmit={handleSubmit}\n />\n </WizardContainer>\n </WizardContext.Provider>\n );\n};\n\nHvWizard.propTypes = {\n /**\n * Class names to be applied.\n */\n className: PropTypes.string,\n /**\n * Current state of the Wizard.\n */\n open: PropTypes.bool.isRequired,\n /**\n * Function executed on close.\n */\n onClose: PropTypes.func.isRequired,\n /**\n * Function executed on submit.\n */\n handleSubmit: PropTypes.func.isRequired,\n /**\n * Enables the skip button.\n */\n skippable: PropTypes.bool,\n /**\n * Title for the wizard.\n */\n title: PropTypes.string,\n /**\n * Shows the summary button.\n */\n hasSummary: PropTypes.bool,\n /**\n * The content of the summary.\n */\n summaryContent: PropTypes.node,\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * An object containing all the labels for the wizard.\n */\n labels: PropTypes.shape({\n /**\n * Cancel button label.\n */\n cancel: PropTypes.string,\n /**\n * Skip button label.\n */\n skip: PropTypes.string,\n /**\n * Previous button label.\n */\n previous: PropTypes.string,\n /**\n * Next button label.\n */\n next: PropTypes.string,\n /**\n * Submit button label.\n */\n submit: PropTypes.string,\n /**\n * Summary button label.\n */\n summary: PropTypes.string,\n }),\n /**\n * Forces minimum height to the component.\n */\n fixedHeight: PropTypes.bool,\n /**\n * Whether the loading animation is shown.\n */\n loading: PropTypes.bool,\n /**\n * Custom object to define type, size and width of the StepNavigation component\n */\n customStep: PropTypes.shape({\n /**\n * Type of step navigation. Values = {\"Simple\", \"Default\"}.\n */\n type: PropTypes.oneOf([\"Simple\", \"Default\"]),\n /**\n * Sets one of the standard sizes of the steps. Values = {\"XS\", \"SM\", \"MD\", \"LG\", \"XL\"}\n */\n stepSize: PropTypes.oneOf([\"XS\", \"SM\", \"MD\", \"LG\", \"XL\"]),\n /**\n * Width of the component element on each breakpoint screen resolution.\n */\n width: PropTypes.shape({\n xs: PropTypes.number,\n sm: PropTypes.number,\n md: PropTypes.number,\n lg: PropTypes.number,\n xl: PropTypes.number,\n }),\n }),\n};\n\nexport default withStyles(styles, { name: \"HvWizard\" })(HvWizard);\n"],"mappings":";;;;;;;;;;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAClC,SAASC,UAAU,QAAQ,aAAa;AACxC,OAAOC,aAAa,MAAM,iBAAiB;AAC3C,OAAOC,eAAe,MAAM,mBAAmB;AAC/C,OAAOC,WAAW,MAAM,eAAe;AACvC,OAAOC,aAAa,MAAM,iBAAiB;AAC3C,OAAOC,aAAa,MAAM,iBAAiB;AAE3C,OAAOC,MAAM,MAAM,UAAU;AAAC;AAAA;AAE9B,IAAMC,QAAQ,GAAG,SAAXA,QAAQ,OAsBR;EAAA,IArBJC,SAAS,QAATA,SAAS;IACTC,QAAQ,QAARA,QAAQ;IACRC,OAAO,QAAPA,OAAO;IACPC,YAAY,QAAZA,YAAY;IACZC,KAAK,QAALA,KAAK;IACLC,IAAI,QAAJA,IAAI;IAAA,sBACJC,SAAS;IAATA,SAAS,+BAAG,IAAI;IAAA,oBAChBC,OAAO;IAAPA,OAAO,6BAAG,KAAK;IAAA,uBACfC,UAAU;IAAVA,UAAU,gCAAG,KAAK;IAClBC,cAAc,QAAdA,cAAc;IAAA,mB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