feat(input): expand Araso Han/Eng contractions, acronyms, typo recovery, and fast cursor-tail replacement
This commit is contained in:
parent
51bf664302
commit
f403111256
80 changed files with 1449 additions and 458 deletions
|
|
@ -22,10 +22,10 @@ export const C = {
|
|||
borderStrong: 'rgba(148, 180, 255, 0.24)',
|
||||
|
||||
// text
|
||||
dim: '#67789e',
|
||||
dim: '#7e8eb0',
|
||||
text: '#93a4c8',
|
||||
bright: '#eef2fb',
|
||||
muted: '#3c4763',
|
||||
muted: '#5c6b8a',
|
||||
|
||||
// accents & gradients
|
||||
accent: '#3b82f6',
|
||||
|
|
@ -46,31 +46,28 @@ export const C = {
|
|||
export const FONT_SANS = d3roFontSans
|
||||
export const FONT_MONO = d3roFontMono
|
||||
|
||||
/** High-End Double-Bezel Glass Panel Style */
|
||||
/** Flat Precision Panel Style (v4) */
|
||||
export const panelSx = {
|
||||
position: 'relative' as const,
|
||||
bgcolor: 'rgba(17, 26, 48, 0.65)',
|
||||
backdropFilter: 'blur(24px)',
|
||||
border: `1px solid ${C.border}`,
|
||||
borderRadius: '20px',
|
||||
bgcolor: C.card,
|
||||
border: `1px solid ${C.borderHl}`,
|
||||
borderRadius: '12px',
|
||||
overflow: 'hidden',
|
||||
boxShadow: '0 16px 40px rgba(3, 7, 18, 0.5), inset 0 1px 0 rgba(148, 180, 255, 0.08)',
|
||||
transition: 'border-color 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, transform 0.25s ease',
|
||||
boxShadow: 'none',
|
||||
transition: 'border-color 160ms cubic-bezier(0.22, 1, 0.36, 1)',
|
||||
'&:hover': {
|
||||
borderColor: C.borderHl,
|
||||
boxShadow: '0 20px 48px rgba(3, 7, 18, 0.6), inset 0 1px 0 rgba(148, 180, 255, 0.15)',
|
||||
borderColor: C.borderStrong,
|
||||
},
|
||||
}
|
||||
|
||||
/** Inner Glass Core Style (Double-Bezel nested architecture) */
|
||||
/** Inner Core Style (v4) */
|
||||
export const innerCoreSx = {
|
||||
position: 'relative' as const,
|
||||
borderRadius: '14px',
|
||||
bgcolor: 'rgba(13, 21, 38, 0.75)',
|
||||
backdropFilter: 'blur(16px)',
|
||||
borderRadius: '10px',
|
||||
bgcolor: C.inset,
|
||||
border: `1px solid ${C.border}`,
|
||||
p: 2.5,
|
||||
boxShadow: 'inset 0 2px 6px rgba(3, 7, 18, 0.5)',
|
||||
boxShadow: 'none',
|
||||
}
|
||||
|
||||
/** Interactive Table Style */
|
||||
|
|
@ -85,8 +82,7 @@ export const tableSx = {
|
|||
pb: 1.5,
|
||||
fontWeight: 500,
|
||||
fontSize: '11px',
|
||||
textTransform: 'uppercase' as const,
|
||||
letterSpacing: '0.08em',
|
||||
letterSpacing: 0,
|
||||
color: C.dim,
|
||||
textAlign: 'left' as const,
|
||||
borderBottom: `1px solid ${C.borderHl}`,
|
||||
|
|
@ -96,23 +92,23 @@ export const tableSx = {
|
|||
py: 1.75,
|
||||
textAlign: 'left' as const,
|
||||
color: C.text,
|
||||
bgcolor: 'rgba(17, 26, 48, 0.45)',
|
||||
bgcolor: C.card,
|
||||
borderTop: `1px solid ${C.border}`,
|
||||
borderBottom: `1px solid ${C.border}`,
|
||||
transition: 'all 0.15s cubic-bezier(0.16, 1, 0.3, 1)',
|
||||
transition: 'background-color 160ms cubic-bezier(0.22, 1, 0.36, 1), border-color 160ms cubic-bezier(0.22, 1, 0.36, 1), color 160ms cubic-bezier(0.22, 1, 0.36, 1)',
|
||||
'&:first-of-type': {
|
||||
borderLeft: `1px solid ${C.border}`,
|
||||
borderTopLeftRadius: '10px',
|
||||
borderBottomLeftRadius: '10px',
|
||||
borderTopLeftRadius: '8px',
|
||||
borderBottomLeftRadius: '8px',
|
||||
},
|
||||
'&:last-of-type': {
|
||||
borderRight: `1px solid ${C.border}`,
|
||||
borderTopRightRadius: '10px',
|
||||
borderBottomRightRadius: '10px',
|
||||
borderTopRightRadius: '8px',
|
||||
borderBottomRightRadius: '8px',
|
||||
},
|
||||
},
|
||||
'& tr:hover td': {
|
||||
bgcolor: 'rgba(26, 38, 68, 0.75)',
|
||||
bgcolor: C.cardHover,
|
||||
borderColor: C.borderHl,
|
||||
color: C.bright,
|
||||
},
|
||||
|
|
@ -126,35 +122,30 @@ export const filterBtnSx = (active: boolean) => ({
|
|||
fontFamily: FONT_SANS,
|
||||
fontSize: '11px',
|
||||
fontWeight: 500,
|
||||
letterSpacing: '0.04em',
|
||||
letterSpacing: 0,
|
||||
textTransform: 'none' as const,
|
||||
cursor: 'pointer',
|
||||
border: `1px solid ${active ? 'rgba(59, 130, 246, 0.4)' : C.border}`,
|
||||
bgcolor: active ? 'rgba(59, 130, 246, 0.16)' : 'rgba(17, 26, 48, 0.5)',
|
||||
border: `1px solid ${active ? 'rgba(59, 130, 246, 0.4)' : C.borderHl}`,
|
||||
bgcolor: active ? 'rgba(59, 130, 246, 0.16)' : C.card,
|
||||
color: active ? C.bright : C.dim,
|
||||
boxShadow: active ? '0 0 16px rgba(59, 130, 246, 0.25)' : 'none',
|
||||
backdropFilter: 'blur(12px)',
|
||||
boxShadow: 'none',
|
||||
'&:hover': {
|
||||
bgcolor: active ? 'rgba(59, 130, 246, 0.22)' : 'rgba(26, 38, 68, 0.8)',
|
||||
borderColor: active ? C.accentLight : C.borderHl,
|
||||
bgcolor: active ? 'rgba(59, 130, 246, 0.22)' : C.cardHover,
|
||||
borderColor: active ? C.accentLight : C.borderStrong,
|
||||
color: C.bright,
|
||||
transform: 'translateY(-1px)',
|
||||
},
|
||||
'&:active': {
|
||||
transform: 'translateY(0) scale(0.98)',
|
||||
},
|
||||
transition: 'all 0.15s cubic-bezier(0.16, 1, 0.3, 1)',
|
||||
transition: 'background-color 160ms cubic-bezier(0.22, 1, 0.36, 1), border-color 160ms cubic-bezier(0.22, 1, 0.36, 1), color 160ms cubic-bezier(0.22, 1, 0.36, 1)',
|
||||
})
|
||||
|
||||
/** Semantic Status Badge Style */
|
||||
export function statusBadgeSx(variant: 'green' | 'red' | 'orange' | 'blue' | 'purple' | 'cyan') {
|
||||
const colorMap = {
|
||||
green: { bg: 'rgba(16, 185, 129, 0.12)', fg: C.green400, border: 'rgba(16, 185, 129, 0.3)', glow: '0 0 12px rgba(16, 185, 129, 0.2)' },
|
||||
red: { bg: 'rgba(239, 68, 68, 0.12)', fg: C.red400, border: 'rgba(239, 68, 68, 0.3)', glow: '0 0 12px rgba(239, 68, 68, 0.2)' },
|
||||
orange: { bg: 'rgba(245, 158, 11, 0.12)', fg: C.orange400, border: 'rgba(245, 158, 11, 0.3)', glow: '0 0 12px rgba(245, 158, 11, 0.2)' },
|
||||
blue: { bg: 'rgba(59, 130, 246, 0.12)', fg: C.accentLight, border: 'rgba(59, 130, 246, 0.3)', glow: '0 0 12px rgba(59, 130, 246, 0.2)' },
|
||||
purple: { bg: 'rgba(139, 92, 246, 0.12)', fg: C.purple400, border: 'rgba(139, 92, 246, 0.3)', glow: '0 0 12px rgba(139, 92, 246, 0.2)' },
|
||||
cyan: { bg: 'rgba(6, 182, 212, 0.12)', fg: C.cyanLight, border: 'rgba(6, 182, 212, 0.3)', glow: '0 0 12px rgba(6, 182, 212, 0.2)' },
|
||||
green: { bg: 'rgba(16, 185, 129, 0.12)', fg: C.green400, border: 'rgba(16, 185, 129, 0.3)' },
|
||||
red: { bg: 'rgba(239, 68, 68, 0.12)', fg: C.red400, border: 'rgba(239, 68, 68, 0.3)' },
|
||||
orange: { bg: 'rgba(245, 158, 11, 0.12)', fg: C.orange400, border: 'rgba(245, 158, 11, 0.3)' },
|
||||
blue: { bg: 'rgba(59, 130, 246, 0.12)', fg: C.accentLight, border: 'rgba(59, 130, 246, 0.3)' },
|
||||
purple: { bg: 'rgba(139, 92, 246, 0.12)', fg: C.purple400, border: 'rgba(139, 92, 246, 0.3)' },
|
||||
cyan: { bg: 'rgba(6, 182, 212, 0.12)', fg: C.cyanLight, border: 'rgba(6, 182, 212, 0.3)' },
|
||||
}
|
||||
const c = colorMap[variant]
|
||||
return {
|
||||
|
|
@ -167,35 +158,30 @@ export function statusBadgeSx(variant: 'green' | 'red' | 'orange' | 'blue' | 'pu
|
|||
fontSize: '11px',
|
||||
fontFamily: FONT_SANS,
|
||||
fontWeight: 500,
|
||||
letterSpacing: '0.04em',
|
||||
letterSpacing: 0,
|
||||
bgcolor: c.bg,
|
||||
color: c.fg,
|
||||
border: `1px solid ${c.border}`,
|
||||
boxShadow: c.glow,
|
||||
backdropFilter: 'blur(8px)',
|
||||
boxShadow: 'none',
|
||||
}
|
||||
}
|
||||
|
||||
/** Primary Action Button Style with Gradient & Glow */
|
||||
/** Primary Action Button Style */
|
||||
export const primaryButtonSx = {
|
||||
background: 'linear-gradient(135deg, #1d4ed8 0%, #3b82f6 55%, #60a5fa 100%)',
|
||||
bgcolor: C.accentDark,
|
||||
color: '#ffffff',
|
||||
fontFamily: FONT_SANS,
|
||||
fontSize: '13px',
|
||||
fontWeight: 500,
|
||||
borderRadius: '10px',
|
||||
borderRadius: '8px',
|
||||
px: 2.5,
|
||||
py: 1,
|
||||
boxShadow: '0 0 0 1px rgba(59,130,246,0.35), 0 8px 24px rgba(37,99,235,0.35)',
|
||||
boxShadow: 'none',
|
||||
textTransform: 'none' as const,
|
||||
transition: 'all 0.2s cubic-bezier(0.16, 1, 0.3, 1)',
|
||||
transition: 'background-color 160ms cubic-bezier(0.22, 1, 0.36, 1)',
|
||||
'&:hover': {
|
||||
filter: 'brightness(1.12)',
|
||||
boxShadow: '0 0 0 1px rgba(96,165,250,0.5), 0 12px 32px rgba(59,130,246,0.5)',
|
||||
transform: 'translateY(-1px)',
|
||||
},
|
||||
'&:active': {
|
||||
transform: 'translateY(0) scale(0.98)',
|
||||
bgcolor: C.accent,
|
||||
boxShadow: 'none',
|
||||
},
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue