@alicloud/console-base-theme 1.9.5 → 1.9.7
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/build/cjs/mixin/reset.js +1 -1
- package/build/cjs/mixin/typo.js +1 -1
- package/build/{es → esm}/mixin/reset.js +1 -1
- package/build/{es → esm}/mixin/typo.js +3 -3
- package/package.json +7 -7
- /package/build/{es → esm}/global-style-font-family-for-ja/index.js +0 -0
- /package/build/{es → esm}/global-style-theme-dark/index.js +0 -0
- /package/build/{es → esm}/global-style-theme-dark/var/index.js +0 -0
- /package/build/{es → esm}/global-style-theme-light/index.js +0 -0
- /package/build/{es → esm}/index.js +0 -0
- /package/build/{es → esm}/mixin/bg.js +0 -0
- /package/build/{es → esm}/mixin/border-radius.js +0 -0
- /package/build/{es → esm}/mixin/border.js +0 -0
- /package/build/{es → esm}/mixin/button.js +0 -0
- /package/build/{es → esm}/mixin/index.js +0 -0
- /package/build/{es → esm}/mixin/input.js +0 -0
- /package/build/{es → esm}/mixin/link.js +0 -0
- /package/build/{es → esm}/mixin/shadow.js +0 -0
- /package/build/{es → esm}/mixin/text.js +0 -0
- /package/build/{es → esm}/types/index.js +0 -0
- /package/build/{es → esm}/util/create-theme-global-style.js +0 -0
- /package/build/{es → esm}/util/index.js +0 -0
- /package/build/{es → esm}/util/toggle-body-class.js +0 -0
- /package/build/{es → esm}/var/index.js +0 -0
- /package/build/{es → esm}/var/size.js +0 -0
- /package/build/{es → esm}/var/typo.js +0 -0
- /package/build/{es → esm}/var/z-index.js +0 -0
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @alicloud/console-base-theme
|
|
2
2
|
|
|
3
|
-
* [关于 CSS Variable 的实践研究](doc/
|
|
3
|
+
* [关于 CSS Variable 的实践研究](doc/research.md)
|
|
4
4
|
* [设计标注 - Fusion](https://fusion.alibaba-inc.com/pc/component/tokens)
|
|
5
5
|
* [设计标注 - XConsole](https://fusion.alibaba-inc.com/79480/component/tokens)
|
|
6
6
|
* [XConsole Design Themes](https://fusion.alibaba-inc.com/79480/setting/theme)
|
package/build/cjs/mixin/reset.js
CHANGED
|
@@ -19,5 +19,5 @@ var mixinInputReset = (0, _styledComponents.css)(["border:1px solid transparent;
|
|
|
19
19
|
* 4. 定义 disabled 的基础样式
|
|
20
20
|
*/
|
|
21
21
|
exports.mixinInputReset = mixinInputReset;
|
|
22
|
-
var mixinButtonReset = (0, _styledComponents.css)(["padding:0;border:1px solid transparent;box-sizing:border-box;outline:none;background:none;line-height:inherit;cursor:pointer;font-family:inherit;font-size:inherit;text-align:center;text-decoration:none;color:inherit;transition:all ease-out 0.3s;&:hover,&:link:hover{text-decoration:none;}&:focus-visible{outline:
|
|
22
|
+
var mixinButtonReset = (0, _styledComponents.css)(["padding:0;border:1px solid transparent;box-sizing:border-box;outline:none;background:none;line-height:inherit;cursor:pointer;font-family:inherit;font-size:inherit;text-align:center;text-decoration:none;color:inherit;transition:all ease-out 0.3s;&:hover,&:link:hover{text-decoration:none;}&:focus-visible{outline:1px solid ", ";}&[disabled]{cursor:not-allowed;}"], _var.COLOR.BORDER_ACCENT_HOVER);
|
|
23
23
|
exports.mixinButtonReset = mixinButtonReset;
|
package/build/cjs/mixin/typo.js
CHANGED
|
@@ -31,7 +31,7 @@ var mixinTypoSmall = (0, _styledComponents.css)(["font-size:inherit;", ""], _tex
|
|
|
31
31
|
exports.mixinTypoSmall = mixinTypoSmall;
|
|
32
32
|
var mixinTypoCode = (0, _styledComponents.css)(["padding:2px 4px;border-radius:2px;", " ", ""], _text.mixinTextCode, _bg.mixinBgSecondaryFade);
|
|
33
33
|
exports.mixinTypoCode = mixinTypoCode;
|
|
34
|
-
var mixinTypoKbd = (0, _styledComponents.css)(["display:inline-block;padding:
|
|
34
|
+
var mixinTypoKbd = (0, _styledComponents.css)(["display:inline-block;margin:0 0.1em;padding:0.1em 0.6em;border-radius:3px;box-shadow:0 1px 0 ", ",0 0 0 2px ", " inset;box-shadow:0 1px 0 var(--cb-color-shadow,", "),0 0 0 2px var(--cb-color-text-inverse,", ") inset;font:600 12px/1.4 Arial,'Helvetica Neue',Helvetica,sans-serif;white-space:nowrap;", " ", " ", ""], _var.COLOR.SHADOW, _var.COLOR.TEXT_INVERSE, _var.COLOR.SHADOW, _var.COLOR.TEXT_INVERSE, _text.mixinTextSecondary, _bg.mixinBgTertiary, _border.mixinBorderPrimary);
|
|
35
35
|
exports.mixinTypoKbd = mixinTypoKbd;
|
|
36
36
|
var mixinTypoBlockquote = (0, _styledComponents.css)(["padding:8px 16px;border-left-width:4px;border-left-style:solid;", " ", ""], _border.mixinBorderTertiaryColor, _text.mixinTextTertiary);
|
|
37
37
|
exports.mixinTypoBlockquote = mixinTypoBlockquote;
|
|
@@ -12,4 +12,4 @@ export var mixinInputReset = css(["border:1px solid transparent;box-sizing:borde
|
|
|
12
12
|
* 3. 避免 link hover 的样式干扰
|
|
13
13
|
* 4. 定义 disabled 的基础样式
|
|
14
14
|
*/
|
|
15
|
-
export var mixinButtonReset = css(["padding:0;border:1px solid transparent;box-sizing:border-box;outline:none;background:none;line-height:inherit;cursor:pointer;font-family:inherit;font-size:inherit;text-align:center;text-decoration:none;color:inherit;transition:all ease-out 0.3s;&:hover,&:link:hover{text-decoration:none;}&:focus-visible{outline:
|
|
15
|
+
export var mixinButtonReset = css(["padding:0;border:1px solid transparent;box-sizing:border-box;outline:none;background:none;line-height:inherit;cursor:pointer;font-family:inherit;font-size:inherit;text-align:center;text-decoration:none;color:inherit;transition:all ease-out 0.3s;&:hover,&:link:hover{text-decoration:none;}&:focus-visible{outline:1px solid ", ";}&[disabled]{cursor:not-allowed;}"], COLOR.BORDER_ACCENT_HOVER);
|
|
@@ -4,8 +4,8 @@ import { css } from 'styled-components';
|
|
|
4
4
|
import { TYPO, COLOR } from '../var';
|
|
5
5
|
import { mixinTextPrimary, mixinTextEmphasis, mixinTextCode, mixinTextSecondary, mixinTextTertiary } from './text';
|
|
6
6
|
import { mixinLinkPrimary } from './link';
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import { mixinBgSecondaryFade, mixinBgTertiary } from './bg';
|
|
8
|
+
import { mixinBorderPrimary, mixinBorderTertiaryColor } from './border';
|
|
9
9
|
|
|
10
10
|
// 日文专属
|
|
11
11
|
export var mixinTypoFontFamilyBaseJa = css(["font-family:", ";font-family:var(--cb-typo-font-family-base-ja,", ");"], TYPO.FONT_FAMILY_BASE_JA, TYPO.FONT_FAMILY_BASE_JA);
|
|
@@ -18,7 +18,7 @@ export var mixinTypoStrong = css(["font-weight:600;", ""], mixinTextPrimary);
|
|
|
18
18
|
export var mixinTypoEm = css(["font-style:normal;", ""], mixinTextEmphasis);
|
|
19
19
|
export var mixinTypoSmall = css(["font-size:inherit;", ""], mixinTextTertiary);
|
|
20
20
|
export var mixinTypoCode = css(["padding:2px 4px;border-radius:2px;", " ", ""], mixinTextCode, mixinBgSecondaryFade);
|
|
21
|
-
export var mixinTypoKbd = css(["display:inline-block;padding:
|
|
21
|
+
export var mixinTypoKbd = css(["display:inline-block;margin:0 0.1em;padding:0.1em 0.6em;border-radius:3px;box-shadow:0 1px 0 ", ",0 0 0 2px ", " inset;box-shadow:0 1px 0 var(--cb-color-shadow,", "),0 0 0 2px var(--cb-color-text-inverse,", ") inset;font:600 12px/1.4 Arial,'Helvetica Neue',Helvetica,sans-serif;white-space:nowrap;", " ", " ", ""], COLOR.SHADOW, COLOR.TEXT_INVERSE, COLOR.SHADOW, COLOR.TEXT_INVERSE, mixinTextSecondary, mixinBgTertiary, mixinBorderPrimary);
|
|
22
22
|
export var mixinTypoBlockquote = css(["padding:8px 16px;border-left-width:4px;border-left-style:solid;", " ", ""], mixinBorderTertiaryColor, mixinTextTertiary);
|
|
23
23
|
export var mixinTypoLineWrap = css(["white-space:normal;word-wrap:break-word;"]);
|
|
24
24
|
export var mixinTypoNoWrap = css(["white-space:nowrap;"]);
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alicloud/console-base-theme",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.7",
|
|
4
4
|
"description": "控制台主题 - 基于 css variable 和 styled-components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"main": "build/cjs/index.js",
|
|
8
|
-
"module": "build/
|
|
8
|
+
"module": "build/esm/index.js",
|
|
9
9
|
"types": "build/types/index.d.ts",
|
|
10
10
|
"homepage": "https://github.com/aliyun/alibabacloud-console-base/tree/master/packages-theme/console-base-theme",
|
|
11
11
|
"author": {
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@alicloud/console-toolkit-cli": "^1.2.30",
|
|
25
25
|
"@alicloud/console-toolkit-preset-component": "^1.2.61",
|
|
26
|
-
"@alicloud/demo-rc-elements": "^1.
|
|
26
|
+
"@alicloud/demo-rc-elements": "^1.12.2",
|
|
27
27
|
"@alicloud/ts-config": "^1.1.3",
|
|
28
28
|
"@types/lodash-es": "^4.17.7",
|
|
29
29
|
"@types/react": "^17.0.58",
|
|
@@ -31,14 +31,14 @@
|
|
|
31
31
|
"lodash-es": "^4.17.21",
|
|
32
32
|
"react": "^17.0.2",
|
|
33
33
|
"styled-components": "^5.3.10",
|
|
34
|
-
"typescript": "^
|
|
34
|
+
"typescript": "^5.0.4"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"styled-components": ">=5"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@alicloud/console-base-theme-color": "^1.5.10",
|
|
41
|
-
"@alicloud/mere-dom": "^1.
|
|
41
|
+
"@alicloud/mere-dom": "^1.8.0"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"start": "breezr start-storybook",
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
"build:esm": "breezr build --engine babel --es-module",
|
|
47
47
|
"build:cjs": "breezr build --engine babel",
|
|
48
48
|
"build:bundle": "breezr build --engine webpack",
|
|
49
|
-
"build:
|
|
50
|
-
"build": "yarn build:esm && yarn build:cjs && yarn build:
|
|
49
|
+
"build:types": "tsc -p tsconfig-declaration.json --outDir build/types --declaration --emitDeclarationOnly",
|
|
50
|
+
"build": "yarn build:esm && yarn build:cjs && yarn build:types",
|
|
51
51
|
"clean": "rm -rf build",
|
|
52
52
|
"prepublishOnly": "yarn clean && yarn build"
|
|
53
53
|
},
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|