@verdaccio/ui-theme 6.0.0-6-next.9 → 6.0.0-6-next.13

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 (323) hide show
  1. package/.babelrc +1 -1
  2. package/.eslintrc +0 -15
  3. package/CHANGELOG.md +61 -0
  4. package/jest/api/packages.json +42 -0
  5. package/jest/jest.config.js +2 -2
  6. package/jest/server-handlers.ts +9 -0
  7. package/jest/server.ts +6 -0
  8. package/jest/setup-env.ts +18 -0
  9. package/jest/setup.ts +2 -7
  10. package/jest/unit/components/__mocks__/token.ts +0 -1
  11. package/jest/unit/components/store/login.ts +1 -0
  12. package/package.json +43 -33
  13. package/src/App/App.test.tsx +75 -51
  14. package/src/App/App.tsx +7 -42
  15. package/src/App/AppRoute.tsx +3 -16
  16. package/src/App/Footer/Footer.test.tsx +0 -1
  17. package/src/App/Footer/Footer.tsx +35 -22
  18. package/src/App/Footer/__snapshots__/Footer.test.tsx.snap +208 -302
  19. package/src/App/Footer/styles.ts +2 -3
  20. package/src/App/Header/Header.test.tsx +53 -61
  21. package/src/App/Header/Header.tsx +13 -24
  22. package/src/App/Header/HeaderGreetings.tsx +0 -1
  23. package/src/App/Header/HeaderLeft.tsx +0 -1
  24. package/src/App/Header/HeaderMenu.tsx +6 -6
  25. package/src/App/Header/HeaderRight.tsx +1 -2
  26. package/src/App/Header/HeaderToolTip.tsx +0 -1
  27. package/src/App/Header/HeaderToolTipIcon.tsx +10 -10
  28. package/src/App/Header/LanguageSwitch.tsx +17 -79
  29. package/src/App/Header/LoginDialog/LoginDialog.test.tsx +25 -35
  30. package/src/App/Header/LoginDialog/LoginDialog.tsx +28 -46
  31. package/src/App/Header/LoginDialog/LoginDialogCloseButton.tsx +1 -2
  32. package/src/App/Header/LoginDialog/LoginDialogForm.tsx +0 -1
  33. package/src/App/Header/LoginDialog/LoginDialogFormError.tsx +1 -2
  34. package/src/App/Header/LoginDialog/LoginDialogHeader.tsx +4 -4
  35. package/src/App/Header/RegistryInfoContent/RegistryInfoContent.test.tsx +1 -3
  36. package/src/App/Header/RegistryInfoContent/RegistryInfoContent.tsx +9 -10
  37. package/src/App/Header/RegistryInfoDialog/RegistryInfoDialog.tsx +1 -2
  38. package/src/App/Header/RegistryInfoDialog/styles.ts +0 -1
  39. package/src/App/Header/Search/Search.test.tsx +48 -43
  40. package/src/App/Header/Search/Search.tsx +23 -108
  41. package/src/App/Header/Search/__snapshots__/Search.test.tsx.snap +392 -28
  42. package/src/App/Header/styles.ts +2 -3
  43. package/src/App/index.ts +0 -1
  44. package/src/App/utils/loadable.tsx +3 -1
  45. package/src/components/ActionBar/ActionBar.test.tsx +13 -14
  46. package/src/components/ActionBar/ActionBar.tsx +0 -2
  47. package/src/components/ActionBar/ActionBarAction.tsx +11 -14
  48. package/src/components/ActionBar/__snapshots__/ActionBar.test.tsx.snap +198 -53
  49. package/src/components/AppBar.tsx +1 -1
  50. package/src/components/Author/Author.test.tsx +1 -4
  51. package/src/components/Author/Author.tsx +2 -4
  52. package/src/components/Author/__snapshots__/Author.test.tsx.snap +804 -48
  53. package/src/components/Author/styles.ts +0 -1
  54. package/src/components/AutoComplete/AutoComplete.tsx +85 -163
  55. package/src/components/AutoComplete/AutoCompleteV2.tsx +8 -10
  56. package/src/components/AutoComplete/styles.tsx +0 -15
  57. package/src/components/Avatar.tsx +1 -1
  58. package/src/components/Box.tsx +1 -1
  59. package/src/components/Button.tsx +1 -1
  60. package/src/components/Card.tsx +1 -1
  61. package/src/components/CardActions.tsx +1 -1
  62. package/src/components/CardContent.tsx +1 -1
  63. package/src/components/Chip.tsx +1 -1
  64. package/src/components/CircularProgress.tsx +2 -2
  65. package/src/components/CopyToClipBoard.tsx +2 -3
  66. package/src/components/Dialog.tsx +1 -1
  67. package/src/components/DialogActions.tsx +2 -2
  68. package/src/components/DialogContent.tsx +2 -2
  69. package/src/components/DialogTitle.tsx +1 -1
  70. package/src/components/Divider.tsx +1 -1
  71. package/src/components/FloatingActionButton.tsx +1 -1
  72. package/src/components/FormControl.tsx +1 -1
  73. package/src/components/FormHelperText.tsx +2 -2
  74. package/src/components/Grid.tsx +1 -1
  75. package/src/components/Heading.tsx +1 -1
  76. package/src/components/IconButton.tsx +1 -1
  77. package/src/components/Icons/index.ts +1 -17
  78. package/src/components/Input.tsx +1 -1
  79. package/src/components/InputAdornment/InputAdornment.tsx +2 -2
  80. package/src/components/InputLabel.tsx +1 -1
  81. package/src/components/Label/Label.test.tsx +0 -1
  82. package/src/components/Label/Label.tsx +2 -3
  83. package/src/components/List.tsx +1 -1
  84. package/src/components/ListItem.tsx +1 -1
  85. package/src/components/ListItemText.tsx +1 -4
  86. package/src/components/Loading/Loading.test.tsx +0 -1
  87. package/src/components/Loading/Loading.tsx +1 -2
  88. package/src/components/Loading/Spinner/Spinner.test.tsx +1 -2
  89. package/src/components/Loading/Spinner/Spinner.tsx +1 -2
  90. package/src/components/Loading/Spinner/__snapshots__/Spinner.test.tsx.snap +114 -16
  91. package/src/components/Loading/__snapshots__/Loading.test.tsx.snap +63 -11
  92. package/src/components/Loading/styles.ts +1 -2
  93. package/src/components/Logo/Logo.test.tsx +0 -1
  94. package/src/components/Logo/Logo.tsx +1 -2
  95. package/src/components/Logo/__snapshots__/Logo.test.tsx.snap +2 -0
  96. package/src/components/Menu.tsx +1 -1
  97. package/src/components/MenuItem.tsx +1 -1
  98. package/src/components/NotFound/NotFound.tsx +1 -3
  99. package/src/components/NotFound/Notfound.test.tsx +1 -2
  100. package/src/components/NotFound/__snapshots__/Notfound.test.tsx.snap +138 -11
  101. package/src/components/NotFound/styles.ts +0 -1
  102. package/src/components/Paper.tsx +1 -1
  103. package/src/components/SnackbarContent.tsx +1 -1
  104. package/src/components/SvgIcon.tsx +1 -1
  105. package/src/components/Tab.tsx +1 -1
  106. package/src/components/Tabs.tsx +1 -1
  107. package/src/components/Text/Text.tsx +1 -1
  108. package/src/components/Text/TextConfig.ts +1 -1
  109. package/src/components/TextField/TextField.test.tsx +0 -1
  110. package/src/components/TextField/TextField.tsx +2 -2
  111. package/src/components/TextField/__snapshots__/TextField.test.tsx.snap +216 -3
  112. package/src/components/Toolbar.tsx +1 -1
  113. package/src/components/Tooltip.tsx +1 -1
  114. package/src/design-tokens/ResetStyles.tsx +1 -1
  115. package/src/design-tokens/StyleBaseline.tsx +2 -2
  116. package/src/design-tokens/ThemeContext.ts +1 -1
  117. package/src/design-tokens/ThemeProvider.tsx +15 -12
  118. package/src/design-tokens/theme.ts +28 -26
  119. package/src/design-tokens/useTheme.ts +1 -1
  120. package/src/{design-tokens → hooks}/useLocalStorage.ts +0 -0
  121. package/src/{design-tokens → hooks}/useOnClickOutside.ts +0 -0
  122. package/src/i18n/ABOUT_TRANSLATIONS.md +13 -0
  123. package/src/i18n/__mocks__/loadTranslationFile.ts +5 -0
  124. package/src/i18n/config.ts +38 -0
  125. package/src/i18n/crowdin/ui.json +170 -0
  126. package/{i18n/translations → src/i18n/deprecated_translations_dont_use}/cs-CZ.json +0 -0
  127. package/{i18n/translations → src/i18n/deprecated_translations_dont_use}/de-DE.json +0 -0
  128. package/{i18n/translations → src/i18n/deprecated_translations_dont_use}/en-US.json +0 -0
  129. package/{i18n/translations → src/i18n/deprecated_translations_dont_use}/es-ES.json +0 -0
  130. package/{i18n/translations → src/i18n/deprecated_translations_dont_use}/fr-FR.json +0 -0
  131. package/{i18n/translations → src/i18n/deprecated_translations_dont_use}/ja-JP.json +0 -0
  132. package/{i18n/translations → src/i18n/deprecated_translations_dont_use}/km-KH.json +0 -0
  133. package/{i18n/translations → src/i18n/deprecated_translations_dont_use}/pt-BR.json +0 -0
  134. package/{i18n/translations → src/i18n/deprecated_translations_dont_use}/ru-RU.json +0 -0
  135. package/{i18n/translations → src/i18n/deprecated_translations_dont_use}/tr-TR.json +0 -0
  136. package/{i18n/translations → src/i18n/deprecated_translations_dont_use}/uk-UA.json +0 -0
  137. package/{i18n/translations → src/i18n/deprecated_translations_dont_use}/zh-CN.json +0 -0
  138. package/{i18n/translations → src/i18n/deprecated_translations_dont_use}/zh-TW.json +0 -0
  139. package/src/i18n/download_translations/ar-SA/ui.json +170 -0
  140. package/src/i18n/download_translations/cs-CZ/ui.json +170 -0
  141. package/src/i18n/download_translations/de-DE/ui.json +170 -0
  142. package/src/i18n/download_translations/es-ES/ui.json +170 -0
  143. package/src/i18n/download_translations/fi-FI/ui.json +170 -0
  144. package/src/i18n/download_translations/fil-PH/ui.json +170 -0
  145. package/src/i18n/download_translations/fr-FR/ui.json +170 -0
  146. package/src/i18n/download_translations/gl-ES/ui.json +170 -0
  147. package/src/i18n/download_translations/hi-IN/ui.json +170 -0
  148. package/src/i18n/download_translations/it-IT/ui.json +170 -0
  149. package/src/i18n/download_translations/ja-JP/ui.json +170 -0
  150. package/src/i18n/download_translations/km-KH/ui.json +170 -0
  151. package/src/i18n/download_translations/ko-KR/ui.json +170 -0
  152. package/src/i18n/download_translations/pl-PL/ui.json +170 -0
  153. package/src/i18n/download_translations/pt-BR/ui.json +170 -0
  154. package/src/i18n/download_translations/pt-PT/ui.json +170 -0
  155. package/src/i18n/download_translations/ro-RO/ui.json +170 -0
  156. package/src/i18n/download_translations/ru-RU/ui.json +170 -0
  157. package/src/i18n/download_translations/si-LK/ui.json +170 -0
  158. package/src/i18n/download_translations/sr-CS/ui.json +170 -0
  159. package/src/i18n/download_translations/sr-SP/ui.json +170 -0
  160. package/src/i18n/download_translations/tg-TJ/ui.json +170 -0
  161. package/src/i18n/download_translations/tr-TR/ui.json +170 -0
  162. package/src/i18n/download_translations/uk-UA/ui.json +170 -0
  163. package/src/i18n/download_translations/vi-VN/ui.json +170 -0
  164. package/src/i18n/download_translations/yo-NG/ui.json +170 -0
  165. package/src/i18n/download_translations/zh-CN/ui.json +170 -0
  166. package/src/i18n/download_translations/zh-TW/ui.json +170 -0
  167. package/src/i18n/enabledLanguages.ts +35 -0
  168. package/src/i18n/loadTranslationFile.ts +14 -0
  169. package/src/index.tsx +13 -11
  170. package/src/pages/Version/DetailContainer/Dependencies/Dependencies.test.tsx +0 -2
  171. package/src/pages/Version/DetailContainer/Dependencies/Dependencies.tsx +1 -3
  172. package/src/pages/Version/DetailContainer/Dependencies/styles.ts +0 -1
  173. package/src/pages/Version/DetailContainer/Deprecated/Deprecated.test.tsx +1 -3
  174. package/src/pages/Version/DetailContainer/Deprecated/Deprecated.tsx +2 -3
  175. package/src/pages/Version/DetailContainer/DetailContainer.test.tsx +0 -1
  176. package/src/pages/Version/DetailContainer/DetailContainer.tsx +1 -3
  177. package/src/pages/Version/DetailContainer/DetailContainerContent.tsx +0 -1
  178. package/src/pages/Version/DetailContainer/DetailContainerContentReadme.tsx +0 -1
  179. package/src/pages/Version/DetailContainer/DetailContainerTabs.tsx +0 -1
  180. package/src/pages/Version/DetailContainer/NoItems/NoItems.tsx +0 -1
  181. package/src/pages/Version/DetailContainer/NoItems/Noitems.test.tsx +0 -1
  182. package/src/pages/Version/DetailContainer/NoItems/__snapshots__/Noitems.test.tsx.snap +10 -1
  183. package/src/pages/Version/DetailContainer/Readme/Readme.spec.tsx +1 -2
  184. package/src/pages/Version/DetailContainer/Readme/Readme.tsx +1 -2
  185. package/src/pages/Version/DetailContainer/UpLinks/UpLinks.test.tsx +1 -9
  186. package/src/pages/Version/DetailContainer/UpLinks/UpLinks.tsx +1 -3
  187. package/src/pages/Version/DetailContainer/UpLinks/__snapshots__/UpLinks.test.tsx.snap +184 -26
  188. package/src/pages/Version/DetailContainer/UpLinks/styles.ts +2 -3
  189. package/src/pages/Version/DetailContainer/Versions/Versions.test.tsx +3 -5
  190. package/src/pages/Version/DetailContainer/Versions/Versions.tsx +1 -2
  191. package/src/pages/Version/DetailContainer/Versions/VersionsHistoryList.tsx +2 -4
  192. package/src/pages/Version/DetailContainer/Versions/VersionsTagList.tsx +1 -3
  193. package/src/pages/Version/DetailContainer/Versions/styles.ts +2 -3
  194. package/src/pages/Version/DetailContainer/__snapshots__/DetailContainer.test.tsx.snap +168 -34
  195. package/src/pages/Version/DetailSidebar/DetailSidebar.tsx +0 -2
  196. package/src/pages/Version/DetailSidebar/DetailSidebarFundButton.test.tsx +0 -2
  197. package/src/pages/Version/DetailSidebar/DetailSidebarFundButton.tsx +1 -2
  198. package/src/pages/Version/DetailSidebar/DetailSidebarTitle.tsx +0 -1
  199. package/src/pages/Version/DetailSidebar/Developers/Developers.test.tsx +3 -5
  200. package/src/pages/Version/DetailSidebar/Developers/Developers.tsx +3 -5
  201. package/src/pages/Version/DetailSidebar/Developers/DevelopersTitle.tsx +0 -1
  202. package/src/pages/Version/DetailSidebar/Developers/__snapshots__/Developers.test.tsx.snap +328 -40
  203. package/src/pages/Version/DetailSidebar/Developers/styles.ts +0 -1
  204. package/src/pages/Version/DetailSidebar/Dist/Dist.test.tsx +1 -3
  205. package/src/pages/Version/DetailSidebar/Dist/Dist.tsx +1 -3
  206. package/src/pages/Version/DetailSidebar/Dist/__snapshots__/Dist.test.tsx.snap +1436 -74
  207. package/src/pages/Version/DetailSidebar/Dist/styles.ts +2 -1
  208. package/src/pages/Version/DetailSidebar/Engines/Engines.test.tsx +1 -3
  209. package/src/pages/Version/DetailSidebar/Engines/Engines.tsx +1 -3
  210. package/src/pages/Version/DetailSidebar/Engines/styles.ts +0 -1
  211. package/src/pages/Version/DetailSidebar/Install/Install.test.tsx +1 -3
  212. package/src/pages/Version/DetailSidebar/Install/Install.tsx +0 -2
  213. package/src/pages/Version/DetailSidebar/Install/InstallListItem.tsx +0 -1
  214. package/src/pages/Version/DetailSidebar/Repository/Repository.test.tsx +1 -3
  215. package/src/pages/Version/DetailSidebar/Repository/Repository.tsx +1 -3
  216. package/src/pages/Version/Version.test.tsx +3 -5
  217. package/src/pages/Version/Version.tsx +21 -6
  218. package/src/pages/Version/VersionContextProvider.tsx +14 -45
  219. package/src/pages/Version/VersionLayout.tsx +1 -1
  220. package/src/pages/Version/context.ts +1 -1
  221. package/src/pages/home/Home.tsx +9 -28
  222. package/src/pages/home/PackageList/Help/Help.test.tsx +0 -1
  223. package/src/pages/home/PackageList/Help/Help.tsx +0 -1
  224. package/src/pages/home/PackageList/Help/__snapshots__/Help.test.tsx.snap +298 -59
  225. package/src/pages/home/PackageList/Help/styles.ts +0 -1
  226. package/src/pages/home/PackageList/Package/Package.test.tsx +5 -4
  227. package/src/pages/home/PackageList/Package/Package.tsx +20 -28
  228. package/src/pages/home/PackageList/Package/Tag/Tag.test.tsx +0 -1
  229. package/src/pages/home/PackageList/Package/styles.ts +5 -6
  230. package/src/pages/home/PackageList/PackageList.tsx +17 -17
  231. package/src/pages/home/PackageList/Packagelist.test.tsx +6 -5
  232. package/src/providers/API/api.test.ts +1 -0
  233. package/src/providers/API/api.ts +7 -3
  234. package/src/providers/config/AppConfigurationProvider.tsx +3 -3
  235. package/src/store/index.ts +1 -0
  236. package/src/store/models/configuration.ts +41 -0
  237. package/src/store/models/download.ts +30 -0
  238. package/src/store/models/index.ts +18 -0
  239. package/src/store/models/login.ts +92 -0
  240. package/src/store/models/manifest.ts +91 -0
  241. package/src/store/models/packages.ts +36 -0
  242. package/src/store/models/search.ts +81 -0
  243. package/src/store/store.ts +15 -0
  244. package/src/utils/login.test.ts +3 -4
  245. package/src/utils/package.test.ts +2 -3
  246. package/src/utils/package.ts +2 -1
  247. package/src/utils/sec-utils.ts +1 -1
  248. package/src/utils/test-react-testing-library.tsx +22 -5
  249. package/src/utils/url.test.ts +1 -1
  250. package/src/utils/url.ts +1 -0
  251. package/static/Dependencies.15768a14646212b71166.js +2 -0
  252. package/static/Dependencies.15768a14646212b71166.js.LICENSE.txt +78 -0
  253. package/static/Dist.15768a14646212b71166.js +2 -0
  254. package/static/Dist.15768a14646212b71166.js.LICENSE.txt +60 -0
  255. package/static/Engines.15768a14646212b71166.js +2 -0
  256. package/static/Engines.15768a14646212b71166.js.LICENSE.txt +66 -0
  257. package/static/Home.15768a14646212b71166.js +2 -0
  258. package/static/Home.15768a14646212b71166.js.LICENSE.txt +222 -0
  259. package/static/Install.15768a14646212b71166.js +2 -0
  260. package/static/Install.15768a14646212b71166.js.LICENSE.txt +66 -0
  261. package/static/NotFound.15768a14646212b71166.js +2 -0
  262. package/static/NotFound.15768a14646212b71166.js.LICENSE.txt +40 -0
  263. package/static/Provider.15768a14646212b71166.js +2 -0
  264. package/static/Provider.15768a14646212b71166.js.LICENSE.txt +32 -0
  265. package/static/Repository.15768a14646212b71166.js +2 -0
  266. package/static/Repository.15768a14646212b71166.js.LICENSE.txt +50 -0
  267. package/static/UpLinks.15768a14646212b71166.js +2 -0
  268. package/static/UpLinks.15768a14646212b71166.js.LICENSE.txt +56 -0
  269. package/static/Version.15768a14646212b71166.js +2 -0
  270. package/static/Version.15768a14646212b71166.js.LICENSE.txt +380 -0
  271. package/static/Versions.15768a14646212b71166.js +2 -0
  272. package/static/Versions.15768a14646212b71166.js.LICENSE.txt +64 -0
  273. package/static/index.html +1 -1
  274. package/static/main.15768a14646212b71166.js +2 -0
  275. package/static/main.15768a14646212b71166.js.LICENSE.txt +972 -0
  276. package/static/manifest.json +17 -3
  277. package/static/runtime.15768a14646212b71166.js +2 -0
  278. package/static/{runtime.9525ddaaf85378590c63.js.LICENSE.txt → runtime.15768a14646212b71166.js.LICENSE.txt} +2 -2
  279. package/static/vendors-node_modules_pnpm_mui_icons-material_5_0_5_d1eeebd4022867ee03864a00e16c7901_node_modu-123400.15768a14646212b71166.js +2 -0
  280. package/static/vendors-node_modules_pnpm_mui_icons-material_5_0_5_d1eeebd4022867ee03864a00e16c7901_node_modu-123400.15768a14646212b71166.js.LICENSE.txt +148 -0
  281. package/static/vendors-node_modules_pnpm_mui_icons-material_5_0_5_d1eeebd4022867ee03864a00e16c7901_node_modu-d2b578.15768a14646212b71166.js +2 -0
  282. package/static/vendors-node_modules_pnpm_mui_icons-material_5_0_5_d1eeebd4022867ee03864a00e16c7901_node_modu-d2b578.15768a14646212b71166.js.LICENSE.txt +218 -0
  283. package/static/vendors-node_modules_pnpm_mui_material_5_0_6_033766d34292bd5d464212fd95cb4b6d_node_modules_mu-1fb115.15768a14646212b71166.js +2 -0
  284. package/static/vendors-node_modules_pnpm_mui_material_5_0_6_033766d34292bd5d464212fd95cb4b6d_node_modules_mu-1fb115.15768a14646212b71166.js.LICENSE.txt +316 -0
  285. package/static/vendors.15768a14646212b71166.js +103 -0
  286. package/static/vendors.15768a14646212b71166.js.LICENSE.txt +3158 -0
  287. package/tools/dev.server.js +0 -1
  288. package/tools/webpack.dev.config.babel.js +1 -3
  289. package/tools/webpack.prod.config.babel.js +1 -1
  290. package/tsconfig.json +1 -3
  291. package/types/index.ts +3 -20
  292. package/i18n/config.ts +0 -94
  293. package/src/App/AppContext.ts +0 -18
  294. package/src/App/AppContextProvider.tsx +0 -44
  295. package/src/App/Header/Search/SearchAdornment.tsx +0 -18
  296. package/src/components/Icons/Austria.tsx +0 -23
  297. package/src/components/Icons/Brazil.tsx +0 -44
  298. package/src/components/Icons/China.tsx +0 -33
  299. package/src/components/Icons/Czech.tsx +0 -21
  300. package/src/components/Icons/France.tsx +0 -27
  301. package/src/components/Icons/Germany.tsx +0 -27
  302. package/src/components/Icons/India.tsx +0 -44
  303. package/src/components/Icons/Japan.tsx +0 -23
  304. package/src/components/Icons/Khmer.tsx +0 -40
  305. package/src/components/Icons/Nicaragua.tsx +0 -66
  306. package/src/components/Icons/Russia.tsx +0 -27
  307. package/src/components/Icons/Spain.tsx +0 -43
  308. package/src/components/Icons/Taiwan.tsx +0 -25
  309. package/src/components/Icons/Turkey.tsx +0 -23
  310. package/src/components/Icons/Ukraine.tsx +0 -30
  311. package/src/components/Icons/Usa.tsx +0 -34
  312. package/src/design-tokens/emotion.ts +0 -5
  313. package/src/lib/constants.ts +0 -9
  314. package/src/pages/Version/DetailSidebar/ActionBar/ActionBar.test.tsx +0 -84
  315. package/src/pages/Version/DetailSidebar/ActionBar/__snapshots__/ActionBar.test.tsx.snap +0 -122
  316. package/src/pages/Version/is-package-version-valid.ts +0 -19
  317. package/src/providers/API/APIProvider.tsx +0 -109
  318. package/src/providers/API/index.ts +0 -1
  319. package/static/main.9525ddaaf85378590c63.js +0 -2
  320. package/static/main.9525ddaaf85378590c63.js.LICENSE.txt +0 -1588
  321. package/static/runtime.9525ddaaf85378590c63.js +0 -2
  322. package/static/vendors.9525ddaaf85378590c63.js +0 -2
  323. package/static/vendors.9525ddaaf85378590c63.js.LICENSE.txt +0 -4540
