@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
@@ -1,9 +1,6 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
2
-
3
2
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
4
-
5
3
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
6
-
7
4
  import React, { useMemo } from "react";
8
5
  import PropTypes from "prop-types";
9
6
  import clsx from "clsx";
@@ -11,12 +8,11 @@ import { HvButton } from "@hitachivantara/uikit-react-core";
11
8
  import { withStyles, makeStyles } from "@mui/styles";
12
9
  import { getColor, dotSizes } from "../utils";
13
10
  import styles from "./styles";
11
+
14
12
  /**
15
13
  * Step element of "Simple" Step Navigation root component
16
14
  */
17
-
18
15
  import { jsx as _jsx } from "react/jsx-runtime";
19
-
20
16
  const HvDot = ({
21
17
  classes,
22
18
  className,
@@ -58,13 +54,11 @@ const HvDot = ({
58
54
  children: []
59
55
  });
60
56
  };
61
-
62
57
  process.env.NODE_ENV !== "production" ? HvDot.propTypes = {
63
58
  /**
64
59
  * Class names to be applied.
65
60
  */
66
61
  className: PropTypes.string,
67
-
68
62
  /**
69
63
  * A Jss Object used to override or extend the styles applied.
70
64
  */
@@ -73,43 +67,35 @@ process.env.NODE_ENV !== "production" ? HvDot.propTypes = {
73
67
  * Styles applied to the component root class.
74
68
  */
75
69
  root: PropTypes.string,
76
-
77
70
  /**
78
71
  * Styles applied to the active class.
79
72
  */
80
73
  active: PropTypes.string,
81
-
82
74
  /**
83
75
  * Styles applied to the ghost class.
84
76
  */
85
77
  ghost: PropTypes.string,
86
-
87
78
  /**
88
79
  * Styles applied to the ghostDisabled class.
89
80
  */
90
81
  ghostDisabled: PropTypes.string
91
82
  }).isRequired,
92
-
93
83
  /**
94
84
  * State of the step. Values = {"Pending", "Failed", "Completed", "Current", "Disabled"}
95
85
  */
96
86
  state: PropTypes.oneOf(["Pending", "Failed", "Completed", "Current", "Disabled"]).isRequired,
97
-
98
87
  /**
99
88
  * Title of the step.
100
89
  */
101
90
  title: PropTypes.string.isRequired,
102
-
103
91
  /**
104
92
  * Sets one of the standard sizes of the steps
105
93
  */
106
94
  size: PropTypes.oneOf(["XS", "SM", "MD", "LG", "XL"]).isRequired,
107
-
108
95
  /**
109
96
  * Event onClick of the step.
110
97
  */
111
98
  onClick: PropTypes.func,
112
-
113
99
  /**
114
100
  * Define if a step is disabled/enabled.
115
101
  * If this property is not defined and the step is on state "Disabled", the step component will be disabled
@@ -1 +1 @@
1
- {"version":3,"file":"Dot.js","names":["React","useMemo","PropTypes","clsx","HvButton","withStyles","makeStyles","getColor","dotSizes","styles","HvDot","classes","className","state","title","size","onClick","disabled","dotSize","customClasses","theme","backgroundColor","ghostDisabled","active","ghost","width","height","root","includes","propTypes","string","shape","isRequired","oneOf","func","bool","name"],"sources":["../../../../../src/StepNavigation/SimpleNavigation/Dot/Dot.js"],"sourcesContent":["import React, { useMemo } from \"react\";\nimport PropTypes from \"prop-types\";\nimport clsx from \"clsx\";\n\nimport { HvButton } from \"@hitachivantara/uikit-react-core\";\nimport { withStyles, makeStyles } from \"@mui/styles\";\n\nimport { getColor, dotSizes } from \"../utils\";\nimport styles from \"./styles\";\n\n/**\n * Step element of \"Simple\" Step Navigation root component\n */\nconst HvDot = ({ classes, className, state, title, size, onClick, disabled }) => {\n const dotSize = dotSizes[size] * (state === \"Current\" ? 1.5 : 1);\n const customClasses = useMemo(\n () =>\n makeStyles((theme) => {\n const backgroundColor = getColor(state, theme);\n return {\n ghostDisabled: {},\n active: {},\n ghost: {\n ...styles.ghost,\n width: dotSize,\n height: dotSize,\n backgroundColor,\n \"&:hover\": {\n backgroundColor,\n },\n \"&$ghostDisabled\": {\n ...styles.ghost[\"&$ghostDisabled\"],\n backgroundColor,\n },\n \"&$ghostDisabled&:hover\": {\n ...styles.ghost[\"&$ghostDisabled&:hover\"],\n backgroundColor,\n },\n },\n };\n }),\n [dotSize, state]\n )();\n return (\n <HvButton\n className={clsx(\n classes.root,\n customClasses.ghost,\n {\n [customClasses.active]: state === \"Current\",\n [customClasses.ghostDisabled]: disabled ?? [\"Current\", \"Disabled\"].includes(state),\n },\n className\n )}\n aria-label={`step-${title}`}\n icon\n overrideIconColors={false}\n disabled={disabled ?? [\"Current\", \"Disabled\"].includes(state)}\n onClick={onClick}\n >\n {[]}\n </HvButton>\n );\n};\n\nHvDot.propTypes = {\n /**\n * Class names to be applied.\n */\n className: PropTypes.string,\n /**\n * A Jss Object used to override or extend the styles applied.\n */\n classes: PropTypes.shape({\n /**\n * Styles applied to the component root class.\n */\n root: PropTypes.string,\n /**\n * Styles applied to the active class.\n */\n active: PropTypes.string,\n /**\n * Styles applied to the ghost class.\n */\n ghost: PropTypes.string,\n /**\n * Styles applied to the ghostDisabled class.\n */\n ghostDisabled: PropTypes.string,\n }).isRequired,\n /**\n * State of the step. Values = {\"Pending\", \"Failed\", \"Completed\", \"Current\", \"Disabled\"}\n */\n state: PropTypes.oneOf([\"Pending\", \"Failed\", \"Completed\", \"Current\", \"Disabled\"]).isRequired,\n /**\n * Title of the step.\n */\n title: PropTypes.string.isRequired,\n /**\n * Sets one of the standard sizes of the steps\n */\n size: PropTypes.oneOf([\"XS\", \"SM\", \"MD\", \"LG\", \"XL\"]).isRequired,\n /**\n * Event onClick of the step.\n */\n onClick: PropTypes.func,\n /**\n * Define if a step is disabled/enabled.\n * If this property is not defined and the step is on state \"Disabled\", the step component will be disabled\n */\n disabled: PropTypes.bool,\n};\n\nexport default withStyles(styles, { name: \"HvDot\" })(HvDot);\n"],"mappings":"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"}
1
+ {"version":3,"file":"Dot.js","names":["React","useMemo","PropTypes","clsx","HvButton","withStyles","makeStyles","getColor","dotSizes","styles","HvDot","classes","className","state","title","size","onClick","disabled","dotSize","customClasses","theme","backgroundColor","ghostDisabled","active","ghost","width","height","root","includes","propTypes","string","shape","isRequired","oneOf","func","bool","name"],"sources":["../../../../../src/StepNavigation/SimpleNavigation/Dot/Dot.js"],"sourcesContent":["import React, { useMemo } from \"react\";\nimport PropTypes from \"prop-types\";\nimport clsx from \"clsx\";\n\nimport { HvButton } from \"@hitachivantara/uikit-react-core\";\nimport { withStyles, makeStyles } from \"@mui/styles\";\n\nimport { getColor, dotSizes } from \"../utils\";\nimport styles from \"./styles\";\n\n/**\n * Step element of \"Simple\" Step Navigation root component\n */\nconst HvDot = ({ classes, className, state, title, size, onClick, disabled }) => {\n const dotSize = dotSizes[size] * (state === \"Current\" ? 1.5 : 1);\n const customClasses = useMemo(\n () =>\n makeStyles((theme) => {\n const backgroundColor = getColor(state, theme);\n return {\n ghostDisabled: {},\n active: {},\n ghost: {\n ...styles.ghost,\n width: dotSize,\n height: dotSize,\n backgroundColor,\n \"&:hover\": {\n backgroundColor,\n },\n \"&$ghostDisabled\": {\n ...styles.ghost[\"&$ghostDisabled\"],\n backgroundColor,\n },\n \"&$ghostDisabled&:hover\": {\n ...styles.ghost[\"&$ghostDisabled&:hover\"],\n backgroundColor,\n },\n },\n };\n }),\n [dotSize, state]\n )();\n return (\n <HvButton\n className={clsx(\n classes.root,\n customClasses.ghost,\n {\n [customClasses.active]: state === \"Current\",\n [customClasses.ghostDisabled]: disabled ?? [\"Current\", \"Disabled\"].includes(state),\n },\n className\n )}\n aria-label={`step-${title}`}\n icon\n overrideIconColors={false}\n disabled={disabled ?? [\"Current\", \"Disabled\"].includes(state)}\n onClick={onClick}\n >\n {[]}\n </HvButton>\n );\n};\n\nHvDot.propTypes = {\n /**\n * Class names to be applied.\n */\n className: PropTypes.string,\n /**\n * A Jss Object used to override or extend the styles applied.\n */\n classes: PropTypes.shape({\n /**\n * Styles applied to the component root class.\n */\n root: PropTypes.string,\n /**\n * Styles applied to the active class.\n */\n active: PropTypes.string,\n /**\n * Styles applied to the ghost class.\n */\n ghost: PropTypes.string,\n /**\n * Styles applied to the ghostDisabled class.\n */\n ghostDisabled: PropTypes.string,\n }).isRequired,\n /**\n * State of the step. Values = {\"Pending\", \"Failed\", \"Completed\", \"Current\", \"Disabled\"}\n */\n state: PropTypes.oneOf([\"Pending\", \"Failed\", \"Completed\", \"Current\", \"Disabled\"]).isRequired,\n /**\n * Title of the step.\n */\n title: PropTypes.string.isRequired,\n /**\n * Sets one of the standard sizes of the steps\n */\n size: PropTypes.oneOf([\"XS\", \"SM\", \"MD\", \"LG\", \"XL\"]).isRequired,\n /**\n * Event onClick of the step.\n */\n onClick: PropTypes.func,\n /**\n * Define if a step is disabled/enabled.\n * If this property is not defined and the step is on state \"Disabled\", the step component will be disabled\n */\n disabled: PropTypes.bool,\n};\n\nexport default withStyles(styles, { name: \"HvDot\" })(HvDot);\n"],"mappings":"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"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["default"],"sources":["../../../../../src/StepNavigation/SimpleNavigation/Dot/index.js"],"sourcesContent":["export { default } from \"./Dot\";\n"],"mappings":"AAAA,SAASA,OAAT,QAAwB,OAAxB"}
1
+ {"version":3,"file":"index.js","names":["default"],"sources":["../../../../../src/StepNavigation/SimpleNavigation/Dot/index.js"],"sourcesContent":["export { default } from \"./Dot\";\n"],"mappings":"AAAA,SAASA,OAAO,QAAQ,OAAO"}
@@ -1 +1 @@
1
- {"version":3,"file":"styles.js","names":["styles","root","borderRadius","zIndex","ghostDisabled","active","ghost","cursor"],"sources":["../../../../../src/StepNavigation/SimpleNavigation/Dot/styles.js"],"sourcesContent":["const styles = {\n root: {\n borderRadius: \"50%\",\n zIndex: 1,\n },\n ghostDisabled: {},\n active: {},\n ghost: {\n \"&$active\": {\n cursor: \"default\",\n },\n \"&$active&:hover\": {\n cursor: \"default\",\n },\n },\n};\n\nexport default styles;\n"],"mappings":"AAAA,MAAMA,MAAM,GAAG;EACbC,IAAI,EAAE;IACJC,YAAY,EAAE,KADV;IAEJC,MAAM,EAAE;EAFJ,CADO;EAKbC,aAAa,EAAE,EALF;EAMbC,MAAM,EAAE,EANK;EAObC,KAAK,EAAE;IACL,YAAY;MACVC,MAAM,EAAE;IADE,CADP;IAIL,mBAAmB;MACjBA,MAAM,EAAE;IADS;EAJd;AAPM,CAAf;AAiBA,eAAeP,MAAf"}
1
+ {"version":3,"file":"styles.js","names":["styles","root","borderRadius","zIndex","ghostDisabled","active","ghost","cursor"],"sources":["../../../../../src/StepNavigation/SimpleNavigation/Dot/styles.js"],"sourcesContent":["const styles = {\n root: {\n borderRadius: \"50%\",\n zIndex: 1,\n },\n ghostDisabled: {},\n active: {},\n ghost: {\n \"&$active\": {\n cursor: \"default\",\n },\n \"&$active&:hover\": {\n cursor: \"default\",\n },\n },\n};\n\nexport default styles;\n"],"mappings":"AAAA,MAAMA,MAAM,GAAG;EACbC,IAAI,EAAE;IACJC,YAAY,EAAE,KAAK;IACnBC,MAAM,EAAE;EACV,CAAC;EACDC,aAAa,EAAE,CAAC,CAAC;EACjBC,MAAM,EAAE,CAAC,CAAC;EACVC,KAAK,EAAE;IACL,UAAU,EAAE;MACVC,MAAM,EAAE;IACV,CAAC;IACD,iBAAiB,EAAE;MACjBA,MAAM,EAAE;IACV;EACF;AACF,CAAC;AAED,eAAeP,MAAM"}
@@ -1,47 +1,45 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
3
3
  const _excluded = ["numSteps", "stepSize", "getTitles", "getDynamicValues", "children"];
4
-
5
4
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
6
-
7
5
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
8
-
9
6
  import React from "react";
10
7
  import PropTypes from "prop-types";
11
8
  import { withStyles } from "@mui/styles";
12
9
  import HvDot from "./Dot";
13
10
  import { getColor, dotSizes } from "./utils";
14
11
  import styles from "./styles";
12
+
15
13
  /**
16
14
  * Simple Navigation
17
15
  */
18
-
19
16
  import { jsx as _jsx } from "react/jsx-runtime";
20
17
  import { jsxs as _jsxs } from "react/jsx-runtime";
21
-
22
18
  const HvSimpleNavigation = _ref => {
23
19
  let {
24
- numSteps,
25
- stepSize,
26
- getTitles,
27
- getDynamicValues,
28
- children
29
- } = _ref,
30
- other = _objectWithoutProperties(_ref, _excluded);
31
-
20
+ numSteps,
21
+ stepSize,
22
+ getTitles,
23
+ getDynamicValues,
24
+ children
25
+ } = _ref,
26
+ other = _objectWithoutProperties(_ref, _excluded);
32
27
  // step values
33
28
  const dotSize = dotSizes[stepSize];
34
- const StepComponent = HvDot; //
29
+ const StepComponent = HvDot;
30
+ //
35
31
 
36
32
  const stepsWidth = (numSteps + 0.5) * dotSize;
37
33
  const {
38
34
  width,
39
35
  titleWidth,
40
36
  separatorWidth
41
- } = getDynamicValues(stepsWidth); // separator values
37
+ } = getDynamicValues(stepsWidth);
42
38
 
