@shoplflow/templates 0.1.9 → 0.1.11
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.cjs +3 -1
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +3 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -517,7 +517,8 @@ var TablePagination = ({
|
|
|
517
517
|
pageSizeList = PAGE_SIZE,
|
|
518
518
|
setCurrentPage,
|
|
519
519
|
notSizeOption = false,
|
|
520
|
-
currentPage
|
|
520
|
+
currentPage,
|
|
521
|
+
sizeVar = "S"
|
|
521
522
|
}) => {
|
|
522
523
|
const { table, headerRef, bodyRef, tableScrollRef, footerRef, hasFilterBar, hasToolbar } = useTable();
|
|
523
524
|
const { pageSize, pageIndex } = table.getState().pagination;
|
|
@@ -589,6 +590,7 @@ var TablePagination = ({
|
|
|
589
590
|
totalCount: Math.ceil(total / Number(pageSize)),
|
|
590
591
|
previousPage: () => handlePageChange(pageIndex - 1),
|
|
591
592
|
nextPage: () => handlePageChange(pageIndex + 1),
|
|
593
|
+
sizeVar,
|
|
592
594
|
style: { paddingInline: "16px" },
|
|
593
595
|
gotoPage: handlePageChange,
|
|
594
596
|
rightSource: notSizeOption ? /* @__PURE__ */ jsxRuntime.jsx(EmptySource, {}) : /* @__PURE__ */ jsxRuntime.jsx(
|
package/dist/index.d.cts
CHANGED
|
@@ -142,6 +142,7 @@ declare type TablePaginationProps = {
|
|
|
142
142
|
notSizeOption?: boolean;
|
|
143
143
|
resetDependencies?: any[];
|
|
144
144
|
currentPage?: number;
|
|
145
|
+
sizeVar?: 'S' | 'XS';
|
|
145
146
|
};
|
|
146
147
|
|
|
147
148
|
declare type FilterChangeHandler = (value: string) => void;
|
|
@@ -215,7 +216,7 @@ declare const Table: <T extends object>({ data, columns, columnResizing, childre
|
|
|
215
216
|
* @param {number} [props.currentPage] - 현재 페이지 인덱스
|
|
216
217
|
* @returns {JSX.Element} 렌더링된 페이지네이션 컴포넌트
|
|
217
218
|
*/
|
|
218
|
-
declare const TablePagination: ({ total, defaultPageSize, children, pageSizeList, setCurrentPage, notSizeOption, currentPage, }: TablePaginationProps) => react_jsx_runtime.JSX.Element;
|
|
219
|
+
declare const TablePagination: ({ total, defaultPageSize, children, pageSizeList, setCurrentPage, notSizeOption, currentPage, sizeVar, }: TablePaginationProps) => react_jsx_runtime.JSX.Element;
|
|
219
220
|
|
|
220
221
|
/**
|
|
221
222
|
* 테이블의 툴바를 렌더링하는 컴포넌트
|
package/dist/index.d.ts
CHANGED
|
@@ -142,6 +142,7 @@ declare type TablePaginationProps = {
|
|
|
142
142
|
notSizeOption?: boolean;
|
|
143
143
|
resetDependencies?: any[];
|
|
144
144
|
currentPage?: number;
|
|
145
|
+
sizeVar?: 'S' | 'XS';
|
|
145
146
|
};
|
|
146
147
|
|
|
147
148
|
declare type FilterChangeHandler = (value: string) => void;
|
|
@@ -215,7 +216,7 @@ declare const Table: <T extends object>({ data, columns, columnResizing, childre
|
|
|
215
216
|
* @param {number} [props.currentPage] - 현재 페이지 인덱스
|
|
216
217
|
* @returns {JSX.Element} 렌더링된 페이지네이션 컴포넌트
|
|
217
218
|
*/
|
|
218
|
-
declare const TablePagination: ({ total, defaultPageSize, children, pageSizeList, setCurrentPage, notSizeOption, currentPage, }: TablePaginationProps) => react_jsx_runtime.JSX.Element;
|
|
219
|
+
declare const TablePagination: ({ total, defaultPageSize, children, pageSizeList, setCurrentPage, notSizeOption, currentPage, sizeVar, }: TablePaginationProps) => react_jsx_runtime.JSX.Element;
|
|
219
220
|
|
|
220
221
|
/**
|
|
221
222
|
* 테이블의 툴바를 렌더링하는 컴포넌트
|
package/dist/index.js
CHANGED
|
@@ -511,7 +511,8 @@ var TablePagination = ({
|
|
|
511
511
|
pageSizeList = PAGE_SIZE,
|
|
512
512
|
setCurrentPage,
|
|
513
513
|
notSizeOption = false,
|
|
514
|
-
currentPage
|
|
514
|
+
currentPage,
|
|
515
|
+
sizeVar = "S"
|
|
515
516
|
}) => {
|
|
516
517
|
const { table, headerRef, bodyRef, tableScrollRef, footerRef, hasFilterBar, hasToolbar } = useTable();
|
|
517
518
|
const { pageSize, pageIndex } = table.getState().pagination;
|
|
@@ -583,6 +584,7 @@ var TablePagination = ({
|
|
|
583
584
|
totalCount: Math.ceil(total / Number(pageSize)),
|
|
584
585
|
previousPage: () => handlePageChange(pageIndex - 1),
|
|
585
586
|
nextPage: () => handlePageChange(pageIndex + 1),
|
|
587
|
+
sizeVar,
|
|
586
588
|
style: { paddingInline: "16px" },
|
|
587
589
|
gotoPage: handlePageChange,
|
|
588
590
|
rightSource: notSizeOption ? /* @__PURE__ */ jsx(EmptySource, {}) : /* @__PURE__ */ jsx(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shoplflow/templates",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.11",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -91,9 +91,9 @@
|
|
|
91
91
|
"react-datepicker": "^7.3.0",
|
|
92
92
|
"react-dom": "^18.2.0",
|
|
93
93
|
"simplebar-react": "^3.2.6",
|
|
94
|
-
"@shoplflow/base": "^0.41.
|
|
94
|
+
"@shoplflow/base": "^0.41.6",
|
|
95
95
|
"@shoplflow/hada-assets": "^0.1.6",
|
|
96
|
-
"@shoplflow/shopl-assets": "^0.12.
|
|
96
|
+
"@shoplflow/shopl-assets": "^0.12.19",
|
|
97
97
|
"@shoplflow/utils": "^0.6.5"
|
|
98
98
|
},
|
|
99
99
|
"scripts": {
|