@ng-native/components 0.28.0 → 0.30.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 (123) hide show
  1. package/README.md +2 -2
  2. package/android/src/main/java/dev/ngnative/components/ColorSchemeModule.kt +116 -11
  3. package/dist/activity-indicator.js +3 -3
  4. package/dist/animated-style.js +3 -3
  5. package/dist/animations-web.js +3 -3
  6. package/dist/animations.js +3 -3
  7. package/dist/content-container.js +3 -3
  8. package/dist/context-menu.js +3 -3
  9. package/dist/drag-and-drop.js +6 -6
  10. package/dist/gestures-web.js +6 -6
  11. package/dist/gestures.js +6 -6
  12. package/dist/gradient-text.d.ts +1 -1
  13. package/dist/gradient-text.js +4 -4
  14. package/dist/gradient-text.js.map +1 -1
  15. package/dist/image-background.js +3 -3
  16. package/dist/image.js +3 -3
  17. package/dist/index.d.ts +3 -2
  18. package/dist/index.js +3 -2
  19. package/dist/index.js.map +1 -1
  20. package/dist/input-accessory-view.js +3 -3
  21. package/dist/keyboard-avoiding-view.js +3 -3
  22. package/dist/keyboard-dock.js +15 -15
  23. package/dist/markdown-blocks.d.ts +2 -1
  24. package/dist/markdown-blocks.js +22 -18
  25. package/dist/markdown-blocks.js.map +1 -1
  26. package/dist/markdown-columns.js +3 -3
  27. package/dist/markdown-stream.js +8 -5
  28. package/dist/markdown-stream.js.map +1 -1
  29. package/dist/markdown.js +5 -5
  30. package/dist/markdown.js.map +1 -1
  31. package/dist/menu.d.ts +11 -5
  32. package/dist/menu.js +24 -44
  33. package/dist/menu.js.map +1 -1
  34. package/dist/modal.js +8 -3
  35. package/dist/modal.js.map +1 -1
  36. package/dist/native-button.d.ts +25 -3
  37. package/dist/native-button.js +102 -8
  38. package/dist/native-button.js.map +1 -1
  39. package/dist/native-gesture.js +3 -3
  40. package/dist/native-ref.js +3 -3
  41. package/dist/press-menu.d.ts +38 -8
  42. package/dist/press-menu.js +80 -19
  43. package/dist/press-menu.js.map +1 -1
  44. package/dist/pressable.js +14 -13
  45. package/dist/pressable.js.map +1 -1
  46. package/dist/reanimated-web.js +6 -6
  47. package/dist/reanimated.js +6 -6
  48. package/dist/refresh-control.js +3 -3
  49. package/dist/safe-area-provider.js +3 -3
  50. package/dist/safe-area-view.js +3 -3
  51. package/dist/scroll-view-props.js +3 -3
  52. package/dist/scroll-view.d.ts +3 -1
  53. package/dist/scroll-view.js +10 -5
  54. package/dist/scroll-view.js.map +1 -1
  55. package/dist/section-list.d.ts +4 -4
  56. package/dist/section-list.js +37 -34
  57. package/dist/section-list.js.map +1 -1
  58. package/dist/shortcut.js +3 -3
  59. package/dist/sidebar-item.js +3 -3
  60. package/dist/sidebar-section.d.ts +12 -5
  61. package/dist/sidebar-section.js +32 -12
  62. package/dist/sidebar-section.js.map +1 -1
  63. package/dist/sidebar.d.ts +11 -3
  64. package/dist/sidebar.js +18 -8
  65. package/dist/sidebar.js.map +1 -1
  66. package/dist/split-view.d.ts +23 -2
  67. package/dist/split-view.js +36 -9
  68. package/dist/split-view.js.map +1 -1
  69. package/dist/stand-ins/animations.js +3 -3
  70. package/dist/sticky-headers.d.ts +19 -0
  71. package/dist/sticky-headers.js +67 -10
  72. package/dist/sticky-headers.js.map +1 -1
  73. package/dist/sticky-rows.d.ts +13 -11
  74. package/dist/sticky-rows.js +35 -21
  75. package/dist/sticky-rows.js.map +1 -1
  76. package/dist/svg-icon.d.ts +16 -2
  77. package/dist/svg-icon.js +19 -3
  78. package/dist/svg-icon.js.map +1 -1
  79. package/dist/switch.js +3 -3
  80. package/dist/template-slot.js +3 -3
  81. package/dist/text-input.js +3 -3
  82. package/dist/text.js +3 -3
  83. package/dist/touchable-opacity.js +3 -3
  84. package/dist/tray-icon.d.ts +7 -1
  85. package/dist/tray-icon.js +17 -5
  86. package/dist/tray-icon.js.map +1 -1
  87. package/dist/view-base.d.ts +18 -2
  88. package/dist/view-base.js +42 -10
  89. package/dist/view-base.js.map +1 -1
  90. package/dist/view.js +3 -3
  91. package/dist/virtual-list-layout.d.ts +5 -0
  92. package/dist/virtual-list-layout.js.map +1 -1
  93. package/dist/virtual-list-num-columns.d.ts +8 -4
  94. package/dist/virtual-list-num-columns.js +13 -5
  95. package/dist/virtual-list-num-columns.js.map +1 -1
  96. package/dist/virtual-list-sticky-level.d.ts +0 -6
  97. package/dist/virtual-list-sticky-level.js +5 -29
  98. package/dist/virtual-list-sticky-level.js.map +1 -1
  99. package/dist/virtual-list.d.ts +72 -11
  100. package/dist/virtual-list.js +285 -74
  101. package/dist/virtual-list.js.map +1 -1
  102. package/dist/visual-effect.d.ts +37 -0
  103. package/dist/visual-effect.js +60 -0
  104. package/dist/visual-effect.js.map +1 -0
  105. package/dist/worklet-scroll.js +3 -3
  106. package/dist/worklet-style.js +3 -3
  107. package/dist/written-props.js +9 -0
  108. package/dist/written-props.js.map +1 -1
  109. package/ios/NgNativeButtonComponentView.mm +8 -4
  110. package/ios/NgNativeButtonMetrics.h +9 -2
  111. package/ios/NgNativeButtonMetrics.mm +33 -4
  112. package/ios/NgNativeButtonShadowNode.h +2 -0
  113. package/ios/NgNativeButtonShadowNode.mm +5 -1
  114. package/ios/NgNativeComponents.podspec +2 -2
  115. package/ios/NgNativeKeyboardFocus.h +21 -0
  116. package/ios/NgNativeKeyboardFocus.mm +28 -0
  117. package/ios/NgNativeKeyboardFocusModule.mm +203 -0
  118. package/ios/NgNativeMenus.mm +62 -2
  119. package/ios/NgNativePressMenu.h +36 -0
  120. package/ios/NgNativePressMenu.mm +79 -0
  121. package/ios/NgNativeViewBinder.h +5 -0
  122. package/ios/NgNativeViewBinder.mm +31 -4
  123. package/package.json +6 -6
