@ihabdevteam/core 0.400.0 → 0.402.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.
@@ -493,8 +493,14 @@ export declare interface BarChartProps {
493
493
  * (말귀 실측: 같은 자료가 dayMean 54% · weighted 80% = 229/286문항.)
494
494
  */
495
495
  rateAgg?: 'dayMean' | 'weighted';
496
- /** '상세보기' 단추 크기(기본 32). `headExtra` 에 SegmentedControl(size 32, 겉높이 40px)처럼 큰 것을 얹으면
497
- * 32 단추와 높이가 안 맞는다 — 그 카드만 40 을 준다. */
496
+ /**
497
+ * '상세보기' 단추 크기 — **기본 40**(사장님 지시 2026-10-29: *"header 에 있는 요소들도
498
+ * 동일하게"*).
499
+ *
500
+ * 전에는 기본이 32 였고, 머리 줄에 큰 것을 얹은 카드만 40 을 주라고 적어 두었다. 그
501
+ * *"그 카드만"* 이 이 프롭이 생긴 까닭인데, 머리에 선 것이 모두 40 이 되면서 맞출 것이
502
+ * 없어졌다. 일부러 작게 쓰려는 자리만 32 를 준다.
503
+ */
498
504
  detailSize?: 32 | 40;
499
505
  /** 머리 오른쪽 묶음에서 기간 컨트롤과 '상세보기' **사이** 에 놓을 것 — 앱이 카드 머리에 얹는 작은 조작(예: 시간/정답률 SegmentedControl size 32).
500
506
  * size='small' 에서도 이것만은 그린다(기간 컨트롤은 그대로 숨김). */
@@ -1916,7 +1922,7 @@ export declare function copyText(text: string): Promise<boolean>;
1916
1922
  *
1917
1923
  * 값은 손으로 적고 `test/coreVersion.test.ts` 가 package.json 과 어긋나면 운다.
1918
1924
  */
1919
- export declare const CORE_VERSION = "0.400.0";
1925
+ export declare const CORE_VERSION = "0.402.0";
1920
1926
 
1921
1927
  /** @public */
1922
1928
  declare const coreDefault: Record<string, unknown>;
@@ -7842,7 +7848,7 @@ export declare function summarizeMisses(records: readonly TrainingResultRecord[]
7842
7848
  * { label: '생년월일', value: patient.birthDate },
7843
7849
  * { label: '환자번호', value: patient.chartNo ?? '-' },
7844
7850
  * ]}
7845
- * actions={<Button size={32} type="dot" icon="pencil" ariaLabel="정보 수정" onClick={onEdit} />}
7851
+ * actions={<Button size={40} type="dot" icon="pencil" ariaLabel="정보 수정" onClick={onEdit} />}
7846
7852
  * />
