@verdaccio/ui-components 5.0.0-next-9.8 → 5.0.0-next-9.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/Theme/ResetStyles.d.ts +1 -1
- package/build/Theme/StyleBaseline.d.ts +1 -2
- package/build/Theme/ThemeProvider.d.ts +1 -1
- package/build/Theme/modes.d.ts +13 -1
- package/build/Theme/modes.js +18 -3
- package/build/Theme/modes.js.map +1 -1
- package/build/Theme/modes.mjs +16 -2
- package/build/Theme/modes.mjs.map +1 -1
- package/build/Theme/theme.d.ts +27 -3
- package/build/Theme/theme.js.map +1 -1
- package/build/Theme/theme.mjs.map +1 -1
- package/build/api/use-data-mutation.d.ts +3 -3
- package/build/api/use-data.d.ts +2 -2
- package/build/components/ActionBar/ActionBar.d.ts +1 -1
- package/build/components/ActionBar/ActionBarAction.d.ts +7 -2
- package/build/components/ActionBar/ActionBarAction.mjs +2 -2
- package/build/components/ActionBar/ActionBarAction.mjs.map +1 -1
- package/build/components/AppRoute/AppRoute.d.ts +1 -1
- package/build/components/Author/Author.d.ts +1 -1
- package/build/components/Author/styles.d.ts +9 -2
- package/build/components/CopyClipboard/CopyToClipBoard.d.ts +1 -1
- package/build/components/CopyClipboard/utils.d.ts +1 -1
- package/build/components/Dependencies/Dependencies.d.ts +1 -1
- package/build/components/Dependencies/DependencyBlock.d.ts +15 -7
- package/build/components/Dependencies/DependencyBlock.mjs +2 -2
- package/build/components/Dependencies/DependencyBlock.mjs.map +1 -1
- package/build/components/Dependencies/index.js +1 -1
- package/build/components/Dependencies/types.d.ts +1 -1
- package/build/components/Deprecated/Deprecated.d.ts +1 -1
- package/build/components/Developers/Developers.d.ts +8 -3
- package/build/components/Developers/Title.d.ts +1 -1
- package/build/components/Developers/Title.mjs +2 -2
- package/build/components/Developers/Title.mjs.map +1 -1
- package/build/components/Developers/get-unique-developer-values.d.ts +1 -1
- package/build/components/Distribution/Dist.d.ts +2 -2
- package/build/components/Distribution/styles.d.ts +12 -3
- package/build/components/Distribution/styles.mjs +2 -2
- package/build/components/Distribution/styles.mjs.map +1 -1
- package/build/components/Engines/Engines.d.ts +2 -2
- package/build/components/Engines/styles.d.ts +9 -2
- package/build/components/Engines/styles.mjs +2 -2
- package/build/components/Engines/styles.mjs.map +1 -1
- package/build/components/ErrorBoundary/ErrorBoundary.d.ts +1 -2
- package/build/components/Forbidden/Forbidden.d.ts +1 -1
- package/build/components/FundButton/FundButton.d.ts +1 -1
- package/build/components/FundButton/FundButton.js +1 -1
- package/build/components/FundButton/FundButton.js.map +1 -1
- package/build/components/FundButton/FundButton.mjs +1 -1
- package/build/components/FundButton/FundButton.mjs.map +1 -1
- package/build/components/HeaderInfoDialog/HeaderInfoDialog.d.ts +1 -1
- package/build/components/Heading/Heading.d.ts +2 -2
- package/build/components/Heading/Heading.mjs +2 -2
- package/build/components/Heading/Heading.mjs.map +1 -1
- package/build/components/Help/Help.d.ts +1 -1
- package/build/components/Help/Help.mjs +3 -3
- package/build/components/Help/Help.mjs.map +1 -1
- package/build/components/Help/styles.d.ts +3 -1
- package/build/components/Icons/DevsIcons/CommonJS.d.ts +1 -1
- package/build/components/Icons/DevsIcons/ES6Module.d.ts +1 -1
- package/build/components/Icons/DevsIcons/Git.d.ts +1 -1
- package/build/components/Icons/DevsIcons/NodeJS.d.ts +1 -1
- package/build/components/Icons/DevsIcons/TypeScript.d.ts +1 -1
- package/build/components/Icons/DevsIcons/commonjs.svg +4 -0
- package/build/components/Icons/DevsIcons/es6module.svg +4 -0
- package/build/components/Icons/DevsIcons/git.svg +4 -0
- package/build/components/Icons/DevsIcons/nodejs.svg +6 -0
- package/build/components/Icons/DevsIcons/typescript.svg +4 -0
- package/build/components/Icons/Earth.d.ts +1 -1
- package/build/components/Icons/FileBinary.d.ts +1 -1
- package/build/components/Icons/Law.d.ts +1 -1
- package/build/components/Icons/License.d.ts +1 -1
- package/build/components/Icons/Managers/Npm.d.ts +1 -1
- package/build/components/Icons/Managers/Pnpm.d.ts +1 -1
- package/build/components/Icons/Managers/Yarn.d.ts +1 -1
- 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.d.ts +2 -2
- package/build/components/Icons/Time.d.ts +1 -1
- package/build/components/Icons/Version.d.ts +1 -1
- package/build/components/Install/Install.d.ts +3 -3
- package/build/components/Install/InstallListItem.d.ts +1 -1
- package/build/components/Install/InstallListItem.mjs +2 -2
- package/build/components/Install/InstallListItem.mjs.map +1 -1
- package/build/components/Keywords/KeywordListItems.d.ts +1 -1
- package/build/components/Keywords/Keywords.d.ts +2 -2
- package/build/components/Keywords/Keywords.mjs +2 -2
- package/build/components/Keywords/Keywords.mjs.map +1 -1
- package/build/components/Label/Label.d.ts +2 -2
- package/build/components/Link/Link.d.ts +1 -1
- package/build/components/Link/Link.mjs +2 -2
- package/build/components/Link/Link.mjs.map +1 -1
- package/build/components/LinkExternal/LinkExternal.d.ts +1 -1
- package/build/components/Loading/Loading.d.ts +1 -1
- package/build/components/Loading/Spinner/Spinner.d.ts +1 -1
- package/build/components/Loading/styles.d.ts +7 -7
- package/build/components/LoginDialog/LoginDialog.d.ts +1 -1
- package/build/components/LoginDialog/LoginDialogCloseButton.d.ts +1 -1
- package/build/components/LoginDialog/LoginDialogCloseButton.js +2 -2
- package/build/components/LoginDialog/LoginDialogCloseButton.js.map +1 -1
- package/build/components/LoginDialog/LoginDialogCloseButton.mjs +2 -2
- package/build/components/LoginDialog/LoginDialogCloseButton.mjs.map +1 -1
- package/build/components/LoginDialog/LoginDialogForm.d.ts +1 -1
- package/build/components/LoginDialog/LoginDialogFormError.d.ts +1 -1
- package/build/components/LoginForm/Login.d.ts +2 -2
- package/build/components/LoginForm/Login.mjs +2 -2
- package/build/components/LoginForm/Login.mjs.map +1 -1
- package/build/components/LoginForm/PasswordField.d.ts +3 -3
- package/build/components/LoginForm/UsernameField.d.ts +3 -3
- package/build/components/LoginForm/styles.d.ts +1 -1
- package/build/components/LoginForm/styles.js +2 -2
- package/build/components/LoginForm/styles.js.map +1 -1
- package/build/components/LoginForm/styles.mjs +2 -2
- package/build/components/LoginForm/styles.mjs.map +1 -1
- package/build/components/LoginForm/useLoginForm.d.ts +17 -17
- package/build/components/Logo/Logo.d.ts +1 -1
- package/build/components/Logo/img/logo-black-and-white.svg +1 -0
- package/build/components/Logo/img/logo.svg +1 -0
- package/build/components/MenuItem/MenuItem.d.ts +2 -2
- package/build/components/NoItems/NoItems.d.ts +1 -1
- package/build/components/NoItems/NoItems.mjs +2 -2
- package/build/components/NoItems/NoItems.mjs.map +1 -1
- package/build/components/NotFound/NotFound.d.ts +1 -1
- package/build/components/NotFound/img/package.svg +1 -0
- package/build/components/Package/Package.d.ts +3 -3
- package/build/components/Package/Package.js.map +1 -1
- package/build/components/Package/Package.mjs +2 -2
- package/build/components/Package/Package.mjs.map +1 -1
- package/build/components/Package/styles.d.ts +39 -29
- package/build/components/Package/styles.mjs +2 -2
- package/build/components/Package/styles.mjs.map +1 -1
- package/build/components/PackageList/PackageList.d.ts +2 -2
- package/build/components/Person/Person.d.ts +2 -2
- package/build/components/Person/PersonTooltip.d.ts +2 -2
- package/build/components/Person/PersonTooltip.mjs +2 -2
- package/build/components/Person/PersonTooltip.mjs.map +1 -1
- package/build/components/Person/utils.d.ts +1 -1
- package/build/components/RawViewer/RawViewer.d.ts +1 -1
- package/build/components/Readme/Readme.d.ts +2 -5
- package/build/components/Readme/Readme.js +6 -6
- package/build/components/Readme/Readme.js.map +1 -1
- package/build/components/Readme/Readme.mjs +6 -6
- package/build/components/Readme/Readme.mjs.map +1 -1
- package/build/components/Readme/github-markdown.css +1654 -0
- package/build/components/Readme/hljs-github-dark.css +117 -0
- package/build/components/Readme/hljs-github-light.css +117 -0
- package/build/components/RegistryInfoDialog/RegistryInfoDialog.d.ts +2 -2
- package/build/components/RegistryInfoDialog/styles.d.ts +11 -7
- package/build/components/RegistryInfoDialog/types.d.ts +1 -1
- package/build/components/Repository/Repository.d.ts +1 -1
- package/build/components/Repository/Repository.mjs +4 -4
- package/build/components/Repository/Repository.mjs.map +1 -1
- package/build/components/Search/AutoComplete/AutoComplete.d.ts +2 -3
- package/build/components/Search/AutoComplete/styles.d.ts +3 -3
- package/build/components/Search/Search.d.ts +1 -1
- package/build/components/Search/SearchItem.d.ts +4 -4
- package/build/components/Search/styles.d.ts +10 -6
- package/build/components/SettingsMenu/SettingsMenu.d.ts +1 -1
- package/build/components/SideBarTitle/SideBarTitle.d.ts +1 -1
- package/build/components/UnAuthorized/UnAuthorized.d.ts +1 -1
- package/build/components/UpLinks/UpLinks.d.ts +1 -1
- package/build/components/UpLinks/UplinkLink.d.ts +1 -1
- package/build/components/UpLinks/index.js +1 -1
- package/build/components/UpLinks/styles.d.ts +11 -7
- package/build/components/UpLinks/styles.mjs +5 -5
- package/build/components/UpLinks/styles.mjs.map +1 -1
- package/build/components/Versions/HistoryList.d.ts +2 -2
- package/build/components/Versions/TagList.d.ts +2 -2
- package/build/components/Versions/Versions.d.ts +7 -2
- package/build/components/Versions/Versions.mjs +2 -2
- package/build/components/Versions/Versions.mjs.map +1 -1
- package/build/components/Versions/index.js +1 -1
- package/build/components/Versions/styles.d.ts +6 -6
- package/build/components/Versions/styles.mjs +3 -3
- package/build/components/Versions/styles.mjs.map +1 -1
- package/build/components/Versions/types.d.ts +1 -1
- package/build/configuration.d.ts +1 -1
- package/build/hooks/useOnClickOutside.d.ts +1 -1
- package/build/index.d.ts +0 -3
- package/build/index.js +59 -62
- package/build/index.mjs +2 -6
- package/build/layouts/Security/Dialog.d.ts +1 -1
- package/build/layouts/Version/Version.d.ts +1 -1
- package/build/pages/Front/index.js +1 -1
- package/build/pages/Version/Version.d.ts +1 -1
- package/build/pages/Version/index.js +1 -1
- package/build/providers/AppConfigurationProvider/AppConfigurationProvider.d.ts +2 -2
- package/build/providers/AuthProvider/AuthProvider.d.ts +2 -3
- package/build/providers/AuthProvider/types.d.ts +1 -1
- package/build/providers/AuthProvider/utils.d.ts +1 -1
- package/build/providers/DownloadProvider/DownloadProvider.d.ts +1 -2
- package/build/providers/ManifestsProvider/ManifestsProvider.d.ts +2 -3
- package/build/providers/ManifestsProvider/README.md +22 -0
- package/build/providers/PersistenceSettingProvider/PersistenceSettingProvider.d.ts +1 -2
- package/build/providers/SearchProvider/SearchProvider.d.ts +2 -3
- package/build/providers/TranslatorProvider/TranslatorProvider.d.ts +2 -3
- package/build/providers/VersionProvider/README.md +22 -0
- package/build/providers/VersionProvider/VersionProvider.d.ts +2 -2
- package/build/routes/SecurityRoutes.d.ts +1 -1
- package/build/sections/Detail/ContainerContent.d.ts +1 -1
- package/build/sections/Detail/Detail.d.ts +1 -1
- package/build/sections/Detail/ReadmeSection.d.ts +1 -1
- package/build/sections/Detail/Tabs.d.ts +1 -1
- package/build/sections/Footer/Footer.d.ts +1 -1
- package/build/sections/Footer/styles.d.ts +17 -17
- package/build/sections/Header/Header.d.ts +1 -1
- package/build/sections/Header/HeaderGreetings.d.ts +1 -1
- package/build/sections/Header/HeaderLeft.d.ts +1 -1
- package/build/sections/Header/HeaderMenu.d.ts +1 -2
- package/build/sections/Header/HeaderMenu.js +10 -11
- package/build/sections/Header/HeaderMenu.js.map +1 -1
- package/build/sections/Header/HeaderMenu.mjs +10 -11
- package/build/sections/Header/HeaderMenu.mjs.map +1 -1
- package/build/sections/Header/HeaderRight.d.ts +1 -1
- package/build/sections/Header/HeaderSettingsDialog.d.ts +1 -1
- package/build/sections/Header/HeaderToolTip.d.ts +2 -2
- package/build/sections/Header/HeaderToolTipIcon.d.ts +1 -1
- package/build/sections/Header/LanguageSwitch.d.ts +12 -3
- package/build/sections/Header/LanguageSwitch.mjs +2 -2
- package/build/sections/Header/LanguageSwitch.mjs.map +1 -1
- package/build/sections/Header/RegistryInfoContent/RegistryInfoContent.d.ts +7 -8
- package/build/sections/Header/RegistryInfoContent/RegistryInfoContent.mjs +5 -5
- package/build/sections/Header/RegistryInfoContent/RegistryInfoContent.mjs.map +1 -1
- package/build/sections/Header/RegistryInfoContent/styles.d.ts +7 -7
- package/build/sections/Header/styles.d.ts +33 -19
- package/build/sections/Home/Home.d.ts +1 -1
- package/build/sections/Security/AddUser.d.ts +1 -1
- package/build/sections/Security/AddUser.js +0 -1
- package/build/sections/Security/AddUser.js.map +1 -1
- package/build/sections/Security/AddUser.mjs +0 -1
- package/build/sections/Security/AddUser.mjs.map +1 -1
- package/build/sections/Security/ChangePassword.d.ts +1 -1
- package/build/sections/Security/ChangePassword.js +0 -1
- package/build/sections/Security/ChangePassword.js.map +1 -1
- package/build/sections/Security/ChangePassword.mjs +0 -1
- package/build/sections/Security/ChangePassword.mjs.map +1 -1
- package/build/sections/Security/Login.d.ts +1 -1
- package/build/sections/Security/Success.d.ts +1 -1
- package/build/sections/Security/styles.d.ts +5 -3
- package/build/sections/Security/styles.js +1 -1
- package/build/sections/Security/styles.js.map +1 -1
- package/build/sections/Security/styles.mjs +1 -1
- package/build/sections/Security/styles.mjs.map +1 -1
- package/build/sections/SideBar/Sidebar.d.ts +1 -1
- package/build/types/index.d.ts +1 -1
- package/build/types/packageMeta.d.ts +1 -1
- package/build/ui-components.css +1024 -334
- package/build/utils/cli-utils.d.ts +1 -1
- package/build/utils/loadable.d.ts +1 -1
- package/build/utils/utils.d.ts +2 -2
- package/package.json +4 -7
- package/build/pages/Security/index.js +0 -4
- package/build/pages/Security/index.mjs +0 -4
- package/build/test/i18n-config.d.ts +0 -2
- package/build/test/test-react-testing-library.d.ts +0 -23
|
@@ -1,43 +1,53 @@
|
|
|
1
|
-
import
|
|
2
|
-
export declare const OverviewItem: import(
|
|
3
|
-
theme?: import(
|
|
1
|
+
import { Theme } from '../../';
|
|
2
|
+
export declare const OverviewItem: import('@emotion/styled').StyledComponent<{
|
|
3
|
+
theme?: import('@emotion/react').Theme;
|
|
4
4
|
as?: React.ElementType;
|
|
5
5
|
} & {
|
|
6
6
|
theme?: Theme;
|
|
7
|
-
}, import(
|
|
8
|
-
export declare const Published: import(
|
|
9
|
-
theme?: import(
|
|
7
|
+
}, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
8
|
+
export declare const Published: import('@emotion/styled').StyledComponent<{
|
|
9
|
+
theme?: import('@emotion/react').Theme;
|
|
10
10
|
as?: React.ElementType;
|
|
11
|
-
}, import(
|
|
12
|
-
export declare const Details: import(
|
|
13
|
-
theme?: import(
|
|
11
|
+
}, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
12
|
+
export declare const Details: import('@emotion/styled').StyledComponent<{
|
|
13
|
+
theme?: import('@emotion/react').Theme;
|
|
14
14
|
as?: React.ElementType;
|
|
15
|
-
}, import(
|
|
16
|
-
export declare const Author: import(
|
|
17
|
-
theme?: import(
|
|
15
|
+
}, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
16
|
+
export declare const Author: import('@emotion/styled').StyledComponent<{
|
|
17
|
+
theme?: import('@emotion/react').Theme;
|
|
18
18
|
as?: React.ElementType;
|
|
19
|
-
}, import(
|
|
20
|
-
export declare const Avatar: import(
|
|
21
|
-
|
|
22
|
-
theme?: import("@emotion/react").Theme;
|
|
19
|
+
}, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
20
|
+
export declare const Avatar: import('@emotion/styled').StyledComponent<import('@mui/material/Avatar').AvatarOwnProps & import('@mui/material/Avatar').AvatarSlotsAndSlotProps & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "children" | "style" | "className" | "classes" | "sx" | "variant" | "slots" | "slotProps" | "alt" | "imgProps" | "sizes" | "src" | "srcSet"> & {
|
|
21
|
+
theme?: import('@emotion/react').Theme;
|
|
23
22
|
}, {}, {}>;
|
|
24
|
-
export declare const
|
|
25
|
-
theme?: import(
|
|
23
|
+
export declare const WrapperLink: import('@emotion/styled').StyledComponent<import('react-router').LinkProps & import('react').RefAttributes<HTMLAnchorElement> & {
|
|
24
|
+
theme?: import('@emotion/react').Theme;
|
|
25
|
+
}, {}, {}>;
|
|
26
|
+
export declare const PackageTitle: import('@emotion/styled').StyledComponent<{
|
|
27
|
+
theme?: import('@emotion/react').Theme;
|
|
26
28
|
as?: React.ElementType;
|
|
27
29
|
} & {
|
|
28
30
|
theme?: Theme;
|
|
29
|
-
}, import(
|
|
30
|
-
export declare const GridRightAligned: import(
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
export declare const
|
|
36
|
-
theme?: import(
|
|
31
|
+
}, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
32
|
+
export declare const GridRightAligned: import('@emotion/styled').StyledComponent<import('@mui/material/Grid').GridBaseProps & {
|
|
33
|
+
sx?: import('@mui/system').SxProps<import('@mui/material').Theme> | undefined;
|
|
34
|
+
} & import('@mui/system').SystemProps<import('@mui/material').Theme> & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "sx" | ("p" | "zIndex" | "typography" | "fontFamily" | "fontSize" | "fontWeight" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "color" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "overflow" | "padding" | "paddingBlock" | "paddingInline" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "displayPrint") | keyof import('@mui/material/Grid').GridBaseProps> & {
|
|
35
|
+
theme?: import('@emotion/react').Theme;
|
|
36
|
+
}, {}, {}>;
|
|
37
|
+
export declare const Wrapper: import('@emotion/styled').StyledComponent<import('@mui/material/List').ListOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "children" | "style" | "className" | "classes" | "sx" | "dense" | "disablePadding" | "subheader"> & {
|
|
38
|
+
theme?: import('@emotion/react').Theme;
|
|
39
|
+
} & {
|
|
40
|
+
theme?: Theme;
|
|
41
|
+
}, {}, {}>;
|
|
42
|
+
export declare const IconButton: import('@emotion/styled').StyledComponent<import('@mui/material/IconButton').IconButtonOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "children" | "style" | "color" | "className" | "classes" | "sx" | "tabIndex" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "loading" | "loadingIndicator" | "size"> & {
|
|
43
|
+
theme?: import('@emotion/react').Theme;
|
|
44
|
+
}, {}, {}>;
|
|
45
|
+
export declare const PackageListItemText: import('@emotion/styled').StyledComponent<import('@mui/material/ListItemText').ListItemTextProps<import('react').ElementType<any, keyof import("react").JSX.IntrinsicElements>, import('react').ElementType<any, keyof import("react").JSX.IntrinsicElements>> & {
|
|
46
|
+
theme?: import('@emotion/react').Theme;
|
|
37
47
|
}, {}, {}>;
|
|
38
|
-
export declare const Description: import(
|
|
39
|
-
theme?: import(
|
|
48
|
+
export declare const Description: import('@emotion/styled').StyledComponent<{
|
|
49
|
+
theme?: import('@emotion/react').Theme;
|
|
40
50
|
as?: React.ElementType;
|
|
41
51
|
} & {
|
|
42
52
|
theme?: Theme;
|
|
43
|
-
}, import(
|
|
53
|
+
}, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
@@ -6,7 +6,7 @@ import { Link } from "react-router";
|
|
|
6
6
|
import List from "@mui/material/List";
|
|
7
7
|
import Avatar from "@mui/material/Avatar";
|
|
8
8
|
import Grid from "@mui/material/Grid";
|
|
9
|
-
import
|
|
9
|
+
import MuiListItemText from "@mui/material/ListItemText";
|
|
10
10
|
//#region src/components/Package/styles.ts
|
|
11
11
|
var OverviewItem = styled("span")(({ theme }) => ({
|
|
12
12
|
display: "flex",
|
|
@@ -53,7 +53,7 @@ var IconButton$1 = styled(IconButton)({
|
|
|
53
53
|
padding: 6,
|
|
54
54
|
svg: { fontSize: 16 }
|
|
55
55
|
});
|
|
56
|
-
var PackageListItemText = styled(
|
|
56
|
+
var PackageListItemText = styled(MuiListItemText)({ paddingRight: 0 });
|
|
57
57
|
var Description = styled("span")(({ theme }) => ({
|
|
58
58
|
color: theme.palette.mode === "light" ? greyDark : common.white,
|
|
59
59
|
fontSize: "14px",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.mjs","names":[],"sources":["../../../src/components/Package/styles.ts"],"sourcesContent":["import styled from '@emotion/styled';\nimport { default as Photo } from '@mui/material/Avatar';\nimport Grid from '@mui/material/Grid';\nimport { default as MuiIconButton } from '@mui/material/IconButton';\nimport List from '@mui/material/List';\nimport ListItemText from '@mui/material/ListItemText';\nimport { common } from '@mui/material/colors';\nimport { Link } from 'react-router';\n\nimport type { Theme } from '../../';\nimport { greyDark } from '../../Theme/colors';\n\nexport const OverviewItem = styled('span')<{ theme?: Theme }>(({ theme }) => ({\n display: 'flex',\n alignItems: 'center',\n margin: '0 20px 0 0',\n color: theme.palette.mode === 'light' ? theme.palette.greyDark2 : common.white,\n fontSize: 12,\n [`@media (max-width: ${theme.breakPoints.medium}px)`]: {\n ':nth-of-type(3)': {\n display: 'none',\n },\n },\n [`@media (max-width: ${theme.breakPoints.small}px)`]: {\n ':nth-of-type(4)': {\n display: 'none',\n },\n },\n}));\n\nexport const Published = styled('span')({\n margin: '0 5px 0 0',\n});\n\nexport const Details = styled('span')({\n marginLeft: '5px',\n lineHeight: 1.5,\n display: 'flex',\n flexDirection: 'column',\n});\n\nexport const Author = styled('div')({\n display: 'flex',\n alignItems: 'center',\n});\n\nexport const Avatar = styled(Photo)({\n width: '20px',\n height: '20px',\n});\n\nexport const WrapperLink = styled(Link)({\n textDecoration: 'none',\n});\n\nexport const PackageTitle = styled('span')<{ theme?: Theme }>(({ theme }) => ({\n fontWeight: theme.fontWeight.bold,\n fontSize: 20,\n display: 'block',\n color: theme.palette.primary.main,\n cursor: 'pointer',\n textDecoration: 'none',\n wordBreak: 'break-word',\n [`@media (max-width: ${theme.breakPoints.small}px)`]: {\n fontSize: 16,\n },\n}));\n\nexport const GridRightAligned = styled(Grid)({\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'flex-end',\n});\n\nexport const Wrapper = styled(List)<{ theme?: Theme }>(({ theme }) => ({\n '&:hover': {\n backgroundColor: theme.palette.action.hover,\n },\n}));\n\nexport const IconButton = styled(MuiIconButton)({\n padding: 6,\n svg: {\n fontSize: 16,\n },\n});\n\nexport const PackageListItemText = styled(ListItemText)({\n paddingRight: 0,\n});\n\nexport const Description = styled('span')<{ theme?: Theme }>(({ theme }) => ({\n color: theme.palette.mode === 'light' ? greyDark : common.white,\n fontSize: '14px',\n paddingRight: 0,\n}));\n"],"mappings":";;;;;;;;;;AAYA,IAAa,eAAe,OAAO,OAAO,EAAqB,EAAE,aAAa;CAC5E,SAAS;CACT,YAAY;CACZ,QAAQ;CACR,OAAO,MAAM,QAAQ,SAAS,UAAU,MAAM,QAAQ,YAAY,OAAO;CACzE,UAAU;EACT,sBAAsB,MAAM,YAAY,OAAO,OAAO,EACrD,mBAAmB,EACjB,SAAS,QACV,EACF;EACA,sBAAsB,MAAM,YAAY,MAAM,OAAO,EACpD,mBAAmB,EACjB,SAAS,QACV,EACF;CACF,EAAE;AAEH,IAAa,YAAY,OAAO,OAAO,CAAC,EACtC,QAAQ,aACT,CAAC;AAEF,IAAa,UAAU,OAAO,OAAO,CAAC;CACpC,YAAY;CACZ,YAAY;CACZ,SAAS;CACT,eAAe;CAChB,CAAC;AAEF,IAAa,SAAS,OAAO,MAAM,CAAC;CAClC,SAAS;CACT,YAAY;CACb,CAAC;AAEF,IAAa,WAAS,OAAO,OAAM,CAAC;CAClC,OAAO;CACP,QAAQ;CACT,CAAC;AAEF,IAAa,cAAc,OAAO,KAAK,CAAC,EACtC,gBAAgB,QACjB,CAAC;AAEF,IAAa,eAAe,OAAO,OAAO,EAAqB,EAAE,aAAa;CAC5E,YAAY,MAAM,WAAW;CAC7B,UAAU;CACV,SAAS;CACT,OAAO,MAAM,QAAQ,QAAQ;CAC7B,QAAQ;CACR,gBAAgB;CAChB,WAAW;EACV,sBAAsB,MAAM,YAAY,MAAM,OAAO,EACpD,UAAU,IACX;CACF,EAAE;AAEH,IAAa,mBAAmB,OAAO,KAAK,CAAC;CAC3C,SAAS;CACT,YAAY;CACZ,gBAAgB;CACjB,CAAC;AAEF,IAAa,UAAU,OAAO,KAAK,EAAqB,EAAE,aAAa,EACrE,WAAW,EACT,iBAAiB,MAAM,QAAQ,OAAO,OACvC,EACF,EAAE;AAEH,IAAa,eAAa,OAAO,WAAc,CAAC;CAC9C,SAAS;CACT,KAAK,EACH,UAAU,IACX;CACF,CAAC;AAEF,IAAa,sBAAsB,OAAO,
|
|
1
|
+
{"version":3,"file":"styles.mjs","names":[],"sources":["../../../src/components/Package/styles.ts"],"sourcesContent":["import styled from '@emotion/styled';\nimport { default as Photo } from '@mui/material/Avatar';\nimport Grid from '@mui/material/Grid';\nimport { default as MuiIconButton } from '@mui/material/IconButton';\nimport List from '@mui/material/List';\nimport ListItemText from '@mui/material/ListItemText';\nimport { common } from '@mui/material/colors';\nimport { Link } from 'react-router';\n\nimport type { Theme } from '../../';\nimport { greyDark } from '../../Theme/colors';\n\nexport const OverviewItem = styled('span')<{ theme?: Theme }>(({ theme }) => ({\n display: 'flex',\n alignItems: 'center',\n margin: '0 20px 0 0',\n color: theme.palette.mode === 'light' ? theme.palette.greyDark2 : common.white,\n fontSize: 12,\n [`@media (max-width: ${theme.breakPoints.medium}px)`]: {\n ':nth-of-type(3)': {\n display: 'none',\n },\n },\n [`@media (max-width: ${theme.breakPoints.small}px)`]: {\n ':nth-of-type(4)': {\n display: 'none',\n },\n },\n}));\n\nexport const Published = styled('span')({\n margin: '0 5px 0 0',\n});\n\nexport const Details = styled('span')({\n marginLeft: '5px',\n lineHeight: 1.5,\n display: 'flex',\n flexDirection: 'column',\n});\n\nexport const Author = styled('div')({\n display: 'flex',\n alignItems: 'center',\n});\n\nexport const Avatar = styled(Photo)({\n width: '20px',\n height: '20px',\n});\n\nexport const WrapperLink = styled(Link)({\n textDecoration: 'none',\n});\n\nexport const PackageTitle = styled('span')<{ theme?: Theme }>(({ theme }) => ({\n fontWeight: theme.fontWeight.bold,\n fontSize: 20,\n display: 'block',\n color: theme.palette.primary.main,\n cursor: 'pointer',\n textDecoration: 'none',\n wordBreak: 'break-word',\n [`@media (max-width: ${theme.breakPoints.small}px)`]: {\n fontSize: 16,\n },\n}));\n\nexport const GridRightAligned = styled(Grid)({\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'flex-end',\n});\n\nexport const Wrapper = styled(List)<{ theme?: Theme }>(({ theme }) => ({\n '&:hover': {\n backgroundColor: theme.palette.action.hover,\n },\n}));\n\nexport const IconButton = styled(MuiIconButton)({\n padding: 6,\n svg: {\n fontSize: 16,\n },\n});\n\nexport const PackageListItemText = styled(ListItemText)({\n paddingRight: 0,\n});\n\nexport const Description = styled('span')<{ theme?: Theme }>(({ theme }) => ({\n color: theme.palette.mode === 'light' ? greyDark : common.white,\n fontSize: '14px',\n paddingRight: 0,\n}));\n"],"mappings":";;;;;;;;;;AAYA,IAAa,eAAe,OAAO,OAAO,EAAqB,EAAE,aAAa;CAC5E,SAAS;CACT,YAAY;CACZ,QAAQ;CACR,OAAO,MAAM,QAAQ,SAAS,UAAU,MAAM,QAAQ,YAAY,OAAO;CACzE,UAAU;EACT,sBAAsB,MAAM,YAAY,OAAO,OAAO,EACrD,mBAAmB,EACjB,SAAS,QACV,EACF;EACA,sBAAsB,MAAM,YAAY,MAAM,OAAO,EACpD,mBAAmB,EACjB,SAAS,QACV,EACF;CACF,EAAE;AAEH,IAAa,YAAY,OAAO,OAAO,CAAC,EACtC,QAAQ,aACT,CAAC;AAEF,IAAa,UAAU,OAAO,OAAO,CAAC;CACpC,YAAY;CACZ,YAAY;CACZ,SAAS;CACT,eAAe;CAChB,CAAC;AAEF,IAAa,SAAS,OAAO,MAAM,CAAC;CAClC,SAAS;CACT,YAAY;CACb,CAAC;AAEF,IAAa,WAAS,OAAO,OAAM,CAAC;CAClC,OAAO;CACP,QAAQ;CACT,CAAC;AAEF,IAAa,cAAc,OAAO,KAAK,CAAC,EACtC,gBAAgB,QACjB,CAAC;AAEF,IAAa,eAAe,OAAO,OAAO,EAAqB,EAAE,aAAa;CAC5E,YAAY,MAAM,WAAW;CAC7B,UAAU;CACV,SAAS;CACT,OAAO,MAAM,QAAQ,QAAQ;CAC7B,QAAQ;CACR,gBAAgB;CAChB,WAAW;EACV,sBAAsB,MAAM,YAAY,MAAM,OAAO,EACpD,UAAU,IACX;CACF,EAAE;AAEH,IAAa,mBAAmB,OAAO,KAAK,CAAC;CAC3C,SAAS;CACT,YAAY;CACZ,gBAAgB;CACjB,CAAC;AAEF,IAAa,UAAU,OAAO,KAAK,EAAqB,EAAE,aAAa,EACrE,WAAW,EACT,iBAAiB,MAAM,QAAQ,OAAO,OACvC,EACF,EAAE;AAEH,IAAa,eAAa,OAAO,WAAc,CAAC;CAC9C,SAAS;CACT,KAAK,EACH,UAAU,IACX;CACF,CAAC;AAEF,IAAa,sBAAsB,OAAO,gBAAa,CAAC,EACtD,cAAc,GACf,CAAC;AAEF,IAAa,cAAc,OAAO,OAAO,EAAqB,EAAE,aAAa;CAC3E,OAAO,MAAM,QAAQ,SAAS,UAAU,WAAW,OAAO;CAC1D,UAAU;CACV,cAAc;CACf,EAAE"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ManifestWeb } from '../../providers/ManifestsProvider/ManifestsProvider';
|
|
3
3
|
interface Props {
|
|
4
4
|
packages: ManifestWeb[];
|
|
5
5
|
}
|
|
@@ -4,9 +4,9 @@ import LinkExternal from "../LinkExternal/LinkExternal.mjs";
|
|
|
4
4
|
import "../LinkExternal/index.mjs";
|
|
5
5
|
import "react";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
-
import
|
|
7
|
+
import Typography from "@mui/material/Typography";
|
|
8
8
|
//#region src/components/Person/PersonTooltip.tsx
|
|
9
|
-
var PersonTooltip = ({ person }) => /* @__PURE__ */ jsxs(
|
|
9
|
+
var PersonTooltip = ({ person }) => /* @__PURE__ */ jsxs(Typography, {
|
|
10
10
|
"data-testid": person.name + "-tooltip",
|
|
11
11
|
children: [
|
|
12
12
|
person.name,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PersonTooltip.mjs","names":[],"sources":["../../../src/components/Person/PersonTooltip.tsx"],"sourcesContent":["import Typography from '@mui/material/Typography';\nimport React from 'react';\n\nimport type { Developer } from '../../types/packageMeta';\nimport { url } from '../../utils';\nimport LinkExternal from '../LinkExternal';\n\nconst PersonTooltip: React.FC<{ person: Developer }> = ({ person }) => (\n <Typography data-testid={person.name + '-tooltip'}>\n {person.name}\n {person.email && url.isEmail(person.email) && (\n <LinkExternal to={`mailto:${person.email}`}>\n <br />\n {person.email}\n </LinkExternal>\n )}\n {person.url && url.isURL(person.url) && (\n <LinkExternal to={person.url}>\n <br />\n {person.url}\n </LinkExternal>\n )}\n </Typography>\n);\n\nexport default PersonTooltip;\n"],"mappings":";;;;;;;;AAOA,IAAM,iBAAkD,EAAE,aACxD,qBAAC,
|
|
1
|
+
{"version":3,"file":"PersonTooltip.mjs","names":[],"sources":["../../../src/components/Person/PersonTooltip.tsx"],"sourcesContent":["import Typography from '@mui/material/Typography';\nimport React from 'react';\n\nimport type { Developer } from '../../types/packageMeta';\nimport { url } from '../../utils';\nimport LinkExternal from '../LinkExternal';\n\nconst PersonTooltip: React.FC<{ person: Developer }> = ({ person }) => (\n <Typography data-testid={person.name + '-tooltip'}>\n {person.name}\n {person.email && url.isEmail(person.email) && (\n <LinkExternal to={`mailto:${person.email}`}>\n <br />\n {person.email}\n </LinkExternal>\n )}\n {person.url && url.isURL(person.url) && (\n <LinkExternal to={person.url}>\n <br />\n {person.url}\n </LinkExternal>\n )}\n </Typography>\n);\n\nexport default PersonTooltip;\n"],"mappings":";;;;;;;;AAOA,IAAM,iBAAkD,EAAE,aACxD,qBAAC,YAAD;CAAY,eAAa,OAAO,OAAO;WAAvC;EACG,OAAO;EACP,OAAO,SAAS,QAAY,OAAO,MAAM,IACxC,qBAAC,cAAD;GAAc,IAAI,UAAU,OAAO;aAAnC,CACE,oBAAC,MAAD,EAAM,CAAA,EACL,OAAO,MACK;;EAEhB,OAAO,OAAO,MAAU,OAAO,IAAI,IAClC,qBAAC,cAAD;GAAc,IAAI,OAAO;aAAzB,CACE,oBAAC,MAAD,EAAM,CAAA,EACL,OAAO,IACK;;EAEN"}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import '
|
|
2
|
-
import '
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import './github-markdown.css';
|
|
5
|
-
import type { Props } from './types';
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Props } from './types';
|
|
6
3
|
declare const Readme: React.FC<Props>;
|
|
7
4
|
export default Readme;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const require_runtime = require("../../_virtual/_rolldown/runtime.js");
|
|
2
2
|
;/* empty css */
|
|
3
|
+
;/* empty css */
|
|
4
|
+
;/* empty css */
|
|
3
5
|
const require_utils = require("./utils.js");
|
|
4
|
-
const require_ThemeProvider = require("../../Theme/ThemeProvider.js");
|
|
5
|
-
require("../../index.js");
|
|
6
6
|
let _emotion_styled = require("@emotion/styled");
|
|
7
7
|
_emotion_styled = require_runtime.__toESM(_emotion_styled);
|
|
8
8
|
let react = require("react");
|
|
@@ -10,22 +10,22 @@ react = require_runtime.__toESM(react);
|
|
|
10
10
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
11
11
|
let _mui_material_Box = require("@mui/material/Box");
|
|
12
12
|
_mui_material_Box = require_runtime.__toESM(_mui_material_Box);
|
|
13
|
+
let _mui_material_styles = require("@mui/material/styles");
|
|
13
14
|
let _mui_material_Card = require("@mui/material/Card");
|
|
14
15
|
_mui_material_Card = require_runtime.__toESM(_mui_material_Card);
|
|
15
16
|
let _mui_material_CardContent = require("@mui/material/CardContent");
|
|
16
17
|
_mui_material_CardContent = require_runtime.__toESM(_mui_material_CardContent);
|
|
17
|
-
require("highlight.js/styles/github-dark.css");
|
|
18
|
-
require("highlight.js/styles/github.css");
|
|
19
18
|
//#region src/components/Readme/Readme.tsx
|
|
20
19
|
var Readme = ({ description }) => {
|
|
21
|
-
const
|
|
20
|
+
const dataTheme = (0, _mui_material_styles.useTheme)().palette.mode;
|
|
22
21
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_mui_material_Card.default, {
|
|
23
22
|
sx: { mb: 2 },
|
|
24
23
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_mui_material_CardContent.default, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_mui_material_Box.default, {
|
|
25
24
|
"data-testid": "readme",
|
|
26
25
|
sx: { m: 2 },
|
|
27
26
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Wrapper, {
|
|
28
|
-
className:
|
|
27
|
+
className: "markdown-body hljs",
|
|
28
|
+
"data-theme": dataTheme,
|
|
29
29
|
dangerouslySetInnerHTML: { __html: require_utils.parseReadme(description) }
|
|
30
30
|
})
|
|
31
31
|
}) })
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Readme.js","names":[],"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 '
|
|
1
|
+
{"version":3,"file":"Readme.js","names":[],"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 { useTheme } from '@mui/material/styles';\nimport React from 'react';\n\nimport './github-markdown.css';\nimport './hljs-github-dark.css';\nimport './hljs-github-light.css';\nimport type { Props } from './types';\nimport { parseReadme } from './utils';\n\nconst Readme: React.FC<Props> = ({ description }) => {\n const theme = useTheme();\n const dataTheme = theme.palette.mode;\n\n return (\n <Card sx={{ mb: 2 }}>\n <CardContent>\n <Box data-testid=\"readme\" sx={{ m: 2 }}>\n <Wrapper\n className=\"markdown-body hljs\"\n data-theme={dataTheme}\n dangerouslySetInnerHTML={{ __html: parseReadme(description) as string }}\n />\n </Box>\n </CardContent>\n </Card>\n );\n};\nexport default Readme;\n\nconst Wrapper = styled('div')({\n ul: {\n listStyle: 'disc',\n },\n img: {\n maxWidth: '100%',\n },\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;AAaA,IAAM,UAA2B,EAAE,kBAAkB;CAEnD,MAAM,aAAA,GAAA,qBAAA,WADkB,CACA,QAAQ;AAEhC,QACE,iBAAA,GAAA,kBAAA,KAAC,mBAAA,SAAD;EAAM,IAAI,EAAE,IAAI,GAAG;YACjB,iBAAA,GAAA,kBAAA,KAAC,0BAAA,SAAD,EAAA,UACE,iBAAA,GAAA,kBAAA,KAAC,kBAAA,SAAD;GAAK,eAAY;GAAS,IAAI,EAAE,GAAG,GAAG;aACpC,iBAAA,GAAA,kBAAA,KAAC,SAAD;IACE,WAAU;IACV,cAAY;IACZ,yBAAyB,EAAE,QAAQ,cAAA,YAAY,YAAY,EAAY;IACvE,CAAA;GACE,CAAA,EACM,CAAA;EACT,CAAA;;AAKX,IAAM,WAAA,GAAA,gBAAA,SAAiB,MAAM,CAAC;CAC5B,IAAI,EACF,WAAW,QACZ;CACD,KAAK,EACH,UAAU,QACX;CACF,CAAC"}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
/* empty css */
|
|
2
|
+
/* empty css */
|
|
3
|
+
/* empty css */
|
|
2
4
|
import { parseReadme } from "./utils.mjs";
|
|
3
|
-
import { useCustomTheme } from "../../Theme/ThemeProvider.mjs";
|
|
4
|
-
import "../../index.mjs";
|
|
5
5
|
import styled from "@emotion/styled";
|
|
6
6
|
import "react";
|
|
7
7
|
import { jsx } from "react/jsx-runtime";
|
|
8
8
|
import Box from "@mui/material/Box";
|
|
9
|
+
import { useTheme } from "@mui/material/styles";
|
|
9
10
|
import Card from "@mui/material/Card";
|
|
10
11
|
import CardContent from "@mui/material/CardContent";
|
|
11
|
-
import "highlight.js/styles/github-dark.css";
|
|
12
|
-
import "highlight.js/styles/github.css";
|
|
13
12
|
//#region src/components/Readme/Readme.tsx
|
|
14
13
|
var Readme = ({ description }) => {
|
|
15
|
-
const
|
|
14
|
+
const dataTheme = useTheme().palette.mode;
|
|
16
15
|
return /* @__PURE__ */ jsx(Card, {
|
|
17
16
|
sx: { mb: 2 },
|
|
18
17
|
children: /* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsx(Box, {
|
|
19
18
|
"data-testid": "readme",
|
|
20
19
|
sx: { m: 2 },
|
|
21
20
|
children: /* @__PURE__ */ jsx(Wrapper, {
|
|
22
|
-
className:
|
|
21
|
+
className: "markdown-body hljs",
|
|
22
|
+
"data-theme": dataTheme,
|
|
23
23
|
dangerouslySetInnerHTML: { __html: parseReadme(description) }
|
|
24
24
|
})
|
|
25
25
|
}) })
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Readme.mjs","names":[],"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 '
|
|
1
|
+
{"version":3,"file":"Readme.mjs","names":[],"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 { useTheme } from '@mui/material/styles';\nimport React from 'react';\n\nimport './github-markdown.css';\nimport './hljs-github-dark.css';\nimport './hljs-github-light.css';\nimport type { Props } from './types';\nimport { parseReadme } from './utils';\n\nconst Readme: React.FC<Props> = ({ description }) => {\n const theme = useTheme();\n const dataTheme = theme.palette.mode;\n\n return (\n <Card sx={{ mb: 2 }}>\n <CardContent>\n <Box data-testid=\"readme\" sx={{ m: 2 }}>\n <Wrapper\n className=\"markdown-body hljs\"\n data-theme={dataTheme}\n dangerouslySetInnerHTML={{ __html: parseReadme(description) as string }}\n />\n </Box>\n </CardContent>\n </Card>\n );\n};\nexport default Readme;\n\nconst Wrapper = styled('div')({\n ul: {\n listStyle: 'disc',\n },\n img: {\n maxWidth: '100%',\n },\n});\n"],"mappings":";;;;;;;;;;;;AAaA,IAAM,UAA2B,EAAE,kBAAkB;CAEnD,MAAM,YADQ,UAAU,CACA,QAAQ;AAEhC,QACE,oBAAC,MAAD;EAAM,IAAI,EAAE,IAAI,GAAG;YACjB,oBAAC,aAAD,EAAA,UACE,oBAAC,KAAD;GAAK,eAAY;GAAS,IAAI,EAAE,GAAG,GAAG;aACpC,oBAAC,SAAD;IACE,WAAU;IACV,cAAY;IACZ,yBAAyB,EAAE,QAAQ,YAAY,YAAY,EAAY;IACvE,CAAA;GACE,CAAA,EACM,CAAA;EACT,CAAA;;AAKX,IAAM,UAAU,OAAO,MAAM,CAAC;CAC5B,IAAI,EACF,WAAW,QACZ;CACD,KAAK,EACH,UAAU,QACX;CACF,CAAC"}
|