39
+ // separator values
43
40
  const maxWidth = Math.max(titleWidth - dotSize, separatorWidth);
44
- const minWidth = Math.max(titleWidth - dotSize * 1.25, separatorWidth); //
41
+ const minWidth = Math.max(titleWidth - dotSize * 1.25, separatorWidth);
42
+ //
45
43
 
46
44
  const Steps = children;
47
45
  const titles = getTitles(({
@@ -69,13 +67,11 @@ const HvSimpleNavigation = _ref => {
69
67
  })]
70
68
  }));
71
69
  };
72
-
73
70
  process.env.NODE_ENV !== "production" ? HvSimpleNavigation.propTypes = {
74
71
  /**
75
72
  * Class names to be applied.
76
73
  */
77
74
  className: PropTypes.string,
78
-
79
75
  /**
80
76
  * A Jss Object used to override or extend the styles applied.
81
77
  */
@@ -85,27 +81,22 @@ process.env.NODE_ENV !== "production" ? HvSimpleNavigation.propTypes = {
85
81
  */
86
82
  root: PropTypes.string
87
83
  }).isRequired,
88
-
89
84
  /**
90
85
  * Number of steps to show on the component.
91
86
  */
92
87
  numSteps: PropTypes.number.isRequired,
93
-
94
88
  /**
95
89
  * Sets one of the standard sizes of the steps
96
90
  */
