@hitachivantara/uikit-react-core 5.66.14 → 5.67.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (396) hide show
  1. package/dist/cjs/Accordion/Accordion.styles.cjs +2 -2
  2. package/dist/cjs/ActionBar/ActionBar.styles.cjs +2 -2
  3. package/dist/cjs/ActionsGeneric/ActionsGeneric.cjs +8 -2
  4. package/dist/cjs/ActionsGeneric/ActionsGeneric.styles.cjs +2 -2
  5. package/dist/cjs/AppSwitcher/Action/Action.styles.cjs +2 -2
  6. package/dist/cjs/AppSwitcher/AppSwitcher.styles.cjs +2 -2
  7. package/dist/cjs/Avatar/Avatar.styles.cjs +2 -2
  8. package/dist/cjs/AvatarGroup/AvatarGroup.cjs +3 -2
  9. package/dist/cjs/AvatarGroup/AvatarGroup.styles.cjs +2 -2
  10. package/dist/cjs/Badge/Badge.styles.cjs +2 -2
  11. package/dist/cjs/Banner/Banner.styles.cjs +2 -2
  12. package/dist/cjs/Banner/BannerContent/ActionContainer/ActionContainer.styles.cjs +2 -2
  13. package/dist/cjs/Banner/BannerContent/BannerContent.styles.cjs +2 -2
  14. package/dist/cjs/Banner/BannerContent/MessageContainer/MessageContainer.styles.cjs +2 -2
  15. package/dist/cjs/BaseCheckBox/BaseCheckBox.styles.cjs +2 -2
  16. package/dist/cjs/BaseDropdown/BaseDropdown.cjs +2 -2
  17. package/dist/cjs/BaseDropdown/BaseDropdown.styles.cjs +2 -2
  18. package/dist/cjs/BaseInput/BaseInput.styles.cjs +2 -2
  19. package/dist/cjs/BaseRadio/BaseRadio.styles.cjs +2 -2
  20. package/dist/cjs/BaseSwitch/BaseSwitch.styles.cjs +2 -2
  21. package/dist/cjs/BreadCrumb/BreadCrumb.styles.cjs +2 -2
  22. package/dist/cjs/BreadCrumb/Page/Page.styles.cjs +2 -2
  23. package/dist/cjs/BreadCrumb/PathElement/PathElement.styles.cjs +2 -2
  24. package/dist/cjs/BulkActions/BulkActions.cjs +2 -2
  25. package/dist/cjs/BulkActions/BulkActions.styles.cjs +2 -2
  26. package/dist/cjs/Button/Button.cjs +2 -2
  27. package/dist/cjs/Button/Button.styles.cjs +2 -2
  28. package/dist/cjs/Calendar/Calendar.styles.cjs +2 -2
  29. package/dist/cjs/Calendar/CalendarHeader/CalendarHeader.styles.cjs +2 -2
  30. package/dist/cjs/Calendar/CalendarNavigation/ComposedNavigation/ComposedNavigation.styles.cjs +2 -2
  31. package/dist/cjs/Calendar/CalendarNavigation/MonthSelector/MonthSelector.styles.cjs +2 -2
  32. package/dist/cjs/Calendar/CalendarNavigation/Navigation/Navigation.styles.cjs +2 -2
  33. package/dist/cjs/Calendar/SingleCalendar/CalendarCell.styles.cjs +2 -2
  34. package/dist/cjs/Calendar/SingleCalendar/SingleCalendar.styles.cjs +2 -2
  35. package/dist/cjs/Card/Card.styles.cjs +2 -2
  36. package/dist/cjs/Card/Content/Content.styles.cjs +2 -2
  37. package/dist/cjs/Card/Header/Header.styles.cjs +2 -2
  38. package/dist/cjs/Card/Media/Media.styles.cjs +2 -2
  39. package/dist/cjs/Carousel/Carousel.cjs +2 -2
  40. package/dist/cjs/Carousel/Carousel.styles.cjs +2 -2
  41. package/dist/cjs/Carousel/CarouselSlide/CarouselSlide.styles.cjs +2 -2
  42. package/dist/cjs/CheckBox/CheckBox.styles.cjs +2 -2
  43. package/dist/cjs/CheckBoxGroup/CheckBoxGroup.styles.cjs +2 -2
  44. package/dist/cjs/ColorPicker/ColorPicker.styles.cjs +2 -2
  45. package/dist/cjs/ColorPicker/Fields/Fields.styles.cjs +2 -2
  46. package/dist/cjs/ColorPicker/Picker/Picker.cjs +2 -2
  47. package/dist/cjs/ColorPicker/Picker/Picker.styles.cjs +2 -2
  48. package/dist/cjs/ColorPicker/PresetColors/PresetColors.styles.cjs +2 -2
  49. package/dist/cjs/ColorPicker/SavedColors/SavedColors.styles.cjs +2 -2
  50. package/dist/cjs/Container/Container.styles.cjs +2 -2
  51. package/dist/cjs/Controls/Controls.styles.cjs +2 -2
  52. package/dist/cjs/Controls/LeftControl/LeftControl.styles.cjs +2 -2
  53. package/dist/cjs/Controls/RightControl/RightControl.styles.cjs +2 -2
  54. package/dist/cjs/DatePicker/DatePicker.styles.cjs +2 -2
  55. package/dist/cjs/Dialog/Actions/Actions.styles.cjs +2 -2
  56. package/dist/cjs/Dialog/Content/Content.styles.cjs +2 -2
  57. package/dist/cjs/Dialog/Dialog.cjs +2 -2
  58. package/dist/cjs/Dialog/Dialog.styles.cjs +2 -2
  59. package/dist/cjs/Dialog/Title/Title.styles.cjs +2 -2
  60. package/dist/cjs/DotPagination/DotPagination.styles.cjs +2 -2
  61. package/dist/cjs/Drawer/Drawer.styles.cjs +2 -2
  62. package/dist/cjs/DropDownMenu/DropDownMenu.cjs +7 -1
  63. package/dist/cjs/DropDownMenu/DropDownMenu.styles.cjs +2 -2
  64. package/dist/cjs/Dropdown/Dropdown.styles.cjs +2 -2
  65. package/dist/cjs/Dropdown/List/List.styles.cjs +2 -2
  66. package/dist/cjs/DropdownButton/DropdownButton.styles.cjs +2 -2
  67. package/dist/cjs/EmptyState/EmptyState.styles.cjs +2 -2
  68. package/dist/cjs/FileUploader/DropZone/DropZone.styles.cjs +2 -2
  69. package/dist/cjs/FileUploader/File/File.styles.cjs +2 -2
  70. package/dist/cjs/FileUploader/FileList/FileList.styles.cjs +2 -2
  71. package/dist/cjs/FileUploader/Preview/Preview.styles.cjs +2 -2
  72. package/dist/cjs/FilterGroup/Counter/Counter.styles.cjs +2 -2
  73. package/dist/cjs/FilterGroup/FilterContent/FilterContent.cjs +2 -2
  74. package/dist/cjs/FilterGroup/FilterContent/FilterContent.styles.cjs +2 -2
  75. package/dist/cjs/FilterGroup/FilterGroup.styles.cjs +2 -2
  76. package/dist/cjs/FilterGroup/LeftPanel/LeftPanel.styles.cjs +2 -2
  77. package/dist/cjs/FilterGroup/RightPanel/RightPanel.styles.cjs +2 -2
  78. package/dist/cjs/Focus/Focus.styles.cjs +2 -2
  79. package/dist/cjs/Footer/Footer.styles.cjs +2 -2
  80. package/dist/cjs/Forms/Adornment/Adornment.styles.cjs +2 -2
  81. package/dist/cjs/Forms/CharCounter/CharCounter.styles.cjs +2 -2
  82. package/dist/cjs/Forms/FormElement/FormElement.styles.cjs +2 -2
  83. package/dist/cjs/Forms/InfoMessage/InfoMessage.styles.cjs +2 -2
  84. package/dist/cjs/Forms/Label/Label.styles.cjs +2 -2
  85. package/dist/cjs/Forms/Suggestions/Suggestions.styles.cjs +2 -2
  86. package/dist/cjs/Forms/WarningText/WarningText.styles.cjs +2 -2
  87. package/dist/cjs/GlobalActions/GlobalActions.styles.cjs +2 -2
  88. package/dist/cjs/Grid/Grid.styles.cjs +2 -2
  89. package/dist/cjs/Header/Actions/Actions.styles.cjs +2 -2
  90. package/dist/cjs/Header/Brand/Brand.styles.cjs +2 -2
  91. package/dist/cjs/Header/Header.styles.cjs +2 -2
  92. package/dist/cjs/Header/Navigation/MenuBar/Bar.styles.cjs +2 -2
  93. package/dist/cjs/Header/Navigation/MenuItem/MenuItem.styles.cjs +2 -2
  94. package/dist/cjs/Header/Navigation/Navigation.styles.cjs +2 -2
  95. package/dist/cjs/InlineEditor/InlineEditor.cjs +2 -2
  96. package/dist/cjs/InlineEditor/InlineEditor.styles.cjs +2 -2
  97. package/dist/cjs/Input/Input.styles.cjs +2 -2
  98. package/dist/cjs/Kpi/Kpi.styles.cjs +2 -2
  99. package/dist/cjs/Link/Link.styles.cjs +2 -2
  100. package/dist/cjs/List/List.styles.cjs +2 -2
  101. package/dist/cjs/ListContainer/ListContainer.styles.cjs +2 -2
  102. package/dist/cjs/ListContainer/ListItem/ListItem.styles.cjs +2 -2
  103. package/dist/cjs/Loading/Loading.styles.cjs +2 -2
  104. package/dist/cjs/LoadingContainer/LoadingContainer.styles.cjs +2 -2
  105. package/dist/cjs/Login/Login.styles.cjs +2 -2
  106. package/dist/cjs/MultiButton/MultiButton.styles.cjs +2 -2
  107. package/dist/cjs/OverflowTooltip/OverflowTooltip.styles.cjs +2 -2
  108. package/dist/cjs/Pagination/Pagination.styles.cjs +2 -2
  109. package/dist/cjs/Pagination/Select.styles.cjs +2 -2
  110. package/dist/cjs/Panel/Panel.styles.cjs +2 -2
  111. package/dist/cjs/ProgressBar/ProgressBar.styles.cjs +2 -2
  112. package/dist/cjs/QueryBuilder/ConfirmationDialog/ConfirmationDialog.styles.cjs +2 -2
  113. package/dist/cjs/QueryBuilder/QueryBuilder.styles.cjs +2 -2
  114. package/dist/cjs/QueryBuilder/Rule/Rule.styles.cjs +2 -2
  115. package/dist/cjs/QueryBuilder/Rule/Value/DateTimeValue/DateTimeValue.styles.cjs +2 -2
  116. package/dist/cjs/QueryBuilder/Rule/Value/NumericValue/Numeric.styles.cjs +2 -2
  117. package/dist/cjs/QueryBuilder/Rule/Value/TextValue/TextValue.styles.cjs +2 -2
  118. package/dist/cjs/Radio/Radio.styles.cjs +2 -2
  119. package/dist/cjs/RadioGroup/RadioGroup.styles.cjs +2 -2
  120. package/dist/cjs/ScrollTo/Horizontal/HorizontalScrollListItem/HorizontalScrollListItem.styles.cjs +2 -2
  121. package/dist/cjs/ScrollTo/Horizontal/ScrollToHorizontal.styles.cjs +2 -2
  122. package/dist/cjs/ScrollTo/Vertical/ScrollToVertical.styles.cjs +2 -2
  123. package/dist/cjs/ScrollTo/Vertical/VerticalScrollListItem/VerticalScrollListItem.styles.cjs +2 -2
  124. package/dist/cjs/Section/Section.styles.cjs +2 -2
  125. package/dist/cjs/Select/Option.cjs +5 -5
  126. package/dist/cjs/Select/OptionGroup.cjs +4 -4
  127. package/dist/cjs/Select/Select.cjs +2 -2
  128. package/dist/cjs/Select/Select.styles.cjs +2 -2
  129. package/dist/cjs/SelectionList/SelectionList.styles.cjs +2 -2
  130. package/dist/cjs/SimpleGrid/SimpleGrid.styles.cjs +2 -2
  131. package/dist/cjs/Skeleton/Skeleton.styles.cjs +2 -2
  132. package/dist/cjs/Slider/Slider.styles.cjs +2 -2
  133. package/dist/cjs/Slider/SliderInput/SliderInput.styles.cjs +2 -2
  134. package/dist/cjs/Snackbar/Snackbar.styles.cjs +2 -2
  135. package/dist/cjs/Snackbar/SnackbarContent/SnackbarContent.cjs +2 -2
  136. package/dist/cjs/Snackbar/SnackbarContent/SnackbarContent.styles.cjs +2 -2
  137. package/dist/cjs/SnackbarProvider/SnackbarProvider.styles.cjs +2 -2
  138. package/dist/cjs/Stack/Stack.styles.cjs +2 -2
  139. package/dist/cjs/Switch/Switch.styles.cjs +2 -2
  140. package/dist/cjs/Tab/Tab.styles.cjs +2 -2
  141. package/dist/cjs/Table/Table.styles.cjs +2 -2
  142. package/dist/cjs/Table/TableBody/TableBody.styles.cjs +2 -2
  143. package/dist/cjs/Table/TableCell/TableCell.styles.cjs +2 -2
  144. package/dist/cjs/Table/TableContainer/TableContainer.styles.cjs +2 -2
  145. package/dist/cjs/Table/TableHead/TableHead.styles.cjs +2 -2
  146. package/dist/cjs/Table/TableHeader/TableHeader.cjs +2 -2
  147. package/dist/cjs/Table/TableHeader/TableHeader.styles.cjs +2 -2
  148. package/dist/cjs/Table/TableRow/TableRow.styles.cjs +2 -2
  149. package/dist/cjs/Table/renderers/ProgressColumnCell/ProgressColumnCell.styles.cjs +2 -2
  150. package/dist/cjs/Table/renderers/SwitchColumnCell/SwitchColumnCell.styles.cjs +2 -2
  151. package/dist/cjs/TableSection/TableSection.styles.cjs +2 -2
  152. package/dist/cjs/Tabs/Tabs.styles.cjs +2 -2
  153. package/dist/cjs/Tag/Tag.cjs +2 -2
  154. package/dist/cjs/Tag/Tag.styles.cjs +2 -2
  155. package/dist/cjs/TagsInput/TagsInput.styles.cjs +2 -2
  156. package/dist/cjs/TextArea/TextArea.styles.cjs +2 -2
  157. package/dist/cjs/TimeAgo/TimeAgo.styles.cjs +2 -2
  158. package/dist/cjs/TimePicker/TimePicker.styles.cjs +2 -2
  159. package/dist/cjs/TimePicker/Unit/Unit.styles.cjs +2 -2
  160. package/dist/cjs/Tooltip/Tooltip.cjs +2 -2
  161. package/dist/cjs/Tooltip/Tooltip.styles.cjs +2 -2
  162. package/dist/cjs/TreeView/TreeItem/DefaultContent.cjs +11 -12
  163. package/dist/cjs/TreeView/TreeItem/TreeItem.styles.cjs +2 -2
  164. package/dist/cjs/TreeView/TreeView.styles.cjs +2 -2
  165. package/dist/cjs/Typography/Typography.cjs +2 -2
  166. package/dist/cjs/Typography/Typography.styles.cjs +2 -2
  167. package/dist/cjs/VerticalNavigation/Actions/Action.styles.cjs +2 -2
  168. package/dist/cjs/VerticalNavigation/Actions/Actions.styles.cjs +2 -2
  169. package/dist/cjs/VerticalNavigation/Header/Header.styles.cjs +2 -2
  170. package/dist/cjs/VerticalNavigation/Navigation/Navigation.styles.cjs +2 -2
  171. package/dist/cjs/VerticalNavigation/NavigationPopup/NavigationPopup.styles.cjs +2 -2
  172. package/dist/cjs/VerticalNavigation/NavigationPopup/NavigationPopupContainer.cjs +4 -4
  173. package/dist/cjs/VerticalNavigation/NavigationSlider/NavigationSlider.styles.cjs +2 -2
  174. package/dist/cjs/VerticalNavigation/TreeView/TreeView.styles.cjs +2 -2
  175. package/dist/cjs/VerticalNavigation/TreeView/TreeViewItem.styles.cjs +2 -2
  176. package/dist/cjs/VerticalNavigation/VerticalNavigation.styles.cjs +2 -2
  177. package/dist/cjs/hooks/useDefaultProps.cjs +3 -4
  178. package/dist/cjs/index.cjs +31 -25
  179. package/dist/esm/Accordion/Accordion.styles.js +1 -1
  180. package/dist/esm/ActionBar/ActionBar.styles.js +1 -1
  181. package/dist/esm/ActionsGeneric/ActionsGeneric.js +8 -2
  182. package/dist/esm/ActionsGeneric/ActionsGeneric.js.map +1 -1
  183. package/dist/esm/ActionsGeneric/ActionsGeneric.styles.js +1 -1
  184. package/dist/esm/AppSwitcher/Action/Action.styles.js +1 -1
  185. package/dist/esm/AppSwitcher/AppSwitcher.styles.js +1 -1
  186. package/dist/esm/Avatar/Avatar.styles.js +1 -1
  187. package/dist/esm/AvatarGroup/AvatarGroup.js +2 -1
  188. package/dist/esm/AvatarGroup/AvatarGroup.js.map +1 -1
  189. package/dist/esm/AvatarGroup/AvatarGroup.styles.js +1 -1
  190. package/dist/esm/Badge/Badge.styles.js +1 -1
  191. package/dist/esm/Banner/Banner.styles.js +1 -1
  192. package/dist/esm/Banner/BannerContent/ActionContainer/ActionContainer.styles.js +1 -1
  193. package/dist/esm/Banner/BannerContent/BannerContent.styles.js +1 -1
  194. package/dist/esm/Banner/BannerContent/MessageContainer/MessageContainer.styles.js +1 -1
  195. package/dist/esm/BaseCheckBox/BaseCheckBox.styles.js +1 -1
  196. package/dist/esm/BaseDropdown/BaseDropdown.js +1 -1
  197. package/dist/esm/BaseDropdown/BaseDropdown.js.map +1 -1
  198. package/dist/esm/BaseDropdown/BaseDropdown.styles.js +1 -1
  199. package/dist/esm/BaseInput/BaseInput.styles.js +1 -1
  200. package/dist/esm/BaseRadio/BaseRadio.styles.js +1 -1
  201. package/dist/esm/BaseSwitch/BaseSwitch.styles.js +1 -1
  202. package/dist/esm/BreadCrumb/BreadCrumb.styles.js +1 -1
  203. package/dist/esm/BreadCrumb/Page/Page.styles.js +1 -1
  204. package/dist/esm/BreadCrumb/PathElement/PathElement.styles.js +1 -1
  205. package/dist/esm/BulkActions/BulkActions.js +1 -1
  206. package/dist/esm/BulkActions/BulkActions.js.map +1 -1
  207. package/dist/esm/BulkActions/BulkActions.styles.js +1 -1
  208. package/dist/esm/Button/Button.js +1 -1
  209. package/dist/esm/Button/Button.js.map +1 -1
  210. package/dist/esm/Button/Button.styles.js +1 -1
  211. package/dist/esm/Calendar/Calendar.styles.js +1 -1
  212. package/dist/esm/Calendar/CalendarHeader/CalendarHeader.styles.js +1 -1
  213. package/dist/esm/Calendar/CalendarNavigation/ComposedNavigation/ComposedNavigation.styles.js +1 -1
  214. package/dist/esm/Calendar/CalendarNavigation/MonthSelector/MonthSelector.styles.js +1 -1
  215. package/dist/esm/Calendar/CalendarNavigation/Navigation/Navigation.styles.js +1 -1
  216. package/dist/esm/Calendar/SingleCalendar/CalendarCell.styles.js +1 -1
  217. package/dist/esm/Calendar/SingleCalendar/SingleCalendar.styles.js +1 -1
  218. package/dist/esm/Card/Card.styles.js +1 -1
  219. package/dist/esm/Card/Content/Content.styles.js +1 -1
  220. package/dist/esm/Card/Header/Header.styles.js +1 -1
  221. package/dist/esm/Card/Media/Media.styles.js +1 -1
  222. package/dist/esm/Carousel/Carousel.js +1 -1
  223. package/dist/esm/Carousel/Carousel.js.map +1 -1
  224. package/dist/esm/Carousel/Carousel.styles.js +1 -1
  225. package/dist/esm/Carousel/CarouselSlide/CarouselSlide.styles.js +1 -1
  226. package/dist/esm/CheckBox/CheckBox.styles.js +1 -1
  227. package/dist/esm/CheckBoxGroup/CheckBoxGroup.styles.js +1 -1
  228. package/dist/esm/ColorPicker/ColorPicker.styles.js +1 -1
  229. package/dist/esm/ColorPicker/Fields/Fields.styles.js +1 -1
  230. package/dist/esm/ColorPicker/Picker/Picker.js +1 -1
  231. package/dist/esm/ColorPicker/Picker/Picker.js.map +1 -1
  232. package/dist/esm/ColorPicker/Picker/Picker.styles.js +1 -1
  233. package/dist/esm/ColorPicker/PresetColors/PresetColors.styles.js +1 -1
  234. package/dist/esm/ColorPicker/SavedColors/SavedColors.styles.js +1 -1
  235. package/dist/esm/Container/Container.styles.js +1 -1
  236. package/dist/esm/Controls/Controls.js.map +1 -1
  237. package/dist/esm/Controls/Controls.styles.js +1 -1
  238. package/dist/esm/Controls/LeftControl/LeftControl.styles.js +1 -1
  239. package/dist/esm/Controls/RightControl/RightControl.styles.js +1 -1
  240. package/dist/esm/DatePicker/DatePicker.styles.js +1 -1
  241. package/dist/esm/Dialog/Actions/Actions.styles.js +1 -1
  242. package/dist/esm/Dialog/Content/Content.styles.js +1 -1
  243. package/dist/esm/Dialog/Dialog.js +1 -1
  244. package/dist/esm/Dialog/Dialog.js.map +1 -1
  245. package/dist/esm/Dialog/Dialog.styles.js +1 -1
  246. package/dist/esm/Dialog/Title/Title.styles.js +1 -1
  247. package/dist/esm/DotPagination/DotPagination.styles.js +1 -1
  248. package/dist/esm/Drawer/Drawer.styles.js +1 -1
  249. package/dist/esm/DropDownMenu/DropDownMenu.js +7 -1
  250. package/dist/esm/DropDownMenu/DropDownMenu.js.map +1 -1
  251. package/dist/esm/DropDownMenu/DropDownMenu.styles.js +1 -1
  252. package/dist/esm/Dropdown/Dropdown.styles.js +1 -1
  253. package/dist/esm/Dropdown/List/List.styles.js +1 -1
  254. package/dist/esm/DropdownButton/DropdownButton.styles.js +1 -1
  255. package/dist/esm/EmptyState/EmptyState.styles.js +1 -1
  256. package/dist/esm/FileUploader/DropZone/DropZone.styles.js +1 -1
  257. package/dist/esm/FileUploader/File/File.styles.js +1 -1
  258. package/dist/esm/FileUploader/FileList/FileList.styles.js +1 -1
  259. package/dist/esm/FileUploader/Preview/Preview.styles.js +1 -1
  260. package/dist/esm/FilterGroup/Counter/Counter.styles.js +1 -1
  261. package/dist/esm/FilterGroup/FilterContent/FilterContent.js +1 -1
  262. package/dist/esm/FilterGroup/FilterContent/FilterContent.js.map +1 -1
  263. package/dist/esm/FilterGroup/FilterContent/FilterContent.styles.js +1 -1
  264. package/dist/esm/FilterGroup/FilterGroup.styles.js +1 -1
  265. package/dist/esm/FilterGroup/LeftPanel/LeftPanel.styles.js +1 -1
  266. package/dist/esm/FilterGroup/RightPanel/RightPanel.styles.js +1 -1
  267. package/dist/esm/Focus/Focus.styles.js +1 -1
  268. package/dist/esm/Footer/Footer.styles.js +1 -1
  269. package/dist/esm/Forms/Adornment/Adornment.styles.js +1 -1
  270. package/dist/esm/Forms/CharCounter/CharCounter.styles.js +1 -1
  271. package/dist/esm/Forms/FormElement/FormElement.styles.js +1 -1
  272. package/dist/esm/Forms/FormElement/utils/FormUtils.js.map +1 -1
  273. package/dist/esm/Forms/InfoMessage/InfoMessage.styles.js +1 -1
  274. package/dist/esm/Forms/Label/Label.styles.js +1 -1
  275. package/dist/esm/Forms/Suggestions/Suggestions.styles.js +1 -1
  276. package/dist/esm/Forms/WarningText/WarningText.styles.js +1 -1
  277. package/dist/esm/GlobalActions/GlobalActions.styles.js +1 -1
  278. package/dist/esm/GlobalActions/GlobalActions.styles.js.map +1 -1
  279. package/dist/esm/Grid/Grid.styles.js +1 -1
  280. package/dist/esm/Header/Actions/Actions.styles.js +1 -1
  281. package/dist/esm/Header/Brand/Brand.styles.js +1 -1
  282. package/dist/esm/Header/Header.styles.js +1 -1
  283. package/dist/esm/Header/Navigation/MenuBar/Bar.styles.js +1 -1
  284. package/dist/esm/Header/Navigation/MenuItem/MenuItem.styles.js +1 -1
  285. package/dist/esm/Header/Navigation/Navigation.styles.js +1 -1
  286. package/dist/esm/InlineEditor/InlineEditor.js +1 -1
  287. package/dist/esm/InlineEditor/InlineEditor.js.map +1 -1
  288. package/dist/esm/InlineEditor/InlineEditor.styles.js +1 -1
  289. package/dist/esm/Input/Input.styles.js +1 -1
  290. package/dist/esm/Kpi/Kpi.styles.js +1 -1
  291. package/dist/esm/Link/Link.styles.js +1 -1
  292. package/dist/esm/List/List.styles.js +1 -1
  293. package/dist/esm/ListContainer/ListContainer.styles.js +1 -1
  294. package/dist/esm/ListContainer/ListItem/ListItem.styles.js +1 -1
  295. package/dist/esm/Loading/Loading.styles.js +1 -1
  296. package/dist/esm/LoadingContainer/LoadingContainer.styles.js +1 -1
  297. package/dist/esm/Login/Login.styles.js +1 -1
  298. package/dist/esm/MultiButton/MultiButton.styles.js +1 -1
  299. package/dist/esm/OverflowTooltip/OverflowTooltip.styles.js +1 -1
  300. package/dist/esm/Pagination/Pagination.styles.js +1 -1
  301. package/dist/esm/Pagination/Select.styles.js +1 -1
  302. package/dist/esm/Panel/Panel.styles.js +1 -1
  303. package/dist/esm/ProgressBar/ProgressBar.styles.js +1 -1
  304. package/dist/esm/QueryBuilder/ConfirmationDialog/ConfirmationDialog.styles.js +1 -1
  305. package/dist/esm/QueryBuilder/QueryBuilder.styles.js +1 -1
  306. package/dist/esm/QueryBuilder/Rule/Rule.styles.js +1 -1
  307. package/dist/esm/QueryBuilder/Rule/Value/DateTimeValue/DateTimeValue.styles.js +1 -1
  308. package/dist/esm/QueryBuilder/Rule/Value/NumericValue/Numeric.styles.js +1 -1
  309. package/dist/esm/QueryBuilder/Rule/Value/TextValue/TextValue.styles.js +1 -1
  310. package/dist/esm/Radio/Radio.styles.js +1 -1
  311. package/dist/esm/RadioGroup/RadioGroup.styles.js +1 -1
  312. package/dist/esm/ScrollTo/Horizontal/HorizontalScrollListItem/HorizontalScrollListItem.styles.js +1 -1
  313. package/dist/esm/ScrollTo/Horizontal/ScrollToHorizontal.styles.js +1 -1
  314. package/dist/esm/ScrollTo/Vertical/ScrollToVertical.styles.js +1 -1
  315. package/dist/esm/ScrollTo/Vertical/VerticalScrollListItem/VerticalScrollListItem.styles.js +1 -1
  316. package/dist/esm/Section/Section.styles.js +1 -1
  317. package/dist/esm/Select/Option.js +1 -1
  318. package/dist/esm/Select/OptionGroup.js +1 -1
  319. package/dist/esm/Select/Select.js +1 -1
  320. package/dist/esm/Select/Select.js.map +1 -1
  321. package/dist/esm/Select/Select.styles.js +1 -1
  322. package/dist/esm/SelectionList/SelectionList.styles.js +1 -1
  323. package/dist/esm/SimpleGrid/SimpleGrid.styles.js +1 -1
  324. package/dist/esm/SimpleGrid/SimpleGrid.styles.js.map +1 -1
  325. package/dist/esm/Skeleton/Skeleton.styles.js +1 -1
  326. package/dist/esm/Slider/Slider.styles.js +1 -1
  327. package/dist/esm/Slider/SliderInput/SliderInput.styles.js +1 -1
  328. package/dist/esm/Snackbar/Snackbar.styles.js +1 -1
  329. package/dist/esm/Snackbar/SnackbarContent/SnackbarContent.js +1 -1
  330. package/dist/esm/Snackbar/SnackbarContent/SnackbarContent.js.map +1 -1
  331. package/dist/esm/Snackbar/SnackbarContent/SnackbarContent.styles.js +1 -1
  332. package/dist/esm/SnackbarProvider/SnackbarProvider.styles.js +1 -1
  333. package/dist/esm/Stack/Stack.styles.js +1 -1
  334. package/dist/esm/Switch/Switch.styles.js +1 -1
  335. package/dist/esm/Tab/Tab.styles.js +1 -1
  336. package/dist/esm/Table/Table.styles.js +1 -1
  337. package/dist/esm/Table/TableBody/TableBody.styles.js +1 -1
  338. package/dist/esm/Table/TableCell/TableCell.styles.js +1 -1
  339. package/dist/esm/Table/TableContainer/TableContainer.styles.js +1 -1
  340. package/dist/esm/Table/TableHead/TableHead.styles.js +1 -1
  341. package/dist/esm/Table/TableHeader/TableHeader.js +1 -1
  342. package/dist/esm/Table/TableHeader/TableHeader.js.map +1 -1
  343. package/dist/esm/Table/TableHeader/TableHeader.styles.js +1 -1
  344. package/dist/esm/Table/TableRow/TableRow.styles.js +1 -1
  345. package/dist/esm/Table/renderers/ProgressColumnCell/ProgressColumnCell.styles.js +1 -1
  346. package/dist/esm/Table/renderers/SwitchColumnCell/SwitchColumnCell.styles.js +1 -1
  347. package/dist/esm/TableSection/TableSection.styles.js +1 -1
  348. package/dist/esm/Tabs/Tabs.styles.js +1 -1
  349. package/dist/esm/Tag/Tag.js +1 -1
  350. package/dist/esm/Tag/Tag.js.map +1 -1
  351. package/dist/esm/Tag/Tag.styles.js +1 -1
  352. package/dist/esm/TagsInput/TagsInput.styles.js +1 -1
  353. package/dist/esm/TextArea/TextArea.styles.js +1 -1
  354. package/dist/esm/TimeAgo/TimeAgo.styles.js +1 -1
  355. package/dist/esm/TimePicker/TimePicker.styles.js +1 -1
  356. package/dist/esm/TimePicker/Unit/Unit.styles.js +1 -1
  357. package/dist/esm/Tooltip/Tooltip.js +1 -1
  358. package/dist/esm/Tooltip/Tooltip.js.map +1 -1
  359. package/dist/esm/Tooltip/Tooltip.styles.js +1 -1
  360. package/dist/esm/TreeView/TreeItem/DefaultContent.js +1 -2
  361. package/dist/esm/TreeView/TreeItem/DefaultContent.js.map +1 -1
  362. package/dist/esm/TreeView/TreeItem/TreeItem.styles.js +1 -1
  363. package/dist/esm/TreeView/TreeView.styles.js +1 -1
  364. package/dist/esm/Typography/Typography.js +1 -1
  365. package/dist/esm/Typography/Typography.js.map +1 -1
  366. package/dist/esm/Typography/Typography.styles.js +1 -1
  367. package/dist/esm/VerticalNavigation/Actions/Action.styles.js +1 -1
  368. package/dist/esm/VerticalNavigation/Actions/Actions.styles.js +1 -1
  369. package/dist/esm/VerticalNavigation/Header/Header.styles.js +1 -1
  370. package/dist/esm/VerticalNavigation/Navigation/Navigation.styles.js +1 -1
  371. package/dist/esm/VerticalNavigation/NavigationPopup/NavigationPopup.styles.js +1 -1
  372. package/dist/esm/VerticalNavigation/NavigationPopup/NavigationPopupContainer.js +2 -2
  373. package/dist/esm/VerticalNavigation/NavigationPopup/NavigationPopupContainer.js.map +1 -1
  374. package/dist/esm/VerticalNavigation/NavigationSlider/NavigationSlider.styles.js +1 -1
  375. package/dist/esm/VerticalNavigation/TreeView/TreeView.styles.js +1 -1
  376. package/dist/esm/VerticalNavigation/TreeView/TreeViewItem.styles.js +1 -1
  377. package/dist/esm/VerticalNavigation/VerticalNavigation.styles.js +1 -1
  378. package/dist/esm/hooks/useDefaultProps.js +1 -2
  379. package/dist/esm/hooks/useDefaultProps.js.map +1 -1
  380. package/dist/esm/index.js +3 -6
  381. package/dist/esm/index.js.map +1 -1
  382. package/dist/esm/types/generic.js.map +1 -1
  383. package/dist/types/index.d.ts +118 -135
  384. package/package.json +5 -7
  385. package/dist/cjs/hooks/useCss.cjs +0 -53
  386. package/dist/cjs/hooks/useEmotionCache.cjs +0 -11
  387. package/dist/cjs/hooks/useTheme.cjs +0 -15
  388. package/dist/cjs/utils/classes.cjs +0 -52
  389. package/dist/esm/hooks/useCss.js +0 -51
  390. package/dist/esm/hooks/useCss.js.map +0 -1
  391. package/dist/esm/hooks/useEmotionCache.js +0 -11
  392. package/dist/esm/hooks/useEmotionCache.js.map +0 -1
  393. package/dist/esm/hooks/useTheme.js +0 -15
  394. package/dist/esm/hooks/useTheme.js.map +0 -1
  395. package/dist/esm/utils/classes.js +0 -52
  396. package/dist/esm/utils/classes.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"TableHeader.js","sources":["../../../../src/Table/TableHeader/TableHeader.tsx"],"sourcesContent":["import { forwardRef, useContext, useMemo } from \"react\";\nimport { alpha, hexToRgb } from \"@mui/material/styles\";\nimport { theme } from \"@hitachivantara/uikit-styles\";\n\nimport { HvButton, HvButtonProps } from \"../../Button\";\nimport { useDefaultProps } from \"../../hooks/useDefaultProps\";\nimport { useTheme } from \"../../hooks/useTheme\";\nimport { HvTypography, HvTypographyProps } from \"../../Typography\";\nimport { ExtractNames } from \"../../utils/classes\";\nimport { capitalize } from \"../../utils/helpers\";\nimport {\n HvTableCellAlign,\n HvTableCellType,\n HvTableCellVariant,\n} from \"../Table\";\nimport TableContext from \"../TableContext\";\nimport TableSectionContext from \"../TableSectionContext\";\nimport { staticClasses, useClasses } from \"./TableHeader.styles\";\nimport { getSortIcon, isParagraph } from \"./utils\";\n\nexport { staticClasses as tableHeaderClasses };\n\nexport type HvTableHeaderClasses = ExtractNames<typeof useClasses>;\n\nexport interface HvTableHeaderProps\n extends Omit<React.ThHTMLAttributes<HTMLTableCellElement>, \"align\"> {\n /** The component used for the root node. Either a string to use a HTML element or a component. Defaults to th. */\n component?: React.ElementType;\n /** Content to be rendered */\n children?: React.ReactNode;\n /** The scope of cells that the header element relates to. */\n scope?: \"col\" | \"row\" | \"colgroup\" | \"rowgroup\";\n /** Set the text-align on the table cell content. */\n align?: HvTableCellAlign;\n /** Sets the cell's variant. */\n variant?: HvTableCellVariant;\n /** Specify the cell type. The prop defaults to the value inherited from the parent TableHead, TableBody, or TableFooter components. */\n type?: HvTableCellType;\n /** The cell is part of a sticky column. */\n stickyColumn?: boolean;\n /** The cell is part of the last sticky to the left column. */\n stickyColumnMostLeft?: boolean;\n /** The cell is part of the first sticky to the right column. */\n stickyColumnLeastRight?: boolean;\n /** The cell is part of the first column in the group. */\n groupColumnMostLeft?: boolean;\n /** The cell is part of the last column in the group. */\n groupColumnMostRight?: boolean;\n /** Whether or not the cell is sorted */\n sorted?: boolean;\n /** Whether or not the cell is sortable */\n sortable?: boolean;\n /** Set sort direction icon and aria-sort. */\n sortDirection?: \"ascending\" | \"descending\" | false;\n /** Extra props to be passed onto the text in the header. */\n headerTextProps?: HvTypographyProps;\n /** Whether or not the cell is resizable */\n resizable?: boolean;\n /** Whether or not the cell is being resized */\n resizing?: boolean;\n /** The resize props injected in the resize handler */\n resizerProps?: React.HTMLAttributes<HTMLDivElement>;\n /** A Jss Object used to override or extend the styles applied to the component. */\n classes?: HvTableHeaderClasses;\n /** Extra props to be passed onto the sort button in the header. */\n sortButtonProps?: HvButtonProps;\n}\n\nconst defaultComponent = \"th\";\n\n/**\n * `HvTableHeader` acts as a `th` element and inherits styles from its context\n */\nexport const HvTableHeader = forwardRef<HTMLElement, HvTableHeaderProps>(\n (props, externalRef) => {\n const {\n children,\n component,\n className,\n style: styleProp,\n classes: classesProp,\n scope: scopeProp,\n align = \"inherit\",\n variant = \"default\",\n type: typeProp,\n stickyColumn = false,\n stickyColumnMostLeft = false,\n stickyColumnLeastRight = false,\n groupColumnMostLeft = false,\n groupColumnMostRight = false,\n sortDirection = \"none\",\n sorted,\n sortable,\n headerTextProps,\n resizerProps = {},\n resizable = false,\n resizing = false,\n sortButtonProps,\n ...others\n } = useDefaultProps(\"HvTableHeader\", props);\n const { classes, cx, css } = useClasses(classesProp);\n\n const { colors } = useTheme();\n const tableContext = useContext(TableContext);\n const tableSectionContext = useContext(TableSectionContext);\n\n const type = typeProp || tableSectionContext?.type || \"body\";\n const isHeadCell = type === \"head\";\n\n const scope = scopeProp ?? (isHeadCell ? \"col\" : \"row\");\n\n const Sort = useMemo(\n () => getSortIcon(sorted && sortDirection),\n [sorted, sortDirection],\n );\n\n const Component =\n component || tableContext?.components?.Th || defaultComponent;\n\n const role =\n Component === defaultComponent\n ? null\n : isHeadCell\n ? \"columnheader\"\n : \"rowheader\";\n const paragraph = isParagraph(children);\n\n // Keep the header sticky\n const style = stickyColumn\n ? { ...styleProp, position: \"sticky\" }\n : styleProp;\n\n return (\n <Component\n ref={externalRef}\n role={role}\n scope={scope}\n style={style}\n className={cx(\n classes.root,\n classes[type as keyof HvTableHeaderClasses],\n type === \"body\" &&\n css({\n [`&.${staticClasses.sorted}`]: {\n backgroundColor: alpha(\n hexToRgb(colors?.atmo1 || theme.colors.atmo1),\n 0.4,\n ),\n },\n }),\n {\n [classes.groupColumnMostLeft]: groupColumnMostLeft,\n [classes.groupColumnMostRight]: groupColumnMostRight,\n [classes.sortable]: sortable,\n [classes.sorted]: sorted,\n [classes.resizable]: resizable,\n [classes.resizing]: resizing,\n [classes.stickyColumn]: stickyColumn,\n [classes.stickyColumnMostLeft]: stickyColumnMostLeft,\n [classes.stickyColumnLeastRight]: stickyColumnLeastRight,\n [classes.variantList]: tableContext.variant === \"listrow\",\n [classes[\n `align${capitalize(align)}` as keyof HvTableHeaderClasses\n ]]: align !== \"inherit\",\n [classes[\n `variant${capitalize(variant)}` as keyof HvTableHeaderClasses\n ]]: variant !== \"default\",\n },\n className,\n )}\n aria-sort={sortable ? sortDirection : undefined}\n {...others}\n >\n <div\n className={cx(classes.headerContent, {\n [classes[\n `alignFlex${capitalize(align)}` as keyof HvTableHeaderClasses\n ]]: align !== \"inherit\",\n })}\n >\n {isHeadCell && sortable && (\n <HvButton\n className={classes.sortButton}\n icon\n overrideIconColors={false}\n aria-label=\"Sort\"\n {...sortButtonProps}\n >\n <Sort className={classes.sortIcon} />\n </HvButton>\n )}\n <HvTypography\n component=\"div\"\n className={cx({\n [classes.headerText]: !paragraph,\n [classes.headerParagraph]: paragraph,\n [classes.sortableHeaderText]: sortable,\n })}\n variant=\"label\"\n {...headerTextProps}\n >\n {children}\n </HvTypography>\n {resizable && <div {...resizerProps} className={classes.resizer} />}\n </div>\n </Component>\n );\n },\n);\n"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"TableHeader.js","sources":["../../../../src/Table/TableHeader/TableHeader.tsx"],"sourcesContent":["import { forwardRef, useContext, useMemo } from \"react\";\nimport { alpha, hexToRgb } from \"@mui/material/styles\";\nimport { useTheme } from \"@hitachivantara/uikit-react-shared\";\nimport { theme } from \"@hitachivantara/uikit-styles\";\n\nimport { HvButton, HvButtonProps } from \"../../Button\";\nimport { useDefaultProps } from \"../../hooks/useDefaultProps\";\nimport { HvTypography, HvTypographyProps } from \"../../Typography\";\nimport { ExtractNames } from \"../../utils/classes\";\nimport { capitalize } from \"../../utils/helpers\";\nimport {\n HvTableCellAlign,\n HvTableCellType,\n HvTableCellVariant,\n} from \"../Table\";\nimport TableContext from \"../TableContext\";\nimport TableSectionContext from \"../TableSectionContext\";\nimport { staticClasses, useClasses } from \"./TableHeader.styles\";\nimport { getSortIcon, isParagraph } from \"./utils\";\n\nexport { staticClasses as tableHeaderClasses };\n\nexport type HvTableHeaderClasses = ExtractNames<typeof useClasses>;\n\nexport interface HvTableHeaderProps\n extends Omit<React.ThHTMLAttributes<HTMLTableCellElement>, \"align\"> {\n /** The component used for the root node. Either a string to use a HTML element or a component. Defaults to th. */\n component?: React.ElementType;\n /** Content to be rendered */\n children?: React.ReactNode;\n /** The scope of cells that the header element relates to. */\n scope?: \"col\" | \"row\" | \"colgroup\" | \"rowgroup\";\n /** Set the text-align on the table cell content. */\n align?: HvTableCellAlign;\n /** Sets the cell's variant. */\n variant?: HvTableCellVariant;\n /** Specify the cell type. The prop defaults to the value inherited from the parent TableHead, TableBody, or TableFooter components. */\n type?: HvTableCellType;\n /** The cell is part of a sticky column. */\n stickyColumn?: boolean;\n /** The cell is part of the last sticky to the left column. */\n stickyColumnMostLeft?: boolean;\n /** The cell is part of the first sticky to the right column. */\n stickyColumnLeastRight?: boolean;\n /** The cell is part of the first column in the group. */\n groupColumnMostLeft?: boolean;\n /** The cell is part of the last column in the group. */\n groupColumnMostRight?: boolean;\n /** Whether or not the cell is sorted */\n sorted?: boolean;\n /** Whether or not the cell is sortable */\n sortable?: boolean;\n /** Set sort direction icon and aria-sort. */\n sortDirection?: \"ascending\" | \"descending\" | false;\n /** Extra props to be passed onto the text in the header. */\n headerTextProps?: HvTypographyProps;\n /** Whether or not the cell is resizable */\n resizable?: boolean;\n /** Whether or not the cell is being resized */\n resizing?: boolean;\n /** The resize props injected in the resize handler */\n resizerProps?: React.HTMLAttributes<HTMLDivElement>;\n /** A Jss Object used to override or extend the styles applied to the component. */\n classes?: HvTableHeaderClasses;\n /** Extra props to be passed onto the sort button in the header. */\n sortButtonProps?: HvButtonProps;\n}\n\nconst defaultComponent = \"th\";\n\n/**\n * `HvTableHeader` acts as a `th` element and inherits styles from its context\n */\nexport const HvTableHeader = forwardRef<HTMLElement, HvTableHeaderProps>(\n (props, externalRef) => {\n const {\n children,\n component,\n className,\n style: styleProp,\n classes: classesProp,\n scope: scopeProp,\n align = \"inherit\",\n variant = \"default\",\n type: typeProp,\n stickyColumn = false,\n stickyColumnMostLeft = false,\n stickyColumnLeastRight = false,\n groupColumnMostLeft = false,\n groupColumnMostRight = false,\n sortDirection = \"none\",\n sorted,\n sortable,\n headerTextProps,\n resizerProps = {},\n resizable = false,\n resizing = false,\n sortButtonProps,\n ...others\n } = useDefaultProps(\"HvTableHeader\", props);\n const { classes, cx, css } = useClasses(classesProp);\n\n const { colors } = useTheme();\n const tableContext = useContext(TableContext);\n const tableSectionContext = useContext(TableSectionContext);\n\n const type = typeProp || tableSectionContext?.type || \"body\";\n const isHeadCell = type === \"head\";\n\n const scope = scopeProp ?? (isHeadCell ? \"col\" : \"row\");\n\n const Sort = useMemo(\n () => getSortIcon(sorted && sortDirection),\n [sorted, sortDirection],\n );\n\n const Component =\n component || tableContext?.components?.Th || defaultComponent;\n\n const role =\n Component === defaultComponent\n ? null\n : isHeadCell\n ? \"columnheader\"\n : \"rowheader\";\n const paragraph = isParagraph(children);\n\n // Keep the header sticky\n const style = stickyColumn\n ? { ...styleProp, position: \"sticky\" }\n : styleProp;\n\n return (\n <Component\n ref={externalRef}\n role={role}\n scope={scope}\n style={style}\n className={cx(\n classes.root,\n classes[type as keyof HvTableHeaderClasses],\n type === \"body\" &&\n css({\n [`&.${staticClasses.sorted}`]: {\n backgroundColor: alpha(\n hexToRgb(colors?.atmo1 || theme.colors.atmo1),\n 0.4,\n ),\n },\n }),\n {\n [classes.groupColumnMostLeft]: groupColumnMostLeft,\n [classes.groupColumnMostRight]: groupColumnMostRight,\n [classes.sortable]: sortable,\n [classes.sorted]: sorted,\n [classes.resizable]: resizable,\n [classes.resizing]: resizing,\n [classes.stickyColumn]: stickyColumn,\n [classes.stickyColumnMostLeft]: stickyColumnMostLeft,\n [classes.stickyColumnLeastRight]: stickyColumnLeastRight,\n [classes.variantList]: tableContext.variant === \"listrow\",\n [classes[\n `align${capitalize(align)}` as keyof HvTableHeaderClasses\n ]]: align !== \"inherit\",\n [classes[\n `variant${capitalize(variant)}` as keyof HvTableHeaderClasses\n ]]: variant !== \"default\",\n },\n className,\n )}\n aria-sort={sortable ? sortDirection : undefined}\n {...others}\n >\n <div\n className={cx(classes.headerContent, {\n [classes[\n `alignFlex${capitalize(align)}` as keyof HvTableHeaderClasses\n ]]: align !== \"inherit\",\n })}\n >\n {isHeadCell && sortable && (\n <HvButton\n className={classes.sortButton}\n icon\n overrideIconColors={false}\n aria-label=\"Sort\"\n {...sortButtonProps}\n >\n <Sort className={classes.sortIcon} />\n </HvButton>\n )}\n <HvTypography\n component=\"div\"\n className={cx({\n [classes.headerText]: !paragraph,\n [classes.headerParagraph]: paragraph,\n [classes.sortableHeaderText]: sortable,\n })}\n variant=\"label\"\n {...headerTextProps}\n >\n {children}\n </HvTypography>\n {resizable && <div {...resizerProps} className={classes.resizer} />}\n </div>\n </Component>\n );\n },\n);\n"],"names":[],"mappings":"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"}
