pds-dev-kit-web-test 2.5.407 → 2.5.409

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 (237) hide show
  1. package/dist/index.d.ts +2 -2
  2. package/dist/index.js +2 -3
  3. package/dist/src/common/assets/icons/fill/Video.js +1 -1
  4. package/dist/src/common/assets/icons/fill/VideoOff.js +1 -1
  5. package/dist/src/common/assets/icons/fill/VideoType.js +1 -1
  6. package/dist/src/common/assets/icons/fill/index.d.ts +0 -3
  7. package/dist/src/common/assets/icons/fill/index.js +1 -7
  8. package/dist/src/common/assets/icons/line/Video.js +1 -1
  9. package/dist/src/common/assets/icons/line/VideoOff.js +1 -1
  10. package/dist/src/common/assets/icons/line/VideoType.js +1 -1
  11. package/dist/src/common/assets/icons/line/index.d.ts +0 -12
  12. package/dist/src/common/assets/icons/line/index.js +1 -25
  13. package/dist/src/common/components/ThreeBarProgress/ThreeBarProgress.d.ts +1 -2
  14. package/dist/src/common/components/ThreeBarProgress/ThreeBarProgress.js +4 -48
  15. package/dist/src/common/services/i18n/resources/en.json +1 -9
  16. package/dist/src/common/services/i18n/resources/es.json +1 -9
  17. package/dist/src/common/services/i18n/resources/fil.json +1 -9
  18. package/dist/src/common/services/i18n/resources/index.d.ts +0 -56
  19. package/dist/src/common/services/i18n/resources/ja.json +1 -9
  20. package/dist/src/common/services/i18n/resources/ko.json +1 -9
  21. package/dist/src/common/services/i18n/resources/zh-cn.json +1 -9
  22. package/dist/src/common/services/i18n/resources/zh-tw.json +1 -9
  23. package/dist/src/common/styles/colorSet/PaletteColor_Dark.json +1 -9
  24. package/dist/src/common/styles/colorSet/PaletteColor_light.json +1 -9
  25. package/dist/src/common/styles/colorSet/UIColor.json +1 -14
  26. package/dist/src/common/styles/colorSet/index.d.ts +2 -31
  27. package/dist/src/common/styles/colorSet/index.js +2 -2
  28. package/dist/src/common/styles/colorSet/ui-type.d.ts +0 -13
  29. package/dist/src/common/types/icon.d.ts +1 -3
  30. package/dist/src/desktop/components/AdminListItem/AdminListItem.d.ts +0 -1
  31. package/dist/src/desktop/components/AdminListItem/AdminListItem.js +13 -27
  32. package/dist/src/desktop/components/BasicListItem/BasicListItem.d.ts +1 -4
  33. package/dist/src/desktop/components/BasicListItem/BasicListItem.js +4 -26
  34. package/dist/src/desktop/components/BasicListItem/Contents.d.ts +1 -3
  35. package/dist/src/desktop/components/BasicListItem/Contents.js +2 -2
  36. package/dist/src/desktop/components/BasicListItem/RightBox/IconButton.d.ts +0 -1
  37. package/dist/src/desktop/components/BasicListItem/RightBox/IconButton.js +2 -2
  38. package/dist/src/desktop/components/Checkbox/Checkbox.d.ts +1 -3
  39. package/dist/src/desktop/components/Checkbox/Checkbox.js +3 -17
  40. package/dist/src/desktop/components/Chip/Chip.d.ts +1 -1
  41. package/dist/src/desktop/components/Chip/Chip.js +5 -50
  42. package/dist/src/desktop/components/Radio/Radio.js +2 -2
  43. package/dist/src/desktop/components/TextField/TextField.js +15 -41
  44. package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTU.js +2 -2
  45. package/dist/src/hybrid/components/Icon/Icon.js +0 -6
  46. package/dist/src/mobile/components/BasicListItem/BasicListItem.d.ts +1 -4
  47. package/dist/src/mobile/components/BasicListItem/BasicListItem.js +4 -26
  48. package/dist/src/mobile/components/BasicListItem/Contents.d.ts +1 -3
  49. package/dist/src/mobile/components/BasicListItem/Contents.js +2 -2
  50. package/dist/src/mobile/components/BasicListItem/RightBox/IconButton.d.ts +0 -1
  51. package/dist/src/mobile/components/BasicListItem/RightBox/IconButton.js +2 -2
  52. package/dist/src/mobile/components/Checkbox/Checkbox.d.ts +1 -3
  53. package/dist/src/mobile/components/Checkbox/Checkbox.js +3 -17
  54. package/dist/src/mobile/components/Chip/Chip.d.ts +1 -1
  55. package/dist/src/mobile/components/Chip/Chip.js +5 -50
  56. package/dist/src/mobile/components/Radio/Radio.js +2 -2
  57. package/dist/src/mobile/components/TextField/TextField.js +15 -41
  58. package/dist/src/mobile/components/TextLabel/TextLabel.d.ts +1 -6
  59. package/dist/src/mobile/components/TextLabel/TextLabel.js +3 -83
  60. package/dist/src/mobile/components/index.d.ts +1 -2
  61. package/dist/src/mobile/components/index.js +1 -3
  62. package/dist/src/mobile/index.d.ts +1 -1
  63. package/dist/src/mobile/index.js +2 -3
  64. package/dist/src/mobile/layout/LayoutMF/Containers/ContentsContainer/variation/MFA.js +1 -1
  65. package/dist/src/mobile/layout/LayoutMF/Containers/ContentsContainer/variation/MFB.js +1 -1
  66. package/dist/src/mobile/layout/LayoutMF/Containers/ContentsContainer/variation/MFC.js +1 -1
  67. package/dist/src/mobile/layout/LayoutMF/Containers/ContentsContainer/variation/MFD.js +1 -1
  68. package/dist/src/mobile/layout/LayoutMF/Containers/ContentsContainer/variation/MFE.js +1 -1
  69. package/dist/src/mobile/layout/LayoutMM/Containers/ContentsContainer/variation/MMA.js +1 -1
  70. package/dist/src/mobile/layout/LayoutMM/Containers/ContentsContainer/variation/MMB.js +1 -1
  71. package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPA.js +1 -1
  72. package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPB.js +1 -1
  73. package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPC.js +1 -1
  74. package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPD.js +1 -1
  75. package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPE.js +1 -1
  76. package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPF.js +1 -1
  77. package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSA.js +1 -1
  78. package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSB.js +1 -1
  79. package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSC.js +1 -1
  80. package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSD.js +1 -1
  81. package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSE.js +1 -1
  82. package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSF.js +1 -1
  83. package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSG.js +1 -1
  84. package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSH.js +1 -1
  85. package/dist/src/sub/AdminList/AdminListItem/AdminListItem.js +3 -3
  86. package/dist/src/sub/DynamicLayout/CompositionEditor/CompositionEditor.d.ts +1 -1
  87. package/dist/src/sub/DynamicLayout/CompositionEditor/CompositionEditor.js +4 -4
  88. package/dist/src/sub/DynamicLayout/CompositionRenderer/Composition.d.ts +1 -1
  89. package/dist/src/sub/DynamicLayout/CompositionRenderer/Composition.js +2 -2
  90. package/dist/src/sub/DynamicLayout/CompositionRenderer/createCompositions.d.ts +2 -2
  91. package/dist/src/sub/DynamicLayout/CompositionRenderer/createCompositions.js +10 -36
  92. package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/SectionBox.js +1 -4
  93. package/dist/src/sub/DynamicLayout/components/Section/components/CustomSectionBackgroundMedia.js +1 -12
  94. package/dist/src/sub/DynamicLayout/components/Section/util/parseSectionBackgroundMediaData.js +1 -3
  95. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/index.d.ts +0 -40
  96. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/index.js +177 -36
  97. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/PaletteColor_Dark.json +4 -152
  98. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/PaletteColor_light.json +2 -150
  99. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/SemanticColor.json +1 -45
  100. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/UIColor.json +9 -262
  101. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/index.d.ts +0 -593
  102. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/ui-type.d.ts +0 -253
  103. package/dist/src/sub/DynamicLayout/compositionActionTypes.d.ts +4 -4
  104. package/dist/src/sub/DynamicLayout/mock_composition.js +0 -4
  105. package/dist/src/sub/DynamicLayout/mock_contentsCarousel.d.ts +2 -1
  106. package/dist/src/sub/DynamicLayout/mock_contentsCarousel.js +274 -1047
  107. package/dist/src/sub/DynamicLayout/mock_contentsList.d.ts +2 -1
  108. package/dist/src/sub/DynamicLayout/mock_contentsList.js +222 -1008
  109. package/dist/src/sub/DynamicLayout/mock_slideBanner.d.ts +2 -810
  110. package/dist/src/sub/DynamicLayout/mock_slideBanner.js +268 -772
  111. package/dist/src/sub/DynamicLayout/mocks.d.ts +776 -2
  112. package/dist/src/sub/DynamicLayout/mocks.js +11 -4266
  113. package/dist/src/sub/DynamicLayout/sectionActionTypes.d.ts +4 -4
  114. package/dist/src/sub/DynamicLayout/sections/CustomSection/CustomSection.d.ts +1 -1
  115. package/dist/src/sub/DynamicLayout/sections/CustomSection/CustomSection.js +4 -4
  116. package/dist/src/sub/DynamicLayout/sections/CustomSection/FlexGridItem.js +15 -11
  117. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/ComponentBlockMatcher.js +0 -3
  118. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/Button.js +4 -25
  119. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarousel.js +26 -102
  120. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarouselCore.js +1 -21
  121. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigation.js +55 -4
  122. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomPagination.d.ts +2 -7
  123. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomPagination.js +20 -26
  124. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomProgressbar.js +23 -46
  125. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/contentsCarouselUtils.js +98 -84
  126. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/types.d.ts +6 -6
  127. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsList.js +19 -31
  128. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/CustomPagination.d.ts +3 -3
  129. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/CustomPagination.js +132 -59
  130. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/contentsListUtils.js +30 -24
  131. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/types.d.ts +1 -1
  132. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Image/Image.js +5 -13
  133. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBanner.js +13 -88
  134. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomNavigation.js +55 -4
  135. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomPagination.d.ts +2 -7
  136. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomPagination.js +20 -26
  137. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomProgressbar.js +23 -46
  138. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/slideBannerUtils.js +67 -64
  139. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/types.d.ts +6 -6
  140. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text/Text.js +4 -10
  141. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/types.d.ts +7 -16
  142. package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/group.d.ts +1 -1
  143. package/dist/src/sub/DynamicLayout/sections/CustomSection/types.d.ts +4 -11
  144. package/dist/src/sub/DynamicLayout/sections/CustomSection/types.js +0 -1
  145. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parsePlacement.d.ts +1 -1
  146. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parsePlacement.js +2 -2
  147. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseProperties.d.ts +2 -2
  148. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/types.d.ts +2 -15
  149. package/dist/src/sub/DynamicLayout/sections/FlexGridCustomSection.d.ts +1 -1
  150. package/dist/src/sub/DynamicLayout/sections/FlexGridCustomSection.js +1 -1
  151. package/dist/src/sub/DynamicLayout/types.d.ts +1 -10
  152. package/package.json +3 -2
  153. package/release-note.md +3 -3
  154. package/dist/src/common/assets/icons/editorNavigationIcons/downIcons.d.ts +0 -12
  155. package/dist/src/common/assets/icons/editorNavigationIcons/downIcons.js +0 -76
  156. package/dist/src/common/assets/icons/editorNavigationIcons/index.d.ts +0 -43
  157. package/dist/src/common/assets/icons/editorNavigationIcons/index.js +0 -49
  158. package/dist/src/common/assets/icons/editorNavigationIcons/leftIcons.d.ts +0 -12
  159. package/dist/src/common/assets/icons/editorNavigationIcons/leftIcons.js +0 -76
  160. package/dist/src/common/assets/icons/editorNavigationIcons/rightIcons.d.ts +0 -12
  161. package/dist/src/common/assets/icons/editorNavigationIcons/rightIcons.js +0 -76
  162. package/dist/src/common/assets/icons/editorNavigationIcons/upIcons.d.ts +0 -12
  163. package/dist/src/common/assets/icons/editorNavigationIcons/upIcons.js +0 -76
  164. package/dist/src/common/assets/icons/fill/Cam.d.ts +0 -4
  165. package/dist/src/common/assets/icons/fill/Cam.js +0 -30
  166. package/dist/src/common/assets/icons/fill/CamOff.d.ts +0 -4
  167. package/dist/src/common/assets/icons/fill/CamOff.js +0 -30
  168. package/dist/src/common/assets/icons/fill/VideoStop.d.ts +0 -4
  169. package/dist/src/common/assets/icons/fill/VideoStop.js +0 -30
  170. package/dist/src/common/assets/icons/line/Cam.d.ts +0 -4
  171. package/dist/src/common/assets/icons/line/Cam.js +0 -30
  172. package/dist/src/common/assets/icons/line/CamOff.d.ts +0 -4
  173. package/dist/src/common/assets/icons/line/CamOff.js +0 -30
  174. package/dist/src/common/assets/icons/line/CheckBox.d.ts +0 -4
  175. package/dist/src/common/assets/icons/line/CheckBox.js +0 -30
  176. package/dist/src/common/assets/icons/line/Dropdown.d.ts +0 -4
  177. package/dist/src/common/assets/icons/line/Dropdown.js +0 -30
  178. package/dist/src/common/assets/icons/line/Radio.d.ts +0 -4
  179. package/dist/src/common/assets/icons/line/Radio.js +0 -30
  180. package/dist/src/common/assets/icons/line/SectionQuestion32.d.ts +0 -4
  181. package/dist/src/common/assets/icons/line/SectionQuestion32.js +0 -30
  182. package/dist/src/common/assets/icons/line/SectionQuestion40.d.ts +0 -4
  183. package/dist/src/common/assets/icons/line/SectionQuestion40.js +0 -30
  184. package/dist/src/common/assets/icons/line/SectionQuestionnaire32.d.ts +0 -4
  185. package/dist/src/common/assets/icons/line/SectionQuestionnaire32.js +0 -30
  186. package/dist/src/common/assets/icons/line/SectionQuestionnaire40.d.ts +0 -4
  187. package/dist/src/common/assets/icons/line/SectionQuestionnaire40.js +0 -30
  188. package/dist/src/common/assets/icons/line/TextLong.d.ts +0 -4
  189. package/dist/src/common/assets/icons/line/TextLong.js +0 -30
  190. package/dist/src/common/assets/icons/line/TextShort.d.ts +0 -4
  191. package/dist/src/common/assets/icons/line/TextShort.js +0 -30
  192. package/dist/src/common/assets/icons/line/VideoStop.d.ts +0 -4
  193. package/dist/src/common/assets/icons/line/VideoStop.js +0 -30
  194. package/dist/src/common/utils/dateHelper.d.ts +0 -13
  195. package/dist/src/common/utils/dateHelper.js +0 -87
  196. package/dist/src/mobile/components/DatePicker/DatePicker.d.ts +0 -16
  197. package/dist/src/mobile/components/DatePicker/DatePicker.js +0 -156
  198. package/dist/src/mobile/components/DatePicker/DatePickerHeader.d.ts +0 -14
  199. package/dist/src/mobile/components/DatePicker/DatePickerHeader.js +0 -27
  200. package/dist/src/mobile/components/DatePicker/Day.d.ts +0 -13
  201. package/dist/src/mobile/components/DatePicker/Day.js +0 -94
  202. package/dist/src/mobile/components/DatePicker/index.d.ts +0 -1
  203. package/dist/src/mobile/components/DatePicker/index.js +0 -8
  204. package/dist/src/mobile/components/DatePicker/utils.d.ts +0 -16
  205. package/dist/src/mobile/components/DatePicker/utils.js +0 -68
  206. package/dist/src/sub/DynamicLayout/components/Section/components/VideoBGMedia.d.ts +0 -8
  207. package/dist/src/sub/DynamicLayout/components/Section/components/VideoBGMedia.js +0 -77
  208. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/downIcons.d.ts +0 -12
  209. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/downIcons.js +0 -76
  210. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/index.d.ts +0 -4
  211. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/index.js +0 -47
  212. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/leftIcons.d.ts +0 -12
  213. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/leftIcons.js +0 -76
  214. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/rightIcons.d.ts +0 -12
  215. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/rightIcons.js +0 -76
  216. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/upIcons.d.ts +0 -12
  217. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/upIcons.js +0 -76
  218. package/dist/src/sub/DynamicLayout/mock_video.d.ts +0 -368
  219. package/dist/src/sub/DynamicLayout/mock_video.js +0 -371
  220. package/dist/src/sub/DynamicLayout/mock_video_cb.d.ts +0 -368
  221. package/dist/src/sub/DynamicLayout/mock_video_cb.js +0 -371
  222. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/navigationConfigs.d.ts +0 -4
  223. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/navigationConfigs.js +0 -889
  224. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/progressConfigs.d.ts +0 -27
  225. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/progressConfigs.js +0 -96
  226. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/paginationConfigs.d.ts +0 -23
  227. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/paginationConfigs.js +0 -176
  228. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/navigationConfigs.d.ts +0 -4
  229. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/navigationConfigs.js +0 -889
  230. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/progressConfigs.d.ts +0 -27
  231. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/progressConfigs.js +0 -96
  232. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/VideoPlayer/VideoPlayer.d.ts +0 -5
  233. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/VideoPlayer/VideoPlayer.js +0 -148
  234. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/VideoPlayer/helper.d.ts +0 -4
  235. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/VideoPlayer/helper.js +0 -25
  236. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/VideoPlayer/index.d.ts +0 -1
  237. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/VideoPlayer/index.js +0 -8
