@algorithm-shift/design-system 1.2.992 → 1.2.994
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.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +9 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -764,7 +764,7 @@ function Icon(props) {
|
|
|
764
764
|
...rest
|
|
765
765
|
} = props;
|
|
766
766
|
const [dynamicIcon, setDynamicIcon] = useState5(icon || null);
|
|
767
|
-
async function loadFAIcon(iconName, prefix2
|
|
767
|
+
async function loadFAIcon(iconName, prefix2) {
|
|
768
768
|
const pkgMap = {
|
|
769
769
|
fas: SolidIcons,
|
|
770
770
|
far: RegularIcons,
|
|
@@ -774,7 +774,7 @@ function Icon(props) {
|
|
|
774
774
|
return basePackage[iconName] ?? null;
|
|
775
775
|
}
|
|
776
776
|
useEffect3(() => {
|
|
777
|
-
if (icon && iconSet === "fontawesome") {
|
|
777
|
+
if (icon && iconSet === "fontawesome" && prefix) {
|
|
778
778
|
loadFAIcon(icon, prefix).then((ico) => setDynamicIcon(ico));
|
|
779
779
|
}
|
|
780
780
|
}, [iconSet, icon, prefix]);
|
|
@@ -3617,6 +3617,7 @@ var cellRendererFactory = (renderer, rendererProps, value, row, customRenderers
|
|
|
3617
3617
|
}
|
|
3618
3618
|
) });
|
|
3619
3619
|
case "icon":
|
|
3620
|
+
if (!formattedValue) return null;
|
|
3620
3621
|
return /* @__PURE__ */ jsx50(
|
|
3621
3622
|
Icon,
|
|
3622
3623
|
{
|
|
@@ -3624,7 +3625,10 @@ var cellRendererFactory = (renderer, rendererProps, value, row, customRenderers
|
|
|
3624
3625
|
icon: rendererProps?.icon,
|
|
3625
3626
|
prefix: rendererProps?.iconSetPrefix,
|
|
3626
3627
|
iconSize: rendererProps?.size,
|
|
3627
|
-
className: rendererProps?.className
|
|
3628
|
+
className: rendererProps?.className,
|
|
3629
|
+
style: {
|
|
3630
|
+
...rendererProps?.color ? { color: rendererProps?.color } : {}
|
|
3631
|
+
}
|
|
3628
3632
|
}
|
|
3629
3633
|
);
|
|
3630
3634
|
case "badge": {
|
|
@@ -4254,8 +4258,8 @@ var Table2 = ({
|
|
|
4254
4258
|
onFilterChange: (filters) => onFilterChange?.({ columnKey: filters.columnKey, columnTerm: filters.columnTerm }),
|
|
4255
4259
|
onGlobalSearch: (term) => onGlobalSearch?.({ searchTerm: term }),
|
|
4256
4260
|
globalSearch,
|
|
4257
|
-
onCellClick: (cell) => {
|
|
4258
|
-
onCellClick?.({ id: cell.id, column: cell });
|
|
4261
|
+
onCellClick: (cell, columnId) => {
|
|
4262
|
+
onCellClick?.({ id: cell.id, column: cell, columnId });
|
|
4259
4263
|
},
|
|
4260
4264
|
onDeleteRow: (cell) => {
|
|
4261
4265
|
onDeleteRow?.(cell.id);
|