@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.
@@ -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);}}}#);"]);
@@ -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 _util = require("./util");
68
- // 主题黑的时候,在顶栏上的 button 背景色不能是标准的... FIXME 我需要调整颜色的策略 primary-secondary-tertiary 区分 container 和 control
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");
@@ -8,6 +8,9 @@ exports.default = void 0;
8
8
  * z-index 层级设计
9
9
  */
10
10
  var _default = exports.default = {
11
+ SUPREME: 999999,
12
+ // 兼容控制台之外的各种场景,目前仅全站异步通知弹窗使用
13
+
11
14
  DIALOG_SYS: 2101,
12
15
  // 系统级模态框(alert、confirm、prompt)
13
16
  BACKDROP_SYS: 2100,
@@ -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);}}}#);"]);
@@ -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 { toggleBodyClass } from './util';
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';
@@ -2,6 +2,9 @@
2
2
  * z-index 层级设计
3
3
  */
4
4
  export default {
5
+ SUPREME: 999999,
6
+ // 兼容控制台之外的各种场景,目前仅全站异步通知弹窗使用
7
+
5
8
  DIALOG_SYS: 2101,
6
9
  // 系统级模态框(alert、confirm、prompt)
7
10
  BACKDROP_SYS: 2100,
@@ -0,0 +1,2 @@
1
+ declare const _default: import("styled-components").GlobalStyleComponent<{}, import("styled-components").DefaultTheme>;
2
+ export default _default;
@@ -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';
@@ -67,6 +67,7 @@ declare const _default: {
67
67
  BORDER_RADIUS_XL: number;
68
68
  };
69
69
  Z_INDEX: {
70
+ SUPREME: number;
70
71
  DIALOG_SYS: number;
71
72
  BACKDROP_SYS: number;
72
73
  MICRO_BROWSER: number;
@@ -2,6 +2,7 @@
2
2
  * z-index 层级设计
3
3
  */
4
4
  declare const _default: {
5
+ SUPREME: number;
5
6
  DIALOG_SYS: number;
6
7
  BACKDROP_SYS: number;
7
8
  MICRO_BROWSER: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alicloud/console-base-theme",
3
- "version": "1.9.9-beta.1",
3
+ "version": "1.9.9-beta.3",
4
4
  "description": "控制台主题 - 基于 css variable 和 styled-components",
5
5
  "license": "MIT",
6
6
  "sideEffects": false,