@verdaccio/ui-theme 6.0.0-6-next.12 → 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 (246) hide show
  1. package/.babelrc +1 -1
  2. package/.eslintrc +0 -15
  3. package/CHANGELOG.md +6 -0
  4. package/jest/setup-env.ts +4 -1
  5. package/jest/unit/components/__mocks__/token.ts +0 -1
  6. package/jest/unit/components/store/login.ts +1 -0
  7. package/package.json +34 -37
  8. package/src/App/App.test.tsx +4 -6
  9. package/src/App/App.tsx +3 -5
  10. package/src/App/AppRoute.tsx +1 -1
  11. package/src/App/Footer/Footer.test.tsx +0 -1
  12. package/src/App/Footer/Footer.tsx +3 -3
  13. package/src/App/Footer/__snapshots__/Footer.test.tsx.snap +25 -9
  14. package/src/App/Footer/styles.ts +2 -3
  15. package/src/App/Header/Header.test.tsx +3 -5
  16. package/src/App/Header/Header.tsx +3 -5
  17. package/src/App/Header/HeaderGreetings.tsx +0 -1
  18. package/src/App/Header/HeaderLeft.tsx +0 -1
  19. package/src/App/Header/HeaderMenu.tsx +3 -3
  20. package/src/App/Header/HeaderRight.tsx +1 -2
  21. package/src/App/Header/HeaderToolTip.tsx +0 -1
  22. package/src/App/Header/HeaderToolTipIcon.tsx +10 -10
  23. package/src/App/Header/LanguageSwitch.tsx +4 -5
  24. package/src/App/Header/LoginDialog/LoginDialog.test.tsx +4 -7
  25. package/src/App/Header/LoginDialog/LoginDialog.tsx +2 -4
  26. package/src/App/Header/LoginDialog/LoginDialogCloseButton.tsx +1 -2
  27. package/src/App/Header/LoginDialog/LoginDialogForm.tsx +0 -1
  28. package/src/App/Header/LoginDialog/LoginDialogFormError.tsx +1 -2
  29. package/src/App/Header/LoginDialog/LoginDialogHeader.tsx +4 -4
  30. package/src/App/Header/RegistryInfoContent/RegistryInfoContent.test.tsx +1 -2
  31. package/src/App/Header/RegistryInfoContent/RegistryInfoContent.tsx +9 -10
  32. package/src/App/Header/RegistryInfoDialog/RegistryInfoDialog.tsx +1 -2
  33. package/src/App/Header/RegistryInfoDialog/styles.ts +0 -1
  34. package/src/App/Header/Search/Search.test.tsx +32 -41
  35. package/src/App/Header/Search/Search.tsx +15 -58
  36. package/src/App/Header/Search/__snapshots__/Search.test.tsx.snap +392 -28
  37. package/src/App/Header/styles.ts +2 -3
  38. package/src/App/utils/loadable.tsx +2 -1
  39. package/src/components/ActionBar/ActionBar.test.tsx +5 -13
  40. package/src/components/ActionBar/ActionBar.tsx +0 -2
  41. package/src/components/ActionBar/ActionBarAction.tsx +6 -7
  42. package/src/components/ActionBar/__snapshots__/ActionBar.test.tsx.snap +198 -53
  43. package/src/components/AppBar.tsx +1 -1
  44. package/src/components/Author/Author.test.tsx +1 -3
  45. package/src/components/Author/Author.tsx +2 -4
  46. package/src/components/Author/__snapshots__/Author.test.tsx.snap +804 -48
  47. package/src/components/Author/styles.ts +0 -1
  48. package/src/components/AutoComplete/AutoComplete.tsx +85 -163
  49. package/src/components/AutoComplete/AutoCompleteV2.tsx +7 -9
  50. package/src/components/AutoComplete/styles.tsx +0 -15
  51. package/src/components/Avatar.tsx +1 -1
  52. package/src/components/Box.tsx +1 -1
  53. package/src/components/Button.tsx +1 -1
  54. package/src/components/Card.tsx +1 -1
  55. package/src/components/CardActions.tsx +1 -1
  56. package/src/components/CardContent.tsx +1 -1
  57. package/src/components/Chip.tsx +1 -1
  58. package/src/components/CircularProgress.tsx +2 -2
  59. package/src/components/CopyToClipBoard.tsx +2 -3
  60. package/src/components/Dialog.tsx +1 -1
  61. package/src/components/DialogActions.tsx +2 -2
  62. package/src/components/DialogContent.tsx +2 -2
  63. package/src/components/DialogTitle.tsx +1 -1
  64. package/src/components/Divider.tsx +1 -1
  65. package/src/components/FloatingActionButton.tsx +1 -1
  66. package/src/components/FormControl.tsx +1 -1
  67. package/src/components/FormHelperText.tsx +2 -2
  68. package/src/components/Grid.tsx +1 -1
  69. package/src/components/Heading.tsx +1 -1
  70. package/src/components/IconButton.tsx +1 -1
  71. package/src/components/Input.tsx +1 -1
  72. package/src/components/InputAdornment/InputAdornment.tsx +2 -2
  73. package/src/components/InputLabel.tsx +1 -1
  74. package/src/components/Label/Label.test.tsx +0 -1
  75. package/src/components/Label/Label.tsx +1 -2
  76. package/src/components/List.tsx +1 -1
  77. package/src/components/ListItem.tsx +1 -1
  78. package/src/components/ListItemText.tsx +1 -4
  79. package/src/components/Loading/Loading.test.tsx +0 -1
  80. package/src/components/Loading/Loading.tsx +1 -2
  81. package/src/components/Loading/Spinner/Spinner.test.tsx +1 -2
  82. package/src/components/Loading/Spinner/Spinner.tsx +1 -2
  83. package/src/components/Loading/Spinner/__snapshots__/Spinner.test.tsx.snap +114 -16
  84. package/src/components/Loading/__snapshots__/Loading.test.tsx.snap +63 -11
  85. package/src/components/Loading/styles.ts +1 -2
  86. package/src/components/Logo/Logo.test.tsx +0 -1
  87. package/src/components/Logo/Logo.tsx +1 -2
  88. package/src/components/Logo/__snapshots__/Logo.test.tsx.snap +2 -0
  89. package/src/components/Menu.tsx +1 -1
  90. package/src/components/MenuItem.tsx +1 -1
  91. package/src/components/NotFound/NotFound.tsx +1 -3
  92. package/src/components/NotFound/Notfound.test.tsx +1 -2
  93. package/src/components/NotFound/__snapshots__/Notfound.test.tsx.snap +138 -11
  94. package/src/components/NotFound/styles.ts +0 -1
  95. package/src/components/Paper.tsx +1 -1
  96. package/src/components/SnackbarContent.tsx +1 -1
  97. package/src/components/SvgIcon.tsx +1 -1
  98. package/src/components/Tab.tsx +1 -1
  99. package/src/components/Tabs.tsx +1 -1
  100. package/src/components/Text/Text.tsx +1 -1
  101. package/src/components/Text/TextConfig.ts +1 -1
  102. package/src/components/TextField/TextField.test.tsx +0 -1
  103. package/src/components/TextField/TextField.tsx +2 -2
  104. package/src/components/TextField/__snapshots__/TextField.test.tsx.snap +216 -3
  105. package/src/components/Toolbar.tsx +1 -1
  106. package/src/components/Tooltip.tsx +1 -1
  107. package/src/design-tokens/ResetStyles.tsx +1 -1
  108. package/src/design-tokens/StyleBaseline.tsx +2 -2
  109. package/src/design-tokens/ThemeProvider.tsx +15 -12
  110. package/src/design-tokens/theme.ts +28 -26
  111. package/src/design-tokens/useTheme.ts +1 -1
  112. package/src/{design-tokens → hooks}/useLocalStorage.ts +0 -0
  113. package/src/{design-tokens → hooks}/useOnClickOutside.ts +0 -0
  114. package/src/i18n/__mocks__/loadTranslationFile.ts +5 -0
  115. package/src/i18n/config.ts +1 -15
  116. package/src/i18n/download_translations/es-ES/ui.json +17 -17
  117. package/src/i18n/download_translations/it-IT/ui.json +77 -77
  118. package/src/i18n/download_translations/tr-TR/ui.json +6 -6
  119. package/src/i18n/download_translations/vi-VN/ui.json +2 -2
  120. package/src/i18n/loadTranslationFile.ts +14 -0
  121. package/src/index.tsx +2 -1
  122. package/src/pages/Version/DetailContainer/Dependencies/Dependencies.test.tsx +0 -2
  123. package/src/pages/Version/DetailContainer/Dependencies/Dependencies.tsx +1 -3
  124. package/src/pages/Version/DetailContainer/Dependencies/styles.ts +0 -1
  125. package/src/pages/Version/DetailContainer/Deprecated/Deprecated.test.tsx +1 -3
  126. package/src/pages/Version/DetailContainer/Deprecated/Deprecated.tsx +2 -3
  127. package/src/pages/Version/DetailContainer/DetailContainer.test.tsx +0 -1
  128. package/src/pages/Version/DetailContainer/DetailContainer.tsx +1 -3
  129. package/src/pages/Version/DetailContainer/DetailContainerContent.tsx +0 -1
  130. package/src/pages/Version/DetailContainer/DetailContainerContentReadme.tsx +0 -1
  131. package/src/pages/Version/DetailContainer/DetailContainerTabs.tsx +0 -1
  132. package/src/pages/Version/DetailContainer/NoItems/NoItems.tsx +0 -1
  133. package/src/pages/Version/DetailContainer/NoItems/Noitems.test.tsx +0 -1
  134. package/src/pages/Version/DetailContainer/NoItems/__snapshots__/Noitems.test.tsx.snap +10 -1
  135. package/src/pages/Version/DetailContainer/Readme/Readme.spec.tsx +1 -2
  136. package/src/pages/Version/DetailContainer/Readme/Readme.tsx +1 -2
  137. package/src/pages/Version/DetailContainer/UpLinks/UpLinks.test.tsx +1 -3
  138. package/src/pages/Version/DetailContainer/UpLinks/UpLinks.tsx +1 -3
  139. package/src/pages/Version/DetailContainer/UpLinks/__snapshots__/UpLinks.test.tsx.snap +184 -26
  140. package/src/pages/Version/DetailContainer/UpLinks/styles.ts +2 -3
  141. package/src/pages/Version/DetailContainer/Versions/Versions.test.tsx +2 -4
  142. package/src/pages/Version/DetailContainer/Versions/Versions.tsx +1 -2
  143. package/src/pages/Version/DetailContainer/Versions/VersionsHistoryList.tsx +2 -4
  144. package/src/pages/Version/DetailContainer/Versions/VersionsTagList.tsx +1 -3
  145. package/src/pages/Version/DetailContainer/Versions/styles.ts +2 -3
  146. package/src/pages/Version/DetailContainer/__snapshots__/DetailContainer.test.tsx.snap +168 -34
  147. package/src/pages/Version/DetailSidebar/DetailSidebar.tsx +0 -2
  148. package/src/pages/Version/DetailSidebar/DetailSidebarFundButton.test.tsx +0 -2
  149. package/src/pages/Version/DetailSidebar/DetailSidebarFundButton.tsx +1 -2
  150. package/src/pages/Version/DetailSidebar/DetailSidebarTitle.tsx +0 -1
  151. package/src/pages/Version/DetailSidebar/Developers/Developers.test.tsx +3 -5
  152. package/src/pages/Version/DetailSidebar/Developers/Developers.tsx +3 -5
  153. package/src/pages/Version/DetailSidebar/Developers/DevelopersTitle.tsx +0 -1
  154. package/src/pages/Version/DetailSidebar/Developers/__snapshots__/Developers.test.tsx.snap +328 -40
  155. package/src/pages/Version/DetailSidebar/Developers/styles.ts +0 -1
  156. package/src/pages/Version/DetailSidebar/Dist/Dist.test.tsx +1 -3
  157. package/src/pages/Version/DetailSidebar/Dist/Dist.tsx +1 -3
  158. package/src/pages/Version/DetailSidebar/Dist/__snapshots__/Dist.test.tsx.snap +1436 -74
  159. package/src/pages/Version/DetailSidebar/Dist/styles.ts +2 -1
  160. package/src/pages/Version/DetailSidebar/Engines/Engines.test.tsx +1 -3
  161. package/src/pages/Version/DetailSidebar/Engines/Engines.tsx +1 -3
  162. package/src/pages/Version/DetailSidebar/Engines/styles.ts +0 -1
  163. package/src/pages/Version/DetailSidebar/Install/Install.test.tsx +1 -3
  164. package/src/pages/Version/DetailSidebar/Install/Install.tsx +0 -2
  165. package/src/pages/Version/DetailSidebar/Install/InstallListItem.tsx +0 -1
  166. package/src/pages/Version/DetailSidebar/Repository/Repository.test.tsx +1 -3
  167. package/src/pages/Version/DetailSidebar/Repository/Repository.tsx +1 -3
  168. package/src/pages/Version/Version.test.tsx +1 -3
  169. package/src/pages/Version/Version.tsx +1 -3
  170. package/src/pages/Version/VersionContextProvider.tsx +0 -1
  171. package/src/pages/Version/VersionLayout.tsx +1 -1
  172. package/src/pages/Version/context.ts +1 -1
  173. package/src/pages/home/Home.tsx +0 -2
  174. package/src/pages/home/PackageList/Help/Help.test.tsx +0 -1
  175. package/src/pages/home/PackageList/Help/Help.tsx +0 -1
  176. package/src/pages/home/PackageList/Help/__snapshots__/Help.test.tsx.snap +295 -56
  177. package/src/pages/home/PackageList/Help/styles.ts +0 -1
  178. package/src/pages/home/PackageList/Package/Package.test.tsx +1 -3
  179. package/src/pages/home/PackageList/Package/Package.tsx +14 -19
  180. package/src/pages/home/PackageList/Package/Tag/Tag.test.tsx +0 -1
  181. package/src/pages/home/PackageList/Package/styles.ts +5 -6
  182. package/src/pages/home/PackageList/PackageList.tsx +0 -1
  183. package/src/pages/home/PackageList/Packagelist.test.tsx +1 -3
  184. package/src/providers/API/api.ts +1 -1
  185. package/src/providers/config/AppConfigurationProvider.tsx +3 -3
  186. package/src/store/models/configuration.ts +2 -3
  187. package/src/store/models/download.ts +1 -2
  188. package/src/store/models/index.ts +1 -0
  189. package/src/store/models/login.ts +4 -2
  190. package/src/store/models/manifest.ts +2 -2
  191. package/src/store/models/packages.ts +2 -2
  192. package/src/store/models/search.ts +5 -5
  193. package/src/store/store.ts +2 -2
  194. package/src/utils/login.test.ts +2 -3
  195. package/src/utils/package.test.ts +2 -3
  196. package/src/utils/package.ts +2 -1
  197. package/src/utils/sec-utils.ts +1 -1
  198. package/src/utils/test-react-testing-library.tsx +11 -7
  199. package/src/utils/url.test.ts +1 -1
  200. package/src/utils/url.ts +1 -0
  201. package/static/Dependencies.15768a14646212b71166.js +2 -0
  202. package/static/Dependencies.15768a14646212b71166.js.LICENSE.txt +78 -0
  203. package/static/Dist.15768a14646212b71166.js +2 -0
  204. package/static/Dist.15768a14646212b71166.js.LICENSE.txt +60 -0
  205. package/static/Engines.15768a14646212b71166.js +2 -0
  206. package/static/Engines.15768a14646212b71166.js.LICENSE.txt +66 -0
  207. package/static/Home.15768a14646212b71166.js +2 -0
  208. package/static/Home.15768a14646212b71166.js.LICENSE.txt +222 -0
  209. package/static/Install.15768a14646212b71166.js +2 -0
  210. package/static/Install.15768a14646212b71166.js.LICENSE.txt +66 -0
  211. package/static/NotFound.15768a14646212b71166.js +2 -0
  212. package/static/NotFound.15768a14646212b71166.js.LICENSE.txt +40 -0
  213. package/static/Provider.15768a14646212b71166.js +2 -0
  214. package/static/Provider.15768a14646212b71166.js.LICENSE.txt +32 -0
  215. package/static/Repository.15768a14646212b71166.js +2 -0
  216. package/static/Repository.15768a14646212b71166.js.LICENSE.txt +50 -0
  217. package/static/UpLinks.15768a14646212b71166.js +2 -0
  218. package/static/UpLinks.15768a14646212b71166.js.LICENSE.txt +56 -0
  219. package/static/Version.15768a14646212b71166.js +2 -0
  220. package/static/Version.15768a14646212b71166.js.LICENSE.txt +380 -0
  221. package/static/Versions.15768a14646212b71166.js +2 -0
  222. package/static/Versions.15768a14646212b71166.js.LICENSE.txt +64 -0
  223. package/static/index.html +1 -1
  224. package/static/main.15768a14646212b71166.js +2 -0
  225. package/static/{main.87dd0a7ff6e306a24166.js.LICENSE.txt → main.15768a14646212b71166.js.LICENSE.txt} +63 -663
  226. package/static/manifest.json +17 -3
  227. package/static/runtime.15768a14646212b71166.js +2 -0
  228. package/static/{runtime.87dd0a7ff6e306a24166.js.LICENSE.txt → runtime.15768a14646212b71166.js.LICENSE.txt} +2 -2
  229. package/static/vendors-node_modules_pnpm_mui_icons-material_5_0_5_d1eeebd4022867ee03864a00e16c7901_node_modu-123400.15768a14646212b71166.js +2 -0
  230. package/static/vendors-node_modules_pnpm_mui_icons-material_5_0_5_d1eeebd4022867ee03864a00e16c7901_node_modu-123400.15768a14646212b71166.js.LICENSE.txt +148 -0
  231. package/static/vendors-node_modules_pnpm_mui_icons-material_5_0_5_d1eeebd4022867ee03864a00e16c7901_node_modu-d2b578.15768a14646212b71166.js +2 -0
  232. package/static/vendors-node_modules_pnpm_mui_icons-material_5_0_5_d1eeebd4022867ee03864a00e16c7901_node_modu-d2b578.15768a14646212b71166.js.LICENSE.txt +218 -0
  233. package/static/vendors-node_modules_pnpm_mui_material_5_0_6_033766d34292bd5d464212fd95cb4b6d_node_modules_mu-1fb115.15768a14646212b71166.js +2 -0
  234. package/static/vendors-node_modules_pnpm_mui_material_5_0_6_033766d34292bd5d464212fd95cb4b6d_node_modules_mu-1fb115.15768a14646212b71166.js.LICENSE.txt +316 -0
  235. package/static/vendors.15768a14646212b71166.js +103 -0
  236. package/static/{vendors.87dd0a7ff6e306a24166.js.LICENSE.txt → vendors.15768a14646212b71166.js.LICENSE.txt} +1261 -1035
  237. package/tools/dev.server.js +0 -1
  238. package/tools/webpack.dev.config.babel.js +1 -3
  239. package/tsconfig.json +0 -2
  240. package/types/index.ts +1 -0
  241. package/src/App/Header/Search/SearchAdornment.tsx +0 -18
  242. package/src/design-tokens/emotion.ts +0 -5
  243. package/src/lib/constants.ts +0 -9
  244. package/static/main.87dd0a7ff6e306a24166.js +0 -2
  245. package/static/runtime.87dd0a7ff6e306a24166.js +0 -2
  246. package/static/vendors.87dd0a7ff6e306a24166.js +0 -2