97
91
  stepSize: PropTypes.oneOf(["XS", "SM", "MD", "LG", "XL"]).isRequired,
98
-
99
92
  /**
100
93
  * Returns dynamic width values of the component (width, titleWidth, separatorWidth).
101
94
  */
102
95
  getDynamicValues: PropTypes.func.isRequired,
103
-
104
96
  /**
105
97
  * Returns a JSX.element of the titles container.
106
98
  */
107
99
  getTitles: PropTypes.func.isRequired,
108
-
109
100
  /**
110
101
  * Component to render Step Navigation with props = {separatorValues, stepValues, stepsWidth}
111
102
  */
@@ -1 +1 @@
1
- {"version":3,"file":"SimpleNavigation.js","names":["React","PropTypes","withStyles","HvDot","getColor","dotSizes","styles","HvSimpleNavigation","numSteps","stepSize","getTitles","getDynamicValues","children","other","dotSize","StepComponent","stepsWidth","width","titleWidth","separatorWidth","maxWidth","Math","max","minWidth","Steps","titles","rawTitle","number","title","navWidth","separatorValues","height","stepValues","minSize","maxSize","propTypes","className","string","classes","shape","root","isRequired","oneOf","func","elementType","name"],"sources":["../../../../src/StepNavigation/SimpleNavigation/SimpleNavigation.js"],"sourcesContent":["import React from \"react\";\nimport PropTypes from \"prop-types\";\n\nimport { withStyles } from \"@mui/styles\";\n\nimport HvDot from \"./Dot\";\nimport { getColor, dotSizes } from \"./utils\";\nimport styles from \"./styles\";\n\n/**\n * Simple Navigation\n */\nconst HvSimpleNavigation = ({\n numSteps,\n stepSize,\n getTitles,\n getDynamicValues,\n children,\n ...other\n}) => {\n // step values\n const dotSize = dotSizes[stepSize];\n const StepComponent = HvDot;\n //\n\n const stepsWidth = (numSteps + 0.5) * dotSize;\n const { width, titleWidth, separatorWidth } = getDynamicValues(stepsWidth);\n\n // separator values\n const maxWidth = Math.max(titleWidth - dotSize, separatorWidth);\n const minWidth = Math.max(titleWidth - dotSize * 1.25, separatorWidth);\n //\n\n const Steps = children;\n\n const titles = getTitles(({ rawTitle, number }) => ({\n title: `${number}. ${rawTitle}`,\n titleWidth,\n }));\n\n return (\n <div {...other}>\n {titles}\n <Steps\n {...{\n stepsWidth,\n navWidth: width,\n separatorValues: {\n minWidth,\n maxWidth,\n getColor,\n height: 2,\n },\n stepValues: {\n minSize: dotSize,\n maxSize: 1.5 * dotSize,\n StepComponent,\n },\n }}\n />\n </div>\n );\n};\n\nHvSimpleNavigation.propTypes = {\n /**\n * Class names to be applied.\n */\n className: PropTypes.string,\n /**\n * A Jss Object used to override or extend the styles applied.\n */\n classes: PropTypes.shape({\n /**\n * Styles applied to the component root class.\n */\n root: PropTypes.string,\n }).isRequired,\n /**\n * Number of steps to show on the component.\n */\n numSteps: PropTypes.number.isRequired,\n /**\n * Sets one of the standard sizes of the steps\n */\n stepSize: PropTypes.oneOf([\"XS\", \"SM\", \"MD\", \"LG\", \"XL\"]).isRequired,\n /**\n * Returns dynamic width values of the component (width, titleWidth, separatorWidth).\n */\n getDynamicValues: PropTypes.func.isRequired,\n /**\n * Returns a JSX.element of the titles container.\n */\n getTitles: PropTypes.func.isRequired,\n /**\n * Component to render Step Navigation with props = {separatorValues, stepValues, stepsWidth}\n */\n children: PropTypes.elementType.isRequired,\n};\n\nexport default withStyles(styles, { name: \"HvSimpleNavigation\" })(HvSimpleNavigation);\n"],"mappings":";;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AAEA,SAASC,UAAT,QAA2B,aAA3B;AAEA,OAAOC,KAAP,MAAkB,OAAlB;AACA,SAASC,QAAT,EAAmBC,QAAnB,QAAmC,SAAnC;AACA,OAAOC,MAAP,MAAmB,UAAnB;AAEA;AACA;AACA;;;;;AACA,MAAMC,kBAAkB,GAAG,QAOrB;EAAA,IAPsB;IAC1BC,QAD0B;IAE1BC,QAF0B;IAG1BC,SAH0B;IAI1BC,gBAJ0B;IAK1BC;EAL0B,CAOtB;EAAA,IADDC,KACC;;EACJ;EACA,MAAMC,OAAO,GAAGT,QAAQ,CAACI,QAAD,CAAxB;EACA,MAAMM,aAAa,GAAGZ,KAAtB,CAHI,CAIJ;;EAEA,MAAMa,UAAU,GAAG,CAACR,QAAQ,GAAG,GAAZ,IAAmBM,OAAtC;EACA,MAAM;IAAEG,KAAF;IAASC,UAAT;IAAqBC;EAArB,IAAwCR,gBAAgB,CAACK,UAAD,CAA9D,CAPI,CASJ;;EACA,MAAMI,QAAQ,GAAGC,IAAI,CAACC,GAAL,CAASJ,UAAU,GAAGJ,OAAtB,EAA+BK,cAA/B,CAAjB;EACA,MAAMI,QAAQ,GAAGF,IAAI,CAACC,GAAL,CAASJ,UAAU,GAAGJ,OAAO,GAAG,IAAhC,EAAsCK,cAAtC,CAAjB,CAXI,CAYJ;;EAEA,MAAMK,KAAK,GAAGZ,QAAd;EAEA,MAAMa,MAAM,GAAGf,SAAS,CAAC,CAAC;IAAEgB,QAAF;IAAYC;EAAZ,CAAD,MAA2B;IAClDC,KAAK,EAAG,GAAED,MAAO,KAAID,QAAS,EADoB;IAElDR;EAFkD,CAA3B,CAAD,CAAxB;EAKA,oBACE,6CAASL,KAAT;IAAA,WACGY,MADH,eAEE,KAAC,KAAD;MAEIT,UAFJ;MAGIa,QAAQ,EAAEZ,KAHd;MAIIa,eAAe,EAAE;QACfP,QADe;QAEfH,QAFe;QAGfhB,QAHe;QAIf2B,MAAM,EAAE;MAJO,CAJrB;MAUIC,UAAU,EAAE;QACVC,OAAO,EAAEnB,OADC;QAEVoB,OAAO,EAAE,MAAMpB,OAFL;QAGVC;MAHU;IAVhB,EAFF;EAAA,GADF;AAsBD,CAlDD;;AAoDA,wCAAAR,kBAAkB,CAAC4B,SAAnB,GAA+B;EAC7B;AACF;AACA;EACEC,SAAS,EAAEnC,SAAS,CAACoC,MAJQ;;EAK7B;AACF;AACA;EACEC,OAAO,EAAErC,SAAS,CAACsC,KAAV,CAAgB;IACvB;AACJ;AACA;IACIC,IAAI,EAAEvC,SAAS,CAACoC;EAJO,CAAhB,EAKNI,UAb0B;;EAc7B;AACF;AACA;EACEjC,QAAQ,EAAEP,SAAS,CAAC0B,MAAV,CAAiBc,UAjBE;;EAkB7B;AACF;AACA;EACEhC,QAAQ,EAAER,SAAS,CAACyC,KAAV,CAAgB,CAAC,IAAD,EAAO,IAAP,EAAa,IAAb,EAAmB,IAAnB,EAAyB,IAAzB,CAAhB,EAAgDD,UArB7B;;EAsB7B;AACF;AACA;EACE9B,gBAAgB,EAAEV,SAAS,CAAC0C,IAAV,CAAeF,UAzBJ;;EA0B7B;AACF;AACA;EACE/B,SAAS,EAAET,SAAS,CAAC0C,IAAV,CAAeF,UA7BG;;EA8B7B;AACF;AACA;EACE7B,QAAQ,EAAEX,SAAS,CAAC2C,WAAV,CAAsBH;AAjCH,CAA/B;AAoCA,eAAevC,UAAU,CAACI,MAAD,EAAS;EAAEuC,IAAI,EAAE;AAAR,CAAT,CAAV,CAAmDtC,kBAAnD,CAAf"}
1
+ {"version":3,"file":"SimpleNavigation.js","names":["React","PropTypes","withStyles","HvDot","getColor","dotSizes","styles","HvSimpleNavigation","numSteps","stepSize","getTitles","getDynamicValues","children","other","dotSize","StepComponent","stepsWidth","width","titleWidth","separatorWidth","maxWidth","Math","max","minWidth","Steps","titles","rawTitle","number","title","navWidth","separatorValues","height","stepValues","minSize","maxSize","propTypes","className","string","classes","shape","root","isRequired","oneOf","func","elementType","name"],"sources":["../../../../src/StepNavigation/SimpleNavigation/SimpleNavigation.js"],"sourcesContent":["import React from \"react\";\nimport PropTypes from \"prop-types\";\n\nimport { withStyles } from \"@mui/styles\";\n\nimport HvDot from \"./Dot\";\nimport { getColor, dotSizes } from \"./utils\";\nimport styles from \"./styles\";\n\n/**\n * Simple Navigation\n */\nconst HvSimpleNavigation = ({\n numSteps,\n stepSize,\n getTitles,\n getDynamicValues,\n children,\n ...other\n}) => {\n // step values\n const dotSize = dotSizes[stepSize];\n const StepComponent = HvDot;\n //\n\n const stepsWidth = (numSteps + 0.5) * dotSize;\n const { width, titleWidth, separatorWidth } = getDynamicValues(stepsWidth);\n\n // separator values\n const maxWidth = Math.max(titleWidth - dotSize, separatorWidth);\n const minWidth = Math.max(titleWidth - dotSize * 1.25, separatorWidth);\n //\n\n const Steps = children;\n\n const titles = getTitles(({ rawTitle, number }) => ({\n title: `${number}. ${rawTitle}`,\n titleWidth,\n }));\n\n return (\n <div {...other}>\n {titles}\n <Steps\n {...{\n stepsWidth,\n navWidth: width,\n separatorValues: {\n minWidth,\n maxWidth,\n getColor,\n height: 2,\n },\n stepValues: {\n minSize: dotSize,\n maxSize: 1.5 * dotSize,\n StepComponent,\n },\n }}\n />\n </div>\n );\n};\n\nHvSimpleNavigation.propTypes = {\n /**\n * Class names to be applied.\n */\n className: PropTypes.string,\n /**\n * A Jss Object used to override or extend the styles applied.\n */\n classes: PropTypes.shape({\n /**\n * Styles applied to the component root class.\n */\n root: PropTypes.string,\n }).isRequired,\n /**\n * Number of steps to show on the component.\n */\n numSteps: PropTypes.number.isRequired,\n /**\n * Sets one of the standard sizes of the steps\n */\n stepSize: PropTypes.oneOf([\"XS\", \"SM\", \"MD\", \"LG\", \"XL\"]).isRequired,\n /**\n * Returns dynamic width values of the component (width, titleWidth, separatorWidth).\n */\n getDynamicValues: PropTypes.func.isRequired,\n /**\n * Returns a JSX.element of the titles container.\n */\n getTitles: PropTypes.func.isRequired,\n /**\n * Component to render Step Navigation with props = {separatorValues, stepValues, stepsWidth}\n */\n children: PropTypes.elementType.isRequired,\n};\n\nexport default withStyles(styles, { name: \"HvSimpleNavigation\" })(HvSimpleNavigation);\n"],"mappings":";;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAElC,SAASC,UAAU,QAAQ,aAAa;AAExC,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,QAAQ,EAAEC,QAAQ,QAAQ,SAAS;AAC5C,OAAOC,MAAM,MAAM,UAAU;;AAE7B;AACA;AACA;AAFA;AAAA;AAGA,MAAMC,kBAAkB,GAAG,QAOrB;EAAA,IAPsB;MAC1BC,QAAQ;MACRC,QAAQ;MACRC,SAAS;MACTC,gBAAgB;MAChBC;IAEF,CAAC;IADIC,KAAK;EAER;EACA,MAAMC,OAAO,GAAGT,QAAQ,CAACI,QAAQ,CAAC;EAClC,MAAMM,aAAa,GAAGZ,KAAK;EAC3B;;EAEA,MAAMa,UAAU,GAAG,CAACR,QAAQ,GAAG,GAAG,IAAIM,OAAO;EAC7C,MAAM;IAAEG,KAAK;IAAEC,UAAU;IAAEC;EAAe,CAAC,GAAGR,gBAAgB,CAACK,UAAU,CAAC;;EAE1E;EACA,MAAMI,QAAQ,GAAGC,IAAI,CAACC,GAAG,CAACJ,UAAU,GAAGJ,OAAO,EAAEK,cAAc,CAAC;EAC/D,MAAMI,QAAQ,GAAGF,IAAI,CAACC,GAAG,CAACJ,UAAU,GAAGJ,OAAO,GAAG,IAAI,EAAEK,cAAc,CAAC;EACtE;;EAEA,MAAMK,KAAK,GAAGZ,QAAQ;EAEtB,MAAMa,MAAM,GAAGf,SAAS,CAAC,CAAC;IAAEgB,QAAQ;IAAEC;EAAO,CAAC,MAAM;IAClDC,KAAK,EAAG,GAAED,MAAO,KAAID,QAAS,EAAC;IAC/BR;EACF,CAAC,CAAC,CAAC;EAEH,oBACE,6CAASL,KAAK;IAAA,WACXY,MAAM,eACP,KAAC,KAAK;MAEFT,UAAU;MACVa,QAAQ,EAAEZ,KAAK;MACfa,eAAe,EAAE;QACfP,QAAQ;QACRH,QAAQ;QACRhB,QAAQ;QACR2B,MAAM,EAAE;MACV,CAAC;MACDC,UAAU,EAAE;QACVC,OAAO,EAAEnB,OAAO;QAChBoB,OAAO,EAAE,GAAG,GAAGpB,OAAO;QACtBC;MACF;IAAC,EAEH;EAAA,GACE;AAEV,CAAC;AAED,wCAAAR,kBAAkB,CAAC4B,SAAS,GAAG;EAC7B;AACF;AACA;EACEC,SAAS,EAAEnC,SAAS,CAACoC,MAAM;EAC3B;AACF;AACA;EACEC,OAAO,EAAErC,SAAS,CAACsC,KAAK,CAAC;IACvB;AACJ;AACA;IACIC,IAAI,EAAEvC,SAAS,CAACoC;EAClB,CAAC,CAAC,CAACI,UAAU;EACb;AACF;AACA;EACEjC,QAAQ,EAAEP,SAAS,CAAC0B,MAAM,CAACc,UAAU;EACrC;AACF;AACA;EACEhC,QAAQ,EAAER,SAAS,CAACyC,KAAK,CAAC,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAACD,UAAU;EACpE;AACF;AACA;EACE9B,gBAAgB,EAAEV,SAAS,CAAC0C,IAAI,CAACF,UAAU;EAC3C;AACF;AACA;EACE/B,SAAS,EAAET,SAAS,CAAC0C,IAAI,CAACF,UAAU;EACpC;AACF;AACA;EACE7B,QAAQ,EAAEX,SAAS,CAAC2C,WAAW,CAACH;AAClC,CAAC;AAED,eAAevC,UAAU,CAACI,MAAM,EAAE;EAAEuC,IAAI,EAAE;AAAqB,CAAC,CAAC,CAACtC,kBAAkB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["default"],"sources":["../../../../src/StepNavigation/SimpleNavigation/index.js"],"sourcesContent":["export { default } from \"./SimpleNavigation\";\n"],"mappings":"AAAA,SAASA,OAAT,QAAwB,oBAAxB"}
1
+ {"version":3,"file":"index.js","names":["default"],"sources":["../../../../src/StepNavigation/SimpleNavigation/index.js"],"sourcesContent":["export { default } from \"./SimpleNavigation\";\n"],"mappings":"AAAA,SAASA,OAAO,QAAQ,oBAAoB"}
@@ -1,6 +1,5 @@
1
1
  const styles = () => ({
2
2
  root: {}
3
3
  });