package/README.md CHANGED
@@ -72,8 +72,8 @@ package under Node (tests, tooling).
72
72
  [gestures](https://ng-native.com/packages/components/gestures),
73
73
  [modal](https://ng-native.com/packages/components/modal) and
74
74
  [animation](https://ng-native.com/packages/components/animation)
75
- - [Root README](https://github.com/ng-native/ng-native/blob/main/README.md) and
76
- [ARCHITECTURE.md](https://github.com/ng-native/ng-native/blob/main/docs/ARCHITECTURE.md)
75
+ - [Root README](https://github.com/coralogix/ng-native/blob/main/README.md) and
76
+ [ARCHITECTURE.md](https://github.com/coralogix/ng-native/blob/main/docs/ARCHITECTURE.md)
77
77
 
78
78
  ## License
79
79
 
@@ -4,11 +4,18 @@ import android.app.UiModeManager
4
4
  import android.content.Context
5
5
  import android.content.res.ColorStateList
6
6
  import android.content.res.Configuration
7
+ import android.graphics.drawable.BitmapDrawable
8
+ import android.graphics.drawable.Drawable
9
+ import android.graphics.drawable.DrawableContainer
10
+ import android.graphics.drawable.LayerDrawable
11
+ import android.graphics.drawable.NinePatchDrawable
12
+ import android.graphics.drawable.RippleDrawable
7
13
  import android.os.Build
8
14
  import android.os.Handler
9
15
  import android.os.Looper
10
16
  import android.view.View
11
17
  import android.view.ViewGroup
18
+ import android.widget.EditText
12
19
  import androidx.activity.ComponentActivity
13
20
  import androidx.appcompat.R
14
21
  import androidx.appcompat.content.res.AppCompatResources
@@ -28,14 +35,20 @@ import java.lang.ref.WeakReference
28
35
  * (Android 12 and later) is part of the configuration the system applies, so it holds, and the
29
36
  * system keeps it across launches. Earlier Android has no such setting and this does nothing there.
30
37
  *
31
- * It also retints the activity's switches after each configuration change the activity takes in
32
- * place, whatever made it, as React Native's switch keeps the tints it was created with.
38
+ * It also retints the activity's switches and text inputs after each configuration change the
39
+ * activity takes in place, whatever made it, as React Native's keep the colours they were created
40
+ * with.
33
41
  */
34
42
  class ColorSchemeModule : Module() {
35
43
  private val main = Handler(Looper.getMainLooper())
36
44
  private var watched: WeakReference<ComponentActivity>? = null
45
+ /** The theme's selection colour before the change, which a field showing it took by default. */
46
+ private var highlight = 0
37
47
  private val onConfigurationChanged = Consumer<Configuration> {
38
- watched?.get()?.window?.decorView?.let(::refreshSwitches)
48
+ val activity = watched?.get() ?: return@Consumer
49
+ val was = highlight
50
+ highlight = themeHighlight(activity)
51
+ activity.window?.decorView?.let { refreshControls(it, was, highlight) }
39
52
  }
40
53
 
41
54
  override fun definition() = ModuleDefinition {
@@ -63,6 +76,7 @@ class ColorSchemeModule : Module() {
63
76
  unwatch()
64
77
  activity.addOnConfigurationChangedListener(onConfigurationChanged)
65
78
  watched = WeakReference(activity)
79
+ highlight = themeHighlight(activity)
66
80
  }
67
81
  }
68
82
 
@@ -73,20 +87,81 @@ class ColorSchemeModule : Module() {
73
87
  }
74
88
 
75
89
  /**
76
- * Retint every switch under [view] from its theme as it is now. `SwitchCompat`, which React
77
- * Native's `AndroidSwitch` is, takes its thumb and track tints from the theme once, when it is
78
- * created, so after a scheme change that an activity handling `uiMode` takes in place, by the
79
- * system or by `setColorScheme`, a switch on screen keeps the old scheme's. The colour filters
80
- * React Native sets for `trackColor` and `thumbColor` stay, as a filter draws in place of a tint.
81
- * A modal's switches are reached too: its host hands out its dialog's views as its children.
90
+ * Retint every switch and text input under [view] from its theme as it is now. `SwitchCompat`,
91
+ * which React Native's `AndroidSwitch` is, takes its thumb and track tints and its press ripple
92
+ * from the theme once, when it is created, and an `EditText` its selection colour, cursor and
93
+ * selection handles, so after a scheme change that an activity handling `uiMode` takes in place,
94
+ * by the system or by `setColorScheme`, those on screen keep the old scheme's. Colours React
95
+ * Native set from JavaScript stay: its `trackColor`, `thumbColor`, `cursorColor` and
96
+ * `selectionHandleColor` are colour filters, which draw in place of a tint and are left alone, and
97
+ * a `selectionColor` is kept unless it is the old theme's own, [was]. A modal's controls are
98
+ * reached too: its host hands out its dialog's views as its children.
82
99
  */
83
- internal fun refreshSwitches(view: View) {
100
+ internal fun refreshControls(view: View, was: Int, highlight: Int) {
84
101
  if (view is SwitchCompat) refreshSwitch(view)
85
- if (view is ViewGroup) for (i in 0 until view.childCount) refreshSwitches(view.getChildAt(i))
102
+ if (view is EditText) refreshField(view, was, highlight)
103
+ if (view is ViewGroup) {
104
+ for (i in 0 until view.childCount) refreshControls(view.getChildAt(i), was, highlight)
105
+ }
106
+ }
107
+
108
+ /** The theme's `textColorHighlight`, which React Native gives a field with no `selectionColor`. */
109
+ private fun themeHighlight(context: Context): Int {
110
+ val styled = context.obtainStyledAttributes(intArrayOf(android.R.attr.textColorHighlight))
111
+ try {
112
+ return styled.getColorStateList(0)?.defaultColor ?: 0
113
+ } finally {
114
+ styled.recycle()
115
+ }
116
+ }
117
+
118
+ /**
119
+ * A field's selection colour after a change from [was] to [now]: the new theme's when it showed
120
+ * the old theme's, and its own otherwise.
121
+ *
122
+ * ponytail: a `selectionColor` set to exactly the old theme's colour follows the theme too.
123
+ */
124
+ internal fun followedHighlight(current: Int, was: Int, now: Int): Int =
125
+ if (current == was) now else current
126
+
127
+ private fun refreshField(field: EditText, was: Int, highlight: Int) {
128
+ field.highlightColor = followedHighlight(field.highlightColor, was, highlight)
129
+ // Android 10 added the getters and setters; earlier, React Native reaches these by reflection.
130
+ if (Build.VERSION.SDK_INT < Build.VERSION_CODES.Q) return
131
+ // The platform's cursor and handles are tinted `colorControlActivated`. Loading them again does
132
+ // not do: the drawable cache keeps the old scheme's tint, as a theme attribute is not a `uiMode`
133
+ // dependency it knows of. So they are tinted again in place.
134
+ val styled = field.context.obtainStyledAttributes(intArrayOf(android.R.attr.colorControlActivated))
135
+ val tint =
136
+ try {
137
+ styled.getColorStateList(0)
138
+ } finally {
139
+ styled.recycle()
140
+ } ?: return
141
+ field.textCursorDrawable?.takeIf { it.colorFilter == null }?.let {
142
+ it.mutate().setTintList(tint)
143
+ field.textCursorDrawable = it
144
+ }
145
+ // React Native filters all three handles or none.
146
+ if (field.textSelectHandle?.colorFilter != null) return
147
+ field.textSelectHandle?.let { field.setTextSelectHandle(it.mutate().apply { setTintList(tint) }) }
148
+ field.textSelectHandleLeft?.let {
149
+ field.setTextSelectHandleLeft(it.mutate().apply { setTintList(tint) })
150
+ }
151
+ field.textSelectHandleRight?.let {
152
+ field.setTextSelectHandleRight(it.mutate().apply { setTintList(tint) })
153
+ }
86
154
  }
87
155
 
88
156
  /** The tints AppCompat gives its own switch drawables, read again; others it leaves alone. */
89
157
  private fun refreshSwitch(switch: SwitchCompat) {
158
+ // React Native's `thumbColor` filters the thumb (a state list, whose nine-patch states keep the
159
+ // filter on their paint and report none) and colours the ripple too, which a wrapper for an
160
+ // outline or a border added later keeps.
161
+ // ponytail: a ripple has no colour to read back, so with the thumb filtered it is taken as the
162
+ // app's. One wrapped before `thumbColor` came, which React Native left the theme's, then keeps
163
+ // the old scheme's ripple; an app's own colour is never painted over.
164
+ val ownRipple = switch.thumbDrawable?.let(::hasFilter) == true
90
165
  val context = switch.context
91
166
  val styled =
92
167
  context.obtainStyledAttributes(null, R.styleable.SwitchCompat, R.attr.switchStyle, 0)
@@ -100,8 +175,38 @@ private fun refreshSwitch(switch: SwitchCompat) {
100
175
  switch.trackTintList =
101
176
  AppCompatResources.getColorStateList(context, R.color.abc_tint_switch_track)
102
177
  }
178
+ if (ownRipple) return
179
+ val ripple = themeRipple(switch.background) ?: return
180
+ val highlight = context.obtainStyledAttributes(intArrayOf(R.attr.colorControlHighlight))
181
+ try {
182
+ highlight.getColorStateList(0)?.let(ripple::setColor)
183
+ } finally {
184
+ highlight.recycle()
185
+ }
103
186
  }
104
187
 
188
+ /** Whether a colour filter is on [drawable], or on the state a state list shows. */
189
+ private fun hasFilter(drawable: Drawable): Boolean {
190
+ val shown = if (drawable is DrawableContainer) drawable.current ?: drawable else drawable
191
+ return drawable.colorFilter != null ||
192
+ shown.colorFilter != null ||
193
+ (shown as? NinePatchDrawable)?.paint?.colorFilter != null ||
194
+ (shown as? BitmapDrawable)?.paint?.colorFilter != null
195
+ }
196
+
197
+ /**
198
+ * The theme's borderless item background, whose colour is `colorControlHighlight`: a ripple with
199
+ * no layers, where React Native's `backgroundColor` makes one around a colour. Found inside the
200
+ * layers React Native wraps it in for an outline, a border or a shadow.
201
+ */
202
+ private fun themeRipple(drawable: Drawable?): RippleDrawable? =
203
+ when (drawable) {
204
+ is RippleDrawable -> drawable.takeIf { it.numberOfLayers == 0 }
205
+ is LayerDrawable ->
206
+ (0 until drawable.numberOfLayers).firstNotNullOfOrNull { themeRipple(drawable.getDrawable(it)) }
207
+ else -> null
208
+ }
209
+
105
210
  /**
106
211
  * AppCompat's thumb tint, which it builds in code: `colorSwitchThumbNormal`, and
107
212
  * `colorControlActivated` when checked.
@@ -48,10 +48,10 @@ export class ActivityIndicator extends ViewBase {
48
48
  return size === 'large' ? { width: 36, height: 36 } : { width: 20, height: 20 };
49
49
  }, /* @ts-ignore */
50
50
  ...(ngDevMode ? [{ debugName: "sizeStyle" }] : /* istanbul ignore next */ []));
51
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.0", ngImport: i0, type: ActivityIndicator, deps: null, target: i0.ɵɵFactoryTarget.Directive });
52
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.2.0", type: ActivityIndicator, isStandalone: true, selector: "activity-indicator", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, controlSize: { classPropertyName: "controlSize", publicName: "controlSize", isSignal: true, isRequired: false, transformFunction: null }, animating: { classPropertyName: "animating", publicName: "animating", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, hidesWhenStopped: { classPropertyName: "hidesWhenStopped", publicName: "hidesWhenStopped", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "style": "sizeStyle()", "size": "nativeSize()", "controlSize": "controlSize()", "animating": "animating()", "color": "color()", "hidesWhenStopped": "hidesWhenStopped()", "styleAttr": "styleAttr", "indeterminate": "indeterminate" } }, usesInheritance: true, ngImport: i0 });
51
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: ActivityIndicator, deps: null, target: i0.ɵɵFactoryTarget.Directive });
52
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.3.0", type: ActivityIndicator, isStandalone: true, selector: "activity-indicator", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, controlSize: { classPropertyName: "controlSize", publicName: "controlSize", isSignal: true, isRequired: false, transformFunction: null }, animating: { classPropertyName: "animating", publicName: "animating", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, hidesWhenStopped: { classPropertyName: "hidesWhenStopped", publicName: "hidesWhenStopped", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "style": "sizeStyle()", "size": "nativeSize()", "controlSize": "controlSize()", "animating": "animating()", "color": "color()", "hidesWhenStopped": "hidesWhenStopped()", "styleAttr": "styleAttr", "indeterminate": "indeterminate" } }, usesInheritance: true, ngImport: i0 });
53
53
  }
54
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.0", ngImport: i0, type: ActivityIndicator, decorators: [{
54
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: ActivityIndicator, decorators: [{
55
55
  type: Directive,
56
56
  args: [{
57
57
  selector: 'activity-indicator',
@@ -92,10 +92,10 @@ export class AnimatedStyleBase {
92
92
  this.handle?.connect(tag);
93
93
  this.connected = true;
94
94
  }
95
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.0", ngImport: i0, type: AnimatedStyleBase, deps: [], target: i0.ɵɵFactoryTarget.Directive });
96
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.2.0", type: AnimatedStyleBase, isStandalone: true, selector: "[animatedStyle]", inputs: { animatedStyle: { classPropertyName: "animatedStyle", publicName: "animatedStyle", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0 });
95
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: AnimatedStyleBase, deps: [], target: i0.ɵɵFactoryTarget.Directive });
96
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.3.0", type: AnimatedStyleBase, isStandalone: true, selector: "[animatedStyle]", inputs: { animatedStyle: { classPropertyName: "animatedStyle", publicName: "animatedStyle", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0 });
97
97
  }
98
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.0", ngImport: i0, type: AnimatedStyleBase, decorators: [{
98
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: AnimatedStyleBase, decorators: [{
99
99
  type: Directive,
100
100
  args: [{ selector: '[animatedStyle]' }]
101
101
  }], ctorParameters: () => [], propDecorators: { animatedStyle: [{ type: i0.Input, args: [{ isSignal: true, alias: "animatedStyle", required: true }] }] } });
@@ -18,10 +18,10 @@ import * as i0 from "@angular/core";
18
18
  export { Animated } from "./animated.js";
19
19
  export { Easing } from "./easing.js";
20
20
  export class AnimatedStyle extends AnimatedStyleBase {
21
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.0", ngImport: i0, type: AnimatedStyle, deps: null, target: i0.ɵɵFactoryTarget.Directive });
22
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.2.0", type: AnimatedStyle, isStandalone: true, selector: "[animatedStyle]", providers: [{ provide: ANIMATION, useValue: animationBackend }], usesInheritance: true, ngImport: i0 });
21
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: AnimatedStyle, deps: null, target: i0.ɵɵFactoryTarget.Directive });
22
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.3.0", type: AnimatedStyle, isStandalone: true, selector: "[animatedStyle]", providers: [{ provide: ANIMATION, useValue: animationBackend }], usesInheritance: true, ngImport: i0 });
23
23
  }
24
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.0", ngImport: i0, type: AnimatedStyle, decorators: [{
24
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: AnimatedStyle, decorators: [{
25
25
  type: Directive,
26
26
  args: [{
27
27
  selector: '[animatedStyle]',
@@ -45,10 +45,10 @@ const backend = {
45
45
  },
46
46
  };
47
47
  export class AnimatedStyle extends AnimatedStyleBase {
48
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.0", ngImport: i0, type: AnimatedStyle, deps: null, target: i0.ɵɵFactoryTarget.Directive });
49
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.2.0", type: AnimatedStyle, isStandalone: true, selector: "[animatedStyle]", providers: [{ provide: ANIMATION, useValue: backend }], usesInheritance: true, ngImport: i0 });
48
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: AnimatedStyle, deps: null, target: i0.ɵɵFactoryTarget.Directive });
49
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.3.0", type: AnimatedStyle, isStandalone: true, selector: "[animatedStyle]", providers: [{ provide: ANIMATION, useValue: backend }], usesInheritance: true, ngImport: i0 });
50
50
  }
51
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.0", ngImport: i0, type: AnimatedStyle, decorators: [{
51
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: AnimatedStyle, decorators: [{
52
52
  type: Directive,
53
53
  args: [{
54
54
  selector: '[animatedStyle]',
@@ -22,10 +22,10 @@ export class ContentContainer {
22
22
  ngOnChanges() {
23
23
  this.engine.adoptScope(this.node, this.classes() ? this.owner() : null);
24
24
  }
25
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.0", ngImport: i0, type: ContentContainer, deps: [], target: i0.ɵɵFactoryTarget.Directive });
26
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.2.0", type: ContentContainer, isStandalone: true, selector: "[contentContainerOf]", inputs: { owner: { classPropertyName: "owner", publicName: "contentContainerOf", isSignal: true, isRequired: true, transformFunction: null }, classes: { classPropertyName: "classes", publicName: "contentContainerClass", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()" } }, usesOnChanges: true, ngImport: i0 });
25
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: ContentContainer, deps: [], target: i0.ɵɵFactoryTarget.Directive });
26
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.3.0", type: ContentContainer, isStandalone: true, selector: "[contentContainerOf]", inputs: { owner: { classPropertyName: "owner", publicName: "contentContainerOf", isSignal: true, isRequired: true, transformFunction: null }, classes: { classPropertyName: "classes", publicName: "contentContainerClass", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()" } }, usesOnChanges: true, ngImport: i0 });
27
27
  }
