@hitachivantara/uikit-react-lab 4.0.2 → 4.0.4

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 (450) 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.js +39 -106
  103. package/dist/StepNavigation/StepNavigation.js.map +1 -1
  104. package/dist/StepNavigation/index.js +0 -2
  105. package/dist/StepNavigation/index.js.map +1 -1
  106. package/dist/StepNavigation/styles.js +0 -2
  107. package/dist/StepNavigation/styles.js.map +1 -1
  108. package/dist/StepNavigation/utils.js.map +1 -1
  109. package/dist/TimeAgo/TimeAgo.js +13 -44
  110. package/dist/TimeAgo/TimeAgo.js.map +1 -1
  111. package/dist/TimeAgo/formatUtils.js +15 -35
  112. package/dist/TimeAgo/formatUtils.js.map +1 -1
  113. package/dist/TimeAgo/index.js +0 -3
  114. package/dist/TimeAgo/index.js.map +1 -1
  115. package/dist/TimeAgo/styles.js.map +1 -1
  116. package/dist/TimeAgo/useTimeAgo.js +7 -16
  117. package/dist/TimeAgo/useTimeAgo.js.map +1 -1
  118. package/dist/TimeAgo/useTimeout.js +0 -2
  119. package/dist/TimeAgo/useTimeout.js.map +1 -1
  120. package/dist/Wizard/Wizard.d.ts +5 -5
  121. package/dist/Wizard/Wizard.js +33 -85
  122. package/dist/Wizard/Wizard.js.map +1 -1
  123. package/dist/Wizard/WizardActions/WizardActions.d.ts +2 -2
  124. package/dist/Wizard/WizardActions/WizardActions.js +31 -86
  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 +1 -1
  139. package/dist/Wizard/WizardContent/WizardContent.js +12 -55
  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 +0 -2
  144. package/dist/Wizard/WizardContent/styles.js.map +1 -1
  145. package/dist/Wizard/WizardContext/WizardContext.d.ts +12 -0
  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.d.ts +28 -0
  149. package/dist/Wizard/WizardContext/WizardContextProvider.js +41 -0
  150. package/dist/Wizard/WizardContext/WizardContextProvider.js.map +1 -0
  151. package/dist/Wizard/WizardContext/index.d.ts +5 -0
  152. package/dist/Wizard/WizardContext/index.js +7 -2
  153. package/dist/Wizard/WizardContext/index.js.map +1 -1
  154. package/dist/Wizard/WizardTitle/WizardTitle.d.ts +7 -9
  155. package/dist/Wizard/WizardTitle/WizardTitle.js +18 -59
  156. package/dist/Wizard/WizardTitle/WizardTitle.js.map +1 -1
  157. package/dist/Wizard/WizardTitle/index.js +0 -2
  158. package/dist/Wizard/WizardTitle/index.js.map +1 -1
  159. package/dist/Wizard/WizardTitle/styles.js +0 -2
  160. package/dist/Wizard/WizardTitle/styles.js.map +1 -1
  161. package/dist/Wizard/index.d.ts +15 -0
  162. package/dist/Wizard/index.js +7 -7
  163. package/dist/Wizard/index.js.map +1 -1
  164. package/dist/Wizard/styles.js +0 -2
  165. package/dist/Wizard/styles.js.map +1 -1
  166. package/dist/index.js +12 -23
  167. package/dist/index.js.map +1 -1
  168. package/dist/legacy/ColorPicker/ColorPicker.js +26 -51
  169. package/dist/legacy/ColorPicker/ColorPicker.js.map +1 -1
  170. package/dist/legacy/ColorPicker/Fields/Fields.js +17 -27
  171. package/dist/legacy/ColorPicker/Fields/Fields.js.map +1 -1
  172. package/dist/legacy/ColorPicker/Fields/index.js.map +1 -1
  173. package/dist/legacy/ColorPicker/Fields/styles.js.map +1 -1
  174. package/dist/legacy/ColorPicker/Picker/Picker.js +7 -7
  175. package/dist/legacy/ColorPicker/Picker/Picker.js.map +1 -1
  176. package/dist/legacy/ColorPicker/Picker/index.js.map +1 -1
  177. package/dist/legacy/ColorPicker/Picker/styles.js.map +1 -1
  178. package/dist/legacy/ColorPicker/PresetColors/PresetColors.js +2 -7
  179. package/dist/legacy/ColorPicker/PresetColors/PresetColors.js.map +1 -1
  180. package/dist/legacy/ColorPicker/PresetColors/index.js.map +1 -1
  181. package/dist/legacy/ColorPicker/PresetColors/styles.js.map +1 -1
  182. package/dist/legacy/ColorPicker/index.js.map +1 -1
  183. package/dist/legacy/ColorPicker/styles.js +0 -1
  184. package/dist/legacy/ColorPicker/styles.js.map +1 -1
  185. package/dist/legacy/Drawer/Drawer.js +11 -30
  186. package/dist/legacy/Drawer/Drawer.js.map +1 -1
  187. package/dist/legacy/Drawer/index.js.map +1 -1
  188. package/dist/legacy/Drawer/styles.js +0 -2
  189. package/dist/legacy/Drawer/styles.js.map +1 -1
  190. package/dist/legacy/ImageCarousel/ImageCarousel.js +46 -120
  191. package/dist/legacy/ImageCarousel/ImageCarousel.js.map +1 -1
  192. package/dist/legacy/ImageCarousel/index.js.map +1 -1
  193. package/dist/legacy/ImageCarousel/styles.js +0 -3
  194. package/dist/legacy/ImageCarousel/styles.js.map +1 -1
  195. package/dist/legacy/InlineEditor/InlineEditor.js +26 -55
  196. package/dist/legacy/InlineEditor/InlineEditor.js.map +1 -1
  197. package/dist/legacy/InlineEditor/index.js.map +1 -1
  198. package/dist/legacy/InlineEditor/styles.js +0 -5
  199. package/dist/legacy/InlineEditor/styles.js.map +1 -1
  200. package/dist/legacy/NavigationAnchors/NavigationAnchors.js +44 -82
  201. package/dist/legacy/NavigationAnchors/NavigationAnchors.js.map +1 -1
  202. package/dist/legacy/NavigationAnchors/NavigationOption.js +0 -5
  203. package/dist/legacy/NavigationAnchors/NavigationOption.js.map +1 -1
  204. package/dist/legacy/NavigationAnchors/index.js.map +1 -1
  205. package/dist/legacy/NavigationAnchors/styles.js +0 -1
  206. package/dist/legacy/NavigationAnchors/styles.js.map +1 -1
  207. package/dist/legacy/NotificationPanel/EmptyStatePanel/EmptyStatePanel.js +5 -16
  208. package/dist/legacy/NotificationPanel/EmptyStatePanel/EmptyStatePanel.js.map +1 -1
  209. package/dist/legacy/NotificationPanel/EmptyStatePanel/index.js.map +1 -1
  210. package/dist/legacy/NotificationPanel/EmptyStatePanel/styles.js +0 -1
  211. package/dist/legacy/NotificationPanel/EmptyStatePanel/styles.js.map +1 -1
  212. package/dist/legacy/NotificationPanel/Notification/Notification.js +12 -44
  213. package/dist/legacy/NotificationPanel/Notification/Notification.js.map +1 -1
  214. package/dist/legacy/NotificationPanel/Notification/index.js.map +1 -1
  215. package/dist/legacy/NotificationPanel/Notification/styles.js +0 -5
  216. package/dist/legacy/NotificationPanel/Notification/styles.js.map +1 -1
  217. package/dist/legacy/NotificationPanel/NotificationPanel.js +23 -61
  218. package/dist/legacy/NotificationPanel/NotificationPanel.js.map +1 -1
  219. package/dist/legacy/NotificationPanel/NotificationsIndicator/NotificationsIndicator.js +4 -17
  220. package/dist/legacy/NotificationPanel/NotificationsIndicator/NotificationsIndicator.js.map +1 -1
  221. package/dist/legacy/NotificationPanel/NotificationsIndicator/index.js.map +1 -1
  222. package/dist/legacy/NotificationPanel/NotificationsIndicator/styles.js +0 -1
  223. package/dist/legacy/NotificationPanel/NotificationsIndicator/styles.js.map +1 -1
  224. package/dist/legacy/NotificationPanel/index.js.map +1 -1
  225. package/dist/legacy/NotificationPanel/styles.js +0 -1
  226. package/dist/legacy/NotificationPanel/styles.js.map +1 -1
  227. package/dist/legacy/StepNavigation/DefaultNavigation/DefaultNavigation.js +16 -27
  228. package/dist/legacy/StepNavigation/DefaultNavigation/DefaultNavigation.js.map +1 -1
  229. package/dist/legacy/StepNavigation/DefaultNavigation/Step/Step.js +10 -29
  230. package/dist/legacy/StepNavigation/DefaultNavigation/Step/Step.js.map +1 -1
  231. package/dist/legacy/StepNavigation/DefaultNavigation/Step/index.js.map +1 -1
  232. package/dist/legacy/StepNavigation/DefaultNavigation/Step/styles.js +0 -1
  233. package/dist/legacy/StepNavigation/DefaultNavigation/Step/styles.js.map +1 -1
  234. package/dist/legacy/StepNavigation/DefaultNavigation/index.js.map +1 -1
  235. package/dist/legacy/StepNavigation/DefaultNavigation/styles.js +0 -1
  236. package/dist/legacy/StepNavigation/DefaultNavigation/styles.js.map +1 -1
  237. package/dist/legacy/StepNavigation/DefaultNavigation/utils.js +0 -2
  238. package/dist/legacy/StepNavigation/DefaultNavigation/utils.js.map +1 -1
  239. package/dist/legacy/StepNavigation/SimpleNavigation/Dot/Dot.js +7 -21
  240. package/dist/legacy/StepNavigation/SimpleNavigation/Dot/Dot.js.map +1 -1
  241. package/dist/legacy/StepNavigation/SimpleNavigation/Dot/index.js.map +1 -1
  242. package/dist/legacy/StepNavigation/SimpleNavigation/Dot/styles.js.map +1 -1
  243. package/dist/legacy/StepNavigation/SimpleNavigation/SimpleNavigation.js +15 -26
  244. package/dist/legacy/StepNavigation/SimpleNavigation/SimpleNavigation.js.map +1 -1
  245. package/dist/legacy/StepNavigation/SimpleNavigation/index.js.map +1 -1
  246. package/dist/legacy/StepNavigation/SimpleNavigation/styles.js +0 -1
  247. package/dist/legacy/StepNavigation/SimpleNavigation/styles.js.map +1 -1
  248. package/dist/legacy/StepNavigation/SimpleNavigation/utils.js +0 -6
  249. package/dist/legacy/StepNavigation/SimpleNavigation/utils.js.map +1 -1
  250. package/dist/legacy/StepNavigation/StepNavigation.js +40 -78
  251. package/dist/legacy/StepNavigation/StepNavigation.js.map +1 -1
  252. package/dist/legacy/StepNavigation/index.js.map +1 -1
  253. package/dist/legacy/StepNavigation/styles.js +0 -1
  254. package/dist/legacy/StepNavigation/styles.js.map +1 -1
  255. package/dist/legacy/StepNavigation/utils.js.map +1 -1
  256. package/dist/legacy/TimeAgo/TimeAgo.js +14 -27
  257. package/dist/legacy/TimeAgo/TimeAgo.js.map +1 -1
  258. package/dist/legacy/TimeAgo/formatUtils.js +16 -18
  259. package/dist/legacy/TimeAgo/formatUtils.js.map +1 -1
  260. package/dist/legacy/TimeAgo/index.js.map +1 -1
  261. package/dist/legacy/TimeAgo/styles.js.map +1 -1
  262. package/dist/legacy/TimeAgo/useTimeAgo.js +8 -11
  263. package/dist/legacy/TimeAgo/useTimeAgo.js.map +1 -1
  264. package/dist/legacy/TimeAgo/useTimeout.js.map +1 -1
  265. package/dist/legacy/Wizard/Wizard.d.ts +5 -5
  266. package/dist/legacy/Wizard/Wizard.js +33 -59
  267. package/dist/legacy/Wizard/Wizard.js.map +1 -1
  268. package/dist/legacy/Wizard/WizardActions/WizardActions.d.ts +2 -2
  269. package/dist/legacy/Wizard/WizardActions/WizardActions.js +33 -62
  270. package/dist/legacy/Wizard/WizardActions/WizardActions.js.map +1 -1
  271. package/dist/legacy/Wizard/WizardActions/index.js.map +1 -1
  272. package/dist/legacy/Wizard/WizardActions/styles.js +0 -1
  273. package/dist/legacy/Wizard/WizardActions/styles.js.map +1 -1
  274. package/dist/legacy/Wizard/WizardContainer/WizardContainer.js +5 -17
  275. package/dist/legacy/Wizard/WizardContainer/WizardContainer.js.map +1 -1
  276. package/dist/legacy/Wizard/WizardContainer/index.js.map +1 -1
  277. package/dist/legacy/Wizard/WizardContainer/styles.js +0 -1
  278. package/dist/legacy/Wizard/WizardContainer/styles.js.map +1 -1
  279. package/dist/legacy/Wizard/WizardContent/LoadingContainer.js +2 -8
  280. package/dist/legacy/Wizard/WizardContent/LoadingContainer.js.map +1 -1
  281. package/dist/legacy/Wizard/WizardContent/WizardContent.d.ts +1 -1
  282. package/dist/legacy/Wizard/WizardContent/WizardContent.js +11 -27
  283. package/dist/legacy/Wizard/WizardContent/WizardContent.js.map +1 -1
  284. package/dist/legacy/Wizard/WizardContent/index.js.map +1 -1
  285. package/dist/legacy/Wizard/WizardContent/styles.js +0 -1
  286. package/dist/legacy/Wizard/WizardContent/styles.js.map +1 -1
  287. package/dist/legacy/Wizard/WizardContext/WizardContext.d.ts +12 -0
  288. package/dist/legacy/Wizard/WizardContext/WizardContext.js +0 -2
  289. package/dist/legacy/Wizard/WizardContext/WizardContext.js.map +1 -1
  290. package/dist/legacy/Wizard/WizardContext/WizardContextProvider.d.ts +28 -0
  291. package/dist/legacy/Wizard/WizardContext/WizardContextProvider.js +33 -0
  292. package/dist/legacy/Wizard/WizardContext/WizardContextProvider.js.map +1 -0
  293. package/dist/legacy/Wizard/WizardContext/index.d.ts +5 -0
  294. package/dist/legacy/Wizard/WizardContext/index.js +1 -0
  295. package/dist/legacy/Wizard/WizardContext/index.js.map +1 -1
  296. package/dist/legacy/Wizard/WizardTitle/WizardTitle.d.ts +7 -9
  297. package/dist/legacy/Wizard/WizardTitle/WizardTitle.js +17 -42
  298. package/dist/legacy/Wizard/WizardTitle/WizardTitle.js.map +1 -1
  299. package/dist/legacy/Wizard/WizardTitle/index.js.map +1 -1
  300. package/dist/legacy/Wizard/WizardTitle/styles.js +0 -1
  301. package/dist/legacy/Wizard/WizardTitle/styles.js.map +1 -1
  302. package/dist/legacy/Wizard/index.d.ts +15 -0
  303. package/dist/legacy/Wizard/index.js +1 -0
  304. package/dist/legacy/Wizard/index.js.map +1 -1
  305. package/dist/legacy/Wizard/styles.js +0 -1
  306. package/dist/legacy/Wizard/styles.js.map +1 -1
  307. package/dist/legacy/index.js +1 -0
  308. package/dist/legacy/index.js.map +1 -1
  309. package/dist/modern/ColorPicker/ColorPicker.js +1 -25
  310. package/dist/modern/ColorPicker/ColorPicker.js.map +1 -1
  311. package/dist/modern/ColorPicker/Fields/Fields.js +3 -10
  312. package/dist/modern/ColorPicker/Fields/Fields.js.map +1 -1
  313. package/dist/modern/ColorPicker/Fields/index.js.map +1 -1
  314. package/dist/modern/ColorPicker/Fields/styles.js.map +1 -1
  315. package/dist/modern/ColorPicker/Picker/Picker.js +3 -3
  316. package/dist/modern/ColorPicker/Picker/Picker.js.map +1 -1
  317. package/dist/modern/ColorPicker/Picker/index.js.map +1 -1
  318. package/dist/modern/ColorPicker/Picker/styles.js.map +1 -1
  319. package/dist/modern/ColorPicker/PresetColors/PresetColors.js +0 -5
  320. package/dist/modern/ColorPicker/PresetColors/PresetColors.js.map +1 -1
  321. package/dist/modern/ColorPicker/PresetColors/index.js.map +1 -1
  322. package/dist/modern/ColorPicker/PresetColors/styles.js.map +1 -1
  323. package/dist/modern/ColorPicker/index.js.map +1 -1
  324. package/dist/modern/ColorPicker/styles.js +0 -1
  325. package/dist/modern/ColorPicker/styles.js.map +1 -1
  326. package/dist/modern/Drawer/Drawer.js +11 -30
  327. package/dist/modern/Drawer/Drawer.js.map +1 -1
  328. package/dist/modern/Drawer/index.js.map +1 -1
  329. package/dist/modern/Drawer/styles.js +0 -2
  330. package/dist/modern/Drawer/styles.js.map +1 -1
  331. package/dist/modern/ImageCarousel/ImageCarousel.js +18 -83
  332. package/dist/modern/ImageCarousel/ImageCarousel.js.map +1 -1
  333. package/dist/modern/ImageCarousel/index.js.map +1 -1
  334. package/dist/modern/ImageCarousel/styles.js +0 -1
  335. package/dist/modern/ImageCarousel/styles.js.map +1 -1
  336. package/dist/modern/InlineEditor/InlineEditor.js +16 -43
  337. package/dist/modern/InlineEditor/InlineEditor.js.map +1 -1
  338. package/dist/modern/InlineEditor/index.js.map +1 -1
  339. package/dist/modern/InlineEditor/styles.js +0 -5
  340. package/dist/modern/InlineEditor/styles.js.map +1 -1
  341. package/dist/modern/NavigationAnchors/NavigationAnchors.js +40 -74
  342. package/dist/modern/NavigationAnchors/NavigationAnchors.js.map +1 -1
  343. package/dist/modern/NavigationAnchors/NavigationOption.js +0 -6
  344. package/dist/modern/NavigationAnchors/NavigationOption.js.map +1 -1
  345. package/dist/modern/NavigationAnchors/index.js.map +1 -1
  346. package/dist/modern/NavigationAnchors/styles.js +0 -1
  347. package/dist/modern/NavigationAnchors/styles.js.map +1 -1
  348. package/dist/modern/NotificationPanel/EmptyStatePanel/EmptyStatePanel.js +0 -11
  349. package/dist/modern/NotificationPanel/EmptyStatePanel/EmptyStatePanel.js.map +1 -1
  350. package/dist/modern/NotificationPanel/EmptyStatePanel/index.js.map +1 -1
  351. package/dist/modern/NotificationPanel/EmptyStatePanel/styles.js +0 -1
  352. package/dist/modern/NotificationPanel/EmptyStatePanel/styles.js.map +1 -1
  353. package/dist/modern/NotificationPanel/Notification/Notification.js +2 -33
  354. package/dist/modern/NotificationPanel/Notification/Notification.js.map +1 -1
  355. package/dist/modern/NotificationPanel/Notification/index.js.map +1 -1
  356. package/dist/modern/NotificationPanel/Notification/styles.js +0 -5
  357. package/dist/modern/NotificationPanel/Notification/styles.js.map +1 -1
  358. package/dist/modern/NotificationPanel/NotificationPanel.js +16 -50
  359. package/dist/modern/NotificationPanel/NotificationPanel.js.map +1 -1
  360. package/dist/modern/NotificationPanel/NotificationsIndicator/NotificationsIndicator.js +6 -19
  361. package/dist/modern/NotificationPanel/NotificationsIndicator/NotificationsIndicator.js.map +1 -1
  362. package/dist/modern/NotificationPanel/NotificationsIndicator/index.js.map +1 -1
  363. package/dist/modern/NotificationPanel/NotificationsIndicator/styles.js +0 -1
  364. package/dist/modern/NotificationPanel/NotificationsIndicator/styles.js.map +1 -1
  365. package/dist/modern/NotificationPanel/index.js.map +1 -1
  366. package/dist/modern/NotificationPanel/styles.js +0 -1
  367. package/dist/modern/NotificationPanel/styles.js.map +1 -1
  368. package/dist/modern/StepNavigation/DefaultNavigation/DefaultNavigation.js +14 -23
  369. package/dist/modern/StepNavigation/DefaultNavigation/DefaultNavigation.js.map +1 -1
  370. package/dist/modern/StepNavigation/DefaultNavigation/Step/Step.js +1 -20
  371. package/dist/modern/StepNavigation/DefaultNavigation/Step/Step.js.map +1 -1
  372. package/dist/modern/StepNavigation/DefaultNavigation/Step/index.js.map +1 -1
  373. package/dist/modern/StepNavigation/DefaultNavigation/Step/styles.js +0 -1
  374. package/dist/modern/StepNavigation/DefaultNavigation/Step/styles.js.map +1 -1
  375. package/dist/modern/StepNavigation/DefaultNavigation/index.js.map +1 -1
  376. package/dist/modern/StepNavigation/DefaultNavigation/styles.js +0 -1
  377. package/dist/modern/StepNavigation/DefaultNavigation/styles.js.map +1 -1
  378. package/dist/modern/StepNavigation/DefaultNavigation/utils.js +0 -2
  379. package/dist/modern/StepNavigation/DefaultNavigation/utils.js.map +1 -1
  380. package/dist/modern/StepNavigation/SimpleNavigation/Dot/Dot.js +1 -15
  381. package/dist/modern/StepNavigation/SimpleNavigation/Dot/Dot.js.map +1 -1
  382. package/dist/modern/StepNavigation/SimpleNavigation/Dot/index.js.map +1 -1
  383. package/dist/modern/StepNavigation/SimpleNavigation/Dot/styles.js.map +1 -1
  384. package/dist/modern/StepNavigation/SimpleNavigation/SimpleNavigation.js +14 -23
  385. package/dist/modern/StepNavigation/SimpleNavigation/SimpleNavigation.js.map +1 -1
  386. package/dist/modern/StepNavigation/SimpleNavigation/index.js.map +1 -1
  387. package/dist/modern/StepNavigation/SimpleNavigation/styles.js +0 -1
  388. package/dist/modern/StepNavigation/SimpleNavigation/styles.js.map +1 -1
  389. package/dist/modern/StepNavigation/SimpleNavigation/utils.js +0 -6
  390. package/dist/modern/StepNavigation/SimpleNavigation/utils.js.map +1 -1
  391. package/dist/modern/StepNavigation/StepNavigation.js +25 -62
  392. package/dist/modern/StepNavigation/StepNavigation.js.map +1 -1
  393. package/dist/modern/StepNavigation/index.js.map +1 -1
  394. package/dist/modern/StepNavigation/styles.js +0 -1
  395. package/dist/modern/StepNavigation/styles.js.map +1 -1
  396. package/dist/modern/StepNavigation/utils.js.map +1 -1
  397. package/dist/modern/TimeAgo/TimeAgo.js +11 -24
  398. package/dist/modern/TimeAgo/TimeAgo.js.map +1 -1
  399. package/dist/modern/TimeAgo/formatUtils.js +16 -18
  400. package/dist/modern/TimeAgo/formatUtils.js.map +1 -1
  401. package/dist/modern/TimeAgo/index.js.map +1 -1
  402. package/dist/modern/TimeAgo/styles.js.map +1 -1
  403. package/dist/modern/TimeAgo/useTimeAgo.js +1 -3
  404. package/dist/modern/TimeAgo/useTimeAgo.js.map +1 -1
  405. package/dist/modern/TimeAgo/useTimeout.js.map +1 -1
  406. package/dist/modern/Wizard/Wizard.d.ts +5 -5
  407. package/dist/modern/Wizard/Wizard.js +24 -49
  408. package/dist/modern/Wizard/Wizard.js.map +1 -1
  409. package/dist/modern/Wizard/WizardActions/WizardActions.d.ts +2 -2
  410. package/dist/modern/Wizard/WizardActions/WizardActions.js +6 -30
  411. package/dist/modern/Wizard/WizardActions/WizardActions.js.map +1 -1
  412. package/dist/modern/Wizard/WizardActions/index.js.map +1 -1
  413. package/dist/modern/Wizard/WizardActions/styles.js +0 -1
  414. package/dist/modern/Wizard/WizardActions/styles.js.map +1 -1
  415. package/dist/modern/Wizard/WizardContainer/WizardContainer.js +7 -19
  416. package/dist/modern/Wizard/WizardContainer/WizardContainer.js.map +1 -1
  417. package/dist/modern/Wizard/WizardContainer/index.js.map +1 -1
  418. package/dist/modern/Wizard/WizardContainer/styles.js +0 -1
  419. package/dist/modern/Wizard/WizardContainer/styles.js.map +1 -1
  420. package/dist/modern/Wizard/WizardContent/LoadingContainer.js +4 -10
  421. package/dist/modern/Wizard/WizardContent/LoadingContainer.js.map +1 -1
  422. package/dist/modern/Wizard/WizardContent/WizardContent.d.ts +1 -1
  423. package/dist/modern/Wizard/WizardContent/WizardContent.js +1 -15
  424. package/dist/modern/Wizard/WizardContent/WizardContent.js.map +1 -1
  425. package/dist/modern/Wizard/WizardContent/index.js.map +1 -1
  426. package/dist/modern/Wizard/WizardContent/styles.js +0 -1
  427. package/dist/modern/Wizard/WizardContent/styles.js.map +1 -1
  428. package/dist/modern/Wizard/WizardContext/WizardContext.d.ts +12 -0
  429. package/dist/modern/Wizard/WizardContext/WizardContext.js +0 -2
  430. package/dist/modern/Wizard/WizardContext/WizardContext.js.map +1 -1
  431. package/dist/modern/Wizard/WizardContext/WizardContextProvider.d.ts +28 -0
  432. package/dist/modern/Wizard/WizardContext/WizardContextProvider.js +34 -0
  433. package/dist/modern/Wizard/WizardContext/WizardContextProvider.js.map +1 -0
  434. package/dist/modern/Wizard/WizardContext/index.d.ts +5 -0
  435. package/dist/modern/Wizard/WizardContext/index.js +1 -0
  436. package/dist/modern/Wizard/WizardContext/index.js.map +1 -1
  437. package/dist/modern/Wizard/WizardTitle/WizardTitle.d.ts +7 -9
  438. package/dist/modern/Wizard/WizardTitle/WizardTitle.js +3 -24
  439. package/dist/modern/Wizard/WizardTitle/WizardTitle.js.map +1 -1
  440. package/dist/modern/Wizard/WizardTitle/index.js.map +1 -1
  441. package/dist/modern/Wizard/WizardTitle/styles.js +0 -1
  442. package/dist/modern/Wizard/WizardTitle/styles.js.map +1 -1
  443. package/dist/modern/Wizard/index.d.ts +15 -0
  444. package/dist/modern/Wizard/index.js +1 -0
  445. package/dist/modern/Wizard/index.js.map +1 -1
  446. package/dist/modern/Wizard/styles.js +0 -1
  447. package/dist/modern/Wizard/styles.js.map +1 -1
  448. package/dist/modern/index.js +1 -0
  449. package/dist/modern/index.js.map +1 -1
  450. package/package.json +4 -4
