@tipp/ui 2.3.35 → 2.3.37

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 (165) hide show
  1. package/dist/app/index.cjs.map +1 -1
  2. package/dist/app/index.js +59 -59
  3. package/dist/app/platform/coach-question-list.cjs.map +1 -1
  4. package/dist/app/platform/coach-question-list.js +26 -26
  5. package/dist/app/platform/contents-card.cjs.map +1 -1
  6. package/dist/app/platform/contents-card.js +26 -26
  7. package/dist/app/platform/curriculum-card.js +2 -2
  8. package/dist/app/platform/edit-coaching-time.cjs.map +1 -1
  9. package/dist/app/platform/edit-coaching-time.js +47 -47
  10. package/dist/app/platform/edit-service-type.cjs.map +1 -1
  11. package/dist/app/platform/edit-service-type.js +47 -47
  12. package/dist/app/platform/goal-manage-card-edit.cjs.map +1 -1
  13. package/dist/app/platform/goal-manage-card-edit.js +48 -48
  14. package/dist/app/platform/goal-manage-card-read.cjs.map +1 -1
  15. package/dist/app/platform/goal-manage-card-read.js +26 -26
  16. package/dist/app/platform/on-offline-radio-card.cjs.map +1 -1
  17. package/dist/app/platform/on-offline-radio-card.js +47 -47
  18. package/dist/app/platform/report-card.cjs.map +1 -1
  19. package/dist/app/platform/report-card.js +26 -26
  20. package/dist/app/platform/reservation-card.cjs.map +1 -1
  21. package/dist/app/platform/reservation-card.js +48 -48
  22. package/dist/app/platform/session-card.cjs.map +1 -1
  23. package/dist/app/platform/session-card.js +48 -48
  24. package/dist/app/platform/session-review-simple-read.cjs.map +1 -1
  25. package/dist/app/platform/session-review-simple-read.js +26 -26
  26. package/dist/app/platform/userInfos/coaching-customer-info/index.cjs.map +1 -1
  27. package/dist/app/platform/userInfos/coaching-customer-info/index.js +28 -28
  28. package/dist/app/platform/userInfos/coaching-customer-info/large.cjs.map +1 -1
  29. package/dist/app/platform/userInfos/coaching-customer-info/large.js +26 -26
  30. package/dist/app/platform/userInfos/coaching-customer-info/medium.cjs.map +1 -1
  31. package/dist/app/platform/userInfos/coaching-customer-info/medium.js +26 -26
  32. package/dist/app/platform/userInfos/coaching-customer-info/small.cjs.map +1 -1
  33. package/dist/app/platform/userInfos/coaching-customer-info/small.js +25 -25
  34. package/dist/app/platform/userInfos/session-user-info-detail.cjs.map +1 -1
  35. package/dist/app/platform/userInfos/session-user-info-detail.js +25 -25
  36. package/dist/app/platform/userInfos/utils.cjs.map +1 -1
  37. package/dist/app/platform/userInfos/utils.js +25 -25
  38. package/dist/atoms/index.cjs +21 -28
  39. package/dist/atoms/index.cjs.map +1 -1
  40. package/dist/atoms/index.js +60 -60
  41. package/dist/atoms/pagination.cjs +21 -28
  42. package/dist/atoms/pagination.cjs.map +1 -1
  43. package/dist/atoms/pagination.d.cts +1 -1
  44. package/dist/atoms/pagination.d.ts +1 -1
  45. package/dist/atoms/pagination.js +1 -1
  46. package/dist/{chunk-P5GENHKO.js → chunk-2XNWJT3U.js} +9 -9
  47. package/dist/{chunk-WH6QD4SY.js → chunk-3DEAIJBF.js} +10 -10
  48. package/dist/{chunk-RM5CQ77X.js → chunk-3JRHAKLV.js} +7 -7
  49. package/dist/{chunk-QKZTZUWP.js → chunk-3Z2XZ4ZG.js} +4 -4
  50. package/dist/{chunk-CIQ7ELE6.js → chunk-4QHXYLE4.js} +4 -4
  51. package/dist/{chunk-7R65MUL6.js → chunk-6UXCNYVO.js} +4 -4
  52. package/dist/{chunk-QEDJOAP6.js → chunk-BFRNEBJN.js} +4 -4
  53. package/dist/{chunk-YPEB36YK.js → chunk-BKYPABII.js} +5 -5
  54. package/dist/{chunk-AYWPBD4T.js → chunk-CI2XFT7Y.js} +4 -4
  55. package/dist/{chunk-LATTGN7W.js → chunk-E5ZJDDZH.js} +4 -4
  56. package/dist/{chunk-V3F7KAR6.js → chunk-GFRYS4IN.js} +2 -2
  57. package/dist/{chunk-OILH5J7Q.js → chunk-GXG26SHU.js} +4 -4
  58. package/dist/{chunk-5WX7CODZ.js → chunk-GXPEADVY.js} +7 -7
  59. package/dist/{chunk-2U7C7J5P.js → chunk-GXWE3QNN.js} +4 -4
  60. package/dist/{chunk-ESM3HX57.js → chunk-HIMIOODO.js} +3 -3
  61. package/dist/{chunk-U3FBMFRL.js → chunk-I5RQ5T4B.js} +10 -10
  62. package/dist/{chunk-NTJLECYY.js → chunk-JFJ3N4V5.js} +4 -4
  63. package/dist/{chunk-ZA4NYPSW.js → chunk-JRSZNGFD.js} +5 -5
  64. package/dist/{chunk-GTO7GG2K.js → chunk-KCAOUZCT.js} +2 -2
  65. package/dist/{chunk-62HSZXVT.js → chunk-KD6EXWP7.js} +4 -4
  66. package/dist/{chunk-AA6OYHCE.js → chunk-MIATMZDP.js} +4 -4
  67. package/dist/{chunk-SLJLEPD2.js → chunk-MLAQDU6U.js} +14 -1
  68. package/dist/chunk-MLAQDU6U.js.map +1 -0
  69. package/dist/{chunk-HTNDVNLQ.js → chunk-MPZJH3PI.js} +4 -4
  70. package/dist/{chunk-F7LTJOOC.js → chunk-OXZ25J7F.js} +23 -36
  71. package/dist/chunk-OXZ25J7F.js.map +1 -0
  72. package/dist/{chunk-2TNZVHXZ.js → chunk-QANVXCYU.js} +2 -2
  73. package/dist/{chunk-64XYTE54.js → chunk-RFXVHZAN.js} +4 -4
  74. package/dist/{chunk-F7JSPN5P.js → chunk-SACH3XVV.js} +4 -4
  75. package/dist/{chunk-DWBYAHIR.js → chunk-SNPAB3HJ.js} +4 -4
  76. package/dist/{chunk-5TZNUXBT.js → chunk-SSSGPTRM.js} +4 -4
  77. package/dist/{chunk-6MQMVYEP.js → chunk-TTVJOFG5.js} +3 -3
  78. package/dist/{chunk-SRZK4OC5.js → chunk-V7MD4RRM.js} +2 -2
  79. package/dist/{chunk-PGUDVR3V.js → chunk-XWNFR24N.js} +2 -2
  80. package/dist/{chunk-TCFXG4AX.js → chunk-XXMZLXDE.js} +7 -7
  81. package/dist/{chunk-7R5KG7SJ.js → chunk-ZKS3IW7D.js} +4 -4
  82. package/dist/{chunk-5OLJJUMC.js → chunk-ZVSATS4O.js} +7 -7
  83. package/dist/context/index.js +1 -1
  84. package/dist/index.cjs +34 -28
  85. package/dist/index.cjs.map +1 -1
  86. package/dist/index.d.cts +1 -1
  87. package/dist/index.d.ts +1 -1
  88. package/dist/index.js +104 -104
  89. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/index.js +7 -7
  90. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-body.js +6 -6
  91. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-radio.js +2 -2
  92. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-option.js +2 -2
  93. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-text.js +1 -1
  94. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-text.js +3 -3
  95. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/index.js +10 -10
  96. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/start-review.js +2 -2
  97. package/dist/molecules/curriculumV2/CurriculumContents/curriculum-review.js +11 -11
  98. package/dist/molecules/curriculumV2/CurriculumContents/index.js +12 -12
  99. package/dist/molecules/curriculumV2/CurriculumSidebar/index.js +1 -1
  100. package/dist/molecules/curriculumV2/index.js +13 -13
  101. package/dist/molecules/description-json-render.js +2 -2
  102. package/dist/molecules/dynamic-field.js +3 -3
  103. package/dist/molecules/dynamic-form-editor-field-editor-panel.js +3 -3
  104. package/dist/molecules/dynamic-form-editor-field-list-panel.js +2 -2
  105. package/dist/molecules/dynamic-form-editor-issues-panel.js +2 -2
  106. package/dist/molecules/dynamic-form-editor-preview-panel.js +6 -6
  107. package/dist/molecules/dynamic-form-editor.js +11 -11
  108. package/dist/molecules/dynamic-form.js +4 -4
  109. package/dist/molecules/expand-table/index.cjs +21 -28
  110. package/dist/molecules/expand-table/index.cjs.map +1 -1
  111. package/dist/molecules/expand-table/index.js +3 -3
  112. package/dist/molecules/index.cjs +34 -28
  113. package/dist/molecules/index.cjs.map +1 -1
  114. package/dist/molecules/index.js +38 -38
  115. package/dist/molecules/learning-post.js +2 -2
  116. package/dist/molecules/stepper.js +2 -2
  117. package/dist/molecules/tag-selector.js +3 -3
  118. package/dist/molecules/training-info-guideline.cjs +13 -0
  119. package/dist/molecules/training-info-guideline.cjs.map +1 -1
  120. package/dist/molecules/training-info-guideline.js +1 -1
  121. package/dist/types/index.d.cts +1 -1
  122. package/dist/types/index.d.ts +1 -1
  123. package/dist/types/training-info-guideline-schema-generated.cjs.map +1 -1
  124. package/dist/types/training-info-guideline-schema-generated.d.cts +7 -2
  125. package/dist/types/training-info-guideline-schema-generated.d.ts +7 -2
  126. package/package.json +1 -1
  127. package/src/atoms/pagination.tsx +24 -40
  128. package/src/constrant/training-info-guideline.schema.json +12 -1
  129. package/src/molecules/training-info-guideline.tsx +13 -0
  130. package/src/types/training-info-guideline-schema-generated.ts +10 -1
  131. package/dist/chunk-F7LTJOOC.js.map +0 -1
  132. package/dist/chunk-SLJLEPD2.js.map +0 -1
  133. /package/dist/{chunk-P5GENHKO.js.map → chunk-2XNWJT3U.js.map} +0 -0
  134. /package/dist/{chunk-WH6QD4SY.js.map → chunk-3DEAIJBF.js.map} +0 -0
  135. /package/dist/{chunk-RM5CQ77X.js.map → chunk-3JRHAKLV.js.map} +0 -0
  136. /package/dist/{chunk-QKZTZUWP.js.map → chunk-3Z2XZ4ZG.js.map} +0 -0
  137. /package/dist/{chunk-CIQ7ELE6.js.map → chunk-4QHXYLE4.js.map} +0 -0
  138. /package/dist/{chunk-7R65MUL6.js.map → chunk-6UXCNYVO.js.map} +0 -0
  139. /package/dist/{chunk-QEDJOAP6.js.map → chunk-BFRNEBJN.js.map} +0 -0
  140. /package/dist/{chunk-YPEB36YK.js.map → chunk-BKYPABII.js.map} +0 -0
  141. /package/dist/{chunk-AYWPBD4T.js.map → chunk-CI2XFT7Y.js.map} +0 -0
  142. /package/dist/{chunk-LATTGN7W.js.map → chunk-E5ZJDDZH.js.map} +0 -0
  143. /package/dist/{chunk-V3F7KAR6.js.map → chunk-GFRYS4IN.js.map} +0 -0
  144. /package/dist/{chunk-OILH5J7Q.js.map → chunk-GXG26SHU.js.map} +0 -0
  145. /package/dist/{chunk-5WX7CODZ.js.map → chunk-GXPEADVY.js.map} +0 -0
  146. /package/dist/{chunk-2U7C7J5P.js.map → chunk-GXWE3QNN.js.map} +0 -0
  147. /package/dist/{chunk-ESM3HX57.js.map → chunk-HIMIOODO.js.map} +0 -0
  148. /package/dist/{chunk-U3FBMFRL.js.map → chunk-I5RQ5T4B.js.map} +0 -0
  149. /package/dist/{chunk-NTJLECYY.js.map → chunk-JFJ3N4V5.js.map} +0 -0
  150. /package/dist/{chunk-ZA4NYPSW.js.map → chunk-JRSZNGFD.js.map} +0 -0
  151. /package/dist/{chunk-GTO7GG2K.js.map → chunk-KCAOUZCT.js.map} +0 -0
  152. /package/dist/{chunk-62HSZXVT.js.map → chunk-KD6EXWP7.js.map} +0 -0
  153. /package/dist/{chunk-AA6OYHCE.js.map → chunk-MIATMZDP.js.map} +0 -0
  154. /package/dist/{chunk-HTNDVNLQ.js.map → chunk-MPZJH3PI.js.map} +0 -0
  155. /package/dist/{chunk-2TNZVHXZ.js.map → chunk-QANVXCYU.js.map} +0 -0
  156. /package/dist/{chunk-64XYTE54.js.map → chunk-RFXVHZAN.js.map} +0 -0
  157. /package/dist/{chunk-F7JSPN5P.js.map → chunk-SACH3XVV.js.map} +0 -0
  158. /package/dist/{chunk-DWBYAHIR.js.map → chunk-SNPAB3HJ.js.map} +0 -0
  159. /package/dist/{chunk-5TZNUXBT.js.map → chunk-SSSGPTRM.js.map} +0 -0
  160. /package/dist/{chunk-6MQMVYEP.js.map → chunk-TTVJOFG5.js.map} +0 -0
  161. /package/dist/{chunk-SRZK4OC5.js.map → chunk-V7MD4RRM.js.map} +0 -0
  162. /package/dist/{chunk-PGUDVR3V.js.map → chunk-XWNFR24N.js.map} +0 -0
  163. /package/dist/{chunk-TCFXG4AX.js.map → chunk-XXMZLXDE.js.map} +0 -0
  164. /package/dist/{chunk-7R5KG7SJ.js.map → chunk-ZKS3IW7D.js.map} +0 -0
  165. /package/dist/{chunk-5OLJJUMC.js.map → chunk-ZVSATS4O.js.map} +0 -0