28
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.0", ngImport: i0, type: ContentContainer, decorators: [{
28
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: ContentContainer, decorators: [{
29
29
  type: Directive,
30
30
  args: [{
31
31
  selector: '[contentContainerOf]',
@@ -61,10 +61,10 @@ export class ContextMenu {
61
61
  sendByNativeId(nativeID) {
62
62
  this.menus.setContextMenu(nativeID, untracked(this.sent), (id) => this.menu.choose(id));
63
63
  }
64
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.0", ngImport: i0, type: ContextMenu, deps: [], target: i0.ɵɵFactoryTarget.Directive });
65
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.2.0", type: ContextMenu, isStandalone: true, selector: "[contextMenu]", inputs: { contextMenu: { classPropertyName: "contextMenu", publicName: "contextMenu", isSignal: true, isRequired: false, transformFunction: null } }, providers: [{ provide: CONTEXT_MENU, useExisting: forwardRef(() => ContextMenu) }], ngImport: i0 });
64
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: ContextMenu, deps: [], target: i0.ɵɵFactoryTarget.Directive });
65
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.3.0", type: ContextMenu, isStandalone: true, selector: "[contextMenu]", inputs: { contextMenu: { classPropertyName: "contextMenu", publicName: "contextMenu", isSignal: true, isRequired: false, transformFunction: null } }, providers: [{ provide: CONTEXT_MENU, useExisting: forwardRef(() => ContextMenu) }], ngImport: i0 });
66
66
  }
67
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.0", ngImport: i0, type: ContextMenu, decorators: [{
67
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: ContextMenu, decorators: [{
68
68
  type: Directive,
69
69
  args: [{
70
70
  selector: '[contextMenu]',
@@ -47,10 +47,10 @@ export class FileDrop {
47
47
  byNativeId(engine, node, (nativeID) => module.setFileDrop(nativeID, (event) => hear(event.type, event)), (nativeID) => module.setFileDrop(nativeID, null))();
48
48
  }
49
49
  }
50
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.0", ngImport: i0, type: FileDrop, deps: [], target: i0.ɵɵFactoryTarget.Directive });
51
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.2.0", type: FileDrop, isStandalone: true, selector: "[fileDrop],[fileDragEnter],[fileDragLeave]", outputs: { fileDragEnter: "fileDragEnter", fileDragLeave: "fileDragLeave", fileDrop: "fileDrop" }, ngImport: i0 });
50
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: FileDrop, deps: [], target: i0.ɵɵFactoryTarget.Directive });
51
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.3.0", type: FileDrop, isStandalone: true, selector: "[fileDrop],[fileDragEnter],[fileDragLeave]", outputs: { fileDragEnter: "fileDragEnter", fileDragLeave: "fileDragLeave", fileDrop: "fileDrop" }, ngImport: i0 });
52
52
  }
53
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.0", ngImport: i0, type: FileDrop, decorators: [{
53
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: FileDrop, decorators: [{
54
54
  type: Directive,
55
55
  args: [{ selector: '[fileDrop],[fileDragEnter],[fileDragLeave]' }]
56
56
  }], ctorParameters: () => [], propDecorators: { fileDragEnter: [{ type: i0.Output, args: ["fileDragEnter"] }], fileDragLeave: [{ type: i0.Output, args: ["fileDragLeave"] }], fileDrop: [{ type: i0.Output, args: ["fileDrop"] }] } });
