@databiosphere/findable-ui 25.0.0 → 26.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 (351) hide show
  1. package/.release-please-manifest.json +1 -1
  2. package/CHANGELOG.md +56 -0
  3. package/lib/common/entities.d.ts +25 -0
  4. package/lib/components/DataDictionary/common/utils.js +10 -8
  5. package/lib/components/DataDictionary/components/Entities/entities.d.ts +1 -1
  6. package/lib/components/DataDictionary/components/Entities/entities.js +2 -2
  7. package/lib/components/DataDictionary/components/Entities/types.d.ts +3 -1
  8. package/lib/components/DataDictionary/components/Entity/entity.d.ts +1 -1
  9. package/lib/components/DataDictionary/components/Entity/entity.js +2 -2
  10. package/lib/components/DataDictionary/components/Entity/types.d.ts +3 -1
  11. package/lib/components/DataDictionary/components/Table/components/BasicCell/types.d.ts +1 -2
  12. package/lib/components/DataDictionary/components/Table/hook.d.ts +2 -2
  13. package/lib/components/DataDictionary/components/Table/hook.js +2 -3
  14. package/lib/components/DataDictionary/dataDictionary.js +2 -2
  15. package/lib/components/DataDictionary/hooks/UseDataDictionary/hook.js +7 -2
  16. package/lib/components/DataDictionary/hooks/UseDataDictionary/types.d.ts +3 -1
  17. package/lib/components/Detail/components/Table/stories/args.d.ts +27 -0
  18. package/lib/components/Detail/components/Table/stories/args.js +100 -0
  19. package/lib/components/Detail/components/Table/stories/constants.d.ts +4 -0
  20. package/lib/components/Detail/components/Table/stories/constants.js +11 -0
  21. package/lib/components/Detail/components/Table/stories/filter/args.d.ts +5 -0
  22. package/lib/components/Detail/components/Table/stories/filter/args.js +50 -0
  23. package/lib/components/Detail/components/Table/stories/filter/filter.stories.d.ts +11 -0
  24. package/lib/components/Detail/components/Table/stories/filter/filter.stories.js +78 -0
  25. package/lib/components/Detail/components/Table/stories/table.stories.d.ts +6 -0
  26. package/lib/components/Detail/components/Table/stories/table.stories.js +19 -0
  27. package/lib/components/Detail/components/Table/table.js +2 -0
  28. package/lib/components/Export/components/ExportMethod/exportMethod.d.ts +2 -2
  29. package/lib/components/Export/components/ExportMethod/exportMethod.styles.js +1 -1
  30. package/lib/components/Filter/components/ClearAllFilters/clearAllFilters.js +2 -1
  31. package/lib/components/Filter/components/Filter/filter.js +2 -1
  32. package/lib/components/Filter/components/FilterRange/constants.d.ts +8 -0
  33. package/lib/components/Filter/components/FilterRange/constants.js +27 -0
  34. package/lib/components/Filter/components/FilterRange/filterRange.d.ts +2 -0
  35. package/lib/components/Filter/components/FilterRange/filterRange.js +26 -0
  36. package/lib/components/Filter/components/FilterRange/filterRange.styles.d.ts +4 -0
  37. package/lib/components/Filter/components/FilterRange/filterRange.styles.js +66 -0
  38. package/lib/components/Filter/components/FilterRange/hooks/UseFilterRange/hook.d.ts +2 -0
  39. package/lib/components/Filter/components/FilterRange/hooks/UseFilterRange/hook.js +14 -0
  40. package/lib/components/Filter/components/FilterRange/hooks/UseFilterRange/types.d.ts +8 -0
  41. package/lib/components/Filter/components/FilterRange/stories/filterRange.stories.d.ts +6 -0
  42. package/lib/components/Filter/components/FilterRange/stories/filterRange.stories.js +9 -0
  43. package/lib/components/Filter/components/FilterRange/types.d.ts +8 -0
  44. package/lib/components/Filter/components/FilterRange/types.js +6 -0
  45. package/lib/components/Filter/components/Filters/filters.js +2 -1
  46. package/lib/components/Filter/components/HighlightedLabel/highlightedLabel.d.ts +3 -2
  47. package/lib/components/Filter/components/HighlightedLabel/highlightedLabel.js +2 -2
  48. package/lib/components/Filter/components/SearchAllFilters/components/VariableSizeListItem/variableSizeListItem.js +3 -2
  49. package/lib/components/Filter/components/SearchAllFilters/searchAllFilters.js +2 -1
  50. package/lib/components/Filter/components/SearchAllFiltersSearch/searchAllFiltersSearch.styles.js +1 -2
  51. package/lib/components/Filter/components/VariableSizeListItem/variableSizeListItem.js +3 -2
  52. package/lib/components/Index/components/EntitiesView/components/ChartView/chartView.d.ts +1 -1
  53. package/lib/components/Index/components/EntitiesView/components/ChartView/chartView.js +5 -2
  54. package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/barX/constants.d.ts +2 -1
  55. package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/barX/constants.js +2 -1
  56. package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/barX/plot.js +10 -7
  57. package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/barX/utils.d.ts +6 -0
  58. package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/barX/utils.js +4 -4
  59. package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/stories/chart.stories.js +1 -2
  60. package/lib/components/Index/components/EntitiesView/components/ChartView/stories/args.js +1 -0
  61. package/lib/components/Index/components/EntitiesView/components/ChartView/stories/chartView.stories.js +0 -1
  62. package/lib/components/Index/components/EntitiesView/components/ChartView/types.d.ts +2 -0
  63. package/lib/components/Index/components/EntitiesView/entitiesView.d.ts +1 -1
  64. package/lib/components/Index/components/EntitiesView/entitiesView.js +3 -2
  65. package/lib/components/Index/components/EntitiesView/types.d.ts +2 -2
  66. package/lib/components/Index/components/Hero/components/ExportButton/exportButton.js +2 -1
  67. package/lib/components/Layout/components/Header/components/Content/components/Slogan/slogan.styles.d.ts +1 -1
  68. package/lib/components/Layout/components/Outline/outline.styles.js +1 -2
  69. package/lib/components/Layout/components/Sidebar/components/SidebarDrawer/sidebarDrawer.js +2 -1
  70. package/lib/components/Layout/components/Sidebar/sidebar.js +4 -1
  71. package/lib/components/Loading/loading.styles.js +2 -1
  72. package/lib/components/Login/components/Button/constants.js +2 -3
  73. package/lib/components/Login/components/Button/types.d.ts +1 -1
  74. package/lib/components/Login/components/Buttons/types.d.ts +1 -1
  75. package/lib/components/Support/components/SupportRequest/components/Dialog/dialog.styles.js +4 -4
  76. package/lib/components/Support/components/ViewSupport/viewSupport.styles.js +2 -2
  77. package/lib/components/Table/columnDef/columnFilters/filterFn.d.ts +13 -0
  78. package/lib/components/Table/columnDef/columnFilters/filterFn.js +22 -0
  79. package/lib/components/Table/common/columnDef.js +2 -0
  80. package/lib/components/Table/common/utils.d.ts +1 -13
  81. package/lib/components/Table/common/utils.js +1 -23
  82. package/lib/components/Table/components/Pagination/pagination.js +3 -2
  83. package/lib/components/Table/components/PaginationSummary/paginationSummary.js +2 -1
  84. package/lib/components/Table/components/TableRows/tableRows.js +7 -3
  85. package/lib/components/Table/table.js +3 -1
  86. package/lib/components/TableCreator/tableCreator.js +12 -3
  87. package/lib/components/common/Button/components/ButtonOutline/buttonOutline.styles.js +7 -7
  88. package/lib/components/common/Button/constants.d.ts +2 -0
  89. package/lib/components/common/Button/constants.js +21 -0
  90. package/lib/components/common/LoginDialog/loginDialog.styles.js +2 -3
  91. package/lib/components/types.d.ts +3 -0
  92. package/lib/config/entities.d.ts +3 -3
  93. package/lib/config/utils.js +1 -1
  94. package/lib/hooks/useEntityList.js +2 -1
  95. package/lib/hooks/useEntityService.js +1 -1
  96. package/lib/hooks/useExploreMode/types.d.ts +6 -0
  97. package/lib/hooks/useExploreMode/types.js +6 -0
  98. package/lib/hooks/{useExploreMode.d.ts → useExploreMode/useExploreMode.d.ts} +1 -6
  99. package/lib/hooks/{useExploreMode.js → useExploreMode/useExploreMode.js} +1 -7
  100. package/lib/hooks/useFetchEntity.js +2 -1
  101. package/lib/styles/common/constants/colorMixes.d.ts +18 -0
  102. package/lib/styles/common/constants/colorMixes.js +19 -0
  103. package/lib/styles/common/constants/shadows.d.ts +5 -0
  104. package/lib/styles/common/constants/shadows.js +5 -0
  105. package/lib/styles/common/mui/button.d.ts +10 -2
  106. package/lib/styles/common/mui/button.js +12 -2
  107. package/lib/tests/mui/constants.d.ts +1 -0
  108. package/lib/tests/mui/constants.js +1 -0
  109. package/lib/tests/testIds.d.ts +19 -0
  110. package/lib/tests/testIds.js +19 -0
  111. package/lib/theme/common/components.d.ts +2 -3
  112. package/lib/theme/common/components.js +47 -51
  113. package/lib/theme/common/palette.d.ts +0 -44
  114. package/lib/theme/common/palette.js +27 -82
  115. package/lib/theme/common/shadows.d.ts +2 -28
  116. package/lib/theme/common/shadows.js +27 -32
  117. package/lib/theme/components/muiAlert.js +5 -5
  118. package/lib/theme/theme.js +7 -7
  119. package/lib/views/ExploreView/exploreView.js +4 -3
  120. package/package.json +4 -4
  121. package/src/common/entities.ts +30 -0
  122. package/src/components/DataDictionary/common/utils.ts +12 -8
  123. package/src/components/DataDictionary/components/Entities/entities.tsx +11 -2
  124. package/src/components/DataDictionary/components/Entities/types.ts +3 -1
  125. package/src/components/DataDictionary/components/Entity/entity.tsx +2 -1
  126. package/src/components/DataDictionary/components/Entity/types.ts +3 -1
  127. package/src/components/DataDictionary/components/Table/components/BasicCell/types.ts +1 -2
  128. package/src/components/DataDictionary/components/Table/hook.ts +6 -4
  129. package/src/components/DataDictionary/dataDictionary.tsx +2 -2
  130. package/src/components/DataDictionary/hooks/UseDataDictionary/hook.ts +8 -2
  131. package/src/components/DataDictionary/hooks/UseDataDictionary/types.ts +3 -1
  132. package/src/components/Detail/components/Table/stories/args.ts +104 -0
  133. package/src/components/Detail/components/Table/stories/constants.ts +15 -0
  134. package/src/components/Detail/components/Table/stories/filter/args.ts +54 -0
  135. package/src/components/Detail/components/Table/stories/filter/filter.stories.tsx +90 -0
  136. package/src/components/Detail/components/Table/stories/table.stories.tsx +32 -0
  137. package/src/components/Detail/components/Table/table.tsx +2 -0
  138. package/src/components/Export/components/ExportMethod/exportMethod.styles.ts +1 -1
  139. package/src/components/Export/components/ExportMethod/exportMethod.tsx +3 -2
  140. package/src/components/Filter/components/ClearAllFilters/clearAllFilters.tsx +7 -1
  141. package/src/components/Filter/components/Filter/filter.tsx +2 -0
  142. package/src/components/Filter/components/FilterRange/constants.ts +41 -0
  143. package/src/components/Filter/components/FilterRange/filterRange.styles.ts +71 -0
  144. package/src/components/Filter/components/FilterRange/filterRange.tsx +71 -0
  145. package/src/components/Filter/components/FilterRange/hooks/UseFilterRange/hook.ts +20 -0
  146. package/src/components/Filter/components/FilterRange/hooks/UseFilterRange/types.ts +9 -0
  147. package/src/components/Filter/components/FilterRange/stories/filterRange.stories.tsx +15 -0
  148. package/src/components/Filter/components/FilterRange/types.ts +9 -0
  149. package/src/components/Filter/components/Filters/filters.tsx +7 -1
  150. package/src/components/Filter/components/HighlightedLabel/highlightedLabel.tsx +4 -2
  151. package/src/components/Filter/components/SearchAllFilters/components/VariableSizeListItem/variableSizeListItem.tsx +14 -2
  152. package/src/components/Filter/components/SearchAllFilters/searchAllFilters.tsx +2 -0
  153. package/src/components/Filter/components/SearchAllFiltersSearch/searchAllFiltersSearch.styles.ts +1 -2
  154. package/src/components/Filter/components/VariableSizeListItem/variableSizeListItem.tsx +14 -2
  155. package/src/components/Index/components/EntitiesView/components/ChartView/chartView.tsx +2 -1
  156. package/src/components/Index/components/EntitiesView/components/ChartView/components/Chart/barX/constants.ts +3 -1
  157. package/src/components/Index/components/EntitiesView/components/ChartView/components/Chart/barX/plot.ts +10 -7
  158. package/src/components/Index/components/EntitiesView/components/ChartView/components/Chart/barX/utils.ts +10 -4
  159. package/src/components/Index/components/EntitiesView/components/ChartView/components/Chart/stories/chart.stories.tsx +1 -2
  160. package/src/components/Index/components/EntitiesView/components/ChartView/stories/args.ts +1 -0
  161. package/src/components/Index/components/EntitiesView/components/ChartView/stories/chartView.stories.tsx +0 -1
  162. package/src/components/Index/components/EntitiesView/components/ChartView/types.ts +2 -0
  163. package/src/components/Index/components/EntitiesView/entitiesView.tsx +2 -2
  164. package/src/components/Index/components/EntitiesView/types.ts +2 -2
  165. package/src/components/Index/components/Hero/components/ExportButton/exportButton.tsx +2 -0
  166. package/src/components/Layout/components/Outline/outline.styles.ts +1 -2
  167. package/src/components/Layout/components/Sidebar/components/SidebarDrawer/sidebarDrawer.tsx +2 -0
  168. package/src/components/Layout/components/Sidebar/sidebar.tsx +4 -1
  169. package/src/components/Loading/loading.styles.ts +2 -1
  170. package/src/components/Login/components/Button/constants.ts +2 -3
  171. package/src/components/Login/components/Button/types.ts +1 -1
  172. package/src/components/Login/components/Buttons/types.ts +1 -1
  173. package/src/components/Support/components/SupportRequest/components/Dialog/dialog.styles.ts +4 -4
  174. package/src/components/Support/components/ViewSupport/viewSupport.styles.ts +2 -2
  175. package/src/components/Table/columnDef/columnFilters/filterFn.ts +27 -0
  176. package/src/components/Table/common/columnDef.ts +2 -0
  177. package/src/components/Table/common/utils.ts +1 -27
  178. package/src/components/Table/components/Pagination/pagination.tsx +3 -2
  179. package/src/components/Table/components/PaginationSummary/paginationSummary.tsx +2 -1
  180. package/src/components/Table/components/TableRows/tableRows.tsx +10 -3
  181. package/src/components/Table/table.tsx +3 -1
  182. package/src/components/TableCreator/tableCreator.tsx +17 -3
  183. package/src/components/common/Button/components/ButtonOutline/buttonOutline.styles.ts +7 -7
  184. package/src/components/common/Button/constants.ts +23 -0
  185. package/src/components/common/LoginDialog/loginDialog.styles.ts +2 -3
  186. package/src/components/types.ts +4 -0
  187. package/src/config/entities.ts +3 -3
  188. package/src/config/utils.ts +1 -1
  189. package/src/hooks/useEntityList.ts +2 -1
  190. package/src/hooks/useEntityService.ts +1 -1
  191. package/src/hooks/useExploreMode/types.ts +7 -0
  192. package/src/hooks/{useExploreMode.ts → useExploreMode/useExploreMode.ts} +2 -9
  193. package/src/hooks/useFetchEntity.tsx +2 -1
  194. package/src/styles/common/constants/colorMixes.ts +20 -0
  195. package/src/styles/common/constants/shadows.ts +5 -0
  196. package/src/styles/common/mui/button.ts +20 -2
  197. package/src/tests/mui/constants.ts +1 -0
  198. package/src/tests/testIds.ts +19 -0
  199. package/src/theme/common/components.ts +47 -59
  200. package/src/theme/common/palette.ts +27 -86
  201. package/src/theme/common/shadows.ts +28 -33
  202. package/src/theme/components/muiAlert.ts +5 -5
  203. package/src/theme/theme.ts +50 -51
  204. package/src/views/ExploreView/exploreView.tsx +8 -3
  205. package/tests/chart.test.tsx +113 -22
  206. package/tests/chartView.test.tsx +12 -0
  207. package/tests/entitiesView.test.tsx +7 -11
  208. package/tests/filterRange.test.tsx +87 -0
  209. package/tests/filterRangeMock.test.tsx +38 -0
  210. package/tests/tableFilter.test.tsx +90 -0
  211. package/lib/components/DataDictionary/components/Table/columns/columnDef.d.ts +0 -6
  212. package/lib/components/DataDictionary/components/Table/columns/columnDef.js +0 -33
  213. package/lib/components/DataDictionary/components/Table/columns/columnIdentifier.d.ts +0 -5
  214. package/lib/components/DataDictionary/components/Table/columns/columnIdentifier.js +0 -5
  215. package/lib/components/DataDictionary/components/Table/columns/types.d.ts +0 -2
  216. package/lib/components/Detail/components/Table/components/TableHead/tableHead.d.ts +0 -8
  217. package/lib/components/Detail/components/Table/components/TableHead/tableHead.js +0 -36
  218. package/lib/components/Index/components/Cell/cell.d.ts +0 -7
  219. package/lib/components/Index/components/Cell/cell.js +0 -10
  220. package/lib/components/Index/components/EntitiesView/constants.d.ts +0 -1
  221. package/lib/components/Index/components/EntitiesView/constants.js +0 -1
  222. package/lib/components/Index/components/NTag/components/Tooltip/tooltip.d.ts +0 -8
  223. package/lib/components/Index/components/NTag/components/Tooltip/tooltip.js +0 -57
  224. package/lib/components/Index/components/NTag/components/Tooltip/tooltip.styles.d.ts +0 -4
  225. package/lib/components/Index/components/NTag/components/Tooltip/tooltip.styles.js +0 -10
  226. package/lib/components/Index/components/NTag/nTag.d.ts +0 -10
  227. package/lib/components/Index/components/NTag/nTag.js +0 -8
  228. package/lib/components/Index/components/NTagCell/nTagCell.d.ts +0 -11
  229. package/lib/components/Index/components/NTagCell/nTagCell.js +0 -29
  230. package/lib/components/Index/components/NTagCell/nTagCell.stories.d.ts +0 -5
  231. package/lib/components/Index/components/NTagCell/nTagCell.stories.js +0 -16
  232. package/lib/components/Index/components/TitleCell/titleCell.d.ts +0 -6
  233. package/lib/components/Index/components/TitleCell/titleCell.js +0 -10
  234. package/lib/components/Index/components/TitleCell/titleCell.styles.d.ts +0 -3
  235. package/lib/components/Index/components/TitleCell/titleCell.styles.js +0 -6
  236. package/lib/components/Layout/components/BackPage/components/BackPageHero/backPageHero.stories.d.ts +0 -6
  237. package/lib/components/Layout/components/BackPage/components/BackPageHero/backPageHero.stories.js +0 -10
  238. package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/AuthenticationMenu/authenticationMenu.stories.d.ts +0 -5
  239. package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/AuthenticationMenu/authenticationMenu.stories.js +0 -29
  240. package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/RequestAuthentication/requestAuthentication.d.ts +0 -6
  241. package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/RequestAuthentication/requestAuthentication.js +0 -13
  242. package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/RequestAuthentication/requestAuthentication.styles.d.ts +0 -36
  243. package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/RequestAuthentication/requestAuthentication.styles.js +0 -9
  244. package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Search/components/SearchButton/searchButton.d.ts +0 -5
  245. package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Search/components/SearchButton/searchButton.js +0 -10
  246. package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Search/components/SearchButton/searchButton.styles.d.ts +0 -36
  247. package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Search/components/SearchButton/searchButton.styles.js +0 -9
  248. package/lib/components/Layout/components/Header/hooks/useMeasureHeader.d.ts +0 -5
  249. package/lib/components/Layout/components/Header/hooks/useMeasureHeader.js +0 -19
  250. package/lib/components/Layout/components/Outline/common/constants.d.ts +0 -2
  251. package/lib/components/Layout/components/Outline/common/constants.js +0 -1
  252. package/lib/components/Login/login.stories.d.ts +0 -6
  253. package/lib/components/Login/login.stories.js +0 -31
  254. package/lib/components/Table/components/CheckboxMenu/checkboxMenu.d.ts +0 -16
  255. package/lib/components/Table/components/CheckboxMenu/checkboxMenu.js +0 -28
  256. package/lib/components/Table/components/CheckboxMenu/checkboxMenu.stories.d.ts +0 -5
  257. package/lib/components/Table/components/CheckboxMenu/checkboxMenu.stories.js +0 -46
  258. package/lib/components/Table/components/CheckboxMenu/checkboxMenu.styles.d.ts +0 -3
  259. package/lib/components/Table/components/CheckboxMenu/checkboxMenu.styles.js +0 -21
  260. package/lib/components/Table/components/EntityViewToggle/entityViewToggle.d.ts +0 -2
  261. package/lib/components/Table/components/EntityViewToggle/entityViewToggle.js +0 -37
  262. package/lib/components/TableCreator/common/constants.d.ts +0 -6
  263. package/lib/components/TableCreator/common/constants.js +0 -19
  264. package/lib/components/TableCreator/common/entities.d.ts +0 -5
  265. package/lib/components/TableCreator/common/entities.js +0 -1
  266. package/lib/components/TableCreator/tableCreator.styles.d.ts +0 -4
  267. package/lib/components/TableCreator/tableCreator.styles.js +0 -4
  268. package/lib/components/common/Alert/alert.stories.d.ts +0 -6
  269. package/lib/components/common/Alert/alert.stories.js +0 -36
  270. package/lib/components/common/Alert/components/AlertText/alertText.styles.d.ts +0 -4
  271. package/lib/components/common/Alert/components/AlertText/alertText.styles.js +0 -19
  272. package/lib/components/common/Banner/components/BannerPrimary/bannerPrimary.d.ts +0 -7
  273. package/lib/components/common/Banner/components/BannerPrimary/bannerPrimary.js +0 -5
  274. package/lib/components/common/Banner/components/BannerPrimary/bannerPrimary.styles.d.ts +0 -3
  275. package/lib/components/common/Banner/components/BannerPrimary/bannerPrimary.styles.js +0 -19
  276. package/lib/components/common/Banner/components/DismissibleBanner/dismissibleBanner.d.ts +0 -10
  277. package/lib/components/common/Banner/components/DismissibleBanner/dismissibleBanner.js +0 -16
  278. package/lib/components/common/Banner/components/SessionTimeout/sessionTimeout.styles.d.ts +0 -3
  279. package/lib/components/common/Banner/components/SessionTimeout/sessionTimeout.styles.js +0 -21
  280. package/lib/components/common/Button/components/LoginButton/loginButton.d.ts +0 -3
  281. package/lib/components/common/Button/components/LoginButton/loginButton.js +0 -6
  282. package/lib/components/common/Button/components/LoginButton/loginButton.styles.d.ts +0 -7
  283. package/lib/components/common/Button/components/LoginButton/loginButton.styles.js +0 -11
  284. package/lib/components/common/IconButton/components/LoadingIconButton/loadingIconButton.d.ts +0 -5
  285. package/lib/components/common/IconButton/components/LoadingIconButton/loadingIconButton.js +0 -10
  286. package/lib/components/common/IconButton/components/LoadingIconButton/loadingIconButton.stories.d.ts +0 -3
  287. package/lib/components/common/IconButton/components/LoadingIconButton/loadingIconButton.stories.js +0 -9
  288. package/lib/hooks/useAuthentication/common/constants.d.ts +0 -4
  289. package/lib/hooks/useAuthentication/common/constants.js +0 -19
  290. package/lib/hooks/useAuthentication/common/entities.d.ts +0 -25
  291. package/lib/hooks/useAuthentication/common/entities.js +0 -11
  292. package/lib/hooks/useAuthentication/common/utils.d.ts +0 -15
  293. package/lib/hooks/useAuthentication/common/utils.js +0 -25
  294. package/lib/hooks/useAuthentication/useAuthentication.d.ts +0 -6
  295. package/lib/hooks/useAuthentication/useAuthentication.js +0 -9
  296. package/lib/hooks/useAuthentication/useAuthenticationComplete.d.ts +0 -6
  297. package/lib/hooks/useAuthentication/useAuthenticationComplete.js +0 -55
  298. package/lib/hooks/useAuthentication/useAuthenticationForm.d.ts +0 -20
  299. package/lib/hooks/useAuthentication/useAuthenticationForm.js +0 -88
  300. package/lib/hooks/useAuthentication/useAuthenticationNIHExpiry.d.ts +0 -18
  301. package/lib/hooks/useAuthentication/useAuthenticationNIHExpiry.js +0 -50
  302. package/lib/hooks/useAuthentication/useAuthenticationStatus.d.ts +0 -20
  303. package/lib/hooks/useAuthentication/useAuthenticationStatus.js +0 -32
  304. package/lib/hooks/useAuthentication/useFetchGoogleProfile.d.ts +0 -21
  305. package/lib/hooks/useAuthentication/useFetchGoogleProfile.js +0 -41
  306. package/lib/hooks/useAuthentication/useFetchTerraNIHProfile.d.ts +0 -18
  307. package/lib/hooks/useAuthentication/useFetchTerraNIHProfile.js +0 -62
  308. package/lib/hooks/useAuthentication/useFetchTerraProfile.d.ts +0 -24
  309. package/lib/hooks/useAuthentication/useFetchTerraProfile.js +0 -62
  310. package/lib/hooks/useAuthentication/useFetchTerraTermsOfService.d.ts +0 -15
  311. package/lib/hooks/useAuthentication/useFetchTerraTermsOfService.js +0 -62
  312. package/lib/hooks/useAuthentication/useTokenClient.d.ts +0 -11
  313. package/lib/hooks/useAuthentication/useTokenClient.js +0 -29
  314. package/lib/hooks/useAuthenticationConfig.d.ts +0 -6
  315. package/lib/hooks/useAuthenticationConfig.js +0 -14
  316. package/lib/hooks/useCategoryConfigs.d.ts +0 -6
  317. package/lib/hooks/useCategoryConfigs.js +0 -17
  318. package/lib/hooks/useEntityListRelatedView.d.ts +0 -15
  319. package/lib/hooks/useEntityListRelatedView.js +0 -62
  320. package/lib/hooks/useFileManifest/common/buildFileManifestRequestURL.d.ts +0 -15
  321. package/lib/hooks/useFileManifest/common/buildFileManifestRequestURL.js +0 -27
  322. package/lib/hooks/useFileManifest/useFileManifestURL.d.ts +0 -5
  323. package/lib/hooks/useFileManifest/useFileManifestURL.js +0 -11
  324. package/lib/hooks/useFileManifest/useRequestFileManifest.d.ts +0 -9
  325. package/lib/hooks/useFileManifest/useRequestFileManifest.js +0 -37
  326. package/lib/hooks/useLayoutState.d.ts +0 -6
  327. package/lib/hooks/useLayoutState.js +0 -9
  328. package/lib/hooks/useMenu.d.ts +0 -10
  329. package/lib/hooks/useMenu.js +0 -17
  330. package/lib/hooks/useMenuWithPosition.d.ts +0 -14
  331. package/lib/hooks/useMenuWithPosition.js +0 -33
  332. package/lib/hooks/useSessionTimeout.d.ts +0 -11
  333. package/lib/hooks/useSessionTimeout.js +0 -28
  334. package/lib/providers/authentication.d.ts +0 -51
  335. package/lib/providers/authentication.js +0 -110
  336. package/lib/providers/layoutState.d.ts +0 -40
  337. package/lib/providers/layoutState.js +0 -47
  338. package/lib/styles/common/mixins/shadows.d.ts +0 -3
  339. package/lib/styles/common/mixins/shadows.js +0 -4
  340. package/lib/theme/common/entities.d.ts +0 -6
  341. package/lib/theme/common/entities.js +0 -1
  342. package/src/components/DataDictionary/components/Table/columns/columnDef.ts +0 -47
  343. package/src/components/DataDictionary/components/Table/columns/columnIdentifier.ts +0 -5
  344. package/src/components/DataDictionary/components/Table/columns/types.ts +0 -3
  345. package/src/components/Index/components/EntitiesView/constants.ts +0 -1
  346. package/src/styles/common/mixins/shadows.ts +0 -7
  347. package/src/theme/common/entities.ts +0 -7
  348. /package/lib/components/{DataDictionary/components/Table/columns → Filter/components/FilterRange/hooks/UseFilterRange}/types.js +0 -0
  349. /package/lib/styles/common/{mui → constants}/palette.d.ts +0 -0
  350. /package/lib/styles/common/{mui → constants}/palette.js +0 -0
  351. /package/src/styles/common/{mui → constants}/palette.ts +0 -0
