@fle-ui/next 1.0.5-alpha.4 → 1.0.5-alpha.5
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/dist/@fle-ui/next.css +1859 -5161
- package/dist/@fle-ui/next.css.map +1 -1
- package/dist/@fle-ui/next.js +6349 -6355
- package/dist/@fle-ui/next.js.map +1 -1
- package/dist/@fle-ui/next.min.css +2 -2
- package/dist/@fle-ui/next.min.css.map +1 -1
- package/dist/@fle-ui/next.min.js +4 -4
- package/dist/@fle-ui/next.min.js.map +1 -1
- package/es/affix/style/index.css +0 -42
- package/es/alert/style/index.css +17 -59
- package/es/anchor/Anchor.d.ts +1 -1
- package/es/anchor/style/index.css +5 -47
- package/es/auto-complete/style/index.css +1 -43
- package/es/avatar/avatar.js +8 -4
- package/es/avatar/style/index.css +1 -43
- package/es/back-top/style/index.css +3 -45
- package/es/badge/style/index.css +23 -65
- package/es/breadcrumb/style/index.css +7 -49
- package/es/button/button.d.ts +1 -1
- package/es/button/button.js +11 -7
- package/es/button/style/index.css +156 -206
- package/es/calendar/style/index.css +8 -50
- package/es/card/style/index.css +17 -59
- package/es/carousel/style/index.css +1 -43
- package/es/cascader/index.d.ts +1 -1
- package/es/cascader/index.js +13 -9
- package/es/cascader/style/index.css +24 -66
- package/es/checkbox/Checkbox.js +8 -4
- package/es/checkbox/style/index.css +17 -59
- package/es/collapse/style/index.css +8 -50
- package/es/comment/style/index.css +5 -47
- package/es/config-provider/context.js +5 -1
- package/es/config-provider/style/index.css +0 -42
- package/es/date-picker/style/index.css +84 -126
- package/es/descriptions/style/index.css +8 -50
- package/es/divider/style/index.css +7 -49
- package/es/drawer/index.js +5 -1
- package/es/drawer/style/index.css +5 -47
- package/es/dropdown/style/index.css +17 -59
- package/es/empty/style/index.css +2 -44
- package/es/form/style/index.css +18 -60
- package/es/grid/col.js +5 -1
- package/es/grid/row.js +5 -1
- package/es/grid/style/index.css +0 -42
- package/es/icon/style/index.css +0 -42
- package/es/image/style/index.css +1 -43
- package/es/index.d.ts +1 -2
- package/es/index.js +1 -2
- package/es/input/Password.d.ts +1 -1
- package/es/input/Password.js +9 -5
- package/es/input/Search.js +9 -5
- package/es/input/style/index.css +65 -107
- package/es/input-number/index.js +1 -1
- package/es/input-number/style/index.css +68 -110
- package/es/layout/Sider.js +11 -7
- package/es/layout/layout.js +6 -2
- package/es/layout/style/index.css +4 -46
- package/es/list/style/index.css +17 -59
- package/es/locale-provider/index.d.ts +2 -2
- package/es/locale-provider/style/index.css +0 -42
- package/es/mentions/index.d.ts +1 -1
- package/es/mentions/index.js +8 -4
- package/es/mentions/style/index.css +32 -74
- package/es/menu/style/index.css +46 -88
- package/es/message/style/index.css +5 -47
- package/es/modal/style/confirm.less +2 -2
- package/es/modal/style/css.js +2 -1
- package/es/modal/style/index.css +3 -45
- package/es/modal/style/index.js +2 -1
- package/es/modal/style/index.less +0 -1
- package/es/modal/style/modal.less +1 -1
- package/es/modal/style/rtl.less +2 -1
- package/es/notification/style/index.css +8 -50
- package/es/page-header/style/index.css +6 -48
- package/es/pagination/style/index.css +99 -118
- package/es/pagination/style/index.less +63 -22
- package/es/popconfirm/style/index.css +0 -42
- package/es/popover/index.js +5 -1
- package/es/popover/style/index.css +17 -59
- package/es/progress/style/index.css +17 -59
- package/es/radio/radio.js +9 -5
- package/es/radio/style/index.css +49 -91
- package/es/rate/index.js +5 -1
- package/es/rate/style/index.css +2 -44
- package/es/result/style/index.css +6 -48
- package/es/segmented/index.d.ts +1 -1
- package/es/segmented/index.js +6 -2
- package/es/segmented/style/index.css +3 -45
- package/es/select/style/index.css +32 -74
- package/es/skeleton/style/index.css +10 -52
- package/es/skeleton/style/index.less +3 -3
- package/es/slider/index.d.ts +1 -1
- package/es/slider/index.js +8 -4
- package/es/slider/style/index.css +22 -56
- package/es/slider/style/index.less +9 -0
- package/es/space/style/index.css +0 -42
- package/es/spin/style/index.css +4 -46
- package/es/statistic/style/index.css +3 -45
- package/es/steps/style/index.css +44 -86
- package/es/style/color/colors.less +6 -6
- package/es/style/index.css +13 -55
- package/es/style/themes/compact.less +6 -12
- package/es/style/themes/dark.less +106 -445
- package/es/style/themes/default.less +35 -61
- package/es/style/themes/index.less +2 -3
- package/es/style/themes/variable.less +39 -80
- package/es/switch/index.js +10 -6
- package/es/switch/style/index.css +6 -48
- package/es/table/hooks/useFilter/FilterDropdown.js +2 -16
- package/es/table/style/index.css +35 -77
- package/es/table/util.d.ts +1 -1
- package/es/tabs/style/index.css +22 -64
- package/es/tag/index.d.ts +1 -1
- package/es/tag/index.js +8 -4
- package/es/tag/style/index.css +39 -81
- package/es/time-picker/index.js +5 -1
- package/es/time-picker/style/index.css +0 -42
- package/es/timeline/index.d.ts +2 -2
- package/es/timeline/style/index.css +15 -57
- package/es/tooltip/index.d.ts +3 -3
- package/es/tooltip/index.js +9 -5
- package/es/tooltip/style/index.css +12 -54
- package/es/transfer/index.d.ts +3 -3
- package/es/transfer/style/index.css +28 -70
- package/es/tree/DirectoryTree.js +5 -1
- package/es/tree/index.d.ts +2 -2
- package/es/tree/style/index.css +29 -71
- package/es/tree-select/style/index.css +27 -69
- package/es/typography/Typography.js +6 -2
- package/es/typography/style/index.css +24 -66
- package/es/upload/Dragger.js +5 -1
- package/es/upload/Upload.js +10 -6
- package/es/upload/UploadList/index.js +13 -9
- package/es/upload/index.d.ts +1 -1
- package/es/upload/style/index.css +23 -65
- package/lib/affix/style/index.css +0 -42
- package/lib/alert/style/index.css +17 -59
- package/lib/anchor/Anchor.d.ts +1 -1
- package/lib/anchor/style/index.css +5 -47
- package/lib/auto-complete/style/index.css +1 -43
- package/lib/avatar/avatar.js +9 -5
- package/lib/avatar/style/index.css +1 -43
- package/lib/back-top/style/index.css +3 -45
- package/lib/badge/style/index.css +23 -65
- package/lib/breadcrumb/style/index.css +7 -49
- package/lib/button/button.d.ts +1 -1
- package/lib/button/button.js +13 -9
- package/lib/button/style/index.css +156 -206
- package/lib/calendar/style/index.css +8 -50
- package/lib/card/style/index.css +17 -59
- package/lib/carousel/style/index.css +1 -43
- package/lib/cascader/index.d.ts +1 -1
- package/lib/cascader/index.js +16 -12
- package/lib/cascader/style/index.css +24 -66
- package/lib/checkbox/Checkbox.js +10 -6
- package/lib/checkbox/style/index.css +17 -59
- package/lib/collapse/style/index.css +8 -50
- package/lib/comment/style/index.css +5 -47
- package/lib/config-provider/context.js +5 -1
- package/lib/config-provider/style/index.css +0 -42
- package/lib/date-picker/style/index.css +84 -126
- package/lib/descriptions/style/index.css +8 -50
- package/lib/divider/style/index.css +7 -49
- package/lib/drawer/index.js +5 -1
- package/lib/drawer/style/index.css +5 -47
- package/lib/dropdown/style/index.css +17 -59
- package/lib/empty/style/index.css +2 -44
- package/lib/form/style/index.css +18 -60
- package/lib/grid/col.js +5 -1
- package/lib/grid/row.js +5 -1
- package/lib/grid/style/index.css +0 -42
- package/lib/icon/style/index.css +0 -42
- package/lib/image/style/index.css +1 -43
- package/lib/index.d.ts +1 -2
- package/lib/index.js +0 -8
- package/lib/input/Password.d.ts +1 -1
- package/lib/input/Password.js +10 -6
- package/lib/input/Search.js +11 -7
- package/lib/input/style/index.css +65 -107
- package/lib/input-number/index.js +1 -1
- package/lib/input-number/style/index.css +68 -110
- package/lib/layout/Sider.js +13 -9
- package/lib/layout/layout.js +7 -3
- package/lib/layout/style/index.css +4 -46
- package/lib/list/style/index.css +17 -59
- package/lib/locale-provider/index.d.ts +2 -2
- package/lib/locale-provider/style/index.css +0 -42
- package/lib/mentions/index.d.ts +1 -1
- package/lib/mentions/index.js +10 -6
- package/lib/mentions/style/index.css +32 -74
- package/lib/menu/style/index.css +46 -88
- package/lib/message/style/index.css +5 -47
- package/lib/modal/style/confirm.less +2 -2
- package/lib/modal/style/index.css +3 -45
- package/lib/modal/style/index.less +0 -1
- package/lib/modal/style/modal.less +1 -1
- package/lib/modal/style/rtl.less +2 -1
- package/lib/notification/style/index.css +8 -50
- package/lib/page-header/style/index.css +6 -48
- package/lib/pagination/style/index.css +99 -118
- package/lib/pagination/style/index.less +63 -22
- package/lib/popconfirm/style/index.css +0 -42
- package/lib/popover/index.js +5 -1
- package/lib/popover/style/index.css +17 -59
- package/lib/progress/style/index.css +17 -59
- package/lib/radio/radio.js +11 -7
- package/lib/radio/style/index.css +49 -91
- package/lib/rate/index.js +5 -1
- package/lib/rate/style/index.css +2 -44
- package/lib/result/style/index.css +6 -48
- package/lib/segmented/index.d.ts +1 -1
- package/lib/segmented/index.js +7 -3
- package/lib/segmented/style/index.css +3 -45
- package/lib/select/style/index.css +32 -74
- package/lib/skeleton/style/index.css +10 -52
- package/lib/skeleton/style/index.less +3 -3
- package/lib/slider/index.d.ts +1 -1
- package/lib/slider/index.js +9 -5
- package/lib/slider/style/index.css +22 -56
- package/lib/slider/style/index.less +9 -0
- package/lib/space/style/index.css +0 -42
- package/lib/spin/style/index.css +4 -46
- package/lib/statistic/style/index.css +3 -45
- package/lib/steps/style/index.css +44 -86
- package/lib/style/color/colors.less +6 -6
- package/lib/style/index.css +13 -55
- package/lib/style/themes/compact.less +6 -12
- package/lib/style/themes/dark.less +106 -445
- package/lib/style/themes/default.less +35 -61
- package/lib/style/themes/index.less +2 -3
- package/lib/style/themes/variable.less +39 -80
- package/lib/switch/index.js +12 -8
- package/lib/switch/style/index.css +6 -48
- package/lib/table/hooks/useFilter/FilterDropdown.js +2 -16
- package/lib/table/style/index.css +35 -77
- package/lib/table/util.d.ts +1 -1
- package/lib/tabs/style/index.css +22 -64
- package/lib/tag/index.d.ts +1 -1
- package/lib/tag/index.js +9 -5
- package/lib/tag/style/index.css +39 -81
- package/lib/time-picker/index.js +5 -1
- package/lib/time-picker/style/index.css +0 -42
- package/lib/timeline/index.d.ts +2 -2
- package/lib/timeline/style/index.css +15 -57
- package/lib/tooltip/index.d.ts +3 -3
- package/lib/tooltip/index.js +11 -7
- package/lib/tooltip/style/index.css +12 -54
- package/lib/transfer/index.d.ts +3 -3
- package/lib/transfer/style/index.css +28 -70
- package/lib/tree/DirectoryTree.js +5 -1
- package/lib/tree/index.d.ts +2 -2
- package/lib/tree/style/index.css +29 -71
- package/lib/tree-select/style/index.css +27 -69
- package/lib/typography/Typography.js +7 -3
- package/lib/typography/style/index.css +24 -66
- package/lib/upload/Dragger.js +5 -1
- package/lib/upload/Upload.js +12 -8
- package/lib/upload/UploadList/index.js +16 -12
- package/lib/upload/index.d.ts +1 -1
- package/lib/upload/style/index.css +23 -65
- package/package.json +2 -2
- package/report.html +2 -2
- package/es/config-provider/renderEmpty.d.ts +0 -4
- package/es/config-provider/renderEmpty.js +0 -41
- package/es/pagination/MiniSelect.d.ts +0 -7
- package/es/pagination/MiniSelect.js +0 -12
- package/es/typography/util.d.ts +0 -11
- package/es/typography/util.js +0 -234
- package/es/version/index.d.ts +0 -2
- package/es/version/index.js +0 -4
- package/es/version/style/css.js +0 -2
- package/es/version/style/index.d.ts +0 -1
- package/es/version/style/index.js +0 -2
- package/es/version/version.d.ts +0 -2
- package/es/version/version.js +0 -1
- package/lib/config-provider/renderEmpty.d.ts +0 -4
- package/lib/config-provider/renderEmpty.js +0 -59
- package/lib/pagination/MiniSelect.d.ts +0 -7
- package/lib/pagination/MiniSelect.js +0 -30
- package/lib/typography/util.d.ts +0 -11
- package/lib/typography/util.js +0 -254
- package/lib/version/index.d.ts +0 -2
- package/lib/version/index.js +0 -15
- package/lib/version/style/css.js +0 -3
- package/lib/version/style/index.d.ts +0 -1
- package/lib/version/style/index.js +0 -3
- package/lib/version/version.d.ts +0 -2
- package/lib/version/version.js +0 -8
package/lib/list/style/index.css
CHANGED
@@ -2,53 +2,11 @@
|
|
2
2
|
/* stylelint-disable no-duplicate-selectors */
|
3
3
|
/* stylelint-disable */
|
4
4
|
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
|
5
|
-
html {
|
6
|
-
--ant-primary-color: #2c68ff;
|
7
|
-
--ant-primary-color-hover: #548aff;
|
8
|
-
--ant-primary-color-active: #1a4ad9;
|
9
|
-
--ant-primary-color-outline: rgba(44, 104, 255, 0.2);
|
10
|
-
--ant-primary-1: #f0f7ff;
|
11
|
-
--ant-primary-2: #cfe3ff;
|
12
|
-
--ant-primary-3: #a6c8ff;
|
13
|
-
--ant-primary-4: #7daaff;
|
14
|
-
--ant-primary-5: #548aff;
|
15
|
-
--ant-primary-6: #2c68ff;
|
16
|
-
--ant-primary-7: #1a4ad9;
|
17
|
-
--ant-primary-color-deprecated-pure: ;
|
18
|
-
--ant-primary-color-deprecated-l-35: #dfe8ff;
|
19
|
-
--ant-primary-color-deprecated-l-20: #92b1ff;
|
20
|
-
--ant-primary-color-deprecated-t-20: #5686ff;
|
21
|
-
--ant-primary-color-deprecated-t-50: #96b4ff;
|
22
|
-
--ant-primary-color-deprecated-f-12: rgba(44, 104, 255, 0.12);
|
23
|
-
--ant-primary-color-active-deprecated-f-30: rgba(240, 247, 255, 0.3);
|
24
|
-
--ant-primary-color-active-deprecated-d-02: #e6f2ff;
|
25
|
-
--ant-success-color: #36c626;
|
26
|
-
--ant-success-color-hover: #5cd44a;
|
27
|
-
--ant-success-color-active: #20a116;
|
28
|
-
--ant-success-color-outline: rgba(54, 198, 38, 0.2);
|
29
|
-
--ant-success-color-deprecated-bg: #f4fff0;
|
30
|
-
--ant-success-color-deprecated-border: #afed9f;
|
31
|
-
--ant-error-color: #ff5c57;
|
32
|
-
--ant-error-color-hover: #ff8880;
|
33
|
-
--ant-error-color-active: #d93f3f;
|
34
|
-
--ant-error-color-outline: rgba(255, 92, 87, 0.2);
|
35
|
-
--ant-error-color-deprecated-bg: #fff3f0;
|
36
|
-
--ant-error-color-deprecated-border: #ffd7d1;
|
37
|
-
--ant-warning-color: #ffab00;
|
38
|
-
--ant-warning-color-hover: #ffbf29;
|
39
|
-
--ant-warning-color-active: #d98900;
|
40
|
-
--ant-warning-color-outline: rgba(255, 171, 0, 0.2);
|
41
|
-
--ant-warning-color-deprecated-bg: #fffbe6;
|
42
|
-
--ant-warning-color-deprecated-border: #ffe07a;
|
43
|
-
--ant-info-color: #2c68ff;
|
44
|
-
--ant-info-color-deprecated-bg: #f0f7ff;
|
45
|
-
--ant-info-color-deprecated-border: #a6c8ff;
|
46
|
-
}
|
47
5
|
.ant-list {
|
48
6
|
box-sizing: border-box;
|
49
7
|
margin: 0;
|
50
8
|
padding: 0;
|
51
|
-
color:
|
9
|
+
color: #4c4c4c;
|
52
10
|
font-size: 14px;
|
53
11
|
font-variant: tabular-nums;
|
54
12
|
line-height: 1.5715;
|
@@ -80,7 +38,7 @@ html {
|
|
80
38
|
}
|
81
39
|
.ant-list-empty-text {
|
82
40
|
padding: 16px;
|
83
|
-
color:
|
41
|
+
color: #a9a9a9;
|
84
42
|
font-size: 14px;
|
85
43
|
text-align: center;
|
86
44
|
}
|
@@ -94,7 +52,7 @@ html {
|
|
94
52
|
align-items: center;
|
95
53
|
justify-content: space-between;
|
96
54
|
padding: 12px 0;
|
97
|
-
color:
|
55
|
+
color: #4c4c4c;
|
98
56
|
}
|
99
57
|
.ant-list-item-meta {
|
100
58
|
display: flex;
|
@@ -108,23 +66,23 @@ html {
|
|
108
66
|
.ant-list-item-meta-content {
|
109
67
|
flex: 1 0;
|
110
68
|
width: 0;
|
111
|
-
color:
|
69
|
+
color: #4c4c4c;
|
112
70
|
}
|
113
71
|
.ant-list-item-meta-title {
|
114
72
|
margin-bottom: 4px;
|
115
|
-
color:
|
73
|
+
color: #4c4c4c;
|
116
74
|
font-size: 14px;
|
117
75
|
line-height: 1.5715;
|
118
76
|
}
|
119
77
|
.ant-list-item-meta-title > a {
|
120
|
-
color:
|
78
|
+
color: #4c4c4c;
|
121
79
|
transition: all 0.3s;
|
122
80
|
}
|
123
81
|
.ant-list-item-meta-title > a:hover {
|
124
|
-
color:
|
82
|
+
color: #2c68ff;
|
125
83
|
}
|
126
84
|
.ant-list-item-meta-description {
|
127
|
-
color:
|
85
|
+
color: #a9a9a9;
|
128
86
|
font-size: 14px;
|
129
87
|
line-height: 1.5715;
|
130
88
|
}
|
@@ -139,7 +97,7 @@ html {
|
|
139
97
|
position: relative;
|
140
98
|
display: inline-block;
|
141
99
|
padding: 0 8px;
|
142
|
-
color:
|
100
|
+
color: #a9a9a9;
|
143
101
|
font-size: 14px;
|
144
102
|
line-height: 1.5715;
|
145
103
|
text-align: center;
|
@@ -154,7 +112,7 @@ html {
|
|
154
112
|
width: 1px;
|
155
113
|
height: 14px;
|
156
114
|
margin-top: -7px;
|
157
|
-
background-color:
|
115
|
+
background-color: #eeeeee;
|
158
116
|
}
|
159
117
|
.ant-list-header {
|
160
118
|
background: transparent;
|
@@ -169,27 +127,27 @@ html {
|
|
169
127
|
}
|
170
128
|
.ant-list-empty {
|
171
129
|
padding: 16px 0;
|
172
|
-
color:
|
130
|
+
color: #a9a9a9;
|
173
131
|
font-size: 12px;
|
174
132
|
text-align: center;
|
175
133
|
}
|
176
134
|
.ant-list-split .ant-list-item {
|
177
|
-
border-bottom: 1px solid
|
135
|
+
border-bottom: 1px solid #eeeeee;
|
178
136
|
}
|
179
137
|
.ant-list-split .ant-list-item:last-child {
|
180
138
|
border-bottom: none;
|
181
139
|
}
|
182
140
|
.ant-list-split .ant-list-header {
|
183
|
-
border-bottom: 1px solid
|
141
|
+
border-bottom: 1px solid #eeeeee;
|
184
142
|
}
|
185
143
|
.ant-list-split.ant-list-empty .ant-list-footer {
|
186
|
-
border-top: 1px solid
|
144
|
+
border-top: 1px solid #eeeeee;
|
187
145
|
}
|
188
146
|
.ant-list-loading .ant-list-spin-nested-loading {
|
189
147
|
min-height: 32px;
|
190
148
|
}
|
191
149
|
.ant-list-split.ant-list-something-after-last-item .ant-spin-container > .ant-list-items > .ant-list-item:last-child {
|
192
|
-
border-bottom: 1px solid
|
150
|
+
border-bottom: 1px solid #eeeeee;
|
193
151
|
}
|
194
152
|
.ant-list-lg .ant-list-item {
|
195
153
|
padding: 16px 24px;
|
@@ -212,7 +170,7 @@ html {
|
|
212
170
|
}
|
213
171
|
.ant-list-vertical .ant-list-item-meta-title {
|
214
172
|
margin-bottom: 12px;
|
215
|
-
color:
|
173
|
+
color: #262626;
|
216
174
|
font-size: 16px;
|
217
175
|
line-height: 24px;
|
218
176
|
}
|
@@ -241,7 +199,7 @@ html {
|
|
241
199
|
float: right;
|
242
200
|
}
|
243
201
|
.ant-list-bordered {
|
244
|
-
border: 1px solid #
|
202
|
+
border: 1px solid #d2d2d2;
|
245
203
|
border-radius: 4px;
|
246
204
|
}
|
247
205
|
.ant-list-bordered .ant-list-header {
|
@@ -54,8 +54,8 @@ export default class LocaleProvider extends React.Component<LocaleProviderProps,
|
|
54
54
|
componentDidMount(): void;
|
55
55
|
componentDidUpdate(prevProps: LocaleProviderProps): void;
|
56
56
|
componentWillUnmount(): void;
|
57
|
-
getMemoizedContextValue:
|
57
|
+
getMemoizedContextValue: (localeValue: Locale) => Locale & {
|
58
58
|
exist?: boolean;
|
59
|
-
}
|
59
|
+
};
|
60
60
|
render(): JSX.Element;
|
61
61
|
}
|
@@ -2,45 +2,3 @@
|
|
2
2
|
/* stylelint-disable no-duplicate-selectors */
|
3
3
|
/* stylelint-disable */
|
4
4
|
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
|
5
|
-
html {
|
6
|
-
--ant-primary-color: #2c68ff;
|
7
|
-
--ant-primary-color-hover: #548aff;
|
8
|
-
--ant-primary-color-active: #1a4ad9;
|
9
|
-
--ant-primary-color-outline: rgba(44, 104, 255, 0.2);
|
10
|
-
--ant-primary-1: #f0f7ff;
|
11
|
-
--ant-primary-2: #cfe3ff;
|
12
|
-
--ant-primary-3: #a6c8ff;
|
13
|
-
--ant-primary-4: #7daaff;
|
14
|
-
--ant-primary-5: #548aff;
|
15
|
-
--ant-primary-6: #2c68ff;
|
16
|
-
--ant-primary-7: #1a4ad9;
|
17
|
-
--ant-primary-color-deprecated-pure: ;
|
18
|
-
--ant-primary-color-deprecated-l-35: #dfe8ff;
|
19
|
-
--ant-primary-color-deprecated-l-20: #92b1ff;
|
20
|
-
--ant-primary-color-deprecated-t-20: #5686ff;
|
21
|
-
--ant-primary-color-deprecated-t-50: #96b4ff;
|
22
|
-
--ant-primary-color-deprecated-f-12: rgba(44, 104, 255, 0.12);
|
23
|
-
--ant-primary-color-active-deprecated-f-30: rgba(240, 247, 255, 0.3);
|
24
|
-
--ant-primary-color-active-deprecated-d-02: #e6f2ff;
|
25
|
-
--ant-success-color: #36c626;
|
26
|
-
--ant-success-color-hover: #5cd44a;
|
27
|
-
--ant-success-color-active: #20a116;
|
28
|
-
--ant-success-color-outline: rgba(54, 198, 38, 0.2);
|
29
|
-
--ant-success-color-deprecated-bg: #f4fff0;
|
30
|
-
--ant-success-color-deprecated-border: #afed9f;
|
31
|
-
--ant-error-color: #ff5c57;
|
32
|
-
--ant-error-color-hover: #ff8880;
|
33
|
-
--ant-error-color-active: #d93f3f;
|
34
|
-
--ant-error-color-outline: rgba(255, 92, 87, 0.2);
|
35
|
-
--ant-error-color-deprecated-bg: #fff3f0;
|
36
|
-
--ant-error-color-deprecated-border: #ffd7d1;
|
37
|
-
--ant-warning-color: #ffab00;
|
38
|
-
--ant-warning-color-hover: #ffbf29;
|
39
|
-
--ant-warning-color-active: #d98900;
|
40
|
-
--ant-warning-color-outline: rgba(255, 171, 0, 0.2);
|
41
|
-
--ant-warning-color-deprecated-bg: #fffbe6;
|
42
|
-
--ant-warning-color-deprecated-border: #ffe07a;
|
43
|
-
--ant-info-color: #2c68ff;
|
44
|
-
--ant-info-color-deprecated-bg: #f0f7ff;
|
45
|
-
--ant-info-color-deprecated-border: #a6c8ff;
|
46
|
-
}
|
package/lib/mentions/index.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import * as React from 'react';
|
2
1
|
import type { MentionsProps as RcMentionsProps } from 'rc-mentions/lib/Mentions';
|
2
|
+
import * as React from 'react';
|
3
3
|
import type { InputStatus } from '../_util/statusUtils';
|
4
4
|
export declare const Option: React.FC<import("rc-mentions/lib/Option").OptionProps>;
|
5
5
|
export declare type MentionPlacement = 'top' | 'bottom';
|
package/lib/mentions/index.js
CHANGED
@@ -17,23 +17,23 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
17
17
|
|
18
18
|
var _tslib = require("tslib");
|
19
19
|
|
20
|
-
var React = _interopRequireWildcard(require("react"));
|
21
|
-
|
22
20
|
var _classnames = _interopRequireDefault(require("classnames"));
|
23
21
|
|
24
22
|
var _rcMentions = _interopRequireDefault(require("rc-mentions"));
|
25
23
|
|
26
24
|
var _ref = require("rc-util/lib/ref");
|
27
25
|
|
28
|
-
var
|
26
|
+
var React = _interopRequireWildcard(require("react"));
|
29
27
|
|
30
28
|
var _configProvider = require("../config-provider");
|
31
29
|
|
30
|
+
var _defaultRenderEmpty = _interopRequireDefault(require("../config-provider/defaultRenderEmpty"));
|
31
|
+
|
32
32
|
var _context = require("../form/context");
|
33
33
|
|
34
|
-
var
|
34
|
+
var _spin = _interopRequireDefault(require("../spin"));
|
35
35
|
|
36
|
-
var
|
36
|
+
var _statusUtils = require("../_util/statusUtils");
|
37
37
|
|
38
38
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
39
39
|
|
@@ -151,7 +151,11 @@ var InternalMentions = function InternalMentions(_a, ref) {
|
|
151
151
|
};
|
152
152
|
|
153
153
|
var Mentions = /*#__PURE__*/React.forwardRef(InternalMentions);
|
154
|
-
|
154
|
+
|
155
|
+
if (process.env.NODE_ENV !== 'production') {
|
156
|
+
Mentions.displayName = 'Mentions';
|
157
|
+
}
|
158
|
+
|
155
159
|
Mentions.Option = Option;
|
156
160
|
|
157
161
|
Mentions.getMentions = function () {
|
@@ -2,77 +2,35 @@
|
|
2
2
|
/* stylelint-disable no-duplicate-selectors */
|
3
3
|
/* stylelint-disable */
|
4
4
|
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
|
5
|
-
html {
|
6
|
-
--ant-primary-color: #2c68ff;
|
7
|
-
--ant-primary-color-hover: #548aff;
|
8
|
-
--ant-primary-color-active: #1a4ad9;
|
9
|
-
--ant-primary-color-outline: rgba(44, 104, 255, 0.2);
|
10
|
-
--ant-primary-1: #f0f7ff;
|
11
|
-
--ant-primary-2: #cfe3ff;
|
12
|
-
--ant-primary-3: #a6c8ff;
|
13
|
-
--ant-primary-4: #7daaff;
|
14
|
-
--ant-primary-5: #548aff;
|
15
|
-
--ant-primary-6: #2c68ff;
|
16
|
-
--ant-primary-7: #1a4ad9;
|
17
|
-
--ant-primary-color-deprecated-pure: ;
|
18
|
-
--ant-primary-color-deprecated-l-35: #dfe8ff;
|
19
|
-
--ant-primary-color-deprecated-l-20: #92b1ff;
|
20
|
-
--ant-primary-color-deprecated-t-20: #5686ff;
|
21
|
-
--ant-primary-color-deprecated-t-50: #96b4ff;
|
22
|
-
--ant-primary-color-deprecated-f-12: rgba(44, 104, 255, 0.12);
|
23
|
-
--ant-primary-color-active-deprecated-f-30: rgba(240, 247, 255, 0.3);
|
24
|
-
--ant-primary-color-active-deprecated-d-02: #e6f2ff;
|
25
|
-
--ant-success-color: #36c626;
|
26
|
-
--ant-success-color-hover: #5cd44a;
|
27
|
-
--ant-success-color-active: #20a116;
|
28
|
-
--ant-success-color-outline: rgba(54, 198, 38, 0.2);
|
29
|
-
--ant-success-color-deprecated-bg: #f4fff0;
|
30
|
-
--ant-success-color-deprecated-border: #afed9f;
|
31
|
-
--ant-error-color: #ff5c57;
|
32
|
-
--ant-error-color-hover: #ff8880;
|
33
|
-
--ant-error-color-active: #d93f3f;
|
34
|
-
--ant-error-color-outline: rgba(255, 92, 87, 0.2);
|
35
|
-
--ant-error-color-deprecated-bg: #fff3f0;
|
36
|
-
--ant-error-color-deprecated-border: #ffd7d1;
|
37
|
-
--ant-warning-color: #ffab00;
|
38
|
-
--ant-warning-color-hover: #ffbf29;
|
39
|
-
--ant-warning-color-active: #d98900;
|
40
|
-
--ant-warning-color-outline: rgba(255, 171, 0, 0.2);
|
41
|
-
--ant-warning-color-deprecated-bg: #fffbe6;
|
42
|
-
--ant-warning-color-deprecated-border: #ffe07a;
|
43
|
-
--ant-info-color: #2c68ff;
|
44
|
-
--ant-info-color-deprecated-bg: #f0f7ff;
|
45
|
-
--ant-info-color-deprecated-border: #a6c8ff;
|
46
|
-
}
|
47
5
|
.ant-mentions-status-error:not(.ant-mentions-disabled):not(.ant-mentions-borderless).ant-mentions,
|
48
6
|
.ant-mentions-status-error:not(.ant-mentions-disabled):not(.ant-mentions-borderless).ant-mentions:hover {
|
49
7
|
background: #fff;
|
50
|
-
border-color:
|
8
|
+
border-color: #f42d2d;
|
51
9
|
}
|
52
10
|
.ant-mentions-status-error:not(.ant-mentions-disabled):not(.ant-mentions-borderless).ant-mentions:focus,
|
53
11
|
.ant-mentions-status-error:not(.ant-mentions-disabled):not(.ant-mentions-borderless).ant-mentions-focused {
|
54
|
-
border-color:
|
55
|
-
box-shadow: 0 0 0 2px
|
12
|
+
border-color: #ff5c57;
|
13
|
+
box-shadow: 0 0 0 2px rgba(244, 45, 45, 0.2);
|
56
14
|
border-right-width: 1px;
|
57
15
|
outline: 0;
|
58
16
|
}
|
59
17
|
.ant-mentions-status-error .ant-input-prefix {
|
60
|
-
color:
|
18
|
+
color: #f42d2d;
|
61
19
|
}
|
62
20
|
.ant-mentions-status-warning:not(.ant-mentions-disabled):not(.ant-mentions-borderless).ant-mentions,
|
63
21
|
.ant-mentions-status-warning:not(.ant-mentions-disabled):not(.ant-mentions-borderless).ant-mentions:hover {
|
64
22
|
background: #fff;
|
65
|
-
border-color:
|
23
|
+
border-color: #ffab00;
|
66
24
|
}
|
67
25
|
.ant-mentions-status-warning:not(.ant-mentions-disabled):not(.ant-mentions-borderless).ant-mentions:focus,
|
68
26
|
.ant-mentions-status-warning:not(.ant-mentions-disabled):not(.ant-mentions-borderless).ant-mentions-focused {
|
69
|
-
border-color:
|
70
|
-
box-shadow: 0 0 0 2px
|
27
|
+
border-color: #ffbf29;
|
28
|
+
box-shadow: 0 0 0 2px rgba(255, 171, 0, 0.2);
|
71
29
|
border-right-width: 1px;
|
72
30
|
outline: 0;
|
73
31
|
}
|
74
32
|
.ant-mentions-status-warning .ant-input-prefix {
|
75
|
-
color:
|
33
|
+
color: #ffab00;
|
76
34
|
}
|
77
35
|
.ant-mentions {
|
78
36
|
box-sizing: border-box;
|
@@ -83,11 +41,11 @@ html {
|
|
83
41
|
width: 100%;
|
84
42
|
min-width: 0;
|
85
43
|
padding: 4px 11px;
|
86
|
-
color:
|
44
|
+
color: #4c4c4c;
|
87
45
|
font-size: 14px;
|
88
46
|
background-color: #fff;
|
89
47
|
background-image: none;
|
90
|
-
border: 1px solid #
|
48
|
+
border: 1px solid #d2d2d2;
|
91
49
|
border-radius: 4px;
|
92
50
|
transition: all 0.3s;
|
93
51
|
/* stylelint-disable-next-line selector-no-vendor-prefix */
|
@@ -125,38 +83,38 @@ html {
|
|
125
83
|
text-overflow: ellipsis;
|
126
84
|
}
|
127
85
|
.ant-mentions:hover {
|
128
|
-
border-color:
|
86
|
+
border-color: #548aff;
|
129
87
|
border-right-width: 1px;
|
130
88
|
}
|
131
89
|
.ant-mentions:focus,
|
132
90
|
.ant-mentions-focused {
|
133
|
-
border-color:
|
134
|
-
box-shadow: 0 0 0 2px
|
91
|
+
border-color: #548aff;
|
92
|
+
box-shadow: 0 0 0 2px rgba(44, 104, 255, 0.2);
|
135
93
|
border-right-width: 1px;
|
136
94
|
outline: 0;
|
137
95
|
}
|
138
96
|
.ant-mentions-disabled {
|
139
|
-
color:
|
140
|
-
background-color: #
|
141
|
-
border-color: #
|
97
|
+
color: #a9a9a9;
|
98
|
+
background-color: #f1f1f1;
|
99
|
+
border-color: #d2d2d2;
|
142
100
|
box-shadow: none;
|
143
101
|
cursor: not-allowed;
|
144
102
|
opacity: 1;
|
145
103
|
}
|
146
104
|
.ant-mentions-disabled:hover {
|
147
|
-
border-color: #
|
105
|
+
border-color: #d2d2d2;
|
148
106
|
border-right-width: 1px;
|
149
107
|
}
|
150
108
|
.ant-mentions[disabled] {
|
151
|
-
color:
|
152
|
-
background-color: #
|
153
|
-
border-color: #
|
109
|
+
color: #a9a9a9;
|
110
|
+
background-color: #f1f1f1;
|
111
|
+
border-color: #d2d2d2;
|
154
112
|
box-shadow: none;
|
155
113
|
cursor: not-allowed;
|
156
114
|
opacity: 1;
|
157
115
|
}
|
158
116
|
.ant-mentions[disabled]:hover {
|
159
|
-
border-color: #
|
117
|
+
border-color: #d2d2d2;
|
160
118
|
border-right-width: 1px;
|
161
119
|
}
|
162
120
|
.ant-mentions-borderless,
|
@@ -185,20 +143,20 @@ textarea.ant-mentions {
|
|
185
143
|
padding: 0px 7px;
|
186
144
|
}
|
187
145
|
.ant-mentions-disabled > textarea {
|
188
|
-
color:
|
189
|
-
background-color: #
|
190
|
-
border-color: #
|
146
|
+
color: #a9a9a9;
|
147
|
+
background-color: #f1f1f1;
|
148
|
+
border-color: #d2d2d2;
|
191
149
|
box-shadow: none;
|
192
150
|
cursor: not-allowed;
|
193
151
|
opacity: 1;
|
194
152
|
}
|
195
153
|
.ant-mentions-disabled > textarea:hover {
|
196
|
-
border-color: #
|
154
|
+
border-color: #d2d2d2;
|
197
155
|
border-right-width: 1px;
|
198
156
|
}
|
199
157
|
.ant-mentions-focused {
|
200
|
-
border-color:
|
201
|
-
box-shadow: 0 0 0 2px
|
158
|
+
border-color: #548aff;
|
159
|
+
box-shadow: 0 0 0 2px rgba(44, 104, 255, 0.2);
|
202
160
|
border-right-width: 1px;
|
203
161
|
outline: 0;
|
204
162
|
}
|
@@ -279,7 +237,7 @@ textarea.ant-mentions {
|
|
279
237
|
.ant-mentions-dropdown {
|
280
238
|
margin: 0;
|
281
239
|
padding: 0;
|
282
|
-
color:
|
240
|
+
color: #4c4c4c;
|
283
241
|
font-variant: tabular-nums;
|
284
242
|
line-height: 1.5715;
|
285
243
|
list-style: none;
|
@@ -313,7 +271,7 @@ textarea.ant-mentions {
|
|
313
271
|
min-width: 100px;
|
314
272
|
padding: 5px 12px;
|
315
273
|
overflow: hidden;
|
316
|
-
color:
|
274
|
+
color: #4c4c4c;
|
317
275
|
font-weight: normal;
|
318
276
|
line-height: 1.5715;
|
319
277
|
white-space: nowrap;
|
@@ -331,16 +289,16 @@ textarea.ant-mentions {
|
|
331
289
|
border-radius: 0 0 4px 4px;
|
332
290
|
}
|
333
291
|
.ant-mentions-dropdown-menu-item-disabled {
|
334
|
-
color:
|
292
|
+
color: #a9a9a9;
|
335
293
|
cursor: not-allowed;
|
336
294
|
}
|
337
295
|
.ant-mentions-dropdown-menu-item-disabled:hover {
|
338
|
-
color:
|
296
|
+
color: #a9a9a9;
|
339
297
|
background-color: #fff;
|
340
298
|
cursor: not-allowed;
|
341
299
|
}
|
342
300
|
.ant-mentions-dropdown-menu-item-selected {
|
343
|
-
color:
|
301
|
+
color: #4c4c4c;
|
344
302
|
font-weight: 600;
|
345
303
|
background-color: #fafafa;
|
346
304
|
}
|