@@ -85,10 +85,10 @@ export class DragItem {
85
85
  send?.();
86
86
  });
87
87
  }
88
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.0", ngImport: i0, type: DragItem, deps: [], target: i0.ɵɵFactoryTarget.Directive });
89
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.2.0", type: DragItem, isStandalone: true, selector: "[dragItem]", inputs: { dragItem: { classPropertyName: "dragItem", publicName: "dragItem", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
88
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: DragItem, deps: [], target: i0.ɵɵFactoryTarget.Directive });
89
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.3.0", type: DragItem, isStandalone: true, selector: "[dragItem]", inputs: { dragItem: { classPropertyName: "dragItem", publicName: "dragItem", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
90
90
  }
91
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.0", ngImport: i0, type: DragItem, decorators: [{
91
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: DragItem, decorators: [{
92
92
  type: Directive,
93
93
  args: [{ selector: '[dragItem]' }]
94
94
  }], ctorParameters: () => [], propDecorators: { dragItem: [{ type: i0.Input, args: [{ isSignal: true, alias: "dragItem", required: false }] }] } });
@@ -16,19 +16,19 @@ export class NativeGesture {
16
16
  gesture = input.required(/* @ts-ignore */
17
17
  ...(ngDevMode ? [{ debugName: "gesture" }] : /* istanbul ignore next */ []));
18
18
  trackGesture = input(true, { ...(ngDevMode ? { debugName: "trackGesture" } : /* istanbul ignore next */ {}), transform: booleanOr(true) });
19
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.0", ngImport: i0, type: NativeGesture, deps: [], target: i0.ɵɵFactoryTarget.Directive });
20
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.2.0", type: NativeGesture, isStandalone: true, selector: "[gesture]", inputs: { gesture: { classPropertyName: "gesture", publicName: "gesture", isSignal: true, isRequired: true, transformFunction: null }, trackGesture: { classPropertyName: "trackGesture", publicName: "trackGesture", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
19
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: NativeGesture, deps: [], target: i0.ɵɵFactoryTarget.Directive });
20
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.3.0", type: NativeGesture, isStandalone: true, selector: "[gesture]", inputs: { gesture: { classPropertyName: "gesture", publicName: "gesture", isSignal: true, isRequired: true, transformFunction: null }, trackGesture: { classPropertyName: "trackGesture", publicName: "trackGesture", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
21
21
  }
22
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.0", ngImport: i0, type: NativeGesture, decorators: [{
22
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: NativeGesture, decorators: [{
23
23
  type: Directive,
24
24
  args: [{ selector: '[gesture]' }]
25
25
  }], propDecorators: { gesture: [{ type: i0.Input, args: [{ isSignal: true, alias: "gesture", required: true }] }], trackGesture: [{ type: i0.Input, args: [{ isSignal: true, alias: "trackGesture", required: false }] }] } });
26
26
  /** A box that fills its parent, as the native root does. `@ng-native/web`'s reset gives it `flex: 1`. */
27
27
  export class GestureRoot {
28
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.0", ngImport: i0, type: GestureRoot, deps: [], target: i0.ɵɵFactoryTarget.Component });
29
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.2.0", type: GestureRoot, isStandalone: true, selector: "gesture-root", ngImport: i0, template: '<ng-content />', isInline: true });
28
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GestureRoot, deps: [], target: i0.ɵɵFactoryTarget.Component });
29
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.3.0", type: GestureRoot, isStandalone: true, selector: "gesture-root", ngImport: i0, template: '<ng-content />', isInline: true });
30
30
  }