4
-
5
4
  export default styles;
6
5
  //# sourceMappingURL=styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles.js","names":["styles","root"],"sources":["../../../../src/StepNavigation/SimpleNavigation/styles.js"],"sourcesContent":["const styles = () => ({\n root: {},\n});\n\nexport default styles;\n"],"mappings":"AAAA,MAAMA,MAAM,GAAG,OAAO;EACpBC,IAAI,EAAE;AADc,CAAP,CAAf;;AAIA,eAAeD,MAAf"}
1
+ {"version":3,"file":"styles.js","names":["styles","root"],"sources":["../../../../src/StepNavigation/SimpleNavigation/styles.js"],"sourcesContent":["const styles = () => ({\n root: {},\n});\n\nexport default styles;\n"],"mappings":"AAAA,MAAMA,MAAM,GAAG,OAAO;EACpBC,IAAI,EAAE,CAAC;AACT,CAAC,CAAC;AAEF,eAAeD,MAAM"}
@@ -5,20 +5,14 @@ const dotSizes = {
5
5
  LG: 14,
6
6
  XL: 16
7
7
  };
8
-
9
8
  const defaultColor = theme => {
10
9
  var _theme$hv$palette$acc, _theme$hv, _theme$hv$palette, _theme$hv$palette$acc2;
11
-
12
10
  return (_theme$hv$palette$acc = theme === null || theme === void 0 ? void 0 : (_theme$hv = theme.hv) === null || _theme$hv === void 0 ? void 0 : (_theme$hv$palette = _theme$hv.palette) === null || _theme$hv$palette === void 0 ? void 0 : (_theme$hv$palette$acc2 = _theme$hv$palette.accent) === null || _theme$hv$palette$acc2 === void 0 ? void 0 : _theme$hv$palette$acc2.acce1) !== null && _theme$hv$palette$acc !== void 0 ? _theme$hv$palette$acc : "acce1";
13
11
  };
