@verdaccio/ui-components 2.0.0-alpha.0 → 3.0.0-next-7.3
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 +186 -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 +105 -0
- package/build/components/Dependencies/index.js +14 -0
- package/build/components/Dependencies/styles.js +64 -0
- package/build/components/Dependencies/types.js +6 -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/SideBarTittle/SideBarTittle.js +94 -0
- package/build/components/SideBarTittle/index.js +14 -0
- package/build/components/SideBarTittle/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 +107 -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 +185 -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 +97 -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 +5 -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/index.d.ts +1 -0
- package/build/src/components/Dependencies/styles.d.ts +8 -0
- package/build/src/components/Dependencies/types.d.ts +6 -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/SideBarTittle/SideBarTittle.d.ts +13 -0
- package/build/src/components/SideBarTittle/SideBarTittle.stories.d.ts +9 -0
- package/build/src/components/SideBarTittle/index.d.ts +1 -0
- package/build/src/components/SideBarTittle/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/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 +71 -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 +79 -0
- package/src/components/Dependencies/Dependencies.tsx +111 -0
- package/src/components/Dependencies/index.ts +1 -0
- package/src/components/Dependencies/styles.ts +26 -0
- package/src/components/Dependencies/types.ts +7 -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 +11 -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/SideBarTittle/SideBarTittle.stories.tsx +68 -0
- package/src/components/SideBarTittle/SideBarTittle.tsx +82 -0
- package/src/components/SideBarTittle/index.ts +1 -0
- package/src/components/SideBarTittle/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 +81 -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 +196 -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.tsx +22 -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 +110 -0
- package/src/sections/SideBar/Sidebar.tsx +80 -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
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
|
2
|
+
viewBox="0 0 256 256" enable-background="new 0 0 256 256" xml:space="preserve">
|
|
3
|
+
<polygon fill="#CC0000" points="23,65.6 130,3.3 237,65.6 237,190.1 130,252.4 23,190.1 "/>
|
|
4
|
+
<polygon fill="#FFFFFF" points="133,127.8 232.5,70.5 236.5,186 133,248.5 "/>
|
|
5
|
+
<g>
|
|
6
|
+
<path fill="#CC0000" d="M234,67l-0.3,122.4l-103.8,60.2l-0.5-120.3L234,67z M146.7,139.3l0.3,80.4l34.5-20.1l-0.1-60.6l17.4-10.3
|
|
7
|
+
l0,60.8l17.4-10.2l0.1-81.4L146.7,139.3z"/>
|
|
8
|
+
</g>
|
|
9
|
+
<path fill="#910505" d="M136.8,4.2c-4.8-2.7-12.5-2.7-17.3,0L24.7,58.7c-4.8,2.7-8.6,9.5-8.6,14.9v109c0,5.5,3.9,12.2,8.6,14.9
|
|
10
|
+
l94.8,54.5c4.8,2.7,12.5,2.7,17.3,0l94.8-54.5c4.8-2.7,8.6-9.5,8.6-14.9v-109c0-5.5-3.9-12.2-8.6-14.9L136.8,4.2z M220.9,61.2
|
|
11
|
+
c4.8,2.7,4.8,7.2,0,9.9l-83,47.7c-4.8,2.7-12.5,2.7-17.3,0L36.4,70.4c-4.8-2.7-4.8-7.2,0-9.9l83-47.7c4.8-2.7,12.5-2.7,17.3,0
|
|
12
|
+
L220.9,61.2z M23.5,81.5c0-5.5,3.9-7.7,8.6-5l84.9,48.8c4.8,2.7,8.6,9.5,8.6,14.9V237c0,5.5-3.9,7.7-8.6,5l-84.9-48.8
|
|
13
|
+
c-4.8-2.7-8.6-9.5-8.6-14.9V81.5z M141.8,240.5c-4.8,2.7-8.6,0.5-8.6-5v-95.3c0-5.5,3.9-12.2,8.6-14.9L224.2,78
|
|
14
|
+
c4.8-2.7,8.6-0.5,8.6,5v95.3c0,5.5-3.9,12.2-8.6,14.9L141.8,240.5z"/>
|
|
15
|
+
</svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid meet" viewBox="66.09157809474142 33.5 184.5 184.49999999999997" width="180" height="180"><defs><path d="M67.59 35L247.59 35L247.59 215L67.59 215L67.59 35Z" id="b2JZZcA3fT"></path><path d="M237.6 95L187.6 95L187.6 45L237.6 45L237.6 95Z" id="bj0tb0Y8q"></path><path d="M182.59 95L132.59 95L132.59 45L182.59 45L182.59 95Z" id="dkDSTzPj3"></path><path d="M127.59 95L77.59 95L77.59 45L127.59 45L127.59 95Z" id="a4vNdcNLpF"></path><path d="M237.6 150L187.6 150L187.6 100L237.6 100L237.6 150Z" id="h2t4Zj1jSU"></path><path d="M182.59 150L132.59 150L132.59 100L182.59 100L182.59 150Z" id="b4t5pngwvT"></path><path d="M182.59 205L132.59 205L132.59 155L182.59 155L182.59 205Z" id="b9s1gd5m2"></path><path d="M237.6 205L187.6 205L187.6 155L237.6 155L237.6 205Z" id="cmt9WLvz7"></path><path d="M127.59 205L77.59 205L77.59 155L127.59 155L127.59 205Z" id="bJUNqgFSg"></path></defs><g><g><use xlink:href="#b2JZZcA3fT" opacity="1" fill="#ffffff" fill-opacity="1"></use></g><g><use xlink:href="#bj0tb0Y8q" opacity="1" fill="#f9ad00" fill-opacity="1"></use></g><g><use xlink:href="#dkDSTzPj3" opacity="1" fill="#f9ad00" fill-opacity="1"></use></g><g><use xlink:href="#a4vNdcNLpF" opacity="1" fill="#f9ad00" fill-opacity="1"></use></g><g><use xlink:href="#h2t4Zj1jSU" opacity="1" fill="#f9ad00" fill-opacity="1"></use></g><g><use xlink:href="#b4t5pngwvT" opacity="1" fill="#4e4e4e" fill-opacity="1"></use></g><g><use xlink:href="#b9s1gd5m2" opacity="1" fill="#4e4e4e" fill-opacity="1"></use></g><g><use xlink:href="#cmt9WLvz7" opacity="1" fill="#4e4e4e" fill-opacity="1"></use></g><g><use xlink:href="#bJUNqgFSg" opacity="1" fill="#4e4e4e" fill-opacity="1"></use></g></g></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 518 518"><style>.st0{fill:#2c8ebb}.st1{fill:#fff}</style><path class="st0" d="M259 0c143 0 259 116 259 259S402 518 259 518 0 402 0 259 116 0 259 0z"/><path class="st1" d="M435.2 337.5c-1.8-14.2-13.8-24-29.2-23.8-23 .3-42.3 12.2-55.1 20.1-5 3.1-9.3 5.4-13 7.1.8-11.6.1-26.8-5.9-43.5-7.3-20-17.1-32.3-24.1-39.4 8.1-11.8 19.2-29 24.4-55.6 4.5-22.7 3.1-58-7.2-77.8-2.1-4-5.6-6.9-10-8.1-1.8-.5-5.2-1.5-11.9.4C293.1 96 289.6 93.8 286.9 92c-5.6-3.6-12.2-4.4-18.4-2.1-8.3 3-15.4 11-22.1 25.2-1 2.1-1.9 4.1-2.7 6.1-12.7.9-32.7 5.5-49.6 23.8-2.1 2.3-6.2 4-10.5 5.6h.1c-8.8 3.1-12.8 10.3-17.7 23.3-6.8 18.2.2 36.1 7.1 47.7-9.4 8.4-21.9 21.8-28.5 37.5-8.2 19.4-9.1 38.4-8.8 48.7-7 7.4-17.8 21.3-19 36.9-1.6 21.8 6.3 36.6 9.8 42 1 1.6 2.1 2.9 3.3 4.2-.4 2.7-.5 5.6.1 8.6 1.3 7 5.7 12.7 12.4 16.3 13.2 7 31.6 10 45.8 2.9 5.1 5.4 14.4 10.6 31.3 10.6h1c4.3 0 58.9-2.9 74.8-6.8 7.1-1.7 12-4.7 15.2-7.4 10.2-3.2 38.4-12.8 65-30 18.8-12.2 25.3-14.8 39.3-18.2 13.6-3.3 22.1-15.7 20.4-29.4zm-23.8 14.7c-16 3.8-24.1 7.3-43.9 20.2-30.9 20-64.7 29.3-64.7 29.3s-2.8 4.2-10.9 6.1c-14 3.4-66.7 6.3-71.5 6.4-12.9.1-20.8-3.3-23-8.6-6.7-16 9.6-23 9.6-23s-3.6-2.2-5.7-4.2c-1.9-1.9-3.9-5.7-4.5-4.3-2.5 6.1-3.8 21-10.5 27.7-9.2 9.3-26.6 6.2-36.9.8-11.3-6 .8-20.1.8-20.1s-6.1 3.6-11-3.8c-4.4-6.8-8.5-18.4-7.4-32.7 1.2-16.3 19.4-32.1 19.4-32.1s-3.2-24.1 7.3-48.8c9.5-22.5 35.1-40.6 35.1-40.6s-21.5-23.8-13.5-45.2c5.2-14 7.3-13.9 9-14.5 6-2.3 11.8-4.8 16.1-9.5 21.5-23.2 48.9-18.8 48.9-18.8s13-39.5 25-31.8c3.7 2.4 17 32 17 32s14.2-8.3 15.8-5.2c8.6 16.7 9.6 48.6 5.8 68-6.4 32-22.4 49.2-28.8 60-1.5 2.5 17.2 10.4 29 43.1 10.9 29.9 1.2 55 2.9 57.8.3.5.4.7.4.7s12.5 1 37.6-14.5c13.4-8.3 29.3-17.6 47.4-17.8 17.5-.3 18.4 20.2 5.2 23.4z"/></svg>
|
|
@@ -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 _Install.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _Install = _interopRequireDefault(require("./Install"));
|
|
13
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _base = _interopRequireDefault(require("@emotion/styled/base"));
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
+
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 */
|
|
11
|
+
const Wrapper = /*#__PURE__*/(0, _base.default)('div', process.env.NODE_ENV === "production" ? {
|
|
12
|
+
target: "erabg9d0"
|
|
13
|
+
} : {
|
|
14
|
+
target: "erabg9d0",
|
|
15
|
+
label: "Wrapper"
|
|
16
|
+
})(props => {
|
|
17
|
+
var _props$theme;
|
|
18
|
+
return {
|
|
19
|
+
fontWeight: (_props$theme = props.theme) === null || _props$theme === void 0 ? void 0 : _props$theme.fontWeight[props.weight],
|
|
20
|
+
textTransform: props.capitalize ? 'capitalize' : 'none'
|
|
21
|
+
};
|
|
22
|
+
}, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0xhYmVsL0xhYmVsLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFpQmdCIiwiZmlsZSI6Ii4u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PlxuICApO1xufTtcblxuZXhwb3J0IGRlZmF1bHQgTGFiZWw7XG4iXX0= */");
|
|
23
|
+
const Label = ({
|
|
24
|
+
text = '',
|
|
25
|
+
capitalize = false,
|
|
26
|
+
weight = 'regular',
|
|
27
|
+
...props
|
|
28
|
+
}) => {
|
|
29
|
+
return /*#__PURE__*/_react.default.createElement(Wrapper, _extends({
|
|
30
|
+
capitalize: capitalize,
|
|
31
|
+
weight: weight
|
|
32
|
+
}, props), text);
|
|
33
|
+
};
|
|
34
|
+
var _default = exports.default = Label;
|
|
35
|
+
//# sourceMappingURL=Label.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 _Label.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _Label = _interopRequireDefault(require("./Label"));
|
|
13
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.CustomRouterLink = void 0;
|
|
7
|
+
var _base = _interopRequireDefault(require("@emotion/styled/base"));
|
|
8
|
+
var _Typography = _interopRequireDefault(require("@mui/material/Typography"));
|
|
9
|
+
var _react = _interopRequireDefault(require("react"));
|
|
10
|
+
var _reactRouterDom = require("react-router-dom");
|
|
11
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
+
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)."; }
|
|
13
|
+
const CustomRouterLink = exports.CustomRouterLink = /*#__PURE__*/(0, _base.default)(_reactRouterDom.Link, process.env.NODE_ENV === "production" ? {
|
|
14
|
+
target: "e2ct7p50"
|
|
15
|
+
} : {
|
|
16
|
+
target: "e2ct7p50",
|
|
17
|
+
label: "CustomRouterLink"
|
|
18
|
+
})(process.env.NODE_ENV === "production" ? {
|
|
19
|
+
name: "lq5caq",
|
|
20
|
+
styles: "text-decoration:none;&:hover,&:focus{text-decoration:underline;}"
|
|
21
|
+
} : {
|
|
22
|
+
name: "lq5caq",
|
|
23
|
+
styles: "text-decoration:none;&:hover,&:focus{text-decoration:underline;}",
|
|
24
|
+
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0xpbmsvTGluay50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBT2tEIiwiZmlsZSI6Ii4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0xpbmsvTGluay50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5pbXBvcnQgVHlwb2dyYXBoeSBmcm9tICdAbXVpL21hdGVyaWFsL1R5cG9ncmFwaHknO1xuaW1wb3J0IFJlYWN0IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IExpbmsgYXMgUm91dGVyTGluayB9IGZyb20gJ3JlYWN0LXJvdXRlci1kb20nO1xuXG50eXBlIExpbmtSZWYgPSBIVE1MQW5jaG9yRWxlbWVudDtcblxuZXhwb3J0IGNvbnN0IEN1c3RvbVJvdXRlckxpbmsgPSBzdHlsZWQoUm91dGVyTGluaylgXG4gIHRleHQtZGVjb3JhdGlvbjogbm9uZTtcbiAgJjpob3ZlcixcbiAgJjpmb2N1cyB7XG4gICAgdGV4dC1kZWNvcmF0aW9uOiB1bmRlcmxpbmU7XG4gIH1cbmA7XG5cbi8vIFRPRE86IGltcHJvdmUgYW55IHdpdGggY3VzdG9tIHR5cGVzIGZvciBhIGFuZCBSb3V0ZXJMaW5rXG5jb25zdCBMaW5rID0gUmVhY3QuZm9yd2FyZFJlZjxMaW5rUmVmLCBhbnk+KGZ1bmN0aW9uIExpbmtGdW5jdGlvbihcbiAgeyBleHRlcm5hbCwgdG8sIGNoaWxkcmVuLCB2YXJpYW50LCBjbGFzc05hbWUsIG9uQ2xpY2sgfSxcbiAgcmVmXG4pIHtcbiAgcmV0dXJuIGV4dGVybmFsID8gKFxuICAgIDxhXG4gICAgICBjbGFzc05hbWU9e2NsYXNzTmFtZX1cbiAgICAgIGhyZWY9e3RvfVxuICAgICAgb25DbGljaz17b25DbGlja31cbiAgICAgIHJlZj17cmVmfVxuICAgICAgcmVsPVwibm9vcGVuZXIgbm9yZWZlcnJlclwiXG4gICAgICB0YXJnZXQ9XCJfYmxhbmtcIlxuICAgID5cbiAgICAgIDxUeXBvZ3JhcGh5IHZhcmlhbnQ9e3ZhcmlhbnQgPz8gJ2NhcHRpb24nfT57Y2hpbGRyZW59PC9UeXBvZ3JhcGh5PlxuICAgIDwvYT5cbiAgKSA6IChcbiAgICA8Q3VzdG9tUm91dGVyTGluayBjbGFzc05hbWU9e2NsYXNzTmFtZX0gaW5uZXJSZWY9e3JlZn0gb25DbGljaz17b25DbGlja30gdG89e3RvfT5cbiAgICAgIDxUeXBvZ3JhcGh5IHZhcmlhbnQ9e3ZhcmlhbnR9PntjaGlsZHJlbn08L1R5cG9ncmFwaHk+XG4gICAgPC9DdXN0b21Sb3V0ZXJMaW5rPlxuICApO1xufSk7XG5cbmV4cG9ydCBkZWZhdWx0IExpbms7XG4iXX0= */",
|
|
25
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
// TODO: improve any with custom types for a and RouterLink
|
|
29
|
+
const Link = /*#__PURE__*/_react.default.forwardRef(function LinkFunction({
|
|
30
|
+
external,
|
|
31
|
+
to,
|
|
32
|
+
children,
|
|
33
|
+
variant,
|
|
34
|
+
className,
|
|
35
|
+
onClick
|
|
36
|
+
}, ref) {
|
|
37
|
+
return external ? /*#__PURE__*/_react.default.createElement("a", {
|
|
38
|
+
className: className,
|
|
39
|
+
href: to,
|
|
40
|
+
onClick: onClick,
|
|
41
|
+
ref: ref,
|
|
42
|
+
rel: "noopener noreferrer",
|
|
43
|
+
target: "_blank"
|
|
44
|
+
}, /*#__PURE__*/_react.default.createElement(_Typography.default, {
|
|
45
|
+
variant: variant !== null && variant !== void 0 ? variant : 'caption'
|
|
46
|
+
}, children)) : /*#__PURE__*/_react.default.createElement(CustomRouterLink, {
|
|
47
|
+
className: className,
|
|
48
|
+
innerRef: ref,
|
|
49
|
+
onClick: onClick,
|
|
50
|
+
to: to
|
|
51
|
+
}, /*#__PURE__*/_react.default.createElement(_Typography.default, {
|
|
52
|
+
variant: variant
|
|
53
|
+
}, children));
|
|
54
|
+
});
|
|
55
|
+
var _default = exports.default = Link;
|
|
56
|
+
//# sourceMappingURL=Link.js.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "Link", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _Link.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _Link = _interopRequireDefault(require("./Link"));
|
|
13
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,20 @@
|
|
|
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 _ = require("../../");
|
|
9
|
+
var _Spinner = _interopRequireDefault(require("./Spinner"));
|
|
10
|
+
var _styles = require("./styles");
|
|
11
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
+
const Loading = () => /*#__PURE__*/_react.default.createElement(_styles.Wrapper, {
|
|
13
|
+
"data-testid": "loading"
|
|
14
|
+
}, /*#__PURE__*/_react.default.createElement(_styles.Badge, null, /*#__PURE__*/_react.default.createElement(_.Logo, {
|
|
15
|
+
size: "big"
|
|
16
|
+
})), /*#__PURE__*/_react.default.createElement(_Spinner.default, {
|
|
17
|
+
"data-testid": "spinnerLogo"
|
|
18
|
+
}));
|
|
19
|
+
var _default = exports.default = Loading;
|
|
20
|
+
//# sourceMappingURL=Loading.js.map
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _base = _interopRequireDefault(require("@emotion/styled/base"));
|
|
8
|
+
var _CircularProgress = _interopRequireDefault(require("@mui/material/CircularProgress"));
|
|
9
|
+
var _react = _interopRequireDefault(require("react"));
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
+
const Spinner = ({
|
|
12
|
+
size = 50,
|
|
13
|
+
centered = false
|
|
14
|
+
}) => /*#__PURE__*/_react.default.createElement(Wrapper, {
|
|
15
|
+
centered: centered
|
|
16
|
+
}, /*#__PURE__*/_react.default.createElement(Circular, {
|
|
17
|
+
size: size
|
|
18
|
+
}));
|
|
19
|
+
var _default = exports.default = Spinner;
|
|
20
|
+
const Wrapper = /*#__PURE__*/(0, _base.default)('div', process.env.NODE_ENV === "production" ? {
|
|
21
|
+
target: "eapffsy1"
|
|
22
|
+
} : {
|
|
23
|
+
target: "eapffsy1",
|
|
24
|
+
label: "Wrapper"
|
|
25
|
+
})(({
|
|
26
|
+
centered
|
|
27
|
+
}) => ({
|
|
28
|
+
display: 'flex',
|
|
29
|
+
alignItems: 'center',
|
|
30
|
+
justifyContent: 'center',
|
|
31
|
+
...(centered && {
|
|
32
|
+
position: 'absolute',
|
|
33
|
+
top: '50%',
|
|
34
|
+
left: '50%',
|
|
35
|
+
transform: 'translate(-50%, -50%)'
|
|
36
|
+
})
|
|
37
|
+
}), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0xvYWRpbmcvU3Bpbm5lci9TcGlubmVyLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFtQmdCIiwiZmlsZSI6Ii4uLy4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0xvYWRpbmcvU3Bpbm5lci9TcGlubmVyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcbmltcG9ydCBDaXJjdWxhclByb2dyZXNzIGZyb20gJ0BtdWkvbWF0ZXJpYWwvQ2lyY3VsYXJQcm9ncmVzcyc7XG5pbXBvcnQgUmVhY3QgZnJvbSAncmVhY3QnO1xuXG5pbXBvcnQgeyBUaGVtZSB9IGZyb20gJy4uLy4uLy4uLyc7XG5cbmludGVyZmFjZSBQcm9wcyB7XG4gIHNpemU/OiBudW1iZXI7XG4gIGNlbnRlcmVkPzogYm9vbGVhbjtcbn1cblxuY29uc3QgU3Bpbm5lcjogUmVhY3QuRkM8UHJvcHM+ID0gKHsgc2l6ZSA9IDUwLCBjZW50ZXJlZCA9IGZhbHNlIH0pID0+IChcbiAgPFdyYXBwZXIgY2VudGVyZWQ9e2NlbnRlcmVkfT5cbiAgICA8Q2lyY3VsYXIgc2l6ZT17c2l6ZX0gLz5cbiAgPC9XcmFwcGVyPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgU3Bpbm5lcjtcblxuY29uc3QgV3JhcHBlciA9IHN0eWxlZCgnZGl2Jyk8UGljazxQcm9wcywgJ2NlbnRlcmVkJz4+KCh7IGNlbnRlcmVkIH0pID0+ICh7XG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgYWxpZ25JdGVtczogJ2NlbnRlcicsXG4gIGp1c3RpZnlDb250ZW50OiAnY2VudGVyJyxcbiAgLi4uKGNlbnRlcmVkICYmIHtcbiAgICBwb3NpdGlvbjogJ2Fic29sdXRlJyxcbiAgICB0b3A6ICc1MCUnLFxuICAgIGxlZnQ6ICc1MCUnLFxuICAgIHRyYW5zZm9ybTogJ3RyYW5zbGF0ZSgtNTAlLCAtNTAlKScsXG4gIH0pLFxufSkpO1xuXG5jb25zdCBDaXJjdWxhciA9IHN0eWxlZChDaXJjdWxhclByb2dyZXNzKTx7IHRoZW1lPzogVGhlbWUgfT4oKHsgdGhlbWUgfSkgPT4gKHtcbiAgY29sb3I6IHRoZW1lPy5wYWxldHRlLm1vZGUgPT09ICdkYXJrJyA/IHRoZW1lPy5wYWxldHRlLndoaXRlIDogdGhlbWU/LnBhbGV0dGUucHJpbWFyeS5tYWluLFxufSkpO1xuIl19 */");
|
|
38
|
+
const Circular = /*#__PURE__*/(0, _base.default)(_CircularProgress.default, process.env.NODE_ENV === "production" ? {
|
|
39
|
+
target: "eapffsy0"
|
|
40
|
+
} : {
|
|
41
|
+
target: "eapffsy0",
|
|
42
|
+
label: "Circular"
|
|
43
|
+
})(({
|
|
44
|
+
theme
|
|
45
|
+
}) => ({
|
|
46
|
+
color: (theme === null || theme === void 0 ? void 0 : theme.palette.mode) === 'dark' ? theme === null || theme === void 0 ? void 0 : theme.palette.white : theme === null || theme === void 0 ? void 0 : theme.palette.primary.main
|
|
47
|
+
}), process.env.N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VudGVyJyxcbiAgLi4uKGNlbnRlcmVkICYmIHtcbiAgICBwb3NpdGlvbjogJ2Fic29sdXRlJyxcbiAgICB0b3A6ICc1MCUnLFxuICAgIGxlZnQ6ICc1MCUnLFxuICAgIHRyYW5zZm9ybTogJ3RyYW5zbGF0ZSgtNTAlLCAtNTAlKScsXG4gIH0pLFxufSkpO1xuXG5jb25zdCBDaXJjdWxhciA9IHN0eWxlZChDaXJjdWxhclByb2dyZXNzKTx7IHRoZW1lPzogVGhlbWUgfT4oKHsgdGhlbWUgfSkgPT4gKHtcbiAgY29sb3I6IHRoZW1lPy5wYWxldHRlLm1vZGUgPT09ICdkYXJrJyA/IHRoZW1lPy5wYWxldHRlLndoaXRlIDogdGhlbWU/LnBhbGV0dGUucHJpbWFyeS5tYWluLFxufSkpO1xuIl19 */");
|
|
48
|
+
//# sourceMappingURL=Spinner.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 _Spinner.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _Spinner = _interopRequireDefault(require("./Spinner"));
|
|
13
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
|
+
//# sourceMappingURL=index.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 _Loading.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _Loading = _interopRequireDefault(require("./Loading"));
|
|
13
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.Wrapper = exports.Badge = 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)('div', process.env.NODE_ENV === "production" ? {
|
|
11
|
+
target: "exspimt1"
|
|
12
|
+
} : {
|
|
13
|
+
target: "exspimt1",
|
|
14
|
+
label: "Wrapper"
|
|
15
|
+
})(process.env.NODE_ENV === "production" ? {
|
|
16
|
+
name: "10utkse",
|
|
17
|
+
styles: "transform:translate(-50%, -50%);top:50%;left:50%;position:absolute"
|
|
18
|
+
} : {
|
|
19
|
+
name: "10utkse",
|
|
20
|
+
styles: "transform:translate(-50%, -50%);top:50%;left:50%;position:absolute",
|
|
21
|
+
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0xvYWRpbmcvc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUl1QiIsImZpbGUiOiIuLi8uLi8uLi9zcmMvY29tcG9uZW50cy9Mb2FkaW5nL3N0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcblxuaW1wb3J0IHsgVGhlbWUgfSBmcm9tICcuLi8uLi8nO1xuXG5leHBvcnQgY29uc3QgV3JhcHBlciA9IHN0eWxlZCgnZGl2Jykoe1xuICB0cmFuc2Zvcm06ICd0cmFuc2xhdGUoLTUwJSwgLTUwJSknLFxuICB0b3A6ICc1MCUnLFxuICBsZWZ0OiAnNTAlJyxcbiAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG59KTtcblxuZXhwb3J0IGNvbnN0IEJhZGdlID0gc3R5bGVkKCdkaXYnKTx7IHRoZW1lPzogVGhlbWUgfT4oKHsgdGhlbWUgfSkgPT4gKHtcbiAgbWFyZ2luOiAnMCAwIDMwcHggMCcsXG4gIGJvcmRlclJhZGl1czogMjUsXG4gIGJveFNoYWRvdzogJzAgMTBweCAyMHB4IDAgcmdiYSg2OSwgNTgsIDEwMCwgMC4yKScsXG4gIGJhY2tncm91bmQ6IHRoZW1lPy5wYWxldHRlLm1vZGUgPT09ICdkYXJrJyA/IHRoZW1lPy5wYWxldHRlLmJsYWNrIDogJyNmN2Y4ZjYnLFxufSkpO1xuIl19 */",
|
|
22
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
23
|
+
});
|
|
24
|
+
const Badge = exports.Badge = /*#__PURE__*/(0, _base.default)('div', process.env.NODE_ENV === "production" ? {
|
|
25
|
+
target: "exspimt0"
|
|
26
|
+
} : {
|
|
27
|
+
target: "exspimt0",
|
|
28
|
+
label: "Badge"
|
|
29
|
+
})(({
|
|
30
|
+
theme
|
|
31
|
+
}) => ({
|
|
32
|
+
margin: '0 0 30px 0',
|
|
33
|
+
borderRadius: 25,
|
|
34
|
+
boxShadow: '0 10px 20px 0 rgba(69, 58, 100, 0.2)',
|
|
35
|
+
background: (theme === null || theme === void 0 ? void 0 : theme.palette.mode) === 'dark' ? theme === null || theme === void 0 ? void 0 : theme.palette.black : '#f7f8f6'
|
|
36
|
+
}), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0xvYWRpbmcvc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQVdxQiIsImZpbGUiOiIuLi8uLi8uLi9zcmMvY29tcG9uZW50cy9Mb2FkaW5nL3N0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcblxuaW1wb3J0IHsgVGhlbWUgfSBmcm9tICcuLi8uLi8nO1xuXG5leHBvcnQgY29uc3QgV3JhcHBlciA9IHN0eWxlZCgnZGl2Jykoe1xuICB0cmFuc2Zvcm06ICd0cmFuc2xhdGUoLTUwJSwgLTUwJSknLFxuICB0b3A6ICc1MCUnLFxuICBsZWZ0OiAnNTAlJyxcbiAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG59KTtcblxuZXhwb3J0IGNvbnN0IEJhZGdlID0gc3R5bGVkKCdkaXYnKTx7IHRoZW1lPzogVGhlbWUgfT4oKHsgdGhlbWUgfSkgPT4gKHtcbiAgbWFyZ2luOiAnMCAwIDMwcHggMCcsXG4gIGJvcmRlclJhZGl1czogMjUsXG4gIGJveFNoYWRvdzogJzAgMTBweCAyMHB4IDAgcmdiYSg2OSwgNTgsIDEwMCwgMC4yKScsXG4gIGJhY2tncm91bmQ6IHRoZW1lPy5wYWxldHRlLm1vZGUgPT09ICdkYXJrJyA/IHRoZW1lPy5wYWxldHRlLmJsYWNrIDogJyNmN2Y4ZjYnLFxufSkpO1xuIl19 */");
|
|
37
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _Dialog = _interopRequireDefault(require("@mui/material/Dialog"));
|
|
8
|
+
var _DialogContent = _interopRequireDefault(require("@mui/material/DialogContent"));
|
|
9
|
+
var _i18next = _interopRequireDefault(require("i18next"));
|
|
10
|
+
var _isEmpty = _interopRequireDefault(require("lodash/isEmpty"));
|
|
11
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
12
|
+
var _reactRedux = require("react-redux");
|
|
13
|
+
var _LoginDialogCloseButton = _interopRequireDefault(require("./LoginDialogCloseButton"));
|
|
14
|
+
var _LoginDialogForm = _interopRequireDefault(require("./LoginDialogForm"));
|
|
15
|
+
var _LoginDialogHeader = _interopRequireDefault(require("./LoginDialogHeader"));
|
|
16
|
+
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); }
|
|
17
|
+
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; }
|
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
|
+
const LoginDialog = ({
|
|
20
|
+
onClose,
|
|
21
|
+
open = false
|
|
22
|
+
}) => {
|
|
23
|
+
const loginStore = (0, _reactRedux.useSelector)(state => state.login);
|
|
24
|
+
const dispatch = (0, _reactRedux.useDispatch)();
|
|
25
|
+
const makeLogin = (0, _react.useCallback)(async (username, password) => {
|
|
26
|
+
// checks isEmpty
|
|
27
|
+
if ((0, _isEmpty.default)(username) || (0, _isEmpty.default)(password)) {
|
|
28
|
+
dispatch.login.addError({
|
|
29
|
+
type: 'error',
|
|
30
|
+
description: _i18next.default.t('form-validation.username-or-password-cant-be-empty')
|
|
31
|
+
});
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
try {
|
|
35
|
+
dispatch.login.getUser({
|
|
36
|
+
username,
|
|
37
|
+
password
|
|
38
|
+
});
|
|
39
|
+
// const response: LoginBody = await doLogin(username as string, password as string);
|
|
40
|
+
dispatch.login.clearError();
|
|
41
|
+
} catch (e) {
|
|
42
|
+
dispatch.login.addError({
|
|
43
|
+
type: 'error',
|
|
44
|
+
description: _i18next.default.t('form-validation.unable-to-sign-in')
|
|
45
|
+
});
|
|
46
|
+
// eslint-disable-next-line no-console
|
|
47
|
+
console.error('login error', e.message);
|
|
48
|
+
}
|
|
49
|
+
}, [dispatch]);
|
|
50
|
+
const handleDoLogin = (0, _react.useCallback)(async data => {
|
|
51
|
+
await makeLogin(data.username, data.password);
|
|
52
|
+
}, [makeLogin]);
|
|
53
|
+
(0, _react.useEffect)(() => {
|
|
54
|
+
if (loginStore.token && typeof loginStore.error === 'undefined') {
|
|
55
|
+
onClose();
|
|
56
|
+
}
|
|
57
|
+
}, [loginStore, onClose]);
|
|
58
|
+
return /*#__PURE__*/_react.default.createElement(_Dialog.default, {
|
|
59
|
+
"data-testid": "login--dialog",
|
|
60
|
+
fullWidth: true,
|
|
61
|
+
id: "login--dialog",
|
|
62
|
+
maxWidth: "sm",
|
|
63
|
+
onClose: onClose,
|
|
64
|
+
open: open
|
|
65
|
+
}, /*#__PURE__*/_react.default.createElement(_LoginDialogCloseButton.default, {
|
|
66
|
+
onClose: onClose
|
|
67
|
+
}), /*#__PURE__*/_react.default.createElement(_DialogContent.default, {
|
|
68
|
+
"data-testid": "dialogContentLogin"
|
|
69
|
+
}, /*#__PURE__*/_react.default.createElement(_LoginDialogHeader.default, null), /*#__PURE__*/_react.default.createElement(_LoginDialogForm.default, {
|
|
70
|
+
error: loginStore.error,
|
|
71
|
+
onSubmit: handleDoLogin
|
|
72
|
+
})));
|
|
73
|
+
};
|
|
74
|
+
var _default = exports.default = LoginDialog;
|
|
75
|
+
//# sourceMappingURL=LoginDialog.js.map
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _base = _interopRequireDefault(require("@emotion/styled/base"));
|
|
8
|
+
var _Close = _interopRequireDefault(require("@mui/icons-material/Close"));
|
|
9
|
+
var _DialogTitle = _interopRequireDefault(require("@mui/material/DialogTitle"));
|
|
10
|
+
var _IconButton = _interopRequireDefault(require("@mui/material/IconButton"));
|
|
11
|
+
var _react = _interopRequireDefault(require("react"));
|
|
12
|
+
var _reactI18next = require("react-i18next");
|
|
13
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
|
+
const StyledIconButton = /*#__PURE__*/(0, _base.default)(_IconButton.default, process.env.NODE_ENV === "production" ? {
|
|
15
|
+
target: "e1yl3sfh0"
|
|
16
|
+
} : {
|
|
17
|
+
target: "e1yl3sfh0",
|
|
18
|
+
label: "StyledIconButton"
|
|
19
|
+
})(({
|
|
20
|
+
theme
|
|
21
|
+
}) => ({
|
|
22
|
+
position: 'absolute',
|
|
23
|
+
right: theme.spacing() / 2,
|
|
24
|
+
top: theme.spacing() / 2,
|
|
25
|
+
color: theme.palette.grey[500]
|
|
26
|
+
}), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0xvZ2luRGlhbG9nL0xvZ2luRGlhbG9nQ2xvc2VCdXR0b24udHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQVN5QiIsImZpbGUiOiIuLi8uLi8uLi9zcmMvY29tcG9u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LXRlc3RpZD1cImNsb3NlLWxvZ2luLWRpYWxvZy1idXR0b25cIiBvbkNsaWNrPXtvbkNsb3NlfT5cbiAgICAgICAgPENsb3NlSWNvbiB0aXRsZUFjY2Vzcz17dCgnYnV0dG9uLmNsb3NlJyl9IC8+XG4gICAgICA8L1N0eWxlZEljb25CdXR0b24+XG4gICAgPC9EaWFsb2dUaXRsZT5cbiAgKTtcbn07XG5cbmV4cG9ydCBkZWZhdWx0IExvZ2luRGlhbG9nQ2xvc2VCdXR0b247XG4iXX0= */");
|
|
27
|
+
const LoginDialogCloseButton = ({
|
|
28
|
+
onClose
|
|
29
|
+
}) => {
|
|
30
|
+
const {
|
|
31
|
+
t
|
|
32
|
+
} = (0, _reactI18next.useTranslation)();
|
|
33
|
+
return /*#__PURE__*/_react.default.createElement(_DialogTitle.default, null, /*#__PURE__*/_react.default.createElement(StyledIconButton, {
|
|
34
|
+
"data-testid": "close-login-dialog-button",
|
|
35
|
+
onClick: onClose
|
|
36
|
+
}, /*#__PURE__*/_react.default.createElement(_Close.default, {
|
|
37
|
+
titleAccess: t('button.close')
|
|
38
|
+
})));
|
|
39
|
+
};
|
|
40
|
+
var _default = exports.default = LoginDialogCloseButton;
|
|
41
|
+
//# sourceMappingURL=LoginDialogCloseButton.js.map
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _base = _interopRequireDefault(require("@emotion/styled/base"));
|
|
8
|
+
var _Button = _interopRequireDefault(require("@mui/material/Button"));
|
|
9
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
+
var _reactHookForm = require("react-hook-form");
|
|
11
|
+
var _reactI18next = require("react-i18next");
|
|
12
|
+
var _ = require("../../");
|
|
13
|
+
var _LoginDialogFormError = _interopRequireDefault(require("./LoginDialogFormError"));
|
|
14
|
+
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); }
|
|
15
|
+
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; }
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
|
+
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 */
|
|
18
|
+
const StyledForm = /*#__PURE__*/(0, _base.default)('form', process.env.NODE_ENV === "production" ? {
|
|
19
|
+
target: "eiqf7gy1"
|
|
20
|
+
} : {
|
|
21
|
+
target: "eiqf7gy1",
|
|
22
|
+
label: "StyledForm"
|
|
23
|
+
})(({
|
|
24
|
+
theme
|
|
25
|
+
}) => ({
|
|
26
|
+
marginTop: theme.spacing(1)
|
|
27
|
+
}), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0xvZ2luRGlhbG9nL0xvZ2luRGlhbG9nRm9ybS50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBVW1CIiwiZmlsZSI6Ii4uLy4uLy4uL3NyYy9jb21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wiXG4gICAgICAgIG5hbWU9XCJwYXNzd29yZFwiXG4gICAgICAgIHBsYWNlaG9sZGVyPXt0KCdmb3JtLXBsYWNlaG9sZGVyLnBhc3N3b3JkJyl9XG4gICAgICAgIHJlcXVpcmVkPXt0cnVlfVxuICAgICAgICB0eXBlPVwicGFzc3dvcmRcIlxuICAgICAgICB2YXJpYW50PVwib3V0bGluZWRcIlxuICAgICAgLz5cbiAgICAgIHtlcnJvciAmJiA8TG9naW5EaWFsb2dGb3JtRXJyb3IgZXJyb3I9e2Vycm9yfSAvPn1cbiAgICAgIDxTdHlsZWRCdXR0b25cbiAgICAgICAgY29sb3I9XCJwcmltYXJ5XCJcbiAgICAgICAgZGF0YS10ZXN0aWQ9XCJsb2dpbi1kaWFsb2ctZm9ybS1sb2dpbi1idXR0b25cIlxuICAgICAgICBkaXNhYmxlZD17IWlzVmFsaWR9XG4gICAgICAgIGZ1bGxXaWR0aD17dHJ1ZX1cbiAgICAgICAgaWQ9XCJsb2dpbi0tZGlhbG9nLWJ1dHRvbi1zdWJtaXRcIlxuICAgICAgICBzaXplPVwibGFyZ2VcIlxuICAgICAgICB0eXBlPVwic3VibWl0XCJcbiAgICAgICAgdmFyaWFudD1cImNvbnRhaW5lZFwiXG4gICAgICA+XG4gICAgICAgIHt0KCdidXR0b24ubG9naW4nKX1cbiAgICAgIDwvU3R5bGVkQnV0dG9uPlxuICAgIDwvU3R5bGVkRm9ybT5cbiAgKTtcbn0pO1xuXG5leHBvcnQgZGVmYXVsdCBMb2dpbkRpYWxvZ0Zvcm07XG4iXX0= */");
|
|
28
|
+
const StyledButton = /*#__PURE__*/(0, _base.default)(_Button.default, process.env.NODE_ENV === "production" ? {
|
|
29
|
+
target: "eiqf7gy0"
|
|
30
|
+
} : {
|
|
31
|
+
target: "eiqf7gy0",
|
|
32
|
+
label: "StyledButton"
|
|
33
|
+
})(({
|
|
34
|
+
theme
|
|
35
|
+
}) => ({
|
|
36
|
+
margin: theme.spacing(3, 0, 2)
|
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WxvZ0Zvcm07XG4iXX0= */");
|
|
38
|
+
const LoginDialogForm = /*#__PURE__*/(0, _react.memo)(({
|
|
39
|
+
onSubmit,
|
|
40
|
+
error
|
|
41
|
+
}) => {
|
|
42
|
+
var _errors$username, _errors$password;
|
|
43
|
+
const {
|
|
44
|
+
t
|
|
45
|
+
} = (0, _reactI18next.useTranslation)();
|
|
46
|
+
const {
|
|
47
|
+
register,
|
|
48
|
+
handleSubmit,
|
|
49
|
+
formState: {
|
|
50
|
+
isValid,
|
|
51
|
+
errors
|
|
52
|
+
}
|
|
53
|
+
} = (0, _reactHookForm.useForm)({
|
|
54
|
+
mode: 'onChange'
|
|
55
|
+
});
|
|
56
|
+
const onSubmitForm = formValues => {
|
|
57
|
+
onSubmit(formValues);
|
|
58
|
+
};
|
|
59
|
+
return /*#__PURE__*/_react.default.createElement(StyledForm, {
|
|
60
|
+
noValidate: true,
|
|
61
|
+
onSubmit: handleSubmit(onSubmitForm)
|
|
62
|
+
}, /*#__PURE__*/_react.default.createElement(_.TextField, _extends({
|
|
63
|
+
autoComplete: "username",
|
|
64
|
+
error: !!errors.username,
|
|
65
|
+
fullWidth: true,
|
|
66
|
+
helperText: (_errors$username = errors.username) === null || _errors$username === void 0 ? void 0 : _errors$username.message,
|
|
67
|
+
id: "login--dialog-username"
|
|
68
|
+
}, register('username', {
|
|
69
|
+
required: {
|
|
70
|
+
value: true,
|
|
71
|
+
message: t('form-validation.required-field')
|
|
72
|
+
},
|
|
73
|
+
minLength: {
|
|
74
|
+
value: 2,
|
|
75
|
+
message: t('form-validation.required-min-length', {
|
|
76
|
+
length: 2
|
|
77
|
+
})
|
|
78
|
+
}
|
|
79
|
+
}), {
|
|
80
|
+
label: t('form.username'),
|
|
81
|
+
margin: "normal",
|
|
82
|
+
name: "username",
|
|
83
|
+
placeholder: t('form-placeholder.username'),
|
|
84
|
+
required: true,
|
|
85
|
+
variant: "outlined"
|
|
86
|
+
})), /*#__PURE__*/_react.default.createElement(_.TextField, _extends({
|
|
87
|
+
autoComplete: "current-password",
|
|
88
|
+
error: !!errors.password,
|
|
89
|
+
fullWidth: true,
|
|
90
|
+
helperText: (_errors$password = errors.password) === null || _errors$password === void 0 ? void 0 : _errors$password.message,
|
|
91
|
+
id: "login--dialog-password"
|
|
92
|
+
}, register('password', {
|
|
93
|
+
required: {
|
|
94
|
+
value: true,
|
|
95
|
+
message: t('form-validation.required-field')
|
|
96
|
+
},
|
|
97
|
+
minLength: {
|
|
98
|
+
value: 2,
|
|
99
|
+
message: t('form-validation.required-min-length', {
|
|
100
|
+
length: 2
|
|
101
|
+
})
|
|
102
|
+
}
|
|
103
|
+
}), {
|
|
104
|
+
"data-testid": "password",
|
|
105
|
+
label: t('form.password'),
|
|
106
|
+
margin: "normal",
|
|
107
|
+
name: "password",
|
|
108
|
+
placeholder: t('form-placeholder.password'),
|
|
109
|
+
required: true,
|
|
110
|
+
type: "password",
|
|
111
|
+
variant: "outlined"
|
|
112
|
+
})), error && /*#__PURE__*/_react.default.createElement(_LoginDialogFormError.default, {
|
|
113
|
+
error: error
|
|
114
|
+
}), /*#__PURE__*/_react.default.createElement(StyledButton, {
|
|
115
|
+
color: "primary",
|
|
116
|
+
"data-testid": "login-dialog-form-login-button",
|
|
117
|
+
disabled: !isValid,
|
|
118
|
+
fullWidth: true,
|
|
119
|
+
id: "login--dialog-button-submit",
|
|
120
|
+
size: "large",
|
|
121
|
+
type: "submit",
|
|
122
|
+
variant: "contained"
|
|
123
|
+
}, t('button.login')));
|
|
124
|
+
});
|
|
125
|
+
var _default = exports.default = LoginDialogForm;
|
|
126
|
+
//# sourceMappingURL=LoginDialogForm.js.map
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _base = _interopRequireDefault(require("@emotion/styled/base"));
|
|
8
|
+
var _Error = _interopRequireDefault(require("@mui/icons-material/Error"));
|
|
9
|
+
var _Box = _interopRequireDefault(require("@mui/material/Box"));
|
|
10
|
+
var _SnackbarContent = _interopRequireDefault(require("@mui/material/SnackbarContent"));
|
|
11
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
12
|
+
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); }
|
|
13
|
+
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; }
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
+
const StyledSnackbarContent = /*#__PURE__*/(0, _base.default)(_SnackbarContent.default, process.env.NODE_ENV === "production" ? {
|
|
16
|
+
target: "e20vm851"
|
|
17
|
+
} : {
|
|
18
|
+
target: "e20vm851",
|
|
19
|
+
label: "StyledSnackbarContent"
|
|
20
|
+
})(({
|
|
21
|
+
theme
|
|
22
|
+
}) => ({
|
|
23
|
+
backgroundColor: theme === null || theme === void 0 ? void 0 : theme.palette.error.dark,
|
|
24
|
+
color: theme === null || theme === void 0 ? void 0 : theme.palette.white
|
|
25
|
+
}), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0xvZ2luRGlhbG9nL0xvZ2luRGlhbG9nRm9ybUVycm9yLnRzeCJ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50ZXJmYWNlIFByb3BzIHtcbiAgZXJyb3I6IExvZ2luRXJyb3I7XG59XG5cbmNvbnN0IExvZ2luRGlhbG9nRm9ybUVycm9yID0gbWVtbygoeyBlcnJvciB9OiBQcm9wcykgPT4ge1xuICByZXR1cm4gKFxuICAgIDxTdHlsZWRTbmFja2JhckNvbnRlbnRcbiAgICAgIG1lc3NhZ2U9e1xuICAgICAgICA8Qm94IGFsaWduSXRlbXM9XCJjZW50ZXJcIiBkaXNwbGF5PVwiZmxleFwiPlxuICAgICAgICAgIDxTdHlsZWRFcnJvckljb24gLz5cbiAgICAgICAgICB7ZXJyb3IuZGVzY3JpcHRpb259XG4gICAgICAgIDwvQm94PlxuICAgICAgfVxuICAgIC8+XG4gICk7XG59KTtcblxuZXhwb3J0IGRlZmF1bHQgTG9naW5EaWFsb2dGb3JtRXJyb3I7XG4iXX0= */");
|
|
26
|
+
const StyledErrorIcon = /*#__PURE__*/(0, _base.default)(_Error.default, process.env.NODE_ENV === "production" ? {
|
|
27
|
+
target: "e20vm850"
|
|
28
|
+
} : {
|
|
29
|
+
target: "e20vm850",
|
|
30
|
+
label: "StyledErrorIcon"
|
|
31
|
+
})(({
|
|
32
|
+
theme
|
|
33
|
+
}) => ({
|
|
34
|
+
fontSize: 20,
|
|
35
|
+
opacity: 0.9,
|
|
36
|
+
marginRight: theme === null || theme === void 0 ? void 0 : theme.spacing(1)
|
|
37
|
+
}), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0xvZ2luRGlhbG9nL0xvZ2luRGlhbG9nRm9ybUVycm9yLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFhd0IiLCJmaWxlIjoiLi4vLi4vLi4vc3JjL2NvbXBvbmVudHMvTG9naW5EaWFsb2cvTG9naW5EaWFsb2dGb3JtRXJyb3IudHN4I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ICByZXR1cm4gKFxuICAgIDxTdHlsZWRTbmFja2JhckNvbnRlbnRcbiAgICAgIG1lc3NhZ2U9e1xuICAgICAgICA8Qm94IGFsaWduSXRlbXM9XCJjZW50ZXJcIiBkaXNwbGF5PVwiZmxleFwiPlxuICAgICAgICAgIDxTdHlsZWRFcnJvckljb24gLz5cbiAgICAgICAgICB7ZXJyb3IuZGVzY3JpcHRpb259XG4gICAgICAgIDwvQm94PlxuICAgICAgfVxuICAgIC8+XG4gICk7XG59KTtcblxuZXhwb3J0IGRlZmF1bHQgTG9naW5EaWFsb2dGb3JtRXJyb3I7XG4iXX0= */");
|
|
38
|
+
const LoginDialogFormError = /*#__PURE__*/(0, _react.memo)(({
|
|
39
|
+
error
|
|
40
|
+
}) => {
|
|
41
|
+
return /*#__PURE__*/_react.default.createElement(StyledSnackbarContent, {
|
|
42
|
+
message: /*#__PURE__*/_react.default.createElement(_Box.default, {
|
|
43
|
+
alignItems: "center",
|
|
44
|
+
display: "flex"
|
|
45
|
+
}, /*#__PURE__*/_react.default.createElement(StyledErrorIcon, null), error.description)
|
|
46
|
+
});
|
|
47
|
+
});
|
|
48
|
+
var _default = exports.default = LoginDialogFormError;
|
|
49
|
+
//# sourceMappingURL=LoginDialogFormError.js.map
|