@evergis/react 4.0.86 → 4.0.87

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
@@ -7624,13 +7624,14 @@ const RoundedBackgroundContainerWrapper = styled(uilibGl.Flex) `
7624
7624
  const ALIAS_DEFAULT_MAX_LENGTH = 28;
7625
7625
  const RoundedBackgroundContainer = React.memo(({ type, elementConfig, feature, renderElement, }) => {
7626
7626
  const { t } = useGlobalContext();
7627
- const { dataSources } = useWidgetContext(type);
7628
- const { attributes } = useRelatedDataSourceAttributes({
7627
+ const { dataSources, attributes: ctxAttributes } = useWidgetContext(type);
7628
+ const { attributes: dsAttributes } = useRelatedDataSourceAttributes({
7629
7629
  type,
7630
7630
  elementConfig,
7631
7631
  dataSources,
7632
7632
  feature,
7633
7633
  });
7634
+ const attributes = lodash.isEmpty(dsAttributes) ? ctxAttributes : dsAttributes;
7634
7635
  const { id, options, style, children } = elementConfig || {};
7635
7636
  const { maxLength, wordBreak, center, fontColor, innerTemplateStyle, inlineUnits, big, bigIcon, hideEmpty, colorAttribute } = options || {};
7636
7637
  const iconElement = children?.find(item => item.id === "icon");
@@ -10195,7 +10196,7 @@ const BackgroundHeaderWrapper = styled.div `
10195
10196
  content: "";
10196
10197
  position: absolute;
10197
10198
  inset: 0;
10198
- z-index: 0;
10199
+ z-index: 100;
10199
10200
  pointer-events: none;
10200
10201
  background: ${({ $bgColor }) => $bgColor || "linear-gradient(96.55deg, #FFFCD3 0%, #B4DC47 100%)"};
10201
10202
  }