@@ -1,5 +1,4 @@
1
1
  import styled from '@emotion/styled';
2
-
3
2
  import { Theme } from 'verdaccio-ui/design-tokens/theme';
4
3
 
5
4
  import ListItem from '../ListItem';
@@ -1,179 +1,101 @@
1
- /* eslint-disable react/jsx-no-bind */
2
1
  import styled from '@emotion/styled';
3
- import match from 'autosuggest-highlight/match';
4
- import parse from 'autosuggest-highlight/parse';
5
- import React, { KeyboardEvent, memo } from 'react';
6
- import Autosuggest, {
7
- SuggestionSelectedEventData,
8
- InputProps,
9
- ChangeEvent,
10
- SuggestionsFetchRequested,
11
- GetSuggestionValue,
12
- RenderSuggestion,
13
- RenderSuggestionsContainer,
14
- RenderInputComponent,
15
- } from 'react-autosuggest';
2
+ import Search from '@mui/icons-material/Search';
3
+ import { Theme } from '@mui/material';
4
+ import Autocomplete from '@mui/material/Autocomplete';
5
+ import InputAdornment from '@mui/material/InputAdornment';
6
+ import React, { FC, useState } from 'react';
16
7
  import { useTranslation } from 'react-i18next';
17
8
 
18
- import { Theme } from 'verdaccio-ui/design-tokens/theme';
9
+ import { SearchResultWeb } from '@verdaccio/types';
19
10
 