@@ -14,29 +14,6 @@ var __assign = (this && this.__assign) || function () {
14
14
  };
15
15
  return __assign.apply(this, arguments);
16
16
  };
17
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
18
- if (k2 === undefined) k2 = k;
19
- var desc = Object.getOwnPropertyDescriptor(m, k);
20
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
21
- desc = { enumerable: true, get: function() { return m[k]; } };
22
- }
23
- Object.defineProperty(o, k2, desc);
24
- }) : (function(o, m, k, k2) {
25
- if (k2 === undefined) k2 = k;
26
- o[k2] = m[k];
27
- }));
28
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
29
- Object.defineProperty(o, "default", { enumerable: true, value: v });
30
- }) : function(o, v) {
31
- o["default"] = v;
32
- });
33
- var __importStar = (this && this.__importStar) || function (mod) {
34
- if (mod && mod.__esModule) return mod;
35
- var result = {};
36
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
37
- __setModuleDefault(result, mod);
38
- return result;
39
- };
40
17
  var __importDefault = (this && this.__importDefault) || function (mod) {
41
18
  return (mod && mod.__esModule) ? mod : { "default": mod };
42
19
  };
@@ -47,7 +24,7 @@ var createCompositions_1 = require("../../../../../../../DynamicLayout/Compositi
47
24
  var dynamicLayoutContext_1 = require("../../../../../../../DynamicLayout/dynamicLayoutContext");
48
25
  var hooks_1 = require("../../../../../../../DynamicLayout/sections/CustomSection/hooks");
49
26
  var util_1 = require("../../../../../../../DynamicLayout/sections/CustomSection/util");
50
- var styled_components_1 = __importStar(require("styled-components"));
27
+ var styled_components_1 = __importDefault(require("styled-components"));
51
28
  var S_CB_AnimationObserverBox_1 = require("../components/S_CB_AnimationObserverBox");
52
29
  var S_CB_BoxWithShadow_1 = require("../components/S_CB_BoxWithShadow");
53
30
  var CustomNavigation_1 = require("./components/CustomNavigation");
@@ -92,7 +69,6 @@ function SlideBanner(props) {
92
69
  device: device
93
70
  }), customProgressbarNormalStyle = _l.normalStyle, customProgressbarHoverStyle = _l.hoverStyle;
