@matteoaliano/forest-ui 1.1.1 → 1.2.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.mjs CHANGED
@@ -38,7 +38,7 @@ import {
38
38
  toggleColors,
39
39
  warning,
40
40
  widths
41
- } from "./chunk-BCOHH5MJ.mjs";
41
+ } from "./chunk-VIQ5IYUZ.mjs";
42
42
 
43
43
  // src/provider/ForestProvider.tsx
44
44
  import { useMemo } from "react";
@@ -651,7 +651,7 @@ var customChipScales = {
651
651
  blueLight: misc.blueLight
652
652
  };
653
653
  function Chip({ color, deleteIcon = /* @__PURE__ */ jsx12(CloseIcon, {}), sx, ...props }) {
654
- const scale = color && typeof color === "string" ? customChipScales[color] : void 0;
654
+ const scale = color && color in customChipScales ? customChipScales[color] : void 0;
655
655
  if (scale) {
656
656
  return /* @__PURE__ */ jsx12(
657
657
  MuiChip,