@ghia/react 0.0.0-stage → 0.11.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 (151) hide show
  1. package/LICENSE +201 -0
  2. package/dist/automation/client.d.ts +2 -0
  3. package/dist/automation/client.d.ts.map +1 -0
  4. package/dist/automation/client.js +2 -0
  5. package/dist/automation/client.js.map +1 -0
  6. package/dist/automation/index.d.ts +2 -0
  7. package/dist/automation/index.d.ts.map +1 -0
  8. package/dist/automation/index.js +2 -0
  9. package/dist/automation/index.js.map +1 -0
  10. package/dist/automation/protocol.d.ts +2 -0
  11. package/dist/automation/protocol.d.ts.map +1 -0
  12. package/dist/automation/protocol.js +2 -0
  13. package/dist/automation/protocol.js.map +1 -0
  14. package/dist/components/animate-presence.d.ts +35 -0
  15. package/dist/components/animate-presence.d.ts.map +1 -0
  16. package/dist/components/animate-presence.js +184 -0
  17. package/dist/components/animate-presence.js.map +1 -0
  18. package/dist/components/button.d.ts +32 -0
  19. package/dist/components/button.d.ts.map +1 -0
  20. package/dist/components/button.js +62 -0
  21. package/dist/components/button.js.map +1 -0
  22. package/dist/components/combobox.d.ts +63 -0
  23. package/dist/components/combobox.d.ts.map +1 -0
  24. package/dist/components/combobox.js +279 -0
  25. package/dist/components/combobox.js.map +1 -0
  26. package/dist/components/dialog.d.ts +49 -0
  27. package/dist/components/dialog.d.ts.map +1 -0
  28. package/dist/components/dialog.js +157 -0
  29. package/dist/components/dialog.js.map +1 -0
  30. package/dist/components/floating.d.ts +54 -0
  31. package/dist/components/floating.d.ts.map +1 -0
  32. package/dist/components/floating.js +199 -0
  33. package/dist/components/floating.js.map +1 -0
  34. package/dist/components/index.d.ts +135 -0
  35. package/dist/components/index.d.ts.map +1 -0
  36. package/dist/components/index.js +190 -0
  37. package/dist/components/index.js.map +1 -0
  38. package/dist/components/layout-group.d.ts +10 -0
  39. package/dist/components/layout-group.d.ts.map +1 -0
  40. package/dist/components/layout-group.js +10 -0
  41. package/dist/components/layout-group.js.map +1 -0
  42. package/dist/components/motion-config.d.ts +24 -0
  43. package/dist/components/motion-config.d.ts.map +1 -0
  44. package/dist/components/motion-config.js +31 -0
  45. package/dist/components/motion-config.js.map +1 -0
  46. package/dist/components/reorder.d.ts +44 -0
  47. package/dist/components/reorder.d.ts.map +1 -0
  48. package/dist/components/reorder.js +123 -0
  49. package/dist/components/reorder.js.map +1 -0
  50. package/dist/components/select.d.ts +61 -0
  51. package/dist/components/select.d.ts.map +1 -0
  52. package/dist/components/select.js +267 -0
  53. package/dist/components/select.js.map +1 -0
  54. package/dist/components/tooltip.d.ts +30 -0
  55. package/dist/components/tooltip.d.ts.map +1 -0
  56. package/dist/components/tooltip.js +138 -0
  57. package/dist/components/tooltip.js.map +1 -0
  58. package/dist/components/universal-style.d.ts +12 -0
  59. package/dist/components/universal-style.d.ts.map +1 -0
  60. package/dist/components/universal-style.js +45 -0
  61. package/dist/components/universal-style.js.map +1 -0
  62. package/dist/components/variant-context.d.ts +4 -0
  63. package/dist/components/variant-context.d.ts.map +1 -0
  64. package/dist/components/variant-context.js +4 -0
  65. package/dist/components/variant-context.js.map +1 -0
  66. package/dist/cpu-throttle.d.ts +3 -0
  67. package/dist/cpu-throttle.d.ts.map +1 -0
  68. package/dist/cpu-throttle.js +2 -0
  69. package/dist/cpu-throttle.js.map +1 -0
  70. package/dist/floating.d.ts +4 -0
  71. package/dist/floating.d.ts.map +1 -0
  72. package/dist/floating.js +3 -0
  73. package/dist/floating.js.map +1 -0
  74. package/dist/hooks/index.d.ts +6 -0
  75. package/dist/hooks/index.d.ts.map +1 -0
  76. package/dist/hooks/index.js +6 -0
  77. package/dist/hooks/index.js.map +1 -0
  78. package/dist/hooks/use-gpuix.d.ts +17 -0
  79. package/dist/hooks/use-gpuix.d.ts.map +1 -0
  80. package/dist/hooks/use-gpuix.js +22 -0
  81. package/dist/hooks/use-gpuix.js.map +1 -0
  82. package/dist/hooks/use-media-query.d.ts +15 -0
  83. package/dist/hooks/use-media-query.d.ts.map +1 -0
  84. package/dist/hooks/use-media-query.js +30 -0
  85. package/dist/hooks/use-media-query.js.map +1 -0
  86. package/dist/hooks/use-motion-value.d.ts +31 -0
  87. package/dist/hooks/use-motion-value.d.ts.map +1 -0
  88. package/dist/hooks/use-motion-value.js +105 -0
  89. package/dist/hooks/use-motion-value.js.map +1 -0
  90. package/dist/hooks/use-text-search.d.ts +16 -0
  91. package/dist/hooks/use-text-search.d.ts.map +1 -0
  92. package/dist/hooks/use-text-search.js +17 -0
  93. package/dist/hooks/use-text-search.js.map +1 -0
  94. package/dist/hooks/use-window-size.d.ts +11 -0
  95. package/dist/hooks/use-window-size.d.ts.map +1 -0
  96. package/dist/hooks/use-window-size.js +20 -0
  97. package/dist/hooks/use-window-size.js.map +1 -0
  98. package/dist/idle-gc.d.ts +3 -0
  99. package/dist/idle-gc.d.ts.map +1 -0
  100. package/dist/idle-gc.js +2 -0
  101. package/dist/idle-gc.js.map +1 -0
  102. package/dist/index.d.ts +47 -0
  103. package/dist/index.d.ts.map +1 -0
  104. package/dist/index.js +28 -0
  105. package/dist/index.js.map +1 -0
  106. package/dist/reconciler/event-registry.d.ts +10 -0
  107. package/dist/reconciler/event-registry.d.ts.map +1 -0
  108. package/dist/reconciler/event-registry.js +32 -0
  109. package/dist/reconciler/event-registry.js.map +1 -0
  110. package/dist/reconciler/host-config.d.ts +68 -0
  111. package/dist/reconciler/host-config.d.ts.map +1 -0
  112. package/dist/reconciler/host-config.js +539 -0
  113. package/dist/reconciler/host-config.js.map +1 -0
  114. package/dist/reconciler/index.d.ts +3 -0
  115. package/dist/reconciler/index.d.ts.map +1 -0
  116. package/dist/reconciler/index.js +3 -0
  117. package/dist/reconciler/index.js.map +1 -0
  118. package/dist/reconciler/motion-bindings.d.ts +5 -0
  119. package/dist/reconciler/motion-bindings.d.ts.map +1 -0
  120. package/dist/reconciler/motion-bindings.js +10 -0
  121. package/dist/reconciler/motion-bindings.js.map +1 -0
  122. package/dist/reconciler/portal.d.ts +24 -0
  123. package/dist/reconciler/portal.d.ts.map +1 -0
  124. package/dist/reconciler/portal.js +32 -0
  125. package/dist/reconciler/portal.js.map +1 -0
  126. package/dist/reconciler/reconciler.d.ts +14 -0
  127. package/dist/reconciler/reconciler.d.ts.map +1 -0
  128. package/dist/reconciler/reconciler.js +126 -0
  129. package/dist/reconciler/reconciler.js.map +1 -0
  130. package/dist/reconciler/renderer.d.ts +42 -0
  131. package/dist/reconciler/renderer.d.ts.map +1 -0
  132. package/dist/reconciler/renderer.js +320 -0
  133. package/dist/reconciler/renderer.js.map +1 -0
  134. package/dist/testing.d.ts +14 -0
  135. package/dist/testing.d.ts.map +1 -0
  136. package/dist/testing.js +43 -0
  137. package/dist/testing.js.map +1 -0
  138. package/dist/types/host.d.ts +215 -0
  139. package/dist/types/host.d.ts.map +1 -0
  140. package/dist/types/host.js +3 -0
  141. package/dist/types/host.js.map +1 -0
  142. package/dist/types/index.d.ts +2 -0
  143. package/dist/types/index.d.ts.map +1 -0
  144. package/dist/types/index.js +2 -0
  145. package/dist/types/index.js.map +1 -0
  146. package/jsx-dev-runtime.d.ts +143 -0
  147. package/jsx-dev-runtime.js +3 -0
  148. package/jsx-runtime.d.ts +145 -0
  149. package/jsx-runtime.js +1 -0
  150. package/package.json +102 -3
  151. package/README.md +0 -3