94
71
  var _m = (0, util_1.parseProperties)(props, device), style = _m.style, hoverStyle = _m.hoverStyle, layout = _m.layout, effect = _m.effect;
95
- var loop = isHovered ? slideBannerNormalStyle.loop : slideBannerHoverStyle.loop;
96
72
  // NOTE: edit모드에서는 그리드의 이벤트만 작동하도록 CB의 포인터 이벤트는 막습니다.
97
73
  var editModeStyle = mode === 'EDIT' ? { pointerEvents: 'none' } : {};
98
74
  // NOTE: EFFECT와 관련된 함수들입니다.
@@ -113,47 +89,19 @@ function SlideBanner(props) {
113
89
  (_c = swiperRef.current) === null || _c === void 0 ? void 0 : _c.swiper.update();
114
90
  }, [isHovered]);
115
91
  var handleSwiper = function (swiper) {
116
- var originalSlides = Array.from(swiper.slides).filter(function (slide) { return !slide.classList.contains('swiper-slide-duplicate'); });
117
- var totalSlides = originalSlides.length;
92
+ var totalSlides = swiper.slides.length;
118
93
  var slidesPerView = typeof swiper.params.slidesPerView === 'number' ? swiper.params.slidesPerView : 1;
119
94
  var slidesPerGroup = typeof swiper.params.slidesPerGroup === 'number' ? swiper.params.slidesPerGroup : 1;
120
- var isLoop = swiper.params.loop || false;
121
- var totalPages;
122
- if (slidesPerView === slidesPerGroup && slidesPerGroup > 1) {
123
- // 페이지 단위로 넘어가는 경우 (loop 여부 상관없이 동일)
124
- totalPages = Math.ceil(totalSlides / slidesPerGroup);
125
- }
126
- else if (isLoop) {
127
- totalPages = totalSlides;
128
- }
129
- else {
130
- // loop가 꺼져있으면 마지막 슬라이드가 첫 번째 위치에 올 수 있는 경우까지만
131
- totalPages = Math.max(1, totalSlides - slidesPerView + 1);
132
- }
95
+ var totalPages = Math.ceil((totalSlides - slidesPerView) / slidesPerGroup) + 1;
133
96
  setTotalPages(totalPages);
134
97
  setIsBeginning(swiper.isBeginning);
135
98
  setIsEnd(swiper.isEnd);
99
+ setCurrentSlide(swiper.activeIndex + 1);
136
100
  };
