@fe-free/core 3.0.0 → 3.0.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @fe-free/core
2
2
 
3
+ ## 3.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - feat: theme
8
+ - @fe-free/tool@3.0.2
9
+
10
+ ## 3.0.1
11
+
12
+ ### Patch Changes
13
+
14
+ - feat: theme
15
+ - @fe-free/tool@3.0.1
16
+
3
17
  ## 3.0.0
4
18
 
5
19
  ### Major Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fe-free/core",
3
- "version": "3.0.0",
3
+ "version": "3.0.2",
4
4
  "description": "",
5
5
  "main": "./src/index.ts",
6
6
  "author": "",
@@ -41,7 +41,7 @@
41
41
  "safe-stable-stringify": "^2.5.0",
42
42
  "vanilla-jsoneditor": "^0.23.1",
43
43
  "zustand": "^4.5.4",
44
- "@fe-free/tool": "3.0.0"
44
+ "@fe-free/tool": "3.0.2"
45
45
  },
46
46
  "peerDependencies": {
47
47
  "@ant-design/pro-components": "2.8.9",
@@ -22,7 +22,7 @@ CRUDOfList 组件。(简洁的列表形态的 CRUD 组件)
22
22
  decorators: [
23
23
  (Story) => {
24
24
  return (
25
- <div className="fec-border h-[500px] w-[300px] overflow-y-auto">
25
+ <div className="h-[500px] w-[300px] overflow-y-auto border border-01">
26
26
  <Story />
27
27
  </div>
28
28
  );
@@ -332,7 +332,7 @@ const EditorMention = ({
332
332
  onInput={handleInput}
333
333
  onKeyDown={handleKeyDown}
334
334
  className={classNames(
335
- 'fec-border w-full flex-1 overflow-y-auto rounded p-2 outline-none focus:border-primary',
335
+ 'w-full flex-1 overflow-y-auto rounded border border-01 p-2 outline-none focus:border-primary',
336
336
  resizeHeight && 'resize-y',
337
337
  )}
338
338
  style={{
@@ -85,7 +85,7 @@ function RecordArray(props: RecordArrayProps) {
85
85
 
86
86
  return (
87
87
  <ProFormListHelper
88
- className={classNames('fec-bg rounded p-2', className)}
88
+ className={classNames('rounded bg-01 p-2', className)}
89
89
  value={value}
90
90
  onChange={onChange}
91
91
  getAdd={() => ({
package/src/style.scss CHANGED
@@ -12,35 +12,3 @@
12
12
 
13
13
  /* stylelint-disable-next-line at-rule-no-unknown */
14
14
  @tailwind utilities;
15
-
16
- .fec-border {
17
- border: 1px solid #f0f0f0;
18
- }
19
-
20
- .fec-border-bottom {
21
- border-bottom: 1px solid #f0f0f0;
22
- }
23
-
24
- .fec-border-top {
25
- border-top: 1px solid #f0f0f0;
26
- }
27
-
28
- .fec-border-left {
29
- border-left: 1px solid #f0f0f0;
30
- }
31
-
32
- .fec-border-right {
33
- border-right: 1px solid #f0f0f0;
34
- }
35
-
36
- .fec-bg {
37
- background-color: #f3f5f6;
38
- }
39
-
40
- .fec-bg-hover {
41
- background-color: #f3f5f6;
42
-
43
- &:hover {
44
- background-color: #e9ebec;
45
- }
46
- }
@@ -10,7 +10,6 @@ export const Default = () => {
10
10
  <h1>tailwindcss</h1>
11
11
  <h2>textColor</h2>
12
12
  <div>
13
- <div className="bg-black px-2 text-00">text-00</div>
14
13
  <div className="text-01">text-01</div>
15
14
  <div className="text-02">text-02</div>
16
15
  <div className="text-03">text-03</div>
@@ -24,11 +23,10 @@ export const Default = () => {
24
23
  </div>
25
24
  <h2>backgroundColor</h2>
26
25
  <div>
27
- <div className="bg-00">bg-00</div>
28
- <div className="bg-005">bg-005</div>
29
26
  <div className="bg-01">bg-01</div>
30
27
  <div className="bg-02">bg-02</div>
31
28
  <div className="bg-03">bg-03</div>
29
+ <div className="bg-04">bg-04</div>
32
30
  </div>
33
31
  <h2>colors</h2>
34
32
  <div>
@@ -63,15 +61,6 @@ export const Default = () => {
63
61
  <div className="bg-yellow05">yellow05</div>
64
62
  <div className="bg-yellow03">yellow03</div>
65
63
  </div>
66
- <h1>className</h1>
67
- <div>
68
- <div className="fec-border-bottom">fec-border-bottom</div>
69
- <div className="fec-border-top">fec-border-top</div>
70
- <div className="fec-border-left">fec-border-left</div>
71
- <div className="fec-border-right">fec-border-right</div>
72
- <div className="fec-bg">fec-bg</div>
73
- <div className="fec-bg-hover">fec-bg-hover</div>
74
- </div>
75
64
  </div>
76
65
  );
77
66
  };
package/src/theme.ts CHANGED
@@ -25,7 +25,6 @@ const themeVariables = {
25
25
  yellow03: '#f6e7cd',
26
26
  },
27
27
  textColor: {
28
- '00': '#ffffff',
29
28
  '01': '#15191e',
30
29
  '02': '#444444',
31
30
  '03': '#777777',
@@ -37,11 +36,10 @@ const themeVariables = {
37
36
  '03': '#c0c7d2',
38
37
  },
39
38
  backgroundColor: {
40
- '00': '#ffffff',
41
- '005': '#f1f3f5',
42
- '01': '#ececec',
43
- '02': '#d9d9d9',
44
- '03': '#c0c0c0',
39
+ '01': '#f1f3f5',
40
+ '02': '#ececec',
41
+ '03': '#d9d9d9',
42
+ '04': '#c0c0c0',
45
43
  },
46
44
  } as const;
47
45
 
@@ -8,7 +8,7 @@ const meta: Meta<typeof FileTree> = {
8
8
  decorators: [
9
9
  (Story) => {
10
10
  return (
11
- <div className="fec-border w-[200px] overflow-y-auto">
11
+ <div className="w-[200px] overflow-y-auto border border-01">
12
12
  <Story />
13
13
  </div>
14
14
  );
@@ -7,7 +7,7 @@ const meta: Meta<typeof Tree> = {
7
7
  tags: ['autodocs'],
8
8
  decorators: [
9
9
  (Story) => (
10
- <div className="fec-border w-[300px]">
10
+ <div className="w-[300px] border border-01">
11
11
  <Story />
12
12
  </div>
13
13
  ),