@@ -3,50 +3,409 @@
3
3
  exports[`<Search /> component should load the component in default state 1`] = `
4
4
  .emotion-0 {
5
5
  width: 100%;
6
- height: 32px;
7
6
  position: relative;
8
7
  z-index: 1;
9
8
  }
10
9
 
11
- .emotion-2 .MuiInputBase-root:before {
10
+ .emotion-2 {
11
+ width: 100%;
12
+ }
13
+
14
+ .emotion-2.Mui-focused .MuiAutocomplete-clearIndicator {
15
+ visibility: visible;
16
+ }
17
+
18
+ @media (pointer: fine) {
19
+ .emotion-2:hover .MuiAutocomplete-clearIndicator {
20
+ visibility: visible;
21
+ }
22
+ }
23
+
24
+ .emotion-2 .MuiAutocomplete-tag {
25
+ margin: 3px;
26
+ max-width: calc(100% - 6px);
27
+ }
28
+
29
+ .emotion-2 .MuiAutocomplete-inputRoot {
30
+ -webkit-box-flex-wrap: wrap;
31
+ -webkit-flex-wrap: wrap;
32
+ -ms-flex-wrap: wrap;
33
+ flex-wrap: wrap;
34
+ }
35
+
36
+ .MuiAutocomplete-hasPopupIcon.emotion-2 .MuiAutocomplete-inputRoot,
37
+ .MuiAutocomplete-hasClearIcon.emotion-2 .MuiAutocomplete-inputRoot {
38
+ padding-right: 30px;
39
+ }
40
+
41
+ .MuiAutocomplete-hasPopupIcon.MuiAutocomplete-hasClearIcon.emotion-2 .MuiAutocomplete-inputRoot {
42
+ padding-right: 56px;
43
+ }
44
+
45
+ .emotion-2 .MuiAutocomplete-inputRoot .MuiAutocomplete-input {
46
+ width: 0;
47
+ min-width: 30px;
48
+ }
49
+
50
+ .emotion-2 .MuiInput-root {
51
+ padding-bottom: 1px;
52
+ }
53
+
54
+ .emotion-2 .MuiInput-root .MuiInput-input {
55
+ padding: 4px 4px 4px 0px;
56
+ }
57
+
58
+ .emotion-2 .MuiInput-root.MuiInputBase-sizeSmall .MuiInput-input {
59
+ padding: 2px 4px 3px 0;
60
+ }
61
+
62
+ .emotion-2 .MuiOutlinedInput-root {
63
+ padding: 9px;
64
+ }
65
+
66
+ .MuiAutocomplete-hasPopupIcon.emotion-2 .MuiOutlinedInput-root,
67
+ .MuiAutocomplete-hasClearIcon.emotion-2 .MuiOutlinedInput-root {
68
+ padding-right: 39px;
69
+ }
70
+
71
+ .MuiAutocomplete-hasPopupIcon.MuiAutocomplete-hasClearIcon.emotion-2 .MuiOutlinedInput-root {
72
+ padding-right: 65px;
73
+ }
74
+
75
+ .emotion-2 .MuiOutlinedInput-root .MuiAutocomplete-input {
76
+ padding: 7.5px 4px 7.5px 6px;
77
+ }
78
+
79
+ .emotion-2 .MuiOutlinedInput-root .MuiAutocomplete-endAdornment {
80
+ right: 9px;
81
+ }
82
+
83
+ .emotion-2 .MuiOutlinedInput-root.MuiInputBase-sizeSmall {
84
+ padding: 6px;
85
+ }
86
+
87
+ .emotion-2 .MuiOutlinedInput-root.MuiInputBase-sizeSmall .MuiAutocomplete-input {
88
+ padding: 2.5px 4px 2.5px 6px;
89
+ }
90
+
91
+ .emotion-2 .MuiFilledInput-root {
92
+ padding-top: 19px;
93
+ padding-left: 8px;
94
+ }
95
+
96
+ .MuiAutocomplete-hasPopupIcon.emotion-2 .MuiFilledInput-root,
97
+ .MuiAutocomplete-hasClearIcon.emotion-2 .MuiFilledInput-root {
98
+ padding-right: 39px;
99
+ }
100
+
101
+ .MuiAutocomplete-hasPopupIcon.MuiAutocomplete-hasClearIcon.emotion-2 .MuiFilledInput-root {
102
+ padding-right: 65px;
103
+ }
104
+
105
+ .emotion-2 .MuiFilledInput-root .MuiFilledInput-input {
106
+ padding: 7px 4px;
107
+ }
108
+
109
+ .emotion-2 .MuiFilledInput-root .MuiAutocomplete-endAdornment {
110
+ right: 9px;
111
+ }
112
+
113
+ .emotion-2 .MuiFilledInput-root.MuiInputBase-sizeSmall {
114
+ padding-bottom: 1px;
115
+ }
116
+
117
+ .emotion-2 .MuiFilledInput-root.MuiInputBase-sizeSmall .MuiFilledInput-input {
118
+ padding: 2.5px 4px;
119
+ }
120
+
121
+ .emotion-2 .MuiAutocomplete-input {
122
+ -webkit-box-flex: 1;
123
+ -webkit-flex-grow: 1;
124
+ -ms-flex-positive: 1;
125
+ flex-grow: 1;
126
+ text-overflow: ellipsis;
127
+ opacity: 1;
128
+ }
129
+
130
+ .emotion-4 {
131
+ display: -webkit-inline-box;
132
+ display: -webkit-inline-flex;
133
+ display: -ms-inline-flexbox;
134
+ display: inline-flex;
135
+ -webkit-flex-direction: column;
136
+ -ms-flex-direction: column;
137
+ flex-direction: column;
138
+ position: relative;
139
+ min-width: 0;
140
+ padding: 0;
141
+ margin: 0;
142
+ border: 0;
143
+ vertical-align: top;
144
+ width: 100%;
145
+ }
146
+
147
+ .emotion-4 .MuiInputBase-root:before {
12
148
  content: '';
13
149
  border: none;
14
150
  }
15
151
 
16
- .emotion-2 .MuiInputBase-root:after {
152
+ .emotion-4 .MuiInputBase-root:after {
17
153
  border-color: #fff;
18
154
  }
19
155
 
20
- .emotion-2 .MuiInputBase-root:hover:before {
156
+ .emotion-4 .MuiInputBase-root:hover:before {
21
157
  content: none;
22
158
  }
23
159
 
24
- .emotion-2 .MuiInputBase-root:hover:after {
160
+ .emotion-4 .MuiInputBase-root:hover:after {
25
161
  content: none;
26
162
  -webkit-transform: scaleX(1);
163
+ -moz-transform: scaleX(1);
27
164
  -ms-transform: scaleX(1);
28
165
  transform: scaleX(1);
29
166
  }
30
167
 
31
- @media screen and (min-width:768px) {
32
- .emotion-2 .MuiInputBase-root:hover:after {
168
+ @media screen and (min-width: 768px) {
169
+ .emotion-4 .MuiInputBase-root:hover:after {
33
170
  content: '';
34
171
  }
35
172
  }
36
173
 
37
- @media screen and (min-width:768px) {
38
- .emotion-2 .MuiInputBase-input {
174
+ @media screen and (min-width: 768px) {
175
+ .emotion-4 .MuiInputBase-input {
39
176
  color: #fff;
40
177
  }
41
178
  }
42
179
 
43
- .emotion-4 {
180
+ .emotion-5 {
181
+ font-family: -apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;
182
+ font-weight: 400;
183
+ font-size: 1rem;
184
+ line-height: 1.4375em;
185
+ color: rgba(0, 0, 0, 0.87);
186
+ box-sizing: border-box;
187
+ position: relative;
188
+ cursor: text;
189
+ display: -webkit-inline-box;
190
+ display: -webkit-inline-flex;
191
+ display: -ms-inline-flexbox;
192
+ display: inline-flex;
193
+ -webkit-align-items: center;
194
+ -webkit-box-align: center;
195
+ -ms-flex-align: center;
196
+ align-items: center;
197
+ width: 100%;
198
+ position: relative;
199
+ }
200
+
201
+ .emotion-5.Mui-disabled {
202
+ color: rgba(0, 0, 0, 0.38);
203
+ cursor: default;
204
+ }
205
+
206
+ label+.emotion-5 {
207
+ margin-top: 16px;
208
+ }
209
+
210
+ .emotion-5:after {
211
+ border-bottom: 2px solid #4b5e40;
212
+ left: 0;
213
+ bottom: 0;
214
+ content: "";
215
+ position: absolute;
216
+ right: 0;
217
+ -webkit-transform: scaleX(0);
218
+ -moz-transform: scaleX(0);
219
+ -ms-transform: scaleX(0);
220
+ transform: scaleX(0);
221
+ -webkit-transition: -webkit-transform 200ms cubic-bezier(0.0, 0, 0.2, 1) 0ms;
222
+ transition: transform 200ms cubic-bezier(0.0, 0, 0.2, 1) 0ms;
223
+ pointer-events: none;
224
+ }
225
+
226
+ .emotion-5.Mui-focused:after {
227
+ -webkit-transform: scaleX(1);
228
+ -moz-transform: scaleX(1);
229
+ -ms-transform: scaleX(1);
230
+ transform: scaleX(1);
231
+ }
232
+
233
+ .emotion-5.Mui-error:after {
234
+ border-bottom-color: #d32f2f;
235
+ -webkit-transform: scaleX(1);
236
+ -moz-transform: scaleX(1);
237
+ -ms-transform: scaleX(1);
238
+ transform: scaleX(1);
239
+ }
240
+
241
+ .emotion-5:before {
242
+ border-bottom: 1px solid rgba(0, 0, 0, 0.42);
243
+ left: 0;
244
+ bottom: 0;
245
+ content: "\\00a0";
246
+ position: absolute;
247
+ right: 0;
248
+ -webkit-transition: border-bottom-color 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
249
+ transition: border-bottom-color 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
250
+ pointer-events: none;
251
+ }
252
+
253
+ .emotion-5:hover:not(.Mui-disabled):before {
254
+ border-bottom: 2px solid rgba(0, 0, 0, 0.87);
255
+ }
256
+
257
+ @media (hover: none) {
258
+ .emotion-5:hover:not(.Mui-disabled):before {
259
+ border-bottom: 1px solid rgba(0, 0, 0, 0.42);
260
+ }
261
+ }
262
+
263
+ .emotion-5.Mui-disabled:before {
264
+ border-bottom-style: dotted;
265
+ }
266
+
267
+ .emotion-7 {
268
+ display: -webkit-box;
269
+ display: -webkit-flex;
270
+ display: -ms-flexbox;
271
+ display: flex;
272
+ height: 0.01em;
273
+ max-height: 2em;
274
+ -webkit-align-items: center;
275
+ -webkit-box-align: center;
276
+ -ms-flex-align: center;
277
+ align-items: center;
278
+ white-space: nowrap;
279
+ color: rgba(0, 0, 0, 0.54);
280
+ margin-right: 8px;
44
281
  color: #fff;
45
282
  }
46
283
 
47
- .emotion-6 {
48
- max-height: 500px;
49
- overflow-y: auto;
284
+ .emotion-8 {
285
+ -webkit-user-select: none;
286
+ -moz-user-select: none;
287
+ -ms-user-select: none;
288
+ user-select: none;
289
+ width: 1em;
290
+ height: 1em;
291
+ display: inline-block;
292
+ fill: currentColor;
293
+ -webkit-flex-shrink: 0;
294
+ -ms-flex-negative: 0;
295
+ flex-shrink: 0;
296
+ -webkit-transition: fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
297
+ transition: fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
298
+ font-size: 1.5rem;
299
+ }
300
+
301
+ .emotion-9 {
302
+ font: inherit;
303
+ letter-spacing: inherit;
304
+ color: currentColor;
305
+ padding: 4px 0 5px;
306
+ border: 0;
307
+ box-sizing: content-box;
308
+ background: none;
309
+ height: 1.4375em;
310
+ margin: 0;
311
+ -webkit-tap-highlight-color: transparent;
312
+ display: block;
313
+ min-width: 0;
314
+ width: 100%;
315
+ -webkit-animation-name: mui-auto-fill-cancel;
316
+ animation-name: mui-auto-fill-cancel;
317
+ -webkit-animation-duration: 10ms;
318
+ animation-duration: 10ms;
319
+ }
320
+
321
+ .emotion-9::-webkit-input-placeholder {
322
+ color: currentColor;
323
+ opacity: 0.42;
324
+ -webkit-transition: opacity 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
325
+ transition: opacity 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
326
+ }
327
+
328
+ .emotion-9::-moz-placeholder {
329
+ color: currentColor;
330
+ opacity: 0.42;
331
+ -webkit-transition: opacity 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
332
+ transition: opacity 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
333
+ }
334
+
335
+ .emotion-9:-ms-input-placeholder {
336
+ color: currentColor;
337
+ opacity: 0.42;
338
+ -webkit-transition: opacity 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
339
+ transition: opacity 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
340
+ }
341
+
342
+ .emotion-9::-ms-input-placeholder {
343
+ color: currentColor;
344
+ opacity: 0.42;
345
+ -webkit-transition: opacity 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
346
+ transition: opacity 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
347
+ }
348
+
349
+ .emotion-9:focus {
350
+ outline: 0;
351
+ }
352
+
353
+ .emotion-9:invalid {
354
+ box-shadow: none;
355
+ }
356
+
357
+ .emotion-9::-webkit-search-decoration {
358
+ -webkit-appearance: none;
359
+ }
360
+
361
+ label[data-shrink=false]+.MuiInputBase-formControl .emotion-9::-webkit-input-placeholder {
362
+ opacity: 0!important;
363
+ }
364
+
365
+ label[data-shrink=false]+.MuiInputBase-formControl .emotion-9::-moz-placeholder {
366
+ opacity: 0!important;
367
+ }
368
+
369
+ label[data-shrink=false]+.MuiInputBase-formControl .emotion-9:-ms-input-placeholder {
370
+ opacity: 0!important;
371
+ }
372
+
373
+ label[data-shrink=false]+.MuiInputBase-formControl .emotion-9::-ms-input-placeholder {
374
+ opacity: 0!important;
375
+ }
376
+
377
+ label[data-shrink=false]+.MuiInputBase-formControl .emotion-9:focus::-webkit-input-placeholder {
378
+ opacity: 0.42;
379
+ }
380
+
381
+ label[data-shrink=false]+.MuiInputBase-formControl .emotion-9:focus::-moz-placeholder {
382
+ opacity: 0.42;
383
+ }
384
+
385
+ label[data-shrink=false]+.MuiInputBase-formControl .emotion-9:focus:-ms-input-placeholder {
386
+ opacity: 0.42;
387
+ }
388
+
389
+ label[data-shrink=false]+.MuiInputBase-formControl .emotion-9:focus::-ms-input-placeholder {
390
+ opacity: 0.42;
391
+ }
392
+
393
+ .emotion-9.Mui-disabled {
394
+ opacity: 1;
395
+ -webkit-text-fill-color: rgba(0, 0, 0, 0.38);
396
+ }
397
+
398
+ .emotion-9:-webkit-autofill {
399
+ -webkit-animation-duration: 5000s;
400
+ animation-duration: 5000s;
401
+ -webkit-animation-name: mui-auto-fill;
402
+ animation-name: mui-auto-fill;
403
+ }
404
+
405
+ .emotion-10 {
406
+ position: absolute;
407
+ right: 0;
408
+ top: calc(50% - 14px);
50
409
  }
51
410
 
52
411
  <div
@@ -54,25 +413,28 @@ exports[`<Search /> component should load the component in default state 1`] = `
54
413
  >
