@ebscn/ui 1.0.3-beta.21 → 1.0.3-beta.23

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.
@@ -39,7 +39,7 @@
39
39
  .ebscn-radio.ebscn-radio-block {
40
40
  display: flex;
41
41
  }
42
- .ebscn-radio.ebscn-radio-icon-right {
42
+ .ebscn-radio.ebscn-radio-checked.ebscn-radio-icon-right {
43
43
  color: var(--ebscn-color-primary);
44
44
  }
45
45
  .ebscn-radio.ebscn-radio-checked .ebscn-radio-icon {
@@ -60,7 +60,7 @@ function AlphabetKeyboard(p) {
60
60
  return _react.default.createElement("div", {
61
61
  key: item || index,
62
62
  className: "".concat(classPrefix, "-firstline-key"),
63
- onClick: function () {
63
+ onTouchStart: function () {
64
64
  if (visible) {
65
65
  onKeyPress(item);
66
66
  }
@@ -72,7 +72,7 @@ function AlphabetKeyboard(p) {
72
72
  return _react.default.createElement("div", {
73
73
  key: item || index,
74
74
  className: "".concat(classPrefix, "-secondline-key"),
75
- onClick: function () {
75
+ onTouchStart: function () {
76
76
  if (visible) {
77
77
  onKeyPress(item);
78
78
  }
@@ -84,7 +84,7 @@ function AlphabetKeyboard(p) {
84
84
  return _react.default.createElement("div", {
85
85
  key: item || index,
86
86
  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"),
87
- onClick: function () {
87
+ onTouchStart: function () {
88
88
  if (visible) {
89
89
  onKeyPress(item);
90
90
  }
@@ -96,7 +96,7 @@ function AlphabetKeyboard(p) {
96
96
  return _react.default.createElement("div", {
97
97
  key: item || index,
98
98
  className: item == '123' ? "".concat(classPrefix, "-darkkey") : item == '⌨' ? " ".concat(classPrefix, "-darkkey ").concat(classPrefix, "-keybord") : item == '空格' ? "".concat(classPrefix, "-space") : "".concat(classPrefix, "-firthline-confirm"),
99
- onClick: function () {
99
+ onTouchStart: function () {
100
100
  if (visible) {
101
101
  onKeyPress(item);
102
102
  }
@@ -86,17 +86,17 @@ function StockKeyboard(p) {
86
86
  }, _react.default.createElement("div", {
87
87
  className: "".concat(classPrefix, "-top")
88
88
  }, _react.default.createElement("div", {
89
- onClick: function () {
89
+ onTouchStart: function () {
90
90
  return setKeyboardType(1);
91
91
  },
92
92
  className: "".concat(classPrefix, "-top-item ").concat(keyboardType === 1 ? "".concat(classPrefix, "-top-item-active") : '')
93
93
  }, "123"), _react.default.createElement("div", {
94
- onClick: function () {
94
+ onTouchStart: function () {
95
95
  return setKeyboardType(2);
96
96
  },
97
97
  className: "".concat(classPrefix, "-top-item ").concat(keyboardType === 2 ? "".concat(classPrefix, "-top-item-active") : '')
98
98
  }, "ABC"), _react.default.createElement("div", {
99
- onClick: function () {
99
+ onTouchStart: function () {
100
100
  return onSelectCN();
101
101
  },
102
102
  className: "".concat(classPrefix, "-top-item")
@@ -108,7 +108,7 @@ function StockKeyboard(p) {
108
108
  return _react.default.createElement("div", {
109
109
  key: item || index,
110
110
  className: "".concat(classPrefix, "-left-key"),
111
- onClick: function () {
111
+ onTouchStart: function () {
112
112
  if (visible) {
113
113
  onKeyPress(item);
114
114
  }
@@ -120,7 +120,7 @@ function StockKeyboard(p) {
120
120
  return _react.default.createElement("div", {
121
121
  key: item || index,
122
122
  className: (0, _classnames.default)("".concat(classPrefix, "-right-key"), item !== '确定' ? '' : "".concat(classPrefix, "-right-key ").concat(classPrefix, "-right-confirmKey"), item === 'ABC' || item === '002' ? "".concat(classPrefix, "-right-bottom-option") : '', typeof item !== 'number' && item !== 'ABC' && item !== '002' && item.length && item !== '.' && item !== '确定' ? "".concat(classPrefix, "-right-option") : item == '确定' ? "".concat(classPrefix, "-right-confirmKey") : "".concat(classPrefix, "-right-number-key"), item === 'X' && "".concat(classPrefix, "-right-delete")),
123
- onClick: function () {
123
+ onTouchStart: function () {
124
124
  if (visible) {
125
125
  onKeyPress(item);
126
126
  }
@@ -39,7 +39,7 @@
39
39
  .ebscn-radio.ebscn-radio-block {
40
40
  display: flex;
41
41
  }
42
- .ebscn-radio.ebscn-radio-icon-right {
42
+ .ebscn-radio.ebscn-radio-checked.ebscn-radio-icon-right {
43
43
  color: var(--ebscn-color-primary);
44
44
  }
45
45
  .ebscn-radio.ebscn-radio-checked .ebscn-radio-icon {
@@ -52,7 +52,7 @@ export function AlphabetKeyboard(p) {
52
52
  return React.createElement("div", {
53
53
  key: item || index,
54
54
  className: "".concat(classPrefix, "-firstline-key"),
55
- onClick: function () {
55
+ onTouchStart: function () {
56
56
  if (visible) {
57
57
  onKeyPress(item);
58
58
  }
@@ -64,7 +64,7 @@ export function AlphabetKeyboard(p) {
64
64
  return React.createElement("div", {
65
65
  key: item || index,
66
66
  className: "".concat(classPrefix, "-secondline-key"),
67
- onClick: function () {
67
+ onTouchStart: function () {
68
68
  if (visible) {
69
69
  onKeyPress(item);
70
70
  }
@@ -76,7 +76,7 @@ export function AlphabetKeyboard(p) {
76
76
  return React.createElement("div", {
77
77
  key: item || index,
78
78
  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"),
79
- onClick: function () {
79
+ onTouchStart: function () {
80
80
  if (visible) {
81
81
  onKeyPress(item);
82
82
  }
@@ -88,7 +88,7 @@ export function AlphabetKeyboard(p) {
88
88
  return React.createElement("div", {
89
89
  key: item || index,
90
90
  className: item == '123' ? "".concat(classPrefix, "-darkkey") : item == '⌨' ? " ".concat(classPrefix, "-darkkey ").concat(classPrefix, "-keybord") : item == '空格' ? "".concat(classPrefix, "-space") : "".concat(classPrefix, "-firthline-confirm"),
91
- onClick: function () {
91
+ onTouchStart: function () {
92
92
  if (visible) {
93
93
  onKeyPress(item);
94
94
  }
@@ -77,17 +77,17 @@ export function StockKeyboard(p) {
77
77
  }, React.createElement("div", {
78
78
  className: "".concat(classPrefix, "-top")
79
79
  }, React.createElement("div", {
80
- onClick: function () {
80
+ onTouchStart: function () {
81
81
  return setKeyboardType(1);
82
82
  },
83
83
  className: "".concat(classPrefix, "-top-item ").concat(keyboardType === 1 ? "".concat(classPrefix, "-top-item-active") : '')
84
84
  }, "123"), React.createElement("div", {
85
- onClick: function () {
85
+ onTouchStart: function () {
86
86
  return setKeyboardType(2);
87
87
  },
88
88
  className: "".concat(classPrefix, "-top-item ").concat(keyboardType === 2 ? "".concat(classPrefix, "-top-item-active") : '')
89
89
  }, "ABC"), React.createElement("div", {
90
- onClick: function () {
90
+ onTouchStart: function () {
91
91
  return onSelectCN();
92
92
  },
93
93
  className: "".concat(classPrefix, "-top-item")
@@ -99,7 +99,7 @@ export function StockKeyboard(p) {
99
99
  return React.createElement("div", {
100
100
  key: item || index,
101
101
  className: "".concat(classPrefix, "-left-key"),
102
- onClick: function () {
102
+ onTouchStart: function () {
103
103
  if (visible) {
104
104
  onKeyPress(item);
105
105
  }
@@ -111,7 +111,7 @@ export function StockKeyboard(p) {
111
111
  return React.createElement("div", {
112
112
  key: item || index,
113
113
  className: cns("".concat(classPrefix, "-right-key"), item !== '确定' ? '' : "".concat(classPrefix, "-right-key ").concat(classPrefix, "-right-confirmKey"), item === 'ABC' || item === '002' ? "".concat(classPrefix, "-right-bottom-option") : '', typeof item !== 'number' && item !== 'ABC' && item !== '002' && item.length && item !== '.' && item !== '确定' ? "".concat(classPrefix, "-right-option") : item == '确定' ? "".concat(classPrefix, "-right-confirmKey") : "".concat(classPrefix, "-right-number-key"), item === 'X' && "".concat(classPrefix, "-right-delete")),
114
- onClick: function () {
114
+ onTouchStart: function () {
115
115
  if (visible) {
116
116
  onKeyPress(item);
117
117
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ebscn/ui",
3
- "version": "1.0.3-beta.21",
3
+ "version": "1.0.3-beta.23",
4
4
  "description": "ebscn react library",
5
5
  "module": "./es/index.js",
6
6
  "types": "./es/index.d.ts",