14
-
15
12
  const disabledColor = theme => {
16
13
  var _theme$hv$palette$atm, _theme$hv2, _theme$hv2$palette, _theme$hv2$palette$at;
17
-
18
14
  return (_theme$hv$palette$atm = theme === null || theme === void 0 ? void 0 : (_theme$hv2 = theme.hv) === null || _theme$hv2 === void 0 ? void 0 : (_theme$hv2$palette = _theme$hv2.palette) === null || _theme$hv2$palette === void 0 ? void 0 : (_theme$hv2$palette$at = _theme$hv2$palette.atmosphere) === null || _theme$hv2$palette$at === void 0 ? void 0 : _theme$hv2$palette$at.atmo5) !== null && _theme$hv$palette$atm !== void 0 ? _theme$hv$palette$atm : "atmo5";
19
15
  };
20
-
21
16
  const getColor = (state, theme) => state === "Disabled" ? disabledColor(theme) : defaultColor(theme);
22
-
23
17
  export { dotSizes, getColor };
24
18
  //# sourceMappingURL=utils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","names":["dotSizes","XS","SM","MD","LG","XL","defaultColor","theme","hv","palette","accent","acce1","disabledColor","atmosphere","atmo5","getColor","state"],"sources":["../../../../src/StepNavigation/SimpleNavigation/utils.js"],"sourcesContent":["const dotSizes = {\n XS: 8,\n SM: 10,\n MD: 12,\n LG: 14,\n XL: 16,\n};\n\nconst defaultColor = (theme) => theme?.hv?.palette?.accent?.acce1 ?? \"acce1\";\nconst disabledColor = (theme) => theme?.hv?.palette?.atmosphere?.atmo5 ?? \"atmo5\";\n\nconst getColor = (state, theme) =>\n state === \"Disabled\" ? disabledColor(theme) : defaultColor(theme);\n\nexport { dotSizes, getColor };\n"],"mappings":"AAAA,MAAMA,QAAQ,GAAG;EACfC,EAAE,EAAE,CADW;EAEfC,EAAE,EAAE,EAFW;EAGfC,EAAE,EAAE,EAHW;EAIfC,EAAE,EAAE,EAJW;EAKfC,EAAE,EAAE;AALW,CAAjB;;AAQA,MAAMC,YAAY,GAAIC,KAAD;EAAA;;EAAA,gCAAWA,KAAX,aAAWA,KAAX,oCAAWA,KAAK,CAAEC,EAAlB,mEAAW,UAAWC,OAAtB,gFAAW,kBAAoBC,MAA/B,2DAAW,uBAA4BC,KAAvC,yEAAgD,OAAhD;AAAA,CAArB;;AACA,MAAMC,aAAa,GAAIL,KAAD;EAAA;;EAAA,gCAAWA,KAAX,aAAWA,KAAX,qCAAWA,KAAK,CAAEC,EAAlB,qEAAW,WAAWC,OAAtB,gFAAW,mBAAoBI,UAA/B,0DAAW,sBAAgCC,KAA3C,yEAAoD,OAApD;AAAA,CAAtB;;AAEA,MAAMC,QAAQ,GAAG,CAACC,KAAD,EAAQT,KAAR,KACfS,KAAK,KAAK,UAAV,GAAuBJ,aAAa,CAACL,KAAD,CAApC,GAA8CD,YAAY,CAACC,KAAD,CAD5D;;AAGA,SAASP,QAAT,EAAmBe,QAAnB"}