31
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.0", ngImport: i0, type: GestureRoot, decorators: [{
31
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GestureRoot, decorators: [{
32
32
  type: Component,
33
33
  args: [{ selector: 'gesture-root', template: '<ng-content />' }]
34
34
  }] });
package/dist/gestures.js CHANGED
@@ -170,10 +170,10 @@ const backend = {
170
170
  },
171
171
  };
172
172
  export class NativeGesture extends NativeGestureBase {
173
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.0", ngImport: i0, type: NativeGesture, deps: null, target: i0.ɵɵFactoryTarget.Directive });
174
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.2.0", type: NativeGesture, isStandalone: true, selector: "[gesture]", providers: [{ provide: GESTURES, useValue: backend }], usesInheritance: true, ngImport: i0 });
173
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: NativeGesture, deps: null, target: i0.ɵɵFactoryTarget.Directive });
174
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.3.0", type: NativeGesture, isStandalone: true, selector: "[gesture]", providers: [{ provide: GESTURES, useValue: backend }], usesInheritance: true, ngImport: i0 });
175
175
  }
176
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.0", ngImport: i0, type: NativeGesture, decorators: [{
176
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: NativeGesture, decorators: [{
177
177
  type: Directive,
178
178
  args: [{
179
179
  selector: '[gesture]',
@@ -205,10 +205,10 @@ export class GestureRoot {
205
205
  // architecture needs, and it can only happen once Fabric is there to install them into.
206
206
  maybeInitializeFabric();
207
207
  }
208
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.0", ngImport: i0, type: GestureRoot, deps: [], target: i0.ɵɵFactoryTarget.Component });
209
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.2.0", type: GestureRoot, isStandalone: true, selector: "gesture-root", ngImport: i0, template: '<ng-content />', isInline: true });
208
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GestureRoot, deps: [], target: i0.ɵɵFactoryTarget.Component });
209
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.3.0", type: GestureRoot, isStandalone: true, selector: "gesture-root", ngImport: i0, template: '<ng-content />', isInline: true });
210
210
  }
211
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.0", ngImport: i0, type: GestureRoot, decorators: [{
211
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GestureRoot, decorators: [{
212
212
  type: Component,
213
213
  args: [{ selector: 'gesture-root', template: '<ng-content />' }]
214
214
  }], ctorParameters: () => [] });
@@ -27,7 +27,7 @@
27
27
  *
28
28
  * The app must have `@react-native-masked-view/masked-view` installed, which is where the native
29
29
  * view comes from (`npx expo install @react-native-masked-view/masked-view`); none of its
30
- * JavaScript is imported. The view masks what is inside it by its first child, so the letters are
30
+ * JavaScript is imported. On macOS and Linux the desktop host draws the view itself. The view masks what is inside it by its first child, so the letters are
31
31
  * that child and the background is painted on a view behind them.
32
32
  */
33
33
  import { type AfterContentChecked, type AfterViewInit } from '@angular/core';
@@ -27,7 +27,7 @@
27
27
  *
28
28
  * The app must have `@react-native-masked-view/masked-view` installed, which is where the native
29
29
  * view comes from (`npx expo install @react-native-masked-view/masked-view`); none of its
30
- * JavaScript is imported. The view masks what is inside it by its first child, so the letters are
30
+ * JavaScript is imported. On macOS and Linux the desktop host draws the view itself. The view masks what is inside it by its first child, so the letters are
31
31
  * that child and the background is painted on a view behind them.
32
32
  */
33
33
  import { Component, ElementRef, viewChild, } from '@angular/core';
@@ -89,13 +89,13 @@ export class GradientText extends ViewBase {
89
89
  const engine = this.engine;
90
90
  engine.paintOn?.(this.node, this.fill().nativeElement);
91
91
  }
92
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.0", ngImport: i0, type: GradientText, deps: [], target: i0.ɵɵFactoryTarget.Component });
93
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.2.0", type: GradientText, isStandalone: true, selector: "gradient-text", viewQueries: [{ propertyName: "fill", first: true, predicate: ["fill"], descendants: true, read: ElementRef, isSignal: true }, { propertyName: "letters", first: true, predicate: ["letters"], descendants: true, read: ElementRef, isSignal: true }], usesInheritance: true, ngImport: i0, template: `
92
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GradientText, deps: [], target: i0.ɵɵFactoryTarget.Component });
93
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.3.0", type: GradientText, isStandalone: true, selector: "gradient-text", viewQueries: [{ propertyName: "fill", first: true, predicate: ["fill"], descendants: true, read: ElementRef, isSignal: true }, { propertyName: "letters", first: true, predicate: ["letters"], descendants: true, read: ElementRef, isSignal: true }], usesInheritance: true, ngImport: i0, template: `
94
94
  <text #letters class="letters"><ng-content /></text>
95
95
  <view #fill class="fill" pointerEvents="none"></view>
96
96
  `, isInline: true, styles: ["\n .letters {\n color: black;\n }\n .fill {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n }\n "], dependencies: [{ kind: "directive", type: Text, selector: "text", inputs: ["numberOfLines", "ellipsizeMode", "selectable", "selectionColor", "allowFontScaling", "maxFontSizeMultiplier", "dynamicTypeRamp", "adjustsFontSizeToFit", "minimumFontScale", "lineBreakStrategyIOS", "textBreakStrategy", "dataDetectorType", "android_hyphenationFrequency", "pressable", "suppressHighlighting"], exportAs: ["text"] }, { kind: "directive", type: View, selector: "view" }] });
97
97
  }
98
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.0", ngImport: i0, type: GradientText, decorators: [{
98
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GradientText, decorators: [{
99
99
  type: Component,
100
100
  args: [{ selector: 'gradient-text', imports: [Text, View], template: `
101
101
  <text #letters class="letters"><ng-content /></text>
