@databiosphere/findable-ui 41.1.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 (493) hide show
  1. package/.release-please-manifest.json +1 -1
  2. package/CHANGELOG.md +32 -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/barX/plot.d.ts +1 -1
  77. package/lib/components/Index/components/EntityView/components/views/ChartView/components/Chart/barX/plot.js +3 -4
  78. package/lib/components/Index/components/EntityView/components/views/ChartView/components/Chart/chart.js +22 -5
  79. package/lib/components/Index/components/EntityView/components/views/ChartView/components/Chart/chart.styles.d.ts +5 -0
  80. package/lib/components/Index/components/EntityView/components/views/ChartView/components/Chart/chart.styles.js +9 -4
  81. package/lib/components/Index/components/EntityView/components/views/ChartView/components/Chart/hooks/UseBarCount/constants.d.ts +1 -0
  82. package/lib/components/Index/components/EntityView/components/views/ChartView/components/Chart/hooks/UseBarCount/constants.js +1 -0
  83. package/lib/components/Index/components/EntityView/components/views/ChartView/components/Chart/hooks/UseBarCount/hook.d.ts +3 -0
  84. package/lib/components/Index/components/EntityView/components/views/ChartView/components/Chart/hooks/UseBarCount/hook.js +9 -0
  85. package/lib/components/Index/components/EntityView/components/views/ChartView/components/Chart/hooks/UseBarCount/types.d.ts +4 -0
  86. package/lib/components/Index/components/EntityView/components/views/ChartView/components/Chart/hooks/UseBarCount/types.js +1 -0
  87. package/lib/components/Index/components/EntityView/components/views/ChartView/components/Chart/hooks/UseBarCount/utils.d.ts +20 -0
  88. package/lib/components/Index/components/EntityView/components/views/ChartView/components/Chart/hooks/UseBarCount/utils.js +28 -0
  89. package/lib/components/Index/components/EntityView/components/views/ChartView/components/Chart/hooks/UsePlotOptions/hook.d.ts +3 -0
  90. package/lib/components/Index/components/EntityView/components/views/ChartView/components/Chart/hooks/UsePlotOptions/hook.js +15 -0
  91. package/lib/components/Index/components/EntityView/components/views/ChartView/components/Chart/hooks/UsePlotOptions/types.d.ts +4 -0
  92. package/lib/components/Index/components/EntityView/components/views/ChartView/components/Chart/hooks/UsePlotOptions/types.js +1 -0
  93. package/lib/components/Index/components/EntityView/components/views/ChartView/components/Chart/utils.d.ts +15 -0
  94. package/lib/components/Index/components/EntityView/components/views/ChartView/components/Chart/utils.js +25 -0
  95. package/lib/components/Index/index.styles.d.ts +4 -4
  96. package/lib/components/Index/index.styles.js +2 -2
  97. package/lib/components/Layout/components/BackPage/backPageView.styles.js +11 -10
  98. package/lib/components/Layout/components/BackPage/components/BackPageHero/backPageHero.styles.js +3 -3
  99. package/lib/components/Layout/components/BackPage/components/BackPageHero/components/Actions/actions.styles.js +2 -2
  100. package/lib/components/Layout/components/BackPage/components/BackPageHero/components/SubTitle/subTitle.js +2 -2
  101. package/lib/components/Layout/components/ContentLayout/contentLayout.styles.js +18 -19
  102. package/lib/components/Layout/components/Footer/components/VersionInfo/components/Tooltip/components/Title/title.js +2 -2
  103. package/lib/components/Layout/components/Footer/components/VersionInfo/versionInfo.styles.d.ts +1 -1
  104. package/lib/components/Layout/components/Footer/components/VersionInfo/versionInfo.styles.js +2 -2
  105. package/lib/components/Layout/components/Footer/footer.styles.js +8 -8
  106. package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/AuthenticationMenu/authenticationMenu.styles.d.ts +4 -4
  107. package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/AuthenticationMenu/authenticationMenu.styles.js +2 -1
  108. package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/Button/button.styles.d.ts +1 -1
  109. package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Menu/components/Content/components/Navigation/navigation.styles.js +3 -3
  110. package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Search/components/Button/button.styles.d.ts +1 -1
  111. package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Search/components/SearchBar/searchBar.styles.js +4 -4
  112. package/lib/components/Layout/components/Header/components/Content/components/Navigation/components/NavigationDrawer/navigationDrawer.styles.js +6 -5
  113. package/lib/components/Layout/components/Header/components/Content/components/Navigation/components/NavigationMenu/navigationMenu.styles.d.ts +1 -1
  114. package/lib/components/Layout/components/Header/components/Content/components/Navigation/components/NavigationMenu/navigationMenu.styles.js +7 -7
  115. package/lib/components/Layout/components/Header/components/Content/components/Navigation/components/NavigationMenuItems/navigationMenuItems.js +5 -5
  116. package/lib/components/Layout/components/Header/components/Content/components/Navigation/navigation.styles.js +2 -2
  117. package/lib/components/Layout/components/Header/components/Content/components/Slogan/slogan.js +2 -2
  118. package/lib/components/Layout/components/Header/components/Content/components/Slogan/slogan.styles.d.ts +1 -1
  119. package/lib/components/Layout/components/Header/components/Content/components/Slogan/slogan.styles.js +4 -4
  120. package/lib/components/Layout/components/Header/header.styles.js +2 -2
  121. package/lib/components/Layout/components/Nav/components/NavBarHero/navBarHero.styles.js +2 -1
  122. package/lib/components/Layout/components/Nav/nav.styles.d.ts +1 -1
  123. package/lib/components/Layout/components/Nav/nav.styles.js +8 -6
  124. package/lib/components/Layout/components/Outline/components/ContentsTab/contentsTab.styles.d.ts +1 -1
  125. package/lib/components/Layout/components/Outline/components/ContentsTab/contentsTab.styles.js +5 -4
  126. package/lib/components/Layout/components/Outline/outline.styles.d.ts +2 -2
  127. package/lib/components/Layout/components/Outline/outline.styles.js +8 -8
  128. package/lib/components/Layout/components/Sidebar/components/SidebarButton/sidebarButton.styles.js +6 -6
  129. package/lib/components/Layout/components/Sidebar/components/SidebarDrawer/sidebarDrawer.styles.js +5 -5
  130. package/lib/components/Layout/components/Sidebar/components/SidebarLabel/sidebarLabel.js +2 -2
  131. package/lib/components/Layout/components/Sidebar/components/SidebarPositioner/sidebarPositioner.styles.js +2 -2
  132. package/lib/components/Layout/components/Sidebar/components/SidebarTools/sidebarTools.styles.js +2 -2
  133. package/lib/components/Layout/components/Sidebar/sidebar.js +4 -5
  134. package/lib/components/Layout/components/Sidebar/sidebar.styles.js +2 -2
  135. package/lib/components/Links/components/Link/link.js +2 -1
  136. package/lib/components/Loading/loading.js +2 -1
  137. package/lib/components/Loading/loading.styles.js +2 -2
  138. package/lib/components/Login/components/Button/button.styles.d.ts +1 -1
  139. package/lib/components/Login/components/Section/components/Consent/consent.js +2 -2
  140. package/lib/components/Login/components/Section/components/Consent/consent.styles.d.ts +1 -1
  141. package/lib/components/Login/components/Section/components/Consent/consent.styles.js +1 -1
  142. package/lib/components/Login/components/Section/components/Warning/warning.js +1 -1
  143. package/lib/components/Login/login.js +6 -5
  144. package/lib/components/Login/login.styles.d.ts +2 -12
  145. package/lib/components/Login/login.styles.js +4 -13
  146. package/lib/components/MarkdownRenderer/components/Table/table.styles.js +2 -2
  147. package/lib/components/MarkdownRenderer/markdownRenderer.js +1 -1
  148. package/lib/components/NoResults/noResults.js +1 -1
  149. package/lib/components/NoResults/noResults.styles.js +2 -2
  150. package/lib/components/Project/components/Contacts/contacts.js +2 -1
  151. package/lib/components/Project/components/Details/details.js +3 -2
  152. package/lib/components/Project/components/SupplementaryLinks/supplementaryLinks.styles.js +2 -1
  153. package/lib/components/Stepper/components/Step/components/StepContent/stepContent.styles.js +2 -2
  154. package/lib/components/Stepper/components/Step/components/StepIcon/components/CompletedIcon/completedIcon.styles.d.ts +1 -1
  155. package/lib/components/Stepper/components/Step/components/StepIcon/components/CompletedIcon/completedIcon.styles.js +3 -3
  156. package/lib/components/Stepper/components/Step/components/StepIcon/stepIcon.styles.js +5 -5
  157. package/lib/components/Stepper/components/Step/components/StepLabel/components/Label/constants.js +1 -1
  158. package/lib/components/Stepper/components/Step/components/StepLabel/components/Label/label.styles.d.ts +1 -1
  159. package/lib/components/Stepper/components/Step/components/StepLabel/components/Optional/constants.js +1 -1
  160. package/lib/components/Stepper/components/Step/step.styles.d.ts +1 -1
  161. package/lib/components/Stepper/components/Step/step.styles.js +5 -5
  162. package/lib/components/Support/components/SupportRequest/components/Dialog/dialog.styles.d.ts +1 -1
  163. package/lib/components/Support/components/SupportRequest/components/Dialog/dialog.styles.js +5 -6
  164. package/lib/components/Support/components/SupportRequest/components/SupportRequestForm/supportRequestForm.js +2 -2
  165. package/lib/components/Support/components/SupportRequest/components/SupportRequestForm/supportRequestForm.styles.js +2 -2
  166. package/lib/components/Support/components/SupportRequest/components/SupportRequestSubmitted/supportRequestSubmitted.js +3 -3
  167. package/lib/components/Support/components/ViewSupport/viewSupport.styles.js +6 -6
  168. package/lib/components/Table/common/gridTable.styles.js +1 -2
  169. package/lib/components/Table/components/DownloadEntityResults/downloadEntityResults.styles.d.ts +1 -1
  170. package/lib/components/Table/components/DownloadEntityResults/downloadEntityResults.styles.js +2 -2
  171. package/lib/components/Table/components/PaginationSummary/paginationSummary.js +5 -4
  172. package/lib/components/Table/components/TableCell/components/BasicCell/basicCell.js +3 -2
  173. package/lib/components/Table/components/TableCell/components/CodeCell/codeCell.styles.d.ts +1 -1
  174. package/lib/components/Table/components/TableCell/components/CollapsableCell/collapsableCell.js +2 -2
  175. package/lib/components/Table/components/TableCell/components/CollapsableCell/collapsableCell.styles.js +5 -5
  176. package/lib/components/Table/components/TableCell/components/LinkCell/stories/args.js +1 -1
  177. package/lib/components/Table/components/TableCell/components/NTagCell/nTagCell.js +2 -2
  178. package/lib/components/Table/components/TableFeatures/ColumnFilter/columnFilter.js +1 -1
  179. package/lib/components/Table/components/TableFeatures/ColumnFilter/columnFilter.styles.d.ts +1 -1
  180. package/lib/components/Table/components/TableFeatures/ColumnFilter/components/ColumnFilterTag/columnFilterTag.styles.d.ts +1 -1
  181. package/lib/components/Table/components/TablePagination/tablePagination.js +1 -1
  182. package/lib/components/Table/components/TablePagination/tablePagination.styles.d.ts +1 -1
  183. package/lib/components/Table/components/TableRow/tableRow.styles.js +2 -2
  184. package/lib/components/Table/components/TableToolbar/components/RowPreview/components/RowDrawer/rowDrawer.js +2 -2
  185. package/lib/components/Table/components/TableToolbar/components/RowPreview/components/RowDrawer/rowDrawer.styles.js +5 -5
  186. package/lib/components/Table/components/TableToolbar/components/RowPreview/components/Section/components/RowDetail/rowDetail.js +2 -2
  187. package/lib/components/Table/components/TableToolbar/components/RowPreview/components/Section/components/RowDetail/rowDetail.styles.js +5 -5
  188. package/lib/components/Table/components/TableToolbar/components/RowPreview/components/Section/section.js +2 -2
  189. package/lib/components/Table/components/TableToolbar/components/RowPreview/components/Section/section.styles.js +1 -1
  190. package/lib/components/Table/components/TableToolbar/components/RowSelection/rowSelection.js +2 -2
  191. package/lib/components/Table/table.js +2 -3
  192. package/lib/components/Table/table.styles.js +2 -2
  193. package/lib/components/common/Accordion/accordion.js +2 -2
  194. package/lib/components/common/Alert/alert.styles.js +3 -3
  195. package/lib/components/common/Banner/banner.styles.js +4 -4
  196. package/lib/components/common/Banner/components/CookieBanner/cookieBanner.styles.js +4 -4
  197. package/lib/components/common/Button/components/DropdownButton/dropdownButton.styles.d.ts +1 -1
  198. package/lib/components/common/Button/components/HelpIconButton/helpIconButton.styles.js +2 -1
  199. package/lib/components/common/Button/components/NavigationButton/navigationButton.styles.js +5 -4
  200. package/lib/components/common/Card/card.styles.js +2 -2
  201. package/lib/components/common/Card/components/CardActions/cardActions.styles.js +2 -2
  202. package/lib/components/common/Card/components/CardSecondaryText/cardSecondaryText.d.ts +2 -5
  203. package/lib/components/common/Card/components/CardSecondaryText/cardSecondaryText.js +3 -3
  204. package/lib/components/common/Card/components/CardSecondaryTitle/cardSecondaryTitle.d.ts +2 -5
  205. package/lib/components/common/Card/components/CardSecondaryTitle/cardSecondaryTitle.js +4 -4
  206. package/lib/components/common/Card/components/CardSecondaryTitle/cardSecondaryTitle.styles.d.ts +2 -2
  207. package/lib/components/common/Card/components/CardSecondaryTitle/cardSecondaryTitle.styles.js +1 -1
  208. package/lib/components/common/Card/components/CardText/cardText.d.ts +2 -5
  209. package/lib/components/common/Card/components/CardText/cardText.js +3 -3
  210. package/lib/components/common/Card/components/CardTitle/cardTitle.d.ts +2 -5
  211. package/lib/components/common/Card/components/CardTitle/cardTitle.js +3 -3
  212. package/lib/components/common/Code/code.styles.js +10 -9
  213. package/lib/components/common/Dot/dot.styles.js +2 -1
  214. package/lib/components/common/Form/components/Input/input.js +2 -2
  215. package/lib/components/common/Form/components/Input/input.styles.d.ts +1 -1
  216. package/lib/components/common/Form/components/Input/input.styles.js +4 -4
  217. package/lib/components/common/Form/components/Select/select.js +2 -2
  218. package/lib/components/common/Form/components/Select/select.styles.d.ts +1 -1
  219. package/lib/components/common/Form/components/Select/select.styles.js +3 -3
  220. package/lib/components/common/Form/components/UploadFile/uploadFile.js +3 -3
  221. package/lib/components/common/Form/components/UploadFile/uploadFile.styles.d.ts +1 -1
  222. package/lib/components/common/Form/components/UploadFile/uploadFile.styles.js +10 -10
  223. package/lib/components/common/IconBadge/iconBadge.styles.js +13 -13
  224. package/lib/components/common/IconButton/iconButton.styles.d.ts +1 -1
  225. package/lib/components/common/IconButton/iconButton.styles.js +3 -3
  226. package/lib/components/common/Input/input.js +2 -2
  227. package/lib/components/common/Input/input.styles.d.ts +1 -1
  228. package/lib/components/common/Input/input.styles.js +3 -2
  229. package/lib/components/common/KeyValuePairs/components/KeyElType/keyElType.js +1 -1
  230. package/lib/components/common/KeyValuePairs/components/ValueElType/valueElType.js +1 -1
  231. package/lib/components/common/LoginDialog/constants.js +2 -2
  232. package/lib/components/common/MDXMarkdown/components/Section/mdxSection.styles.js +4 -4
  233. package/lib/components/common/Paper/components/FlatPaper/flatPaper.styles.d.ts +1 -1
  234. package/lib/components/common/Paper/components/FluidPaper/fluidPaper.styles.d.ts +1 -1
  235. package/lib/components/common/Paper/components/FluidPaper/fluidPaper.styles.js +2 -2
  236. package/lib/components/common/Paper/components/RoundedPaper/roundedPaper.styles.d.ts +1 -1
  237. package/lib/components/common/Paper/paper.styles.js +24 -24
  238. package/lib/components/common/Progress/components/CircularProgress/components/CircularProgressTrack/circularProgressTrack.styles.js +6 -6
  239. package/lib/components/common/Section/components/CollapsableSection/collapsableSection.js +8 -8
  240. package/lib/components/common/Section/components/CollapsableSection/collapsableSection.styles.d.ts +1 -1
  241. package/lib/components/common/Section/components/CollapsableSection/collapsableSection.styles.js +6 -5
  242. package/lib/components/common/Section/components/SectionTitle/sectionTitle.js +2 -1
  243. package/lib/components/common/Section/section.styles.d.ts +1 -1
  244. package/lib/components/common/Section/section.styles.js +4 -4
  245. package/lib/components/common/Socials/socials.styles.js +3 -3
  246. package/lib/components/common/StatusIcon/statusIcon.styles.js +13 -12
  247. package/lib/components/common/Tabs/tabs.styles.d.ts +1 -1
  248. package/lib/components/common/Tag/tag.d.ts +3 -6
  249. package/lib/components/common/Tag/tag.js +3 -2
  250. package/lib/components/common/Tag/tag.stories.d.ts +1 -1
  251. package/lib/components/common/Tag/tag.styles.d.ts +10 -2
  252. package/lib/components/common/Tag/tag.styles.js +4 -3
  253. package/lib/components/common/Title/title.js +1 -1
  254. package/lib/components/common/Typography/TypographyWordBreak/TypographyWordBreak.js +2 -1
  255. package/lib/hooks/useCategoryFilter.d.ts +8 -1
  256. package/lib/hooks/useCategoryFilter.js +1 -1
  257. package/lib/styles/common/constants/app.d.ts +3 -0
  258. package/lib/styles/common/constants/app.js +3 -0
  259. package/lib/styles/common/constants/colorMixes.d.ts +1 -0
  260. package/lib/styles/common/constants/colorMixes.js +1 -0
  261. package/lib/styles/common/constants/font.d.ts +18 -0
  262. package/lib/styles/common/constants/font.js +18 -0
  263. package/lib/styles/common/constants/palette.d.ts +45 -45
  264. package/lib/styles/common/constants/palette.js +45 -45
  265. package/lib/styles/common/constants/shadows.js +3 -3
  266. package/lib/styles/common/mixins/breakpoints.d.ts +9 -7
  267. package/lib/styles/common/mixins/breakpoints.js +8 -7
  268. package/lib/styles/common/mui/typography.d.ts +32 -3
  269. package/lib/styles/common/mui/typography.js +22 -10
  270. package/lib/theme/common/breakpoints.d.ts +6 -27
  271. package/lib/theme/common/breakpoints.js +14 -36
  272. package/lib/theme/common/components.d.ts +2 -226
  273. package/lib/theme/common/components.js +1045 -1223
  274. package/lib/theme/common/fontStyles.d.ts +8 -0
  275. package/lib/theme/common/fontStyles.js +12 -0
  276. package/lib/theme/common/palette.d.ts +2 -42
  277. package/lib/theme/common/palette.js +22 -73
  278. package/lib/theme/common/typography.d.ts +2 -70
  279. package/lib/theme/common/typography.js +78 -126
  280. package/lib/theme/components/muiAlert.d.ts +2 -2
  281. package/lib/theme/components/muiAlert.js +95 -96
  282. package/lib/theme/components/muiAlertTitle.js +2 -2
  283. package/lib/theme/components/muiTableCell.d.ts +2 -2
  284. package/lib/theme/components/muiTableCell.js +43 -46
  285. package/lib/theme/theme.d.ts +0 -7
  286. package/lib/theme/theme.js +22 -100
  287. package/lib/theme/types.d.ts +4 -0
  288. package/lib/theme/types.js +1 -0
  289. package/package.json +1 -1
  290. package/src/components/DataDictionary/components/Description/description.styles.ts +5 -8
  291. package/src/components/DataDictionary/components/Entity/entity.styles.ts +2 -2
  292. package/src/components/DataDictionary/components/Entity/entity.tsx +2 -2
  293. package/src/components/DataDictionary/components/Layout/components/FiltersLayout/filtersLayout.styles.ts +2 -2
  294. package/src/components/DataDictionary/components/Layout/components/TitleLayout/titleLayout.styles.ts +2 -2
  295. package/src/components/DataDictionary/components/Outline/outline.styles.ts +4 -8
  296. package/src/components/DataDictionary/components/Tooltip/components/Title/constants.ts +1 -6
  297. package/src/components/DataDictionary/components/Tooltip/components/Title/title.tsx +8 -4
  298. package/src/components/DataDictionary/components/Tooltip/constants.ts +8 -7
  299. package/src/components/DataDictionary/dataDictionary.styles.ts +2 -5
  300. package/src/components/Detail/components/Table/table.tsx +2 -3
  301. package/src/components/Error/error.styles.ts +4 -4
  302. package/src/components/Error/error.tsx +10 -3
  303. package/src/components/Export/components/ExportForm/exportForm.styles.ts +12 -12
  304. package/src/components/Export/components/ExportMethod/exportMethod.styles.ts +0 -7
  305. package/src/components/Export/components/ExportMethod/exportMethod.tsx +14 -3
  306. package/src/components/Export/components/ExportSummary/exportSummary.styles.ts +6 -5
  307. package/src/components/Export/components/ExportToTerra/components/TerraSetUpForm/components/FormStep/formStep.styles.ts +1 -1
  308. package/src/components/Export/components/ExportToTerra/components/TerraSetUpForm/components/FormStep/formStep.tsx +9 -8
  309. package/src/components/Export/components/ExportToTerra/components/TerraSetUpForm/terraSetUpForm.styles.ts +10 -15
  310. package/src/components/Export/components/ExportToTerra/components/TerraSetUpForm/terraSetUpForm.tsx +5 -2
  311. package/src/components/Export/components/ManifestDownload/components/ManifestDownloadEntity/manifestDownloadEntity.styles.ts +7 -7
  312. package/src/components/Export/export.styles.ts +7 -7
  313. package/src/components/Filter/components/FilterLabel/filterLabel.styles.ts +2 -3
  314. package/src/components/Filter/components/FilterMenuSearch/filterMenuSearch.styles.ts +2 -2
  315. package/src/components/Filter/components/FilterNoResultsFound/filterNoResultsFound.tsx +4 -3
  316. package/src/components/Filter/components/FilterRange/filterRange.styles.ts +2 -2
  317. package/src/components/Filter/components/FilterTag/filterTag.styles.ts +2 -1
  318. package/src/components/Filter/components/Filters/filters.styles.ts +4 -4
  319. package/src/components/Filter/components/Filters/filters.tsx +1 -1
  320. package/src/components/Filter/components/HighlightedLabel/highlightedLabel.styles.ts +2 -1
  321. package/src/components/Filter/components/SearchAllFilters/components/AutocompletePopper/autocompletePopper.styles.ts +4 -4
  322. package/src/components/Filter/components/SearchAllFilters/components/VariableSizeList/VariableSizeList.tsx +7 -11
  323. package/src/components/Filter/components/SearchAllFilters/components/VariableSizeListItem/variableSizeListItem.tsx +3 -3
  324. package/src/components/Filter/components/SearchAllFilters/searchAllFilters.styles.ts +2 -2
  325. package/src/components/Filter/components/SearchAllFilters/searchAllFilters.tsx +7 -8
  326. package/src/components/Filter/components/SearchAllFiltersSearch/components/SearchCloseButton/searchCloseButton.tsx +3 -7
  327. package/src/components/Filter/components/SearchAllFiltersSearch/searchAllFiltersSearch.styles.ts +3 -3
  328. package/src/components/Filter/components/VariableSizeListItem/variableSizeListItem.tsx +3 -3
  329. package/src/components/Filter/components/controls/Controls/controls.tsx +1 -1
  330. package/src/components/Filter/components/surfaces/drawer/components/ButtonBase/buttonBase.styles.ts +2 -2
  331. package/src/components/Filter/components/views/select/components/ListItemText/components/Count/count.tsx +1 -1
  332. package/src/components/Filter/components/views/select/components/ListItemText/components/Term/term.tsx +1 -1
  333. package/src/components/Index/components/EntityView/components/controls/ExportButton/exportButton.styles.ts +2 -2
  334. package/src/components/Index/components/EntityView/components/controls/FilterButton/filterButton.styles.ts +2 -2
  335. package/src/components/Index/components/EntityView/components/layout/Summary/summary.styles.ts +2 -1
  336. package/src/components/Index/components/EntityView/components/layout/Summary/summary.tsx +2 -2
  337. package/src/components/Index/components/EntityView/components/slots/EntityViewSlot/entityViewSlot.styles.ts +2 -2
  338. package/src/components/Index/components/EntityView/components/views/ChartView/chartView.tsx +1 -1
  339. package/src/components/Index/components/EntityView/components/views/ChartView/components/Chart/barX/plot.ts +2 -3
  340. package/src/components/Index/components/EntityView/components/views/ChartView/components/Chart/chart.styles.ts +10 -4
  341. package/src/components/Index/components/EntityView/components/views/ChartView/components/Chart/chart.tsx +30 -7
  342. package/src/components/Index/components/EntityView/components/views/ChartView/components/Chart/hooks/UseBarCount/constants.ts +1 -0
  343. package/src/components/Index/components/EntityView/components/views/ChartView/components/Chart/hooks/UseBarCount/hook.ts +18 -0
  344. package/src/components/Index/components/EntityView/components/views/ChartView/components/Chart/hooks/UseBarCount/types.ts +4 -0
  345. package/src/components/Index/components/EntityView/components/views/ChartView/components/Chart/hooks/UseBarCount/utils.ts +38 -0
  346. package/src/components/Index/components/EntityView/components/views/ChartView/components/Chart/hooks/UsePlotOptions/hook.ts +32 -0
  347. package/src/components/Index/components/EntityView/components/views/ChartView/components/Chart/hooks/UsePlotOptions/types.ts +5 -0
  348. package/src/components/Index/components/EntityView/components/views/ChartView/components/Chart/utils.ts +35 -0
  349. package/src/components/Index/index.styles.ts +2 -2
  350. package/src/components/Layout/components/BackPage/backPageView.styles.ts +11 -10
  351. package/src/components/Layout/components/BackPage/components/BackPageHero/backPageHero.styles.ts +3 -3
  352. package/src/components/Layout/components/BackPage/components/BackPageHero/components/Actions/actions.styles.ts +2 -2
  353. package/src/components/Layout/components/BackPage/components/BackPageHero/components/SubTitle/subTitle.tsx +6 -2
  354. package/src/components/Layout/components/ContentLayout/contentLayout.styles.ts +20 -36
  355. package/src/components/Layout/components/Footer/components/VersionInfo/components/Tooltip/components/Title/title.tsx +5 -2
  356. package/src/components/Layout/components/Footer/components/VersionInfo/versionInfo.styles.ts +2 -2
  357. package/src/components/Layout/components/Footer/footer.styles.ts +8 -8
  358. package/src/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/AuthenticationMenu/authenticationMenu.styles.ts +2 -1
  359. package/src/components/Layout/components/Header/components/Content/components/Actions/components/Menu/components/Content/components/Navigation/navigation.styles.ts +3 -6
  360. package/src/components/Layout/components/Header/components/Content/components/Actions/components/Search/components/SearchBar/searchBar.styles.ts +4 -7
  361. package/src/components/Layout/components/Header/components/Content/components/Navigation/components/NavigationDrawer/navigationDrawer.styles.ts +6 -8
  362. package/src/components/Layout/components/Header/components/Content/components/Navigation/components/NavigationMenu/navigationMenu.styles.ts +8 -12
  363. package/src/components/Layout/components/Header/components/Content/components/Navigation/components/NavigationMenuItems/navigationMenuItems.tsx +5 -10
  364. package/src/components/Layout/components/Header/components/Content/components/Navigation/navigation.styles.ts +2 -2
  365. package/src/components/Layout/components/Header/components/Content/components/Slogan/slogan.styles.ts +4 -4
  366. package/src/components/Layout/components/Header/components/Content/components/Slogan/slogan.tsx +5 -2
  367. package/src/components/Layout/components/Header/header.styles.ts +2 -2
  368. package/src/components/Layout/components/Nav/components/NavBarHero/navBarHero.styles.ts +2 -1
  369. package/src/components/Layout/components/Nav/nav.styles.ts +8 -10
  370. package/src/components/Layout/components/Outline/components/ContentsTab/contentsTab.styles.ts +5 -4
  371. package/src/components/Layout/components/Outline/outline.styles.ts +10 -13
  372. package/src/components/Layout/components/Sidebar/components/SidebarButton/sidebarButton.styles.ts +7 -10
  373. package/src/components/Layout/components/Sidebar/components/SidebarDrawer/sidebarDrawer.styles.ts +5 -8
  374. package/src/components/Layout/components/Sidebar/components/SidebarLabel/sidebarLabel.tsx +5 -2
  375. package/src/components/Layout/components/Sidebar/components/SidebarPositioner/sidebarPositioner.styles.ts +2 -2
  376. package/src/components/Layout/components/Sidebar/components/SidebarTools/sidebarTools.styles.ts +2 -2
  377. package/src/components/Layout/components/Sidebar/sidebar.styles.ts +2 -2
  378. package/src/components/Layout/components/Sidebar/sidebar.tsx +4 -8
  379. package/src/components/Links/components/Link/link.tsx +2 -1
  380. package/src/components/Loading/loading.styles.ts +2 -2
  381. package/src/components/Loading/loading.tsx +6 -1
  382. package/src/components/Login/components/Section/components/Consent/consent.styles.ts +1 -1
  383. package/src/components/Login/components/Section/components/Consent/consent.tsx +4 -2
  384. package/src/components/Login/components/Section/components/Warning/warning.tsx +1 -1
  385. package/src/components/Login/login.styles.ts +5 -19
  386. package/src/components/Login/login.tsx +30 -7
  387. package/src/components/MarkdownRenderer/components/Table/table.styles.ts +2 -2
  388. package/src/components/MarkdownRenderer/markdownRenderer.tsx +1 -1
  389. package/src/components/NoResults/noResults.styles.ts +2 -2
  390. package/src/components/NoResults/noResults.tsx +1 -1
  391. package/src/components/Project/components/Contacts/contacts.tsx +7 -1
  392. package/src/components/Project/components/Details/details.tsx +7 -2
  393. package/src/components/Project/components/SupplementaryLinks/supplementaryLinks.styles.ts +2 -1
  394. package/src/components/Stepper/components/Step/components/StepContent/stepContent.styles.ts +2 -2
  395. package/src/components/Stepper/components/Step/components/StepIcon/components/CompletedIcon/completedIcon.styles.ts +3 -6
  396. package/src/components/Stepper/components/Step/components/StepIcon/stepIcon.styles.ts +5 -9
  397. package/src/components/Stepper/components/Step/components/StepLabel/components/Label/constants.ts +1 -1
  398. package/src/components/Stepper/components/Step/components/StepLabel/components/Optional/constants.ts +1 -1
  399. package/src/components/Stepper/components/Step/step.styles.ts +6 -6
  400. package/src/components/Support/components/SupportRequest/components/Dialog/dialog.styles.ts +5 -6
  401. package/src/components/Support/components/SupportRequest/components/SupportRequestForm/supportRequestForm.styles.ts +2 -2
  402. package/src/components/Support/components/SupportRequest/components/SupportRequestForm/supportRequestForm.tsx +5 -2
  403. package/src/components/Support/components/SupportRequest/components/SupportRequestSubmitted/supportRequestSubmitted.tsx +8 -6
  404. package/src/components/Support/components/ViewSupport/viewSupport.styles.ts +6 -10
  405. package/src/components/Table/common/gridTable.styles.ts +1 -2
  406. package/src/components/Table/components/DownloadEntityResults/downloadEntityResults.styles.ts +2 -2
  407. package/src/components/Table/components/PaginationSummary/paginationSummary.tsx +9 -4
  408. package/src/components/Table/components/TableCell/components/BasicCell/basicCell.tsx +10 -2
  409. package/src/components/Table/components/TableCell/components/CollapsableCell/collapsableCell.styles.ts +5 -5
  410. package/src/components/Table/components/TableCell/components/CollapsableCell/collapsableCell.tsx +3 -3
  411. package/src/components/Table/components/TableCell/components/LinkCell/stories/args.ts +1 -1
  412. package/src/components/Table/components/TableCell/components/NTagCell/nTagCell.tsx +6 -3
  413. package/src/components/Table/components/TableFeatures/ColumnFilter/columnFilter.tsx +1 -1
  414. package/src/components/Table/components/TablePagination/tablePagination.tsx +1 -1
  415. package/src/components/Table/components/TableRow/tableRow.styles.ts +2 -2
  416. package/src/components/Table/components/TableToolbar/components/RowPreview/components/RowDrawer/rowDrawer.styles.ts +5 -5
  417. package/src/components/Table/components/TableToolbar/components/RowPreview/components/RowDrawer/rowDrawer.tsx +6 -2
  418. package/src/components/Table/components/TableToolbar/components/RowPreview/components/Section/components/RowDetail/rowDetail.styles.ts +6 -6
  419. package/src/components/Table/components/TableToolbar/components/RowPreview/components/Section/components/RowDetail/rowDetail.tsx +3 -3
  420. package/src/components/Table/components/TableToolbar/components/RowPreview/components/Section/section.styles.ts +1 -1
  421. package/src/components/Table/components/TableToolbar/components/RowPreview/components/Section/section.tsx +5 -2
  422. package/src/components/Table/components/TableToolbar/components/RowSelection/rowSelection.tsx +2 -2
  423. package/src/components/Table/table.styles.ts +2 -2
  424. package/src/components/Table/table.tsx +2 -3
  425. package/src/components/common/Accordion/accordion.tsx +4 -2
  426. package/src/components/common/Alert/alert.styles.ts +3 -6
  427. package/src/components/common/Banner/banner.styles.ts +4 -4
  428. package/src/components/common/Banner/components/CookieBanner/cookieBanner.styles.ts +4 -4
  429. package/src/components/common/Button/components/HelpIconButton/helpIconButton.styles.ts +2 -1
  430. package/src/components/common/Button/components/NavigationButton/navigationButton.styles.ts +5 -4
  431. package/src/components/common/Card/card.styles.ts +2 -2
  432. package/src/components/common/Card/components/CardActions/cardActions.styles.ts +2 -2
  433. package/src/components/common/Card/components/CardSecondaryText/cardSecondaryText.tsx +7 -16
  434. package/src/components/common/Card/components/CardSecondaryTitle/cardSecondaryTitle.styles.ts +1 -1
  435. package/src/components/common/Card/components/CardSecondaryTitle/cardSecondaryTitle.tsx +9 -17
  436. package/src/components/common/Card/components/CardText/cardText.tsx +8 -14
  437. package/src/components/common/Card/components/CardTitle/cardTitle.tsx +9 -14
  438. package/src/components/common/Code/code.styles.ts +11 -10
  439. package/src/components/common/Dot/dot.styles.ts +2 -1
  440. package/src/components/common/Form/components/Input/input.styles.ts +4 -4
  441. package/src/components/common/Form/components/Input/input.tsx +6 -2
  442. package/src/components/common/Form/components/Select/select.styles.ts +3 -3
  443. package/src/components/common/Form/components/Select/select.tsx +6 -2
  444. package/src/components/common/Form/components/UploadFile/uploadFile.styles.ts +10 -17
  445. package/src/components/common/Form/components/UploadFile/uploadFile.tsx +7 -3
  446. package/src/components/common/IconBadge/iconBadge.styles.ts +13 -22
  447. package/src/components/common/IconButton/iconButton.styles.ts +3 -3
  448. package/src/components/common/Input/input.styles.ts +3 -2
  449. package/src/components/common/Input/input.tsx +6 -2
  450. package/src/components/common/KeyValuePairs/components/KeyElType/keyElType.tsx +1 -1
  451. package/src/components/common/KeyValuePairs/components/ValueElType/valueElType.tsx +1 -1
  452. package/src/components/common/LoginDialog/constants.ts +2 -2
  453. package/src/components/common/MDXMarkdown/components/Section/mdxSection.styles.ts +4 -8
  454. package/src/components/common/Paper/components/FluidPaper/fluidPaper.styles.ts +2 -2
  455. package/src/components/common/Paper/paper.styles.ts +24 -24
  456. package/src/components/common/Progress/components/CircularProgress/components/CircularProgressTrack/circularProgressTrack.styles.ts +6 -12
  457. package/src/components/common/Section/components/CollapsableSection/collapsableSection.styles.ts +6 -5
  458. package/src/components/common/Section/components/CollapsableSection/collapsableSection.tsx +11 -8
  459. package/src/components/common/Section/components/SectionTitle/sectionTitle.tsx +3 -2
  460. package/src/components/common/Section/section.styles.ts +5 -5
  461. package/src/components/common/Socials/socials.styles.ts +3 -3
  462. package/src/components/common/StatusIcon/statusIcon.styles.ts +13 -12
  463. package/src/components/common/Tag/tag.styles.ts +4 -3
  464. package/src/components/common/Tag/tag.tsx +14 -11
  465. package/src/components/common/Title/title.tsx +1 -1
  466. package/src/components/common/Typography/TypographyWordBreak/TypographyWordBreak.tsx +2 -1
  467. package/src/hooks/useCategoryFilter.ts +1 -1
  468. package/src/styles/common/constants/app.ts +3 -0
  469. package/src/styles/common/constants/colorMixes.ts +1 -0
  470. package/src/styles/common/constants/font.ts +18 -0
  471. package/src/styles/common/constants/palette.ts +45 -45
  472. package/src/styles/common/constants/shadows.ts +3 -3
  473. package/src/styles/common/mixins/breakpoints.ts +19 -14
  474. package/src/styles/common/mui/typography.ts +26 -14
  475. package/src/theme/common/breakpoints.ts +16 -38
  476. package/src/theme/common/components.ts +1046 -1249
  477. package/src/theme/common/fontStyles.ts +17 -0
  478. package/src/theme/common/palette.ts +30 -75
  479. package/src/theme/common/typography.ts +85 -147
  480. package/src/theme/components/muiAlert.ts +96 -97
  481. package/src/theme/components/muiAlertTitle.ts +2 -2
  482. package/src/theme/components/muiTableCell.ts +44 -47
  483. package/src/theme/theme.ts +25 -107
  484. package/src/theme/types.ts +5 -0
  485. package/tests/theme.test.ts +465 -0
  486. package/tests/tsconfig.json +1 -1
  487. package/types/data-explorer-ui.d.ts +73 -48
  488. package/lib/styles/common/mixins/colors.d.ts +0 -25
  489. package/lib/styles/common/mixins/colors.js +0 -32
  490. package/lib/styles/common/mixins/fonts.d.ts +0 -16
  491. package/lib/styles/common/mixins/fonts.js +0 -30
  492. package/src/styles/common/mixins/colors.ts +0 -71
  493. package/src/styles/common/mixins/fonts.ts +0 -52
