pds-dev-kit-web-test 2.5.444 → 2.5.447

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 (185) hide show
  1. package/dist/src/common/hooks/useTooltip.js +1 -1
  2. package/dist/src/common/services/i18n/resources/en.json +1 -29
  3. package/dist/src/common/services/i18n/resources/es.json +1 -28
  4. package/dist/src/common/services/i18n/resources/fil.json +1 -28
  5. package/dist/src/common/services/i18n/resources/index.d.ts +0 -194
  6. package/dist/src/common/services/i18n/resources/ja.json +1 -29
  7. package/dist/src/common/services/i18n/resources/ko.json +1 -29
  8. package/dist/src/common/services/i18n/resources/zh-cn.json +1 -29
  9. package/dist/src/common/services/i18n/resources/zh-tw.json +1 -29
  10. package/dist/src/common/styles/colorSet/index.d.ts +2 -2
  11. package/dist/src/common/styles/colorSet/index.js +2 -2
  12. package/dist/src/common/utils/SystemUIPositionGenerator/hoverTypeSystemUICssGenerator.js +1 -1
  13. package/dist/src/common/utils/dateHelper.d.ts +0 -3
  14. package/dist/src/common/utils/dateHelper.js +0 -37
  15. package/dist/src/desktop/components/BasicButtonGroup/BasicButtonGroup.js +1 -1
  16. package/dist/src/sub/DynamicLayout/CompositionEditor/CompositionEditor.d.ts +22 -0
  17. package/dist/src/sub/DynamicLayout/CompositionEditor/CompositionEditor.js +1133 -0
  18. package/dist/src/sub/DynamicLayout/CompositionRenderer/ComponentBlockMatcher.js +4 -1
  19. package/dist/src/sub/DynamicLayout/CompositionRenderer/Composition.d.ts +5 -3
  20. package/dist/src/sub/DynamicLayout/CompositionRenderer/Composition.js +53 -53
  21. package/dist/src/sub/DynamicLayout/CompositionRenderer/CompositionBackground.d.ts +11 -0
  22. package/dist/src/sub/DynamicLayout/CompositionRenderer/CompositionBackground.js +45 -0
  23. package/dist/src/sub/DynamicLayout/CompositionRenderer/createCompositions.d.ts +10 -0
  24. package/dist/src/sub/DynamicLayout/CompositionRenderer/createCompositions.js +79 -0
  25. package/dist/src/sub/DynamicLayout/DynamicLayout.d.ts +1 -1
  26. package/dist/src/sub/DynamicLayout/DynamicLayout.js +4 -2
  27. package/dist/src/sub/DynamicLayout/components/Section/sectionContext.d.ts +2 -2
  28. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/downIcons.d.ts +12 -0
  29. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/downIcons.js +76 -0
  30. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/index.d.ts +4 -0
  31. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/index.js +47 -0
  32. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/leftIcons.d.ts +12 -0
  33. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/leftIcons.js +76 -0
  34. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/rightIcons.d.ts +12 -0
  35. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/rightIcons.js +76 -0
  36. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/upIcons.d.ts +12 -0
  37. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/upIcons.js +76 -0
  38. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/index.d.ts +40 -0
  39. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/index.js +36 -177
  40. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/PaletteColor_Dark.json +152 -4
  41. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/PaletteColor_light.json +150 -2
  42. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/SemanticColor.json +45 -1
  43. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/UIColor.json +262 -9
  44. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/index.d.ts +593 -0
  45. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/ui-type.d.ts +253 -0
  46. package/dist/src/sub/DynamicLayout/components/pdsOriginal/desktop/IconButton/IconButton.d.ts +3 -1
  47. package/dist/src/sub/DynamicLayout/components/pdsOriginal/desktop/IconButton/IconButton.js +5 -3
  48. package/dist/src/sub/DynamicLayout/components/pdsOriginal/hybrid/Icon/Icon.d.ts +2 -1
  49. package/dist/src/sub/DynamicLayout/components/pdsOriginal/hybrid/Icon/Icon.js +9 -2
  50. package/dist/src/sub/DynamicLayout/compositionActionTypes.d.ts +139 -0
  51. package/dist/src/sub/DynamicLayout/compositionQueryContext.d.ts +8 -0
  52. package/dist/src/sub/DynamicLayout/compositionQueryContext.js +14 -0
  53. package/dist/src/sub/DynamicLayout/mock_composition.d.ts +3 -0
  54. package/dist/src/sub/DynamicLayout/mock_composition.js +1606 -0
  55. package/dist/src/sub/DynamicLayout/mock_contentsCarousel.d.ts +1 -0
  56. package/dist/src/sub/DynamicLayout/mock_contentsCarousel.js +1111 -0
  57. package/dist/src/sub/DynamicLayout/mock_contentsList.d.ts +1 -0
  58. package/dist/src/sub/DynamicLayout/mock_contentsList.js +1091 -0
  59. package/dist/src/sub/DynamicLayout/mock_queryData.d.ts +96 -0
  60. package/dist/src/sub/DynamicLayout/mock_queryData.js +2639 -0
  61. package/dist/src/sub/DynamicLayout/mock_slideBanner.d.ts +842 -0
  62. package/dist/src/sub/DynamicLayout/mock_slideBanner.js +854 -0
  63. package/dist/src/sub/DynamicLayout/mock_video.d.ts +368 -0
  64. package/dist/src/sub/DynamicLayout/mock_video.js +371 -0
  65. package/dist/src/sub/DynamicLayout/mocks.d.ts +8 -960
  66. package/dist/src/sub/DynamicLayout/mocks.js +4286 -6
  67. package/dist/src/sub/DynamicLayout/sectionActionTypes.d.ts +4 -4
  68. package/dist/src/sub/DynamicLayout/sections/CustomSection/CustomSection.d.ts +1 -1
  69. package/dist/src/sub/DynamicLayout/sections/CustomSection/CustomSection.js +6 -6
  70. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/ComponentBlockMatcher.js +13 -3
  71. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/Button.js +18 -2
  72. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarousel.d.ts +4 -4
  73. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarousel.js +121 -3
  74. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarouselCore.d.ts +12 -0
  75. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarouselCore.js +61 -0
  76. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigationNextBtn.d.ts +15 -0
  77. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigationNextBtn.js +69 -0
  78. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigationPrevBtn.d.ts +15 -0
  79. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigationPrevBtn.js +69 -0
  80. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomProgressbar.d.ts +9 -0
  81. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomProgressbar.js +87 -0
  82. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/navigationConfigs.d.ts +4 -0
  83. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/navigationConfigs.js +849 -0
  84. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/progressConfigs.d.ts +43 -0
  85. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/progressConfigs.js +162 -0
  86. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/contentsCarouselUtils.d.ts +39 -0
  87. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/contentsCarouselUtils.js +182 -0
  88. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/hooks/useFlexGridLayout.d.ts +25 -0
  89. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/hooks/useFlexGridLayout.js +234 -0
  90. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/hooks/useSwiper.d.ts +14 -0
  91. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/hooks/useSwiper.js +46 -0
  92. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/index.d.ts +1 -0
  93. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/index.js +8 -0
  94. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/types.d.ts +139 -0
  95. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/types.js +2 -0
  96. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsList.d.ts +8 -0
  97. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsList.js +190 -0
  98. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsListCore.d.ts +17 -0
  99. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsListCore.js +39 -0
  100. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/CustomPagination.d.ts +10 -0
  101. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/CustomPagination.js +85 -0
  102. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/paginationConfigs.d.ts +25 -0
  103. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/paginationConfigs.js +183 -0
  104. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/contentsListUtils.d.ts +29 -0
  105. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/contentsListUtils.js +128 -0
  106. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/hooks/useFlexGridLayout.d.ts +23 -0
  107. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/hooks/useFlexGridLayout.js +230 -0
  108. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/index.d.ts +1 -0
  109. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/index.js +8 -0
  110. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/types.d.ts +67 -0
  111. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/types.js +2 -0
  112. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Image/Image.js +39 -3
  113. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBanner.d.ts +8 -0
  114. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBanner.js +138 -0
  115. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBannerCore.d.ts +12 -0
  116. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBannerCore.js +39 -0
  117. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomNavigationNextBtn.d.ts +15 -0
  118. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomNavigationNextBtn.js +69 -0
  119. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomNavigationPrevBtn.d.ts +15 -0
  120. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomNavigationPrevBtn.js +69 -0
  121. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomPagination.d.ts +20 -0
  122. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomPagination.js +173 -0
  123. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomProgressbar.d.ts +9 -0
  124. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomProgressbar.js +87 -0
  125. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/navigationConfigs.d.ts +4 -0
  126. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/navigationConfigs.js +849 -0
  127. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/progressConfigs.d.ts +43 -0
  128. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/progressConfigs.js +162 -0
  129. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/hooks/useFlexGridLayout.d.ts +26 -0
  130. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/hooks/useFlexGridLayout.js +235 -0
  131. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/hooks/useSwiper.d.ts +16 -0
  132. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/hooks/useSwiper.js +63 -0
  133. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/index.d.ts +1 -0
  134. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/index.js +8 -0
  135. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/slideBannerUtils.d.ts +46 -0
  136. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/slideBannerUtils.js +186 -0
  137. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/types.d.ts +163 -0
  138. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/types.js +2 -0
  139. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text/Text.js +31 -7
  140. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/types.d.ts +45 -1
  141. package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/group.d.ts +1 -1
  142. package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/replaceUndefinedValues.js +1 -1
  143. package/dist/src/sub/DynamicLayout/sections/CustomSection/types.d.ts +27 -10
  144. package/dist/src/sub/DynamicLayout/sections/CustomSection/types.js +3 -1
  145. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/effectPropParsers/parseEffectPropEntAnim.d.ts +4 -4
  146. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/layoutPropParsers/parseLayoutPropPadding.d.ts +2 -2
  147. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseCompositionPlacement.d.ts +14 -0
  148. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseCompositionPlacement.js +26 -0
  149. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseJsonProperties.d.ts +2 -2
  150. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parsePlacement.d.ts +7 -2
  151. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parsePlacement.js +10 -5
  152. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseProperties.d.ts +2 -2
  153. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/types.d.ts +52 -3
  154. package/dist/src/sub/DynamicLayout/sections/FlexGridCustomSection.d.ts +1 -1
  155. package/dist/src/sub/DynamicLayout/sections/FlexGridCustomSection.js +1 -0
  156. package/dist/src/sub/DynamicLayout/types.d.ts +60 -17
  157. package/package.json +3 -2
  158. package/dist/src/desktop/components/Calendar/AllDaySchedulesSection.d.ts +0 -13
  159. package/dist/src/desktop/components/Calendar/AllDaySchedulesSection.js +0 -48
  160. package/dist/src/desktop/components/Calendar/Calendar.d.ts +0 -4
  161. package/dist/src/desktop/components/Calendar/Calendar.js +0 -379
  162. package/dist/src/desktop/components/Calendar/CurrentTimeIndicator.d.ts +0 -7
  163. package/dist/src/desktop/components/Calendar/CurrentTimeIndicator.js +0 -48
  164. package/dist/src/desktop/components/Calendar/DailyView.d.ts +0 -17
  165. package/dist/src/desktop/components/Calendar/DailyView.js +0 -82
  166. package/dist/src/desktop/components/Calendar/MonthlyView.d.ts +0 -26
  167. package/dist/src/desktop/components/Calendar/MonthlyView.js +0 -222
  168. package/dist/src/desktop/components/Calendar/ScheduleItem.d.ts +0 -16
  169. package/dist/src/desktop/components/Calendar/ScheduleItem.js +0 -49
  170. package/dist/src/desktop/components/Calendar/WeeklyView.d.ts +0 -21
  171. package/dist/src/desktop/components/Calendar/WeeklyView.js +0 -100
  172. package/dist/src/desktop/components/Calendar/YearlyView.d.ts +0 -11
  173. package/dist/src/desktop/components/Calendar/YearlyView.js +0 -71
  174. package/dist/src/desktop/components/Calendar/calendarUtils.d.ts +0 -24
  175. package/dist/src/desktop/components/Calendar/calendarUtils.js +0 -108
  176. package/dist/src/desktop/components/Calendar/constants.d.ts +0 -1
  177. package/dist/src/desktop/components/Calendar/constants.js +0 -31
  178. package/dist/src/desktop/components/Calendar/index.d.ts +0 -10
  179. package/dist/src/desktop/components/Calendar/index.js +0 -37
  180. package/dist/src/desktop/components/Calendar/timeFormatUtils.d.ts +0 -16
  181. package/dist/src/desktop/components/Calendar/timeFormatUtils.js +0 -45
  182. package/dist/src/desktop/components/Calendar/types.d.ts +0 -60
  183. package/dist/src/sub/DynamicLayout/CompositionRenderer/CompositionRenderer.d.ts +0 -6
  184. package/dist/src/sub/DynamicLayout/CompositionRenderer/CompositionRenderer.js +0 -27
  185. /package/dist/src/{desktop/components/Calendar/types.js → sub/DynamicLayout/compositionActionTypes.js} +0 -0
