ywana-core8 0.0.365 → 0.0.368
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +4 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +10 -0
- package/dist/index.css.map +1 -1
- package/dist/index.modern.js +4 -7
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +4 -7
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/html/textfield.css +5 -0
- package/src/html/textfield.js +3 -4
- package/src/html/textfield.test.js +3 -2
package/dist/index.cjs
CHANGED
@@ -954,8 +954,6 @@ var TextField = function TextField(props) {
|
|
954
954
|
}
|
955
955
|
|
956
956
|
function focus() {
|
957
|
-
console.log("FOCUS");
|
958
|
-
|
959
957
|
if (site && site.changeFocus) {
|
960
958
|
site.changeFocus({
|
961
959
|
lose: function lose() {// DO NOTHING
|
@@ -965,8 +963,6 @@ var TextField = function TextField(props) {
|
|
965
963
|
}
|
966
964
|
|
967
965
|
function focusOut() {
|
968
|
-
console.log("FOCUS OUT");
|
969
|
-
|
970
966
|
if (site && site.changeFocus) {
|
971
967
|
site.changeFocus({
|
972
968
|
lose: function lose() {// DO NOTHING
|
@@ -997,7 +993,7 @@ var TextField = function TextField(props) {
|
|
997
993
|
onFocus: focus,
|
998
994
|
onBlur: focusOut,
|
999
995
|
readOnly: readOnly
|
1000
|
-
}),
|
996
|
+
}), canClear && value && value.length > 0 ? /*#__PURE__*/React__default["default"].createElement(Icon, {
|
1001
997
|
icon: "close",
|
1002
998
|
clickable: true,
|
1003
999
|
size: "small",
|
@@ -1136,6 +1132,7 @@ var DropDown = function DropDown(props) {
|
|
1136
1132
|
}
|
1137
1133
|
|
1138
1134
|
function select(event) {
|
1135
|
+
console.log(event);
|
1139
1136
|
var next = event.target.getAttribute("value");
|
1140
1137
|
var option = options.find(function (option) {
|
1141
1138
|
return option.value === next;
|
@@ -1170,9 +1167,9 @@ var DropDown = function DropDown(props) {
|
|
1170
1167
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
1171
1168
|
className: "dropdown"
|
1172
1169
|
}, /*#__PURE__*/React__default["default"].createElement(TextField, _extends({}, props, {
|
1173
|
-
onClick: toggle,
|
1174
1170
|
value: label,
|
1175
|
-
onChange: change
|
1171
|
+
onChange: change,
|
1172
|
+
readOnly: !predictive
|
1176
1173
|
})), !readOnly ? /*#__PURE__*/React__default["default"].createElement(Icon, {
|
1177
1174
|
icon: "expand_more",
|
1178
1175
|
clickable: true,
|