@@ -1,7 +1,7 @@
1
1
  import { css } from "@emotion/react";
2
2
  import styled from "@emotion/styled";
3
3
  import { FormControl } from "@mui/material";
4
- import { inkLight, inkMain } from "../../../../../styles/common/mixins/colors";
4
+ import { PALETTE } from "../../../../../styles/common/constants/palette";
5
5
  export const InputFormControl = styled(FormControl, {
6
6
  shouldForwardProp: (prop) => prop !== "isFilled",
7
7
  }) `
@@ -20,7 +20,7 @@ export const InputFormControl = styled(FormControl, {
20
20
 
21
21
  input::placeholder,
22
22
  textarea::placeholder {
23
- color: ${inkLight};
23
+ color: ${PALETTE.INK_LIGHT};
24
24
  opacity: 0.8;
25
25
  }
26
26
 
@@ -32,11 +32,11 @@ export const InputFormControl = styled(FormControl, {
32
32
  }
33
33
 
34
34
  // Input filled.
35
- ${({ isFilled, ...props }) => isFilled &&
35
+ ${({ isFilled }) => isFilled &&
36
36
  css `
37
37
  & .MuiOutlinedInput-input,
38
38
  .MuiSvgIcon-root {
39
- color: ${inkMain(props)};
39
+ color: ${PALETTE.INK_MAIN};
40
40
  }
