react-native-gtkx 0.1.0-alpha.4 → 0.2.0-alpha.1

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 (176) hide show
  1. package/README.md +12 -8
  2. package/dist/adw/index.d.ts +3 -0
  3. package/dist/adw/index.js +41 -0
  4. package/dist/adw/index.js.map +1 -0
  5. package/dist/adw/widgets.generated.d.ts +63 -0
  6. package/dist/adw/widgets.generated.js +125 -0
  7. package/dist/adw/widgets.generated.js.map +1 -0
  8. package/dist/common/content.d.ts +69 -0
  9. package/dist/common/content.js +84 -0
  10. package/dist/common/content.js.map +1 -0
  11. package/dist/common/index.d.ts +3 -0
  12. package/dist/common/index.js +19 -0
  13. package/dist/common/index.js.map +1 -0
  14. package/dist/common/navigation-stack.d.ts +84 -0
  15. package/dist/common/navigation-stack.js +313 -0
  16. package/dist/common/navigation-stack.js.map +1 -0
  17. package/dist/common/widget.d.ts +83 -0
  18. package/dist/common/widget.js +142 -0
  19. package/dist/common/widget.js.map +1 -0
  20. package/dist/components/animated.d.ts +3 -2
  21. package/dist/components/animated.js +85 -66
  22. package/dist/components/animated.js.map +1 -1
  23. package/dist/components/app-registry.d.ts +10 -1
  24. package/dist/components/app-registry.js +8 -3
  25. package/dist/components/app-registry.js.map +1 -1
  26. package/dist/components/pressable.js +105 -12
  27. package/dist/components/pressable.js.map +1 -1
  28. package/dist/components/rect-store.d.ts +11 -1
  29. package/dist/components/rect-store.js +27 -3
  30. package/dist/components/rect-store.js.map +1 -1
  31. package/dist/components/svg/animated-support.d.ts +19 -0
  32. package/dist/components/svg/animated-support.js +64 -0
  33. package/dist/components/svg/animated-support.js.map +1 -0
  34. package/dist/components/svg/context.d.ts +8 -0
  35. package/dist/components/svg/context.js +15 -0
  36. package/dist/components/svg/context.js.map +1 -0
  37. package/dist/components/svg/gradients.d.ts +31 -0
  38. package/dist/components/svg/gradients.js +93 -0
  39. package/dist/components/svg/gradients.js.map +1 -0
  40. package/dist/components/svg/group.d.ts +8 -0
  41. package/dist/components/svg/group.js +30 -0
  42. package/dist/components/svg/group.js.map +1 -0
  43. package/dist/components/svg/index.d.ts +6 -0
  44. package/dist/components/svg/index.js +5 -0
  45. package/dist/components/svg/index.js.map +1 -0
  46. package/dist/components/svg/node.d.ts +7 -0
  47. package/dist/components/svg/node.js +7 -0
  48. package/dist/components/svg/node.js.map +1 -0
  49. package/dist/components/svg/paint.d.ts +24 -0
  50. package/dist/components/svg/paint.js +57 -0
  51. package/dist/components/svg/paint.js.map +1 -0
  52. package/dist/components/svg/shapes.d.ts +47 -0
  53. package/dist/components/svg/shapes.js +51 -0
  54. package/dist/components/svg/shapes.js.map +1 -0
  55. package/dist/components/svg/svg.d.ts +14 -0
  56. package/dist/components/svg/svg.js +48 -0
  57. package/dist/components/svg/svg.js.map +1 -0
  58. package/dist/components/svg/use-shape-node.d.ts +12 -0
  59. package/dist/components/svg/use-shape-node.js +52 -0
  60. package/dist/components/svg/use-shape-node.js.map +1 -0
  61. package/dist/components/text.js +11 -2
  62. package/dist/components/text.js.map +1 -1
  63. package/dist/components/use-layout-child.js +47 -4
  64. package/dist/components/use-layout-child.js.map +1 -1
  65. package/dist/contracts.d.ts +12 -1
  66. package/dist/contracts.js.map +1 -1
  67. package/dist/gtk/index.d.ts +6 -0
  68. package/dist/gtk/index.js +39 -0
  69. package/dist/gtk/index.js.map +1 -0
  70. package/dist/gtk/widgets.generated.d.ts +103 -0
  71. package/dist/gtk/widgets.generated.js +206 -0
  72. package/dist/gtk/widgets.generated.js.map +1 -0
  73. package/dist/gtkx/bridge/index.d.ts +9 -4
  74. package/dist/gtkx/bridge/index.js +40 -4
  75. package/dist/gtkx/bridge/index.js.map +1 -1
  76. package/dist/gtkx/bridge/layout-manager.d.ts +2 -1
  77. package/dist/gtkx/bridge/layout-manager.js +31 -9
  78. package/dist/gtkx/bridge/layout-manager.js.map +1 -1
  79. package/dist/gtkx/bridge/svg-node.d.ts +79 -0
  80. package/dist/gtkx/bridge/svg-node.js +367 -0
  81. package/dist/gtkx/bridge/svg-node.js.map +1 -0
  82. package/dist/gtkx/bridge/use-signal.js +18 -8
  83. package/dist/gtkx/bridge/use-signal.js.map +1 -1
  84. package/dist/gtkx/bridge/widgets.generated.d.ts +2 -0
  85. package/dist/gtkx/bridge/widgets.generated.js +14 -0
  86. package/dist/gtkx/bridge/widgets.generated.js.map +1 -0
  87. package/dist/mcp/bin.d.ts +2 -0
  88. package/dist/mcp/bin.js +17 -0
  89. package/dist/mcp/bin.js.map +1 -0
  90. package/dist/mcp/data/generated.d.ts +1282 -0
  91. package/dist/mcp/data/generated.js +1148 -0
  92. package/dist/mcp/data/generated.js.map +1 -0
  93. package/dist/mcp/index.d.ts +5 -0
  94. package/dist/mcp/index.js +9 -0
  95. package/dist/mcp/index.js.map +1 -0
  96. package/dist/mcp/list.d.ts +4 -0
  97. package/dist/mcp/list.js +56 -0
  98. package/dist/mcp/list.js.map +1 -0
  99. package/dist/mcp/resolve.d.ts +55 -0
  100. package/dist/mcp/resolve.js +151 -0
  101. package/dist/mcp/resolve.js.map +1 -0
  102. package/dist/mcp/search.d.ts +13 -0
  103. package/dist/mcp/search.js +48 -0
  104. package/dist/mcp/search.js.map +1 -0
  105. package/dist/mcp/server.d.ts +7 -0
  106. package/dist/mcp/server.js +135 -0
  107. package/dist/mcp/server.js.map +1 -0
  108. package/dist/mcp/tool.d.ts +21 -0
  109. package/dist/mcp/tool.js +36 -0
  110. package/dist/mcp/tool.js.map +1 -0
  111. package/dist/metro/index.js +10 -0
  112. package/dist/metro/index.js.map +1 -1
  113. package/dist/navigation/index.d.ts +50 -13
  114. package/dist/navigation/index.js +183 -148
  115. package/dist/navigation/index.js.map +1 -1
  116. package/dist/navigation/option-warnings.js +9 -1
  117. package/dist/navigation/option-warnings.js.map +1 -1
  118. package/dist/navigation/sidebar.d.ts +177 -9
  119. package/dist/navigation/sidebar.js +284 -10
  120. package/dist/navigation/sidebar.js.map +1 -1
  121. package/dist/runner/index.d.ts +22 -2
  122. package/dist/runner/index.js +163 -13
  123. package/dist/runner/index.js.map +1 -1
  124. package/dist/sea/assemble.d.ts +29 -0
  125. package/dist/sea/assemble.js +129 -0
  126. package/dist/sea/assemble.js.map +1 -0
  127. package/dist/sea/bundle.d.ts +61 -0
  128. package/dist/sea/bundle.js +202 -0
  129. package/dist/sea/bundle.js.map +1 -0
  130. package/dist/sea/gtkx-config-module.d.ts +18 -0
  131. package/dist/sea/gtkx-config-module.js +67 -0
  132. package/dist/sea/gtkx-config-module.js.map +1 -0
  133. package/dist/sea/native-shim.d.ts +40 -0
  134. package/dist/sea/native-shim.js +121 -0
  135. package/dist/sea/native-shim.js.map +1 -0
  136. package/dist/sea/react-anchor-plugin.d.ts +2 -0
  137. package/dist/sea/react-anchor-plugin.js +30 -0
  138. package/dist/sea/react-anchor-plugin.js.map +1 -0
  139. package/dist/style/index.d.ts +1 -0
  140. package/dist/style/index.js +1 -0
  141. package/dist/style/index.js.map +1 -1
  142. package/dist/style/split-style.js +2 -2
  143. package/dist/style/split-style.js.map +1 -1
  144. package/dist/style/transform.d.ts +22 -0
  145. package/dist/style/transform.js +137 -0
  146. package/dist/style/transform.js.map +1 -0
  147. package/dist/style/visual-css.js +3 -2
  148. package/dist/style/visual-css.js.map +1 -1
  149. package/dist/svg/geometry.d.ts +19 -0
  150. package/dist/svg/geometry.js +80 -0
  151. package/dist/svg/geometry.js.map +1 -0
  152. package/dist/svg/gradient-geometry.d.ts +15 -0
  153. package/dist/svg/gradient-geometry.js +18 -0
  154. package/dist/svg/gradient-geometry.js.map +1 -0
  155. package/dist/svg/transform.d.ts +22 -0
  156. package/dist/svg/transform.js +74 -0
  157. package/dist/svg/transform.js.map +1 -0
  158. package/dist/svg/view-box.d.ts +34 -0
  159. package/dist/svg/view-box.js +108 -0
  160. package/dist/svg/view-box.js.map +1 -0
  161. package/dist/svg-compat/index.d.ts +1 -0
  162. package/dist/svg-compat/index.js +16 -0
  163. package/dist/svg-compat/index.js.map +1 -0
  164. package/dist/testing/index.d.ts +14 -0
  165. package/dist/testing/index.js +14 -0
  166. package/dist/testing/index.js.map +1 -0
  167. package/dist/vite/index.d.ts +7 -3
  168. package/dist/vite/index.js +15 -3
  169. package/dist/vite/index.js.map +1 -1
  170. package/dist/vitest/index.d.ts +52 -0
  171. package/dist/vitest/index.js +58 -0
  172. package/dist/vitest/index.js.map +1 -0
  173. package/dist/vitest/setup.d.ts +4 -0
  174. package/dist/vitest/setup.js +22 -0
  175. package/dist/vitest/setup.js.map +1 -0
  176. package/package.json +47 -8
