@hitachivantara/uikit-react-core 3.52.5 → 3.54.1

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 (888) hide show
  1. package/CHANGELOG.md +48 -0
  2. package/LICENSE.txt +201 -0
  3. package/dist/Accordion/Accordion.js +2 -2
  4. package/dist/Accordion/Accordion.js.map +1 -1
  5. package/dist/ActionBar/ActionBar.js +2 -2
  6. package/dist/ActionBar/ActionBar.js.map +1 -1
  7. package/dist/ActionsGeneric/ActionsGeneric.js +2 -2
  8. package/dist/ActionsGeneric/ActionsGeneric.js.map +1 -1
  9. package/dist/AssetInventory/AssetInventory.js +2 -2
  10. package/dist/AssetInventory/AssetInventory.js.map +1 -1
  11. package/dist/AssetInventory/CardView/CardView.js +3 -3
  12. package/dist/AssetInventory/CardView/CardView.js.map +1 -1
  13. package/dist/AssetInventory/ListView/ListView.js +2 -2
  14. package/dist/AssetInventory/ListView/ListView.js.map +1 -1
  15. package/dist/AssetInventory/ListView/ListViewCell/ListViewCell.js +2 -2
  16. package/dist/AssetInventory/ListView/ListViewCell/ListViewCell.js.map +1 -1
  17. package/dist/AssetInventory/ListView/ListViewHeaderRow/ListViewHeaderRow.js +6 -4
  18. package/dist/AssetInventory/ListView/ListViewHeaderRow/ListViewHeaderRow.js.map +1 -1
  19. package/dist/AssetInventory/ListView/ListViewRow/ListViewRow.js +2 -2
  20. package/dist/AssetInventory/ListView/ListViewRow/ListViewRow.js.map +1 -1
  21. package/dist/AssetInventory/Multibutton/Multibutton.js +2 -2
  22. package/dist/AssetInventory/Multibutton/Multibutton.js.map +1 -1
  23. package/dist/AssetInventory/Search/Search.js +2 -2
  24. package/dist/AssetInventory/Search/Search.js.map +1 -1
  25. package/dist/AssetInventory/Sort/Sort.js +2 -2
  26. package/dist/AssetInventory/Sort/Sort.js.map +1 -1
  27. package/dist/Avatar/Avatar.js +2 -2
  28. package/dist/Avatar/Avatar.js.map +1 -1
  29. package/dist/Badge/Badge.js +2 -2
  30. package/dist/Badge/Badge.js.map +1 -1
  31. package/dist/Banner/Banner.js +2 -2
  32. package/dist/Banner/Banner.js.map +1 -1
  33. package/dist/Banner/BannerWrapper/ActionContainer/ActionContainer.js +2 -2
  34. package/dist/Banner/BannerWrapper/ActionContainer/ActionContainer.js.map +1 -1
  35. package/dist/Banner/BannerWrapper/BannerContentWrapper.js +2 -2
  36. package/dist/Banner/BannerWrapper/BannerContentWrapper.js.map +1 -1
  37. package/dist/Banner/BannerWrapper/MessageContainer/MessageContainer.js +2 -2
  38. package/dist/Banner/BannerWrapper/MessageContainer/MessageContainer.js.map +1 -1
  39. package/dist/Barchart/Barchart.js +2 -2
  40. package/dist/Barchart/Barchart.js.map +1 -1
  41. package/dist/BaseCheckBox/BaseCheckBox.js +2 -2
  42. package/dist/BaseCheckBox/BaseCheckBox.js.map +1 -1
  43. package/dist/BaseDropdown/BaseDropdown.js +2 -2
  44. package/dist/BaseDropdown/BaseDropdown.js.map +1 -1
  45. package/dist/BaseInput/BaseInput.js +2 -2
  46. package/dist/BaseInput/BaseInput.js.map +1 -1
  47. package/dist/BaseRadio/BaseRadio.js +2 -2
  48. package/dist/BaseRadio/BaseRadio.js.map +1 -1
  49. package/dist/BaseSwitch/BaseSwitch.js +2 -2
  50. package/dist/BaseSwitch/BaseSwitch.js.map +1 -1
  51. package/dist/BreadCrumb/BreadCrumb.js +6 -6
  52. package/dist/BreadCrumb/BreadCrumb.js.map +1 -1
  53. package/dist/BreadCrumb/utils.js +4 -2
  54. package/dist/BreadCrumb/utils.js.map +1 -1
  55. package/dist/BulkActions/BulkActions.js +2 -2
  56. package/dist/BulkActions/BulkActions.js.map +1 -1
  57. package/dist/Button/Button.js +2 -2
  58. package/dist/Button/Button.js.map +1 -1
  59. package/dist/Calendar/Calendar.js +2 -2
  60. package/dist/Calendar/Calendar.js.map +1 -1
  61. package/dist/Calendar/CalendarHeader/CalendarHeader.js +6 -4
  62. package/dist/Calendar/CalendarHeader/CalendarHeader.js.map +1 -1
  63. package/dist/Calendar/CalendarNavigation/ComposedNavigation/ComposedNavigation.js +2 -2
  64. package/dist/Calendar/CalendarNavigation/ComposedNavigation/ComposedNavigation.js.map +1 -1
  65. package/dist/Calendar/CalendarNavigation/MonthSelector/MonthSelector.js +2 -2
  66. package/dist/Calendar/CalendarNavigation/MonthSelector/MonthSelector.js.map +1 -1
  67. package/dist/Calendar/CalendarNavigation/Navigation/Navigation.js +2 -2
  68. package/dist/Calendar/CalendarNavigation/Navigation/Navigation.js.map +1 -1
  69. package/dist/Calendar/CalendarWeekLabels/CalendarWeekLabels.js +2 -2
  70. package/dist/Calendar/CalendarWeekLabels/CalendarWeekLabels.js.map +1 -1
  71. package/dist/Calendar/SingleCalendar/CalendarCell.js +2 -2
  72. package/dist/Calendar/SingleCalendar/CalendarCell.js.map +1 -1
  73. package/dist/Calendar/SingleCalendar/SingleCalendar.js +2 -2
  74. package/dist/Calendar/SingleCalendar/SingleCalendar.js.map +1 -1
  75. package/dist/Card/Card.js +2 -2
  76. package/dist/Card/Card.js.map +1 -1
  77. package/dist/Card/Content/Content.js +2 -2
  78. package/dist/Card/Content/Content.js.map +1 -1
  79. package/dist/Card/Header/Header.js +2 -2
  80. package/dist/Card/Header/Header.js.map +1 -1
  81. package/dist/Card/Media/Media.js +2 -2
  82. package/dist/Card/Media/Media.js.map +1 -1
  83. package/dist/Chart/Chart.js +2 -2
  84. package/dist/Chart/Chart.js.map +1 -1
  85. package/dist/Chart/Plot/Plot.js +2 -2
  86. package/dist/Chart/Plot/Plot.js.map +1 -1
  87. package/dist/Chart/Tooltip/MultiTooltip/MultiTooltip.js +2 -2
  88. package/dist/Chart/Tooltip/MultiTooltip/MultiTooltip.js.map +1 -1
  89. package/dist/Chart/Tooltip/SingleTooltip/SingleTooltip.js +2 -2
  90. package/dist/Chart/Tooltip/SingleTooltip/SingleTooltip.js.map +1 -1
  91. package/dist/Chart/Tooltip/Tooltip.js +2 -2
  92. package/dist/Chart/Tooltip/Tooltip.js.map +1 -1
  93. package/dist/CheckBox/CheckBox.js +2 -2
  94. package/dist/CheckBox/CheckBox.js.map +1 -1
  95. package/dist/CheckBoxGroup/CheckBoxGroup.js +2 -2
  96. package/dist/CheckBoxGroup/CheckBoxGroup.js.map +1 -1
  97. package/dist/Container/Container.js +2 -2
  98. package/dist/Container/Container.js.map +1 -1
  99. package/dist/DatePicker/DatePicker.js +2 -2
  100. package/dist/DatePicker/DatePicker.js.map +1 -1
  101. package/dist/Dialog/Dialog.js +6 -4
  102. package/dist/Dialog/Dialog.js.map +1 -1
  103. package/dist/Dialog/DialogActions/DialogActions.js +2 -2
  104. package/dist/Dialog/DialogActions/DialogActions.js.map +1 -1
  105. package/dist/Dialog/DialogContent/DialogContent.js +2 -2
  106. package/dist/Dialog/DialogContent/DialogContent.js.map +1 -1
  107. package/dist/Dialog/DialogTitle/DialogTitle.js +2 -2
  108. package/dist/Dialog/DialogTitle/DialogTitle.js.map +1 -1
  109. package/dist/Donutchart/Donutchart.js +2 -2
  110. package/dist/Donutchart/Donutchart.js.map +1 -1
  111. package/dist/DropDownMenu/DropDownMenu.js +2 -2
  112. package/dist/DropDownMenu/DropDownMenu.js.map +1 -1
  113. package/dist/Dropdown/Dropdown.js +2 -2
  114. package/dist/Dropdown/Dropdown.js.map +1 -1
  115. package/dist/Dropdown/List/List.js +2 -2
  116. package/dist/Dropdown/List/List.js.map +1 -1
  117. package/dist/EmptyState/EmptyState.js +2 -2
  118. package/dist/EmptyState/EmptyState.js.map +1 -1
  119. package/dist/FileUploader/DropZone/DropZone.js +2 -2
  120. package/dist/FileUploader/DropZone/DropZone.js.map +1 -1
  121. package/dist/FileUploader/File/File.js +6 -4
  122. package/dist/FileUploader/File/File.js.map +1 -1
  123. package/dist/FileUploader/FileList/FileList.js +2 -2
  124. package/dist/FileUploader/FileList/FileList.js.map +1 -1
  125. package/dist/FileUploader/FileUploader.js +2 -2
  126. package/dist/FileUploader/FileUploader.js.map +1 -1
  127. package/dist/FileUploader/Preview/Preview.js +5 -3
  128. package/dist/FileUploader/Preview/Preview.js.map +1 -1
  129. package/dist/FilterGroup/Counter/Counter.js +2 -2
  130. package/dist/FilterGroup/Counter/Counter.js.map +1 -1
  131. package/dist/FilterGroup/FilterContent/FilterContent.js +9 -7
  132. package/dist/FilterGroup/FilterContent/FilterContent.js.map +1 -1
  133. package/dist/FilterGroup/FilterGroup.js +2 -2
  134. package/dist/FilterGroup/FilterGroup.js.map +1 -1
  135. package/dist/FilterGroup/FilterGroupContext.js +2 -2
  136. package/dist/FilterGroup/FilterGroupContext.js.map +1 -1
  137. package/dist/FilterGroup/LeftPanel/LeftPanel.js +2 -2
  138. package/dist/FilterGroup/LeftPanel/LeftPanel.js.map +1 -1
  139. package/dist/FilterGroup/RightPanel/RightPanel.js +2 -2
  140. package/dist/FilterGroup/RightPanel/RightPanel.js.map +1 -1
  141. package/dist/Focus/Focus.js +2 -2
  142. package/dist/Focus/Focus.js.map +1 -1
  143. package/dist/Footer/Footer.js +2 -2
  144. package/dist/Footer/Footer.js.map +1 -1
  145. package/dist/Forms/Adornment/Adornment.js +2 -2
  146. package/dist/Forms/Adornment/Adornment.js.map +1 -1
  147. package/dist/Forms/CharCounter/CharCounter.js +2 -2
  148. package/dist/Forms/CharCounter/CharCounter.js.map +1 -1
  149. package/dist/Forms/FormElement/FormElement.js +2 -2
  150. package/dist/Forms/FormElement/FormElement.js.map +1 -1
  151. package/dist/Forms/InfoMessage/InfoMessage.js +2 -2
  152. package/dist/Forms/InfoMessage/InfoMessage.js.map +1 -1
  153. package/dist/Forms/Label/Label.js +6 -4
  154. package/dist/Forms/Label/Label.js.map +1 -1
  155. package/dist/Forms/Suggestions/Suggestions.js +2 -2
  156. package/dist/Forms/Suggestions/Suggestions.js.map +1 -1
  157. package/dist/Forms/WarningText/WarningText.js +2 -2
  158. package/dist/Forms/WarningText/WarningText.js.map +1 -1
  159. package/dist/GlobalActions/GlobalActions.js +8 -4
  160. package/dist/GlobalActions/GlobalActions.js.map +1 -1
  161. package/dist/Grid/Grid.js +6 -4
  162. package/dist/Grid/Grid.js.map +1 -1
  163. package/dist/Header/Actions/Actions.js +2 -2
  164. package/dist/Header/Actions/Actions.js.map +1 -1
  165. package/dist/Header/Brand/Brand.js +2 -2
  166. package/dist/Header/Brand/Brand.js.map +1 -1
  167. package/dist/Header/Header.js +2 -2
  168. package/dist/Header/Header.js.map +1 -1
  169. package/dist/Header/Navigation/MenuBar/MenuBar.js +2 -2
  170. package/dist/Header/Navigation/MenuBar/MenuBar.js.map +1 -1
  171. package/dist/Header/Navigation/MenuItem/MenuItem.js +2 -2
  172. package/dist/Header/Navigation/MenuItem/MenuItem.js.map +1 -1
  173. package/dist/Header/Navigation/Navigation.js +2 -2
  174. package/dist/Header/Navigation/Navigation.js.map +1 -1
  175. package/dist/Header/Navigation/utils/FocusContext.js +2 -2
  176. package/dist/Header/Navigation/utils/FocusContext.js.map +1 -1
  177. package/dist/Input/Input.js +9 -7
  178. package/dist/Input/Input.js.map +1 -1
  179. package/dist/Kpi/Kpi.js +2 -2
  180. package/dist/Kpi/Kpi.js.map +1 -1
  181. package/dist/Linechart/Linechart.js +2 -2
  182. package/dist/Linechart/Linechart.js.map +1 -1
  183. package/dist/Link/Link.js +2 -2
  184. package/dist/Link/Link.js.map +1 -1
  185. package/dist/List/List.js +4 -4
  186. package/dist/List/List.js.map +1 -1
  187. package/dist/ListContainer/ListContainer.js +2 -2
  188. package/dist/ListContainer/ListContainer.js.map +1 -1
  189. package/dist/ListContainer/ListItem/ListItem.js +2 -2
  190. package/dist/ListContainer/ListItem/ListItem.js.map +1 -1
  191. package/dist/Loading/Loading.js +2 -2
  192. package/dist/Loading/Loading.js.map +1 -1
  193. package/dist/Login/Login.js +2 -2
  194. package/dist/Login/Login.js.map +1 -1
  195. package/dist/MultiButton/MultiButton.js +2 -2
  196. package/dist/MultiButton/MultiButton.js.map +1 -1
  197. package/dist/OverflowTooltip/OverflowTooltip.d.ts +29 -0
  198. package/dist/OverflowTooltip/OverflowTooltip.js +148 -0
  199. package/dist/OverflowTooltip/OverflowTooltip.js.map +1 -0
  200. package/dist/OverflowTooltip/index.d.ts +1 -0
  201. package/dist/OverflowTooltip/index.js +16 -0
  202. package/dist/OverflowTooltip/index.js.map +1 -0
  203. package/dist/Pagination/Pagination.js +2 -2
  204. package/dist/Pagination/Pagination.js.map +1 -1
  205. package/dist/Panel/Panel.js +2 -2
  206. package/dist/Panel/Panel.js.map +1 -1
  207. package/dist/Provider/Provider.js +5 -3
  208. package/dist/Provider/Provider.js.map +1 -1
  209. package/dist/Radio/Radio.js +2 -2
  210. package/dist/Radio/Radio.js.map +1 -1
  211. package/dist/RadioGroup/RadioGroup.js +2 -2
  212. package/dist/RadioGroup/RadioGroup.js.map +1 -1
  213. package/dist/ScrollTo/Horizontal/HorizontalScrollListItem/HorizontalScrollListItem.js +2 -2
  214. package/dist/ScrollTo/Horizontal/HorizontalScrollListItem/HorizontalScrollListItem.js.map +1 -1
  215. package/dist/ScrollTo/Horizontal/ScrollToHorizontal.js +2 -2
  216. package/dist/ScrollTo/Horizontal/ScrollToHorizontal.js.map +1 -1
  217. package/dist/ScrollTo/Vertical/ScrollToVertical.js +2 -2
  218. package/dist/ScrollTo/Vertical/ScrollToVertical.js.map +1 -1
  219. package/dist/ScrollTo/Vertical/VerticalScrollListItem/VerticalScrollListItem.js +6 -4
  220. package/dist/ScrollTo/Vertical/VerticalScrollListItem/VerticalScrollListItem.js.map +1 -1
  221. package/dist/SelectionList/SelectionList.js +2 -2
  222. package/dist/SelectionList/SelectionList.js.map +1 -1
  223. package/dist/Snackbar/Snackbar.js +2 -2
  224. package/dist/Snackbar/Snackbar.js.map +1 -1
  225. package/dist/Snackbar/SnackbarContentWrapper/SnackbarContentWrapper.js +2 -2
  226. package/dist/Snackbar/SnackbarContentWrapper/SnackbarContentWrapper.js.map +1 -1
  227. package/dist/Snackbar/SnackbarProvider/SnackbarProvider.d.ts +30 -0
  228. package/dist/Snackbar/SnackbarProvider/SnackbarProvider.js +207 -0
  229. package/dist/Snackbar/SnackbarProvider/SnackbarProvider.js.map +1 -0
  230. package/dist/Snackbar/SnackbarProvider/index.d.ts +2 -0
  231. package/dist/Snackbar/SnackbarProvider/index.js +49 -0
  232. package/dist/Snackbar/SnackbarProvider/index.js.map +1 -0
  233. package/dist/Snackbar/stories/SnackbarProvider.stories.mdx +51 -0
  234. package/dist/Switch/Switch.js +2 -2
  235. package/dist/Switch/Switch.js.map +1 -1
  236. package/dist/Tab/Tab.js +2 -2
  237. package/dist/Tab/Tab.js.map +1 -1
  238. package/dist/Table/Header/Header.js +3 -3
  239. package/dist/Table/Header/Header.js.map +1 -1
  240. package/dist/Table/NoData/index.js +3 -1
  241. package/dist/Table/NoData/index.js.map +1 -1
  242. package/dist/Table/Table.js +6 -4
  243. package/dist/Table/Table.js.map +1 -1
  244. package/dist/Tabs/Tabs.js +5 -3
  245. package/dist/Tabs/Tabs.js.map +1 -1
  246. package/dist/Tag/Tag.js +6 -4
  247. package/dist/Tag/Tag.js.map +1 -1
  248. package/dist/TagsInput/TagsInput.d.ts +33 -4
  249. package/dist/TagsInput/TagsInput.js +127 -21
  250. package/dist/TagsInput/TagsInput.js.map +1 -1
  251. package/dist/TagsInput/styles.js +12 -8
  252. package/dist/TagsInput/styles.js.map +1 -1
  253. package/dist/TextArea/TextArea.js +2 -2
  254. package/dist/TextArea/TextArea.js.map +1 -1
  255. package/dist/ToggleButton/ToggleButton.js +2 -2
  256. package/dist/ToggleButton/ToggleButton.js.map +1 -1
  257. package/dist/Tooltip/Tooltip.js +2 -2
  258. package/dist/Tooltip/Tooltip.js.map +1 -1
  259. package/dist/Typography/Typography.js +2 -2
  260. package/dist/Typography/Typography.js.map +1 -1
  261. package/dist/UserPreferences/Action/Action.js +2 -2
  262. package/dist/UserPreferences/Action/Action.js.map +1 -1
  263. package/dist/UserPreferences/Actions/Actions.js +2 -2
  264. package/dist/UserPreferences/Actions/Actions.js.map +1 -1
  265. package/dist/UserPreferences/Options/Group/Group.js +2 -2
  266. package/dist/UserPreferences/Options/Group/Group.js.map +1 -1
  267. package/dist/UserPreferences/Options/Label/Label.js +2 -2
  268. package/dist/UserPreferences/Options/Label/Label.js.map +1 -1
  269. package/dist/UserPreferences/Options/Option.js +2 -2
  270. package/dist/UserPreferences/Options/Option.js.map +1 -1
  271. package/dist/UserPreferences/Options/Options.js +2 -2
  272. package/dist/UserPreferences/Options/Options.js.map +1 -1
  273. package/dist/UserPreferences/UserPreferences.js +2 -2
  274. package/dist/UserPreferences/UserPreferences.js.map +1 -1
  275. package/dist/VerticalNavigation/Actions/Action.js +2 -2
  276. package/dist/VerticalNavigation/Actions/Action.js.map +1 -1
  277. package/dist/VerticalNavigation/Actions/Actions.js +2 -2
  278. package/dist/VerticalNavigation/Actions/Actions.js.map +1 -1
  279. package/dist/VerticalNavigation/Navigation/Navigation.js +2 -2
  280. package/dist/VerticalNavigation/Navigation/Navigation.js.map +1 -1
  281. package/dist/VerticalNavigation/TreeView/TreeView.js +2 -2
  282. package/dist/VerticalNavigation/TreeView/TreeView.js.map +1 -1
  283. package/dist/VerticalNavigation/TreeView/TreeViewItem.js +7 -5
  284. package/dist/VerticalNavigation/TreeView/TreeViewItem.js.map +1 -1
  285. package/dist/VerticalNavigation/TreeView/descendants.js +2 -2
  286. package/dist/VerticalNavigation/TreeView/descendants.js.map +1 -1
  287. package/dist/VerticalNavigation/VerticalContainer/VerticalContainer.js +5 -3
  288. package/dist/VerticalNavigation/VerticalContainer/VerticalContainer.js.map +1 -1
  289. package/dist/VerticalNavigation/VerticalNavigation.js +2 -2
  290. package/dist/VerticalNavigation/VerticalNavigation.js.map +1 -1
  291. package/dist/index.d.ts +5 -0
  292. package/dist/index.js +25 -0
  293. package/dist/index.js.map +1 -1
  294. package/dist/legacy/Accordion/Accordion.js +2 -2
  295. package/dist/legacy/Accordion/Accordion.js.map +1 -1
  296. package/dist/legacy/ActionBar/ActionBar.js +2 -2
  297. package/dist/legacy/ActionBar/ActionBar.js.map +1 -1
  298. package/dist/legacy/ActionsGeneric/ActionsGeneric.js +2 -2
  299. package/dist/legacy/ActionsGeneric/ActionsGeneric.js.map +1 -1
  300. package/dist/legacy/AssetInventory/AssetInventory.js +2 -2
  301. package/dist/legacy/AssetInventory/AssetInventory.js.map +1 -1
  302. package/dist/legacy/AssetInventory/CardView/CardView.js +3 -3
  303. package/dist/legacy/AssetInventory/CardView/CardView.js.map +1 -1
  304. package/dist/legacy/AssetInventory/ListView/ListView.js +2 -2
  305. package/dist/legacy/AssetInventory/ListView/ListView.js.map +1 -1
  306. package/dist/legacy/AssetInventory/ListView/ListViewCell/ListViewCell.js +2 -2
  307. package/dist/legacy/AssetInventory/ListView/ListViewCell/ListViewCell.js.map +1 -1
  308. package/dist/legacy/AssetInventory/ListView/ListViewHeaderRow/ListViewHeaderRow.js +7 -4
  309. package/dist/legacy/AssetInventory/ListView/ListViewHeaderRow/ListViewHeaderRow.js.map +1 -1
  310. package/dist/legacy/AssetInventory/ListView/ListViewRow/ListViewRow.js +2 -2
  311. package/dist/legacy/AssetInventory/ListView/ListViewRow/ListViewRow.js.map +1 -1
  312. package/dist/legacy/AssetInventory/Multibutton/Multibutton.js +2 -2
  313. package/dist/legacy/AssetInventory/Multibutton/Multibutton.js.map +1 -1
  314. package/dist/legacy/AssetInventory/Search/Search.js +2 -2
  315. package/dist/legacy/AssetInventory/Search/Search.js.map +1 -1
  316. package/dist/legacy/AssetInventory/Sort/Sort.js +2 -2
  317. package/dist/legacy/AssetInventory/Sort/Sort.js.map +1 -1
  318. package/dist/legacy/Avatar/Avatar.js +2 -2
  319. package/dist/legacy/Avatar/Avatar.js.map +1 -1
  320. package/dist/legacy/Badge/Badge.js +2 -2
  321. package/dist/legacy/Badge/Badge.js.map +1 -1
  322. package/dist/legacy/Banner/Banner.js +2 -2
  323. package/dist/legacy/Banner/Banner.js.map +1 -1
  324. package/dist/legacy/Banner/BannerWrapper/ActionContainer/ActionContainer.js +2 -2
  325. package/dist/legacy/Banner/BannerWrapper/ActionContainer/ActionContainer.js.map +1 -1
  326. package/dist/legacy/Banner/BannerWrapper/BannerContentWrapper.js +2 -2
  327. package/dist/legacy/Banner/BannerWrapper/BannerContentWrapper.js.map +1 -1
  328. package/dist/legacy/Banner/BannerWrapper/MessageContainer/MessageContainer.js +2 -2
  329. package/dist/legacy/Banner/BannerWrapper/MessageContainer/MessageContainer.js.map +1 -1
  330. package/dist/legacy/Barchart/Barchart.js +2 -2
  331. package/dist/legacy/Barchart/Barchart.js.map +1 -1
  332. package/dist/legacy/BaseCheckBox/BaseCheckBox.js +2 -2
  333. package/dist/legacy/BaseCheckBox/BaseCheckBox.js.map +1 -1
  334. package/dist/legacy/BaseDropdown/BaseDropdown.js +2 -2
  335. package/dist/legacy/BaseDropdown/BaseDropdown.js.map +1 -1
  336. package/dist/legacy/BaseInput/BaseInput.js +2 -2
  337. package/dist/legacy/BaseInput/BaseInput.js.map +1 -1
  338. package/dist/legacy/BaseRadio/BaseRadio.js +2 -2
  339. package/dist/legacy/BaseRadio/BaseRadio.js.map +1 -1
  340. package/dist/legacy/BaseSwitch/BaseSwitch.js +2 -2
  341. package/dist/legacy/BaseSwitch/BaseSwitch.js.map +1 -1
  342. package/dist/legacy/BreadCrumb/BreadCrumb.js +6 -6
  343. package/dist/legacy/BreadCrumb/BreadCrumb.js.map +1 -1
  344. package/dist/legacy/BreadCrumb/utils.js +5 -2
  345. package/dist/legacy/BreadCrumb/utils.js.map +1 -1
  346. package/dist/legacy/BulkActions/BulkActions.js +2 -2
  347. package/dist/legacy/BulkActions/BulkActions.js.map +1 -1
  348. package/dist/legacy/Button/Button.js +2 -2
  349. package/dist/legacy/Button/Button.js.map +1 -1
  350. package/dist/legacy/Calendar/Calendar.js +2 -2
  351. package/dist/legacy/Calendar/Calendar.js.map +1 -1
  352. package/dist/legacy/Calendar/CalendarHeader/CalendarHeader.js +7 -4
  353. package/dist/legacy/Calendar/CalendarHeader/CalendarHeader.js.map +1 -1
  354. package/dist/legacy/Calendar/CalendarNavigation/ComposedNavigation/ComposedNavigation.js +2 -2
  355. package/dist/legacy/Calendar/CalendarNavigation/ComposedNavigation/ComposedNavigation.js.map +1 -1
  356. package/dist/legacy/Calendar/CalendarNavigation/MonthSelector/MonthSelector.js +2 -2
  357. package/dist/legacy/Calendar/CalendarNavigation/MonthSelector/MonthSelector.js.map +1 -1
  358. package/dist/legacy/Calendar/CalendarNavigation/Navigation/Navigation.js +2 -2
  359. package/dist/legacy/Calendar/CalendarNavigation/Navigation/Navigation.js.map +1 -1
  360. package/dist/legacy/Calendar/CalendarWeekLabels/CalendarWeekLabels.js +2 -2
  361. package/dist/legacy/Calendar/CalendarWeekLabels/CalendarWeekLabels.js.map +1 -1
  362. package/dist/legacy/Calendar/SingleCalendar/CalendarCell.js +2 -2
  363. package/dist/legacy/Calendar/SingleCalendar/CalendarCell.js.map +1 -1
  364. package/dist/legacy/Calendar/SingleCalendar/SingleCalendar.js +2 -2
  365. package/dist/legacy/Calendar/SingleCalendar/SingleCalendar.js.map +1 -1
  366. package/dist/legacy/Card/Card.js +2 -2
  367. package/dist/legacy/Card/Card.js.map +1 -1
  368. package/dist/legacy/Card/Content/Content.js +2 -2
  369. package/dist/legacy/Card/Content/Content.js.map +1 -1
  370. package/dist/legacy/Card/Header/Header.js +2 -2
  371. package/dist/legacy/Card/Header/Header.js.map +1 -1
  372. package/dist/legacy/Card/Media/Media.js +2 -2
  373. package/dist/legacy/Card/Media/Media.js.map +1 -1
  374. package/dist/legacy/Chart/Chart.js +2 -2
  375. package/dist/legacy/Chart/Chart.js.map +1 -1
  376. package/dist/legacy/Chart/Plot/Plot.js +2 -2
  377. package/dist/legacy/Chart/Plot/Plot.js.map +1 -1
  378. package/dist/legacy/Chart/Tooltip/MultiTooltip/MultiTooltip.js +2 -2
  379. package/dist/legacy/Chart/Tooltip/MultiTooltip/MultiTooltip.js.map +1 -1
  380. package/dist/legacy/Chart/Tooltip/SingleTooltip/SingleTooltip.js +2 -2
  381. package/dist/legacy/Chart/Tooltip/SingleTooltip/SingleTooltip.js.map +1 -1
  382. package/dist/legacy/Chart/Tooltip/Tooltip.js +2 -2
  383. package/dist/legacy/Chart/Tooltip/Tooltip.js.map +1 -1
  384. package/dist/legacy/CheckBox/CheckBox.js +2 -2
  385. package/dist/legacy/CheckBox/CheckBox.js.map +1 -1
  386. package/dist/legacy/CheckBoxGroup/CheckBoxGroup.js +2 -2
  387. package/dist/legacy/CheckBoxGroup/CheckBoxGroup.js.map +1 -1
  388. package/dist/legacy/Container/Container.js +2 -2
  389. package/dist/legacy/Container/Container.js.map +1 -1
  390. package/dist/legacy/DatePicker/DatePicker.js +2 -2
  391. package/dist/legacy/DatePicker/DatePicker.js.map +1 -1
  392. package/dist/legacy/Dialog/Dialog.js +7 -4
  393. package/dist/legacy/Dialog/Dialog.js.map +1 -1
  394. package/dist/legacy/Dialog/DialogActions/DialogActions.js +2 -2
  395. package/dist/legacy/Dialog/DialogActions/DialogActions.js.map +1 -1
  396. package/dist/legacy/Dialog/DialogContent/DialogContent.js +2 -2
  397. package/dist/legacy/Dialog/DialogContent/DialogContent.js.map +1 -1
  398. package/dist/legacy/Dialog/DialogTitle/DialogTitle.js +2 -2
  399. package/dist/legacy/Dialog/DialogTitle/DialogTitle.js.map +1 -1
  400. package/dist/legacy/Donutchart/Donutchart.js +2 -2
  401. package/dist/legacy/Donutchart/Donutchart.js.map +1 -1
  402. package/dist/legacy/DropDownMenu/DropDownMenu.js +2 -2
  403. package/dist/legacy/DropDownMenu/DropDownMenu.js.map +1 -1
  404. package/dist/legacy/Dropdown/Dropdown.js +2 -2
  405. package/dist/legacy/Dropdown/Dropdown.js.map +1 -1
  406. package/dist/legacy/Dropdown/List/List.js +2 -2
  407. package/dist/legacy/Dropdown/List/List.js.map +1 -1
  408. package/dist/legacy/EmptyState/EmptyState.js +2 -2
  409. package/dist/legacy/EmptyState/EmptyState.js.map +1 -1
  410. package/dist/legacy/FileUploader/DropZone/DropZone.js +2 -2
  411. package/dist/legacy/FileUploader/DropZone/DropZone.js.map +1 -1
  412. package/dist/legacy/FileUploader/File/File.js +6 -4
  413. package/dist/legacy/FileUploader/File/File.js.map +1 -1
  414. package/dist/legacy/FileUploader/FileList/FileList.js +2 -2
  415. package/dist/legacy/FileUploader/FileList/FileList.js.map +1 -1
  416. package/dist/legacy/FileUploader/FileUploader.js +2 -2
  417. package/dist/legacy/FileUploader/FileUploader.js.map +1 -1
  418. package/dist/legacy/FileUploader/Preview/Preview.js +6 -3
  419. package/dist/legacy/FileUploader/Preview/Preview.js.map +1 -1
  420. package/dist/legacy/FilterGroup/Counter/Counter.js +2 -2
  421. package/dist/legacy/FilterGroup/Counter/Counter.js.map +1 -1
  422. package/dist/legacy/FilterGroup/FilterContent/FilterContent.js +7 -4
  423. package/dist/legacy/FilterGroup/FilterContent/FilterContent.js.map +1 -1
  424. package/dist/legacy/FilterGroup/FilterGroup.js +2 -2
  425. package/dist/legacy/FilterGroup/FilterGroup.js.map +1 -1
  426. package/dist/legacy/FilterGroup/FilterGroupContext.js +2 -2
  427. package/dist/legacy/FilterGroup/FilterGroupContext.js.map +1 -1
  428. package/dist/legacy/FilterGroup/LeftPanel/LeftPanel.js +2 -2
  429. package/dist/legacy/FilterGroup/LeftPanel/LeftPanel.js.map +1 -1
  430. package/dist/legacy/FilterGroup/RightPanel/RightPanel.js +2 -2
  431. package/dist/legacy/FilterGroup/RightPanel/RightPanel.js.map +1 -1
  432. package/dist/legacy/Focus/Focus.js +2 -2
  433. package/dist/legacy/Focus/Focus.js.map +1 -1
  434. package/dist/legacy/Footer/Footer.js +2 -2
  435. package/dist/legacy/Footer/Footer.js.map +1 -1
  436. package/dist/legacy/Forms/Adornment/Adornment.js +2 -2
  437. package/dist/legacy/Forms/Adornment/Adornment.js.map +1 -1
  438. package/dist/legacy/Forms/CharCounter/CharCounter.js +2 -2
  439. package/dist/legacy/Forms/CharCounter/CharCounter.js.map +1 -1
  440. package/dist/legacy/Forms/FormElement/FormElement.js +2 -2
  441. package/dist/legacy/Forms/FormElement/FormElement.js.map +1 -1
  442. package/dist/legacy/Forms/InfoMessage/InfoMessage.js +2 -2
  443. package/dist/legacy/Forms/InfoMessage/InfoMessage.js.map +1 -1
  444. package/dist/legacy/Forms/Label/Label.js +7 -4
  445. package/dist/legacy/Forms/Label/Label.js.map +1 -1
  446. package/dist/legacy/Forms/Suggestions/Suggestions.js +2 -2
  447. package/dist/legacy/Forms/Suggestions/Suggestions.js.map +1 -1
  448. package/dist/legacy/Forms/WarningText/WarningText.js +2 -2
  449. package/dist/legacy/Forms/WarningText/WarningText.js.map +1 -1
  450. package/dist/legacy/GlobalActions/GlobalActions.js +9 -4
  451. package/dist/legacy/GlobalActions/GlobalActions.js.map +1 -1
  452. package/dist/legacy/Grid/Grid.js +5 -4
  453. package/dist/legacy/Grid/Grid.js.map +1 -1
  454. package/dist/legacy/Header/Actions/Actions.js +2 -2
  455. package/dist/legacy/Header/Actions/Actions.js.map +1 -1
  456. package/dist/legacy/Header/Brand/Brand.js +2 -2
  457. package/dist/legacy/Header/Brand/Brand.js.map +1 -1
  458. package/dist/legacy/Header/Header.js +2 -2
  459. package/dist/legacy/Header/Header.js.map +1 -1
  460. package/dist/legacy/Header/Navigation/MenuBar/MenuBar.js +2 -2
  461. package/dist/legacy/Header/Navigation/MenuBar/MenuBar.js.map +1 -1
  462. package/dist/legacy/Header/Navigation/MenuItem/MenuItem.js +2 -2
  463. package/dist/legacy/Header/Navigation/MenuItem/MenuItem.js.map +1 -1
  464. package/dist/legacy/Header/Navigation/Navigation.js +2 -2
  465. package/dist/legacy/Header/Navigation/Navigation.js.map +1 -1
  466. package/dist/legacy/Header/Navigation/utils/FocusContext.js +2 -2
  467. package/dist/legacy/Header/Navigation/utils/FocusContext.js.map +1 -1
  468. package/dist/legacy/Input/Input.js +8 -5
  469. package/dist/legacy/Input/Input.js.map +1 -1
  470. package/dist/legacy/Kpi/Kpi.js +2 -2
  471. package/dist/legacy/Kpi/Kpi.js.map +1 -1
  472. package/dist/legacy/Linechart/Linechart.js +2 -2
  473. package/dist/legacy/Linechart/Linechart.js.map +1 -1
  474. package/dist/legacy/Link/Link.js +2 -2
  475. package/dist/legacy/Link/Link.js.map +1 -1
  476. package/dist/legacy/List/List.js +4 -4
  477. package/dist/legacy/List/List.js.map +1 -1
  478. package/dist/legacy/ListContainer/ListContainer.js +2 -2
  479. package/dist/legacy/ListContainer/ListContainer.js.map +1 -1
  480. package/dist/legacy/ListContainer/ListItem/ListItem.js +2 -2
  481. package/dist/legacy/ListContainer/ListItem/ListItem.js.map +1 -1
  482. package/dist/legacy/Loading/Loading.js +2 -2
  483. package/dist/legacy/Loading/Loading.js.map +1 -1
  484. package/dist/legacy/Login/Login.js +2 -2
  485. package/dist/legacy/Login/Login.js.map +1 -1
  486. package/dist/legacy/MultiButton/MultiButton.js +2 -2
  487. package/dist/legacy/MultiButton/MultiButton.js.map +1 -1
  488. package/dist/legacy/OverflowTooltip/OverflowTooltip.d.ts +29 -0
  489. package/dist/legacy/OverflowTooltip/OverflowTooltip.js +126 -0
  490. package/dist/legacy/OverflowTooltip/OverflowTooltip.js.map +1 -0
  491. package/dist/legacy/OverflowTooltip/index.d.ts +1 -0
  492. package/dist/legacy/OverflowTooltip/index.js +2 -0
  493. package/dist/legacy/OverflowTooltip/index.js.map +1 -0
  494. package/dist/legacy/Pagination/Pagination.js +2 -2
  495. package/dist/legacy/Pagination/Pagination.js.map +1 -1
  496. package/dist/legacy/Panel/Panel.js +2 -2
  497. package/dist/legacy/Panel/Panel.js.map +1 -1
  498. package/dist/legacy/Provider/Provider.js +5 -3
  499. package/dist/legacy/Provider/Provider.js.map +1 -1
  500. package/dist/legacy/Radio/Radio.js +2 -2
  501. package/dist/legacy/Radio/Radio.js.map +1 -1
  502. package/dist/legacy/RadioGroup/RadioGroup.js +2 -2
  503. package/dist/legacy/RadioGroup/RadioGroup.js.map +1 -1
  504. package/dist/legacy/ScrollTo/Horizontal/HorizontalScrollListItem/HorizontalScrollListItem.js +2 -2
  505. package/dist/legacy/ScrollTo/Horizontal/HorizontalScrollListItem/HorizontalScrollListItem.js.map +1 -1
  506. package/dist/legacy/ScrollTo/Horizontal/ScrollToHorizontal.js +2 -2
  507. package/dist/legacy/ScrollTo/Horizontal/ScrollToHorizontal.js.map +1 -1
  508. package/dist/legacy/ScrollTo/Vertical/ScrollToVertical.js +2 -2
  509. package/dist/legacy/ScrollTo/Vertical/ScrollToVertical.js.map +1 -1
  510. package/dist/legacy/ScrollTo/Vertical/VerticalScrollListItem/VerticalScrollListItem.js +7 -4
  511. package/dist/legacy/ScrollTo/Vertical/VerticalScrollListItem/VerticalScrollListItem.js.map +1 -1
  512. package/dist/legacy/SelectionList/SelectionList.js +2 -2
  513. package/dist/legacy/SelectionList/SelectionList.js.map +1 -1
  514. package/dist/legacy/Snackbar/Snackbar.js +2 -2
  515. package/dist/legacy/Snackbar/Snackbar.js.map +1 -1
  516. package/dist/legacy/Snackbar/SnackbarContentWrapper/SnackbarContentWrapper.js +2 -2
  517. package/dist/legacy/Snackbar/SnackbarContentWrapper/SnackbarContentWrapper.js.map +1 -1
  518. package/dist/legacy/Snackbar/SnackbarProvider/SnackbarProvider.d.ts +30 -0
  519. package/dist/legacy/Snackbar/SnackbarProvider/SnackbarProvider.js +169 -0
  520. package/dist/legacy/Snackbar/SnackbarProvider/SnackbarProvider.js.map +1 -0
  521. package/dist/legacy/Snackbar/SnackbarProvider/index.d.ts +2 -0
  522. package/dist/legacy/Snackbar/SnackbarProvider/index.js +3 -0
  523. package/dist/legacy/Snackbar/SnackbarProvider/index.js.map +1 -0
  524. package/dist/legacy/Snackbar/stories/SnackbarProvider.stories.mdx +51 -0
  525. package/dist/legacy/Switch/Switch.js +2 -2
  526. package/dist/legacy/Switch/Switch.js.map +1 -1
  527. package/dist/legacy/Tab/Tab.js +2 -2
  528. package/dist/legacy/Tab/Tab.js.map +1 -1
  529. package/dist/legacy/Table/Header/Header.js +4 -2
  530. package/dist/legacy/Table/Header/Header.js.map +1 -1
  531. package/dist/legacy/Table/NoData/index.js +3 -1
  532. package/dist/legacy/Table/NoData/index.js.map +1 -1
  533. package/dist/legacy/Table/Table.js +5 -3
  534. package/dist/legacy/Table/Table.js.map +1 -1
  535. package/dist/legacy/Tabs/Tabs.js +6 -3
  536. package/dist/legacy/Tabs/Tabs.js.map +1 -1
  537. package/dist/legacy/Tag/Tag.js +6 -4
  538. package/dist/legacy/Tag/Tag.js.map +1 -1
  539. package/dist/legacy/TagsInput/TagsInput.d.ts +33 -4
  540. package/dist/legacy/TagsInput/TagsInput.js +131 -27
  541. package/dist/legacy/TagsInput/TagsInput.js.map +1 -1
  542. package/dist/legacy/TagsInput/styles.js +12 -8
  543. package/dist/legacy/TagsInput/styles.js.map +1 -1
  544. package/dist/legacy/TextArea/TextArea.js +2 -2
  545. package/dist/legacy/TextArea/TextArea.js.map +1 -1
  546. package/dist/legacy/ToggleButton/ToggleButton.js +2 -2
  547. package/dist/legacy/ToggleButton/ToggleButton.js.map +1 -1
  548. package/dist/legacy/Tooltip/Tooltip.js +2 -2
  549. package/dist/legacy/Tooltip/Tooltip.js.map +1 -1
  550. package/dist/legacy/Typography/Typography.js +2 -2
  551. package/dist/legacy/Typography/Typography.js.map +1 -1
  552. package/dist/legacy/UserPreferences/Action/Action.js +2 -2
  553. package/dist/legacy/UserPreferences/Action/Action.js.map +1 -1
  554. package/dist/legacy/UserPreferences/Actions/Actions.js +2 -2
  555. package/dist/legacy/UserPreferences/Actions/Actions.js.map +1 -1
  556. package/dist/legacy/UserPreferences/Options/Group/Group.js +2 -2
  557. package/dist/legacy/UserPreferences/Options/Group/Group.js.map +1 -1
  558. package/dist/legacy/UserPreferences/Options/Label/Label.js +2 -2
  559. package/dist/legacy/UserPreferences/Options/Label/Label.js.map +1 -1
  560. package/dist/legacy/UserPreferences/Options/Option.js +2 -2
  561. package/dist/legacy/UserPreferences/Options/Option.js.map +1 -1
  562. package/dist/legacy/UserPreferences/Options/Options.js +2 -2
  563. package/dist/legacy/UserPreferences/Options/Options.js.map +1 -1
  564. package/dist/legacy/UserPreferences/UserPreferences.js +2 -2
  565. package/dist/legacy/UserPreferences/UserPreferences.js.map +1 -1
  566. package/dist/legacy/VerticalNavigation/Actions/Action.js +2 -2
  567. package/dist/legacy/VerticalNavigation/Actions/Action.js.map +1 -1
  568. package/dist/legacy/VerticalNavigation/Actions/Actions.js +2 -2
  569. package/dist/legacy/VerticalNavigation/Actions/Actions.js.map +1 -1
  570. package/dist/legacy/VerticalNavigation/Navigation/Navigation.js +2 -2
  571. package/dist/legacy/VerticalNavigation/Navigation/Navigation.js.map +1 -1
  572. package/dist/legacy/VerticalNavigation/TreeView/TreeView.js +2 -2
  573. package/dist/legacy/VerticalNavigation/TreeView/TreeView.js.map +1 -1
  574. package/dist/legacy/VerticalNavigation/TreeView/TreeViewItem.js +6 -3
  575. package/dist/legacy/VerticalNavigation/TreeView/TreeViewItem.js.map +1 -1
  576. package/dist/legacy/VerticalNavigation/TreeView/descendants.js +2 -2
  577. package/dist/legacy/VerticalNavigation/TreeView/descendants.js.map +1 -1
  578. package/dist/legacy/VerticalNavigation/VerticalContainer/VerticalContainer.js +6 -3
  579. package/dist/legacy/VerticalNavigation/VerticalContainer/VerticalContainer.js.map +1 -1
  580. package/dist/legacy/VerticalNavigation/VerticalNavigation.js +2 -2
  581. package/dist/legacy/VerticalNavigation/VerticalNavigation.js.map +1 -1
  582. package/dist/legacy/index.d.ts +5 -0
  583. package/dist/legacy/index.js +2 -0
  584. package/dist/legacy/index.js.map +1 -1
  585. package/dist/legacy/withId.js +2 -2
  586. package/dist/legacy/withId.js.map +1 -1
  587. package/dist/legacy/withTooltip.js +3 -1
  588. package/dist/legacy/withTooltip.js.map +1 -1
  589. package/dist/modern/Accordion/Accordion.js +2 -2
  590. package/dist/modern/Accordion/Accordion.js.map +1 -1
  591. package/dist/modern/ActionBar/ActionBar.js +2 -2
  592. package/dist/modern/ActionBar/ActionBar.js.map +1 -1
  593. package/dist/modern/ActionsGeneric/ActionsGeneric.js +2 -2
  594. package/dist/modern/ActionsGeneric/ActionsGeneric.js.map +1 -1
  595. package/dist/modern/AssetInventory/AssetInventory.js +2 -2
  596. package/dist/modern/AssetInventory/AssetInventory.js.map +1 -1
  597. package/dist/modern/AssetInventory/CardView/CardView.js +3 -3
  598. package/dist/modern/AssetInventory/CardView/CardView.js.map +1 -1
  599. package/dist/modern/AssetInventory/ListView/ListView.js +2 -2
  600. package/dist/modern/AssetInventory/ListView/ListView.js.map +1 -1
  601. package/dist/modern/AssetInventory/ListView/ListViewCell/ListViewCell.js +2 -2
  602. package/dist/modern/AssetInventory/ListView/ListViewCell/ListViewCell.js.map +1 -1
  603. package/dist/modern/AssetInventory/ListView/ListViewHeaderRow/ListViewHeaderRow.js +7 -4
  604. package/dist/modern/AssetInventory/ListView/ListViewHeaderRow/ListViewHeaderRow.js.map +1 -1
  605. package/dist/modern/AssetInventory/ListView/ListViewRow/ListViewRow.js +2 -2
  606. package/dist/modern/AssetInventory/ListView/ListViewRow/ListViewRow.js.map +1 -1
  607. package/dist/modern/AssetInventory/Multibutton/Multibutton.js +2 -2
  608. package/dist/modern/AssetInventory/Multibutton/Multibutton.js.map +1 -1
  609. package/dist/modern/AssetInventory/Search/Search.js +2 -2
  610. package/dist/modern/AssetInventory/Search/Search.js.map +1 -1
  611. package/dist/modern/AssetInventory/Sort/Sort.js +2 -2
  612. package/dist/modern/AssetInventory/Sort/Sort.js.map +1 -1
  613. package/dist/modern/Avatar/Avatar.js +2 -2
  614. package/dist/modern/Avatar/Avatar.js.map +1 -1
  615. package/dist/modern/Badge/Badge.js +2 -2
  616. package/dist/modern/Badge/Badge.js.map +1 -1
  617. package/dist/modern/Banner/Banner.js +2 -2
  618. package/dist/modern/Banner/Banner.js.map +1 -1
  619. package/dist/modern/Banner/BannerWrapper/ActionContainer/ActionContainer.js +2 -2
  620. package/dist/modern/Banner/BannerWrapper/ActionContainer/ActionContainer.js.map +1 -1
  621. package/dist/modern/Banner/BannerWrapper/BannerContentWrapper.js +2 -2
  622. package/dist/modern/Banner/BannerWrapper/BannerContentWrapper.js.map +1 -1
  623. package/dist/modern/Banner/BannerWrapper/MessageContainer/MessageContainer.js +2 -2
  624. package/dist/modern/Banner/BannerWrapper/MessageContainer/MessageContainer.js.map +1 -1
  625. package/dist/modern/Barchart/Barchart.js +2 -2
  626. package/dist/modern/Barchart/Barchart.js.map +1 -1
  627. package/dist/modern/BaseCheckBox/BaseCheckBox.js +2 -2
  628. package/dist/modern/BaseCheckBox/BaseCheckBox.js.map +1 -1
  629. package/dist/modern/BaseDropdown/BaseDropdown.js +2 -2
  630. package/dist/modern/BaseDropdown/BaseDropdown.js.map +1 -1
  631. package/dist/modern/BaseInput/BaseInput.js +2 -2
  632. package/dist/modern/BaseInput/BaseInput.js.map +1 -1
  633. package/dist/modern/BaseRadio/BaseRadio.js +2 -2
  634. package/dist/modern/BaseRadio/BaseRadio.js.map +1 -1
  635. package/dist/modern/BaseSwitch/BaseSwitch.js +2 -2
  636. package/dist/modern/BaseSwitch/BaseSwitch.js.map +1 -1
  637. package/dist/modern/BreadCrumb/BreadCrumb.js +6 -6
  638. package/dist/modern/BreadCrumb/BreadCrumb.js.map +1 -1
  639. package/dist/modern/BreadCrumb/utils.js +5 -2
  640. package/dist/modern/BreadCrumb/utils.js.map +1 -1
  641. package/dist/modern/BulkActions/BulkActions.js +2 -2
  642. package/dist/modern/BulkActions/BulkActions.js.map +1 -1
  643. package/dist/modern/Button/Button.js +2 -2
  644. package/dist/modern/Button/Button.js.map +1 -1
  645. package/dist/modern/Calendar/Calendar.js +2 -2
  646. package/dist/modern/Calendar/Calendar.js.map +1 -1
  647. package/dist/modern/Calendar/CalendarHeader/CalendarHeader.js +7 -4
  648. package/dist/modern/Calendar/CalendarHeader/CalendarHeader.js.map +1 -1
  649. package/dist/modern/Calendar/CalendarNavigation/ComposedNavigation/ComposedNavigation.js +2 -2
  650. package/dist/modern/Calendar/CalendarNavigation/ComposedNavigation/ComposedNavigation.js.map +1 -1
  651. package/dist/modern/Calendar/CalendarNavigation/MonthSelector/MonthSelector.js +2 -2
  652. package/dist/modern/Calendar/CalendarNavigation/MonthSelector/MonthSelector.js.map +1 -1
  653. package/dist/modern/Calendar/CalendarNavigation/Navigation/Navigation.js +2 -2
  654. package/dist/modern/Calendar/CalendarNavigation/Navigation/Navigation.js.map +1 -1
  655. package/dist/modern/Calendar/CalendarWeekLabels/CalendarWeekLabels.js +2 -2
  656. package/dist/modern/Calendar/CalendarWeekLabels/CalendarWeekLabels.js.map +1 -1
  657. package/dist/modern/Calendar/SingleCalendar/CalendarCell.js +2 -2
  658. package/dist/modern/Calendar/SingleCalendar/CalendarCell.js.map +1 -1
  659. package/dist/modern/Calendar/SingleCalendar/SingleCalendar.js +2 -2
  660. package/dist/modern/Calendar/SingleCalendar/SingleCalendar.js.map +1 -1
  661. package/dist/modern/Card/Card.js +2 -2
  662. package/dist/modern/Card/Card.js.map +1 -1
  663. package/dist/modern/Card/Content/Content.js +2 -2
  664. package/dist/modern/Card/Content/Content.js.map +1 -1
  665. package/dist/modern/Card/Header/Header.js +2 -2
  666. package/dist/modern/Card/Header/Header.js.map +1 -1
  667. package/dist/modern/Card/Media/Media.js +2 -2
  668. package/dist/modern/Card/Media/Media.js.map +1 -1
  669. package/dist/modern/Chart/Chart.js +2 -2
  670. package/dist/modern/Chart/Chart.js.map +1 -1
  671. package/dist/modern/Chart/Plot/Plot.js +2 -2
  672. package/dist/modern/Chart/Plot/Plot.js.map +1 -1
  673. package/dist/modern/Chart/Tooltip/MultiTooltip/MultiTooltip.js +2 -2
  674. package/dist/modern/Chart/Tooltip/MultiTooltip/MultiTooltip.js.map +1 -1
  675. package/dist/modern/Chart/Tooltip/SingleTooltip/SingleTooltip.js +2 -2
  676. package/dist/modern/Chart/Tooltip/SingleTooltip/SingleTooltip.js.map +1 -1
  677. package/dist/modern/Chart/Tooltip/Tooltip.js +2 -2
  678. package/dist/modern/Chart/Tooltip/Tooltip.js.map +1 -1
  679. package/dist/modern/CheckBox/CheckBox.js +2 -2
  680. package/dist/modern/CheckBox/CheckBox.js.map +1 -1
  681. package/dist/modern/CheckBoxGroup/CheckBoxGroup.js +2 -2
  682. package/dist/modern/CheckBoxGroup/CheckBoxGroup.js.map +1 -1
  683. package/dist/modern/Container/Container.js +2 -2
  684. package/dist/modern/Container/Container.js.map +1 -1
  685. package/dist/modern/DatePicker/DatePicker.js +2 -2
  686. package/dist/modern/DatePicker/DatePicker.js.map +1 -1
  687. package/dist/modern/Dialog/Dialog.js +7 -4
  688. package/dist/modern/Dialog/Dialog.js.map +1 -1
  689. package/dist/modern/Dialog/DialogActions/DialogActions.js +2 -2
  690. package/dist/modern/Dialog/DialogActions/DialogActions.js.map +1 -1
  691. package/dist/modern/Dialog/DialogContent/DialogContent.js +2 -2
  692. package/dist/modern/Dialog/DialogContent/DialogContent.js.map +1 -1
  693. package/dist/modern/Dialog/DialogTitle/DialogTitle.js +2 -2
  694. package/dist/modern/Dialog/DialogTitle/DialogTitle.js.map +1 -1
  695. package/dist/modern/Donutchart/Donutchart.js +2 -2
  696. package/dist/modern/Donutchart/Donutchart.js.map +1 -1
  697. package/dist/modern/DropDownMenu/DropDownMenu.js +2 -2
  698. package/dist/modern/DropDownMenu/DropDownMenu.js.map +1 -1
  699. package/dist/modern/Dropdown/Dropdown.js +2 -2
  700. package/dist/modern/Dropdown/Dropdown.js.map +1 -1
  701. package/dist/modern/Dropdown/List/List.js +2 -2
  702. package/dist/modern/Dropdown/List/List.js.map +1 -1
  703. package/dist/modern/EmptyState/EmptyState.js +2 -2
  704. package/dist/modern/EmptyState/EmptyState.js.map +1 -1
  705. package/dist/modern/FileUploader/DropZone/DropZone.js +2 -2
  706. package/dist/modern/FileUploader/DropZone/DropZone.js.map +1 -1
  707. package/dist/modern/FileUploader/File/File.js +6 -4
  708. package/dist/modern/FileUploader/File/File.js.map +1 -1
  709. package/dist/modern/FileUploader/FileList/FileList.js +2 -2
  710. package/dist/modern/FileUploader/FileList/FileList.js.map +1 -1
  711. package/dist/modern/FileUploader/FileUploader.js +2 -2
  712. package/dist/modern/FileUploader/FileUploader.js.map +1 -1
  713. package/dist/modern/FileUploader/Preview/Preview.js +6 -3
  714. package/dist/modern/FileUploader/Preview/Preview.js.map +1 -1
  715. package/dist/modern/FilterGroup/Counter/Counter.js +2 -2
  716. package/dist/modern/FilterGroup/Counter/Counter.js.map +1 -1
  717. package/dist/modern/FilterGroup/FilterContent/FilterContent.js +7 -4
  718. package/dist/modern/FilterGroup/FilterContent/FilterContent.js.map +1 -1
  719. package/dist/modern/FilterGroup/FilterGroup.js +2 -2
  720. package/dist/modern/FilterGroup/FilterGroup.js.map +1 -1
  721. package/dist/modern/FilterGroup/FilterGroupContext.js +2 -2
  722. package/dist/modern/FilterGroup/FilterGroupContext.js.map +1 -1
  723. package/dist/modern/FilterGroup/LeftPanel/LeftPanel.js +2 -2
  724. package/dist/modern/FilterGroup/LeftPanel/LeftPanel.js.map +1 -1
  725. package/dist/modern/FilterGroup/RightPanel/RightPanel.js +2 -2
  726. package/dist/modern/FilterGroup/RightPanel/RightPanel.js.map +1 -1
  727. package/dist/modern/Focus/Focus.js +2 -2
  728. package/dist/modern/Focus/Focus.js.map +1 -1
  729. package/dist/modern/Footer/Footer.js +2 -2
  730. package/dist/modern/Footer/Footer.js.map +1 -1
  731. package/dist/modern/Forms/Adornment/Adornment.js +2 -2
  732. package/dist/modern/Forms/Adornment/Adornment.js.map +1 -1
  733. package/dist/modern/Forms/CharCounter/CharCounter.js +2 -2
  734. package/dist/modern/Forms/CharCounter/CharCounter.js.map +1 -1
  735. package/dist/modern/Forms/FormElement/FormElement.js +2 -2
  736. package/dist/modern/Forms/FormElement/FormElement.js.map +1 -1
  737. package/dist/modern/Forms/InfoMessage/InfoMessage.js +2 -2
  738. package/dist/modern/Forms/InfoMessage/InfoMessage.js.map +1 -1
  739. package/dist/modern/Forms/Label/Label.js +7 -4
  740. package/dist/modern/Forms/Label/Label.js.map +1 -1
  741. package/dist/modern/Forms/Suggestions/Suggestions.js +2 -2
  742. package/dist/modern/Forms/Suggestions/Suggestions.js.map +1 -1
  743. package/dist/modern/Forms/WarningText/WarningText.js +2 -2
  744. package/dist/modern/Forms/WarningText/WarningText.js.map +1 -1
  745. package/dist/modern/GlobalActions/GlobalActions.js +9 -4
  746. package/dist/modern/GlobalActions/GlobalActions.js.map +1 -1
  747. package/dist/modern/Grid/Grid.js +3 -3
  748. package/dist/modern/Grid/Grid.js.map +1 -1
  749. package/dist/modern/Header/Actions/Actions.js +2 -2
  750. package/dist/modern/Header/Actions/Actions.js.map +1 -1
  751. package/dist/modern/Header/Brand/Brand.js +2 -2
  752. package/dist/modern/Header/Brand/Brand.js.map +1 -1
  753. package/dist/modern/Header/Header.js +2 -2
  754. package/dist/modern/Header/Header.js.map +1 -1
  755. package/dist/modern/Header/Navigation/MenuBar/MenuBar.js +2 -2
  756. package/dist/modern/Header/Navigation/MenuBar/MenuBar.js.map +1 -1
  757. package/dist/modern/Header/Navigation/MenuItem/MenuItem.js +2 -2
  758. package/dist/modern/Header/Navigation/MenuItem/MenuItem.js.map +1 -1
  759. package/dist/modern/Header/Navigation/Navigation.js +2 -2
  760. package/dist/modern/Header/Navigation/Navigation.js.map +1 -1
  761. package/dist/modern/Header/Navigation/utils/FocusContext.js +2 -2
  762. package/dist/modern/Header/Navigation/utils/FocusContext.js.map +1 -1
  763. package/dist/modern/Input/Input.js +8 -5
  764. package/dist/modern/Input/Input.js.map +1 -1
  765. package/dist/modern/Kpi/Kpi.js +2 -2
  766. package/dist/modern/Kpi/Kpi.js.map +1 -1
  767. package/dist/modern/Linechart/Linechart.js +2 -2
  768. package/dist/modern/Linechart/Linechart.js.map +1 -1
  769. package/dist/modern/Link/Link.js +2 -2
  770. package/dist/modern/Link/Link.js.map +1 -1
  771. package/dist/modern/List/List.js +4 -4
  772. package/dist/modern/List/List.js.map +1 -1
  773. package/dist/modern/ListContainer/ListContainer.js +2 -2
  774. package/dist/modern/ListContainer/ListContainer.js.map +1 -1
  775. package/dist/modern/ListContainer/ListItem/ListItem.js +2 -2
  776. package/dist/modern/ListContainer/ListItem/ListItem.js.map +1 -1
  777. package/dist/modern/Loading/Loading.js +2 -2
  778. package/dist/modern/Loading/Loading.js.map +1 -1
  779. package/dist/modern/Login/Login.js +2 -2
  780. package/dist/modern/Login/Login.js.map +1 -1
  781. package/dist/modern/MultiButton/MultiButton.js +2 -2
  782. package/dist/modern/MultiButton/MultiButton.js.map +1 -1
  783. package/dist/modern/OverflowTooltip/OverflowTooltip.d.ts +29 -0
  784. package/dist/modern/OverflowTooltip/OverflowTooltip.js +120 -0
  785. package/dist/modern/OverflowTooltip/OverflowTooltip.js.map +1 -0
  786. package/dist/modern/OverflowTooltip/index.d.ts +1 -0
  787. package/dist/modern/OverflowTooltip/index.js +2 -0
  788. package/dist/modern/OverflowTooltip/index.js.map +1 -0
  789. package/dist/modern/Pagination/Pagination.js +2 -2
  790. package/dist/modern/Pagination/Pagination.js.map +1 -1
  791. package/dist/modern/Panel/Panel.js +2 -2
  792. package/dist/modern/Panel/Panel.js.map +1 -1
  793. package/dist/modern/Provider/Provider.js +5 -3
  794. package/dist/modern/Provider/Provider.js.map +1 -1
  795. package/dist/modern/Radio/Radio.js +2 -2
  796. package/dist/modern/Radio/Radio.js.map +1 -1
  797. package/dist/modern/RadioGroup/RadioGroup.js +2 -2
  798. package/dist/modern/RadioGroup/RadioGroup.js.map +1 -1
  799. package/dist/modern/ScrollTo/Horizontal/HorizontalScrollListItem/HorizontalScrollListItem.js +2 -2
  800. package/dist/modern/ScrollTo/Horizontal/HorizontalScrollListItem/HorizontalScrollListItem.js.map +1 -1
  801. package/dist/modern/ScrollTo/Horizontal/ScrollToHorizontal.js +2 -2
  802. package/dist/modern/ScrollTo/Horizontal/ScrollToHorizontal.js.map +1 -1
  803. package/dist/modern/ScrollTo/Vertical/ScrollToVertical.js +2 -2
  804. package/dist/modern/ScrollTo/Vertical/ScrollToVertical.js.map +1 -1
  805. package/dist/modern/ScrollTo/Vertical/VerticalScrollListItem/VerticalScrollListItem.js +7 -4
  806. package/dist/modern/ScrollTo/Vertical/VerticalScrollListItem/VerticalScrollListItem.js.map +1 -1
  807. package/dist/modern/SelectionList/SelectionList.js +2 -2
  808. package/dist/modern/SelectionList/SelectionList.js.map +1 -1
  809. package/dist/modern/Snackbar/Snackbar.js +2 -2
  810. package/dist/modern/Snackbar/Snackbar.js.map +1 -1
  811. package/dist/modern/Snackbar/SnackbarContentWrapper/SnackbarContentWrapper.js +2 -2
  812. package/dist/modern/Snackbar/SnackbarContentWrapper/SnackbarContentWrapper.js.map +1 -1
  813. package/dist/modern/Snackbar/SnackbarProvider/SnackbarProvider.d.ts +30 -0
  814. package/dist/modern/Snackbar/SnackbarProvider/SnackbarProvider.js +155 -0
  815. package/dist/modern/Snackbar/SnackbarProvider/SnackbarProvider.js.map +1 -0
  816. package/dist/modern/Snackbar/SnackbarProvider/index.d.ts +2 -0
  817. package/dist/modern/Snackbar/SnackbarProvider/index.js +3 -0
  818. package/dist/modern/Snackbar/SnackbarProvider/index.js.map +1 -0
  819. package/dist/modern/Snackbar/stories/SnackbarProvider.stories.mdx +51 -0
  820. package/dist/modern/Switch/Switch.js +2 -2
  821. package/dist/modern/Switch/Switch.js.map +1 -1
  822. package/dist/modern/Tab/Tab.js +2 -2
  823. package/dist/modern/Tab/Tab.js.map +1 -1
  824. package/dist/modern/Table/Header/Header.js +4 -2
  825. package/dist/modern/Table/Header/Header.js.map +1 -1
  826. package/dist/modern/Table/NoData/index.js +3 -1
  827. package/dist/modern/Table/NoData/index.js.map +1 -1
  828. package/dist/modern/Table/Table.js +5 -3
  829. package/dist/modern/Table/Table.js.map +1 -1
  830. package/dist/modern/Tabs/Tabs.js +6 -3
  831. package/dist/modern/Tabs/Tabs.js.map +1 -1
  832. package/dist/modern/Tag/Tag.js +6 -4
  833. package/dist/modern/Tag/Tag.js.map +1 -1
  834. package/dist/modern/TagsInput/TagsInput.d.ts +33 -4
  835. package/dist/modern/TagsInput/TagsInput.js +110 -21
  836. package/dist/modern/TagsInput/TagsInput.js.map +1 -1
  837. package/dist/modern/TagsInput/styles.js +12 -8
  838. package/dist/modern/TagsInput/styles.js.map +1 -1
  839. package/dist/modern/TextArea/TextArea.js +2 -2
  840. package/dist/modern/TextArea/TextArea.js.map +1 -1
  841. package/dist/modern/ToggleButton/ToggleButton.js +2 -2
  842. package/dist/modern/ToggleButton/ToggleButton.js.map +1 -1
  843. package/dist/modern/Tooltip/Tooltip.js +2 -2
  844. package/dist/modern/Tooltip/Tooltip.js.map +1 -1
  845. package/dist/modern/Typography/Typography.js +2 -2
  846. package/dist/modern/Typography/Typography.js.map +1 -1
  847. package/dist/modern/UserPreferences/Action/Action.js +2 -2
  848. package/dist/modern/UserPreferences/Action/Action.js.map +1 -1
  849. package/dist/modern/UserPreferences/Actions/Actions.js +2 -2
  850. package/dist/modern/UserPreferences/Actions/Actions.js.map +1 -1
  851. package/dist/modern/UserPreferences/Options/Group/Group.js +2 -2
  852. package/dist/modern/UserPreferences/Options/Group/Group.js.map +1 -1
  853. package/dist/modern/UserPreferences/Options/Label/Label.js +2 -2
  854. package/dist/modern/UserPreferences/Options/Label/Label.js.map +1 -1
  855. package/dist/modern/UserPreferences/Options/Option.js +2 -2
  856. package/dist/modern/UserPreferences/Options/Option.js.map +1 -1
  857. package/dist/modern/UserPreferences/Options/Options.js +2 -2
  858. package/dist/modern/UserPreferences/Options/Options.js.map +1 -1
  859. package/dist/modern/UserPreferences/UserPreferences.js +2 -2
  860. package/dist/modern/UserPreferences/UserPreferences.js.map +1 -1
  861. package/dist/modern/VerticalNavigation/Actions/Action.js +2 -2
  862. package/dist/modern/VerticalNavigation/Actions/Action.js.map +1 -1
  863. package/dist/modern/VerticalNavigation/Actions/Actions.js +2 -2
  864. package/dist/modern/VerticalNavigation/Actions/Actions.js.map +1 -1
  865. package/dist/modern/VerticalNavigation/Navigation/Navigation.js +2 -2
  866. package/dist/modern/VerticalNavigation/Navigation/Navigation.js.map +1 -1
  867. package/dist/modern/VerticalNavigation/TreeView/TreeView.js +2 -2
  868. package/dist/modern/VerticalNavigation/TreeView/TreeView.js.map +1 -1
  869. package/dist/modern/VerticalNavigation/TreeView/TreeViewItem.js +6 -3
  870. package/dist/modern/VerticalNavigation/TreeView/TreeViewItem.js.map +1 -1
  871. package/dist/modern/VerticalNavigation/TreeView/descendants.js +2 -2
  872. package/dist/modern/VerticalNavigation/TreeView/descendants.js.map +1 -1
  873. package/dist/modern/VerticalNavigation/VerticalContainer/VerticalContainer.js +6 -3
  874. package/dist/modern/VerticalNavigation/VerticalContainer/VerticalContainer.js.map +1 -1
  875. package/dist/modern/VerticalNavigation/VerticalNavigation.js +2 -2
  876. package/dist/modern/VerticalNavigation/VerticalNavigation.js.map +1 -1
  877. package/dist/modern/index.d.ts +5 -0
  878. package/dist/modern/index.js +2 -0
  879. package/dist/modern/index.js.map +1 -1
  880. package/dist/modern/withId.js +2 -2
  881. package/dist/modern/withId.js.map +1 -1
  882. package/dist/modern/withTooltip.js +32 -27
  883. package/dist/modern/withTooltip.js.map +1 -1
  884. package/dist/withId.js +2 -2
  885. package/dist/withId.js.map +1 -1
  886. package/dist/withTooltip.js +4 -2
  887. package/dist/withTooltip.js.map +1 -1
  888. package/package.json +8 -7
