@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
@@ -373,7 +373,7 @@ export declare interface BarChartProps {
373
373
  * 줄어든다(2026-09-10 말귀 실측). 이 값은 굵기만 바꾼다. 막대가 많아지면 여기
374
374
  * 적은 값을 **위 한계**로 두고 점진 축소하는 것은 그대로다. 아래 한계는 2px(그보다 작은 값은 2 로).
375
375
  *
376
- * CSS 로 덮고 싶으면 `.manager-bar-chart-bar`·`-stack` 의 `--bar-width` 를 쓴다 —
376
+ * CSS 로 덮고 싶으면 `.bar-chart__bar`·`-stack` 의 `--bar-width` 를 쓴다 —
377
377
  * 굵기는 인라인이 아니라 그 변수로 박혀 있다.
378
378
  */
379
379
  barWidth?: number;
@@ -1280,7 +1280,7 @@ export declare interface ChartSectionProps {
1280
1280
  * 설명 한 줄만 더 붙는 것" 으로 정했다(2026-09-17) — 그래서 자리를 서브로우로 옮겼다. **prop 이름은 그대로** 두었으니
1281
1281
  * 넘기던 소비자는 고칠 것이 없다.
1282
1282
  *
1283
- * `subRow` 를 함께 주면 이 수가 **그 앞** 에 선다(한 `.barchart-sub-row` 안에서 수는 왼쪽, 범례는 오른쪽 — BarChart 와 같은 결). */
1283
+ * `subRow` 를 함께 주면 이 수가 **그 앞** 에 선다(한 `.chart-section__sub-row` 안에서 수는 왼쪽, 범례는 오른쪽 — BarChart 와 같은 결). */
1284
1284
  totalNum?: ReactNode;
1285
1285
  /** 수 뒤 단위(`%` 등) — `totalNum` 과 함께 쓴다 */
1286
1286
  totalUnit?: ReactNode;
@@ -1303,10 +1303,10 @@ export declare interface ChartSectionProps {
1303
1303
  /** 섹션 루트에 추가할 클래스 */
1304
1304
  className?: string;
1305
1305
  /**
1306
- * CSS 격자(한 줄에 여러 칸) 안에 세울 때 켠다 — `manager-section--grid`.
1306
+ * CSS 격자(한 줄에 여러 칸) 안에 세울 때 켠다 — `chart-section--grid`.
1307
1307
  * 아래 여백(14px)·최소 폭(320px)을 풀고 카드를 세로 flex 로 만들어, 같은 줄 카드끼리 높이가 늘어나면
1308
1308
  * 차트 몸통(막대·링·로딩)을 **카드 바닥**에 맞춘다(범례 줄 수가 달라도 막대 바닥이 한 선).
1309
- * 차트가 아닌 카드에 같은 꼴이 필요하면 `manager-section manager-section--grid` 클래스를 그대로 쓴다.
1309
+ * 차트가 아닌 카드에 같은 꼴이 필요하면 `chart-section chart-section--grid` 클래스를 그대로 쓴다.
1310
1310
  */
1311
1311
  inGrid?: boolean;
1312
1312
  children?: ReactNode;
@@ -1787,7 +1787,7 @@ export declare function copyText(text: string): Promise<boolean>;
1787
1787
  *
1788
1788
  * 값은 손으로 적고 `test/coreVersion.test.ts` 가 package.json 과 어긋나면 운다.
1789
1789
  */
1790
- export declare const CORE_VERSION = "0.376.0";
1790
+ export declare const CORE_VERSION = "0.379.0";
1791
1791
 
1792
1792
  /** @public */
1793
1793
  declare const coreDefault: Record<string, unknown>;
@@ -6829,7 +6829,7 @@ export declare type SectionHeaderTone = 'dark' | 'light';
6829
6829
  * 3. **제 폭을 재어 알린다** — 띄운 줄은 흐름에서 빠져 제목·곁줄을 덮으므로 그만큼 비워 둬야 하는데,
6830
6830
  * 부르는 쪽이 눈대중으로 `padding-right: 260px` 같은 수를 적고 있었다. 잰 폭을 부모에
6831
6831
  * `--section-head-float-w` 로 적으므로, 비울 자리는 `padding-right: calc(var(--section-head-float-w, -12px) + 12px)`
6832
- * 한 줄이면 된다(안 띄운 카드에서는 0 이 된다). 코어 카드(`manager-section`)는 이미 그렇게 해 둔다.
6832
+ * 한 줄이면 된다(안 띄운 카드에서는 0 이 된다). 코어 카드(`chart-section`)는 이미 그렇게 해 둔다.
6833
6833
  *
6834
6834
  * 기준점은 **부모가 준다** — 카드에 `position: relative` 가 있어야 한다(코어 카드에는 있다).
6835
6835
  * @public
@@ -7563,7 +7563,7 @@ export declare interface StatChartProps {
7563
7563
  tooltip?: string;
7564
7564
  onClick?: () => void;
7565
7565
  /** 값 **아래** 에 붙는 자리 — 목록 몇 줄, "외 n건" 단추처럼 값을 풀어 보이는 것.
7566
- * 이 자리가 없어 소비자가 카드 마크업(`manager-stat-card__*` 여덟 이름)을 통째로 베끼고 있었다(말귀 매니저 '금일 방문 예정'). */
7566
+ * 이 자리가 없어 소비자가 카드 마크업(`stat-chart__card__*` 여덟 이름)을 통째로 베끼고 있었다(말귀 매니저 '금일 방문 예정'). */
7567
7567
  children?: ReactNode;
7568
7568
  }
7569
7569
 
@@ -9915,7 +9915,7 @@ export declare function TrainingTooltip({ plan, groups: givenGroups, anchorRect,
9915
9915
  /**
9916
9916
  * **자료를 손에 들고 주는 길**(말귀 요청 (111), 사용자 지시 2026-10-10). 갈래 이름표 하나에 그 갈래의
9917
9917
  * `trainingData` 들 — `plan` 처럼 **풀에서 찾지 않는다.** 단어 숙제 세트는 문장 풀에 없어 `plan` 으로는
9918
- * 못 그렸고, 앱이 `tooltip-training__*` 클래스를 **빌려** 같은 모양을 손으로 짰다. 같은 상자를 쓴다.
9918
+ * 못 그렸고, 앱이 `training-tooltip__*` 클래스를 **빌려** 같은 모양을 손으로 짰다. 같은 상자를 쓴다.
9919
9919
  * @public
9920
9920
  */
9921
9921
  export declare interface TrainingTooltipGroup {
@@ -11491,6 +11491,17 @@ export declare interface WordSearchResultWord {
11491
11491
  * (말귀가 활용표를 옮기며 실측 2026-10-27).
11492
11492
  */
11493
11493
  captionLabel?: string;
11494
+ /**
11495
+ * 이름표 앞에 서는 **배지** — `captionLabel` 과 한 줄로 낱말 **위**에 선다.
11496
+ *
11497
+ * 활용표의 이름표가 성격이 다른 둘이 되어서다(말귀 청 (328), 2026-10-28 사장님 지시
11498
+ * *"양보 는 badge 로 표현하도록"*). `양보` 는 **무엇을 하는 말인가** — 치료사가 꼴을
11499
+ * 고르는 잣대다. `-아/어도` 는 **어떤 꼬리가 붙는가** — 학습자가 낼 소리다. 한 글자로
11500
+ * 붙여 놓으면 그 둘이 안 갈린다.
11501
+ *
11502
+ * 배지만 주거나 이름표만 줘도 된다. 둘 다 없으면 아무것도 안 선다.
11503
+ */
11504
+ captionBadge?: string;
11494
11505
  homonum?: number;
11495
11506
  grade?: string;
11496
11507
  syllables?: number;
@@ -79,88 +79,12 @@
79
79
  box-shadow: none;
80
80
  }
81
81
 
82
- /* ═══════════════════════════════════════════════════════════════════════════
83
- Dot Badge (type="dot") — 원형 아이콘/숫자 뱃지
84
- 부모 요소에 position: relative 필요
85
- ═══════════════════════════════════════════════════════════════════════════ */
86
82
 
87
- .circle-badge {
88
- position: absolute;
89
- display: inline-flex;
90
- align-items: center;
91
- justify-content: center;
92
- flex-shrink: 0; /* flex 컨테이너(표 셀 등)에서 눌려 찌그러지지 않도록 */
93
- border-radius: 50%;
94
- border: 2px solid var(--color-pureWhite);
95
- box-sizing: border-box;
96
- line-height: 1;
97
- font-weight: 700;
98
- pointer-events: none;
99
- user-select: none;
100
- transition: background 0.12s, transform 0.12s;
101
- z-index: 1;
102
- }
103
83
 
104
- /* 등장 애니메이션 (animate) — 선택 순간 '톡' 튀어나오게. 살짝 오버슈트했다가 제자리로.
105
- 접근성: 모션 최소화를 켠 사용자에게는 페이드만 남긴다. */
106
- @keyframes circle-badge-pop {
107
- 0% { transform: scale(0.3); opacity: 0; }
108
- 60% { transform: scale(1.12); opacity: 1; }
109
- 100% { transform: scale(1); opacity: 1; }
110
- }
111
- .circle-badge--animate {
112
- animation: circle-badge-pop 0.24s cubic-bezier(0.34, 1.56, 0.64, 1);
113
- }
114
84
  @media (prefers-reduced-motion: reduce) {
115
- .circle-badge--animate { animation: none; }
116
85
  }
117
86
 
118
- /* clickable */
119
- .circle-badge--clickable {
120
- pointer-events: auto;
121
- cursor: pointer;
122
- }
123
- .circle-badge--clickable:hover {
124
- transform: scale(1.12);
125
- }
126
87
 
127
- /* ── 위치 ── */
128
- .circle-badge--top-right {
129
- top: -6px;
130
- right: -6px;
131
- }
132
- .circle-badge--top-left {
133
- top: -6px;
134
- left: -6px;
135
- }
136
- /* 인라인(불릿·단계 번호) — absolute 해제, 흐름 안에 배치. 오버레이용 흰 테두리 제거 */
137
- .circle-badge--inline {
138
- position: static;
139
- border: none;
140
- }
141
88
 
142
- /* ── 크기 ── Button과 같은 숫자 스케일(size={24|32|40})
143
- 흰 테두리(top-right 오버레이용) 두께도 크기에 맞춰 조정한다 — 작은 배지(24)는 1px. */
144
- .circle-badge--24 { width: 24px; height: 24px; font-size: 11px; border-width: 1px; }
145
- .circle-badge--32 { width: 32px; height: 32px; font-size: 14px; border-width: 2px; }
146
- .circle-badge--40 { width: 40px; height: 40px; font-size: 16px; border-width: 2px; }
147
89
 
148
- /* ── 아이콘별 색상 ── */
149
- .circle-badge--check,
150
- .circle-badge--number {
151
- background: var(--color-main);
152
- color: #ffffff;
153
- }
154
- .circle-badge--remove {
155
- background: var(--color-error);
156
- color: #ffffff;
157
- }
158
- .circle-badge--minus {
159
- background: var(--color-lightGray);
160
- color: #ffffff;
161
- }
162
90
 
163
- /* ── svg 크기 ── */
164
- .circle-badge--24 svg { width: 11px; height: 11px; }
165
- .circle-badge--32 svg { width: 15px; height: 15px; }
166
- .circle-badge--40 svg { width: 19px; height: 19px; }
@@ -1,5 +1,6 @@
1
1
  import { type ReactNode, type MouseEvent } from 'react';
2
2
  import './Badge.css';
3
+ import './CircleBadge.css';
3
4
  /** @public */
4
5
  export type BadgeType = 'bar' | 'dot';
5
6
  /** @public */
@@ -4,6 +4,10 @@ import { cx } from '../utils/cx';
4
4
  import { useTranslation } from 'react-i18next';
5
5
  import Icon from './Icon';
6
6
  import './Badge.css';
7
+ /* 점 가지(`type="dot"`)가 **`CircleBadge` 와 같은 꼴**을 그린다 — 그 규칙은 그쪽 파일에
8
+ 산다(`NAMING.md` §3). 이 컴포넌트를 통째로 쓰는 화면이 `CircleBadge` 를 안 그릴 수 있어
9
+ 여기서 직접 들여온다. */
10
+ import './CircleBadge.css';
7
11
  // ── 내부 아이콘 ────────────────────────────────────────────────────────────
8
12
  function CheckIcon() {
9
13
  return (_jsx("svg", { viewBox: "0 0 12 12", fill: "none", stroke: "currentColor", strokeWidth: 2.2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: _jsx("polyline", { points: "2,6 5,9 10,3" }) }));
@@ -22,12 +22,12 @@
22
22
  }
23
23
 
24
24
  /* 바 차트 */
25
- .manager-bar-chart-wrap {
25
+ .bar-chart__wrap {
26
26
  display: flex;
27
27
  flex-direction: column;
28
28
  gap: var(--spacing-s);
29
29
  }
30
- .manager-bar-chart-gridline {
30
+ .bar-chart__gridline {
31
31
  position: absolute;
32
32
  left: 0;
33
33
  right: 0;
@@ -36,7 +36,7 @@
36
36
  pointer-events: none;
37
37
  z-index: -1;
38
38
  }
39
- .manager-bar-chart-gridline__label {
39
+ .bar-chart__gridline__label {
40
40
  position: absolute;
41
41
  left: 0;
42
42
  top: 100%;
@@ -46,12 +46,12 @@
46
46
  color: var(--color-deepGray);
47
47
  white-space: nowrap;
48
48
  }
49
- .manager-bar-chart-inner {
49
+ .bar-chart__inner {
50
50
  display: flex;
51
51
  gap: var(--spacing-xs);
52
52
  align-items: flex-start;
53
53
  }
54
- .manager-bar-chart-scroll {
54
+ .bar-chart__scroll {
55
55
  flex: 1;
56
56
  overflow-x: auto;
57
57
  overflow-y: visible;
@@ -59,18 +59,18 @@
59
59
  /* 스크롤바 숨김 (공간 차지 방지) */
60
60
  scrollbar-width: none;
61
61
  }
62
- .manager-bar-chart-scroll::-webkit-scrollbar { display: none; }
62
+ .bar-chart__scroll::-webkit-scrollbar { display: none; }
63
63
 
64
- .manager-bar-chart-area {
64
+ .bar-chart__area {
65
65
  display: flex;
66
66
  flex-direction: column;
67
67
  /* 주간 5개 + 일간 31개 모두 수용하는 최소 너비 */
68
68
  min-width: max-content;
69
69
  }
70
- .manager-bar-chart-area svg {
70
+ .bar-chart__area svg {
71
71
  display: block;
72
72
  }
73
- .manager-bar-chart-x-axis {
73
+ .bar-chart__x-axis {
74
74
  display: flex;
75
75
  font-size: 11px;
76
76
  /* 눈금 라벨과 같은 이유로 deepGray (AA 미달이던 축 라벨 대비 보정) */
@@ -80,7 +80,7 @@
80
80
 
81
81
  /* 막대 컬럼(flex:1 중앙)과 동일하게 — 막대 중심과 라벨 중심을 수직 정렬.
82
82
  좁을 때 겹침 방지: 메인/서브를 세로 스택 + 줄바꿈 허용 */
83
- .manager-bar-chart-x-axis__label {
83
+ .bar-chart__x-axis__label {
84
84
  flex: 1;
85
85
  min-width: 0;
86
86
  display: flex;
@@ -92,14 +92,14 @@
92
92
  word-break: keep-all;
93
93
  }
94
94
  /* 아직 도래하지 않은 날 — 글씨 흐리게 */
95
- .manager-bar-chart-x-axis__label--future .caption-1 {
95
+ .bar-chart__x-axis__label--future .caption-1 {
96
96
  color: var(--color-whiteLine);
97
97
  }
98
98
  /* 오늘 날짜 표시 점 — 텍스트 중심 정렬을 흐트러뜨리지 않도록 absolute로 텍스트 왼쪽에 배치 */
99
- .manager-bar-chart-x-axis__main {
99
+ .bar-chart__x-axis__main {
100
100
  position: relative;
101
101
  }
102
- .manager-bar-chart-x-axis__today-dot {
102
+ .bar-chart__x-axis__today-dot {
103
103
  position: absolute;
104
104
  right: calc(100% + 3px);
105
105
  top: 50%;
@@ -110,14 +110,14 @@
110
110
  }
111
111
 
112
112
  /* 정적 인라인 style 이전 — 동적 값(height/flex/maxWidth/background/cursor 등)은 그대로 인라인 유지 */
113
- .manager-bar-chart-plot {
113
+ .bar-chart__plot {
114
114
  display: flex;
115
115
  align-items: flex-end;
116
116
  gap: 0;
117
117
  position: relative;
118
118
  isolation: isolate;
119
119
  }
120
- .manager-bar-chart-col {
120
+ .bar-chart__col {
121
121
  flex: 1;
122
122
  display: flex;
123
123
  justify-content: center;
@@ -127,24 +127,24 @@
127
127
  }
128
128
  /* 막대 굵기 — 컴포넌트가 `--bar-width` 로 박고 여기서 읽는다. 인라인 flex/maxWidth 로
129
129
  박으면 소비자가 CSS 로 못 줄인다(`!important` 로만). 변수면 선택자로 덮으면 된다. */
130
- .manager-bar-chart-stack,
131
- .manager-bar-chart-bar {
130
+ .bar-chart__stack,
131
+ .bar-chart__bar {
132
132
  flex: 0 1 var(--bar-width);
133
133
  max-width: var(--bar-width);
134
134
  }
135
- .manager-bar-chart-stack {
135
+ .bar-chart__stack {
136
136
  min-width: 0;
137
137
  display: flex;
138
138
  flex-direction: column-reverse;
139
139
  }
140
- .manager-bar-chart-bar {
140
+ .bar-chart__bar {
141
141
  min-width: 0;
142
142
  border-radius: 6px 6px 0 0;
143
143
  }
144
- .manager-bar-chart-stack-segment {
144
+ .bar-chart__stack-segment {
145
145
  width: 100%;
146
146
  }
147
- .manager-bar-chart-detail-btn {
147
+ .bar-chart__detail-btn {
148
148
  margin-left: auto;
149
149
  }
150
150
 
@@ -152,27 +152,27 @@
152
152
  어느 막대가 어느 주·날인지 읽힌다. 계열 사이는 1px 로 붙이고, 칸 양옆에 4px 를 둬 칸 사이가
153
153
  적어도 8px 이 되게 한다(막대가 줄어 칸이 꽉 차도 무리가 붙지 않는다). */
154
154
  /* 0 선 기준 막대 — 반쪽 둘(위·아래)을 쌓아 둔 자리. 나란히 선 칸의 폭 나눔은 그대로 두고, 0 선에서 위나 아래로 자란다 */
155
- .manager-bar-chart-slot {
155
+ .bar-chart__slot {
156
156
  flex: 0 1 var(--bar-width);
157
157
  height: 100%;
158
158
  display: flex;
159
159
  flex-direction: column;
160
160
  min-width: 0;
161
161
  }
162
- .manager-bar-chart-slot__half {
162
+ .bar-chart__slot__half {
163
163
  height: 50%;
164
164
  display: flex;
165
165
  justify-content: center;
166
166
  }
167
- .manager-bar-chart-slot__half--up { align-items: flex-end; }
168
- .manager-bar-chart-slot__half--down { align-items: flex-start; }
169
- .manager-bar-chart-bar--full { flex: 1 1 auto; width: 100%; }
167
+ .bar-chart__slot__half--up { align-items: flex-end; }
168
+ .bar-chart__slot__half--down { align-items: flex-start; }
169
+ .bar-chart__bar--full { flex: 1 1 auto; width: 100%; }
170
170
  /* 아래로 자라는 막대는 아래쪽 모서리를 둥글린다 */
171
- .manager-bar-chart-bar--down { border-radius: 0 0 6px 6px; }
171
+ .bar-chart__bar--down { border-radius: 0 0 6px 6px; }
172
172
  /* 0 선은 다른 격자선보다 또렷하게 */
173
- .manager-bar-chart-gridline--baseline { opacity: 1; }
173
+ .bar-chart__gridline--baseline { opacity: 1; }
174
174
 
175
- .manager-bar-chart-col--group {
175
+ .bar-chart__col--group {
176
176
  /* 기본 1px — barGap prop 으로 칸마다 바꾼다 */
177
177
  gap: var(--bar-group-gap, 1px);
178
178
  padding: 0 4px;
@@ -56,9 +56,9 @@ function BarChartCanvas({ data, colorA, colorB, labelA, labelB, barWidth = 10, b
56
56
  return Math.max(2, Math.min(barWidth, Math.round(120 / (cols * barsPerCol) + 6)));
57
57
  }, [data.length, barsPerCol, barWidth]);
58
58
  /* 굵기는 인라인 flex/maxWidth 가 아니라 CSS 변수로 박는다 — 소비자가 `!important`
59
- 없이 CSS 로 덮을 수 있게. 읽는 규칙은 BarChart.css 의 `.manager-bar-chart-bar`·`-stack`. */
59
+ 없이 CSS 로 덮을 수 있게. 읽는 규칙은 BarChart.css 의 `.bar-chart__bar`·`-stack`. */
60
60
  const barWidthStyle = { '--bar-width': `${effBarWidth}px` };
61
- /* 나란히 선 막대 사이 간격 — 칸(.manager-bar-chart-col--group)의 gap 으로 내려보낸다 */
61
+ /* 나란히 선 막대 사이 간격 — 칸(.bar-chart__col--group)의 gap 으로 내려보낸다 */
62
62
  const groupGapStyle = { '--bar-group-gap': `${Math.max(0, barGap)}px` };
63
63
  const ticks = useMemo(() => {
64
64
  const mid = Math.round(padded / 2);
@@ -136,7 +136,7 @@ function BarChartCanvas({ data, colorA, colorB, labelA, labelB, barWidth = 10, b
136
136
  const close = () => setTooltip(null);
137
137
  const onOutsidePress = (e) => {
138
138
  const t = e.target;
139
- if (t && typeof t.closest === 'function' && t.closest('.manager-bar-chart-col'))
139
+ if (t && typeof t.closest === 'function' && t.closest('.bar-chart__col'))
140
140
  return;
141
141
  setTooltip(null);
142
142
  };
@@ -147,9 +147,9 @@ function BarChartCanvas({ data, colorA, colorB, labelA, labelB, barWidth = 10, b
147
147
  document.removeEventListener('pointerdown', onOutsidePress, true);
148
148
  };
149
149
  }, [isOpen]);
150
- return (_jsxs("div", { className: "manager-bar-chart-wrap", style: groupGapStyle, children: [_jsx("div", { className: "manager-bar-chart-inner", children: _jsx("div", { className: "manager-bar-chart-scroll", children: _jsxs("div", { className: "manager-bar-chart-area", children: [_jsxs("div", { className: "manager-bar-chart-plot", style: { height: h }, children: [ticks.slice(0, -1).map((t, i) => (
150
+ return (_jsxs("div", { className: withLegacy("bar-chart__wrap"), style: groupGapStyle, children: [_jsx("div", { className: withLegacy("bar-chart__inner"), children: _jsx("div", { className: withLegacy("bar-chart__scroll"), children: _jsxs("div", { className: withLegacy("bar-chart__area"), children: [_jsxs("div", { className: withLegacy("bar-chart__plot"), style: { height: h }, children: [ticks.slice(0, -1).map((t, i) => (
151
151
  /* 눈금선은 **적힌 값의 높이**에 둔다 — 가운데 값을 반올림(최대 3 → '2')하면서 자리는 절반(1.5)에 두어 선과 숫자가 어긋났다 */
152
- _jsx("div", { className: `manager-bar-chart-gridline${base != null && t === base ? ' manager-bar-chart-gridline--baseline' : ''}`, style: { top: tickPos(t) * h }, children: _jsx("span", { className: "manager-bar-chart-gridline__label caption-1", children: t }) }, i))), data.map((d, i) => {
152
+ _jsx("div", { className: withLegacy(`bar-chart__gridline${base != null && t === base ? ' bar-chart__gridline--baseline' : ''}`), style: { top: tickPos(t) * h }, children: _jsx("span", { className: withLegacy("bar-chart__gridline__label caption-1"), children: t }) }, i))), data.map((d, i) => {
153
153
  const isFuture = isFutureBar(d, base == null);
154
154
  /* 판 높이를 넘지 않는다 — maxOverride(진행률 100)보다 큰 값이 와도 막대가 눈금 위로 삐져나가지 않게 */
155
155
  /* 기준선 모드는 반쪽(h/2)을 쓴다 — 0 선에서 위나 아래로 자란다 */
@@ -160,7 +160,7 @@ function BarChartCanvas({ data, colorA, colorB, labelA, labelB, barWidth = 10, b
160
160
  const ha = isFuture ? 0 : heightOf(d.a);
161
161
  const hb = isFuture ? 0 : heightOf(d.b);
162
162
  const parts = (d.parts ?? []).map(num);
163
- return (_jsx("div", { className: `manager-bar-chart-col${grouped && stacked ? ' manager-bar-chart-col--group' : ''}`,
163
+ return (_jsx("div", { className: withLegacy(`bar-chart__col${grouped && stacked ? ' bar-chart__col--group' : ''}`),
164
164
  /* **손가락은 그대로 둔다 — 걷으면 아이폰에서 풍선이 아예 안 뜬다.**
165
165
  말귀가 "`onClick` 이 없는데 손가락이 뜬다"(요청 (52))고 짚은 것이 맞다.
166
166
  그런데 **iOS 는 '누를 수 없는' 요소에 톡하면 호환 마우스 이벤트를 아예
@@ -181,13 +181,13 @@ function BarChartCanvas({ data, colorA, colorB, labelA, labelB, barWidth = 10, b
181
181
  (seriesColors ?? []).map((c, k) => {
182
182
  const v = parts[k] ?? 0;
183
183
  if (base == null)
184
- return _jsx("div", { className: "manager-bar-chart-bar", style: { ...barWidthStyle, height: heightOf(v), background: c } }, k);
184
+ return _jsx("div", { className: withLegacy("bar-chart__bar"), style: { ...barWidthStyle, height: heightOf(v), background: c } }, k);
185
185
  /* 0 선 위·아래 — 반쪽 둘을 쌓아 둔 자리(slot)에 그려, 나란히 선 칸의 폭 나눔은 그대로 둔다 */
186
186
  const below = num(v) < base;
187
- return (_jsxs("div", { className: "manager-bar-chart-slot", style: barWidthStyle, children: [_jsx("div", { className: "manager-bar-chart-slot__half manager-bar-chart-slot__half--up", children: !below && _jsx("div", { className: "manager-bar-chart-bar manager-bar-chart-bar--full", style: { height: heightOf(v), background: c } }) }), _jsx("div", { className: "manager-bar-chart-slot__half manager-bar-chart-slot__half--down", children: below && _jsx("div", { className: "manager-bar-chart-bar manager-bar-chart-bar--full manager-bar-chart-bar--down", style: { height: heightOf(v), background: c } }) })] }, k));
187
+ return (_jsxs("div", { className: withLegacy("bar-chart__slot"), style: barWidthStyle, children: [_jsx("div", { className: withLegacy("bar-chart__slot__half bar-chart__slot__half--up"), children: !below && _jsx("div", { className: withLegacy("bar-chart__bar bar-chart__bar--full"), style: { height: heightOf(v), background: c } }) }), _jsx("div", { className: withLegacy("bar-chart__slot__half bar-chart__slot__half--down"), children: below && _jsx("div", { className: withLegacy("bar-chart__bar bar-chart__bar--full bar-chart__bar--down"), style: { height: heightOf(v), background: c } }) })] }, k));
188
188
  })) : stacked ? (
189
189
  // 계열별 stacked — 아래부터 위로 쌓고, 맨 위 segment만 상단 라운드
190
- _jsx("div", { className: "manager-bar-chart-stack", style: barWidthStyle, children: (() => {
190
+ _jsx("div", { className: withLegacy("bar-chart__stack"), style: barWidthStyle, children: (() => {
191
191
  const topK = parts.reduce((acc, v, k) => (v > 0 ? k : acc), -1); // 맨 위(최상단) 세그먼트
192
192
  let remaining = h; // 쌓은 합도 판 높이를 넘지 않게 위 조각부터 깎는다
193
193
  return parts.map((v, k) => {
@@ -195,12 +195,12 @@ function BarChartCanvas({ data, colorA, colorB, labelA, labelB, barWidth = 10, b
195
195
  return null;
196
196
  const piece = Math.min(remaining, (v / padded) * h);
197
197
  remaining -= piece;
198
- return _jsx("div", { className: "manager-bar-chart-stack-segment", style: { height: piece, background: (seriesColors ?? [])[k], borderRadius: k === topK ? '6px 6px 0 0' : undefined } }, k);
198
+ return _jsx("div", { className: withLegacy("bar-chart__stack-segment"), style: { height: piece, background: (seriesColors ?? [])[k], borderRadius: k === topK ? '6px 6px 0 0' : undefined } }, k);
199
199
  });
200
- })() })) : (base != null ? (_jsx(_Fragment, { children: [{ v: num(d.a), c: colorA }, ...(single ? [] : [{ v: num(d.b), c: colorB }])].map(({ v, c }, k) => (_jsxs("div", { className: "manager-bar-chart-slot", style: barWidthStyle, children: [_jsx("div", { className: "manager-bar-chart-slot__half manager-bar-chart-slot__half--up", children: v >= base && _jsx("div", { className: "manager-bar-chart-bar manager-bar-chart-bar--full", style: { height: heightOf(v), background: c } }) }), _jsx("div", { className: "manager-bar-chart-slot__half manager-bar-chart-slot__half--down", children: v < base && _jsx("div", { className: "manager-bar-chart-bar manager-bar-chart-bar--full manager-bar-chart-bar--down", style: { height: heightOf(v), background: c } }) })] }, k))) })) : (_jsxs(_Fragment, { children: [_jsx("div", { className: "manager-bar-chart-bar", style: { ...barWidthStyle, height: ha, background: colorA } }), !single && _jsx("div", { className: "manager-bar-chart-bar", style: { ...barWidthStyle, height: hb, background: colorB } })] })))) }, i));
201
- })] }), _jsx("div", { className: "manager-bar-chart-x-axis", children: data.map((d, i) => {
200
+ })() })) : (base != null ? (_jsx(_Fragment, { children: [{ v: num(d.a), c: colorA }, ...(single ? [] : [{ v: num(d.b), c: colorB }])].map(({ v, c }, k) => (_jsxs("div", { className: withLegacy("bar-chart__slot"), style: barWidthStyle, children: [_jsx("div", { className: withLegacy("bar-chart__slot__half bar-chart__slot__half--up"), children: v >= base && _jsx("div", { className: withLegacy("bar-chart__bar bar-chart__bar--full"), style: { height: heightOf(v), background: c } }) }), _jsx("div", { className: withLegacy("bar-chart__slot__half bar-chart__slot__half--down"), children: v < base && _jsx("div", { className: withLegacy("bar-chart__bar bar-chart__bar--full bar-chart__bar--down"), style: { height: heightOf(v), background: c } }) })] }, k))) })) : (_jsxs(_Fragment, { children: [_jsx("div", { className: withLegacy("bar-chart__bar"), style: { ...barWidthStyle, height: ha, background: colorA } }), !single && _jsx("div", { className: withLegacy("bar-chart__bar"), style: { ...barWidthStyle, height: hb, background: colorB } })] })))) }, i));
201
+ })] }), _jsx("div", { className: withLegacy("bar-chart__x-axis"), children: data.map((d, i) => {
202
202
  const isFuture = isFutureBar(d, base == null); // 아직 도래하지 않은 날 — 글씨 흐리게
203
- return (_jsxs("span", { className: `manager-bar-chart-x-axis__label${isFuture ? ' manager-bar-chart-x-axis__label--future' : ''}`, children: [_jsxs("span", { className: "caption-1 manager-bar-chart-x-axis__main", children: [d.isToday && _jsx("span", { className: "manager-bar-chart-x-axis__today-dot", style: { background: colorA } }), d.label] }), d.sublabel && _jsx("span", { className: "caption-1", children: d.sublabel })] }, i));
203
+ return (_jsxs("span", { className: withLegacy(`bar-chart__x-axis__label${isFuture ? ' bar-chart__x-axis__label--future' : ''}`), children: [_jsxs("span", { className: withLegacy("caption-1 bar-chart__x-axis__main"), children: [d.isToday && _jsx("span", { className: withLegacy("bar-chart__x-axis__today-dot"), style: { background: colorA } }), d.label] }), d.sublabel && _jsx("span", { className: "caption-1", children: d.sublabel })] }, i));
204
204
  }) })] }) }) }), tooltip && (_jsx(DescriptionTooltip, { anchorRect: tooltip.rect, title: tooltip.title, items: tooltip.items, showIndex: false, closeOnOutsideClick: false }))] }));
205
205
  }
206
206
  /** 기간 컨트롤 UI(이전/다음·월 드롭다운·월/주 토글). Toolbar 등 외부에 배치 가능. @public */
@@ -211,7 +211,7 @@ export function BarChartControls({ control }) {
211
211
  주 보기에서 낭독기·툴팁이 실제 동작과 다른 말을 한다(말귀 검수 실측). */
212
212
  const prevLabel = period === 'week' ? t('calendar.prevWeek', '이전 주') : t('calendar.prevMonth', '이전 달');
213
213
  const nextLabel = period === 'week' ? t('calendar.nextWeek', '다음 주') : t('calendar.nextMonth', '다음 달');
214
- return (_jsxs("div", { className: "manager-section-controls", children: [_jsx(Button, { htmlType: "button", size: 32, type: "dot", icon: "chevron-left", ariaLabel: prevLabel, showTooltipInfo: prevLabel, disabled: activeIdx === activeOptions.length - 1, onClick: handlePrev }), _jsx(Dropdown, { value: range, onChange: setRange, options: activeOptions, size: 40, className: "month-dropdown", ariaLabel: t('calendar.rangeSelect', '기간 선택') }), _jsx(Button, { htmlType: "button", size: 32, type: "dot", icon: "chevron-right", ariaLabel: nextLabel, showTooltipInfo: nextLabel, disabled: activeIdx <= 0, onClick: handleNext }), _jsx(SegmentedControl, { ariaLabel: t('calendar.periodSelect', '기간 단위'), options: periodOptions, value: period, onChange: (k) => setPeriod(k), size: 40 })] }));
214
+ return (_jsxs("div", { className: withLegacy("chart-section__controls"), children: [_jsx(Button, { htmlType: "button", size: 32, type: "dot", icon: "chevron-left", ariaLabel: prevLabel, showTooltipInfo: prevLabel, disabled: activeIdx === activeOptions.length - 1, onClick: handlePrev }), _jsx(Dropdown, { value: range, onChange: setRange, options: activeOptions, size: 40, className: "month-dropdown", ariaLabel: t('calendar.rangeSelect', '기간 선택') }), _jsx(Button, { htmlType: "button", size: 32, type: "dot", icon: "chevron-right", ariaLabel: nextLabel, showTooltipInfo: nextLabel, disabled: activeIdx <= 0, onClick: handleNext }), _jsx(SegmentedControl, { ariaLabel: t('calendar.periodSelect', '기간 단위'), options: periodOptions, value: period, onChange: (k) => setPeriod(k), size: 40 })] }));
215
215
  }
216
216
  /**
217
217
  * 한 주(월요일부터 7일)의 날마다 — 그 날의 자료와 미래 여부. 달을 넘는 날은 그 달
@@ -284,6 +284,7 @@ function barsFromControl(data, control, t, showPast = true) {
284
284
  });
285
285
  }
286
286
  import { monthKeyOfDate, parseMonthKey } from './barChartMonthKey';
287
+ import { withLegacy } from '../utils/legacyBlocks';
287
288
  /** 시맨틱 사이즈 → 캔버스 높이·막대 너비 프리셋 */
288
289
  const BAR_SIZE_PRESET = {
289
290
  small: { height: 100, barWidth: 16 },
@@ -430,7 +431,7 @@ export default function BarChart({ focusableBars, size = 'medium', barWidth, tit
430
431
  const isSmall = size === 'small';
431
432
  // size='large' — 카드가 가로 폭을 거의 100% 차지(1열)
432
433
  const isLarge = size === 'large';
433
- const sectionClassName = [isSmall ? 'manager-section--compact' : isLarge ? 'manager-section--full' : undefined, className]
434
+ const sectionClassName = [isSmall ? 'chart-section--compact' : isLarge ? 'chart-section--full' : undefined, className]
434
435
  .filter(Boolean).join(' ') || undefined;
435
436
  /**
436
437
  * **상세보기 단추 이름에 그 카드 이름을 담는다**(말귀 요청 (119), 2026-10-12).
@@ -449,18 +450,18 @@ export default function BarChart({ focusableBars, size = 'medium', barWidth, tit
449
450
  : t('trainingStatus.detail', '상세보기');
450
451
  return (_jsx(ChartSection, { className: sectionClassName, inGrid: inGrid, icon: icon, disc: disc, onClick: onClick, ariaLabel: cardAriaLabel, tooltip: cardTooltip, headSegment: headSegment,
451
452
  /* 좁아 고르개가 '⋯' 로 접히면 상세보기도 그 메뉴로 들어간다 — 머리에 단추 둘이 남지 않게 */
452
- headMenuItems: onDetail ? [{ label: detailTitle, icon: 'list', onClick: onDetail, closeOnSelect: true }] : undefined, title: t(titleKey), titleLevel: titleLevel, titleClassName: isSmall ? 'h5 chart-section-title--small' : undefined, headRight: isSmall ? (headExtra ?? undefined) : ({ collapsed }) => _jsxs(_Fragment, { children: [!hideControls && _jsx(BarChartControls, { control: control }), headExtra, onDetail && !collapsed && (_jsx("span", { className: "manager-bar-chart-detail-btn", children: _jsx(Button, { htmlType: "button", size: detailSize, type: "dot", icon: "list", ariaLabel: detailTitle, showTooltipInfo: detailTitle, onClick: onDetail }) }))] }), subRow: _jsxs(_Fragment, { children: [showTotal ? ((rate || avgMode || (!!totalLabelKey && !!totalFormat)) ? (
453
+ headMenuItems: onDetail ? [{ label: detailTitle, icon: 'list', onClick: onDetail, closeOnSelect: true }] : undefined, title: t(titleKey), titleLevel: titleLevel, titleClassName: isSmall ? 'h5 chart-section-title--small' : undefined, headRight: isSmall ? (headExtra ?? undefined) : ({ collapsed }) => _jsxs(_Fragment, { children: [!hideControls && _jsx(BarChartControls, { control: control }), headExtra, onDetail && !collapsed && (_jsx("span", { className: withLegacy("bar-chart__detail-btn"), children: _jsx(Button, { htmlType: "button", size: detailSize, type: "dot", icon: "list", ariaLabel: detailTitle, showTooltipInfo: detailTitle, onClick: onDetail }) }))] }), subRow: _jsxs(_Fragment, { children: [showTotal ? ((rate || avgMode || (!!totalLabelKey && !!totalFormat)) ? (
453
454
  // 진행률/평균 모드 또는 totalLabelKey+totalFormat 조합: 라벨(윗줄) + 값(아랫줄). size='small'은 라벨 생략
454
455
  _jsx(ChartTotal, { label: isSmall ? undefined : `${t(control.period === 'week' ? 'manager.chart.weeklyPrefix' : 'manager.chart.monthlyPrefix')} ${t(totalLabelKey ?? labelAKey)}`, children: totalFormat ? (
455
456
  // 숫자는 h0, 단위(시간/분/초 등)는 h5로 분리
456
457
  /* 부호는 숫자 쪽에 붙인다 — `[^\d]+` 로 가르면 '-7%p' 의 '-' 가 단위로 넘어가 h5 로 작아졌다(변동률) */
457
458
  (totalFormat(total).match(/([+-]?\d[\d.,]*|[^\d]+)/g) ?? []).map((part, i) => (/\d/.test(part)
458
- ? _jsx("span", { className: "barchart-total__num h0", children: part }, i)
459
- : _jsx("span", { className: "barchart-total__unit h5", children: part }, i)))) : (_jsxs(_Fragment, { children: [_jsx("span", { className: "barchart-total__num h0", children: total }), totalUnitKey && _jsx("span", { className: "barchart-total__unit h5", children: t(totalUnitKey) })] })) })) : (_jsxs(ChartTotal, { children: [_jsx("span", { className: "barchart-total__num h0", children: total }), _jsx("span", { className: "barchart-total__unit h5", children: t(labelAKey) }), totalUnitKey && _jsx("span", { className: "barchart-total__unit h5", children: t(totalUnitKey) })] }))) : _jsx("span", {}), _jsx(ChartLegend, { items: legendItems, className: "caption-1" })] }), children: loading ? (
459
+ ? _jsx("span", { className: withLegacy("chart-section__total__num h0"), children: part }, i)
460
+ : _jsx("span", { className: withLegacy("chart-section__total__unit h5"), children: part }, i)))) : (_jsxs(_Fragment, { children: [_jsx("span", { className: withLegacy("chart-section__total__num h0"), children: total }), totalUnitKey && _jsx("span", { className: withLegacy("chart-section__total__unit h5"), children: t(totalUnitKey) })] })) })) : (_jsxs(ChartTotal, { children: [_jsx("span", { className: withLegacy("chart-section__total__num h0"), children: total }), _jsx("span", { className: withLegacy("chart-section__total__unit h5"), children: t(labelAKey) }), totalUnitKey && _jsx("span", { className: withLegacy("chart-section__total__unit h5"), children: t(totalUnitKey) })] }))) : _jsx("span", {}), _jsx(ChartLegend, { items: legendItems, className: "caption-1" })] }), children: loading ? (
460
461
  /* **뼈대 먼저, 그 안에서 기다린다**(사용자 지시 2026-09-17). 기다림 상자를 따로 두면
461
462
  자료가 오는 순간 카드 키가 달라져 격자가 한꺼번에 내려앉는다 — 말귀 실측: 상자 186px
462
463
  → 막대 156px 로 카드마다 30px, 섹션 372 → 342px.
463
464
  그래서 **그려질 것과 같은 뼈대**(칸 자리 + 축 한 줄)를 세우고 그 안에 스피너를 둔다.
464
465
  키는 막대 자리(`sizePreset.height`)에서 오므로 크기 보기(size)가 달라도 따라온다. */
465
- _jsx("div", { className: "manager-bar-chart-wrap manager-bar-chart-loading", "aria-busy": "true", children: _jsx("div", { className: "manager-bar-chart-inner", children: _jsxs("div", { className: "manager-bar-chart-area manager-bar-chart-area--loading", children: [_jsx("div", { className: "manager-bar-chart-plot manager-bar-chart-plot--loading", style: { height: sizePreset.height }, children: _jsx(Loader, { size: 32 }) }), _jsx("div", { className: "manager-bar-chart-x-axis", "aria-hidden": "true", children: _jsxs("span", { className: "manager-bar-chart-x-axis__label", children: [_jsx("span", { className: "caption-1 manager-bar-chart-x-axis__main", children: "\u00A0" }), bars.some(b => !!b.sublabel) && _jsx("span", { className: "caption-1", children: "\u00A0" })] }) })] }) }) })) : (_jsx(BarChartCanvas, { focusableBars: focusableBars, data: bars, colorA: colorA, colorB: labelBKey ? colorB : undefined, labelA: t(labelAKey), labelB: labelBKey ? t(labelBKey) : undefined, barWidth: barWidth ?? sizePreset.barWidth, barGap: barGap, baseline: baseline, height: sizePreset.height, maxOverride: rate ? 100 : undefined, tightMax: tightMax, seriesColors: series?.map(s => s.color), seriesLabels: series?.map(s => s.label), rateLabels: rate ? { total: t('trainingStatus.today.tooltipTotal', '전체'), done: t('trainingStatus.today.tooltipDone', '완료') } : undefined, grouped: grouped })) }));
466
+ _jsx("div", { className: withLegacy("bar-chart__wrap bar-chart__loading"), "aria-busy": "true", children: _jsx("div", { className: withLegacy("bar-chart__inner"), children: _jsxs("div", { className: withLegacy("bar-chart__area bar-chart__area--loading"), children: [_jsx("div", { className: withLegacy("bar-chart__plot bar-chart__plot--loading"), style: { height: sizePreset.height }, children: _jsx(Loader, { size: 32 }) }), _jsx("div", { className: withLegacy("bar-chart__x-axis"), "aria-hidden": "true", children: _jsxs("span", { className: withLegacy("bar-chart__x-axis__label"), children: [_jsx("span", { className: withLegacy("caption-1 bar-chart__x-axis__main"), children: "\u00A0" }), bars.some(b => !!b.sublabel) && _jsx("span", { className: "caption-1", children: "\u00A0" })] }) })] }) }) })) : (_jsx(BarChartCanvas, { focusableBars: focusableBars, data: bars, colorA: colorA, colorB: labelBKey ? colorB : undefined, labelA: t(labelAKey), labelB: labelBKey ? t(labelBKey) : undefined, barWidth: barWidth ?? sizePreset.barWidth, barGap: barGap, baseline: baseline, height: sizePreset.height, maxOverride: rate ? 100 : undefined, tightMax: tightMax, seriesColors: series?.map(s => s.color), seriesLabels: series?.map(s => s.label), rateLabels: rate ? { total: t('trainingStatus.today.tooltipTotal', '전체'), done: t('trainingStatus.today.tooltipDone', '완료') } : undefined, grouped: grouped })) }));
466
467
  }
@@ -6,13 +6,14 @@ import './BottomNav.css';
6
6
  import Button from './Button';
7
7
  import Badge from './Badge';
8
8
  import MenuTooltip from './Tooltip/MenuTooltip';
9
- // .tooltip-content(메뉴 표면)를 직접 쓰므로 정의 파일을 명시적으로 가져온다.
9
+ // .tooltip__content(메뉴 표면)를 직접 쓰므로 정의 파일을 명시적으로 가져온다.
10
10
  // Tooltip.tsx만 이 CSS를 import하는데 BottomNav는 그 컴포넌트를 거치지 않아,
11
11
  // 프로덕션에서 청크가 갈리면 스타일 없이 렌더될 수 있다.
12
12
  import './Tooltip/Tooltip.css';
13
13
  import { useAnchoredMenu, anchoredMenuZIndex } from '../hooks/useAnchoredMenu';
14
14
  import { useTranslation } from 'react-i18next';
15
15
  import { scrollNavTargetToTop } from '../utils/navScroll';
16
+ import { withLegacy } from '../utils/legacyBlocks';
16
17
  const BTN_SIZE = 52;
17
18
  const BTN_GAP = 10;
18
19
  /** 배지 숫자 — SideNav·MenuTooltip 과 같이 99 에서 자른다. 0 이하·없음은 0. */
@@ -154,5 +155,5 @@ export default function BottomNav({ items = [], activeKey, onChange, appMode, on
154
155
  onChange?.(it.key);
155
156
  scrollNavTargetToTop(scrollContainer, 'BottomNav');
156
157
  } } }), count > 0 && (_jsx("span", { "aria-hidden": "true", children: _jsx(Badge, { type: "dot", position: "top-right", number: Math.min(count, 99), size: 24 }) }))] }, it.key ?? `__slot-${i}`));
157
- }) }), showMore && (_jsxs(_Fragment, { children: [_jsx("div", { className: "bottom-nav__divider", "aria-hidden": "true" }), _jsx("div", { className: "bottom-nav__right", children: _jsxs("div", { ref: moreRef, className: "bottom-nav__slot", children: [_jsx(Button, { htmlType: "button", size: 52, type: "dot", icon: activeMore?.icon ?? 'ellipsis', ariaLabel: visibleCount(activeMore?.label ?? t('nav.more', '더보기'), moreBadge), selected: !!activeMore, className: "bottom-nav-item", onClick: handleToggleMore, "aria-expanded": moreOpen, "aria-controls": moreOpen ? moreMenuId : undefined }), moreBadge > 0 && (_jsx("span", { "aria-hidden": "true", children: _jsx(Badge, { type: "dot", position: "top-right", number: Math.min(moreBadge, 99), size: 24 }) })), moreOpen && createPortal(_jsx("div", { id: moreMenuId, role: "group", "aria-label": t('nav.moreMenu', '더보기 메뉴'), className: "tooltip-content", style: menuStyle, ref: menuRef, children: _jsx(MenuTooltip, { columns: moreColumns, onClose: handleCloseMore }) }), document.body)] }) })] }))] }));
158
+ }) }), showMore && (_jsxs(_Fragment, { children: [_jsx("div", { className: "bottom-nav__divider", "aria-hidden": "true" }), _jsx("div", { className: "bottom-nav__right", children: _jsxs("div", { ref: moreRef, className: "bottom-nav__slot", children: [_jsx(Button, { htmlType: "button", size: 52, type: "dot", icon: activeMore?.icon ?? 'ellipsis', ariaLabel: visibleCount(activeMore?.label ?? t('nav.more', '더보기'), moreBadge), selected: !!activeMore, className: "bottom-nav-item", onClick: handleToggleMore, "aria-expanded": moreOpen, "aria-controls": moreOpen ? moreMenuId : undefined }), moreBadge > 0 && (_jsx("span", { "aria-hidden": "true", children: _jsx(Badge, { type: "dot", position: "top-right", number: Math.min(moreBadge, 99), size: 24 }) })), moreOpen && createPortal(_jsx("div", { id: moreMenuId, role: "group", "aria-label": t('nav.moreMenu', '더보기 메뉴'), className: withLegacy("tooltip__content"), style: menuStyle, ref: menuRef, children: _jsx(MenuTooltip, { columns: moreColumns, onClose: handleCloseMore }) }), document.body)] }) })] }))] }));
158
159
  }