@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 +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- 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]);
|
|
@@ -4258,8 +4258,8 @@ var Table2 = ({
|
|
|
4258
4258
|
onFilterChange: (filters) => onFilterChange?.({ columnKey: filters.columnKey, columnTerm: filters.columnTerm }),
|
|
4259
4259
|
onGlobalSearch: (term) => onGlobalSearch?.({ searchTerm: term }),
|
|
4260
4260
|
globalSearch,
|
|
4261
|
-
onCellClick: (cell) => {
|
|
4262
|
-
onCellClick?.({ id: cell.id, column: cell });
|
|
4261
|
+
onCellClick: (cell, columnId) => {
|
|
4262
|
+
onCellClick?.({ id: cell.id, column: cell, columnId });
|
|
4263
4263
|
},
|
|
4264
4264
|
onDeleteRow: (cell) => {
|
|
4265
4265
|
onDeleteRow?.(cell.id);
|