137
- var handleSlideChangeTransitionEnd = function (swiper) {
138
- var slidesPerGroup = typeof swiper.params.slidesPerGroup === 'number' ? swiper.params.slidesPerGroup : 1;
139
- var slidesPerView = typeof swiper.params.slidesPerView === 'number' ? swiper.params.slidesPerView : 1;
140
- var isLoop = swiper.params.loop || false;
101
+ var handleSlideChange = function (swiper) {
141
102
  setIsBeginning(swiper.isBeginning);
142
103
  setIsEnd(swiper.isEnd);
143
- // 현재 페이지 계산
144
- if (slidesPerView === slidesPerGroup && slidesPerGroup > 1) {
145
- // 페이지 단위로 이동하는 경우
146
- var currentPage = Math.floor(swiper.realIndex / slidesPerGroup) + 1;
147
- setCurrentSlide(currentPage);
148
- }
149
- else if (isLoop) {
150
- // loop 모드에서는 realIndex가 실제 슬라이드 인덱스
151
- setCurrentSlide(swiper.realIndex + 1);
152
- }
153
- else {
154
- // loop가 꺼져있을 때는 activeIndex 사용
155
- setCurrentSlide(swiper.activeIndex + 1);
156
- }
104
+ setCurrentSlide(swiper.activeIndex + 1);
157
105
  };
158
106
  var handleAutoplayTimeLeft = (0, react_1.useCallback)(function (swiper, time, progress) {
159
107
  leftTimeMsRef.current = time;
@@ -175,28 +123,12 @@ function SlideBanner(props) {
175
123
  swiperRef.current.swiper.slideNext();
176
124
  }
177
125
  };
178
- return ((0, jsx_runtime_1.jsx)(S_CB_AnimationObserverBox_1.S_CB_AnimationObserverBox, __assign({ ref: hasEffect ? cbRef : null, effectVisibleStyle: effectVisibleStyle }, { children: (0, jsx_runtime_1.jsx)(S_CB_BoxWithShadow_1.S_CB_BoxWithShadow, __assign({ className: "cb-layout-box", normalStyle: __assign(__assign(__assign(__assign(__assign({}, style), layout), effectCssProperties), editModeStyle), { borderBottomLeftRadius: style.borderBottomLeftRadius, borderBottomRightRadius: style.borderBottomRightRadius, borderTopLeftRadius: style.borderTopLeftRadius, borderTopRightRadius: style.borderTopRightRadius, borderWidth: undefined, borderColor: undefined, borderStyle: undefined }), hoverStyle: __assign(__assign({}, hoverStyle), { borderBottomLeftRadius: hoverStyle.borderBottomLeftRadius, borderBottomRightRadius: hoverStyle.borderBottomRightRadius, borderTopLeftRadius: hoverStyle.borderTopLeftRadius, borderTopRightRadius: hoverStyle.borderTopRightRadius, borderWidth: undefined, borderColor: undefined, borderStyle: undefined }), cbStylePropsShadowSpecs: CB_STYLE_PROP_SHADOW, device: device, onMouseEnter: function () { return setIsHovered(true); }, onMouseLeave: function () { return setIsHovered(false); } }, { children: (0, jsx_runtime_1.jsxs)(S_SwiperWrapper, __assign({ customStyle: isHovered ? slideBannerHoverStyle === null || slideBannerHoverStyle === void 0 ? void 0 : slideBannerHoverStyle.customStyle : slideBannerNormalStyle === null || slideBannerNormalStyle === void 0 ? void 0 : slideBannerNormalStyle.customStyle }, { children: [(0, jsx_runtime_1.jsx)(S_SwiperLayout, __assign({ borderStyle: {
179
- borderBottomLeftRadius: style.borderBottomLeftRadius,
180
- borderBottomRightRadius: style.borderBottomRightRadius,
181
- borderTopLeftRadius: style.borderTopLeftRadius,
182
- borderTopRightRadius: style.borderTopRightRadius,
183
- borderWidth: style.borderWidth,
184
- borderColor: style.borderColor,
185
- borderStyle: style.borderStyle
186
- }, hoverBorderStyle: {
187
- borderBottomLeftRadius: hoverStyle.borderBottomLeftRadius,
188
- borderBottomRightRadius: hoverStyle.borderBottomRightRadius,
189
- borderTopLeftRadius: hoverStyle.borderTopLeftRadius,
190
- borderTopRightRadius: hoverStyle.borderTopRightRadius,
191
- borderWidth: hoverStyle.borderWidth,
192
- borderColor: hoverStyle.borderColor,
193
- borderStyle: hoverStyle.borderStyle
194
- } }, { children: (0, jsx_runtime_1.jsx)(SlideBannerCore_1.default, __assign({ ref: swiperRef, onSwiper: handleSwiper, onSlideChangeTransitionEnd: handleSlideChangeTransitionEnd, onAutoplayTimeLeft: handleAutoplayTimeLeft, slidesPerView: CB_CONTENT_PROP_SLIDEBANNER_SPEC_DISPLAYCOUNTS, scrollbar: isHovered ? slideBannerHoverStyle.scrollbar : slideBannerNormalStyle.scrollbar, freeMode: isHovered ? slideBannerHoverStyle.freeMode : slideBannerNormalStyle.freeMode, autoplay: isHovered ? slideBannerHoverStyle.autoplay : slideBannerNormalStyle.autoplay, useAutoplay: isHovered ? slideBannerHoverStyle.useAutoplay : slideBannerNormalStyle.useAutoplay, loop: isHovered ? slideBannerHoverStyle.loop : slideBannerNormalStyle.loop }, { children: (0, createCompositions_1.createCompositions)({
195
- valueType: CB_CONTENT_PROP_SLIDEBANNER_SPEC_VALUETYPE,
196
- queryPath: CB_CONTENT_PROP_SLIDEBANNER_SPEC_CONNECTDATA,
197
- queryData: queryData,
198
- compositions: compositions
199
- }) })) })), (0, jsx_runtime_1.jsx)(CustomPagination_1.CustomPagination, { type: isHovered ? customPaginationHoverStyle.type : customPaginationNormalStyle.type, offset: isHovered ? customPaginationHoverStyle.offset : customPaginationNormalStyle.offset, current: currentSlide, prevBtnDisabled: loop ? false : isBeginning, nextBtnDisabled: loop ? false : isEnd, total: totalPages, size: isHovered ? customPaginationHoverStyle.size : customPaginationNormalStyle.size, onBulletClick: handleBulletClick, onPrevBtnClick: handlePrevBtnClick, onNextBtnClick: handleNextBtnClick }), (0, jsx_runtime_1.jsx)(CustomNavigation_1.CustomNavigation, { prevBtnDisabled: isBeginning, prevBtnType: isHovered
126
+ return ((0, jsx_runtime_1.jsx)(S_CB_AnimationObserverBox_1.S_CB_AnimationObserverBox, __assign({ ref: hasEffect ? cbRef : null, effectVisibleStyle: effectVisibleStyle }, { children: (0, jsx_runtime_1.jsx)(S_CB_BoxWithShadow_1.S_CB_BoxWithShadow, __assign({ className: "cb-layout-box", normalStyle: __assign(__assign(__assign(__assign(__assign({}, style), layout), effectCssProperties), editModeStyle), { position: 'relative', overflow: 'hidden' }), hoverStyle: __assign(__assign({}, hoverStyle), { position: 'relative', overflow: 'hidden' }), cbStylePropsShadowSpecs: CB_STYLE_PROP_SHADOW, device: device, onMouseEnter: function () { return setIsHovered(true); }, onMouseLeave: function () { return setIsHovered(false); } }, { children: (0, jsx_runtime_1.jsxs)(S_SwiperWrapper, __assign({ customStyle: isHovered ? slideBannerHoverStyle === null || slideBannerHoverStyle === void 0 ? void 0 : slideBannerHoverStyle.customStyle : slideBannerNormalStyle === null || slideBannerNormalStyle === void 0 ? void 0 : slideBannerNormalStyle.customStyle }, { children: [(0, jsx_runtime_1.jsx)(SlideBannerCore_1.default, __assign({ ref: swiperRef, onSwiper: handleSwiper, onSlideChange: handleSlideChange, onAutoplayTimeLeft: handleAutoplayTimeLeft, slidesPerView: CB_CONTENT_PROP_SLIDEBANNER_SPEC_DISPLAYCOUNTS, scrollbar: isHovered ? slideBannerHoverStyle.scrollbar : slideBannerNormalStyle.scrollbar, freeMode: isHovered ? slideBannerHoverStyle.freeMode : slideBannerNormalStyle.freeMode, autoplay: isHovered ? slideBannerHoverStyle.autoplay : slideBannerNormalStyle.autoplay, useAutoplay: isHovered ? slideBannerHoverStyle.useAutoplay : slideBannerNormalStyle.useAutoplay, loop: isHovered ? slideBannerHoverStyle.loop : slideBannerNormalStyle.loop }, { children: (0, createCompositions_1.createCompositions)({
127
+ valueType: CB_CONTENT_PROP_SLIDEBANNER_SPEC_VALUETYPE,
128
+ queryPath: CB_CONTENT_PROP_SLIDEBANNER_SPEC_CONNECTDATA,
129
+ queryData: queryData,
130
+ compositions: compositions
131
+ }) })), (0, jsx_runtime_1.jsx)(CustomPagination_1.CustomPagination, { type: isHovered ? customPaginationHoverStyle.type : customPaginationNormalStyle.type, offset: isHovered ? customPaginationHoverStyle.offset : customPaginationNormalStyle.offset, current: currentSlide, total: totalPages, size: isHovered ? customPaginationHoverStyle.size : customPaginationNormalStyle.size, onBulletClick: handleBulletClick }), (0, jsx_runtime_1.jsx)(CustomNavigation_1.CustomNavigation, { prevBtnDisabled: isBeginning, prevBtnType: isHovered
200
132
  ? customNavigationHoverStyle.prevBtnType
201
133
  : customNavigationNormalStyle.prevBtnType, prevBtnOffset: isHovered
202
134
  ? customNavigationHoverStyle.prevBtnOffset
@@ -214,12 +146,5 @@ var S_SwiperWrapper = styled_components_1.default.div(templateObject_1 || (templ
214
146
  var customStyle = _a.customStyle;
215
147
  return customStyle;
216
148
  });
217
- var S_SwiperLayout = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n height: 100%;\n overflow: hidden;\n width: 100%;\n\n ", ";\n ", ";\n"], ["\n height: 100%;\n overflow: hidden;\n width: 100%;\n\n ", ";\n ", ";\n"])), function (_a) {
218
- var hoverBorderStyle = _a.hoverBorderStyle;
219
- return (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), __assign(__assign({}, hoverBorderStyle), { boxShadow: '' }));
220
- }, function (_a) {
221
- var borderStyle = _a.borderStyle;
222
- return (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), __assign(__assign({}, borderStyle), { boxShadow: '' }));
223
- });
224
149
  exports.default = SlideBanner;
225
- var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
150
+ var templateObject_1;
@@ -42,7 +42,6 @@ exports.CustomNavigation = void 0;
42
42
  var jsx_runtime_1 = require("react/jsx-runtime");
43
43
  var IconButton_1 = require("../../../../../../../../DynamicLayout/components/pdsOriginal/desktop/IconButton");
44
44
  var styled_components_1 = __importStar(require("styled-components"));
45
- var navigationConfigs_1 = require("./navigationConfigs");
46
45
  var CustomNavigation = function (_a) {
47
46
  var _b = _a.prevBtnDisabled, prevBtnDisabled = _b === void 0 ? false : _b, _c = _a.prevBtnType, prevBtnType = _c === void 0 ? 'NONE' : _c, _d = _a.prevBtnOffset, prevBtnOffset = _d === void 0 ? { top: '0' } : _d, _e = _a.prevBtnSize, prevBtnSize = _e === void 0 ? 1 : _e, _f = _a.nextBtnDisabled, nextBtnDisabled = _f === void 0 ? false : _f, _g = _a.nextBtnType, nextBtnType = _g === void 0 ? 'NONE' : _g, _h = _a.nextBtnOffset, nextBtnOffset = _h === void 0 ? { top: '0' } : _h, _j = _a.nextBtnSize, nextBtnSize = _j === void 0 ? 1 : _j, onPrevBtnClick = _a.onPrevBtnClick, onNextBtnClick = _a.onNextBtnClick;
48
47
  var getIsSameOffset = function (prevBtnOffset, nextBtnOffset) {
@@ -55,9 +54,61 @@ var CustomNavigation = function (_a) {
55
54
  prevBtnOffset.transformOrigin === nextBtnOffset.transformOrigin);
56
55
  };
57
56
  var isSameOffset = getIsSameOffset(prevBtnOffset, nextBtnOffset);
58
- var prevButton = navigationConfigs_1.prevButtonMappedIcons[prevBtnType];
59
- var nextButton = navigationConfigs_1.nextButtonMappedIcons[nextBtnType];
60
- return ((0, jsx_runtime_1.jsxs)(S_Navigation, __assign({ "$offset": isSameOffset ? prevBtnOffset : undefined, "$size": isSameOffset ? prevBtnSize : 1 }, { children: [(0, jsx_runtime_1.jsx)(S_PrevButton, __assign({ className: "".concat(prevBtnDisabled ? 'disabled' : ''), "$offset": isSameOffset ? undefined : prevBtnOffset, "$size": isSameOffset ? undefined : prevBtnSize }, { children: (0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { fillType: "fill", baseSize: "large", shapeType: prevButton.shapeType, baseColorKey: prevButton.baseColorKey || 'ui_cpnt_button_fill_base_transparent', borderColorKey: prevButton.borderColorKey, iconName: prevButton.iconName, iconFillType: "line", iconColorKey: prevButton.iconColorKey || 'ui_cpnt_icon_sys_black', shadow: prevButton.shadow, onClick: onPrevBtnClick }) })), (0, jsx_runtime_1.jsx)(S_NextButton, __assign({ className: "".concat(nextBtnDisabled ? 'disabled' : ''), "$offset": isSameOffset ? undefined : nextBtnOffset, "$size": isSameOffset ? undefined : nextBtnSize }, { children: (0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { fillType: "fill", baseSize: "large", shapeType: nextButton.shapeType, baseColorKey: nextButton.baseColorKey || 'ui_cpnt_button_fill_base_transparent', borderColorKey: nextButton.baseColorKey, iconName: nextButton.iconName, iconFillType: "line", iconColorKey: nextButton.iconColorKey || 'ui_cpnt_icon_sys_black', shadow: nextButton.shadow, onClick: onNextBtnClick }) }))] })));
57
+ return ((0, jsx_runtime_1.jsxs)(S_Navigation, __assign({ "$offset": isSameOffset ? prevBtnOffset : undefined, "$size": isSameOffset ? prevBtnSize : 1 }, { children: [(0, jsx_runtime_1.jsx)(S_PrevButton, __assign({ className: "".concat(prevBtnDisabled ? 'disabled' : ''), "$offset": isSameOffset ? undefined : prevBtnOffset, "$size": isSameOffset ? undefined : prevBtnSize, onClick: onPrevBtnClick }, { children: (function () {
58
+ switch (prevBtnType) {
59
+ case 'NONE':
60
+ case 'DESIGN1':
61
+ return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {});
62
+ case 'DESIGN2':
63
+ return ((0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { fillType: "fill", baseSize: "large", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconName: "ic_arrow_left_thin", iconFillType: "line", iconColorKey: "ui_cpnt_icon_sys_dark" }));
64
+ case 'DESIGN3':
65
+ return ((0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { fillType: "fill", baseSize: "large", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconName: "ic_arrow_left", iconFillType: "line", iconColorKey: "ui_cpnt_icon_sys_dark" }));
66
+ case 'DESIGN4':
67
+ case 'DESIGN5':
68
+ case 'DESIGN6':
69
+ case 'DESIGN7':
70
+ case 'DESIGN8':
71
+ case 'DESIGN9':
72
+ case 'DESIGN10':
73
+ case 'DESIGN11':
74
+ return ((0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { fillType: "fill", baseSize: "large", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconName: "ic_arrow_left_bold", iconFillType: "line", iconColorKey: "ui_cpnt_icon_sys_dark" }));
75
+ case 'DESIGN12':
76
+ return ((0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { fillType: "fill", baseSize: "large", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconName: "ic_arrow_left_thin", iconFillType: "line", iconColorKey: "ui_cpnt_icon_sys_white" }));
77
+ case 'DESIGN13':
78
+ return ((0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { fillType: "fill", baseSize: "large", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconName: "ic_arrow_left", iconFillType: "line", iconColorKey: "ui_cpnt_icon_sys_white" }));
79
+ case 'DESIGN14':
80
+ return ((0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { fillType: "fill", baseSize: "large", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconName: "ic_arrow_left", iconFillType: "line", iconColorKey: "ui_cpnt_icon_sys_white" }));
81
+ default:
82
+ return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {});
83
+ }
84
+ })() })), (0, jsx_runtime_1.jsx)(S_NextButton, __assign({ className: "".concat(nextBtnDisabled ? 'disabled' : ''), "$offset": isSameOffset ? undefined : nextBtnOffset, "$size": isSameOffset ? undefined : nextBtnSize, onClick: onNextBtnClick }, { children: (function () {
85
+ switch (nextBtnType) {
86
+ case 'NONE':
87
+ case 'DESIGN1':
88
+ return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {});
89
+ case 'DESIGN2':
90
+ return ((0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { fillType: "fill", baseSize: "large", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconName: "ic_arrow_right_thin", iconFillType: "line", iconColorKey: "ui_cpnt_icon_sys_dark" }));
91
+ case 'DESIGN3':
92
+ return ((0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { fillType: "fill", baseSize: "large", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconName: "ic_arrow_right", iconFillType: "line", iconColorKey: "ui_cpnt_icon_sys_dark" }));
93
+ case 'DESIGN4':
94
+ case 'DESIGN5':
95
+ case 'DESIGN6':
96
+ case 'DESIGN7':
97
+ case 'DESIGN8':
98
+ case 'DESIGN9':
99
+ case 'DESIGN10':
100
+ case 'DESIGN11':
101
+ return ((0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { fillType: "fill", baseSize: "large", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconName: "ic_arrow_right_bold", iconFillType: "line", iconColorKey: "ui_cpnt_icon_sys_dark" }));
102
+ case 'DESIGN12':
103
+ return ((0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { fillType: "fill", baseSize: "large", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconName: "ic_arrow_right_thin", iconFillType: "line", iconColorKey: "ui_cpnt_icon_sys_white" }));
104
+ case 'DESIGN13':
105
+ return ((0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { fillType: "fill", baseSize: "large", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconName: "ic_arrow_right", iconFillType: "line", iconColorKey: "ui_cpnt_icon_sys_white" }));
106
+ case 'DESIGN14':
107
+ return ((0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { fillType: "fill", baseSize: "large", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconName: "ic_arrow_right", iconFillType: "line", iconColorKey: "ui_cpnt_icon_sys_white" }));
108
+ default:
109
+ return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {});
110
+ }
111
+ })() }))] })));
61
112
  };
62
113
  exports.CustomNavigation = CustomNavigation;
63
114
  var S_Navigation = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: ", ";\n padding: ", ";\n position: ", ";\n transform: ", ";\n ", ";\n transform-origin: ", ";\n z-index: 3;\n"], ["\n display: ", ";\n padding: ", ";\n position: ", ";\n transform: ", ";\n ", ";\n transform-origin: ", ";\n z-index: 3;\n"])), function (_a) {
@@ -14,14 +14,9 @@ export interface CustomPaginationProps {
14
14
  transformOrigin?: string;
15
15
  };
16
16
  size?: number;
17
+ onBulletClick?: (index: number) => void;
17
18
  }
18
- export declare const CustomPagination: ({ current, total, type, offset, size, prevBtnDisabled, nextBtnDisabled, onBulletClick, onPrevBtnClick, onNextBtnClick }: CustomPaginationProps & {
19
- prevBtnDisabled: boolean;
20
- nextBtnDisabled: boolean;
21
- onBulletClick: (index: number) => void;
22
- onPrevBtnClick: () => void;
23
- onNextBtnClick: () => void;
24
- }) => JSX.Element;
19
+ export declare const CustomPagination: ({ current, total, type, offset, size, onBulletClick }: CustomPaginationProps) => JSX.Element;
25
20
  export interface FlexBoxProps {
26
21
  direction?: 'row' | 'column';
27
22
  justifyContent?: string;
@@ -43,44 +43,45 @@ var jsx_runtime_1 = require("react/jsx-runtime");
43
43
  var components_1 = require("../../../../../../../../DynamicLayout/components");
44
44
  var styled_components_1 = __importStar(require("styled-components"));
45
45
  var CustomPagination = function (_a) {
46
- var _b = _a.current, current = _b === void 0 ? 1 : _b, _c = _a.total, total = _c === void 0 ? 1 : _c, _d = _a.type, type = _d === void 0 ? 'NONE' : _d, _e = _a.offset, offset = _e === void 0 ? { top: '0' } : _e, _f = _a.size, size = _f === void 0 ? 1 : _f, prevBtnDisabled = _a.prevBtnDisabled, nextBtnDisabled = _a.nextBtnDisabled, onBulletClick = _a.onBulletClick, onPrevBtnClick = _a.onPrevBtnClick, onNextBtnClick = _a.onNextBtnClick;
46
+ var _b = _a.current, current = _b === void 0 ? 1 : _b, _c = _a.total, total = _c === void 0 ? 1 : _c, _d = _a.type, type = _d === void 0 ? 'NONE' : _d, _e = _a.offset, offset = _e === void 0 ? { top: '0' } : _e, _f = _a.size, size = _f === void 0 ? 1 : _f, onBulletClick = _a.onBulletClick;
47
47
  var bullets = Array.from({ length: total }, function (_, i) { return i; });
48
48
  return ((0, jsx_runtime_1.jsx)(S_Pagination, __assign({ className: "custom-pagination_".concat(current), "$offset": offset, "$size": size }, { children: (function () {
49
49
  switch (type) {
50
50
  case 'NONE':
51
- return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {});
52
51
  case 'DESIGN1':
53
- return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ gap: "4px" }, { children: [(0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ styleTheme: "body2Bold", colorTheme: "sysTextBlack" }, { children: current })), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { opacity: 0.6 }, styleTheme: "body2Regular", colorTheme: "sysTextBlack" }, { children: "/ ".concat(total) }))] })));
52
+ return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {});
54
53
  case 'DESIGN2':
55
- return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ gap: "4px" }, { children: [(0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ styleTheme: "body2Bold" }, { children: current })), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { opacity: 0.6 }, styleTheme: "body2Regular" }, { children: "/ ".concat(total) }))] })));
54
+ return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ gap: "4px" }, { children: [(0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ styleTheme: "body2Bold", colorTheme: "sysTextBlack" }, { children: current })), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { opacity: 0.6 }, styleTheme: "body2Regular", colorTheme: "sysTextBlack" }, { children: "/ ".concat(total) }))] })));
56
55
  case 'DESIGN3':
