@evergis/react 3.1.77 → 3.1.78

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/react.esm.js CHANGED
@@ -7750,10 +7750,11 @@ const ElementChart = memo(({ type, elementConfig, renderElement }) => {
7750
7750
  const ElementChips = memo(({ type, elementConfig }) => {
7751
7751
  const { attributes } = useWidgetContext(type);
7752
7752
  const { attributeName, options, style } = elementConfig || {};
7753
- const { separator, bgColor, fontColor, fontSize } = options || {};
7754
- const attribute = getAttributeByName(attributeName, attributes);
7755
- const tags = attribute?.value?.split(separator || ",");
7756
- return (jsx(DashboardChipsContainer, { style: style, children: tags?.map(tag => (jsx(DashboardChip$1, { text: tag, "$bgColor": bgColor, "$fontColor": fontColor, "$fontSize": fontSize, "$isDefault": true }, tag))) }));
7753
+ const { separator, bgColor, fontColor, fontSize, colorAttribute } = options || {};
7754
+ const valueAttr = getAttributeByName(attributeName, attributes);
7755
+ const colorAttr = getAttributeByName(colorAttribute, attributes);
7756
+ const tags = valueAttr?.value?.split(separator || ",");
7757
+ return (jsx(DashboardChipsContainer, { style: style, children: tags?.map(tag => (jsx(DashboardChip$1, { text: tag, "$bgColor": colorAttr?.value || bgColor, "$fontColor": fontColor, "$fontSize": fontSize, "$isDefault": !colorAttr?.value }, tag))) }));
7757
7758
  });
7758
7759
 
7759
7760
  const StyledIconFontSizeMixin = css `