@verdaccio/ui-components 3.0.0-next-7.6 → 3.0.0-next-7.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc +1 -1
- package/CHANGELOG.md +12 -0
- package/build/Theme/theme.js +3 -3
- package/build/components/ActionBar/ActionBar.js +3 -1
- package/build/components/ActionBar/ActionBarAction.js +7 -6
- package/build/components/Author/Author.js +13 -42
- package/build/components/CopyClipboard/utils.js +3 -12
- package/build/components/Dependencies/Dependencies.js +27 -18
- package/build/components/Dependencies/DependencyBlock.js +34 -19
- package/build/components/Developers/DeveloperType.js +12 -0
- package/build/components/Developers/Developers.js +20 -22
- package/build/components/Developers/Title.js +5 -9
- package/build/components/Developers/index.js +4 -4
- package/build/components/Distribution/Dist.js +1 -1
- package/build/components/Distribution/styles.js +10 -23
- package/build/components/Engines/Engines.js +7 -1
- package/build/components/Engines/styles.js +6 -6
- package/build/components/FundButton/FundButton.js +7 -8
- package/build/components/HeaderInfoDialog/HeaderInfoDialog.js +2 -1
- package/build/components/Icons/DevsIcons/CommonJS.js +1 -12
- package/build/components/Icons/DevsIcons/ES6Module.js +2 -13
- package/build/components/Icons/DevsIcons/Git.js +1 -12
- package/build/components/Icons/DevsIcons/NodeJS.js +1 -12
- package/build/components/Icons/DevsIcons/TypeScript.js +1 -12
- package/build/components/Icons/FileBinary.js +11 -5
- package/build/components/Icons/Law.js +12 -6
- package/build/components/Icons/Managers/Npm.js +1 -12
- package/build/components/Icons/Managers/Pnpm.js +1 -12
- package/build/components/Icons/Managers/Yarn.js +1 -12
- package/build/components/Install/Install.js +23 -18
- package/build/components/Install/InstallListItem.js +19 -18
- package/build/components/Keywords/KeywordListItems.js +34 -0
- package/build/components/Keywords/Keywords.js +39 -0
- package/build/{sections/Header/RegistryInfoDialog → components/Keywords}/index.js +2 -2
- package/build/components/Link/Link.js +4 -16
- package/build/components/Link/index.js +1 -1
- package/build/components/LinkExternal/LinkExternal.js +32 -0
- package/build/components/LinkExternal/index.js +14 -0
- package/build/components/Loading/styles.js +3 -2
- package/build/components/LoginDialog/LoginDialog.js +12 -1
- package/build/components/LoginDialog/LoginDialogCloseButton.js +3 -2
- package/build/components/LoginDialog/LoginDialogForm.js +2 -14
- package/build/components/LoginDialog/LoginDialogFormError.js +3 -2
- package/build/components/Logo/Logo.js +13 -6
- package/build/components/Package/Package.js +43 -34
- package/build/components/Package/styles.js +46 -58
- package/build/components/Person/Person.js +48 -0
- package/build/components/Person/PersonTooltip.js +22 -0
- package/build/components/{Package/Tag → Person}/index.js +2 -2
- package/build/components/Person/utils.js +17 -0
- package/build/components/RawViewer/RawViewer.js +11 -5
- package/build/components/Readme/Readme.js +15 -6
- package/build/components/Readme/Readme.js.map +1 -1
- package/build/components/Readme/Readme.spec.js +19 -0
- package/build/components/Readme/Readme.spec.js.map +1 -1
- package/build/components/Readme/utils.js +2 -5
- package/build/components/RegistryInfoDialog/styles.js +9 -10
- package/build/components/Repository/Repository.js +19 -31
- package/build/components/Search/AutoComplete/styles.js +4 -41
- package/build/components/Search/Search.js +4 -2
- package/build/components/Search/SearchItem.js +51 -38
- package/build/components/Search/utils.js +23 -0
- package/build/components/SettingsMenu/SettingsMenu.js +35 -9
- package/build/components/SideBarTitle/SideBarTitle.js +16 -6
- package/build/components/UpLinks/UpLinks.js +35 -6
- package/build/components/UpLinks/UplinkLink.js +22 -0
- package/build/components/UpLinks/styles.js +5 -4
- package/build/components/Versions/HistoryList.js +8 -5
- package/build/components/Versions/TagList.js +8 -4
- package/build/components/Versions/Versions.js +30 -7
- package/build/index.js +27 -3
- package/build/providers/AppConfigurationProvider/AppConfigurationProvider.js +1 -0
- package/build/providers/PersistenceSettingProvider/PersistenceSettingProvider.js +1 -0
- package/build/sections/Detail/Detail.js +6 -2
- package/build/sections/Detail/Tabs.js +4 -3
- package/build/sections/Footer/Footer.js +17 -8
- package/build/sections/Footer/styles.js +13 -10
- package/build/sections/Header/HeaderLeft.js +14 -17
- package/build/sections/Header/HeaderMenu.js +1 -1
- package/build/sections/Header/HeaderRight.js +12 -3
- package/build/sections/Header/HeaderSettingsDialog.js +2 -2
- package/build/sections/Header/styles.js +43 -82
- package/build/sections/SideBar/Sidebar.js +10 -15
- package/build/src/Theme/ThemeProvider.test.d.ts +1 -0
- package/build/src/components/Author/Author.d.ts +0 -5
- package/build/src/components/CopyClipboard/CopyToClipBoard.test.d.ts +1 -0
- package/build/src/components/Dependencies/Dependencies.d.ts +0 -1
- package/build/src/components/Developers/DeveloperType.d.ts +4 -0
- package/build/src/components/Developers/Developers.d.ts +1 -4
- package/build/src/components/Developers/Title.d.ts +1 -4
- package/build/src/components/Developers/index.d.ts +2 -1
- package/build/src/components/Distribution/styles.d.ts +0 -1
- package/build/src/components/ErrorBoundary/ErrorBoundary.test.d.ts +1 -0
- package/build/src/components/HeaderInfoDialog/HeaderInfoDialog.test.d.ts +1 -0
- package/build/src/components/Heading/Heading.test.d.ts +1 -0
- package/build/src/components/Icons/Icons.test.d.ts +1 -0
- package/build/src/components/Install/InstallListItem.d.ts +1 -1
- package/build/src/components/Keywords/KeywordListItems.d.ts +5 -0
- package/build/src/components/Keywords/Keywords.d.ts +6 -0
- package/build/src/components/Keywords/Keywords.stories.d.ts +5 -0
- package/build/src/components/Keywords/Keywords.test.d.ts +1 -0
- package/build/src/components/Keywords/index.d.ts +1 -0
- package/build/src/components/Link/Link.d.ts +0 -3
- package/build/src/components/Link/Link.test.d.ts +1 -0
- package/build/src/components/Link/index.d.ts +1 -1
- package/build/src/components/LinkExternal/LinkExternal.d.ts +3 -0
- package/build/src/components/LinkExternal/LinkExternal.test.d.ts +1 -0
- package/build/src/components/LinkExternal/index.d.ts +1 -0
- package/build/src/components/Logo/Logo.d.ts +1 -0
- package/build/src/components/Logo/Logo.stories.d.ts +5 -0
- package/build/src/components/Package/Package.d.ts +1 -1
- package/build/src/components/Package/styles.d.ts +0 -8
- package/build/src/components/Person/Person.d.ts +9 -0
- package/build/src/components/Person/Person.test.d.ts +1 -0
- package/build/src/components/Person/PersonTooltip.d.ts +6 -0
- package/build/src/components/Person/index.d.ts +1 -0
- package/build/src/components/Person/utils.d.ts +3 -0
- package/build/src/components/Readme/Readme.d.ts +0 -1
- package/build/src/components/Search/AutoComplete/styles.d.ts +0 -8
- package/build/src/components/Search/utils.d.ts +1 -0
- package/build/src/components/SettingsMenu/SettingsMenu.d.ts +2 -2
- package/build/src/components/SettingsMenu/SettingsMenu.test.d.ts +1 -0
- package/build/src/components/UpLinks/UplinkLink.d.ts +6 -0
- package/build/src/components/Versions/Versions.d.ts +1 -0
- package/build/src/index.d.ts +4 -1
- package/build/src/sections/Detail/Tabs.d.ts +1 -0
- package/build/src/sections/Header/styles.d.ts +0 -7
- package/build/src/store/models/routes.d.ts +8 -0
- package/build/src/store/models/utils.d.ts +1 -0
- package/build/src/types/packageMeta.d.ts +7 -5
- package/build/src/utils/routes.d.ts +1 -0
- package/build/src/utils/utils.d.ts +1 -0
- package/build/store/models/configuration.js +2 -1
- package/build/store/models/login.js +4 -2
- package/build/store/models/manifest.js +5 -3
- package/build/store/models/packages.js +4 -2
- package/build/store/models/routes.js +18 -0
- package/build/store/models/search.js +4 -2
- package/build/store/models/utils.js +10 -0
- package/build/utils/routes.js +1 -0
- package/build/utils/utils.js +20 -1
- package/package.json +4 -4
- package/src/AppTest/AppRoute.test.tsx +65 -0
- package/src/Theme/ThemeProvider.test.tsx +27 -0
- package/src/Theme/theme.ts +3 -3
- package/src/components/ActionBar/ActionBar.test.tsx +36 -15
- package/src/components/ActionBar/ActionBar.tsx +1 -1
- package/src/components/ActionBar/ActionBarAction.tsx +8 -5
- package/src/components/Author/Author.test.tsx +7 -1
- package/src/components/Author/Author.tsx +3 -41
- package/src/components/CopyClipboard/CopyToClipBoard.test.tsx +23 -0
- package/src/components/CopyClipboard/utils.ts +2 -13
- package/src/components/Dependencies/Dependencies.stories.tsx +11 -11
- package/src/components/Dependencies/Dependencies.tsx +28 -25
- package/src/components/Dependencies/DependencyBlock.test.tsx +19 -6
- package/src/components/Dependencies/DependencyBlock.tsx +28 -14
- package/src/components/Developers/DeveloperType.tsx +4 -0
- package/src/components/Developers/Developers.test.tsx +37 -10
- package/src/components/Developers/Developers.tsx +13 -13
- package/src/components/Developers/Title.tsx +1 -5
- package/src/components/Developers/index.ts +2 -1
- package/src/components/Distribution/Dist.test.tsx +1 -1
- package/src/components/Distribution/Dist.tsx +2 -4
- package/src/components/Distribution/styles.ts +0 -6
- package/src/components/Engines/Engines.tsx +6 -2
- package/src/components/Engines/styles.ts +1 -1
- package/src/components/ErrorBoundary/ErrorBoundary.test.tsx +39 -0
- package/src/components/FundButton/FundButton.tsx +5 -5
- package/src/components/HeaderInfoDialog/HeaderInfoDialog.test.tsx +51 -0
- package/src/components/HeaderInfoDialog/HeaderInfoDialog.tsx +2 -2
- package/src/components/Heading/Heading.test.tsx +20 -0
- package/src/components/Icons/DevsIcons/CommonJS.tsx +1 -7
- package/src/components/Icons/DevsIcons/ES6Module.tsx +2 -8
- package/src/components/Icons/DevsIcons/Git.tsx +1 -7
- package/src/components/Icons/DevsIcons/NodeJS.tsx +1 -7
- package/src/components/Icons/DevsIcons/TypeScript.tsx +1 -7
- package/src/components/Icons/FileBinary.tsx +2 -1
- package/src/components/Icons/Icons.stories.tsx +21 -5
- package/src/components/Icons/Icons.test.tsx +70 -0
- package/src/components/Icons/Law.tsx +2 -1
- package/src/components/Icons/Managers/Npm.tsx +1 -7
- package/src/components/Icons/Managers/Pnpm.tsx +1 -7
- package/src/components/Icons/Managers/Yarn.tsx +1 -7
- package/src/components/Install/Install.test.tsx +54 -13
- package/src/components/Install/Install.tsx +12 -11
- package/src/components/Install/InstallListItem.tsx +12 -11
- package/src/components/Keywords/KeywordListItems.tsx +22 -0
- package/src/components/Keywords/Keywords.stories.tsx +19 -0
- package/src/components/Keywords/Keywords.test.tsx +57 -0
- package/src/components/Keywords/Keywords.tsx +35 -0
- package/src/components/Keywords/index.ts +1 -0
- package/src/components/Link/Link.test.tsx +25 -0
- package/src/components/Link/Link.tsx +4 -18
- package/src/components/Link/index.ts +1 -1
- package/src/components/LinkExternal/LinkExternal.test.tsx +18 -0
- package/src/components/LinkExternal/LinkExternal.tsx +22 -0
- package/src/components/LinkExternal/index.ts +1 -0
- package/src/components/Loading/Loading.test.tsx +8 -5
- package/src/components/Loading/styles.ts +1 -0
- package/src/components/LoginDialog/LoginDialog.test.tsx +1 -1
- package/src/components/LoginDialog/LoginDialog.tsx +10 -1
- package/src/components/LoginDialog/LoginDialogCloseButton.tsx +1 -0
- package/src/components/LoginDialog/LoginDialogForm.tsx +0 -2
- package/src/components/LoginDialog/LoginDialogFormError.tsx +1 -1
- package/src/components/Logo/Logo.stories.tsx +16 -0
- package/src/components/Logo/Logo.test.tsx +8 -1
- package/src/components/Logo/Logo.tsx +19 -3
- package/src/components/Package/Package.test.tsx +47 -14
- package/src/components/Package/Package.tsx +41 -44
- package/src/components/Package/styles.ts +7 -17
- package/src/components/PackageList/Packagelist.test.tsx +1 -0
- package/src/components/Person/Person.test.tsx +50 -0
- package/src/components/Person/Person.tsx +45 -0
- package/src/components/Person/PersonTooltip.tsx +26 -0
- package/src/components/Person/index.ts +1 -0
- package/src/components/Person/utils.ts +20 -0
- package/src/components/RawViewer/RawViewer.tsx +8 -4
- package/src/components/Readme/Readme.spec.tsx +17 -0
- package/src/components/Readme/Readme.tsx +10 -5
- package/src/components/Readme/utils.ts +2 -5
- package/src/components/RegistryInfoDialog/styles.ts +5 -4
- package/src/components/Repository/Repository.tsx +9 -14
- package/src/components/Search/AutoComplete/styles.ts +7 -0
- package/src/components/Search/Search.test.tsx +36 -9
- package/src/components/Search/Search.tsx +4 -2
- package/src/components/Search/SearchItem.tsx +19 -8
- package/src/components/Search/utils.ts +17 -0
- package/src/components/SettingsMenu/SettingsMenu.test.tsx +41 -0
- package/src/components/SettingsMenu/SettingsMenu.tsx +48 -10
- package/src/components/SideBarTitle/SideBarTitle.tsx +19 -3
- package/src/components/UpLinks/UpLinks.test.tsx +7 -0
- package/src/components/UpLinks/UpLinks.tsx +38 -15
- package/src/components/UpLinks/UplinkLink.tsx +20 -0
- package/src/components/UpLinks/styles.ts +1 -0
- package/src/components/Versions/HistoryList.tsx +9 -4
- package/src/components/Versions/TagList.tsx +4 -3
- package/src/components/Versions/Versions.test.tsx +2 -0
- package/src/components/Versions/Versions.tsx +57 -32
- package/src/index.ts +4 -1
- package/src/providers/AppConfigurationProvider/AppConfigurationProvider.tsx +1 -0
- package/src/providers/PersistenceSettingProvider/PersistenceSettingProvider.tsx +2 -0
- package/src/providers/VersionProvider/VersionProvider.test.tsx +3 -3
- package/src/sections/Detail/Detail.test.tsx +8 -1
- package/src/sections/Detail/Detail.tsx +11 -4
- package/src/sections/Detail/Tabs.tsx +5 -2
- package/src/sections/Footer/Footer.tsx +15 -4
- package/src/sections/Footer/styles.ts +4 -0
- package/src/sections/Header/Header.test.tsx +12 -10
- package/src/sections/Header/HeaderLeft.tsx +19 -11
- package/src/sections/Header/HeaderMenu.tsx +1 -1
- package/src/sections/Header/HeaderRight.tsx +14 -3
- package/src/sections/Header/HeaderSettingsDialog.tsx +1 -1
- package/src/sections/Header/RegistryInfoContent/RegistryInfoContent.test.tsx +1 -1
- package/src/sections/Header/styles.ts +4 -16
- package/src/sections/Home/Home.test.tsx +12 -4
- package/src/sections/SideBar/Sidebar.test.tsx +20 -13
- package/src/sections/SideBar/Sidebar.tsx +5 -9
- package/src/store/api.test.ts +16 -0
- package/src/store/models/configuration.ts +2 -1
- package/src/store/models/login.ts +10 -12
- package/src/store/models/manifest.ts +6 -5
- package/src/store/models/packages.ts +4 -5
- package/src/store/models/routes.ts +10 -0
- package/src/store/models/search.ts +4 -2
- package/src/store/models/utils.ts +3 -0
- package/src/types/packageMeta.ts +7 -5
- package/src/utils/routes.ts +1 -0
- package/src/utils/utils.test.ts +34 -0
- package/src/utils/utils.ts +20 -5
- package/tsconfig.json +1 -1
- package/build/components/Developers/styles.js +0 -65
- package/build/components/Distribution/utils.js +0 -25
- package/build/components/Distribution/utilts.spec.js +0 -18
- package/build/components/Package/Tag/Tag.js +0 -14
- package/build/components/Package/Tag/styles.js +0 -24
- package/build/sections/Header/RegistryInfoDialog/RegistryInfoDialog.js +0 -36
- package/build/sections/Header/RegistryInfoDialog/styles.js +0 -46
- package/build/sections/Header/RegistryInfoDialog/types.js +0 -6
- package/build/src/components/Developers/styles.d.ts +0 -11
- package/build/src/components/Distribution/utils.d.ts +0 -7
- package/build/src/components/Package/Tag/Tag.d.ts +0 -6
- package/build/src/components/Package/Tag/index.d.ts +0 -1
- package/build/src/components/Package/Tag/styles.d.ts +0 -5
- package/build/src/sections/Header/RegistryInfoDialog/RegistryInfoDialog.d.ts +0 -4
- package/build/src/sections/Header/RegistryInfoDialog/index.d.ts +0 -1
- package/build/src/sections/Header/RegistryInfoDialog/styles.d.ts +0 -13
- package/build/src/sections/Header/RegistryInfoDialog/types.d.ts +0 -7
- package/src/components/Developers/styles.ts +0 -31
- package/src/components/Distribution/utils.ts +0 -32
- package/src/components/Distribution/utilts.spec.ts +0 -17
- package/src/components/Package/Tag/Tag.test.tsx +0 -15
- package/src/components/Package/Tag/Tag.tsx +0 -11
- package/src/components/Package/Tag/index.ts +0 -1
- package/src/components/Package/Tag/styles.ts +0 -11
- package/src/components/Search/AutoComplete/styles.tsx +0 -42
- package/src/sections/Header/RegistryInfoDialog/RegistryInfoDialog.tsx +0 -31
- package/src/sections/Header/RegistryInfoDialog/index.ts +0 -1
- package/src/sections/Header/RegistryInfoDialog/styles.ts +0 -21
- package/src/sections/Header/RegistryInfoDialog/types.ts +0 -8
- /package/build/components/Icons/DevsIcons/{es6modules.svg → es6module.svg} +0 -0
- /package/build/src/{components/Package/Tag/Tag.test.d.ts → AppTest/AppRoute.test.d.ts} +0 -0
- /package/src/components/Icons/DevsIcons/{es6modules.svg → es6module.svg} +0 -0
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.StyledText = exports.Fab = exports.Details = exports.Content = void 0;
|
|
7
|
-
var _base = _interopRequireDefault(require("@emotion/styled/base"));
|
|
8
|
-
var _Fab = _interopRequireDefault(require("@mui/material/Fab"));
|
|
9
|
-
var _Typography = _interopRequireDefault(require("@mui/material/Typography"));
|
|
10
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
12
|
-
const Details = exports.Details = /*#__PURE__*/(0, _base.default)('span', process.env.NODE_ENV === "production" ? {
|
|
13
|
-
target: "e1u5w7z83"
|
|
14
|
-
} : {
|
|
15
|
-
target: "e1u5w7z83",
|
|
16
|
-
label: "Details"
|
|
17
|
-
})(process.env.NODE_ENV === "production" ? {
|
|
18
|
-
name: "zigog8",
|
|
19
|
-
styles: "display:flex;flex-direction:column;align-items:center"
|
|
20
|
-
} : {
|
|
21
|
-
name: "zigog8",
|
|
22
|
-
styles: "display:flex;flex-direction:column;align-items:center",
|
|
23
|
-
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0RldmVsb3BlcnMvc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQU11QiIsImZpbGUiOiIuLi8uLi8uLi9zcmMvY29tcG9uZW50cy9EZXZlbG9wZXJzL3N0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcbmltcG9ydCBGYWJNVUkgZnJvbSAnQG11aS9tYXRlcmlhbC9GYWInO1xuaW1wb3J0IFR5cG9ncmFwaHkgZnJvbSAnQG11aS9tYXRlcmlhbC9UeXBvZ3JhcGh5JztcblxuaW1wb3J0IHsgVGhlbWUgfSBmcm9tICcuLi8uLi9UaGVtZSc7XG5cbmV4cG9ydCBjb25zdCBEZXRhaWxzID0gc3R5bGVkKCdzcGFuJykoe1xuICBkaXNwbGF5OiAnZmxleCcsXG4gIGZsZXhEaXJlY3Rpb246ICdjb2x1bW4nLFxuICBhbGlnbkl0ZW1zOiAnY2VudGVyJyxcbn0pO1xuXG5leHBvcnQgY29uc3QgQ29udGVudCA9IHN0eWxlZCgnZGl2Jykoe1xuICBtYXJnaW46ICcxMHB4IDAgMTBweCAwJyxcbiAgZGlzcGxheTogJ2ZsZXgnLFxuICBmbGV4V3JhcDogJ3dyYXAnLFxuICAnPiAqJzoge1xuICAgIG1hcmdpbjogJzVweCcsXG4gIH0sXG59KTtcblxuZXhwb3J0IGNvbnN0IFN0eWxlZFRleHQgPSBzdHlsZWQoVHlwb2dyYXBoeSk8eyB0aGVtZT86IFRoZW1lIH0+KChwcm9wcykgPT4gKHtcbiAgZm9udFdlaWdodDogcHJvcHMudGhlbWU/LmZvbnRXZWlnaHQuYm9sZCxcbiAgbWFyZ2luQm90dG9tOiAnMTBweCcsXG4gIHRleHRUcmFuc2Zvcm06ICdjYXBpdGFsaXplJyxcbn0pKTtcblxuZXhwb3J0IGNvbnN0IEZhYiA9IHN0eWxlZChGYWJNVUkpPHsgdGhlbWU/OiBUaGVtZSB9PigocHJvcHMpID0+ICh7XG4gIGJhY2tncm91bmRDb2xvcjogcHJvcHMudGhlbWU/LnBhbGV0dGUucHJpbWFyeS5tYWluLFxuICBjb2xvcjogcHJvcHMudGhlbWU/LnBhbGV0dGUud2hpdGUsXG59KSk7XG4iXX0= */",
|
|
24
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
25
|
-
});
|
|
26
|
-
const Content = exports.Content = /*#__PURE__*/(0, _base.default)('div', process.env.NODE_ENV === "production" ? {
|
|
27
|
-
target: "e1u5w7z82"
|
|
28
|
-
} : {
|
|
29
|
-
target: "e1u5w7z82",
|
|
30
|
-
label: "Content"
|
|
31
|
-
})(process.env.NODE_ENV === "production" ? {
|
|
32
|
-
name: "mkcn9c",
|
|
33
|
-
styles: "margin:10px 0 10px 0;display:flex;flex-wrap:wrap;> *{margin:5px;}"
|
|
34
|
-
} : {
|
|
35
|
-
name: "mkcn9c",
|
|
36
|
-
styles: "margin:10px 0 10px 0;display:flex;flex-wrap:wrap;> *{margin:5px;}",
|
|
37
|
-
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0RldmVsb3BlcnMvc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQVl1QiIsImZpbGUiOiIuLi8uLi8uLi9zcmMvY29tcG9uZW50cy9EZXZlbG9wZXJzL3N0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcbmltcG9ydCBGYWJNVUkgZnJvbSAnQG11aS9tYXRlcmlhbC9GYWInO1xuaW1wb3J0IFR5cG9ncmFwaHkgZnJvbSAnQG11aS9tYXRlcmlhbC9UeXBvZ3JhcGh5JztcblxuaW1wb3J0IHsgVGhlbWUgfSBmcm9tICcuLi8uLi9UaGVtZSc7XG5cbmV4cG9ydCBjb25zdCBEZXRhaWxzID0gc3R5bGVkKCdzcGFuJykoe1xuICBkaXNwbGF5OiAnZmxleCcsXG4gIGZsZXhEaXJlY3Rpb246ICdjb2x1bW4nLFxuICBhbGlnbkl0ZW1zOiAnY2VudGVyJyxcbn0pO1xuXG5leHBvcnQgY29uc3QgQ29udGVudCA9IHN0eWxlZCgnZGl2Jykoe1xuICBtYXJnaW46ICcxMHB4IDAgMTBweCAwJyxcbiAgZGlzcGxheTogJ2ZsZXgnLFxuICBmbGV4V3JhcDogJ3dyYXAnLFxuICAnPiAqJzoge1xuICAgIG1hcmdpbjogJzVweCcsXG4gIH0sXG59KTtcblxuZXhwb3J0IGNvbnN0IFN0eWxlZFRleHQgPSBzdHlsZWQoVHlwb2dyYXBoeSk8eyB0aGVtZT86IFRoZW1lIH0+KChwcm9wcykgPT4gKHtcbiAgZm9udFdlaWdodDogcHJvcHMudGhlbWU/LmZvbnRXZWlnaHQuYm9sZCxcbiAgbWFyZ2luQm90dG9tOiAnMTBweCcsXG4gIHRleHRUcmFuc2Zvcm06ICdjYXBpdGFsaXplJyxcbn0pKTtcblxuZXhwb3J0IGNvbnN0IEZhYiA9IHN0eWxlZChGYWJNVUkpPHsgdGhlbWU/OiBUaGVtZSB9PigocHJvcHMpID0+ICh7XG4gIGJhY2tncm91bmRDb2xvcjogcHJvcHMudGhlbWU/LnBhbGV0dGUucHJpbWFyeS5tYWluLFxuICBjb2xvcjogcHJvcHMudGhlbWU/LnBhbGV0dGUud2hpdGUsXG59KSk7XG4iXX0= */",
|
|
38
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
39
|
-
});
|
|
40
|
-
const StyledText = exports.StyledText = /*#__PURE__*/(0, _base.default)(_Typography.default, process.env.NODE_ENV === "production" ? {
|
|
41
|
-
target: "e1u5w7z81"
|
|
42
|
-
} : {
|
|
43
|
-
target: "e1u5w7z81",
|
|
44
|
-
label: "StyledText"
|
|
45
|
-
})(props => {
|
|
46
|
-
var _props$theme;
|
|
47
|
-
return {
|
|
48
|
-
fontWeight: (_props$theme = props.theme) === null || _props$theme === void 0 ? void 0 : _props$theme.fontWeight.bold,
|
|
49
|
-
marginBottom: '10px',
|
|
50
|
-
textTransform: 'capitalize'
|
|
51
|
-
};
|
|
52
|
-
}, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0RldmVsb3BlcnMvc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXFCMEIiLCJmaWxlIjoiLi4vLi4vLi4vc3JjL2NvbXBvbmVudHMvRGV2ZWxvcGVycy9zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5pbXBvcnQgRmFiTVVJIGZyb20gJ0BtdWkvbWF0ZXJpYWwvRmFiJztcbmltcG9ydCBUeXBvZ3JhcGh5IGZyb20gJ0BtdWkvbWF0ZXJpYWwvVHlwb2dyYXBoeSc7XG5cbmltcG9ydCB7IFRoZW1lIH0gZnJvbSAnLi4vLi4vVGhlbWUnO1xuXG5leHBvcnQgY29uc3QgRGV0YWlscyA9IHN0eWxlZCgnc3BhbicpKHtcbiAgZGlzcGxheTogJ2ZsZXgnLFxuICBmbGV4RGlyZWN0aW9uOiAnY29sdW1uJyxcbiAgYWxpZ25JdGVtczogJ2NlbnRlcicsXG59KTtcblxuZXhwb3J0IGNvbnN0IENvbnRlbnQgPSBzdHlsZWQoJ2RpdicpKHtcbiAgbWFyZ2luOiAnMTBweCAwIDEwcHggMCcsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgZmxleFdyYXA6ICd3cmFwJyxcbiAgJz4gKic6IHtcbiAgICBtYXJnaW46ICc1cHgnLFxuICB9LFxufSk7XG5cbmV4cG9ydCBjb25zdCBTdHlsZWRUZXh0ID0gc3R5bGVkKFR5cG9ncmFwaHkpPHsgdGhlbWU/OiBUaGVtZSB9PigocHJvcHMpID0+ICh7XG4gIGZvbnRXZWlnaHQ6IHByb3BzLnRoZW1lPy5mb250V2VpZ2h0LmJvbGQsXG4gIG1hcmdpbkJvdHRvbTogJzEwcHgnLFxuICB0ZXh0VHJhbnNmb3JtOiAnY2FwaXRhbGl6ZScsXG59KSk7XG5cbmV4cG9ydCBjb25zdCBGYWIgPSBzdHlsZWQoRmFiTVVJKTx7IHRoZW1lPzogVGhlbWUgfT4oKHByb3BzKSA9PiAoe1xuICBiYWNrZ3JvdW5kQ29sb3I6IHByb3BzLnRoZW1lPy5wYWxldHRlLnByaW1hcnkubWFpbixcbiAgY29sb3I6IHByb3BzLnRoZW1lPy5wYWxldHRlLndoaXRlLFxufSkpO1xuIl19 */");
|
|
53
|
-
const Fab = exports.Fab = /*#__PURE__*/(0, _base.default)(_Fab.default, process.env.NODE_ENV === "production" ? {
|
|
54
|
-
target: "e1u5w7z80"
|
|
55
|
-
} : {
|
|
56
|
-
target: "e1u5w7z80",
|
|
57
|
-
label: "Fab"
|
|
58
|
-
})(props => {
|
|
59
|
-
var _props$theme2, _props$theme3;
|
|
60
|
-
return {
|
|
61
|
-
backgroundColor: (_props$theme2 = props.theme) === null || _props$theme2 === void 0 ? void 0 : _props$theme2.palette.primary.main,
|
|
62
|
-
color: (_props$theme3 = props.theme) === null || _props$theme3 === void 0 ? void 0 : _props$theme3.palette.white
|
|
63
|
-
};
|
|
64
|
-
}, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0RldmVsb3BlcnMvc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQTJCbUIiLCJmaWxlIjoiLi4vLi4vLi4vc3JjL2NvbXBvbmVudHMvRGV2ZWxvcGVycy9zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5pbXBvcnQgRmFiTVVJIGZyb20gJ0BtdWkvbWF0ZXJpYWwvRmFiJztcbmltcG9ydCBUeXBvZ3JhcGh5IGZyb20gJ0BtdWkvbWF0ZXJpYWwvVHlwb2dyYXBoeSc7XG5cbmltcG9ydCB7IFRoZW1lIH0gZnJvbSAnLi4vLi4vVGhlbWUnO1xuXG5leHBvcnQgY29uc3QgRGV0YWlscyA9IHN0eWxlZCgnc3BhbicpKHtcbiAgZGlzcGxheTogJ2ZsZXgnLFxuICBmbGV4RGlyZWN0aW9uOiAnY29sdW1uJyxcbiAgYWxpZ25JdGVtczogJ2NlbnRlcicsXG59KTtcblxuZXhwb3J0IGNvbnN0IENvbnRlbnQgPSBzdHlsZWQoJ2RpdicpKHtcbiAgbWFyZ2luOiAnMTBweCAwIDEwcHggMCcsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgZmxleFdyYXA6ICd3cmFwJyxcbiAgJz4gKic6IHtcbiAgICBtYXJnaW46ICc1cHgnLFxuICB9LFxufSk7XG5cbmV4cG9ydCBjb25zdCBTdHlsZWRUZXh0ID0gc3R5bGVkKFR5cG9ncmFwaHkpPHsgdGhlbWU/OiBUaGVtZSB9PigocHJvcHMpID0+ICh7XG4gIGZvbnRXZWlnaHQ6IHByb3BzLnRoZW1lPy5mb250V2VpZ2h0LmJvbGQsXG4gIG1hcmdpbkJvdHRvbTogJzEwcHgnLFxuICB0ZXh0VHJhbnNmb3JtOiAnY2FwaXRhbGl6ZScsXG59KSk7XG5cbmV4cG9ydCBjb25zdCBGYWIgPSBzdHlsZWQoRmFiTVVJKTx7IHRoZW1lPzogVGhlbWUgfT4oKHByb3BzKSA9PiAoe1xuICBiYWNrZ3JvdW5kQ29sb3I6IHByb3BzLnRoZW1lPy5wYWxldHRlLnByaW1hcnkubWFpbixcbiAgY29sb3I6IHByb3BzLnRoZW1lPy5wYWxldHRlLndoaXRlLFxufSkpO1xuIl19 */");
|
|
65
|
-
//# sourceMappingURL=styles.js.map
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.fileSizeSI = fileSizeSI;
|
|
7
|
-
exports.formatLicense = formatLicense;
|
|
8
|
-
/**
|
|
9
|
-
* Formats license field for webui.
|
|
10
|
-
* @see https://docs.npmjs.com/files/package.json#license
|
|
11
|
-
*/
|
|
12
|
-
// License should use type License defined above, but conflicts with the unit test that provide array or empty object
|
|
13
|
-
function formatLicense(license) {
|
|
14
|
-
if (typeof license === 'string') {
|
|
15
|
-
return license;
|
|
16
|
-
}
|
|
17
|
-
if (license !== null && license !== void 0 && license.type) {
|
|
18
|
-
return license.type;
|
|
19
|
-
}
|
|
20
|
-
return;
|
|
21
|
-
}
|
|
22
|
-
function fileSizeSI(a, b, c, d, e) {
|
|
23
|
-
return (b = Math, c = b.log, d = 1e3, e = c(a) / c(d) | 0, a / b.pow(d, e)).toFixed(2) + ' ' + (e ? 'kMGTPEZY'[--e] + 'B' : 'Bytes');
|
|
24
|
-
}
|
|
25
|
-
//# sourceMappingURL=utils.js.map
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _utils = require("./utils");
|
|
4
|
-
test('formatLicense as string', () => {
|
|
5
|
-
expect((0, _utils.formatLicense)('MIT')).toEqual('MIT');
|
|
6
|
-
});
|
|
7
|
-
test('formatLicense as format object', () => {
|
|
8
|
-
expect((0, _utils.formatLicense)({
|
|
9
|
-
type: 'MIT'
|
|
10
|
-
})).toEqual('MIT');
|
|
11
|
-
});
|
|
12
|
-
test('fileSizeSI as number 1000', () => {
|
|
13
|
-
expect((0, _utils.fileSizeSI)(1000)).toEqual('1.00 kB');
|
|
14
|
-
});
|
|
15
|
-
test('fileSizeSI as number 0', () => {
|
|
16
|
-
expect((0, _utils.fileSizeSI)(0)).toEqual('0.00 Bytes');
|
|
17
|
-
});
|
|
18
|
-
//# sourceMappingURL=utilts.spec.js.map
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _styles = require("./styles");
|
|
9
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
-
const Tag = ({
|
|
11
|
-
children
|
|
12
|
-
}) => /*#__PURE__*/_react.default.createElement(_styles.Wrapper, null, children);
|
|
13
|
-
var _default = exports.default = Tag;
|
|
14
|
-
//# sourceMappingURL=Tag.js.map
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.Wrapper = void 0;
|
|
7
|
-
var _base = _interopRequireDefault(require("@emotion/styled/base"));
|
|
8
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9
|
-
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
10
|
-
const Wrapper = exports.Wrapper = /*#__PURE__*/(0, _base.default)('span', process.env.NODE_ENV === "production" ? {
|
|
11
|
-
target: "e1bcw0zd0"
|
|
12
|
-
} : {
|
|
13
|
-
target: "e1bcw0zd0",
|
|
14
|
-
label: "Wrapper"
|
|
15
|
-
})(process.env.NODE_ENV === "production" ? {
|
|
16
|
-
name: "bk6wq0",
|
|
17
|
-
styles: "vertical-align:middle;line-height:22px;border-radius:2px;color:#485a3e;background-color:#f3f4f2;padding:0.22rem 0.4rem;margin:8px 8px 0 0"
|
|
18
|
-
} : {
|
|
19
|
-
name: "bk6wq0",
|
|
20
|
-
styles: "vertical-align:middle;line-height:22px;border-radius:2px;color:#485a3e;background-color:#f3f4f2;padding:0.22rem 0.4rem;margin:8px 8px 0 0",
|
|
21
|
-
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9jb21wb25lbnRzL1BhY2thZ2UvVGFnL3N0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFFdUIiLCJmaWxlIjoiLi4vLi4vLi4vLi4vc3JjL2NvbXBvbmVudHMvUGFja2FnZS9UYWcvc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuXG5leHBvcnQgY29uc3QgV3JhcHBlciA9IHN0eWxlZCgnc3BhbicpKHtcbiAgdmVydGljYWxBbGlnbjogJ21pZGRsZScsXG4gIGxpbmVIZWlnaHQ6ICcyMnB4JyxcbiAgYm9yZGVyUmFkaXVzOiAnMnB4JyxcbiAgY29sb3I6ICcjNDg1YTNlJyxcbiAgYmFja2dyb3VuZENvbG9yOiAnI2YzZjRmMicsXG4gIHBhZGRpbmc6ICcwLjIycmVtIDAuNHJlbScsXG4gIG1hcmdpbjogJzhweCA4cHggMCAwJyxcbn0pO1xuIl19 */",
|
|
22
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
23
|
-
});
|
|
24
|
-
//# sourceMappingURL=styles.js.map
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _Button = _interopRequireDefault(require("@mui/material/Button"));
|
|
8
|
-
var _Dialog = _interopRequireDefault(require("@mui/material/Dialog"));
|
|
9
|
-
var _DialogActions = _interopRequireDefault(require("@mui/material/DialogActions"));
|
|
10
|
-
var _react = _interopRequireDefault(require("react"));
|
|
11
|
-
var _reactI18next = require("react-i18next");
|
|
12
|
-
var _styles = require("./styles");
|
|
13
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
|
-
const RegistryInfoDialog = ({
|
|
15
|
-
open = false,
|
|
16
|
-
children,
|
|
17
|
-
onClose,
|
|
18
|
-
title = ''
|
|
19
|
-
}) => {
|
|
20
|
-
const {
|
|
21
|
-
t
|
|
22
|
-
} = (0, _reactI18next.useTranslation)();
|
|
23
|
-
return /*#__PURE__*/_react.default.createElement(_Dialog.default, {
|
|
24
|
-
"data-testid": 'registryInfo--dialog',
|
|
25
|
-
id: "registryInfo--dialog-container",
|
|
26
|
-
maxWidth: "sm",
|
|
27
|
-
onClose: onClose,
|
|
28
|
-
open: open
|
|
29
|
-
}, /*#__PURE__*/_react.default.createElement(_styles.Title, null, title), /*#__PURE__*/_react.default.createElement(_styles.Content, null, children), /*#__PURE__*/_react.default.createElement(_DialogActions.default, null, /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
30
|
-
color: "inherit",
|
|
31
|
-
id: "registryInfo--dialog-close",
|
|
32
|
-
onClick: onClose
|
|
33
|
-
}, t('button.close'))));
|
|
34
|
-
};
|
|
35
|
-
var _default = exports.default = RegistryInfoDialog;
|
|
36
|
-
//# sourceMappingURL=RegistryInfoDialog.js.map
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.Title = exports.TextContent = exports.Content = void 0;
|
|
7
|
-
var _base = _interopRequireDefault(require("@emotion/styled/base"));
|
|
8
|
-
var _DialogContent = _interopRequireDefault(require("@mui/material/DialogContent"));
|
|
9
|
-
var _DialogTitle = _interopRequireDefault(require("@mui/material/DialogTitle"));
|
|
10
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
const Title = exports.Title = /*#__PURE__*/(0, _base.default)(_DialogTitle.default, process.env.NODE_ENV === "production" ? {
|
|
12
|
-
target: "e1gzb7522"
|
|
13
|
-
} : {
|
|
14
|
-
target: "e1gzb7522",
|
|
15
|
-
label: "Title"
|
|
16
|
-
})(props => {
|
|
17
|
-
var _props$theme, _props$theme2, _props$theme3;
|
|
18
|
-
return {
|
|
19
|
-
backgroundColor: (_props$theme = props.theme) === null || _props$theme === void 0 ? void 0 : _props$theme.palette.primary.main,
|
|
20
|
-
color: (_props$theme2 = props.theme) === null || _props$theme2 === void 0 ? void 0 : _props$theme2.palette.white,
|
|
21
|
-
fontSize: (_props$theme3 = props.theme) === null || _props$theme3 === void 0 ? void 0 : _props$theme3.fontSize.lg
|
|
22
|
-
};
|
|
23
|
-
}, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9zZWN0aW9ucy9IZWFkZXIvUmVnaXN0cnlJbmZvRGlhbG9nL3N0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFNcUIiLCJmaWxlIjoiLi4vLi4vLi4vLi4vc3JjL3NlY3Rpb25zL0hlYWRlci9SZWdpc3RyeUluZm9EaWFsb2cvc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuaW1wb3J0IERpYWxvZ0NvbnRlbnQgZnJvbSAnQG11aS9tYXRlcmlhbC9EaWFsb2dDb250ZW50JztcbmltcG9ydCBEaWFsb2dUaXRsZSBmcm9tICdAbXVpL21hdGVyaWFsL0RpYWxvZ1RpdGxlJztcblxuaW1wb3J0IHsgVGhlbWUgfSBmcm9tICcuLi8uLi8uLi8nO1xuXG5leHBvcnQgY29uc3QgVGl0bGUgPSBzdHlsZWQoRGlhbG9nVGl0bGUpPHsgdGhlbWU/OiBUaGVtZSB9PigocHJvcHMpID0+ICh7XG4gIGJhY2tncm91bmRDb2xvcjogcHJvcHMudGhlbWU/LnBhbGV0dGUucHJpbWFyeS5tYWluLFxuICBjb2xvcjogcHJvcHMudGhlbWU/LnBhbGV0dGUud2hpdGUsXG4gIGZvbnRTaXplOiBwcm9wcy50aGVtZT8uZm9udFNpemUubGcsXG59KSk7XG5cbmV4cG9ydCBjb25zdCBDb250ZW50ID0gc3R5bGVkKERpYWxvZ0NvbnRlbnQpPHsgdGhlbWU/OiBUaGVtZSB9PigoeyB0aGVtZSB9KSA9PiAoe1xuICBwYWRkaW5nOiAnMCAyNHB4JyxcbiAgYmFja2dyb3VuZENvbG9yOiB0aGVtZT8ucGFsZXR0ZS5iYWNrZ3JvdW5kLmRlZmF1bHQsXG59KSk7XG5cbmV4cG9ydCBjb25zdCBUZXh0Q29udGVudCA9IHN0eWxlZCgnZGl2Jyk8eyB0aGVtZT86IFRoZW1lIH0+KCh7IHRoZW1lIH0pID0+ICh7XG4gIHBhZGRpbmc6ICcxMHB4IDI0cHgnLFxuICBiYWNrZ3JvdW5kQ29sb3I6IHRoZW1lPy5wYWxldHRlLmJhY2tncm91bmQuZGVmYXVsdCxcbn0pKTtcbiJdfQ== */");
|
|
24
|
-
const Content = exports.Content = /*#__PURE__*/(0, _base.default)(_DialogContent.default, process.env.NODE_ENV === "production" ? {
|
|
25
|
-
target: "e1gzb7521"
|
|
26
|
-
} : {
|
|
27
|
-
target: "e1gzb7521",
|
|
28
|
-
label: "Content"
|
|
29
|
-
})(({
|
|
30
|
-
theme
|
|
31
|
-
}) => ({
|
|
32
|
-
padding: '0 24px',
|
|
33
|
-
backgroundColor: theme === null || theme === void 0 ? void 0 : theme.palette.background.default
|
|
34
|
-
}), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9zZWN0aW9ucy9IZWFkZXIvUmVnaXN0cnlJbmZvRGlhbG9nL3N0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFZdUIiLCJmaWxlIjoiLi4vLi4vLi4vLi4vc3JjL3NlY3Rpb25zL0hlYWRlci9SZWdpc3RyeUluZm9EaWFsb2cvc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuaW1wb3J0IERpYWxvZ0NvbnRlbnQgZnJvbSAnQG11aS9tYXRlcmlhbC9EaWFsb2dDb250ZW50JztcbmltcG9ydCBEaWFsb2dUaXRsZSBmcm9tICdAbXVpL21hdGVyaWFsL0RpYWxvZ1RpdGxlJztcblxuaW1wb3J0IHsgVGhlbWUgfSBmcm9tICcuLi8uLi8uLi8nO1xuXG5leHBvcnQgY29uc3QgVGl0bGUgPSBzdHlsZWQoRGlhbG9nVGl0bGUpPHsgdGhlbWU/OiBUaGVtZSB9PigocHJvcHMpID0+ICh7XG4gIGJhY2tncm91bmRDb2xvcjogcHJvcHMudGhlbWU/LnBhbGV0dGUucHJpbWFyeS5tYWluLFxuICBjb2xvcjogcHJvcHMudGhlbWU/LnBhbGV0dGUud2hpdGUsXG4gIGZvbnRTaXplOiBwcm9wcy50aGVtZT8uZm9udFNpemUubGcsXG59KSk7XG5cbmV4cG9ydCBjb25zdCBDb250ZW50ID0gc3R5bGVkKERpYWxvZ0NvbnRlbnQpPHsgdGhlbWU/OiBUaGVtZSB9PigoeyB0aGVtZSB9KSA9PiAoe1xuICBwYWRkaW5nOiAnMCAyNHB4JyxcbiAgYmFja2dyb3VuZENvbG9yOiB0aGVtZT8ucGFsZXR0ZS5iYWNrZ3JvdW5kLmRlZmF1bHQsXG59KSk7XG5cbmV4cG9ydCBjb25zdCBUZXh0Q29udGVudCA9IHN0eWxlZCgnZGl2Jyk8eyB0aGVtZT86IFRoZW1lIH0+KCh7IHRoZW1lIH0pID0+ICh7XG4gIHBhZGRpbmc6ICcxMHB4IDI0cHgnLFxuICBiYWNrZ3JvdW5kQ29sb3I6IHRoZW1lPy5wYWxldHRlLmJhY2tncm91bmQuZGVmYXVsdCxcbn0pKTtcbiJdfQ== */");
|
|
35
|
-
const TextContent = exports.TextContent = /*#__PURE__*/(0, _base.default)('div', process.env.NODE_ENV === "production" ? {
|
|
36
|
-
target: "e1gzb7520"
|
|
37
|
-
} : {
|
|
38
|
-
target: "e1gzb7520",
|
|
39
|
-
label: "TextContent"
|
|
40
|
-
})(({
|
|
41
|
-
theme
|
|
42
|
-
}) => ({
|
|
43
|
-
padding: '10px 24px',
|
|
44
|
-
backgroundColor: theme === null || theme === void 0 ? void 0 : theme.palette.background.default
|
|
45
|
-
}), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9zZWN0aW9ucy9IZWFkZXIvUmVnaXN0cnlJbmZvRGlhbG9nL3N0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFpQjJCIiwiZmlsZSI6Ii4uLy4uLy4uLy4uL3NyYy9zZWN0aW9ucy9IZWFkZXIvUmVnaXN0cnlJbmZvRGlhbG9nL3N0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcbmltcG9ydCBEaWFsb2dDb250ZW50IGZyb20gJ0BtdWkvbWF0ZXJpYWwvRGlhbG9nQ29udGVudCc7XG5pbXBvcnQgRGlhbG9nVGl0bGUgZnJvbSAnQG11aS9tYXRlcmlhbC9EaWFsb2dUaXRsZSc7XG5cbmltcG9ydCB7IFRoZW1lIH0gZnJvbSAnLi4vLi4vLi4vJztcblxuZXhwb3J0IGNvbnN0IFRpdGxlID0gc3R5bGVkKERpYWxvZ1RpdGxlKTx7IHRoZW1lPzogVGhlbWUgfT4oKHByb3BzKSA9PiAoe1xuICBiYWNrZ3JvdW5kQ29sb3I6IHByb3BzLnRoZW1lPy5wYWxldHRlLnByaW1hcnkubWFpbixcbiAgY29sb3I6IHByb3BzLnRoZW1lPy5wYWxldHRlLndoaXRlLFxuICBmb250U2l6ZTogcHJvcHMudGhlbWU/LmZvbnRTaXplLmxnLFxufSkpO1xuXG5leHBvcnQgY29uc3QgQ29udGVudCA9IHN0eWxlZChEaWFsb2dDb250ZW50KTx7IHRoZW1lPzogVGhlbWUgfT4oKHsgdGhlbWUgfSkgPT4gKHtcbiAgcGFkZGluZzogJzAgMjRweCcsXG4gIGJhY2tncm91bmRDb2xvcjogdGhlbWU/LnBhbGV0dGUuYmFja2dyb3VuZC5kZWZhdWx0LFxufSkpO1xuXG5leHBvcnQgY29uc3QgVGV4dENvbnRlbnQgPSBzdHlsZWQoJ2RpdicpPHsgdGhlbWU/OiBUaGVtZSB9PigoeyB0aGVtZSB9KSA9PiAoe1xuICBwYWRkaW5nOiAnMTBweCAyNHB4JyxcbiAgYmFja2dyb3VuZENvbG9yOiB0aGVtZT8ucGFsZXR0ZS5iYWNrZ3JvdW5kLmRlZmF1bHQsXG59KSk7XG4iXX0= */");
|
|
46
|
-
//# sourceMappingURL=styles.js.map
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const Details: import("@emotion/styled").StyledComponent<{
|
|
3
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
-
as?: import("react").ElementType<any> | undefined;
|
|
5
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
6
|
-
export declare const Content: import("@emotion/styled").StyledComponent<{
|
|
7
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
8
|
-
as?: import("react").ElementType<any> | undefined;
|
|
9
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
10
|
-
export declare const StyledText: import("@emotion/styled").StyledComponent<any, {}, {}>;
|
|
11
|
-
export declare const Fab: import("@emotion/styled").StyledComponent<any, {}, {}>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { LicenseInterface } from '../../types/packageMeta';
|
|
2
|
-
/**
|
|
3
|
-
* Formats license field for webui.
|
|
4
|
-
* @see https://docs.npmjs.com/files/package.json#license
|
|
5
|
-
*/
|
|
6
|
-
export declare function formatLicense(license: string | LicenseInterface): string | undefined;
|
|
7
|
-
export declare function fileSizeSI(a: number, b?: typeof Math, c?: (p: number) => number, d?: number, e?: number): string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './Tag';
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const Wrapper: import("@emotion/styled").StyledComponent<{
|
|
3
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
-
as?: import("react").ElementType<any> | undefined;
|
|
5
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './RegistryInfoDialog';
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const Title: import("@emotion/styled").StyledComponent<any, {}, {}>;
|
|
3
|
-
export declare const Content: import("@emotion/styled").StyledComponent<import("@mui/material/DialogContent").DialogContentProps & {
|
|
4
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
5
|
-
} & {
|
|
6
|
-
theme?: import("@mui/material").Theme | undefined;
|
|
7
|
-
}, {}, {}>;
|
|
8
|
-
export declare const TextContent: import("@emotion/styled").StyledComponent<{
|
|
9
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
10
|
-
as?: import("react").ElementType<any> | undefined;
|
|
11
|
-
} & {
|
|
12
|
-
theme?: import("@mui/material").Theme | undefined;
|
|
13
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import styled from '@emotion/styled';
|
|
2
|
-
import FabMUI from '@mui/material/Fab';
|
|
3
|
-
import Typography from '@mui/material/Typography';
|
|
4
|
-
|
|
5
|
-
import { Theme } from '../../Theme';
|
|
6
|
-
|
|
7
|
-
export const Details = styled('span')({
|
|
8
|
-
display: 'flex',
|
|
9
|
-
flexDirection: 'column',
|
|
10
|
-
alignItems: 'center',
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
export const Content = styled('div')({
|
|
14
|
-
margin: '10px 0 10px 0',
|
|
15
|
-
display: 'flex',
|
|
16
|
-
flexWrap: 'wrap',
|
|
17
|
-
'> *': {
|
|
18
|
-
margin: '5px',
|
|
19
|
-
},
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
export const StyledText = styled(Typography)<{ theme?: Theme }>((props) => ({
|
|
23
|
-
fontWeight: props.theme?.fontWeight.bold,
|
|
24
|
-
marginBottom: '10px',
|
|
25
|
-
textTransform: 'capitalize',
|
|
26
|
-
}));
|
|
27
|
-
|
|
28
|
-
export const Fab = styled(FabMUI)<{ theme?: Theme }>((props) => ({
|
|
29
|
-
backgroundColor: props.theme?.palette.primary.main,
|
|
30
|
-
color: props.theme?.palette.white,
|
|
31
|
-
}));
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { LicenseInterface } from '../../types/packageMeta';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Formats license field for webui.
|
|
5
|
-
* @see https://docs.npmjs.com/files/package.json#license
|
|
6
|
-
*/
|
|
7
|
-
// License should use type License defined above, but conflicts with the unit test that provide array or empty object
|
|
8
|
-
export function formatLicense(license: string | LicenseInterface): string | undefined {
|
|
9
|
-
if (typeof license === 'string') {
|
|
10
|
-
return license;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
if (license?.type) {
|
|
14
|
-
return license.type;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
return;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export function fileSizeSI(
|
|
21
|
-
a: number,
|
|
22
|
-
b?: typeof Math,
|
|
23
|
-
c?: (p: number) => number,
|
|
24
|
-
d?: number,
|
|
25
|
-
e?: number
|
|
26
|
-
): string {
|
|
27
|
-
return (
|
|
28
|
-
((b = Math), (c = b.log), (d = 1e3), (e = (c(a) / c(d)) | 0), a / b.pow(d, e)).toFixed(2) +
|
|
29
|
-
' ' +
|
|
30
|
-
(e ? 'kMGTPEZY'[--e] + 'B' : 'Bytes')
|
|
31
|
-
);
|
|
32
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { fileSizeSI, formatLicense } from './utils';
|
|
2
|
-
|
|
3
|
-
test('formatLicense as string', () => {
|
|
4
|
-
expect(formatLicense('MIT')).toEqual('MIT');
|
|
5
|
-
});
|
|
6
|
-
|
|
7
|
-
test('formatLicense as format object', () => {
|
|
8
|
-
expect(formatLicense({ type: 'MIT' })).toEqual('MIT');
|
|
9
|
-
});
|
|
10
|
-
|
|
11
|
-
test('fileSizeSI as number 1000', () => {
|
|
12
|
-
expect(fileSizeSI(1000)).toEqual('1.00 kB');
|
|
13
|
-
});
|
|
14
|
-
|
|
15
|
-
test('fileSizeSI as number 0', () => {
|
|
16
|
-
expect(fileSizeSI(0)).toEqual('0.00 Bytes');
|
|
17
|
-
});
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
import { render } from '../../../test/test-react-testing-library';
|
|
4
|
-
import Tag from './Tag';
|
|
5
|
-
|
|
6
|
-
describe('<Tag /> component', () => {
|
|
7
|
-
test('should load the component in default state', () => {
|
|
8
|
-
const { container } = render(
|
|
9
|
-
<Tag>
|
|
10
|
-
<span>{'I am a child'}</span>
|
|
11
|
-
</Tag>
|
|
12
|
-
);
|
|
13
|
-
expect(container.firstChild).toMatchSnapshot();
|
|
14
|
-
});
|
|
15
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './Tag';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import styled from '@emotion/styled';
|
|
2
|
-
|
|
3
|
-
export const Wrapper = styled('span')({
|
|
4
|
-
verticalAlign: 'middle',
|
|
5
|
-
lineHeight: '22px',
|
|
6
|
-
borderRadius: '2px',
|
|
7
|
-
color: '#485a3e',
|
|
8
|
-
backgroundColor: '#f3f4f2',
|
|
9
|
-
padding: '0.22rem 0.4rem',
|
|
10
|
-
margin: '8px 8px 0 0',
|
|
11
|
-
});
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import styled from '@emotion/styled';
|
|
2
|
-
|
|
3
|
-
import { TextField, Theme } from '../../../';
|
|
4
|
-
|
|
5
|
-
export interface InputFieldProps {
|
|
6
|
-
color: string;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export const Wrapper = styled('div')({
|
|
10
|
-
width: '100%',
|
|
11
|
-
position: 'relative',
|
|
12
|
-
zIndex: 1,
|
|
13
|
-
});
|
|
14
|
-
|
|
15
|
-
export const StyledTextField = styled(TextField)<{ theme?: Theme }>((props) => ({
|
|
16
|
-
'& .MuiInputBase-root': {
|
|
17
|
-
':before': {
|
|
18
|
-
content: "''",
|
|
19
|
-
border: 'none',
|
|
20
|
-
},
|
|
21
|
-
':after': {
|
|
22
|
-
borderColor: props.theme?.palette.white,
|
|
23
|
-
},
|
|
24
|
-
':hover:before': {
|
|
25
|
-
content: 'none',
|
|
26
|
-
},
|
|
27
|
-
':hover:after': {
|
|
28
|
-
content: 'none',
|
|
29
|
-
transform: 'scaleX(1)',
|
|
30
|
-
},
|
|
31
|
-
[`@media screen and (min-width: ${props.theme?.breakPoints.medium}px)`]: {
|
|
32
|
-
':hover:after': {
|
|
33
|
-
content: "''",
|
|
34
|
-
},
|
|
35
|
-
},
|
|
36
|
-
},
|
|
37
|
-
'& .MuiInputBase-input': {
|
|
38
|
-
[`@media screen and (min-width: ${props.theme?.breakPoints.medium}px)`]: {
|
|
39
|
-
color: props.theme?.palette.white,
|
|
40
|
-
},
|
|
41
|
-
},
|
|
42
|
-
}));
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import Button from '@mui/material/Button';
|
|
2
|
-
import Dialog from '@mui/material/Dialog';
|
|
3
|
-
import DialogActions from '@mui/material/DialogActions';
|
|
4
|
-
import React from 'react';
|
|
5
|
-
import { useTranslation } from 'react-i18next';
|
|
6
|
-
|
|
7
|
-
import { Content, Title } from './styles';
|
|
8
|
-
import { Props } from './types';
|
|
9
|
-
|
|
10
|
-
const RegistryInfoDialog: React.FC<Props> = ({ open = false, children, onClose, title = '' }) => {
|
|
11
|
-
const { t } = useTranslation();
|
|
12
|
-
return (
|
|
13
|
-
<Dialog
|
|
14
|
-
data-testid={'registryInfo--dialog'}
|
|
15
|
-
id="registryInfo--dialog-container"
|
|
16
|
-
maxWidth="sm"
|
|
17
|
-
onClose={onClose}
|
|
18
|
-
open={open}
|
|
19
|
-
>
|
|
20
|
-
<Title>{title}</Title>
|
|
21
|
-
<Content>{children}</Content>
|
|
22
|
-
<DialogActions>
|
|
23
|
-
<Button color="inherit" id="registryInfo--dialog-close" onClick={onClose}>
|
|
24
|
-
{t('button.close')}
|
|
25
|
-
</Button>
|
|
26
|
-
</DialogActions>
|
|
27
|
-
</Dialog>
|
|
28
|
-
);
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
export default RegistryInfoDialog;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './RegistryInfoDialog';
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import styled from '@emotion/styled';
|
|
2
|
-
import DialogContent from '@mui/material/DialogContent';
|
|
3
|
-
import DialogTitle from '@mui/material/DialogTitle';
|
|
4
|
-
|
|
5
|
-
import { Theme } from '../../../';
|
|
6
|
-
|
|
7
|
-
export const Title = styled(DialogTitle)<{ theme?: Theme }>((props) => ({
|
|
8
|
-
backgroundColor: props.theme?.palette.primary.main,
|
|
9
|
-
color: props.theme?.palette.white,
|
|
10
|
-
fontSize: props.theme?.fontSize.lg,
|
|
11
|
-
}));
|
|
12
|
-
|
|
13
|
-
export const Content = styled(DialogContent)<{ theme?: Theme }>(({ theme }) => ({
|
|
14
|
-
padding: '0 24px',
|
|
15
|
-
backgroundColor: theme?.palette.background.default,
|
|
16
|
-
}));
|
|
17
|
-
|
|
18
|
-
export const TextContent = styled('div')<{ theme?: Theme }>(({ theme }) => ({
|
|
19
|
-
padding: '10px 24px',
|
|
20
|
-
backgroundColor: theme?.palette.background.default,
|
|
21
|
-
}));
|
|
File without changes
|
|
File without changes
|
|
File without changes
|