@databiosphere/findable-ui 41.2.0 → 42.0.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 (464) hide show
  1. package/.release-please-manifest.json +1 -1
  2. package/CHANGELOG.md +25 -0
  3. package/lib/components/DataDictionary/components/Description/description.styles.d.ts +1 -1
  4. package/lib/components/DataDictionary/components/Description/description.styles.js +5 -5
  5. package/lib/components/DataDictionary/components/Entity/entity.js +2 -2
  6. package/lib/components/DataDictionary/components/Entity/entity.styles.js +2 -2
  7. package/lib/components/DataDictionary/components/Filters/components/ColumnFilterTags/columnFilterTags.styles.d.ts +1 -1
  8. package/lib/components/DataDictionary/components/Filters/filters.styles.d.ts +1 -1
  9. package/lib/components/DataDictionary/components/Layout/components/FiltersLayout/filtersLayout.styles.js +2 -2
  10. package/lib/components/DataDictionary/components/Layout/components/TitleLayout/titleLayout.styles.js +2 -2
  11. package/lib/components/DataDictionary/components/Outline/outline.styles.js +4 -4
  12. package/lib/components/DataDictionary/components/Table/table.styles.d.ts +1 -1
  13. package/lib/components/DataDictionary/components/Title/title.styles.d.ts +1 -1
  14. package/lib/components/DataDictionary/components/Tooltip/components/Title/constants.d.ts +1 -2
  15. package/lib/components/DataDictionary/components/Tooltip/components/Title/constants.js +0 -4
  16. package/lib/components/DataDictionary/components/Tooltip/components/Title/title.js +4 -4
  17. package/lib/components/DataDictionary/components/Tooltip/constants.js +8 -7
  18. package/lib/components/DataDictionary/dataDictionary.styles.js +2 -2
  19. package/lib/components/Detail/components/Table/table.js +2 -3
  20. package/lib/components/Error/error.js +4 -3
  21. package/lib/components/Error/error.styles.js +4 -4
  22. package/lib/components/Export/components/ExportForm/exportForm.styles.d.ts +3 -3
  23. package/lib/components/Export/components/ExportForm/exportForm.styles.js +11 -11
  24. package/lib/components/Export/components/ExportMethod/exportMethod.js +4 -3
  25. package/lib/components/Export/components/ExportMethod/exportMethod.styles.d.ts +0 -4
  26. package/lib/components/Export/components/ExportMethod/exportMethod.styles.js +0 -6
  27. package/lib/components/Export/components/ExportSummary/exportSummary.styles.js +6 -5
  28. package/lib/components/Export/components/ExportToTerra/components/TerraSetUpForm/components/FormStep/formStep.js +5 -3
  29. package/lib/components/Export/components/ExportToTerra/components/TerraSetUpForm/components/FormStep/formStep.styles.js +1 -1
  30. package/lib/components/Export/components/ExportToTerra/components/TerraSetUpForm/terraSetUpForm.js +2 -2
  31. package/lib/components/Export/components/ExportToTerra/components/TerraSetUpForm/terraSetUpForm.styles.js +10 -10
  32. package/lib/components/Export/components/ManifestDownload/components/ManifestDownloadEntity/manifestDownloadEntity.styles.js +7 -7
  33. package/lib/components/Export/export.styles.d.ts +1 -1
  34. package/lib/components/Export/export.styles.js +6 -6
  35. package/lib/components/Filter/components/ClearAllFilters/clearAllFilters.styles.d.ts +1 -1
  36. package/lib/components/Filter/components/FilterCountChip/filterCountChip.styles.d.ts +1 -1
  37. package/lib/components/Filter/components/FilterLabel/filterLabel.styles.d.ts +1 -1
  38. package/lib/components/Filter/components/FilterLabel/filterLabel.styles.js +2 -3
  39. package/lib/components/Filter/components/FilterList/filterList.styles.d.ts +1 -1
  40. package/lib/components/Filter/components/FilterMenuSearch/filterMenuSearch.styles.js +2 -2
  41. package/lib/components/Filter/components/FilterNoResultsFound/filterNoResultsFound.js +3 -2
  42. package/lib/components/Filter/components/FilterRange/filterRange.styles.js +2 -2
  43. package/lib/components/Filter/components/FilterTag/filterTag.styles.d.ts +1 -1
  44. package/lib/components/Filter/components/FilterTag/filterTag.styles.js +2 -1
  45. package/lib/components/Filter/components/Filters/filters.js +1 -1
  46. package/lib/components/Filter/components/Filters/filters.styles.d.ts +1 -1
  47. package/lib/components/Filter/components/Filters/filters.styles.js +4 -4
  48. package/lib/components/Filter/components/HighlightedLabel/highlightedLabel.styles.js +2 -1
  49. package/lib/components/Filter/components/SearchAllFilters/components/AutocompletePopper/autocompletePopper.styles.js +4 -4
  50. package/lib/components/Filter/components/SearchAllFilters/components/VariableSizeList/VariableSizeList.js +7 -8
  51. package/lib/components/Filter/components/SearchAllFilters/components/VariableSizeListItem/variableSizeListItem.js +2 -2
  52. package/lib/components/Filter/components/SearchAllFilters/searchAllFilters.js +5 -6
  53. package/lib/components/Filter/components/SearchAllFilters/searchAllFilters.styles.js +2 -2
  54. package/lib/components/Filter/components/SearchAllFiltersSearch/components/SearchCloseButton/searchCloseButton.js +3 -4
  55. package/lib/components/Filter/components/SearchAllFiltersSearch/searchAllFiltersSearch.styles.js +3 -3
  56. package/lib/components/Filter/components/VariableSizeListItem/variableSizeListItem.js +2 -2
  57. package/lib/components/Filter/components/controls/Controls/controls.js +1 -1
  58. package/lib/components/Filter/components/controls/Controls/controls.styles.d.ts +1 -1
  59. package/lib/components/Filter/components/surfaces/drawer/components/ButtonBase/buttonBase.styles.d.ts +1 -1
  60. package/lib/components/Filter/components/surfaces/drawer/components/ButtonBase/buttonBase.styles.js +2 -2
  61. package/lib/components/Filter/components/surfaces/drawer/components/IconButton/iconButton.styles.d.ts +1 -1
  62. package/lib/components/Filter/components/views/select/components/ListItemButton/listItemButton.d.ts +1 -1
  63. package/lib/components/Filter/components/views/select/components/ListItemButton/listItemButton.styles.d.ts +1 -1
  64. package/lib/components/Filter/components/views/select/components/ListItemText/components/Count/count.js +1 -1
  65. package/lib/components/Filter/components/views/select/components/ListItemText/components/Term/term.js +1 -1
  66. package/lib/components/Index/components/EntityView/components/controls/ExportButton/exportButton.styles.js +2 -2
  67. package/lib/components/Index/components/EntityView/components/controls/FilterButton/filterButton.styles.d.ts +1 -1
  68. package/lib/components/Index/components/EntityView/components/controls/FilterButton/filterButton.styles.js +2 -2
  69. package/lib/components/Index/components/EntityView/components/layout/Summary/summary.js +2 -2
  70. package/lib/components/Index/components/EntityView/components/layout/Summary/summary.styles.d.ts +1 -1
  71. package/lib/components/Index/components/EntityView/components/layout/Summary/summary.styles.js +2 -1
  72. package/lib/components/Index/components/EntityView/components/slots/EntityViewSlot/entityViewSlot.styles.d.ts +1 -1
  73. package/lib/components/Index/components/EntityView/components/slots/EntityViewSlot/entityViewSlot.styles.js +2 -2
  74. package/lib/components/Index/components/EntityView/components/views/ChartView/chartView.js +1 -1
  75. package/lib/components/Index/components/EntityView/components/views/ChartView/chartView.styles.d.ts +1 -1
  76. package/lib/components/Index/components/EntityView/components/views/ChartView/components/Chart/chart.styles.d.ts +1 -1
  77. package/lib/components/Index/components/EntityView/components/views/ChartView/components/Chart/chart.styles.js +4 -4
  78. package/lib/components/Index/index.styles.d.ts +4 -4
  79. package/lib/components/Index/index.styles.js +2 -2
  80. package/lib/components/Layout/components/BackPage/backPageView.styles.js +11 -10
  81. package/lib/components/Layout/components/BackPage/components/BackPageHero/backPageHero.styles.js +3 -3
  82. package/lib/components/Layout/components/BackPage/components/BackPageHero/components/Actions/actions.styles.js +2 -2
  83. package/lib/components/Layout/components/BackPage/components/BackPageHero/components/SubTitle/subTitle.js +2 -2
  84. package/lib/components/Layout/components/ContentLayout/contentLayout.styles.js +18 -19
  85. package/lib/components/Layout/components/Footer/components/VersionInfo/components/Tooltip/components/Title/title.js +2 -2
  86. package/lib/components/Layout/components/Footer/components/VersionInfo/versionInfo.styles.d.ts +1 -1
  87. package/lib/components/Layout/components/Footer/components/VersionInfo/versionInfo.styles.js +2 -2
  88. package/lib/components/Layout/components/Footer/footer.styles.js +8 -8
  89. package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/AuthenticationMenu/authenticationMenu.styles.d.ts +4 -4
  90. package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/AuthenticationMenu/authenticationMenu.styles.js +2 -1
  91. package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/Button/button.styles.d.ts +1 -1
  92. package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Menu/components/Content/components/Navigation/navigation.styles.js +3 -3
  93. package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Search/components/Button/button.styles.d.ts +1 -1
  94. package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Search/components/SearchBar/searchBar.styles.js +4 -4
  95. package/lib/components/Layout/components/Header/components/Content/components/Navigation/components/NavigationDrawer/navigationDrawer.styles.js +6 -5
  96. package/lib/components/Layout/components/Header/components/Content/components/Navigation/components/NavigationMenu/navigationMenu.styles.d.ts +1 -1
  97. package/lib/components/Layout/components/Header/components/Content/components/Navigation/components/NavigationMenu/navigationMenu.styles.js +7 -7
  98. package/lib/components/Layout/components/Header/components/Content/components/Navigation/components/NavigationMenuItems/navigationMenuItems.js +5 -5
  99. package/lib/components/Layout/components/Header/components/Content/components/Navigation/navigation.styles.js +2 -2
  100. package/lib/components/Layout/components/Header/components/Content/components/Slogan/slogan.js +2 -2
  101. package/lib/components/Layout/components/Header/components/Content/components/Slogan/slogan.styles.d.ts +1 -1
  102. package/lib/components/Layout/components/Header/components/Content/components/Slogan/slogan.styles.js +4 -4
  103. package/lib/components/Layout/components/Header/header.styles.js +2 -2
  104. package/lib/components/Layout/components/Nav/components/NavBarHero/navBarHero.styles.js +2 -1
  105. package/lib/components/Layout/components/Nav/nav.styles.d.ts +1 -1
  106. package/lib/components/Layout/components/Nav/nav.styles.js +8 -6
  107. package/lib/components/Layout/components/Outline/components/ContentsTab/contentsTab.styles.d.ts +1 -1
  108. package/lib/components/Layout/components/Outline/components/ContentsTab/contentsTab.styles.js +5 -4
  109. package/lib/components/Layout/components/Outline/outline.styles.d.ts +2 -2
  110. package/lib/components/Layout/components/Outline/outline.styles.js +8 -8
  111. package/lib/components/Layout/components/Sidebar/components/SidebarButton/sidebarButton.styles.js +6 -6
  112. package/lib/components/Layout/components/Sidebar/components/SidebarDrawer/sidebarDrawer.styles.js +5 -5
  113. package/lib/components/Layout/components/Sidebar/components/SidebarLabel/sidebarLabel.js +2 -2
  114. package/lib/components/Layout/components/Sidebar/components/SidebarPositioner/sidebarPositioner.styles.js +2 -2
  115. package/lib/components/Layout/components/Sidebar/components/SidebarTools/sidebarTools.styles.js +2 -2
  116. package/lib/components/Layout/components/Sidebar/sidebar.js +4 -5
  117. package/lib/components/Layout/components/Sidebar/sidebar.styles.js +2 -2
  118. package/lib/components/Links/components/Link/link.js +2 -1
  119. package/lib/components/Loading/loading.js +2 -1
  120. package/lib/components/Loading/loading.styles.js +2 -2
  121. package/lib/components/Login/components/Button/button.styles.d.ts +1 -1
  122. package/lib/components/Login/components/Section/components/Consent/consent.js +2 -2
  123. package/lib/components/Login/components/Section/components/Consent/consent.styles.d.ts +1 -1
  124. package/lib/components/Login/components/Section/components/Consent/consent.styles.js +1 -1
  125. package/lib/components/Login/components/Section/components/Warning/warning.js +1 -1
  126. package/lib/components/Login/login.js +6 -5
  127. package/lib/components/Login/login.styles.d.ts +2 -12
  128. package/lib/components/Login/login.styles.js +4 -13
  129. package/lib/components/MarkdownRenderer/components/Table/table.styles.js +2 -2
  130. package/lib/components/MarkdownRenderer/markdownRenderer.js +1 -1
  131. package/lib/components/NoResults/noResults.js +1 -1
  132. package/lib/components/NoResults/noResults.styles.js +2 -2
  133. package/lib/components/Project/components/Contacts/contacts.js +2 -1
  134. package/lib/components/Project/components/Details/details.js +3 -2
  135. package/lib/components/Project/components/SupplementaryLinks/supplementaryLinks.styles.js +2 -1
  136. package/lib/components/Stepper/components/Step/components/StepContent/stepContent.styles.js +2 -2
  137. package/lib/components/Stepper/components/Step/components/StepIcon/components/CompletedIcon/completedIcon.styles.d.ts +1 -1
  138. package/lib/components/Stepper/components/Step/components/StepIcon/components/CompletedIcon/completedIcon.styles.js +3 -3
  139. package/lib/components/Stepper/components/Step/components/StepIcon/stepIcon.styles.js +5 -5
  140. package/lib/components/Stepper/components/Step/components/StepLabel/components/Label/constants.js +1 -1
  141. package/lib/components/Stepper/components/Step/components/StepLabel/components/Label/label.styles.d.ts +1 -1
  142. package/lib/components/Stepper/components/Step/components/StepLabel/components/Optional/constants.js +1 -1
  143. package/lib/components/Stepper/components/Step/step.styles.d.ts +1 -1
  144. package/lib/components/Stepper/components/Step/step.styles.js +5 -5
  145. package/lib/components/Support/components/SupportRequest/components/Dialog/dialog.styles.d.ts +1 -1
  146. package/lib/components/Support/components/SupportRequest/components/Dialog/dialog.styles.js +5 -6
  147. package/lib/components/Support/components/SupportRequest/components/SupportRequestForm/supportRequestForm.js +2 -2
  148. package/lib/components/Support/components/SupportRequest/components/SupportRequestForm/supportRequestForm.styles.js +2 -2
  149. package/lib/components/Support/components/SupportRequest/components/SupportRequestSubmitted/supportRequestSubmitted.js +3 -3
  150. package/lib/components/Support/components/ViewSupport/viewSupport.styles.js +6 -6
  151. package/lib/components/Table/common/gridTable.styles.js +1 -2
  152. package/lib/components/Table/components/DownloadEntityResults/downloadEntityResults.styles.d.ts +1 -1
  153. package/lib/components/Table/components/DownloadEntityResults/downloadEntityResults.styles.js +2 -2
  154. package/lib/components/Table/components/PaginationSummary/paginationSummary.js +5 -4
  155. package/lib/components/Table/components/TableCell/components/BasicCell/basicCell.js +3 -2
  156. package/lib/components/Table/components/TableCell/components/CodeCell/codeCell.styles.d.ts +1 -1
  157. package/lib/components/Table/components/TableCell/components/CollapsableCell/collapsableCell.js +2 -2
  158. package/lib/components/Table/components/TableCell/components/CollapsableCell/collapsableCell.styles.js +5 -5
  159. package/lib/components/Table/components/TableCell/components/LinkCell/stories/args.js +1 -1
  160. package/lib/components/Table/components/TableCell/components/NTagCell/nTagCell.js +2 -2
  161. package/lib/components/Table/components/TableFeatures/ColumnFilter/columnFilter.js +1 -1
  162. package/lib/components/Table/components/TableFeatures/ColumnFilter/columnFilter.styles.d.ts +1 -1
  163. package/lib/components/Table/components/TableFeatures/ColumnFilter/components/ColumnFilterTag/columnFilterTag.styles.d.ts +1 -1
  164. package/lib/components/Table/components/TablePagination/tablePagination.js +1 -1
  165. package/lib/components/Table/components/TablePagination/tablePagination.styles.d.ts +1 -1
  166. package/lib/components/Table/components/TableRow/tableRow.styles.js +2 -2
  167. package/lib/components/Table/components/TableToolbar/components/RowPreview/components/RowDrawer/rowDrawer.js +2 -2
  168. package/lib/components/Table/components/TableToolbar/components/RowPreview/components/RowDrawer/rowDrawer.styles.js +5 -5
  169. package/lib/components/Table/components/TableToolbar/components/RowPreview/components/Section/components/RowDetail/rowDetail.js +2 -2
  170. package/lib/components/Table/components/TableToolbar/components/RowPreview/components/Section/components/RowDetail/rowDetail.styles.js +5 -5
  171. package/lib/components/Table/components/TableToolbar/components/RowPreview/components/Section/section.js +2 -2
  172. package/lib/components/Table/components/TableToolbar/components/RowPreview/components/Section/section.styles.js +1 -1
  173. package/lib/components/Table/components/TableToolbar/components/RowSelection/rowSelection.js +2 -2
  174. package/lib/components/Table/table.js +2 -3
  175. package/lib/components/Table/table.styles.js +2 -2
  176. package/lib/components/common/Accordion/accordion.js +2 -2
  177. package/lib/components/common/Alert/alert.styles.js +3 -3
  178. package/lib/components/common/Banner/banner.styles.js +4 -4
  179. package/lib/components/common/Banner/components/CookieBanner/cookieBanner.styles.js +4 -4
  180. package/lib/components/common/Button/components/DropdownButton/dropdownButton.styles.d.ts +1 -1
  181. package/lib/components/common/Button/components/HelpIconButton/helpIconButton.styles.js +2 -1
  182. package/lib/components/common/Button/components/NavigationButton/navigationButton.styles.js +5 -4
  183. package/lib/components/common/Card/card.styles.js +2 -2
  184. package/lib/components/common/Card/components/CardActions/cardActions.styles.js +2 -2
  185. package/lib/components/common/Card/components/CardSecondaryText/cardSecondaryText.d.ts +2 -5
  186. package/lib/components/common/Card/components/CardSecondaryText/cardSecondaryText.js +3 -3
  187. package/lib/components/common/Card/components/CardSecondaryTitle/cardSecondaryTitle.d.ts +2 -5
  188. package/lib/components/common/Card/components/CardSecondaryTitle/cardSecondaryTitle.js +4 -4
  189. package/lib/components/common/Card/components/CardSecondaryTitle/cardSecondaryTitle.styles.d.ts +2 -2
  190. package/lib/components/common/Card/components/CardSecondaryTitle/cardSecondaryTitle.styles.js +1 -1
  191. package/lib/components/common/Card/components/CardText/cardText.d.ts +2 -5
  192. package/lib/components/common/Card/components/CardText/cardText.js +3 -3
  193. package/lib/components/common/Card/components/CardTitle/cardTitle.d.ts +2 -5
  194. package/lib/components/common/Card/components/CardTitle/cardTitle.js +3 -3
  195. package/lib/components/common/Code/code.styles.js +10 -9
  196. package/lib/components/common/Dot/dot.styles.js +2 -1
  197. package/lib/components/common/Form/components/Input/input.js +2 -2
  198. package/lib/components/common/Form/components/Input/input.styles.d.ts +1 -1
  199. package/lib/components/common/Form/components/Input/input.styles.js +4 -4
  200. package/lib/components/common/Form/components/Select/select.js +2 -2
  201. package/lib/components/common/Form/components/Select/select.styles.d.ts +1 -1
  202. package/lib/components/common/Form/components/Select/select.styles.js +3 -3
  203. package/lib/components/common/Form/components/UploadFile/uploadFile.js +3 -3
  204. package/lib/components/common/Form/components/UploadFile/uploadFile.styles.d.ts +1 -1
  205. package/lib/components/common/Form/components/UploadFile/uploadFile.styles.js +10 -10
  206. package/lib/components/common/IconBadge/iconBadge.styles.js +13 -13
  207. package/lib/components/common/IconButton/iconButton.styles.d.ts +1 -1
  208. package/lib/components/common/IconButton/iconButton.styles.js +3 -3
  209. package/lib/components/common/Input/input.js +2 -2
  210. package/lib/components/common/Input/input.styles.d.ts +1 -1
  211. package/lib/components/common/Input/input.styles.js +3 -2
  212. package/lib/components/common/KeyValuePairs/components/KeyElType/keyElType.js +1 -1
  213. package/lib/components/common/KeyValuePairs/components/ValueElType/valueElType.js +1 -1
  214. package/lib/components/common/LoginDialog/constants.js +2 -2
  215. package/lib/components/common/MDXMarkdown/components/Section/mdxSection.styles.js +4 -4
  216. package/lib/components/common/Paper/components/FlatPaper/flatPaper.styles.d.ts +1 -1
  217. package/lib/components/common/Paper/components/FluidPaper/fluidPaper.styles.d.ts +1 -1
  218. package/lib/components/common/Paper/components/FluidPaper/fluidPaper.styles.js +2 -2
  219. package/lib/components/common/Paper/components/RoundedPaper/roundedPaper.styles.d.ts +1 -1
  220. package/lib/components/common/Paper/paper.styles.js +24 -24
  221. package/lib/components/common/Progress/components/CircularProgress/components/CircularProgressTrack/circularProgressTrack.styles.js +6 -6
  222. package/lib/components/common/Section/components/CollapsableSection/collapsableSection.js +8 -8
  223. package/lib/components/common/Section/components/CollapsableSection/collapsableSection.styles.d.ts +1 -1
  224. package/lib/components/common/Section/components/CollapsableSection/collapsableSection.styles.js +6 -5
  225. package/lib/components/common/Section/components/SectionTitle/sectionTitle.js +2 -1
  226. package/lib/components/common/Section/section.styles.d.ts +1 -1
  227. package/lib/components/common/Section/section.styles.js +4 -4
  228. package/lib/components/common/Socials/socials.styles.js +3 -3
  229. package/lib/components/common/StatusIcon/statusIcon.styles.js +13 -12
  230. package/lib/components/common/Tabs/tabs.styles.d.ts +1 -1
  231. package/lib/components/common/Tag/tag.d.ts +3 -6
  232. package/lib/components/common/Tag/tag.js +3 -2
  233. package/lib/components/common/Tag/tag.stories.d.ts +1 -1
  234. package/lib/components/common/Tag/tag.styles.d.ts +10 -2
  235. package/lib/components/common/Tag/tag.styles.js +4 -3
  236. package/lib/components/common/Title/title.js +1 -1
  237. package/lib/components/common/Typography/TypographyWordBreak/TypographyWordBreak.js +2 -1
  238. package/lib/styles/common/constants/app.d.ts +3 -0
  239. package/lib/styles/common/constants/app.js +3 -0
  240. package/lib/styles/common/constants/colorMixes.d.ts +1 -0
  241. package/lib/styles/common/constants/colorMixes.js +1 -0
  242. package/lib/styles/common/constants/font.d.ts +18 -0
  243. package/lib/styles/common/constants/font.js +18 -0
  244. package/lib/styles/common/constants/palette.d.ts +45 -45
  245. package/lib/styles/common/constants/palette.js +45 -45
  246. package/lib/styles/common/constants/shadows.js +3 -3
  247. package/lib/styles/common/mixins/breakpoints.d.ts +9 -7
  248. package/lib/styles/common/mixins/breakpoints.js +8 -7
  249. package/lib/styles/common/mui/typography.d.ts +32 -3
  250. package/lib/styles/common/mui/typography.js +22 -10
  251. package/lib/theme/common/breakpoints.d.ts +6 -27
  252. package/lib/theme/common/breakpoints.js +14 -36
  253. package/lib/theme/common/components.d.ts +2 -226
  254. package/lib/theme/common/components.js +1045 -1223
  255. package/lib/theme/common/fontStyles.d.ts +8 -0
  256. package/lib/theme/common/fontStyles.js +12 -0
  257. package/lib/theme/common/palette.d.ts +2 -42
  258. package/lib/theme/common/palette.js +22 -73
  259. package/lib/theme/common/typography.d.ts +2 -70
  260. package/lib/theme/common/typography.js +78 -126
  261. package/lib/theme/components/muiAlert.d.ts +2 -2
  262. package/lib/theme/components/muiAlert.js +95 -96
  263. package/lib/theme/components/muiAlertTitle.js +2 -2
  264. package/lib/theme/components/muiTableCell.d.ts +2 -2
  265. package/lib/theme/components/muiTableCell.js +43 -46
  266. package/lib/theme/theme.d.ts +0 -7
  267. package/lib/theme/theme.js +22 -100
  268. package/lib/theme/types.d.ts +4 -0
  269. package/lib/theme/types.js +1 -0
  270. package/package.json +1 -1
  271. package/src/components/DataDictionary/components/Description/description.styles.ts +5 -8
  272. package/src/components/DataDictionary/components/Entity/entity.styles.ts +2 -2
  273. package/src/components/DataDictionary/components/Entity/entity.tsx +2 -2
  274. package/src/components/DataDictionary/components/Layout/components/FiltersLayout/filtersLayout.styles.ts +2 -2
  275. package/src/components/DataDictionary/components/Layout/components/TitleLayout/titleLayout.styles.ts +2 -2
  276. package/src/components/DataDictionary/components/Outline/outline.styles.ts +4 -8
  277. package/src/components/DataDictionary/components/Tooltip/components/Title/constants.ts +1 -6
  278. package/src/components/DataDictionary/components/Tooltip/components/Title/title.tsx +8 -4
  279. package/src/components/DataDictionary/components/Tooltip/constants.ts +8 -7
  280. package/src/components/DataDictionary/dataDictionary.styles.ts +2 -5
  281. package/src/components/Detail/components/Table/table.tsx +2 -3
  282. package/src/components/Error/error.styles.ts +4 -4
  283. package/src/components/Error/error.tsx +10 -3
  284. package/src/components/Export/components/ExportForm/exportForm.styles.ts +12 -12
  285. package/src/components/Export/components/ExportMethod/exportMethod.styles.ts +0 -7
  286. package/src/components/Export/components/ExportMethod/exportMethod.tsx +14 -3
  287. package/src/components/Export/components/ExportSummary/exportSummary.styles.ts +6 -5
  288. package/src/components/Export/components/ExportToTerra/components/TerraSetUpForm/components/FormStep/formStep.styles.ts +1 -1
  289. package/src/components/Export/components/ExportToTerra/components/TerraSetUpForm/components/FormStep/formStep.tsx +9 -8
  290. package/src/components/Export/components/ExportToTerra/components/TerraSetUpForm/terraSetUpForm.styles.ts +10 -15
  291. package/src/components/Export/components/ExportToTerra/components/TerraSetUpForm/terraSetUpForm.tsx +5 -2
  292. package/src/components/Export/components/ManifestDownload/components/ManifestDownloadEntity/manifestDownloadEntity.styles.ts +7 -7
  293. package/src/components/Export/export.styles.ts +7 -7
  294. package/src/components/Filter/components/FilterLabel/filterLabel.styles.ts +2 -3
  295. package/src/components/Filter/components/FilterMenuSearch/filterMenuSearch.styles.ts +2 -2
  296. package/src/components/Filter/components/FilterNoResultsFound/filterNoResultsFound.tsx +4 -3
  297. package/src/components/Filter/components/FilterRange/filterRange.styles.ts +2 -2
  298. package/src/components/Filter/components/FilterTag/filterTag.styles.ts +2 -1
  299. package/src/components/Filter/components/Filters/filters.styles.ts +4 -4
  300. package/src/components/Filter/components/Filters/filters.tsx +1 -1
  301. package/src/components/Filter/components/HighlightedLabel/highlightedLabel.styles.ts +2 -1
  302. package/src/components/Filter/components/SearchAllFilters/components/AutocompletePopper/autocompletePopper.styles.ts +4 -4
  303. package/src/components/Filter/components/SearchAllFilters/components/VariableSizeList/VariableSizeList.tsx +7 -11
  304. package/src/components/Filter/components/SearchAllFilters/components/VariableSizeListItem/variableSizeListItem.tsx +3 -3
  305. package/src/components/Filter/components/SearchAllFilters/searchAllFilters.styles.ts +2 -2
  306. package/src/components/Filter/components/SearchAllFilters/searchAllFilters.tsx +7 -8
  307. package/src/components/Filter/components/SearchAllFiltersSearch/components/SearchCloseButton/searchCloseButton.tsx +3 -7
  308. package/src/components/Filter/components/SearchAllFiltersSearch/searchAllFiltersSearch.styles.ts +3 -3
  309. package/src/components/Filter/components/VariableSizeListItem/variableSizeListItem.tsx +3 -3
  310. package/src/components/Filter/components/controls/Controls/controls.tsx +1 -1
  311. package/src/components/Filter/components/surfaces/drawer/components/ButtonBase/buttonBase.styles.ts +2 -2
  312. package/src/components/Filter/components/views/select/components/ListItemText/components/Count/count.tsx +1 -1
  313. package/src/components/Filter/components/views/select/components/ListItemText/components/Term/term.tsx +1 -1
  314. package/src/components/Index/components/EntityView/components/controls/ExportButton/exportButton.styles.ts +2 -2
  315. package/src/components/Index/components/EntityView/components/controls/FilterButton/filterButton.styles.ts +2 -2
  316. package/src/components/Index/components/EntityView/components/layout/Summary/summary.styles.ts +2 -1
  317. package/src/components/Index/components/EntityView/components/layout/Summary/summary.tsx +2 -2
  318. package/src/components/Index/components/EntityView/components/slots/EntityViewSlot/entityViewSlot.styles.ts +2 -2
  319. package/src/components/Index/components/EntityView/components/views/ChartView/chartView.tsx +1 -1
  320. package/src/components/Index/components/EntityView/components/views/ChartView/components/Chart/chart.styles.ts +4 -4
  321. package/src/components/Index/index.styles.ts +2 -2
  322. package/src/components/Layout/components/BackPage/backPageView.styles.ts +11 -10
  323. package/src/components/Layout/components/BackPage/components/BackPageHero/backPageHero.styles.ts +3 -3
  324. package/src/components/Layout/components/BackPage/components/BackPageHero/components/Actions/actions.styles.ts +2 -2
  325. package/src/components/Layout/components/BackPage/components/BackPageHero/components/SubTitle/subTitle.tsx +6 -2
  326. package/src/components/Layout/components/ContentLayout/contentLayout.styles.ts +20 -36
  327. package/src/components/Layout/components/Footer/components/VersionInfo/components/Tooltip/components/Title/title.tsx +5 -2
  328. package/src/components/Layout/components/Footer/components/VersionInfo/versionInfo.styles.ts +2 -2
  329. package/src/components/Layout/components/Footer/footer.styles.ts +8 -8
  330. package/src/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/AuthenticationMenu/authenticationMenu.styles.ts +2 -1
  331. package/src/components/Layout/components/Header/components/Content/components/Actions/components/Menu/components/Content/components/Navigation/navigation.styles.ts +3 -6
  332. package/src/components/Layout/components/Header/components/Content/components/Actions/components/Search/components/SearchBar/searchBar.styles.ts +4 -7
  333. package/src/components/Layout/components/Header/components/Content/components/Navigation/components/NavigationDrawer/navigationDrawer.styles.ts +6 -8
  334. package/src/components/Layout/components/Header/components/Content/components/Navigation/components/NavigationMenu/navigationMenu.styles.ts +8 -12
  335. package/src/components/Layout/components/Header/components/Content/components/Navigation/components/NavigationMenuItems/navigationMenuItems.tsx +5 -10
  336. package/src/components/Layout/components/Header/components/Content/components/Navigation/navigation.styles.ts +2 -2
  337. package/src/components/Layout/components/Header/components/Content/components/Slogan/slogan.styles.ts +4 -4
  338. package/src/components/Layout/components/Header/components/Content/components/Slogan/slogan.tsx +5 -2
  339. package/src/components/Layout/components/Header/header.styles.ts +2 -2
  340. package/src/components/Layout/components/Nav/components/NavBarHero/navBarHero.styles.ts +2 -1
  341. package/src/components/Layout/components/Nav/nav.styles.ts +8 -10
  342. package/src/components/Layout/components/Outline/components/ContentsTab/contentsTab.styles.ts +5 -4
  343. package/src/components/Layout/components/Outline/outline.styles.ts +10 -13
  344. package/src/components/Layout/components/Sidebar/components/SidebarButton/sidebarButton.styles.ts +7 -10
  345. package/src/components/Layout/components/Sidebar/components/SidebarDrawer/sidebarDrawer.styles.ts +5 -8
  346. package/src/components/Layout/components/Sidebar/components/SidebarLabel/sidebarLabel.tsx +5 -2
  347. package/src/components/Layout/components/Sidebar/components/SidebarPositioner/sidebarPositioner.styles.ts +2 -2
  348. package/src/components/Layout/components/Sidebar/components/SidebarTools/sidebarTools.styles.ts +2 -2
  349. package/src/components/Layout/components/Sidebar/sidebar.styles.ts +2 -2
  350. package/src/components/Layout/components/Sidebar/sidebar.tsx +4 -8
  351. package/src/components/Links/components/Link/link.tsx +2 -1
  352. package/src/components/Loading/loading.styles.ts +2 -2
  353. package/src/components/Loading/loading.tsx +6 -1
  354. package/src/components/Login/components/Section/components/Consent/consent.styles.ts +1 -1
  355. package/src/components/Login/components/Section/components/Consent/consent.tsx +4 -2
  356. package/src/components/Login/components/Section/components/Warning/warning.tsx +1 -1
  357. package/src/components/Login/login.styles.ts +5 -19
  358. package/src/components/Login/login.tsx +30 -7
  359. package/src/components/MarkdownRenderer/components/Table/table.styles.ts +2 -2
  360. package/src/components/MarkdownRenderer/markdownRenderer.tsx +1 -1
  361. package/src/components/NoResults/noResults.styles.ts +2 -2
  362. package/src/components/NoResults/noResults.tsx +1 -1
  363. package/src/components/Project/components/Contacts/contacts.tsx +7 -1
  364. package/src/components/Project/components/Details/details.tsx +7 -2
  365. package/src/components/Project/components/SupplementaryLinks/supplementaryLinks.styles.ts +2 -1
  366. package/src/components/Stepper/components/Step/components/StepContent/stepContent.styles.ts +2 -2
  367. package/src/components/Stepper/components/Step/components/StepIcon/components/CompletedIcon/completedIcon.styles.ts +3 -6
  368. package/src/components/Stepper/components/Step/components/StepIcon/stepIcon.styles.ts +5 -9
  369. package/src/components/Stepper/components/Step/components/StepLabel/components/Label/constants.ts +1 -1
  370. package/src/components/Stepper/components/Step/components/StepLabel/components/Optional/constants.ts +1 -1
  371. package/src/components/Stepper/components/Step/step.styles.ts +6 -6
  372. package/src/components/Support/components/SupportRequest/components/Dialog/dialog.styles.ts +5 -6
  373. package/src/components/Support/components/SupportRequest/components/SupportRequestForm/supportRequestForm.styles.ts +2 -2
  374. package/src/components/Support/components/SupportRequest/components/SupportRequestForm/supportRequestForm.tsx +5 -2
  375. package/src/components/Support/components/SupportRequest/components/SupportRequestSubmitted/supportRequestSubmitted.tsx +8 -6
  376. package/src/components/Support/components/ViewSupport/viewSupport.styles.ts +6 -10
  377. package/src/components/Table/common/gridTable.styles.ts +1 -2
  378. package/src/components/Table/components/DownloadEntityResults/downloadEntityResults.styles.ts +2 -2
  379. package/src/components/Table/components/PaginationSummary/paginationSummary.tsx +9 -4
  380. package/src/components/Table/components/TableCell/components/BasicCell/basicCell.tsx +10 -2
  381. package/src/components/Table/components/TableCell/components/CollapsableCell/collapsableCell.styles.ts +5 -5
  382. package/src/components/Table/components/TableCell/components/CollapsableCell/collapsableCell.tsx +3 -3
  383. package/src/components/Table/components/TableCell/components/LinkCell/stories/args.ts +1 -1
  384. package/src/components/Table/components/TableCell/components/NTagCell/nTagCell.tsx +6 -3
  385. package/src/components/Table/components/TableFeatures/ColumnFilter/columnFilter.tsx +1 -1
  386. package/src/components/Table/components/TablePagination/tablePagination.tsx +1 -1
  387. package/src/components/Table/components/TableRow/tableRow.styles.ts +2 -2
  388. package/src/components/Table/components/TableToolbar/components/RowPreview/components/RowDrawer/rowDrawer.styles.ts +5 -5
  389. package/src/components/Table/components/TableToolbar/components/RowPreview/components/RowDrawer/rowDrawer.tsx +6 -2
  390. package/src/components/Table/components/TableToolbar/components/RowPreview/components/Section/components/RowDetail/rowDetail.styles.ts +6 -6
  391. package/src/components/Table/components/TableToolbar/components/RowPreview/components/Section/components/RowDetail/rowDetail.tsx +3 -3
  392. package/src/components/Table/components/TableToolbar/components/RowPreview/components/Section/section.styles.ts +1 -1
  393. package/src/components/Table/components/TableToolbar/components/RowPreview/components/Section/section.tsx +5 -2
  394. package/src/components/Table/components/TableToolbar/components/RowSelection/rowSelection.tsx +2 -2
  395. package/src/components/Table/table.styles.ts +2 -2
  396. package/src/components/Table/table.tsx +2 -3
  397. package/src/components/common/Accordion/accordion.tsx +4 -2
  398. package/src/components/common/Alert/alert.styles.ts +3 -6
  399. package/src/components/common/Banner/banner.styles.ts +4 -4
  400. package/src/components/common/Banner/components/CookieBanner/cookieBanner.styles.ts +4 -4
  401. package/src/components/common/Button/components/HelpIconButton/helpIconButton.styles.ts +2 -1
  402. package/src/components/common/Button/components/NavigationButton/navigationButton.styles.ts +5 -4
  403. package/src/components/common/Card/card.styles.ts +2 -2
  404. package/src/components/common/Card/components/CardActions/cardActions.styles.ts +2 -2
  405. package/src/components/common/Card/components/CardSecondaryText/cardSecondaryText.tsx +7 -16
  406. package/src/components/common/Card/components/CardSecondaryTitle/cardSecondaryTitle.styles.ts +1 -1
  407. package/src/components/common/Card/components/CardSecondaryTitle/cardSecondaryTitle.tsx +9 -17
  408. package/src/components/common/Card/components/CardText/cardText.tsx +8 -14
  409. package/src/components/common/Card/components/CardTitle/cardTitle.tsx +9 -14
  410. package/src/components/common/Code/code.styles.ts +11 -10
  411. package/src/components/common/Dot/dot.styles.ts +2 -1
  412. package/src/components/common/Form/components/Input/input.styles.ts +4 -4
  413. package/src/components/common/Form/components/Input/input.tsx +6 -2
  414. package/src/components/common/Form/components/Select/select.styles.ts +3 -3
  415. package/src/components/common/Form/components/Select/select.tsx +6 -2
  416. package/src/components/common/Form/components/UploadFile/uploadFile.styles.ts +10 -17
  417. package/src/components/common/Form/components/UploadFile/uploadFile.tsx +7 -3
  418. package/src/components/common/IconBadge/iconBadge.styles.ts +13 -22
  419. package/src/components/common/IconButton/iconButton.styles.ts +3 -3
  420. package/src/components/common/Input/input.styles.ts +3 -2
  421. package/src/components/common/Input/input.tsx +6 -2
  422. package/src/components/common/KeyValuePairs/components/KeyElType/keyElType.tsx +1 -1
  423. package/src/components/common/KeyValuePairs/components/ValueElType/valueElType.tsx +1 -1
  424. package/src/components/common/LoginDialog/constants.ts +2 -2
  425. package/src/components/common/MDXMarkdown/components/Section/mdxSection.styles.ts +4 -8
  426. package/src/components/common/Paper/components/FluidPaper/fluidPaper.styles.ts +2 -2
  427. package/src/components/common/Paper/paper.styles.ts +24 -24
  428. package/src/components/common/Progress/components/CircularProgress/components/CircularProgressTrack/circularProgressTrack.styles.ts +6 -12
  429. package/src/components/common/Section/components/CollapsableSection/collapsableSection.styles.ts +6 -5
  430. package/src/components/common/Section/components/CollapsableSection/collapsableSection.tsx +11 -8
  431. package/src/components/common/Section/components/SectionTitle/sectionTitle.tsx +3 -2
  432. package/src/components/common/Section/section.styles.ts +5 -5
  433. package/src/components/common/Socials/socials.styles.ts +3 -3
  434. package/src/components/common/StatusIcon/statusIcon.styles.ts +13 -12
  435. package/src/components/common/Tag/tag.styles.ts +4 -3
  436. package/src/components/common/Tag/tag.tsx +14 -11
  437. package/src/components/common/Title/title.tsx +1 -1
  438. package/src/components/common/Typography/TypographyWordBreak/TypographyWordBreak.tsx +2 -1
  439. package/src/styles/common/constants/app.ts +3 -0
  440. package/src/styles/common/constants/colorMixes.ts +1 -0
  441. package/src/styles/common/constants/font.ts +18 -0
  442. package/src/styles/common/constants/palette.ts +45 -45
  443. package/src/styles/common/constants/shadows.ts +3 -3
  444. package/src/styles/common/mixins/breakpoints.ts +19 -14
  445. package/src/styles/common/mui/typography.ts +26 -14
  446. package/src/theme/common/breakpoints.ts +16 -38
  447. package/src/theme/common/components.ts +1046 -1249
  448. package/src/theme/common/fontStyles.ts +17 -0
  449. package/src/theme/common/palette.ts +30 -75
  450. package/src/theme/common/typography.ts +85 -147
  451. package/src/theme/components/muiAlert.ts +96 -97
  452. package/src/theme/components/muiAlertTitle.ts +2 -2
  453. package/src/theme/components/muiTableCell.ts +44 -47
  454. package/src/theme/theme.ts +25 -107
  455. package/src/theme/types.ts +5 -0
  456. package/tests/theme.test.ts +465 -0
  457. package/tests/tsconfig.json +1 -1
  458. package/types/data-explorer-ui.d.ts +73 -48
  459. package/lib/styles/common/mixins/colors.d.ts +0 -25
  460. package/lib/styles/common/mixins/colors.js +0 -32
  461. package/lib/styles/common/mixins/fonts.d.ts +0 -16
  462. package/lib/styles/common/mixins/fonts.js +0 -30
  463. package/src/styles/common/mixins/colors.ts +0 -71
  464. package/src/styles/common/mixins/fonts.ts +0 -52
