@ihabdevteam/core 0.376.0 → 0.379.0

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 (67) hide show
  1. package/CHANGELOG.md +222 -0
  2. package/dist/components.cjs.js +181 -181
  3. package/dist/components.esm.css +5 -5
  4. package/dist/hooks.cjs.js +1 -1
  5. package/dist/i18n.cjs.js +1 -1
  6. package/dist/ihabdevteam-core.cjs.js +193 -193
  7. package/dist/ihabdevteam-core.d.ts +19 -8
  8. package/dist/packages/core/src/components/Badge.css +0 -76
  9. package/dist/packages/core/src/components/Badge.d.ts +1 -0
  10. package/dist/packages/core/src/components/Badge.js +4 -0
  11. package/dist/packages/core/src/components/BarChart.css +29 -29
  12. package/dist/packages/core/src/components/BarChart.js +20 -19
  13. package/dist/packages/core/src/components/BottomNav.js +3 -2
  14. package/dist/packages/core/src/components/ChartSection.css +70 -45
  15. package/dist/packages/core/src/components/ChartSection.d.ts +3 -3
  16. package/dist/packages/core/src/components/ChartSection.js +8 -7
  17. package/dist/packages/core/src/components/CircleBadge.css +87 -0
  18. package/dist/packages/core/src/components/CircleBadge.d.ts +1 -0
  19. package/dist/packages/core/src/components/CircleBadge.js +1 -0
  20. package/dist/packages/core/src/components/CountTile.js +1 -1
  21. package/dist/packages/core/src/components/Header.js +3 -2
  22. package/dist/packages/core/src/components/RingChart.js +6 -5
  23. package/dist/packages/core/src/components/Section.css +1 -1
  24. package/dist/packages/core/src/components/SectionHeadFloat.d.ts +1 -1
  25. package/dist/packages/core/src/components/SectionHeadFloat.js +1 -1
  26. package/dist/packages/core/src/components/StatChart.css +17 -17
  27. package/dist/packages/core/src/components/StatChart.d.ts +1 -1
  28. package/dist/packages/core/src/components/StatChart.js +3 -2
  29. package/dist/packages/core/src/components/Toolbar.css +1 -1
  30. package/dist/packages/core/src/components/Tooltip/DescriptionTooltip.css +9 -9
  31. package/dist/packages/core/src/components/Tooltip/DescriptionTooltip.js +3 -2
  32. package/dist/packages/core/src/components/Tooltip/InfoTooltip.css +6 -6
  33. package/dist/packages/core/src/components/Tooltip/InfoTooltip.js +2 -1
  34. package/dist/packages/core/src/components/Tooltip/MenuTooltip.css +15 -15
  35. package/dist/packages/core/src/components/Tooltip/MenuTooltip.js +2 -1
  36. package/dist/packages/core/src/components/Tooltip/TextBoxTooltip.css +15 -15
  37. package/dist/packages/core/src/components/Tooltip/TextBoxTooltip.js +4 -3
  38. package/dist/packages/core/src/components/Tooltip/Tooltip.css +21 -21
  39. package/dist/packages/core/src/components/Tooltip/Tooltip.js +4 -3
  40. package/dist/packages/core/src/components/Tooltip/TrainingTooltip.css +20 -5
  41. package/dist/packages/core/src/components/Tooltip/TrainingTooltip.d.ts +1 -1
  42. package/dist/packages/core/src/components/Tooltip/TrainingTooltip.js +5 -4
  43. package/dist/packages/core/src/components/Tooltip/WordImageTooltip.css +7 -7
  44. package/dist/packages/core/src/components/Tooltip/WordImageTooltip.js +5 -4
  45. package/dist/packages/core/src/components/Training/NoiseSettingsTooltip.css +15 -15
  46. package/dist/packages/core/src/components/Training/NoiseSettingsTooltip.js +3 -2
  47. package/dist/packages/core/src/components/Training/TrainingPagePopupBottom.js +1 -1
  48. package/dist/packages/core/src/components/Training/TrainingStepTextBox.css +1 -1
  49. package/dist/packages/core/src/components/Training/TrainingStepTitle.js +2 -2
  50. package/dist/packages/core/src/components/Training/useFloatingFocus.d.ts +1 -1
  51. package/dist/packages/core/src/components/Training/useFloatingFocus.js +2 -2
  52. package/dist/packages/core/src/components/Word/WordSearchResultBlock.css +0 -7
  53. package/dist/packages/core/src/components/Word/WordSearchResultBlock.js +1 -1
  54. package/dist/packages/core/src/components/Word/wordTablePrint.js +4 -4
  55. package/dist/packages/core/src/components/WordTable.css +112 -85
  56. package/dist/packages/core/src/components/WordTable.js +59 -37
  57. package/dist/packages/core/src/components/barChartTypes.d.ts +1 -1
  58. package/dist/packages/core/src/components/wordTableLayout.js +2 -2
  59. package/dist/packages/core/src/hooks/touchToggle.d.ts +1 -1
  60. package/dist/packages/core/src/hooks/touchToggle.js +2 -2
  61. package/dist/packages/core/src/types/wordSearch.d.ts +11 -0
  62. package/dist/packages/core/src/utils/legacyBlocks.d.ts +53 -0
  63. package/dist/packages/core/src/utils/legacyBlocks.js +131 -0
  64. package/dist/packages/core/src/version.d.ts +1 -1
  65. package/dist/packages/core/src/version.js +1 -1
  66. package/dist/utils.cjs.js +1 -1
  67. package/package.json +1 -1
@@ -1,6 +1,16 @@
1
+ /* **옛 이름이 선택자에 함께 적혀 있다**(`.manager-*` · `.tooltip-training__*`) — 지우지 말 것.
2
+ *
3
+ * 마크업 쌍둥이(`withLegacy`)는 **코어가 그리는 마디**만 덮는다. 말귀는 제 마디에 코어
4
+ * 이름을 손으로 적어 겉모습을 빌려 쓴다(실측 2026-10-28: `<li className="manager-section
5
+ * manager-section--grid sgc">` 처럼 **15개 이름 · 19곳**). 그 자리는 코어 마디가 아니라
6
+ * 쌍둥이가 안 닿는다 — 선택자가 옛 이름도 함께 받아야 그 화면이 안 깨진다.
7
+ *
8
+ * 말귀가 다 옮겼다고 알려 오면 **쉼표 뒤의 옛 이름만** 지운다. 규칙 자체는 한 벌이다.
9
+ * `NAMING.md` 의 *"이름을 바꿀 때"* 와 `src/utils/legacyBlocks.ts` 를 함께 볼 것.
10
+ */
1
11
  /* ChartSection — 차트 카드 공통 레이아웃 (제목 헤더 + total/legend 서브로우) */
