@pedidopago/ui 1.7.6 → 1.7.7
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/NewSelect/index.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/NewSelect/index.tsx"],"names":[],"mappings":";AAqBA,OAAO,EAAE,WAAW,EAA8C,MAAM,SAAS,CAAC;AAElF,wBAAgB,SAAS,CAAC,EACxB,KAAU,EACV,WAAgB,EAChB,KAAK,EACL,UAAU,EACV,OAAO,EACP,QAAQ,EACR,KAAK,EACL,OAAO,EACP,MAAM,EACN,QAAQ,EACR,aAAa,EACb,QAAQ,EACR,GAAG,IAAI,EACR,EAAE,WAAW,eA4Nb;yBA1Oe,SAAS"}
|
|
@@ -15,7 +15,6 @@ var _useReposition = require("../../shared/hooks/useReposition");
|
|
|
15
15
|
var _styles = require("./styles");
|
|
16
16
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
17
|
var _excluded = ["label", "placeholder", "alert", "helperText", "variant", "children", "value", "onClose", "onOpen", "multiple", "renderOptions", "onChange"];
|
|
18
|
-
/* eslint-disable no-console */
|
|
19
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
20
19
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
21
20
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
@@ -79,7 +78,7 @@ function NewSelect(_ref) {
|
|
|
79
78
|
if ( /*#__PURE__*/(0, _react.isValidElement)(child)) {
|
|
80
79
|
var _ref2 = child,
|
|
81
80
|
type = _ref2.type;
|
|
82
|
-
return type.
|
|
81
|
+
return type.name === 'SelectItem';
|
|
83
82
|
}
|
|
84
83
|
return false;
|
|
85
84
|
});
|
|
@@ -229,7 +228,6 @@ function NewSelect(_ref) {
|
|
|
229
228
|
selected: isSelectedOption
|
|
230
229
|
});
|
|
231
230
|
return /*#__PURE__*/(0, _react.cloneElement)(child, {
|
|
232
|
-
key: "clone-element-".concat(child.props.optionValue),
|
|
233
231
|
onClick: function onClick(event) {
|
|
234
232
|
var _child$props$onClick, _child$props;
|
|
235
233
|
if (event.currentTarget.classList.contains('select-item')) {
|