@hitachivantara/uikit-react-core 6.8.1 → 6.9.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 (441) hide show
  1. package/dist/Accordion/Accordion.js +69 -80
  2. package/dist/Accordion/Accordion.styles.js +21 -16
  3. package/dist/ActionBar/ActionBar.js +18 -17
  4. package/dist/ActionBar/ActionBar.styles.js +12 -15
  5. package/dist/ActionsGeneric/ActionsGeneric.js +72 -98
  6. package/dist/ActionsGeneric/ActionsGeneric.styles.js +17 -14
  7. package/dist/AppSwitcher/Action/Action.js +96 -111
  8. package/dist/AppSwitcher/Action/Action.styles.js +44 -48
  9. package/dist/AppSwitcher/AppSwitcher.js +70 -98
  10. package/dist/AppSwitcher/AppSwitcher.styles.js +50 -53
  11. package/dist/Avatar/Avatar.js +66 -111
  12. package/dist/Avatar/Avatar.styles.js +62 -52
  13. package/dist/AvatarGroup/AvatarGroup.js +49 -78
  14. package/dist/AvatarGroup/AvatarGroup.styles.js +40 -60
  15. package/dist/AvatarGroup/AvatarGroupContext.js +13 -16
  16. package/dist/Badge/Badge.js +40 -47
  17. package/dist/Badge/Badge.styles.js +50 -44
  18. package/dist/Banner/Banner.js +51 -83
  19. package/dist/Banner/Banner.styles.js +13 -22
  20. package/dist/Banner/BannerContent/BannerContent.js +35 -56
  21. package/dist/Banner/BannerContent/BannerContent.styles.js +31 -36
  22. package/dist/BaseCheckBox/BaseCheckBox.js +71 -88
  23. package/dist/BaseCheckBox/BaseCheckBox.styles.js +24 -31
  24. package/dist/BaseCheckBox/CheckBoxIcon.js +57 -73
  25. package/dist/BaseDropdown/BaseDropdown.js +147 -189
  26. package/dist/BaseDropdown/BaseDropdown.styles.js +72 -84
  27. package/dist/BaseDropdown/BaseDropdownPanel.js +69 -86
  28. package/dist/BaseDropdown/utils.js +77 -76
  29. package/dist/BaseInput/BaseInput.js +53 -89
  30. package/dist/BaseInput/BaseInput.styles.js +85 -105
  31. package/dist/BaseInput/validations.js +72 -69
  32. package/dist/BaseRadio/BaseRadio.js +61 -85
  33. package/dist/BaseRadio/BaseRadio.styles.js +26 -31
  34. package/dist/BaseRadio/RadioIcon.js +43 -48
  35. package/dist/BaseSwitch/BaseSwitch.js +70 -108
  36. package/dist/BaseSwitch/BaseSwitch.styles.js +94 -113
  37. package/dist/BreadCrumb/BreadCrumb.js +84 -106
  38. package/dist/BreadCrumb/BreadCrumb.styles.js +20 -17
  39. package/dist/BreadCrumb/Page/Page.js +24 -34
  40. package/dist/BreadCrumb/Page/Page.styles.js +20 -25
  41. package/dist/BreadCrumb/PathElement/PathElement.js +17 -17
  42. package/dist/BreadCrumb/PathElement/PathElement.styles.js +9 -7
  43. package/dist/BreadCrumb/utils.js +19 -27
  44. package/dist/BulkActions/BulkActions.js +57 -96
  45. package/dist/BulkActions/BulkActions.styles.js +37 -45
  46. package/dist/Button/Button.js +67 -95
  47. package/dist/Button/Button.styles.js +107 -124
  48. package/dist/ButtonBase/ButtonBase.js +32 -51
  49. package/dist/ButtonBase/ButtonBase.styles.js +21 -30
  50. package/dist/Calendar/Calendar.js +73 -101
  51. package/dist/Calendar/Calendar.styles.js +14 -32
  52. package/dist/Calendar/CalendarHeader/CalendarHeader.js +91 -118
  53. package/dist/Calendar/CalendarHeader/CalendarHeader.styles.js +11 -16
  54. package/dist/Calendar/CalendarNavigation/ComposedNavigation/ComposedNavigation.js +36 -50
  55. package/dist/Calendar/CalendarNavigation/ComposedNavigation/ComposedNavigation.styles.js +12 -18
  56. package/dist/Calendar/CalendarNavigation/MonthSelector/MonthSelector.js +23 -43
  57. package/dist/Calendar/CalendarNavigation/MonthSelector/MonthSelector.styles.js +21 -24
  58. package/dist/Calendar/CalendarNavigation/Navigation/Navigation.js +43 -59
  59. package/dist/Calendar/CalendarNavigation/Navigation/Navigation.styles.js +21 -24
  60. package/dist/Calendar/SingleCalendar/CalendarCell.js +60 -84
  61. package/dist/Calendar/SingleCalendar/CalendarCell.styles.js +39 -56
  62. package/dist/Calendar/SingleCalendar/SingleCalendar.js +121 -154
  63. package/dist/Calendar/SingleCalendar/SingleCalendar.styles.js +53 -68
  64. package/dist/Calendar/model.js +45 -62
  65. package/dist/Calendar/utils.js +233 -128
  66. package/dist/Card/Card.js +35 -53
  67. package/dist/Card/Card.styles.js +37 -50
  68. package/dist/Card/Content/Content.js +15 -27
  69. package/dist/Card/Content/Content.styles.js +5 -10
  70. package/dist/Card/Header/Header.js +22 -35
  71. package/dist/Card/Header/Header.styles.js +22 -25
  72. package/dist/Card/Media/Media.js +16 -26
  73. package/dist/Card/Media/Media.styles.js +6 -7
  74. package/dist/Carousel/Carousel.js +179 -207
  75. package/dist/Carousel/Carousel.styles.js +141 -166
  76. package/dist/Carousel/CarouselControls.js +48 -62
  77. package/dist/Carousel/CarouselSlide/CarouselSlide.js +19 -25
  78. package/dist/Carousel/CarouselSlide/CarouselSlide.styles.js +10 -11
  79. package/dist/Carousel/CarouselThumbnails.js +29 -36
  80. package/dist/CheckBox/CheckBox.js +112 -182
  81. package/dist/CheckBox/CheckBox.styles.js +48 -57
  82. package/dist/CheckBoxGroup/CheckBoxGroup.js +154 -245
  83. package/dist/CheckBoxGroup/CheckBoxGroup.styles.js +29 -35
  84. package/dist/ColorPicker/ColorPicker.js +146 -222
  85. package/dist/ColorPicker/ColorPicker.styles.js +40 -45
  86. package/dist/ColorPicker/Picker/Fields.js +125 -141
  87. package/dist/ColorPicker/Picker/Picker.js +51 -50
  88. package/dist/ColorPicker/Picker/Picker.styles.js +42 -42
  89. package/dist/ColorPicker/PresetColors/PresetColors.js +25 -28
  90. package/dist/ColorPicker/PresetColors/PresetColors.styles.js +17 -17
  91. package/dist/ColorPicker/SavedColors/SavedColors.js +37 -41
  92. package/dist/ColorPicker/SavedColors/SavedColors.styles.js +27 -29
  93. package/dist/ColorPicker/Swatch.js +22 -37
  94. package/dist/Container/Container.js +37 -58
  95. package/dist/Container/Container.styles.js +12 -13
  96. package/dist/Controls/Controls.js +50 -74
  97. package/dist/Controls/Controls.styles.js +16 -13
  98. package/dist/Controls/LeftControl/LeftControl.js +25 -38
  99. package/dist/Controls/LeftControl/LeftControl.styles.js +7 -7
  100. package/dist/Controls/RightControl/RightControl.js +31 -46
  101. package/dist/Controls/RightControl/RightControl.styles.js +9 -7
  102. package/dist/Controls/context/ControlsContext.js +5 -6
  103. package/dist/DatePicker/DatePicker.js +286 -339
  104. package/dist/DatePicker/DatePicker.styles.js +25 -40
  105. package/dist/DatePicker/useVisibleDate.js +142 -126
  106. package/dist/DatePicker/utils.js +17 -26
  107. package/dist/Dialog/Actions/Actions.js +19 -29
  108. package/dist/Dialog/Actions/Actions.styles.js +20 -20
  109. package/dist/Dialog/Content/Content.js +29 -46
  110. package/dist/Dialog/Content/Content.styles.js +14 -15
  111. package/dist/Dialog/Dialog.js +49 -69
  112. package/dist/Dialog/Dialog.styles.js +33 -46
  113. package/dist/Dialog/Title/Title.js +20 -42
  114. package/dist/Dialog/Title/Title.styles.js +14 -16
  115. package/dist/Dialog/context.js +5 -6
  116. package/dist/DotPagination/DotPagination.js +44 -59
  117. package/dist/DotPagination/DotPagination.styles.js +44 -47
  118. package/dist/Drawer/Drawer.js +37 -64
  119. package/dist/Drawer/Drawer.styles.js +18 -21
  120. package/dist/DropDownMenu/DropDownMenu.js +88 -124
  121. package/dist/DropDownMenu/DropDownMenu.styles.js +12 -21
  122. package/dist/Dropdown/Dropdown.js +221 -310
  123. package/dist/Dropdown/Dropdown.styles.js +39 -48
  124. package/dist/Dropdown/List/List.js +194 -176
  125. package/dist/Dropdown/List/List.styles.js +23 -24
  126. package/dist/Dropdown/utils.js +15 -16
  127. package/dist/DropdownButton/DropdownButton.js +42 -46
  128. package/dist/DropdownButton/DropdownButton.styles.js +37 -47
  129. package/dist/EmptyState/EmptyState.js +48 -61
  130. package/dist/EmptyState/EmptyState.styles.js +31 -31
  131. package/dist/FileUploader/DropZone/DropZone.js +141 -179
  132. package/dist/FileUploader/DropZone/DropZone.styles.js +55 -68
  133. package/dist/FileUploader/File/File.js +85 -75
  134. package/dist/FileUploader/File/File.styles.js +55 -60
  135. package/dist/FileUploader/FileList/FileList.js +19 -28
  136. package/dist/FileUploader/FileList/FileList.styles.js +15 -16
  137. package/dist/FileUploader/FileUploader.js +35 -55
  138. package/dist/FileUploader/FileUploader.styles.js +4 -7
  139. package/dist/FileUploader/Preview/Preview.js +37 -52
  140. package/dist/FileUploader/Preview/Preview.styles.js +22 -28
  141. package/dist/FileUploader/utils.js +24 -11
  142. package/dist/FilterGroup/Counter/Counter.js +31 -43
  143. package/dist/FilterGroup/Counter/Counter.styles.js +12 -15
  144. package/dist/FilterGroup/FilterContent/FilterContent.js +138 -177
  145. package/dist/FilterGroup/FilterContent/FilterContent.styles.js +46 -53
  146. package/dist/FilterGroup/FilterContent/HeaderButton.js +77 -100
  147. package/dist/FilterGroup/FilterGroup.js +87 -136
  148. package/dist/FilterGroup/FilterGroup.styles.js +9 -10
  149. package/dist/FilterGroup/FilterGroupContext.js +68 -73
  150. package/dist/FilterGroup/LeftPanel/LeftPanel.js +28 -31
  151. package/dist/FilterGroup/LeftPanel/LeftPanel.styles.js +6 -11
  152. package/dist/FilterGroup/RightPanel/RightPanel.js +118 -151
  153. package/dist/FilterGroup/RightPanel/RightPanel.styles.js +17 -27
  154. package/dist/Focus/Focus.js +248 -344
  155. package/dist/Focus/Focus.styles.js +28 -39
  156. package/dist/Focus/utils.js +14 -20
  157. package/dist/Footer/Footer.js +36 -38
  158. package/dist/Footer/Footer.styles.js +40 -43
  159. package/dist/FormElement/Adornment/Adornment.js +38 -49
  160. package/dist/FormElement/Adornment/Adornment.styles.js +14 -15
  161. package/dist/FormElement/CharCounter/CharCounter.js +51 -73
  162. package/dist/FormElement/CharCounter/CharCounter.styles.js +12 -10
  163. package/dist/FormElement/FormElement.js +53 -31
  164. package/dist/FormElement/FormElement.styles.js +4 -7
  165. package/dist/FormElement/InfoMessage/InfoMessage.js +26 -41
  166. package/dist/FormElement/InfoMessage/InfoMessage.styles.js +11 -9
  167. package/dist/FormElement/Label/Label.js +33 -56
  168. package/dist/FormElement/Label/Label.styles.js +11 -9
  169. package/dist/FormElement/LabelContainer.js +46 -55
  170. package/dist/FormElement/Suggestions/Suggestions.js +46 -71
  171. package/dist/FormElement/Suggestions/Suggestions.styles.js +9 -16
  172. package/dist/FormElement/WarningText/WarningText.js +41 -62
  173. package/dist/FormElement/WarningText/WarningText.styles.js +25 -28
  174. package/dist/FormElement/context.js +6 -10
  175. package/dist/FormElement/utils.js +54 -58
  176. package/dist/GlobalActions/GlobalActions.js +53 -59
  177. package/dist/GlobalActions/GlobalActions.styles.js +67 -76
  178. package/dist/Grid/Grid.js +82 -112
  179. package/dist/Grid/Grid.styles.js +37 -38
  180. package/dist/Header/Actions/Actions.js +15 -17
  181. package/dist/Header/Actions/Actions.styles.js +12 -15
  182. package/dist/Header/Brand/Brand.js +27 -23
  183. package/dist/Header/Brand/Brand.styles.js +16 -14
  184. package/dist/Header/Header.js +22 -31
  185. package/dist/Header/Header.styles.js +32 -30
  186. package/dist/Header/Navigation/MenuBar/Bar.js +23 -36
  187. package/dist/Header/Navigation/MenuBar/Bar.styles.js +54 -61
  188. package/dist/Header/Navigation/MenuBar/MenuBar.js +20 -26
  189. package/dist/Header/Navigation/MenuItem/MenuItem.js +104 -120
  190. package/dist/Header/Navigation/MenuItem/MenuItem.styles.js +48 -63
  191. package/dist/Header/Navigation/Navigation.js +32 -37
  192. package/dist/Header/Navigation/Navigation.styles.js +11 -17
  193. package/dist/Header/Navigation/useSelectionPath.js +17 -20
  194. package/dist/Header/Navigation/utils/FocusContext.js +23 -20
  195. package/dist/Header/Navigation/utils/SelectionContext.js +4 -4
  196. package/dist/IconButton/IconButton.js +25 -32
  197. package/dist/IconContainer/IconContainer.js +55 -76
  198. package/dist/InlineEditor/InlineEditor.js +105 -131
  199. package/dist/InlineEditor/InlineEditor.styles.js +44 -53
  200. package/dist/Input/Input.js +385 -461
  201. package/dist/Input/Input.styles.js +34 -47
  202. package/dist/Input/icons.js +16 -21
  203. package/dist/Input/utils.js +8 -11
  204. package/dist/List/List.js +196 -247
  205. package/dist/List/List.styles.js +44 -49
  206. package/dist/List/useSelectableList.js +11 -8
  207. package/dist/List/utils.js +24 -33
  208. package/dist/ListContainer/ListContainer.js +52 -65
  209. package/dist/ListContainer/ListContainer.styles.js +7 -10
  210. package/dist/ListContainer/ListContext/ListContext.js +4 -4
  211. package/dist/ListContainer/ListItem/ListItem.js +79 -117
  212. package/dist/ListContainer/ListItem/ListItem.styles.js +57 -78
  213. package/dist/Loading/Loading.js +31 -46
  214. package/dist/Loading/Loading.styles.js +41 -48
  215. package/dist/LoadingContainer/LoadingContainer.js +34 -40
  216. package/dist/LoadingContainer/LoadingContainer.styles.js +17 -18
  217. package/dist/Login/Login.js +22 -29
  218. package/dist/Login/Login.styles.js +20 -21
  219. package/dist/MultiButton/MultiButton.js +41 -59
  220. package/dist/MultiButton/MultiButton.styles.js +117 -137
  221. package/dist/NumberInput/NumberInput.js +51 -50
  222. package/dist/NumberInput/NumberInput.styles.js +5 -10
  223. package/dist/OverflowTooltip/OverflowTooltip.js +55 -75
  224. package/dist/OverflowTooltip/OverflowTooltip.styles.js +19 -23
  225. package/dist/Pagination/Pagination.js +176 -164
  226. package/dist/Pagination/Pagination.styles.js +86 -90
  227. package/dist/Pagination/Select.js +51 -60
  228. package/dist/Pagination/Select.styles.js +13 -19
  229. package/dist/Panel/Panel.js +19 -20
  230. package/dist/Panel/Panel.styles.js +12 -15
  231. package/dist/ProgressBar/ProgressBar.js +40 -53
  232. package/dist/ProgressBar/ProgressBar.styles.js +28 -40
  233. package/dist/QueryBuilder/ConfirmationDialog.js +35 -28
  234. package/dist/QueryBuilder/Context.js +308 -322
  235. package/dist/QueryBuilder/QueryBuilder.js +108 -137
  236. package/dist/QueryBuilder/QueryBuilder.styles.js +117 -108
  237. package/dist/QueryBuilder/Rule/Attribute.js +56 -62
  238. package/dist/QueryBuilder/Rule/Operator.js +53 -57
  239. package/dist/QueryBuilder/Rule/Rule.js +70 -96
  240. package/dist/QueryBuilder/Rule/Rule.styles.js +49 -54
  241. package/dist/QueryBuilder/RuleGroup.js +160 -206
  242. package/dist/QueryBuilder/Value/BooleanValue.js +38 -37
  243. package/dist/QueryBuilder/Value/DateTimeValue.js +233 -299
  244. package/dist/QueryBuilder/Value/EmptyValue.js +14 -14
  245. package/dist/QueryBuilder/Value/NumericValue.js +152 -204
  246. package/dist/QueryBuilder/Value/TextValue.js +38 -54
  247. package/dist/QueryBuilder/Value/Value.js +42 -67
  248. package/dist/QueryBuilder/types.js +4 -4
  249. package/dist/QueryBuilder/utils/index.js +40 -74
  250. package/dist/QueryBuilder/utils/reducer.js +86 -92
  251. package/dist/Radio/Radio.js +96 -145
  252. package/dist/Radio/Radio.styles.js +47 -55
  253. package/dist/RadioGroup/RadioGroup.js +98 -159
  254. package/dist/RadioGroup/RadioGroup.styles.js +28 -34
  255. package/dist/ScrollToHorizontal/HorizontalScrollListItem/HorizontalScrollListItem.js +34 -51
  256. package/dist/ScrollToHorizontal/HorizontalScrollListItem/HorizontalScrollListItem.styles.js +39 -48
  257. package/dist/ScrollToHorizontal/ScrollToHorizontal.js +56 -91
  258. package/dist/ScrollToHorizontal/ScrollToHorizontal.styles.js +28 -32
  259. package/dist/ScrollToVertical/ScrollToVertical.js +45 -77
  260. package/dist/ScrollToVertical/ScrollToVertical.styles.js +31 -38
  261. package/dist/ScrollToVertical/VerticalScrollListItem/VerticalScrollListItem.js +30 -39
  262. package/dist/ScrollToVertical/VerticalScrollListItem/VerticalScrollListItem.styles.js +44 -51
  263. package/dist/SearchInput/SearchInput.js +27 -25
  264. package/dist/SearchInput/SearchInput.styles.js +6 -7
  265. package/dist/Section/Section.js +69 -104
  266. package/dist/Section/Section.styles.js +53 -57
  267. package/dist/Select/Option.js +29 -46
  268. package/dist/Select/OptionGroup.js +18 -30
  269. package/dist/Select/Select.js +163 -219
  270. package/dist/Select/Select.styles.js +26 -32
  271. package/dist/SelectionList/SelectionList.js +162 -216
  272. package/dist/SelectionList/SelectionList.styles.js +36 -36
  273. package/dist/SimpleGrid/SimpleGrid.js +16 -27
  274. package/dist/SimpleGrid/SimpleGrid.styles.js +28 -39
  275. package/dist/Skeleton/Skeleton.js +26 -44
  276. package/dist/Skeleton/Skeleton.styles.js +43 -66
  277. package/dist/Slider/Slider.js +316 -431
  278. package/dist/Slider/Slider.styles.js +183 -216
  279. package/dist/Slider/SliderInput/SliderInput.js +38 -57
  280. package/dist/Slider/SliderInput/SliderInput.styles.js +13 -14
  281. package/dist/Slider/base.js +221 -243
  282. package/dist/Slider/utils.js +247 -233
  283. package/dist/Snackbar/Snackbar.js +59 -88
  284. package/dist/Snackbar/Snackbar.styles.js +25 -42
  285. package/dist/Snackbar/SnackbarContent/SnackbarContent.js +31 -50
  286. package/dist/Snackbar/SnackbarContent/SnackbarContent.styles.js +27 -30
  287. package/dist/SnackbarProvider/SnackbarProvider.js +73 -105
  288. package/dist/SnackbarProvider/SnackbarProvider.styles.js +20 -26
  289. package/dist/Stack/Stack.js +74 -84
  290. package/dist/Stack/Stack.styles.js +14 -33
  291. package/dist/StatusIcon/StatusIcon.js +78 -102
  292. package/dist/StatusIcon/StatusIcon.styles.js +42 -52
  293. package/dist/Switch/Switch.js +91 -138
  294. package/dist/Switch/Switch.styles.js +49 -60
  295. package/dist/Table/Table.js +62 -66
  296. package/dist/Table/Table.styles.js +23 -28
  297. package/dist/Table/TableBody/TableBody.js +45 -56
  298. package/dist/Table/TableBody/TableBody.styles.js +8 -7
  299. package/dist/Table/TableCell/TableCell.js +37 -66
  300. package/dist/Table/TableCell/TableCell.styles.js +125 -162
  301. package/dist/Table/TableContainer/TableContainer.js +18 -28
  302. package/dist/Table/TableContainer/TableContainer.styles.js +8 -12
  303. package/dist/Table/TableContext.js +4 -4
  304. package/dist/Table/TableHead/TableHead.js +27 -39
  305. package/dist/Table/TableHead/TableHead.styles.js +10 -7
  306. package/dist/Table/TableHeader/TableHeader.js +73 -124
  307. package/dist/Table/TableHeader/TableHeader.styles.js +135 -150
  308. package/dist/Table/TableHeader/utils.js +11 -15
  309. package/dist/Table/TableRow/TableRow.js +32 -51
  310. package/dist/Table/TableRow/TableRow.styles.js +64 -84
  311. package/dist/Table/TableSection/TableSection.js +21 -20
  312. package/dist/Table/TableSection/TableSection.styles.js +63 -96
  313. package/dist/Table/TableSectionContext.js +4 -4
  314. package/dist/Table/hooks/useHvBulkActions.js +54 -89
  315. package/dist/Table/hooks/useHvFilters.js +4 -4
  316. package/dist/Table/hooks/useHvGlobalFilter.js +4 -4
  317. package/dist/Table/hooks/useHvHeaderGroups.js +73 -82
  318. package/dist/Table/hooks/useHvPagination.js +31 -51
  319. package/dist/Table/hooks/useHvResizeColumns.js +25 -31
  320. package/dist/Table/hooks/useHvRowExpand.js +54 -69
  321. package/dist/Table/hooks/useHvRowSelection.js +294 -420
  322. package/dist/Table/hooks/useHvRowState.js +4 -4
  323. package/dist/Table/hooks/useHvSortBy.js +23 -30
  324. package/dist/Table/hooks/useHvSticky.js +114 -154
  325. package/dist/Table/hooks/useHvTable.js +40 -64
  326. package/dist/Table/hooks/useHvTableStyles.js +51 -82
  327. package/dist/Table/renderers/DateColumnCell.js +12 -13
  328. package/dist/Table/renderers/DefaultCell.js +13 -20
  329. package/dist/Table/renderers/DropdownColumnCell.js +4 -4
  330. package/dist/Table/renderers/ProgressColumnCell.js +43 -47
  331. package/dist/Table/renderers/SwitchColumnCell.js +37 -50
  332. package/dist/Table/renderers/renderers.js +146 -183
  333. package/dist/Tabs/Tab/Tab.js +21 -31
  334. package/dist/Tabs/Tab/Tab.styles.js +44 -54
  335. package/dist/Tabs/Tabs.js +23 -28
  336. package/dist/Tabs/Tabs.styles.js +9 -14
  337. package/dist/Tag/Tag.js +86 -129
  338. package/dist/Tag/Tag.styles.js +63 -88
  339. package/dist/TagsInput/TagsInput.js +349 -417
  340. package/dist/TagsInput/TagsInput.styles.js +77 -90
  341. package/dist/TextArea/TextArea.js +207 -274
  342. package/dist/TextArea/TextArea.styles.js +25 -20
  343. package/dist/TimeAgo/TimeAgo.js +24 -30
  344. package/dist/TimeAgo/TimeAgo.styles.js +4 -7
  345. package/dist/TimeAgo/formatUtils.js +57 -65
  346. package/dist/TimeAgo/useTimeAgo.js +18 -18
  347. package/dist/TimeAgo/useTimeout.js +14 -14
  348. package/dist/TimePicker/Placeholder.js +46 -52
  349. package/dist/TimePicker/TimePicker.js +164 -214
  350. package/dist/TimePicker/TimePicker.styles.js +30 -39
  351. package/dist/TimePicker/Unit/Unit.js +63 -49
  352. package/dist/TimePicker/Unit/Unit.styles.js +41 -46
  353. package/dist/ToggleButton/ToggleButton.js +25 -34
  354. package/dist/Tooltip/Tooltip.js +41 -51
  355. package/dist/Tooltip/Tooltip.styles.js +25 -26
  356. package/dist/TreeView/TreeItem/DefaultContent.js +51 -72
  357. package/dist/TreeView/TreeItem/TreeItem.js +102 -140
  358. package/dist/TreeView/TreeItem/TreeItem.styles.js +56 -70
  359. package/dist/TreeView/TreeItem/useHvTreeItem.js +38 -53
  360. package/dist/TreeView/TreeView.js +65 -62
  361. package/dist/TreeView/TreeView.styles.js +11 -13
  362. package/dist/TreeView/internals/DescendantProvider.js +120 -120
  363. package/dist/TreeView/internals/TreeViewProvider.js +32 -26
  364. package/dist/TreeView/internals/corePlugins.js +8 -4
  365. package/dist/TreeView/internals/hooks/plugins/defaultPlugins.js +10 -10
  366. package/dist/TreeView/internals/hooks/plugins/useTreeViewContextValueBuilder.js +20 -22
  367. package/dist/TreeView/internals/hooks/plugins/useTreeViewExpansion.js +39 -61
  368. package/dist/TreeView/internals/hooks/plugins/useTreeViewFocus.js +56 -80
  369. package/dist/TreeView/internals/hooks/plugins/useTreeViewKeyboardNavigation.js +149 -211
  370. package/dist/TreeView/internals/hooks/plugins/useTreeViewNodes.js +42 -68
  371. package/dist/TreeView/internals/hooks/plugins/useTreeViewSelection.js +162 -195
  372. package/dist/TreeView/internals/hooks/useInstanceEventHandler.js +52 -74
  373. package/dist/TreeView/internals/hooks/useTreeView.js +54 -69
  374. package/dist/TreeView/internals/hooks/useTreeViewInstanceEvents.js +28 -33
  375. package/dist/TreeView/internals/hooks/useTreeViewModels.js +34 -43
  376. package/dist/TreeView/internals/hooks/utils.js +28 -42
  377. package/dist/TreeView/internals/utils/EventManager.js +49 -58
  378. package/dist/TreeView/internals/utils/FinalizationRegistryBasedCleanupTracking.js +14 -18
  379. package/dist/TreeView/internals/utils/TimerBasedCleanupTracking.js +33 -37
  380. package/dist/TreeView/internals/utils/publishTreeViewEvent.js +5 -5
  381. package/dist/Typography/Typography.js +34 -51
  382. package/dist/Typography/Typography.styles.js +20 -23
  383. package/dist/VerticalNavigation/Actions/Action.js +23 -42
  384. package/dist/VerticalNavigation/Actions/Action.styles.js +21 -28
  385. package/dist/VerticalNavigation/Actions/Actions.js +15 -31
  386. package/dist/VerticalNavigation/Actions/Actions.styles.js +13 -19
  387. package/dist/VerticalNavigation/Header/Header.js +51 -91
  388. package/dist/VerticalNavigation/Header/Header.styles.js +22 -32
  389. package/dist/VerticalNavigation/Navigation/Navigation.js +183 -267
  390. package/dist/VerticalNavigation/Navigation/Navigation.styles.js +14 -24
  391. package/dist/VerticalNavigation/NavigationPopup/NavigationPopup.styles.js +9 -17
  392. package/dist/VerticalNavigation/NavigationPopup/NavigationPopupContainer.js +30 -32
  393. package/dist/VerticalNavigation/NavigationSlider/NavigationSlider.js +45 -63
  394. package/dist/VerticalNavigation/NavigationSlider/NavigationSlider.styles.js +23 -33
  395. package/dist/VerticalNavigation/NavigationSlider/utils.js +56 -39
  396. package/dist/VerticalNavigation/TreeView/TreeView.js +515 -664
  397. package/dist/VerticalNavigation/TreeView/TreeView.styles.js +10 -16
  398. package/dist/VerticalNavigation/TreeView/TreeViewContext.js +5 -6
  399. package/dist/VerticalNavigation/TreeView/TreeViewItem.js +319 -414
  400. package/dist/VerticalNavigation/TreeView/TreeViewItem.styles.js +91 -143
  401. package/dist/VerticalNavigation/VerticalNavigation.js +70 -97
  402. package/dist/VerticalNavigation/VerticalNavigation.styles.js +31 -45
  403. package/dist/VerticalNavigation/VerticalNavigationContext.js +8 -10
  404. package/dist/hooks/useClickOutside.js +21 -23
  405. package/dist/hooks/useComputation.js +13 -13
  406. package/dist/hooks/useControlled.js +10 -17
  407. package/dist/hooks/useEnhancedEffect.js +5 -5
  408. package/dist/hooks/useExpandable.js +24 -31
  409. package/dist/hooks/useFocus.js +31 -34
  410. package/dist/hooks/useForkRef.js +19 -19
  411. package/dist/hooks/useImageLoaded.js +26 -26
  412. package/dist/hooks/useIsMounted.js +13 -13
  413. package/dist/hooks/useLabels.js +7 -7
  414. package/dist/hooks/useScrollTo.js +101 -130
  415. package/dist/hooks/useUniqueId.js +6 -6
  416. package/dist/hooks/useWidth.js +10 -13
  417. package/dist/icons.js +77 -88
  418. package/dist/index.d.ts +8 -8
  419. package/dist/index.js +226 -554
  420. package/dist/providers/Provider.js +44 -75
  421. package/dist/providers/ThemeProvider.js +79 -71
  422. package/dist/providers/utils.js +40 -47
  423. package/dist/themes/index.js +6 -5
  424. package/dist/themes/next.js +132 -271
  425. package/dist/themes/pentaho.js +832 -1173
  426. package/dist/types/generic.js +5 -4
  427. package/dist/utils/Callout.js +123 -171
  428. package/dist/utils/CounterLabel.js +14 -15
  429. package/dist/utils/deepMerge.js +13 -15
  430. package/dist/utils/document.js +8 -8
  431. package/dist/utils/focusUtils.js +6 -7
  432. package/dist/utils/focusableElementFinder.js +23 -26
  433. package/dist/utils/helpers.js +15 -23
  434. package/dist/utils/iconVariant.js +15 -12
  435. package/dist/utils/keyboardUtils.js +28 -28
  436. package/dist/utils/multiSelectionEventHandler.js +37 -52
  437. package/dist/utils/scroll.js +50 -76
  438. package/dist/utils/setId.js +4 -4
  439. package/dist/utils/theme.js +11 -8
  440. package/dist/utils/useSavedState.js +19 -16
  441. package/package.json +5 -5
