@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,18 +3,36 @@
3
3
  exports[`<UpLinks /> component should render the component when there is no uplink 1`] = `
4
4
  Object {
5
5
  "asFragment": [Function],
6
- "baseElement": <body>
6
+ "baseElement": .emotion-0 {
7
+ margin: 0;
8
+ font-family: -apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;
9
+ font-weight: 400;
10
+ font-size: 1rem;
11
+ line-height: 1.75;
12
+ margin-bottom: 0.35em;
13
+ }
14
+
15
+ <body>
7
16
  <div>
8
17
  <span
9
- class="MuiTypography-root MuiTypography-subtitle1 MuiTypography-gutterBottom"
18
+ class="MuiTypography-root MuiTypography-subtitle1 MuiTypography-gutterBottom emotion-0"
10
19
  >
11
20
  verdaccio has no uplinks.
12
21
  </span>
13
22
  </div>
14
23
  </body>,
15
- "container": <div>
24
+ "container": .emotion-0 {
25
+ margin: 0;
26
+ font-family: -apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;
27
+ font-weight: 400;
28
+ font-size: 1rem;
29
+ line-height: 1.75;
30
+ margin-bottom: 0.35em;
31
+ }
32
+
33
+ <div>
16
34
  <span
17
- class="MuiTypography-root MuiTypography-subtitle1 MuiTypography-gutterBottom"
35
+ class="MuiTypography-root MuiTypography-subtitle1 MuiTypography-gutterBottom emotion-0"
18
36
  >
19
37
  verdaccio has no uplinks.
20
38
  </span>
@@ -76,11 +94,72 @@ Object {
76
94
  exports[`<UpLinks /> component should render the component with uplinks 1`] = `