@@ -1,5 +1,5 @@
1
1
  import { theme } from "@hitachivantara/uikit-styles";
2
- import { createClasses } from "../../utils/classes.js";
2
+ import { createClasses } from "@hitachivantara/uikit-react-shared";
3
3
  const { staticClasses, useClasses } = createClasses("HvTableHeader", {
4
4
  root: {
5
5
  "--first-row-cell-height": "52px",
@@ -1,6 +1,6 @@
1
1
  import { theme } from "@hitachivantara/uikit-styles";
2
- import { createClasses } from "../../utils/classes.js";
3
2
  import { getBorderStyles } from "../utils/utils.js";
3
+ import { createClasses } from "@hitachivantara/uikit-react-shared";
4
4
  const { staticClasses, useClasses } = createClasses("HvTableRow", {
5
5
  /** Styles applied to the component root class. */
6
6
  root: {
@@ -1,5 +1,5 @@
1
1
  import { theme } from "@hitachivantara/uikit-styles";
2
- import { createClasses } from "../../../utils/classes.js";
2
+ import { createClasses } from "@hitachivantara/uikit-react-shared";
3
3
  const { staticClasses, useClasses } = createClasses(
4
4
  "HvTable-ProgressColumnCell",
5
5
  {
@@ -1,4 +1,4 @@
1
- import { createClasses } from "../../../utils/classes.js";
1
+ import { createClasses } from "@hitachivantara/uikit-react-shared";
2
2
  const switchStyle = {
3
3
  cursor: "pointer",
4
4
  display: "inline-flex",
@@ -1,5 +1,4 @@
1
1
  import { theme } from "@hitachivantara/uikit-styles";
2
- import { createClasses } from "../utils/classes.js";
3
2
  import { staticClasses as staticClasses$1 } from "../Table/TableContainer/TableContainer.styles.js";
4
3
  import "../Table/TableContainer/TableContainer.js";
5
4
  import { staticClasses as staticClasses$2 } from "../Table/TableHeader/TableHeader.styles.js";
@@ -10,6 +9,7 @@ import { staticClasses as staticClasses$4 } from "../Table/TableCell/TableCell.s
10
9
  import "../Table/TableCell/TableCell.js";
11
10
  import { staticClasses as staticClasses$5 } from "../BulkActions/BulkActions.styles.js";
12
11
  import "react/jsx-runtime";
12
+ import { createClasses } from "@hitachivantara/uikit-react-shared";
13
13
  import { staticClasses as staticClasses$6 } from "../Pagination/Pagination.styles.js";
14
14
  import "react";
15
15
  import "@mui/material/Hidden";
@@ -1,5 +1,5 @@
1
1
  import { theme } from "@hitachivantara/uikit-styles";
2
- import { createClasses } from "../utils/classes.js";
2
+ import { createClasses } from "@hitachivantara/uikit-react-shared";
3
3
  const { staticClasses, useClasses } = createClasses("HvTabs", {
4
4
  root: {
5
5
  minHeight: 0,
@@ -2,10 +2,10 @@ import { jsx } from "react/jsx-runtime";
2
2
  import { forwardRef } from "react";
3
3
  import Chip from "@mui/material/Chip";
4
4
  import { CloseXS, CheckboxCheck, Checkbox } from "@hitachivantara/uikit-react-icons";
5
+ import { useTheme } from "@hitachivantara/uikit-react-shared";
5
6
  import { getColor } from "@hitachivantara/uikit-styles";
6
7
  import { useControlled } from "../hooks/useControlled.js";
7
8
  import { useDefaultProps } from "../hooks/useDefaultProps.js";
8
- import { useTheme } from "../hooks/useTheme.js";
9
9
  import { useClasses } from "./Tag.styles.js";
10
10
  import { staticClasses } from "./Tag.styles.js";
11
11
  const getCategoricalColor = (customColor, colors) => {
@@ -1 +1 @@
1
- {"version":3,"file":"Tag.js","sources":["../../../src/Tag/Tag.tsx"],"sourcesContent":["import { forwardRef } from \"react\";\nimport Chip, { ChipProps as MuiChipProps } from \"@mui/material/Chip\";\nimport {\n Checkbox,\n CheckboxCheck,\n CloseXS,\n} from \"@hitachivantara/uikit-react-icons\";\nimport { getColor, HvColorAny } from \"@hitachivantara/uikit-styles\";\n\nimport { useControlled } from \"../hooks/useControlled\";\nimport { useDefaultProps } from \"../hooks/useDefaultProps\";\nimport { useTheme } from \"../hooks/useTheme\";\nimport { ExtractNames } from \"../utils/classes\";\nimport { staticClasses, useClasses } from \"./Tag.styles\";\n\nexport { staticClasses as tagClasses };\n\nexport type HvTagClasses = ExtractNames<typeof useClasses>;\n\nexport interface HvTagProps\n extends Omit<MuiChipProps, \"color\" | \"classes\" | \"onSelect\"> {\n /** The label of the tag element. */\n label?: React.ReactNode;\n /** Indicates that the form element is disabled. */\n disabled?: boolean;\n /** The type of the tag element. A tag can be of semantic or categoric type. */\n type?: \"semantic\" | \"categorical\";\n /** Background color to be applied to the tag */\n color?: HvColorAny;\n /** Icon used to customize the delete icon in the Chip element */\n deleteIcon?: React.ReactElement;\n /**\n * The callback fired when the delete icon is pressed.\n * This function has to be provided to the component, in order to render the delete icon\n * */\n onDelete?: (event: React.MouseEvent<HTMLElement>) => void;\n /** Callback triggered when any item is clicked. */\n onClick?: (event: React.MouseEvent<HTMLElement>, selected?: boolean) => void;\n /** Aria properties to apply to delete button in tag\n * @deprecated no longer used\n */\n deleteButtonArialLabel?: string;\n /** Props to apply to delete icon */\n deleteButtonProps?: React.HTMLAttributes<HTMLDivElement>;\n /** A Jss Object used to override or extend the styles applied to the component. */\n classes?: HvTagClasses;\n /** @ignore */\n ref?: MuiChipProps[\"ref\"];\n /** @ignore */\n component?: MuiChipProps[\"component\"];\n /** Determines whether or not the tag is selectable. */\n selectable?: boolean;\n /** Defines if the tag is selected. When defined the tag state becomes controlled. */\n selected?: boolean;\n /** When uncontrolled, defines the initial selected state. */\n defaultSelected?: boolean;\n}\n\nconst getCategoricalColor = (customColor?: HvColorAny, colors?: any) => {\n return (customColor && colors?.[customColor]) || customColor || colors?.cat1;\n};\n\n/**\n * A Tag is one word that describes a specific aspect of an asset. A single asset can have\n * multiple tags.\n * Use tags to highlight an item's status for quick recognition and navigation\n * Use color to indicate meanings that users can learn and recognize across products\n *\n * It leverages the Chip component from Material UI\n */\nexport const HvTag = forwardRef<HTMLDivElement, HvTagProps>((props, ref) => {\n const {\n classes: classesProp,\n className,\n style,\n label,\n disabled,\n type = \"semantic\",\n selectable,\n selected,\n defaultSelected = false,\n color,\n deleteIcon,\n onDelete,\n onClick,\n // TODO: remove from API\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n deleteButtonArialLabel = \"Delete tag\",\n deleteButtonProps = {},\n ...others\n } = useDefaultProps(\"HvTag\", props);\n const { colors } = useTheme();\n const { classes, cx, css } = useClasses(classesProp);\n\n const [isSelected, setIsSelected] = useControlled(\n selected,\n Boolean(defaultSelected),\n );\n\n const defaultDeleteIcon = (\n <CloseXS\n className={cx(classes.button, classes.tagButton)}\n iconSize=\"XS\"\n {...deleteButtonProps}\n />\n );\n\n const categoricalBackgroundColor =\n type === \"categorical\" ? getCategoricalColor(color, colors) : undefined;\n\n const backgroundColor =\n (type === \"semantic\" && getColor(color, \"neutral_20\")) ||\n (type === \"categorical\" && `${categoricalBackgroundColor}30`) ||\n undefined;\n\n const isClickable = !!(onClick || onDelete) && !disabled;\n\n const clickableClass = css({\n \"&:hover\": {\n boxShadow: `0 0 0 1pt ${categoricalBackgroundColor}`,\n },\n });\n\n const colorOverride = (disabled && [\"atmo3\", \"secondary_60\"]) || undefined;\n\n const avatarIcon = isSelected ? (\n <CheckboxCheck color={colorOverride} iconSize=\"XS\" />\n ) : (\n <Checkbox color={colorOverride} iconSize=\"XS\" />\n );\n\n return (\n <Chip\n ref={ref}\n label={label}\n disabled={disabled}\n className={cx({ [clickableClass]: isClickable }, className)}\n style={{\n ...(disabled ? null : { backgroundColor }),\n ...style,\n }}\n classes={{\n root: cx(classes.root, classes.chipRoot, {\n [classes.disabled]: disabled,\n [classes.clickable]: isClickable,\n [classes.categorical]: type === \"categorical\",\n [classes.categoricalFocus]: type === \"categorical\" && !disabled,\n [classes.categoricalDisabled]: type === \"categorical\" && disabled,\n }),\n label: classes.label,\n deleteIcon: cx(classes.deleteIcon, {\n [classes.disabledDeleteIcon]: disabled,\n }),\n }}\n deleteIcon={deleteIcon || defaultDeleteIcon}\n onDelete={disabled ? undefined : onDelete}\n onClick={(event) => {\n if (disabled) return;\n if (selectable) setIsSelected(!isSelected);\n onClick?.(event, !isSelected);\n }}\n aria-pressed={isSelected}\n {...(selectable &&\n type === \"semantic\" && {\n avatar: avatarIcon,\n })}\n {...others}\n />\n );\n});\n"],"names":[],"mappings":";;;;;;;;;;AA0DA,MAAM,sBAAsB,CAAC,aAA0B,WAAiB;AACtE,SAAQ,eAAe,SAAS,WAAW,KAAM,eAAe,QAAQ;AAC1E;AAUO,MAAM,QAAQ,WAAuC,CAAC,OAAO,QAAQ;AACpE,QAAA;AAAA,IACJ,SAAS;AAAA,IACT;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,OAAO;AAAA,IACP;AAAA,IACA;AAAA,IACA,kBAAkB;AAAA,IAClB;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA;AAAA;AAAA,IAGA,yBAAyB;AAAA,IACzB,oBAAoB,CAAC;AAAA,IACrB,GAAG;AAAA,EAAA,IACD,gBAAgB,SAAS,KAAK;AAC5B,QAAA,EAAE,WAAW;AACnB,QAAM,EAAE,SAAS,IAAI,IAAI,IAAI,WAAW,WAAW;AAE7C,QAAA,CAAC,YAAY,aAAa,IAAI;AAAA,IAClC;AAAA,IACA,QAAQ,eAAe;AAAA,EAAA;AAGzB,QAAM,oBACJ;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAW,GAAG,QAAQ,QAAQ,QAAQ,SAAS;AAAA,MAC/C,UAAS;AAAA,MACR,GAAG;AAAA,IAAA;AAAA,EAAA;AAIR,QAAM,6BACJ,SAAS,gBAAgB,oBAAoB,OAAO,MAAM,IAAI;AAE1D,QAAA,kBACH,SAAS,cAAc,SAAS,OAAO,YAAY,KACnD,SAAS,iBAAiB,GAAG,0BAA0B,QACxD;AAEF,QAAM,cAAc,CAAC,EAAE,WAAW,aAAa,CAAC;AAEhD,QAAM,iBAAiB,IAAI;AAAA,IACzB,WAAW;AAAA,MACT,WAAW,aAAa,0BAA0B;AAAA,IACpD;AAAA,EAAA,CACD;AAED,QAAM,gBAAiB,YAAY,CAAC,SAAS,cAAc,KAAM;AAEjE,QAAM,aAAa,aAChB,oBAAA,eAAA,EAAc,OAAO,eAAe,UAAS,KAAK,CAAA,IAElD,oBAAA,UAAA,EAAS,OAAO,eAAe,UAAS,KAAK,CAAA;AAI9C,SAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC;AAAA,MACA;AAAA,MACA;AAAA,MACA,WAAW,GAAG,EAAE,CAAC,cAAc,GAAG,YAAA,GAAe,SAAS;AAAA,MAC1D,OAAO;AAAA,QACL,GAAI,WAAW,OAAO,EAAE,gBAAgB;AAAA,QACxC,GAAG;AAAA,MACL;AAAA,MACA,SAAS;AAAA,QACP,MAAM,GAAG,QAAQ,MAAM,QAAQ,UAAU;AAAA,UACvC,CAAC,QAAQ,QAAQ,GAAG;AAAA,UACpB,CAAC,QAAQ,SAAS,GAAG;AAAA,UACrB,CAAC,QAAQ,WAAW,GAAG,SAAS;AAAA,UAChC,CAAC,QAAQ,gBAAgB,GAAG,SAAS,iBAAiB,CAAC;AAAA,UACvD,CAAC,QAAQ,mBAAmB,GAAG,SAAS,iBAAiB;AAAA,QAAA,CAC1D;AAAA,QACD,OAAO,QAAQ;AAAA,QACf,YAAY,GAAG,QAAQ,YAAY;AAAA,UACjC,CAAC,QAAQ,kBAAkB,GAAG;AAAA,QAAA,CAC/B;AAAA,MACH;AAAA,MACA,YAAY,cAAc;AAAA,MAC1B,UAAU,WAAW,SAAY;AAAA,MACjC,SAAS,CAAC,UAAU;AAClB,YAAI,SAAU;AACV,YAAA,WAA0B,eAAA,CAAC,UAAU;AAC/B,kBAAA,OAAO,CAAC,UAAU;AAAA,MAC9B;AAAA,MACA,gBAAc;AAAA,MACb,GAAI,cACH,SAAS,cAAc;AAAA,QACrB,QAAQ;AAAA,MACV;AAAA,MACD,GAAG;AAAA,IAAA;AAAA,EAAA;AAGV,CAAC;"}
1
+ {"version":3,"file":"Tag.js","sources":["../../../src/Tag/Tag.tsx"],"sourcesContent":["import { forwardRef } from \"react\";\nimport Chip, { ChipProps as MuiChipProps } from \"@mui/material/Chip\";\nimport {\n Checkbox,\n CheckboxCheck,\n CloseXS,\n} from \"@hitachivantara/uikit-react-icons\";\nimport { useTheme } from \"@hitachivantara/uikit-react-shared\";\nimport { getColor, HvColorAny } from \"@hitachivantara/uikit-styles\";\n\nimport { useControlled } from \"../hooks/useControlled\";\nimport { useDefaultProps } from \"../hooks/useDefaultProps\";\nimport { ExtractNames } from \"../utils/classes\";\nimport { staticClasses, useClasses } from \"./Tag.styles\";\n\nexport { staticClasses as tagClasses };\n\nexport type HvTagClasses = ExtractNames<typeof useClasses>;\n\nexport interface HvTagProps\n extends Omit<MuiChipProps, \"color\" | \"classes\" | \"onSelect\"> {\n /** The label of the tag element. */\n label?: React.ReactNode;\n /** Indicates that the form element is disabled. */\n disabled?: boolean;\n /** The type of the tag element. A tag can be of semantic or categoric type. */\n type?: \"semantic\" | \"categorical\";\n /** Background color to be applied to the tag */\n color?: HvColorAny;\n /** Icon used to customize the delete icon in the Chip element */\n deleteIcon?: React.ReactElement;\n /**\n * The callback fired when the delete icon is pressed.\n * This function has to be provided to the component, in order to render the delete icon\n * */\n onDelete?: (event: React.MouseEvent<HTMLElement>) => void;\n /** Callback triggered when any item is clicked. */\n onClick?: (event: React.MouseEvent<HTMLElement>, selected?: boolean) => void;\n /** Aria properties to apply to delete button in tag\n * @deprecated no longer used\n */\n deleteButtonArialLabel?: string;\n /** Props to apply to delete icon */\n deleteButtonProps?: React.HTMLAttributes<HTMLDivElement>;\n /** A Jss Object used to override or extend the styles applied to the component. */\n classes?: HvTagClasses;\n /** @ignore */\n ref?: MuiChipProps[\"ref\"];\n /** @ignore */\n component?: MuiChipProps[\"component\"];\n /** Determines whether or not the tag is selectable. */\n selectable?: boolean;\n /** Defines if the tag is selected. When defined the tag state becomes controlled. */\n selected?: boolean;\n /** When uncontrolled, defines the initial selected state. */\n defaultSelected?: boolean;\n}\n\nconst getCategoricalColor = (customColor?: HvColorAny, colors?: any) => {\n return (customColor && colors?.[customColor]) || customColor || colors?.cat1;\n};\n\n/**\n * A Tag is one word that describes a specific aspect of an asset. A single asset can have\n * multiple tags.\n * Use tags to highlight an item's status for quick recognition and navigation\n * Use color to indicate meanings that users can learn and recognize across products\n *\n * It leverages the Chip component from Material UI\n */\nexport const HvTag = forwardRef<HTMLDivElement, HvTagProps>((props, ref) => {\n const {\n classes: classesProp,\n className,\n style,\n label,\n disabled,\n type = \"semantic\",\n selectable,\n selected,\n defaultSelected = false,\n color,\n deleteIcon,\n onDelete,\n onClick,\n // TODO: remove from API\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n deleteButtonArialLabel = \"Delete tag\",\n deleteButtonProps = {},\n ...others\n } = useDefaultProps(\"HvTag\", props);\n const { colors } = useTheme();\n const { classes, cx, css } = useClasses(classesProp);\n\n const [isSelected, setIsSelected] = useControlled(\n selected,\n Boolean(defaultSelected),\n );\n\n const defaultDeleteIcon = (\n <CloseXS\n className={cx(classes.button, classes.tagButton)}\n iconSize=\"XS\"\n {...deleteButtonProps}\n />\n );\n\n const categoricalBackgroundColor =\n type === \"categorical\" ? getCategoricalColor(color, colors) : undefined;\n\n const backgroundColor =\n (type === \"semantic\" && getColor(color, \"neutral_20\")) ||\n (type === \"categorical\" && `${categoricalBackgroundColor}30`) ||\n undefined;\n\n const isClickable = !!(onClick || onDelete) && !disabled;\n\n const clickableClass = css({\n \"&:hover\": {\n boxShadow: `0 0 0 1pt ${categoricalBackgroundColor}`,\n },\n });\n\n const colorOverride = (disabled && [\"atmo3\", \"secondary_60\"]) || undefined;\n\n const avatarIcon = isSelected ? (\n <CheckboxCheck color={colorOverride} iconSize=\"XS\" />\n ) : (\n <Checkbox color={colorOverride} iconSize=\"XS\" />\n );\n\n return (\n <Chip\n ref={ref}\n label={label}\n disabled={disabled}\n className={cx({ [clickableClass]: isClickable }, className)}\n style={{\n ...(disabled ? null : { backgroundColor }),\n ...style,\n }}\n classes={{\n root: cx(classes.root, classes.chipRoot, {\n [classes.disabled]: disabled,\n [classes.clickable]: isClickable,\n [classes.categorical]: type === \"categorical\",\n [classes.categoricalFocus]: type === \"categorical\" && !disabled,\n [classes.categoricalDisabled]: type === \"categorical\" && disabled,\n }),\n label: classes.label,\n deleteIcon: cx(classes.deleteIcon, {\n [classes.disabledDeleteIcon]: disabled,\n }),\n }}\n deleteIcon={deleteIcon || defaultDeleteIcon}\n onDelete={disabled ? undefined : onDelete}\n onClick={(event) => {\n if (disabled) return;\n if (selectable) setIsSelected(!isSelected);\n onClick?.(event, !isSelected);\n }}\n aria-pressed={isSelected}\n {...(selectable &&\n type === \"semantic\" && {\n avatar: avatarIcon,\n })}\n {...others}\n />\n );\n});\n"],"names":[],"mappings":";;;;;;;;;;AA0DA,MAAM,sBAAsB,CAAC,aAA0B,WAAiB;AACtE,SAAQ,eAAe,SAAS,WAAW,KAAM,eAAe,QAAQ;AAC1E;AAUO,MAAM,QAAQ,WAAuC,CAAC,OAAO,QAAQ;AACpE,QAAA;AAAA,IACJ,SAAS;AAAA,IACT;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,OAAO;AAAA,IACP;AAAA,IACA;AAAA,IACA,kBAAkB;AAAA,IAClB;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA;AAAA;AAAA,IAGA,yBAAyB;AAAA,IACzB,oBAAoB,CAAC;AAAA,IACrB,GAAG;AAAA,EAAA,IACD,gBAAgB,SAAS,KAAK;AAC5B,QAAA,EAAE,WAAW;AACnB,QAAM,EAAE,SAAS,IAAI,IAAI,IAAI,WAAW,WAAW;AAE7C,QAAA,CAAC,YAAY,aAAa,IAAI;AAAA,IAClC;AAAA,IACA,QAAQ,eAAe;AAAA,EAAA;AAGzB,QAAM,oBACJ;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAW,GAAG,QAAQ,QAAQ,QAAQ,SAAS;AAAA,MAC/C,UAAS;AAAA,MACR,GAAG;AAAA,IAAA;AAAA,EAAA;AAIR,QAAM,6BACJ,SAAS,gBAAgB,oBAAoB,OAAO,MAAM,IAAI;AAE1D,QAAA,kBACH,SAAS,cAAc,SAAS,OAAO,YAAY,KACnD,SAAS,iBAAiB,GAAG,0BAA0B,QACxD;AAEF,QAAM,cAAc,CAAC,EAAE,WAAW,aAAa,CAAC;AAEhD,QAAM,iBAAiB,IAAI;AAAA,IACzB,WAAW;AAAA,MACT,WAAW,aAAa,0BAA0B;AAAA,IACpD;AAAA,EAAA,CACD;AAED,QAAM,gBAAiB,YAAY,CAAC,SAAS,cAAc,KAAM;AAEjE,QAAM,aAAa,aAChB,oBAAA,eAAA,EAAc,OAAO,eAAe,UAAS,KAAK,CAAA,IAElD,oBAAA,UAAA,EAAS,OAAO,eAAe,UAAS,KAAK,CAAA;AAI9C,SAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC;AAAA,MACA;AAAA,MACA;AAAA,MACA,WAAW,GAAG,EAAE,CAAC,cAAc,GAAG,YAAA,GAAe,SAAS;AAAA,MAC1D,OAAO;AAAA,QACL,GAAI,WAAW,OAAO,EAAE,gBAAgB;AAAA,QACxC,GAAG;AAAA,MACL;AAAA,MACA,SAAS;AAAA,QACP,MAAM,GAAG,QAAQ,MAAM,QAAQ,UAAU;AAAA,UACvC,CAAC,QAAQ,QAAQ,GAAG;AAAA,UACpB,CAAC,QAAQ,SAAS,GAAG;AAAA,UACrB,CAAC,QAAQ,WAAW,GAAG,SAAS;AAAA,UAChC,CAAC,QAAQ,gBAAgB,GAAG,SAAS,iBAAiB,CAAC;AAAA,UACvD,CAAC,QAAQ,mBAAmB,GAAG,SAAS,iBAAiB;AAAA,QAAA,CAC1D;AAAA,QACD,OAAO,QAAQ;AAAA,QACf,YAAY,GAAG,QAAQ,YAAY;AAAA,UACjC,CAAC,QAAQ,kBAAkB,GAAG;AAAA,QAAA,CAC/B;AAAA,MACH;AAAA,MACA,YAAY,cAAc;AAAA,MAC1B,UAAU,WAAW,SAAY;AAAA,MACjC,SAAS,CAAC,UAAU;AAClB,YAAI,SAAU;AACV,YAAA,WAA0B,eAAA,CAAC,UAAU;AAC/B,kBAAA,OAAO,CAAC,UAAU;AAAA,MAC9B;AAAA,MACA,gBAAc;AAAA,MACb,GAAI,cACH,SAAS,cAAc;AAAA,QACrB,QAAQ;AAAA,MACV;AAAA,MACD,GAAG;AAAA,IAAA;AAAA,EAAA;AAGV,CAAC;"}
@@ -1,7 +1,7 @@
1
1
  import { chipClasses } from "@mui/material/Chip";
2
2
  import { theme } from "@hitachivantara/uikit-styles";
3
- import { createClasses } from "../utils/classes.js";
4
3
  import { outlineStyles } from "../utils/focusUtils.js";
4
+ import { createClasses } from "@hitachivantara/uikit-react-shared";
5
5
  const { staticClasses, useClasses } = createClasses("HvTag", {
6
6
  root: {
7
7
  color: theme.colors.base_dark,
@@ -1,6 +1,6 @@
1
1
  import { chipClasses } from "@mui/material/Chip";
2
2
  import { theme } from "@hitachivantara/uikit-styles";
3
- import { createClasses } from "../utils/classes.js";
3
+ import { createClasses } from "@hitachivantara/uikit-react-shared";
4
4
  import { staticClasses as staticClasses$1 } from "../BaseInput/BaseInput.styles.js";
5
5
  import { staticClasses as staticClasses$2 } from "../Forms/Suggestions/Suggestions.styles.js";
6
6
  const { staticClasses, useClasses } = createClasses("HvTagsInput", {
@@ -1,4 +1,4 @@
1
- import { createClasses } from "../utils/classes.js";
1
+ import { createClasses } from "@hitachivantara/uikit-react-shared";
2
2
  const { staticClasses, useClasses } = createClasses("HvTextArea", {
3
3
  root: { display: "inline-block", width: "100%" },
4
4
  disabled: {},
@@ -1,4 +1,4 @@
1
- import { createClasses } from "../utils/classes.js";
1
+ import { createClasses } from "@hitachivantara/uikit-react-shared";
2
2
  const { staticClasses, useClasses } = createClasses("HvTimeAgo", {
3
3
  root: {}
4
4
  });
@@ -1,5 +1,5 @@
1
1
  import { theme } from "@hitachivantara/uikit-styles";
2
- import { createClasses } from "../utils/classes.js";
2
+ import { createClasses } from "@hitachivantara/uikit-react-shared";
3
3
  const { useClasses, staticClasses } = createClasses("HvTimePicker", {
4
4
  root: {
5
5
  position: "relative"
@@ -1,5 +1,5 @@
1
1
  import { theme } from "@hitachivantara/uikit-styles";
2
- import { createClasses } from "../../utils/classes.js";
2
+ import { createClasses } from "@hitachivantara/uikit-react-shared";
3
3
  const { staticClasses, useClasses } = createClasses("HvTimePickerUnit", {
4
4
  root: {
5
5
  display: "flex",
@@ -2,8 +2,8 @@ import { jsx } from "react/jsx-runtime";
2
2
  import { forwardRef, useState, useEffect } from "react";
3
3
  import Fade from "@mui/material/Fade";
4
4
  import Tooltip from "@mui/material/Tooltip";
5
+ import { useTheme } from "@hitachivantara/uikit-react-shared";
5
6
  import { useDefaultProps } from "../hooks/useDefaultProps.js";
6
- import { useTheme } from "../hooks/useTheme.js";
7
7
  import { getElementById } from "../utils/document.js";
8
8
  import { useClasses } from "./Tooltip.styles.js";
9
9
  import { staticClasses } from "./Tooltip.styles.js";
@@ -1 +1 @@
1
- {"version":3,"file":"Tooltip.js","sources":["../../../src/Tooltip/Tooltip.tsx"],"sourcesContent":["import { forwardRef, useEffect, useState } from \"react\";\nimport Fade from \"@mui/material/Fade\";\nimport Tooltip, {\n TooltipProps as MuiTooltipProps,\n} from \"@mui/material/Tooltip\";\n\nimport { useDefaultProps } from \"../hooks/useDefaultProps\";\nimport { useTheme } from \"../hooks/useTheme\";\nimport { ExtractNames } from \"../utils/classes\";\nimport { getElementById } from \"../utils/document\";\nimport { staticClasses, useClasses } from \"./Tooltip.styles\";\n\nexport { staticClasses as tooltipClasses };\n\nexport type HvTooltipClasses = ExtractNames<typeof useClasses>;\nexport type HvTooltipPlacementType = MuiTooltipProps[\"placement\"];\n\nexport interface HvTooltipProps extends Omit<MuiTooltipProps, \"classes\"> {\n /**\n * Class names to be applied.\n */\n className?: string;\n /**\n * A Jss Object used to override or extend the styles applied.\n */\n classes?: HvTooltipClasses;\n /**\n * If true, the tooltip is shown.\n */\n open?: boolean;\n /**\n * Tooltip placement.\n */\n placement?: HvTooltipPlacementType;\n /**\n * The number of milliseconds to wait before showing the tooltip.\n * This property won't impact the enter touch delay (enterTouchDelay).\n */\n enterDelay?: number;\n /** @inheritdoc */\n title: MuiTooltipProps[\"title\"];\n /** @inheritdoc */\n TransitionComponent?: MuiTooltipProps[\"TransitionComponent\"];\n /** @inheritdoc */\n TransitionProps?: MuiTooltipProps[\"TransitionProps\"];\n /**\n * Defines if should use a single or multiline tooltip.\n */\n useSingle?: boolean;\n /**\n * Node to apply the tooltip.\n */\n children: React.ReactElement;\n /**\n * Id attribute value of an HTML Element to have the tooltip appended to it.\n */\n containerId?: string;\n}\n\n/**\n * Tooltips display informative text when users hover over, focus on, or tap an element.\n * Accessibility-wise, the tooltip automatically labels the `children` content.\n *\n * If you are looking to wrap an icon only button with a tooltip, take a look at the `HvIconButton` component\n * which offers you thus behavior out of the box.\n */\nexport const HvTooltip = forwardRef((props: HvTooltipProps, ref) => {\n const {\n className,\n classes: classesProp,\n open,\n enterDelay = 300,\n placement = \"top\",\n useSingle = true,\n children,\n title,\n TransitionComponent = Fade,\n TransitionProps = { timeout: 400, placement: \"top\" },\n containerId,\n ...others\n } = useDefaultProps(\"HvTooltip\", props);\n\n const { rootId } = useTheme();\n const { classes } = useClasses(classesProp);\n const [container, setContainer] = useState(() =>\n getElementById(containerId ?? rootId),\n );\n\n // force extra render to get the correct container DOM element\n useEffect(() => {\n setContainer(getElementById(containerId ?? rootId));\n }, [containerId, rootId]);\n\n return (\n <Tooltip\n ref={ref}\n open={open}\n enterDelay={enterDelay}\n placement={placement}\n TransitionComponent={TransitionComponent}\n TransitionProps={TransitionProps}\n className={className}\n classes={{\n tooltip: useSingle ? classes.tooltip : classes.tooltipMulti,\n popper: classes.popper,\n }}\n title={title}\n PopperProps={{ container }}\n {...others}\n >\n {children}\n </Tooltip>\n );\n});\n"],"names":[],"mappings":";;;;;;;;;AAkEO,MAAM,YAAY,WAAW,CAAC,OAAuB,QAAQ;AAC5D,QAAA;AAAA,IACJ;AAAA,IACA,SAAS;AAAA,IACT;AAAA,IACA,aAAa;AAAA,IACb,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ;AAAA,IACA;AAAA,IACA,sBAAsB;AAAA,IACtB,kBAAkB,EAAE,SAAS,KAAK,WAAW,MAAM;AAAA,IACnD;AAAA,IACA,GAAG;AAAA,EAAA,IACD,gBAAgB,aAAa,KAAK;AAEhC,QAAA,EAAE,WAAW;AACnB,QAAM,EAAE,QAAA,IAAY,WAAW,WAAW;AACpC,QAAA,CAAC,WAAW,YAAY,IAAI;AAAA,IAAS,MACzC,eAAe,eAAe,MAAM;AAAA,EAAA;AAItC,YAAU,MAAM;AACD,iBAAA,eAAe,eAAe,MAAM,CAAC;AAAA,EAAA,GACjD,CAAC,aAAa,MAAM,CAAC;AAGtB,SAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA,SAAS;AAAA,QACP,SAAS,YAAY,QAAQ,UAAU,QAAQ;AAAA,QAC/C,QAAQ,QAAQ;AAAA,MAClB;AAAA,MACA;AAAA,MACA,aAAa,EAAE,UAAU;AAAA,MACxB,GAAG;AAAA,MAEH;AAAA,IAAA;AAAA,EAAA;AAGP,CAAC;"}
1
+ {"version":3,"file":"Tooltip.js","sources":["../../../src/Tooltip/Tooltip.tsx"],"sourcesContent":["import { forwardRef, useEffect, useState } from \"react\";\nimport Fade from \"@mui/material/Fade\";\nimport Tooltip, {\n TooltipProps as MuiTooltipProps,\n} from \"@mui/material/Tooltip\";\nimport { useTheme } from \"@hitachivantara/uikit-react-shared\";\n\nimport { useDefaultProps } from \"../hooks/useDefaultProps\";\nimport { ExtractNames } from \"../utils/classes\";\nimport { getElementById } from \"../utils/document\";\nimport { staticClasses, useClasses } from \"./Tooltip.styles\";\n\nexport { staticClasses as tooltipClasses };\n\nexport type HvTooltipClasses = ExtractNames<typeof useClasses>;\nexport type HvTooltipPlacementType = MuiTooltipProps[\"placement\"];\n\nexport interface HvTooltipProps extends Omit<MuiTooltipProps, \"classes\"> {\n /**\n * Class names to be applied.\n */\n className?: string;\n /**\n * A Jss Object used to override or extend the styles applied.\n */\n classes?: HvTooltipClasses;\n /**\n * If true, the tooltip is shown.\n */\n open?: boolean;\n /**\n * Tooltip placement.\n */\n placement?: HvTooltipPlacementType;\n /**\n * The number of milliseconds to wait before showing the tooltip.\n * This property won't impact the enter touch delay (enterTouchDelay).\n */\n enterDelay?: number;\n /** @inheritdoc */\n title: MuiTooltipProps[\"title\"];\n /** @inheritdoc */\n TransitionComponent?: MuiTooltipProps[\"TransitionComponent\"];\n /** @inheritdoc */\n TransitionProps?: MuiTooltipProps[\"TransitionProps\"];\n /**\n * Defines if should use a single or multiline tooltip.\n */\n useSingle?: boolean;\n /**\n * Node to apply the tooltip.\n */\n children: React.ReactElement;\n /**\n * Id attribute value of an HTML Element to have the tooltip appended to it.\n */\n containerId?: string;\n}\n\n/**\n * Tooltips display informative text when users hover over, focus on, or tap an element.\n * Accessibility-wise, the tooltip automatically labels the `children` content.\n *\n * If you are looking to wrap an icon only button with a tooltip, take a look at the `HvIconButton` component\n * which offers you thus behavior out of the box.\n */\nexport const HvTooltip = forwardRef((props: HvTooltipProps, ref) => {\n const {\n className,\n classes: classesProp,\n open,\n enterDelay = 300,\n placement = \"top\",\n useSingle = true,\n children,\n title,\n TransitionComponent = Fade,\n TransitionProps = { timeout: 400, placement: \"top\" },\n containerId,\n ...others\n } = useDefaultProps(\"HvTooltip\", props);\n\n const { rootId } = useTheme();\n const { classes } = useClasses(classesProp);\n const [container, setContainer] = useState(() =>\n getElementById(containerId ?? rootId),\n );\n\n // force extra render to get the correct container DOM element\n useEffect(() => {\n setContainer(getElementById(containerId ?? rootId));\n }, [containerId, rootId]);\n\n return (\n <Tooltip\n ref={ref}\n open={open}\n enterDelay={enterDelay}\n placement={placement}\n TransitionComponent={TransitionComponent}\n TransitionProps={TransitionProps}\n className={className}\n classes={{\n tooltip: useSingle ? classes.tooltip : classes.tooltipMulti,\n popper: classes.popper,\n }}\n title={title}\n PopperProps={{ container }}\n {...others}\n >\n {children}\n </Tooltip>\n );\n});\n"],"names":[],"mappings":";;;;;;;;;AAkEO,MAAM,YAAY,WAAW,CAAC,OAAuB,QAAQ;AAC5D,QAAA;AAAA,IACJ;AAAA,IACA,SAAS;AAAA,IACT;AAAA,IACA,aAAa;AAAA,IACb,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ;AAAA,IACA;AAAA,IACA,sBAAsB;AAAA,IACtB,kBAAkB,EAAE,SAAS,KAAK,WAAW,MAAM;AAAA,IACnD;AAAA,IACA,GAAG;AAAA,EAAA,IACD,gBAAgB,aAAa,KAAK;AAEhC,QAAA,EAAE,WAAW;AACnB,QAAM,EAAE,QAAA,IAAY,WAAW,WAAW;AACpC,QAAA,CAAC,WAAW,YAAY,IAAI;AAAA,IAAS,MACzC,eAAe,eAAe,MAAM;AAAA,EAAA;AAItC,YAAU,MAAM;AACD,iBAAA,eAAe,eAAe,MAAM,CAAC;AAAA,EAAA,GACjD,CAAC,aAAa,MAAM,CAAC;AAGtB,SAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA,SAAS;AAAA,QACP,SAAS,YAAY,QAAQ,UAAU,QAAQ;AAAA,QAC/C,QAAQ,QAAQ;AAAA,MAClB;AAAA,MACA;AAAA,MACA,aAAa,EAAE,UAAU;AAAA,MACxB,GAAG;AAAA,MAEH;AAAA,IAAA;AAAA,EAAA;AAGP,CAAC;"}
@@ -1,6 +1,6 @@
1
1
  import { tooltipClasses } from "@mui/material/Tooltip";
2
2
  import { theme } from "@hitachivantara/uikit-styles";
3
- import { createClasses } from "../utils/classes.js";
3
+ import { createClasses } from "@hitachivantara/uikit-react-shared";
4
4
  const { staticClasses, useClasses } = createClasses("HvTooltip", {
5
5
  root: {},
6
6
  tooltip: {},
@@ -1,7 +1,6 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { forwardRef } from "react";
3
- import { useCss } from "../../hooks/useCss.js";
4
- import { createClasses } from "../../utils/classes.js";
3
+ import { createClasses, useCss } from "@hitachivantara/uikit-react-shared";
5
4
  import { useHvTreeItem } from "./useHvTreeItem.js";
6
5
  const { useClasses } = createClasses("HvTreeContent", {
7
6
  root: {},
@@ -1 +1 @@
1
- {"version":3,"file":"DefaultContent.js","sources":["../../../../src/TreeView/TreeItem/DefaultContent.tsx"],"sourcesContent":["import { forwardRef } from \"react\";\n\nimport { useCss } from \"../../hooks/useCss\";\nimport { createClasses, ExtractNames } from \"../../utils/classes\";\nimport { useHvTreeItem } from \"./useHvTreeItem\";\n\nexport const { useClasses } = createClasses(\"HvTreeContent\", {\n root: {},\n expanded: {},\n selected: {},\n focused: {},\n disabled: {},\n iconContainer: {},\n label: {},\n});\n\nexport type HvTreeContentClasses = ExtractNames<typeof useClasses>;\n\nexport interface HvTreeContentProps extends React.HTMLAttributes<HTMLElement> {\n /** className applied to the root element. */\n className?: string;\n /** Override or extend the styles applied to the component. */\n classes?: HvTreeContentClasses;\n /** The tree node label. */\n label?: React.ReactNode;\n /** The id of the node. */\n nodeId: string;\n /** The icon to display next to the tree node's label. */\n icon?: React.ReactNode;\n /** The icon to display next to the tree node's label. Either an expansion or collapse icon. */\n expansionIcon?: React.ReactNode;\n /** The icon to display next to the tree node's label. Either a parent or end icon. */\n displayIcon?: React.ReactNode;\n}\n\n/**\n * Internal default TreeItem `component`.\n * Use this as a basis to create a custom component.\n */\nexport const DefaultContent = forwardRef<HTMLDivElement, HvTreeContentProps>(\n (props, ref) => {\n const {\n classes: classesProp,\n className,\n displayIcon,\n expansionIcon,\n icon: iconProp,\n label,\n nodeId,\n onClick,\n onMouseDown,\n ...others\n } = props;\n const { classes } = useClasses(classesProp);\n\n const { cx } = useCss();\n\n const {\n disabled,\n expanded,\n selected,\n focused,\n handleExpansion,\n handleSelection,\n preventSelection,\n } = useHvTreeItem(nodeId);\n\n const icon = iconProp ?? expansionIcon ?? displayIcon;\n\n return (\n /* eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions -- Key event is handled by the TreeView */\n <div\n {...others}\n className={cx(className, classes.root, {\n [classes.expanded]: expanded,\n [classes.selected]: selected,\n [classes.focused]: focused,\n [classes.disabled]: disabled,\n })}\n onClick={(event) => {\n handleExpansion(event);\n handleSelection(event);\n onClick?.(event);\n }}\n onMouseDown={(event) => {\n preventSelection(event);\n onMouseDown?.(event);\n }}\n ref={ref}\n >\n <div className={classes.iconContainer}>{icon}</div>\n <div className={classes.label}>{label}</div>\n </div>\n );\n },\n);\n"],"names":[],"mappings":";;;;;AAMO,MAAM,EAAE,WAAA,IAAe,cAAc,iBAAiB;AAAA,EAC3D,MAAM,CAAC;AAAA,EACP,UAAU,CAAC;AAAA,EACX,UAAU,CAAC;AAAA,EACX,SAAS,CAAC;AAAA,EACV,UAAU,CAAC;AAAA,EACX,eAAe,CAAC;AAAA,EAChB,OAAO,CAAC;AACV,CAAC;AAyBM,MAAM,iBAAiB;AAAA,EAC5B,CAAC,OAAO,QAAQ;AACR,UAAA;AAAA,MACJ,SAAS;AAAA,MACT;AAAA,MACA;AAAA,MACA;AAAA,MACA,MAAM;AAAA,MACN;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA,GAAG;AAAA,IACD,IAAA;AACJ,UAAM,EAAE,QAAA,IAAY,WAAW,WAAW;AAEpC,UAAA,EAAE,OAAO;AAET,UAAA;AAAA,MACJ;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IAAA,IACE,cAAc,MAAM;AAElB,UAAA,OAAO,YAAY,iBAAiB;AAE1C;AAAA;AAAA,MAEE;AAAA,QAAC;AAAA,QAAA;AAAA,UACE,GAAG;AAAA,UACJ,WAAW,GAAG,WAAW,QAAQ,MAAM;AAAA,YACrC,CAAC,QAAQ,QAAQ,GAAG;AAAA,YACpB,CAAC,QAAQ,QAAQ,GAAG;AAAA,YACpB,CAAC,QAAQ,OAAO,GAAG;AAAA,YACnB,CAAC,QAAQ,QAAQ,GAAG;AAAA,UAAA,CACrB;AAAA,UACD,SAAS,CAAC,UAAU;AAClB,4BAAgB,KAAK;AACrB,4BAAgB,KAAK;AACrB,sBAAU,KAAK;AAAA,UACjB;AAAA,UACA,aAAa,CAAC,UAAU;AACtB,6BAAiB,KAAK;AACtB,0BAAc,KAAK;AAAA,UACrB;AAAA,UACA;AAAA,UAEA,UAAA;AAAA,YAAA,oBAAC,OAAI,EAAA,WAAW,QAAQ,eAAgB,UAAK,MAAA;AAAA,YAC5C,oBAAA,OAAA,EAAI,WAAW,QAAQ,OAAQ,UAAM,OAAA;AAAA,UAAA;AAAA,QAAA;AAAA,MACxC;AAAA;AAAA,EAEJ;AACF;"}
1
+ {"version":3,"file":"DefaultContent.js","sources":["../../../../src/TreeView/TreeItem/DefaultContent.tsx"],"sourcesContent":["import { forwardRef } from \"react\";\nimport { useCss } from \"@hitachivantara/uikit-react-shared\";\n\nimport { createClasses, ExtractNames } from \"../../utils/classes\";\nimport { useHvTreeItem } from \"./useHvTreeItem\";\n\nexport const { useClasses } = createClasses(\"HvTreeContent\", {\n root: {},\n expanded: {},\n selected: {},\n focused: {},\n disabled: {},\n iconContainer: {},\n label: {},\n});\n\nexport type HvTreeContentClasses = ExtractNames<typeof useClasses>;\n\nexport interface HvTreeContentProps extends React.HTMLAttributes<HTMLElement> {\n /** className applied to the root element. */\n className?: string;\n /** Override or extend the styles applied to the component. */\n classes?: HvTreeContentClasses;\n /** The tree node label. */\n label?: React.ReactNode;\n /** The id of the node. */\n nodeId: string;\n /** The icon to display next to the tree node's label. */\n icon?: React.ReactNode;\n /** The icon to display next to the tree node's label. Either an expansion or collapse icon. */\n expansionIcon?: React.ReactNode;\n /** The icon to display next to the tree node's label. Either a parent or end icon. */\n displayIcon?: React.ReactNode;\n}\n\n/**\n * Internal default TreeItem `component`.\n * Use this as a basis to create a custom component.\n */\nexport const DefaultContent = forwardRef<HTMLDivElement, HvTreeContentProps>(\n (props, ref) => {\n const {\n classes: classesProp,\n className,\n displayIcon,\n expansionIcon,\n icon: iconProp,\n label,\n nodeId,\n onClick,\n onMouseDown,\n ...others\n } = props;\n const { classes } = useClasses(classesProp);\n\n const { cx } = useCss();\n\n const {\n disabled,\n expanded,\n selected,\n focused,\n handleExpansion,\n handleSelection,\n preventSelection,\n } = useHvTreeItem(nodeId);\n\n const icon = iconProp ?? expansionIcon ?? displayIcon;\n\n return (\n /* eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions -- Key event is handled by the TreeView */\n <div\n {...others}\n className={cx(className, classes.root, {\n [classes.expanded]: expanded,\n [classes.selected]: selected,\n [classes.focused]: focused,\n [classes.disabled]: disabled,\n })}\n onClick={(event) => {\n handleExpansion(event);\n handleSelection(event);\n onClick?.(event);\n }}\n onMouseDown={(event) => {\n preventSelection(event);\n onMouseDown?.(event);\n }}\n ref={ref}\n >\n <div className={classes.iconContainer}>{icon}</div>\n <div className={classes.label}>{label}</div>\n </div>\n );\n },\n);\n"],"names":[],"mappings":";;;;AAMO,MAAM,EAAE,WAAA,IAAe,cAAc,iBAAiB;AAAA,EAC3D,MAAM,CAAC;AAAA,EACP,UAAU,CAAC;AAAA,EACX,UAAU,CAAC;AAAA,EACX,SAAS,CAAC;AAAA,EACV,UAAU,CAAC;AAAA,EACX,eAAe,CAAC;AAAA,EAChB,OAAO,CAAC;AACV,CAAC;AAyBM,MAAM,iBAAiB;AAAA,EAC5B,CAAC,OAAO,QAAQ;AACR,UAAA;AAAA,MACJ,SAAS;AAAA,MACT;AAAA,MACA;AAAA,MACA;AAAA,MACA,MAAM;AAAA,MACN;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA,GAAG;AAAA,IACD,IAAA;AACJ,UAAM,EAAE,QAAA,IAAY,WAAW,WAAW;AAEpC,UAAA,EAAE,OAAO;AAET,UAAA;AAAA,MACJ;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IAAA,IACE,cAAc,MAAM;AAElB,UAAA,OAAO,YAAY,iBAAiB;AAE1C;AAAA;AAAA,MAEE;AAAA,QAAC;AAAA,QAAA;AAAA,UACE,GAAG;AAAA,UACJ,WAAW,GAAG,WAAW,QAAQ,MAAM;AAAA,YACrC,CAAC,QAAQ,QAAQ,GAAG;AAAA,YACpB,CAAC,QAAQ,QAAQ,GAAG;AAAA,YACpB,CAAC,QAAQ,OAAO,GAAG;AAAA,YACnB,CAAC,QAAQ,QAAQ,GAAG;AAAA,UAAA,CACrB;AAAA,UACD,SAAS,CAAC,UAAU;AAClB,4BAAgB,KAAK;AACrB,4BAAgB,KAAK;AACrB,sBAAU,KAAK;AAAA,UACjB;AAAA,UACA,aAAa,CAAC,UAAU;AACtB,6BAAiB,KAAK;AACtB,0BAAc,KAAK;AAAA,UACrB;AAAA,UACA;AAAA,UAEA,UAAA;AAAA,YAAA,oBAAC,OAAI,EAAA,WAAW,QAAQ,eAAgB,UAAK,MAAA;AAAA,YAC5C,oBAAA,OAAA,EAAI,WAAW,QAAQ,OAAQ,UAAM,OAAA;AAAA,UAAA;AAAA,QAAA;AAAA,MACxC;AAAA;AAAA,EAEJ;AACF;"}
@@ -1,6 +1,6 @@
1
1
  import { theme } from "@hitachivantara/uikit-styles";
2
- import { createClasses } from "../../utils/classes.js";
3
2
  import { outlineStyles } from "../../utils/focusUtils.js";
3
+ import { createClasses } from "@hitachivantara/uikit-react-shared";
4
4
  const { staticClasses, useClasses } = createClasses("HvTreeItem", {
5
5
  /** Applied to the root element */
6
6
  root: {
@@ -1,4 +1,4 @@
1
- import { createClasses } from "../utils/classes.js";
1
+ import { createClasses } from "@hitachivantara/uikit-react-shared";
2
2
  const { staticClasses, useClasses } = createClasses("HvTreeView", {
3
3
  /** Applied to the root element */
4
4
  root: {
@@ -1,6 +1,6 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
+ import { useTheme } from "@hitachivantara/uikit-react-shared";
2
3
  import { useDefaultProps } from "../hooks/useDefaultProps.js";
3
- import { useTheme } from "../hooks/useTheme.js";
4
4
  import { fixedForwardRef } from "../types/generic.js";
5
5
  import { useClasses } from "./Typography.styles.js";
6
6
  import { staticClasses } from "./Typography.styles.js";
@@ -1 +1 @@
1
- {"version":3,"file":"Typography.js","sources":["../../../src/Typography/Typography.tsx"],"sourcesContent":["import { useDefaultProps } from \"../hooks/useDefaultProps\";\nimport { useTheme } from \"../hooks/useTheme\";\nimport {\n fixedForwardRef,\n PolymorphicComponentRef,\n PolymorphicRef,\n} from \"../types/generic\";\nimport { ExtractNames } from \"../utils/classes\";\nimport { staticClasses, useClasses } from \"./Typography.styles\";\nimport {\n HvTypographyLegacyVariants,\n HvTypographyVariants,\n mapVariant,\n} from \"./utils\";\n\nexport { staticClasses as typographyClasses };\n\nexport type HvTypographyClasses = ExtractNames<typeof useClasses>;\n\nconst HvTypographyMap = {\n display: \"h1\",\n title1: \"h1\",\n title2: \"h2\",\n title3: \"h3\",\n title4: \"h4\",\n body: \"p\",\n label: \"span\",\n captionLabel: \"p\",\n caption1: \"p\",\n caption2: \"p\",\n // LEGACY\n \"5xlTitle\": \"h1\",\n \"4xlTitle\": \"h1\",\n \"3xlTitle\": \"h1\",\n xxlTitle: \"h1\",\n xlTitle: \"h1\",\n lTitle: \"h2\",\n mTitle: \"h3\",\n sTitle: \"h4\",\n xsTitle: \"h5\",\n xxsTitle: \"h6\",\n sectionTitle: \"p\",\n highlightText: \"p\",\n normalText: \"p\",\n placeholderText: \"p\",\n link: \"p\",\n disabledText: \"p\",\n selectedNavText: \"p\",\n vizText: \"p\",\n vizTextDisabled: \"p\",\n xsInlineLink: \"p\",\n} satisfies Record<\n HvTypographyVariants | HvTypographyLegacyVariants,\n React.ElementType\n>;\n\nexport type HvTypographyProps<C extends React.ElementType = \"p\"> =\n PolymorphicComponentRef<\n C,\n {\n /** Use the variant prop to change the visual style of the Typography. */\n variant?: HvTypographyVariants | HvTypographyLegacyVariants;\n /** If `true` the typography will display the look of a link. */\n link?: boolean;\n /** If `true` the typography will display the look of a disabled state. */\n disabled?: boolean;\n /**\n * If `true`, the typography will render a \"p\" element\n * @deprecated use `component=\"p\"` instead\n * */\n paragraph?: boolean;\n /**\n * If `true`, the text will not wrap, but instead will truncate with a text overflow ellipsis.\n *\n * Note that text overflow can only happen with block or inline-block level elements\n * (the element needs to have a width in order to overflow).\n */\n noWrap?: boolean;\n /** A Jss Object used to override or extend the styles applied to the component. */\n classes?: HvTypographyClasses;\n }\n >;\n\n/**\n * Typography component is used to render text and paragraphs within an interface.\n */\nexport const HvTypography = fixedForwardRef(function HvTypography<\n C extends React.ElementType = \"p\",\n>(props: HvTypographyProps<C>, ref: PolymorphicRef<C>) {\n const {\n className,\n component: ComponentProp,\n classes: classesProp,\n variant: variantProp = \"body\",\n link = false,\n noWrap = false,\n paragraph = false,\n disabled = false,\n ...others\n } = useDefaultProps(\"HvTypography\", props);\n const { classes, cx } = useClasses(classesProp);\n const { activeTheme } = useTheme();\n\n const variant = mapVariant(variantProp, activeTheme?.name);\n\n const Component =\n ComponentProp || (paragraph && \"p\") || HvTypographyMap[variant] || \"span\";\n\n return (\n <Component\n ref={ref}\n className={cx(\n classes.root,\n classes[variant],\n {\n [classes.isLink]: link,\n [classes.noWrap]: noWrap,\n [classes.disabled]: disabled,\n },\n className,\n )}\n disabled={disabled}\n {...others}\n />\n );\n});\n"],"names":["HvTypography"],"mappings":";;;;;;;AAmBA,MAAM,kBAAkB;AAAA,EACtB,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,OAAO;AAAA,EACP,cAAc;AAAA,EACd,UAAU;AAAA,EACV,UAAU;AAAA;AAAA,EAEV,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,UAAU;AAAA,EACV,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,UAAU;AAAA,EACV,cAAc;AAAA,EACd,eAAe;AAAA,EACf,YAAY;AAAA,EACZ,iBAAiB;AAAA,EACjB,MAAM;AAAA,EACN,cAAc;AAAA,EACd,iBAAiB;AAAA,EACjB,SAAS;AAAA,EACT,iBAAiB;AAAA,EACjB,cAAc;AAChB;AAmCO,MAAM,eAAe,gBAAgB,SAASA,cAEnD,OAA6B,KAAwB;AAC/C,QAAA;AAAA,IACJ;AAAA,IACA,WAAW;AAAA,IACX,SAAS;AAAA,IACT,SAAS,cAAc;AAAA,IACvB,OAAO;AAAA,IACP,SAAS;AAAA,IACT,YAAY;AAAA,IACZ,WAAW;AAAA,IACX,GAAG;AAAA,EAAA,IACD,gBAAgB,gBAAgB,KAAK;AACzC,QAAM,EAAE,SAAS,GAAG,IAAI,WAAW,WAAW;AACxC,QAAA,EAAE,gBAAgB;AAExB,QAAM,UAAU,WAAW,aAAa,aAAa,IAAI;AAEzD,QAAM,YACJ,iBAAkB,aAAa,OAAQ,gBAAgB,OAAO,KAAK;AAGnE,SAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC;AAAA,MACA,WAAW;AAAA,QACT,QAAQ;AAAA,QACR,QAAQ,OAAO;AAAA,QACf;AAAA,UACE,CAAC,QAAQ,MAAM,GAAG;AAAA,UAClB,CAAC,QAAQ,MAAM,GAAG;AAAA,UAClB,CAAC,QAAQ,QAAQ,GAAG;AAAA,QACtB;AAAA,QACA;AAAA,MACF;AAAA,MACA;AAAA,MACC,GAAG;AAAA,IAAA;AAAA,EAAA;AAGV,CAAC;"}
1
+ {"version":3,"file":"Typography.js","sources":["../../../src/Typography/Typography.tsx"],"sourcesContent":["import { useTheme } from \"@hitachivantara/uikit-react-shared\";\n\nimport { useDefaultProps } from \"../hooks/useDefaultProps\";\nimport {\n fixedForwardRef,\n PolymorphicComponentRef,\n PolymorphicRef,\n} from \"../types/generic\";\nimport { ExtractNames } from \"../utils/classes\";\nimport { staticClasses, useClasses } from \"./Typography.styles\";\nimport {\n HvTypographyLegacyVariants,\n HvTypographyVariants,\n mapVariant,\n} from \"./utils\";\n\nexport { staticClasses as typographyClasses };\n\nexport type HvTypographyClasses = ExtractNames<typeof useClasses>;\n\nconst HvTypographyMap = {\n display: \"h1\",\n title1: \"h1\",\n title2: \"h2\",\n title3: \"h3\",\n title4: \"h4\",\n body: \"p\",\n label: \"span\",\n captionLabel: \"p\",\n caption1: \"p\",\n caption2: \"p\",\n // LEGACY\n \"5xlTitle\": \"h1\",\n \"4xlTitle\": \"h1\",\n \"3xlTitle\": \"h1\",\n xxlTitle: \"h1\",\n xlTitle: \"h1\",\n lTitle: \"h2\",\n mTitle: \"h3\",\n sTitle: \"h4\",\n xsTitle: \"h5\",\n xxsTitle: \"h6\",\n sectionTitle: \"p\",\n highlightText: \"p\",\n normalText: \"p\",\n placeholderText: \"p\",\n link: \"p\",\n disabledText: \"p\",\n selectedNavText: \"p\",\n vizText: \"p\",\n vizTextDisabled: \"p\",\n xsInlineLink: \"p\",\n} satisfies Record<\n HvTypographyVariants | HvTypographyLegacyVariants,\n React.ElementType\n>;\n\nexport type HvTypographyProps<C extends React.ElementType = \"p\"> =\n PolymorphicComponentRef<\n C,\n {\n /** Use the variant prop to change the visual style of the Typography. */\n variant?: HvTypographyVariants | HvTypographyLegacyVariants;\n /** If `true` the typography will display the look of a link. */\n link?: boolean;\n /** If `true` the typography will display the look of a disabled state. */\n disabled?: boolean;\n /**\n * If `true`, the typography will render a \"p\" element\n * @deprecated use `component=\"p\"` instead\n * */\n paragraph?: boolean;\n /**\n * If `true`, the text will not wrap, but instead will truncate with a text overflow ellipsis.\n *\n * Note that text overflow can only happen with block or inline-block level elements\n * (the element needs to have a width in order to overflow).\n */\n noWrap?: boolean;\n /** A Jss Object used to override or extend the styles applied to the component. */\n classes?: HvTypographyClasses;\n }\n >;\n\n/**\n * Typography component is used to render text and paragraphs within an interface.\n */\nexport const HvTypography = fixedForwardRef(function HvTypography<\n C extends React.ElementType = \"p\",\n>(props: HvTypographyProps<C>, ref: PolymorphicRef<C>) {\n const {\n className,\n component: ComponentProp,\n classes: classesProp,\n variant: variantProp = \"body\",\n link = false,\n noWrap = false,\n paragraph = false,\n disabled = false,\n ...others\n } = useDefaultProps(\"HvTypography\", props);\n const { classes, cx } = useClasses(classesProp);\n const { activeTheme } = useTheme();\n\n const variant = mapVariant(variantProp, activeTheme?.name);\n\n const Component =\n ComponentProp || (paragraph && \"p\") || HvTypographyMap[variant] || \"span\";\n\n return (\n <Component\n ref={ref}\n className={cx(\n classes.root,\n classes[variant],\n {\n [classes.isLink]: link,\n [classes.noWrap]: noWrap,\n [classes.disabled]: disabled,\n },\n className,\n )}\n disabled={disabled}\n {...others}\n />\n );\n});\n"],"names":["HvTypography"],"mappings":";;;;;;;AAoBA,MAAM,kBAAkB;AAAA,EACtB,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,OAAO;AAAA,EACP,cAAc;AAAA,EACd,UAAU;AAAA,EACV,UAAU;AAAA;AAAA,EAEV,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,UAAU;AAAA,EACV,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,UAAU;AAAA,EACV,cAAc;AAAA,EACd,eAAe;AAAA,EACf,YAAY;AAAA,EACZ,iBAAiB;AAAA,EACjB,MAAM;AAAA,EACN,cAAc;AAAA,EACd,iBAAiB;AAAA,EACjB,SAAS;AAAA,EACT,iBAAiB;AAAA,EACjB,cAAc;AAChB;AAmCO,MAAM,eAAe,gBAAgB,SAASA,cAEnD,OAA6B,KAAwB;AAC/C,QAAA;AAAA,IACJ;AAAA,IACA,WAAW;AAAA,IACX,SAAS;AAAA,IACT,SAAS,cAAc;AAAA,IACvB,OAAO;AAAA,IACP,SAAS;AAAA,IACT,YAAY;AAAA,IACZ,WAAW;AAAA,IACX,GAAG;AAAA,EAAA,IACD,gBAAgB,gBAAgB,KAAK;AACzC,QAAM,EAAE,SAAS,GAAG,IAAI,WAAW,WAAW;AACxC,QAAA,EAAE,gBAAgB;AAExB,QAAM,UAAU,WAAW,aAAa,aAAa,IAAI;AAEzD,QAAM,YACJ,iBAAkB,aAAa,OAAQ,gBAAgB,OAAO,KAAK;AAGnE,SAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC;AAAA,MACA,WAAW;AAAA,QACT,QAAQ;AAAA,QACR,QAAQ,OAAO;AAAA,QACf;AAAA,UACE,CAAC,QAAQ,MAAM,GAAG;AAAA,UAClB,CAAC,QAAQ,MAAM,GAAG;AAAA,UAClB,CAAC,QAAQ,QAAQ,GAAG;AAAA,QACtB;AAAA,QACA;AAAA,MACF;AAAA,MACA;AAAA,MACC,GAAG;AAAA,IAAA;AAAA,EAAA;AAGV,CAAC;"}
@@ -1,5 +1,5 @@
1
1
  import { theme } from "@hitachivantara/uikit-styles";
2
- import { createClasses } from "../utils/classes.js";
2
+ import { createClasses } from "@hitachivantara/uikit-react-shared";
3
3
  const { useClasses, staticClasses } = createClasses("HvTypography", {
4
4
  root: {
5
5
  fontFamily: theme.fontFamily.body
@@ -1,6 +1,6 @@
1
1
  import { theme } from "@hitachivantara/uikit-styles";
2
- import { createClasses } from "../../utils/classes.js";
3
2
  import { outlineStyles } from "../../utils/focusUtils.js";
3
+ import { createClasses } from "@hitachivantara/uikit-react-shared";
4
4
  const hover = {
5
5
  background: theme.colors.containerBackgroundHover
6
6
  };
@@ -1,5 +1,5 @@
1
1
  import { theme } from "@hitachivantara/uikit-styles";
2
- import { createClasses } from "../../utils/classes.js";
2
+ import { createClasses } from "@hitachivantara/uikit-react-shared";
3
3
  const { staticClasses, useClasses } = createClasses(
4
4
  "HvVerticalNavigationActions",
5
5
  {
@@ -1,4 +1,4 @@
1
- import { createClasses } from "../../utils/classes.js";
1
+ import { createClasses } from "@hitachivantara/uikit-react-shared";
2
2
  const { staticClasses, useClasses } = createClasses(
3
3
  "HvVerticalNavigationHeader",
4
4
  {
@@ -1,5 +1,5 @@
1
1
  import { theme } from "@hitachivantara/uikit-styles";
2
- import { createClasses } from "../../utils/classes.js";
2
+ import { createClasses } from "@hitachivantara/uikit-react-shared";
3
3
  const { staticClasses, useClasses } = createClasses(
4
4
  "HvVerticalNavigationTree",
5
5
  {
@@ -1,5 +1,5 @@
1
1
  import { theme } from "@hitachivantara/uikit-styles";
2
- import { createClasses } from "../../utils/classes.js";
2
+ import { createClasses } from "@hitachivantara/uikit-react-shared";
3
3
  const { staticClasses, useClasses } = createClasses(
4
4
  "HvVerticalNavigationPopup",
5
5
  {
@@ -1,7 +1,7 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import { Popper } from "@mui/base";
2
+ import { Popper } from "@mui/base/Popper";
3
3
  import ClickAwayListener from "@mui/material/ClickAwayListener";
4
- import { useTheme } from "../../hooks/useTheme.js";
4
+ import { useTheme } from "@hitachivantara/uikit-react-shared";
5
5
  import { getContainerElement } from "../../utils/document.js";
6
6
  import { HvVerticalNavigation } from "../VerticalNavigation.js";
7
7
  import { useClasses } from "./NavigationPopup.styles.js";
@@ -1 +1 @@
1
- {"version":3,"file":"NavigationPopupContainer.js","sources":["../../../../src/VerticalNavigation/NavigationPopup/NavigationPopupContainer.tsx"],"sourcesContent":["import { Popper } from \"@mui/base\";\nimport ClickAwayListener from \"@mui/material/ClickAwayListener\";\n\nimport { useTheme } from \"../../hooks/useTheme\";\nimport { HvBaseProps } from \"../../types/generic\";\nimport { ExtractNames } from \"../../utils/classes\";\nimport { getContainerElement } from \"../../utils/document\";\nimport { HvVerticalNavigation } from \"../VerticalNavigation\";\nimport { staticClasses, useClasses } from \"./NavigationPopup.styles\";\n\nexport { staticClasses as verticalNavigationPopupClasses };\n\nexport type HvVerticalNavigationPopupClasses = ExtractNames<typeof useClasses>;\n\nexport interface NavigationPopupContainerProps extends HvBaseProps {\n anchorEl?: HTMLElement | null;\n onClose?: () => void;\n classes?: HvVerticalNavigationPopupClasses;\n}\n\nexport const NavigationPopupContainer = ({\n anchorEl,\n onClose,\n children,\n classes: classesProp,\n className,\n ...others\n}: NavigationPopupContainerProps) => {\n const { classes, cx } = useClasses(classesProp);\n\n const { rootId } = useTheme();\n\n const handleClickAway = () => onClose?.();\n\n return (\n <Popper\n open\n anchorEl={anchorEl}\n placement=\"right-start\"\n container={getContainerElement(rootId)}\n className={cx(classes.popper, classes.popup, className)}\n {...others}\n >\n <ClickAwayListener onClickAway={handleClickAway}>\n <div className={classes.container}>\n <HvVerticalNavigation open useIcons>\n {children}\n </HvVerticalNavigation>\n </div>\n </ClickAwayListener>\n </Popper>\n );\n};\n"],"names":[],"mappings":";;;;;;;;AAoBO,MAAM,2BAA2B,CAAC;AAAA,EACvC;AAAA,EACA;AAAA,EACA;AAAA,EACA,SAAS;AAAA,EACT;AAAA,EACA,GAAG;AACL,MAAqC;AACnC,QAAM,EAAE,SAAS,GAAG,IAAI,WAAW,WAAW;AAExC,QAAA,EAAE,WAAW;AAEb,QAAA,kBAAkB,MAAM;AAG5B,SAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,MAAI;AAAA,MACJ;AAAA,MACA,WAAU;AAAA,MACV,WAAW,oBAAoB,MAAM;AAAA,MACrC,WAAW,GAAG,QAAQ,QAAQ,QAAQ,OAAO,SAAS;AAAA,MACrD,GAAG;AAAA,MAEJ,8BAAC,mBAAkB,EAAA,aAAa,iBAC9B,UAAA,oBAAC,SAAI,WAAW,QAAQ,WACtB,UAAA,oBAAC,wBAAqB,MAAI,MAAC,UAAQ,MAChC,UACH,GACF,EACF,CAAA;AAAA,IAAA;AAAA,EAAA;AAGN;"}
1
+ {"version":3,"file":"NavigationPopupContainer.js","sources":["../../../../src/VerticalNavigation/NavigationPopup/NavigationPopupContainer.tsx"],"sourcesContent":["import { Popper } from \"@mui/base/Popper\";\nimport ClickAwayListener from \"@mui/material/ClickAwayListener\";\nimport { useTheme } from \"@hitachivantara/uikit-react-shared\";\n\nimport { HvBaseProps } from \"../../types/generic\";\nimport { ExtractNames } from \"../../utils/classes\";\nimport { getContainerElement } from \"../../utils/document\";\nimport { HvVerticalNavigation } from \"../VerticalNavigation\";\nimport { staticClasses, useClasses } from \"./NavigationPopup.styles\";\n\nexport { staticClasses as verticalNavigationPopupClasses };\n\nexport type HvVerticalNavigationPopupClasses = ExtractNames<typeof useClasses>;\n\nexport interface NavigationPopupContainerProps extends HvBaseProps {\n anchorEl?: HTMLElement | null;\n onClose?: () => void;\n classes?: HvVerticalNavigationPopupClasses;\n}\n\nexport const NavigationPopupContainer = ({\n anchorEl,\n onClose,\n children,\n classes: classesProp,\n className,\n ...others\n}: NavigationPopupContainerProps) => {\n const { classes, cx } = useClasses(classesProp);\n\n const { rootId } = useTheme();\n\n const handleClickAway = () => onClose?.();\n\n return (\n <Popper\n open\n anchorEl={anchorEl}\n placement=\"right-start\"\n container={getContainerElement(rootId)}\n className={cx(classes.popper, classes.popup, className)}\n {...others}\n >\n <ClickAwayListener onClickAway={handleClickAway}>\n <div className={classes.container}>\n <HvVerticalNavigation open useIcons>\n {children}\n </HvVerticalNavigation>\n </div>\n </ClickAwayListener>\n </Popper>\n );\n};\n"],"names":[],"mappings":";;;;;;;;AAoBO,MAAM,2BAA2B,CAAC;AAAA,EACvC;AAAA,EACA;AAAA,EACA;AAAA,EACA,SAAS;AAAA,EACT;AAAA,EACA,GAAG;AACL,MAAqC;AACnC,QAAM,EAAE,SAAS,GAAG,IAAI,WAAW,WAAW;AAExC,QAAA,EAAE,WAAW;AAEb,QAAA,kBAAkB,MAAM;AAG5B,SAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,MAAI;AAAA,MACJ;AAAA,MACA,WAAU;AAAA,MACV,WAAW,oBAAoB,MAAM;AAAA,MACrC,WAAW,GAAG,QAAQ,QAAQ,QAAQ,OAAO,SAAS;AAAA,MACrD,GAAG;AAAA,MAEJ,8BAAC,mBAAkB,EAAA,aAAa,iBAC9B,UAAA,oBAAC,SAAI,WAAW,QAAQ,WACtB,UAAA,oBAAC,wBAAqB,MAAI,MAAC,UAAQ,MAChC,UACH,GACF,EACF,CAAA;AAAA,IAAA;AAAA,EAAA;AAGN;"}
@@ -1,5 +1,5 @@
1
1
  import { theme } from "@hitachivantara/uikit-styles";
2
- import { createClasses } from "../../utils/classes.js";
2
+ import { createClasses } from "@hitachivantara/uikit-react-shared";
3
3
  const { staticClasses, useClasses } = createClasses(
4
4
  "HvVerticalNavigationSlider",
5
5
  {
@@ -1,5 +1,5 @@
1
1
  import { theme } from "@hitachivantara/uikit-styles";
2
- import { createClasses } from "../../utils/classes.js";
2
+ import { createClasses } from "@hitachivantara/uikit-react-shared";
3
3
  const { staticClasses, useClasses } = createClasses(
4
4
  "HvVerticalNavigationTreeView",
5
5
  {
@@ -1,8 +1,8 @@
1
1
  import { theme } from "@hitachivantara/uikit-styles";
2
- import { createClasses } from "../../utils/classes.js";
3
2
  import { outlineStyles } from "../../utils/focusUtils.js";
4
3
  import { staticClasses as staticClasses$1 } from "../../Avatar/Avatar.styles.js";
5
4
  import "../../Avatar/Avatar.js";
5
+ import { createClasses } from "@hitachivantara/uikit-react-shared";
6
6
  const selected = {
7
7
  background: theme.colors.atmo3,
8
8
  borderLeft: `4px solid ${theme.colors.secondary}`
@@ -1,5 +1,5 @@
1
1
  import { theme } from "@hitachivantara/uikit-styles";
2
- import { createClasses } from "../utils/classes.js";
2
+ import { createClasses } from "@hitachivantara/uikit-react-shared";
3
3
  const { staticClasses, useClasses } = createClasses(
4
4
  "HvVerticalNavigation",
5
5
  {
@@ -1,6 +1,5 @@
1
1
  import { useMemo } from "react";
2
- import { useCss } from "./useCss.js";
3
- import { useTheme } from "./useTheme.js";
2
+ import { useTheme, useCss } from "@hitachivantara/uikit-react-shared";
4
3
  function filterProps(props) {
5
4
  return Object.keys(props).reduce(
6
5
  (acc, key) => {
@@ -1 +1 @@
1
- {"version":3,"file":"useDefaultProps.js","sources":["../../../src/hooks/useDefaultProps.ts"],"sourcesContent":["import { useMemo } from \"react\";\n\nimport { useCss } from \"./useCss\";\nimport { useTheme } from \"./useTheme\";\n\n/** Filter out `undefined` entries from `props` object. */\nexport function filterProps(props: Record<string, any>) {\n return Object.keys(props).reduce(\n (acc, key) => {\n if (props[key] !== undefined) {\n acc[key] = props[key];\n }\n return acc;\n },\n {} as typeof props,\n );\n}\n\n/** Injects into `props` the props defined in the theme `componentName`. */\nexport function useDefaultProps<T extends Record<string, any>>(\n /** Name of the theme component key to inject defaultProps */\n componentName: string, // keyof HvThemeComponents,\n props: T,\n): T {\n const { activeTheme } = useTheme();\n const { css, cx } = useCss();\n\n const themeDefaultProps = activeTheme?.components?.[componentName];\n\n const classes = useMemo(() => {\n const themeClasses = themeDefaultProps?.classes || {};\n const propsClasses = props?.classes || {};\n const classKeys = [\n ...Object.keys(themeClasses),\n ...Object.keys(propsClasses),\n ];\n return classKeys.reduce(\n (acc, key) => {\n acc[key] = cx(\n themeClasses[key] && css(themeClasses[key]),\n propsClasses[key],\n );\n return acc;\n },\n {} as Record<string, string>,\n );\n }, [css, cx, props?.classes, themeDefaultProps?.classes]);\n\n return {\n ...themeDefaultProps,\n ...filterProps(props),\n classes,\n };\n}\n"],"names":[],"mappings":";;;AAMO,SAAS,YAAY,OAA4B;AAC/C,SAAA,OAAO,KAAK,KAAK,EAAE;AAAA,IACxB,CAAC,KAAK,QAAQ;AACR,UAAA,MAAM,GAAG,MAAM,QAAW;AACxB,YAAA,GAAG,IAAI,MAAM,GAAG;AAAA,MACtB;AACO,aAAA;AAAA,IACT;AAAA,IACA,CAAC;AAAA,EAAA;AAEL;AAGgB,SAAA,gBAEd,eACA,OACG;AACG,QAAA,EAAE,gBAAgB;AACxB,QAAM,EAAE,KAAK,GAAG,IAAI,OAAO;AAErB,QAAA,oBAAoB,aAAa,aAAa,aAAa;AAE3D,QAAA,UAAU,QAAQ,MAAM;AACtB,UAAA,eAAe,mBAAmB,WAAW;AAC7C,UAAA,eAAe,OAAO,WAAW;AACvC,UAAM,YAAY;AAAA,MAChB,GAAG,OAAO,KAAK,YAAY;AAAA,MAC3B,GAAG,OAAO,KAAK,YAAY;AAAA,IAAA;AAE7B,WAAO,UAAU;AAAA,MACf,CAAC,KAAK,QAAQ;AACZ,YAAI,GAAG,IAAI;AAAA,UACT,aAAa,GAAG,KAAK,IAAI,aAAa,GAAG,CAAC;AAAA,UAC1C,aAAa,GAAG;AAAA,QAAA;AAEX,eAAA;AAAA,MACT;AAAA,MACA,CAAC;AAAA,IAAA;AAAA,EACH,GACC,CAAC,KAAK,IAAI,OAAO,SAAS,mBAAmB,OAAO,CAAC;AAEjD,SAAA;AAAA,IACL,GAAG;AAAA,IACH,GAAG,YAAY,KAAK;AAAA,IACpB;AAAA,EAAA;AAEJ;"}
1
+ {"version":3,"file":"useDefaultProps.js","sources":["../../../src/hooks/useDefaultProps.ts"],"sourcesContent":["import { useMemo } from \"react\";\nimport { useCss, useTheme } from \"@hitachivantara/uikit-react-shared\";\n\n/** Filter out `undefined` entries from `props` object. */\nexport function filterProps(props: Record<string, any>) {\n return Object.keys(props).reduce(\n (acc, key) => {\n if (props[key] !== undefined) {\n acc[key] = props[key];\n }\n return acc;\n },\n {} as typeof props,\n );\n}\n\n/** Injects into `props` the props defined in the theme `componentName`. */\nexport function useDefaultProps<T extends Record<string, any>>(\n /** Name of the theme component key to inject defaultProps */\n componentName: string, // keyof HvThemeComponents,\n props: T,\n): T {\n const { activeTheme } = useTheme();\n const { css, cx } = useCss();\n\n const themeDefaultProps = activeTheme?.components?.[componentName];\n\n const classes = useMemo(() => {\n const themeClasses = themeDefaultProps?.classes || {};\n const propsClasses = props?.classes || {};\n const classKeys = [\n ...Object.keys(themeClasses),\n ...Object.keys(propsClasses),\n ];\n return classKeys.reduce(\n (acc, key) => {\n acc[key] = cx(\n themeClasses[key] && css(themeClasses[key]),\n propsClasses[key],\n );\n return acc;\n },\n {} as Record<string, string>,\n );\n }, [css, cx, props?.classes, themeDefaultProps?.classes]);\n\n return {\n ...themeDefaultProps,\n ...filterProps(props),\n classes,\n };\n}\n"],"names":[],"mappings":";;AAIO,SAAS,YAAY,OAA4B;AAC/C,SAAA,OAAO,KAAK,KAAK,EAAE;AAAA,IACxB,CAAC,KAAK,QAAQ;AACR,UAAA,MAAM,GAAG,MAAM,QAAW;AACxB,YAAA,GAAG,IAAI,MAAM,GAAG;AAAA,MACtB;AACO,aAAA;AAAA,IACT;AAAA,IACA,CAAC;AAAA,EAAA;AAEL;AAGgB,SAAA,gBAEd,eACA,OACG;AACG,QAAA,EAAE,gBAAgB;AACxB,QAAM,EAAE,KAAK,GAAG,IAAI,OAAO;AAErB,QAAA,oBAAoB,aAAa,aAAa,aAAa;AAE3D,QAAA,UAAU,QAAQ,MAAM;AACtB,UAAA,eAAe,mBAAmB,WAAW;AAC7C,UAAA,eAAe,OAAO,WAAW;AACvC,UAAM,YAAY;AAAA,MAChB,GAAG,OAAO,KAAK,YAAY;AAAA,MAC3B,GAAG,OAAO,KAAK,YAAY;AAAA,IAAA;AAE7B,WAAO,UAAU;AAAA,MACf,CAAC,KAAK,QAAQ;AACZ,YAAI,GAAG,IAAI;AAAA,UACT,aAAa,GAAG,KAAK,IAAI,aAAa,GAAG,CAAC;AAAA,UAC1C,aAAa,GAAG;AAAA,QAAA;AAEX,eAAA;AAAA,MACT;AAAA,MACA,CAAC;AAAA,IAAA;AAAA,EACH,GACC,CAAC,KAAK,IAAI,OAAO,SAAS,mBAAmB,OAAO,CAAC;AAEjD,SAAA;AAAA,IACL,GAAG;AAAA,IACH,GAAG,YAAY,KAAK;AAAA,IACpB;AAAA,EAAA;AAEJ;"}
package/dist/esm/index.js CHANGED
@@ -1,15 +1,14 @@
1
+ import { EmotionContext, HvThemeContext, createClasses, defaultCacheKey, defaultEmotionCache, useCss, useTheme } from "@hitachivantara/uikit-react-shared";
1
2
  import { ds3, ds5, pentahoPlus, theme, themes } from "@hitachivantara/uikit-styles";
2
3
  import { useClickOutside } from "./hooks/useClickOutside.js";
3
4
  import { useComputation } from "./hooks/useComputation.js";
4
5
  import { useControlled } from "./hooks/useControlled.js";
5
- import { useCss } from "./hooks/useCss.js";
6
6
  import { filterProps, useDefaultProps } from "./hooks/useDefaultProps.js";
7
7
  import { useEnhancedEffect } from "./hooks/useEnhancedEffect.js";
8
8
  import { useForkRef } from "./hooks/useForkRef.js";
9
9
  import { useImageLoaded } from "./hooks/useImageLoaded.js";
10
10
  import { useIsMounted } from "./hooks/useIsMounted.js";
11
11
  import { useLabels } from "./hooks/useLabels.js";
12
- import { useTheme } from "./hooks/useTheme.js";
13
12
  import { useUniqueId } from "./hooks/useUniqueId.js";
14
13
  import { useWidth } from "./hooks/useWidth.js";
15
14
  import { HvProvider } from "./providers/Provider.js";
@@ -18,7 +17,6 @@ import { fixedForwardRef } from "./types/generic.js";
18
17
  import { withTooltip } from "./hocs/withTooltip.js";
19
18
  import { isBrowser } from "./utils/browser.js";
20
19
  import { checkValidHexColorValue } from "./utils/checkValidHexColorValue.js";
21
- import { createClasses, getClasses, replace$ } from "./utils/classes.js";
22
20
  import { getFirstAndLastFocus, getFocusableList, getPrevNextFocus } from "./utils/focusableElementFinder.js";
23
21
  import { outlineStyles } from "./utils/focusUtils.js";
24
22
  import { getComponentName } from "./utils/getComponentName.js";
@@ -32,6 +30,7 @@ import { decreaseSize, increaseSize } from "./utils/sizes.js";
32
30
  import { createTheme, getVarValue, processThemes, setElementAttrs } from "./utils/theme.js";
33
31
  import { useSavedState } from "./utils/useSavedState.js";
34
32
  import { wrapperTooltip } from "./utils/wrapperTooltip.js";
33
+ import { uniqueId } from "./utils/helpers.js";
35
34
  import { default as default2, default as default3 } from "./Table/hooks/useTable.js";
36
35
  import { typographyVariants } from "./Typography/utils.js";
37
36
  import { staticClasses } from "./Typography/Typography.styles.js";
@@ -312,7 +311,6 @@ import { HvTableSection } from "./TableSection/TableSection.js";
312
311
  import { HvIconButton } from "./IconButton/IconButton.js";
313
312
  import { staticClasses as staticClasses120 } from "./Skeleton/Skeleton.styles.js";
314
313
  import { HvSkeleton } from "./Skeleton/Skeleton.js";
315
- import { EmotionContext, HvThemeContext, defaultCacheKey, defaultEmotionCache } from "@hitachivantara/uikit-react-shared";
316
314
  export {
317
315
  CellWithCheckBox,
318
316
  CellWithExpandButton,
@@ -536,7 +534,6 @@ export {
536
534
  staticClasses59 as footerClasses,
537
535
  staticClasses7 as formElementClasses,
538
536
  getBorderStyles,
539
- getClasses,
540
537
  getComponentName,
541
538
  getFirstAndLastFocus,
542
539
  getFocusableList,
@@ -607,7 +604,6 @@ export {
607
604
  staticClasses80 as radioClasses,
608
605
  staticClasses81 as radioGroupClasses,
609
606
  reducer,
610
- replace$,
611
607
  staticClasses45 as rightControlClasses,
612
608
  staticClasses85 as scrollToHorizontalClasses,
613
609
  staticClasses83 as scrollToVerticalClasses,
@@ -650,6 +646,7 @@ export {
650
646
  staticClasses118 as treeViewItemClasses,
651
647
  staticClasses as typographyClasses,
652
648
  typographyVariants,
649
+ uniqueId,
653
650
  useClickOutside,
654
651
  useComputation,
655
652
  useControlled,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"generic.js","sources":["../../../src/types/generic.ts"],"sourcesContent":["import { forwardRef } from \"react\";\nimport type {\n HvExtraDeepProps,\n HvExtraProps,\n} from \"@hitachivantara/uikit-react-shared\";\n\nexport type { HvExtraProps, HvExtraDeepProps };\n\ntype AsProp<C extends React.ElementType> = {\n /** Custom element type to override the root component */\n component?: C;\n};\n\ntype PropsToOmit<C extends React.ElementType, P> = keyof (AsProp<C> & P);\n\n// Workaround to fix the use of Omit with ComponentPropsWithoutRef\n// Without this the event handlers return any instead of the type for the chosen element\ntype FixComponentProps<T> = T extends any ? T : never;\n\ntype PolymorphicComponent<\n C extends React.ElementType,\n Props = {},\n> = React.PropsWithChildren<Props & AsProp<C>> &\n FixComponentProps<\n Omit<React.ComponentPropsWithoutRef<C>, PropsToOmit<C, Props>>\n >;\n\nexport type PolymorphicRef<C extends React.ElementType> =\n React.ComponentPropsWithRef<C>[\"ref\"];\n\nexport type PolymorphicComponentRef<\n C extends React.ElementType,\n Props = {},\n> = PolymorphicComponent<C, Props> & { ref?: PolymorphicRef<C> };\n\n/** HV Base Props. Extends `React.HTMLAttributes` of an element `E`, and filters `K` keys. */\nexport type HvBaseProps<\n E extends HTMLElement = HTMLDivElement,\n K extends keyof React.HTMLAttributes<E> = never,\n> = Omit<React.HTMLAttributes<E>, K>;\n\n/** This type allows to do a deep partial by applying the Partial type to each key recursively */\nexport type DeepPartial<T> = T extends {}\n ? Partial<{\n [P in keyof T]: DeepPartial<T[P]>;\n }>\n : T;\n\n/** This type combines the HvExtraProps and DeepPartial types */\nexport type HvExtraDeepPartialProps<T> = Partial<{\n [P in keyof T]: DeepPartial<T[P]> & HvExtraProps;\n}> &\n HvExtraProps;\n\nexport type Arrayable<T> = T | T[];\n\n/** React.forwardRef with fixed type declarations */\nexport function fixedForwardRef<T, P = {}>(\n render: (props: P, ref: React.Ref<T>) => React.ReactNode,\n): (props: P & React.RefAttributes<T>) => React.ReactNode {\n return forwardRef(render) as any;\n}\n\n// Source code from: https://github.com/piotrwitek/utility-types/blob/master/src/mapped-types.ts\n/**\n * Optional\n * @desc From `T` make a set of properties by key `K` become optional\n * @example\n * type Props = {\n * name: string;\n * age: number;\n * visible: boolean;\n * };\n *\n * // Expect: { name?: string; age?: number; visible?: boolean; }\n * type Props = Optional<Props>;\n *\n * // Expect: { name: string; age?: number; visible?: boolean; }\n * type Props = Optional<Props, 'age' | 'visible'>;\n */\nexport type HvOptional<T extends object, K extends keyof T = keyof T> = Omit<\n T,\n K\n> &\n Partial<Pick<T, K>>;\n"],"names":[],"mappings":";AAyDO,SAAS,gBACd,QACwD;AACxD,SAAO,WAAW,MAAM;AAC1B;"}
1
+ {"version":3,"file":"generic.js","sources":["../../../src/types/generic.ts"],"sourcesContent":["import { forwardRef } from \"react\";\nimport type {\n HvExtraDeepProps,\n HvExtraProps,\n} from \"@hitachivantara/uikit-react-shared\";\n\nexport type { HvExtraProps, HvExtraDeepProps };\n\ntype AsProp<C extends React.ElementType> = {\n /** Custom element type to override the root component */\n component?: C;\n};\n\ntype PropsToOmit<C extends React.ElementType, P> = keyof (AsProp<C> & P);\n\n// Workaround to fix the use of Omit with ComponentPropsWithoutRef\n// Without this the event handlers return any instead of the type for the chosen element\ntype FixComponentProps<T> = T extends any ? T : never;\n\ntype PolymorphicComponent<\n C extends React.ElementType,\n Props = {},\n> = React.PropsWithChildren<Props & AsProp<C>> &\n FixComponentProps<\n Omit<React.ComponentPropsWithoutRef<C>, PropsToOmit<C, Props>>\n >;\n\nexport type PolymorphicRef<C extends React.ElementType> =\n React.ComponentPropsWithRef<C>[\"ref\"];\n\nexport type PolymorphicComponentRef<\n C extends React.ElementType,\n Props = {},\n> = PolymorphicComponent<C, Props> & { ref?: PolymorphicRef<C> };\n\n/** HV Base Props. Extends `React.HTMLAttributes` of an element `E`, and filters `K` keys. */\nexport type HvBaseProps<\n E extends HTMLElement = HTMLDivElement,\n K extends keyof React.HTMLAttributes<E> = never,\n> = Omit<React.HTMLAttributes<E>, K>;\n\n/** This type allows to do a deep partial by applying the Partial type to each key recursively */\nexport type DeepPartial<T> = T extends {}\n ? Partial<{\n [P in keyof T]: DeepPartial<T[P]>;\n }>\n : T;\n\n/** This type extends DeepPartial to allow any extra properties */\nexport type HvExtraDeepPartialProps<T> = Partial<{\n [P in keyof T]: DeepPartial<T[P]> & Record<string, any>;\n}> &\n Record<string, any>;\n\nexport type Arrayable<T> = T | T[];\n\n/** React.forwardRef with fixed type declarations */\nexport function fixedForwardRef<T, P = {}>(\n // TODO: change `React.ReactElement | null` to `React.ReactNode` in v6 (requires ts@5+)\n render: (props: P, ref: React.Ref<T>) => React.ReactElement | null,\n): (props: P & React.RefAttributes<T>) => React.ReactElement | null {\n return forwardRef(render) as any;\n}\n\n// Source code from: https://github.com/piotrwitek/utility-types/blob/master/src/mapped-types.ts\n/**\n * Optional\n * @desc From `T` make a set of properties by key `K` become optional\n * @example\n * type Props = {\n * name: string;\n * age: number;\n * visible: boolean;\n * };\n *\n * // Expect: { name?: string; age?: number; visible?: boolean; }\n * type Props = Optional<Props>;\n *\n * // Expect: { name: string; age?: number; visible?: boolean; }\n * type Props = Optional<Props, 'age' | 'visible'>;\n */\nexport type HvOptional<T extends object, K extends keyof T = keyof T> = Omit<\n T,\n K\n> &\n Partial<Pick<T, K>>;\n"],"names":[],"mappings":";AAyDO,SAAS,gBAEd,QACkE;AAClE,SAAO,WAAW,MAAM;AAC1B;"}