arengibook 2.4.55 → 2.4.56
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.js +19 -12
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -35817,9 +35817,8 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
35817
35817
|
_ref$errorMessage = _ref.errorMessage,
|
|
35818
35818
|
errorMessage = _ref$errorMessage === void 0 ? '' : _ref$errorMessage,
|
|
35819
35819
|
_ref$valueStyle = _ref.valueStyle,
|
|
35820
|
-
valueStyle = _ref$valueStyle === void 0 ? {} : _ref$valueStyle
|
|
35821
|
-
_ref
|
|
35822
|
-
optionStyle = _ref$optionStyle === void 0 ? {} : _ref$optionStyle;
|
|
35820
|
+
valueStyle = _ref$valueStyle === void 0 ? {} : _ref$valueStyle;
|
|
35821
|
+
_ref.optionStyle;
|
|
35823
35822
|
var _useState = useState(value !== null && value !== void 0 ? value : null),
|
|
35824
35823
|
_useState2 = _slicedToArray$8(_useState, 2),
|
|
35825
35824
|
optionSelected = _useState2[0],
|
|
@@ -35845,13 +35844,20 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
35845
35844
|
border: invalid ? '1px solid red' : '1px solid #ccc',
|
|
35846
35845
|
width: '100%'
|
|
35847
35846
|
};
|
|
35848
|
-
|
|
35849
|
-
|
|
35850
|
-
|
|
35851
|
-
|
|
35852
|
-
|
|
35853
|
-
|
|
35854
|
-
|
|
35847
|
+
|
|
35848
|
+
// const optionTemplate = (option) => {
|
|
35849
|
+
// return (
|
|
35850
|
+
// <div
|
|
35851
|
+
// style={{
|
|
35852
|
+
// fontSize: '14px',
|
|
35853
|
+
// ...optionStyle,
|
|
35854
|
+
// }}
|
|
35855
|
+
// >
|
|
35856
|
+
// {option.label}
|
|
35857
|
+
// </div>
|
|
35858
|
+
// );
|
|
35859
|
+
// };
|
|
35860
|
+
|
|
35855
35861
|
var valueTemplate = function valueTemplate(option) {
|
|
35856
35862
|
return /*#__PURE__*/React__default.createElement("span", {
|
|
35857
35863
|
style: _objectSpread2({
|
|
@@ -35873,8 +35879,9 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
35873
35879
|
filter: filter,
|
|
35874
35880
|
optionLabel: optionLabel,
|
|
35875
35881
|
optionValue: optionValue,
|
|
35876
|
-
style: style
|
|
35877
|
-
itemTemplate
|
|
35882
|
+
style: style
|
|
35883
|
+
// itemTemplate={optionTemplate}
|
|
35884
|
+
,
|
|
35878
35885
|
valueTemplate: valueTemplate,
|
|
35879
35886
|
onHide: resetDropdownFilter
|
|
35880
35887
|
}), invalid && /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("small", {
|