20
- import MenuItem from '../MenuItem';
21
-
22
- import { Wrapper, InputField, SuggestionContainer } from './styles';
23
-
24
- const StyledAnchor = styled('a')<{ highlight: boolean; theme?: Theme }>((props) => ({
25
- fontWeight:
26
- props.theme && props.highlight ? props.theme.fontWeight.semiBold : props.theme.fontWeight.light,
27
- }));
28
-
29
- const StyledMenuItem = styled(MenuItem)({
30
- cursor: 'pointer',
31
- });
11
+ import { StyledTextField } from './styles';
12
+ import { Wrapper } from './styles';
32
13
 
14
+ export type OnSelecItem = (
15
+ event: React.SyntheticEvent,
16
+ value: SearchResultWeb,
17
+ reason: string,
18
+ details?: string
19
+ ) => void;
33
20
  interface Props {
34
- suggestions: Suggestion[];
35
- suggestionsLoading?: boolean;
36
- suggestionsLoaded?: boolean;
37
- suggestionsError?: boolean;
38
- apiLoading?: boolean;
39
- value?: string;
40
- placeholder?: string;
21
+ suggestions: SearchResultWeb[];
22
+ suggestionsLoading: boolean;
23
+ placeholder: string;
41
24
  startAdornment?: JSX.Element;
42
- disableUnderline?: boolean;
43
- onChange: (event: React.FormEvent<HTMLInputElement>, params: ChangeEvent) => void;
44
- onSuggestionsFetch: SuggestionsFetchRequested;
45
- onCleanSuggestions?: () => void;
46
- onClick?: (
47
- event: React.FormEvent<HTMLInputElement>,
48
- data: SuggestionSelectedEventData<unknown>
49
- ) => void;
50
- onKeyDown?: (event: KeyboardEvent<HTMLInputElement>) => void;
51
- onBlur?: (event: React.FormEvent<HTMLInputElement>) => void;
25
+ onSuggestionsFetch: any;
26
+ onCleanSuggestions: (event: React.SyntheticEvent) => void;
27
+ onSelectItem: OnSelecItem;
52
28
  }