@@ -1,12 +1,6 @@
1
1
  import {
2
2
  Heading
3
3
  } from "./chunk-BESTU2AY.js";
4
- import {
5
- Card
6
- } from "./chunk-RP2RGCAW.js";
7
- import {
8
- Badge
9
- } from "./chunk-U3BQT7ZO.js";
10
4
  import {
11
5
  Box
12
6
  } from "./chunk-4Y5BEXVN.js";
@@ -16,6 +10,12 @@ import {
16
10
  import {
17
11
  Flex
18
12
  } from "./chunk-25HMMI7R.js";
13
+ import {
14
+ Card
15
+ } from "./chunk-RP2RGCAW.js";
16
+ import {
17
+ Badge
18
+ } from "./chunk-U3BQT7ZO.js";
19
19
 
20
20
  // src/app/platform/session-review-simple-read.tsx
21
21
  import { useMemo } from "react";
@@ -60,4 +60,4 @@ function SessionReviewSimpleRead({
60
60
  export {
61
61
  SessionReviewSimpleRead
62
62
  };
63
- //# sourceMappingURL=chunk-RM5CQ77X.js.map
63
+ //# sourceMappingURL=chunk-3JRHAKLV.js.map
@@ -1,6 +1,3 @@
1
- import {
2
- Avatar
3
- } from "./chunk-K36TPMKL.js";
4
1
  import {
5
2
  Typo
6
3
  } from "./chunk-PMJIFLDT.js";
@@ -10,6 +7,9 @@ import {
10
7
  import {
11
8
  CheckIcon
12
9
  } from "./chunk-DLP4UUNG.js";
10
+ import {
11
+ Avatar
12
+ } from "./chunk-K36TPMKL.js";
13
13
 
14
14
  // src/molecules/stepper.tsx
15
15
  import { createContext, Children, useContext, useMemo } from "react";
@@ -166,4 +166,4 @@ var Stepper = {
166
166
  export {
167
167
  Stepper
168
168
  };
169
- //# sourceMappingURL=chunk-QKZTZUWP.js.map
169
+ //# sourceMappingURL=chunk-3Z2XZ4ZG.js.map
@@ -15,9 +15,6 @@ import {
15
15
  import {
16
16
  Heading
17
17
  } from "./chunk-BESTU2AY.js";
18
- import {
19
- Badge
20
- } from "./chunk-U3BQT7ZO.js";
21
18
  import {
22
19
  Box
23
20
  } from "./chunk-4Y5BEXVN.js";
@@ -30,6 +27,9 @@ import {
30
27
  import {
31
28
  Button
32
29
  } from "./chunk-ZVDAEY5Q.js";
30
+ import {
31
+ Badge
32
+ } from "./chunk-U3BQT7ZO.js";
33
33
 
34
34
  // src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/start-review.tsx
35
35
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -148,4 +148,4 @@ var start_review_default = StartReview;
148
148
  export {
149
149
  start_review_default
150
150
  };
151
- //# sourceMappingURL=chunk-CIQ7ELE6.js.map
151
+ //# sourceMappingURL=chunk-4QHXYLE4.js.map
@@ -4,15 +4,15 @@ import {
4
4
  import {
5
5
  Select
6
6
  } from "./chunk-X2GMDZ7M.js";
7
- import {
8
- Card
9
- } from "./chunk-RP2RGCAW.js";
10
7
  import {
11
8
  Typo
12
9
  } from "./chunk-PMJIFLDT.js";
13
10
  import {
14
11
  Flex
15
12
  } from "./chunk-25HMMI7R.js";
13
+ import {
14
+ Card
15
+ } from "./chunk-RP2RGCAW.js";
16
16
 
17
17
  // src/molecules/dynamic-form-editor-field-list-panel.tsx
18
18
  import { useMemo } from "react";
@@ -103,4 +103,4 @@ function DynamicFormEditorFieldListPanel(props) {
103
103
  export {
104
104
  DynamicFormEditorFieldListPanel
105
105
  };
106
- //# sourceMappingURL=chunk-7R65MUL6.js.map
106
+ //# sourceMappingURL=chunk-6UXCNYVO.js.map
@@ -4,15 +4,15 @@ import {
4
4
  import {
5
5
  List
6
6
  } from "./chunk-JIJLOKVN.js";
7
- import {
8
- Callout
9
- } from "./chunk-B6XJN6EC.js";
10
7
  import {
11
8
  Box
12
9
  } from "./chunk-4Y5BEXVN.js";
13
10
  import {
14
11
  Typo
15
12
  } from "./chunk-PMJIFLDT.js";
13
+ import {
14
+ Callout
15
+ } from "./chunk-B6XJN6EC.js";
16
16
 
17
17
  // src/molecules/description-json-render.tsx
18
18
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
@@ -48,4 +48,4 @@ function DescriptionJsonRender(props) {
48
48
  export {
49
49
  DescriptionJsonRender
50
50
  };
51
- //# sourceMappingURL=chunk-QEDJOAP6.js.map
51
+ //# sourceMappingURL=chunk-BFRNEBJN.js.map
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  DynamicFormEditorFieldEditorPanel
3
- } from "./chunk-5WX7CODZ.js";
3
+ } from "./chunk-GXPEADVY.js";
4
4
  import {
5
5
  DynamicFormEditorFieldListPanel
6
- } from "./chunk-7R65MUL6.js";
6
+ } from "./chunk-6UXCNYVO.js";
7
7
  import {
8
8
  DynamicFormEditorIssuesPanel
9
- } from "./chunk-AA6OYHCE.js";
9
+ } from "./chunk-MIATMZDP.js";
10
10
  import {
11
11
  DynamicFormEditorPreviewPanel
12
- } from "./chunk-ZA4NYPSW.js";
12
+ } from "./chunk-JRSZNGFD.js";
13
13
  import {
14
14
  createDefaultField,
15
15
  createUniqueFieldName,
@@ -227,4 +227,4 @@ function DynamicFormEditor(props) {
227
227
  export {
228
228
  DynamicFormEditor
229
229
  };
230
- //# sourceMappingURL=chunk-YPEB36YK.js.map
230
+ //# sourceMappingURL=chunk-BKYPABII.js.map
@@ -7,9 +7,6 @@ import {
7
7
  import {
8
8
  Heading
9
9
  } from "./chunk-BESTU2AY.js";
10
- import {
11
- Badge
12
- } from "./chunk-U3BQT7ZO.js";
13
10
  import {
14
11
  Box
15
12
  } from "./chunk-4Y5BEXVN.js";
@@ -23,6 +20,9 @@ import {
23
20
  ArrowRightIcon,
24
21
  TimerIcon
25
22
  } from "./chunk-DLP4UUNG.js";
23
+ import {
24
+ Badge
25
+ } from "./chunk-U3BQT7ZO.js";
26
26
 
27
27
  // src/app/platform/curriculum-card.tsx
28
28
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -96,4 +96,4 @@ function CurriculumCard(props) {
96
96
  export {
97
97
  CurriculumCard
98
98
  };
99
- //# sourceMappingURL=chunk-AYWPBD4T.js.map
99
+ //# sourceMappingURL=chunk-CI2XFT7Y.js.map
@@ -16,9 +16,6 @@ import {
16
16
  import {
17
17
  Heading
18
18
  } from "./chunk-BESTU2AY.js";
19
- import {
20
- Card
21
- } from "./chunk-RP2RGCAW.js";
22
19
  import {
23
20
  BulletText
24
21
  } from "./chunk-Z34HR7RE.js";
@@ -28,6 +25,9 @@ import {
28
25
  import {
29
26
  Button
30
27
  } from "./chunk-ZVDAEY5Q.js";
28
+ import {
29
+ Card
30
+ } from "./chunk-RP2RGCAW.js";
31
31
  import {
32
32
  Pencil1Icon
33
33
  } from "./chunk-DLP4UUNG.js";
@@ -141,4 +141,4 @@ function SessionCard(props) {
141
141
  export {
142
142
  SessionCard
143
143
  };
144
- //# sourceMappingURL=chunk-LATTGN7W.js.map
144
+ //# sourceMappingURL=chunk-E5ZJDDZH.js.map
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-FR2GDOU2.js";
7
7
  import {
8
8
  Pagination
9
- } from "./chunk-F7LTJOOC.js";
9
+ } from "./chunk-OXZ25J7F.js";
10
10
  import {
11
11
  Typo
12
12
  } from "./chunk-PMJIFLDT.js";
@@ -233,4 +233,4 @@ export {
233
233
  createColumnHelper,
234
234
  ExpandTable
235
235
  };
236
- //# sourceMappingURL=chunk-V3F7KAR6.js.map
236
+ //# sourceMappingURL=chunk-GFRYS4IN.js.map
@@ -7,9 +7,6 @@ import {
7
7
  import {
8
8
  Grid
9
9
  } from "./chunk-EGEQY3KT.js";
10
- import {
11
- Card
12
- } from "./chunk-RP2RGCAW.js";
13
10
  import {
14
11
  Box
15
12
  } from "./chunk-4Y5BEXVN.js";
@@ -22,6 +19,9 @@ import {
22
19
  import {
23
20
  Button
24
21
  } from "./chunk-ZVDAEY5Q.js";
22
+ import {
23
+ Card
24
+ } from "./chunk-RP2RGCAW.js";
25
25
 
26
26
  // src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-radio.tsx
27
27
  import { useCallback, useMemo, useState } from "react";
@@ -98,4 +98,4 @@ var review_question_radio_default = ReviewQuestionRadio;
98
98
  export {
99
99
  review_question_radio_default
100
100
  };
101
- //# sourceMappingURL=chunk-OILH5J7Q.js.map
101
+ //# sourceMappingURL=chunk-GXG26SHU.js.map
@@ -18,15 +18,12 @@ import {
18
18
  import {
19
19
  Select
20
20
  } from "./chunk-X2GMDZ7M.js";
21
- import {
22
- IconButton
23
- } from "./chunk-XK6VEVOK.js";
24
- import {
25
- Card
26
- } from "./chunk-RP2RGCAW.js";
27
21
  import {
28
22
  Checkbox
29
23
  } from "./chunk-VYCYVN3L.js";
24
+ import {
25
+ IconButton
26
+ } from "./chunk-XK6VEVOK.js";
30
27
  import {
31
28
  Typo
32
29
  } from "./chunk-PMJIFLDT.js";
@@ -36,6 +33,9 @@ import {
36
33
  import {
37
34
  Button
38
35
  } from "./chunk-ZVDAEY5Q.js";
36
+ import {
37
+ Card
38
+ } from "./chunk-RP2RGCAW.js";
39
39
  import {
40
40
  ChevronDownIcon,
41
41
  ChevronUpIcon,
@@ -686,4 +686,4 @@ function DynamicFormEditorFieldEditorPanel(props) {
686
686
  export {
687
687
  DynamicFormEditorFieldEditorPanel
688
688
  };
689
- //# sourceMappingURL=chunk-5WX7CODZ.js.map
689
+ //# sourceMappingURL=chunk-GXPEADVY.js.map
@@ -10,15 +10,15 @@ import {
10
10
  import {
11
11
  TextField
12
12
  } from "./chunk-6NPTJBFE.js";
13
- import {
14
- Card
15
- } from "./chunk-RP2RGCAW.js";
16
13
  import {
17
14
  Flex
18
15
  } from "./chunk-25HMMI7R.js";
19
16
  import {
20
17
  Button
21
18
  } from "./chunk-ZVDAEY5Q.js";
19
+ import {
20
+ Card
21
+ } from "./chunk-RP2RGCAW.js";
22
22
  import {
23
23
  __spreadValues
24
24
  } from "./chunk-CRTRMMJ7.js";
@@ -142,4 +142,4 @@ function GoalManageCardEdit(props) {
142
142
  export {
143
143
  GoalManageCardEdit
144
144
  };
145
- //# sourceMappingURL=chunk-2U7C7J5P.js.map
145
+ //# sourceMappingURL=chunk-GXWE3QNN.js.map
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  ReviewQuestion_default
3
- } from "./chunk-PGUDVR3V.js";
3
+ } from "./chunk-XWNFR24N.js";
4
4
  import {
5
5
  complete_review_default
6
6
  } from "./chunk-NIMLBANB.js";
7
7
  import {
8
8
  start_review_default
9
- } from "./chunk-CIQ7ELE6.js";
9
+ } from "./chunk-4QHXYLE4.js";
10
10
  import {
11
11
  CurriculumReviewProvider,
12
12
  useCurriculumReviewContext
@@ -86,4 +86,4 @@ var CurriculumReviewSteps_default = CurriculumReviewSteps;
86
86
  export {
87
87
  CurriculumReviewSteps_default
88
88
  };
89
- //# sourceMappingURL=chunk-ESM3HX57.js.map
89
+ //# sourceMappingURL=chunk-HIMIOODO.js.map
@@ -7,21 +7,15 @@ import {
7
7
  import {
8
8
  Grid
9
9
  } from "./chunk-EGEQY3KT.js";
10
+ import {
11
+ Collapse
12
+ } from "./chunk-NFDQJVFA.js";
10
13
  import {
11
14
  Heading
12
15
  } from "./chunk-BESTU2AY.js";
13
16
  import {
14
17
  IconButton
15
18
  } from "./chunk-XK6VEVOK.js";
16
- import {
17
- Card
18
- } from "./chunk-RP2RGCAW.js";
19
- import {
20
- Collapse
21
- } from "./chunk-NFDQJVFA.js";
22
- import {
23
- Badge
24
- } from "./chunk-U3BQT7ZO.js";
25
19
  import {
26
20
  Box
27
21
  } from "./chunk-4Y5BEXVN.js";
@@ -34,6 +28,9 @@ import {
34
28
  import {
35
29
  Button
36
30
  } from "./chunk-ZVDAEY5Q.js";
31
+ import {
32
+ Card
33
+ } from "./chunk-RP2RGCAW.js";
37
34
  import {
38
35
  ChevronDownIcon,
39
36
  ChevronUpIcon,
@@ -41,6 +38,9 @@ import {
41
38
  RocketIcon,
42
39
  TrashIcon
43
40
  } from "./chunk-DLP4UUNG.js";
41
+ import {
42
+ Badge
43
+ } from "./chunk-U3BQT7ZO.js";
44
44
  import {
45
45
  __spreadValues
46
46
  } from "./chunk-CRTRMMJ7.js";
@@ -162,4 +162,4 @@ function GoalManageCardRead(props) {
162
162
  export {
163
163
  GoalManageCardRead
164
164
  };
165
- //# sourceMappingURL=chunk-U3FBMFRL.js.map
165
+ //# sourceMappingURL=chunk-I5RQ5T4B.js.map
@@ -4,12 +4,12 @@ import {
4
4
  import {
5
5
  RadioGroup
6
6
  } from "./chunk-6DJOIRMF.js";
7
- import {
8
- Card
9
- } from "./chunk-RP2RGCAW.js";
10
7
  import {
11
8
  Flex
12
9
  } from "./chunk-25HMMI7R.js";
10
+ import {
11
+ Card
12
+ } from "./chunk-RP2RGCAW.js";
13
13
 
14
14
  // src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-option.tsx
15
15
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
@@ -34,4 +34,4 @@ var review_question_satisfaction_option_default = ReviewQuestionSatisfisRadio;
34
34
  export {
35
35
  review_question_satisfaction_option_default
36
36
  };
37
- //# sourceMappingURL=chunk-NTJLECYY.js.map
37
+ //# sourceMappingURL=chunk-JFJ3N4V5.js.map
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  DynamicForm
3
- } from "./chunk-GTO7GG2K.js";
4
- import {
5
- Card
6
- } from "./chunk-RP2RGCAW.js";
3
+ } from "./chunk-KCAOUZCT.js";
7
4
  import {
8
5
  Typo
9
6
  } from "./chunk-PMJIFLDT.js";
10
7
  import {
11
8
  Flex
12
9
  } from "./chunk-25HMMI7R.js";
10
+ import {
11
+ Card
12
+ } from "./chunk-RP2RGCAW.js";
13
13
 
14
14
  // src/molecules/dynamic-form-editor-preview-panel.tsx
15
15
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -25,4 +25,4 @@ function DynamicFormEditorPreviewPanel(props) {
25
25
  export {
26
26
  DynamicFormEditorPreviewPanel
27
27
  };
28
- //# sourceMappingURL=chunk-ZA4NYPSW.js.map
28
+ //# sourceMappingURL=chunk-JRSZNGFD.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  DynamicFormField
3
- } from "./chunk-HTNDVNLQ.js";
3
+ } from "./chunk-MPZJH3PI.js";
4
4
  import {
5
5
  DynamicFormProvider,
6
6
  useDynamicForm
@@ -242,4 +242,4 @@ export {
242
242
  DynamicForm,
243
243
  createYupValidation
244
244
  };
245
- //# sourceMappingURL=chunk-GTO7GG2K.js.map
245
+ //# sourceMappingURL=chunk-KCAOUZCT.js.map
@@ -16,9 +16,6 @@ import {
16
16
  import {
17
17
  Heading
18
18
  } from "./chunk-BESTU2AY.js";
19
- import {
20
- Card
21
- } from "./chunk-RP2RGCAW.js";
22
19
  import {
23
20
  Box
24
21
  } from "./chunk-4Y5BEXVN.js";
@@ -28,6 +25,9 @@ import {
28
25
  import {
29
26
  Flex
30
27
  } from "./chunk-25HMMI7R.js";
28
+ import {
29
+ Card
30
+ } from "./chunk-RP2RGCAW.js";
31
31
 
32
32
  // src/app/platform/userInfos/coaching-customer-info/medium.tsx
33
33
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -71,4 +71,4 @@ function CoachingCustomerInfoMedium({
71
71
  export {
72
72
  CoachingCustomerInfoMedium
73
73
  };
74
- //# sourceMappingURL=chunk-62HSZXVT.js.map
74
+ //# sourceMappingURL=chunk-KD6EXWP7.js.map
@@ -1,12 +1,12 @@
1
- import {
2
- Card
3
- } from "./chunk-RP2RGCAW.js";
4
1
  import {
5
2
  Typo
6
3
  } from "./chunk-PMJIFLDT.js";
7
4
  import {
8
5
  Flex
9
6
  } from "./chunk-25HMMI7R.js";
7
+ import {
8
+ Card
9
+ } from "./chunk-RP2RGCAW.js";
10
10
 
11
11
  // src/molecules/dynamic-form-editor-issues-panel.tsx
12
12
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -36,4 +36,4 @@ function DynamicFormEditorIssuesPanel(props) {
36
36
  export {
37
37
  DynamicFormEditorIssuesPanel
38
38
  };
39
- //# sourceMappingURL=chunk-AA6OYHCE.js.map
39
+ //# sourceMappingURL=chunk-MIATMZDP.js.map
@@ -61,6 +61,19 @@ function TrainingInfoGuidelineItem({
61
61
  }
62
62
  );
63
63
  }
64
+ if (value.type === "youtube-shorts") {
65
+ return /* @__PURE__ */ jsx(
66
+ TrainingInfoGuidelineButton,
67
+ {
68
+ description: "TIPP \uC1FC\uCE20 \uBCF4\uAE30",
69
+ icon: /* @__PURE__ */ jsx(VideoIcon, {}),
70
+ onClick: () => {
71
+ window.open(value.url, "_blank");
72
+ },
73
+ title: value.title
74
+ }
75
+ );
76
+ }
64
77
  if (value.type === "video") {
65
78
  return /* @__PURE__ */ jsxs(Dialog.Root, { children: [
66
79
  /* @__PURE__ */ jsx(Dialog.Trigger, { children: /* @__PURE__ */ jsx(
@@ -160,4 +173,4 @@ function TrainingInfoGuidelineButton({
160
173
  export {
161
174
  TrainingInfoGuideline
162
175
  };
163
- //# sourceMappingURL=chunk-SLJLEPD2.js.map
176
+ //# sourceMappingURL=chunk-MLAQDU6U.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/molecules/training-info-guideline.tsx"],"sourcesContent":["import React, { useState } from 'react';\nimport { FileTextIcon, VideoIcon } from '@radix-ui/react-icons';\nimport { AspectRatio } from '@/atoms/aspect-ratio';\nimport { Button } from '@/atoms/button';\nimport type { TrainingInfoGuidelineContents } from '@/types/training-info-guideline-schema-generated';\nimport { Dialog } from '@/atoms/dialog';\nimport { Spinner } from '@/atoms/spinner';\nimport { Box } from '@/atoms/box';\nimport { Separator } from '@/atoms/separator';\nimport { Typo } from '@/atoms/typo';\nimport { Flex } from '../atoms/flex';\n\nexport interface TrainingInfoGuidelineProps {\n values: TrainingInfoGuidelineContents['values'];\n onClickFileDownload: (args: { url: string; filename: string }) => void;\n}\n\nexport function TrainingInfoGuideline({\n values,\n onClickFileDownload,\n}: TrainingInfoGuidelineProps): React.ReactElement {\n return (\n <>\n {values.map((value) => (\n <TrainingInfoGuidelineItem\n key={getItemKey(value)}\n onClickFileDownload={onClickFileDownload}\n value={value}\n />\n ))}\n </>\n );\n}\n\ntype TrainingInfoGuidelineValue =\n TrainingInfoGuidelineContents['values'][number];\n\nfunction getItemKey(value: TrainingInfoGuidelineValue): string {\n return value.url;\n}\n\ninterface TrainingInfoGuidelineItemProps {\n value: TrainingInfoGuidelineValue;\n onClickFileDownload: TrainingInfoGuidelineProps['onClickFileDownload'];\n}\n\nfunction TrainingInfoGuidelineItem({\n value,\n onClickFileDownload,\n}: TrainingInfoGuidelineItemProps): React.ReactElement | null {\n const [isLoading, setIsLoading] = useState(true);\n\n if (value.type === 'file') {\n return (\n <TrainingInfoGuidelineButton\n description=\"파일 다운로드\"\n icon={<FileTextIcon />}\n onClick={() => {\n onClickFileDownload({ url: value.url, filename: value.filename });\n }}\n title={value.downloadButtonName}\n />\n );\n }\n\n if (value.type === 'youtube-shorts') {\n return (\n <TrainingInfoGuidelineButton\n description=\"TIPP 쇼츠 보기\"\n icon={<VideoIcon />}\n onClick={() => {\n window.open(value.url, '_blank');\n }}\n title={value.title}\n />\n );\n }\n\n // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition -- 차후 다른 타입 추가 시 사용\n if (value.type === 'video') {\n return (\n <Dialog.Root>\n <Dialog.Trigger>\n <TrainingInfoGuidelineButton\n description=\"영상 자료\"\n icon={<VideoIcon />}\n title={value.videoTitle}\n />\n </Dialog.Trigger>\n <Dialog.Content\n height=\"100%\"\n maxHeight=\"500px\"\n maxWidth=\"800px\"\n title={value.videoTitle}\n width=\"100%\"\n >\n <AspectRatio ratio={16 / 9} style={{ width: '100%' }}>\n <Flex\n align=\"center\"\n justify=\"center\"\n style={{\n width: '100%',\n height: '100%',\n backgroundColor: 'black',\n position: 'relative',\n }}\n >\n {isLoading ? (\n <Flex\n align=\"center\"\n height=\"100%\"\n justify=\"center\"\n position=\"absolute\"\n style={{\n position: 'absolute',\n top: 0,\n left: 0,\n zIndex: 1,\n color: 'white',\n }}\n width=\"100%\"\n >\n <Spinner size=\"3\" style={{ width: 48, height: 48 }} />\n </Flex>\n ) : null}\n\n <iframe\n allowFullScreen\n onError={() => {\n setIsLoading(false);\n }} // 필요시 에러 메시지로 대체\n onLoad={() => {\n setIsLoading(false);\n }}\n src={`${value.url}?theme=light`}\n style={{ width: '100%', height: '100%', border: 'none' }}\n title=\"Curriculum Video\"\n />\n </Flex>\n </AspectRatio>\n </Dialog.Content>\n </Dialog.Root>\n );\n }\n return null;\n}\n\ninterface TrainingInfoGuidelineButtonProps {\n icon: React.ReactNode;\n title: string;\n description?: string;\n onClick?: () => void;\n}\n\nfunction TrainingInfoGuidelineButton({\n icon,\n title,\n description,\n onClick,\n}: TrainingInfoGuidelineButtonProps): React.ReactElement {\n return (\n <Button\n onClick={onClick}\n style={{ width: '100%', height: '48px' , textAlign: 'left'}}\n variant=\"outline\"\n >\n <Flex align=\"center\" gap=\"2\" width=\"100%\">\n {icon}\n <Separator orientation=\"vertical\" size=\"2\" />\n <Box>\n <Typo as=\"div\">\n {title}\n </Typo>\n {typeof description === 'string' && description !== '' ? (\n <Typo variant=\"caption\" >\n {description}\n </Typo>\n ) : null}\n </Box>\n \n </Flex>\n </Button>\n );\n}\n"],"mappings":"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","names":[]}
@@ -16,12 +16,12 @@ import {
16
16
  import {
17
17
  RadioGroup
18
18
  } from "./chunk-6DJOIRMF.js";
19
- import {
20
- Grid
21
- } from "./chunk-EGEQY3KT.js";
22
19
  import {
23
20
  Inset
24
21
  } from "./chunk-XQOL7UBI.js";
22
+ import {
23
+ Grid
24
+ } from "./chunk-EGEQY3KT.js";
25
25
  import {
26
26
  CheckboxGroup
27
27
  } from "./chunk-W7X7KSJP.js";
@@ -284,4 +284,4 @@ function DynamicFormField({
284
284
  export {
285
285
  DynamicFormField
286
286
  };
287
- //# sourceMappingURL=chunk-HTNDVNLQ.js.map
287
+ //# sourceMappingURL=chunk-MPZJH3PI.js.map
@@ -19,17 +19,22 @@ import {
19
19
  } from "./chunk-CRTRMMJ7.js";
20
20
 
21
21
  // src/atoms/pagination.tsx
22
- import {
23
- useCallback,
24
- useEffect,
25
- useMemo,
26
- useRef,
27
- useState
28
- } from "react";
22
+ import { useCallback, useMemo, useState } from "react";
29
23
  import { jsx, jsxs } from "react/jsx-runtime";
30
24
  function Pagination(props) {
31
25
  const { onChange, count = 0, siblingCount = 2 } = props;
32
- const [page, setPage] = useState(() => props.page || props.defaultPage || 1);
26
+ const isControlled = props.page !== void 0;
27
+ const [internalPage, setInternalPage] = useState(props.defaultPage || 1);
28
+ const page = isControlled ? props.page : internalPage;
29
+ const goToPage = useCallback(
30
+ (next2) => {
31
+ if (!isControlled) {
32
+ setInternalPage(next2);
33
+ }
34
+ onChange == null ? void 0 : onChange(next2);
35
+ },
36
+ [isControlled, onChange]
37
+ );
33
38
  const visibleItems = useMemo(() => {
34
39
  let start = Math.max(1, page - siblingCount);
35
40
  let end = Math.min(count, page + siblingCount);
@@ -40,24 +45,6 @@ function Pagination(props) {
40
45
  }
41
46
  return Array.from({ length: end - start + 1 }, (_, i) => i + start);
42
47
  }, [count, page, siblingCount]);
43
- const onChangeRef = useRef(onChange);
44
- useEffect(() => {
45
- onChangeRef.current = onChange;
46
- });
47
- const isFirstRender = useRef(true);
48
- useEffect(() => {
49
- var _a;
50
- if (isFirstRender.current) {
51
- isFirstRender.current = false;
52
- return;
53
- }
54
- (_a = onChangeRef.current) == null ? void 0 : _a.call(onChangeRef, page);
55
- }, [page]);
56
- useEffect(() => {
57
- if (props.page && props.page !== page) {
58
- setPage(props.page);
59
- }
60
- }, [props.page, page]);
61
48
  const prev = useMemo(() => {
62
49
  const p = page - 1;
63
50
  return p < 1 ? void 0 : p;
@@ -67,18 +54,18 @@ function Pagination(props) {
67
54
  return n > count ? void 0 : n;
68
55
  }, [count, page]);
69
56
  const onClickPrev = useCallback(() => {
70
- prev && setPage(prev);
71
- }, [prev]);
57
+ if (prev) goToPage(prev);
58
+ }, [prev, goToPage]);
72
59
  const onClickNext = useCallback(() => {
73
- next && setPage(next);
74
- }, [next]);
60
+ if (next) goToPage(next);
61
+ }, [next, goToPage]);
75
62
  const doublePrev = useMemo(() => {
76
63
  if (!visibleItems.length) return;
77
64
  return Math.max(0, visibleItems[0] - 1);
78
65
  }, [visibleItems]);
79
66
  const onClickDoublePrev = useCallback(() => {
80
- doublePrev && setPage(doublePrev);
81
- }, [doublePrev]);
67
+ if (doublePrev) goToPage(doublePrev);
68
+ }, [doublePrev, goToPage]);
82
69
  const doubleNext = useMemo(() => {
83
70
  if (!visibleItems.length) return;
84
71
  const n = visibleItems[visibleItems.length - 1] + 1;
@@ -86,8 +73,8 @@ function Pagination(props) {
86
73
  return Math.min(count, n);
87
74
  }, [count, visibleItems]);
88
75
  const onClickDoubleNext = useCallback(() => {
89
- doubleNext && setPage(doubleNext);
90
- }, [doubleNext]);
76
+ if (doubleNext) goToPage(doubleNext);
77
+ }, [doubleNext, goToPage]);
91
78
  const iconSize = {
92
79
  height: 24,
93
80
  width: 24
@@ -114,7 +101,7 @@ function Pagination(props) {
114
101
  {
115
102
  className: `page-button ${item === page ? "active" : ""}`,
116
103
  onClick: () => {
117
- setPage(item);
104
+ goToPage(item);
118
105
  },
119
106
  type: "button",
120
107
  children: /* @__PURE__ */ jsx(Typo, { variant: "body", children: item })
@@ -138,4 +125,4 @@ function Pagination(props) {
138
125
  export {
139
126
  Pagination
140
127
  };
141
- //# sourceMappingURL=chunk-F7LTJOOC.js.map
128
+ //# sourceMappingURL=chunk-OXZ25J7F.js.map