@@ -0,0 +1,43 @@
1
+ /// <reference types="react" />
2
+ export declare const ProgressDesign1: ({ progress, leftTimeSec, progressColor, bufferColor }: {
3
+ progress: number;
4
+ leftTimeSec: number;
5
+ progressColor?: string | undefined;
6
+ bufferColor?: string | undefined;
7
+ }) => JSX.Element;
8
+ export declare const ProgressDesign2: ({ progress, leftTimeSec, progressColor, bufferColor }: {
9
+ progress: number;
10
+ leftTimeSec: number;
11
+ progressColor?: string | undefined;
12
+ bufferColor?: string | undefined;
13
+ }) => JSX.Element;
14
+ export declare const ProgressDesign3: ({ progress, progressColor, bufferColor }: {
15
+ progress: number;
16
+ progressColor?: string | undefined;
17
+ bufferColor?: string | undefined;
18
+ }) => JSX.Element;
19
+ export declare const ProgressDesign4: ({ progress, progressColor, bufferColor }: {
20
+ progress: number;
21
+ progressColor?: string | undefined;
22
+ bufferColor?: string | undefined;
23
+ }) => JSX.Element;
24
+ export declare const ProgressDesign5: ({ progress, progressColor, bufferColor }: {
25
+ progress: number;
26
+ progressColor?: string | undefined;
27
+ bufferColor?: string | undefined;
28
+ }) => JSX.Element;
29
+ export declare const ProgressDesign6: ({ progress, progressColor, bufferColor }: {
30
+ progress: number;
31
+ progressColor?: string | undefined;
32
+ bufferColor?: string | undefined;
33
+ }) => JSX.Element;
34
+ export declare const ProgressDesign7: ({ progress, progressColor, bufferColor }: {
35
+ progress: number;
36
+ progressColor?: string | undefined;
37
+ bufferColor?: string | undefined;
38
+ }) => JSX.Element;
39
+ export declare const ProgressDesign8: ({ progress, progressColor, bufferColor }: {
40
+ progress: number;
41
+ progressColor?: string | undefined;
42
+ bufferColor?: string | undefined;
43
+ }) => JSX.Element;
@@ -0,0 +1,162 @@
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.ProgressDesign8 = exports.ProgressDesign7 = exports.ProgressDesign6 = exports.ProgressDesign5 = exports.ProgressDesign4 = exports.ProgressDesign3 = exports.ProgressDesign2 = exports.ProgressDesign1 = void 0;
22
+ var jsx_runtime_1 = require("react/jsx-runtime");
23
+ var styled_components_1 = __importDefault(require("styled-components"));
24
+ var ProgressDesign1 = function (_a) {
25
+ var progress = _a.progress, leftTimeSec = _a.leftTimeSec, progressColor = _a.progressColor, bufferColor = _a.bufferColor;
26
+ return ((0, jsx_runtime_1.jsxs)(S_ProgressDesign1, __assign({ barColor: progressColor, bgColor: bufferColor }, { children: [(0, jsx_runtime_1.jsxs)("svg", __assign({ viewBox: "0 0 48 48", style: {
27
+ '--progress': 1 - progress,
28
+ transition: 'all 0.03s ease-out'
29
+ } }, { children: [(0, jsx_runtime_1.jsx)("circle", { cx: "24", cy: "24", r: "20", className: "bg-circle" }), (0, jsx_runtime_1.jsx)("circle", { cx: "24", cy: "24", r: "20", className: "progress-circle" })] })), (0, jsx_runtime_1.jsx)("span", { children: Math.ceil(leftTimeSec) })] })));
30
+ };
31
+ exports.ProgressDesign1 = ProgressDesign1;
32
+ var ProgressDesign2 = function (_a) {
33
+ var progress = _a.progress, leftTimeSec = _a.leftTimeSec, progressColor = _a.progressColor, bufferColor = _a.bufferColor;
34
+ return ((0, jsx_runtime_1.jsxs)(S_ProgressDesign2, __assign({ barColor: progressColor, bgColor: bufferColor }, { children: [(0, jsx_runtime_1.jsxs)("svg", __assign({ viewBox: "0 0 48 48", style: {
35
+ '--progress': 1 - progress,
36
+ transition: 'all 0.03s linear'
37
+ } }, { children: [(0, jsx_runtime_1.jsx)("circle", { cx: "24", cy: "24", r: "20", className: "bg-circle" }), (0, jsx_runtime_1.jsx)("circle", { cx: "24", cy: "24", r: "20", className: "progress-circle" })] })), (0, jsx_runtime_1.jsx)("span", { children: Math.ceil(leftTimeSec) })] })));
38
+ };
39
+ exports.ProgressDesign2 = ProgressDesign2;
40
+ var ProgressDesign3 = function (_a) {
41
+ var progress = _a.progress, progressColor = _a.progressColor, bufferColor = _a.bufferColor;
42
+ return ((0, jsx_runtime_1.jsx)(S_ProgressDesign3, __assign({ barColor: progressColor, bgColor: bufferColor }, { children: (0, jsx_runtime_1.jsxs)("svg", __assign({ viewBox: "0 0 48 48", style: {
43
+ '--progress': 1 - progress,
44
+ transition: 'all 0.03s ease-out'
45
+ } }, { children: [(0, jsx_runtime_1.jsx)("circle", { cx: "24", cy: "24", r: "20", className: "bg-circle" }), (0, jsx_runtime_1.jsx)("circle", { cx: "24", cy: "24", r: "20", className: "progress-circle" })] })) })));
46
+ };
47
+ exports.ProgressDesign3 = ProgressDesign3;
48
+ var ProgressDesign4 = function (_a) {
49
+ var progress = _a.progress, progressColor = _a.progressColor, bufferColor = _a.bufferColor;
50
+ return ((0, jsx_runtime_1.jsx)(S_ProgressDesign4, __assign({ barColor: progressColor, bgColor: bufferColor }, { children: (0, jsx_runtime_1.jsxs)("svg", __assign({ viewBox: "0 0 48 48", style: {
51
+ '--progress': 1 - progress,
52
+ transition: 'all 0.03s linear'
53
+ } }, { children: [(0, jsx_runtime_1.jsx)("circle", { cx: "24", cy: "24", r: "20", className: "bg-circle" }), (0, jsx_runtime_1.jsx)("circle", { cx: "24", cy: "24", r: "20", className: "progress-circle" })] })) })));
54
+ };
55
+ exports.ProgressDesign4 = ProgressDesign4;
56
+ var ProgressDesign5 = function (_a) {
57
+ var progress = _a.progress, progressColor = _a.progressColor, bufferColor = _a.bufferColor;
58
+ return ((0, jsx_runtime_1.jsx)(S_ProgressDesign5, __assign({ barColor: progressColor, bgColor: bufferColor }, { children: (0, jsx_runtime_1.jsx)("div", __assign({ className: "progress-bar-container" }, { children: (0, jsx_runtime_1.jsx)("div", { className: "progress-bar-fill", style: {
59
+ '--progress': 1 - progress,
60
+ transition: 'all 0.03s ease-out'
61
+ } }) })) })));
62
+ };
63
+ exports.ProgressDesign5 = ProgressDesign5;
64
+ var ProgressDesign6 = function (_a) {
65
+ var progress = _a.progress, progressColor = _a.progressColor, bufferColor = _a.bufferColor;
66
+ return ((0, jsx_runtime_1.jsx)(S_ProgressDesign6, __assign({ barColor: progressColor, bgColor: bufferColor }, { children: (0, jsx_runtime_1.jsx)("div", __assign({ className: "progress-bar-container" }, { children: (0, jsx_runtime_1.jsx)("div", { className: "progress-bar-fill", style: {
67
+ '--progress': 1 - progress,
68
+ transition: 'all 0.03s ease-out'
69
+ } }) })) })));
70
+ };
71
+ exports.ProgressDesign6 = ProgressDesign6;
72
+ var ProgressDesign7 = function (_a) {
73
+ var progress = _a.progress, progressColor = _a.progressColor, bufferColor = _a.bufferColor;
74
+ return ((0, jsx_runtime_1.jsx)(S_ProgressDesign7, __assign({ barColor: progressColor, bgColor: bufferColor }, { children: (0, jsx_runtime_1.jsx)("div", __assign({ className: "progress-bar-container" }, { children: (0, jsx_runtime_1.jsx)("div", { className: "progress-bar-fill", style: {
75
+ '--progress': 1 - progress,
76
+ transition: 'all 0.03s ease-out'
77
+ } }) })) })));
78
+ };
79
+ exports.ProgressDesign7 = ProgressDesign7;
80
+ var ProgressDesign8 = function (_a) {
81
+ var progress = _a.progress, progressColor = _a.progressColor, bufferColor = _a.bufferColor;
82
+ return ((0, jsx_runtime_1.jsx)(S_ProgressDesign8, __assign({ barColor: progressColor, bgColor: bufferColor }, { children: (0, jsx_runtime_1.jsx)("div", __assign({ className: "progress-bar-container" }, { children: (0, jsx_runtime_1.jsx)("div", { className: "progress-bar-fill", style: {
83
+ '--progress': 1 - progress,
84
+ transition: 'all 0.03s ease-out'
85
+ } }) })) })));
86
+ };
87
+ exports.ProgressDesign8 = ProgressDesign8;
88
+ var S_ProgressDesign1 = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: center;\n color: ", ";\n display: flex;\n font-weight: bold;\n height: 48px;\n justify-content: center;\n position: relative;\n width: 48px;\n\n svg {\n --progress: 0;\n fill: none;\n height: calc(100% - 10px);\n left: 5px;\n position: absolute;\n stroke: ", ";\n stroke-dasharray: 125.6;\n stroke-dashoffset: calc(125.6px * (1 - var(--progress)));\n stroke-width: 4px;\n top: 5px;\n transform: rotate(-90deg);\n width: calc(100% - 10px);\n z-index: 10;\n\n .bg-circle {\n stroke: ", ";\n stroke-dasharray: none;\n stroke-width: 4px;\n }\n }\n"], ["\n align-items: center;\n color: ", ";\n display: flex;\n font-weight: bold;\n height: 48px;\n justify-content: center;\n position: relative;\n width: 48px;\n\n svg {\n --progress: 0;\n fill: none;\n height: calc(100% - 10px);\n left: 5px;\n position: absolute;\n stroke: ", ";\n stroke-dasharray: 125.6;\n stroke-dashoffset: calc(125.6px * (1 - var(--progress)));\n stroke-width: 4px;\n top: 5px;\n transform: rotate(-90deg);\n width: calc(100% - 10px);\n z-index: 10;\n\n .bg-circle {\n stroke: ", ";\n stroke-dasharray: none;\n stroke-width: 4px;\n }\n }\n"])), function (_a) {
89
+ var barColor = _a.barColor;
90
+ return barColor;
91
+ }, function (_a) {
92
+ var barColor = _a.barColor;
93
+ return barColor;
94
+ }, function (_a) {
95
+ var bgColor = _a.bgColor;
96
+ return bgColor;
97
+ });
98
+ var S_ProgressDesign2 = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n align-items: center;\n color: ", ";\n display: flex;\n font-weight: bold;\n height: 48px;\n justify-content: center;\n position: relative;\n width: 48px;\n\n svg {\n --progress: 0;\n fill: none;\n height: calc(100% - 10px);\n left: 5px;\n position: absolute;\n stroke: ", ";\n stroke-dasharray: 125.6;\n stroke-dashoffset: calc(125.6px * (1 - var(--progress)));\n stroke-width: 4px;\n top: 5px;\n transform: rotate(-90deg);\n width: calc(100% - 10px);\n z-index: 10;\n\n .bg-circle {\n stroke: ", ";\n stroke-dasharray: none;\n stroke-width: 4px;\n }\n }\n\n span {\n font-size: 11px;\n z-index: 11;\n }\n"], ["\n align-items: center;\n color: ", ";\n display: flex;\n font-weight: bold;\n height: 48px;\n justify-content: center;\n position: relative;\n width: 48px;\n\n svg {\n --progress: 0;\n fill: none;\n height: calc(100% - 10px);\n left: 5px;\n position: absolute;\n stroke: ", ";\n stroke-dasharray: 125.6;\n stroke-dashoffset: calc(125.6px * (1 - var(--progress)));\n stroke-width: 4px;\n top: 5px;\n transform: rotate(-90deg);\n width: calc(100% - 10px);\n z-index: 10;\n\n .bg-circle {\n stroke: ", ";\n stroke-dasharray: none;\n stroke-width: 4px;\n }\n }\n\n span {\n font-size: 11px;\n z-index: 11;\n }\n"])), function (_a) {
99
+ var barColor = _a.barColor;
100
+ return barColor;
101
+ }, function (_a) {
102
+ var barColor = _a.barColor;
103
+ return barColor;
104
+ }, function (_a) {
105
+ var bgColor = _a.bgColor;
106
+ return bgColor;
107
+ });
108
+ var S_ProgressDesign3 = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n align-items: center;\n color: ", ";\n display: flex;\n font-weight: bold;\n height: 48px;\n justify-content: center;\n position: relative;\n width: 48px;\n\n svg {\n --progress: 0;\n fill: none;\n height: calc(100% - 10px);\n left: 5px;\n position: absolute;\n stroke: ", ";\n stroke-dasharray: 125.6;\n stroke-dashoffset: calc(125.6px * (1 - var(--progress)));\n stroke-width: 4px;\n top: 5px;\n transform: rotate(-90deg);\n width: calc(100% - 10px);\n z-index: 10;\n\n .bg-circle {\n stroke: ", ";\n stroke-dasharray: none;\n stroke-width: 4px;\n }\n }\n"], ["\n align-items: center;\n color: ", ";\n display: flex;\n font-weight: bold;\n height: 48px;\n justify-content: center;\n position: relative;\n width: 48px;\n\n svg {\n --progress: 0;\n fill: none;\n height: calc(100% - 10px);\n left: 5px;\n position: absolute;\n stroke: ", ";\n stroke-dasharray: 125.6;\n stroke-dashoffset: calc(125.6px * (1 - var(--progress)));\n stroke-width: 4px;\n top: 5px;\n transform: rotate(-90deg);\n width: calc(100% - 10px);\n z-index: 10;\n\n .bg-circle {\n stroke: ", ";\n stroke-dasharray: none;\n stroke-width: 4px;\n }\n }\n"])), function (_a) {
109
+ var barColor = _a.barColor;
110
+ return barColor;
111
+ }, function (_a) {
112
+ var barColor = _a.barColor;
113
+ return barColor;
114
+ }, function (_a) {
115
+ var bgColor = _a.bgColor;
116
+ return bgColor;
117
+ });
118
+ var S_ProgressDesign4 = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n align-items: center;\n color: ", ";\n display: flex;\n font-weight: bold;\n height: 48px;\n justify-content: center;\n position: relative;\n width: 48px;\n\n svg {\n --progress: 0;\n fill: none;\n height: calc(100% - 10px);\n left: 5px;\n position: absolute;\n stroke: ", ";\n stroke-dasharray: 125.6;\n stroke-dashoffset: calc(125.6px * (1 - var(--progress)));\n stroke-width: 4px;\n top: 5px;\n transform: rotate(-90deg);\n width: calc(100% - 10px);\n z-index: 10;\n\n .bg-circle {\n stroke: ", ";\n stroke-dasharray: none;\n stroke-width: 4px;\n }\n }\n\n span {\n font-size: 11px;\n z-index: 11;\n }\n"], ["\n align-items: center;\n color: ", ";\n display: flex;\n font-weight: bold;\n height: 48px;\n justify-content: center;\n position: relative;\n width: 48px;\n\n svg {\n --progress: 0;\n fill: none;\n height: calc(100% - 10px);\n left: 5px;\n position: absolute;\n stroke: ", ";\n stroke-dasharray: 125.6;\n stroke-dashoffset: calc(125.6px * (1 - var(--progress)));\n stroke-width: 4px;\n top: 5px;\n transform: rotate(-90deg);\n width: calc(100% - 10px);\n z-index: 10;\n\n .bg-circle {\n stroke: ", ";\n stroke-dasharray: none;\n stroke-width: 4px;\n }\n }\n\n span {\n font-size: 11px;\n z-index: 11;\n }\n"])), function (_a) {
119
+ var barColor = _a.barColor;
120
+ return barColor;
121
+ }, function (_a) {
122
+ var barColor = _a.barColor;
123
+ return barColor;
124
+ }, function (_a) {
125
+ var bgColor = _a.bgColor;
126
+ return bgColor;
127
+ });
128
+ var S_ProgressDesign5 = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n align-items: center;\n color: ", ";\n display: flex;\n flex-direction: column;\n font-weight: bold;\n width: 80px;\n\n .progress-bar-container {\n background-color: rgba(255, 255, 255, 0.2);\n border-radius: 3px;\n height: 6px;\n overflow: hidden;\n position: relative;\n width: 100%;\n }\n\n .progress-bar-fill {\n background-color: ", ";\n border-radius: 3px;\n height: 100%;\n transition: width 0.1s ease-out;\n width: calc(var(--progress) * 100%);\n }\n"], ["\n align-items: center;\n color: ", ";\n display: flex;\n flex-direction: column;\n font-weight: bold;\n width: 80px;\n\n .progress-bar-container {\n background-color: rgba(255, 255, 255, 0.2);\n border-radius: 3px;\n height: 6px;\n overflow: hidden;\n position: relative;\n width: 100%;\n }\n\n .progress-bar-fill {\n background-color: ", ";\n border-radius: 3px;\n height: 100%;\n transition: width 0.1s ease-out;\n width: calc(var(--progress) * 100%);\n }\n"])), function (_a) {
129
+ var barColor = _a.barColor;
130
+ return barColor;
131
+ }, function (_a) {
132
+ var barColor = _a.barColor;
133
+ return barColor;
134
+ });
135
+ var S_ProgressDesign6 = styled_components_1.default.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n align-items: center;\n color: ", ";\n display: flex;\n flex-direction: column;\n font-weight: bold;\n width: 80px;\n\n .progress-bar-container {\n background-color: rgba(0, 0, 0, 0.2);\n border-radius: 3px;\n height: 6px;\n overflow: hidden;\n position: relative;\n width: 100%;\n }\n\n .progress-bar-fill {\n background-color: ", ";\n border-radius: 3px;\n height: 100%;\n transition: width 0.1s ease-out;\n width: calc(var(--progress) * 100%);\n }\n"], ["\n align-items: center;\n color: ", ";\n display: flex;\n flex-direction: column;\n font-weight: bold;\n width: 80px;\n\n .progress-bar-container {\n background-color: rgba(0, 0, 0, 0.2);\n border-radius: 3px;\n height: 6px;\n overflow: hidden;\n position: relative;\n width: 100%;\n }\n\n .progress-bar-fill {\n background-color: ", ";\n border-radius: 3px;\n height: 100%;\n transition: width 0.1s ease-out;\n width: calc(var(--progress) * 100%);\n }\n"])), function (_a) {
136
+ var bgColor = _a.bgColor;
137
+ return bgColor;
138
+ }, function (_a) {
139
+ var bgColor = _a.bgColor;
140
+ return bgColor;
141
+ });
142
+ var S_ProgressDesign7 = styled_components_1.default.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n align-items: center;\n color: ", ";\n display: flex;\n flex-direction: column;\n font-weight: bold;\n width: 80px;\n\n .progress-bar-container {\n background-color: ", ";\n height: 6px;\n overflow: hidden;\n position: relative;\n width: 100%;\n }\n\n .progress-bar-fill {\n background-color: ", ";\n height: 100%;\n transition: width 0.1s ease-out;\n width: calc(var(--progress) * 100%);\n }\n"], ["\n align-items: center;\n color: ", ";\n display: flex;\n flex-direction: column;\n font-weight: bold;\n width: 80px;\n\n .progress-bar-container {\n background-color: ", ";\n height: 6px;\n overflow: hidden;\n position: relative;\n width: 100%;\n }\n\n .progress-bar-fill {\n background-color: ", ";\n height: 100%;\n transition: width 0.1s ease-out;\n width: calc(var(--progress) * 100%);\n }\n"])), function (_a) {
143
+ var barColor = _a.barColor;
144
+ return barColor;
145
+ }, function (_a) {
146
+ var bgColor = _a.bgColor;
147
+ return bgColor;
148
+ }, function (_a) {
149
+ var barColor = _a.barColor;
150
+ return barColor;
151
+ });
152
+ var S_ProgressDesign8 = styled_components_1.default.div(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n align-items: center;\n color: ", ";\n display: flex;\n flex-direction: column;\n font-weight: bold;\n width: 80px;\n\n .progress-bar-container {\n background-color: ", ";\n height: 6px;\n overflow: hidden;\n position: relative;\n width: 100%;\n }\n\n .progress-bar-fill {\n background-color: ", ";\n height: 100%;\n transition: width 0.1s ease-out;\n width: calc(var(--progress) * 100%);\n }\n"], ["\n align-items: center;\n color: ", ";\n display: flex;\n flex-direction: column;\n font-weight: bold;\n width: 80px;\n\n .progress-bar-container {\n background-color: ", ";\n height: 6px;\n overflow: hidden;\n position: relative;\n width: 100%;\n }\n\n .progress-bar-fill {\n background-color: ", ";\n height: 100%;\n transition: width 0.1s ease-out;\n width: calc(var(--progress) * 100%);\n }\n"])), function (_a) {
153
+ var barColor = _a.barColor;
154
+ return barColor;
155
+ }, function (_a) {
156
+ var bgColor = _a.bgColor;
157
+ return bgColor;
158
+ }, function (_a) {
159
+ var barColor = _a.barColor;
160
+ return barColor;
161
+ });
162
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8;
@@ -0,0 +1,26 @@
1
+ /// <reference types="react" />
2
+ import type { INSET_POSTIION, OUTSET_POSTIION } from '../types';
3
+ import type { CSSProperties } from 'styled-components';
4
+ type ElementsProps = {
5
+ type: string;
6
+ position: OUTSET_POSTIION | INSET_POSTIION;
7
+ };
8
+ export declare const useFlexGridLayout: ({ prevBtnLocation, nextBtnLocation, paginationLocation, progressBarLocation }: {
9
+ prevBtnLocation: OUTSET_POSTIION | INSET_POSTIION;
10
+ nextBtnLocation: OUTSET_POSTIION | INSET_POSTIION;
11
+ paginationLocation: OUTSET_POSTIION | INSET_POSTIION;
12
+ progressBarLocation: OUTSET_POSTIION | INSET_POSTIION;
13
+ }) => {
14
+ layoutRef: import("react").MutableRefObject<HTMLDivElement | null>;
15
+ positionRefs: import("react").MutableRefObject<Record<string, HTMLDivElement | null>>;
16
+ ccbInset: {
17
+ top: string;
18
+ right: string;
19
+ bottom: string;
20
+ left: string;
21
+ };
22
+ componentGroups: Record<string, ElementsProps[]>;
23
+ getPositionStyle: (position: string, ccbInset: Record<string, string>) => CSSProperties;
24
+ getComponentGroupLayout: (components: ElementsProps[], position: string) => CSSProperties;
25
+ };
26
+ export {};
@@ -0,0 +1,235 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.useFlexGridLayout = void 0;
15
+ var react_1 = require("react");
16
+ var useFlexGridLayout = function (_a) {
17
+ var prevBtnLocation = _a.prevBtnLocation, nextBtnLocation = _a.nextBtnLocation, paginationLocation = _a.paginationLocation, progressBarLocation = _a.progressBarLocation;
18
+ var _b = (0, react_1.useState)({ top: 0, right: 0, bottom: 0, left: 0 }), groupSizes = _b[0], setGroupSizes = _b[1];
19
+ var _c = (0, react_1.useState)({ width: 0, height: 0 }), layoutSize = _c[0], setLayoutSize = _c[1];
20
+ var layoutRef = (0, react_1.useRef)(null);
21
+ var positionRefs = (0, react_1.useRef)({});
22
+ var components = [
23
+ { type: 'PREV', position: prevBtnLocation },
24
+ { type: 'NEXT', position: nextBtnLocation },
25
+ { type: 'PAGINATION', position: paginationLocation },
26
+ { type: 'PROGRESSBAR', position: progressBarLocation }
27
+ ];
28
+ // 위치별로 컴포넌트 그룹화
29
+ var getComponentsByPosition = function () {
30
+ var groups = {};
31
+ components.forEach(function (component) {
32
+ if (!groups[component.position]) {
33
+ groups[component.position] = [];
34
+ }
35
+ groups[component.position].push(component);
36
+ });
37
+ return groups;
38
+ };
39
+ var componentGroups = getComponentsByPosition();
40
+ var GAP = 8;
41
+ // 위치가 어느 방향인지 판단
42
+ var getPositionDirection = function (position) {
43
+ var directions = {
44
+ OUTSET1: 'top',
45
+ OUTSET2: 'top',
46
+ OUTSET3: 'top',
47
+ OUTSET4: 'right',
48
+ OUTSET5: 'right',
49
+ OUTSET6: 'right',
50
+ OUTSET7: 'bottom',
51
+ OUTSET8: 'bottom',
52
+ OUTSET9: 'bottom',
53
+ OUTSET10: 'left',
54
+ OUTSET11: 'left',
55
+ OUTSET12: 'left',
56
+ // INSET은 CCB 내부이므로 방향 개념 없음
57
+ INSET1: 'none',
58
+ INSET2: 'none',
59
+ INSET3: 'none',
60
+ INSET4: 'none',
61
+ INSET5: 'none',
62
+ INSET6: 'none',
63
+ INSET7: 'none',
64
+ INSET8: 'none'
65
+ };
66
+ return directions[position];
67
+ };
68
+ // 위치에 따른 스타일 결정 (CCB 크기를 고려)
69
+ var getPositionStyle = function (position, ccbInset) {
70
+ var base = {
71
+ position: 'absolute',
72
+ display: 'flex',
73
+ alignItems: 'center',
74
+ justifyContent: 'center'
75
+ };
76
+ // CCB의 중앙 위치 계산
77
+ var ccbTop = parseFloat(ccbInset.top) || 0;
78
+ var ccbRight = parseFloat(ccbInset.right) || 0;
79
+ var ccbBottom = parseFloat(ccbInset.bottom) || 0;
80
+ var ccbLeft = parseFloat(ccbInset.left) || 0;
81
+ // CCB의 실제 크기와 중앙 위치 계산
82
+ var ccbWidth = layoutSize.width - ccbLeft - ccbRight;
83
+ var ccbHeight = layoutSize.height - ccbTop - ccbBottom;
84
+ var ccbCenterX = ccbLeft + ccbWidth / 2;
85
+ var ccbCenterY = ccbTop + ccbHeight / 2;
86
+ var positions = {
87
+ OUTSET1: { top: 0, left: ccbLeft },
88
+ OUTSET2: { top: 0, left: "".concat(ccbCenterX, "px"), transform: 'translateX(-50%)' },
89
+ OUTSET3: { top: 0, right: ccbRight },
90
+ OUTSET4: { top: ccbTop, right: 0 },
91
+ OUTSET5: { top: "".concat(ccbCenterY, "px"), right: 0, transform: 'translateY(-50%)' },
92
+ OUTSET6: { bottom: ccbBottom, right: 0 },
93
+ OUTSET7: { bottom: 0, right: ccbRight },
94
+ OUTSET8: { bottom: 0, left: "".concat(ccbCenterX, "px"), transform: 'translateX(-50%)' },
95
+ OUTSET9: { bottom: 0, left: ccbLeft },
96
+ OUTSET10: { bottom: ccbBottom, left: 0 },
97
+ OUTSET11: { top: "".concat(ccbCenterY, "px"), left: 0, transform: 'translateY(-50%)' },
98
+ OUTSET12: { top: ccbTop, left: 0 },
99
+ INSET1: { top: ccbTop + GAP, left: ccbLeft + GAP },
100
+ INSET2: { top: ccbTop + GAP, left: "".concat(ccbCenterX, "px"), transform: 'translateX(-50%)' },
101
+ INSET3: { top: ccbTop + GAP, right: ccbRight + GAP },
102
+ INSET4: { top: "".concat(ccbCenterY, "px"), right: ccbRight + GAP, transform: 'translateY(-50%)' },
103
+ INSET5: { bottom: ccbBottom + GAP, right: ccbRight + GAP },
104
+ INSET6: {
105
+ bottom: ccbBottom + GAP,
106
+ left: "".concat(ccbCenterX, "px"),
107
+ transform: 'translateX(-50%)'
108
+ },
109
+ INSET7: { bottom: ccbBottom + GAP, left: ccbLeft + GAP },
110
+ INSET8: { top: "".concat(ccbCenterY, "px"), left: ccbLeft + GAP, transform: 'translateY(-50%)' }
111
+ };
112
+ return __assign(__assign({}, base), positions[position]);
113
+ };
114
+ // 컴포넌트 그룹 레이아웃
115
+ var getComponentGroupLayout = function (components, position) {
116
+ var count = components.length;
117
+ var horizontals = [
118
+ 'OUTSET1',
119
+ 'OUTSET2',
120
+ 'OUTSET3',
121
+ 'OUTSET7',
122
+ 'OUTSET8',
123
+ 'OUTSET9',
124
+ 'INSET1',
125
+ 'INSET2',
126
+ 'INSET3',
127
+ 'INSET5',
128
+ 'INSET6',
129
+ 'INSET7'
130
+ ];
131
+ var isHorizontal = horizontals.includes(position);
132
+ if (count === 1) {
133
+ return { display: 'block' };
134
+ }
135
+ return {
136
+ display: 'flex',
137
+ flexDirection: isHorizontal ? 'row' : 'column',
138
+ gap: '8px',
139
+ alignItems: 'center'
140
+ };
141
+ };
142
+ // ccbInset 계산
143
+ var ccbInset = (0, react_1.useMemo)(function () {
144
+ return {
145
+ top: groupSizes.top > 0 ? "".concat(groupSizes.top + GAP, "px") : '0',
146
+ right: groupSizes.right > 0 ? "".concat(groupSizes.right + GAP, "px") : '0',
147
+ bottom: groupSizes.bottom > 0 ? "".concat(groupSizes.bottom + GAP, "px") : '0',
148
+ left: groupSizes.left > 0 ? "".concat(groupSizes.left + GAP, "px") : '0'
149
+ };
150
+ }, [groupSizes]);
151
+ // 레이아웃 크기 측정
152
+ (0, react_1.useEffect)(function () {
153
+ var measureLayout = function () {
154
+ if (layoutRef.current) {
155
+ var _a = layoutRef.current.getBoundingClientRect(), width_1 = _a.width, height_1 = _a.height;
156
+ setLayoutSize(function (prevSize) {
157
+ if (prevSize.width !== width_1 || prevSize.height !== height_1) {
158
+ return { width: width_1, height: height_1 };
159
+ }
160
+ return prevSize;
161
+ });
162
+ }
163
+ };
164
+ measureLayout();
165
+ var resizeObserver = new ResizeObserver(measureLayout);
166
+ if (layoutRef.current) {
167
+ resizeObserver.observe(layoutRef.current);
168
+ }
169
+ return function () {
170
+ resizeObserver.disconnect();
171
+ };
172
+ }, []);
173
+ // 컴포넌트 그룹의 크기 측정
174
+ (0, react_1.useEffect)(function () {
175
+ var measureGroups = function () {
176
+ var newSizes = {
177
+ top: 0,
178
+ right: 0,
179
+ bottom: 0,
180
+ left: 0
181
+ };
182
+ Object.entries(positionRefs.current).forEach(function (_a) {
183
+ var position = _a[0], ref = _a[1];
184
+ if (ref && ref.offsetHeight && ref.offsetWidth) {
185
+ var direction = getPositionDirection(position);
186
+ // INSET은 CCB 크기 계산에 영향을 주지 않음
187
+ if (direction !== 'none') {
188
+ var size = direction === 'top' || direction === 'bottom' ? ref.offsetHeight : ref.offsetWidth;
189
+ newSizes[direction] = Math.max(newSizes[direction], size);
190
+ }
191
+ }
192
+ });
193
+ // 실제로 크기가 변경되었을 때만 업데이트
194
+ setGroupSizes(function (prevSizes) {
195
+ if (prevSizes.top !== newSizes.top ||
196
+ prevSizes.right !== newSizes.right ||
197
+ prevSizes.bottom !== newSizes.bottom ||
198
+ prevSizes.left !== newSizes.left) {
199
+ return newSizes;
200
+ }
201
+ return prevSizes;
202
+ });
203
+ };
204
+ // 초기 측정을 위한 타이머
205
+ var timeoutId = setTimeout(function () {
206
+ measureGroups();
207
+ }, 0);
208
+ // ResizeObserver 설정
209
+ var resizeObserver = new ResizeObserver(function (entries) {
210
+ // 크기 변경이 실제로 일어났을 때만 측정
211
+ if (entries.length > 0) {
212
+ measureGroups();
213
+ }
214
+ });
215
+ // 현재 존재하는 ref들에 observer 연결
216
+ Object.values(positionRefs.current).forEach(function (ref) {
217
+ if (ref) {
218
+ resizeObserver.observe(ref);
219
+ }
220
+ });
221
+ return function () {
222
+ clearTimeout(timeoutId);
223
+ resizeObserver.disconnect();
224
+ };
225
+ }, [componentGroups]);
226
+ return {
227
+ layoutRef: layoutRef,
228
+ positionRefs: positionRefs,
229
+ ccbInset: ccbInset,
230
+ componentGroups: componentGroups,
231
+ getPositionStyle: getPositionStyle,
232
+ getComponentGroupLayout: getComponentGroupLayout
233
+ };
234
+ };
235
+ exports.useFlexGridLayout = useFlexGridLayout;
@@ -0,0 +1,16 @@
1
+ /// <reference types="react" />
2
+ import type { SwiperClass, SwiperRef } from 'swiper/react';
3
+ export declare function useSwiper(): {
4
+ swiperRef: import("react").MutableRefObject<SwiperRef | null>;
5
+ progressRef: import("react").MutableRefObject<number>;
6
+ leftTimeMsRef: import("react").MutableRefObject<number>;
7
+ currentSlide: number;
8
+ isBeginning: boolean;
9
+ isEnd: boolean;
10
+ onSwiper: (swiper: SwiperClass) => void;
11
+ onSlideChangeTransitionEnd: (swiper: SwiperClass) => void;
12
+ onAutoplayTimeLeft: (_: SwiperClass, time: number, progress: number) => void;
13
+ onClickBullet: (index: number) => void;
14
+ onClickPrevBtn: () => void;
15
+ onClickNextBtn: () => void;
16
+ };
@@ -0,0 +1,63 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.useSwiper = void 0;
4
+ var react_1 = require("react");
5
+ function useSwiper() {
6
+ var _a = (0, react_1.useState)(1), currentSlide = _a[0], setCurrentSlide = _a[1];
7
+ var _b = (0, react_1.useState)(true), isBeginning = _b[0], setIsBeginning = _b[1];
8
+ var _c = (0, react_1.useState)(false), isEnd = _c[0], setIsEnd = _c[1];
9
+ var progressRef = (0, react_1.useRef)(0);
10
+ var leftTimeMsRef = (0, react_1.useRef)(0);
11
+ var swiperRef = (0, react_1.useRef)(null);
12
+ var onSwiper = function (swiper) {
13
+ setIsBeginning(swiper.isBeginning);
14
+ setIsEnd(swiper.isEnd);
15
+ };
16
+ var onSlideChangeTransitionEnd = function (swiper) {
17
+ var isLoop = swiper.params.loop || false;
18
+ setIsBeginning(swiper.isBeginning);
19
+ setIsEnd(swiper.isEnd);
20
+ if (isLoop) {
21
+ // loop 모드에서는 realIndex가 실제 슬라이드 인덱스
22
+ setCurrentSlide(swiper.realIndex + 1);
23
+ }
24
+ else {
25
+ // loop가 꺼져있을 때는 activeIndex 사용
26
+ setCurrentSlide(swiper.activeIndex + 1);
27
+ }
28
+ };
29
+ var onAutoplayTimeLeft = (0, react_1.useCallback)(function (_, time, progress) {
30
+ leftTimeMsRef.current = time;
31
+ progressRef.current = progress;
32
+ }, []);
33
+ var onClickBullet = function (index) {
34
+ if (swiperRef.current) {
35
+ swiperRef.current.swiper.slideTo(index);
36
+ }
37
+ };
38
+ var onClickPrevBtn = function () {
39
+ if (swiperRef.current) {
40
+ swiperRef.current.swiper.slidePrev();
41
+ }
42
+ };
43
+ var onClickNextBtn = function () {
44
+ if (swiperRef.current) {
45
+ swiperRef.current.swiper.slideNext();
46
+ }
47
+ };
48
+ return {
49
+ swiperRef: swiperRef,
50
+ progressRef: progressRef,
51
+ leftTimeMsRef: leftTimeMsRef,
52
+ currentSlide: currentSlide,
53
+ isBeginning: isBeginning,
54
+ isEnd: isEnd,
55
+ onSwiper: onSwiper,
56
+ onSlideChangeTransitionEnd: onSlideChangeTransitionEnd,
57
+ onAutoplayTimeLeft: onAutoplayTimeLeft,
58
+ onClickBullet: onClickBullet,
59
+ onClickPrevBtn: onClickPrevBtn,
60
+ onClickNextBtn: onClickNextBtn
61
+ };
62
+ }
63
+ exports.useSwiper = useSwiper;
@@ -0,0 +1 @@
1
+ export { default as SlideBanner } from './SlideBanner';
@@ -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.SlideBanner = void 0;
7
+ var SlideBanner_1 = require("./SlideBanner");
8
+ Object.defineProperty(exports, "SlideBanner", { enumerable: true, get: function () { return __importDefault(SlideBanner_1).default; } });
@@ -0,0 +1,46 @@
1
+ import type { CB_STYLE_PROP_SLIDEBANNER_SPECS, SlideBannerPropsKeys, CoreSlideBannerProps, CustomNavigationProps, CustomProgressbarProps, CustomPaginationProps } from './types';
2
+ import type { Device } from '../../../../../../../DynamicLayout/sections/CustomSection/util/types';
3
+ import type { css } from 'styled-components';
4
+ type ParseSlideBannerStyleToSlideBannerCoreProps = {
5
+ props: CB_STYLE_PROP_SLIDEBANNER_SPECS;
6
+ device: Device;
7
+ };
8
+ type ParseSlideBannerStyleToCustomPaginationProps = {
9
+ props: CB_STYLE_PROP_SLIDEBANNER_SPECS;
10
+ device: Device;
11
+ };
12
+ type ParseSlideBannerStyleToCustomNavigationProps = {
13
+ props: CB_STYLE_PROP_SLIDEBANNER_SPECS;
14
+ device: Device;
15
+ };
16
+ type ParseSlideBannerStyleToCustomProgressbarProps = {
17
+ props: CB_STYLE_PROP_SLIDEBANNER_SPECS;
18
+ device: Device;
19
+ };
20
+ export declare function getSlideBannerCorePropKey(key: SlideBannerPropsKeys): keyof (CoreSlideBannerProps & {
21
+ customStyle?: ReturnType<typeof css>;
22
+ }) | null;
23
+ export declare function getCustomNavigationPropKey(key: SlideBannerPropsKeys): keyof CustomNavigationProps | null;
24
+ export declare function getCustomProgressbarPropKey(key: SlideBannerPropsKeys): keyof CustomProgressbarProps | null;
25
+ export declare function getCustomPaginationPropKey(key: SlideBannerPropsKeys): keyof CustomPaginationProps | null;
26
+ export declare function parseSlideBannerStyleToSlideBannerCoreProp({ props, device }: ParseSlideBannerStyleToSlideBannerCoreProps): {
27
+ normalStyle: CoreSlideBannerProps & {
28
+ customStyle?: ReturnType<typeof css>;
29
+ };
30
+ hoverStyle: CoreSlideBannerProps & {
31
+ customStyle?: ReturnType<typeof css>;
32
+ };
33
+ };
34
+ export declare function parseSlideBannerStyleToCustomPaginationProp({ props, device }: ParseSlideBannerStyleToCustomPaginationProps): {
35
+ normalStyle: CustomPaginationProps;
36
+ hoverStyle: CustomPaginationProps;
37
+ };
38
+ export declare function parseSlideBannerStyleToCustomNavigationProp({ props, device }: ParseSlideBannerStyleToCustomNavigationProps): {
39
+ normalStyle: CustomNavigationProps;
40
+ hoverStyle: CustomNavigationProps;
41
+ };
42
+ export declare function parseSlideBannerStyleToCustomProgressbarProp({ props, device }: ParseSlideBannerStyleToCustomProgressbarProps): {
43
+ normalStyle: CustomProgressbarProps;
44
+ hoverStyle: CustomProgressbarProps;
45
+ };
46
+ export {};