53
29
 
54
- interface Suggestion {
55
- name: string;
56
- }
57
-
58
- /* eslint-disable react/jsx-sort-props */
59
- /* eslint-disable verdaccio/jsx-spread */
60
- const renderInputComponent: RenderInputComponent<Suggestion> = (inputProps) => {
61
- // @ts-ignore
62
- const { ref, startAdornment, disableUnderline, onKeyDown, ...others } = inputProps;
63
- return (
64
- <InputField
65
- fullWidth={true}
66
- InputProps={{
67
- inputRef: (node: any) => {
68
- // @ts-ignore
69
- ref(node);
70
- },
71
- startAdornment,
72
- disableUnderline,
73
- onKeyDown,
74
- }}
75
- {...others}
76
- />
77
- );
78
- };
79
-
80
- const getSuggestionValue: GetSuggestionValue<Suggestion> = (suggestion): string => suggestion.name;
30
+ const StyledInputAdornment = styled(InputAdornment)<{ theme?: Theme }>((props) => ({
31
+ color: props.theme?.palette.white,
32
+ }));
81
33
 
82
- const renderSuggestion: RenderSuggestion<Suggestion> = (
83
- suggestion,
84
- { query, isHighlighted }
85
- ): JSX.Element => {
86
- const matches = match(suggestion.name, query);
87
- const parts = parse(suggestion.name, matches);
88
- return (
89
- <StyledMenuItem component="div" selected={isHighlighted}>
90
- <div>
91
- {parts.map((part, index) => {
92
- return (
93
- <StyledAnchor highlight={part.highlight} key={String(index)}>
94
- {part.text}
95
- </StyledAnchor>
96
- );
97
- })}
98
- </div>
99
- </StyledMenuItem>
100
- );
101
- };
34
+ const AutoComplete: FC<Props> = ({
35
+ suggestions,
36
+ startAdornment,
37
+ onSuggestionsFetch,
38
+ onCleanSuggestions,
39
+ placeholder = '',
40
+ onSelectItem,
41
+ suggestionsLoading = false,
42
+ }: Props) => {
43
+ const { t } = useTranslation();
44
+ const [inputValue, setInputValue] = useState('');
45
+
46
+ const handleOnInputChange = (event: React.SyntheticEvent, value: string, reason: string) => {
47
+ if (reason === 'input') {
48
+ event.preventDefault();
49
+ onSuggestionsFetch({ value });
50
+ setInputValue(value);
51
+ } else if (reason === 'clear') {
52
+ onCleanSuggestions(event);
53
+ setInputValue('');
54
+ }
55
+ };
56
+
57
+ const handleOnClose = (event) => {
58
+ onCleanSuggestions(event);
59
+ setInputValue('');
60
+ };
102
61
 
103
- const renderMessage = (message: string): JSX.Element => {
104
62
  return (
105
- <MenuItem component="div" selected={false}>
106
- <div>{message}</div>
107
- </MenuItem>
63
+ <Wrapper>
64
+ <Autocomplete
65
+ disablePortal={true}
66
+ freeSolo={true}
67
+ onChange={onSelectItem}
68
+ autoHighlight={true}
69
+ id="search-header-suggest"
70
+ options={suggestions}
71
+ inputValue={inputValue}
72
+ clearOnBlur={true}
73
+ loading={suggestionsLoading}
74
+ renderTags={() => null}
75
+ onClose={handleOnClose}
76
+ loadingText={t('autoComplete.loading')}
77
+ onInputChange={handleOnInputChange}
78
+ getOptionLabel={(option) => option.name}
79
+ fullWidth={true}
80
+ renderInput={(params) => (
81
+ <StyledTextField
82
+ {...params}
83
+ placeholder={placeholder}
84
+ InputProps={{
85
+ ...params.InputProps,
86
+ startAdornment: startAdornment || (
87
+ <StyledInputAdornment position="start">
88
+ <Search />
89
+ </StyledInputAdornment>
90
+ ),
91
+ }}
92
+ label=""
93
+ variant="standard"
94
+ />
95
+ )}
96
+ />
97
+ </Wrapper>
108
98
  );
109
99
  };
110
100
 
111
- const AutoComplete = memo(
112
- ({
113
- suggestions,
114
- startAdornment,
115
- onChange,
116
- onSuggestionsFetch,
117
- onCleanSuggestions,
118
- value = '',
119
- placeholder = '',
120
- disableUnderline = false,
121
- onClick,
122
- onKeyDown,
123
- onBlur,
124
- suggestionsLoading = false,
125
- suggestionsLoaded = false,
126
- suggestionsError = false,
127
- }: Props) => {
128
- const { t } = useTranslation();
129
-
130
- const inputProps: InputProps<Suggestion> = {
131
- value,
132
- onChange,
133
- placeholder,
134
- // material-ui@4.5.1 introduce better types for TextInput, check readme
135
- // @ts-ignore
136
- startAdornment,
137
- disableUnderline,
138
- onKeyDown,
139
- onBlur,
140
- };
141
-
142
- // this format avoid arrow function eslint rule
143
- const renderSuggestionsContainer: RenderSuggestionsContainer = function ({
144
- containerProps,
145
- children,
146
- query,
147
- }): JSX.Element {
148
- return (
149
- <SuggestionContainer {...containerProps} square={true}>
150
- {suggestionsLoaded &&
151
- children === null &&
152
- query &&
153
- renderMessage(t('autoComplete.no-results-found'))}
154
- {suggestionsLoading && query && renderMessage(t('autoComplete.loading'))}
155
- {suggestionsError && renderMessage(t('error.unspecific'))}
156
- {children}
157
- </SuggestionContainer>
158
- );
159
- };
160
-
161
- return (
162
- <Wrapper>
163
- <Autosuggest<Suggestion>
164
- renderInputComponent={renderInputComponent}
165
- suggestions={suggestions}
166
- getSuggestionValue={getSuggestionValue}
167
- renderSuggestion={renderSuggestion}
168
- onSuggestionsFetchRequested={onSuggestionsFetch}
169
- onSuggestionsClearRequested={onCleanSuggestions}
170
- inputProps={inputProps}
171
- onSuggestionSelected={onClick}
172
- renderSuggestionsContainer={renderSuggestionsContainer}
173
- />
174
- </Wrapper>
175
- );
176
- }
177
- );
178
-
179
101
  export default AutoComplete;
@@ -1,26 +1,24 @@
1
1
  import styled from '@emotion/styled';
2
- import { withStyles } from '@material-ui/core/styles';
3
- import CloseIcon from '@material-ui/icons/Close';
4
- import ExpandMoreIcon from '@material-ui/icons/ExpandMore';
2
+ import CloseIcon from '@mui/icons-material/Close';
3
+ import ExpandMoreIcon from '@mui/icons-material/ExpandMore';
4
+ import withStyles from '@mui/styles/withStyles';
5
5
  import React, {
6
- memo,
7
- useState,
8
6
  ChangeEvent,
9
7
  KeyboardEvent,
8
+ memo,
9
+ useCallback,
10
10
  useEffect,
11
11
  useRef,
12
- useCallback,
12
+ useState,
13
13
  } from 'react';
14
14
  import { useTranslation } from 'react-i18next';
15
-
16
15
  import { Theme } from 'verdaccio-ui/design-tokens/theme';
17
- import { useOnClickOutside } from 'verdaccio-ui/design-tokens/useOnClickOutside';
18
16
 
17
+ import { useOnClickOutside } from '../../hooks/useOnClickOutside';
19
18
  import IconButton from '../IconButton';
20
19
  import MenuItem from '../MenuItem';
21
20
  import Paper from '../Paper';
22
21
  import TextField from '../TextField';
23
-
24
22
  import { createFilterOptions } from './useAutoComplete';
25
23
 
26
24
  const defaultFilterOptions = createFilterOptions();
@@ -37,7 +35,7 @@ interface Props<Option extends {}> extends Pick<TextFieldProps, 'variant'> {
37
35
  inputStartAdornment?: React.ReactNode;
38
36
  hasClearIcon?: boolean;
39
37
  className?: string;
40
- onClick?: (option: Option) => void;
38
+ onClick?: (option: any) => void;
41
39
  }
42
40
 
43
41
  const AutoComplete = <Option extends {}>({
@@ -1,9 +1,6 @@
1
1
  import styled from '@emotion/styled';
2
- import React from 'react';
3
-
4
2
  import { Theme } from 'verdaccio-ui/design-tokens/theme';
5
3
 
6
- import Paper from '../Paper';
7
4
  import TextField from '../TextField';
8
5
 
9
6
  export interface InputFieldProps {
@@ -12,7 +9,6 @@ export interface InputFieldProps {
12
9
 
13
10
  export const Wrapper = styled('div')({
14
11
  width: '100%',
15
- height: '32px',
16
12
  position: 'relative',
17
13
  zIndex: 1,
18
14
  });
@@ -45,14 +41,3 @@ export const StyledTextField = styled(TextField)<{ theme?: Theme }>((props) => (
45
41
  },
46
42
  },
47
43
  }));
48
-
49
- /* eslint-disable verdaccio/jsx-spread */
50
- // @ts-ignore types of color are incompatible
51
- export const InputField: React.FC<InputFieldProps & TextFieldProps> = ({ ...others }) => (
52
- <StyledTextField {...others} />
53
- );
54
-
55
- export const SuggestionContainer = styled(Paper)({
56
- maxHeight: '500px',
57
- overflowY: 'auto',
58
- });
@@ -1,3 +1,3 @@
1
- import { default as MaterialUIAvatar } from '@material-ui/core/Avatar';
1
+ import { default as MaterialUIAvatar } from '@mui/material/Avatar';
2
2
 
3
3
  export default MaterialUIAvatar;
@@ -1,4 +1,4 @@
1
- import { default as MaterialUIBox, BoxProps } from '@material-ui/core/Box';
1
+ import { BoxProps, default as MaterialUIBox } from '@mui/material/Box';
2
2
  import React from 'react';
3
3
 
4
4
  function Box(props: BoxProps) {
@@ -1,4 +1,4 @@
1
- import { default as MaterialUIButton, ButtonProps } from '@material-ui/core/Button';
1
+ import { ButtonProps, default as MaterialUIButton } from '@mui/material/Button';
2
2
  import React, { forwardRef } from 'react';
3
3
 
4
4
  type ButtonRef = HTMLButtonElement;
@@ -1,4 +1,4 @@
1
- import { default as MaterialUICard, CardProps } from '@material-ui/core/Card';
1
+ import { CardProps, default as MaterialUICard } from '@mui/material/Card';
2
2
  import React, { forwardRef } from 'react';
3
3
 
4
4
  type CardRef = HTMLDivElement;
@@ -1,4 +1,4 @@
1
- import { default as MaterialUICardActions, CardActionsProps } from '@material-ui/core/CardActions';
1
+ import { CardActionsProps, default as MaterialUICardActions } from '@mui/material/CardActions';
2
2
  import React, { forwardRef } from 'react';
3
3
 
4
4
  type CardActionsRef = HTMLDivElement;
@@ -1,4 +1,4 @@
1
- import { default as MaterialUICardContent, CardContentProps } from '@material-ui/core/CardContent';
1
+ import { CardContentProps, default as MaterialUICardContent } from '@mui/material/CardContent';
2
2
  import React, { forwardRef } from 'react';
3
3
 
4
4
  type CardContentRef = HTMLElementTagNameMap[keyof HTMLElementTagNameMap];
@@ -1,4 +1,4 @@
1
- import { default as MaterialUIChip, ChipProps } from '@material-ui/core/Chip';
1
+ import { ChipProps, default as MaterialUIChip } from '@mui/material/Chip';
2
2
  import React, { forwardRef } from 'react';
3
3
 
4
4
  type ChipRef = HTMLElementTagNameMap[keyof HTMLElementTagNameMap];
@@ -1,7 +1,7 @@
1
1
  import {
2
- default as MaterialUICircularProgress,
3
2
  CircularProgressProps,
4
- } from '@material-ui/core/CircularProgress';
3
+ default as MaterialUICircularProgress,
4
+ } from '@mui/material/CircularProgress';
5
5
  import React, { forwardRef } from 'react';
6
6
 
7
7
  type CircularProgressRef = HTMLDivElement;
@@ -1,8 +1,7 @@
1
1
  import styled from '@emotion/styled';
2
- import FileCopy from '@material-ui/icons/FileCopy';
2
+ import FileCopy from '@mui/icons-material/FileCopy';
3
3
  import React from 'react';
4
4
  import { useTranslation } from 'react-i18next';
5
-
6
5
  import { copyToClipBoardUtility } from 'verdaccio-ui/utils/cli-utils';
7
6
 
8
7
  import IconButton from './IconButton';
@@ -19,7 +18,7 @@ function CopyToClipBoard({ text, children, ...props }: Props) {
19
18
  <Wrapper {...props}>
20
19
  <Content>{children ?? text}</Content>
21
20
  <Tooltip disableFocusListener={true} title={t('copy-to-clipboard')}>
22
- <IconButton onClick={copyToClipBoardUtility(text)} data-testid="copy-icon">
21
+ <IconButton onClick={copyToClipBoardUtility(text)} data-testid="copy-icon" size="large">
23
22
  <FileCopy />
24
23
  </IconButton>
25
24
  </Tooltip>
@@ -1,4 +1,4 @@
1
- import { default as MaterialUIDialog, DialogProps } from '@material-ui/core/Dialog';
1
+ import { DialogProps, default as MaterialUIDialog } from '@mui/material/Dialog';
2
2
  import React, { forwardRef } from 'react';
3
3
 
4
4
  type DialogRef = HTMLDivElement;
@@ -1,7 +1,7 @@
1
1
  import {
2
- default as MaterialUIDialogActions,
3
2
  DialogActionsProps,
4
- } from '@material-ui/core/DialogActions';
3
+ default as MaterialUIDialogActions,
4
+ } from '@mui/material/DialogActions';
5
5
  import React, { forwardRef } from 'react';
6
6
 
7
7
  type DialogActionsRef = HTMLDivElement;
@@ -1,7 +1,7 @@
1
1
  import {
2
- default as MaterialUIDialogContent,
3
2
  DialogContentProps,
4
- } from '@material-ui/core/DialogContent';
3
+ default as MaterialUIDialogContent,
4
+ } from '@mui/material/DialogContent';
5
5
  import React, { forwardRef } from 'react';
6
6
 
7
7
  type DialogContentRef = HTMLDivElement;
@@ -1,4 +1,4 @@
1
- import { default as MaterialUIDialogTitle, DialogTitleProps } from '@material-ui/core/DialogTitle';
1
+ import { DialogTitleProps, default as MaterialUIDialogTitle } from '@mui/material/DialogTitle';
2
2
  import React, { forwardRef } from 'react';
3
3
 
4
4
  type DialogTitleRef = HTMLDivElement;
@@ -1,4 +1,4 @@
1
- import { default as MaterialUIDivider, DividerProps } from '@material-ui/core/Divider';
1
+ import { DividerProps, default as MaterialUIDivider } from '@mui/material/Divider';
2
2
  import React, { forwardRef } from 'react';
3
3
 
4
4
  type DividerRef = HTMLElementTagNameMap[keyof HTMLElementTagNameMap];
@@ -1,4 +1,4 @@
1
- import { default as MaterialUIFab, FabProps } from '@material-ui/core/Fab';
1
+ import { FabProps, default as MaterialUIFab } from '@mui/material/Fab';
2
2
  import React, { forwardRef } from 'react';
3
3
 
4
4
  type FloatingActionButtonRef = HTMLButtonElement;
@@ -1,4 +1,4 @@
1
- import { default as MaterialUIFormControl, FormControlProps } from '@material-ui/core/FormControl';
1
+ import { FormControlProps, default as MaterialUIFormControl } from '@mui/material/FormControl';
2
2
  import React, { forwardRef } from 'react';
3
3
 
4
4
  type FormControlRef = HTMLElementTagNameMap[keyof HTMLElementTagNameMap];
@@ -1,7 +1,7 @@
1
1
  import {
2
- default as MaterialUIFormHelperText,
3
2
  FormHelperTextProps,
4
- } from '@material-ui/core/FormHelperText';
3
+ default as MaterialUIFormHelperText,
4
+ } from '@mui/material/FormHelperText';
5
5
  import React, { forwardRef } from 'react';
