pds-dev-kit-web-test 2.5.435 → 2.5.436

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.
Files changed (144) hide show
  1. package/dist/src/common/hooks/useTooltip.js +1 -1
  2. package/dist/src/common/styles/colorSet/index.d.ts +2 -2
  3. package/dist/src/common/styles/colorSet/index.js +2 -2
  4. package/dist/src/common/utils/SystemUIPositionGenerator/hoverTypeSystemUICssGenerator.js +1 -1
  5. package/dist/src/desktop/components/BasicButtonGroup/BasicButtonGroup.js +1 -1
  6. package/dist/src/desktop/panels/DesktopHeadlessModal/DesktopHeadlessModal.d.ts +1 -16
  7. package/dist/src/desktop/panels/DesktopHeadlessModal/DesktopHeadlessModal.js +4 -33
  8. package/dist/src/sub/DynamicLayout/CompositionEditor/CompositionEditor.d.ts +21 -0
  9. package/dist/src/sub/DynamicLayout/CompositionEditor/CompositionEditor.js +1133 -0
  10. package/dist/src/sub/DynamicLayout/CompositionRenderer/ComponentBlockMatcher.js +4 -1
  11. package/dist/src/sub/DynamicLayout/CompositionRenderer/Composition.d.ts +5 -3
  12. package/dist/src/sub/DynamicLayout/CompositionRenderer/Composition.js +53 -53
  13. package/dist/src/sub/DynamicLayout/CompositionRenderer/CompositionBackground.d.ts +11 -0
  14. package/dist/src/sub/DynamicLayout/CompositionRenderer/CompositionBackground.js +45 -0
  15. package/dist/src/sub/DynamicLayout/CompositionRenderer/createCompositions.d.ts +10 -0
  16. package/dist/src/sub/DynamicLayout/CompositionRenderer/createCompositions.js +79 -0
  17. package/dist/src/sub/DynamicLayout/DynamicLayout.d.ts +1 -1
  18. package/dist/src/sub/DynamicLayout/DynamicLayout.js +3 -2
  19. package/dist/src/sub/DynamicLayout/components/Section/sectionContext.d.ts +2 -2
  20. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/downIcons.d.ts +12 -0
  21. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/downIcons.js +76 -0
  22. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/index.d.ts +4 -0
  23. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/index.js +47 -0
  24. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/leftIcons.d.ts +12 -0
  25. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/leftIcons.js +76 -0
  26. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/rightIcons.d.ts +12 -0
  27. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/rightIcons.js +76 -0
  28. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/upIcons.d.ts +12 -0
  29. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/upIcons.js +76 -0
  30. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/index.d.ts +40 -0
  31. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/index.js +36 -177
  32. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/PaletteColor_Dark.json +152 -4
  33. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/PaletteColor_light.json +150 -2
  34. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/SemanticColor.json +45 -1
  35. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/UIColor.json +262 -9
  36. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/index.d.ts +593 -0
  37. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/ui-type.d.ts +253 -0
  38. package/dist/src/sub/DynamicLayout/components/pdsOriginal/desktop/IconButton/IconButton.d.ts +3 -1
  39. package/dist/src/sub/DynamicLayout/components/pdsOriginal/desktop/IconButton/IconButton.js +5 -3
  40. package/dist/src/sub/DynamicLayout/components/pdsOriginal/hybrid/Icon/Icon.d.ts +2 -1
  41. package/dist/src/sub/DynamicLayout/components/pdsOriginal/hybrid/Icon/Icon.js +9 -2
  42. package/dist/src/sub/DynamicLayout/compositionActionTypes.d.ts +139 -0
  43. package/dist/src/sub/DynamicLayout/compositionActionTypes.js +2 -0
  44. package/dist/src/sub/DynamicLayout/compositionQueryContext.d.ts +8 -0
  45. package/dist/src/sub/DynamicLayout/compositionQueryContext.js +14 -0
  46. package/dist/src/sub/DynamicLayout/mock_composition.d.ts +3 -0
  47. package/dist/src/sub/DynamicLayout/mock_composition.js +1606 -0
  48. package/dist/src/sub/DynamicLayout/mock_contentsCarousel.d.ts +1 -0
  49. package/dist/src/sub/DynamicLayout/mock_contentsCarousel.js +1123 -0
  50. package/dist/src/sub/DynamicLayout/mock_contentsList.d.ts +1 -0
  51. package/dist/src/sub/DynamicLayout/mock_contentsList.js +1091 -0
  52. package/dist/src/sub/DynamicLayout/mock_queryData.d.ts +96 -0
  53. package/dist/src/sub/DynamicLayout/mock_queryData.js +2639 -0
  54. package/dist/src/sub/DynamicLayout/mock_slideBanner.d.ts +842 -0
  55. package/dist/src/sub/DynamicLayout/mock_slideBanner.js +854 -0
  56. package/dist/src/sub/DynamicLayout/mock_video.d.ts +368 -0
  57. package/dist/src/sub/DynamicLayout/mock_video.js +371 -0
  58. package/dist/src/sub/DynamicLayout/mock_video_cb.d.ts +0 -1
  59. package/dist/src/sub/DynamicLayout/mock_video_cb.js +4 -5
  60. package/dist/src/sub/DynamicLayout/mocks.d.ts +8 -961
  61. package/dist/src/sub/DynamicLayout/mocks.js +4286 -6
  62. package/dist/src/sub/DynamicLayout/sectionActionTypes.d.ts +4 -4
  63. package/dist/src/sub/DynamicLayout/sections/CustomSection/CustomSection.d.ts +1 -1
  64. package/dist/src/sub/DynamicLayout/sections/CustomSection/CustomSection.js +4 -4
  65. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/ComponentBlockMatcher.js +13 -3
  66. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/Button.js +18 -2
  67. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarousel.d.ts +4 -4
  68. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarousel.js +249 -2
  69. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarouselCore.d.ts +17 -0
  70. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarouselCore.js +59 -0
  71. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigation.d.ts +35 -0
  72. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigation.js +118 -0
  73. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomPagination.d.ts +32 -0
  74. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomPagination.js +183 -0
  75. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomProgressbar.d.ts +23 -0
  76. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomProgressbar.js +117 -0
  77. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/navigationConfigs.d.ts +4 -0
  78. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/navigationConfigs.js +849 -0
  79. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/progressConfigs.d.ts +43 -0
  80. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/progressConfigs.js +162 -0
  81. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/contentsCarouselUtils.d.ts +40 -0
  82. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/contentsCarouselUtils.js +747 -0
  83. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/index.d.ts +1 -0
  84. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/index.js +8 -0
  85. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/types.d.ts +105 -0
  86. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/types.js +2 -0
  87. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsList.d.ts +8 -0
  88. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsList.js +172 -0
  89. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsListCore.d.ts +17 -0
  90. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsListCore.js +39 -0
  91. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/CustomPagination.d.ts +29 -0
  92. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/CustomPagination.js +115 -0
  93. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/paginationConfigs.d.ts +25 -0
  94. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/paginationConfigs.js +183 -0
  95. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/contentsListUtils.d.ts +30 -0
  96. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/contentsListUtils.js +380 -0
  97. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/index.d.ts +1 -0
  98. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/index.js +8 -0
  99. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/types.d.ts +56 -0
  100. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/types.js +2 -0
  101. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Image/Image.js +39 -3
  102. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBanner.d.ts +8 -0
  103. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBanner.js +215 -0
  104. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBannerCore.d.ts +15 -0
  105. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBannerCore.js +39 -0
  106. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomNavigation.d.ts +35 -0
  107. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomNavigation.js +118 -0
  108. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomPagination.d.ts +33 -0
  109. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomPagination.js +183 -0
  110. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomProgressbar.d.ts +23 -0
  111. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomProgressbar.js +117 -0
  112. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/navigationConfigs.d.ts +4 -0
  113. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/navigationConfigs.js +849 -0
  114. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/progressConfigs.d.ts +43 -0
  115. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/progressConfigs.js +162 -0
  116. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/index.d.ts +1 -0
  117. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/index.js +8 -0
  118. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/slideBannerUtils.d.ts +48 -0
  119. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/slideBannerUtils.js +956 -0
  120. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/types.d.ts +120 -0
  121. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/types.js +2 -0
  122. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text/Text.js +31 -7
  123. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/VideoPlayer/VideoPlayer.js +3 -28
  124. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/types.d.ts +45 -3
  125. package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/group.d.ts +1 -1
  126. package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/replaceUndefinedValues.js +1 -1
  127. package/dist/src/sub/DynamicLayout/sections/CustomSection/types.d.ts +27 -10
  128. package/dist/src/sub/DynamicLayout/sections/CustomSection/types.js +3 -1
  129. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/effectPropParsers/parseEffectPropEntAnim.d.ts +4 -4
  130. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/layoutPropParsers/parseLayoutPropPadding.d.ts +2 -2
  131. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseCompositionPlacement.d.ts +14 -0
  132. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseCompositionPlacement.js +26 -0
  133. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseJsonProperties.d.ts +2 -2
  134. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parsePlacement.d.ts +1 -1
  135. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parsePlacement.js +2 -2
  136. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseProperties.d.ts +2 -2
  137. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/types.d.ts +52 -3
  138. package/dist/src/sub/DynamicLayout/sections/FlexGridCustomSection.d.ts +1 -1
  139. package/dist/src/sub/DynamicLayout/sections/FlexGridCustomSection.js +1 -0
  140. package/dist/src/sub/DynamicLayout/types.d.ts +49 -16
  141. package/package.json +3 -2
  142. package/release-note.md +2 -2
  143. package/dist/src/sub/DynamicLayout/CompositionRenderer/CompositionRenderer.d.ts +0 -6
  144. package/dist/src/sub/DynamicLayout/CompositionRenderer/CompositionRenderer.js +0 -27
