fui-material 0.1.30 → 0.1.31
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/cjs/types/material/FPagination/FPagination.d.ts +14 -0
- package/dist/cjs/types/material/FPagination/FPagination.stories.d.ts +8 -0
- package/dist/cjs/types/material/FPagination/hooks/usePagination.d.ts +9 -0
- package/dist/esm/types/material/FPagination/FPagination.d.ts +14 -0
- package/dist/esm/types/material/FPagination/FPagination.stories.d.ts +8 -0
- package/dist/esm/types/material/FPagination/hooks/usePagination.d.ts +9 -0
- package/package.json +1 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React, { FC } from 'react';
|
|
2
|
+
import "./FPagination.css";
|
|
3
|
+
export interface IFPagination {
|
|
4
|
+
currentPage: number;
|
|
5
|
+
totalCount: number;
|
|
6
|
+
pageSize: number;
|
|
7
|
+
onPageChange: (page: number | string | number) => void;
|
|
8
|
+
id?: string;
|
|
9
|
+
className?: string;
|
|
10
|
+
st?: React.CSSProperties | undefined;
|
|
11
|
+
siblingCount: 0 | 1 | 2;
|
|
12
|
+
}
|
|
13
|
+
declare const FPagination: FC<IFPagination>;
|
|
14
|
+
export default FPagination;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ComponentMeta, Story } from '@storybook/react';
|
|
3
|
+
import { IFPagination } from "./FPagination";
|
|
4
|
+
import "./FPagination.css";
|
|
5
|
+
import "bootstrap/dist/css/bootstrap.css";
|
|
6
|
+
declare const _default: ComponentMeta<React.FC<IFPagination>>;
|
|
7
|
+
export default _default;
|
|
8
|
+
export declare const Default: Story<IFPagination>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const DOTS = "...";
|
|
2
|
+
interface IProps {
|
|
3
|
+
currentPage: number;
|
|
4
|
+
totalCount: number;
|
|
5
|
+
pageSize: number;
|
|
6
|
+
siblingCount: number;
|
|
7
|
+
}
|
|
8
|
+
export declare const usePagination: ({ totalCount, pageSize, siblingCount, currentPage }: IProps) => (string | number)[] | undefined;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React, { FC } from 'react';
|
|
2
|
+
import "./FPagination.css";
|
|
3
|
+
export interface IFPagination {
|
|
4
|
+
currentPage: number;
|
|
5
|
+
totalCount: number;
|
|
6
|
+
pageSize: number;
|
|
7
|
+
onPageChange: (page: number | string | number) => void;
|
|
8
|
+
id?: string;
|
|
9
|
+
className?: string;
|
|
10
|
+
st?: React.CSSProperties | undefined;
|
|
11
|
+
siblingCount: 0 | 1 | 2;
|
|
12
|
+
}
|
|
13
|
+
declare const FPagination: FC<IFPagination>;
|
|
14
|
+
export default FPagination;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ComponentMeta, Story } from '@storybook/react';
|
|
3
|
+
import { IFPagination } from "./FPagination";
|
|
4
|
+
import "./FPagination.css";
|
|
5
|
+
import "bootstrap/dist/css/bootstrap.css";
|
|
6
|
+
declare const _default: ComponentMeta<React.FC<IFPagination>>;
|
|
7
|
+
export default _default;
|
|
8
|
+
export declare const Default: Story<IFPagination>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const DOTS = "...";
|
|
2
|
+
interface IProps {
|
|
3
|
+
currentPage: number;
|
|
4
|
+
totalCount: number;
|
|
5
|
+
pageSize: number;
|
|
6
|
+
siblingCount: number;
|
|
7
|
+
}
|
|
8
|
+
export declare const usePagination: ({ totalCount, pageSize, siblingCount, currentPage }: IProps) => (string | number)[] | undefined;
|
|
9
|
+
export {};
|