dumi-theme-lobehub 4.0.0 → 4.0.2
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/dist/builtins/Previewer/index.js +2 -4
- package/dist/builtins/Previewer/style.d.ts +9 -9
- package/dist/builtins/Previewer/style.js +7 -8
- package/dist/components/ApiHeader/index.js +1 -3
- package/dist/components/ApiHeader/style.d.ts +7 -7
- package/dist/components/ApiHeader/style.js +7 -8
- package/dist/components/NativeSelect/SelectItem/index.d.ts +0 -1
- package/dist/components/NativeSelect/SelectItem/index.js +3 -6
- package/dist/components/NativeSelect/SelectItem/style.d.ts +2 -2
- package/dist/components/NativeSelect/SelectItem/style.js +7 -7
- package/dist/components/NativeSelect/index.d.ts +0 -1
- package/dist/components/NativeSelect/index.js +1 -6
- package/dist/components/NativeSelect/style.d.ts +2 -2
- package/dist/components/NativeSelect/style.js +7 -7
- package/dist/layouts/DemoLayout/GlobalStyle.js +2 -11
- package/dist/layouts/DocLayout/ConfigProvider.js +11 -12
- package/dist/layouts/DocLayout/GlobalStyle.js +2 -2
- package/dist/pages/Changelog/index.js +1 -3
- package/dist/pages/Docs/index.js +1 -3
- package/dist/pages/Docs/styles.d.ts +4 -4
- package/dist/pages/Docs/styles.js +5 -5
- package/dist/slots/Content/index.js +4 -5
- package/dist/slots/Content/style.d.ts +3 -2
- package/dist/slots/Content/style.js +6 -7
- package/dist/slots/ContentFooter/Linker.js +2 -4
- package/dist/slots/ContentFooter/Linker.style.d.ts +6 -6
- package/dist/slots/ContentFooter/Linker.style.js +6 -6
- package/dist/slots/ContentTabs/index.js +1 -3
- package/dist/slots/ContentTabs/style.d.ts +3 -3
- package/dist/slots/ContentTabs/style.js +8 -8
- package/dist/slots/Footer/index.js +3 -5
- package/dist/slots/Footer/style.d.ts +4 -4
- package/dist/slots/Footer/style.js +5 -6
- package/dist/slots/Header/Burger.js +1 -1
- package/dist/slots/Header/ThemeSwitch.js +44 -7
- package/dist/slots/Logo/index.js +3 -6
- package/dist/slots/Logo/style.d.ts +3 -1
- package/dist/slots/Logo/style.js +6 -5
- package/dist/slots/Navbar/index.js +4 -12
- package/dist/slots/PreviewerActions/index.js +1 -3
- package/dist/slots/PreviewerActions/style.d.ts +4 -4
- package/dist/slots/PreviewerActions/style.js +5 -5
- package/dist/slots/SearchBar/index.js +1 -3
- package/dist/slots/SearchBar/style.d.ts +5 -5
- package/dist/slots/SearchBar/style.js +9 -11
- package/dist/slots/SearchResult/index.js +7 -8
- package/dist/slots/Sidebar/index.js +1 -3
- package/dist/slots/Sidebar/style.d.ts +4 -4
- package/dist/slots/Sidebar/style.js +5 -5
- package/dist/store/selectors/site.js +1 -1
- package/dist/styles/index.d.ts +4 -0
- package/dist/styles/index.js +20 -0
- package/package.json +5 -6
|
@@ -7,8 +7,9 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
7
7
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8
8
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
9
9
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
10
|
+
import { cx } from 'antd-style';
|
|
10
11
|
import Previewer from 'dumi/theme-default/builtins/Previewer';
|
|
11
|
-
import {
|
|
12
|
+
import { styles } from "./style";
|
|
12
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
14
|
export default (function (_ref) {
|
|
14
15
|
var center = _ref.center,
|
|
@@ -16,9 +17,6 @@ export default (function (_ref) {
|
|
|
16
17
|
nopadding = _ref.nopadding,
|
|
17
18
|
pure = _ref.pure,
|
|
18
19
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
19
|
-
var _useStyles = useStyles(pure),
|
|
20
|
-
styles = _useStyles.styles,
|
|
21
|
-
cx = _useStyles.cx;
|
|
22
20
|
return /*#__PURE__*/_jsx("div", {
|
|
23
21
|
className: cx('ignore-markdown-style', styles.container, pure && styles.pure, center && styles.center, nopadding && styles.nopadding, styles[codePlacement]),
|
|
24
22
|
children: /*#__PURE__*/_jsx(Previewer, _objectSpread({}, props))
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
center:
|
|
3
|
-
container:
|
|
4
|
-
left:
|
|
5
|
-
nopadding:
|
|
6
|
-
pure:
|
|
7
|
-
right:
|
|
8
|
-
top:
|
|
9
|
-
}
|
|
1
|
+
export declare const styles: {
|
|
2
|
+
center: string;
|
|
3
|
+
container: string;
|
|
4
|
+
left: string;
|
|
5
|
+
nopadding: string;
|
|
6
|
+
pure: string;
|
|
7
|
+
right: string;
|
|
8
|
+
top: string;
|
|
9
|
+
};
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7;
|
|
2
2
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
export var
|
|
3
|
+
import { createStaticStyles } from 'antd-style';
|
|
4
|
+
var prefixCls = 'ant';
|
|
5
|
+
export var styles = createStaticStyles(function (_ref) {
|
|
6
6
|
var css = _ref.css,
|
|
7
|
-
|
|
8
|
-
prefixCls = _ref.prefixCls;
|
|
7
|
+
cssVar = _ref.cssVar;
|
|
9
8
|
return {
|
|
10
9
|
center: css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .dumi-default-previewer-demo {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n "]))),
|
|
11
|
-
container: css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n .dumi-default-previewer {\n position: relative;\n\n overflow: hidden;\n display: flex;\n flex-direction: column;\n\n border-color: ", ";\n\n background: ", ";\n\n &-demo {\n flex: 1;\n border-top-color: ", " !important;\n\n > iframe {\n min-height: 600px;\n border-top: 1px solid ", ";\n }\n\n &[data-iframe]::before {\n background: ", ";\n }\n }\n\n &-meta {\n flex: 1;\n border-color: ", ";\n\n .", "-highlighter {\n pre {\n border-radius: 0 !important;\n }\n }\n }\n\n &-actions:not(:last-child) {\n border-color: ", ";\n }\n\n &-desc {\n .markdown {\n border-color: ", ";\n }\n\n h5 {\n background: linear-gradient(\n to top,\n ", ",\n ", " 50%,\n ", " 100%\n );\n\n a {\n color: ", ";\n }\n }\n }\n\n &-tabs::after {\n border-color: ", ";\n }\n }\n\n .dumi-default-tabs-tab {\n &-btn {\n color: ", ";\n }\n\n &-active {\n .dumi-default-tabs-tab-btn {\n color: ", ";\n }\n }\n }\n "])),
|
|
12
|
-
left: css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n .dumi-default-previewer {\n flex-direction: row-reverse;\n\n &-demo {\n width: 50%;\n border-left: 1px solid ", ";\n }\n\n &-meta {\n width: 50%;\n }\n }\n "])),
|
|
10
|
+
container: css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n .dumi-default-previewer {\n position: relative;\n\n overflow: hidden;\n display: flex;\n flex-direction: column;\n\n border-color: ", ";\n\n background: ", ";\n\n &-demo {\n flex: 1;\n border-top-color: ", " !important;\n\n > iframe {\n min-height: 600px;\n border-top: 1px solid ", ";\n }\n\n &[data-iframe]::before {\n background: ", ";\n }\n }\n\n &-meta {\n flex: 1;\n border-color: ", ";\n\n .", "-highlighter {\n pre {\n border-radius: 0 !important;\n }\n }\n }\n\n &-actions:not(:last-child) {\n border-color: ", ";\n }\n\n &-desc {\n .markdown {\n border-color: ", ";\n }\n\n h5 {\n background: linear-gradient(\n to top,\n ", ",\n color-mix(in srgb, ", " 95%, transparent) 50%,\n color-mix(in srgb, ", " 0%, transparent) 100%\n );\n\n a {\n color: ", ";\n }\n }\n }\n\n &-tabs::after {\n border-color: ", ";\n }\n }\n\n .dumi-default-tabs-tab {\n &-btn {\n color: ", ";\n }\n\n &-active {\n .dumi-default-tabs-tab-btn {\n color: ", ";\n }\n }\n }\n "])), cssVar.colorBorderSecondary, cssVar.colorBgLayout, cssVar.colorBgLayout, cssVar.colorBorderSecondary, cssVar.colorFillContent, cssVar.colorBorderSecondary, prefixCls, cssVar.colorBorderSecondary, cssVar.colorBorderSecondary, cssVar.colorBgContainer, cssVar.colorBgContainer, cssVar.colorBgContainer, cssVar.colorText, cssVar.colorBorderSecondary, cssVar.colorTextTertiary, cssVar.colorText),
|
|
11
|
+
left: css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n .dumi-default-previewer {\n flex-direction: row-reverse;\n\n &-demo {\n width: 50%;\n border-left: 1px solid ", ";\n }\n\n &-meta {\n width: 50%;\n }\n }\n "])), cssVar.colorBorderSecondary),
|
|
13
12
|
nopadding: css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n .dumi-default-previewer-demo {\n padding: 0;\n }\n "]))),
|
|
14
13
|
pure: css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n .dumi-default-previewer {\n margin: 0;\n padding: 0;\n border: none;\n }\n\n .dumi-default-previewer-demo {\n padding: 0;\n }\n\n .dumi-default-previewer-meta {\n display: none;\n }\n "]))),
|
|
15
|
-
right: css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n .dumi-default-previewer {\n flex-direction: row;\n\n &-demo {\n width: 50%;\n border-right: 1px solid ", ";\n }\n\n &-meta {\n width: 50%;\n }\n }\n "])),
|
|
14
|
+
right: css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n .dumi-default-previewer {\n flex-direction: row;\n\n &-demo {\n width: 50%;\n border-right: 1px solid ", ";\n }\n\n &-meta {\n width: 50%;\n }\n }\n "])), cssVar.colorBorderSecondary),
|
|
16
15
|
top: css(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n .dumi-default-previewer {\n flex-direction: column-reverse;\n\n &-meta {\n display: flex;\n flex-direction: column;\n }\n\n &-actions {\n order: 1;\n }\n\n &-desc {\n order: 2;\n }\n }\n "])))
|
|
17
16
|
};
|
|
18
17
|
});
|
|
@@ -13,7 +13,7 @@ import { useResponsive } from 'antd-style';
|
|
|
13
13
|
import { Edit3, Github } from 'lucide-react';
|
|
14
14
|
import { memo } from 'react';
|
|
15
15
|
import { Flexbox } from 'react-layout-kit';
|
|
16
|
-
import {
|
|
16
|
+
import { styles } from "./style";
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* @title ApiHeaderProps
|
|
@@ -38,8 +38,6 @@ export var ApiHeader = /*#__PURE__*/memo(function (_ref) {
|
|
|
38
38
|
_ref$serviceList = _ref.serviceList,
|
|
39
39
|
serviceList = _ref$serviceList === void 0 ? [] : _ref$serviceList,
|
|
40
40
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
41
|
-
var _useStyles = useStyles(),
|
|
42
|
-
styles = _useStyles.styles;
|
|
43
41
|
var _useResponsive = useResponsive(),
|
|
44
42
|
mobile = _useResponsive.mobile;
|
|
45
43
|
var isDoc = type === 'doc';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
desc:
|
|
3
|
-
label:
|
|
4
|
-
meta:
|
|
5
|
-
text:
|
|
6
|
-
title:
|
|
7
|
-
}
|
|
1
|
+
export declare const styles: {
|
|
2
|
+
desc: string;
|
|
3
|
+
label: string;
|
|
4
|
+
meta: string;
|
|
5
|
+
text: string;
|
|
6
|
+
title: string;
|
|
7
|
+
};
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
|
|
2
2
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
3
|
-
import {
|
|
4
|
-
|
|
3
|
+
import { createStaticStyles, responsive } from 'antd-style';
|
|
4
|
+
import { lobeStaticStylish } from "../../styles";
|
|
5
|
+
export var styles = createStaticStyles(function (_ref) {
|
|
5
6
|
var css = _ref.css,
|
|
6
|
-
|
|
7
|
-
r = _ref.responsive,
|
|
8
|
-
stylish = _ref.stylish;
|
|
7
|
+
cssVar = _ref.cssVar;
|
|
9
8
|
return {
|
|
10
|
-
desc: css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n font-size: ", "
|
|
9
|
+
desc: css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n font-size: ", ";\n line-height: ", ";\n "])), cssVar.fontSizeLG, cssVar.lineHeightLG),
|
|
11
10
|
label: css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n width: 80px;\n "]))),
|
|
12
11
|
meta: css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral([""]))),
|
|
13
|
-
text: css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n ", "\n "])),
|
|
14
|
-
title: css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n ", " {\n margin-block: 0;\n font-size: 32px !important;\n }\n "])),
|
|
12
|
+
text: css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n ", "\n "])), lobeStaticStylish.resetLinkColor),
|
|
13
|
+
title: css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n ", " {\n margin-block: 0;\n font-size: 32px !important;\n }\n "])), responsive.sm)
|
|
15
14
|
};
|
|
16
15
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
-
var _excluded = ["value", "label", "
|
|
2
|
+
var _excluded = ["value", "label", "isSelected", "isActive", "disabled"];
|
|
3
3
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
4
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
5
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
@@ -7,20 +7,17 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
7
7
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8
8
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
9
9
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
10
|
+
import { cx } from 'antd-style';
|
|
10
11
|
import { forwardRef } from 'react';
|
|
11
|
-
import {
|
|
12
|
+
import { styles } from "./style";
|
|
12
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
14
|
var SelectItem = /*#__PURE__*/forwardRef(function (_ref, reference) {
|
|
14
15
|
var value = _ref.value,
|
|
15
16
|
label = _ref.label,
|
|
16
|
-
prefixCls = _ref.prefixCls,
|
|
17
17
|
isSelected = _ref.isSelected,
|
|
18
18
|
isActive = _ref.isActive,
|
|
19
19
|
disabled = _ref.disabled,
|
|
20
20
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
21
|
-
var _useStyles = useStyles(prefixCls),
|
|
22
|
-
styles = _useStyles.styles,
|
|
23
|
-
cx = _useStyles.cx;
|
|
24
21
|
return /*#__PURE__*/_jsx("button", _objectSpread(_objectSpread({
|
|
25
22
|
"aria-selected": isSelected,
|
|
26
23
|
className: cx(styles.item, _defineProperty(_defineProperty({}, styles.selected, isSelected), styles.active, isActive)),
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
var _templateObject, _templateObject2, _templateObject3;
|
|
2
2
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
3
|
-
import {
|
|
4
|
-
|
|
3
|
+
import { createStaticStyles, cx } from 'antd-style';
|
|
4
|
+
var prefixCls = 'ant';
|
|
5
|
+
export var styles = createStaticStyles(function (_ref) {
|
|
5
6
|
var css = _ref.css,
|
|
6
|
-
|
|
7
|
-
token = _ref.token;
|
|
7
|
+
cssVar = _ref.cssVar;
|
|
8
8
|
return {
|
|
9
|
-
active: cx("".concat(prefixCls, "-item-active"), css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n background: ", ";\n "])),
|
|
10
|
-
item: cx("".concat(prefixCls, "-item"), css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n all: unset;\n\n user-select: none;\n scroll-margin: 50px;\n\n display: block;\n\n box-sizing: inherit;\n width: 100%;\n padding: 12px 10px;\n\n font-family: ", ";\n font-weight: normal;\n line-height: 1;\n color: ", ";\n\n background: transparent;\n
|
|
11
|
-
selected: cx("".concat(prefixCls, "-item-selected"), css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n font-weight: bold;\n color: ", ";\n background: ", ";\n\n &:hover {\n color: ", ";\n background: ", ";\n }\n "])),
|
|
9
|
+
active: cx("".concat(prefixCls, "-item-active"), css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n background: ", ";\n "])), cssVar.colorFillTertiary)),
|
|
10
|
+
item: cx("".concat(prefixCls, "-item"), css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n all: unset;\n\n user-select: none;\n scroll-margin: 50px;\n\n display: block;\n\n box-sizing: inherit;\n width: 100%;\n padding: 12px 10px;\n border-radius: 5px;\n\n font-family: ", ";\n font-weight: normal;\n line-height: 1;\n color: ", ";\n\n background: transparent;\n\n &:hover {\n background: ", ";\n }\n "])), cssVar.fontFamily, cssVar.colorText, cssVar.colorFillTertiary)),
|
|
11
|
+
selected: cx("".concat(prefixCls, "-item-selected"), css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n font-weight: bold;\n color: ", ";\n background: ", ";\n\n &:hover {\n color: ", ";\n background: ", ";\n }\n "])), cssVar.colorPrimaryText, cssVar.colorPrimaryBg, cssVar.colorPrimaryTextHover, cssVar.colorPrimaryBgHover))
|
|
12
12
|
};
|
|
13
13
|
});
|
|
@@ -7,7 +7,6 @@ interface OptionType {
|
|
|
7
7
|
export interface NativeSelectProps {
|
|
8
8
|
onChange?: (index: number) => void;
|
|
9
9
|
options?: OptionType[];
|
|
10
|
-
prefixCls?: string;
|
|
11
10
|
renderItem?: (item: OptionType, index: number) => ReactNode;
|
|
12
11
|
renderValue?: (index: number) => ReactNode;
|
|
13
12
|
style?: CSSProperties;
|
|
@@ -14,7 +14,7 @@ import { FloatingFocusManager, FloatingOverlay, FloatingPortal, autoUpdate, flip
|
|
|
14
14
|
import { memo, useEffect, useRef, useState } from 'react';
|
|
15
15
|
import useControlledState from 'use-merge-value';
|
|
16
16
|
import SelectItem from "./SelectItem";
|
|
17
|
-
import {
|
|
17
|
+
import { styles } from "./style";
|
|
18
18
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
19
19
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
20
20
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -22,12 +22,10 @@ var NativeSelect = /*#__PURE__*/memo(function (_ref) {
|
|
|
22
22
|
var _ref$options = _ref.options,
|
|
23
23
|
options = _ref$options === void 0 ? [] : _ref$options,
|
|
24
24
|
value = _ref.value,
|
|
25
|
-
prefixCls = _ref.prefixCls,
|
|
26
25
|
onChange = _ref.onChange,
|
|
27
26
|
renderValue = _ref.renderValue,
|
|
28
27
|
renderItem = _ref.renderItem,
|
|
29
28
|
style = _ref.style;
|
|
30
|
-
var cls = prefixCls !== null && prefixCls !== void 0 ? prefixCls : 'native-select';
|
|
31
29
|
var _useControlledState = useControlledState(0, {
|
|
32
30
|
onChange: onChange,
|
|
33
31
|
value: value
|
|
@@ -35,8 +33,6 @@ var NativeSelect = /*#__PURE__*/memo(function (_ref) {
|
|
|
35
33
|
_useControlledState2 = _slicedToArray(_useControlledState, 2),
|
|
36
34
|
selectedIndex = _useControlledState2[0],
|
|
37
35
|
setSelectedIndex = _useControlledState2[1];
|
|
38
|
-
var _useStyles = useStyles(cls),
|
|
39
|
-
styles = _useStyles.styles;
|
|
40
36
|
var listReference = useRef([]);
|
|
41
37
|
var listContentReference = useRef([]);
|
|
42
38
|
var overflowReference = useRef(null);
|
|
@@ -200,7 +196,6 @@ var NativeSelect = /*#__PURE__*/memo(function (_ref) {
|
|
|
200
196
|
isActive: index === activeIndex,
|
|
201
197
|
isSelected: index === selectedIndex,
|
|
202
198
|
label: renderItem ? renderItem(item, index) : item.label,
|
|
203
|
-
prefixCls: cls,
|
|
204
199
|
ref: function ref(node) {
|
|
205
200
|
listReference.current[index] = node;
|
|
206
201
|
listContentReference.current[index] = item.label;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
var _templateObject, _templateObject2;
|
|
2
2
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
3
|
-
import {
|
|
4
|
-
|
|
3
|
+
import { createStaticStyles, cx } from 'antd-style';
|
|
4
|
+
import { lobeStaticStylish } from "../../styles";
|
|
5
|
+
var prefixCls = 'ant';
|
|
6
|
+
export var styles = createStaticStyles(function (_ref) {
|
|
5
7
|
var css = _ref.css,
|
|
6
|
-
|
|
7
|
-
cx = _ref.cx,
|
|
8
|
-
token = _ref.token;
|
|
8
|
+
cssVar = _ref.cssVar;
|
|
9
9
|
return {
|
|
10
|
-
button: cx("".concat(prefixCls, "-button"), css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n all: unset;\n\n cursor: default;\n user-select: none;\n\n padding: 8px;\n\n font-size: ", "
|
|
11
|
-
container: cx(prefixCls, css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n user-select: none;\n scrollbar-width: none;\n\n overflow-y: auto;\n overscroll-behavior: contain;\n\n box-sizing: border-box;\n width: 160px;\n padding: 5px;\n
|
|
10
|
+
button: cx("".concat(prefixCls, "-button"), css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n all: unset;\n\n cursor: default;\n user-select: none;\n\n padding: 8px;\n\n font-size: ", ";\n line-height: 0;\n color: ", ";\n\n background: ", ";\n\n border: 1px solid ", ";\n border-radius: ", ";\n\n -webkit-tap-highlight-color: transparent;\n\n &:focus-visible {\n border-color: ", ";\n box-shadow: 0 0 0 2px ", ";\n }\n "])), lobeStaticStylish.buttonDefaultHover, cssVar.fontSize, cssVar.colorTextSecondary, cssVar.colorBgContainer, cssVar.colorBorder, cssVar.borderRadius, cssVar.colorPrimary, cssVar.colorPrimaryBg)),
|
|
11
|
+
container: cx(prefixCls, css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n user-select: none;\n scrollbar-width: none;\n\n overflow-y: auto;\n overscroll-behavior: contain;\n\n box-sizing: border-box;\n width: 160px;\n padding: 5px;\n border: 1px solid ", ";\n border-radius: 8px;\n\n font-size: ", ";\n\n background: ", ";\n outline: 0;\n box-shadow: ", ";\n\n &::-webkit-scrollbar {\n display: none;\n }\n "])), cssVar.colorBorder, cssVar.fontSize, cssVar.colorBgElevated, cssVar.boxShadowSecondary))
|
|
12
12
|
};
|
|
13
13
|
});
|
|
@@ -1,14 +1,5 @@
|
|
|
1
1
|
var _templateObject;
|
|
2
2
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
3
|
-
import { createGlobalStyle } from 'antd-style';
|
|
4
|
-
var GlobalStyle = createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n html, body {\n background: ", ";\n }\n\n #root {\n min-height: 100vh;\n background: ", ";\n }\n\n #nprogress {\n .bar {\n background: ", ";\n }\n\n .peg {\n display: none !important;\n }\n\n .spinner {\n display: none;\n }\n }\n"])),
|
|
5
|
-
var theme = _ref.theme;
|
|
6
|
-
return theme.colorBgContainerSecondary;
|
|
7
|
-
}, function (_ref2) {
|
|
8
|
-
var theme = _ref2.theme;
|
|
9
|
-
return theme.colorBgContainerSecondary;
|
|
10
|
-
}, function (_ref3) {
|
|
11
|
-
var theme = _ref3.theme;
|
|
12
|
-
return theme.colorText;
|
|
13
|
-
});
|
|
3
|
+
import { createGlobalStyle, cssVar } from 'antd-style';
|
|
4
|
+
var GlobalStyle = createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n html, body {\n background: ", ";\n }\n\n #root {\n min-height: 100vh;\n background: ", ";\n }\n\n #nprogress {\n .bar {\n background: ", ";\n }\n\n .peg {\n display: none !important;\n }\n\n .spinner {\n display: none;\n }\n }\n"])), cssVar.colorBgLayout, cssVar.colorBgLayout, cssVar.colorText);
|
|
14
5
|
export default GlobalStyle;
|
|
@@ -2,13 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
import { ConfigProvider as LobehubConfigProvider } from '@lobehub/ui';
|
|
4
4
|
import { ConfigProvider } from 'antd';
|
|
5
|
-
import {
|
|
5
|
+
import { cssVar } from 'antd-style';
|
|
6
6
|
import * as motion from 'motion/react-m';
|
|
7
7
|
import { memo } from 'react';
|
|
8
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
9
|
var Config = /*#__PURE__*/memo(function (_ref) {
|
|
10
10
|
var children = _ref.children;
|
|
11
|
-
var theme = useTheme();
|
|
12
11
|
return /*#__PURE__*/_jsx(LobehubConfigProvider, {
|
|
13
12
|
motion: motion,
|
|
14
13
|
children: /*#__PURE__*/_jsx(ConfigProvider, {
|
|
@@ -18,24 +17,24 @@ var Config = /*#__PURE__*/memo(function (_ref) {
|
|
|
18
17
|
contentFontSizeSM: 12
|
|
19
18
|
},
|
|
20
19
|
DatePicker: {
|
|
21
|
-
activeBorderColor:
|
|
22
|
-
hoverBorderColor:
|
|
20
|
+
activeBorderColor: cssVar.colorBorder,
|
|
21
|
+
hoverBorderColor: cssVar.colorBorder
|
|
23
22
|
},
|
|
24
23
|
Input: {
|
|
25
|
-
activeBorderColor:
|
|
26
|
-
hoverBorderColor:
|
|
24
|
+
activeBorderColor: cssVar.colorBorder,
|
|
25
|
+
hoverBorderColor: cssVar.colorBorder
|
|
27
26
|
},
|
|
28
27
|
InputNumber: {
|
|
29
|
-
activeBorderColor:
|
|
30
|
-
hoverBorderColor:
|
|
28
|
+
activeBorderColor: cssVar.colorBorder,
|
|
29
|
+
hoverBorderColor: cssVar.colorBorder
|
|
31
30
|
},
|
|
32
31
|
Mentions: {
|
|
33
|
-
activeBorderColor:
|
|
34
|
-
hoverBorderColor:
|
|
32
|
+
activeBorderColor: cssVar.colorBorder,
|
|
33
|
+
hoverBorderColor: cssVar.colorBorder
|
|
35
34
|
},
|
|
36
35
|
Select: {
|
|
37
|
-
activeBorderColor:
|
|
38
|
-
hoverBorderColor:
|
|
36
|
+
activeBorderColor: cssVar.colorBorder,
|
|
37
|
+
hoverBorderColor: cssVar.colorBorder
|
|
39
38
|
}
|
|
40
39
|
}
|
|
41
40
|
},
|
|
@@ -3,10 +3,10 @@ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(
|
|
|
3
3
|
import { createGlobalStyle } from 'antd-style';
|
|
4
4
|
var GlobalStyle = createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n html, body {\n background: ", ";\n }\n\n #root {\n min-height: 100vh;\n background: ", ";\n }\n\n #nprogress {\n .bar {\n background: ", ";\n }\n\n .peg {\n display: none !important;\n }\n\n .spinner {\n display: none;\n }\n }\n"])), function (_ref) {
|
|
5
5
|
var theme = _ref.theme;
|
|
6
|
-
return theme.
|
|
6
|
+
return theme.colorBgLayout;
|
|
7
7
|
}, function (_ref2) {
|
|
8
8
|
var theme = _ref2.theme;
|
|
9
|
-
return theme.
|
|
9
|
+
return theme.colorBgLayout;
|
|
10
10
|
}, function (_ref3) {
|
|
11
11
|
var theme = _ref3.theme;
|
|
12
12
|
return theme.colorText;
|
|
@@ -3,7 +3,7 @@ import isEqual from 'fast-deep-equal';
|
|
|
3
3
|
import { memo, useEffect } from 'react';
|
|
4
4
|
import { Center } from 'react-layout-kit';
|
|
5
5
|
import { ApiHeader } from "../../components/ApiHeader";
|
|
6
|
-
import {
|
|
6
|
+
import { styles } from "../Docs/styles";
|
|
7
7
|
import Content from "dumi/theme/slots/Content";
|
|
8
8
|
import { siteSelectors, useSiteStore } from "../../store";
|
|
9
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -19,8 +19,6 @@ var Changelog = /*#__PURE__*/memo(function (_ref) {
|
|
|
19
19
|
};
|
|
20
20
|
}, isEqual),
|
|
21
21
|
fm = _useSiteStore.fm;
|
|
22
|
-
var _useStyles = useStyles(),
|
|
23
|
-
styles = _useStyles.styles;
|
|
24
22
|
useEffect(function () {
|
|
25
23
|
var _window, _document;
|
|
26
24
|
(_window = window) === null || _window === void 0 || _window.scrollTo(0, 0);
|
package/dist/pages/Docs/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import { Center } from 'react-layout-kit';
|
|
|
5
5
|
import ApiHeader from "dumi/theme/slots/ApiHeader";
|
|
6
6
|
import Content from "dumi/theme/slots/Content";
|
|
7
7
|
import { apiHeaderSelectors, siteSelectors, useSiteStore } from "../../store";
|
|
8
|
-
import {
|
|
8
|
+
import { styles } from "./styles";
|
|
9
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
10
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
11
|
var Documents = /*#__PURE__*/memo(function (_ref) {
|
|
@@ -22,8 +22,6 @@ var Documents = /*#__PURE__*/memo(function (_ref) {
|
|
|
22
22
|
isApiPage = _useSiteStore.isApiPage,
|
|
23
23
|
giscus = _useSiteStore.giscus,
|
|
24
24
|
pathname = _useSiteStore.pathname;
|
|
25
|
-
var _useStyles = useStyles(),
|
|
26
|
-
styles = _useStyles.styles;
|
|
27
25
|
useEffect(function () {
|
|
28
26
|
var _window, _document;
|
|
29
27
|
(_window = window) === null || _window === void 0 || _window.scrollTo(0, 0);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
changelog:
|
|
3
|
-
content:
|
|
4
|
-
}
|
|
1
|
+
export declare const styles: {
|
|
2
|
+
changelog: string;
|
|
3
|
+
content: string;
|
|
4
|
+
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
var _templateObject, _templateObject2;
|
|
2
2
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
3
|
-
import {
|
|
4
|
-
export var
|
|
3
|
+
import { createStaticStyles } from 'antd-style';
|
|
4
|
+
export var styles = createStaticStyles(function (_ref) {
|
|
5
5
|
var css = _ref.css,
|
|
6
|
-
|
|
6
|
+
cssVar = _ref.cssVar;
|
|
7
7
|
return {
|
|
8
|
-
changelog: css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .markdown {\n font-size: 16px;\n\n h1 {\n display: none;\n }\n\n h2,\n h3 {\n margin-bottom: 0;\n font-size: 28px;\n }\n\n sup {\n color: ", ";\n }\n\n details {\n font-size: 14px;\n }\n\n summary > kbd {\n margin-left: 6px;\n padding: unset;\n\n font-size: inherit;\n line-height: inherit;\n\n background: unset;\n
|
|
9
|
-
content: css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n width: 100%;\n max-width:
|
|
8
|
+
changelog: css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .markdown {\n font-size: 16px;\n\n h1 {\n display: none;\n }\n\n h2,\n h3 {\n margin-bottom: 0;\n font-size: 28px;\n }\n\n sup {\n color: ", ";\n }\n\n details {\n font-size: 14px;\n }\n\n summary > kbd {\n margin-left: 6px;\n padding: unset;\n border: unset;\n\n font-size: inherit;\n line-height: inherit;\n\n background: unset;\n }\n\n a[href='/changelog#readme-top'] {\n display: block;\n margin-bottom: 32px;\n padding-bottom: 32px;\n border-bottom: 1px solid ", ";\n\n > img {\n display: none;\n }\n }\n }\n "])), cssVar.colorTextDescription, cssVar.colorBorderSecondary),
|
|
9
|
+
content: css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n width: 100%;\n max-width: var(--lobe-content-max-width, 960px);\n margin: 0 auto;\n "])))
|
|
10
10
|
};
|
|
11
11
|
});
|
|
@@ -9,13 +9,13 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
9
9
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
10
10
|
import { Block, Typography } from '@lobehub/ui';
|
|
11
11
|
import { Skeleton } from 'antd';
|
|
12
|
-
import { useResponsive } from 'antd-style';
|
|
12
|
+
import { useResponsive, cx } from 'antd-style';
|
|
13
13
|
import isEqual from 'fast-deep-equal';
|
|
14
14
|
import { memo, useEffect } from 'react';
|
|
15
15
|
import { Flexbox } from 'react-layout-kit';
|
|
16
16
|
import ContentFooter from "dumi/theme/slots/ContentFooter";
|
|
17
17
|
import { siteSelectors, useSiteStore } from "../../store";
|
|
18
|
-
import {
|
|
18
|
+
import { styles } from "./style";
|
|
19
19
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
20
20
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
21
21
|
var Content = /*#__PURE__*/memo(function (_ref) {
|
|
@@ -26,8 +26,7 @@ var Content = /*#__PURE__*/memo(function (_ref) {
|
|
|
26
26
|
});
|
|
27
27
|
var _useSiteStore = useSiteStore(siteSelectors.themeConfig, isEqual),
|
|
28
28
|
docStyle = _useSiteStore.docStyle;
|
|
29
|
-
var
|
|
30
|
-
styles = _useStyles.styles;
|
|
29
|
+
var isPure = docStyle === 'pure';
|
|
31
30
|
var _useResponsive = useResponsive(),
|
|
32
31
|
mobile = _useResponsive.mobile;
|
|
33
32
|
useEffect(function () {
|
|
@@ -38,7 +37,7 @@ var Content = /*#__PURE__*/memo(function (_ref) {
|
|
|
38
37
|
width: '100%'
|
|
39
38
|
}, props), {}, {
|
|
40
39
|
children: [/*#__PURE__*/_jsxs(Block, {
|
|
41
|
-
className: styles.content,
|
|
40
|
+
className: cx(styles.content, !isPure && styles.content_notPure),
|
|
42
41
|
shadow: true,
|
|
43
42
|
variant: 'filled',
|
|
44
43
|
children: [/*#__PURE__*/_jsx(Skeleton, {
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
var _templateObject, _templateObject2;
|
|
2
2
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
3
|
-
import {
|
|
4
|
-
export var
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
responsive = _ref.responsive,
|
|
8
|
-
css = _ref.css;
|
|
3
|
+
import { createStaticStyles, responsive } from 'antd-style';
|
|
4
|
+
export var styles = createStaticStyles(function (_ref) {
|
|
5
|
+
var css = _ref.css,
|
|
6
|
+
cssVar = _ref.cssVar;
|
|
9
7
|
return {
|
|
10
|
-
content:
|
|
8
|
+
content: css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n flex: 1;\n box-sizing: border-box;\n width: 100%;\n min-height: 400px;\n\n &:has([data-page-tabs='true']) {\n padding-top: 8px;\n }\n\n .dumi-default-table-content {\n overflow: visible !important;\n font-size: 14px;\n }\n\n .dumi-default-badge {\n &:not([type]) {\n border: 1px solid ", ";\n color: ", ";\n background: ", ";\n }\n\n &[type='warning'] {\n border: 1px solid ", ";\n color: ", ";\n background: ", ";\n }\n\n &[type='error'] {\n border: 1px solid ", ";\n color: ", ";\n background: ", ";\n }\n\n &[type='success'] {\n border: 1px solid ", ";\n color: ", ";\n background: ", ";\n }\n }\n "])), cssVar.colorInfoBorder, cssVar.colorInfoText, cssVar.colorInfoBg, cssVar.colorWarningBorder, cssVar.colorWarningText, cssVar.colorWarningBg, cssVar.colorErrorBorder, cssVar.colorErrorText, cssVar.colorErrorBg, cssVar.colorSuccessBorder, cssVar.colorSuccessText, cssVar.colorSuccessBg),
|
|
9
|
+
content_notPure: css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n padding: 24px 48px;\n border-radius: ", ";\n background-color: ", ";\n\n ", " {\n padding: 8px 16px;\n border-radius: 0;\n }\n "])), cssVar.borderRadiusLG, cssVar.colorBgContainer, responsive.sm)
|
|
11
10
|
};
|
|
12
11
|
});
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { Icon } from '@lobehub/ui';
|
|
2
|
+
import { cx } from 'antd-style';
|
|
2
3
|
import { Link } from 'dumi';
|
|
3
4
|
import { ArrowLeft, ArrowRight } from 'lucide-react';
|
|
4
5
|
import { memo, useMemo } from 'react';
|
|
5
6
|
import { Flexbox } from 'react-layout-kit';
|
|
6
|
-
import {
|
|
7
|
+
import { styles } from "./Linker.style";
|
|
7
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
9
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
9
10
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -11,9 +12,6 @@ var Linker = /*#__PURE__*/memo(function (_ref) {
|
|
|
11
12
|
var title = _ref.title,
|
|
12
13
|
link = _ref.link,
|
|
13
14
|
type = _ref.type;
|
|
14
|
-
var _useStyles = useStyles(),
|
|
15
|
-
styles = _useStyles.styles,
|
|
16
|
-
cx = _useStyles.cx;
|
|
17
15
|
var navContent = useMemo(function () {
|
|
18
16
|
switch (type) {
|
|
19
17
|
case 'prev':
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
alignmentEnd:
|
|
3
|
-
container:
|
|
4
|
-
nav:
|
|
5
|
-
title:
|
|
6
|
-
}
|
|
1
|
+
export declare const styles: {
|
|
2
|
+
alignmentEnd: string;
|
|
3
|
+
container: string;
|
|
4
|
+
nav: string;
|
|
5
|
+
title: string;
|
|
6
|
+
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
2
2
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
3
|
-
import {
|
|
4
|
-
export var
|
|
5
|
-
var
|
|
6
|
-
|
|
3
|
+
import { createStaticStyles } from 'antd-style';
|
|
4
|
+
export var styles = createStaticStyles(function (_ref) {
|
|
5
|
+
var css = _ref.css,
|
|
6
|
+
cssVar = _ref.cssVar;
|
|
7
7
|
return {
|
|
8
8
|
alignmentEnd: css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n justify-content: flex-end;\n "]))),
|
|
9
|
-
container: css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n cursor: pointer;\n\n min-width: 250px;\n padding: 16px 24px;\n\n background: ", ";\n
|
|
10
|
-
nav: css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n font-size: 12px;\n color: ", ";\n "])),
|
|
9
|
+
container: css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n cursor: pointer;\n\n min-width: 250px;\n padding: 16px 24px;\n border-radius: 8px;\n\n background: ", ";\n\n &:hover {\n background: ", ";\n }\n "])), cssVar.colorBgContainer, cssVar.colorFillTertiary),
|
|
10
|
+
nav: css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n font-size: 12px;\n color: ", ";\n "])), cssVar.colorTextTertiary),
|
|
11
11
|
title: css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n font-size: 16px;\n "])))
|
|
12
12
|
};
|
|
13
13
|
});
|
|
@@ -7,15 +7,13 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
7
7
|
import { Tabs } from '@lobehub/ui';
|
|
8
8
|
import { useIntl } from 'dumi';
|
|
9
9
|
import { memo } from 'react';
|
|
10
|
-
import {
|
|
10
|
+
import { styles } from "./style";
|
|
11
11
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
12
|
var ContentTabs = /*#__PURE__*/memo(function (_ref) {
|
|
13
13
|
var tabs = _ref.tabs,
|
|
14
14
|
key = _ref.tabKey,
|
|
15
15
|
_onChange = _ref.onChange;
|
|
16
16
|
var intl = useIntl();
|
|
17
|
-
var _useStyles = useStyles(),
|
|
18
|
-
styles = _useStyles.styles;
|
|
19
17
|
// TODO: tab.Extra & tab.Action render
|
|
20
18
|
|
|
21
19
|
return tabs && (tabs === null || tabs === void 0 ? void 0 : tabs.length) > 0 ? /*#__PURE__*/_jsx(Tabs, {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
cls:
|
|
3
|
-
}
|
|
1
|
+
export declare const styles: {
|
|
2
|
+
cls: string;
|
|
3
|
+
};
|