41
41
  `};
42
42
  }
@@ -1,9 +1,9 @@
1
1
  import { Select as MSelect, Typography, } from "@mui/material";
2
2
  import React from "react";
3
- import { TEXT_BODY_400 } from "../../../../../theme/common/typography";
3
+ import { TYPOGRAPHY_PROPS } from "../../../../../styles/common/mui/typography";
4
4
  import { InputFormControl } from "./select.styles";
5
5
  export const Select = ({ children, className, isFilled, label, onBlur, ...props /* Spread props to allow for Mui SelectProps specific prop overrides e.g. "disabled". */ }) => {
6
6
  return (React.createElement(InputFormControl, { className: className, isFilled: isFilled },
7
- label && React.createElement(Typography, { variant: TEXT_BODY_400 }, label),
7
+ label && (React.createElement(Typography, { variant: TYPOGRAPHY_PROPS.VARIANT.BODY_400 }, label)),
8
8
  React.createElement(MSelect, { fullWidth: true, inputProps: { onBlur }, size: "small", ...props }, children)));
9
9
  };
@@ -3,7 +3,7 @@ interface Props {
3
3
  }
4
4
  export declare const InputFormControl: import("@emotion/styled").StyledComponent<import("@mui/material").FormControlOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
5
5
  ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
6
- }, "style" | "size" | "className" | "classes" | "children" | "color" | "sx" | "disabled" | "required" | "error" | "margin" | "fullWidth" | "variant" | "hiddenLabel" | "focused"> & {
6
+ }, "style" | "size" | "className" | "classes" | "children" | "disabled" | "sx" | "color" | "margin" | "error" | "variant" | "required" | "fullWidth" | "focused" | "hiddenLabel"> & {
7
7
  theme?: import("@emotion/react").Theme;
8
8
  } & Props, {}, {}>;
9
9
  export {};
@@ -1,7 +1,7 @@
1
1
  import { css } from "@emotion/react";
2
2
  import styled from "@emotion/styled";
3
3
  import { FormControl } from "@mui/material";
4
- import { inkMain } from "../../../../../styles/common/mixins/colors";
4
+ import { PALETTE } from "../../../../../styles/common/constants/palette";
5
5
  export const InputFormControl = styled(FormControl, {
6
6
  shouldForwardProp: (prop) => prop !== "isFilled",
7
7
  }) `
