@octane-xplat/ui 0.10.0 → 0.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/native/Image.tsrx.js +151 -16
- package/dist/native/hash-image.js +285 -0
- package/dist/native/image-content-binding.js +158 -0
- package/dist/native/image-content.js +206 -0
- package/dist/native/image-sizing.js +102 -0
- package/dist/native/octane-client-build.json +1 -1
- package/dist/native/vendor/ui-svg/index.android.js +1 -1
- package/dist/web/Image.web.tsrx.js +112 -19
- package/dist/web/hash-image.js +285 -0
- package/dist/web/image-content.js +133 -0
- package/dist/web/octane-client-build.json +1 -1
- package/package.json +5 -4
- package/src/Image.macos.tsrx +11 -2
- package/src/Image.tsrx +203 -17
- package/src/Image.web.tsrx +91 -5
- package/src/Tabs.macos.tsrx +2 -0
- package/src/Timestamp.macos.tsrx +1 -1
- package/src/colorScheme.macos.ts +18 -5
- package/src/hash-image.test.ts +72 -0
- package/src/hash-image.ts +310 -0
- package/src/hosted-unsupported.macos.tsrx +1 -2
- package/src/image-content-binding.mobile.test.ts +174 -0
- package/src/image-content-binding.ts +231 -0
- package/src/image-content.mobile.test.tsrx +84 -0
- package/src/image-content.test.ts +219 -0
- package/src/image-content.ts +309 -0
- package/src/image-decoding.web.test.tsrx +26 -0
- package/src/image-placeholder.mobile.test.tsrx +113 -0
- package/src/image-placeholder.web.test.tsrx +48 -0
- package/src/image-recycling.mobile.test.ts +61 -0
- package/src/image-sizing.mobile.test.ts +158 -0
- package/src/image-sizing.ts +117 -0
- package/src/image.mobile.test.tsrx +81 -0
- package/src/index.macos.ts +1 -0
- package/src/index.shared.ts +7 -0
- package/src/index.shared.web.ts +7 -0
- package/src/list-viewability-observer.ios.ts +1 -0
- package/src/list-viewability.mobile.test.ts +1 -0
- package/src/props.ts +100 -1
- package/src/safeAreaInsets.macos.tsrx +6 -1
- package/src/styled.macos.tsrx +1 -1
- package/src/text-controls.macos.tsrx +3 -1
- package/src/vendor/ui-svg/src/index.android.ts +5 -1
- package/types/generated/.tsrx-typegen-manifest.json +170 -0
- package/types/generated/Accordion.macos.d.ts +5 -0
- package/types/generated/Alert.macos.d.ts +3 -0
- package/types/generated/AlertDialog.macos.d.ts +4 -0
- package/types/generated/AppShell.macos.d.ts +7 -0
- package/types/generated/AspectRatio.macos.d.ts +5 -0
- package/types/generated/Avatar.macos.d.ts +6 -0
- package/types/generated/AvatarGroup.macos.d.ts +6 -0
- package/types/generated/Badge.macos.d.ts +5 -0
- package/types/generated/Banner.macos.d.ts +4 -0
- package/types/generated/BaseTypeahead.macos.d.ts +7 -0
- package/types/generated/Blockquote.macos.d.ts +6 -0
- package/types/generated/BottomSheet.macos.d.ts +3 -0
- package/types/generated/Breadcrumb.macos.d.ts +4 -0
- package/types/generated/ButtonGroup.macos.d.ts +3 -0
- package/types/generated/Calendar.macos.d.ts +5 -0
- package/types/generated/Card.macos.d.ts +4 -0
- package/types/generated/Carousel.macos.d.ts +6 -0
- package/types/generated/Center.macos.d.ts +4 -0
- package/types/generated/CheckIndicator.macos.d.ts +4 -0
- package/types/generated/CheckboxGroup.macos.d.ts +3 -0
- package/types/generated/CheckboxIndicator.macos.d.ts +4 -0
- package/types/generated/Chip.macos.d.ts +5 -0
- package/types/generated/Citation.macos.d.ts +4 -0
- package/types/generated/ClickableCard.macos.d.ts +3 -0
- package/types/generated/Code.macos.d.ts +5 -0
- package/types/generated/CodeBlock.macos.d.ts +6 -0
- package/types/generated/Collapsible.macos.d.ts +5 -0
- package/types/generated/CommandPalette.macos.d.ts +3 -0
- package/types/generated/ComplexSelector.macos.d.ts +3 -0
- package/types/generated/ContextMenu.macos.d.ts +5 -0
- package/types/generated/DateInput.macos.d.ts +6 -0
- package/types/generated/DateRangeInput.macos.d.ts +5 -0
- package/types/generated/DateTimeInput.macos.d.ts +5 -0
- package/types/generated/Dialog.macos.d.ts +3 -0
- package/types/generated/Drawer.macos.d.ts +7 -0
- package/types/generated/DropdownMenu.macos.d.ts +5 -0
- package/types/generated/Empty.macos.d.ts +4 -0
- package/types/generated/FieldGroup.macos.d.ts +4 -0
- package/types/generated/FormField.macos.d.ts +4 -0
- package/types/generated/FormLayout.macos.d.ts +6 -0
- package/types/generated/HStack.macos.d.ts +4 -0
- package/types/generated/Heading.macos.d.ts +3 -0
- package/types/generated/Icon.macos.d.ts +3 -0
- package/types/generated/IconButton.macos.d.ts +3 -0
- package/types/generated/Image.d.ts +0 -5
- package/types/generated/Image.macos.d.ts +2 -0
- package/types/generated/Image.web.d.ts +12 -1
- package/types/generated/InputGroup.macos.d.ts +5 -0
- package/types/generated/InputNumber.macos.d.ts +5 -0
- package/types/generated/InputRating.macos.d.ts +4 -0
- package/types/generated/Item.macos.d.ts +3 -0
- package/types/generated/Kbd.macos.d.ts +4 -0
- package/types/generated/KeyboardAvoiding.macos.d.ts +3 -0
- package/types/generated/Lightbox.macos.d.ts +2 -0
- package/types/generated/Link.macos.d.ts +3 -0
- package/types/generated/List.macos.d.ts +4 -0
- package/types/generated/ListItem.macos.d.ts +5 -0
- package/types/generated/MenuParts.macos.d.ts +9 -0
- package/types/generated/MenuSurface.macos.d.ts +4 -0
- package/types/generated/MetadataList.macos.d.ts +4 -0
- package/types/generated/MetadataListItem.macos.d.ts +3 -0
- package/types/generated/Meter.macos.d.ts +3 -0
- package/types/generated/MobileNav.macos.d.ts +15 -0
- package/types/generated/MoreMenu.macos.d.ts +2 -0
- package/types/generated/NavIcon.macos.d.ts +4 -0
- package/types/generated/NavLink.macos.d.ts +3 -0
- package/types/generated/NavMenu.macos.d.ts +11 -0
- package/types/generated/NavigationMenu.macos.d.ts +4 -0
- package/types/generated/Outline.macos.d.ts +5 -0
- package/types/generated/OverflowList.macos.d.ts +6 -0
- package/types/generated/Overlay.macos.d.ts +3 -0
- package/types/generated/Pagination.macos.d.ts +4 -0
- package/types/generated/PinInput.macos.d.ts +4 -0
- package/types/generated/Popover.macos.d.ts +3 -0
- package/types/generated/PowerSearch.macos.d.ts +7 -0
- package/types/generated/PowerSearchFilterEditor.macos.d.ts +12 -0
- package/types/generated/PowerSearchToken.macos.d.ts +7 -0
- package/types/generated/Pressable.macos.d.ts +2 -0
- package/types/generated/ProgressBar.macos.d.ts +6 -0
- package/types/generated/ProgressGroup.macos.d.ts +3 -0
- package/types/generated/RadioGroup.macos.d.ts +5 -0
- package/types/generated/RadioIndicator.macos.d.ts +3 -0
- package/types/generated/ResizeHandle.macos.d.ts +7 -0
- package/types/generated/RouteBoundary.macos.d.ts +8 -0
- package/types/generated/RouteHost.macos.d.ts +13 -0
- package/types/generated/Row.macos.d.ts +2 -0
- package/types/generated/SafeArea.macos.d.ts +3 -0
- package/types/generated/Screen.macos.d.ts +3 -0
- package/types/generated/ScrollableArea.macos.d.ts +7 -0
- package/types/generated/Section.macos.d.ts +5 -0
- package/types/generated/Select.macos.d.ts +3 -0
- package/types/generated/SelectableCard.macos.d.ts +3 -0
- package/types/generated/Separator.macos.d.ts +5 -0
- package/types/generated/SideNav.macos.d.ts +19 -0
- package/types/generated/Skeleton.macos.d.ts +5 -0
- package/types/generated/StatusDot.macos.d.ts +5 -0
- package/types/generated/Stepper.macos.d.ts +4 -0
- package/types/generated/TabList.macos.d.ts +18 -0
- package/types/generated/Table.macos.d.ts +4 -0
- package/types/generated/Tabs.macos.d.ts +3 -0
- package/types/generated/Text.macos.d.ts +5 -0
- package/types/generated/Thumbnail.macos.d.ts +7 -0
- package/types/generated/TimeInput.macos.d.ts +6 -0
- package/types/generated/TimeWheelPanel.macos.d.ts +16 -0
- package/types/generated/Timeline.macos.d.ts +3 -0
- package/types/generated/Timer.macos.d.ts +3 -0
- package/types/generated/Timestamp.macos.d.ts +5 -0
- package/types/generated/Toast.macos.d.ts +3 -0
- package/types/generated/ToggleButton.macos.d.ts +3 -0
- package/types/generated/Token.macos.d.ts +5 -0
- package/types/generated/Tokenizer.macos.d.ts +6 -0
- package/types/generated/Toolbar.macos.d.ts +6 -0
- package/types/generated/TopNav.macos.d.ts +25 -0
- package/types/generated/Tree.macos.d.ts +4 -0
- package/types/generated/Typeahead.macos.d.ts +8 -0
- package/types/generated/TypeaheadItem.macos.d.ts +5 -0
- package/types/generated/User.macos.d.ts +5 -0
- package/types/generated/VStack.macos.d.ts +4 -0
- package/types/generated/View.macos.d.ts +3 -0
- package/types/generated/VirtualList.macos.d.ts +6 -0
- package/types/generated/VisuallyHidden.macos.d.ts +5 -0
- package/types/generated/WebView.macos.d.ts +2 -0
- package/types/generated/aliases.macos.d.ts +3 -0
- package/types/generated/anim.macos.d.ts +3 -0
- package/types/generated/animation-host.macos.d.ts +3 -0
- package/types/generated/bottom-sheet-panel.macos.d.ts +7 -0
- package/types/generated/bottom-sheet-service.macos.d.ts +5 -0
- package/types/generated/clipboard-write.macos.d.ts +3 -0
- package/types/generated/colorScheme.macos.d.ts +4 -0
- package/types/generated/command-palette-keys.macos.d.ts +2 -0
- package/types/generated/command-palette-scroll.macos.d.ts +2 -0
- package/types/generated/controls.macos.d.ts +8 -0
- package/types/generated/date-composition.macos.d.ts +5 -0
- package/types/generated/escape-props.macos.d.ts +5 -0
- package/types/generated/hash-image.d.ts +13 -0
- package/types/generated/hosted-unsupported.macos.d.ts +1 -0
- package/types/generated/image-content-binding.d.ts +64 -0
- package/types/generated/image-content.d.ts +56 -0
- package/types/generated/image-sizing.d.ts +37 -0
- package/types/generated/index.macos.d.ts +196 -0
- package/types/generated/index.shared.d.ts +1 -1
- package/types/generated/index.shared.web.d.ts +1 -1
- package/types/generated/layout-shells.macos.d.ts +3 -0
- package/types/generated/layout.macos.d.ts +9 -0
- package/types/generated/macos-extras.macos.d.ts +4 -0
- package/types/generated/measure-bounds.macos.d.ts +3 -0
- package/types/generated/nav-href.macos.d.ts +4 -0
- package/types/generated/outline-dom.macos.d.ts +2 -0
- package/types/generated/pan.macos.d.ts +3 -0
- package/types/generated/platform.macos.d.ts +1 -0
- package/types/generated/presentation.macos.d.ts +15 -0
- package/types/generated/props.d.ts +76 -1
- package/types/generated/query-storage.macos.d.ts +8 -0
- package/types/generated/resize-basis.macos.d.ts +4 -0
- package/types/generated/resize-persist.macos.d.ts +8 -0
- package/types/generated/route.macos.d.ts +28 -0
- package/types/generated/safeAreaInsets.macos.d.ts +10 -0
- package/types/generated/stacks.macos.d.ts +3 -0
- package/types/generated/styled.macos.d.ts +9 -0
- package/types/generated/surfaces.macos.d.ts +4 -0
- package/types/generated/svg-image.macos.d.ts +3 -0
- package/types/generated/text-controls.macos.d.ts +4 -0
- package/types/generated/theme/theme-scheme.macos.d.ts +8 -0
- package/types/generated/toast-service.macos.d.ts +3 -0
- package/types/generated/toast-viewport.macos.d.ts +5 -0
- package/types/generated/translate.macos.d.ts +1 -0
- package/types/generated/unsupported.macos.d.ts +1 -0
- package/types/generated/use-imperative-alert-dialog.macos.d.ts +2 -0
- package/types/generated/use-imperative-dialog.macos.d.ts +2 -0
- package/types/generated/use-lightbox.macos.d.ts +2 -0
- package/types/generated/use-scrollable-area.macos.d.ts +6 -0
- package/types/generated/useMeasure.macos.d.ts +3 -0
- package/types/generated/useResizable.macos.d.ts +8 -0
- package/types/generated/useStore.macos.d.ts +2 -0
- package/types/generated/windows.macos.d.ts +2 -0
- package/src/CameraView.macos.tsrx +0 -6
- package/types/index.macos.d.ts +0 -448
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { BaseTypeaheadProps, SearchableItem } from "./props.js";
|
|
2
|
+
/** Combobox engine: input, debounced search/bootstrap, and a result list.
|
|
3
|
+
* AppKit leaf — the renderer's textfield exposes only `value` +
|
|
4
|
+
* `onTextChange`, so there is no focus bootstrap, key navigation, or
|
|
5
|
+
* return-to-select; the list opens when results exist and options are
|
|
6
|
+
* tap-selected. Popover renders inline below the anchor on this target. */
|
|
7
|
+
export declare function BaseTypeahead<T extends SearchableItem>(inProps: BaseTypeaheadProps<T>): unknown;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/** @jsxImportSource @octane-xplat/macos-renderer */
|
|
2
|
+
import type { BlockquoteProps } from './props.js';
|
|
3
|
+
/** macOS AppKit leaf — same structure as the shared native leaf; the AppKit
|
|
4
|
+
* host has no CSS layer for the blockquote rule, so the inline-start bar
|
|
5
|
+
* comes from the background strip view next to the content column. */
|
|
6
|
+
export declare function Blockquote(props: BlockquoteProps): unknown;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { CalendarProps } from './props.js';
|
|
2
|
+
/** Self-drawn month calendar — `single` or `range` selection, ISO values.
|
|
3
|
+
* macOS leaf: same tap-driven grid as native; `ref` exposes
|
|
4
|
+
* `{navigateTo}`. */
|
|
5
|
+
export declare function Calendar(props: CalendarProps): unknown;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/** @jsxImportSource @octane-xplat/macos-renderer */
|
|
2
|
+
import type { CarouselProps } from './props.js';
|
|
3
|
+
/** macOS coverage: the slide row inside the AppKit scroller. Buttons,
|
|
4
|
+
* loop, edge fades, and the imperative handle are unimplemented on this
|
|
5
|
+
* target (documented). */
|
|
6
|
+
export declare function Carousel(props: CarouselProps): unknown;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { IndicatorProps } from './props.js';
|
|
2
|
+
/** CheckIndicator — standalone selection mark; nothing when unchecked and
|
|
3
|
+
* childless, check glyph when checked, `children` in a stable slot. */
|
|
4
|
+
export declare function CheckIndicator(props: IndicatorProps<'singleSelection'>): unknown;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { IndicatorProps } from './props.js';
|
|
2
|
+
/** CheckboxIndicator — decorative box: check glyph when checked, inset bar
|
|
3
|
+
* when indeterminate. Mirrors the shared leaf. */
|
|
4
|
+
export declare function CheckboxIndicator(props: IndicatorProps<'multiSelection'>): unknown;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/** @jsxImportSource @octane-xplat/macos-renderer */
|
|
2
|
+
import type { CodeProps } from './props.js';
|
|
3
|
+
/** Code — macOS leaf. The AppKit host resolves `text-muted` for the
|
|
4
|
+
* secondary color; `size="inherit"`/`color="inherit"` are inert here. */
|
|
5
|
+
export declare function Code(props: CodeProps): unknown;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { CodeBlockProps } from './props.js';
|
|
2
|
+
/** CodeBlock — macOS leaf. The AppKit host's label doesn't compose
|
|
3
|
+
* FormattedString spans, so per-token coloring renders as a single-color
|
|
4
|
+
* mono line unless the token map supplies a concrete override (documented
|
|
5
|
+
* coverage gap: fine-grained syntax colors are web/mobile only). */
|
|
6
|
+
export declare function CodeBlock(props: CodeBlockProps): unknown;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { CollapsibleProps } from "./props.js";
|
|
2
|
+
/** Self-drawn collapsible — `trigger` toggles `children` between shown and
|
|
3
|
+
* hidden (unmounted). Controlled via `open`/`onOpenChange`, uncontrolled
|
|
4
|
+
* via `defaultOpen`. */
|
|
5
|
+
export declare function Collapsible(props: CollapsibleProps): unknown;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { CommandPaletteItem, CommandPaletteProps } from './props.js';
|
|
2
|
+
/** AppKit window-modal sheet using the shared host presenter and dismissal registry. */
|
|
3
|
+
export declare function CommandPalette<T extends CommandPaletteItem>(options: CommandPaletteProps<T>): unknown;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ContextMenuProps } from "./props.js";
|
|
2
|
+
/** Self-drawn context menu — long-press opens the same anchored list as
|
|
3
|
+
* DropdownMenu, positioned over the children. There is no right-click on
|
|
4
|
+
* touch targets; long-press is the honest equivalent gesture. */
|
|
5
|
+
export declare function ContextMenu(props: ContextMenuProps): unknown;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { DateInputProps } from './props.js';
|
|
2
|
+
/** Date entry field — typed text + calendar popover. On macOS every
|
|
3
|
+
* presentation resolves to the pointer surface (fine pointer by
|
|
4
|
+
* definition); the OS-authentic picker is the `@octane-xplat/date-picker`
|
|
5
|
+
* AppKit leaf (`AppKitDatePicker`). */
|
|
6
|
+
export declare function DateInput(props: DateInputProps): unknown;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { DateRangeInputProps } from './props.js';
|
|
2
|
+
/** Date-range entry — trigger + range Calendar with optional `presets`. On
|
|
3
|
+
* On macOS the picker surface is the anchored popover, matching Astryx's
|
|
4
|
+
* popover-only DateRangeInput anatomy. */
|
|
5
|
+
export declare function DateRangeInput(props: DateRangeInputProps): unknown;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { DateTimeInputProps } from './props.js';
|
|
2
|
+
/** Combined date+time entry — typed date segment with calendar popover plus
|
|
3
|
+
* typed time segment (and a preset-time list when `timeOptionInterval` is
|
|
4
|
+
* set). On macOS every presentation resolves to this pointer surface. */
|
|
5
|
+
export declare function DateTimeInput(props: DateTimeInputProps): unknown;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** @jsxImportSource @octane-xplat/macos-renderer */
|
|
2
|
+
import type { DrawerProps } from './props.js';
|
|
3
|
+
/** Self-drawn drawer — grid host: `main` fills the cell, backdrop + left
|
|
4
|
+
* panel overlay it while `open`. Identical pixels/behavior across targets
|
|
5
|
+
* (backdrop tap fires `onDismiss` on both). The edge-gesture plugin widget
|
|
6
|
+
* lives in `ui/android` (DrawerLayout) and `ui/ios` (SideDrawer). */
|
|
7
|
+
export declare function Drawer(props: DrawerProps): unknown;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { DropdownMenuProps } from "./props.js";
|
|
2
|
+
/** Self-drawn dropdown menu — `trigger` plus an anchored item list via
|
|
3
|
+
* Popover. The same anchored listbox renders on every target (decision
|
|
4
|
+
* #48): bounded, unvirtualized items. */
|
|
5
|
+
export declare function DropdownMenu(props: DropdownMenuProps): unknown;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { FormLayoutProps } from './props.js';
|
|
2
|
+
/** FormLayout — vertical column / horizontal row / horizontal-labels
|
|
3
|
+
* column (each Field renders its own label row). The AppKit grid doesn't
|
|
4
|
+
* auto-assign columns, so 'horizontal' uses a wrapped row flow rather
|
|
5
|
+
* than equal-width columns. */
|
|
6
|
+
export declare function FormLayout(props: FormLayoutProps): unknown;
|
|
@@ -1,7 +1,2 @@
|
|
|
1
1
|
import type { ImageProps } from './props.js';
|
|
2
|
-
/** Image — NS <image>. `src` accepts the NS ImageSource grammar:
|
|
3
|
-
* res://name, ~/bundle-path, file path, remote URL, or data: URI. SVG srcs
|
|
4
|
-
* (inline markup, svg data URIs, .svg paths/URLs) route to <svgview> —
|
|
5
|
-
* remote .svg URLs fetch to markup since SVGView has no fetch of its own.
|
|
6
|
-
* `alt` maps to accessibilityLabel (RN calls it `alt` on web parity). */
|
|
7
2
|
export declare function Image(props: ImageProps): unknown;
|
|
@@ -1,3 +1,14 @@
|
|
|
1
1
|
import type { ImageProps } from "./props.js";
|
|
2
|
-
/** Image — a plain <img>. `src` takes any URL or data: URI
|
|
2
|
+
/** Image — a plain <img>. `src` takes any URL or data: URI; a source array
|
|
3
|
+
* becomes a real `srcset` (w descriptors from width·scale, x from scale —
|
|
4
|
+
* the browser owns selection, the same role bestImageSource plays on
|
|
5
|
+
* native). `contentFit`/`contentPosition` map 1:1 to object-fit/
|
|
6
|
+
* object-position; explicit props win over style, style wins over the
|
|
7
|
+
* 'cover'/'50% 50%' defaults. `placeholder` rides the same element: the
|
|
8
|
+
* img keeps showing its last decoded image while a new src fetches, so
|
|
9
|
+
* assigning placeholder → src swaps placeholder → final in one view —
|
|
10
|
+
* never a blank frame and no parallel loader (expo-image study L5). A
|
|
11
|
+
* hidden prefetch keeps the final fetch running while the placeholder
|
|
12
|
+
* paints. `decoding` writes the HTML `decoding` attribute 1:1 (default
|
|
13
|
+
* 'async' — the shared contract's default, not the browser's 'auto'). */
|
|
3
14
|
export declare function Image(props: ImageProps): import("octane/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { InputGroupProps, InputGroupTextProps } from './props.js';
|
|
2
|
+
/** InputGroup — labeled joined input surface; members flatten their own
|
|
3
|
+
* chrome via `useInputGroup()`. */
|
|
4
|
+
export declare function InputGroup(props: InputGroupProps): unknown;
|
|
5
|
+
export declare function InputGroupText(props: InputGroupTextProps): unknown;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { InputNumberProps } from "./props.js";
|
|
2
|
+
/** InputNumber — normalized number field with −/+ steppers. Controlled via
|
|
3
|
+
* `value`/`onValueChange`, uncontrolled via `defaultValue`. Steppers clamp
|
|
4
|
+
* to `min`/`max`. */
|
|
5
|
+
export declare function InputNumber(props: InputNumberProps): unknown;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ListItemProps } from './props.js';
|
|
2
|
+
/** ListItem — a `List` row: marker + startContent + label/description +
|
|
3
|
+
* endContent. `onPress`/`href` interactive; `href` resolves through the
|
|
4
|
+
* deep-link table (external open has no AppKit analog here). */
|
|
5
|
+
export declare function ListItem(props: ListItemProps): unknown;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { MenuItemProps, MenuCheckboxItemProps, MenuRadioItemProps, MenuRadioGroupProps, MenuDividerProps, MenuSubMenuProps, MenuSurfaceProps } from './props.js';
|
|
2
|
+
export declare function DropdownMenuItem(props: MenuItemProps): unknown;
|
|
3
|
+
export declare function DropdownMenuCheckboxItem(props: MenuCheckboxItemProps): unknown;
|
|
4
|
+
export declare function DropdownMenuRadioGroup(props: MenuRadioGroupProps): unknown;
|
|
5
|
+
export declare function DropdownMenuRadioItem(props: MenuRadioItemProps): unknown;
|
|
6
|
+
export declare function DropdownMenuDivider(props: MenuDividerProps): unknown;
|
|
7
|
+
export declare function DropdownMenuSubMenu(props: MenuSubMenuProps): unknown;
|
|
8
|
+
/** Convert legacy data into the same stateful components as compound content. */
|
|
9
|
+
export declare function MenuData(props: Pick<MenuSurfaceProps, 'items'>): unknown;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/** @jsxImportSource @octane-xplat/macos-renderer */
|
|
2
|
+
import type { MenuSurfaceProps } from './props.js';
|
|
3
|
+
/** Native popup roots receive explicit menu ownership instead of relying on context crossing roots. */
|
|
4
|
+
export declare function MenuSurface(props: MenuSurfaceProps): unknown;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { MobileNavProps, MobileNavToggleProps } from './props.js';
|
|
2
|
+
import { AppShellMobileContext, useAppShellMobile } from './nav-contexts.js';
|
|
3
|
+
export { AppShellMobileContext, useAppShellMobile };
|
|
4
|
+
/** MobileNav — the navigation drawer. Inside AppShell its open state comes
|
|
5
|
+
* from context; standalone it takes `isOpen`/`onOpenChange`.
|
|
6
|
+
*
|
|
7
|
+
* Native leaf: renders as an overlay covering its parent cell — backdrop +
|
|
8
|
+
* edge-pinned panel. (On Android, hardware back dismissal is owned by the
|
|
9
|
+
* router's back interceptor when one is registered; otherwise the backdrop
|
|
10
|
+
* tap closes.) Slide-in animation is not implemented on this leaf yet —
|
|
11
|
+
* the drawer appears/dismisses instantly. */
|
|
12
|
+
export declare function MobileNav(props: MobileNavProps): unknown;
|
|
13
|
+
/** MobileNavToggle — the hamburger. Renders nothing unless the AppShell
|
|
14
|
+
* mobile context says the drawer is enabled and mobile layout is active. */
|
|
15
|
+
export declare function MobileNavToggle(props: MobileNavToggleProps): unknown;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { NavHeadingMenuProps, NavHeadingMenuItemProps } from './props.js';
|
|
2
|
+
import { NavHeadingCloseContext, NavHeadingMenuContext, useNavHeadingCloseContext, useNavHeadingMenuContext } from './nav-contexts.js';
|
|
3
|
+
export { NavHeadingMenuContext, useNavHeadingMenuContext, NavHeadingCloseContext, useNavHeadingCloseContext };
|
|
4
|
+
/** NavHeadingMenu — menu-of-links column shown from a heading popover.
|
|
5
|
+
* Native leaf: a plain item column — arrow/typeahead keyboard navigation
|
|
6
|
+
* is a pointer-platform behavior; item activation fires `onClick` +
|
|
7
|
+
* closes the parent menu. */
|
|
8
|
+
export declare function NavHeadingMenu(props: NavHeadingMenuProps): unknown;
|
|
9
|
+
/** NavHeadingMenuItem — one row in a NavHeadingMenu: icon + label +
|
|
10
|
+
* optional description; `href` activates through the route table. */
|
|
11
|
+
export declare function NavHeadingMenuItem(props: NavHeadingMenuItemProps): unknown;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { NavigationMenuProps } from './props.js';
|
|
2
|
+
/** NavigationMenu — a simple horizontal (or vertical) strip of nav items.
|
|
3
|
+
* Native leaf: Pressable rows; item `href` routes through `followHref`. */
|
|
4
|
+
export declare function NavigationMenu(props: NavigationMenuProps): unknown;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { OutlineProps } from './props.js';
|
|
2
|
+
/** Outline — macOS leaf. The AppKit host has no scroll-position events, so
|
|
3
|
+
* scroll-spy and click-to-scroll are inert; activation updates the active
|
|
4
|
+
* item and fires the navigate callbacks (documented coverage gap). */
|
|
5
|
+
export declare function Outline(props: OutlineProps): unknown;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { OverflowListProps } from './props.js';
|
|
2
|
+
/** OverflowList — renders the subset of children that fits the row and
|
|
3
|
+
* hands the rest to `overflowRenderer`. Native leaf: a hidden inert copy
|
|
4
|
+
* inside a horizontal ScrollView measures each child's intrinsic width;
|
|
5
|
+
* the visible row renders only what fits. */
|
|
6
|
+
export declare function OverflowList(props: OverflowListProps): unknown;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { PowerSearchProps } from './props.js';
|
|
2
|
+
import { PowerSearchToken } from './PowerSearchToken.macos.js';
|
|
3
|
+
import { PowerSearchFilterEditor } from './PowerSearchFilterEditor.macos.js';
|
|
4
|
+
export declare function PowerSearch(props: PowerSearchProps): unknown;
|
|
5
|
+
export { PowerSearchToken, PowerSearchFilterEditor };
|
|
6
|
+
export { resolveOperatorLabel, createPowerSearchConfig, usePowerSearchConfig } from './power-search-config.js';
|
|
7
|
+
export type { FieldDefinition, InferData } from './props.js';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { PowerSearchConfig, PartialFilter, PowerSearchFilter } from './props.js';
|
|
2
|
+
export interface PowerSearchFilterEditorProps {
|
|
3
|
+
config: PowerSearchConfig;
|
|
4
|
+
filter: PartialFilter;
|
|
5
|
+
mode: 'create' | 'edit';
|
|
6
|
+
onSave: (filter: PowerSearchFilter | null) => void;
|
|
7
|
+
onCancel: () => void;
|
|
8
|
+
saveButtonLabel?: string;
|
|
9
|
+
isReadOnly?: boolean;
|
|
10
|
+
timezoneID?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare function PowerSearchFilterEditor(props: PowerSearchFilterEditorProps): unknown;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** @jsxImportSource @octane-xplat/macos-renderer */
|
|
2
|
+
import type { PowerSearchTokenProps } from './props.js';
|
|
3
|
+
type InternalTokenProps = PowerSearchTokenProps & {
|
|
4
|
+
timezoneID?: string;
|
|
5
|
+
};
|
|
6
|
+
export declare function PowerSearchToken(props: InternalTokenProps): unknown;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/** @jsxImportSource @octane-xplat/macos-renderer */
|
|
2
|
+
import type { ProgressBarProps } from './props.js';
|
|
3
|
+
/** ProgressBar — macOS leaf. Indeterminate renders a steady 40% fill (the
|
|
4
|
+
* AppKit host has no JS-driven `animate` on views). Marks overlay via
|
|
5
|
+
* star-column grids like the mobile leaf. */
|
|
6
|
+
export declare function ProgressBar(props: ProgressBarProps): unknown;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/** @jsxImportSource @octane-xplat/macos-renderer */
|
|
2
|
+
import type { RadioGroupProps } from "./props.js";
|
|
3
|
+
/** Self-drawn radio group — dot options in a column (or row with
|
|
4
|
+
* `horizontal`). Selecting an option calls `onValueChange`. */
|
|
5
|
+
export declare function RadioGroup(inputProps: RadioGroupProps): unknown;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ResizeHandleProps } from './props.js';
|
|
2
|
+
/** ResizeHandle — draggable separator bound to a useResizable region.
|
|
3
|
+
* Native leaf: pan gestures drive the same _onResize{Start,Move,End,
|
|
4
|
+
* Cancel} lifecycle; a double-tap toggles collapse; arrows are a
|
|
5
|
+
* pointer-platform behavior (web). The handle is focusable for
|
|
6
|
+
* assistive tech via `accessibilityRole="adjustable"`. */
|
|
7
|
+
export declare function ResizeHandle(props: ResizeHandleProps): unknown;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** @jsxImportSource @octane-xplat/macos-renderer */
|
|
2
|
+
import type { Route } from './props.js';
|
|
3
|
+
type RouteHostProps = {
|
|
4
|
+
screen: any;
|
|
5
|
+
layouts: any[];
|
|
6
|
+
params: Record<string, unknown>;
|
|
7
|
+
/** The route's declared ErrorBoundary export, if any. */
|
|
8
|
+
boundary?: any;
|
|
9
|
+
/** The committed route being rendered — passed to the boundary. */
|
|
10
|
+
route?: Route;
|
|
11
|
+
};
|
|
12
|
+
export declare function RouteHost(props: RouteHostProps): unknown;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** @jsxImportSource @octane-xplat/macos-renderer */
|
|
2
|
+
import type { ScrollableAreaProps } from './props.js';
|
|
3
|
+
/** AppKit NSScrollView leaf. `axis` maps the same way as on NativeScript;
|
|
4
|
+
* `axis: 'both'` isn't supported by the AppKit leaf — the scroller
|
|
5
|
+
* follows the block axis there (documented deviation). Pull-to-refresh
|
|
6
|
+
* props are ignored on macOS. */
|
|
7
|
+
export declare function ScrollableArea(props: ScrollableAreaProps): unknown;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { SectionProps } from './props.js';
|
|
2
|
+
/** Section — banded container with surface/transparent/muted background.
|
|
3
|
+
* Single wrapper on AppKit (the web leaf's container-padding escape is a
|
|
4
|
+
* CSS-var mechanism with no AppKit analog). */
|
|
5
|
+
export declare function Section(props: SectionProps): unknown;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/** @jsxImportSource @octane-xplat/macos-renderer */
|
|
2
|
+
import type { SeparatorProps } from "./props.js";
|
|
3
|
+
/** Separator — hairline rule. `orientation` picks which axis it spans;
|
|
4
|
+
* thickness/color come from the app's `vx-separator` styling. */
|
|
5
|
+
export declare function Separator(props: SeparatorProps): unknown;
|