@ng-native/expo 0.12.0 → 0.14.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 (88) hide show
  1. package/android/build.gradle +2 -0
  2. package/android/src/main/java/dev/ngnative/expo/SearchFieldModule.kt +111 -0
  3. package/dist/app-info.d.ts +18 -15
  4. package/dist/app-info.js +17 -5
  5. package/dist/app-info.js.map +1 -1
  6. package/dist/apple-sign-in.js +5 -4
  7. package/dist/apple-sign-in.js.map +1 -1
  8. package/dist/assets.js +2 -2
  9. package/dist/assets.js.map +1 -1
  10. package/dist/async-storage.js +4 -1
  11. package/dist/async-storage.js.map +1 -1
  12. package/dist/audio.js +2 -2
  13. package/dist/audio.js.map +1 -1
  14. package/dist/battery.js +4 -1
  15. package/dist/battery.js.map +1 -1
  16. package/dist/biometrics.js +5 -4
  17. package/dist/biometrics.js.map +1 -1
  18. package/dist/brightness.js +7 -2
  19. package/dist/brightness.js.map +1 -1
  20. package/dist/camera.js +4 -1
  21. package/dist/camera.js.map +1 -1
  22. package/dist/clipboard.js +5 -2
  23. package/dist/clipboard.js.map +1 -1
  24. package/dist/database.js +2 -2
  25. package/dist/database.js.map +1 -1
  26. package/dist/expo-ui-components.d.ts +101 -9
  27. package/dist/expo-ui-components.js +305 -43
  28. package/dist/expo-ui-components.js.map +1 -1
  29. package/dist/expo-ui.js +7 -1
  30. package/dist/expo-ui.js.map +1 -1
  31. package/dist/foldable.d.ts +2 -0
  32. package/dist/foldable.js +15 -5
  33. package/dist/foldable.js.map +1 -1
  34. package/dist/fonts.d.ts +2 -0
  35. package/dist/fonts.js +12 -14
  36. package/dist/fonts.js.map +1 -1
  37. package/dist/haptics.js +2 -2
  38. package/dist/haptics.js.map +1 -1
  39. package/dist/index.d.ts +1 -1
  40. package/dist/index.js +1 -1
  41. package/dist/index.js.map +1 -1
  42. package/dist/language-model.js +7 -3
  43. package/dist/language-model.js.map +1 -1
  44. package/dist/native.d.ts +17 -2
  45. package/dist/native.js +61 -3
  46. package/dist/native.js.map +1 -1
  47. package/dist/network.js +4 -1
  48. package/dist/network.js.map +1 -1
  49. package/dist/notifications.js +35 -8
  50. package/dist/notifications.js.map +1 -1
  51. package/dist/observed.js +5 -1
  52. package/dist/observed.js.map +1 -1
  53. package/dist/orientation.js +4 -1
  54. package/dist/orientation.js.map +1 -1
  55. package/dist/register-expo-view.d.ts +19 -0
  56. package/dist/register-expo-view.js +1 -0
  57. package/dist/register-expo-view.js.map +1 -1
  58. package/dist/screen-capture.js +2 -2
  59. package/dist/screen-capture.js.map +1 -1
  60. package/dist/search-field.d.ts +83 -0
  61. package/dist/search-field.js +147 -0
  62. package/dist/search-field.js.map +1 -0
  63. package/dist/secure-store.js +4 -1
  64. package/dist/secure-store.js.map +1 -1
  65. package/dist/sensors.js +6 -3
  66. package/dist/sensors.js.map +1 -1
  67. package/dist/splash-screen.js +2 -2
  68. package/dist/splash-screen.js.map +1 -1
  69. package/dist/store.js +4 -0
  70. package/dist/store.js.map +1 -1
  71. package/dist/tracking.js +2 -2
  72. package/dist/tracking.js.map +1 -1
  73. package/dist/ui-font-names.d.ts +16 -0
  74. package/dist/ui-font-names.js +71 -0
  75. package/dist/ui-font-names.js.map +1 -0
  76. package/dist/updates.js +4 -1
  77. package/dist/updates.js.map +1 -1
  78. package/dist/video.js +2 -2
  79. package/dist/video.js.map +1 -1
  80. package/dist/watch.js +6 -5
  81. package/dist/watch.js.map +1 -1
  82. package/expo-module.config.json +5 -2
  83. package/ios/ExpoUIModifiersModule.swift +25 -0
  84. package/ios/InlineNavigationTitle.swift +12 -0
  85. package/ios/NgNativeExpo.podspec +3 -0
  86. package/ios/SearchField.swift +130 -0
  87. package/ios/SegmentedFont.swift +113 -0
  88. package/package.json +6 -2