55
414
  <div
56
415
  aria-expanded="false"
57
- aria-haspopup="listbox"
58
- aria-owns="react-autowhatever-1"
59
- class="react-autosuggest__container"
416
+ class="MuiAutocomplete-root MuiAutocomplete-fullWidth emotion-2"
60
417
  role="combobox"
61
418
  >
62
419
  <div
63
- aria-autocomplete="list"
64
- aria-controls="react-autowhatever-1"
65
- class="MuiFormControl-root MuiTextField-root react-autosuggest__input emotion-2 emotion-3 MuiFormControl-fullWidth"
420
+ class="MuiFormControl-root MuiFormControl-fullWidth MuiTextField-root emotion-3 emotion-4"
66
421
  >
422
+
67
423
  <div
68
- class="MuiInputBase-root MuiInput-root MuiInput-underline MuiInputBase-fullWidth MuiInput-fullWidth MuiInputBase-formControl MuiInput-formControl MuiInputBase-adornedStart"
424
+ class="MuiInput-root MuiInput-underline MuiInputBase-root MuiInputBase-colorPrimary MuiInputBase-fullWidth MuiInputBase-formControl MuiInputBase-adornedStart MuiInputBase-adornedEnd MuiAutocomplete-inputRoot emotion-5"
69
425
  >