2
12
  /* BarChart, RingChart 기반 섹션(TrainingStatusPage 숙제현황 등)이 공유 */
3
-
13
+ .chart-section,
4
14
  .manager-section {
5
15
  background: var(--color-white);
6
16
  border-radius: var(--radius-m);
@@ -23,15 +33,15 @@
23
33
  min-width: 320px;
24
34
  }
25
35
  /* 누르는 카드 — StatChart 의 누르는 카드와 같은 결(커서·hover 테두리). 소비자가 감싸개로 흉내 내던 것 */
26
- .manager-section--clickable {
36
+ .chart-section--clickable {
27
37
  cursor: pointer;
28
38
  transition: box-shadow 120ms ease, border-color 120ms ease;
29
39
  }
30
- .manager-section--clickable:hover {
40
+ .chart-section--clickable:hover {
31
41
  border-color: var(--color-main);
32
42
  box-shadow: var(--shadow-dropdown);
33
43
  }
34
-
44
+ .chart-section__head,
35
45
  .manager-section__head {
36
46
  display: flex;
37
47
  justify-content: space-between;
@@ -45,15 +55,18 @@
45
55
  /* **띄운 줄이 있으면 그만큼 비워 둔다.** 띄운 줄은 흐름에서 빠져 제목·곁줄을 덮는다.
46
56
  `SectionHeadFloat` 이 잰 제 폭을 카드에 적어 두므로 눈대중으로 수를 적을 일이 없다 —
47
57
  안 띄운 카드에서는 -12 + 12 = 0 이라 아무 일도 안 일어난다(2026-09-24). */
48
- .manager-section__title-row,
49
- .manager-section__disc {
58
+ .chart-section__title-row,
59
+ .chart-section__disc,
60
+ .manager-section__title-row {
50
61
  padding-right: calc(var(--section-head-float-w, -12px) + 12px);
51
62
  }
52
63
  /* 제목은 줄어들 수 있어야 한다 — min-width 기본값(auto)이면 글자 길이만큼 버텨 넘친다 */
64
+ .chart-section__title,
53
65
  .manager-section__title {
54
66
  min-width: 0;
55
67
  }
56
68
  /* 아이콘 + (제목·설명) — Section 의 머리와 같은 결 */
69
+ .chart-section__title-row,
57
70
  .manager-section__title-row {
58
71
  display: flex;
59
72
  align-items: center;
@@ -61,6 +74,7 @@
61
74
  min-width: 0;
62
75
  flex: 1 1 auto;
63
76
  }
77
+ .chart-section__icon,
64
78
  .manager-section__icon {
65
79
  width: 20px;
66
80
  height: 20px;
@@ -70,15 +84,15 @@
70
84
  justify-content: center;
71
85
  color: var(--t-item-fg, var(--color-main));
72
86
  }
73
- .manager-section__disc {
87
+ .chart-section__disc {
74
88
  /* 제목 줄 **아래 한 줄** — flex 줄바꿈에서 통째로 한 줄을 차지한다(제목 옆에 서면 오른쪽 묶음을 밀어낸다) */
75
89
  flex: 0 0 100%;
76
90
  min-width: 0;
77
91
  color: var(--color-gray);
78
92
  margin: 0;
79
93
  }
80
- /* 머리 오른쪽 묶음 — 고르개와 headRight. 수는 아래 서브로우(.barchart-total)로 내려갔다 */
81
- .manager-section__head-right {
94
+ /* 머리 오른쪽 묶음 — 고르개와 headRight. 수는 아래 서브로우(.chart-section__total)로 내려갔다 */
95
+ .chart-section__head-right {
82
96
  display: flex;
83
97
  align-items: center;
84
98
  justify-content: flex-end;
@@ -86,7 +100,7 @@
86
100
  gap: var(--spacing-xs);
87
101
  margin-left: auto;
88
102
  }
89
- /* 제목 옆 아이콘 — StatChart(.manager-stat-card__icon)와 동일한 톤 */
103
+ /* 제목 옆 아이콘 — StatChart(.stat-chart__card__icon)와 동일한 톤 */
90
104
  .chart-section-icon {
91
105
  opacity: 0.35;
92
106
  display: inline-flex;
@@ -103,21 +117,23 @@
103
117
  **오른쪽 새 칸**을 만든다 — 머리 높이가 정해지는 자리에서 셋째인 설명(`__disc`)이
104
118
  아랫줄이 아니라 옆 칸으로 빠져 카드 밖 141px 까지 나갔다(말귀 375px 문장훈련 분석
105
119
  갈래 카드 실측 2026-09-22). 세로에서는 줄을 바꿀 일이 없다. */
106
- .manager-section__head {
120
+ .chart-section__head,
121
+ .manager-section__head {
107
122
  flex-direction: column;
108
123
  flex-wrap: nowrap;
109
124
  align-items: flex-start;
110
125
  gap: var(--spacing-s);
111
126
  }
112
127
  /* 월 네비게이션과 주/일 토글이 한 줄에 안 들어올 때 자연스럽게 줄바꿈 */
113
- .manager-section-controls {
128
+ .chart-section__controls {
114
129
  flex-wrap: wrap;
115
130
  }
116
131
  /* 줄바꿈된 세그먼트 컨트롤 내부는 nowrap 유지 */
117
- .manager-section-controls .segmented-control {
132
+ .chart-section__controls .segmented-control {
118
133
  flex-wrap: nowrap;
119
134
  }
120
- .manager-section {
135
+ .chart-section,
136
+ .manager-section {
121
137
  /* 띄운 줄도 이 값에 맞춰 선다 — 여백은 `--card-pad` 한 군데서 정한다 */
122
138
  --card-pad: 17px; /* 18 − 테두리 1px */
123
139
  padding: var(--card-pad);
@@ -131,7 +147,7 @@
131
147
  }
132
148
 
133
149
  /* 섹션 컨트롤 */
134
- .manager-section-controls {
150
+ .chart-section__controls {
135
151
  display: flex;
136
152
  align-items: center;
137
153
  gap: var(--spacing-xs);
@@ -141,18 +157,18 @@
141
157
  전에는 이 상자에 min-height: 186px 을 박아 뒀는데, 막대가 들어서면 156px 이라 자료가 오는
142
158
  순간 카드마다 30px 씩 줄어 격자가 한꺼번에 내려앉았다(말귀 실측 2026-09-17). 이제 키는
143
159
  차트가 쥔 값(막대 자리 높이 · 링 지름)에서 오므로 여기서 박지 않는다. */
144
- .manager-bar-chart-plot--loading,
160
+ .bar-chart__plot--loading,
145
161
  .ring-chart--loading {
146
162
  display: flex;
147
163
  justify-content: center;
148
164
  align-items: center;
149
165
  }
150
166
  /* 축 자리만 잡는 줄 — 글자가 없어도 한 줄 높이를 가진다 */
151
- .manager-bar-chart-area--loading .manager-bar-chart-x-axis {
167
+ .bar-chart__area--loading .bar-chart__x-axis {
152
168
  justify-content: center;
153
169
  }
154
170
 
155
- .barchart-sub-row {
171
+ .chart-section__sub-row {
156
172
  display: flex;
157
173
  justify-content: space-between;
158
174
  align-items: flex-start;
@@ -160,42 +176,42 @@
160
176
  }
161
177
  /* 서브로우 세로 맞춤(subRowAlign) — 수보다 낮은 것(32px 고르개 등)이 위에 붙어 떠 보일 때 쓴다.
162
178
  수가 가장 높으므로 수의 자리는 안 바뀐다. */
163
- .barchart-sub-row--center { align-items: center; }
164
- .barchart-sub-row--end { align-items: flex-end; }
165
- .barchart-total {
179
+ .chart-section__sub-row--center { align-items: center; }
180
+ .chart-section__sub-row--end { align-items: flex-end; }
181
+ .chart-section__total {
166
182
  display: flex;
167
183
  align-items: baseline;
168
184
  gap: 4px;
169
185
  }
170
186
  /* 진행률 모드: 라벨(윗줄) + 숫자·% (아랫줄) */
171
- .barchart-total--stacked {
187
+ .chart-section__total--stacked {
172
188
  flex-direction: column;
173
189
  align-items: flex-start;
174
190
  /* 이름표와 값이 딱 붙어 한 덩어리로 읽혔다 — 눈금보다 작은 2px 만 띄운다(8px 은 두 줄이 갈라져 보인다) */
175
191
  gap: 2px;
176
192
  }
177
- .barchart-total--stacked .barchart-total__label,
178
- .barchart-total--stacked .barchart-total__num,
179
- .barchart-total--stacked .barchart-total__unit,
180
- .barchart-total--stacked .barchart-total__value {
193
+ .chart-section__total--stacked .chart-section__total__label,
194
+ .chart-section__total--stacked .chart-section__total__num,
195
+ .chart-section__total--stacked .chart-section__total__unit,
196
+ .chart-section__total--stacked .chart-section__total__value {
181
197
  line-height: 1.1;
182
198
  margin: 0;
183
199
  }
184
- .barchart-total__label {
200
+ .chart-section__total__label {
185
201
  color: var(--color-gray);
186
202
  }
187
- .barchart-total__value {
203
+ .chart-section__total__value {
188
204
  display: flex;
189
205
  align-items: baseline;
190
206
  gap: 4px;
191
207
  }
192
- .barchart-total__num {
208
+ .chart-section__total__num {
193
209
  color: var(--color-black);
194
210
  }
195
- .barchart-total__unit {
211
+ .chart-section__total__unit {
196
212
  color: var(--color-gray);
197
213
  }
198
-
214
+ .chart-section__legend,
199
215
  .manager-bar-chart-legend {
200
216
  display: flex;
201
217
  flex-direction: column; /* 항상 세로로 나열 */
@@ -205,10 +221,12 @@
205
221
  font-size: 12px;
206
222
  color: var(--color-gray);
207
223
  }
224
+ .chart-section__legend-item,
208
225
  .manager-bar-chart-legend-item {
209
226
  display: inline-flex;
210
227
  align-items: center;
211
228
  }
229
+ .chart-section__legend-dot,
212
230
  .manager-bar-chart-legend-dot {
213
231
  display: inline-block;
214
232
  width: 8px;
@@ -218,43 +236,46 @@
218
236
  }
219
237
 
220
238
  /* size='small' — 대시보드 작은 그리드에 들어가는 블럭형 카드. 컨트롤/total 블록은 없고 legend는 유지.
221
- 패딩·헤더 높이·간격을 StatChart(.manager-stat-card)와 동일하게 맞춰, 같은 그리드 행에 나란히
239
+ 패딩·헤더 높이·간격을 StatChart(.stat-chart__card)와 동일하게 맞춰, 같은 그리드 행에 나란히
222
240
  놓였을 때 숫자 세로 위치가 어긋나지 않게 한다 */
223
- .manager-section--compact {
241
+ .chart-section--compact {
224
242
  --card-pad: 19px; /* 20 − 테두리 1px */
225
243
  padding: var(--card-pad);
226
244
  min-width: 160px;
227
245
  }
228
- .manager-section--compact .manager-section__head {
246
+ .chart-section--compact .chart-section__head,
247
+ .chart-section--compact .manager-section__head {
229
248
  min-height: 28px;
230
249
  margin-bottom: 4px;
231
250
  }
232
- /* size='small' 제목 — StatChart(.manager-stat-card__label)와 동일한 색상으로 톤 통일 */
251
+ /* size='small' 제목 — StatChart(.stat-chart__card__label)와 동일한 색상으로 톤 통일 */
233
252
  .chart-section-title--small {
234
253
  color: var(--color-deepGray);
235
254
  }
236
255
  /* size='small' total 숫자 — h0(40px)는 작은 카드에 비해 과커서 StatChart 값(32px, line-height:1)과
237
256
  폰트 크기·줄높이를 동일하게 맞춰 다른 스탯 카드들과 세로 위치가 어긋나지 않게 함.
238
257
  서브로우 간격도 좁혀 숫자와 차트 본체(링/막대)가 너무 떨어져 보이지 않게 함 */
239
- .manager-section--compact .barchart-total__num {
258
+ .chart-section--compact .chart-section__total__num {
240
259
  font-size: 32px;
241
260
  line-height: 1;
242
261
  }
243
262
  /* total(숫자)은 옆의 legend가 길어져도 절대 줄어들면(글자 단위 줄바꿈) 안 됨 — 항상 제 크기 확보 */
244
- .manager-section--compact .barchart-total {
263
+ .chart-section--compact .chart-section__total {
245
264
  flex-shrink: 0;
246
265
  }
247
- .manager-section--compact .barchart-sub-row {
266
+ .chart-section--compact .chart-section__sub-row {
248
267
  margin-bottom: var(--spacing-s);
249
268
  }
250
269
  /* size='small' legend — 대시보드 좁은 카드에서 이용권 상품명처럼 긴 라벨이 줄바꿈돼
251
270
  total 숫자와 겹치는 것을 막기 위해, total이 쓰고 남은 폭만 차지하고 그 안에서 말줄임 처리 */
252
- .manager-section--compact .manager-bar-chart-legend {
271
+ .chart-section--compact .chart-section__legend,
272
+ .chart-section--compact .manager-bar-chart-legend {
253
273
  flex: 1 1 auto;
254
274
  min-width: 0;
255
275
  align-items: stretch;
256
276
  }
257
- .manager-section--compact .manager-bar-chart-legend-item {
277
+ .chart-section--compact .chart-section__legend-item,
278
+ .chart-section--compact .manager-bar-chart-legend-item {
258
279
  display: flex;
259
280
  justify-content: flex-end;
260
281
  width: 100%;
@@ -265,17 +286,17 @@
265
286
  }
266
287
 
267
288
  /* size='large' — 가로 폭을 거의 100% 차지(플렉스 컨테이너 기준 1열) */
268
- .manager-section--full {
289
+ .chart-section--full {
269
290
  flex: 1 1 100%;
270
291
  width: 100%;
271
292
  }
272
293
 
273
294
  /* 좁은 화면에서 compact 카드의 min-width 160px 풀기.
274
- 이 파일의 @media 블록(31행)은 `.manager-section--compact`(134행)보다 **앞**에 있어
295
+ 이 파일의 @media 블록(31행)은 `.chart-section--compact`(134행)보다 **앞**에 있어
275
296
  같은 특이도로는 덮이지 않는다 — 그래서 파일 끝에 따로 둔다.
276
297
  매니저 대시보드에서 이 하한 때문에 320px 그리드가 27px 잘려 오른쪽 카드가 닿지 않았다. */
277
298
  @media (max-width: 767px) {
278
- .manager-section--compact {
299
+ .chart-section--compact {
279
300
  min-width: 0;
280
301
  }
281
302
  }
@@ -284,14 +305,18 @@
284
305
  compact 의 min-width(160px)보다 뒤에 둬야 같은 특이도로 이긴다 — **파일 끝**에 둔다.
285
306
  세로 flex 라서, 같은 줄 카드끼리 늘어난 높이를 차트 몸통 위에 몰아 막대·링이 바닥에 선다
286
307
  (말귀 훈련 현황의 네 칸이 범례 줄 수가 달라 막대 바닥이 들쭉날쭉했다). */
308
+ .chart-section--grid,
287
309
  .manager-section--grid {
288
310
  margin-bottom: 0;
289
311
  min-width: 0;
290
312
  display: flex;
291
313
  flex-direction: column;
292
314
  }
293
- .manager-section--grid > .manager-bar-chart-wrap,
294
- .manager-section--grid > .manager-bar-chart-loading,
315
+ .chart-section--grid > .bar-chart__wrap,
316
+ .chart-section--grid > .bar-chart__loading,
317
+ .chart-section--grid > .ring-chart-section-body,
318
+ .manager-section--grid > .bar-chart__wrap,
319
+ .manager-section--grid > .bar-chart__loading,
295
320
  .manager-section--grid > .ring-chart-section-body {
296
321
  margin-top: auto;
297
322
  }
@@ -89,7 +89,7 @@ export interface ChartSectionProps {
89
89
  * 설명 한 줄만 더 붙는 것" 으로 정했다(2026-09-17) — 그래서 자리를 서브로우로 옮겼다. **prop 이름은 그대로** 두었으니
90
90
  * 넘기던 소비자는 고칠 것이 없다.
91
91
  *
92
- * `subRow` 를 함께 주면 이 수가 **그 앞** 에 선다(한 `.barchart-sub-row` 안에서 수는 왼쪽, 범례는 오른쪽 — BarChart 와 같은 결). */
92
+ * `subRow` 를 함께 주면 이 수가 **그 앞** 에 선다(한 `.chart-section__sub-row` 안에서 수는 왼쪽, 범례는 오른쪽 — BarChart 와 같은 결). */
93
93
  totalNum?: ReactNode;
94
94
  /** 수 뒤 단위(`%` 등) — `totalNum` 과 함께 쓴다 */
95
95
  totalUnit?: ReactNode;
@@ -112,10 +112,10 @@ export interface ChartSectionProps {
112
112
  /** 섹션 루트에 추가할 클래스 */
113
113
  className?: string;
114
114
  /**
115
- * CSS 격자(한 줄에 여러 칸) 안에 세울 때 켠다 — `manager-section--grid`.
115
+ * CSS 격자(한 줄에 여러 칸) 안에 세울 때 켠다 — `chart-section--grid`.
116
116
  * 아래 여백(14px)·최소 폭(320px)을 풀고 카드를 세로 flex 로 만들어, 같은 줄 카드끼리 높이가 늘어나면
117
117
  * 차트 몸통(막대·링·로딩)을 **카드 바닥**에 맞춘다(범례 줄 수가 달라도 막대 바닥이 한 선).
118
- * 차트가 아닌 카드에 같은 꼴이 필요하면 `manager-section manager-section--grid` 클래스를 그대로 쓴다.
118
+ * 차트가 아닌 카드에 같은 꼴이 필요하면 `chart-section chart-section--grid` 클래스를 그대로 쓴다.
119
119
  */
120
120
  inGrid?: boolean;
121
121
  children?: ReactNode;
@@ -12,16 +12,17 @@ import TooltipInfo from './Tooltip/InfoTooltip';
12
12
  import { useHoverAnchor } from '../hooks/useHoverAnchor';
13
13
  import { useIsoLayoutEffect } from '../hooks/useIsoLayoutEffect';
14
14
  import MenuTooltip from './Tooltip/MenuTooltip';
15
+ import { withLegacy } from '../utils/legacyBlocks';
15
16
  /** 차트 범례 — 색상 점 + 라벨 목록. BarChart/RingChart 섹션이 공유. @public */
16
17
  export function ChartLegend({ items, className }) {
17
- return (_jsx("div", { className: className ? `manager-bar-chart-legend ${className}` : 'manager-bar-chart-legend', children: items.map((it, i) => (_jsxs("span", { className: "manager-bar-chart-legend-item", children: [_jsx("span", { className: "manager-bar-chart-legend-dot", style: { background: it.color } }), it.label] }, i))) }));
18
+ return (_jsx("div", { className: withLegacy(className ? `chart-section__legend ${className}` : 'chart-section__legend'), children: items.map((it, i) => (_jsxs("span", { className: withLegacy("chart-section__legend-item"), children: [_jsx("span", { className: withLegacy("chart-section__legend-dot"), style: { background: it.color } }), it.label] }, i))) }));
18
19
  }
19
20
  /** 차트 총계 표시 — label이 있으면 라벨(윗줄)+값(아랫줄) stacked, 없으면 값만. @public */
20
21
  export function ChartTotal({ label, children }) {
21
22
  if (!label) {
22
- return _jsx("div", { className: "barchart-total", children: children });
23
+ return _jsx("div", { className: withLegacy("chart-section__total"), children: children });
23
24
  }
24
- return (_jsxs("div", { className: "barchart-total barchart-total--stacked", children: [_jsx("span", { className: "barchart-total__label body-3", children: label }), _jsx("span", { className: "barchart-total__value", children: children })] }));
25
+ return (_jsxs("div", { className: withLegacy("chart-section__total chart-section__total--stacked"), children: [_jsx("span", { className: withLegacy("chart-section__total__label body-3"), children: label }), _jsx("span", { className: withLegacy("chart-section__total__value"), children: children })] }));
25
26
  }
26
27
  /**
27
28
  * 차트 카드 공통 레이아웃 — 제목 헤더 + total/legend 서브로우 + 차트 본체.
@@ -104,17 +105,17 @@ export default function ChartSection({ title, titleClassName = 'h3', titleLevel
104
105
  /* 제목(과 `disc`) 아래 수 — 차트 카드(BarChart·RingChart)가 쓰는 `ChartTotal` 그 꼴을 그대로 쓴다.
105
106
  같은 자리에 두 모양이 생기면 카드마다 눈금이 달라진다(설명 `disc` 를 머리 아래 한 줄로 모은 것과 같은 까닭).
106
107
  0.176.0 까지는 머리 오른쪽에 한 줄로 섰다 — 사용자가 차트 카드의 그 꼴로 정했다(2026-09-17). */
107
- const totalRow = (totalNum != null || totalLabel) ? (_jsxs(ChartTotal, { label: totalLabel, children: [totalNum != null && _jsx("span", { className: "barchart-total__num h0", children: totalNum }), totalUnit && _jsx("span", { className: "barchart-total__unit h5", children: totalUnit })] })) : null;
108
+ const totalRow = (totalNum != null || totalLabel) ? (_jsxs(ChartTotal, { label: totalLabel, children: [totalNum != null && _jsx("span", { className: withLegacy("chart-section__total__num h0"), children: totalNum }), totalUnit && _jsx("span", { className: withLegacy("chart-section__total__unit h5"), children: totalUnit })] })) : null;
108
109
  /* 머리 오른쪽에는 **고르개와 `headRight` 만** 남는다 — 고르개가 먼저, 상세보기 단추가 오른쪽 끝(사용자 지시 2026-09-17) */
109
- const headRightNode = (rightNode || headSegment) ? (_jsxs("div", { className: "manager-section__head-right", children: [headSegment && (collapsed ? (_jsx(Button, { htmlType: "button", size: 32, type: "dot", icon: "ellipsis", ariaLabel: headSegment.ariaLabel ?? t('common.more', '더보기'), showTooltipInfo: headSegment.ariaLabel ?? t('common.more', '더보기'), "aria-haspopup": "menu", "aria-expanded": !!menuRect, onClick: openMenu })) : (_jsx(SegmentedControl, { size: 32, ariaLabel: headSegment.ariaLabel, options: headSegment.options.map(o => ({ key: o.key, label: o.label, disabled: o.disabled })), value: headSegment.value, onChange: headSegment.onChange }))), rightNode] })) : null;
110
+ const headRightNode = (rightNode || headSegment) ? (_jsxs("div", { className: withLegacy("chart-section__head-right"), children: [headSegment && (collapsed ? (_jsx(Button, { htmlType: "button", size: 32, type: "dot", icon: "ellipsis", ariaLabel: headSegment.ariaLabel ?? t('common.more', '더보기'), showTooltipInfo: headSegment.ariaLabel ?? t('common.more', '더보기'), "aria-haspopup": "menu", "aria-expanded": !!menuRect, onClick: openMenu })) : (_jsx(SegmentedControl, { size: 32, ariaLabel: headSegment.ariaLabel, options: headSegment.options.map(o => ({ key: o.key, label: o.label, disabled: o.disabled })), value: headSegment.value, onChange: headSegment.onChange }))), rightNode] })) : null;
110
111
  const titleId = useId();
111
112
  const TitleTag = titleLevel ? `h${titleLevel}` : 'div';
112
- return (_jsxs("section", { ref: secRef, className: ['manager-section', inGrid && 'manager-section--grid', onClick && 'manager-section--clickable', className].filter(Boolean).join(' '), onClick: onClick ? onCardClick : undefined, onKeyDown: onClick ? onCardKeyDown : undefined, onPointerEnter: tooltip ? showTip : undefined, onPointerLeave: tooltip ? closeTip : undefined, onFocus: tooltip ? showTip : undefined, onBlur: tooltip ? closeTip : undefined, role: onClick ? 'button' : undefined, tabIndex: onClick ? 0 : undefined, "aria-label": onClick ? (ariaLabel ?? (typeof title === 'string' ? title : undefined)) : undefined, "aria-labelledby": !onClick && title != null ? titleId : undefined, children: [tooltip && tipRect && (_jsx(TooltipInfo, { anchorRect: {
113
+ return (_jsxs("section", { ref: secRef, className: withLegacy(['chart-section', inGrid && 'chart-section--grid', onClick && 'chart-section--clickable', className].filter(Boolean).join(' ')), onClick: onClick ? onCardClick : undefined, onKeyDown: onClick ? onCardKeyDown : undefined, onPointerEnter: tooltip ? showTip : undefined, onPointerLeave: tooltip ? closeTip : undefined, onFocus: tooltip ? showTip : undefined, onBlur: tooltip ? closeTip : undefined, role: onClick ? 'button' : undefined, tabIndex: onClick ? 0 : undefined, "aria-label": onClick ? (ariaLabel ?? (typeof title === 'string' ? title : undefined)) : undefined, "aria-labelledby": !onClick && title != null ? titleId : undefined, children: [tooltip && tipRect && (_jsx(TooltipInfo, { anchorRect: {
113
114
  left: tipRect.left,
114
115
  top: tipRect.top + 21,
115
116
  right: tipRect.right,
116
117
  bottom: tipRect.bottom,
117
118
  width: tipRect.width,
118
119
  height: tipRect.height,
119
- }, text: tooltip })), headFloat && _jsx(SectionHeadFloat, { children: headFloat }), _jsxs("div", { className: "manager-section__head", children: [_jsxs("div", { className: "manager-section__title-row", children: [icon && _jsx(Icon, { icon: icon, label: typeof title === 'string' ? title : undefined, className: "manager-section__icon" }), _jsx(TitleTag, { id: titleId, className: ['manager-section__title', titleClassName].filter(Boolean).join(' '), children: title })] }), headRightNode, disc && _jsx("div", { className: "manager-section__disc body-3", children: disc })] }), (totalRow || subRow) && (_jsxs("div", { className: ['barchart-sub-row', subRowAlign !== 'start' && `barchart-sub-row--${subRowAlign}`].filter(Boolean).join(' '), children: [totalRow, subRow] })), children, menuRect && (_jsx(Tooltip, { anchorRect: menuRect, onClose: closeMenu, ariaLabel: headSegment?.ariaLabel ?? t('tooltip.menu', '메뉴'), children: _jsx(MenuTooltip, { columns: [{ items: menuItems }], onClose: closeMenu, size: "small" }) }))] }));
120
+ }, text: tooltip })), headFloat && _jsx(SectionHeadFloat, { children: headFloat }), _jsxs("div", { className: withLegacy("chart-section__head"), children: [_jsxs("div", { className: withLegacy("chart-section__title-row"), children: [icon && _jsx(Icon, { icon: icon, label: typeof title === 'string' ? title : undefined, className: withLegacy("chart-section__icon") }), _jsx(TitleTag, { id: titleId, className: withLegacy(['chart-section__title', titleClassName].filter(Boolean).join(' ')), children: title })] }), headRightNode, disc && _jsx("div", { className: withLegacy("chart-section__disc body-3"), children: disc })] }), (totalRow || subRow) && (_jsxs("div", { className: withLegacy(['chart-section__sub-row', subRowAlign !== 'start' && `chart-section__sub-row--${subRowAlign}`].filter(Boolean).join(' ')), children: [totalRow, subRow] })), children, menuRect && (_jsx(Tooltip, { anchorRect: menuRect, onClose: closeMenu, ariaLabel: headSegment?.ariaLabel ?? t('tooltip.menu', '메뉴'), children: _jsx(MenuTooltip, { columns: [{ items: menuItems }], onClose: closeMenu, size: "small" }) }))] }));
120
121
  }
@@ -0,0 +1,87 @@
1
+ /* **동그란 배지**(`CircleBadge`) — 번호·체크·빼기 점.
2
+ *
3
+ * 2026-10-28 까지 이 규칙들이 `Badge.css` 에 살았다. `CircleBadge.tsx` 는 제 CSS 파일이
4
+ * 아예 없어서, 그 컴포넌트의 겉모습을 고치려면 **남의 파일**을 열어야 했다(`NAMING.md` §3).
5
+ *
6
+ * `Badge type="dot"` 도 같은 꼴을 그려 이 이름을 함께 쓴다 — 둘이 **한 물건**이라 그렇다.
7
+ * 제자리로 가려면 `Badge` 의 점 가지가 `<CircleBadge>` 를 그려야 하는데, 그쪽은 `onClick`
8
+ * ·`animate`·아이콘 갈래를 더 들고 있어 **겉모습이 아니라 동작을 옮기는 일**이 된다.
9
+ * 이름 정리와 함께 하지 않는다 — 규칙이 사는 자리만 바로잡는다.
10
+ */
11
+ /* ═══════════════════════════════════════════════════════════════════════════
12
+ Dot Badge (type="dot") — 원형 아이콘/숫자 뱃지
13
+ 부모 요소에 position: relative 필요
14
+ ═══════════════════════════════════════════════════════════════════════════ */
15
+ .circle-badge {
16
+ position: absolute;
17
+ display: inline-flex;
18
+ align-items: center;
19
+ justify-content: center;
20
+ flex-shrink: 0; /* flex 컨테이너(표 셀 등)에서 눌려 찌그러지지 않도록 */
21
+ border-radius: 50%;
22
+ border: 2px solid var(--color-pureWhite);
23
+ box-sizing: border-box;
24
+ line-height: 1;
25
+ font-weight: 700;
26
+ pointer-events: none;
27
+ user-select: none;
28
+ transition: background 0.12s, transform 0.12s;
29
+ z-index: 1;
30
+ }
31
+ .circle-badge--animate {
32
+ animation: circle-badge-pop 0.24s cubic-bezier(0.34, 1.56, 0.64, 1);
33
+ }
34
+ .circle-badge--animate { animation: none; }
35
+ /* clickable */
36
+ .circle-badge--clickable {
37
+ pointer-events: auto;
38
+ cursor: pointer;
39
+ }
40
+ .circle-badge--clickable:hover {
41
+ transform: scale(1.12);
42
+ }
43
+ /* ── 위치 ── */
44
+ .circle-badge--top-right {
45
+ top: -6px;
46
+ right: -6px;
47
+ }
48
+ .circle-badge--top-left {
49
+ top: -6px;
50
+ left: -6px;
51
+ }
52
+ /* 인라인(불릿·단계 번호) — absolute 해제, 흐름 안에 배치. 오버레이용 흰 테두리 제거 */
53
+ .circle-badge--inline {
54
+ position: static;
55
+ border: none;
56
+ }
57
+ /* ── 크기 ── Button과 같은 숫자 스케일(size={24|32|40})
58
+ 흰 테두리(top-right 오버레이용) 두께도 크기에 맞춰 조정한다 — 작은 배지(24)는 1px. */
59
+ .circle-badge--24 { width: 24px; height: 24px; font-size: 11px; border-width: 1px; }
60
+ .circle-badge--32 { width: 32px; height: 32px; font-size: 14px; border-width: 2px; }
61
+ .circle-badge--40 { width: 40px; height: 40px; font-size: 16px; border-width: 2px; }
62
+ /* ── 아이콘별 색상 ── */
63
+ .circle-badge--check,
64
+ .circle-badge--number {
65
+ background: var(--color-main);
66
+ color: #ffffff;
67
+ }
68
+ .circle-badge--remove {
69
+ background: var(--color-error);
70
+ color: #ffffff;
71
+ }
72
+ .circle-badge--minus {
73
+ background: var(--color-lightGray);
74
+ color: #ffffff;
75
+ }
76
+ /* ── svg 크기 ── */
77
+ .circle-badge--24 svg { width: 11px; height: 11px; }
78
+ .circle-badge--32 svg { width: 15px; height: 15px; }
79
+ .circle-badge--40 svg { width: 19px; height: 19px; }
80
+
81
+ /* 등장 애니메이션 (animate) — 선택 순간 '톡' 튀어나오게. 살짝 오버슈트했다가 제자리로.
82
+ 접근성: 모션 최소화를 켠 사용자에게는 페이드만 남긴다. */
83
+ @keyframes circle-badge-pop {
84
+ 0% { transform: scale(0.3); opacity: 0; }
85
+ 60% { transform: scale(1.12); opacity: 1; }
86
+ 100% { transform: scale(1); opacity: 1; }
87
+ }
@@ -1,4 +1,5 @@
1
1
  import { type ReactNode } from 'react';
2
+ import './CircleBadge.css';
2
3
  import './Badge.css';
3
4
  /** 부모 코너 배치. inline 은 흐름 배치. @public */
4
5
  export type CircleBadgePosition = 'top-left' | 'top-right' | 'inline';
@@ -1,5 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { cx } from '../utils/cx';
3
+ import './CircleBadge.css';
3
4
  import './Badge.css';
4
5
  /**
5
6
  * 원형 식별 배지 — 짧은 문자/숫자를 원 안에 보여준다.
@@ -78,7 +78,7 @@ export default function CountTile({ icon, count, title, plan, tooltip = true, ho
78
78
  useEffect(() => {
79
79
  if (!isOpen)
80
80
  return;
81
- const isKeepAlive = (t) => t instanceof Element && (ref.current?.contains(t) || Boolean(t.closest('.tooltip-training')));
81
+ const isKeepAlive = (t) => t instanceof Element && (ref.current?.contains(t) || Boolean(t.closest('.training-tooltip')));
82
82
  const onPointerOut = (e) => { if (isKeepAlive(e.target)) {
83
83
  clearTimers();
84
84
  }
@@ -9,7 +9,7 @@ import Badge from './Badge';
9
9
  import MenuTooltip from './Tooltip/MenuTooltip';
10
10
  import { useAnchoredMenu, anchoredMenuZIndex } from '../hooks/useAnchoredMenu';
11
11
  import { createPortal } from 'react-dom';
12
- // 메뉴 표면(.tooltip-content) 정의 — Tooltip.tsx를 거치지 않고 클래스만 쓰므로 명시적으로.
12
+ // 메뉴 표면(.tooltip__content) 정의 — Tooltip.tsx를 거치지 않고 클래스만 쓰므로 명시적으로.
13
13
  import './Tooltip/Tooltip.css';
14
14
  import SideNav from './SideNav';
15
15
  import { resolveAssetUrl } from '../utils';
@@ -18,6 +18,7 @@ import LogoSvg from '../logo/Logo_SpeechEar_ko.svg';
18
18
  import LogoManagerSvg from '../logo/Logo_SpeechEarManager_ko.svg';
19
19
  import SymbolSvg from '../logo/Symbol_SpeechEar.svg';
20
20
  import './Header.css';
21
+ import { withLegacy } from '../utils/legacyBlocks';
21
22
  /** @public */
22
23
  export function BrandIdentity({ appMode }) {
23
24
  const { t } = useTranslation();
@@ -133,7 +134,7 @@ export default function Header({ activeKey, onChange, items, malgwiItems: _malgw
133
134
  손대지 않는다 — 거기에 다른 뜻을 겹치면 맞는 세 쓰임이 서로를 막는다). */
134
135
  ariaLabel: onNotification && unreadCount && unreadCount > 0
135
136
  ? t('nav.badgeInsideLabel', { label: t('header.menuOpen', '메뉴 열기'), count: unreadCount, defaultValue: '{{label}}, 안에 알림 {{count}}개' })
136
- : t('header.menuOpen', '메뉴 열기'), onClick: toggleUtilMenu, "aria-expanded": utilOpen, "aria-controls": utilOpen ? utilMenuId : undefined }), !!onNotification && !!unreadCount && unreadCount > 0 && (_jsx(Badge, { type: "dot", number: Math.min(unreadCount, 99), size: 24, "aria-hidden": true })), utilOpen && createPortal(_jsx("div", { id: utilMenuId, role: "group", "aria-label": t('header.utilMenu', '유틸리티 메뉴'), className: "tooltip-content", style: utilMenuStyle, ref: utilMenuRef, children: _jsx(MenuTooltip, { columns: utilColumns, onClose: closeUtilMenu }) }), document.body)] })] }), _jsx(SideNav, { scrollContainer: scrollContainer, items: items, activeKey: activeKey ?? undefined, onChange: onChange, unreadCount: unreadCount, onDebug: onDebug, onNotification: onNotification, onAccount: onAccount, onSetting: onSetting, onHelp: onHelp, onFeedback: onFeedback, appMode: appMode, onAppModeChange: onAppModeChange }), isMobile && _jsx(BottomNav, { items: bottomItems, activeKey: activeKey ?? undefined, onChange: handleBottomChange, scrollContainer: scrollContainer, appMode: appMode, onAppModeChange: onAppModeChange })] }));
137
+ : t('header.menuOpen', '메뉴 열기'), onClick: toggleUtilMenu, "aria-expanded": utilOpen, "aria-controls": utilOpen ? utilMenuId : undefined }), !!onNotification && !!unreadCount && unreadCount > 0 && (_jsx(Badge, { type: "dot", number: Math.min(unreadCount, 99), size: 24, "aria-hidden": true })), utilOpen && createPortal(_jsx("div", { id: utilMenuId, role: "group", "aria-label": t('header.utilMenu', '유틸리티 메뉴'), className: withLegacy("tooltip__content"), style: utilMenuStyle, ref: utilMenuRef, children: _jsx(MenuTooltip, { columns: utilColumns, onClose: closeUtilMenu }) }), document.body)] })] }), _jsx(SideNav, { scrollContainer: scrollContainer, items: items, activeKey: activeKey ?? undefined, onChange: onChange, unreadCount: unreadCount, onDebug: onDebug, onNotification: onNotification, onAccount: onAccount, onSetting: onSetting, onHelp: onHelp, onFeedback: onFeedback, appMode: appMode, onAppModeChange: onAppModeChange }), isMobile && _jsx(BottomNav, { items: bottomItems, activeKey: activeKey ?? undefined, onChange: handleBottomChange, scrollContainer: scrollContainer, appMode: appMode, onAppModeChange: onAppModeChange })] }));
137
138
  }
138
139
  /**
139
140
  * `Header`의 alias입니다. 프로젝트 내 `Header`라는 이름이 이미 사용 중일 때 충돌 없이 임포트할 수 있습니다.
@@ -5,6 +5,7 @@ import { useTranslation } from 'react-i18next';
5
5
  import Loader from './Loader';
6
6
  import Icon from './Icon';
7
7
  import ChartSection, { ChartTotal, ChartLegend } from './ChartSection';
8
+ import { withLegacy } from '../utils/legacyBlocks';
8
9
  const RING_SIZE_PRESET = {
9
10
  small: { diameter: 96, strokeWidth: 16 },
10
11
  medium: { diameter: 120, strokeWidth: 18 },
@@ -62,13 +63,13 @@ export default function RingChart({ titleKey, titleLevel, headRight, icon, showT
62
63
  const loaderSize = typeof ringProps.size === 'number' ? ringProps.size : RING_SIZE_PRESET[ringProps.size ?? 'medium'].diameter;
63
64
  // size='large' — 카드가 가로 폭을 거의 100% 차지(1열)
64
65
  const isLarge = ringProps.size === 'large';
65
- const sectionClassName = [className, isSmall ? 'manager-section--compact' : isLarge ? 'manager-section--full' : '']
66
+ const sectionClassName = [className, isSmall ? 'chart-section--compact' : isLarge ? 'chart-section--full' : '']
66
67
  .filter(Boolean).join(' ') || undefined;
67
- // StatChart(.manager-stat-card__icon)와 동일한 톤 — headRight 자리에 렌더(둘 중 하나만 사용)
68
- const iconNode = icon && (_jsx("span", { className: "chart-section-icon", children: _jsx(Icon, { icon: icon, className: "chart-section-icon-inner" }) }));
69
- return (_jsx(ChartSection, { className: sectionClassName, inGrid: inGrid, onClick: onClick, ariaLabel: ariaLabel, tooltip: tooltip, title: t(titleKey), titleLevel: titleLevel, titleClassName: isSmall ? 'h5 chart-section-title--small' : undefined, headRight: iconNode || (isSmall ? undefined : headRight), subRow: (showTotal || legend) && _jsxs(_Fragment, { children: [showTotal ? (_jsxs(ChartTotal, { label: !isSmall && totalLabelKey ? t(totalLabelKey) : undefined, children: [_jsx("span", { className: "barchart-total__num h0", children: pct }), _jsx("span", { className: "barchart-total__unit h5", children: "%" })] })) : _jsx("span", {}), legend && _jsx(ChartLegend, { items: legend })] }), children: loading ? (
68
+ // StatChart(.stat-chart__card__icon)와 동일한 톤 — headRight 자리에 렌더(둘 중 하나만 사용)
69
+ const iconNode = icon && (_jsx("span", { className: withLegacy("chart-section-icon"), children: _jsx(Icon, { icon: icon, className: withLegacy("chart-section-icon-inner") }) }));
70
+ return (_jsx(ChartSection, { className: sectionClassName, inGrid: inGrid, onClick: onClick, ariaLabel: ariaLabel, tooltip: tooltip, title: t(titleKey), titleLevel: titleLevel, titleClassName: isSmall ? 'h5 chart-section-title--small' : undefined, headRight: iconNode || (isSmall ? undefined : headRight), subRow: (showTotal || legend) && _jsxs(_Fragment, { children: [showTotal ? (_jsxs(ChartTotal, { label: !isSmall && totalLabelKey ? t(totalLabelKey) : undefined, children: [_jsx("span", { className: withLegacy("chart-section__total__num h0"), children: pct }), _jsx("span", { className: withLegacy("chart-section__total__unit h5"), children: "%" })] })) : _jsx("span", {}), legend && _jsx(ChartLegend, { items: legend })] }), children: loading ? (
70
71
  /* 링도 같은 병이 있었다 — 기다림 상자 186px, 그려진 링은 지름(medium 120px)이다.
71
72
  **그려질 링과 같은 자리·같은 지름**의 뼈대를 세우고 그 안에서 기다린다
72
73
  (BarChart 와 같은 결, 사용자 지시 2026-09-17 "뼈대 먼저, 그 안에서 로딩"). */
73
- _jsx("div", { className: "ring-chart-section-body ring-chart-section-body--offset", children: _jsx("div", { className: "ring-chart ring-chart--loading", style: { width: loaderSize, height: loaderSize }, "aria-busy": "true", children: _jsx(Loader, { size: 32 }) }) })) : (_jsx("div", { className: "ring-chart-section-body ring-chart-section-body--offset", children: _jsx(RingChartCanvas, { ...ringProps, hideCenter: ringProps.hideCenter ?? isSmall }) })) }));
74
+ _jsx("div", { className: withLegacy("ring-chart-section-body ring-chart-section-body--offset"), children: _jsx("div", { className: "ring-chart ring-chart--loading", style: { width: loaderSize, height: loaderSize }, "aria-busy": "true", children: _jsx(Loader, { size: 32 }) }) })) : (_jsx("div", { className: withLegacy("ring-chart-section-body ring-chart-section-body--offset"), children: _jsx(RingChartCanvas, { ...ringProps, hideCenter: ringProps.hideCenter ?? isSmall }) })) }));
74
75
  }
