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

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 (412) hide show
  1. package/.eslintrc +1 -1
  2. package/CHANGELOG.md +14 -0
  3. package/build/AppTest/AppRoute.js +2 -2
  4. package/build/AppTest/pages/Front/index.js +1 -1
  5. package/build/AppTest/pages/Version/Version.js +2 -2
  6. package/build/AppTest/pages/Version/index.js +1 -1
  7. package/build/Theme/ResetStyles.js +1 -1
  8. package/build/Theme/StyleBaseline.js +1 -1
  9. package/build/Theme/ThemeProvider.js +2 -2
  10. package/build/Theme/index.js +2 -2
  11. package/build/Theme/theme.js +3 -3
  12. package/build/__mocks__/react-markdown.js +1 -1
  13. package/build/components/ActionBar/ActionBar.js +6 -4
  14. package/build/components/ActionBar/ActionBarAction.js +10 -9
  15. package/build/components/ActionBar/index.js +1 -1
  16. package/build/components/Author/Author.js +14 -43
  17. package/build/components/Author/index.js +1 -1
  18. package/build/components/Author/styles.js +1 -1
  19. package/build/components/CopyClipboard/CopyToClipBoard.js +1 -1
  20. package/build/components/CopyClipboard/index.js +1 -1
  21. package/build/components/CopyClipboard/utils.js +3 -12
  22. package/build/components/Dependencies/Dependencies.js +14 -15
  23. package/build/components/Dependencies/DependencyBlock.js +6 -5
  24. package/build/components/Dependencies/index.js +1 -1
  25. package/build/components/Deprecated/Deprecated.js +1 -1
  26. package/build/components/Deprecated/index.js +1 -1
  27. package/build/components/Developers/DeveloperType.js +12 -0
  28. package/build/components/Developers/Developers.js +22 -24
  29. package/build/components/Developers/Title.js +6 -10
  30. package/build/components/Developers/index.js +4 -4
  31. package/build/components/Distribution/Dist.js +2 -2
  32. package/build/components/Distribution/index.js +1 -1
  33. package/build/components/Distribution/styles.js +11 -24
  34. package/build/components/Engines/Engines.js +9 -3
  35. package/build/components/Engines/index.js +1 -1
  36. package/build/components/Engines/styles.js +7 -7
  37. package/build/components/ErrorBoundary/ErrorBoundary.js +1 -1
  38. package/build/components/ErrorBoundary/index.js +1 -1
  39. package/build/components/Forbidden/Forbidden.js +2 -2
  40. package/build/components/Forbidden/index.js +1 -1
  41. package/build/components/FundButton/FundButton.js +10 -11
  42. package/build/components/FundButton/index.js +1 -1
  43. package/build/components/HeaderInfoDialog/HeaderInfoDialog.js +4 -3
  44. package/build/components/HeaderInfoDialog/index.js +1 -1
  45. package/build/components/Heading/Heading.js +3 -3
  46. package/build/components/Heading/index.js +1 -1
  47. package/build/components/Help/Help.js +2 -2
  48. package/build/components/Help/index.js +1 -1
  49. package/build/components/Help/styles.js +1 -1
  50. package/build/components/Icons/DevsIcons/CommonJS.js +2 -13
  51. package/build/components/Icons/DevsIcons/ES6Module.js +3 -14
  52. package/build/components/Icons/DevsIcons/Git.js +2 -13
  53. package/build/components/Icons/DevsIcons/NodeJS.js +2 -13
  54. package/build/components/Icons/DevsIcons/TypeScript.js +2 -13
  55. package/build/components/Icons/Earth.js +2 -2
  56. package/build/components/Icons/FileBinary.js +13 -7
  57. package/build/components/Icons/Law.js +14 -8
  58. package/build/components/Icons/License.js +2 -2
  59. package/build/components/Icons/License.js.map +1 -1
  60. package/build/components/Icons/Managers/Npm.js +2 -13
  61. package/build/components/Icons/Managers/Pnpm.js +2 -13
  62. package/build/components/Icons/Managers/Yarn.js +2 -13
  63. package/build/components/Icons/SvgIcon.js +2 -2
  64. package/build/components/Icons/Time.js +2 -2
  65. package/build/components/Icons/Version.js +2 -2
  66. package/build/components/Install/Install.js +28 -23
  67. package/build/components/Install/InstallListItem.js +20 -19
  68. package/build/components/Install/index.js +1 -1
  69. package/build/components/Keywords/KeywordListItems.js +34 -0
  70. package/build/components/Keywords/Keywords.js +39 -0
  71. package/build/components/Keywords/index.js +14 -0
  72. package/build/components/Label/Label.js +2 -2
  73. package/build/components/Label/index.js +1 -1
  74. package/build/components/Link/Link.js +5 -17
  75. package/build/components/Link/index.js +2 -2
  76. package/build/components/LinkExternal/LinkExternal.js +32 -0
  77. package/build/components/LinkExternal/index.js +14 -0
  78. package/build/components/Loading/Loading.js +1 -1
  79. package/build/components/Loading/Spinner/Spinner.js +1 -1
  80. package/build/components/Loading/Spinner/index.js +1 -1
  81. package/build/components/Loading/index.js +1 -1
  82. package/build/components/Loading/styles.js +4 -3
  83. package/build/components/LoginDialog/LoginDialog.js +14 -3
  84. package/build/components/LoginDialog/LoginDialogCloseButton.js +4 -3
  85. package/build/components/LoginDialog/LoginDialogForm.js +5 -17
  86. package/build/components/LoginDialog/LoginDialogFormError.js +5 -4
  87. package/build/components/LoginDialog/LoginDialogHeader.js +1 -1
  88. package/build/components/LoginDialog/index.js +1 -1
  89. package/build/components/Logo/Logo.js +14 -7
  90. package/build/components/Logo/index.js +1 -1
  91. package/build/components/MenuItem/MenuItem.js +3 -3
  92. package/build/components/MenuItem/index.js +1 -1
  93. package/build/components/NoItems/NoItems.js +1 -1
  94. package/build/components/NoItems/index.js +1 -1
  95. package/build/components/NotFound/NotFound.js +2 -2
  96. package/build/components/NotFound/index.js +1 -1
  97. package/build/components/Package/Package.js +46 -37
  98. package/build/components/Package/index.js +1 -1
  99. package/build/components/Package/styles.js +47 -59
  100. package/build/components/PackageList/PackageList.js +1 -1
  101. package/build/components/PackageList/index.js +1 -1
  102. package/build/components/Person/Person.js +48 -0
  103. package/build/components/Person/PersonTooltip.js +22 -0
  104. package/build/components/Person/index.js +14 -0
  105. package/build/components/Person/utils.js +17 -0
  106. package/build/components/RawViewer/RawViewer.js +12 -6
  107. package/build/components/RawViewer/index.js +1 -1
  108. package/build/components/Readme/Readme.js +16 -7
  109. package/build/components/Readme/Readme.js.map +1 -1
  110. package/build/components/Readme/Readme.spec.js +20 -1
  111. package/build/components/Readme/Readme.spec.js.map +1 -1
  112. package/build/components/Readme/index.js +1 -1
  113. package/build/components/Readme/utils.js +3 -6
  114. package/build/components/RegistryInfoDialog/RegistryInfoDialog.js +1 -1
  115. package/build/components/RegistryInfoDialog/index.js +1 -1
  116. package/build/components/RegistryInfoDialog/styles.js +10 -11
  117. package/build/components/Repository/Repository.js +22 -34
  118. package/build/components/Repository/index.js +1 -1
  119. package/build/components/Search/AutoComplete/AutoComplete.js +2 -2
  120. package/build/components/Search/AutoComplete/index.js +1 -1
  121. package/build/components/Search/AutoComplete/styles.js +5 -42
  122. package/build/components/Search/Search.js +9 -7
  123. package/build/components/Search/SearchItem.js +54 -41
  124. package/build/components/Search/index.js +1 -1
  125. package/build/components/Search/styles.js +1 -1
  126. package/build/components/Search/utils.js +23 -0
  127. package/build/components/SettingsMenu/SettingsMenu.js +36 -10
  128. package/build/components/SettingsMenu/index.js +1 -1
  129. package/build/components/SideBarTitle/SideBarTitle.js +17 -7
  130. package/build/components/SideBarTitle/index.js +1 -1
  131. package/build/components/SideBarTitle/utils.js +1 -1
  132. package/build/components/TextField/TextField.js +3 -3
  133. package/build/components/TextField/index.js +1 -1
  134. package/build/components/UpLinks/UpLinks.js +36 -7
  135. package/build/components/UpLinks/UplinkLink.js +22 -0
  136. package/build/components/UpLinks/index.js +1 -1
  137. package/build/components/UpLinks/styles.js +6 -5
  138. package/build/components/Versions/HistoryList.js +9 -6
  139. package/build/components/Versions/TagList.js +9 -5
  140. package/build/components/Versions/Versions.js +32 -9
  141. package/build/components/Versions/index.js +1 -1
  142. package/build/components/Versions/styles.js +1 -1
  143. package/build/hooks/index.js +1 -1
  144. package/build/index.js +29 -5
  145. package/build/layouts/Version/Version.js +1 -1
  146. package/build/layouts/Version/index.js +1 -1
  147. package/build/providers/AppConfigurationProvider/AppConfigurationProvider.js +3 -2
  148. package/build/providers/AppConfigurationProvider/index.js +1 -1
  149. package/build/providers/PersistenceSettingProvider/PersistenceSettingProvider.js +3 -2
  150. package/build/providers/PersistenceSettingProvider/index.js +1 -1
  151. package/build/providers/TranslatorProvider/TranslatorProvider.js +2 -2
  152. package/build/providers/TranslatorProvider/TranslatorProvider.spec.js +2 -2
  153. package/build/providers/TranslatorProvider/index.js +1 -1
  154. package/build/providers/VersionProvider/VersionProvider.js +2 -2
  155. package/build/providers/VersionProvider/index.js +1 -1
  156. package/build/sections/Detail/ContainerContent.js +2 -2
  157. package/build/sections/Detail/Detail.js +10 -6
  158. package/build/sections/Detail/ReadmeSection.js +1 -1
  159. package/build/sections/Detail/Tabs.js +5 -4
  160. package/build/sections/Detail/index.js +1 -1
  161. package/build/sections/Footer/Footer.js +38 -9
  162. package/build/sections/Footer/index.js +1 -1
  163. package/build/sections/Footer/styles.js +14 -11
  164. package/build/sections/Header/Header.js +2 -2
  165. package/build/sections/Header/HeaderGreetings.js +1 -1
  166. package/build/sections/Header/HeaderLeft.js +15 -18
  167. package/build/sections/Header/HeaderMenu.js +2 -2
  168. package/build/sections/Header/HeaderRight.js +14 -5
  169. package/build/sections/Header/HeaderSettingsDialog.js +4 -4
  170. package/build/sections/Header/HeaderToolTip.js +1 -1
  171. package/build/sections/Header/HeaderToolTipIcon.js +2 -2
  172. package/build/sections/Header/LanguageSwitch.js +4 -4
  173. package/build/sections/Header/RegistryInfoContent/RegistryInfoContent.js +4 -4
  174. package/build/sections/Header/RegistryInfoContent/index.js +1 -1
  175. package/build/sections/Header/RegistryInfoContent/styles.js +1 -1
  176. package/build/sections/Header/index.js +1 -1
  177. package/build/sections/Header/styles.js +44 -83
  178. package/build/sections/Home/Home.js +2 -2
  179. package/build/sections/Home/index.js +1 -1
  180. package/build/sections/SideBar/Sidebar.js +12 -17
  181. package/build/sections/SideBar/index.js +1 -1
  182. package/build/sections/index.js +1 -1
  183. package/build/src/Theme/ThemeProvider.test.d.ts +1 -0
  184. package/build/src/components/Author/Author.d.ts +0 -5
  185. package/build/src/components/CopyClipboard/CopyToClipBoard.test.d.ts +1 -0
  186. package/build/src/components/Dependencies/Dependencies.d.ts +0 -1
  187. package/build/src/components/Developers/DeveloperType.d.ts +4 -0
  188. package/build/src/components/Developers/Developers.d.ts +1 -4
  189. package/build/src/components/Developers/Title.d.ts +1 -4
  190. package/build/src/components/Developers/index.d.ts +2 -1
  191. package/build/src/components/Distribution/styles.d.ts +0 -1
  192. package/build/src/components/ErrorBoundary/ErrorBoundary.test.d.ts +1 -0
  193. package/build/src/components/HeaderInfoDialog/HeaderInfoDialog.test.d.ts +1 -0
  194. package/build/src/components/Heading/Heading.test.d.ts +1 -0
  195. package/build/src/components/Icons/Icons.test.d.ts +1 -0
  196. package/build/src/components/Install/InstallListItem.d.ts +1 -1
  197. package/build/src/components/Keywords/KeywordListItems.d.ts +5 -0
  198. package/build/src/components/Keywords/Keywords.d.ts +6 -0
  199. package/build/src/components/Keywords/Keywords.stories.d.ts +5 -0
  200. package/build/src/components/Keywords/Keywords.test.d.ts +1 -0
  201. package/build/src/components/Keywords/index.d.ts +1 -0
  202. package/build/src/components/Link/Link.d.ts +0 -3
  203. package/build/src/components/Link/Link.test.d.ts +1 -0
  204. package/build/src/components/Link/index.d.ts +1 -1
  205. package/build/src/components/LinkExternal/LinkExternal.d.ts +3 -0
  206. package/build/src/components/LinkExternal/LinkExternal.test.d.ts +1 -0
  207. package/build/src/components/LinkExternal/index.d.ts +1 -0
  208. package/build/src/components/Logo/Logo.d.ts +1 -0
  209. package/build/src/components/Logo/Logo.stories.d.ts +5 -0
  210. package/build/src/components/Package/Package.d.ts +1 -1
  211. package/build/src/components/Package/styles.d.ts +0 -8
  212. package/build/src/components/Person/Person.d.ts +9 -0
  213. package/build/src/components/Person/Person.test.d.ts +1 -0
  214. package/build/src/components/Person/PersonTooltip.d.ts +6 -0
  215. package/build/src/components/Person/index.d.ts +1 -0
  216. package/build/src/components/Person/utils.d.ts +3 -0
  217. package/build/src/components/Readme/Readme.d.ts +0 -1
  218. package/build/src/components/Search/AutoComplete/styles.d.ts +0 -8
  219. package/build/src/components/Search/utils.d.ts +1 -0
  220. package/build/src/components/SettingsMenu/SettingsMenu.d.ts +2 -2
  221. package/build/src/components/SettingsMenu/SettingsMenu.test.d.ts +1 -0
  222. package/build/src/components/UpLinks/UplinkLink.d.ts +6 -0
  223. package/build/src/components/Versions/Versions.d.ts +1 -0
  224. package/build/src/index.d.ts +4 -1
  225. package/build/src/sections/Detail/Tabs.d.ts +1 -0
  226. package/build/src/sections/Header/styles.d.ts +0 -7
  227. package/build/src/store/models/routes.d.ts +8 -0
  228. package/build/src/store/models/utils.d.ts +1 -0
  229. package/build/src/types/packageMeta.d.ts +7 -5
  230. package/build/src/utils/routes.d.ts +1 -0
  231. package/build/src/utils/utils.d.ts +1 -0
  232. package/build/store/api.js +1 -1
  233. package/build/store/index.js +1 -1
  234. package/build/store/models/configuration.js +3 -2
  235. package/build/store/models/download.js +1 -1
  236. package/build/store/models/login.js +5 -3
  237. package/build/store/models/manifest.js +6 -4
  238. package/build/store/models/packages.js +5 -3
  239. package/build/store/models/routes.js +18 -0
  240. package/build/store/models/search.js +6 -4
  241. package/build/store/models/utils.js +10 -0
  242. package/build/store/storage.js +1 -1
  243. package/build/store/store.js +1 -1
  244. package/build/test/i18n-config.js +1 -1
  245. package/build/test/test-react-testing-library.js +1 -1
  246. package/build/utils/index.js +2 -2
  247. package/build/utils/loadable.js +1 -1
  248. package/build/utils/routes.js +1 -0
  249. package/build/utils/token.js +1 -1
  250. package/build/utils/url.js +1 -1
  251. package/build/utils/utils.js +21 -2
  252. package/package.json +8 -8
  253. package/src/AppTest/AppRoute.test.tsx +65 -0
  254. package/src/Theme/ThemeProvider.test.tsx +27 -0
  255. package/src/Theme/theme.ts +3 -3
  256. package/src/components/ActionBar/ActionBar.test.tsx +36 -15
  257. package/src/components/ActionBar/ActionBar.tsx +1 -1
  258. package/src/components/ActionBar/ActionBarAction.tsx +8 -5
  259. package/src/components/Author/Author.test.tsx +7 -1
  260. package/src/components/Author/Author.tsx +3 -41
  261. package/src/components/CopyClipboard/CopyToClipBoard.test.tsx +23 -0
  262. package/src/components/CopyClipboard/utils.ts +2 -13
  263. package/src/components/Dependencies/Dependencies.tsx +9 -9
  264. package/src/components/Dependencies/DependencyBlock.tsx +2 -1
  265. package/src/components/Developers/DeveloperType.tsx +4 -0
  266. package/src/components/Developers/Developers.test.tsx +37 -10
  267. package/src/components/Developers/Developers.tsx +13 -13
  268. package/src/components/Developers/Title.tsx +1 -5
  269. package/src/components/Developers/index.ts +2 -1
  270. package/src/components/Distribution/Dist.test.tsx +1 -1
  271. package/src/components/Distribution/Dist.tsx +2 -4
  272. package/src/components/Distribution/styles.ts +0 -6
  273. package/src/components/Engines/Engines.tsx +6 -2
  274. package/src/components/Engines/styles.ts +1 -1
  275. package/src/components/ErrorBoundary/ErrorBoundary.test.tsx +39 -0
  276. package/src/components/FundButton/FundButton.tsx +5 -5
  277. package/src/components/HeaderInfoDialog/HeaderInfoDialog.test.tsx +51 -0
  278. package/src/components/HeaderInfoDialog/HeaderInfoDialog.tsx +2 -2
  279. package/src/components/Heading/Heading.test.tsx +20 -0
  280. package/src/components/Icons/DevsIcons/CommonJS.tsx +1 -7
  281. package/src/components/Icons/DevsIcons/ES6Module.tsx +2 -8
  282. package/src/components/Icons/DevsIcons/Git.tsx +1 -7
  283. package/src/components/Icons/DevsIcons/NodeJS.tsx +1 -7
  284. package/src/components/Icons/DevsIcons/TypeScript.tsx +1 -7
  285. package/src/components/Icons/FileBinary.tsx +2 -1
  286. package/src/components/Icons/Icons.stories.tsx +21 -5
  287. package/src/components/Icons/Icons.test.tsx +70 -0
  288. package/src/components/Icons/Law.tsx +2 -1
  289. package/src/components/Icons/Managers/Npm.tsx +1 -7
  290. package/src/components/Icons/Managers/Pnpm.tsx +1 -7
  291. package/src/components/Icons/Managers/Yarn.tsx +1 -7
  292. package/src/components/Install/Install.test.tsx +54 -13
  293. package/src/components/Install/Install.tsx +12 -11
  294. package/src/components/Install/InstallListItem.tsx +12 -11
  295. package/src/components/Keywords/KeywordListItems.tsx +22 -0
  296. package/src/components/Keywords/Keywords.stories.tsx +19 -0
  297. package/src/components/Keywords/Keywords.test.tsx +57 -0
  298. package/src/components/Keywords/Keywords.tsx +35 -0
  299. package/src/components/Keywords/index.ts +1 -0
  300. package/src/components/Link/Link.test.tsx +25 -0
  301. package/src/components/Link/Link.tsx +4 -18
  302. package/src/components/Link/index.ts +1 -1
  303. package/src/components/LinkExternal/LinkExternal.test.tsx +18 -0
  304. package/src/components/LinkExternal/LinkExternal.tsx +22 -0
  305. package/src/components/LinkExternal/index.ts +1 -0
  306. package/src/components/Loading/Loading.test.tsx +8 -5
  307. package/src/components/Loading/styles.ts +1 -0
  308. package/src/components/LoginDialog/LoginDialog.test.tsx +1 -1
  309. package/src/components/LoginDialog/LoginDialog.tsx +10 -1
  310. package/src/components/LoginDialog/LoginDialogCloseButton.tsx +1 -0
  311. package/src/components/LoginDialog/LoginDialogForm.tsx +0 -2
  312. package/src/components/LoginDialog/LoginDialogFormError.tsx +1 -1
  313. package/src/components/Logo/Logo.stories.tsx +16 -0
  314. package/src/components/Logo/Logo.test.tsx +8 -1
  315. package/src/components/Logo/Logo.tsx +19 -3
  316. package/src/components/Package/Package.test.tsx +47 -14
  317. package/src/components/Package/Package.tsx +41 -44
  318. package/src/components/Package/styles.ts +7 -17
  319. package/src/components/PackageList/Packagelist.test.tsx +1 -0
  320. package/src/components/Person/Person.test.tsx +50 -0
  321. package/src/components/Person/Person.tsx +45 -0
  322. package/src/components/Person/PersonTooltip.tsx +26 -0
  323. package/src/components/Person/index.ts +1 -0
  324. package/src/components/Person/utils.ts +20 -0
  325. package/src/components/RawViewer/RawViewer.tsx +8 -4
  326. package/src/components/Readme/Readme.spec.tsx +17 -0
  327. package/src/components/Readme/Readme.tsx +10 -5
  328. package/src/components/Readme/utils.ts +2 -5
  329. package/src/components/RegistryInfoDialog/styles.ts +5 -4
  330. package/src/components/Repository/Repository.tsx +9 -14
  331. package/src/components/Search/AutoComplete/styles.ts +7 -0
  332. package/src/components/Search/Search.test.tsx +36 -9
  333. package/src/components/Search/Search.tsx +4 -2
  334. package/src/components/Search/SearchItem.tsx +19 -8
  335. package/src/components/Search/utils.ts +17 -0
  336. package/src/components/SettingsMenu/SettingsMenu.test.tsx +41 -0
  337. package/src/components/SettingsMenu/SettingsMenu.tsx +48 -10
  338. package/src/components/SideBarTitle/SideBarTitle.tsx +19 -3
  339. package/src/components/UpLinks/UpLinks.test.tsx +7 -0
  340. package/src/components/UpLinks/UpLinks.tsx +38 -15
  341. package/src/components/UpLinks/UplinkLink.tsx +20 -0
  342. package/src/components/UpLinks/styles.ts +1 -0
  343. package/src/components/Versions/HistoryList.tsx +9 -4
  344. package/src/components/Versions/TagList.tsx +4 -3
  345. package/src/components/Versions/Versions.test.tsx +2 -0
  346. package/src/components/Versions/Versions.tsx +57 -32
  347. package/src/index.ts +4 -1
  348. package/src/providers/AppConfigurationProvider/AppConfigurationProvider.tsx +1 -0
  349. package/src/providers/PersistenceSettingProvider/PersistenceSettingProvider.tsx +2 -0
  350. package/src/providers/VersionProvider/VersionProvider.test.tsx +3 -3
  351. package/src/sections/Detail/Detail.test.tsx +8 -1
  352. package/src/sections/Detail/Detail.tsx +11 -4
  353. package/src/sections/Detail/Tabs.tsx +5 -2
  354. package/src/sections/Footer/Footer.tsx +26 -12
  355. package/src/sections/Footer/styles.ts +4 -0
  356. package/src/sections/Header/Header.test.tsx +12 -10
  357. package/src/sections/Header/HeaderLeft.tsx +19 -11
  358. package/src/sections/Header/HeaderMenu.tsx +1 -1
  359. package/src/sections/Header/HeaderRight.tsx +14 -3
  360. package/src/sections/Header/HeaderSettingsDialog.tsx +1 -1
  361. package/src/sections/Header/RegistryInfoContent/RegistryInfoContent.test.tsx +1 -1
  362. package/src/sections/Header/styles.ts +4 -16
  363. package/src/sections/Home/Home.test.tsx +12 -4
  364. package/src/sections/SideBar/Sidebar.test.tsx +20 -13
  365. package/src/sections/SideBar/Sidebar.tsx +5 -9
  366. package/src/store/api.test.ts +16 -0
  367. package/src/store/models/configuration.ts +2 -1
  368. package/src/store/models/login.ts +10 -12
  369. package/src/store/models/manifest.ts +6 -5
  370. package/src/store/models/packages.ts +4 -5
  371. package/src/store/models/routes.ts +10 -0
  372. package/src/store/models/search.ts +4 -2
  373. package/src/store/models/utils.ts +3 -0
  374. package/src/types/packageMeta.ts +7 -5
  375. package/src/utils/routes.ts +1 -0
  376. package/src/utils/utils.test.ts +34 -0
  377. package/src/utils/utils.ts +20 -5
  378. package/tsconfig.json +1 -1
  379. package/build/components/Developers/styles.js +0 -65
  380. package/build/components/Distribution/utils.js +0 -25
  381. package/build/components/Distribution/utilts.spec.js +0 -18
  382. package/build/components/Package/Tag/Tag.js +0 -14
  383. package/build/components/Package/Tag/index.js +0 -14
  384. package/build/components/Package/Tag/styles.js +0 -24
  385. package/build/sections/Header/RegistryInfoDialog/RegistryInfoDialog.js +0 -36
  386. package/build/sections/Header/RegistryInfoDialog/index.js +0 -14
  387. package/build/sections/Header/RegistryInfoDialog/styles.js +0 -46
  388. package/build/sections/Header/RegistryInfoDialog/types.js +0 -6
  389. package/build/src/components/Developers/styles.d.ts +0 -11
  390. package/build/src/components/Distribution/utils.d.ts +0 -7
  391. package/build/src/components/Package/Tag/Tag.d.ts +0 -6
  392. package/build/src/components/Package/Tag/index.d.ts +0 -1
  393. package/build/src/components/Package/Tag/styles.d.ts +0 -5
  394. package/build/src/sections/Header/RegistryInfoDialog/RegistryInfoDialog.d.ts +0 -4
  395. package/build/src/sections/Header/RegistryInfoDialog/index.d.ts +0 -1
  396. package/build/src/sections/Header/RegistryInfoDialog/styles.d.ts +0 -13
  397. package/build/src/sections/Header/RegistryInfoDialog/types.d.ts +0 -7
  398. package/src/components/Developers/styles.ts +0 -31
  399. package/src/components/Distribution/utils.ts +0 -32
  400. package/src/components/Distribution/utilts.spec.ts +0 -17
  401. package/src/components/Package/Tag/Tag.test.tsx +0 -15
  402. package/src/components/Package/Tag/Tag.tsx +0 -11
  403. package/src/components/Package/Tag/index.ts +0 -1
  404. package/src/components/Package/Tag/styles.ts +0 -11
  405. package/src/components/Search/AutoComplete/styles.tsx +0 -42
  406. package/src/sections/Header/RegistryInfoDialog/RegistryInfoDialog.tsx +0 -31
  407. package/src/sections/Header/RegistryInfoDialog/index.ts +0 -1
  408. package/src/sections/Header/RegistryInfoDialog/styles.ts +0 -21
  409. package/src/sections/Header/RegistryInfoDialog/types.ts +0 -8
  410. /package/build/components/Icons/DevsIcons/{es6modules.svg → es6module.svg} +0 -0
  411. /package/build/src/{components/Package/Tag/Tag.test.d.ts → AppTest/AppRoute.test.d.ts} +0 -0
  412. /package/src/components/Icons/DevsIcons/{es6modules.svg → es6module.svg} +0 -0
