@ihabdevteam/core 0.413.0 → 0.414.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 (56) hide show
  1. package/CHANGELOG.md +405 -0
  2. package/dist/components.cjs.js +178 -178
  3. package/dist/components.esm.css +2 -2
  4. package/dist/hooks.cjs.js +5 -5
  5. package/dist/i18n.cjs.js +3 -3
  6. package/dist/ihabdevteam-core.cjs.js +190 -190
  7. package/dist/ihabdevteam-core.d.ts +168 -18
  8. package/dist/packages/core/src/components/Accordion.css +16 -0
  9. package/dist/packages/core/src/components/BarChart.css +16 -8
  10. package/dist/packages/core/src/components/BarChart.d.ts +1 -1
  11. package/dist/packages/core/src/components/BarChart.js +13 -11
  12. package/dist/packages/core/src/components/BulkBar.js +2 -1
  13. package/dist/packages/core/src/components/ChartSection.css +193 -25
  14. package/dist/packages/core/src/components/ChartSection.d.ts +94 -2
  15. package/dist/packages/core/src/components/ChartSection.js +92 -7
  16. package/dist/packages/core/src/components/ColorPicker.d.ts +2 -1
  17. package/dist/packages/core/src/components/ColorPicker.js +2 -1
  18. package/dist/packages/core/src/components/DatePicker.css +5 -0
  19. package/dist/packages/core/src/components/DatePicker.d.ts +2 -1
  20. package/dist/packages/core/src/components/DatePicker.js +1 -1
  21. package/dist/packages/core/src/components/Dropdown.css +6 -0
  22. package/dist/packages/core/src/components/Dropdown.d.ts +2 -1
  23. package/dist/packages/core/src/components/FilterPanel.js +17 -3
  24. package/dist/packages/core/src/components/Header.js +4 -4
  25. package/dist/packages/core/src/components/Panel.css +21 -0
  26. package/dist/packages/core/src/components/RingChart.js +10 -6
  27. package/dist/packages/core/src/components/SegmentedControl.css +6 -1
  28. package/dist/packages/core/src/components/SegmentedControl.d.ts +5 -1
  29. package/dist/packages/core/src/components/SegmentedControl.js +2 -1
  30. package/dist/packages/core/src/components/SideNav.js +1 -1
  31. package/dist/packages/core/src/components/StatChart.d.ts +22 -11
  32. package/dist/packages/core/src/components/StatChart.js +17 -37
  33. package/dist/packages/core/src/components/SummaryStrip.d.ts +1 -1
  34. package/dist/packages/core/src/components/SummaryStrip.js +1 -1
  35. package/dist/packages/core/src/components/Table.d.ts +16 -0
  36. package/dist/packages/core/src/components/Tabs.d.ts +2 -1
  37. package/dist/packages/core/src/components/Tabs.js +2 -1
  38. package/dist/packages/core/src/components/TextField.css +20 -1
  39. package/dist/packages/core/src/components/TextField.d.ts +7 -1
  40. package/dist/packages/core/src/components/TextField.js +2 -1
  41. package/dist/packages/core/src/components/Training/TrainingCardGroup.css +22 -3
  42. package/dist/packages/core/src/components/Word/WordSearchResultBlock.js +2 -1
  43. package/dist/packages/core/src/components/barChartTypes.d.ts +12 -0
  44. package/dist/packages/core/src/components/controlSize.d.ts +87 -1
  45. package/dist/packages/core/src/components/controlSize.js +87 -1
  46. package/dist/packages/core/src/components/useBarChartControl.js +27 -7
  47. package/dist/packages/core/src/components.d.ts +3 -3
  48. package/dist/packages/core/src/components.js +1 -1
  49. package/dist/packages/core/src/i18n/locales/en.json +1 -0
  50. package/dist/packages/core/src/i18n/locales/ko.json +1 -0
  51. package/dist/packages/core/src/utils/legacyBlocks.js +5 -1
  52. package/dist/packages/core/src/version.d.ts +1 -1
  53. package/dist/packages/core/src/version.js +1 -1
  54. package/dist/utils.cjs.js +21 -21
  55. package/package.json +1 -1
  56. package/dist/packages/core/src/components/StatChart.css +0 -93
