@ihabdevteam/core 0.430.0 → 0.436.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 (73) hide show
  1. package/CHANGELOG.md +106 -0
  2. package/dist/components.cjs.js +180 -180
  3. package/dist/components.esm.css +4 -4
  4. package/dist/hooks.cjs.js +1 -1
  5. package/dist/i18n.cjs.js +1 -1
  6. package/dist/ihabdevteam-core-tokens.css +1 -1
  7. package/dist/ihabdevteam-core.cjs.js +186 -186
  8. package/dist/ihabdevteam-core.css +1 -1
  9. package/dist/ihabdevteam-core.d.ts +21 -17
  10. package/dist/packages/core/src/components/Badge.css +17 -7
  11. package/dist/packages/core/src/components/Badge.d.ts +10 -0
  12. package/dist/packages/core/src/components/Badge.js +2 -2
  13. package/dist/packages/core/src/components/BottomNav.css +1 -1
  14. package/dist/packages/core/src/components/BulkBar.js +4 -1
  15. package/dist/packages/core/src/components/Button.css +19 -14
  16. package/dist/packages/core/src/components/Button.js +6 -1
  17. package/dist/packages/core/src/components/Calendar.css +6 -5
  18. package/dist/packages/core/src/components/ChartSection.css +3 -2
  19. package/dist/packages/core/src/components/ChoiceChips.css +1 -1
  20. package/dist/packages/core/src/components/CircleBadge.css +3 -3
  21. package/dist/packages/core/src/components/ColorPicker.d.ts +1 -1
  22. package/dist/packages/core/src/components/ColorPicker.js +5 -1
  23. package/dist/packages/core/src/components/ConsentRecordPopup.js +1 -1
  24. package/dist/packages/core/src/components/DatePicker.css +4 -4
  25. package/dist/packages/core/src/components/DatePicker.d.ts +1 -1
  26. package/dist/packages/core/src/components/DatePicker.js +5 -1
  27. package/dist/packages/core/src/components/Dropdown.d.ts +1 -1
  28. package/dist/packages/core/src/components/Dropdown.js +5 -1
  29. package/dist/packages/core/src/components/ErrorState.css +1 -1
  30. package/dist/packages/core/src/components/FileUpload.css +1 -1
  31. package/dist/packages/core/src/components/FilterPanel.js +5 -2
  32. package/dist/packages/core/src/components/Header.css +8 -0
  33. package/dist/packages/core/src/components/Header.js +1 -1
  34. package/dist/packages/core/src/components/IconGridMenu.css +1 -1
  35. package/dist/packages/core/src/components/NotifyTextPreview.css +1 -1
  36. package/dist/packages/core/src/components/Panel.css +15 -13
  37. package/dist/packages/core/src/components/Panel.d.ts +5 -8
  38. package/dist/packages/core/src/components/Panel.js +16 -6
  39. package/dist/packages/core/src/components/PanelRow.js +10 -6
  40. package/dist/packages/core/src/components/PassCard/PassCard.css +9 -0
  41. package/dist/packages/core/src/components/Popup/ListPopup.js +1 -1
  42. package/dist/packages/core/src/components/Popup/Popup.css +1 -1
  43. package/dist/packages/core/src/components/Popup/SaveTablePopup.js +1 -1
  44. package/dist/packages/core/src/components/Popup/TrainingResultPopup.css +2 -2
  45. package/dist/packages/core/src/components/ProgressIndicator.css +2 -2
  46. package/dist/packages/core/src/components/SearchSummary.css +2 -2
  47. package/dist/packages/core/src/components/SegmentedControl.css +4 -0
  48. package/dist/packages/core/src/components/SegmentedControl.js +5 -1
  49. package/dist/packages/core/src/components/Table.css +12 -15
  50. package/dist/packages/core/src/components/Table.d.ts +1 -3
  51. package/dist/packages/core/src/components/Table.js +77 -73
  52. package/dist/packages/core/src/components/Tabs.d.ts +1 -1
  53. package/dist/packages/core/src/components/Tabs.js +5 -1
  54. package/dist/packages/core/src/components/TextField.css +2 -2
  55. package/dist/packages/core/src/components/TextField.js +5 -1
  56. package/dist/packages/core/src/components/Toast.css +2 -2
  57. package/dist/packages/core/src/components/Toolbar.js +5 -2
  58. package/dist/packages/core/src/components/Tooltip/TextBoxTooltip.css +1 -1
  59. package/dist/packages/core/src/components/Training/TrainingBlockButton.css +1 -1
  60. package/dist/packages/core/src/components/Training/TrainingCard.css +2 -1
  61. package/dist/packages/core/src/components/Training/TrainingCardGroup.css +1 -1
  62. package/dist/packages/core/src/components/Training/TrainingStepOrderList.css +1 -1
  63. package/dist/packages/core/src/components/Word/WordSearchResultBlock.js +4 -1
  64. package/dist/packages/core/src/components/Word/WordTableBlock.js +1 -1
  65. package/dist/packages/core/src/components/controlSize.d.ts +13 -0
  66. package/dist/packages/core/src/components/controlSize.js +13 -0
  67. package/dist/packages/core/src/components/controlSizeContext.d.ts +17 -0
  68. package/dist/packages/core/src/components/controlSizeContext.js +8 -0
  69. package/dist/packages/core/src/tokens.css +240 -128
  70. package/dist/packages/core/src/version.d.ts +1 -1
  71. package/dist/packages/core/src/version.js +1 -1
  72. package/dist/utils.cjs.js +1 -1
  73. package/package.json +5 -1
@@ -63,15 +63,15 @@
63
63
  .circle-badge--check,