6
6
 
7
7
  type FormHelperTextRef = HTMLParagraphElement;
@@ -1,4 +1,4 @@
1
- import { default as MaterialUIGrid, GridProps } from '@material-ui/core/Grid';
1
+ import { GridProps, default as MaterialUIGrid } from '@mui/material/Grid';
2
2
  import React, { forwardRef } from 'react';
3
3
 
4
4
  type GridRef = HTMLElementTagNameMap[keyof HTMLElementTagNameMap];
@@ -1,4 +1,4 @@
1
- import { default as MaterialUITypography, TypographyProps } from '@material-ui/core/Typography';
1
+ import { default as MaterialUITypography, TypographyProps } from '@mui/material/Typography';
2
2
  import React, { forwardRef } from 'react';
3
3
 
4
4
  type HeadingType = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
@@ -1,4 +1,4 @@
1
- import { default as MaterialUIIconButton, IconButtonProps } from '@material-ui/core/IconButton';
1
+ import { IconButtonProps, default as MaterialUIIconButton } from '@mui/material/IconButton';
2
2
  import React, { forwardRef } from 'react';
3
3
 
4
4
  type IconButtonRef = HTMLButtonElement;
@@ -1,21 +1,5 @@
1
- export { Austria } from './Austria';
2
- export { Brazil } from './Brazil';
3
- export { China } from './China';
4
- export { Czech } from './Czech';
5
- export { France } from './France';
6
- export { Germany } from './Germany';
7
- export { India } from './India';
8
- export { Japan } from './Japan';
9
- export { Nicaragua } from './Nicaragua';
10
- export { Taiwan } from './Taiwan';
11
- export { Spain } from './Spain';
12
- export { Khmer } from './Khmer';
13
- export { Russia } from './Russia';
14
- export { Ukraine } from './Ukraine';
15
- export { Usa } from './Usa';
16
- export { Turkey } from './Turkey';
17
1
  export { Version } from './Version';
