@verdaccio/ui-components 4.0.0-next-8.2 → 4.0.0-next-8.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 +9 -1
- package/CHANGELOG.md +2 -273
- package/build/AppTest/AppRoute.js +18 -27
- package/build/AppTest/pages/Front/Home.js +2 -8
- package/build/AppTest/pages/Front/index.js +1 -13
- package/build/AppTest/pages/Version/Version.js +15 -19
- package/build/AppTest/pages/Version/index.js +1 -13
- package/build/Theme/ResetStyles.js +10 -16
- package/build/Theme/StyleBaseline.js +6 -13
- package/build/Theme/ThemeProvider.js +25 -33
- package/build/Theme/colors.js +1 -7
- package/build/Theme/index.js +5 -44
- package/build/Theme/theme.js +26 -32
- package/build/components/ActionBar/ActionBar.js +26 -33
- package/build/components/ActionBar/ActionBarAction.js +59 -59
- package/build/components/ActionBar/index.js +1 -13
- package/build/components/Author/Author.js +17 -23
- package/build/components/Author/index.js +1 -13
- package/build/components/Author/styles.js +5 -12
- package/build/components/CopyClipboard/CopyToClipBoard.js +40 -40
- package/build/components/CopyClipboard/index.js +2 -20
- package/build/components/CopyClipboard/utils.js +1 -8
- package/build/components/Dependencies/Dependencies.js +27 -34
- package/build/components/Dependencies/DependencyBlock.js +29 -35
- package/build/components/Dependencies/index.js +1 -13
- package/build/components/Dependencies/types.js +1 -5
- package/build/components/Dependencies/utits.js +1 -7
- package/build/components/Deprecated/Deprecated.js +10 -16
- package/build/components/Deprecated/index.js +1 -13
- package/build/components/Developers/DeveloperType.js +1 -7
- package/build/components/Developers/Developers.js +29 -37
- package/build/components/Developers/Title.js +26 -29
- package/build/components/Developers/get-unique-developer-values.js +1 -7
- package/build/components/Developers/index.js +2 -20
- package/build/components/Distribution/Dist.js +29 -32
- package/build/components/Distribution/index.js +1 -13
- package/build/components/Distribution/styles.js +7 -14
- package/build/components/Engines/Engines.js +53 -54
- package/build/components/Engines/index.js +1 -13
- package/build/components/Engines/styles.js +5 -12
- package/build/components/ErrorBoundary/ErrorBoundary.js +5 -14
- package/build/components/ErrorBoundary/index.js +1 -13
- package/build/components/Forbidden/Forbidden.js +33 -35
- package/build/components/Forbidden/index.js +1 -13
- package/build/components/FundButton/FundButton.js +42 -41
- package/build/components/FundButton/index.js +1 -13
- package/build/components/HeaderInfoDialog/HeaderInfoDialog.js +39 -41
- package/build/components/HeaderInfoDialog/index.js +1 -13
- package/build/components/Heading/Heading.js +12 -17
- package/build/components/Heading/index.js +1 -13
- package/build/components/Help/Help.js +23 -31
- package/build/components/Help/index.js +1 -13
- package/build/components/Help/styles.js +3 -10
- package/build/components/Icons/DevsIcons/CommonJS.js +4 -11
- package/build/components/Icons/DevsIcons/ES6Module.js +4 -11
- package/build/components/Icons/DevsIcons/Git.js +4 -11
- package/build/components/Icons/DevsIcons/NodeJS.js +4 -11
- package/build/components/Icons/DevsIcons/TypeScript.js +4 -11
- package/build/components/Icons/DevsIcons/index.js +5 -40
- package/build/components/Icons/Earth.js +13 -19
- package/build/components/Icons/FileBinary.js +6 -12
- package/build/components/Icons/Law.js +6 -12
- package/build/components/Icons/License.js +7 -13
- package/build/components/Icons/License.js.map +1 -1
- package/build/components/Icons/Managers/Npm.js +4 -11
- package/build/components/Icons/Managers/Pnpm.js +4 -11
- package/build/components/Icons/Managers/Yarn.js +4 -11
- package/build/components/Icons/Managers/index.js +3 -26
- package/build/components/Icons/SvgIcon.js +27 -23
- package/build/components/Icons/Time.js +8 -14
- package/build/components/Icons/Version.js +6 -12
- package/build/components/Icons/index.js +8 -79
- package/build/components/Install/Install.js +32 -39
- package/build/components/Install/InstallListItem.js +47 -52
- package/build/components/Install/index.js +1 -13
- package/build/components/Keywords/KeywordListItems.js +11 -17
- package/build/components/Keywords/Keywords.js +20 -25
- package/build/components/Keywords/index.js +1 -13
- package/build/components/Label/Label.js +17 -18
- package/build/components/Label/index.js +1 -13
- package/build/components/Link/Link.js +16 -22
- package/build/components/Link/index.js +1 -13
- package/build/components/LinkExternal/LinkExternal.js +15 -19
- package/build/components/LinkExternal/index.js +1 -13
- package/build/components/Loading/Loading.js +8 -15
- package/build/components/Loading/Spinner/Spinner.js +41 -35
- package/build/components/Loading/Spinner/index.js +1 -13
- package/build/components/Loading/index.js +1 -13
- package/build/components/Loading/styles.js +15 -19
- package/build/components/LoginDialog/LoginDialog.js +72 -68
- package/build/components/LoginDialog/LoginDialogCloseButton.js +28 -31
- package/build/components/LoginDialog/LoginDialogForm.js +46 -45
- package/build/components/LoginDialog/LoginDialogFormError.js +34 -36
- package/build/components/LoginDialog/LoginDialogHeader.js +42 -42
- package/build/components/LoginDialog/index.js +1 -13
- package/build/components/Logo/Logo.js +44 -47
- package/build/components/Logo/index.js +1 -13
- package/build/components/MenuItem/MenuItem.js +7 -16
- package/build/components/MenuItem/index.js +1 -13
- package/build/components/NoItems/NoItems.js +16 -17
- package/build/components/NoItems/index.js +1 -13
- package/build/components/NotFound/NotFound.js +31 -35
- package/build/components/NotFound/index.js +1 -13
- package/build/components/Package/Package.js +105 -100
- package/build/components/Package/index.js +1 -20
- package/build/components/Package/styles.js +78 -73
- package/build/components/PackageList/PackageList.js +56 -57
- package/build/components/PackageList/index.js +1 -13
- package/build/components/Person/Person.js +22 -28
- package/build/components/Person/PersonTooltip.js +17 -21
- package/build/components/Person/index.js +1 -13
- package/build/components/Person/utils.js +6 -14
- package/build/components/RawViewer/RawViewer.js +27 -33
- package/build/components/RawViewer/index.js +1 -13
- package/build/components/Readme/Readme.js +21 -27
- package/build/components/Readme/Readme.js.map +1 -1
- package/build/components/Readme/Readme.spec.js +10 -13
- package/build/components/Readme/Readme.spec.js.map +1 -1
- package/build/components/Readme/index.js +1 -13
- package/build/components/Readme/types.js +1 -5
- package/build/components/Readme/utils.js +8 -16
- package/build/components/RegistryInfoDialog/RegistryInfoDialog.js +18 -24
- package/build/components/RegistryInfoDialog/index.js +1 -13
- package/build/components/RegistryInfoDialog/styles.js +34 -32
- package/build/components/RegistryInfoDialog/types.js +1 -5
- package/build/components/Repository/Repository.js +36 -41
- package/build/components/Repository/index.js +1 -13
- package/build/components/Search/AutoComplete/AutoComplete.js +22 -31
- package/build/components/Search/AutoComplete/index.js +1 -13
- package/build/components/Search/AutoComplete/styles.js +2 -9
- package/build/components/Search/Search.js +71 -69
- package/build/components/Search/SearchItem.js +87 -79
- package/build/components/Search/index.js +1 -13
- package/build/components/Search/styles.js +7 -14
- package/build/components/Search/utils.js +3 -9
- package/build/components/SettingsMenu/SettingsMenu.js +56 -57
- package/build/components/SettingsMenu/index.js +1 -13
- package/build/components/SideBarTitle/SideBarTitle.js +52 -51
- package/build/components/SideBarTitle/index.js +1 -13
- package/build/components/SideBarTitle/utils.js +6 -15
- package/build/components/TextField/TextField.js +22 -21
- package/build/components/TextField/index.js +1 -13
- package/build/components/UpLinks/UpLinks.js +32 -38
- package/build/components/UpLinks/UplinkLink.js +12 -18
- package/build/components/UpLinks/index.js +1 -13
- package/build/components/UpLinks/styles.js +28 -29
- package/build/components/Versions/HistoryList.js +56 -60
- package/build/components/Versions/TagList.js +29 -33
- package/build/components/Versions/Versions.js +44 -52
- package/build/components/Versions/index.js +1 -13
- package/build/components/Versions/styles.js +26 -27
- package/build/components/Versions/types.js +1 -5
- package/build/hooks/index.js +2 -20
- package/build/hooks/useLocalStorage.js +7 -12
- package/build/hooks/useOnClickOutside.js +4 -9
- package/build/index.js +63 -530
- package/build/layouts/Version/Version.js +9 -16
- package/build/layouts/Version/index.js +1 -13
- package/build/providers/AppConfigurationProvider/AppConfigurationProvider.js +24 -31
- package/build/providers/AppConfigurationProvider/index.js +1 -20
- package/build/providers/PersistenceSettingProvider/PersistenceSettingProvider.js +15 -24
- package/build/providers/PersistenceSettingProvider/index.js +1 -20
- package/build/providers/TranslatorProvider/TranslatorProvider.js +24 -30
- package/build/providers/TranslatorProvider/TranslatorProvider.spec.js +19 -22
- package/build/providers/TranslatorProvider/index.js +1 -26
- package/build/providers/VersionProvider/VersionProvider.js +27 -29
- package/build/providers/VersionProvider/index.js +1 -20
- package/build/providers/index.js +3 -38
- package/build/sections/Detail/ContainerContent.js +20 -28
- package/build/sections/Detail/Detail.js +22 -30
- package/build/sections/Detail/ReadmeSection.js +8 -14
- package/build/sections/Detail/Tabs.js +20 -26
- package/build/sections/Detail/index.js +1 -13
- package/build/sections/Footer/Footer.js +73 -70
- package/build/sections/Footer/index.js +1 -13
- package/build/sections/Footer/styles.js +62 -57
- package/build/sections/Header/Header.js +34 -42
- package/build/sections/Header/HeaderGreetings.js +12 -18
- package/build/sections/Header/HeaderLeft.js +25 -29
- package/build/sections/Header/HeaderMenu.js +23 -29
- package/build/sections/Header/HeaderRight.js +41 -49
- package/build/sections/Header/HeaderSettingsDialog.js +60 -58
- package/build/sections/Header/HeaderToolTip.js +13 -17
- package/build/sections/Header/HeaderToolTipIcon.js +23 -31
- package/build/sections/Header/LanguageSwitch.js +51 -54
- package/build/sections/Header/RegistryInfoContent/RegistryInfoContent.js +75 -80
- package/build/sections/Header/RegistryInfoContent/index.js +1 -13
- package/build/sections/Header/RegistryInfoContent/styles.js +12 -16
- package/build/sections/Header/index.js +1 -13
- package/build/sections/Header/styles.js +32 -36
- package/build/sections/Home/Home.js +14 -19
- package/build/sections/Home/index.js +1 -13
- package/build/sections/SideBar/Sidebar.js +40 -47
- package/build/sections/SideBar/index.js +1 -13
- package/build/sections/index.js +2 -20
- package/build/src/Theme/index.d.ts +1 -1
- package/build/store/api.js +28 -29
- package/build/store/index.js +3 -51
- package/build/store/models/configuration.js +20 -22
- package/build/store/models/download.js +26 -27
- package/build/store/models/index.js +13 -19
- package/build/store/models/login.js +60 -63
- package/build/store/models/manifest.js +57 -58
- package/build/store/models/packages.js +29 -27
- package/build/store/models/routes.js +1 -7
- package/build/store/models/search.js +62 -61
- package/build/store/models/utils.js +1 -7
- package/build/store/storage.js +4 -11
- package/build/store/store.js +6 -13
- package/build/test/i18n-config.js +4 -11
- package/build/test/test-react-testing-library.js +32 -50
- package/build/types/index.js +1 -5
- package/build/types/packageMeta.js +1 -5
- package/build/utils/__partials__/packageMeta.js +1 -7
- package/build/utils/cli-utils.js +12 -32
- package/build/utils/index.js +8 -74
- package/build/utils/loadable.js +6 -14
- package/build/utils/routes.js +1 -7
- package/build/utils/token.js +11 -18
- package/build/utils/url.js +12 -22
- package/build/utils/utils.js +32 -46
- package/package.json +11 -9
- package/src/AppTest/AppRoute.test.tsx +5 -4
- package/src/Theme/index.ts +1 -1
- package/src/components/Author/Author.test.tsx +2 -1
- package/src/components/CopyClipboard/CopyToClipBoard.test.tsx +2 -1
- package/src/components/Dependencies/Dependencies.test.tsx +7 -0
- package/src/components/Dependencies/DependencyBlock.test.tsx +3 -2
- package/src/components/Engines/Engines.test.tsx +3 -2
- package/src/components/ErrorBoundary/ErrorBoundary.test.tsx +2 -1
- package/src/components/Forbidden/Forbidden.test.tsx +3 -2
- package/src/components/HeaderInfoDialog/HeaderInfoDialog.test.tsx +2 -1
- package/src/components/LoginDialog/LoginDialog.test.tsx +8 -7
- package/src/components/NotFound/Notfound.test.tsx +3 -2
- package/src/components/PackageList/Packagelist.test.tsx +2 -1
- package/src/components/Search/Search.test.tsx +9 -8
- package/src/components/Versions/Versions.test.tsx +8 -8
- package/src/providers/TranslatorProvider/TranslatorProvider.spec.tsx +2 -1
- package/src/providers/VersionProvider/VersionProvider.tsx +5 -2
- package/src/sections/Home/Home.test.tsx +7 -3
- package/src/sections/SideBar/Sidebar.test.tsx +8 -7
- package/src/sections/SideBar/Sidebar.tsx +1 -0
- package/src/store/api.test.ts +8 -6
- package/src/store/models/login.test.ts +24 -20
- package/src/test/test-react-testing-library.tsx +3 -5
- package/src/utils/cli-utils.test.ts +10 -9
- package/src/utils/token.test.ts +5 -3
- package/tsconfig.build.json +1 -1
- package/vitest/api/glob-sidebar.json +12520 -0
- package/vitest/api/got-sidebar.json +23346 -0
- package/vitest/api/home-packages.json +40 -0
- package/vitest/api/jquery-readme.js +3 -0
- package/vitest/api/jquery-sidebar.json +5908 -0
- package/vitest/api/search-verdaccio.json +1192 -0
- package/vitest/api/storybook-readme.js +3 -0
- package/vitest/api/storybook-sidebar.json +53782 -0
- package/vitest/api/storybook-v.json +53782 -0
- package/vitest/identity.js +29 -0
- package/vitest/react-markdown.tsx +7 -0
- package/vitest/server-handlers.ts +82 -0
- package/vitest/server.ts +6 -0
- package/vitest/setup-env.ts +33 -0
- package/vitest/setup.ts +40 -0
- package/vitest/unit/components/__mocks__/token.ts +33 -0
- package/vitest/unit/empty-string.ts +1 -0
- package/vitest/unit/empty.ts +1 -0
- package/vitest/vitestSerializer.ts +31 -0
- package/vitest.config.mjs +39 -0
- package/build/__mocks__/react-markdown.js +0 -18
- package/build/__mocks__/remark-plugin.js +0 -8
- package/build/src/__mocks__/react-markdown.d.ts +0 -4
- package/build/src/__mocks__/remark-plugin.d.ts +0 -1
- package/src/__mocks__/react-markdown.tsx +0 -8
- package/src/__mocks__/remark-plugin.ts +0 -1
|
@@ -1,14 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "default", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function () {
|
|
9
|
-
return _Person.default;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
var _Person = _interopRequireDefault(require("./Person"));
|
|
13
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
1
|
+
export { default } from './Person';
|
|
14
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,17 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
});
|
|
6
|
-
exports.getLink = getLink;
|
|
7
|
-
exports.getName = getName;
|
|
8
|
-
var _i18next = _interopRequireDefault(require("i18next"));
|
|
9
|
-
var _utils = require("../../utils");
|
|
10
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
-
function getLink(person, packageName, version) {
|
|
12
|
-
return person.email && _utils.url.isEmail(person.email) ? `mailto:${person.email}?subject=${packageName} v${version}` : person.url && _utils.url.isURL(person.url) ? person.url : '';
|
|
1
|
+
import i18next from 'i18next';
|
|
2
|
+
import { url } from '../../utils';
|
|
3
|
+
export function getLink(person, packageName, version) {
|
|
4
|
+
return person.email && url.isEmail(person.email) ? "mailto:".concat(person.email, "?subject=").concat(packageName, " v").concat(version) : person.url && url.isURL(person.url) ? person.url : '';
|
|
13
5
|
}
|
|
14
|
-
function getName(name) {
|
|
15
|
-
return !name ?
|
|
6
|
+
export function getName(name) {
|
|
7
|
+
return !name ? i18next.t('author-unknown') : name.toLowerCase() === 'anonymous' ? i18next.t('author-anonymous') : name;
|
|
16
8
|
}
|
|
17
9
|
//# sourceMappingURL=utils.js.map
|
|
@@ -1,30 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
var
|
|
11
|
-
var
|
|
12
|
-
var _IconButton = _interopRequireDefault(require("@mui/material/IconButton"));
|
|
13
|
-
var _styles = require("@mui/styles");
|
|
14
|
-
var _react = _interopRequireDefault(require("react"));
|
|
15
|
-
var _reactI18next = require("react-i18next");
|
|
16
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
17
|
-
const ViewerTitle = props => {
|
|
18
|
-
const {
|
|
1
|
+
import ReactJson from '@microlink/react-json-view';
|
|
2
|
+
import CloseIcon from '@mui/icons-material/Close';
|
|
3
|
+
import Dialog from '@mui/material/Dialog';
|
|
4
|
+
import DialogContent from '@mui/material/DialogContent';
|
|
5
|
+
import DialogTitle from '@mui/material/DialogTitle';
|
|
6
|
+
import IconButton from '@mui/material/IconButton';
|
|
7
|
+
import { useTheme } from '@mui/styles';
|
|
8
|
+
import React from 'react';
|
|
9
|
+
import { useTranslation } from 'react-i18next';
|
|
10
|
+
var ViewerTitle = props => {
|
|
11
|
+
var {
|
|
19
12
|
children,
|
|
20
13
|
onClose
|
|
21
14
|
} = props;
|
|
22
|
-
return /*#__PURE__*/
|
|
15
|
+
return /*#__PURE__*/React.createElement(DialogTitle, {
|
|
23
16
|
sx: {
|
|
24
17
|
m: 0,
|
|
25
18
|
p: 2
|
|
26
19
|
}
|
|
27
|
-
}, children, onClose ? /*#__PURE__*/
|
|
20
|
+
}, children, onClose ? /*#__PURE__*/React.createElement(IconButton, {
|
|
28
21
|
"aria-label": "close",
|
|
29
22
|
"data-testid": "close-raw-viewer",
|
|
30
23
|
onClick: onClose,
|
|
@@ -34,28 +27,29 @@ const ViewerTitle = props => {
|
|
|
34
27
|
top: 8,
|
|
35
28
|
color: theme => theme.palette.grey[500]
|
|
36
29
|
}
|
|
37
|
-
}, /*#__PURE__*/
|
|
30
|
+
}, /*#__PURE__*/React.createElement(CloseIcon, null)) : null);
|
|
38
31
|
};
|
|
39
32
|
/* eslint-disable verdaccio/jsx-spread */
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
33
|
+
var RawViewer = _ref => {
|
|
34
|
+
var {
|
|
35
|
+
isOpen = false,
|
|
36
|
+
onClose,
|
|
37
|
+
packageMeta
|
|
38
|
+
} = _ref;
|
|
39
|
+
var {
|
|
46
40
|
t
|
|
47
|
-
} =
|
|
48
|
-
|
|
49
|
-
return /*#__PURE__*/
|
|
41
|
+
} = useTranslation();
|
|
42
|
+
var theme = useTheme();
|
|
43
|
+
return /*#__PURE__*/React.createElement(Dialog, {
|
|
50
44
|
"data-testid": 'rawViewer--dialog',
|
|
51
45
|
fullScreen: true,
|
|
52
46
|
open: isOpen
|
|
53
|
-
}, /*#__PURE__*/
|
|
47
|
+
}, /*#__PURE__*/React.createElement(ViewerTitle, {
|
|
54
48
|
id: "viewer-title",
|
|
55
49
|
onClose: onClose
|
|
56
50
|
}, t('action-bar-action.raw-title', {
|
|
57
51
|
package: packageMeta.latest.name
|
|
58
|
-
})), /*#__PURE__*/
|
|
52
|
+
})), /*#__PURE__*/React.createElement(DialogContent, null, /*#__PURE__*/React.createElement(ReactJson, {
|
|
59
53
|
collapseStringsAfterLength: 200,
|
|
60
54
|
collapsed: 2,
|
|
61
55
|
enableClipboard: true,
|
|
@@ -64,5 +58,5 @@ const RawViewer = ({
|
|
|
64
58
|
theme: theme.palette.mode == 'light' ? 'bright:inverted' : 'bright'
|
|
65
59
|
})));
|
|
66
60
|
};
|
|
67
|
-
|
|
61
|
+
export default RawViewer;
|
|
68
62
|
//# sourceMappingURL=RawViewer.js.map
|
|
@@ -1,14 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "default", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function () {
|
|
9
|
-
return _RawViewer.default;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
var _RawViewer = _interopRequireDefault(require("./RawViewer"));
|
|
13
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
1
|
+
export { default } from './RawViewer';
|
|
14
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,26 +1,20 @@
|
|
|
1
|
-
|
|
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 _Box = _interopRequireDefault(require("@mui/material/Box"));
|
|
9
|
-
var _Card = _interopRequireDefault(require("@mui/material/Card"));
|
|
10
|
-
var _CardContent = _interopRequireDefault(require("@mui/material/CardContent"));
|
|
11
|
-
var _react = _interopRequireDefault(require("react"));
|
|
12
|
-
var _ = require("../../");
|
|
13
|
-
require("./github-markdown.css");
|
|
14
|
-
var _utils = require("./utils");
|
|
15
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
1
|
+
import _styled from "@emotion/styled/base";
|
|
16
2
|
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)."; }
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
3
|
+
import Box from '@mui/material/Box';
|
|
4
|
+
import Card from '@mui/material/Card';
|
|
5
|
+
import CardContent from '@mui/material/CardContent';
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import { useCustomTheme } from '../../';
|
|
8
|
+
import './github-markdown.css';
|
|
9
|
+
import { parseReadme } from './utils';
|
|
10
|
+
var Readme = _ref => {
|
|
11
|
+
var {
|
|
12
|
+
description
|
|
13
|
+
} = _ref;
|
|
20
14
|
// @ts-ignore
|
|
21
|
-
|
|
15
|
+
var {
|
|
22
16
|
isDarkMode
|
|
23
|
-
} =
|
|
17
|
+
} = useCustomTheme();
|
|
24
18
|
|
|
25
19
|
// Stackoverflow theme fits well to Verdaccio dark colors
|
|
26
20
|
// https://highlightjs.org/examples
|
|
@@ -29,24 +23,24 @@ const Readme = ({
|
|
|
29
23
|
} else {
|
|
30
24
|
require('highlight.js/styles/github.css');
|
|
31
25
|
}
|
|
32
|
-
return /*#__PURE__*/
|
|
26
|
+
return /*#__PURE__*/React.createElement(Card, {
|
|
33
27
|
sx: {
|
|
34
28
|
mb: 2
|
|
35
29
|
}
|
|
36
|
-
}, /*#__PURE__*/
|
|
30
|
+
}, /*#__PURE__*/React.createElement(CardContent, null, /*#__PURE__*/React.createElement(Box, {
|
|
37
31
|
"data-testid": "readme",
|
|
38
32
|
sx: {
|
|
39
33
|
m: 2
|
|
40
34
|
}
|
|
41
|
-
}, /*#__PURE__*/
|
|
42
|
-
className:
|
|
35
|
+
}, /*#__PURE__*/React.createElement(Wrapper, {
|
|
36
|
+
className: "markdown-body ".concat(isDarkMode ? 'markdown-dark' : 'markdown-light'),
|
|
43
37
|
dangerouslySetInnerHTML: {
|
|
44
|
-
__html:
|
|
38
|
+
__html: parseReadme(description)
|
|
45
39
|
}
|
|
46
40
|
}))));
|
|
47
41
|
};
|
|
48
|
-
|
|
49
|
-
|
|
42
|
+
export default Readme;
|
|
43
|
+
var Wrapper = /*#__PURE__*/_styled('div', process.env.NODE_ENV === "production" ? {
|
|
50
44
|
target: "e1gao54u0"
|
|
51
45
|
} : {
|
|
52
46
|
target: "e1gao54u0",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Readme.js","names":["
|
|
1
|
+
{"version":3,"file":"Readme.js","names":["Box","Card","CardContent","React","useCustomTheme","parseReadme","Readme","_ref","description","isDarkMode","require","createElement","sx","mb","m","Wrapper","className","concat","dangerouslySetInnerHTML","__html","_styled","process","env","NODE_ENV","target","label","name","styles","map","toString","_EMOTION_STRINGIFIED_CSS_ERROR__"],"sources":["../../../src/components/Readme/Readme.tsx"],"sourcesContent":["import styled from '@emotion/styled';\nimport Box from '@mui/material/Box';\nimport Card from '@mui/material/Card';\nimport CardContent from '@mui/material/CardContent';\nimport React from 'react';\n\nimport { useCustomTheme } from '../../';\nimport './github-markdown.css';\nimport { Props } from './types';\nimport { parseReadme } from './utils';\n\nconst Readme: React.FC<Props> = ({ description }) => {\n // @ts-ignore\n const { isDarkMode } = useCustomTheme();\n\n // Stackoverflow theme fits well to Verdaccio dark colors\n // https://highlightjs.org/examples\n if (isDarkMode) {\n require('highlight.js/styles/github-dark.css');\n } else {\n require('highlight.js/styles/github.css');\n }\n\n return (\n <Card sx={{ mb: 2 }}>\n <CardContent>\n <Box data-testid=\"readme\" sx={{ m: 2 }}>\n <Wrapper\n className={`markdown-body ${isDarkMode ? 'markdown-dark' : 'markdown-light'}`}\n dangerouslySetInnerHTML={{ __html: parseReadme(description) as string }}\n />\n </Box>\n </CardContent>\n </Card>\n );\n};\nexport default Readme;\n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GAAA,CAAAC,QAAA;EAAAG,IAAA;EAAAC,MAAA;AAAA;EAAAD,IAAA;EAAAC,MAAA;EAAAC,GAAA;EAAAC,QAAA,EAAAC;AAAA,CAO5B,CAAC","ignoreList":[]}
|
|
@@ -1,33 +1,30 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var _testReactTestingLibrary = require("../../test/test-react-testing-library");
|
|
5
|
-
var _Readme = _interopRequireDefault(require("./Readme"));
|
|
6
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { cleanup, render } from '../../test/test-react-testing-library';
|
|
3
|
+
import Readme from './Readme';
|
|
7
4
|
describe('<Readme /> component', () => {
|
|
8
|
-
beforeEach(
|
|
5
|
+
beforeEach(cleanup);
|
|
9
6
|
test('should load the component in default state', () => {
|
|
10
|
-
|
|
7
|
+
var wrapper = render(/*#__PURE__*/React.createElement(Readme, {
|
|
11
8
|
description: "test"
|
|
12
9
|
}));
|
|
13
10
|
expect(wrapper).toMatchSnapshot();
|
|
14
11
|
});
|
|
15
12
|
test('should dangerously set html', () => {
|
|
16
|
-
|
|
13
|
+
var wrapper = render(/*#__PURE__*/React.createElement(Readme, {
|
|
17
14
|
description: "<h1>This is a test string</h1>"
|
|
18
15
|
}));
|
|
19
16
|
expect(wrapper.getByText('This is a test string')).toBeInTheDocument();
|
|
20
17
|
});
|
|
21
18
|
test('should sanitize html', () => {
|
|
22
|
-
|
|
23
|
-
|
|
19
|
+
var markdown = "<script>alert('test')</script>";
|
|
20
|
+
var wrapper = render(/*#__PURE__*/React.createElement(Readme, {
|
|
24
21
|
description: markdown
|
|
25
22
|
}));
|
|
26
23
|
expect(wrapper.queryAllByText('test')).toHaveLength(0);
|
|
27
24
|
});
|
|
28
25
|
test('should highlight code', () => {
|
|
29
|
-
|
|
30
|
-
|
|
26
|
+
var markdown = "```js\nconst test = 1 + 2;\n```";
|
|
27
|
+
var wrapper = render(/*#__PURE__*/React.createElement(Readme, {
|
|
31
28
|
description: markdown
|
|
32
29
|
}));
|
|
33
30
|
expect(wrapper.getByText('const')).toBeInTheDocument();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Readme.spec.js","names":["
|
|
1
|
+
{"version":3,"file":"Readme.spec.js","names":["React","cleanup","render","Readme","describe","beforeEach","test","wrapper","createElement","description","expect","toMatchSnapshot","getByText","toBeInTheDocument","markdown","queryAllByText","toHaveLength","toHaveClass"],"sources":["../../../src/components/Readme/Readme.spec.tsx"],"sourcesContent":["import React from 'react';\n\nimport { cleanup, render } from '../../test/test-react-testing-library';\nimport Readme from './Readme';\n\ndescribe('<Readme /> component', () => {\n beforeEach(cleanup);\n\n test('should load the component in default state', () => {\n const wrapper = render(<Readme description=\"test\" />);\n expect(wrapper).toMatchSnapshot();\n });\n\n test('should dangerously set html', () => {\n const wrapper = render(<Readme description=\"<h1>This is a test string</h1>\" />);\n expect(wrapper.getByText('This is a test string')).toBeInTheDocument();\n });\n\n test('should sanitize html', () => {\n const markdown = `<script>alert('test')</script>`;\n const wrapper = render(<Readme description={markdown} />);\n expect(wrapper.queryAllByText('test')).toHaveLength(0);\n });\n\n test('should highlight code', () => {\n const markdown = `\\`\\`\\`js\\nconst test = 1 + 2;\\n\\`\\`\\``;\n const wrapper = render(<Readme description={markdown} />);\n expect(wrapper.getByText('const')).toBeInTheDocument();\n expect(wrapper.getByText('const')).toHaveClass('hljs-keyword');\n expect(wrapper.getByText('1')).toBeInTheDocument();\n expect(wrapper.getByText('1')).toHaveClass('hljs-number');\n expect(wrapper.getByText('2')).toBeInTheDocument();\n expect(wrapper.getByText('2')).toHaveClass('hljs-number');\n });\n});\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,OAAO,EAAEC,MAAM,QAAQ,uCAAuC;AACvE,OAAOC,MAAM,MAAM,UAAU;AAE7BC,QAAQ,CAAC,sBAAsB,EAAE,MAAM;EACrCC,U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CAAC,CAACC,iBAAiB,CAAC,CAAC;IAClDH,MAAM,CAACH,OAAO,CAACK,SAAS,CAAC,GAAG,CAAC,CAAC,CAACK,WAAW,CAAC,aAAa,CAAC;IACzDP,MAAM,CAACH,OAAO,CAACK,SAAS,CAAC,GAAG,CAAC,CAAC,CAACC,iBAAiB,CAAC,CAAC;IAClDH,MAAM,CAACH,OAAO,CAACK,SAAS,CAAC,GAAG,CAAC,CAAC,CAACK,WAAW,CAAC,aAAa,CAAC;EAC3D,CAAC,CAAC;AACJ,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,14 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "default", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function () {
|
|
9
|
-
return _Readme.default;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
var _Readme = _interopRequireDefault(require("./Readme"));
|
|
13
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
1
|
+
export { default } from './Readme';
|
|
14
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,19 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
});
|
|
6
|
-
exports.parseReadme = parseReadme;
|
|
7
|
-
var DOMPurify = _interopRequireWildcard(require("dompurify"));
|
|
8
|
-
var _marked = require("marked");
|
|
9
|
-
var _markedHighlight = require("marked-highlight");
|
|
10
|
-
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); }
|
|
11
|
-
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 && {}.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; }
|
|
12
|
-
const marked = new _marked.Marked((0, _markedHighlight.markedHighlight)({
|
|
1
|
+
import * as DOMPurify from 'dompurify';
|
|
2
|
+
import { Marked } from 'marked';
|
|
3
|
+
import { markedHighlight } from 'marked-highlight';
|
|
4
|
+
var marked = new Marked(markedHighlight({
|
|
13
5
|
async: false,
|
|
14
6
|
highlight(code, lang) {
|
|
15
|
-
|
|
16
|
-
|
|
7
|
+
var hljs = require('highlight.js');
|
|
8
|
+
var language = hljs.getLanguage(lang) ? lang : 'plaintext';
|
|
17
9
|
return hljs.highlight(code, {
|
|
18
10
|
language
|
|
19
11
|
}).value;
|
|
@@ -25,8 +17,8 @@ marked.setOptions({
|
|
|
25
17
|
gfm: true,
|
|
26
18
|
breaks: false
|
|
27
19
|
});
|
|
28
|
-
function parseReadme(readme) {
|
|
29
|
-
|
|
20
|
+
export function parseReadme(readme) {
|
|
21
|
+
var html = marked.parse(readme);
|
|
30
22
|
return DOMPurify.sanitize(html);
|
|
31
23
|
}
|
|
32
24
|
//# sourceMappingURL=utils.js.map
|
|
@@ -1,36 +1,30 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
open = false,
|
|
16
|
-
children,
|
|
17
|
-
onClose,
|
|
18
|
-
title = ''
|
|
19
|
-
}) => {
|
|
20
|
-
const {
|
|
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
|
+
import { Content, Title } from './styles';
|
|
7
|
+
var RegistryInfoDialog = _ref => {
|
|
8
|
+
var {
|
|
9
|
+
open = false,
|
|
10
|
+
children,
|
|
11
|
+
onClose,
|
|
12
|
+
title = ''
|
|
13
|
+
} = _ref;
|
|
14
|
+
var {
|
|
21
15
|
t
|
|
22
|
-
} =
|
|
23
|
-
return /*#__PURE__*/
|
|
16
|
+
} = useTranslation();
|
|
17
|
+
return /*#__PURE__*/React.createElement(Dialog, {
|
|
24
18
|
"data-testid": 'registryInfo--dialog',
|
|
25
19
|
id: "registryInfo--dialog-container",
|
|
26
20
|
maxWidth: "sm",
|
|
27
21
|
onClose: onClose,
|
|
28
22
|
open: open
|
|
29
|
-
}, /*#__PURE__*/
|
|
23
|
+
}, /*#__PURE__*/React.createElement(Title, null, title), /*#__PURE__*/React.createElement(Content, null, children), /*#__PURE__*/React.createElement(DialogActions, null, /*#__PURE__*/React.createElement(Button, {
|
|
30
24
|
color: "inherit",
|
|
31
25
|
id: "registryInfo--dialog-close",
|
|
32
26
|
onClick: onClose
|
|
33
27
|
}, t('button.close'))));
|
|
34
28
|
};
|
|
35
|
-
|
|
29
|
+
export default RegistryInfoDialog;
|
|
36
30
|
//# sourceMappingURL=RegistryInfoDialog.js.map
|
|
@@ -1,14 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "default", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function () {
|
|
9
|
-
return _RegistryInfoDialog.default;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
var _RegistryInfoDialog = _interopRequireDefault(require("./RegistryInfoDialog"));
|
|
13
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
1
|
+
export { default } from './RegistryInfoDialog';
|
|
14
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,45 +1,47 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
-
const Title = exports.Title = /*#__PURE__*/(0, _base.default)(_DialogTitle.default, process.env.NODE_ENV === "production" ? {
|
|
1
|
+
import _styled from "@emotion/styled/base";
|
|
2
|
+
import DialogContent from '@mui/material/DialogContent';
|
|
3
|
+
import DialogTitle from '@mui/material/DialogTitle';
|
|
4
|
+
export var Title = /*#__PURE__*/_styled(DialogTitle, process.env.NODE_ENV === "production" ? {
|
|
12
5
|
target: "e1y7bplp2"
|
|
13
6
|
} : {
|
|
14
7
|
target: "e1y7bplp2",
|
|
15
8
|
label: "Title"
|
|
16
|
-
})(
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
9
|
+
})(_ref => {
|
|
10
|
+
var {
|
|
11
|
+
theme
|
|
12
|
+
} = _ref;
|
|
13
|
+
return {
|
|
14
|
+
backgroundColor: theme.palette.mode === 'light' ? theme.palette.primary.main : theme.palette.cyanBlue,
|
|
15
|
+
color: theme.palette.white,
|
|
16
|
+
fontSize: theme.fontSize.lg
|
|
17
|
+
};
|
|
18
|
+
}, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL1Jl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oZW1lPzogVGhlbWUgfT4oKHsgdGhlbWUgfSkgPT4gKHtcbiAgcGFkZGluZzogJzEwcHggMjRweCcsXG4gIGJhY2tncm91bmRDb2xvcjogdGhlbWUucGFsZXR0ZS5iYWNrZ3JvdW5kLmRlZmF1bHQsXG59KSk7XG4iXX0= */");
|
|
19
|
+
export var Content = /*#__PURE__*/_styled(DialogContent, process.env.NODE_ENV === "production" ? {
|
|
24
20
|
target: "e1y7bplp1"
|
|
25
21
|
} : {
|
|
26
22
|
target: "e1y7bplp1",
|
|
27
23
|
label: "Content"
|
|
28
|
-
})(
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
24
|
+
})(_ref2 => {
|
|
25
|
+
var {
|
|
26
|
+
theme
|
|
27
|
+
} = _ref2;
|
|
28
|
+
return {
|
|
29
|
+
padding: '0 24px',
|
|
30
|
+
backgroundColor: theme.palette.background.default
|
|
31
|
+
};
|
|
32
|
+
}, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL1JlZ2lzdHJ5SW5mb0RpYWxvZy9zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBYXVCIiwiZmlsZSI6Ii4uLy4uLy4uL3NyYy9jb21wb25lbnRzL1JlZ2lzdHJ5SW5mb0RpYWxvZy9zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5pbXBvcnQgRGlhbG9nQ29udGVudCBmcm9tICdAbXVpL21hdGVyaWFsL0RpYWxvZ0NvbnRlbnQnO1xuaW1wb3J0IERpYWxvZ1RpdGxlIGZyb20gJ0BtdWkvbWF0ZXJpYWwvRGlhbG9nVGl0bGUnO1xuXG5pbXBvcnQgeyBUaGVtZSB9IGZyb20gJy4uLy4uLyc7XG5cbmV4cG9ydCBjb25zdCBUaXRsZSA9IHN0eWxlZChEaWFsb2dUaXRsZSk8eyB0aGVtZT86IFRoZW1lIH0+KCh7IHRoZW1lIH0pID0+ICh7XG4gIGJhY2tncm91bmRDb2xvcjpcbiAgICB0aGVtZS5wYWxldHRlLm1vZGUgPT09ICdsaWdodCcgPyB0aGVtZS5wYWxldHRlLnByaW1hcnkubWFpbiA6IHRoZW1lLnBhbGV0dGUuY3lhbkJsdWUsXG4gIGNvbG9yOiB0aGVtZS5wYWxldHRlLndoaXRlLFxuICBmb250U2l6ZTogdGhlbWUuZm9udFNpemUubGcsXG59KSk7XG5cbmV4cG9ydCBjb25zdCBDb250ZW50ID0gc3R5bGVkKERpYWxvZ0NvbnRlbnQpPHsgdGhlbWU/OiBUaGVtZSB9PigoeyB0aGVtZSB9KSA9PiAoe1xuICBwYWRkaW5nOiAnMCAyNHB4JyxcbiAgYmFja2dyb3VuZENvbG9yOiB0aGVtZS5wYWxldHRlLmJhY2tncm91bmQuZGVmYXVsdCxcbn0pKTtcblxuZXhwb3J0IGNvbnN0IFRleHRDb250ZW50ID0gc3R5bGVkKCdkaXYnKTx7IHRoZW1lPzogVGhlbWUgfT4oKHsgdGhlbWUgfSkgPT4gKHtcbiAgcGFkZGluZzogJzEwcHggMjRweCcsXG4gIGJhY2tncm91bmRDb2xvcjogdGhlbWUucGFsZXR0ZS5iYWNrZ3JvdW5kLmRlZmF1bHQsXG59KSk7XG4iXX0= */");
|
|
33
|
+
export var TextContent = /*#__PURE__*/_styled('div', process.env.NODE_ENV === "production" ? {
|
|
35
34
|
target: "e1y7bplp0"
|
|
36
35
|
} : {
|
|
37
36
|
target: "e1y7bplp0",
|
|
38
37
|
label: "TextContent"
|
|
39
|
-
})(
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
38
|
+
})(_ref3 => {
|
|
39
|
+
var {
|
|
40
|
+
theme
|
|
41
|
+
} = _ref3;
|
|
42
|
+
return {
|
|
43
|
+
padding: '10px 24px',
|
|
44
|
+
backgroundColor: theme.palette.background.default
|
|
45
|
+
};
|
|
46
|
+
}, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL1JlZ2lzdHJ5SW5mb0RpYWxvZy9zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBa0IyQiIsImZpbGUiOiIuLi8uLi8uLi9zcmMvY29tcG9uZW50cy9SZWdpc3RyeUluZm9EaWFsb2cvc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuaW1wb3J0IERpYWxvZ0NvbnRlbnQgZnJvbSAnQG11aS9tYXRlcmlhbC9EaWFsb2dDb250ZW50JztcbmltcG9ydCBEaWFsb2dUaXRsZSBmcm9tICdAbXVpL21hdGVyaWFsL0RpYWxvZ1RpdGxlJztcblxuaW1wb3J0IHsgVGhlbWUgfSBmcm9tICcuLi8uLi8nO1xuXG5leHBvcnQgY29uc3QgVGl0bGUgPSBzdHlsZWQoRGlhbG9nVGl0bGUpPHsgdGhlbWU/OiBUaGVtZSB9PigoeyB0aGVtZSB9KSA9PiAoe1xuICBiYWNrZ3JvdW5kQ29sb3I6XG4gICAgdGhlbWUucGFsZXR0ZS5tb2RlID09PSAnbGlnaHQnID8gdGhlbWUucGFsZXR0ZS5wcmltYXJ5Lm1haW4gOiB0aGVtZS5wYWxldHRlLmN5YW5CbHVlLFxuICBjb2xvcjogdGhlbWUucGFsZXR0ZS53aGl0ZSxcbiAgZm9udFNpemU6IHRoZW1lLmZvbnRTaXplLmxnLFxufSkpO1xuXG5leHBvcnQgY29uc3QgQ29udGVudCA9IHN0eWxlZChEaWFsb2dD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