57
- return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ gap: "8px" }, { children: [(0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ styleTheme: "body2Bold", colorTheme: "sysTextBlack" }, { children: current })), (0, jsx_runtime_1.jsx)(S_Divider, { type: "VERTICAL", color: "WHITE" }), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { opacity: 0.6 }, styleTheme: "body2Regular", colorTheme: "sysTextBlack" }, { children: total }))] })));
56
+ return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ gap: "4px" }, { children: [(0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ styleTheme: "body2Bold" }, { children: current })), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { opacity: 0.6 }, styleTheme: "body2Regular" }, { children: "/ ".concat(total) }))] })));
58
57
  case 'DESIGN4':
59
- return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ gap: "8px" }, { children: [(0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ styleTheme: "body2Bold" }, { children: current })), (0, jsx_runtime_1.jsx)(S_Divider, { type: "VERTICAL", color: "WHITE" }), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { opacity: 0.6 }, styleTheme: "body2Regular" }, { children: total }))] })));
58
+ return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ gap: "8px" }, { children: [(0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ styleTheme: "body2Bold", colorTheme: "sysTextBlack" }, { children: current })), (0, jsx_runtime_1.jsx)(S_Divider, { type: "VERTICAL", color: "WHITE" }), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { opacity: 0.6 }, styleTheme: "body2Regular", colorTheme: "sysTextBlack" }, { children: total }))] })));
60
59
  case 'DESIGN5':