@@ -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}`),\n delay: 0,\n };\n};\n"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,QAAP,MAAqB,uBAArB;AACA,OAAOC,QAAP,MAAqB,uBAArB;AACA,OAAOC,UAAP,MAAuB,yBAAvB;AACA,OAAOC,eAAP,MAA4B,8BAA5B;AACA,OAAOC,YAAP,MAAyB,2BAAzB;AACA,OAAOC,YAAP,MAAyB,2BAAzB;AAEA;AACA;AACA;AACA;AACA;AACA;;AACA,IAAMC,UAAU,GAAG,CACjB;EAAEC,CAAC,EAAE,GAAL;EAAUC,CAAC,EAAE,GAAb;EAAkBC,CAAC,EAAE;AAArB,CADiB,EAEjB;EAAEF,CAAC,EAAE,GAAL;EAAUC,CAAC,EAAE;AAAb,CAFiB,EAGjB;EAAED,CAAC,EAAE,IAAL;EAAWC,CAAC,EAAE,EAAd;E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;;;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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F,OAAO,EAAE,QAAQ,CAAC;EAE/D,IAAIQ,cAAc,GAAG,EAAE,EAAE;IACvB,OAAO;MACLJ,OAAO,EAAErC,KAAK,CAACE,QAAQ,CAAC,CAACuC,cAAc,EAAE,QAAQ,CAAC,CAACZ,MAAM,CAACA,MAAM,CAAC,CAACW,QAAQ,CAAC,IAAI,CAAC;MAChFD,KAAK,EAAE,EAAE,IAAIE,cAAc,GAAG,CAAC,CAAC,GAAGP;IACrC,CAAC;EACH;;EAEA;EACA,IAAIF,gBAAgB,CAACU,MAAM,CAACT,OAAO,EAAE,KAAK,CAAC,EAAE;IAC3C,OAAO;MACLI,OAAO,YAAKJ,OAAO,CAAChC,QAAQ,CAAC+B,gBAAgB,CAAC,CAAE;MAChDO,KAAK,EAAE3B,mBAAmB,CAACmB,aAAa;IAC1C,CAAC;EACH;;EAEA;EACA,IAAIC,gBAAgB,CAACW,QAAQ,CAAC,CAAC,EAAE,KAAK,CAAC,CAACD,MAAM,CAACT,OAAO,EAAE,KAAK,CAAC,EAAE;IAC9D,OAAO;MACLI,OAAO,YAAKJ,OAAO,CAAChC,QAAQ,CAAC+B,gBAAgB,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(newTime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,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"}
@@ -13,7 +13,7 @@ export type HvWizardProps = StandardProps<
13
13
  /**
14
14
  * Class names to be applied.
15
15
  */
16
- className: string;
16
+ className?: string;
17
17
  /**
18
18
  * Current state of the Wizard.
19
19
  */
@@ -25,19 +25,19 @@ export type HvWizardProps = StandardProps<
25
25
  /**
26
26
  * Function executed on submit.
27
27
  */
28
- onSubmit: any;
28
+ handleSubmit: any;
29
29
  /**
30
30
  * Title for the wizard.
31
31
  */
32
- title: string;
32
+ title?: string;
33
33
  /**
34
34
  * The content of the component.
35
35
  */
36
- children: React.ReactNode;
36
+ children?: React.ReactNode;
37
37
  /**
38
38
  * An object containing all the labels for the wizard.
39
39
  */
40
- labels: HvWizardActionsProps["labels"] & HvWizardTitleProps["labels"];
40
+ labels?: HvWizardActionsProps["labels"] & HvWizardTitleProps["labels"];
41
41
  /**
42
42
  * Shows the summary button.
43
43
  */
@@ -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", "onSubmit", "title", "open", "skippable", "loading", "hasSummary", "labels", "fixedHeight", "customStep"];
12
-
11
+ var _excluded = ["className", "children", "onClose", "handleSubmit", "title", "open", "skippable", "loading", "hasSummary", "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,44 +22,40 @@ 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
- onSubmit = _ref.onSubmit,
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
+ _ref$labels = _ref.labels,
39
+ labels = _ref$labels === void 0 ? {
40
+ cancel: "Cancel",
41
+ next: "Next",
42
+ previous: "Previous",
43
+ skip: "Skip",
44
+ submit: "Submit",
45
+ summary: "Summary"
46
+ } : _ref$labels,
47
+ _ref$fixedHeight = _ref.fixedHeight,
48
+ fixedHeight = _ref$fixedHeight === void 0 ? false : _ref$fixedHeight,
49
+ customStep = _ref.customStep,
50
+ others = _objectWithoutProperties(_ref, _excluded);
56
51
  var _React$useState = React.useState({}),
57
- _React$useState2 = _slicedToArray(_React$useState, 2),
58
- context = _React$useState2[0],
59
- setContext = _React$useState2[1];
60
-
52
+ _React$useState2 = _slicedToArray(_React$useState, 2),
53
+ context = _React$useState2[0],
54
+ setContext = _React$useState2[1];
61
55
  var _React$useState3 = React.useState(0),
62
- _React$useState4 = _slicedToArray(_React$useState3, 2),
63
- tab = _React$useState4[0],
64
- setTab = _React$useState4[1];
65
-
56
+ _React$useState4 = _slicedToArray(_React$useState3, 2),
57
+ tab = _React$useState4[0],
58
+ setTab = _React$useState4[1];
66
59
  var contextValue = React.useMemo(function () {
67
60
  return {
68
61
  context: context,
@@ -105,53 +98,44 @@ var HvWizard = function HvWizard(_ref) {
105
98
  tab: tab,
106
99
  changeTab: setTab,
107
100
  handleClose: handleClose,
108
- onSubmit: onSubmit
101
+ handleSubmit: handleSubmit
109
102
  })]
110
103
  }))
111
104
  });
112
105
  };
113
-
114
106
  process.env.NODE_ENV !== "production" ? HvWizard.propTypes = {
115
107
  /**
116
108
  * Class names to be applied.
117
109
  */
118
110
  className: PropTypes.string,
119
-
120
111
  /**
121
112
  * Current state of the Wizard.
122
113
  */
123
114
  open: PropTypes.bool.isRequired,
124
-
125
115
  /**
126
116
  * Function executed on close.
127
117
  */
128
118
  onClose: PropTypes.func.isRequired,
129
-
130
119
  /**
131
120
  * Function executed on submit.
132
121
  */
133
- onSubmit: PropTypes.func.isRequired,
134
-
122
+ handleSubmit: PropTypes.func.isRequired,
135
123
  /**
136
124
  * Enables the skip button.
137
125
  */
138
126
  skippable: PropTypes.bool,
139
-
140
127
  /**
141
128
  * Title for the wizard.
142
129
  */
143
130
  title: PropTypes.string,
144
-
145
131
  /**
146
132
  * Shows the summary button.
147
133
  */
148
134
  hasSummary: PropTypes.bool,
149
-
150
135
  /**
151
136
  * The content of the component.
152
137
  */
153
138
  children: PropTypes.node,
154
-
155
139
  /**
156
140
  * An object containing all the labels for the wizard.
157
141
  */
@@ -160,43 +144,35 @@ process.env.NODE_ENV !== "production" ? HvWizard.propTypes = {
160
144
  * Cancel button label.
161
145
  */
162
146
  cancel: PropTypes.string,
163
-
164
147
  /**
165
148
  * Skip button label.
166
149
  */
167
150
  skip: PropTypes.string,
168
-
169
151
  /**
170
152
  * Previous button label.
171
153
  */
172
154
  previous: PropTypes.string,
173
-
174
155
  /**
175
156
  * Next button label.
176
157
  */
177
158
  next: PropTypes.string,
178
-
179
159
  /**
180
160
  * Submit button label.
181
161
  */
182
162
  submit: PropTypes.string,
183
-
184
163
  /**
185
164
  * Summary button label.
186
165
  */
187
166
  summary: PropTypes.string
188
167
  }),
189
-
190
168
  /**
191
169
  * Forces minimum height to the component.
192
170
  */
193
171
  fixedHeight: PropTypes.bool,
194
-
195
172
  /**
196
173
  * Whether the loading animation is shown.
197
174
  */
198
175
  loading: PropTypes.bool,
199
-
200
176
  /**
201
177
  * Custom object to define type, size and width of the StepNavigation component
202
178
  */
@@ -205,12 +181,10 @@ process.env.NODE_ENV !== "production" ? HvWizard.propTypes = {
205
181
  * Type of step navigation. Values = {"Simple", "Default"}.
206
182
  */
207
183
  type: PropTypes.oneOf(["Simple", "Default"]),
208
-
209
184
  /**
210
185
  * Sets one of the standard sizes of the steps. Values = {"XS", "SM", "MD", "LG", "XL"}
211
186
  */
212
187
  stepSize: PropTypes.oneOf(["XS", "SM", "MD", "LG", "XL"]),
213
-
214
188
  /**
215
189
  * Width of the component element on each breakpoint screen resolution.
216
190
  */
@@ -1 +1 @@
1
- {"version":3,"file":"Wizard.js","names":["React","PropTypes","withStyles","WizardContext","WizardContainer","WizardTitle","WizardContent","WizardActions","styles","HvWizard","className","children","onClose","onSubmit","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 onSubmit,\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 onSubmit={onSubmit}\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 onSubmit: 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;AAEA,OAAOC,MAAP,MAAmB,UAAnB;;;;AAEA,IAAMC,QAAQ,GAAG,SAAXA,QAAW,OAqBX;EAAA,IApBJC,SAoBI,QApBJA,SAoBI;EAAA,IAnBJC,QAmBI,QAnBJA,QAmBI;EAAA,IAlBJC,OAkBI,QAlBJA,OAkBI;EAAA,IAjBJC,QAiBI,QAjBJA,QAiBI;EAAA,IAhBJC,KAgBI,QAhBJA,KAgBI;EAAA,IAfJC,IAeI,QAfJA,IAeI;EAAA,0BAdJC,SAcI;EAAA,IAdJA,SAcI,+BAdQ,IAcR;EAAA,wBAbJC,OAaI;EAAA,IAbJA,OAaI,6BAbM,KAaN;EAAA,2BAZJC,UAYI;EAAA,IAZJA,UAYI,gCAZS,KAYT;EAAA,uBAXJC,MAWI;EAAA,IAXJA,MAWI,4BAXK;IACPC,MAAM,EAAE,QADD;IAEPC,IAAI,EAAE,MAFC;IAGPC,QAAQ,EAAE,UAHH;IAIPC,I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AI,EAAEpB,SAAS,CAACyC,MAhBM;;IAiBtB;AACJ;AACA;IACIlB,MAAM,EAAEvB,SAAS,CAACyC,MApBI;;IAqBtB;AACJ;AACA;IACIjB,OAAO,EAAExB,SAAS,CAACyC;EAxBG,CAAhB,CApCW;;EA8DnB;AACF;AACA;EACEhB,WAAW,EAAEzB,SAAS,CAAC0C,IAjEJ;;EAkEnB;AACF;AACA;EACE1B,OAAO,EAAEhB,SAAS,CAAC0C,IArEA;;EAsEnB;AACF;AACA;EACEhB,UAAU,EAAE1B,SAAS,CAAC8C,KAAV,CAAgB;IAC1B;AACJ;AACA;IACIC,IAAI,EAAE/C,SAAS,CAACgD,KAAV,CAAgB,CAAC,QAAD,EAAW,SAAX,CAAhB,CAJoB;;IAK1B;AACJ;AACA;IACIC,QAAQ,EAAEjD,SAAS,CAACgD,KAAV,CAAgB,CAAC,IAAD,EAAO,IAAP,EAAa,IAAb,EAAmB,IAAnB,EAAyB,IAAzB,CAAhB,CARgB;;IAS1B;AACJ;AACA;IACIE,KAAK,EAAElD,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","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,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAClC,SAASC,UAAU,QAAQ,aAAa;AACxC,OAAOC,aAAa,MAAM,iBAAiB;AAC3C,OAAOC,eAAe,MAAM,mBAAmB;AAC/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CAACoD,MAAM;MACpBE,EAAE,EAAEtD,SAAS,CAACoD,MAAM;MACpBG,EAAE,EAAEvD,SAAS,CAACoD,MAAM;MACpBI,EAAE,EAAExD,SAAS,CAACoD;IAChB,CAAC;EACH,CAAC;AACH,CAAC;AAED,eAAenD,UAAU,CAACM,MAAM,EAAE;EAAEkD,IAAI,EAAE;AAAW,CAAC,CAAC,CAACjD,QAAQ,CAAC"}
@@ -22,11 +22,11 @@ export type HvWizardActionsProps = StandardProps<
22
22
  /**
23
23
  * Function to handle the submit button. Also sends the current context state.
24
24
  */
25
- onSubmit: any;
25
+ handleSubmit: (context: any) => void;
26
26
  /**
27
27
  * An object containing all the labels for the wizard actions component.
28
28
  */
29
- labels: {
29
+ labels?: {
30
30
  /**
31
31
  * Cancel button label.
32
32
  */