1
+ {"version":3,"file":"utils.js","names":["dotSizes","XS","SM","MD","LG","XL","defaultColor","theme","hv","palette","accent","acce1","disabledColor","atmosphere","atmo5","getColor","state"],"sources":["../../../../src/StepNavigation/SimpleNavigation/utils.js"],"sourcesContent":["const dotSizes = {\n XS: 8,\n SM: 10,\n MD: 12,\n LG: 14,\n XL: 16,\n};\n\nconst defaultColor = (theme) => theme?.hv?.palette?.accent?.acce1 ?? \"acce1\";\nconst disabledColor = (theme) => theme?.hv?.palette?.atmosphere?.atmo5 ?? \"atmo5\";\n\nconst getColor = (state, theme) =>\n state === \"Disabled\" ? disabledColor(theme) : defaultColor(theme);\n\nexport { dotSizes, getColor };\n"],"mappings":"AAAA,MAAMA,QAAQ,GAAG;EACfC,EAAE,EAAE,CAAC;EACLC,EAAE,EAAE,EAAE;EACNC,EAAE,EAAE,EAAE;EACNC,EAAE,EAAE,EAAE;EACNC,EAAE,EAAE;AACN,CAAC;AAED,MAAMC,YAAY,GAAIC,KAAK;EAAA;EAAA,gCAAKA,KAAK,aAALA,KAAK,oCAALA,KAAK,CAAEC,EAAE,mEAAT,UAAWC,OAAO,gFAAlB,kBAAoBC,MAAM,2DAA1B,uBAA4BC,KAAK,yEAAI,OAAO;AAAA;AAC5E,MAAMC,aAAa,GAAIL,KAAK;EAAA;EAAA,gCAAKA,KAAK,aAALA,KAAK,qCAALA,KAAK,CAAEC,EAAE,qEAAT,WAAWC,OAAO,gFAAlB,mBAAoBI,UAAU,0DAA9B,sBAAgCC,KAAK,yEAAI,OAAO;AAAA;AAEjF,MAAMC,QAAQ,GAAG,CAACC,KAAK,EAAET,KAAK,KAC5BS,KAAK,KAAK,UAAU,GAAGJ,aAAa,CAACL,KAAK,CAAC,GAAGD,YAAY,CAACC,KAAK,CAAC;AAEnE,SAASP,QAAQ,EAAEe,QAAQ"}
@@ -16,16 +16,18 @@ export type HvStepNavigationProps = StandardProps<
16
16
  /**
17
17
  * Steps to show on the component.
18
18
  */
