@algorithm-shift/design-system 1.2.990 → 1.2.992
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 +9 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -3617,14 +3617,14 @@ var cellRendererFactory = (renderer, rendererProps, value, row, customRenderers
|
|
|
3617
3617
|
}
|
|
3618
3618
|
) });
|
|
3619
3619
|
case "icon":
|
|
3620
|
-
const maybeIcon = LucideIcons2[rendererProps?.icon];
|
|
3621
|
-
const IconComponent = typeof maybeIcon === "function" ? maybeIcon : LucideIcons2.Star;
|
|
3622
3620
|
return /* @__PURE__ */ jsx50(
|
|
3623
|
-
|
|
3621
|
+
Icon,
|
|
3624
3622
|
{
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
-
|
|
3623
|
+
iconSet: rendererProps?.iconSet,
|
|
3624
|
+
icon: rendererProps?.icon,
|
|
3625
|
+
prefix: rendererProps?.iconSetPrefix,
|
|
3626
|
+
iconSize: rendererProps?.size,
|
|
3627
|
+
className: rendererProps?.className
|
|
3628
3628
|
}
|
|
3629
3629
|
);
|
|
3630
3630
|
case "badge": {
|
|
@@ -3642,8 +3642,8 @@ var cellRendererFactory = (renderer, rendererProps, value, row, customRenderers
|
|
|
3642
3642
|
}
|
|
3643
3643
|
case "chip": {
|
|
3644
3644
|
const color = rendererProps?.color || "gray";
|
|
3645
|
-
const
|
|
3646
|
-
const
|
|
3645
|
+
const maybeIcon = LucideIcons2[rendererProps?.icon];
|
|
3646
|
+
const IconComponent = typeof maybeIcon === "function" ? maybeIcon : LucideIcons2.Star;
|
|
3647
3647
|
if (!formattedValue) return null;
|
|
3648
3648
|
const textColor = getContrastColor(color);
|
|
3649
3649
|
return /* @__PURE__ */ jsxs29(
|
|
@@ -3652,7 +3652,7 @@ var cellRendererFactory = (renderer, rendererProps, value, row, customRenderers
|
|
|
3652
3652
|
className: `inline-flex items-center gap-1 px-2 py-1 text-xs rounded-full bg-[${color}]-100 text-[${textColor}]-700`,
|
|
3653
3653
|
style: { backgroundColor: color, color: textColor },
|
|
3654
3654
|
children: [
|
|
3655
|
-
rendererProps?.icon && /* @__PURE__ */ jsx50(Fragment20, { children:
|
|
3655
|
+
rendererProps?.icon && /* @__PURE__ */ jsx50(Fragment20, { children: IconComponent ? /* @__PURE__ */ jsx50(IconComponent, { className: "h-4 w-4" }) : /* @__PURE__ */ jsx50(LucideIcons2.Box, { className: "h-4 w-4" }) }),
|
|
3656
3656
|
formattedValue
|
|
3657
3657
|
]
|
|
3658
3658
|
}
|