18
2
  export { Time } from './Time';
19
- export { Earth } from './Earth';
20
3
  export { FileBinary } from './FileBinary';
21
4
  export { Law } from './Law';
5
+ export { Earth } from './Earth';
@@ -1,4 +1,4 @@
1
- import { default as MaterialUIInput, InputProps } from '@material-ui/core/Input';
1
+ import { InputProps, default as MaterialUIInput } from '@mui/material/Input';
2
2
  import React, { forwardRef } from 'react';
3
3
 
4
4
  type InputRef = HTMLDivElement;
@@ -1,7 +1,7 @@
1
1
  import {
2
- default as MaterialUIInputAdornment,
3
2
  InputAdornmentProps,
4
- } from '@material-ui/core/InputAdornment';
3
+ default as MaterialUIInputAdornment,
4
+ } from '@mui/material/InputAdornment';
5
5
  import React, { forwardRef } from 'react';
6
6
 
7
7
  type InputAdornmentRef = HTMLDivElement;
@@ -1,4 +1,4 @@
1
- import { default as MaterialUIInputLabel, InputLabelProps } from '@material-ui/core/InputLabel';
1
+ import { InputLabelProps, default as MaterialUIInputLabel } from '@mui/material/InputLabel';
2
2
  import React, { forwardRef } from 'react';
