@eqtylab/equality 1.7.2 → 1.8.0

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.cjs CHANGED
@@ -732,9 +732,26 @@ var BgGradient = ({
732
732
  }, [theme, placement, brandColors]);
733
733
  return /* @__PURE__ */ jsxRuntime.jsx("canvas", { ref: canvasRef, className: styles8__default.default["bg-gradient"] });
734
734
  };
735
- var ResourceBadge = ({ type, display = "both" }) => {
735
+ var ResourceBadge = ({
736
+ type,
737
+ display = "both",
738
+ closeable,
739
+ handleClosable,
740
+ children
741
+ }) => {
736
742
  const config = getTypeConfig(type);
737
- return /* @__PURE__ */ jsxRuntime.jsx(Badge, { icon: config.icon, display, className: config.className, variant: null, children: config.label });
743
+ return /* @__PURE__ */ jsxRuntime.jsx(
744
+ Badge,
745
+ {
746
+ icon: config.icon,
747
+ display,
748
+ className: config.className,
749
+ variant: null,
750
+ closeable,
751
+ handleClosable,
752
+ children: children ?? config.label
753
+ }
754
+ );
738
755
  };
739
756
  var getTypeConfig = (type) => {
740
757
  switch (type) {
@@ -2143,7 +2160,7 @@ var MetricCard = ({
2143
2160
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn(metricCardElevationVariants({ elevation }), className), children: [
2144
2161
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles31__default.default["value-container"], children: [
2145
2162
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: cn(styles31__default.default.value), children: value }),
2146
- /* @__PURE__ */ jsxRuntime.jsx(
2163
+ icon && /* @__PURE__ */ jsxRuntime.jsx(
2147
2164
  Icon,
2148
2165
  {
2149
2166
  icon,