tenjin-ui-kit 0.3.15 → 0.3.16

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.
@@ -155,21 +155,14 @@ var SimpleSelect = function SimpleSelect(_ref) {
155
155
  color: "red"
156
156
  }
157
157
  }, " * ") : "")), /*#__PURE__*/_react.default.createElement(_material.Select, _extends({}, rest, {
158
- displayEmpty: true // To display the placeholder
159
- ,
160
- renderValue: function renderValue(selected) {
161
- if (!selected) {
162
- return /*#__PURE__*/_react.default.createElement("span", {
163
- style: {
164
- color: "#acacac"
165
- }
166
- }, placeholder || "Select an option");
167
- }
168
- var selectedOption = options === null || options === void 0 ? void 0 : options.find(function (option) {
169
- return (option === null || option === void 0 ? void 0 : option.value) === selected;
170
- });
171
- return selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.label;
172
- },
158
+ // displayEmpty // To display the placeholder
159
+ // renderValue={(selected) => {
160
+ // if (!selected) {
161
+ // return <span style={{ color: "#acacac" }}>{placeholder || "Select an option"}</span>;
162
+ // }
163
+ // const selectedOption = options?.find((option) => option?.value === selected);
164
+ // return selectedOption?.label;
165
+ // }}
173
166
  fullWidth: true,
174
167
  onClose: function onClose() {
175
168
  return setSearchText("");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tenjin-ui-kit",
3
- "version": "0.3.15",
3
+ "version": "0.3.16",
4
4
  "repository": {
5
5
  "url": "https://gitlab.com/yethi/react/tenjin-ui-kit.git"
6
6
  },