@@ -1,4 +1,4 @@
1
- export const COLOR = {
1
+ const COLOR = {
2
2
  ERROR: "error",
3
3
  INFO: "info",
4
4
  INHERIT: "inherit",
@@ -7,7 +7,12 @@ export const COLOR = {
7
7
  SUCCESS: "success",
8
8
  WARNING: "warning",
9
9
  };
10
- export const VARIANT = {
10
+ const SIZE = {
11
+ LARGE: "large",
12
+ MEDIUM: "medium",
13
+ SMALL: "small",
14
+ };
15
+ const VARIANT = {
11
16
  ACTIVE_NAV: "activeNav",
12
17
  BACK_NAV: "backNav",
13
18
  CONTAINED: "contained",
@@ -15,3 +20,8 @@ export const VARIANT = {
15
20
  OUTLINED: "outlined",
16
21
  TEXT: "text",
17
22
  };
23
+ export const BUTTON_PROPS = {
24
+ COLOR,
25
+ SIZE,
26
+ VARIANT,
27
+ };
@@ -1,4 +1,5 @@
1
1
  export declare const MUI_CLASSES: {
2
2
  ACTIVE: string;
3
3
  COMPLETED: string;
4
+ SELECTED: string;
4
5
  };
@@ -1,4 +1,5 @@
1
1
  export const MUI_CLASSES = {
2
2
  ACTIVE: "Mui-active",
3
3
  COMPLETED: "Mui-completed",
4
+ SELECTED: "Mui-selected",
4
5
  };
@@ -0,0 +1,19 @@
1
+ export declare const TEST_IDS: {
2
+ CLEAR_ALL_FILTERS: string;
3
+ ENTITIES_VIEW: string;
4
+ EXPORT_BUTTON: string;
5
+ FILTERS: string;
6
+ FILTER_CONTROLS: string;
7
+ FILTER_COUNT: string;
8
+ FILTER_ITEM: string;
9
+ FILTER_POPOVER: string;
10
+ FILTER_RANGE: string;
11
+ FILTER_TERM: string;
12
+ SEARCH_ALL_FILTERS: string;
13
+ SIDEBAR: string;
14
+ SIDEBAR_DRAWER: string;
15
+ TABLE_FIRST_CELL: string;
16
+ TABLE_PAGINATION: string;
17
+ TABLE_PAGINATION_PAGE: string;
18
+ TABLE_PAGINATION_RESULTS: string;
19
+ };
@@ -0,0 +1,19 @@
1
+ export const TEST_IDS = {
2
+ CLEAR_ALL_FILTERS: "clear-all-filters",
3
+ ENTITIES_VIEW: "entities-view",
4
+ EXPORT_BUTTON: "export-button",
5
+ FILTERS: "filters",
6
+ FILTER_CONTROLS: "filter-controls",
7
+ FILTER_COUNT: "filter-count",
8
+ FILTER_ITEM: "filter-item",
9
+ FILTER_POPOVER: "filter-popover",
10
+ FILTER_RANGE: "filter-range",
11
+ FILTER_TERM: "filter-term",
12
+ SEARCH_ALL_FILTERS: "search-all-filters",
13
+ SIDEBAR: "sidebar",
14
+ SIDEBAR_DRAWER: "sidebar-drawer",
15
+ TABLE_FIRST_CELL: "table-first-cell",
16
+ TABLE_PAGINATION: "table-pagination",
17
+ TABLE_PAGINATION_PAGE: "table-pagination-page",
18
+ TABLE_PAGINATION_RESULTS: "table-pagination-results",
19
+ };
@@ -19,10 +19,9 @@ export declare const MuiAccordionSummary: Components["MuiAccordionSummary"];
19
19
  export declare const MuiAppBar: Components["MuiAppBar"];
20
20
  /**
21
21
  * MuiBackdrop Component
22
- * @param theme - Theme.
23
22
  * @returns MuiBackdrop component theme styles.
24
23
  */
25
- export declare const MuiBackdrop: (theme: Theme) => Components["MuiBackdrop"];
24
+ export declare const MuiBackdrop: Components["MuiBackdrop"];
26
25
  /**
27
26
  * MuiBreadcrumbs Component
28
27
  * @param theme - Theme.
@@ -80,7 +79,7 @@ export declare const MuiCssBaseline: (theme: Theme) => Components["MuiCssBaselin
80
79
  * @param theme - Theme.
81
80
  * @returns MuiDialog component theme styles.
82
81
  */
83
- export declare const MuiDialog: (theme: Theme) => Components["MuiDialog"];
82
+ export declare const MuiDialog: Components["MuiDialog"];
84
83
  /**
85
84
  * MuiDialogActions Component
86
85
  */
@@ -1,8 +1,9 @@
1
1
  import { DropDownIcon } from "../../components/common/Form/components/Select/components/DropDownIcon/dropDownIcon";
2
+ import { COLOR_MIXES } from "../../styles/common/constants/colorMixes";
3
+ import { PALETTE } from "../../styles/common/constants/palette";
4
+ import { SHADOWS } from "../../styles/common/constants/shadows";
2
5
  import { CHIP_PROPS } from "../../styles/common/mui/chip";
3
6
  import { desktopUp, mobileUp, tabletUp } from "./breakpoints";
4
- import { alpha32, alpha60, alpha64, alpha80, black04, black08, white, } from "./palette";
5
- import { strokeBottom, strokeTop } from "./shadows";
6
7
  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";
7
8
  // Constants
8
9
  const FLEX_START = "flex-start";
@@ -21,13 +22,13 @@ export const MuiAccordion = (theme) => {
21
22
  styleOverrides: {
22
23
  root: {
23
24
  backgroundColor: "transparent",
24
- boxShadow: `${strokeTop} ${theme.palette.smoke.main}, ${strokeBottom} ${theme.palette.smoke.main}`,
25
+ boxShadow: `inset 0 1px 0 0 ${theme.palette.smoke.main}, inset 0 -1px 0 0 ${theme.palette.smoke.main}`,
25
26
  // eslint-disable-next-line sort-keys -- disabling key order for readability
26
27
  "&:before": {
27
28
  display: "none",
28
29
  },
29
30
  "&:nth-of-type(n+2)": {
30
- boxShadow: `${strokeBottom} ${theme.palette.smoke.main}`,
31
+ boxShadow: `inset 0 -1px 0 0 ${theme.palette.smoke.main}`,
31
32
  },
32
33
  },
33
34
  },
@@ -70,26 +71,23 @@ export const MuiAppBar = {
70
71
  },
71
72
  styleOverrides: {
72
73
  colorDefault: {
73
- backgroundColor: white,
74
+ backgroundColor: PALETTE.COMMON_WHITE,
74
75
  },
75
76
  },
76
77
  };
77
78
  /**
78
79
  * MuiBackdrop Component
79
- * @param theme - Theme.
80
80
  * @returns MuiBackdrop component theme styles.
81
81
  */
82
- export const MuiBackdrop = (theme) => {
83
- return {
84
- styleOverrides: {
85
- invisible: {
86
- backgroundColor: "transparent",
87
- },
88
- root: {
89
- backgroundColor: `${theme.palette.ink.main}${alpha80}`,
90
- },
82
+ export const MuiBackdrop = {
83
+ styleOverrides: {
84
+ invisible: {
85
+ backgroundColor: "transparent",
91
86
  },
92
- };
87
+ root: {
88
+ backgroundColor: COLOR_MIXES.INK_MAIN_80,
89
+ },
90
+ },
93
91
  };
94
92
  /**
95
93
  * MuiBreadcrumbs Component
@@ -159,17 +157,17 @@ export const MuiButton = (theme) => {
159
157
  },
160
158
  containedSecondary: {
161
159
  backgroundColor: theme.palette.common.white,
162
- boxShadow: `inset 0 0 0 1px ${theme.palette.smoke.dark}, 0 1px 0 0 ${black08}`,
160
+ boxShadow: `inset 0 0 0 1px ${theme.palette.smoke.dark}, 0 1px 0 0 ${COLOR_MIXES.COMMON_BLACK_08}`,
163
161
  color: theme.palette.ink.main,
164
162
  // eslint-disable-next-line sort-keys -- disabling key order for readability
165
163
  "&.Mui-focusVisible": {
166
164
  backgroundColor: theme.palette.common.white,
167
- boxShadow: `inset 0 0 0 1px ${theme.palette.smoke.dark}, 0 1px 0 0 ${black08}`,
165
+ boxShadow: `inset 0 0 0 1px ${theme.palette.smoke.dark}, 0 1px 0 0 ${COLOR_MIXES.COMMON_BLACK_08}`,
168
166
  },
169
167
  // eslint-disable-next-line sort-keys -- disabling key order for readability
170
168
  "&:hover": {
171
169
  backgroundColor: theme.palette.smoke.lightest,
172
- boxShadow: `inset 0 0 0 1px ${theme.palette.smoke.dark}, 0 1px 0 0 ${black08}`,
170
+ boxShadow: `inset 0 0 0 1px ${theme.palette.smoke.dark}, 0 1px 0 0 ${COLOR_MIXES.COMMON_BLACK_08}`,
173
171
  },
174
172
  // eslint-disable-next-line sort-keys -- disabling key order for readability
175
173
  "&:active": {
@@ -178,7 +176,7 @@ export const MuiButton = (theme) => {
178
176
  },
179
177
  "&:disabled": {
180
178
  backgroundColor: theme.palette.common.white,
181
- boxShadow: `inset 0 0 0 1px ${theme.palette.smoke.dark}, 0 1px 0 0 ${black08}`,
179
+ boxShadow: `inset 0 0 0 1px ${theme.palette.smoke.dark}, 0 1px 0 0 ${COLOR_MIXES.COMMON_BLACK_08}`,
182
180
  color: theme.palette.ink.main,
183
181
  opacity: 0.5,
184
182
  },
@@ -189,19 +187,19 @@ export const MuiButton = (theme) => {
189
187
  outlinedSecondary: {
190
188
  backgroundColor: "transparent",
191
189
  border: "none",
192
- boxShadow: `inset 0 0 0 1px ${theme.palette.ink.main}${alpha32}`,
190
+ boxShadow: `inset 0 0 0 1px ${COLOR_MIXES.INK_MAIN_32}`,
193
191
  color: theme.palette.ink.main,
194
192
  // eslint-disable-next-line sort-keys -- disabling key order for readability
195
193
  "&:hover": {
196
194
  backgroundColor: "transparent",
197
195
  border: "none",
198
- boxShadow: `inset 0 0 0 1px ${theme.palette.ink.main}${alpha64}`,
196
+ boxShadow: `inset 0 0 0 1px ${COLOR_MIXES.INK_MAIN_64}`,
199
197
  },
200
198
  // eslint-disable-next-line sort-keys -- disabling key order for readability
201
199
  "&:disabled": {
202
200
  backgroundColor: "transparent",
203
201
  border: "none",
204
- boxShadow: `inset 0 0 0 1px ${theme.palette.ink.main}${alpha32}`,
202
+ boxShadow: `inset 0 0 0 1px ${COLOR_MIXES.INK_MAIN_32}`,
205
203
  color: theme.palette.ink.main,
206
204
  opacity: 0.5,
207
205
  },
@@ -460,7 +458,7 @@ export const MuiChip = (theme) => {
460
458
  style: {
461
459
  ...theme.typography[TEXT_BODY_SMALL_400],
462
460
  backgroundColor: theme.palette.smoke.main,
463
- boxShadow: `0 0 0 2px ${white}`,
461
+ boxShadow: `0 0 0 2px ${PALETTE.COMMON_WHITE}`,
464
462
  height: 24,
465
463
  justifySelf: FLEX_START,
466
464
  minWidth: 0,
@@ -470,7 +468,7 @@ export const MuiChip = (theme) => {
470
468
  props: { variant: "status" },
471
469
  style: {
472
470
  ...theme.typography[TEXT_BODY_SMALL_500],
473
- boxShadow: `0 0 0 2px ${white}`,
471
+ boxShadow: `0 0 0 2px ${PALETTE.COMMON_WHITE}`,
474
472
  height: 20,
475
473
  maxWidth: "fit-content",
476
474
  minWidth: 0,
@@ -553,20 +551,18 @@ export const MuiCssBaseline = (theme) => {
553
551
  * @param theme - Theme.
554
552
  * @returns MuiDialog component theme styles.
555
553
  */
556
- export const MuiDialog = (theme) => {
557
- return {
558
- styleOverrides: {
559
- paper: {
560
- boxShadow: theme.shadows[2], // elevation02
561
- },
562
- root: {
563
- // eslint-disable-next-line sort-keys -- disabling key order for readability
564
- "& .MuiBackdrop-root": {
565
- backgroundColor: `${theme.palette.ink.main}${alpha60}`,
566
- },
554
+ export const MuiDialog = {
555
+ styleOverrides: {
556
+ paper: {
557
+ boxShadow: SHADOWS["02"],
558
+ },
559
+ root: {
560
+ // eslint-disable-next-line sort-keys -- disabling key order for readability
561
+ "& .MuiBackdrop-root": {
562
+ backgroundColor: COLOR_MIXES.INK_MAIN_60,
567
563
  },
568
564
  },
569
- };
565
+ },
570
566
  };
571
567
  /**
572
568
  * MuiDialogActions Component
@@ -721,7 +717,7 @@ export const MuiIconButton = (theme) => {
721
717
  },
722
718
  colorSecondary: {
723
719
  backgroundColor: theme.palette.common.white,
724
- boxShadow: `inset 0 0 0 1px ${theme.palette.smoke.dark}, 0 1px 0 0 ${black08}`,
720
+ boxShadow: `inset 0 0 0 1px ${theme.palette.smoke.dark}, 0 1px 0 0 ${COLOR_MIXES.COMMON_BLACK_08}`,
725
721
  color: theme.palette.ink.main,
726
722
  // eslint-disable-next-line sort-keys -- disabling key order for readability
727
723
  "&.Mui-disabled": {
@@ -956,8 +952,8 @@ export const MuiOutlinedInput = (theme) => {
956
952
  borderColor: theme.palette.smoke.dark,
957
953
  },
958
954
  root: {
959
- backgroundColor: white,
960
- boxShadow: `inset 0 2px 0 0 ${black04}`,
955
+ backgroundColor: PALETTE.COMMON_WHITE,
956
+ boxShadow: `inset 0 2px 0 0 ${COLOR_MIXES.COMMON_BLACK_04}`,
961
957
  paddingLeft: 12,
962
958
  // eslint-disable-next-line sort-keys -- disabling key order for readability
963
959
  "& .MuiSvgIcon-root": {
@@ -1011,20 +1007,20 @@ export const MuiPaper = (theme) => {
1011
1007
  {
1012
1008
  props: { elevation: 1 },
1013
1009
  style: {
1014
- boxShadow: theme.shadows[1], // elevation01
1010
+ boxShadow: SHADOWS["01"],
1015
1011
  },
1016
1012
  },
1017
1013
  {
1018
1014
  props: { elevation: 2 },
1019
1015
  style: {
1020
- boxShadow: theme.shadows[2], // elevation02
1016
+ boxShadow: SHADOWS["02"],
1021
1017
  },
1022
1018
  },
1023
1019
  {
1024
1020
  props: { variant: "footer" },
1025
1021
  style: {
1026
1022
  backgroundColor: theme.palette.smoke.light,
1027
- boxShadow: `${strokeTop} ${theme.palette.smoke.main}, ${strokeBottom} ${theme.palette.smoke.main}`,
1023
+ boxShadow: `inset 0 1px 0 0 ${theme.palette.smoke.main}, inset 0 -1px 0 0 ${theme.palette.smoke.main}`,
1028
1024
  },
1029
1025
  },
1030
1026
  {
@@ -1034,7 +1030,7 @@ export const MuiPaper = (theme) => {
1034
1030
  borderRadius: 8,
1035
1031
  borderStyle: "solid",
1036
1032
  borderWidth: 1,
1037
- boxShadow: theme.shadows[2], // elevation02
1033
+ boxShadow: SHADOWS["02"],
1038
1034
  },
1039
1035
  },
1040
1036
  {
@@ -1043,7 +1039,7 @@ export const MuiPaper = (theme) => {
1043
1039
  borderColor: theme.palette.smoke.main,
1044
1040
  borderStyle: "solid",
1045
1041
  borderWidth: 1,
1046
- boxShadow: theme.shadows[1], // elevation01
1042
+ boxShadow: SHADOWS["01"],
1047
1043
  },
1048
1044
  },
1049
1045
  {
@@ -1054,7 +1050,7 @@ export const MuiPaper = (theme) => {
1054
1050
  borderRadius: 0,
1055
1051
  borderStyle: "solid",
1056
1052
  borderWidth: "0 0 1px 0",
1057
- boxShadow: theme.shadows[1], // elevation01,
1053
+ boxShadow: SHADOWS["01"],
1058
1054
  // eslint-disable-next-line sort-keys -- disabling key order for readability
1059
1055
  "&.MuiDialog-paper": {
1060
1056
  marginLeft: 0,
@@ -1070,7 +1066,7 @@ export const MuiPaper = (theme) => {
1070
1066
  borderColor: theme.palette.smoke.main,
1071
1067
  borderStyle: "solid",
1072
1068
  borderWidth: 1,
1073
- boxShadow: theme.shadows[1], // elevation01
1069
+ boxShadow: SHADOWS["01"],
1074
1070
  },
1075
1071
  },
1076
1072
  ],
@@ -1314,7 +1310,7 @@ export const MuiTabs = (theme) => {
1314
1310
  height: 3,
1315
1311
  },
1316
1312
  root: {
1317
- boxShadow: `${strokeBottom} ${theme.palette.smoke.main}`,
1313
+ boxShadow: `inset 0 -1px 0 0 ${theme.palette.smoke.main}`,
1318
1314
  minHeight: "unset",
1319
1315
  position: "relative", // Positions scroll fuzz.
1320
1316
  },
@@ -1351,10 +1347,10 @@ export const MuiToggleButton = (theme) => {
1351
1347
  },
1352
1348
  // eslint-disable-next-line sort-keys -- disabling key order for readability
1353
1349
  "&.Mui-selected": {
1354
- backgroundColor: white,
1350
+ backgroundColor: PALETTE.COMMON_WHITE,
1355
1351
  // eslint-disable-next-line sort-keys -- disabling key order for readability
1356
1352
  "&:hover": {
1357
- backgroundColor: white,
1353
+ backgroundColor: PALETTE.COMMON_WHITE,
1358
1354
  },
1359
1355
  },
1360
1356
  },
@@ -1427,7 +1423,7 @@ export const MuiTooltip = (theme) => {
1427
1423
  tooltip: {
1428
1424
  ...theme.typography[TEXT_BODY_SMALL_400],
1429
1425
  backgroundColor: theme.palette.ink.main,
1430
- boxShadow: theme.shadows[2], // elevation02
1426
+ boxShadow: SHADOWS["02"],
1431
1427
  boxSizing: "content-box",
1432
1428
  padding: "8px 12px",
1433
1429
  },
@@ -1,49 +1,5 @@
1
1
  import { PaletteColorOptions } from "@mui/material";
2
2
  import { CommonColors, TypeBackground, TypeText } from "@mui/material/styles";
3
- /**
4
- * Color constants
5
- */
6
- export declare const alertLight: string;
7
- export declare const alertLightest: string;
8
- export declare const alertMain: string;
9
- export declare const backgroundDefault: string;
10
- export declare const infoContrastText: string;
11
- export declare const infoLight: string;
12
- export declare const infoLightest: string;
13
- export declare const infoMain: string;
14
- export declare const inkLight: string;
15
- export declare const inkMain: string;
16
- export declare const primaryDark: string;
17
- export declare const primaryLightest: string;
18
- export declare const primaryMain: string;
19
- export declare const smokeDark: string;
20
- export declare const smokeLight: string;
21
- export declare const smokeLightest: string;
22
- export declare const smokeMain: string;
23
- export declare const successLight: string;
24
- export declare const successLightest: string;
25
- export declare const successMain: string;
26
- export declare const textPrimary: string;
27
- export declare const warningContrastText: string;
28
- export declare const warningLight: string;
29
- export declare const warningLightest: string;
30
- export declare const warningMain: string;
31
- export declare const black: string;
32
- export declare const white: string;
33
- /**
34
- * Color alpha constants
35
- */
36
- export declare const alpha04: string;
37
- export declare const alpha08: string;
38
- export declare const alpha32: string;
39
- export declare const alpha60: string;
40
- export declare const alpha64: string;
41
- export declare const alpha80: string;
42
- /**
43
- * Shades
44
- */
45
- export declare const black04: string;
46
- export declare const black08: string;
47
3
  /**
48
4
  * Palette Option "Alert"
49
5
  */
@@ -80,135 +80,80 @@ const BLACK = {
80
80
  const WHITE = {
81
81
  DEFAULT: "#ffffff",
82
82
  };
83
- /**
84
- * Color alpha
85
- */
86
- const ALPHA = {
87
- A04: "0a",
88
- A08: "14",
89
- A32: "52",
90
- A60: "99",
91
- A64: "a3",
92
- A80: "cc",
93
- };
94
- /**
95
- * Color constants
96
- */
97
- export const alertLight = ALERT.LIGHT;
98
- export const alertLightest = ALERT.LIGHTEST;
99
- export const alertMain = ALERT.MAIN;
100
- export const backgroundDefault = BACKGROUND.DEFAULT;
101
- export const infoContrastText = INFO.CONTRAST_TEXT;
102
- export const infoLight = INFO.LIGHT;
103
- export const infoLightest = INFO.LIGHTEST;
104
- export const infoMain = INFO.MAIN;
105
- export const inkLight = INK.LIGHT;
106
- export const inkMain = INK.MAIN;
107
- export const primaryDark = PRIMARY.DARK;
108
- export const primaryLightest = PRIMARY.LIGHTEST;
109
- export const primaryMain = PRIMARY.MAIN;
110
- export const smokeDark = SMOKE.DARK;
111
- export const smokeLight = SMOKE.LIGHT;
112
- export const smokeLightest = SMOKE.LIGHTEST;
113
- export const smokeMain = SMOKE.MAIN;
114
- export const successLight = SUCCESS.LIGHT;
115
- export const successLightest = SUCCESS.LIGHTEST;
116
- export const successMain = SUCCESS.MAIN;
117
- export const textPrimary = TEXT.PRIMARY;
118
- export const warningContrastText = WARNING.CONTRAST_TEXT;
119
- export const warningLight = WARNING.LIGHT;
120
- export const warningLightest = WARNING.LIGHTEST;
121
- export const warningMain = WARNING.MAIN;
122
- export const black = BLACK.DEFAULT;
123
- export const white = WHITE.DEFAULT;
124
- /**
125
- * Color alpha constants
126
- */
127
- export const alpha04 = ALPHA.A04;
128
- export const alpha08 = ALPHA.A08;
129
- export const alpha32 = ALPHA.A32;
130
- export const alpha60 = ALPHA.A60;
131
- export const alpha64 = ALPHA.A64;
132
- export const alpha80 = ALPHA.A80;
133
- /**
134
- * Shades
135
- */
136
- export const black04 = `${black}${alpha04}`;
137
- export const black08 = `${black}${alpha08}`;
138
83
  /**
139
84
  * Palette Option "Alert"
140
85
  */
141
86
  export const alert = {
142
- light: alertLight,
143
- lightest: alertLightest,
144
- main: alertMain,
87
+ light: ALERT.LIGHT,
88
+ lightest: ALERT.LIGHTEST,
89
+ main: ALERT.MAIN,
145
90
  };
146
91
  /**
147
92
  * Palette Option "Background"
148
93
  */
149
94
  export const background = {
150
- default: backgroundDefault,
95
+ default: BACKGROUND.DEFAULT,
151
96
  };
152
97
  /**
153
98
  * Palette Option "Common"
154
99
  */
155
100
  export const common = {
156
- black: black,
157
- white: white,
101
+ black: BLACK.DEFAULT,
102
+ white: WHITE.DEFAULT,
158
103
  };
159
104
  /**
160
105
  * Palette Option "Info"
161
106
  */
162
107
  export const info = {
163
- contrastText: infoContrastText,
164
- light: infoLight,
165
- lightest: infoLightest,
166
- main: infoMain,
108
+ contrastText: INFO.CONTRAST_TEXT,
109
+ light: INFO.LIGHT,
110
+ lightest: INFO.LIGHTEST,
111
+ main: INFO.MAIN,
167
112
  };
168
113
  /**
169
114
  * Palette Option "Ink"
170
115
  */
171
116
  export const ink = {
172
- light: inkLight,
173
- main: inkMain,
117
+ light: INK.LIGHT,
118
+ main: INK.MAIN,
174
119
  };
175
120
  /**
176
121
  * Palette Option "Primary"
177
122
  */
178
123
  export const primary = {
179
- dark: primaryDark,
180
- lightest: primaryLightest,
181
- main: primaryMain,
124
+ dark: PRIMARY.DARK,
125
+ lightest: PRIMARY.LIGHTEST,
126
+ main: PRIMARY.MAIN,
182
127
  };
183
128
  /**
184
129
  * Palette Option "Smoke"
185
130
  */
186
131
  export const smoke = {
187
- dark: smokeDark,
188
- light: smokeLight,
189
- lightest: smokeLightest,
190
- main: smokeMain,
132
+ dark: SMOKE.DARK,
133
+ light: SMOKE.LIGHT,
134
+ lightest: SMOKE.LIGHTEST,
135
+ main: SMOKE.MAIN,
191
136
  };
192
137
  /**
193
138
  * Palette Option "Success"
194
139
  */
195
140
  export const success = {
196
- light: successLight,
197
- lightest: successLightest,
198
- main: successMain,
141
+ light: SUCCESS.LIGHT,
142
+ lightest: SUCCESS.LIGHTEST,
143
+ main: SUCCESS.MAIN,
199
144
  };
200
145
  /**
201
146
  * Palette Option "Text"
202
147
  */
203
148
  export const text = {
204
- primary: textPrimary,
149
+ primary: TEXT.PRIMARY,
205
150
  };
206
151
  /**
207
152
  * Palette Option "Warning"
208
153
  */
209
154
  export const warning = {
210
- contrastText: warningContrastText,
211
- light: warningLight,
212
- lightest: warningLightest,
213
- main: warningMain,
155
+ contrastText: WARNING.CONTRAST_TEXT,
156
+ light: WARNING.LIGHT,
157
+ lightest: WARNING.LIGHTEST,
158
+ main: WARNING.MAIN,
214
159
  };
@@ -1,28 +1,2 @@
1
- declare enum ELEVATION {
2
- E00 = "none",
3
- E01 = "0 1px 4px 0 #00000012",
4
- E02 = "0 8px 8px -4px #10182808, 0 20px 24px -4px #10182814"
5
- }
6
- /**
7
- * Stroke
8
- */
9
- declare enum STROKE {
10
- BOTTOM = "inset 0 -1px 0 0",
11
- TOP = "inset 0 1px 0 0"
12
- }
13
- /**
14
- * Elevation constants
15
- */
16
- export declare const elevation00 = ELEVATION.E00;
17
- export declare const elevation01 = ELEVATION.E01;
18
- export declare const elevation02 = ELEVATION.E02;
19
- /**
20
- * Shadows constants
21
- */
22
- export declare const shadows: ELEVATION[];
23
- /**
24
- * Stroke constants
25
- */
26
- export declare const strokeBottom = STROKE.BOTTOM;
27
- export declare const strokeTop = STROKE.TOP;
28
- export {};
1
+ import { Shadows } from "@mui/material";
2
+ export declare const shadows: Shadows;