70
426
  <div
71
- class="MuiInputAdornment-root emotion-4 emotion-5 MuiInputAdornment-positionStart"
427
+ class="MuiInputAdornment-root MuiInputAdornment-positionStart MuiInputAdornment-standard MuiInputAdornment-sizeMedium emotion-6 emotion-7"
72
428
  >
429
+ <span
430
+ class="notranslate"
431
+ >
432
+
433
+ </span>
73
434
  <svg
74
435
  aria-hidden="true"
75
- class="MuiSvgIcon-root"
436
+ class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium emotion-8"
437
+ data-testid="SearchIcon"
76
438
  focusable="false"
77
439
  viewBox="0 0 24 24"
78
440
  >
@@ -82,20 +444,22 @@ exports[`<Search /> component should load the component in default state 1`] = `
82
444
  </svg>
83
445
  </div>
84
446
  <input
447
+ aria-autocomplete="list"
85
448
  aria-invalid="false"
449
+ autocapitalize="none"
86
450
  autocomplete="off"
87
- class="MuiInputBase-input MuiInput-input MuiInputBase-inputAdornedStart"
451
+ class="MuiInput-input MuiInputBase-input MuiInputBase-inputAdornedStart MuiInputBase-inputAdornedEnd MuiAutocomplete-input MuiAutocomplete-inputFocused MuiAutocomplete-input MuiAutocomplete-inputFocused emotion-9"
452
+ id="search-header-suggest"
88
453
  placeholder="Search Packages"
454
+ spellcheck="false"
89
455
  type="text"
90
456
  value=""
91
457
  />
458
+ <div
459
+ class="MuiAutocomplete-endAdornment emotion-10"
460
+ />
92
461
  </div>
93
462
  </div>
94
- <div
95
- class="MuiPaper-root react-autosuggest__suggestions-container emotion-6 emotion-7 MuiPaper-elevation1"
96
- id="react-autowhatever-1"
97
- role="listbox"
98
- />
99
463
  </div>
100
464
  </div>
101
465
  `;
