-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.ts
More file actions
120 lines (110 loc) · 5.28 KB
/
Copy pathindex.ts
File metadata and controls
120 lines (110 loc) · 5.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
// Render API (async — preserves microtask boundary from original)
export { default as render, renderSync, createRoot } from './root'
export type { RenderOptions, Instance, Root } from './root'
// Core components
export { default as Box } from './components/Box'
export { default as Text } from './components/Text'
export type { Props as TextProps } from './components/Text'
export { default as Spacer } from './components/Spacer'
export { default as Newline } from './components/Newline'
export { default as Link } from './components/Link'
export { default as Button } from './components/Button'
export { default as Draggable } from './components/Draggable'
export type {
DraggableProps,
DragPos,
DragBounds,
DragInfo,
} from './components/Draggable'
export { default as DropTarget } from './components/DropTarget'
export type { DropTargetProps, DropInfo } from './components/DropTarget'
export { default as Resizable } from './components/Resizable'
export type {
ResizableProps,
ResizeSize,
ResizeHandleDirection,
ResizeInfo,
} from './components/Resizable'
export { default as TextInput } from './components/TextInput/TextInput'
export type { TextInputProps } from './components/TextInput/TextInput'
export type { WordBoundaryMode, WrapHint } from './components/TextInput/wrap-math'
export { PasteEvent } from './events/paste-event'
export { default as FocusGroup } from './components/FocusGroup'
export type { FocusGroupProps, FocusGroupDirection } from './components/FocusGroup'
export { default as FocusRing } from './components/FocusRing'
export type { FocusRingProps } from './components/FocusRing'
export { default as Checkbox } from './components/Checkbox'
export type { CheckboxProps } from './components/Checkbox'
export { default as Radio } from './components/Radio'
export type { RadioProps } from './components/Radio'
export { default as ScrollBox } from './components/ScrollBox'
export type { ScrollBoxHandle } from './components/ScrollBox'
export { AlternateScreen } from './components/AlternateScreen'
export { RawAnsi } from './components/RawAnsi'
export { NoSelect } from './components/NoSelect'
export { default as ErrorOverview } from './components/ErrorOverview'
export { Ansi } from './Ansi'
// Theme hook stub (returns [themeName, setThemeName])
export function useTheme(): [string, (name: string) => void] {
return ['default', () => {}]
}
// Hooks
export { default as useInput } from './hooks/use-input'
export { default as useFocus } from './hooks/use-focus'
export type { UseFocusOptions, UseFocusResult } from './hooks/use-focus'
export { default as useFocusManager } from './hooks/use-focus-manager'
export type { UseFocusManagerResult } from './hooks/use-focus-manager'
export { default as useApp } from './hooks/use-app'
export { default as useClipboard } from './hooks/use-clipboard'
export type { ClipboardContextValue } from './components/ClipboardContext'
export { default as useStdin } from './hooks/use-stdin'
export { useTerminalFocus } from './hooks/use-terminal-focus'
export { useTerminalViewport } from './hooks/use-terminal-viewport'
export { useInterval, useAnimationTimer } from './hooks/use-interval'
export { useAnimationFrame } from './hooks/use-animation-frame'
export { useTerminalTitle } from './hooks/use-terminal-title'
export { useTabStatus } from './hooks/use-tab-status'
export type { TabStatusKind } from './hooks/use-tab-status'
export { useDeclaredCursor } from './hooks/use-declared-cursor'
export type { UseDeclaredCursorOptions } from './hooks/use-declared-cursor'
export type { CursorStyle } from './termio/dec'
export { useSearchHighlight } from './hooks/use-search-highlight'
export { useSelection, useHasSelection } from './hooks/use-selection'
// Contexts
export { default as AppContext } from './components/AppContext'
export { default as StdinContext } from './components/StdinContext'
export { TerminalSizeContext } from './components/TerminalSizeContext'
// DOM & layout
export type { DOMElement, DOMNode } from './dom'
export { default as measureElement } from './measure-element'
export { stringWidth } from './stringWidth'
export { wrapAnsi } from './wrapAnsi'
// Hit-testing — exposed so consumers can resolve "what element is at
// this cursor?" from inside a captured gesture's onMove handler (drop
// target detection, custom hover semantics, drag ghost positioning).
// Uses the same z-aware paint-order sort the renderer uses, so the
// element returned matches what's painted at that cell.
export { hitTest } from './hit-test'
// Color utilities
export { colorize, applyTextStyles, applyColor } from './colorize'
export type { ColorType } from './colorize'
// Events
export type { InputEvent } from './events/input-event'
export type { ClickEvent } from './events/click-event'
export type { FocusEvent } from './events/focus-event'
export type { KeyboardEvent } from './events/keyboard-event'
export type {
GestureHandlers,
MouseDownEvent,
MouseMoveEvent,
MouseUpEvent,
} from './events/mouse-event'
// Layout utilities
export { clamp } from './layout/geometry'
// Types
export type { Styles, Color, TextStyles } from './styles'
export type { BorderTextOptions } from './render-border'
export type { MatchPosition } from './render-to-screen'
export type { Key } from './events/input-event'
export type { ParsedKey } from './parse-keypress'
export type { Frame, FrameEvent } from './frame'