@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.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -861,7 +861,7 @@ function Icon(props) {
|
|
|
861
861
|
...rest
|
|
862
862
|
} = props;
|
|
863
863
|
const [dynamicIcon, setDynamicIcon] = (0, import_react8.useState)(icon || null);
|
|
864
|
-
async function loadFAIcon(iconName, prefix2
|
|
864
|
+
async function loadFAIcon(iconName, prefix2) {
|
|
865
865
|
const pkgMap = {
|
|
866
866
|
fas: SolidIcons,
|
|
867
867
|
far: RegularIcons,
|
|
@@ -871,7 +871,7 @@ function Icon(props) {
|
|
|
871
871
|
return basePackage[iconName] ?? null;
|
|
872
872
|
}
|
|
873
873
|
(0, import_react8.useEffect)(() => {
|
|
874
|
-
if (icon && iconSet === "fontawesome") {
|
|
874
|
+
if (icon && iconSet === "fontawesome" && prefix) {
|
|
875
875
|
loadFAIcon(icon, prefix).then((ico) => setDynamicIcon(ico));
|
|
876
876
|
}
|
|
877
877
|
}, [iconSet, icon, prefix]);
|
|
@@ -3704,6 +3704,7 @@ var cellRendererFactory = (renderer, rendererProps, value, row, customRenderers
|
|
|
3704
3704
|
}
|
|
3705
3705
|
) });
|
|
3706
3706
|
case "icon":
|
|
3707
|
+
if (!formattedValue) return null;
|
|
3707
3708
|
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
3708
3709
|
Icon,
|
|
3709
3710
|
{
|
|
@@ -3711,7 +3712,10 @@ var cellRendererFactory = (renderer, rendererProps, value, row, customRenderers
|
|
|
3711
3712
|
icon: rendererProps?.icon,
|
|
3712
3713
|
prefix: rendererProps?.iconSetPrefix,
|
|
3713
3714
|
iconSize: rendererProps?.size,
|
|
3714
|
-
className: rendererProps?.className
|
|
3715
|
+
className: rendererProps?.className,
|
|
3716
|
+
style: {
|
|
3717
|
+
...rendererProps?.color ? { color: rendererProps?.color } : {}
|
|
3718
|
+
}
|
|
3715
3719
|
}
|
|
3716
3720
|
);
|
|
3717
3721
|
case "badge": {
|
|
@@ -4341,8 +4345,8 @@ var Table2 = ({
|
|
|
4341
4345
|
onFilterChange: (filters) => onFilterChange?.({ columnKey: filters.columnKey, columnTerm: filters.columnTerm }),
|
|
4342
4346
|
onGlobalSearch: (term) => onGlobalSearch?.({ searchTerm: term }),
|
|
4343
4347
|
globalSearch,
|
|
4344
|
-
onCellClick: (cell) => {
|
|
4345
|
-
onCellClick?.({ id: cell.id, column: cell });
|
|
4348
|
+
onCellClick: (cell, columnId) => {
|
|
4349
|
+
onCellClick?.({ id: cell.id, column: cell, columnId });
|
|
4346
4350
|
},
|
|
4347
4351
|
onDeleteRow: (cell) => {
|
|
4348
4352
|
onDeleteRow?.(cell.id);
|