@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,196 @@
|
|
|
1
|
+
export { View } from './View.macos.js';
|
|
2
|
+
/** Vertical flow stack (Astryx `Stack` direction="vertical"). */
|
|
3
|
+
export { VStack } from './VStack.macos.js';
|
|
4
|
+
/** Horizontal flow stack (Astryx `Stack` direction="horizontal"). */
|
|
5
|
+
export { HStack } from './HStack.macos.js';
|
|
6
|
+
export { Grid, Stack, StackItem, Absolute, Spacer } from './layout.macos.js';
|
|
7
|
+
export { Center } from './Center.macos.js';
|
|
8
|
+
export { Section } from './Section.macos.js';
|
|
9
|
+
export { AspectRatio } from './AspectRatio.macos.js';
|
|
10
|
+
export { VisuallyHidden } from './VisuallyHidden.macos.js';
|
|
11
|
+
export type { PanEvent, SwipeEvent, SetTranslate } from './props.js';
|
|
12
|
+
export { setTranslate } from './translate.macos.js';
|
|
13
|
+
export { Text, RichText, RichTextSpan } from './Text.macos.js';
|
|
14
|
+
export { Pressable } from './Pressable.macos.js';
|
|
15
|
+
export { Button, Switch, Slider, SegmentedControl, SearchInput } from './controls.macos.js';
|
|
16
|
+
export { IconButton } from './IconButton.macos.js';
|
|
17
|
+
export { ButtonGroup } from './ButtonGroup.macos.js';
|
|
18
|
+
export { ToggleButton, ToggleButtonGroup } from './ToggleButton.macos.js';
|
|
19
|
+
/** Self-drawn checkbox, exported under Astryx's component name. */
|
|
20
|
+
export { Checkbox as CheckboxInput } from './controls.macos.js';
|
|
21
|
+
/** Loading indicator, exported under Astryx's component name. */
|
|
22
|
+
export { ActivityIndicator as Spinner } from './controls.macos.js';
|
|
23
|
+
export { Collapsible } from './Collapsible.macos.js';
|
|
24
|
+
export { Accordion } from './Accordion.macos.js';
|
|
25
|
+
/** Single-choice option list, exported under Astryx's component name. */
|
|
26
|
+
export { RadioGroup as RadioList } from './RadioGroup.macos.js';
|
|
27
|
+
export { DropdownMenu } from './DropdownMenu.macos.js';
|
|
28
|
+
export { MoreMenu } from './MoreMenu.macos.js';
|
|
29
|
+
export { ContextMenu } from './ContextMenu.macos.js';
|
|
30
|
+
export { Badge } from './Badge.macos.js';
|
|
31
|
+
/** Visual separator between content sections, exported under Astryx's name. */
|
|
32
|
+
export { Separator as Divider } from './Separator.macos.js';
|
|
33
|
+
export { Skeleton } from './Skeleton.macos.js';
|
|
34
|
+
export { Avatar } from './Avatar.macos.js';
|
|
35
|
+
export { AvatarGroup } from './AvatarGroup.macos.js';
|
|
36
|
+
/** Labeled control wrapper, exported under Astryx's component name. */
|
|
37
|
+
export { FormField as Field } from './FormField.macos.js';
|
|
38
|
+
export { useFieldControl } from './field-context.js';
|
|
39
|
+
export { FieldGroup } from './FieldGroup.macos.js';
|
|
40
|
+
/** Reusable labeled row, exported under Astryx's component name. */
|
|
41
|
+
export { Item } from './Item.macos.js';
|
|
42
|
+
export { List } from './List.macos.js';
|
|
43
|
+
export { ListItem } from './ListItem.macos.js';
|
|
44
|
+
export { FormLayout } from './FormLayout.macos.js';
|
|
45
|
+
export { InputGroup, InputGroupText } from './InputGroup.macos.js';
|
|
46
|
+
export { CheckboxIndicator } from './CheckboxIndicator.macos.js';
|
|
47
|
+
export { CheckIndicator } from './CheckIndicator.macos.js';
|
|
48
|
+
export { RadioIndicator } from './RadioIndicator.macos.js';
|
|
49
|
+
export { defaultIndicators, getIndicator, registerIndicator, registerIndicators, useIndicator, indicatorScope, } from './indicators.js';
|
|
50
|
+
export type { FieldControlProps, FieldStatus, FieldStatusType, AbsoluteProps, AspectRatioFit, AspectRatioProps, AspectRatioShape, CenterAxis, CenterProps, FormLayoutDirection, FormLayoutProps, FormOptionality, HStackProps, InputGroupProps, InputGroupSize, InputGroupTextProps, IndicatorComponent, IndicatorFamily, IndicatorFamilyMap, IndicatorMap, IndicatorName, IndicatorNameOfFamily, IndicatorPosition, IndicatorProps, IndicatorRegistry, IndicatorSize, IndicatorState, ListDensity, ListItemProps, ListMarkerStyle, ListProps, ListStyle, SectionDividerSide, SectionProps, SectionVariant, StackAlignment, StackCrossAlignment, StackDirection, StackItemCrossAlignSelf, StackItemProps, StackItemSize, StackMainAlignment, StackPaddingProps, StackProps, StackSizeProps, StackWrap, SpacingStep, VStackProps, VisuallyHiddenProps, } from './props.js';
|
|
51
|
+
/** Bounded numeric entry, exported under Astryx's component name. */
|
|
52
|
+
export { InputNumber as NumberInput } from './InputNumber.macos.js';
|
|
53
|
+
export { PinInput } from './PinInput.macos.js';
|
|
54
|
+
/** Option picker, exported under Astryx's component name. */
|
|
55
|
+
export { Select as Selector } from './Select.macos.js';
|
|
56
|
+
/** Multi-choice option picker, exported under Astryx's component name. */
|
|
57
|
+
export { SelectMenu as MultiSelector } from './aliases.macos.js';
|
|
58
|
+
export { BaseTypeahead, Typeahead } from './Typeahead.macos.js';
|
|
59
|
+
export { TypeaheadItem } from './TypeaheadItem.macos.js';
|
|
60
|
+
export { createStaticSource } from './typeahead-source.js';
|
|
61
|
+
export { Token } from './Token.macos.js';
|
|
62
|
+
export { Tokenizer } from './Tokenizer.macos.js';
|
|
63
|
+
export { ComplexSelector } from './ComplexSelector.macos.js';
|
|
64
|
+
export { Calendar } from './Calendar.macos.js';
|
|
65
|
+
export { DateInput } from './DateInput.macos.js';
|
|
66
|
+
export { TimeInput } from './TimeInput.macos.js';
|
|
67
|
+
export { DateTimeInput } from './DateTimeInput.macos.js';
|
|
68
|
+
export { DateRangeInput } from './DateRangeInput.macos.js';
|
|
69
|
+
export { useCalendarDays, useCalendarConstraints, useCalendarNavigation } from './calendar-hooks.js';
|
|
70
|
+
export { isSameDay, isDateInRange, getWeekNumber } from './calendar-core.js';
|
|
71
|
+
export type { CalendarDay, CalendarMonthGrid } from './calendar-core.js';
|
|
72
|
+
export type { UseCalendarDaysOptions, UseCalendarDaysReturn, UseCalendarConstraintsOptions, UseCalendarConstraintsReturn, UseCalendarNavigationOptions, UseCalendarNavigationReturn, } from './calendar-hooks.js';
|
|
73
|
+
export { InputRating } from './InputRating.macos.js';
|
|
74
|
+
/** Multi-choice checkbox list, exported under Astryx's component name. */
|
|
75
|
+
export { CheckboxGroup as CheckboxList } from './CheckboxGroup.macos.js';
|
|
76
|
+
/** Ancestor path trail, exported under Astryx's component name. */
|
|
77
|
+
export { Breadcrumb as Breadcrumbs } from './Breadcrumb.macos.js';
|
|
78
|
+
export { Pagination } from './Pagination.macos.js';
|
|
79
|
+
export { Stepper } from './Stepper.macos.js';
|
|
80
|
+
export { NavigationMenu } from './NavigationMenu.macos.js';
|
|
81
|
+
export { AppShell } from './AppShell.macos.js';
|
|
82
|
+
export { AppShellMobileContext } from './AppShell.macos.js';
|
|
83
|
+
export { TopNav, TopNavHeading, TopNavItem, TopNavMenu, TopNavMegaMenu, TopNavMegaMenuItem, TopNavMegaMenuFeaturedCard, } from './TopNav.macos.js';
|
|
84
|
+
export { TopNavRenderContext, useTopNavRenderMode } from './TopNav.macos.js';
|
|
85
|
+
export { SideNav, SideNavSection, SideNavHeading, SideNavItem, SideNavCollapseButton, useSideNavCollapse, SideNavRenderContext, useSideNavRenderMode, } from './SideNav.macos.js';
|
|
86
|
+
export { MobileNav, MobileNavToggle, useAppShellMobile } from './MobileNav.macos.js';
|
|
87
|
+
export { NavIcon } from './NavIcon.macos.js';
|
|
88
|
+
export { NavHeadingMenu, NavHeadingMenuItem } from './NavMenu.macos.js';
|
|
89
|
+
export { NavHeadingMenuContext, NavHeadingCloseContext, useNavHeadingMenuContext, useNavHeadingCloseContext, } from './NavMenu.macos.js';
|
|
90
|
+
export { TabList, Tab, TabMenu, useTabListContext } from './TabList.macos.js';
|
|
91
|
+
export { Toolbar } from './Toolbar.macos.js';
|
|
92
|
+
export { OverflowList } from './OverflowList.macos.js';
|
|
93
|
+
export { useResizable } from './useResizable.macos.js';
|
|
94
|
+
export { ResizeHandle } from './ResizeHandle.macos.js';
|
|
95
|
+
export { pixel, percent } from './resize-math.js';
|
|
96
|
+
export { CommandPalette } from './CommandPalette.macos.js';
|
|
97
|
+
export { Table } from './Table.macos.js';
|
|
98
|
+
export { Timeline } from './Timeline.macos.js';
|
|
99
|
+
/** Expandable hierarchy, exported under Astryx's component name. */
|
|
100
|
+
export { Tree as TreeList } from './Tree.macos.js';
|
|
101
|
+
export { Alert } from './Alert.macos.js';
|
|
102
|
+
export { Card } from './Card.macos.js';
|
|
103
|
+
export { ClickableCard } from './ClickableCard.macos.js';
|
|
104
|
+
export { SelectableCard } from './SelectableCard.macos.js';
|
|
105
|
+
export { Chip } from './Chip.macos.js';
|
|
106
|
+
export { Kbd } from './Kbd.macos.js';
|
|
107
|
+
/** Empty-state block, exported under Astryx's component name. */
|
|
108
|
+
export { Empty as EmptyState } from './Empty.macos.js';
|
|
109
|
+
export { Banner } from './Banner.macos.js';
|
|
110
|
+
export { User } from './User.macos.js';
|
|
111
|
+
export { ProgressGroup } from './ProgressGroup.macos.js';
|
|
112
|
+
export { Drawer } from './Drawer.macos.js';
|
|
113
|
+
export { HoverCard } from './HoverCard.js';
|
|
114
|
+
export { useHoverCard } from './use-hover-card.js';
|
|
115
|
+
export { useLayer } from './use-layer.js';
|
|
116
|
+
export { Tooltip } from './Tooltip.js';
|
|
117
|
+
export { Markdown, MarkdownScreen } from './Markdown.js';
|
|
118
|
+
export { parseMdDoc, parseMdNodes, mdInlineText } from './markdown-parse.js';
|
|
119
|
+
export { createMarkdownIncrementalState, parseMarkdownIncremental, trimStreamingArtifacts, computeBoundaries, computeSegments, markdownTextLength, } from './markdown-stream.js';
|
|
120
|
+
export type { MarkdownIncrementalState, MdTextSegment } from './markdown-stream.js';
|
|
121
|
+
export { Link } from './Link.macos.js';
|
|
122
|
+
export { NavLink } from './NavLink.macos.js';
|
|
123
|
+
export { TextInput, TextArea } from './text-controls.macos.js';
|
|
124
|
+
export { ScrollableArea } from './ScrollableArea.macos.js';
|
|
125
|
+
export { useScrollableArea } from './use-scrollable-area.macos.js';
|
|
126
|
+
export { VirtualList } from './VirtualList.macos.js';
|
|
127
|
+
export { Image } from './Image.macos.js';
|
|
128
|
+
export { PowerSearch, PowerSearchToken, PowerSearchFilterEditor } from './PowerSearch.macos.js';
|
|
129
|
+
export { createPowerSearchConfig, usePowerSearchConfig, resolveOperatorLabel, } from './power-search-config.js';
|
|
130
|
+
export { WebView } from './WebView.macos.js';
|
|
131
|
+
export { CameraView } from './hosted-unsupported.macos.js';
|
|
132
|
+
export { Overlay, Popover } from './surfaces.macos.js';
|
|
133
|
+
export { Dialog, DialogHeader } from './Dialog.macos.js';
|
|
134
|
+
export { AlertDialog } from './AlertDialog.macos.js';
|
|
135
|
+
export { BottomSheet, BottomSheetSwitcher } from './BottomSheet.macos.js';
|
|
136
|
+
export { Carousel } from './Carousel.macos.js';
|
|
137
|
+
export { Lightbox } from './Lightbox.macos.js';
|
|
138
|
+
export { useLightbox } from './use-lightbox.macos.js';
|
|
139
|
+
export { Toast } from './Toast.macos.js';
|
|
140
|
+
export { ToastViewport } from './toast-viewport.macos.js';
|
|
141
|
+
export { showToast, useToast } from './toast-service.macos.js';
|
|
142
|
+
export { useImperativeDialog } from './use-imperative-dialog.macos.js';
|
|
143
|
+
export { useImperativeAlertDialog } from './use-imperative-alert-dialog.macos.js';
|
|
144
|
+
export { useAnimation } from './anim.macos.js';
|
|
145
|
+
export { useThemeScheme, getThemeScheme, setThemePreference, getThemePreference, themeSchemeClasses, onThemeSchemeChange, applyThemeClasses, } from './theme/theme-scheme.js';
|
|
146
|
+
export { useColorScheme, getColorScheme } from './colorScheme.macos.js';
|
|
147
|
+
export { styled } from './styled.macos.js';
|
|
148
|
+
export { openWindow } from './windows.macos.js';
|
|
149
|
+
export { Screen } from './Screen.macos.js';
|
|
150
|
+
export { Tabs } from './Tabs.macos.js';
|
|
151
|
+
export type { TabSpec } from './props.js';
|
|
152
|
+
export { SafeArea } from './layout-shells.macos.js';
|
|
153
|
+
export { KeyboardAvoiding } from './KeyboardAvoiding.macos.js';
|
|
154
|
+
export type { KeyboardAvoidingProps } from './props.js';
|
|
155
|
+
export { useSafeAreaInsets } from './safeAreaInsets.macos.js';
|
|
156
|
+
export type { SafeAreaInsets } from './safeAreaInsets.macos.js';
|
|
157
|
+
export { useMeasure } from './useMeasure.macos.js';
|
|
158
|
+
export { Meter, Heading } from './macos-extras.macos.js';
|
|
159
|
+
export { Icon } from './Icon.macos.js';
|
|
160
|
+
export { registerIcon, registerIcons } from './icons.js';
|
|
161
|
+
export type { IconGlyph } from './icons.js';
|
|
162
|
+
export declare const isNative: true;
|
|
163
|
+
export { registerStack, getStack, stackEntries } from './stacks.macos.js';
|
|
164
|
+
export { pushRoute, popRoute, routeStacks, pushDeepLink, routeFor, currentRoute, currentModalRoute, canGoBack, useCanGoBack, useRoute, useModalRoute, redirect, addBackInterceptor, registerScreens, registerRoutes, addRoutes, screenFor, hrefFor, layoutsFor as layoutsForRoute, errorBoundaryFor, } from './route.macos.js';
|
|
165
|
+
export { RouteBoundary } from './RouteBoundary.macos.js';
|
|
166
|
+
export { deriveRouteManifest, defineRoutes, mergeRouteManifests } from './route-table.js';
|
|
167
|
+
export { createStore } from './store.js';
|
|
168
|
+
export type { Store, ReadableStore } from './store.js';
|
|
169
|
+
export { useStore } from './useStore.macos.js';
|
|
170
|
+
export { openBottomSheet, closeBottomSheet, bottomSheetHost } from './bottom-sheet-service.macos.js';
|
|
171
|
+
export { Blockquote } from './Blockquote.macos.js';
|
|
172
|
+
export { Code } from './Code.macos.js';
|
|
173
|
+
export { CodeBlock } from './CodeBlock.macos.js';
|
|
174
|
+
export { MetadataList } from './MetadataList.macos.js';
|
|
175
|
+
export { MetadataListItem } from './MetadataListItem.macos.js';
|
|
176
|
+
export { Thumbnail } from './Thumbnail.macos.js';
|
|
177
|
+
export { ProgressBar } from './ProgressBar.macos.js';
|
|
178
|
+
export { StatusDot } from './StatusDot.macos.js';
|
|
179
|
+
export { Timestamp } from './Timestamp.macos.js';
|
|
180
|
+
export { Timer } from './Timer.macos.js';
|
|
181
|
+
export { Citation } from './Citation.macos.js';
|
|
182
|
+
export { Outline } from './Outline.macos.js';
|
|
183
|
+
export { useOutlineFromMarkdown, useOutlineFromDoc } from './outline-hooks.js';
|
|
184
|
+
export { useOutlineFromDOM } from './outline-dom.macos.js';
|
|
185
|
+
export { parseOutlineFromMarkdown, outlineFromDoc, markdownHeadings, inlineMarkdownText, slugify, uniqueSlug, } from './outline-utils.js';
|
|
186
|
+
export { tokenize, tokenizeAsync, tokenizeStreaming, flatTokensToLines, SYNC_TOKENIZE_THRESHOLD, TOKEN_TYPES, syntaxTokenVar, syntaxTokenVarRef, } from './code-tokenizer.js';
|
|
187
|
+
export type * from './props.js';
|
|
188
|
+
export { ChatComposer, ChatComposerDrawer, ChatComposerInput, ChatComposerTokenElement, ChatDictationButton, ChatLayout, ChatLayoutScrollButton, ChatMessage, ChatMessageBubble, ChatMessageList, ChatMessageMetadata, ChatSendButton, ChatSystemMessage, ChatTokenizedText, ChatToolCalls, useChatComposerContext, useChatComposerTokens, useChatDictation, useChatLayoutContext, useChatNewMessages, useChatPasteAsToken, useChatStreamScroll, useSpeechRecognition, } from './index.shared.js';
|
|
189
|
+
export { DropdownMenuItem, DropdownMenuDivider, DropdownMenuCheckboxItem, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSubMenu, } from './MenuParts.macos.js';
|
|
190
|
+
export { DropdownMenuItem as ContextMenuItem, DropdownMenuDivider as ContextMenuDivider, DropdownMenuCheckboxItem as ContextMenuCheckboxItem, DropdownMenuRadioGroup as ContextMenuRadioGroup, DropdownMenuRadioItem as ContextMenuRadioItem, DropdownMenuSubMenu as ContextMenuSubMenu, } from './MenuParts.macos.js';
|
|
191
|
+
export { DropdownMenuItem as BreadcrumbMenuItem, DropdownMenuDivider as BreadcrumbMenuDivider, DropdownMenuCheckboxItem as BreadcrumbMenuCheckboxItem, DropdownMenuRadioGroup as BreadcrumbMenuRadioGroup, DropdownMenuRadioItem as BreadcrumbMenuRadioItem, DropdownMenuSubMenu as BreadcrumbMenuSubMenu, } from './MenuParts.macos.js';
|
|
192
|
+
export { DropdownMenuContext, useDropdownMenuContext } from './menu-context.js';
|
|
193
|
+
export type { MenuOption, MenuItemData, MenuActionData, MenuDividerData, MenuCheckboxData, MenuRadioOptionData, MenuRadioGroupData, MenuItemProps, MenuCheckboxItemProps, MenuRadioGroupProps, MenuRadioItemProps, MenuDividerProps, MenuSubMenuProps, MenuContextValue, } from './props.js';
|
|
194
|
+
export type { MenuItemProps as DropdownMenuItemProps, MenuDividerProps as DropdownMenuDividerProps, MenuCheckboxItemProps as DropdownMenuCheckboxItemProps, MenuRadioGroupProps as DropdownMenuRadioGroupProps, MenuRadioItemProps as DropdownMenuRadioItemProps, MenuSubMenuProps as DropdownMenuSubMenuProps, } from './props.js';
|
|
195
|
+
export type { MenuItemProps as ContextMenuItemProps, MenuDividerProps as ContextMenuDividerProps, MenuCheckboxItemProps as ContextMenuCheckboxItemProps, MenuRadioGroupProps as ContextMenuRadioGroupProps, MenuRadioItemProps as ContextMenuRadioItemProps, MenuSubMenuProps as ContextMenuSubMenuProps, } from './props.js';
|
|
196
|
+
export type { MenuItemProps as BreadcrumbMenuItemProps, MenuDividerProps as BreadcrumbMenuDividerProps, MenuCheckboxItemProps as BreadcrumbMenuCheckboxItemProps, MenuRadioGroupProps as BreadcrumbMenuRadioGroupProps, MenuRadioItemProps as BreadcrumbMenuRadioItemProps, MenuSubMenuProps as BreadcrumbMenuSubMenuProps, } from './props.js';
|
|
@@ -226,7 +226,7 @@ export type { BottomSheetOpenOptions, BottomSheetProps, BottomSheetSnapPoint, Bo
|
|
|
226
226
|
export { CheckboxIndicator, CheckIndicator, RadioIndicator } from './indicators.js';
|
|
227
227
|
export { defaultIndicators, getIndicator, registerIndicator, registerIndicators, useIndicator, indicatorScope, } from './indicators.js';
|
|
228
228
|
export type { IndicatorComponent, IndicatorFamily, IndicatorFamilyMap, IndicatorMap, IndicatorName, IndicatorNameOfFamily, IndicatorPosition, IndicatorRegistry, IndicatorSize, IndicatorState, } from './props.js';
|
|
229
|
-
export type { AbsoluteProps, AspectRatioFit, AspectRatioProps, AspectRatioShape, CenterAxis, CenterProps, DividerProps, FormLayoutDirection, FormOptionality, HStackProps, VStackProps, IndicatorProps, InputGroupSize, ItemProps, ListDensity, ListMarkerStyle, ListStyle, SectionDividerSide, SectionProps, SectionVariant, SizeValue, StackAlignment, StackCrossAlignment, StackDirection, StackItemCrossAlignSelf, StackItemProps, StackItemSize, StackMainAlignment, StackPaddingProps, StackSizeProps, StackWrap, VisuallyHiddenProps, CheckboxInputProps, CheckboxListProps, RadioListProps, FieldProps, NumberInputProps, SelectorProps, MultiSelectorProps, BreadcrumbsProps, TreeListProps, EmptyStateProps, SpinnerProps, DrawerProps, GridProps, ImageProps, KeyboardAvoidingProps, LayoutChildProps, PressableProps, RichTextProps, RichTextSpanProps, RowProps, ScreenProps, SafeAreaProps, SpacerProps, StackProps, SwitchProps, TabsProps, TextAreaProps, TextInputProps, TextProps, ViewProps, } from './props.js';
|
|
229
|
+
export type { AbsoluteProps, AspectRatioFit, AspectRatioProps, AspectRatioShape, CenterAxis, CenterProps, DividerProps, FormLayoutDirection, FormOptionality, HStackProps, VStackProps, IndicatorProps, InputGroupSize, ItemProps, ListDensity, ListMarkerStyle, ListStyle, SectionDividerSide, SectionProps, SectionVariant, SizeValue, StackAlignment, StackCrossAlignment, StackDirection, StackItemCrossAlignSelf, StackItemProps, StackItemSize, StackMainAlignment, StackPaddingProps, StackSizeProps, StackWrap, VisuallyHiddenProps, CheckboxInputProps, CheckboxListProps, RadioListProps, FieldProps, NumberInputProps, SelectorProps, MultiSelectorProps, BreadcrumbsProps, TreeListProps, EmptyStateProps, SpinnerProps, DrawerProps, GridProps, ImageProps, ImageContentFit, ImageContentPosition, ImageContentPositionObject, ImageContentPositionString, ImageContentPositionValue, ImageDecoding, ImageSourceLike, KeyboardAvoidingProps, LayoutChildProps, PressableProps, RichTextProps, RichTextSpanProps, RowProps, ScreenProps, SafeAreaProps, SpacerProps, StackProps, SwitchProps, TabsProps, TextAreaProps, TextInputProps, TextProps, ViewProps, } from './props.js';
|
|
230
230
|
export { Blockquote } from './Blockquote.js';
|
|
231
231
|
export { Code } from './Code.js';
|
|
232
232
|
export { CodeBlock } from './CodeBlock.js';
|
|
@@ -226,7 +226,7 @@ export type { BottomSheetOpenOptions, BottomSheetProps, BottomSheetSnapPoint, Bo
|
|
|
226
226
|
export { CheckboxIndicator, CheckIndicator, RadioIndicator } from './indicators.js';
|
|
227
227
|
export { defaultIndicators, getIndicator, registerIndicator, registerIndicators, useIndicator, indicatorScope, } from './indicators.js';
|
|
228
228
|
export type { IndicatorComponent, IndicatorFamily, IndicatorFamilyMap, IndicatorMap, IndicatorName, IndicatorNameOfFamily, IndicatorPosition, IndicatorRegistry, IndicatorSize, IndicatorState, } from './props.js';
|
|
229
|
-
export type { AbsoluteProps, AspectRatioFit, AspectRatioProps, AspectRatioShape, CenterAxis, CenterProps, DividerProps, FormLayoutDirection, FormOptionality, HStackProps, VStackProps, IndicatorProps, InputGroupSize, ItemProps, ListDensity, ListMarkerStyle, ListStyle, SectionDividerSide, SectionProps, SectionVariant, SizeValue, StackAlignment, StackCrossAlignment, StackDirection, StackItemCrossAlignSelf, StackItemProps, StackItemSize, StackMainAlignment, StackPaddingProps, StackSizeProps, StackWrap, VisuallyHiddenProps, CheckboxInputProps, CheckboxListProps, RadioListProps, FieldProps, NumberInputProps, SelectorProps, MultiSelectorProps, BreadcrumbsProps, TreeListProps, EmptyStateProps, SpinnerProps, DrawerProps, GridProps, ImageProps, KeyboardAvoidingProps, LayoutChildProps, PressableProps, RichTextProps, RichTextSpanProps, RowProps, ScreenProps, SafeAreaProps, SpacerProps, StackProps, SwitchProps, TabsProps, TextAreaProps, TextInputProps, TextProps, ViewProps, } from './props.js';
|
|
229
|
+
export type { AbsoluteProps, AspectRatioFit, AspectRatioProps, AspectRatioShape, CenterAxis, CenterProps, DividerProps, FormLayoutDirection, FormOptionality, HStackProps, VStackProps, IndicatorProps, InputGroupSize, ItemProps, ListDensity, ListMarkerStyle, ListStyle, SectionDividerSide, SectionProps, SectionVariant, SizeValue, StackAlignment, StackCrossAlignment, StackDirection, StackItemCrossAlignSelf, StackItemProps, StackItemSize, StackMainAlignment, StackPaddingProps, StackSizeProps, StackWrap, VisuallyHiddenProps, CheckboxInputProps, CheckboxListProps, RadioListProps, FieldProps, NumberInputProps, SelectorProps, MultiSelectorProps, BreadcrumbsProps, TreeListProps, EmptyStateProps, SpinnerProps, DrawerProps, GridProps, ImageProps, ImageContentFit, ImageContentPosition, ImageContentPositionObject, ImageContentPositionString, ImageContentPositionValue, ImageDecoding, ImageSourceLike, KeyboardAvoidingProps, LayoutChildProps, PressableProps, RichTextProps, RichTextSpanProps, RowProps, ScreenProps, SafeAreaProps, SpacerProps, StackProps, SwitchProps, TabsProps, TextAreaProps, TextInputProps, TextProps, ViewProps, } from './props.js';
|
|
230
230
|
export { Blockquote } from './Blockquote.js';
|
|
231
231
|
export { Code } from './Code.js';
|
|
232
232
|
export { CodeBlock } from './CodeBlock.js';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { AbsoluteProps, GridProps, SpacerProps, StackItemProps, StackProps } from './props.js';
|
|
2
|
+
export declare function Grid(props: GridProps): unknown;
|
|
3
|
+
/** Astryx flow Stack on the AppKit host — same direction/alignment/gap
|
|
4
|
+
* resolution as the other targets; `isScrollable` hosts the flow in a
|
|
5
|
+
* scrollview. Overlapping children belong in `Absolute`. */
|
|
6
|
+
export declare function Stack(props: StackProps): unknown;
|
|
7
|
+
export declare function StackItem(props: StackItemProps): unknown;
|
|
8
|
+
export declare function Absolute(props: AbsoluteProps): unknown;
|
|
9
|
+
export declare function Spacer(props: SpacerProps): unknown;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const isNative: true;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/** Registrations publish updates without rerendering their declaring root. */
|
|
2
|
+
interface PresentationRegistry {
|
|
3
|
+
subscribe: (notify: () => void) => () => void;
|
|
4
|
+
resolve: () => {
|
|
5
|
+
isOpen: boolean;
|
|
6
|
+
panelProps: any;
|
|
7
|
+
options: any;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
/** Own one detached AppKit root. Updates retain the root; declarations own
|
|
11
|
+
* disposal, while only native user dismissal calls back into controlled state. */
|
|
12
|
+
export declare function usePresentation(isOpen: boolean, component: any, panelProps: any, options: any, registry?: PresentationRegistry): {
|
|
13
|
+
current: any;
|
|
14
|
+
};
|
|
15
|
+
export {};
|
|
@@ -331,6 +331,8 @@ export interface RichTextProps extends LayoutChildProps {
|
|
|
331
331
|
style?: any;
|
|
332
332
|
children?: any;
|
|
333
333
|
id?: string;
|
|
334
|
+
/** Optional explicit accessible name override for the text block. */
|
|
335
|
+
accessibilityLabel?: string;
|
|
334
336
|
/** Platform-specific properties are applied after shared props. */
|
|
335
337
|
ios?: any;
|
|
336
338
|
android?: any;
|
|
@@ -1078,12 +1080,81 @@ export interface WebViewProps extends LayoutChildProps, AccessibilityProps {
|
|
|
1078
1080
|
android?: any;
|
|
1079
1081
|
web?: any;
|
|
1080
1082
|
}
|
|
1083
|
+
/** A density/size-qualified entry in a multi-resolution `Image.src` array —
|
|
1084
|
+
* the native `srcset` analog. `uri` takes the same grammar as a string
|
|
1085
|
+
* `src`. `width`/`height` declare the source's display size (dips) and
|
|
1086
|
+
* `scale` its density multiplier, so file pixels are `width·scale`: the
|
|
1087
|
+
* selector compares `width·height·scale²` against the view's pixel count
|
|
1088
|
+
* and loads the closest match once a real layout exists. */
|
|
1089
|
+
export interface ImageSourceLike {
|
|
1090
|
+
uri: string;
|
|
1091
|
+
width?: number;
|
|
1092
|
+
height?: number;
|
|
1093
|
+
scale?: number;
|
|
1094
|
+
}
|
|
1095
|
+
/** How the bitmap is sized inside the element's box — the CSS `object-fit`
|
|
1096
|
+
* vocabulary (same contract as expo-image `contentFit`). Default 'cover'. */
|
|
1097
|
+
export type ImageContentFit = 'cover' | 'contain' | 'fill' | 'none' | 'scale-down';
|
|
1098
|
+
/** One edge value in a `contentPosition`: dips from the named edge, a
|
|
1099
|
+
* percentage of the free space along that axis, or 'center' (= '50%'). */
|
|
1100
|
+
export type ImageContentPositionValue = number | `${number}%` | 'center';
|
|
1101
|
+
export interface ImageContentPositionObject {
|
|
1102
|
+
top?: ImageContentPositionValue;
|
|
1103
|
+
right?: ImageContentPositionValue;
|
|
1104
|
+
bottom?: ImageContentPositionValue;
|
|
1105
|
+
left?: ImageContentPositionValue;
|
|
1106
|
+
}
|
|
1107
|
+
export type ImageContentPositionString = 'center' | 'top' | 'right' | 'bottom' | 'left' | 'top center' | 'top right' | 'top left' | 'right center' | 'right top' | 'right bottom' | 'bottom center' | 'bottom right' | 'bottom left' | 'left center' | 'left top' | 'left bottom';
|
|
1108
|
+
/** Where the drawn bitmap sits inside the element's box — CSS
|
|
1109
|
+
* `object-position`. A keyword string, or an object naming one horizontal
|
|
1110
|
+
* and one vertical edge. Default centered on every platform. */
|
|
1111
|
+
export type ImageContentPosition = ImageContentPositionObject | ImageContentPositionString;
|
|
1112
|
+
/** When the bitmap is decoded — the HTML `decoding` attribute's vocabulary.
|
|
1113
|
+
* 'async' decodes off the UI thread, 'sync' decodes during the `src`
|
|
1114
|
+
* assignment. */
|
|
1115
|
+
export type ImageDecoding = 'async' | 'sync';
|
|
1081
1116
|
export interface ImageProps extends LayoutChildProps {
|
|
1082
1117
|
className?: any;
|
|
1083
1118
|
style?: any;
|
|
1084
1119
|
id?: string;
|
|
1085
|
-
|
|
1120
|
+
/** A single source — `res://name`, `~/bundle-path`, file path, remote
|
|
1121
|
+
* URL, or data:/inline-SVG URI — or a resolution-qualified array
|
|
1122
|
+
* (closest pixel count wins; the `srcset` model). */
|
|
1123
|
+
src: string | ImageSourceLike[];
|
|
1086
1124
|
alt?: string;
|
|
1125
|
+
/** Placeholder shown while `src` loads — painted inside the same image
|
|
1126
|
+
* view so the swap can't blank or mismatch fit (expo-image study L5).
|
|
1127
|
+
* Accepts `blurhash:<hash>` / `thumbhash:<base64>` (decoded to a small
|
|
1128
|
+
* PNG in JS) plus any synchronously resolvable `src` grammar (`data:`
|
|
1129
|
+
* base64, `res://name`, `~/`, file path). Remote URLs are ignored on
|
|
1130
|
+
* native — a placeholder that must fetch first is pointless. On web any
|
|
1131
|
+
* `img.src` URL works (e.g. a low-res image). No-op on macOS, where
|
|
1132
|
+
* image loads are synchronous. Ignored for SVG srcs. */
|
|
1133
|
+
placeholder?: string;
|
|
1134
|
+
/** Item identity for recycled platform-list cells (RecyclerView/UITableView
|
|
1135
|
+
* rebind the same view). When the key changes between binds, the previous
|
|
1136
|
+
* bitmap is cleared before the new `src` load starts, so the cell never
|
|
1137
|
+
* flashes the prior item's image (expo-image's `recyclingKey`). Web and
|
|
1138
|
+
* macOS leaves ignore it: their lists remount keyed rows rather than
|
|
1139
|
+
* rebinding a reused host. */
|
|
1140
|
+
recyclingKey?: string;
|
|
1141
|
+
/** Bitmap sizing inside the box — CSS `object-fit`. Default 'cover' on
|
|
1142
|
+
* every platform (the platform-native defaults disagree: web `img` is
|
|
1143
|
+
* `fill`, NS stretch is `aspectFit`). */
|
|
1144
|
+
contentFit?: ImageContentFit;
|
|
1145
|
+
/** Bitmap alignment inside the box — CSS `object-position`. Native
|
|
1146
|
+
* honors it by laying out the image itself (measured path), so
|
|
1147
|
+
* arbitrary positions match web pixel-for-pixel. */
|
|
1148
|
+
contentPosition?: ImageContentPosition;
|
|
1149
|
+
/** Decode scheduling hint — the HTML `decoding` attribute. 'async'
|
|
1150
|
+
* (default): the bitmap decodes off the UI thread and may paint a frame
|
|
1151
|
+
* late. 'sync': decoded during the `src` assignment, blocking the UI
|
|
1152
|
+
* thread — for small bitmaps that must appear without a flicker.
|
|
1153
|
+
* Native maps to NS `loadMode` for file/resource/data srcs; remote URLs
|
|
1154
|
+
* always decode async and font-icon srcs are always sync regardless.
|
|
1155
|
+
* Web writes the `decoding` attribute. macOS ignores it — AppKit image
|
|
1156
|
+
* loads are synchronous. */
|
|
1157
|
+
decoding?: ImageDecoding;
|
|
1087
1158
|
/** Platform-specific properties are applied after shared props. */
|
|
1088
1159
|
ios?: any;
|
|
1089
1160
|
android?: any;
|
|
@@ -1137,6 +1208,8 @@ export interface SwitchProps extends FieldControlProps {
|
|
|
1137
1208
|
className?: any;
|
|
1138
1209
|
style?: any;
|
|
1139
1210
|
id?: string;
|
|
1211
|
+
/** Optional explicit accessible name override for the switch. */
|
|
1212
|
+
accessibilityLabel?: string;
|
|
1140
1213
|
checked?: boolean;
|
|
1141
1214
|
onCheckedChange?: (checked: boolean) => void;
|
|
1142
1215
|
/** Platform-specific properties are applied after shared props. */
|
|
@@ -2082,12 +2155,14 @@ export interface LinkProps {
|
|
|
2082
2155
|
href: string;
|
|
2083
2156
|
target?: string;
|
|
2084
2157
|
className?: any;
|
|
2158
|
+
style?: any;
|
|
2085
2159
|
children?: any;
|
|
2086
2160
|
}
|
|
2087
2161
|
export interface NavLinkProps {
|
|
2088
2162
|
route: Route;
|
|
2089
2163
|
activeClassName?: string;
|
|
2090
2164
|
className?: any;
|
|
2165
|
+
style?: any;
|
|
2091
2166
|
children?: any;
|
|
2092
2167
|
}
|
|
2093
2168
|
/** name → screen component table for `registerScreens` — the app owns the
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type QueryStorageAdapter } from './query-cache.js';
|
|
2
|
+
/**
|
|
3
|
+
* Default query persistence adapter on macOS — the AppKit host has no
|
|
4
|
+
* `__xplatAppKit` defaults bridge yet, so persisted snapshots live for the
|
|
5
|
+
* process only. Supply a durable adapter via `persist.storage` when an
|
|
6
|
+
* AppKit bridge lands.
|
|
7
|
+
*/
|
|
8
|
+
export declare const platformQueryStorage: QueryStorageAdapter;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** Resizable `autoSaveId` persistence — the AppKit host has no settings
|
|
2
|
+
* seam yet, so persistence is in-memory for the session. */
|
|
3
|
+
export interface PersistedResizableState {
|
|
4
|
+
size?: number | null;
|
|
5
|
+
isCollapsed?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare function loadResizableState(key: string): PersistedResizableState | null;
|
|
8
|
+
export declare function persistResizableState(key: string, state: PersistedResizableState): void;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { Route, RouteHead, RouteManifest, RouteMeta, ScreenTable } from './props.js';
|
|
2
|
+
export declare function registerScreens(table: ScreenTable, manifest?: RouteMeta[]): void;
|
|
3
|
+
export declare function registerRoutes(manifest: RouteManifest): void;
|
|
4
|
+
/** Layer a programmatic manifest (from `defineRoutes`) over the registered
|
|
5
|
+
* routes — same-name entries win over the base with a warn. Registered
|
|
6
|
+
* layers survive later registerRoutes re-registration. */
|
|
7
|
+
export declare function addRoutes(manifest: RouteManifest): void;
|
|
8
|
+
export declare function screenFor(name: string): ScreenTable[string] | undefined;
|
|
9
|
+
export declare function layoutsFor(name: string): any[];
|
|
10
|
+
/** The route's declared `ErrorBoundary` export, if any — outlets wrap the
|
|
11
|
+
* resolved screen in `RouteBoundary` with it. */
|
|
12
|
+
export declare function errorBoundaryFor(name: string): any;
|
|
13
|
+
export declare function routeFor(stack: string): Route | null;
|
|
14
|
+
export declare function currentRoute(): Route | null;
|
|
15
|
+
export declare function currentModalRoute(): Route | null;
|
|
16
|
+
export declare function routeStacks(): string[];
|
|
17
|
+
export declare function canGoBack(stack?: string): boolean;
|
|
18
|
+
export declare function useCanGoBack(stack?: string): boolean;
|
|
19
|
+
export declare function useRoute(stack?: string): Route | null;
|
|
20
|
+
export declare function useModalRoute(): Route | null;
|
|
21
|
+
export declare function redirect(route: Route): never;
|
|
22
|
+
export declare function pushRoute(route: Route): void;
|
|
23
|
+
export declare function popRoute(stack?: string): void;
|
|
24
|
+
export declare function pushDeepLink(url: string): void;
|
|
25
|
+
export declare function hrefFor(route: Route): string;
|
|
26
|
+
export declare function addBackInterceptor(_handler: () => boolean): () => void;
|
|
27
|
+
export declare function useRouteHead(_route: Route | null): RouteHead | undefined;
|
|
28
|
+
export { layoutsFor as layoutsForRoute };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** @jsxImportSource octane */
|
|
2
|
+
export interface SafeAreaInsets {
|
|
3
|
+
top: number;
|
|
4
|
+
right: number;
|
|
5
|
+
bottom: number;
|
|
6
|
+
left: number;
|
|
7
|
+
}
|
|
8
|
+
/** The AppKit root view begins below the title bar; there are no additional
|
|
9
|
+
* safe-area insets in this window-hosted renderer. */
|
|
10
|
+
export declare function useSafeAreaInsets(): SafeAreaInsets;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** Compose CSS-backed class names onto an AppKit component factory. */
|
|
2
|
+
export declare function styled<P extends {
|
|
3
|
+
className?: any;
|
|
4
|
+
}, V extends Record<string, any>>(Base: (props: P) => any, def: {
|
|
5
|
+
base?: any;
|
|
6
|
+
variants?: V;
|
|
7
|
+
}): (props: P & {
|
|
8
|
+
[K in keyof V]?: boolean;
|
|
9
|
+
}, context: any) => any;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type ThemePreference = 'light' | 'dark' | 'system';
|
|
2
|
+
export declare function setThemePreference(value: ThemePreference): void;
|
|
3
|
+
export declare function getThemePreference(): ThemePreference;
|
|
4
|
+
export declare function getThemeScheme(): 'light' | 'dark';
|
|
5
|
+
export declare function useThemeScheme(): 'light' | 'dark';
|
|
6
|
+
export declare function themeSchemeClasses(): string;
|
|
7
|
+
export declare function onThemeSchemeChange(callback: () => void): () => void;
|
|
8
|
+
export declare function applyThemeClasses(view: any, base?: string): () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function setTranslate(view: any, x?: number, y?: number): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function Unsupported(_props: any): unknown;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { UseScrollableAreaOptions, UseScrollableAreaResult } from './props.js';
|
|
2
|
+
/** Headless scroll-viewport state, macOS leaf — the AppKit `<scrollview>`
|
|
3
|
+
* reports `onScroll` with offsets and viewport/content heights; forwards it
|
|
4
|
+
* through `getViewportProps`. There is no native horizontal scroll event
|
|
5
|
+
* contract yet, so `axis: 'inline'` reports unscrolled (documented). */
|
|
6
|
+
export declare function useScrollableArea(options?: UseScrollableAreaOptions): UseScrollableAreaResult;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ResizableRegion, UseResizableMultiConfig, UseResizableSingleConfig } from './props.js';
|
|
2
|
+
/**
|
|
3
|
+
* useResizable — resizable-region state for ResizeHandle and host
|
|
4
|
+
* components (SideNav). A single config yields one region; `regions`
|
|
5
|
+
* yields an independent region per stable key (upstream contract: keys
|
|
6
|
+
* must not change between renders). */
|
|
7
|
+
export declare function useResizable(config: UseResizableSingleConfig): ResizableRegion;
|
|
8
|
+
export declare function useResizable(config: UseResizableMultiConfig): Record<string, ResizableRegion>;
|