@@ -1,58 +1,43 @@
1
- import { Components, Theme } from "@mui/material";
1
+ import { Components, Theme, ThemeOptions } from "@mui/material";
2
2
  import { DropDownIcon } from "../../components/common/Form/components/Select/components/DropDownIcon/dropDownIcon";
3
+ import { APP } from "../../styles/common/constants/app";
3
4
  import { COLOR_MIXES } from "../../styles/common/constants/colorMixes";
5
+ import { FONT } from "../../styles/common/constants/font";
4
6
  import { PALETTE } from "../../styles/common/constants/palette";
5
7
  import { SHADOWS } from "../../styles/common/constants/shadows";
8
+ import { bpUpLg, bpUpSm, bpUpXs } from "../../styles/common/mixins/breakpoints";
6
9
  import { BUTTON_PROPS } from "../../styles/common/mui/button";
7
10
  import { CHIP_PROPS } from "../../styles/common/mui/chip";
8
11
  import { OUTLINED_INPUT_PROPS } from "../../styles/common/mui/outlinedInput";
9
12
  import { TOGGLE_BUTTON_PROPS } from "../../styles/common/mui/toggleButton";
10
- import { desktopUp, mobileUp, tabletUp } from "./breakpoints";
11
- import {
12
- TEXT_BODY_400,
13
- TEXT_BODY_400_2_LINES,
14
- TEXT_BODY_500,
15
- TEXT_BODY_SMALL_400,
16
- TEXT_BODY_SMALL_500,
17
- TEXT_HEADING,
18
- TEXT_HEADING_SMALL,
19
- } from "./typography";
13
+ import { TYPOGRAPHY_PROPS } from "../../styles/common/mui/typography";
14
+ import * as C from "../components";
20
15
 
