@verdaccio/ui-components 2.0.0-alpha.0 → 3.0.0-next-7.4
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.
- package/.babelrc +8 -0
- package/.eslintrc +100 -0
- package/CHANGELOG.md +192 -0
- package/README.md +103 -0
- package/build/Theme/ResetStyles.js +49 -0
- package/build/Theme/StyleBaseline.js +14 -0
- package/build/Theme/ThemeProvider.js +51 -0
- package/build/Theme/colors.js +8 -0
- package/build/Theme/index.js +45 -0
- package/build/Theme/theme.js +118 -0
- package/build/__mocks__/react-markdown.js +18 -0
- package/build/__mocks__/remark-plugin.js +8 -0
- package/build/components/ActionBar/ActionBar.js +74 -0
- package/build/components/ActionBar/ActionBarAction.js +100 -0
- package/build/components/ActionBar/index.js +14 -0
- package/build/components/Author/Author.js +75 -0
- package/build/components/Author/index.js +14 -0
- package/build/components/Author/styles.js +37 -0
- package/build/components/CopyClipboard/CopyToClipBoard.js +69 -0
- package/build/components/CopyClipboard/index.js +21 -0
- package/build/components/CopyClipboard/utils.js +23 -0
- package/build/components/Dependencies/Dependencies.js +70 -0
- package/build/components/Dependencies/DependencyBlock.js +87 -0
- package/build/components/Dependencies/index.js +14 -0
- package/build/components/Dependencies/types.js +6 -0
- package/build/components/Dependencies/utits.js +10 -0
- package/build/components/Deprecated/Deprecated.js +24 -0
- package/build/components/Deprecated/index.js +14 -0
- package/build/components/Developers/Developers.js +92 -0
- package/build/components/Developers/Title.js +46 -0
- package/build/components/Developers/get-unique-developer-values.js +14 -0
- package/build/components/Developers/index.js +21 -0
- package/build/components/Developers/styles.js +65 -0
- package/build/components/Distribution/Dist.js +48 -0
- package/build/components/Distribution/index.js +14 -0
- package/build/components/Distribution/styles.js +66 -0
- package/build/components/Distribution/utils.js +25 -0
- package/build/components/Distribution/utilts.spec.js +18 -0
- package/build/components/Engines/Engines.js +85 -0
- package/build/components/Engines/index.js +14 -0
- package/build/components/Engines/styles.js +38 -0
- package/build/components/ErrorBoundary/ErrorBoundary.js +42 -0
- package/build/components/ErrorBoundary/index.js +14 -0
- package/build/components/FundButton/FundButton.js +80 -0
- package/build/components/FundButton/index.js +14 -0
- package/build/components/HeaderInfoDialog/HeaderInfoDialog.js +80 -0
- package/build/components/HeaderInfoDialog/index.js +14 -0
- package/build/components/Heading/Heading.js +24 -0
- package/build/components/Heading/index.js +14 -0
- package/build/components/Help/Help.js +60 -0
- package/build/components/Help/index.js +14 -0
- package/build/components/Help/styles.js +25 -0
- package/build/components/Icons/DevsIcons/CommonJS.js +29 -0
- package/build/components/Icons/DevsIcons/ES6Module.js +29 -0
- package/build/components/Icons/DevsIcons/Git.js +29 -0
- package/build/components/Icons/DevsIcons/NodeJS.js +29 -0
- package/build/components/Icons/DevsIcons/TypeScript.js +29 -0
- package/build/components/Icons/DevsIcons/commonjs.svg +4 -0
- package/build/components/Icons/DevsIcons/es6modules.svg +4 -0
- package/build/components/Icons/DevsIcons/git.svg +4 -0
- package/build/components/Icons/DevsIcons/index.js +41 -0
- package/build/components/Icons/DevsIcons/nodejs.svg +6 -0
- package/build/components/Icons/DevsIcons/typescript.svg +4 -0
- package/build/components/Icons/Earth.js +39 -0
- package/build/components/Icons/FileBinary.js +19 -0
- package/build/components/Icons/Law.js +20 -0
- package/build/components/Icons/License.js +23 -0
- package/build/components/Icons/License.js.map +1 -0
- package/build/components/Icons/Managers/Npm.js +29 -0
- package/build/components/Icons/Managers/Pnpm.js +29 -0
- package/build/components/Icons/Managers/Yarn.js +29 -0
- package/build/components/Icons/Managers/index.js +27 -0
- package/build/components/Icons/Managers/npm.svg +15 -0
- package/build/components/Icons/Managers/pnpm.svg +1 -0
- package/build/components/Icons/Managers/yarn.svg +1 -0
- package/build/components/Icons/SvgIcon.js +47 -0
- package/build/components/Icons/Time.js +26 -0
- package/build/components/Icons/Version.js +24 -0
- package/build/components/Icons/index.js +80 -0
- package/build/components/Install/Install.js +77 -0
- package/build/components/Install/InstallListItem.js +133 -0
- package/build/components/Install/__partials__/data.json +5984 -0
- package/build/components/Install/img/npm.svg +15 -0
- package/build/components/Install/img/pnpm.svg +1 -0
- package/build/components/Install/img/yarn.svg +1 -0
- package/build/components/Install/index.js +14 -0
- package/build/components/Label/Label.js +35 -0
- package/build/components/Label/index.js +14 -0
- package/build/components/Link/Link.js +56 -0
- package/build/components/Link/index.js +14 -0
- package/build/components/Loading/Loading.js +20 -0
- package/build/components/Loading/Spinner/Spinner.js +48 -0
- package/build/components/Loading/Spinner/index.js +14 -0
- package/build/components/Loading/index.js +14 -0
- package/build/components/Loading/styles.js +37 -0
- package/build/components/LoginDialog/LoginDialog.js +75 -0
- package/build/components/LoginDialog/LoginDialogCloseButton.js +41 -0
- package/build/components/LoginDialog/LoginDialogForm.js +126 -0
- package/build/components/LoginDialog/LoginDialogFormError.js +49 -0
- package/build/components/LoginDialog/LoginDialogHeader.js +59 -0
- package/build/components/LoginDialog/index.js +14 -0
- package/build/components/Logo/Logo.js +82 -0
- package/build/components/Logo/img/logo-black-and-white.svg +1 -0
- package/build/components/Logo/img/logo.svg +1 -0
- package/build/components/Logo/index.js +14 -0
- package/build/components/MenuItem/MenuItem.js +40 -0
- package/build/components/MenuItem/index.js +14 -0
- package/build/components/NoItems/NoItems.js +18 -0
- package/build/components/NoItems/index.js +14 -0
- package/build/components/NotFound/NotFound.js +73 -0
- package/build/components/NotFound/img/package.svg +1 -0
- package/build/components/NotFound/index.js +14 -0
- package/build/components/Package/Package.js +188 -0
- package/build/components/Package/Tag/Tag.js +14 -0
- package/build/components/Package/Tag/index.js +14 -0
- package/build/components/Package/Tag/styles.js +24 -0
- package/build/components/Package/index.js +21 -0
- package/build/components/Package/styles.js +211 -0
- package/build/components/PackageList/PackageList.js +99 -0
- package/build/components/PackageList/index.js +14 -0
- package/build/components/RawViewer/RawViewer.js +62 -0
- package/build/components/RawViewer/index.js +14 -0
- package/build/components/Readme/Readme.js +54 -0
- package/build/components/Readme/Readme.js.map +1 -0
- package/build/components/Readme/Readme.spec.js +22 -0
- package/build/components/Readme/Readme.spec.js.map +1 -0
- package/build/components/Readme/github-markdown.css +1198 -0
- package/build/components/Readme/index.js +14 -0
- package/build/components/Readme/types.js +6 -0
- package/build/components/Readme/utils.js +35 -0
- package/build/components/RegistryInfoDialog/RegistryInfoDialog.js +36 -0
- package/build/components/RegistryInfoDialog/index.js +14 -0
- package/build/components/RegistryInfoDialog/styles.js +46 -0
- package/build/components/RegistryInfoDialog/types.js +6 -0
- package/build/components/Repository/Repository.js +128 -0
- package/build/components/Repository/__partials__/data.json +5984 -0
- package/build/components/Repository/img/git.png +0 -0
- package/build/components/Repository/index.js +14 -0
- package/build/components/Search/AutoComplete/AutoComplete.js +69 -0
- package/build/components/Search/AutoComplete/index.js +14 -0
- package/build/components/Search/AutoComplete/styles.js +61 -0
- package/build/components/Search/Search.js +158 -0
- package/build/components/Search/SearchItem.js +135 -0
- package/build/components/Search/index.js +14 -0
- package/build/components/Search/styles.js +58 -0
- package/build/components/SettingsMenu/SettingsMenu.js +80 -0
- package/build/components/SettingsMenu/index.js +14 -0
- package/build/components/SideBarTitle/SideBarTitle.js +94 -0
- package/build/components/SideBarTitle/index.js +14 -0
- package/build/components/SideBarTitle/utils.js +19 -0
- package/build/components/TextField/TextField.js +29 -0
- package/build/components/TextField/index.js +14 -0
- package/build/components/UpLinks/UpLinks.js +43 -0
- package/build/components/UpLinks/index.js +14 -0
- package/build/components/UpLinks/styles.js +47 -0
- package/build/components/Versions/HistoryList.js +68 -0
- package/build/components/Versions/TagList.js +30 -0
- package/build/components/Versions/Versions.js +59 -0
- package/build/components/Versions/__partials__/data.json +5985 -0
- package/build/components/Versions/__partials__/deprecated-versions.json +175 -0
- package/build/components/Versions/index.js +14 -0
- package/build/components/Versions/styles.js +36 -0
- package/build/components/Versions/types.js +6 -0
- package/build/hooks/index.js +21 -0
- package/build/hooks/useLocalStorage.js +53 -0
- package/build/hooks/useOnClickOutside.js +32 -0
- package/build/index.js +500 -0
- package/build/layouts/Version/Version.js +28 -0
- package/build/layouts/Version/index.js +14 -0
- package/build/providers/AppConfigurationProvider/AppConfigurationProvider.js +63 -0
- package/build/providers/AppConfigurationProvider/index.js +21 -0
- package/build/providers/PersistenceSettingProvider/PersistenceSettingProvider.js +38 -0
- package/build/providers/PersistenceSettingProvider/index.js +21 -0
- package/build/providers/TranslatorProvider/TranslatorProvider.js +53 -0
- package/build/providers/TranslatorProvider/TranslatorProvider.spec.js +54 -0
- package/build/providers/TranslatorProvider/index.js +27 -0
- package/build/providers/VersionProvider/README.md +22 -0
- package/build/providers/VersionProvider/VersionProvider.js +79 -0
- package/build/providers/VersionProvider/index.js +21 -0
- package/build/providers/index.js +39 -0
- package/build/sections/Detail/ContainerContent.js +55 -0
- package/build/sections/Detail/Detail.js +50 -0
- package/build/sections/Detail/ReadmeSection.js +21 -0
- package/build/sections/Detail/Tabs.js +60 -0
- package/build/sections/Detail/index.js +14 -0
- package/build/sections/Footer/Footer.js +110 -0
- package/build/sections/Footer/index.js +14 -0
- package/build/sections/Footer/styles.js +85 -0
- package/build/sections/Header/Header.js +72 -0
- package/build/sections/Header/HeaderGreetings.js +25 -0
- package/build/sections/Header/HeaderLeft.js +36 -0
- package/build/sections/Header/HeaderMenu.js +53 -0
- package/build/sections/Header/HeaderRight.js +103 -0
- package/build/sections/Header/HeaderSettingsDialog.js +104 -0
- package/build/sections/Header/HeaderToolTip.js +18 -0
- package/build/sections/Header/HeaderToolTipIcon.js +69 -0
- package/build/sections/Header/LanguageSwitch.js +126 -0
- package/build/sections/Header/RegistryInfoContent/RegistryInfoContent.js +180 -0
- package/build/sections/Header/RegistryInfoContent/index.js +14 -0
- package/build/sections/Header/RegistryInfoContent/styles.js +29 -0
- package/build/sections/Header/RegistryInfoDialog/RegistryInfoDialog.js +36 -0
- package/build/sections/Header/RegistryInfoDialog/index.js +14 -0
- package/build/sections/Header/RegistryInfoDialog/styles.js +46 -0
- package/build/sections/Header/RegistryInfoDialog/types.js +6 -0
- package/build/sections/Header/index.js +14 -0
- package/build/sections/Header/styles.js +200 -0
- package/build/sections/Home/Home.js +31 -0
- package/build/sections/Home/index.js +14 -0
- package/build/sections/SideBar/Sidebar.js +96 -0
- package/build/sections/SideBar/index.js +14 -0
- package/build/sections/index.js +21 -0
- package/build/src/Theme/ResetStyles.d.ts +3 -0
- package/build/src/Theme/StyleBaseline.d.ts +4 -0
- package/build/src/Theme/ThemeProvider.d.ts +10 -0
- package/build/src/Theme/colors.d.ts +1 -0
- package/build/src/Theme/index.d.ts +4 -0
- package/build/src/Theme/theme.d.ts +149 -0
- package/build/src/__mocks__/react-markdown.d.ts +4 -0
- package/build/src/__mocks__/remark-plugin.d.ts +1 -0
- package/build/src/components/ActionBar/ActionBar.d.ts +8 -0
- package/build/src/components/ActionBar/ActionBar.stories.d.ts +11 -0
- package/build/src/components/ActionBar/ActionBar.test.d.ts +1 -0
- package/build/src/components/ActionBar/ActionBarAction.d.ts +10 -0
- package/build/src/components/ActionBar/index.d.ts +1 -0
- package/build/src/components/Author/Author.d.ts +10 -0
- package/build/src/components/Author/Author.stories.d.ts +6 -0
- package/build/src/components/Author/Author.test.d.ts +1 -0
- package/build/src/components/Author/index.d.ts +1 -0
- package/build/src/components/Author/styles.d.ts +2 -0
- package/build/src/components/CopyClipboard/CopyToClipBoard.d.ts +9 -0
- package/build/src/components/CopyClipboard/CopyToClipBoard.stories.d.ts +12 -0
- package/build/src/components/CopyClipboard/index.d.ts +2 -0
- package/build/src/components/CopyClipboard/utils.d.ts +2 -0
- package/build/src/components/Dependencies/Dependencies.d.ts +6 -0
- package/build/src/components/Dependencies/Dependencies.stories.d.ts +8 -0
- package/build/src/components/Dependencies/Dependencies.test.d.ts +1 -0
- package/build/src/components/Dependencies/DependencyBlock.d.ts +16 -0
- package/build/src/components/Dependencies/DependencyBlock.test.d.ts +1 -0
- package/build/src/components/Dependencies/index.d.ts +1 -0
- package/build/src/components/Dependencies/types.d.ts +6 -0
- package/build/src/components/Dependencies/utits.d.ts +3 -0
- package/build/src/components/Deprecated/Deprecated.d.ts +6 -0
- package/build/src/components/Deprecated/Deprecated.stories.d.ts +5 -0
- package/build/src/components/Deprecated/Deprecated.test.d.ts +1 -0
- package/build/src/components/Deprecated/index.d.ts +1 -0
- package/build/src/components/Developers/Developers.d.ts +14 -0
- package/build/src/components/Developers/Developers.stories.d.ts +6 -0
- package/build/src/components/Developers/Developers.test.d.ts +1 -0
- package/build/src/components/Developers/Title.d.ts +10 -0
- package/build/src/components/Developers/get-unique-developer-values.d.ts +3 -0
- package/build/src/components/Developers/index.d.ts +1 -0
- package/build/src/components/Developers/styles.d.ts +11 -0
- package/build/src/components/Distribution/Dist.d.ts +6 -0
- package/build/src/components/Distribution/Dist.stories.d.ts +8 -0
- package/build/src/components/Distribution/Dist.test.d.ts +1 -0
- package/build/src/components/Distribution/index.d.ts +1 -0
- package/build/src/components/Distribution/styles.d.ts +4 -0
- package/build/src/components/Distribution/utils.d.ts +7 -0
- package/build/src/components/Engines/Engines.d.ts +25 -0
- package/build/src/components/Engines/Engines.stories.d.ts +9 -0
- package/build/src/components/Engines/Engines.test.d.ts +1 -0
- package/build/src/components/Engines/index.d.ts +1 -0
- package/build/src/components/Engines/styles.d.ts +2 -0
- package/build/src/components/ErrorBoundary/ErrorBoundary.d.ts +14 -0
- package/build/src/components/ErrorBoundary/index.d.ts +1 -0
- package/build/src/components/FundButton/FundButton.d.ts +5 -0
- package/build/src/components/FundButton/FundButton.stories.d.ts +7 -0
- package/build/src/components/FundButton/FundButton.test.d.ts +1 -0
- package/build/src/components/FundButton/index.d.ts +1 -0
- package/build/src/components/HeaderInfoDialog/HeaderInfoDialog.d.ts +10 -0
- package/build/src/components/HeaderInfoDialog/index.d.ts +1 -0
- package/build/src/components/Heading/Heading.d.ts +8 -0
- package/build/src/components/Heading/index.d.ts +1 -0
- package/build/src/components/Help/Help.d.ts +3 -0
- package/build/src/components/Help/Help.stories.d.ts +5 -0
- package/build/src/components/Help/Help.test.d.ts +1 -0
- package/build/src/components/Help/index.d.ts +1 -0
- package/build/src/components/Help/styles.d.ts +1 -0
- package/build/src/components/Icons/DevsIcons/CommonJS.d.ts +2 -0
- package/build/src/components/Icons/DevsIcons/ES6Module.d.ts +2 -0
- package/build/src/components/Icons/DevsIcons/Git.d.ts +2 -0
- package/build/src/components/Icons/DevsIcons/NodeJS.d.ts +2 -0
- package/build/src/components/Icons/DevsIcons/TypeScript.d.ts +2 -0
- package/build/src/components/Icons/DevsIcons/index.d.ts +5 -0
- package/build/src/components/Icons/Earth.d.ts +7 -0
- package/build/src/components/Icons/FileBinary.d.ts +7 -0
- package/build/src/components/Icons/Icons.stories.d.ts +5 -0
- package/build/src/components/Icons/Law.d.ts +7 -0
- package/build/src/components/Icons/License.d.ts +7 -0
- package/build/src/components/Icons/Managers/Npm.d.ts +2 -0
- package/build/src/components/Icons/Managers/Pnpm.d.ts +2 -0
- package/build/src/components/Icons/Managers/Yarn.d.ts +2 -0
- package/build/src/components/Icons/Managers/index.d.ts +3 -0
- package/build/src/components/Icons/SvgIcon.d.ts +10 -0
- package/build/src/components/Icons/Time.d.ts +7 -0
- package/build/src/components/Icons/Version.d.ts +7 -0
- package/build/src/components/Icons/index.d.ts +8 -0
- package/build/src/components/Install/Install.d.ts +10 -0
- package/build/src/components/Install/Install.stories.d.ts +9 -0
- package/build/src/components/Install/Install.test.d.ts +1 -0
- package/build/src/components/Install/InstallListItem.d.ts +14 -0
- package/build/src/components/Install/index.d.ts +1 -0
- package/build/src/components/Label/Label.d.ts +9 -0
- package/build/src/components/Label/Label.test.d.ts +1 -0
- package/build/src/components/Label/index.d.ts +1 -0
- package/build/src/components/Link/Link.d.ts +6 -0
- package/build/src/components/Link/index.d.ts +1 -0
- package/build/src/components/Loading/Loading.d.ts +3 -0
- package/build/src/components/Loading/Loading.stories.d.ts +5 -0
- package/build/src/components/Loading/Loading.test.d.ts +1 -0
- package/build/src/components/Loading/Spinner/Spinner.d.ts +7 -0
- package/build/src/components/Loading/Spinner/Spinner.test.d.ts +1 -0
- package/build/src/components/Loading/Spinner/index.d.ts +1 -0
- package/build/src/components/Loading/index.d.ts +1 -0
- package/build/src/components/Loading/styles.d.ts +11 -0
- package/build/src/components/LoginDialog/LoginDialog.d.ts +7 -0
- package/build/src/components/LoginDialog/LoginDialog.stories.d.ts +15 -0
- package/build/src/components/LoginDialog/LoginDialog.test.d.ts +1 -0
- package/build/src/components/LoginDialog/LoginDialogCloseButton.d.ts +6 -0
- package/build/src/components/LoginDialog/LoginDialogForm.d.ts +12 -0
- package/build/src/components/LoginDialog/LoginDialogFormError.d.ts +11 -0
- package/build/src/components/LoginDialog/LoginDialogHeader.d.ts +6 -0
- package/build/src/components/LoginDialog/index.d.ts +1 -0
- package/build/src/components/Logo/Logo.d.ts +14 -0
- package/build/src/components/Logo/Logo.test.d.ts +1 -0
- package/build/src/components/Logo/index.d.ts +1 -0
- package/build/src/components/MenuItem/MenuItem.d.ts +9 -0
- package/build/src/components/MenuItem/index.d.ts +1 -0
- package/build/src/components/NoItems/NoItems.d.ts +6 -0
- package/build/src/components/NoItems/NoItems.stories.d.ts +5 -0
- package/build/src/components/NoItems/Noitems.test.d.ts +1 -0
- package/build/src/components/NoItems/index.d.ts +1 -0
- package/build/src/components/NotFound/NotFound.d.ts +3 -0
- package/build/src/components/NotFound/Notfound.test.d.ts +1 -0
- package/build/src/components/NotFound/index.d.ts +1 -0
- package/build/src/components/Package/Package.d.ts +24 -0
- package/build/src/components/Package/Package.test.d.ts +1 -0
- package/build/src/components/Package/Tag/Tag.d.ts +6 -0
- package/build/src/components/Package/Tag/Tag.test.d.ts +1 -0
- package/build/src/components/Package/Tag/index.d.ts +1 -0
- package/build/src/components/Package/Tag/styles.d.ts +5 -0
- package/build/src/components/Package/index.d.ts +1 -0
- package/build/src/components/Package/styles.d.ts +49 -0
- package/build/src/components/PackageList/PackageList.d.ts +6 -0
- package/build/src/components/PackageList/Packagelist.test.d.ts +1 -0
- package/build/src/components/PackageList/index.d.ts +1 -0
- package/build/src/components/RawViewer/RawViewer.d.ts +13 -0
- package/build/src/components/RawViewer/index.d.ts +1 -0
- package/build/src/components/Readme/Readme.d.ts +6 -0
- package/build/src/components/Readme/Readme.spec.d.ts +1 -0
- package/build/src/components/Readme/index.d.ts +1 -0
- package/build/src/components/Readme/types.d.ts +3 -0
- package/build/src/components/Readme/utils.d.ts +1 -0
- package/build/src/components/RegistryInfoDialog/RegistryInfoDialog.d.ts +4 -0
- package/build/src/components/RegistryInfoDialog/index.d.ts +1 -0
- package/build/src/components/RegistryInfoDialog/styles.d.ts +13 -0
- package/build/src/components/RegistryInfoDialog/types.d.ts +7 -0
- package/build/src/components/Repository/Repository.d.ts +5 -0
- package/build/src/components/Repository/Repository.stories.d.ts +8 -0
- package/build/src/components/Repository/Repository.test.d.ts +1 -0
- package/build/src/components/Repository/index.d.ts +1 -0
- package/build/src/components/Search/AutoComplete/AutoComplete.d.ts +16 -0
- package/build/src/components/Search/AutoComplete/index.d.ts +1 -0
- package/build/src/components/Search/AutoComplete/styles.d.ts +13 -0
- package/build/src/components/Search/Search.d.ts +4 -0
- package/build/src/components/Search/Search.stories.d.ts +8 -0
- package/build/src/components/Search/Search.test.d.ts +1 -0
- package/build/src/components/Search/SearchItem.d.ts +18 -0
- package/build/src/components/Search/index.d.ts +1 -0
- package/build/src/components/Search/styles.d.ts +10 -0
- package/build/src/components/SettingsMenu/SettingsMenu.d.ts +6 -0
- package/build/src/components/SettingsMenu/index.d.ts +1 -0
- package/build/src/components/SideBarTitle/SideBarTitle.d.ts +13 -0
- package/build/src/components/SideBarTitle/SideBarTitle.stories.d.ts +9 -0
- package/build/src/components/SideBarTitle/index.d.ts +1 -0
- package/build/src/components/SideBarTitle/utils.d.ts +3 -0
- package/build/src/components/TextField/TextField.d.ts +3 -0
- package/build/src/components/TextField/TextField.test.d.ts +1 -0
- package/build/src/components/TextField/index.d.ts +1 -0
- package/build/src/components/UpLinks/UpLinks.d.ts +5 -0
- package/build/src/components/UpLinks/UpLinks.test.d.ts +1 -0
- package/build/src/components/UpLinks/Uplinks.stories.d.ts +6 -0
- package/build/src/components/UpLinks/index.d.ts +1 -0
- package/build/src/components/UpLinks/styles.d.ts +13 -0
- package/build/src/components/Versions/HistoryList.d.ts +10 -0
- package/build/src/components/Versions/TagList.d.ts +9 -0
- package/build/src/components/Versions/Versions.d.ts +7 -0
- package/build/src/components/Versions/Versions.test.d.ts +1 -0
- package/build/src/components/Versions/index.d.ts +1 -0
- package/build/src/components/Versions/styles.d.ts +12 -0
- package/build/src/components/Versions/types.d.ts +15 -0
- package/build/src/hooks/index.d.ts +2 -0
- package/build/src/hooks/useLocalStorage.d.ts +12 -0
- package/build/src/hooks/useOnClickOutside.d.ts +9 -0
- package/build/src/index.d.ts +50 -0
- package/build/src/layouts/Version/Version.d.ts +3 -0
- package/build/src/layouts/Version/Version.stories.d.ts +7 -0
- package/build/src/layouts/Version/index.d.ts +1 -0
- package/build/src/providers/AppConfigurationProvider/AppConfigurationProvider.d.ts +10 -0
- package/build/src/providers/AppConfigurationProvider/index.d.ts +1 -0
- package/build/src/providers/PersistenceSettingProvider/PersistenceSettingProvider.d.ts +6 -0
- package/build/src/providers/PersistenceSettingProvider/index.d.ts +1 -0
- package/build/src/providers/TranslatorProvider/TranslatorProvider.d.ts +24 -0
- package/build/src/providers/TranslatorProvider/TranslatorProvider.spec.d.ts +1 -0
- package/build/src/providers/TranslatorProvider/index.d.ts +1 -0
- package/build/src/providers/VersionProvider/VersionProvider.d.ts +41 -0
- package/build/src/providers/VersionProvider/VersionProvider.test.d.ts +1 -0
- package/build/src/providers/VersionProvider/index.d.ts +1 -0
- package/build/src/providers/index.d.ts +3 -0
- package/build/src/sections/Detail/ContainerContent.d.ts +13 -0
- package/build/src/sections/Detail/Detail.d.ts +9 -0
- package/build/src/sections/Detail/Detail.stories.d.ts +6 -0
- package/build/src/sections/Detail/Detail.test.d.ts +1 -0
- package/build/src/sections/Detail/ReadmeSection.d.ts +6 -0
- package/build/src/sections/Detail/Tabs.d.ts +7 -0
- package/build/src/sections/Detail/index.d.ts +1 -0
- package/build/src/sections/Footer/Footer.d.ts +3 -0
- package/build/src/sections/Footer/Footer.test.d.ts +1 -0
- package/build/src/sections/Footer/index.d.ts +1 -0
- package/build/src/sections/Footer/styles.d.ts +33 -0
- package/build/src/sections/Header/Header.d.ts +6 -0
- package/build/src/sections/Header/Header.stories.d.ts +5 -0
- package/build/src/sections/Header/Header.test.d.ts +1 -0
- package/build/src/sections/Header/HeaderGreetings.d.ts +6 -0
- package/build/src/sections/Header/HeaderLeft.d.ts +6 -0
- package/build/src/sections/Header/HeaderMenu.d.ts +11 -0
- package/build/src/sections/Header/HeaderRight.d.ts +16 -0
- package/build/src/sections/Header/HeaderSettingsDialog.d.ts +7 -0
- package/build/src/sections/Header/HeaderToolTip.d.ts +9 -0
- package/build/src/sections/Header/HeaderToolTipIcon.d.ts +8 -0
- package/build/src/sections/Header/LanguageSwitch.d.ts +5 -0
- package/build/src/sections/Header/RegistryInfoContent/RegistryInfoContent.d.ts +24 -0
- package/build/src/sections/Header/RegistryInfoContent/RegistryInfoContent.test.d.ts +1 -0
- package/build/src/sections/Header/RegistryInfoContent/index.d.ts +1 -0
- package/build/src/sections/Header/RegistryInfoContent/styles.d.ts +13 -0
- package/build/src/sections/Header/RegistryInfoDialog/RegistryInfoDialog.d.ts +4 -0
- package/build/src/sections/Header/RegistryInfoDialog/index.d.ts +1 -0
- package/build/src/sections/Header/RegistryInfoDialog/styles.d.ts +13 -0
- package/build/src/sections/Header/RegistryInfoDialog/types.d.ts +7 -0
- package/build/src/sections/Header/index.d.ts +1 -0
- package/build/src/sections/Header/styles.d.ts +34 -0
- package/build/src/sections/Home/Home.d.ts +3 -0
- package/build/src/sections/Home/Home.stories.d.ts +5 -0
- package/build/src/sections/Home/Home.test.d.ts +1 -0
- package/build/src/sections/Home/index.d.ts +1 -0
- package/build/src/sections/SideBar/Sidebar.d.ts +3 -0
- package/build/src/sections/SideBar/Sidebar.stories.d.ts +7 -0
- package/build/src/sections/SideBar/Sidebar.test.d.ts +1 -0
- package/build/src/sections/SideBar/index.d.ts +1 -0
- package/build/src/sections/index.d.ts +2 -0
- package/build/src/store/api.d.ts +11 -0
- package/build/src/store/index.d.ts +3 -0
- package/build/src/store/models/configuration.d.ts +24 -0
- package/build/src/store/models/download.d.ts +16 -0
- package/build/src/store/models/index.d.ts +16 -0
- package/build/src/store/models/login.d.ts +69 -0
- package/build/src/store/models/manifest.d.ts +43 -0
- package/build/src/store/models/packages.d.ts +28 -0
- package/build/src/store/models/search.d.ts +42 -0
- package/build/src/store/storage.d.ts +2 -0
- package/build/src/store/store.d.ts +9 -0
- package/build/src/test/i18n-config.d.ts +2 -0
- package/build/src/test/test-react-testing-library.d.ts +8 -0
- package/build/src/types/index.d.ts +10 -0
- package/build/src/types/packageMeta.d.ts +85 -0
- package/build/src/utils/__partials__/packageMeta.d.ts +235 -0
- package/build/src/utils/cli-utils.d.ts +6 -0
- package/build/src/utils/index.d.ts +6 -0
- package/build/src/utils/loadable.d.ts +12 -0
- package/build/src/utils/routes.d.ts +7 -0
- package/build/src/utils/token.d.ts +1 -0
- package/build/src/utils/url.d.ts +4 -0
- package/build/src/utils/utils.d.ts +32 -0
- package/build/store/api.js +69 -0
- package/build/store/index.js +52 -0
- package/build/store/models/configuration.js +48 -0
- package/build/store/models/download.js +39 -0
- package/build/store/models/index.js +21 -0
- package/build/store/models/login.js +102 -0
- package/build/store/models/manifest.js +98 -0
- package/build/store/models/packages.js +43 -0
- package/build/store/models/search.js +89 -0
- package/build/store/storage.js +18 -0
- package/build/store/store.js +15 -0
- package/build/test/i18n-config.js +25 -0
- package/build/test/test-react-testing-library.js +53 -0
- package/build/types/index.js +6 -0
- package/build/types/packageMeta.js +6 -0
- package/build/utils/__partials__/packageMeta.js +534 -0
- package/build/utils/cli-utils.js +49 -0
- package/build/utils/index.js +75 -0
- package/build/utils/loadable.js +27 -0
- package/build/utils/routes.js +15 -0
- package/build/utils/token.js +35 -0
- package/build/utils/url.js +64 -0
- package/build/utils/utils.js +102 -0
- package/package.json +70 -12
- package/src/Theme/ResetStyles.tsx +44 -0
- package/src/Theme/StyleBaseline.tsx +14 -0
- package/src/Theme/ThemeProvider.tsx +44 -0
- package/src/Theme/colors.ts +1 -0
- package/src/Theme/index.ts +4 -0
- package/src/Theme/theme.ts +168 -0
- package/src/__mocks__/react-markdown.tsx +8 -0
- package/src/__mocks__/remark-plugin.ts +1 -0
- package/src/components/ActionBar/ActionBar.stories.tsx +64 -0
- package/src/components/ActionBar/ActionBar.test.tsx +92 -0
- package/src/components/ActionBar/ActionBar.tsx +63 -0
- package/src/components/ActionBar/ActionBarAction.tsx +89 -0
- package/src/components/ActionBar/index.ts +1 -0
- package/src/components/Author/Author.stories.tsx +53 -0
- package/src/components/Author/Author.test.tsx +69 -0
- package/src/components/Author/Author.tsx +68 -0
- package/src/components/Author/index.ts +1 -0
- package/src/components/Author/styles.ts +16 -0
- package/src/components/CopyClipboard/CopyToClipBoard.stories.tsx +20 -0
- package/src/components/CopyClipboard/CopyToClipBoard.tsx +51 -0
- package/src/components/CopyClipboard/index.ts +2 -0
- package/src/components/CopyClipboard/utils.ts +21 -0
- package/src/components/Dependencies/Dependencies.stories.tsx +158 -0
- package/src/components/Dependencies/Dependencies.test.tsx +69 -0
- package/src/components/Dependencies/Dependencies.tsx +69 -0
- package/src/components/Dependencies/DependencyBlock.test.tsx +33 -0
- package/src/components/Dependencies/DependencyBlock.tsx +69 -0
- package/src/components/Dependencies/index.ts +1 -0
- package/src/components/Dependencies/types.ts +7 -0
- package/src/components/Dependencies/utits.ts +3 -0
- package/src/components/Deprecated/Deprecated.stories.tsx +9 -0
- package/src/components/Deprecated/Deprecated.test.tsx +26 -0
- package/src/components/Deprecated/Deprecated.tsx +18 -0
- package/src/components/Deprecated/index.ts +1 -0
- package/src/components/Developers/Developers.stories.tsx +60 -0
- package/src/components/Developers/Developers.test.tsx +102 -0
- package/src/components/Developers/Developers.tsx +82 -0
- package/src/components/Developers/Title.tsx +32 -0
- package/src/components/Developers/get-unique-developer-values.ts +16 -0
- package/src/components/Developers/index.ts +1 -0
- package/src/components/Developers/styles.ts +31 -0
- package/src/components/Distribution/Dist.stories.tsx +67 -0
- package/src/components/Distribution/Dist.test.tsx +99 -0
- package/src/components/Distribution/Dist.tsx +58 -0
- package/src/components/Distribution/index.ts +1 -0
- package/src/components/Distribution/styles.ts +29 -0
- package/src/components/Distribution/utils.ts +32 -0
- package/src/components/Distribution/utilts.spec.ts +17 -0
- package/src/components/Engines/Engines.stories.tsx +71 -0
- package/src/components/Engines/Engines.test.tsx +56 -0
- package/src/components/Engines/Engines.tsx +95 -0
- package/src/components/Engines/index.ts +1 -0
- package/src/components/Engines/styles.ts +14 -0
- package/src/components/ErrorBoundary/ErrorBoundary.tsx +38 -0
- package/src/components/ErrorBoundary/index.ts +1 -0
- package/src/components/FundButton/FundButton.stories.tsx +56 -0
- package/src/components/FundButton/FundButton.test.tsx +84 -0
- package/src/components/FundButton/FundButton.tsx +48 -0
- package/src/components/FundButton/index.ts +1 -0
- package/src/components/HeaderInfoDialog/HeaderInfoDialog.tsx +82 -0
- package/src/components/HeaderInfoDialog/index.ts +1 -0
- package/src/components/Heading/Heading.tsx +16 -0
- package/src/components/Heading/index.ts +1 -0
- package/src/components/Help/Help.stories.tsx +9 -0
- package/src/components/Help/Help.test.tsx +18 -0
- package/src/components/Help/Help.tsx +54 -0
- package/src/components/Help/index.ts +1 -0
- package/src/components/Help/styles.ts +7 -0
- package/src/components/Icons/.eslintrc +5 -0
- package/src/components/Icons/DevsIcons/CommonJS.tsx +13 -0
- package/src/components/Icons/DevsIcons/ES6Module.tsx +13 -0
- package/src/components/Icons/DevsIcons/Git.tsx +13 -0
- package/src/components/Icons/DevsIcons/NodeJS.tsx +13 -0
- package/src/components/Icons/DevsIcons/TypeScript.tsx +13 -0
- package/src/components/Icons/DevsIcons/commonjs.svg +4 -0
- package/src/components/Icons/DevsIcons/es6modules.svg +4 -0
- package/src/components/Icons/DevsIcons/git.svg +4 -0
- package/src/components/Icons/DevsIcons/index.ts +5 -0
- package/src/components/Icons/DevsIcons/nodejs.svg +6 -0
- package/src/components/Icons/DevsIcons/typescript.svg +4 -0
- package/src/components/Icons/Earth.tsx +36 -0
- package/src/components/Icons/FileBinary.tsx +20 -0
- package/src/components/Icons/Icons.stories.tsx +37 -0
- package/src/components/Icons/Law.tsx +20 -0
- package/src/components/Icons/License.tsx +18 -0
- package/src/components/Icons/Managers/Npm.tsx +13 -0
- package/src/components/Icons/Managers/Pnpm.tsx +13 -0
- package/src/components/Icons/Managers/Yarn.tsx +13 -0
- package/src/components/Icons/Managers/index.ts +3 -0
- package/src/components/Icons/Managers/npm.svg +15 -0
- package/src/components/Icons/Managers/pnpm.svg +1 -0
- package/src/components/Icons/Managers/yarn.svg +1 -0
- package/src/components/Icons/SvgIcon.tsx +39 -0
- package/src/components/Icons/Time.tsx +19 -0
- package/src/components/Icons/Version.tsx +20 -0
- package/src/components/Icons/index.ts +8 -0
- package/src/components/Install/Install.stories.tsx +87 -0
- package/src/components/Install/Install.test.tsx +76 -0
- package/src/components/Install/Install.tsx +78 -0
- package/src/components/Install/InstallListItem.tsx +134 -0
- package/src/components/Install/__partials__/data.json +5984 -0
- package/src/components/Install/img/npm.svg +15 -0
- package/src/components/Install/img/pnpm.svg +1 -0
- package/src/components/Install/img/yarn.svg +1 -0
- package/src/components/Install/index.ts +1 -0
- package/src/components/Label/Label.test.tsx +14 -0
- package/src/components/Label/Label.tsx +36 -0
- package/src/components/Label/index.ts +1 -0
- package/src/components/Link/Link.tsx +39 -0
- package/src/components/Link/index.ts +1 -0
- package/src/components/Loading/Loading.stories.tsx +14 -0
- package/src/components/Loading/Loading.test.tsx +12 -0
- package/src/components/Loading/Loading.tsx +16 -0
- package/src/components/Loading/Spinner/Spinner.test.tsx +13 -0
- package/src/components/Loading/Spinner/Spinner.tsx +34 -0
- package/src/components/Loading/Spinner/index.tsx +1 -0
- package/src/components/Loading/index.ts +1 -0
- package/src/components/Loading/styles.ts +17 -0
- package/src/components/LoginDialog/LoginDialog.stories.tsx +20 -0
- package/src/components/LoginDialog/LoginDialog.test.tsx +108 -0
- package/src/components/LoginDialog/LoginDialog.tsx +79 -0
- package/src/components/LoginDialog/LoginDialogCloseButton.tsx +32 -0
- package/src/components/LoginDialog/LoginDialogForm.tsx +96 -0
- package/src/components/LoginDialog/LoginDialogFormError.tsx +42 -0
- package/src/components/LoginDialog/LoginDialogHeader.tsx +48 -0
- package/src/components/LoginDialog/index.ts +1 -0
- package/src/components/Logo/Logo.test.tsx +11 -0
- package/src/components/Logo/Logo.tsx +55 -0
- package/src/components/Logo/img/logo-black-and-white.svg +1 -0
- package/src/components/Logo/img/logo.svg +1 -0
- package/src/components/Logo/index.ts +1 -0
- package/src/components/MenuItem/MenuItem.tsx +25 -0
- package/src/components/MenuItem/index.ts +1 -0
- package/src/components/NoItems/NoItems.stories.tsx +11 -0
- package/src/components/NoItems/NoItems.tsx +15 -0
- package/src/components/NoItems/Noitems.test.tsx +15 -0
- package/src/components/NoItems/index.ts +1 -0
- package/src/components/NotFound/NotFound.tsx +52 -0
- package/src/components/NotFound/Notfound.test.tsx +36 -0
- package/src/components/NotFound/img/package.svg +1 -0
- package/src/components/NotFound/index.ts +1 -0
- package/src/components/Package/Package.test.tsx +54 -0
- package/src/components/Package/Package.tsx +269 -0
- package/src/components/Package/Tag/Tag.test.tsx +15 -0
- package/src/components/Package/Tag/Tag.tsx +11 -0
- package/src/components/Package/Tag/index.ts +1 -0
- package/src/components/Package/Tag/styles.ts +11 -0
- package/src/components/Package/index.ts +1 -0
- package/src/components/Package/styles.ts +104 -0
- package/src/components/PackageList/PackageList.tsx +81 -0
- package/src/components/PackageList/Packagelist.test.tsx +58 -0
- package/src/components/PackageList/index.ts +1 -0
- package/src/components/RawViewer/RawViewer.tsx +67 -0
- package/src/components/RawViewer/index.ts +1 -0
- package/src/components/Readme/Readme.spec.tsx +18 -0
- package/src/components/Readme/Readme.tsx +41 -0
- package/src/components/Readme/github-markdown.css +1198 -0
- package/src/components/Readme/index.ts +1 -0
- package/src/components/Readme/types.ts +3 -0
- package/src/components/Readme/utils.ts +29 -0
- package/src/components/RegistryInfoDialog/RegistryInfoDialog.tsx +31 -0
- package/src/components/RegistryInfoDialog/index.ts +1 -0
- package/src/components/RegistryInfoDialog/styles.ts +21 -0
- package/src/components/RegistryInfoDialog/types.ts +8 -0
- package/src/components/Repository/Repository.stories.tsx +70 -0
- package/src/components/Repository/Repository.test.tsx +43 -0
- package/src/components/Repository/Repository.tsx +88 -0
- package/src/components/Repository/__partials__/data.json +5984 -0
- package/src/components/Repository/img/git.png +0 -0
- package/src/components/Repository/index.ts +1 -0
- package/src/components/Search/AutoComplete/AutoComplete.tsx +83 -0
- package/src/components/Search/AutoComplete/index.ts +1 -0
- package/src/components/Search/AutoComplete/styles.tsx +42 -0
- package/src/components/Search/Search.stories.tsx +30 -0
- package/src/components/Search/Search.test.tsx +153 -0
- package/src/components/Search/Search.tsx +162 -0
- package/src/components/Search/SearchItem.tsx +114 -0
- package/src/components/Search/index.ts +1 -0
- package/src/components/Search/styles.ts +41 -0
- package/src/components/SettingsMenu/SettingsMenu.tsx +86 -0
- package/src/components/SettingsMenu/index.ts +1 -0
- package/src/components/SideBarTitle/SideBarTitle.stories.tsx +68 -0
- package/src/components/SideBarTitle/SideBarTitle.tsx +82 -0
- package/src/components/SideBarTitle/index.ts +1 -0
- package/src/components/SideBarTitle/utils.ts +12 -0
- package/src/components/TextField/TextField.test.tsx +15 -0
- package/src/components/TextField/TextField.tsx +24 -0
- package/src/components/TextField/index.ts +1 -0
- package/src/components/UpLinks/UpLinks.test.tsx +47 -0
- package/src/components/UpLinks/UpLinks.tsx +41 -0
- package/src/components/UpLinks/Uplinks.stories.tsx +47 -0
- package/src/components/UpLinks/index.ts +1 -0
- package/src/components/UpLinks/styles.ts +24 -0
- package/src/components/Versions/HistoryList.tsx +69 -0
- package/src/components/Versions/TagList.tsx +33 -0
- package/src/components/Versions/Versions.test.tsx +54 -0
- package/src/components/Versions/Versions.tsx +56 -0
- package/src/components/Versions/__partials__/data.json +5985 -0
- package/src/components/Versions/__partials__/deprecated-versions.json +175 -0
- package/src/components/Versions/index.ts +1 -0
- package/src/components/Versions/styles.ts +20 -0
- package/src/components/Versions/types.ts +17 -0
- package/src/hooks/index.ts +2 -0
- package/src/hooks/useLocalStorage.ts +49 -0
- package/src/hooks/useOnClickOutside.ts +33 -0
- package/src/index.ts +60 -0
- package/src/layouts/Version/Version.stories.tsx +44 -0
- package/src/layouts/Version/Version.tsx +19 -0
- package/src/layouts/Version/index.ts +1 -0
- package/src/providers/AppConfigurationProvider/AppConfigurationProvider.tsx +74 -0
- package/src/providers/AppConfigurationProvider/index.ts +1 -0
- package/src/providers/PersistenceSettingProvider/PersistenceSettingProvider.tsx +59 -0
- package/src/providers/PersistenceSettingProvider/index.ts +1 -0
- package/src/providers/TranslatorProvider/TranslatorProvider.spec.tsx +52 -0
- package/src/providers/TranslatorProvider/TranslatorProvider.tsx +54 -0
- package/src/providers/TranslatorProvider/index.ts +1 -0
- package/src/providers/VersionProvider/README.md +22 -0
- package/src/providers/VersionProvider/VersionProvider.test.tsx +49 -0
- package/src/providers/VersionProvider/VersionProvider.tsx +92 -0
- package/src/providers/VersionProvider/index.ts +1 -0
- package/src/providers/index.ts +3 -0
- package/src/sections/Detail/ContainerContent.tsx +46 -0
- package/src/sections/Detail/Detail.stories.tsx +29 -0
- package/src/sections/Detail/Detail.test.tsx +12 -0
- package/src/sections/Detail/Detail.tsx +34 -0
- package/src/sections/Detail/ReadmeSection.tsx +17 -0
- package/src/sections/Detail/Tabs.tsx +36 -0
- package/src/sections/Detail/index.ts +1 -0
- package/src/sections/Footer/Footer.test.tsx +20 -0
- package/src/sections/Footer/Footer.tsx +112 -0
- package/src/sections/Footer/index.ts +1 -0
- package/src/sections/Footer/styles.ts +44 -0
- package/src/sections/Header/Header.stories.tsx +36 -0
- package/src/sections/Header/Header.test.tsx +278 -0
- package/src/sections/Header/Header.tsx +79 -0
- package/src/sections/Header/HeaderGreetings.tsx +21 -0
- package/src/sections/Header/HeaderLeft.tsx +29 -0
- package/src/sections/Header/HeaderMenu.tsx +63 -0
- package/src/sections/Header/HeaderRight.tsx +131 -0
- package/src/sections/Header/HeaderSettingsDialog.tsx +80 -0
- package/src/sections/Header/HeaderToolTip.tsx +15 -0
- package/src/sections/Header/HeaderToolTipIcon.tsx +87 -0
- package/src/sections/Header/LanguageSwitch.tsx +99 -0
- package/src/sections/Header/RegistryInfoContent/RegistryInfoContent.test.tsx +26 -0
- package/src/sections/Header/RegistryInfoContent/RegistryInfoContent.tsx +191 -0
- package/src/sections/Header/RegistryInfoContent/index.ts +1 -0
- package/src/sections/Header/RegistryInfoContent/styles.ts +13 -0
- package/src/sections/Header/RegistryInfoDialog/RegistryInfoDialog.tsx +31 -0
- package/src/sections/Header/RegistryInfoDialog/index.ts +1 -0
- package/src/sections/Header/RegistryInfoDialog/styles.ts +21 -0
- package/src/sections/Header/RegistryInfoDialog/types.ts +8 -0
- package/src/sections/Header/index.ts +1 -0
- package/src/sections/Header/styles.ts +100 -0
- package/src/sections/Home/Home.stories.tsx +16 -0
- package/src/sections/Home/Home.test.tsx +29 -0
- package/src/sections/Home/Home.tsx +21 -0
- package/src/sections/Home/index.ts +1 -0
- package/src/sections/SideBar/Sidebar.stories.tsx +39 -0
- package/src/sections/SideBar/Sidebar.test.tsx +67 -0
- package/src/sections/SideBar/Sidebar.tsx +69 -0
- package/src/sections/SideBar/index.ts +1 -0
- package/src/sections/index.ts +2 -0
- package/src/store/api.test.ts +136 -0
- package/src/store/api.ts +73 -0
- package/src/store/index.ts +3 -0
- package/src/store/models/configuration.ts +46 -0
- package/src/store/models/download.ts +33 -0
- package/src/store/models/index.ts +18 -0
- package/src/store/models/login.test.ts +38 -0
- package/src/store/models/login.ts +106 -0
- package/src/store/models/manifest.ts +98 -0
- package/src/store/models/packages.ts +43 -0
- package/src/store/models/search.ts +86 -0
- package/src/store/storage.ts +12 -0
- package/src/store/store.ts +15 -0
- package/src/test/i18n-config.ts +19 -0
- package/src/test/test-react-testing-library.tsx +47 -0
- package/src/types/index.d.ts +2 -0
- package/src/types/index.ts +11 -0
- package/src/types/packageMeta.ts +93 -0
- package/src/utils/.eslintrc +5 -0
- package/src/utils/__partials__/packageMeta.ts +590 -0
- package/src/utils/cli-utils.test.ts +66 -0
- package/src/utils/cli-utils.ts +53 -0
- package/src/utils/index.ts +11 -0
- package/src/utils/loadable.tsx +20 -0
- package/src/utils/routes.ts +7 -0
- package/src/utils/token.test.ts +54 -0
- package/src/utils/token.ts +33 -0
- package/src/utils/url.test.ts +32 -0
- package/src/utils/url.ts +57 -0
- package/src/utils/utils.test.ts +113 -0
- package/src/utils/utils.ts +120 -0
- package/tsconfig.build.json +22 -0
- package/tsconfig.json +21 -0
- package/LICENSE +0 -21
|
Binary file
|
|
@@ -0,0 +1,14 @@
|
|
|
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 _Repository.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _Repository = _interopRequireDefault(require("./Repository"));
|
|
13
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _Autocomplete = _interopRequireDefault(require("@mui/material/Autocomplete"));
|
|
8
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
+
var _reactI18next = require("react-i18next");
|
|
10
|
+
var _styles = require("./styles");
|
|
11
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
12
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
13
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
|
+
/* eslint-disable verdaccio/jsx-spread */
|
|
15
|
+
|
|
16
|
+
const AutoComplete = ({
|
|
17
|
+
suggestions,
|
|
18
|
+
onSuggestionsFetch,
|
|
19
|
+
onCleanSuggestions,
|
|
20
|
+
renderInput,
|
|
21
|
+
renderOption,
|
|
22
|
+
getOptionLabel,
|
|
23
|
+
onSelectItem,
|
|
24
|
+
suggestionsLoading = false
|
|
25
|
+
}) => {
|
|
26
|
+
const {
|
|
27
|
+
t
|
|
28
|
+
} = (0, _reactI18next.useTranslation)();
|
|
29
|
+
const [inputValue, setInputValue] = (0, _react.useState)('');
|
|
30
|
+
const handleOnInputChange = (event, value, reason) => {
|
|
31
|
+
if (reason === 'input') {
|
|
32
|
+
event.preventDefault();
|
|
33
|
+
onSuggestionsFetch({
|
|
34
|
+
value
|
|
35
|
+
});
|
|
36
|
+
setInputValue(value);
|
|
37
|
+
} else if (reason === 'clear') {
|
|
38
|
+
onCleanSuggestions(event);
|
|
39
|
+
setInputValue('');
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
const handleOnClose = event => {
|
|
43
|
+
onCleanSuggestions(event);
|
|
44
|
+
setInputValue('');
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
// @ts-ignore
|
|
48
|
+
return /*#__PURE__*/_react.default.createElement(_styles.Wrapper, null, /*#__PURE__*/_react.default.createElement(_Autocomplete.default
|
|
49
|
+
/* @ts-ignore */, {
|
|
50
|
+
clearOnBlur: true,
|
|
51
|
+
disablePortal: true,
|
|
52
|
+
freeSolo: true,
|
|
53
|
+
fullWidth: true,
|
|
54
|
+
getOptionLabel: getOptionLabel,
|
|
55
|
+
id: "search-header-suggest",
|
|
56
|
+
inputValue: inputValue,
|
|
57
|
+
loading: suggestionsLoading,
|
|
58
|
+
loadingText: t('autoComplete.loading'),
|
|
59
|
+
onChange: onSelectItem,
|
|
60
|
+
onClose: handleOnClose,
|
|
61
|
+
onInputChange: handleOnInputChange,
|
|
62
|
+
options: suggestions,
|
|
63
|
+
renderInput: renderInput,
|
|
64
|
+
renderOption: renderOption,
|
|
65
|
+
renderTags: () => null
|
|
66
|
+
}));
|
|
67
|
+
};
|
|
68
|
+
var _default = exports.default = AutoComplete;
|
|
69
|
+
//# sourceMappingURL=AutoComplete.js.map
|
|
@@ -0,0 +1,14 @@
|
|
|
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 _AutoComplete.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _AutoComplete = _interopRequireDefault(require("./AutoComplete"));
|
|
13
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.Wrapper = exports.StyledTextField = void 0;
|
|
7
|
+
var _base = _interopRequireDefault(require("@emotion/styled/base"));
|
|
8
|
+
var _ = require("../../../");
|
|
9
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
+
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)."; }
|
|
11
|
+
const Wrapper = exports.Wrapper = /*#__PURE__*/(0, _base.default)('div', process.env.NODE_ENV === "production" ? {
|
|
12
|
+
target: "e1603dot1"
|
|
13
|
+
} : {
|
|
14
|
+
target: "e1603dot1",
|
|
15
|
+
label: "Wrapper"
|
|
16
|
+
})(process.env.NODE_ENV === "production" ? {
|
|
17
|
+
name: "1ayuow2",
|
|
18
|
+
styles: "width:100%;position:relative;z-index:1"
|
|
19
|
+
} : {
|
|
20
|
+
name: "1ayuow2",
|
|
21
|
+
styles: "width:100%;position:relative;z-index:1",
|
|
22
|
+
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9jb21wb25lbnRzL1NlYXJjaC9BdXRvQ29tcGxldGUvc3R5bGVzLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFRdUIiLCJmaWxlIjoiLi4vLi4vLi4vLi4vc3JjL2NvbXBvbmVudHMvU2VhcmNoL0F1dG9Db21wbGV0ZS9zdHlsZXMudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuXG5pbXBvcnQgeyBUZXh0RmllbGQsIFRoZW1lIH0gZnJvbSAnLi4vLi4vLi4vJztcblxuZXhwb3J0IGludGVyZmFjZSBJbnB1dEZpZWxkUHJvcHMge1xuICBjb2xvcjogc3RyaW5nO1xufVxu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Sk7XG4iXX0= */",
|
|
23
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
24
|
+
});
|
|
25
|
+
const StyledTextField = exports.StyledTextField = /*#__PURE__*/(0, _base.default)(_.TextField, process.env.NODE_ENV === "production" ? {
|
|
26
|
+
target: "e1603dot0"
|
|
27
|
+
} : {
|
|
28
|
+
target: "e1603dot0",
|
|
29
|
+
label: "StyledTextField"
|
|
30
|
+
})(props => {
|
|
31
|
+
var _props$theme, _props$theme2, _props$theme3, _props$theme4;
|
|
32
|
+
return {
|
|
33
|
+
'& .MuiInputBase-root': {
|
|
34
|
+
':before': {
|
|
35
|
+
content: "''",
|
|
36
|
+
border: 'none'
|
|
37
|
+
},
|
|
38
|
+
':after': {
|
|
39
|
+
borderColor: (_props$theme = props.theme) === null || _props$theme === void 0 ? void 0 : _props$theme.palette.white
|
|
40
|
+
},
|
|
41
|
+
':hover:before': {
|
|
42
|
+
content: 'none'
|
|
43
|
+
},
|
|
44
|
+
':hover:after': {
|
|
45
|
+
content: 'none',
|
|
46
|
+
transform: 'scaleX(1)'
|
|
47
|
+
},
|
|
48
|
+
[`@media screen and (min-width: ${(_props$theme2 = props.theme) === null || _props$theme2 === void 0 ? void 0 : _props$theme2.breakPoints.medium}px)`]: {
|
|
49
|
+
':hover:after': {
|
|
50
|
+
content: "''"
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
'& .MuiInputBase-input': {
|
|
55
|
+
[`@media screen and (min-width: ${(_props$theme3 = props.theme) === null || _props$theme3 === void 0 ? void 0 : _props$theme3.breakPoints.medium}px)`]: {
|
|
56
|
+
color: (_props$theme4 = props.theme) === null || _props$theme4 === void 0 ? void 0 : _props$theme4.palette.white
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
}, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi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knLFxuICAgIH0sXG4gICAgW2BAbWVkaWEgc2NyZWVuIGFuZCAobWluLXdpZHRoOiAke3Byb3BzLnRoZW1lPy5icmVha1BvaW50cy5tZWRpdW19cHgpYF06IHtcbiAgICAgICc6aG92ZXI6YWZ0ZXInOiB7XG4gICAgICAgIGNvbnRlbnQ6IFwiJydcIixcbiAgICAgIH0sXG4gICAgfSxcbiAgfSxcbiAgJyYgLk11aUlucHV0QmFzZS1pbnB1dCc6IHtcbiAgICBbYEBtZWRpYSBzY3JlZW4gYW5kIChtaW4td2lkdGg6ICR7cHJvcHMudGhlbWU/LmJyZWFrUG9pbnRzLm1lZGl1bX1weClgXToge1xuICAgICAgY29sb3I6IHByb3BzLnRoZW1lPy5wYWxldHRlLndoaXRlLFxuICAgIH0sXG4gIH0sXG59KSk7XG4iXX0= */");
|
|
61
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _Search = _interopRequireDefault(require("@mui/icons-material/Search"));
|
|
8
|
+
var _debounce = _interopRequireDefault(require("lodash/debounce"));
|
|
9
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
+
var _reactI18next = require("react-i18next");
|
|
11
|
+
var _reactRedux = require("react-redux");
|
|
12
|
+
var _reactRouter = require("react-router");
|
|
13
|
+
var _ = require("../../");
|
|
14
|
+
var _AutoComplete = _interopRequireDefault(require("./AutoComplete"));
|
|
15
|
+
var _SearchItem = _interopRequireDefault(require("./SearchItem"));
|
|
16
|
+
var _styles = require("./styles");
|
|
17
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
18
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
19
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
20
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } /* eslint-disable verdaccio/jsx-spread */
|
|
21
|
+
const CONSTANTS = {
|
|
22
|
+
API_DELAY: 300,
|
|
23
|
+
ABORT_ERROR: 'AbortError'
|
|
24
|
+
};
|
|
25
|
+
const Search = ({
|
|
26
|
+
history
|
|
27
|
+
}) => {
|
|
28
|
+
const {
|
|
29
|
+
t
|
|
30
|
+
} = (0, _reactI18next.useTranslation)();
|
|
31
|
+
const {
|
|
32
|
+
configOptions: {
|
|
33
|
+
flags
|
|
34
|
+
}
|
|
35
|
+
} = (0, _.useConfig)();
|
|
36
|
+
const searchRemote = (flags === null || flags === void 0 ? void 0 : flags.searchRemote) || false;
|
|
37
|
+
const {
|
|
38
|
+
suggestions
|
|
39
|
+
} = (0, _reactRedux.useSelector)(state => state.search);
|
|
40
|
+
const isLoading = (0, _reactRedux.useSelector)(state => {
|
|
41
|
+
var _state$loading;
|
|
42
|
+
return state === null || state === void 0 ? void 0 : (_state$loading = state.loading) === null || _state$loading === void 0 ? void 0 : _state$loading.models.search;
|
|
43
|
+
});
|
|
44
|
+
const dispatch = (0, _reactRedux.useDispatch)();
|
|
45
|
+
/**
|
|
46
|
+
* Cancel all the requests which are in pending state.
|
|
47
|
+
*/
|
|
48
|
+
const cancelAllSearchRequests = (0, _react.useCallback)(() => {
|
|
49
|
+
dispatch.search.clearRequestQueue();
|
|
50
|
+
dispatch.search.saveSearch({
|
|
51
|
+
suggestions: []
|
|
52
|
+
});
|
|
53
|
+
}, [dispatch]);
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* As user focuses out from input, we cancel all the request from requestList
|
|
57
|
+
* and set the API state parameters to default boolean values.
|
|
58
|
+
*/
|
|
59
|
+
const handleOnBlur = (0, _react.useCallback)(event => {
|
|
60
|
+
// stops event bubbling
|
|
61
|
+
event.stopPropagation();
|
|
62
|
+
cancelAllSearchRequests();
|
|
63
|
+
}, [cancelAllSearchRequests]);
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* When an user select any package by clicking or pressing return key.
|
|
67
|
+
*/
|
|
68
|
+
const handleClickSearch = (0, _react.useCallback)((event, value, reason) => {
|
|
69
|
+
// stops event bubbling
|
|
70
|
+
event.stopPropagation();
|
|
71
|
+
switch (reason) {
|
|
72
|
+
case 'selectOption':
|
|
73
|
+
if (searchRemote) {
|
|
74
|
+
// TODO: check this part
|
|
75
|
+
// @ts-ignore
|
|
76
|
+
history.push(`/-/web/detail/${value.package.name}`);
|
|
77
|
+
} else {
|
|
78
|
+
history.push(`/-/web/detail/${value.name}`);
|
|
79
|
+
}
|
|
80
|
+
break;
|
|
81
|
+
}
|
|
82
|
+
}, [history, searchRemote]);
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Fetch packages from API.
|
|
86
|
+
* For AbortController see: https://developer.mozilla.org/en-US/docs/Web/API/AbortController
|
|
87
|
+
*/
|
|
88
|
+
const handleFetchPackages = (0, _react.useCallback)(({
|
|
89
|
+
value
|
|
90
|
+
}) => {
|
|
91
|
+
if ((value === null || value === void 0 ? void 0 : value.trim()) !== '') {
|
|
92
|
+
dispatch.search.clearRequestQueue();
|
|
93
|
+
dispatch.search.getSuggestions({
|
|
94
|
+
value
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
}, [dispatch]);
|
|
98
|
+
const renderInput = params => {
|
|
99
|
+
return /*#__PURE__*/_react.default.createElement(_styles.StyledTextField, _extends({}, params, {
|
|
100
|
+
InputProps: {
|
|
101
|
+
...params.InputProps,
|
|
102
|
+
startAdornment: /*#__PURE__*/_react.default.createElement(_styles.StyledInputAdornment, {
|
|
103
|
+
position: "start"
|
|
104
|
+
}, /*#__PURE__*/_react.default.createElement(_Search.default, null))
|
|
105
|
+
},
|
|
106
|
+
label: "",
|
|
107
|
+
placeholder: t('search.packages'),
|
|
108
|
+
variant: "standard"
|
|
109
|
+
}));
|
|
110
|
+
};
|
|
111
|
+
const getOptionLabel = () => {
|
|
112
|
+
if (searchRemote) {
|
|
113
|
+
return option => {
|
|
114
|
+
var _option$package$name, _option$package;
|
|
115
|
+
return (_option$package$name = option === null || option === void 0 ? void 0 : (_option$package = option.package) === null || _option$package === void 0 ? void 0 : _option$package.name) !== null && _option$package$name !== void 0 ? _option$package$name : '';
|
|
116
|
+
};
|
|
117
|
+
} else {
|
|
118
|
+
return option => {
|
|
119
|
+
return option === null || option === void 0 ? void 0 : option.name;
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
};
|
|
123
|
+
const renderOption = (props, option) => {
|
|
124
|
+
if (searchRemote) {
|
|
125
|
+
const item = option.package;
|
|
126
|
+
const isPrivate = option === null || option === void 0 ? void 0 : option.verdaccioPrivate;
|
|
127
|
+
const isCached = option === null || option === void 0 ? void 0 : option.verdaccioPkgCached;
|
|
128
|
+
const isRemote = !isCached && !isPrivate;
|
|
129
|
+
return /*#__PURE__*/_react.default.createElement(_SearchItem.default, _extends({}, props, {
|
|
130
|
+
description: item === null || item === void 0 ? void 0 : item.description,
|
|
131
|
+
isCached: isCached,
|
|
132
|
+
isPrivate: isPrivate,
|
|
133
|
+
isRemote: isRemote,
|
|
134
|
+
name: item === null || item === void 0 ? void 0 : item.name,
|
|
135
|
+
version: item === null || item === void 0 ? void 0 : item.version
|
|
136
|
+
}));
|
|
137
|
+
} else {
|
|
138
|
+
return /*#__PURE__*/_react.default.createElement(_SearchItem.default, _extends({}, props, {
|
|
139
|
+
description: option === null || option === void 0 ? void 0 : option.description,
|
|
140
|
+
name: option === null || option === void 0 ? void 0 : option.name,
|
|
141
|
+
version: option === null || option === void 0 ? void 0 : option.version
|
|
142
|
+
}));
|
|
143
|
+
}
|
|
144
|
+
};
|
|
145
|
+
return /*#__PURE__*/_react.default.createElement(_AutoComplete.default, {
|
|
146
|
+
getOptionLabel: getOptionLabel(),
|
|
147
|
+
onCleanSuggestions: handleOnBlur,
|
|
148
|
+
onSelectItem: handleClickSearch,
|
|
149
|
+
onSuggestionsFetch: (0, _debounce.default)(handleFetchPackages, CONSTANTS.API_DELAY),
|
|
150
|
+
placeholder: t('search.packages'),
|
|
151
|
+
renderInput: renderInput,
|
|
152
|
+
renderOption: renderOption,
|
|
153
|
+
suggestions: suggestions,
|
|
154
|
+
suggestionsLoading: isLoading
|
|
155
|
+
});
|
|
156
|
+
};
|
|
157
|
+
var _default = exports.default = (0, _reactRouter.withRouter)(Search);
|
|
158
|
+
//# sourceMappingURL=Search.js.map
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.Description = void 0;
|
|
7
|
+
var _base = _interopRequireDefault(require("@emotion/styled/base"));
|
|
8
|
+
var _Cached = _interopRequireDefault(require("@mui/icons-material/Cached"));
|
|
9
|
+
var _Https = _interopRequireDefault(require("@mui/icons-material/Https"));
|
|
10
|
+
var _SyncAlt = _interopRequireDefault(require("@mui/icons-material/SyncAlt"));
|
|
11
|
+
var _Chip = _interopRequireDefault(require("@mui/material/Chip"));
|
|
12
|
+
var _Stack = _interopRequireDefault(require("@mui/material/Stack"));
|
|
13
|
+
var _react = _interopRequireDefault(require("react"));
|
|
14
|
+
var _reactI18next = require("react-i18next");
|
|
15
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
17
|
+
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)."; } /* eslint-disable verdaccio/jsx-spread */
|
|
18
|
+
const Wrapper = /*#__PURE__*/(0, _base.default)("div", process.env.NODE_ENV === "production" ? {
|
|
19
|
+
target: "eklopjo4"
|
|
20
|
+
} : {
|
|
21
|
+
target: "eklopjo4",
|
|
22
|
+
label: "Wrapper"
|
|
23
|
+
})(process.env.NODE_ENV === "production" ? {
|
|
24
|
+
name: "1x17g94",
|
|
25
|
+
styles: "display:flex;align-items:center;width:100%"
|
|
26
|
+
} : {
|
|
27
|
+
name: "1x17g94",
|
|
28
|
+
styles: "display:flex;align-items:center;width:100%",
|
|
29
|
+
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL1NlYXJjaC9TZWFyY2hJdGVtLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFvQmdCIiwiZmlsZSI6Ii4uLy4uLy4uL3NyYy9jb21wb25lbnRzL1NlYXJjaC9TZWFyY2hJdGVtLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qIGVzbGludC1kaXNhYmxlIHZlcmRhY2Npby9qc3gtc3ByZWFkICovXG5pbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5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GNvbnN0IGhhbmRsZURlbGV0ZSA9ICgpID0+IHtcbiAgICAvLyBubyBhY3Rpb24gYXNzaWduZWQgYnkgZGVmYXVsdFxuICB9O1xuICByZXR1cm4gKFxuICAgIDxsaSB7Li4ucHJvcHN9IHN0eWxlPXt7IGZsZXhEaXJlY3Rpb246ICdjb2x1bW4nIH19PlxuICAgICAgPFdyYXBwZXI+XG4gICAgICAgIDxOYW1lR3JvdXA+XG4gICAgICAgICAgPE5hbWU+e25hbWV9PC9OYW1lPlxuICAgICAgICAgIHtkZXNjcmlwdGlvbiAmJiA8RGVzY3JpcHRpb24+e2Rlc2NyaXB0aW9ufTwvRGVzY3JpcHRpb24+fVxuICAgICAgICA8L05hbWVHcm91cD5cbiAgICAgICAge3ZlcnNpb24gJiYgPFZlcnNpb24+e3ZlcnNpb259PC9WZXJzaW9uPn1cbiAgICAgIDwvV3JhcHBlcj5cbiAgICAgIDxXcmFwcGVyPlxuICAgICAgICA8U3RhY2sgZGlyZWN0aW9uPVwicm93XCIgc3BhY2luZz17MX0+XG4gICAgICAgICAge2lzUHJpdmF0ZSAmJiAoXG4gICAgICAgICAgICA8Q2hpcFxuICAgICAgICAgICAgICBjb2xvcj1cInByaW1hcnlcIlxuICAgICAgICAgICAgICBkZWxldGVJY29uPXs8SHR0cHNJY29uIC8+fVxuICAgICAgICAgICAgICBsYWJlbD17dCgnc2VhcmNoLmlzUHJpdmF0ZScpfVxuICAgICAgICAgICAgICBvbkRlbGV0ZT17aGFuZGxlRGVsZXRlfVxuICAgICAgICAgICAgICBzaXplPVwic21hbGxcIlxuICAgICAgICAgICAgLz5cbiAgICAgICAgICApfVxuICAgICAgICAgIHtpc1JlbW90ZSAmJiAhaXNQcml2YXRlICYmIChcbiAgICAgICAgICAgIDxDaGlwXG4gICAgICAgICAgICAgIGRlbGV0ZUljb249ezxTeW5jQWx0IC8+fVxuICAgICAgICAgICAgICBsYWJlbD17dCgnc2VhcmNoLmlzUmVtb3RlJyl9XG4gICAgICAgICAgICAgIG9uRGVsZXRlPXtoYW5kbGVEZWxldGV9XG4gICAgICAgICAgICAgIHNpemU9XCJzbWFsbFwiXG4gICAgICAgICAgICAgIHZhcmlhbnQ9XCJvdXRsaW5lZFwiXG4gICAgICAgICAgICAvPlxuICAgICAgICAgICl9XG4gICAgICAgICAge2lzQ2FjaGVkICYmIChcbiAgICAgICAgICAgIDxDaGlwXG4gICAgICAgICAgICAgIGRlbGV0ZUljb249ezxDYWNoZWQgLz59XG4gICAgICAgICAgICAgIGxhYmVsPXt0KCdzZWFyY2guaXNDYWNoZWQnKX1cbiAgICAgICAgICAgICAgb25EZWxldGU9e2hhbmRsZURlbGV0ZX1cbiAgICAgICAgICAgICAgc2l6ZT1cInNtYWxsXCJcbiAgICAgICAgICAgICAgdmFyaWFudD1cIm91dGxpbmVkXCJcbiAgICAgICAgICAgIC8+XG4gICAgICAgICAgKX1cbiAgICAgICAgPC9TdGFjaz5cbiAgICAgIDwvV3JhcHBlcj5cbiAgICA8L2xpPlxuICApO1xufTtcblxuZXhwb3J0IGRlZmF1bHQgU2VhcmNoSXRlbTtcbiJdfQ== */",
|
|
30
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
31
|
+
});
|
|
32
|
+
const Description = exports.Description = /*#__PURE__*/(0, _base.default)('div', process.env.NODE_ENV === "production" ? {
|
|
33
|
+
target: "eklopjo3"
|
|
34
|
+
} : {
|
|
35
|
+
target: "eklopjo3",
|
|
36
|
+
label: "Description"
|
|
37
|
+
})(({
|
|
38
|
+
theme
|
|
39
|
+
}) => {
|
|
40
|
+
var _theme$palette;
|
|
41
|
+
return {
|
|
42
|
+
display: 'none',
|
|
43
|
+
color: theme === null || theme === void 0 ? void 0 : (_theme$palette = theme.palette) === null || _theme$palette === void 0 ? void 0 : _theme$palette.greyLight2,
|
|
44
|
+
lineHeight: '1.5rem',
|
|
45
|
+
[`@media (min-width: ${theme === null || theme === void 0 ? void 0 : theme.breakPoints.large}px)`]: {
|
|
46
|
+
display: 'block',
|
|
47
|
+
whiteSpace: 'nowrap',
|
|
48
|
+
textOverflow: 'ellipsis',
|
|
49
|
+
width: '200px',
|
|
50
|
+
alignItems: 'center',
|
|
51
|
+
overflow: 'hidden',
|
|
52
|
+
paddingLeft: theme.spacing(),
|
|
53
|
+
fontSize: theme === null || theme === void 0 ? void 0 : theme.fontSize.ssm
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
}, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL1NlYXJjaC9TZWFyY2hJdGVtLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUEwQjJCIiwiZmlsZSI6Ii4uLy4uLy4uL3NyYy9jb21wb25lbnRzL1NlYXJjaC9TZWFyY2hJdGVtLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qIGVzbGludC1kaXNhYmxlIHZlcmRhY2Npby9qc3gtc3ByZWFkICovXG5pbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5pbXBvcnQgQ2FjaGVkIGZyb20gJ0BtdWkvaWNvbnMtbWF0ZXJpYWwvQ2FjaGVkJztcbmltcG9ydCBIdHRwc0ljb24gZnJvbSAnQG11aS9pY29ucy1tYXRlcmlhbC9IdHRwcyc7XG5pbXBvcnQgU3luY0FsdCBmcm9tICdAbXVpL2ljb25zLW1hdGVyaWFsL1N5bmNBbHQnO1xuaW1wb3J0IHsgVGhlbWUgfSBmcm9tICdAbXVpL21hdGVyaWFsJztcbmltcG9ydCBDaGlwIGZyb20gJ0BtdWkvbWF0ZXJpYWwvQ2hpcCc7XG5pbXBvcnQgU3RhY2sgZnJvbSAnQG11aS9tYXRlcmlhbC9TdGFjayc7XG5pbXBvcnQgUmVhY3QgZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsgdXNlVHJhb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lcnNpb259PC9WZXJzaW9uPn1cbiAgICAgIDwvV3JhcHBlcj5cbiAgICAgIDxXcmFwcGVyPlxuICAgICAgICA8U3RhY2sgZGlyZWN0aW9uPVwicm93XCIgc3BhY2luZz17MX0+XG4gICAgICAgICAge2lzUHJpdmF0ZSAmJiAoXG4gICAgICAgICAgICA8Q2hpcFxuICAgICAgICAgICAgICBjb2xvcj1cInByaW1hcnlcIlxuICAgICAgICAgICAgICBkZWxldGVJY29uPXs8SHR0cHNJY29uIC8+fVxuICAgICAgICAgICAgICBsYWJlbD17dCgnc2VhcmNoLmlzUHJpdmF0ZScpfVxuICAgICAgICAgICAgICBvbkRlbGV0ZT17aGFuZGxlRGVsZXRlfVxuICAgICAgICAgICAgICBzaXplPVwic21hbGxcIlxuICAgICAgICAgICAgLz5cbiAgICAgICAgICApfVxuICAgICAgICAgIHtpc1JlbW90ZSAmJiAhaXNQcml2YXRlICYmIChcbiAgICAgICAgICAgIDxDaGlwXG4gICAgICAgICAgICAgIGRlbGV0ZUljb249ezxTeW5jQWx0IC8+fVxuICAgICAgICAgICAgICBsYWJlbD17dCgnc2VhcmNoLmlzUmVtb3RlJyl9XG4gICAgICAgICAgICAgIG9uRGVsZXRlPXtoYW5kbGVEZWxldGV9XG4gICAgICAgICAgICAgIHNpemU9XCJzbWFsbFwiXG4gICAgICAgICAgICAgIHZhcmlhbnQ9XCJvdXRsaW5lZFwiXG4gICAgICAgICAgICAvPlxuICAgICAgICAgICl9XG4gICAgICAgICAge2lzQ2FjaGVkICYmIChcbiAgICAgICAgICAgIDxDaGlwXG4gICAgICAgICAgICAgIGRlbGV0ZUljb249ezxDYWNoZWQgLz59XG4gICAgICAgICAgICAgIGxhYmVsPXt0KCdzZWFyY2guaXNDYWNoZWQnKX1cbiAgICAgICAgICAgICAgb25EZWxldGU9e2hhbmRsZURlbGV0ZX1cbiAgICAgICAgICAgICAgc2l6ZT1cInNtYWxsXCJcbiAgICAgICAgICAgICAgdmFyaWFudD1cIm91dGxpbmVkXCJcbiAgICAgICAgICAgIC8+XG4gICAgICAgICAgKX1cbiAgICAgICAgPC9TdGFjaz5cbiAgICAgIDwvV3JhcHBlcj5cbiAgICA8L2xpPlxuICApO1xufTtcblxuZXhwb3J0IGRlZmF1bHQgU2VhcmNoSXRlbTtcbiJdfQ== */");
|
|
57
|
+
const NameGroup = /*#__PURE__*/(0, _base.default)("span", process.env.NODE_ENV === "production" ? {
|
|
58
|
+
target: "eklopjo2"
|
|
59
|
+
} : {
|
|
60
|
+
target: "eklopjo2",
|
|
61
|
+
label: "NameGroup"
|
|
62
|
+
})(process.env.NODE_ENV === "production" ? {
|
|
63
|
+
name: "36bnqj",
|
|
64
|
+
styles: "display:flex;flex:1"
|
|
65
|
+
} : {
|
|
66
|
+
name: "36bnqj",
|
|
67
|
+
styles: "display:flex;flex:1",
|
|
68
|
+
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL1NlYXJjaC9TZWFyY2hJdGVtLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUEwQ2tCIiwiZmlsZSI6Ii4uLy4uLy4uL3NyYy9jb21wb25lbnRzL1NlYXJjaC9TZWFyY2hJdGVtLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qIGVzbGludC1kaXNhYmxlIHZlcmRhY2Npby9qc3gtc3ByZWFkICovXG5pbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5pbXBvcnQgQ2FjaGVkIGZyb20gJ0BtdWkvaWNvbnMtbWF0ZXJpYWwvQ2FjaGVkJztcbmltcG9ydCBIdHRwc0ljb24gZnJvbSAnQG11aS9pY29ucy1tYXRlcmlhbC9IdHRwcyc7XG5pbXBvcnQgU3luY0FsdCBmcm9tICdAbXVpL2ljb25zLW1hdGVyaWFsL1N5bmNBbHQnO1xuaW1wb3J0IHsgVGhlb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R3JvdXA+XG4gICAgICAgICAgPE5hbWU+e25hbWV9PC9OYW1lPlxuICAgICAgICAgIHtkZXNjcmlwdGlvbiAmJiA8RGVzY3JpcHRpb24+e2Rlc2NyaXB0aW9ufTwvRGVzY3JpcHRpb24+fVxuICAgICAgICA8L05hbWVHcm91cD5cbiAgICAgICAge3ZlcnNpb24gJiYgPFZlcnNpb24+e3ZlcnNpb259PC9WZXJzaW9uPn1cbiAgICAgIDwvV3JhcHBlcj5cbiAgICAgIDxXcmFwcGVyPlxuICAgICAgICA8U3RhY2sgZGlyZWN0aW9uPVwicm93XCIgc3BhY2luZz17MX0+XG4gICAgICAgICAge2lzUHJpdmF0ZSAmJiAoXG4gICAgICAgICAgICA8Q2hpcFxuICAgICAgICAgICAgICBjb2xvcj1cInByaW1hcnlcIlxuICAgICAgICAgICAgICBkZWxldGVJY29uPXs8SHR0cHNJY29uIC8+fVxuICAgICAgICAgICAgICBsYWJlbD17dCgnc2VhcmNoLmlzUHJpdmF0ZScpfVxuICAgICAgICAgICAgICBvbkRlbGV0ZT17aGFuZGxlRGVsZXRlfVxuICAgICAgICAgICAgICBzaXplPVwic21hbGxcIlxuICAgICAgICAgICAgLz5cbiAgICAgICAgICApfVxuICAgICAgICAgIHtpc1JlbW90ZSAmJiAhaXNQcml2YXRlICYmIChcbiAgICAgICAgICAgIDxDaGlwXG4gICAgICAgICAgICAgIGRlbGV0ZUljb249ezxTeW5jQWx0IC8+fVxuICAgICAgICAgICAgICBsYWJlbD17dCgnc2VhcmNoLmlzUmVtb3RlJyl9XG4gICAgICAgICAgICAgIG9uRGVsZXRlPXtoYW5kbGVEZWxldGV9XG4gICAgICAgICAgICAgIHNpemU9XCJzbWFsbFwiXG4gICAgICAgICAgICAgIHZhcmlhbnQ9XCJvdXRsaW5lZFwiXG4gICAgICAgICAgICAvPlxuICAgICAgICAgICl9XG4gICAgICAgICAge2lzQ2FjaGVkICYmIChcbiAgICAgICAgICAgIDxDaGlwXG4gICAgICAgICAgICAgIGRlbGV0ZUljb249ezxDYWNoZWQgLz59XG4gICAgICAgICAgICAgIGxhYmVsPXt0KCdzZWFyY2guaXNDYWNoZWQnKX1cbiAgICAgICAgICAgICAgb25EZWxldGU9e2hhbmRsZURlbGV0ZX1cbiAgICAgICAgICAgICAgc2l6ZT1cInNtYWxsXCJcbiAgICAgICAgICAgICAgdmFyaWFudD1cIm91dGxpbmVkXCJcbiAgICAgICAgICAgIC8+XG4gICAgICAgICAgKX1cbiAgICAgICAgPC9TdGFjaz5cbiAgICAgIDwvV3JhcHBlcj5cbiAgICA8L2xpPlxuICApO1xufTtcblxuZXhwb3J0IGRlZmF1bHQgU2VhcmNoSXRlbTtcbiJdfQ== */",
|
|
69
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
70
|
+
});
|
|
71
|
+
const Name = /*#__PURE__*/(0, _base.default)('span', process.env.NODE_ENV === "production" ? {
|
|
72
|
+
target: "eklopjo1"
|
|
73
|
+
} : {
|
|
74
|
+
target: "eklopjo1",
|
|
75
|
+
label: "Name"
|
|
76
|
+
})(({
|
|
77
|
+
theme
|
|
78
|
+
}) => ({
|
|
79
|
+
fontWeight: '700',
|
|
80
|
+
fontSize: theme === null || theme === void 0 ? void 0 : theme.fontSize.sm
|
|
81
|
+
}), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL1NlYXJjaC9TZWFyY2hJdGVtLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUErQ2EiLCJmaWxlIjoiLi4vLi4vLi4vc3JjL2NvbXBvbmVudHMvU2VhcmNoL1NlYXJjaEl0ZW0udHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyogZXNsaW50LWRpc2FibGUgdmVyZGFjY2lvL2pzeC1zcHJlYWQgKi9cbmltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb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tcbiAgY29uc3QgaGFuZGxlRGVsZXRlID0gKCkgPT4ge1xuICAgIC8vIG5vIGFjdGlvbiBhc3NpZ25lZCBieSBkZWZhdWx0XG4gIH07XG4gIHJldHVybiAoXG4gICAgPGxpIHsuLi5wcm9wc30gc3R5bGU9e3sgZmxleERpcmVjdGlvbjogJ2NvbHVtbicgfX0+XG4gICAgICA8V3JhcHBlcj5cbiAgICAgICAgPE5hbWVHcm91cD5cbiAgICAgICAgICA8TmFtZT57bmFtZX08L05hbWU+XG4gICAgICAgICAge2Rlc2NyaXB0aW9uICYmIDxEZXNjcmlwdGlvbj57ZGVzY3JpcHRpb259PC9EZXNjcmlwdGlvbj59XG4gICAgICAgIDwvTmFtZUdyb3VwPlxuICAgICAgICB7dmVyc2lvbiAmJiA8VmVyc2lvbj57dmVyc2lvbn08L1ZlcnNpb24+fVxuICAgICAgPC9XcmFwcGVyPlxuICAgICAgPFdyYXBwZXI+XG4gICAgICAgIDxTdGFjayBkaXJlY3Rpb249XCJyb3dcIiBzcGFjaW5nPXsxfT5cbiAgICAgICAgICB7aXNQcml2YXRlICYmIChcbiAgICAgICAgICAgIDxDaGlwXG4gICAgICAgICAgICAgIGNvbG9yPVwicHJpbWFyeVwiXG4gICAgICAgICAgICAgIGRlbGV0ZUljb249ezxIdHRwc0ljb24gLz59XG4gICAgICAgICAgICAgIGxhYmVsPXt0KCdzZWFyY2guaXNQcml2YXRlJyl9XG4gICAgICAgICAgICAgIG9uRGVsZXRlPXtoYW5kbGVEZWxldGV9XG4gICAgICAgICAgICAgIHNpemU9XCJzbWFsbFwiXG4gICAgICAgICAgICAvPlxuICAgICAgICAgICl9XG4gICAgICAgICAge2lzUmVtb3RlICYmICFpc1ByaXZhdGUgJiYgKFxuICAgICAgICAgICAgPENoaXBcbiAgICAgICAgICAgICAgZGVsZXRlSWNvbj17PFN5bmNBbHQgLz59XG4gICAgICAgICAgICAgIGxhYmVsPXt0KCdzZWFyY2guaXNSZW1vdGUnKX1cbiAgICAgICAgICAgICAgb25EZWxldGU9e2hhbmRsZURlbGV0ZX1cbiAgICAgICAgICAgICAgc2l6ZT1cInNtYWxsXCJcbiAgICAgICAgICAgICAgdmFyaWFudD1cIm91dGxpbmVkXCJcbiAgICAgICAgICAgIC8+XG4gICAgICAgICAgKX1cbiAgICAgICAgICB7aXNDYWNoZWQgJiYgKFxuICAgICAgICAgICAgPENoaXBcbiAgICAgICAgICAgICAgZGVsZXRlSWNvbj17PENhY2hlZCAvPn1cbiAgICAgICAgICAgICAgbGFiZWw9e3QoJ3NlYXJjaC5pc0NhY2hlZCcpfVxuICAgICAgICAgICAgICBvbkRlbGV0ZT17aGFuZGxlRGVsZXRlfVxuICAgICAgICAgICAgICBzaXplPVwic21hbGxcIlxuICAgICAgICAgICAgICB2YXJpYW50PVwib3V0bGluZWRcIlxuICAgICAgICAgICAgLz5cbiAgICAgICAgICApfVxuICAgICAgICA8L1N0YWNrPlxuICAgICAgPC9XcmFwcGVyPlxuICAgIDwvbGk+XG4gICk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBTZWFyY2hJdGVtO1xuIl19 */");
|
|
82
|
+
const Version = /*#__PURE__*/(0, _base.default)('span', process.env.NODE_ENV === "production" ? {
|
|
83
|
+
target: "eklopjo0"
|
|
84
|
+
} : {
|
|
85
|
+
target: "eklopjo0",
|
|
86
|
+
label: "Version"
|
|
87
|
+
})(({
|
|
88
|
+
theme
|
|
89
|
+
}) => ({
|
|
90
|
+
fontSize: theme === null || theme === void 0 ? void 0 : theme.fontSize.ssm
|
|
91
|
+
}), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL1NlYXJjaC9TZWFyY2hJdGVtLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFvRGdCIiwiZmlsZSI6Ii4uLy4uLy4uL3NyYy9jb21wb25lbn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W90ZSAmJiAhaXNQcml2YXRlICYmIChcbiAgICAgICAgICAgIDxDaGlwXG4gICAgICAgICAgICAgIGRlbGV0ZUljb249ezxTeW5jQWx0IC8+fVxuICAgICAgICAgICAgICBsYWJlbD17dCgnc2VhcmNoLmlzUmVtb3RlJyl9XG4gICAgICAgICAgICAgIG9uRGVsZXRlPXtoYW5kbGVEZWxldGV9XG4gICAgICAgICAgICAgIHNpemU9XCJzbWFsbFwiXG4gICAgICAgICAgICAgIHZhcmlhbnQ9XCJvdXRsaW5lZFwiXG4gICAgICAgICAgICAvPlxuICAgICAgICAgICl9XG4gICAgICAgICAge2lzQ2FjaGVkICYmIChcbiAgICAgICAgICAgIDxDaGlwXG4gICAgICAgICAgICAgIGRlbGV0ZUljb249ezxDYWNoZWQgLz59XG4gICAgICAgICAgICAgIGxhYmVsPXt0KCdzZWFyY2guaXNDYWNoZWQnKX1cbiAgICAgICAgICAgICAgb25EZWxldGU9e2hhbmRsZURlbGV0ZX1cbiAgICAgICAgICAgICAgc2l6ZT1cInNtYWxsXCJcbiAgICAgICAgICAgICAgdmFyaWFudD1cIm91dGxpbmVkXCJcbiAgICAgICAgICAgIC8+XG4gICAgICAgICAgKX1cbiAgICAgICAgPC9TdGFjaz5cbiAgICAgIDwvV3JhcHBlcj5cbiAgICA8L2xpPlxuICApO1xufTtcblxuZXhwb3J0IGRlZmF1bHQgU2VhcmNoSXRlbTtcbiJdfQ== */");
|
|
92
|
+
const SearchItem = ({
|
|
93
|
+
name,
|
|
94
|
+
description,
|
|
95
|
+
isPrivate = false,
|
|
96
|
+
isRemote = false,
|
|
97
|
+
isCached = false,
|
|
98
|
+
version,
|
|
99
|
+
...props
|
|
100
|
+
}) => {
|
|
101
|
+
const {
|
|
102
|
+
t
|
|
103
|
+
} = (0, _reactI18next.useTranslation)();
|
|
104
|
+
const handleDelete = () => {
|
|
105
|
+
// no action assigned by default
|
|
106
|
+
};
|
|
107
|
+
return /*#__PURE__*/_react.default.createElement("li", _extends({}, props, {
|
|
108
|
+
style: {
|
|
109
|
+
flexDirection: 'column'
|
|
110
|
+
}
|
|
111
|
+
}), /*#__PURE__*/_react.default.createElement(Wrapper, null, /*#__PURE__*/_react.default.createElement(NameGroup, null, /*#__PURE__*/_react.default.createElement(Name, null, name), description && /*#__PURE__*/_react.default.createElement(Description, null, description)), version && /*#__PURE__*/_react.default.createElement(Version, null, version)), /*#__PURE__*/_react.default.createElement(Wrapper, null, /*#__PURE__*/_react.default.createElement(_Stack.default, {
|
|
112
|
+
direction: "row",
|
|
113
|
+
spacing: 1
|
|
114
|
+
}, isPrivate && /*#__PURE__*/_react.default.createElement(_Chip.default, {
|
|
115
|
+
color: "primary",
|
|
116
|
+
deleteIcon: /*#__PURE__*/_react.default.createElement(_Https.default, null),
|
|
117
|
+
label: t('search.isPrivate'),
|
|
118
|
+
onDelete: handleDelete,
|
|
119
|
+
size: "small"
|
|
120
|
+
}), isRemote && !isPrivate && /*#__PURE__*/_react.default.createElement(_Chip.default, {
|
|
121
|
+
deleteIcon: /*#__PURE__*/_react.default.createElement(_SyncAlt.default, null),
|
|
122
|
+
label: t('search.isRemote'),
|
|
123
|
+
onDelete: handleDelete,
|
|
124
|
+
size: "small",
|
|
125
|
+
variant: "outlined"
|
|
126
|
+
}), isCached && /*#__PURE__*/_react.default.createElement(_Chip.default, {
|
|
127
|
+
deleteIcon: /*#__PURE__*/_react.default.createElement(_Cached.default, null),
|
|
128
|
+
label: t('search.isCached'),
|
|
129
|
+
onDelete: handleDelete,
|
|
130
|
+
size: "small",
|
|
131
|
+
variant: "outlined"
|
|
132
|
+
}))));
|
|
133
|
+
};
|
|
134
|
+
var _default = exports.default = SearchItem;
|
|
135
|
+
//# sourceMappingURL=SearchItem.js.map
|
|
@@ -0,0 +1,14 @@
|
|
|
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 _Search.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _Search = _interopRequireDefault(require("./Search"));
|
|
13
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.StyledTextField = exports.StyledInputAdornment = void 0;
|
|
7
|
+
var _base = _interopRequireDefault(require("@emotion/styled/base"));
|
|
8
|
+
var _InputAdornment = _interopRequireDefault(require("@mui/material/InputAdornment"));
|
|
9
|
+
var _ = require("../../");
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
+
const StyledTextField = exports.StyledTextField = /*#__PURE__*/(0, _base.default)(_.TextField, process.env.NODE_ENV === "production" ? {
|
|
12
|
+
target: "e8lao7a1"
|
|
13
|
+
} : {
|
|
14
|
+
target: "e8lao7a1",
|
|
15
|
+
label: "StyledTextField"
|
|
16
|
+
})(props => {
|
|
17
|
+
var _props$theme, _props$theme2, _props$theme3, _props$theme4;
|
|
18
|
+
return {
|
|
19
|
+
'& .MuiInputBase-root': {
|
|
20
|
+
':before': {
|
|
21
|
+
content: "''",
|
|
22
|
+
border: 'none'
|
|
23
|
+
},
|
|
24
|
+
':after': {
|
|
25
|
+
borderColor: (_props$theme = props.theme) === null || _props$theme === void 0 ? void 0 : _props$theme.palette.white
|
|
26
|
+
},
|
|
27
|
+
':hover:before': {
|
|
28
|
+
content: 'none'
|
|
29
|
+
},
|
|
30
|
+
':hover:after': {
|
|
31
|
+
content: 'none',
|
|
32
|
+
transform: 'scaleX(1)'
|
|
33
|
+
},
|
|
34
|
+
[`@media screen and (min-width: ${(_props$theme2 = props.theme) === null || _props$theme2 === void 0 ? void 0 : _props$theme2.breakPoints.medium}px)`]: {
|
|
35
|
+
':hover:after': {
|
|
36
|
+
content: "''"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
'& .MuiInputBase-input': {
|
|
41
|
+
[`@media screen and (min-width: ${(_props$theme3 = props.theme) === null || _props$theme3 === void 0 ? void 0 : _props$theme3.breakPoints.medium}px)`]: {
|
|
42
|
+
color: (_props$theme4 = props.theme) === null || _props$theme4 === void 0 ? void 0 : _props$theme4.palette.white
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
}, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL1NlYXJjaC9zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBUytCIiwiZmlsZSI6Ii4uLy4uLy4uL3NyYy9jb21wb25lbnRzL1NlYXJjaC9zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5pbXBvcnQgSW5wdXRBZG9ybm1lbnQgZnJvbSAnQG11aS9tYXRlcmlhbC9JbnB1dEFkb3JubWVudCc7XG5cbmltcG9ydCB7IFRleHRGaWVsZCwgVGhlbWUgfSBmcm9tICcuLi8uLi8nO1xuXG5leHBvcnQgaW50ZXJmYWNlIElucHV0RmllbGRQcm9wcyB7XG4gIGNvbG9yOiBzdHJpbmc7XG59XG5cbmV4cG9ydCBjb25zdCBTdHlsZWRUZXh0RmllbGQgPSBzdHlsZWQoVGV4dEZpZWxkKTx7IHRoZW1lPzogVGhlbWUgfT4oKHByb3BzKSA9PiAoe1xuICAnJiAuTXVpSW5wdXRCYXNlLXJvb3QnOiB7XG4gICAgJzpiZWZvcmUnOiB7XG4gICAgICBjb250ZW50OiBcIicnXCIsXG4gICAgICBib3JkZXI6ICdub25lJyxcbiAgICB9LFxuICAgICc6YWZ0ZXInOiB7XG4gICAgICBib3JkZXJDb2xvcjogcHJvcHMudGhlbWU/LnBhbGV0dGUud2hpdGUsXG4gICAgfSxcbiAgICAnOmhvdmVyOmJlZm9yZSc6IHtcbiAgICAgIGNvbnRlbnQ6ICdub25lJyxcbiAgICB9LFxuICAgICc6aG92ZXI6YWZ0ZXInOiB7XG4gICAgICBjb250ZW50OiAnbm9uZScsXG4gICAgICB0cmFuc2Zvcm06ICdzY2FsZVgoMSknLFxuICAgIH0sXG4gICAgW2BAbWVkaWEgc2NyZWVuIGFuZCAobWluLXdpZHRoOiAke3Byb3BzLnRoZW1lPy5icmVha1BvaW50cy5tZWRpdW19cHgpYF06IHtcbiAgICAgICc6aG92ZXI6YWZ0ZXInOiB7XG4gICAgICAgIGNvbnRlbnQ6IFwiJydcIixcbiAgICAgIH0sXG4gICAgfSxcbiAgfSxcbiAgJyYgLk11aUlucHV0QmFzZS1pbnB1dCc6IHtcbiAgICBbYEBtZWRpYSBzY3JlZW4gYW5kIChtaW4td2lkdGg6ICR7cHJvcHMudGhlbWU/LmJyZWFrUG9pbnRzLm1lZGl1bX1weClgXToge1xuICAgICAgY29sb3I6IHByb3BzLnRoZW1lPy5wYWxldHRlLndoaXRlLFxuICAgIH0sXG4gIH0sXG59KSk7XG5cbmV4cG9ydCBjb25zdCBTdHlsZWRJbnB1dEFkb3JubWVudCA9IHN0eWxlZChJbnB1dEFkb3JubWVudCk8eyB0aGVtZT86IFRoZW1lIH0+KChwcm9wcykgPT4gKHtcbiAgY29sb3I6IHByb3BzLnRoZW1lPy5wYWxldHRlLndoaXRlLFxufSkpO1xuIl19 */");
|
|
47
|
+
const StyledInputAdornment = exports.StyledInputAdornment = /*#__PURE__*/(0, _base.default)(_InputAdornment.default, process.env.NODE_ENV === "production" ? {
|
|
48
|
+
target: "e8lao7a0"
|
|
49
|
+
} : {
|
|
50
|
+
target: "e8lao7a0",
|
|
51
|
+
label: "StyledInputAdornment"
|
|
52
|
+
})(props => {
|
|
53
|
+
var _props$theme5;
|
|
54
|
+
return {
|
|
55
|
+
color: (_props$theme5 = props.theme) === null || _props$theme5 === void 0 ? void 0 : _props$theme5.palette.white
|
|
56
|
+
};
|
|
57
|
+
}, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL1NlYXJjaC9zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBc0NvQyIsImZpbGUiOiIuLi8uLi8uLi9zcmMvY29tcG9uZW50cy9TZWFyY2gvc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuaW1wb3J0IElucHV0QWRvcm5tZW50IGZyb20gJ0BtdWkvbWF0ZXJpYWwvSW5wdXRBZG9ybm1lbnQnO1xuXG5pbXBvcnQgeyBUZXh0RmllbGQsIFRoZW1lIH0gZnJvbSAnLi4vLi4vJztcblxuZXhwb3J0IGludGVyZmFjZSBJbnB1dEZpZWxkUHJvcHMge1xuICBjb2xvcjogc3RyaW5nO1xufVxuXG5leHBvcnQgY29uc3QgU3R5bGVkVGV4dEZpZWxkID0gc3R5bGVkKFRleHRGaWVsZCk8eyB0aGVtZT86IFRoZW1lIH0+KChwcm9wcykgPT4gKHtcbiAgJyYgLk11aUlucHV0QmFzZS1yb290Jzoge1xuICAgICc6YmVmb3JlJzoge1xuICAgICAgY29udGVudDogXCInJ1wiLFxuICAgICAgYm9yZGVyOiAnbm9uZScsXG4gICAgfSxcbiAgICAnOmFmdGVyJzoge1xuICAgICAgYm9yZGVyQ29sb3I6IHByb3BzLnRoZW1lPy5wYWxldHRlLndoaXRlLFxuICAgIH0sXG4gICAgJzpob3ZlcjpiZWZvcmUnOiB7XG4gICAgICBjb250ZW50OiAnbm9uZScsXG4gICAgfSxcbiAgICAnOmhvdmVyOmFmdGVyJzoge1xuICAgICAgY29udGVudDogJ25vbmUnLFxuICAgICAgdHJhbnNmb3JtOiAnc2NhbGVYKDEpJyxcbiAgICB9LFxuICAgIFtgQG1lZGlhIHNjcmVlbiBhbmQgKG1pbi13aWR0aDogJHtwcm9wcy50aGVtZT8uYnJlYWtQb2ludHMubWVkaXVtfXB4KWBdOiB7XG4gICAgICAnOmhvdmVyOmFmdGVyJzoge1xuICAgICAgICBjb250ZW50OiBcIicnXCIsXG4gICAgICB9LFxuICAgIH0sXG4gIH0sXG4gICcmIC5NdWlJbnB1dEJhc2UtaW5wdXQnOiB7XG4gICAgW2BAbWVkaWEgc2NyZWVuIGFuZCAobWluLXdpZHRoOiAke3Byb3BzLnRoZW1lPy5icmVha1BvaW50cy5tZWRpdW19cHgpYF06IHtcbiAgICAgIGNvbG9yOiBwcm9wcy50aGVtZT8ucGFsZXR0ZS53aGl0ZSxcbiAgICB9LFxuICB9LFxufSkpO1xuXG5leHBvcnQgY29uc3QgU3R5bGVkSW5wdXRBZG9ybm1lbnQgPSBzdHlsZWQoSW5wdXRBZG9ybm1lbnQpPHsgdGhlbWU/OiBUaGVtZSB9PigocHJvcHMpID0+ICh7XG4gIGNvbG9yOiBwcm9wcy50aGVtZT8ucGFsZXR0ZS53aGl0ZSxcbn0pKTtcbiJdfQ== */");
|
|
58
|
+
//# sourceMappingURL=styles.js.map
|