@fe-free/core 4.2.5 → 6.0.1

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/CHANGELOG.md CHANGED
@@ -1,12 +1,13 @@
1
1
  # @fe-free/core
2
2
 
3
- ## 4.2.5
3
+ ## 6.0.1
4
4
 
5
5
  ### Patch Changes
6
6
 
7
- - fix: crud ui bug
8
- - @fe-free/icons@4.2.5
9
- - @fe-free/tool@4.2.5
7
+ - feat: tailwindcss4
8
+ - Updated dependencies
9
+ - @fe-free/icons@6.0.1
10
+ - @fe-free/tool@6.0.1
10
11
 
11
12
  ## 4.2.4
12
13
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fe-free/core",
3
- "version": "4.2.5",
3
+ "version": "6.0.1",
4
4
  "description": "",
5
5
  "main": "./src/index.ts",
6
6
  "author": "",
@@ -52,8 +52,8 @@
52
52
  "i18next-icu": "^2.4.1",
53
53
  "react": "^19.2.0",
54
54
  "react-i18next": "^16.4.0",
55
- "@fe-free/icons": "4.2.5",
56
- "@fe-free/tool": "4.2.5"
55
+ "@fe-free/tool": "6.0.1",
56
+ "@fe-free/icons": "6.0.1"
57
57
  },
58
58
  "scripts": {
59
59
  "i18n-extract": "rm -rf ./src/locales/zh-CN && npx i18next-cli extract"
@@ -24,9 +24,9 @@
24
24
  border: 1px solid var(--ant-color-border);
25
25
 
26
26
  &.ant-pagination-item-active {
27
- color: theme('colors.theme08');
28
- background-color: theme('colors.theme03');
29
- border-color: theme('colors.theme05');
27
+ color: var(--color-theme08);
28
+ background-color: var(--color-theme03);
29
+ border-color: var(--color-theme05);
30
30
  }
31
31
  }
32
32
  }
package/src/index.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import './style.scss';
2
+ import './tailwind.css';
2
3
 
3
4
  export { useGlobalInfiniteScroll } from './ahooks/use_global_infinite_scroll';
4
5
  export { useGlobalRequest } from './ahooks/use_global_request';
package/src/style.scss CHANGED
@@ -1,34 +1,3 @@
1
- /** 和 antd 冲突,不开启 */
2
- /* stylelint-disable-next-line at-rule-no-unknown */
3
- // @tailwind base;
4
-
5
- // base
6
- * {
7
- border: 0 solid;
8
- box-sizing: border-box;
9
- -webkit-font-smoothing: antialiased;
10
- }
11
-
12
- /* stylelint-disable-next-line at-rule-no-unknown */
13
- @tailwind components;
14
-
15
- /* stylelint-disable-next-line at-rule-no-unknown */
16
- @tailwind utilities;
17
-
18
- ::-webkit-scrollbar {
19
- width: 8px;
20
- height: 8px;
21
- }
22
-
23
- ::-webkit-scrollbar-thumb {
24
- background: #ccc;
25
- border-radius: 2px;
26
- }
27
-
28
- ::-webkit-scrollbar-track {
29
- background: transparent;
30
- }
31
-
32
1
  .fec-app-hidden-form-item-label-colon {
33
2
  // 隐藏 label 的冒号
34
3
  .ant-form-item .ant-form-item-label > label::after {
@@ -0,0 +1,53 @@
1
+ @import 'tailwindcss';
2
+
3
+ @theme {
4
+ --color-primary: #0374e9;
5
+ --color-theme09: #0368d2;
6
+ --color-theme08: #0374e9;
7
+ --color-theme05: #a2cbf7;
8
+ --color-theme03: #e6f1fd;
9
+ --color-theme02: #f0f7fe;
10
+ --color-red09: #e64547;
11
+ --color-red08: #ff4d4f;
12
+ --color-red05: #ffb8b9;
13
+ --color-red03: #ffeded;
14
+ --color-green09: #01a468;
15
+ --color-green08: #01b673;
16
+ --color-green05: #9be5c8;
17
+ --color-green03: #ddf9ec;
18
+ --color-yellow09: #bf7a05;
19
+ --color-yellow08: #faad14;
20
+ --color-yellow05: #eecf9b;
21
+ --color-yellow03: #f6e7cd;
22
+ --text-color-01: #15191e;
23
+ --text-color-02: #444444;
24
+ --text-color-03: #777777;
25
+ --text-color-04: #bfbfbf;
26
+ --border-color-01: #e2e7f0;
27
+ --border-color-02: #d5dde9;
28
+ --border-color-03: #c0c7d2;
29
+ --background-color-01: #f1f3f5;
30
+ --background-color-02: #ececec;
31
+ --background-color-03: #d9d9d9;
32
+ --background-color-04: #c0c0c0;
33
+ }
34
+
35
+ @layer base {
36
+ * {
37
+ -webkit-font-smoothing: antialiased;
38
+ }
39
+
40
+ ::-webkit-scrollbar {
41
+ width: 8px;
42
+ height: 8px;
43
+ }
44
+
45
+ ::-webkit-scrollbar-thumb {
46
+ background: #ccc;
47
+ border-radius: 2px;
48
+ }
49
+
50
+ ::-webkit-scrollbar-track {
51
+ background: transparent;
52
+ }
53
+ }
@@ -1,14 +0,0 @@
1
- /** @type {import('tailwindcss').Config} */
2
- import { themeVariables } from './theme';
3
-
4
- module.exports = {
5
- theme: {
6
- extend: {
7
- colors: themeVariables.color,
8
- textColor: themeVariables.textColor,
9
- borderColor: themeVariables.borderColor,
10
- backgroundColor: themeVariables.backgroundColor,
11
- },
12
- },
13
- plugins: [],
14
- };