@algorithm-shift/design-system 1.2.993 → 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 CHANGED
@@ -422,6 +422,7 @@ type PaginationMode = 'client' | 'server';
422
422
  interface CellClickProps {
423
423
  id: string;
424
424
  column: any;
425
+ columnId: string;
425
426
  }
426
427
 
427
428
  interface ExtendedTableProps extends TableProps {
package/dist/index.d.ts CHANGED
@@ -422,6 +422,7 @@ type PaginationMode = 'client' | 'server';
422
422
  interface CellClickProps {
423
423
  id: string;
424
424
  column: any;
425
+ columnId: string;
425
426
  }
426
427
 
427
428
  interface ExtendedTableProps extends TableProps {
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 = "fas") {
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]);
@@ -4345,8 +4345,8 @@ var Table2 = ({
4345
4345
  onFilterChange: (filters) => onFilterChange?.({ columnKey: filters.columnKey, columnTerm: filters.columnTerm }),
4346
4346
  onGlobalSearch: (term) => onGlobalSearch?.({ searchTerm: term }),
4347
4347
  globalSearch,
4348
- onCellClick: (cell) => {
4349
- onCellClick?.({ id: cell.id, column: cell });
4348
+ onCellClick: (cell, columnId) => {
4349
+ onCellClick?.({ id: cell.id, column: cell, columnId });
4350
4350
  },
4351
4351
  onDeleteRow: (cell) => {
4352
4352
  onDeleteRow?.(cell.id);