7847
7853
  * ```
7848
7854
  *
@@ -11679,6 +11685,22 @@ export declare interface WordSearchResultWord {
11679
11685
  * 배지만 주거나 이름표만 줘도 된다. 둘 다 없으면 아무것도 안 선다.
11680
11686
  */
11681
11687
  captionBadge?: string;
11688
+ /**
11689
+ * **그림을 찾을 때 쓸 낱말** — 안 주면 `label` 로 찾는다(말귀 청 (355), 2026-10-29).
11690
+ *
11691
+ * 칸의 글자와 그림이 **갈라져야 하는 표**를 위해 둔다. 사장님이 꼴 고르기를 이르시며
11692
+ * 함께 정하신 것이다(2026-10-29) — **그림은 기본형**, **표준발음·소리는 칸에 적힌 낱말**.
11693
+ * 칸이 `고프면` 으로 서면 그 글자로는 그림이 없어 **그림이 사라지는데**, 단어표는 그림으로
11694
+ * 알아보는 표라 그러면 쓸 수 없다. `imageLabel: '고프다'` 를 함께 주면 글자는 그 꼴대로
11695
+ * 서고 그림만 기본형 것을 쓴다.
11696
+ *
11697
+ * **소리 쪽은 이 값을 안 본다** — 재생은 그대로 `subLabel || label` 이다. 꼴을 바꾼 칸은
11698
+ * 그 꼴의 소리가 나야 한다(틀린 자극을 주지 않는다).
11699
+ *
11700
+ * 동음이의 번호(`homonum`)는 그림을 찾을 때 **그대로 함께 간다** — 기본형이 둘 이상이면
11701
+ * 그 번호가 가린다.
11702
+ */
11703
+ imageLabel?: string;
11682
11704
  homonum?: number;
11683
11705
  grade?: string;
11684
11706
  syllables?: number;
@@ -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: 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 })] }));
214
+ return (_jsxs("div", { className: withLegacy("chart-section__controls"), children: [_jsx(Button, { htmlType: "button", size: CONTROL_SIZE, 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: CONTROL_SIZE, className: "month-dropdown", ariaLabel: t('calendar.rangeSelect', '기간 선택') }), _jsx(Button, { htmlType: "button", size: CONTROL_SIZE, 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: CONTROL_SIZE })] }));
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 { CONTROL_SIZE } from './controlSize';
287
288
  import { withLegacy } from '../utils/legacyBlocks';
288
289
  /** 시맨틱 사이즈 → 캔버스 높이·막대 너비 프리셋 */
289
290
  const BAR_SIZE_PRESET = {
@@ -297,7 +298,7 @@ const BAR_SIZE_PRESET = {
297
298
  * - 주(week): 'YYYY년 M월 N째주' 드롭다운 + 그 주의 요일(월~일) 막대
298
299
  * 원시 렌더링은 내부 BarChartCanvas가 담당한다.
299
300
  */
300
- export default function BarChart({ focusableBars, size = 'medium', barWidth, titleKey, titleLevel, data, colorA, colorB, labelAKey, labelBKey, showTotal = false, totalUnitKey, totalLabelKey, control: controlProp, hideControls = false, rate = false, rateAgg = 'dayMean', tightMax = false, avgMode = false, totalFormat, series, seriesMode = 'stack', loading = false, onDetail, headExtra, headSegment, icon, disc, onClick, cardAriaLabel, cardTooltip, detailSize = 32, barGap, baseline, className, inGrid = false, }) {
301
+ export default function BarChart({ focusableBars, size = 'medium', barWidth, titleKey, titleLevel, data, colorA, colorB, labelAKey, labelBKey, showTotal = false, totalUnitKey, totalLabelKey, control: controlProp, hideControls = false, rate = false, rateAgg = 'dayMean', tightMax = false, avgMode = false, totalFormat, series, seriesMode = 'stack', loading = false, onDetail, headExtra, headSegment, icon, disc, onClick, cardAriaLabel, cardTooltip, detailSize = CONTROL_SIZE, barGap, baseline, className, inGrid = false, }) {
301
302
  const { t } = useTranslation();
302
303
  const sizePreset = BAR_SIZE_PRESET[size];
303
304
  // 외부 control 미지정 시 내부 컨트롤 사용 (단독 차트 하위 호환)
@@ -12,6 +12,7 @@ import TooltipInfo from './Tooltip/InfoTooltip';
12
12
  import { useHoverAnchor } from '../hooks/useHoverAnchor';
13
13
  import { useIsoLayoutEffect } from '../hooks/useIsoLayoutEffect';
14
14
  import MenuTooltip from './Tooltip/MenuTooltip';
15
+ import { CONTROL_SIZE } from './controlSize';
15
16
  import { withLegacy } from '../utils/legacyBlocks';
16
17
  /** 차트 범례 — 색상 점 + 라벨 목록. BarChart/RingChart 섹션이 공유. @public */
17
18
  export function ChartLegend({ items, className }) {
@@ -107,7 +108,7 @@ export default function ChartSection({ title, titleClassName = 'h3', titleLevel
107
108
  0.176.0 까지는 머리 오른쪽에 한 줄로 섰다 — 사용자가 차트 카드의 그 꼴로 정했다(2026-09-17). */
108
109
  const totalRow = (totalNum != null || totalLabel) ? (_jsxs(ChartTotal, { label: totalLabel, children: [totalNum != null && _jsx("span", { className: withLegacy("chart-section__total__num h0"), children: totalNum }), totalUnit && _jsx("span", { className: withLegacy("chart-section__total__unit h5"), children: totalUnit })] })) : null;
109
110
  /* 머리 오른쪽에는 **고르개와 `headRight` 만** 남는다 — 고르개가 먼저, 상세보기 단추가 오른쪽 끝(사용자 지시 2026-09-17) */
110
- const headRightNode = (rightNode || headSegment) ? (_jsxs("div", { className: withLegacy("chart-section__head-right"), children: [headSegment && (collapsed ? (_jsx(Button, { htmlType: "button", size: 32, type: "dot", icon: "ellipsis", ariaLabel: headSegment.ariaLabel ?? t('common.more', '더보기'), showTooltipInfo: headSegment.ariaLabel ?? t('common.more', '더보기'), "aria-haspopup": "menu", "aria-expanded": !!menuRect, onClick: openMenu })) : (_jsx(SegmentedControl, { size: 32, ariaLabel: headSegment.ariaLabel, options: headSegment.options.map(o => ({ key: o.key, label: o.label, disabled: o.disabled })), value: headSegment.value, onChange: headSegment.onChange }))), rightNode] })) : null;
111
+ const headRightNode = (rightNode || headSegment) ? (_jsxs("div", { className: withLegacy("chart-section__head-right"), children: [headSegment && (collapsed ? (_jsx(Button, { htmlType: "button", size: CONTROL_SIZE, type: "dot", icon: "ellipsis", ariaLabel: headSegment.ariaLabel ?? t('common.more', '더보기'), showTooltipInfo: headSegment.ariaLabel ?? t('common.more', '더보기'), "aria-haspopup": "menu", "aria-expanded": !!menuRect, onClick: openMenu })) : (_jsx(SegmentedControl, { size: CONTROL_SIZE, ariaLabel: headSegment.ariaLabel, options: headSegment.options.map(o => ({ key: o.key, label: o.label, disabled: o.disabled })), value: headSegment.value, onChange: headSegment.onChange }))), rightNode] })) : null;
111
112
  const titleId = useId();
112
113
  const TitleTag = titleLevel ? `h${titleLevel}` : 'div';
113
114
  return (_jsxs("section", { ref: secRef, className: withLegacy(['chart-section', inGrid && 'chart-section--grid', onClick && 'chart-section--clickable', className].filter(Boolean).join(' ')), onClick: onClick ? onCardClick : undefined, onKeyDown: onClick ? onCardKeyDown : undefined, onPointerEnter: tooltip ? showTip : undefined, onPointerLeave: tooltip ? closeTip : undefined, onFocus: tooltip ? showTip : undefined, onBlur: tooltip ? closeTip : undefined, role: onClick ? 'button' : undefined, tabIndex: onClick ? 0 : undefined, "aria-label": onClick ? (ariaLabel ?? (typeof title === 'string' ? title : undefined)) : undefined, "aria-labelledby": !onClick && title != null ? titleId : undefined, children: [tooltip && tipRect && (_jsx(TooltipInfo, { anchorRect: {
@@ -12,6 +12,7 @@ import { deviceKindVariant, deviceKindLabel } from '../utils/deviceKind';
12
12
  import { formatWornDate } from '../utils/wornDate';
13
13
  import TextField from './TextField';
14
14
  import Loader from './Loader';
15
+ import { CONTROL_SIZE } from './controlSize';
15
16
  import './Panel.css';
16
17
  const noop = () => { };
17
18
  export function PanelRow(props) {
@@ -77,27 +78,27 @@ export function PanelRow(props) {
77
78
  const p = props;
78
79
  // dropdown 행과 동일하게, PanelRow 왼쪽 라벨은 <label htmlFor>가 아닌 일반 div라서
79
80
  // SegmentedControl에 ariaLabel로 넘겨야 스크린리더가 이름 없는 라디오그룹으로 안내하지 않는다.
80
- right = _jsx(SegmentedControl, { options: p.options, value: p.value, onChange: p.onChange, size: p.size ?? 40, ariaLabel: label });
81
+ right = _jsx(SegmentedControl, { options: p.options, value: p.value, onChange: p.onChange, size: p.size ?? CONTROL_SIZE, ariaLabel: label });
81
82
  }
82
83
  else if (variant === 'dropdown') {
83
84
  const p = props;
84
- const dropdowns = p.dropdowns?.length ? (_jsx("div", { className: `panel-row__dropdown-group${useFullWidth ? ' panel-row__dropdown-group--full' : ''}`, children: p.dropdowns.map((d, i) => (_jsx("div", { className: useFullWidth ? 'panel-row__dropdown-item--full' : undefined, children: _jsx(Dropdown, { options: d.options, value: d.value, onChange: d.onChange, placeholder: d.placeholder, block: useFullWidth, error: !!error, ariaDescribedBy: errorId,
85
+ const dropdowns = p.dropdowns?.length ? (_jsx("div", { className: `panel-row__dropdown-group${useFullWidth ? ' panel-row__dropdown-group--full' : ''}`, children: p.dropdowns.map((d, i) => (_jsx("div", { className: useFullWidth ? 'panel-row__dropdown-item--full' : undefined, children: _jsx(Dropdown, { options: d.options, value: d.value, onChange: d.onChange, size: CONTROL_SIZE, placeholder: d.placeholder, block: useFullWidth, error: !!error, ariaDescribedBy: errorId,
85
86
  // 한 행에 여러 개가 놓이므로 행 라벨만 넘기면 셋 다 "생년월일" 이라는 같은 이름이 된다.
86
87
  // aria-label 이 있으면 스크린리더는 트리거의 화면 텍스트(년/월/일)를 읽지 않으므로
87
88
  // 사용자는 어느 것이 무엇인지 구별할 수 없다 — placeholder 를 붙여 구별되게 한다.
88
89
  ariaLabel: d.ariaLabel ?? ([label, d.placeholder].filter(Boolean).join(' ') || undefined) }) }, i))) })) : (
89
90
  // PanelRow 왼쪽 라벨(panel-row__label)은 <label htmlFor>가 아니라 그냥 div라서 트리거 버튼과
90
91
  // 프로그래밍적으로 연결되지 않는다 — ariaLabel로 직접 이름을 넘긴다 (TextField의 ariaLabel과 동일 패턴)
91
- _jsx(Dropdown, { options: p.options ?? [], value: p.value ?? '', onChange: p.onChange ?? noop, block: useFullWidth, error: !!error, ariaLabel: label, ariaDescribedBy: errorId }));
92
+ _jsx(Dropdown, { options: p.options ?? [], value: p.value ?? '', onChange: p.onChange ?? noop, size: CONTROL_SIZE, block: useFullWidth, error: !!error, ariaLabel: label, ariaDescribedBy: errorId }));
92
93
  right = error ? (_jsxs("div", { className: `panel-row__dropdown-error-wrap${useFullWidth ? ' panel-row__dropdown-error-wrap--full' : ''}`, children: [dropdowns, _jsx("span", { id: errorId, className: "caption-1 panel-row__error", role: "alert", children: error })] })) : dropdowns;
93
94
  }
94
95
  else if (variant === 'button') {
95
96
  const p = props;
96
97
  if (p.buttons?.length) {
97
- right = (_jsx("div", { className: "panel-row__button-group", children: p.buttons.map((btn, i) => (_jsx(Button, { htmlType: "button", size: btn.btnSize ?? 40, variant: btn.btnVariant ?? 'default', disabled: btn.disabled, onClick: btn.onClick, children: btn.label }, i))) }));
98
+ right = (_jsx("div", { className: "panel-row__button-group", children: p.buttons.map((btn, i) => (_jsx(Button, { htmlType: "button", size: btn.btnSize ?? CONTROL_SIZE, variant: btn.btnVariant ?? 'default', disabled: btn.disabled, onClick: btn.onClick, children: btn.label }, i))) }));
98
99
  }
99
100
  else {
100
- right = (_jsx(Button, { htmlType: "button", size: p.btnSize ?? 40, variant: p.btnVariant ?? 'default', disabled: p.disabled, onClick: p.onClick, children: p.buttonLabel }));
101
+ right = (_jsx(Button, { htmlType: "button", size: p.btnSize ?? CONTROL_SIZE, variant: p.btnVariant ?? 'default', disabled: p.disabled, onClick: p.onClick, children: p.buttonLabel }));
101
102
  }
102
103
  }
103
104
  else if (variant === 'text') {
@@ -106,7 +107,7 @@ export function PanelRow(props) {
106
107
  }
107
108
  else if (variant === 'input') {
108
109
  const p = props;
109
- right = (_jsxs("div", { className: `panel-row__input-wrap${useFullWidth ? ' panel-row__input-wrap--full' : ''}`, children: [_jsx(TextField, { value: p.value, onChange: p.onChange ?? noop, onKeyDown: p.onKeyDown, onEnter: p.onEnter, placeholder: p.placeholder, ghostText: p.ghostText, inputMode: p.inputMode, readOnly: p.readOnly, disabled: p.disabled, type: p.type, autoComplete: p.autoComplete, maxLength: p.maxLength, showCount: p.showCount, multiline: p.multiline, rows: p.rows, fullWidth: useFullWidth, error: error, ariaLabel: label, required: required, ariaDescribedBy: p.helperText ? helperId : undefined }), p.helperText && _jsx("div", { id: helperId, className: "panel-row__helper caption-1", children: p.helperText })] }));
110
+ right = (_jsxs("div", { className: `panel-row__input-wrap${useFullWidth ? ' panel-row__input-wrap--full' : ''}`, children: [_jsx(TextField, { size: CONTROL_SIZE, value: p.value, onChange: p.onChange ?? noop, onKeyDown: p.onKeyDown, onEnter: p.onEnter, placeholder: p.placeholder, ghostText: p.ghostText, inputMode: p.inputMode, readOnly: p.readOnly, disabled: p.disabled, type: p.type, autoComplete: p.autoComplete, maxLength: p.maxLength, showCount: p.showCount, multiline: p.multiline, rows: p.rows, fullWidth: useFullWidth, error: error, ariaLabel: label, required: required, ariaDescribedBy: p.helperText ? helperId : undefined }), p.helperText && _jsx("div", { id: helperId, className: "panel-row__helper caption-1", children: p.helperText })] }));
110
111
  }
111
112
  else if (variant === 'custom') {
112
113
  const p = props;
@@ -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={32} type="dot" icon="pencil" ariaLabel="정보 수정" onClick={onEdit} />}
59
+ * actions={<Button size={40} 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={32} type="dot" icon="pencil" ariaLabel="정보 수정" onClick={onEdit} />}
25
+ * actions={<Button size={40} type="dot" icon="pencil" ariaLabel="정보 수정" onClick={onEdit} />}
26
26
  * />
27
27
  * ```
