@neatui/css 4.2.1 → 4.2.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/README.md +35 -6
- package/components/anim/package.json +3 -3
- package/components/badge/package.json +6 -6
- package/components/btns/README.md +2 -1
- package/components/btns/base.scss +1 -1
- package/components/btns/btns@a.scss +3 -3
- package/components/btns/btns@b.scss +3 -3
- package/components/btns/package.json +2 -2
- package/components/card/package.json +1 -1
- package/components/chat/package.json +1 -1
- package/components/form/README.md +9 -9
- package/components/form/package.json +5 -5
- package/components/grid/package.json +2 -2
- package/components/icon/package.json +1 -1
- package/components/imgs/README.md +1 -1
- package/components/imgs/package.json +2 -2
- package/components/line/package.json +2 -2
- package/components/list/package.json +3 -3
- package/components/load/README.md +1 -1
- package/components/load/package.json +2 -2
- package/components/menu/package.json +4 -4
- package/components/navs/README.md +1 -1
- package/components/navs/package.json +2 -2
- package/components/path/README.md +9 -9
- package/components/path/package.json +5 -5
- package/components/steps/package.json +1 -1
- package/components/table/package.json +5 -5
- package/components/tabs/README.md +5 -5
- package/components/tabs/package.json +5 -5
- package/components/tags/README.md +4 -4
- package/components/tags/package.json +5 -5
- package/components/tips/README.md +5 -5
- package/components/tips/package.json +5 -5
- package/components/title/package.json +1 -1
- package/core/theme.scss +35 -25
- package/dist/neatui.css +28248 -0
- package/dist/neatui.min.css +1 -0
- package/dist/neatui.preview.css +36300 -0
- package/dist/neatui.preview.min.css +1 -0
- package/package.json +57 -5
- package/preview.scss +10 -0
- package/tokens/grammar.cjs +310 -0
- package/tokens/neatui.tokens.json +489 -0
- package/components/user/mcui@user.scss +0 -0
- package/postcss.config.js +0 -20
|
@@ -2,21 +2,21 @@
|
|
|
2
2
|
"name": "@neatui/tabs",
|
|
3
3
|
"version": "1.0.8",
|
|
4
4
|
"description": "",
|
|
5
|
-
"main": "
|
|
5
|
+
"main": "index.scss",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
8
|
},
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
|
-
"url": "git+https://gitlab.com/
|
|
11
|
+
"url": "git+https://gitlab.com/neatui/neatui.git"
|
|
12
12
|
},
|
|
13
13
|
"keywords": [
|
|
14
|
-
"
|
|
14
|
+
"neatui"
|
|
15
15
|
],
|
|
16
16
|
"author": "xiaojunbo",
|
|
17
17
|
"license": "MIT",
|
|
18
18
|
"bugs": {
|
|
19
|
-
"url": "https://gitlab.com/
|
|
19
|
+
"url": "https://gitlab.com/neatui/neatui/issues"
|
|
20
20
|
},
|
|
21
|
-
"homepage": "https://gitlab.com/
|
|
21
|
+
"homepage": "https://gitlab.com/neatui/neatui#readme"
|
|
22
22
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
# @neatui/tags
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
NeatUI 选项卡组件。本组件依赖框架核心 @neatui/css 。更多详情请访问官网 [https://neatui.fekit.cn/](https://neatui.fekit.cn/)
|
|
4
4
|
|
|
5
5
|
## 安装
|
|
6
6
|
|
|
7
7
|
### 安装核心
|
|
8
8
|
|
|
9
9
|
```
|
|
10
|
-
npm i @neatui/
|
|
10
|
+
npm i @neatui/css
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
### 安装组件
|
|
@@ -38,7 +38,7 @@ $theme: (
|
|
|
38
38
|
);
|
|
39
39
|
|
|
40
40
|
// 引用框架核心
|
|
41
|
-
@import '~@neatui/
|
|
41
|
+
@import '~@neatui/css';
|
|
42
42
|
|
|
43
43
|
// 引用业务组件
|
|
44
44
|
@import '~@neatui/tags/tags@a';
|
|
@@ -68,4 +68,4 @@ $theme: (
|
|
|
68
68
|
|
|
69
69
|
## 更多
|
|
70
70
|
|
|
71
|
-
详细文档请到
|
|
71
|
+
详细文档请到 NeatUI 官网 [https://neatui.fekit.cn/](https://neatui.fekit.cn/)
|
|
@@ -2,21 +2,21 @@
|
|
|
2
2
|
"name": "@neatui/tags",
|
|
3
3
|
"version": "1.1.2",
|
|
4
4
|
"description": "",
|
|
5
|
-
"main": "
|
|
5
|
+
"main": "index.scss",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
8
|
},
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
|
-
"url": "git+https://gitlab.com/
|
|
11
|
+
"url": "git+https://gitlab.com/neatui/neatui.git"
|
|
12
12
|
},
|
|
13
13
|
"keywords": [
|
|
14
|
-
"
|
|
14
|
+
"neatui"
|
|
15
15
|
],
|
|
16
16
|
"author": "xiaojunbo",
|
|
17
17
|
"license": "MIT",
|
|
18
18
|
"bugs": {
|
|
19
|
-
"url": "https://gitlab.com/
|
|
19
|
+
"url": "https://gitlab.com/neatui/neatui/issues"
|
|
20
20
|
},
|
|
21
|
-
"homepage": "https://gitlab.com/
|
|
21
|
+
"homepage": "https://gitlab.com/neatui/neatui#readme"
|
|
22
22
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
# @neatui/
|
|
1
|
+
# @neatui/css
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
NeatUI 选项卡组件。本组件依赖框架核心 @neatui/css 。更多详情请访问官网 [https://neatui.fekit.cn/](https://neatui.fekit.cn/)
|
|
4
4
|
|
|
5
5
|
## 安装
|
|
6
6
|
|
|
7
7
|
### 安装核心
|
|
8
8
|
|
|
9
9
|
```
|
|
10
|
-
npm i @neatui/
|
|
10
|
+
npm i @neatui/css
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
### 安装组件
|
|
@@ -38,7 +38,7 @@ $theme: (
|
|
|
38
38
|
);
|
|
39
39
|
|
|
40
40
|
// 引用框架核心
|
|
41
|
-
@import '~@neatui/
|
|
41
|
+
@import '~@neatui/css';
|
|
42
42
|
|
|
43
43
|
// 引用业务组件
|
|
44
44
|
@import '~@neatui/tabs/tabs@a';
|
|
@@ -59,4 +59,4 @@ $theme: (
|
|
|
59
59
|
|
|
60
60
|
## 更多
|
|
61
61
|
|
|
62
|
-
详细文档请到
|
|
62
|
+
详细文档请到 NeatUI 官网 [https://neatui.fekit.cn/](https://neatui.fekit.cn/)
|
|
@@ -2,21 +2,21 @@
|
|
|
2
2
|
"name": "@neatui/tips",
|
|
3
3
|
"version": "1.1.8",
|
|
4
4
|
"description": "",
|
|
5
|
-
"main": "
|
|
5
|
+
"main": "index.scss",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
8
|
},
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
|
-
"url": "git+https://gitlab.com/
|
|
11
|
+
"url": "git+https://gitlab.com/neatui/neatui.git"
|
|
12
12
|
},
|
|
13
13
|
"keywords": [
|
|
14
|
-
"
|
|
14
|
+
"neatui"
|
|
15
15
|
],
|
|
16
16
|
"author": "xiaojunbo",
|
|
17
17
|
"license": "MIT",
|
|
18
18
|
"bugs": {
|
|
19
|
-
"url": "https://gitlab.com/
|
|
19
|
+
"url": "https://gitlab.com/neatui/neatui/issues"
|
|
20
20
|
},
|
|
21
|
-
"homepage": "https://gitlab.com/
|
|
21
|
+
"homepage": "https://gitlab.com/neatui/neatui#readme"
|
|
22
22
|
}
|
package/core/theme.scss
CHANGED
|
@@ -51,29 +51,39 @@ $exclude-keys: (w, b, fore, back, desc, note, case, deep, code, link);
|
|
|
51
51
|
@return $out;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
54
|
+
// Official preview defaults (light + dark). Production apps should pass their own $theme.
|
|
55
|
+
$default-theme: (
|
|
56
|
+
light: (
|
|
57
|
+
main: #0889e4,
|
|
58
|
+
text: #000000,
|
|
59
|
+
fore: #ffffff,
|
|
60
|
+
back: #f5f5f5,
|
|
61
|
+
link: #d07950,
|
|
62
|
+
code: #e23861,
|
|
63
|
+
well: #4bbc73,
|
|
64
|
+
warn: #fb9a2a,
|
|
65
|
+
risk: #f95850,
|
|
66
|
+
info: #0889e4,
|
|
67
|
+
),
|
|
68
|
+
dark: (
|
|
69
|
+
main: #3aa0f0,
|
|
70
|
+
text: #ffffff,
|
|
71
|
+
fore: #1f1f1f,
|
|
72
|
+
back: #141414,
|
|
73
|
+
link: #dd7f49,
|
|
74
|
+
code: #e23861,
|
|
75
|
+
well: #4bbc73,
|
|
76
|
+
warn: #fb9a2a,
|
|
77
|
+
risk: #f95850,
|
|
78
|
+
info: #3aa0f0,
|
|
79
|
+
),
|
|
80
|
+
);
|
|
81
|
+
|
|
82
|
+
@mixin theme($theme: $default-theme) {
|
|
83
|
+
// 检测:未自定义色卡时提示(preview / 试用默认 light + dark)
|
|
84
|
+
@if $theme == $default-theme {
|
|
85
|
+
@warn '正在使用 NeatUI 默认 light/dark 色卡(适合试用)。正式项目请自定义 $theme;https://neatui.fekit.cn/#/docs/color';
|
|
86
|
+
@debug '默认主题:[theme=light](:root)与 [theme=dark]';
|
|
77
87
|
}
|
|
78
88
|
|
|
79
89
|
@each $var in $theme {
|
|
@@ -125,10 +135,10 @@ $exclude-keys: (w, b, fore, back, desc, note, case, deep, code, link);
|
|
|
125
135
|
$n: list.nth($i, 1);
|
|
126
136
|
$s: list.nth($i, 2);
|
|
127
137
|
|
|
128
|
-
//
|
|
138
|
+
// 首个主题同时挂到 :root,便于无 theme 属性时使用默认色
|
|
129
139
|
$scope: '[theme~="#{$n}"]';
|
|
130
140
|
@if $n == $f {
|
|
131
|
-
$scope: ':root';
|
|
141
|
+
$scope: ':root, [theme~="#{$n}"]';
|
|
132
142
|
}
|
|
133
143
|
#{$scope} {
|
|
134
144
|
@each $c in $s {
|