@hitachivantara/uikit-react-core 5.28.1 → 5.30.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 (446) hide show
  1. package/dist/cjs/components/ActionBar/ActionBar.styles.cjs +1 -1
  2. package/dist/cjs/components/ActionBar/ActionBar.styles.cjs.map +1 -1
  3. package/dist/cjs/components/AppSwitcher/Action/Action.styles.cjs +5 -1
  4. package/dist/cjs/components/AppSwitcher/Action/Action.styles.cjs.map +1 -1
  5. package/dist/cjs/components/BaseCheckBox/BaseCheckBox.styles.cjs +2 -2
  6. package/dist/cjs/components/BaseCheckBox/BaseCheckBox.styles.cjs.map +1 -1
  7. package/dist/cjs/components/BaseDropdown/BaseDropdown.styles.cjs +16 -19
  8. package/dist/cjs/components/BaseDropdown/BaseDropdown.styles.cjs.map +1 -1
  9. package/dist/cjs/components/BaseInput/BaseInput.styles.cjs +27 -27
  10. package/dist/cjs/components/BaseInput/BaseInput.styles.cjs.map +1 -1
  11. package/dist/cjs/components/BaseRadio/BaseRadio.styles.cjs +2 -2
  12. package/dist/cjs/components/BaseRadio/BaseRadio.styles.cjs.map +1 -1
  13. package/dist/cjs/components/BaseSwitch/BaseSwitch.styles.cjs +35 -35
  14. package/dist/cjs/components/BaseSwitch/BaseSwitch.styles.cjs.map +1 -1
  15. package/dist/cjs/components/BulkActions/BulkActions.cjs +0 -5
  16. package/dist/cjs/components/BulkActions/BulkActions.cjs.map +1 -1
  17. package/dist/cjs/components/BulkActions/BulkActions.styles.cjs +12 -5
  18. package/dist/cjs/components/BulkActions/BulkActions.styles.cjs.map +1 -1
  19. package/dist/cjs/components/Button/Button.cjs +1 -1
  20. package/dist/cjs/components/Button/Button.cjs.map +1 -1
  21. package/dist/cjs/components/Button/Button.styles.cjs +56 -62
  22. package/dist/cjs/components/Button/Button.styles.cjs.map +1 -1
  23. package/dist/cjs/components/Calendar/CalendarHeader/CalendarHeader.cjs +14 -12
  24. package/dist/cjs/components/Calendar/CalendarHeader/CalendarHeader.cjs.map +1 -1
  25. package/dist/cjs/components/Calendar/CalendarHeader/CalendarHeader.styles.cjs +6 -11
  26. package/dist/cjs/components/Calendar/CalendarHeader/CalendarHeader.styles.cjs.map +1 -1
  27. package/dist/cjs/components/Calendar/SingleCalendar/CalendarCell.cjs +17 -15
  28. package/dist/cjs/components/Calendar/SingleCalendar/CalendarCell.cjs.map +1 -1
  29. package/dist/cjs/components/Calendar/SingleCalendar/CalendarCell.styles.cjs +1 -1
  30. package/dist/cjs/components/Calendar/SingleCalendar/CalendarCell.styles.cjs.map +1 -1
  31. package/dist/cjs/components/Card/Card.cjs +1 -1
  32. package/dist/cjs/components/Card/Card.cjs.map +1 -1
  33. package/dist/cjs/components/Card/Card.styles.cjs +5 -5
  34. package/dist/cjs/components/Card/Card.styles.cjs.map +1 -1
  35. package/dist/cjs/components/Card/Header/Header.cjs +12 -20
  36. package/dist/cjs/components/Card/Header/Header.cjs.map +1 -1
  37. package/dist/cjs/components/Card/Header/Header.styles.cjs +2 -0
  38. package/dist/cjs/components/Card/Header/Header.styles.cjs.map +1 -1
  39. package/dist/cjs/components/Carousel/Carousel.styles.cjs +7 -7
  40. package/dist/cjs/components/Carousel/Carousel.styles.cjs.map +1 -1
  41. package/dist/cjs/components/CheckBox/CheckBox.styles.cjs +2 -2
  42. package/dist/cjs/components/CheckBox/CheckBox.styles.cjs.map +1 -1
  43. package/dist/cjs/components/ColorPicker/ColorPicker.cjs +2 -8
  44. package/dist/cjs/components/ColorPicker/ColorPicker.cjs.map +1 -1
  45. package/dist/cjs/components/ColorPicker/ColorPicker.styles.cjs +8 -5
  46. package/dist/cjs/components/ColorPicker/ColorPicker.styles.cjs.map +1 -1
  47. package/dist/cjs/components/ColorPicker/Fields/Fields.cjs +9 -7
  48. package/dist/cjs/components/ColorPicker/Fields/Fields.cjs.map +1 -1
  49. package/dist/cjs/components/ColorPicker/Fields/Fields.styles.cjs +6 -7
  50. package/dist/cjs/components/ColorPicker/Fields/Fields.styles.cjs.map +1 -1
  51. package/dist/cjs/components/ColorPicker/Picker/Picker.cjs +13 -10
  52. package/dist/cjs/components/ColorPicker/Picker/Picker.cjs.map +1 -1
  53. package/dist/cjs/components/ColorPicker/Picker/Picker.styles.cjs +19 -19
  54. package/dist/cjs/components/ColorPicker/Picker/Picker.styles.cjs.map +1 -1
  55. package/dist/cjs/components/ColorPicker/PresetColors/PresetColors.cjs +9 -7
  56. package/dist/cjs/components/ColorPicker/PresetColors/PresetColors.cjs.map +1 -1
  57. package/dist/cjs/components/ColorPicker/PresetColors/PresetColors.styles.cjs +7 -7
  58. package/dist/cjs/components/ColorPicker/PresetColors/PresetColors.styles.cjs.map +1 -1
  59. package/dist/cjs/components/ColorPicker/SavedColors/SavedColors.cjs +11 -9
  60. package/dist/cjs/components/ColorPicker/SavedColors/SavedColors.cjs.map +1 -1
  61. package/dist/cjs/components/ColorPicker/SavedColors/SavedColors.styles.cjs +9 -9
  62. package/dist/cjs/components/ColorPicker/SavedColors/SavedColors.styles.cjs.map +1 -1
  63. package/dist/cjs/components/DatePicker/DatePicker.cjs +4 -18
  64. package/dist/cjs/components/DatePicker/DatePicker.cjs.map +1 -1
  65. package/dist/cjs/components/DatePicker/DatePicker.styles.cjs +6 -0
  66. package/dist/cjs/components/DatePicker/DatePicker.styles.cjs.map +1 -1
  67. package/dist/cjs/components/Dialog/Actions/Actions.cjs +4 -1
  68. package/dist/cjs/components/Dialog/Actions/Actions.cjs.map +1 -1
  69. package/dist/cjs/components/Dialog/Dialog.cjs +12 -20
  70. package/dist/cjs/components/Dialog/Dialog.cjs.map +1 -1
  71. package/dist/cjs/components/Dialog/Dialog.styles.cjs +1 -1
  72. package/dist/cjs/components/Dialog/Dialog.styles.cjs.map +1 -1
  73. package/dist/cjs/components/Dialog/Title/Title.cjs +5 -12
  74. package/dist/cjs/components/Dialog/Title/Title.cjs.map +1 -1
  75. package/dist/cjs/components/Dialog/Title/Title.styles.cjs +2 -1
  76. package/dist/cjs/components/Dialog/Title/Title.styles.cjs.map +1 -1
  77. package/dist/cjs/components/Dialog/context.cjs +10 -0
  78. package/dist/cjs/components/Dialog/context.cjs.map +1 -0
  79. package/dist/cjs/components/Drawer/Drawer.cjs +0 -27
  80. package/dist/cjs/components/Drawer/Drawer.cjs.map +1 -1
  81. package/dist/cjs/components/DropDownMenu/DropDownMenu.styles.cjs +3 -3
  82. package/dist/cjs/components/DropDownMenu/DropDownMenu.styles.cjs.map +1 -1
  83. package/dist/cjs/components/Dropdown/Dropdown.cjs +10 -16
  84. package/dist/cjs/components/Dropdown/Dropdown.cjs.map +1 -1
  85. package/dist/cjs/components/Dropdown/Dropdown.styles.cjs +16 -4
  86. package/dist/cjs/components/Dropdown/Dropdown.styles.cjs.map +1 -1
  87. package/dist/cjs/components/Dropdown/List/List.cjs +19 -17
  88. package/dist/cjs/components/Dropdown/List/List.cjs.map +1 -1
  89. package/dist/cjs/components/Dropdown/List/List.styles.cjs +2 -2
  90. package/dist/cjs/components/Dropdown/List/List.styles.cjs.map +1 -1
  91. package/dist/cjs/components/EmptyState/EmptyState.cjs +1 -5
  92. package/dist/cjs/components/EmptyState/EmptyState.cjs.map +1 -1
  93. package/dist/cjs/components/EmptyState/EmptyState.styles.cjs +1 -1
  94. package/dist/cjs/components/EmptyState/EmptyState.styles.cjs.map +1 -1
  95. package/dist/cjs/components/FileUploader/DropZone/DropZone.cjs +14 -12
  96. package/dist/cjs/components/FileUploader/DropZone/DropZone.cjs.map +1 -1
  97. package/dist/cjs/components/FileUploader/DropZone/DropZone.styles.cjs +8 -8
  98. package/dist/cjs/components/FileUploader/DropZone/DropZone.styles.cjs.map +1 -1
  99. package/dist/cjs/components/FileUploader/File/File.cjs +9 -7
  100. package/dist/cjs/components/FileUploader/File/File.cjs.map +1 -1
  101. package/dist/cjs/components/FileUploader/File/File.styles.cjs +5 -5
  102. package/dist/cjs/components/FileUploader/File/File.styles.cjs.map +1 -1
  103. package/dist/cjs/components/FileUploader/FileList/FileList.cjs +9 -7
  104. package/dist/cjs/components/FileUploader/FileList/FileList.cjs.map +1 -1
  105. package/dist/cjs/components/FileUploader/FileList/FileList.styles.cjs +2 -2
  106. package/dist/cjs/components/FileUploader/FileList/FileList.styles.cjs.map +1 -1
  107. package/dist/cjs/components/FileUploader/Preview/Preview.cjs +11 -9
  108. package/dist/cjs/components/FileUploader/Preview/Preview.cjs.map +1 -1
  109. package/dist/cjs/components/FileUploader/Preview/Preview.styles.cjs +5 -5
  110. package/dist/cjs/components/FileUploader/Preview/Preview.styles.cjs.map +1 -1
  111. package/dist/cjs/components/FilterGroup/Counter/Counter.cjs +7 -5
  112. package/dist/cjs/components/FilterGroup/Counter/Counter.cjs.map +1 -1
  113. package/dist/cjs/components/FilterGroup/Counter/Counter.styles.cjs +1 -1
  114. package/dist/cjs/components/FilterGroup/Counter/Counter.styles.cjs.map +1 -1
  115. package/dist/cjs/components/FilterGroup/FilterContent/FilterContent.cjs +23 -21
  116. package/dist/cjs/components/FilterGroup/FilterContent/FilterContent.cjs.map +1 -1
  117. package/dist/cjs/components/FilterGroup/FilterContent/FilterContent.styles.cjs +3 -3
  118. package/dist/cjs/components/FilterGroup/FilterContent/FilterContent.styles.cjs.map +1 -1
  119. package/dist/cjs/components/Forms/InfoMessage/InfoMessage.styles.cjs +1 -1
  120. package/dist/cjs/components/Forms/InfoMessage/InfoMessage.styles.cjs.map +1 -1
  121. package/dist/cjs/components/Forms/Label/Label.styles.cjs +1 -1
  122. package/dist/cjs/components/Forms/Label/Label.styles.cjs.map +1 -1
  123. package/dist/cjs/components/GlobalActions/GlobalActions.cjs +3 -5
  124. package/dist/cjs/components/GlobalActions/GlobalActions.cjs.map +1 -1
  125. package/dist/cjs/components/GlobalActions/GlobalActions.styles.cjs +7 -4
  126. package/dist/cjs/components/GlobalActions/GlobalActions.styles.cjs.map +1 -1
  127. package/dist/cjs/components/Header/Actions/Actions.styles.cjs +1 -1
  128. package/dist/cjs/components/Header/Actions/Actions.styles.cjs.map +1 -1
  129. package/dist/cjs/components/Header/Brand/Brand.cjs +2 -6
  130. package/dist/cjs/components/Header/Brand/Brand.cjs.map +1 -1
  131. package/dist/cjs/components/Header/Brand/Brand.styles.cjs +2 -1
  132. package/dist/cjs/components/Header/Brand/Brand.styles.cjs.map +1 -1
  133. package/dist/cjs/components/Header/Header.styles.cjs +4 -4
  134. package/dist/cjs/components/Header/Header.styles.cjs.map +1 -1
  135. package/dist/cjs/components/Header/Navigation/MenuBar/Bar.cjs +10 -8
  136. package/dist/cjs/components/Header/Navigation/MenuBar/Bar.cjs.map +1 -1
  137. package/dist/cjs/components/Header/Navigation/MenuBar/Bar.styles.cjs +5 -5
  138. package/dist/cjs/components/Header/Navigation/MenuBar/Bar.styles.cjs.map +1 -1
  139. package/dist/cjs/components/Header/Navigation/MenuBar/MenuBar.cjs +12 -9
  140. package/dist/cjs/components/Header/Navigation/MenuBar/MenuBar.cjs.map +1 -1
  141. package/dist/cjs/components/Header/Navigation/MenuItem/MenuItem.cjs +12 -10
  142. package/dist/cjs/components/Header/Navigation/MenuItem/MenuItem.cjs.map +1 -1
  143. package/dist/cjs/components/Header/Navigation/MenuItem/MenuItem.styles.cjs +20 -37
  144. package/dist/cjs/components/Header/Navigation/MenuItem/MenuItem.styles.cjs.map +1 -1
  145. package/dist/cjs/components/InlineEditor/InlineEditor.styles.cjs +3 -3
  146. package/dist/cjs/components/InlineEditor/InlineEditor.styles.cjs.map +1 -1
  147. package/dist/cjs/components/List/List.styles.cjs +1 -1
  148. package/dist/cjs/components/List/List.styles.cjs.map +1 -1
  149. package/dist/cjs/components/ListContainer/ListItem/ListItem.styles.cjs +3 -3
  150. package/dist/cjs/components/ListContainer/ListItem/ListItem.styles.cjs.map +1 -1
  151. package/dist/cjs/components/Pagination/Select.cjs +11 -9
  152. package/dist/cjs/components/Pagination/Select.cjs.map +1 -1
  153. package/dist/cjs/components/Pagination/Select.styles.cjs +2 -2
  154. package/dist/cjs/components/Pagination/Select.styles.cjs.map +1 -1
  155. package/dist/cjs/components/QueryBuilder/QueryBuilder.cjs +6 -1
  156. package/dist/cjs/components/QueryBuilder/QueryBuilder.cjs.map +1 -1
  157. package/dist/cjs/components/QueryBuilder/QueryBuilder.styles.cjs +10 -10
  158. package/dist/cjs/components/QueryBuilder/QueryBuilder.styles.cjs.map +1 -1
  159. package/dist/cjs/components/QueryBuilder/Rule/Rule.cjs +14 -10
  160. package/dist/cjs/components/QueryBuilder/Rule/Rule.cjs.map +1 -1
  161. package/dist/cjs/components/QueryBuilder/Rule/Rule.styles.cjs +9 -9
  162. package/dist/cjs/components/QueryBuilder/Rule/Rule.styles.cjs.map +1 -1
  163. package/dist/cjs/components/Radio/Radio.styles.cjs +2 -2
  164. package/dist/cjs/components/Radio/Radio.styles.cjs.map +1 -1
  165. package/dist/cjs/components/ScrollTo/Horizontal/HorizontalScrollListItem/HorizontalScrollListItem.cjs +13 -11
  166. package/dist/cjs/components/ScrollTo/Horizontal/HorizontalScrollListItem/HorizontalScrollListItem.cjs.map +1 -1
  167. package/dist/cjs/components/ScrollTo/Horizontal/HorizontalScrollListItem/HorizontalScrollListItem.styles.cjs +12 -12
  168. package/dist/cjs/components/ScrollTo/Horizontal/HorizontalScrollListItem/HorizontalScrollListItem.styles.cjs.map +1 -1
  169. package/dist/cjs/components/ScrollTo/Horizontal/ScrollToHorizontal.styles.cjs +11 -11
  170. package/dist/cjs/components/ScrollTo/Horizontal/ScrollToHorizontal.styles.cjs.map +1 -1
  171. package/dist/cjs/components/ScrollTo/Vertical/ScrollToVertical.styles.cjs +1 -1
  172. package/dist/cjs/components/ScrollTo/Vertical/ScrollToVertical.styles.cjs.map +1 -1
  173. package/dist/cjs/components/ScrollTo/Vertical/VerticalScrollListItem/VerticalScrollListItem.cjs +13 -11
  174. package/dist/cjs/components/ScrollTo/Vertical/VerticalScrollListItem/VerticalScrollListItem.cjs.map +1 -1
  175. package/dist/cjs/components/ScrollTo/Vertical/VerticalScrollListItem/VerticalScrollListItem.styles.cjs +12 -12
  176. package/dist/cjs/components/ScrollTo/Vertical/VerticalScrollListItem/VerticalScrollListItem.styles.cjs.map +1 -1
  177. package/dist/cjs/components/Slider/Slider.styles.cjs +4 -4
  178. package/dist/cjs/components/Slider/Slider.styles.cjs.map +1 -1
  179. package/dist/cjs/components/Snackbar/SnackbarContent/SnackbarContent.cjs +14 -12
  180. package/dist/cjs/components/Snackbar/SnackbarContent/SnackbarContent.cjs.map +1 -1
  181. package/dist/cjs/components/Snackbar/SnackbarContent/SnackbarContent.styles.cjs +1 -1
  182. package/dist/cjs/components/Snackbar/SnackbarContent/SnackbarContent.styles.cjs.map +1 -1
  183. package/dist/cjs/components/Switch/Switch.styles.cjs +1 -1
  184. package/dist/cjs/components/Switch/Switch.styles.cjs.map +1 -1
  185. package/dist/cjs/components/Tab/Tab.styles.cjs +4 -4
  186. package/dist/cjs/components/Tab/Tab.styles.cjs.map +1 -1
  187. package/dist/cjs/components/Table/TableCell/TableCell.cjs +2 -1
  188. package/dist/cjs/components/Table/TableCell/TableCell.cjs.map +1 -1
  189. package/dist/cjs/components/Table/TableCell/TableCell.styles.cjs +11 -11
  190. package/dist/cjs/components/Table/TableCell/TableCell.styles.cjs.map +1 -1
  191. package/dist/cjs/components/Table/TableHeader/TableHeader.cjs +27 -25
  192. package/dist/cjs/components/Table/TableHeader/TableHeader.cjs.map +1 -1
  193. package/dist/cjs/components/Table/TableHeader/TableHeader.styles.cjs +4 -4
  194. package/dist/cjs/components/Table/TableHeader/TableHeader.styles.cjs.map +1 -1
  195. package/dist/cjs/components/Table/TableRow/TableRow.cjs +4 -9
  196. package/dist/cjs/components/Table/TableRow/TableRow.cjs.map +1 -1
  197. package/dist/cjs/components/Table/TableRow/TableRow.styles.cjs +22 -11
  198. package/dist/cjs/components/Table/TableRow/TableRow.styles.cjs.map +1 -1
  199. package/dist/cjs/components/Table/utils/utils.cjs +1 -2
  200. package/dist/cjs/components/Table/utils/utils.cjs.map +1 -1
  201. package/dist/cjs/components/Tag/Tag.styles.cjs +1 -1
  202. package/dist/cjs/components/Tag/Tag.styles.cjs.map +1 -1
  203. package/dist/cjs/components/TagsInput/TagsInput.styles.cjs +6 -6
  204. package/dist/cjs/components/TagsInput/TagsInput.styles.cjs.map +1 -1
  205. package/dist/cjs/components/Tooltip/Tooltip.cjs +0 -1
  206. package/dist/cjs/components/Tooltip/Tooltip.cjs.map +1 -1
  207. package/dist/cjs/components/Tooltip/Tooltip.styles.cjs +25 -29
  208. package/dist/cjs/components/Tooltip/Tooltip.styles.cjs.map +1 -1
  209. package/dist/cjs/components/VerticalNavigation/Actions/Action.styles.cjs +1 -1
  210. package/dist/cjs/components/VerticalNavigation/Actions/Action.styles.cjs.map +1 -1
  211. package/dist/cjs/components/VerticalNavigation/Actions/Actions.styles.cjs +1 -1
  212. package/dist/cjs/components/VerticalNavigation/Actions/Actions.styles.cjs.map +1 -1
  213. package/dist/cjs/components/VerticalNavigation/NavigationSlider/NavigationSlider.cjs +11 -9
  214. package/dist/cjs/components/VerticalNavigation/NavigationSlider/NavigationSlider.cjs.map +1 -1
  215. package/dist/cjs/components/VerticalNavigation/NavigationSlider/NavigationSlider.styles.cjs +2 -2
  216. package/dist/cjs/components/VerticalNavigation/NavigationSlider/NavigationSlider.styles.cjs.map +1 -1
  217. package/dist/cjs/components/VerticalNavigation/TreeView/TreeViewItem.cjs +2 -1
  218. package/dist/cjs/components/VerticalNavigation/TreeView/TreeViewItem.cjs.map +1 -1
  219. package/dist/cjs/components/VerticalNavigation/TreeView/TreeViewItem.styles.cjs +3 -3
  220. package/dist/cjs/components/VerticalNavigation/TreeView/TreeViewItem.styles.cjs.map +1 -1
  221. package/dist/cjs/components/VerticalNavigation/VerticalNavigation.styles.cjs +1 -1
  222. package/dist/cjs/components/VerticalNavigation/VerticalNavigation.styles.cjs.map +1 -1
  223. package/dist/esm/components/ActionBar/ActionBar.styles.js +1 -1
  224. package/dist/esm/components/ActionBar/ActionBar.styles.js.map +1 -1
  225. package/dist/esm/components/AppSwitcher/Action/Action.styles.js +5 -1
  226. package/dist/esm/components/AppSwitcher/Action/Action.styles.js.map +1 -1
  227. package/dist/esm/components/BaseCheckBox/BaseCheckBox.styles.js +2 -2
  228. package/dist/esm/components/BaseCheckBox/BaseCheckBox.styles.js.map +1 -1
  229. package/dist/esm/components/BaseDropdown/BaseDropdown.styles.js +16 -19
  230. package/dist/esm/components/BaseDropdown/BaseDropdown.styles.js.map +1 -1
  231. package/dist/esm/components/BaseInput/BaseInput.styles.js +27 -27
  232. package/dist/esm/components/BaseInput/BaseInput.styles.js.map +1 -1
  233. package/dist/esm/components/BaseRadio/BaseRadio.styles.js +2 -2
  234. package/dist/esm/components/BaseRadio/BaseRadio.styles.js.map +1 -1
  235. package/dist/esm/components/BaseSwitch/BaseSwitch.styles.js +35 -35
  236. package/dist/esm/components/BaseSwitch/BaseSwitch.styles.js.map +1 -1
  237. package/dist/esm/components/BulkActions/BulkActions.js +0 -5
  238. package/dist/esm/components/BulkActions/BulkActions.js.map +1 -1
  239. package/dist/esm/components/BulkActions/BulkActions.styles.js +12 -5
  240. package/dist/esm/components/BulkActions/BulkActions.styles.js.map +1 -1
  241. package/dist/esm/components/Button/Button.js +2 -2
  242. package/dist/esm/components/Button/Button.js.map +1 -1
  243. package/dist/esm/components/Button/Button.styles.js +56 -62
  244. package/dist/esm/components/Button/Button.styles.js.map +1 -1
  245. package/dist/esm/components/Calendar/CalendarHeader/CalendarHeader.js +14 -12
  246. package/dist/esm/components/Calendar/CalendarHeader/CalendarHeader.js.map +1 -1
  247. package/dist/esm/components/Calendar/CalendarHeader/CalendarHeader.styles.js +6 -11
  248. package/dist/esm/components/Calendar/CalendarHeader/CalendarHeader.styles.js.map +1 -1
  249. package/dist/esm/components/Calendar/SingleCalendar/CalendarCell.js +17 -15
  250. package/dist/esm/components/Calendar/SingleCalendar/CalendarCell.js.map +1 -1
  251. package/dist/esm/components/Calendar/SingleCalendar/CalendarCell.styles.js +1 -1
  252. package/dist/esm/components/Calendar/SingleCalendar/CalendarCell.styles.js.map +1 -1
  253. package/dist/esm/components/Card/Card.js +1 -1
  254. package/dist/esm/components/Card/Card.js.map +1 -1
  255. package/dist/esm/components/Card/Card.styles.js +5 -5
  256. package/dist/esm/components/Card/Card.styles.js.map +1 -1
  257. package/dist/esm/components/Card/Header/Header.js +12 -20
  258. package/dist/esm/components/Card/Header/Header.js.map +1 -1
  259. package/dist/esm/components/Card/Header/Header.styles.js +2 -0
  260. package/dist/esm/components/Card/Header/Header.styles.js.map +1 -1
  261. package/dist/esm/components/Carousel/Carousel.styles.js +7 -7
  262. package/dist/esm/components/Carousel/Carousel.styles.js.map +1 -1
  263. package/dist/esm/components/CheckBox/CheckBox.styles.js +2 -2
  264. package/dist/esm/components/CheckBox/CheckBox.styles.js.map +1 -1
  265. package/dist/esm/components/ColorPicker/ColorPicker.js +2 -8
  266. package/dist/esm/components/ColorPicker/ColorPicker.js.map +1 -1
  267. package/dist/esm/components/ColorPicker/ColorPicker.styles.js +8 -5
  268. package/dist/esm/components/ColorPicker/ColorPicker.styles.js.map +1 -1
  269. package/dist/esm/components/ColorPicker/Fields/Fields.js +9 -7
  270. package/dist/esm/components/ColorPicker/Fields/Fields.js.map +1 -1
  271. package/dist/esm/components/ColorPicker/Fields/Fields.styles.js +6 -7
  272. package/dist/esm/components/ColorPicker/Fields/Fields.styles.js.map +1 -1
  273. package/dist/esm/components/ColorPicker/Picker/Picker.js +13 -10
  274. package/dist/esm/components/ColorPicker/Picker/Picker.js.map +1 -1
  275. package/dist/esm/components/ColorPicker/Picker/Picker.styles.js +19 -19
  276. package/dist/esm/components/ColorPicker/Picker/Picker.styles.js.map +1 -1
  277. package/dist/esm/components/ColorPicker/PresetColors/PresetColors.js +9 -7
  278. package/dist/esm/components/ColorPicker/PresetColors/PresetColors.js.map +1 -1
  279. package/dist/esm/components/ColorPicker/PresetColors/PresetColors.styles.js +7 -7
  280. package/dist/esm/components/ColorPicker/PresetColors/PresetColors.styles.js.map +1 -1
  281. package/dist/esm/components/ColorPicker/SavedColors/SavedColors.js +11 -9
  282. package/dist/esm/components/ColorPicker/SavedColors/SavedColors.js.map +1 -1
  283. package/dist/esm/components/ColorPicker/SavedColors/SavedColors.styles.js +9 -9
  284. package/dist/esm/components/ColorPicker/SavedColors/SavedColors.styles.js.map +1 -1
  285. package/dist/esm/components/DatePicker/DatePicker.js +4 -16
  286. package/dist/esm/components/DatePicker/DatePicker.js.map +1 -1
  287. package/dist/esm/components/DatePicker/DatePicker.styles.js +6 -0
  288. package/dist/esm/components/DatePicker/DatePicker.styles.js.map +1 -1
  289. package/dist/esm/components/Dialog/Actions/Actions.js +4 -1
  290. package/dist/esm/components/Dialog/Actions/Actions.js.map +1 -1
  291. package/dist/esm/components/Dialog/Dialog.js +14 -20
  292. package/dist/esm/components/Dialog/Dialog.js.map +1 -1
  293. package/dist/esm/components/Dialog/Dialog.styles.js +1 -1
  294. package/dist/esm/components/Dialog/Dialog.styles.js.map +1 -1
  295. package/dist/esm/components/Dialog/Title/Title.js +5 -12
  296. package/dist/esm/components/Dialog/Title/Title.js.map +1 -1
  297. package/dist/esm/components/Dialog/Title/Title.styles.js +2 -1
  298. package/dist/esm/components/Dialog/Title/Title.styles.js.map +1 -1
  299. package/dist/esm/components/Dialog/context.js +10 -0
  300. package/dist/esm/components/Dialog/context.js.map +1 -0
  301. package/dist/esm/components/Drawer/Drawer.js +0 -27
  302. package/dist/esm/components/Drawer/Drawer.js.map +1 -1
  303. package/dist/esm/components/DropDownMenu/DropDownMenu.styles.js +3 -3
  304. package/dist/esm/components/DropDownMenu/DropDownMenu.styles.js.map +1 -1
  305. package/dist/esm/components/Dropdown/Dropdown.js +12 -17
  306. package/dist/esm/components/Dropdown/Dropdown.js.map +1 -1
  307. package/dist/esm/components/Dropdown/Dropdown.styles.js +16 -4
  308. package/dist/esm/components/Dropdown/Dropdown.styles.js.map +1 -1
  309. package/dist/esm/components/Dropdown/List/List.js +19 -17
  310. package/dist/esm/components/Dropdown/List/List.js.map +1 -1
  311. package/dist/esm/components/Dropdown/List/List.styles.js +2 -2
  312. package/dist/esm/components/Dropdown/List/List.styles.js.map +1 -1
  313. package/dist/esm/components/EmptyState/EmptyState.js +3 -7
  314. package/dist/esm/components/EmptyState/EmptyState.js.map +1 -1
  315. package/dist/esm/components/EmptyState/EmptyState.styles.js +1 -1
  316. package/dist/esm/components/EmptyState/EmptyState.styles.js.map +1 -1
  317. package/dist/esm/components/FileUploader/DropZone/DropZone.js +14 -12
  318. package/dist/esm/components/FileUploader/DropZone/DropZone.js.map +1 -1
  319. package/dist/esm/components/FileUploader/DropZone/DropZone.styles.js +8 -8
  320. package/dist/esm/components/FileUploader/DropZone/DropZone.styles.js.map +1 -1
  321. package/dist/esm/components/FileUploader/File/File.js +9 -7
  322. package/dist/esm/components/FileUploader/File/File.js.map +1 -1
  323. package/dist/esm/components/FileUploader/File/File.styles.js +5 -5
  324. package/dist/esm/components/FileUploader/File/File.styles.js.map +1 -1
  325. package/dist/esm/components/FileUploader/FileList/FileList.js +9 -7
  326. package/dist/esm/components/FileUploader/FileList/FileList.js.map +1 -1
  327. package/dist/esm/components/FileUploader/FileList/FileList.styles.js +2 -2
  328. package/dist/esm/components/FileUploader/FileList/FileList.styles.js.map +1 -1
  329. package/dist/esm/components/FileUploader/Preview/Preview.js +11 -9
  330. package/dist/esm/components/FileUploader/Preview/Preview.js.map +1 -1
  331. package/dist/esm/components/FileUploader/Preview/Preview.styles.js +5 -5
  332. package/dist/esm/components/FileUploader/Preview/Preview.styles.js.map +1 -1
  333. package/dist/esm/components/FilterGroup/Counter/Counter.js +7 -5
  334. package/dist/esm/components/FilterGroup/Counter/Counter.js.map +1 -1
  335. package/dist/esm/components/FilterGroup/Counter/Counter.styles.js +1 -1
  336. package/dist/esm/components/FilterGroup/Counter/Counter.styles.js.map +1 -1
  337. package/dist/esm/components/FilterGroup/FilterContent/FilterContent.js +23 -21
  338. package/dist/esm/components/FilterGroup/FilterContent/FilterContent.js.map +1 -1
  339. package/dist/esm/components/FilterGroup/FilterContent/FilterContent.styles.js +3 -3
  340. package/dist/esm/components/FilterGroup/FilterContent/FilterContent.styles.js.map +1 -1
  341. package/dist/esm/components/Forms/InfoMessage/InfoMessage.styles.js +1 -1
  342. package/dist/esm/components/Forms/InfoMessage/InfoMessage.styles.js.map +1 -1
  343. package/dist/esm/components/Forms/Label/Label.styles.js +1 -1
  344. package/dist/esm/components/Forms/Label/Label.styles.js.map +1 -1
  345. package/dist/esm/components/GlobalActions/GlobalActions.js +3 -5
  346. package/dist/esm/components/GlobalActions/GlobalActions.js.map +1 -1
  347. package/dist/esm/components/GlobalActions/GlobalActions.styles.js +7 -4
  348. package/dist/esm/components/GlobalActions/GlobalActions.styles.js.map +1 -1
  349. package/dist/esm/components/Header/Actions/Actions.styles.js +1 -1
  350. package/dist/esm/components/Header/Actions/Actions.styles.js.map +1 -1
  351. package/dist/esm/components/Header/Brand/Brand.js +2 -6
  352. package/dist/esm/components/Header/Brand/Brand.js.map +1 -1
  353. package/dist/esm/components/Header/Brand/Brand.styles.js +2 -1
  354. package/dist/esm/components/Header/Brand/Brand.styles.js.map +1 -1
  355. package/dist/esm/components/Header/Header.styles.js +4 -4
  356. package/dist/esm/components/Header/Header.styles.js.map +1 -1
  357. package/dist/esm/components/Header/Navigation/MenuBar/Bar.js +10 -8
  358. package/dist/esm/components/Header/Navigation/MenuBar/Bar.js.map +1 -1
  359. package/dist/esm/components/Header/Navigation/MenuBar/Bar.styles.js +5 -5
  360. package/dist/esm/components/Header/Navigation/MenuBar/Bar.styles.js.map +1 -1
  361. package/dist/esm/components/Header/Navigation/MenuBar/MenuBar.js +12 -9
  362. package/dist/esm/components/Header/Navigation/MenuBar/MenuBar.js.map +1 -1
  363. package/dist/esm/components/Header/Navigation/MenuItem/MenuItem.js +12 -10
  364. package/dist/esm/components/Header/Navigation/MenuItem/MenuItem.js.map +1 -1
  365. package/dist/esm/components/Header/Navigation/MenuItem/MenuItem.styles.js +20 -37
  366. package/dist/esm/components/Header/Navigation/MenuItem/MenuItem.styles.js.map +1 -1
  367. package/dist/esm/components/InlineEditor/InlineEditor.styles.js +3 -3
  368. package/dist/esm/components/InlineEditor/InlineEditor.styles.js.map +1 -1
  369. package/dist/esm/components/List/List.styles.js +1 -1
  370. package/dist/esm/components/List/List.styles.js.map +1 -1
  371. package/dist/esm/components/ListContainer/ListItem/ListItem.styles.js +3 -3
  372. package/dist/esm/components/ListContainer/ListItem/ListItem.styles.js.map +1 -1
  373. package/dist/esm/components/Pagination/Select.js +11 -9
  374. package/dist/esm/components/Pagination/Select.js.map +1 -1
  375. package/dist/esm/components/Pagination/Select.styles.js +2 -2
  376. package/dist/esm/components/Pagination/Select.styles.js.map +1 -1
  377. package/dist/esm/components/QueryBuilder/QueryBuilder.js +8 -2
  378. package/dist/esm/components/QueryBuilder/QueryBuilder.js.map +1 -1
  379. package/dist/esm/components/QueryBuilder/QueryBuilder.styles.js +10 -10
  380. package/dist/esm/components/QueryBuilder/QueryBuilder.styles.js.map +1 -1
  381. package/dist/esm/components/QueryBuilder/Rule/Rule.js +16 -11
  382. package/dist/esm/components/QueryBuilder/Rule/Rule.js.map +1 -1
  383. package/dist/esm/components/QueryBuilder/Rule/Rule.styles.js +9 -9
  384. package/dist/esm/components/QueryBuilder/Rule/Rule.styles.js.map +1 -1
  385. package/dist/esm/components/Radio/Radio.styles.js +2 -2
  386. package/dist/esm/components/Radio/Radio.styles.js.map +1 -1
  387. package/dist/esm/components/ScrollTo/Horizontal/HorizontalScrollListItem/HorizontalScrollListItem.js +13 -11
  388. package/dist/esm/components/ScrollTo/Horizontal/HorizontalScrollListItem/HorizontalScrollListItem.js.map +1 -1
  389. package/dist/esm/components/ScrollTo/Horizontal/HorizontalScrollListItem/HorizontalScrollListItem.styles.js +12 -12
  390. package/dist/esm/components/ScrollTo/Horizontal/HorizontalScrollListItem/HorizontalScrollListItem.styles.js.map +1 -1
  391. package/dist/esm/components/ScrollTo/Horizontal/ScrollToHorizontal.styles.js +11 -11
  392. package/dist/esm/components/ScrollTo/Horizontal/ScrollToHorizontal.styles.js.map +1 -1
  393. package/dist/esm/components/ScrollTo/Vertical/ScrollToVertical.styles.js +1 -1
  394. package/dist/esm/components/ScrollTo/Vertical/ScrollToVertical.styles.js.map +1 -1
  395. package/dist/esm/components/ScrollTo/Vertical/VerticalScrollListItem/VerticalScrollListItem.js +13 -11
  396. package/dist/esm/components/ScrollTo/Vertical/VerticalScrollListItem/VerticalScrollListItem.js.map +1 -1
  397. package/dist/esm/components/ScrollTo/Vertical/VerticalScrollListItem/VerticalScrollListItem.styles.js +12 -12
  398. package/dist/esm/components/ScrollTo/Vertical/VerticalScrollListItem/VerticalScrollListItem.styles.js.map +1 -1
  399. package/dist/esm/components/Slider/Slider.styles.js +4 -4
  400. package/dist/esm/components/Slider/Slider.styles.js.map +1 -1
  401. package/dist/esm/components/Snackbar/SnackbarContent/SnackbarContent.js +14 -12
  402. package/dist/esm/components/Snackbar/SnackbarContent/SnackbarContent.js.map +1 -1
  403. package/dist/esm/components/Snackbar/SnackbarContent/SnackbarContent.styles.js +1 -1
  404. package/dist/esm/components/Snackbar/SnackbarContent/SnackbarContent.styles.js.map +1 -1
  405. package/dist/esm/components/Switch/Switch.styles.js +1 -1
  406. package/dist/esm/components/Switch/Switch.styles.js.map +1 -1
  407. package/dist/esm/components/Tab/Tab.styles.js +4 -4
  408. package/dist/esm/components/Tab/Tab.styles.js.map +1 -1
  409. package/dist/esm/components/Table/TableCell/TableCell.js +2 -1
  410. package/dist/esm/components/Table/TableCell/TableCell.js.map +1 -1
  411. package/dist/esm/components/Table/TableCell/TableCell.styles.js +11 -11
  412. package/dist/esm/components/Table/TableCell/TableCell.styles.js.map +1 -1
  413. package/dist/esm/components/Table/TableHeader/TableHeader.js +27 -25
  414. package/dist/esm/components/Table/TableHeader/TableHeader.js.map +1 -1
  415. package/dist/esm/components/Table/TableHeader/TableHeader.styles.js +4 -4
  416. package/dist/esm/components/Table/TableHeader/TableHeader.styles.js.map +1 -1
  417. package/dist/esm/components/Table/TableRow/TableRow.js +4 -9
  418. package/dist/esm/components/Table/TableRow/TableRow.js.map +1 -1
  419. package/dist/esm/components/Table/TableRow/TableRow.styles.js +22 -11
  420. package/dist/esm/components/Table/TableRow/TableRow.styles.js.map +1 -1
  421. package/dist/esm/components/Table/utils/utils.js +1 -2
  422. package/dist/esm/components/Table/utils/utils.js.map +1 -1
  423. package/dist/esm/components/Tag/Tag.styles.js +1 -1
  424. package/dist/esm/components/Tag/Tag.styles.js.map +1 -1
  425. package/dist/esm/components/TagsInput/TagsInput.styles.js +6 -6
  426. package/dist/esm/components/TagsInput/TagsInput.styles.js.map +1 -1
  427. package/dist/esm/components/Tooltip/Tooltip.js +1 -2
  428. package/dist/esm/components/Tooltip/Tooltip.js.map +1 -1
  429. package/dist/esm/components/Tooltip/Tooltip.styles.js +25 -29
  430. package/dist/esm/components/Tooltip/Tooltip.styles.js.map +1 -1
  431. package/dist/esm/components/VerticalNavigation/Actions/Action.styles.js +1 -1
  432. package/dist/esm/components/VerticalNavigation/Actions/Action.styles.js.map +1 -1
  433. package/dist/esm/components/VerticalNavigation/Actions/Actions.styles.js +1 -1
  434. package/dist/esm/components/VerticalNavigation/Actions/Actions.styles.js.map +1 -1
  435. package/dist/esm/components/VerticalNavigation/NavigationSlider/NavigationSlider.js +11 -9
  436. package/dist/esm/components/VerticalNavigation/NavigationSlider/NavigationSlider.js.map +1 -1
  437. package/dist/esm/components/VerticalNavigation/NavigationSlider/NavigationSlider.styles.js +2 -2
  438. package/dist/esm/components/VerticalNavigation/NavigationSlider/NavigationSlider.styles.js.map +1 -1
  439. package/dist/esm/components/VerticalNavigation/TreeView/TreeViewItem.js +2 -1
  440. package/dist/esm/components/VerticalNavigation/TreeView/TreeViewItem.js.map +1 -1
  441. package/dist/esm/components/VerticalNavigation/TreeView/TreeViewItem.styles.js +3 -3
  442. package/dist/esm/components/VerticalNavigation/TreeView/TreeViewItem.styles.js.map +1 -1
  443. package/dist/esm/components/VerticalNavigation/VerticalNavigation.styles.js +1 -1
  444. package/dist/esm/components/VerticalNavigation/VerticalNavigation.styles.js.map +1 -1
  445. package/dist/types/index.d.ts +371 -320
  446. package/package.json +5 -5
