@verdaccio/ui-components 3.0.0-next-7.7 → 3.0.0-next-7.8

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 (300) hide show
  1. package/.eslintrc +1 -1
  2. package/CHANGELOG.md +6 -0
  3. package/build/Theme/theme.js +3 -3
  4. package/build/components/ActionBar/ActionBar.js +3 -1
  5. package/build/components/ActionBar/ActionBarAction.js +7 -6
  6. package/build/components/Author/Author.js +13 -42
  7. package/build/components/CopyClipboard/utils.js +3 -12
  8. package/build/components/Dependencies/Dependencies.js +12 -13
  9. package/build/components/Dependencies/DependencyBlock.js +5 -4
  10. package/build/components/Developers/DeveloperType.js +12 -0
  11. package/build/components/Developers/Developers.js +20 -22
  12. package/build/components/Developers/Title.js +5 -9
  13. package/build/components/Developers/index.js +4 -4
  14. package/build/components/Distribution/Dist.js +1 -1
  15. package/build/components/Distribution/styles.js +10 -23
  16. package/build/components/Engines/Engines.js +7 -1
  17. package/build/components/Engines/styles.js +6 -6
  18. package/build/components/FundButton/FundButton.js +7 -8
  19. package/build/components/HeaderInfoDialog/HeaderInfoDialog.js +2 -1
  20. package/build/components/Icons/DevsIcons/CommonJS.js +1 -12
  21. package/build/components/Icons/DevsIcons/ES6Module.js +2 -13
  22. package/build/components/Icons/DevsIcons/Git.js +1 -12
  23. package/build/components/Icons/DevsIcons/NodeJS.js +1 -12
  24. package/build/components/Icons/DevsIcons/TypeScript.js +1 -12
  25. package/build/components/Icons/FileBinary.js +11 -5
  26. package/build/components/Icons/Law.js +12 -6
  27. package/build/components/Icons/Managers/Npm.js +1 -12
  28. package/build/components/Icons/Managers/Pnpm.js +1 -12
  29. package/build/components/Icons/Managers/Yarn.js +1 -12
  30. package/build/components/Install/Install.js +23 -18
  31. package/build/components/Install/InstallListItem.js +19 -18
  32. package/build/components/Keywords/KeywordListItems.js +34 -0
  33. package/build/components/Keywords/Keywords.js +39 -0
  34. package/build/{sections/Header/RegistryInfoDialog → components/Keywords}/index.js +2 -2
  35. package/build/components/Link/Link.js +4 -16
  36. package/build/components/Link/index.js +1 -1
  37. package/build/components/LinkExternal/LinkExternal.js +32 -0
  38. package/build/components/LinkExternal/index.js +14 -0
  39. package/build/components/Loading/styles.js +3 -2
  40. package/build/components/LoginDialog/LoginDialog.js +12 -1
  41. package/build/components/LoginDialog/LoginDialogCloseButton.js +3 -2
  42. package/build/components/LoginDialog/LoginDialogForm.js +2 -14
  43. package/build/components/LoginDialog/LoginDialogFormError.js +3 -2
  44. package/build/components/Logo/Logo.js +13 -6
  45. package/build/components/Package/Package.js +43 -34
  46. package/build/components/Package/styles.js +46 -58
  47. package/build/components/Person/Person.js +48 -0
  48. package/build/components/Person/PersonTooltip.js +22 -0
  49. package/build/components/{Package/Tag → Person}/index.js +2 -2
  50. package/build/components/Person/utils.js +17 -0
  51. package/build/components/RawViewer/RawViewer.js +11 -5
  52. package/build/components/Readme/Readme.js +15 -6
  53. package/build/components/Readme/Readme.js.map +1 -1
  54. package/build/components/Readme/Readme.spec.js +19 -0
  55. package/build/components/Readme/Readme.spec.js.map +1 -1
  56. package/build/components/Readme/utils.js +2 -5
  57. package/build/components/RegistryInfoDialog/styles.js +9 -10
  58. package/build/components/Repository/Repository.js +19 -31
  59. package/build/components/Search/AutoComplete/styles.js +4 -41
  60. package/build/components/Search/Search.js +4 -2
  61. package/build/components/Search/SearchItem.js +51 -38
  62. package/build/components/Search/utils.js +23 -0
  63. package/build/components/SettingsMenu/SettingsMenu.js +35 -9
  64. package/build/components/SideBarTitle/SideBarTitle.js +16 -6
  65. package/build/components/UpLinks/UpLinks.js +35 -6
  66. package/build/components/UpLinks/UplinkLink.js +22 -0
  67. package/build/components/UpLinks/styles.js +5 -4
  68. package/build/components/Versions/HistoryList.js +8 -5
  69. package/build/components/Versions/TagList.js +8 -4
  70. package/build/components/Versions/Versions.js +30 -7
  71. package/build/index.js +27 -3
  72. package/build/providers/AppConfigurationProvider/AppConfigurationProvider.js +1 -0
  73. package/build/providers/PersistenceSettingProvider/PersistenceSettingProvider.js +1 -0
  74. package/build/sections/Detail/Detail.js +6 -2
  75. package/build/sections/Detail/Tabs.js +4 -3
  76. package/build/sections/Footer/Footer.js +17 -8
  77. package/build/sections/Footer/styles.js +13 -10
  78. package/build/sections/Header/HeaderLeft.js +14 -17
  79. package/build/sections/Header/HeaderMenu.js +1 -1
  80. package/build/sections/Header/HeaderRight.js +12 -3
  81. package/build/sections/Header/HeaderSettingsDialog.js +2 -2
  82. package/build/sections/Header/styles.js +43 -82
  83. package/build/sections/SideBar/Sidebar.js +10 -15
  84. package/build/src/Theme/ThemeProvider.test.d.ts +1 -0
  85. package/build/src/components/Author/Author.d.ts +0 -5
  86. package/build/src/components/CopyClipboard/CopyToClipBoard.test.d.ts +1 -0
  87. package/build/src/components/Dependencies/Dependencies.d.ts +0 -1
  88. package/build/src/components/Developers/DeveloperType.d.ts +4 -0
  89. package/build/src/components/Developers/Developers.d.ts +1 -4
  90. package/build/src/components/Developers/Title.d.ts +1 -4
  91. package/build/src/components/Developers/index.d.ts +2 -1
  92. package/build/src/components/Distribution/styles.d.ts +0 -1
  93. package/build/src/components/ErrorBoundary/ErrorBoundary.test.d.ts +1 -0
  94. package/build/src/components/HeaderInfoDialog/HeaderInfoDialog.test.d.ts +1 -0
  95. package/build/src/components/Heading/Heading.test.d.ts +1 -0
  96. package/build/src/components/Icons/Icons.test.d.ts +1 -0
  97. package/build/src/components/Install/InstallListItem.d.ts +1 -1
  98. package/build/src/components/Keywords/KeywordListItems.d.ts +5 -0
  99. package/build/src/components/Keywords/Keywords.d.ts +6 -0
  100. package/build/src/components/Keywords/Keywords.stories.d.ts +5 -0
  101. package/build/src/components/Keywords/Keywords.test.d.ts +1 -0
  102. package/build/src/components/Keywords/index.d.ts +1 -0
  103. package/build/src/components/Link/Link.d.ts +0 -3
  104. package/build/src/components/Link/Link.test.d.ts +1 -0
  105. package/build/src/components/Link/index.d.ts +1 -1
  106. package/build/src/components/LinkExternal/LinkExternal.d.ts +3 -0
  107. package/build/src/components/LinkExternal/LinkExternal.test.d.ts +1 -0
  108. package/build/src/components/LinkExternal/index.d.ts +1 -0
  109. package/build/src/components/Logo/Logo.d.ts +1 -0
  110. package/build/src/components/Logo/Logo.stories.d.ts +5 -0
  111. package/build/src/components/Package/Package.d.ts +1 -1
  112. package/build/src/components/Package/styles.d.ts +0 -8
  113. package/build/src/components/Person/Person.d.ts +9 -0
  114. package/build/src/components/Person/Person.test.d.ts +1 -0
  115. package/build/src/components/Person/PersonTooltip.d.ts +6 -0
  116. package/build/src/components/Person/index.d.ts +1 -0
  117. package/build/src/components/Person/utils.d.ts +3 -0
  118. package/build/src/components/Readme/Readme.d.ts +0 -1
  119. package/build/src/components/Search/AutoComplete/styles.d.ts +0 -8
  120. package/build/src/components/Search/utils.d.ts +1 -0
  121. package/build/src/components/SettingsMenu/SettingsMenu.d.ts +2 -2
  122. package/build/src/components/SettingsMenu/SettingsMenu.test.d.ts +1 -0
  123. package/build/src/components/UpLinks/UplinkLink.d.ts +6 -0
  124. package/build/src/components/Versions/Versions.d.ts +1 -0
  125. package/build/src/index.d.ts +4 -1
  126. package/build/src/sections/Detail/Tabs.d.ts +1 -0
  127. package/build/src/sections/Header/styles.d.ts +0 -7
  128. package/build/src/store/models/routes.d.ts +8 -0
  129. package/build/src/store/models/utils.d.ts +1 -0
  130. package/build/src/types/packageMeta.d.ts +7 -5
  131. package/build/src/utils/routes.d.ts +1 -0
  132. package/build/src/utils/utils.d.ts +1 -0
  133. package/build/store/models/configuration.js +2 -1
  134. package/build/store/models/login.js +4 -2
  135. package/build/store/models/manifest.js +5 -3
  136. package/build/store/models/packages.js +4 -2
  137. package/build/store/models/routes.js +18 -0
  138. package/build/store/models/search.js +4 -2
  139. package/build/store/models/utils.js +10 -0
  140. package/build/utils/routes.js +1 -0
  141. package/build/utils/utils.js +20 -1
  142. package/package.json +2 -2
  143. package/src/AppTest/AppRoute.test.tsx +65 -0
  144. package/src/Theme/ThemeProvider.test.tsx +27 -0
  145. package/src/Theme/theme.ts +3 -3
  146. package/src/components/ActionBar/ActionBar.test.tsx +36 -15
  147. package/src/components/ActionBar/ActionBar.tsx +1 -1
  148. package/src/components/ActionBar/ActionBarAction.tsx +8 -5
  149. package/src/components/Author/Author.test.tsx +7 -1
  150. package/src/components/Author/Author.tsx +3 -41
  151. package/src/components/CopyClipboard/CopyToClipBoard.test.tsx +23 -0
  152. package/src/components/CopyClipboard/utils.ts +2 -13
  153. package/src/components/Dependencies/Dependencies.tsx +9 -9
  154. package/src/components/Dependencies/DependencyBlock.tsx +2 -1
  155. package/src/components/Developers/DeveloperType.tsx +4 -0
  156. package/src/components/Developers/Developers.test.tsx +37 -10
  157. package/src/components/Developers/Developers.tsx +13 -13
  158. package/src/components/Developers/Title.tsx +1 -5
  159. package/src/components/Developers/index.ts +2 -1
  160. package/src/components/Distribution/Dist.test.tsx +1 -1
  161. package/src/components/Distribution/Dist.tsx +2 -4
  162. package/src/components/Distribution/styles.ts +0 -6
  163. package/src/components/Engines/Engines.tsx +6 -2
  164. package/src/components/Engines/styles.ts +1 -1
  165. package/src/components/ErrorBoundary/ErrorBoundary.test.tsx +39 -0
  166. package/src/components/FundButton/FundButton.tsx +5 -5
  167. package/src/components/HeaderInfoDialog/HeaderInfoDialog.test.tsx +51 -0
  168. package/src/components/HeaderInfoDialog/HeaderInfoDialog.tsx +2 -2
  169. package/src/components/Heading/Heading.test.tsx +20 -0
  170. package/src/components/Icons/DevsIcons/CommonJS.tsx +1 -7
  171. package/src/components/Icons/DevsIcons/ES6Module.tsx +2 -8
  172. package/src/components/Icons/DevsIcons/Git.tsx +1 -7
  173. package/src/components/Icons/DevsIcons/NodeJS.tsx +1 -7
  174. package/src/components/Icons/DevsIcons/TypeScript.tsx +1 -7
  175. package/src/components/Icons/FileBinary.tsx +2 -1
  176. package/src/components/Icons/Icons.stories.tsx +21 -5
  177. package/src/components/Icons/Icons.test.tsx +70 -0
  178. package/src/components/Icons/Law.tsx +2 -1
  179. package/src/components/Icons/Managers/Npm.tsx +1 -7
  180. package/src/components/Icons/Managers/Pnpm.tsx +1 -7
  181. package/src/components/Icons/Managers/Yarn.tsx +1 -7
  182. package/src/components/Install/Install.test.tsx +54 -13
  183. package/src/components/Install/Install.tsx +12 -11
  184. package/src/components/Install/InstallListItem.tsx +12 -11
  185. package/src/components/Keywords/KeywordListItems.tsx +22 -0
  186. package/src/components/Keywords/Keywords.stories.tsx +19 -0
  187. package/src/components/Keywords/Keywords.test.tsx +57 -0
  188. package/src/components/Keywords/Keywords.tsx +35 -0
  189. package/src/components/Keywords/index.ts +1 -0
  190. package/src/components/Link/Link.test.tsx +25 -0
  191. package/src/components/Link/Link.tsx +4 -18
  192. package/src/components/Link/index.ts +1 -1
  193. package/src/components/LinkExternal/LinkExternal.test.tsx +18 -0
  194. package/src/components/LinkExternal/LinkExternal.tsx +22 -0
  195. package/src/components/LinkExternal/index.ts +1 -0
  196. package/src/components/Loading/Loading.test.tsx +8 -5
  197. package/src/components/Loading/styles.ts +1 -0
  198. package/src/components/LoginDialog/LoginDialog.test.tsx +1 -1
  199. package/src/components/LoginDialog/LoginDialog.tsx +10 -1
  200. package/src/components/LoginDialog/LoginDialogCloseButton.tsx +1 -0
  201. package/src/components/LoginDialog/LoginDialogForm.tsx +0 -2
  202. package/src/components/LoginDialog/LoginDialogFormError.tsx +1 -1
  203. package/src/components/Logo/Logo.stories.tsx +16 -0
  204. package/src/components/Logo/Logo.test.tsx +8 -1
  205. package/src/components/Logo/Logo.tsx +19 -3
  206. package/src/components/Package/Package.test.tsx +47 -14
  207. package/src/components/Package/Package.tsx +41 -44
  208. package/src/components/Package/styles.ts +7 -17
  209. package/src/components/PackageList/Packagelist.test.tsx +1 -0
  210. package/src/components/Person/Person.test.tsx +50 -0
  211. package/src/components/Person/Person.tsx +45 -0
  212. package/src/components/Person/PersonTooltip.tsx +26 -0
  213. package/src/components/Person/index.ts +1 -0
  214. package/src/components/Person/utils.ts +20 -0
  215. package/src/components/RawViewer/RawViewer.tsx +8 -4
  216. package/src/components/Readme/Readme.spec.tsx +17 -0
  217. package/src/components/Readme/Readme.tsx +10 -5
  218. package/src/components/Readme/utils.ts +2 -5
  219. package/src/components/RegistryInfoDialog/styles.ts +5 -4
  220. package/src/components/Repository/Repository.tsx +9 -14
  221. package/src/components/Search/AutoComplete/styles.ts +7 -0
  222. package/src/components/Search/Search.test.tsx +36 -9
  223. package/src/components/Search/Search.tsx +4 -2
  224. package/src/components/Search/SearchItem.tsx +19 -8
  225. package/src/components/Search/utils.ts +17 -0
  226. package/src/components/SettingsMenu/SettingsMenu.test.tsx +41 -0
  227. package/src/components/SettingsMenu/SettingsMenu.tsx +48 -10
  228. package/src/components/SideBarTitle/SideBarTitle.tsx +19 -3
  229. package/src/components/UpLinks/UpLinks.test.tsx +7 -0
  230. package/src/components/UpLinks/UpLinks.tsx +38 -15
  231. package/src/components/UpLinks/UplinkLink.tsx +20 -0
  232. package/src/components/UpLinks/styles.ts +1 -0
  233. package/src/components/Versions/HistoryList.tsx +9 -4
  234. package/src/components/Versions/TagList.tsx +4 -3
  235. package/src/components/Versions/Versions.test.tsx +2 -0
  236. package/src/components/Versions/Versions.tsx +57 -32
  237. package/src/index.ts +4 -1
  238. package/src/providers/AppConfigurationProvider/AppConfigurationProvider.tsx +1 -0
  239. package/src/providers/PersistenceSettingProvider/PersistenceSettingProvider.tsx +2 -0
  240. package/src/providers/VersionProvider/VersionProvider.test.tsx +3 -3
  241. package/src/sections/Detail/Detail.test.tsx +8 -1
  242. package/src/sections/Detail/Detail.tsx +11 -4
  243. package/src/sections/Detail/Tabs.tsx +5 -2
  244. package/src/sections/Footer/Footer.tsx +15 -4
  245. package/src/sections/Footer/styles.ts +4 -0
  246. package/src/sections/Header/Header.test.tsx +12 -10
  247. package/src/sections/Header/HeaderLeft.tsx +19 -11
  248. package/src/sections/Header/HeaderMenu.tsx +1 -1
  249. package/src/sections/Header/HeaderRight.tsx +14 -3
  250. package/src/sections/Header/HeaderSettingsDialog.tsx +1 -1
  251. package/src/sections/Header/RegistryInfoContent/RegistryInfoContent.test.tsx +1 -1
  252. package/src/sections/Header/styles.ts +4 -16
  253. package/src/sections/Home/Home.test.tsx +12 -4
  254. package/src/sections/SideBar/Sidebar.test.tsx +20 -13
  255. package/src/sections/SideBar/Sidebar.tsx +5 -9
  256. package/src/store/api.test.ts +16 -0
  257. package/src/store/models/configuration.ts +2 -1
  258. package/src/store/models/login.ts +10 -12
  259. package/src/store/models/manifest.ts +6 -5
  260. package/src/store/models/packages.ts +4 -5
  261. package/src/store/models/routes.ts +10 -0
  262. package/src/store/models/search.ts +4 -2
  263. package/src/store/models/utils.ts +3 -0
  264. package/src/types/packageMeta.ts +7 -5
  265. package/src/utils/routes.ts +1 -0
  266. package/src/utils/utils.test.ts +34 -0
  267. package/src/utils/utils.ts +20 -5
  268. package/tsconfig.json +1 -1
  269. package/build/components/Developers/styles.js +0 -65
  270. package/build/components/Distribution/utils.js +0 -25
  271. package/build/components/Distribution/utilts.spec.js +0 -18
  272. package/build/components/Package/Tag/Tag.js +0 -14
  273. package/build/components/Package/Tag/styles.js +0 -24
  274. package/build/sections/Header/RegistryInfoDialog/RegistryInfoDialog.js +0 -36
  275. package/build/sections/Header/RegistryInfoDialog/styles.js +0 -46
  276. package/build/sections/Header/RegistryInfoDialog/types.js +0 -6
  277. package/build/src/components/Developers/styles.d.ts +0 -11
  278. package/build/src/components/Distribution/utils.d.ts +0 -7
  279. package/build/src/components/Package/Tag/Tag.d.ts +0 -6
  280. package/build/src/components/Package/Tag/index.d.ts +0 -1
  281. package/build/src/components/Package/Tag/styles.d.ts +0 -5
  282. package/build/src/sections/Header/RegistryInfoDialog/RegistryInfoDialog.d.ts +0 -4
  283. package/build/src/sections/Header/RegistryInfoDialog/index.d.ts +0 -1
  284. package/build/src/sections/Header/RegistryInfoDialog/styles.d.ts +0 -13
  285. package/build/src/sections/Header/RegistryInfoDialog/types.d.ts +0 -7
  286. package/src/components/Developers/styles.ts +0 -31
  287. package/src/components/Distribution/utils.ts +0 -32
  288. package/src/components/Distribution/utilts.spec.ts +0 -17
  289. package/src/components/Package/Tag/Tag.test.tsx +0 -15
  290. package/src/components/Package/Tag/Tag.tsx +0 -11
  291. package/src/components/Package/Tag/index.ts +0 -1
  292. package/src/components/Package/Tag/styles.ts +0 -11
  293. package/src/components/Search/AutoComplete/styles.tsx +0 -42
  294. package/src/sections/Header/RegistryInfoDialog/RegistryInfoDialog.tsx +0 -31
  295. package/src/sections/Header/RegistryInfoDialog/index.ts +0 -1
  296. package/src/sections/Header/RegistryInfoDialog/styles.ts +0 -21
  297. package/src/sections/Header/RegistryInfoDialog/types.ts +0 -8
  298. /package/build/components/Icons/DevsIcons/{es6modules.svg → es6module.svg} +0 -0
  299. /package/build/src/{components/Package/Tag/Tag.test.d.ts → AppTest/AppRoute.test.d.ts} +0 -0
  300. /package/src/components/Icons/DevsIcons/{es6modules.svg → es6module.svg} +0 -0