@@ -1 +1 @@
1
- {"version":3,"file":"gradient-text.js","sourceRoot":"","sources":["../src/gradient-text.ts"],"names":[],"mappings":"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","sourcesContent":["/**\n * Text filled with a gradient, or with any background: the background is drawn through the shapes\n * of the letters.\n *\n * ```html\n * <gradient-text class=\"brand\">Week</gradient-text>\n * ```\n *\n * ```css\n * .brand {\n * background-image: linear-gradient(to bottom, #437dfc, #4ad0ef);\n * background-clip: text;\n * color: transparent;\n * font-size: 34px;\n * font-weight: 700;\n * }\n * ```\n *\n * The rule is the one a web page writes. `background-clip: text` is what this element does, so a\n * rule that has it applies to `<gradient-text>` and to nothing else: on a `<text>` it would leave\n * transparent letters on a block of colour. The `color` is not used, since the letters are the\n * mask and are drawn in full.\n *\n * It is text like any other: it wraps, follows the device's text size, takes `<text>` spans\n * inside it with their own weight or style, and is sized by its letters. What a span cannot have\n * here is a colour of its own, because the fill is the one background behind all of it.\n *\n * The app must have `@react-native-masked-view/masked-view` installed, which is where the native\n * view comes from (`npx expo install @react-native-masked-view/masked-view`); none of its\n * JavaScript is imported. The view masks what is inside it by its first child, so the letters are\n * that child and the background is painted on a view behind them.\n */\nimport {\n Component,\n ElementRef,\n viewChild,\n type AfterContentChecked,\n type AfterViewInit,\n} from '@angular/core';\nimport { registerViewName, type Engine, type EngineNode } from '@ng-native/fabric';\nimport { Text } from './text.ts';\nimport { View } from './view.ts';\nimport { ViewBase } from './view-base.ts';\n\n/** The characters under a node, in order. */\nconst textOf = (node: EngineNode): string =>\n node.nodeKind === 'text' ? node.nodeText : node.childList.map(textOf).join('');\n\nlet registered = false;\n\n/** Teach the engine the element, once, before its first commit. */\nfunction registerGradientText(): void {\n if (registered) return;\n registered = true;\n registerViewName('gradient-text', 'RNCMaskedView');\n}\n\n@Component({\n selector: 'gradient-text',\n imports: [Text, View],\n template: `\n <text #letters class=\"letters\"><ng-content /></text>\n <view #fill class=\"fill\" pointerEvents=\"none\"></view>\n `,\n styles: `\n .letters {\n color: black;\n }\n .fill {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n }\n `,\n})\nexport class GradientText extends ViewBase implements AfterViewInit, AfterContentChecked {\n private readonly fill = viewChild.required('fill', { read: ElementRef });\n private readonly letters = viewChild('letters', { read: ElementRef });\n /** The label last written from the letters, to write it again only when they change. */\n private spoken: string | undefined;\n\n constructor() {\n super();\n registerGradientText();\n // One element to a screen reader, as a text is. An input of the same name is written after.\n this.engine.setProp(this.node, 'accessible', true);\n this.engine.setProp(this.node, 'accessibilityRole', 'text');\n }\n\n ngAfterViewInit(): void {\n this.paintOnFill();\n this.labelFromLetters();\n }\n\n ngAfterContentChecked(): void {\n this.labelFromLetters();\n }\n\n /**\n * Say the letters. iOS takes the mask out of the view hierarchy, so there is no text under the\n * element for VoiceOver to read, and an element with nothing to say is not found at all. A\n * label the app gave is left as it is.\n */\n private labelFromLetters(): void {\n const letters = this.letters()?.nativeElement as EngineNode | undefined;\n const given = this.accessibilityLabel() ?? this.ariaLabel();\n if (!letters || given !== undefined) return;\n const label = textOf(letters).replace(/\\s+/g, ' ').trim();\n if (label === this.spoken) return;\n this.spoken = label;\n this.engine.setProp(this.node, 'accessibilityLabel', label || null);\n }\n\n /**\n * The host's background is the fill's to paint: the view masks its children and not itself.\n * Before the first commit, so the background is never drawn unmasked.\n */\n private paintOnFill(): void {\n const engine = this.engine as Partial<Pick<Engine, 'paintOn'>>;\n engine.paintOn?.(this.node as EngineNode, this.fill().nativeElement as EngineNode);\n }\n}\n"]}
1
+ {"version":3,"file":"gradient-text.js","sourceRoot":"","sources":["../src/gradient-text.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,OAAO,EACL,SAAS,EACT,UAAU,EACV,SAAS,GAGV,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,gBAAgB,EAAgC,MAAM,mBAAmB,CAAC;AACnF,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;;AAE1C,6CAA6C;AAC7C,MAAM,MAAM,GAAG,CAAC,IAAgB,EAAU,EAAE,CAC1C,IAAI,CAAC,QAAQ,KAAK,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAEjF,IAAI,UAAU,GAAG,KAAK,CAAC;AAEvB,mEAAmE;AACnE,SAAS,oBAAoB;IAC3B,IAAI,UAAU;QAAE,OAAO;IACvB,UAAU,GAAG,IAAI,CAAC;IAClB,gBAAgB,CAAC,eAAe,EAAE,eAAe,CAAC,CAAC;AACrD,CAAC;AAsBD,MAAM,OAAO,YAAa,SAAQ,QAAQ;IACvB,IAAI,GAAG,SAAS,CAAC,QAAQ,CAAC,MAAM,4EAAI,IAAI,EAAE,UAAU,GAAG,CAAC;IACxD,OAAO,GAAG,SAAS,CAAC,SAAS,+EAAI,IAAI,EAAE,UAAU,GAAG,CAAC;IACtE,wFAAwF;IAChF,MAAM,CAAqB;IAEnC;QACE,KAAK,EAAE,CAAC;QACR,oBAAoB,EAAE,CAAC;QACvB,4FAA4F;QAC5F,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,YAAY,EAAE,IAAI,CAAC,CAAC;QACnD,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,mBAAmB,EAAE,MAAM,CAAC,CAAC;IAC9D,CAAC;IAED,eAAe;QACb,IAAI,CAAC,WAAW,EAAE,CAAC;QACnB,IAAI,CAAC,gBAAgB,EAAE,CAAC;IAC1B,CAAC;IAED,qBAAqB;QACnB,IAAI,CAAC,gBAAgB,EAAE,CAAC;IAC1B,CAAC;IAED;;;;OAIG;IACK,gBAAgB;QACtB,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,EAAE,EAAE,aAAuC,CAAC;QACxE,MAAM,KAAK,GAAG,IAAI,CAAC,kBAAkB,EAAE,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC;QAC5D,IAAI,CAAC,OAAO,IAAI,KAAK,KAAK,SAAS;YAAE,OAAO;QAC5C,MAAM,KAAK,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC;QAC1D,IAAI,KAAK,KAAK,IAAI,CAAC,MAAM;YAAE,OAAO;QAClC,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACpB,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,oBAAoB,EAAE,KAAK,IAAI,IAAI,CAAC,CAAC;IACtE,CAAC;IAED;;;OAGG;IACK,WAAW;QACjB,MAAM,MAAM,GAAG,IAAI,CAAC,MAA0C,CAAC;QAC/D,MAAM,CAAC,OAAO,EAAE,CAAC,IAAI,CAAC,IAAkB,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC,aAA2B,CAAC,CAAC;IACrF,CAAC;uGA7CU,YAAY;2FAAZ,YAAY,kJACoC,UAAU,6GACb,UAAU,oEAnBxD;;;GAGT,2OAJS,IAAI,mYAAE,IAAI;;2FAkBT,YAAY;kBApBxB,SAAS;+BACE,eAAe,WAChB,CAAC,IAAI,EAAE,IAAI,CAAC,YACX;;;GAGT;4FAe0C,MAAM,OAAE,EAAE,IAAI,EAAE,UAAU,EAAE,+DAClC,SAAS,OAAE,EAAE,IAAI,EAAE,UAAU,EAAE","sourcesContent":["/**\n * Text filled with a gradient, or with any background: the background is drawn through the shapes\n * of the letters.\n *\n * ```html\n * <gradient-text class=\"brand\">Week</gradient-text>\n * ```\n *\n * ```css\n * .brand {\n * background-image: linear-gradient(to bottom, #437dfc, #4ad0ef);\n * background-clip: text;\n * color: transparent;\n * font-size: 34px;\n * font-weight: 700;\n * }\n * ```\n *\n * The rule is the one a web page writes. `background-clip: text` is what this element does, so a\n * rule that has it applies to `<gradient-text>` and to nothing else: on a `<text>` it would leave\n * transparent letters on a block of colour. The `color` is not used, since the letters are the\n * mask and are drawn in full.\n *\n * It is text like any other: it wraps, follows the device's text size, takes `<text>` spans\n * inside it with their own weight or style, and is sized by its letters. What a span cannot have\n * here is a colour of its own, because the fill is the one background behind all of it.\n *\n * The app must have `@react-native-masked-view/masked-view` installed, which is where the native\n * view comes from (`npx expo install @react-native-masked-view/masked-view`); none of its\n * JavaScript is imported. On macOS and Linux the desktop host draws the view itself. The view masks what is inside it by its first child, so the letters are\n * that child and the background is painted on a view behind them.\n */\nimport {\n Component,\n ElementRef,\n viewChild,\n type AfterContentChecked,\n type AfterViewInit,\n} from '@angular/core';\nimport { registerViewName, type Engine, type EngineNode } from '@ng-native/fabric';\nimport { Text } from './text.ts';\nimport { View } from './view.ts';\nimport { ViewBase } from './view-base.ts';\n\n/** The characters under a node, in order. */\nconst textOf = (node: EngineNode): string =>\n node.nodeKind === 'text' ? node.nodeText : node.childList.map(textOf).join('');\n\nlet registered = false;\n\n/** Teach the engine the element, once, before its first commit. */\nfunction registerGradientText(): void {\n if (registered) return;\n registered = true;\n registerViewName('gradient-text', 'RNCMaskedView');\n}\n\n@Component({\n selector: 'gradient-text',\n imports: [Text, View],\n template: `\n <text #letters class=\"letters\"><ng-content /></text>\n <view #fill class=\"fill\" pointerEvents=\"none\"></view>\n `,\n styles: `\n .letters {\n color: black;\n }\n .fill {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n }\n `,\n})\nexport class GradientText extends ViewBase implements AfterViewInit, AfterContentChecked {\n private readonly fill = viewChild.required('fill', { read: ElementRef });\n private readonly letters = viewChild('letters', { read: ElementRef });\n /** The label last written from the letters, to write it again only when they change. */\n private spoken: string | undefined;\n\n constructor() {\n super();\n registerGradientText();\n // One element to a screen reader, as a text is. An input of the same name is written after.\n this.engine.setProp(this.node, 'accessible', true);\n this.engine.setProp(this.node, 'accessibilityRole', 'text');\n }\n\n ngAfterViewInit(): void {\n this.paintOnFill();\n this.labelFromLetters();\n }\n\n ngAfterContentChecked(): void {\n this.labelFromLetters();\n }\n\n /**\n * Say the letters. iOS takes the mask out of the view hierarchy, so there is no text under the\n * element for VoiceOver to read, and an element with nothing to say is not found at all. A\n * label the app gave is left as it is.\n */\n private labelFromLetters(): void {\n const letters = this.letters()?.nativeElement as EngineNode | undefined;\n const given = this.accessibilityLabel() ?? this.ariaLabel();\n if (!letters || given !== undefined) return;\n const label = textOf(letters).replace(/\\s+/g, ' ').trim();\n if (label === this.spoken) return;\n this.spoken = label;\n this.engine.setProp(this.node, 'accessibilityLabel', label || null);\n }\n\n /**\n * The host's background is the fill's to paint: the view masks its children and not itself.\n * Before the first commit, so the background is never drawn unmasked.\n */\n private paintOnFill(): void {\n const engine = this.engine as Partial<Pick<Engine, 'paintOn'>>;\n engine.paintOn?.(this.node as EngineNode, this.fill().nativeElement as EngineNode);\n }\n}\n"]}
@@ -42,8 +42,8 @@ export class ImageBackground extends ViewBase {
42
42
  };
43
43
  }, /* @ts-ignore */