@@ -0,0 +1,215 @@
1
+ import type { Key, ReactNode, Ref } from "react";
2
+ import type { EventPayload } from "@ghia/native";
3
+ import { HOST_BINDING } from "@ghia/native/host";
4
+ import type { Animation, BoundingClientRect, ElementIdAllocator, ElementType, EventHandlerMap, FocusableElement, FormMethods, GetAnimationsOptions, FormProps as NativeFormProps, HostBinding, HostProps, ImagePixelsOptions, InputProps as NativeInputProps, LabelProps as NativeLabelProps, TextareaProps as NativeTextareaProps, ImgProps as NativeImgProps, NativeviewProps as NativeNativeviewProps, WebviewMethods, WebviewProps as NativeWebviewProps, SvgProps as NativeSvgProps, SvgCircleProps as NativeSvgCircleProps, SvgClipPathProps as NativeSvgClipPathProps, SvgDefsProps as NativeSvgDefsProps, SvgEllipseProps as NativeSvgEllipseProps, SvgGradientProps as NativeSvgGradientProps, SvgGroupProps as NativeSvgGroupProps, SvgLineProps as NativeSvgLineProps, SvgPathProps as NativeSvgPathProps, SvgPolyProps as NativeSvgPolyProps, SvgMaskProps as NativeSvgMaskProps, SvgRectProps as NativeSvgRectProps, SvgStopProps as NativeSvgStopProps, SvgSymbolProps as NativeSvgSymbolProps, SvgUseProps as NativeSvgUseProps, SvgTextProps as NativeSvgTextProps, SvgPatternProps as NativeSvgPatternProps, SvgMarkerProps as NativeSvgMarkerProps, SvgImageProps as NativeSvgImageProps, SvgTspanProps as NativeSvgTspanProps, SvgTextPathProps as NativeSvgTextPathProps, SvgFilterProps as NativeSvgFilterProps, SvgFilterPrimitiveProps as NativeSvgFilterPrimitiveProps, SvgFeBlendProps as NativeSvgFeBlendProps, SvgFeColorMatrixProps as NativeSvgFeColorMatrixProps, SvgFeComponentTransferProps as NativeSvgFeComponentTransferProps, SvgFeFuncProps as NativeSvgFeFuncProps, SvgFeCompositeProps as NativeSvgFeCompositeProps, SvgFeConvolveMatrixProps as NativeSvgFeConvolveMatrixProps, SvgFeDiffuseLightingProps as NativeSvgFeDiffuseLightingProps, SvgFeDisplacementMapProps as NativeSvgFeDisplacementMapProps, SvgFeDistantLightProps as NativeSvgFeDistantLightProps, SvgFeDropShadowProps as NativeSvgFeDropShadowProps, SvgFeFloodProps as NativeSvgFeFloodProps, SvgFeGaussianBlurProps as NativeSvgFeGaussianBlurProps, SvgFeImageProps as NativeSvgFeImageProps, SvgFeMergeProps as NativeSvgFeMergeProps, SvgFeMergeNodeProps as NativeSvgFeMergeNodeProps, SvgFeMorphologyProps as NativeSvgFeMorphologyProps, SvgFeOffsetProps as NativeSvgFeOffsetProps, SvgFePointLightProps as NativeSvgFePointLightProps, SvgFeSpecularLightingProps as NativeSvgFeSpecularLightingProps, SvgFeSpotLightProps as NativeSvgFeSpotLightProps, SvgFeTileProps as NativeSvgFeTileProps, SvgFeTurbulenceProps as NativeSvgFeTurbulenceProps, CodeProps as NativeCodeProps, DiffProps as NativeDiffProps, MarkdownProps as NativeMarkdownProps, AnchoredProps as NativeAnchoredProps, MotionBinding, MotionValueStyle, MutationRenderer, NativeRenderer, RootEventHandlers, TextControlSelection, ScrollableElement, WindowKeyEventHandlers } from "@ghia/native/host";
5
+ export * from "@ghia/native/host";
6
+ /** `onFocusIn` and `onFocusOut` do not exist in React, where `onFocus` and `onBlur` bubble. */
7
+ type ReactHostProps<Props> = Omit<Props, "onFocusIn" | "onFocusOut">;
8
+ export interface Props extends Omit<ReactHostProps<HostProps>, "style"> {
9
+ style?: MotionValueStyle;
10
+ key?: Key | null;
11
+ children?: ReactNode;
12
+ ref?: Ref<PublicInstance>;
13
+ }
14
+ export interface InputProps extends ReactHostProps<NativeInputProps> {
15
+ key?: Key | null;
16
+ children?: ReactNode;
17
+ ref?: Ref<TextControlInstance>;
18
+ }
19
+ export interface LabelProps extends ReactHostProps<NativeLabelProps> {
20
+ key?: Key | null;
21
+ children?: ReactNode;
22
+ ref?: Ref<PublicInstance>;
23
+ }
24
+ export interface FormProps extends ReactHostProps<NativeFormProps> {
25
+ key?: Key | null;
26
+ children?: ReactNode;
27
+ ref?: Ref<FormInstance>;
28
+ }
29
+ export interface TextareaProps extends ReactHostProps<NativeTextareaProps> {
30
+ key?: Key | null;
31
+ children?: ReactNode;
32
+ ref?: Ref<TextControlInstance>;
33
+ }
34
+ export interface ImgProps extends ReactHostProps<NativeImgProps> {
35
+ key?: Key | null;
36
+ children?: ReactNode;
37
+ ref?: Ref<ImgInstance>;
38
+ }
39
+ export interface WebviewProps extends ReactHostProps<NativeWebviewProps> {
40
+ key?: Key | null;
41
+ children?: ReactNode;
42
+ ref?: Ref<WebviewInstance>;
43
+ }
44
+ export interface NativeviewProps extends ReactHostProps<NativeNativeviewProps> {
45
+ key?: Key | null;
46
+ children?: ReactNode;
47
+ ref?: Ref<PublicInstance>;
48
+ }
49
+ export interface SvgProps extends ReactHostProps<NativeSvgProps> {
50
+ key?: Key | null;
51
+ children?: ReactNode;
52
+ ref?: Ref<PublicInstance>;
53
+ }
54
+ /** A shape inside an `<svg>`. React adds `key`, `children` and `ref`. */
55
+ type SvgShapeElementProps<Native> = Native & {
56
+ key?: Key | null;
57
+ children?: ReactNode;
58
+ ref?: Ref<PublicInstance>;
59
+ };
60
+ export type SvgPathProps = SvgShapeElementProps<NativeSvgPathProps>;
61
+ export type SvgCircleProps = SvgShapeElementProps<NativeSvgCircleProps>;
62
+ export type SvgEllipseProps = SvgShapeElementProps<NativeSvgEllipseProps>;
63
+ export type SvgRectProps = SvgShapeElementProps<NativeSvgRectProps>;
64
+ export type SvgLineProps = SvgShapeElementProps<NativeSvgLineProps>;
65
+ export type SvgPolyProps = SvgShapeElementProps<NativeSvgPolyProps>;
66
+ export type SvgGroupProps = SvgShapeElementProps<NativeSvgGroupProps>;
67
+ export type SvgDefsProps = SvgShapeElementProps<NativeSvgDefsProps>;
68
+ export type SvgGradientProps = SvgShapeElementProps<NativeSvgGradientProps>;
69
+ export type SvgStopProps = SvgShapeElementProps<NativeSvgStopProps>;
70
+ export type SvgClipPathProps = SvgShapeElementProps<NativeSvgClipPathProps>;
71
+ export type SvgMaskProps = SvgShapeElementProps<NativeSvgMaskProps>;
72
+ export type SvgUseProps = SvgShapeElementProps<NativeSvgUseProps>;
73
+ export type SvgSymbolProps = SvgShapeElementProps<NativeSvgSymbolProps>;
74
+ export type SvgPatternProps = SvgShapeElementProps<NativeSvgPatternProps>;
75
+ export type SvgMarkerProps = SvgShapeElementProps<NativeSvgMarkerProps>;
76
+ export type SvgImageProps = SvgShapeElementProps<NativeSvgImageProps>;
77
+ export type SvgTspanProps = SvgShapeElementProps<NativeSvgTspanProps>;
78
+ export type SvgTextPathProps = SvgShapeElementProps<NativeSvgTextPathProps>;
79
+ export type SvgFilterProps = SvgShapeElementProps<NativeSvgFilterProps>;
80
+ export type SvgFilterPrimitiveProps = SvgShapeElementProps<NativeSvgFilterPrimitiveProps>;
81
+ export type SvgFeBlendProps = SvgShapeElementProps<NativeSvgFeBlendProps>;
82
+ export type SvgFeColorMatrixProps = SvgShapeElementProps<NativeSvgFeColorMatrixProps>;
83
+ export type SvgFeComponentTransferProps = SvgShapeElementProps<NativeSvgFeComponentTransferProps>;
84
+ export type SvgFeFuncProps = SvgShapeElementProps<NativeSvgFeFuncProps>;
85
+ export type SvgFeCompositeProps = SvgShapeElementProps<NativeSvgFeCompositeProps>;
86
+ export type SvgFeConvolveMatrixProps = SvgShapeElementProps<NativeSvgFeConvolveMatrixProps>;
87
+ export type SvgFeDiffuseLightingProps = SvgShapeElementProps<NativeSvgFeDiffuseLightingProps>;
88
+ export type SvgFeDisplacementMapProps = SvgShapeElementProps<NativeSvgFeDisplacementMapProps>;
89
+ export type SvgFeDistantLightProps = SvgShapeElementProps<NativeSvgFeDistantLightProps>;
90
+ export type SvgFeDropShadowProps = SvgShapeElementProps<NativeSvgFeDropShadowProps>;
91
+ export type SvgFeFloodProps = SvgShapeElementProps<NativeSvgFeFloodProps>;
92
+ export type SvgFeGaussianBlurProps = SvgShapeElementProps<NativeSvgFeGaussianBlurProps>;
93
+ export type SvgFeImageProps = SvgShapeElementProps<NativeSvgFeImageProps>;
94
+ export type SvgFeMergeProps = SvgShapeElementProps<NativeSvgFeMergeProps>;
95
+ export type SvgFeMergeNodeProps = SvgShapeElementProps<NativeSvgFeMergeNodeProps>;
96
+ export type SvgFeMorphologyProps = SvgShapeElementProps<NativeSvgFeMorphologyProps>;
97
+ export type SvgFeOffsetProps = SvgShapeElementProps<NativeSvgFeOffsetProps>;
98
+ export type SvgFePointLightProps = SvgShapeElementProps<NativeSvgFePointLightProps>;
99
+ export type SvgFeSpecularLightingProps = SvgShapeElementProps<NativeSvgFeSpecularLightingProps>;
100
+ export type SvgFeSpotLightProps = SvgShapeElementProps<NativeSvgFeSpotLightProps>;
101
+ export type SvgFeTileProps = SvgShapeElementProps<NativeSvgFeTileProps>;
102
+ export type SvgFeTurbulenceProps = SvgShapeElementProps<NativeSvgFeTurbulenceProps>;
103
+ /**
104
+ * `<text>` is the host text element too, so its props are the host ones plus
105
+ * the SVG attributes the host element does not have.
106
+ */
107
+ export type SvgTextProps = Props & Omit<NativeSvgTextProps, keyof Props>;
108
+ export interface CodeProps extends ReactHostProps<NativeCodeProps> {
109
+ key?: Key | null;
110
+ children?: ReactNode;
111
+ ref?: Ref<PublicInstance>;
112
+ }
113
+ export interface DiffProps extends ReactHostProps<NativeDiffProps> {
114
+ key?: Key | null;
115
+ children?: ReactNode;
116
+ ref?: Ref<PublicInstance>;
117
+ }
118
+ export interface MarkdownProps extends ReactHostProps<NativeMarkdownProps> {
119
+ key?: Key | null;
120
+ children?: ReactNode;
121
+ ref?: Ref<PublicInstance>;
122
+ }
123
+ export interface AnchoredProps extends ReactHostProps<NativeAnchoredProps> {
124
+ key?: Key | null;
125
+ children?: ReactNode;
126
+ ref?: Ref<PublicInstance>;
127
+ }
128
+ export type VirtualListProps = import("@ghia/native/host").VirtualListProps & {
129
+ key?: Key | null;
130
+ children?: ReactNode;
131
+ ref?: Ref<PublicInstance>;
132
+ };
133
+ export interface Container {
134
+ nativeRenderer: NativeRenderer;
135
+ renderer: MutationRenderer;
136
+ ids: ElementIdAllocator;
137
+ eventHandlers: EventHandlerMap;
138
+ /** Element id to the motion values its style binds, released when the element is destroyed. */
139
+ motionBindings: Map<number, MotionBinding>;
140
+ /** Releases waiting for the mutation batch that stops the elements from reading the value. */
141
+ motionReleases: Array<() => void>;
142
+ /** Mounted host elements by id, for `document.activeElement`. A portal container shares its root's. */
143
+ instances: Map<number, Instance>;
144
+ windowKeyEventHandlers: WindowKeyEventHandlers;
145
+ windowKeyEventId: number;
146
+ windowSelectionEventId: number;
147
+ windowAppearanceEventId: number;
148
+ onEvent?: (event: EventPayload) => void;
149
+ /** Where an error native raises while applying a commit's mutations goes. */
150
+ onUncaughtError: (error: Error, errorInfo: {
151
+ componentStack?: string;
152
+ }) => void;
153
+ /**
154
+ * Set on a portal's container. Its children mount under this element instead
155
+ * of becoming the window's root. The container inherits everything else from
156
+ * the root container it was made from, so both share one mutation queue and
157
+ * one event map.
158
+ */
159
+ portalTarget?: Instance;
160
+ }
161
+ /** Host methods are attached when React hands out a ref, not per instance. */
162
+ export interface Instance extends Partial<FocusableElement> {
163
+ id: number;
164
+ type: ElementType;
165
+ props: Props;
166
+ /** The element this one is placed in; absent at the root of a window. */
167
+ parentId?: number;
168
+ setPointerCapture?(pointerId: number): void;
169
+ releasePointerCapture?(pointerId: number): void;
170
+ hasPointerCapture?(pointerId: number): boolean;
171
+ click?(): void;
172
+ requestPointerLock?(): void;
173
+ /**
174
+ * The border box in window coordinates, like the DOM. Pending changes are
175
+ * sent and laid out first, so it is never stale. An element with no box
176
+ * (not painted) reports a zero rect.
177
+ */
178
+ getBoundingClientRect?(): BoundingClientRect;
179
+ /**
180
+ * The CSS transitions, then the CSS animations, that are running, paused or
181
+ * in effect through a fill, as `Animation` objects. With `{ subtree: true }`
182
+ * the elements below are listed too. See `Animation`.
183
+ */
184
+ getAnimations?(options?: GetAnimationsOptions): Animation[];
185
+ [HOST_BINDING]?(): HostBinding | undefined;
186
+ }
187
+ export interface ImgInstance extends PublicInstance {
188
+ type: "img";
189
+ setImage(bytes: Buffer | Uint8Array): void;
190
+ setImagePixels(width: number, height: number, pixels: Buffer | Uint8Array, options?: ImagePixelsOptions): void;
191
+ }
192
+ /** The ref of a `<webview>`: Electron's `<webview>` methods. */
193
+ export interface WebviewInstance extends PublicInstance, WebviewMethods {
194
+ type: "webview";
195
+ }
196
+ /** The ref of an `<input>` or `<textarea>`: the DOM selection API. */
197
+ export interface TextControlInstance extends PublicInstance, TextControlSelection {
198
+ type: "input" | "textarea";
199
+ }
200
+ /** The ref of a `<form>`. */
201
+ export interface FormInstance extends PublicInstance, FormMethods {
202
+ type: "form";
203
+ }
204
+ export interface TextInstance {
205
+ id: number;
206
+ text: string;
207
+ parentId: number | null;
208
+ }
209
+ /** What a `ref` receives: the methods are attached before a ref sees the instance. */
210
+ export type PublicInstance = Instance & FocusableElement & ScrollableElement & Required<Pick<Instance, "getBoundingClientRect" | "getAnimations" | typeof HOST_BINDING>>;
211
+ export interface HostContext {
212
+ isInsideText: boolean;
213
+ }
214
+ export type { ElementIdAllocator, EventHandlerMap, NativeRenderer, RootEventHandlers };
215
+ //# sourceMappingURL=host.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"host.d.ts","sourceRoot":"","sources":["../../src/types/host.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAChD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAChD,OAAO,KAAK,EACV,SAAS,EACT,kBAAkB,EAClB,kBAAkB,EAClB,WAAW,EACX,eAAe,EACf,gBAAgB,EAChB,WAAW,EACX,oBAAoB,EACpB,SAAS,IAAI,eAAe,EAC5B,WAAW,EACX,SAAS,EACT,kBAAkB,EAClB,UAAU,IAAI,gBAAgB,EAC9B,UAAU,IAAI,gBAAgB,EAC9B,aAAa,IAAI,mBAAmB,EACpC,QAAQ,IAAI,cAAc,EAC1B,eAAe,IAAI,qBAAqB,EACxC,cAAc,EACd,YAAY,IAAI,kBAAkB,EAClC,QAAQ,IAAI,cAAc,EAC1B,cAAc,IAAI,oBAAoB,EACtC,gBAAgB,IAAI,sBAAsB,EAC1C,YAAY,IAAI,kBAAkB,EAClC,eAAe,IAAI,qBAAqB,EACxC,gBAAgB,IAAI,sBAAsB,EAC1C,aAAa,IAAI,mBAAmB,EACpC,YAAY,IAAI,kBAAkB,EAClC,YAAY,IAAI,kBAAkB,EAClC,YAAY,IAAI,kBAAkB,EAClC,YAAY,IAAI,kBAAkB,EAClC,YAAY,IAAI,kBAAkB,EAClC,YAAY,IAAI,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E,eAAe,EAAE,cAAc,EAAE,iBAAiB,EAAE,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { HOST_BINDING } from "@ghia/native/host";
2
+ export * from "@ghia/native/host";
3
+ //# sourceMappingURL=host.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"host.js","sourceRoot":"","sources":["../../src/types/host.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAgFhD,cAAc,mBAAmB,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from "./host.js";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from "./host.js";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA"}
@@ -0,0 +1,143 @@
1
+ /// GPUIX JSX dev-runtime types — mirrors jsx-runtime.d.ts for development builds.
2
+ ///
3
+ /// React 19's `react/jsx-dev-runtime` exports only `jsxDEV`, so the aliases here
4
+ /// must match jsx-dev-runtime.js instead of re-exporting `jsx` and `jsxs`.
5
+
6
+ import type * as React from "react"
7
+ import type {
8
+ AnchoredProps,
9
+ CodeProps,
10
+ DiffProps,
11
+ FormProps,
12
+ ImgProps,
13
+ InputProps,
14
+ LabelProps,
15
+ MarkdownProps,
16
+ NativeviewProps,
17
+ Props,
18
+ SvgCircleProps,
19
+ SvgClipPathProps,
20
+ SvgDefsProps,
21
+ SvgEllipseProps,
22
+ SvgGradientProps,
23
+ SvgGroupProps,
24
+ SvgLineProps,
25
+ SvgMaskProps,
26
+ SvgPathProps,
27
+ SvgPolyProps,
28
+ SvgProps,
29
+ SvgRectProps,
30
+ SvgStopProps,
31
+ SvgSymbolProps,
32
+ SvgUseProps,
33
+ WebviewProps,
34
+ SvgTextProps,
35
+ SvgPatternProps,
36
+ SvgMarkerProps,
37
+ SvgImageProps,
38
+ SvgTspanProps,
39
+ SvgTextPathProps,
40
+ SvgFilterProps,
41
+ SvgFeBlendProps,
42
+ SvgFeColorMatrixProps,
43
+ SvgFeComponentTransferProps,
44
+ SvgFeFuncProps,
45
+ SvgFeCompositeProps,
46
+ SvgFeConvolveMatrixProps,
47
+ SvgFeDiffuseLightingProps,
48
+ SvgFeDisplacementMapProps,
49
+ SvgFeDistantLightProps,
50
+ SvgFeDropShadowProps,
51
+ SvgFeFloodProps,
52
+ SvgFeGaussianBlurProps,
53
+ SvgFeImageProps,
54
+ SvgFeMergeProps,
55
+ SvgFeMergeNodeProps,
56
+ SvgFeMorphologyProps,
57
+ SvgFeOffsetProps,
58
+ SvgFePointLightProps,
59
+ SvgFeSpecularLightingProps,
60
+ SvgFeSpotLightProps,
61
+ SvgFeTileProps,
62
+ SvgFeTurbulenceProps,
63
+ TextareaProps,
64
+ VirtualListProps,
65
+ } from "./dist/types/host"
66
+
67
+ export { jsxDEV, jsxDEV as jsx, jsxDEV as jsxs, Fragment } from "react/jsx-dev-runtime"
68
+
69
+ export namespace JSX {
70
+ type ElementType = React.JSX.ElementType
71
+ type Element = React.JSX.Element
72
+ type ElementClass = React.JSX.ElementClass
73
+ type ElementAttributesProperty = React.JSX.ElementAttributesProperty
74
+ type ElementChildrenAttribute = React.JSX.ElementChildrenAttribute
75
+ type IntrinsicAttributes = React.JSX.IntrinsicAttributes
76
+ type IntrinsicClassAttributes<T> = React.JSX.IntrinsicClassAttributes<T>
77
+
78
+ interface IntrinsicElements {
79
+ div: Props
80
+ text: SvgTextProps
81
+ img: ImgProps
82
+ webview: WebviewProps
83
+ nativeview: NativeviewProps
84
+ svg: SvgProps
85
+ path: SvgPathProps
86
+ circle: SvgCircleProps
87
+ ellipse: SvgEllipseProps
88
+ rect: SvgRectProps
89
+ line: SvgLineProps
90
+ polyline: SvgPolyProps
91
+ polygon: SvgPolyProps
92
+ g: SvgGroupProps
93
+ defs: SvgDefsProps
94
+ linearGradient: SvgGradientProps
95
+ radialGradient: SvgGradientProps
96
+ stop: SvgStopProps
97
+ clipPath: SvgClipPathProps
98
+ mask: SvgMaskProps
99
+ use: SvgUseProps
100
+ symbol: SvgSymbolProps
101
+ pattern: SvgPatternProps
102
+ marker: SvgMarkerProps
103
+ image: SvgImageProps
104
+ tspan: SvgTspanProps
105
+ textPath: SvgTextPathProps
106
+ filter: SvgFilterProps
107
+ feBlend: SvgFeBlendProps
108
+ feColorMatrix: SvgFeColorMatrixProps
109
+ feComponentTransfer: SvgFeComponentTransferProps
110
+ feFuncR: SvgFeFuncProps
111
+ feFuncG: SvgFeFuncProps
112
+ feFuncB: SvgFeFuncProps
113
+ feFuncA: SvgFeFuncProps
114
+ feComposite: SvgFeCompositeProps
115
+ feConvolveMatrix: SvgFeConvolveMatrixProps
116
+ feDiffuseLighting: SvgFeDiffuseLightingProps
117
+ feDisplacementMap: SvgFeDisplacementMapProps
118
+ feDistantLight: SvgFeDistantLightProps
119
+ feDropShadow: SvgFeDropShadowProps
120
+ feFlood: SvgFeFloodProps
121
+ feGaussianBlur: SvgFeGaussianBlurProps
122
+ feImage: SvgFeImageProps
123
+ feMerge: SvgFeMergeProps
124
+ feMergeNode: SvgFeMergeNodeProps
125
+ feMorphology: SvgFeMorphologyProps
126
+ feOffset: SvgFeOffsetProps
127
+ fePointLight: SvgFePointLightProps
128
+ feSpecularLighting: SvgFeSpecularLightingProps
129
+ feSpotLight: SvgFeSpotLightProps
130
+ feTile: SvgFeTileProps
131
+ feTurbulence: SvgFeTurbulenceProps
132
+ canvas: Props
133
+ input: InputProps
134
+ textarea: TextareaProps
135
+ label: LabelProps
136
+ form: FormProps
137
+ anchored: AnchoredProps
138
+ code: CodeProps
139
+ diff: DiffProps
140
+ markdown: MarkdownProps
141
+ "virtual-list": VirtualListProps
142
+ }
143
+ }
@@ -0,0 +1,3 @@
1
+ // React 19's jsx-dev-runtime only exports jsxDEV (not jsx/jsxs).
2
+ // Re-export all variants so both prod and dev transforms work.
3
+ export { jsxDEV, jsxDEV as jsx, jsxDEV as jsxs, Fragment } from "react/jsx-dev-runtime"
@@ -0,0 +1,145 @@
1
+ /// GPUIX JSX runtime types — maps intrinsic elements to GPUIX Props
2
+ /// instead of DOM types. Activated via "jsxImportSource": "@ghia/react".
3
+ ///
4
+ /// `key` is declared on `Props`, not on `IntrinsicAttributes` below.
5
+ /// TypeScript 5 ignores `IntrinsicAttributes` for intrinsic elements.
6
+
7
+ import type * as React from "react"
8
+ import type {
9
+ AnchoredProps,
10
+ CodeProps,
11
+ DiffProps,
12
+ FormProps,
13
+ ImgProps,
14
+ InputProps,
15
+ LabelProps,
16
+ MarkdownProps,
17
+ NativeviewProps,
18
+ Props,
19
+ SvgCircleProps,
20
+ SvgClipPathProps,
21
+ SvgDefsProps,
22
+ SvgEllipseProps,
23
+ SvgGradientProps,
24
+ SvgGroupProps,
25
+ SvgLineProps,
26
+ SvgMaskProps,
27
+ SvgPathProps,
28
+ SvgPolyProps,
29
+ SvgProps,
30
+ SvgRectProps,
31
+ SvgStopProps,
32
+ SvgSymbolProps,
33
+ SvgUseProps,
34
+ WebviewProps,
35
+ SvgTextProps,
36
+ SvgPatternProps,
37
+ SvgMarkerProps,
38
+ SvgImageProps,
39
+ SvgTspanProps,
40
+ SvgTextPathProps,
41
+ SvgFilterProps,
42
+ SvgFeBlendProps,
43
+ SvgFeColorMatrixProps,
44
+ SvgFeComponentTransferProps,
45
+ SvgFeFuncProps,
46
+ SvgFeCompositeProps,
47
+ SvgFeConvolveMatrixProps,
48
+ SvgFeDiffuseLightingProps,
49
+ SvgFeDisplacementMapProps,
50
+ SvgFeDistantLightProps,
51
+ SvgFeDropShadowProps,
52
+ SvgFeFloodProps,
53
+ SvgFeGaussianBlurProps,
54
+ SvgFeImageProps,
55
+ SvgFeMergeProps,
56
+ SvgFeMergeNodeProps,
57
+ SvgFeMorphologyProps,
58
+ SvgFeOffsetProps,
59
+ SvgFePointLightProps,
60
+ SvgFeSpecularLightingProps,
61
+ SvgFeSpotLightProps,
62
+ SvgFeTileProps,
63
+ SvgFeTurbulenceProps,
64
+ TextareaProps,
65
+ VirtualListProps,
66
+ } from "./dist/types/host"
67
+
68
+ export { jsx, jsxs, Fragment } from "react/jsx-runtime"
69
+
70
+ export namespace JSX {
71
+ type ElementType = React.JSX.ElementType
72
+ type Element = React.JSX.Element
73
+ type ElementClass = React.JSX.ElementClass
74
+ type ElementAttributesProperty = React.JSX.ElementAttributesProperty
75
+ type ElementChildrenAttribute = React.JSX.ElementChildrenAttribute
76
+ type IntrinsicAttributes = React.JSX.IntrinsicAttributes
77
+ type IntrinsicClassAttributes<T> = React.JSX.IntrinsicClassAttributes<T>
78
+
79
+ interface IntrinsicElements {
80
+ div: Props
81
+ text: SvgTextProps
82
+ span: Props
83
+ img: ImgProps
84
+ webview: WebviewProps
85
+ nativeview: NativeviewProps
86
+ svg: SvgProps
87
+ path: SvgPathProps
88
+ circle: SvgCircleProps
89
+ ellipse: SvgEllipseProps
90
+ rect: SvgRectProps
91
+ line: SvgLineProps
92
+ polyline: SvgPolyProps
93
+ polygon: SvgPolyProps
94
+ g: SvgGroupProps
95
+ defs: SvgDefsProps
96
+ linearGradient: SvgGradientProps
97
+ radialGradient: SvgGradientProps
98
+ stop: SvgStopProps
99
+ clipPath: SvgClipPathProps
100
+ mask: SvgMaskProps
101
+ use: SvgUseProps
102
+ symbol: SvgSymbolProps
103
+ pattern: SvgPatternProps
104
+ marker: SvgMarkerProps
105
+ image: SvgImageProps
106
+ tspan: SvgTspanProps
107
+ textPath: SvgTextPathProps
108
+ filter: SvgFilterProps
109
+ feBlend: SvgFeBlendProps
110
+ feColorMatrix: SvgFeColorMatrixProps
111
+ feComponentTransfer: SvgFeComponentTransferProps
112
+ feFuncR: SvgFeFuncProps
113
+ feFuncG: SvgFeFuncProps
114
+ feFuncB: SvgFeFuncProps
115
+ feFuncA: SvgFeFuncProps
116
+ feComposite: SvgFeCompositeProps
117
+ feConvolveMatrix: SvgFeConvolveMatrixProps
118
+ feDiffuseLighting: SvgFeDiffuseLightingProps
119
+ feDisplacementMap: SvgFeDisplacementMapProps
120
+ feDistantLight: SvgFeDistantLightProps
121
+ feDropShadow: SvgFeDropShadowProps
122
+ feFlood: SvgFeFloodProps
123
+ feGaussianBlur: SvgFeGaussianBlurProps
124
+ feImage: SvgFeImageProps
125
+ feMerge: SvgFeMergeProps
126
+ feMergeNode: SvgFeMergeNodeProps
127
+ feMorphology: SvgFeMorphologyProps
128
+ feOffset: SvgFeOffsetProps
129
+ fePointLight: SvgFePointLightProps
130
+ feSpecularLighting: SvgFeSpecularLightingProps
131
+ feSpotLight: SvgFeSpotLightProps
132
+ feTile: SvgFeTileProps
133
+ feTurbulence: SvgFeTurbulenceProps
134
+ canvas: Props
135
+ input: InputProps
136
+ textarea: TextareaProps
137
+ label: LabelProps
138
+ form: FormProps
139
+ anchored: AnchoredProps
140
+ code: CodeProps
141
+ diff: DiffProps
142
+ markdown: MarkdownProps
143
+ "virtual-list": VirtualListProps
144
+ }
145
+ }
package/jsx-runtime.js ADDED
@@ -0,0 +1 @@
1
+ export { jsx, jsxs, Fragment } from "react/jsx-runtime"
package/package.json CHANGED
@@ -1,6 +1,105 @@
1
1
  {
2
2
  "name": "@ghia/react",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.11.0",
4
+ "license": "Apache-2.0",
5
+ "type": "module",
6
+ "main": "dist/index.js",
7
+ "types": "dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "import": "./dist/index.js",
12
+ "default": "./dist/index.js"
13
+ },
14
+ "./jsx-runtime": {
15
+ "types": "./jsx-runtime.d.ts",
16
+ "import": "./jsx-runtime.js",
17
+ "default": "./jsx-runtime.js"
18
+ },
19
+ "./jsx-dev-runtime": {
20
+ "types": "./jsx-dev-runtime.d.ts",
21
+ "import": "./jsx-dev-runtime.js",
22
+ "default": "./jsx-dev-runtime.js"
23
+ },
24
+ "./testing": {
25
+ "types": "./dist/testing.d.ts",
26
+ "import": "./dist/testing.js",
27
+ "default": "./dist/testing.js"
28
+ },
29
+ "./select": {
30
+ "types": "./dist/components/select.d.ts",
31
+ "import": "./dist/components/select.js",
32
+ "default": "./dist/components/select.js"
33
+ },
34
+ "./combobox": {
35
+ "types": "./dist/components/combobox.d.ts",
36
+ "import": "./dist/components/combobox.js",
37
+ "default": "./dist/components/combobox.js"
38
+ },
39
+ "./button": {
40
+ "types": "./dist/components/button.d.ts",
41
+ "import": "./dist/components/button.js",
42
+ "default": "./dist/components/button.js"
43
+ },
44
+ "./dialog": {
45
+ "types": "./dist/components/dialog.d.ts",
46
+ "import": "./dist/components/dialog.js",
47
+ "default": "./dist/components/dialog.js"
48
+ },
49
+ "./tooltip": {
50
+ "types": "./dist/components/tooltip.d.ts",
51
+ "import": "./dist/components/tooltip.js",
52
+ "default": "./dist/components/tooltip.js"
53
+ },
54
+ "./floating": {
55
+ "types": "./dist/floating.d.ts",
56
+ "import": "./dist/floating.js",
57
+ "default": "./dist/floating.js"
58
+ },
59
+ "./automation": {
60
+ "types": "./dist/automation/index.d.ts",
61
+ "import": "./dist/automation/index.js",
62
+ "default": "./dist/automation/index.js"
63
+ }
64
+ },
65
+ "files": [
66
+ "dist",
67
+ "jsx-runtime.js",
68
+ "jsx-runtime.d.ts",
69
+ "jsx-dev-runtime.js",
70
+ "jsx-dev-runtime.d.ts",
71
+ "LICENSE"
72
+ ],
73
+ "repository": {
74
+ "type": "git",
75
+ "url": "git+https://github.com/fdarian/ghia.git",
76
+ "directory": "packages/react"
77
+ },
78
+ "publishConfig": {
79
+ "registry": "https://registry.npmjs.org/",
80
+ "access": "public"
81
+ },
82
+ "dependencies": {
83
+ "@ghia/native": "^0.11.0",
84
+ "react-reconciler": "^0.33.0"
85
+ },
86
+ "peerDependencies": {
87
+ "react": "^19.2.0"
88
+ },
89
+ "devDependencies": {
90
+ "@testing-library/react": "^16.3.2",
91
+ "@types/node": "^25.3.3",
92
+ "@types/react": "^19.2.0",
93
+ "@types/react-reconciler": "^0.28.0",
94
+ "react-refresh": "^0.18.0",
95
+ "typescript": "^5.3.0",
96
+ "vitest": "^4.0.18"
97
+ },
98
+ "scripts": {
99
+ "build": "tsc",
100
+ "clean": "rm -rf dist tsconfig.tsbuildinfo",
101
+ "dev": "tsc --watch",
102
+ "test": "vitest run",
103
+ "test:watch": "vitest"
104
+ }
6
105
  }
package/README.md DELETED
@@ -1,3 +0,0 @@
1
- # Temporary Holding Version
2
-
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.