plataforma-fundacao-componentes 2.26.12 → 2.26.13
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
CHANGED
|
@@ -10147,7 +10147,7 @@ function Select(props) {
|
|
|
10147
10147
|
return getUniqueKey();
|
|
10148
10148
|
};
|
|
10149
10149
|
var opcoes = JSON.stringify(props.options);
|
|
10150
|
-
React.
|
|
10150
|
+
React.useLayoutEffect(function () {
|
|
10151
10151
|
if (props.preSelectUniqueOption && props.options && props.options.length === 1) {
|
|
10152
10152
|
if (props.multiple && props.value && Array.isArray(props.value) && props.value.length !== 1) {
|
|
10153
10153
|
props.onChange([props.options[0].value], {
|
|
@@ -10159,7 +10159,7 @@ function Select(props) {
|
|
|
10159
10159
|
});
|
|
10160
10160
|
}
|
|
10161
10161
|
}
|
|
10162
|
-
}, [opcoes]);
|
|
10162
|
+
}, [opcoes, props.preSelectUniqueOption]);
|
|
10163
10163
|
var RightObject = React.useMemo(function () {
|
|
10164
10164
|
return React__default.createElement("div", {
|
|
10165
10165
|
className: rootClassName$2r + "-objects"
|
|
@@ -13010,7 +13010,7 @@ function TooltipElement(_ref) {
|
|
|
13010
13010
|
return React__default.createElement(React.Fragment, null, React__default.createElement("div", Object.assign({
|
|
13011
13011
|
className: rootClassName$33 + "-reference",
|
|
13012
13012
|
ref: refs.setReference
|
|
13013
|
-
}, getReferenceProps(wrapperProps)), children), React__default.createElement(react.FloatingPortal, null, isMounted && React__default.createElement("div", Object.assign({
|
|
13013
|
+
}, getReferenceProps(wrapperProps)), children), React__default.createElement(react.FloatingPortal, null, Boolean(label) && isMounted && React__default.createElement("div", Object.assign({
|
|
13014
13014
|
className: rootClassName$33 + "-tooltip",
|
|
13015
13015
|
ref: refs.setFloating,
|
|
13016
13016
|
style: _extends({}, floatingStyles, transitionStyles)
|