@@ -0,0 +1,183 @@
1
+ "use strict";
2
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
+ return cooked;
5
+ };
6
+ var __assign = (this && this.__assign) || function () {
7
+ __assign = Object.assign || function(t) {
8
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
9
+ s = arguments[i];
10
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
11
+ t[p] = s[p];
12
+ }
13
+ return t;
14
+ };
15
+ return __assign.apply(this, arguments);
16
+ };
17
+ var __importDefault = (this && this.__importDefault) || function (mod) {
18
+ return (mod && mod.__esModule) ? mod : { "default": mod };
19
+ };
20
+ Object.defineProperty(exports, "__esModule", { value: true });
21
+ exports.Design13 = exports.Design12 = exports.Design11 = exports.Design10 = exports.Design9 = exports.Design8 = exports.Design7 = exports.Design6 = exports.Design5 = exports.Design4 = exports.Design3 = exports.Design2 = exports.Design1 = void 0;
22
+ var jsx_runtime_1 = require("react/jsx-runtime");
23
+ var components_1 = require("../../../../../../../../DynamicLayout/components");
24
+ var styled_components_1 = __importDefault(require("styled-components"));
25
+ function Design1(_a) {
26
+ var total = _a.total, current = _a.current, pages = _a.pages, primaryColor = _a.primaryColor, secondaryColor = _a.secondaryColor, onPageChange = _a.onPageChange, onNext = _a.onNext, onPrevious = _a.onPrevious;
27
+ 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: 16, colorKey: "ui_cpnt_icon_sys_dark" }) })), pages === null || pages === void 0 ? void 0 : pages.map(function (pageNumber) { return ((0, jsx_runtime_1.jsx)(S_Page, __assign({ type: "button", shape: "rectangle", backgroundColor: "transparent", activeBackgroundColor: primaryColor, textColor: "#333333", activeTextColor: secondaryColor, isActive: pageNumber === current, onClick: function () { return 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: 16, colorKey: "ui_cpnt_icon_sys_dark" }) }))] })));
28
+ }
29
+ exports.Design1 = Design1;
30
+ function Design2(_a) {
31
+ var total = _a.total, current = _a.current, pages = _a.pages, primaryColor = _a.primaryColor, secondaryColor = _a.secondaryColor, onPageChange = _a.onPageChange, onNext = _a.onNext, onPrevious = _a.onPrevious;
32
+ 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: 16, colorKey: "ui_cpnt_icon_sys_dark" }) })), pages === null || pages === void 0 ? void 0 : pages.map(function (pageNumber) { return ((0, jsx_runtime_1.jsx)(S_Page, __assign({ type: "button", shape: "round", radius: 8, backgroundColor: "transparent", activeBackgroundColor: primaryColor, textColor: "#333333", activeTextColor: secondaryColor, isActive: pageNumber === current, onClick: function () { return 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: 16, colorKey: "ui_cpnt_icon_sys_dark" }) }))] })));
33
+ }
34
+ exports.Design2 = Design2;
35
+ function Design3(_a) {
36
+ var total = _a.total, current = _a.current, pages = _a.pages, primaryColor = _a.primaryColor, secondaryColor = _a.secondaryColor, onPageChange = _a.onPageChange, onNext = _a.onNext, onPrevious = _a.onPrevious;
37
+ 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: 16, colorKey: "ui_cpnt_icon_sys_dark" }) })), pages === null || pages === void 0 ? void 0 : pages.map(function (pageNumber) { return ((0, jsx_runtime_1.jsx)(S_Page, __assign({ type: "button", shape: "circle", backgroundColor: "transparent", activeBackgroundColor: primaryColor, textColor: "#333333", activeTextColor: secondaryColor, isActive: pageNumber === current, onClick: function () { return 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: 16, colorKey: "ui_cpnt_icon_sys_dark" }) }))] })));
38
+ }
39
+ exports.Design3 = Design3;
40
+ function Design4(_a) {
41
+ var total = _a.total, current = _a.current, pages = _a.pages, primaryColor = _a.primaryColor, secondaryColor = _a.secondaryColor, onPageChange = _a.onPageChange, onNext = _a.onNext, onPrevious = _a.onPrevious;
42
+ 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: 16, colorKey: "ui_cpnt_icon_sys_dark" }) })), pages === null || pages === void 0 ? void 0 : pages.map(function (pageNumber) { return ((0, jsx_runtime_1.jsx)(S_Page, __assign({ type: "button", shape: "rectangle", backgroundColor: "transparent", activeBackgroundColor: secondaryColor, textColor: "#333333", activeTextColor: primaryColor, isActive: pageNumber === current, onClick: function () { return 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: 16, colorKey: "ui_cpnt_icon_sys_dark" }) }))] })));
43
+ }
44
+ exports.Design4 = Design4;
45
+ function Design5(_a) {
46
+ var total = _a.total, current = _a.current, pages = _a.pages, primaryColor = _a.primaryColor, secondaryColor = _a.secondaryColor, onPageChange = _a.onPageChange, onNext = _a.onNext, onPrevious = _a.onPrevious;
47
+ 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: 16, colorKey: "ui_cpnt_icon_sys_dark" }) })), pages === null || pages === void 0 ? void 0 : pages.map(function (pageNumber) { return ((0, jsx_runtime_1.jsx)(S_Page, __assign({ type: "button", shape: "round", radius: 8, backgroundColor: "transparent", activeBackgroundColor: secondaryColor, textColor: "#333333", activeTextColor: primaryColor, isActive: pageNumber === current, onClick: function () { return 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: 16, colorKey: "ui_cpnt_icon_sys_dark" }) }))] })));
48
+ }
49
+ exports.Design5 = Design5;
50
+ function Design6(_a) {
51
+ var total = _a.total, current = _a.current, pages = _a.pages, primaryColor = _a.primaryColor, secondaryColor = _a.secondaryColor, onPageChange = _a.onPageChange, onNext = _a.onNext, onPrevious = _a.onPrevious;
52
+ 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: 16, colorKey: "ui_cpnt_icon_sys_dark" }) })), pages === null || pages === void 0 ? void 0 : pages.map(function (pageNumber) { return ((0, jsx_runtime_1.jsx)(S_Page, __assign({ type: "button", shape: "circle", backgroundColor: "transparent", activeBackgroundColor: secondaryColor, textColor: "#333333", activeTextColor: primaryColor, isActive: pageNumber === current, onClick: function () { return 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: 16, colorKey: "ui_cpnt_icon_sys_dark" }) }))] })));
53
+ }
54
+ exports.Design6 = Design6;
55
+ function Design7(_a) {
56
+ var total = _a.total, current = _a.current, pages = _a.pages, primaryColor = _a.primaryColor, secondaryColor = _a.secondaryColor, onPageChange = _a.onPageChange, onNext = _a.onNext, onPrevious = _a.onPrevious;
57
+ return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ gap: "4px" }, { children: [pages === null || pages === void 0 ? void 0 : pages.map(function (pageNumber) { return ((0, jsx_runtime_1.jsx)(S_Page, __assign({ type: "button", shape: "rectangle", backgroundColor: "transparent", activeBackgroundColor: primaryColor, textColor: "#333333", activeTextColor: secondaryColor, isActive: pageNumber === current, onClick: function () { return onPageChange && onPageChange(pageNumber); } }, { children: pageNumber }), pageNumber)); }), (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: 16, colorKey: "ui_cpnt_icon_sys_dark" }) })), (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: 16, colorKey: "ui_cpnt_icon_sys_dark" }) }))] })));
58
+ }
59
+ exports.Design7 = Design7;
60
+ function Design8(_a) {
61
+ var total = _a.total, current = _a.current, pages = _a.pages, primaryColor = _a.primaryColor, secondaryColor = _a.secondaryColor, onPageChange = _a.onPageChange, onNext = _a.onNext, onPrevious = _a.onPrevious;
62
+ 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: 16, colorKey: "ui_cpnt_icon_sys_dark" }) })), pages === null || pages === void 0 ? void 0 : pages.map(function (pageNumber) { return ((0, jsx_runtime_1.jsx)(S_Page, __assign({ type: "button", shape: "round", radius: 8, backgroundColor: primaryColor, activeBackgroundColor: secondaryColor, textColor: secondaryColor, activeTextColor: primaryColor, isActive: pageNumber === current, onClick: function () { return 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: 16, colorKey: "ui_cpnt_icon_sys_dark" }) }))] })));
63
+ }
64
+ exports.Design8 = Design8;
65
+ function Design9(_a) {
66
+ var total = _a.total, current = _a.current, pages = _a.pages, primaryColor = _a.primaryColor, secondaryColor = _a.secondaryColor, onPageChange = _a.onPageChange, onNext = _a.onNext, onPrevious = _a.onPrevious;
67
+ 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: 16, colorKey: "ui_cpnt_icon_sys_dark" }) })), pages === null || pages === void 0 ? void 0 : pages.map(function (pageNumber) { return ((0, jsx_runtime_1.jsx)(S_Page, __assign({ type: "button", shape: "round", radius: 8, backgroundColor: "transparent", activeBackgroundColor: "transparent", textColor: secondaryColor, activeTextColor: primaryColor, isActive: pageNumber === current, onClick: function () { return 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: 16, colorKey: "ui_cpnt_icon_sys_dark" }) }))] })));
68
+ }
69
+ exports.Design9 = Design9;
70
+ function Design10(_a) {
71
+ var total = _a.total, current = _a.current, primaryColor = _a.primaryColor, secondaryColor = _a.secondaryColor, onPageChange = _a.onPageChange, onNext = _a.onNext, onPrevious = _a.onPrevious;
72
+ var paginationPages = generatePaginationPages(total, current);
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: 16, colorKey: "ui_cpnt_icon_sys_dark" }) })), paginationPages === null || paginationPages === void 0 ? void 0 : paginationPages.map(function (pageNumber) {
74
+ if (typeof pageNumber === 'string') {
75
+ return ((0, jsx_runtime_1.jsx)(S_Page, __assign({ type: "button", shape: "rectangle", backgroundColor: "transparent", activeBackgroundColor: primaryColor, textColor: primaryColor, activeTextColor: secondaryColor, isActive: false, disabled: true }, { children: pageNumber }), pageNumber));
76
+ }
77
+ return ((0, jsx_runtime_1.jsx)(S_Page, __assign({ type: "button", shape: "rectangle", backgroundColor: "transparent", activeBackgroundColor: primaryColor, textColor: primaryColor, activeTextColor: secondaryColor, isActive: pageNumber === current, onClick: function () { return onPageChange && onPageChange(pageNumber); } }, { children: pageNumber }), pageNumber));
78
+ }), (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: 16, colorKey: "ui_cpnt_icon_sys_dark" }) }))] })));
79
+ }
80
+ exports.Design10 = Design10;
81
+ function Design11(_a) {
82
+ var total = _a.total, current = _a.current, primaryColor = _a.primaryColor, secondaryColor = _a.secondaryColor, onNext = _a.onNext, onPrevious = _a.onPrevious;
83
+ 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: 16, colorKey: "ui_cpnt_icon_sys_dark" }) })), (0, jsx_runtime_1.jsx)(S_Text, __assign({ "$color": secondaryColor }, { children: current })), (0, jsx_runtime_1.jsx)(S_Text, __assign({ "$color": primaryColor }, { children: "/" })), (0, jsx_runtime_1.jsx)(S_Text, __assign({ "$color": primaryColor }, { children: total })), (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: 16, colorKey: "ui_cpnt_icon_sys_dark" }) }))] })));
84
+ }
85
+ exports.Design11 = Design11;
86
+ function Design12(_a) {
87
+ var total = _a.total, current = _a.current, primaryColor = _a.primaryColor, secondaryColor = _a.secondaryColor, onNext = _a.onNext, onPrevious = _a.onPrevious;
88
+ return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ gap: "4px" }, { children: [(0, jsx_runtime_1.jsx)(S_Text, __assign({ "$color": secondaryColor }, { children: current })), (0, jsx_runtime_1.jsx)(S_Text, __assign({ "$color": primaryColor }, { children: "/" })), (0, jsx_runtime_1.jsx)(S_Text, __assign({ "$color": primaryColor }, { children: total })), (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: 16, colorKey: "ui_cpnt_icon_sys_dark" }) })), (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: 16, colorKey: "ui_cpnt_icon_sys_dark" }) }))] })));
89
+ }
90
+ exports.Design12 = Design12;
91
+ function Design13(_a) {
92
+ var total = _a.total, current = _a.current,
93
+ // eslint-disable-next-line
94
+ primaryColor = _a.primaryColor,
95
+ // eslint-disable-next-line
96
+ secondaryColor = _a.secondaryColor, onNext = _a.onNext, onPrevious = _a.onPrevious;
97
+ 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: 16, colorKey: "ui_cpnt_icon_sys_dark" }) })), (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: 16, colorKey: "ui_cpnt_icon_sys_dark" }) }))] })));
98
+ }
99
+ exports.Design13 = Design13;
100
+ var FlexBox = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: ", ";\n display: flex;\n flex-direction: ", ";\n gap: ", ";\n justify-content: ", ";\n"], ["\n align-items: ", ";\n display: flex;\n flex-direction: ", ";\n gap: ", ";\n justify-content: ", ";\n"])), function (_a) {
101
+ var _b = _a.alignItems, alignItems = _b === void 0 ? 'center' : _b;
102
+ return alignItems;
103
+ }, function (_a) {
104
+ var _b = _a.direction, direction = _b === void 0 ? 'row' : _b;
105
+ return direction;
106
+ }, function (_a) {
107
+ var _b = _a.gap, gap = _b === void 0 ? '0' : _b;
108
+ return gap;
109
+ }, function (_a) {
110
+ var _b = _a.justifyContent, justifyContent = _b === void 0 ? 'center' : _b;
111
+ return justifyContent;
112
+ });
113
+ var S_Pointer = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n cursor: ", ";\n height: 16px;\n opacity: ", ";\n"], ["\n cursor: ", ";\n height: 16px;\n opacity: ", ";\n"])), function (_a) {
114
+ var disabled = _a.disabled;
115
+ return (disabled ? 'not-allowed' : 'pointer');
116
+ }, function (_a) {
117
+ var disabled = _a.disabled;
118
+ return (disabled ? 0.4 : 1);
119
+ });
120
+ var S_Page = styled_components_1.default.button(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n align-items: center;\n background-color: ", ";\n border: none;\n border-radius: ", ";\n color: ", ";\n display: flex;\n font-size: ", ";\n font-weight: ", ";\n height: 32px;\n justify-content: center;\n outline: none;\n width: 32px;\n"], ["\n align-items: center;\n background-color: ", ";\n border: none;\n border-radius: ", ";\n color: ", ";\n display: flex;\n font-size: ", ";\n font-weight: ", ";\n height: 32px;\n justify-content: center;\n outline: none;\n width: 32px;\n"])), function (_a) {
121
+ var isActive = _a.isActive, backgroundColor = _a.backgroundColor, activeBackgroundColor = _a.activeBackgroundColor;
122
+ return isActive ? activeBackgroundColor : backgroundColor;
123
+ }, function (_a) {
124
+ var shape = _a.shape, radius = _a.radius;
125
+ if (shape === 'rectangle')
126
+ return undefined;
127
+ return shape === 'round' ? "".concat(radius, "px") : '50%';
128
+ }, function (_a) {
129
+ var isActive = _a.isActive, textColor = _a.textColor, activeTextColor = _a.activeTextColor;
130
+ return (isActive ? activeTextColor : textColor);
131
+ }, function (_a) {
132
+ var theme = _a.theme;
133
+ return theme.desktopFontSize.caption1;
134
+ }, function (_a) {
135
+ var theme = _a.theme, isActive = _a.isActive;
136
+ return isActive ? theme.fontWeight.bold : theme.fontWeight.normal;
137
+ });
138
+ var S_Text = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n color: ", ";\n font-size: ", ";\n"], ["\n color: ", ";\n font-size: ", ";\n"])), function (_a) {
139
+ var $color = _a.$color;
140
+ return $color;
141
+ }, function (_a) {
142
+ var theme = _a.theme;
143
+ return theme.desktopFontSize.caption1;
144
+ });
145
+ function generatePaginationPages(total, current) {
146
+ // 총 페이지가 10개 이하면 모든 페이지 표시
147
+ if (total <= 10) {
148
+ return Array.from({ length: total }, function (_, i) { return i + 1; });
149
+ }
150
+ var pages = [];
151
+ // 항상 첫 페이지 표시
152
+ pages.push(1);
153
+ // 현재 페이지가 1~3 범위인 경우
154
+ if (current <= 3) {
155
+ // 2, 3 표시 (1은 이미 추가됨)
156
+ pages.push(2, 3);
157
+ if (total > 3) {
158
+ pages.push('...');
159
+ }
160
+ }
161
+ // 현재 페이지가 마지막 3개 범위인 경우
162
+ else if (current >= total - 2) {
163
+ pages.push('...');
164
+ // 마지막 3개 페이지 표시
165
+ pages.push(total - 2, total - 1);
166
+ }
167
+ // 중간 범위인 경우
168
+ else {
169
+ pages.push('...');
170
+ // 현재 페이지와 양옆 페이지 표시
171
+ pages.push(current - 1, current, current + 1);
172
+ pages.push('...');
173
+ }
174
+ // 항상 마지막 페이지 표시 (마지막 3개 범위가 아닌 경우에만)
175
+ if (current < total - 2 || current === 1) {
176
+ pages.push(total);
177
+ }
178
+ else if (current >= total - 2) {
179
+ pages.push(total);
180
+ }
181
+ return pages;
182
+ }
183
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
@@ -0,0 +1,30 @@
1
+ import { FlattenSimpleInterpolation } from 'styled-components';
2
+ import type { CB_CONTENT_PROP_CONTENTSLIST } from '../types';
3
+ import type { CustomPaginationProps } from './components/CustomPagination';
4
+ import type { CB_STYLE_PROP_CONTENTSLIST_SPECS, ContentsListPropsKeys } from './types';
5
+ import type { Device } from '../../../../../../../DynamicLayout/sections/CustomSection/util/types';
6
+ type StyleProps = {
7
+ props: CB_STYLE_PROP_CONTENTSLIST_SPECS;
8
+ device: Device;
9
+ };
10
+ type ContentProps = {
11
+ props: CB_CONTENT_PROP_CONTENTSLIST;
12
+ };
13
+ type PaginationProps = {
14
+ props: CB_STYLE_PROP_CONTENTSLIST_SPECS;
15
+ device: Device;
16
+ };
17
+ type CssFragment = FlattenSimpleInterpolation;
18
+ export declare function parseGridStyleProp({ props, device }: StyleProps): {
19
+ stylePropCss: CssFragment;
20
+ hoverStylePropCss: CssFragment;
21
+ };
22
+ export declare function parseGridContentProp({ props }: ContentProps): {
23
+ contentPropCss: CssFragment;
24
+ };
25
+ export declare function parsePaginationStyleProp({ props, device }: PaginationProps): {
26
+ normalStyle: CustomPaginationProps;
27
+ hoverStyle: CustomPaginationProps;
28
+ };
29
+ export declare function getCustomPaginationPropKey(key: ContentsListPropsKeys): "" | "size" | "type" | "primaryColor" | "secondaryColor" | "offset";
30
+ export {};
@@ -0,0 +1,380 @@
1
+ "use strict";
2
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
+ return cooked;
5
+ };
6
+ var __assign = (this && this.__assign) || function () {
7
+ __assign = Object.assign || function(t) {
8
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
9
+ s = arguments[i];
10
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
11
+ t[p] = s[p];
12
+ }
13
+ return t;
14
+ };
15
+ return __assign.apply(this, arguments);
16
+ };
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.getCustomPaginationPropKey = exports.parsePaginationStyleProp = exports.parseGridContentProp = exports.parseGridStyleProp = void 0;
19
+ var styled_components_1 = require("styled-components");
20
+ function getStyleTypePropStyleValues(value) {
21
+ switch (value) {
22
+ case 'DESIGN1': {
23
+ return (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: 100%;\n width: 100%;\n "], ["\n height: 100%;\n width: 100%;\n "])));
24
+ }
25
+ case 'DESIGN2': {
26
+ var overlayEffect = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background: rgba(255, 255, 255, 0.7);\n content: '';\n height: 100%;\n position: absolute;\n top: 0; /* \uD22C\uBA85\uB3C4 \uC870\uC808 (0 = \uC644\uC804 \uD22C\uBA85, 1 = \uBD88\uD22C\uBA85) */\n width: 20%;\n z-index: 2;\n "], ["\n background: rgba(255, 255, 255, 0.7);\n content: '';\n height: 100%;\n position: absolute;\n top: 0; /* \uD22C\uBA85\uB3C4 \uC870\uC808 (0 = \uC644\uC804 \uD22C\uBA85, 1 = \uBD88\uD22C\uBA85) */\n width: 20%;\n z-index: 2;\n "])));
27
+ return (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n overflow: hidden;\n position: relative;\n\n &::before {\n ", "\n left: 0;\n }\n\n &::after {\n ", "\n right: 0;\n }\n "], ["\n overflow: hidden;\n position: relative;\n\n &::before {\n ", "\n left: 0;\n }\n\n &::after {\n ", "\n right: 0;\n }\n "])), overlayEffect, overlayEffect);
28
+ }
29
+ default: {
30
+ return (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n height: 100%;\n width: 100%;\n "], ["\n height: 100%;\n width: 100%;\n "])));
31
+ }
32
+ }
33
+ }
34
+ function getItemSpacingPropStyleValues(value) {
35
+ switch (value) {
36
+ case 'NARROW': {
37
+ return (0, styled_components_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n grid-column-gap: 8px;\n "], ["\n grid-column-gap: 8px;\n "])));
38
+ }
39
+ case 'NORMAL': {
40
+ return (0, styled_components_1.css)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n grid-column-gap: 24px;\n "], ["\n grid-column-gap: 24px;\n "])));
41
+ }
42
+ case 'WIDE': {
43
+ return (0, styled_components_1.css)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n grid-column-gap: 36px;\n "], ["\n grid-column-gap: 36px;\n "])));
44
+ }
45
+ default: {
46
+ return (0, styled_components_1.css)(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n grid-column-gap: 24px;\n "], ["\n grid-column-gap: 24px;\n "])));
47
+ }
48
+ }
49
+ }
50
+ function getItemLineHeightPropStyleValues(value) {
51
+ return (0, styled_components_1.css)(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n grid-row-gap: ", "px;\n "], ["\n grid-row-gap: ", "px;\n "])), value);
52
+ }
53
+ function getItemHeightFitContentPropStyleValues(value) {
54
+ return (0, styled_components_1.css)(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n overflow-y: ", ";\n "], ["\n overflow-y: ", ";\n "])), value ? 'visible' : 'auto');
55
+ }
56
+ function parseStylePropertyStyles(key, value) {
57
+ switch (key) {
58
+ case 'CB_STYLE_PROP_CONTENTSLIST_SPEC_STYLE':
59
+ return getStyleTypePropStyleValues(value);
60
+ case 'CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMSPACING':
61
+ return getItemSpacingPropStyleValues(value);
62
+ case 'CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMLINEHEIGHT':
63
+ return getItemLineHeightPropStyleValues(value);
64
+ case 'CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMHEIGHTFITCONTENT':
65
+ return getItemHeightFitContentPropStyleValues(value);
66
+ case 'CB_STYLE_PROP_CONTENTSLIST_SPEC_INFINITESCROLL':
67
+ break;
68
+ }
69
+ return undefined;
70
+ }
71
+ function getColumnsPropStyleValues(value, rows) {
72
+ return (0, styled_components_1.css)(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n grid-template-columns: repeat(", ", 1fr);\n grid-template-rows: repeat(", ", 1fr);\n "], ["\n grid-template-columns: repeat(", ", 1fr);\n grid-template-rows: repeat(", ", 1fr);\n "])), value, rows);
73
+ }
74
+ function parseContentPropertyStyles(key, value, rows) {
75
+ switch (key) {
76
+ case 'CB_CONTENT_PROP_CONTENTSLIST_SPEC_COLUMNS':
77
+ return getColumnsPropStyleValues(value, rows);
78
+ }
79
+ return undefined;
80
+ }
81
+ function parseGridStyleProp(_a) {
82
+ var props = _a.props, device = _a.device;
83
+ var availableSpecCodes = Object.keys(props).filter(function (key) { return !key.includes(':HOVER') && !key.includes(':MOBILE'); });
84
+ return availableSpecCodes.reduce(function (acc, currentKey) {
85
+ var keyWithDevice = device === 'DESKTOP' ? currentKey : "".concat(currentKey, ":MOBILE");
86
+ var keyWithHover = "".concat(keyWithDevice.toString(), ":HOVER");
87
+ var value = props[keyWithDevice];
88
+ var hoverValue = props[keyWithHover];
89
+ var styles = parseStylePropertyStyles(currentKey, value);
90
+ var hoverStyles = parseStylePropertyStyles(currentKey, hoverValue !== null && hoverValue !== void 0 ? hoverValue : value);
91
+ return {
92
+ stylePropCss: (0, styled_components_1.css)(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n ", "\n ", "\n "], ["\n ", "\n ", "\n "])), acc.stylePropCss, styles),
93
+ hoverStylePropCss: (0, styled_components_1.css)(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n ", "\n ", "\n "], ["\n ", "\n ", "\n "])), acc.hoverStylePropCss, hoverStyles)
94
+ };
95
+ }, {
96
+ stylePropCss: (0, styled_components_1.css)(templateObject_14 || (templateObject_14 = __makeTemplateObject([""], [""]))),
97
+ hoverStylePropCss: (0, styled_components_1.css)(templateObject_15 || (templateObject_15 = __makeTemplateObject([""], [""])))
98
+ });
99
+ }
100
+ exports.parseGridStyleProp = parseGridStyleProp;
101
+ function parseGridContentProp(_a) {
102
+ var props = _a.props;
103
+ var availableSpecCodes = Object.keys(props).filter(function (key) { return !key.includes(':HOVER') && !key.includes(':MOBILE'); });
104
+ var columns = props.CB_CONTENT_PROP_CONTENTSLIST_SPEC_COLUMNS || 1;
105
+ var displayCounts = props.CB_CONTENT_PROP_CONTENTSLIST_SPEC_DISPLAYCOUNTS || 1;
106
+ var rows = Math.ceil(displayCounts / columns);
107
+ return availableSpecCodes.reduce(function (acc, currentKey) {
108
+ var value = props[currentKey];
109
+ var styles = parseContentPropertyStyles(currentKey, value, rows);
110
+ return {
111
+ contentPropCss: (0, styled_components_1.css)(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n ", "\n ", "\n "], ["\n ", "\n ", "\n "])), acc.contentPropCss, styles)
112
+ };
113
+ }, {
114
+ contentPropCss: (0, styled_components_1.css)(templateObject_17 || (templateObject_17 = __makeTemplateObject([""], [""])))
115
+ });
116
+ }
117
+ exports.parseGridContentProp = parseGridContentProp;
118
+ function parsePaginationStyleProp(_a) {
119
+ var props = _a.props, device = _a.device;
120
+ var availableSpecCodes = Object.keys(props).filter(function (key) { return !key.includes(':HOVER') && !key.includes(':MOBILE'); });
121
+ return availableSpecCodes.reduce(function (acc, currentKey) {
122
+ var keyWithDevice = device === 'DESKTOP' ? currentKey : "".concat(currentKey, ":MOBILE");
123
+ var keyWithHover = "".concat(keyWithDevice.toString(), ":HOVER");
124
+ var customPaginationPropertyKey = getCustomPaginationPropKey(currentKey);
125
+ if (customPaginationPropertyKey === 'type') {
126
+ var value = props[keyWithDevice];
127
+ var hoverValue = props[keyWithHover];
128
+ return {
129
+ normalStyle: __assign(__assign({}, acc.normalStyle), { type: value }),
130
+ hoverStyle: __assign(__assign({}, acc.hoverStyle), { type: hoverValue !== null && hoverValue !== void 0 ? hoverValue : value })
131
+ };
132
+ }
133
+ if (customPaginationPropertyKey === 'offset') {
134
+ var value = props[keyWithDevice];
135
+ var hoverValue = props[keyWithHover];
136
+ return {
137
+ normalStyle: __assign(__assign({}, acc.normalStyle), { offset: getCustomPaginationOffset(value) }),
138
+ hoverStyle: __assign(__assign({}, acc.hoverStyle), { offset: getCustomPaginationOffset(hoverValue !== null && hoverValue !== void 0 ? hoverValue : value) })
139
+ };
140
+ }
141
+ if (customPaginationPropertyKey === 'size') {
142
+ var value = props[keyWithDevice];
143
+ var hoverValue = props[keyWithHover];
144
+ return {
145
+ normalStyle: __assign(__assign({}, acc.normalStyle), { size: getCustomPaginationSize(value) }),
146
+ hoverStyle: __assign(__assign({}, acc.hoverStyle), { size: getCustomPaginationSize(hoverValue !== null && hoverValue !== void 0 ? hoverValue : value) })
147
+ };
148
+ }
149
+ if (customPaginationPropertyKey === 'primaryColor') {
150
+ var value = props[keyWithDevice];
151
+ var hoverValue = props[keyWithHover];
152
+ return {
153
+ normalStyle: __assign(__assign({}, acc.normalStyle), { primaryColor: value }),
154
+ hoverStyle: __assign(__assign({}, acc.hoverStyle), { primaryColor: hoverValue !== null && hoverValue !== void 0 ? hoverValue : value })
155
+ };
156
+ }
157
+ if (customPaginationPropertyKey === 'secondaryColor') {
158
+ var value = props[keyWithDevice];
159
+ var hoverValue = props[keyWithHover];
160
+ return {
161
+ normalStyle: __assign(__assign({}, acc.normalStyle), { secondaryColor: value }),
162
+ hoverStyle: __assign(__assign({}, acc.hoverStyle), { secondaryColor: hoverValue !== null && hoverValue !== void 0 ? hoverValue : value })
163
+ };
164
+ }
165
+ return {
166
+ normalStyle: __assign({}, acc.normalStyle),
167
+ hoverStyle: __assign({}, acc.hoverStyle)
168
+ };
169
+ }, {
170
+ normalStyle: {},
171
+ hoverStyle: {}
172
+ });
173
+ }
174
+ exports.parsePaginationStyleProp = parsePaginationStyleProp;
175
+ function getCustomPaginationPropKey(key) {
176
+ switch (key) {
177
+ case "CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSTYLE":
178
+ case "CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSTYLE:HOVER":
179
+ case "CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSTYLE:MOBILE":
180
+ case "CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSTYLE:MOBILE:HOVER":
181
+ return 'type';
182
+ case "CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONLOCATION":
183
+ case "CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONLOCATION:HOVER":
184
+ case "CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONLOCATION:MOBILE":
185
+ case "CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONLOCATION:MOBILE:HOVER":
186
+ return 'offset';
187
+ case "CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSIZE":
188
+ case "CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSIZE:HOVER":
189
+ case "CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSIZE:MOBILE":
190
+ case "CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSIZE:MOBILE:HOVER":
191
+ return 'size';
192
+ case "CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONPRIMARYCOLOR":
193
+ case "CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONPRIMARYCOLOR:HOVER":
194
+ case "CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONPRIMARYCOLOR:MOBILE":
195
+ case "CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONPRIMARYCOLOR:MOBILE:HOVER":
196
+ return 'primaryColor';
197
+ case "CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSECONDARYCOLOR":
198
+ case "CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSECONDARYCOLOR:HOVER":
199
+ case "CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSECONDARYCOLOR:MOBILE":
200
+ case "CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSECONDARYCOLOR:MOBILE:HOVER":
201
+ return 'secondaryColor';
202
+ default:
203
+ return '';
204
+ }
205
+ }
206
+ exports.getCustomPaginationPropKey = getCustomPaginationPropKey;
207
+ function getCustomPaginationOffset(value) {
208
+ var OUTSET1 = {
209
+ top: '0px',
210
+ left: '0px',
211
+ translateX: 0,
212
+ translateY: -100,
213
+ transformOrigin: 'top left'
214
+ };
215
+ switch (value) {
216
+ case 'OUTSET1':
217
+ return OUTSET1;
218
+ case 'OUTSET2':
219
+ return {
220
+ top: '0px',
221
+ left: '50%',
222
+ translateX: -50,
223
+ translateY: -100,
224
+ transformOrigin: 'top left'
225
+ };
226
+ case 'OUTSET3':
227
+ return {
228
+ top: '0px',
229
+ left: '100%',
230
+ translateX: -100,
231
+ translateY: -100,
232
+ transformOrigin: 'top left'
233
+ };
234
+ case 'OUTSET4':
235
+ return {
236
+ top: '0px',
237
+ left: '100%',
238
+ translateX: 0,
239
+ translateY: 0,
240
+ transformOrigin: 'left top'
241
+ };
242
+ case 'OUTSET5':
243
+ return {
244
+ top: '50%',
245
+ left: '100%',
246
+ translateX: 0,
247
+ translateY: -50,
248
+ transformOrigin: 'left top'
249
+ };
250
+ case 'OUTSET6':
251
+ return {
252
+ top: '100%',
253
+ left: '100%',
254
+ translateX: 0,
255
+ translateY: -100,
256
+ transformOrigin: 'left top'
257
+ };
258
+ case 'OUTSET7':
259
+ return {
260
+ top: '100%',
261
+ left: '100%',
262
+ translateX: -100,
263
+ translateY: 0,
264
+ transformOrigin: 'top left'
265
+ };
266
+ case 'OUTSET8':
267
+ return {
268
+ top: '100%',
269
+ left: '50%',
270
+ translateX: -50,
271
+ translateY: 0,
272
+ transformOrigin: 'top left'
273
+ };
274
+ case 'OUTSET9':
275
+ return {
276
+ top: '100%',
277
+ left: '0px',
278
+ translateX: 0,
279
+ translateY: 0,
280
+ transformOrigin: 'top left'
281
+ };
282
+ case 'OUTSET10':
283
+ return {
284
+ top: '100%',
285
+ left: '0px',
286
+ translateX: -100,
287
+ translateY: -100,
288
+ transformOrigin: 'right top'
289
+ };
290
+ case 'OUTSET11':
291
+ return {
292
+ top: '50%',
293
+ left: '0px',
294
+ translateX: -100,
295
+ translateY: -50,
296
+ transformOrigin: 'right top'
297
+ };
298
+ case 'OUTSET12':
299
+ return {
300
+ top: '0px',
301
+ left: '0px',
302
+ translateX: -100,
303
+ translateY: 0,
304
+ transformOrigin: 'right top'
305
+ };
306
+ case 'INSET1':
307
+ return { top: '0px', left: '0px', translateX: 0, translateY: 0, transformOrigin: 'left top' };
308
+ case 'INSET2':
309
+ return {
310
+ top: '0px',
311
+ left: '50%',
312
+ translateX: -50,
313
+ translateY: 0,
314
+ transformOrigin: 'left top'
315
+ };
316
+ case 'INSET3':
317
+ return {
318
+ top: '0px',
319
+ left: '100%',
320
+ translateX: -100,
321
+ translateY: 0,
322
+ transformOrigin: 'left top'
323
+ };
324
+ case 'INSET4':
325
+ return {
326
+ top: '50%',
327
+ left: '100%',
328
+ translateX: -100,
329
+ translateY: -50,
330
+ transformOrigin: 'left top'
331
+ };
332
+ case 'INSET5':
333
+ return {
334
+ top: '100%',
335
+ left: '100%',
336
+ translateX: -100,
337
+ translateY: -100,
338
+ transformOrigin: 'left top'
339
+ };
340
+ case 'INSET6':
341
+ return {
342
+ top: '100%',
343
+ left: '50%',
344
+ translateX: -50,
345
+ translateY: -100,
346
+ transformOrigin: 'left top'
347
+ };
348
+ case 'INSET7':
349
+ return {
350
+ top: '100%',
351
+ left: '0px',
352
+ translateX: 0,
353
+ translateY: -100,
354
+ transformOrigin: 'top left'
355
+ };
356
+ case 'INSET8':
357
+ return {
358
+ top: '50%',
359
+ left: '0px',
360
+ translateX: 0,
361
+ translateY: -50,
362
+ transformOrigin: 'top left'
363
+ };
364
+ default:
365
+ return OUTSET1;
366
+ }
367
+ }
368
+ function getCustomPaginationSize(value) {
369
+ switch (value) {
370
+ case 'SMALL':
371
+ return 1;
372
+ case 'MEDIUM':
373
+ return 1.5;
374
+ case 'LARGE':
375
+ return 2;
376
+ default:
377
+ return 1;
378
+ }
379
+ }
380
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17;
@@ -0,0 +1 @@
1
+ export { default as ContentsList } from './ContentsList';
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ContentsList = void 0;
7
+ var ContentsList_1 = require("./ContentsList");
8
+ Object.defineProperty(exports, "ContentsList", { enumerable: true, get: function () { return __importDefault(ContentsList_1).default; } });