@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
@@ -32,9 +32,7 @@
|
|
32
32
|
@success-color-active: color(~`colorPalette('@{success-color}', 7) `);
|
33
33
|
@success-color-outline: fade(@success-color, @outline-fade);
|
34
34
|
@success-color-deprecated-bg: color(~`colorPalette('@{success-color}', 1) `);
|
35
|
-
@success-color-deprecated-border: color(
|
36
|
-
~`colorPalette('@{success-color}', 3) `
|
37
|
-
);
|
35
|
+
@success-color-deprecated-border: color(~`colorPalette('@{success-color}', 3) `);
|
38
36
|
|
39
37
|
// >>> Warning
|
40
38
|
@warning-color: @gold-6;
|
@@ -42,9 +40,7 @@
|
|
42
40
|
@warning-color-active: color(~`colorPalette('@{warning-color}', 7) `);
|
43
41
|
@warning-color-outline: fade(@warning-color, @outline-fade);
|
44
42
|
@warning-color-deprecated-bg: color(~`colorPalette('@{warning-color}', 1) `);
|
45
|
-
@warning-color-deprecated-border: color(
|
46
|
-
~`colorPalette('@{warning-color}', 3) `
|
47
|
-
);
|
43
|
+
@warning-color-deprecated-border: color(~`colorPalette('@{warning-color}', 3) `);
|
48
44
|
|
49
45
|
// >>> Error
|
50
46
|
@error-color: @red-5;
|
@@ -61,21 +57,15 @@
|
|
61
57
|
|
62
58
|
// Color used by default to control hover and active backgrounds and for
|
63
59
|
// alert info backgrounds.
|
64
|
-
@primary-1: color(
|
65
|
-
|
66
|
-
); // replace tint(@primary-color, 90%)
|
67
|
-
@primary-2: color(
|
68
|
-
~`colorPalette('@{primary-color}', 2) `
|
69
|
-
); // replace tint(@primary-color, 80%)
|
60
|
+
@primary-1: color(~`colorPalette('@{primary-color}', 1) `); // replace tint(@primary-color, 90%)
|
61
|
+
@primary-2: color(~`colorPalette('@{primary-color}', 2) `); // replace tint(@primary-color, 80%)
|
70
62
|
@primary-3: color(~`colorPalette('@{primary-color}', 3) `); // unused
|
71
63
|
@primary-4: color(~`colorPalette('@{primary-color}', 4) `); // unused
|
72
64
|
@primary-5: color(
|
73
65
|
~`colorPalette('@{primary-color}', 5) `
|
74
66
|
); // color used to control the text color in many active and hover states, replace tint(@primary-color, 20%)
|
75
67
|
@primary-6: @primary-color; // color used to control the text color of active buttons, don't use, use @primary-color
|
76
|
-
@primary-7: color(
|
77
|
-
~`colorPalette('@{primary-color}', 7) `
|
78
|
-
); // replace shade(@primary-color, 5%)
|
68
|
+
@primary-7: color(~`colorPalette('@{primary-color}', 7) `); // replace shade(@primary-color, 5%)
|
79
69
|
@primary-8: color(~`colorPalette('@{primary-color}', 8) `); // unused
|
80
70
|
@primary-9: color(~`colorPalette('@{primary-color}', 9) `); // unused
|
81
71
|
@primary-10: color(~`colorPalette('@{primary-color}', 10) `); // unused
|
@@ -90,11 +80,10 @@
|
|
90
80
|
// Popover background color
|
91
81
|
@popover-background: @component-background;
|
92
82
|
@popover-customize-border-color: @border-color-split;
|
93
|
-
@font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
|
94
|
-
'
|
95
|
-
'
|
96
|
-
@code-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier,
|
97
|
-
monospace;
|
83
|
+
@font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
84
|
+
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
85
|
+
'Noto Color Emoji';
|
86
|
+
@code-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
|
98
87
|
@text-color: fade(@black, 85%);
|
99
88
|
@text-color-secondary: fade(@black, 45%);
|
100
89
|
@text-color-inverse: @white;
|
@@ -116,7 +105,7 @@
|
|
116
105
|
@heading-5-size: ceil(@font-size-base * 1.14);
|
117
106
|
// https://github.com/ant-design/ant-design/issues/20210
|
118
107
|
@line-height-base: 1.5715;
|
119
|
-
@border-radius-base:
|
108
|
+
@border-radius-base: 2px;
|
120
109
|
@border-radius-sm: @border-radius-base;
|
121
110
|
|
122
111
|
// control border
|
@@ -194,11 +183,7 @@
|
|
194
183
|
@outline-color: @primary-color; // No use anymore
|
195
184
|
@outline-fade: 20%;
|
196
185
|
|
197
|
-
@background-color-light: hsv(
|
198
|
-
0,
|
199
|
-
0,
|
200
|
-
98%
|
201
|
-
); // background of header and selected item
|
186
|
+
@background-color-light: hsv(0, 0, 98%); // background of header and selected item
|
202
187
|
@background-color-base: hsv(0, 0, 96%); // Default grey background color
|
203
188
|
|
204
189
|
// Disabled states
|
@@ -211,14 +196,14 @@
|
|
211
196
|
@shadow-color: rgba(0, 0, 0, 0.15);
|
212
197
|
@shadow-color-inverse: @component-background;
|
213
198
|
@box-shadow-base: @shadow-2;
|
214
|
-
@shadow-1-up: 0 -6px 16px -8px rgba(0, 0, 0, 0.08),
|
215
|
-
0 -
|
216
|
-
@shadow-1-down: 0 6px 16px -8px rgba(0, 0, 0, 0.08),
|
217
|
-
0
|
218
|
-
@shadow-1-left: -6px 0 16px -8px rgba(0, 0, 0, 0.08),
|
219
|
-
-
|
220
|
-
@shadow-1-right: 6px 0 16px -8px rgba(0, 0, 0, 0.08),
|
221
|
-
|
199
|
+
@shadow-1-up: 0 -6px 16px -8px rgba(0, 0, 0, 0.08), 0 -9px 28px 0 rgba(0, 0, 0, 0.05),
|
200
|
+
0 -12px 48px 16px rgba(0, 0, 0, 0.03);
|
201
|
+
@shadow-1-down: 0 6px 16px -8px rgba(0, 0, 0, 0.08), 0 9px 28px 0 rgba(0, 0, 0, 0.05),
|
202
|
+
0 12px 48px 16px rgba(0, 0, 0, 0.03);
|
203
|
+
@shadow-1-left: -6px 0 16px -8px rgba(0, 0, 0, 0.08), -9px 0 28px 0 rgba(0, 0, 0, 0.05),
|
204
|
+
-12px 0 48px 16px rgba(0, 0, 0, 0.03);
|
205
|
+
@shadow-1-right: 6px 0 16px -8px rgba(0, 0, 0, 0.08), 9px 0 28px 0 rgba(0, 0, 0, 0.05),
|
206
|
+
12px 0 48px 16px rgba(0, 0, 0, 0.03);
|
222
207
|
@shadow-2: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
223
208
|
0 9px 28px 8px rgba(0, 0, 0, 0.05);
|
224
209
|
|
@@ -448,18 +433,13 @@
|
|
448
433
|
@input-padding-horizontal-sm: @control-padding-horizontal-sm - 1px;
|
449
434
|
@input-padding-horizontal-lg: @input-padding-horizontal;
|
450
435
|
@input-padding-vertical-base: max(
|
451
|
-
(
|
452
|
-
|
453
|
-
((@input-height-base - @font-size-base * @line-height-base) / 2) * 10
|
454
|
-
) / 10
|
455
|
-
) - @border-width-base,
|
436
|
+
(round(((@input-height-base - @font-size-base * @line-height-base) / 2) * 10) / 10) -
|
437
|
+
@border-width-base,
|
456
438
|
3px
|
457
439
|
);
|
458
440
|
@input-padding-vertical-sm: max(
|
459
|
-
(
|
460
|
-
|
461
|
-
10
|
462
|
-
) - @border-width-base,
|
441
|
+
(round(((@input-height-sm - @font-size-base * @line-height-base) / 2) * 10) / 10) -
|
442
|
+
@border-width-base,
|
463
443
|
0
|
464
444
|
);
|
465
445
|
@input-padding-vertical-lg: (
|
@@ -504,8 +484,7 @@
|
|
504
484
|
@select-selection-item-bg: @background-color-base;
|
505
485
|
@select-selection-item-border-color: @border-color-split;
|
506
486
|
@select-single-item-height-lg: 40px;
|
507
|
-
@select-multiple-item-height: @input-height-base - @input-padding-vertical-base *
|
508
|
-
2; // Normal 24px
|
487
|
+
@select-multiple-item-height: @input-height-base - @input-padding-vertical-base * 2; // Normal 24px
|
509
488
|
@select-multiple-item-height-lg: 32px;
|
510
489
|
@select-multiple-item-spacing-half: ceil((@input-padding-vertical-base / 2));
|
511
490
|
@select-multiple-disabled-background: @input-disabled-bg;
|
@@ -576,21 +555,21 @@
|
|
576
555
|
@modal-header-padding-horizontal: @padding-lg;
|
577
556
|
@modal-body-padding: @padding-lg;
|
578
557
|
@modal-header-bg: @component-background;
|
579
|
-
@modal-header-padding:
|
558
|
+
@modal-header-padding: @modal-header-padding-vertical @modal-header-padding-horizontal;
|
580
559
|
@modal-header-border-width: @border-width-base;
|
581
560
|
@modal-header-border-style: @border-style-base;
|
582
561
|
@modal-header-title-line-height: 22px;
|
583
562
|
@modal-header-title-font-size: @font-size-lg;
|
584
563
|
@modal-header-border-color-split: @border-color-split;
|
585
|
-
@modal-header-close-size:
|
564
|
+
@modal-header-close-size: 56px;
|
586
565
|
@modal-content-bg: @component-background;
|
587
566
|
@modal-heading-color: @heading-color;
|
588
567
|
@modal-close-color: @text-color-secondary;
|
589
568
|
@modal-footer-bg: transparent;
|
590
569
|
@modal-footer-border-color-split: @border-color-split;
|
591
570
|
@modal-footer-border-style: @border-style-base;
|
592
|
-
@modal-footer-padding-vertical:
|
593
|
-
@modal-footer-padding-horizontal:
|
571
|
+
@modal-footer-padding-vertical: 10px;
|
572
|
+
@modal-footer-padding-horizontal: 16px;
|
594
573
|
@modal-footer-border-width: @border-width-base;
|
595
574
|
@modal-mask-bg: fade(@black, 45%);
|
596
575
|
@modal-confirm-body-padding: 32px 32px 24px;
|
@@ -772,8 +751,8 @@
|
|
772
751
|
@card-actions-li-margin: 12px 0;
|
773
752
|
@card-skeleton-bg: #cfd8dc;
|
774
753
|
@card-background: @component-background;
|
775
|
-
@card-shadow: 0 1px 2px -2px rgba(0, 0, 0, 0.16),
|
776
|
-
0
|
754
|
+
@card-shadow: 0 1px 2px -2px rgba(0, 0, 0, 0.16), 0 3px 6px 0 rgba(0, 0, 0, 0.12),
|
755
|
+
0 5px 12px 4px rgba(0, 0, 0, 0.09);
|
777
756
|
@card-radius: @border-radius-base;
|
778
757
|
@card-head-tabs-margin-bottom: -17px;
|
779
758
|
@card-head-extra-color: @text-color;
|
@@ -866,8 +845,8 @@
|
|
866
845
|
@pagination-item-size: @height-base;
|
867
846
|
@pagination-item-size-sm: 24px;
|
868
847
|
@pagination-font-family: @font-family;
|
869
|
-
@pagination-font-weight-active:
|
870
|
-
@pagination-item-bg-active: @
|
848
|
+
@pagination-font-weight-active: 500;
|
849
|
+
@pagination-item-bg-active: @component-background;
|
871
850
|
@pagination-item-link-bg: @component-background;
|
872
851
|
@pagination-item-disabled-color-active: @disabled-color;
|
873
852
|
@pagination-item-disabled-bg-active: @disabled-active-bg;
|
@@ -989,10 +968,8 @@
|
|
989
968
|
@alert-with-description-no-icon-padding-vertical: @padding-md - 1px;
|
990
969
|
@alert-with-description-padding-vertical: @padding-md - 1px;
|
991
970
|
@alert-with-description-padding: @alert-with-description-padding-vertical 15px
|
992
|
-
@alert-with-description-no-icon-padding-vertical
|
993
|
-
|
994
|
-
@alert-icon-top: 8px + @font-size-base * (@line-height-base / 2) -
|
995
|
-
(@font-size-base / 2);
|
971
|
+
@alert-with-description-no-icon-padding-vertical @alert-with-description-icon-size;
|
972
|
+
@alert-icon-top: 8px + @font-size-base * (@line-height-base / 2) - (@font-size-base / 2);
|
996
973
|
@alert-with-description-icon-size: 24px;
|
997
974
|
|
998
975
|
// List
|
@@ -1092,10 +1069,7 @@
|
|
1092
1069
|
@image-mask-font-size: 16px;
|
1093
1070
|
@image-preview-operation-size: 18px;
|
1094
1071
|
@image-preview-operation-color: @text-color-dark;
|
1095
|
-
@image-preview-operation-disabled-color: fade(
|
1096
|
-
@image-preview-operation-color,
|
1097
|
-
25%
|
1098
|
-
);
|
1072
|
+
@image-preview-operation-disabled-color: fade(@image-preview-operation-color, 25%);
|
1099
1073
|
|
1100
1074
|
// Segmented
|
1101
1075
|
// ---
|
@@ -1,9 +1,8 @@
|
|
1
1
|
// Default using variable as entry to support site variable version
|
2
2
|
// This will be replaced in webpack bundle
|
3
|
-
@root-entry-name:
|
3
|
+
@root-entry-name: default;
|
4
4
|
|
5
5
|
// @import './default.less';
|
6
6
|
// @import './variable.less';
|
7
7
|
@import './@{root-entry-name}.less';
|
8
|
-
|
9
|
-
// @import '../theme.less';
|
8
|
+
@import '../theme.less';
|
@@ -14,12 +14,8 @@
|
|
14
14
|
|
15
15
|
// ========= Primary Color =========
|
16
16
|
--@{ant-prefix}-primary-color: @base-primary;
|
17
|
-
--@{ant-prefix}-primary-color-hover: color(
|
18
|
-
|
19
|
-
);
|
20
|
-
--@{ant-prefix}-primary-color-active: color(
|
21
|
-
~`colorPalette('@{base-primary}', 7) `
|
22
|
-
);
|
17
|
+
--@{ant-prefix}-primary-color-hover: color(~`colorPalette('@{base-primary}', 5) `);
|
18
|
+
--@{ant-prefix}-primary-color-active: color(~`colorPalette('@{base-primary}', 7) `);
|
23
19
|
--@{ant-prefix}-primary-color-outline: fade(@base-primary, @outline-fade);
|
24
20
|
|
25
21
|
// Legacy
|
@@ -40,28 +36,16 @@
|
|
40
36
|
--@{ant-prefix}-primary-color-deprecated-t-20: tint(@base-primary, 20%);
|
41
37
|
--@{ant-prefix}-primary-color-deprecated-t-50: tint(@base-primary, 50%);
|
42
38
|
--@{ant-prefix}-primary-color-deprecated-f-12: fade(@base-primary, 12%);
|
43
|
-
--@{ant-prefix}-primary-color-active-deprecated-f-30: fade(
|
44
|
-
|
45
|
-
30%
|
46
|
-
);
|
47
|
-
--@{ant-prefix}-primary-color-active-deprecated-d-02: darken(
|
48
|
-
@legacy-primary-1,
|
49
|
-
2%
|
50
|
-
);
|
39
|
+
--@{ant-prefix}-primary-color-active-deprecated-f-30: fade(@legacy-primary-1, 30%);
|
40
|
+
--@{ant-prefix}-primary-color-active-deprecated-d-02: darken(@legacy-primary-1, 2%);
|
51
41
|
|
52
42
|
// ========= Success Color =========
|
53
43
|
--@{ant-prefix}-success-color: @green-6;
|
54
44
|
--@{ant-prefix}-success-color-hover: color(~`colorPalette('@{green-6}', 5) `);
|
55
|
-
--@{ant-prefix}-success-color-active: color(
|
56
|
-
~`colorPalette('@{green-6}', 7) `
|
57
|
-
);
|
45
|
+
--@{ant-prefix}-success-color-active: color(~`colorPalette('@{green-6}', 7) `);
|
58
46
|
--@{ant-prefix}-success-color-outline: fade(@green-6, @outline-fade);
|
59
47
|
--@{ant-prefix}-success-color-deprecated-bg: ~`colorPalette('@{green-6}', 1) `;
|
60
|
-
--@{ant-prefix}-success-color-deprecated-border: ~`colorPalette(
|
61
|
-
'@{green-6}',
|
62
|
-
3
|
63
|
-
)
|
64
|
-
`;
|
48
|
+
--@{ant-prefix}-success-color-deprecated-border: ~`colorPalette('@{green-6}', 3) `;
|
65
49
|
|
66
50
|
// ========== Error Color ==========
|
67
51
|
--@{ant-prefix}-error-color: @red-5;
|
@@ -77,21 +61,12 @@
|
|
77
61
|
--@{ant-prefix}-warning-color-active: color(~`colorPalette('@{gold-6}', 7) `);
|
78
62
|
--@{ant-prefix}-warning-color-outline: fade(@gold-6, @outline-fade);
|
79
63
|
--@{ant-prefix}-warning-color-deprecated-bg: ~`colorPalette('@{gold-6}', 1) `;
|
80
|
-
--@{ant-prefix}-warning-color-deprecated-border: ~`colorPalette(
|
81
|
-
'@{gold-6}',
|
82
|
-
3
|
83
|
-
)
|
84
|
-
`;
|
64
|
+
--@{ant-prefix}-warning-color-deprecated-border: ~`colorPalette('@{gold-6}', 3) `;
|
85
65
|
|
86
66
|
// ========== Info Color ===========
|
87
67
|
--@{ant-prefix}-info-color: @base-primary;
|
88
|
-
--@{ant-prefix}-info-color-deprecated-bg: ~`colorPalette('@{base-primary}', 1)
|
89
|
-
|
90
|
-
--@{ant-prefix}-info-color-deprecated-border: ~`colorPalette(
|
91
|
-
'@{base-primary}',
|
92
|
-
3
|
93
|
-
)
|
94
|
-
`;
|
68
|
+
--@{ant-prefix}-info-color-deprecated-bg: ~`colorPalette('@{base-primary}', 1) `;
|
69
|
+
--@{ant-prefix}-info-color-deprecated-border: ~`colorPalette('@{base-primary}', 3) `;
|
95
70
|
}
|
96
71
|
|
97
72
|
// -------- Colors -----------
|
@@ -160,11 +135,10 @@
|
|
160
135
|
// Popover background color
|
161
136
|
@popover-background: @component-background;
|
162
137
|
@popover-customize-border-color: @border-color-split;
|
163
|
-
@font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
|
164
|
-
'
|
165
|
-
'
|
166
|
-
@code-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier,
|
167
|
-
monospace;
|
138
|
+
@font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
139
|
+
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
140
|
+
'Noto Color Emoji';
|
141
|
+
@code-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
|
168
142
|
@text-color: fade(@black, 85%);
|
169
143
|
@text-color-secondary: fade(@black, 45%);
|
170
144
|
@text-color-inverse: @white;
|
@@ -186,7 +160,7 @@
|
|
186
160
|
@heading-5-size: ceil(@font-size-base * 1.14);
|
187
161
|
// https://github.com/ant-design/ant-design/issues/20210
|
188
162
|
@line-height-base: 1.5715;
|
189
|
-
@border-radius-base:
|
163
|
+
@border-radius-base: 2px;
|
190
164
|
@border-radius-sm: @border-radius-base;
|
191
165
|
|
192
166
|
// control border
|
@@ -264,11 +238,7 @@
|
|
264
238
|
@outline-color: @primary-color; // No use anymore
|
265
239
|
@outline-fade: 20%;
|
266
240
|
|
267
|
-
@background-color-light: hsv(
|
268
|
-
0,
|
269
|
-
0,
|
270
|
-
98%
|
271
|
-
); // background of header and selected item
|
241
|
+
@background-color-light: hsv(0, 0, 98%); // background of header and selected item
|
272
242
|
@background-color-base: hsv(0, 0, 96%); // Default grey background color
|
273
243
|
|
274
244
|
// Disabled states
|
@@ -281,14 +251,14 @@
|
|
281
251
|
@shadow-color: rgba(0, 0, 0, 0.15);
|
282
252
|
@shadow-color-inverse: @component-background;
|
283
253
|
@box-shadow-base: @shadow-2;
|
284
|
-
@shadow-1-up: 0 -6px 16px -8px rgba(0, 0, 0, 0.08),
|
285
|
-
0 -
|
286
|
-
@shadow-1-down: 0 6px 16px -8px rgba(0, 0, 0, 0.08),
|
287
|
-
0
|
288
|
-
@shadow-1-left: -6px 0 16px -8px rgba(0, 0, 0, 0.08),
|
289
|
-
-
|
290
|
-
@shadow-1-right: 6px 0 16px -8px rgba(0, 0, 0, 0.08),
|
291
|
-
|
254
|
+
@shadow-1-up: 0 -6px 16px -8px rgba(0, 0, 0, 0.08), 0 -9px 28px 0 rgba(0, 0, 0, 0.05),
|
255
|
+
0 -12px 48px 16px rgba(0, 0, 0, 0.03);
|
256
|
+
@shadow-1-down: 0 6px 16px -8px rgba(0, 0, 0, 0.08), 0 9px 28px 0 rgba(0, 0, 0, 0.05),
|
257
|
+
0 12px 48px 16px rgba(0, 0, 0, 0.03);
|
258
|
+
@shadow-1-left: -6px 0 16px -8px rgba(0, 0, 0, 0.08), -9px 0 28px 0 rgba(0, 0, 0, 0.05),
|
259
|
+
-12px 0 48px 16px rgba(0, 0, 0, 0.03);
|
260
|
+
@shadow-1-right: 6px 0 16px -8px rgba(0, 0, 0, 0.08), 9px 0 28px 0 rgba(0, 0, 0, 0.05),
|
261
|
+
12px 0 48px 16px rgba(0, 0, 0, 0.03);
|
292
262
|
@shadow-2: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
293
263
|
0 9px 28px 8px rgba(0, 0, 0, 0.05);
|
294
264
|
|
@@ -518,18 +488,13 @@
|
|
518
488
|
@input-padding-horizontal-sm: @control-padding-horizontal-sm - 1px;
|
519
489
|
@input-padding-horizontal-lg: @input-padding-horizontal;
|
520
490
|
@input-padding-vertical-base: max(
|
521
|
-
(
|
522
|
-
|
523
|
-
((@input-height-base - @font-size-base * @line-height-base) / 2) * 10
|
524
|
-
) / 10
|
525
|
-
) - @border-width-base,
|
491
|
+
(round(((@input-height-base - @font-size-base * @line-height-base) / 2) * 10) / 10) -
|
492
|
+
@border-width-base,
|
526
493
|
3px
|
527
494
|
);
|
528
495
|
@input-padding-vertical-sm: max(
|
529
|
-
(
|
530
|
-
|
531
|
-
10
|
532
|
-
) - @border-width-base,
|
496
|
+
(round(((@input-height-sm - @font-size-base * @line-height-base) / 2) * 10) / 10) -
|
497
|
+
@border-width-base,
|
533
498
|
0
|
534
499
|
);
|
535
500
|
@input-padding-vertical-lg: (
|
@@ -574,8 +539,7 @@
|
|
574
539
|
@select-selection-item-bg: @background-color-base;
|
575
540
|
@select-selection-item-border-color: @border-color-split;
|
576
541
|
@select-single-item-height-lg: 40px;
|
577
|
-
@select-multiple-item-height: @input-height-base - @input-padding-vertical-base *
|
578
|
-
2; // Normal 24px
|
542
|
+
@select-multiple-item-height: @input-height-base - @input-padding-vertical-base * 2; // Normal 24px
|
579
543
|
@select-multiple-item-height-lg: 32px;
|
580
544
|
@select-multiple-item-spacing-half: ceil((@input-padding-vertical-base / 2));
|
581
545
|
@select-multiple-disabled-background: @input-disabled-bg;
|
@@ -646,21 +610,21 @@
|
|
646
610
|
@modal-header-padding-horizontal: @padding-lg;
|
647
611
|
@modal-body-padding: @padding-lg;
|
648
612
|
@modal-header-bg: @component-background;
|
649
|
-
@modal-header-padding:
|
613
|
+
@modal-header-padding: @modal-header-padding-vertical @modal-header-padding-horizontal;
|
650
614
|
@modal-header-border-width: @border-width-base;
|
651
615
|
@modal-header-border-style: @border-style-base;
|
652
616
|
@modal-header-title-line-height: 22px;
|
653
617
|
@modal-header-title-font-size: @font-size-lg;
|
654
618
|
@modal-header-border-color-split: @border-color-split;
|
655
|
-
@modal-header-close-size:
|
619
|
+
@modal-header-close-size: 56px;
|
656
620
|
@modal-content-bg: @component-background;
|
657
621
|
@modal-heading-color: @heading-color;
|
658
622
|
@modal-close-color: @text-color-secondary;
|
659
623
|
@modal-footer-bg: transparent;
|
660
624
|
@modal-footer-border-color-split: @border-color-split;
|
661
625
|
@modal-footer-border-style: @border-style-base;
|
662
|
-
@modal-footer-padding-vertical:
|
663
|
-
@modal-footer-padding-horizontal:
|
626
|
+
@modal-footer-padding-vertical: 10px;
|
627
|
+
@modal-footer-padding-horizontal: 16px;
|
664
628
|
@modal-footer-border-width: @border-width-base;
|
665
629
|
@modal-mask-bg: fade(@black, 45%);
|
666
630
|
@modal-confirm-body-padding: 32px 32px 24px;
|
@@ -842,8 +806,8 @@
|
|
842
806
|
@card-actions-li-margin: 12px 0;
|
843
807
|
@card-skeleton-bg: #cfd8dc;
|
844
808
|
@card-background: @component-background;
|
845
|
-
@card-shadow: 0 1px 2px -2px rgba(0, 0, 0, 0.16),
|
846
|
-
0
|
809
|
+
@card-shadow: 0 1px 2px -2px rgba(0, 0, 0, 0.16), 0 3px 6px 0 rgba(0, 0, 0, 0.12),
|
810
|
+
0 5px 12px 4px rgba(0, 0, 0, 0.09);
|
847
811
|
@card-radius: @border-radius-base;
|
848
812
|
@card-head-tabs-margin-bottom: -17px;
|
849
813
|
@card-head-extra-color: @text-color;
|
@@ -936,8 +900,8 @@
|
|
936
900
|
@pagination-item-size: @height-base;
|
937
901
|
@pagination-item-size-sm: 24px;
|
938
902
|
@pagination-font-family: @font-family;
|
939
|
-
@pagination-font-weight-active:
|
940
|
-
@pagination-item-bg-active: @
|
903
|
+
@pagination-font-weight-active: 500;
|
904
|
+
@pagination-item-bg-active: @component-background;
|
941
905
|
@pagination-item-link-bg: @component-background;
|
942
906
|
@pagination-item-disabled-color-active: @disabled-color;
|
943
907
|
@pagination-item-disabled-bg-active: @disabled-active-bg;
|
@@ -1059,10 +1023,8 @@
|
|
1059
1023
|
@alert-with-description-no-icon-padding-vertical: @padding-md - 1px;
|
1060
1024
|
@alert-with-description-padding-vertical: @padding-md - 1px;
|
1061
1025
|
@alert-with-description-padding: @alert-with-description-padding-vertical 15px
|
1062
|
-
@alert-with-description-no-icon-padding-vertical
|
1063
|
-
|
1064
|
-
@alert-icon-top: 8px + @font-size-base * (@line-height-base / 2) -
|
1065
|
-
(@font-size-base / 2);
|
1026
|
+
@alert-with-description-no-icon-padding-vertical @alert-with-description-icon-size;
|
1027
|
+
@alert-icon-top: 8px + @font-size-base * (@line-height-base / 2) - (@font-size-base / 2);
|
1066
1028
|
@alert-with-description-icon-size: 24px;
|
1067
1029
|
|
1068
1030
|
// List
|
@@ -1162,10 +1124,7 @@
|
|
1162
1124
|
@image-mask-font-size: 16px;
|
1163
1125
|
@image-preview-operation-size: 18px;
|
1164
1126
|
@image-preview-operation-color: @text-color-dark;
|
1165
|
-
@image-preview-operation-disabled-color: fade(
|
1166
|
-
@image-preview-operation-color,
|
1167
|
-
25%
|
1168
|
-
);
|
1127
|
+
@image-preview-operation-disabled-color: fade(@image-preview-operation-color, 25%);
|
1169
1128
|
|
1170
1129
|
// Segmented
|
1171
1130
|
// ---
|
package/lib/switch/index.js
CHANGED
@@ -15,24 +15,24 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
15
15
|
|
16
16
|
var _tslib = require("tslib");
|
17
17
|
|
18
|
-
var
|
19
|
-
|
20
|
-
var _rcSwitch = _interopRequireDefault(require("rc-switch"));
|
18
|
+
var _LoadingOutlined = _interopRequireDefault(require("@ant-design/icons/LoadingOutlined"));
|
21
19
|
|
22
20
|
var _classnames = _interopRequireDefault(require("classnames"));
|
23
21
|
|
24
|
-
var
|
22
|
+
var _rcSwitch = _interopRequireDefault(require("rc-switch"));
|
25
23
|
|
26
|
-
var
|
24
|
+
var React = _interopRequireWildcard(require("react"));
|
27
25
|
|
28
26
|
var _configProvider = require("../config-provider");
|
29
27
|
|
30
|
-
var _SizeContext = _interopRequireDefault(require("../config-provider/SizeContext"));
|
31
|
-
|
32
28
|
var _DisabledContext = _interopRequireDefault(require("../config-provider/DisabledContext"));
|
33
29
|
|
30
|
+
var _SizeContext = _interopRequireDefault(require("../config-provider/SizeContext"));
|
31
|
+
|
34
32
|
var _warning = _interopRequireDefault(require("../_util/warning"));
|
35
33
|
|
34
|
+
var _wave = _interopRequireDefault(require("../_util/wave"));
|
35
|
+
|
36
36
|
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); }
|
37
37
|
|
38
38
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
@@ -76,6 +76,10 @@ var Switch = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
76
76
|
})));
|
77
77
|
});
|
78
78
|
Switch.__ANT_SWITCH = true;
|
79
|
-
|
79
|
+
|
80
|
+
if (process.env.NODE_ENV !== 'production') {
|
81
|
+
Switch.displayName = 'Switch';
|
82
|
+
}
|
83
|
+
|
80
84
|
var _default = Switch;
|
81
85
|
exports["default"] = _default;
|
@@ -2,52 +2,10 @@
|
|
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-switch {
|
48
6
|
margin: 0;
|
49
7
|
padding: 0;
|
50
|
-
color:
|
8
|
+
color: #4c4c4c;
|
51
9
|
font-size: 14px;
|
52
10
|
font-variant: tabular-nums;
|
53
11
|
line-height: 1.5715;
|
@@ -60,7 +18,7 @@ html {
|
|
60
18
|
height: 22px;
|
61
19
|
line-height: 22px;
|
62
20
|
vertical-align: middle;
|
63
|
-
background-image: linear-gradient(to right,
|
21
|
+
background-image: linear-gradient(to right, #a9a9a9, #a9a9a9), linear-gradient(to right, #fff, #fff);
|
64
22
|
border: 0;
|
65
23
|
border-radius: 100px;
|
66
24
|
cursor: pointer;
|
@@ -72,16 +30,16 @@ html {
|
|
72
30
|
}
|
73
31
|
.ant-switch:focus {
|
74
32
|
outline: 0;
|
75
|
-
box-shadow: 0 0 0 2px rgba(
|
33
|
+
box-shadow: 0 0 0 2px rgba(169, 169, 169, 0.1);
|
76
34
|
}
|
77
35
|
.ant-switch-checked:focus {
|
78
|
-
box-shadow: 0 0 0 2px
|
36
|
+
box-shadow: 0 0 0 2px #f0f7ff;
|
79
37
|
}
|
80
38
|
.ant-switch:focus:hover {
|
81
39
|
box-shadow: none;
|
82
40
|
}
|
83
41
|
.ant-switch-checked {
|
84
|
-
background:
|
42
|
+
background: #2c68ff;
|
85
43
|
}
|
86
44
|
.ant-switch-loading,
|
87
45
|
.ant-switch-disabled {
|
@@ -141,7 +99,7 @@ html {
|
|
141
99
|
vertical-align: top;
|
142
100
|
}
|
143
101
|
.ant-switch-checked .ant-switch-loading-icon {
|
144
|
-
color:
|
102
|
+
color: #2c68ff;
|
145
103
|
}
|
146
104
|
.ant-switch-small {
|
147
105
|
min-width: 28px;
|
@@ -191,23 +191,10 @@ function FilterDropdown(props) {
|
|
191
191
|
openKeys = _React$useState4[0],
|
192
192
|
setOpenKeys = _React$useState4[1];
|
193
193
|
|
194
|
-
var openRef = React.useRef();
|
195
|
-
|
196
194
|
var onOpenChange = function onOpenChange(keys) {
|
197
|
-
|
198
|
-
|
199
|
-
});
|
200
|
-
};
|
195
|
+
setOpenKeys(keys);
|
196
|
+
}; // search in tree mode column filter
|
201
197
|
|
202
|
-
var onMenuClick = function onMenuClick() {
|
203
|
-
window.clearTimeout(openRef.current);
|
204
|
-
};
|
205
|
-
|
206
|
-
React.useEffect(function () {
|
207
|
-
return function () {
|
208
|
-
window.clearTimeout(openRef.current);
|
209
|
-
};
|
210
|
-
}, []); // search in tree mode column filter
|
211
198
|
|
212
199
|
var _React$useState5 = React.useState(''),
|
213
200
|
_React$useState6 = (0, _slicedToArray2["default"])(_React$useState5, 2),
|
@@ -418,7 +405,6 @@ function FilterDropdown(props) {
|
|
418
405
|
multiple: filterMultiple,
|
419
406
|
prefixCls: "".concat(dropdownPrefixCls, "-menu"),
|
420
407
|
className: dropdownMenuClass,
|
421
|
-
onClick: onMenuClick,
|
422
408
|
onSelect: onSelectKeys,
|
423
409
|
onDeselect: onSelectKeys,
|
424
410
|
selectedKeys: selectedKeys,
|