@@ -1,6 +1,5 @@
1
- import { css } from '@emotion/core';
1
+ import { css } from '@emotion/react';
2
2
  import styled from '@emotion/styled';
3
-
4
3
  import AppBar from 'verdaccio-ui/components/AppBar';
5
4
  import IconButton from 'verdaccio-ui/components/IconButton';
6
5
  import Link from 'verdaccio-ui/components/Link';
@@ -54,7 +53,7 @@ export const SearchWrapper = styled('div')({
54
53
 
55
54
  export const NavBar = styled(AppBar)<{ theme?: Theme }>(({ theme }) => ({
56
55
  backgroundColor:
57
- theme?.palette.type === 'light' ? theme?.palette.primary.main : theme?.palette.cyanBlue,
56
+ theme?.palette.mode === 'light' ? theme?.palette.primary.main : theme?.palette.cyanBlue,
58
57
  color: theme?.palette.white,
59
58
  minHeight: 60,
60
59
  display: 'flex',
@@ -1,5 +1,6 @@
1
1
  /* eslint-disable verdaccio/jsx-spread */
2
- import React, { lazy, Suspense } from 'react';
2
+ import React, { Suspense, lazy } from 'react';
3
+
3
4
  export default (importCallback: any) => {
4
5
  const TargetComponent = lazy(importCallback);
5
6
  return (props: any) => (
@@ -1,10 +1,8 @@
1
1
  import React from 'react';
2
-
3
- import { renderWithStore, cleanup } from 'verdaccio-ui/utils/test-react-testing-library';
2
+ import { cleanup, renderWithStore, screen } from 'verdaccio-ui/utils/test-react-testing-library';
4
3
 
5
4
  import { DetailContext, DetailContextProps } from '../../pages/Version';
6
5
  import { store } from '../../store/store';
7
-
8
6
  import ActionBar from './ActionBar';
9
7
 
10
8
  const detailContextValue: DetailContextProps = {
@@ -74,18 +72,12 @@ describe('<ActionBar /> component', () => {
74
72
  });
75
73
 
76
74
  test('when there is a button to download a tarball', () => {
77
- const { getByTitle } = renderWithStore(
78
- <ComponentToBeRendered contextValue={{ ...detailContextValue }} />,
79
- store
80
- );
81
- expect(getByTitle('Download tarball')).toBeTruthy();
75
+ renderWithStore(<ComponentToBeRendered contextValue={{ ...detailContextValue }} />, store);
76
+ expect(screen.getByLabelText('Download tarball')).toBeTruthy();
82
77
  });
83
78
 
84
79
  test('when there is a button to open an issue', () => {
85
- const { getByTitle } = renderWithStore(
86
- <ComponentToBeRendered contextValue={{ ...detailContextValue }} />,
87
- store
88
- );
89
- expect(getByTitle('Open an issue')).toBeTruthy();
80
+ renderWithStore(<ComponentToBeRendered contextValue={{ ...detailContextValue }} />, store);
81
+ expect(screen.getByLabelText('Open an issue')).toBeTruthy();
90
82
  });
91
83
  });
@@ -1,10 +1,8 @@
1
1
  import React from 'react';
2
-
3
2
  import { isURL } from 'verdaccio-ui/utils/url';
4
3
 
5
4
  import { DetailContext } from '../../pages/Version';
6
5
  import Box from '../Box';
7
-
8
6
  import ActionBarAction, { ActionBarActionProps } from './ActionBarAction';
9
7
 
10
8
  /* eslint-disable verdaccio/jsx-spread */
@@ -1,25 +1,24 @@
1
1
  import styled from '@emotion/styled';
2
- import BugReportIcon from '@material-ui/icons/BugReport';
3
- import DownloadIcon from '@material-ui/icons/CloudDownload';
4
- import HomeIcon from '@material-ui/icons/Home';
2
+ import BugReportIcon from '@mui/icons-material/BugReport';
3
+ import DownloadIcon from '@mui/icons-material/CloudDownload';
4
+ import HomeIcon from '@mui/icons-material/Home';
5
+ import Tooltip from '@mui/material/Tooltip';
5
6
  import React, { useCallback } from 'react';
6
7
  import { useTranslation } from 'react-i18next';
7
8
  import { useDispatch } from 'react-redux';
8
-
9
9
  import { Theme } from 'verdaccio-ui/design-tokens/theme';
10
10
 
11
11
  import { Dispatch } from '../../store/store';
12
12
  import FloatingActionButton from '../FloatingActionButton';
13
13
  import Link from '../Link';
14
- import Tooltip from '../Tooltip';
15
14
 
16
15
  export const Fab = styled(FloatingActionButton)<{ theme?: Theme }>(({ theme }) => ({
17
16
  backgroundColor:
18
- theme?.palette.type === 'light' ? theme?.palette.primary.main : theme?.palette.cyanBlue,
17
+ theme?.palette.mode === 'light' ? theme?.palette.primary.main : theme?.palette.cyanBlue,
19
18
  color: theme?.palette.white,
20
19
  marginRight: 10,
21
20
  ':hover': {
22
- color: theme?.palette.type === 'light' ? theme?.palette.primary.main : theme?.palette.cyanBlue,
21
+ color: theme?.palette.mode === 'light' ? theme?.palette.primary.main : theme?.palette.cyanBlue,
23
22
  background: theme?.palette.white,
24
23
  },
25
24
  }));