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