@@ -8,7 +8,7 @@ const {
8
8
  root: {
9
9
  verticalAlign: "inherit",
10
10
  textAlign: "left",
11
- padding: `${theme.table.cellPaddingTop} ${theme.space.xs} ${theme.table.cellPaddingBottom} ${theme.spacing(4)}`,
11
+ padding: `calc(${theme.space.xs} - 2px ) ${theme.space.xs} calc(${theme.space.xs} - 3px ) ${theme.spacing(4)}`,
12
12
  borderBottom: `1px solid ${theme.colors.atmo4}`
13
13
  },
14
14
  /** Styles applied to the cell when it's in the table head. */
@@ -16,7 +16,7 @@ const {
16
16
  height: 52,
17
17
  verticalAlign: "top",
18
18
  backgroundColor: theme.colors.atmo1,
19
- borderTop: `1px solid ${theme.table.headerBorderTopColor}`,
19
+ borderTop: "1px solid transparent",
20
20
  borderBottom: `1px solid ${theme.colors.atmo4}`,
21
21
  ...theme.typography.label
22
22
  },
@@ -61,7 +61,7 @@ const {
61
61
  padding: 0,
62
62
  width: 32,
63
63
  maxWidth: 32,
64
- borderRight: theme.table.cellBorder
64
+ borderRight: `solid 1px ${theme.colors.atmo4}`
65
65
  },
66
66
  /** Styles applied to the component root when its variant is actions */
67
67
  variantActions: {
@@ -69,7 +69,7 @@ const {
69
69
  padding: 0,
70
70
  width: 32,
71
71
  maxWidth: 32,
72
- borderLeft: theme.table.cellBorder
72
+ borderLeft: `solid 1px ${theme.colors.atmo4}`
73
73
  },
74
74
  /** Styles applied to the component root when its variant is expand */
75
75
  variantExpand: {
@@ -96,7 +96,7 @@ const {
96
96
  /** Styles applied to the cell when its variant is list and actions. */
97
97
  variantListactions: {
98
98
  verticalAlign: "middle",
99
- borderLeft: theme.table.cellListBorder,
99
+ borderLeft: "none",
100
100
  paddingLeft: "0",
101
101
  textAlign: "center",
102
102
  width: 130,
@@ -104,7 +104,7 @@ const {
104
104
  },
105
105
  /** Styles applied to the cell when its variant is list and checkbox. */
106
106
  variantListcheckbox: {
107
- borderRight: theme.table.cellListBorder,
107
+ borderRight: "none",
108
108
  padding: 0,
109
109
  textAlign: "center",
110
110
  width: 34,
@@ -121,22 +121,22 @@ const {
121
121
  },
122
122
  /** Styles applied to the cell when it's part of the last sticky to the left column. */
123
123
  stickyColumnMostLeft: {
124
- borderRight: theme.table.cellBorder
124
+ borderRight: `solid 1px ${theme.colors.atmo4}`
125
125
  },
126
126
  /** Styles applied to the cell when it's part of the first right sticky column. */
127
127
  stickyColumnLeastRight: {
128
- borderLeft: theme.table.cellBorder
128
+ borderLeft: `solid 1px ${theme.colors.atmo4}`
129
129
  },
130
130
  /** Styles applied to the cell when it's part of the first column in the group. */
131
131
  groupColumnMostLeft: {
132
- borderLeft: theme.table.cellBorder,
132
+ borderLeft: `solid 1px ${theme.colors.atmo4}`,
133
133
  "&:first-of-type": {
134
134
  borderLeft: 0
135
135
  }
136
136
  },
137
137
  /** Styles applied to the cell when it's part of the last column in the group. */
138
138
  groupColumnMostRight: {
139
- borderRight: theme.table.cellBorder,
139
+ borderRight: `solid 1px ${theme.colors.atmo4}`,
140
140
  // due to the ":has()" selector not being supported in browsers,
141
141
  // this need to be managed with inline styles
142
142
  // To be uncommented when not needed (see comment in src/Table/hooks/useSticky.js)
@@ -150,7 +150,7 @@ const {
150
150
  },
151
151
  /** Styles applied to the cell when it's part of a resizable column. */
152
152
  resizable: {
153
- borderRight: theme.table.cellBorder
153
+ borderRight: `solid 1px ${theme.colors.atmo4}`
154
154
  },
155
155
  /** Styles applied to the cell when it's part of a resizing column. */
156
156
  resizing: {
@@ -1 +1 @@
1
- {"version":3,"file":"TableCell.styles.js","sources":["../../../../../src/components/Table/TableCell/TableCell.styles.tsx"],"sourcesContent":["import { CSSProperties } from \"react\";\n\nimport { theme } from \"@hitachivantara/uikit-styles\";\n\nimport { createClasses } from \"@core/utils/classes\";\n\nexport const { staticClasses, useClasses } = createClasses(\"HvTableCell\", {\n /** Styles applied to the component root class. */\n root: {\n verticalAlign: \"inherit\",\n textAlign: \"left\",\n padding: `${theme.table.cellPaddingTop} ${theme.space.xs} ${\n theme.table.cellPaddingBottom\n } ${theme.spacing(4)}`,\n borderBottom: `1px solid ${theme.colors.atmo4}`,\n },\n /** Styles applied to the cell when it's in the table head. */\n head: {\n height: 52,\n verticalAlign: \"top\",\n\n backgroundColor: theme.colors.atmo1,\n borderTop: `1px solid ${theme.table.headerBorderTopColor}`,\n borderBottom: `1px solid ${theme.colors.atmo4}`,\n ...(theme.typography.label as CSSProperties),\n },\n /** Styles applied to the cell when it's in the table body. */\n body: {\n minHeight: 32,\n \"td&\": {\n height: 32,\n },\n backgroundColor: \"inherit\",\n ...(theme.typography.body as CSSProperties),\n fontFamily: theme.fontFamily.body,\n },\n /** Styles applied to the cell when it's in the table footer. */\n footer: {},\n /** Styles applied to the cell when it's part of a sorted column. */\n sorted: {},\n /** Styles applied to the component root when it is left aligned */\n alignLeft: {\n textAlign: \"left\",\n },\n /** Styles applied to the component root when it is center aligned */\n alignCenter: {\n textAlign: \"center\",\n },\n /** Styles applied to the component root when it is right aligned */\n alignRight: {\n textAlign: \"right\",\n flexDirection: \"row-reverse\",\n },\n /** Styles applied to the component root when it is justified */\n alignJustify: {\n textAlign: \"justify\",\n },\n\n /** Styles applied to the component root when its variant is none */\n variantNone: {\n padding: 0,\n },\n /** Styles applied to the component root when its variant is checkbox */\n variantCheckbox: {\n boxSizing: \"content-box\",\n padding: 0,\n width: 32,\n maxWidth: 32,\n borderRight: theme.table.cellBorder,\n },\n /** Styles applied to the component root when its variant is actions */\n variantActions: {\n boxSizing: \"content-box\",\n padding: 0,\n width: 32,\n maxWidth: 32,\n borderLeft: theme.table.cellBorder,\n },\n /** Styles applied to the component root when its variant is expand */\n variantExpand: {\n paddingLeft: 0,\n paddingTop: 0,\n paddingBottom: 0,\n },\n /** Styles applied to the component root when its variant is list */\n variantList: {\n minHeight: 52,\n \"td&\": {\n height: 52,\n },\n padding: \"0, 0, 0, 32px\",\n border: 0,\n },\n /** Styles applied to the cell when its variant is list and the type is head. */\n variantListHead: {\n backgroundColor: \"inherit\",\n \"td&\": {\n height: 16,\n },\n },\n /** Styles applied to the cell when its variant is list and actions. */\n variantListactions: {\n verticalAlign: \"middle\",\n borderLeft: theme.table.cellListBorder,\n paddingLeft: \"0\",\n textAlign: \"center\",\n width: 130,\n maxWidth: 130,\n },\n /** Styles applied to the cell when its variant is list and checkbox. */\n variantListcheckbox: {\n borderRight: theme.table.cellListBorder,\n padding: 0,\n textAlign: \"center\",\n width: 34,\n maxWidth: 34,\n },\n /** Styles applied to the cell when it's part of a sticky column. */\n stickyColumn: {\n position: \"sticky\",\n zIndex: 2,\n background: theme.colors.atmo2,\n\n \"&$groupColumnMostRight+$stickyColumn\": {\n borderLeft: 0,\n },\n },\n /** Styles applied to the cell when it's part of the last sticky to the left column. */\n stickyColumnMostLeft: {\n borderRight: theme.table.cellBorder,\n },\n /** Styles applied to the cell when it's part of the first right sticky column. */\n stickyColumnLeastRight: {\n borderLeft: theme.table.cellBorder,\n },\n\n /** Styles applied to the cell when it's part of the first column in the group. */\n groupColumnMostLeft: {\n borderLeft: theme.table.cellBorder,\n\n \"&:first-of-type\": {\n borderLeft: 0,\n },\n },\n /** Styles applied to the cell when it's part of the last column in the group. */\n groupColumnMostRight: {\n borderRight: theme.table.cellBorder,\n\n // due to the \":has()\" selector not being supported in browsers,\n // this need to be managed with inline styles\n // To be uncommented when not needed (see comment in src/Table/hooks/useSticky.js)\n // \"&:last-child,&:has(+ $stickyColumnLeastRight)\": {\n \"&:last-child\": {\n borderRight: 0,\n },\n\n \"&+:not($stickyColumn)\": {\n borderLeft: 0,\n },\n },\n\n /** Styles applied to the cell when it's part of a resizable column. */\n resizable: {\n borderRight: theme.table.cellBorder,\n },\n /** Styles applied to the cell when it's part of a resizing column. */\n resizing: {\n borderRight: `solid 2px ${theme.colors.secondary}`,\n },\n});\n"],"names":["staticClasses","useClasses","createClasses","root","verticalAlign","textAlign","padding","theme","table","cellPaddingTop","space","xs","cellPaddingBottom","spacing","borderBottom","colors","atmo4","head","height","backgroundColor","atmo1","borderTop","headerBorderTopColor","typography","label","body","minHeight","fontFamily","footer","sorted","alignLeft","alignCenter","alignRight","flexDirection","alignJustify","variantNone","variantCheckbox","boxSizing","width","maxWidth","borderRight","cellBorder","variantActions","borderLeft","variantExpand","paddingLeft","paddingTop","paddingBottom","variantList","border","variantListHead","variantListactions","cellListBorder","variantListcheckbox","stickyColumn","position","zIndex","background","atmo2","stickyColumnMostLeft","stickyColumnLeastRight","groupColumnMostLeft","groupColumnMostRight","resizable","resizing","secondary"],"mappings":";;AAMa,MAAA;AAAA,EAAEA;AAAAA,EAAeC;AAAW,IAAIC,cAAc,eAAe;AAAA;AAAA,EAExEC,MAAM;AAAA,IACJC,eAAe;AAAA,IACfC,WAAW;AAAA,IACXC,SAAU,GAAEC,MAAMC,MAAMC,cAAe,IAAGF,MAAMG,MAAMC,EAAG,IACvDJ,MAAMC,MAAMI,iBACb,IAAGL,MAAMM,QAAQ,CAAC,CAAE;AAAA,IACrBC,cAAe,aAAYP,MAAMQ,OAAOC,KAAM;AAAA,EAChD;AAAA;AAAA,EAEAC,MAAM;AAAA,IACJC,QAAQ;AAAA,IACRd,eAAe;AAAA,IAEfe,iBAAiBZ,MAAMQ,OAAOK;AAAAA,IAC9BC,WAAY,aAAYd,MAAMC,MAAMc,oBAAqB;AAAA,IACzDR,cAAe,aAAYP,MAAMQ,OAAOC,KAAM;AAAA,IAC9C,GAAIT,MAAMgB,WAAWC;AAAAA,EACvB;AAAA;AAAA,EAEAC,MAAM;AAAA,IACJC,WAAW;AAAA,IACX,OAAO;AAAA,MACLR,QAAQ;AAAA,IACV;AAAA,IACAC,iBAAiB;AAAA,IACjB,GAAIZ,MAAMgB,WAAWE;AAAAA,IACrBE,YAAYpB,MAAMoB,WAAWF;AAAAA,EAC/B;AAAA;AAAA,EAEAG,QAAQ,CAAC;AAAA;AAAA,EAETC,QAAQ,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;AAAA,IACXiC,OAAO;AAAA,IACPC,UAAU;AAAA,EACZ;AAAA;AAAA,EAEAe,cAAc;AAAA,IACZC,UAAU;AAAA,IACVC,QAAQ;AAAA,IACRC,YAAYlD,MAAMQ,OAAO2C;AAAAA,IAEzB,wCAAwC;AAAA,MACtCf,YAAY;AAAA,IACd;AAAA,EACF;AAAA;AAAA,EAEAgB,sBAAsB;AAAA,IACpBnB,aAAajC,MAAMC,MAAMiC;AAAAA,EAC3B;AAAA;AAAA,EAEAmB,wBAAwB;AAAA,IACtBjB,YAAYpC,MAAMC,MAAMiC;AAAAA,EAC1B;AAAA;AAAA,EAGAoB,qBAAqB;AAAA,IACnBlB,YAAYpC,MAAMC,MAAMiC;AAAAA,IAExB,mBAAmB;AAAA,MACjBE,YAAY;AAAA,IACd;AAAA,EACF;AAAA;AAAA,EAEAmB,sBAAsB;AAAA,IACpBtB,aAAajC,MAAMC,MAAMiC;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA,IAMzB,gBAAgB;AAAA,MACdD,aAAa;AAAA,IACf;AAAA,IAEA,yBAAyB;AAAA,MACvBG,YAAY;AAAA,IACd;AAAA,EACF;AAAA;AAAA,EAGAoB,WAAW;AAAA,IACTvB,aAAajC,MAAMC,MAAMiC;AAAAA,EAC3B;AAAA;AAAA,EAEAuB,UAAU;AAAA,IACRxB,aAAc,aAAYjC,MAAMQ,OAAOkD,SAAU;AAAA,EACnD;AACF,CAAC;"}
1
+ {"version":3,"file":"TableCell.styles.js","sources":["../../../../../src/components/Table/TableCell/TableCell.styles.tsx"],"sourcesContent":["import { CSSProperties } from \"react\";\n\nimport { theme } from \"@hitachivantara/uikit-styles\";\n\nimport { createClasses } from \"@core/utils/classes\";\n\nexport const { staticClasses, useClasses } = createClasses(\"HvTableCell\", {\n /** Styles applied to the component root class. */\n root: {\n verticalAlign: \"inherit\",\n textAlign: \"left\",\n padding: `calc(${theme.space.xs} - 2px ) ${theme.space.xs} calc(${\n theme.space.xs\n } - 3px ) ${theme.spacing(4)}`,\n borderBottom: `1px solid ${theme.colors.atmo4}`,\n },\n /** Styles applied to the cell when it's in the table head. */\n head: {\n height: 52,\n verticalAlign: \"top\",\n\n backgroundColor: theme.colors.atmo1,\n borderTop: \"1px solid transparent\",\n borderBottom: `1px solid ${theme.colors.atmo4}`,\n ...(theme.typography.label as CSSProperties),\n },\n /** Styles applied to the cell when it's in the table body. */\n body: {\n minHeight: 32,\n \"td&\": {\n height: 32,\n },\n backgroundColor: \"inherit\",\n ...(theme.typography.body as CSSProperties),\n fontFamily: theme.fontFamily.body,\n },\n /** Styles applied to the cell when it's in the table footer. */\n footer: {},\n /** Styles applied to the cell when it's part of a sorted column. */\n sorted: {},\n /** Styles applied to the component root when it is left aligned */\n alignLeft: {\n textAlign: \"left\",\n },\n /** Styles applied to the component root when it is center aligned */\n alignCenter: {\n textAlign: \"center\",\n },\n /** Styles applied to the component root when it is right aligned */\n alignRight: {\n textAlign: \"right\",\n flexDirection: \"row-reverse\",\n },\n /** Styles applied to the component root when it is justified */\n alignJustify: {\n textAlign: \"justify\",\n },\n\n /** Styles applied to the component root when its variant is none */\n variantNone: {\n padding: 0,\n },\n /** Styles applied to the component root when its variant is checkbox */\n variantCheckbox: {\n boxSizing: \"content-box\",\n padding: 0,\n width: 32,\n maxWidth: 32,\n borderRight: `solid 1px ${theme.colors.atmo4}`,\n },\n /** Styles applied to the component root when its variant is actions */\n variantActions: {\n boxSizing: \"content-box\",\n padding: 0,\n width: 32,\n maxWidth: 32,\n borderLeft: `solid 1px ${theme.colors.atmo4}`,\n },\n /** Styles applied to the component root when its variant is expand */\n variantExpand: {\n paddingLeft: 0,\n paddingTop: 0,\n paddingBottom: 0,\n },\n /** Styles applied to the component root when its variant is list */\n variantList: {\n minHeight: 52,\n \"td&\": {\n height: 52,\n },\n padding: \"0, 0, 0, 32px\",\n border: 0,\n },\n /** Styles applied to the cell when its variant is list and the type is head. */\n variantListHead: {\n backgroundColor: \"inherit\",\n \"td&\": {\n height: 16,\n },\n },\n /** Styles applied to the cell when its variant is list and actions. */\n variantListactions: {\n verticalAlign: \"middle\",\n borderLeft: \"none\",\n paddingLeft: \"0\",\n textAlign: \"center\",\n width: 130,\n maxWidth: 130,\n },\n /** Styles applied to the cell when its variant is list and checkbox. */\n variantListcheckbox: {\n borderRight: \"none\",\n padding: 0,\n textAlign: \"center\",\n width: 34,\n maxWidth: 34,\n },\n /** Styles applied to the cell when it's part of a sticky column. */\n stickyColumn: {\n position: \"sticky\",\n zIndex: 2,\n background: theme.colors.atmo2,\n\n \"&$groupColumnMostRight+$stickyColumn\": {\n borderLeft: 0,\n },\n },\n /** Styles applied to the cell when it's part of the last sticky to the left column. */\n stickyColumnMostLeft: {\n borderRight: `solid 1px ${theme.colors.atmo4}`,\n },\n /** Styles applied to the cell when it's part of the first right sticky column. */\n stickyColumnLeastRight: {\n borderLeft: `solid 1px ${theme.colors.atmo4}`,\n },\n\n /** Styles applied to the cell when it's part of the first column in the group. */\n groupColumnMostLeft: {\n borderLeft: `solid 1px ${theme.colors.atmo4}`,\n\n \"&:first-of-type\": {\n borderLeft: 0,\n },\n },\n /** Styles applied to the cell when it's part of the last column in the group. */\n groupColumnMostRight: {\n borderRight: `solid 1px ${theme.colors.atmo4}`,\n\n // due to the \":has()\" selector not being supported in browsers,\n // this need to be managed with inline styles\n // To be uncommented when not needed (see comment in src/Table/hooks/useSticky.js)\n // \"&:last-child,&:has(+ $stickyColumnLeastRight)\": {\n \"&:last-child\": {\n borderRight: 0,\n },\n\n \"&+:not($stickyColumn)\": {\n borderLeft: 0,\n },\n },\n\n /** Styles applied to the cell when it's part of a resizable column. */\n resizable: {\n borderRight: `solid 1px ${theme.colors.atmo4}`,\n },\n /** Styles applied to the cell when it's part of a resizing column. */\n resizing: {\n borderRight: `solid 2px ${theme.colors.secondary}`,\n },\n});\n"],"names":["staticClasses","useClasses","createClasses","root","verticalAlign","textAlign","padding","theme","space","xs","spacing","borderBottom","colors","atmo4","head","height","backgroundColor","atmo1","borderTop","typography","label","body","minHeight","fontFamily","footer","sorted","alignLeft","alignCenter","alignRight","flexDirection","alignJustify","variantNone","variantCheckbox","boxSizing","width","maxWidth","borderRight","variantActions","borderLeft","variantExpand","paddingLeft","paddingTop","paddingBottom","variantList","border","variantListHead","variantListactions","variantListcheckbox","stickyColumn","position","zIndex","background","atmo2","stickyColumnMostLeft","stickyColumnLeastRight","groupColumnMostLeft","groupColumnMostRight","resizable","resizing","secondary"],"mappings":";;AAMa,MAAA;AAAA,EAAEA;AAAAA,EAAeC;AAAW,IAAIC,cAAc,eAAe;AAAA;AAAA,EAExEC,MAAM;AAAA,IACJC,eAAe;AAAA,IACfC,WAAW;AAAA,IACXC,SAAU,QAAOC,MAAMC,MAAMC,EAAG,YAAWF,MAAMC,MAAMC,EAAG,SACxDF,MAAMC,MAAMC,EACb,YAAWF,MAAMG,QAAQ,CAAC,CAAE;AAAA,IAC7BC,cAAe,aAAYJ,MAAMK,OAAOC,KAAM;AAAA,EAChD;AAAA;AAAA,EAEAC,MAAM;AAAA,IACJC,QAAQ;AAAA,IACRX,eAAe;AAAA,IAEfY,iBAAiBT,MAAMK,OAAOK;AAAAA,IAC9BC,WAAW;AAAA,IACXP,cAAe,aAAYJ,MAAMK,OAAOC,KAAM;AAAA,IAC9C,GAAIN,MAAMY,WAAWC;AAAAA,EACvB;AAAA;AAAA,EAEAC,MAAM;AAAA,IACJC,WAAW;AAAA,IACX,OAAO;AAAA,MACLP,QAAQ;AAAA,IACV;AAAA,IACAC,iBAAiB;AAAA,IACjB,GAAIT,MAAMY,WAAWE;AAAAA,IACrBE,YAAYhB,MAAMgB,WAAWF;AAAAA,EAC/B;AAAA;AAAA,EAEAG,QAAQ,CAAC;AAAA;AAAA,EAETC,QAAQ,CAAC;AAAA;AAAA,EAETC,WAAW;AAAA,IACTrB,WAAW;AAAA,EACb;AAAA;AAAA,EAEAsB,aAAa;AAAA,IACXtB,WAAW;AAAA,EACb;AAAA;AAAA,EAEAuB,YAAY;AAAA,IAC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C;AAAA,MACtCd,YAAY;AAAA,IACd;AAAA,EACF;AAAA;AAAA,EAEAe,sBAAsB;AAAA,IACpBjB,aAAc,aAAY7B,MAAMK,OAAOC,KAAM;AAAA,EAC/C;AAAA;AAAA,EAEAyC,wBAAwB;AAAA,IACtBhB,YAAa,aAAY/B,MAAMK,OAAOC,KAAM;AAAA,EAC9C;AAAA;AAAA,EAGA0C,qBAAqB;AAAA,IACnBjB,YAAa,aAAY/B,MAAMK,OAAOC,KAAM;AAAA,IAE5C,mBAAmB;AAAA,MACjByB,YAAY;AAAA,IACd;AAAA,EACF;AAAA;AAAA,EAEAkB,sBAAsB;AAAA,IACpBpB,aAAc,aAAY7B,MAAMK,OAAOC,KAAM;AAAA;AAAA;AAAA;AAAA;AAAA,IAM7C,gBAAgB;AAAA,MACduB,aAAa;AAAA,IACf;AAAA,IAEA,yBAAyB;AAAA,MACvBE,YAAY;AAAA,IACd;AAAA,EACF;AAAA;AAAA,EAGAmB,WAAW;AAAA,IACTrB,aAAc,aAAY7B,MAAMK,OAAOC,KAAM;AAAA,EAC/C;AAAA;AAAA,EAEA6C,UAAU;AAAA,IACRtB,aAAc,aAAY7B,MAAMK,OAAO+C,SAAU;AAAA,EACnD;AACF,CAAC;"}
@@ -9,34 +9,36 @@ import TableSectionContext from "../TableSectionContext.js";
9
9
  import { getSortIcon, isParagraph } from "./utils.js";
10
10
  import { useClasses, staticClasses } from "./TableHeader.styles.js";
11
11
  import { HvButton } from "../../Button/Button.js";
12
+ import { useDefaultProps } from "../../../hooks/useDefaultProps.js";
12
13
  import { HvTypography } from "../../Typography/Typography.js";
13
14
  const defaultComponent = "th";
14
- const HvTableHeader = forwardRef(({
15
- children,
16
- component,
17
- className,
18
- style,
19
- classes: classesProp,
20
- scope: scopeProp,
21
- align = "inherit",
22
- variant = "default",
23
- type: typeProp,
24
- stickyColumn = false,
25
- stickyColumnMostLeft = false,
26
- stickyColumnLeastRight = false,
27
- groupColumnMostLeft = false,
28
- groupColumnMostRight = false,
29
- sortDirection = "none",
30
- sorted,
31
- sortable,
32
- headerTextProps,
33
- resizerProps = {},
34
- resizable = false,
35
- resizing = false,
36
- sortButtonProps,
37
- ...others
38
- }, externalRef) => {
15
+ const HvTableHeader = forwardRef((props, externalRef) => {
39
16
  var _a;
17
+ const {
18
+ children,
19
+ component,
20
+ className,
21
+ style,
22
+ classes: classesProp,
23
+ scope: scopeProp,
24
+ align = "inherit",
25
+ variant = "default",
26
+ type: typeProp,
27
+ stickyColumn = false,
28
+ stickyColumnMostLeft = false,
29
+ stickyColumnLeastRight = false,
30
+ groupColumnMostLeft = false,
31
+ groupColumnMostRight = false,
32
+ sortDirection = "none",
33
+ sorted,
34
+ sortable,
35
+ headerTextProps,
36
+ resizerProps = {},
37
+ resizable = false,
38
+ resizing = false,
39
+ sortButtonProps,
40
+ ...others
41
+ } = useDefaultProps("HvTableHeader", props);
40
42
  const {
41
43
  classes,
42
44
  cx,
@@ -1 +1 @@
1
- {"version":3,"file":"TableHeader.js","sources":["../../../../../src/components/Table/TableHeader/TableHeader.tsx"],"sourcesContent":["import {\n forwardRef,\n HTMLAttributes,\n ThHTMLAttributes,\n useContext,\n useMemo,\n} from \"react\";\n\nimport capitalize from \"lodash/capitalize\";\n\nimport { hexToRgb, alpha } from \"@mui/material\";\n\nimport { theme } from \"@hitachivantara/uikit-styles\";\n\nimport { HvTypography, HvTypographyProps } from \"@core/components/Typography\";\nimport { useTheme } from \"@core/hooks/useTheme\";\nimport { ExtractNames } from \"@core/utils/classes\";\nimport { HvButton, HvButtonProps } from \"@core/components/Button\";\n\nimport TableContext from \"../TableContext\";\nimport TableSectionContext from \"../TableSectionContext\";\nimport { getSortIcon, isParagraph } from \"./utils\";\nimport { useClasses, staticClasses } from \"./TableHeader.styles\";\nimport {\n HvTableCellAlign,\n HvTableCellType,\n HvTableCellVariant,\n} from \"../Table\";\n\nexport { staticClasses as tableHeaderClasses };\n\nexport type HvTableHeaderClasses = ExtractNames<typeof useClasses>;\n\nexport interface HvTableHeaderProps\n extends Omit<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?: 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 (\n {\n children,\n component,\n className,\n style,\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 },\n externalRef\n ) => {\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 return (\n <Component\n ref={externalRef}\n role={role}\n scope={scope}\n style={style}\n className={cx(\n classes.root,\n classes[type],\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[`align${capitalize(align)}`]]: align !== \"inherit\",\n [classes[`variant${capitalize(variant)}`]]: variant !== \"default\",\n },\n className\n )}\n aria-sort={sortable ? sortDirection : undefined}\n {...others}\n >\n <div\n className={cx(classes.headerContent, {\n [classes[`alignFlex${capitalize(align)}`]]: 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":["defaultComponent","HvTableHeader","forwardRef","children","component","className","style","classes","classesProp","scope","scopeProp","align","variant","type","typeProp","stickyColumn","stickyColumnMostLeft","stickyColumnLeastRight","groupColumnMostLeft","groupColumnMostRight","sortDirection","sorted","sortable","headerTextProps","resizerProps","resizable","resizing","sortButtonProps","others","externalRef","cx","css","useClasses","colors","useTheme","tableContext","useContext","TableContext","tableSectionContext","TableSectionContext","isHeadCell","Sort","useMemo","getSortIcon","Component","components","Th","role","paragraph","isParagraph","root","staticClasses","backgroundColor","alpha","hexToRgb","atmo1","theme","variantList","capitalize","undefined","headerContent","sortButton","sortIcon","headerText","headerParagraph","sortableHeaderText","resizer"],"mappings":";;;;;;;;;;;;AA6EA,MAAMA,mBAAmB;AAKZC,MAAAA,gBAAgBC,WAC3B,CACE;AAAA,EACEC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC,SAASC;AAAAA,EACTC,OAAOC;AAAAA,EACPC,QAAQ;AAAA,EACRC,UAAU;AAAA,EACVC,MAAMC;AAAAA,EACNC,eAAe;AAAA,EACfC,uBAAuB;AAAA,EACvBC,yBAAyB;AAAA,EACzBC,sBAAsB;AAAA,EACtBC,uBAAuB;AAAA,EACvBC,gBAAgB;AAAA,EAChBC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC,eAAe,CAAC;AAAA,EAChBC,YAAY;AAAA,EACZC,WAAW;AAAA,EACXC;AAAAA,EACA,GAAGC;AACL,GACAC,gBACG;;AACG,QAAA;AAAA,IAA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AAAAA,IAClC,CAACV,QAAQkD,WAAW,GAAGtB,aAAavB,YAAY;AAAA,IAChD,CAACL,QAAS,QAAOmD,WAAW/C,KAAK,CAAE,EAAC,CAAC,GAAGA,UAAU;AAAA,IAClD,CAACJ,QAAS,UAASmD,WAAW9C,OAAO,CAAE,EAAC,CAAC,GAAGA,YAAY;AAAA,EAAA,GAE1DP,SACF,GACA,aAAWiB,WAAWF,gBAAgBuC,QACtC,GAAI/B,QAEJ,UAAC,qBAAA,OAAA,EACC,WAAWE,GAAGvB,QAAQqD,eAAe;AAAA,IACnC,CAACrD,QAAS,YAAWmD,WAAW/C,KAAK,CAAE,EAAC,CAAC,GAAGA,UAAU;AAAA,EACvD,CAAA,GAEA6B,UAAAA;AAAAA,IAAAA,cAAclB,YACZ,oBAAA,UAAA,EACC,WAAWf,QAAQsD,YACnB,MAAI,MACJ,oBAAoB,OACpB,cAAW,QACX,GAAIlC,iBAEJ,UAAA,oBAAC,QAAK,WAAWpB,QAAQuD,UAAS,EACpC,CAAA;AAAA,IAED,oBAAA,cAAA,EACC,WAAU,OACV,WAAWhC,GAAG;AAAA,MACZ,CAACvB,QAAQwD,UAAU,GAAG,CAACf;AAAAA,MACvB,CAACzC,QAAQyD,eAAe,GAAGhB;AAAAA,MAC3B,CAACzC,QAAQ0D,kBAAkB,GAAG3C;AAAAA,IAC/B,CAAA,GACD,SAAQ,SACJC,GAAAA,iBAEHpB,SACH,CAAA;AAAA,IACCsB,aAAc,oBAAA,OAAA,EAAQD,GAAAA,cAAc,WAAWjB,QAAQ2D,SAAW;AAAA,EAAA,EACrE,CAAA,EACF,CAAA;AAEJ,CACF;"}
1
+ {"version":3,"file":"TableHeader.js","sources":["../../../../../src/components/Table/TableHeader/TableHeader.tsx"],"sourcesContent":["import {\n forwardRef,\n HTMLAttributes,\n ThHTMLAttributes,\n useContext,\n useMemo,\n} from \"react\";\n\nimport capitalize from \"lodash/capitalize\";\n\nimport { hexToRgb, alpha } from \"@mui/material\";\n\nimport { theme } from \"@hitachivantara/uikit-styles\";\n\nimport { HvTypography, HvTypographyProps } from \"@core/components/Typography\";\nimport { useTheme } from \"@core/hooks/useTheme\";\nimport { ExtractNames } from \"@core/utils/classes\";\nimport { HvButton, HvButtonProps } from \"@core/components/Button\";\n\nimport { useDefaultProps } from \"@core/hooks\";\nimport TableContext from \"../TableContext\";\nimport TableSectionContext from \"../TableSectionContext\";\nimport { getSortIcon, isParagraph } from \"./utils\";\nimport { useClasses, staticClasses } from \"./TableHeader.styles\";\nimport {\n HvTableCellAlign,\n HvTableCellType,\n HvTableCellVariant,\n} from \"../Table\";\n\nexport { staticClasses as tableHeaderClasses };\n\nexport type HvTableHeaderClasses = ExtractNames<typeof useClasses>;\n\nexport interface HvTableHeaderProps\n extends Omit<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?: 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,\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 return (\n <Component\n ref={externalRef}\n role={role}\n scope={scope}\n style={style}\n className={cx(\n classes.root,\n classes[type],\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[`align${capitalize(align)}`]]: align !== \"inherit\",\n [classes[`variant${capitalize(variant)}`]]: variant !== \"default\",\n },\n className\n )}\n aria-sort={sortable ? sortDirection : undefined}\n {...others}\n >\n <div\n className={cx(classes.headerContent, {\n [classes[`alignFlex${capitalize(align)}`]]: 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":["defaultComponent","HvTableHeader","forwardRef","props","externalRef","children","component","className","style","classes","classesProp","scope","scopeProp","align","variant","type","typeProp","stickyColumn","stickyColumnMostLeft","stickyColumnLeastRight","groupColumnMostLeft","groupColumnMostRight","sortDirection","sorted","sortable","headerTextProps","resizerProps","resizable","resizing","sortButtonProps","others","useDefaultProps","cx","css","useClasses","colors","useTheme","tableContext","useContext","TableContext","tableSectionContext","TableSectionContext","isHeadCell","Sort","useMemo","getSortIcon","Component","components","Th","role","paragraph","isParagraph","root","staticClasses","backgroundColor","alpha","hexToRgb","atmo1","theme","variantList","capitalize","undefined","headerContent","sortButton","sortIcon","headerText","headerParagraph","sortableHeaderText","resizer"],"mappings":";;;;;;;;;;;;;AA8EA,MAAMA,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AAG;AAAA,MACZ,CAACvB,QAAQwD,UAAU,GAAG,CAACf;AAAAA,MACvB,CAACzC,QAAQyD,eAAe,GAAGhB;AAAAA,MAC3B,CAACzC,QAAQ0D,kBAAkB,GAAG3C;AAAAA,IAC/B,CAAA,GACD,SAAQ,SACJC,GAAAA,iBAEHpB,SACH,CAAA;AAAA,IACCsB,aAAc,oBAAA,OAAA,EAAQD,GAAAA,cAAc,WAAWjB,QAAQ2D,SAAW;AAAA,EAAA,EACrE,CAAA,EACF,CAAA;AAEJ,CACF;"}
@@ -22,7 +22,7 @@ const {
22
22
  borderBottom: `1px solid ${theme.colors.atmo4}`,
23
23
  "*:first-of-type > &": {
24
24
  height: "var(--first-row-cell-height)",
25
- borderTop: `1px solid ${theme.table.headerBorderTopColor}`
25
+ borderTop: "1px solid transparent"
26
26
  },
27
27
  "&$variantList": {
28
28
  backgroundColor: "inherit",
@@ -37,13 +37,13 @@ const {
37
37
  paddingLeft: 0,
38
38
  cursor: "pointer",
39
39
  "&:hover": {
40
- backgroundColor: theme.table.headerHoverColor,
40
+ backgroundColor: "transparent",
41
41
  "& $sortIcon": {
42
42
  visibility: "visible"
43
43
  }
44
44
  },
45
45
  "&:focus-within": {
46
- backgroundColor: theme.table.headerHoverColor,
46
+ backgroundColor: "transparent",
47
47
  "& $sortIcon": {
48
48
  visibility: "visible"
49
49
  }
@@ -114,7 +114,7 @@ const {
114
114
  boxShadow: "none",
115
115
  backgroundColor: "transparent",
116
116
  "&:hover": {
117
- backgroundColor: theme.table.sortButtonHoverColor
117
+ backgroundColor: theme.colors.primary_20
118
118
  }
119
119
  }
120
120
  },
@@ -1 +1 @@
1
- {"version":3,"file":"TableHeader.styles.js","sources":["../../../../../src/components/Table/TableHeader/TableHeader.styles.tsx"],"sourcesContent":["import { theme } from \"@hitachivantara/uikit-styles\";\n\nimport { createClasses } from \"@core/utils/classes\";\n\nexport const { staticClasses, useClasses } = createClasses(\"HvTableHeader\", {\n root: {\n \"--first-row-cell-height\": \"52px\",\n \"--cell-height\": \"32px\",\n height: \"var(--cell-height)\",\n verticalAlign: \"inherit\",\n textAlign: \"left\",\n padding: theme.spacing(0, 1, 0, 4),\n borderBottom: `1px solid ${theme.colors.atmo4}`,\n },\n head: {\n paddingTop: 8,\n verticalAlign: \"top\",\n ...theme.typography.label,\n transition: \"background-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms\",\n backgroundColor: theme.colors.atmo1,\n borderBottom: `1px solid ${theme.colors.atmo4}`,\n\n \"*:first-of-type > &\": {\n height: \"var(--first-row-cell-height)\",\n borderTop: `1px solid ${theme.table.headerBorderTopColor}`,\n },\n\n \"&$variantList\": {\n backgroundColor: \"inherit\",\n borderBottom: 0,\n \"*:first-of-type > &\": {\n borderTop: 0,\n },\n },\n\n \"&$sortable\": {\n verticalAlign: \"initial\",\n paddingTop: 0,\n paddingLeft: 0,\n cursor: \"pointer\",\n\n \"&:hover\": {\n backgroundColor: theme.table.headerHoverColor,\n\n \"& $sortIcon\": {\n visibility: \"visible\",\n },\n },\n \"&:focus-within\": {\n backgroundColor: theme.table.headerHoverColor,\n\n \"& $sortIcon\": {\n visibility: \"visible\",\n },\n },\n },\n },\n body: {\n backgroundColor: \"inherit\",\n ...theme.typography.body,\n \"&$sortable:not($variantNone)\": {\n paddingLeft: 32,\n },\n },\n footer: {},\n stickyColumn: {\n position: \"sticky\",\n zIndex: 2,\n\n \"&$groupColumnMostRight+$stickyColumn\": {\n borderLeft: 0,\n },\n },\n stickyColumnMostLeft: { borderRight: `solid 1px ${theme.colors.atmo4}` },\n stickyColumnLeastRight: { borderLeft: `solid 1px ${theme.colors.atmo4}` },\n groupColumnMostLeft: { borderLeft: `solid 1px ${theme.colors.atmo4}` },\n groupColumnMostRight: {\n borderRight: `solid 1px ${theme.colors.atmo4}`,\n // due to the \":has()\" selector not being supported in browsers,\n // this need to be managed with inline styles\n // To be uncommented when not needed (see comment in src/Table/hooks/useSticky.js)\n // \"&:last-child,&:has(+ $stickyColumnLeastRight)\": {\n \"&:last-child\": {\n borderRight: 0,\n },\n \"&+:not($stickyColumn)\": {\n borderLeft: 0,\n },\n },\n headerContent: { display: \"flex\", alignItems: \"flex-start\", width: \"100%\" },\n headerText: { overflow: \"hidden\", textOverflow: \"ellipsis\" },\n headerParagraph: { overflow: \"hidden\", display: \"-webkit-box\" },\n sortableHeaderText: { paddingTop: \"8px\" },\n sorted: {\n \"& $sortIcon\": {\n visibility: \"visible\",\n },\n },\n sortable: {},\n sortButton: {\n \"$root$sortable &\": {\n boxShadow: \"none\",\n backgroundColor: \"transparent\",\n \"&:hover\": {\n backgroundColor: theme.table.sortButtonHoverColor,\n },\n },\n },\n sortIcon: { display: \"inline-flex\", visibility: \"hidden\" },\n alignLeft: { textAlign: \"left\" },\n alignRight: { textAlign: \"right\", flexDirection: \"row-reverse\" },\n alignCenter: { textAlign: \"center\" },\n alignJustify: { textAlign: \"justify\" },\n alignFlexLeft: { justifyContent: \"flex-start\" },\n alignFlexRight: { justifyContent: \"flex-end\" },\n alignFlexCenter: { justifyContent: \"center\" },\n alignFlexJustify: { textAlign: \"justify\" },\n variantCheckbox: {\n padding: 0,\n width: 32,\n maxWidth: 32,\n borderRight: `solid 1px ${theme.colors.atmo4}`,\n },\n variantExpand: {},\n variantActions: {\n padding: 0,\n width: 32,\n maxWidth: 32,\n borderLeft: `solid 1px ${theme.colors.atmo4}`,\n },\n variantNone: { padding: 0 },\n variantList: {\n backgroundColor: \"inherit\",\n borderBottom: 0,\n height: 16,\n \":first-of-type > &\": {\n borderTop: 0,\n height: 16,\n },\n },\n resizable: { borderRight: `solid 1px ${theme.colors.atmo4}` },\n resizing: { borderRight: `solid 2px ${theme.colors.secondary}` },\n resizer: {\n display: \"inline-block\",\n width: 10,\n height: \"100%\",\n position: \"absolute\",\n right: 0,\n top: 0,\n transform: \"translateX(50%)\",\n zIndex: 1,\n touchAction: \"none\",\n },\n});\n"],"names":["staticClasses","useClasses","createClasses","root","height","verticalAlign","textAlign","padding","theme","spacing","borderBottom","colors","atmo4","head","paddingTop","typography","label","transition","backgroundColor","atmo1","borderTop","table","headerBorderTopColor","paddingLeft","cursor","headerHoverColor","visibility","body","footer","stickyColumn","position","zIndex","borderLeft","stickyColumnMostLeft","borderRight","stickyColumnLeastRight","groupColumnMostLeft","groupColumnMostRight","headerContent","display","alignItems","width","headerText","overflow","textOverflow","headerParagraph","sortableHeaderText","sorted","sortable","sortButton","boxShadow","sortButtonHoverColor","sortIcon","alignLeft","alignRight","flexDirection","alignCenter","alignJustify","alignFlexLeft","justifyContent","alignFlexRight","alignFlexCenter","alignFlexJustify","variantCheckbox","maxWidth","variantExpand","variantActions","variantNone","variantList","resizable","resizing","secondary","resizer","right","top","transform","touchAction"],"mappings":";;AAIa,MAAA;AAAA,EAAEA;AAAAA,EAAeC;AAAW,IAAIC,cAAc,iBAAiB;AAAA,EAC1EC,MAAM;AAAA,IACJ,2BAA2B;AAAA,IAC3B,iBAAiB;AAAA,IACjBC,QAAQ;AAAA,IACRC,eAAe;AAAA,IACfC,WAAW;AAAA,IACXC,SAASC,MAAMC,QAAQ,GAAG,GAAG,GAAG,CAAC;AAAA,IACjCC,cAAe,aAAYF,MAAMG,OAAOC,KAAM;AAAA,EAChD;AAAA,EACAC,MAAM;AAAA,IACJC,YAAY;AAAA,IACZT,eAAe;AAAA,IACf,GAAGG,MAAMO,WAAWC;AAAAA,IACpBC,YAAY;AAAA,IACZC,iBAAiBV,MAAMG,OAAOQ;AAAAA,IAC9BT,cAAe,aAAYF,MAAMG,OAAOC,KAAM;AAAA,IAE9C,uBAAuB;AAAA,MACrBR,QAAQ;AAAA,MACRgB,WAAY,aAAYZ,MAAMa,MAAMC,oBAAqB;AAAA,IAC3D;AAAA,IAEA,iBAAiB;AAAA,MACfJ,iBAAiB;AAAA,MACjBR,cAAc;AAAA,MACd,uBAAuB;AAAA,QACrBU,WAAW;AAAA,MACb;AAAA,IACF;AAAA,IAEA,cAAc;AAAA,MACZf,eAAe;AAAA,MACfS,YAAY;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AAAA,EAC1B6D,aAAa;AAAA,IACXlD,iBAAiB;AAAA,IACjBR,cAAc;AAAA,IACdN,QAAQ;AAAA,IACR,sBAAsB;AAAA,MACpBgB,WAAW;AAAA,MACXhB,QAAQ;AAAA,IACV;AAAA,EACF;AAAA,EACAiE,WAAW;AAAA,IAAEnC,aAAc,aAAY1B,MAAMG,OAAOC,KAAM;AAAA,EAAE;AAAA,EAC5D0D,UAAU;AAAA,IAAEpC,aAAc,aAAY1B,MAAMG,OAAO4D,SAAU;AAAA,EAAE;AAAA,EAC/DC,SAAS;AAAA,IACPjC,SAAS;AAAA,IACTE,OAAO;AAAA,IACPrC,QAAQ;AAAA,IACR0B,UAAU;AAAA,IACV2C,OAAO;AAAA,IACPC,KAAK;AAAA,IACLC,WAAW;AAAA,IACX5C,QAAQ;AAAA,IACR6C,aAAa;AAAA,EACf;AACF,CAAC;"}
1
+ {"version":3,"file":"TableHeader.styles.js","sources":["../../../../../src/components/Table/TableHeader/TableHeader.styles.tsx"],"sourcesContent":["import { theme } from \"@hitachivantara/uikit-styles\";\n\nimport { createClasses } from \"@core/utils/classes\";\n\nexport const { staticClasses, useClasses } = createClasses(\"HvTableHeader\", {\n root: {\n \"--first-row-cell-height\": \"52px\",\n \"--cell-height\": \"32px\",\n height: \"var(--cell-height)\",\n verticalAlign: \"inherit\",\n textAlign: \"left\",\n padding: theme.spacing(0, 1, 0, 4),\n borderBottom: `1px solid ${theme.colors.atmo4}`,\n },\n head: {\n paddingTop: 8,\n verticalAlign: \"top\",\n ...theme.typography.label,\n transition: \"background-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms\",\n backgroundColor: theme.colors.atmo1,\n borderBottom: `1px solid ${theme.colors.atmo4}`,\n\n \"*:first-of-type > &\": {\n height: \"var(--first-row-cell-height)\",\n borderTop: \"1px solid transparent\",\n },\n\n \"&$variantList\": {\n backgroundColor: \"inherit\",\n borderBottom: 0,\n \"*:first-of-type > &\": {\n borderTop: 0,\n },\n },\n\n \"&$sortable\": {\n verticalAlign: \"initial\",\n paddingTop: 0,\n paddingLeft: 0,\n cursor: \"pointer\",\n\n \"&:hover\": {\n backgroundColor: \"transparent\",\n\n \"& $sortIcon\": {\n visibility: \"visible\",\n },\n },\n \"&:focus-within\": {\n backgroundColor: \"transparent\",\n\n \"& $sortIcon\": {\n visibility: \"visible\",\n },\n },\n },\n },\n body: {\n backgroundColor: \"inherit\",\n ...theme.typography.body,\n \"&$sortable:not($variantNone)\": {\n paddingLeft: 32,\n },\n },\n footer: {},\n stickyColumn: {\n position: \"sticky\",\n zIndex: 2,\n\n \"&$groupColumnMostRight+$stickyColumn\": {\n borderLeft: 0,\n },\n },\n stickyColumnMostLeft: { borderRight: `solid 1px ${theme.colors.atmo4}` },\n stickyColumnLeastRight: { borderLeft: `solid 1px ${theme.colors.atmo4}` },\n groupColumnMostLeft: { borderLeft: `solid 1px ${theme.colors.atmo4}` },\n groupColumnMostRight: {\n borderRight: `solid 1px ${theme.colors.atmo4}`,\n // due to the \":has()\" selector not being supported in browsers,\n // this need to be managed with inline styles\n // To be uncommented when not needed (see comment in src/Table/hooks/useSticky.js)\n // \"&:last-child,&:has(+ $stickyColumnLeastRight)\": {\n \"&:last-child\": {\n borderRight: 0,\n },\n \"&+:not($stickyColumn)\": {\n borderLeft: 0,\n },\n },\n headerContent: { display: \"flex\", alignItems: \"flex-start\", width: \"100%\" },\n headerText: { overflow: \"hidden\", textOverflow: \"ellipsis\" },\n headerParagraph: { overflow: \"hidden\", display: \"-webkit-box\" },\n sortableHeaderText: { paddingTop: \"8px\" },\n sorted: {\n \"& $sortIcon\": {\n visibility: \"visible\",\n },\n },\n sortable: {},\n sortButton: {\n \"$root$sortable &\": {\n boxShadow: \"none\",\n backgroundColor: \"transparent\",\n \"&:hover\": {\n backgroundColor: theme.colors.primary_20,\n },\n },\n },\n sortIcon: { display: \"inline-flex\", visibility: \"hidden\" },\n alignLeft: { textAlign: \"left\" },\n alignRight: { textAlign: \"right\", flexDirection: \"row-reverse\" },\n alignCenter: { textAlign: \"center\" },\n alignJustify: { textAlign: \"justify\" },\n alignFlexLeft: { justifyContent: \"flex-start\" },\n alignFlexRight: { justifyContent: \"flex-end\" },\n alignFlexCenter: { justifyContent: \"center\" },\n alignFlexJustify: { textAlign: \"justify\" },\n variantCheckbox: {\n padding: 0,\n width: 32,\n maxWidth: 32,\n borderRight: `solid 1px ${theme.colors.atmo4}`,\n },\n variantExpand: {},\n variantActions: {\n padding: 0,\n width: 32,\n maxWidth: 32,\n borderLeft: `solid 1px ${theme.colors.atmo4}`,\n },\n variantNone: { padding: 0 },\n variantList: {\n backgroundColor: \"inherit\",\n borderBottom: 0,\n height: 16,\n \":first-of-type > &\": {\n borderTop: 0,\n height: 16,\n },\n },\n resizable: { borderRight: `solid 1px ${theme.colors.atmo4}` },\n resizing: { borderRight: `solid 2px ${theme.colors.secondary}` },\n resizer: {\n display: \"inline-block\",\n width: 10,\n height: \"100%\",\n position: \"absolute\",\n right: 0,\n top: 0,\n transform: \"translateX(50%)\",\n zIndex: 1,\n touchAction: \"none\",\n },\n});\n"],"names":["staticClasses","useClasses","createClasses","root","height","verticalAlign","textAlign","padding","theme","spacing","borderBottom","colors","atmo4","head","paddingTop","typography","label","transition","backgroundColor","atmo1","borderTop","paddingLeft","cursor","visibility","body","footer","stickyColumn","position","zIndex","borderLeft","stickyColumnMostLeft","borderRight","stickyColumnLeastRight","groupColumnMostLeft","groupColumnMostRight","headerContent","display","alignItems","width","headerText","overflow","textOverflow","headerParagraph","sortableHeaderText","sorted","sortable","sortButton","boxShadow","primary_20","sortIcon","alignLeft","alignRight","flexDirection","alignCenter","alignJustify","alignFlexLeft","justifyContent","alignFlexRight","alignFlexCenter","alignFlexJustify","variantCheckbox","maxWidth","variantExpand","variantActions","variantNone","variantList","resizable","resizing","secondary","resizer","right","top","transform","touchAction"],"mappings":";;AAIa,MAAA;AAAA,EAAEA;AAAAA,EAAeC;AAAW,IAAIC,cAAc,iBAAiB;AAAA,EAC1EC,MA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SectionContext.js";
10
10
  import { useClasses } from "./TableRow.styles.js";
11
11
  import { staticClasses } from "./TableRow.styles.js";
12
+ import { useDefaultProps } from "../../../hooks/useDefaultProps.js";
12
13
  const defaultComponent = "tr";
13
14
  const getStripedColor = (color, opacity = 0.6) => {
14
15
  return checkValidHexColorValue(color) ? hexToRgbA(color, opacity) : color;
@@ -24,7 +25,7 @@ const HvTableRow = forwardRef((props, externalRef) => {
24
25
  expanded = false,
25
26
  striped = false,
26
27
  ...others
27
- } = props;
28
+ } = useDefaultProps("HvTableRow", props);
28
29
  const {
29
30
  classes,
30
31
  cx,
@@ -51,16 +52,10 @@ const HvTableRow = forwardRef((props, externalRef) => {
51
52
  }, [colors, even, odd, rootId]);
52
53
  return /* @__PURE__ */ jsx(Component, { ref: externalRef, className: cx(tableSectionContext.filterClassName, classes.root, classes[type], striped && css({
53
54
  "&:nth-of-type(even)": {
54
- backgroundColor: stripedColorEven,
55
- "&:hover": {
56
- backgroundColor: theme.table.rowHoverColor
57
- }
55
+ backgroundColor: stripedColorEven
58
56
  },
59
57
  "&:nth-of-type(odd)": {
60
- backgroundColor: stripedColorOdd,
61
- "&:hover": {
62
- backgroundColor: theme.table.rowHoverColor
63
- }
58
+ backgroundColor: stripedColorOdd
64
59
  }
65
60
  }), {
66
61
  [classes.hover]: hover,
@@ -1 +1 @@
1
- {"version":3,"file":"TableRow.js","sources":["../../../../../src/components/Table/TableRow/TableRow.tsx"],"sourcesContent":["import { forwardRef, useContext, useEffect, useState } from \"react\";\n\nimport { theme } from \"@hitachivantara/uikit-styles\";\n\nimport { ExtractNames } from \"@core/utils/classes\";\nimport { checkValidHexColorValue } from \"@core/utils/checkValidHexColorValue\";\nimport { hexToRgbA } from \"@core/utils/hexToRgbA\";\nimport { getVarValue } from \"@core/utils/theme\";\nimport { HvBaseProps } from \"@core/types/generic\";\nimport { useTheme } from \"@core/hooks/useTheme\";\n\nimport TableContext from \"../TableContext\";\nimport TableSectionContext from \"../TableSectionContext\";\nimport { staticClasses, useClasses } from \"./TableRow.styles\";\n\nexport { staticClasses as tableRowClasses };\n\nexport type HvTableRowClasses = ExtractNames<typeof useClasses>;\n\nexport interface HvTableRowProps\n extends HvBaseProps<HTMLTableRowElement, \"children\"> {\n /** Content to be rendered */\n children: React.ReactNode;\n /** The component used for the root node. Either a string to use a HTML element or a component. Defaults to tbody. */\n component?: React.ElementType;\n /** Whether the table row will shade on hover. */\n hover?: boolean;\n /** Whether the table row will have the selected shading. */\n selected?: boolean;\n /** Whether the table row is expanded. */\n expanded?: boolean;\n /** Whether the table row background is striped. */\n striped?: boolean;\n /** A Jss Object used to override or extend the styles applied to the component. */\n classes?: HvTableRowClasses;\n}\n\nconst defaultComponent = \"tr\";\n\nconst getStripedColor = (color?: string, opacity: number = 0.6) => {\n return checkValidHexColorValue(color) ? hexToRgbA(color, opacity) : color;\n};\n\n/**\n * `HvTableRow` acts as a `tr` element and inherits styles from its context\n */\nexport const HvTableRow = forwardRef<HTMLElement, HvTableRowProps>(\n (props, externalRef) => {\n const {\n classes: classesProp,\n className,\n component,\n hover = false,\n selected = false,\n expanded = false,\n striped = false,\n ...others\n } = props;\n const { classes, cx, css } = useClasses(classesProp);\n const { colors, rootId } = useTheme();\n const tableContext = useContext(TableContext);\n const tableSectionContext = useContext(TableSectionContext);\n\n const [even, setEven] = useState<string | undefined>();\n const [odd, setOdd] = useState<string | undefined>();\n\n const type = tableSectionContext?.type || \"body\";\n\n const isList = tableContext.variant === \"listrow\";\n\n const Component =\n component || tableContext?.components?.Tr || defaultComponent;\n\n const [stripedColorEven, setStripedColorEven] = useState(\n getStripedColor(even)\n );\n const [stripedColorOdd, setStripedColorOdd] = useState(\n getStripedColor(odd)\n );\n\n useEffect(() => {\n setEven(getVarValue(theme.table.rowStripedBackgroundColorEven, rootId));\n setOdd(getVarValue(theme.table.rowStripedBackgroundColorOdd, rootId));\n\n setStripedColorEven(getStripedColor(even));\n setStripedColorOdd(getStripedColor(odd));\n }, [colors, even, odd, rootId]);\n\n return (\n <Component\n ref={externalRef}\n className={cx(\n tableSectionContext.filterClassName,\n classes.root,\n classes[type],\n striped &&\n css({\n \"&:nth-of-type(even)\": {\n backgroundColor: stripedColorEven,\n \"&:hover\": {\n backgroundColor: theme.table.rowHoverColor,\n },\n },\n \"&:nth-of-type(odd)\": {\n backgroundColor: stripedColorOdd,\n \"&:hover\": {\n backgroundColor: theme.table.rowHoverColor,\n },\n },\n }),\n {\n [classes.hover]: hover,\n [classes.selected]: selected,\n [classes.expanded]: expanded,\n [classes.striped]: striped,\n [classes.variantList]: isList && type === \"body\",\n [classes.variantListHead]: isList && type === \"head\",\n },\n className\n )}\n role={Component === defaultComponent ? null : \"row\"}\n {...others}\n />\n );\n }\n);\n"],"names":["defaultComponent","getStripedColor","color","opacity","checkValidHexColorValue","hexToRgbA","HvTableRow","forwardRef","props","externalRef","classes","classesProp","className","component","hover","selected","expanded","striped","others","cx","css","useClasses","colors","rootId","useTheme","tableContext","useContext","TableContext","tableSectionContext","TableSectionContext","even","setEven","useState","odd","setOdd","type","isList","variant","Component","components","Tr","stripedColorEven","setStripedColorEven","stripedColorOdd","setStripedColorOdd","useEffect","getVarValue","theme","table","rowStripedBackgroundColorEven","rowStripedBackgroundColorOdd","filterClassName","root","backgroundColor","rowHoverColor","variantList","variantListHead"],"mappings":";;;;;;;;;;;AAqCA,MAAMA,mBAAmB;AAEzB,MAAMC,kBAAkBA,CAACC,OAAgBC,UAAkB,QAAQ;AACjE,SAAOC,wBAAwBF,KAAK,IAAIG,UAAUH,OAAOC,OAAO,IAAID;AACtE;AAKO,MAAMI,aAAaC,WACxB,CAACC,OAAOC,gBAAgB;;AAChB,QAAA;AAAA,IACJC,SAASC;AAAAA,IACTC;AAAAA,IACAC;AAAAA,IACAC,QAAQ;AAAA,IACRC,WAAW;AAAA,IACXC,WAAW;AAAA,IACXC,UAAU;AAAA,IACV,GAAGC;AAAAA,EACDV,IAAAA;AACE,QAAA;AAAA,IAAEE;AAAAA,IAASS;AAAAA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,IACE,CAAC5C,QAAQI,KAAK,GAAGA;AAAAA,IACjB,CAACJ,QAAQK,QAAQ,GAAGA;AAAAA,IACpB,CAACL,QAAQM,QAAQ,GAAGA;AAAAA,IACpB,CAACN,QAAQO,OAAO,GAAGA;AAAAA,IACnB,CAACP,QAAQ6C,WAAW,GAAGnB,UAAUD,SAAS;AAAA,IAC1C,CAACzB,QAAQ8C,eAAe,GAAGpB,UAAUD,SAAS;AAAA,EAAA,GAEhDvB,SACF,GACA,MAAM0B,cAActC,mBAAmB,OAAO,OAC1CkB,GAAAA,OACJ,CAAA;AAEN,CACF;"}
1
+ {"version":3,"file":"TableRow.js","sources":["../../../../../src/components/Table/TableRow/TableRow.tsx"],"sourcesContent":["import { forwardRef, useContext, useEffect, useState } from \"react\";\n\nimport { theme } from \"@hitachivantara/uikit-styles\";\n\nimport { ExtractNames } from \"@core/utils/classes\";\nimport { checkValidHexColorValue } from \"@core/utils/checkValidHexColorValue\";\nimport { hexToRgbA } from \"@core/utils/hexToRgbA\";\nimport { getVarValue } from \"@core/utils/theme\";\nimport { HvBaseProps } from \"@core/types/generic\";\nimport { useTheme } from \"@core/hooks/useTheme\";\n\nimport { useDefaultProps } from \"@core/hooks\";\nimport TableContext from \"../TableContext\";\nimport TableSectionContext from \"../TableSectionContext\";\nimport { staticClasses, useClasses } from \"./TableRow.styles\";\n\nexport { staticClasses as tableRowClasses };\n\nexport type HvTableRowClasses = ExtractNames<typeof useClasses>;\n\nexport interface HvTableRowProps\n extends HvBaseProps<HTMLTableRowElement, \"children\"> {\n /** Content to be rendered */\n children: React.ReactNode;\n /** The component used for the root node. Either a string to use a HTML element or a component. Defaults to tbody. */\n component?: React.ElementType;\n /** Whether the table row will shade on hover. */\n hover?: boolean;\n /** Whether the table row will have the selected shading. */\n selected?: boolean;\n /** Whether the table row is expanded. */\n expanded?: boolean;\n /** Whether the table row background is striped. */\n striped?: boolean;\n /** A Jss Object used to override or extend the styles applied to the component. */\n classes?: HvTableRowClasses;\n}\n\nconst defaultComponent = \"tr\";\n\nconst getStripedColor = (color?: string, opacity: number = 0.6) => {\n return checkValidHexColorValue(color) ? hexToRgbA(color, opacity) : color;\n};\n\n/**\n * `HvTableRow` acts as a `tr` element and inherits styles from its context\n */\nexport const HvTableRow = forwardRef<HTMLElement, HvTableRowProps>(\n (props, externalRef) => {\n const {\n classes: classesProp,\n className,\n component,\n hover = false,\n selected = false,\n expanded = false,\n striped = false,\n ...others\n } = useDefaultProps(\"HvTableRow\", props);\n const { classes, cx, css } = useClasses(classesProp);\n const { colors, rootId } = useTheme();\n const tableContext = useContext(TableContext);\n const tableSectionContext = useContext(TableSectionContext);\n\n const [even, setEven] = useState<string | undefined>();\n const [odd, setOdd] = useState<string | undefined>();\n\n const type = tableSectionContext?.type || \"body\";\n\n const isList = tableContext.variant === \"listrow\";\n\n const Component =\n component || tableContext?.components?.Tr || defaultComponent;\n\n const [stripedColorEven, setStripedColorEven] = useState(\n getStripedColor(even)\n );\n const [stripedColorOdd, setStripedColorOdd] = useState(\n getStripedColor(odd)\n );\n\n useEffect(() => {\n setEven(getVarValue(theme.table.rowStripedBackgroundColorEven, rootId));\n setOdd(getVarValue(theme.table.rowStripedBackgroundColorOdd, rootId));\n\n setStripedColorEven(getStripedColor(even));\n setStripedColorOdd(getStripedColor(odd));\n }, [colors, even, odd, rootId]);\n\n return (\n <Component\n ref={externalRef}\n className={cx(\n tableSectionContext.filterClassName,\n classes.root,\n classes[type],\n striped &&\n css({\n \"&:nth-of-type(even)\": {\n backgroundColor: stripedColorEven,\n },\n \"&:nth-of-type(odd)\": {\n backgroundColor: stripedColorOdd,\n },\n }),\n {\n [classes.hover]: hover,\n [classes.selected]: selected,\n [classes.expanded]: expanded,\n [classes.striped]: striped,\n [classes.variantList]: isList && type === \"body\",\n [classes.variantListHead]: isList && type === \"head\",\n },\n className\n )}\n role={Component === defaultComponent ? null : \"row\"}\n {...others}\n />\n );\n }\n);\n"],"names":["defaultComponent","getStripedColor","color","opacity","checkValidHexColorValue","hexToRgbA","HvTableRow","forwardRef","props","externalRef","classes","classesProp","className","component","hover","selected","expanded","striped","others","useDefaultProps","cx","css","useClasses","colors","rootId","useTheme","tableContext","useContext","TableContext","tableSectionContext","TableSectionContext","even","setEven","useState","odd","setOdd","type","isList","variant","Component","components","Tr","stripedColorEven","setStripedColorEven","stripedColorOdd","setStripedColorOdd","useEffect","getVarValue","theme","table","rowStripedBackgroundColorEven","rowStripedBackgroundColorOdd","filterClassName","root","backgroundColor","variantList","variantListHead"],"mappings":";;;;;;;;;;;;AAsCA,MAAMA,mBAAmB;AAEzB,MAAMC,kBAAkBA,CAACC,OAAgBC,UAAkB,QAAQ;AACjE,SAAOC,wBAAwBF,KAAK,IAAIG,UAAUH,OAAOC,OAAO,IAAID;AACtE;AAKO,MAAMI,aAAaC,WACxB,CAACC,OAAOC,gBAAgB;;AAChB,QAAA;AAAA,IACJC,SAASC;AAAAA,IACTC;AAAAA,IACAC;AAAAA,IACAC,QAAQ;AAAA,IACRC,WAAW;AAAA,IACXC,WAAW;AAAA,IACXC,UAAU;AAAA,IACV,GAAGC;AAAAA,EAAAA,IACDC,gBAAgB,cAAcX,KAAK;AACjC,QAAA;AAAA,IAAEE;AAAAA,IAASU;AAAAA,IAAIC;AAAAA,EAAAA,IAAQC,WAAWX,WAAW;AAC7C,QAAA;AAAA,IAAEY;AAAAA,IAAQC;AAAAA,MAAWC,SAAS;AAC9BC,QAAAA,eAAeC,WAAWC,YAAY;AACtCC,QAAAA,sBAAsBF,WAAWG,mBAAmB;AAE1D,QAAM,CAACC,MAAMC,OAAO,IAAIC,SAA6B;AACrD,QAAM,CAACC,KAAKC,MAAM,IAAIF,SAA6B;AAE7CG,QAAAA,QAAOP,2DAAqBO,SAAQ;AAEpCC,QAAAA,SAASX,aAAaY,YAAY;AAExC,QAAMC,YACJ1B,eAAaa,kDAAcc,eAAdd,mBAA0Be,OAAMzC;AAE/C,QAAM,CAAC0C,kBAAkBC,mBAAmB,IAAIV,SAC9ChC,gBAAgB8B,IAAI,CACtB;AACA,QAAM,CAACa,iBAAiBC,kBAAkB,IAAIZ,SAC5ChC,gBAAgBiC,GAAG,CACrB;AAEAY,YAAU,MAAM;AACdd,YAAQe,YAAYC,MAAMC,MAAMC,+BAA+B1B,MAAM,CAAC;AACtEW,WAAOY,YAAYC,MAAMC,MAAME,8BAA8B3B,MAAM,CAAC;AAEhDvB,wBAAAA,gBAAgB8B,IAAI,CAAC;AACtB9B,uBAAAA,gBAAgBiC,GAAG,CAAC;AAAA,KACtC,CAACX,QAAQQ,MAAMG,KAAKV,MAAM,CAAC;AAE9B,SACG,oBAAA,WAAA,EACC,KAAKf,aACL,WAAWW,GACTS,oBAAoBuB,iBACpB1C,QAAQ2C,MACR3C,QAAQ0B,IAAI,GACZnB,WACEI,IAAI;AAAA,IACF,uBAAuB;AAAA,MACrBiC,iBAAiBZ;AAAAA,IACnB;AAAA,IACA,sBAAsB;AAAA,MACpBY,iBAAiBV;AAAAA,IACnB;AAAA,EAAA,CACD,GACH;AAAA,IACE,CAAClC,QAAQI,KAAK,GAAGA;AAAAA,IACjB,CAACJ,QAAQK,QAAQ,GAAGA;AAAAA,IACpB,CAACL,QAAQM,QAAQ,GAAGA;AAAAA,IACpB,CAACN,QAAQO,OAAO,GAAGA;AAAAA,IACnB,CAACP,QAAQ6C,WAAW,GAAGlB,UAAUD,SAAS;AAAA,IAC1C,CAAC1B,QAAQ8C,eAAe,GAAGnB,UAAUD,SAAS;AAAA,EAAA,GAEhDxB,SACF,GACA,MAAM2B,cAAcvC,mBAAmB,OAAO,OAC1CkB,GAAAA,OACJ,CAAA;AAEN,CACF;"}
@@ -8,7 +8,7 @@ const {
8
8
  /** Styles applied to the component root class. */
9
9
  root: {
10
10
  color: "inherit",
11
- backgroundColor: theme.table.rowBackgroundColor,
11
+ backgroundColor: theme.colors.atmo1,
12
12
  verticalAlign: "middle",
13
13
  outline: 0
14
14
  },
@@ -20,7 +20,7 @@ const {
20
20
  footer: {},
21
21
  /** Styles applied to the component root when selected. */
22
22
  selected: {
23
- backgroundColor: theme.table.selectedRowBackgroundColor
23
+ backgroundColor: theme.colors.atmo2
24
24
  },
25
25
  /** Styles applied to the component root when expanded. */
26
26
  expanded: {
@@ -30,37 +30,48 @@ const {
30
30
  }
31
31
  },
32
32
  /** Styles applied to the component root when striped. */
33
- striped: {},
33
+ striped: {
34
+ "&:nth-of-type(even)": {
35
+ "&:hover": {
36
+ backgroundColor: theme.colors.containerBackgroundHover
37
+ }
38
+ },
39
+ "&:nth-of-type(odd)": {
40
+ "&:hover": {
41
+ backgroundColor: theme.colors.containerBackgroundHover
42
+ }
43
+ }
44
+ },
34
45
  /** Styles applied to the component root on hover. */
35
46
  hover: {
36
47
  transition: "background-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",
37
48
  "&:hover": {
38
- backgroundColor: theme.table.rowHoverColor
49
+ backgroundColor: theme.colors.containerBackgroundHover
39
50
  }
40
51
  },
41
52
  /** Styles applied to the component root when its table variant is list. */
42
53
  variantList: {
43
54
  // only applied on custom `display`
44
55
  marginBottom: theme.space.xs,
45
- borderRadius: theme.table.rowListBorderRadius,
46
- ...getBorderStyles("row", theme.table.rowListBorderColor, theme.table.rowListBorderRadius),
56
+ borderRadius: theme.radii.round,
57
+ ...getBorderStyles(theme.colors.atmo4, theme.radii.round),
47
58
  backgroundColor: theme.colors.atmo1,
48
59
  "&$selected": {
49
- ...getBorderStyles("row", theme.colors.secondary, theme.table.rowListBorderRadius),
60
+ ...getBorderStyles(theme.colors.secondary, theme.radii.round),
50
61
  "&:hover": {
51
- ...getBorderStyles("row", theme.table.rowHoverBorderColor, theme.table.rowListBorderRadius)
62
+ ...getBorderStyles(theme.colors.atmo4, theme.radii.round)
52
63
  }
53
64
  },
54
65
  "&:hover": {
55
- ...getBorderStyles("row", theme.table.rowHoverBorderColor, theme.table.rowListBorderRadius)
66
+ ...getBorderStyles(theme.colors.atmo4, theme.radii.round)
56
67
  },
57
68
  "&.HvIsFocused": {
58
- borderRadius: theme.table.rowListBorderRadius
69
+ borderRadius: theme.radii.round
59
70
  }
60
71
  },
61
72
  /** Styles applied to the component root when its table variant is list. */
62
73
  variantListHead: {
63
- backgroundColor: theme.table.rowListBackgroundColor
74
+ backgroundColor: "transparent"
64
75
  }
65
76
  });
66
77
  export {
@@ -1 +1 @@
1
- {"version":3,"file":"TableRow.styles.js","sources":["../../../../../src/components/Table/TableRow/TableRow.styles.tsx"],"sourcesContent":["import { theme } from \"@hitachivantara/uikit-styles\";\n\nimport { createClasses } from \"@core/utils/classes\";\n\nimport { getBorderStyles } from \"../utils/utils\";\n\nexport const { staticClasses, useClasses } = createClasses(\"HvTableRow\", {\n /** Styles applied to the component root class. */\n root: {\n color: \"inherit\",\n backgroundColor: theme.table.rowBackgroundColor,\n verticalAlign: \"middle\",\n outline: 0,\n },\n /** Styles applied to the component root when inside a `HvTableHead`. */\n head: {},\n /** Styles applied to the component root when inside a `HvTableBody`. */\n body: {},\n /** Styles applied to the component root when inside a `HvTableFooter`. */\n footer: {},\n /** Styles applied to the component root when selected. */\n selected: {\n backgroundColor: theme.table.selectedRowBackgroundColor,\n },\n /** Styles applied to the component root when expanded. */\n expanded: {\n backgroundColor: theme.colors.atmo1,\n \"& > *[role=cell]\": {\n borderBottom: \"none\",\n },\n },\n /** Styles applied to the component root when striped. */\n striped: {},\n /** Styles applied to the component root on hover. */\n hover: {\n transition: \"background-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms\",\n \"&:hover\": {\n backgroundColor: theme.table.rowHoverColor,\n },\n },\n /** Styles applied to the component root when its table variant is list. */\n variantList: {\n // only applied on custom `display`\n marginBottom: theme.space.xs,\n borderRadius: theme.table.rowListBorderRadius,\n\n ...getBorderStyles(\n \"row\",\n theme.table.rowListBorderColor,\n theme.table.rowListBorderRadius\n ),\n backgroundColor: theme.colors.atmo1,\n \"&$selected\": {\n ...getBorderStyles(\n \"row\",\n theme.colors.secondary,\n theme.table.rowListBorderRadius\n ),\n\n \"&:hover\": {\n ...getBorderStyles(\n \"row\",\n theme.table.rowHoverBorderColor,\n theme.table.rowListBorderRadius\n ),\n },\n },\n\n \"&:hover\": {\n ...getBorderStyles(\n \"row\",\n theme.table.rowHoverBorderColor,\n theme.table.rowListBorderRadius\n ),\n },\n \"&.HvIsFocused\": {\n borderRadius: theme.table.rowListBorderRadius,\n },\n },\n /** Styles applied to the component root when its table variant is list. */\n variantListHead: {\n backgroundColor: theme.table.rowListBackgroundColor,\n },\n});\n"],"names":["staticClasses","useClasses","createClasses","root","color","backgroundColor","theme","table","rowBackgroundColor","verticalAlign","outline","head","body","footer","selected","selectedRowBackgroundColor","expanded","colors","atmo1","borderBottom","striped","hover","transition","rowHoverColor","variantList","marginBottom","space","xs","borderRadius","rowListBorderRadius","getBorderStyles","rowListBorderColor","secondary","rowHoverBorderColor","variantListHead","rowListBackgroundColor"],"mappings":";;;AAMa,MAAA;AAAA,EAAEA;AAAAA,EAAeC;AAAW,IAAIC,cAAc,cAAc;AAAA;AAAA,EAEvEC,MAAM;AAAA,IACJC,OAAO;AAAA,IACPC,iBAAiBC,MAAMC,MAAMC;AAAAA,IAC7BC,eAAe;AAAA,IACfC,SAAS;AAAA,EACX;AAAA;AAAA,EAEAC,MAAM,CAAC;AAAA;AAAA,EAEPC,MAAM,CAAC;AAAA;AAAA,EAEPC,QAAQ,CAAC;AAAA;AAAA,EAETC,UAAU;AAAA,IACRT,iBAAiBC,MAAMC,MAAMQ;AAAAA,EAC/B;AAAA;AAAA,EAEAC,UAAU;AAAA,IACRX,iBAAiBC,MAAMW,OAAOC;AAAAA,IAC9B,oBAAoB;AAAA,MAClBC,cAAc;AAAA,IAChB;AAAA,EACF;AAAA;AAAA,EAEAC,SAAS,CAAC;AAAA;AAAA,EAEVC,OAAO;AAAA,IACLC,YAAY;AAAA,IACZ,WAAW;AAAA,MACTjB,iBAAiBC,MAAMC,MAAMgB;AAAAA,IAC/B;AAAA,EACF;AAAA;AAAA,EAEAC,aAAa;AAAA;AAAA,IAEXC,cAAcnB,MAAMoB,MAAMC;AAAAA,IAC1BC,cAActB,MAAMC,MAAMsB;AAAAA,IAE1B,GAAGC,gBACD,OACAxB,MAAMC,MAAMwB,oBACZzB,MAAMC,MAAMsB,mBACd;AAAA,IACAxB,iBAAiBC,MAAMW,OAAOC;AAAAA,IAC9B,cAAc;AAAA,MACZ,GAAGY,gBACD,OACAxB,MAAMW,OAAOe,WACb1B,MAAMC,MAAMsB,mBACd;AAAA,MAEA,WAAW;AAAA,QACT,GAAGC,gBACD,OACAxB,MAAMC,MAAM0B,qBACZ3B,MAAMC,MAAMsB,mBACd;AAAA,MACF;AAAA,IACF;AAAA,IAEA,WAAW;AAAA,MACT,GAAGC,gBACD,OACAxB,MAAMC,MAAM0B,qBACZ3B,MAAMC,MAAMsB,mBACd;AAAA,IACF;AAAA,IACA,iBAAiB;AAAA,MACfD,cAActB,MAAMC,MAAMsB;AAAAA,IAC5B;AAAA,EACF;AAAA;AAAA,EAEAK,iBAAiB;AAAA,IACf7B,iBAAiBC,MAAMC,MAAM4B;AAAAA,EAC/B;AACF,CAAC;"}
1
+ {"version":3,"file":"TableRow.styles.js","sources":["../../../../../src/components/Table/TableRow/TableRow.styles.tsx"],"sourcesContent":["import { theme } from \"@hitachivantara/uikit-styles\";\n\nimport { createClasses } from \"@core/utils/classes\";\n\nimport { getBorderStyles } from \"../utils/utils\";\n\nexport const { staticClasses, useClasses } = createClasses(\"HvTableRow\", {\n /** Styles applied to the component root class. */\n root: {\n color: \"inherit\",\n backgroundColor: theme.colors.atmo1,\n verticalAlign: \"middle\",\n outline: 0,\n },\n /** Styles applied to the component root when inside a `HvTableHead`. */\n head: {},\n /** Styles applied to the component root when inside a `HvTableBody`. */\n body: {},\n /** Styles applied to the component root when inside a `HvTableFooter`. */\n footer: {},\n /** Styles applied to the component root when selected. */\n selected: {\n backgroundColor: theme.colors.atmo2,\n },\n /** Styles applied to the component root when expanded. */\n expanded: {\n backgroundColor: theme.colors.atmo1,\n \"& > *[role=cell]\": {\n borderBottom: \"none\",\n },\n },\n /** Styles applied to the component root when striped. */\n striped: {\n \"&:nth-of-type(even)\": {\n \"&:hover\": {\n backgroundColor: theme.colors.containerBackgroundHover,\n },\n },\n \"&:nth-of-type(odd)\": {\n \"&:hover\": {\n backgroundColor: theme.colors.containerBackgroundHover,\n },\n },\n },\n /** Styles applied to the component root on hover. */\n hover: {\n transition: \"background-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms\",\n \"&:hover\": {\n backgroundColor: theme.colors.containerBackgroundHover,\n },\n },\n /** Styles applied to the component root when its table variant is list. */\n variantList: {\n // only applied on custom `display`\n marginBottom: theme.space.xs,\n borderRadius: theme.radii.round,\n\n ...getBorderStyles(theme.colors.atmo4, theme.radii.round),\n backgroundColor: theme.colors.atmo1,\n \"&$selected\": {\n ...getBorderStyles(theme.colors.secondary, theme.radii.round),\n\n \"&:hover\": {\n ...getBorderStyles(theme.colors.atmo4, theme.radii.round),\n },\n },\n\n \"&:hover\": {\n ...getBorderStyles(theme.colors.atmo4, theme.radii.round),\n },\n \"&.HvIsFocused\": {\n borderRadius: theme.radii.round,\n },\n },\n /** Styles applied to the component root when its table variant is list. */\n variantListHead: {\n backgroundColor: \"transparent\",\n },\n});\n"],"names":["staticClasses","useClasses","createClasses","root","color","backgroundColor","theme","colors","atmo1","verticalAlign","outline","head","body","footer","selected","atmo2","expanded","borderBottom","striped","containerBackgroundHover","hover","transition","variantList","marginBottom","space","xs","borderRadius","radii","round","getBorderStyles","atmo4","secondary","variantListHead"],"mappings":";;;AAMa,MAAA;AAAA,EAAEA;AAAAA,EAAeC;AAAW,IAAIC,cAAc,cAAc;AAAA;AAAA,EAEvEC,MAAM;AAAA,IACJC,OAAO;AAAA,IACPC,iBAAiBC,MAAMC,OAAOC;AAAAA,IAC9BC,eAAe;AAAA,IACfC,SAAS;AAAA,EACX;AAAA;AAAA,EAEAC,MAAM,CAAC;AAAA;AAAA,EAEPC,MAAM,CAAC;AAAA;AAAA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AA,IACf3B,iBAAiB;AAAA,EACnB;AACF,CAAC;"}
@@ -1,5 +1,4 @@
1
- import { theme } from "@hitachivantara/uikit-styles";
2
- const getBorderStyles = (type, color = theme.table.rowBorderColor, rowBorderRadius = theme.table.rowBorderRadius) => {
1
+ const getBorderStyles = (color, rowBorderRadius) => {
3
2
  return {
4
3
  "& td": {
5
4
  borderTop: `1px solid ${color}`,
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sources":["../../../../../src/components/Table/utils/utils.ts"],"sourcesContent":["import { theme } from \"@hitachivantara/uikit-styles\";\n\nexport const getBorderStyles = (\n type: \"row\",\n color = theme.table.rowBorderColor,\n rowBorderRadius = theme.table.rowBorderRadius\n) => {\n return {\n \"& td\": {\n borderTop: `1px solid ${color}`,\n borderBottom: `1px solid ${color}`,\n },\n \"& td:first-of-type\": {\n borderLeft: `1px solid ${color}`,\n borderRadius: `${rowBorderRadius} 0 0 ${rowBorderRadius}`,\n },\n \"& td:last-of-type\": {\n borderRight: `1px solid ${color}`,\n borderRadius: `0 ${rowBorderRadius} ${rowBorderRadius} 0`,\n },\n };\n};\n"],"names":["getBorderStyles","type","color","theme","table","rowBorderColor","rowBorderRadius","borderTop","borderBottom","borderLeft","borderRadius","borderRight"],"mappings":";AAEaA,MAAAA,kBAAkBA,CAC7BC,MACAC,QAAQC,MAAMC,MAAMC,gBACpBC,kBAAkBH,MAAMC,MAAME,oBAC3B;AACI,SAAA;AAAA,IACL,QAAQ;AAAA,MACNC,WAAY,aAAYL,KAAM;AAAA,MAC9BM,cAAe,aAAYN,KAAM;AAAA,IACnC;AAAA,IACA,sBAAsB;AAAA,MACpBO,YAAa,aAAYP,KAAM;AAAA,MAC/BQ,cAAe,GAAEJ,eAAgB,QAAOA,eAAgB;AAAA,IAC1D;AAAA,IACA,qBAAqB;AAAA,MACnBK,aAAc,aAAYT,KAAM;AAAA,MAChCQ,cAAe,KAAIJ,eAAgB,IAAGA,eAAgB;AAAA,IACxD;AAAA,EAAA;AAEJ;"}
1
+ {"version":3,"file":"utils.js","sources":["../../../../../src/components/Table/utils/utils.ts"],"sourcesContent":["export const getBorderStyles = (color: string, rowBorderRadius: string) => {\n return {\n \"& td\": {\n borderTop: `1px solid ${color}`,\n borderBottom: `1px solid ${color}`,\n },\n \"& td:first-of-type\": {\n borderLeft: `1px solid ${color}`,\n borderRadius: `${rowBorderRadius} 0 0 ${rowBorderRadius}`,\n },\n \"& td:last-of-type\": {\n borderRight: `1px solid ${color}`,\n borderRadius: `0 ${rowBorderRadius} ${rowBorderRadius} 0`,\n },\n };\n};\n"],"names":["getBorderStyles","color","rowBorderRadius","borderTop","borderBottom","borderLeft","borderRadius","borderRight"],"mappings":"AAAaA,MAAAA,kBAAkBA,CAACC,OAAeC,oBAA4B;AAClE,SAAA;AAAA,IACL,QAAQ;AAAA,MACNC,WAAY,aAAYF,KAAM;AAAA,MAC9BG,cAAe,aAAYH,KAAM;AAAA,IACnC;AAAA,IACA,sBAAsB;AAAA,MACpBI,YAAa,aAAYJ,KAAM;AAAA,MAC/BK,cAAe,GAAEJ,eAAgB,QAAOA,eAAgB;AAAA,IAC1D;AAAA,IACA,qBAAqB;AAAA,MACnBK,aAAc,aAAYN,KAAM;AAAA,MAChCK,cAAe,KAAIJ,eAAgB,IAAGA,eAAgB;AAAA,IACxD;AAAA,EAAA;AAEJ;"}
@@ -45,7 +45,7 @@ const {
45
45
  height: 16,
46
46
  padding: 0,
47
47
  "&:hover": {
48
- backgroundColor: theme.button.hoverColor
48
+ backgroundColor: theme.colors.containerBackgroundHover
49
49
  },
50
50
  "&:focus": {
51
51
  ...outlineStyles,
@@ -1 +1 @@
1
- {"version":3,"file":"Tag.styles.js","sources":["../../../../src/components/Tag/Tag.styles.tsx"],"sourcesContent":["import { theme } from \"@hitachivantara/uikit-styles\";\nimport { outlineStyles } from \"@core/utils/focusUtils\";\nimport { createClasses } from \"@core/utils/classes\";\nimport { hexToRgbA } from \"@core/utils/hexToRgbA\";\nimport { CSSProperties } from \"react\";\n\nexport const { staticClasses, useClasses } = createClasses(\"HvTag\", {\n root: {},\n\n chipRoot: {\n \"&.MuiChip-root\": {\n height: 16,\n borderRadius: 0,\n maxWidth: 180,\n fontFamily: theme.fontFamily.body,\n\n \"&:focus-visible\": {\n backgroundColor: hexToRgbA(theme.colors.base_light, 0.3),\n },\n\n \"&$categorical\": {\n borderRadius: 8,\n \"& $label\": {\n color: theme.colors.secondary,\n },\n },\n },\n\n \"&$disabled\": {\n opacity: 1,\n backgroundColor: theme.colors.atmo3,\n \"& $label\": {\n color: theme.colors.secondary_60,\n },\n },\n\n \"& .MuiChip-label\": {\n paddingLeft: theme.space.xs,\n paddingRight: theme.space.xs,\n ...(theme.typography.caption1 as CSSProperties),\n color: theme.colors.base_dark,\n \"& p\": {\n color: theme.colors.base_dark,\n },\n },\n\n \"& .MuiChip-deleteIcon\": {\n marginRight: 0,\n width: 16,\n height: 16,\n padding: 0,\n \"&:hover\": {\n backgroundColor: theme.button.hoverColor,\n },\n \"&:focus\": {\n ...outlineStyles,\n borderRadius: 0,\n },\n \"&:focus:not(:focus-visible)\": {\n outline: \"0 !important\",\n boxShadow: \"none !important\",\n },\n },\n },\n\n disabled: {},\n\n clickable: {\n cursor: \"pointer\",\n \"&:focus-visible\": {\n ...outlineStyles,\n },\n },\n\n categorical: {},\n\n label: {},\n\n deleteIcon: {},\n\n // TODO: redundant - use deleteIcon. remove in v6\n button: {},\n tagButton: {},\n // TODO: redundant - use $clickable or :not($disabled). remove in v6\n focusVisible: {},\n disabledDeleteIcon: {},\n categoricalFocus: {},\n categoricalDisabled: {},\n});\n"],"names":["staticClasses","useClasses","createClasses","root","chipRoot","height","borderRadius","maxWidth","fontFamily","theme","body","backgroundColor","hexToRgbA","colors","base_light","color","secondary","opacity","atmo3","secondary_60","paddingLeft","space","xs","paddingRight","typography","caption1","base_dark","marginRight","width","padding","button","hoverColor","outlineStyles","outline","boxShadow","disabled","clickable","cursor","categorical","label","deleteIcon","tagButton","focusVisible","disabledD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AAA,IACTC,QAAQ;AAAA,IACR,mBAAmB;AAAA,MACjB,GAAGL;AAAAA,IACL;AAAA,EACF;AAAA,EAEAM,aAAa,CAAC;AAAA,EAEdC,OAAO,CAAC;AAAA,EAERC,YAAY,CAAC;AAAA;AAAA,EAGbV,QAAQ,CAAC;AAAA,EACTW,WAAW,CAAC;AAAA;AAAA,EAEZC,cAAc,CAAC;AAAA,EACfC,oBAAoB,CAAC;AAAA,EACrBC,kBAAkB,CAAC;AAAA,EACnBC,qBAAqB,CAAC;AACxB,CAAC;"}
1
+ {"version":3,"file":"Tag.styles.js","sources":["../../../../src/components/Tag/Tag.styles.tsx"],"sourcesContent":["import { theme } from \"@hitachivantara/uikit-styles\";\nimport { outlineStyles } from \"@core/utils/focusUtils\";\nimport { createClasses } from \"@core/utils/classes\";\nimport { hexToRgbA } from \"@core/utils/hexToRgbA\";\nimport { CSSProperties } from \"react\";\n\nexport const { staticClasses, useClasses } = createClasses(\"HvTag\", {\n root: {},\n\n chipRoot: {\n \"&.MuiChip-root\": {\n height: 16,\n borderRadius: 0,\n maxWidth: 180,\n fontFamily: theme.fontFamily.body,\n\n \"&:focus-visible\": {\n backgroundColor: hexToRgbA(theme.colors.base_light, 0.3),\n },\n\n \"&$categorical\": {\n borderRadius: 8,\n \"& $label\": {\n color: theme.colors.secondary,\n },\n },\n },\n\n \"&$disabled\": {\n opacity: 1,\n backgroundColor: theme.colors.atmo3,\n \"& $label\": {\n color: theme.colors.secondary_60,\n },\n },\n\n \"& .MuiChip-label\": {\n paddingLeft: theme.space.xs,\n paddingRight: theme.space.xs,\n ...(theme.typography.caption1 as CSSProperties),\n color: theme.colors.base_dark,\n \"& p\": {\n color: theme.colors.base_dark,\n },\n },\n\n \"& .MuiChip-deleteIcon\": {\n marginRight: 0,\n width: 16,\n height: 16,\n padding: 0,\n \"&:hover\": {\n backgroundColor: theme.colors.containerBackgroundHover,\n },\n \"&:focus\": {\n ...outlineStyles,\n borderRadius: 0,\n },\n \"&:focus:not(:focus-visible)\": {\n outline: \"0 !important\",\n boxShadow: \"none !important\",\n },\n },\n },\n\n disabled: {},\n\n clickable: {\n cursor: \"pointer\",\n \"&:focus-visible\": {\n ...outlineStyles,\n },\n },\n\n categorical: {},\n\n label: {},\n\n deleteIcon: {},\n\n // TODO: redundant - use deleteIcon. remove in v6\n button: {},\n tagButton: {},\n // TODO: redundant - use $clickable or :not($disabled). remove in v6\n focusVisible: {},\n disabledDeleteIcon: {},\n categoricalFocus: {},\n categoricalDisabled: {},\n});\n"],"names":["staticClasses","useClasses","createClasses","root","chipRoot","height","borderRadius","maxWidth","fontFamily","theme","body","backgroundColor","hexToRgbA","colors","base_light","color","secondary","opacity","atmo3","secondary_60","paddingLeft","space","xs","paddingRight","typography","caption1","base_dark","marginRight","width","padding","containerBackgroundHover","outlineStyles","outline","boxShadow","disabled","clickable","cursor","categorical","label","deleteIcon","button","tagButton","focusVisible","disabledDeleteIcon","categoricalFocus","categoricalDisabled"],"mappings":";;;;AAMa,MAAA;AAAA,EAAEA;AAAAA,EAAeC;AAAW,IAAIC,cAAc,SAAS;AAAA,EAClEC,MAAM,CAAC;AAAA,EAEPC,UAAU;AAAA,IACR,kBAAkB;AAAA,MAChBC,QAAQ;AAAA,MACRC,cAAc;AAAA,MACdC,UAAU;AAAA,MACVC,YAAYC,MAAMD,WAAWE;AAAAA,MAE7B,mBAAmB;AAAA,QACjBC,iBAAiBC,UAAUH,MAAMI,OAAOC,YAAY,GAAG;AAAA,MACzD;AAAA,MAEA,iBAAiB;AAAA,QACfR,cAAc;AAAA,QACd,YAAY;AAAA,UACVS,OAAON,MAAMI,OAAOG;AAAAA,QACtB;AAAA,MACF;AAAA,IACF;AAAA,IAEA,cAAc;AAAA,MACZC,SAAS;AAAA,MACTN,iBAAiBF,MAAMI,OAAOK;AAAAA,MAC9B,YAAY;AAAA,QACVH,OAAON,MAAMI,OAAOM;AAAAA,MACtB;AAAA,IACF;AAAA,IAEA,oBAAoB;AAAA,MAClBC,aAAaX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