@antv/dumi-theme-antv 0.3.20-beta.0 → 0.3.20-beta.1

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.
@@ -1,7 +1,8 @@
1
+ import React from 'react';
1
2
  import '../slots/global';
2
3
  import '../slots/_.less';
3
4
  /**
4
5
  * DocuLayout 是 dumi2 的内置 layout 入口,在这里使用页面路径进行区分成自己不同的 Layout。
5
6
  */
6
- declare const _default: () => any;
7
+ declare const _default: () => React.JSX.Element;
7
8
  export default _default;
@@ -20,6 +20,7 @@ import styles from "./index.module.less";
20
20
  * @returns
21
21
  */
22
22
  export var Footer = function Footer(props) {
23
+ var _classnames;
23
24
  var columns = props.columns,
24
25
  bottom = props.bottom,
25
26
  language = props.language,
@@ -180,7 +181,7 @@ export var Footer = function Footer(props) {
180
181
  maxColumnsPerRow: 5,
181
182
  theme: theme,
182
183
  columns: columns || getColumns(),
183
- className: classnames(styles.footer, className, _defineProperty({}, styles.withMenu, isDynamicFooter)),
184
+ className: classnames(styles.footer, className, (_classnames = {}, _defineProperty(_classnames, styles.light, theme === 'light'), _defineProperty(_classnames, styles.withMenu, isDynamicFooter), _classnames)),
184
185
  bottom: bottom || /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
185
186
  className: cx(styles.bottom, _defineProperty({}, styles.light, theme === 'light'))
186
187
  }, theme === 'light' ? '© Copyright 2022 Ant Group Co., Ltd..备案号:京ICP备15032932号-38' : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("a", {
@@ -13,6 +13,20 @@
13
13
  border-top: 4px solid #F0F2FF;
14
14
  }
15
15
 
16
+ &.light {
17
+ :global(.rc-footer-item) {
18
+ > a {
19
+ > span {
20
+ font-size: 16px;
21
+ }
22
+ }
23
+
24
+ >a:hover {
25
+ color: #691EFF;
26
+ }
27
+ }
28
+ }
29
+
16
30
  .description {
17
31
  opacity: 0.6;
18
32
  font-weight: normal;
@@ -55,7 +69,7 @@
55
69
  display: flex;
56
70
  justify-content: center;
57
71
  font-size: 14px;
58
-
72
+
59
73
  :global(.anticon),
60
74
  a {
61
75
  margin-right: 8px;
@@ -66,6 +80,10 @@
66
80
  :global(.anticon),
67
81
  a {
68
82
  color: #424E66;
83
+
84
+ &:hover {
85
+ color: #691EFF;
86
+ }
69
87
  }
70
88
  }
71
89
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antv/dumi-theme-antv",
3
- "version": "0.3.20-beta.0",
3
+ "version": "0.3.20-beta.1",
4
4
  "description": "AntV website theme based on dumi2.",
5
5
  "types": "dist/types.d.ts",
6
6
  "scripts": {