61
- return ((0, jsx_runtime_1.jsxs)(FlexBox, { children: [(0, jsx_runtime_1.jsx)(S_Pointer, __assign({ onClick: onPrevBtnClick, disabled: prevBtnDisabled }, { 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_TextLabel, __assign({ style: { marginLeft: '8px', marginRight: '4px' }, styleTheme: "body2Bold", colorTheme: "sysTextBlack" }, { children: current })), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { marginRight: '8px', marginLeft: '4px', opacity: 0.6 }, styleTheme: "body2Regular", colorTheme: "sysTextBlack" }, { children: "/ ".concat(total) })), (0, jsx_runtime_1.jsx)(S_Pointer, __assign({ onClick: onNextBtnClick, disabled: nextBtnDisabled }, { children: (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_right", size: 16, colorKey: "ui_cpnt_icon_sys_dark" }) }))] }));
60
+ return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ gap: "8px" }, { children: [(0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ styleTheme: "body2Bold" }, { children: current })), (0, jsx_runtime_1.jsx)(S_Divider, { type: "VERTICAL", color: "WHITE" }), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { opacity: 0.6 }, styleTheme: "body2Regular" }, { children: total }))] })));
62
61
  case 'DESIGN6':
63
- return ((0, jsx_runtime_1.jsxs)(FlexBox, { children: [(0, jsx_runtime_1.jsx)(S_Pointer, __assign({ onClick: onPrevBtnClick, disabled: prevBtnDisabled }, { children: (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_left", size: 16 }) })), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { marginLeft: '8px', marginRight: '4px' }, styleTheme: "body2Bold", colorTheme: "sysTextWhite" }, { children: current })), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { marginRight: '8px', marginLeft: '4px', opacity: 0.6 }, styleTheme: "body2Regular", colorTheme: "sysTextWhite" }, { children: "/ ".concat(total) })), (0, jsx_runtime_1.jsx)(S_Pointer, __assign({ onClick: onNextBtnClick, disabled: nextBtnDisabled }, { children: (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_right", size: 16 }) }))] }));
62
+ return ((0, jsx_runtime_1.jsxs)(FlexBox, { 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_TextLabel, __assign({ style: { marginLeft: '8px', marginRight: '4px' }, styleTheme: "body2Bold", colorTheme: "sysTextBlack" }, { children: current })), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { marginRight: '8px', marginLeft: '4px', opacity: 0.6 }, styleTheme: "body2Regular", colorTheme: "sysTextBlack" }, { children: "/ ".concat(total) })), (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_right", size: 16, colorKey: "ui_cpnt_icon_sys_dark" })] }));
64
63
  case 'DESIGN7':
65
- return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ gap: "8px" }, { children: [(0, jsx_runtime_1.jsx)(S_Pointer, __assign({ onClick: onPrevBtnClick, disabled: prevBtnDisabled }, { 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_TextLabel, __assign({ styleTheme: "body2Bold", colorTheme: "sysTextBlack" }, { children: current })), (0, jsx_runtime_1.jsx)(S_Divider, { type: "VERTICAL" }), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { opacity: 0.6 }, styleTheme: "body2Regular", colorTheme: "sysTextBlack" }, { children: total })), (0, jsx_runtime_1.jsx)(S_Pointer, __assign({ onClick: onNextBtnClick, disabled: nextBtnDisabled }, { children: (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_right", size: 16, colorKey: "ui_cpnt_icon_sys_dark" }) }))] })));
64
+ return ((0, jsx_runtime_1.jsxs)(FlexBox, { children: [(0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_left", size: 16 }), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { marginLeft: '8px', marginRight: '4px' }, styleTheme: "body2Bold", colorTheme: "sysTextWhite" }, { children: current })), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { marginRight: '8px', marginLeft: '4px', opacity: 0.6 }, styleTheme: "body2Regular", colorTheme: "sysTextWhite" }, { children: "/ ".concat(total) })), (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_right", size: 16 })] }));
66
65
  case 'DESIGN8':
67
- return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ gap: "8px" }, { children: [(0, jsx_runtime_1.jsx)(S_Pointer, __assign({ onClick: onPrevBtnClick, disabled: prevBtnDisabled }, { children: (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_left", size: 16 }) })), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ styleTheme: "body2Bold", colorTheme: "sysTextWhite" }, { children: current })), (0, jsx_runtime_1.jsx)(S_Divider, { type: "VERTICAL", color: "WHITE" }), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { opacity: 0.6 }, styleTheme: "body2Regular", colorTheme: "sysTextWhite" }, { children: total })), (0, jsx_runtime_1.jsx)(S_Pointer, __assign({ onClick: onNextBtnClick, disabled: nextBtnDisabled }, { children: (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_right", size: 16 }) }))] })));
66
+ return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ gap: "8px" }, { 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_TextLabel, __assign({ styleTheme: "body2Bold", colorTheme: "sysTextBlack" }, { children: current })), (0, jsx_runtime_1.jsx)(S_Divider, { type: "VERTICAL" }), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { opacity: 0.6 }, styleTheme: "body2Regular", colorTheme: "sysTextBlack" }, { children: total })), (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_right", size: 16, colorKey: "ui_cpnt_icon_sys_dark" })] })));
68
67
  case 'DESIGN9':
69
- return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ direction: "column", gap: "8px" }, { children: [(0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { paddingLeft: '8px', paddingRight: '8px' }, styleTheme: "body2Bold", colorTheme: "sysTextBlack" }, { children: current })), (0, jsx_runtime_1.jsx)(S_Divider, { type: "HORIZONTAL" }), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { opacity: 0.6 }, styleTheme: "body2Regular", colorTheme: "sysTextBlack" }, { children: total }))] })));
68
+ return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ gap: "8px" }, { children: [(0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_left", size: 16 }), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ styleTheme: "body2Bold", colorTheme: "sysTextWhite" }, { children: current })), (0, jsx_runtime_1.jsx)(S_Divider, { type: "VERTICAL", color: "WHITE" }), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { opacity: 0.6 }, styleTheme: "body2Regular", colorTheme: "sysTextWhite" }, { children: total })), (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_right", size: 16 })] })));
70
69
  case 'DESIGN10':