@@ -1 +1 @@
1
- {"version":3,"file":"expo-ui-components.js","sourceRoot":"","sources":["../src/expo-ui-components.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,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,IAAI,EAAE,EAAE,kBAAkB,EAAE,YAAY,EAAE;iBAC3C;6FAwCqE,OAAO,OAAE;4BAC3E,IAAI,EAAE,UAAU;yBACjB,klBA0B+C,aAAa","sourcesContent":["/**\n * Typed components for the `@expo/ui` views an app reaches for most, named and shaped as SwiftUI's.\n *\n * `EXPO_UI_VIEWS` makes every view reachable by name, and a name is all the renderer needs. What a\n * name cannot give is a type: under strict templates an unknown element is an error, and so is\n * each prop on it. These are the same elements, claimed by a component whose inputs carry the\n * props' types and whose host bindings pass each one straight to the node, so nothing changes at\n * runtime. An unset input stays `undefined` and never reaches native.\n *\n * Events are declared as outputs so that `$event` is typed. SwiftUI's events are never emitted:\n * Angular binds a template's `(dateChange)` to the output *and* to the element, and it is the\n * element's own event that arrives, once. Emitting from a host listener as well would deliver it\n * twice; a host listener of the same name as the output listens to the output itself and recurses.\n * So subscribe in a template, not to the output in code.\n *\n * Where Compose names a prop or an event differently, a component sends Android its own names and\n * emits the output from a host listener for Compose's event, which SwiftUI never sends. Only a few\n * do: the toggle, slider, button, progress, stacks and slot, and the date picker.\n *\n * Only the views and props an app has needed are here; the rest stay names, as before. Add a view\n * when a template wants it typed, from `@expo/ui`'s own props for it.\n *\n * Still register the names with `registerExpoUiViews`: the component types the element, the\n * registration is what makes it commit as the SwiftUI or Compose view.\n */\nimport {\n Component,\n DestroyRef,\n forwardRef,\n ElementRef,\n InjectionToken,\n Injector,\n type Signal,\n afterNextRender,\n booleanAttribute,\n computed,\n contentChildren,\n effect,\n inject,\n input,\n linkedSignal,\n model,\n output,\n signal,\n untracked,\n viewChild,\n} from '@angular/core';\nimport type { NativeState } from './native-state.ts';\nimport {\n Engine,\n type EngineNode,\n HostEngine,\n type HostNode,\n type NativeSyntheticEvent,\n keepNativeView,\n nativePlatform,\n} from '@ng-native/fabric';\nimport { optional } from './native.ts';\nimport { optionalBoolean, optionalNumber } from './transforms.ts';\nimport { UiBottomSheetContent } from './ui-bottom-sheet-content.ts';\nimport { type UiBottomSheetPresentedEvent, UiBottomSheetView } from './ui-bottom-sheet-view.ts';\n\n/** One SwiftUI modifier, as `@expo/ui`'s modifier functions build them: `{ $type: 'frame', ... }`. */\nexport interface UiModifier {\n readonly $type: string;\n readonly [key: string]: unknown;\n}\n\n/**\n * Says the component's host is the `@expo/ui` view its selector is registered as. A component of\n * an app's own with a `ui-` selector does not, and its host is a plain view.\n */\nfunction nativeView(): true {\n keepNativeView(inject(ElementRef).nativeElement);\n return true;\n}\n\n/**\n * The bridge from Yoga's layout to SwiftUI's; every other `ui-*` view goes inside one.\n * `matchContents` sizes the host to the SwiftUI content rather than the other way round, on both\n * axes or on the ones named. Native reads a flag per axis, which is what this splits it into, as\n * `@expo/ui`'s own `Host` does: without them the host has no size of its own, and the control\n * drawn in it spills outside it, where it can be seen but not touched or read by VoiceOver.\n */\n@Component({\n selector: 'ui-host',\n template: '<ng-content />',\n host: {\n '[matchContentsVertical]': 'matchVertical()',\n '[matchContentsHorizontal]': 'matchHorizontal()',\n '[ignoreSafeArea]': 'ignoreSafeArea()',\n '[useViewportSizeMeasurement]': 'useViewportSizeMeasurement()',\n },\n})\nexport class UiHost {\n protected readonly nativeView = nativeView();\n readonly matchContents = input<\n boolean | { readonly vertical?: boolean; readonly horizontal?: boolean }\n >();\n protected readonly matchVertical = computed(() => {\n const match = this.matchContents();\n return typeof match === 'object' ? match.vertical : match;\n });\n protected readonly matchHorizontal = computed(() => {\n const match = this.matchContents();\n return typeof match === 'object' ? match.horizontal : match;\n });\n readonly ignoreSafeArea = input<'all' | 'keyboard' | 'container'>();\n readonly useViewportSizeMeasurement = input<boolean>(undefined, { transform: optionalBoolean });\n}\n\n/** A SwiftUI `Menu`. Its trigger is the `label` or a `<ui-slot name=\"label\">`; its items are children. */\n@Component({\n selector: 'ui-menu',\n template: '<ng-content />',\n host: {\n '[label]': 'label()',\n '[systemImage]': 'systemImage()',\n '[accessibilityLabel]': 'accessibilityLabel()',\n '[modifiers]': 'modifiers()',\n },\n})\nexport class UiMenu {\n protected readonly nativeView = nativeView();\n readonly label = input<string>();\n /** An SF Symbol name. */\n readonly systemImage = input<string>();\n readonly accessibilityLabel = input<string>();\n readonly modifiers = input<readonly UiModifier[]>();\n}\n\n/**\n * Views of the app's own inside SwiftUI or Compose content: the way back from a `ui-host`. What\n * it holds is laid out by the engine, as anywhere else, and takes presses as anywhere else, so a\n * row drawn with the app's own components can be a context menu's trigger or a sheet's body.\n *\n * It holds one element. `matchContents` sizes it to that element, both ways: the element needs a\n * width of its own, since nothing here stretches it. Without `matchContents` it fills what the\n * SwiftUI or Compose view around it offers, which inside a view sized to its content is a width\n * and no height.\n */\n@Component({\n selector: 'ui-view-host',\n template: '<ng-content />',\n host: {\n '[matchContents]': 'matchContents()',\n '[expoInternalSizeFromChildren]': 'matchContents()',\n '[layoutRoot]': 'layoutRoot()',\n '[modifiers]': 'modifiers()',\n },\n})\nexport class UiViewHost {\n protected readonly nativeView = nativeView();\n readonly matchContents = input<boolean>(undefined, { transform: optionalBoolean });\n /**\n * For content presented in a window of its own, a sheet or a popover, where nothing above it\n * delivers its touches: it then takes them itself, and is measured from itself.\n */\n readonly layoutRoot = input<boolean>(undefined, { transform: optionalBoolean });\n readonly modifiers = input<readonly UiModifier[]>();\n}\n\n/**\n * A SwiftUI `contextMenu`: the menu a long press on its trigger opens, with the trigger lifted\n * over the dimmed screen. iOS only.\n *\n * Its content is three slots: `<ui-slot name=\"trigger\">` is what is always shown,\n * `<ui-slot name=\"items\">` holds the `ui-button`s, `ui-divider`s and `ui-section`s of the menu, and\n * `<ui-slot name=\"preview\">`, when there is one, is shown above the open menu in place of the\n * trigger. All three are SwiftUI content, as everything inside a `ui-host` is.\n */\n@Component({\n selector: 'ui-context-menu',\n template: '<ng-content />',\n host: { '[modifiers]': 'modifiers()' },\n})\nexport class UiContextMenu {\n protected readonly nativeView = nativeView();\n readonly modifiers = input<readonly UiModifier[]>();\n}\n\n/**\n * A SwiftUI `Button`, as a menu item or on its own, or Compose's on Android, which draws `label` as\n * text inside it. `systemImage` and `role` are SwiftUI's alone. A `close` button with no label and\n * no content is the system's own close button, from iOS 26.\n */\n@Component({\n selector: 'ui-button',\n imports: [forwardRef(() => UiText)],\n template: `@if (android && label()) {\n <ui-text [text]=\"label()\" />\n }\n <ng-content />`,\n host: {\n '(buttonPressed)': 'android && buttonPress.emit($event)',\n '[label]': 'label()',\n '[systemImage]': 'systemImage()',\n '[role]': 'role()',\n '[target]': 'target()',\n '[modifiers]': 'modifiers()',\n },\n})\nexport class UiButton {\n protected readonly nativeView = nativeView();\n protected readonly android = nativePlatform() === 'android';\n readonly label = input<string>();\n /** An SF Symbol name. */\n readonly systemImage = input<string>();\n readonly role = input<'default' | 'cancel' | 'destructive' | 'close'>();\n /**\n * In a home-screen widget's or a Live Activity's layout, what a tap on it hands the app: see\n * `@ng-native/expo/widget` and `@ng-native/expo/live-activity`.\n */\n readonly target = input<string>();\n readonly modifiers = input<readonly UiModifier[]>();\n readonly buttonPress = output<NativeSyntheticEvent<Record<string, never>>>();\n}\n\n/** A SwiftUI `Divider`, or Compose's `HorizontalDivider`: a separator between groups of items. */\n@Component({\n selector: 'ui-divider',\n template: '',\n host: { '[modifiers]': 'modifiers()' },\n})\nexport class UiDivider {\n protected readonly nativeView = nativeView();\n readonly modifiers = input<readonly UiModifier[]>();\n}\n\n/**\n * Content for a named slot of its parent view, such as a menu's `label`. `extraProps` is what\n * the slot tells its parent about itself: a `ui-swipe-actions` group's `edge` and\n * `allowsFullSwipe`.\n */\n@Component({\n selector: 'ui-slot',\n template: '<ng-content />',\n host: {\n '[name]': 'android ? undefined : name()',\n '[slotName]': 'android ? name() : undefined',\n '[extraProps]': 'extraProps()',\n },\n})\nexport class UiSlot {\n protected readonly nativeView = nativeView();\n protected readonly android = nativePlatform() === 'android';\n readonly name = input.required<string>();\n readonly extraProps = input<Readonly<Record<string, unknown>>>();\n}\n\n/**\n * A SwiftUI `List`: rows as SwiftUI lays them out, which is what lets a row take the system's own\n * swipe actions through `ui-swipe-actions`.\n */\n@Component({\n selector: 'ui-list',\n template: '<ng-content />',\n host: { '[modifiers]': 'modifiers()' },\n})\nexport class UiList {\n protected readonly nativeView = nativeView();\n readonly modifiers = input<readonly UiModifier[]>();\n}\n\n/**\n * The system's swipe actions on a list row, iOS only. The first child is the row; the actions go\n * in `<ui-slot name=\"actions\" [extraProps]=\"{ edge: 'trailing', allowsFullSwipe: true }\">`, one\n * slot per edge, as `ui-button`s.\n */\n@Component({\n selector: 'ui-swipe-actions',\n template: '<ng-content />',\n host: { '[modifiers]': 'modifiers()' },\n})\nexport class UiSwipeActions {\n protected readonly nativeView = nativeView();\n readonly modifiers = input<readonly UiModifier[]>();\n}\n\n/** What `ui-slider` sends as the thumb moves: its new value. */\nexport type UiSliderChangeEvent = NativeSyntheticEvent<{ readonly value: number }>;\n\n/**\n * A SwiftUI `Slider`, or Compose's on Android. `valueChanged` reports each new value as the thumb\n * moves; note the d, which SwiftUI's event has and `@expo/ui`'s React prop does not.\n */\n@Component({\n selector: 'ui-slider',\n template: '',\n host: {\n '[value]': 'value()',\n '[min]': 'min()',\n '[max]': 'max()',\n '[step]': 'android ? undefined : stepSize()',\n '[steps]': 'android ? stepsBetween() : undefined',\n '[modifiers]': 'modifiers()',\n '(valueChange)': 'android && valueChanged.emit($event)',\n },\n})\nexport class UiSlider {\n protected readonly nativeView = nativeView();\n readonly value = input<number>(undefined, { transform: optionalNumber });\n readonly min = input<number>(undefined, { transform: optionalNumber });\n readonly max = input<number>(undefined, { transform: optionalNumber });\n /** How many steps the range is divided into; none moves the thumb continuously. */\n readonly steps = input<number>(undefined, { transform: optionalNumber });\n readonly modifiers = input<readonly UiModifier[]>();\n readonly valueChanged = output<UiSliderChangeEvent>();\n\n protected readonly android = nativePlatform() === 'android';\n /** A whole number of steps, which is all Compose can draw. */\n private readonly wholeSteps = computed(() => {\n const steps = Math.round(this.steps() ?? 0);\n return steps > 0 ? steps : undefined;\n });\n /** SwiftUI takes a step size, and draws 0 to 1 unless it has both ends. */\n protected readonly stepSize = computed(() => {\n const steps = this.wholeSteps();\n const min = this.min();\n const max = this.max();\n return steps && (min !== undefined && max !== undefined ? max - min : 1) / steps;\n });\n /** Compose takes the number of points between the ends. */\n protected readonly stepsBetween = computed(() => {\n const steps = this.wholeSteps();\n return steps && steps - 1;\n });\n}\n\n/**\n * A SwiftUI `VStack`, or Compose's `Column` on Android, centred, as SwiftUI's is, unless `alignment`\n * says otherwise. Without `spacing`, SwiftUI puts its own default spacing between children and Compose\n * puts none.\n */\n@Component({\n selector: 'ui-vstack',\n template: '<ng-content />',\n host: {\n '[alignment]': 'android ? undefined : alignment()',\n '[spacing]': 'android ? undefined : spacing()',\n '[verticalArrangement]': 'android ? spacedBy(spacing()) : undefined',\n '[horizontalAlignment]': 'android ? composeAlignment(alignment()) : undefined',\n '[modifiers]': 'modifiers()',\n },\n})\nexport class UiVStack {\n protected readonly nativeView = nativeView();\n readonly alignment = input<'leading' | 'center' | 'trailing'>();\n readonly spacing = input<number>(undefined, { transform: optionalNumber });\n readonly modifiers = input<readonly UiModifier[]>();\n\n protected readonly android = nativePlatform() === 'android';\n protected readonly spacedBy = spacedBy;\n protected composeAlignment(alignment: 'leading' | 'center' | 'trailing' | undefined) {\n return alignment === 'leading' ? 'start' : alignment === 'trailing' ? 'end' : 'center';\n }\n}\n\n/**\n * A SwiftUI `Image`: an SF Symbol by `systemName`, a symbol or picture in the asset catalog by\n * `assetName`, or a picture by `uiImage`, the URL of a file on the device.\n */\n@Component({\n selector: 'ui-image',\n template: '',\n host: {\n '[systemName]': 'systemName()',\n '[assetName]': 'assetName()',\n '[uiImage]': 'uiImage()',\n '[size]': 'size()',\n '[color]': 'color()',\n '[modifiers]': 'modifiers()',\n },\n})\nexport class UiImage {\n protected readonly nativeView = nativeView();\n readonly systemName = input<string>();\n readonly assetName = input<string>();\n readonly uiImage = input<string>();\n readonly size = input<number>(undefined, { transform: optionalNumber });\n readonly color = input<string>();\n readonly modifiers = input<readonly UiModifier[]>();\n}\n\n/** A moment: a `Date`, milliseconds since the epoch, or a string `Date` reads. */\nexport type UiDate = Date | number | string;\n\n/** The start and end of a timer. */\nexport interface UiTimerInterval {\n readonly lower: UiDate;\n readonly upper: UiDate;\n}\n\n/** A moment as SwiftUI takes it, in milliseconds since the epoch, or none for what is not one. */\nfunction milliseconds(value: UiDate | null | undefined): number | undefined {\n const time = value == null ? NaN : new Date(value).getTime();\n return Number.isNaN(time) ? undefined : time;\n}\n\n/** No timer unless both ends are moments, as the extension has none. */\nfunction timerMilliseconds(value: UiTimerInterval | null | undefined) {\n const lower = milliseconds(value?.lower);\n const upper = milliseconds(value?.upper);\n return lower === undefined || upper === undefined ? undefined : { lower, upper };\n}\n\n/**\n * A SwiftUI `Text`, or Compose's on Android. Its text is what is written inside it,\n * `<ui-text>Us {{ score }}</ui-text>`, as `<text>` takes its own, or `text`, which wins over it.\n *\n * On iOS it can keep time by itself instead, with no update from the app: `date` is drawn by\n * `dateStyle`, as the time since or until it for `'relative'`, `'offset'` and `'timer'`, and\n * `timerInterval` is a timer running from its `lower` to its `upper`, down unless `countsDown` is\n * false.\n */\n@Component({\n selector: 'ui-text',\n template: '<ng-content />',\n host: {\n '[text]': 'text()',\n '[date]': 'android ? undefined : date()',\n '[dateStyle]': 'android ? undefined : dateStyle()',\n '[timerInterval]': 'android ? undefined : timerInterval()',\n '[countsDown]': 'android ? undefined : countsDown()',\n '[modifiers]': 'modifiers()',\n },\n})\nexport class UiText {\n protected readonly nativeView = nativeView();\n protected readonly android = nativePlatform() === 'android';\n readonly text = input<string>();\n readonly date = input(undefined, { transform: milliseconds });\n readonly dateStyle = input<'timer' | 'relative' | 'offset' | 'date' | 'time'>();\n readonly timerInterval = input(undefined, { transform: timerMilliseconds });\n readonly countsDown = input<boolean>(undefined, { transform: optionalBoolean });\n readonly modifiers = input<readonly UiModifier[]>();\n}\n\n/**\n * What `ui-date-picker` sends when the user picks: the chosen moment, which SwiftUI reports in\n * milliseconds since the epoch.\n */\nexport type UiDateChangeEvent = NativeSyntheticEvent<{ readonly date: number | string }>;\n\n/**\n * Listen for one of a `ui-*` view's own events from inside its component. Not a host listener:\n * one named as an output listens to the output itself, and see the note at the top of this file\n * for why the outputs are never emitted.\n */\nfunction listen(event: string, handle: (payload: Record<string, unknown>) => void): void {\n const node = inject(ElementRef).nativeElement as HostNode;\n const engine = node.host ?? inject(HostEngine);\n const stop = engine.setEventListener(node, event, (raw) =>\n handle((raw as NativeSyntheticEvent<Record<string, unknown>>)?.nativeEvent ?? {}),\n );\n inject(DestroyRef).onDestroy(stop);\n}\n\n/**\n * A Compose event as the SwiftUI one it stands in for: its payload renamed, and stopping it stops the\n * event it came from.\n */\nfunction withNativeEvent<T>(event: NativeSyntheticEvent, nativeEvent: T): NativeSyntheticEvent<T> {\n return {\n nativeEvent,\n target: event.target,\n stopPropagation: () => event.stopPropagation(),\n isPropagationStopped: () => event.isPropagationStopped(),\n };\n}\n\n/** The caller's modifiers, with SwiftUI's `disabled` added while the field is. */\nfunction withDisabled(\n modifiers: readonly UiModifier[] | undefined,\n disabled: boolean,\n): readonly UiModifier[] | undefined {\n return disabled ? [...(modifiers ?? []), { $type: 'disabled', disabled: true }] : modifiers;\n}\n\n/**\n * A date picker: SwiftUI's `DatePicker` on iOS, Compose's on Android.\n *\n * A Signal Forms field as it stands - `<ui-date-picker [formField]=\"f.arrival\" />` - through its\n * `value` model, a `Date` (or null). The two platforms take and report a date differently, and\n * this is where that difference ends: SwiftUI is handed `selection` as ISO text and reports\n * `dateChange`; Compose is handed `initialDate` in milliseconds and reports `dateSelected`. Either\n * way the model gets a `Date`. A `disabled` field adds SwiftUI's `disabled` modifier. SwiftUI's\n * picker always shows a date, today when the field is empty, and the date it reports as it appears\n * is not taken as the user's; an optional date is best asked for behind a button that shows the\n * picker once the user wants to give one.\n *\n * `selection` is still accepted as ISO text, for a picker bound without a form.\n */\n@Component({\n selector: 'ui-date-picker',\n template: '',\n host: {\n '[title]': 'title()',\n '[selection]': 'resolvedSelection()',\n '[initialDate]': 'initialDate()',\n '[displayedComponents]': 'displayedComponents()',\n '[range]': 'range()',\n '[accessibilityLabel]': 'accessibilityLabel()',\n '[modifiers]': 'resolvedModifiers()',\n },\n})\nexport class UiDatePicker {\n protected readonly nativeView = nativeView();\n readonly title = input<string>();\n readonly selection = input<string>();\n readonly displayedComponents = input<readonly ('date' | 'hourAndMinute')[]>();\n readonly range = input<{ readonly start?: string; readonly end?: string }>();\n readonly accessibilityLabel = input<string>();\n readonly modifiers = input<readonly UiModifier[]>();\n /** The picked date: what `[formField]` binds. */\n readonly value = model<Date | null>(null);\n readonly disabled = input(false, { transform: booleanAttribute });\n /** The user picked, which is when a form shows a field's errors: a picker has no blur. */\n readonly touch = output<void>();\n readonly dateChange = output<UiDateChangeEvent>();\n\n private readonly android = nativePlatform() === 'android';\n\n protected readonly resolvedSelection = computed(() =>\n this.android ? undefined : (this.selection() ?? this.value()?.toISOString()),\n );\n protected readonly initialDate = computed(() =>\n this.android ? (this.value()?.getTime() ?? null) : undefined,\n );\n protected readonly resolvedModifiers = computed(() =>\n this.android ? this.modifiers() : withDisabled(this.modifiers(), this.disabled()),\n );\n\n /**\n * SwiftUI's picker cannot be empty: it shows today, and reports that as a change the moment it\n * appears. Taken as the user's choice, an empty date field would fill itself in, pass\n * `required` and mark the form dirty before anyone touched it. So the first report, while the\n * field is empty and the picker has only just appeared, is the picker describing itself.\n */\n private readonly appeared = Date.now();\n private settled = false;\n\n constructor() {\n listen(this.android ? 'topDateSelected' : 'topDateChange', ({ date }) => {\n if (typeof date !== 'string' && typeof date !== 'number') return;\n const describingItself =\n !this.settled && this.value() === null && Date.now() - this.appeared < APPEARING_MS;\n this.settled = true;\n if (describingItself) return;\n this.value.set(new Date(date));\n this.touch.emit();\n });\n }\n}\n\n/** How long after a date picker appears its first report is taken to be about itself. */\nconst APPEARING_MS = 1000;\n\n/** One choice in a `ui-picker`: what the field is set to, and what the user reads. */\nexport interface UiPickerOption {\n readonly value: string | number;\n readonly label: string;\n}\n\n/**\n * A SwiftUI `Picker`, iOS only, as a Signal Forms field: `<ui-picker [options]=\"rooms\"\n * [formField]=\"f.room\" />`. `options` draws the choices, each tagged with its value, which is the\n * content slot and `tag` modifiers `@expo/ui` otherwise wants written out by hand; children still\n * work for anything richer. `pickerStyle` is SwiftUI's (`menu`, `segmented`, `wheel`, `inline`).\n */\n@Component({\n selector: 'ui-picker',\n imports: [UiSlot, UiText],\n template: `\n @if (options(); as options) {\n <ui-slot name=\"content\">\n @for (option of options; track option.value) {\n <ui-text [text]=\"option.label\" [modifiers]=\"tags().get(option.value)\" />\n }\n </ui-slot>\n }\n <ng-content />\n `,\n host: {\n '[label]': 'label()',\n '[systemImage]': 'systemImage()',\n '[selection]': 'value()',\n '[modifiers]': 'resolvedModifiers()',\n },\n})\nexport class UiPicker {\n protected readonly nativeView = nativeView();\n readonly label = input<string>();\n /** An SF Symbol name. */\n readonly systemImage = input<string>();\n readonly options = input<readonly UiPickerOption[]>();\n readonly pickerStyle = input<\n 'automatic' | 'menu' | 'segmented' | 'wheel' | 'inline' | 'palette'\n >();\n readonly modifiers = input<readonly UiModifier[]>();\n /** The chosen option's value: what `[formField]` binds. */\n readonly value = model<string | number | null>(null);\n readonly disabled = input(false, { transform: booleanAttribute });\n /** The user picked, which is when a form shows a field's errors: a picker has no blur. */\n readonly touch = output<void>();\n readonly selectionChange =\n output<NativeSyntheticEvent<{ readonly selection: string | number }>>();\n\n /** Each option's `tag`, one array per value, so a pass hands native the same objects. */\n protected readonly tags = computed(\n () =>\n new Map(\n (this.options() ?? []).map((option) => [\n option.value,\n [{ $type: 'tag', tag: option.value }] as readonly UiModifier[],\n ]),\n ),\n );\n\n protected readonly resolvedModifiers = computed(() => {\n const style = this.pickerStyle();\n const own = style\n ? [{ $type: 'pickerStyle', style }, ...(this.modifiers() ?? [])]\n : this.modifiers();\n return withDisabled(own, this.disabled());\n });\n\n constructor() {\n listen('topSelectionChange', ({ selection }) => {\n if (typeof selection !== 'string' && typeof selection !== 'number') return;\n this.value.set(selection);\n this.touch.emit();\n });\n }\n}\n\n/** What `ui-toggle` sends when it is switched: whether it is now on. */\nexport type UiToggleChangeEvent = NativeSyntheticEvent<{ readonly isOn: boolean }>;\n\n/**\n * A SwiftUI `Toggle`, or Compose's `Switch` on Android. `isOnChange` reports each flip. Bound to\n * `isOn`, it shows what `isOn` says; without it, it switches itself. `label` is SwiftUI's alone.\n */\n@Component({\n selector: 'ui-toggle',\n template: '<ng-content />',\n host: {\n '[isOn]': 'android ? undefined : isOn()',\n '[value]': 'android ? (isOn() ?? switchedOn()) : undefined',\n '[label]': 'label()',\n '[modifiers]': 'modifiers()',\n '(checkedChange)': 'android && checked($event)',\n },\n})\nexport class UiToggle {\n protected readonly nativeView = nativeView();\n readonly isOn = input<boolean>(undefined, { transform: optionalBoolean });\n readonly label = input<string>();\n readonly modifiers = input<readonly UiModifier[]>();\n readonly isOnChange = output<UiToggleChangeEvent>();\n\n protected readonly android = nativePlatform() === 'android';\n /** What Compose's switch shows without `isOn`: SwiftUI's keeps this itself, Compose's does not. */\n protected readonly switchedOn = signal(false);\n protected checked(event: NativeSyntheticEvent<{ readonly value: boolean }>): void {\n this.switchedOn.set(event.nativeEvent.value);\n this.isOnChange.emit(withNativeEvent(event, { isOn: event.nativeEvent.value }));\n }\n}\n\n/** What `ui-stepper` sends as it is stepped: its new value. */\nexport type UiStepperChangeEvent = NativeSyntheticEvent<{ readonly value: number }>;\n\n/** A SwiftUI `Stepper`, between `min` and `max` by `step`. */\n@Component({\n selector: 'ui-stepper',\n template: '<ng-content />',\n host: {\n '[value]': 'value()',\n '[min]': 'min()',\n '[max]': 'max()',\n '[step]': 'step()',\n '[label]': 'label()',\n '[modifiers]': 'modifiers()',\n },\n})\nexport class UiStepper {\n protected readonly nativeView = nativeView();\n readonly value = input<number>(undefined, { transform: optionalNumber });\n readonly min = input<number>(undefined, { transform: optionalNumber });\n readonly max = input<number>(undefined, { transform: optionalNumber });\n readonly step = input<number>(undefined, { transform: optionalNumber });\n readonly label = input<string>();\n readonly modifiers = input<readonly UiModifier[]>();\n readonly valueChange = output<UiStepperChangeEvent>();\n}\n\n/** What `ui-text-field` sends as it is typed into: the text so far. */\nexport type UiTextFieldChangeEvent = NativeSyntheticEvent<{ readonly value: string }>;\n\n/**\n * A SwiftUI `TextField`. `text` is where it keeps what is typed, a `nativeState('')`: the field\n * writes to it on the UI thread, and `textChange` reports each change.\n */\n@Component({\n selector: 'ui-text-field',\n template: '',\n host: {\n '[text]': 'text()?.id',\n '[placeholder]': 'placeholder()',\n '[modifiers]': 'modifiers()',\n },\n})\nexport class UiTextField {\n protected readonly nativeView = nativeView();\n readonly text = input<NativeState<string> | null>();\n readonly placeholder = input<string>();\n readonly modifiers = input<readonly UiModifier[]>();\n readonly textChange = output<UiTextFieldChangeEvent>();\n}\n\n/** What `ui-color-picker` sends when a colour is picked: the colour, as hex. */\nexport type UiColorChangeEvent = NativeSyntheticEvent<{ readonly value: string }>;\n\n/** A SwiftUI `ColorPicker`. `selection` is a colour as hex. */\n@Component({\n selector: 'ui-color-picker',\n template: '',\n host: {\n '[selection]': 'selection()',\n '[label]': 'label()',\n '[supportsOpacity]': 'supportsOpacity()',\n '[modifiers]': 'modifiers()',\n },\n})\nexport class UiColorPicker {\n protected readonly nativeView = nativeView();\n readonly selection = input<string>();\n readonly label = input<string>();\n readonly supportsOpacity = input<boolean>(undefined, { transform: optionalBoolean });\n readonly modifiers = input<readonly UiModifier[]>();\n readonly selectionChange = output<UiColorChangeEvent>();\n}\n\n/** A SwiftUI `Gauge`: `value` between `min` and `max`, drawn as `type` says. */\n@Component({\n selector: 'ui-gauge',\n template: '<ng-content />',\n host: {\n '[value]': 'value()',\n '[min]': 'min()',\n '[max]': 'max()',\n '[type]': 'type()',\n '[currentValueLabel]': 'currentValueLabel()',\n '[minimumValueLabel]': 'minimumValueLabel()',\n '[maximumValueLabel]': 'maximumValueLabel()',\n '[modifiers]': 'modifiers()',\n },\n})\nexport class UiGauge {\n protected readonly nativeView = nativeView();\n readonly value = input<number>(undefined, { transform: optionalNumber });\n readonly min = input<number>(undefined, { transform: optionalNumber });\n readonly max = input<number>(undefined, { transform: optionalNumber });\n readonly type = input<string>();\n readonly currentValueLabel = input<string>();\n readonly minimumValueLabel = input<string>();\n readonly maximumValueLabel = input<string>();\n readonly modifiers = input<readonly UiModifier[]>();\n}\n\n/** One point of a `ui-chart`: `x`, a label or a number, against `y`, with a colour of its own. */\nexport interface UiChartDataPoint {\n readonly x: string | number;\n readonly y: number;\n readonly color?: string;\n}\n\n/** How a `ui-chart` draws its points: `pie` needs iOS 17. */\nexport type UiChartType = 'line' | 'point' | 'bar' | 'area' | 'pie' | 'rectangle';\n\n/** The symbol a `ui-chart` marks a point with. */\nexport type UiChartPointSymbol = 'circle' | 'square' | 'diamond';\n\n/** A line chart's line: its dashes, width, colour, and the symbol at each point. */\nexport interface UiChartLineStyle {\n readonly dashArray?: readonly number[];\n readonly width?: number;\n readonly pointStyle?: UiChartPointSymbol;\n readonly pointSize?: number;\n readonly color?: string;\n}\n\n/** A point chart's symbol and its size. */\nexport interface UiChartPointStyle {\n readonly pointStyle?: UiChartPointSymbol;\n readonly pointSize?: number;\n}\n\n/** An area chart's fill. */\nexport interface UiChartAreaStyle {\n readonly color?: string;\n}\n\n/** A bar chart's bars: their corner radius and width. */\nexport interface UiChartBarStyle {\n readonly cornerRadius?: number;\n readonly width?: number;\n}\n\n/** A pie chart's slices: `innerRadius` from 0, a full pie, to 0.5 for a donut, and the gap between. */\nexport interface UiChartPieStyle {\n readonly innerRadius?: number;\n readonly angularInset?: number;\n}\n\n/** A rectangle chart's colour and corner radius. */\nexport interface UiChartRectangleStyle {\n readonly color?: string;\n readonly cornerRadius?: number;\n}\n\n/** The lines `referenceLines` draws across a `ui-chart`. */\nexport interface UiChartRuleStyle {\n readonly color?: string;\n readonly lineWidth?: number;\n readonly dashArray?: readonly number[];\n}\n\n/**\n * A Swift Charts chart of `data`, drawn as `type` says, iOS only, as Compose has no chart. Each\n * style applies to its own type alone; `referenceLines` are drawn across it in `ruleStyle`.\n * `showLegend` shows only when no point has a colour of its own.\n */\n@Component({\n selector: 'ui-chart',\n template: '',\n host: {\n '[data]': 'data()',\n '[type]': 'type()',\n '[showGrid]': 'showGrid()',\n '[animate]': 'animate()',\n '[showLegend]': 'showLegend()',\n '[referenceLines]': 'referenceLines()',\n '[lineStyle]': 'lineStyle()',\n '[pointStyle]': 'pointStyle()',\n '[areaStyle]': 'areaStyle()',\n '[barStyle]': 'barStyle()',\n '[pieStyle]': 'pieStyle()',\n '[rectangleStyle]': 'rectangleStyle()',\n '[ruleStyle]': 'ruleStyle()',\n '[modifiers]': 'modifiers()',\n },\n})\nexport class UiChart {\n protected readonly nativeView = nativeView();\n readonly data = input.required<readonly UiChartDataPoint[]>();\n readonly type = input<UiChartType>();\n readonly showGrid = input<boolean>(undefined, { transform: optionalBoolean });\n readonly animate = input<boolean>(undefined, { transform: optionalBoolean });\n readonly showLegend = input<boolean>(undefined, { transform: optionalBoolean });\n readonly referenceLines = input<readonly UiChartDataPoint[]>();\n readonly lineStyle = input<UiChartLineStyle>();\n readonly pointStyle = input<UiChartPointStyle>();\n readonly areaStyle = input<UiChartAreaStyle>();\n readonly barStyle = input<UiChartBarStyle>();\n readonly pieStyle = input<UiChartPieStyle>();\n readonly rectangleStyle = input<UiChartRectangleStyle>();\n readonly ruleStyle = input<UiChartRuleStyle>();\n readonly modifiers = input<readonly UiModifier[]>();\n}\n\n/**\n * A SwiftUI `ProgressView`: a bar filled to `value`, from 0 to 1, or a spinner without one. On\n * Android, Compose's `LinearProgressIndicator`, a moving bar rather than a spinner without a value.\n * On iOS, `timerInterval` has the bar keep time by itself from its `lower` to its `upper`, emptying\n * unless `countsDown` is false.\n */\n@Component({\n selector: 'ui-progress',\n template: '',\n host: {\n '[value]': 'android ? undefined : value()',\n '[progress]': 'android ? value() : undefined',\n '[timerInterval]': 'android ? undefined : timerInterval()',\n '[countsDown]': 'android ? undefined : countsDown()',\n '[modifiers]': 'modifiers()',\n },\n})\nexport class UiProgress {\n protected readonly nativeView = nativeView();\n protected readonly android = nativePlatform() === 'android';\n readonly value = input<number>(undefined, { transform: optionalNumber });\n readonly timerInterval = input(undefined, { transform: timerMilliseconds });\n readonly countsDown = input<boolean>(undefined, { transform: optionalBoolean });\n readonly modifiers = input<readonly UiModifier[]>();\n}\n\n/**\n * A SwiftUI `HStack`, or Compose's `Row` on Android, centred, as SwiftUI's is, unless `alignment`\n * says otherwise. Compose has no `firstTextBaseline`, and centres instead. Without `spacing`, SwiftUI\n * puts its own default spacing between children and Compose puts none.\n */\n@Component({\n selector: 'ui-hstack',\n template: '<ng-content />',\n host: {\n '[alignment]': 'android ? undefined : alignment()',\n '[spacing]': 'android ? undefined : spacing()',\n '[horizontalArrangement]': 'android ? spacedBy(spacing()) : undefined',\n '[verticalAlignment]': 'android ? composeAlignment(alignment()) : undefined',\n '[modifiers]': 'modifiers()',\n },\n})\nexport class UiHStack {\n protected readonly nativeView = nativeView();\n readonly alignment = input<'top' | 'center' | 'bottom' | 'firstTextBaseline'>();\n readonly spacing = input<number>(undefined, { transform: optionalNumber });\n readonly modifiers = input<readonly UiModifier[]>();\n\n protected readonly android = nativePlatform() === 'android';\n protected readonly spacedBy = spacedBy;\n protected composeAlignment(\n alignment: 'top' | 'center' | 'bottom' | 'firstTextBaseline' | undefined,\n ) {\n return alignment === 'top' || alignment === 'bottom' ? alignment : 'center';\n }\n}\n\nfunction spacedBy(spacing: number | undefined) {\n return spacing === undefined ? undefined : { spacedBy: Math.round(spacing) };\n}\n\n/** A SwiftUI `Spacer`: the room left over in its stack. */\n@Component({\n selector: 'ui-spacer',\n template: '',\n host: { '[modifiers]': 'modifiers()' },\n})\nexport class UiSpacer {\n protected readonly nativeView = nativeView();\n readonly modifiers = input<readonly UiModifier[]>();\n}\n\n/** Where `ui-zstack` puts its layers, as SwiftUI names it. */\nexport type UiZStackAlignment =\n | 'center'\n | 'leading'\n | 'trailing'\n | 'top'\n | 'bottom'\n | 'topLeading'\n | 'topTrailing'\n | 'bottomLeading'\n | 'bottomTrailing';\n\n/** The same place, as Compose's `Box` names it. */\nconst CONTENT_ALIGNMENT: Record<UiZStackAlignment, string> = {\n center: 'center',\n leading: 'centerStart',\n trailing: 'centerEnd',\n top: 'topCenter',\n bottom: 'bottomCenter',\n topLeading: 'topStart',\n topTrailing: 'topEnd',\n bottomLeading: 'bottomStart',\n bottomTrailing: 'bottomEnd',\n};\n\n/**\n * A SwiftUI `ZStack`: its children drawn over one another, the first at the back. On Android,\n * Compose's `Box`, centred, as SwiftUI's is, unless `alignment` says otherwise.\n */\n@Component({\n selector: 'ui-zstack',\n template: '<ng-content />',\n host: {\n '[alignment]': 'android ? undefined : alignment()',\n '[contentAlignment]': 'android ? contentAlignment[alignment() ?? \"center\"] : undefined',\n '[modifiers]': 'modifiers()',\n },\n})\nexport class UiZStack {\n protected readonly nativeView = nativeView();\n readonly alignment = input<UiZStackAlignment>();\n readonly modifiers = input<readonly UiModifier[]>();\n\n protected readonly android = nativePlatform() === 'android';\n protected readonly contentAlignment = CONTENT_ALIGNMENT;\n}\n\n/** A SwiftUI `Rectangle`, filling the space it is given. Colour it with `foregroundStyle`. */\n@Component({\n selector: 'ui-rectangle',\n template: '',\n host: { '[modifiers]': 'modifiers()' },\n})\nexport class UiRectangle {\n protected readonly nativeView = nativeView();\n readonly modifiers = input<readonly UiModifier[]>();\n}\n\n/** A SwiftUI `RoundedRectangle`, its corners rounded by `cornerRadius`. */\n@Component({\n selector: 'ui-rounded-rectangle',\n template: '',\n host: { '[cornerRadius]': 'cornerRadius()', '[modifiers]': 'modifiers()' },\n})\nexport class UiRoundedRectangle {\n protected readonly nativeView = nativeView();\n readonly cornerRadius = input<number>(undefined, { transform: optionalNumber });\n readonly modifiers = input<readonly UiModifier[]>();\n}\n\n/** A SwiftUI `UnevenRoundedRectangle`: a rectangle with a radius of its own for each corner. */\n@Component({\n selector: 'ui-uneven-rounded-rectangle',\n template: '',\n host: {\n '[topLeadingRadius]': 'topLeadingRadius()',\n '[topTrailingRadius]': 'topTrailingRadius()',\n '[bottomLeadingRadius]': 'bottomLeadingRadius()',\n '[bottomTrailingRadius]': 'bottomTrailingRadius()',\n '[modifiers]': 'modifiers()',\n },\n})\nexport class UiUnevenRoundedRectangle {\n protected readonly nativeView = nativeView();\n readonly topLeadingRadius = input<number>(undefined, { transform: optionalNumber });\n readonly topTrailingRadius = input<number>(undefined, { transform: optionalNumber });\n readonly bottomLeadingRadius = input<number>(undefined, { transform: optionalNumber });\n readonly bottomTrailingRadius = input<number>(undefined, { transform: optionalNumber });\n readonly modifiers = input<readonly UiModifier[]>();\n}\n\n/** A SwiftUI `Capsule`: a rectangle with fully rounded ends. */\n@Component({\n selector: 'ui-capsule',\n template: '',\n host: { '[cornerStyle]': 'cornerStyle()', '[modifiers]': 'modifiers()' },\n})\nexport class UiCapsule {\n protected readonly nativeView = nativeView();\n readonly cornerStyle = input<'continuous' | 'circular'>();\n readonly modifiers = input<readonly UiModifier[]>();\n}\n\n/** A SwiftUI `Circle`, as large as fits the space it is given. */\n@Component({\n selector: 'ui-circle',\n template: '',\n host: { '[modifiers]': 'modifiers()' },\n})\nexport class UiCircle {\n protected readonly nativeView = nativeView();\n readonly modifiers = input<readonly UiModifier[]>();\n}\n\n/** A SwiftUI `Ellipse`, filling the space it is given. */\n@Component({\n selector: 'ui-ellipse',\n template: '',\n host: { '[modifiers]': 'modifiers()' },\n})\nexport class UiEllipse {\n protected readonly nativeView = nativeView();\n readonly modifiers = input<readonly UiModifier[]>();\n}\n\n/**\n * WidgetKit's `AccessoryWidgetBackground`: the system's backdrop for a lock screen widget, the\n * translucent disc or panel behind its content.\n */\n@Component({\n selector: 'ui-accessory-widget-background',\n template: '',\n host: { '[modifiers]': 'modifiers()' },\n})\nexport class UiAccessoryWidgetBackground {\n protected readonly nativeView = nativeView();\n readonly modifiers = input<readonly UiModifier[]>();\n}\n\n/** A SwiftUI `Label`: a title beside an SF Symbol. */\n@Component({\n selector: 'ui-label',\n template: '',\n host: {\n '[title]': 'title()',\n '[systemImage]': 'systemImage()',\n '[color]': 'color()',\n '[modifiers]': 'modifiers()',\n },\n})\nexport class UiLabel {\n protected readonly nativeView = nativeView();\n readonly title = input<string>();\n /** An SF Symbol name. */\n readonly systemImage = input<string>();\n readonly color = input<string>();\n readonly modifiers = input<readonly UiModifier[]>();\n}\n\n/**\n * A SwiftUI `Link`: opens `destination`, a URL, when tapped. It shows `label`, or the views\n * written inside it. In a widget, a link is how a tap opens the app at a deep link.\n */\n@Component({\n selector: 'ui-link',\n template: '<ng-content />',\n host: {\n '[destination]': 'destination()',\n '[label]': 'label()',\n '[modifiers]': 'modifiers()',\n },\n})\nexport class UiLink {\n protected readonly nativeView = nativeView();\n readonly destination = input.required<string>();\n readonly label = input<string>();\n readonly modifiers = input<readonly UiModifier[]>();\n}\n\n/** A SwiftUI `LabeledContent`: a label, and its content beside it. */\n@Component({\n selector: 'ui-labeled-content',\n imports: [UiSlot],\n template: '<ui-slot name=\"content\"><ng-content /></ui-slot>',\n host: { '[label]': 'label()', '[modifiers]': 'modifiers()' },\n})\nexport class UiLabeledContent {\n protected readonly nativeView = nativeView();\n readonly label = input<string>();\n readonly modifiers = input<readonly UiModifier[]>();\n}\n\n/** A SwiftUI `Form`: settings-style grouped rows. */\n@Component({\n selector: 'ui-form',\n template: '<ng-content />',\n host: { '[modifiers]': 'modifiers()' },\n})\nexport class UiForm {\n protected readonly nativeView = nativeView();\n readonly modifiers = input<readonly UiModifier[]>();\n}\n\n/** A SwiftUI `Section` of a form or a list, under `title`. */\n@Component({\n selector: 'ui-section',\n imports: [UiSlot],\n template: '<ui-slot name=\"content\"><ng-content /></ui-slot>',\n host: { '[title]': 'title()', '[modifiers]': 'modifiers()' },\n})\nexport class UiSection {\n protected readonly nativeView = nativeView();\n readonly title = input<string>();\n readonly modifiers = input<readonly UiModifier[]>();\n}\n\n/**\n * A SwiftUI `Group`, iOS only: its children as they are, with no layout of its own. What it is for\n * is `modifiers` that belong to several views at once, or to content that takes none itself, as a\n * sheet's presentation modifiers go on a group around a `ui-view-host`.\n */\n@Component({\n selector: 'ui-group',\n template: '<ng-content />',\n host: { '[modifiers]': 'modifiers()' },\n})\nexport class UiGroup {\n protected readonly nativeView = nativeView();\n readonly modifiers = input<readonly UiModifier[]>();\n}\n\n/**\n * A SwiftUI `NavigationStack`, iOS only: the bar a `ui-toolbar` inside it puts its items in, and\n * that a `navigationTitle` modifier on its content titles.\n */\n@Component({\n selector: 'ui-navigation-stack',\n template: '<ng-content />',\n host: { '[modifiers]': 'modifiers()' },\n})\nexport class UiNavigationStack {\n protected readonly nativeView = nativeView();\n readonly modifiers = input<readonly UiModifier[]>();\n}\n\n/**\n * SwiftUI's `toolbar`, iOS only. Its children are the view the toolbar belongs to, and its items go\n * in `<ui-slot name=\"content\">`, each a `ui-toolbar-item`. It shows in the bar of the\n * `ui-navigation-stack` around it.\n */\n@Component({\n selector: 'ui-toolbar',\n template: '<ng-content />',\n host: { '[modifiers]': 'modifiers()' },\n})\nexport class UiToolbar {\n protected readonly nativeView = nativeView();\n readonly modifiers = input<readonly UiModifier[]>();\n}\n\n/** Where a `ui-toolbar-item` sits, as SwiftUI's `ToolbarItemPlacement` names them. */\nexport type UiToolbarItemPlacement =\n | 'automatic'\n | 'principal'\n | 'navigation'\n | 'primaryAction'\n | 'secondaryAction'\n | 'status'\n | 'confirmationAction'\n | 'cancellationAction'\n | 'destructiveAction'\n | 'keyboard'\n | 'topBarLeading'\n | 'topBarTrailing'\n | 'topBarPinnedTrailing'\n | 'largeTitle'\n | 'bottomBar';\n\n/**\n * One item of a `ui-toolbar`, SwiftUI's `ToolbarItem`: a `ui-button`, or a `ui-text` as a title\n * with `placement=\"principal\"`. Unplaced, SwiftUI places it. A placement the OS does not have is\n * read as `automatic`.\n *\n * Written inside a `ui-bottom-sheet` it goes in the sheet's own toolbar, which is how a sheet\n * shows the system's close button.\n */\n@Component({\n selector: 'ui-toolbar-item',\n template: '<ng-content />',\n host: { '[name]': '\"item\"', '[extraProps]': 'extraProps()' },\n})\nexport class UiToolbarItem {\n protected readonly nativeView = nativeView();\n readonly placement = input<UiToolbarItemPlacement>();\n /** How readily the item gives up its place when the bar runs out of room, from iOS 27. */\n readonly visibilityPriority = input<'automatic' | 'low' | 'high'>();\n\n /** What the slot tells the toolbar about itself: only what is set, so SwiftUI decides the rest. */\n protected readonly extraProps = computed(() => {\n const placement = this.placement();\n const visibilityPriority = this.visibilityPriority();\n if (!placement && !visibilityPriority) return undefined;\n return { ...(placement && { placement }), ...(visibilityPriority && { visibilityPriority }) };\n });\n}\n\n/**\n * A height a SwiftUI sheet rests at, as `@expo/ui`'s `PresentationDetent`: about half the screen,\n * all of it, a fraction of it from 0 to 1, or a height in points.\n */\nexport type UiPresentationDetent =\n 'medium' | 'large' | { readonly fraction: number } | { readonly height: number };\n\n/** The detents of a sheet given none and not sized to its content. */\nconst HALF_AND_FULL: readonly UiPresentationDetent[] = ['medium', 'large'];\n\n/** The functions `@expo/ui` defines on Compose's sheet, called with the view's tag as `this`. */\nexport interface UiBottomSheetViewFunctions {\n /** Slides the sheet away, answering once it has gone. */\n hide?(this: { nativeTag: number }): Promise<void>;\n}\n\n/** The window's width as the engine knows it, or undefined before the platform has said. */\nfunction windowWidth(): Signal<number | undefined> {\n const node = inject(ElementRef).nativeElement as HostNode;\n const engine = (node.host ?? inject(HostEngine)) as Partial<\n Pick<Engine, 'viewport' | 'watchViewport'>\n >;\n const read = () => engine.viewport?.width || undefined;\n const width = signal(read());\n const stop = engine.watchViewport?.(() => width.set(read()));\n if (stop) inject(DestroyRef).onDestroy(stop);\n return width;\n}\n\n/**\n * A sheet that slides up from the bottom of the screen, opened from any component: SwiftUI's on\n * iOS, Material's on Android.\n *\n * ```html\n * <ui-bottom-sheet [(open)]=\"sorting\" fitToContents>\n * <app-sort-options (done)=\"sorting.set(false)\" />\n * </ui-bottom-sheet>\n * ```\n *\n * `open` presents and dismisses it, and is written back when the user dismisses it. Its content is\n * what is written inside it, the app's own components, in the tree while the sheet is on screen.\n *\n * A `ui-toolbar-item` written inside it is not content: on iOS it goes in a toolbar of the sheet's\n * own, in a bar across its top, which is where the system's close button belongs.\n *\n * ```html\n * <ui-bottom-sheet [(open)]=\"sorting\">\n * <ui-toolbar-item placement=\"cancellationAction\">\n * <ui-button role=\"close\" (buttonPress)=\"sorting.set(false)\" />\n * </ui-toolbar-item>\n * <app-sort-options />\n * </ui-bottom-sheet>\n * ```\n *\n * Compose's sheet has no toolbar, so Android draws no item. Nor does an iOS build whose `@expo/ui`\n * is older than 57.0.20, which Expo Go's can be: it warns, and shows the sheet without one.\n *\n * The two platforms drive a sheet differently, and this is where that difference ends. SwiftUI's\n * stays in the tree and is presented by `isPresented`, reporting `isPresentedChange` and\n * `dismiss`. Compose's shows for as long as it is in the tree, and reports `dismissRequest`.\n *\n * Unlike the other components here, the element this is mounted on is a plain view, which takes\n * no room and needs no `ui-host` around it. The sheet is inside it, wrapped as `@expo/ui`'s own\n * React component wraps one: a `ui-host`, the sheet, on iOS a `ui-group` that carries the\n * presentation modifiers, and a `ui-view-host` holding the one view the content goes in. With\n * toolbar items, the view host is in a `ui-toolbar` in a `ui-navigation-stack`, under the group.\n */\n@Component({\n selector: 'ui-bottom-sheet',\n imports: [\n UiBottomSheetContent,\n UiBottomSheetView,\n UiGroup,\n UiHost,\n UiNavigationStack,\n UiSlot,\n UiToolbar,\n UiViewHost,\n ],\n template: `\n <ng-template #content><ng-content /></ng-template>\n @if (swiftUI) {\n <ui-host style=\"position: absolute\" pointerEvents=\"none\" [style.width.px]=\"width()\">\n <ui-bottom-sheet-view\n #sheet\n [isPresented]=\"open()\"\n [fitToContents]=\"fits()\"\n (isPresentedChange)=\"presented($event)\"\n (dismiss)=\"gone($event)\"\n >\n @if (mounted()) {\n <ui-group [modifiers]=\"presentation()\">\n @if (toolbar()) {\n <ui-navigation-stack>\n <ui-toolbar>\n <ui-view-host layoutRoot [matchContents]=\"fits() || undefined\">\n <ui-bottom-sheet-content [style]=\"body()\" [content]=\"content\" />\n </ui-view-host>\n <ui-slot name=\"content\"><ng-content select=\"ui-toolbar-item\" /></ui-slot>\n </ui-toolbar>\n </ui-navigation-stack>\n } @else {\n <ui-view-host layoutRoot [matchContents]=\"fits() || undefined\">\n <ui-bottom-sheet-content [style]=\"body()\" [content]=\"content\" />\n </ui-view-host>\n }\n </ui-group>\n }\n </ui-bottom-sheet-view>\n </ui-host>\n } @else if (mounted()) {\n <ui-host style=\"position: absolute\" pointerEvents=\"none\" [style.width.px]=\"width()\">\n <ui-bottom-sheet-view\n #sheet\n [showDragHandle]=\"showDragIndicator()\"\n [skipPartiallyExpanded]=\"fits()\"\n (dismissRequest)=\"dismissRequested($event)\"\n >\n <ui-view-host layoutRoot [matchContents]=\"fits() || undefined\">\n <ui-bottom-sheet-content [style]=\"body()\" [content]=\"content\" />\n </ui-view-host>\n </ui-bottom-sheet-view>\n </ui-host>\n }\n `,\n host: { '[style.position]': '\"absolute\"' },\n})\nexport class UiBottomSheet {\n /**\n * The functions of Compose's sheet, none of them on iOS, or null where `@expo/ui` is not in the\n * build and there is no sheet. Overridden in a test to hide a sheet without a device.\n */\n static readonly SOURCE = new InjectionToken<UiBottomSheetViewFunctions | null>(\n 'angular-native.bottomSheetSource',\n {\n factory: () =>\n optional(() => {\n const core = require('expo-modules-core') as typeof import('expo-modules-core');\n const module = core.requireOptionalNativeModule<{\n ViewPrototypes?: Record<string, UiBottomSheetViewFunctions>;\n }>('ExpoUI');\n return module ? (module.ViewPrototypes?.['ExpoUI_ModalBottomSheetView'] ?? {}) : null;\n }),\n },\n );\n\n /**\n * Whether the build has SwiftUI's toolbar. `@expo/ui` has had it since 57.0.20, and Expo Go has\n * the version its SDK shipped with. A SwiftUI view under one the build lacks is a crash, so a\n * sheet there leaves its toolbar out. Overridden in a test.\n */\n static readonly TOOLBAR = new InjectionToken<boolean>('angular-native.bottomSheetToolbar', {\n factory: () => {\n const expo = (\n globalThis as { expo?: { getViewConfig?(module: string, view: string): unknown } }\n ).expo;\n return ['NavigationStackView', 'ToolbarView'].every(\n (view) => optional(() => expo?.getViewConfig?.('ExpoUI', view)) != null,\n );\n },\n });\n\n private readonly functions = inject(UiBottomSheet.SOURCE);\n private readonly toolbarInBuild = inject(UiBottomSheet.TOOLBAR);\n private readonly engine = inject(Engine, { optional: true });\n private readonly injector = inject(Injector);\n private readonly sheet = viewChild<unknown, ElementRef<EngineNode>>('sheet', {\n read: ElementRef,\n });\n\n /** Whether the sheet is on screen. Written back as false when the user dismisses it. */\n readonly open = model(false);\n /**\n * The sheet is as tall as its content. Without it the sheet rests at half the screen's height\n * and drags up to all of it. Read as the sheet opens. A sheet with a toolbar on iOS is not\n * sized to its content: it rests at its `detents`, or at half and full height.\n */\n readonly fitToContents = input(false, { transform: booleanAttribute });\n /**\n * The heights the sheet rests at, iOS only: SwiftUI's `presentationDetents`. Compose's sheet has\n * a half and a full height and no others, so Android takes no notice of this. On iOS a sheet\n * given detents rests at them rather than at the height of its content, whatever `fitToContents`\n * says, as `@expo/ui`'s own sheets do. None, or an empty list, is the sheet without them.\n */\n readonly detents = input<readonly UiPresentationDetent[]>();\n /** Whether the grabber shows at the top of the sheet. */\n readonly showDragIndicator = input(true, { transform: booleanAttribute });\n /**\n * The sheet has finished closing, whether the user dismissed it or `open` was set false: the\n * moment another sheet or a dialog can be presented.\n */\n readonly dismissed = output<void>();\n\n /** The toolbar items written inside the sheet, which give it a bar to hold them. */\n private readonly toolbarItems = contentChildren(UiToolbarItem);\n /** Whether the sheet has a toolbar: it has items for one, and the build has the views. */\n protected readonly toolbar = computed(\n () => this.toolbarInBuild && this.toolbarItems().length > 0,\n );\n\n /** SwiftUI's sheet stays in the tree; anywhere else it is there while it shows. */\n protected readonly swiftUI = nativePlatform() === 'ios';\n protected readonly width = windowWidth();\n\n /**\n * Whether the content is in the tree: from when the sheet opens until it has gone, which is\n * after `open` turns false, so that it slides away with its content still in it.\n */\n protected readonly mounted = linkedSignal<boolean, boolean>({\n source: this.open,\n computation: (open, previous) => open || (previous?.value ?? false),\n });\n\n /**\n * Whether the sheet is sized to its content, as it opened: a view host takes its sizing once,\n * as it mounts. SwiftUI's sheet is not where it has detents to rest at, nor where it has a\n * toolbar: a navigation stack fills what it is given, and the bar is no part of the content.\n * A toolbar that comes or goes while the sheet is open is followed, since the view host is made\n * again around it.\n */\n protected readonly fits = computed(() => {\n this.mounted();\n const toolbar = this.toolbar();\n return untracked(\n () => this.fitToContents() && !(this.swiftUI && (this.detents()?.length || toolbar)),\n );\n });\n\n /**\n * SwiftUI reads how a sheet is presented from modifiers on its content, not from props. The\n * detents of a sheet not sized to its content are followed while it is open.\n */\n protected readonly presentation = computed<readonly UiModifier[]>(() => [\n this.fits()\n ? { $type: 'presentationSizing', sizing: 'fitted' }\n : {\n $type: 'presentationDetents',\n detents: this.detents()?.length ? this.detents() : HALF_AND_FULL,\n },\n {\n $type: 'presentationDragIndicator',\n visibility: this.showDragIndicator() ? 'visible' : 'hidden',\n },\n ]);\n\n /**\n * The one view a view host holds. Sized to its content it needs a width of its own, the\n * window's; otherwise it fills the height the sheet gives it.\n */\n protected readonly body = computed(() =>\n this.fits() ? { width: this.width() } : { flexGrow: 1, height: 0 },\n );\n\n /** Whether `open` has turned false on a sheet that has yet to go. */\n private closing = false;\n /** Whether Compose is sliding the sheet away. */\n private hiding = false;\n\n constructor() {\n effect(() => {\n if (!this.open()) untracked(() => this.close());\n });\n if (this.swiftUI && !this.toolbarInBuild) {\n const warned = effect(() => {\n if (!this.toolbarItems().length) return;\n console.warn(\n '[angular-native] A ui-toolbar-item in a ui-bottom-sheet needs @expo/ui 57.0.20 or ' +\n 'later in the native build. This build has no SwiftUI toolbar, as Expo Go may not, ' +\n 'so the sheet is shown without the item.',\n );\n warned.destroy();\n });\n }\n }\n\n protected presented(event: UiBottomSheetPresentedEvent): void {\n if (!this.own(event)) return;\n const isPresented: unknown = event.nativeEvent?.isPresented;\n if (typeof isPresented === 'boolean') this.open.set(isPresented);\n }\n\n protected dismissRequested(event: NativeSyntheticEvent): void {\n if (this.own(event)) this.open.set(false);\n }\n\n /**\n * SwiftUI has finished dismissing the sheet. After a swipe it says so before it reports that the\n * sheet is no longer presented, so a sheet that has gone while `open`, and was not closing, is\n * one the user dismissed.\n */\n protected gone(event: NativeSyntheticEvent): void {\n if (!this.own(event)) return;\n if (!this.closing) this.open.set(false);\n this.finish();\n }\n\n /**\n * Whether an event is this sheet's own, which it then stops. Events bubble, so a `dismiss` from\n * a modal in the content arrives here too, and the sheet's own would go on to a listener around\n * it.\n */\n private own(event: NativeSyntheticEvent): boolean {\n const target = event.target;\n if (target != null && target !== this.sheet()?.nativeElement) return false;\n event.stopPropagation();\n return true;\n }\n\n /**\n * `open` turned false. SwiftUI dismisses its sheet on the prop, and says when it has gone.\n * Compose shows a sheet for as long as it is in the tree, so one taken out is gone at once:\n * its `hide` slides it away first, as `@expo/ui`'s own component calls it before unmounting.\n */\n private close(): void {\n if (!this.mounted()) return;\n // No `@expo/ui` in the build: no sheet is there to slide away, or to say that it has.\n if (!this.functions) return this.finish();\n this.closing = true;\n if (this.swiftUI || this.hiding) return;\n const node = this.sheet()?.nativeElement;\n const nativeTag = node ? (this.engine?.tagOf(node) ?? null) : null;\n const hidden =\n nativeTag === null ? undefined : optional(() => this.functions?.hide?.call({ nativeTag }));\n if (!hidden) return this.finish();\n this.hiding = true;\n const done = () => {\n this.hiding = false;\n this.finish();\n };\n hidden.then(done, done);\n }\n\n /** The sheet has gone: its content leaves the tree. */\n private finish(): void {\n this.closing = false;\n if (!this.mounted()) return;\n if (!this.open()) {\n this.mounted.set(false);\n this.dismissed.emit();\n return;\n }\n // Opened again before it had gone. SwiftUI presents the sheet it still has; Compose hid the\n // one it was asked to, and shows a sheet only as it enters the tree.\n if (this.swiftUI) return;\n this.mounted.set(false);\n afterNextRender(() => this.mounted.set(this.open()), { injector: this.injector });\n }\n}\n"]}
1
+ {"version":3,"file":"expo-ui-components.js","sourceRo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ourcesContent":["/**\n * Typed components for the `@expo/ui` views an app reaches for most, named and shaped as SwiftUI's.\n *\n * `EXPO_UI_VIEWS` makes every view reachable by name, and a name is all the renderer needs. What a\n * name cannot give is a type: under strict templates an unknown element is an error, and so is\n * each prop on it. These are the same elements, claimed by a component whose inputs carry the\n * props' types and whose host bindings pass each one straight to the node, so nothing changes at\n * runtime. An unset input stays `undefined` and never reaches native.\n *\n * Events are declared as outputs so that `$event` is typed. SwiftUI's events are never emitted:\n * Angular binds a template's `(dateChange)` to the output *and* to the element, and it is the\n * element's own event that arrives, once. Emitting from a host listener as well would deliver it\n * twice; a host listener of the same name as the output listens to the output itself and recurses.\n * So subscribe in a template, not to the output in code.\n *\n * Where Compose names a prop or an event differently, a component sends Android its own names and\n * emits the output from a host listener for Compose's event, which SwiftUI never sends. Only a few\n * do: the toggle, slider, button, progress, stacks and slot, and the date picker.\n *\n * Only the views and props an app has needed are here; the rest stay names, as before. Add a view\n * when a template wants it typed, from `@expo/ui`'s own props for it.\n *\n * Still register the names with `registerExpoUiViews`: the component types the element, the\n * registration is what makes it commit as the SwiftUI or Compose view.\n */\nimport {\n Component,\n DestroyRef,\n forwardRef,\n ElementRef,\n InjectionToken,\n Injector,\n type Signal,\n afterNextRender,\n booleanAttribute,\n computed,\n contentChildren,\n effect,\n inject,\n input,\n linkedSignal,\n model,\n output,\n signal,\n untracked,\n viewChild,\n} from '@angular/core';\nimport type { NativeState } from './native-state.ts';\nimport {\n Engine,\n type EngineNode,\n HostEngine,\n type HostNode,\n type NativeSyntheticEvent,\n keepNativeView,\n nativePlatform,\n} from '@ng-native/fabric';\nimport { optional } from './native.ts';\nimport { optionalBoolean, optionalNumber } from './transforms.ts';\nimport { UiBottomSheetContent } from './ui-bottom-sheet-content.ts';\nimport { type UiBottomSheetPresentedEvent, UiBottomSheetView } from './ui-bottom-sheet-view.ts';\n\n/** One SwiftUI modifier, as `@expo/ui`'s modifier functions build them: `{ $type: 'frame', ... }`. */\nexport interface UiModifier {\n readonly $type: string;\n readonly [key: string]: unknown;\n}\n\n/**\n * Says the component's host is the `@expo/ui` view its selector is registered as. A component of\n * an app's own with a `ui-` selector does not, and its host is a plain view.\n */\nfunction nativeView(): true {\n keepNativeView(inject(ElementRef).nativeElement);\n return true;\n}\n\n/**\n * The bridge from Yoga's layout to SwiftUI's; every other `ui-*` view goes inside one.\n * `matchContents` sizes the host to the SwiftUI content rather than the other way round, on both\n * axes or on the ones named. Native reads a flag per axis, which is what this splits it into, as\n * `@expo/ui`'s own `Host` does: without them the host has no size of its own, and the control\n * drawn in it spills outside it, where it can be seen but not touched or read by VoiceOver.\n */\n@Component({\n selector: 'ui-host',\n template: '<ng-content />',\n host: {\n '[matchContentsVertical]': 'matchVertical()',\n '[matchContentsHorizontal]': 'matchHorizontal()',\n '[ignoreSafeArea]': 'ignoreSafeArea()',\n '[useViewportSizeMeasurement]': 'useViewportSizeMeasurement()',\n },\n})\nexport class UiHost {\n protected readonly nativeView = nativeView();\n readonly matchContents = input<\n boolean | { readonly vertical?: boolean; readonly horizontal?: boolean }\n >();\n protected readonly matchVertical = computed(() => {\n const match = this.matchContents();\n return typeof match === 'object' ? match.vertical : match;\n });\n protected readonly matchHorizontal = computed(() => {\n const match = this.matchContents();\n return typeof match === 'object' ? match.horizontal : match;\n });\n readonly ignoreSafeArea = input<'all' | 'keyboard' | 'container'>();\n readonly useViewportSizeMeasurement = input<boolean>(undefined, { transform: optionalBoolean });\n}\n\n/** A SwiftUI `Menu`. Its trigger is the `label` or a `<ui-slot name=\"label\">`; its items are children. */\n@Component({\n selector: 'ui-menu',\n template: '<ng-content />',\n host: {\n '[label]': 'label()',\n '[systemImage]': 'systemImage()',\n '[accessibilityLabel]': 'accessibilityLabel()',\n '[modifiers]': 'modifiers()',\n },\n})\nexport class UiMenu {\n protected readonly nativeView = nativeView();\n readonly label = input<string>();\n /** An SF Symbol name. */\n readonly systemImage = input<string>();\n readonly accessibilityLabel = input<string>();\n readonly modifiers = input<readonly UiModifier[]>();\n}\n\n/**\n * Views of the app's own inside SwiftUI or Compose content: the way back from a `ui-host`. What\n * it holds is laid out by the engine, as anywhere else, and takes presses as anywhere else, so a\n * row drawn with the app's own components can be a context menu's trigger or a sheet's body.\n *\n * It holds one element. `matchContents` sizes it to that element, both ways: the element needs a\n * width of its own, since nothing here stretches it. Without `matchContents` it fills what the\n * SwiftUI or Compose view around it offers, which inside a view sized to its content is a width\n * and no height.\n */\n@Component({\n selector: 'ui-view-host',\n template: '<ng-content />',\n host: {\n '[matchContents]': 'matchContents()',\n '[expoInternalSizeFromChildren]': 'matchContents()',\n '[layoutRoot]': 'layoutRoot()',\n '[modifiers]': 'modifiers()',\n },\n})\nexport class UiViewHost {\n protected readonly nativeView = nativeView();\n readonly matchContents = input<boolean>(undefined, { transform: optionalBoolean });\n /**\n * For content presented in a window of its own, a sheet or a popover, where nothing above it\n * delivers its touches: it then takes them itself, and is measured from itself.\n */\n readonly layoutRoot = input<boolean>(undefined, { transform: optionalBoolean });\n readonly modifiers = input<readonly UiModifier[]>();\n}\n\n/**\n * A SwiftUI `contextMenu`: the menu a long press on its trigger opens, with the trigger lifted\n * over the dimmed screen. iOS only.\n *\n * Its content is three slots: `<ui-slot name=\"trigger\">` is what is always shown,\n * `<ui-slot name=\"items\">` holds the `ui-button`s, `ui-divider`s and `ui-section`s of the menu, and\n * `<ui-slot name=\"preview\">`, when there is one, is shown above the open menu in place of the\n * trigger. All three are SwiftUI content, as everything inside a `ui-host` is.\n */\n@Component({\n selector: 'ui-context-menu',\n template: '<ng-content />',\n host: { '[modifiers]': 'modifiers()' },\n})\nexport class UiContextMenu {\n protected readonly nativeView = nativeView();\n readonly modifiers = input<readonly UiModifier[]>();\n}\n\n/**\n * A SwiftUI `Button`, as a menu item or on its own, or Compose's on Android, which draws `label` as\n * text inside it. `systemImage` and `role` are SwiftUI's alone. A `close` button with no label and\n * no content is the system's own close button, from iOS 26.\n */\n@Component({\n selector: 'ui-button',\n imports: [forwardRef(() => UiText)],\n template: `@if (android && label()) {\n <ui-text [text]=\"label()\" />\n }\n <ng-content />`,\n host: {\n '(buttonPressed)': 'android && buttonPress.emit($event)',\n '[label]': 'label()',\n '[systemImage]': 'systemImage()',\n '[role]': 'role()',\n '[target]': 'target()',\n '[modifiers]': 'modifiers()',\n },\n})\nexport class UiButton {\n protected readonly nativeView = nativeView();\n protected readonly android = nativePlatform() === 'android';\n readonly label = input<string>();\n /** An SF Symbol name. */\n readonly systemImage = input<string>();\n readonly role = input<'default' | 'cancel' | 'destructive' | 'close'>();\n /**\n * In a home-screen widget's or a Live Activity's layout, what a tap on it hands the app: see\n * `@ng-native/expo/widget` and `@ng-native/expo/live-activity`.\n */\n readonly target = input<string>();\n readonly modifiers = input<readonly UiModifier[]>();\n readonly buttonPress = output<NativeSyntheticEvent<Record<string, never>>>();\n}\n\n/** A SwiftUI `Divider`, or Compose's `HorizontalDivider`: a separator between groups of items. */\n@Component({\n selector: 'ui-divider',\n template: '',\n host: { '[modifiers]': 'modifiers()' },\n})\nexport class UiDivider {\n protected readonly nativeView = nativeView();\n readonly modifiers = input<readonly UiModifier[]>();\n}\n\n/**\n * Content for a named slot of its parent view, such as a menu's `label`. `extraProps` is what\n * the slot tells its parent about itself: a `ui-swipe-actions` group's `edge` and\n * `allowsFullSwipe`.\n */\n@Component({\n selector: 'ui-slot',\n template: '<ng-content />',\n host: {\n '[name]': 'android ? undefined : name()',\n '[slotName]': 'android ? name() : undefined',\n '[extraProps]': 'extraProps()',\n },\n})\nexport class UiSlot {\n protected readonly nativeView = nativeView();\n protected readonly android = nativePlatform() === 'android';\n readonly name = input.required<string>();\n readonly extraProps = input<Readonly<Record<string, unknown>>>();\n}\n\n/**\n * A SwiftUI `List`: rows as SwiftUI lays them out, which is what lets a row take the system's own\n * swipe actions through `ui-swipe-actions`.\n */\n@Component({\n selector: 'ui-list',\n template: '<ng-content />',\n host: { '[modifiers]': 'modifiers()' },\n})\nexport class UiList {\n protected readonly nativeView = nativeView();\n readonly modifiers = input<readonly UiModifier[]>();\n}\n\n/**\n * The system's swipe actions on a list row, iOS only. The first child is the row; the actions go\n * in `<ui-slot name=\"actions\" [extraProps]=\"{ edge: 'trailing', allowsFullSwipe: true }\">`, one\n * slot per edge, as `ui-button`s.\n */\n@Component({\n selector: 'ui-swipe-actions',\n template: '<ng-content />',\n host: { '[modifiers]': 'modifiers()' },\n})\nexport class UiSwipeActions {\n protected readonly nativeView = nativeView();\n readonly modifiers = input<readonly UiModifier[]>();\n}\n\n/** What `ui-slider` sends as the thumb moves: its new value. */\nexport type UiSliderChangeEvent = NativeSyntheticEvent<{ readonly value: number }>;\n\n/**\n * A SwiftUI `Slider`, or Compose's on Android. `valueChanged` reports each new value as the thumb\n * moves; note the d, which SwiftUI's event has and `@expo/ui`'s React prop does not.\n */\n@Component({\n selector: 'ui-slider',\n template: '',\n host: {\n '[value]': 'value()',\n '[min]': 'min()',\n '[max]': 'max()',\n '[step]': 'android ? undefined : stepSize()',\n '[steps]': 'android ? stepsBetween() : undefined',\n '[modifiers]': 'modifiers()',\n '(valueChange)': 'android && valueChanged.emit($event)',\n },\n})\nexport class UiSlider {\n protected readonly nativeView = nativeView();\n readonly value = input<number>(undefined, { transform: optionalNumber });\n readonly min = input<number>(undefined, { transform: optionalNumber });\n readonly max = input<number>(undefined, { transform: optionalNumber });\n /** How many steps the range is divided into; none moves the thumb continuously. */\n readonly steps = input<number>(undefined, { transform: optionalNumber });\n readonly modifiers = input<readonly UiModifier[]>();\n readonly valueChanged = output<UiSliderChangeEvent>();\n\n protected readonly android = nativePlatform() === 'android';\n /** A whole number of steps, which is all Compose can draw. */\n private readonly wholeSteps = computed(() => {\n const steps = Math.round(this.steps() ?? 0);\n return steps > 0 ? steps : undefined;\n });\n /** SwiftUI takes a step size, and draws 0 to 1 unless it has both ends. */\n protected readonly stepSize = computed(() => {\n const steps = this.wholeSteps();\n const min = this.min();\n const max = this.max();\n return steps && (min !== undefined && max !== undefined ? max - min : 1) / steps;\n });\n /** Compose takes the number of points between the ends. */\n protected readonly stepsBetween = computed(() => {\n const steps = this.wholeSteps();\n return steps && steps - 1;\n });\n}\n\n/**\n * A SwiftUI `VStack`, or Compose's `Column` on Android, centred, as SwiftUI's is, unless `alignment`\n * says otherwise. Without `spacing`, SwiftUI puts its own default spacing between children and Compose\n * puts none.\n */\n@Component({\n selector: 'ui-vstack',\n template: '<ng-content />',\n host: {\n '[alignment]': 'android ? undefined : alignment()',\n '[spacing]': 'android ? undefined : spacing()',\n '[verticalArrangement]': 'android ? spacedBy(spacing()) : undefined',\n '[horizontalAlignment]': 'android ? composeAlignment(alignment()) : undefined',\n '[modifiers]': 'modifiers()',\n },\n})\nexport class UiVStack {\n protected readonly nativeView = nativeView();\n readonly alignment = input<'leading' | 'center' | 'trailing'>();\n readonly spacing = input<number>(undefined, { transform: optionalNumber });\n readonly modifiers = input<readonly UiModifier[]>();\n\n protected readonly android = nativePlatform() === 'android';\n protected readonly spacedBy = spacedBy;\n protected composeAlignment(alignment: 'leading' | 'center' | 'trailing' | undefined) {\n return alignment === 'leading' ? 'start' : alignment === 'trailing' ? 'end' : 'center';\n }\n}\n\n/**\n * A SwiftUI `Image`: an SF Symbol by `systemName`, a symbol or picture in the asset catalog by\n * `assetName`, or a picture by `uiImage`, the URL of a file on the device.\n */\n@Component({\n selector: 'ui-image',\n template: '',\n host: {\n '[systemName]': 'systemName()',\n '[assetName]': 'assetName()',\n '[uiImage]': 'uiImage()',\n '[size]': 'size()',\n '[color]': 'color()',\n '[modifiers]': 'modifiers()',\n },\n})\nexport class UiImage {\n protected readonly nativeView = nativeView();\n readonly systemName = input<string>();\n readonly assetName = input<string>();\n readonly uiImage = input<string>();\n readonly size = input<number>(undefined, { transform: optionalNumber });\n readonly color = input<string>();\n readonly modifiers = input<readonly UiModifier[]>();\n}\n\n/** A moment: a `Date`, milliseconds since the epoch, or a string `Date` reads. */\nexport type UiDate = Date | number | string;\n\n/** The start and end of a timer. */\nexport interface UiTimerInterval {\n readonly lower: UiDate;\n readonly upper: UiDate;\n}\n\n/** A moment as SwiftUI takes it, in milliseconds since the epoch, or none for what is not one. */\nfunction milliseconds(value: UiDate | null | undefined): number | undefined {\n const time = value == null ? NaN : new Date(value).getTime();\n return Number.isNaN(time) ? undefined : time;\n}\n\n/** No timer unless both ends are moments, as the extension has none. */\nfunction timerMilliseconds(value: UiTimerInterval | null | undefined) {\n const lower = milliseconds(value?.lower);\n const upper = milliseconds(value?.upper);\n return lower === undefined || upper === undefined ? undefined : { lower, upper };\n}\n\n/**\n * A SwiftUI `Text`, or Compose's on Android. Its text is what is written inside it,\n * `<ui-text>Us {{ score }}</ui-text>`, as `<text>` takes its own, or `text`, which wins over it.\n *\n * On iOS it can keep time by itself instead, with no update from the app: `date` is drawn by\n * `dateStyle`, as the time since or until it for `'relative'`, `'offset'` and `'timer'`, and\n * `timerInterval` is a timer running from its `lower` to its `upper`, down unless `countsDown` is\n * false.\n */\n@Component({\n selector: 'ui-text',\n template: '<ng-content />',\n host: {\n '[text]': 'text()',\n '[date]': 'android ? undefined : date()',\n '[dateStyle]': 'android ? undefined : dateStyle()',\n '[timerInterval]': 'android ? undefined : timerInterval()',\n '[countsDown]': 'android ? undefined : countsDown()',\n '[modifiers]': 'modifiers()',\n },\n})\nexport class UiText {\n protected readonly nativeView = nativeView();\n protected readonly android = nativePlatform() === 'android';\n readonly text = input<string>();\n readonly date = input(undefined, { transform: milliseconds });\n readonly dateStyle = input<'timer' | 'relative' | 'offset' | 'date' | 'time'>();\n readonly timerInterval = input(undefined, { transform: timerMilliseconds });\n readonly countsDown = input<boolean>(undefined, { transform: optionalBoolean });\n readonly modifiers = input<readonly UiModifier[]>();\n}\n\n/**\n * What `ui-date-picker` sends when the user picks: the chosen moment, which SwiftUI reports in\n * milliseconds since the epoch.\n */\nexport type UiDateChangeEvent = NativeSyntheticEvent<{ readonly date: number | string }>;\n\n/**\n * Listen for one of a `ui-*` view's own events from inside its component. Not a host listener:\n * one named as an output listens to the output itself, and see the note at the top of this file\n * for why the outputs are never emitted.\n */\nfunction listen(event: string, handle: (payload: Record<string, unknown>) => void): void {\n const node = inject(ElementRef).nativeElement as HostNode;\n const engine = node.host ?? inject(HostEngine);\n const stop = engine.setEventListener(node, event, (raw) =>\n handle((raw as NativeSyntheticEvent<Record<string, unknown>>)?.nativeEvent ?? {}),\n );\n inject(DestroyRef).onDestroy(stop);\n}\n\n/**\n * A Compose event as the SwiftUI one it stands in for: its payload renamed, and stopping it stops the\n * event it came from.\n */\nfunction withNativeEvent<T>(event: NativeSyntheticEvent, nativeEvent: T): NativeSyntheticEvent<T> {\n return {\n nativeEvent,\n target: event.target,\n stopPropagation: () => event.stopPropagation(),\n isPropagationStopped: () => event.isPropagationStopped(),\n };\n}\n\n/** The caller's modifiers, with SwiftUI's `disabled` added while the field is. */\nfunction withDisabled(\n modifiers: readonly UiModifier[] | undefined,\n disabled: boolean,\n): readonly UiModifier[] | undefined {\n return disabled ? [...(modifiers ?? []), { $type: 'disabled', disabled: true }] : modifiers;\n}\n\n/**\n * A date picker: SwiftUI's `DatePicker` on iOS, Compose's on Android.\n *\n * A Signal Forms field as it stands - `<ui-date-picker [formField]=\"f.arrival\" />` - through its\n * `value` model, a `Date` (or null). The two platforms take and report a date differently, and\n * this is where that difference ends: SwiftUI is handed `selection` as ISO text and reports\n * `dateChange`; Compose is handed `initialDate` in milliseconds and reports `dateSelected`. Either\n * way the model gets a `Date`. A `disabled` field adds SwiftUI's `disabled` modifier. SwiftUI's\n * picker always shows a date, today when the field is empty, and the date it reports as it appears\n * is not taken as the user's; an optional date is best asked for behind a button that shows the\n * picker once the user wants to give one.\n *\n * `selection` is still accepted as ISO text, for a picker bound without a form.\n */\n@Component({\n selector: 'ui-date-picker',\n template: '',\n host: {\n '[title]': 'title()',\n '[selection]': 'resolvedSelection()',\n '[initialDate]': 'initialDate()',\n '[displayedComponents]': 'resolvedComponents()',\n '[range]': 'range()',\n '[accessibilityLabel]': 'accessibilityLabel()',\n '[modifiers]': 'resolvedModifiers()',\n },\n})\nexport class UiDatePicker {\n protected readonly nativeView = nativeView();\n readonly title = input<string>();\n readonly selection = input<string>();\n /**\n * What the picker shows. An empty list shows nothing in SwiftUI; Compose has no such choice,\n * so on Android it shows the date and the time.\n */\n readonly displayedComponents = input<readonly ('date' | 'hourAndMinute')[]>();\n readonly range = input<{ readonly start?: string; readonly end?: string }>();\n readonly accessibilityLabel = input<string>();\n readonly modifiers = input<readonly UiModifier[]>();\n /** The picked date: what `[formField]` binds. */\n readonly value = model<Date | null>(null);\n readonly disabled = input(false, { transform: booleanAttribute });\n /** The user picked, which is when a form shows a field's errors: a picker has no blur. */\n readonly touch = output<void>();\n readonly dateChange = output<UiDateChangeEvent>();\n\n private readonly android = nativePlatform() === 'android';\n\n protected readonly resolvedSelection = computed(() =>\n this.android ? undefined : (this.selection() ?? this.value()?.toISOString()),\n );\n /** SwiftUI takes a list of what to show, and Compose one word for it. */\n protected readonly resolvedComponents = computed(() => {\n const shown = this.displayedComponents();\n if (!this.android || !shown) return shown;\n return shown.length === 1 ? shown[0] : 'dateAndTime';\n });\n protected readonly initialDate = computed(() =>\n this.android ? (this.value()?.getTime() ?? null) : undefined,\n );\n protected readonly resolvedModifiers = computed(() =>\n this.android ? this.modifiers() : withDisabled(this.modifiers(), this.disabled()),\n );\n\n /**\n * SwiftUI's picker cannot be empty: it shows today, and reports that as a change the moment it\n * appears. Taken as the user's choice, an empty date field would fill itself in, pass\n * `required` and mark the form dirty before anyone touched it. So the first report, while the\n * field is empty and the picker has only just appeared, is the picker describing itself.\n */\n private readonly appeared = Date.now();\n private settled = false;\n\n constructor() {\n listen(this.android ? 'topDateSelected' : 'topDateChange', ({ date }) => {\n if (typeof date !== 'string' && typeof date !== 'number') return;\n const describingItself =\n !this.settled && this.value() === null && Date.now() - this.appeared < APPEARING_MS;\n this.settled = true;\n if (describingItself) return;\n this.value.set(new Date(date));\n this.touch.emit();\n });\n }\n}\n\n/** How long after a date picker appears its first report is taken to be about itself. */\nconst APPEARING_MS = 1000;\n\n/** Compose's `SingleChoiceSegmentedButtonRow`, Android only: a row of `ui-segmented-button`s. */\n@Component({\n selector: 'ui-single-choice-segmented-button-row',\n template: '<ng-content />',\n host: { '[modifiers]': 'modifiers()' },\n})\nexport class UiSingleChoiceSegmentedButtonRow {\n protected readonly nativeView = nativeView();\n readonly modifiers = input<readonly UiModifier[]>();\n}\n\n/** Compose's `SegmentedButton`, Android only, its label in a `<ui-slot name=\"label\">`. */\n@Component({\n selector: 'ui-segmented-button',\n template: '<ng-content />',\n host: {\n '[selected]': 'selected()',\n '[enabled]': 'enabled()',\n '[modifiers]': 'modifiers()',\n '(buttonPressed)': 'press.emit()',\n },\n})\nexport class UiSegmentedButton {\n protected readonly nativeView = nativeView();\n readonly selected = input(false, { transform: booleanAttribute });\n readonly enabled = input(true, { transform: booleanAttribute });\n readonly modifiers = input<readonly UiModifier[]>();\n readonly press = output<void>();\n}\n\n/**\n * Compose's `ExposedDropdownMenuBox`, Android only: an anchor, a view with the `menuAnchor`\n * modifier, and the `ui-exposed-dropdown-menu` it opens. A tap on the anchor asks to open or close\n * it, through `toggled`; `expanded` says which it is.\n */\n@Component({\n selector: 'ui-exposed-dropdown-menu-box',\n template: '<ng-content />',\n host: {\n '[expanded]': 'expanded()',\n '[modifiers]': 'modifiers()',\n // Not a model: its output would be named for this event, and take it.\n '(expandedChange)': 'toggled.emit($event.nativeEvent.value)',\n },\n})\nexport class UiExposedDropdownMenuBox {\n protected readonly nativeView = nativeView();\n readonly expanded = input(false, { transform: booleanAttribute });\n readonly toggled = output<boolean>();\n readonly modifiers = input<readonly UiModifier[]>();\n}\n\n/** Compose's `ExposedDropdownMenu`, Android only: the `ui-dropdown-menu-item`s a box opens. */\n@Component({\n selector: 'ui-exposed-dropdown-menu',\n template: '<ng-content />',\n host: {\n '[expanded]': 'expanded()',\n '[modifiers]': 'modifiers()',\n '(dismissRequest)': 'dismiss.emit()',\n },\n})\nexport class UiExposedDropdownMenu {\n protected readonly nativeView = nativeView();\n readonly expanded = input(false, { transform: booleanAttribute });\n readonly modifiers = input<readonly UiModifier[]>();\n /** A tap outside the menu, or Back: the box should close it. */\n readonly dismiss = output<void>();\n}\n\n/** Compose's `DropdownMenuItem`, Android only, its text in a `<ui-slot name=\"text\">`. */\n@Component({\n selector: 'ui-dropdown-menu-item',\n template: '<ng-content />',\n host: {\n '[enabled]': 'enabled()',\n '[modifiers]': 'modifiers()',\n '(itemPressed)': 'press.emit()',\n },\n})\nexport class UiDropdownMenuItem {\n protected readonly nativeView = nativeView();\n readonly enabled = input(true, { transform: booleanAttribute });\n readonly modifiers = input<readonly UiModifier[]>();\n readonly press = output<void>();\n}\n\n/**\n * A segmented picker's `font` modifiers again, as `@ng-native/expo`'s own modifier: SwiftUI draws\n * the segments as a `UISegmentedControl`, which `font` does not reach. In a build without that\n * modifier, Expo Go's, the segments stay in the system font.\n */\nfunction segmentFonts(modifiers: readonly UiModifier[]): UiModifier[] {\n const segmented = modifiers.some((m) => m.$type === 'pickerStyle' && m['style'] === 'segmented');\n if (!segmented) return [];\n return modifiers\n .filter((m) => m.$type === 'font')\n .map((m) => ({ ...m, $type: 'ngNativeSegmentedFont' }));\n}\n\n/** One choice in a `ui-picker`: what the field is set to, and what the user reads. */\nexport interface UiPickerOption {\n readonly value: string | number;\n readonly label: string;\n}\n\n/**\n * A SwiftUI `Picker` as a Signal Forms field: `<ui-picker [options]=\"rooms\" [formField]=\"f.room\"\n * />`. `options` draws the choices, each tagged with its value, which is the content slot and `tag`\n * modifiers `@expo/ui` otherwise wants written out by hand; children still work for anything\n * richer on iOS. `pickerStyle` is SwiftUI's (`menu`, `segmented`, `wheel`, `inline`).\n *\n * Compose has no `Picker`, so on Android the options are drawn with its own controls: `segmented`\n * as a row of segmented buttons, and any other style as an exposed dropdown menu under the chosen\n * option. `label`, `systemImage`, children and `modifiers` are SwiftUI's alone. A `font` modifier\n * reaches a segmented picker's segments in a development build, not in Expo Go.\n */\n@Component({\n selector: 'ui-picker',\n imports: [\n UiDropdownMenuItem,\n UiExposedDropdownMenu,\n UiExposedDropdownMenuBox,\n UiSegmentedButton,\n UiSingleChoiceSegmentedButtonRow,\n UiSlot,\n UiText,\n ],\n template: `\n @if (android) {\n @if (pickerStyle() === 'segmented') {\n <ui-single-choice-segmented-button-row>\n @for (option of options() ?? []; track option.value) {\n <ui-segmented-button\n [selected]=\"option.value === value()\"\n [enabled]=\"!disabled()\"\n (press)=\"choose(option.value)\"\n >\n <ui-slot name=\"label\"><ui-text [text]=\"option.label\" /></ui-slot>\n </ui-segmented-button>\n }\n </ui-single-choice-segmented-button-row>\n } @else {\n <ui-exposed-dropdown-menu-box\n [expanded]=\"open()\"\n (toggled)=\"open.set(!disabled() && $event)\"\n >\n <ui-text [text]=\"chosenLabel()\" [modifiers]=\"anchor()\" />\n <ui-exposed-dropdown-menu [expanded]=\"open()\" (dismiss)=\"open.set(false)\">\n @for (option of options() ?? []; track option.value) {\n <ui-dropdown-menu-item [enabled]=\"!disabled()\" (press)=\"choose(option.value)\">\n <ui-slot name=\"text\"><ui-text [text]=\"option.label\" /></ui-slot>\n </ui-dropdown-menu-item>\n }\n </ui-exposed-dropdown-menu>\n </ui-exposed-dropdown-menu-box>\n }\n } @else {\n @if (options(); as options) {\n <ui-slot name=\"content\">\n @for (option of options; track option.value) {\n <ui-text [text]=\"option.label\" [modifiers]=\"tags().get(option.value)\" />\n }\n </ui-slot>\n }\n <ng-content />\n }\n `,\n host: {\n '[label]': 'android ? undefined : label()',\n '[systemImage]': 'android ? undefined : systemImage()',\n '[selection]': 'android ? undefined : value()',\n '[modifiers]': 'android ? undefined : resolvedModifiers()',\n },\n})\nexport class UiPicker {\n protected readonly nativeView = nativeView();\n readonly label = input<string>();\n /** An SF Symbol name. */\n readonly systemImage = input<string>();\n readonly options = input<readonly UiPickerOption[]>();\n readonly pickerStyle = input<\n 'automatic' | 'menu' | 'segmented' | 'wheel' | 'inline' | 'palette'\n >();\n readonly modifiers = input<readonly UiModifier[]>();\n /** The chosen option's value: what `[formField]` binds. */\n readonly value = model<string | number | null>(null);\n readonly disabled = input(false, { transform: booleanAttribute });\n /** The user picked, which is when a form shows a field's errors: a picker has no blur. */\n readonly touch = output<void>();\n readonly selectionChange =\n output<NativeSyntheticEvent<{ readonly selection: string | number }>>();\n\n /** Each option's `tag`, one array per value, so a pass hands native the same objects. */\n protected readonly tags = computed(\n () =>\n new Map(\n (this.options() ?? []).map((option) => [\n option.value,\n [{ $type: 'tag', tag: option.value }] as readonly UiModifier[],\n ]),\n ),\n );\n\n protected readonly android = nativePlatform() === 'android';\n /** Whether Android's dropdown is open. */\n protected readonly open = signal(false);\n /**\n * What Android's dropdown shows closed: the chosen option, or the label before there is one,\n * with the arrow that says a tap opens it, which plain text otherwise does not.\n */\n protected readonly chosenLabel = computed(() => {\n const chosen = this.options()?.find((option) => option.value === this.value());\n return `${chosen?.label ?? this.label() ?? ''} \\u25BE`;\n });\n /** What anchors Android's dropdown to the option it shows. */\n protected readonly anchor = computed(() => [\n { $type: 'menuAnchor', type: 'primaryNotEditable', enabled: !this.disabled() },\n ]);\n\n protected readonly resolvedModifiers = computed(() => {\n const style = this.pickerStyle();\n const own = style\n ? [{ $type: 'pickerStyle', style }, ...(this.modifiers() ?? [])]\n : this.modifiers();\n return withDisabled(own && [...own, ...segmentFonts(own)], this.disabled());\n });\n\n constructor() {\n listen('topSelectionChange', ({ selection }) => {\n if (typeof selection !== 'string' && typeof selection !== 'number') return;\n this.choose(selection);\n });\n }\n\n protected choose(selection: string | number): void {\n this.open.set(false);\n if (this.disabled()) return;\n this.value.set(selection);\n this.touch.emit();\n }\n}\n\n/** What `ui-toggle` sends when it is switched: whether it is now on. */\nexport type UiToggleChangeEvent = NativeSyntheticEvent<{ readonly isOn: boolean }>;\n\n/**\n * A SwiftUI `Toggle`, or Compose's `Switch` on Android. `isOnChange` reports each flip. Bound to\n * `isOn`, it shows what `isOn` says; without it, it switches itself. `label` is SwiftUI's alone.\n */\n@Component({\n selector: 'ui-toggle',\n template: '<ng-content />',\n host: {\n '[isOn]': 'android ? undefined : isOn()',\n '[value]': 'android ? (isOn() ?? switchedOn()) : undefined',\n '[label]': 'label()',\n '[modifiers]': 'modifiers()',\n '(checkedChange)': 'android && checked($event)',\n },\n})\nexport class UiToggle {\n protected readonly nativeView = nativeView();\n readonly isOn = input<boolean>(undefined, { transform: optionalBoolean });\n readonly label = input<string>();\n readonly modifiers = input<readonly UiModifier[]>();\n readonly isOnChange = output<UiToggleChangeEvent>();\n\n protected readonly android = nativePlatform() === 'android';\n /** What Compose's switch shows without `isOn`: SwiftUI's keeps this itself, Compose's does not. */\n protected readonly switchedOn = signal(false);\n protected checked(event: NativeSyntheticEvent<{ readonly value: boolean }>): void {\n this.switchedOn.set(event.nativeEvent.value);\n this.isOnChange.emit(withNativeEvent(event, { isOn: event.nativeEvent.value }));\n }\n}\n\n/** What `ui-stepper` sends as it is stepped: its new value. */\nexport type UiStepperChangeEvent = NativeSyntheticEvent<{ readonly value: number }>;\n\n/** A SwiftUI `Stepper`, between `min` and `max` by `step`. */\n@Component({\n selector: 'ui-stepper',\n template: '<ng-content />',\n host: {\n '[value]': 'value()',\n '[min]': 'min()',\n '[max]': 'max()',\n '[step]': 'step()',\n '[label]': 'label()',\n '[modifiers]': 'modifiers()',\n },\n})\nexport class UiStepper {\n protected readonly nativeView = nativeView();\n readonly value = input<number>(undefined, { transform: optionalNumber });\n readonly min = input<number>(undefined, { transform: optionalNumber });\n readonly max = input<number>(undefined, { transform: optionalNumber });\n readonly step = input<number>(undefined, { transform: optionalNumber });\n readonly label = input<string>();\n readonly modifiers = input<readonly UiModifier[]>();\n readonly valueChange = output<UiStepperChangeEvent>();\n}\n\n/** What `ui-text-field` sends as it is typed into: the text so far. */\nexport type UiTextFieldChangeEvent = NativeSyntheticEvent<{ readonly value: string }>;\n\n/**\n * A SwiftUI `TextField`. `text` is where it keeps what is typed, a `nativeState('')`: the field\n * writes to it on the UI thread, and `textChange` reports each change.\n */\n@Component({\n selector: 'ui-text-field',\n template: '',\n host: {\n '[text]': 'text()?.id',\n '[placeholder]': 'placeholder()',\n '[modifiers]': 'modifiers()',\n },\n})\nexport class UiTextField {\n protected readonly nativeView = nativeView();\n readonly text = input<NativeState<string> | null>();\n readonly placeholder = input<string>();\n readonly modifiers = input<readonly UiModifier[]>();\n readonly textChange = output<UiTextFieldChangeEvent>();\n}\n\n/** What `ui-color-picker` sends when a colour is picked: the colour, as hex. */\nexport type UiColorChangeEvent = NativeSyntheticEvent<{ readonly value: string }>;\n\n/** A SwiftUI `ColorPicker`. `selection` is a colour as hex. */\n@Component({\n selector: 'ui-color-picker',\n template: '',\n host: {\n '[selection]': 'selection()',\n '[label]': 'label()',\n '[supportsOpacity]': 'supportsOpacity()',\n '[modifiers]': 'modifiers()',\n },\n})\nexport class UiColorPicker {\n protected readonly nativeView = nativeView();\n readonly selection = input<string>();\n readonly label = input<string>();\n readonly supportsOpacity = input<boolean>(undefined, { transform: optionalBoolean });\n readonly modifiers = input<readonly UiModifier[]>();\n readonly selectionChange = output<UiColorChangeEvent>();\n}\n\n/** A SwiftUI `Gauge`: `value` between `min` and `max`, drawn as `type` says. */\n@Component({\n selector: 'ui-gauge',\n template: '<ng-content />',\n host: {\n '[value]': 'value()',\n '[min]': 'min()',\n '[max]': 'max()',\n '[type]': 'type()',\n '[currentValueLabel]': 'currentValueLabel()',\n '[minimumValueLabel]': 'minimumValueLabel()',\n '[maximumValueLabel]': 'maximumValueLabel()',\n '[modifiers]': 'modifiers()',\n },\n})\nexport class UiGauge {\n protected readonly nativeView = nativeView();\n readonly value = input<number>(undefined, { transform: optionalNumber });\n readonly min = input<number>(undefined, { transform: optionalNumber });\n readonly max = input<number>(undefined, { transform: optionalNumber });\n readonly type = input<string>();\n readonly currentValueLabel = input<string>();\n readonly minimumValueLabel = input<string>();\n readonly maximumValueLabel = input<string>();\n readonly modifiers = input<readonly UiModifier[]>();\n}\n\n/** One point of a `ui-chart`: `x`, a label or a number, against `y`, with a colour of its own. */\nexport interface UiChartDataPoint {\n readonly x: string | number;\n readonly y: number;\n readonly color?: string;\n}\n\n/** How a `ui-chart` draws its points: `pie` needs iOS 17. */\nexport type UiChartType = 'line' | 'point' | 'bar' | 'area' | 'pie' | 'rectangle';\n\n/** The symbol a `ui-chart` marks a point with. */\nexport type UiChartPointSymbol = 'circle' | 'square' | 'diamond';\n\n/** A line chart's line: its dashes, width, colour, and the symbol at each point. */\nexport interface UiChartLineStyle {\n readonly dashArray?: readonly number[];\n readonly width?: number;\n readonly pointStyle?: UiChartPointSymbol;\n readonly pointSize?: number;\n readonly color?: string;\n}\n\n/** A point chart's symbol and its size. */\nexport interface UiChartPointStyle {\n readonly pointStyle?: UiChartPointSymbol;\n readonly pointSize?: number;\n}\n\n/** An area chart's fill. */\nexport interface UiChartAreaStyle {\n readonly color?: string;\n}\n\n/** A bar chart's bars: their corner radius and width. */\nexport interface UiChartBarStyle {\n readonly cornerRadius?: number;\n readonly width?: number;\n}\n\n/** A pie chart's slices: `innerRadius` from 0, a full pie, to 0.5 for a donut, and the gap between. */\nexport interface UiChartPieStyle {\n readonly innerRadius?: number;\n readonly angularInset?: number;\n}\n\n/** A rectangle chart's colour and corner radius. */\nexport interface UiChartRectangleStyle {\n readonly color?: string;\n readonly cornerRadius?: number;\n}\n\n/** The lines `referenceLines` draws across a `ui-chart`. */\nexport interface UiChartRuleStyle {\n readonly color?: string;\n readonly lineWidth?: number;\n readonly dashArray?: readonly number[];\n}\n\n/**\n * A Swift Charts chart of `data`, drawn as `type` says, iOS only, as Compose has no chart. Each\n * style applies to its own type alone; `referenceLines` are drawn across it in `ruleStyle`.\n * `showLegend` shows only when no point has a colour of its own.\n */\n@Component({\n selector: 'ui-chart',\n template: '',\n host: {\n '[data]': 'data()',\n '[type]': 'type()',\n '[showGrid]': 'showGrid()',\n '[animate]': 'animate()',\n '[showLegend]': 'showLegend()',\n '[referenceLines]': 'referenceLines()',\n '[lineStyle]': 'lineStyle()',\n '[pointStyle]': 'pointStyle()',\n '[areaStyle]': 'areaStyle()',\n '[barStyle]': 'barStyle()',\n '[pieStyle]': 'pieStyle()',\n '[rectangleStyle]': 'rectangleStyle()',\n '[ruleStyle]': 'ruleStyle()',\n '[modifiers]': 'modifiers()',\n },\n})\nexport class UiChart {\n protected readonly nativeView = nativeView();\n readonly data = input.required<readonly UiChartDataPoint[]>();\n readonly type = input<UiChartType>();\n readonly showGrid = input<boolean>(undefined, { transform: optionalBoolean });\n readonly animate = input<boolean>(undefined, { transform: optionalBoolean });\n readonly showLegend = input<boolean>(undefined, { transform: optionalBoolean });\n readonly referenceLines = input<readonly UiChartDataPoint[]>();\n readonly lineStyle = input<UiChartLineStyle>();\n readonly pointStyle = input<UiChartPointStyle>();\n readonly areaStyle = input<UiChartAreaStyle>();\n readonly barStyle = input<UiChartBarStyle>();\n readonly pieStyle = input<UiChartPieStyle>();\n readonly rectangleStyle = input<UiChartRectangleStyle>();\n readonly ruleStyle = input<UiChartRuleStyle>();\n readonly modifiers = input<readonly UiModifier[]>();\n}\n\n/**\n * A SwiftUI `ProgressView`: a bar filled to `value`, from 0 to 1, or a spinner without one. On\n * Android, Compose's `LinearProgressIndicator`, a moving bar rather than a spinner without a value.\n * On iOS, `timerInterval` has the bar keep time by itself from its `lower` to its `upper`, emptying\n * unless `countsDown` is false.\n */\n@Component({\n selector: 'ui-progress',\n template: '',\n host: {\n '[value]': 'android ? undefined : value()',\n '[progress]': 'android ? value() : undefined',\n '[timerInterval]': 'android ? undefined : timerInterval()',\n '[countsDown]': 'android ? undefined : countsDown()',\n '[modifiers]': 'modifiers()',\n },\n})\nexport class UiProgress {\n protected readonly nativeView = nativeView();\n protected readonly android = nativePlatform() === 'android';\n readonly value = input<number>(undefined, { transform: optionalNumber });\n readonly timerInterval = input(undefined, { transform: timerMilliseconds });\n readonly countsDown = input<boolean>(undefined, { transform: optionalBoolean });\n readonly modifiers = input<readonly UiModifier[]>();\n}\n\n/**\n * A SwiftUI `HStack`, or Compose's `Row` on Android, centred, as SwiftUI's is, unless `alignment`\n * says otherwise. Compose has no `firstTextBaseline`, and centres instead. Without `spacing`, SwiftUI\n * puts its own default spacing between children and Compose puts none.\n */\n@Component({\n selector: 'ui-hstack',\n template: '<ng-content />',\n host: {\n '[alignment]': 'android ? undefined : alignment()',\n '[spacing]': 'android ? undefined : spacing()',\n '[horizontalArrangement]': 'android ? spacedBy(spacing()) : undefined',\n '[verticalAlignment]': 'android ? composeAlignment(alignment()) : undefined',\n '[modifiers]': 'modifiers()',\n },\n})\nexport class UiHStack {\n protected readonly nativeView = nativeView();\n readonly alignment = input<'top' | 'center' | 'bottom' | 'firstTextBaseline'>();\n readonly spacing = input<number>(undefined, { transform: optionalNumber });\n readonly modifiers = input<readonly UiModifier[]>();\n\n protected readonly android = nativePlatform() === 'android';\n protected readonly spacedBy = spacedBy;\n protected composeAlignment(\n alignment: 'top' | 'center' | 'bottom' | 'firstTextBaseline' | undefined,\n ) {\n return alignment === 'top' || alignment === 'bottom' ? alignment : 'center';\n }\n}\n\nfunction spacedBy(spacing: number | undefined) {\n return spacing === undefined ? undefined : { spacedBy: Math.round(spacing) };\n}\n\n/** A SwiftUI `Spacer`: the room left over in its stack. */\n@Component({\n selector: 'ui-spacer',\n template: '',\n host: { '[modifiers]': 'modifiers()' },\n})\nexport class UiSpacer {\n protected readonly nativeView = nativeView();\n readonly modifiers = input<readonly UiModifier[]>();\n}\n\n/** Where `ui-zstack` puts its layers, as SwiftUI names it. */\nexport type UiZStackAlignment =\n | 'center'\n | 'leading'\n | 'trailing'\n | 'top'\n | 'bottom'\n | 'topLeading'\n | 'topTrailing'\n | 'bottomLeading'\n | 'bottomTrailing';\n\n/** The same place, as Compose's `Box` names it. */\nconst CONTENT_ALIGNMENT: Record<UiZStackAlignment, string> = {\n center: 'center',\n leading: 'centerStart',\n trailing: 'centerEnd',\n top: 'topCenter',\n bottom: 'bottomCenter',\n topLeading: 'topStart',\n topTrailing: 'topEnd',\n bottomLeading: 'bottomStart',\n bottomTrailing: 'bottomEnd',\n};\n\n/**\n * A SwiftUI `ZStack`: its children drawn over one another, the first at the back. On Android,\n * Compose's `Box`, centred, as SwiftUI's is, unless `alignment` says otherwise.\n */\n@Component({\n selector: 'ui-zstack',\n template: '<ng-content />',\n host: {\n '[alignment]': 'android ? undefined : alignment()',\n '[contentAlignment]': 'android ? contentAlignment[alignment() ?? \"center\"] : undefined',\n '[modifiers]': 'modifiers()',\n },\n})\nexport class UiZStack {\n protected readonly nativeView = nativeView();\n readonly alignment = input<UiZStackAlignment>();\n readonly modifiers = input<readonly UiModifier[]>();\n\n protected readonly android = nativePlatform() === 'android';\n protected readonly contentAlignment = CONTENT_ALIGNMENT;\n}\n\n/** A SwiftUI `Rectangle`, filling the space it is given. Colour it with `foregroundStyle`. */\n@Component({\n selector: 'ui-rectangle',\n template: '',\n host: { '[modifiers]': 'modifiers()' },\n})\nexport class UiRectangle {\n protected readonly nativeView = nativeView();\n readonly modifiers = input<readonly UiModifier[]>();\n}\n\n/** A SwiftUI `RoundedRectangle`, its corners rounded by `cornerRadius`. */\n@Component({\n selector: 'ui-rounded-rectangle',\n template: '',\n host: { '[cornerRadius]': 'cornerRadius()', '[modifiers]': 'modifiers()' },\n})\nexport class UiRoundedRectangle {\n protected readonly nativeView = nativeView();\n readonly cornerRadius = input<number>(undefined, { transform: optionalNumber });\n readonly modifiers = input<readonly UiModifier[]>();\n}\n\n/** A SwiftUI `UnevenRoundedRectangle`: a rectangle with a radius of its own for each corner. */\n@Component({\n selector: 'ui-uneven-rounded-rectangle',\n template: '',\n host: {\n '[topLeadingRadius]': 'topLeadingRadius()',\n '[topTrailingRadius]': 'topTrailingRadius()',\n '[bottomLeadingRadius]': 'bottomLeadingRadius()',\n '[bottomTrailingRadius]': 'bottomTrailingRadius()',\n '[modifiers]': 'modifiers()',\n },\n})\nexport class UiUnevenRoundedRectangle {\n protected readonly nativeView = nativeView();\n readonly topLeadingRadius = input<number>(undefined, { transform: optionalNumber });\n readonly topTrailingRadius = input<number>(undefined, { transform: optionalNumber });\n readonly bottomLeadingRadius = input<number>(undefined, { transform: optionalNumber });\n readonly bottomTrailingRadius = input<number>(undefined, { transform: optionalNumber });\n readonly modifiers = input<readonly UiModifier[]>();\n}\n\n/** A SwiftUI `Capsule`: a rectangle with fully rounded ends. */\n@Component({\n selector: 'ui-capsule',\n template: '',\n host: { '[cornerStyle]': 'cornerStyle()', '[modifiers]': 'modifiers()' },\n})\nexport class UiCapsule {\n protected readonly nativeView = nativeView();\n readonly cornerStyle = input<'continuous' | 'circular'>();\n readonly modifiers = input<readonly UiModifier[]>();\n}\n\n/** A SwiftUI `Circle`, as large as fits the space it is given. */\n@Component({\n selector: 'ui-circle',\n template: '',\n host: { '[modifiers]': 'modifiers()' },\n})\nexport class UiCircle {\n protected readonly nativeView = nativeView();\n readonly modifiers = input<readonly UiModifier[]>();\n}\n\n/** A SwiftUI `Ellipse`, filling the space it is given. */\n@Component({\n selector: 'ui-ellipse',\n template: '',\n host: { '[modifiers]': 'modifiers()' },\n})\nexport class UiEllipse {\n protected readonly nativeView = nativeView();\n readonly modifiers = input<readonly UiModifier[]>();\n}\n\n/**\n * WidgetKit's `AccessoryWidgetBackground`: the system's backdrop for a lock screen widget, the\n * translucent disc or panel behind its content.\n */\n@Component({\n selector: 'ui-accessory-widget-background',\n template: '',\n host: { '[modifiers]': 'modifiers()' },\n})\nexport class UiAccessoryWidgetBackground {\n protected readonly nativeView = nativeView();\n readonly modifiers = input<readonly UiModifier[]>();\n}\n\n/** A SwiftUI `Label`: a title beside an SF Symbol. */\n@Component({\n selector: 'ui-label',\n template: '',\n host: {\n '[title]': 'title()',\n '[systemImage]': 'systemImage()',\n '[color]': 'color()',\n '[modifiers]': 'modifiers()',\n },\n})\nexport class UiLabel {\n protected readonly nativeView = nativeView();\n readonly title = input<string>();\n /** An SF Symbol name. */\n readonly systemImage = input<string>();\n readonly color = input<string>();\n readonly modifiers = input<readonly UiModifier[]>();\n}\n\n/**\n * A SwiftUI `Link`: opens `destination`, a URL, when tapped. It shows `label`, or the views\n * written inside it. In a widget, a link is how a tap opens the app at a deep link.\n */\n@Component({\n selector: 'ui-link',\n template: '<ng-content />',\n host: {\n '[destination]': 'destination()',\n '[label]': 'label()',\n '[modifiers]': 'modifiers()',\n },\n})\nexport class UiLink {\n protected readonly nativeView = nativeView();\n readonly destination = input.required<string>();\n readonly label = input<string>();\n readonly modifiers = input<readonly UiModifier[]>();\n}\n\n/** A SwiftUI `LabeledContent`: a label, and its content beside it. */\n@Component({\n selector: 'ui-labeled-content',\n imports: [UiSlot],\n template: '<ui-slot name=\"content\"><ng-content /></ui-slot>',\n host: { '[label]': 'label()', '[modifiers]': 'modifiers()' },\n})\nexport class UiLabeledContent {\n protected readonly nativeView = nativeView();\n readonly label = input<string>();\n readonly modifiers = input<readonly UiModifier[]>();\n}\n\n/** A SwiftUI `Form`: settings-style grouped rows. */\n@Component({\n selector: 'ui-form',\n template: '<ng-content />',\n host: { '[modifiers]': 'modifiers()' },\n})\nexport class UiForm {\n protected readonly nativeView = nativeView();\n readonly modifiers = input<readonly UiModifier[]>();\n}\n\n/** A SwiftUI `Section` of a form or a list, under `title`. */\n@Component({\n selector: 'ui-section',\n imports: [UiSlot],\n template: '<ui-slot name=\"content\"><ng-content /></ui-slot>',\n host: { '[title]': 'title()', '[modifiers]': 'modifiers()' },\n})\nexport class UiSection {\n protected readonly nativeView = nativeView();\n readonly title = input<string>();\n readonly modifiers = input<readonly UiModifier[]>();\n}\n\n/**\n * A SwiftUI `Group`, iOS only: its children as they are, with no layout of its own. What it is for\n * is `modifiers` that belong to several views at once, or to content that takes none itself, as a\n * sheet's presentation modifiers go on a group around a `ui-view-host`.\n */\n@Component({\n selector: 'ui-group',\n template: '<ng-content />',\n host: { '[modifiers]': 'modifiers()' },\n})\nexport class UiGroup {\n protected readonly nativeView = nativeView();\n readonly modifiers = input<readonly UiModifier[]>();\n}\n\n/**\n * A SwiftUI `NavigationStack`, iOS only: the bar a `ui-toolbar` inside it puts its items in, and\n * that a `navigationTitle` modifier on its content titles.\n */\n@Component({\n selector: 'ui-navigation-stack',\n template: '<ng-content />',\n host: { '[modifiers]': 'modifiers()' },\n})\nexport class UiNavigationStack {\n protected readonly nativeView = nativeView();\n readonly modifiers = input<readonly UiModifier[]>();\n}\n\n/**\n * SwiftUI's `toolbar`, iOS only. Its children are the view the toolbar belongs to, and its items go\n * in `<ui-slot name=\"content\">`, each a `ui-toolbar-item`. It shows in the bar of the\n * `ui-navigation-stack` around it.\n */\n@Component({\n selector: 'ui-toolbar',\n template: '<ng-content />',\n host: { '[modifiers]': 'modifiers()' },\n})\nexport class UiToolbar {\n protected readonly nativeView = nativeView();\n readonly modifiers = input<readonly UiModifier[]>();\n}\n\n/** Where a `ui-toolbar-item` sits, as SwiftUI's `ToolbarItemPlacement` names them. */\nexport type UiToolbarItemPlacement =\n | 'automatic'\n | 'principal'\n | 'navigation'\n | 'primaryAction'\n | 'secondaryAction'\n | 'status'\n | 'confirmationAction'\n | 'cancellationAction'\n | 'destructiveAction'\n | 'keyboard'\n | 'topBarLeading'\n | 'topBarTrailing'\n | 'topBarPinnedTrailing'\n | 'largeTitle'\n | 'bottomBar';\n\n/**\n * One item of a `ui-toolbar`, SwiftUI's `ToolbarItem`: a `ui-button`, or a `ui-text` as a title\n * with `placement=\"principal\"`. Unplaced, SwiftUI places it. A placement the OS does not have is\n * read as `automatic`.\n *\n * Written inside a `ui-bottom-sheet` it goes in the sheet's own toolbar, which is how a sheet\n * shows the system's close button.\n */\n@Component({\n selector: 'ui-toolbar-item',\n template: '<ng-content />',\n host: { '[name]': '\"item\"', '[extraProps]': 'extraProps()' },\n})\nexport class UiToolbarItem {\n protected readonly nativeView = nativeView();\n readonly placement = input<UiToolbarItemPlacement>();\n /** How readily the item gives up its place when the bar runs out of room, from iOS 27. */\n readonly visibilityPriority = input<'automatic' | 'low' | 'high'>();\n\n /** What the slot tells the toolbar about itself: only what is set, so SwiftUI decides the rest. */\n protected readonly extraProps = computed(() => {\n const placement = this.placement();\n const visibilityPriority = this.visibilityPriority();\n if (!placement && !visibilityPriority) return undefined;\n return { ...(placement && { placement }), ...(visibilityPriority && { visibilityPriority }) };\n });\n}\n\n/**\n * A height a SwiftUI sheet rests at, as `@expo/ui`'s `PresentationDetent`: about half the screen,\n * all of it, a fraction of it from 0 to 1, or a height in points.\n */\nexport type UiPresentationDetent =\n 'medium' | 'large' | { readonly fraction: number } | { readonly height: number };\n\n/** The detents of a sheet given none and not sized to its content. */\nconst HALF_AND_FULL: readonly UiPresentationDetent[] = ['medium', 'large'];\n\n/** The functions `@expo/ui` defines on Compose's sheet, called with the view's tag as `this`. */\nexport interface UiBottomSheetViewFunctions {\n /** Slides the sheet away, answering once it has gone. */\n hide?(this: { nativeTag: number }): Promise<void>;\n}\n\n/** The window's width as the engine knows it, or undefined before the platform has said. */\nfunction windowWidth(): Signal<number | undefined> {\n const node = inject(ElementRef).nativeElement as HostNode;\n const engine = (node.host ?? inject(HostEngine)) as Partial<\n Pick<Engine, 'viewport' | 'watchViewport'>\n >;\n const read = () => engine.viewport?.width || undefined;\n const width = signal(read());\n const stop = engine.watchViewport?.(() => width.set(read()));\n if (stop) inject(DestroyRef).onDestroy(stop);\n return width;\n}\n\n/**\n * A sheet that slides up from the bottom of the screen, opened from any component: SwiftUI's on\n * iOS, Material's on Android.\n *\n * ```html\n * <ui-bottom-sheet [(open)]=\"sorting\" fitToContents>\n * <app-sort-options (done)=\"sorting.set(false)\" />\n * </ui-bottom-sheet>\n * ```\n *\n * `open` presents and dismisses it, and is written back when the user dismisses it. Its content is\n * what is written inside it, the app's own components, in the tree while the sheet is on screen.\n *\n * A `ui-toolbar-item` written inside it is not content: on iOS it goes in a toolbar of the sheet's\n * own, in a bar across its top, which is where the system's close button belongs.\n *\n * ```html\n * <ui-bottom-sheet [(open)]=\"sorting\">\n * <ui-toolbar-item placement=\"cancellationAction\">\n * <ui-button role=\"close\" (buttonPress)=\"sorting.set(false)\" />\n * </ui-toolbar-item>\n * <app-sort-options />\n * </ui-bottom-sheet>\n * ```\n *\n * Compose's sheet has no toolbar, so Android draws no item. Nor does an iOS build whose `@expo/ui`\n * is older than 57.0.20, which Expo Go's can be: it warns, and shows the sheet without one.\n *\n * The two platforms drive a sheet differently, and this is where that difference ends. SwiftUI's\n * stays in the tree and is presented by `isPresented`, reporting `isPresentedChange` and\n * `dismiss`. Compose's shows for as long as it is in the tree, and reports `dismissRequest`.\n *\n * Unlike the other components here, the element this is mounted on is a plain view, which takes\n * no room and needs no `ui-host` around it. The sheet is inside it, wrapped as `@expo/ui`'s own\n * React component wraps one: a `ui-host`, the sheet, on iOS a `ui-group` that carries the\n * presentation modifiers, and a `ui-view-host` holding the one view the content goes in. Where the\n * build has SwiftUI's toolbar and the sheet is not sized to its content, the view host is in a\n * `ui-navigation-stack` under the group, over a `ui-toolbar` that holds the items.\n */\n@Component({\n selector: 'ui-bottom-sheet',\n imports: [\n UiBottomSheetContent,\n UiBottomSheetView,\n UiGroup,\n UiHost,\n UiNavigationStack,\n UiSlot,\n UiSpacer,\n UiToolbar,\n UiViewHost,\n UiZStack,\n ],\n template: `\n <ng-template #content><ng-content /></ng-template>\n @if (swiftUI) {\n <ui-host style=\"position: absolute\" pointerEvents=\"none\" [style.width.px]=\"width()\">\n <ui-bottom-sheet-view\n #sheet\n [isPresented]=\"open()\"\n [fitToContents]=\"fits()\"\n (isPresentedChange)=\"presented($event)\"\n (dismiss)=\"gone($event)\"\n >\n @if (mounted()) {\n <ui-group [modifiers]=\"presentation()\">\n @if (stacked()) {\n <ui-navigation-stack>\n <ui-zstack>\n <ui-toolbar [modifiers]=\"inlineTitle\">\n <ui-spacer />\n <ui-slot name=\"content\"><ng-content select=\"ui-toolbar-item\" /></ui-slot>\n </ui-toolbar>\n <ui-view-host layoutRoot [matchContents]=\"fits() || undefined\">\n <ui-bottom-sheet-content [style]=\"body()\" [content]=\"content\" />\n </ui-view-host>\n </ui-zstack>\n </ui-navigation-stack>\n } @else {\n <ui-view-host layoutRoot [matchContents]=\"fits() || undefined\">\n <ui-bottom-sheet-content [style]=\"body()\" [content]=\"content\" />\n </ui-view-host>\n }\n </ui-group>\n }\n </ui-bottom-sheet-view>\n </ui-host>\n } @else if (mounted()) {\n <ui-host style=\"position: absolute\" pointerEvents=\"none\" [style.width.px]=\"width()\">\n <ui-bottom-sheet-view\n #sheet\n [showDragHandle]=\"showDragIndicator()\"\n [skipPartiallyExpanded]=\"fits()\"\n (dismissRequest)=\"dismissRequested($event)\"\n >\n <ui-view-host layoutRoot [matchContents]=\"fits() || undefined\">\n <ui-bottom-sheet-content [style]=\"body()\" [content]=\"content\" />\n </ui-view-host>\n </ui-bottom-sheet-view>\n </ui-host>\n }\n `,\n host: { '[style.position]': '\"absolute\"' },\n})\nexport class UiBottomSheet {\n /**\n * The functions of Compose's sheet, none of them on iOS, or null where `@expo/ui` is not in the\n * build and there is no sheet. Overridden in a test to hide a sheet without a device.\n */\n static readonly SOURCE = new InjectionToken<UiBottomSheetViewFunctions | null>(\n 'angular-native.bottomSheetSource',\n {\n factory: () =>\n optional(() => {\n const core = require('expo-modules-core') as typeof import('expo-modules-core');\n const module = core.requireOptionalNativeModule<{\n ViewPrototypes?: Record<string, UiBottomSheetViewFunctions>;\n }>('ExpoUI');\n return module ? (module.ViewPrototypes?.['ExpoUI_ModalBottomSheetView'] ?? {}) : null;\n }),\n },\n );\n\n /**\n * Whether the build has SwiftUI's toolbar. `@expo/ui` has had it since 57.0.20, and Expo Go has\n * the version its SDK shipped with. A SwiftUI view under one the build lacks is a crash, so a\n * sheet there leaves its toolbar out. Overridden in a test.\n */\n static readonly TOOLBAR = new InjectionToken<boolean>('angular-native.bottomSheetToolbar', {\n factory: () => {\n const expo = (\n globalThis as { expo?: { getViewConfig?(module: string, view: string): unknown } }\n ).expo;\n return ['NavigationStackView', 'ToolbarView'].every(\n (view) => optional(() => expo?.getViewConfig?.('ExpoUI', view)) != null,\n );\n },\n });\n\n private readonly functions = inject(UiBottomSheet.SOURCE);\n private readonly toolbarInBuild = inject(UiBottomSheet.TOOLBAR);\n private readonly engine = inject(Engine, { optional: true });\n private readonly injector = inject(Injector);\n private readonly sheet = viewChild<unknown, ElementRef<EngineNode>>('sheet', {\n read: ElementRef,\n });\n\n /** Whether the sheet is on screen. Written back as false when the user dismisses it. */\n readonly open = model(false);\n /**\n * The sheet is as tall as its content. Without it the sheet rests at half the screen's height\n * and drags up to all of it. Read as the sheet opens. A sheet with a toolbar on iOS is not\n * sized to its content: it rests at its `detents`, or at half and full height.\n */\n readonly fitToContents = input(false, { transform: booleanAttribute });\n /**\n * The heights the sheet rests at, iOS only: SwiftUI's `presentationDetents`. Compose's sheet has\n * a half and a full height and no others, so Android takes no notice of this. On iOS a sheet\n * given detents rests at them rather than at the height of its content, whatever `fitToContents`\n * says, as `@expo/ui`'s own sheets do. None, or an empty list, is the sheet without them.\n */\n readonly detents = input<readonly UiPresentationDetent[]>();\n /** Whether the grabber shows at the top of the sheet. */\n readonly showDragIndicator = input(true, { transform: booleanAttribute });\n /**\n * The sheet has finished closing, whether the user dismissed it or `open` was set false: the\n * moment another sheet or a dialog can be presented.\n */\n readonly dismissed = output<void>();\n\n /** The toolbar items written inside the sheet, which give it a bar to hold them. */\n private readonly toolbarItems = contentChildren(UiToolbarItem);\n /** Whether the sheet has a toolbar: it has items for one, and the build has the views. */\n protected readonly toolbar = computed(\n () => this.toolbarInBuild && this.toolbarItems().length > 0,\n );\n\n /**\n * A sheet's bar never shows a large title, but a navigation stack leaves room for one under its\n * bar. `@expo/ui` has no modifier for the title's display mode, so `@ng-native/expo` registers\n * one natively, in a build with `@expo/ui`. One without it, Expo Go's, ignores the modifier.\n */\n protected readonly inlineTitle: readonly UiModifier[] = [\n { $type: 'ngNativeInlineNavigationTitle' },\n ];\n\n /** SwiftUI's sheet stays in the tree; anywhere else it is there while it shows. */\n protected readonly swiftUI = nativePlatform() === 'ios';\n protected readonly width = windowWidth();\n\n /**\n * Whether the content is in the tree: from when the sheet opens until it has gone, which is\n * after `open` turns false, so that it slides away with its content still in it.\n */\n protected readonly mounted = linkedSignal<boolean, boolean>({\n source: this.open,\n computation: (open, previous) => open || (previous?.value ?? false),\n });\n\n /**\n * Whether the sheet is sized to its content, as it opened: a view host takes its sizing once,\n * as it mounts. SwiftUI's sheet is not where it has detents to rest at, nor where it has a\n * toolbar: a navigation stack fills what it is given, and the bar is no part of the content.\n * A toolbar that comes or goes while such a sheet is open is followed, since the view host is\n * made again around it.\n */\n protected readonly fits = computed(() => {\n this.mounted();\n const toolbar = this.toolbar();\n return untracked(\n () => this.fitToContents() && !(this.swiftUI && (this.detents()?.length || toolbar)),\n );\n });\n\n /**\n * Whether the content is in a navigation stack, beside a toolbar: wherever the build has one and\n * the sheet is not sized to its content, items or none, so that an item coming or going never\n * makes the view host again. `@expo/ui`'s view host takes its content's touches as it appears and\n * gives them up as it disappears, and one made again around the same content appears before the\n * old one has gone, leaving the content none. A stack with no item draws no bar. The toolbar is\n * beside the view host rather than around it, since SwiftUI makes the view a toolbar is on again\n * as its items change.\n */\n protected readonly stacked = computed(() => this.toolbarInBuild && !this.fits());\n\n /**\n * SwiftUI reads how a sheet is presented from modifiers on its content, not from props. The\n * detents of a sheet not sized to its content are followed while it is open.\n */\n protected readonly presentation = computed<readonly UiModifier[]>(() => [\n this.fits()\n ? { $type: 'presentationSizing', sizing: 'fitted' }\n : {\n $type: 'presentationDetents',\n detents: this.detents()?.length ? this.detents() : HALF_AND_FULL,\n },\n {\n $type: 'presentationDragIndicator',\n visibility: this.showDragIndicator() ? 'visible' : 'hidden',\n },\n ]);\n\n /**\n * The one view a view host holds. Sized to its content it needs a width of its own, the\n * window's; otherwise it fills the height the sheet gives it.\n */\n protected readonly body = computed(() =>\n this.fits() ? { width: this.width() } : { flexGrow: 1, height: 0 },\n );\n\n /** Whether `open` has turned false on a sheet that has yet to go. */\n private closing = false;\n /** Whether Compose is sliding the sheet away. */\n private hiding = false;\n\n constructor() {\n effect(() => {\n if (!this.open()) untracked(() => this.close());\n });\n if (this.swiftUI && !this.toolbarInBuild) {\n const warned = effect(() => {\n if (!this.toolbarItems().length) return;\n console.warn(\n '[angular-native] A ui-toolbar-item in a ui-bottom-sheet needs @expo/ui 57.0.20 or ' +\n 'later in the native build. This build has no SwiftUI toolbar, as Expo Go may not, ' +\n 'so the sheet is shown without the item.',\n );\n warned.destroy();\n });\n }\n }\n\n protected presented(event: UiBottomSheetPresentedEvent): void {\n if (!this.own(event)) return;\n const isPresented: unknown = event.nativeEvent?.isPresented;\n if (typeof isPresented === 'boolean') this.open.set(isPresented);\n }\n\n protected dismissRequested(event: NativeSyntheticEvent): void {\n if (this.own(event)) this.open.set(false);\n }\n\n /**\n * SwiftUI has finished dismissing the sheet. After a swipe it says so before it reports that the\n * sheet is no longer presented, so a sheet that has gone while `open`, and was not closing, is\n * one the user dismissed.\n */\n protected gone(event: NativeSyntheticEvent): void {\n if (!this.own(event)) return;\n if (!this.closing) this.open.set(false);\n this.finish();\n }\n\n /**\n * Whether an event is this sheet's own, which it then stops. Events bubble, so a `dismiss` from\n * a modal in the content arrives here too, and the sheet's own would go on to a listener around\n * it.\n */\n private own(event: NativeSyntheticEvent): boolean {\n const target = event.target;\n if (target != null && target !== this.sheet()?.nativeElement) return false;\n event.stopPropagation();\n return true;\n }\n\n /**\n * `open` turned false. SwiftUI dismisses its sheet on the prop, and says when it has gone.\n * Compose shows a sheet for as long as it is in the tree, so one taken out is gone at once:\n * its `hide` slides it away first, as `@expo/ui`'s own component calls it before unmounting.\n */\n private close(): void {\n if (!this.mounted()) return;\n // No `@expo/ui` in the build: no sheet is there to slide away, or to say that it has.\n if (!this.functions) return this.finish();\n this.closing = true;\n if (this.swiftUI || this.hiding) return;\n const node = this.sheet()?.nativeElement;\n const nativeTag = node ? (this.engine?.tagOf(node) ?? null) : null;\n const hidden =\n nativeTag === null ? undefined : optional(() => this.functions?.hide?.call({ nativeTag }));\n if (!hidden) return this.finish();\n this.hiding = true;\n const done = () => {\n this.hiding = false;\n this.finish();\n };\n hidden.then(done, done);\n }\n\n /** The sheet has gone: its content leaves the tree. */\n private finish(): void {\n this.closing = false;\n if (!this.mounted()) return;\n if (!this.open()) {\n this.mounted.set(false);\n this.dismissed.emit();\n return;\n }\n // Opened again before it had gone. SwiftUI presents the sheet it still has; Compose hid the\n // one it was asked to, and shows a sheet only as it enters the tree.\n if (this.swiftUI) return;\n this.mounted.set(false);\n afterNextRender(() => this.mounted.set(this.open()), { injector: this.injector });\n }\n}\n"]}
package/dist/expo-ui.js CHANGED
@@ -1,4 +1,5 @@
1
1
  import { registerExpoView } from "./register-expo-view.js";
2
+ import { fontModifierNames } from "./ui-font-names.js";
2
3
  /** Element name -> the `ExpoUI` view on iOS and on Android. Null where the platform has no such. */
3
4
  export const EXPO_UI_VIEWS = {
4
5
  'accessory-widget-background': ['AccessoryWidgetBackgroundView', null],
@@ -31,6 +32,8 @@ export const EXPO_UI_VIEWS = {
31
32
  divider: ['DividerView', 'HorizontalDividerView'],
32
33
  'docked-search-bar': [null, 'DockedSearchBarView'],
33
34
  ellipse: ['EllipseView', null],
35
+ 'dropdown-menu-item': [null, 'DropdownMenuItemView'],
36
+ 'exposed-dropdown-menu': [null, 'ExposedDropdownMenuView'],
34
37
  'exposed-dropdown-menu-box': [null, 'ExposedDropdownMenuBoxView'],
35
38
  'filter-chip': [null, 'FilterChipView'],
36
39
  'floating-action-button': [null, 'FloatingActionButtonView'],
@@ -62,7 +65,8 @@ export const EXPO_UI_VIEWS = {
62
65
  'navigation-stack': ['NavigationStackView', null],
63
66
  overlay: ['OverlayView', null],
64
67
  pager: [null, 'HorizontalPagerView'],
65
- picker: ['PickerView', null],
68
+ /** On Android, the box `UiPicker` draws Compose's controls in: see there. */
69
+ picker: ['PickerView', 'BoxView'],
66
70
  'plain-tooltip': [null, 'PlainTooltipView'],
67
71
  popover: ['PopoverView', null],
68
72
  progress: ['ProgressView', 'LinearProgressIndicatorView'],
@@ -144,6 +148,8 @@ export function registerExpoUiViews(platform) {
144
148
  viewName,
145
149
  textContent,
146
150
  yieldsToComponents: true,
151
+ // SwiftUI finds a face by its PostScript name alone; Compose by the name it registered as.
152
+ fontNames: platform === 'ios' ? fontModifierNames : undefined,
147
153
  });
148
154
  }
149
155
  }