@alicloud/console-base-theme 1.9.9-beta.1 → 1.9.9-beta.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/build/cjs/global-style-dark-scrollbar/index.js +9 -0
- package/build/cjs/index.js +9 -6
- package/build/cjs/var/z-index.js +3 -0
- package/build/esm/global-style-dark-scrollbar/index.js +4 -0
- package/build/esm/index.js +2 -5
- package/build/esm/var/z-index.js +3 -0
- package/build/types/global-style-dark-scrollbar/index.d.ts +2 -0
- package/build/types/index.d.ts +1 -1
- package/build/types/var/index.d.ts +1 -0
- package/build/types/var/z-index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _styledComponents = require("styled-components");
|
|
8
|
+
// 暗色模式下 cb 的滚动条样式
|
|
9
|
+
var _default = exports.default = (0, _styledComponents.createGlobalStyle)(["body.theme-dark .J_console_base_container{&::-webkit-scrollbar{width:8px;}&::-webkit-scrollbar-track{background:rgba(255,255,255,0.05);border-radius:4px;}&::-webkit-scrollbar-thumb{background:rgba(255,255,255,0.2);border-radius:4px;&:hover{background:rgba(255,255,255,0.3);}}}#);"]);
|
package/build/cjs/index.js
CHANGED
|
@@ -5,12 +5,18 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
var _exportNames = {
|
|
8
|
-
mixinTopNavButtonDarkFix: true,
|
|
9
8
|
ThemeStyleLight: true,
|
|
10
9
|
ThemeStyleDark: true,
|
|
11
10
|
GlobalStyleFontFamilyForJa: true,
|
|
11
|
+
GlobalStyleDarkScrollbar: true,
|
|
12
12
|
toggleBodyClass: true
|
|
13
13
|
};
|
|
14
|
+
Object.defineProperty(exports, "GlobalStyleDarkScrollbar", {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function get() {
|
|
17
|
+
return _globalStyleDarkScrollbar.default;
|
|
18
|
+
}
|
|
19
|
+
});
|
|
14
20
|
Object.defineProperty(exports, "GlobalStyleFontFamilyForJa", {
|
|
15
21
|
enumerable: true,
|
|
16
22
|
get: function get() {
|
|
@@ -29,14 +35,12 @@ Object.defineProperty(exports, "ThemeStyleLight", {
|
|
|
29
35
|
return _globalStyleThemeLight.default;
|
|
30
36
|
}
|
|
31
37
|
});
|
|
32
|
-
exports.mixinTopNavButtonDarkFix = void 0;
|
|
33
38
|
Object.defineProperty(exports, "toggleBodyClass", {
|
|
34
39
|
enumerable: true,
|
|
35
40
|
get: function get() {
|
|
36
41
|
return _util.toggleBodyClass;
|
|
37
42
|
}
|
|
38
43
|
});
|
|
39
|
-
var _styledComponents = require("styled-components");
|
|
40
44
|
var _var = require("./var");
|
|
41
45
|
Object.keys(_var).forEach(function (key) {
|
|
42
46
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -64,6 +68,5 @@ Object.keys(_mixin).forEach(function (key) {
|
|
|
64
68
|
var _globalStyleThemeLight = _interopRequireDefault(require("./global-style-theme-light"));
|
|
65
69
|
var _globalStyleThemeDark = _interopRequireDefault(require("./global-style-theme-dark"));
|
|
66
70
|
var _globalStyleFontFamilyForJa = _interopRequireDefault(require("./global-style-font-family-for-ja"));
|
|
67
|
-
var
|
|
68
|
-
|
|
69
|
-
var mixinTopNavButtonDarkFix = exports.mixinTopNavButtonDarkFix = (0, _styledComponents.css)([".theme-dark &{background-color:rgba(255,255,255,0.08);}"]);
|
|
71
|
+
var _globalStyleDarkScrollbar = _interopRequireDefault(require("./global-style-dark-scrollbar"));
|
|
72
|
+
var _util = require("./util");
|
package/build/cjs/var/z-index.js
CHANGED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createGlobalStyle } from 'styled-components';
|
|
2
|
+
|
|
3
|
+
// 暗色模式下 cb 的滚动条样式
|
|
4
|
+
export default createGlobalStyle(["body.theme-dark .J_console_base_container{&::-webkit-scrollbar{width:8px;}&::-webkit-scrollbar-track{background:rgba(255,255,255,0.05);border-radius:4px;}&::-webkit-scrollbar-thumb{background:rgba(255,255,255,0.2);border-radius:4px;&:hover{background:rgba(255,255,255,0.3);}}}#);"]);
|
package/build/esm/index.js
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import { css } from 'styled-components';
|
|
2
1
|
export * from './var';
|
|
3
2
|
export * from './mixin';
|
|
4
3
|
export { default as ThemeStyleLight } from './global-style-theme-light';
|
|
5
4
|
export { default as ThemeStyleDark } from './global-style-theme-dark';
|
|
6
5
|
export { default as GlobalStyleFontFamilyForJa } from './global-style-font-family-for-ja';
|
|
7
|
-
export {
|
|
8
|
-
|
|
9
|
-
// 主题黑的时候,在顶栏上的 button 背景色不能是标准的... FIXME 我需要调整颜色的策略 primary-secondary-tertiary 区分 container 和 control
|
|
10
|
-
export var mixinTopNavButtonDarkFix = css([".theme-dark &{background-color:rgba(255,255,255,0.08);}"]);
|
|
6
|
+
export { default as GlobalStyleDarkScrollbar } from './global-style-dark-scrollbar';
|
|
7
|
+
export { toggleBodyClass } from './util';
|
package/build/esm/var/z-index.js
CHANGED
package/build/types/index.d.ts
CHANGED
|
@@ -3,6 +3,6 @@ export * from './mixin';
|
|
|
3
3
|
export { default as ThemeStyleLight } from './global-style-theme-light';
|
|
4
4
|
export { default as ThemeStyleDark } from './global-style-theme-dark';
|
|
5
5
|
export { default as GlobalStyleFontFamilyForJa } from './global-style-font-family-for-ja';
|
|
6
|
+
export { default as GlobalStyleDarkScrollbar } from './global-style-dark-scrollbar';
|
|
6
7
|
export { toggleBodyClass } from './util';
|
|
7
|
-
export declare const mixinTopNavButtonDarkFix: import("styled-components").FlattenSimpleInterpolation;
|
|
8
8
|
export type { IPropsEllipsisLines as EllipsisLinesProps } from './types';
|