utopia-ui 3.0.0-alpha.139 → 3.0.0-alpha.140

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
@@ -3850,7 +3850,8 @@ var PopupButton = function (_a) {
3850
3850
  var _b;
3851
3851
  var url = _a.url, parameterField = _a.parameterField, text = _a.text, colorField = _a.colorField, item = _a.item;
3852
3852
  var params = new URLSearchParams(window.location.search);
3853
- return (jsx(Link, __assign({ to: "".concat(url, "/").concat(parameterField ? getValue(item, parameterField) : "", "?").concat(params) }, { children: jsx("button", __assign({ style: { backgroundColor: "".concat(colorField && getValue(item, colorField) ? getValue(item, colorField) : (_b = item === null || item === void 0 ? void 0 : item.layer) === null || _b === void 0 ? void 0 : _b.markerDefaultColor) }, className: "tw-btn tw-text-white tw-btn-sm tw-float-right tw-mt-1" }, { children: text })) })));
3853
+ var getItemTags = useGetItemTags();
3854
+ return (jsx(Link, __assign({ to: "".concat(url, "/").concat(parameterField ? getValue(item, parameterField) : "", "?").concat(params) }, { children: jsx("button", __assign({ style: { backgroundColor: "".concat(colorField && getValue(item, colorField) ? getValue(item, colorField) : (item && getItemTags(item) && getItemTags(item)[0] && getItemTags(item)[0].color ? getItemTags(item)[0].color : (_b = item === null || item === void 0 ? void 0 : item.layer) === null || _b === void 0 ? void 0 : _b.markerDefaultColor)) }, className: "tw-btn tw-text-white tw-btn-sm tw-float-right tw-mt-1" }, { children: text })) })));
3854
3855
  };
3855
3856
 
3856
3857
  function NavBar(_a) {