@@ -10,11 +10,11 @@ export const InputFormControl = styled(FormControl, {
10
10
  gap: 4px;
11
11
 
12
12
  // Input filled.
13
- ${({ isFilled, ...props }) => isFilled &&
13
+ ${({ isFilled }) => isFilled &&
14
14
  css `
15
15
  & .MuiOutlinedInput-input,
16
16
  .MuiSvgIcon-root {
17
- color: ${inkMain(props)};
17
+ color: ${PALETTE.INK_MAIN};
18
18
  }
19
19
  `};
20
20
  `;
@@ -1,7 +1,7 @@
1
1
  import { CloseRounded } from "@mui/icons-material";
2
2
  import { FormHelperText, Typography } from "@mui/material";
3
3
  import React from "react";
4
- import { TEXT_BODY_400 } from "../../../../../theme/common/typography";
4
+ import { TYPOGRAPHY_PROPS } from "../../../../../styles/common/mui/typography";
5
5
  import { Loading, LOADING_PANEL_STYLE } from "../../../../Loading/loading";
6
6
  import { ErrorIcon } from "../../../CustomIcon/components/ErrorIcon/errorIcon";
7
7
  import { InputFormControl } from "../Input/input.styles";
@@ -10,10 +10,10 @@ export const UploadFile = ({ attachmentName, attachmentRejected, attachmentRejec
10
10
  const error = attachmentRejected;
11
11
  const isAttached = Boolean(attachmentToken);
12
12
  return (React.createElement(InputFormControl, { className: className, error: error },
13
- label && React.createElement(Typography, { variant: TEXT_BODY_400 }, label),
13
+ label && (React.createElement(Typography, { variant: TYPOGRAPHY_PROPS.VARIANT.BODY_400 }, label)),
14
14
  React.createElement(Button, { isAttached: isAttached, isDragActive: isDragActive, isError: error, onClick: attachmentToken ? onAttachmentDeleted : open },
15
15
  React.createElement(Loading, { iconSize: "small", loading: attachmentUploading, panelStyle: LOADING_PANEL_STYLE.INHERIT }),
16
- React.createElement(Typography, { variant: TEXT_BODY_400 }, isAttached ? (attachmentName) : (React.createElement(React.Fragment, null,
16
+ React.createElement(Typography, { variant: TYPOGRAPHY_PROPS.VARIANT.BODY_400 }, isAttached ? (attachmentName) : (React.createElement(React.Fragment, null,
17
17
  "Drag or ",
18
18
  React.createElement(Underline, null, "Click"),
19
19
  " to attach file"))),
@@ -5,7 +5,7 @@ interface Props {
5
5
  }
6
6
  export declare const Button: import("@emotion/styled").StyledComponent<import("@mui/material").ButtonBaseOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
7
7
  ref?: ((instance: HTMLButtonElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLButtonElement> | null | undefined;
8
- }, "style" | "className" | "classes" | "children" | "sx" | "tabIndex" | "disabled" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef"> & {
8
+ }, "style" | "className" | "classes" | "action" | "centerRipple" | "children" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "tabIndex" | "TouchRippleProps" | "touchRippleRef"> & {
9
9
  theme?: import("@emotion/react").Theme;
10
10
  } & Props, {}, {}>;
11
11
  export declare const Underline: import("@emotion/styled").StyledComponent<{
@@ -1,13 +1,13 @@
1
1
  import { css } from "@emotion/react";
2
2
  import styled from "@emotion/styled";
3
3
  import { ButtonBase } from "@mui/material";
4
- import { errorMain, infoLightest, infoMain, inkMain, smokeDark, smokeLight, } from "../../../../../styles/common/mixins/colors";
4
+ import { PALETTE } from "../../../../../styles/common/constants/palette";
5
5
  export const Button = styled(ButtonBase, {
6
6
  shouldForwardProp: (prop) => prop !== "isAttached" && prop !== "isDragActive" && prop !== "isError",
7
7
  }) `
8
8
  align-items: center;
9
- background-color: ${smokeLight};
10
- border: 1px dashed ${smokeDark};
9
+ background-color: ${PALETTE.SMOKE_LIGHT};
10
+ border: 1px dashed ${PALETTE.SMOKE_DARK};
11
11
  border-radius: 4px;
12
12
  display: flex;
13
13
  gap: 8px;
@@ -16,21 +16,21 @@ export const Button = styled(ButtonBase, {
16
16
  padding: 10px 12px;
17
17
 
18
18
  // Drag active.
19
- ${({ isDragActive, theme }) => isDragActive &&
19
+ ${({ isDragActive }) => isDragActive &&
20
20
  css `
21
- background-color: ${infoLightest({ theme })};
22
- border: 1px dashed ${infoMain({ theme })};
21
+ background-color: ${PALETTE.INFO_LIGHTEST};
22
+ border: 1px dashed ${PALETTE.INFO_MAIN};
23
23
  `};
24
24
 
25
25
  // Error.
26
- ${({ isDragActive, isError, theme }) => isError &&
26
+ ${({ isDragActive, isError }) => isError &&
27
27
  !isDragActive &&
28
28
  css `
29
- border: 1px dashed ${errorMain({ theme })};
29
+ border: 1px dashed ${PALETTE.ERROR_MAIN};
30
30
  `};
31
31
 
32
- .MuiTypography-text-body-400 {
33
- color: ${inkMain};
32
+ .MuiTypography-body-400 {
33
+ color: ${PALETTE.INK_MAIN};
34
34
  opacity: 0.8;
35
35
  overflow: hidden;
36
36
  text-overflow: ellipsis;
@@ -1,6 +1,6 @@
1
1
  import { css } from "@emotion/react";
2
2
  import styled from "@emotion/styled";
3
- import { alertLightest, alertMain, infoLightest, infoMain, successLightest, successMain, warningLightest, warningMain, } from "../../../styles/common/mixins/colors";
3
+ import { PALETTE } from "../../../styles/common/constants/palette";
4
4
  import { ICON_BADGE_COLOR } from "./iconBadge";
5
5
  export const Circle = styled.div `
6
6
  border-radius: 50%;
@@ -11,30 +11,30 @@ export const Circle = styled.div `
11
11
  width: 72px;
12
12
 
13
13
  // Alert.
14
- ${({ color, ...props }) => color === ICON_BADGE_COLOR.ALERT &&
14
+ ${({ color }) => color === ICON_BADGE_COLOR.ALERT &&
15
15
  css `
16
- background-color: ${alertLightest(props)};
17
- color: ${alertMain(props)};
16
+ background-color: ${PALETTE.ALERT_LIGHTEST};
17
+ color: ${PALETTE.ALERT_MAIN};
18
18
  `};
19
19
 
20
20
  // Info.
21
- ${({ color, ...props }) => color === ICON_BADGE_COLOR.INFO &&
21
+ ${({ color }) => color === ICON_BADGE_COLOR.INFO &&
22
22
  css `
23
- background-color: ${infoLightest(props)};
24
- color: ${infoMain(props)};
23
+ background-color: ${PALETTE.INFO_LIGHTEST};
24
+ color: ${PALETTE.INFO_MAIN};
25
25
  `};
26
26
 
27
27
  // Success.
28
- ${({ color, ...props }) => color === ICON_BADGE_COLOR.SUCCESS &&
28
+ ${({ color }) => color === ICON_BADGE_COLOR.SUCCESS &&
29
29
  css `
30
- background-color: ${successLightest(props)};
31
- color: ${successMain(props)};
30
+ background-color: ${PALETTE.SUCCESS_LIGHTEST};
31
+ color: ${PALETTE.SUCCESS_MAIN};
32
32
  `};
33
33
 
34
34
  // Warning.
35
- ${({ color, ...props }) => color === ICON_BADGE_COLOR.WARNING &&
35
+ ${({ color }) => color === ICON_BADGE_COLOR.WARNING &&
36
36
  css `
37
- background-color: ${warningLightest(props)};
38
- color: ${warningMain(props)};
37
+ background-color: ${PALETTE.WARNING_LIGHTEST};
38
+ color: ${PALETTE.WARNING_MAIN};
39
39
  `};
40
40
  `;
@@ -3,7 +3,7 @@ interface Props {
3
3
  }
4
4
  export declare const Button: import("@emotion/styled").StyledComponent<import("@mui/material").IconButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
5
5
  ref?: ((instance: HTMLButtonElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLButtonElement> | null | undefined;
6
- }, "style" | "size" | "className" | "classes" | "children" | "color" | "sx" | "tabIndex" | "disabled" | "action" | "loading" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "loadingIndicator" | "edge"> & {
6
+ }, "style" | "size" | "className" | "classes" | "action" | "centerRipple" | "children" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "tabIndex" | "TouchRippleProps" | "touchRippleRef" | "color" | "disableFocusRipple" | "edge" | "loading" | "loadingIndicator"> & {
7
7
  theme?: import("@emotion/react").Theme;
8
8
  } & Props, {}, {}>;
9
9
  export {};
@@ -1,14 +1,14 @@
1
1
  import { css } from "@emotion/react";
2
2
  import styled from "@emotion/styled";
3
3
  import { IconButton as MIconButton } from "@mui/material";
4
- import { smokeLightest } from "../../../styles/common/mixins/colors";
4
+ import { PALETTE } from "../../../styles/common/constants/palette";
5
5
  export const Button = styled(MIconButton, {
6
6
  shouldForwardProp: (prop) => prop !== "open",
7
7
  }) `
8
- ${({ open, ...props }) => open &&
8
+ ${({ open }) => open &&
9
9
  css `
10
10
  &.MuiIconButton-root {
11
- background-color: ${smokeLightest(props)};
11
+ background-color: ${PALETTE.SMOKE_LIGHTEST};
12
12
  }
13
13
  `}
14
14
  `;
@@ -1,6 +1,6 @@
1
1
  import { Typography } from "@mui/material";
2
2
  import React from "react";
3
- import { TEXT_BODY_400 } from "../../../theme/common/typography";
3
+ import { TYPOGRAPHY_PROPS } from "../../../styles/common/mui/typography";
4
4
  import { InputField, InputFormControl } from "./input.styles";
5
5
  /**
6
6
  * Callback fired when the search term is changed.
@@ -14,6 +14,6 @@ function onChangeInputField(changeEvent, setSearchTerm) {
14
14
  }
15
15
  export const Input = ({ className, label, placeholder, searchTerm, setSearchTerm, StartAdornment, ...props /* Spread props to allow for Mui OutlinedInputProps specific prop overrides e.g. "disabled". */ }) => {
16
16
  return (React.createElement(InputFormControl, { className: className },
17
- label && React.createElement(Typography, { variant: TEXT_BODY_400 }, label),
17
+ label && (React.createElement(Typography, { variant: TYPOGRAPHY_PROPS.VARIANT.BODY_400 }, label)),
18
18
  React.createElement(InputField, { autoFocus: true, fullWidth: true, inputProps: { spellCheck: false }, isFilled: !!searchTerm, onChange: (event) => onChangeInputField(event, setSearchTerm), placeholder: placeholder, size: "small", startAdornment: StartAdornment ? React.createElement(StartAdornment, { fontSize: "small" }) : undefined, value: searchTerm, ...props })));
19
19
  };
@@ -3,7 +3,7 @@ interface Props {
3
3
  }
4
4
  export declare const InputFormControl: import("@emotion/styled").StyledComponent<import("@mui/material").FormControlOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
5
5
  ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
6
- }, "style" | "size" | "className" | "classes" | "children" | "color" | "sx" | "disabled" | "required" | "error" | "margin" | "fullWidth" | "variant" | "hiddenLabel" | "focused"> & {
6
+ }, "style" | "size" | "className" | "classes" | "children" | "disabled" | "sx" | "color" | "margin" | "error" | "variant" | "required" | "fullWidth" | "focused" | "hiddenLabel"> & {
7
7
  theme?: import("@emotion/react").Theme;
8
8
  }, {}, {}>;
9
9
  export declare const InputField: import("@emotion/styled").StyledComponent<import("@mui/material").OutlinedInputProps & {
@@ -1,6 +1,7 @@
1
1
  import { css } from "@emotion/react";
2
2
  import styled from "@emotion/styled";
3
3
  import { FormControl, OutlinedInput } from "@mui/material";
4
+ import { PALETTE } from "../../../styles/common/constants/palette";
4
5
  // Input form control
5
6
  export const InputFormControl = styled(FormControl) `
6
7
  display: flex;
@@ -19,11 +20,11 @@ export const InputField = styled(OutlinedInput, {
19
20
  }
20
21
 
21
22
  // Input filled.
22
- ${({ isFilled, theme }) => isFilled &&
23
+ ${({ isFilled }) => isFilled &&
23
24
  css `
24
25
  .MuiOutlinedInput-input,
25
26
  .MuiSvgIcon-root {
26
- color: ${theme.palette.ink.main};
27
+ color: ${PALETTE.INK_MAIN};
27
28
  }
28
29
  `};
29
30
  `;
@@ -4,6 +4,6 @@ import { TYPOGRAPHY_PROPS } from "../../../../../styles/common/mui/typography";
4
4
  /**
5
5
  * Basic KeyValuePairs "key" wrapper component.
6
6
  */
7
- export const KeyElType = ({ children, color = TYPOGRAPHY_PROPS.COLOR.INK_LIGHT, component = "div", variant = TYPOGRAPHY_PROPS.VARIANT.TEXT_BODY_400_2_LINES, ...props /* MuiTypographyProps */ }) => {
7
+ export const KeyElType = ({ children, color = TYPOGRAPHY_PROPS.COLOR.INK_LIGHT, component = "div", variant = TYPOGRAPHY_PROPS.VARIANT.BODY_400_2_LINES, ...props /* MuiTypographyProps */ }) => {
8
8
  return (React.createElement(Typography, { color: color, component: component, variant: variant, ...props }, children));
9
9
  };
@@ -4,6 +4,6 @@ import { TYPOGRAPHY_PROPS } from "../../../../../styles/common/mui/typography";
4
4
  /**
5
5
  * Basic KeyValuePairs "value" wrapper component.
6
6
  */
7
- export const ValueElType = ({ children, component = "div", variant = TYPOGRAPHY_PROPS.VARIANT.TEXT_BODY_400_2_LINES, ...props /* MuiTypographyProps */ }) => {
7
+ export const ValueElType = ({ children, component = "div", variant = TYPOGRAPHY_PROPS.VARIANT.BODY_400_2_LINES, ...props /* MuiTypographyProps */ }) => {
8
8
  return (React.createElement(Typography, { component: component, variant: variant, ...props }, children));
9
9
  };
@@ -3,13 +3,13 @@ import { TYPOGRAPHY_PROPS } from "../../../styles/common/mui/typography";
3
3
  export const DIALOG_CONTENT_TEXT_PROPS = {
4
4
  color: TYPOGRAPHY_PROPS.COLOR.INK_LIGHT,
5
5
  component: "div",
6
- variant: TYPOGRAPHY_PROPS.VARIANT.TEXT_BODY_400,
6
+ variant: TYPOGRAPHY_PROPS.VARIANT.BODY_400,
7
7
  };
8
8
  export const DIALOG_PROPS = {
9
9
  PaperProps: { elevation: 0 },
10
10
  };
11
11
  export const DIALOG_TITLE_PROPS = {
12
- variant: TYPOGRAPHY_PROPS.VARIANT.TEXT_HEADING_SMALL,
12
+ variant: TYPOGRAPHY_PROPS.VARIANT.HEADING_SMALL,
13
13
  };
14
14
  export const ICON_BUTTON_PROPS = {
15
15
  color: "inkLight",
@@ -1,5 +1,5 @@
1
1
  import styled from "@emotion/styled";
2
- import { textBody4002Lines, textBody500, textBodyLarge500, } from "../../../../../styles/common/mixins/fonts";
2
+ import { FONT } from "../../../../../styles/common/constants/font";
3
3
  export const SectionContent = styled.div `
4
4
  h3,
5
5
  h4 {
@@ -7,16 +7,16 @@ export const SectionContent = styled.div `
7
7
  }
8
8
 
9
9
  h3 {
10
- ${textBodyLarge500};
10
+ font: ${FONT.BODY_LARGE_500};
11
11
  }
12
12
 
13
13
  h4 {
14
- ${textBody500};
14
+ font: ${FONT.BODY_500};
15
15
  margin-top: 20px;
16
16
  }
17
17
 
18
18
  p {
19
- ${textBody4002Lines};
19
+ font: ${FONT.BODY_400_2_LINES};
20
20
  margin: 0 0 8px;
21
21
  }
22
22
 
@@ -1,5 +1,5 @@
1
1
  export declare const StyledPaper: import("@emotion/styled").StyledComponent<import("@mui/material").PaperOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
2
2
  ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
3
- }, "style" | "className" | "classes" | "children" | "sx" | "elevation" | "square" | "variant"> & {
3
+ }, "style" | "className" | "classes" | "children" | "sx" | "square" | "elevation" | "variant"> & {
4
4
  theme?: import("@emotion/react").Theme;
5
5
  }, {}, {}>;
@@ -1,6 +1,6 @@
1
1
  export declare const StyledPaper: import("@emotion/styled").StyledComponent<import("../../../../types").BaseComponentProps & import("@mui/material").PaperOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
2
2
  ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
3
- }, "style" | "className" | "classes" | "children" | "sx" | "elevation" | "square" | "variant"> & {
3
+ }, "style" | "className" | "classes" | "children" | "sx" | "square" | "elevation" | "variant"> & {
4
4
  component?: React.ElementType;
5
5
  } & {
6
6
  theme?: import("@emotion/react").Theme;
@@ -1,8 +1,8 @@
1
1
  import styled from "@emotion/styled";
2
- import { mediaTabletDown } from "../../../../../styles/common/mixins/breakpoints";
2
+ import { bpDownSm } from "../../../../../styles/common/mixins/breakpoints";
3
3
  import { RoundedPaper } from "../RoundedPaper/roundedPaper";
4
4
  export const StyledPaper = styled(RoundedPaper) `
5
- ${mediaTabletDown} {
5
+ ${bpDownSm} {
6
6
  border-left: none;
7
7
  border-radius: 0;
8
8
  border-right: none;
@@ -1,5 +1,5 @@
1
1
  export declare const StyledPaper: import("@emotion/styled").StyledComponent<import("@mui/material").PaperOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
2
2
  ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
3
- }, "style" | "className" | "classes" | "children" | "sx" | "elevation" | "square" | "variant"> & {
3
+ }, "style" | "className" | "classes" | "children" | "sx" | "square" | "elevation" | "variant"> & {
4
4
  theme?: import("@emotion/react").Theme;
5
5
  }, {}, {}>;
@@ -1,5 +1,6 @@
1
1
  import styled from "@emotion/styled";
2
- import { TABLET } from "../../../theme/common/breakpoints";
2
+ import { PALETTE } from "../../../styles/common/constants/palette";
3
+ import { bpDownSm } from "../../../styles/common/mixins/breakpoints";
3
4
  import { Paper } from "./paper";
4
5
  /**
5
6
  * Flat paper - typically used when in full stretch or full "bleed" across a container.
@@ -32,7 +33,7 @@ export const RoundedPaper = styled(Paper) `
32
33
  /* eslint-enable valid-jsdoc -- disable require param */
33
34
  export const FluidPaper = styled(RoundedPaper) `
34
35
  & {
35
- ${({ theme }) => theme.breakpoints.down(TABLET)} {
36
+ ${bpDownSm} {
36
37
  border-left: none;
37
38
  border-radius: 0;
38
39
  border-right: none;
@@ -47,25 +48,24 @@ const ignoreSsrWarning = "/* emotion-disable-server-rendering-unsafe-selector-wa
47
48
  * Grid paper - typically used as a parent (grid) container.
48
49
  * The background color with the grid cap property create the grid "lines" between each grid item.
49
50
  */
50
- export const GridPaper = styled.div(({ theme }) => ({
51
- backgroundColor: `${theme.palette.smoke.main}`,
52
- borderRadius: "inherit", // Inherit parent container border radius.
53
- display: "grid",
54
- gap: "1px",
55
- // First child - not <style/> - inherits top left and right border radius.
56
- [`> *:first-child:not(style)${ignoreSsrWarning}`]: {
57
- borderTopLeftRadius: "inherit",
58
- borderTopRightRadius: "inherit",
59
- },
60
- // First child - after <style/> - inherits top left and right border radius.
61
- [`> style:first-child + *${ignoreSsrWarning}`]: {
62
- borderTopLeftRadius: "inherit",
63
- borderTopRightRadius: "inherit",
64
- },
65
- // Last child inherits bottom left and right border radius.
66
- // eslint-disable-next-line sort-keys -- disabling key order for readability
67
- "> *:last-child": {
68
- borderBottomLeftRadius: "inherit",
69
- borderBottomRightRadius: "inherit",
70
- },
71
- }));
51
+ export const GridPaper = styled.div `
52
+ background-color: ${PALETTE.SMOKE_MAIN};
53
+ border-radius: inherit;
54
+ display: grid;
55
+ gap: 1px;
56
+
57
+ > *:first-child:not(style)${ignoreSsrWarning} {
58
+ border-top-left-radius: inherit;
59
+ border-top-right-radius: inherit;
60
+ }
61
+
62
+ > style:first-child + *${ignoreSsrWarning} {
63
+ border-top-left-radius: inherit;
64
+ border-top-right-radius: inherit;
65
+ }
66
+
67
+ > *:last-child {
68
+ border-bottom-left-radius: inherit;
69
+ border-bottom-right-radius: inherit;
70
+ }
71
+ `;
@@ -1,26 +1,26 @@
1
1
  import styled from "@emotion/styled";
2
2
  import { CircularProgress as MCircularProgress } from "@mui/material";
3
- import { alertLight, infoLight, smokeLight, successLight, warningLight, } from "../../../../../../../styles/common/mixins/colors";
3
+ import { PALETTE } from "../../../../../../../styles/common/constants/palette";
4
4
  export const CircularProgress = styled(MCircularProgress) `
5
- color: ${smokeLight};
5
+ color: ${PALETTE.SMOKE_LIGHT};
6
6
  left: 0;
7
7
  position: absolute;
8
8
  top: 0;
9
9
  z-index: 0;
10
10
 
11
11
  &.MuiCircularProgress-colorAlert {
12
- color: ${alertLight};
12
+ color: ${PALETTE.ALERT_LIGHT};
13
13
  }
14
14
 
15
15
  &.MuiCircularProgress-colorInfo {
16
- color: ${infoLight};
16
+ color: ${PALETTE.INFO_LIGHT};
17
17
  }
18
18
 
19
19
  &.MuiCircularProgress-colorSuccess {
20
- color: ${successLight};
20
+ color: ${PALETTE.SUCCESS_LIGHT};
21
21
  }
22
22
 
23
23
  &.MuiCircularProgress-colorWarning {
24
- color: ${warningLight};
24
+ color: ${PALETTE.WARNING_LIGHT};
25
25
  }
26
26
  `;
@@ -2,28 +2,28 @@ import { AddRounded, RemoveRounded } from "@mui/icons-material";
2
2
  import { Collapse } from "@mui/material";
3
3
  import React, { useEffect, useState } from "react";
4
4
  import { BREAKPOINT_FN_NAME, useBreakpointHelper, } from "../../../../../hooks/useBreakpointHelper";
5
- import { TABLET } from "../../../../../theme/common/breakpoints";
5
+ import { TYPOGRAPHY_PROPS } from "../../../../../styles/common/mui/typography";
6
6
  import { SectionTitle } from "../SectionTitle/sectionTitle";
7
7
  import { CollapsableSection as Section, SectionSummary, SectionText, } from "./collapsableSection.styles";
8
8
  export const CollapsableSection = ({ children, collapsable = false, title, }) => {
9
- const mobile = useBreakpointHelper(BREAKPOINT_FN_NAME.DOWN, TABLET);
9
+ const bpDownSm = useBreakpointHelper(BREAKPOINT_FN_NAME.DOWN, "sm");
10
10
  const [expanded, setExpanded] = useState(false);
11
11
  const [transitionDuration, setTransitionDuration] = useState(0);
12
- const disabled = !mobile || !collapsable;
12
+ const disabled = !bpDownSm || !collapsable;
13
13
  const ExpandIcon = expanded ? RemoveRounded : AddRounded;
14
- const SectionContent = (React.createElement(SectionText, { component: "div", variant: "text-body-400-2lines" }, children));
14
+ const SectionContent = (React.createElement(SectionText, { component: "div", variant: TYPOGRAPHY_PROPS.VARIANT.BODY_400_2_LINES }, children));
15
15
  const onToggleExpanded = () => {
16
16
  setExpanded((expanded) => !expanded);
17
17
  };
18
18
  // Toggles expanded state on change of media breakpoint.
19
19
  useEffect(() => {
20
- setExpanded(!mobile);
21
- }, [mobile]);
20
+ setExpanded(!bpDownSm);
21
+ }, [bpDownSm]);
22
22
  // Sets collapseTimeout state on change of media breakpoint.
23
23
  // Delays setting transitionDuration state for mobile breakpoint to facilitate the immediate transition from
24
24
  // tablet to mobile.
25
25
  useEffect(() => {
26
- if (mobile) {
26
+ if (bpDownSm) {
27
27
  const duration = setTimeout(() => {
28
28
  setTransitionDuration("auto");
29
29
  }, 100);
@@ -34,7 +34,7 @@ export const CollapsableSection = ({ children, collapsable = false, title, }) =>
34
34
  else {
35
35
  setTransitionDuration(0);
36
36
  }
37
- }, [mobile]);
37
+ }, [bpDownSm]);
38
38
  return (React.createElement(Section, null,
39
39
  React.createElement(SectionSummary, { disabled: disabled, onClick: onToggleExpanded },
40
40
  React.createElement(SectionTitle, { title: title }),
@@ -5,7 +5,7 @@ export declare const CollapsableSection: import("@emotion/styled").StyledCompone
5
5
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
6
6
  export declare const SectionSummary: import("@emotion/styled").StyledComponent<import("@mui/material").ButtonBaseOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
7
7
  ref?: ((instance: HTMLButtonElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLButtonElement> | null | undefined;
8
- }, "style" | "className" | "classes" | "children" | "sx" | "tabIndex" | "disabled" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef"> & {
8
+ }, "style" | "className" | "classes" | "action" | "centerRipple" | "children" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "tabIndex" | "TouchRippleProps" | "touchRippleRef"> & {
9
9
  theme?: import("@emotion/react").Theme;
10
10
  }, {}, {}>;
11
11
  export declare const SectionText: typeof Typography;
@@ -1,14 +1,15 @@
1
1
  import styled from "@emotion/styled";
2
2
  import { ButtonBase, Typography } from "@mui/material";
3
- import { TABLET } from "../../../../../theme/common/breakpoints";
3
+ import { PALETTE } from "../../../../../styles/common/constants/palette";
4
+ import { bpUpSm } from "../../../../../styles/common/mixins/breakpoints";
4
5
  export const CollapsableSection = styled.div `
5
- background-color: ${({ theme }) => theme.palette.common.white};
6
+ background-color: ${PALETTE.COMMON_WHITE};
6
7
  display: flex;
7
8
  flex-direction: column;
8
9
  min-width: 0; /* required to ellipsis any flex child */
9
10
  padding: 4px 0;
10
11
 
11
- ${({ theme }) => theme.breakpoints.up(TABLET)} {
12
+ ${bpUpSm} {
12
13
  gap: 8px;
13
14
  padding: 20px;
14
15
  }
@@ -18,7 +19,7 @@ export const SectionSummary = styled(ButtonBase) `
18
19
  justify-content: space-between;
19
20
  padding: 16px;
20
21
 
21
- ${({ theme }) => theme.breakpoints.up(TABLET)} {
22
+ ${bpUpSm} {
22
23
  padding: 0;
23
24
  }
24
25
  `;
@@ -29,7 +30,7 @@ export const SectionText = styled(Typography) `
29
30
  gap: 16px;
30
31
  padding: 0 16px 16px;
31
32
 
32
- ${({ theme }) => theme.breakpoints.up(TABLET)} {
33
+ ${bpUpSm} {
33
34
  padding: 0;
34
35
  }
35
36
  `;
@@ -1,5 +1,6 @@
1
1
  import { Typography } from "@mui/material";
2
2
  import React from "react";
3
+ import { TYPOGRAPHY_PROPS } from "../../../../../styles/common/mui/typography";
3
4
  export const SectionTitle = ({ className, title, }) => {
4
- return (React.createElement(Typography, { align: "left", className: className, color: "ink.main", component: "h3", variant: "text-body-large-500" }, title));
5
+ return (React.createElement(Typography, { align: "left", className: className, color: TYPOGRAPHY_PROPS.COLOR.INK_MAIN, component: "h3", variant: TYPOGRAPHY_PROPS.VARIANT.BODY_LARGE_500 }, title));
5
6
  };
@@ -1,5 +1,5 @@
1
1
  import { Typography } from "@mui/material";
2
- import { ThemeProps } from "../../../theme/theme";
2
+ import { ThemeProps } from "../../../theme/types";
3
3
  export declare const sectionMargin: import("@emotion/react").SerializedStyles;
4
4
  export declare const sectionMarginSm: import("@emotion/react").SerializedStyles;
5
5
  export declare const sectionMarginXsm: import("@emotion/react").SerializedStyles;