@ebscn/ui 1.0.3-beta.3 → 1.0.3-beta.30
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/assets/images/delete_dark.png +0 -0
- package/assets/images/keybord_keybord_dark.png +0 -0
- package/assets/images/keybord_shift2.png +0 -0
- package/assets/images/keybord_shift2_dark.png +0 -0
- package/assets/images/keybord_shift_dark.png +0 -0
- package/assets/images/loading.gif +0 -0
- package/cjs/assets/images/delete_dark.png +0 -0
- package/cjs/assets/images/keybord_keybord_dark.png +0 -0
- package/cjs/assets/images/keybord_shift2.png +0 -0
- package/cjs/assets/images/keybord_shift2_dark.png +0 -0
- package/cjs/assets/images/keybord_shift_dark.png +0 -0
- package/cjs/assets/images/loading.gif +0 -0
- package/cjs/components/alphabet-keyboard/alphabet-keyboard.css +108 -43
- package/cjs/components/alphabet-keyboard/alphabet-keyboard.js +1 -2
- package/cjs/components/button/selectorButton.css +2 -0
- package/cjs/components/button/selectorButton.js +1 -5
- package/cjs/components/card/card.css +1 -1
- package/cjs/components/card/card.js +2 -2
- package/cjs/components/checkbox/checkbox.css +8 -2
- package/cjs/components/date-range-picker/date-range-picker.css +31 -7
- package/cjs/components/date-range-picker/date-range-picker.d.ts +1 -0
- package/cjs/components/date-range-picker/date-range-picker.js +18 -9
- package/cjs/components/divider/divider.css +4 -3
- package/cjs/components/header/header.css +7 -1
- package/cjs/components/header/header.js +4 -2
- package/cjs/components/icons/back-icon.js +1 -0
- package/cjs/components/icons/clear-icon.js +1 -0
- package/cjs/components/icons/close-icon.js +2 -1
- package/cjs/components/icons/down-icon.d.ts +4 -0
- package/cjs/components/icons/down-icon.js +26 -0
- package/cjs/components/icons/dustbin-icon.d.ts +4 -0
- package/cjs/components/icons/dustbin-icon.js +26 -0
- package/cjs/components/icons/index.d.ts +3 -0
- package/cjs/components/icons/index.js +21 -0
- package/cjs/components/icons/notice-icon.js +2 -2
- package/cjs/components/icons/right-icon.js +1 -0
- package/cjs/components/icons/search-icon.js +2 -1
- package/cjs/components/icons/up-icon.d.ts +4 -0
- package/cjs/components/icons/up-icon.js +26 -0
- package/cjs/components/icons/warning-icon.js +2 -1
- package/cjs/components/infinite-scroll/index.d.ts +4 -0
- package/cjs/components/infinite-scroll/index.js +9 -0
- package/cjs/components/infinite-scroll/infinite-scroll.css +27 -0
- package/cjs/components/infinite-scroll/infinite-scroll.d.ts +11 -0
- package/cjs/components/infinite-scroll/infinite-scroll.js +278 -0
- package/cjs/components/input/input.css +27 -27
- package/cjs/components/input/input.js +1 -1
- package/cjs/components/list/index.d.ts +16 -0
- package/cjs/components/list/index.js +13 -0
- package/cjs/components/list/list-item.d.ts +15 -0
- package/cjs/components/list/list-item.js +38 -0
- package/cjs/components/list/list.css +101 -0
- package/cjs/components/list/list.d.ts +20 -0
- package/cjs/components/list/list.js +38 -0
- package/cjs/components/number-keyboard/number-keyboard.css +55 -42
- package/cjs/components/number-keyboard/number-keyboard.d.ts +1 -0
- package/cjs/components/number-keyboard/number-keyboard.js +2 -1
- package/cjs/components/picker/picker.css +3 -0
- package/cjs/components/picker-view/picker-view.css +11 -2
- package/cjs/components/popover/arrow.d.ts +3 -0
- package/cjs/components/popover/arrow.js +19 -0
- package/cjs/components/popover/index.d.ts +31 -0
- package/cjs/components/popover/index.js +14 -0
- package/cjs/components/popover/normalize-placement.d.ts +2 -0
- package/cjs/components/popover/normalize-placement.js +20 -0
- package/cjs/components/popover/popover-menu.css +65 -0
- package/cjs/components/popover/popover-menu.d.ts +20 -0
- package/cjs/components/popover/popover-menu.js +74 -0
- package/cjs/components/popover/popover.css +68 -0
- package/cjs/components/popover/popover.d.ts +41 -0
- package/cjs/components/popover/popover.js +280 -0
- package/cjs/components/popover/wrapper.d.ts +10 -0
- package/cjs/components/popover/wrapper.js +53 -0
- package/cjs/components/popup/popup.css +4 -16
- package/cjs/components/protocol/protocol.js +1 -2
- package/cjs/components/pull-to-refresh/pull-to-refresh.css +10 -1
- package/cjs/components/pull-to-refresh/pull-to-refresh.d.ts +1 -1
- package/cjs/components/pull-to-refresh/pull-to-refresh.js +5 -5
- package/cjs/components/radio/radio.css +5 -0
- package/cjs/components/selector/selector.css +1 -1
- package/cjs/components/skeleton/skeleton.css +4 -4
- package/cjs/components/squared-grid/squared-grid.css +1 -2
- package/cjs/components/squared-grid/squared-grid.d.ts +2 -1
- package/cjs/components/squared-grid/squared-grid.js +11 -2
- package/cjs/components/stock-count-keyboard/stock-count-keyboard.css +48 -41
- package/cjs/components/stock-count-keyboard/stock-count-keyboard.js +1 -1
- package/cjs/components/stock-keyboard/alphabet-keyboard.css +186 -0
- package/cjs/components/stock-keyboard/alphabet-keyboard.d.ts +11 -0
- package/cjs/components/stock-keyboard/alphabet-keyboard.js +106 -0
- package/cjs/components/stock-keyboard/index.d.ts +1 -0
- package/cjs/components/stock-keyboard/index.js +1 -0
- package/cjs/components/stock-keyboard/stock-keyboard.css +135 -76
- package/cjs/components/stock-keyboard/stock-keyboard.d.ts +2 -2
- package/cjs/components/stock-keyboard/stock-keyboard.js +42 -10
- package/cjs/components/switch/switch.css +2 -3
- package/cjs/components/tabs/tabs.css +6 -4
- package/cjs/components/tabs/tabs.js +5 -5
- package/cjs/components/tabs/tabs.patch.css +1 -0
- package/cjs/components/toast/index.d.ts +9 -0
- package/cjs/components/toast/index.js +14 -0
- package/cjs/components/toast/methods.d.ts +8 -0
- package/cjs/components/toast/methods.js +72 -0
- package/cjs/components/toast/toast.css +45 -0
- package/cjs/components/toast/toast.d.ts +18 -0
- package/cjs/components/toast/toast.js +85 -0
- package/cjs/components/toast/toast.patch.css +11 -0
- package/cjs/global/global.css +20 -5
- package/cjs/global/theme-dark.css +11 -3
- package/cjs/global/theme-default.css +9 -2
- package/cjs/index.d.ts +4 -0
- package/cjs/index.js +33 -1
- package/es/assets/images/delete_dark.png +0 -0
- package/es/assets/images/keybord_keybord_dark.png +0 -0
- package/es/assets/images/keybord_shift2.png +0 -0
- package/es/assets/images/keybord_shift2_dark.png +0 -0
- package/es/assets/images/keybord_shift_dark.png +0 -0
- package/es/assets/images/loading.gif +0 -0
- package/es/components/alphabet-keyboard/alphabet-keyboard.css +108 -43
- package/es/components/alphabet-keyboard/alphabet-keyboard.js +2 -4
- package/es/components/button/selectorButton.css +2 -0
- package/es/components/button/selectorButton.js +1 -5
- package/es/components/card/card.css +1 -1
- package/es/components/card/card.js +2 -2
- package/es/components/checkbox/checkbox.css +8 -2
- package/es/components/date-range-picker/date-range-picker.css +31 -7
- package/es/components/date-range-picker/date-range-picker.d.ts +1 -0
- package/es/components/date-range-picker/date-range-picker.js +17 -9
- package/es/components/divider/divider.css +4 -3
- package/es/components/header/header.css +7 -1
- package/es/components/header/header.js +4 -2
- package/es/components/icons/back-icon.js +1 -0
- package/es/components/icons/clear-icon.js +1 -0
- package/es/components/icons/close-icon.js +2 -1
- package/es/components/icons/down-icon.d.ts +4 -0
- package/es/components/icons/down-icon.js +18 -0
- package/es/components/icons/dustbin-icon.d.ts +4 -0
- package/es/components/icons/dustbin-icon.js +18 -0
- package/es/components/icons/index.d.ts +3 -0
- package/es/components/icons/index.js +3 -0
- package/es/components/icons/notice-icon.js +2 -2
- package/es/components/icons/right-icon.js +1 -0
- package/es/components/icons/search-icon.js +2 -1
- package/es/components/icons/up-icon.d.ts +4 -0
- package/es/components/icons/up-icon.js +18 -0
- package/es/components/icons/warning-icon.js +2 -1
- package/es/components/infinite-scroll/index.d.ts +4 -0
- package/es/components/infinite-scroll/index.js +3 -0
- package/es/components/infinite-scroll/infinite-scroll.css +27 -0
- package/es/components/infinite-scroll/infinite-scroll.d.ts +11 -0
- package/es/components/infinite-scroll/infinite-scroll.js +268 -0
- package/es/components/input/input.css +27 -27
- package/es/components/input/input.js +1 -1
- package/es/components/list/index.d.ts +16 -0
- package/es/components/list/index.js +7 -0
- package/es/components/list/list-item.d.ts +15 -0
- package/es/components/list/list-item.js +30 -0
- package/es/components/list/list.css +101 -0
- package/es/components/list/list.d.ts +20 -0
- package/es/components/list/list.js +29 -0
- package/es/components/number-keyboard/number-keyboard.css +55 -42
- package/es/components/number-keyboard/number-keyboard.d.ts +1 -0
- package/es/components/number-keyboard/number-keyboard.js +2 -1
- package/es/components/picker/picker.css +3 -0
- package/es/components/picker-view/picker-view.css +11 -2
- package/es/components/popover/arrow.d.ts +3 -0
- package/es/components/popover/arrow.js +11 -0
- package/es/components/popover/index.d.ts +31 -0
- package/es/components/popover/index.js +8 -0
- package/es/components/popover/normalize-placement.d.ts +2 -0
- package/es/components/popover/normalize-placement.js +14 -0
- package/es/components/popover/popover-menu.css +65 -0
- package/es/components/popover/popover-menu.d.ts +20 -0
- package/es/components/popover/popover-menu.js +65 -0
- package/es/components/popover/popover.css +68 -0
- package/es/components/popover/popover.d.ts +41 -0
- package/es/components/popover/popover.js +271 -0
- package/es/components/popover/wrapper.d.ts +10 -0
- package/es/components/popover/wrapper.js +47 -0
- package/es/components/popup/popup.css +4 -16
- package/es/components/protocol/protocol.js +1 -2
- package/es/components/pull-to-refresh/pull-to-refresh.css +10 -1
- package/es/components/pull-to-refresh/pull-to-refresh.d.ts +1 -1
- package/es/components/pull-to-refresh/pull-to-refresh.js +5 -5
- package/es/components/radio/radio.css +5 -0
- package/es/components/selector/selector.css +1 -1
- package/es/components/skeleton/skeleton.css +4 -4
- package/es/components/squared-grid/squared-grid.css +1 -2
- package/es/components/squared-grid/squared-grid.d.ts +2 -1
- package/es/components/squared-grid/squared-grid.js +11 -2
- package/es/components/stock-count-keyboard/stock-count-keyboard.css +48 -41
- package/es/components/stock-count-keyboard/stock-count-keyboard.js +1 -1
- package/es/components/stock-keyboard/alphabet-keyboard.css +186 -0
- package/es/components/stock-keyboard/alphabet-keyboard.d.ts +11 -0
- package/es/components/stock-keyboard/alphabet-keyboard.js +98 -0
- package/es/components/stock-keyboard/index.d.ts +1 -0
- package/es/components/stock-keyboard/index.js +1 -0
- package/es/components/stock-keyboard/stock-keyboard.css +135 -76
- package/es/components/stock-keyboard/stock-keyboard.d.ts +2 -2
- package/es/components/stock-keyboard/stock-keyboard.js +44 -13
- package/es/components/switch/switch.css +2 -3
- package/es/components/tabs/tabs.css +6 -4
- package/es/components/tabs/tabs.js +5 -5
- package/es/components/tabs/tabs.patch.css +1 -0
- package/es/components/toast/index.d.ts +9 -0
- package/es/components/toast/index.js +8 -0
- package/es/components/toast/methods.d.ts +8 -0
- package/es/components/toast/methods.js +63 -0
- package/es/components/toast/toast.css +45 -0
- package/es/components/toast/toast.d.ts +18 -0
- package/es/components/toast/toast.js +75 -0
- package/es/components/toast/toast.patch.css +11 -0
- package/es/global/global.css +20 -5
- package/es/global/theme-dark.css +11 -3
- package/es/global/theme-default.css +9 -2
- package/es/index.d.ts +4 -0
- package/es/index.js +8 -4
- package/package.json +6 -12
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
.ebscn-checkbox {
|
|
2
|
-
--icon-size:
|
|
2
|
+
--icon-size: 20px;
|
|
3
|
+
--icon-wrap-size: 24px;
|
|
3
4
|
--font-size: var(--ebscn-font-size-8);
|
|
4
5
|
--gap: 12px;
|
|
5
6
|
display: inline-flex;
|
|
6
7
|
vertical-align: text-bottom;
|
|
7
8
|
justify-content: flex-start;
|
|
8
9
|
align-items: center;
|
|
10
|
+
min-width: var(--icon-wrap-size);
|
|
11
|
+
min-height: var(--icon-wrap-size);
|
|
9
12
|
cursor: pointer;
|
|
10
13
|
}
|
|
11
14
|
.ebscn-checkbox input {
|
|
@@ -17,11 +20,15 @@
|
|
|
17
20
|
--gap: 9px;
|
|
18
21
|
}
|
|
19
22
|
.ebscn-checkbox .ebscn-checkbox-icon {
|
|
23
|
+
margin: auto;
|
|
20
24
|
flex: none;
|
|
25
|
+
border-radius: 20px;
|
|
21
26
|
border-radius: var(--icon-size);
|
|
22
27
|
border: 1px solid var(--ebscn-color-light);
|
|
23
28
|
box-sizing: border-box;
|
|
29
|
+
width: 20px;
|
|
24
30
|
width: var(--icon-size);
|
|
31
|
+
height: 20px;
|
|
25
32
|
height: var(--icon-size);
|
|
26
33
|
color: var(--ebscn-color-text-light-solid);
|
|
27
34
|
}
|
|
@@ -81,7 +88,6 @@
|
|
|
81
88
|
}
|
|
82
89
|
.ebscn-checkbox .ebscn-checkbox-icon-right-input .ebscn-checkbox-icon.ebscn-checkbox-only-icon {
|
|
83
90
|
margin-right: 16px;
|
|
84
|
-
height: 100%;
|
|
85
91
|
border-color: transparent;
|
|
86
92
|
}
|
|
87
93
|
.ebscn-checkbox .ebscn-checkbox-icon-right-input .ebscn-checkbox-icon.ebscn-checkbox-only-icon svg {
|
|
@@ -3,8 +3,10 @@
|
|
|
3
3
|
--title-font-size: var(--ebscn-font-size-7);
|
|
4
4
|
--item-font-size: var(--ebscn-font-size-8);
|
|
5
5
|
--item-height: 34px;
|
|
6
|
+
font-size: 14px;
|
|
7
|
+
font-size: var(--ebscn-font-size-6);
|
|
6
8
|
width: 100%;
|
|
7
|
-
height:
|
|
9
|
+
height: 385px;
|
|
8
10
|
overflow: hidden;
|
|
9
11
|
position: relative;
|
|
10
12
|
display: flex;
|
|
@@ -21,10 +23,10 @@
|
|
|
21
23
|
display: flex;
|
|
22
24
|
justify-content: space-between;
|
|
23
25
|
align-items: center;
|
|
24
|
-
padding:
|
|
26
|
+
padding: 24px 16px 16px;
|
|
25
27
|
}
|
|
26
28
|
.ebscn-date-range-picker-header-button {
|
|
27
|
-
font-size:
|
|
29
|
+
font-size: 16px;
|
|
28
30
|
display: inline-block;
|
|
29
31
|
padding: 8px 8px;
|
|
30
32
|
}
|
|
@@ -35,30 +37,49 @@
|
|
|
35
37
|
}
|
|
36
38
|
.ebscn-date-range-picker-header-title {
|
|
37
39
|
padding: 4px 4px;
|
|
40
|
+
font-size: 18px;
|
|
38
41
|
font-size: var(--ebscn-font-size-10);
|
|
39
42
|
color: #333;
|
|
43
|
+
color: var(--ebscn-color-text);
|
|
40
44
|
text-align: center;
|
|
41
45
|
flex: 1;
|
|
42
|
-
font-weight:
|
|
46
|
+
font-weight: 500;
|
|
43
47
|
}
|
|
44
48
|
.ebscn-date-range-picker-buttons-wrap {
|
|
45
49
|
display: flex;
|
|
50
|
+
gap: 10px;
|
|
46
51
|
justify-content: space-evenly;
|
|
47
52
|
margin-top: 12px;
|
|
53
|
+
padding: 0 16px;
|
|
54
|
+
}
|
|
55
|
+
.ebscn-date-range-picker-buttons-wrap svg {
|
|
56
|
+
font-size: 18px;
|
|
48
57
|
}
|
|
49
58
|
.ebscn-date-range-picker-buttons-wrap .ebscn-date-range-picker-button {
|
|
50
|
-
width:
|
|
59
|
+
min-width: 75px;
|
|
60
|
+
max-width: 100px;
|
|
61
|
+
flex: 1;
|
|
51
62
|
height: 28px;
|
|
52
63
|
line-height: 28px;
|
|
53
64
|
text-align: center;
|
|
54
65
|
background-color: #f8f9fc;
|
|
66
|
+
background-color: var(--search-box-bg);
|
|
55
67
|
color: #333;
|
|
56
|
-
|
|
68
|
+
color: var(--ebscn-color-text);
|
|
69
|
+
border-radius: 4px;
|
|
70
|
+
font-size: 14px;
|
|
57
71
|
font-size: var(--ebscn-font-size-6);
|
|
58
72
|
}
|
|
73
|
+
.ebscn-date-range-picker-buttons-wrap .ebscn-date-range-picker-button-active {
|
|
74
|
+
color: #e84225;
|
|
75
|
+
color: var(--ebscn-color-primary);
|
|
76
|
+
background-color: rgba(232, 66, 37, 0.06);
|
|
77
|
+
}
|
|
59
78
|
.ebscn-date-range-picker-values-wrap {
|
|
60
79
|
display: flex;
|
|
80
|
+
justify-content: space-between;
|
|
61
81
|
justify-content: center;
|
|
82
|
+
align-items: center;
|
|
62
83
|
gap: 20px;
|
|
63
84
|
margin-top: 12px;
|
|
64
85
|
}
|
|
@@ -70,14 +91,17 @@
|
|
|
70
91
|
text-align: center;
|
|
71
92
|
}
|
|
72
93
|
.ebscn-date-range-picker-values-wrap .ebscn-date-range-picker-value-active {
|
|
73
|
-
|
|
94
|
+
color: var(--ebscn-color-blue);
|
|
95
|
+
border-bottom-color: var(--ebscn-color-blue);
|
|
74
96
|
}
|
|
75
97
|
.ebscn-date-range-picker-tip {
|
|
76
98
|
display: flex;
|
|
77
99
|
justify-content: center;
|
|
78
100
|
align-items: center;
|
|
79
101
|
margin-top: 12px;
|
|
102
|
+
color: #e84225;
|
|
80
103
|
color: var(--ebscn-color-primary);
|
|
104
|
+
font-size: 14px;
|
|
81
105
|
font-size: var(--ebscn-font-size-6);
|
|
82
106
|
}
|
|
83
107
|
.ebscn-date-range-picker-body {
|
|
@@ -40,6 +40,7 @@ export type DateRangePickerProps = {
|
|
|
40
40
|
value: [PickerDate, PickerDate];
|
|
41
41
|
}>;
|
|
42
42
|
} & Pick<PopupProps, 'getContainer' | 'afterShow' | 'afterClose' | 'onClick' | 'stopPropagation' | 'forceRender' | 'destroyOnClose'> & NativeProps<'--header-button-font-size' | '--title-font-size' | '--item-font-size' | '--item-height'>;
|
|
43
|
+
export declare function isSameDate(date1: Date, date2: Date): boolean;
|
|
43
44
|
export declare const DateRangePicker: React.MemoExoticComponent<React.ForwardRefExoticComponent<{
|
|
44
45
|
value?: [] | [Date, Date] | undefined;
|
|
45
46
|
defaultValue?: [] | [Date, Date] | undefined;
|
|
@@ -114,7 +114,6 @@ var __generator = this && this.__generator || function (thisArg, body) {
|
|
|
114
114
|
}
|
|
115
115
|
};
|
|
116
116
|
import { useMemoizedFn } from 'ahooks';
|
|
117
|
-
import SafeArea from '../safe-area';
|
|
118
117
|
import classNames from 'classnames';
|
|
119
118
|
import dayjs from 'dayjs';
|
|
120
119
|
import React, { forwardRef, memo, useEffect, useImperativeHandle, useMemo, useState } from 'react';
|
|
@@ -125,6 +124,7 @@ import { mergeProps } from '../../utils/with-default-props';
|
|
|
125
124
|
import DatePickerView from '../date-picker-view';
|
|
126
125
|
import { defaultRenderLabel } from '../picker/picker-utils';
|
|
127
126
|
import Popup from '../popup';
|
|
127
|
+
import SafeArea from '../safe-area';
|
|
128
128
|
var classPrefix = "ebscn-date-range-picker";
|
|
129
129
|
var thisYear = new Date().getFullYear();
|
|
130
130
|
var defaultProps = {
|
|
@@ -138,6 +138,11 @@ var defaultProps = {
|
|
|
138
138
|
precision: 'day',
|
|
139
139
|
quickButtons: []
|
|
140
140
|
};
|
|
141
|
+
export function isSameDate(date1, date2) {
|
|
142
|
+
var str1 = "".concat(date1.getFullYear(), "-").concat(date1.getMonth(), "-").concat(date1.getDate());
|
|
143
|
+
var str2 = "".concat(date2.getFullYear(), "-").concat(date2.getMonth(), "-").concat(date2.getDate());
|
|
144
|
+
return str1 === str2;
|
|
145
|
+
}
|
|
141
146
|
export var DateRangePicker = memo(forwardRef(function (p, ref) {
|
|
142
147
|
var _a, _b;
|
|
143
148
|
var _c;
|
|
@@ -202,8 +207,10 @@ export var DateRangePicker = memo(forwardRef(function (p, ref) {
|
|
|
202
207
|
innerValue = _f[0],
|
|
203
208
|
setInnerValue = _f[1];
|
|
204
209
|
useEffect(function () {
|
|
210
|
+
var _a;
|
|
205
211
|
//todo
|
|
206
212
|
setInnerValue(pickerValue);
|
|
213
|
+
(_a = props.onSelect) === null || _a === void 0 ? void 0 : _a.call(props, pickerValue);
|
|
207
214
|
}, [visible, pickerValue]);
|
|
208
215
|
var _g = useState(0),
|
|
209
216
|
activeIndex = _g[0],
|
|
@@ -216,7 +223,7 @@ export var DateRangePicker = memo(forwardRef(function (p, ref) {
|
|
|
216
223
|
}
|
|
217
224
|
});
|
|
218
225
|
var onQuickClick = function (value) {
|
|
219
|
-
|
|
226
|
+
onChange(value);
|
|
220
227
|
};
|
|
221
228
|
var renderLabel = function (_, value) {
|
|
222
229
|
return value;
|
|
@@ -237,32 +244,33 @@ export var DateRangePicker = memo(forwardRef(function (p, ref) {
|
|
|
237
244
|
className: "".concat(classPrefix, "-header-title")
|
|
238
245
|
}, props.title), React.createElement("a", {
|
|
239
246
|
role: "button",
|
|
240
|
-
className: classNames("".concat(classPrefix, "-header-button"), props.loading && "".concat(classPrefix, "-header-button-disabled")),
|
|
247
|
+
className: classNames("".concat(classPrefix, "-header-button"), (props.loading || props.tip) && "".concat(classPrefix, "-header-button-disabled")),
|
|
241
248
|
onClick: function () {
|
|
242
|
-
if (props.loading) return;
|
|
249
|
+
if (props.loading || props.tip) return;
|
|
243
250
|
setValue(innerValue, true);
|
|
244
251
|
setVisible(false);
|
|
245
252
|
},
|
|
246
253
|
"aria-disabled": props.loading
|
|
247
|
-
}, props.confirmText)), props.quickButtons.length
|
|
254
|
+
}, props.confirmText)), props.quickButtons.length ? React.createElement("div", {
|
|
248
255
|
className: "".concat(classPrefix, "-buttons-wrap")
|
|
249
|
-
}, props.quickButtons.map(function (_a) {
|
|
256
|
+
}, props.quickButtons.map(function (_a, index) {
|
|
250
257
|
var label = _a.label,
|
|
251
258
|
value = _a.value;
|
|
252
259
|
return React.createElement("div", {
|
|
260
|
+
key: index,
|
|
253
261
|
onClick: function () {
|
|
254
262
|
return onQuickClick(value);
|
|
255
263
|
},
|
|
256
|
-
className: "".concat(classPrefix, "-button")
|
|
264
|
+
className: "".concat(classPrefix, "-button ").concat(isSameDate(value[0], innerValue[0]) && isSameDate(value[1], innerValue[1]) ? "".concat(classPrefix, "-button-active") : '')
|
|
257
265
|
}, label);
|
|
258
|
-
})), React.createElement("div", {
|
|
266
|
+
})) : null, React.createElement("div", {
|
|
259
267
|
className: "".concat(classPrefix, "-values-wrap")
|
|
260
268
|
}, React.createElement("div", {
|
|
261
269
|
className: classNames("".concat(classPrefix, "-value"), (_a = {}, _a["".concat(classPrefix, "-value-active")] = activeIndex === 0, _a)),
|
|
262
270
|
onClick: function () {
|
|
263
271
|
return setActiveIndex(0);
|
|
264
272
|
}
|
|
265
|
-
}, dayjs(innerValue[0]).format('YYYY-MM-DD')), React.createElement("div", {
|
|
273
|
+
}, dayjs(innerValue[0]).format('YYYY-MM-DD')), React.createElement("span", null, "\u81F3"), React.createElement("div", {
|
|
266
274
|
className: classNames("".concat(classPrefix, "-value"), (_b = {}, _b["".concat(classPrefix, "-value-active")] = activeIndex === 1, _b)),
|
|
267
275
|
onClick: function () {
|
|
268
276
|
return setActiveIndex(1);
|
|
@@ -3,9 +3,10 @@
|
|
|
3
3
|
align-items: center;
|
|
4
4
|
margin: 16px 0;
|
|
5
5
|
border-width: 0;
|
|
6
|
-
border-color: var(--color);
|
|
6
|
+
border-color: var(--ebscn-color-split-line);
|
|
7
7
|
border-style: solid;
|
|
8
|
-
color:
|
|
8
|
+
color: #ebebeb;
|
|
9
|
+
color: var(--ebscn-color-split-line);
|
|
9
10
|
font-size: 14px;
|
|
10
11
|
}
|
|
11
12
|
.ebscn-divider-left.ebscn-divider-horizontal::before {
|
|
@@ -35,5 +36,5 @@
|
|
|
35
36
|
margin: 0 16px;
|
|
36
37
|
vertical-align: middle;
|
|
37
38
|
border-top: 0;
|
|
38
|
-
border-left: 1px solid var(--color);
|
|
39
|
+
border-left: 1px solid var(--ebscn-color-split-line);
|
|
39
40
|
}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
--bgColor: #FFFFFF;
|
|
4
4
|
--subTitleColor: #666666;
|
|
5
5
|
--buttonColor: #666666;
|
|
6
|
+
--icon-size: 20px;
|
|
6
7
|
display: flex;
|
|
7
8
|
align-items: center;
|
|
8
9
|
height: 44px;
|
|
@@ -15,7 +16,11 @@
|
|
|
15
16
|
.ebscn-header-left,
|
|
16
17
|
.ebscn-header-right {
|
|
17
18
|
flex: 1;
|
|
18
|
-
font-size:
|
|
19
|
+
font-size: 20px;
|
|
20
|
+
font-size: var(--icon-size);
|
|
21
|
+
}
|
|
22
|
+
.ebscn-header-left-back {
|
|
23
|
+
padding: 4px;
|
|
19
24
|
}
|
|
20
25
|
.ebscn-header-title {
|
|
21
26
|
flex: auto;
|
|
@@ -54,6 +59,7 @@
|
|
|
54
59
|
display: flex;
|
|
55
60
|
justify-content: flex-end;
|
|
56
61
|
align-items: center;
|
|
62
|
+
margin-right: 4px;
|
|
57
63
|
}
|
|
58
64
|
.ebscn-header-text-button {
|
|
59
65
|
font-size: 15px;
|
|
@@ -14,11 +14,13 @@ var Header = function (p) {
|
|
|
14
14
|
return withNativeProps(props, React.createElement("div", {
|
|
15
15
|
className: classNames(classPrefix)
|
|
16
16
|
}, React.createElement("div", {
|
|
17
|
-
className: "".concat(classPrefix, "-left")
|
|
17
|
+
className: "".concat(classPrefix, "-left")
|
|
18
|
+
}, props.showLeftIcon && React.createElement("div", {
|
|
19
|
+
className: "".concat(classPrefix, "-left-back"),
|
|
18
20
|
onClick: function () {
|
|
19
21
|
return props.onLeftClick();
|
|
20
22
|
}
|
|
21
|
-
},
|
|
23
|
+
}, React.createElement(BackIcon, null), " "), props.left), React.createElement("div", {
|
|
22
24
|
className: "".concat(classPrefix, "-title")
|
|
23
25
|
}, props.title && React.createElement("div", null, props.title), props.subTitle && React.createElement("div", {
|
|
24
26
|
className: "".concat(classPrefix, "-subtitle")
|
|
@@ -10,6 +10,7 @@ var BackIcon = memo(function (props) {
|
|
|
10
10
|
width: "1em",
|
|
11
11
|
height: "1em"
|
|
12
12
|
}, React.createElement("path", {
|
|
13
|
+
fill: "currentColor",
|
|
13
14
|
d: "M361.344 121.392a32 32 0 0 1 45.312 45.216l-334.4 335.136a15.6 15.6 0 0 0 0.032 22.064l334.32 333.536a32 32 0 1 1-45.216 45.312L27.088 569.104a79.6 79.6 0 0 1-0.128-112.56l334.4-335.152z",
|
|
14
15
|
"p-id": "8061"
|
|
15
16
|
})));
|
|
@@ -10,6 +10,7 @@ var ClearIcon = memo(function (props) {
|
|
|
10
10
|
width: "1em",
|
|
11
11
|
height: "1em"
|
|
12
12
|
}, React.createElement("path", {
|
|
13
|
+
fill: "currentColor",
|
|
13
14
|
d: "M512 64c247.424 0 448 200.576 448 448S759.424 960 512 960 64 759.424 64 512 264.576 64 512 64zM342.624 297.376a32 32 0 0 0-45.248 0l-1.872 2.032a32 32 0 0 0 1.872 43.216L466.72 512 297.376 681.376a32 32 0 0 0 0 45.248l2.032 1.872a32 32 0 0 0 43.216-1.872L512 557.248l169.376 169.376a32 32 0 0 0 45.248 0l1.872-2.032a32 32 0 0 0-1.872-43.216L557.248 512l169.376-169.376a32 32 0 0 0 0-45.248l-2.032-1.872a32 32 0 0 0-43.216 1.872L512 466.72z",
|
|
14
15
|
"p-id": "8691"
|
|
15
16
|
})));
|
|
@@ -8,7 +8,8 @@ var CloseIcon = memo(function (props) {
|
|
|
8
8
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9
9
|
"p-id": "8217",
|
|
10
10
|
width: "1em",
|
|
11
|
-
height: "1em"
|
|
11
|
+
height: "1em",
|
|
12
|
+
fill: "currentColor"
|
|
12
13
|
}, React.createElement("path", {
|
|
13
14
|
d: "M137.376 137.376a32 32 0 0 1 45.248 0l712.768 712.768a32 32 0 1 1-45.248 45.248L137.376 182.624a32 32 0 0 1 0-45.248z",
|
|
14
15
|
"p-id": "8218"
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React, { memo } from 'react';
|
|
2
|
+
import { withNativeProps } from '../../utils/native-props';
|
|
3
|
+
var DownIcon = memo(function (props) {
|
|
4
|
+
return withNativeProps(props, React.createElement("svg", {
|
|
5
|
+
className: "ebscn-ui-icon",
|
|
6
|
+
viewBox: "0 0 1024 1024",
|
|
7
|
+
version: "1.1",
|
|
8
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
9
|
+
"p-id": "3136",
|
|
10
|
+
width: "1em",
|
|
11
|
+
height: "1em",
|
|
12
|
+
fill: "currentColor"
|
|
13
|
+
}, React.createElement("path", {
|
|
14
|
+
d: "M121.392 358.656a32 32 0 1 1 45.216-45.312l335.136 334.4c6.096 6.08 15.968 6.064 22.064-0.032l333.536-334.32a32 32 0 1 1 45.312 45.216L569.104 692.912a79.6 79.6 0 0 1-112.56 0.128l-335.152-334.4z",
|
|
15
|
+
"p-id": "3137"
|
|
16
|
+
})));
|
|
17
|
+
});
|
|
18
|
+
export default DownIcon;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React, { memo } from 'react';
|
|
2
|
+
import { withNativeProps } from '../../utils/native-props';
|
|
3
|
+
var DustbinIcon = memo(function (props) {
|
|
4
|
+
return withNativeProps(props, React.createElement("svg", {
|
|
5
|
+
className: "ebscn-ui-icon",
|
|
6
|
+
viewBox: "0 0 1024 1024",
|
|
7
|
+
version: "1.1",
|
|
8
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
9
|
+
"p-id": "3293",
|
|
10
|
+
width: "1em",
|
|
11
|
+
height: "1em",
|
|
12
|
+
fill: "currentColor"
|
|
13
|
+
}, React.createElement("path", {
|
|
14
|
+
d: "M544 64a48 48 0 0 1 48 48v16h304a32 32 0 1 1 0 64H256v656a32 32 0 0 0 32 32h448a32 32 0 0 0 32-32V285.488a32 32 0 1 1 64 0V848a96 96 0 0 1-96 96H288a96 96 0 0 1-96-96V192H128a32 32 0 1 1 0-64h336V112a48 48 0 0 1 48-48h32z m-128 208a32 32 0 0 1 32 32v464a32 32 0 1 1-64 0V304a32 32 0 0 1 32-32z m192 0a32 32 0 0 1 32 32v464a32 32 0 1 1-64 0V304a32 32 0 0 1 32-32z",
|
|
15
|
+
"p-id": "3294"
|
|
16
|
+
})));
|
|
17
|
+
});
|
|
18
|
+
export default DustbinIcon;
|
|
@@ -3,6 +3,8 @@ export { default as CheckIcon } from './check-icon';
|
|
|
3
3
|
export { default as CheckOnlyIcon } from './check-only-icon';
|
|
4
4
|
export { default as ClearIcon } from './clear-icon';
|
|
5
5
|
export { default as CloseIcon } from './close-icon';
|
|
6
|
+
export { default as DownIcon } from './down-icon';
|
|
7
|
+
export { default as DustbinIcon } from './dustbin-icon';
|
|
6
8
|
export { default as GdlogoIcon } from './gdlogo-icon';
|
|
7
9
|
export { default as IndeterminateIcon } from './indeterminate-icon';
|
|
8
10
|
export { default as LoadingIcon } from './loading-icon';
|
|
@@ -12,4 +14,5 @@ export { default as SearchIcon } from './search-icon';
|
|
|
12
14
|
export { default as SelectorIcon } from './selector-icon';
|
|
13
15
|
export { default as SpinIcon } from './spin-icon';
|
|
14
16
|
export { default as UncheckIcon } from './uncheck-icon';
|
|
17
|
+
export { default as UpIcon } from './up-icon';
|
|
15
18
|
export { default as WarningIcon } from './warning-icon';
|
|
@@ -3,6 +3,8 @@ export { default as CheckIcon } from './check-icon';
|
|
|
3
3
|
export { default as CheckOnlyIcon } from './check-only-icon';
|
|
4
4
|
export { default as ClearIcon } from './clear-icon';
|
|
5
5
|
export { default as CloseIcon } from './close-icon';
|
|
6
|
+
export { default as DownIcon } from './down-icon';
|
|
7
|
+
export { default as DustbinIcon } from './dustbin-icon';
|
|
6
8
|
export { default as GdlogoIcon } from './gdlogo-icon';
|
|
7
9
|
export { default as IndeterminateIcon } from './indeterminate-icon';
|
|
8
10
|
export { default as LoadingIcon } from './loading-icon';
|
|
@@ -12,4 +14,5 @@ export { default as SearchIcon } from './search-icon';
|
|
|
12
14
|
export { default as SelectorIcon } from './selector-icon';
|
|
13
15
|
export { default as SpinIcon } from './spin-icon';
|
|
14
16
|
export { default as UncheckIcon } from './uncheck-icon';
|
|
17
|
+
export { default as UpIcon } from './up-icon';
|
|
15
18
|
export { default as WarningIcon } from './warning-icon';
|
|
@@ -11,11 +11,11 @@ var NoticeIcon = memo(function (props) {
|
|
|
11
11
|
height: "1em"
|
|
12
12
|
}, React.createElement("path", {
|
|
13
13
|
d: "M614.4 268.8a32 32 0 0 1 44.8-6.4C752.128 332.096 800 415.872 800 512c0 96.128-47.872 179.904-140.8 249.6a32 32 0 1 1-38.4-51.2C698.528 652.096 736 586.528 736 512s-37.472-140.096-115.2-198.4a32 32 0 0 1-6.4-44.8zM370.368 108.352A96 96 0 0 1 544 164.8v694.368a96 96 0 0 1-173.632 56.48L249.28 749.168A32 32 0 0 0 223.408 736H176a112 112 0 0 1-112-112V400a112 112 0 0 1 112-112h47.408a32 32 0 0 0 25.888-13.184l121.072-166.464z m96.448 30.576a32 32 0 0 0-44.688 7.056L301.056 312.48A96 96 0 0 1 223.408 352H176a48 48 0 0 0-48 48v224a48 48 0 0 0 48 48h47.408a96 96 0 0 1 77.648 39.536l121.072 166.48A32 32 0 0 0 480 859.184V164.816a32 32 0 0 0-13.184-25.888z",
|
|
14
|
-
fill: "
|
|
14
|
+
fill: "currentColor",
|
|
15
15
|
"p-id": "8376"
|
|
16
16
|
}), React.createElement("path", {
|
|
17
17
|
d: "M745.376 137.376a32 32 0 0 1 45.248 0C903.04 249.792 960 375.088 960 512c0 136.912-56.96 262.208-169.376 374.624a32 32 0 0 1-45.248-45.248C846.288 740.448 896 631.088 896 512c0-119.088-49.712-228.448-150.624-329.376a32 32 0 0 1 0-45.248z",
|
|
18
|
-
fill: "
|
|
18
|
+
fill: "currentColor",
|
|
19
19
|
"p-id": "8377"
|
|
20
20
|
})));
|
|
21
21
|
});
|
|
@@ -10,6 +10,7 @@ var RightIcon = memo(function (props) {
|
|
|
10
10
|
width: "1em",
|
|
11
11
|
height: "1em"
|
|
12
12
|
}, React.createElement("path", {
|
|
13
|
+
fill: "currentColor",
|
|
13
14
|
d: "M662.656 121.392a32 32 0 0 0-45.312 45.216l334.4 335.136c6.08 6.096 6.064 15.968-0.032 22.064L617.392 857.344a32 32 0 1 0 45.216 45.312l334.304-333.552a79.6 79.6 0 0 0 0.128-112.56l-334.4-335.152z",
|
|
14
15
|
"p-id": "8534"
|
|
15
16
|
})));
|
|
@@ -8,7 +8,8 @@ var SearchIcon = memo(function (props) {
|
|
|
8
8
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9
9
|
"p-id": "7902",
|
|
10
10
|
width: "1em",
|
|
11
|
-
height: "1em"
|
|
11
|
+
height: "1em",
|
|
12
|
+
fill: "currentColor"
|
|
12
13
|
}, React.createElement("path", {
|
|
13
14
|
d: "M928 510c0 106.384-38.288 204.24-106.368 280.832l-42.56 46.8C702.512 905.712 604.64 944 498.288 944 251.472 944 55.744 739.76 64.256 492.992c8.512-221.264 191.456-404.208 416.96-412.72C728.032 71.76 928 267.472 928 510zM483.648 144.224C292.176 151.44 135.472 307.04 128.224 495.2 120.96 706.144 288.048 880 498.256 880c86.848 0 167.616-29.888 232.464-85.12l3.472-3.024 39.6-43.552c56.768-63.856 88.32-143.952 90.128-230.416l0.08-7.888C864 302.512 692.864 137.008 483.648 144.224z",
|
|
14
15
|
"p-id": "7903"
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React, { memo } from 'react';
|
|
2
|
+
import { withNativeProps } from '../../utils/native-props';
|
|
3
|
+
var UpIcon = memo(function (props) {
|
|
4
|
+
return withNativeProps(props, React.createElement("svg", {
|
|
5
|
+
className: "ebscn-ui-icon",
|
|
6
|
+
viewBox: "0 0 1024 1024",
|
|
7
|
+
version: "1.1",
|
|
8
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
9
|
+
"p-id": "3450",
|
|
10
|
+
width: "1em",
|
|
11
|
+
height: "1em",
|
|
12
|
+
fill: "currentColor"
|
|
13
|
+
}, React.createElement("path", {
|
|
14
|
+
d: "M902.608 665.344a32 32 0 1 1-45.216 45.312l-335.136-334.4a15.6 15.6 0 0 0-22.064 0.032L166.656 710.608a32 32 0 1 1-45.312-45.216l333.552-334.304a79.6 79.6 0 0 1 112.56-0.128l335.152 334.4z",
|
|
15
|
+
"p-id": "3451"
|
|
16
|
+
})));
|
|
17
|
+
});
|
|
18
|
+
export default UpIcon;
|
|
@@ -8,7 +8,8 @@ var WarningIcon = memo(function (props) {
|
|
|
8
8
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9
9
|
"p-id": "2315",
|
|
10
10
|
width: "1em",
|
|
11
|
-
height: "1em"
|
|
11
|
+
height: "1em",
|
|
12
|
+
fill: 'currentColor'
|
|
12
13
|
}, React.createElement("path", {
|
|
13
14
|
d: "M512 64c247.424 0 448 200.576 448 448S759.424 960 512 960 64 759.424 64 512 264.576 64 512 64z m0 640a48 48 0 1 0 0 96 48 48 0 0 0 0-96z m0-480a40 40 0 0 0-40 40v336a40 40 0 1 0 80 0v-336A40 40 0 0 0 512 224z",
|
|
14
15
|
"p-id": "2316"
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
.ebscn-infinite-scroll {
|
|
2
|
+
color: #666;
|
|
3
|
+
color: var(--ebscn-color-text);
|
|
4
|
+
padding: 18px;
|
|
5
|
+
display: flex;
|
|
6
|
+
justify-content: center;
|
|
7
|
+
align-items: center;
|
|
8
|
+
font-size: var(--ebscn-font-size-5);
|
|
9
|
+
}
|
|
10
|
+
.ebscn-infinite-scroll-failed-text {
|
|
11
|
+
color: var(--ebscn-color-text);
|
|
12
|
+
display: inline-block;
|
|
13
|
+
margin-right: 8px;
|
|
14
|
+
}
|
|
15
|
+
.ebscn-infinite-scroll-loading-wrap {
|
|
16
|
+
display: flex;
|
|
17
|
+
align-items: center;
|
|
18
|
+
gap: 2px;
|
|
19
|
+
font-size: 13px;
|
|
20
|
+
}
|
|
21
|
+
.ebscn-infinite-scroll-loading-img {
|
|
22
|
+
width: 18px;
|
|
23
|
+
height: 18px;
|
|
24
|
+
}
|
|
25
|
+
.ebscn-infinite-scroll-nodata-text {
|
|
26
|
+
color: var(--ebscn-color-weak);
|
|
27
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { FC, ReactNode } from 'react';
|
|
2
|
+
import { NativeProps } from '../../utils/native-props';
|
|
3
|
+
export type InfiniteScrollProps = {
|
|
4
|
+
loadMore: (isRetry: boolean) => Promise<void>;
|
|
5
|
+
hasMore: boolean;
|
|
6
|
+
threshold?: number;
|
|
7
|
+
NoMoreContent?: ReactNode;
|
|
8
|
+
FailContent?: ReactNode;
|
|
9
|
+
children?: ReactNode | ((hasMore: boolean, failed: boolean, retry: () => void, NoMoreContent?: ReactNode, FailContent?: ReactNode) => ReactNode);
|
|
10
|
+
} & NativeProps;
|
|
11
|
+
export declare const InfiniteScroll: FC<InfiniteScrollProps>;
|