@dust-tt/sparkle 0.2.164 → 0.2.166
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/_index.d.ts +2 -0
- package/dist/cjs/components/Pagination.d.ts +12 -0
- package/dist/cjs/index.js +80 -12
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/stories/Pagination.stories.d.ts +10 -0
- package/dist/esm/_index.d.ts +2 -0
- package/dist/esm/components/Pagination.d.ts +12 -0
- package/dist/esm/index.js +80 -13
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/stories/Pagination.stories.d.ts +10 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Pagination } from "../index_with_tw_base";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof Pagination;
|
|
6
|
+
};
|
|
7
|
+
export default meta;
|
|
8
|
+
export declare const PaginationSM: () => React.JSX.Element;
|
|
9
|
+
export declare const PaginationXS: () => React.JSX.Element;
|
|
10
|
+
export declare const PaginationNoPageButtons: () => React.JSX.Element;
|
package/dist/esm/_index.d.ts
CHANGED
|
@@ -38,6 +38,8 @@ import { DropdownMenu } from "./components/DropdownMenu";
|
|
|
38
38
|
export { DropdownMenu };
|
|
39
39
|
import { Page } from "./components/Page";
|
|
40
40
|
export { Page };
|
|
41
|
+
import { Pagination } from "./components/Pagination";
|
|
42
|
+
export { Pagination };
|
|
41
43
|
import { BarHeader } from "./components/BarHeader";
|
|
42
44
|
export { BarHeader };
|
|
43
45
|
import { PriceTable } from "./components/PriceTable";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
type Size = "sm" | "xs";
|
|
3
|
+
interface PaginationProps {
|
|
4
|
+
itemsCount: number;
|
|
5
|
+
maxItemsPerPage: number;
|
|
6
|
+
onButtonClick: (pageNumber: number) => void;
|
|
7
|
+
size?: Size;
|
|
8
|
+
showDetails?: boolean;
|
|
9
|
+
showPageButtons?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare function Pagination({ itemsCount, maxItemsPerPage, onButtonClick, size, showDetails, showPageButtons }: PaginationProps): React.JSX.Element;
|
|
12
|
+
export {};
|