19
- steps: Array<Pick<HvStepProps, "state" | "title" | "onClick" | "className" | "disabled">> & {
20
- /**
21
- * Class names to override styles on the separator component after the step.
22
- */
23
- separatorClassName: string;
24
- /**
25
- * Class names to override styles on the title component above the step.
26
- */
27
- titleClassName: string;
28
- };
19
+ steps: Array<
20
+ Pick<HvStepProps, "state" | "title" | "onClick" | "className" | "disabled"> & {
21
+ /**
22
+ * Class names to override styles on the separator component after the step.
23
+ */
24
+ separatorClassName?: string;
25
+ /**
26
+ * Class names to override styles on the title component above the step.
27
+ */
28
+ titleClassName?: string;
29
+ }
30
+ >;
29
31
  /**
30
32
  * Sets one of the standard sizes of the steps.
31
33
  */
@@ -1,14 +1,10 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
3
3
  const _excluded = ["className", "classes", "width", "steps", "stepSize", "showTitles", "type"],
4
- _excluded2 = ["state", "title", "separatorClassName"],
5
- _excluded3 = ["stepsWidth", "navWidth"];
6
- import "core-js/modules/web.dom-collections.iterator.js";
7
-
4
+ _excluded2 = ["state", "title", "separatorClassName"],
5
+ _excluded3 = ["stepsWidth", "navWidth"];
8
6
  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; }
9
-
10
7
  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; }
11
-
12
8
  import React from "react";
13
9
  import PropTypes from "prop-types";
14
10
  import clsx from "clsx";
@@ -19,6 +15,7 @@ import HvDefaultNavigation from "./DefaultNavigation";
19
15
  import HvSimpleNavigation from "./SimpleNavigation";
20
16
  import { SEPARATOR_WIDTH, TITLE_MARGIN, TITLE_WIDTH } from "./utils";
21
17
  import styles from "./styles";
18
+
22
19
  /**
23
20
  * Navigation page with steps.
24
21
  *
@@ -40,38 +37,32 @@ import styles from "./styles";
40
37
  * displayed above, the width of the separator element will be 100px.
41
38
  * If the step component has titles, each one will have 215px of width by default.
42
39
  */
43
-
44
40
  import { jsx as _jsx } from "react/jsx-runtime";
45
-
46
41
  const HvStepNavigation = _ref => {
47
42
  let {
48
- className,
49
- classes,
50
- width,
51
- steps,
52
- stepSize,
53
- showTitles,
54
- type = "Default"
55
- } = _ref,
56
- others = _objectWithoutProperties(_ref, _excluded);
57
-
58
- const theme = useTheme(); // current breakpoint 'xs' | 'sm' | 'md' | 'lg' | 'xl'
59
-
60
- const breakpoint = useWidth(); // step configurations
61
-
43
+ className,
44
+ classes,
45
+ width,
46
+ steps,
47
+ stepSize,
48
+ showTitles,
49
+ type = "Default"
50
+ } = _ref,
51
+ others = _objectWithoutProperties(_ref, _excluded);
52
+ const theme = useTheme();
53
+ // current breakpoint 'xs' | 'sm' | 'md' | 'lg' | 'xl'
54
+ const breakpoint = useWidth();
55
+ // step configurations
62
56
  const stepSizeKey = stepSize !== null && stepSize !== void 0 ? stepSize : ["xs", "sm"].includes(breakpoint) ? "SM" : "MD";
63
57
  const hasTitles = showTitles !== null && showTitles !== void 0 ? showTitles : !["xs", "sm"].includes(breakpoint);
64
-
65
58
  const styledLi = containerSize => styled("li")({
66
59
  width: containerSize,
67
60
  height: containerSize
68
61
  });
69
-
70
62
  const styledDiv = containerSize => styled("div")({
71
63
  width: containerSize,
72
64
  height: containerSize
73
65
  });
