tenjin-ui-kit 0.3.14 → 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.
|
@@ -115,22 +115,21 @@ var Filter = function Filter(_ref) {
|
|
|
115
115
|
overflow: "auto"
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
|
+
}, /*#__PURE__*/_react.default.createElement(_material.MenuItem, {
|
|
119
|
+
disabled: true
|
|
118
120
|
}, /*#__PURE__*/_react.default.createElement(_material.Box, {
|
|
119
121
|
pb: 0.5,
|
|
120
122
|
pl: 1,
|
|
121
123
|
display: "flex",
|
|
122
124
|
flexDirection: "row",
|
|
123
125
|
alignItems: "center"
|
|
124
|
-
}, /*#__PURE__*/_react.default.createElement(_bs.BsFilter, {
|
|
125
|
-
|
|
126
|
-
}), /*#__PURE__*/_react.default.createElement(_text.default, {
|
|
127
|
-
color: "secondary",
|
|
128
|
-
semibold: true,
|
|
126
|
+
}, /*#__PURE__*/_react.default.createElement(_bs.BsFilter, null), /*#__PURE__*/_react.default.createElement(_text.default, {
|
|
127
|
+
bold: true,
|
|
129
128
|
variant: "body2",
|
|
130
129
|
sx: {
|
|
131
130
|
marginLeft: "0.75rem"
|
|
132
131
|
}
|
|
133
|
-
}, (label === null || label === void 0 ? void 0 : label.toUpperCase()) || "FILTER")), /*#__PURE__*/_react.default.createElement(_material.Divider, null), isSearch && /*#__PURE__*/_react.default.createElement(_material.Box, {
|
|
132
|
+
}, (label === null || label === void 0 ? void 0 : label.toUpperCase()) || "FILTER"))), /*#__PURE__*/_react.default.createElement(_material.Divider, null), isSearch && /*#__PURE__*/_react.default.createElement(_material.Box, {
|
|
134
133
|
paddingLeft: 2,
|
|
135
134
|
paddingRight: 2,
|
|
136
135
|
paddingTop: 1.5,
|
|
@@ -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
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
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/components/sort/index.js
CHANGED
|
@@ -102,9 +102,9 @@ var Sort = function Sort(_ref) {
|
|
|
102
102
|
flexDirection: "row",
|
|
103
103
|
alignItems: "center"
|
|
104
104
|
}, /*#__PURE__*/_react.default.createElement(_bi.BiSort, {
|
|
105
|
-
color: "#
|
|
105
|
+
color: "#acacac"
|
|
106
106
|
}), /*#__PURE__*/_react.default.createElement(_text.default, {
|
|
107
|
-
color: "
|
|
107
|
+
color: "#acacac",
|
|
108
108
|
semibold: true,
|
|
109
109
|
variant: "body2",
|
|
110
110
|
sx: {
|