feat(input): expand Araso Han/Eng contractions, acronyms, typo recovery, and fast cursor-tail replacement

This commit is contained in:
Yun Chan 2026-10-28 10:41:26 +09:00
parent 51bf664302
commit f403111256
80 changed files with 1449 additions and 458 deletions

View file

@ -1,11 +1,11 @@
'use client'
// src/renderer/components/ds/InstrumentPanel.tsx
// v2 "Midnight Glass": 히어로 글래스 패널 — 앰비언트 그라디언트 배경 + 헤어라인.
// v1의 각인(engraving) props는 호환 유지하되 모서리 메타 라벨로 은은하게 렌더.
// v4 "조용한 계기": 평면 카드 표면 + 1px 보더.
// v1의 각인(engraving) props는 호환 유지하되 모서리 메타 라벨로 조용하게 렌더.
import { Box, Typography } from '@mui/material'
import { d3roPalette, d3roFontMono, d3roShadow, d3roRadius, d3roTypo } from '../../theme'
import { d3roPalette, d3roFontMono, d3roRadius, d3roTypo } from '../../theme'
interface InstrumentPanelProps {
children: React.ReactNode
@ -27,36 +27,11 @@ export function InstrumentPanel({
<Box
sx={{
position: 'relative',
bgcolor: d3roPalette.glass.surface,
backdropFilter: `blur(${d3roPalette.glass.blur})`,
bgcolor: d3roPalette.bg.card,
border: `1px solid ${d3roPalette.border.default}`,
borderRadius: d3roRadius.outer,
p: 3,
boxShadow: d3roShadow.glowCard,
overflow: 'hidden',
// 앰비언트 시인 (좌상단 라디얼 + 상단 광택 — theme sheen 토큰)
'&::before': {
content: '""',
position: 'absolute',
inset: 0,
borderRadius: 'inherit',
background: d3roPalette.glass.sheen,
pointerEvents: 'none',
zIndex: 1,
},
// 그라디언트 헤어라인 링
'&::after': {
content: '""',
position: 'absolute',
inset: 0,
borderRadius: 'inherit',
padding: '1px',
background: d3roPalette.glass.borderGradient,
WebkitMask: 'linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)',
WebkitMaskComposite: 'xor',
maskComposite: 'exclude',
pointerEvents: 'none',
zIndex: 2,
},
}}
>
{/* 모서리 메타 라벨 */}
@ -78,11 +53,9 @@ function Engraving({ children, sx }: { children: string; sx: Record<string, unkn
position: 'absolute',
fontSize: d3roTypo.engrave.size,
letterSpacing: d3roTypo.engrave.spacing,
color: d3roPalette.text.dimLabel,
opacity: 0.7,
color: d3roPalette.text.tertiary,
fontWeight: 500,
fontFamily: d3roFontMono,
textTransform: 'uppercase',
zIndex: 2,
userSelect: 'none',
...sx,

View file

@ -107,9 +107,10 @@ export function SegmentControl<T extends string = string>({
py: 0.15,
borderRadius: d3roRadius.pill,
bgcolor: isSelected ? d3roPalette.accent.dim : d3roPalette.bg.chassis,
color: isSelected ? d3roPalette.accent.light : d3roPalette.text.dimLabel,
fontSize: '10px',
color: isSelected ? d3roPalette.accent.light : d3roPalette.text.tertiary,
fontSize: '11px',
fontWeight: 500,
fontVariantNumeric: 'tabular-nums',
}}
>
{opt.badge}

View file

@ -350,6 +350,7 @@ export function buildCssVars(key: ThemeKey): Record<string, string> {
'--d3-text-primary': r.text.primary,
'--d3-text-secondary': r.text.secondary,
'--d3-text-tertiary': r.text.tertiary,
'--d3-text-inverse': r.accent.ink,
'--d3-text-label': r.text.label,
'--d3-text-disabled': r.text.disabled,
'--d3-text-engraving': r.text.engraving,