pds-dev-kit-web-test 2.7.203 → 2.7.204

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.
@@ -15,7 +15,7 @@ type Props = {
15
15
  iconSize: IconButtonProps['iconSize'];
16
16
  };
17
17
  export declare function Design1({ total, current, pages, primaryColor, secondaryColor, ellipsis, maxVisiblePages, buttonSize, iconSize, onPageChange, onNext, onPrevious }: Props): JSX.Element;
18
- export declare function Design2({ total, current, pages, primaryColor, secondaryColor, ellipsis, maxVisiblePages, buttonSize, iconSize, onPageChange, onNext, onPrevious }: Props): JSX.Element;
18
+ export declare function Design2({ total, current, primaryColor, secondaryColor, ellipsis, maxVisiblePages, iconSize, onPageChange, onNext, onPrevious }: Props): JSX.Element;
19
19
  export declare function Design3({ total, current, pages, primaryColor, secondaryColor, ellipsis, maxVisiblePages, iconSize, onPageChange, onNext, onPrevious }: Props): JSX.Element;
20
20
  export declare function Design7({ total, current, pages, primaryColor, secondaryColor, iconSize, onPageChange, onNext, onPrevious }: Props): JSX.Element;
21
21
  export declare function Design8({ total, current, pages, primaryColor, secondaryColor, iconSize, onPageChange, onNext, onPrevious }: Props): JSX.Element;
@@ -56,11 +56,11 @@ function Design1(_a) {
56
56
  }
57
57
  exports.Design1 = Design1;
58
58
  function Design2(_a) {
59
- var total = _a.total, current = _a.current, pages = _a.pages, primaryColor = _a.primaryColor, secondaryColor = _a.secondaryColor, ellipsis = _a.ellipsis, _b = _a.maxVisiblePages, maxVisiblePages = _b === void 0 ? 5 : _b, buttonSize = _a.buttonSize, _c = _a.iconSize, iconSize = _c === void 0 ? 24 : _c, onPageChange = _a.onPageChange, onNext = _a.onNext, onPrevious = _a.onPrevious;
59
+ var total = _a.total, current = _a.current, primaryColor = _a.primaryColor, secondaryColor = _a.secondaryColor, ellipsis = _a.ellipsis, _b = _a.maxVisiblePages, maxVisiblePages = _b === void 0 ? 5 : _b, _c = _a.iconSize, iconSize = _c === void 0 ? 24 : _c, onPageChange = _a.onPageChange, onNext = _a.onNext, onPrevious = _a.onPrevious;
60
60
  var pagesToRender = ellipsis
61
61
  ? (0, usePagination_1.getPaginationItems)(total, current, maxVisiblePages)
62
62
  : Array.from({ length: total }, function (_, i) { return i + 1; });
63
- return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ gap: "4px" }, { children: [(0, jsx_runtime_1.jsx)(S_Pointer, __assign({ onClick: onPrevious, disabled: current === 1 }, { children: (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_left", size: iconSize, colorKey: "ui_cpnt_icon_sys_dark", overrideColorHex: primaryColor }) })), pagesToRender.map(function (pageNumber) { return ((0, jsx_runtime_1.jsx)(S_Page, __assign({ type: "button", shape: "rectangle", backgroundColor: "transparent", activeBackgroundColor: secondaryColor, textColor: primaryColor, activeTextColor: primaryColor,
63
+ return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ gap: "4px" }, { children: [(0, jsx_runtime_1.jsx)(S_Pointer, __assign({ onClick: onPrevious, disabled: current === 1 }, { children: (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_left", size: iconSize, colorKey: "ui_cpnt_icon_sys_dark", overrideColorHex: primaryColor }) })), pagesToRender.map(function (pageNumber) { return ((0, jsx_runtime_1.jsx)(S_Page, __assign({ type: "button", shape: "rectangle", backgroundColor: "transparent", activeBackgroundColor: secondaryColor, textColor: primaryColor, activeTextColor: primaryColor, radius: 8,
64
64
  // '...'인 경우 버튼 비활성화 및 클릭 방지
65
65
  isActive: pageNumber === current, size: iconSize, disabled: pageNumber === '...', onClick: function () { return pageNumber !== '...' && onPageChange && onPageChange(pageNumber); } }, { children: pageNumber }), pageNumber)); }), (0, jsx_runtime_1.jsx)(S_Pointer, __assign({ onClick: onNext, disabled: current === total }, { children: (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_right", size: iconSize, colorKey: "ui_cpnt_icon_sys_dark", overrideColorHex: primaryColor }) }))] })));
66
66
  }
@@ -70,7 +70,7 @@ function Design3(_a) {
70
70
  var pagesToRender = ellipsis
71
71
  ? (0, usePagination_1.getPaginationItems)(total, current, maxVisiblePages)
72
72
  : Array.from({ length: total }, function (_, i) { return i + 1; });
73
- return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ gap: "4px" }, { children: [(0, jsx_runtime_1.jsx)(S_Pointer, __assign({ onClick: onPrevious, disabled: current === 1 }, { children: (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_left", size: iconSize, colorKey: "ui_cpnt_icon_sys_dark", overrideColorHex: primaryColor }) })), pagesToRender.map(function (pageNumber) { return ((0, jsx_runtime_1.jsx)(S_Page, __assign({ type: "button", shape: "rectangle", backgroundColor: "transparent", activeBackgroundColor: secondaryColor, textColor: primaryColor, activeTextColor: primaryColor,
73
+ return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ gap: "4px" }, { children: [(0, jsx_runtime_1.jsx)(S_Pointer, __assign({ onClick: onPrevious, disabled: current === 1 }, { children: (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_left", size: iconSize, colorKey: "ui_cpnt_icon_sys_dark", overrideColorHex: primaryColor }) })), pagesToRender.map(function (pageNumber) { return ((0, jsx_runtime_1.jsx)(S_Page, __assign({ type: "button", shape: "rectangle", backgroundColor: "transparent", activeBackgroundColor: secondaryColor, textColor: primaryColor, radius: 16, activeTextColor: primaryColor,
74
74
  // '...'인 경우 버튼 비활성화 및 클릭 방지
75
75
  size: iconSize, isActive: pageNumber === current, disabled: pageNumber === '...', onClick: function () { return pageNumber !== '...' && onPageChange && onPageChange(pageNumber); } }, { children: pageNumber }), pageNumber)); }), (0, jsx_runtime_1.jsx)(S_Pointer, __assign({ onClick: onNext, disabled: current === total }, { children: (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_right", size: iconSize, colorKey: "ui_cpnt_icon_sys_dark", overrideColorHex: primaryColor }) }))] })));
76
76
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pds-dev-kit-web-test",
3
- "version": "2.7.203",
3
+ "version": "2.7.204",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "dist/index.js",