21
16
  // Constants
22
17
  const FLEX_START = "flex-start";
23
18
 
24
- /**
25
- * MuiAccordion Component
26
- * @param theme - Theme.
27
- * @returns MuiAccordion component theme styles.
28
- */
29
- export const MuiAccordion = (theme: Theme): Components["MuiAccordion"] => {
30
- return {
31
- defaultProps: {
32
- disableGutters: true,
33
- elevation: 0,
34
- square: true,
35
- },
36
- styleOverrides: {
37
- root: {
38
- backgroundColor: "transparent",
39
- boxShadow: `inset 0 1px 0 0 ${theme.palette.smoke.main}, inset 0 -1px 0 0 ${theme.palette.smoke.main}`,
40
- // eslint-disable-next-line sort-keys -- disabling key order for readability
41
- "&:before": {
42
- display: "none",
43
- },
44
- "&:nth-of-type(n+2)": {
45
- boxShadow: `inset 0 -1px 0 0 ${theme.palette.smoke.main}`,
46
- },
19
+ const MuiAccordion: Components["MuiAccordion"] = {
20
+ defaultProps: {
21
+ disableGutters: true,
22
+ elevation: 0,
23
+ square: true,
24
+ },
25
+ styleOverrides: {
26
+ root: {
27
+ backgroundColor: "transparent",
28
+ boxShadow: `inset 0 1px 0 0 ${PALETTE.SMOKE_MAIN}, inset 0 -1px 0 0 ${PALETTE.SMOKE_MAIN}`,
29
+ // eslint-disable-next-line sort-keys -- disabling key order for readability
30
+ "&:before": {
31
+ display: "none",
32
+ },
33
+ "&:nth-of-type(n+2)": {
34
+ boxShadow: `inset 0 -1px 0 0 ${PALETTE.SMOKE_MAIN}`,
47
35
  },
48
36
  },
49
- };
37
+ },
50
38
  };
51
39
 
52
- /**
53
- * MuiAccordionDetails Component
54
- */
55
- export const MuiAccordionDetails: Components["MuiAccordionDetails"] = {
40
+ const MuiAccordionDetails: Components["MuiAccordionDetails"] = {
56
41
  styleOverrides: {
57
42
  root: {
58
43
  marginBottom: 16,
@@ -61,10 +46,7 @@ export const MuiAccordionDetails: Components["MuiAccordionDetails"] = {
61
46
  },
62
47
  };
63
48
 
64
- /**
65
- * MuiAccordionSummary Component
66
- */
67
- export const MuiAccordionSummary: Components["MuiAccordionSummary"] = {
49
+ const MuiAccordionSummary: Components["MuiAccordionSummary"] = {
68
50
  styleOverrides: {
69
51
  content: {
70
52
  margin: "16px 0",
@@ -77,10 +59,7 @@ export const MuiAccordionSummary: Components["MuiAccordionSummary"] = {
77
59
  },
78
60
  };
79
61
 
80
- /**
81
- * MuiAppBar Component
82
- */
83
- export const MuiAppBar: Components["MuiAppBar"] = {
62
+ const MuiAppBar: Components["MuiAppBar"] = {
84
63
  defaultProps: {
85
64
  color: "default",
86
65
  elevation: 0,
@@ -93,11 +72,7 @@ export const MuiAppBar: Components["MuiAppBar"] = {
93
72
  },
94
73
  };
95
74
 
96
- /**
97
- * MuiBackdrop Component
98
- * @returns MuiBackdrop component theme styles.
99
- */
100
- export const MuiBackdrop: Components["MuiBackdrop"] = {
75
+ const MuiBackdrop: Components["MuiBackdrop"] = {
101
76
  styleOverrides: {
102
77
  invisible: {
103
78
  backgroundColor: "transparent",
@@ -108,268 +83,244 @@ export const MuiBackdrop: Components["MuiBackdrop"] = {
108
83
  },
109
84
  };
110
85
 
111
- /**
112
- * MuiBreadcrumbs Component
113
- * @param theme - Theme.
114
- * @returns MuiBreadcrumbs component theme styles.
115
- */
116
- export const MuiBreadcrumbs = (theme: Theme): Components["MuiBreadcrumbs"] => {
117
- return {
118
- styleOverrides: {
119
- li: {
120
- ...theme.typography[TEXT_BODY_SMALL_400],
121
- margin: 0,
122
- // eslint-disable-next-line sort-keys -- disabling key order for readability
123
- "& .MuiLink-root": {
124
- color: "inherit",
125
- },
126
- "& .MuiTypography-root": {
127
- color: "inherit",
128
- font: "inherit",
129
- },
130
- },
131
- ol: {
132
- gap: 2,
133
- },
134
- root: {
135
- color: theme.palette.ink.light,
86
+ const MuiBreadcrumbs: Components["MuiBreadcrumbs"] = {
87
+ styleOverrides: {
88
+ li: {
89
+ font: FONT.BODY_SMALL_400,
90
+ margin: 0,
91
+ // eslint-disable-next-line sort-keys -- disabling key order for readability
92
+ "& .MuiLink-root": {
93
+ color: "inherit",
136
94
  },
137
- separator: {
138
- margin: 0,
95
+ "& .MuiTypography-root": {
96
+ color: "inherit",
97
+ font: "inherit",
139
98
  },
140
99
  },
141
- };
100
+ ol: {
101
+ gap: 2,
102
+ },
103
+ root: {
104
+ color: PALETTE.INK_LIGHT,
105
+ },
106
+ separator: {
107
+ margin: 0,
108
+ },
109
+ },
142
110
  };
143
111
 
144
- /**
145
- * MuiButton Component
146
- * @param theme - Theme.
147
- * @returns MuiButton component theme styles.
148
- */
149
- export const MuiButton = (theme: Theme): Components["MuiButton"] => {
150
- return {
151
- defaultProps: {
152
- disableRipple: true,
153
- disableTouchRipple: true,
154
- },
155
- styleOverrides: {
156
- containedPrimary: {
157
- backgroundColor: PALETTE.PRIMARY_MAIN,
112
+ const MuiButton: Components["MuiButton"] = {
113
+ defaultProps: {
114
+ disableRipple: true,
115
+ disableTouchRipple: true,
116
+ },
117
+ styleOverrides: {
118
+ containedPrimary: {
119
+ backgroundColor: PALETTE.PRIMARY_MAIN,
120
+ boxShadow: `0 1px 0 0 ${COLOR_MIXES.COMMON_BLACK_08}, inset 0 -1px 0 0 ${COLOR_MIXES.COMMON_BLACK_20}`,
121
+ color: PALETTE.COMMON_WHITE,
122
+ // eslint-disable-next-line sort-keys -- disabling key order for readability
123
+ "&:hover": {
124
+ backgroundColor: PALETTE.PRIMARY_DARK,
158
125
  boxShadow: `0 1px 0 0 ${COLOR_MIXES.COMMON_BLACK_08}, inset 0 -1px 0 0 ${COLOR_MIXES.COMMON_BLACK_20}`,
126
+ },
127
+ // eslint-disable-next-line sort-keys -- disabling key order for readability
128
+ "&:active": {
129
+ backgroundColor: PALETTE.PRIMARY_DARK,
130
+ boxShadow: `0 1px 0 0 ${COLOR_MIXES.COMMON_BLACK_08}, inset 0 -1px 0 0 ${COLOR_MIXES.COMMON_BLACK_20}`,
131
+ },
132
+ // eslint-disable-next-line sort-keys -- disabling key order for readability
133
+ "&.Mui-disabled": {
134
+ backgroundColor: PALETTE.PRIMARY_MAIN,
135
+ boxShadow: "none",
159
136
  color: PALETTE.COMMON_WHITE,
160
- // eslint-disable-next-line sort-keys -- disabling key order for readability
161
- "&:hover": {
162
- backgroundColor: PALETTE.PRIMARY_DARK,
163
- boxShadow: `0 1px 0 0 ${COLOR_MIXES.COMMON_BLACK_08}, inset 0 -1px 0 0 ${COLOR_MIXES.COMMON_BLACK_20}`,
164
- },
165
- // eslint-disable-next-line sort-keys -- disabling key order for readability
166
- "&:active": {
167
- backgroundColor: PALETTE.PRIMARY_DARK,
168
- boxShadow: `0 1px 0 0 ${COLOR_MIXES.COMMON_BLACK_08}, inset 0 -1px 0 0 ${COLOR_MIXES.COMMON_BLACK_20}`,
169
- },
170
- // eslint-disable-next-line sort-keys -- disabling key order for readability
171
- "&.Mui-disabled": {
172
- backgroundColor: PALETTE.PRIMARY_MAIN,
173
- boxShadow: "none",
174
- color: PALETTE.COMMON_WHITE,
175
- opacity: 0.5,
176
- },
137
+ opacity: 0.5,
177
138
  },
178
- containedSecondary: {
139
+ },
140
+ containedSecondary: {
141
+ backgroundColor: PALETTE.COMMON_WHITE,
142
+ boxShadow: `inset 0 0 0 1px ${PALETTE.SMOKE_DARK}, 0 1px 0 0 ${COLOR_MIXES.COMMON_BLACK_05}`,
143
+ color: PALETTE.INK_MAIN,
144
+ // eslint-disable-next-line sort-keys -- disabling key order for readability
145
+ "&.Mui-focusVisible": {
179
146
  backgroundColor: PALETTE.COMMON_WHITE,
180
147
  boxShadow: `inset 0 0 0 1px ${PALETTE.SMOKE_DARK}, 0 1px 0 0 ${COLOR_MIXES.COMMON_BLACK_05}`,
148
+ },
149
+ // eslint-disable-next-line sort-keys -- disabling key order for readability
150
+ "&:hover": {
151
+ backgroundColor: PALETTE.SMOKE_LIGHTEST,
152
+ boxShadow: `inset 0 0 0 1px ${PALETTE.SMOKE_DARK}, 0 1px 0 0 ${COLOR_MIXES.COMMON_BLACK_05}`,
153
+ },
154
+ // eslint-disable-next-line sort-keys -- disabling key order for readability
155
+ "&:active": {
156
+ backgroundColor: PALETTE.SMOKE_LIGHTEST,
157
+ boxShadow: `inset 0 0 0 1px ${PALETTE.SMOKE_DARK}, 0 1px 0 0 ${COLOR_MIXES.COMMON_BLACK_05}`,
158
+ },
159
+ "&:disabled": {
160
+ backgroundColor: PALETTE.COMMON_WHITE,
161
+ boxShadow: `inset 0 0 0 1px ${PALETTE.SMOKE_DARK}`,
181
162
  color: PALETTE.INK_MAIN,
182
- // eslint-disable-next-line sort-keys -- disabling key order for readability
183
- "&.Mui-focusVisible": {
184
- backgroundColor: PALETTE.COMMON_WHITE,
185
- boxShadow: `inset 0 0 0 1px ${PALETTE.SMOKE_DARK}, 0 1px 0 0 ${COLOR_MIXES.COMMON_BLACK_05}`,
186
- },
187
- // eslint-disable-next-line sort-keys -- disabling key order for readability
188
- "&:hover": {
189
- backgroundColor: PALETTE.SMOKE_LIGHTEST,
190
- boxShadow: `inset 0 0 0 1px ${PALETTE.SMOKE_DARK}, 0 1px 0 0 ${COLOR_MIXES.COMMON_BLACK_05}`,
191
- },
192
- // eslint-disable-next-line sort-keys -- disabling key order for readability
193
- "&:active": {
194
- backgroundColor: PALETTE.SMOKE_LIGHTEST,
195
- boxShadow: `inset 0 0 0 1px ${PALETTE.SMOKE_DARK}, 0 1px 0 0 ${COLOR_MIXES.COMMON_BLACK_05}`,
163
+ opacity: 0.5,
164
+ },
165
+ },
166
+ endIcon: {
167
+ margin: 0,
168
+ variants: [
169
+ {
170
+ props: { size: BUTTON_PROPS.SIZE.LARGE },
171
+ style: { marginRight: -4 },
196
172
  },
197
- "&:disabled": {
198
- backgroundColor: PALETTE.COMMON_WHITE,
199
- boxShadow: `inset 0 0 0 1px ${PALETTE.SMOKE_DARK}`,
200
- color: PALETTE.INK_MAIN,
201
- opacity: 0.5,
173
+ {
174
+ props: { size: BUTTON_PROPS.SIZE.MEDIUM },
175
+ style: { marginRight: -4 },
202
176
  },
177
+ ],
178
+ },
179
+ outlinedSecondary: {
180
+ backgroundColor: "transparent",
181
+ border: "none",
182
+ boxShadow: `inset 0 0 0 1px ${COLOR_MIXES.INK_MAIN_32}`,
183
+ color: PALETTE.INK_MAIN,
184
+ // eslint-disable-next-line sort-keys -- disabling key order for readability
185
+ "&:hover": {
186
+ backgroundColor: "transparent",
187
+ border: "none",
188
+ boxShadow: `inset 0 0 0 1px ${COLOR_MIXES.INK_MAIN_64}`,
203
189
  },
204
- endIcon: {
205
- margin: 0,
206
- variants: [
207
- {
208
- props: { size: BUTTON_PROPS.SIZE.LARGE },
209
- style: { marginRight: -4 },
210
- },
211
- {
212
- props: { size: BUTTON_PROPS.SIZE.MEDIUM },
213
- style: { marginRight: -4 },
214
- },
215
- ],
216
- },
217
- outlinedSecondary: {
190
+ // eslint-disable-next-line sort-keys -- disabling key order for readability
191
+ "&:disabled": {
218
192
  backgroundColor: "transparent",
219
193
  border: "none",
220
194
  boxShadow: `inset 0 0 0 1px ${COLOR_MIXES.INK_MAIN_32}`,
221
- color: theme.palette.ink.main,
222
- // eslint-disable-next-line sort-keys -- disabling key order for readability
223
- "&:hover": {
224
- backgroundColor: "transparent",
225
- border: "none",
226
- boxShadow: `inset 0 0 0 1px ${COLOR_MIXES.INK_MAIN_64}`,
195
+ color: PALETTE.INK_MAIN,
196
+ opacity: 0.5,
197
+ },
198
+ },
199
+ root: {
200
+ font: FONT.BODY_500,
201
+ gap: 4,
202
+ letterSpacing: "normal",
203
+ padding: "10px 16px",
204
+ textTransform: "capitalize",
205
+ },
206
+ startIcon: {
207
+ margin: 0,
208
+ variants: [
209
+ {
210
+ props: { size: BUTTON_PROPS.SIZE.LARGE },
211
+ style: { marginLeft: -4 },
227
212
  },
228
- // eslint-disable-next-line sort-keys -- disabling key order for readability
229
- "&:disabled": {
230
- backgroundColor: "transparent",
231
- border: "none",
232
- boxShadow: `inset 0 0 0 1px ${COLOR_MIXES.INK_MAIN_32}`,
233
- color: theme.palette.ink.main,
234
- opacity: 0.5,
213
+ {
214
+ props: { size: BUTTON_PROPS.SIZE.MEDIUM },
215
+ style: { marginLeft: -4 },
235
216
  },
236
- },
237
- root: {
238
- ...theme.typography[TEXT_BODY_500],
239
- gap: 4,
240
- letterSpacing: "normal",
217
+ ],
218
+ },
219
+ },
220
+ variants: [
221
+ {
222
+ props: { size: BUTTON_PROPS.SIZE.LARGE },
223
+ style: {
241
224
  padding: "10px 16px",
242
- textTransform: "capitalize",
243
- },
244
- startIcon: {
245
- margin: 0,
246
- variants: [
247
- {
248
- props: { size: BUTTON_PROPS.SIZE.LARGE },
249
- style: { marginLeft: -4 },
250
- },
251
- {
252
- props: { size: BUTTON_PROPS.SIZE.MEDIUM },
253
- style: { marginLeft: -4 },
225
+ // eslint-disable-next-line sort-keys -- disabling key order for readability
226
+ ".MuiButton-iconSizeLarge": {
227
+ // eslint-disable-next-line sort-keys -- disabling key order for readability
228
+ ".MuiSvgIcon-root": {
229
+ fontSize: "20px",
254
230
  },
255
- ],
231
+ },
256
232
  },
257
233
  },
258
- variants: [
259
- {
260
- props: { size: BUTTON_PROPS.SIZE.LARGE },
261
- style: {
262
- padding: "10px 16px",
263
- // eslint-disable-next-line sort-keys -- disabling key order for readability
264
- ".MuiButton-iconSizeLarge": {
265
- // eslint-disable-next-line sort-keys -- disabling key order for readability
266
- ".MuiSvgIcon-root": {
267
- fontSize: "20px",
268
- },
269
- },
234
+ {
235
+ props: { size: BUTTON_PROPS.SIZE.MEDIUM },
236
+ style: { padding: "8px 16px" },
237
+ },
238
+ {
239
+ props: {
240
+ color: BUTTON_PROPS.COLOR.PRIMARY,
241
+ variant: BUTTON_PROPS.VARIANT.TEXT,
242
+ },
243
+ style: {
244
+ alignSelf: "center",
245
+ color: PALETTE.PRIMARY_MAIN,
246
+ minWidth: 0,
247
+ padding: 0,
248
+ // eslint-disable-next-line sort-keys -- disabling key order for readability
249
+ "&:hover": {
250
+ backgroundColor: "transparent",
251
+ textDecoration: "underline",
252
+ textDecorationColor: "currentColor",
253
+ textDecorationSkipInk: "none",
254
+ textUnderlinePosition: "from-font",
270
255
  },
271
256
  },
272
- {
273
- props: { size: BUTTON_PROPS.SIZE.MEDIUM },
274
- style: { padding: "8px 16px" },
257
+ },
258
+ {
259
+ props: {
260
+ variant: "activeNav", // associated with "nav" variant.
275
261
  },
276
- {
277
- props: {
278
- color: BUTTON_PROPS.COLOR.PRIMARY,
279
- variant: BUTTON_PROPS.VARIANT.TEXT,
280
- },
281
- style: {
282
- alignSelf: "center",
283
- color: PALETTE.PRIMARY_MAIN,
284
- minWidth: 0,
285
- padding: 0,
286
- // eslint-disable-next-line sort-keys -- disabling key order for readability
287
- "&:hover": {
288
- backgroundColor: "transparent",
289
- textDecoration: "underline",
290
- textDecorationColor: "currentColor",
291
- textDecorationSkipInk: "none",
292
- textUnderlinePosition: "from-font",
293
- },
262
+ style: {
263
+ backgroundColor: PALETTE.SMOKE_LIGHT,
264
+ color: PALETTE.INK_MAIN,
265
+ font: FONT.BODY_500,
266
+ minWidth: 0,
267
+ textTransform: "capitalize",
268
+ whiteSpace: "nowrap",
269
+ // eslint-disable-next-line sort-keys -- disabling key order for readability
270
+ "&:hover": {
271
+ backgroundColor: PALETTE.SMOKE_LIGHT,
294
272
  },
295
273
  },
296
- {
297
- props: {
298
- variant: "activeNav", // associated with "nav" variant.
299
- },
300
- style: {
301
- ...theme.typography[TEXT_BODY_500],
302
- backgroundColor: theme.palette.smoke.light,
303
- color: theme.palette.ink.main,
304
- minWidth: 0,
305
- textTransform: "capitalize",
306
- whiteSpace: "nowrap",
307
- // eslint-disable-next-line sort-keys -- disabling key order for readability
308
- "&:hover": {
309
- backgroundColor: theme.palette.smoke.light,
310
- },
311
- },
274
+ },
275
+ {
276
+ props: {
277
+ variant: "backNav", // associated with "nav" variant.
312
278
  },
313
- {
314
- props: {
315
- variant: "backNav", // associated with "nav" variant.
316
- },
317
- style: {
318
- ...theme.typography[TEXT_HEADING_SMALL],
319
- color: theme.palette.ink.main,
320
- minWidth: 0,
321
- textTransform: "capitalize",
322
- whiteSpace: "nowrap",
323
- // eslint-disable-next-line sort-keys -- disabling key order for readability
324
- "&:hover": {
325
- backgroundColor: theme.palette.smoke.light,
326
- },
279
+ style: {
280
+ color: PALETTE.INK_MAIN,
281
+ font: FONT.HEADING_SMALL,
282
+ minWidth: 0,
283
+ textTransform: "capitalize",
284
+ whiteSpace: "nowrap",
285
+ // eslint-disable-next-line sort-keys -- disabling key order for readability
286
+ "&:hover": {
287
+ backgroundColor: PALETTE.SMOKE_LIGHT,
327
288
  },
328
289
  },
329
- {
330
- props: {
331
- variant: "nav",
332
- },
333
- style: {
334
- ...theme.typography[TEXT_BODY_500],
335
- color: theme.palette.ink.main,
336
- minWidth: 0,
337
- textTransform: "capitalize",
338
- whiteSpace: "nowrap",
339
- // eslint-disable-next-line sort-keys -- disabling key order for readability
340
- "&:hover": {
341
- backgroundColor: theme.palette.smoke.light,
342
- },
290
+ },
291
+ {
292
+ props: {
293
+ variant: "nav",
294
+ },
295
+ style: {
296
+ color: PALETTE.INK_MAIN,
297
+ font: FONT.BODY_500,
298
+ minWidth: 0,
299
+ textTransform: "capitalize",
300
+ whiteSpace: "nowrap",
301
+ // eslint-disable-next-line sort-keys -- disabling key order for readability
302
+ "&:hover": {
303
+ backgroundColor: PALETTE.SMOKE_LIGHT,
343
304
  },
344
305
  },
345
- ],
346
- };
306
+ },
307
+ ],
347
308
  };
348
309
 
349
- /**
350
- * MuiButtonBase Component
351
- * @param theme - Theme.
352
- * @returns MuiButtonBase component theme styles.
353
- */
354
- export const MuiButtonBase = (theme: Theme): Components["MuiButtonBase"] => {
355
- return {
356
- defaultProps: {
357
- disableRipple: true,
358
- disableTouchRipple: true,
359
- },
360
- styleOverrides: {
361
- root: {
362
- flex: "none",
363
- fontFamily: theme.typography.fontFamily,
364
- },
365
- },
366
- };
310
+ const MuiButtonBase: Components["MuiButtonBase"] = {
311
+ defaultProps: {
312
+ disableRipple: true,
313
+ disableTouchRipple: true,
314
+ },
315
+ styleOverrides: {
316
+ root: {
317
+ flex: "none",
318
+ fontFamily: APP.FONT_FAMILY,
319
+ },
320
+ },
367
321
  };
368
322
 
369
- /**
370
- * MuiCard Component
371
- */
372
- export const MuiCard: Components["MuiCard"] = {
323
+ const MuiCard: Components["MuiCard"] = {
373
324
  styleOverrides: {
374
325
  root: {
375
326
  borderRadius: 8,
@@ -377,248 +328,213 @@ export const MuiCard: Components["MuiCard"] = {
377
328
  },
378
329
  };
379
330
 
380
- /**
381
- * MuiCheckbox Component
382
- * @param theme - Theme.
383
- * @returns MuiCheckbox component theme styles.
384
- */
385
- export const MuiCheckbox = (theme: Theme): Components["MuiCheckbox"] => {
386
- return {
387
- defaultProps: {
388
- size: "xsmall",
389
- },
390
- styleOverrides: {
391
- root: {
392
- color: theme.palette.smoke.dark,
393
- padding: 0,
394
- // eslint-disable-next-line sort-keys -- disabling key order for readability
395
- "&.Mui-disabled": {
396
- color: theme.palette.smoke.dark,
397
- },
331
+ const MuiCheckbox: Components["MuiCheckbox"] = {
332
+ defaultProps: {
333
+ size: "xsmall",
334
+ },
335
+ styleOverrides: {
336
+ root: {
337
+ color: PALETTE.SMOKE_DARK,
338
+ padding: 0,
339
+ // eslint-disable-next-line sort-keys -- disabling key order for readability
340
+ "&.Mui-disabled": {
341
+ color: PALETTE.SMOKE_DARK,
398
342
  },
399
343
  },
400
- variants: [
401
- {
402
- props: {
403
- size: "xsmall",
404
- },
405
- style: {
406
- fontSize: "18px",
407
- },
344
+ },
345
+ variants: [
346
+ {
347
+ props: {
348
+ size: "xsmall",
408
349
  },
409
- ],
410
- };
350
+ style: {
351
+ fontSize: "18px",
352
+ },
353
+ },
354
+ ],
411
355
  };
412
356
 
413
- /**
414
- * MuiChip Component
415
- * @param theme - Theme.
416
- * @returns MuiChip component theme styles.
417
- */
418
- export const MuiChip = (theme: Theme): Components["MuiChip"] => {
419
- return {
420
- defaultProps: {
421
- size: "small",
422
- },
423
- styleOverrides: {
424
- deleteIcon: {
425
- color: "inherit",
426
- margin: "0 -2px 0 0",
427
- },
428
- label: {
429
- ...theme.typography[TEXT_BODY_SMALL_400],
430
- variants: [
431
- {
432
- props: { variant: "status" },
433
- style: {
434
- ...theme.typography[TEXT_BODY_SMALL_500],
435
- },
357
+ const MuiChip: Components["MuiChip"] = {
358
+ defaultProps: {
359
+ size: "small",
360
+ },
361
+ styleOverrides: {
362
+ deleteIcon: {
363
+ color: "inherit",
364
+ margin: "0 -2px 0 0",
365
+ },
366
+ label: {
367
+ font: FONT.BODY_SMALL_400,
368
+ variants: [
369
+ {
370
+ props: { variant: "status" },
371
+ style: {
372
+ font: FONT.BODY_SMALL_500,
436
373
  },
437
- ],
374
+ },
375
+ ],
376
+ },
377
+ },
378
+ variants: [
379
+ {
380
+ props: { size: CHIP_PROPS.SIZE.SMALL },
381
+ style: {
382
+ height: 20,
438
383
  },
439
384
  },
440
- variants: [
441
- {
442
- props: { size: CHIP_PROPS.SIZE.SMALL },
443
- style: {
444
- height: 20,
445
- },
385
+ {
386
+ props: { size: CHIP_PROPS.SIZE.MEDIUM },
387
+ style: {
388
+ height: 24,
446
389
  },
447
- {
448
- props: { size: CHIP_PROPS.SIZE.MEDIUM },
449
- style: {
450
- height: 24,
451
- },
390
+ },
391
+ {
392
+ props: { color: "default" },
393
+ style: {
394
+ backgroundColor: PALETTE.SMOKE_MAIN,
395
+ color: PALETTE.INK_MAIN,
452
396
  },
453
- {
454
- props: { color: "default" },
455
- style: {
456
- backgroundColor: theme.palette.smoke.main,
457
- color: theme.palette.ink.main,
458
- },
397
+ },
398
+ {
399
+ props: { color: "error" },
400
+ style: {
401
+ backgroundColor: PALETTE.ALERT_LIGHT,
402
+ color: PALETTE.ALERT_MAIN,
459
403
  },
460
- {
461
- props: { color: "error" },
462
- style: {
463
- backgroundColor: theme.palette.alert.light,
464
- color: theme.palette.alert.main,
465
- },
404
+ },
405
+ {
406
+ props: { color: "info" },
407
+ style: {
408
+ backgroundColor: PALETTE.INFO_LIGHT,
409
+ color: PALETTE.INFO_MAIN,
466
410
  },
467
- {
468
- props: { color: "info" },
469
- style: {
470
- backgroundColor: theme.palette.info.light,
471
- color: theme.palette.info.main,
472
- },
411
+ },
412
+ {
413
+ props: {
414
+ color: CHIP_PROPS.COLOR.PRIMARY,
415
+ variant: CHIP_PROPS.VARIANT.FILLED,
473
416
  },
474
- {
475
- props: {
476
- color: CHIP_PROPS.COLOR.PRIMARY,
477
- variant: CHIP_PROPS.VARIANT.FILLED,
478
- },
479
- style: {
480
- backgroundColor: PALETTE.PRIMARY_MAIN,
481
- color: PALETTE.COMMON_WHITE,
482
- },
417
+ style: {
418
+ backgroundColor: PALETTE.PRIMARY_MAIN,
419
+ color: PALETTE.COMMON_WHITE,
483
420
  },
484
- {
485
- props: { color: "success" },
486
- style: {
487
- backgroundColor: theme.palette.success.light,
488
- color: theme.palette.success.main,
489
- },
421
+ },
422
+ {
423
+ props: { color: "success" },
424
+ style: {
425
+ backgroundColor: PALETTE.SUCCESS_LIGHT,
426
+ color: PALETTE.SUCCESS_MAIN,
490
427
  },
491
- {
492
- props: { color: "warning" },
493
- style: {
494
- backgroundColor: theme.palette.warning.light,
495
- color: theme.palette.warning.main,
496
- },
428
+ },
429
+ {
430
+ props: { color: "warning" },
431
+ style: {
432
+ backgroundColor: PALETTE.WARNING_LIGHT,
433
+ color: PALETTE.WARNING_MAIN,
497
434
  },
498
- {
499
- props: { variant: "filterTag" },
500
- style: {
501
- ...theme.typography[TEXT_BODY_SMALL_500],
502
- cursor: "pointer", // "pointer" cursor required to restore "clickable" ui
503
- gap: 2,
504
- height: 24,
505
- justifySelf: FLEX_START,
506
- padding: "0 8px",
507
- // eslint-disable-next-line sort-keys -- disabling key order for readability
508
- "& .MuiChip-label": {
509
- padding: 0,
510
- },
435
+ },
436
+ {
437
+ props: { variant: "filterTag" },
438
+ style: {
439
+ cursor: "pointer", // "pointer" cursor required to restore "clickable" ui
440
+ font: FONT.BODY_SMALL_500,
441
+ gap: 2,
442
+ height: 24,
443
+ justifySelf: FLEX_START,
444
+ padding: "0 8px",
445
+ // eslint-disable-next-line sort-keys -- disabling key order for readability
446
+ "& .MuiChip-label": {
447
+ padding: 0,
511
448
  },
512
449
  },
513
- {
514
- props: { variant: "ntag" },
515
- style: {
516
- ...theme.typography[TEXT_BODY_SMALL_400],
517
- backgroundColor: theme.palette.smoke.main,
518
- boxShadow: `0 0 0 2px ${PALETTE.COMMON_WHITE}`,
519
- height: 24,
520
- justifySelf: FLEX_START,
521
- minWidth: 0,
522
- },
450
+ },
451
+ {
452
+ props: { variant: "ntag" },
453
+ style: {
454
+ backgroundColor: PALETTE.SMOKE_MAIN,
455
+ boxShadow: `0 0 0 2px ${PALETTE.COMMON_WHITE}`,
456
+ font: FONT.BODY_SMALL_400,
457
+ height: 24,
458
+ justifySelf: FLEX_START,
459
+ minWidth: 0,
523
460
  },
524
- {
525
- props: { variant: "status" },
526
- style: {
527
- boxShadow: `0 0 0 2px ${PALETTE.COMMON_WHITE}`,
528
- height: 20,
529
- maxWidth: "fit-content",
530
- minWidth: 0,
531
- },
461
+ },
462
+ {
463
+ props: { variant: "status" },
464
+ style: {
465
+ boxShadow: `0 0 0 2px ${PALETTE.COMMON_WHITE}`,
466
+ height: 20,
467
+ maxWidth: "fit-content",
468
+ minWidth: 0,
532
469
  },
533
- {
534
- props: { color: "default", variant: "status" },
535
- style: {
536
- color: PALETTE.INK_LIGHT,
537
- },
470
+ },
471
+ {
472
+ props: { color: "default", variant: "status" },
473
+ style: {
474
+ color: PALETTE.INK_LIGHT,
538
475
  },
539
- ],
540
- };
476
+ },
477
+ ],
541
478
  };
542
479
 
543
- /**
544
- * MuiCircularProgress Component
545
- * @param theme - Theme.
546
- * @returns MuiCircularProgress component theme styles.
547
- */
548
- export const MuiCircularProgress = (
549
- theme: Theme
550
- ): Components["MuiCircularProgress"] => {
551
- return {
552
- styleOverrides: {
553
- circle: {
554
- strokeLinecap: "round",
555
- },
556
- },
557
- variants: [
558
- {
559
- props: {
560
- color: "alert",
561
- },
562
- style: {
563
- color: theme.palette.alert.main,
564
- },
480
+ const MuiCircularProgress: Components["MuiCircularProgress"] = {
481
+ styleOverrides: {
482
+ circle: {
483
+ strokeLinecap: "round",
484
+ },
485
+ },
486
+ variants: [
487
+ {
488
+ props: {
489
+ color: "alert",
565
490
  },
566
- ],
567
- };
491
+ style: {
492
+ color: PALETTE.ALERT_MAIN,
493
+ },
494
+ },
495
+ ],
568
496
  };
569
497
 
570
- /**
571
- * MuiCssBaseline Component
572
- * @param theme - Theme.
573
- * @returns MuiCssBaseline component theme styles.
574
- */
575
- export const MuiCssBaseline = (theme: Theme): Components["MuiCssBaseline"] => {
576
- return {
577
- styleOverrides: {
578
- a: {
579
- color: theme.palette.primary.main,
580
- textDecoration: "none",
581
- // eslint-disable-next-line sort-keys -- disabling key order for readability
582
- "&:hover": {
583
- textDecoration: "underline",
584
- },
585
- },
586
- body: {
587
- fontFamily: theme.typography.fontFamily,
588
- },
589
- code: {
590
- ...theme.typography[TEXT_BODY_400_2_LINES],
591
- fontFamily: "Roboto Mono, monospace",
592
- fontSize: 12,
593
- },
594
- img: {
595
- display: "block",
596
- },
597
- p: {
598
- margin: "0 0 8px",
599
- // eslint-disable-next-line sort-keys -- disabling key order for readability
600
- "&:last-child": {
601
- margin: 0,
602
- },
498
+ const MuiCssBaseline: Components["MuiCssBaseline"] = {
499
+ styleOverrides: {
500
+ a: {
501
+ color: PALETTE.PRIMARY_MAIN,
502
+ textDecoration: "none",
503
+ // eslint-disable-next-line sort-keys -- disabling key order for readability
504
+ "&:hover": {
505
+ textDecoration: "underline",
603
506
  },
604
- pre: {
507
+ },
508
+ body: {
509
+ fontFamily: APP.FONT_FAMILY,
510
+ },
511
+ code: {
512
+ font: FONT.BODY_400_2_LINES,
513
+ fontFamily: "Roboto Mono, monospace",
514
+ fontSize: 12,
515
+ },
516
+ img: {
517
+ display: "block",
518
+ },
519
+ p: {
520
+ margin: "0 0 8px",
521
+ // eslint-disable-next-line sort-keys -- disabling key order for readability
522
+ "&:last-child": {
605
523
  margin: 0,
606
- whiteSpace: "pre-wrap",
607
- wordBreak: "break-word",
608
- },
609
- strong: {
610
- fontWeight: 500,
611
524
  },
612
525
  },
613
- };
526
+ pre: {
527
+ margin: 0,
528
+ whiteSpace: "pre-wrap",
529
+ wordBreak: "break-word",
530
+ },
531
+ strong: {
532
+ fontWeight: 500,
533
+ },
534
+ },
614
535
  };
615
536
 
616
- /**
617
- * MuiDialog Component
618
- * @param theme - Theme.
619
- * @returns MuiDialog component theme styles.
620
- */
621
- export const MuiDialog: Components["MuiDialog"] = {
537
+ const MuiDialog: Components["MuiDialog"] = {
622
538
  styleOverrides: {
623
539
  paper: {
624
540
  boxShadow: SHADOWS["02"],
@@ -632,10 +548,7 @@ export const MuiDialog: Components["MuiDialog"] = {
632
548
  },
633
549
  };
634
550
 
635
- /**
636
- * MuiDialogActions Component
637
- */
638
- export const MuiDialogActions: Components["MuiDialogActions"] = {
551
+ const MuiDialogActions: Components["MuiDialogActions"] = {
639
552
  styleOverrides: {
640
553
  root: {
641
554
  padding: 20,
@@ -643,68 +556,42 @@ export const MuiDialogActions: Components["MuiDialogActions"] = {
643
556
  },
644
557
  };
645
558
 
646
- /**
647
- * MuiDialogContent Component
648
- * @param theme - Theme.
649
- * @returns MuiDialogContent component theme styles.
650
- */
651
- export const MuiDialogContent = (
652
- theme: Theme
653
- ): Components["MuiDialogContent"] => {
654
- return {
655
- styleOverrides: {
656
- root: {
657
- borderColor: theme.palette.smoke.main,
658
- padding: 20,
659
- },
660
- },
661
- };
559
+ const MuiDialogContent: Components["MuiDialogContent"] = {
560
+ styleOverrides: {
561
+ root: {
562
+ borderColor: PALETTE.SMOKE_MAIN,
563
+ padding: 20,
564
+ },
565
+ },
662
566
  };
663
567
 
664
- /**
665
- * MuiDialogTitle Component
666
- * @param theme - Theme.
667
- * @returns MuiDialogTitle component theme styles.
668
- */
669
- export const MuiDialogTitle = (theme: Theme): Components["MuiDialogTitle"] => {
670
- return {
671
- styleOverrides: {
672
- root: {
673
- ...theme.typography[TEXT_HEADING],
674
- alignItems: "center",
675
- display: "grid",
676
- gridAutoFlow: "column",
677
- padding: 20,
678
- [tabletUp]: {},
679
- // eslint-disable-next-line sort-keys -- disabling key order for readability
680
- "& .MuiIconButton-edgeEnd": {
681
- alignSelf: FLEX_START,
682
- justifySelf: "flex-end",
683
- },
568
+ const MuiDialogTitle: Components<Theme>["MuiDialogTitle"] = {
569
+ styleOverrides: {
570
+ root: ({ theme }) => ({
571
+ alignItems: "center",
572
+ display: "grid",
573
+ font: FONT.HEADING,
574
+ gridAutoFlow: "column",
575
+ padding: 20,
576
+ [bpUpSm({ theme })]: {},
577
+ // eslint-disable-next-line sort-keys -- disabling key order for readability
578
+ "& .MuiIconButton-edgeEnd": {
579
+ alignSelf: FLEX_START,
580
+ justifySelf: "flex-end",
684
581
  },
685
- },
686
- };
582
+ }),
583
+ },
687
584
  };
688
585
 
689
- /**
690
- * MuiDivider Component
691
- * @param theme - Theme.
692
- * @returns MuiDivider component theme styles.
693
- */
694
- export const MuiDivider = (theme: Theme): Components["MuiDivider"] => {
695
- return {
696
- styleOverrides: {
697
- root: {
698
- borderColor: theme.palette.smoke.main,
699
- },
700
- },
701
- };
586
+ const MuiDivider: Components["MuiDivider"] = {
587
+ styleOverrides: {
588
+ root: {
589
+ borderColor: PALETTE.SMOKE_MAIN,
590
+ },
591
+ },
702
592
  };
703
593
 
704
- /**
705
- * MuiDrawer Component
706
- */
707
- export const MuiDrawer: Components["MuiDrawer"] = {
594
+ const MuiDrawer: Components["MuiDrawer"] = {
708
595
  styleOverrides: {
709
596
  paper: {
710
597
  overflowY: "visible", // required; allows backdrop button to render outside of drawer container
@@ -712,31 +599,19 @@ export const MuiDrawer: Components["MuiDrawer"] = {
712
599
  },
713
600
  };
714
601
 
715
- /**
716
- * MuiFormControlLabel Component
717
- * @param theme - Theme.
718
- * @returns MuiFormControlLabel component theme styles.
719
- */
720
- export const MuiFormControlLabel = (
721
- theme: Theme
722
- ): Components["MuiFormControlLabel"] => {
723
- return {
724
- styleOverrides: {
725
- label: {
726
- ...theme.typography[TEXT_BODY_400],
727
- },
728
- root: {
729
- gap: 8,
730
- margin: 0,
731
- },
602
+ const MuiFormControlLabel: Components["MuiFormControlLabel"] = {
603
+ styleOverrides: {
604
+ label: {
605
+ font: FONT.BODY_400,
606
+ },
607
+ root: {
608
+ gap: 8,
609
+ margin: 0,
732
610
  },
733
- };
611
+ },
734
612
  };
735
613
 
736
- /**
737
- * MuiFormGroup Component
738
- */
739
- export const MuiFormGroup: Components["MuiFormGroup"] = {
614
+ const MuiFormGroup: Components["MuiFormGroup"] = {
740
615
  styleOverrides: {
741
616
  root: {
742
617
  alignItems: FLEX_START,
@@ -745,202 +620,176 @@ export const MuiFormGroup: Components["MuiFormGroup"] = {
745
620
  },
746
621
  };
747
622
 
748
- /**
749
- * MuiFormHelperText Component
750
- * @param theme - Theme.
751
- * @returns MuiFormHelperText component theme styles.
752
- */
753
- export const MuiFormHelperText = (
754
- theme: Theme
755
- ): Components["MuiFormHelperText"] => {
756
- return {
757
- styleOverrides: {
758
- root: {
759
- ...theme.typography[TEXT_BODY_SMALL_400],
760
- // eslint-disable-next-line sort-keys -- disabling key order for readability
761
- "&.Mui-error": {
762
- color: theme.palette.alert.main,
763
- },
623
+ const MuiFormHelperText: Components["MuiFormHelperText"] = {
624
+ styleOverrides: {
625
+ root: {
626
+ font: FONT.BODY_SMALL_400,
627
+ // eslint-disable-next-line sort-keys -- disabling key order for readability
628
+ "&.Mui-error": {
629
+ color: PALETTE.ALERT_MAIN,
764
630
  },
765
631
  },
766
- };
632
+ },
767
633
  };
768
634
 
769
- /**
770
- * MuiIconButton Component
771
- * @param theme - Theme.
772
- * @returns MuiIconButton component theme styles.
773
- */
774
- export const MuiIconButton = (theme: Theme): Components["MuiIconButton"] => {
775
- return {
776
- defaultProps: {
777
- disableRipple: true,
778
- },
779
- styleOverrides: {
780
- colorPrimary: {
781
- backgroundColor: theme.palette.primary.main,
782
- boxShadow: `0 1px 0 0 ${theme.palette.primary.dark}`,
783
- color: theme.palette.common.white,
784
- // eslint-disable-next-line sort-keys -- disabling key order for readability
785
- "&.Mui-disabled": {
786
- backgroundColor: theme.palette.primary.main,
787
- color: theme.palette.common.white,
788
- opacity: 0.5,
789
- },
790
- // eslint-disable-next-line sort-keys -- disabling key order for readability
791
- "&:hover": {
792
- backgroundColor: theme.palette.primary.dark,
793
- },
794
- // eslint-disable-next-line sort-keys -- disabling key order for readability
795
- "&:active": {
796
- backgroundColor: theme.palette.primary.dark,
797
- boxShadow: "none",
798
- },
635
+ const MuiIconButton: Components["MuiIconButton"] = {
636
+ defaultProps: {
637
+ disableRipple: true,
638
+ },
639
+ styleOverrides: {
640
+ colorPrimary: {
641
+ backgroundColor: PALETTE.PRIMARY_MAIN,
642
+ boxShadow: `0 1px 0 0 ${PALETTE.PRIMARY_DARK}`,
643
+ color: PALETTE.COMMON_WHITE,
644
+ // eslint-disable-next-line sort-keys -- disabling key order for readability
645
+ "&.Mui-disabled": {
646
+ backgroundColor: PALETTE.PRIMARY_MAIN,
647
+ color: PALETTE.COMMON_WHITE,
648
+ opacity: 0.5,
799
649
  },
800
- colorSecondary: {
801
- backgroundColor: PALETTE.COMMON_WHITE,
802
- boxShadow: `inset 0 0 0 1px ${PALETTE.SMOKE_DARK}, 0 1px 0 0 ${COLOR_MIXES.COMMON_BLACK_05}`,
650
+ // eslint-disable-next-line sort-keys -- disabling key order for readability
651
+ "&:hover": {
652
+ backgroundColor: PALETTE.PRIMARY_DARK,
653
+ },
654
+ // eslint-disable-next-line sort-keys -- disabling key order for readability
655
+ "&:active": {
656
+ backgroundColor: PALETTE.PRIMARY_DARK,
657
+ boxShadow: "none",
658
+ },
659
+ },
660
+ colorSecondary: {
661
+ backgroundColor: PALETTE.COMMON_WHITE,
662
+ boxShadow: `inset 0 0 0 1px ${PALETTE.SMOKE_DARK}, 0 1px 0 0 ${COLOR_MIXES.COMMON_BLACK_05}`,
663
+ color: PALETTE.INK_MAIN,
664
+ // eslint-disable-next-line sort-keys -- disabling key order for readability
665
+ "&.Mui-disabled": {
666
+ boxShadow: `inset 0 0 0 1px ${PALETTE.SMOKE_DARK}`,
667
+ color: PALETTE.INK_LIGHT,
668
+ opacity: 0.5,
669
+ },
670
+ // eslint-disable-next-line sort-keys -- disabling key order for readability
671
+ "&:hover": {
672
+ backgroundColor: PALETTE.SMOKE_LIGHTEST,
673
+ },
674
+ // eslint-disable-next-line sort-keys -- disabling key order for readability
675
+ "&:active": {
676
+ backgroundColor: PALETTE.SMOKE_LIGHTEST,
677
+ boxShadow: `inset 0 0 0 1px ${PALETTE.SMOKE_DARK}`,
678
+ },
679
+ },
680
+ root: {
681
+ borderRadius: 4,
682
+ },
683
+ sizeLarge: {
684
+ padding: 10,
685
+ },
686
+ sizeMedium: {
687
+ padding: 8,
688
+ },
689
+ sizeSmall: {
690
+ padding: 6,
691
+ },
692
+ },
693
+ variants: [
694
+ {
695
+ props: {
696
+ color: "ink",
697
+ },
698
+ style: {
803
699
  color: PALETTE.INK_MAIN,
804
700
  // eslint-disable-next-line sort-keys -- disabling key order for readability
805
- "&.Mui-disabled": {
806
- boxShadow: `inset 0 0 0 1px ${PALETTE.SMOKE_DARK}`,
807
- color: PALETTE.INK_LIGHT,
808
- opacity: 0.5,
809
- },
810
- // eslint-disable-next-line sort-keys -- disabling key order for readability
811
701
  "&:hover": {
812
- backgroundColor: PALETTE.SMOKE_LIGHTEST,
702
+ backgroundColor: PALETTE.SMOKE_LIGHT,
813
703
  },
704
+ },
705
+ },
706
+ {
707
+ props: {
708
+ color: "inkLight",
709
+ },
710
+ style: {
711
+ color: PALETTE.INK_LIGHT,
814
712
  // eslint-disable-next-line sort-keys -- disabling key order for readability
815
- "&:active": {
816
- backgroundColor: PALETTE.SMOKE_LIGHTEST,
817
- boxShadow: `inset 0 0 0 1px ${PALETTE.SMOKE_DARK}`,
713
+ "&:hover": {
714
+ backgroundColor: PALETTE.SMOKE_LIGHT,
818
715
  },
819
716
  },
820
- root: {
821
- borderRadius: 4,
717
+ },
718
+ {
719
+ props: {
720
+ edge: "end",
721
+ size: "small",
822
722
  },
823
- sizeLarge: {
824
- padding: 10,
723
+ style: {
724
+ marginRight: -6,
825
725
  },
826
- sizeMedium: {
827
- padding: 8,
726
+ },
727
+ {
728
+ props: {
729
+ size: "xlarge",
828
730
  },
829
- sizeSmall: {
830
- padding: 6,
731
+ style: {
732
+ padding: 14,
831
733
  },
832
734
  },
833
- variants: [
834
- {
835
- props: {
836
- color: "ink",
837
- },
838
- style: {
839
- color: theme.palette.ink.main,
840
- // eslint-disable-next-line sort-keys -- disabling key order for readability
841
- "&:hover": {
842
- backgroundColor: theme.palette.smoke.light,
843
- },
844
- },
845
- },
846
- {
847
- props: {
848
- color: "inkLight",
849
- },
850
- style: {
851
- color: theme.palette.ink.light,
852
- // eslint-disable-next-line sort-keys -- disabling key order for readability
853
- "&:hover": {
854
- backgroundColor: theme.palette.smoke.light,
855
- },
856
- },
735
+ {
736
+ props: {
737
+ size: "xsmall",
857
738
  },
858
- {
859
- props: {
860
- edge: "end",
861
- size: "small",
862
- },
863
- style: {
864
- marginRight: -6,
865
- },
739
+ style: {
740
+ padding: 4,
866
741
  },
867
- {
868
- props: {
869
- size: "xlarge",
870
- },
871
- style: {
872
- padding: 14,
873
- },
742
+ },
743
+ {
744
+ props: {
745
+ edge: "end",
746
+ size: "xsmall",
874
747
  },
875
- {
876
- props: {
877
- size: "xsmall",
878
- },
879
- style: {
880
- padding: 4,
881
- },
748
+ style: {
749
+ marginRight: -4,
882
750
  },
883
- {
884
- props: {
885
- edge: "end",
886
- size: "xsmall",
887
- },
888
- style: {
889
- marginRight: -4,
890
- },
751
+ },
752
+ {
753
+ props: {
754
+ size: "xxsmall",
891
755
  },
892
- {
893
- props: {
894
- size: "xxsmall",
895
- },
896
- style: {
897
- padding: 0,
898
- },
756
+ style: {
757
+ padding: 0,
899
758
  },
900
- ],
901
- };
759
+ },
760
+ ],
902
761
  };
903
-
904
- /**
905
- * MuiInputBase Component
906
- * @param theme - Theme.
907
- * @returns MuiInputBase component theme styles.
908
- */
909
- export const MuiInputBase = (theme: Theme): Components["MuiInputBase"] => {
910
- return {
911
- styleOverrides: {
912
- multiline: {
913
- height: "unset",
914
- },
915
- root: {
916
- ...theme.typography[TEXT_BODY_400],
917
- fontSize: 16, // overrides default 14px to prevent IOS zoom on focus.
918
- height: 40,
919
- letterSpacing: "normal",
920
- // eslint-disable-next-line sort-keys -- disabling key order for readability
921
- [tabletUp]: {
922
- fontSize: theme.typography[TEXT_BODY_400].fontSize,
923
- },
924
- variants: [
925
- /* PRIMARY */ /* TODO: remove `adornedStart` when all input components are refactored to color: secondary */
926
- {
927
- props: { color: "primary" },
928
- style: {
929
- adornedStart: {
930
- gap: 8,
931
- },
762
+
763
+ const MuiInputBase: Components<Theme>["MuiInputBase"] = {
764
+ styleOverrides: {
765
+ multiline: {
766
+ height: "unset",
767
+ },
768
+ root: ({ theme }) => ({
769
+ font: FONT.BODY_400,
770
+ fontSize: 16, // overrides default 14px to prevent IOS zoom on focus.
771
+ height: 40,
772
+ letterSpacing: "normal",
773
+ // eslint-disable-next-line sort-keys -- disabling key order for readability
774
+ [bpUpSm({ theme })]: {
775
+ fontSize: "14px",
776
+ },
777
+ variants: [
778
+ /* PRIMARY */ /* TODO: remove `adornedStart` when all input components are refactored to color: secondary */
779
+ {
780
+ props: { color: "primary" },
781
+ style: {
782
+ adornedStart: {
783
+ gap: 8,
932
784
  },
933
785
  },
934
- ],
935
- },
936
- },
937
- };
786
+ },
787
+ ],
788
+ }),
789
+ },
938
790
  };
939
791
 
940
- /**
941
- * MuiLink Component
942
- */
943
- export const MuiLink: Components["MuiLink"] = {
792
+ const MuiLink: Components["MuiLink"] = {
944
793
  defaultProps: {
945
794
  underline: "always",
946
795
  },
@@ -959,41 +808,29 @@ export const MuiLink: Components["MuiLink"] = {
959
808
  },
960
809
  };
961
810
 
962
- /**
963
- * MuiListItemButton Component
964
- * @param theme - Theme.
965
- * @returns MuiListItemButton component theme styles.
966
- */
967
- export const MuiListItemButton = (
968
- theme: Theme
969
- ): Components["MuiListItemButton"] => {
970
- return {
971
- styleOverrides: {
972
- root: {
973
- ...theme.typography[TEXT_BODY_400],
974
- minHeight: "unset",
975
- padding: "10px 16px",
811
+ const MuiListItemButton: Components["MuiListItemButton"] = {
812
+ styleOverrides: {
813
+ root: {
814
+ font: FONT.BODY_400,
815
+ minHeight: "unset",
816
+ padding: "10px 16px",
817
+ // eslint-disable-next-line sort-keys -- disabling key order for readability
818
+ "&:hover": {
819
+ backgroundColor: PALETTE.SMOKE_LIGHT,
820
+ },
821
+ // eslint-disable-next-line sort-keys -- disabling key order for readability
822
+ "&.Mui-selected": {
823
+ backgroundColor: "unset",
976
824
  // eslint-disable-next-line sort-keys -- disabling key order for readability
977
825
  "&:hover": {
978
- backgroundColor: theme.palette.smoke.light,
979
- },
980
- // eslint-disable-next-line sort-keys -- disabling key order for readability
981
- "&.Mui-selected": {
982
- backgroundColor: "unset",
983
- // eslint-disable-next-line sort-keys -- disabling key order for readability
984
- "&:hover": {
985
- backgroundColor: theme.palette.smoke.light,
986
- },
826
+ backgroundColor: PALETTE.SMOKE_LIGHT,
987
827
  },
988
828
  },
989
829
  },
990
- };
830
+ },
991
831
  };
992
832
 
993
- /**
994
- * MuiListItemText Component
995
- */
996
- export const MuiListItemText: Components["MuiListItemText"] = {
833
+ const MuiListItemText: Components["MuiListItemText"] = {
997
834
  styleOverrides: {
998
835
  root: {
999
836
  margin: 0,
@@ -1001,291 +838,249 @@ export const MuiListItemText: Components["MuiListItemText"] = {
1001
838
  },
1002
839
  };
1003
840
 
1004
- /**
1005
- * MuiListSubheader Component
1006
- * @param theme - Theme.
1007
- * @returns MuiListSubheader component theme styles.
1008
- */
1009
- export const MuiListSubheader = (
1010
- theme: Theme
1011
- ): Components["MuiListSubheader"] => {
1012
- return {
1013
- defaultProps: { disableSticky: true },
1014
- styleOverrides: {
1015
- root: {
1016
- ...theme.typography[TEXT_BODY_500],
1017
- color: theme.palette.ink.main,
1018
- },
1019
- },
1020
- };
841
+ const MuiListSubheader: Components["MuiListSubheader"] = {
842
+ defaultProps: { disableSticky: true },
843
+ styleOverrides: {
844
+ root: {
845
+ color: PALETTE.INK_MAIN,
846
+ font: FONT.BODY_500,
847
+ },
848
+ },
1021
849
  };
1022
850
 
1023
- /**
1024
- * MuiMenuItem Component
1025
- * @param theme - Theme.
1026
- * @returns MuiMenuItem component theme styles.
1027
- */
1028
- export const MuiMenuItem = (theme: Theme): Components["MuiMenuItem"] => {
1029
- return {
1030
- defaultProps: { disableRipple: true },
1031
- styleOverrides: {
1032
- root: {
1033
- ...theme.typography[TEXT_BODY_400],
1034
- minHeight: "unset",
1035
- padding: "10px 16px",
1036
- },
851
+ const MuiMenuItem: Components["MuiMenuItem"] = {
852
+ defaultProps: { disableRipple: true },
853
+ styleOverrides: {
854
+ root: {
855
+ font: FONT.BODY_400,
856
+ minHeight: "unset",
857
+ padding: "10px 16px",
1037
858
  },
1038
- };
859
+ },
1039
860
  };
1040
861
 
1041
- /**
1042
- * MuiOutlinedInput Component
1043
- * @param theme - Theme.
1044
- * @returns MuiOutlinedInput component theme styles.
1045
- */
1046
- export const MuiOutlinedInput = (
1047
- theme: Theme
1048
- ): Components["MuiOutlinedInput"] => {
1049
- return {
1050
- styleOverrides: {
1051
- input: {
1052
- color: theme.palette.ink.light,
1053
- height: 20,
1054
- padding: "10px 14px 10px 0",
1055
- // eslint-disable-next-line sort-keys -- disabling key order for readability
1056
- "&:focus": {
1057
- color: theme.palette.ink.main,
1058
- },
862
+ const MuiOutlinedInput: Components["MuiOutlinedInput"] = {
863
+ styleOverrides: {
864
+ input: {
865
+ color: PALETTE.INK_LIGHT,
866
+ height: 20,
867
+ padding: "10px 14px 10px 0",
868
+ // eslint-disable-next-line sort-keys -- disabling key order for readability
869
+ "&:focus": {
870
+ color: PALETTE.INK_MAIN,
1059
871
  },
1060
- notchedOutline: {
1061
- borderColor: theme.palette.smoke.dark,
872
+ },
873
+ notchedOutline: {
874
+ borderColor: PALETTE.SMOKE_DARK,
875
+ },
876
+ root: {
877
+ backgroundColor: PALETTE.COMMON_WHITE,
878
+ boxShadow: `inset 0 2px 0 0 ${COLOR_MIXES.COMMON_BLACK_04}`,
879
+ paddingLeft: 12, // TODO: remove when all input components are refactored to color: secondary.
880
+ // eslint-disable-next-line sort-keys -- disabling key order for readability
881
+ "&:hover": {
882
+ "& .MuiOutlinedInput-notchedOutline": {
883
+ borderColor: PALETTE.SMOKE_DARK,
884
+ },
1062
885
  },
1063
- root: {
1064
- backgroundColor: PALETTE.COMMON_WHITE,
1065
- boxShadow: `inset 0 2px 0 0 ${COLOR_MIXES.COMMON_BLACK_04}`,
1066
- paddingLeft: 12, // TODO: remove when all input components are refactored to color: secondary.
1067
- // eslint-disable-next-line sort-keys -- disabling key order for readability
1068
- "&:hover": {
1069
- "& .MuiOutlinedInput-notchedOutline": {
1070
- borderColor: theme.palette.smoke.dark,
1071
- },
886
+ // eslint-disable-next-line sort-keys -- disabling key order for specificity
887
+ "&.Mui-focused": {
888
+ "& .MuiOutlinedInput-notchedOutline": {
889
+ borderColor: PALETTE.INK_MAIN,
890
+ borderWidth: 1,
1072
891
  },
1073
- // eslint-disable-next-line sort-keys -- disabling key order for specificity
1074
- "&.Mui-focused": {
1075
- "& .MuiOutlinedInput-notchedOutline": {
1076
- borderColor: theme.palette.ink.main,
1077
- borderWidth: 1,
1078
- },
892
+ },
893
+ // eslint-disable-next-line sort-keys -- disabling key order for specificity
894
+ "&.Mui-disabled": {
895
+ "& .MuiOutlinedInput-notchedOutline": {
896
+ borderColor: PALETTE.SMOKE_DARK,
897
+ borderWidth: 1,
1079
898
  },
899
+ },
900
+ "&.Mui-error": {
901
+ backgroundColor: PALETTE.ALERT_LIGHTEST,
1080
902
  // eslint-disable-next-line sort-keys -- disabling key order for specificity
1081
- "&.Mui-disabled": {
1082
- "& .MuiOutlinedInput-notchedOutline": {
1083
- borderColor: theme.palette.smoke.dark,
1084
- borderWidth: 1,
1085
- },
903
+ "& .MuiOutlinedInput-notchedOutline": {
904
+ borderColor: PALETTE.ALERT_MAIN,
905
+ borderWidth: 1,
1086
906
  },
1087
- "&.Mui-error": {
1088
- backgroundColor: theme.palette.alert.lightest,
1089
- // eslint-disable-next-line sort-keys -- disabling key order for specificity
1090
- "& .MuiOutlinedInput-notchedOutline": {
1091
- borderColor: theme.palette.alert.main,
1092
- borderWidth: 1,
907
+ },
908
+ variants: [
909
+ /* PRIMARY */
910
+ {
911
+ props: { color: OUTLINED_INPUT_PROPS.COLOR.PRIMARY },
912
+ style: {
913
+ "& .MuiSvgIcon-root": {
914
+ color: PALETTE.INK_LIGHT, // Adornment e.g. "SearchIcon". TODO: remove when all input components are refactored to color: secondary.
915
+ },
916
+ // eslint-disable-next-line sort-keys -- disabling key order for specificity
917
+ "&.Mui-focused": {
918
+ "& .MuiSvgIcon-root": {
919
+ color: PALETTE.INK_MAIN, // Adornment e.g. "SearchIcon". TODO: remove when all input components are refactored to color: secondary.
920
+ },
921
+ },
922
+ // eslint-disable-next-line sort-keys -- disabling key order for specificity
923
+ "&.Mui-disabled": {
924
+ "& .MuiSvgIcon-root": {
925
+ color: PALETTE.INK_LIGHT, // TODO: remove when all input components are refactored to color: secondary.
926
+ },
927
+ },
1093
928
  },
1094
929
  },
1095
- variants: [
1096
- /* PRIMARY */
1097
- {
1098
- props: { color: OUTLINED_INPUT_PROPS.COLOR.PRIMARY },
1099
- style: {
1100
- "& .MuiSvgIcon-root": {
1101
- color: theme.palette.ink.light, // Adornment e.g. "SearchIcon". TODO: remove when all input components are refactored to color: secondary.
930
+ /* SECONDARY */
931
+ {
932
+ props: { color: OUTLINED_INPUT_PROPS.COLOR.SECONDARY },
933
+ style: {
934
+ backgroundColor: PALETTE.COMMON_WHITE,
935
+ boxShadow: `inset 0 2px 0 0 ${COLOR_MIXES.COMMON_BLACK_04}`,
936
+ color: PALETTE.INK_LIGHT,
937
+ padding: "0 12px",
938
+ // eslint-disable-next-line sort-keys -- disabling key order for specificity
939
+ ".MuiOutlinedInput-input": {
940
+ color: "inherit",
941
+ height: 20,
942
+ padding: "10px 0",
943
+ // eslint-disable-next-line sort-keys -- disabling key order for specificity
944
+ "&::placeholder": {
945
+ color: "inherit",
946
+ opacity: 0.8,
1102
947
  },
948
+ },
949
+ ".MuiOutlinedInput-notchedOutline": {
950
+ borderColor: PALETTE.SMOKE_DARK,
951
+ borderWidth: 1,
952
+ },
953
+ // eslint-disable-next-line sort-keys -- disabling key order for specificity
954
+ "&.Mui-focused": {
955
+ color: PALETTE.INK_MAIN,
1103
956
  // eslint-disable-next-line sort-keys -- disabling key order for specificity
1104
- "&.Mui-focused": {
1105
- "& .MuiSvgIcon-root": {
1106
- color: theme.palette.ink.main, // Adornment e.g. "SearchIcon". TODO: remove when all input components are refactored to color: secondary.
957
+ ".MuiOutlinedInput-input": {
958
+ "&::placeholder": {
959
+ opacity: 0,
1107
960
  },
1108
961
  },
1109
962
  // eslint-disable-next-line sort-keys -- disabling key order for specificity
1110
- "&.Mui-disabled": {
1111
- "& .MuiSvgIcon-root": {
1112
- color: theme.palette.ink.light, // TODO: remove when all input components are refactored to color: secondary.
1113
- },
963
+ ".MuiOutlinedInput-notchedOutline": {
964
+ borderColor: PALETTE.INK_MAIN,
965
+ borderWidth: 1,
1114
966
  },
1115
967
  },
1116
- },
1117
- /* SECONDARY */
1118
- {
1119
- props: { color: OUTLINED_INPUT_PROPS.COLOR.SECONDARY },
1120
- style: {
1121
- backgroundColor: PALETTE.COMMON_WHITE,
1122
- boxShadow: `inset 0 2px 0 0 ${COLOR_MIXES.COMMON_BLACK_04}`,
968
+ // eslint-disable-next-line sort-keys -- disabling key order for specificity
969
+ "&.Mui-disabled": {
970
+ backgroundColor: PALETTE.SMOKE_LIGHT,
1123
971
  color: PALETTE.INK_LIGHT,
1124
- padding: "0 12px",
1125
972
  // eslint-disable-next-line sort-keys -- disabling key order for specificity
1126
973
  ".MuiOutlinedInput-input": {
1127
- color: "inherit",
1128
- height: 20,
1129
- padding: "10px 0",
974
+ WebkitTextFillColor: "unset",
1130
975
  // eslint-disable-next-line sort-keys -- disabling key order for specificity
1131
976
  "&::placeholder": {
1132
977
  color: "inherit",
1133
- opacity: 0.8,
978
+ opacity: 1,
1134
979
  },
1135
980
  },
981
+ // eslint-disable-next-line sort-keys -- disabling key order for specificity
1136
982
  ".MuiOutlinedInput-notchedOutline": {
1137
983
  borderColor: PALETTE.SMOKE_DARK,
1138
984
  borderWidth: 1,
1139
985
  },
1140
- // eslint-disable-next-line sort-keys -- disabling key order for specificity
1141
- "&.Mui-focused": {
1142
- color: PALETTE.INK_MAIN,
1143
- // eslint-disable-next-line sort-keys -- disabling key order for specificity
1144
- ".MuiOutlinedInput-input": {
1145
- "&::placeholder": {
1146
- opacity: 0,
1147
- },
1148
- },
1149
- // eslint-disable-next-line sort-keys -- disabling key order for specificity
1150
- ".MuiOutlinedInput-notchedOutline": {
1151
- borderColor: PALETTE.INK_MAIN,
1152
- borderWidth: 1,
1153
- },
1154
- },
1155
- // eslint-disable-next-line sort-keys -- disabling key order for specificity
1156
- "&.Mui-disabled": {
1157
- backgroundColor: PALETTE.SMOKE_LIGHT,
1158
- color: PALETTE.INK_LIGHT,
1159
- // eslint-disable-next-line sort-keys -- disabling key order for specificity
1160
- ".MuiOutlinedInput-input": {
1161
- WebkitTextFillColor: "unset",
1162
- // eslint-disable-next-line sort-keys -- disabling key order for specificity
1163
- "&::placeholder": {
1164
- color: "inherit",
1165
- opacity: 1,
1166
- },
1167
- },
1168
- // eslint-disable-next-line sort-keys -- disabling key order for specificity
1169
- ".MuiOutlinedInput-notchedOutline": {
1170
- borderColor: PALETTE.SMOKE_DARK,
1171
- borderWidth: 1,
1172
- },
1173
- },
1174
986
  },
1175
987
  },
1176
- ],
1177
- },
988
+ },
989
+ ],
1178
990
  },
1179
- };
991
+ },
1180
992
  };
1181
993
 
1182
- /**
1183
- * MuiPaper Component
1184
- * @param theme - Theme.
1185
- * @returns MuiPaper component theme styles.
1186
- */
1187
- export const MuiPaper = (theme: Theme): Components["MuiPaper"] => {
1188
- return {
1189
- variants: [
1190
- {
1191
- props: { elevation: 1 },
1192
- style: {
1193
- boxShadow: SHADOWS["01"],
1194
- },
994
+ const MuiPaper: Components["MuiPaper"] = {
995
+ variants: [
996
+ {
997
+ props: { elevation: 1 },
998
+ style: {
999
+ boxShadow: SHADOWS["01"],
1195
1000
  },
1196
- {
1197
- props: { elevation: 2 },
1198
- style: {
1199
- boxShadow: SHADOWS["02"],
1200
- },
1001
+ },
1002
+ {
1003
+ props: { elevation: 2 },
1004
+ style: {
1005
+ boxShadow: SHADOWS["02"],
1201
1006
  },
1202
- {
1203
- props: { variant: "footer" },
1204
- style: {
1205
- backgroundColor: theme.palette.smoke.light,
1206
- boxShadow: `inset 0 1px 0 0 ${theme.palette.smoke.main}, inset 0 -1px 0 0 ${theme.palette.smoke.main}`,
1207
- },
1007
+ },
1008
+ {
1009
+ props: { variant: "footer" },
1010
+ style: {
1011
+ backgroundColor: PALETTE.SMOKE_LIGHT,
1012
+ boxShadow: `inset 0 1px 0 0 ${PALETTE.SMOKE_MAIN}, inset 0 -1px 0 0 ${PALETTE.SMOKE_MAIN}`,
1208
1013
  },
1209
- {
1210
- props: { variant: "menu" },
1211
- style: {
1212
- borderColor: theme.palette.smoke.dark,
1213
- borderRadius: 8,
1214
- borderStyle: "solid",
1215
- borderWidth: 1,
1216
- boxShadow: SHADOWS["02"],
1217
- },
1014
+ },
1015
+ {
1016
+ props: { variant: "menu" },
1017
+ style: {
1018
+ borderColor: PALETTE.SMOKE_DARK,
1019
+ borderRadius: 8,
1020
+ borderStyle: "solid",
1021
+ borderWidth: 1,
1022
+ boxShadow: SHADOWS["02"],
1218
1023
  },
1219
- {
1220
- props: { variant: "panel" },
1221
- style: {
1222
- borderColor: theme.palette.smoke.main,
1223
- borderStyle: "solid",
1224
- borderWidth: 1,
1225
- boxShadow: SHADOWS["01"],
1226
- },
1024
+ },
1025
+ {
1026
+ props: { variant: "panel" },
1027
+ style: {
1028
+ borderColor: PALETTE.SMOKE_MAIN,
1029
+ borderStyle: "solid",
1030
+ borderWidth: 1,
1031
+ boxShadow: SHADOWS["01"],
1227
1032
  },
1228
- {
1229
- props: { variant: "searchbar" },
1230
- style: {
1231
- alignSelf: FLEX_START,
1232
- borderColor: theme.palette.smoke.main,
1233
- borderRadius: 0,
1234
- borderStyle: "solid",
1235
- borderWidth: "0 0 1px 0",
1236
- boxShadow: SHADOWS["01"],
1237
- // eslint-disable-next-line sort-keys -- disabling key order for readability
1238
- "&.MuiDialog-paper": {
1239
- marginLeft: 0,
1240
- marginRight: 0,
1241
- maxWidth: "100%",
1242
- width: "100%",
1243
- },
1033
+ },
1034
+ {
1035
+ props: { variant: "searchbar" },
1036
+ style: {
1037
+ alignSelf: FLEX_START,
1038
+ borderColor: PALETTE.SMOKE_MAIN,
1039
+ borderRadius: 0,
1040
+ borderStyle: "solid",
1041
+ borderWidth: "0 0 1px 0",
1042
+ boxShadow: SHADOWS["01"],
1043
+ // eslint-disable-next-line sort-keys -- disabling key order for readability
1044
+ "&.MuiDialog-paper": {
1045
+ marginLeft: 0,
1046
+ marginRight: 0,
1047
+ maxWidth: "100%",
1048
+ width: "100%",
1244
1049
  },
1245
1050
  },
1246
- ],
1247
- };
1051
+ },
1052
+ ],
1248
1053
  };
1249
1054
 
1250
- /**
1251
- * MuiRadio Component
1252
- * @param theme - Theme.
1253
- * @returns MuiRadio component theme styles.
1254
- */
1255
- export const MuiRadio = (theme: Theme): Components["MuiRadio"] => {
1256
- return {
1257
- defaultProps: {
1258
- disableRipple: true,
1259
- },
1260
- styleOverrides: {
1261
- root: {
1262
- color: theme.palette.smoke.dark,
1263
- padding: 0,
1055
+ const MuiRadio: Components["MuiRadio"] = {
1056
+ defaultProps: {
1057
+ disableRipple: true,
1058
+ },
1059
+ styleOverrides: {
1060
+ root: {
1061
+ color: PALETTE.SMOKE_DARK,
1062
+ padding: 0,
1063
+ // eslint-disable-next-line sort-keys -- disabling key order for readability
1064
+ "&.Mui-disabled": {
1065
+ color: PALETTE.SMOKE_DARK,
1066
+ opacity: "50%",
1067
+ },
1068
+ "&.MuiRadio-colorDefault": {
1069
+ color: PALETTE.INK_LIGHT,
1264
1070
  // eslint-disable-next-line sort-keys -- disabling key order for readability
1265
1071
  "&.Mui-disabled": {
1266
- color: theme.palette.smoke.dark,
1267
- opacity: "50%",
1268
- },
1269
- "&.MuiRadio-colorDefault": {
1270
- color: theme.palette.ink.light,
1271
- // eslint-disable-next-line sort-keys -- disabling key order for readability
1272
- "&.Mui-disabled": {
1273
- color: theme.palette.smoke.main,
1274
- opacity: "100%",
1275
- },
1276
- },
1277
- "&:hover": {
1278
- backgroundColor: "transparent",
1072
+ color: PALETTE.SMOKE_MAIN,
1073
+ opacity: "100%",
1279
1074
  },
1280
1075
  },
1076
+ "&:hover": {
1077
+ backgroundColor: "transparent",
1078
+ },
1281
1079
  },
1282
- };
1080
+ },
1283
1081
  };
1284
1082
 
1285
- /**
1286
- * MuiSelect Component
1287
- */
1288
- export const MuiSelect: Components["MuiSelect"] = {
1083
+ const MuiSelect: Components["MuiSelect"] = {
1289
1084
  defaultProps: {
1290
1085
  IconComponent: DropDownIcon,
1291
1086
  },
@@ -1297,121 +1092,104 @@ export const MuiSelect: Components["MuiSelect"] = {
1297
1092
  },
1298
1093
  };
1299
1094
 
1300
- /**
1301
- * MuiSvgIcon Component
1302
- * @param theme - Theme.
1303
- * @returns MuiSvgIcon component theme styles.
1304
- */
1305
- export const MuiSvgIcon = (theme: Theme): Components["MuiSvgIcon"] => {
1306
- return {
1307
- styleOverrides: {
1308
- fontSizeLarge: {
1309
- fontSize: "32px",
1310
- },
1311
- fontSizeSmall: {
1312
- fontSize: "20px",
1313
- },
1314
- root: {
1315
- "&.MuiSelect-icon": {
1316
- color: theme.palette.ink.main,
1317
- right: 8,
1318
- },
1095
+ const MuiSvgIcon: Components["MuiSvgIcon"] = {
1096
+ styleOverrides: {
1097
+ fontSizeLarge: {
1098
+ fontSize: "32px",
1099
+ },
1100
+ fontSizeSmall: {
1101
+ fontSize: "20px",
1102
+ },
1103
+ root: {
1104
+ "&.MuiSelect-icon": {
1105
+ color: PALETTE.INK_MAIN,
1106
+ right: 8,
1319
1107
  },
1320
1108
  },
1321
- variants: [
1322
- {
1323
- props: {
1324
- color: "inkLight",
1325
- },
1326
- style: {
1327
- color: theme.palette.ink.light,
1328
- },
1109
+ },
1110
+ variants: [
1111
+ {
1112
+ props: {
1113
+ color: "inkLight",
1329
1114
  },
1330
- {
1331
- props: {
1332
- color: "inkMain",
1333
- },
1334
- style: {
1335
- color: theme.palette.ink.main,
1336
- },
1115
+ style: {
1116
+ color: PALETTE.INK_LIGHT,
1337
1117
  },
1338
- {
1339
- props: {
1340
- fontSize: "medium",
1341
- },
1342
- style: {
1343
- fontSize: "24px",
1344
- },
1118
+ },
1119
+ {
1120
+ props: {
1121
+ color: "inkMain",
1345
1122
  },
1346
- {
1347
- props: {
1348
- fontSize: "xsmall",
1349
- },
1350
- style: {
1351
- fontSize: "18px",
1352
- },
1123
+ style: {
1124
+ color: PALETTE.INK_MAIN,
1353
1125
  },
1354
- {
1355
- props: {
1356
- fontSize: "xxlarge",
1357
- },
1358
- style: {
1359
- fontSize: "40px",
1360
- },
1126
+ },
1127
+ {
1128
+ props: {
1129
+ fontSize: "medium",
1361
1130
  },
1362
- {
1363
- props: {
1364
- fontSize: "xxsmall",
1365
- },
1366
- style: {
1367
- fontSize: "16px",
1368
- },
1131
+ style: {
1132
+ fontSize: "24px",
1133
+ },
1134
+ },
1135
+ {
1136
+ props: {
1137
+ fontSize: "xsmall",
1138
+ },
1139
+ style: {
1140
+ fontSize: "18px",
1141
+ },
1142
+ },
1143
+ {
1144
+ props: {
1145
+ fontSize: "xxlarge",
1146
+ },
1147
+ style: {
1148
+ fontSize: "40px",
1369
1149
  },
1370
- ],
1371
- };
1150
+ },
1151
+ {
1152
+ props: {
1153
+ fontSize: "xxsmall",
1154
+ },
1155
+ style: {
1156
+ fontSize: "16px",
1157
+ },
1158
+ },
1159
+ ],
1372
1160
  };
1373
1161
 
1374
- /**
1375
- * MuiTab Component
1376
- * @param theme - Theme.
1377
- * @returns MuiTab component theme styles.
1378
- */
1379
- export const MuiTab = (theme: Theme): Components["MuiTab"] => {
1380
- return {
1381
- styleOverrides: {
1382
- labelIcon: {
1383
- gap: 8,
1384
- // eslint-disable-next-line sort-keys -- disabling key order for readability
1385
- "& > img": {
1386
- maxHeight: 20, // Tab image max height.
1387
- },
1162
+ const MuiTab: Components["MuiTab"] = {
1163
+ styleOverrides: {
1164
+ labelIcon: {
1165
+ gap: 8,
1166
+ // eslint-disable-next-line sort-keys -- disabling key order for readability
1167
+ "& > img": {
1168
+ maxHeight: 20, // Tab image max height.
1388
1169
  },
1389
- root: {
1390
- ...theme.typography[TEXT_BODY_500],
1391
- color: theme.palette.ink.light,
1392
- marginBottom: 3,
1393
- minHeight: "unset",
1394
- minWidth: "unset",
1395
- opacity: 1,
1396
- padding: 12,
1397
- textTransform: "capitalize",
1398
- // eslint-disable-next-line sort-keys -- disabling key order for readability
1399
- "&.Mui-selected": {
1400
- color: theme.palette.ink.main,
1401
- },
1402
- // eslint-disable-next-line sort-keys -- disabling key order for readability
1403
- "& > .MuiTab-iconWrapper": {
1404
- marginRight: 0,
1405
- },
1170
+ },
1171
+ root: {
1172
+ color: PALETTE.INK_LIGHT,
1173
+ font: FONT.BODY_500,
1174
+ marginBottom: 3,
1175
+ minHeight: "unset",
1176
+ minWidth: "unset",
1177
+ opacity: 1,
1178
+ padding: 12,
1179
+ textTransform: "capitalize",
1180
+ // eslint-disable-next-line sort-keys -- disabling key order for readability
1181
+ "&.Mui-selected": {
1182
+ color: PALETTE.INK_MAIN,
1183
+ },
1184
+ // eslint-disable-next-line sort-keys -- disabling key order for readability
1185
+ "& > .MuiTab-iconWrapper": {
1186
+ marginRight: 0,
1406
1187
  },
1407
1188
  },
1408
- };
1189
+ },
1409
1190
  };
1410
1191
 
1411
- /**
1412
- * MuiTableSortLabel Component
1413
- */
1414
- export const MuiTableSortLabel: Components["MuiTableSortLabel"] = {
1192
+ const MuiTableSortLabel: Components["MuiTableSortLabel"] = {
1415
1193
  styleOverrides: {
1416
1194
  icon: {
1417
1195
  fontSize: 20,
@@ -1436,198 +1214,160 @@ export const MuiTableSortLabel: Components["MuiTableSortLabel"] = {
1436
1214
  },
1437
1215
  };
1438
1216
 
1439
- /**
1440
- * MuiTabs Component
1441
- * @param theme - Theme.
1442
- * @returns MuiTabs component theme styles.
1443
- */
1444
- export const MuiTabs = (theme: Theme): Components["MuiTabs"] => {
1445
- return {
1446
- defaultProps: {
1447
- textColor: "inherit",
1448
- variant: "scrollable",
1449
- },
1450
- styleOverrides: {
1451
- flexContainer: {
1452
- gap: 8,
1217
+ const MuiTabs: Components<Theme>["MuiTabs"] = {
1218
+ defaultProps: {
1219
+ textColor: "inherit",
1220
+ variant: "scrollable",
1221
+ },
1222
+ styleOverrides: {
1223
+ flexContainer: {
1224
+ gap: 8,
1225
+ // eslint-disable-next-line sort-keys -- disabling key order for readability
1226
+ "&:not(.MuiTabs-flexContainerVertical)": {
1453
1227
  // eslint-disable-next-line sort-keys -- disabling key order for readability
1454
- "&:not(.MuiTabs-flexContainerVertical)": {
1228
+ ".MuiTab-root": {
1455
1229
  // eslint-disable-next-line sort-keys -- disabling key order for readability
1456
- ".MuiTab-root": {
1230
+ "&:hover": {
1231
+ color: PALETTE.INK_MAIN,
1232
+ overflow: "visible",
1457
1233
  // eslint-disable-next-line sort-keys -- disabling key order for readability
1458
- "&:hover": {
1459
- color: theme.palette.ink.main,
1460
- overflow: "visible",
1461
- // eslint-disable-next-line sort-keys -- disabling key order for readability
1462
- "&:after": {
1463
- backgroundColor: theme.palette.smoke.dark,
1464
- borderRadius: "12px 12px 0 0",
1465
- bottom: -3,
1466
- content: '""',
1467
- height: 3,
1468
- left: 0,
1469
- position: "absolute",
1470
- width: "100%",
1471
- },
1234
+ "&:after": {
1235
+ backgroundColor: PALETTE.SMOKE_DARK,
1236
+ borderRadius: "12px 12px 0 0",
1237
+ bottom: -3,
1238
+ content: '""',
1239
+ height: 3,
1240
+ left: 0,
1241
+ position: "absolute",
1242
+ width: "100%",
1472
1243
  },
1244
+ },
1245
+ // eslint-disable-next-line sort-keys -- disabling key order for readability
1246
+ "&.Mui-selected": {
1473
1247
  // eslint-disable-next-line sort-keys -- disabling key order for readability
1474
- "&.Mui-selected": {
1248
+ "&:hover": {
1249
+ overflow: "unset",
1475
1250
  // eslint-disable-next-line sort-keys -- disabling key order for readability
1476
- "&:hover": {
1477
- overflow: "unset",
1478
- // eslint-disable-next-line sort-keys -- disabling key order for readability
1479
- "&:after": {
1480
- content: "none",
1481
- },
1251
+ "&:after": {
1252
+ content: "none",
1482
1253
  },
1483
1254
  },
1484
1255
  },
1485
1256
  },
1486
1257
  },
1487
- indicator: {
1488
- borderTopLeftRadius: 12,
1489
- borderTopRightRadius: 12,
1490
- height: 3,
1491
- },
1492
- root: {
1493
- boxShadow: `inset 0 -1px 0 0 ${theme.palette.smoke.main}`,
1494
- minHeight: "unset",
1495
- position: "relative", // Positions scroll fuzz.
1496
- },
1497
- scroller: {
1498
- margin: 0,
1499
- padding: "0 8px",
1500
- // eslint-disable-next-line sort-keys -- disabling key order for readability
1501
- [tabletUp]: {
1502
- padding: 0,
1503
- },
1504
- },
1505
1258
  },
1506
- };
1259
+ indicator: {
1260
+ borderTopLeftRadius: 12,
1261
+ borderTopRightRadius: 12,
1262
+ height: 3,
1263
+ },
1264
+ root: {
1265
+ boxShadow: `inset 0 -1px 0 0 ${PALETTE.SMOKE_MAIN}`,
1266
+ minHeight: "unset",
1267
+ position: "relative", // Positions scroll fuzz.
1268
+ },
1269
+ scroller: ({ theme }) => ({
1270
+ margin: 0,
1271
+ padding: "0 8px",
1272
+ // eslint-disable-next-line sort-keys -- disabling key order for readability
1273
+ [bpUpSm({ theme })]: {
1274
+ padding: 0,
1275
+ },
1276
+ }),
1277
+ },
1507
1278
  };
1508
1279
 
1509
- /**
1510
- * MuiToggleButton Component
1511
- * @param theme - Theme.
1512
- * @returns MuiToggleButton component theme styles.
1513
- */
1514
- export const MuiToggleButton = (
1515
- theme: Theme
1516
- ): Components["MuiToggleButton"] => {
1517
- return {
1518
- styleOverrides: {
1519
- root: {
1520
- ...theme.typography[TEXT_BODY_500],
1521
- backgroundColor: theme.palette.smoke.main,
1522
- border: "none",
1523
- borderRadius: 4,
1524
- color: theme.palette.ink.main,
1525
- flex: 1,
1280
+ const MuiToggleButton: Components<Theme>["MuiToggleButton"] = {
1281
+ styleOverrides: {
1282
+ root: {
1283
+ backgroundColor: PALETTE.SMOKE_MAIN,
1284
+ border: "none",
1285
+ borderRadius: 4,
1286
+ color: PALETTE.INK_MAIN,
1287
+ flex: 1,
1288
+ font: FONT.BODY_500,
1289
+ // eslint-disable-next-line sort-keys -- disabling key order for readability
1290
+ "&:hover": {
1291
+ backgroundColor: PALETTE.SMOKE_LIGHTEST,
1292
+ },
1293
+ // eslint-disable-next-line sort-keys -- disabling key order for readability
1294
+ "&.Mui-selected": {
1295
+ backgroundColor: PALETTE.COMMON_WHITE,
1526
1296
  // eslint-disable-next-line sort-keys -- disabling key order for readability
1527
1297
  "&:hover": {
1528
- backgroundColor: theme.palette.smoke.lightest,
1529
- },
1530
- // eslint-disable-next-line sort-keys -- disabling key order for readability
1531
- "&.Mui-selected": {
1532
1298
  backgroundColor: PALETTE.COMMON_WHITE,
1533
- // eslint-disable-next-line sort-keys -- disabling key order for readability
1534
- "&:hover": {
1535
- backgroundColor: PALETTE.COMMON_WHITE,
1536
- },
1537
1299
  },
1538
- variants: [
1539
- {
1540
- props: { size: TOGGLE_BUTTON_PROPS.SIZE.MEDIUM },
1541
- style: { padding: "8px 16px" },
1542
- },
1543
- ],
1544
1300
  },
1301
+ variants: [
1302
+ {
1303
+ props: { size: TOGGLE_BUTTON_PROPS.SIZE.MEDIUM },
1304
+ style: { padding: "8px 16px" },
1305
+ },
1306
+ ],
1545
1307
  },
1546
- };
1308
+ },
1547
1309
  };
1548
1310
 
1549
- /**
1550
- * MuiToggleButtonGroup Component
1551
- * @param theme - Theme.
1552
- * @returns MuiToggleButtonGroup component theme styles.
1553
- */
1554
- export const MuiToggleButtonGroup = (
1555
- theme: Theme
1556
- ): Components["MuiToggleButtonGroup"] => {
1557
- return {
1558
- styleOverrides: {
1559
- grouped: {
1560
- border: "none !important", // Overrides "grouped" css selector specificity.
1561
- borderRadius: "4px !important", // Overrides "grouped" css selector specificity.
1562
- margin: "0 !important", // Overrides "grouped" css selector specificity.
1563
- },
1564
- root: {
1565
- backgroundColor: theme.palette.smoke.main,
1566
- borderRadius: 6,
1567
- color: theme.palette.ink.main,
1568
- display: "grid",
1569
- gridAutoColumns: "1fr",
1570
- gridAutoFlow: "column",
1571
- padding: 2,
1572
- },
1573
- },
1574
- };
1311
+ const MuiToggleButtonGroup: Components["MuiToggleButtonGroup"] = {
1312
+ styleOverrides: {
1313
+ grouped: {
1314
+ border: "none !important", // Overrides "grouped" css selector specificity.
1315
+ borderRadius: "4px !important", // Overrides "grouped" css selector specificity.
1316
+ margin: "0 !important", // Overrides "grouped" css selector specificity.
1317
+ },
1318
+ root: {
1319
+ backgroundColor: PALETTE.SMOKE_MAIN,
1320
+ borderRadius: 6,
1321
+ color: PALETTE.INK_MAIN,
1322
+ display: "grid",
1323
+ gridAutoColumns: "1fr",
1324
+ gridAutoFlow: "column",
1325
+ padding: 2,
1326
+ },
1327
+ },
1575
1328
  };
1576
1329
 
1577
- /**
1578
- * MuiToolbar Component
1579
- */
1580
- export const MuiToolbar: Components["MuiToolbar"] = {
1330
+ const MuiToolbar: Components<Theme>["MuiToolbar"] = {
1581
1331
  styleOverrides: {
1582
- root: {
1583
- [mobileUp]: {
1332
+ root: ({ theme }) => ({
1333
+ [bpUpXs({ theme })]: {
1584
1334
  paddingLeft: 12,
1585
1335
  paddingRight: 12,
1586
1336
  },
1587
1337
  // eslint-disable-next-line sort-keys -- disabling key order for readability
1588
- [desktopUp]: {
1338
+ [bpUpLg({ theme })]: {
1589
1339
  paddingLeft: 16,
1590
1340
  paddingRight: 16,
1591
1341
  },
1592
- },
1342
+ }),
1593
1343
  },
1594
1344
  };
1595
1345
 
1596
- /**
1597
- * MuiTooltip Component
1598
- * @param theme - Theme.
1599
- * @returns MuiTooltip component theme styles.
1600
- */
1601
- export const MuiTooltip = (theme: Theme): Components["MuiTooltip"] => {
1602
- return {
1603
- defaultProps: {
1604
- enterTouchDelay: 0,
1605
- leaveTouchDelay: 4000,
1606
- placement: "top",
1607
- },
1608
- styleOverrides: {
1609
- arrow: {
1610
- color: theme.palette.ink.main,
1611
- // eslint-disable-next-line sort-keys -- disabling key order for readability
1612
- "&:before": {
1613
- borderRadius: 1,
1614
- },
1615
- },
1616
- tooltip: {
1617
- ...theme.typography[TEXT_BODY_SMALL_400],
1618
- backgroundColor: theme.palette.ink.main,
1619
- boxShadow: SHADOWS["02"],
1620
- boxSizing: "content-box",
1621
- padding: "8px 12px",
1346
+ const MuiTooltip: Components["MuiTooltip"] = {
1347
+ defaultProps: {
1348
+ enterTouchDelay: 0,
1349
+ leaveTouchDelay: 4000,
1350
+ placement: "top",
1351
+ },
1352
+ styleOverrides: {
1353
+ arrow: {
1354
+ color: PALETTE.INK_MAIN,
1355
+ // eslint-disable-next-line sort-keys -- disabling key order for readability
1356
+ "&:before": {
1357
+ borderRadius: 1,
1622
1358
  },
1623
1359
  },
1624
- };
1360
+ tooltip: {
1361
+ backgroundColor: PALETTE.INK_MAIN,
1362
+ boxShadow: SHADOWS["02"],
1363
+ boxSizing: "content-box",
1364
+ font: FONT.BODY_SMALL_400,
1365
+ padding: "8px 12px",
1366
+ },
1367
+ },
1625
1368
  };
1626
1369
 
1627
- /**
1628
- * MuiTypography Component
1629
- */
1630
- export const MuiTypography: Components["MuiTypography"] = {
1370
+ const MuiTypography: Components["MuiTypography"] = {
1631
1371
  defaultProps: {
1632
1372
  variant: "inherit",
1633
1373
  },
@@ -1635,5 +1375,62 @@ export const MuiTypography: Components["MuiTypography"] = {
1635
1375
  gutterBottom: {
1636
1376
  marginBottom: 8,
1637
1377
  },
1378
+ root: {
1379
+ variants: [
1380
+ {
1381
+ props: { variant: TYPOGRAPHY_PROPS.VARIANT.UPPERCASE_500 },
1382
+ style: { textTransform: "uppercase" },
1383
+ },
1384
+ ],
1385
+ },
1638
1386
  },
1639
1387
  };
1388
+
1389
+ export const components: ThemeOptions["components"] = {
1390
+ MuiAccordion,
1391
+ MuiAccordionDetails,
1392
+ MuiAccordionSummary,
1393
+ MuiAlert: C.MuiAlert,
1394
+ MuiAlertTitle: C.MuiAlertTitle,
1395
+ MuiAppBar,
1396
+ MuiBackdrop,
1397
+ MuiBreadcrumbs,
1398
+ MuiButton,
1399
+ MuiButtonBase,
1400
+ MuiButtonGroup: C.MuiButtonGroup,
1401
+ MuiCard,
1402
+ MuiCheckbox,
1403
+ MuiChip,
1404
+ MuiCircularProgress,
1405
+ MuiCssBaseline,
1406
+ MuiDialog,
1407
+ MuiDialogActions,
1408
+ MuiDialogContent,
1409
+ MuiDialogTitle,
1410
+ MuiDivider,
1411
+ MuiDrawer,
1412
+ MuiFormControlLabel,
1413
+ MuiFormGroup,
1414
+ MuiFormHelperText,
1415
+ MuiIconButton,
1416
+ MuiInputBase,
1417
+ MuiLink,
1418
+ MuiListItemButton,
1419
+ MuiListItemText,
1420
+ MuiListSubheader,
1421
+ MuiMenuItem,
1422
+ MuiOutlinedInput,
1423
+ MuiPaper,
1424
+ MuiRadio,
1425
+ MuiSelect,
1426
+ MuiSvgIcon,
1427
+ MuiTab,
1428
+ MuiTableCell: C.MuiTableCell,
1429
+ MuiTableSortLabel,
1430
+ MuiTabs,
1431
+ MuiToggleButton,
1432
+ MuiToggleButtonGroup,
1433
+ MuiToolbar,
1434
+ MuiTooltip,
1435
+ MuiTypography,
1436
+ };