74
-
75
66
  const styledSeparatorElement = (title, separatorClassName, separatorHeight, separatorWidth, backgroundColor) => {
76
67
  const Separator = withStyles({
77
68
  separatorElement: {
@@ -93,7 +84,6 @@ const HvStepNavigation = _ref => {
93
84
  children: /*#__PURE__*/_jsx(Separator, {})
94
85
  }, `separator-${title}`);
95
86
  };
96
-
97
87
  const drawItems = ({
98
88
  separatorValues: {
99
89
  minWidth,
@@ -109,23 +99,20 @@ const HvStepNavigation = _ref => {
109
99
  }) => {
110
100
  const items = steps.reduce((acc, _ref2, index) => {
111
101
  let {
112
- state,
113
- title,
114
- separatorClassName
115
- } = _ref2,
116
- props = _objectWithoutProperties(_ref2, _excluded2);
117
-
102
+ state,
103
+ title,
104
+ separatorClassName
105
+ } = _ref2,
106
+ props = _objectWithoutProperties(_ref2, _excluded2);
118
107
  const containerSize = state === "Current" ? maxSize : minSize;
119
108
  const StepContainer = styledLi(containerSize);
120
109
  const Step = styledDiv(Math.max(containerSize, 30), Math.max(containerSize, 30));
121
-
122
110
  const stepProps = _objectSpread({}, _objectSpread({
123
111
  size: stepSizeKey,
124
112
  state,
125
113
  title,
126
114
  number: index + 1
127
115
  }, props));
128
-
129
116
  const stepElement = /*#__PURE__*/_jsx(StepContainer, {
130
117
  className: classes.li,
131
118
  children: hasTitles ? /*#__PURE__*/_jsx(StepComponent, _objectSpread({
@@ -146,12 +133,10 @@ const HvStepNavigation = _ref => {
146
133
  })
147
134
  })
148
135
  }, `step-${title}`);
149
-
150
136
  if (index < steps.length - 1) {
151
137
  const separatorElement = styledSeparatorElement(title, separatorClassName, height, [steps[index + 1].state, state].includes("Current") ? minWidth : maxWidth, getColor(steps[index + 1].state === "Disabled" ? "Disabled" : state, theme));
152
138
  return [...acc, stepElement, separatorElement];
153
139
  }
154
-
155
140
  return [...acc, stepElement];
156
141
  }, []);
157
142
  return /*#__PURE__*/_jsx("ol", {
@@ -159,10 +144,8 @@ const HvStepNavigation = _ref => {
159
144
  children: items
160
145
  });
161
146
  };
162
-
163
147
  const getDynamicValues = stepsWidth => {
164
148
  var _width$breakpoint, _theme$breakpoints$va, _theme$breakpoints$va2;
165
-
166
149
  const maxWidth = (_width$breakpoint = width === null || width === void 0 ? void 0 : width[breakpoint]) !== null && _width$breakpoint !== void 0 ? _width$breakpoint : Math.max(Number(hasTitles) * (TITLE_WIDTH + TITLE_MARGIN) * steps.length - TITLE_MARGIN, SEPARATOR_WIDTH * (steps.length - 1) + stepsWidth);
167
150
  const next = theme.breakpoints.keys.find((_, index, self) => index - 1 >= 0 ? self[index - 1] === breakpoint : false);
168
151
  const navWidth = Math.min(maxWidth, (_theme$breakpoints$va = (_theme$breakpoints$va2 = theme.breakpoints.values) === null || _theme$breakpoints$va2 === void 0 ? void 0 : _theme$breakpoints$va2[next]) !== null && _theme$breakpoints$va !== void 0 ? _theme$breakpoints$va : maxWidth);
@@ -174,7 +157,6 @@ const HvStepNavigation = _ref => {
174
157
  separatorWidth
175
158
  };
176
159
  };
177
-
178
160
  const styledTitle = (titleClassName, variant, title, titleWidth) => withStyles({
179
161
  stepTitle: {
180
162
  textAlign: "center",
@@ -190,7 +172,6 @@ const HvStepNavigation = _ref => {
190
172
  className: clsx(stepTitle, titleClassName),
191
173
  children: title
192
174
  }) : null);
193
-
194
175
  const getTitles = getTitleProps => hasTitles ? /*#__PURE__*/_jsx("div", {
195
176
  className: classes.titles,
196
177
  children: steps.map(({
@@ -211,7 +192,6 @@ const HvStepNavigation = _ref => {
211
192
  return /*#__PURE__*/_jsx(Title, {}, `step-title-${rawTitle}`);
212
193
  })
213
194
  }) : null;
214
-
215
195
  const StepNavigation = {
216
196
  Default: HvDefaultNavigation,
217
197
  Simple: HvSimpleNavigation
@@ -225,11 +205,10 @@ const HvStepNavigation = _ref => {
225
205
  }, others)), {}, {
226
206
  children: _ref3 => {
227
207
  let {
228
- stepsWidth,
229
- navWidth
230
- } = _ref3,
231
- itemsProps = _objectWithoutProperties(_ref3, _excluded3);
232
-
208
+ stepsWidth,
209
+ navWidth
210
+ } = _ref3,
211
+ itemsProps = _objectWithoutProperties(_ref3, _excluded3);
233
212
  return /*#__PURE__*/_jsx(Typography, {
234
213
  component: "nav",
235
214
  style: {
@@ -241,13 +220,11 @@ const HvStepNavigation = _ref => {
241
220
  }
242
221
  }));
243
222
  };
244
-
245
223
  process.env.NODE_ENV !== "production" ? HvStepNavigation.propTypes = {
246
224
  /**
247
225
  * Class names to be applied.
248
226
  */
249
227
  className: PropTypes.string,
250
-
251
228
  /**
252
229
  * A Jss Object used to override or extend the styles applied.
253
230
  */
@@ -256,33 +233,27 @@ process.env.NODE_ENV !== "production" ? HvStepNavigation.propTypes = {
256
233
  * Styles applied to the component root class.
257
234
  */
258
235
  root: PropTypes.string,
259
-
260
236
  /**
261
237
  * Styles applied to the li element.
262
238
  */
263
239
  li: PropTypes.string,
264
-
265
240
  /**
266
241
  * Styles applied to the ol element.
267
242
  */
268
243
  ol: PropTypes.string,
269
-
270
244
  /**
271
245
  * Styles applied to the separator element.
272
246
  */
273
247
  separator: PropTypes.string,
274
-
275
248
  /**
276
249
  * Styles applied to the titles container element.
277
250
  */
278
251
  titles: PropTypes.string
279
252
  }).isRequired,
280
-
281
253
  /**
282
254
  * Type of step navigation. Values = {"Simple", "Default"}.
283
255
  */
284
256
  type: PropTypes.oneOf(["Simple", "Default"]),
285
-
286
257
  /**
287
258
  * Steps to show on the component.
288
259
  */
@@ -291,39 +262,32 @@ process.env.NODE_ENV !== "production" ? HvStepNavigation.propTypes = {
291
262
  * Class names to override styles on the step component.
292
263
  */
293
264
  className: PropTypes.string,
294
-
295
265
  /**
296
266
  * Class names to override styles on the separator component after the step.
297
267
  */
298
268
  separatorClassName: PropTypes.string,
299
-
300
269
  /**
301
270
  * Class names to override styles on the title component above the step.
302
271
  */
303
272
  titleClassName: PropTypes.string,
304
-
305
273
  /**
306
274
  * Title of the step.
307
275
  */
308
276
  title: PropTypes.string.isRequired,
309
-
310
277
  /**
311
278
  * State of the step. Values = {"Pending", "Failed", "Completed", "Current", "Disabled", "Enabled"}.
312
279
  */
313
280
  state: PropTypes.oneOf(["Pending", "Failed", "Completed", "Current", "Disabled", "Enabled"]).isRequired,
314
-
315
281
  /**
316
282
  * Define if a step is disabled/enabled.
317
283
  * If this property is not defined and the step is on state "Disabled", the step component will be disabled
318
284
  */
319
285
  disabled: PropTypes.bool
320
286
  })).isRequired,
321
-
322
287
  /**
323
288
  * Sets one of the standard sizes of the steps. Values = {"XS", "SM", "MD", "LG", "XL"}
324
289
  */
325
290
  stepSize: PropTypes.oneOf(["XS", "SM", "MD", "LG", "XL"]),
326
-
327
291
  /**
328
292
  * Width of the component element on each breakpoint screen resolution.
329
293
  */
@@ -334,7 +298,6 @@ process.env.NODE_ENV !== "production" ? HvStepNavigation.propTypes = {
334
298
  lg: PropTypes.number,
335
299
  xl: PropTypes.number
336
300
  }),
337
-
338
301
  /**
339
302
  * Defines either show a title or only a tooltip on each step component
340
303
  */