@@ -17,7 +17,7 @@
17
17
  **세로 flex 로도 세운다** — 격자 칸은 높이가 늘어나므로, 속을 그 키에 맞춰 늘리려면(카드 바닥을
18
18
  한 선에 맞추는 것) 칸 자신이 세로 flex 여야 한다. 소비자가 `.그리드 > .section { display: flex;
19
19
  flex-direction: column }` 을 다시 칠하던 자리다(말귀 `TrainingInsightPanel.css`, 2026-09-30 코어 쪽 대조).
20
- `ChartSection` 의 `inGrid`(`.manager-section--grid`)는 처음부터 이렇게 한다 — 두 카드가 한 격자에 설 때
20
+ `ChartSection` 의 `inGrid`(`.chart-section--grid`)는 처음부터 이렇게 한다 — 두 카드가 한 격자에 설 때
21
21
  같은 말이어야 한다. */
22
22
  .section--in-grid {
23
23
  padding-bottom: 0;
@@ -20,7 +20,7 @@ export interface SectionHeadFloatProps {
20
20
  * 3. **제 폭을 재어 알린다** — 띄운 줄은 흐름에서 빠져 제목·곁줄을 덮으므로 그만큼 비워 둬야 하는데,
21
21
  * 부르는 쪽이 눈대중으로 `padding-right: 260px` 같은 수를 적고 있었다. 잰 폭을 부모에
22
22
  * `--section-head-float-w` 로 적으므로, 비울 자리는 `padding-right: calc(var(--section-head-float-w, -12px) + 12px)`
23
- * 한 줄이면 된다(안 띄운 카드에서는 0 이 된다). 코어 카드(`manager-section`)는 이미 그렇게 해 둔다.
23
+ * 한 줄이면 된다(안 띄운 카드에서는 0 이 된다). 코어 카드(`chart-section`)는 이미 그렇게 해 둔다.
24
24
  *
25
25
  * 기준점은 **부모가 준다** — 카드에 `position: relative` 가 있어야 한다(코어 카드에는 있다).
26
26
  * @public
@@ -18,7 +18,7 @@ import './SectionHeadFloat.css';
18
18
  * 3. **제 폭을 재어 알린다** — 띄운 줄은 흐름에서 빠져 제목·곁줄을 덮으므로 그만큼 비워 둬야 하는데,
19
19
  * 부르는 쪽이 눈대중으로 `padding-right: 260px` 같은 수를 적고 있었다. 잰 폭을 부모에
20
20
  * `--section-head-float-w` 로 적으므로, 비울 자리는 `padding-right: calc(var(--section-head-float-w, -12px) + 12px)`
21
- * 한 줄이면 된다(안 띄운 카드에서는 0 이 된다). 코어 카드(`manager-section`)는 이미 그렇게 해 둔다.
21
+ * 한 줄이면 된다(안 띄운 카드에서는 0 이 된다). 코어 카드(`chart-section`)는 이미 그렇게 해 둔다.
22
22
  *
23
23
  * 기준점은 **부모가 준다** — 카드에 `position: relative` 가 있어야 한다(코어 카드에는 있다).
24
24
  * @public