@octane-xplat/ui 0.7.3 → 0.10.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.
- package/README.md +44 -8
- package/dist/native/AlertDialog.tsrx.js +183 -0
- package/dist/native/AppShell.tsrx.js +311 -0
- package/dist/native/AspectRatio.tsrx.js +77 -0
- package/dist/native/AvatarGroup.tsrx.js +4 -19
- package/dist/native/BaseTypeahead.tsrx.js +420 -0
- package/dist/native/Blockquote.tsrx.js +51 -0
- package/dist/native/BottomSheet.tsrx.js +289 -0
- package/dist/native/Breadcrumb.tsrx.js +60 -15
- package/dist/native/Button.tsrx.js +74 -11
- package/dist/native/ButtonGroup.tsrx.js +47 -0
- package/dist/native/Calendar.tsrx.js +465 -0
- package/dist/native/Card.tsrx.js +8 -2
- package/dist/native/Carousel.tsrx.js +317 -0
- package/dist/native/Center.tsrx.js +70 -0
- package/dist/native/ChatComposer.tsrx.js +249 -0
- package/dist/native/ChatComposerDrawer.tsrx.js +124 -0
- package/dist/native/ChatComposerInput.tsrx.js +354 -0
- package/dist/native/ChatDictationButton.tsrx.js +101 -0
- package/dist/native/ChatLayout.tsrx.js +176 -0
- package/dist/native/ChatLayoutScrollButton.tsrx.js +77 -0
- package/dist/native/ChatMessage.tsrx.js +136 -0
- package/dist/native/ChatMessageBubble.tsrx.js +81 -0
- package/dist/native/ChatMessageList.tsrx.js +144 -0
- package/dist/native/ChatMessageMetadata.tsrx.js +144 -0
- package/dist/native/ChatSendButton.tsrx.js +87 -0
- package/dist/native/ChatSystemMessage.tsrx.js +103 -0
- package/dist/native/ChatTokenizedText.tsrx.js +72 -0
- package/dist/native/ChatToolCalls.tsrx.js +450 -0
- package/dist/native/CheckIndicator.tsrx.js +74 -0
- package/dist/native/Checkbox.tsrx.js +49 -27
- package/dist/native/CheckboxGroup.tsrx.js +25 -11
- package/dist/native/CheckboxIndicator.tsrx.js +57 -0
- package/dist/native/Citation.tsrx.js +195 -0
- package/dist/native/ClickableCard.tsrx.js +70 -0
- package/dist/native/Code.tsrx.js +39 -0
- package/dist/native/CodeBlock.tsrx.js +423 -0
- package/dist/native/CommandPalette.tsrx.js +339 -100
- package/dist/native/ComplexSelector.tsrx.js +324 -0
- package/dist/native/ContextMenu.tsrx.js +67 -64
- package/dist/native/DateInput.tsrx.js +645 -0
- package/dist/native/DateRangeInput.tsrx.js +489 -0
- package/dist/native/DateTimeInput.tsrx.js +987 -0
- package/dist/native/Dialog.tsrx.js +377 -0
- package/dist/native/DropdownMenu.tsrx.js +56 -66
- package/dist/native/FormField.tsrx.js +249 -16
- package/dist/native/FormLayout.tsrx.js +129 -0
- package/dist/native/HStack.tsrx.js +29 -0
- package/dist/native/HoverCard.mobile.tsrx.js +52 -0
- package/dist/native/Icon.tsrx.js +3 -1
- package/dist/native/{ScrollBox.tsrx.js → IconButton.tsrx.js} +9 -5
- package/dist/native/Image.tsrx.js +2 -1
- package/dist/native/InputGroup.tsrx.js +188 -0
- package/dist/native/InputNumber.tsrx.js +20 -11
- package/dist/native/InputRating.tsrx.js +20 -11
- package/dist/native/Item.tsrx.js +178 -0
- package/dist/native/Kbd.tsrx.js +7 -2
- package/dist/native/KeyboardAvoiding.mobile.tsrx.js +2 -2
- package/dist/native/Lightbox.tsrx.js +464 -0
- package/dist/native/List.tsrx.js +143 -0
- package/dist/native/ListItem.tsrx.js +121 -144
- package/dist/native/Markdown.tsrx.js +461 -0
- package/dist/native/MenuParts.tsrx.js +762 -0
- package/dist/native/MenuSurface.tsrx.js +81 -0
- package/dist/native/MetadataList.tsrx.js +170 -0
- package/dist/native/MetadataListItem.tsrx.js +115 -0
- package/dist/native/MobileNav.tsrx.js +183 -0
- package/dist/native/MoreMenu.tsrx.js +264 -0
- package/dist/native/NavIcon.tsrx.js +57 -0
- package/dist/native/NavMenu.tsrx.js +180 -0
- package/dist/native/NavigationMenu.tsrx.js +59 -19
- package/dist/native/Outline.tsrx.js +229 -0
- package/dist/native/OverflowList.tsrx.js +202 -0
- package/dist/native/Overlay.tsrx.js +20 -26
- package/dist/native/PinInput.tsrx.js +127 -55
- package/dist/native/Popover.tsrx.js +61 -27
- package/dist/native/PowerSearch.tsrx.js +502 -0
- package/dist/native/PowerSearchFilterEditor.tsrx.js +234 -0
- package/dist/native/PowerSearchToken.tsrx.js +90 -0
- package/dist/native/Pressable.tsrx.js +19 -10
- package/dist/native/ProgressBar.tsrx.js +243 -0
- package/dist/native/RadioGroup.tsrx.js +48 -28
- package/dist/native/RadioIndicator.tsrx.js +50 -0
- package/dist/native/Resizable.js +3 -0
- package/dist/native/ResizeHandle.tsrx.js +104 -0
- package/dist/native/RouteBoundary.tsrx.js +51 -0
- package/dist/native/{RouteHost.mobile.tsrx.js → RouteHost.tsrx.js} +19 -3
- package/dist/native/SafeArea.tsrx.js +2 -5
- package/dist/native/Screen.tsrx.js +1 -1
- package/dist/native/ScrollableArea.tsrx.js +265 -0
- package/dist/native/SearchInput.tsrx.js +35 -24
- package/dist/native/Section.tsrx.js +71 -0
- package/dist/native/SegmentedControl.tsrx.js +23 -10
- package/dist/native/Select.tsrx.js +395 -95
- package/dist/native/SelectableCard.tsrx.js +64 -0
- package/dist/native/SideNav.tsrx.js +1222 -0
- package/dist/native/Slider.tsrx.js +2 -2
- package/dist/native/Stack.tsrx.js +134 -28
- package/dist/native/StackItem.tsrx.js +121 -0
- package/dist/native/StatusDot.tsrx.js +95 -0
- package/dist/native/Switch.tsrx.js +19 -6
- package/dist/native/TabList.tsrx.js +501 -0
- package/dist/native/Tabs.tsrx.js +85 -79
- package/dist/native/TextArea.tsrx.js +39 -24
- package/dist/native/TextInput.tsrx.js +98 -33
- package/dist/native/Thumbnail.tsrx.js +302 -0
- package/dist/native/TimeInput.tsrx.js +487 -0
- package/dist/native/TimeWheelPanel.tsrx.js +213 -0
- package/dist/native/Timer.tsrx.js +65 -0
- package/dist/native/Timestamp.tsrx.js +74 -0
- package/dist/native/Toast.tsrx.js +134 -0
- package/dist/native/ToggleButton.tsrx.js +126 -0
- package/dist/native/Token.tsrx.js +195 -0
- package/dist/native/Tokenizer.tsrx.js +818 -0
- package/dist/native/Toolbar.tsrx.js +223 -0
- package/dist/native/Tooltip.tsrx.js +131 -0
- package/dist/native/TopNav.tsrx.js +1315 -0
- package/dist/native/Typeahead.tsrx.js +462 -0
- package/dist/native/TypeaheadItem.tsrx.js +92 -0
- package/dist/native/VStack.tsrx.js +29 -0
- package/dist/native/View.tsrx.js +15 -9
- package/dist/native/VirtualList.tsrx.js +342 -131
- package/dist/native/VisuallyHidden.tsrx.js +49 -0
- package/dist/native/WebView.tsrx.js +10 -9
- package/dist/native/aliases.tsrx.js +19 -28
- package/dist/native/android/BottomNavigationView.android.tsrx.js +13 -3
- package/dist/native/android/MaterialDialog.android.tsrx.js +1 -1
- package/dist/native/android/RecyclerView.android.tsrx.js +94 -12
- package/dist/native/android/openModal.android.js +1 -1
- package/dist/native/anim.tsrx.js +16 -52
- package/dist/native/animated-value.js +96 -0
- package/dist/native/app-shell-config.js +19 -0
- package/dist/native/bottom-sheet-context.js +8 -0
- package/dist/native/bottom-sheet-service.js +87 -0
- package/dist/native/busy-lane.js +23 -0
- package/dist/native/button-group-context.js +11 -0
- package/dist/native/calendar-core.js +216 -0
- package/dist/native/calendar-hooks.tsrx.js +62 -0
- package/dist/native/chat-context.js +28 -0
- package/dist/native/chat-group-items.js +36 -0
- package/dist/native/chat-tokenize.js +41 -0
- package/dist/native/chat-tokens.tsrx.js +60 -0
- package/dist/native/child-array.js +8 -11
- package/dist/native/clipboard-write.js +13 -0
- package/dist/native/code-tokenizer.js +802 -0
- package/dist/native/codeblock-shared.tsrx.js +63 -0
- package/dist/native/command-palette-accessibility.mobile.js +12 -0
- package/dist/native/command-palette-state.js +191 -0
- package/dist/native/date-composition.js +11 -0
- package/dist/native/date-field-action.js +16 -0
- package/dist/native/date-messages.js +27 -0
- package/dist/native/datetime.js +759 -0
- package/dist/native/dialog-context.js +8 -0
- package/dist/native/escape-props.js +24 -4
- package/dist/native/field-context.js +57 -0
- package/dist/native/form-layout-context.js +10 -0
- package/dist/native/icons.js +22 -0
- package/dist/native/index.shared.js +138 -29
- package/dist/native/indicators.js +40 -0
- package/dist/native/input-group-context.js +6 -0
- package/dist/native/ios/UIModal.ios.tsrx.js +1 -1
- package/dist/native/ios/UITableView.ios.tsrx.js +94 -12
- package/dist/native/ios/openModal.ios.js +1 -1
- package/dist/native/is-renderable.js +8 -0
- package/dist/native/{keyboard-inset.mobile.js → keyboard-inset.js} +7 -7
- package/dist/native/layer-dismissal.tsrx.js +50 -0
- package/dist/native/layer-keys.js +37 -0
- package/dist/native/layer-stack.js +61 -0
- package/dist/native/list-context.js +13 -0
- package/dist/native/list-viewability-core.js +100 -0
- package/dist/native/list-viewability-observer.android.js +78 -0
- package/dist/native/list-viewability-observer.ios.js +74 -0
- package/dist/native/list-viewability-runtime.js +81 -0
- package/dist/native/markdown-parse.js +342 -0
- package/dist/native/markdown-stream.js +264 -0
- package/dist/native/menu-context.js +11 -0
- package/dist/native/metadata-list-context.js +6 -0
- package/dist/native/{modal-presenter.mobile.js → modal-presenter.js} +1 -1
- package/dist/native/native/index.js +3 -3
- package/dist/native/native-color.mobile.tsrx.js +6 -0
- package/dist/native/nav-contexts.js +79 -0
- package/dist/native/nav-href.js +22 -0
- package/dist/native/navigation-request.js +26 -0
- package/dist/native/octane-client-build.json +1 -1
- package/dist/native/outline-dom.tsrx.js +21 -0
- package/dist/native/outline-hooks.tsrx.js +14 -0
- package/dist/native/outline-utils.js +122 -0
- package/dist/native/outline-view-tree.js +63 -0
- package/dist/native/overflow-math.js +126 -0
- package/dist/native/overlay-lifetime.js +63 -0
- package/dist/native/pan.tsrx.js +16 -2
- package/dist/native/popover-position.js +51 -7
- package/dist/native/power-search-config.js +566 -0
- package/dist/native/power-search-strings.js +74 -0
- package/dist/native/query-cache.js +358 -0
- package/dist/native/query-storage.js +30 -0
- package/dist/native/ref-list.js +19 -0
- package/dist/native/relative-position.js +7 -0
- package/dist/native/resize-basis.js +28 -0
- package/dist/native/resize-math.js +85 -0
- package/dist/native/resize-persist.js +25 -0
- package/dist/native/resize-state.js +208 -0
- package/dist/native/{root-layout.mobile.js → root-layout.js} +1 -1
- package/dist/native/route-host.js +2 -0
- package/dist/native/route-table.js +203 -47
- package/dist/native/route.js +41 -22
- package/dist/native/safe-url.js +13 -0
- package/dist/native/scheme-colors.js +41 -0
- package/dist/native/select-options.js +31 -0
- package/dist/native/shared.js +137 -29
- package/dist/native/sheet-detents.js +27 -21
- package/dist/native/sheet-snap.js +23 -1
- package/dist/native/spacing.js +9 -0
- package/dist/native/stack-layout.js +72 -0
- package/dist/native/svg-glyph.js +12 -0
- package/dist/native/svg-source.js +29 -0
- package/dist/native/svg.mobile.js +3 -35
- package/dist/native/tap-to-blur.ios.js +13 -16
- package/dist/native/text-focus.js +10 -0
- package/dist/native/text-role.js +50 -0
- package/dist/native/text-slot.tsrx.js +34 -0
- package/dist/native/text-write.js +18 -11
- package/dist/native/time-format.js +215 -0
- package/dist/native/timer-format.js +49 -0
- package/dist/native/toast-context.js +8 -0
- package/dist/native/toast-service.tsrx.js +280 -0
- package/dist/native/toast-store.js +68 -0
- package/dist/native/toast-viewport.tsrx.js +65 -0
- package/dist/native/toggle-button-group-context.js +9 -0
- package/dist/native/typeahead-source.js +71 -0
- package/dist/native/ui.js +137 -30
- package/dist/native/use-hover-card.mobile.tsrx.js +127 -0
- package/dist/native/use-imperative-alert-dialog.tsrx.js +45 -0
- package/dist/native/use-imperative-dialog.tsrx.js +44 -0
- package/dist/native/use-layer.mobile.tsrx.js +412 -0
- package/dist/native/use-lightbox.tsrx.js +83 -0
- package/dist/native/use-scrollable-area.tsrx.js +85 -0
- package/dist/native/useChatComposerTokens.tsrx.js +47 -0
- package/dist/native/useChatDictation.tsrx.js +9 -0
- package/dist/native/useChatNewMessages.tsrx.js +56 -0
- package/dist/native/useChatPasteAsToken.tsrx.js +25 -0
- package/dist/native/useChatStreamScroll.tsrx.js +136 -0
- package/dist/native/useMeasure.tsrx.js +2 -2
- package/dist/native/useResizable.tsrx.js +71 -0
- package/dist/native/useSelect.js +133 -0
- package/dist/native/useSpeechRecognition.tsrx.js +32 -0
- package/dist/native/useTriggerMenu.tsrx.js +352 -0
- package/dist/native/vendor/ui-svg/index.android.js +15 -16
- package/dist/native/vendor/ui-svg/index.ios.js +2 -2
- package/dist/native/vendor/ui-svg/{index.common.js → src/index.common.js} +1 -1
- package/dist/native/virtual-list-cell-pool.js +63 -0
- package/dist/web/AlertDialog.web.tsrx.js +45 -0
- package/dist/web/AppShell.web.tsrx.js +234 -0
- package/dist/web/AspectRatio.web.tsrx.js +92 -0
- package/dist/web/AvatarGroup.web.tsrx.js +15 -39
- package/dist/web/BaseTypeahead.web.tsrx.js +489 -0
- package/dist/web/Blockquote.web.tsrx.js +55 -0
- package/dist/web/BottomSheet.web.tsrx.js +350 -0
- package/dist/web/Breadcrumb.web.tsrx.js +74 -39
- package/dist/web/Button.web.tsrx.js +123 -24
- package/dist/web/ButtonGroup.web.tsrx.js +98 -0
- package/dist/web/Calendar.web.tsrx.js +568 -0
- package/dist/web/Card.web.tsrx.js +52 -17
- package/dist/web/Carousel.web.tsrx.js +189 -0
- package/dist/web/Center.web.tsrx.js +86 -0
- package/dist/web/ChatComposer.web.tsrx.js +193 -0
- package/dist/web/ChatComposerDrawer.web.tsrx.js +196 -0
- package/dist/web/ChatComposerInput.web.tsrx.js +686 -0
- package/dist/web/ChatDictationButton.web.tsrx.js +159 -0
- package/dist/web/ChatLayout.web.tsrx.js +154 -0
- package/dist/web/ChatLayoutScrollButton.web.tsrx.js +62 -0
- package/dist/web/ChatMessage.web.tsrx.js +124 -0
- package/dist/web/ChatMessageBubble.web.tsrx.js +66 -0
- package/dist/web/ChatMessageList.web.tsrx.js +155 -0
- package/dist/web/ChatMessageMetadata.web.tsrx.js +139 -0
- package/dist/web/ChatPastedTextToken.web.tsrx.js +33 -0
- package/dist/web/ChatSendButton.web.tsrx.js +64 -0
- package/dist/web/ChatSystemMessage.web.tsrx.js +28 -0
- package/dist/web/ChatTokenizedText.web.tsrx.js +42 -0
- package/dist/web/ChatToolCalls.web.tsrx.js +263 -0
- package/dist/web/CheckIndicator.web.tsrx.js +114 -0
- package/dist/web/Checkbox.web.tsrx.js +83 -44
- package/dist/web/CheckboxGroup.web.tsrx.js +40 -22
- package/dist/web/CheckboxIndicator.web.tsrx.js +62 -0
- package/dist/web/Citation.web.tsrx.js +57 -0
- package/dist/web/ClickableCard.web.tsrx.js +85 -0
- package/dist/web/Code.web.tsrx.js +43 -0
- package/dist/web/CodeBlock.web.tsrx.js +292 -0
- package/dist/web/CommandPalette.web.tsrx.js +447 -78
- package/dist/web/ComplexSelector.web.tsrx.js +173 -0
- package/dist/web/ContextMenu.web.tsrx.js +72 -101
- package/dist/web/DateInput.web.tsrx.js +419 -0
- package/dist/web/DateRangeInput.web.tsrx.js +270 -0
- package/dist/web/DateTimeInput.web.tsrx.js +695 -0
- package/dist/web/Dialog.web.tsrx.js +253 -0
- package/dist/web/DropdownMenu.web.tsrx.js +74 -113
- package/dist/web/FormField.web.tsrx.js +194 -59
- package/dist/web/FormLayout.web.tsrx.js +79 -0
- package/dist/web/HStack.tsrx.js +14 -0
- package/dist/web/HoverCard.web.tsrx.js +93 -0
- package/dist/web/IconButton.web.tsrx.js +12 -0
- package/dist/web/InputGroup.web.tsrx.js +136 -0
- package/dist/web/InputNumber.web.tsrx.js +26 -16
- package/dist/web/InputRating.web.tsrx.js +31 -15
- package/dist/web/Item.web.tsrx.js +139 -0
- package/dist/web/KeyboardAvoiding.web.tsrx.js +78 -0
- package/dist/web/Lightbox.web.tsrx.js +225 -0
- package/dist/web/List.web.tsrx.js +129 -0
- package/dist/web/ListItem.web.tsrx.js +165 -120
- package/dist/web/Markdown.tsrx.js +231 -0
- package/dist/web/MenuParts.web.tsrx.js +605 -0
- package/dist/web/MenuSurface.web.tsrx.js +106 -0
- package/dist/web/MetadataList.web.tsrx.js +138 -0
- package/dist/web/MetadataListItem.web.tsrx.js +24 -0
- package/dist/web/MobileNav.web.tsrx.js +262 -0
- package/dist/web/MoreMenu.web.tsrx.js +193 -0
- package/dist/web/NavIcon.web.tsrx.js +62 -0
- package/dist/web/NavMenu.web.tsrx.js +246 -0
- package/dist/web/NavigationMenu.web.tsrx.js +84 -67
- package/dist/web/Outline.web.tsrx.js +279 -0
- package/dist/web/OverflowList.web.tsrx.js +228 -0
- package/dist/web/Overlay.web.tsrx.js +82 -32
- package/dist/web/PinInput.web.tsrx.js +86 -34
- package/dist/web/Popover.web.tsrx.js +55 -15
- package/dist/web/PowerSearch.web.tsrx.js +329 -0
- package/dist/web/PowerSearchFilterEditor.web.tsrx.js +157 -0
- package/dist/web/PowerSearchToken.web.tsrx.js +51 -0
- package/dist/web/Pressable.web.tsrx.js +201 -75
- package/dist/web/ProgressBar.web.tsrx.js +125 -0
- package/dist/web/RadioGroup.web.tsrx.js +50 -23
- package/dist/web/RadioIndicator.web.tsrx.js +65 -0
- package/dist/web/Resizable.js +3 -0
- package/dist/web/ResizeHandle.web.tsrx.js +207 -0
- package/dist/web/RouteBoundary.web.tsrx.js +48 -0
- package/dist/web/ScrollableArea.web.tsrx.js +539 -0
- package/dist/web/SearchInput.web.tsrx.js +72 -42
- package/dist/web/Section.web.tsrx.js +121 -0
- package/dist/web/SegmentedControl.web.tsrx.js +40 -22
- package/dist/web/Select.web.tsrx.js +418 -118
- package/dist/web/SelectableCard.web.tsrx.js +62 -0
- package/dist/web/SideNav.web.tsrx.js +1158 -0
- package/dist/web/Slider.web.tsrx.js +2 -2
- package/dist/web/Stack.web.tsrx.js +69 -40
- package/dist/web/StackItem.web.tsrx.js +74 -0
- package/dist/web/StatusDot.web.tsrx.js +30 -0
- package/dist/web/Switch.web.tsrx.js +33 -12
- package/dist/web/TabList.web.tsrx.js +692 -0
- package/dist/web/Tabs.web.tsrx.js +86 -91
- package/dist/web/TextArea.web.tsrx.js +73 -34
- package/dist/web/TextInput.web.tsrx.js +129 -52
- package/dist/web/Thumbnail.web.tsrx.js +105 -0
- package/dist/web/TimeInput.web.tsrx.js +377 -0
- package/dist/web/TimeWheelPanel.web.tsrx.js +114 -0
- package/dist/web/Timer.web.tsrx.js +81 -0
- package/dist/web/Timestamp.web.tsrx.js +205 -0
- package/dist/web/Toast.web.tsrx.js +107 -0
- package/dist/web/ToggleButton.web.tsrx.js +98 -0
- package/dist/web/Token.web.tsrx.js +132 -0
- package/dist/web/Tokenizer.web.tsrx.js +421 -0
- package/dist/web/Toolbar.web.tsrx.js +209 -0
- package/dist/web/Tooltip.web.tsrx.js +46 -57
- package/dist/web/TopNav.web.tsrx.js +1156 -0
- package/dist/web/Typeahead.web.tsrx.js +234 -0
- package/dist/web/TypeaheadItem.web.tsrx.js +78 -0
- package/dist/web/VStack.tsrx.js +14 -0
- package/dist/web/View.web.tsrx.js +15 -18
- package/dist/web/VirtualList.web.tsrx.js +230 -111
- package/dist/web/VisuallyHidden.web.tsrx.js +58 -0
- package/dist/web/WebView.web.tsrx.js +8 -9
- package/dist/web/aliases.web.tsrx.js +5 -15
- package/dist/web/anim.web.tsrx.js +14 -52
- package/dist/web/animated-value.js +96 -0
- package/dist/web/app-shell-config.js +19 -0
- package/dist/web/bottom-sheet-context.js +8 -0
- package/dist/web/bottom-sheet-service.web.js +70 -0
- package/dist/web/busy-lane.js +23 -0
- package/dist/web/button-group-context.js +11 -0
- package/dist/web/calendar-core.js +227 -0
- package/dist/web/calendar-hooks.tsrx.js +62 -0
- package/dist/web/chat-context.js +28 -0
- package/dist/web/chat-group-items.js +36 -0
- package/dist/web/chat-tokenize.js +41 -0
- package/dist/web/chat-tokens.web.tsrx.js +43 -0
- package/dist/web/chatComposerSelection.web.js +87 -0
- package/dist/web/child-array.js +8 -11
- package/dist/web/clipboard-write.web.js +13 -0
- package/dist/web/code-highlight.web.js +148 -0
- package/dist/web/code-tokenizer.js +764 -0
- package/dist/web/codeblock-shared.tsrx.js +77 -0
- package/dist/web/command-palette-state.js +191 -0
- package/dist/web/date-field-action.js +16 -0
- package/dist/web/date-keyboard.js +80 -0
- package/dist/web/date-messages.js +27 -0
- package/dist/web/datetime.js +770 -0
- package/dist/web/dialog-context.js +8 -0
- package/dist/web/field-context.js +57 -0
- package/dist/web/form-layout-context.js +10 -0
- package/dist/web/icons.js +22 -0
- package/dist/web/index.shared.web.js +201 -0
- package/dist/web/indicators.js +40 -0
- package/dist/web/input-group-context.js +6 -0
- package/dist/web/is-renderable.js +8 -0
- package/dist/web/layer-dismissal.tsrx.js +50 -0
- package/dist/web/layer-keys.web.js +25 -0
- package/dist/web/layer-position.web.js +41 -0
- package/dist/web/layer-stack.js +67 -0
- package/dist/web/list-context.js +13 -0
- package/dist/web/list-focus.web.tsrx.js +124 -0
- package/dist/web/markdown-parse.js +342 -0
- package/dist/web/markdown-stream.js +264 -0
- package/dist/web/menu-context.js +11 -0
- package/dist/web/metadata-list-context.js +6 -0
- package/dist/web/modal-focus.web.js +130 -0
- package/dist/web/nav-contexts.js +82 -0
- package/dist/web/nav-href.web.js +1 -0
- package/dist/web/navigation-request.js +26 -0
- package/dist/web/octane-client-build.json +1 -1
- package/dist/web/outline-dom.web.tsrx.js +52 -0
- package/dist/web/outline-hooks.tsrx.js +17 -0
- package/dist/web/outline-utils.js +122 -0
- package/dist/web/overflow-math.js +126 -0
- package/dist/web/pan.web.tsrx.js +27 -10
- package/dist/web/popover-position.js +32 -7
- package/dist/web/power-search-config.js +566 -0
- package/dist/web/power-search-strings.js +74 -0
- package/dist/web/query-cache.js +358 -0
- package/dist/web/query-storage.web.js +28 -0
- package/dist/web/ref-list.js +12 -0
- package/dist/web/resize-basis.web.js +30 -0
- package/dist/web/resize-math.js +85 -0
- package/dist/web/resize-persist.web.js +23 -0
- package/dist/web/resize-state.js +208 -0
- package/dist/web/route-table.js +203 -47
- package/dist/web/route.web.js +143 -33
- package/dist/web/safe-url.js +13 -0
- package/dist/web/select-options.js +31 -0
- package/dist/web/sheet-detents.web.js +22 -9
- package/dist/web/sheet-snap.js +23 -1
- package/dist/web/spacing.js +9 -0
- package/dist/web/stack-layout.js +89 -0
- package/dist/web/text-role.js +50 -0
- package/dist/web/theme/colorScheme.web.js +31 -4
- package/dist/web/theme/theme-scheme.js +1 -1
- package/dist/web/time-format.js +256 -0
- package/dist/web/timer-format.js +49 -0
- package/dist/web/toast-context.js +8 -0
- package/dist/web/toast-service.web.tsrx.js +38 -0
- package/dist/web/toast-store.js +79 -0
- package/dist/web/toast-viewport.web.tsrx.js +209 -0
- package/dist/web/toggle-button-group-context.js +9 -0
- package/dist/web/translate.web.js +1 -1
- package/dist/web/typeahead-source.js +71 -0
- package/dist/web/ui.js +136 -28
- package/dist/web/use-hover-card.web.tsrx.js +254 -0
- package/dist/web/use-imperative-alert-dialog.web.tsrx.js +35 -0
- package/dist/web/use-imperative-dialog.web.tsrx.js +34 -0
- package/dist/web/use-layer.web.tsrx.js +225 -0
- package/dist/web/use-lightbox.web.tsrx.js +52 -0
- package/dist/web/use-scrollable-area.web.tsrx.js +128 -0
- package/dist/web/useChatComposerTokens.web.tsrx.js +129 -0
- package/dist/web/useChatDictation.web.tsrx.js +310 -0
- package/dist/web/useChatNewMessages.web.tsrx.js +57 -0
- package/dist/web/useChatPasteAsToken.web.tsrx.js +23 -0
- package/dist/web/useChatStreamScroll.web.tsrx.js +208 -0
- package/dist/web/useMeasure.web.tsrx.js +2 -2
- package/dist/web/useMediaQuery.web.tsrx.js +22 -0
- package/dist/web/useResizable.web.tsrx.js +71 -0
- package/dist/web/useSelect.js +133 -0
- package/dist/web/useSpeechRecognition.web.tsrx.js +276 -0
- package/dist/web/useTriggerMenu.web.tsrx.js +347 -0
- package/dist/web/virtual-list-cell-pool.js +63 -0
- package/dist/web/web/index.js +2 -2
- package/package.json +25 -32
- package/platforms/android/native-api-usage.json +7 -7
- package/src/Accordion.macos.tsrx +1 -1
- package/src/Accordion.tsrx +1 -1
- package/src/Alert.macos.tsrx +1 -1
- package/src/Alert.tsrx +1 -1
- package/src/AlertDialog.macos.tsrx +59 -0
- package/src/AlertDialog.tsrx +68 -0
- package/src/AlertDialog.web.tsrx +63 -0
- package/src/AppShell.macos.tsrx +162 -0
- package/src/AppShell.tsrx +164 -0
- package/src/AppShell.web.tsrx +177 -0
- package/src/AspectRatio.macos.tsrx +43 -0
- package/src/AspectRatio.tsrx +56 -0
- package/src/AspectRatio.web.tsrx +39 -0
- package/src/Avatar.macos.tsrx +1 -1
- package/src/Avatar.tsrx +1 -1
- package/src/AvatarGroup.macos.tsrx +4 -4
- package/src/AvatarGroup.tsrx +4 -4
- package/src/AvatarGroup.web.tsrx +8 -4
- package/src/Badge.macos.tsrx +1 -1
- package/src/Banner.macos.tsrx +1 -1
- package/src/Banner.tsrx +1 -1
- package/src/BaseTypeahead.macos.tsrx +252 -0
- package/src/BaseTypeahead.tsrx +297 -0
- package/src/BaseTypeahead.web.tsrx +414 -0
- package/src/Blockquote.macos.tsrx +29 -0
- package/src/Blockquote.tsrx +25 -0
- package/src/Blockquote.web.tsrx +18 -0
- package/src/BottomSheet.macos.tsrx +124 -0
- package/src/BottomSheet.tsrx +347 -0
- package/src/BottomSheet.web.tsrx +220 -0
- package/src/Breadcrumb.macos.tsrx +8 -2
- package/src/Breadcrumb.tsrx +7 -1
- package/src/Breadcrumb.web.tsrx +8 -2
- package/src/Button.tsrx +57 -9
- package/src/Button.web.tsrx +81 -14
- package/src/ButtonGroup.macos.tsrx +15 -0
- package/src/ButtonGroup.tsrx +15 -0
- package/src/ButtonGroup.web.tsrx +45 -0
- package/src/Calendar.macos.tsrx +236 -0
- package/src/Calendar.tsrx +236 -0
- package/src/Calendar.web.tsrx +347 -0
- package/src/CameraView.macos.tsrx +1 -1
- package/src/Card.macos.tsrx +2 -2
- package/src/Card.tsrx +1 -1
- package/src/Card.web.tsrx +1 -1
- package/src/Carousel.macos.tsrx +33 -0
- package/src/Carousel.tsrx +223 -0
- package/src/Carousel.web.tsrx +230 -0
- package/src/Center.macos.tsrx +41 -0
- package/src/Center.tsrx +45 -0
- package/src/Center.web.tsrx +52 -0
- package/src/ChatComposer.tsrx +111 -0
- package/src/ChatComposer.web.tsrx +128 -0
- package/src/ChatComposerDrawer.tsrx +65 -0
- package/src/ChatComposerDrawer.web.tsrx +70 -0
- package/src/ChatComposerInput.tsrx +305 -0
- package/src/ChatComposerInput.web.tsrx +492 -0
- package/src/ChatDictationButton.tsrx +56 -0
- package/src/ChatDictationButton.web.tsrx +76 -0
- package/src/ChatLayout.tsrx +113 -0
- package/src/ChatLayout.web.tsrx +84 -0
- package/src/ChatLayoutScrollButton.tsrx +32 -0
- package/src/ChatLayoutScrollButton.web.tsrx +29 -0
- package/src/ChatMessage.tsrx +54 -0
- package/src/ChatMessage.web.tsrx +46 -0
- package/src/ChatMessageBubble.tsrx +56 -0
- package/src/ChatMessageBubble.web.tsrx +54 -0
- package/src/ChatMessageList.tsrx +90 -0
- package/src/ChatMessageList.web.tsrx +84 -0
- package/src/ChatMessageMetadata.tsrx +65 -0
- package/src/ChatMessageMetadata.web.tsrx +58 -0
- package/src/ChatPastedTextToken.web.tsrx +37 -0
- package/src/ChatSendButton.tsrx +47 -0
- package/src/ChatSendButton.web.tsrx +46 -0
- package/src/ChatSystemMessage.tsrx +41 -0
- package/src/ChatSystemMessage.web.tsrx +35 -0
- package/src/ChatTokenizedText.tsrx +37 -0
- package/src/ChatTokenizedText.web.tsrx +27 -0
- package/src/ChatToolCalls.tsrx +163 -0
- package/src/ChatToolCalls.web.tsrx +180 -0
- package/src/CheckIndicator.macos.tsrx +37 -0
- package/src/CheckIndicator.tsrx +39 -0
- package/src/CheckIndicator.web.tsrx +38 -0
- package/src/Checkbox.tsrx +16 -8
- package/src/Checkbox.web.tsrx +25 -12
- package/src/CheckboxGroup.macos.tsrx +11 -5
- package/src/CheckboxGroup.tsrx +12 -5
- package/src/CheckboxGroup.web.tsrx +14 -4
- package/src/CheckboxIndicator.macos.tsrx +32 -0
- package/src/CheckboxIndicator.tsrx +39 -0
- package/src/CheckboxIndicator.web.tsrx +36 -0
- package/src/Chip.macos.tsrx +1 -1
- package/src/Chip.tsrx +1 -1
- package/src/Citation.macos.tsrx +81 -0
- package/src/Citation.tsrx +99 -0
- package/src/Citation.web.tsrx +78 -0
- package/src/ClickableCard.macos.tsrx +7 -0
- package/src/ClickableCard.tsrx +12 -0
- package/src/ClickableCard.web.tsrx +14 -0
- package/src/Code.macos.tsrx +16 -0
- package/src/Code.tsrx +27 -0
- package/src/Code.web.tsrx +22 -0
- package/src/CodeBlock.macos.tsrx +133 -0
- package/src/CodeBlock.tsrx +208 -0
- package/src/CodeBlock.web.tsrx +220 -0
- package/src/Collapsible.macos.tsrx +1 -1
- package/src/Collapsible.tsrx +1 -1
- package/src/CommandPalette.macos.tsrx +103 -52
- package/src/CommandPalette.tsrx +61 -55
- package/src/CommandPalette.web.test.tsrx +88 -0
- package/src/CommandPalette.web.tsrx +84 -48
- package/src/ComplexSelector.macos.tsrx +106 -0
- package/src/ComplexSelector.tsrx +106 -0
- package/src/ComplexSelector.web.tsrx +80 -0
- package/src/ContextMenu.macos.tsrx +16 -27
- package/src/ContextMenu.tsrx +16 -27
- package/src/ContextMenu.web.tsrx +20 -35
- package/src/DateInput.macos.tsrx +207 -0
- package/src/DateInput.tsrx +286 -0
- package/src/DateInput.web.tsrx +429 -0
- package/src/DateRangeInput.macos.tsrx +167 -0
- package/src/DateRangeInput.tsrx +166 -0
- package/src/DateRangeInput.web.tsrx +179 -0
- package/src/DateTimeInput.macos.tsrx +328 -0
- package/src/DateTimeInput.tsrx +424 -0
- package/src/DateTimeInput.web.tsrx +639 -0
- package/src/Dialog.macos.tsrx +59 -0
- package/src/Dialog.tsrx +216 -0
- package/src/Dialog.web.tsrx +258 -0
- package/src/Drawer.macos.tsrx +1 -1
- package/src/DropdownMenu.macos.tsrx +20 -29
- package/src/DropdownMenu.tsrx +21 -30
- package/src/DropdownMenu.web.tsrx +22 -45
- package/src/Empty.macos.tsrx +1 -1
- package/src/Empty.tsrx +1 -1
- package/src/FieldGroup.macos.tsrx +1 -1
- package/src/FormField.macos.tsrx +64 -18
- package/src/FormField.tsrx +65 -17
- package/src/FormField.web.tsrx +70 -19
- package/src/FormLayout.macos.tsrx +35 -0
- package/src/FormLayout.tsrx +70 -0
- package/src/FormLayout.web.tsrx +38 -0
- package/src/Grid.tsrx +2 -0
- package/src/HStack.macos.tsrx +13 -0
- package/src/HStack.tsrx +14 -0
- package/src/Heading.macos.tsrx +1 -1
- package/src/HoverCard.mobile.tsrx +36 -0
- package/src/HoverCard.tsrx +41 -0
- package/src/HoverCard.web.tsrx +99 -0
- package/src/Icon.macos.tsrx +11 -6
- package/src/Icon.tsrx +1 -1
- package/src/IconButton.macos.tsrx +11 -0
- package/src/IconButton.tsrx +7 -0
- package/src/IconButton.web.tsrx +5 -0
- package/src/Image.macos.tsrx +7 -3
- package/src/Image.tsrx +1 -1
- package/src/InputGroup.macos.tsrx +63 -0
- package/src/InputGroup.tsrx +68 -0
- package/src/InputGroup.web.tsrx +71 -0
- package/src/InputNumber.macos.tsrx +9 -6
- package/src/InputNumber.tsrx +10 -7
- package/src/InputNumber.web.tsrx +8 -5
- package/src/InputRating.macos.tsrx +11 -6
- package/src/InputRating.tsrx +12 -7
- package/src/InputRating.web.tsrx +18 -7
- package/src/Item.macos.tsrx +52 -0
- package/src/Item.tsrx +52 -0
- package/src/Item.web.tsrx +50 -0
- package/src/Kbd.macos.tsrx +1 -1
- package/src/Kbd.tsrx +2 -1
- package/src/KeyboardAvoiding.macos.tsrx +8 -2
- package/src/KeyboardAvoiding.mobile.tsrx +2 -2
- package/src/KeyboardAvoiding.tsrx +15 -0
- package/src/KeyboardAvoiding.web.tsrx +15 -0
- package/src/Lightbox.macos.tsrx +63 -0
- package/src/Lightbox.tsrx +277 -0
- package/src/Lightbox.web.tsrx +258 -0
- package/src/Link.macos.tsrx +1 -1
- package/src/Link.tsrx +1 -1
- package/src/List.macos.tsrx +51 -0
- package/src/List.tsrx +61 -0
- package/src/List.web.tsrx +59 -0
- package/src/ListItem.macos.tsrx +58 -41
- package/src/ListItem.tsrx +72 -40
- package/src/ListItem.web.tsrx +83 -42
- package/src/Markdown.tsrx +237 -0
- package/src/Markdown.web.test.tsrx +68 -0
- package/src/MenuParts.macos.tsrx +137 -0
- package/src/MenuParts.tsrx +137 -0
- package/src/MenuParts.web.tsrx +138 -0
- package/src/MenuSurface.macos.tsrx +18 -0
- package/src/MenuSurface.tsrx +18 -0
- package/src/MenuSurface.web.tsrx +53 -0
- package/src/MetadataList.macos.tsrx +80 -0
- package/src/MetadataList.tsrx +94 -0
- package/src/MetadataList.web.tsrx +93 -0
- package/src/MetadataListItem.macos.tsrx +55 -0
- package/src/MetadataListItem.tsrx +59 -0
- package/src/MetadataListItem.web.tsrx +49 -0
- package/src/Meter.macos.tsrx +1 -1
- package/src/Meter.tsrx +2 -1
- package/src/MobileNav.macos.tsrx +93 -0
- package/src/MobileNav.tsrx +97 -0
- package/src/MobileNav.web.tsrx +163 -0
- package/src/MoreMenu.macos.tsrx +35 -0
- package/src/MoreMenu.tsrx +35 -0
- package/src/MoreMenu.web.tsrx +39 -0
- package/src/NavIcon.macos.tsrx +17 -0
- package/src/NavIcon.tsrx +21 -0
- package/src/NavIcon.web.tsrx +18 -0
- package/src/NavLink.macos.tsrx +1 -1
- package/src/NavLink.tsrx +1 -1
- package/src/NavMenu.macos.tsrx +83 -0
- package/src/NavMenu.tsrx +83 -0
- package/src/NavMenu.web.tsrx +157 -0
- package/src/NavigationMenu.macos.tsrx +27 -18
- package/src/NavigationMenu.tsrx +28 -14
- package/src/NavigationMenu.web.tsrx +42 -21
- package/src/Outline.macos.tsrx +74 -0
- package/src/Outline.tsrx +169 -0
- package/src/Outline.web.tsrx +252 -0
- package/src/OverflowList.macos.tsrx +128 -0
- package/src/OverflowList.tsrx +128 -0
- package/src/OverflowList.web.tsrx +137 -0
- package/src/Overlay.macos.tsrx +2 -2
- package/src/Overlay.tsrx +20 -31
- package/src/Overlay.web.tsrx +12 -3
- package/src/Pagination.macos.tsrx +1 -1
- package/src/PinInput.macos.tsrx +24 -8
- package/src/PinInput.mobile.test.ts +112 -0
- package/src/PinInput.tsrx +33 -10
- package/src/PinInput.web.test.tsrx +42 -0
- package/src/PinInput.web.tsrx +32 -9
- package/src/Popover.macos.tsrx +38 -6
- package/src/Popover.tsrx +34 -27
- package/src/Popover.web.tsrx +22 -7
- package/src/PowerSearch.macos.tsrx +82 -0
- package/src/PowerSearch.tsrx +82 -0
- package/src/PowerSearch.web.tsrx +48 -0
- package/src/PowerSearchFilterEditor.macos.tsrx +66 -0
- package/src/PowerSearchFilterEditor.tsrx +66 -0
- package/src/PowerSearchFilterEditor.web.tsrx +41 -0
- package/src/PowerSearchToken.macos.tsrx +17 -0
- package/src/PowerSearchToken.tsrx +17 -0
- package/src/PowerSearchToken.web.tsrx +15 -0
- package/src/Pressable.macos.tsrx +5 -1
- package/src/Pressable.tsrx +7 -3
- package/src/Pressable.web.test.tsrx +61 -0
- package/src/Pressable.web.tsrx +42 -7
- package/src/ProgressBar.macos.tsrx +75 -0
- package/src/ProgressBar.tsrx +175 -0
- package/src/ProgressBar.web.tsrx +99 -0
- package/src/ProgressGroup.macos.tsrx +1 -1
- package/src/ProgressGroup.tsrx +1 -1
- package/src/RadioGroup.macos.tsrx +15 -7
- package/src/RadioGroup.tsrx +17 -10
- package/src/RadioGroup.web.tsrx +23 -10
- package/src/RadioIndicator.macos.tsrx +29 -0
- package/src/RadioIndicator.tsrx +36 -0
- package/src/RadioIndicator.web.tsrx +33 -0
- package/src/Resizable.ts +2 -0
- package/src/ResizeHandle.macos.tsrx +89 -0
- package/src/ResizeHandle.tsrx +90 -0
- package/src/ResizeHandle.web.tsrx +207 -0
- package/src/RouteBoundary.macos.tsrx +21 -0
- package/src/RouteBoundary.mobile.test.tsrx +89 -0
- package/src/RouteBoundary.tsrx +26 -0
- package/src/RouteBoundary.web.test.tsrx +76 -0
- package/src/RouteBoundary.web.tsrx +19 -0
- package/src/RouteHost.macos.tsrx +12 -2
- package/src/{RouteHost.mobile.tsrx → RouteHost.tsrx} +12 -1
- package/src/Row.macos.tsrx +1 -1
- package/src/Row.tsrx +6 -2
- package/src/Row.web.tsrx +5 -2
- package/src/SafeArea.macos.tsrx +1 -1
- package/src/SafeArea.tsrx +3 -4
- package/src/Screen.macos.tsrx +1 -1
- package/src/Screen.tsrx +1 -1
- package/src/ScrollableArea.macos.tsrx +20 -0
- package/src/ScrollableArea.tsrx +159 -0
- package/src/ScrollableArea.web.tsrx +183 -0
- package/src/SearchInput.tsrx +17 -10
- package/src/SearchInput.web.test.tsrx +165 -0
- package/src/SearchInput.web.tsrx +19 -7
- package/src/Section.macos.tsrx +48 -0
- package/src/Section.tsrx +56 -0
- package/src/Section.web.tsrx +67 -0
- package/src/SegmentedControl.tsrx +11 -5
- package/src/SegmentedControl.web.test.tsrx +1 -1
- package/src/SegmentedControl.web.tsrx +20 -8
- package/src/Select.macos.tsrx +48 -98
- package/src/Select.tsrx +49 -97
- package/src/Select.web.test.tsrx +146 -0
- package/src/Select.web.tsrx +161 -102
- package/src/SelectableCard.macos.tsrx +7 -0
- package/src/SelectableCard.tsrx +8 -0
- package/src/SelectableCard.web.tsrx +6 -0
- package/src/Separator.macos.tsrx +1 -1
- package/src/SideNav.macos.tsrx +362 -0
- package/src/SideNav.tsrx +367 -0
- package/src/SideNav.web.tsrx +419 -0
- package/src/Skeleton.macos.tsrx +1 -1
- package/src/Slider.tsrx +3 -3
- package/src/Slider.web.tsrx +1 -1
- package/src/Stack.tsrx +76 -17
- package/src/Stack.web.tsrx +26 -5
- package/src/StackItem.tsrx +57 -0
- package/src/StackItem.web.tsrx +41 -0
- package/src/StatusDot.macos.tsrx +65 -0
- package/src/StatusDot.tsrx +86 -0
- package/src/StatusDot.web.tsrx +32 -0
- package/src/Stepper.macos.tsrx +1 -1
- package/src/Switch.tsrx +11 -4
- package/src/Switch.web.tsrx +17 -4
- package/src/TabList.macos.tsrx +199 -0
- package/src/TabList.tsrx +199 -0
- package/src/TabList.web.tsrx +325 -0
- package/src/Table.macos.tsrx +1 -1
- package/src/Tabs.macos.tsrx +15 -14
- package/src/Tabs.tsrx +16 -18
- package/src/Tabs.web.tsrx +46 -23
- package/src/Text.macos.tsrx +1 -1
- package/src/Text.tsrx +3 -1
- package/src/TextArea.tsrx +19 -11
- package/src/TextArea.web.test.tsrx +39 -0
- package/src/TextArea.web.tsrx +23 -11
- package/src/TextInput.tsrx +48 -27
- package/src/TextInput.web.tsrx +49 -22
- package/src/Thumbnail.macos.tsrx +92 -0
- package/src/Thumbnail.tsrx +135 -0
- package/src/Thumbnail.web.tsrx +137 -0
- package/src/TimeInput.macos.tsrx +164 -0
- package/src/TimeInput.tsrx +238 -0
- package/src/TimeInput.web.tsrx +371 -0
- package/src/TimeWheelPanel.macos.tsrx +91 -0
- package/src/TimeWheelPanel.tsrx +91 -0
- package/src/TimeWheelPanel.web.tsrx +85 -0
- package/src/Timeline.macos.tsrx +1 -1
- package/src/Timeline.tsrx +1 -1
- package/src/Timer.macos.tsrx +62 -0
- package/src/Timer.tsrx +66 -0
- package/src/Timer.web.tsrx +66 -0
- package/src/Timestamp.macos.tsrx +115 -0
- package/src/Timestamp.tsrx +82 -0
- package/src/Timestamp.web.tsrx +163 -0
- package/src/Toast.macos.tsrx +72 -0
- package/src/Toast.tsrx +104 -0
- package/src/Toast.web.tsrx +133 -0
- package/src/ToggleButton.macos.tsrx +24 -0
- package/src/ToggleButton.tsrx +48 -0
- package/src/ToggleButton.web.tsrx +40 -0
- package/src/Token.macos.tsrx +109 -0
- package/src/Token.tsrx +89 -0
- package/src/Token.web.tsrx +145 -0
- package/src/Tokenizer.macos.tsrx +341 -0
- package/src/Tokenizer.tsrx +340 -0
- package/src/Tokenizer.web.tsrx +376 -0
- package/src/Toolbar.macos.tsrx +57 -0
- package/src/Toolbar.tsrx +57 -0
- package/src/Toolbar.web.tsrx +70 -0
- package/src/Tooltip.mobile.tsrx +1 -1
- package/src/Tooltip.tsrx +2 -2
- package/src/Tooltip.web.test.tsrx +30 -0
- package/src/Tooltip.web.tsrx +21 -23
- package/src/TopNav.macos.tsrx +366 -0
- package/src/TopNav.tsrx +372 -0
- package/src/TopNav.web.tsrx +425 -0
- package/src/Tree.macos.tsrx +1 -1
- package/src/Typeahead.macos.tsrx +155 -0
- package/src/Typeahead.tsrx +163 -0
- package/src/Typeahead.web.tsrx +202 -0
- package/src/TypeaheadItem.macos.tsrx +33 -0
- package/src/TypeaheadItem.tsrx +39 -0
- package/src/TypeaheadItem.web.tsrx +36 -0
- package/src/User.macos.tsrx +1 -1
- package/src/User.tsrx +1 -1
- package/src/VStack.macos.tsrx +13 -0
- package/src/VStack.tsrx +14 -0
- package/src/View.macos.tsrx +4 -2
- package/src/View.tsrx +6 -2
- package/src/View.web.tsrx +6 -3
- package/src/VirtualList.macos.tsrx +94 -7
- package/src/VirtualList.mobile.test.tsrx +296 -0
- package/src/VirtualList.tsrx +323 -85
- package/src/VirtualList.web.test.tsrx +113 -0
- package/src/VirtualList.web.tsrx +143 -26
- package/src/VisuallyHidden.macos.tsrx +23 -0
- package/src/VisuallyHidden.tsrx +28 -0
- package/src/VisuallyHidden.web.tsrx +32 -0
- package/src/WebView.macos.tsrx +42 -3
- package/src/WebView.tsrx +11 -9
- package/src/WebView.web.tsrx +7 -3
- package/src/aliases.macos.tsrx +9 -14
- package/src/aliases.tsrx +9 -14
- package/src/aliases.web.tsrx +8 -13
- package/src/android/BottomNavigationView.android.tsrx +5 -2
- package/src/android/DrawerLayout.android.tsrx +0 -7
- package/src/android/MaterialDialog.android.tsrx +2 -1
- package/src/android/RecyclerView.android.tsrx +91 -12
- package/src/android/index.ts +6 -1
- package/src/android/openModal.android.ts +1 -1
- package/src/anim.macos.tsrx +20 -16
- package/src/anim.tsrx +20 -62
- package/src/anim.web.tsrx +17 -52
- package/src/animated-value.ts +154 -0
- package/src/animation-host.macos.ts +47 -0
- package/src/app-shell-config.ts +25 -0
- package/src/apply-native-modifiers.native.ts +4 -1
- package/src/bottom-sheet-context.ts +29 -0
- package/src/bottom-sheet-panel.macos.tsrx +21 -0
- package/src/bottom-sheet-service.macos.ts +72 -0
- package/src/{sheet-service.ts → bottom-sheet-service.ts} +37 -31
- package/src/bottom-sheet-service.web.ts +85 -0
- package/src/busy-lane.ts +39 -0
- package/src/button-group-context.ts +18 -0
- package/src/calendar-core.ts +457 -0
- package/src/calendar-hooks.tsrx +119 -0
- package/src/chat-context.ts +39 -0
- package/src/chat-group-items.ts +40 -0
- package/src/chat-tokenize.mobile.test.ts +29 -0
- package/src/chat-tokenize.ts +46 -0
- package/src/chat-tokens.tsrx +31 -0
- package/src/chat-tokens.web.test.tsrx +31 -0
- package/src/chat-tokens.web.tsrx +26 -0
- package/src/chatComposerSelection.web.ts +148 -0
- package/src/checkbox-accessibility.mobile.test.tsrx +32 -0
- package/src/child-array.ts +8 -13
- package/src/children.mobile.test.ts +228 -0
- package/src/children.web.test.tsrx +19 -0
- package/src/clipboard-write.macos.ts +9 -0
- package/src/clipboard-write.ts +14 -0
- package/src/clipboard-write.web.ts +10 -0
- package/src/code-highlight.web.ts +358 -0
- package/src/code-tokenizer.ts +582 -0
- package/src/codeblock-shared.tsrx +90 -0
- package/src/colorScheme.macos.ts +1 -0
- package/src/command-palette-accessibility.mobile.ts +18 -0
- package/src/command-palette-keys.macos.test.ts +92 -0
- package/src/command-palette-keys.macos.ts +75 -0
- package/src/command-palette-scroll.macos.test.ts +10 -0
- package/src/command-palette-scroll.macos.ts +4 -0
- package/src/command-palette-state.test.ts +244 -0
- package/src/command-palette-state.ts +281 -0
- package/src/content-display.mobile.test.ts +45 -0
- package/src/controls.macos.tsrx +57 -20
- package/src/data-driver.mobile.test.ts +154 -0
- package/src/data-lifecycle.mobile.test.ts +251 -0
- package/src/date-composition.macos.ts +16 -0
- package/src/date-composition.mobile.test.ts +26 -0
- package/src/date-composition.ts +17 -0
- package/src/date-composition.web.ts +6 -0
- package/src/date-entry.web.test.tsx +809 -0
- package/src/date-field-action.ts +17 -0
- package/src/date-keyboard.test.ts +86 -0
- package/src/date-keyboard.ts +153 -0
- package/src/date-messages.ts +29 -0
- package/src/datetime.test.ts +141 -0
- package/src/datetime.ts +890 -0
- package/src/dialog-context.ts +18 -0
- package/src/escape-props.ts +34 -3
- package/src/field-context.ts +101 -0
- package/src/form-layout-context.ts +14 -0
- package/src/forms-layout.mobile.test.ts +234 -0
- package/src/forms-layout.web.test.tsrx +318 -0
- package/src/grid-auto-placement.ts +54 -12
- package/src/grid-placement.ts +1 -1
- package/src/hosted-unsupported.macos.tsrx +2 -5
- package/src/icons.ts +131 -0
- package/src/index.macos.ts +364 -23
- package/src/index.mobile.ts +0 -1
- package/src/index.shared.ts +765 -31
- package/src/index.shared.web.ts +1004 -0
- package/src/index.web.ts +1 -1
- package/src/indicators.ts +61 -0
- package/src/input-group-context.ts +21 -0
- package/src/input-readiness.web.test.tsrx +82 -0
- package/src/ios/SideDrawer.ios.tsrx +0 -7
- package/src/ios/UIModal.ios.tsrx +1 -1
- package/src/ios/UITabBar.ios.tsrx +1 -0
- package/src/ios/UITableView.ios.tsrx +87 -9
- package/src/ios/index.ts +6 -1
- package/src/ios/openModal.ios.ts +1 -1
- package/src/is-renderable.ts +5 -0
- package/src/keyboard-inset.mobile.test.ts +62 -0
- package/src/{keyboard-inset.mobile.ts → keyboard-inset.ts} +64 -44
- package/src/keyboard-inset.web.ts +4 -0
- package/src/layer-dismissal.mobile.test.tsrx +163 -0
- package/src/layer-dismissal.tsrx +57 -0
- package/src/layer-dismissal.web.test.tsrx +205 -0
- package/src/layer-keys.ts +55 -0
- package/src/layer-keys.web.ts +30 -0
- package/src/layer-position.web.ts +71 -0
- package/src/layer-stack.ts +117 -0
- package/src/layout-shells.macos.tsrx +2 -6
- package/src/layout.macos.tsrx +110 -20
- package/src/list-context.ts +19 -0
- package/src/list-focus.web.tsrx +116 -0
- package/src/list-viewability-core.ts +146 -0
- package/src/list-viewability-observer.android.ts +127 -0
- package/src/list-viewability-observer.ios.ts +110 -0
- package/src/list-viewability-runtime.ts +156 -0
- package/src/list-viewability.mobile.test.ts +192 -0
- package/src/macos-extras.macos.tsrx +3 -1
- package/src/markdown-parse.ts +424 -0
- package/src/markdown-stream.mobile.test.ts +27 -0
- package/src/markdown-stream.test.ts +278 -0
- package/src/markdown-stream.ts +440 -0
- package/src/measure-bounds.macos.ts +24 -0
- package/src/menu-context.ts +11 -0
- package/src/menu-family.mobile.test.tsrx +110 -0
- package/src/menu-family.web.test.tsrx +171 -0
- package/src/metadata-list-context.ts +14 -0
- package/src/modal-focus.web.test.tsrx +87 -0
- package/src/modal-focus.web.ts +225 -0
- package/src/native/index.ts +2 -2
- package/src/native-color.mobile.tsrx +5 -0
- package/src/native-color.ts +2 -0
- package/src/nav-contexts.ts +127 -0
- package/src/nav-family.web.test.tsrx +252 -0
- package/src/nav-href.macos.ts +21 -0
- package/src/nav-href.ts +30 -0
- package/src/nav-href.web.ts +16 -0
- package/src/navigation-request.ts +37 -0
- package/src/outline-dom.macos.tsrx +26 -0
- package/src/outline-dom.tsrx +32 -0
- package/src/outline-dom.web.tsrx +63 -0
- package/src/outline-hooks.tsrx +21 -0
- package/src/outline-utils.ts +181 -0
- package/src/outline-view-tree.ts +101 -0
- package/src/overflow-math.ts +237 -0
- package/src/overlay-lifecycle.mobile.test.ts +331 -0
- package/src/overlay-lifetime.ts +116 -0
- package/src/pan.macos.tsrx +19 -0
- package/src/pan.mobile.test.tsrx +116 -0
- package/src/pan.tsrx +20 -2
- package/src/pan.web.tsrx +35 -7
- package/src/platform-list.mobile.test.tsrx +99 -0
- package/src/platformProps.ts +1 -0
- package/src/popover-position.test.ts +68 -0
- package/src/popover-position.ts +101 -6
- package/src/popover.mobile.test.ts +10 -2
- package/src/power-search-config.test.ts +50 -0
- package/src/power-search-config.ts +893 -0
- package/src/power-search-strings.ts +88 -0
- package/src/presentation.macos.tsrx +59 -0
- package/src/pressable-accessibility.mobile.test.ts +30 -0
- package/src/props.ts +5313 -247
- package/src/query-cache.mobile.test.ts +152 -0
- package/src/query-cache.test.ts +390 -0
- package/src/query-cache.ts +721 -0
- package/src/query-storage.macos.ts +9 -0
- package/src/query-storage.ts +33 -0
- package/src/query-storage.web.ts +31 -0
- package/src/ref-list.ts +35 -0
- package/src/ref-list.web.test.ts +32 -0
- package/src/refresh.ts +6 -1
- package/src/refresh.web.test.ts +77 -77
- package/src/refs.mobile.test.tsrx +105 -0
- package/src/refs.web.test.tsrx +82 -0
- package/src/relative-position.ts +4 -0
- package/src/relative-position.windows.ts +19 -0
- package/src/resize-basis.macos.ts +31 -0
- package/src/resize-basis.ts +29 -0
- package/src/resize-basis.web.ts +37 -0
- package/src/resize-math.ts +121 -0
- package/src/resize-persist.macos.ts +39 -0
- package/src/resize-persist.ts +42 -0
- package/src/resize-persist.web.ts +38 -0
- package/src/resize-state.ts +338 -0
- package/src/root-layout.web.ts +16 -0
- package/src/route-android.test.ts +162 -0
- package/src/route-history.web.test.ts +116 -0
- package/src/route-host.ts +1 -0
- package/src/route-navigation.web.test.ts +173 -0
- package/src/route-scroll.web.test.ts +142 -0
- package/src/route-table.test.ts +443 -10
- package/src/route-table.ts +326 -59
- package/src/route.macos.ts +64 -13
- package/src/route.ts +66 -26
- package/src/route.web.ts +260 -38
- package/src/safe-url.test.ts +14 -0
- package/src/safe-url.ts +28 -0
- package/src/scheme-colors.ts +53 -0
- package/src/select-options.test.ts +24 -0
- package/src/select-options.ts +43 -0
- package/src/sheet-detents.ts +60 -10
- package/src/sheet-detents.web.ts +54 -9
- package/src/sheet-snap.test.ts +23 -23
- package/src/sheet-snap.ts +51 -1
- package/src/spacing.ts +6 -0
- package/src/stack-layout.ts +183 -0
- package/src/styled.tsrx +1 -1
- package/src/surfaces.macos.tsrx +3 -11
- package/src/svg-glyph.ts +19 -0
- package/src/svg-image.macos.ts +33 -0
- package/src/svg-source.ts +39 -0
- package/src/svg.mobile.ts +2 -68
- package/src/svg.ts +1 -0
- package/src/svg.windows.ts +139 -0
- package/src/tablist.web.test.tsrx +165 -0
- package/src/tap-to-blur.ios.ts +75 -52
- package/src/tap-to-blur.mobile.ts +23 -15
- package/src/tap-to-blur.ts +4 -0
- package/src/text-controls.macos.tsrx +31 -5
- package/src/text-focus.ts +12 -0
- package/src/text-input.mobile.test.ts +97 -0
- package/src/text-role.ts +69 -0
- package/src/text-slot.tsrx +26 -0
- package/src/text-slot.web.tsrx +4 -0
- package/src/text-write.ts +21 -11
- package/src/theme/chrome.css +2440 -0
- package/src/theme/colorScheme.linux.ts +2 -4
- package/src/theme/colorScheme.web.ts +51 -4
- package/src/theme/theme-scheme.macos.ts +8 -2
- package/src/theme/tokens.css +3929 -1753
- package/src/time-format.ts +435 -0
- package/src/timer-format.ts +85 -0
- package/src/toast-context.ts +18 -0
- package/src/toast-service.macos.tsrx +43 -0
- package/src/toast-service.tsrx +289 -0
- package/src/toast-service.web.tsrx +55 -0
- package/src/toast-store.test.ts +77 -0
- package/src/toast-store.ts +113 -0
- package/src/toast-viewport.macos.tsrx +78 -0
- package/src/toast-viewport.tsrx +45 -0
- package/src/toast-viewport.web.tsrx +240 -0
- package/src/toggle-button-group-context.ts +21 -0
- package/src/translate.macos.ts +4 -1
- package/src/translate.web.ts +1 -1
- package/src/typeahead-source.test.ts +34 -0
- package/src/typeahead-source.ts +99 -0
- package/src/unsupported.macos.tsrx +1 -1
- package/src/use-hover-card.mobile.tsrx +126 -0
- package/src/use-hover-card.tsrx +153 -0
- package/src/use-hover-card.web.tsrx +282 -0
- package/src/use-imperative-alert-dialog.macos.tsrx +34 -0
- package/src/use-imperative-alert-dialog.tsrx +38 -0
- package/src/use-imperative-alert-dialog.web.tsrx +37 -0
- package/src/use-imperative-dialog.macos.tsrx +34 -0
- package/src/use-imperative-dialog.tsrx +38 -0
- package/src/use-imperative-dialog.web.tsrx +37 -0
- package/src/use-layer-host.mobile.test.tsrx +91 -0
- package/src/use-layer.mobile.test.tsrx +132 -0
- package/src/use-layer.mobile.tsrx +228 -0
- package/src/use-layer.tsrx +132 -0
- package/src/use-layer.web.test.tsrx +77 -0
- package/src/use-layer.web.tsrx +199 -0
- package/src/use-lightbox.macos.tsrx +67 -0
- package/src/use-lightbox.tsrx +68 -0
- package/src/use-lightbox.web.tsrx +71 -0
- package/src/use-scrollable-area.macos.tsrx +59 -0
- package/src/use-scrollable-area.tsrx +110 -0
- package/src/use-scrollable-area.web.tsrx +174 -0
- package/src/useChatComposerTokens.tsrx +61 -0
- package/src/useChatComposerTokens.web.tsrx +196 -0
- package/src/useChatDictation.tsrx +10 -0
- package/src/useChatDictation.web.tsrx +340 -0
- package/src/useChatNewMessages.tsrx +62 -0
- package/src/useChatNewMessages.web.tsrx +60 -0
- package/src/useChatPasteAsToken.tsrx +36 -0
- package/src/useChatPasteAsToken.web.tsrx +32 -0
- package/src/useChatStreamScroll.tsrx +147 -0
- package/src/useChatStreamScroll.web.tsrx +247 -0
- package/src/useMeasure.macos.tsrx +37 -18
- package/src/useMeasure.tsrx +2 -2
- package/src/useMeasure.web.tsrx +2 -2
- package/src/useMediaQuery.web.tsrx +28 -0
- package/src/useResizable.macos.tsrx +95 -0
- package/src/useResizable.tsrx +95 -0
- package/src/useResizable.web.tsrx +94 -0
- package/src/useSelect.tsx +210 -0
- package/src/useSpeechRecognition.tsrx +33 -0
- package/src/useSpeechRecognition.web.tsrx +293 -0
- package/src/useTriggerMenu.tsrx +303 -0
- package/src/useTriggerMenu.web.tsrx +406 -0
- package/src/vendor/ui-svg/{index.android.ts → src/index.android.ts} +35 -23
- package/src/virtual-list-cell-pool.test.ts +53 -0
- package/src/virtual-list-cell-pool.ts +81 -0
- package/src/virtual-list-layout.test.ts +11 -8
- package/src/virtual-list-layout.ts +4 -8
- package/src/web/index.ts +6 -6
- package/src/windows.linux.ts +7 -2
- package/src/windows.macos.ts +1 -0
- package/types/generated/.tsrx-typegen-manifest.json +312 -25
- package/types/generated/AlertDialog.d.ts +6 -0
- package/types/generated/AlertDialog.web.d.ts +7 -0
- package/types/generated/AppShell.d.ts +7 -0
- package/types/generated/AppShell.web.d.ts +7 -0
- package/types/generated/AspectRatio.d.ts +9 -0
- package/types/generated/AspectRatio.web.d.ts +5 -0
- package/types/generated/AvatarGroup.web.d.ts +4 -2
- package/types/generated/BaseTypeahead.d.ts +7 -0
- package/types/generated/BaseTypeahead.web.d.ts +6 -0
- package/types/generated/Blockquote.d.ts +5 -0
- package/types/generated/Blockquote.web.d.ts +7 -0
- package/types/generated/BottomSheet.d.ts +25 -0
- package/types/generated/BottomSheet.web.d.ts +10 -0
- package/types/generated/Breadcrumb.web.d.ts +0 -1
- package/types/generated/Button.d.ts +8 -4
- package/types/generated/Button.web.d.ts +8 -4
- package/types/generated/ButtonGroup.d.ts +3 -0
- package/types/generated/ButtonGroup.web.d.ts +2 -0
- package/types/generated/Calendar.d.ts +5 -0
- package/types/generated/Calendar.web.d.ts +6 -0
- package/types/generated/Carousel.d.ts +7 -0
- package/types/generated/Carousel.web.d.ts +9 -0
- package/types/generated/Center.d.ts +5 -0
- package/types/generated/Center.web.d.ts +5 -0
- package/types/generated/ChatComposer.d.ts +7 -0
- package/types/generated/ChatComposer.web.d.ts +6 -0
- package/types/generated/ChatComposerDrawer.d.ts +7 -0
- package/types/generated/ChatComposerDrawer.web.d.ts +6 -0
- package/types/generated/ChatComposerInput.d.ts +11 -0
- package/types/generated/ChatComposerInput.web.d.ts +10 -0
- package/types/generated/ChatDictationButton.d.ts +7 -0
- package/types/generated/ChatDictationButton.web.d.ts +7 -0
- package/types/generated/ChatLayout.d.ts +8 -0
- package/types/generated/ChatLayout.web.d.ts +9 -0
- package/types/generated/ChatLayoutScrollButton.d.ts +7 -0
- package/types/generated/ChatLayoutScrollButton.web.d.ts +5 -0
- package/types/generated/ChatMessage.d.ts +8 -0
- package/types/generated/ChatMessage.web.d.ts +6 -0
- package/types/generated/ChatMessageBubble.d.ts +9 -0
- package/types/generated/ChatMessageBubble.web.d.ts +7 -0
- package/types/generated/ChatMessageList.d.ts +7 -0
- package/types/generated/ChatMessageList.web.d.ts +7 -0
- package/types/generated/ChatMessageMetadata.d.ts +6 -0
- package/types/generated/ChatMessageMetadata.web.d.ts +6 -0
- package/types/generated/ChatPastedTextToken.web.d.ts +7 -0
- package/types/generated/ChatSendButton.d.ts +6 -0
- package/types/generated/ChatSendButton.web.d.ts +7 -0
- package/types/generated/ChatSystemMessage.d.ts +5 -0
- package/types/generated/ChatSystemMessage.web.d.ts +5 -0
- package/types/generated/ChatTokenizedText.d.ts +7 -0
- package/types/generated/ChatTokenizedText.web.d.ts +6 -0
- package/types/generated/ChatToolCalls.d.ts +5 -0
- package/types/generated/ChatToolCalls.web.d.ts +5 -0
- package/types/generated/CheckIndicator.d.ts +6 -0
- package/types/generated/CheckIndicator.web.d.ts +5 -0
- package/types/generated/Checkbox.d.ts +1 -1
- package/types/generated/Checkbox.web.d.ts +1 -1
- package/types/generated/CheckboxGroup.d.ts +1 -1
- package/types/generated/CheckboxGroup.web.d.ts +1 -1
- package/types/generated/CheckboxIndicator.d.ts +6 -0
- package/types/generated/CheckboxIndicator.web.d.ts +5 -0
- package/types/generated/Citation.d.ts +5 -0
- package/types/generated/Citation.web.d.ts +8 -0
- package/types/generated/ClickableCard.d.ts +3 -0
- package/types/generated/ClickableCard.web.d.ts +3 -0
- package/types/generated/Code.d.ts +8 -0
- package/types/generated/Code.web.d.ts +6 -0
- package/types/generated/CodeBlock.d.ts +8 -0
- package/types/generated/CodeBlock.web.d.ts +8 -0
- package/types/generated/CommandPalette.d.ts +3 -4
- package/types/generated/CommandPalette.web.d.ts +3 -4
- package/types/generated/ComplexSelector.d.ts +3 -0
- package/types/generated/ComplexSelector.web.d.ts +3 -0
- package/types/generated/DateInput.d.ts +8 -0
- package/types/generated/DateInput.web.d.ts +7 -0
- package/types/generated/DateRangeInput.d.ts +6 -0
- package/types/generated/DateRangeInput.web.d.ts +5 -0
- package/types/generated/DateTimeInput.d.ts +6 -0
- package/types/generated/DateTimeInput.web.d.ts +7 -0
- package/types/generated/Dialog.d.ts +11 -0
- package/types/generated/Dialog.web.d.ts +11 -0
- package/types/generated/FormField.d.ts +4 -3
- package/types/generated/FormField.web.d.ts +4 -3
- package/types/generated/FormLayout.d.ts +8 -0
- package/types/generated/FormLayout.web.d.ts +7 -0
- package/types/generated/HStack.d.ts +5 -0
- package/types/generated/HoverCard.d.ts +8 -0
- package/types/generated/HoverCard.mobile.d.ts +7 -0
- package/types/generated/HoverCard.web.d.ts +8 -0
- package/types/generated/IconButton.d.ts +3 -0
- package/types/generated/IconButton.web.d.ts +3 -0
- package/types/generated/InputGroup.d.ts +10 -0
- package/types/generated/InputGroup.web.d.ts +10 -0
- package/types/generated/InputRating.d.ts +1 -1
- package/types/generated/InputRating.web.d.ts +1 -1
- package/types/generated/Item.d.ts +3 -0
- package/types/generated/Item.web.d.ts +3 -0
- package/types/generated/Kbd.d.ts +0 -1
- package/types/generated/KeyboardAvoiding.d.ts +3 -0
- package/types/generated/KeyboardAvoiding.web.d.ts +2 -0
- package/types/generated/Lightbox.d.ts +7 -0
- package/types/generated/Lightbox.web.d.ts +5 -0
- package/types/generated/List.d.ts +8 -0
- package/types/generated/List.web.d.ts +6 -0
- package/types/generated/ListItem.d.ts +8 -3
- package/types/generated/ListItem.web.d.ts +8 -3
- package/types/generated/Markdown.d.ts +15 -0
- package/types/generated/MenuParts.d.ts +9 -0
- package/types/generated/MenuParts.web.d.ts +9 -0
- package/types/generated/MenuSurface.d.ts +4 -0
- package/types/generated/MenuSurface.web.d.ts +3 -0
- package/types/generated/MetadataList.d.ts +7 -0
- package/types/generated/MetadataList.web.d.ts +10 -0
- package/types/generated/MetadataListItem.d.ts +5 -0
- package/types/generated/MetadataListItem.web.d.ts +5 -0
- package/types/generated/Meter.d.ts +1 -1
- package/types/generated/MobileNav.d.ts +15 -0
- package/types/generated/MobileNav.web.d.ts +11 -0
- package/types/generated/MoreMenu.d.ts +2 -0
- package/types/generated/MoreMenu.web.d.ts +2 -0
- package/types/generated/NavIcon.d.ts +6 -0
- package/types/generated/NavIcon.web.d.ts +6 -0
- package/types/generated/NavMenu.d.ts +11 -0
- package/types/generated/NavMenu.web.d.ts +12 -0
- package/types/generated/NavigationMenu.d.ts +3 -3
- package/types/generated/NavigationMenu.web.d.ts +4 -4
- package/types/generated/Outline.d.ts +7 -0
- package/types/generated/Outline.web.d.ts +7 -0
- package/types/generated/OverflowList.d.ts +6 -0
- package/types/generated/OverflowList.web.d.ts +9 -0
- package/types/generated/PowerSearch.d.ts +7 -0
- package/types/generated/PowerSearch.web.d.ts +6 -0
- package/types/generated/PowerSearchFilterEditor.d.ts +12 -0
- package/types/generated/PowerSearchFilterEditor.web.d.ts +2 -0
- package/types/generated/PowerSearchToken.d.ts +7 -0
- package/types/generated/PowerSearchToken.web.d.ts +7 -0
- package/types/generated/ProgressBar.d.ts +7 -0
- package/types/generated/ProgressBar.web.d.ts +6 -0
- package/types/generated/RadioGroup.d.ts +1 -1
- package/types/generated/RadioGroup.web.d.ts +1 -1
- package/types/generated/RadioIndicator.d.ts +5 -0
- package/types/generated/RadioIndicator.web.d.ts +4 -0
- package/types/generated/Resizable.d.ts +2 -0
- package/types/generated/ResizeHandle.d.ts +7 -0
- package/types/generated/ResizeHandle.web.d.ts +7 -0
- package/types/generated/RouteBoundary.d.ts +13 -0
- package/types/generated/RouteBoundary.web.d.ts +8 -0
- package/types/generated/{RouteHost.mobile.d.ts → RouteHost.d.ts} +4 -0
- package/types/generated/SafeArea.d.ts +1 -0
- package/types/generated/ScrollableArea.d.ts +8 -0
- package/types/generated/ScrollableArea.web.d.ts +8 -0
- package/types/generated/Section.d.ts +5 -0
- package/types/generated/Section.web.d.ts +9 -0
- package/types/generated/SegmentedControl.d.ts +1 -1
- package/types/generated/SegmentedControl.web.d.ts +1 -1
- package/types/generated/Select.d.ts +3 -6
- package/types/generated/Select.web.d.ts +3 -6
- package/types/generated/SelectableCard.d.ts +3 -0
- package/types/generated/SelectableCard.web.d.ts +3 -0
- package/types/generated/SideNav.d.ts +19 -0
- package/types/generated/SideNav.web.d.ts +22 -0
- package/types/generated/Stack.d.ts +5 -1
- package/types/generated/Stack.web.d.ts +3 -1
- package/types/generated/StackItem.d.ts +5 -0
- package/types/generated/StackItem.web.d.ts +6 -0
- package/types/generated/StatusDot.d.ts +6 -0
- package/types/generated/StatusDot.web.d.ts +7 -0
- package/types/generated/Switch.d.ts +1 -1
- package/types/generated/Switch.web.d.ts +1 -1
- package/types/generated/TabList.d.ts +18 -0
- package/types/generated/TabList.web.d.ts +15 -0
- package/types/generated/TextArea.d.ts +3 -3
- package/types/generated/TextArea.web.d.ts +2 -2
- package/types/generated/TextInput.d.ts +3 -4
- package/types/generated/Thumbnail.d.ts +6 -0
- package/types/generated/Thumbnail.web.d.ts +8 -0
- package/types/generated/TimeInput.d.ts +8 -0
- package/types/generated/TimeInput.web.d.ts +6 -0
- package/types/generated/TimeWheelPanel.d.ts +16 -0
- package/types/generated/TimeWheelPanel.web.d.ts +16 -0
- package/types/generated/Timer.d.ts +5 -0
- package/types/generated/Timer.web.d.ts +6 -0
- package/types/generated/Timestamp.d.ts +8 -0
- package/types/generated/Timestamp.web.d.ts +7 -0
- package/types/generated/Toast.d.ts +7 -0
- package/types/generated/Toast.web.d.ts +9 -0
- package/types/generated/ToggleButton.d.ts +3 -0
- package/types/generated/ToggleButton.web.d.ts +3 -0
- package/types/generated/Token.d.ts +4 -0
- package/types/generated/Token.web.d.ts +7 -0
- package/types/generated/Tokenizer.d.ts +6 -0
- package/types/generated/Tokenizer.web.d.ts +5 -0
- package/types/generated/Toolbar.d.ts +6 -0
- package/types/generated/Toolbar.web.d.ts +5 -0
- package/types/generated/Tooltip.web.d.ts +2 -2
- package/types/generated/TopNav.d.ts +25 -0
- package/types/generated/TopNav.web.d.ts +23 -0
- package/types/generated/Typeahead.d.ts +6 -0
- package/types/generated/Typeahead.web.d.ts +6 -0
- package/types/generated/TypeaheadItem.d.ts +4 -0
- package/types/generated/TypeaheadItem.web.d.ts +5 -0
- package/types/generated/VStack.d.ts +5 -0
- package/types/generated/View.web.d.ts +1 -1
- package/types/generated/VirtualList.d.ts +3 -3
- package/types/generated/VisuallyHidden.d.ts +6 -0
- package/types/generated/VisuallyHidden.web.d.ts +6 -0
- package/types/generated/aliases.d.ts +2 -6
- package/types/generated/aliases.web.d.ts +2 -6
- package/types/generated/android/DrawerLayout.android.d.ts +0 -6
- package/types/generated/android/RecyclerView.android.d.ts +8 -7
- package/types/generated/android/index.d.ts +1 -1
- package/types/generated/anim.d.ts +1 -8
- package/types/generated/anim.web.d.ts +1 -1
- package/types/generated/animated-value.d.ts +12 -0
- package/types/generated/app-shell-config.d.ts +5 -0
- package/types/generated/bottom-sheet-context.d.ts +24 -0
- package/types/generated/bottom-sheet-service.d.ts +13 -0
- package/types/generated/bottom-sheet-service.web.d.ts +7 -0
- package/types/generated/busy-lane.d.ts +15 -0
- package/types/generated/button-group-context.d.ts +12 -0
- package/types/generated/calendar-core.d.ts +111 -0
- package/types/generated/calendar-hooks.d.ts +37 -0
- package/types/generated/chat-context.d.ts +17 -0
- package/types/generated/chat-group-items.d.ts +8 -0
- package/types/generated/chat-tokenize.d.ts +14 -0
- package/types/generated/chat-tokens.d.ts +11 -0
- package/types/generated/chat-tokens.web.d.ts +11 -0
- package/types/generated/chatComposerSelection.web.d.ts +13 -0
- package/types/generated/child-array.d.ts +3 -2
- package/types/generated/clipboard-write.d.ts +2 -0
- package/types/generated/clipboard-write.web.d.ts +3 -0
- package/types/generated/code-highlight.web.d.ts +31 -0
- package/types/generated/code-tokenizer.d.ts +50 -0
- package/types/generated/codeblock-shared.d.ts +11 -0
- package/types/generated/command-palette-accessibility.mobile.d.ts +2 -0
- package/types/generated/command-palette-state.d.ts +27 -0
- package/types/generated/date-composition.d.ts +5 -0
- package/types/generated/date-composition.web.d.ts +4 -0
- package/types/generated/date-field-action.d.ts +4 -0
- package/types/generated/date-keyboard.d.ts +27 -0
- package/types/generated/date-messages.d.ts +2 -0
- package/types/generated/datetime.d.ts +114 -0
- package/types/generated/dialog-context.d.ts +14 -0
- package/types/generated/escape-props.d.ts +1 -0
- package/types/generated/field-context.d.ts +38 -0
- package/types/generated/form-layout-context.d.ts +11 -0
- package/types/generated/index.mobile.d.ts +0 -1
- package/types/generated/index.shared.d.ts +174 -30
- package/types/generated/index.shared.web.d.ts +255 -0
- package/types/generated/index.web.d.ts +1 -1
- package/types/generated/indicators.d.ts +23 -0
- package/types/generated/input-group-context.d.ts +16 -0
- package/types/generated/ios/SideDrawer.ios.d.ts +0 -6
- package/types/generated/ios/UITableView.ios.d.ts +4 -4
- package/types/generated/ios/index.d.ts +1 -1
- package/types/generated/is-renderable.d.ts +3 -0
- package/types/generated/{keyboard-inset.mobile.d.ts → keyboard-inset.d.ts} +1 -1
- package/types/generated/keyboard-inset.web.d.ts +2 -0
- package/types/generated/layer-dismissal.d.ts +15 -0
- package/types/generated/layer-keys.d.ts +1 -0
- package/types/generated/layer-keys.web.d.ts +1 -0
- package/types/generated/layer-position.web.d.ts +4 -0
- package/types/generated/layer-stack.d.ts +26 -0
- package/types/generated/list-context.d.ts +13 -0
- package/types/generated/list-focus.web.d.ts +26 -0
- package/types/generated/list-viewability-core.d.ts +13 -0
- package/types/generated/list-viewability-observer.android.d.ts +8 -0
- package/types/generated/list-viewability-observer.ios.d.ts +8 -0
- package/types/generated/list-viewability-runtime.d.ts +37 -0
- package/types/generated/markdown-parse.d.ts +28 -0
- package/types/generated/markdown-stream.d.ts +61 -0
- package/types/generated/menu-context.d.ts +6 -0
- package/types/generated/metadata-list-context.d.ts +9 -0
- package/types/generated/modal-focus.web.d.ts +4 -0
- package/types/generated/native/index.d.ts +2 -2
- package/types/generated/native-color.d.ts +2 -0
- package/types/generated/native-color.mobile.d.ts +4 -0
- package/types/generated/nav-contexts.d.ts +49 -0
- package/types/generated/nav-href.d.ts +1 -0
- package/types/generated/nav-href.web.d.ts +4 -0
- package/types/generated/navigation-request.d.ts +10 -0
- package/types/generated/outline-dom.d.ts +8 -0
- package/types/generated/outline-dom.web.d.ts +8 -0
- package/types/generated/outline-hooks.d.ts +9 -0
- package/types/generated/outline-utils.d.ts +36 -0
- package/types/generated/outline-view-tree.d.ts +7 -0
- package/types/generated/overflow-math.d.ts +31 -0
- package/types/generated/overlay-lifetime.d.ts +19 -0
- package/types/generated/popover-position.d.ts +17 -3
- package/types/generated/power-search-config.d.ts +57 -0
- package/types/generated/power-search-strings.d.ts +12 -0
- package/types/generated/props.d.ts +4681 -187
- package/types/generated/query-cache.d.ts +129 -0
- package/types/generated/query-storage.d.ts +9 -0
- package/types/generated/query-storage.web.d.ts +8 -0
- package/types/generated/ref-list.d.ts +7 -0
- package/types/generated/relative-position.d.ts +5 -0
- package/types/generated/resize-basis.d.ts +5 -0
- package/types/generated/resize-basis.web.d.ts +6 -0
- package/types/generated/resize-math.d.ts +27 -0
- package/types/generated/resize-persist.d.ts +7 -0
- package/types/generated/resize-persist.web.d.ts +9 -0
- package/types/generated/resize-state.d.ts +39 -0
- package/types/generated/root-layout.web.d.ts +6 -0
- package/types/generated/route-host.d.ts +1 -0
- package/types/generated/route-table.d.ts +35 -12
- package/types/generated/route.d.ts +3 -0
- package/types/generated/route.web.d.ts +3 -0
- package/types/generated/safe-url.d.ts +4 -0
- package/types/generated/scheme-colors.d.ts +11 -0
- package/types/generated/select-options.d.ts +10 -0
- package/types/generated/sheet-detents.d.ts +13 -2
- package/types/generated/sheet-detents.web.d.ts +12 -2
- package/types/generated/sheet-snap.d.ts +8 -0
- package/types/generated/spacing.d.ts +4 -0
- package/types/generated/stack-layout.d.ts +40 -0
- package/types/generated/styled.d.ts +3 -1
- package/types/generated/svg-glyph.d.ts +6 -0
- package/types/generated/svg-source.d.ts +8 -0
- package/types/generated/svg.d.ts +1 -0
- package/types/generated/svg.mobile.d.ts +1 -23
- package/types/generated/tap-to-blur.d.ts +2 -0
- package/types/generated/text-focus.d.ts +3 -0
- package/types/generated/text-role.d.ts +8 -0
- package/types/generated/text-slot.d.ts +6 -0
- package/types/generated/text-slot.web.d.ts +6 -0
- package/types/generated/text-write.d.ts +3 -1
- package/types/generated/theme/colorScheme.web.d.ts +5 -0
- package/types/generated/time-format.d.ts +40 -0
- package/types/generated/timer-format.d.ts +13 -0
- package/types/generated/toast-context.d.ts +14 -0
- package/types/generated/toast-service.d.ts +24 -0
- package/types/generated/toast-service.web.d.ts +8 -0
- package/types/generated/toast-store.d.ts +37 -0
- package/types/generated/toast-viewport.d.ts +8 -0
- package/types/generated/toast-viewport.web.d.ts +15 -0
- package/types/generated/toggle-button-group-context.d.ts +13 -0
- package/types/generated/translate.web.d.ts +1 -1
- package/types/generated/typeahead-source.d.ts +20 -0
- package/types/generated/use-hover-card.d.ts +8 -0
- package/types/generated/use-hover-card.mobile.d.ts +9 -0
- package/types/generated/use-hover-card.web.d.ts +10 -0
- package/types/generated/use-imperative-alert-dialog.d.ts +6 -0
- package/types/generated/use-imperative-alert-dialog.web.d.ts +6 -0
- package/types/generated/use-imperative-dialog.d.ts +6 -0
- package/types/generated/use-imperative-dialog.web.d.ts +6 -0
- package/types/generated/use-layer.d.ts +8 -0
- package/types/generated/use-layer.mobile.d.ts +7 -0
- package/types/generated/use-layer.web.d.ts +9 -0
- package/types/generated/use-lightbox.d.ts +3 -0
- package/types/generated/use-lightbox.web.d.ts +5 -0
- package/types/generated/use-scrollable-area.d.ts +10 -0
- package/types/generated/use-scrollable-area.web.d.ts +9 -0
- package/types/generated/useChatComposerTokens.d.ts +9 -0
- package/types/generated/useChatComposerTokens.web.d.ts +10 -0
- package/types/generated/useChatDictation.d.ts +6 -0
- package/types/generated/useChatDictation.web.d.ts +6 -0
- package/types/generated/useChatNewMessages.d.ts +6 -0
- package/types/generated/useChatNewMessages.web.d.ts +6 -0
- package/types/generated/useChatPasteAsToken.d.ts +7 -0
- package/types/generated/useChatPasteAsToken.web.d.ts +4 -0
- package/types/generated/useChatStreamScroll.d.ts +7 -0
- package/types/generated/useChatStreamScroll.web.d.ts +6 -0
- package/types/generated/useMediaQuery.web.d.ts +6 -0
- package/types/generated/useResizable.d.ts +8 -0
- package/types/generated/useResizable.web.d.ts +8 -0
- package/types/generated/useSelect.d.ts +25 -0
- package/types/generated/useSpeechRecognition.d.ts +6 -0
- package/types/generated/useSpeechRecognition.web.d.ts +5 -0
- package/types/generated/useTriggerMenu.d.ts +72 -0
- package/types/generated/useTriggerMenu.web.d.ts +52 -0
- package/types/generated/virtual-list-cell-pool.d.ts +18 -0
- package/types/generated/web/index.d.ts +2 -2
- package/types/index.macos.d.ts +336 -30
- package/dist/native/Hoverable.mobile.tsrx.js +0 -39
- package/dist/native/InputTags.tsrx.js +0 -131
- package/dist/native/Row.tsrx.js +0 -98
- package/dist/native/ScrollView.tsrx.js +0 -233
- package/dist/native/Sheet.tsrx.js +0 -124
- package/dist/native/route-host.mobile.js +0 -2
- package/dist/native/sheet-service.js +0 -92
- package/dist/native/toast-anchor.tsrx.js +0 -185
- package/dist/web/Hoverable.web.tsrx.js +0 -151
- package/dist/web/InputTags.web.tsrx.js +0 -122
- package/dist/web/Row.web.tsrx.js +0 -250
- package/dist/web/ScrollBox.web.tsrx.js +0 -32
- package/dist/web/ScrollView.web.tsrx.js +0 -388
- package/dist/web/Sheet.web.tsrx.js +0 -81
- package/dist/web/index.shared.js +0 -92
- package/dist/web/sheet-service.web.js +0 -50
- package/dist/web/toast-anchor.web.tsrx.js +0 -142
- package/src/Hoverable.mobile.tsrx +0 -21
- package/src/Hoverable.tsrx +0 -113
- package/src/Hoverable.web.tsrx +0 -98
- package/src/InputTags.macos.tsrx +0 -49
- package/src/InputTags.tsrx +0 -49
- package/src/InputTags.web.tsrx +0 -49
- package/src/ScrollBox.tsrx +0 -8
- package/src/ScrollBox.web.tsrx +0 -7
- package/src/ScrollView.macos.tsrx +0 -19
- package/src/ScrollView.tsrx +0 -117
- package/src/ScrollView.web.tsrx +0 -109
- package/src/Sheet.macos.tsrx +0 -15
- package/src/Sheet.tsrx +0 -122
- package/src/Sheet.web.tsrx +0 -56
- package/src/route-host.mobile.ts +0 -1
- package/src/sheet-service.macos.ts +0 -60
- package/src/sheet-service.web.ts +0 -64
- package/src/toast-anchor.macos.tsrx +0 -3
- package/src/toast-anchor.tsrx +0 -122
- package/src/toast-anchor.web.tsrx +0 -92
- package/src/toast.tsrx +0 -90
- package/src/toast.web.tsrx +0 -50
- package/types/generated/Hoverable.d.ts +0 -10
- package/types/generated/Hoverable.mobile.d.ts +0 -8
- package/types/generated/Hoverable.web.d.ts +0 -9
- package/types/generated/InputTags.d.ts +0 -4
- package/types/generated/InputTags.web.d.ts +0 -5
- package/types/generated/ScrollBox.d.ts +0 -3
- package/types/generated/ScrollBox.web.d.ts +0 -3
- package/types/generated/ScrollView.d.ts +0 -7
- package/types/generated/ScrollView.web.d.ts +0 -6
- package/types/generated/Sheet.d.ts +0 -5
- package/types/generated/Sheet.web.d.ts +0 -7
- package/types/generated/route-host.mobile.d.ts +0 -1
- package/types/generated/sheet-service.d.ts +0 -11
- package/types/generated/sheet-service.web.d.ts +0 -6
- package/types/generated/toast-anchor.d.ts +0 -4
- package/types/generated/toast-anchor.web.d.ts +0 -4
- package/types/generated/toast.d.ts +0 -3
- package/types/generated/toast.web.d.ts +0 -3
- /package/src/{modal-presenter.mobile.ts → modal-presenter.ts} +0 -0
- /package/src/{root-layout.mobile.ts → root-layout.ts} +0 -0
- /package/src/vendor/ui-svg/{index.common.ts → src/index.common.ts} +0 -0
- /package/src/vendor/ui-svg/{index.ios.ts → src/index.ios.ts} +0 -0
- /package/src/vendor/ui-svg/{index.ts → src/index.ts} +0 -0
- /package/src/vendor/ui-svg/{typings → src/typings}/SVGKit.d.ts +0 -0
- /package/src/vendor/ui-svg/{typings → src/typings}/android.d.ts +0 -0
- /package/src/vendor/ui-svg/{typings → src/typings}/ios.d.ts +0 -0
- /package/types/generated/{modal-presenter.mobile.d.ts → modal-presenter.d.ts} +0 -0
- /package/types/generated/{root-layout.mobile.d.ts → root-layout.d.ts} +0 -0
- /package/types/generated/vendor/ui-svg/{index.common.d.ts → src/index.common.d.ts} +0 -0
- /package/types/generated/vendor/ui-svg/{index.d.ts → src/index.d.ts} +0 -0
- /package/types/generated/vendor/ui-svg/{index.ios.d.ts → src/index.ios.d.ts} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { applyEscapeProps } from "./escape-props.web.js";
|
|
2
2
|
import { Pressable } from "./Pressable.web.tsrx.js";
|
|
3
3
|
import { TextInput } from "./TextInput.web.tsrx.js";
|
|
4
|
-
import { __s, bag0,
|
|
4
|
+
import { __s, bag0, bag8, clone, componentSlotVoid, hookSlots, markChildrenBlock, queueRefAttach, queueRefDetach, setAriaAttribute, setStyle, template, useState } from "octane";
|
|
5
5
|
import { bindSignalAttribute, enableSignalBindings, replaceRef, setPlainAttribute, updateFreshClassName } from "octane/internal/client";
|
|
6
6
|
//#region src/InputNumber.web.tsrx
|
|
7
7
|
enableSignalBindings(1, true);
|
|
@@ -20,13 +20,15 @@ var InputNumber = /* @__PURE__ */ __s(function InputNumber(props, __s, __extra)
|
|
|
20
20
|
const [internal, setInternal] = useState(props.defaultValue, _hs$ + 0);
|
|
21
21
|
const controlled = props.value !== void 0;
|
|
22
22
|
const value = controlled ? props.value : internal;
|
|
23
|
+
const isBlocked = props.isDisabled || props.isReadOnly;
|
|
23
24
|
const clamp = (n) => Math.min(props.max ?? Infinity, Math.max(props.min ?? -Infinity, n));
|
|
24
25
|
const setValue = (n) => {
|
|
26
|
+
if (isBlocked) return;
|
|
25
27
|
if (!controlled) setInternal(n);
|
|
26
28
|
props.onValueChange?.(n);
|
|
27
29
|
};
|
|
28
30
|
const stepBy = (dir) => {
|
|
29
|
-
if (
|
|
31
|
+
if (isBlocked) return;
|
|
30
32
|
setValue(clamp((value ?? 0) + dir * (props.step ?? 1)));
|
|
31
33
|
};
|
|
32
34
|
if (__s.block.pending && !__s.block.crossRenderUpdate) return;
|
|
@@ -50,50 +52,58 @@ var InputNumber = /* @__PURE__ */ __s(function InputNumber(props, __s, __extra)
|
|
|
50
52
|
const _root = clone(_t$2);
|
|
51
53
|
queueRefAttach(__s, _m1 = (e) => applyEscapeProps(e, props), _m0 = _root);
|
|
52
54
|
(__s.cleanups ??= []).push(() => _b && queueRefDetach(_b.b, _b.a));
|
|
53
|
-
_b =
|
|
55
|
+
_b = bag8(__s, _root, _m0, _m1, void 0, void 0, void 0, void 0, void 0, void 0);
|
|
54
56
|
__s.refFields = _rm$5;
|
|
55
57
|
} else {
|
|
56
58
|
const _r = (e) => applyEscapeProps(e, props);
|
|
57
59
|
if (_r !== _b.b) _b.b = replaceRef(__s, _b.b, _r, _b.a);
|
|
58
60
|
}
|
|
59
|
-
_b.c = bindSignalAttribute(__s, _b.c, _b.a, "id", props.id, "b:
|
|
60
|
-
_b.d =
|
|
61
|
+
_b.c = bindSignalAttribute(__s, _b.c, _b.a, "id", props.id, "b:1bcc1944", setPlainAttribute);
|
|
62
|
+
_b.d = bindSignalAttribute(__s, _b.d, _b.a, "aria-disabled", props.isDisabled || void 0, "b:dd9e1f34", setAriaAttribute);
|
|
63
|
+
_b.e = bindSignalAttribute(__s, _b.e, _b.a, "aria-readonly", props.isReadOnly || void 0, "b:6a921dc8", setAriaAttribute);
|
|
64
|
+
_b.f = bindSignalAttribute(__s, _b.f, _b.a, "aria-busy", props.isLoading || void 0, "b:6772c1bd", setAriaAttribute);
|
|
65
|
+
_b.g = updateFreshClassName([
|
|
61
66
|
"vx-inputnumber",
|
|
62
|
-
props.
|
|
67
|
+
props.isDisabled ? "vx-inputnumber--disabled" : void 0,
|
|
68
|
+
props.isReadOnly ? "vx-inputnumber--readonly" : void 0,
|
|
69
|
+
props.isLoading ? "vx-inputnumber--loading" : void 0,
|
|
70
|
+
props.status ? `vx-inputnumber--status-${props.status.type}` : void 0,
|
|
71
|
+
props.size ? `vx-inputnumber--size-${props.size}` : void 0,
|
|
63
72
|
props.className
|
|
64
|
-
], _b.
|
|
73
|
+
], _b.g, _b.a);
|
|
65
74
|
{
|
|
66
75
|
const _v = props.style;
|
|
67
|
-
if (_b.
|
|
68
|
-
setStyle(_b.a, _v, _b.
|
|
69
|
-
_b.
|
|
76
|
+
if (_b.h !== _v) {
|
|
77
|
+
setStyle(_b.a, _v, _b.h);
|
|
78
|
+
_b.h = _v;
|
|
70
79
|
}
|
|
71
80
|
}
|
|
72
81
|
componentSlotVoid(__s, 1, _b.a, Pressable, {
|
|
73
82
|
"className": "vx-inputnumber-step",
|
|
74
|
-
"disabled":
|
|
83
|
+
"disabled": isBlocked,
|
|
75
84
|
"onPress": () => stepBy(-1),
|
|
76
85
|
"accessibilityLabel": "Decrement",
|
|
77
86
|
"children": markChildrenBlock(__children$1, __childrenBody)
|
|
78
|
-
}, void 0, void 0, void 0, void 0, void 0, "c:
|
|
87
|
+
}, void 0, void 0, void 0, void 0, void 0, "c:59318371");
|
|
79
88
|
componentSlotVoid(__s, 2, _b.a, TextInput, {
|
|
80
89
|
"className": "vx-inputnumber-field",
|
|
81
90
|
"keyboardType": "decimal",
|
|
82
|
-
"
|
|
91
|
+
"isDisabled": props.isDisabled,
|
|
92
|
+
"isReadOnly": props.isReadOnly,
|
|
83
93
|
"placeholder": props.placeholder,
|
|
84
94
|
"value": value == null ? "" : String(value),
|
|
85
95
|
"onChange": (text) => {
|
|
86
96
|
const n = parseFloat(text);
|
|
87
97
|
if (text === "" || !isNaN(n)) setValue(clamp(text === "" ? 0 : n));
|
|
88
98
|
}
|
|
89
|
-
}, void 0, void 0, 2, void 0, void 0, "c:
|
|
99
|
+
}, void 0, void 0, 2, void 0, void 0, "c:c891ddb7");
|
|
90
100
|
componentSlotVoid(__s, 3, _b.a, Pressable, {
|
|
91
101
|
"className": "vx-inputnumber-step",
|
|
92
|
-
"disabled":
|
|
102
|
+
"disabled": isBlocked,
|
|
93
103
|
"onPress": () => stepBy(1),
|
|
94
104
|
"accessibilityLabel": "Increment",
|
|
95
105
|
"children": markChildrenBlock(__children$4, __childrenBody$)
|
|
96
|
-
}, void 0, void 0, void 0, void 0, void 0, "c:
|
|
106
|
+
}, void 0, void 0, void 0, void 0, void 0, "c:e6a403fa");
|
|
97
107
|
});
|
|
98
108
|
//#endregion
|
|
99
109
|
export { InputNumber };
|
|
@@ -1,23 +1,27 @@
|
|
|
1
1
|
import { applyEscapeProps } from "./escape-props.web.js";
|
|
2
2
|
import { Icon } from "./Icon.web.tsrx.js";
|
|
3
|
-
import {
|
|
3
|
+
import { useFieldControlProps } from "./field-context.js";
|
|
4
|
+
import { __s, bag15, clone, createElement, createScopedElement, createScopedValue, hookSlots, queueRefAttach, queueRefDetach, setAriaAttribute, setStyle, template, useState, withSlot } from "octane";
|
|
4
5
|
import { bindSignalAttribute, bindSignalChild, createElementFromConfig, enableSignalBindings, replaceRef, setPlainAttribute, updateFreshClassName } from "octane/internal/client";
|
|
5
6
|
//#region src/InputRating.web.tsrx
|
|
6
7
|
enableSignalBindings(1, true);
|
|
7
8
|
var _t$0 = /* @__PURE__ */ template("<div role=\"radiogroup\"></div>");
|
|
8
|
-
var _hs$ = /* @__PURE__ */ hookSlots(
|
|
9
|
+
var _hs$ = /* @__PURE__ */ hookSlots(2);
|
|
10
|
+
var _h$0 = /* @__PURE__ */ Symbol(_hs$);
|
|
9
11
|
var _rm$1 = [
|
|
10
12
|
"r",
|
|
11
13
|
"b",
|
|
12
14
|
"a"
|
|
13
15
|
];
|
|
14
|
-
var InputRating = /* @__PURE__ */ __s(function InputRating(
|
|
16
|
+
var InputRating = /* @__PURE__ */ __s(function InputRating(inputProps, __s, __extra) {
|
|
17
|
+
const props = withSlot(_h$0, useFieldControlProps, inputProps);
|
|
15
18
|
const max = props.max ?? 5;
|
|
16
|
-
const [internal, setInternal] = useState(props.defaultValue ?? 0, _hs$ +
|
|
19
|
+
const [internal, setInternal] = useState(props.defaultValue ?? 0, _hs$ + 1);
|
|
17
20
|
const controlled = props.value !== void 0;
|
|
18
21
|
const value = controlled ? props.value : internal;
|
|
22
|
+
const isBlocked = props.isDisabled || props.isReadOnly;
|
|
19
23
|
const setValue = (n) => {
|
|
20
|
-
if (
|
|
24
|
+
if (isBlocked) return;
|
|
21
25
|
if (!controlled) setInternal(n);
|
|
22
26
|
props.onValueChange?.(n);
|
|
23
27
|
};
|
|
@@ -28,16 +32,20 @@ var InputRating = /* @__PURE__ */ __s(function InputRating(props, __s, __extra)
|
|
|
28
32
|
const _root = clone(_t$0);
|
|
29
33
|
queueRefAttach(__s, _m1 = (e) => applyEscapeProps(e, props), _m0 = _root);
|
|
30
34
|
(__s.cleanups ??= []).push(() => _b && queueRefDetach(_b.b, _b.a));
|
|
31
|
-
_b =
|
|
35
|
+
_b = bag15(__s, _root, _m0, _m1, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, null, void 0);
|
|
32
36
|
__s.refFields = _rm$1;
|
|
33
37
|
} else {
|
|
34
38
|
const _r = (e) => applyEscapeProps(e, props);
|
|
35
39
|
if (_r !== _b.b) _b.b = replaceRef(__s, _b.b, _r, _b.a);
|
|
36
40
|
}
|
|
37
|
-
_b.c = bindSignalAttribute(__s, _b.c, _b.a, "id", props.id, "b:
|
|
41
|
+
_b.c = bindSignalAttribute(__s, _b.c, _b.a, "id", props.id, "b:f8f123e4", setPlainAttribute);
|
|
38
42
|
_b.d = updateFreshClassName([
|
|
39
43
|
"vx-rating",
|
|
40
|
-
props.
|
|
44
|
+
props.isDisabled ? "vx-rating--disabled" : void 0,
|
|
45
|
+
props.isReadOnly ? "vx-rating--readonly" : void 0,
|
|
46
|
+
props.isLoading ? "vx-rating--loading" : void 0,
|
|
47
|
+
props.status ? `vx-rating--status-${props.status.type}` : void 0,
|
|
48
|
+
props.size ? `vx-rating--size-${props.size}` : void 0,
|
|
41
49
|
props.className
|
|
42
50
|
], _b.d, _b.a);
|
|
43
51
|
{
|
|
@@ -47,26 +55,34 @@ var InputRating = /* @__PURE__ */ __s(function InputRating(props, __s, __extra)
|
|
|
47
55
|
_b.e = _v;
|
|
48
56
|
}
|
|
49
57
|
}
|
|
50
|
-
_b.f = bindSignalAttribute(__s, _b.f, _b.a, "aria-label", props.
|
|
51
|
-
_b.
|
|
58
|
+
_b.f = bindSignalAttribute(__s, _b.f, _b.a, "aria-label", props.ariaLabel, "b:5ecf0018", setAriaAttribute);
|
|
59
|
+
_b.g = bindSignalAttribute(__s, _b.g, _b.a, "aria-labelledby", props.ariaLabelledBy, "b:a2fff7b7", setAriaAttribute);
|
|
60
|
+
_b.h = bindSignalAttribute(__s, _b.h, _b.a, "aria-describedby", props.ariaDescribedBy, "b:3136c6e8", setAriaAttribute);
|
|
61
|
+
_b.i = bindSignalAttribute(__s, _b.i, _b.a, "aria-disabled", props.isDisabled || void 0, "b:18b3f247", setAriaAttribute);
|
|
62
|
+
_b.j = bindSignalAttribute(__s, _b.j, _b.a, "aria-readonly", props.isReadOnly || void 0, "b:0a5a52c0", setAriaAttribute);
|
|
63
|
+
_b.k = bindSignalAttribute(__s, _b.k, _b.a, "aria-busy", props.isLoading || void 0, "b:d7942599", setAriaAttribute);
|
|
64
|
+
_b.l = bindSignalAttribute(__s, _b.l, _b.a, "aria-required", props.isRequired && !props.isOptional || void 0, "b:0ea6d917", setAriaAttribute);
|
|
65
|
+
_b.m = bindSignalAttribute(__s, _b.m, _b.a, "aria-invalid", props.status?.type === "error" || void 0, "b:6afbadbd", setAriaAttribute);
|
|
66
|
+
_b.p = bindSignalChild(__s, _b.p, 1, _b.a, Array.from({ length: max }, (_, i) => {
|
|
52
67
|
const score = i + 1;
|
|
53
68
|
const on = score <= value;
|
|
54
69
|
return createScopedValue(() => createScopedElement("span", {
|
|
55
70
|
key: i,
|
|
56
71
|
role: "radio",
|
|
57
72
|
"aria-checked": on,
|
|
58
|
-
|
|
73
|
+
"aria-readonly": props.isReadOnly || void 0,
|
|
74
|
+
tabIndex: props.isDisabled ? void 0 : 0,
|
|
59
75
|
className: ["vx-rating-cell", on ? "vx-rating-cell--on" : void 0],
|
|
60
|
-
onClick:
|
|
76
|
+
onClick: isBlocked ? void 0 : () => setValue(score),
|
|
61
77
|
onKeyDown: (e) => {
|
|
62
|
-
if (
|
|
78
|
+
if (isBlocked) return;
|
|
63
79
|
if (e.key === " " || e.key === "Enter") {
|
|
64
80
|
e.preventDefault();
|
|
65
81
|
setValue(score);
|
|
66
82
|
}
|
|
67
83
|
}
|
|
68
|
-
}, () => props.icon ? createScopedValue(() => createElementFromConfig("c:
|
|
69
|
-
}), "b:
|
|
84
|
+
}, () => props.icon ? createScopedValue(() => createElementFromConfig("c:76c822d8", Icon, { name: props.icon })) : createElement("span", { className: "vx-rating-glyph" }, "★")));
|
|
85
|
+
}), "b:559a6056", null, void 0, void 0, void 0, true);
|
|
70
86
|
});
|
|
71
87
|
//#endregion
|
|
72
88
|
export { InputRating };
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { Text } from "./Text.web.tsrx.js";
|
|
2
|
+
import { Pressable } from "./Pressable.web.tsrx.js";
|
|
3
|
+
import { __s, bag13, bag4, child, clone, componentSlotVoid, createScopedElement, drainFrag, markChildrenBlock, positionalChildren, sibling, template } from "octane";
|
|
4
|
+
import { childTextHoleUpdate, textHoleUpdate, updateFreshClassName } from "octane/internal/client";
|
|
5
|
+
//#region src/Item.web.tsrx
|
|
6
|
+
var _t$0 = /* @__PURE__ */ template("<div></div>");
|
|
7
|
+
var _t$1 = /* @__PURE__ */ template("<!>", 0, 1);
|
|
8
|
+
var _t$2 = /* @__PURE__ */ template("<!><!><!><!>", 0, 1);
|
|
9
|
+
var __childrenBody = {};
|
|
10
|
+
var __childrenBody$ = {};
|
|
11
|
+
var Leading = /* @__PURE__ */ __s(function Leading(props, __s, __extra) {
|
|
12
|
+
let _b = __s.slots[0];
|
|
13
|
+
if (_b === void 0) {
|
|
14
|
+
let _m1;
|
|
15
|
+
const _root = clone(_t$0);
|
|
16
|
+
_m1 = _root;
|
|
17
|
+
_b = bag4(__s, _root, void 0, _m1, null, void 0);
|
|
18
|
+
}
|
|
19
|
+
_b.a = updateFreshClassName(["vx-item-leading", props.className], _b.a, _b.b);
|
|
20
|
+
{
|
|
21
|
+
const _v = props.children;
|
|
22
|
+
_b.c = childTextHoleUpdate(__s, 1, _b.b, _v, _b.c, _b.d);
|
|
23
|
+
_b.d = _v;
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
var Content = /* @__PURE__ */ __s(function Content(props, __s, __extra) {
|
|
27
|
+
let _b = __s.slots[0];
|
|
28
|
+
if (_b === void 0) {
|
|
29
|
+
let _m1;
|
|
30
|
+
const _root = clone(_t$0);
|
|
31
|
+
_m1 = _root;
|
|
32
|
+
_b = bag4(__s, _root, void 0, _m1, null, void 0);
|
|
33
|
+
}
|
|
34
|
+
_b.a = updateFreshClassName(["vx-item-content", props.className], _b.a, _b.b);
|
|
35
|
+
{
|
|
36
|
+
const _v = props.children;
|
|
37
|
+
_b.c = childTextHoleUpdate(__s, 1, _b.b, _v, _b.c, _b.d);
|
|
38
|
+
_b.d = _v;
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
var Supporting = function Supporting(props, __s, __extra) {
|
|
42
|
+
const __block = __s.block;
|
|
43
|
+
function __children$3(__props, __s, __extra) {
|
|
44
|
+
const __block = __s.block;
|
|
45
|
+
let _b = __s.slots[0];
|
|
46
|
+
if (_b === void 0) {
|
|
47
|
+
let _m0, _m1;
|
|
48
|
+
const _root = clone(_t$1);
|
|
49
|
+
_m0 = __block.parentNode;
|
|
50
|
+
_m1 = child(_root);
|
|
51
|
+
drainFrag(_root, __block.parentNode, __block.endMarker);
|
|
52
|
+
_b = bag4(__s, null, _m0, _m1, null, void 0);
|
|
53
|
+
}
|
|
54
|
+
{
|
|
55
|
+
const _v = props.children;
|
|
56
|
+
_b.c = textHoleUpdate(__s, 1, _b.a, _v, _b.c, _b.d, _b.b, true, true);
|
|
57
|
+
_b.d = _v;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
componentSlotVoid(__s, 0, __block.parentNode, Text, {
|
|
61
|
+
"className": ["vx-item-supporting", props.className],
|
|
62
|
+
"children": markChildrenBlock(__children$3, __childrenBody)
|
|
63
|
+
}, __block.endMarker, void 0, void 0, true, void 0, "c:6576782c");
|
|
64
|
+
};
|
|
65
|
+
var Trailing = /* @__PURE__ */ __s(function Trailing(props, __s, __extra) {
|
|
66
|
+
let _b = __s.slots[0];
|
|
67
|
+
if (_b === void 0) {
|
|
68
|
+
let _m1;
|
|
69
|
+
const _root = clone(_t$0);
|
|
70
|
+
_m1 = _root;
|
|
71
|
+
_b = bag4(__s, _root, void 0, _m1, null, void 0);
|
|
72
|
+
}
|
|
73
|
+
_b.a = updateFreshClassName(["vx-item-trailing", props.className], _b.a, _b.b);
|
|
74
|
+
{
|
|
75
|
+
const _v = props.children;
|
|
76
|
+
_b.c = childTextHoleUpdate(__s, 1, _b.b, _v, _b.c, _b.d);
|
|
77
|
+
_b.d = _v;
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
var Item = Object.assign(function ItemView(props, __s, __extra) {
|
|
81
|
+
const __block = __s.block;
|
|
82
|
+
function __children$7(__props, __s, __extra) {
|
|
83
|
+
const __block = __s.block;
|
|
84
|
+
let _b = __s.slots[0];
|
|
85
|
+
if (_b === void 0) {
|
|
86
|
+
let _m0, _m1, _m4, _m7, _m10;
|
|
87
|
+
const _root = clone(_t$2);
|
|
88
|
+
_m0 = __block.parentNode;
|
|
89
|
+
const _el0 = child(_root);
|
|
90
|
+
_m1 = _el0;
|
|
91
|
+
const _el1 = sibling(_el0, 1);
|
|
92
|
+
_m4 = _el1;
|
|
93
|
+
const _el2 = sibling(_el1, 1);
|
|
94
|
+
_m7 = _el2;
|
|
95
|
+
_m10 = sibling(_el2, 1);
|
|
96
|
+
drainFrag(_root, __block.parentNode, __block.endMarker);
|
|
97
|
+
_b = bag13(__s, null, _m0, _m1, null, void 0, _m4, null, void 0, _m7, null, void 0, _m10, null, void 0);
|
|
98
|
+
}
|
|
99
|
+
{
|
|
100
|
+
const _v = props.leading != null ? createScopedElement(Leading, {}, () => props.leading, "c:ccb6b66f") : null;
|
|
101
|
+
_b.c = textHoleUpdate(__s, 1, _b.a, _v, _b.c, _b.d, _b.b, true);
|
|
102
|
+
_b.d = _v;
|
|
103
|
+
}
|
|
104
|
+
{
|
|
105
|
+
const _v = props.title != null || props.supportingText != null ? createScopedElement(Content, {}, () => positionalChildren([props.title != null ? createScopedElement(Text, { className: "vx-item-title" }, () => props.title, "c:3abcd17b") : null, props.supportingText != null ? createScopedElement(Supporting, {}, () => props.supportingText, "c:7e92cfce") : null]), "c:bb948fd5") : null;
|
|
106
|
+
_b.f = textHoleUpdate(__s, 2, _b.a, _v, _b.f, _b.g, _b.e, true);
|
|
107
|
+
_b.g = _v;
|
|
108
|
+
}
|
|
109
|
+
{
|
|
110
|
+
const _v = props.children;
|
|
111
|
+
_b.i = textHoleUpdate(__s, 3, _b.a, _v, _b.i, _b.j, _b.h, true);
|
|
112
|
+
_b.j = _v;
|
|
113
|
+
}
|
|
114
|
+
{
|
|
115
|
+
const _v = props.trailing != null ? createScopedElement(Trailing, {}, () => props.trailing, "c:08c3380a") : null;
|
|
116
|
+
_b.l = textHoleUpdate(__s, 4, _b.a, _v, _b.l, _b.m, _b.k, true);
|
|
117
|
+
_b.m = _v;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
componentSlotVoid(__s, 0, __block.parentNode, Pressable, {
|
|
121
|
+
"id": props.id,
|
|
122
|
+
"className": ["vx-item", props.className],
|
|
123
|
+
"style": props.style,
|
|
124
|
+
"onPress": props.onPress,
|
|
125
|
+
"disabled": props.disabled,
|
|
126
|
+
"accessibilityLabel": props.accessibilityLabel,
|
|
127
|
+
"accessibilityRole": props.accessibilityRole ?? (props.onPress ? "button" : "text"),
|
|
128
|
+
"accessibilityHint": props.accessibilityHint,
|
|
129
|
+
"accessibilityState": props.accessibilityState,
|
|
130
|
+
"children": markChildrenBlock(__children$7, __childrenBody$)
|
|
131
|
+
}, __block.endMarker, void 0, void 0, true, void 0, "c:4f0b0e61");
|
|
132
|
+
}, {
|
|
133
|
+
Leading,
|
|
134
|
+
Content,
|
|
135
|
+
Supporting,
|
|
136
|
+
Trailing
|
|
137
|
+
});
|
|
138
|
+
//#endregion
|
|
139
|
+
export { Item };
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { cx } from "./cx.js";
|
|
2
|
+
import { __s, bag8, clone, snapshotSpread, template } from "octane";
|
|
3
|
+
import { bindSignalChild, bindSignalHostPropSources, enableSignalBindings } from "octane/internal/client";
|
|
4
|
+
//#region src/KeyboardAvoiding.web.tsrx
|
|
5
|
+
enableSignalBindings(1, true);
|
|
6
|
+
var _t$0 = /* @__PURE__ */ template("<div></div>");
|
|
7
|
+
var _rm$1 = [
|
|
8
|
+
"s",
|
|
9
|
+
"f",
|
|
10
|
+
"e"
|
|
11
|
+
];
|
|
12
|
+
var KeyboardAvoiding = /* @__PURE__ */ __s(function KeyboardAvoiding(props, __s, __extra) {
|
|
13
|
+
let _b = __s.slots[0];
|
|
14
|
+
if (_b === void 0) {
|
|
15
|
+
let _m0, _m1, _m2, _m3, _m4, _m5;
|
|
16
|
+
const _root = clone(_t$0);
|
|
17
|
+
_m0 = props.id;
|
|
18
|
+
_m1 = cx("vx-keyboard-avoiding", props.className);
|
|
19
|
+
_m2 = props.style;
|
|
20
|
+
_m3 = snapshotSpread(props.web);
|
|
21
|
+
_m4 = _root;
|
|
22
|
+
_m5 = bindSignalHostPropSources(__s, void 0, _root, [
|
|
23
|
+
[
|
|
24
|
+
false,
|
|
25
|
+
"id",
|
|
26
|
+
_m0
|
|
27
|
+
],
|
|
28
|
+
[
|
|
29
|
+
false,
|
|
30
|
+
"className",
|
|
31
|
+
_m1
|
|
32
|
+
],
|
|
33
|
+
[
|
|
34
|
+
false,
|
|
35
|
+
"style",
|
|
36
|
+
_m2
|
|
37
|
+
],
|
|
38
|
+
[true, _m3]
|
|
39
|
+
], "b:1d590fbc", true);
|
|
40
|
+
_b = bag8(__s, _root, _m0, _m1, _m2, _m3, _m4, _m5, null, void 0);
|
|
41
|
+
__s.refFields = _rm$1;
|
|
42
|
+
} else {
|
|
43
|
+
{
|
|
44
|
+
const _v = props.id;
|
|
45
|
+
if (_b.a !== _v) _b.a = _v;
|
|
46
|
+
}
|
|
47
|
+
{
|
|
48
|
+
const _v = cx("vx-keyboard-avoiding", props.className);
|
|
49
|
+
if (_b.b !== _v) _b.b = _v;
|
|
50
|
+
}
|
|
51
|
+
{
|
|
52
|
+
const _v = props.style;
|
|
53
|
+
if (_b.c !== _v) _b.c = _v;
|
|
54
|
+
}
|
|
55
|
+
_b.d = snapshotSpread(props.web);
|
|
56
|
+
_b.f = bindSignalHostPropSources(__s, _b.f, _b.e, [
|
|
57
|
+
[
|
|
58
|
+
false,
|
|
59
|
+
"id",
|
|
60
|
+
_b.a
|
|
61
|
+
],
|
|
62
|
+
[
|
|
63
|
+
false,
|
|
64
|
+
"className",
|
|
65
|
+
_b.b
|
|
66
|
+
],
|
|
67
|
+
[
|
|
68
|
+
false,
|
|
69
|
+
"style",
|
|
70
|
+
_b.c
|
|
71
|
+
],
|
|
72
|
+
[true, _b.d]
|
|
73
|
+
], "b:1d590fbc", true);
|
|
74
|
+
}
|
|
75
|
+
_b.i = bindSignalChild(__s, _b.i, 1, _b.e, props.children, "b:da0dd4e6", null, void 0, void 0, void 0, true);
|
|
76
|
+
});
|
|
77
|
+
//#endregion
|
|
78
|
+
export { KeyboardAvoiding };
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
import { Text } from "./Text.web.tsrx.js";
|
|
2
|
+
import { Pressable } from "./Pressable.web.tsrx.js";
|
|
3
|
+
import { Icon } from "./Icon.web.tsrx.js";
|
|
4
|
+
import { cx } from "./cx.js";
|
|
5
|
+
import { isolateModalFocus } from "./modal-focus.web.js";
|
|
6
|
+
import { Fragment, bag4, child, clone, createElement, createPortal, createScopedElement, createScopedValue, drainFrag, hookSlots, ifBlock, positionalChildren, template, useEffect, useRef, useState } from "octane";
|
|
7
|
+
import { compilerMemoRegion, createElementFromConfig, hookMemoCreate, hookMemoEqual, hookMemoPublish1, hookMemoPublish2, hookMemoPublishInvariant, textHoleUpdate } from "octane/internal/client";
|
|
8
|
+
//#region src/Lightbox.web.tsrx
|
|
9
|
+
var _t$0 = /* @__PURE__ */ template("<!>", 0, 1);
|
|
10
|
+
var _hs$ = /* @__PURE__ */ hookSlots(10);
|
|
11
|
+
function __then$0(__props, __s, __extra) {
|
|
12
|
+
const __block = __s.block;
|
|
13
|
+
const index = __extra[0];
|
|
14
|
+
const props = __extra[1];
|
|
15
|
+
const setIndex = __extra[2];
|
|
16
|
+
let _b = __s.slots[0];
|
|
17
|
+
if (_b === void 0) {
|
|
18
|
+
let _m0, _m1;
|
|
19
|
+
const _root = clone(_t$0);
|
|
20
|
+
_m0 = __block.parentNode;
|
|
21
|
+
_m1 = child(_root);
|
|
22
|
+
drainFrag(_root, __block.parentNode, __block.endMarker);
|
|
23
|
+
_b = bag4(__s, null, _m0, _m1, null, void 0);
|
|
24
|
+
}
|
|
25
|
+
{
|
|
26
|
+
const _v = /* @__PURE__ */ createPortal(createScopedValue(() => createElementFromConfig("c:5d15db44", LightboxLayer, {
|
|
27
|
+
media: props.media,
|
|
28
|
+
index,
|
|
29
|
+
setIndex,
|
|
30
|
+
onClose: () => props.onOpenChange(false),
|
|
31
|
+
hasZoom: props.hasZoom ?? true,
|
|
32
|
+
hasAutoPlay: props.hasAutoPlay ?? false,
|
|
33
|
+
finalFocusRef: props.finalFocusRef,
|
|
34
|
+
className: props.className,
|
|
35
|
+
style: props.style,
|
|
36
|
+
id: props.id,
|
|
37
|
+
web: props.web
|
|
38
|
+
})), document.body);
|
|
39
|
+
_b.c = textHoleUpdate(__s, 1, _b.a, _v, _b.c, _b.d, _b.b, true, true);
|
|
40
|
+
_b.d = _v;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
var clampIndex = (i, count) => count <= 0 ? 0 : Math.min(Math.max(i, 0), count - 1);
|
|
44
|
+
var LightboxLayer = function LightboxLayer(props, __s, __extra) {
|
|
45
|
+
const __memoRegion = compilerMemoRegion(__s, _hs$ + 0);
|
|
46
|
+
let __hk = __memoRegion.hooks;
|
|
47
|
+
if (__hk === void 0) __memoRegion.hooks = __hk = hookMemoCreate(9);
|
|
48
|
+
let __hkd0, __hkd1, __hkd0$;
|
|
49
|
+
const { media, index } = props;
|
|
50
|
+
const count = media.length;
|
|
51
|
+
const item = media[index];
|
|
52
|
+
const layer = useRef(null, _hs$ + 0);
|
|
53
|
+
const stage = useRef(null, _hs$ + 1);
|
|
54
|
+
const imgEl = useRef(null, _hs$ + 2);
|
|
55
|
+
const [zoomed, setZoomed] = useState(false, _hs$ + 3);
|
|
56
|
+
const pan = useRef({
|
|
57
|
+
x: 0,
|
|
58
|
+
y: 0
|
|
59
|
+
}, _hs$ + 4);
|
|
60
|
+
const drag = useRef(null, _hs$ + 5);
|
|
61
|
+
const onClose = useRef(props.onClose, _hs$ + 6);
|
|
62
|
+
onClose.current = props.onClose;
|
|
63
|
+
const setIndex = useRef(props.setIndex, _hs$ + 7);
|
|
64
|
+
setIndex.current = props.setIndex;
|
|
65
|
+
const isVideo = item?.type === "video";
|
|
66
|
+
const zoomOn = (props.hasZoom ?? true) && !isVideo;
|
|
67
|
+
__hkd0 = props.index, __hkd1 = count, __hk[0] !== true || !hookMemoEqual(__hk[1], __hkd0) || !hookMemoEqual(__hk[2], __hkd1) ? hookMemoPublish2(__hk, 0, () => {
|
|
68
|
+
setIndex.current(clampIndex(props.index + 1, count) === props.index ? props.index : props.index + 1);
|
|
69
|
+
}, __hkd0, __hkd1) : __hk[3];
|
|
70
|
+
__hkd0$ = props.index, __hk[4] !== true || !hookMemoEqual(__hk[5], __hkd0$) ? hookMemoPublish1(__hk, 4, () => {
|
|
71
|
+
setIndex.current(props.index - 1 >= 0 ? props.index - 1 : props.index);
|
|
72
|
+
}, __hkd0$) : __hk[6];
|
|
73
|
+
useEffect(() => {
|
|
74
|
+
const el = layer.current;
|
|
75
|
+
const panel = stage.current;
|
|
76
|
+
if (!el || !panel) return;
|
|
77
|
+
const restoreScroll = document.documentElement.style.overflow || "";
|
|
78
|
+
document.documentElement.style.overflow = "hidden";
|
|
79
|
+
const releaseFocus = isolateModalFocus(el, panel, () => {
|
|
80
|
+
props.finalFocusRef?.current;
|
|
81
|
+
onClose.current();
|
|
82
|
+
});
|
|
83
|
+
const rtl = getComputedStyle(el).direction === "rtl";
|
|
84
|
+
const onKey = (event) => {
|
|
85
|
+
if (event.isComposing) return;
|
|
86
|
+
const fwd = rtl ? "ArrowLeft" : "ArrowRight";
|
|
87
|
+
const back = rtl ? "ArrowRight" : "ArrowLeft";
|
|
88
|
+
if (event.key === fwd) setIndex.current(Math.min(index + 1, count - 1));
|
|
89
|
+
else if (event.key === back) setIndex.current(Math.max(index - 1, 0));
|
|
90
|
+
};
|
|
91
|
+
document.addEventListener("keydown", onKey);
|
|
92
|
+
return () => {
|
|
93
|
+
document.removeEventListener("keydown", onKey);
|
|
94
|
+
releaseFocus();
|
|
95
|
+
document.documentElement.style.overflow = restoreScroll;
|
|
96
|
+
const target = props.finalFocusRef?.current;
|
|
97
|
+
if (target && typeof target.focus === "function" && target.isConnected !== false) target.focus({ preventScroll: true });
|
|
98
|
+
};
|
|
99
|
+
}, [index, count], _hs$ + 8);
|
|
100
|
+
const applyZoom = __hk[7] ?? hookMemoPublishInvariant(__hk, 7, (on, keepPan = false) => {
|
|
101
|
+
const el = imgEl.current;
|
|
102
|
+
if (!el) return;
|
|
103
|
+
setZoomed(on);
|
|
104
|
+
if (!keepPan) pan.current = {
|
|
105
|
+
x: 0,
|
|
106
|
+
y: 0
|
|
107
|
+
};
|
|
108
|
+
el.style.transform = on ? `scale(2.5) translate(${pan.current.x}px, ${pan.current.y}px)` : "";
|
|
109
|
+
el.style.cursor = on ? "grab" : "zoom-in";
|
|
110
|
+
});
|
|
111
|
+
const onMediaClick = () => {
|
|
112
|
+
if (zoomOn) applyZoom(!zoomed);
|
|
113
|
+
};
|
|
114
|
+
const onPointerDown = (event) => {
|
|
115
|
+
if (!zoomed || !imgEl.current) return;
|
|
116
|
+
drag.current = {
|
|
117
|
+
x: event.clientX,
|
|
118
|
+
y: event.clientY
|
|
119
|
+
};
|
|
120
|
+
imgEl.current.setPointerCapture?.(event.pointerId);
|
|
121
|
+
imgEl.current.style.cursor = "grabbing";
|
|
122
|
+
};
|
|
123
|
+
const onPointerMove = __hk[8] ?? hookMemoPublishInvariant(__hk, 8, (event) => {
|
|
124
|
+
const start = drag.current;
|
|
125
|
+
const el = imgEl.current;
|
|
126
|
+
if (!start || !el) return;
|
|
127
|
+
pan.current = {
|
|
128
|
+
x: pan.current.x + (event.clientX - start.x) / 2.5,
|
|
129
|
+
y: pan.current.y + (event.clientY - start.y) / 2.5
|
|
130
|
+
};
|
|
131
|
+
drag.current = {
|
|
132
|
+
x: event.clientX,
|
|
133
|
+
y: event.clientY
|
|
134
|
+
};
|
|
135
|
+
el.style.transform = `scale(2.5) translate(${pan.current.x}px, ${pan.current.y}px)`;
|
|
136
|
+
});
|
|
137
|
+
const onPointerUp = () => {
|
|
138
|
+
drag.current = null;
|
|
139
|
+
if (imgEl.current) imgEl.current.style.cursor = zoomed ? "grab" : "zoom-in";
|
|
140
|
+
};
|
|
141
|
+
return createScopedValue(() => createScopedElement("div", {
|
|
142
|
+
ref: layer,
|
|
143
|
+
id: props.id,
|
|
144
|
+
className: cx("vx-lightbox-layer", props.className),
|
|
145
|
+
style: props.style,
|
|
146
|
+
role: "dialog",
|
|
147
|
+
"aria-modal": true,
|
|
148
|
+
"aria-label": item?.alt ?? "Media viewer",
|
|
149
|
+
onClick: (e) => {
|
|
150
|
+
if (e.target === e.currentTarget) onClose.current();
|
|
151
|
+
},
|
|
152
|
+
...props.web
|
|
153
|
+
}, () => createScopedValue(() => createScopedElement("div", {
|
|
154
|
+
ref: stage,
|
|
155
|
+
className: "vx-lightbox-stage",
|
|
156
|
+
tabIndex: -1
|
|
157
|
+
}, () => positionalChildren([
|
|
158
|
+
item != null && (isVideo ? createScopedValue(() => createElement("video", {
|
|
159
|
+
className: "vx-lightbox-media",
|
|
160
|
+
src: item.src,
|
|
161
|
+
controls: true,
|
|
162
|
+
autoPlay: props.hasAutoPlay,
|
|
163
|
+
"aria-label": item.alt
|
|
164
|
+
})) : createScopedValue(() => createElement("img", {
|
|
165
|
+
ref: imgEl,
|
|
166
|
+
className: "vx-lightbox-media",
|
|
167
|
+
src: item.src,
|
|
168
|
+
alt: item.alt,
|
|
169
|
+
draggable: false,
|
|
170
|
+
style: { cursor: zoomOn ? zoomed ? "grab" : "zoom-in" : void 0 },
|
|
171
|
+
onClick: onMediaClick,
|
|
172
|
+
onPointerDown,
|
|
173
|
+
onPointerMove,
|
|
174
|
+
onPointerUp,
|
|
175
|
+
onPointerCancel: onPointerUp
|
|
176
|
+
}))),
|
|
177
|
+
count > 1 && createScopedElement(Fragment, {}, () => positionalChildren([createScopedValue(() => createScopedElement(Pressable, {
|
|
178
|
+
className: "vx-lightbox-nav vx-lightbox-prev",
|
|
179
|
+
accessibilityLabel: "Previous",
|
|
180
|
+
onPress: () => setIndex.current(Math.max(index - 1, 0)),
|
|
181
|
+
disabled: index <= 0
|
|
182
|
+
}, () => createElementFromConfig("c:ed77b386", Icon, { name: "xplat-chevron-left" }), "c:c3cdb323")), createScopedValue(() => createScopedElement(Pressable, {
|
|
183
|
+
className: "vx-lightbox-nav vx-lightbox-next",
|
|
184
|
+
accessibilityLabel: "Next",
|
|
185
|
+
onPress: () => setIndex.current(Math.min(index + 1, count - 1)),
|
|
186
|
+
disabled: index >= count - 1
|
|
187
|
+
}, () => createElementFromConfig("c:eccb259a", Icon, { name: "xplat-chevron-right" }), "c:bc09a835"))])),
|
|
188
|
+
createScopedElement(Pressable, {
|
|
189
|
+
className: "vx-lightbox-close",
|
|
190
|
+
accessibilityLabel: "Close",
|
|
191
|
+
onPress: () => onClose.current()
|
|
192
|
+
}, () => createElementFromConfig("c:58c9a20a", Icon, { name: "xplat-close" }), "c:806c911f"),
|
|
193
|
+
count > 1 && createScopedElement("div", {
|
|
194
|
+
className: "vx-lightbox-counter",
|
|
195
|
+
"aria-live": "polite"
|
|
196
|
+
}, () => positionalChildren([
|
|
197
|
+
index + 1,
|
|
198
|
+
" of ",
|
|
199
|
+
count
|
|
200
|
+
])),
|
|
201
|
+
item?.caption != null && createScopedElement("div", { className: "vx-lightbox-caption" }, () => typeof item.caption === "string" ? createScopedElement(Text, {}, () => item.caption, "c:be955464") : item.caption)
|
|
202
|
+
])))));
|
|
203
|
+
};
|
|
204
|
+
var Lightbox = function Lightbox(props, __s, __extra) {
|
|
205
|
+
const __block = __s.block;
|
|
206
|
+
const [internal, setInternal] = useState(props.defaultIndex ?? 0, _hs$ + 9);
|
|
207
|
+
const count = props.media.length;
|
|
208
|
+
const index = clampIndex(props.index ?? internal, count);
|
|
209
|
+
const setIndex = (i) => {
|
|
210
|
+
const clamped = clampIndex(i, count);
|
|
211
|
+
if (props.index == null) setInternal(clamped);
|
|
212
|
+
if (clamped !== index) props.onIndexChange?.(clamped);
|
|
213
|
+
};
|
|
214
|
+
if (__s.block.pending && !__s.block.crossRenderUpdate) return;
|
|
215
|
+
{
|
|
216
|
+
const __ifCondition = props.isOpen && count > 0;
|
|
217
|
+
ifBlock(__s, 0, __block.parentNode, __ifCondition, __then$0, null, __block.endMarker, __ifCondition ? [
|
|
218
|
+
index,
|
|
219
|
+
props,
|
|
220
|
+
setIndex
|
|
221
|
+
] : void 0);
|
|
222
|
+
}
|
|
223
|
+
};
|
|
224
|
+
//#endregion
|
|
225
|
+
export { Lightbox };
|