@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
@@ -3,7 +3,6 @@ import webpack from 'webpack';
3
3
  import WebpackDevServer from 'webpack-dev-server';
4
4
 
5
5
  import env from '../config/env';
6
-
7
6
  import config from './webpack.dev.config.babel';
8
7
 
9
8
  const compiler = webpack(config);
@@ -1,13 +1,11 @@
1
- import fs from 'fs';
2
-
3
1
  import FriendlyErrorsPlugin from 'friendly-errors-webpack-plugin';
2
+ import fs from 'fs';
4
3
  import HTMLWebpackPlugin from 'html-webpack-plugin';
5
4
  import yalm from 'js-yaml';
6
5
  import StyleLintPlugin from 'stylelint-webpack-plugin';
7
6
  import webpack from 'webpack';
8
7
 
9
8
  import env from '../config/env';
10
-
11
9
  import getPackageJson from './getPackageJson';
12
10
  import baseConfig from './webpack.config';
13
11
 
@@ -27,7 +27,7 @@ const prodConf = {
27
27
  devtool: 'inline-cheap-module-source-map',
28
28
 
29
29
  entry: {
30
- main: ['@babel/polyfill', 'whatwg-fetch', `${env.SRC_ROOT}/index.tsx`],
30
+ main: ['whatwg-fetch', `${env.SRC_ROOT}/index.tsx`],
31
31
  },
32
32
 
33
33
  module: {
package/tsconfig.json CHANGED
@@ -4,12 +4,10 @@
4
4
  "skipLibCheck": true,
5
5
  "module": "esnext",
6
6
  "moduleResolution": "node",
7
- "strict": true,
8
7
  "allowSyntheticDefaultImports": true,
9
8
  "jsx": "react",
10
9
  "allowJs": true,
11
10
  "sourceMap": true,
12
- "resolveJsonModule": true,
13
11
  "checkJs": false,
14
12
  "baseUrl": ".",
15
13
  "paths": {
@@ -18,7 +16,7 @@
18
16
  "verdaccio-ui/utils/*": ["src/utils/*"]
19
17
  }
20
18
  },
21
- "include": ["src", "types/*.d.ts", "i18n/**/*.json"],
19
+ "include": ["src", "types/*.d.ts", "src/i18n/**/*.json", "jest/unit/components"],
22
20
  "references": [
23
21
  {
24
22
  "path": "../../node-api"
package/types/index.ts CHANGED
@@ -1,26 +1,9 @@
1
- // FIXME: this should comes from @verdaccio/types
2
-
3
- type PackageManagers = 'pnpm' | 'yarn' | 'npm';
4
- export interface VerdaccioOptions {
5
- url_prefix: string;
6
- base: string;
7
- scope: string;
8
- title: string;
9
- primaryColor: string;
10
- darkMode: boolean;
11
- uri?: string;
12
- login?: boolean;
13
- language?: string;
14
- version?: string;
15
- protocol?: string;
16
- host?: string;
17
- logo?: string;
18
- pkgManagers?: PackageManagers[];
19
- }
1
+ import { TemplateUIOptions } from '@verdaccio/types';
20
2
 
21
3
  declare global {
22
4
  interface Window {
23
- __VERDACCIO_BASENAME_UI_OPTIONS: VerdaccioOptions;
5
+ __VERDACCIO_BASENAME_UI_OPTIONS: TemplateUIOptions;
6
+ // FIXME: remove all these variables
24
7
  VERDACCIO_PRIMARY_COLOR: string;
25
8
  VERDACCIO_LOGO: string;
26
9
  VERDACCIO_SCOPE: string;
package/i18n/config.ts DELETED
@@ -1,94 +0,0 @@
1
- import i18n from 'i18next';
2
- import { initReactI18next } from 'react-i18next';
3
-
4
- import translationCS from './translations/cs-CZ.json';
5
- import translationDE from './translations/de-DE.json';
6
- import translationEN from './translations/en-US.json';
7
- import translationES from './translations/es-ES.json';
8
- import translationFR from './translations/fr-FR.json';
9
- import translationJP from './translations/ja-JP.json';
10
- import translationKM from './translations/km-KH.json';
11
- import translationPT from './translations/pt-BR.json';
12
- import translationRU from './translations/ru-RU.json';
13
- import translationTR from './translations/tr-TR.json';
14
- import translationUA from './translations/uk-UA.json';
15
- import translationCN from './translations/zh-CN.json';
16
- import translatiobTW from './translations/zh-TW.json';
17
-
18
- const languages = {
19
- 'en-US': {
20
- translation: translationEN,
21
- },
22
- 'cs-CZ': {
23
- translation: translationCS,
24
- },
25
- 'pt-BR': {
26
- translation: translationPT,
27
- },
28
- 'es-ES': {
29
- translation: translationES,
30
- },
31
- 'de-DE': {
32
- translation: translationDE,
33
- },
34
- 'fr-FR': {
35
- translation: translationFR,
36
- },
37
- 'zh-CN': {
38
- translation: translationCN,
39
- },
40
- 'ja-JP': {
41
- translation: translationJP,
42
- },
43
- 'ru-RU': {
44
- translation: translationRU,
45
- },
46
- 'tr-TR': {
47
- translation: translationTR,
48
- },
49
- 'uk-UA': {
50
- translation: translationUA,
51
- },
52
- 'km-KH': {
53
- translation: translationKM,
54
- },
55
- 'zh-TW': {
56
- translation: translatiobTW,
57
- },
58
- };
59
-
60
- type Language = keyof typeof languages;
61
- i18n
62
- // pass the i18n instance to react-i18next.
63
- .use(initReactI18next)
64
- // init i18next
65
- // for all options read: https://www.i18next.com/overview/configuration-options
66
- .init({
67
- // in case window.VEDACCIO_LANGUAGE is undefined,it will fall back to 'en-US'
68
- lng: window?.__VERDACCIO_BASENAME_UI_OPTIONS?.language || 'en-US',
69
- fallbackLng: 'en-US',
70
- whitelist: [
71
- 'en-US',
72
- 'cs-CZ',
73
- 'pt-BR',
74
- 'es-ES',
75
- 'de-DE',
76
- 'fr-FR',
77
- 'zh-CN',
78
- 'ja-JP',
79
- 'ru-RU',
80
- 'tr-TR',
81
- 'uk-UA',
82
- 'km-KH',
83
- 'zh-TW',
84
- ],
85
- load: 'currentOnly',
86
- resources: languages,
87
- debug: false,
88
- interpolation: {
89
- escapeValue: false, // react already safes from xss
90
- },
91
- });
92
-
93
- export default i18n;
94
- export { Language };
@@ -1,18 +0,0 @@
1
- import { createContext } from 'react';
2
-
3
- export interface AppProps {
4
- user?: User;
5
- scope: string;
6
- }
7
-
8
- export interface User {
9
- username: string | null;
10
- }
11
-
12
- export interface AppContextProps extends AppProps {
13
- setUser: (user?: User) => void;
14
- }
15
-
16
- const AppContext = createContext<undefined | AppContextProps>(undefined);
17
-
18
- export default AppContext;
@@ -1,44 +0,0 @@
1
- import React, { useState, useEffect } from 'react';
2
-
3
- import { useConfig } from 'verdaccio-ui/providers/config';
4
-
5
- import AppContext, { AppProps, User } from './AppContext';
6
-
7
- interface Props {
8
- user?: User;
9
- }
10
-
11
- /* eslint-disable react-hooks/exhaustive-deps */
12
- const AppContextProvider: React.FC<Props> = ({ children, user }) => {
13
- const { configOptions } = useConfig();
14
- const [state, setState] = useState<AppProps>({
15
- scope: configOptions.scope ?? '',
16
- user,
17
- });
18
-
19
- useEffect(() => {
20
- setState({
21
- ...state,
22
- user,
23
- });
24
- }, [user]);
25
-
26
- const setUser = (user?: User) => {
27
- setState({
28
- ...state,
29
- user,
30
- });
31
- };
32
-
33
- return (
34
- <AppContext.Provider
35
- value={{
36
- ...state,
37
- setUser,
38
- }}>
39
- {children}
40
- </AppContext.Provider>
41
- );
42
- };
43
-
44
- export default AppContextProvider;
@@ -1,18 +0,0 @@
1
- import styled from '@emotion/styled';
2
- import Search from '@material-ui/icons/Search';
3
- import React from 'react';
4
-
5
- import InputAdornment from 'verdaccio-ui/components/InputAdornment';
6
- import { Theme } from 'verdaccio-ui/design-tokens/theme';
7
-
8
- const StyledInputAdornment = styled(InputAdornment)<{ theme?: Theme }>((props) => ({
9
- color: props.theme?.palette.white,
10
- }));
11
-
12
- const SearchAdornment: React.FC = () => (
13
- <StyledInputAdornment position={'start'}>
14
- <Search />
15
- </StyledInputAdornment>
16
- );
17
-
18
- export default SearchAdornment;
@@ -1,23 +0,0 @@
1
- import React from 'react';
2
- import { useTranslation } from 'react-i18next';
3
-
4
- import { SvgIcon } from '../SvgIcon';
5
-
6
- type Props = React.ComponentProps<typeof SvgIcon>;
7
-
8
- const Austria = React.forwardRef(function Austria(props: Props, ref: React.Ref<SVGSVGElement>) {
9
- const { t } = useTranslation();
10
- return (
11
- <SvgIcon viewBox="0 0 512 512" {...props} ref={ref} title={t('flag.austria')}>
12
- <path
13
- d="M473.655 88.276H38.345C17.167 88.276 0 105.443 0 126.621v73.471h512v-73.471c0-21.178-17.167-38.345-38.345-38.345zM0 385.379c0 21.177 17.167 38.345 38.345 38.345h435.31c21.177 0 38.345-17.167 38.345-38.345v-73.471H0v73.471z"
14
- fill="#ff4b55"
15
- />
16
- <path fill="#f5f5f5" d="M0 200.09h512V311.9H0z" />
17
- </SvgIcon>
18
- );
19
- });
20
-
21
- Austria.displayName = 'Austria';
22
-
23
- export { Austria };
@@ -1,44 +0,0 @@
1
- import React from 'react';
2
- import { useTranslation } from 'react-i18next';
3
-
4
- import { SvgIcon } from '../SvgIcon';
5
-
6
- type Props = React.ComponentProps<typeof SvgIcon>;
7
-
8
- const Brazil = React.forwardRef(function Brazil(props: Props, ref: React.Ref<SVGSVGElement>) {
9
- const { t } = useTranslation();
10
- return (
11
- <SvgIcon viewBox="0 0 45 45" {...props} ref={ref} title={t('flag.brazil')}>
12
- <defs>
13
- <clipPath id="prefix__a">
14
- <path d="M0 36h36V0H0v36z" />
15
- </clipPath>
16
- </defs>
17
- <g clipPath="url(#prefix__a)" transform="matrix(1.25 0 0 -1.25 0 45)">
18
- <path
19
- d="M36 9a4 4 0 00-4-4H4a4 4 0 00-4 4v18a4 4 0 004 4h28a4 4 0 004-4V9z"
20
- fill="#009b3a"
21
- />
22
- <path d="M32.727 18L18 6.876 3.27 18 18 29.125 32.727 18z" fill="#fedf01" />
23
- <path
24
- d="M24.434 18.076a6.458 6.458 0 11-12.917 0 6.458 6.458 0 0112.917 0"
25
- fill="#002776"
26
- />
27
- <path
28
- d="M12.277 21.113a6.406 6.406 0 01-.672-2.023c3.994.29 9.417-1.892 11.744-4.596.402.604.7 1.28.882 2.004-2.871 2.809-7.916 4.63-11.954 4.615"
29
- fill="#cbe9d4"
30
- />
31
- <path d="M13 16.767h-1v1h1v-1zm1-2h-1v1h1v-1z" fill="#88c9f9" />
32
- <path
33
- d="M16 16.767h-1v1h1v-1zm2-1h-1v1h1v-1zm4-2h-1v1h1v-1zm-3-1h-1v1h1v-1zm3 6h-1v1h1v-1z"
34
- fill="#55acee"
35
- />
36
- <path d="M20 14.767h-1v1h1v-1z" fill="#3b88c3" />
37
- </g>
38
- </SvgIcon>
39
- );
40
- });
41
-
42
- Brazil.displayName = 'Brazil';
43
-
44
- export { Brazil };
@@ -1,33 +0,0 @@
1
- import React from 'react';
2
- import { useTranslation } from 'react-i18next';
3
-
4
- import { SvgIcon } from '../SvgIcon';
5
-
6
- type Props = React.ComponentProps<typeof SvgIcon>;
7
-
8
- const China = React.forwardRef(function China(props: Props, ref: React.Ref<SVGSVGElement>) {
9
- const { t } = useTranslation();
10
- return (
11
- <SvgIcon viewBox="0 0 45 45" {...props} ref={ref} title={t('flag.china')}>
12
- <defs>
13
- <clipPath id="prefix__a">
14
- <path d="M0 36h36V0H0v36z" />
15
- </clipPath>
16
- </defs>
17
- <g clipPath="url(#prefix__a)" transform="matrix(1.25 0 0 -1.25 0 45)">
18
- <path
19
- d="M36 9a4 4 0 00-4-4H4a4 4 0 00-4 4v18a4 4 0 004 4h28a4 4 0 004-4V9z"
20
- fill="#de2910"
21
- />
22
- <path
23
- d="M7 25.049l.929-2.67 2.826-.06-2.253-1.706.819-2.707L7 19.52l-2.321-1.615.819 2.707-2.253 1.707 2.826.059.929 2.67zm6 3.423l.34-.688.759-.11-.549-.536.129-.756-.679.357-.679-.357.13.756-.55.536.76.11.339.688zm2-4l.34-.688.759-.11-.549-.536.129-.756-.679.357-.679-.357.13.756-.55.536.76.11.339.688zm0-4l.34-.688.759-.11-.549-.536.129-.756-.679.357-.679-.357.13.756-.55.536.76.11.339.688zm-2-3.999l.34-.69.759-.11-.549-.534.129-.757-.679.357-.679-.357.13.757-.55.535.76.11.339.689z"
24
- fill="#ffde02"
25
- />
26
- </g>
27
- </SvgIcon>
28
- );
29
- });
30
-
31
- China.displayName = 'China';
32
-
33
- export { China };
@@ -1,21 +0,0 @@
1
- import React from 'react';
2
- import { useTranslation } from 'react-i18next';
3
-
4
- import { SvgIcon } from '../SvgIcon';
5
-
6
- type Props = React.ComponentProps<typeof SvgIcon>;
7
-
8
- const Czech = React.forwardRef(function Czech(props: Props, ref: React.Ref<SVGSVGElement>) {
9
- const { t } = useTranslation();
10
- return (
11
- <SvgIcon viewBox="0 0 45 45" {...props} ref={ref} title={t('flag.czech')}>
12
- <path fill="#d7141a" d="M0 22.5h45v16H0z" />
13
- <path fill="#fff" d="M0 6.5h45v16H0z" />
14
- <path d="M22.5 22.5L0 6.5v32z" fill="#11457e" />
15
- </SvgIcon>
16
- );
17
- });
18
-
19
- Czech.displayName = 'Czech';
20
-
21
- export { Czech };
@@ -1,27 +0,0 @@
1
- import React from 'react';
2
- import { useTranslation } from 'react-i18next';
3
-
4
- import { SvgIcon } from '../SvgIcon';
5
-
6
- type Props = React.ComponentProps<typeof SvgIcon>;
7
-
8
- const France = React.forwardRef(function France(props: Props, ref: React.Ref<SVGSVGElement>) {
9
- const { t } = useTranslation();
10
- return (
11
- <SvgIcon viewBox="0 0 512 512" {...props} ref={ref} title={t('flag.france')}>
12
- <path
13
- d="M38.345 88.273C17.167 88.273 0 105.44 0 126.618v258.759c0 21.177 17.167 38.345 38.345 38.345h132.322V88.273H38.345z"
14
- fill="#41479b"
15
- />
16
- <path fill="#f5f5f5" d="M170.67 88.277h170.67v335.45H170.67z" />
17
- <path
18
- d="M473.655 88.273H341.333v335.448h132.322c21.177 0 38.345-17.167 38.345-38.345V126.618c0-21.178-17.167-38.345-38.345-38.345z"
19
- fill="#ff4b55"
20
- />
21
- </SvgIcon>
22
- );
23
- });
24
-
25
- France.displayName = 'France';
26
-
27
- export { France };
@@ -1,27 +0,0 @@
1
- import React from 'react';
2
- import { useTranslation } from 'react-i18next';
3
-
4
- import { SvgIcon } from '../SvgIcon';
5
-
6
- type Props = React.ComponentProps<typeof SvgIcon>;
7
-
8
- const Germany = React.forwardRef(function Germany(props: Props, ref: React.Ref<SVGSVGElement>) {
9
- const { t } = useTranslation();
10
- return (
11
- <SvgIcon viewBox="0 0 512 512" {...props} ref={ref} title={t('flag.germany')}>
12
- <path
13
- d="M473.655 88.276H38.345C17.167 88.276 0 105.443 0 126.621v73.471h512v-73.471c0-21.178-17.167-38.345-38.345-38.345z"
14
- fill="#464655"
15
- />
16
- <path
17
- d="M0 385.379c0 21.177 17.167 38.345 38.345 38.345h435.31c21.177 0 38.345-17.167 38.345-38.345v-73.471H0v73.471z"
18
- fill="#ffe15a"
19
- />
20
- <path fill="#ff4b55" d="M0 200.09h512V311.9H0z" />
21
- </SvgIcon>
22
- );
23
- });
24
-
25
- Germany.displayName = 'Germany';
26
-
27
- export { Germany };
@@ -1,44 +0,0 @@
1
- import React from 'react';
2
- import { useTranslation } from 'react-i18next';
3
-
4
- import { SvgIcon } from '../SvgIcon';
5
-
6
- type Props = React.ComponentProps<typeof SvgIcon>;
7
-
8
- const India = React.forwardRef(function India(props: Props, ref: React.Ref<SVGSVGElement>) {
9
- const { t } = useTranslation();
10
- return (
11
- <SvgIcon viewBox="0 0 512 512" {...props} ref={ref} title={t('flag.india')}>
12
- <path
13
- d="M0 384c0 31.418 25.473 56.889 56.889 56.889H455.11c31.42 0 56.89-25.473 56.89-56.889v-56.889H0V384z"
14
- fill="#138808"
15
- />
16
- <path d="M0 327.111h512V184.89H0v142.22z" fill="#eee" />
17
- <path
18
- d="M512 184.889V128c0-31.417-25.473-56.889-56.889-56.889H56.89C25.472 71.111 0 96.583 0 128v56.889h512z"
19
- fill="#f93"
20
- />
21
- <path
22
- d="M312.889 256c0-31.431-25.473-56.902-56.903-56.902-31.417 0-56.888 25.472-56.888 56.902 0 31.418 25.472 56.889 56.888 56.889 31.432 0 56.903-25.472 56.903-56.889"
23
- fill="navy"
24
- />
25
- <path
26
- d="M298.666 256c0-23.566-19.115-42.681-42.681-42.681S213.319 232.434 213.319 256s19.1 42.666 42.666 42.666 42.681-19.1 42.681-42.666"
27
- fill="#eee"
28
- />
29
- <path
30
- d="M256 213.334l2.076 32.199 14.251-28.943-10.396 30.535 24.235-21.305-21.291 24.249 30.535-10.396-28.942 14.25L298.666 256l-32.198 2.076 28.942 14.237-30.535-10.383 21.291 24.235-24.235-21.29 10.396 30.535-14.25-28.942L256 298.666l-2.076-32.198-14.252 28.942 10.397-30.535-24.249 21.291 21.305-24.235-30.535 10.383 28.942-14.236L213.334 256l32.199-2.076-28.943-14.251 30.535 10.396-21.305-24.249 24.249 21.305-10.396-30.535 14.25 28.943 2.077-32.2z"
31
- fill="navy"
32
- opacity={0.6}
33
- />
34
- <path
35
- d="M241.778 256c0-7.851 6.37-14.223 14.222-14.223s14.223 6.372 14.223 14.223-6.372 14.223-14.223 14.223-14.223-6.372-14.223-14.223"
36
- fill="navy"
37
- />
38
- </SvgIcon>
39
- );
40
- });
41
-
42
- India.displayName = 'India';
43
-
44
- export { India };
@@ -1,23 +0,0 @@
1
- import React from 'react';
2
- import { useTranslation } from 'react-i18next';
3
-
4
- import { SvgIcon } from '../SvgIcon';
5
-
6
- type Props = React.ComponentProps<typeof SvgIcon>;
7
-
8
- const Japan = React.forwardRef(function Japan(props: Props, ref: React.Ref<SVGSVGElement>) {
9
- const { t } = useTranslation();
10
- return (
11
- <SvgIcon viewBox="0 0 512 512" {...props} ref={ref} title={t('flag.japan')}>
12
- <path
13
- d="M473.655 88.275H38.345C17.167 88.275 0 105.442 0 126.62v258.76c0 21.177 17.167 38.345 38.345 38.345h435.31c21.177 0 38.345-17.167 38.345-38.345V126.62c0-21.178-17.167-38.345-38.345-38.345z"
14
- fill="#f5f5f5"
15
- />
16
- <circle cx={256} cy={255.999} r={97.1} fill="#ff4b55" />
17
- </SvgIcon>
18
- );
19
- });
20
-
21
- Japan.displayName = 'Japan';
22
-
23
- export { Japan };
@@ -1,40 +0,0 @@
1
- import React from 'react';
2
- import { useTranslation } from 'react-i18next';
3
-
4
- import { SvgIcon } from '../SvgIcon';
5
-
6
- type Props = React.ComponentProps<typeof SvgIcon>;
7
-
8
- const Khmer = React.forwardRef(function Khmer(props: Props, ref: React.Ref<SVGSVGElement>) {
9
- const { t } = useTranslation();
10
- return (
11
- <SvgIcon viewBox="0 0 512 512" {...props} ref={ref} title={t('flag.khmer')}>
12
- <path
13
- d="M0 304.8v64.8a48.3 48.3 0 0048 48.8h400c26.4 0 48-21.6 48-48.8v-64.8H0zM448 77.6H48c-26.4 0-48 21.6-48 48.8v64.8h496v-64.8a48.3 48.3 0 00-48-48.8z"
14
- fill="#032ea1"
15
- />
16
- <path fill="#e00025" d="M0 189.6h496v116H0z" />
17
- <path
18
- d="M448 418.4c26.4 0 48-21.6 48-48.8v-64.8H315.2L448 418.4zm0-340.8H48l132.8 113.6H496v-64.8a48.3 48.3 0 00-48-48.8z"
19
- fill="#042a7f"
20
- />
21
- <path fill="#b50030" d="M316 306.4h180V189.6H180z" />
22
- <path fill="#002566" d="M448 77.6H48l370.4 113.6H496v-64.8a48.3 48.3 0 00-48-48.8z" />
23
- <path fill="#8c002b" d="M496 214.4v-24.8h-81.6z" />
24
- <path fill="#002566" d="M496 369.6a48.3 48.3 0 01-48 48.8H48c-26.4 0-48-21.6-48-48.8" />
25
- <g fill="#fff">
26
- <path d="M249.6 200s0-2.4-1.6-2.4-1.6 2.4-1.6 2.4h3.2zm72 90.4v-7.2h-24 20v-6.4h-4V272h-16H312v-4h-3.2c-.8-.8-2.4-1.6-2.4-3.2v-12c.8-1.6 1.6-3.2 2.4-3.2v-11.2c-1.6 0-2.4 1.6-2.4 1.6v-4.8h-1.6v9.6-6.4h-2.4 2.4v-1.6h-2.4v-5.6c-.8 0-.8 2.4-2.4 2.4-.8 0-.8-.8 0-1.6s.8-1.6 0-4c-.8 1.6-1.6 1.6-1.6.8.8-1.6 1.6-1.6.8-4 0 2.4-1.6 2.4-1.6.8 0-1.6.8-1.6 0-4-.8 2.4-1.6 2.4-1.6.8 0-2.4 0-4-2.4-4.8 0 0 0-1.6-.8-1.6s-.8 1.6-.8 1.6c-2.4.8-2.4 3.2-2.4 4.8s-.8 1.6-1.6-.8c-.8 1.6 0 2.4 0 4s-.8 1.6-1.6-.8c-.8 2.4 0 2.4.8 4 0 .8-.8.8-1.6-.8-.8 1.6 0 3.2 0 4 .8.8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h-12l31.2 26.4h19.2V292h-4v-8.8h-.8zm-19.2-36v.8-.8zm-3.2.8h4-4zm-12 .8h-4 4zM248 197.6c-1.6 0-1.6 2.4-1.6 2.4h2.4c.8 0 .8-2.4-.8-2.4z" />
32
- <path d="M243.2 203.2v2.4h9.6v-2.4zm8.8 0v-1.6h-8v1.6zm-1.6-1.6V200h-4.8v1.6z" />
33
- </g>
34
- </SvgIcon>
35
- );
36
- });
37
-
38
- Khmer.displayName = 'Khmer';
39
-
40
- export { Khmer };
@@ -1,66 +0,0 @@
1
- import React from 'react';
2
- import { useTranslation } from 'react-i18next';
3
-
4
- import { SvgIcon } from '../SvgIcon';
5
-
6
- type Props = React.ComponentProps<typeof SvgIcon>;
7
-
8
- const Nicaragua = React.forwardRef(function Nicaragua(props: Props, ref: React.Ref<SVGSVGElement>) {
9
- const { t } = useTranslation();
10
- return (
11
- <SvgIcon viewBox="0 0 512 512" {...props} ref={ref} title={t('flag.nicaragua')}>
12
- <path
13
- d="M512 384c0 31.418-25.473 56.889-56.889 56.889H56.89C25.472 440.889 0 415.417 0 384V128c0-31.418 25.472-56.889 56.889-56.889H455.11C486.53 71.111 512 96.584 512 128v256z"
14
- fill="#265fb5"
15
- />
16
- <path d="M512 327.111H0V184.89h512v142.22z" fill="#eee" />
17
- <path
18
- d="M320.811 256c0 35.797-29.014 64.811-64.811 64.811-35.783 0-64.811-29.014-64.811-64.811s29.027-64.811 64.811-64.811c35.797 0 64.811 29.013 64.811 64.811"
19
- fill="#a9bf4c"
20
- />
21
- <path
22
- d="M312.889 256c0 31.418-25.473 56.889-56.889 56.889S199.111 287.416 199.111 256s25.473-56.889 56.889-56.889 56.889 25.471 56.889 56.889"
23
- fill="#eee"
24
- />
25
- <path d="M209.891 286.649l45.909-79.517 45.909 79.517H209.89z" fill="#265fb5" />
26
- <path d="M215.04 283.591l40.818-70.685 40.803 70.685H215.04z" fill="#55acee" />
27
- <path d="M215.04 283.591l9.841-17.052 61.483-.783 10.297 17.835H215.04z" fill="#bbddf5" />
28
- <path
29
- d="M222.891 272.441l15.331-12.445 6.67 7.553 5.774-6.215 4.893 4.892 4.665-5.12 5.561 5.12 5.106-5.334 4.665 5.334 4.451-4.892 7.325 9.102 1.338 2.674s-7.78 1.55-18.446.669c-10.667-.896-16.882 1.55-25.33 2.66-8.448 1.109-23.553-1.109-23.553-1.109l1.55-2.889z"
30
- fill="#5c913b"
31
- />
32
- <path
33
- d="M237.995 262.67l10.226 11.107-5.12.442-5.774-8.434.668-3.115zm12.231.883l8.22 7.338-3.782.654-3.996-5.546-.442-2.446zm10.439-.442l7.111 6.67L266 270.89l-5.774-6.229.44-1.55zm9.33 0l-2.888 2.66 1.338 1.565 1.55-4.225zm8.889.228l-3.328 4.224 1.109 1.99 2.446-4.664-.227-1.55z"
34
- fill="#e2f09f"
35
- />
36
- <path
37
- d="M256.426 233.671l.939 13.227 7.566-10.867-5.675 11.805 11.805-5.66-10.851 7.553 13.213.939-13.213.952 10.851 7.553-11.805-5.66 5.675 11.805-7.566-10.867-.939 13.226-.939-13.226-7.566 10.867 5.675-11.805-11.805 5.66 10.851-7.553-13.212-.953 13.212-.938-10.85-7.553 11.804 5.66-5.675-11.805 7.566 10.866.94-13.226z"
38
- fill="#bbddf5"
39
- />
40
- <path
41
- d="M256 244.665l-2.66 2.66s.654 4.011.441 4.679C253.554 252.658 256 256 256 256l3.327-3.996-.88-5.334-2.447-2.005z"
42
- fill="#dd2e44"
43
- />
44
- <path
45
- d="M257.28 240.071c10.894 0 17.109 5.334 17.109 5.334l-3.996-7.111s-6.443-4.893-13.995-4.893c-7.567 0-16 6.001-16 6.001l-3.783 7.553s9.771-6.884 20.665-6.884"
46
- fill="#269"
47
- />
48
- <path
49
- d="M257.28 240.071c10.894 0 17.109 5.334 17.109 5.334l-2.888-5.106s-7.78-4.665-15.331-4.665-16.896 5.987-16.896 5.987l-2.66 5.334c.001 0 9.772-6.884 20.666-6.884"
50
- fill="#ffcc4d"
51
- />
52
- <path
53
- d="M257.28 240.071c10.894 0 17.109 5.334 17.109 5.334l-2.005-3.327s-5.988-4.224-16.214-3.783c-7.553 0-18.005 5.561-18.005 5.561l-1.55 3.1c0-.001 9.771-6.885 20.665-6.885"
54
- fill="#dd2e44"
55
- />
56
- <path
57
- d="M264.291 322.873h-14.165V309.29h14.165v13.582zm-16.426-118.898h-10.183l-5.106-12.459 10.198-1.137 5.091 13.596zm23.21 5.66l-6.784-2.261 3.385-16.426 13.028 1.137-9.629 17.55zm-61.141 69.646l-19.811 4.523-.57-13.583 19.812-2.83.569 11.89zm5.106 14.152l-16.426 6.812-3.954-10.766 15.289-5.106 5.091 9.06zm109.269-12.444l-18.105-5.091v-9.63l20.366-2.83-2.261 17.55zm-9.003 18.674l-16.981-7.937 5.646-10.182 18.703 5.66-7.368 12.459z"
58
- fill="#eee"
59
- />
60
- </SvgIcon>
61
- );
62
- });
63
-
64
- Nicaragua.displayName = 'Nicaragua';
65
-
66
- export { Nicaragua };
@@ -1,27 +0,0 @@
1
- import React from 'react';
2
- import { useTranslation } from 'react-i18next';
3
-
4
- import { SvgIcon } from '../SvgIcon';
5
-
6
- type Props = React.ComponentProps<typeof SvgIcon>;
7
-
8
- const Russia = React.forwardRef(function Russia(props: Props, ref: React.Ref<SVGSVGElement>) {
9
- const { t } = useTranslation();
10
- return (
11
- <SvgIcon viewBox="0 0 512 512" {...props} ref={ref} title={t('flag.russia')}>
12
- <path
13
- d="M473.655 88.276H38.345C17.167 88.276 0 105.443 0 126.621v73.471h512v-73.471c0-21.178-17.167-38.345-38.345-38.345z"
14
- fill="#f5f5f5"
15
- />
16
- <path d="M0 200.09h512V311.9H0z" fill="#0039a6" />
17
- <path
18
- d="M0 385.379c0 21.177 17.167 38.345 38.345 38.345h435.31c21.177 0 38.345-17.167 38.345-38.345v-73.471H0v73.471z"
19
- fill="#d52b1e"
20
- />
21
- </SvgIcon>
22
- );
23
- });
24
-
25
- Russia.displayName = 'Russia';
26
-
27
- export { Russia };