3
3
 
4
4
  type InputLabelRef = HTMLLabelElement;
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
-
3
2
  import { render } from 'verdaccio-ui/utils/test-react-testing-library';
4
3
 
5
4
  import Label from './Label';
@@ -1,7 +1,6 @@
1
1
  import styled from '@emotion/styled';
2
2
  import React from 'react';
3
-
4
- import { Theme, FontWeight } from 'verdaccio-ui/design-tokens/theme';
3
+ import { FontWeight, Theme } from 'verdaccio-ui/design-tokens/theme';
5
4
 
6
5
  interface Props {
7
6
  text: string;
@@ -15,7 +14,7 @@ interface WrapperProps {
15
14
  }
16
15
 
17
16
  const Wrapper = styled('div')<WrapperProps & { theme?: Theme }>((props) => ({
18
- fontWeight: props.theme && props.theme.fontWeight[props.weight],
17
+ fontWeight: props.theme?.fontWeight[props.weight],
19
18
  textTransform: props.capitalize ? 'capitalize' : 'none',
20
19
  }));
21
20
 
@@ -1,4 +1,4 @@
1
- import { default as MaterialUIList, ListProps } from '@material-ui/core/List';
1
+ import { ListProps, default as MaterialUIList } from '@mui/material/List';
2
2
  import React, { forwardRef } from 'react';
3
3
 
4
4
  type ListRef = HTMLUListElement;
@@ -1,4 +1,4 @@
1
- import { default as MaterialUIListItem, ListItemProps } from '@material-ui/core/ListItem';
1
+ import { ListItemProps, default as MaterialUIListItem } from '@mui/material/ListItem';
2
2
  import React, { forwardRef } from 'react';
3
3
 
4
4
  type ListItemRef<T extends boolean = false> = T extends true ? HTMLDivElement : HTMLLIElement;
@@ -1,7 +1,4 @@
1
- import {
2
- default as MaterialUIListItemText,
3
- ListItemTextProps,
4
- } from '@material-ui/core/ListItemText';
1
+ import { ListItemTextProps, default as MaterialUIListItemText } from '@mui/material/ListItemText';
5
2
  import React, { forwardRef } from 'react';
6
3
 
7
4
  type ListItemTextRef = HTMLDivElement;
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
-
3
2
  import { render } from 'verdaccio-ui/utils/test-react-testing-library';
4
3
 
5
4
  import Loading from './Loading';
@@ -1,9 +1,8 @@
1
1
  import React from 'react';
2
2
 
3
3
  import Logo from '../Logo';
4
-
5
4
  import Spinner from './Spinner';
6
- import { Wrapper, Badge } from './styles';
5
+ import { Badge, Wrapper } from './styles';
7
6
 
8
7
  const Loading: React.FC = () => (
9
8
  <Wrapper data-testid="loading">
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
-
3
- import { render, cleanup } from 'verdaccio-ui/utils/test-react-testing-library';
2
+ import { cleanup, render } from 'verdaccio-ui/utils/test-react-testing-library';
4
3
 
5
4
  import Spinner from './Spinner';
6
5