@@ -1,46 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.Title = exports.TextContent = exports.Content = void 0;
7
- var _base = _interopRequireDefault(require("@emotion/styled/base"));
8
- var _DialogContent = _interopRequireDefault(require("@mui/material/DialogContent"));
9
- var _DialogTitle = _interopRequireDefault(require("@mui/material/DialogTitle"));
10
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
- const Title = exports.Title = /*#__PURE__*/(0, _base.default)(_DialogTitle.default, process.env.NODE_ENV === "production" ? {
12
- target: "e1gzb7522"
13
- } : {
14
- target: "e1gzb7522",
15
- label: "Title"
16
- })(props => {
17
- var _props$theme, _props$theme2, _props$theme3;
18
- return {
19
- backgroundColor: (_props$theme = props.theme) === null || _props$theme === void 0 ? void 0 : _props$theme.palette.primary.main,
20
- color: (_props$theme2 = props.theme) === null || _props$theme2 === void 0 ? void 0 : _props$theme2.palette.white,
21
- fontSize: (_props$theme3 = props.theme) === null || _props$theme3 === void 0 ? void 0 : _props$theme3.fontSize.lg
22
- };
23
- }, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9zZWN0aW9ucy9IZWFkZXIvUmVnaXN0cnlJbmZvRGlhbG9nL3N0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFNcUIiLCJmaWxlIjoiLi4vLi4vLi4vLi4vc3JjL3NlY3Rpb25zL0hlYWRlci9SZWdpc3RyeUluZm9EaWFsb2cvc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuaW1wb3J0IERpYWxvZ0NvbnRlbnQgZnJvbSAnQG11aS9tYXRlcmlhbC9EaWFsb2dDb250ZW50JztcbmltcG9ydCBEaWFsb2dUaXRsZSBmcm9tICdAbXVpL21hdGVyaWFsL0RpYWxvZ1RpdGxlJztcblxuaW1wb3J0IHsgVGhlbWUgfSBmcm9tICcuLi8uLi8uLi8nO1xuXG5leHBvcnQgY29uc3QgVGl0bGUgPSBzdHlsZWQoRGlhbG9nVGl0bGUpPHsgdGhlbWU/OiBUaGVtZSB9PigocHJvcHMpID0+ICh7XG4gIGJhY2tncm91bmRDb2xvcjogcHJvcHMudGhlbWU/LnBhbGV0dGUucHJpbWFyeS5tYWluLFxuICBjb2xvcjogcHJvcHMudGhlbWU/LnBhbGV0dGUud2hpdGUsXG4gIGZvbnRTaXplOiBwcm9wcy50aGVtZT8uZm9udFNpemUubGcsXG59KSk7XG5cbmV4cG9ydCBjb25zdCBDb250ZW50ID0gc3R5bGVkKERpYWxvZ0NvbnRlbnQpPHsgdGhlbWU/OiBUaGVtZSB9PigoeyB0aGVtZSB9KSA9PiAoe1xuICBwYWRkaW5nOiAnMCAyNHB4JyxcbiAgYmFja2dyb3VuZENvbG9yOiB0aGVtZT8ucGFsZXR0ZS5iYWNrZ3JvdW5kLmRlZmF1bHQsXG59KSk7XG5cbmV4cG9ydCBjb25zdCBUZXh0Q29udGVudCA9IHN0eWxlZCgnZGl2Jyk8eyB0aGVtZT86IFRoZW1lIH0+KCh7IHRoZW1lIH0pID0+ICh7XG4gIHBhZGRpbmc6ICcxMHB4IDI0cHgnLFxuICBiYWNrZ3JvdW5kQ29sb3I6IHRoZW1lPy5wYWxldHRlLmJhY2tncm91bmQuZGVmYXVsdCxcbn0pKTtcbiJdfQ== */");
24
- const Content = exports.Content = /*#__PURE__*/(0, _base.default)(_DialogContent.default, process.env.NODE_ENV === "production" ? {
25
- target: "e1gzb7521"
26
- } : {
27
- target: "e1gzb7521",
28
- label: "Content"
29
- })(({
30
- theme
31
- }) => ({
32
- padding: '0 24px',
33
- backgroundColor: theme === null || theme === void 0 ? void 0 : theme.palette.background.default
34
- }), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9zZWN0aW9ucy9IZWFkZXIvUmVnaXN0cnlJbmZvRGlhbG9nL3N0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFZdUIiLCJmaWxlIjoiLi4vLi4vLi4vLi4vc3JjL3NlY3Rpb25zL0hlYWRlci9SZWdpc3RyeUluZm9EaWFsb2cvc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuaW1wb3J0IERpYWxvZ0NvbnRlbnQgZnJvbSAnQG11aS9tYXRlcmlhbC9EaWFsb2dDb250ZW50JztcbmltcG9ydCBEaWFsb2dUaXRsZSBmcm9tICdAbXVpL21hdGVyaWFsL0RpYWxvZ1RpdGxlJztcblxuaW1wb3J0IHsgVGhlbWUgfSBmcm9tICcuLi8uLi8uLi8nO1xuXG5leHBvcnQgY29uc3QgVGl0bGUgPSBzdHlsZWQoRGlhbG9nVGl0bGUpPHsgdGhlbWU/OiBUaGVtZSB9PigocHJvcHMpID0+ICh7XG4gIGJhY2tncm91bmRDb2xvcjogcHJvcHMudGhlbWU/LnBhbGV0dGUucHJpbWFyeS5tYWluLFxuICBjb2xvcjogcHJvcHMudGhlbWU/LnBhbGV0dGUud2hpdGUsXG4gIGZvbnRTaXplOiBwcm9wcy50aGVtZT8uZm9udFNpemUubGcsXG59KSk7XG5cbmV4cG9ydCBjb25zdCBDb250ZW50ID0gc3R5bGVkKERpYWxvZ0NvbnRlbnQpPHsgdGhlbWU/OiBUaGVtZSB9PigoeyB0aGVtZSB9KSA9PiAoe1xuICBwYWRkaW5nOiAnMCAyNHB4JyxcbiAgYmFja2dyb3VuZENvbG9yOiB0aGVtZT8ucGFsZXR0ZS5iYWNrZ3JvdW5kLmRlZmF1bHQsXG59KSk7XG5cbmV4cG9ydCBjb25zdCBUZXh0Q29udGVudCA9IHN0eWxlZCgnZGl2Jyk8eyB0aGVtZT86IFRoZW1lIH0+KCh7IHRoZW1lIH0pID0+ICh7XG4gIHBhZGRpbmc6ICcxMHB4IDI0cHgnLFxuICBiYWNrZ3JvdW5kQ29sb3I6IHRoZW1lPy5wYWxldHRlLmJhY2tncm91bmQuZGVmYXVsdCxcbn0pKTtcbiJdfQ== */");
35
- const TextContent = exports.TextContent = /*#__PURE__*/(0, _base.default)('div', process.env.NODE_ENV === "production" ? {
36
- target: "e1gzb7520"
37
- } : {
38
- target: "e1gzb7520",
39
- label: "TextContent"
40
- })(({
41
- theme
42
- }) => ({
43
- padding: '10px 24px',
44
- backgroundColor: theme === null || theme === void 0 ? void 0 : theme.palette.background.default
45
- }), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9zZWN0aW9ucy9IZWFkZXIvUmVnaXN0cnlJbmZvRGlhbG9nL3N0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFpQjJCIiwiZmlsZSI6Ii4uLy4uLy4uLy4uL3NyYy9zZWN0aW9ucy9IZWFkZXIvUmVnaXN0cnlJbmZvRGlhbG9nL3N0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcbmltcG9ydCBEaWFsb2dDb250ZW50IGZyb20gJ0BtdWkvbWF0ZXJpYWwvRGlhbG9nQ29udGVudCc7XG5pbXBvcnQgRGlhbG9nVGl0bGUgZnJvbSAnQG11aS9tYXRlcmlhbC9EaWFsb2dUaXRsZSc7XG5cbmltcG9ydCB7IFRoZW1lIH0gZnJvbSAnLi4vLi4vLi4vJztcblxuZXhwb3J0IGNvbnN0IFRpdGxlID0gc3R5bGVkKERpYWxvZ1RpdGxlKTx7IHRoZW1lPzogVGhlbWUgfT4oKHByb3BzKSA9PiAoe1xuICBiYWNrZ3JvdW5kQ29sb3I6IHByb3BzLnRoZW1lPy5wYWxldHRlLnByaW1hcnkubWFpbixcbiAgY29sb3I6IHByb3BzLnRoZW1lPy5wYWxldHRlLndoaXRlLFxuICBmb250U2l6ZTogcHJvcHMudGhlbWU/LmZvbnRTaXplLmxnLFxufSkpO1xuXG5leHBvcnQgY29uc3QgQ29udGVudCA9IHN0eWxlZChEaWFsb2dDb250ZW50KTx7IHRoZW1lPzogVGhlbWUgfT4oKHsgdGhlbWUgfSkgPT4gKHtcbiAgcGFkZGluZzogJzAgMjRweCcsXG4gIGJhY2tncm91bmRDb2xvcjogdGhlbWU/LnBhbGV0dGUuYmFja2dyb3VuZC5kZWZhdWx0LFxufSkpO1xuXG5leHBvcnQgY29uc3QgVGV4dENvbnRlbnQgPSBzdHlsZWQoJ2RpdicpPHsgdGhlbWU/OiBUaGVtZSB9PigoeyB0aGVtZSB9KSA9PiAoe1xuICBwYWRkaW5nOiAnMTBweCAyNHB4JyxcbiAgYmFja2dyb3VuZENvbG9yOiB0aGVtZT8ucGFsZXR0ZS5iYWNrZ3JvdW5kLmRlZmF1bHQsXG59KSk7XG4iXX0= */");
46
- //# sourceMappingURL=styles.js.map
@@ -1,6 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- //# sourceMappingURL=types.js.map
@@ -1,11 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const Details: import("@emotion/styled").StyledComponent<{
3
- theme?: import("@emotion/react").Theme | undefined;
4
- as?: import("react").ElementType<any> | undefined;
5
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
6
- export declare const Content: import("@emotion/styled").StyledComponent<{
7
- theme?: import("@emotion/react").Theme | undefined;
8
- as?: import("react").ElementType<any> | undefined;
9
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
10
- export declare const StyledText: import("@emotion/styled").StyledComponent<any, {}, {}>;
11
- export declare const Fab: import("@emotion/styled").StyledComponent<any, {}, {}>;
@@ -1,7 +0,0 @@
1
- import { LicenseInterface } from '../../types/packageMeta';
2
- /**
3
- * Formats license field for webui.
4
- * @see https://docs.npmjs.com/files/package.json#license
5
- */
6
- export declare function formatLicense(license: string | LicenseInterface): string | undefined;
7
- export declare function fileSizeSI(a: number, b?: typeof Math, c?: (p: number) => number, d?: number, e?: number): string;
@@ -1,6 +0,0 @@
1
- import React, { ReactNode } from 'react';
2
- interface Props {
3
- children: ReactNode;
4
- }
5
- declare const Tag: React.FC<Props>;
6
- export default Tag;
@@ -1 +0,0 @@
1
- export { default } from './Tag';
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const Wrapper: import("@emotion/styled").StyledComponent<{
3
- theme?: import("@emotion/react").Theme | undefined;
4
- as?: import("react").ElementType<any> | undefined;
5
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import { Props } from './types';
3
- declare const RegistryInfoDialog: React.FC<Props>;
4
- export default RegistryInfoDialog;
@@ -1 +0,0 @@
1
- export { default } from './RegistryInfoDialog';
@@ -1,13 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const Title: import("@emotion/styled").StyledComponent<any, {}, {}>;
3
- export declare const Content: import("@emotion/styled").StyledComponent<import("@mui/material/DialogContent").DialogContentProps & {
4
- theme?: import("@emotion/react").Theme | undefined;
5
- } & {
6
- theme?: import("@mui/material").Theme | undefined;
7
- }, {}, {}>;
8
- export declare const TextContent: import("@emotion/styled").StyledComponent<{
9
- theme?: import("@emotion/react").Theme | undefined;
10
- as?: import("react").ElementType<any> | undefined;
11
- } & {
12
- theme?: import("@mui/material").Theme | undefined;
13
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -1,7 +0,0 @@
1
- import { ReactNode } from 'react';
2
- export interface Props {
3
- children: ReactNode;
4
- open: boolean;
5
- title: string;
6
- onClose: () => void;
7
- }
@@ -1,31 +0,0 @@
1
- import styled from '@emotion/styled';
2
- import FabMUI from '@mui/material/Fab';
3
- import Typography from '@mui/material/Typography';
4
-
5
- import { Theme } from '../../Theme';
6
-
7
- export const Details = styled('span')({
8
- display: 'flex',
9
- flexDirection: 'column',
10
- alignItems: 'center',
11
- });
12
-
13
- export const Content = styled('div')({
14
- margin: '10px 0 10px 0',
15
- display: 'flex',
16
- flexWrap: 'wrap',
17
- '> *': {
18
- margin: '5px',
19
- },
20
- });
21
-
22
- export const StyledText = styled(Typography)<{ theme?: Theme }>((props) => ({
23
- fontWeight: props.theme?.fontWeight.bold,
24
- marginBottom: '10px',
25
- textTransform: 'capitalize',
26
- }));
27
-
28
- export const Fab = styled(FabMUI)<{ theme?: Theme }>((props) => ({
29
- backgroundColor: props.theme?.palette.primary.main,
30
- color: props.theme?.palette.white,
31
- }));
@@ -1,32 +0,0 @@
1
- import { LicenseInterface } from '../../types/packageMeta';
2
-
3
- /**
4
- * Formats license field for webui.
5
- * @see https://docs.npmjs.com/files/package.json#license
6
- */
7
- // License should use type License defined above, but conflicts with the unit test that provide array or empty object
8
- export function formatLicense(license: string | LicenseInterface): string | undefined {
9
- if (typeof license === 'string') {
10
- return license;
11
- }
12
-
13
- if (license?.type) {
14
- return license.type;
15
- }
16
-
17
- return;
18
- }
19
-
20
- export function fileSizeSI(
21
- a: number,
22
- b?: typeof Math,
23
- c?: (p: number) => number,
24
- d?: number,
25
- e?: number
26
- ): string {
27
- return (
28
- ((b = Math), (c = b.log), (d = 1e3), (e = (c(a) / c(d)) | 0), a / b.pow(d, e)).toFixed(2) +
29
- ' ' +
30
- (e ? 'kMGTPEZY'[--e] + 'B' : 'Bytes')
31
- );
32
- }
@@ -1,17 +0,0 @@
1
- import { fileSizeSI, formatLicense } from './utils';
2
-
3
- test('formatLicense as string', () => {
4
- expect(formatLicense('MIT')).toEqual('MIT');
5
- });
6
-
7
- test('formatLicense as format object', () => {
8
- expect(formatLicense({ type: 'MIT' })).toEqual('MIT');
9
- });
10
-
11
- test('fileSizeSI as number 1000', () => {
12
- expect(fileSizeSI(1000)).toEqual('1.00 kB');
13
- });
14
-
15
- test('fileSizeSI as number 0', () => {
16
- expect(fileSizeSI(0)).toEqual('0.00 Bytes');
17
- });
@@ -1,15 +0,0 @@
1
- import React from 'react';
2
-
3
- import { render } from '../../../test/test-react-testing-library';
4
- import Tag from './Tag';
5
-
6
- describe('<Tag /> component', () => {
7
- test('should load the component in default state', () => {
8
- const { container } = render(
9
- <Tag>
10
- <span>{'I am a child'}</span>
11
- </Tag>
12
- );
13
- expect(container.firstChild).toMatchSnapshot();
14
- });
15
- });
@@ -1,11 +0,0 @@
1
- import React, { ReactNode } from 'react';
2
-
3
- import { Wrapper } from './styles';
4
-
5
- interface Props {
6
- children: ReactNode;
7
- }
8
-
9
- const Tag: React.FC<Props> = ({ children }) => <Wrapper>{children}</Wrapper>;
10
-
11
- export default Tag;
@@ -1 +0,0 @@
1
- export { default } from './Tag';
@@ -1,11 +0,0 @@
1
- import styled from '@emotion/styled';
2
-
3
- export const Wrapper = styled('span')({
4
- verticalAlign: 'middle',
5
- lineHeight: '22px',
6
- borderRadius: '2px',
7
- color: '#485a3e',
8
- backgroundColor: '#f3f4f2',
9
- padding: '0.22rem 0.4rem',
10
- margin: '8px 8px 0 0',
11
- });
@@ -1,42 +0,0 @@
1
- import styled from '@emotion/styled';
2
-
3
- import { TextField, Theme } from '../../../';
4
-
5
- export interface InputFieldProps {
6
- color: string;
7
- }
8
-
9
- export const Wrapper = styled('div')({
10
- width: '100%',
11
- position: 'relative',
12
- zIndex: 1,
13
- });
14
-
15
- export const StyledTextField = styled(TextField)<{ theme?: Theme }>((props) => ({
16
- '& .MuiInputBase-root': {
17
- ':before': {
18
- content: "''",
19
- border: 'none',
20
- },
21
- ':after': {
22
- borderColor: props.theme?.palette.white,
23
- },
24
- ':hover:before': {
25
- content: 'none',
26
- },
27
- ':hover:after': {
28
- content: 'none',
29
- transform: 'scaleX(1)',
30
- },
31
- [`@media screen and (min-width: ${props.theme?.breakPoints.medium}px)`]: {
32
- ':hover:after': {
33
- content: "''",
34
- },
35
- },
36
- },
37
- '& .MuiInputBase-input': {
38
- [`@media screen and (min-width: ${props.theme?.breakPoints.medium}px)`]: {
39
- color: props.theme?.palette.white,
40
- },
41
- },
42
- }));
@@ -1,31 +0,0 @@
1
- import Button from '@mui/material/Button';
2
- import Dialog from '@mui/material/Dialog';
3
- import DialogActions from '@mui/material/DialogActions';
4
- import React from 'react';
5
- import { useTranslation } from 'react-i18next';
6
-
7
- import { Content, Title } from './styles';
8
- import { Props } from './types';
9
-
10
- const RegistryInfoDialog: React.FC<Props> = ({ open = false, children, onClose, title = '' }) => {
11
- const { t } = useTranslation();
12
- return (
13
- <Dialog
14
- data-testid={'registryInfo--dialog'}
15
- id="registryInfo--dialog-container"
16
- maxWidth="sm"
17
- onClose={onClose}
18
- open={open}
19
- >
20
- <Title>{title}</Title>
21
- <Content>{children}</Content>
22
- <DialogActions>
23
- <Button color="inherit" id="registryInfo--dialog-close" onClick={onClose}>
24
- {t('button.close')}
25
- </Button>
26
- </DialogActions>
27
- </Dialog>
28
- );
29
- };
30
-
31
- export default RegistryInfoDialog;
@@ -1 +0,0 @@
1
- export { default } from './RegistryInfoDialog';
@@ -1,21 +0,0 @@
1
- import styled from '@emotion/styled';
2
- import DialogContent from '@mui/material/DialogContent';
3
- import DialogTitle from '@mui/material/DialogTitle';
4
-
5
- import { Theme } from '../../../';
6
-
7
- export const Title = styled(DialogTitle)<{ theme?: Theme }>((props) => ({
8
- backgroundColor: props.theme?.palette.primary.main,
9
- color: props.theme?.palette.white,
10
- fontSize: props.theme?.fontSize.lg,
11
- }));
12
-
13
- export const Content = styled(DialogContent)<{ theme?: Theme }>(({ theme }) => ({
14
- padding: '0 24px',
15
- backgroundColor: theme?.palette.background.default,
16
- }));
17
-
18
- export const TextContent = styled('div')<{ theme?: Theme }>(({ theme }) => ({
19
- padding: '10px 24px',
20
- backgroundColor: theme?.palette.background.default,
21
- }));
@@ -1,8 +0,0 @@
1
- import { ReactNode } from 'react';
2
-
3
- export interface Props {
4
- children: ReactNode;
5
- open: boolean;
6
- title: string;
7
- onClose: () => void;
8
- }