@@ -22,7 +22,8 @@ export interface DropdownProps {
22
22
  * 단추·글상자·고르개가 40 인데 혼자 48 로 섰다(실측 2026-10-29). `SegmentedControl` 도
23
23
  * 2026-09-21 에 같은 까닭으로 48 → 40 으로 내렸다. 큰 자리만 48 을 적는다.
24
24
  */
25
- size?: 40 | 48;
25
+ /** 조절칸 키 — 32(줄·머리 기본, 2026-11-02) · 40 · 48 */
26
+ size?: 32 | 40 | 48;
26
27
  error?: boolean;
27
28
  className?: string;
28
29
  /** 화면에 보이는 라벨 없이 스크린리더용 이름을 지정할 때 사용 */
@@ -8,6 +8,7 @@ import Button from './Button';
8
8
  import SegmentedControl from './SegmentedControl';
9
9
  import TextField from './TextField';
10
10
  import Dropdown from './Dropdown';
11
+ import { CONTROL_SIZE } from './controlSize';
11
12
  export { FILTER_ALL_VALUE } from '../types/filterPanel';
12
13
  import { FILTER_ALL_VALUE } from '../types/filterPanel';
13
14
  import FilterSectionInfo from './FilterSectionInfo';
@@ -54,7 +55,7 @@ export default function FilterPanel({ title, titleLevel = 2, headerAction, heade
54
55
  안 잡혀, 셋이 나란히 서도 "지금 어느 판 안인지" 를 알 길이 없었다 — (51)·(54) 에서
55
56
  `ChartSection`·`TrainingCardGroup` 에 한 것과 같은 자다.
56
57
  **글자 제목일 때만 건다** — 마디를 가리키므로 글이 아닌 제목이면 이름이 안 선다. */
57
- _jsxs("div", { className: cx('filter-panel', collapsible ? 'filter-panel--collapsible' : '', collapsed ? 'filter-panel--collapsed' : '', className), role: typeof title === 'string' && title ? 'group' : undefined, "aria-labelledby": typeof title === 'string' && title ? titleId : undefined, children: [showHeader && (_jsxs("div", { className: "filter-panel__header", onClick: collapsible ? onHeadClick : undefined, children: [_jsx("div", { className: "filter-panel__title-row", children: title && _jsx(TitleTag, { id: titleId, className: "filter-panel__title h4", children: title }) }), _jsxs("div", { className: "filter-panel__header-actions", children: [collapsed ? summaryNode : headerAction, collapsible && (_jsx(Button, { htmlType: "button", size: 40, type: "dot", variant: "transparent-gray", useBorder: false, icon: collapsed ? 'chevron-down' : 'chevron-up',
58
+ _jsxs("div", { className: cx('filter-panel', collapsible ? 'filter-panel--collapsible' : '', collapsed ? 'filter-panel--collapsed' : '', className), role: typeof title === 'string' && title ? 'group' : undefined, "aria-labelledby": typeof title === 'string' && title ? titleId : undefined, children: [showHeader && (_jsxs("div", { className: "filter-panel__header", onClick: collapsible ? onHeadClick : undefined, children: [_jsx("div", { className: "filter-panel__title-row", children: title && _jsx(TitleTag, { id: titleId, className: "filter-panel__title h4", children: title }) }), _jsxs("div", { className: "filter-panel__header-actions", children: [collapsed ? summaryNode : headerAction, collapsible && (_jsx(Button, { htmlType: "button", size: CONTROL_SIZE, type: "dot", variant: "transparent-gray", useBorder: false, icon: collapsed ? 'chevron-down' : 'chevron-up',
58
59
  /* Button은 aria-label을 자기 ariaLabel prop으로 덮어쓴다({...rest} 뒤에
59
60
  aria-label={ariaLabelString}을 다시 쓴다) — kebab으로 넘기면 undefined가
60
61
  되어 이름이 통째로 사라진다. 저장소의 다른 호출부는 모두 ariaLabel을 쓴다.
@@ -135,11 +136,24 @@ export default function FilterPanel({ title, titleLevel = 2, headerAction, heade
135
136
  2026-09-22 에는 숫자 size 가 768px 이하에서 한 급 줄고(32→28) `size="Keyboard"`(32)는
136
137
  안 줄어 폰에서만 어긋났고, 맞추려면 손가락 자리가 28 이 되는 터라 어긋남 쪽을 택했다
137
138
  (사용자 판단). 그 사다리를 걷으면서 **둘 다 어느 폭에서나 32** 가 되어 까닭이 사라졌다.
138
- `test/buttonSizeLadder0922.test.ts` 가 사다리가 다시 생기지 않는지를 센다. */
139
+ `test/buttonSizeLadder0922.test.ts` 가 사다리가 다시 생기지 않는지를 센다.
140
+
141
+ **공용 수를 쓰면 안 된다 — 이 자리의 닻은 항목 단추다.**
142
+ 2026-11-02 에 공용 수가 32 로 내려가자 두 수가 같아져서 `CONTROL_SIZE` 로
143
+ 바꿨는데, **같은 날 공용 수가 40 으로 되돌려지면서 바로 어긋났다**
144
+ (`narrowScreen0922` 가 *"40 이면 옆 항목 단추(32)보다 8px 높다"* 로 울었다).
145
+ 항목 단추는 `size="keyboard"`(32)로 **다른 사다리**라 공용 수와 함께 움직이지
146
+ 않는다. 그러니 여기는 **32 를 손으로 적는다** — 두 수가 우연히 같아지는
147
+ 날에도 바꾸지 않는다. */
139
148
  size: 32 })) : (!section.multiple && section.display === 'dropdown') ? (_jsx(Dropdown, { className: "filter-panel__dropdown",
140
149
  /* 거르개 절의 이름을 그대로 쓴다 — (70) 로 방아쇠가 `combobox` 가 되면서
141
150
  안 글자가 값이 됐다. 이름을 안 주면 절이 여럿인 판에서 다 똑같이 들린다. */
142
- ariaLabel: typeof section.label === 'string' ? section.label : undefined, size: 40, options: [
151
+ /* **옆 갈래와 같은 수를 쓴다.** 바로 위 `SegmentedControl` 갈래는 2026-09-22 에
152
+ 32 로 내려갔는데 이 드롭다운만 40 으로 남아, 한 절 안에서 갈래에 따라 키가
153
+ 달랐다. 2026-10-29 에 `PanelRow` 에서 겪은 것과 같은 흠이다 — 손으로 적는
154
+ 자리가 여럿이면 하나가 빠진다. 그래서 공용 수를 쓴다.
155
+ */
156
+ ariaLabel: typeof section.label === 'string' ? section.label : undefined, size: CONTROL_SIZE, options: [
143
157
  ...(section.allOption ? [{ value: FILTER_ALL_VALUE, label: section.allLabel ?? t('common.all', '전체'), disabled: section.allOptionDisabled }] : []),
144
158
  ...items.map(item => {
145
159
  const value = typeof item === 'string' ? item : item.value;
@@ -80,12 +80,14 @@ export default function Header({ activeKey, onChange, items, malgwiItems: _malgw
80
80
  }
81
81
  onChange?.(key);
82
82
  }, [items, onChange]);
83
- // 모바일 하단 더보기(…) 메뉴에 노출할 유틸(알림·설정·도움말·계정·디버그).
83
+ // 모바일 하단 더보기(…) 메뉴에 노출할 유틸(디버그·도움말·알림·설정·버그신고·계정).
84
84
  // 데스크톱 SideNav 푸터와 동일한 아이콘/키를 사용해 활성표시가 일관되게 반영된다.
85
85
  const bottomMoreItems = useMemo(() => {
86
86
  const list = [];
87
87
  if (onDebug)
88
88
  list.push({ key: 'debug', icon: 'terminal', label: t('nav.debug', '디버그'), onClick: onDebug });
89
+ if (onHelp)
90
+ list.push({ key: 'help', icon: 'message-circle-question-mark', label: t('nav.help', '도움말'), onClick: onHelp });
89
91
  if (onNotification)
90
92
  list.push({
91
93
  key: 'notifications', icon: 'bell',
@@ -96,15 +98,13 @@ export default function Header({ activeKey, onChange, items, malgwiItems: _malgw
96
98
  });
97
99
  if (onSetting)
98
100
  list.push({ key: 'settings', icon: 'settings', label: t('nav.settings', '설정'), onClick: onSetting });
99
- if (onHelp)
100
- list.push({ key: 'help', icon: 'message-circle-question-mark', label: t('nav.help', '도움말'), onClick: onHelp });
101
101
  if (onFeedback)
102
102
  list.push({ key: 'feedback', icon: 'bug', label: t('nav.feedback', '버그신고'), onClick: onFeedback });
103
103
  if (onAccount)
104
104
  list.push({ key: 'account', icon: 'user-round', label: t('nav.account', '계정'), onClick: onAccount });
105
105
  return list;
106
106
  }, [t, onDebug, onNotification, onSetting, onHelp, onFeedback, onAccount, unreadCount]);
107
- // 헤더 햄버거 — SideNav 푸터에 해당하는 유틸(알림·설정·도움말·계정·디버그)을 띄운다.
107
+ // 헤더 햄버거 — SideNav 푸터에 해당하는 유틸(디버그·도움말·알림·설정·버그신고·계정)을 띄운다.
108
108
  // 데스크톱에선 SideNav 푸터에 늘 보이지만 모바일에선 그 자리가 없어, 같은 항목을
109
109
  // 하단 더보기(…)와 동일한 구성(bottomMoreItems)으로 재사용한다.
110
110
  const computeUtilMenuStyle = useCallback((rect, trigger) => ({
@@ -774,6 +774,27 @@
774
774
  margin-left: 0;
775
775
  text-align: left;
776
776
  }
777
+ /* **세로줄은 위 `:has(…)` 묶음의 이름표 칸에서 빠진다.**
778
+ *
779
+ * 그 묶음은 **가로줄의 이름표 폭**을 `flex-basis` 로 잡는다(`--panel-label-width`).
780
+ * 세로줄은 `flex-direction: column` 이라 **같은 값이 높이가 된다** — 22px 글자 하나가
781
+ * 64px(또는 기본값 120px) 칸 안에 들어앉아, 이름표와 칸 사이가 벌어진다. 줄 사이는
782
+ * 0 이라 그 칸은 **아래 줄의 이름표 쪽으로** 쏠려 보인다(말귀가 짚었다, 2026-11-01).
783
+ *
784
+ * 바로 위 세 줄(`flex: none`)이 **이미 그렇게 적고 있었는데 번번이 졌다** — `:has()` 가
785
+ * 가장 센 인자의 특이도를 물려받아 저쪽이 (0,4,0), 이쪽이 (0,2,0) 이었다. 값을 바꾸는
786
+ * 것이 아니라 **특이도를 맞춰 다시 적는 것**이다.
787
+ *
788
+ * 말귀 실측(단어표 만들기, 폭 1,766 · 이름표 칸 64px): 이름 줄 128 → 86px ·
789
+ * 설명 줄 162 → 120px. 줄마다 **42px**(64 − 22)이 빈 자리였다.
790
+ *
791
+ * 폭을 안 적는다 — 바로 위 `.panel-row--vertical .panel-row__left` 의 `width: 100%` 가
792
+ * 그대로 선다. 여기서 되돌리는 것은 **높이로 둔갑한 basis 하나**다. */
793
+ .panel-row--vertical:has(> .panel-row__right .text-field) > .panel-row__left,
794
+ .panel-row--vertical:has(> .panel-row__right .dropdown) > .panel-row__left,
795
+ .panel-row--vertical:has(> .panel-row__right .form-input) > .panel-row__left {
796
+ flex: none;
797
+ }
777
798
 
778
799
  /* ── device variant — 좌/우 2-column grid ─────────────────────────────── */
779
800
  .panel-row--device {
@@ -4,7 +4,7 @@ import './RingChart.css';
4
4
  import { useTranslation } from 'react-i18next';
5
5
  import Loader from './Loader';
6
6
  import Icon from './Icon';
7
- import ChartSection, { ChartTotal, ChartLegend } from './ChartSection';
7
+ import ChartSection, { ChartTotal, ChartLegend, chartTotalNumClass } from './ChartSection';
8
8
  import { withLegacy } from '../utils/legacyBlocks';
9
9
  const RING_SIZE_PRESET = {
10
10
  small: { diameter: 96, strokeWidth: 16 },
@@ -63,11 +63,15 @@ export default function RingChart({ titleKey, titleLevel, headRight, icon, showT
63
63
  const loaderSize = typeof ringProps.size === 'number' ? ringProps.size : RING_SIZE_PRESET[ringProps.size ?? 'medium'].diameter;
64
64
  // size='large' — 카드가 가로 폭을 거의 100% 차지(1열)
65
65
  const isLarge = ringProps.size === 'large';
66
- const sectionClassName = [className, isSmall ? 'chart-section--compact' : isLarge ? 'chart-section--full' : '']
67
- .filter(Boolean).join(' ') || undefined;
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 ? (
66
+ /* **급을 `ChartSection` 에 넘긴다**(2026-11-02) — 전에는 꼴 이름을 손으로 붙였다.
67
+ 이쪽 `size` 와 저쪽 급의 사다리가 한 칸씩 어긋난다: 이 카드의 `small` 은 260×208 짜리
68
+ 작은 카드라 저쪽의 **`medium`** 이고, `medium`(밑바탕)이 저쪽 `large`, `large` 가
69
+ 저쪽 `xLarge` 다. 이름을 맞추는 것은 이 컴포넌트의 공개 프롭을 바꾸는 일이라 따로 간다. */
70
+ const sectionSize = isSmall ? 'medium' : isLarge ? 'xLarge' : 'large';
71
+ const sectionClassName = className || undefined;
72
+ // 수 칸(ChartSection type="stat")과 같은 아이콘 규칙 — headRight 자리에 렌더(둘 중 하나만 사용)
73
+ const iconNode = icon && (_jsx("span", { className: withLegacy("chart-section__head-icon"), children: _jsx(Icon, { icon: icon, className: withLegacy("chart-section__head-icon-inner") }) }));
74
+ return (_jsx(ChartSection, { className: sectionClassName, size: sectionSize, inGrid: inGrid, onClick: onClick, ariaLabel: ariaLabel, tooltip: tooltip, title: t(titleKey), titleLevel: titleLevel, 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(chartTotalNumClass(isSmall)), children: pct }), _jsx("span", { className: withLegacy("chart-section__total__unit body-3"), children: "%" })] })) : _jsx("span", {}), legend && _jsx(ChartLegend, { items: legend })] }), children: loading ? (
71
75
  /* 링도 같은 병이 있었다 — 기다림 상자 186px, 그려진 링은 지름(medium 120px)이다.
72
76
  **그려질 링과 같은 자리·같은 지름**의 뼈대를 세우고 그 안에서 기다린다
73
77
  (BarChart 와 같은 결, 사용자 지시 2026-09-17 "뼈대 먼저, 그 안에서 로딩"). */
@@ -41,7 +41,12 @@
41
41
  셈수를 위 규칙들보다 한 겹 높여(.segmented-control.segmented-control) 크기별 기본을 덮는다. */
42
42
  .segmented-control.segmented-control--min .button { min-width: var(--segmented-min-button-w); }
43
43
  .segmented-control--24 .button { min-width: 48px; }
44
- .segmented-control--32 .button { min-width: 80px; } /* 64 는 갑갑했다 — 같은 화면의 기간 고르개(40)와 같은 눈금(2026-09-17 사용자 지시) */
44
+ /* **80 → 64**(사장님 지시 2026-11-02 — "이 세그먼트의 버튼 가로길이 좀 줄이고").
45
+ `주`·`월` 처럼 한 글자가 서는 자리라 80 은 넓었다. 2026-09-17 에 *"64 는 갑갑했다"* 며
46
+ 80 으로 올린 자리인데, 그때는 이 고르개가 **40** 이었고 같은 줄의 기간 고르개도 40 이라
47
+ 눈금을 맞춘 것이었다 — 2026-11-02 에 줄·머리가 **32** 로 내려오면서 그 짝이 바뀌었다.
48
+ 덤으로 차트 카드 머리가 한 줄로 돌아온다(조절칸 405 → 373, 속 폭 502 안에 든다). */
49
+ .segmented-control--32 .button { min-width: 64px; }
45
50
  .segmented-control--40 .button { min-width: 80px; }
46
51
  .segmented-control--48 .button { min-width: 96px; }
47
52
 
@@ -27,7 +27,11 @@ export interface SegmentedControlProps {
27
27
  *
28
28
  * 기본이 48 이던 것을 40 으로 내렸다(사용자 지시 2026-09-21). 코어가 제 안에서 세우는 고르개는 이미 **전부 40**
29
29
  * 이었고(`Toolbar`·`FilterPanel`·`BarChart`·`PanelRow`…), 옆에 서는 `Dropdown`·`TextField` 도 40 이다 —
30
- * 기본값만 혼자 48 이라 안 주고 쓴 자리가 한 급 크게 섰다. */
30
+ * 기본값만 혼자 48 이라 안 주고 쓴 자리가 한 급 크게 섰다.
31
+ *
32
+ * **이제 기본은 공용 수다**(`CONTROL_SIZE` — 2026-11-02 부터 32). 손으로 적은 수를 두면
33
+ * 공용 수가 움직일 때 **안 주고 부른 자리만 뒤에 남는다** — 2026-11-02 에 그 일이 났고
34
+ * `Dropdown`·`DatePicker` 둘만 32 가 깔렸다(말귀_3 청 (408)). */
31
35
  size?: 24 | 32 | 40 | 48;
32
36
  shape?: 'rounded' | 'pill';
33
37
  useBG?: boolean;
@@ -6,6 +6,7 @@ import { useEffect, useId, useRef } from 'react';
6
6
  import { useTranslation } from 'react-i18next';
7
7
  import Button from './Button';
8
8
  import { devWarnOnce, isDev } from '../utils/devWarn';
9
+ import { CONTROL_SIZE } from './controlSize';
9
10
  /**
10
11
  * **이름을 안 준 고르개들** — 개발 중에 서로 부딪히는지 세기 위한 자리다(운영에서는 비어 있다).
11
12
  *
@@ -24,7 +25,7 @@ export default function SegmentedControl(props) {
24
25
  const { t } = useTranslation();
25
26
  const { options = [],
26
27
  // 안 주면 **켜진** 첫 칸 — 꺼진 첫 칸이 골라져 있었다(Tabs 와 같게)
27
- value = options.find((o) => !o.disabled)?.key ?? options[0]?.key, onChange = (_v) => { }, className = '', size = 40, shape = 'pill', useBG = true, fullWidth = false, minButtonWidth, ariaLabel, } = props || {};
28
+ value = options.find((o) => !o.disabled)?.key ?? options[0]?.key, onChange = (_v) => { }, className = '', size = CONTROL_SIZE, shape = 'pill', useBG = true, fullWidth = false, minButtonWidth, ariaLabel, } = props || {};
28
29
  /* **라디오 무리는 Tab 자리 하나 + 화살표**가 ARIA 규칙이다.
29
30
  `role="radiogroup"`·`role="radio"` 만 붙여 놓고 키를 안 만들면 **안 붙인 것보다
30
31
  나쁘다** — 낭독기가 "라디오 그룹, 3 중 2" 라고 읽어 주니 사람은 화살표를 누르는데
@@ -26,7 +26,7 @@ function SideNavFooter(props) {
26
26
  // 하나도 없으면 바닥 자체를 비운다 — 빈 채로 두면 여백(margin-top + padding)만 남는다.
27
27
  if (!hasAny)
28
28
  return null;
29
- return (_jsxs("div", { className: "side-nav__footer", children: [onDebug && (_jsx(Button, { htmlType: "button", size: 48, showTooltipInfo: true, type: "dot", shape: "pill", variant: variant, icon: "terminal", ariaLabel: t('nav.debug', '디버그'), onClick: onDebug, selected: activeKey === 'debug' })), onNotification && (_jsxs("span", { className: "side-nav__notification-wrap", children: [_jsx(Button, { htmlType: "button", size: 48, showTooltipInfo: true, type: "dot", shape: "pill", variant: variant, icon: "bell", ariaLabel: nameWithCount(t, t('nav.notifications', '알림'), unreadCount), onClick: onNotification, selected: activeKey === 'notifications' }), !!unreadCount && unreadCount > 0 && (_jsx(CircleBadge, { number: Math.min(unreadCount, 99), size: 24, "aria-hidden": true }))] })), onSetting && (_jsx(Button, { htmlType: "button", size: 48, showTooltipInfo: true, type: "dot", shape: "pill", variant: variant, icon: "settings", ariaLabel: t('nav.settings', '설정'), onClick: onSetting, selected: activeKey === 'settings' })), onHelp && (_jsx(Button, { htmlType: "button", size: 48, showTooltipInfo: true, type: "dot", shape: "pill", variant: variant, icon: "message-circle-question-mark", ariaLabel: t('nav.help', '도움말'), onClick: onHelp, selected: activeKey === 'help' })), onFeedback && (_jsx(Button, { htmlType: "button", size: 48, showTooltipInfo: true, type: "dot", shape: "pill", variant: variant, icon: "bug", ariaLabel: t('nav.feedback', '버그신고'), onClick: onFeedback, selected: activeKey === 'feedback' })), onAccount && (_jsx(Button, { htmlType: "button", size: 48, showTooltipInfo: true, type: "dot", shape: "pill", variant: variant, icon: "user-round", ariaLabel: t('nav.account', '계정'), onClick: onAccount, selected: activeKey === 'account' }))] }));
29
+ return (_jsxs("div", { className: "side-nav__footer", children: [onDebug && (_jsx(Button, { htmlType: "button", size: 48, showTooltipInfo: true, type: "dot", shape: "pill", variant: variant, icon: "terminal", ariaLabel: t('nav.debug', '디버그'), onClick: onDebug, selected: activeKey === 'debug' })), onHelp && (_jsx(Button, { htmlType: "button", size: 48, showTooltipInfo: true, type: "dot", shape: "pill", variant: variant, icon: "message-circle-question-mark", ariaLabel: t('nav.help', '도움말'), onClick: onHelp, selected: activeKey === 'help' })), onNotification && (_jsxs("span", { className: "side-nav__notification-wrap", children: [_jsx(Button, { htmlType: "button", size: 48, showTooltipInfo: true, type: "dot", shape: "pill", variant: variant, icon: "bell", ariaLabel: nameWithCount(t, t('nav.notifications', '알림'), unreadCount), onClick: onNotification, selected: activeKey === 'notifications' }), !!unreadCount && unreadCount > 0 && (_jsx(CircleBadge, { number: Math.min(unreadCount, 99), size: 24, "aria-hidden": true }))] })), onSetting && (_jsx(Button, { htmlType: "button", size: 48, showTooltipInfo: true, type: "dot", shape: "pill", variant: variant, icon: "settings", ariaLabel: t('nav.settings', '설정'), onClick: onSetting, selected: activeKey === 'settings' })), onFeedback && (_jsx(Button, { htmlType: "button", size: 48, showTooltipInfo: true, type: "dot", shape: "pill", variant: variant, icon: "bug", ariaLabel: t('nav.feedback', '버그신고'), onClick: onFeedback, selected: activeKey === 'feedback' })), onAccount && (_jsx(Button, { htmlType: "button", size: 48, showTooltipInfo: true, type: "dot", shape: "pill", variant: variant, icon: "user-round", ariaLabel: t('nav.account', '계정'), onClick: onAccount, selected: activeKey === 'account' }))] }));
30
30
  }
31
31
  function SideNavButton(props) {
32
32
  const { t } = useTranslation();
@@ -1,7 +1,5 @@
1
- import './StatChart.css';
2
- import { type ReactNode } from 'react';
3
- /** @public */
4
- export type StatChartChangeType = 'up' | 'down' | 'neutral';
1
+ import { type ChartSectionProps, type StatChartSize, type StatChartChangeType, type StatChartBodyAlign } from './ChartSection';
2
+ export type { StatChartSize, StatChartChangeType, StatChartBodyAlign };
5
3
  /** @public */
6
4
  export interface StatChartProps {
7
5
  /** 카드 제목(좌상단) */
@@ -17,14 +15,27 @@ export interface StatChartProps {
17
15
  /** 호버 시 표시할 툴팁 텍스트 */
18
16
  tooltip?: string;
19
17
  onClick?: () => void;
20
- /** 값 **아래** 에 붙는 자리 — 목록 몇 줄, "외 n건" 단추처럼 값을 풀어 보이는 것.
21
- * 이 자리가 없어 소비자가 카드 마크업(`stat-chart__card__*` 여덟 이름)을 통째로 베끼고 있었다(말귀 매니저 '금일 방문 예정'). */
22
- children?: ReactNode;
18
+ /** 카드의 급 — `small`(기본) · `medium` · `large` · `xLarge`, 또는 키를 px 로 바로 */
19
+ size?: StatChartSize | number;
20
+ /** 값 아래 자리가 서는 곳 — `bottom`(기본, 카드 바닥) · `center`(값 아래 남는 자리의 한가운데) */
21
+ bodyAlign?: StatChartBodyAlign;
22
+ /** 값 **아래** 에 붙는 자리 — 목록 몇 줄, "외 n건" 단추처럼 값을 풀어 보이는 것 */
23
+ children?: ChartSectionProps['children'];
23
24
  }
24
25
  /**
25
- * 순수 카운트 스탯 카드 — 제목+아이콘, 큰 숫자, 증감(선택) 만 보여준다.
26
- * 도넛/리스트처럼 숫자 하나로 요약되지 않는 카드는 이 컴포넌트의 대상이 아니다
27
- * (도넛 breakdown은 RingChart segments 모드, 리스트는 페이지에서 직접 구성).
26
+ * 순수 카운트 스탯 카드.
27
+ *
28
+ * @deprecated **`<ChartSection type="stat">` 을 쓴다**(사장님 지시 2026-11-02 — "chartsection과
29
+ * statChart 하나로 합쳐, type 으로 전부 분기해"). 몸은 이미 그쪽 하나다 — 이것은 이름만
30
+ * 옮겨 주는 얇은 껍데기이고, 소비자가 다 옮기면 지운다.
31
+ *
32
+ * | 여기 | 저기 |
33
+ * |---|---|
34
+ * | `label` | `title` |
35
+ * | `value` | `totalNum` |
36
+ *
37
+ * 나머지(`change` · `changeType` · `icon` · `tooltip` · `onClick` · `size` · `bodyAlign` ·
38
+ * `children`)는 이름이 같다.
28
39
  * @public
29
40
  */
30
- export default function StatChart({ label, value, change, changeType, icon, tooltip, onClick, children }: StatChartProps): import("react").JSX.Element;
41
+ export default function StatChart({ label, value, change, changeType, icon, tooltip, onClick, size, bodyAlign, children }: StatChartProps): import("react").JSX.Element;
@@ -1,42 +1,22 @@
1
1
  'use client';
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import './StatChart.css';
4
- import { useRef, useCallback } from 'react';
5
- import { useHoverAnchor } from '../hooks/useHoverAnchor';
6
- import Icon from './Icon';
7
- import TooltipInfo from './Tooltip/InfoTooltip';
8
- import { withLegacy } from '../utils/legacyBlocks';
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import ChartSection from './ChartSection';
9
4
  /**
10
- * 순수 카운트 스탯 카드 — 제목+아이콘, 큰 숫자, 증감(선택) 만 보여준다.
11
- * 도넛/리스트처럼 숫자 하나로 요약되지 않는 카드는 이 컴포넌트의 대상이 아니다
12
- * (도넛 breakdown은 RingChart segments 모드, 리스트는 페이지에서 직접 구성).
5
+ * 순수 카운트 스탯 카드.
6
+ *
7
+ * @deprecated **`<ChartSection type="stat">` 을 쓴다**(사장님 지시 2026-11-02 — "chartsection과
8
+ * statChart 하나로 합쳐, type 으로 전부 분기해"). 몸은 이미 그쪽 하나다 — 이것은 이름만
9
+ * 옮겨 주는 얇은 껍데기이고, 소비자가 다 옮기면 지운다.
10
+ *
11
+ * | 여기 | 저기 |
12
+ * |---|---|
13
+ * | `label` | `title` |
14
+ * | `value` | `totalNum` |
15
+ *
16
+ * 나머지(`change` · `changeType` · `icon` · `tooltip` · `onClick` · `size` · `bodyAlign` ·
17
+ * `children`)는 이름이 같다.
13
18
  * @public
14
19
  */
15
- export default function StatChart({ label, value, change, changeType, icon, tooltip, onClick, children }) {
16
- const cardRef = useRef(null);
17
- /* 앵커 상태는 공용 훅이 갖는다 — ManagerPage 의 VisitListCard 가 같은 것을 손으로
18
- 한 벌 더 적고 있었다. 여는 조건(tooltip 이 있을 때만)만 여기 남긴다. */
19
- const { anchorRect, openAt, close: handleAnchorLeave } = useHoverAnchor();
20
- const handleAnchorEnter = useCallback(() => { if (tooltip && cardRef.current)
21
- openAt(cardRef.current); }, [tooltip, openAt]);
22
- const resolvedChangeType = changeType ?? (change === undefined ? undefined : change > 0 ? 'up' : change < 0 ? 'down' : 'neutral');
23
- const changeText = change === undefined ? undefined : change > 0 ? `+${change}` : `${change}`;
24
- const handleKeyDown = useCallback((e) => {
25
- if (!onClick)
26
- return;
27
- if (e.key === 'Enter' || e.key === ' ') {
28
- e.preventDefault();
29
- onClick();
30
- }
31
- }, [onClick]);
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,
33
- // hover 전용이면 키보드로는 툴팁 내용을 볼 수 없다(ManagerPage와 동일 처리)
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: {
35
- left: anchorRect.left,
36
- top: anchorRect.top + 21,
37
- right: anchorRect.right,
38
- bottom: anchorRect.bottom,
39
- width: anchorRect.width,
40
- height: anchorRect.height,
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 })] })] }));
20
+ export default function StatChart({ label, value, change, changeType, icon, tooltip, onClick, size = 'small', bodyAlign = 'bottom', children }) {
21
+ return (_jsx(ChartSection, { type: "stat", title: label, totalNum: value, change: change, changeType: changeType, icon: icon, tooltip: tooltip, onClick: onClick, size: size, bodyAlign: bodyAlign, children: children }));
42
22
  }
@@ -56,7 +56,7 @@ export interface SummaryStripProps {
56
56
  * { label: '생년월일', value: patient.birthDate },
57
57
  * { label: '환자번호', value: patient.chartNo ?? '-' },
58
58
  * ]}
59
- * actions={<Button size={40} type="dot" icon="pencil" ariaLabel="정보 수정" onClick={onEdit} />}
59
+ * actions={<Button size={32} type="dot" icon="pencil" ariaLabel="정보 수정" onClick={onEdit} />}
60
60
  * />
61
61
  * ```
62
62
  *
@@ -22,7 +22,7 @@ import './SummaryStrip.css';
22
22
  * { label: '생년월일', value: patient.birthDate },
23
23
  * { label: '환자번호', value: patient.chartNo ?? '-' },
24
24
  * ]}
25
- * actions={<Button size={40} type="dot" icon="pencil" ariaLabel="정보 수정" onClick={onEdit} />}
25
+ * actions={<Button size={32} type="dot" icon="pencil" ariaLabel="정보 수정" onClick={onEdit} />}
26
26
  * />
27
27
  * ```
28
28
  *
@@ -210,6 +210,22 @@ export type TableProps<T extends {
210
210
  *
211
211
  * **손으로 끌어 둔 표에는 안 듣는다**(`manual`) — 사람이 정한 폭을 쪽 넘김이 덮으면
212
212
  * 그것이야말로 뜻 모를 움직임이다. '칸 너비 초기화' 를 눌러 자동으로 돌아가면 다시 듣는다.
213
+ *
214
+ * ## 쪽 넘김 말고도 쓸 자리가 있다 — **칸 내용이 첫 잼보다 늦게 들어오는 표**
215
+ *
216
+ * 아래 `refitBasis` 걸쇠는 **한 번만 재게** 한다(줄 내용이 갈린 것으로는 다시 안 잰다 —
217
+ * 위 까닭). 그래서 **줄은 이미 들어왔는데 칸 글자가 아직 비어 있는 렌더가 한 번이라도
218
+ * 서면, 그 빈 폭이 걸쇠에 박혀 영영 안 풀린다.** `loading` 을 넘겨 막아 보려 해도 한
219
+ * 발일 뿐이다 — 한 렌더만 일찍 거짓이 되면 그 한 발이 빈 표에 박힌다.
220
+ *
221
+ * 말귀 '단어 관리' 가 그 자리를 밟았다(2026-10-31): 낱말은 바로 서는데 **뜻은 따로
222
+ * 받아** 늦게 채워져, 넷에 한 번 뜻 없는 폭(320px)이 굳었다. `loading` 문을 겹쳐도
223
+ * 3/4 였고, `refitOn={meanings.size > 0 ? 1 : 0}` 하나로 4/4 가 됐다.
224
+ *
225
+ * **걸쇠를 다시 여는 것은 이것뿐이다** — 나머지 계기는 초기화 단추(`refitNonce`)·통 폭
226
+ * (`boxWidth`)·칸 수(`fields.length`)가 각각 쥐고 있고, 칸 내용을 보는 것은 없다.
227
+ * 그러니 늦게 오는 값이 **더 붙을 수 있는** 표면 그 값의 *양*(`meanings.size`)을 주고,
228
+ * 한 번에 다 오면 *왔나 안 왔나*(`? 1 : 0`)로 족하다.
213
229
  */
214
230
  refitOn?: string | number;
215
231
  /** 높이 스케일 — Panel과 공유 (small 48 / medium 56 / large 64). header·row 모두 적용. 기본 small */
@@ -14,7 +14,8 @@ export interface TabsProps {
14
14
  /** 고른 탭의 key 로 불린다. **값이 바뀔 때만** — 지금 탭을 다시 누르거나 화살표가 지금 탭에 머물면 부르지 않는다. */
15
15
  onChange?: (key: string) => void;
16
16
  className?: string;
17
- /** 탭 버튼 높이 — SegmentedControl과 동일 체계 (32 / 40 / 48) */
17
+ /** 탭 버튼 높이 — SegmentedControl과 동일 체계 (32 / 40 / 48).
18
+ * 안 주면 공용 수다(`CONTROL_SIZE` — 2026-11-02 부터 32. 전에는 40 이 박혀 있었다). */
18
19
  size?: 32 | 40 | 48;
19
20
  }
20
21
  /**
@@ -3,6 +3,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { useId, useRef } from 'react';
4
4
  import { useTranslation } from 'react-i18next';
5
5
  import './Tabs.css';
6
+ import { CONTROL_SIZE } from './controlSize';
6
7
  /**
7
8
  * 탭 리스트 + 탭 패널 전환 컴포넌트. `role="tablist"/"tab"/"tabpanel"`,
8
9
  * `aria-selected`, 화살표 키 탐색 등 완전한 탭 ARIA 시맨틱을 갖춘다.
@@ -14,7 +15,7 @@ import './Tabs.css';
14
15
  *
15
16
  * @public
16
17
  */
17
- export default function Tabs({ items = [], value, onChange, className = '', size = 40 }) {
18
+ export default function Tabs({ items = [], value, onChange, className = '', size = CONTROL_SIZE }) {
18
19
  /* **판 이름표를 인스턴스마다 가른다.** 예전에는 `tabs__tab-${key}` 로 열쇠만 썼다.
19
20
  한 화면에 Tabs 가 둘 이상이고 열쇠가 겹치면(overview/usage 처럼 흔한 이름이다)
20
21
  **같은 id 가 여럿 생긴다.** 그러면 브라우저는 `aria-controls` 를 **첫 번째** 것으로
@@ -208,7 +208,26 @@
208
208
 
209
209
  /* s32는 박스가 작아 아이콘/글자를 한 단계 축소 (icon 20→16px, body-2 16px→body-3 14px) */
210
210
  .text-field--s32 .text-field__icon { width: 16px; height: 16px; }
211
- .text-field--s32 .text-field__input { font-size: 14px; line-height: 22px; }
211
+ /* **여러 줄 칸(`multiline`)은 글자를 안 줄인다.** 줄이는 까닭이 *박스가 작아서*인데
212
+ 여러 줄 칸의 박스는 작지 않다 — 키가 `size` 가 아니라 `rows` 에서 오고(위 키 규칙들이
213
+ `--textarea` 를 빼 두었다) `min-height: 80px` 이다. 그런데 **이 글자 규칙만 그 제외를
214
+ 안 하고 있었다.**
215
+
216
+ 그래서 (408) 로 기본값이 32 가 되자 설명·문의 같은 **읽고 쓰는 긴 글**이 14px 로
217
+ 내려앉았다 — 곁의 본문은 16px 인데 칸 안만 작아졌다. 실측(2026-11-02): 말귀_1 이
218
+ 회원앱 `HelpPage` 의 '문의 내용' 칸에서 14px / 곁 본문 16px(쪽 분포 16px 20자리 ·
219
+ 14px 17자리), 말귀_3 이 어드민 반려 사유 칸에서 `--s32` 14px/22 ↔ `--s40` 16px/26.
220
+
221
+ 처음에는 부르는 자리마다 `size={40}` 을 적어 막았는데(코어 둘), 그건 **부르는 사람이
222
+ 기억해야 하는 우회**다. 제외를 여기 한 줄에 두면 **안 주고 불러도 맞는다.**
223
+ 줄간은 `--textarea` 제 규칙(`line-height: 1.6`)이 받는다.
224
+
225
+ `--auto`(한 줄에서 시작해 늘어나는 꼴)는 **그대로 줄인다** — 그쪽 박스는 처음에
226
+ `size` 키(32 → 30px)를 받으므로 줄이는 까닭이 그대로 있다.
227
+
228
+ 아이콘(위 줄)은 안 건드렸다 — 여러 줄 칸에 아이콘을 주는 자리가 코어·앱 어디에도
229
+ **0** 이다(2026-11-02 실측). 생기면 그때 함께 본다. */
230
+ .text-field--s32 .text-field__input:not(.text-field__input--textarea) { font-size: 14px; line-height: 22px; }
212
231
 
213
232
  /* Clear 버튼 */
214
233
  /* 지우기(×) — 공용 Button(size 24 · dot)이 모양·상태를 담당하고, 여기선 배치만 잡는다 */
@@ -60,7 +60,13 @@ export interface TextFieldProps {
60
60
  helperText?: string;
61
61
  /** 최대 글자 수 — 설정 시 글자수 카운터 표시 */
62
62
  maxLength?: number;
63
- /** 필드 크기 (실제 높이 px). 박스 치수만 결정 — 텍스트 스타일은 variant가 담당 */
63
+ /** 필드 크기 (실제 높이 px). 박스 치수만 결정 — 텍스트 스타일은 variant가 담당.
64
+ *
65
+ * **안 주면 공용 수다**(`CONTROL_SIZE` — 2026-11-02 부터 32). 전에는 40 이 박혀 있어,
66
+ * 공용 수가 32 로 내려간 뒤에도 **`size` 를 안 주고 부른 자리만 40 으로 섰다**
67
+ * (말귀_3 청 (408) · 실측: 어드민 다섯 · 회원앱 셋 · 코어 셋. 업체 등록 창에서는
68
+ * 바로 아래 `Dropdown` 이 이미 32 라 한 창에 40 과 32 가 나란히 섰다).
69
+ * 48·64 가 맞는 자리는 그 자리에 적는다. */
64
70
  size?: 32 | 40 | 48 | 64;
65
71
  /**
66
72
  * 텍스트 스타일 변형 (size와 분리)
@@ -11,6 +11,7 @@ import Button from './Button';
11
11
  import { useComboboxSuggestions } from './useComboboxSuggestions';
12
12
  import { useIsoLayoutEffect } from '../hooks/useIsoLayoutEffect';
13
13
  import './TextField.css';
14
+ import { CONTROL_SIZE } from './controlSize';
14
15
  /** @public */
15
16
  export default function TextField(props) {
16
17
  const { value, defaultValue, name, inputRef, onChange, label, ariaLabel, ariaDescribedBy, required, placeholder, ghostText, ghostHint, type = 'text', disabled = false, readOnly = false, error, helperText, maxLength,
@@ -18,7 +19,7 @@ export default function TextField(props) {
18
19
  조작기가 40이다(세그먼트 단추·줄 옆 `Button`). 글자 칸만 48이라 수를 받는 줄이
19
20
  토글 줄보다 눈에 띄게 깊었다(실측: 그 줄 80px ↔ 토글 줄 56px → 72px 로 좁혀짐).
20
21
  48이 맞는 자리는 그 자리에 `size={48}` 을 적는다. */
21
- size = 40, variant = 'input', fullWidth = false, newline = false, multiline = false, rows = 3, leftIcon, rightIcon, clearable = false, list, showCount = true, className = '', onFocus, onBlur, onKeyDown, onEnter, inputMode, autoComplete, autoFocus, suggestions: suggestionsProp, filterSuggestions, onSelectSuggestion, autoActiveFirst, openOnFocus = false, } = props;
22
+ size = CONTROL_SIZE, variant = 'input', fullWidth = false, newline = false, multiline = false, rows = 3, leftIcon, rightIcon, clearable = false, list, showCount = true, className = '', onFocus, onBlur, onKeyDown, onEnter, inputMode, autoComplete, autoFocus, suggestions: suggestionsProp, filterSuggestions, onSelectSuggestion, autoActiveFirst, openOnFocus = false, } = props;
22
23
  // 읽기 전용·꺼진 칸은 후보로 값을 바꾸지 못한다 — 전에는 ↓·Enter·후보 누름으로 onChange 가 나갔다
23
24
  const suggestions = readOnly || disabled ? undefined : suggestionsProp;
24
25
  const { t } = useTranslation();
@@ -12,12 +12,24 @@
12
12
  box-shadow: 0 0 0 2px var(--color-main-a10);
13
13
  }
14
14
 
15
+ /* **단추가 많으면 머리가 한 줄 더 는다.** 전에는 `height: 60px` 고정 + 단추 줄이
16
+ `flex-shrink: 0` 이라, 들어갈 자리가 없으면 단추가 **그룹 밖으로 밀려나 잘렸다** —
17
+ `.training-card-group` 이 `overflow: hidden` 이라 밀어서 볼 수도 없었다.
18
+
19
+ 말귀_2 가 매니저 '나의 단어훈련' 에서 재어 올렸다(청 (364), 2026-11-02 · 폭 375):
20
+ 머리 333px 에 단추 줄 360px(`40·40·40·120·40·40` + 사이 `8×5`)이라 '그룹 삭제' 가 12px,
21
+ '이 그룹에 훈련 추가' 가 **60px — 통째로** 안 보였다.
22
+
23
+ **한 줄이 모자라면 아래로 내린다.** 자리가 넉넉하면 전과 같이 한 줄 60px 로 선다
24
+ (`min-height` + 위아래 여백 10px, 단추가 40px 이라 40+20 = 60). */
15
25
  .training-card-group__header {
16
26
  display: flex;
17
27
  align-items: center;
28
+ flex-wrap: wrap;
18
29
  gap: 8px;
19
- height: 60px;
20
- padding: 0 12px;
30
+ min-height: 60px;
31
+ padding: 10px 12px;
32
+ min-width: 0;
21
33
  }
22
34
 
23
35
  /* 손 모양은 **접을 수 있을 때만** 낸다. 예전에는 늘 `cursor: pointer` 였는데
@@ -41,12 +53,19 @@
41
53
  flex-shrink: 0;
42
54
  }
43
55
 
56
+ /* **`flex-shrink: 0` 이 진짜로 막던 것이다.** 말귀_2 가 레버 여덟을 꽂았다 뺐는데 하나도
57
+ 안 들었던 까닭이 이것이다 — `min-width: 0` 도 `flex-wrap` 도, 줄어드는 것 자체가 막혀
58
+ 있으면 아무 일을 못 한다. 풀고 나서야 나머지가 듣는다.
59
+
60
+ 그리고 **제 안에서도 줄을 바꾼다** — 단추들은 저마다 폭이 고정(40px·120px)이라 칸만
61
+ 줄여서는 속엣것이 그대로 넘친다. */
44
62
  .training-card-group__actions {
45
63
  display: flex;
46
64
  align-items: center;
65
+ flex-wrap: wrap;
47
66
  gap: 8px;
48
67
  margin-left: auto;
49
- flex-shrink: 0;
68
+ min-width: 0;
50
69
  }
51
70
 
52
71
  .training-card-group__empty {
@@ -11,6 +11,7 @@ import Section from '../Section';
11
11
  import Icon from '../Icon';
12
12
  import Dropdown from '../Dropdown';
13
13
  import Pagination from '../Pagination';
14
+ import { CONTROL_SIZE } from '../controlSize';
14
15
  import WordImageTooltip from '../Tooltip/WordImageTooltip';
15
16
  import { useHoverAnchor } from '../../hooks/useHoverAnchor';
16
17
  import { makeWordQueryMatcher } from '../../utils/koreanSyllable';
@@ -149,7 +150,7 @@ export default function WordSearchResultBlock({ titleIcon, resultCount, resultUn
149
150
  // 결과가 있으면(flat/그룹 모두) 툴바(정렬·페이지크기·페이지네이션) 노출.
150
151
  // (그룹 뷰도 flat과 동일하게 페이지네이션 — 카드 4 결정 1안. 그룹은 페이지 단위로 재그룹핑되어 표시.)
151
152
  const showToolbar = totalCount > 0;
152
- const toolbar = showToolbar ? (_jsxs("div", { className: "word-search-result-block__toolbar", children: [_jsx(Dropdown, { size: 40, options: sortOptions, value: effectiveSortKey, onChange: setSortKey, ariaLabel: t('wordSearch.sort.aria', { defaultValue: '정렬' }) }), _jsx(Dropdown, { size: 40, options: pageSizeOptions, value: pageSizeStr, onChange: setPageSizeStr, ariaLabel: t('wordSearch.pageSizeAria', { defaultValue: '페이지 크기' }) }), _jsx(Pagination, { page: pageClamped, totalPages: totalPages, onChange: setPage })] })) : undefined;
153
+ const toolbar = showToolbar ? (_jsxs("div", { className: "word-search-result-block__toolbar", children: [_jsx(Dropdown, { size: CONTROL_SIZE, options: sortOptions, value: effectiveSortKey, onChange: setSortKey, ariaLabel: t('wordSearch.sort.aria', { defaultValue: '정렬' }) }), _jsx(Dropdown, { size: CONTROL_SIZE, options: pageSizeOptions, value: pageSizeStr, onChange: setPageSizeStr, ariaLabel: t('wordSearch.pageSizeAria', { defaultValue: '페이지 크기' }) }), _jsx(Pagination, { page: pageClamped, totalPages: totalPages, onChange: setPage })] })) : undefined;
153
154
  const handleClick = (id) => {
154
155
  if (!onSelect)
155
156
  return;
@@ -59,6 +59,18 @@ export interface BarChartProps {
59
59
  * 굵기는 인라인이 아니라 그 변수로 박혀 있다.
60
60
  */
61
61
  barWidth?: number;
62
+ /**
63
+ * **캔버스 키(px)** — 안 주면 `size` 프리셋이 정한다(small 100 · medium 140 · large 180).
64
+ *
65
+ * 카드가 **정해진 상자에 들어가야 할 때** 쓴다. 말귀 대시보드의 `상세 현황` 차트가
66
+ * `ChartSection` 의 `large` 상자(540×260)에 서야 해서 열었다(사장님 지시 2026-11-02) —
67
+ * 260 에서 겉과 머리를 빼면 몸통에 132 가 남고 x축 라벨이 41 이라 캔버스는 90 이다.
68
+ *
69
+ * **프리셋을 바꾸는 대신 프롭을 연 까닭** — `medium` 을 140 → 90 으로 내려 봤더니
70
+ * 짝 시험 **열넷**이 빨개졌다(막대 자리를 140 으로 셈하는 자들이다). 한 화면 때문에
71
+ * 모든 차트의 막대 셈을 흔들 일이 아니다.
72
+ */
73
+ canvasHeight?: number;
62
74
  /** 섹션 제목 i18n 키 */
63
75
  titleKey: string;
64
76
  /** 제목을 머리글 몇 급으로 그릴지 — 그대로 `ChartSection` 에 넘긴다(말귀 요청 (60)③, 2026-10-02).