71
- return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ direction: "column", gap: "8px" }, { children: [(0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { paddingLeft: '8px', paddingRight: '8px' }, styleTheme: "body2Bold", colorTheme: "sysTextWhite" }, { children: current })), (0, jsx_runtime_1.jsx)(S_Divider, { type: "HORIZONTAL", color: "DARK" }), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { opacity: 0.6 }, styleTheme: "body2Regular", colorTheme: "sysTextWhite" }, { children: total }))] })));
70
+ return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ direction: "column", gap: "8px" }, { children: [(0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { paddingLeft: '8px', paddingRight: '8px' }, styleTheme: "body2Bold", colorTheme: "sysTextBlack" }, { children: current })), (0, jsx_runtime_1.jsx)(S_Divider, { type: "HORIZONTAL" }), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { opacity: 0.6 }, styleTheme: "body2Regular", colorTheme: "sysTextBlack" }, { children: total }))] })));
72
71
  case 'DESIGN11':
73
- return ((0, jsx_runtime_1.jsx)(FlexBox, __assign({ gap: "8px" }, { children: bullets.map(function (_, index) { return ((0, jsx_runtime_1.jsx)(S_Dot, { color: "DARK", isActive: index + 1 === current, onClick: function () { return onBulletClick(index); } }, index)); }) })));
72
+ return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ direction: "column", gap: "8px" }, { children: [(0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { paddingLeft: '8px', paddingRight: '8px' }, styleTheme: "body2Bold", colorTheme: "sysTextWhite" }, { children: current })), (0, jsx_runtime_1.jsx)(S_Divider, { type: "HORIZONTAL", color: "DARK" }), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { opacity: 0.6 }, styleTheme: "body2Regular", colorTheme: "sysTextWhite" }, { children: total }))] })));
74
73
  case 'DESIGN12':
75
- return ((0, jsx_runtime_1.jsx)(FlexBox, __assign({ gap: "8px" }, { children: bullets.map(function (_, index) { return ((0, jsx_runtime_1.jsx)(S_Dot, { color: "WHITE", isActive: index + 1 === current, onClick: function () { return onBulletClick(index); } }, index)); }) })));
74
+ return ((0, jsx_runtime_1.jsx)(FlexBox, __assign({ gap: "8px" }, { children: bullets.map(function (_, index) { return ((0, jsx_runtime_1.jsx)(S_Dot, { color: "DARK", isActive: index + 1 === current, onClick: onBulletClick ? function () { return onBulletClick(index); } : undefined }, index)); }) })));
76
75
  case 'DESIGN13':
77
- return ((0, jsx_runtime_1.jsx)(FlexBox, __assign({ direction: "column", gap: "12px" }, { children: bullets.map(function (_, index) { return ((0, jsx_runtime_1.jsx)(S_Dot, { color: "DARK", isActive: index + 1 === current, onClick: function () { return onBulletClick(index); } }, index)); }) })));
76
+ return ((0, jsx_runtime_1.jsx)(FlexBox, __assign({ gap: "8px" }, { children: bullets.map(function (_, index) { return ((0, jsx_runtime_1.jsx)(S_Dot, { color: "WHITE", isActive: index + 1 === current, onClick: onBulletClick ? function () { return onBulletClick(index); } : undefined }, index)); }) })));
78
77
  case 'DESIGN14':
79
- return ((0, jsx_runtime_1.jsx)(FlexBox, __assign({ direction: "column", gap: "12px" }, { children: bullets.map(function (_, index) { return ((0, jsx_runtime_1.jsx)(S_Dot, { color: "WHITE", isActive: index + 1 === current, onClick: function () { return onBulletClick(index); } }, index)); }) })));
78
+ return ((0, jsx_runtime_1.jsx)(FlexBox, __assign({ direction: "column", gap: "12px" }, { children: bullets.map(function (_, index) { return ((0, jsx_runtime_1.jsx)(S_Dot, { color: "DARK", isActive: index + 1 === current, onClick: onBulletClick ? function () { return onBulletClick(index); } : undefined }, index)); }) })));
80
79
  case 'DESIGN15':
81
- return ((0, jsx_runtime_1.jsx)(FlexBox, __assign({ gap: "8px" }, { children: bullets.map(function (_, index) { return ((0, jsx_runtime_1.jsx)(S_Bar, { color: "DARK", isActive: index + 1 === current, onClick: function () { return onBulletClick(index); } }, index)); }) })));
80
+ return ((0, jsx_runtime_1.jsx)(FlexBox, __assign({ direction: "column", gap: "12px" }, { children: bullets.map(function (_, index) { return ((0, jsx_runtime_1.jsx)(S_Dot, { color: "WHITE", isActive: index + 1 === current, onClick: onBulletClick ? function () { return onBulletClick(index); } : undefined }, index)); }) })));
82
81
  case 'DESIGN16':
83
- return ((0, jsx_runtime_1.jsx)(FlexBox, __assign({ gap: "8px" }, { children: bullets.map(function (_, index) { return ((0, jsx_runtime_1.jsx)(S_Bar, { color: "WHITE", isActive: index + 1 === current, onClick: function () { return onBulletClick(index); } }, index)); }) })));
82
+ return ((0, jsx_runtime_1.jsx)(FlexBox, __assign({ gap: "8px" }, { children: bullets.map(function (_, index) { return ((0, jsx_runtime_1.jsx)(S_Bar, { color: "DARK", isActive: index + 1 === current, onClick: onBulletClick ? function () { return onBulletClick(index); } : undefined }, index)); }) })));
83
+ case 'DESIGN17':
84
+ return ((0, jsx_runtime_1.jsx)(FlexBox, __assign({ gap: "8px" }, { children: bullets.map(function (_, index) { return ((0, jsx_runtime_1.jsx)(S_Bar, { color: "WHITE", isActive: index + 1 === current, onClick: onBulletClick ? function () { return onBulletClick(index); } : undefined }, index)); }) })));
84
85
  default:
85
86
  return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {});
86
87
  }
@@ -180,12 +181,5 @@ var S_Bar = styled_components_1.default.div(templateObject_15 || (templateObject
180
181
  var color = _a.color;
181
182
  return (color === 'WHITE' ? whiteBullet : darkBullet);
182
183
  });
183
- var S_Pointer = styled_components_1.default.div(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n cursor: ", ";\n height: 16px;\n opacity: ", ";\n"], ["\n cursor: ", ";\n height: 16px;\n opacity: ", ";\n"])), function (_a) {
184
- var disabled = _a.disabled;
185
- return (disabled ? 'not-allowed' : 'pointer');
186
- }, function (_a) {
187
- var disabled = _a.disabled;
188
- return (disabled ? 0.4 : 1);
189
- });
190
184
  exports.default = exports.CustomPagination;
191
- 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;
185
+ 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;
@@ -42,76 +42,53 @@ exports.CustomProgressbar = void 0;
42
42
  var jsx_runtime_1 = require("react/jsx-runtime");
43
43
  var react_1 = require("react");
44
44
  var styled_components_1 = __importStar(require("styled-components"));
