Repository navigation
v1.1.0
Minor Changes
-
Add
PasteFieldcompound component — a headless, fully accessible paste UI that mirrorsCopyFieldfor the paste side.New exports
PasteField— compound component withRoot,Label,Status,Zone,Triggersub-componentsusePasteField()— context hook for building custom sub-components insidePasteField.RootdefaultPasteFieldMessages— the default English messages objectusePasteDisplayStatus— flicker-free presentation hook for paste status (suppresses thereadingflash on fast pastes)DEFAULT_PASTE_PENDING_DELAY_MS/DEFAULT_PASTE_MIN_PENDING_MS— exported timing constants
PasteFieldhighlightsPasteField.Zone— a<div role="region">that accepts keyboardpasteevents and drag-and-drop, focusable by default (tabIndex=0)PasteField.Status— displays a human-readable label per paste status (idle → "Ready",reading → "Reading…",read → "Pasted",error → "Error")PasteField.Trigger— button that calls the Clipboard API; supports render-function children for full control- All parts carry
data-state(real),data-display-state(flicker-free), anddata-revealedattributes for CSS styling - Built-in
<LiveRegion>announces success and error messages to screen readers - Full SSR support,
alwaysVisibleprop, custommessagesoverrides,pendingDelayMs/minPendingMstiming controls - 44 new tests; 350 tests total, 100% coverage maintained