44
44
  ...(ngDevMode ? [{ debugName: "fill" }] : /* istanbul ignore next */ []));
45
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.0", ngImport: i0, type: ImageBackground, deps: null, target: i0.ɵɵFactoryTarget.Component });
46
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.2.0", type: ImageBackground, isStandalone: true, selector: "image-background", inputs: { source: { classPropertyName: "source", publicName: "source", isSignal: true, isRequired: false, transformFunction: null }, defaultSource: { classPropertyName: "defaultSource", publicName: "defaultSource", isSignal: true, isRequired: false, transformFunction: null }, resizeMode: { classPropertyName: "resizeMode", publicName: "resizeMode", isSignal: true, isRequired: false, transformFunction: null }, blurRadius: { classPropertyName: "blurRadius", publicName: "blurRadius", isSignal: true, isRequired: false, transformFunction: null }, tintColor: { classPropertyName: "tintColor", publicName: "tintColor", isSignal: true, isRequired: false, transformFunction: null }, alt: { classPropertyName: "alt", publicName: "alt", isSignal: true, isRequired: false, transformFunction: null }, imageStyle: { classPropertyName: "imageStyle", publicName: "imageStyle", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0, template: `
45
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: ImageBackground, deps: null, target: i0.ɵɵFactoryTarget.Component });
46
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.3.0", type: ImageBackground, isStandalone: true, selector: "image-background", inputs: { source: { classPropertyName: "source", publicName: "source", isSignal: true, isRequired: false, transformFunction: null }, defaultSource: { classPropertyName: "defaultSource", publicName: "defaultSource", isSignal: true, isRequired: false, transformFunction: null }, resizeMode: { classPropertyName: "resizeMode", publicName: "resizeMode", isSignal: true, isRequired: false, transformFunction: null }, blurRadius: { classPropertyName: "blurRadius", publicName: "blurRadius", isSignal: true, isRequired: false, transformFunction: null }, tintColor: { classPropertyName: "tintColor", publicName: "tintColor", isSignal: true, isRequired: false, transformFunction: null }, alt: { classPropertyName: "alt", publicName: "alt", isSignal: true, isRequired: false, transformFunction: null }, imageStyle: { classPropertyName: "imageStyle", publicName: "imageStyle", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0, template: `
47
47
  <image
48
48
  [source]="source()"
49
49
  [style]="fill()"