45
- var progressConfigs_1 = require("./progressConfigs");
46
45
  var CustomProgressbar = function (_a) {
47
46
  var progressRef = _a.progressRef, leftTimeMsRef = _a.leftTimeMsRef, _b = _a.type, type = _b === void 0 ? 'NONE' : _b, _c = _a.offset, offset = _c === void 0 ? { top: '0' } : _c, _d = _a.size, size = _d === void 0 ? 1 : _d;
48
47
  var _e = (0, react_1.useState)(0), leftTimeSec = _e[0], setLeftTimeSec = _e[1];
49
48
  var _f = (0, react_1.useState)(0), progress = _f[0], setProgress = _f[1];
49
+ // 초 단위 렌더
50
50
  (0, react_1.useEffect)(function () {
51
- var updateTimer = function () {
51
+ var id = setInterval(function () {
52
52
  var _a;
53
- var sec = Math.abs(((_a = leftTimeMsRef.current) !== null && _a !== void 0 ? _a : 10000) / 1000);
53
+ var sec = Math.ceil(((_a = leftTimeMsRef.current) !== null && _a !== void 0 ? _a : 0) / 1000);
54
54
  setLeftTimeSec(sec);
55
- };
56
- updateTimer();
57
- var id = setInterval(updateTimer, 1000);
55
+ }, 1000);
58
56
  return function () { return clearInterval(id); };
59
- }, []);
57
+ }, [leftTimeMsRef]);
58
+ // 실시간 progress 반영
60
59
  (0, react_1.useEffect)(function () {
61
60
  var animationId;
62
- var lastProgress = -1;
63
61
  var updateProgress = function () {
64
62
  var _a;
65
- var currentProgress = (_a = progressRef.current) !== null && _a !== void 0 ? _a : 0;
66
- // 소수점 3자리로 제한 (0.001 단위)
67
- var fixedProgress = Math.round(currentProgress * 1000) / 1000;
68
- // 0.5% 이상 변경시에만 업데이트
69
- if (Math.abs(fixedProgress - lastProgress) > 0.005) {
70
- setProgress(fixedProgress);
71
- lastProgress = fixedProgress;
72
- }
63
+ setProgress((_a = progressRef.current) !== null && _a !== void 0 ? _a : 0);
73
64
  animationId = requestAnimationFrame(updateProgress);
74
65
  };
75
66
  animationId = requestAnimationFrame(updateProgress);
76
67
  return function () { return cancelAnimationFrame(animationId); };
77
- }, []);
78
- var renderProgressByType = function () {
79
- switch (type) {
80
- case 'NONE':
81
- return null;
82
- case 'DESIGN1':
83
- return (0, jsx_runtime_1.jsx)(progressConfigs_1.ProgressDesign1, { progress: progress, leftTimeSec: leftTimeSec });
84
- case 'DESIGN2':
85
- return (0, jsx_runtime_1.jsx)(progressConfigs_1.ProgressDesign2, { progress: progress, leftTimeSec: leftTimeSec });
86
- case 'DESIGN3':
87
- return (0, jsx_runtime_1.jsx)(progressConfigs_1.ProgressDesign3, { progress: progress });
88
- case 'DESIGN4':
89
- return (0, jsx_runtime_1.jsx)(progressConfigs_1.ProgressDesign4, { progress: progress });
90
- case 'DESIGN5':
91
- return (0, jsx_runtime_1.jsx)(progressConfigs_1.ProgressDesign5, { progress: progress });
92
- case 'DESIGN6':
93
- return (0, jsx_runtime_1.jsx)(progressConfigs_1.ProgressDesign6, { progress: progress });
94
- case 'DESIGN7':
95
- return (0, jsx_runtime_1.jsx)(progressConfigs_1.ProgressDesign7, { progress: progress });
96
- case 'DESIGN8':
97
- return (0, jsx_runtime_1.jsx)(progressConfigs_1.ProgressDesign8, { progress: progress });
98
- default:
99
- return (0, jsx_runtime_1.jsx)(progressConfigs_1.ProgressDesign1, { progress: progress, leftTimeSec: leftTimeSec });
100
- }
101
- };
102
- return ((0, jsx_runtime_1.jsx)(S_ProgressWrapper, __assign({ "$offset": offset, "$size": size }, { children: renderProgressByType() })));
68
+ }, [progressRef]);
69
+ return ((0, jsx_runtime_1.jsx)(S_Progress, __assign({ className: "autoplay-progress", "$offset": offset, "$size": size }, { children: (function () {
70
+ switch (type) {
71
+ case 'NONE':
72
+ return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {});
73
+ case 'DESIGN1':
74
+ case 'DESIGN2':
75
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("svg", __assign({ viewBox: "0 0 48 48", style: { '--progress': 1 - progress } }, { children: (0, jsx_runtime_1.jsx)("circle", { cx: "24", cy: "24", r: "20" }) })), (0, jsx_runtime_1.jsx)("span", { children: "".concat(Math.ceil(leftTimeSec), "s") })] }));
76
+ default:
77
+ return (0, jsx_runtime_1.jsx)("div", { children: "Default Design" });
78
+ }
79
+ })() })));
103
80
  };
104
81
  exports.CustomProgressbar = CustomProgressbar;
105
- var S_ProgressWrapper = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n bottom: 16px;\n height: fit-content;\n left: 16px;\n padding: 5px;\n position: absolute;\n right: 16px;\n transform: ", ";\n transform-origin: ", ";\n width: max-content;\n z-index: 10;\n\n ", ";\n"], ["\n bottom: 16px;\n height: fit-content;\n left: 16px;\n padding: 5px;\n position: absolute;\n right: 16px;\n transform: ", ";\n transform-origin: ", ";\n width: max-content;\n z-index: 10;\n\n ", ";\n"])), function (_a) {
82
+ var S_Progress = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n padding: 5px;\n position: absolute;\n ", ";\n transform: ", ";\n transform-origin: ", ";\n width: max-content;\n z-index: 2;\n\n &.autoplay-progress {\n align-items: center;\n bottom: 16px;\n color: blue;\n display: flex;\n font-weight: bold;\n height: 48px;\n justify-content: center;\n position: absolute;\n right: 16px;\n width: 48px;\n z-index: 10;\n }\n\n &.autoplay-progress svg {\n --progress: 0;\n fill: none;\n height: 100%;\n left: 0;\n position: absolute;\n stroke: var(--swiper-theme-color);\n stroke-dasharray: 125.6;\n stroke-dashoffset: calc(125.6px * (1 - var(--progress)));\n stroke-width: 4px;\n top: 0px;\n transform: rotate(-90deg);\n width: 100%;\n z-index: 10;\n }\n"], ["\n padding: 5px;\n position: absolute;\n ", ";\n transform: ", ";\n transform-origin: ", ";\n width: max-content;\n z-index: 2;\n\n &.autoplay-progress {\n align-items: center;\n bottom: 16px;\n color: blue;\n display: flex;\n font-weight: bold;\n height: 48px;\n justify-content: center;\n position: absolute;\n right: 16px;\n width: 48px;\n z-index: 10;\n }\n\n &.autoplay-progress svg {\n --progress: 0;\n fill: none;\n height: 100%;\n left: 0;\n position: absolute;\n stroke: var(--swiper-theme-color);\n stroke-dasharray: 125.6;\n stroke-dashoffset: calc(125.6px * (1 - var(--progress)));\n stroke-width: 4px;\n top: 0px;\n transform: rotate(-90deg);\n width: 100%;\n z-index: 10;\n }\n"])), function (_a) {
83
+ var $offset = _a.$offset;
84
+ return (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", "\n ", "\n ", "\n ", "\n "], ["\n ", "\n ", "\n ", "\n ", "\n "])), $offset.top !== undefined ? "top: ".concat($offset.top, ";") : '', $offset.bottom !== undefined ? "bottom: ".concat($offset.bottom, ";") : '', $offset.left !== undefined ? "left: ".concat($offset.left, ";") : '', $offset.right !== undefined ? "right: ".concat($offset.right, ";") : '');
85
+ }, function (_a) {
106
86
  var _b, _c;
107
87
  var $size = _a.$size, $offset = _a.$offset;
108
88
  return "scale(".concat($size, ") translate(").concat((_b = $offset.translateX) !== null && _b !== void 0 ? _b : 0, "%, ").concat((_c = $offset.translateY) !== null && _c !== void 0 ? _c : 0, "%)");
109
89
  }, function (_a) {
110
90
  var $offset = _a.$offset;
111
91
  return $offset.transformOrigin || 'center center';
112
- }, function (_a) {
113
- var $offset = _a.$offset;
114
- return (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", "\n ", "\n ", "\n ", "\n "], ["\n ", "\n ", "\n ", "\n ", "\n "])), $offset.top !== undefined ? "top: ".concat($offset.top, ";") : '', $offset.bottom !== undefined ? "bottom: ".concat($offset.bottom, ";") : '', $offset.left !== undefined ? "left: ".concat($offset.left, ";") : '', $offset.right !== undefined ? "right: ".concat($offset.right, ";") : '');
115
92
  });
116
93
  exports.default = exports.CustomProgressbar;
117
94
  var templateObject_1, templateObject_2;