package/README.md CHANGED
@@ -44,15 +44,13 @@ And the portability proof — `examples/profile` renders ONE source file with bo
44
44
  - [x] **Fast Refresh on both toolchains**: `run-linux --dev` (Metro dev server + HMR in the GTK host, state preserved) and `gtkx dev` (vite)
45
45
  - [x] **Navigation on real Adwaita widgets**: react-navigation navigators backed by `Adw.NavigationView` and `Adw.NavigationSplitView` — see below
46
46
 
47
- Verified live: `examples/hn-app` (a Hacker News reader on the Metro path), `examples/gallery` (the whole surface) and the interactive `examples/playground` — 448 tests (unit + component tests under headless Wayland).
47
+ Verified live: `examples/hn-app` (a Hacker News reader on the Metro path), `examples/gallery` (the whole surface), the interactive `examples/playground`, and `examples/tasks-app` (a full GNOME task manager a port of the [gtkx tutorial](https://gtkx.dev/tutorial/)'s Tasks app, and the platform's most demanding app so far) — 732 tests (unit + component tests under headless Wayland).
48
48
 
49
49
  ## Navigation is native, not redrawn
50
50
 
51
51
  ```tsx
52
- import {
53
- createStackNavigator,
54
- NavigationContainer,
55
- } from "react-native-gtkx/navigation"
52
+ import { NavigationContainer } from "@react-navigation/native"
53
+ import { createStackNavigator } from "react-native-gtkx/navigation"
56
54
  ```
57
55
 
58
56
  Screens are real `Adw.NavigationPage`s inside an `Adw.NavigationView`, and
@@ -74,8 +72,13 @@ to the JS drawer; react-native-macos is not supported by it at all, because
74
72
  AppKit has no navigation-stack primitive to bind to. GTK4/libadwaita does have
75
73
  one, so the model here is the iOS `native-stack` one:
76
74
  [docs/research/navigation-extensibility.md](https://github.com/itsmepetrov/react-native-gtkx/blob/main/docs/research/navigation-extensibility.md)
77
- maps every native-stack option against what we support, what is coming, and
78
- what is meaningless on a desktop.
75
+ lays out the split, what an app can reach, and what is meaningless on a
76
+ desktop.
77
+
78
+ Underneath it, [`react-native-gtkx/gtk` and `react-native-gtkx/adw`](https://github.com/itsmepetrov/react-native-gtkx/blob/main/docs/platform-layer.md) exposes the
79
+ widgets themselves — including a navigation stack that needs no router at
80
+ all, and GTK widgets that take a React Native `style` for position and
81
+ appearance. react-navigation is a convenience here, not the ceiling.
79
82
 
80
83
  ## Performance architecture
81
84
 
@@ -99,7 +102,8 @@ docs/research/layout-manager.md).
99
102
 
100
103
  - [Getting Started](https://github.com/itsmepetrov/react-native-gtkx/blob/main/docs/getting-started.md) — a new project in a minute, and adding Linux to an existing RN app;
101
104
  - [API v1](https://github.com/itsmepetrov/react-native-gtkx/blob/main/docs/api.md) — the full surface and differences from RN;
102
- - [Navigation research](https://github.com/itsmepetrov/react-native-gtkx/blob/main/docs/research/navigation-extensibility.md) — every native-stack option mapped, how an existing react-navigation app ports, and why the other desktop RN platforms never got native navigation;
105
+ - [The platform layer](https://github.com/itsmepetrov/react-native-gtkx/blob/main/docs/platform-layer.md) — `react-native-gtkx/gtk` and `react-native-gtkx/adw`: Adwaita and GTK widgets as React components, driven by React Native style, usable with your own router or none at all;
106
+ - [Navigation research](https://github.com/itsmepetrov/react-native-gtkx/blob/main/docs/research/navigation-extensibility.md) — the two layers, how an existing react-navigation app ports, and why the other desktop RN platforms never got native navigation;
103
107
  - [What we need from gtkx](https://github.com/itsmepetrov/react-native-gtkx/blob/main/docs/upstream-gtkx.md) — the standing upstream agenda (bugs with repros, API asks, workarounds we want to delete);
104
108
  - [CONTRIBUTING](https://github.com/itsmepetrov/react-native-gtkx/blob/main/CONTRIBUTING.md) — developing the library (from macOS — via the UTM VM).
105
109
 
@@ -0,0 +1,3 @@
1
+ export * from "./widgets.generated";
2
+ export { Adw } from "../gtkx/bridge/index";
3
+ export { AdwBreakpoint, AdwShortcutsItem, AdwShortcutsSection, AdwToggle, } from "../gtkx/bridge/index";
@@ -0,0 +1,41 @@
1
+ // react-native-gtkx/adw — libadwaita widgets as React components.
2
+ //
3
+ // The Adwaita half of the platform layer; its GTK counterpart is
4
+ // react-native-gtkx/gtk, and what we wrote ourselves lives in
5
+ // react-native-gtkx/common (NavigationStack, SlotContent, wrapReactNative). Nothing here
6
+ // imports react-navigation.
7
+ //
8
+ // NAMING, one rule across both subpaths: a name carrying a `Gtk` or `Adw`
9
+ // prefix IS that widget, as gtkx binds it. A name without a prefix is ours.
10
+ //
11
+ // The layering mirrors the React Native ecosystem: react-native-screens
12
+ // exposes primitives, @react-navigation/native-stack binds them to a router.
13
+ // Here, this subpath exposes primitives and react-native-gtkx/navigation
14
+ // binds them to react-navigation. You can skip the binding entirely — drive
15
+ // NavigationStack from useState, from your own router, from anything.
16
+ // The raw widgets, exactly as gtkx binds them — every GObject property and
17
+ // signal, including ones added after this file was written.
18
+ //
19
+ // AdwNavigationView and AdwNavigationPage are the imperative originals:
20
+ // NavigationStack above is a declarative alternative, NOT a replacement, and
21
+ // a standard widget must never become unreachable because we wrapped it.
22
+ // The full Adwaita widget surface lives in a generated file: every
23
+ // Adw.Widget subclass gtkx binds, wrapped so React Native drives it. The raw
24
+ // AdwNavigationView and AdwNavigationPage are in there too — NavigationStack
25
+ // in react-native-gtkx/common is a declarative alternative, never a
26
+ // replacement, and a standard widget must stay reachable.
27
+ export * from "./widgets.generated";
28
+ // Exported as a value: it carries both the enums you need at runtime and the
29
+ // types you need for refs — `useRef<Adw.NavigationView | null>(null)`.
30
+ export { Adw } from "../gtkx/bridge/index";
31
+ // Auxiliary JSX elements that are not Adw.Widget subclasses, so the
32
+ // generated widget surface above never sees them: a responsive breakpoint
33
+ // (the `breakpoints` prop of AdwApplicationWindow/AdwBreakpointBin/AdwDialog
34
+ // takes one of these as a child) and the two leaf elements a
35
+ // AdwShortcutsDialog's AdwShortcutsSection is built from. See
36
+ // docs/platform-layer.md "Unwrapped by necessity" and "Two ways to react
37
+ // to size" — createSidebarNavigator's own collapse
38
+ // (src/navigation/sidebar.tsx) pairs AdwBreakpoint with AdwBreakpointBin
39
+ // (a real widget, wrapped above) to scope a breakpoint to a subtree.
40
+ export { AdwBreakpoint, AdwShortcutsItem, AdwShortcutsSection, AdwToggle, } from "../gtkx/bridge/index";
41
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/adw/index.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,EAAE;AACF,iEAAiE;AACjE,8DAA8D;AAC9D,yFAAyF;AACzF,4BAA4B;AAC5B,EAAE;AACF,0EAA0E;AAC1E,4EAA4E;AAC5E,EAAE;AACF,wEAAwE;AACxE,6EAA6E;AAC7E,yEAAyE;AACzE,4EAA4E;AAC5E,sEAAsE;AAEtE,2EAA2E;AAC3E,4DAA4D;AAC5D,EAAE;AACF,wEAAwE;AACxE,6EAA6E;AAC7E,yEAAyE;AACzE,mEAAmE;AACnE,6EAA6E;AAC7E,6EAA6E;AAC7E,oEAAoE;AACpE,0DAA0D;AAC1D,cAAc,qBAAqB,CAAA;AAEnC,6EAA6E;AAC7E,uEAAuE;AACvE,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAE1C,oEAAoE;AACpE,0EAA0E;AAC1E,6EAA6E;AAC7E,6DAA6D;AAC7D,8DAA8D;AAC9D,yEAAyE;AACzE,mDAAmD;AACnD,yEAAyE;AACzE,qEAAqE;AACrE,OAAO,EACL,aAAa,EACb,gBAAgB,EAChB,mBAAmB,EACnB,SAAS,GACV,MAAM,sBAAsB,CAAA","sourcesContent":["// react-native-gtkx/adw — libadwaita widgets as React components.\n//\n// The Adwaita half of the platform layer; its GTK counterpart is\n// react-native-gtkx/gtk, and what we wrote ourselves lives in\n// react-native-gtkx/common (NavigationStack, SlotContent, wrapReactNative). Nothing here\n// imports react-navigation.\n//\n// NAMING, one rule across both subpaths: a name carrying a `Gtk` or `Adw`\n// prefix IS that widget, as gtkx binds it. A name without a prefix is ours.\n//\n// The layering mirrors the React Native ecosystem: react-native-screens\n// exposes primitives, @react-navigation/native-stack binds them to a router.\n// Here, this subpath exposes primitives and react-native-gtkx/navigation\n// binds them to react-navigation. You can skip the binding entirely — drive\n// NavigationStack from useState, from your own router, from anything.\n\n// The raw widgets, exactly as gtkx binds them — every GObject property and\n// signal, including ones added after this file was written.\n//\n// AdwNavigationView and AdwNavigationPage are the imperative originals:\n// NavigationStack above is a declarative alternative, NOT a replacement, and\n// a standard widget must never become unreachable because we wrapped it.\n// The full Adwaita widget surface lives in a generated file: every\n// Adw.Widget subclass gtkx binds, wrapped so React Native drives it. The raw\n// AdwNavigationView and AdwNavigationPage are in there too — NavigationStack\n// in react-native-gtkx/common is a declarative alternative, never a\n// replacement, and a standard widget must stay reachable.\nexport * from \"./widgets.generated\"\n\n// Exported as a value: it carries both the enums you need at runtime and the\n// types you need for refs — `useRef<Adw.NavigationView | null>(null)`.\nexport { Adw } from \"../gtkx/bridge/index\"\n\n// Auxiliary JSX elements that are not Adw.Widget subclasses, so the\n// generated widget surface above never sees them: a responsive breakpoint\n// (the `breakpoints` prop of AdwApplicationWindow/AdwBreakpointBin/AdwDialog\n// takes one of these as a child) and the two leaf elements a\n// AdwShortcutsDialog's AdwShortcutsSection is built from. See\n// docs/platform-layer.md \"Unwrapped by necessity\" and \"Two ways to react\n// to size\" — createSidebarNavigator's own collapse\n// (src/navigation/sidebar.tsx) pairs AdwBreakpoint with AdwBreakpointBin\n// (a real widget, wrapped above) to scope a breakpoint to a subtree.\nexport {\n AdwBreakpoint,\n AdwShortcutsItem,\n AdwShortcutsSection,\n AdwToggle,\n} from \"../gtkx/bridge/index\"\n"]}
@@ -0,0 +1,63 @@
1
+ export declare const AdwAboutDialog: React.ComponentType<import("@gtkx/jsx/adw").AdwAboutDialogProps<import("@gtkx/gi/adw").AboutDialog> & import("../common").ReactNativeLayoutProps>;
2
+ export declare const AdwAlertDialog: React.ComponentType<import("@gtkx/jsx/adw").AdwAlertDialogProps<import("@gtkx/gi/adw").AlertDialog> & import("../common").ReactNativeLayoutProps>;
3
+ export declare const AdwAvatar: React.ComponentType<import("@gtkx/jsx/adw").AdwAvatarProps<import("@gtkx/gi/adw").Avatar> & import("../common").ReactNativeLayoutProps>;
4
+ export declare const AdwBanner: React.ComponentType<import("@gtkx/jsx/adw").AdwBannerProps<import("@gtkx/gi/adw").Banner> & import("../common").ReactNativeLayoutProps>;
5
+ export declare const AdwBin: React.ComponentType<import("@gtkx/jsx/adw").AdwBinProps<import("@gtkx/gi/adw").Bin> & import("../common").ReactNativeLayoutProps>;
6
+ export declare const AdwBottomSheet: React.ComponentType<import("@gtkx/jsx/adw").AdwBottomSheetProps<import("@gtkx/gi/adw").BottomSheet> & import("../common").ReactNativeLayoutProps>;
7
+ export declare const AdwBreakpointBin: React.ComponentType<import("@gtkx/jsx/adw").AdwBreakpointBinProps<import("@gtkx/gi/adw").BreakpointBin> & import("../common").ReactNativeLayoutProps>;
8
+ export declare const AdwButtonContent: React.ComponentType<import("@gtkx/jsx/adw").AdwButtonContentProps<import("@gtkx/gi/adw").ButtonContent> & import("../common").ReactNativeLayoutProps>;
9
+ export declare const AdwCarousel: React.ComponentType<import("@gtkx/jsx/adw").AdwCarouselProps<import("@gtkx/gi/adw").Carousel> & import("../common").ReactNativeLayoutProps>;
10
+ export declare const AdwCarouselIndicatorDots: React.ComponentType<import("@gtkx/jsx/adw").AdwCarouselIndicatorDotsProps<import("@gtkx/gi/adw").CarouselIndicatorDots> & import("../common").ReactNativeLayoutProps>;
11
+ export declare const AdwCarouselIndicatorLines: React.ComponentType<import("@gtkx/jsx/adw").AdwCarouselIndicatorLinesProps<import("@gtkx/gi/adw").CarouselIndicatorLines> & import("../common").ReactNativeLayoutProps>;
12
+ export declare const AdwClamp: React.ComponentType<import("@gtkx/jsx/adw").AdwClampProps<import("@gtkx/gi/adw").Clamp> & import("../common").ReactNativeLayoutProps>;
13
+ export declare const AdwClampScrollable: React.ComponentType<import("@gtkx/jsx/adw").AdwClampScrollableProps<import("@gtkx/gi/adw").ClampScrollable> & import("../common").ReactNativeLayoutProps>;
14
+ export declare const AdwDialog: React.ComponentType<import("@gtkx/jsx/adw").AdwDialogProps<import("@gtkx/gi/adw").Dialog> & import("../common").ReactNativeLayoutProps>;
15
+ export declare const AdwFlap: React.ComponentType<import("@gtkx/jsx/adw").AdwFlapProps<import("@gtkx/gi/adw").Flap> & import("../common").ReactNativeLayoutProps>;
16
+ export declare const AdwHeaderBar: React.ComponentType<import("@gtkx/jsx/adw").AdwHeaderBarProps<import("@gtkx/gi/adw").HeaderBar> & import("../common").ReactNativeLayoutProps>;
17
+ export declare const AdwInlineViewSwitcher: React.ComponentType<import("@gtkx/jsx/adw").AdwInlineViewSwitcherProps<import("@gtkx/gi/adw").InlineViewSwitcher> & import("../common").ReactNativeLayoutProps>;
18
+ export declare const AdwLayoutSlot: React.ComponentType<import("@gtkx/jsx/adw").AdwLayoutSlotProps<import("@gtkx/gi/adw").LayoutSlot> & import("../common").ReactNativeLayoutProps>;
19
+ export declare const AdwLeaflet: React.ComponentType<import("@gtkx/jsx/adw").AdwLeafletProps<import("@gtkx/gi/adw").Leaflet> & import("../common").ReactNativeLayoutProps>;
20
+ export declare const AdwMultiLayoutView: React.ComponentType<import("@gtkx/jsx/adw").AdwMultiLayoutViewProps<import("@gtkx/gi/adw").MultiLayoutView> & import("../common").ReactNativeLayoutProps>;
21
+ export declare const AdwNavigationSplitView: React.ComponentType<import("@gtkx/jsx/adw").AdwNavigationSplitViewProps<import("@gtkx/gi/adw").NavigationSplitView> & import("../common").ReactNativeLayoutProps>;
22
+ export declare const AdwNavigationView: React.ComponentType<import("@gtkx/jsx/adw").AdwNavigationViewProps<import("@gtkx/gi/adw").NavigationView> & import("../common").ReactNativeLayoutProps>;
23
+ export declare const AdwOverlaySplitView: React.ComponentType<import("@gtkx/jsx/adw").AdwOverlaySplitViewProps<import("@gtkx/gi/adw").OverlaySplitView> & import("../common").ReactNativeLayoutProps>;
24
+ export declare const AdwPreferencesDialog: React.ComponentType<import("@gtkx/jsx/adw").AdwPreferencesDialogProps<import("@gtkx/gi/adw").PreferencesDialog> & import("../common").ReactNativeLayoutProps>;
25
+ export declare const AdwPreferencesGroup: React.ComponentType<import("@gtkx/jsx/adw").AdwPreferencesGroupProps<import("@gtkx/gi/adw").PreferencesGroup> & import("../common").ReactNativeLayoutProps>;
26
+ export declare const AdwShortcutLabel: React.ComponentType<import("@gtkx/jsx/adw").AdwShortcutLabelProps<import("@gtkx/gi/adw").ShortcutLabel> & import("../common").ReactNativeLayoutProps>;
27
+ export declare const AdwShortcutsDialog: React.ComponentType<import("@gtkx/jsx/adw").AdwShortcutsDialogProps<import("@gtkx/gi/adw").ShortcutsDialog> & import("../common").ReactNativeLayoutProps>;
28
+ export declare const AdwSidebar: React.ComponentType<import("@gtkx/jsx/adw").AdwSidebarProps<import("@gtkx/gi/adw").Sidebar> & import("../common").ReactNativeLayoutProps>;
29
+ export declare const AdwSpinner: React.ComponentType<import("@gtkx/jsx/adw").AdwSpinnerProps<import("@gtkx/gi/adw").Spinner> & import("../common").ReactNativeLayoutProps>;
30
+ export declare const AdwSplitButton: React.ComponentType<import("@gtkx/jsx/adw").AdwSplitButtonProps<import("@gtkx/gi/adw").SplitButton> & import("../common").ReactNativeLayoutProps>;
31
+ export declare const AdwSqueezer: React.ComponentType<import("@gtkx/jsx/adw").AdwSqueezerProps<import("@gtkx/gi/adw").Squeezer> & import("../common").ReactNativeLayoutProps>;
32
+ export declare const AdwStatusPage: React.ComponentType<import("@gtkx/jsx/adw").AdwStatusPageProps<import("@gtkx/gi/adw").StatusPage> & import("../common").ReactNativeLayoutProps>;
33
+ export declare const AdwTabBar: React.ComponentType<import("@gtkx/jsx/adw").AdwTabBarProps<import("@gtkx/gi/adw").TabBar> & import("../common").ReactNativeLayoutProps>;
34
+ export declare const AdwTabButton: React.ComponentType<import("@gtkx/jsx/adw").AdwTabButtonProps<import("@gtkx/gi/adw").TabButton> & import("../common").ReactNativeLayoutProps>;
35
+ export declare const AdwTabOverview: React.ComponentType<import("@gtkx/jsx/adw").AdwTabOverviewProps<import("@gtkx/gi/adw").TabOverview> & import("../common").ReactNativeLayoutProps>;
36
+ export declare const AdwTabView: React.ComponentType<import("@gtkx/jsx/adw").AdwTabViewProps<import("@gtkx/gi/adw").TabView> & import("../common").ReactNativeLayoutProps>;
37
+ export declare const AdwToastOverlay: React.ComponentType<import("@gtkx/jsx/adw").AdwToastOverlayProps<import("@gtkx/gi/adw").ToastOverlay> & import("../common").ReactNativeLayoutProps>;
38
+ export declare const AdwToggleGroup: React.ComponentType<import("@gtkx/jsx/adw").AdwToggleGroupProps<import("@gtkx/gi/adw").ToggleGroup> & import("../common").ReactNativeLayoutProps>;
39
+ export declare const AdwToolbarView: React.ComponentType<import("@gtkx/jsx/adw").AdwToolbarViewProps<import("@gtkx/gi/adw").ToolbarView> & import("../common").ReactNativeLayoutProps>;
40
+ export declare const AdwViewStack: React.ComponentType<import("@gtkx/jsx/adw").AdwViewStackProps<import("@gtkx/gi/adw").ViewStack> & import("../common").ReactNativeLayoutProps>;
41
+ export declare const AdwViewSwitcher: React.ComponentType<import("@gtkx/jsx/adw").AdwViewSwitcherProps<import("@gtkx/gi/adw").ViewSwitcher> & import("../common").ReactNativeLayoutProps>;
42
+ export declare const AdwViewSwitcherBar: React.ComponentType<import("@gtkx/jsx/adw").AdwViewSwitcherBarProps<import("@gtkx/gi/adw").ViewSwitcherBar> & import("../common").ReactNativeLayoutProps>;
43
+ export declare const AdwViewSwitcherSidebar: React.ComponentType<import("@gtkx/jsx/adw").AdwViewSwitcherSidebarProps<import("@gtkx/gi/adw").ViewSwitcherSidebar> & import("../common").ReactNativeLayoutProps>;
44
+ export declare const AdwViewSwitcherTitle: React.ComponentType<import("@gtkx/jsx/adw").AdwViewSwitcherTitleProps<import("@gtkx/gi/adw").ViewSwitcherTitle> & import("../common").ReactNativeLayoutProps>;
45
+ export declare const AdwWindowTitle: React.ComponentType<import("@gtkx/jsx/adw").AdwWindowTitleProps<import("@gtkx/gi/adw").WindowTitle> & import("../common").ReactNativeLayoutProps>;
46
+ export declare const AdwWrapBox: React.ComponentType<import("@gtkx/jsx/adw").AdwWrapBoxProps<import("@gtkx/gi/adw").WrapBox> & import("../common").ReactNativeLayoutProps>;
47
+ export { AdwAboutWindow, // toplevel (derives Gtk.Window)
48
+ AdwActionRow, // child-only (derives Gtk.ListBoxRow)
49
+ AdwApplicationWindow, // toplevel (derives Gtk.Window)
50
+ AdwButtonRow, // child-only (derives Gtk.ListBoxRow)
51
+ AdwComboRow, // child-only (derives Gtk.ListBoxRow)
52
+ AdwEntryRow, // child-only (derives Gtk.ListBoxRow)
53
+ AdwExpanderRow, // child-only (derives Gtk.ListBoxRow)
54
+ AdwMessageDialog, // toplevel (derives Gtk.Window)
55
+ AdwNavigationPage, // child-only (denylist — see scripts/widget-surface/classify.ts)
56
+ AdwPasswordEntryRow, // child-only (derives Gtk.ListBoxRow)
57
+ AdwPreferencesPage, // child-only (denylist — see scripts/widget-surface/classify.ts)
58
+ AdwPreferencesRow, // child-only (derives Gtk.ListBoxRow)
59
+ AdwPreferencesWindow, // toplevel (derives Gtk.Window)
60
+ AdwSpinRow, // child-only (derives Gtk.ListBoxRow)
61
+ AdwSwitchRow, // child-only (derives Gtk.ListBoxRow)
62
+ AdwWindow, } from "../gtkx/bridge/widgets.generated";
63
+ export declare const ADW_WRAPPED_WIDGET_NAMES: readonly ["AdwAboutDialog", "AdwAlertDialog", "AdwAvatar", "AdwBanner", "AdwBin", "AdwBottomSheet", "AdwBreakpointBin", "AdwButtonContent", "AdwCarousel", "AdwCarouselIndicatorDots", "AdwCarouselIndicatorLines", "AdwClamp", "AdwClampScrollable", "AdwDialog", "AdwFlap", "AdwHeaderBar", "AdwInlineViewSwitcher", "AdwLayoutSlot", "AdwLeaflet", "AdwMultiLayoutView", "AdwNavigationSplitView", "AdwNavigationView", "AdwOverlaySplitView", "AdwPreferencesDialog", "AdwPreferencesGroup", "AdwShortcutLabel", "AdwShortcutsDialog", "AdwSidebar", "AdwSpinner", "AdwSplitButton", "AdwSqueezer", "AdwStatusPage", "AdwTabBar", "AdwTabButton", "AdwTabOverview", "AdwTabView", "AdwToastOverlay", "AdwToggleGroup", "AdwToolbarView", "AdwViewStack", "AdwViewSwitcher", "AdwViewSwitcherBar", "AdwViewSwitcherSidebar", "AdwViewSwitcherTitle", "AdwWindowTitle", "AdwWrapBox"];
@@ -0,0 +1,125 @@
1
+ // GENERATED FILE — do not edit by hand.
2
+ // Produced by scripts/generate-widget-surface.ts. Re-run it inside the VM
3
+ // after `npm run codegen` picks up a gtkx update; see
4
+ // scripts/widget-surface/classification.json for the full classification
5
+ // and .claude/epics/widget-surface/ for the rules behind it.
6
+ //
7
+ // Wrapped: RN layout + a GTK CSS class from the style prop, steps aside and
8
+ // renders bare outside RN layout (see wrapReactNative in ../common/widget).
9
+ // Raw: toplevels and child-only widgets, where a wrapper box would be
10
+ // invalid GTK rather than a convenience — exported as gtkx binds them, same
11
+ // as the hand-picked ones were before this file existed.
12
+ import { wrapReactNative } from "../common/widget";
13
+ import { AdwAboutDialog as RawAdwAboutDialog, AdwAlertDialog as RawAdwAlertDialog, AdwAvatar as RawAdwAvatar, AdwBanner as RawAdwBanner, AdwBin as RawAdwBin, AdwBottomSheet as RawAdwBottomSheet, AdwBreakpointBin as RawAdwBreakpointBin, AdwButtonContent as RawAdwButtonContent, AdwCarousel as RawAdwCarousel, AdwCarouselIndicatorDots as RawAdwCarouselIndicatorDots, AdwCarouselIndicatorLines as RawAdwCarouselIndicatorLines, AdwClamp as RawAdwClamp, AdwClampScrollable as RawAdwClampScrollable, AdwDialog as RawAdwDialog, AdwFlap as RawAdwFlap, AdwHeaderBar as RawAdwHeaderBar, AdwInlineViewSwitcher as RawAdwInlineViewSwitcher, AdwLayoutSlot as RawAdwLayoutSlot, AdwLeaflet as RawAdwLeaflet, AdwMultiLayoutView as RawAdwMultiLayoutView, AdwNavigationSplitView as RawAdwNavigationSplitView, AdwNavigationView as RawAdwNavigationView, AdwOverlaySplitView as RawAdwOverlaySplitView, AdwPreferencesDialog as RawAdwPreferencesDialog, AdwPreferencesGroup as RawAdwPreferencesGroup, AdwShortcutLabel as RawAdwShortcutLabel, AdwShortcutsDialog as RawAdwShortcutsDialog, AdwSidebar as RawAdwSidebar, AdwSpinner as RawAdwSpinner, AdwSplitButton as RawAdwSplitButton, AdwSqueezer as RawAdwSqueezer, AdwStatusPage as RawAdwStatusPage, AdwTabBar as RawAdwTabBar, AdwTabButton as RawAdwTabButton, AdwTabOverview as RawAdwTabOverview, AdwTabView as RawAdwTabView, AdwToastOverlay as RawAdwToastOverlay, AdwToggleGroup as RawAdwToggleGroup, AdwToolbarView as RawAdwToolbarView, AdwViewStack as RawAdwViewStack, AdwViewSwitcher as RawAdwViewSwitcher, AdwViewSwitcherBar as RawAdwViewSwitcherBar, AdwViewSwitcherSidebar as RawAdwViewSwitcherSidebar, AdwViewSwitcherTitle as RawAdwViewSwitcherTitle, AdwWindowTitle as RawAdwWindowTitle, AdwWrapBox as RawAdwWrapBox, } from "../gtkx/bridge/widgets.generated";
14
+ export const AdwAboutDialog = wrapReactNative(RawAdwAboutDialog);
15
+ export const AdwAlertDialog = wrapReactNative(RawAdwAlertDialog);
16
+ export const AdwAvatar = wrapReactNative(RawAdwAvatar);
17
+ export const AdwBanner = wrapReactNative(RawAdwBanner);
18
+ export const AdwBin = wrapReactNative(RawAdwBin);
19
+ export const AdwBottomSheet = wrapReactNative(RawAdwBottomSheet);
20
+ export const AdwBreakpointBin = wrapReactNative(RawAdwBreakpointBin);
21
+ export const AdwButtonContent = wrapReactNative(RawAdwButtonContent);
22
+ export const AdwCarousel = wrapReactNative(RawAdwCarousel);
23
+ export const AdwCarouselIndicatorDots = wrapReactNative(RawAdwCarouselIndicatorDots);
24
+ export const AdwCarouselIndicatorLines = wrapReactNative(RawAdwCarouselIndicatorLines);
25
+ export const AdwClamp = wrapReactNative(RawAdwClamp);
26
+ export const AdwClampScrollable = wrapReactNative(RawAdwClampScrollable);
27
+ export const AdwDialog = wrapReactNative(RawAdwDialog);
28
+ export const AdwFlap = wrapReactNative(RawAdwFlap);
29
+ export const AdwHeaderBar = wrapReactNative(RawAdwHeaderBar);
30
+ export const AdwInlineViewSwitcher = wrapReactNative(RawAdwInlineViewSwitcher);
31
+ export const AdwLayoutSlot = wrapReactNative(RawAdwLayoutSlot);
32
+ export const AdwLeaflet = wrapReactNative(RawAdwLeaflet);
33
+ export const AdwMultiLayoutView = wrapReactNative(RawAdwMultiLayoutView);
34
+ export const AdwNavigationSplitView = wrapReactNative(RawAdwNavigationSplitView);
35
+ export const AdwNavigationView = wrapReactNative(RawAdwNavigationView);
36
+ export const AdwOverlaySplitView = wrapReactNative(RawAdwOverlaySplitView);
37
+ export const AdwPreferencesDialog = wrapReactNative(RawAdwPreferencesDialog);
38
+ export const AdwPreferencesGroup = wrapReactNative(RawAdwPreferencesGroup);
39
+ export const AdwShortcutLabel = wrapReactNative(RawAdwShortcutLabel);
40
+ export const AdwShortcutsDialog = wrapReactNative(RawAdwShortcutsDialog);
41
+ export const AdwSidebar = wrapReactNative(RawAdwSidebar);
42
+ export const AdwSpinner = wrapReactNative(RawAdwSpinner);
43
+ export const AdwSplitButton = wrapReactNative(RawAdwSplitButton);
44
+ export const AdwSqueezer = wrapReactNative(RawAdwSqueezer);
45
+ export const AdwStatusPage = wrapReactNative(RawAdwStatusPage);
46
+ export const AdwTabBar = wrapReactNative(RawAdwTabBar);
47
+ export const AdwTabButton = wrapReactNative(RawAdwTabButton);
48
+ export const AdwTabOverview = wrapReactNative(RawAdwTabOverview);
49
+ export const AdwTabView = wrapReactNative(RawAdwTabView);
50
+ export const AdwToastOverlay = wrapReactNative(RawAdwToastOverlay);
51
+ export const AdwToggleGroup = wrapReactNative(RawAdwToggleGroup);
52
+ export const AdwToolbarView = wrapReactNative(RawAdwToolbarView);
53
+ export const AdwViewStack = wrapReactNative(RawAdwViewStack);
54
+ export const AdwViewSwitcher = wrapReactNative(RawAdwViewSwitcher);
55
+ export const AdwViewSwitcherBar = wrapReactNative(RawAdwViewSwitcherBar);
56
+ export const AdwViewSwitcherSidebar = wrapReactNative(RawAdwViewSwitcherSidebar);
57
+ export const AdwViewSwitcherTitle = wrapReactNative(RawAdwViewSwitcherTitle);
58
+ export const AdwWindowTitle = wrapReactNative(RawAdwWindowTitle);
59
+ export const AdwWrapBox = wrapReactNative(RawAdwWrapBox);
60
+ export { AdwAboutWindow, // toplevel (derives Gtk.Window)
61
+ AdwActionRow, // child-only (derives Gtk.ListBoxRow)
62
+ AdwApplicationWindow, // toplevel (derives Gtk.Window)
63
+ AdwButtonRow, // child-only (derives Gtk.ListBoxRow)
64
+ AdwComboRow, // child-only (derives Gtk.ListBoxRow)
65
+ AdwEntryRow, // child-only (derives Gtk.ListBoxRow)
66
+ AdwExpanderRow, // child-only (derives Gtk.ListBoxRow)
67
+ AdwMessageDialog, // toplevel (derives Gtk.Window)
68
+ AdwNavigationPage, // child-only (denylist — see scripts/widget-surface/classify.ts)
69
+ AdwPasswordEntryRow, // child-only (derives Gtk.ListBoxRow)
70
+ AdwPreferencesPage, // child-only (denylist — see scripts/widget-surface/classify.ts)
71
+ AdwPreferencesRow, // child-only (derives Gtk.ListBoxRow)
72
+ AdwPreferencesWindow, // toplevel (derives Gtk.Window)
73
+ AdwSpinRow, // child-only (derives Gtk.ListBoxRow)
74
+ AdwSwitchRow, // child-only (derives Gtk.ListBoxRow)
75
+ AdwWindow, // toplevel (derives Gtk.Window)
76
+ } from "../gtkx/bridge/widgets.generated";
77
+ export const ADW_WRAPPED_WIDGET_NAMES = [
78
+ "AdwAboutDialog",
79
+ "AdwAlertDialog",
80
+ "AdwAvatar",
81
+ "AdwBanner",
82
+ "AdwBin",
83
+ "AdwBottomSheet",
84
+ "AdwBreakpointBin",
85
+ "AdwButtonContent",
86
+ "AdwCarousel",
87
+ "AdwCarouselIndicatorDots",
88
+ "AdwCarouselIndicatorLines",
89
+ "AdwClamp",
90
+ "AdwClampScrollable",
91
+ "AdwDialog",
92
+ "AdwFlap",
93
+ "AdwHeaderBar",
94
+ "AdwInlineViewSwitcher",
95
+ "AdwLayoutSlot",
96
+ "AdwLeaflet",
97
+ "AdwMultiLayoutView",
98
+ "AdwNavigationSplitView",
99
+ "AdwNavigationView",
100
+ "AdwOverlaySplitView",
101
+ "AdwPreferencesDialog",
102
+ "AdwPreferencesGroup",
103
+ "AdwShortcutLabel",
104
+ "AdwShortcutsDialog",
105
+ "AdwSidebar",
106
+ "AdwSpinner",
107
+ "AdwSplitButton",
108
+ "AdwSqueezer",
109
+ "AdwStatusPage",
110
+ "AdwTabBar",
111
+ "AdwTabButton",
112
+ "AdwTabOverview",
113
+ "AdwTabView",
114
+ "AdwToastOverlay",
115
+ "AdwToggleGroup",
116
+ "AdwToolbarView",
117
+ "AdwViewStack",
118
+ "AdwViewSwitcher",
119
+ "AdwViewSwitcherBar",
120
+ "AdwViewSwitcherSidebar",
121
+ "AdwViewSwitcherTitle",
122
+ "AdwWindowTitle",
123
+ "AdwWrapBox",
124
+ ];
125
+ //# sourceMappingURL=widgets.generated.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"widgets.generated.js","sourceRoot":"","sources":["../../src/adw/widgets.generated.ts"],"names":[],"mappings":"AAAA,wCAAwC;AACxC,0EAA0E;AAC1E,sDAAsD;AACtD,yEAAyE;AACzE,6DAA6D;AAC7D,EAAE;AACF,4EAA4E;AAC5E,4EAA4E;AAC5E,sEAAsE;AACtE,4EAA4E;AAC5E,yDAAyD;AAEzD,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,EACL,cAAc,IAAI,iBAAiB,EACnC,cAAc,IAAI,iBAAiB,EACnC,SAAS,IAAI,YAAY,EACzB,SAAS,IAAI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IACR,gBAAgB;IAChB,kBAAkB;IAClB,kBAAkB;IAClB,aAAa;IACb,0BAA0B;IAC1B,2BAA2B;IAC3B,UAAU;IACV,oBAAoB;IACpB,WAAW;IACX,SAAS;IACT,cAAc;IACd,uBAAuB;IACvB,eAAe;IACf,YAAY;IACZ,oBAAoB;IACpB,wBAAwB;IACxB,mBAAmB;IACnB,qBAAqB;IACrB,sBAAsB;IACtB,qBAAqB;IACrB,kBAAkB;IAClB,oBAAoB;IACpB,YAAY;IACZ,YAAY;IACZ,gBAAgB;IAChB,aAAa;IACb,eAAe;IACf,WAAW;IACX,cAAc;IACd,gBAAgB;IAChB,YAAY;IACZ,iBAAiB;IACjB,gBAAgB;IAChB,gBAAgB;IAChB,cAAc;IACd,iBAAiB;IACjB,oBAAoB;IACpB,wBAAwB;IACxB,sBAAsB;IACtB,gBAAgB;IAChB,YAAY;CACJ,CAAA","sourcesContent":["// GENERATED FILE — do not edit by hand.\n// Produced by scripts/generate-widget-surface.ts. Re-run it inside the VM\n// after `npm run codegen` picks up a gtkx update; see\n// scripts/widget-surface/classification.json for the full classification\n// and .claude/epics/widget-surface/ for the rules behind it.\n//\n// Wrapped: RN layout + a GTK CSS class from the style prop, steps aside and\n// renders bare outside RN layout (see wrapReactNative in ../common/widget).\n// Raw: toplevels and child-only widgets, where a wrapper box would be\n// invalid GTK rather than a convenience — exported as gtkx binds them, same\n// as the hand-picked ones were before this file existed.\n\nimport { wrapReactNative } from \"../common/widget\"\nimport {\n AdwAboutDialog as RawAdwAboutDialog,\n AdwAlertDialog as RawAdwAlertDialog,\n AdwAvatar as RawAdwAvatar,\n AdwBanner as RawAdwBanner,\n AdwBin as RawAdwBin,\n AdwBottomSheet as RawAdwBottomSheet,\n AdwBreakpointBin as RawAdwBreakpointBin,\n AdwButtonContent as RawAdwButtonContent,\n AdwCarousel as RawAdwCarousel,\n AdwCarouselIndicatorDots as RawAdwCarouselIndicatorDots,\n AdwCarouselIndicatorLines as RawAdwCarouselIndicatorLines,\n AdwClamp as RawAdwClamp,\n AdwClampScrollable as RawAdwClampScrollable,\n AdwDialog as RawAdwDialog,\n AdwFlap as RawAdwFlap,\n AdwHeaderBar as RawAdwHeaderBar,\n AdwInlineViewSwitcher as RawAdwInlineViewSwitcher,\n AdwLayoutSlot as RawAdwLayoutSlot,\n AdwLeaflet as RawAdwLeaflet,\n AdwMultiLayoutView as RawAdwMultiLayoutView,\n AdwNavigationSplitView as RawAdwNavigationSplitView,\n AdwNavigationView as RawAdwNavigationView,\n AdwOverlaySplitView as RawAdwOverlaySplitView,\n AdwPreferencesDialog as RawAdwPreferencesDialog,\n AdwPreferencesGroup as RawAdwPreferencesGroup,\n AdwShortcutLabel as RawAdwShortcutLabel,\n AdwShortcutsDialog as RawAdwShortcutsDialog,\n AdwSidebar as RawAdwSidebar,\n AdwSpinner as RawAdwSpinner,\n AdwSplitButton as RawAdwSplitButton,\n AdwSqueezer as RawAdwSqueezer,\n AdwStatusPage as RawAdwStatusPage,\n AdwTabBar as RawAdwTabBar,\n AdwTabButton as RawAdwTabButton,\n AdwTabOverview as RawAdwTabOverview,\n AdwTabView as RawAdwTabView,\n AdwToastOverlay as RawAdwToastOverlay,\n AdwToggleGroup as RawAdwToggleGroup,\n AdwToolbarView as RawAdwToolbarView,\n AdwViewStack as RawAdwViewStack,\n AdwViewSwitcher as RawAdwViewSwitcher,\n AdwViewSwitcherBar as RawAdwViewSwitcherBar,\n AdwViewSwitcherSidebar as RawAdwViewSwitcherSidebar,\n AdwViewSwitcherTitle as RawAdwViewSwitcherTitle,\n AdwWindowTitle as RawAdwWindowTitle,\n AdwWrapBox as RawAdwWrapBox,\n} from \"../gtkx/bridge/widgets.generated\"\n\nexport const AdwAboutDialog = wrapReactNative(RawAdwAboutDialog)\nexport const AdwAlertDialog = wrapReactNative(RawAdwAlertDialog)\nexport const AdwAvatar = wrapReactNative(RawAdwAvatar)\nexport const AdwBanner = wrapReactNative(RawAdwBanner)\nexport const AdwBin = wrapReactNative(RawAdwBin)\nexport const AdwBottomSheet = wrapReactNative(RawAdwBottomSheet)\nexport const AdwBreakpointBin = wrapReactNative(RawAdwBreakpointBin)\nexport const AdwButtonContent = wrapReactNative(RawAdwButtonContent)\nexport const AdwCarousel = wrapReactNative(RawAdwCarousel)\nexport const AdwCarouselIndicatorDots = wrapReactNative(\n RawAdwCarouselIndicatorDots,\n)\nexport const AdwCarouselIndicatorLines = wrapReactNative(\n RawAdwCarouselIndicatorLines,\n)\nexport const AdwClamp = wrapReactNative(RawAdwClamp)\nexport const AdwClampScrollable = wrapReactNative(RawAdwClampScrollable)\nexport const AdwDialog = wrapReactNative(RawAdwDialog)\nexport const AdwFlap = wrapReactNative(RawAdwFlap)\nexport const AdwHeaderBar = wrapReactNative(RawAdwHeaderBar)\nexport const AdwInlineViewSwitcher = wrapReactNative(RawAdwInlineViewSwitcher)\nexport const AdwLayoutSlot = wrapReactNative(RawAdwLayoutSlot)\nexport const AdwLeaflet = wrapReactNative(RawAdwLeaflet)\nexport const AdwMultiLayoutView = wrapReactNative(RawAdwMultiLayoutView)\nexport const AdwNavigationSplitView = wrapReactNative(RawAdwNavigationSplitView)\nexport const AdwNavigationView = wrapReactNative(RawAdwNavigationView)\nexport const AdwOverlaySplitView = wrapReactNative(RawAdwOverlaySplitView)\nexport const AdwPreferencesDialog = wrapReactNative(RawAdwPreferencesDialog)\nexport const AdwPreferencesGroup = wrapReactNative(RawAdwPreferencesGroup)\nexport const AdwShortcutLabel = wrapReactNative(RawAdwShortcutLabel)\nexport const AdwShortcutsDialog = wrapReactNative(RawAdwShortcutsDialog)\nexport const AdwSidebar = wrapReactNative(RawAdwSidebar)\nexport const AdwSpinner = wrapReactNative(RawAdwSpinner)\nexport const AdwSplitButton = wrapReactNative(RawAdwSplitButton)\nexport const AdwSqueezer = wrapReactNative(RawAdwSqueezer)\nexport const AdwStatusPage = wrapReactNative(RawAdwStatusPage)\nexport const AdwTabBar = wrapReactNative(RawAdwTabBar)\nexport const AdwTabButton = wrapReactNative(RawAdwTabButton)\nexport const AdwTabOverview = wrapReactNative(RawAdwTabOverview)\nexport const AdwTabView = wrapReactNative(RawAdwTabView)\nexport const AdwToastOverlay = wrapReactNative(RawAdwToastOverlay)\nexport const AdwToggleGroup = wrapReactNative(RawAdwToggleGroup)\nexport const AdwToolbarView = wrapReactNative(RawAdwToolbarView)\nexport const AdwViewStack = wrapReactNative(RawAdwViewStack)\nexport const AdwViewSwitcher = wrapReactNative(RawAdwViewSwitcher)\nexport const AdwViewSwitcherBar = wrapReactNative(RawAdwViewSwitcherBar)\nexport const AdwViewSwitcherSidebar = wrapReactNative(RawAdwViewSwitcherSidebar)\nexport const AdwViewSwitcherTitle = wrapReactNative(RawAdwViewSwitcherTitle)\nexport const AdwWindowTitle = wrapReactNative(RawAdwWindowTitle)\nexport const AdwWrapBox = wrapReactNative(RawAdwWrapBox)\n\nexport {\n AdwAboutWindow, // toplevel (derives Gtk.Window)\n AdwActionRow, // child-only (derives Gtk.ListBoxRow)\n AdwApplicationWindow, // toplevel (derives Gtk.Window)\n AdwButtonRow, // child-only (derives Gtk.ListBoxRow)\n AdwComboRow, // child-only (derives Gtk.ListBoxRow)\n AdwEntryRow, // child-only (derives Gtk.ListBoxRow)\n AdwExpanderRow, // child-only (derives Gtk.ListBoxRow)\n AdwMessageDialog, // toplevel (derives Gtk.Window)\n AdwNavigationPage, // child-only (denylist — see scripts/widget-surface/classify.ts)\n AdwPasswordEntryRow, // child-only (derives Gtk.ListBoxRow)\n AdwPreferencesPage, // child-only (denylist — see scripts/widget-surface/classify.ts)\n AdwPreferencesRow, // child-only (derives Gtk.ListBoxRow)\n AdwPreferencesWindow, // toplevel (derives Gtk.Window)\n AdwSpinRow, // child-only (derives Gtk.ListBoxRow)\n AdwSwitchRow, // child-only (derives Gtk.ListBoxRow)\n AdwWindow, // toplevel (derives Gtk.Window)\n} from \"../gtkx/bridge/widgets.generated\"\n\nexport const ADW_WRAPPED_WIDGET_NAMES = [\n \"AdwAboutDialog\",\n \"AdwAlertDialog\",\n \"AdwAvatar\",\n \"AdwBanner\",\n \"AdwBin\",\n \"AdwBottomSheet\",\n \"AdwBreakpointBin\",\n \"AdwButtonContent\",\n \"AdwCarousel\",\n \"AdwCarouselIndicatorDots\",\n \"AdwCarouselIndicatorLines\",\n \"AdwClamp\",\n \"AdwClampScrollable\",\n \"AdwDialog\",\n \"AdwFlap\",\n \"AdwHeaderBar\",\n \"AdwInlineViewSwitcher\",\n \"AdwLayoutSlot\",\n \"AdwLeaflet\",\n \"AdwMultiLayoutView\",\n \"AdwNavigationSplitView\",\n \"AdwNavigationView\",\n \"AdwOverlaySplitView\",\n \"AdwPreferencesDialog\",\n \"AdwPreferencesGroup\",\n \"AdwShortcutLabel\",\n \"AdwShortcutsDialog\",\n \"AdwSidebar\",\n \"AdwSpinner\",\n \"AdwSplitButton\",\n \"AdwSqueezer\",\n \"AdwStatusPage\",\n \"AdwTabBar\",\n \"AdwTabButton\",\n \"AdwTabOverview\",\n \"AdwTabView\",\n \"AdwToastOverlay\",\n \"AdwToggleGroup\",\n \"AdwToolbarView\",\n \"AdwViewStack\",\n \"AdwViewSwitcher\",\n \"AdwViewSwitcherBar\",\n \"AdwViewSwitcherSidebar\",\n \"AdwViewSwitcherTitle\",\n \"AdwWindowTitle\",\n \"AdwWrapBox\",\n] as const\n"]}
@@ -0,0 +1,69 @@
1
+ import type { ReactNode } from "react";
2
+ import { type IntrinsicRootProps, type NestedRootProps } from "../components/root";
3
+ /**
4
+ * React Native content that FILLS its slot.
5
+ *
6
+ * Use it for the body of a page, a split-view pane, a dialog — anywhere the
7
+ * widget hands out a rectangle and the RN tree should lay out inside it.
8
+ *
9
+ * ```tsx
10
+ * <NavigationStackPage tag="home" title="Home">
11
+ * <SlotContent>
12
+ * <View style={{ flex: 1 }}>…</View>
13
+ * </SlotContent>
14
+ * </NavigationStackPage>
15
+ * ```
16
+ */
17
+ export declare const SlotContent: ({ children }: NestedRootProps) => React.JSX.Element;
18
+ export type SlotContentProps = NestedRootProps;
19
+ /**
20
+ * React Native content SIZED BY ITSELF.
21
+ *
22
+ * The content's own Yoga size becomes the slot size, which is what a
23
+ * HeaderBar slot, a toolbar button area or a list row needs — the widget asks
24
+ * "how big are you?" and the RN tree answers.
25
+ *
26
+ * ```tsx
27
+ * <AdwHeaderBar
28
+ * start={<IntrinsicContent><SearchField /></IntrinsicContent>}
29
+ * />
30
+ * ```
31
+ */
32
+ export declare const IntrinsicContent: ({ children }: IntrinsicRootProps) => React.JSX.Element;
33
+ export type IntrinsicContentProps = IntrinsicRootProps;
34
+ /**
35
+ * A HeaderBar slot's React Native content.
36
+ *
37
+ * {@link IntrinsicContent} on its own is not enough for a header slot: a
38
+ * Yoga root defaults to React Native's `column` direction, so two buttons
39
+ * handed to `headerLeft` stack vertically and push the HeaderBar to twice
40
+ * its height — with the window controls left stranded on the lower row.
41
+ * A GTK header slot is horizontal by definition (`gtk_header_bar_pack_start`
42
+ * appends along one axis), and react-navigation's `headerLeft`/`headerRight`
43
+ * mean a horizontal cluster on every other platform too, so the row is the
44
+ * correct default rather than a workaround.
45
+ *
46
+ * The 6px gap matches AdwHeaderBar's own spacing between packed children,
47
+ * so a slot built from RN content sits flush with buttons packed natively
48
+ * beside it.
49
+ */
50
+ export declare const HeaderSlotContent: ({ children }: {
51
+ children?: ReactNode;
52
+ }) => React.JSX.Element;
53
+ /**
54
+ * A slot whose children are GTK WIDGETS, not React Native content.
55
+ *
56
+ * Clears the enclosing layout root so the widgets from `react-native-gtkx/gtk`
57
+ * and `/adw` render bare — the same thing they already do outside any React
58
+ * Native tree. Without this, a widget under an ancestor root is a Yoga LEAF:
59
+ * it is measured for its own natural size and its own widget children never
60
+ * reach it, which shows up as a container that renders its first child and
61
+ * silently drops the rest.
62
+ *
63
+ * Use it wherever GTK chrome should own the layout — a page body that is a
64
+ * `GtkScrolledWindow` around a `.boxed-list`, say. React Native content
65
+ * nested further down opts back in with {@link SlotContent}.
66
+ */
67
+ export declare const WidgetContent: ({ children }: {
68
+ children?: ReactNode;
69
+ }) => React.JSX.Element;
@@ -0,0 +1,84 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ // View and StyleSheet come from this package's own modules, never from the
3
+ // bare public specifier: this package IS that module on the linux platform,
4
+ // so importing it here would alias back to itself and Metro would try to
5
+ // bundle it (tests/unit/metro-preset.test.ts pins that down).
6
+ import { HostNodeContext } from "../components/host-node";
7
+ import { IntrinsicRoot, NestedRoot, } from "../components/root";
8
+ import { View } from "../components/view";
9
+ import { StyleSheet } from "../style/index";
10
+ /**
11
+ * React Native content that FILLS its slot.
12
+ *
13
+ * Use it for the body of a page, a split-view pane, a dialog — anywhere the
14
+ * widget hands out a rectangle and the RN tree should lay out inside it.
15
+ *
16
+ * ```tsx
17
+ * <NavigationStackPage tag="home" title="Home">
18
+ * <SlotContent>
19
+ * <View style={{ flex: 1 }}>…</View>
20
+ * </SlotContent>
21
+ * </NavigationStackPage>
22
+ * ```
23
+ */
24
+ export const SlotContent = NestedRoot;
25
+ /**
26
+ * React Native content SIZED BY ITSELF.
27
+ *
28
+ * The content's own Yoga size becomes the slot size, which is what a
29
+ * HeaderBar slot, a toolbar button area or a list row needs — the widget asks
30
+ * "how big are you?" and the RN tree answers.
31
+ *
32
+ * ```tsx
33
+ * <AdwHeaderBar
34
+ * start={<IntrinsicContent><SearchField /></IntrinsicContent>}
35
+ * />
36
+ * ```
37
+ */
38
+ export const IntrinsicContent = IntrinsicRoot;
39
+ /**
40
+ * A HeaderBar slot's React Native content.
41
+ *
42
+ * {@link IntrinsicContent} on its own is not enough for a header slot: a
43
+ * Yoga root defaults to React Native's `column` direction, so two buttons
44
+ * handed to `headerLeft` stack vertically and push the HeaderBar to twice
45
+ * its height — with the window controls left stranded on the lower row.
46
+ * A GTK header slot is horizontal by definition (`gtk_header_bar_pack_start`
47
+ * appends along one axis), and react-navigation's `headerLeft`/`headerRight`
48
+ * mean a horizontal cluster on every other platform too, so the row is the
49
+ * correct default rather than a workaround.
50
+ *
51
+ * The 6px gap matches AdwHeaderBar's own spacing between packed children,
52
+ * so a slot built from RN content sits flush with buttons packed natively
53
+ * beside it.
54
+ */
55
+ export const HeaderSlotContent = ({ children }) => (_jsx(IntrinsicContent, { children: _jsx(View, { style: headerSlotStyles.row, children: children }) }));
56
+ const headerSlotStyles = StyleSheet.create({
57
+ // alignSelf keeps the row HUGGING its buttons. A Yoga root stretches its
58
+ // children across its own width by default, which a HeaderBar reads back
59
+ // as "this slot wants all of it" — the centred title then sits off centre
60
+ // and packed buttons drift apart. A header slot is content-sized on every
61
+ // platform; this is what says so.
62
+ row: {
63
+ flexDirection: "row",
64
+ alignItems: "center",
65
+ alignSelf: "center",
66
+ gap: 6,
67
+ },
68
+ });
69
+ /**
70
+ * A slot whose children are GTK WIDGETS, not React Native content.
71
+ *
72
+ * Clears the enclosing layout root so the widgets from `react-native-gtkx/gtk`
73
+ * and `/adw` render bare — the same thing they already do outside any React
74
+ * Native tree. Without this, a widget under an ancestor root is a Yoga LEAF:
75
+ * it is measured for its own natural size and its own widget children never
76
+ * reach it, which shows up as a container that renders its first child and
77
+ * silently drops the rest.
78
+ *
79
+ * Use it wherever GTK chrome should own the layout — a page body that is a
80
+ * `GtkScrolledWindow` around a `.boxed-list`, say. React Native content
81
+ * nested further down opts back in with {@link SlotContent}.
82
+ */
83
+ export const WidgetContent = ({ children }) => (_jsx(HostNodeContext.Provider, { value: null, children: children }));
84
+ //# sourceMappingURL=content.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"content.js","sourceRoot":"","sources":["../../src/common/content.tsx"],"names":[],"mappings":";AAQA,2EAA2E;AAC3E,4EAA4E;AAC5E,yEAAyE;AACzE,8DAA8D;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAA;AACzD,OAAO,EACL,aAAa,EACb,UAAU,GAGX,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAA;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAE3C;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,UAAU,CAAA;AAGrC;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,aAAa,CAAA;AAG7C;;;;;;;;;;;;;;;GAeG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,EAAE,QAAQ,EAA4B,EAAE,EAAE,CAAC,CAC3E,KAAC,gBAAgB,cACf,KAAC,IAAI,IAAC,KAAK,EAAE,gBAAgB,CAAC,GAAG,YAAG,QAAQ,GAAQ,GACnC,CACpB,CAAA;AAED,MAAM,gBAAgB,GAAG,UAAU,CAAC,MAAM,CAAC;IACzC,yEAAyE;IACzE,yEAAyE;IACzE,0EAA0E;IAC1E,0EAA0E;IAC1E,kCAAkC;IAClC,GAAG,EAAE;QACH,aAAa,EAAE,KAAK;QACpB,UAAU,EAAE,QAAQ;QACpB,SAAS,EAAE,QAAQ;QACnB,GAAG,EAAE,CAAC;KACP;CACF,CAAC,CAAA;AAEF;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,EAAE,QAAQ,EAA4B,EAAE,EAAE,CAAC,CACvE,KAAC,eAAe,CAAC,QAAQ,IAAC,KAAK,EAAE,IAAI,YAAG,QAAQ,GAA4B,CAC7E,CAAA","sourcesContent":["// Putting React Native content into a GTK widget slot.\n//\n// The Adwaita primitives in this subpath are widget bindings: their children\n// are widgets. React Native content is a different thing — it needs a layout\n// root that runs Yoga and reports a size. These two components are that\n// bridge, and they are what makes \"GTK chrome around RN content\" work\n// anywhere, not just inside our navigators.\nimport type { ReactNode } from \"react\"\n// View and StyleSheet come from this package's own modules, never from the\n// bare public specifier: this package IS that module on the linux platform,\n// so importing it here would alias back to itself and Metro would try to\n// bundle it (tests/unit/metro-preset.test.ts pins that down).\nimport { HostNodeContext } from \"../components/host-node\"\nimport {\n IntrinsicRoot,\n NestedRoot,\n type IntrinsicRootProps,\n type NestedRootProps,\n} from \"../components/root\"\nimport { View } from \"../components/view\"\nimport { StyleSheet } from \"../style/index\"\n\n/**\n * React Native content that FILLS its slot.\n *\n * Use it for the body of a page, a split-view pane, a dialog — anywhere the\n * widget hands out a rectangle and the RN tree should lay out inside it.\n *\n * ```tsx\n * <NavigationStackPage tag=\"home\" title=\"Home\">\n * <SlotContent>\n * <View style={{ flex: 1 }}>…</View>\n * </SlotContent>\n * </NavigationStackPage>\n * ```\n */\nexport const SlotContent = NestedRoot\nexport type SlotContentProps = NestedRootProps\n\n/**\n * React Native content SIZED BY ITSELF.\n *\n * The content's own Yoga size becomes the slot size, which is what a\n * HeaderBar slot, a toolbar button area or a list row needs — the widget asks\n * \"how big are you?\" and the RN tree answers.\n *\n * ```tsx\n * <AdwHeaderBar\n * start={<IntrinsicContent><SearchField /></IntrinsicContent>}\n * />\n * ```\n */\nexport const IntrinsicContent = IntrinsicRoot\nexport type IntrinsicContentProps = IntrinsicRootProps\n\n/**\n * A HeaderBar slot's React Native content.\n *\n * {@link IntrinsicContent} on its own is not enough for a header slot: a\n * Yoga root defaults to React Native's `column` direction, so two buttons\n * handed to `headerLeft` stack vertically and push the HeaderBar to twice\n * its height — with the window controls left stranded on the lower row.\n * A GTK header slot is horizontal by definition (`gtk_header_bar_pack_start`\n * appends along one axis), and react-navigation's `headerLeft`/`headerRight`\n * mean a horizontal cluster on every other platform too, so the row is the\n * correct default rather than a workaround.\n *\n * The 6px gap matches AdwHeaderBar's own spacing between packed children,\n * so a slot built from RN content sits flush with buttons packed natively\n * beside it.\n */\nexport const HeaderSlotContent = ({ children }: { children?: ReactNode }) => (\n <IntrinsicContent>\n <View style={headerSlotStyles.row}>{children}</View>\n </IntrinsicContent>\n)\n\nconst headerSlotStyles = StyleSheet.create({\n // alignSelf keeps the row HUGGING its buttons. A Yoga root stretches its\n // children across its own width by default, which a HeaderBar reads back\n // as \"this slot wants all of it\" — the centred title then sits off centre\n // and packed buttons drift apart. A header slot is content-sized on every\n // platform; this is what says so.\n row: {\n flexDirection: \"row\",\n alignItems: \"center\",\n alignSelf: \"center\",\n gap: 6,\n },\n})\n\n/**\n * A slot whose children are GTK WIDGETS, not React Native content.\n *\n * Clears the enclosing layout root so the widgets from `react-native-gtkx/gtk`\n * and `/adw` render bare — the same thing they already do outside any React\n * Native tree. Without this, a widget under an ancestor root is a Yoga LEAF:\n * it is measured for its own natural size and its own widget children never\n * reach it, which shows up as a container that renders its first child and\n * silently drops the rest.\n *\n * Use it wherever GTK chrome should own the layout — a page body that is a\n * `GtkScrolledWindow` around a `.boxed-list`, say. React Native content\n * nested further down opts back in with {@link SlotContent}.\n */\nexport const WidgetContent = ({ children }: { children?: ReactNode }) => (\n <HostNodeContext.Provider value={null}>{children}</HostNodeContext.Provider>\n)\n"]}
@@ -0,0 +1,3 @@
1
+ export { NavigationStack, NavigationStackPage, type NavigationStackPageProps, type NavigationStackProps, } from "./navigation-stack";
2
+ export { HeaderSlotContent, IntrinsicContent, SlotContent, WidgetContent, type IntrinsicContentProps, type SlotContentProps, } from "./content";
3
+ export { useWidgetLayout, Widget, wrapReactNative, type ReactNativeLayoutProps, type UseWidgetLayoutOptions, type WidgetProps, } from "./widget";
@@ -0,0 +1,19 @@
1
+ // react-native-gtkx/common — the parts of the platform layer we wrote.
2
+ //
3
+ // The other two subpaths are widget bindings: react-native-gtkx/gtk and
4
+ // react-native-gtkx/adw re-export what gtkx generates, name for name. This
5
+ // one holds what has no upstream counterpart, which is why nothing here
6
+ // carries a `Gtk` or `Adw` prefix.
7
+ //
8
+ // Two jobs live here. Getting React Native content INTO a GTK slot
9
+ // (SlotContent, IntrinsicContent), and getting a GTK widget INTO React
10
+ // Native layout (Widget, wrapReactNative, useWidgetLayout). Plus
11
+ // NavigationStack, which is a declarative component over an imperative
12
+ // widget rather than a binding of one — a different contract from
13
+ // Adw.NavigationView, which is why it has its own name and lives apart.
14
+ //
15
+ // Nothing here imports react-navigation.
16
+ export { NavigationStack, NavigationStackPage, } from "./navigation-stack";
17
+ export { HeaderSlotContent, IntrinsicContent, SlotContent, WidgetContent, } from "./content";
18
+ export { useWidgetLayout, Widget, wrapReactNative, } from "./widget";
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":"AAAA,uEAAuE;AACvE,EAAE;AACF,wEAAwE;AACxE,2EAA2E;AAC3E,wEAAwE;AACxE,mCAAmC;AACnC,EAAE;AACF,mEAAmE;AACnE,uEAAuE;AACvE,iEAAiE;AACjE,uEAAuE;AACvE,kEAAkE;AAClE,wEAAwE;AACxE,EAAE;AACF,yCAAyC;AAEzC,OAAO,EACL,eAAe,EACf,mBAAmB,GAGpB,MAAM,oBAAoB,CAAA;AAE3B,OAAO,EACL,iBAAiB,EACjB,gBAAgB,EAChB,WAAW,EACX,aAAa,GAGd,MAAM,WAAW,CAAA;AAElB,OAAO,EACL,eAAe,EACf,MAAM,EACN,eAAe,GAIhB,MAAM,UAAU,CAAA","sourcesContent":["// react-native-gtkx/common — the parts of the platform layer we wrote.\n//\n// The other two subpaths are widget bindings: react-native-gtkx/gtk and\n// react-native-gtkx/adw re-export what gtkx generates, name for name. This\n// one holds what has no upstream counterpart, which is why nothing here\n// carries a `Gtk` or `Adw` prefix.\n//\n// Two jobs live here. Getting React Native content INTO a GTK slot\n// (SlotContent, IntrinsicContent), and getting a GTK widget INTO React\n// Native layout (Widget, wrapReactNative, useWidgetLayout). Plus\n// NavigationStack, which is a declarative component over an imperative\n// widget rather than a binding of one — a different contract from\n// Adw.NavigationView, which is why it has its own name and lives apart.\n//\n// Nothing here imports react-navigation.\n\nexport {\n NavigationStack,\n NavigationStackPage,\n type NavigationStackPageProps,\n type NavigationStackProps,\n} from \"./navigation-stack\"\n\nexport {\n HeaderSlotContent,\n IntrinsicContent,\n SlotContent,\n WidgetContent,\n type IntrinsicContentProps,\n type SlotContentProps,\n} from \"./content\"\n\nexport {\n useWidgetLayout,\n Widget,\n wrapReactNative,\n type ReactNativeLayoutProps,\n type UseWidgetLayoutOptions,\n type WidgetProps,\n} from \"./widget\"\n"]}