77
95
  Object {
78
96
  "asFragment": [Function],
79
- "baseElement": .emotion-0 {
97
+ "baseElement": .emotion-1 {
98
+ margin: 0;
99
+ font-family: -apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;
100
+ font-weight: 400;
101
+ font-size: 1rem;
102
+ line-height: 1.75;
80
103
  font-weight: 700;
81
104
  }
82
105
 
83
106
  .emotion-2 {
107
+ list-style: none;
108
+ margin: 0;
109
+ padding: 0;
110
+ position: relative;
111
+ padding-top: 8px;
112
+ padding-bottom: 8px;
113
+ }
114
+
115
+ .emotion-3 {
116
+ display: -webkit-box;
117
+ display: -webkit-flex;
118
+ display: -ms-flexbox;
119
+ display: flex;
120
+ -webkit-box-pack: start;
121
+ -ms-flex-pack: start;
122
+ -webkit-justify-content: flex-start;
123
+ justify-content: flex-start;
124
+ -webkit-align-items: center;
125
+ -webkit-box-align: center;
126
+ -ms-flex-align: center;
127
+ align-items: center;
128
+ position: relative;
129
+ -webkit-text-decoration: none;
130
+ text-decoration: none;
131
+ width: 100%;
132
+ box-sizing: border-box;
133
+ text-align: left;
134
+ padding-top: 8px;
135
+ padding-bottom: 8px;
136
+ padding-left: 16px;
137
+ padding-right: 16px;
138
+ }
139
+
140
+ .emotion-3.Mui-focusVisible {
141
+ background-color: rgba(0, 0, 0, 0.12);
142
+ }
143
+
144
+ .emotion-3.Mui-selected {
145
+ background-color: rgba(75, 94, 64, 0.08);
146
+ }
147
+
148
+ .emotion-3.Mui-selected.Mui-focusVisible {
149
+ background-color: rgba(75, 94, 64, 0.2);
150
+ }
151
+
152
+ .emotion-3.Mui-disabled {
153
+ opacity: 0.38;
154
+ }
155
+
156
+ .emotion-5 {
157
+ -webkit-flex: 1 1 auto;
158
+ -ms-flex: 1 1 auto;
159
+ flex: 1 1 auto;
160
+ min-width: 0;
161
+ margin-top: 4px;
162
+ margin-bottom: 4px;
84
163
  -webkit-flex: none;
85
164
  -ms-flex: none;
86
165
  flex: none;
@@ -88,11 +167,20 @@ Object {
88
167
  opacity: 0.6;
89
168
  }
90
169
 
91
- .emotion-4 {
170
+ .emotion-6 {
171
+ margin: 0;
172
+ font-family: -apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;
173
+ font-weight: 400;
174
+ font-size: 1rem;
175
+ line-height: 1.5;
176
+ display: block;
177
+ }
178
+
179
+ .emotion-7 {
92
180
  -webkit-flex: 1 1 auto;
93
181
  -ms-flex: 1 1 auto;
94
182
  flex: 1 1 auto;
95
- border-bottom: 1px dotted rgba(0,0,0,0.2);
183
+ border-bottom: 1px dotted rgba(0, 0, 0, 0.2);
96
184
  white-space: nowrap;
97
185
  height: 0.5em;
98
186
  }
@@ -100,33 +188,33 @@ Object {
100
188
  <body>
101
189
  <div>
102
190
  <span
103
- class="MuiTypography-root emotion-0 emotion-1 MuiTypography-subtitle1"
191
+ class="MuiTypography-root MuiTypography-subtitle1 emotion-0 emotion-1"
104
192
  >
105
193
  Uplinks
106
194
  </span>
107
195
  <ul
108
- class="MuiList-root MuiList-padding"
196
+ class="MuiList-root MuiList-padding emotion-2"
109
197
  >
110
198
  <li
111
- class="MuiListItem-root MuiListItem-gutters"
199
+ class="MuiListItem-root MuiListItem-gutters MuiListItem-padding emotion-3"
112
200
  >
113
201
  <div
114
- class="MuiListItemText-root emotion-2 emotion-3"
202
+ class="MuiListItemText-root emotion-4 emotion-5"
115
203
  >
116
204
  <span
117
- class="MuiTypography-root MuiListItemText-primary MuiTypography-body1 MuiTypography-displayBlock"
205
+ class="MuiTypography-root MuiTypography-body1 MuiListItemText-primary emotion-6"
118
206
  >
119
207
  npmjs
120
208
  </span>
121
209
  </div>
122
210
  <div
123
- class="emotion-4 emotion-5"
211
+ class="emotion-7 emotion-8"
124
212
  />
125
213
  <div
126
- class="MuiListItemText-root emotion-2 emotion-3"
214
+ class="MuiListItemText-root emotion-4 emotion-5"
127
215
  >
128
216
  <span
129
- class="MuiTypography-root MuiListItemText-primary MuiTypography-body1 MuiTypography-displayBlock"
217
+ class="MuiTypography-root MuiTypography-body1 MuiListItemText-primary emotion-6"
130
218
  >
131
219
  3 years ago
132
220
  </span>
@@ -135,11 +223,72 @@ Object {
135
223
  </ul>
136
224
  </div>
137
225
  </body>,
138
- "container": .emotion-0 {
226
+ "container": .emotion-1 {
227
+ margin: 0;
228
+ font-family: -apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;
229
+ font-weight: 400;
230
+ font-size: 1rem;
231
+ line-height: 1.75;
139
232
  font-weight: 700;
140
233
  }
141
234
 
142
235
  .emotion-2 {
236
+ list-style: none;
237
+ margin: 0;
238
+ padding: 0;
239
+ position: relative;
240
+ padding-top: 8px;
241
+ padding-bottom: 8px;
242
+ }
243
+
244
+ .emotion-3 {
245
+ display: -webkit-box;
246
+ display: -webkit-flex;
247
+ display: -ms-flexbox;
248
+ display: flex;
249
+ -webkit-box-pack: start;
250
+ -ms-flex-pack: start;
251
+ -webkit-justify-content: flex-start;
252
+ justify-content: flex-start;
253
+ -webkit-align-items: center;
254
+ -webkit-box-align: center;
255
+ -ms-flex-align: center;
256
+ align-items: center;
257
+ position: relative;
258
+ -webkit-text-decoration: none;
259
+ text-decoration: none;
260
+ width: 100%;
261
+ box-sizing: border-box;
262
+ text-align: left;
263
+ padding-top: 8px;
264
+ padding-bottom: 8px;
265
+ padding-left: 16px;
266
+ padding-right: 16px;
267
+ }
268
+
269
+ .emotion-3.Mui-focusVisible {
270
+ background-color: rgba(0, 0, 0, 0.12);
271
+ }
272
+
273
+ .emotion-3.Mui-selected {
274
+ background-color: rgba(75, 94, 64, 0.08);
275
+ }
276
+
277
+ .emotion-3.Mui-selected.Mui-focusVisible {
278
+ background-color: rgba(75, 94, 64, 0.2);
279
+ }
280
+
281
+ .emotion-3.Mui-disabled {
282
+ opacity: 0.38;
283
+ }
284
+
285
+ .emotion-5 {
286
+ -webkit-flex: 1 1 auto;
287
+ -ms-flex: 1 1 auto;
288
+ flex: 1 1 auto;
289
+ min-width: 0;
290
+ margin-top: 4px;
291
+ margin-bottom: 4px;
143
292
  -webkit-flex: none;
144
293
  -ms-flex: none;
145
294
  flex: none;
@@ -147,44 +296,53 @@ Object {
147
296
  opacity: 0.6;
148
297
  }
149
298
 
150
- .emotion-4 {
299
+ .emotion-6 {
300
+ margin: 0;
301
+ font-family: -apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;
302
+ font-weight: 400;
303
+ font-size: 1rem;
304
+ line-height: 1.5;
305
+ display: block;
306
+ }
307
+
308
+ .emotion-7 {
151
309
  -webkit-flex: 1 1 auto;
152
310
  -ms-flex: 1 1 auto;
153
311
  flex: 1 1 auto;
154
- border-bottom: 1px dotted rgba(0,0,0,0.2);
312
+ border-bottom: 1px dotted rgba(0, 0, 0, 0.2);
155
313
  white-space: nowrap;
156
314
  height: 0.5em;
157
315
  }
158
316
 
159
317
  <div>
160
318
  <span
161
- class="MuiTypography-root emotion-0 emotion-1 MuiTypography-subtitle1"
319
+ class="MuiTypography-root MuiTypography-subtitle1 emotion-0 emotion-1"
162
320
  >
163
321
  Uplinks
164
322
  </span>
165
323
  <ul
166
- class="MuiList-root MuiList-padding"
324
+ class="MuiList-root MuiList-padding emotion-2"
167
325
  >
168
326
  <li
169
- class="MuiListItem-root MuiListItem-gutters"
327
+ class="MuiListItem-root MuiListItem-gutters MuiListItem-padding emotion-3"
170
328
  >
171
329
  <div
172
- class="MuiListItemText-root emotion-2 emotion-3"
330
+ class="MuiListItemText-root emotion-4 emotion-5"
173
331
  >
174
332
  <span
175
- class="MuiTypography-root MuiListItemText-primary MuiTypography-body1 MuiTypography-displayBlock"
333
+ class="MuiTypography-root MuiTypography-body1 MuiListItemText-primary emotion-6"
176
334
  >
177
335
  npmjs
178
336
  </span>
179
337
  </div>
180
338
  <div
181
- class="emotion-4 emotion-5"
339
+ class="emotion-7 emotion-8"
182
340
  />
183
341
  <div
184
- class="MuiListItemText-root emotion-2 emotion-3"
342
+ class="MuiListItemText-root emotion-4 emotion-5"
185
343
  >
186
344
  <span
187
- class="MuiTypography-root MuiListItemText-primary MuiTypography-body1 MuiTypography-displayBlock"
345
+ class="MuiTypography-root MuiTypography-body1 MuiListItemText-primary emotion-6"
188
346
  >
189
347
  3 years ago
190
348
  </span>
@@ -1,5 +1,4 @@
1
1
  import styled from '@emotion/styled';
2
-
3
2
  import { default as MuiListItemText } from 'verdaccio-ui/components/ListItemText';
4
3
  import Text from 'verdaccio-ui/components/Text';
5
4
  import { Theme } from 'verdaccio-ui/design-tokens/theme';
@@ -11,7 +10,7 @@ export const StyledText = styled(Text)<{ theme?: Theme }>((props) => ({
11
10
  export const Spacer = styled('div')<{ theme?: Theme }>(({ theme }) => ({
12
11
  flex: '1 1 auto',
13
12
  borderBottom: `1px dotted ${
14
- theme?.palette.type == 'light' ? 'rgba(0, 0, 0, 0.2)' : 'rgba(255, 255, 255, 0.2)'
13
+ theme?.palette.mode == 'light' ? 'rgba(0, 0, 0, 0.2)' : 'rgba(255, 255, 255, 0.2)'
15
14
  } `,
16
15
  whiteSpace: 'nowrap',
17
16
  height: '0.5em',
@@ -19,6 +18,6 @@ export const Spacer = styled('div')<{ theme?: Theme }>(({ theme }) => ({
19
18
 
20
19
  export const ListItemText = styled(MuiListItemText)<{ theme?: Theme }>(({ theme }) => ({
21
20
  flex: 'none',
22
- color: theme?.palette.type == 'light' ? theme?.palette.black : theme?.palette.white,
21
+ color: theme?.palette.mode == 'light' ? theme?.palette.black : theme?.palette.white,
23
22
  opacity: 0.6,
24
23
  }));
@@ -1,14 +1,12 @@
1
1
  import React from 'react';
2
2
  import { MemoryRouter } from 'react-router-dom';
3
-
4
- import { render, cleanup } from 'verdaccio-ui/utils/test-react-testing-library';
3
+ import { cleanup, render } from 'verdaccio-ui/utils/test-react-testing-library';
5
4
 
6
5
  import translationEN from '../../../../i18n/crowdin/ui.json';
7
6
  import { DetailContext } from '../../context';
8
7
  import { DetailContextProps } from '../../version-config';
9
-
10
- import data from './__partials__/data.json';
11
8
  import Versions from './Versions';
9
+ import data from './__partials__/data.json';
12
10
 
13
11
  const detailContextValue: Partial<DetailContextProps> = {
14
12
  packageName: 'foo',
@@ -3,10 +3,9 @@ import { useTranslation } from 'react-i18next';
3
3
 
4
4
  import { DIST_TAGS } from '../../../../../lib/constants';
5
5
  import { DetailContext } from '../../context';
6
-
7
- import { StyledText } from './styles';
8
6
  import VersionsHistoryList from './VersionsHistoryList';
9
7
  import VersionsTagList from './VersionsTagList';
8
+ import { StyledText } from './styles';
10
9
 
11
10
  const Versions: React.FC = () => {
12
11
  const detailContext = useContext(DetailContext);
@@ -1,13 +1,11 @@
1
1
  import React from 'react';
2
2
  import { useTranslation } from 'react-i18next';
3
-
4
3
  import List from 'verdaccio-ui/components/List';
5
4
  import ListItem from 'verdaccio-ui/components/ListItem';
6
5
  import { formatDateDistance } from 'verdaccio-ui/utils/package';
7
6
 
8
- import { Versions, Time } from '../../../../../types/packageMeta';
9
-
10
- import { Spacer, ListItemText, StyledLink } from './styles';
7
+ import { Time, Versions } from '../../../../../types/packageMeta';
8
+ import { ListItemText, Spacer, StyledLink } from './styles';
11
9
 
12
10
  interface Props {
13
11
  versions: Versions;
@@ -1,11 +1,9 @@
1
1
  import React from 'react';
2
-
3
2
  import List from 'verdaccio-ui/components/List';
4
3
  import ListItem from 'verdaccio-ui/components/ListItem';
5
4
 
6
5
  import { DistTags } from '../../../../../types/packageMeta';
7
-
8
- import { Spacer, ListItemText } from './styles';
6
+ import { ListItemText, Spacer } from './styles';
9
7
 
10
8
  interface Props {
11
9
  tags: DistTags;
@@ -1,5 +1,4 @@
1
1
  import styled from '@emotion/styled';
2
-
3
2
  import Link from 'verdaccio-ui/components/Link';
4
3
  import { default as MuiListItemText } from 'verdaccio-ui/components/ListItemText';
5
4
  import Text from 'verdaccio-ui/components/Text';
@@ -12,7 +11,7 @@ export const StyledText = styled(Text)<{ theme?: Theme }>((props) => ({
12
11
  export const Spacer = styled('div')<{ theme?: Theme }>(({ theme }) => ({
13
12
  flex: '1 1 auto',
14
13
  borderBottom: `1px dotted ${
15
- theme?.palette.type == 'light' ? 'rgba(0, 0, 0, 0.2)' : 'rgba(255, 255, 255, 0.2)'
14
+ theme?.palette.mode == 'light' ? 'rgba(0, 0, 0, 0.2)' : 'rgba(255, 255, 255, 0.2)'
16
15
  } `,
17
16
  whiteSpace: 'nowrap',
18
17
  height: '0.5em',
@@ -22,7 +21,7 @@ export const Spacer = styled('div')<{ theme?: Theme }>(({ theme }) => ({
22
21
  export const ListItemText = styled(MuiListItemText)<{ theme?: Theme }>(({ theme }) => ({
23
22
  flex: 'none',
24
23
  opacity: 0.6,
25
- color: theme?.palette.type == 'light' ? theme?.palette.black : theme?.palette.white,
24
+ color: theme?.palette.mode == 'light' ? theme?.palette.black : theme?.palette.white,
26
25
  }));
27
26
 
28
27
  export const StyledLink = styled(Link)({
@@ -2,99 +2,233 @@
2
2
 
3
3
  exports[`DetailContainer renders correctly 1`] = `
4
4
  .emotion-0 {
5
+ display: -webkit-box;
6
+ display: -webkit-flex;
7
+ display: -ms-flexbox;
8
+ display: flex;
9
+ -webkit-flex-direction: column;
10
+ -ms-flex-direction: column;
11
+ flex-direction: column;
12
+ padding: 16px;
13
+ }
14
+
15
+ .emotion-2 {
16
+ overflow: hidden;
17
+ min-height: 48px;
18
+ -webkit-overflow-scrolling: touch;
19
+ display: -webkit-box;
20
+ display: -webkit-flex;
21
+ display: -ms-flexbox;
22
+ display: flex;
5
23
  margin-bottom: 16px;
6
24
  }
7
25
 
26
+ @media (max-width:599.95px) {
27
+ .emotion-2 .MuiTabs-scrollButtons {
28
+ display: none;
29
+ }
30
+ }
31
+
32
+ .emotion-3 {
33
+ position: relative;
34
+ display: inline-block;
35
+ -webkit-flex: 1 1 auto;
36
+ -ms-flex: 1 1 auto;
37
+ flex: 1 1 auto;
38
+ white-space: nowrap;
39
+ overflow-x: hidden;
40
+ width: 100%;
41
+ }
42
+
43
+ .emotion-4 {
44
+ display: -webkit-box;
45
+ display: -webkit-flex;
46
+ display: -ms-flexbox;
47
+ display: flex;
48
+ }
49
+
50
+ .emotion-5 {
51
+ display: -webkit-inline-box;
52
+ display: -webkit-inline-flex;
53
+ display: -ms-inline-flexbox;
54
+ display: inline-flex;
55
+ -webkit-align-items: center;
56
+ -webkit-box-align: center;
57
+ -ms-flex-align: center;
58
+ align-items: center;
59
+ -webkit-box-pack: center;
60
+ -ms-flex-pack: center;
61
+ -webkit-justify-content: center;
62
+ justify-content: center;
63
+ position: relative;
64
+ box-sizing: border-box;
65
+ -webkit-tap-highlight-color: transparent;
66
+ background-color: transparent;
67
+ outline: 0;
68
+ border: 0;
69
+ margin: 0;
70
+ border-radius: 0;
71
+ padding: 0;
72
+ cursor: pointer;
73
+ -webkit-user-select: none;
74
+ -moz-user-select: none;
75
+ -ms-user-select: none;
76
+ user-select: none;
77
+ vertical-align: middle;
78
+ -moz-appearance: none;
79
+ -webkit-appearance: none;
80
+ -webkit-text-decoration: none;
81
+ text-decoration: none;
82
+ color: inherit;
83
+ font-family: -apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;
84
+ font-weight: 500;
85
+ font-size: 0.875rem;
86
+ line-height: 1.25;
87
+ text-transform: uppercase;
88
+ max-width: none;
89
+ min-width: 90px;
90
+ position: relative;
91
+ min-height: 48px;
92
+ -webkit-flex-shrink: 1;
93
+ -ms-flex-negative: 1;
94
+ flex-shrink: 1;
95
+ padding: 12px 16px;
96
+ overflow: hidden;
97
+ white-space: normal;
98
+ text-align: center;
99
+ -webkit-flex-direction: column;
100
+ -ms-flex-direction: column;
101
+ flex-direction: column;
102
+ color: rgba(0, 0, 0, 0.6);
103
+ -webkit-box-flex: 1;
104
+ -webkit-flex-grow: 1;
105
+ -ms-flex-positive: 1;
106
+ flex-grow: 1;
107
+ -webkit-flex-basis: 0;
108
+ -ms-flex-preferred-size: 0;
109
+ flex-basis: 0;
110
+ }
111
+
112
+ .emotion-5::-moz-focus-inner {
113
+ border-style: none;
114
+ }
115
+
116
+ .emotion-5.Mui-disabled {
117
+ pointer-events: none;
118
+ cursor: default;
119
+ }
120
+
121
+ @media print {
122
+ .emotion-5 {
123
+ -webkit-print-color-adjust: exact;
124
+ color-adjust: exact;
125
+ }
126
+ }
127
+
128
+ .emotion-5.Mui-selected {
129
+ color: #4b5e40;
130
+ }
131
+
132
+ .emotion-5.Mui-disabled {
133
+ color: rgba(0, 0, 0, 0.38);
134
+ }
135
+
136
+ .emotion-6 {
137
+ overflow: hidden;
138
+ pointer-events: none;
139
+ position: absolute;
140
+ z-index: 0;
141
+ top: 0;
142
+ right: 0;
143
+ bottom: 0;
144
+ left: 0;
145
+ border-radius: inherit;
146
+ }
147
+
148
+ .emotion-13 {
149
+ position: absolute;
150
+ height: 2px;
151
+ bottom: 0;
152
+ width: 100%;
153
+ -webkit-transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
154
+ transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
155
+ background-color: #4b5e40;
156
+ }
157
+
8
158
  <div
9
- class="MuiBox-root MuiBox-root-1"
159
+ class="MuiBox-root emotion-0"
10
160
  >
11
161
  <div
12
- class="MuiTabs-root emotion-0 emotion-1"
162
+ class="MuiTabs-root emotion-1 emotion-2"
13
163
  color="primary"
14
164
  >
15
165
  <div
16
- class="MuiTabs-scroller MuiTabs-fixed"
17
- style="overflow: hidden;"
166
+ class="MuiTabs-scroller MuiTabs-fixed emotion-3"
167
+ style="overflow: hidden; margin-bottom: 0px;"
18
168
  >
19
169
  <div
20
- class="MuiTabs-flexContainer"
170
+ class="MuiTabs-flexContainer emotion-4"
21
171
  role="tablist"
22
172
  >
23
173
  <button
24
174
  aria-selected="true"
25
- class="MuiButtonBase-root MuiTab-root MuiTab-textColorInherit Mui-selected MuiTab-fullWidth"
175
+ class="MuiButtonBase-root MuiTab-root MuiTab-textColorPrimary MuiTab-fullWidth Mui-selected emotion-5"
26
176
  data-testid="readme-tab"
27
177
  id="readme-tab"
28
178
  role="tab"
29
179
  tabindex="0"
30
180
  type="button"
31
181
  >
182
+ Readme
32
183
  <span
33
- class="MuiTab-wrapper"
34
- >
35
- Readme
36
- </span>
37
- <span
38
- class="MuiTouchRipple-root"
184
+ class="MuiTouchRipple-root emotion-6"
39
185
  />
40
186
  </button>
41
187
  <button
42
188
  aria-selected="false"
43
- class="MuiButtonBase-root MuiTab-root MuiTab-textColorInherit MuiTab-fullWidth"
189
+ class="MuiButtonBase-root MuiTab-root MuiTab-textColorPrimary MuiTab-fullWidth emotion-5"
44
190
  data-testid="dependencies-tab"
45
191
  id="dependencies-tab"
46
192
  role="tab"
47
193
  tabindex="-1"
48
194
  type="button"
49
195
  >
196
+ Dependencies
50
197
  <span
51
- class="MuiTab-wrapper"
52
- >
53
- Dependencies
54
- </span>
55
- <span
56
- class="MuiTouchRipple-root"
198
+ class="MuiTouchRipple-root emotion-6"
57
199
  />
58
200
  </button>
59
201
  <button
60
202
  aria-selected="false"
61
- class="MuiButtonBase-root MuiTab-root MuiTab-textColorInherit MuiTab-fullWidth"
203
+ class="MuiButtonBase-root MuiTab-root MuiTab-textColorPrimary MuiTab-fullWidth emotion-5"
62
204
  data-testid="versions-tab"
63
205
  id="versions-tab"
64
206
  role="tab"
65
207
  tabindex="-1"
66
208
  type="button"
67
209
  >
210
+ Versions
68
211
  <span
69
- class="MuiTab-wrapper"
70
- >
71
- Versions
72
- </span>
73
- <span
74
- class="MuiTouchRipple-root"
212
+ class="MuiTouchRipple-root emotion-6"
75
213
  />
76
214
  </button>
77
215
  <button
78
216
  aria-selected="false"
79
- class="MuiButtonBase-root MuiTab-root MuiTab-textColorInherit MuiTab-fullWidth"
217
+ class="MuiButtonBase-root MuiTab-root MuiTab-textColorPrimary MuiTab-fullWidth emotion-5"
80
218
  data-testid="uplinks-tab"
81
219
  id="uplinks-tab"
82
220
  role="tab"
83
221
  tabindex="-1"
84
222
  type="button"
85
223
  >
224
+ Uplinks
86
225
  <span
87
- class="MuiTab-wrapper"
88
- >
89
- Uplinks
90
- </span>
91
- <span
92
- class="MuiTouchRipple-root"
226
+ class="MuiTouchRipple-root emotion-6"
93
227
  />
94
228
  </button>
95
229
  </div>
96
230
  <span
97
- class="PrivateTabIndicator-root-2 PrivateTabIndicator-colorPrimary-3 MuiTabs-indicator"
231
+ class="MuiTabs-indicator emotion-13"
98
232
  style="left: 0px; width: 0px;"
99
233
  />
100
234
  </div>