64
64
  .circle-badge--number {
65
65
  background: var(--color-main);
66
- color: #ffffff;
66
+ color: var(--color-on-brand-fill, #ffffff);
67
67
  }
68
68
  .circle-badge--remove {
69
69
  background: var(--color-error);
70
- color: #ffffff;
70
+ color: var(--color-on-brand-fill, #ffffff);
71
71
  }
72
72
  .circle-badge--minus {
73
73
  background: var(--color-lightGray);
74
- color: #ffffff;
74
+ color: var(--color-on-gray-fill, #ffffff); /* 어두운 꼴에서만 짙게 (413) */
75
75
  }
76
76
  /* ── svg 크기 ── */
77
77
  .circle-badge--24 svg { width: 11px; height: 11px; }
@@ -17,4 +17,4 @@ export interface ColorPickerProps {
17
17
  ariaLabel?: string;
18
18
  }
19
19
  /** @public */
20
- export default function ColorPicker({ value, onChange, palette, size, className, ariaLabel, }: ColorPickerProps): import("react").JSX.Element;
20
+ export default function ColorPicker({ value, onChange, palette, size: sizeProp, className, ariaLabel, }: ColorPickerProps): import("react").JSX.Element;
@@ -3,6 +3,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
3
3
  import { useTranslation } from 'react-i18next';
4
4
  import Icon from './Icon';
5
5
  import './ColorPicker.css';
6
+ import { useControlSize } from './controlSizeContext';
6
7
  import { CONTROL_SIZE } from './controlSize';
7
8
  const CHECK_ICON_SIZE = 20;
8
9
  const DEFAULT_PALETTE = [
@@ -15,7 +16,10 @@ const DEFAULT_PALETTE = [
15
16
  '#bfc7d1', // disabled
16
17
  ];
17
18
  /** @public */
18
- export default function ColorPicker({ value, onChange, palette = DEFAULT_PALETTE, size = CONTROL_SIZE, className = '', ariaLabel, }) {
19
+ export default function ColorPicker({ value, onChange, palette = DEFAULT_PALETTE, size: sizeProp, className = '', ariaLabel, }) {
20
+ // 안 주면 가장 가까운 판 · 표의 값(청 (419)) — 그 밖이면 공용 수 `CONTROL_SIZE`(40)
21
+ const inheritedSize = useControlSize();
22
+ const size = sizeProp ?? inheritedSize ?? CONTROL_SIZE;
19
23
  const { t } = useTranslation();
20
24
  return (
21
25
  /* role="group" 은 이름이 없으면 낭독기가 묶음을 알리지 않는다 — 이름을 받는다 */
@@ -67,7 +67,7 @@ export default function ConsentRecordPopup({ takenKinds, busy, today, onClose, o
67
67
  kinds, method, source,
68
68
  consentedAt: day || null,
69
69
  note: note.trim() || null,
70
- }) })), children: _jsxs(Panel, { useBorder: false, useRowBorder: false, labelWidth: 96, children: [_jsx(PanelRow, { variant: "custom", useFullWidth: true, label: t('customers.consent.kinds', '받은 갈래'), children: _jsxs("div", { className: "consent-record-popup__kinds", children: [pickable.map(k => (_jsx(Checkbox, { checked: kinds.includes(k), disabled: busy, label: kindLabel[k], onChange: on => setKinds(was => on ? [...was, k] : was.filter(x => x !== k)) }, k))), pickable.length === 0 && (_jsx("p", { className: "body-3 consent-record-popup__none", children: t('customers.consent.allTaken', '세 갈래를 이미 다 받았습니다. 다시 받으려면 먼저 철회하세요.') }))] }) }), _jsx(PanelRow, { variant: "custom", useFullWidth: true, label: t('customers.consent.methodTitle', '받은 방법'), children: _jsx(SegmentedControl, { size: 40, fullWidth: true, ariaLabel: t('customers.consent.methodTitle', '받은 방법'), options: [
70
+ }) })), children: _jsxs(Panel, { useBorder: false, labelWidth: 96, children: [_jsx(PanelRow, { variant: "custom", useFullWidth: true, label: t('customers.consent.kinds', '받은 갈래'), children: _jsxs("div", { className: "consent-record-popup__kinds", children: [pickable.map(k => (_jsx(Checkbox, { checked: kinds.includes(k), disabled: busy, label: kindLabel[k], onChange: on => setKinds(was => on ? [...was, k] : was.filter(x => x !== k)) }, k))), pickable.length === 0 && (_jsx("p", { className: "body-3 consent-record-popup__none", children: t('customers.consent.allTaken', '세 갈래를 이미 다 받았습니다. 다시 받으려면 먼저 철회하세요.') }))] }) }), _jsx(PanelRow, { variant: "custom", useFullWidth: true, label: t('customers.consent.methodTitle', '받은 방법'), children: _jsx(SegmentedControl, { size: 40, fullWidth: true, ariaLabel: t('customers.consent.methodTitle', '받은 방법'), options: [
71
71
  { key: 'paper', label: t('customers.consent.method.paper', '서면') },
72
72
  { key: 'verbal', label: t('customers.consent.method.verbal', '구두') },
73
73
  { key: 'electronic', label: t('customers.consent.method.electronic', '전자') },
@@ -196,7 +196,7 @@
196
196
  font-weight: 600;
197
197
  padding: 4px 0 6px;
198
198
  }
199
- .date-picker__dow:first-child { color: var(--color-error); }
199
+ .date-picker__dow:first-child { color: var(--color-error-ink, var(--color-error)); }
200
200
  .date-picker__dow:last-child { color: var(--color-main); }
201
201
 
202
202
  /* Day buttons */
@@ -215,9 +215,9 @@
215
215
  background: var(--color-main-a10);
216
216
  color: var(--color-main);
217
217
  }
218
- .date-picker__day--sun:hover:not(:disabled) { color: var(--color-error); }
218
+ .date-picker__day--sun:hover:not(:disabled) { color: var(--color-error-ink, var(--color-error)); }
219
219
  .date-picker__day--sat:hover:not(:disabled) { color: var(--color-main); }
220
- .date-picker__day--sun { color: var(--color-error); }
220
+ .date-picker__day--sun { color: var(--color-error-ink, var(--color-error)); }
221
221
  .date-picker__day--sat { color: var(--color-main); }
222
222
  .date-picker__day--today {
223
223
  font-weight: 700;
@@ -235,7 +235,7 @@
235
235
 
236
236
  .date-picker__day--selected {
237
237
  background: var(--color-main) !important;
238
- color: #ffffff !important;
238
+ color: var(--color-on-brand-fill, #ffffff) !important;
239
239
  font-weight: 700;
240
240
  }
241
241
  .date-picker__day--disabled {
@@ -40,4 +40,4 @@ export interface DatePickerProps {
40
40
  /** 눈에 보이는 이름표의 `id` — 그 글자가 이 칸의 이름이 된다(`ariaLabel` 대신 쓴다) */
41
41
  ariaLabelledBy?: string;
42
42
  }
43
- export default function DatePicker({ value, onChange, size, min, max, disabled, placeholder: placeholderProp, className, today, ariaLabel, ariaLabelledBy, }: DatePickerProps): import("react").JSX.Element;
43
+ export default function DatePicker({ value, onChange, size: sizeProp, min, max, disabled, placeholder: placeholderProp, className, today, ariaLabel, ariaLabelledBy, }: DatePickerProps): import("react").JSX.Element;
@@ -19,6 +19,7 @@ import { useAnchoredMenu, anchoredMenuZIndex } from '../hooks/useAnchoredMenu';
19
19
  import { useCalendarMonth } from './useCalendarMonth';
20
20
  import { FOCUSABLE_SELECTOR } from '../hooks/useFocusTrap';
21
21
  import './DatePicker.css';
22
+ import { useControlSize } from './controlSizeContext';
22
23
  import { CONTROL_SIZE } from './controlSize';
23
24
  function daysInMonth(y, m) { return new Date(y, m + 1, 0).getDate(); }
24
25
  function firstDay(y, m) { return new Date(y, m, 1).getDay(); }
@@ -99,7 +100,10 @@ function monthOptions(year, label, min, max) {
99
100
  }
100
101
  return opts;
101
102
  }
102
- export default function DatePicker({ value, onChange, size = CONTROL_SIZE, min, max, disabled, placeholder: placeholderProp, className, today, ariaLabel, ariaLabelledBy, }) {
103
+ export default function DatePicker({ value, onChange, size: sizeProp, min, max, disabled, placeholder: placeholderProp, className, today, ariaLabel, ariaLabelledBy, }) {
104
+ // 안 주면 가장 가까운 판 · 표의 값(청 (419)) — 그 밖이면 공용 수 `CONTROL_SIZE`(40)
105
+ const inheritedSize = useControlSize();
106
+ const size = sizeProp ?? inheritedSize ?? CONTROL_SIZE;
103
107
  /* **이름 없는 날짜 칸은 "편집, 비어 있음" 으로만 읽힌다.** `placeholder` 는 이름이
104
108
  아니다 — 값이 들어오면 사라진다. `TextField`·`Slider` 가 같은 자리에서 같게 알린다. */
105
109
  if (!ariaLabel && !ariaLabelledBy) {
@@ -32,4 +32,4 @@ export interface DropdownProps {
32
32
  ariaDescribedBy?: string;
33
33
  }
34
34
  /** @public */
35
- export default function Dropdown({ options, value, onChange, placeholder, disabled, block, size, error, className, ariaLabel, ariaDescribedBy }: DropdownProps): import("react").JSX.Element;
35
+ export default function Dropdown({ options, value, onChange, placeholder, disabled, block, size: sizeProp, error, className, ariaLabel, ariaDescribedBy }: DropdownProps): import("react").JSX.Element;
@@ -3,12 +3,16 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { cx } from '../utils/cx';
4
4
  import { useCallback, useEffect, useId, useRef, useState } from 'react';
5
5
  import { createPortal } from 'react-dom';
6
+ import { useControlSize } from './controlSizeContext';
6
7
  import { CONTROL_SIZE } from './controlSize';
7
8
  import { useTranslation } from 'react-i18next';
8
9
  import { useAnchoredMenu, anchoredMenuZIndex } from '../hooks/useAnchoredMenu';
9
10
  import './Dropdown.css';
10
11
  /** @public */
11
- export default function Dropdown({ options, value, onChange, placeholder, disabled = false, block = false, size = CONTROL_SIZE, error = false, className = '', ariaLabel, ariaDescribedBy }) {
12
+ export default function Dropdown({ options, value, onChange, placeholder, disabled = false, block = false, size: sizeProp, error = false, className = '', ariaLabel, ariaDescribedBy }) {
13
+ // 안 주면 가장 가까운 판 · 표의 값(청 (419)) — 그 밖이면 공용 수 `CONTROL_SIZE`(40)
14
+ const inheritedSize = useControlSize();
15
+ const size = sizeProp ?? inheritedSize ?? CONTROL_SIZE;
12
16
  const { t } = useTranslation();
13
17
  const resolvedPlaceholder = placeholder ?? t('dropdown.placeholder', '선택');
14
18
  const listId = useId();
@@ -1,5 +1,5 @@
1
1
  /* ErrorState — EmptyState 레이아웃(empty-state) 재사용, 에러 톤만 오버라이드 */
2
- .error-state__icon { color: var(--color-error); }
2
+ .error-state__icon { color: var(--color-error-ink, var(--color-error)); }
3
3
  /* 보조 안내 — EmptyState 가 제 hint 줄을 걷으면서(0.182.0) 이 꼴을 여기로 옮겼다.
4
4
  그때까지는 `.empty-state__hint` 를 함께 쓰고 있었다. */
5
5
  .error-state__hint { color: var(--color-lightGray); margin: 0; }
@@ -119,5 +119,5 @@
119
119
  }
120
120
 
121
121
  .file-upload__remove-button:hover {
122
- color: var(--color-error);
122
+ color: var(--color-error-ink, var(--color-error));
123
123
  }
@@ -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 { useControlSize } from './controlSizeContext';
11
12
  import { CONTROL_SIZE } from './controlSize';
12
13
  export { FILTER_ALL_VALUE } from '../types/filterPanel';
13
14
  import { FILTER_ALL_VALUE } from '../types/filterPanel';
@@ -16,6 +17,8 @@ import { devWarnOnce } from '../utils/devWarn';
16
17
  import { buildFilterSummary } from '../utils/filterPanelSummary';
17
18
  /** @public */
18
19
  export default function FilterPanel({ title, titleLevel = 2, headerAction, headerSummary, collapsible = false, defaultCollapsed = false, collapsed: controlledCollapsed, onCollapsedChange, footer, sections, selected = {}, onSelect, align, sectionAlign, className, }) {
20
+ // 둘레 판이 고른 조절칸 크기(테두리 없는 판 48 · 그 밖 40) — 청 (419), 2026-11-12
21
+ const ctrlSize = useControlSize() ?? CONTROL_SIZE;
19
22
  // align 우선. 없으면 구 prop(sectionAlign) 매핑, 그것도 없으면 inline 기본.
20
23
  const isRow = (align ?? (sectionAlign === 'vertical' ? 'newline' : sectionAlign === 'horizontal' ? 'inline' : 'inline')) === 'inline';
21
24
  const { t } = useTranslation();
@@ -55,7 +58,7 @@ export default function FilterPanel({ title, titleLevel = 2, headerAction, heade
55
58
  안 잡혀, 셋이 나란히 서도 "지금 어느 판 안인지" 를 알 길이 없었다 — (51)·(54) 에서
56
59
  `ChartSection`·`TrainingCardGroup` 에 한 것과 같은 자다.
57
60
  **글자 제목일 때만 건다** — 마디를 가리키므로 글이 아닌 제목이면 이름이 안 선다. */
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',
61
+ _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: ctrlSize, type: "dot", variant: "transparent-gray", useBorder: false, icon: collapsed ? 'chevron-down' : 'chevron-up',
59
62
  /* Button은 aria-label을 자기 ariaLabel prop으로 덮어쓴다({...rest} 뒤에
60
63
  aria-label={ariaLabelString}을 다시 쓴다) — kebab으로 넘기면 undefined가
61
64
  되어 이름이 통째로 사라진다. 저장소의 다른 호출부는 모두 ariaLabel을 쓴다.
@@ -153,7 +156,7 @@ export default function FilterPanel({ title, titleLevel = 2, headerAction, heade
153
156
  달랐다. 2026-10-29 에 `PanelRow` 에서 겪은 것과 같은 흠이다 — 손으로 적는
154
157
  자리가 여럿이면 하나가 빠진다. 그래서 공용 수를 쓴다.
155
158
  */
156
- ariaLabel: typeof section.label === 'string' ? section.label : undefined, size: CONTROL_SIZE, options: [
159
+ ariaLabel: typeof section.label === 'string' ? section.label : undefined, size: ctrlSize, options: [
157
160
  ...(section.allOption ? [{ value: FILTER_ALL_VALUE, label: section.allLabel ?? t('common.all', '전체'), disabled: section.allOptionDisabled }] : []),
158
161
  ...items.map(item => {
159
162
  const value = typeof item === 'string' ? item : item.value;
@@ -350,6 +350,14 @@
350
350
  기본은 로고다(넓은 화면·폰). 심볼은 접힌 레일에서만 선다. */
351
351
  .brand-identity__image--symbol { display: none; }
352
352
 
353
+ /* **펼친 레일의 로고는 메뉴 칸보다 좌우로 안 나간다**(말귀 청 412 · 사장님 결정 2026-11-11).
354
+ 메뉴 칸은 레일 폭에서 좌우 13px 씩 안쪽이다(220 레일 → 194, 실측 /manager). 높이 48 은 그대로 두고
355
+ 폭에만 상한을 주어 긴 로고(말귀매니저 207px)는 비율대로 줄고, 짧은 로고(말귀 · 어드민)는 상한에 안 닿는다.
356
+ 레일 폭 토큰에서 셈해 큰 글자에서 레일이 넓어질 때도 따라간다. 폰 머리띠(≤767)와 접힌 심볼은 안 건드린다. */
357
+ @media (min-width: 768px) {
358
+ .brand-identity__image--logo { max-width: calc(var(--side-nav-width, 220px) - 26px); }
359
+ }
360
+
353
361
  @media (min-width: 1024px) {
354
362
  .brand-identity__root { height: 100px; }
355
363
  }
@@ -35,7 +35,7 @@ export function BrandIdentity({ appMode }) {
35
35
  2026-09-26 — "테블릿에서 호버했을 때 데스크탑과 동일하게"). 펼침은 `:hover`·`:focus-within`
36
36
  이라 **CSS 만 아는 상태**이고, JS 분기로는 `img` 의 `src` 를 바꿀 길이 없다.
37
37
  안 보이는 쪽은 `display: none` 이라 낭독기도 안 읽는다 — `alt` 를 둘 다 둬도 한 번만 읽힌다. */
38
- return (_jsxs("div", { className: "brand-identity__root", "aria-label": t('header.biArea', 'BI 영역'), children: [_jsx("img", { src: symbol, alt: t('header.biSymbol', 'BI 심볼'), className: "brand-identity__image brand-identity__image--symbol" }), isManager ? (_jsx("img", { src: logo, alt: t('header.logoManager', '말귀매니저 로고'), className: "brand-identity__image brand-identity__image--logo" })) : (_jsx(BrandLogo, { src: logo, alt: t('header.logoMalgwi', '말귀 로고'), textColor: "var(--color-text-primary)", className: "brand-identity__image brand-identity__image--logo" }))] }));
38
+ return (_jsxs("div", { className: "brand-identity__root", "aria-label": t('header.biArea', 'BI 영역'), children: [_jsx("img", { src: symbol, alt: t('header.biSymbol', 'BI 심볼'), className: "brand-identity__image brand-identity__image--symbol" }), isManager ? (_jsx("img", { src: logo, alt: t('header.logoManager', '말귀매니저 로고'), className: "brand-identity__image brand-identity__image--logo" })) : (_jsx(BrandLogo, { src: logo, alt: t('header.logoMalgwi', '말귀 로고'), textColor: "light-dark(var(--color-pureBlack), var(--color-text-primary))", className: "brand-identity__image brand-identity__image--logo" }))] }));
39
39
  }
40
40
  /**
41
41
  * 앱 전체 레이아웃의 내비게이션 헤더(사이드바)입니다.
@@ -99,7 +99,7 @@
99
99
  .icon-grid-menu__button.icon-grid-menu__button--selected {
100
100
  background-color: var(--color-main);
101
101
  animation: sub-to-main 360ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
102
- color: #ffffff;
102
+ color: var(--color-on-brand-fill, #ffffff);
103
103
  box-shadow: var(--shadow-button);
104
104
  border-color: transparent;
105
105
  }
@@ -71,7 +71,7 @@
71
71
 
72
72
  /* 한계를 넘은 줄 — **색만으로 말하지 않는다.** 글(`한계 넘음`)이 함께 간다. */
73
73
  .notify-text-preview__bytes.is-over {
74
- color: var(--color-error);
74
+ color: var(--color-error-ink, var(--color-error));
75
75
  font-weight: 600;
76
76
  }
77
77
 
@@ -31,8 +31,8 @@
31
31
  padding-left: 0;
32
32
  padding-right: 0;
33
33
  }
34
- /* row 구분선 제거 */
35
- .panel--no-row-border .panel-row + .panel-row {
34
+ /* row 구분선 제거 — 테두리를 끄면 함께 꺼진다(2026-11-12, `useRowBorder` 를 `useBorder` 에 합쳤다) */
35
+ .panel--no-border .panel-row + .panel-row {
36
36
  border-top: none;
37
37
  }
38
38
  .panel__header {
@@ -50,10 +50,10 @@
50
50
  .panel__header:last-child {
51
51
  border-bottom: none;
52
52
  }
53
- /* header 높이도 size 스케일을 따름 — small 48 / medium 56 / large 64 */
54
- .panel--small .panel__header { min-height: 48px; }
55
- .panel--medium .panel__header { min-height: 56px; }
56
- .panel--large .panel__header { min-height: 64px; }
53
+ /* 높이는 **한 급뿐이다 — 안쪽 56, 밑선은 그 밖에 1**(사장님 지시 2026-11-12: *"모두 medium 하나로
54
+ 정리. size prop 제거"* · *"선까지 56이면 내부가 55인데 홀수가 되버리잖아"*). small 48 · large 64 를
55
+ 두었는데 판마다 급이 달라 한 화면에 줄 높이가 섞였다. 줄(`.panel-row`)과 같은 셈 — `content-box`. */
56
+ .panel .panel__header { min-height: 56px; box-sizing: content-box; }
57
57
  /* 제목 앞 아이콘 — Section 과 같은 크기·같은 색. 제목·설명 묶음 밖에 서므로
58
58
  설명도 제목 글자와 같은 왼쪽 선에서 시작한다. */
59
59
  .panel__icon {
@@ -110,12 +110,14 @@
110
110
  padding: 4px 20px; /* 좌우 20 / 상하 4 통일. 실제 행 높이는 min-height(size)가 결정 */
111
111
  box-sizing: border-box;
112
112
  }
113
- /* 높이 스케일 — small 48 / medium 56(기본) / large 64 */
114
- .panel--small .panel-row { min-height: 48px; }
115
- .panel--medium .panel-row { min-height: 56px; }
116
- .panel--large .panel-row { min-height: 64px; }
113
+ /* **줄 안쪽은 56, 구분선은 그 밖에 1**(사장님 지시 2026-11-12).
114
+ 전에는 `border-box` 로 56 안에 선까지 넣어, 선 있는 줄은 글자만 있으면 안쪽이 55(홀수)이고
115
+ 48 칸이 들면 4 + 48 + 4 + 1 = 57 로 자라 줄마다 달랐다. 그래서 키를 **선 밖에서** 잰다 —
116
+ `content-box` 로 안쪽 최소 48 + 위아래 여백 4·4 = 56, 선이 있으면 그 아래 1 이 더해진다.
117
+ 폭은 `auto` 라 `content-box` 가 넘치지 않는다. */
118
+ .panel .panel-row { min-height: 48px; box-sizing: content-box; }
117
119
  /* compactRows — 크기 규칙 **뒤에** 둬야 같은 특이도로 이긴다 */
118
- .panel--compact-rows .panel-row { min-height: 46px; padding-top: 3px; padding-bottom: 3px; }
120
+ .panel--compact-rows .panel-row { min-height: 40px; padding-top: 3px; padding-bottom: 3px; } /* 안쪽 40 + 3·3 = 46 (content-box) */
119
121
  /* 인접한 row 사이에만 구분선 (첫/끝 처리 불필요) */
120
122
  .panel-row + .panel-row {
121
123
  border-top: 1px solid var(--color-darkWhite);
@@ -127,7 +129,7 @@
127
129
  .panel--fill .panel-row + .panel-row {
128
130
  border-top: none;
129
131
  }
130
- .panel--no-row-border .panel-row {
132
+ .panel--no-border .panel-row {
131
133
  border-bottom: none;
132
134
  }
133
135
  /* 비-row 콘텐츠(stats 등) 다음에 오는 첫 row — 구분선만 제거 */
@@ -835,7 +837,7 @@
835
837
  }
836
838
 
837
839
  .panel-row__error {
838
- color: var(--color-error);
840
+ color: var(--color-error-ink, var(--color-error));
839
841
  margin-top: 4px;
840
842
  }
841
843
 
@@ -1,6 +1,5 @@
1
1
  import { type ReactNode, type CSSProperties } from 'react';
2
2
  import './Panel.css';
3
- type PanelSize = 'small' | 'medium' | 'large';
4
3
  interface PanelProps {
5
4
  /** 제목을 **머리글 몇 급**으로 그릴지(말귀 요청 (59), 2026-10-02).
6
5
  *
@@ -30,8 +29,6 @@ interface PanelProps {
30
29
  */
31
30
  disc?: ReactNode;
32
31
  actions?: ReactNode;
33
- /** 행 높이 스케일 — small 48 / medium 56 / large 64. 기본 medium */
34
- size?: PanelSize;
35
32
  minHeight?: number | string;
36
33
  maxWidth?: number | string;
37
34
  className?: string;
@@ -42,16 +39,16 @@ interface PanelProps {
42
39
  */
43
40
  scrollbarGutter?: 'auto' | 'stable';
44
41
  /**
45
- * 행을 조금 낮춘다 — 최소 높이 46px·위아래 여백 3px. `size="small"` 에 겹쳐 쓰면 행 하나짜리 머리 없는 패널의
42
+ * 행을 조금 낮춘다 — 최소 높이 46px·위아래 여백 3px. 행 하나짜리 머리 없는 패널의
46
43
  * **테두리까지 바깥 높이가 48px** 이라 옆의 48px 단추와 줄이 맞는다(공유 링크 칸 등). 머리 높이·라벨 급은 그대로.
47
44
  */
48
45
  compactRows?: boolean;
49
- /** 외곽선 표시 여부. 기본 true */
46
+ /** 외곽선 표시 여부. 기본 true.
47
+ * **끄면 줄 사이 선도 함께 꺼지고, 안의 조절칸은 48 이 된다**(사장님 지시 2026-11-12 — `useRowBorder` 를
48
+ * 이것에 합쳤다: *"useRowBorder 이거 useborder로 합치고 제거해줘"*). 테두리 없는 판은 팝업 안 입력 양식이다. */
50
49
  useBorder?: boolean;
51
50
  /** 배경(카드 흰 배경) 표시 여부. 기본 true. false면 투명 배경으로 페이지에 녹아든다 */
52
51
  useBg?: boolean;
53
- /** row 구분선 표시 여부. 기본 true */
54
- useRowBorder?: boolean;
55
52
  /** PanelRow label 열 고정 너비 (예: 80, '6rem') */
56
53
  labelWidth?: number | string;
57
54
  /** 폼 레이아웃 — 모든 row를 라벨 고정폭(labelWidth, 기본 80px) grid로 정렬 */
@@ -62,7 +59,7 @@ interface PanelProps {
62
59
  empty?: ReactNode;
63
60
  children?: ReactNode;
64
61
  }
65
- export default function Panel({ title, titleLevel, icon, disc, actions, size, minHeight, maxWidth, className, scrollable, scrollbarGutter, compactRows, useBorder, useBg, useRowBorder, labelWidth, form, loading, empty, children }: PanelProps): import("react").JSX.Element;
62
+ export default function Panel({ title, titleLevel, icon, disc, actions, minHeight, maxWidth, className, scrollable, scrollbarGutter, compactRows, useBorder, useBg, labelWidth, form, loading, empty, children }: PanelProps): import("react").JSX.Element;
66
63
  /** @public */
67
64
  export declare function PanelGrid({ cols, layout, gap, collapseAt, className, style, children, }: {
68
65
  cols?: number;
@@ -4,11 +4,13 @@ import { cx } from '../utils/cx';
4
4
  import { PanelRow } from './PanelRow';
5
5
  import { Children, useEffect, useRef, useState } from 'react';
6
6
  import Icon from './Icon';
7
+ import { ControlSizeContext } from './controlSizeContext';
8
+ import { CONTROL_SIZE } from './controlSize';
7
9
  import './Panel.css';
8
- export default function Panel({ title, titleLevel = 2, icon, disc, actions, size = 'medium', minHeight, maxWidth, className, scrollable, scrollbarGutter = 'auto', compactRows = false, useBorder = true, useBg = true, useRowBorder = true, labelWidth, form = false, loading, empty, children }) {
9
- const cls = cx('panel', `panel--${size}`, form ? 'panel--form' : '',
10
+ export default function Panel({ title, titleLevel = 2, icon, disc, actions, minHeight, maxWidth, className, scrollable, scrollbarGutter = 'auto', compactRows = false, useBorder = true, useBg = true, labelWidth, form = false, loading, empty, children }) {
11
+ const cls = cx('panel', form ? 'panel--form' : '',
10
12
  /* minHeight 패널은 마지막 행 아래 빈 공간이 생길 수 있으므로 행 하단 구분선 사용 */
11
- minHeight !== undefined ? 'panel--fill' : '', !useBorder ? 'panel--no-border' : '', !useBg ? 'panel--no-bg' : '', !useRowBorder ? 'panel--no-row-border' : '', compactRows ? 'panel--compact-rows' : '', className);
13
+ minHeight !== undefined ? 'panel--fill' : '', !useBorder ? 'panel--no-border' : '', !useBg ? 'panel--no-bg' : '', compactRows ? 'panel--compact-rows' : '', className);
12
14
  const style = {};
13
15
  if (minHeight !== undefined)
14
16
  style.minHeight = minHeight;
@@ -17,9 +19,17 @@ export default function Panel({ title, titleLevel = 2, icon, disc, actions, size
17
19
  if (labelWidth !== undefined)
18
20
  style['--panel-label-width'] = typeof labelWidth === 'number' ? `${labelWidth}px` : labelWidth;
19
21
  const TitleTag = titleLevel ? `h${titleLevel}` : 'div';
20
- return (_jsxs("div", { className: cls, style: Object.keys(style).length ? style : undefined, children: [(!!title || disc != null) && (_jsxs("div", { className: cx('panel__header', disc != null ? 'panel__header--with-disc' : ''), children: [icon && (_jsx(Icon, { icon: icon, label: typeof title === 'string' ? title : undefined, className: "panel__icon" })), _jsxs("div", { className: "panel__title-group", children: [!!title && (_jsx(TitleTag, { className: `panel__title ${disc != null ? 'body-3b' : 'h5b'}`, children: title })), disc != null && _jsx("p", { className: "panel__disc caption-1", children: disc })] }), actions && _jsx("div", { className: "panel__actions", children: actions })] })), loading ? (_jsx(PanelRow, { variant: "loading" })
21
- /* 비었는지는 React 가 그리는 것으로 센다 — `{조건 && 행들}` 이 false 면 children 이 false 라 빈 상태 문구가 안 떴다 */
22
- ) : empty != null && Children.toArray(children).length === 0 ? (_jsx(PanelRow, { variant: "empty", children: empty })) : scrollable ? (_jsx("div", { className: cx('panel__body--scroll', scrollbarGutter === 'stable' && 'panel__body--gutter-stable'), children: children })) : children] }));
22
+ /* **판 안 조절칸의 크기는 테두리가 정한다**(사장님 지시 2026-11-12, 말귀 청 (419)):
23
+ *"sizecontrol 제거하고 useborder false = 48, useborder true = 40"*.
24
+ 테두리 없는 판은 팝업 안 입력 양식이라 칸이 선 없이 떠 있어 48 이 맞고, 테두리 있는 판은
25
+ 카드 목록이라 40 으로 촘촘하다. 줄 안의 칸 · 머리 `actions` 까지 이 값을 따르고, 칸이 제
26
+ `size` 를 주면 그것이 이긴다. 판 안의 판은 가장 가까운 판의 테두리를 따른다. */
27
+ const panelControlSize = useBorder ? CONTROL_SIZE : 48;
28
+ return (
29
+ // 머리의 `actions` 까지 감싼다 — 한 판 안의 조절칸은 한 크기다
30
+ _jsx(ControlSizeContext.Provider, { value: panelControlSize, children: _jsxs("div", { className: cls, style: Object.keys(style).length ? style : undefined, children: [(!!title || disc != null) && (_jsxs("div", { className: cx('panel__header', disc != null ? 'panel__header--with-disc' : ''), children: [icon && (_jsx(Icon, { icon: icon, label: typeof title === 'string' ? title : undefined, className: "panel__icon" })), _jsxs("div", { className: "panel__title-group", children: [!!title && (_jsx(TitleTag, { className: `panel__title ${disc != null ? 'body-3b' : 'h5b'}`, children: title })), disc != null && _jsx("p", { className: "panel__disc caption-1", children: disc })] }), actions && _jsx("div", { className: "panel__actions", children: actions })] })), loading ? (_jsx(PanelRow, { variant: "loading" })
31
+ /* 비었는지는 React 가 그리는 것으로 센다 — `{조건 && 행들}` 이 false 면 children 이 false 라 빈 상태 문구가 안 떴다 */
32
+ ) : empty != null && Children.toArray(children).length === 0 ? (_jsx(PanelRow, { variant: "empty", children: empty })) : scrollable ? (_jsx("div", { className: cx('panel__body--scroll', scrollbarGutter === 'stable' && 'panel__body--gutter-stable'), children: children })) : children] }) }));
23
33
  }
24
34
  // ── PanelGrid ──────────────────────────────────────────────────────────────
25
35
  /** @public */
@@ -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 { useControlSize } from './controlSizeContext';
15
16
  import { CONTROL_SIZE } from './controlSize';
16
17
  import './Panel.css';
17
18
  const noop = () => { };
@@ -19,6 +20,9 @@ export function PanelRow(props) {
19
20
  // toggle 행의 라벨-스위치 연결용 id — 모든 variant에서 훅 호출 순서를 유지하기 위해
20
21
  // 조건부 return들보다 앞에서 무조건 호출한다 (사용하지 않는 variant에서는 그냥 버려짐)
21
22
  const uid = useId();
23
+ // 판이 내려 준 조절칸 크기(청 (419)) — 테두리 없는 판 48 · 있는 판 40, 판 밖이면 공용 수 `CONTROL_SIZE`(40).
24
+ // 줄이 제 값(`size`·`btnSize`)을 주면 그것이 이긴다. 훅이라 조건부 return 들보다 앞에 둔다.
25
+ const rowSize = useControlSize() ?? CONTROL_SIZE;
22
26
  // children 기반 하위 호환 모드
23
27
  if (!('variant' in props)) {
24
28
  const { label, sub, onClick, children, align = 'horizontal', icon, useFullWidth = false, required = false } = props;
@@ -78,27 +82,27 @@ export function PanelRow(props) {
78
82
  const p = props;
79
83
  // dropdown 행과 동일하게, PanelRow 왼쪽 라벨은 <label htmlFor>가 아닌 일반 div라서
80
84
  // SegmentedControl에 ariaLabel로 넘겨야 스크린리더가 이름 없는 라디오그룹으로 안내하지 않는다.
81
- right = _jsx(SegmentedControl, { options: p.options, value: p.value, onChange: p.onChange, size: p.size ?? CONTROL_SIZE, ariaLabel: label });
85
+ right = _jsx(SegmentedControl, { options: p.options, value: p.value, onChange: p.onChange, size: p.size ?? rowSize, ariaLabel: label });
82
86
  }
83
87
  else if (variant === 'dropdown') {
84
88
  const p = props;
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,
89
+ 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: rowSize, placeholder: d.placeholder, block: useFullWidth, error: !!error, ariaDescribedBy: errorId,
86
90
  // 한 행에 여러 개가 놓이므로 행 라벨만 넘기면 셋 다 "생년월일" 이라는 같은 이름이 된다.
87
91
  // aria-label 이 있으면 스크린리더는 트리거의 화면 텍스트(년/월/일)를 읽지 않으므로
88
92
  // 사용자는 어느 것이 무엇인지 구별할 수 없다 — placeholder 를 붙여 구별되게 한다.
89
93
  ariaLabel: d.ariaLabel ?? ([label, d.placeholder].filter(Boolean).join(' ') || undefined) }) }, i))) })) : (
90
94
  // PanelRow 왼쪽 라벨(panel-row__label)은 <label htmlFor>가 아니라 그냥 div라서 트리거 버튼과
91
95
  // 프로그래밍적으로 연결되지 않는다 — ariaLabel로 직접 이름을 넘긴다 (TextField의 ariaLabel과 동일 패턴)
92
- _jsx(Dropdown, { options: p.options ?? [], value: p.value ?? '', onChange: p.onChange ?? noop, size: CONTROL_SIZE, block: useFullWidth, error: !!error, ariaLabel: label, ariaDescribedBy: errorId }));
96
+ _jsx(Dropdown, { options: p.options ?? [], value: p.value ?? '', onChange: p.onChange ?? noop, size: rowSize, block: useFullWidth, error: !!error, ariaLabel: label, ariaDescribedBy: errorId }));
93
97
  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;
94
98
  }
95
99
  else if (variant === 'button') {
96
100
  const p = props;
97
101
  if (p.buttons?.length) {
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))) }));
102
+ right = (_jsx("div", { className: "panel-row__button-group", children: p.buttons.map((btn, i) => (_jsx(Button, { htmlType: "button", size: btn.btnSize ?? rowSize, variant: btn.btnVariant ?? 'default', disabled: btn.disabled, onClick: btn.onClick, children: btn.label }, i))) }));
99
103
  }
100
104
  else {
101
- right = (_jsx(Button, { htmlType: "button", size: p.btnSize ?? CONTROL_SIZE, variant: p.btnVariant ?? 'default', disabled: p.disabled, onClick: p.onClick, children: p.buttonLabel }));
105
+ right = (_jsx(Button, { htmlType: "button", size: p.btnSize ?? rowSize, variant: p.btnVariant ?? 'default', disabled: p.disabled, onClick: p.onClick, children: p.buttonLabel }));
102
106
  }
103
107
  }
104
108
  else if (variant === 'text') {
@@ -107,7 +111,7 @@ export function PanelRow(props) {
107
111
  }
108
112
  else if (variant === 'input') {
109
113
  const p = props;
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 })] }));
114
+ right = (_jsxs("div", { className: `panel-row__input-wrap${useFullWidth ? ' panel-row__input-wrap--full' : ''}`, children: [_jsx(TextField, { size: rowSize, 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 })] }));
111
115
  }
112
116
  else if (variant === 'custom') {
113
117
  const p = props;
@@ -49,6 +49,15 @@
49
49
  --color-main-a10: color-mix(in srgb, var(--color-main) 10%, transparent);
50
50
  --color-main-a20: color-mix(in srgb, var(--color-main) 20%, transparent);
51
51
  --color-sub-a10: color-mix(in srgb, var(--color-sub) 10%, transparent);
52
+ --color-on-brand-fill: #ffffff;
53
+ --color-card-edge: rgba(0, 0, 0, 0.06);
54
+ --color-control-edge: transparent;
55
+ /* 고대비 · 어두운 꼴에만 있는 이름은 '없음' 으로 되돌린다 — 쓰는 자리가 제 기본값으로 선다 */
56
+ --color-hc-edge: initial;
57
+ --color-on-gray-fill: #ffffff;
58
+ --color-main-ink: initial;
59
+ --color-error-ink: initial;
60
+ --color-like-ink: initial;
52
61
  }
53
62
 
54
63
  /* ── PassCard ─────────────────────────────────────────────────────── */
@@ -99,7 +99,7 @@ export default function ListPopup(props) {
99
99
  sortDir: col.sortable !== false && sortKey === col.key ? (sortAsc ? 'asc' : 'desc') : null,
100
100
  })), [columns, sortKey, sortAsc, handleSort]);
101
101
  const pageSizeOpts = useMemo(() => pageSizeOptions.map(n => ({ value: String(n), label: t('common.pageSizeLabel', { n }) })), [pageSizeOptions, t]);
102
- return (_jsxs(Popup, { className: `popup-list ${className}`, title: title, onClose: onClose, children: [topContent, 'label' in countParts && _jsx("p", { className: "toolbar__count body-1", children: countParts.label }), _jsx(Toolbar, { count: 'label' in countParts ? undefined : { value: filtered.length, prefix: countParts.prefix, suffix: countParts.suffix }, search: searchEnabled ? { value: search, onChange: setSearch, placeholder: resolvedSearchPlaceholder } : undefined, pageSize: { options: pageSizeOpts, value: pageSize, onChange: setPageSize }, pagination: { page: clampedPage, total: totalPages, onChange: setPage } }), _jsx(Table, { size: "medium", gridTemplateColumns: gridTemplateColumns, mobileGridTemplateColumns: mobileGridTemplateColumns,
102
+ return (_jsxs(Popup, { className: `popup-list ${className}`, title: title, onClose: onClose, children: [topContent, 'label' in countParts && _jsx("p", { className: "toolbar__count body-1", children: countParts.label }), _jsx(Toolbar, { count: 'label' in countParts ? undefined : { value: filtered.length, prefix: countParts.prefix, suffix: countParts.suffix }, search: searchEnabled ? { value: search, onChange: setSearch, placeholder: resolvedSearchPlaceholder } : undefined, pageSize: { options: pageSizeOpts, value: pageSize, onChange: setPageSize }, pagination: { page: clampedPage, total: totalPages, onChange: setPage } }), _jsx(Table, { gridTemplateColumns: gridTemplateColumns, mobileGridTemplateColumns: mobileGridTemplateColumns,
103
103
  /* 폭 조절은 켜고, 저장 열쇠는 **부르는 쪽이 고른다**((306), 2026-10-14).
104
104
 
105
105
  한때 여기서 **일부러 안 줬다** — *"창은 열 때마다 새로 짓는 것이라 폭이 따라다니면
@@ -218,7 +218,7 @@
218
218
 
219
219
  /* ── 폼 공용 오류 메시지 ──────────────────────────────────── */
220
220
  .form-field-error {
221
- color: var(--color-error);
221
+ color: var(--color-error-ink, var(--color-error));
222
222
  font-size: 13px;
223
223
  margin-bottom: 8px;
224
224
  padding: 6px 0;
@@ -61,5 +61,5 @@ export default function SaveTablePopup({ title, saveLabel, defaultName = '', def
61
61
  transform: `scale(${previewState.scale})`,
62
62
  top: previewState.offsetY,
63
63
  left: previewState.offsetX,
64
- }, children: preview }) })), _jsxs(Panel, { size: "medium", labelWidth: 64, useBorder: false, useRowBorder: false, children: [_jsx(PanelRow, { variant: "custom", label: t('wordTable.save.nameLabel', '이름'), required: true, align: "vertical", useFullWidth: true, children: _jsx(TextField, { required: true, value: name, onChange: setName, ariaLabel: t('wordTable.save.nameLabel', '이름'), placeholder: t('wordTable.save.placeholder', '이 단어표에 대한 제목을 입력하세요.'), maxLength: 40, size: 48, fullWidth: true, autoFocus: true, onEnter: handleEnter, error: isDuplicateName ? t('wordTable.save.duplicateName', '이미 사용 중인 이름입니다.') : undefined }) }), _jsx(PanelRow, { variant: "custom", label: t('wordTable.save.descriptionLabel', '설명'), align: "vertical", useFullWidth: true, children: _jsx(TextField, { value: description, onChange: setDescription, ariaLabel: t('wordTable.save.descriptionLabel', '설명'), placeholder: t('wordTable.save.descriptionPlaceholder', '이 단어표에 대한 설명을 입력하세요.'), maxLength: 200, multiline: true, rows: 3, fullWidth: true }) })] })] }) }));
64
+ }, children: preview }) })), _jsxs(Panel, { labelWidth: 64, useBorder: false, children: [_jsx(PanelRow, { variant: "custom", label: t('wordTable.save.nameLabel', '이름'), required: true, align: "vertical", useFullWidth: true, children: _jsx(TextField, { required: true, value: name, onChange: setName, ariaLabel: t('wordTable.save.nameLabel', '이름'), placeholder: t('wordTable.save.placeholder', '이 단어표에 대한 제목을 입력하세요.'), maxLength: 40, size: 48, fullWidth: true, autoFocus: true, onEnter: handleEnter, error: isDuplicateName ? t('wordTable.save.duplicateName', '이미 사용 중인 이름입니다.') : undefined }) }), _jsx(PanelRow, { variant: "custom", label: t('wordTable.save.descriptionLabel', '설명'), align: "vertical", useFullWidth: true, children: _jsx(TextField, { value: description, onChange: setDescription, ariaLabel: t('wordTable.save.descriptionLabel', '설명'), placeholder: t('wordTable.save.descriptionPlaceholder', '이 단어표에 대한 설명을 입력하세요.'), maxLength: 200, multiline: true, rows: 3, fullWidth: true }) })] })] }) }));
65
65
  }
@@ -171,10 +171,10 @@
171
171
  }
172
172
  .trp-row__answer-label.answer-correct { color: var(--color-lightGray); }
173
173
  .trp-row__answer-label.answer-selected.is-correct { color: var(--color-main); }
174
- .trp-row__answer-label.answer-selected.is-wrong { color: var(--color-error); }
174
+ .trp-row__answer-label.answer-selected.is-wrong { color: var(--color-error-ink, var(--color-error)); }
175
175
  .trp-row__answer-value { color: var(--color-black); }
176
176
  .trp-row__answer-value.is-correct { color: var(--color-main); }
177
- .trp-row__answer-value.is-wrong { color: var(--color-error); }
177
+ .trp-row__answer-value.is-wrong { color: var(--color-error-ink, var(--color-error)); }
178
178
 
179
179
  /* ── Footer ── (Popup의 .popup-footer 래퍼에 붙는다 — 스크롤과 무관하게 하단 고정) */
180
180
  .popup-footer.trp-result__foot {
@@ -23,8 +23,8 @@
23
23
  justify-content: center;
24
24
  }
25
25
 
26
- .progress-indicator-dot.done { background: var(--color-main); color: #ffffff; }
27
- .progress-indicator-dot.active { background: var(--color-sub); color: #ffffff; }
26
+ .progress-indicator-dot.done { background: var(--color-main); color: var(--color-on-brand-fill, #ffffff); }
27
+ .progress-indicator-dot.active { background: var(--color-sub); color: var(--color-on-brand-fill, #ffffff); }
28
28
 
29
29
  @media (max-width: 1024px)
30
30
  {
@@ -54,9 +54,9 @@
54
54
  /* ── 오류: 조건이 잘못됨 ── */
55
55
  .search-summary--error {
56
56
  background: var(--color-white);
57
- color: var(--color-error);
57
+ color: var(--color-error-ink, var(--color-error));
58
58
  }
59
59
  /* 오류 상태에서 강조 구절은 오류색으로(파란 강조가 빨간 박스에 섞이지 않도록) */
60
60
  .search-summary--error .search-summary__em {
61
- color: var(--color-error);
61
+ color: var(--color-error-ink, var(--color-error));
62
62
  }
@@ -29,6 +29,10 @@
29
29
  padding: 0;
30
30
  /* 줄바꿈 시 버튼이 container의 rounded corner 밖으로 나오지 않도록 */
31
31
  overflow: hidden;
32
+ /* 고대비에서만 띠의 테두리가 선다(`--color-control-edge`, 보통은 transparent — 말귀 청 395 ③).
33
+ outline 이라 칸 크기가 안 바뀐다. */
34
+ outline: 1px solid var(--color-control-edge, transparent);
35
+ outline-offset: -1px;
32
36
  }
33
37
  .segmented-control--pill { border-radius: 999px; }
34
38
  /* 여백이 없으니 판 모서리 = 단추 모서리 */
@@ -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 { useControlSize } from './controlSizeContext';
9
10
  import { CONTROL_SIZE } from './controlSize';
10
11
  /**
11
12
  * **이름을 안 준 고르개들** — 개발 중에 서로 부딪히는지 세기 위한 자리다(운영에서는 비어 있다).
@@ -25,7 +26,10 @@ export default function SegmentedControl(props) {
25
26
  const { t } = useTranslation();
26
27
  const { options = [],
27
28
  // 안 주면 **켜진** 첫 칸 — 꺼진 첫 칸이 골라져 있었다(Tabs 와 같게)
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 || {};
29
+ value = options.find((o) => !o.disabled)?.key ?? options[0]?.key, onChange = (_v) => { }, className = '', size: sizeProp, shape = 'pill', useBG = true, fullWidth = false, minButtonWidth, ariaLabel, } = props || {};
30
+ // 안 주면 가장 가까운 판 · 표의 값(청 (419)) — 그 밖이면 공용 수 `CONTROL_SIZE`(40)
31
+ const inheritedSize = useControlSize();
32
+ const size = sizeProp ?? inheritedSize ?? CONTROL_SIZE;
29
33
  /* **라디오 무리는 Tab 자리 하나 + 화살표**가 ARIA 규칙이다.
30
34
  `role="radiogroup"`·`role="radio"` 만 붙여 놓고 키를 안 만들면 **안 붙인 것보다
31
35
  나쁘다** — 낭독기가 "라디오 그룹, 3 중 2" 라고 읽어 주니 사람은 화살표를 누르는데