@@ -1,65 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.StyledText = exports.Fab = exports.Details = exports.Content = void 0;
7
- var _base = _interopRequireDefault(require("@emotion/styled/base"));
8
- var _Fab = _interopRequireDefault(require("@mui/material/Fab"));
9
- var _Typography = _interopRequireDefault(require("@mui/material/Typography"));
10
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
- function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
12
- const Details = exports.Details = /*#__PURE__*/(0, _base.default)('span', process.env.NODE_ENV === "production" ? {
13
- target: "e1u5w7z83"
14
- } : {
15
- target: "e1u5w7z83",
16
- label: "Details"
17
- })(process.env.NODE_ENV === "production" ? {
18
- name: "zigog8",
19
- styles: "display:flex;flex-direction:column;align-items:center"
20
- } : {
21
- name: "zigog8",
22
- styles: "display:flex;flex-direction:column;align-items:center",
23
- map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0RldmVsb3BlcnMvc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQU11QiIsImZpbGUiOiIuLi8uLi8uLi9zcmMvY29tcG9uZW50cy9EZXZlbG9wZXJzL3N0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcbmltcG9ydCBGYWJNVUkgZnJvbSAnQG11aS9tYXRlcmlhbC9GYWInO1xuaW1wb3J0IFR5cG9ncmFwaHkgZnJvbSAnQG11aS9tYXRlcmlhbC9UeXBvZ3JhcGh5JztcblxuaW1wb3J0IHsgVGhlbWUgfSBmcm9tICcuLi8uLi9UaGVtZSc7XG5cbmV4cG9ydCBjb25zdCBEZXRhaWxzID0gc3R5bGVkKCdzcGFuJykoe1xuICBkaXNwbGF5OiAnZmxleCcsXG4gIGZsZXhEaXJlY3Rpb246ICdjb2x1bW4nLFxuICBhbGlnbkl0ZW1zOiAnY2VudGVyJyxcbn0pO1xuXG5leHBvcnQgY29uc3QgQ29udGVudCA9IHN0eWxlZCgnZGl2Jykoe1xuICBtYXJnaW46ICcxMHB4IDAgMTBweCAwJyxcbiAgZGlzcGxheTogJ2ZsZXgnLFxuICBmbGV4V3JhcDogJ3dyYXAnLFxuICAnPiAqJzoge1xuICAgIG1hcmdpbjogJzVweCcsXG4gIH0sXG59KTtcblxuZXhwb3J0IGNvbnN0IFN0eWxlZFRleHQgPSBzdHlsZWQoVHlwb2dyYXBoeSk8eyB0aGVtZT86IFRoZW1lIH0+KChwcm9wcykgPT4gKHtcbiAgZm9udFdlaWdodDogcHJvcHMudGhlbWU/LmZvbnRXZWlnaHQuYm9sZCxcbiAgbWFyZ2luQm90dG9tOiAnMTBweCcsXG4gIHRleHRUcmFuc2Zvcm06ICdjYXBpdGFsaXplJyxcbn0pKTtcblxuZXhwb3J0IGNvbnN0IEZhYiA9IHN0eWxlZChGYWJNVUkpPHsgdGhlbWU/OiBUaGVtZSB9PigocHJvcHMpID0+ICh7XG4gIGJhY2tncm91bmRDb2xvcjogcHJvcHMudGhlbWU/LnBhbGV0dGUucHJpbWFyeS5tYWluLFxuICBjb2xvcjogcHJvcHMudGhlbWU/LnBhbGV0dGUud2hpdGUsXG59KSk7XG4iXX0= */",
24
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__
25
- });
26
- const Content = exports.Content = /*#__PURE__*/(0, _base.default)('div', process.env.NODE_ENV === "production" ? {
27
- target: "e1u5w7z82"
28
- } : {
29
- target: "e1u5w7z82",
30
- label: "Content"
31
- })(process.env.NODE_ENV === "production" ? {
32
- name: "mkcn9c",
33
- styles: "margin:10px 0 10px 0;display:flex;flex-wrap:wrap;> *{margin:5px;}"
34
- } : {
35
- name: "mkcn9c",
36
- styles: "margin:10px 0 10px 0;display:flex;flex-wrap:wrap;> *{margin:5px;}",
37
- map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0RldmVsb3BlcnMvc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQVl1QiIsImZpbGUiOiIuLi8uLi8uLi9zcmMvY29tcG9uZW50cy9EZXZlbG9wZXJzL3N0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcbmltcG9ydCBGYWJNVUkgZnJvbSAnQG11aS9tYXRlcmlhbC9GYWInO1xuaW1wb3J0IFR5cG9ncmFwaHkgZnJvbSAnQG11aS9tYXRlcmlhbC9UeXBvZ3JhcGh5JztcblxuaW1wb3J0IHsgVGhlbWUgfSBmcm9tICcuLi8uLi9UaGVtZSc7XG5cbmV4cG9ydCBjb25zdCBEZXRhaWxzID0gc3R5bGVkKCdzcGFuJykoe1xuICBkaXNwbGF5OiAnZmxleCcsXG4gIGZsZXhEaXJlY3Rpb246ICdjb2x1bW4nLFxuICBhbGlnbkl0ZW1zOiAnY2VudGVyJyxcbn0pO1xuXG5leHBvcnQgY29uc3QgQ29udGVudCA9IHN0eWxlZCgnZGl2Jykoe1xuICBtYXJnaW46ICcxMHB4IDAgMTBweCAwJyxcbiAgZGlzcGxheTogJ2ZsZXgnLFxuICBmbGV4V3JhcDogJ3dyYXAnLFxuICAnPiAqJzoge1xuICAgIG1hcmdpbjogJzVweCcsXG4gIH0sXG59KTtcblxuZXhwb3J0IGNvbnN0IFN0eWxlZFRleHQgPSBzdHlsZWQoVHlwb2dyYXBoeSk8eyB0aGVtZT86IFRoZW1lIH0+KChwcm9wcykgPT4gKHtcbiAgZm9udFdlaWdodDogcHJvcHMudGhlbWU/LmZvbnRXZWlnaHQuYm9sZCxcbiAgbWFyZ2luQm90dG9tOiAnMTBweCcsXG4gIHRleHRUcmFuc2Zvcm06ICdjYXBpdGFsaXplJyxcbn0pKTtcblxuZXhwb3J0IGNvbnN0IEZhYiA9IHN0eWxlZChGYWJNVUkpPHsgdGhlbWU/OiBUaGVtZSB9PigocHJvcHMpID0+ICh7XG4gIGJhY2tncm91bmRDb2xvcjogcHJvcHMudGhlbWU/LnBhbGV0dGUucHJpbWFyeS5tYWluLFxuICBjb2xvcjogcHJvcHMudGhlbWU/LnBhbGV0dGUud2hpdGUsXG59KSk7XG4iXX0= */",
38
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__
39
- });
40
- const StyledText = exports.StyledText = /*#__PURE__*/(0, _base.default)(_Typography.default, process.env.NODE_ENV === "production" ? {
41
- target: "e1u5w7z81"
42
- } : {
43
- target: "e1u5w7z81",
44
- label: "StyledText"
45
- })(props => {
46
- var _props$theme;
47
- return {
48
- fontWeight: (_props$theme = props.theme) === null || _props$theme === void 0 ? void 0 : _props$theme.fontWeight.bold,
49
- marginBottom: '10px',
50
- textTransform: 'capitalize'
51
- };
52
- }, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0RldmVsb3BlcnMvc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXFCMEIiLCJmaWxlIjoiLi4vLi4vLi4vc3JjL2NvbXBvbmVudHMvRGV2ZWxvcGVycy9zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5pbXBvcnQgRmFiTVVJIGZyb20gJ0BtdWkvbWF0ZXJpYWwvRmFiJztcbmltcG9ydCBUeXBvZ3JhcGh5IGZyb20gJ0BtdWkvbWF0ZXJpYWwvVHlwb2dyYXBoeSc7XG5cbmltcG9ydCB7IFRoZW1lIH0gZnJvbSAnLi4vLi4vVGhlbWUnO1xuXG5leHBvcnQgY29uc3QgRGV0YWlscyA9IHN0eWxlZCgnc3BhbicpKHtcbiAgZGlzcGxheTogJ2ZsZXgnLFxuICBmbGV4RGlyZWN0aW9uOiAnY29sdW1uJyxcbiAgYWxpZ25JdGVtczogJ2NlbnRlcicsXG59KTtcblxuZXhwb3J0IGNvbnN0IENvbnRlbnQgPSBzdHlsZWQoJ2RpdicpKHtcbiAgbWFyZ2luOiAnMTBweCAwIDEwcHggMCcsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgZmxleFdyYXA6ICd3cmFwJyxcbiAgJz4gKic6IHtcbiAgICBtYXJnaW46ICc1cHgnLFxuICB9LFxufSk7XG5cbmV4cG9ydCBjb25zdCBTdHlsZWRUZXh0ID0gc3R5bGVkKFR5cG9ncmFwaHkpPHsgdGhlbWU/OiBUaGVtZSB9PigocHJvcHMpID0+ICh7XG4gIGZvbnRXZWlnaHQ6IHByb3BzLnRoZW1lPy5mb250V2VpZ2h0LmJvbGQsXG4gIG1hcmdpbkJvdHRvbTogJzEwcHgnLFxuICB0ZXh0VHJhbnNmb3JtOiAnY2FwaXRhbGl6ZScsXG59KSk7XG5cbmV4cG9ydCBjb25zdCBGYWIgPSBzdHlsZWQoRmFiTVVJKTx7IHRoZW1lPzogVGhlbWUgfT4oKHByb3BzKSA9PiAoe1xuICBiYWNrZ3JvdW5kQ29sb3I6IHByb3BzLnRoZW1lPy5wYWxldHRlLnByaW1hcnkubWFpbixcbiAgY29sb3I6IHByb3BzLnRoZW1lPy5wYWxldHRlLndoaXRlLFxufSkpO1xuIl19 */");
53
- const Fab = exports.Fab = /*#__PURE__*/(0, _base.default)(_Fab.default, process.env.NODE_ENV === "production" ? {
54
- target: "e1u5w7z80"
55
- } : {
56
- target: "e1u5w7z80",
57
- label: "Fab"
58
- })(props => {
59
- var _props$theme2, _props$theme3;
60
- return {
61
- backgroundColor: (_props$theme2 = props.theme) === null || _props$theme2 === void 0 ? void 0 : _props$theme2.palette.primary.main,
62
- color: (_props$theme3 = props.theme) === null || _props$theme3 === void 0 ? void 0 : _props$theme3.palette.white
63
- };
64
- }, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0RldmVsb3BlcnMvc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQTJCbUIiLCJmaWxlIjoiLi4vLi4vLi4vc3JjL2NvbXBvbmVudHMvRGV2ZWxvcGVycy9zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5pbXBvcnQgRmFiTVVJIGZyb20gJ0BtdWkvbWF0ZXJpYWwvRmFiJztcbmltcG9ydCBUeXBvZ3JhcGh5IGZyb20gJ0BtdWkvbWF0ZXJpYWwvVHlwb2dyYXBoeSc7XG5cbmltcG9ydCB7IFRoZW1lIH0gZnJvbSAnLi4vLi4vVGhlbWUnO1xuXG5leHBvcnQgY29uc3QgRGV0YWlscyA9IHN0eWxlZCgnc3BhbicpKHtcbiAgZGlzcGxheTogJ2ZsZXgnLFxuICBmbGV4RGlyZWN0aW9uOiAnY29sdW1uJyxcbiAgYWxpZ25JdGVtczogJ2NlbnRlcicsXG59KTtcblxuZXhwb3J0IGNvbnN0IENvbnRlbnQgPSBzdHlsZWQoJ2RpdicpKHtcbiAgbWFyZ2luOiAnMTBweCAwIDEwcHggMCcsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgZmxleFdyYXA6ICd3cmFwJyxcbiAgJz4gKic6IHtcbiAgICBtYXJnaW46ICc1cHgnLFxuICB9LFxufSk7XG5cbmV4cG9ydCBjb25zdCBTdHlsZWRUZXh0ID0gc3R5bGVkKFR5cG9ncmFwaHkpPHsgdGhlbWU/OiBUaGVtZSB9PigocHJvcHMpID0+ICh7XG4gIGZvbnRXZWlnaHQ6IHByb3BzLnRoZW1lPy5mb250V2VpZ2h0LmJvbGQsXG4gIG1hcmdpbkJvdHRvbTogJzEwcHgnLFxuICB0ZXh0VHJhbnNmb3JtOiAnY2FwaXRhbGl6ZScsXG59KSk7XG5cbmV4cG9ydCBjb25zdCBGYWIgPSBzdHlsZWQoRmFiTVVJKTx7IHRoZW1lPzogVGhlbWUgfT4oKHByb3BzKSA9PiAoe1xuICBiYWNrZ3JvdW5kQ29sb3I6IHByb3BzLnRoZW1lPy5wYWxldHRlLnByaW1hcnkubWFpbixcbiAgY29sb3I6IHByb3BzLnRoZW1lPy5wYWxldHRlLndoaXRlLFxufSkpO1xuIl19 */");
65
- //# sourceMappingURL=styles.js.map
@@ -1,25 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.fileSizeSI = fileSizeSI;
7
- exports.formatLicense = formatLicense;
8
- /**
9
- * Formats license field for webui.
10
- * @see https://docs.npmjs.com/files/package.json#license
11
- */
12
- // License should use type License defined above, but conflicts with the unit test that provide array or empty object
13
- function formatLicense(license) {
14
- if (typeof license === 'string') {
15
- return license;
16
- }
17
- if (license !== null && license !== void 0 && license.type) {
18
- return license.type;
19
- }
20
- return;
21
- }
22
- function fileSizeSI(a, b, c, d, e) {
23
- return (b = Math, c = b.log, d = 1e3, e = c(a) / c(d) | 0, a / b.pow(d, e)).toFixed(2) + ' ' + (e ? 'kMGTPEZY'[--e] + 'B' : 'Bytes');
24
- }
25
- //# sourceMappingURL=utils.js.map
@@ -1,18 +0,0 @@
1
- "use strict";
2
-
3
- var _utils = require("./utils");
4
- test('formatLicense as string', () => {
5
- expect((0, _utils.formatLicense)('MIT')).toEqual('MIT');
6
- });
7
- test('formatLicense as format object', () => {
8
- expect((0, _utils.formatLicense)({
9
- type: 'MIT'
10
- })).toEqual('MIT');
11
- });
12
- test('fileSizeSI as number 1000', () => {
13
- expect((0, _utils.fileSizeSI)(1000)).toEqual('1.00 kB');
14
- });
15
- test('fileSizeSI as number 0', () => {
16
- expect((0, _utils.fileSizeSI)(0)).toEqual('0.00 Bytes');
17
- });
18
- //# sourceMappingURL=utilts.spec.js.map
@@ -1,14 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var _react = _interopRequireDefault(require("react"));
8
- var _styles = require("./styles");
9
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10
- const Tag = ({
11
- children
12
- }) => /*#__PURE__*/_react.default.createElement(_styles.Wrapper, null, children);
13
- var _default = exports.default = Tag;
14
- //# sourceMappingURL=Tag.js.map
@@ -1,14 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "default", {
7
- enumerable: true,
8
- get: function () {
9
- return _Tag.default;
10
- }
11
- });
12
- var _Tag = _interopRequireDefault(require("./Tag"));
13
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
14
- //# sourceMappingURL=index.js.map
@@ -1,24 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.Wrapper = void 0;
7
- var _base = _interopRequireDefault(require("@emotion/styled/base"));
8
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
9
- function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
10
- const Wrapper = exports.Wrapper = /*#__PURE__*/(0, _base.default)('span', process.env.NODE_ENV === "production" ? {
11
- target: "e1bcw0zd0"
12
- } : {
13
- target: "e1bcw0zd0",
14
- label: "Wrapper"
15
- })(process.env.NODE_ENV === "production" ? {
16
- name: "bk6wq0",
17
- styles: "vertical-align:middle;line-height:22px;border-radius:2px;color:#485a3e;background-color:#f3f4f2;padding:0.22rem 0.4rem;margin:8px 8px 0 0"
18
- } : {
19
- name: "bk6wq0",
20
- styles: "vertical-align:middle;line-height:22px;border-radius:2px;color:#485a3e;background-color:#f3f4f2;padding:0.22rem 0.4rem;margin:8px 8px 0 0",
21
- map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9jb21wb25lbnRzL1BhY2thZ2UvVGFnL3N0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFFdUIiLCJmaWxlIjoiLi4vLi4vLi4vLi4vc3JjL2NvbXBvbmVudHMvUGFja2FnZS9UYWcvc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuXG5leHBvcnQgY29uc3QgV3JhcHBlciA9IHN0eWxlZCgnc3BhbicpKHtcbiAgdmVydGljYWxBbGlnbjogJ21pZGRsZScsXG4gIGxpbmVIZWlnaHQ6ICcyMnB4JyxcbiAgYm9yZGVyUmFkaXVzOiAnMnB4JyxcbiAgY29sb3I6ICcjNDg1YTNlJyxcbiAgYmFja2dyb3VuZENvbG9yOiAnI2YzZjRmMicsXG4gIHBhZGRpbmc6ICcwLjIycmVtIDAuNHJlbScsXG4gIG1hcmdpbjogJzhweCA4cHggMCAwJyxcbn0pO1xuIl19 */",
22
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__
23
- });
24
- //# sourceMappingURL=styles.js.map
@@ -1,36 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var _Button = _interopRequireDefault(require("@mui/material/Button"));
8
- var _Dialog = _interopRequireDefault(require("@mui/material/Dialog"));
9
- var _DialogActions = _interopRequireDefault(require("@mui/material/DialogActions"));
10
- var _react = _interopRequireDefault(require("react"));
11
- var _reactI18next = require("react-i18next");
12
- var _styles = require("./styles");
13
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
14
- const RegistryInfoDialog = ({
15
- open = false,
16
- children,
17
- onClose,
18
- title = ''
19
- }) => {
20
- const {
21
- t
22
- } = (0, _reactI18next.useTranslation)();
23
- return /*#__PURE__*/_react.default.createElement(_Dialog.default, {
24
- "data-testid": 'registryInfo--dialog',
25
- id: "registryInfo--dialog-container",
26
- maxWidth: "sm",
27
- onClose: onClose,
28
- open: open
29
- }, /*#__PURE__*/_react.default.createElement(_styles.Title, null, title), /*#__PURE__*/_react.default.createElement(_styles.Content, null, children), /*#__PURE__*/_react.default.createElement(_DialogActions.default, null, /*#__PURE__*/_react.default.createElement(_Button.default, {
30
- color: "inherit",
31
- id: "registryInfo--dialog-close",
32
- onClick: onClose
33
- }, t('button.close'))));
34
- };
35
- var _default = exports.default = RegistryInfoDialog;
36
- //# sourceMappingURL=RegistryInfoDialog.js.map
@@ -1,14 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "default", {
7
- enumerable: true,
8
- get: function () {
9
- return _RegistryInfoDialog.default;
10
- }
11
- });
12
- var _RegistryInfoDialog = _interopRequireDefault(require("./RegistryInfoDialog"));
13
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
14
- //# sourceMappingURL=index.js.map
@@ -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
- }