dumi-theme-lobehub 1.4.1 → 1.5.0
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/README.md +1 -1
- package/dist/builtins/Features/index.js +5 -4
- package/dist/components/Favicons/index.js +6 -36
- package/dist/slots/ContentTabs/index.d.ts +1 -1
- package/dist/store/useSiteStore.d.ts +1 -1
- package/dist/types/config.d.ts +1 -1
- package/dist/types/hero.d.ts +1 -1
- package/dist/types/index.d.ts +5 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
<div align="center">
|
|
4
4
|
|
|
5
|
-
<img height="120" src="https://
|
|
5
|
+
<img height="120" src="https://registry.npmmirror.com/@lobehub/assets-logo/1.0.0/files/assets/logo-3d.webp">
|
|
6
6
|
<img height="120" src="https://gw.alipayobjects.com/zos/kitchen/qJ3l3EPsdW/split.svg">
|
|
7
7
|
<img height="120" src="https://gw.alipayobjects.com/zos/bmw-prod/d3e3eb39-1cd7-4aa5-827c-877deced6b7e/lalxt4g3_w256_h256.png">
|
|
8
8
|
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import { Features } from '@lobehub/ui';
|
|
2
|
+
import { MoonStar, Palette, Zap } from 'lucide-react';
|
|
2
3
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
4
|
export default (function () {
|
|
4
5
|
return /*#__PURE__*/_jsx(Features, {
|
|
5
6
|
items: [{
|
|
6
7
|
description: 'Provides a simple way to customize default themes, you can change the colors, fonts, breakpoints and everything you need.',
|
|
7
|
-
icon:
|
|
8
|
+
icon: Palette,
|
|
8
9
|
title: 'Themeable'
|
|
9
10
|
}, {
|
|
10
11
|
description: 'voids unnecessary styles props at runtime, making it more performant than other UI libraries.',
|
|
11
|
-
icon:
|
|
12
|
+
icon: Zap,
|
|
12
13
|
title: 'Fast'
|
|
13
14
|
}, {
|
|
14
|
-
description: 'Automatic dark mode recognition,
|
|
15
|
-
icon:
|
|
15
|
+
description: 'Automatic dark mode recognition, LobeUI automatically changes the theme when detects HTML theme prop changes.',
|
|
16
|
+
icon: MoonStar,
|
|
16
17
|
title: 'Light & Dark UI'
|
|
17
18
|
}]
|
|
18
19
|
});
|
|
@@ -1,43 +1,13 @@
|
|
|
1
|
+
import { Meta } from '@lobehub/ui';
|
|
1
2
|
import { Helmet } from 'dumi';
|
|
2
3
|
import { memo } from 'react';
|
|
3
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
5
5
|
var Favicons = /*#__PURE__*/memo(function () {
|
|
6
|
-
return /*#__PURE__*/
|
|
7
|
-
children:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}), /*#__PURE__*/_jsx("link", {
|
|
12
|
-
href: "https://npm.elemecdn.com/@lobehub/assets-favicons/assets/favicon-32x32.png",
|
|
13
|
-
rel: "icon",
|
|
14
|
-
sizes: "32x32",
|
|
15
|
-
type: "image/png"
|
|
16
|
-
}), /*#__PURE__*/_jsx("link", {
|
|
17
|
-
href: "https://npm.elemecdn.com/@lobehub/assets-favicons/assets/favicon-16x16.png",
|
|
18
|
-
rel: "icon",
|
|
19
|
-
sizes: "16x16",
|
|
20
|
-
type: "image/png"
|
|
21
|
-
}), /*#__PURE__*/_jsx("link", {
|
|
22
|
-
href: "https://npm.elemecdn.com/@lobehub/assets-favicons/assets/site.webmanifest",
|
|
23
|
-
rel: "manifest"
|
|
24
|
-
}), /*#__PURE__*/_jsx("link", {
|
|
25
|
-
color: "#000000",
|
|
26
|
-
href: "https://npm.elemecdn.com/@lobehub/assets-favicons/assets/safari-pinned-tab.svg",
|
|
27
|
-
rel: "mask-icon"
|
|
28
|
-
}), /*#__PURE__*/_jsx("meta", {
|
|
29
|
-
content: "LobeHub",
|
|
30
|
-
name: "apple-mobile-web-app-title"
|
|
31
|
-
}), /*#__PURE__*/_jsx("meta", {
|
|
32
|
-
content: "LobeHub",
|
|
33
|
-
name: "application-name"
|
|
34
|
-
}), /*#__PURE__*/_jsx("meta", {
|
|
35
|
-
content: "#000000",
|
|
36
|
-
name: "msapplication-TileColor"
|
|
37
|
-
}), /*#__PURE__*/_jsx("meta", {
|
|
38
|
-
content: "#000000",
|
|
39
|
-
name: "theme-color"
|
|
40
|
-
})]
|
|
6
|
+
return /*#__PURE__*/_jsx(Helmet, {
|
|
7
|
+
children: /*#__PURE__*/_jsx(Meta, {
|
|
8
|
+
title: 'LobeUI',
|
|
9
|
+
withManifest: true
|
|
10
|
+
})
|
|
41
11
|
});
|
|
42
12
|
});
|
|
43
13
|
export default Favicons;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { useRouteMeta } from 'dumi';
|
|
3
|
-
|
|
3
|
+
type IContentTabs = ReturnType<typeof useRouteMeta>['tabs'];
|
|
4
4
|
export interface ContentTabsProps {
|
|
5
5
|
onChange: (tab?: NonNullable<IContentTabs>[0]) => void;
|
|
6
6
|
tabKey: string | undefined;
|
|
@@ -4,7 +4,7 @@ import { PICKED_PKG_FIELDS } from 'dumi/dist/constants';
|
|
|
4
4
|
import type { Location } from 'history';
|
|
5
5
|
import { ComponentType } from 'react';
|
|
6
6
|
import { SiteThemeConfig } from "../types";
|
|
7
|
-
export
|
|
7
|
+
export type NavData = (INavItem & {
|
|
8
8
|
children?: INavItem[] | undefined;
|
|
9
9
|
})[];
|
|
10
10
|
export interface ISiteData {
|
package/dist/types/config.d.ts
CHANGED
|
@@ -35,4 +35,4 @@ export interface SiteThemeConfig {
|
|
|
35
35
|
};
|
|
36
36
|
title?: string;
|
|
37
37
|
}
|
|
38
|
-
export
|
|
38
|
+
export type SiteConfigToken = Partial<Pick<SiteCustomToken, 'headerHeight' | 'footerHeight' | 'sidebarWidth' | 'tocWidth' | 'contentMaxWidth'>>;
|
package/dist/types/hero.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type FeatureItem, type HeroAction } from '@lobehub/ui';
|
|
2
|
-
export
|
|
2
|
+
export type ImageContainerType = 'light' | 'primary' | 'soon';
|
|
3
3
|
export interface HeroConfig {
|
|
4
4
|
actions: HeroAction[];
|
|
5
5
|
description?: string;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -19,8 +19,8 @@ export interface AnchorItem {
|
|
|
19
19
|
*/
|
|
20
20
|
title: string;
|
|
21
21
|
}
|
|
22
|
-
export
|
|
23
|
-
export
|
|
24
|
-
export
|
|
25
|
-
export
|
|
26
|
-
export
|
|
22
|
+
export type DivProps = HTMLAttributes<HTMLDivElement>;
|
|
23
|
+
export type SvgProps = HTMLAttributes<SVGSVGElement>;
|
|
24
|
+
export type ImgProps = HTMLAttributes<HTMLImageElement>;
|
|
25
|
+
export type InputProps = HTMLAttributes<HTMLInputElement>;
|
|
26
|
+
export type TextAreaProps = HTMLAttributes<HTMLTextAreaElement>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dumi-theme-lobehub",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"description": "dumi-theme-lobehub is a documentation site theme package designed for dumi2. It provides a more beautiful and user-friendly development and reading experience based on @lobehub/ui",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"lobehub",
|