fui-material 2.6.8 → 2.6.10

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.
@@ -1252,7 +1252,7 @@ const usePagination = ({
1252
1252
  }) => {
1253
1253
  const paginationRange = useMemo(() => {
1254
1254
  const totalPageCount = Math.ceil(totalCount / pageSize);
1255
- const totalPageNumbers = siblingCount + 5;
1255
+ const totalPageNumbers = siblingCount * 2 + 5;
1256
1256
  if (totalPageNumbers >= totalPageCount) {
1257
1257
  return range(1, totalPageCount);
1258
1258
  }
@@ -1282,7 +1282,7 @@ const usePagination = ({
1282
1282
  const middleRange = range(leftSiblingIndex, rightSiblingIndex);
1283
1283
  return [firstPageIndex, DOTS, ...middleRange, DOTS, lastPageIndex];
1284
1284
  }
1285
- return null;
1285
+ return range(1, totalPageCount);
1286
1286
  }, [totalCount, pageSize, siblingCount, currentPage]);
1287
1287
  return paginationRange;
1288
1288
  };
@@ -3853,6 +3853,36 @@ const FPenIcon = React.forwardRef(({
3853
3853
  );
3854
3854
  });
3855
3855
  FPenIcon.displayName = "FPenIcon";
3856
+ const FUploadIcon = React.forwardRef(({
3857
+ color = "primary",
3858
+ size = 30,
3859
+ st,
3860
+ id,
3861
+ className,
3862
+ handleClick,
3863
+ ["data-testid"]: dataTestId,
3864
+ ...props
3865
+ }, ref) => {
3866
+ return /* @__PURE__ */ jsxs(
3867
+ "svg",
3868
+ {
3869
+ ref,
3870
+ style: st,
3871
+ id,
3872
+ width: size,
3873
+ onClick: handleClick,
3874
+ className: `f-icon ${handleClick ? " clicking-icon" : ""} ${color} ${className || ""}`,
3875
+ viewBox: "0 0 16 16",
3876
+ "data-testid": dataTestId,
3877
+ ...props,
3878
+ children: [
3879
+ /* @__PURE__ */ jsx("path", { d: "M.5 9.9a.5.5 0 0 1 .5.5v2.5a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2.5a.5.5 0 0 1 1 0v2.5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-2.5a.5.5 0 0 1 .5-.5" }),
3880
+ /* @__PURE__ */ jsx("path", { d: "M7.646 1.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1-.708.708L8.5 2.707V11.5a.5.5 0 0 1-1 0V2.707L5.354 4.854a.5.5 0 1 1-.708-.708z" })
3881
+ ]
3882
+ }
3883
+ );
3884
+ });
3885
+ FUploadIcon.displayName = "FUploadIcon";
3856
3886
  const FDownloadIcon = React.forwardRef(({
3857
3887
  color = "primary",
3858
3888
  size = 30,
@@ -8065,6 +8095,7 @@ export {
8065
8095
  FTooltip,
8066
8096
  FTrashIcon,
8067
8097
  FUnlinkIcon,
8098
+ FUploadIcon,
8068
8099
  FWaterErrorBoundaryPage,
8069
8100
  fAlert,
8070
8101
  fBankRound,