@ebscn/ui 1.0.3-beta.0 → 1.0.3-beta.10
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_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_shift_dark.png +0 -0
- package/cjs/assets/images/loading.gif +0 -0
- package/cjs/components/alphabet-keyboard/alphabet-keyboard.css +44 -16
- package/cjs/components/card/card.js +2 -2
- package/cjs/components/common-input/common-input.css +28 -0
- package/cjs/components/common-input/common-input.d.ts +27 -0
- package/cjs/components/common-input/common-input.js +88 -0
- package/cjs/components/common-input/index.d.ts +4 -0
- package/cjs/components/common-input/index.js +9 -0
- package/cjs/components/date-range-picker/date-range-picker.css +29 -6
- package/cjs/components/date-range-picker/date-range-picker.d.ts +1 -0
- package/cjs/components/date-range-picker/date-range-picker.js +14 -8
- package/cjs/components/fene-input/fene-input.css +35 -0
- package/cjs/components/fene-input/fene-input.d.ts +14 -0
- package/cjs/components/fene-input/fene-input.js +63 -0
- package/cjs/components/fene-input/index.d.ts +4 -0
- package/cjs/components/fene-input/index.js +9 -0
- 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/notice-icon.js +2 -1
- package/cjs/components/icons/right-icon.js +1 -0
- package/cjs/components/icons/search-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 +23 -0
- package/cjs/components/infinite-scroll/infinite-scroll.d.ts +9 -0
- package/cjs/components/infinite-scroll/infinite-scroll.js +273 -0
- package/cjs/components/input/index.d.ts +4 -0
- package/cjs/components/input/index.js +9 -0
- package/cjs/components/input/input.css +96 -0
- package/cjs/components/input/input.d.ts +41 -0
- package/cjs/components/input/input.js +161 -0
- 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 +102 -0
- package/cjs/components/list/list.d.ts +20 -0
- package/cjs/components/list/list.js +38 -0
- package/cjs/components/marketTag/marketTag.css +4 -4
- package/cjs/components/money-input/index.d.ts +4 -0
- package/cjs/components/money-input/index.js +9 -0
- package/cjs/components/money-input/money-input.css +35 -0
- package/cjs/components/money-input/money-input.d.ts +27 -0
- package/cjs/components/money-input/money-input.js +111 -0
- package/cjs/components/number-keyboard/number-keyboard.css +50 -41
- package/cjs/components/number-keyboard/number-keyboard.d.ts +1 -0
- package/cjs/components/number-keyboard/number-keyboard.js +1 -0
- package/cjs/components/passcode-input/index.d.ts +4 -0
- package/cjs/components/passcode-input/index.js +9 -0
- package/cjs/components/passcode-input/passcode-input.css +136 -0
- package/cjs/components/passcode-input/passcode-input.d.ts +40 -0
- package/cjs/components/passcode-input/passcode-input.js +136 -0
- package/cjs/components/pay-input/index.d.ts +4 -0
- package/cjs/components/pay-input/index.js +10 -0
- package/cjs/components/pay-input/pay-input.css +136 -0
- package/cjs/components/pay-input/pay-input.d.ts +14 -0
- package/cjs/components/pay-input/pay-input.js +126 -0
- 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/protocol/protocol.js +1 -2
- package/cjs/components/stock-count-keyboard/stock-count-keyboard.css +32 -38
- package/cjs/components/stock-count-keyboard/stock-count-keyboard.js +1 -1
- package/cjs/components/stock-keyboard/alphabet-keyboard.css +154 -0
- package/cjs/components/stock-keyboard/alphabet-keyboard.d.ts +11 -0
- package/cjs/components/stock-keyboard/alphabet-keyboard.js +107 -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 +107 -71
- package/cjs/components/stock-keyboard/stock-keyboard.d.ts +2 -2
- package/cjs/components/stock-keyboard/stock-keyboard.js +40 -8
- package/cjs/components/tabs/tabs.css +1 -1
- package/cjs/components/tabs/tabs.js +2 -2
- package/cjs/components/tabs/tabs.patch.css +1 -0
- package/cjs/components/virtual-input/index.d.ts +4 -0
- package/cjs/components/virtual-input/index.js +9 -0
- package/cjs/components/virtual-input/virtual-input.css +99 -0
- package/cjs/components/virtual-input/virtual-input.d.ts +45 -0
- package/cjs/components/virtual-input/virtual-input.js +145 -0
- package/cjs/global/global.css +12 -3
- package/cjs/global/theme-dark.css +8 -3
- package/cjs/global/theme-default.css +4 -0
- package/cjs/index.d.ts +4 -1
- package/cjs/index.js +33 -9
- package/es/assets/images/delete_dark.png +0 -0
- package/es/assets/images/keybord_keybord_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 +44 -16
- package/es/components/card/card.js +2 -2
- package/es/components/common-input/common-input.css +28 -0
- package/es/components/common-input/common-input.d.ts +27 -0
- package/es/components/common-input/common-input.js +80 -0
- package/es/components/common-input/index.d.ts +4 -0
- package/es/components/common-input/index.js +3 -0
- package/es/components/date-range-picker/date-range-picker.css +29 -6
- package/es/components/date-range-picker/date-range-picker.d.ts +1 -0
- package/es/components/date-range-picker/date-range-picker.js +13 -8
- package/es/components/fene-input/fene-input.css +35 -0
- package/es/components/fene-input/fene-input.d.ts +14 -0
- package/es/components/fene-input/fene-input.js +56 -0
- package/es/components/fene-input/index.d.ts +4 -0
- package/es/components/fene-input/index.js +3 -0
- 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/notice-icon.js +2 -1
- package/es/components/icons/right-icon.js +1 -0
- package/es/components/icons/search-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 +23 -0
- package/es/components/infinite-scroll/infinite-scroll.d.ts +9 -0
- package/es/components/infinite-scroll/infinite-scroll.js +263 -0
- package/es/components/input/index.d.ts +4 -0
- package/es/components/input/index.js +3 -0
- package/es/components/input/input.css +96 -0
- package/es/components/input/input.d.ts +41 -0
- package/es/components/input/input.js +152 -0
- 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 +102 -0
- package/es/components/list/list.d.ts +20 -0
- package/es/components/list/list.js +29 -0
- package/es/components/marketTag/marketTag.css +4 -4
- package/es/components/money-input/index.d.ts +4 -0
- package/es/components/money-input/index.js +3 -0
- package/es/components/money-input/money-input.css +35 -0
- package/es/components/money-input/money-input.d.ts +27 -0
- package/es/components/money-input/money-input.js +103 -0
- package/es/components/number-keyboard/number-keyboard.css +50 -41
- package/es/components/number-keyboard/number-keyboard.d.ts +1 -0
- package/es/components/number-keyboard/number-keyboard.js +1 -0
- package/es/components/passcode-input/index.d.ts +4 -0
- package/es/components/passcode-input/index.js +3 -0
- package/es/components/passcode-input/passcode-input.css +136 -0
- package/es/components/passcode-input/passcode-input.d.ts +40 -0
- package/es/components/passcode-input/passcode-input.js +127 -0
- package/es/components/pay-input/index.d.ts +4 -0
- package/es/components/pay-input/index.js +3 -0
- package/es/components/pay-input/pay-input.css +136 -0
- package/es/components/pay-input/pay-input.d.ts +14 -0
- package/es/components/pay-input/pay-input.js +115 -0
- 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/protocol/protocol.js +1 -2
- package/es/components/stock-count-keyboard/stock-count-keyboard.css +32 -38
- package/es/components/stock-count-keyboard/stock-count-keyboard.js +1 -1
- package/es/components/stock-keyboard/alphabet-keyboard.css +154 -0
- package/es/components/stock-keyboard/alphabet-keyboard.d.ts +11 -0
- package/es/components/stock-keyboard/alphabet-keyboard.js +100 -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 +107 -71
- package/es/components/stock-keyboard/stock-keyboard.d.ts +2 -2
- package/es/components/stock-keyboard/stock-keyboard.js +41 -9
- package/es/components/tabs/tabs.css +1 -1
- package/es/components/tabs/tabs.js +2 -2
- package/es/components/tabs/tabs.patch.css +1 -0
- package/es/components/virtual-input/index.d.ts +4 -0
- package/es/components/virtual-input/index.js +3 -0
- package/es/components/virtual-input/virtual-input.css +99 -0
- package/es/components/virtual-input/virtual-input.d.ts +45 -0
- package/es/components/virtual-input/virtual-input.js +134 -0
- package/es/global/global.css +12 -3
- package/es/global/theme-dark.css +8 -3
- package/es/global/theme-default.css +4 -0
- package/es/index.d.ts +4 -1
- package/es/index.js +10 -2
- package/package.json +2 -11
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--ebscn-color-keyboard-bg: #d2d5d8;
|
|
3
|
+
--ebscn-color-keyboard-key-bg: #fff;
|
|
4
|
+
--ebscn-color-functionkey-background: #adb3bd;
|
|
5
|
+
--ebscn-color-keyboard-active-background: #E5E5E5;
|
|
6
|
+
}
|
|
7
|
+
html[data-prefers-color-scheme='dark'] .ebscn-alphabet-keyboard-keybord {
|
|
8
|
+
background: url(../../assets/images/keybord_keybord_dark.png) var(--ebscn-color-functionkey-background) no-repeat center;
|
|
9
|
+
background-size: 24px 24px;
|
|
10
|
+
}
|
|
11
|
+
html[data-prefers-color-scheme='dark'] .ebscn-alphabet-keyboard-delete {
|
|
12
|
+
background: url(../../assets/images/delete_dark.png) var(--ebscn-color-functionkey-background) no-repeat center;
|
|
13
|
+
background-size: 24px 24px;
|
|
14
|
+
}
|
|
15
|
+
html[data-prefers-color-scheme='dark'] .ebscn-alphabet-keyboard-shift {
|
|
16
|
+
background: url(../../assets/images/keybord_shift_dark.png) var(--ebscn-color-functionkey-background) no-repeat center;
|
|
17
|
+
background-size: 24px 24px;
|
|
18
|
+
}
|
|
1
19
|
.ebscn-alphabet-keyboard {
|
|
2
20
|
position: fixed;
|
|
3
21
|
bottom: 0;
|
|
@@ -7,7 +25,8 @@
|
|
|
7
25
|
width: 100%;
|
|
8
26
|
transition: all 0.5s;
|
|
9
27
|
align-content: flex-start;
|
|
10
|
-
background: #
|
|
28
|
+
background-color: #fff;
|
|
29
|
+
background-color: var(--ebscn-color-keyboard-bg);
|
|
11
30
|
}
|
|
12
31
|
.ebscn-alphabet-keyboard-darkkey {
|
|
13
32
|
display: flex;
|
|
@@ -16,25 +35,33 @@
|
|
|
16
35
|
width: 11.2%;
|
|
17
36
|
height: 42px;
|
|
18
37
|
border-radius: 5px;
|
|
19
|
-
|
|
20
|
-
background:
|
|
38
|
+
background-color: #adb3bd;
|
|
39
|
+
background-color: var(--ebscn-color-functionkey-background);
|
|
40
|
+
font-size: 17px;
|
|
21
41
|
font-size: var(--ebscn-font-size-9);
|
|
22
42
|
}
|
|
23
43
|
.ebscn-alphabet-keyboard-darkkey:active {
|
|
24
|
-
background: #
|
|
44
|
+
background-color: #e5e5e5;
|
|
45
|
+
background-color: var(--ebscn-color-keyboard-active-background);
|
|
25
46
|
}
|
|
26
47
|
.ebscn-alphabet-keyboard-shift {
|
|
27
48
|
margin-right: 3.73%;
|
|
28
|
-
background: url(../../assets/images/keybord_shift.png)
|
|
49
|
+
background: url(../../assets/images/keybord_shift.png) no-repeat center;
|
|
50
|
+
background-color: #adb3bd;
|
|
51
|
+
background-color: var(--ebscn-color-functionkey-background);
|
|
29
52
|
background-size: 17px 17px;
|
|
30
53
|
}
|
|
31
54
|
.ebscn-alphabet-keyboard-delete {
|
|
32
55
|
margin-left: 2.26%;
|
|
33
|
-
background: url(../../assets/images/delete.png)
|
|
56
|
+
background: url(../../assets/images/delete.png) no-repeat center;
|
|
57
|
+
background-color: #adb3bd;
|
|
58
|
+
background-color: var(--ebscn-color-functionkey-background);
|
|
34
59
|
background-size: 24px 24px;
|
|
35
60
|
}
|
|
36
61
|
.ebscn-alphabet-keyboard-keybord {
|
|
37
|
-
background: url(../../assets/images/keybord_keybord.png)
|
|
62
|
+
background: url(../../assets/images/keybord_keybord.png) no-repeat center;
|
|
63
|
+
background-color: #adb3bd;
|
|
64
|
+
background-color: var(--ebscn-color-functionkey-background);
|
|
38
65
|
background-size: 24px 18px;
|
|
39
66
|
}
|
|
40
67
|
.ebscn-alphabet-keyboard-space {
|
|
@@ -43,9 +70,9 @@
|
|
|
43
70
|
justify-content: center;
|
|
44
71
|
width: 48.4%;
|
|
45
72
|
height: 42px;
|
|
46
|
-
background: var(--ebscn-color-
|
|
73
|
+
background: var(--ebscn-color-keyboard-key-bg);
|
|
47
74
|
border-radius: 5px;
|
|
48
|
-
|
|
75
|
+
font-size: 16px;
|
|
49
76
|
}
|
|
50
77
|
.ebscn-alphabet-keyboard-space:active {
|
|
51
78
|
background: var(--ebscn-color-border);
|
|
@@ -57,7 +84,7 @@
|
|
|
57
84
|
display: flex;
|
|
58
85
|
justify-content: space-between;
|
|
59
86
|
width: 100%;
|
|
60
|
-
padding-top: 3
|
|
87
|
+
padding-top: 3%;
|
|
61
88
|
}
|
|
62
89
|
.ebscn-alphabet-keyboard .ebscn-alphabet-keyboard-firstline-key,
|
|
63
90
|
.ebscn-alphabet-keyboard .ebscn-alphabet-keyboard-secondline-key,
|
|
@@ -68,9 +95,9 @@
|
|
|
68
95
|
justify-content: center;
|
|
69
96
|
width: 8.4%;
|
|
70
97
|
height: 42px;
|
|
71
|
-
background:
|
|
98
|
+
background-color: #fff;
|
|
99
|
+
background-color: var(--ebscn-color-keyboard-key-bg);
|
|
72
100
|
border-radius: 5px;
|
|
73
|
-
box-shadow: 0px 0.5px 0px 0px #888888;
|
|
74
101
|
font-size: 23px;
|
|
75
102
|
font-weight: 400;
|
|
76
103
|
text-align: center;
|
|
@@ -81,7 +108,8 @@
|
|
|
81
108
|
.ebscn-alphabet-keyboard .ebscn-alphabet-keyboard-secondline-key:active,
|
|
82
109
|
.ebscn-alphabet-keyboard .ebscn-alphabet-keyboard-thirdline-key:active,
|
|
83
110
|
.ebscn-alphabet-keyboard .ebscn-alphabet-keyboard-firthline-key:active {
|
|
84
|
-
background:
|
|
111
|
+
background-color: #eee;
|
|
112
|
+
background-color: var(--ebscn-color-border);
|
|
85
113
|
}
|
|
86
114
|
.ebscn-alphabet-keyboard .ebscn-alphabet-keyboard-firstline {
|
|
87
115
|
padding-left: 0.8%;
|
|
@@ -106,13 +134,13 @@
|
|
|
106
134
|
justify-content: center;
|
|
107
135
|
width: 23.46%;
|
|
108
136
|
height: 42px;
|
|
109
|
-
background:
|
|
137
|
+
background-color: #e84225;
|
|
138
|
+
background-color: var(--ebscn-color-primary);
|
|
110
139
|
border-radius: 5px;
|
|
111
|
-
box-shadow: 0px 0.5px 0px 0px #888888;
|
|
112
140
|
font-size: 16px;
|
|
113
141
|
font-weight: 400;
|
|
114
142
|
text-align: center;
|
|
115
|
-
color:
|
|
143
|
+
color: #fff;
|
|
116
144
|
line-height: 22.5px;
|
|
117
145
|
}
|
|
118
146
|
.ebscn-alphabet-keyboard .ebscn-alphabet-keyboard-firthline-confirm:active {
|
|
@@ -16,7 +16,7 @@ function Card(props) {
|
|
|
16
16
|
return null;
|
|
17
17
|
}
|
|
18
18
|
return _react.default.createElement("div", {
|
|
19
|
-
className: (0, _classnames.default)("".concat(classPrefix, "-header"), "".concat(
|
|
19
|
+
className: (0, _classnames.default)("".concat(classPrefix, "-header"), "".concat(typeClassName, "-header"), props.headerClassName),
|
|
20
20
|
style: props.headerStyle,
|
|
21
21
|
onClick: props.onHeaderClick
|
|
22
22
|
}, _react.default.createElement("div", {
|
|
@@ -28,7 +28,7 @@ function Card(props) {
|
|
|
28
28
|
return null;
|
|
29
29
|
}
|
|
30
30
|
return _react.default.createElement("div", {
|
|
31
|
-
className: (0, _classnames.default)("".concat(classPrefix, "-body"), "".concat(
|
|
31
|
+
className: (0, _classnames.default)("".concat(classPrefix, "-body"), "".concat(typeClassName, "-body"), props.bodyClassName),
|
|
32
32
|
style: props.bodyStyle,
|
|
33
33
|
onClick: props.onBodyClick
|
|
34
34
|
}, props.children);
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
.ebscn-Common-input {
|
|
2
|
+
height: 170.5px;
|
|
3
|
+
background: #ffffff;
|
|
4
|
+
padding: 13.5px 16px 13.5px 16px;
|
|
5
|
+
}
|
|
6
|
+
.ebscn-Common-input-middleArea {
|
|
7
|
+
border-bottom: 1px solid ;
|
|
8
|
+
}
|
|
9
|
+
.ebscn-Common-input-middleArea-inputArea {
|
|
10
|
+
display: flex;
|
|
11
|
+
align-items: center;
|
|
12
|
+
justify-content: space-between;
|
|
13
|
+
}
|
|
14
|
+
.ebscn-Common-input-middleArea-unitBox {
|
|
15
|
+
display: flex;
|
|
16
|
+
flex-direction: row;
|
|
17
|
+
margin-left: 45px;
|
|
18
|
+
}
|
|
19
|
+
.ebscn-Common-input-middleArea-unitBox-unit {
|
|
20
|
+
height: 15px;
|
|
21
|
+
font-size: 11px;
|
|
22
|
+
font-weight: 400;
|
|
23
|
+
color: #999999;
|
|
24
|
+
}
|
|
25
|
+
.ebscn-Common-input-middleArea-unitBox-line {
|
|
26
|
+
width: 0.5px;
|
|
27
|
+
height: 15px;
|
|
28
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { NativeProps } from '../../utils/native-props';
|
|
3
|
+
import { InputProps } from "../input";
|
|
4
|
+
type tipProps = {
|
|
5
|
+
isShowTip: boolean;
|
|
6
|
+
tipComponent: React.ReactNode;
|
|
7
|
+
};
|
|
8
|
+
type unitProps = {
|
|
9
|
+
isShowUnit: boolean;
|
|
10
|
+
unitComponent: React.ReactNode;
|
|
11
|
+
};
|
|
12
|
+
export type CommonInputProps = {
|
|
13
|
+
value?: string;
|
|
14
|
+
defaultValue?: string;
|
|
15
|
+
onChange?: (val: string) => void;
|
|
16
|
+
isShowUnit?: boolean;
|
|
17
|
+
isShowLine: boolean;
|
|
18
|
+
tipProps?: tipProps;
|
|
19
|
+
unitProps?: unitProps;
|
|
20
|
+
clearable: boolean;
|
|
21
|
+
inputProps?: InputProps;
|
|
22
|
+
inputleftComponent?: React.ReactNode;
|
|
23
|
+
prefixComponent?: React.ReactNode;
|
|
24
|
+
suffixComponent?: React.ReactNode;
|
|
25
|
+
} & NativeProps;
|
|
26
|
+
export declare function CommonInput(p: CommonInputProps): JSX.Element;
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.CommonInput = CommonInput;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _nativeProps = require("../../utils/native-props");
|
|
9
|
+
var _withDefaultProps = require("../../utils/with-default-props");
|
|
10
|
+
var _tip = _interopRequireDefault(require("./demos/component/tip"));
|
|
11
|
+
var _usePropsValue = require("@ebscn/ui/utils/use-props-value");
|
|
12
|
+
var _input = _interopRequireDefault(require("../input"));
|
|
13
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
15
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
16
|
+
var __assign = void 0 && (void 0).__assign || function () {
|
|
17
|
+
__assign = Object.assign || function (t) {
|
|
18
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
19
|
+
s = arguments[i];
|
|
20
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
21
|
+
}
|
|
22
|
+
return t;
|
|
23
|
+
};
|
|
24
|
+
return __assign.apply(this, arguments);
|
|
25
|
+
};
|
|
26
|
+
var classPrefix = 'ebscn-Common-input';
|
|
27
|
+
var defaultProps = {
|
|
28
|
+
// inputleftComponent: <InputLeft></InputLeft>,
|
|
29
|
+
tipComponent: _react.default.createElement(_tip.default, null),
|
|
30
|
+
defaultValue: ''
|
|
31
|
+
};
|
|
32
|
+
function CommonInput(p) {
|
|
33
|
+
var _a, _b, _c;
|
|
34
|
+
var props = (0, _withDefaultProps.mergeProps)(p, defaultProps);
|
|
35
|
+
var _d = (0, _usePropsValue.usePropsValue)(props),
|
|
36
|
+
value = _d[0],
|
|
37
|
+
setValue = _d[1];
|
|
38
|
+
var _e = (0, _react.useState)('#ebebeb'),
|
|
39
|
+
color = _e[0],
|
|
40
|
+
setColor = _e[1];
|
|
41
|
+
var _f = (0, _react.useState)(false),
|
|
42
|
+
showTip = _f[0],
|
|
43
|
+
setShowTip = _f[1];
|
|
44
|
+
var _g = (0, _react.useState)(true),
|
|
45
|
+
clearable = _g[0],
|
|
46
|
+
setClearable = _g[1];
|
|
47
|
+
console.log(p, 'CommonProp');
|
|
48
|
+
function changeColor(isShowLine, color) {
|
|
49
|
+
if (isShowLine) {
|
|
50
|
+
setColor(color);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
// const {titleLeftComponent,inputProps,} = props
|
|
54
|
+
return (0, _nativeProps.withNativeProps)(props, _react.default.createElement("div", {
|
|
55
|
+
className: "".concat(classPrefix)
|
|
56
|
+
}, _react.default.createElement("div", {
|
|
57
|
+
className: "".concat(classPrefix, "-middleArea"),
|
|
58
|
+
style: {
|
|
59
|
+
'borderBottomColor': "".concat(((_a = props.tipProps) === null || _a === void 0 ? void 0 : _a.isShowTip) ? 'red' : color)
|
|
60
|
+
}
|
|
61
|
+
}, _react.default.createElement("div", {
|
|
62
|
+
className: "".concat(classPrefix, "-middleArea-inputArea")
|
|
63
|
+
}, props.prefixComponent, props.inputleftComponent, _react.default.createElement(_input.default, __assign({
|
|
64
|
+
onFocus: function () {
|
|
65
|
+
changeColor(props.isShowLine, 'blue');
|
|
66
|
+
},
|
|
67
|
+
onBlur: function () {
|
|
68
|
+
changeColor(props.isShowLine, '#ebebeb');
|
|
69
|
+
},
|
|
70
|
+
value: value
|
|
71
|
+
}, props.inputProps, {
|
|
72
|
+
onChange: function (val) {
|
|
73
|
+
var _a;
|
|
74
|
+
console.log((_a = props.tipProps) === null || _a === void 0 ? void 0 : _a.isShowTip, 'isShowTIP');
|
|
75
|
+
// props.tipProps?.isShowTip ? setColor('red') : setColor('blue')
|
|
76
|
+
setValue(val);
|
|
77
|
+
},
|
|
78
|
+
clearable: true
|
|
79
|
+
})), props.suffixComponent), ((_b = props.unitProps) === null || _b === void 0 ? void 0 : _b.isShowUnit) ? _react.default.createElement("div", {
|
|
80
|
+
className: "".concat(classPrefix, "-middleArea-unitBox")
|
|
81
|
+
}, _react.default.createElement("div", {
|
|
82
|
+
className: "".concat(classPrefix, "-middleArea-unitBox-line")
|
|
83
|
+
}), _react.default.createElement("div", {
|
|
84
|
+
className: "".concat(classPrefix, "-middleArea-unitBox-unit")
|
|
85
|
+
}, props.unitProps.unitComponent)) : _react.default.createElement(_react.default.Fragment, null)), ((_c = props.tipProps) === null || _c === void 0 ? void 0 : _c.isShowTip) ? _react.default.createElement("div", {
|
|
86
|
+
className: "".concat(classPrefix, "-tipArea")
|
|
87
|
+
}, props.tipProps.tipComponent) : _react.default.createElement(_react.default.Fragment, null)));
|
|
88
|
+
}
|
|
@@ -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,48 @@
|
|
|
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;
|
|
55
66
|
color: #333;
|
|
67
|
+
color: var(--ebscn-color-text);
|
|
56
68
|
border-radius: 10px;
|
|
69
|
+
font-size: 14px;
|
|
57
70
|
font-size: var(--ebscn-font-size-6);
|
|
58
71
|
}
|
|
72
|
+
.ebscn-date-range-picker-buttons-wrap .ebscn-date-range-picker-button-active {
|
|
73
|
+
color: #e84225;
|
|
74
|
+
color: var(--ebscn-color-primary);
|
|
75
|
+
background-color: #fef4f2;
|
|
76
|
+
}
|
|
59
77
|
.ebscn-date-range-picker-values-wrap {
|
|
60
78
|
display: flex;
|
|
79
|
+
justify-content: space-between;
|
|
61
80
|
justify-content: center;
|
|
81
|
+
align-items: center;
|
|
62
82
|
gap: 20px;
|
|
63
83
|
margin-top: 12px;
|
|
64
84
|
}
|
|
@@ -70,14 +90,17 @@
|
|
|
70
90
|
text-align: center;
|
|
71
91
|
}
|
|
72
92
|
.ebscn-date-range-picker-values-wrap .ebscn-date-range-picker-value-active {
|
|
73
|
-
|
|
93
|
+
color: var(--ebscn-color-blue);
|
|
94
|
+
border-bottom-color: var(--ebscn-color-blue);
|
|
74
95
|
}
|
|
75
96
|
.ebscn-date-range-picker-tip {
|
|
76
97
|
display: flex;
|
|
77
98
|
justify-content: center;
|
|
78
99
|
align-items: center;
|
|
79
100
|
margin-top: 12px;
|
|
101
|
+
color: #e84225;
|
|
80
102
|
color: var(--ebscn-color-primary);
|
|
103
|
+
font-size: 14px;
|
|
81
104
|
font-size: var(--ebscn-font-size-6);
|
|
82
105
|
}
|
|
83
106
|
.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;
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.DateRangePicker = void 0;
|
|
7
|
+
exports.isSameDate = isSameDate;
|
|
7
8
|
var _ahooks = require("ahooks");
|
|
8
|
-
var _safeArea = _interopRequireDefault(require("../safe-area"));
|
|
9
9
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
10
10
|
var _dayjs = _interopRequireDefault(require("dayjs"));
|
|
11
11
|
var _react = _interopRequireWildcard(require("react"));
|
|
@@ -16,6 +16,7 @@ var _withDefaultProps = require("../../utils/with-default-props");
|
|
|
16
16
|
var _datePickerView = _interopRequireDefault(require("../date-picker-view"));
|
|
17
17
|
var _pickerUtils = require("../picker/picker-utils");
|
|
18
18
|
var _popup = _interopRequireDefault(require("../popup"));
|
|
19
|
+
var _safeArea = _interopRequireDefault(require("../safe-area"));
|
|
19
20
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
20
21
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
21
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -147,6 +148,11 @@ var defaultProps = {
|
|
|
147
148
|
precision: 'day',
|
|
148
149
|
quickButtons: []
|
|
149
150
|
};
|
|
151
|
+
function isSameDate(date1, date2) {
|
|
152
|
+
var str1 = "".concat(date1.getFullYear(), "-").concat(date1.getMonth(), "-").concat(date1.getDate());
|
|
153
|
+
var str2 = "".concat(date2.getFullYear(), "-").concat(date2.getMonth(), "-").concat(date2.getDate());
|
|
154
|
+
return str1 === str2;
|
|
155
|
+
}
|
|
150
156
|
var DateRangePicker = exports.DateRangePicker = (0, _react.memo)((0, _react.forwardRef)(function (p, ref) {
|
|
151
157
|
var _a, _b;
|
|
152
158
|
var _c;
|
|
@@ -225,7 +231,7 @@ var DateRangePicker = exports.DateRangePicker = (0, _react.memo)((0, _react.forw
|
|
|
225
231
|
}
|
|
226
232
|
});
|
|
227
233
|
var onQuickClick = function (value) {
|
|
228
|
-
|
|
234
|
+
onChange(value);
|
|
229
235
|
};
|
|
230
236
|
var renderLabel = function (_, value) {
|
|
231
237
|
return value;
|
|
@@ -246,14 +252,14 @@ var DateRangePicker = exports.DateRangePicker = (0, _react.memo)((0, _react.forw
|
|
|
246
252
|
className: "".concat(classPrefix, "-header-title")
|
|
247
253
|
}, props.title), _react.default.createElement("a", {
|
|
248
254
|
role: "button",
|
|
249
|
-
className: (0, _classnames.default)("".concat(classPrefix, "-header-button"), props.loading && "".concat(classPrefix, "-header-button-disabled")),
|
|
255
|
+
className: (0, _classnames.default)("".concat(classPrefix, "-header-button"), (props.loading || props.tip) && "".concat(classPrefix, "-header-button-disabled")),
|
|
250
256
|
onClick: function () {
|
|
251
|
-
if (props.loading) return;
|
|
257
|
+
if (props.loading || props.tip) return;
|
|
252
258
|
setValue(innerValue, true);
|
|
253
259
|
setVisible(false);
|
|
254
260
|
},
|
|
255
261
|
"aria-disabled": props.loading
|
|
256
|
-
}, props.confirmText)), props.quickButtons.length
|
|
262
|
+
}, props.confirmText)), props.quickButtons.length ? _react.default.createElement("div", {
|
|
257
263
|
className: "".concat(classPrefix, "-buttons-wrap")
|
|
258
264
|
}, props.quickButtons.map(function (_a) {
|
|
259
265
|
var label = _a.label,
|
|
@@ -262,16 +268,16 @@ var DateRangePicker = exports.DateRangePicker = (0, _react.memo)((0, _react.forw
|
|
|
262
268
|
onClick: function () {
|
|
263
269
|
return onQuickClick(value);
|
|
264
270
|
},
|
|
265
|
-
className: "".concat(classPrefix, "-button")
|
|
271
|
+
className: "".concat(classPrefix, "-button ").concat(isSameDate(value[0], innerValue[0]) && isSameDate(value[1], innerValue[1]) ? "".concat(classPrefix, "-button-active") : '')
|
|
266
272
|
}, label);
|
|
267
|
-
})), _react.default.createElement("div", {
|
|
273
|
+
})) : null, _react.default.createElement("div", {
|
|
268
274
|
className: "".concat(classPrefix, "-values-wrap")
|
|
269
275
|
}, _react.default.createElement("div", {
|
|
270
276
|
className: (0, _classnames.default)("".concat(classPrefix, "-value"), (_a = {}, _a["".concat(classPrefix, "-value-active")] = activeIndex === 0, _a)),
|
|
271
277
|
onClick: function () {
|
|
272
278
|
return setActiveIndex(0);
|
|
273
279
|
}
|
|
274
|
-
}, (0, _dayjs.default)(innerValue[0]).format('YYYY-MM-DD')), _react.default.createElement("div", {
|
|
280
|
+
}, (0, _dayjs.default)(innerValue[0]).format('YYYY-MM-DD')), _react.default.createElement("span", null, "\u81F3"), _react.default.createElement("div", {
|
|
275
281
|
className: (0, _classnames.default)("".concat(classPrefix, "-value"), (_b = {}, _b["".concat(classPrefix, "-value-active")] = activeIndex === 1, _b)),
|
|
276
282
|
onClick: function () {
|
|
277
283
|
return setActiveIndex(1);
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
.ebscn-fene-input {
|
|
2
|
+
height: 170.5px;
|
|
3
|
+
background: #ffffff;
|
|
4
|
+
padding: 13.5px 16px 13.5px 16px;
|
|
5
|
+
}
|
|
6
|
+
.ebscn-fene-input-topArea {
|
|
7
|
+
display: flex;
|
|
8
|
+
align-items: center;
|
|
9
|
+
justify-content: space-between;
|
|
10
|
+
margin-bottom: 23.66px;
|
|
11
|
+
}
|
|
12
|
+
.ebscn-fene-input-middleArea {
|
|
13
|
+
border-bottom: 1px solid #ebebeb;
|
|
14
|
+
}
|
|
15
|
+
.ebscn-fene-input-middleArea-inputArea {
|
|
16
|
+
display: flex;
|
|
17
|
+
align-items: center;
|
|
18
|
+
justify-content: space-between;
|
|
19
|
+
}
|
|
20
|
+
.ebscn-fene-input-middleArea-unitBox {
|
|
21
|
+
display: flex;
|
|
22
|
+
flex-direction: row;
|
|
23
|
+
margin-left: 45px;
|
|
24
|
+
}
|
|
25
|
+
.ebscn-fene-input-middleArea-unitBox-unit {
|
|
26
|
+
height: 15px;
|
|
27
|
+
font-size: 11px;
|
|
28
|
+
font-weight: 400;
|
|
29
|
+
color: #999999;
|
|
30
|
+
}
|
|
31
|
+
.ebscn-fene-input-middleArea-unitBox-line {
|
|
32
|
+
width: 0.5px;
|
|
33
|
+
height: 15px;
|
|
34
|
+
border: 1px dashed #ebebeb;
|
|
35
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { NativeProps } from '../../utils/native-props';
|
|
3
|
+
import { InputProps } from "../input";
|
|
4
|
+
export type FeneInputProps = {
|
|
5
|
+
titleLeftComponent?: React.ReactNode;
|
|
6
|
+
titleRightComponent?: React.ReactNode;
|
|
7
|
+
inputProps?: InputProps;
|
|
8
|
+
inputleftComponent?: React.ReactNode;
|
|
9
|
+
inputrightComponent?: React.ReactNode;
|
|
10
|
+
tipComponent?: React.ReactNode;
|
|
11
|
+
contentComponent?: React.ReactNode;
|
|
12
|
+
footerComponent?: React.ReactNode;
|
|
13
|
+
} & NativeProps;
|
|
14
|
+
export declare function FeneInput(p: FeneInputProps): JSX.Element;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.FeneInput = FeneInput;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _nativeProps = require("../../utils/native-props");
|
|
9
|
+
var _withDefaultProps = require("../../utils/with-default-props");
|
|
10
|
+
var _titleLeft = _interopRequireDefault(require("./demos/component/title-left"));
|
|
11
|
+
var _titleRight = _interopRequireDefault(require("./demos/component/title-right"));
|
|
12
|
+
var _inputLeft = _interopRequireDefault(require("./demos/component/input-left"));
|
|
13
|
+
var _inputRight = _interopRequireDefault(require("./demos/component/input-right"));
|
|
14
|
+
var _tip = _interopRequireDefault(require("./demos/component/tip"));
|
|
15
|
+
var _footer = _interopRequireDefault(require("./demos/component/footer"));
|
|
16
|
+
var _input = _interopRequireDefault(require("../input"));
|
|
17
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
18
|
+
var __assign = void 0 && (void 0).__assign || function () {
|
|
19
|
+
__assign = Object.assign || function (t) {
|
|
20
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
21
|
+
s = arguments[i];
|
|
22
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
23
|
+
}
|
|
24
|
+
return t;
|
|
25
|
+
};
|
|
26
|
+
return __assign.apply(this, arguments);
|
|
27
|
+
};
|
|
28
|
+
var classPrefix = 'ebscn-fene-input';
|
|
29
|
+
var defaultProps = {
|
|
30
|
+
titleLeftComponent: _react.default.createElement(_titleLeft.default, null),
|
|
31
|
+
titleRightComponent: _react.default.createElement(_titleRight.default, null),
|
|
32
|
+
inputleftComponent: _react.default.createElement(_inputLeft.default, null),
|
|
33
|
+
inputrightComponent: _react.default.createElement(_inputRight.default, null),
|
|
34
|
+
tipComponent: _react.default.createElement(_tip.default, null),
|
|
35
|
+
// contentComponent: <Content></Content>,
|
|
36
|
+
footerComponent: _react.default.createElement(_footer.default, null)
|
|
37
|
+
};
|
|
38
|
+
function FeneInput(p) {
|
|
39
|
+
var props = (0, _withDefaultProps.mergeProps)(p, defaultProps);
|
|
40
|
+
console.log(p, 'FeneProp');
|
|
41
|
+
// const {titleLeftComponent,inputProps,} = props
|
|
42
|
+
return (0, _nativeProps.withNativeProps)(props, _react.default.createElement("div", {
|
|
43
|
+
className: "".concat(classPrefix)
|
|
44
|
+
}, _react.default.createElement("div", {
|
|
45
|
+
className: "".concat(classPrefix, "-topArea")
|
|
46
|
+
}, props.titleLeftComponent, props.titleRightComponent), _react.default.createElement("div", {
|
|
47
|
+
className: "".concat(classPrefix, "-middleArea")
|
|
48
|
+
}, _react.default.createElement("div", {
|
|
49
|
+
className: "".concat(classPrefix, "-middleArea-inputArea")
|
|
50
|
+
}, props.inputleftComponent, _react.default.createElement(_input.default, __assign({}, props.inputProps, {
|
|
51
|
+
clearable: true
|
|
52
|
+
})), props.inputrightComponent), _react.default.createElement("div", {
|
|
53
|
+
className: "".concat(classPrefix, "-middleArea-unitBox")
|
|
54
|
+
}, _react.default.createElement("div", {
|
|
55
|
+
className: "".concat(classPrefix, "-middleArea-unitBox-line")
|
|
56
|
+
}))), _react.default.createElement("div", {
|
|
57
|
+
className: "".concat(classPrefix, "-tipArea")
|
|
58
|
+
}, props.tipComponent), _react.default.createElement("div", {
|
|
59
|
+
className: "".concat(classPrefix, "-contentArea")
|
|
60
|
+
}, props.contentComponent), _react.default.createElement("div", {
|
|
61
|
+
className: "".concat(classPrefix, "-bottomArea")
|
|
62
|
+
}, props.footerComponent)));
|
|
63
|
+
}
|
|
@@ -18,6 +18,7 @@ var BackIcon = (0, _react.memo)(function (props) {
|
|
|
18
18
|
width: "1em",
|
|
19
19
|
height: "1em"
|
|
20
20
|
}, _react.default.createElement("path", {
|
|
21
|
+
fill: "currentColor",
|
|
21
22
|
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",
|
|
22
23
|
"p-id": "8061"
|
|
23
24
|
})));
|
|
@@ -18,6 +18,7 @@ var ClearIcon = (0, _react.memo)(function (props) {
|
|
|
18
18
|
width: "1em",
|
|
19
19
|
height: "1em"
|
|
20
20
|
}, _react.default.createElement("path", {
|
|
21
|
+
fill: "currentColor",
|
|
21
22
|
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",
|
|
22
23
|
"p-id": "8691"
|
|
23
24
|
})));
|