fis-component 0.0.53 → 0.0.54

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.
@@ -1,10 +1,10 @@
1
1
  import { ComponentType } from "react";
2
2
  interface FISSorterProps {
3
3
  columnKey: string;
4
- onSort: (columnKey: string | null, order: string | null) => void;
4
+ onSort: (columnKey?: string, order?: string) => void;
5
5
  sortedInfo: {
6
- columnKey: string | null;
7
- order: string | null;
6
+ columnKey?: string;
7
+ order?: string;
8
8
  };
9
9
  UpIcon?: ComponentType<{
10
10
  style?: React.CSSProperties;
package/dist/esm/index.js CHANGED
@@ -71618,7 +71618,7 @@ FISTableCell.displayName = "FISTableCell";
71618
71618
  const SORT_ORDERS = {
71619
71619
  ASCEND: "ascend",
71620
71620
  DESCEND: "descend",
71621
- NONE: null,
71621
+ NONE: undefined,
71622
71622
  };
71623
71623
  const FISSorter = ({ columnKey, onSort, sortedInfo, UpIcon = LineArrowsUp, DownIcon = LineArrowsDown, }) => {
71624
71624
  const currentOrder = sortedInfo.columnKey === columnKey ? sortedInfo.order : SORT_ORDERS.NONE;