28
28
  *
@@ -21,6 +21,7 @@ import ChevronDown from 'lucide-react/dist/esm/icons/chevron-down.mjs';
21
21
  import Button from './Button';
22
22
  import Icon from './Icon';
23
23
  import Loader from './Loader';
24
+ import { CONTROL_SIZE } from './controlSize';
24
25
  import useMediaQuery from '../hooks/useMediaQuery';
25
26
  /* 칸 하나 — `role="cell"` 이라야 낭독기가 **낱낱으로** 읽는다(말귀 요청 (56), 2026-10-02).
26
27
  역할이 없던 때는 줄 전체가 한 덩어리 글로 읽혀 `홍길동 010-1234-5678 2026-09-30 활성`
@@ -912,7 +913,7 @@ export default function Table({ fields: rawFields = [], sort: sortBinding, sorta
912
913
  * 손으로 붙이던 `onKeyDown` 은 **지웠다** — 진짜 단추라 Enter·Space 는 브라우저가
913
914
  * 처리하고, "머리 안 단추에서 누른 키는 그 단추 몫" 이라는 가드도 저절로 선다.
914
915
  */
915
- role: "caption", children: [onToggleCollapse && (_jsx(Button, { htmlType: "button", size: 40, type: "dot", variant: "transparent-gray", useBorder: false, icon: collapsed ? 'chevron-right' : 'chevron-down', ariaLabel: collapsed ? t('common.expand', '펼치기') : t('common.collapse', '접기'),
916
+ role: "caption", children: [onToggleCollapse && (_jsx(Button, { htmlType: "button", size: CONTROL_SIZE, type: "dot", variant: "transparent-gray", useBorder: false, icon: collapsed ? 'chevron-right' : 'chevron-down', ariaLabel: collapsed ? t('common.expand', '펼치기') : t('common.collapse', '접기'),
916
917
  /* 여닫힘은 **여는 것**이 말한다 — 전에는 겉의 `div` 에 달려 있었다(위 머리글) */
917
918
  ariaExpanded: !collapsed, className: "table-header__chevron" })), icon && (_jsx(Icon, { icon: icon, label: typeof title === 'string' ? title : undefined, className: "table-header__icon" })), _jsx("span", { id: titleId, className: "table-header__title h5b", children: title }), count !== undefined && _jsx("span", { className: "table-header__count body-3b", children: count }), headerActions && (_jsx("span", { className: "table-header__actions", onClick: e => e.stopPropagation(), children: headerActions }))] })), !collapsed && (_jsxs(_Fragment, { children: [headerGroups && headerGroups.length > 0 && (_jsx("div", { role: "row", className: "table-fields table-fields--groups", children: headerGroups.map((g, i) => (_jsx("div", { role: "columnheader", "aria-colspan": g.span, className: cx('table-field body-3', g.className), style: { gridColumn: `span ${g.span}` }, children: g.label }, i))) })), _jsxs("div", { role: "presentation", className: cx('table-fields-strip', canResize && 'table-fields-strip--resizable'), children: [_jsx("div", { role: "row", className: "table-fields", ref: fieldsRef, children: fields.map((f, i) => (_jsx(TableField, { onClick: f.onClick, className: cx(f.className, alignClass(f.align)), sortDir: f.sortDir, ariaSort: ariaSortOf(i),
918
919
  /* fit 모드는 오른쪽 이웃에서 폭을 덜어 오므로, 덜어 올 컬럼이 없는 자리에는
@@ -931,7 +932,7 @@ export default function Table({ fields: rawFields = [], sort: sortBinding, sorta
931
932
  그래서 자리를 안 차지하는 `sticky` 받침에 담는다. 넘치지 않을 때는 띠 끝의
932
933
  빈자리(`--table-reset-gutter`)에 그대로 서고, 넘칠 때는 보이는 오른쪽 끝에
933
934
  붙어 선다. 받침이 폭 0 이라 열 셈에는 아무것도 더하지 않는다. */
934
- _jsx("div", { className: "table-fields__reset-dock", children: _jsx(Button, { htmlType: "button", size: 40, type: "dot", variant: "transparent-gray", useBorder: false, icon: "chevrons-left-right-ellipsis", ariaLabel: t('table.resetColumns', '칸 너비 초기화'), showTooltipInfo: t('table.resetColumns', '칸 너비 초기화'), className: "table-fields__reset", onClick: resetColumns }) }))] }), _jsx("div", { role: "rowgroup", className: "table-body", children: loading ? (_jsx(TableRow, { variant: "loading", colSpan: fields.length || undefined })) : items.length === 0 && empty ? (_jsx(TableRow, { variant: "empty", colSpan: fields.length || undefined, children: empty })) : items.map((item, idx) => {
935
+ _jsx("div", { className: "table-fields__reset-dock", children: _jsx(Button, { htmlType: "button", size: CONTROL_SIZE, type: "dot", variant: "transparent-gray", useBorder: false, icon: "chevrons-left-right-ellipsis", ariaLabel: t('table.resetColumns', '칸 너비 초기화'), showTooltipInfo: t('table.resetColumns', '칸 너비 초기화'), className: "table-fields__reset", onClick: resetColumns }) }))] }), _jsx("div", { role: "rowgroup", className: "table-body", children: loading ? (_jsx(TableRow, { variant: "loading", colSpan: fields.length || undefined })) : items.length === 0 && empty ? (_jsx(TableRow, { variant: "empty", colSpan: fields.length || undefined, children: empty })) : items.map((item, idx) => {
935
936
  const isDragging = draggingId != null && item.id === draggingId;
936
937
  const clickable = !!onRowClick && (isRowClickable ? isRowClickable(item) : true);
937
938
  /* 글자로 견준다 — URL·폼에서 온 '5' 와 자료의 5 가 같은 줄인데 `===` 로는 안 펴졌다 */
@@ -6,6 +6,7 @@ import TextField from './TextField';
6
6
  import Dropdown from './Dropdown';
7
7
  import Pagination from './Pagination';
8
8
  import SegmentedControl from './SegmentedControl';
9
+ import { CONTROL_SIZE } from './controlSize';
9
10
  import './Toolbar.css';
10
11
  export default function Toolbar({ count, search, segment, filters, pageSize, pagination, actions, className, }) {
11
12
  const { t } = useTranslation();
@@ -14,9 +15,9 @@ export default function Toolbar({ count, search, segment, filters, pageSize, pag
14
15
  _jsxs("p", { className: "toolbar__count body-1", role: "status", "aria-atomic": "true", children: [count.prefix ?? t('common.totalPrefix', '총 '), _jsx("span", { className: "toolbar__count-highlight", children: count.value }), count.unit, count.suffix] }));
15
16
  // 좌측 그룹: count → segment. 우측 그룹: search → filters(정렬 등) → pageSize → pagination → actions
16
17
  const hasRight = !!(search || filters?.length || pageSize || pagination || actions);
17
- return (_jsxs("div", { className: cx('toolbar', className), children: [_jsxs("div", { className: "toolbar__row", children: [countNode, segment && (Array.isArray(segment) ? segment : [segment]).map((seg, i) => (_jsx(SegmentedControl, { size: 40, ...seg }, seg.ariaLabel ?? i)))] }), hasRight && (_jsx("div", { className: "toolbar__row", children: _jsxs("div", { className: "toolbar__row-end", children: [search && (_jsx(TextField, { className: "toolbar__search", size: 40, value: search.value, onChange: search.onChange, placeholder: search.placeholder ?? t('common.search', '검색'),
18
+ return (_jsxs("div", { className: cx('toolbar', className), children: [_jsxs("div", { className: "toolbar__row", children: [countNode, segment && (Array.isArray(segment) ? segment : [segment]).map((seg, i) => (_jsx(SegmentedControl, { size: CONTROL_SIZE, ...seg }, seg.ariaLabel ?? i)))] }), hasRight && (_jsx("div", { className: "toolbar__row", children: _jsxs("div", { className: "toolbar__row-end", children: [search && (_jsx(TextField, { className: "toolbar__search", size: CONTROL_SIZE, value: search.value, onChange: search.onChange, placeholder: search.placeholder ?? t('common.search', '검색'),
18
19
  /* placeholder는 접근 가능한 이름이 아니다 — 입력이 시작되면 사라지고
19
20
  화면낭독기 지원도 제각각이라, 같은 문구를 aria-label로도 준다.
20
21
  (툴바 검색은 시각적 라벨이 따로 없는 자리라 이게 유일한 이름이 된다.) */
21
- ariaLabel: search.placeholder ?? t('common.search', '검색'), autoFocus: search.autoFocus, clearable: true })), filters?.map((f, i) => (_jsx(Dropdown, { size: 40, options: f.options, value: f.value, onChange: f.onChange, ariaLabel: f.ariaLabel }, i))), (pageSize || pagination) && (_jsxs("div", { className: "toolbar__pager", children: [pageSize && _jsx(Dropdown, { size: 40, options: pageSize.options, value: pageSize.value, onChange: pageSize.onChange, ariaLabel: pageSize.ariaLabel ?? t('common.pageSizeSelect', '페이지당 표시 개수') }), pagination && (_jsx(Pagination, { page: pagination.page, totalPages: pagination.total, onChange: pagination.onChange, prevLabel: pagination.prevLabel, nextLabel: pagination.nextLabel }))] })), actions] }) }))] }));
22
+ ariaLabel: search.placeholder ?? t('common.search', '검색'), autoFocus: search.autoFocus, clearable: true })), filters?.map((f, i) => (_jsx(Dropdown, { size: CONTROL_SIZE, options: f.options, value: f.value, onChange: f.onChange, ariaLabel: f.ariaLabel }, i))), (pageSize || pagination) && (_jsxs("div", { className: "toolbar__pager", children: [pageSize && _jsx(Dropdown, { size: CONTROL_SIZE, options: pageSize.options, value: pageSize.value, onChange: pageSize.onChange, ariaLabel: pageSize.ariaLabel ?? t('common.pageSizeSelect', '페이지당 표시 개수') }), pagination && (_jsx(Pagination, { page: pagination.page, totalPages: pagination.total, onChange: pagination.onChange, prevLabel: pagination.prevLabel, nextLabel: pagination.nextLabel }))] })), actions] }) }))] }));
22
23
  }
@@ -64,6 +64,13 @@
64
64
  글자는 낱말 칸과 같은 꼴로 두되 흐리게 — 낱말이 아니라 세는 수라 읽는 차례가 뒤다. */
65
65
  .word-table-thumb__cell--more {
66
66
  justify-content: center;
67
+ /* **얹으면 가려진 낱말이 뜬다**(청 (354)) — 누르는 자리가 아니라 초점만 받으므로
68
+ 손 모양을 띄우지 않는다. 풍선은 `document.body` 로 날아가 앉으니(포털) 여기에
69
+ `position` 을 줄 까닭이 없다. */
70
+ outline-offset: -2px;
71
+ }
72
+ .word-table-thumb__cell--more:focus-visible {
73
+ outline: 2px solid var(--color-main);
67
74
  }
68
75
  .word-table-thumb__more {
69
76
  color: var(--color-gray);
@@ -1,8 +1,10 @@
1
1
  'use client';
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { cx } from '../../utils/cx';
4
- import { Fragment } from 'react';
4
+ import { Fragment, useCallback, useRef, useState } from 'react';
5
5
  import { useTranslation } from 'react-i18next';
6
+ import DescriptionTooltip from '../Tooltip/DescriptionTooltip';
7
+ import { isTouchPointer, recentlyTouched, useTouchToggle } from '../../hooks/touchToggle';
6
8
  import './WordTableThumbnail.css';
7
9
  /**
8
10
  * **썸네일이 그리는 칸은 여덟까지다.**
@@ -40,6 +42,16 @@ const MAX_THUMB_CELLS = 8;
40
42
  /** @public 단어표 내용 미니 미리보기(그리드 썸네일). */
41
43
  export default function WordTableThumbnail({ items, className }) {
42
44
  const { t } = useTranslation();
45
+ const moreRef = useRef(null);
46
+ const [moreAnchor, setMoreAnchor] = useState(null);
47
+ const openMore = useCallback(() => setMoreAnchor(moreRef.current?.getBoundingClientRect() ?? null), []);
48
+ const closeMore = useCallback(() => setMoreAnchor(null), []);
49
+ /* 톡 — 손가락에는 얹기가 없다. 톡으로 열고 닫는다(마우스·키보드는 그대로).
50
+ 칸의 `ⓘ` 가 쓰는 것과 같은 자다. */
51
+ const moreToggle = useTouchToggle(!!moreAnchor, (next) => { if (next)
52
+ openMore();
53
+ else
54
+ closeMore(); }, moreRef);
43
55
  const n = items.length;
44
56
  // 3개 이하는 세로 1열(빈칸 없이 3개가 세로로), 4개 이상은 2열
45
57
  const cols = n <= 3 ? 1 : 2;
@@ -48,11 +60,29 @@ export default function WordTableThumbnail({ items, className }) {
48
60
  const over = n > cap;
49
61
  const shown = items.slice(0, over ? cap - 1 : cap);
50
62
  const hiddenCount = n - shown.length;
63
+ /* 가려진 칸의 낱말 — 한 칸에 둘이면(대립쌍) 빗금으로 잇는다(표의 다른 자리와 같은 꼴).
64
+ `words` 가 빠진 항목은 아래 칸 그리기와 같은 방어로 `id` 를 쓴다. */
65
+ const hiddenLabels = items.slice(shown.length)
66
+ .map(it => (it.words?.length ? it.words.map(w => w.label).join(' / ') : it.id));
51
67
  const rows = Math.ceil(Math.min(n, cap) / cols) || 1;
52
68
  const total = cols * rows;
53
69
  return (_jsx("div", { className: cx('word-table-thumb', className), style: { gridTemplateColumns: `repeat(${cols}, 1fr)` }, children: Array.from({ length: total }, (_, i) => {
54
70
  if (over && i === cap - 1) {
55
- return (_jsx("div", { className: "word-table-thumb__cell word-table-thumb__cell--more", children: _jsx("span", { className: "word-table-thumb__more body-3", children: t('wordTable.thumbMore', { count: hiddenCount, defaultValue: '+{{count}}' }) }) }, i));
71
+ return (
72
+ /* **`+N` 에 얹으면 가려진 낱말이 뜬다**(말귀 청 (354), 2026-10-29. 사장님이
73
+ 화면에서 물으셨다 — *"+6 에는 호버하면 tooltip으로 해당 단어들 보여줄 수 있어?"*).
74
+ 이 칸은 **누르는 자리가 아니다** — 카드가 누르는 자리라 `role="button"` 을 주면
75
+ 속에 또 하나가 생긴다. `tabIndex` 만 둬서 초점이 닿게 하고, 낭독기에는 낱말을
76
+ 이름으로 보낸다. 줄로 쌓는 `DescriptionTooltip` 을 쓴다 — 가로로 늘어나면
77
+ 여섯 낱말에서 카드보다 넓어진다. */
78
+ _jsxs("div", { ref: moreRef, className: "word-table-thumb__cell word-table-thumb__cell--more", tabIndex: 0, "aria-label": t('wordTable.thumbMoreAria', {
79
+ count: hiddenCount,
80
+ words: hiddenLabels.join(', '),
81
+ defaultValue: '그 밖 {{count}}칸: {{words}}',
82
+ }), onPointerEnter: (e) => { if (!isTouchPointer(e))
83
+ openMore(); }, onPointerLeave: (e) => { if (!isTouchPointer(e))
84
+ closeMore(); }, onFocus: () => { if (!recentlyTouched())
85
+ openMore(); }, onBlur: closeMore, onClick: (e) => { e.stopPropagation(); moreToggle.touchPress(); }, children: [_jsx("span", { className: "word-table-thumb__more body-3", children: t('wordTable.thumbMore', { count: hiddenCount, defaultValue: '+{{count}}' }) }), moreAnchor && hiddenLabels.length > 0 && (_jsx(DescriptionTooltip, { anchorRect: moreAnchor, items: hiddenLabels, showIndex: false, closeOnOutsideClick: false }))] }, i));
56
86
  }
57
87
  const item = shown[i];
58
88
  if (!item)
@@ -77,7 +77,7 @@ function rowTemplate(rows) {
77
77
  return '100%';
78
78
  return `repeat(${rows}, calc((100% - ${rows - 1} * var(--wt-cell-gap, 0px)) / ${rows}))`;
79
79
  }
80
- function WordCell({ label, subLabel, colloquialLabel, captionLabel, captionBadge, homonum, showWord = true, showImage = true, showPronunciation = true, showColloquial = true, showCaption = true, buttonSize = 40, wordInfo, outerScale = 1, }) {
80
+ function WordCell({ label, subLabel, colloquialLabel, captionLabel, captionBadge, imageLabel, homonum, showWord = true, showImage = true, showPronunciation = true, showColloquial = true, showCaption = true, buttonSize = 40, wordInfo, outerScale = 1, }) {
81
81
  const { t } = useTranslation();
82
82
  const outerRef = useRef(null);
83
83
  const infoRef = useRef(null);
@@ -94,7 +94,11 @@ function WordCell({ label, subLabel, colloquialLabel, captionLabel, captionBadge
94
94
  const [infoAnchor, setInfoAnchor] = useState(null);
95
95
  // 발음(subLabel)이 없으면 단어로 표준발음 조회(앱 주입 resolver)
96
96
  const pron = (subLabel && subLabel.length > 0) ? subLabel : (getPronunciationResolver()?.(label, homonum) ?? '');
97
- const imageUrl = getImageResolver()?.(label, homonum) ?? '';
97
+ /* **그림만 다른 낱말로 찾을 수 있다**(말귀 청 (355), 2026-10-29) — 칸의 글자가 꼴에 따라
98
+ 바뀌어도(`고프면`) 그림은 기본형(`고프다`) 것을 쓴다. 안 주면 지금 그대로 `label` 이라
99
+ 활용표·대립쌍표·옛 표가 한 글자도 안 바뀐다.
100
+ **소리는 여기를 안 본다** — 재생은 그대로 `subLabel || label` 이다(그 꼴의 소리가 나야 한다). */
101
+ const imageUrl = getImageResolver()?.(imageLabel || label, homonum) ?? '';
98
102
  const { imgRef, loading: imgLoading, failed: imgFailed, onLoad: handleImgLoad, onError: handleImgError } = useWordImage(imageUrl);
99
103
  const handleInfoEnter = useCallback(() => setInfoAnchor(infoRef.current?.getBoundingClientRect() ?? null), []);
100
104
  const handleInfoLeave = useCallback(() => setInfoAnchor(null), []);
@@ -678,9 +682,9 @@ export default function WordTable({ title, titleIcon, disc, className, orientati
678
682
  gridRow: `1 / span ${half.rows}`,
679
683
  /* 머리 칸과 나머지 절반을 가르는 점선 — 가로면 오른쪽, 세로면 아래쪽 */
680
684
  ...dotDashStyle(0, orientation === 'landscape' ? 2 : 1, orientation === 'landscape' ? 1 : 2, cutLine),
681
- }, children: (baseItem.words ?? []).map((w, wi) => (_jsxs(Fragment, { children: [wi > 0 && _jsx("div", { className: withLegacy("word-table__pair-divider") }), _jsx(WordCell, { outerScale: scale, label: w.label, subLabel: w.subLabel, colloquialLabel: w.colloquialLabel, captionLabel: w.captionLabel, captionBadge: w.captionBadge, homonum: w.homonum, showWord: baseShow.word, showImage: baseShow.image, showPronunciation: baseShow.pron, showColloquial: baseShow.colloq, showCaption: baseShow.caption, buttonSize: buttonSize, wordInfo: (w.grade || w.syllables != null || w.pos || w.wordType) ? { grade: w.grade, syllables: w.syllables, pos: w.pos, wordType: w.wordType } : undefined })] }, wi))) })), (items ?? []).map((item, index) => (_jsxs("div", { "data-wordtable-cell": onReorder ? index : undefined, "data-wordtable-index": onReorder ? indexOffset + index : undefined, className: withLegacy(`word-table__card${onReorder ? ' word-table__card--draggable' : ''}${dragOver === index ? ' word-table__card--drag-over' : ''}${dragging === index ? ' word-table__card--dragging' : ''}`), style: dotDashStyle(index, itemCols, itemRows, cutLine), draggable: !!onReorder, onPointerDown: onReorder ? (e) => longPressDrag(e, index) : undefined, onKeyDown: onReorder ? (e) => moveByKey(e, index) : undefined, onDragStart: onReorder ? () => { dragIndex.current = index; } : undefined, onDragOver: onReorder ? (e) => { e.preventDefault(); setDragOver(index); } : undefined, onDragLeave: onReorder ? () => setDragOver(null) : undefined, onDrop: onReorder ? (e) => { e.preventDefault(); if (dragIndex.current !== null && dragIndex.current !== index) {
685
+ }, children: (baseItem.words ?? []).map((w, wi) => (_jsxs(Fragment, { children: [wi > 0 && _jsx("div", { className: withLegacy("word-table__pair-divider") }), _jsx(WordCell, { outerScale: scale, label: w.label, subLabel: w.subLabel, colloquialLabel: w.colloquialLabel, captionLabel: w.captionLabel, captionBadge: w.captionBadge, imageLabel: w.imageLabel, homonum: w.homonum, showWord: baseShow.word, showImage: baseShow.image, showPronunciation: baseShow.pron, showColloquial: baseShow.colloq, showCaption: baseShow.caption, buttonSize: buttonSize, wordInfo: (w.grade || w.syllables != null || w.pos || w.wordType) ? { grade: w.grade, syllables: w.syllables, pos: w.pos, wordType: w.wordType } : undefined })] }, wi))) })), (items ?? []).map((item, index) => (_jsxs("div", { "data-wordtable-cell": onReorder ? index : undefined, "data-wordtable-index": onReorder ? indexOffset + index : undefined, className: withLegacy(`word-table__card${onReorder ? ' word-table__card--draggable' : ''}${dragOver === index ? ' word-table__card--drag-over' : ''}${dragging === index ? ' word-table__card--dragging' : ''}`), style: dotDashStyle(index, itemCols, itemRows, cutLine), draggable: !!onReorder, onPointerDown: onReorder ? (e) => longPressDrag(e, index) : undefined, onKeyDown: onReorder ? (e) => moveByKey(e, index) : undefined, onDragStart: onReorder ? () => { dragIndex.current = index; } : undefined, onDragOver: onReorder ? (e) => { e.preventDefault(); setDragOver(index); } : undefined, onDragLeave: onReorder ? () => setDragOver(null) : undefined, onDrop: onReorder ? (e) => { e.preventDefault(); if (dragIndex.current !== null && dragIndex.current !== index) {
682
686
  onReorder(dragIndex.current, index);
683
- } ; dragIndex.current = null; setDragOver(null); } : undefined, onDragEnd: onReorder ? () => { dragIndex.current = null; setDragOver(null); } : undefined, children: [(item.words ?? []).map((w, i) => (_jsxs(Fragment, { children: [i > 0 && _jsx("div", { className: withLegacy("word-table__pair-divider") }), _jsx(WordCell, { outerScale: scale, label: w.label, subLabel: w.subLabel, colloquialLabel: w.colloquialLabel, captionLabel: w.captionLabel, captionBadge: w.captionBadge, homonum: w.homonum, showWord: show.word, showImage: show.image, showPronunciation: show.pron, showColloquial: show.colloq, showCaption: show.caption, buttonSize: buttonSize, wordInfo: (w.grade || w.syllables != null || w.pos || w.wordType) ? { grade: w.grade, syllables: w.syllables, pos: w.pos, wordType: w.wordType } : undefined })] }, i))), scoring && renderScore(index, (item.words ?? []).map(w => w.label).join(' / ')), (renderCellAction || onRemoveItem || onCopyItem || onReplaceItem || onReorder) && (
687
+ } ; dragIndex.current = null; setDragOver(null); } : undefined, onDragEnd: onReorder ? () => { dragIndex.current = null; setDragOver(null); } : undefined, children: [(item.words ?? []).map((w, i) => (_jsxs(Fragment, { children: [i > 0 && _jsx("div", { className: withLegacy("word-table__pair-divider") }), _jsx(WordCell, { outerScale: scale, label: w.label, subLabel: w.subLabel, colloquialLabel: w.colloquialLabel, captionLabel: w.captionLabel, captionBadge: w.captionBadge, imageLabel: w.imageLabel, homonum: w.homonum, showWord: show.word, showImage: show.image, showPronunciation: show.pron, showColloquial: show.colloq, showCaption: show.caption, buttonSize: buttonSize, wordInfo: (w.grade || w.syllables != null || w.pos || w.wordType) ? { grade: w.grade, syllables: w.syllables, pos: w.pos, wordType: w.wordType } : undefined })] }, i))), scoring && renderScore(index, (item.words ?? []).map(w => w.label).join(' / ')), (renderCellAction || onRemoveItem || onCopyItem || onReplaceItem || onReorder) && (
684
688
  /* **오른쪽 기둥** — 빼기 → 부르는 쪽이 얹은 것 → 옮기기 손잡이 차례로 쌓인다
685
689
  (말귀 청 (331), 2026-10-28). 전에는 빼기와 얹은 것만 **한 줄**로 서고
686
690
  손잡이는 왼쪽 위에 따로 섰다 — 재생 단추와 **같은 자리라 겹쳤다.**
@@ -154,8 +154,14 @@ export interface BarChartProps {
154
154
  * (말귀 실측: 같은 자료가 dayMean 54% · weighted 80% = 229/286문항.)
155
155
  */
156
156
  rateAgg?: 'dayMean' | 'weighted';
157
- /** '상세보기' 단추 크기(기본 32). `headExtra` 에 SegmentedControl(size 32, 겉높이 40px)처럼 큰 것을 얹으면
158
- * 32 단추와 높이가 안 맞는다 — 그 카드만 40 을 준다. */
157
+ /**
158
+ * '상세보기' 단추 크기 — **기본 40**(사장님 지시 2026-10-29: *"header 에 있는 요소들도
159
+ * 동일하게"*).
160
+ *
161
+ * 전에는 기본이 32 였고, 머리 줄에 큰 것을 얹은 카드만 40 을 주라고 적어 두었다. 그
162
+ * *"그 카드만"* 이 이 프롭이 생긴 까닭인데, 머리에 선 것이 모두 40 이 되면서 맞출 것이
163
+ * 없어졌다. 일부러 작게 쓰려는 자리만 32 를 준다.
164
+ */
159
165
  detailSize?: 32 | 40;
160
166
  /** 머리 오른쪽 묶음에서 기간 컨트롤과 '상세보기' **사이** 에 놓을 것 — 앱이 카드 머리에 얹는 작은 조작(예: 시간/정답률 SegmentedControl size 32).
161
167
  * size='small' 에서도 이것만은 그린다(기간 컨트롤은 그대로 숨김). */
@@ -0,0 +1,29 @@
1
+ /**
2
+ * **줄과 머리에 서는 요소는 모두 이 크기다 — 40**
3
+ * (사장님 지시 2026-10-29: *"panel row, table row 에 있는 botton textfield, datepicker
4
+ * dropdown 등 요소의 size prop을 =40 으로 통일하자"* · 뒤이어 *"header 에 있는 요소들도
5
+ * 동일하게"*).
6
+ *
7
+ * ## 왜 수를 한 곳에 두나
8
+ *
9
+ * 요소마다 기본값이 다르다 — 단추 48 · 드롭다운 48 · 날짜 48 · 글상자 40 · 고르개 40.
10
+ * 그래서 줄·머리를 짓는 자리마다 **손으로 40 을 적어** 막아 왔는데, 적는 자리가 늘수록
11
+ * 하나씩 빠진다. 실제로 그렇게 빠졌다 —
12
+ *
13
+ * - `PanelRow` 의 드롭다운(2026-10-29 실측): 같은 줄의 단추·글상자·고르개는 40 인데
14
+ * 드롭다운 다섯만 **48** 로 섰다. 넷은 적었고 하나는 안 적었다.
15
+ * - `SegmentedControl` 은 2026-09-21 에 기본값을 48 → 40 으로 내렸는데, 그때 적은 머리말이
16
+ * *"코어가 제 안에서 세우는 고르개는 이미 전부 40 이고 옆에 서는 Dropdown·TextField 도
17
+ * 40 인데 기본값만 혼자 48"* 이다 — 같은 흠을 그 자리에서도 겪었다는 뜻이다.
18
+ *
19
+ * **글로 적어 두는 것으로는 안 맞는다.** 수를 한 곳에 두고 가져다 쓰면 빠질 자리가 없고,
20
+ * `controlSize1029` 시험이 **손으로 적은 수를 센다**.
21
+ *
22
+ * ## 여기에 안 드는 것
23
+ *
24
+ * 줄·머리가 아닌 자리는 제 크기를 갖는다 — 쪽 넘김(`Pagination` 32) · 팝업 바닥 단추(56) ·
25
+ * 제목 옆 뒤로 화살표(`PageTitle` 48, 글자 없이 서는 과녁이라 일부러 크다) · 단어표 칸 안의
26
+ * 단추(표 배율을 함께 받는다). 부르는 쪽이 `actions`·`headerActions` 로 **직접 얹는** 것도
27
+ * 코어가 쥐지 못한다 — 그쪽은 부르는 쪽이 40 으로 적는다.
28
+ */
29
+ export declare const CONTROL_SIZE = 40;
@@ -0,0 +1,29 @@
1
+ /**
2
+ * **줄과 머리에 서는 요소는 모두 이 크기다 — 40**
3
+ * (사장님 지시 2026-10-29: *"panel row, table row 에 있는 botton textfield, datepicker
4
+ * dropdown 등 요소의 size prop을 =40 으로 통일하자"* · 뒤이어 *"header 에 있는 요소들도
5
+ * 동일하게"*).
6
+ *
7
+ * ## 왜 수를 한 곳에 두나
8
+ *
9
+ * 요소마다 기본값이 다르다 — 단추 48 · 드롭다운 48 · 날짜 48 · 글상자 40 · 고르개 40.
10
+ * 그래서 줄·머리를 짓는 자리마다 **손으로 40 을 적어** 막아 왔는데, 적는 자리가 늘수록
11
+ * 하나씩 빠진다. 실제로 그렇게 빠졌다 —
12
+ *
13
+ * - `PanelRow` 의 드롭다운(2026-10-29 실측): 같은 줄의 단추·글상자·고르개는 40 인데
14
+ * 드롭다운 다섯만 **48** 로 섰다. 넷은 적었고 하나는 안 적었다.
15
+ * - `SegmentedControl` 은 2026-09-21 에 기본값을 48 → 40 으로 내렸는데, 그때 적은 머리말이
16
+ * *"코어가 제 안에서 세우는 고르개는 이미 전부 40 이고 옆에 서는 Dropdown·TextField 도
17
+ * 40 인데 기본값만 혼자 48"* 이다 — 같은 흠을 그 자리에서도 겪었다는 뜻이다.
18
+ *
19
+ * **글로 적어 두는 것으로는 안 맞는다.** 수를 한 곳에 두고 가져다 쓰면 빠질 자리가 없고,
20
+ * `controlSize1029` 시험이 **손으로 적은 수를 센다**.
21
+ *
22
+ * ## 여기에 안 드는 것
23
+ *
24
+ * 줄·머리가 아닌 자리는 제 크기를 갖는다 — 쪽 넘김(`Pagination` 32) · 팝업 바닥 단추(56) ·
25
+ * 제목 옆 뒤로 화살표(`PageTitle` 48, 글자 없이 서는 과녁이라 일부러 크다) · 단어표 칸 안의
26
+ * 단추(표 배율을 함께 받는다). 부르는 쪽이 `actions`·`headerActions` 로 **직접 얹는** 것도
27
+ * 코어가 쥐지 못한다 — 그쪽은 부르는 쪽이 40 으로 적는다.
28
+ */
29
+ export const CONTROL_SIZE = 40;
@@ -689,7 +689,9 @@
689
689
  "replaceItem": "Other words",
690
690
  "replacePair": "Other pairs",
691
691
  "replaceItemAria": "Swap cell {{n}} only",
692
- "replacePairAria": "Swap pair {{n}} only"
692
+ "replacePairAria": "Swap pair {{n}} only",
693
+ "thumbMoreAria_one": "1 more cell: {{words}}",
694
+ "thumbMoreAria_other": "{{count}} more cells: {{words}}"
693
695
  },
694
696
  "wordSearch": {
695
697
  "filterTitle": "Word Search Settings",
@@ -676,7 +676,8 @@
676
676
  "replaceItem": "다른 단어로",
677
677
  "replacePair": "다른 쌍으로",
678
678
  "replaceItemAria": "{{n}}번 칸만 다른 단어로",
679
- "replacePairAria": "{{n}}번 칸만 다른 쌍으로"
679
+ "replacePairAria": "{{n}}번 칸만 다른 쌍으로",
680
+ "thumbMoreAria": "그 밖 {{count}}칸: {{words}}"
680
681
  },
681
682
  "wordSearch": {
682
683
  "filterTitle": "단어 검색 설정",
@@ -26,6 +26,22 @@ export interface WordSearchResultWord {
26
26
  * 배지만 주거나 이름표만 줘도 된다. 둘 다 없으면 아무것도 안 선다.
27
27
  */
28
28
  captionBadge?: string;
29
+ /**
30
+ * **그림을 찾을 때 쓸 낱말** — 안 주면 `label` 로 찾는다(말귀 청 (355), 2026-10-29).
31
+ *
32
+ * 칸의 글자와 그림이 **갈라져야 하는 표**를 위해 둔다. 사장님이 꼴 고르기를 이르시며
33
+ * 함께 정하신 것이다(2026-10-29) — **그림은 기본형**, **표준발음·소리는 칸에 적힌 낱말**.
34
+ * 칸이 `고프면` 으로 서면 그 글자로는 그림이 없어 **그림이 사라지는데**, 단어표는 그림으로
35
+ * 알아보는 표라 그러면 쓸 수 없다. `imageLabel: '고프다'` 를 함께 주면 글자는 그 꼴대로
36
+ * 서고 그림만 기본형 것을 쓴다.
37
+ *
38
+ * **소리 쪽은 이 값을 안 본다** — 재생은 그대로 `subLabel || label` 이다. 꼴을 바꾼 칸은
39
+ * 그 꼴의 소리가 나야 한다(틀린 자극을 주지 않는다).
40
+ *
41
+ * 동음이의 번호(`homonum`)는 그림을 찾을 때 **그대로 함께 간다** — 기본형이 둘 이상이면
42
+ * 그 번호가 가린다.
43
+ */
44
+ imageLabel?: string;
29
45
  homonum?: number;
30
46
  grade?: string;
31
47
  syllables?: number;
@@ -46,4 +46,4 @@
46
46
  *
47
47
  * 값은 손으로 적고 `test/coreVersion.test.ts` 가 package.json 과 어긋나면 운다.
48
48
  */
49
- export declare const CORE_VERSION = "0.400.0";
49
+ export declare const CORE_VERSION = "0.402.0";
@@ -46,4 +46,4 @@
46
46
  *
47
47
  * 값은 손으로 적고 `test/coreVersion.test.ts` 가 package.json 과 어긋나면 운다.
48
48
  */
49
- export const CORE_VERSION = '0.400.0';
49
+ export const CORE_VERSION = '0.402.0';