@neatui/css 4.2.0 → 4.2.2

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.
Files changed (41) hide show
  1. package/README.md +32 -6
  2. package/components/anim/package.json +3 -3
  3. package/components/badge/package.json +6 -6
  4. package/components/btns/README.md +1 -1
  5. package/components/btns/package.json +2 -2
  6. package/components/card/package.json +1 -1
  7. package/components/chat/package.json +1 -1
  8. package/components/form/README.md +9 -9
  9. package/components/form/package.json +5 -5
  10. package/components/grid/package.json +2 -2
  11. package/components/icon/package.json +1 -1
  12. package/components/imgs/README.md +1 -1
  13. package/components/imgs/package.json +2 -2
  14. package/components/line/package.json +2 -2
  15. package/components/list/package.json +3 -3
  16. package/components/load/README.md +1 -1
  17. package/components/load/package.json +2 -2
  18. package/components/menu/package.json +4 -4
  19. package/components/navs/README.md +1 -1
  20. package/components/navs/package.json +2 -2
  21. package/components/path/README.md +9 -9
  22. package/components/path/package.json +5 -5
  23. package/components/steps/package.json +1 -1
  24. package/components/table/package.json +5 -5
  25. package/components/tabs/README.md +5 -5
  26. package/components/tabs/package.json +5 -5
  27. package/components/tags/README.md +4 -4
  28. package/components/tags/package.json +5 -5
  29. package/components/tips/README.md +5 -5
  30. package/components/tips/package.json +5 -5
  31. package/components/title/package.json +1 -1
  32. package/core/theme.scss +35 -25
  33. package/dist/neatui.css +28146 -0
  34. package/dist/neatui.min.css +1 -0
  35. package/dist/neatui.preview.css +36198 -0
  36. package/dist/neatui.preview.min.css +1 -0
  37. package/package.json +56 -5
  38. package/preview.scss +10 -0
  39. package/tokens/neatui.tokens.json +489 -0
  40. package/components/user/mcui@user.scss +0 -0
  41. package/postcss.config.js +0 -20
@@ -1,13 +1,13 @@
1
- # @neatui/core
1
+ # @neatui/css
2
2
 
3
- MCUI 选项卡组件。本组件依赖框架核心 @neatui/core 。更多详情请访问官网 [https://mcui.fekit.cn/](https://mcui.fekit.cn/)
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/core
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/core';
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
- 详细文档请到 MCUI 官网 [https://mcui.fekit.cn](https://mcui.fekit.cn)
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": "mcui@tips.scss",
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/mcui/mcui.desktop.git"
11
+ "url": "git+https://gitlab.com/neatui/neatui.git"
12
12
  },
13
13
  "keywords": [
14
- "mcui"
14
+ "neatui"
15
15
  ],
16
16
  "author": "xiaojunbo",
17
17
  "license": "MIT",
18
18
  "bugs": {
19
- "url": "https://gitlab.com/mcui/mcui.desktop/issues"
19
+ "url": "https://gitlab.com/neatui/neatui/issues"
20
20
  },
21
- "homepage": "https://gitlab.com/mcui/mcui.desktop#readme"
21
+ "homepage": "https://gitlab.com/neatui/neatui#readme"
22
22
  }
@@ -2,7 +2,7 @@
2
2
  "name": "@neatui/title",
3
3
  "version": "1.0.0",
4
4
  "description": "",
5
- "main": "mcui@title.scss",
5
+ "main": "index.scss",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"
8
8
  },
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
- @mixin theme(
55
- $theme: (
56
- _sys: (
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
- )
69
- ) {
70
- // 检测
71
- $fa: map.keys($theme);
72
- $fk: list.nth($fa, 1);
73
- @if (list.length($fa) == 1 and $fk == _sys) {
74
- @warn '检测到您未定义主题色卡,请遵循 neatui 设计规范建立主题色卡;https://neatui.fekit.cn/#/docs/config';
75
- @debug '尝试修复错误...';
76
- @debug '创建系统默认色卡[theme=_sys]';
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
- // 动态选择器:首个主题多一个 :root
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 {