package/CHANGELOG.md CHANGED
@@ -3,6 +3,54 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [3.54.1](https://github.com/lumada-design/hv-uikit-react/compare/@hitachivantara/uikit-react-core@3.54.0...@hitachivantara/uikit-react-core@3.54.1) (2022-02-04)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **Snackbar:** fix extended interface on SnackbarProvider ([95f5a54](https://github.com/lumada-design/hv-uikit-react/commit/95f5a5447969156ef5c499dced115201014d2687))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.54.0](https://github.com/lumada-design/hv-uikit-react/compare/@hitachivantara/uikit-react-core@3.53.1...@hitachivantara/uikit-react-core@3.54.0) (2022-02-04)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * **TagsInput:** add max counter validation ([#2657](https://github.com/lumada-design/hv-uikit-react/issues/2657)) ([2d539e9](https://github.com/lumada-design/hv-uikit-react/commit/2d539e9f73a4f0ddc30486503a759f4d3e5cc38e))
23
+ * **TagsInput:** add required property ([51bc3c8](https://github.com/lumada-design/hv-uikit-react/commit/51bc3c8f5fc184054596b6c3c2bc02fdf6dfcb7c))
24
+ * **TagsInput:** add status validation and other fixes ([c791849](https://github.com/lumada-design/hv-uikit-react/commit/c7918490f5b6a84a1ba934a9464ba09e73a9e7e4))
25
+
26
+
27
+ ### Features
28
+
29
+ * **snackbar:** adding stacked snackbar provider. ([a3d7ace](https://github.com/lumada-design/hv-uikit-react/commit/a3d7ace1a7cc4414ea679881898670379689d816))
30
+
31
+
32
+
33
+
34
+
35
+ ## [3.53.1](https://github.com/lumada-design/hv-uikit-react/compare/@hitachivantara/uikit-react-core@3.53.0...@hitachivantara/uikit-react-core@3.53.1) (2022-02-01)
36
+
37
+ **Note:** Version bump only for package @hitachivantara/uikit-react-core
38
+
39
+
40
+
41
+
42
+
43
+ # 3.53.0 (2022-01-27)
44
+
45
+
46
+ ### Features
47
+
48
+ * **table:** adding columns renderers.HVUIKIT-6288 ([fb958e8](https://github.com/lumada-design/hv-uikit-react/commit/fb958e84b144a954d57ff797249a6c70b3ef1c38))
49
+
50
+
51
+
52
+
53
+
6
54
  ## 3.52.5 (2022-01-19)
7
55
 
8
56
  **Note:** Version bump only for package @hitachivantara/uikit-react-core
package/LICENSE.txt ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2019 Hitachi Vantara Corporation
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -151,7 +151,7 @@ var HvAccordion = function HvAccordion(_ref) {
151
151
  }, containerProps), children));
152
152
  };
153
153
 
154
- HvAccordion.propTypes = {
154
+ process.env.NODE_ENV !== "production" ? HvAccordion.propTypes = {
155
155
  /**
156
156
  * Id to be applied to the root node of the accordion.
157
157
  */
@@ -236,7 +236,7 @@ HvAccordion.propTypes = {
236
236
  * The content of the accordion.
237
237
  */
238
238
  children: _propTypes.default.node
239
- };
239
+ } : void 0;
240
240
 
241
241
  var _default = (0, _core.withStyles)(_styles.default, {
242
242
  name: "HvAccordion"
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/Accordion/Accordion.js"],"names":["HvAccordion","id","className","classes","disabled","label","labelProps","onChange","children","expanded","headingLevel","defaultExpanded","containerProps","others","Boolean","isOpen","setIsOpen","handleAction","event","handleClick","preventDefault","stopPropagation","handleKeyDown","isEventHandled","key","altKey","ctrlKey","metaKey","currentTarget","target","accordionHeaderId","accordionContainer","accordionHeader","color","undefined","variantToApply","accordionButton","result","root","container","hidden","propTypes","PropTypes","string","shape","isRequired","node","instanceOf","Object","func","bool","oneOf","styles","name"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;AAEA;AACA;AACA;AACA,IAAMA,WAAW,GAAG,SAAdA,WAAc,OAcd;AAAA,MAbJC,EAaI,QAbJA,EAaI;AAAA,MAZJC,SAYI,QAZJA,SAYI;AAAA,MAXJC,OAWI,QAXJA,OAWI;AAAA,2BAVJC,QAUI;AAAA,MAVJA,QAUI,8BAVO,KAUP;AAAA,MATJC,KASI,QATJA,KASI;AAAA,MARJC,UAQI,QARJA,UAQI;AAAA,2BAPJC,QAOI;AAAA,MAPJA,QAOI,8BAPO,IAOP;AAAA,MANJC,QAMI,QANJA,QAMI;AAAA,MALJC,QAKI,QALJA,QAKI;AAAA,MAJJC,YAII,QAJJA,YAII;AAAA,kCAHJC,eAGI;AAAA,MAHJA,eAGI,qCAHc,KAGd;AAAA,MAFJC,cAEI,QAFJA,cAEI;AAAA,MADDC,MACC;;AACJ,uBAA4B,0BAAcJ,QAAd,EAAwBK,OAAO,CAACH,eAAD,CAA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F;AACA;AACEtC,EAAAA,cAAc,EAAE8B,mBAAUK,UAAV,CAAqBC,MAArB,CAzDM;;AA0DtB;AACF;AACA;AACEtC,EAAAA,YAAY,EAAEgC,mBAAUS,KAAV,CAAgB,CAAC,CAAD,EAAI,CAAJ,EAAO,CAAP,EAAU,CAAV,EAAa,CAAb,EAAgB,CAAhB,CAAhB,CA7DQ;;AA8DtB;AACF;AACA;AACE/C,EAAAA,QAAQ,EAAEsC,mBAAUQ,IAjEE;;AAkEtB;AACF;AACA;AACE1C,EAAAA,QAAQ,EAAEkC,mBAAUI;AArEE,CAAxB;;eAwEe,sBAAWM,eAAX,EAAmB;AAAEC,EAAAA,IAAI,EAAE;AAAR,CAAnB,EAA4CrD,WAA5C,C","sourcesContent":["import React, { useCallback, useMemo } from \"react\";\nimport PropTypes from \"prop-types\";\nimport clsx from \"clsx\";\nimport { withStyles } from \"@material-ui/core\";\nimport { DropDownXS, DropUpXS } from \"@hitachivantara/uikit-react-icons\";\nimport styles from \"./styles\";\nimport { setId, useControlled } from \"../utils\";\nimport { HvTypography } from \"..\";\n\n/**\n * A accordion is a design element that expands in place to expose hidden information.\n */\nconst HvAccordion = ({\n id,\n className,\n classes,\n disabled = false,\n label,\n labelProps,\n onChange = null,\n children,\n expanded,\n headingLevel,\n defaultExpanded = false,\n containerProps,\n ...others\n}) => {\n const [isOpen, setIsOpen] = useControlled(expanded, Boolean(defaultExpanded));\n\n const handleAction = useCallback(\n (event) => {\n if (!disabled) {\n onChange?.(event, isOpen);\n setIsOpen(!isOpen);\n return true;\n }\n return false;\n },\n [disabled, onChange, isOpen, setIsOpen]\n );\n\n const handleClick = useCallback(\n (event) => {\n handleAction(event);\n event.preventDefault();\n event.stopPropagation();\n },\n [handleAction]\n );\n\n const handleKeyDown = useCallback(\n (event) => {\n let isEventHandled = false;\n const { key } = event;\n\n if (event.altKey || event.ctrlKey || event.metaKey || event.currentTarget !== event.target) {\n return;\n }\n switch (key) {\n case \"Enter\":\n case \" \":\n isEventHandled = handleAction(event);\n break;\n default:\n return;\n }\n\n if (isEventHandled) {\n event.preventDefault();\n event.stopPropagation();\n }\n },\n [handleAction]\n );\n\n const accordionHeaderId = setId(id, \"button\");\n const accordionContainer = setId(id, \"container\");\n const accordionHeader = useMemo(() => {\n const color = (disabled && [\"atmo5\"]) || undefined;\n const variantToApply =\n headingLevel === 1 || headingLevel === 2 ? \"sectionTitle\" : \"highlightText\";\n const accordionButton = (\n <HvTypography\n id={accordionHeaderId}\n component=\"div\"\n role=\"button\"\n className={clsx(classes.label, {\n [classes.disabled]: disabled,\n })}\n tabIndex={0}\n onKeyDown={handleKeyDown}\n onClick={handleClick}\n variant={variantToApply}\n aria-expanded={isOpen}\n aria-disabled={disabled}\n {...labelProps}\n >\n {isOpen ? <DropUpXS color={color} /> : <DropDownXS color={color} />}\n {label}\n </HvTypography>\n );\n const result =\n headingLevel === undefined ? (\n accordionButton\n ) : (\n <HvTypography component={`h${headingLevel}`}>{accordionButton}</HvTypography>\n );\n return result;\n }, [\n classes,\n handleClick,\n handleKeyDown,\n label,\n labelProps,\n accordionHeaderId,\n disabled,\n headingLevel,\n isOpen,\n ]);\n\n return (\n <div id={id} className={clsx(className, classes.root)} {...others}>\n {accordionHeader}\n <div\n id={accordionContainer}\n role=\"region\"\n aria-labelledby={accordionHeaderId}\n className={clsx(classes.container, { [classes.hidden]: !isOpen })}\n {...containerProps}\n >\n {children}\n </div>\n </div>\n );\n};\n\nHvAccordion.propTypes = {\n /**\n * Id to be applied to the root node of the accordion.\n */\n id: PropTypes.string,\n /**\n * Class names to be applied to the accordion.\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 of the accordion.\n */\n root: PropTypes.string,\n /**\n * Styles applied to the content when it is hidden.\n */\n hidden: PropTypes.string,\n /**\n * Styles applied to the content when it is hidden.\n */\n container: PropTypes.string,\n /**\n * Styles applied to the label button.\n */\n label: PropTypes.string,\n /**\n * Styles applied to the label button when it is disabled.\n */\n disabled: PropTypes.string,\n }).isRequired,\n /**\n * The accordion label button.\n */\n label: PropTypes.node.isRequired,\n /**\n * An object containing props to be passed onto the accordion label button.\n */\n labelProps: PropTypes.instanceOf(Object),\n /**\n * The function that will be executed whenever the accordion toggles it will receive the state of the accordion\n */\n onChange: PropTypes.func,\n /**\n * Whether the accordion is open or not, if this property is defined the accordion must be fully controlled.\n */\n expanded: PropTypes.bool,\n /**\n * When uncontrolled, defines the initial expanded state.\n */\n defaultExpanded: PropTypes.bool,\n /**\n * An object containing props to be passed onto container holding the accordion children.\n */\n containerProps: PropTypes.instanceOf(Object),\n /**\n * Heading Level to apply to accordion button if ´undefined´ the button won't have a header wrapper.\n */\n headingLevel: PropTypes.oneOf([1, 2, 3, 4, 5, 6]),\n /**\n * Is the accordion disabled.\n */\n disabled: PropTypes.bool,\n /**\n * The content of the accordion.\n */\n children: PropTypes.node,\n};\n\nexport default withStyles(styles, { name: \"HvAccordion\" })(HvAccordion);\n"],"file":"Accordion.js"}
1
+ {"version":3,"sources":["../../src/Accordion/Accordion.js"],"names":["HvAccordion","id","className","classes","disabled","label","labelProps","onChange","children","expanded","headingLevel","defaultExpanded","containerProps","others","Boolean","isOpen","setIsOpen","handleAction","event","handleClick","preventDefault","stopPropagation","handleKeyDown","isEventHandled","key","altKey","ctrlKey","metaKey","currentTarget","target","accordionHeaderId","accordionContainer","accordionHeader","color","undefined","variantToApply","accordionButton","result","root","container","hidden","propTypes","PropTypes","string","shape","isRequired","node","instanceOf","Object","func","bool","oneOf","styles","name"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;AAEA;AACA;AACA;AACA,IAAMA,WAAW,GAAG,SAAdA,WAAc,OAcd;AAAA,MAbJC,EAaI,QAbJA,EAaI;AAAA,MAZJC,SAYI,QAZJA,SAYI;AAAA,MAXJC,OAWI,QAXJA,OAWI;AAAA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,QAAQ,EAAEsC,mBAAUC;AApBG,GAAhB,EAqBNE,UAjCmB;;AAkCtB;AACF;AACA;AACExC,EAAAA,KAAK,EAAEqC,mBAAUI,IAAV,CAAeD,UArCA;;AAsCtB;AACF;AACA;AACEvC,EAAAA,UAAU,EAAEoC,mBAAUK,UAAV,CAAqBC,MAArB,CAzCU;;AA0CtB;AACF;AACA;AACEzC,EAAAA,QAAQ,EAAEmC,mBAAUO,IA7CE;;AA8CtB;AACF;AACA;AACExC,EAAAA,QAAQ,EAAEiC,mBAAUQ,IAjDE;;AAkDtB;AACF;AACA;AACEvC,EAAAA,eAAe,EAAE+B,mBAAUQ,IArDL;;AAsDtB;AACF;AACA;AACEtC,EAAAA,cAAc,EAAE8B,mBAAUK,UAAV,CAAqBC,MAArB,CAzDM;;AA0DtB;AACF;AACA;AACEtC,EAAAA,YAAY,EAAEgC,mBAAUS,KAAV,CAAgB,CAAC,CAAD,EAAI,CAAJ,EAAO,CAAP,EAAU,CAAV,EAAa,CAAb,EAAgB,CAAhB,CAAhB,CA7DQ;;AA8DtB;AACF;AACA;AACE/C,EAAAA,QAAQ,EAAEsC,mBAAUQ,IAjEE;;AAkEtB;AACF;AACA;AACE1C,EAAAA,QAAQ,EAAEkC,mBAAUI;AArEE,CAAxB;;eAwEe,sBAAWM,eAAX,EAAmB;AAAEC,EAAAA,IAAI,EAAE;AAAR,CAAnB,EAA4CrD,WAA5C,C","sourcesContent":["import React, { useCallback, useMemo } from \"react\";\nimport PropTypes from \"prop-types\";\nimport clsx from \"clsx\";\nimport { withStyles } from \"@material-ui/core\";\nimport { DropDownXS, DropUpXS } from \"@hitachivantara/uikit-react-icons\";\nimport styles from \"./styles\";\nimport { setId, useControlled } from \"../utils\";\nimport { HvTypography } from \"..\";\n\n/**\n * A accordion is a design element that expands in place to expose hidden information.\n */\nconst HvAccordion = ({\n id,\n className,\n classes,\n disabled = false,\n label,\n labelProps,\n onChange = null,\n children,\n expanded,\n headingLevel,\n defaultExpanded = false,\n containerProps,\n ...others\n}) => {\n const [isOpen, setIsOpen] = useControlled(expanded, Boolean(defaultExpanded));\n\n const handleAction = useCallback(\n (event) => {\n if (!disabled) {\n onChange?.(event, isOpen);\n setIsOpen(!isOpen);\n return true;\n }\n return false;\n },\n [disabled, onChange, isOpen, setIsOpen]\n );\n\n const handleClick = useCallback(\n (event) => {\n handleAction(event);\n event.preventDefault();\n event.stopPropagation();\n },\n [handleAction]\n );\n\n const handleKeyDown = useCallback(\n (event) => {\n let isEventHandled = false;\n const { key } = event;\n\n if (event.altKey || event.ctrlKey || event.metaKey || event.currentTarget !== event.target) {\n return;\n }\n switch (key) {\n case \"Enter\":\n case \" \":\n isEventHandled = handleAction(event);\n break;\n default:\n return;\n }\n\n if (isEventHandled) {\n event.preventDefault();\n event.stopPropagation();\n }\n },\n [handleAction]\n );\n\n const accordionHeaderId = setId(id, \"button\");\n const accordionContainer = setId(id, \"container\");\n const accordionHeader = useMemo(() => {\n const color = (disabled && [\"atmo5\"]) || undefined;\n const variantToApply =\n headingLevel === 1 || headingLevel === 2 ? \"sectionTitle\" : \"highlightText\";\n const accordionButton = (\n <HvTypography\n id={accordionHeaderId}\n component=\"div\"\n role=\"button\"\n className={clsx(classes.label, {\n [classes.disabled]: disabled,\n })}\n tabIndex={0}\n onKeyDown={handleKeyDown}\n onClick={handleClick}\n variant={variantToApply}\n aria-expanded={isOpen}\n aria-disabled={disabled}\n {...labelProps}\n >\n {isOpen ? <DropUpXS color={color} /> : <DropDownXS color={color} />}\n {label}\n </HvTypography>\n );\n const result =\n headingLevel === undefined ? (\n accordionButton\n ) : (\n <HvTypography component={`h${headingLevel}`}>{accordionButton}</HvTypography>\n );\n return result;\n }, [\n classes,\n handleClick,\n handleKeyDown,\n label,\n labelProps,\n accordionHeaderId,\n disabled,\n headingLevel,\n isOpen,\n ]);\n\n return (\n <div id={id} className={clsx(className, classes.root)} {...others}>\n {accordionHeader}\n <div\n id={accordionContainer}\n role=\"region\"\n aria-labelledby={accordionHeaderId}\n className={clsx(classes.container, { [classes.hidden]: !isOpen })}\n {...containerProps}\n >\n {children}\n </div>\n </div>\n );\n};\n\nHvAccordion.propTypes = {\n /**\n * Id to be applied to the root node of the accordion.\n */\n id: PropTypes.string,\n /**\n * Class names to be applied to the accordion.\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 of the accordion.\n */\n root: PropTypes.string,\n /**\n * Styles applied to the content when it is hidden.\n */\n hidden: PropTypes.string,\n /**\n * Styles applied to the content when it is hidden.\n */\n container: PropTypes.string,\n /**\n * Styles applied to the label button.\n */\n label: PropTypes.string,\n /**\n * Styles applied to the label button when it is disabled.\n */\n disabled: PropTypes.string,\n }).isRequired,\n /**\n * The accordion label button.\n */\n label: PropTypes.node.isRequired,\n /**\n * An object containing props to be passed onto the accordion label button.\n */\n labelProps: PropTypes.instanceOf(Object),\n /**\n * The function that will be executed whenever the accordion toggles it will receive the state of the accordion\n */\n onChange: PropTypes.func,\n /**\n * Whether the accordion is open or not, if this property is defined the accordion must be fully controlled.\n */\n expanded: PropTypes.bool,\n /**\n * When uncontrolled, defines the initial expanded state.\n */\n defaultExpanded: PropTypes.bool,\n /**\n * An object containing props to be passed onto container holding the accordion children.\n */\n containerProps: PropTypes.instanceOf(Object),\n /**\n * Heading Level to apply to accordion button if ´undefined´ the button won't have a header wrapper.\n */\n headingLevel: PropTypes.oneOf([1, 2, 3, 4, 5, 6]),\n /**\n * Is the accordion disabled.\n */\n disabled: PropTypes.bool,\n /**\n * The content of the accordion.\n */\n children: PropTypes.node,\n};\n\nexport default withStyles(styles, { name: \"HvAccordion\" })(HvAccordion);\n"],"file":"Accordion.js"}
@@ -38,7 +38,7 @@ var HvActionBar = function HvActionBar(props) {
38
38
  }, others), children);
39
39
  };
40
40
 
41
- HvActionBar.propTypes = {
41
+ process.env.NODE_ENV !== "production" ? HvActionBar.propTypes = {
42
42
  /**
43
43
  * Class names to be applied.
44
44
  */
@@ -63,7 +63,7 @@ HvActionBar.propTypes = {
63
63
  * The content of the action container.
64
64
  */
65
65
  children: _propTypes.default.node.isRequired
66
- };
66
+ } : void 0;
67
67
 
68
68
  var _default = (0, _core.withStyles)(_styles.default, {
69
69
  name: "HvActionBar"
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/ActionBar/ActionBar.js"],"names":["HvActionBar","props","classes","className","id","children","others","root","propTypes","PropTypes","string","shape","isRequired","node","styles","name"],"mappings":";;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;;;AAEA;AACA;AACA;AACA,IAAMA,WAAW,GAAG,SAAdA,WAAc,CAACC,KAAD,EAAW;AAC7B,MAAQC,OAAR,GAAwDD,KAAxD,CAAQC,OAAR;AAAA,MAAiBC,SAAjB,GAAwDF,KAAxD,CAAiBE,SAAjB;AAAA,MAA4BC,EAA5B,GAAwDH,KAAxD,CAA4BG,EAA5B;AAAA,MAAgCC,QAAhC,GAAwDJ,KAAxD,CAAgCI,QAAhC;AAAA,MAA6CC,MAA7C,0CAAwDL,KAAxD;AAEA,sBACE;AAAK,IAAA,EAAE,EAAEG,EAAT;AAAa,IAAA,SAAS,EAAE,mBAAKF,OAAO,CAACK,IAAb,EAAmBJ,SAAnB;AAAxB,KAA2DG,MAA3D,GACGD,QADH,CADF;AAKD,CARD;;AAUAL,WAAW,CAACQ,SAAZ,GAAwB;AACtB;AACF;AACA;AACEL,EAAAA,SAAS,EAAEM,mBAAUC,MAJC;;AAKtB;AACF;AACA;AACEN,EAAAA,EAAE,EAAEK,mBAAUC,MARQ;;AAStB;AACF;AACA;AACER,EAAAA,OAAO,EAAEO,mBAAUE,KAAV,CAAgB;AACvB;AACJ;AACA;AACIJ,IAAAA,IAAI,EAAEE,mBAAUC;AAJO,GAAhB,EAKNE,UAjBmB;;AAkBtB;AACF;AACA;AACEP,EAAAA,QAAQ,EAAEI,mBAAUI,IAAV,CAAeD;AArBH,CAAxB;;eAwBe,sBAAWE,eAAX,EAAmB;AAAEC,EAAAA,IAAI,EAAE;AAAR,CAAnB,EAA4Cf,WAA5C,C","sourcesContent":["import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport clsx from \"clsx\";\nimport { withStyles } from \"@material-ui/core\";\nimport styles from \"./styles\";\n\n/**\n * This component acts as a container for the Action Bar pattern.\n */\nconst HvActionBar = (props) => {\n const { classes, className, id, children, ...others } = props;\n\n return (\n <div id={id} className={clsx(classes.root, className)} {...others}>\n {children}\n </div>\n );\n};\n\nHvActionBar.propTypes = {\n /**\n * Class names to be applied.\n */\n className: PropTypes.string,\n /**\n * Id to be applied to the root node.\n */\n id: 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 * The content of the action container.\n */\n children: PropTypes.node.isRequired,\n};\n\nexport default withStyles(styles, { name: \"HvActionBar\" })(HvActionBar);\n"],"file":"ActionBar.js"}
1
+ {"version":3,"sources":["../../src/ActionBar/ActionBar.js"],"names":["HvActionBar","props","classes","className","id","children","others","root","propTypes","PropTypes","string","shape","isRequired","node","styles","name"],"mappings":";;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;;;AAEA;AACA;AACA;AACA,IAAMA,WAAW,GAAG,SAAdA,WAAc,CAACC,KAAD,EAAW;AAC7B,MAAQC,OAAR,GAAwDD,KAAxD,CAAQC,OAAR;AAAA,MAAiBC,SAAjB,GAAwDF,KAAxD,CAAiBE,SAAjB;AAAA,MAA4BC,EAA5B,GAAwDH,KAAxD,CAA4BG,EAA5B;AAAA,MAAgCC,QAAhC,GAAwDJ,KAAxD,CAAgCI,QAAhC;AAAA,MAA6CC,MAA7C,0CAAwDL,KAAxD;AAEA,sBACE;AAAK,IAAA,EAAE,EAAEG,EAAT;AAAa,IAAA,SAAS,EAAE,mBAAKF,OAAO,CAACK,IAAb,EAAmBJ,SAAnB;AAAxB,KAA2DG,MAA3D,GACGD,QADH,CADF;AAKD,CARD;;AAUA,wCAAAL,WAAW,CAACQ,SAAZ,GAAwB;AACtB;AACF;AACA;AACEL,EAAAA,SAAS,EAAEM,mBAAUC,MAJC;;AAKtB;AACF;AACA;AACEN,EAAAA,EAAE,EAAEK,mBAAUC,MARQ;;AAStB;AACF;AACA;AACER,EAAAA,OAAO,EAAEO,mBAAUE,KAAV,CAAgB;AACvB;AACJ;AACA;AACIJ,IAAAA,IAAI,EAAEE,mBAAUC;AAJO,GAAhB,EAKNE,UAjBmB;;AAkBtB;AACF;AACA;AACEP,EAAAA,QAAQ,EAAEI,mBAAUI,IAAV,CAAeD;AArBH,CAAxB;;eAwBe,sBAAWE,eAAX,EAAmB;AAAEC,EAAAA,IAAI,EAAE;AAAR,CAAnB,EAA4Cf,WAA5C,C","sourcesContent":["import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport clsx from \"clsx\";\nimport { withStyles } from \"@material-ui/core\";\nimport styles from \"./styles\";\n\n/**\n * This component acts as a container for the Action Bar pattern.\n */\nconst HvActionBar = (props) => {\n const { classes, className, id, children, ...others } = props;\n\n return (\n <div id={id} className={clsx(classes.root, className)} {...others}>\n {children}\n </div>\n );\n};\n\nHvActionBar.propTypes = {\n /**\n * Class names to be applied.\n */\n className: PropTypes.string,\n /**\n * Id to be applied to the root node.\n */\n id: 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 * The content of the action container.\n */\n children: PropTypes.node.isRequired,\n};\n\nexport default withStyles(styles, { name: \"HvActionBar\" })(HvActionBar);\n"],"file":"ActionBar.js"}
@@ -125,7 +125,7 @@ var ActionsGeneric = function ActionsGeneric(_ref) {
125
125
  }));
126
126
  };
127
127
 
128
- ActionsGeneric.propTypes = {
128
+ process.env.NODE_ENV !== "production" ? ActionsGeneric.propTypes = {
129
129
  /**
130
130
  * Class names to be applied.
131
131
  */
@@ -201,7 +201,7 @@ ActionsGeneric.propTypes = {
201
201
  * The number of maximum visible actions before they're collapsed into a `DropDownMenu`.
202
202
  */
203
203
  maxVisibleActions: _propTypes.default.number
204
- };
204
+ } : void 0;
205
205
 
206
206
  var _default = (0, _core.withStyles)(_styles.default, {
207
207
  name: "HvActionsGeneric"
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/ActionsGeneric/ActionsGeneric.js"],"names":["ActionsGeneric","id","classes","className","category","disabled","actions","actionsCallback","maxVisibleActions","Infinity","others","Array","isArray","renderButton","action","idx","actDisabled","icon","label","other","actionId","renderedIcon","isDisabled","button","event","renderActionsGrid","actsVisible","slice","actsDropdown","semantic","iconColor","undefined","map","root","dropDownMenu","dropDownMenuButton","iconSelected","dropDownMenuButtonSelected","actionOverflow","length","actionContainer","propTypes","PropTypes","string","shape","isRequired","oneOf","bool","oneOfType","node","arrayOf","func","number","styles","name"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;AAEA,IAAMA,cAAc,GAAG,SAAjBA,cAAiB,OAUjB;AAAA,MATJC,EASI,QATJA,EASI;AAAA,MARJC,OAQI,QARJA,OAQI;AAAA,MAPJC,SAOI,QAPJA,SAOI;AAAA,2BANJC,QAMI;AAAA,MANJA,QAMI,8BANO,OAMP;AAAA,2BALJC,QAKI;AAAA,MALJA,QAKI,8BALO,KAKP;AAAA,0BAJJC,OAII;AAAA,MAJJA,OAII,6BAJM,EAIN;AAAA,MAHJC,eAGI,QAHJA,eAGI;AAAA,mCAFJC,iBAEI;AAAA,MAFJA,iBAEI,sCAFgBC,QAEhB;AAAA,MADDC,MACC;AACJ,MAAI,CAACC,KAAK,CAACC,OAAN,CAAcN,OAAd,CAAL,EAA6B,OAAO,wCAAeA,OAAf,IAA0BA,OAA1B,GAAoC,IAA3C;;AAE7B,MAAMO,YAAY,GAAG,SAAfA,YAAe,CAACC,MAAD,EAASC,GAAT,EA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IAAAA,QAAQ,EAAEqC,mBAAUK;AAJN,GAAhB,CADF,CAF2B,CAApB,CAlDgB;;AA6DzB;AACF;AACA;AACExC,EAAAA,eAAe,EAAEmC,mBAAUS,IAhEF;;AAiEzB;AACF;AACA;AACE3C,EAAAA,iBAAiB,EAAEkC,mBAAUU;AApEJ,CAA3B;;eAuEe,sBAAWC,eAAX,EAAmB;AAAEC,EAAAA,IAAI,EAAE;AAAR,CAAnB,EAAiDtD,cAAjD,C","sourcesContent":["import React, { isValidElement } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { withStyles } from \"@material-ui/core\";\nimport clsx from \"clsx\";\nimport { MoreOptionsVertical } from \"@hitachivantara/uikit-react-icons\";\nimport { HvButton, HvDropDownMenu, setId } from \"..\";\nimport styles from \"./styles\";\n\nconst ActionsGeneric = ({\n id,\n classes,\n className,\n category = \"ghost\",\n disabled = false,\n actions = [],\n actionsCallback,\n maxVisibleActions = Infinity,\n ...others\n}) => {\n if (!Array.isArray(actions)) return isValidElement(actions) ? actions : null;\n\n const renderButton = (action, idx) => {\n const { disabled: actDisabled, icon, label, ...other } = action;\n const actionId = setId(id, idx, \"action\", action.id);\n\n const renderedIcon = isValidElement(icon) ? icon : icon?.({ isDisabled: disabled });\n\n return (\n <HvButton\n id={actionId}\n key={actionId || idx}\n category={category}\n className={classes.button}\n disabled={actDisabled ?? disabled}\n onClick={(event) => actionsCallback?.(event, id, action)}\n startIcon={renderedIcon}\n {...other}\n >\n {label}\n </HvButton>\n );\n };\n\n const renderActionsGrid = () => {\n const actsVisible = actions.slice(0, maxVisibleActions);\n const actsDropdown = actions.slice(maxVisibleActions);\n\n const semantic = category === \"semantic\";\n const iconColor = (disabled && \"atmo5\") || (semantic && \"base2\") || undefined;\n\n return (\n <>\n {actsVisible.map((action, idx) => renderButton(action, idx))}\n <HvDropDownMenu\n id={setId(id, \"menu\")}\n disabled={disabled}\n category={category}\n classes={{\n root: classes.dropDownMenu,\n icon: classes.dropDownMenuButton,\n iconSelected: classes.dropDownMenuButtonSelected,\n }}\n icon={<MoreOptionsVertical color={iconColor} />}\n placement=\"left\"\n onClick={(event, action) => actionsCallback?.(event, id, action)}\n dataList={actsDropdown}\n keepOpened={false}\n disablePortal={false}\n />\n </>\n );\n };\n\n const actionOverflow = actions.length > maxVisibleActions;\n\n return (\n <div\n className={clsx(className, classes.root, {\n [classes.actionContainer]: actionOverflow,\n })}\n {...others}\n >\n {actionOverflow\n ? renderActionsGrid()\n : actions.map((action, idx) => renderButton(action, idx))}\n </div>\n );\n};\n\nActionsGeneric.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 to the actions.\n */\n classes: PropTypes.shape({\n /**\n * Styles applied to element root.\n */\n root: PropTypes.string,\n /**\n * Styles applied to the visible buttons.\n */\n button: PropTypes.string,\n /**\n * Styles applied to the action container wrapper.\n */\n actionContainer: PropTypes.string,\n /**\n * Styles applied to the DropDownMenu component.\n */\n dropDownMenu: PropTypes.string,\n /**\n * Styles applied to the DropDownMenu IconButton component.\n */\n dropDownMenuButton: PropTypes.string,\n /**\n * Styles applied to the DropDownMenu IconButton component when it is selected.\n */\n dropDownMenuButtonSelected: PropTypes.string,\n }).isRequired,\n /**\n * Component identifier.\n */\n id: PropTypes.string,\n /**\n * Button category.\n */\n category: PropTypes.oneOf([\"primary\", \"secondary\", \"ghost\", \"semantic\"]),\n /**\n * Whether actions should be all disabled\n */\n disabled: PropTypes.bool,\n /**\n * The renderable content inside the actions slot of the footer,\n * or an Array of actions `{id, label, icon, disabled}`\n */\n actions: PropTypes.oneOfType([\n PropTypes.node,\n PropTypes.arrayOf(\n PropTypes.shape({\n id: PropTypes.string.isRequired,\n label: PropTypes.string,\n icon: PropTypes.oneOfType([PropTypes.func, PropTypes.node]),\n disabled: PropTypes.bool,\n })\n ),\n ]),\n /**\n * The callback function ran when an action is triggered, receiving `action` as param\n */\n actionsCallback: PropTypes.func,\n /**\n * The number of maximum visible actions before they're collapsed into a `DropDownMenu`.\n */\n maxVisibleActions: PropTypes.number,\n};\n\nexport default withStyles(styles, { name: \"HvActionsGeneric\" })(ActionsGeneric);\n"],"file":"ActionsGeneric.js"}
1
+ {"version":3,"sources":["../../src/ActionsGeneric/ActionsGeneric.js"],"names":["ActionsGeneric","id","classes","className","category","disabled","actions","actionsCallback","maxVisibleActions","Infinity","others","Array","isArray","renderButton","action","idx","actDisabled","icon","label","other","actionId","renderedIcon","isDisabled","button","event","renderActionsGrid","actsVisible","slice","actsDropdown","semantic","iconColor","undefined","map","root","dropDownMenu","dropDownMenuButton","iconSelected","dropDownMenuButtonSelected","actionOverflow","length","actionContainer","propTypes","PropTypes","string","shape","isRequired","oneOf","bool","oneOfType","node","arrayOf","func","number","styles","name"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;AAEA,IAAMA,cAAc,GAAG,SAAjBA,cAAiB,OAUjB;AAAA,MATJC,EASI,QATJA,EASI;AAAA,MARJC,OAQI,QARJA,OAQI;AAAA,MAPJC,SAOI,QAPJA,SAOI;AAAA,2BANJC,QAMI;AAAA,MANJA,QAMI,8BANO,OAMP;AAAA,2BALJC,QAKI;AAAA,MALJA,QAKI,8BALO,KAKP;AAAA,0BAJJC,OAII;AAAA,MAJJA,OAII,6BAJM,EAIN;AAAA,MAHJC,eAGI,QAHJA,eAGI;AAAA,mCAFJC,iBAEI;AAAA,MAFJA,iBAEI,sCAFgBC,QAEhB;AAAA,MADDC,MACC;AACJ,MAAI,CAACC,KAAK,CAACC,OAAN,CAAcN,OAAd,CAAL,EAA6B,OAAO,wCAAeA,OAAf,IAA0BA,OAA1B,GAAoC,IAA3C;;AAE7B,MAAMO,YAAY,GAAG,SAAfA,YAAe,CAACC,MAAD,EAASC,GAAT,EAAiB;AACpC,QAAkBC,WAAlB,GAAyDF,MAAzD,CAAQT,QAAR;AAAA,QAA+BY,IAA/B,GAAyDH,MAA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ACF;AACA;AACExC,EAAAA,eAAe,EAAEmC,mBAAUS,IAhEF;;AAiEzB;AACF;AACA;AACE3C,EAAAA,iBAAiB,EAAEkC,mBAAUU;AApEJ,CAA3B;;eAuEe,sBAAWC,eAAX,EAAmB;AAAEC,EAAAA,IAAI,EAAE;AAAR,CAAnB,EAAiDtD,cAAjD,C","sourcesContent":["import React, { isValidElement } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { withStyles } from \"@material-ui/core\";\nimport clsx from \"clsx\";\nimport { MoreOptionsVertical } from \"@hitachivantara/uikit-react-icons\";\nimport { HvButton, HvDropDownMenu, setId } from \"..\";\nimport styles from \"./styles\";\n\nconst ActionsGeneric = ({\n id,\n classes,\n className,\n category = \"ghost\",\n disabled = false,\n actions = [],\n actionsCallback,\n maxVisibleActions = Infinity,\n ...others\n}) => {\n if (!Array.isArray(actions)) return isValidElement(actions) ? actions : null;\n\n const renderButton = (action, idx) => {\n const { disabled: actDisabled, icon, label, ...other } = action;\n const actionId = setId(id, idx, \"action\", action.id);\n\n const renderedIcon = isValidElement(icon) ? icon : icon?.({ isDisabled: disabled });\n\n return (\n <HvButton\n id={actionId}\n key={actionId || idx}\n category={category}\n className={classes.button}\n disabled={actDisabled ?? disabled}\n onClick={(event) => actionsCallback?.(event, id, action)}\n startIcon={renderedIcon}\n {...other}\n >\n {label}\n </HvButton>\n );\n };\n\n const renderActionsGrid = () => {\n const actsVisible = actions.slice(0, maxVisibleActions);\n const actsDropdown = actions.slice(maxVisibleActions);\n\n const semantic = category === \"semantic\";\n const iconColor = (disabled && \"atmo5\") || (semantic && \"base2\") || undefined;\n\n return (\n <>\n {actsVisible.map((action, idx) => renderButton(action, idx))}\n <HvDropDownMenu\n id={setId(id, \"menu\")}\n disabled={disabled}\n category={category}\n classes={{\n root: classes.dropDownMenu,\n icon: classes.dropDownMenuButton,\n iconSelected: classes.dropDownMenuButtonSelected,\n }}\n icon={<MoreOptionsVertical color={iconColor} />}\n placement=\"left\"\n onClick={(event, action) => actionsCallback?.(event, id, action)}\n dataList={actsDropdown}\n keepOpened={false}\n disablePortal={false}\n />\n </>\n );\n };\n\n const actionOverflow = actions.length > maxVisibleActions;\n\n return (\n <div\n className={clsx(className, classes.root, {\n [classes.actionContainer]: actionOverflow,\n })}\n {...others}\n >\n {actionOverflow\n ? renderActionsGrid()\n : actions.map((action, idx) => renderButton(action, idx))}\n </div>\n );\n};\n\nActionsGeneric.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 to the actions.\n */\n classes: PropTypes.shape({\n /**\n * Styles applied to element root.\n */\n root: PropTypes.string,\n /**\n * Styles applied to the visible buttons.\n */\n button: PropTypes.string,\n /**\n * Styles applied to the action container wrapper.\n */\n actionContainer: PropTypes.string,\n /**\n * Styles applied to the DropDownMenu component.\n */\n dropDownMenu: PropTypes.string,\n /**\n * Styles applied to the DropDownMenu IconButton component.\n */\n dropDownMenuButton: PropTypes.string,\n /**\n * Styles applied to the DropDownMenu IconButton component when it is selected.\n */\n dropDownMenuButtonSelected: PropTypes.string,\n }).isRequired,\n /**\n * Component identifier.\n */\n id: PropTypes.string,\n /**\n * Button category.\n */\n category: PropTypes.oneOf([\"primary\", \"secondary\", \"ghost\", \"semantic\"]),\n /**\n * Whether actions should be all disabled\n */\n disabled: PropTypes.bool,\n /**\n * The renderable content inside the actions slot of the footer,\n * or an Array of actions `{id, label, icon, disabled}`\n */\n actions: PropTypes.oneOfType([\n PropTypes.node,\n PropTypes.arrayOf(\n PropTypes.shape({\n id: PropTypes.string.isRequired,\n label: PropTypes.string,\n icon: PropTypes.oneOfType([PropTypes.func, PropTypes.node]),\n disabled: PropTypes.bool,\n })\n ),\n ]),\n /**\n * The callback function ran when an action is triggered, receiving `action` as param\n */\n actionsCallback: PropTypes.func,\n /**\n * The number of maximum visible actions before they're collapsed into a `DropDownMenu`.\n */\n maxVisibleActions: PropTypes.number,\n};\n\nexport default withStyles(styles, { name: \"HvActionsGeneric\" })(ActionsGeneric);\n"],"file":"ActionsGeneric.js"}
@@ -473,7 +473,7 @@ var HvAssetInventory = function HvAssetInventory(props) {
473
473
  }, renderPagination())))));
474
474
  };
475
475
 
476
- HvAssetInventory.propTypes = {
476
+ process.env.NODE_ENV !== "production" ? HvAssetInventory.propTypes = {
477
477
  /**
478
478
  * Class names to be applied.
479
479
  */
@@ -738,7 +738,7 @@ HvAssetInventory.propTypes = {
738
738
  * Component to the present when no data is available.
739
739
  */
740
740
  emptyComponent: _propTypes.default.node
741
- };
741
+ } : void 0;
742
742
 
743
743
  var _default = (0, _core.withStyles)(_styles.default, {
744
744
  name: "HvAssetInventory"