pds-dev-kit-web-test 2.5.439 → 2.5.440

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 +29 -1
  3. package/dist/src/common/services/i18n/resources/es.json +28 -1
  4. package/dist/src/common/services/i18n/resources/fil.json +28 -1
  5. package/dist/src/common/services/i18n/resources/index.d.ts +194 -0
  6. package/dist/src/common/services/i18n/resources/ja.json +29 -1
  7. package/dist/src/common/services/i18n/resources/ko.json +29 -1
  8. package/dist/src/common/services/i18n/resources/zh-cn.json +29 -1
  9. package/dist/src/common/services/i18n/resources/zh-tw.json +29 -1
  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 +3 -0
  14. package/dist/src/common/utils/dateHelper.js +37 -0
  15. package/dist/src/desktop/components/BasicButtonGroup/BasicButtonGroup.js +1 -1
  16. package/dist/src/desktop/components/Calendar/AllDaySchedulesSection.d.ts +13 -0
  17. package/dist/src/desktop/components/Calendar/AllDaySchedulesSection.js +48 -0
  18. package/dist/src/desktop/components/Calendar/Calendar.d.ts +4 -0
  19. package/dist/src/desktop/components/Calendar/Calendar.js +365 -0
  20. package/dist/src/desktop/components/Calendar/CurrentTimeIndicator.d.ts +7 -0
  21. package/dist/src/desktop/components/Calendar/CurrentTimeIndicator.js +48 -0
  22. package/dist/src/desktop/components/Calendar/DailyView.d.ts +17 -0
  23. package/dist/src/desktop/components/Calendar/DailyView.js +82 -0
  24. package/dist/src/desktop/components/Calendar/MonthlyView.d.ts +26 -0
  25. package/dist/src/desktop/components/Calendar/MonthlyView.js +222 -0
  26. package/dist/src/desktop/components/Calendar/ScheduleItem.d.ts +16 -0
  27. package/dist/src/desktop/components/Calendar/ScheduleItem.js +49 -0
  28. package/dist/src/desktop/components/Calendar/WeeklyView.d.ts +21 -0
  29. package/dist/src/desktop/components/Calendar/WeeklyView.js +100 -0
  30. package/dist/src/desktop/components/Calendar/YearlyView.d.ts +11 -0
  31. package/dist/src/desktop/components/Calendar/YearlyView.js +71 -0
  32. package/dist/src/desktop/components/Calendar/calendarUtils.d.ts +23 -0
  33. package/dist/src/desktop/components/Calendar/calendarUtils.js +101 -0
  34. package/dist/src/desktop/components/Calendar/constants.d.ts +1 -0
  35. package/dist/src/desktop/components/Calendar/constants.js +31 -0
  36. package/dist/src/desktop/components/Calendar/index.d.ts +10 -0
  37. package/dist/src/desktop/components/Calendar/index.js +37 -0
  38. package/dist/src/desktop/components/Calendar/timeFormatUtils.d.ts +16 -0
  39. package/dist/src/desktop/components/Calendar/timeFormatUtils.js +45 -0
  40. package/dist/src/desktop/components/Calendar/types.d.ts +60 -0
  41. package/dist/src/sub/DynamicLayout/CompositionRenderer/ComponentBlockMatcher.js +1 -4
  42. package/dist/src/sub/DynamicLayout/CompositionRenderer/Composition.d.ts +3 -5
  43. package/dist/src/sub/DynamicLayout/CompositionRenderer/Composition.js +53 -53
  44. package/dist/src/sub/DynamicLayout/CompositionRenderer/CompositionRenderer.d.ts +6 -0
  45. package/dist/src/sub/DynamicLayout/CompositionRenderer/CompositionRenderer.js +27 -0
  46. package/dist/src/sub/DynamicLayout/DynamicLayout.d.ts +1 -1
  47. package/dist/src/sub/DynamicLayout/DynamicLayout.js +2 -3
  48. package/dist/src/sub/DynamicLayout/components/Section/sectionContext.d.ts +2 -2
  49. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/index.d.ts +0 -40
  50. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/index.js +177 -36
  51. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/PaletteColor_Dark.json +4 -152
  52. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/PaletteColor_light.json +2 -150
  53. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/SemanticColor.json +1 -45
  54. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/UIColor.json +9 -262
  55. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/index.d.ts +0 -593
  56. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/ui-type.d.ts +0 -253
  57. package/dist/src/sub/DynamicLayout/components/pdsOriginal/desktop/IconButton/IconButton.d.ts +1 -3
  58. package/dist/src/sub/DynamicLayout/components/pdsOriginal/desktop/IconButton/IconButton.js +3 -5
  59. package/dist/src/sub/DynamicLayout/components/pdsOriginal/hybrid/Icon/Icon.d.ts +1 -2
  60. package/dist/src/sub/DynamicLayout/components/pdsOriginal/hybrid/Icon/Icon.js +2 -9
  61. package/dist/src/sub/DynamicLayout/mocks.d.ts +960 -8
  62. package/dist/src/sub/DynamicLayout/mocks.js +6 -4286
  63. package/dist/src/sub/DynamicLayout/sectionActionTypes.d.ts +4 -4
  64. package/dist/src/sub/DynamicLayout/sections/CustomSection/CustomSection.d.ts +1 -1
  65. package/dist/src/sub/DynamicLayout/sections/CustomSection/CustomSection.js +4 -4
  66. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/ComponentBlockMatcher.js +3 -13
  67. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/Button.js +2 -18
  68. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarousel.d.ts +4 -4
  69. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarousel.js +3 -121
  70. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Image/Image.js +3 -39
  71. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text/Text.js +7 -31
  72. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/types.d.ts +1 -45
  73. package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/group.d.ts +1 -1
  74. package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/replaceUndefinedValues.js +1 -1
  75. package/dist/src/sub/DynamicLayout/sections/CustomSection/types.d.ts +10 -27
  76. package/dist/src/sub/DynamicLayout/sections/CustomSection/types.js +1 -3
  77. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/effectPropParsers/parseEffectPropEntAnim.d.ts +4 -4
  78. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/layoutPropParsers/parseLayoutPropPadding.d.ts +2 -2
  79. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseJsonProperties.d.ts +2 -2
  80. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parsePlacement.d.ts +1 -1
  81. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parsePlacement.js +2 -2
  82. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseProperties.d.ts +2 -2
  83. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/types.d.ts +3 -52
  84. package/dist/src/sub/DynamicLayout/sections/FlexGridCustomSection.d.ts +1 -1
  85. package/dist/src/sub/DynamicLayout/sections/FlexGridCustomSection.js +0 -1
  86. package/dist/src/sub/DynamicLayout/types.d.ts +16 -49
  87. package/package.json +2 -3
  88. package/dist/src/sub/DynamicLayout/CompositionEditor/CompositionEditor.d.ts +0 -21
  89. package/dist/src/sub/DynamicLayout/CompositionEditor/CompositionEditor.js +0 -1133
  90. package/dist/src/sub/DynamicLayout/CompositionRenderer/CompositionBackground.d.ts +0 -11
  91. package/dist/src/sub/DynamicLayout/CompositionRenderer/CompositionBackground.js +0 -45
  92. package/dist/src/sub/DynamicLayout/CompositionRenderer/createCompositions.d.ts +0 -10
  93. package/dist/src/sub/DynamicLayout/CompositionRenderer/createCompositions.js +0 -79
  94. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/downIcons.d.ts +0 -12
  95. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/downIcons.js +0 -76
  96. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/index.d.ts +0 -4
  97. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/index.js +0 -47
  98. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/leftIcons.d.ts +0 -12
  99. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/leftIcons.js +0 -76
  100. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/rightIcons.d.ts +0 -12
  101. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/rightIcons.js +0 -76
  102. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/upIcons.d.ts +0 -12
  103. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/upIcons.js +0 -76
  104. package/dist/src/sub/DynamicLayout/compositionActionTypes.d.ts +0 -139
  105. package/dist/src/sub/DynamicLayout/compositionActionTypes.js +0 -2
  106. package/dist/src/sub/DynamicLayout/compositionQueryContext.d.ts +0 -8
  107. package/dist/src/sub/DynamicLayout/compositionQueryContext.js +0 -14
  108. package/dist/src/sub/DynamicLayout/mock_composition.d.ts +0 -3
  109. package/dist/src/sub/DynamicLayout/mock_composition.js +0 -1606
  110. package/dist/src/sub/DynamicLayout/mock_contentsCarousel.d.ts +0 -1
  111. package/dist/src/sub/DynamicLayout/mock_contentsCarousel.js +0 -1111
  112. package/dist/src/sub/DynamicLayout/mock_contentsList.d.ts +0 -1
  113. package/dist/src/sub/DynamicLayout/mock_contentsList.js +0 -1091
  114. package/dist/src/sub/DynamicLayout/mock_queryData.d.ts +0 -96
  115. package/dist/src/sub/DynamicLayout/mock_queryData.js +0 -2639
  116. package/dist/src/sub/DynamicLayout/mock_slideBanner.d.ts +0 -842
  117. package/dist/src/sub/DynamicLayout/mock_slideBanner.js +0 -854
  118. package/dist/src/sub/DynamicLayout/mock_video.d.ts +0 -368
  119. package/dist/src/sub/DynamicLayout/mock_video.js +0 -371
  120. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarouselCore.d.ts +0 -12
  121. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarouselCore.js +0 -61
  122. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigationNextBtn.d.ts +0 -15
  123. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigationNextBtn.js +0 -69
  124. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigationPrevBtn.d.ts +0 -15
  125. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigationPrevBtn.js +0 -69
  126. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomProgressbar.d.ts +0 -9
  127. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomProgressbar.js +0 -87
  128. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/navigationConfigs.d.ts +0 -4
  129. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/navigationConfigs.js +0 -849
  130. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/progressConfigs.d.ts +0 -43
  131. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/progressConfigs.js +0 -162
  132. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/contentsCarouselUtils.d.ts +0 -39
  133. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/contentsCarouselUtils.js +0 -182
  134. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/hooks/useFlexGridLayout.d.ts +0 -25
  135. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/hooks/useFlexGridLayout.js +0 -234
  136. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/hooks/useSwiper.d.ts +0 -14
  137. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/hooks/useSwiper.js +0 -46
  138. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/index.d.ts +0 -1
  139. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/index.js +0 -8
  140. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/types.d.ts +0 -139
  141. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsList.d.ts +0 -8
  142. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsList.js +0 -190
  143. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsListCore.d.ts +0 -17
  144. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsListCore.js +0 -39
  145. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/CustomPagination.d.ts +0 -10
  146. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/CustomPagination.js +0 -85
  147. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/paginationConfigs.d.ts +0 -25
  148. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/paginationConfigs.js +0 -183
  149. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/contentsListUtils.d.ts +0 -29
  150. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/contentsListUtils.js +0 -128
  151. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/hooks/useFlexGridLayout.d.ts +0 -23
  152. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/hooks/useFlexGridLayout.js +0 -230
  153. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/index.d.ts +0 -1
  154. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/index.js +0 -8
  155. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/types.d.ts +0 -67
  156. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/types.js +0 -2
  157. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBanner.d.ts +0 -8
  158. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBanner.js +0 -138
  159. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBannerCore.d.ts +0 -12
  160. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBannerCore.js +0 -39
  161. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomNavigationNextBtn.d.ts +0 -15
  162. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomNavigationNextBtn.js +0 -69
  163. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomNavigationPrevBtn.d.ts +0 -15
  164. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomNavigationPrevBtn.js +0 -69
  165. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomPagination.d.ts +0 -20
  166. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomPagination.js +0 -173
  167. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomProgressbar.d.ts +0 -9
  168. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomProgressbar.js +0 -87
  169. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/navigationConfigs.d.ts +0 -4
  170. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/navigationConfigs.js +0 -849
  171. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/progressConfigs.d.ts +0 -43
  172. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/progressConfigs.js +0 -162
  173. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/hooks/useFlexGridLayout.d.ts +0 -26
  174. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/hooks/useFlexGridLayout.js +0 -235
  175. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/hooks/useSwiper.d.ts +0 -16
  176. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/hooks/useSwiper.js +0 -63
  177. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/index.d.ts +0 -1
  178. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/index.js +0 -8
  179. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/slideBannerUtils.d.ts +0 -46
  180. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/slideBannerUtils.js +0 -186
  181. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/types.d.ts +0 -163
  182. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/types.js +0 -2
  183. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseCompositionPlacement.d.ts +0 -14
  184. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseCompositionPlacement.js +0 -26
  185. /package/dist/src/{sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel → desktop/components/Calendar}/types.js +0 -0
@@ -1,43 +0,0 @@
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;
@@ -1,162 +0,0 @@
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;
@@ -1,26 +0,0 @@
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 {};
@@ -1,235 +0,0 @@
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;
@@ -1,16 +0,0 @@
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
- };
@@ -1,63 +0,0 @@
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;
@@ -1 +0,0 @@
1
- export { default as SlideBanner } from './SlideBanner';
@@ -1,8 +0,0 @@
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; } });
@@ -1,46 +0,0 @@
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 {};