@@ -1,1178 +1,837 @@
1
- import { mergeTheme, pentaho as pentaho$1, theme, neutral, slate, blue, yellow, pink, violet, teal, orange } from "@hitachivantara/uikit-styles";
2
- const ld = (c1, c2) => `light-dark(${c1}, ${c2})`;
3
- const semaColors = ["positive", "warning", "negative", "info"];
4
- const avatarColors = {
5
- blue: {
6
- color: ld(theme.colors.primaryStrong, blue[300]),
7
- backgroundColor: ld(theme.colors.primaryDimmed, blue[900])
8
- },
9
- orange: {
10
- color: ld(orange[700], orange[200]),
11
- backgroundColor: ld(orange[200], orange[900])
12
- },
13
- teal: {
14
- color: ld(teal[800], teal[200]),
15
- backgroundColor: ld(teal[200], teal[900])
16
- },
17
- violet: {
18
- color: ld(violet[800], violet[200]),
19
- backgroundColor: ld(violet[200], violet[900])
20
- },
21
- pink: {
22
- color: ld(pink[900], pink[200]),
23
- backgroundColor: ld(pink[200], pink[900])
24
- },
25
- yellow: {
26
- color: ld(yellow[700], yellow[100]),
27
- backgroundColor: ld(yellow[200], yellow[900])
28
- },
29
- neutral: {
30
- color: ld(slate[400], slate[300]),
31
- backgroundColor: ld(slate[200], slate[700])
32
- }
1
+ import { blue, mergeTheme, neutral, orange, pentaho, pink, slate, teal, theme, violet, yellow } from "@hitachivantara/uikit-styles";
2
+ //#region src/themes/pentaho.ts
3
+ /** light-dark alias */
4
+ var ld = (c1, c2) => `light-dark(${c1}, ${c2})`;
5
+ var semaColors = [
6
+ "positive",
7
+ "warning",
8
+ "negative",
9
+ "info"
10
+ ];
11
+ var avatarColors = {
12
+ blue: {
13
+ color: ld(theme.colors.primaryStrong, blue[300]),
14
+ backgroundColor: ld(theme.colors.primaryDimmed, blue[900])
15
+ },
16
+ orange: {
17
+ color: ld(orange[700], orange[200]),
18
+ backgroundColor: ld(orange[200], orange[900])
19
+ },
20
+ teal: {
21
+ color: ld(teal[800], teal[200]),
22
+ backgroundColor: ld(teal[200], teal[900])
23
+ },
24
+ violet: {
25
+ color: ld(violet[800], violet[200]),
26
+ backgroundColor: ld(violet[200], violet[900])
27
+ },
28
+ pink: {
29
+ color: ld(pink[900], pink[200]),
30
+ backgroundColor: ld(pink[200], pink[900])
31
+ },
32
+ yellow: {
33
+ color: ld(yellow[700], yellow[100]),
34
+ backgroundColor: ld(yellow[200], yellow[900])
35
+ },
36
+ neutral: {
37
+ color: ld(slate[400], slate[300]),
38
+ backgroundColor: ld(slate[200], slate[700])
39
+ }
33
40
  };
34
- const notificationMap = {
35
- success: "positive",
36
- warning: "warning",
37
- error: "negative",
38
- default: "info",
39
- info: "info",
40
- accent: "accent"
41
+ var notificationMap = {
42
+ success: "positive",
43
+ warning: "warning",
44
+ error: "negative",
45
+ default: "info",
46
+ info: "info",
47
+ accent: "accent"
41
48
  };
42
- const inputColors = {
43
- bg: ld("#FFFFFF", "#020617")
49
+ var inputColors = { bg: ld("#FFFFFF", "#020617") };
50
+ var shadows = {
51
+ container: theme.colors.shadow,
52
+ elevated: `0 16px 16px 0 ${theme.alpha(slate[900], .1)}, 0 10px 10px 0 ${theme.alpha(slate[900], .08)}, 0 6px 6px 0 ${theme.alpha(slate[900], .06)}, 0 3px 3px 0 ${theme.alpha(slate[900], .04)}, 0 1px 1px 0 ${theme.alpha(slate[900], .02)}`,
53
+ modal: `0 32px 32px 0 ${theme.alpha(slate[900], .1)}, 0 20px 20px 0 ${theme.alpha(slate[900], .08)}, 0 12px 12px 0 ${theme.alpha(slate[900], .06)}, 0 5px 5px 0 ${theme.alpha(slate[900], .04)}, 0 1px 1px 0 ${theme.alpha(slate[900], .02)}`
44
54
  };
45
- const shadows = {
46
- container: theme.colors.shadow,
47
- elevated: `0 16px 16px 0 ${theme.alpha(slate[900], 0.1)}, 0 10px 10px 0 ${theme.alpha(slate[900], 0.08)}, 0 6px 6px 0 ${theme.alpha(slate[900], 0.06)}, 0 3px 3px 0 ${theme.alpha(slate[900], 0.04)}, 0 1px 1px 0 ${theme.alpha(slate[900], 0.02)}`,
48
- modal: `0 32px 32px 0 ${theme.alpha(slate[900], 0.1)}, 0 20px 20px 0 ${theme.alpha(slate[900], 0.08)}, 0 12px 12px 0 ${theme.alpha(slate[900], 0.06)}, 0 5px 5px 0 ${theme.alpha(slate[900], 0.04)}, 0 1px 1px 0 ${theme.alpha(slate[900], 0.02)}`
55
+ var popperStyles = {
56
+ margin: theme.spacing("xxs", 0),
57
+ backgroundColor: theme.colors.bgContainer,
58
+ border: `1px solid ${theme.colors.borderSubtle}`,
59
+ borderRadius: theme.radii.large,
60
+ boxShadow: shadows.container
49
61
  };
50
- const popperStyles = {
51
- margin: theme.spacing("xxs", 0),
52
- backgroundColor: theme.colors.bgContainer,
53
- border: `1px solid ${theme.colors.borderSubtle}`,
54
- borderRadius: theme.radii.large,
55
- boxShadow: shadows.container
56
- };
57
- const pentaho = mergeTheme(pentaho$1, {
58
- icons: {
59
- viewBox: "0 0 256 256",
60
- // Semantic icons
61
- Success: "M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z",
62
- Caution: "M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM222.93,203.8a8.5,8.5,0,0,1-7.48,4.2H40.55a8.5,8.5,0,0,1-7.48-4.2,7.59,7.59,0,0,1,0-7.72L120.52,44.21a8.75,8.75,0,0,1,15,0l87.45,151.87A7.59,7.59,0,0,1,222.93,203.8ZM120,144V104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z",
63
- Fail: "M128,72a8,8,0,0,1,8,8v56a8,8,0,0,1-16,0V80A8,8,0,0,1,128,72ZM116,172a12,12,0,1,0,12-12A12,12,0,0,0,116,172Zm124-44a15.85,15.85,0,0,1-4.67,11.28l-96.05,96.06a16,16,0,0,1-22.56,0h0l-96-96.06a16,16,0,0,1,0-22.56l96.05-96.06a16,16,0,0,1,22.56,0l96.05,96.06A15.85,15.85,0,0,1,240,128Zm-16,0L128,32,32,128,128,224h0Z",
64
- Info: "M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm16-40a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176ZM112,84a12,12,0,1,1,12,12A12,12,0,0,1,112,84Z",
65
- Start: "M205.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L131.31,128ZM51.31,128l74.35-74.34a8,8,0,0,0-11.32-11.32l-80,80a8,8,0,0,0,0,11.32l80,80a8,8,0,0,0,11.32-11.32Z",
66
- Backwards: "M165.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L91.31,128Z",
67
- Forwards: "M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z",
68
- End: "M141.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L124.69,128,50.34,53.66A8,8,0,0,1,61.66,42.34l80,80A8,8,0,0,1,141.66,133.66Zm80-11.32-80-80a8,8,0,0,0-11.32,11.32L204.69,128l-74.35,74.34a8,8,0,0,0,11.32,11.32l80-80A8,8,0,0,0,221.66,122.34Z",
69
- Filters: "M230.6,49.53A15.81,15.81,0,0,0,216,40H40A16,16,0,0,0,28.19,66.76l.08.09L96,139.17V216a16,16,0,0,0,24.87,13.32l32-21.34A16,16,0,0,0,160,194.66V139.17l67.74-72.32.08-.09A15.8,15.8,0,0,0,230.6,49.53ZM40,56h0Zm106.18,74.58A8,8,0,0,0,144,136v58.66L112,216V136a8,8,0,0,0-2.16-5.47L40,56H216Z"
70
- },
71
- components: {
72
- HvAvatar: {
73
- color: "primaryStrong",
74
- backgroundColor: "primaryDimmed",
75
- classes: {
76
- avatar: {
77
- border: `1px solid ${theme.colors.bgContainerSecondary}`,
78
- fontWeight: theme.fontWeights.semibold,
79
- ...Object.entries(avatarColors).reduce(
80
- (acc, [color, styles]) => {
81
- acc[`&[data-color=${color}]`] = styles;
82
- return acc;
83
- },
84
- {}
85
- )
86
- },
87
- xs: { "--size": "24px", fontSize: theme.fontSizes.sm },
88
- sm: { "--size": "24px", fontSize: theme.fontSizes.sm },
89
- md: { "--size": "32px", fontSize: theme.fontSizes.base },
90
- lg: { "--size": "48px", fontSize: theme.fontSizes.xl2 },
91
- xl: { "--size": "64px", fontSize: theme.fontSizes.xl3 }
92
- }
93
- },
94
- HvAvatarGroup: {
95
- maxVisible: 4,
96
- classes: {
97
- root: {
98
- // eslint-disable-next-line no-useless-spread
99
- ...Object.values(avatarColors).reduce(
100
- (acc, styles, i) => {
101
- const key = `&>.HvAvatar-container:nth-of-type(${i + 1}) .HvAvatar-avatar`;
102
- acc[key] = styles;
103
- return acc;
104
- },
105
- {}
106
- )
107
- }
108
- }
109
- },
110
- HvLoading: {
111
- classes: {
112
- loadingBar: {
113
- borderRadius: 1
114
- }
115
- }
116
- },
117
- HvBadge: {
118
- classes: {
119
- badge: {
120
- "--bg-color": theme.colors.textSubtle,
121
- color: ld("white", "black"),
122
- "&[data-color='textSubtle']:not(:empty)": {
123
- color: theme.colors.textSubtle,
124
- backgroundColor: theme.colors.bgPageSecondary
125
- },
126
- "&[data-color='primary']:not(:empty)": {
127
- color: theme.colors.primary,
128
- backgroundColor: theme.colors.primaryDimmed
129
- }
130
- }
131
- }
132
- },
133
- HvBulkActions: {
134
- semantic: false,
135
- classes: {
136
- root: {
137
- borderRadius: theme.radii.round,
138
- padding: theme.space.xs
139
- }
140
- }
141
- },
142
- HvCallout: {
143
- classes: {
144
- root: {
145
- outline: "1px solid var(--icolor, currentcolor)"
146
- },
147
- ...Object.fromEntries(
148
- Object.entries(notificationMap).map(([variant, color]) => [
149
- variant,
150
- {
151
- backgroundColor: theme.mix(`${color}Dimmed`, 0.5, "dimmer"),
152
- "--icolor": theme.colors[color],
153
- "--title": theme.colors[`${color}Deep`]
154
- }
155
- ])
156
- ),
157
- message: {
158
- "&&": {
159
- color: theme.colors.text
160
- }
161
- },
162
- messageIcon: {
163
- alignSelf: "start"
164
- },
165
- messageTitle: {
166
- color: "var(--title)"
167
- },
168
- actionClose: {
169
- color: theme.colors.text
170
- }
171
- }
172
- },
173
- HvSnackbar: {
174
- anchorOrigin: { vertical: "bottom", horizontal: "center" }
175
- },
176
- HvSnackbarProvider: {
177
- anchorOrigin: { vertical: "bottom", horizontal: "center" }
178
- },
179
- HvBaseCheckBox: {
180
- classes: {
181
- root: {
182
- borderRadius: theme.radii.base
183
- }
184
- }
185
- },
186
- HvCheckBoxIcon: {
187
- classes: {
188
- root: {
189
- borderRadius: theme.radii.base
190
- },
191
- checked: {
192
- "--bg-color": theme.colors.primary,
193
- color: theme.colors.bgContainer
194
- }
195
- }
196
- },
197
- HvBaseRadio: {
198
- classes: {
199
- root: {
200
- borderRadius: theme.radii.base
201
- }
202
- }
203
- },
204
- HvRadioIcon: {
205
- classes: {
206
- checked: {
207
- "--bg-color": theme.colors.primary
208
- }
209
- }
210
- },
211
- HvBaseSwitch: {
212
- classes: {
213
- root: {
214
- padding: theme.space.xxs,
215
- borderRadius: theme.radii.full,
216
- "&:hover": {
217
- backgroundColor: theme.colors.bgHover
218
- },
219
- "& .HvBaseSwitch-switchBase": {
220
- "& .HvBaseSwitch-thumb": {
221
- borderColor: "transparent",
222
- backgroundColor: "#FFFFFF",
223
- left: -8,
224
- top: -3,
225
- width: 14,
226
- height: 14
227
- },
228
- "+.HvBaseSwitch-track": {
229
- backgroundColor: theme.colors.textDimmed,
230
- border: "none",
231
- width: 40,
232
- height: 18
233
- },
234
- "&.HvBaseSwitch-checked": {
235
- "+.HvBaseSwitch-track": {
236
- backgroundColor: theme.colors.positive
237
- },
238
- "& .HvBaseSwitch-thumb": {
239
- left: -2
240
- }
241
- },
242
- "&.HvBaseSwitch-disabled": {
243
- "& .HvBaseSwitch-thumb": {
244
- borderColor: theme.colors.textDisabled
245
- },
246
- "+.HvBaseSwitch-track": {
247
- backgroundColor: theme.colors.bgDisabled,
248
- border: "none"
249
- }
250
- },
251
- "&[data-size=medium]": {
252
- "+.HvBaseSwitch-track": {
253
- width: 48,
254
- height: 24
255
- },
256
- "& .HvBaseSwitch-thumb": {
257
- left: -5,
258
- top: 0,
259
- width: 16,
260
- height: 16
261
- },
262
- "&.HvBaseSwitch-checked .HvBaseSwitch-thumb": {
263
- left: 3,
264
- top: 0
265
- }
266
- }
267
- }
268
- },
269
- readOnly: {
270
- ":hover": {
271
- backgroundColor: "transparent"
272
- },
273
- "& .HvBaseSwitch-switchBase + .HvBaseSwitch-track": {
274
- backgroundColor: theme.colors.border
275
- },
276
- "& .HvBaseSwitch-switchBase.HvBaseSwitch-checked + .HvBaseSwitch-track": {
277
- backgroundColor: theme.mix("positive", 0.5, "dimmer")
278
- }
279
- }
280
- }
281
- },
282
- HvSwitch: {
283
- classes: {
284
- container: {
285
- borderRadius: theme.radii.full,
286
- "&:hover": {
287
- backgroundColor: theme.colors.bgHover
288
- },
289
- "& .HvBaseSwitch-root": {
290
- "&:hover": {
291
- backgroundColor: "transparent"
292
- }
293
- }
294
- }
295
- }
296
- },
297
- HvSection: {
298
- classes: {
299
- content: {
300
- backgroundColor: theme.colors.bgContainer
301
- },
302
- header: {
303
- padding: theme.spacing("xs", "sm"),
304
- gap: theme.space.xs
305
- }
306
- }
307
- },
308
- HvSelect: {
309
- classes: {
310
- root: {
311
- borderRadius: theme.radii.round,
312
- "& .HvButton-subtle[data-color=text]": {
313
- borderColor: theme.colors.textDimmed,
314
- backgroundColor: inputColors.bg
315
- }
316
- },
317
- select: {
318
- borderRadius: theme.radii.round
319
- }
320
- }
321
- },
322
- HvTagsInput: {
323
- classes: {
324
- tagsList: {
325
- backgroundColor: inputColors.bg,
326
- padding: theme.space.xxs,
327
- borderColor: theme.colors.textDimmed
328
- },
329
- singleLine: {
330
- height: 32
331
- },
332
- disabled: {
333
- "& .HvTagsInput-tagsList": {
334
- backgroundColor: theme.colors.bgDisabled,
335
- "&,:hover": {
336
- borderColor: theme.colors.textDisabled
337
- }
338
- },
339
- "& .HvTagsInput-tag": {
340
- outlineColor: theme.colors.textDisabled
341
- }
342
- }
343
- }
344
- },
345
- HvTag: {
346
- showSelectIcon: false,
347
- size: "sm",
348
- classes: {
349
- root: {
350
- outline: `1px solid ${theme.colors.border}`,
351
- outlineOffset: -1,
352
- ":where(:not([data-color],.HvTag-disabled))": {
353
- color: theme.colors.text,
354
- "--tagColor": theme.colors.bgContainer
355
- },
356
- ":where([data-color]:not(.HvTag-disabled))": {
357
- ":not([data-color$=_20],[data-color^=cat])": {
358
- color: "var(--tagColor)",
359
- backgroundColor: theme.mix("var(--tagColor)", "8%", "white"),
360
- outlineColor: theme.mix("var(--tagColor)", "30%", "white"),
361
- "&.HvTag-clickable:is(:hover,:focus-visible)": {
362
- backgroundColor: theme.mix("var(--tagColor)", "20%", "white")
363
- }
364
- },
365
- ...Object.fromEntries(
366
- semaColors.map((color) => [
367
- [`&[data-color=${color}]`],
368
- {
369
- color: theme.colors[`${color}Strong`],
370
- backgroundColor: theme.colors[`${color}Dimmed`],
371
- outlineColor: theme.colors[`${color}Border`],
372
- "&.HvTag-clickable:has(:hover,:focus-visible)": {
373
- backgroundColor: theme.colors[`${color}Subtle`]
374
- }
375
- }
376
- ])
377
- )
378
- }
379
- },
380
- hasIcon: {
381
- paddingLeft: theme.space.xs
382
- },
383
- xs: { borderRadius: theme.radii.base },
384
- sm: { borderRadius: theme.radii.base },
385
- md: { borderRadius: theme.radii.round },
386
- label: {
387
- paddingLeft: 8,
388
- paddingRight: 8
389
- },
390
- deleteIcon: {
391
- borderRadius: "inherit",
392
- marginRight: 4
393
- },
394
- clickable: {
395
- ":hover": {
396
- backgroundColor: theme.colors.bgHover
397
- }
398
- },
399
- selected: {
400
- "&&": {
401
- outlineColor: "currentcolor"
402
- }
403
- },
404
- disabled: {
405
- color: theme.colors.textDisabled,
406
- outlineColor: "transparent",
407
- "&,:hover": {
408
- backgroundColor: theme.colors.bgDisabled
409
- }
410
- }
411
- }
412
- },
413
- HvIconContainer: {
414
- classes: {
415
- root: {
416
- padding: 0
417
- },
418
- xs: { fontSize: 16, padding: 0 },
419
- sm: { fontSize: 20, padding: 2 },
420
- md: { fontSize: 26, padding: 3 },
421
- lg: { fontSize: 36, padding: 6 },
422
- xl: { fontSize: 48, padding: 5 }
423
- }
424
- },
425
- HvInlineEditor: {
426
- classes: {
427
- button: {
428
- borderRadius: 2,
429
- "&:focus": {
430
- borderColor: theme.colors.text
431
- }
432
- },
433
- inputRoot: {
434
- borderRadius: 2
435
- }
436
- }
437
- },
438
- HvButtonBase: {
439
- classes: {
440
- root: {
441
- borderRadius: theme.radii.base,
442
- ":where(:not(.HvButtonBase-disabled))": {
443
- ":hover": { backgroundColor: theme.colors.primaryDimmed },
444
- ":active": { backgroundColor: theme.colors.primarySubtle }
445
- }
446
- }
447
- }
448
- },
449
- HvButton: {
450
- radius: "full",
451
- classes: {
452
- root: {
453
- ":where(:not(.HvButton-disabled,.HvButton-contained))": {
454
- "&[data-color=positive]": { color: theme.colors.positive },
455
- "&[data-color=warning]": { color: theme.colors.warning },
456
- "&[data-color=negative]": { color: theme.colors.negative },
457
- ":hover": { backgroundColor: theme.colors.primaryDimmed },
458
- ":active": { backgroundColor: theme.colors.primarySubtle }
459
- }
460
- },
461
- contained: {
462
- ":where(:not(.HvButton-disabled))": {
463
- color: "#FFFFFF",
464
- "&[data-color=primary]": {
465
- backgroundColor: theme.colors.primary,
466
- ":hover": { backgroundColor: theme.colors.primaryStrong },
467
- ":active": { backgroundColor: theme.colors.primaryDeep }
468
- },
469
- "&[data-color=positive]": {
470
- ":hover": { backgroundColor: theme.colors.positiveDeep },
471
- ":active": { backgroundColor: theme.colors.positiveStrong }
472
- },
473
- "&[data-color=warning]": {
474
- ":hover": { backgroundColor: theme.colors.warningDeep },
475
- ":active": { backgroundColor: theme.colors.warningStrong }
476
- },
477
- "&[data-color=negative]": {
478
- ":hover": { backgroundColor: theme.colors.negativeDeep },
479
- ":active": { backgroundColor: theme.colors.negativeStrong }
480
- }
481
- }
482
- },
483
- subtle: {
484
- borderColor: theme.alpha("currentcolor", 0.4),
485
- ":where(:not(.HvButton-disabled))": {
486
- "&[data-color=primary]": {
487
- borderColor: theme.colors.primarySubtle,
488
- backgroundColor: theme.colors.primaryDimmed
489
- },
490
- "&[data-color=secondary]": {
491
- borderColor: theme.colors.border,
492
- backgroundColor: theme.colors.bgPage
493
- },
494
- ":hover": {
495
- backgroundColor: theme.colors.primaryDimmed
496
- },
497
- ":active": {
498
- borderColor: "transparent",
499
- backgroundColor: theme.colors.primarySubtle
500
- },
501
- "&[data-color=positive]": {
502
- borderColor: theme.colors.positiveBorder,
503
- backgroundColor: theme.colors.positiveDimmed,
504
- ":hover": { backgroundColor: theme.colors.positiveSubtle },
505
- ":active": {
506
- backgroundColor: theme.colors.positiveBorder
507
- }
508
- },
509
- "&[data-color=warning]": {
510
- borderColor: theme.colors.warningBorder,
511
- backgroundColor: theme.colors.warningDimmed,
512
- ":hover": { backgroundColor: theme.colors.warningSubtle },
513
- ":active": { backgroundColor: theme.colors.warningBorder }
514
- },
515
- "&[data-color=negative]": {
516
- borderColor: theme.colors.negativeBorder,
517
- backgroundColor: theme.colors.negativeDimmed,
518
- ":hover": { backgroundColor: theme.colors.negativeSubtle },
519
- ":active": {
520
- backgroundColor: theme.colors.negativeBorder
521
- }
522
- }
523
- }
524
- },
525
- ghost: {
526
- ":where(:not(.HvButton-disabled))": {
527
- "&[data-color=positive]": {
528
- ":hover": { backgroundColor: theme.colors.positiveDimmed },
529
- ":active": { backgroundColor: theme.colors.positiveSubtle }
530
- },
531
- "&[data-color=warning]": {
532
- ":hover": { backgroundColor: theme.colors.warningDimmed },
533
- ":active": { backgroundColor: theme.colors.warningSubtle }
534
- },
535
- "&[data-color=negative]": {
536
- ":hover": { backgroundColor: theme.colors.negativeDimmed },
537
- ":active": { backgroundColor: theme.colors.negativeSubtle }
538
- }
539
- }
540
- },
541
- disabled: {
542
- color: theme.colors.textDisabled,
543
- ":not(.HvButton-ghost)": {
544
- borderColor: "transparent",
545
- "&,:hover,:active": {
546
- backgroundColor: theme.colors.bgDisabled
547
- }
548
- }
549
- }
550
- }
551
- },
552
- HvMultiButton: {
553
- classes: {
554
- multiple: {
555
- borderRadius: theme.radii.full,
556
- borderColor: theme.colors.border,
557
- "& .HvMultiButton-button": {
558
- borderColor: "inherit",
559
- ...theme.typography.body,
560
- "&.HvMultiButton-selected": {
561
- color: theme.colors.primary,
562
- backgroundColor: theme.colors.primaryDimmed
563
- },
564
- "&:not(.HvMultiButton-firstButton, .HvMultiButton-lastButton)": {
565
- borderRadius: 0
566
- }
567
- }
568
- },
569
- vertical: {
570
- borderRadius: theme.radii.large,
571
- borderColor: theme.colors.border
572
- }
573
- }
574
- },
575
- HvDialog: {
576
- classes: {
577
- paper: {
578
- borderRadius: theme.radii.large,
579
- boxShadow: shadows.modal
580
- },
581
- statusBar: {
582
- border: "none",
583
- borderTopLeftRadius: theme.radii.large,
584
- borderTopRightRadius: theme.radii.large
585
- }
586
- }
587
- },
588
- HvDialogActions: {
589
- classes: {
590
- root: {
591
- borderTop: "none"
592
- }
593
- }
594
- },
595
- HvDropdownButton: {
596
- classes: {
597
- disabled: {
598
- backgroundColor: theme.colors.bgDisabled,
599
- borderColor: theme.colors.bgDisabled,
600
- "&.HvButton-subtle": {
601
- borderColor: theme.colors.bgDisabled,
602
- "&,:hover": {
603
- backgroundColor: theme.colors.bgDisabled
604
- }
605
- },
606
- "&.HvButton-ghost": {
607
- borderColor: theme.colors.bgDisabled,
608
- "&,:hover": {
609
- backgroundColor: theme.colors.bgDisabled
610
- }
611
- }
612
- }
613
- }
614
- },
615
- HvPagination: {
616
- classes: {
617
- icon: {
618
- fontSize: 16
619
- }
620
- }
621
- },
622
- HvHeader: {
623
- classes: {
624
- root: {
625
- borderBottom: `1px solid ${theme.colors.borderSubtle}`,
626
- boxShadow: "none"
627
- }
628
- }
629
- },
630
- HvHeaderBrand: {
631
- classes: {
632
- separator: {
633
- backgroundColor: theme.colors.border,
634
- margin: theme.spacing(0, "md"),
635
- height: 32
636
- }
637
- }
638
- },
639
- HvHeaderMenuBarBar: {
640
- classes: {
641
- active: {
642
- boxShadow: "none",
643
- borderBottom: `1px solid ${theme.colors.borderSubtle}`
644
- },
645
- list: {
646
- "& li:hover > .HvHeader-MenuBar-hidden": {
647
- boxShadow: "none",
648
- borderBottom: `1px solid ${theme.colors.borderSubtle}`
649
- },
650
- "& li:focus-within > .HvHeader-MenuBar-hidden": {
651
- boxShadow: "none",
652
- borderBottom: `1px solid ${theme.colors.borderSubtle}`
653
- }
654
- }
655
- }
656
- },
657
- HvVerticalNavigation: {
658
- classes: {
659
- root: {
660
- width: 280,
661
- color: theme.colors.textLight,
662
- backgroundColor: slate[900],
663
- boxShadow: `inset -1px 0 0 0 ${slate[500]}`,
664
- "& > :not(nav:first-of-type)": {
665
- borderTop: `1px solid ${slate[500]}`
666
- },
667
- "& > :only-child": {
668
- padding: theme.space.sm,
669
- "& .HvVerticalNavigationSlider-listContainer": { padding: 0 }
670
- }
671
- },
672
- slider: {
673
- "& > div:first-of-type": {
674
- borderBottom: `1px solid ${slate[500]}`
675
- }
676
- }
677
- }
678
- },
679
- HvVerticalNavigationAction: {
680
- classes: {
681
- action: {
682
- borderRadius: theme.radii.round,
683
- "&:hover, &:focus": {
684
- backgroundColor: slate[700]
685
- }
686
- }
687
- }
688
- },
689
- HvVerticalNavigationSlider: {
690
- classes: {
691
- root: {
692
- minHeight: "32px",
693
- borderLeft: "unset",
694
- borderRadius: theme.radii.round,
695
- "&.HvIsFocused": {
696
- backgroundColor: slate[700]
697
- },
698
- "&.HvListItem-interactive:not(.HvListItem-disabled):not(.HvListItem-selected):hover": {
699
- backgroundColor: slate[700]
700
- }
701
- },
702
- listItemDisabled: {
703
- color: neutral[500],
704
- backgroundColor: neutral[800],
705
- "& .HvListItem-startAdornment": { backgroundColor: "transparent" },
706
- "& .HvListItem-endAdornment": { backgroundColor: "transparent" }
707
- },
708
- listItemSelected: {
709
- background: blue[800],
710
- borderLeft: "unset"
711
- },
712
- listItemFocus: {
713
- background: slate[700]
714
- },
715
- listContainer: {
716
- padding: theme.space.sm
717
- }
718
- }
719
- },
720
- HvVerticalNavigationTreeViewItem: {
721
- classes: {
722
- content: {
723
- borderLeft: "unset",
724
- borderRadius: theme.radii.round,
725
- ".HvVerticalNavigationTreeViewItem-selected>&": {
726
- background: blue[800],
727
- borderLeft: "unset"
728
- },
729
- ":not(.HvVerticalNavigationTreeViewItem-disabled>&):not(.HvVerticalNavigationTreeViewItem-selected>&)": {
730
- "&:hover, &:focus-visible, &.focus-visible": {
731
- background: slate[700]
732
- }
733
- },
734
- ".HvVerticalNavigationTreeViewItem-focused>&": {
735
- background: slate[700]
736
- }
737
- },
738
- disabled: {
739
- "& .HvVerticalNavigationTreeViewItem-label": {
740
- color: neutral[500]
741
- },
742
- "& .HvVerticalNavigationTreeViewItem-content": {
743
- background: neutral[800]
744
- }
745
- },
746
- icon: {
747
- "& .HvAvatar-root": {
748
- borderRadius: theme.radii.round
749
- }
750
- }
751
- }
752
- },
753
- HvCard: {
754
- classes: {
755
- root: {
756
- outlineColor: theme.colors.borderSubtle,
757
- boxShadow: theme.colors.shadow,
758
- "--rb": theme.radii.large,
759
- // default non-semantic card
760
- "&[data-color=sema0]": {
761
- overflow: "hidden",
762
- height: "fit-content",
763
- "--rt": theme.radii.large,
764
- "& .HvCard-semanticBar": {
765
- display: "none"
766
- }
767
- },
768
- "& .MuiCardContent-root:last-child": {
769
- paddingBottom: 0
770
- },
771
- "& > :last-child:not(.HvCardMedia-root)": {
772
- paddingBottom: theme.space.sm
773
- },
774
- "& .HvActionBar-root": {
775
- borderTop: "none"
776
- }
777
- },
778
- selectable: {
779
- ":hover": {
780
- outlineColor: theme.colors.primarySubtle,
781
- backgroundColor: theme.colors.bgHover
782
- }
783
- },
784
- selected: {
785
- "&,&:hover,&:focus": {
786
- outlineColor: theme.colors.primary
787
- }
788
- },
789
- semanticBar: {
790
- "--bar-height": "2px",
791
- borderRadius: `${theme.radii.base} ${theme.radii.base} 0 0`
792
- }
793
- }
794
- },
795
- HvCardHeader: {
796
- classes: {
797
- root: {
798
- flexDirection: "row-reverse",
799
- // remove top padding from the next sibling
800
- "&& + *": {
801
- paddingTop: 0
802
- }
803
- },
804
- subheader: {
805
- color: theme.colors.textSubtle
806
- },
807
- action: {
808
- alignSelf: "center"
809
- }
810
- }
811
- },
812
- HvCardContent: {
813
- classes: {
814
- content: {
815
- paddingBottom: 0,
816
- "&& + .HvCardMedia-root": {
817
- paddingTop: theme.space.xs
818
- }
819
- }
820
- }
821
- },
822
- HvFooter: {
823
- name: "Pentaho"
824
- },
825
- HvTableCell: {
826
- classes: {
827
- root: {
828
- borderColor: theme.colors.borderSubtle
829
- }
830
- }
831
- },
832
- HvTableHeader: {
833
- classes: {
834
- root: {
835
- borderColor: theme.colors.borderSubtle
836
- },
837
- head: {
838
- backgroundColor: theme.colors.bgPage
839
- }
840
- }
841
- },
842
- HvTabs: {
843
- classes: {
844
- floating: {
845
- "& .HvTab-root": {
846
- marginTop: 0,
847
- zIndex: 1,
848
- "&:is(.HvTab-selected)": {
849
- borderColor: "transparent",
850
- backgroundColor: "transparent"
851
- },
852
- "&:hover": {
853
- borderRadius: theme.radii.full
854
- },
855
- "::after": {
856
- display: "none"
857
- }
858
- },
859
- "& .HvTabs-indicator": {
860
- height: "100%",
861
- backgroundColor: theme.colors.bgContainer,
862
- border: `1px solid ${theme.colors.primary}`,
863
- borderRadius: theme.radii.full
864
- },
865
- "& .HvTabs-flexContainer": {
866
- display: "inline-flex",
867
- backgroundColor: theme.colors.bgPageSecondary,
868
- borderRadius: theme.radii.full,
869
- marginLeft: 0
870
- }
871
- }
872
- }
873
- },
874
- HvLabel: {
875
- classes: {
876
- root: {
877
- "& span[aria-hidden]": {
878
- color: theme.form.errorColor
879
- }
880
- }
881
- }
882
- },
883
- HvBaseInput: {
884
- classes: {
885
- root: {
886
- borderColor: theme.colors.textDimmed,
887
- backgroundColor: inputColors.bg
888
- },
889
- disabled: {
890
- backgroundColor: theme.colors.bgDisabled
891
- }
892
- }
893
- },
894
- HvInput: {
895
- classes: {
896
- label: {
897
- "& span[aria-hidden]::before": {
898
- content: '" "'
899
- }
900
- },
901
- inputRoot: {
902
- ":has([type=search])": {
903
- borderRadius: theme.radii.full
904
- }
905
- },
906
- suggestionsContainer: {
907
- "&::before": {
908
- backgroundColor: "transparent",
909
- height: 0,
910
- boxShadow: "none"
911
- }
912
- }
913
- }
914
- },
915
- HvBaseDropdown: {
916
- classes: {
917
- header: {
918
- borderColor: theme.colors.textDimmed,
919
- backgroundColor: inputColors.bg
920
- },
921
- headerOpen: {
922
- "&,:hover": {
923
- borderColor: theme.colors.textDimmed
924
- }
925
- }
926
- }
927
- },
928
- HvDropdownPanel: {
929
- classes: {
930
- panel: {
931
- ...popperStyles
932
- }
933
- }
934
- },
935
- HvDropDownMenu: {
936
- classes: {
937
- root: {
938
- "--r": "calc(var(--HvButton-height) / 2)"
939
- },
940
- open: {
941
- "&[data-color=secondary]": {
942
- borderColor: theme.colors.textDimmed
943
- }
944
- }
945
- }
946
- },
947
- HvNumberInput: {
948
- classes: {
949
- root: {
950
- ".HvBaseInput-disabled .HvInput-adornmentsBox": {
951
- backgroundColor: theme.colors.bgDisabled
952
- }
953
- },
954
- adornmentsBox: {
955
- backgroundColor: theme.colors.bgContainer,
956
- borderLeft: `1px solid ${theme.colors.border}`,
957
- borderRadius: theme.radii.none
958
- }
959
- }
960
- },
961
- HvTooltip: {
962
- classes: {
963
- tooltip: {
964
- padding: theme.spacing("xs", "sm"),
965
- boxShadow: shadows.elevated
966
- }
967
- }
968
- },
969
- HvCalendarCell: {
970
- classes: {
971
- dateWrapper: {
972
- width: 32,
973
- height: 32
974
- },
975
- calendarDate: {
976
- width: 32,
977
- height: 32,
978
- ...theme.typography.caption1,
979
- borderRadius: theme.radii.full,
980
- ":hover": {
981
- borderRadius: theme.radii.full
982
- }
983
- },
984
- calendarDateSelected: {
985
- backgroundColor: theme.colors.primary,
986
- color: theme.colors.dimmer,
987
- ":hover": {
988
- border: `1px solid ${theme.colors.primary}`,
989
- color: theme.colors.text
990
- }
991
- },
992
- cellContainer: {
993
- "&:hover": {
994
- backgroundColor: theme.colors.primaryDimmed,
995
- borderRadius: theme.radii.full
996
- },
997
- ":has(> span.HvCalendarCell-calendarDateInSelectionRange):has(> span.HvCalendarCell-startBookend)": {
998
- backgroundColor: theme.colors.bgPageSecondary,
999
- borderTopLeftRadius: theme.radii.full,
1000
- borderBottomLeftRadius: theme.radii.full
1001
- },
1002
- ":has(> span.HvCalendarCell-calendarDateInSelectionRange):has(> span.HvCalendarCell-endBookend)": {
1003
- backgroundColor: theme.colors.bgPageSecondary,
1004
- borderTopRightRadius: theme.radii.full,
1005
- borderBottomRightRadius: theme.radii.full
1006
- }
1007
- },
1008
- calendarDateInSelectionRange: {
1009
- borderRadius: 0
1010
- },
1011
- startBookend: {
1012
- backgroundColor: theme.colors.primary,
1013
- color: theme.colors.dimmer,
1014
- borderRadius: theme.radii.full
1015
- },
1016
- endBookend: {
1017
- backgroundColor: theme.colors.primary,
1018
- color: theme.colors.dimmer,
1019
- borderRadius: theme.radii.full
1020
- }
1021
- }
1022
- },
1023
- HvSingleCalendar: {
1024
- classes: {
1025
- root: {
1026
- " .HvNavigation-text": {
1027
- ...theme.typography.captionLabel
1028
- },
1029
- " .HvNavigation-root": {
1030
- gap: 0
1031
- },
1032
- " .HvMonthSelector-calendarMonthlyGrid": {
1033
- gridTemplateColumns: "repeat(4, 1fr)"
1034
- },
1035
- " .HvMonthSelector-calendarMonthlyCell": {
1036
- borderRadius: theme.radii.full,
1037
- width: 48,
1038
- height: 48
1039
- },
1040
- " .HvMonthSelector-calendarMonthlyCellSelected": {
1041
- backgroundColor: theme.colors.primary,
1042
- color: theme.colors.dimmer,
1043
- ":hover": {
1044
- border: `1px solid ${theme.colors.primary}`,
1045
- color: theme.colors.text,
1046
- backgroundColor: theme.colors.primaryDimmed
1047
- }
1048
- }
1049
- },
1050
- calendarDay: {
1051
- width: 32,
1052
- height: 32,
1053
- ...theme.typography.caption2
1054
- },
1055
- weekdays: {
1056
- borderBottom: `1px solid ${theme.colors.borderSubtle}`,
1057
- marginBottom: theme.space.xs,
1058
- justifyContent: "center"
1059
- },
1060
- calendarGrid: {
1061
- justifyContent: "center",
1062
- gridTemplateColumns: "repeat(7, 32px)",
1063
- "& .HvSingleCalendar-cellsInRange": {
1064
- "& .HvSingleCalendar-startBookend": {
1065
- borderLeft: "none",
1066
- backgroundColor: theme.colors.primary,
1067
- color: theme.colors.dimmer
1068
- }
1069
- },
1070
- "&:hover .HvSingleCalendar-cellsInRange": {
1071
- "& .HvSingleCalendar-startBookend": {
1072
- borderLeft: "none",
1073
- backgroundColor: theme.colors.primary,
1074
- color: theme.colors.dimmer
1075
- }
1076
- },
1077
- "& .HvSingleCalendar-cellsInRange:hover": {
1078
- borderTopRightRadius: theme.radii.full,
1079
- borderBottomRightRadius: theme.radii.full,
1080
- "& .HvSingleCalendar-calendarDate": {
1081
- borderRight: "none",
1082
- backgroundColor: theme.colors.primary,
1083
- color: theme.colors.dimmer
1084
- }
1085
- }
1086
- },
1087
- cellsInRange: {
1088
- ":has(span.HvSingleCalendar-startBookend)": {
1089
- borderTopLeftRadius: theme.radii.full,
1090
- borderBottomLeftRadius: theme.radii.full
1091
- }
1092
- },
1093
- cellContainer: {
1094
- "&:hover": {
1095
- ":has(span.HvSingleCalendar-startBookend)": {
1096
- borderTopRightRadius: 0,
1097
- borderBottomRightRadius: 0
1098
- },
1099
- ":has(span.HvSingleCalendar-endBookend)": {
1100
- borderTopLeftRadius: 0,
1101
- borderBottomLeftRadius: 0
1102
- }
1103
- }
1104
- },
1105
- calendarDateInSelectionRange: {
1106
- ":hover:not( .HvSingleCalendar-endBookend):not( .HvSingleCalendar-startBookend)": {
1107
- borderRadius: 0
1108
- }
1109
- },
1110
- startBookend: {
1111
- borderLeft: "none",
1112
- borderTopLeftRadius: theme.radii.full,
1113
- borderBottomLeftRadius: theme.radii.full
1114
- },
1115
- endBookend: {
1116
- borderRight: "none",
1117
- borderTopRightRadius: theme.radii.full,
1118
- borderBottomRightRadius: theme.radii.full
1119
- }
1120
- }
1121
- },
1122
- HvBannerContent: {
1123
- classes: {
1124
- root: {
1125
- overflow: "hidden",
1126
- minHeight: "unset"
1127
- }
1128
- }
1129
- },
1130
- HvSnackbarContent: {
1131
- classes: {
1132
- root: {
1133
- width: 525,
1134
- minHeight: "unset",
1135
- boxShadow: theme.colors.shadow
1136
- },
1137
- messageText: {
1138
- paddingLeft: 0
1139
- },
1140
- iconVariant: {
1141
- alignSelf: "flex-start",
1142
- margin: theme.space.xxs,
1143
- marginRight: theme.space.sm
1144
- }
1145
- }
1146
- },
1147
- HvBreadCrumb: {
1148
- maxVisible: 5,
1149
- classes: {
1150
- currentPage: {
1151
- fontWeight: theme.fontWeights.semibold,
1152
- padding: `0 ${theme.space.xxs}`
1153
- },
1154
- separatorContainer: {
1155
- padding: `0 ${theme.space.xxs}`
1156
- },
1157
- link: {
1158
- height: 24,
1159
- display: "flex",
1160
- alignItems: "center",
1161
- padding: `0px ${theme.space.xxs}`,
1162
- fontWeight: theme.fontWeights.normal
1163
- }
1164
- },
1165
- separator: "/"
1166
- },
1167
- HvFilterGroupContent: {
1168
- classes: {
1169
- actions: {
1170
- flexDirection: "row-reverse"
1171
- }
1172
- }
1173
- }
1174
- }
62
+ var pentaho$1 = mergeTheme(pentaho, {
63
+ icons: {
64
+ viewBox: "0 0 256 256",
65
+ Success: "M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z",
66
+ Caution: "M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM222.93,203.8a8.5,8.5,0,0,1-7.48,4.2H40.55a8.5,8.5,0,0,1-7.48-4.2,7.59,7.59,0,0,1,0-7.72L120.52,44.21a8.75,8.75,0,0,1,15,0l87.45,151.87A7.59,7.59,0,0,1,222.93,203.8ZM120,144V104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z",
67
+ Fail: "M128,72a8,8,0,0,1,8,8v56a8,8,0,0,1-16,0V80A8,8,0,0,1,128,72ZM116,172a12,12,0,1,0,12-12A12,12,0,0,0,116,172Zm124-44a15.85,15.85,0,0,1-4.67,11.28l-96.05,96.06a16,16,0,0,1-22.56,0h0l-96-96.06a16,16,0,0,1,0-22.56l96.05-96.06a16,16,0,0,1,22.56,0l96.05,96.06A15.85,15.85,0,0,1,240,128Zm-16,0L128,32,32,128,128,224h0Z",
68
+ Info: "M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm16-40a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176ZM112,84a12,12,0,1,1,12,12A12,12,0,0,1,112,84Z",
69
+ Start: "M205.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L131.31,128ZM51.31,128l74.35-74.34a8,8,0,0,0-11.32-11.32l-80,80a8,8,0,0,0,0,11.32l80,80a8,8,0,0,0,11.32-11.32Z",
70
+ Backwards: "M165.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L91.31,128Z",
71
+ Forwards: "M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z",
72
+ End: "M141.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L124.69,128,50.34,53.66A8,8,0,0,1,61.66,42.34l80,80A8,8,0,0,1,141.66,133.66Zm80-11.32-80-80a8,8,0,0,0-11.32,11.32L204.69,128l-74.35,74.34a8,8,0,0,0,11.32,11.32l80-80A8,8,0,0,0,221.66,122.34Z",
73
+ Filters: "M230.6,49.53A15.81,15.81,0,0,0,216,40H40A16,16,0,0,0,28.19,66.76l.08.09L96,139.17V216a16,16,0,0,0,24.87,13.32l32-21.34A16,16,0,0,0,160,194.66V139.17l67.74-72.32.08-.09A15.8,15.8,0,0,0,230.6,49.53ZM40,56h0Zm106.18,74.58A8,8,0,0,0,144,136v58.66L112,216V136a8,8,0,0,0-2.16-5.47L40,56H216Z"
74
+ },
75
+ components: {
76
+ HvAvatar: {
77
+ color: "primaryStrong",
78
+ backgroundColor: "primaryDimmed",
79
+ classes: {
80
+ avatar: {
81
+ border: `1px solid ${theme.colors.bgContainerSecondary}`,
82
+ fontWeight: theme.fontWeights.semibold,
83
+ ...Object.entries(avatarColors).reduce((acc, [color, styles]) => {
84
+ acc[`&[data-color=${color}]`] = styles;
85
+ return acc;
86
+ }, {})
87
+ },
88
+ xs: {
89
+ "--size": "24px",
90
+ fontSize: theme.fontSizes.sm
91
+ },
92
+ sm: {
93
+ "--size": "24px",
94
+ fontSize: theme.fontSizes.sm
95
+ },
96
+ md: {
97
+ "--size": "32px",
98
+ fontSize: theme.fontSizes.base
99
+ },
100
+ lg: {
101
+ "--size": "48px",
102
+ fontSize: theme.fontSizes.xl2
103
+ },
104
+ xl: {
105
+ "--size": "64px",
106
+ fontSize: theme.fontSizes.xl3
107
+ }
108
+ }
109
+ },
110
+ HvAvatarGroup: {
111
+ maxVisible: 4,
112
+ classes: { root: { ...Object.values(avatarColors).reduce((acc, styles, i) => {
113
+ const key = `&>.HvAvatar-container:nth-of-type(${i + 1}) .HvAvatar-avatar`;
114
+ acc[key] = styles;
115
+ return acc;
116
+ }, {}) } }
117
+ },
118
+ HvLoading: { classes: { loadingBar: { borderRadius: 1 } } },
119
+ HvBadge: { classes: { badge: {
120
+ "--bg-color": theme.colors.textSubtle,
121
+ color: ld("white", "black"),
122
+ "&[data-color='textSubtle']:not(:empty)": {
123
+ color: theme.colors.textSubtle,
124
+ backgroundColor: theme.colors.bgPageSecondary
125
+ },
126
+ ...Object.fromEntries([
127
+ "primary",
128
+ "positive",
129
+ "warning",
130
+ "negative"
131
+ ].map((color) => [`&[data-color='${color}']:not(:empty)`, {
132
+ color: theme.colors[color],
133
+ backgroundColor: theme.colors[`${color}Dimmed`]
134
+ }]))
135
+ } } },
136
+ HvBulkActions: {
137
+ semantic: false,
138
+ classes: { root: {
139
+ borderRadius: theme.radii.round,
140
+ padding: theme.space.xs
141
+ } }
142
+ },
143
+ HvCallout: { classes: {
144
+ root: { outline: "1px solid var(--icolor, currentcolor)" },
145
+ ...Object.fromEntries(Object.entries(notificationMap).map(([variant, color]) => [variant, {
146
+ backgroundColor: theme.mix(`${color}Dimmed`, .5, "dimmer"),
147
+ "--icolor": theme.colors[color],
148
+ "--title": theme.colors[`${color}Deep`]
149
+ }])),
150
+ message: { "&&": { color: theme.colors.text } },
151
+ messageIcon: { alignSelf: "start" },
152
+ messageTitle: { color: "var(--title)" },
153
+ actionClose: { color: theme.colors.text }
154
+ } },
155
+ HvSnackbar: { anchorOrigin: {
156
+ vertical: "bottom",
157
+ horizontal: "center"
158
+ } },
159
+ HvSnackbarProvider: { anchorOrigin: {
160
+ vertical: "bottom",
161
+ horizontal: "center"
162
+ } },
163
+ HvBaseCheckBox: { classes: { root: { borderRadius: theme.radii.base } } },
164
+ HvCheckBoxIcon: { classes: {
165
+ root: { borderRadius: theme.radii.base },
166
+ checked: {
167
+ "--bg-color": theme.colors.primary,
168
+ color: theme.colors.bgContainer
169
+ }
170
+ } },
171
+ HvBaseRadio: { classes: { root: { borderRadius: theme.radii.base } } },
172
+ HvRadioIcon: { classes: { checked: { "--bg-color": theme.colors.primary } } },
173
+ HvBaseSwitch: { classes: {
174
+ root: {
175
+ padding: theme.space.xxs,
176
+ borderRadius: theme.radii.full,
177
+ "&:hover": { backgroundColor: theme.colors.bgHover },
178
+ "& .HvBaseSwitch-switchBase": {
179
+ "& .HvBaseSwitch-thumb": {
180
+ borderColor: "transparent",
181
+ backgroundColor: "#FFFFFF",
182
+ left: -8,
183
+ top: -3,
184
+ width: 14,
185
+ height: 14
186
+ },
187
+ "+.HvBaseSwitch-track": {
188
+ backgroundColor: theme.colors.textDimmed,
189
+ border: "none",
190
+ width: 40,
191
+ height: 18
192
+ },
193
+ "&.HvBaseSwitch-checked": {
194
+ "+.HvBaseSwitch-track": { backgroundColor: theme.colors.positive },
195
+ "& .HvBaseSwitch-thumb": { left: -2 }
196
+ },
197
+ "&.HvBaseSwitch-disabled": {
198
+ "& .HvBaseSwitch-thumb": { borderColor: theme.colors.textDisabled },
199
+ "+.HvBaseSwitch-track": {
200
+ backgroundColor: theme.colors.bgDisabled,
201
+ border: "none"
202
+ }
203
+ },
204
+ "&[data-size=medium]": {
205
+ "+.HvBaseSwitch-track": {
206
+ width: 48,
207
+ height: 24
208
+ },
209
+ "& .HvBaseSwitch-thumb": {
210
+ left: -5,
211
+ top: 0,
212
+ width: 16,
213
+ height: 16
214
+ },
215
+ "&.HvBaseSwitch-checked .HvBaseSwitch-thumb": {
216
+ left: 3,
217
+ top: 0
218
+ }
219
+ }
220
+ }
221
+ },
222
+ readOnly: {
223
+ ":hover": { backgroundColor: "transparent" },
224
+ "& .HvBaseSwitch-switchBase + .HvBaseSwitch-track": { backgroundColor: theme.colors.border },
225
+ "& .HvBaseSwitch-switchBase.HvBaseSwitch-checked + .HvBaseSwitch-track": { backgroundColor: theme.mix("positive", .5, "dimmer") }
226
+ }
227
+ } },
228
+ HvSwitch: { classes: { container: {
229
+ borderRadius: theme.radii.full,
230
+ "&:hover": { backgroundColor: theme.colors.bgHover },
231
+ "& .HvBaseSwitch-root": { "&:hover": { backgroundColor: "transparent" } }
232
+ } } },
233
+ HvSection: { classes: {
234
+ content: { backgroundColor: theme.colors.bgContainer },
235
+ header: {
236
+ padding: theme.spacing("xs", "sm"),
237
+ gap: theme.space.xs
238
+ }
239
+ } },
240
+ HvSelect: { classes: {
241
+ root: {
242
+ borderRadius: theme.radii.round,
243
+ "& .HvButton-subtle[data-color=text]": {
244
+ borderColor: theme.colors.textDimmed,
245
+ backgroundColor: inputColors.bg
246
+ }
247
+ },
248
+ select: { borderRadius: theme.radii.round }
249
+ } },
250
+ HvTagsInput: { classes: {
251
+ tagsList: {
252
+ backgroundColor: inputColors.bg,
253
+ padding: theme.space.xxs,
254
+ borderColor: theme.colors.textDimmed
255
+ },
256
+ singleLine: { height: 32 },
257
+ disabled: {
258
+ "& .HvTagsInput-tagsList": {
259
+ backgroundColor: theme.colors.bgDisabled,
260
+ "&,:hover": { borderColor: theme.colors.textDisabled }
261
+ },
262
+ "& .HvTagsInput-tag": { outlineColor: theme.colors.textDisabled }
263
+ }
264
+ } },
265
+ HvTag: {
266
+ showSelectIcon: false,
267
+ size: "sm",
268
+ classes: {
269
+ root: {
270
+ outline: `1px solid ${theme.colors.border}`,
271
+ outlineOffset: -1,
272
+ ":where(:not([data-color],.HvTag-disabled))": {
273
+ color: theme.colors.text,
274
+ "--tagColor": theme.colors.bgContainer
275
+ },
276
+ ":where([data-color]:not(.HvTag-disabled))": {
277
+ ":not([data-color$=_20],[data-color^=cat])": {
278
+ color: "var(--tagColor)",
279
+ backgroundColor: theme.mix("var(--tagColor)", "8%", "white"),
280
+ outlineColor: theme.mix("var(--tagColor)", "30%", "white"),
281
+ "&.HvTag-clickable:is(:hover,:focus-visible)": { backgroundColor: theme.mix("var(--tagColor)", "20%", "white") }
282
+ },
283
+ ...Object.fromEntries(semaColors.map((color) => [[`&[data-color=${color}]`], {
284
+ color: theme.colors[`${color}Strong`],
285
+ backgroundColor: theme.colors[`${color}Dimmed`],
286
+ outlineColor: theme.colors[`${color}Border`],
287
+ "&.HvTag-clickable:has(:hover,:focus-visible)": { backgroundColor: theme.colors[`${color}Subtle`] }
288
+ }]))
289
+ }
290
+ },
291
+ hasIcon: { paddingLeft: theme.space.xs },
292
+ xs: { borderRadius: theme.radii.base },
293
+ sm: { borderRadius: theme.radii.base },
294
+ md: { borderRadius: theme.radii.round },
295
+ label: {
296
+ paddingLeft: 8,
297
+ paddingRight: 8
298
+ },
299
+ deleteIcon: {
300
+ borderRadius: "inherit",
301
+ marginRight: 4
302
+ },
303
+ clickable: { ":hover": { backgroundColor: theme.colors.bgHover } },
304
+ selected: { "&&": { outlineColor: "currentcolor" } },
305
+ disabled: {
306
+ color: theme.colors.textDisabled,
307
+ outlineColor: "transparent",
308
+ "&,:hover": { backgroundColor: theme.colors.bgDisabled }
309
+ }
310
+ }
311
+ },
312
+ HvIconContainer: { classes: {
313
+ root: { padding: 0 },
314
+ xs: {
315
+ fontSize: 16,
316
+ padding: 0
317
+ },
318
+ sm: {
319
+ fontSize: 20,
320
+ padding: 2
321
+ },
322
+ md: {
323
+ fontSize: 26,
324
+ padding: 3
325
+ },
326
+ lg: {
327
+ fontSize: 36,
328
+ padding: 6
329
+ },
330
+ xl: {
331
+ fontSize: 48,
332
+ padding: 5
333
+ }
334
+ } },
335
+ HvInlineEditor: { classes: {
336
+ button: {
337
+ borderRadius: 2,
338
+ "&:focus": { borderColor: theme.colors.text }
339
+ },
340
+ inputRoot: { borderRadius: 2 }
341
+ } },
342
+ HvButtonBase: { classes: { root: {
343
+ borderRadius: theme.radii.base,
344
+ ":where(:not(.HvButtonBase-disabled))": {
345
+ ":hover": { backgroundColor: theme.colors.primaryDimmed },
346
+ ":active": { backgroundColor: theme.colors.primarySubtle }
347
+ }
348
+ } } },
349
+ HvButton: {
350
+ radius: "full",
351
+ classes: {
352
+ root: { ":where(:not(.HvButton-disabled,.HvButton-contained))": {
353
+ "&[data-color=positive]": { color: theme.colors.positive },
354
+ "&[data-color=warning]": { color: theme.colors.warning },
355
+ "&[data-color=negative]": { color: theme.colors.negative },
356
+ ":hover": { backgroundColor: theme.colors.primaryDimmed },
357
+ ":active": { backgroundColor: theme.colors.primarySubtle }
358
+ } },
359
+ contained: { ":where(:not(.HvButton-disabled))": {
360
+ color: "#FFFFFF",
361
+ "&[data-color=primary]": {
362
+ backgroundColor: theme.colors.primary,
363
+ ":hover": { backgroundColor: theme.colors.primaryStrong },
364
+ ":active": { backgroundColor: theme.colors.primaryDeep }
365
+ },
366
+ "&[data-color=positive]": {
367
+ ":hover": { backgroundColor: theme.colors.positiveDeep },
368
+ ":active": { backgroundColor: theme.colors.positiveStrong }
369
+ },
370
+ "&[data-color=warning]": {
371
+ ":hover": { backgroundColor: theme.colors.warningDeep },
372
+ ":active": { backgroundColor: theme.colors.warningStrong }
373
+ },
374
+ "&[data-color=negative]": {
375
+ ":hover": { backgroundColor: theme.colors.negativeDeep },
376
+ ":active": { backgroundColor: theme.colors.negativeStrong }
377
+ }
378
+ } },
379
+ subtle: {
380
+ borderColor: theme.alpha("currentcolor", .4),
381
+ ":where(:not(.HvButton-disabled))": {
382
+ "&[data-color=primary]": {
383
+ borderColor: theme.colors.primarySubtle,
384
+ backgroundColor: theme.colors.primaryDimmed
385
+ },
386
+ "&[data-color=secondary]": {
387
+ borderColor: theme.colors.border,
388
+ backgroundColor: theme.colors.bgPage
389
+ },
390
+ ":hover": { backgroundColor: theme.colors.primaryDimmed },
391
+ ":active": {
392
+ borderColor: "transparent",
393
+ backgroundColor: theme.colors.primarySubtle
394
+ },
395
+ "&[data-color=positive]": {
396
+ borderColor: theme.colors.positiveBorder,
397
+ backgroundColor: theme.colors.positiveDimmed,
398
+ ":hover": { backgroundColor: theme.colors.positiveSubtle },
399
+ ":active": { backgroundColor: theme.colors.positiveBorder }
400
+ },
401
+ "&[data-color=warning]": {
402
+ borderColor: theme.colors.warningBorder,
403
+ backgroundColor: theme.colors.warningDimmed,
404
+ ":hover": { backgroundColor: theme.colors.warningSubtle },
405
+ ":active": { backgroundColor: theme.colors.warningBorder }
406
+ },
407
+ "&[data-color=negative]": {
408
+ borderColor: theme.colors.negativeBorder,
409
+ backgroundColor: theme.colors.negativeDimmed,
410
+ ":hover": { backgroundColor: theme.colors.negativeSubtle },
411
+ ":active": { backgroundColor: theme.colors.negativeBorder }
412
+ }
413
+ }
414
+ },
415
+ ghost: { ":where(:not(.HvButton-disabled))": {
416
+ "&[data-color=positive]": {
417
+ ":hover": { backgroundColor: theme.colors.positiveDimmed },
418
+ ":active": { backgroundColor: theme.colors.positiveSubtle }
419
+ },
420
+ "&[data-color=warning]": {
421
+ ":hover": { backgroundColor: theme.colors.warningDimmed },
422
+ ":active": { backgroundColor: theme.colors.warningSubtle }
423
+ },
424
+ "&[data-color=negative]": {
425
+ ":hover": { backgroundColor: theme.colors.negativeDimmed },
426
+ ":active": { backgroundColor: theme.colors.negativeSubtle }
427
+ }
428
+ } },
429
+ disabled: {
430
+ color: theme.colors.textDisabled,
431
+ ":not(.HvButton-ghost)": {
432
+ borderColor: "transparent",
433
+ "&,:hover,:active": { backgroundColor: theme.colors.bgDisabled }
434
+ }
435
+ }
436
+ }
437
+ },
438
+ HvMultiButton: { classes: {
439
+ multiple: {
440
+ borderRadius: theme.radii.full,
441
+ borderColor: theme.colors.border,
442
+ "& .HvMultiButton-button": {
443
+ borderColor: "inherit",
444
+ ...theme.typography.body,
445
+ "&.HvMultiButton-selected": {
446
+ color: theme.colors.primary,
447
+ backgroundColor: theme.colors.primaryDimmed
448
+ },
449
+ "&:not(.HvMultiButton-firstButton, .HvMultiButton-lastButton)": { borderRadius: 0 }
450
+ }
451
+ },
452
+ vertical: {
453
+ borderRadius: theme.radii.large,
454
+ borderColor: theme.colors.border
455
+ }
456
+ } },
457
+ HvDialog: { classes: {
458
+ paper: {
459
+ borderRadius: theme.radii.large,
460
+ boxShadow: shadows.modal
461
+ },
462
+ statusBar: {
463
+ border: "none",
464
+ borderTopLeftRadius: theme.radii.large,
465
+ borderTopRightRadius: theme.radii.large
466
+ }
467
+ } },
468
+ HvDialogActions: { classes: { root: { borderTop: "none" } } },
469
+ HvDropdownButton: { classes: { disabled: {
470
+ backgroundColor: theme.colors.bgDisabled,
471
+ borderColor: theme.colors.bgDisabled,
472
+ "&.HvButton-subtle": {
473
+ borderColor: theme.colors.bgDisabled,
474
+ "&,:hover": { backgroundColor: theme.colors.bgDisabled }
475
+ },
476
+ "&.HvButton-ghost": {
477
+ borderColor: theme.colors.bgDisabled,
478
+ "&,:hover": { backgroundColor: theme.colors.bgDisabled }
479
+ }
480
+ } } },
481
+ HvPagination: { classes: { icon: { fontSize: 16 } } },
482
+ HvHeader: { classes: { root: {
483
+ borderBottom: `1px solid ${theme.colors.borderSubtle}`,
484
+ boxShadow: "none"
485
+ } } },
486
+ HvHeaderBrand: { classes: { separator: {
487
+ backgroundColor: theme.colors.border,
488
+ margin: theme.spacing(0, "md"),
489
+ height: 32
490
+ } } },
491
+ HvHeaderMenuBarBar: { classes: {
492
+ active: {
493
+ boxShadow: "none",
494
+ borderBottom: `1px solid ${theme.colors.borderSubtle}`
495
+ },
496
+ list: {
497
+ "& li:hover > .HvHeader-MenuBar-hidden": {
498
+ boxShadow: "none",
499
+ borderBottom: `1px solid ${theme.colors.borderSubtle}`
500
+ },
501
+ "& li:focus-within > .HvHeader-MenuBar-hidden": {
502
+ boxShadow: "none",
503
+ borderBottom: `1px solid ${theme.colors.borderSubtle}`
504
+ }
505
+ }
506
+ } },
507
+ HvVerticalNavigation: { classes: {
508
+ root: {
509
+ width: 280,
510
+ color: theme.colors.textLight,
511
+ backgroundColor: slate[900],
512
+ boxShadow: `inset -1px 0 0 0 ${slate[500]}`,
513
+ "& > :not(nav:first-of-type)": { borderTop: `1px solid ${slate[500]}` },
514
+ "& > :only-child": {
515
+ padding: theme.space.sm,
516
+ "& .HvVerticalNavigationSlider-listContainer": { padding: 0 }
517
+ }
518
+ },
519
+ slider: { "& > div:first-of-type": { borderBottom: `1px solid ${slate[500]}` } }
520
+ } },
521
+ HvVerticalNavigationAction: { classes: { action: {
522
+ borderRadius: theme.radii.round,
523
+ "&:hover, &:focus": { backgroundColor: slate[700] }
524
+ } } },
525
+ HvVerticalNavigationSlider: { classes: {
526
+ root: {
527
+ minHeight: "32px",
528
+ borderLeft: "unset",
529
+ borderRadius: theme.radii.round,
530
+ "&.HvIsFocused": { backgroundColor: slate[700] },
531
+ "&.HvListItem-interactive:not(.HvListItem-disabled):not(.HvListItem-selected):hover": { backgroundColor: slate[700] }
532
+ },
533
+ listItemDisabled: {
534
+ color: neutral[500],
535
+ backgroundColor: neutral[800],
536
+ "& .HvListItem-startAdornment": { backgroundColor: "transparent" },
537
+ "& .HvListItem-endAdornment": { backgroundColor: "transparent" }
538
+ },
539
+ listItemSelected: {
540
+ background: blue[800],
541
+ borderLeft: "unset"
542
+ },
543
+ listItemFocus: { background: slate[700] },
544
+ listContainer: { padding: theme.space.sm }
545
+ } },
546
+ HvVerticalNavigationTreeViewItem: { classes: {
547
+ content: {
548
+ borderLeft: "unset",
549
+ borderRadius: theme.radii.round,
550
+ ".HvVerticalNavigationTreeViewItem-selected>&": {
551
+ background: blue[800],
552
+ borderLeft: "unset"
553
+ },
554
+ ":not(.HvVerticalNavigationTreeViewItem-disabled>&):not(.HvVerticalNavigationTreeViewItem-selected>&)": { "&:hover, &:focus-visible, &.focus-visible": { background: slate[700] } },
555
+ ".HvVerticalNavigationTreeViewItem-focused>&": { background: slate[700] }
556
+ },
557
+ disabled: {
558
+ "& .HvVerticalNavigationTreeViewItem-label": { color: neutral[500] },
559
+ "& .HvVerticalNavigationTreeViewItem-content": { background: neutral[800] }
560
+ },
561
+ icon: { "& .HvAvatar-root": { borderRadius: theme.radii.round } }
562
+ } },
563
+ HvCard: { classes: {
564
+ root: {
565
+ outlineColor: theme.colors.borderSubtle,
566
+ boxShadow: theme.colors.shadow,
567
+ "--rb": theme.radii.large,
568
+ "&[data-color=sema0]": {
569
+ overflow: "hidden",
570
+ height: "fit-content",
571
+ "--rt": theme.radii.large,
572
+ "& .HvCard-semanticBar": { display: "none" }
573
+ },
574
+ "& .MuiCardContent-root:last-child": { paddingBottom: 0 },
575
+ "& > :last-child:not(.HvCardMedia-root)": { paddingBottom: theme.space.sm },
576
+ "& .HvActionBar-root": { borderTop: "none" }
577
+ },
578
+ selectable: { ":hover": {
579
+ outlineColor: theme.colors.primarySubtle,
580
+ backgroundColor: theme.colors.bgHover
581
+ } },
582
+ selected: { "&,&:hover,&:focus": { outlineColor: theme.colors.primary } },
583
+ semanticBar: {
584
+ "--bar-height": "2px",
585
+ borderRadius: `${theme.radii.base} ${theme.radii.base} 0 0`
586
+ }
587
+ } },
588
+ HvCardHeader: { classes: {
589
+ root: {
590
+ flexDirection: "row-reverse",
591
+ "&& + *": { paddingTop: 0 }
592
+ },
593
+ subheader: { color: theme.colors.textSubtle },
594
+ action: { alignSelf: "center" }
595
+ } },
596
+ HvCardContent: { classes: { content: {
597
+ paddingBottom: 0,
598
+ "&& + .HvCardMedia-root": { paddingTop: theme.space.xs }
599
+ } } },
600
+ HvFooter: { name: "Pentaho" },
601
+ HvTableCell: { classes: { root: { borderColor: theme.colors.borderSubtle } } },
602
+ HvTableHeader: { classes: {
603
+ root: { borderColor: theme.colors.borderSubtle },
604
+ head: { backgroundColor: theme.colors.bgPage }
605
+ } },
606
+ HvTabs: { classes: { floating: {
607
+ "& .HvTab-root": {
608
+ marginTop: 0,
609
+ zIndex: 1,
610
+ "&:is(.HvTab-selected)": {
611
+ borderColor: "transparent",
612
+ backgroundColor: "transparent"
613
+ },
614
+ "&:hover": { borderRadius: theme.radii.full },
615
+ "::after": { display: "none" }
616
+ },
617
+ "& .HvTabs-indicator": {
618
+ height: "100%",
619
+ backgroundColor: theme.colors.bgContainer,
620
+ border: `1px solid ${theme.colors.primary}`,
621
+ borderRadius: theme.radii.full
622
+ },
623
+ "& .HvTabs-flexContainer": {
624
+ display: "inline-flex",
625
+ backgroundColor: theme.colors.bgPageSecondary,
626
+ borderRadius: theme.radii.full,
627
+ marginLeft: 0
628
+ }
629
+ } } },
630
+ HvLabel: { classes: { root: { "& span[aria-hidden]": { color: theme.form.errorColor } } } },
631
+ HvBaseInput: { classes: {
632
+ root: {
633
+ borderColor: theme.colors.textDimmed,
634
+ backgroundColor: inputColors.bg
635
+ },
636
+ disabled: { backgroundColor: theme.colors.bgDisabled }
637
+ } },
638
+ HvInput: { classes: {
639
+ label: { "& span[aria-hidden]::before": { content: "\" \"" } },
640
+ inputRoot: { ":has([type=search])": { borderRadius: theme.radii.full } },
641
+ suggestionsContainer: { "&::before": {
642
+ backgroundColor: "transparent",
643
+ height: 0,
644
+ boxShadow: "none"
645
+ } }
646
+ } },
647
+ HvBaseDropdown: { classes: {
648
+ header: {
649
+ borderColor: theme.colors.textDimmed,
650
+ backgroundColor: inputColors.bg
651
+ },
652
+ headerOpen: { "&,:hover": { borderColor: theme.colors.textDimmed } }
653
+ } },
654
+ HvDropdownPanel: { classes: { panel: { ...popperStyles } } },
655
+ HvDropDownMenu: { classes: {
656
+ root: { "--r": "calc(var(--HvButton-height) / 2)" },
657
+ open: { "&[data-color=secondary]": { borderColor: theme.colors.textDimmed } }
658
+ } },
659
+ HvNumberInput: { classes: {
660
+ root: { ".HvBaseInput-disabled .HvInput-adornmentsBox": { backgroundColor: theme.colors.bgDisabled } },
661
+ adornmentsBox: {
662
+ backgroundColor: theme.colors.bgContainer,
663
+ borderLeft: `1px solid ${theme.colors.border}`,
664
+ borderRadius: theme.radii.none
665
+ }
666
+ } },
667
+ HvTooltip: { classes: { tooltip: {
668
+ padding: theme.spacing("xs", "sm"),
669
+ boxShadow: shadows.elevated
670
+ } } },
671
+ HvCalendarCell: { classes: {
672
+ dateWrapper: {
673
+ width: 32,
674
+ height: 32
675
+ },
676
+ calendarDate: {
677
+ width: 32,
678
+ height: 32,
679
+ ...theme.typography.caption1,
680
+ borderRadius: theme.radii.full,
681
+ ":hover": { borderRadius: theme.radii.full }
682
+ },
683
+ calendarDateSelected: {
684
+ backgroundColor: theme.colors.primary,
685
+ color: theme.colors.dimmer,
686
+ ":hover": {
687
+ border: `1px solid ${theme.colors.primary}`,
688
+ color: theme.colors.text
689
+ }
690
+ },
691
+ cellContainer: {
692
+ "&:hover": {
693
+ backgroundColor: theme.colors.primaryDimmed,
694
+ borderRadius: theme.radii.full
695
+ },
696
+ ":has(> span.HvCalendarCell-calendarDateInSelectionRange):has(> span.HvCalendarCell-startBookend)": {
697
+ backgroundColor: theme.colors.bgPageSecondary,
698
+ borderTopLeftRadius: theme.radii.full,
699
+ borderBottomLeftRadius: theme.radii.full
700
+ },
701
+ ":has(> span.HvCalendarCell-calendarDateInSelectionRange):has(> span.HvCalendarCell-endBookend)": {
702
+ backgroundColor: theme.colors.bgPageSecondary,
703
+ borderTopRightRadius: theme.radii.full,
704
+ borderBottomRightRadius: theme.radii.full
705
+ }
706
+ },
707
+ calendarDateInSelectionRange: { borderRadius: 0 },
708
+ startBookend: {
709
+ backgroundColor: theme.colors.primary,
710
+ color: theme.colors.dimmer,
711
+ borderRadius: theme.radii.full
712
+ },
713
+ endBookend: {
714
+ backgroundColor: theme.colors.primary,
715
+ color: theme.colors.dimmer,
716
+ borderRadius: theme.radii.full
717
+ }
718
+ } },
719
+ HvSingleCalendar: { classes: {
720
+ root: {
721
+ " .HvNavigation-text": { ...theme.typography.captionLabel },
722
+ " .HvNavigation-root": { gap: 0 },
723
+ " .HvMonthSelector-calendarMonthlyGrid": { gridTemplateColumns: "repeat(4, 1fr)" },
724
+ " .HvMonthSelector-calendarMonthlyCell": {
725
+ borderRadius: theme.radii.full,
726
+ width: 48,
727
+ height: 48
728
+ },
729
+ " .HvMonthSelector-calendarMonthlyCellSelected": {
730
+ backgroundColor: theme.colors.primary,
731
+ color: theme.colors.dimmer,
732
+ ":hover": {
733
+ border: `1px solid ${theme.colors.primary}`,
734
+ color: theme.colors.text,
735
+ backgroundColor: theme.colors.primaryDimmed
736
+ }
737
+ }
738
+ },
739
+ calendarDay: {
740
+ width: 32,
741
+ height: 32,
742
+ ...theme.typography.caption2
743
+ },
744
+ weekdays: {
745
+ borderBottom: `1px solid ${theme.colors.borderSubtle}`,
746
+ marginBottom: theme.space.xs,
747
+ justifyContent: "center"
748
+ },
749
+ calendarGrid: {
750
+ justifyContent: "center",
751
+ gridTemplateColumns: "repeat(7, 32px)",
752
+ "& .HvSingleCalendar-cellsInRange": { "& .HvSingleCalendar-startBookend": {
753
+ borderLeft: "none",
754
+ backgroundColor: theme.colors.primary,
755
+ color: theme.colors.dimmer
756
+ } },
757
+ "&:hover .HvSingleCalendar-cellsInRange": { "& .HvSingleCalendar-startBookend": {
758
+ borderLeft: "none",
759
+ backgroundColor: theme.colors.primary,
760
+ color: theme.colors.dimmer
761
+ } },
762
+ "& .HvSingleCalendar-cellsInRange:hover": {
763
+ borderTopRightRadius: theme.radii.full,
764
+ borderBottomRightRadius: theme.radii.full,
765
+ "& .HvSingleCalendar-calendarDate": {
766
+ borderRight: "none",
767
+ backgroundColor: theme.colors.primary,
768
+ color: theme.colors.dimmer
769
+ }
770
+ }
771
+ },
772
+ cellsInRange: { ":has(span.HvSingleCalendar-startBookend)": {
773
+ borderTopLeftRadius: theme.radii.full,
774
+ borderBottomLeftRadius: theme.radii.full
775
+ } },
776
+ cellContainer: { "&:hover": {
777
+ ":has(span.HvSingleCalendar-startBookend)": {
778
+ borderTopRightRadius: 0,
779
+ borderBottomRightRadius: 0
780
+ },
781
+ ":has(span.HvSingleCalendar-endBookend)": {
782
+ borderTopLeftRadius: 0,
783
+ borderBottomLeftRadius: 0
784
+ }
785
+ } },
786
+ calendarDateInSelectionRange: { ":hover:not( .HvSingleCalendar-endBookend):not( .HvSingleCalendar-startBookend)": { borderRadius: 0 } },
787
+ startBookend: {
788
+ borderLeft: "none",
789
+ borderTopLeftRadius: theme.radii.full,
790
+ borderBottomLeftRadius: theme.radii.full
791
+ },
792
+ endBookend: {
793
+ borderRight: "none",
794
+ borderTopRightRadius: theme.radii.full,
795
+ borderBottomRightRadius: theme.radii.full
796
+ }
797
+ } },
798
+ HvBannerContent: { classes: { root: {
799
+ overflow: "hidden",
800
+ minHeight: "unset"
801
+ } } },
802
+ HvSnackbarContent: { classes: {
803
+ root: {
804
+ width: 525,
805
+ minHeight: "unset",
806
+ boxShadow: theme.colors.shadow
807
+ },
808
+ messageText: { paddingLeft: 0 },
809
+ iconVariant: {
810
+ alignSelf: "flex-start",
811
+ margin: theme.space.xxs,
812
+ marginRight: theme.space.sm
813
+ }
814
+ } },
815
+ HvBreadCrumb: {
816
+ maxVisible: 5,
817
+ classes: {
818
+ currentPage: {
819
+ fontWeight: theme.fontWeights.semibold,
820
+ padding: `0 ${theme.space.xxs}`
821
+ },
822
+ separatorContainer: { padding: `0 ${theme.space.xxs}` },
823
+ link: {
824
+ height: 24,
825
+ display: "flex",
826
+ alignItems: "center",
827
+ padding: `0px ${theme.space.xxs}`,
828
+ fontWeight: theme.fontWeights.normal
829
+ }
830
+ },
831
+ separator: "/"
832
+ },
833
+ HvFilterGroupContent: { classes: { actions: { flexDirection: "row-reverse" } } }
834
+ }
1175
835
  });
1176
- export {
1177
- pentaho
1178
- };
836
+ //#endregion
837
+ export { pentaho$1 as pentaho };