@@ -57,7 +57,7 @@ export class ImageBackground extends ViewBase {
57
57
  <ng-content />
58
58
  `, isInline: true, dependencies: [{ kind: "directive", type: Image, selector: "image", inputs: ["source", "src", "srcSet", "defaultSource", "loadingIndicatorSource", "resizeMode", "resizeMethod", "resizeMultiplier", "blurRadius", "capInsets", "tintColor", "fadeDuration", "progressiveRenderingEnabled", "alt", "crossOrigin", "referrerPolicy"] }] });
59
59
  }
60
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.0", ngImport: i0, type: ImageBackground, decorators: [{
60
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: ImageBackground, decorators: [{
61
61
  type: Component,
62
62
  args: [{
63
63
  selector: 'image-background',
package/dist/image.js CHANGED
@@ -129,10 +129,10 @@ export class Image extends ViewBase {
129
129
  headers['Referrer-Policy'] = referrer;
130
130
  return Object.keys(headers).length ? headers : null;
131
131
  }
132
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.0", ngImport: i0, type: Image, deps: null, target: i0.ɵɵFactoryTarget.Directive });
133
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.2.0", type: Image, isStandalone: true, selector: "image", inputs: { source: { classPropertyName: "source", publicName: "source", isSignal: true, isRequired: false, transformFunction: null }, src: { classPropertyName: "src", publicName: "src", isSignal: true, isRequired: false, transformFunction: null }, srcSet: { classPropertyName: "srcSet", publicName: "srcSet", isSignal: true, isRequired: false, transformFunction: null }, defaultSource: { classPropertyName: "defaultSource", publicName: "defaultSource", isSignal: true, isRequired: false, transformFunction: null }, loadingIndicatorSource: { classPropertyName: "loadingIndicatorSource", publicName: "loadingIndicatorSource", isSignal: true, isRequired: false, transformFunction: null }, resizeMode: { classPropertyName: "resizeMode", publicName: "resizeMode", isSignal: true, isRequired: false, transformFunction: null }, resizeMethod: { classPropertyName: "resizeMethod", publicName: "resizeMethod", isSignal: true, isRequired: false, transformFunction: null }, resizeMultiplier: { classPropertyName: "resizeMultiplier", publicName: "resizeMultiplier", isSignal: true, isRequired: false, transformFunction: null }, blurRadius: { classPropertyName: "blurRadius", publicName: "blurRadius", isSignal: true, isRequired: false, transformFunction: null }, capInsets: { classPropertyName: "capInsets", publicName: "capInsets", isSignal: true, isRequired: false, transformFunction: null }, tintColor: { classPropertyName: "tintColor", publicName: "tintColor", isSignal: true, isRequired: false, transformFunction: null }, fadeDuration: { classPropertyName: "fadeDuration", publicName: "fadeDuration", isSignal: true, isRequired: false, transformFunction: null }, progressiveRenderingEnabled: { classPropertyName: "progressiveRenderingEnabled", publicName: "progressiveRenderingEnabled", isSignal: true, isRequired: false, transformFunction: null }, alt: { classPropertyName: "alt", publicName: "alt", isSignal: true, isRequired: false, transformFunction: null }, crossOrigin: { classPropertyName: "crossOrigin", publicName: "crossOrigin", isSignal: true, isRequired: false, transformFunction: null }, referrerPolicy: { classPropertyName: "referrerPolicy", publicName: "referrerPolicy", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "source": "resolvedSource()", "defaultSource": "defaultSource()", "loadingIndicatorSource": "loadingIndicatorSource()", "resizeMode": "resizeMode()", "resizeMethod": "resizeMethod()", "resizeMultiplier": "resizeMultiplier()", "blurRadius": "blurRadius()", "capInsets": "capInsets()", "tintColor": "tintColor()", "fadeDuration": "fadeDuration()", "progressiveRenderingEnabled": "progressiveRenderingEnabled()", "intrinsicSize": "intrinsic()" } }, usesInheritance: true, ngImport: i0 });
132
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: Image, deps: null, target: i0.ɵɵFactoryTarget.Directive });
133
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.3.0", type: Image, isStandalone: true, selector: "image", inputs: { source: { classPropertyName: "source", publicName: "source", isSignal: true, isRequired: false, transformFunction: null }, src: { classPropertyName: "src", publicName: "src", isSignal: true, isRequired: false, transformFunction: null }, srcSet: { classPropertyName: "srcSet", publicName: "srcSet", isSignal: true, isRequired: false, transformFunction: null }, defaultSource: { classPropertyName: "defaultSource", publicName: "defaultSource", isSignal: true, isRequired: false, transformFunction: null }, loadingIndicatorSource: { classPropertyName: "loadingIndicatorSource", publicName: "loadingIndicatorSource", isSignal: true, isRequired: false, transformFunction: null }, resizeMode: { classPropertyName: "resizeMode", publicName: "resizeMode", isSignal: true, isRequired: false, transformFunction: null }, resizeMethod: { classPropertyName: "resizeMethod", publicName: "resizeMethod", isSignal: true, isRequired: false, transformFunction: null }, resizeMultiplier: { classPropertyName: "resizeMultiplier", publicName: "resizeMultiplier", isSignal: true, isRequired: false, transformFunction: null }, blurRadius: { classPropertyName: "blurRadius", publicName: "blurRadius", isSignal: true, isRequired: false, transformFunction: null }, capInsets: { classPropertyName: "capInsets", publicName: "capInsets", isSignal: true, isRequired: false, transformFunction: null }, tintColor: { classPropertyName: "tintColor", publicName: "tintColor", isSignal: true, isRequired: false, transformFunction: null }, fadeDuration: { classPropertyName: "fadeDuration", publicName: "fadeDuration", isSignal: true, isRequired: false, transformFunction: null }, progressiveRenderingEnabled: { classPropertyName: "progressiveRenderingEnabled", publicName: "progressiveRenderingEnabled", isSignal: true, isRequired: false, transformFunction: null }, alt: { classPropertyName: "alt", publicName: "alt", isSignal: true, isRequired: false, transformFunction: null }, crossOrigin: { classPropertyName: "crossOrigin", publicName: "crossOrigin", isSignal: true, isRequired: false, transformFunction: null }, referrerPolicy: { classPropertyName: "referrerPolicy", publicName: "referrerPolicy", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "source": "resolvedSource()", "defaultSource": "defaultSource()", "loadingIndicatorSource": "loadingIndicatorSource()", "resizeMode": "resizeMode()", "resizeMethod": "resizeMethod()", "resizeMultiplier": "resizeMultiplier()", "blurRadius": "blurRadius()", "capInsets": "capInsets()", "tintColor": "tintColor()", "fadeDuration": "fadeDuration()", "progressiveRenderingEnabled": "progressiveRenderingEnabled()", "intrinsicSize": "intrinsic()" } }, usesInheritance: true, ngImport: i0 });
134
134
  }
135
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.0", ngImport: i0, type: Image, decorators: [{
135
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: Image, decorators: [{
136
136
  type: Directive,
137
137
  args: [{
138
138
  selector: 'image',
package/dist/index.d.ts CHANGED
@@ -23,10 +23,11 @@ export { PRESS_MENU, PressMenu } from './press-menu.ts';
23
23
  export { Shortcut } from './shortcut.ts';
24
24
  export { DragItem, FileDrop, type DragItemValue, type DroppedFile, type FileDropEvent, } from './drag-and-drop.ts';
25
25
  export { TrayIcon } from './tray-icon.ts';
26
- export { SplitView, SplitViewContent, type SplitViewShowing } from './split-view.ts';
26
+ export { SplitView, SplitViewContent, type SplitViewContentStyle, type SplitViewShowing, } from './split-view.ts';
27
27
  export { Sidebar, type SidebarRow } from './sidebar.ts';
28
28
  export { SidebarSection } from './sidebar-section.ts';
29
29
  export { SidebarItem, type SidebarItemIcon } from './sidebar-item.ts';
30
+ export { VisualEffect, type VisualEffectBlendingMode, type VisualEffectMaterial, type VisualEffectState, } from './visual-effect.ts';
30
31
  export { NativeButton, type ButtonIcon, type ButtonKind } from './native-button.ts';
31
32
  export { NativeRef } from './native-ref.ts';
32
33
  export { ControlBase, PressBehavior, Pressable, TouchableBase, type AndroidRipple, type PressEvent, } from './pressable.ts';
@@ -38,7 +39,7 @@ export { SafeAreaProvider } from './safe-area-provider.ts';
38
39
  export { SafeAreaView, type SafeAreaEdgeMode } from './safe-area-view.ts';
39
40
  export { type KeyboardShouldPersistTaps } from './keyboard-taps.ts';
40
41
  export { ScrollView } from './scroll-view.ts';
41
- export { SectionEdgeSeparator, SectionFooter, SectionHeader, SectionItem, SectionList, SectionSeparator, type SectionContext, type SectionEdgeSeparatorContext, type SectionItemContext, type SectionListSection, type SectionRow, type SectionSeparatorContext, } from './section-list.ts';
42
+ export { SectionEdgeSeparator, SectionFooter, SectionHeader, SectionItem, SectionList, SectionSeparator, flattenSections, type SectionContext, type SectionEdgeSeparatorContext, type SectionItemContext, type SectionListSection, type SectionRow, type SectionSeparatorContext, } from './section-list.ts';
42
43
  export { Switch } from './switch.ts';
43
44
  export { Text, type DynamicTypeRamp, type EllipsizeMode } from './text.ts';
44
45
  export { TextInput, type KeyboardType, type ReturnKeyType, type SubmitBehavior, } from './text-input.ts';
package/dist/index.js CHANGED
@@ -23,10 +23,11 @@ export { PRESS_MENU, PressMenu } from "./press-menu.js";
23
23
  export { Shortcut } from "./shortcut.js";
24
24
  export { DragItem, FileDrop, } from "./drag-and-drop.js";
25
25
  export { TrayIcon } from "./tray-icon.js";
26
- export { SplitView, SplitViewContent } from "./split-view.js";
26
+ export { SplitView, SplitViewContent, } from "./split-view.js";
27
27
  export { Sidebar } from "./sidebar.js";
28
28
  export { SidebarSection } from "./sidebar-section.js";
29
29
  export { SidebarItem } from "./sidebar-item.js";
30
+ export { VisualEffect, } from "./visual-effect.js";
30
31
  export { NativeButton } from "./native-button.js";
31
32
  export { NativeRef } from "./native-ref.js";
32
33
  export { ControlBase, PressBehavior, Pressable, TouchableBase, } from "./pressable.js";
@@ -38,7 +39,7 @@ export { SafeAreaProvider } from "./safe-area-provider.js";
38
39
  export { SafeAreaView } from "./safe-area-view.js";
39
40
  export {} from "./keyboard-taps.js";
40
41
  export { ScrollView } from "./scroll-view.js";
41
- export { SectionEdgeSeparator, SectionFooter, SectionHeader, SectionItem, SectionList, SectionSeparator, } from "./section-list.js";
42
+ export { SectionEdgeSeparator, SectionFooter, SectionHeader, SectionItem, SectionList, SectionSeparator, flattenSections, } from "./section-list.js";
42
43
  export { Switch } from "./switch.js";
43
44
  export { Text } from "./text.js";
44
45
  export { TextInput, } from "./text-input.js";