@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
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.InternalToast = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
9
|
+
var _icons = require("../icons");
|
|
10
|
+
var _mask = _interopRequireDefault(require("../mask"));
|
|
11
|
+
var _withDefaultProps = require("../../utils/with-default-props");
|
|
12
|
+
var _autoCenter = _interopRequireDefault(require("../auto-center"));
|
|
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-toast";
|
|
27
|
+
var defaultProps = {
|
|
28
|
+
maskClickable: true,
|
|
29
|
+
stopPropagation: ['click']
|
|
30
|
+
};
|
|
31
|
+
var InternalToast = function (p) {
|
|
32
|
+
var props = (0, _withDefaultProps.mergeProps)(defaultProps, p);
|
|
33
|
+
var maskClickable = props.maskClickable,
|
|
34
|
+
content = props.content,
|
|
35
|
+
icon = props.icon,
|
|
36
|
+
position = props.position;
|
|
37
|
+
var iconElement = (0, _react.useMemo)(function () {
|
|
38
|
+
if (icon === null || icon === undefined) return null;
|
|
39
|
+
switch (icon) {
|
|
40
|
+
case 'success':
|
|
41
|
+
return _react.default.createElement(_icons.CheckOnlyIcon, {
|
|
42
|
+
className: "".concat(classPrefix, "-icon-success")
|
|
43
|
+
});
|
|
44
|
+
case 'fail':
|
|
45
|
+
return _react.default.createElement(_icons.CloseIcon, {
|
|
46
|
+
className: "".concat(classPrefix, "-icon-fail")
|
|
47
|
+
});
|
|
48
|
+
default:
|
|
49
|
+
return icon;
|
|
50
|
+
}
|
|
51
|
+
}, [icon]);
|
|
52
|
+
var top = (0, _react.useMemo)(function () {
|
|
53
|
+
switch (position) {
|
|
54
|
+
case 'top':
|
|
55
|
+
return '20%';
|
|
56
|
+
case 'bottom':
|
|
57
|
+
return '80%';
|
|
58
|
+
default:
|
|
59
|
+
return '50%';
|
|
60
|
+
}
|
|
61
|
+
}, [position]);
|
|
62
|
+
return _react.default.createElement(_mask.default, {
|
|
63
|
+
visible: props.visible,
|
|
64
|
+
destroyOnClose: true,
|
|
65
|
+
opacity: 0,
|
|
66
|
+
disableBodyScroll: !maskClickable,
|
|
67
|
+
getContainer: props.getContainer,
|
|
68
|
+
afterClose: props.afterClose,
|
|
69
|
+
style: __assign({
|
|
70
|
+
pointerEvents: maskClickable ? 'none' : 'auto'
|
|
71
|
+
}, props.maskStyle),
|
|
72
|
+
className: (0, _classnames.default)("".concat(classPrefix, "-mask"), props.maskClassName),
|
|
73
|
+
stopPropagation: props.stopPropagation
|
|
74
|
+
}, _react.default.createElement("div", {
|
|
75
|
+
className: (0, _classnames.default)("".concat(classPrefix, "-wrap"))
|
|
76
|
+
}, _react.default.createElement("div", {
|
|
77
|
+
style: {
|
|
78
|
+
top: top
|
|
79
|
+
},
|
|
80
|
+
className: (0, _classnames.default)("".concat(classPrefix, "-main"), icon ? "".concat(classPrefix, "-main-icon") : "".concat(classPrefix, "-main-text"))
|
|
81
|
+
}, iconElement && _react.default.createElement("div", {
|
|
82
|
+
className: "".concat(classPrefix, "-icon")
|
|
83
|
+
}, iconElement), _react.default.createElement(_autoCenter.default, null, content))));
|
|
84
|
+
};
|
|
85
|
+
exports.InternalToast = InternalToast;
|
package/cjs/global/global.css
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
--ebscn-color-warning: #ff8f1f;
|
|
22
22
|
--ebscn-color-danger: #ff3141;
|
|
23
23
|
--ebscn-color-yellow: #ff9f18;
|
|
24
|
-
--ebscn-color-wathet: #
|
|
24
|
+
--ebscn-color-wathet: #fef4f2;
|
|
25
25
|
--ebscn-color-text: #333333;
|
|
26
26
|
--ebscn-color-text-secondary: #666666;
|
|
27
27
|
--ebscn-color-weak: #999999;
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
--ebscn-color-background: #ffffff;
|
|
31
31
|
--ebscn-color-highlight: var(--ebscn-color-danger);
|
|
32
32
|
--ebscn-color-white: #ffffff;
|
|
33
|
-
--ebscn-color-box: #
|
|
33
|
+
--ebscn-color-box: #f8f9fc;
|
|
34
34
|
--ebscn-color-text-light-solid: var(--ebscn-color-white);
|
|
35
35
|
--ebscn-color-text-dark-solid: #000000;
|
|
36
36
|
--ebscn-color-fill-content: var(--ebscn-color-box);
|
|
@@ -45,24 +45,39 @@
|
|
|
45
45
|
--ebscn-color-golden: #b47816;
|
|
46
46
|
--ebscn-color-grey: rgba(0, 0, 0, 0.7);
|
|
47
47
|
--ebscn-color-split-line: #EBEBEB;
|
|
48
|
+
--ebscn-color-keyboard-bg: #d3d5d8;
|
|
49
|
+
--ebscn-color-keyboard-key-bg: #fff;
|
|
50
|
+
--ebscn-color-keyboard-fckey-bg: #adb3bd;
|
|
51
|
+
--ebscn-color-keyboard-key-bg-active: #e5e5e5;
|
|
52
|
+
--ebscn-color-keyboard-fckey-bg-active: #9ba1aa;
|
|
53
|
+
--ebscn-color-keyboard-fckey-border: #888;
|
|
54
|
+
--ebscn-color-keyboard-key-border: #888;
|
|
48
55
|
}
|
|
49
56
|
html[data-prefers-color-scheme='dark'] {
|
|
50
|
-
--ebscn-color-
|
|
57
|
+
--ebscn-color-blue: #4c7cf1;
|
|
51
58
|
--ebscn-color-success: #34b368;
|
|
52
59
|
--ebscn-color-warning: #ffa930;
|
|
53
60
|
--ebscn-color-danger: #ff4a58;
|
|
54
61
|
--ebscn-color-yellow: #ffa930;
|
|
55
62
|
--ebscn-color-orange: #e65a2b;
|
|
56
63
|
--ebscn-color-wathet: #0d2543;
|
|
57
|
-
--ebscn-color-text: #
|
|
64
|
+
--ebscn-color-text: #ebebeb;
|
|
58
65
|
--ebscn-color-text-secondary: #b3b3b3;
|
|
59
|
-
--ebscn-color-weak: #
|
|
66
|
+
--ebscn-color-weak: #7a7a7a;
|
|
60
67
|
--ebscn-color-light: #4d4d4d;
|
|
61
68
|
--ebscn-color-border: #2b2b2b;
|
|
62
69
|
--ebscn-color-box: #0a0a0a;
|
|
63
70
|
--ebscn-color-background: #1a1a1a;
|
|
64
71
|
--ebscn-color-background-body: var(--ebscn-color-background);
|
|
65
72
|
--ebscn-border-color: var(--ebscn-color-border);
|
|
73
|
+
--ebscn-color-split-line: #2B2B2B;
|
|
74
|
+
--ebscn-color-keyboard-bg: #1a1a1a;
|
|
75
|
+
--ebscn-color-keyboard-key-bg: #474747;
|
|
76
|
+
--ebscn-color-keyboard-fckey-bg: #292929;
|
|
77
|
+
--ebscn-color-keyboard-key-bg-active: #323232;
|
|
78
|
+
--ebscn-color-keyboard-fckey-bg-active: #252525;
|
|
79
|
+
--ebscn-color-keyboard-fckey-border: #111;
|
|
80
|
+
--ebscn-color-keyboard-key-border: #333;
|
|
66
81
|
}
|
|
67
82
|
:root {
|
|
68
83
|
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
@@ -1,18 +1,26 @@
|
|
|
1
1
|
html[data-prefers-color-scheme='dark'] {
|
|
2
|
-
--ebscn-color-
|
|
2
|
+
--ebscn-color-blue: #4c7cf1;
|
|
3
3
|
--ebscn-color-success: #34b368;
|
|
4
4
|
--ebscn-color-warning: #ffa930;
|
|
5
5
|
--ebscn-color-danger: #ff4a58;
|
|
6
6
|
--ebscn-color-yellow: #ffa930;
|
|
7
7
|
--ebscn-color-orange: #e65a2b;
|
|
8
8
|
--ebscn-color-wathet: #0d2543;
|
|
9
|
-
--ebscn-color-text: #
|
|
9
|
+
--ebscn-color-text: #ebebeb;
|
|
10
10
|
--ebscn-color-text-secondary: #b3b3b3;
|
|
11
|
-
--ebscn-color-weak: #
|
|
11
|
+
--ebscn-color-weak: #7a7a7a;
|
|
12
12
|
--ebscn-color-light: #4d4d4d;
|
|
13
13
|
--ebscn-color-border: #2b2b2b;
|
|
14
14
|
--ebscn-color-box: #0a0a0a;
|
|
15
15
|
--ebscn-color-background: #1a1a1a;
|
|
16
16
|
--ebscn-color-background-body: var(--ebscn-color-background);
|
|
17
17
|
--ebscn-border-color: var(--ebscn-color-border);
|
|
18
|
+
--ebscn-color-split-line: #2B2B2B;
|
|
19
|
+
--ebscn-color-keyboard-bg: #1a1a1a;
|
|
20
|
+
--ebscn-color-keyboard-key-bg: #474747;
|
|
21
|
+
--ebscn-color-keyboard-fckey-bg: #292929;
|
|
22
|
+
--ebscn-color-keyboard-key-bg-active: #323232;
|
|
23
|
+
--ebscn-color-keyboard-fckey-bg-active: #252525;
|
|
24
|
+
--ebscn-color-keyboard-fckey-border: #111;
|
|
25
|
+
--ebscn-color-keyboard-key-border: #333;
|
|
18
26
|
}
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
--ebscn-color-warning: #ff8f1f;
|
|
22
22
|
--ebscn-color-danger: #ff3141;
|
|
23
23
|
--ebscn-color-yellow: #ff9f18;
|
|
24
|
-
--ebscn-color-wathet: #
|
|
24
|
+
--ebscn-color-wathet: #fef4f2;
|
|
25
25
|
--ebscn-color-text: #333333;
|
|
26
26
|
--ebscn-color-text-secondary: #666666;
|
|
27
27
|
--ebscn-color-weak: #999999;
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
--ebscn-color-background: #ffffff;
|
|
31
31
|
--ebscn-color-highlight: var(--ebscn-color-danger);
|
|
32
32
|
--ebscn-color-white: #ffffff;
|
|
33
|
-
--ebscn-color-box: #
|
|
33
|
+
--ebscn-color-box: #f8f9fc;
|
|
34
34
|
--ebscn-color-text-light-solid: var(--ebscn-color-white);
|
|
35
35
|
--ebscn-color-text-dark-solid: #000000;
|
|
36
36
|
--ebscn-color-fill-content: var(--ebscn-color-box);
|
|
@@ -45,4 +45,11 @@
|
|
|
45
45
|
--ebscn-color-golden: #b47816;
|
|
46
46
|
--ebscn-color-grey: rgba(0, 0, 0, 0.7);
|
|
47
47
|
--ebscn-color-split-line: #EBEBEB;
|
|
48
|
+
--ebscn-color-keyboard-bg: #d3d5d8;
|
|
49
|
+
--ebscn-color-keyboard-key-bg: #fff;
|
|
50
|
+
--ebscn-color-keyboard-fckey-bg: #adb3bd;
|
|
51
|
+
--ebscn-color-keyboard-key-bg-active: #e5e5e5;
|
|
52
|
+
--ebscn-color-keyboard-fckey-bg-active: #9ba1aa;
|
|
53
|
+
--ebscn-color-keyboard-fckey-border: #888;
|
|
54
|
+
--ebscn-color-keyboard-key-border: #888;
|
|
48
55
|
}
|
package/cjs/index.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ export { default as PickerView } from './components/picker-view';
|
|
|
20
20
|
export { default as Popup } from './components/popup';
|
|
21
21
|
export { default as ProSelector } from './components/pro-selector';
|
|
22
22
|
export { default as Protocal } from './components/protocol';
|
|
23
|
+
export { default as Popover } from './components/popover';
|
|
23
24
|
export { default as PullToRefresh } from './components/pull-to-refresh';
|
|
24
25
|
export { default as Radio } from './components/radio';
|
|
25
26
|
export { default as SafeArea } from './components/safe-area';
|
|
@@ -36,3 +37,6 @@ export { default as Tabs } from './components/tabs';
|
|
|
36
37
|
export { default as Tip } from './components/tip';
|
|
37
38
|
export { default as ToastLoading } from './components/toastLoading';
|
|
38
39
|
export { default as Input } from './components/input';
|
|
40
|
+
export { default as InfiniteScroll } from './components/infinite-scroll';
|
|
41
|
+
export { default as List } from './components/list';
|
|
42
|
+
export { default as Toast } from './components/toast';
|
package/cjs/index.js
CHANGED
|
@@ -26,6 +26,7 @@ var _exportNames = {
|
|
|
26
26
|
Popup: true,
|
|
27
27
|
ProSelector: true,
|
|
28
28
|
Protocal: true,
|
|
29
|
+
Popover: true,
|
|
29
30
|
PullToRefresh: true,
|
|
30
31
|
Radio: true,
|
|
31
32
|
SafeArea: true,
|
|
@@ -41,7 +42,10 @@ var _exportNames = {
|
|
|
41
42
|
Tabs: true,
|
|
42
43
|
Tip: true,
|
|
43
44
|
ToastLoading: true,
|
|
44
|
-
Input: true
|
|
45
|
+
Input: true,
|
|
46
|
+
InfiniteScroll: true,
|
|
47
|
+
List: true,
|
|
48
|
+
Toast: true
|
|
45
49
|
};
|
|
46
50
|
Object.defineProperty(exports, "AlphabetKeyboard", {
|
|
47
51
|
enumerable: true,
|
|
@@ -103,12 +107,24 @@ Object.defineProperty(exports, "ImageViewer", {
|
|
|
103
107
|
return _imageViewer.default;
|
|
104
108
|
}
|
|
105
109
|
});
|
|
110
|
+
Object.defineProperty(exports, "InfiniteScroll", {
|
|
111
|
+
enumerable: true,
|
|
112
|
+
get: function () {
|
|
113
|
+
return _infiniteScroll.default;
|
|
114
|
+
}
|
|
115
|
+
});
|
|
106
116
|
Object.defineProperty(exports, "Input", {
|
|
107
117
|
enumerable: true,
|
|
108
118
|
get: function () {
|
|
109
119
|
return _input.default;
|
|
110
120
|
}
|
|
111
121
|
});
|
|
122
|
+
Object.defineProperty(exports, "List", {
|
|
123
|
+
enumerable: true,
|
|
124
|
+
get: function () {
|
|
125
|
+
return _list.default;
|
|
126
|
+
}
|
|
127
|
+
});
|
|
112
128
|
Object.defineProperty(exports, "MarketTag", {
|
|
113
129
|
enumerable: true,
|
|
114
130
|
get: function () {
|
|
@@ -157,6 +173,12 @@ Object.defineProperty(exports, "PickerView", {
|
|
|
157
173
|
return _pickerView.default;
|
|
158
174
|
}
|
|
159
175
|
});
|
|
176
|
+
Object.defineProperty(exports, "Popover", {
|
|
177
|
+
enumerable: true,
|
|
178
|
+
get: function () {
|
|
179
|
+
return _popover.default;
|
|
180
|
+
}
|
|
181
|
+
});
|
|
160
182
|
Object.defineProperty(exports, "Popup", {
|
|
161
183
|
enumerable: true,
|
|
162
184
|
get: function () {
|
|
@@ -265,6 +287,12 @@ Object.defineProperty(exports, "Tip", {
|
|
|
265
287
|
return _tip.default;
|
|
266
288
|
}
|
|
267
289
|
});
|
|
290
|
+
Object.defineProperty(exports, "Toast", {
|
|
291
|
+
enumerable: true,
|
|
292
|
+
get: function () {
|
|
293
|
+
return _toast.default;
|
|
294
|
+
}
|
|
295
|
+
});
|
|
268
296
|
Object.defineProperty(exports, "ToastLoading", {
|
|
269
297
|
enumerable: true,
|
|
270
298
|
get: function () {
|
|
@@ -304,6 +332,7 @@ var _pickerView = _interopRequireDefault(require("./components/picker-view"));
|
|
|
304
332
|
var _popup = _interopRequireDefault(require("./components/popup"));
|
|
305
333
|
var _proSelector = _interopRequireDefault(require("./components/pro-selector"));
|
|
306
334
|
var _protocol = _interopRequireDefault(require("./components/protocol"));
|
|
335
|
+
var _popover = _interopRequireDefault(require("./components/popover"));
|
|
307
336
|
var _pullToRefresh = _interopRequireDefault(require("./components/pull-to-refresh"));
|
|
308
337
|
var _radio = _interopRequireDefault(require("./components/radio"));
|
|
309
338
|
var _safeArea = _interopRequireDefault(require("./components/safe-area"));
|
|
@@ -320,4 +349,7 @@ var _tabs = _interopRequireDefault(require("./components/tabs"));
|
|
|
320
349
|
var _tip = _interopRequireDefault(require("./components/tip"));
|
|
321
350
|
var _toastLoading = _interopRequireDefault(require("./components/toastLoading"));
|
|
322
351
|
var _input = _interopRequireDefault(require("./components/input"));
|
|
352
|
+
var _infiniteScroll = _interopRequireDefault(require("./components/infinite-scroll"));
|
|
353
|
+
var _list = _interopRequireDefault(require("./components/list"));
|
|
354
|
+
var _toast = _interopRequireDefault(require("./components/toast"));
|
|
323
355
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,3 +1,39 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--ebscn-color-keyboard-bg: #d3d5d8;
|
|
3
|
+
--ebscn-color-keyboard-key-bg: #fff;
|
|
4
|
+
--ebscn-color-keyboard-fckey-bg: #adb3bd;
|
|
5
|
+
--ebscn-color-keyboard-key-bg-active: #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-keyboard-fckey-bg) no-repeat center;
|
|
9
|
+
background-size: 25px 25px;
|
|
10
|
+
background-color: var(--ebscn-color-keyboard-fckey-bg);
|
|
11
|
+
}
|
|
12
|
+
html[data-prefers-color-scheme='dark'] .ebscn-alphabet-keyboard-keybord:active {
|
|
13
|
+
background-color: var(--ebscn-color-keyboard-fckey-bg-active);
|
|
14
|
+
}
|
|
15
|
+
html[data-prefers-color-scheme='dark'] .ebscn-alphabet-keyboard-delete {
|
|
16
|
+
background: url(../../assets/images/delete_dark.png) var(--ebscn-color-keyboard-fckey-bg) no-repeat center;
|
|
17
|
+
background-size: 25px 25px;
|
|
18
|
+
background-color: var(--ebscn-color-keyboard-fckey-bg);
|
|
19
|
+
}
|
|
20
|
+
html[data-prefers-color-scheme='dark'] .ebscn-alphabet-keyboard-delete:active {
|
|
21
|
+
background-color: var(--ebscn-color-keyboard-fckey-bg-active);
|
|
22
|
+
}
|
|
23
|
+
html[data-prefers-color-scheme='dark'] .ebscn-alphabet-keyboard-shift {
|
|
24
|
+
background: url(../../assets/images/keybord_shift_dark.png) var(--ebscn-color-keyboard-fckey-bg) no-repeat center;
|
|
25
|
+
background-size: 25px 25px;
|
|
26
|
+
background-color: var(--ebscn-color-keyboard-fckey-bg);
|
|
27
|
+
}
|
|
28
|
+
html[data-prefers-color-scheme='dark'] .ebscn-alphabet-keyboard-shift:active {
|
|
29
|
+
background-color: var(--ebscn-color-keyboard-fckey-bg-active);
|
|
30
|
+
}
|
|
31
|
+
html[data-prefers-color-scheme='dark'] .ebscn-alphabet-keyboard-shift-big {
|
|
32
|
+
background: url(../../assets/images/keybord_shift2_dark.png) no-repeat center;
|
|
33
|
+
background-color: #adb3bd;
|
|
34
|
+
background-color: var(--ebscn-color-keyboard-fckey-bg);
|
|
35
|
+
background-size: 25px 25px;
|
|
36
|
+
}
|
|
1
37
|
.ebscn-alphabet-keyboard {
|
|
2
38
|
position: fixed;
|
|
3
39
|
bottom: 0;
|
|
@@ -7,35 +43,40 @@
|
|
|
7
43
|
width: 100%;
|
|
8
44
|
transition: all 0.5s;
|
|
9
45
|
align-content: flex-start;
|
|
10
|
-
background: #
|
|
11
|
-
|
|
12
|
-
.ebscn-alphabet-keyboard-darkkey {
|
|
13
|
-
display: flex;
|
|
14
|
-
align-items: center;
|
|
15
|
-
justify-content: center;
|
|
16
|
-
width: 11.2%;
|
|
17
|
-
height: 42px;
|
|
18
|
-
border-radius: 5px;
|
|
19
|
-
box-shadow: 0px 0.5px 0px 0px #888888;
|
|
20
|
-
background: #adb3bd;
|
|
21
|
-
font-size: var(--ebscn-font-size-9);
|
|
22
|
-
}
|
|
23
|
-
.ebscn-alphabet-keyboard-darkkey:active {
|
|
24
|
-
background: #adb3bd;
|
|
46
|
+
background-color: #fff;
|
|
47
|
+
background-color: var(--ebscn-color-keyboard-bg);
|
|
25
48
|
}
|
|
26
49
|
.ebscn-alphabet-keyboard-shift {
|
|
27
50
|
margin-right: 3.73%;
|
|
28
|
-
background: url(../../assets/images/keybord_shift.png)
|
|
51
|
+
background: url(../../assets/images/keybord_shift.png) no-repeat center;
|
|
52
|
+
background-color: #adb3bd;
|
|
53
|
+
background-color: var(--ebscn-color-keyboard-fckey-bg);
|
|
29
54
|
background-size: 17px 17px;
|
|
55
|
+
border: 0.5px solid #888;
|
|
56
|
+
border-color: var(--ebscn-color-keyboard-key-border);
|
|
57
|
+
}
|
|
58
|
+
.ebscn-alphabet-keyboard-shift-big {
|
|
59
|
+
background: url(../../assets/images/keybord_shift2.png) no-repeat center;
|
|
60
|
+
background-color: #adb3bd;
|
|
61
|
+
background-color: var(--ebscn-color-keyboard-fckey-bg);
|
|
62
|
+
background-size: 25px 25px;
|
|
30
63
|
}
|
|
31
64
|
.ebscn-alphabet-keyboard-delete {
|
|
32
65
|
margin-left: 2.26%;
|
|
33
|
-
background: url(../../assets/images/delete.png)
|
|
34
|
-
background-
|
|
66
|
+
background: url(../../assets/images/delete.png) no-repeat center;
|
|
67
|
+
background-color: #adb3bd;
|
|
68
|
+
background-color: var(--ebscn-color-keyboard-fckey-bg);
|
|
69
|
+
background-size: 25px 25px;
|
|
70
|
+
border: 0.5px solid #888;
|
|
71
|
+
border-color: var(--ebscn-color-keyboard-key-border);
|
|
35
72
|
}
|
|
36
73
|
.ebscn-alphabet-keyboard-keybord {
|
|
37
|
-
background: url(../../assets/images/keybord_keybord.png)
|
|
38
|
-
background-
|
|
74
|
+
background: url(../../assets/images/keybord_keybord.png) no-repeat center;
|
|
75
|
+
background-color: #adb3bd;
|
|
76
|
+
background-color: var(--ebscn-color-keyboard-fckey-bg);
|
|
77
|
+
background-size: 25px 18px;
|
|
78
|
+
border: 0.5px solid #888;
|
|
79
|
+
border-color: var(--ebscn-color-keyboard-key-border);
|
|
39
80
|
}
|
|
40
81
|
.ebscn-alphabet-keyboard-space {
|
|
41
82
|
display: flex;
|
|
@@ -43,12 +84,16 @@
|
|
|
43
84
|
justify-content: center;
|
|
44
85
|
width: 48.4%;
|
|
45
86
|
height: 42px;
|
|
46
|
-
background: var(--ebscn-color-white);
|
|
47
87
|
border-radius: 5px;
|
|
48
|
-
|
|
88
|
+
font-size: 16px;
|
|
89
|
+
background-color: #fff;
|
|
90
|
+
background: var(--ebscn-color-keyboard-key-bg);
|
|
91
|
+
border: 0.5px solid #888;
|
|
92
|
+
border-color: var(--ebscn-color-keyboard-key-border);
|
|
49
93
|
}
|
|
50
94
|
.ebscn-alphabet-keyboard-space:active {
|
|
51
|
-
background:
|
|
95
|
+
background-color: #e5e5e5;
|
|
96
|
+
background-color: var(--ebscn-color-keyboard-key-bg-active);
|
|
52
97
|
}
|
|
53
98
|
.ebscn-alphabet-keyboard .ebscn-alphabet-keyboard-firstline,
|
|
54
99
|
.ebscn-alphabet-keyboard .ebscn-alphabet-keyboard-secondline,
|
|
@@ -57,7 +102,7 @@
|
|
|
57
102
|
display: flex;
|
|
58
103
|
justify-content: space-between;
|
|
59
104
|
width: 100%;
|
|
60
|
-
padding-top: 3
|
|
105
|
+
padding-top: calc(3% - 1px);
|
|
61
106
|
}
|
|
62
107
|
.ebscn-alphabet-keyboard .ebscn-alphabet-keyboard-firstline-key,
|
|
63
108
|
.ebscn-alphabet-keyboard .ebscn-alphabet-keyboard-secondline-key,
|
|
@@ -66,39 +111,57 @@
|
|
|
66
111
|
display: flex;
|
|
67
112
|
align-items: center;
|
|
68
113
|
justify-content: center;
|
|
114
|
+
flex: 1;
|
|
69
115
|
width: 8.4%;
|
|
70
|
-
height:
|
|
71
|
-
background:
|
|
116
|
+
height: 40px;
|
|
117
|
+
background-color: #fff;
|
|
118
|
+
background: var(--ebscn-color-keyboard-key-bg);
|
|
72
119
|
border-radius: 5px;
|
|
73
|
-
box-shadow: 0px 0.5px 0px 0px #888888;
|
|
74
120
|
font-size: 23px;
|
|
75
121
|
font-weight: 400;
|
|
76
122
|
text-align: center;
|
|
123
|
+
color: #333;
|
|
77
124
|
color: var(--ebscn-color-text);
|
|
78
|
-
margin
|
|
125
|
+
margin: 0 3px;
|
|
126
|
+
border: 0.5px solid #888;
|
|
127
|
+
border-color: var(--ebscn-color-keyboard-key-border);
|
|
79
128
|
}
|
|
80
129
|
.ebscn-alphabet-keyboard .ebscn-alphabet-keyboard-firstline-key:active,
|
|
81
130
|
.ebscn-alphabet-keyboard .ebscn-alphabet-keyboard-secondline-key:active,
|
|
82
131
|
.ebscn-alphabet-keyboard .ebscn-alphabet-keyboard-thirdline-key:active,
|
|
83
132
|
.ebscn-alphabet-keyboard .ebscn-alphabet-keyboard-firthline-key:active {
|
|
84
|
-
background:
|
|
133
|
+
background-color: #e5e5e5;
|
|
134
|
+
background-color: var(--ebscn-color-keyboard-key-bg-active);
|
|
135
|
+
}
|
|
136
|
+
.ebscn-alphabet-keyboard-darkkey {
|
|
137
|
+
display: flex;
|
|
138
|
+
align-items: center;
|
|
139
|
+
justify-content: center;
|
|
140
|
+
width: 11.2%;
|
|
141
|
+
height: 42px;
|
|
142
|
+
border-radius: 5px;
|
|
143
|
+
background-color: #adb3bd;
|
|
144
|
+
background-color: var(--ebscn-color-keyboard-fckey-bg);
|
|
145
|
+
font-size: var(--ebscn-font-size-9);
|
|
146
|
+
border: 0.5px solid #888;
|
|
147
|
+
border-color: var(--ebscn-color-keyboard-fckey-border);
|
|
85
148
|
}
|
|
86
|
-
.ebscn-alphabet-keyboard
|
|
87
|
-
|
|
88
|
-
|
|
149
|
+
.ebscn-alphabet-keyboard-darkkey:active {
|
|
150
|
+
background-color: #252525;
|
|
151
|
+
background-color: var(--ebscn-color-keyboard-fckey-bg-active);
|
|
89
152
|
}
|
|
90
153
|
.ebscn-alphabet-keyboard .ebscn-alphabet-keyboard-secondline {
|
|
91
154
|
padding-left: 5.73%;
|
|
92
155
|
padding-right: 5.73%;
|
|
93
156
|
}
|
|
94
157
|
.ebscn-alphabet-keyboard .ebscn-alphabet-keyboard-thirdline {
|
|
95
|
-
padding-left:
|
|
96
|
-
padding-right:
|
|
158
|
+
padding-left: 3px;
|
|
159
|
+
padding-right: 3px;
|
|
97
160
|
}
|
|
98
161
|
.ebscn-alphabet-keyboard .ebscn-alphabet-keyboard-firthline {
|
|
99
|
-
padding-left:
|
|
100
|
-
padding-right:
|
|
101
|
-
padding-bottom:
|
|
162
|
+
padding-left: 3px;
|
|
163
|
+
padding-right: 3px;
|
|
164
|
+
padding-bottom: 6px;
|
|
102
165
|
}
|
|
103
166
|
.ebscn-alphabet-keyboard .ebscn-alphabet-keyboard-firthline-confirm {
|
|
104
167
|
display: flex;
|
|
@@ -106,24 +169,26 @@
|
|
|
106
169
|
justify-content: center;
|
|
107
170
|
width: 23.46%;
|
|
108
171
|
height: 42px;
|
|
109
|
-
background:
|
|
172
|
+
background-color: #e84225;
|
|
173
|
+
background-color: var(--ebscn-color-primary);
|
|
110
174
|
border-radius: 5px;
|
|
111
|
-
box-shadow: 0px 0.5px 0px 0px #888888;
|
|
112
175
|
font-size: 16px;
|
|
113
176
|
font-weight: 400;
|
|
114
177
|
text-align: center;
|
|
115
|
-
color:
|
|
178
|
+
color: #fff;
|
|
116
179
|
line-height: 22.5px;
|
|
180
|
+
border: 0.5px solid #888;
|
|
181
|
+
border-color: var(--ebscn-color-keyboard-key-border);
|
|
117
182
|
}
|
|
118
183
|
.ebscn-alphabet-keyboard .ebscn-alphabet-keyboard-firthline-confirm:active {
|
|
119
|
-
background-color: #
|
|
184
|
+
background-color: #d13c21;
|
|
120
185
|
}
|
|
121
186
|
.ebscn-alphabet-keyboard .ebscn-alphabet-keyboard-firthline img {
|
|
122
187
|
height: 20%;
|
|
123
188
|
}
|
|
124
189
|
@supports (bottom: env(safe-area-inset-bottom)) or (constant(safe-area-inset-bottom)) {
|
|
125
190
|
.ebscn-alphabet-keyboard {
|
|
126
|
-
height: calc(
|
|
127
|
-
height: calc(
|
|
191
|
+
height: calc(223px + env(safe-area-inset-bottom));
|
|
192
|
+
height: calc(223px + constant(safe-area-inset-bottom));
|
|
128
193
|
}
|
|
129
194
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { useEffect, useRef, useState } from
|
|
2
|
-
import React from "react";
|
|
1
|
+
import React, { useEffect, useRef, useState } from 'react';
|
|
3
2
|
import { withNativeProps } from '../../utils/native-props';
|
|
4
3
|
import { mergeProps } from '../../utils/with-default-props';
|
|
5
4
|
var classPrefix = 'ebscn-alphabet-keyboard';
|
|
@@ -107,12 +106,11 @@ export function AlphabetKeyboard(p) {
|
|
|
107
106
|
}, (isBig == false ? thirdKeys : thirdKeysBig).map(function (item, index) {
|
|
108
107
|
return React.createElement("div", {
|
|
109
108
|
key: item || index,
|
|
110
|
-
className: item == '↑' ? "".concat(classPrefix, "-darkkey ").concat(classPrefix, "-shift") : item == '×' ? "".concat(classPrefix, "-darkkey ").concat(classPrefix, "-delete") : "".concat(classPrefix, "-thirdline-key"),
|
|
109
|
+
className: item == '↑' && isBig ? "".concat(classPrefix, "-darkkey ").concat(classPrefix, "-shift ").concat(classPrefix, "-shift-big") : item == '↑' ? "".concat(classPrefix, "-darkkey ").concat(classPrefix, "-shift") : item == '×' ? "".concat(classPrefix, "-darkkey ").concat(classPrefix, "-delete") : "".concat(classPrefix, "-thirdline-key"),
|
|
111
110
|
onClick: function () {
|
|
112
111
|
if (visible) {
|
|
113
112
|
onKeyPress(item);
|
|
114
113
|
}
|
|
115
|
-
;
|
|
116
114
|
}
|
|
117
115
|
}, imgKeys.includes(item) ? '' : item);
|
|
118
116
|
})), React.createElement("div", {
|
|
@@ -141,9 +141,5 @@ export var SelectorButton = function (p) {
|
|
|
141
141
|
onClick: handleClick
|
|
142
142
|
}, props.children, React.createElement("div", {
|
|
143
143
|
className: classNames("".concat(classPrefix, "-icon"), (_a = {}, _a["".concat(classPrefix, "-icon-active")] = props.active && props.autoRotate, _a))
|
|
144
|
-
}, props.icon ? props.icon : React.createElement(SelectorIcon,
|
|
145
|
-
style: {
|
|
146
|
-
fontSize: '14px'
|
|
147
|
-
}
|
|
148
|
-
}))));
|
|
144
|
+
}, props.icon ? props.icon : React.createElement(SelectorIcon, null))));
|
|
149
145
|
};
|
|
@@ -9,7 +9,7 @@ export default function Card(props) {
|
|
|
9
9
|
return null;
|
|
10
10
|
}
|
|
11
11
|
return React.createElement("div", {
|
|
12
|
-
className: cns("".concat(classPrefix, "-header"), "".concat(
|
|
12
|
+
className: cns("".concat(classPrefix, "-header"), "".concat(typeClassName, "-header"), props.headerClassName),
|
|
13
13
|
style: props.headerStyle,
|
|
14
14
|
onClick: props.onHeaderClick
|
|
15
15
|
}, React.createElement("div", {
|
|
@@ -21,7 +21,7 @@ export default function Card(props) {
|
|
|
21
21
|
return null;
|
|
22
22
|
}
|
|
23
23
|
return React.createElement("div", {
|
|
24
|
-
className: cns("".concat(classPrefix, "-body"), "".concat(
|
|
24
|
+
className: cns("".concat(classPrefix, "-body"), "".concat(typeClassName, "-body"), props.bodyClassName),
|
|
25
25
|
style: props.bodyStyle,
|
|
26
26
|
onClick: props.onBodyClick
|
|
27
27
|
}, props.children);
|