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.
@@ -10160,7 +10160,7 @@ function Select(props) {
10160
10160
  return getUniqueKey();
10161
10161
  };
10162
10162
  var opcoes = JSON.stringify(props.options);
10163
- useEffect(function () {
10163
+ useLayoutEffect(function () {
10164
10164
  if (props.preSelectUniqueOption && props.options && props.options.length === 1) {
10165
10165
  if (props.multiple && props.value && Array.isArray(props.value) && props.value.length !== 1) {
10166
10166
  props.onChange([props.options[0].value], {
@@ -10172,7 +10172,7 @@ function Select(props) {
10172
10172
  });
10173
10173
  }
10174
10174
  }
10175
- }, [opcoes]);
10175
+ }, [opcoes, props.preSelectUniqueOption]);
10176
10176
  var RightObject = useMemo(function () {
10177
10177
  return React.createElement("div", {
10178
10178
  className: rootClassName$2r + "-objects"
@@ -13026,7 +13026,7 @@ function TooltipElement(_ref) {
13026
13026
  return React.createElement(Fragment$1, null, React.createElement("div", Object.assign({
13027
13027
  className: rootClassName$33 + "-reference",
13028
13028
  ref: refs.setReference
13029
- }, getReferenceProps(wrapperProps)), children), React.createElement(FloatingPortal, null, isMounted && React.createElement("div", Object.assign({
13029
+ }, getReferenceProps(wrapperProps)), children), React.createElement(FloatingPortal, null, Boolean(label) && isMounted && React.createElement("div", Object.assign({
13030
13030
  className: rootClassName$33 + "-tooltip",
13031
13031
  ref: refs.setFloating,
13032
13032
  style: _extends({}, floatingStyles, transitionStyles)