@ihabdevteam/core 0.377.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 (64) hide show
  1. package/CHANGELOG.md +150 -0
  2. package/dist/components.cjs.js +182 -182
  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 +8 -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/wordTablePrint.js +4 -4
  53. package/dist/packages/core/src/components/WordTable.css +69 -69
  54. package/dist/packages/core/src/components/WordTable.js +22 -15
  55. package/dist/packages/core/src/components/barChartTypes.d.ts +1 -1
  56. package/dist/packages/core/src/components/wordTableLayout.js +2 -2
  57. package/dist/packages/core/src/hooks/touchToggle.d.ts +1 -1
  58. package/dist/packages/core/src/hooks/touchToggle.js +2 -2
  59. package/dist/packages/core/src/utils/legacyBlocks.d.ts +53 -0
  60. package/dist/packages/core/src/utils/legacyBlocks.js +131 -0
  61. package/dist/packages/core/src/version.d.ts +1 -1
  62. package/dist/packages/core/src/version.js +1 -1
  63. package/dist/utils.cjs.js +1 -1
  64. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  /* StatChart — 순수 카운트 스탯 카드 (제목+아이콘, 큰 숫자+증감) */
2
- .manager-stat-card {
2
+ .stat-chart__card {
3
3
  container-type: inline-size;
4
4
  background: var(--color-white);
5
5
  border-radius: var(--radius-m);
@@ -12,35 +12,35 @@
12
12
  /* 그리드/flex 컨테이너에서 텍스트가 세로 한 글자씩 줄바꿈되지 않도록 최소 폭 확보 */
13
13
  min-width: 160px;
14
14
  }
15
- .manager-stat-card--clickable {
15
+ .stat-chart__card--clickable {
16
16
  cursor: pointer;
17
17
  transition: box-shadow 120ms ease, border-color 120ms ease;
18
18
  border: 1px solid transparent;
19
19
  }
20
- .manager-stat-card--clickable:hover {
20
+ .stat-chart__card--clickable:hover {
21
21
  border-color: var(--color-main);
22
22
  box-shadow: var(--shadow-dropdown);
23
23
  }
24
24
 
25
- .manager-stat-card__label-row {
25
+ .stat-chart__card__label-row {
26
26
  display: flex;
27
27
  justify-content: space-between;
28
28
  align-items: center;
29
29
  min-height: 28px;
30
30
  }
31
- .manager-stat-card__label {
31
+ .stat-chart__card__label {
32
32
  color: var(--color-deepGray);
33
33
  }
34
- .manager-stat-card__icon {
34
+ .stat-chart__card__icon {
35
35
  opacity: 0.35;
36
36
  display: inline-flex;
37
37
  }
38
- .manager-stat-card__icon-inner {
38
+ .stat-chart__card__icon-inner {
39
39
  width: 22px;
40
40
  height: 22px;
41
41
  color: var(--color-darkGray);
42
42
  }
43
- .manager-stat-card__content {
43
+ .stat-chart__card__content {
44
44
  display: flex;
45
45
  flex-direction: column;
46
46
  align-items: flex-start;
@@ -49,7 +49,7 @@
49
49
  justify-content: space-between;
50
50
  }
51
51
  /* 값 아래 자리 — 목록·단추 등 카드가 값을 풀어 보이는 것 */
52
- .manager-stat-card__body {
52
+ .stat-chart__card__body {
53
53
  display: flex;
54
54
  flex-direction: column;
55
55
  align-items: stretch;
@@ -58,7 +58,7 @@
58
58
  text-align: left;
59
59
  }
60
60
 
61
- .manager-stat-card__left {
61
+ .stat-chart__card__left {
62
62
  display: flex;
63
63
  flex-direction: row;
64
64
  align-items: flex-start;
@@ -66,7 +66,7 @@
66
66
  flex: 1;
67
67
  text-align: left;
68
68
  }
69
- .manager-stat-card__value {
69
+ .stat-chart__card__value {
70
70
  font-size: 32px;
71
71
  font-weight: 700;
72
72
  color: var(--color-black);
@@ -76,18 +76,18 @@
76
76
  flex-shrink: 0;
77
77
  }
78
78
  /* 값 우측 상단에 배지처럼 붙어 증감 유무와 무관하게 카드 높이가 일정하게 유지되도록 함 */
79
- .manager-stat-card__change {
79
+ .stat-chart__card__change {
80
80
  font-size: 12px;
81
81
  font-weight: 500;
82
82
  line-height: 1.2;
83
83
  margin-top: 1px;
84
84
  min-width: 0;
85
85
  }
86
- .manager-stat-card__change--up { color: var(--color-sub); }
87
- .manager-stat-card__change--down { color: var(--color-error); }
88
- .manager-stat-card__change--neutral { color: var(--color-gray); }
86
+ .stat-chart__card__change--up { color: var(--color-sub); }
87
+ .stat-chart__card__change--down { color: var(--color-error); }
88
+ .stat-chart__card__change--neutral { color: var(--color-gray); }
89
89
 
90
90
  @media (max-width: 767px) {
91
- .manager-stat-card { padding: 12px 14px 16px; }
92
- .manager-stat-card__value { font-size: 24px; }
91
+ .stat-chart__card { padding: 12px 14px 16px; }
92
+ .stat-chart__card__value { font-size: 24px; }
93
93
  }
@@ -18,7 +18,7 @@ export interface StatChartProps {
18
18
  tooltip?: string;
19
19
  onClick?: () => void;
20
20
  /** 값 **아래** 에 붙는 자리 — 목록 몇 줄, "외 n건" 단추처럼 값을 풀어 보이는 것.
21
- * 이 자리가 없어 소비자가 카드 마크업(`manager-stat-card__*` 여덟 이름)을 통째로 베끼고 있었다(말귀 매니저 '금일 방문 예정'). */
21
+ * 이 자리가 없어 소비자가 카드 마크업(`stat-chart__card__*` 여덟 이름)을 통째로 베끼고 있었다(말귀 매니저 '금일 방문 예정'). */
22
22
  children?: ReactNode;
23
23
  }
24
24
  /**
@@ -5,6 +5,7 @@ import { useRef, useCallback } from 'react';
5
5
  import { useHoverAnchor } from '../hooks/useHoverAnchor';
6
6
  import Icon from './Icon';
7
7
  import TooltipInfo from './Tooltip/InfoTooltip';
8
+ import { withLegacy } from '../utils/legacyBlocks';
8
9
  /**
9
10
  * 순수 카운트 스탯 카드 — 제목+아이콘, 큰 숫자, 증감(선택) 만 보여준다.
10
11
  * 도넛/리스트처럼 숫자 하나로 요약되지 않는 카드는 이 컴포넌트의 대상이 아니다
@@ -28,7 +29,7 @@ export default function StatChart({ label, value, change, changeType, icon, tool
28
29
  onClick();
29
30
  }
30
31
  }, [onClick]);
31
- return (_jsxs("div", { ref: cardRef, className: `manager-stat-card${onClick ? ' manager-stat-card--clickable' : ''}`, onClick: onClick, onKeyDown: onClick ? handleKeyDown : undefined, onPointerEnter: handleAnchorEnter, onPointerLeave: handleAnchorLeave,
32
+ return (_jsxs("div", { ref: cardRef, className: withLegacy(`stat-chart__card${onClick ? ' stat-chart__card--clickable' : ''}`), onClick: onClick, onKeyDown: onClick ? handleKeyDown : undefined, onPointerEnter: handleAnchorEnter, onPointerLeave: handleAnchorLeave,
32
33
  // hover 전용이면 키보드로는 툴팁 내용을 볼 수 없다(ManagerPage와 동일 처리)
33
34
  onFocus: handleAnchorEnter, onBlur: handleAnchorLeave, role: onClick ? 'button' : undefined, tabIndex: onClick ? 0 : undefined, "aria-label": onClick ? [label, value, changeText].filter((v) => v !== undefined && v !== '').join(' ') : undefined, children: [tooltip && anchorRect && (_jsx(TooltipInfo, { anchorRect: {
34
35
  left: anchorRect.left,
@@ -37,5 +38,5 @@ export default function StatChart({ label, value, change, changeType, icon, tool
37
38
  bottom: anchorRect.bottom,
38
39
  width: anchorRect.width,
39
40
  height: anchorRect.height,
40
- }, text: tooltip })), _jsxs("div", { className: "manager-stat-card__label-row", children: [_jsx("span", { className: "manager-stat-card__label h5", children: label }), icon && (_jsx("span", { className: "manager-stat-card__icon", children: _jsx(Icon, { icon: icon, className: "manager-stat-card__icon-inner" }) }))] }), _jsxs("div", { className: "manager-stat-card__content", children: [_jsxs("div", { className: "manager-stat-card__left", children: [_jsx("div", { className: "manager-stat-card__value h2", children: value }), changeText && (_jsx("div", { className: `manager-stat-card__change manager-stat-card__change--${resolvedChangeType ?? 'neutral'} caption-1`, children: changeText }))] }), children && _jsx("div", { className: "manager-stat-card__body", children: children })] })] }));
41
+ }, text: tooltip })), _jsxs("div", { className: withLegacy("stat-chart__card__label-row"), children: [_jsx("span", { className: withLegacy("stat-chart__card__label h5"), children: label }), icon && (_jsx("span", { className: withLegacy("stat-chart__card__icon"), children: _jsx(Icon, { icon: icon, className: withLegacy("stat-chart__card__icon-inner") }) }))] }), _jsxs("div", { className: withLegacy("stat-chart__card__content"), children: [_jsxs("div", { className: withLegacy("stat-chart__card__left"), children: [_jsx("div", { className: withLegacy("stat-chart__card__value h2"), children: value }), changeText && (_jsx("div", { className: withLegacy(`stat-chart__card__change stat-chart__card__change--${resolvedChangeType ?? 'neutral'} caption-1`), children: changeText }))] }), children && _jsx("div", { className: withLegacy("stat-chart__card__body"), children: children })] })] }));
41
42
  }
@@ -39,7 +39,7 @@
39
39
  }
40
40
 
41
41
  /* **안쪽 묶음이 줄 전체로 늘어나면 `justify-content` 가 먹을 여지가 없다.**
42
- 우측 묶음의 한 자식(예: 기간 조작 `.manager-section-controls`)이 제 안에서 줄을 바꾸면,
42
+ 우측 묶음의 한 자식(예: 기간 조작 `.chart-section__controls`)이 제 안에서 줄을 바꾸면,
43
43
  그 자식의 폭이 줄 전체가 되어(375px 에서 335px) 안의 항목들이 **왼쪽부터** 깔렸다 —
44
44
  우측 묶음은 오른쪽에 붙었는데 그 안은 왼쪽에 붙는 꼴이다(말귀 실측 2026-09-22).
45
45
  늘어나는 것 자체는 막지 않는다(막으면 좁은 화면에서 그 묶음이 제 줄을 못 쓴다).
@@ -1,7 +1,7 @@
1
- /* wrapper(.tooltip-content)의 배경 없앰(background/box-shadow)은 Tooltip.css의 공용
1
+ /* wrapper(.tooltip__content)의 배경 없앰(background/box-shadow)은 Tooltip.css의 공용
2
2
  variant 규칙으로 정규화됨(중복 제거). */
3
3
 
4
- .tooltip-description__box {
4
+ .description-tooltip__box {
5
5
  display: flex;
6
6
  flex-direction: column;
7
7
  gap: 10px;
@@ -13,12 +13,12 @@
13
13
  max-width: 640px;
14
14
  }
15
15
 
16
- .tooltip-description__title {
16
+ .description-tooltip__title {
17
17
  color: var(--color-black);
18
18
  margin: 0;
19
19
  }
20
20
 
21
- .tooltip-description__items {
21
+ .description-tooltip__items {
22
22
  display: flex;
23
23
  flex-direction: column;
24
24
  gap: var(--spacing-xs);
@@ -27,7 +27,7 @@
27
27
  list-style: none;
28
28
  }
29
29
 
30
- .tooltip-description__item {
30
+ .description-tooltip__item {
31
31
  display: flex;
32
32
  gap: var(--spacing-xs);
33
33
  align-items: flex-start;
@@ -35,14 +35,14 @@
35
35
  margin: 0;
36
36
  }
37
37
 
38
- .tooltip-description__index {
38
+ .description-tooltip__index {
39
39
  flex-shrink: 0;
40
40
  color: var(--color-main);
41
41
  }
42
42
 
43
43
  /* 항목 앞 색 점 — 범례와 같은 색으로 줄을 읽게 한다. 글줄 첫 줄 가운데에 오도록
44
44
  위 여백을 둔다(항목이 flex-start 정렬이라 여러 줄이어도 첫 줄에 붙는다). */
45
- .tooltip-description__dot {
45
+ .description-tooltip__dot {
46
46
  flex-shrink: 0;
47
47
  width: 8px;
48
48
  height: 8px;
@@ -51,10 +51,10 @@
51
51
  }
52
52
 
53
53
  /* 현재 재생 중인 항목 */
54
- .tooltip-description__item--active {
54
+ .description-tooltip__item--active {
55
55
  color: var(--color-main);
56
56
  font-weight: 600;
57
57
  }
58
- .tooltip-description__item--active .tooltip-description__index {
58
+ .description-tooltip__item--active .description-tooltip__index {
59
59
  color: var(--color-main);
60
60
  }
@@ -3,6 +3,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import Tooltip from './Tooltip';
4
4
  import { useTranslation } from 'react-i18next';
5
5
  import './DescriptionTooltip.css';
6
+ import { withLegacy } from '../../utils/legacyBlocks';
6
7
  /** @public */
7
8
  export default function DescriptionTooltip(props) {
8
9
  const { t } = useTranslation();
@@ -11,8 +12,8 @@ export default function DescriptionTooltip(props) {
11
12
  const list = raw.map((it) => (typeof it === 'string' ? { text: it } : it));
12
13
  if (!list.length && !title)
13
14
  return null;
14
- return (_jsx(Tooltip, { anchorRect: anchorRect, offset: offset, onClose: onClose, closeOnOutsideClick: closeOnOutsideClick, useBorder: false, className: "tooltip-description",
15
+ return (_jsx(Tooltip, { anchorRect: anchorRect, offset: offset, onClose: onClose, closeOnOutsideClick: closeOnOutsideClick, useBorder: false, className: withLegacy("description-tooltip"),
15
16
  /* `Tooltip` 의 기본 역할은 `dialog` 다. 이름을 안 주면 낭독기가 "대화상자" 라고만
16
17
  읽어 **무슨 창인지 알 수 없다.** 보이는 제목이 있으면 그것이 곧 이름이다. */
17
- ariaLabel: title || t('tooltip.description', '설명'), children: _jsxs("div", { className: "tooltip-description__box", children: [title && _jsx("span", { className: "tooltip-description__title body-2", children: title }), _jsx("ol", { className: "tooltip-description__items", children: list.map((item, i) => (_jsxs("li", { className: `tooltip-description__item body-3${i === activeIndex ? ' tooltip-description__item--active' : ''}`, children: [showIndex && list.length > 1 && _jsxs("span", { className: "tooltip-description__index button-1", children: [i + 1, "."] }), item.color && _jsx("span", { className: "tooltip-description__dot", style: { background: item.color }, "aria-hidden": "true" }), _jsx("span", { children: item.text })] }, i))) })] }) }));
18
+ ariaLabel: title || t('tooltip.description', '설명'), children: _jsxs("div", { className: withLegacy("description-tooltip__box"), children: [title && _jsx("span", { className: withLegacy("description-tooltip__title body-2"), children: title }), _jsx("ol", { className: withLegacy("description-tooltip__items"), children: list.map((item, i) => (_jsxs("li", { className: withLegacy(`description-tooltip__item body-3${i === activeIndex ? ' description-tooltip__item--active' : ''}`), children: [showIndex && list.length > 1 && _jsxs("span", { className: withLegacy("description-tooltip__index button-1"), children: [i + 1, "."] }), item.color && _jsx("span", { className: withLegacy("description-tooltip__dot"), style: { background: item.color }, "aria-hidden": "true" }), _jsx("span", { children: item.text })] }, i))) })] }) }));
18
19
  }
@@ -1,4 +1,4 @@
1
- .tooltip-info__content {
1
+ .info-tooltip__content {
2
2
  display: inline-flex;
3
3
  align-items: center;
4
4
  justify-content: center;
@@ -16,20 +16,20 @@
16
16
  text-align: center;
17
17
  }
18
18
 
19
- /* wrapper(.tooltip-content)의 배경 없앰(background/box-shadow)은 Tooltip.css의 공용
19
+ /* wrapper(.tooltip__content)의 배경 없앰(background/box-shadow)은 Tooltip.css의 공용
20
20
  variant 규칙으로 정규화됨. 이 파일엔 InfoTooltip 전용 pointer-events만 남긴다. */
21
- .tooltip-content.tooltip-info {
21
+ .tooltip__content.info-tooltip {
22
22
  pointer-events: none;
23
23
  }
24
24
 
25
- .tooltip-content.tooltip-info .tooltip-info__content {
25
+ .tooltip__content.info-tooltip .info-tooltip__content {
26
26
  /* the inner content provides the visible surface and shadow */
27
27
  box-shadow: var(--shadow-tooltip);
28
28
  }
29
29
 
30
30
  /* utility hook for positioning small arrow if needed later */
31
- .tooltip-info[data-placement="top"] .tooltip-info__content::after,
32
- .tooltip-info[data-placement="bottom"] .tooltip-info__content::after {
31
+ .info-tooltip[data-placement="top"] .info-tooltip__content::after,
32
+ .info-tooltip[data-placement="bottom"] .info-tooltip__content::after {
33
33
  content: "";
34
34
  position: absolute;
35
35
  width: 0;
@@ -1,10 +1,11 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import Tooltip from './Tooltip';
3
3
  import "./InfoTooltip.css";
4
+ import { withLegacy } from '../../utils/legacyBlocks';
4
5
  /** @public */
5
6
  export default function InfoTooltip(props) {
6
7
  const { anchorRect, text, offset = 8, onClose, className = '', ariaLabel } = props || {};
7
8
  if (!text)
8
9
  return null;
9
- return (_jsx(Tooltip, { anchorRect: anchorRect, offset: offset, onClose: onClose, closeOnOutsideClick: false, className: `tooltip-info ${className}`, ariaLabel: ariaLabel || text, children: _jsx("div", { className: "tooltip-info__content body-3", children: text }) }));
10
+ return (_jsx(Tooltip, { anchorRect: anchorRect, offset: offset, onClose: onClose, closeOnOutsideClick: false, className: withLegacy(`info-tooltip ${className}`), ariaLabel: ariaLabel || text, children: _jsx("div", { className: withLegacy("info-tooltip__content body-3"), children: text }) }));
10
11
  }
@@ -1,14 +1,14 @@
1
- .tooltip-menu {
1
+ .menu-tooltip {
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  gap: var(--spacing-xs);
5
5
  padding: var(--spacing-xs);
6
6
  min-width: 160px;
7
- /* 외곽선·라운드·그림자·배경은 감싸는 Tooltip 래퍼(.tooltip-content)가 제공 —
7
+ /* 외곽선·라운드·그림자·배경은 감싸는 Tooltip 래퍼(.tooltip__content)가 제공 —
8
8
  여기서 다시 두면 이중 테두리가 되므로 두지 않는다 */
9
9
  }
10
10
 
11
- .tooltip-menu__header {
11
+ .menu-tooltip__header {
12
12
  display: flex;
13
13
  align-items: center;
14
14
  gap: var(--spacing-xs);
@@ -17,17 +17,17 @@
17
17
  border-bottom: 1px solid var(--color-darkWhite);
18
18
  }
19
19
 
20
- .tooltip-menu__title {
20
+ .menu-tooltip__title {
21
21
  font-weight: 600;
22
22
  }
23
23
 
24
- .tooltip-menu__columns {
24
+ .menu-tooltip__columns {
25
25
  display: flex;
26
26
  gap: var(--spacing-s);
27
27
  padding: 4px;
28
28
  }
29
29
 
30
- .tooltip-menu__column {
30
+ .menu-tooltip__column {
31
31
  min-width: 0;
32
32
  flex: 1;
33
33
  display: flex;
@@ -35,47 +35,47 @@
35
35
  gap: var(--spacing-xs);
36
36
  }
37
37
 
38
- .tooltip-menu__column-title {
38
+ .menu-tooltip__column-title {
39
39
  margin-bottom: 4px;
40
40
  color: var(--color-lightGray);
41
41
  }
42
42
 
43
- .tooltip-menu__items {
43
+ .menu-tooltip__items {
44
44
  display: flex;
45
45
  flex-direction: column;
46
46
  gap: var(--spacing-l);
47
47
  }
48
48
 
49
49
  /* ── small 변형 — 더 좁고 타이트한 메뉴 ── */
50
- .tooltip-menu--small {
50
+ .menu-tooltip--small {
51
51
  min-width: 140px;
52
52
  gap: 2px;
53
53
  }
54
- .tooltip-menu--small .tooltip-menu__items {
54
+ .menu-tooltip--small .menu-tooltip__items {
55
55
  gap: var(--spacing-xs);
56
56
  }
57
- .tooltip-menu--small .tooltip-menu__columns {
57
+ .menu-tooltip--small .menu-tooltip__columns {
58
58
  padding: 2px;
59
59
  gap: var(--spacing-xs);
60
60
  }
61
- .tooltip-menu--small .tooltip-menu__header {
61
+ .menu-tooltip--small .menu-tooltip__header {
62
62
  height: 44px;
63
63
  padding: 6px 10px;
64
64
  }
65
65
 
66
66
  /* 묶음 사이 가로선 — 항목이 아니라 경계다(키보드 차례에 끼지 않는다) */
67
- .tooltip-menu__separator {
67
+ .menu-tooltip__separator {
68
68
  height: 1px;
69
69
  margin: 4px 0;
70
70
  background: var(--color-whiteLine);
71
71
  }
72
72
 
73
- .tooltip-menu__item {
73
+ .menu-tooltip__item {
74
74
  width: 100%;
75
75
  }
76
76
 
77
77
  @media (max-width: 600px) {
78
- .tooltip-menu__columns {
78
+ .menu-tooltip__columns {
79
79
  flex-direction: column;
80
80
  }
81
81
  }
@@ -5,6 +5,7 @@ import { useTranslation } from 'react-i18next';
5
5
  import Button from '../Button';
6
6
  import Badge from '../Badge';
7
7
  import './MenuTooltip.css';
8
+ import { withLegacy } from '../../utils/legacyBlocks';
8
9
  /** @public */
9
10
  export default function MenuTooltip({ columns = [], onClose, className = '', size = 'medium' }) {
10
11
  const { t } = useTranslation();
@@ -81,7 +82,7 @@ export default function MenuTooltip({ columns = [], onClose, className = '', siz
81
82
  }
82
83
  catch (err) { }
83
84
  }, [onClose, visibleDepth]);
84
- return (_jsxs("div", { className: `tooltip-menu tooltip-menu--${size} ${className}`, children: [(stack.length > 1 || current.title) && (_jsxs("div", { className: "tooltip-menu__header", children: [stack.length > 1 ? (_jsx(Button, { htmlType: "button", size: itemSize, type: "dot", icon: "chevron-left", ariaLabel: t('common.back', '뒤로'), onClick: goBack, variant: "transparent-gray", useBorder: false })) : null, _jsx("div", { className: "tooltip-menu__title button-1", children: current.title })] })), _jsx("div", { className: "tooltip-menu__columns", ref: itemsWrapRef, children: current.columns && current.columns.map((col, ci) => (_jsxs("div", { className: "tooltip-menu__column", children: [col.title ? _jsx("div", { className: "tooltip-menu__column-title body-3", children: col.title }) : null, _jsx("div", { className: "tooltip-menu__items", children: (col.items || []).map((item, idx) => (_jsxs(Fragment, { children: [item.separatorBefore && idx > 0 && _jsx("div", { className: "tooltip-menu__separator", role: "separator" }), _jsx(Button, { htmlType: "button", className: "tooltip-menu__item", size: itemSize, type: item.label ? 'bar' : 'dot', icon: item.selected ? 'check' : (item.icon || 'none'), rightIcon: Array.isArray(item.children) && item.children.length
85
+ return (_jsxs("div", { className: withLegacy(`menu-tooltip menu-tooltip--${size} ${className}`), children: [(stack.length > 1 || current.title) && (_jsxs("div", { className: withLegacy("menu-tooltip__header"), children: [stack.length > 1 ? (_jsx(Button, { htmlType: "button", size: itemSize, type: "dot", icon: "chevron-left", ariaLabel: t('common.back', '뒤로'), onClick: goBack, variant: "transparent-gray", useBorder: false })) : null, _jsx("div", { className: withLegacy("menu-tooltip__title button-1"), children: current.title })] })), _jsx("div", { className: withLegacy("menu-tooltip__columns"), ref: itemsWrapRef, children: current.columns && current.columns.map((col, ci) => (_jsxs("div", { className: withLegacy("menu-tooltip__column"), children: [col.title ? _jsx("div", { className: withLegacy("menu-tooltip__column-title body-3"), children: col.title }) : null, _jsx("div", { className: withLegacy("menu-tooltip__items"), children: (col.items || []).map((item, idx) => (_jsxs(Fragment, { children: [item.separatorBefore && idx > 0 && _jsx("div", { className: withLegacy("menu-tooltip__separator"), role: "separator" }), _jsx(Button, { htmlType: "button", className: withLegacy("menu-tooltip__item"), size: itemSize, type: item.label ? 'bar' : 'dot', icon: item.selected ? 'check' : (item.icon || 'none'), rightIcon: Array.isArray(item.children) && item.children.length
85
86
  ? 'chevron-right'
86
87
  : item.badgeCount
87
88
  ? _jsx(Badge, { type: "dot", position: "inline", number: Math.min(item.badgeCount, 99), size: 24, "aria-hidden": true })
@@ -1,4 +1,4 @@
1
- .tooltip-textbox {
1
+ .text-box-tooltip {
2
2
  padding: var(--spacing-content);
3
3
  border-radius: var(--radius-m);
4
4
  background: var(--color-deepWhite);
@@ -7,28 +7,28 @@
7
7
  box-sizing: border-box;
8
8
  }
9
9
 
10
- .tooltip-textbox__root {
10
+ .text-box-tooltip__root {
11
11
  display: flex;
12
12
  flex-direction: column;
13
13
  gap: var(--spacing-xs);
14
14
  }
15
15
 
16
- .tooltip-textbox__box {
16
+ .text-box-tooltip__box {
17
17
  background: transparent;
18
18
  }
19
19
 
20
- .tooltip-textbox__label {
20
+ .text-box-tooltip__label {
21
21
  color:var(--color-darkGray);
22
22
  }
23
23
 
24
- .tooltip-textbox__text {
24
+ .text-box-tooltip__text {
25
25
  color:var(--color-darkGray);
26
26
  white-space: normal;
27
27
  word-break: keep-all;
28
28
  overflow-wrap: anywhere;
29
29
  }
30
30
 
31
- .tooltip-textbox__line {
31
+ .text-box-tooltip__line {
32
32
  margin-bottom: 0;
33
33
  display: flex;
34
34
  gap: var(--spacing-s);
@@ -36,20 +36,20 @@
36
36
  min-height: 60px;
37
37
  padding: 10px 0;
38
38
  }
39
- .tooltip-textbox__line:last-child {
39
+ .text-box-tooltip__line:last-child {
40
40
  margin-bottom: 0;
41
41
  }
42
42
 
43
43
  /* border under each line except the last; spacing handled via padding */
44
- .tooltip-textbox__line:not(:last-child) {
44
+ .text-box-tooltip__line:not(:last-child) {
45
45
  border-bottom: 1px solid var(--color-darkWhite);
46
46
  }
47
47
 
48
- .tooltip-textbox.is-dark .tooltip-textbox__line:not(:last-child) {
48
+ .text-box-tooltip.is-dark .text-box-tooltip__line:not(:last-child) {
49
49
  border-bottom-color: rgba(255,255,255,0.06);
50
50
  }
51
51
 
52
- .tooltip-textbox__marker {
52
+ .text-box-tooltip__marker {
53
53
  min-width: 24px;
54
54
  height: 24px;
55
55
  border-radius: var(--radius-sm);
@@ -68,17 +68,17 @@
68
68
  /* removed auto-offset to avoid small misalignments */
69
69
  }
70
70
 
71
- .tooltip-textbox__line-number {
71
+ .text-box-tooltip__line-number {
72
72
  min-width: auto;
73
73
  text-align: center;
74
74
  color: #ffffff;
75
75
  }
76
- .tooltip-textbox__line-text {
76
+ .text-box-tooltip__line-text {
77
77
  flex: 1 1 auto;
78
78
  }
79
79
 
80
80
  /* 버튼 영역 */
81
- .tooltip-textbox__buttons {
81
+ .text-box-tooltip__buttons {
82
82
  position: relative;
83
83
  display: flex;
84
84
  gap: var(--spacing-xs);
@@ -87,9 +87,9 @@
87
87
  align-items: center;
88
88
  }
89
89
 
90
- .tooltip-textbox.is-dark {
90
+ .text-box-tooltip.is-dark {
91
91
  background: var(--color-darkGray);
92
92
  border-color: var(--color-gray);
93
93
  }
94
94
 
95
- .tooltip-textbox.is-dark .tooltip-textbox__text { color: var(--color-deepWhite) }
95
+ .text-box-tooltip.is-dark .text-box-tooltip__text { color: var(--color-deepWhite) }
@@ -6,6 +6,7 @@ import Button from '../Button';
6
6
  import Tooltip from './Tooltip';
7
7
  import { useFontScale } from '../../hooks';
8
8
  import './TextBoxTooltip.css';
9
+ import { withLegacy } from '../../utils/legacyBlocks';
9
10
  /** @public */
10
11
  export default function TextBoxTooltip(props) {
11
12
  const { t } = useTranslation();
@@ -47,11 +48,11 @@ export default function TextBoxTooltip(props) {
47
48
  '--tt-line-height': `${lineHeight}px`,
48
49
  '--tt-marker-size': '28px',
49
50
  };
50
- const inner = (_jsxs("div", { className: `tooltip-textbox__root ${theme === 'dark' ? 'is-dark' : ''}`, children: [_jsxs("div", { className: "tooltip-textbox__box", children: [label && _jsx("div", { className: "tooltip-textbox__label body-2b", children: label }), _jsx("div", { className: "tooltip-textbox__text body-1", style: textStyle, children: lines.map((ln, idx) => (_jsxs("div", { className: "tooltip-textbox__line", children: [lines.length > 1 ? (_jsx("div", { className: "tooltip-textbox__marker", children: _jsx("span", { className: "tooltip-textbox__line-number button-1", children: idx + 1 }) })) : null, _jsx("span", { className: "tooltip-textbox__line-text", children: ln })] }, idx))) })] }), _jsxs("div", { className: "tooltip-textbox__buttons", children: [_jsx(Button, { htmlType: "button", size: 32, showTooltipInfo: true, type: "dot", useBorder: false, width: 48, icon: 'minus', onClick: decrease, ariaLabel: t('training.fontSizeDecrease', '글자 크기 감소'), variant: theme === 'dark' ? 'transparent-white' : 'transparent-gray', disabled: !canDecrease }), _jsx(Button, { htmlType: "button", size: 32, showTooltipInfo: true, type: "dot", useBorder: false, width: 48, icon: 'plus', onClick: increase, ariaLabel: t('training.fontSizeIncrease', '글자 크기 증가'), variant: theme === 'dark' ? 'transparent-white' : 'transparent-gray', disabled: !canIncrease }), _jsx(Button, { htmlType: "button", size: 32, showTooltipInfo: true, type: "dot", useBorder: false, width: 48, icon: theme === 'dark' ? 'moon' : 'sun-medium', onClick: toggleTheme, ariaLabel: t('training.toggleBackground', '배경 전환'), variant: theme === 'dark' ? 'transparent-white' : 'transparent-gray' }), _jsx(Button, { htmlType: "button", size: 32, showTooltipInfo: true, type: "dot", useBorder: false, width: 48, icon: 'x', onClick: handleClose, ariaLabel: t('common.close', '닫기'), variant: theme === 'dark' ? 'transparent-white' : 'transparent-gray' })] })] }));
51
+ const inner = (_jsxs("div", { className: withLegacy(`text-box-tooltip__root ${theme === 'dark' ? 'is-dark' : ''}`), children: [_jsxs("div", { className: withLegacy("text-box-tooltip__box"), children: [label && _jsx("div", { className: withLegacy("text-box-tooltip__label body-2b"), children: label }), _jsx("div", { className: withLegacy("text-box-tooltip__text body-1"), style: textStyle, children: lines.map((ln, idx) => (_jsxs("div", { className: withLegacy("text-box-tooltip__line"), children: [lines.length > 1 ? (_jsx("div", { className: withLegacy("text-box-tooltip__marker"), children: _jsx("span", { className: withLegacy("text-box-tooltip__line-number button-1"), children: idx + 1 }) })) : null, _jsx("span", { className: withLegacy("text-box-tooltip__line-text"), children: ln })] }, idx))) })] }), _jsxs("div", { className: withLegacy("text-box-tooltip__buttons"), children: [_jsx(Button, { htmlType: "button", size: 32, showTooltipInfo: true, type: "dot", useBorder: false, width: 48, icon: 'minus', onClick: decrease, ariaLabel: t('training.fontSizeDecrease', '글자 크기 감소'), variant: theme === 'dark' ? 'transparent-white' : 'transparent-gray', disabled: !canDecrease }), _jsx(Button, { htmlType: "button", size: 32, showTooltipInfo: true, type: "dot", useBorder: false, width: 48, icon: 'plus', onClick: increase, ariaLabel: t('training.fontSizeIncrease', '글자 크기 증가'), variant: theme === 'dark' ? 'transparent-white' : 'transparent-gray', disabled: !canIncrease }), _jsx(Button, { htmlType: "button", size: 32, showTooltipInfo: true, type: "dot", useBorder: false, width: 48, icon: theme === 'dark' ? 'moon' : 'sun-medium', onClick: toggleTheme, ariaLabel: t('training.toggleBackground', '배경 전환'), variant: theme === 'dark' ? 'transparent-white' : 'transparent-gray' }), _jsx(Button, { htmlType: "button", size: 32, showTooltipInfo: true, type: "dot", useBorder: false, width: 48, icon: 'x', onClick: handleClose, ariaLabel: t('common.close', '닫기'), variant: theme === 'dark' ? 'transparent-white' : 'transparent-gray' })] })] }));
51
52
  if (anchorRect) {
52
- return (_jsx(Tooltip, { anchorRect: anchorRect, className: `tooltip-textbox ${theme === 'dark' ? 'is-dark' : ''}`, onClose: onClose, closeOnOutsideClick: closeOnOutsideClick, isMobilePopup: isMobilePopup,
53
+ return (_jsx(Tooltip, { anchorRect: anchorRect, className: withLegacy(`text-box-tooltip ${theme === 'dark' ? 'is-dark' : ''}`), onClose: onClose, closeOnOutsideClick: closeOnOutsideClick, isMobilePopup: isMobilePopup,
53
54
  /* 이름 없는 `role="dialog"` 는 "대화상자" 로만 읽힌다 — 보이는 라벨을 쓴다. */
54
55
  ariaLabel: label || t('tooltip.textbox', '본문'), children: inner }));
55
56
  }
56
- return (_jsx("div", { className: `tooltip-textbox ${theme === 'dark' ? 'is-dark' : ''}`, children: inner }));
57
+ return (_jsx("div", { className: withLegacy(`text-box-tooltip ${theme === 'dark' ? 'is-dark' : ''}`), children: inner }));
57
58
  }
@@ -1,4 +1,4 @@
1
- .tooltip-content {
1
+ .tooltip__content {
2
2
  /* allow multiline text and let tooltip size to content up to a limit */
3
3
  white-space: normal;
4
4
  box-sizing: border-box;
@@ -14,27 +14,27 @@
14
14
  }
15
15
 
16
16
  /* useBorder=true 일 때만 외곽선 */
17
- .tooltip-content--inline {
17
+ .tooltip__content--inline {
18
18
  /* 붙일 자리가 없는 툴팁은 제 자리를 차지한다 — Tooltip.tsx 의 isInline 과 한 쌍이다 */
19
19
  position: static;
20
20
  }
21
- .tooltip-content--bordered {
21
+ .tooltip__content--bordered {
22
22
  border: 1px solid var(--color-whiteLine);
23
23
  }
24
24
 
25
- /* 배경 없는 variant 툴팁(Info/Description/Training) 공통 — 감싸는 wrapper(.tooltip-content)의
25
+ /* 배경 없는 variant 툴팁(Info/Description/Training) 공통 — 감싸는 wrapper(.tooltip__content)의
26
26
  배경·그림자를 지우고 내부 컨텐츠 자체 스타일만 남긴다. 세 파일에 동일 규칙이
27
- 중복 선언돼 있던 것을 정규화. 결합 선택자(2클래스)가 .tooltip-content(1클래스)보다
27
+ 중복 선언돼 있던 것을 정규화. 결합 선택자(2클래스)가 .tooltip__content(1클래스)보다
28
28
  특이도가 높아 !important 불필요. */
29
- .tooltip-content.tooltip-info,
30
- .tooltip-content.tooltip-description,
31
- .tooltip-content.tooltip-training {
29
+ .tooltip__content.info-tooltip,
30
+ .tooltip__content.description-tooltip,
31
+ .tooltip__content.training-tooltip {
32
32
  background: transparent;
33
33
  box-shadow: none;
34
34
  }
35
35
 
36
36
  /* header prop 전달 시 상단 헤더 */
37
- .tooltip-content__header {
37
+ .tooltip__header {
38
38
  display: flex;
39
39
  align-items: center;
40
40
  height: 40px;
@@ -44,22 +44,22 @@
44
44
 
45
45
  /* 닫힘 페이드 — **애니메이션으로** 준다. 열림 애니메이션(tooltip-pop, fill-mode both)이 끝난 값(opacity 1)을 붙들고 있어
46
46
  opacity·transition 선언은 애니메이션 값에 져서 200ms 동안 그대로 보이다 툭 사라졌다. 같은 animation 속성을 바꿔 끼운다. */
47
- .tooltip-content.is-closing {
47
+ .tooltip__content.is-closing {
48
48
  opacity: 0;
49
49
  animation: tooltip-fade-out 200ms ease both;
50
50
  }
51
51
 
52
52
  /* Placement-specific initial offsets (used by open animation) */
53
- .tooltip-content[data-placement='top'] { transform: translateY(-6px); }
54
- .tooltip-content[data-placement='bottom'] { transform: translateY(6px); }
55
- .tooltip-content[data-placement='left'] { transform: translateX(-6px); }
56
- .tooltip-content[data-placement='right'] { transform: translateX(6px); }
53
+ .tooltip__content[data-placement='top'] { transform: translateY(-6px); }
54
+ .tooltip__content[data-placement='bottom'] { transform: translateY(6px); }
55
+ .tooltip__content[data-placement='left'] { transform: translateX(-6px); }
56
+ .tooltip__content[data-placement='right'] { transform: translateX(6px); }
57
57
 
58
58
  /* Placement-specific closing transforms to animate towards the anchor direction */
59
- .tooltip-content.is-closing[data-placement='top'] { transform: translateY(-6px) scale(0.98); }
60
- .tooltip-content.is-closing[data-placement='bottom'] { transform: translateY(6px) scale(0.98); }
61
- .tooltip-content.is-closing[data-placement='left'] { transform: translateX(-6px) scale(0.98); }
62
- .tooltip-content.is-closing[data-placement='right'] { transform: translateX(6px) scale(0.98); }
59
+ .tooltip__content.is-closing[data-placement='top'] { transform: translateY(-6px) scale(0.98); }
60
+ .tooltip__content.is-closing[data-placement='bottom'] { transform: translateY(6px) scale(0.98); }
61
+ .tooltip__content.is-closing[data-placement='left'] { transform: translateX(-6px) scale(0.98); }
62
+ .tooltip__content.is-closing[data-placement='right'] { transform: translateX(6px) scale(0.98); }
63
63
 
64
64
  @keyframes tooltip-pop {
65
65
  from {
@@ -84,21 +84,21 @@
84
84
  }
85
85
 
86
86
  /* optional backdrop used by Tooltip when `backdrop=true` */
87
- .tooltip-backdrop {
87
+ .tooltip__backdrop {
88
88
  position: fixed;
89
89
  inset: 0;
90
90
  background: var(--color-popupBlock);
91
91
  z-index: calc(var(--z-tooltip) - 1); /* 툴팁 백드롭 — 툴팁 바로 아래 */
92
92
  }
93
93
 
94
- .tooltip-portal {
94
+ .tooltip__portal {
95
95
  position: fixed;
96
96
  inset: 0;
97
97
  z-index: var(--z-tooltip);
98
98
  }
99
99
 
100
100
  /* Mobile: force centered popup and fixed max-width to avoid any layout override */
101
- .tooltip-content.is-mobile {
101
+ .tooltip__content.is-mobile {
102
102
  left: 50% !important;
103
103
  top: 50% !important;
104
104
  transform: translate(-50%, -50%) !important;