@onepercentio/one-ui 0.19.7 → 0.19.9
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.
|
@@ -62,7 +62,7 @@ function Select(_ref) {
|
|
|
62
62
|
if (filter && filterTerm) return items.filter(function (item) {
|
|
63
63
|
return filter(item, filterTerm);
|
|
64
64
|
});else return items;
|
|
65
|
-
}, [filterTerm]);
|
|
65
|
+
}, [filterTerm, items]);
|
|
66
66
|
(0, _react.useEffect)(function () {
|
|
67
67
|
collapsableRef.current.redimension();
|
|
68
68
|
}, [filteredItems.length]);
|
|
@@ -111,13 +111,14 @@ function Select(_ref) {
|
|
|
111
111
|
e.stopPropagation();
|
|
112
112
|
setOpen(false);
|
|
113
113
|
}
|
|
114
|
-
}, filter && /*#__PURE__*/_react.default.createElement("div",
|
|
114
|
+
}, filter && /*#__PURE__*/_react.default.createElement("div", {
|
|
115
|
+
className: _SelectModule.default.searchInput
|
|
116
|
+
}, /*#__PURE__*/_react.default.createElement(_Input.default, {
|
|
115
117
|
onChange: function onChange(_ref2) {
|
|
116
118
|
let value = _ref2.target.value;
|
|
117
119
|
return setFilterTerm(value);
|
|
118
120
|
},
|
|
119
121
|
decoration: /*#__PURE__*/_react.default.createElement("span", null, "\uD83D\uDD0E\xA0"),
|
|
120
|
-
className: _SelectModule.default.searchInput,
|
|
121
122
|
containerProps: {
|
|
122
123
|
onClick: function onClick(e) {
|
|
123
124
|
return e.stopPropagation();
|
|
@@ -16,6 +16,8 @@ const toString = function toString(val) {
|
|
|
16
16
|
switch (_typeof(val)) {
|
|
17
17
|
case "boolean":
|
|
18
18
|
return !val ? "0" : "1";
|
|
19
|
+
case "string":
|
|
20
|
+
return val;
|
|
19
21
|
default:
|
|
20
22
|
throw new Error("Doesn't know how to handle type " + _typeof(val));
|
|
21
23
|
}
|
|
@@ -24,6 +26,8 @@ const fromString = function fromString(type, value) {
|
|
|
24
26
|
switch (type) {
|
|
25
27
|
case "boolean":
|
|
26
28
|
return value === "1";
|
|
29
|
+
case "string":
|
|
30
|
+
return value;
|
|
27
31
|
default:
|
|
28
32
|
throw new Error("Doesn't know how to handle type " + type);
|
|
29
33
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onepercentio/one-ui",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.9",
|
|
4
4
|
"description": "A set of reusable components created through the development of Onepercent projects",
|
|
5
5
|
"repository": "git@github.com:onepercentio/one-ui.git",
|
|
6
6
|
"author": "Murilo Oliveira de Araujo <murilo.araujo@onepercent.io>",
|
|
@@ -53,6 +53,7 @@
|
|
|
53
53
|
"node-fetch": "^2",
|
|
54
54
|
"os-browserify": "^0.3.0",
|
|
55
55
|
"react": "^18.0.0",
|
|
56
|
+
"react-dev-utils": "^12.0.1",
|
|
56
57
|
"react-docgen-typescript": "^2.2.2",
|
|
57
58
|
"react-docgen-typescript-plugin": "^1.0.1",
|
|
58
59
|
"react-dom": "^18.0.0",
|
|
@@ -79,7 +80,6 @@
|
|
|
79
80
|
"kill-port": "^2.0.0",
|
|
80
81
|
"lodash": "^4.17.21",
|
|
81
82
|
"prerender-loader": "^1.3.0",
|
|
82
|
-
"react-dev-utils": "^12.0.1",
|
|
83
83
|
"sharp": "^0.30.3",
|
|
84
84
|
"webpack": "^5"
|
|
85
85
|
},
|