@octane-xplat/ui 0.6.0 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -4
- package/dist/native/{Absolute.native.tsrx.js → Absolute.tsrx.js} +2 -2
- package/dist/native/{Accordion.native.tsrx.js → Accordion.tsrx.js} +3 -3
- package/dist/native/{ActivityIndicator.native.tsrx.js → ActivityIndicator.tsrx.js} +2 -2
- package/dist/native/{Alert.native.tsrx.js → Alert.tsrx.js} +3 -3
- package/dist/native/{Avatar.native.tsrx.js → Avatar.tsrx.js} +3 -3
- package/dist/native/{AvatarGroup.native.tsrx.js → AvatarGroup.tsrx.js} +3 -3
- package/dist/native/{Badge.native.tsrx.js → Badge.tsrx.js} +2 -2
- package/dist/native/{Banner.native.tsrx.js → Banner.tsrx.js} +3 -3
- package/dist/native/{Breadcrumb.native.tsrx.js → Breadcrumb.tsrx.js} +2 -2
- package/dist/native/{Button.native.tsrx.js → Button.tsrx.js} +3 -3
- package/dist/native/{Card.native.tsrx.js → Card.tsrx.js} +2 -2
- package/dist/native/{Checkbox.native.tsrx.js → Checkbox.tsrx.js} +2 -2
- package/dist/native/{CheckboxGroup.native.tsrx.js → CheckboxGroup.tsrx.js} +3 -3
- package/dist/native/{Chip.native.tsrx.js → Chip.tsrx.js} +2 -2
- package/dist/native/{Collapsible.native.tsrx.js → Collapsible.tsrx.js} +3 -3
- package/dist/native/{CommandPalette.native.tsrx.js → CommandPalette.tsrx.js} +4 -4
- package/dist/native/{ContextMenu.native.tsrx.js → ContextMenu.tsrx.js} +4 -4
- package/dist/native/{Drawer.native.tsrx.js → Drawer.tsrx.js} +2 -2
- package/dist/native/{DropdownMenu.native.tsrx.js → DropdownMenu.tsrx.js} +5 -5
- package/dist/native/{Empty.native.tsrx.js → Empty.tsrx.js} +3 -3
- package/dist/native/{FieldGroup.native.tsrx.js → FieldGroup.tsrx.js} +2 -2
- package/dist/native/{FormField.native.tsrx.js → FormField.tsrx.js} +2 -2
- package/dist/native/{Grid.native.tsrx.js → Grid.tsrx.js} +2 -2
- package/dist/native/{Heading.native.tsrx.js → Heading.tsrx.js} +3 -3
- package/dist/native/Hoverable.tsrx.js +139 -0
- package/dist/native/{Icon.native.tsrx.js → Icon.tsrx.js} +3 -3
- package/dist/native/{Image.native.tsrx.js → Image.tsrx.js} +4 -4
- package/dist/native/{InputNumber.native.tsrx.js → InputNumber.tsrx.js} +4 -4
- package/dist/native/{InputRating.native.tsrx.js → InputRating.tsrx.js} +3 -3
- package/dist/native/{InputTags.native.tsrx.js → InputTags.tsrx.js} +4 -4
- package/dist/native/{Kbd.native.tsrx.js → Kbd.tsrx.js} +2 -2
- package/dist/native/{KeyboardAvoiding.native.tsrx.js → KeyboardAvoiding.mobile.tsrx.js} +5 -3
- package/dist/native/{Link.native.tsrx.js → Link.tsrx.js} +2 -2
- package/dist/native/ListItem.tsrx.js +178 -0
- package/dist/native/Meter.tsrx.js +70 -0
- package/dist/native/{NavLink.native.tsrx.js → NavLink.tsrx.js} +3 -3
- package/dist/native/{NavigationMenu.native.tsrx.js → NavigationMenu.tsrx.js} +3 -3
- package/dist/native/{Overlay.native.tsrx.js → Overlay.tsrx.js} +2 -2
- package/dist/native/{Pagination.native.tsrx.js → Pagination.tsrx.js} +2 -2
- package/dist/native/{PinInput.native.tsrx.js → PinInput.tsrx.js} +3 -3
- package/dist/native/{Popover.native.tsrx.js → Popover.tsrx.js} +4 -4
- package/dist/native/{Pressable.native.tsrx.js → Pressable.tsrx.js} +4 -4
- package/dist/native/{ProgressGroup.native.tsrx.js → ProgressGroup.tsrx.js} +3 -3
- package/dist/native/{RadioGroup.native.tsrx.js → RadioGroup.tsrx.js} +2 -2
- package/dist/native/{RichText.native.tsrx.js → RichText.tsrx.js} +3 -3
- package/dist/native/{RouteHost.native.tsrx.js → RouteHost.mobile.tsrx.js} +13 -2
- package/dist/native/{Row.native.tsrx.js → Row.tsrx.js} +4 -4
- package/dist/native/{SafeArea.native.tsrx.js → SafeArea.tsrx.js} +9 -3
- package/dist/native/{Screen.native.tsrx.js → Screen.tsrx.js} +13 -5
- package/dist/native/{ScrollBox.native.tsrx.js → ScrollBox.tsrx.js} +2 -2
- package/dist/native/{ScrollView.native.tsrx.js → ScrollView.tsrx.js} +5 -5
- package/dist/native/{SearchInput.native.tsrx.js → SearchInput.tsrx.js} +4 -4
- package/dist/native/{SegmentedControl.native.tsrx.js → SegmentedControl.tsrx.js} +2 -2
- package/dist/native/{Select.native.tsrx.js → Select.tsrx.js} +4 -4
- package/dist/native/{Separator.native.tsrx.js → Separator.tsrx.js} +2 -2
- package/dist/native/{Sheet.native.tsrx.js → Sheet.tsrx.js} +11 -3
- package/dist/native/{Skeleton.native.tsrx.js → Skeleton.tsrx.js} +2 -2
- package/dist/native/{Slider.native.tsrx.js → Slider.tsrx.js} +5 -5
- package/dist/native/{Spacer.native.tsrx.js → Spacer.tsrx.js} +2 -2
- package/dist/native/{Stack.native.tsrx.js → Stack.tsrx.js} +2 -2
- package/dist/native/{Stepper.native.tsrx.js → Stepper.tsrx.js} +2 -2
- package/dist/native/{Switch.native.tsrx.js → Switch.tsrx.js} +2 -2
- package/dist/native/{Table.native.tsrx.js → Table.tsrx.js} +2 -2
- package/dist/native/{Tabs.native.tsrx.js → Tabs.tsrx.js} +8 -18
- package/dist/native/{Text.native.tsrx.js → Text.tsrx.js} +3 -3
- package/dist/native/{TextArea.native.tsrx.js → TextArea.tsrx.js} +3 -3
- package/dist/native/{TextInput.native.tsrx.js → TextInput.tsrx.js} +3 -3
- package/dist/native/{Timeline.native.tsrx.js → Timeline.tsrx.js} +3 -3
- package/dist/native/Tooltip.tsrx.js +131 -0
- package/dist/native/{Tree.native.tsrx.js → Tree.tsrx.js} +2 -2
- package/dist/native/{User.native.tsrx.js → User.tsrx.js} +3 -3
- package/dist/native/{View.native.tsrx.js → View.tsrx.js} +4 -4
- package/dist/native/VirtualList.tsrx.js +466 -0
- package/dist/native/{WebView.native.tsrx.js → WebView.tsrx.js} +31 -6
- package/dist/native/{aliases.native.tsrx.js → aliases.tsrx.js} +2 -2
- package/dist/native/android/BottomNavigationView.android.tsrx.js +72 -23
- package/dist/native/android/CircularProgressIndicator.android.tsrx.js +1 -1
- package/dist/native/android/DrawerLayout.android.tsrx.js +2 -1
- package/dist/native/android/MaterialDialog.android.tsrx.js +1 -1
- package/dist/native/android/MaterialSwitch.android.tsrx.js +1 -1
- package/dist/native/android/RecyclerView.android.tsrx.js +15 -3
- package/dist/native/android/SeekBar.android.tsrx.js +1 -1
- package/dist/native/android/icon.android.js +7 -0
- package/dist/native/android/index.js +3 -1
- package/dist/native/android/openModal.android.js +1 -1
- package/dist/native/{anim.native.tsrx.js → anim.tsrx.js} +1 -1
- package/dist/native/apply-native-modifiers.native.js +9 -0
- package/dist/native/{escape-props.native.js → escape-props.js} +3 -1
- package/dist/native/index.shared.js +92 -0
- package/dist/native/ios/LiquidGlass.ios.tsrx.js +2 -2
- package/dist/native/ios/LiquidGlassContainer.ios.tsrx.js +2 -2
- package/dist/native/ios/SideDrawer.ios.tsrx.js +2 -1
- package/dist/native/ios/UIActivityIndicatorView.ios.tsrx.js +1 -1
- package/dist/native/ios/UIModal.ios.tsrx.js +1 -1
- package/dist/native/ios/UISlider.ios.tsrx.js +1 -1
- package/dist/native/ios/UISwitch.ios.tsrx.js +1 -1
- package/dist/native/ios/UITabBar.ios.tsrx.js +33 -12
- package/dist/native/ios/UITableView.ios.tsrx.js +15 -3
- package/dist/native/ios/icon.ios.js +7 -0
- package/dist/native/ios/index.js +3 -1
- package/dist/native/ios/openModal.ios.js +1 -1
- package/dist/native/keyboard-inset.mobile.js +66 -0
- package/dist/native/{layout-child.native.js → layout-child.js} +1 -1
- package/dist/native/{modal-presenter.native.js → modal-presenter.mobile.js} +1 -1
- package/dist/native/modifier-factories.js +24 -0
- package/dist/native/native/index.js +3 -3
- package/dist/native/octane-client-build.json +1 -1
- package/dist/native/{pan.native.tsrx.js → pan.tsrx.js} +1 -1
- package/dist/native/{platform.native.js → platform.js} +3 -3
- package/dist/native/{platformProps.native.js → platformProps.js} +3 -1
- package/dist/native/{refresh.native.js → refresh.js} +1 -1
- package/dist/native/{root-layout.native.js → root-layout.mobile.js} +2 -2
- package/dist/native/route-host.mobile.js +2 -0
- package/dist/native/route-table.js +105 -4
- package/dist/native/{route.native.js → route.js} +49 -13
- package/dist/native/safeAreaInsets.tsrx.js +67 -0
- package/dist/native/shared.js +93 -0
- package/dist/native/{sheet-detents.native.js → sheet-detents.js} +1 -1
- package/dist/native/{sheet-service.native.js → sheet-service.js} +9 -3
- package/dist/native/{stacks.native.js → stacks.js} +1 -1
- package/dist/native/{styled.native.tsrx.js → styled.tsrx.js} +1 -1
- package/dist/native/{svg.native.js → svg.mobile.js} +2 -2
- package/dist/native/tap-to-blur.mobile.js +94 -0
- package/dist/native/{text-write.native.js → text-write.js} +1 -1
- package/dist/native/theme/{colorScheme.native.js → colorScheme.js} +2 -2
- package/dist/native/theme/{status-bar-scheme.native.js → status-bar-scheme.mobile.js} +1 -1
- package/dist/native/theme/theme-scheme.js +2 -2
- package/dist/native/{toast-anchor.native.tsrx.js → toast-anchor.tsrx.js} +3 -3
- package/dist/native/{translate.native.js → translate.js} +1 -1
- package/dist/native/ui.js +92 -90
- package/dist/native/{use-back.native.tsrx.js → use-back.tsrx.js} +2 -2
- package/dist/native/{use-store.native.tsrx.js → use-store.tsrx.js} +1 -1
- package/dist/native/{useMeasure.native.tsrx.js → useMeasure.tsrx.js} +1 -1
- package/dist/native/vendor/ui-svg/index.android.js +137 -0
- package/dist/native/vendor/ui-svg/index.common.js +10 -0
- package/dist/native/vendor/ui-svg/index.ios.js +111 -0
- package/dist/native/virtual-list-layout.js +146 -0
- package/dist/native/{windows.native.js → windows.js} +1 -1
- package/dist/web/{web/Hoverable.web.tsrx.js → Hoverable.web.tsrx.js} +7 -6
- package/dist/web/ListItem.web.tsrx.js +139 -0
- package/dist/web/SafeArea.web.tsrx.js +9 -3
- package/dist/web/Tabs.web.tsrx.js +88 -44
- package/dist/web/{web/Tooltip.web.tsrx.js → Tooltip.web.tsrx.js} +7 -6
- package/dist/web/VirtualList.web.tsrx.js +622 -0
- package/dist/web/WebView.web.tsrx.js +42 -5
- package/dist/web/octane-client-build.json +1 -1
- package/dist/web/platform.web.js +1 -1
- package/dist/web/route-table.js +105 -4
- package/dist/web/route.web.js +36 -11
- package/dist/web/ui.js +9 -8
- package/dist/web/virtual-list-layout.js +146 -0
- package/dist/web/web/index.js +2 -2
- package/package.json +51 -23
- package/platforms/android/include.gradle +8 -0
- package/platforms/android/native-api-usage.json +8 -0
- package/platforms/ios/Podfile +2 -0
- package/src/Absolute.tsrx +22 -0
- package/src/Absolute.web.tsrx +22 -0
- package/src/Accordion.macos.tsrx +50 -0
- package/src/Accordion.tsrx +50 -0
- package/src/Accordion.web.tsrx +43 -0
- package/src/ActivityIndicator.tsrx +29 -0
- package/src/ActivityIndicator.web.tsrx +14 -0
- package/src/Alert.macos.tsrx +42 -0
- package/src/Alert.tsrx +24 -0
- package/src/Alert.web.tsrx +23 -0
- package/src/Avatar.macos.tsrx +25 -0
- package/src/Avatar.tsrx +25 -0
- package/src/Avatar.web.tsrx +24 -0
- package/src/AvatarGroup.macos.tsrx +32 -0
- package/src/AvatarGroup.tsrx +32 -0
- package/src/AvatarGroup.web.tsrx +29 -0
- package/src/Badge.macos.tsrx +12 -0
- package/src/Badge.tsrx +12 -0
- package/src/Badge.web.tsrx +10 -0
- package/src/Banner.macos.tsrx +20 -0
- package/src/Banner.tsrx +20 -0
- package/src/Banner.web.tsrx +20 -0
- package/src/Breadcrumb.macos.tsrx +27 -0
- package/src/Breadcrumb.tsrx +27 -0
- package/src/Breadcrumb.web.tsrx +25 -0
- package/src/Button.tsrx +23 -0
- package/src/Button.web.tsrx +21 -0
- package/src/CameraView.macos.tsrx +6 -0
- package/src/Card.macos.tsrx +13 -0
- package/src/Card.tsrx +13 -0
- package/src/Card.web.tsrx +11 -0
- package/src/Checkbox.tsrx +23 -0
- package/src/Checkbox.web.tsrx +34 -0
- package/src/CheckboxGroup.macos.tsrx +39 -0
- package/src/CheckboxGroup.tsrx +39 -0
- package/src/CheckboxGroup.web.tsrx +38 -0
- package/src/Chip.macos.tsrx +25 -0
- package/src/Chip.tsrx +25 -0
- package/src/Chip.web.tsrx +25 -0
- package/src/Collapsible.macos.tsrx +39 -0
- package/src/Collapsible.tsrx +39 -0
- package/src/Collapsible.web.tsrx +33 -0
- package/src/CommandPalette.macos.tsrx +58 -0
- package/src/CommandPalette.tsrx +58 -0
- package/src/CommandPalette.web.tsrx +59 -0
- package/src/ContextMenu.macos.tsrx +59 -0
- package/src/ContextMenu.tsrx +59 -0
- package/src/ContextMenu.web.tsrx +69 -0
- package/src/Drawer.macos.tsrx +28 -0
- package/src/Drawer.tsrx +25 -0
- package/src/Drawer.web.tsrx +31 -0
- package/src/DropdownMenu.macos.tsrx +63 -0
- package/src/DropdownMenu.tsrx +63 -0
- package/src/DropdownMenu.web.tsrx +78 -0
- package/src/Empty.macos.tsrx +15 -0
- package/src/Empty.tsrx +15 -0
- package/src/Empty.web.tsrx +13 -0
- package/src/FieldGroup.macos.tsrx +17 -0
- package/src/FieldGroup.tsrx +17 -0
- package/src/FieldGroup.web.tsrx +17 -0
- package/src/FormField.macos.tsrx +25 -0
- package/src/FormField.tsrx +25 -0
- package/src/FormField.web.tsrx +24 -0
- package/src/Grid.tsrx +32 -0
- package/src/Grid.web.tsrx +43 -0
- package/src/Heading.macos.tsrx +8 -0
- package/src/Heading.tsrx +17 -0
- package/src/Heading.web.tsrx +15 -0
- package/src/Hoverable.mobile.tsrx +21 -0
- package/src/Hoverable.tsrx +113 -0
- package/src/Hoverable.web.tsrx +98 -0
- package/src/Icon.macos.tsrx +18 -0
- package/src/Icon.tsrx +65 -0
- package/src/Icon.web.tsrx +75 -0
- package/src/Image.macos.tsrx +12 -0
- package/src/Image.tsrx +51 -0
- package/src/Image.web.tsrx +14 -0
- package/src/InputNumber.macos.tsrx +49 -0
- package/src/InputNumber.tsrx +49 -0
- package/src/InputNumber.web.tsrx +47 -0
- package/src/InputRating.macos.tsrx +42 -0
- package/src/InputRating.tsrx +39 -0
- package/src/InputRating.web.tsrx +52 -0
- package/src/InputTags.macos.tsrx +49 -0
- package/src/InputTags.tsrx +49 -0
- package/src/InputTags.web.tsrx +49 -0
- package/src/Kbd.macos.tsrx +11 -0
- package/src/Kbd.tsrx +11 -0
- package/src/Kbd.web.tsrx +9 -0
- package/src/KeyboardAvoiding.macos.tsrx +8 -0
- package/src/KeyboardAvoiding.mobile.tsrx +63 -0
- package/src/Link.macos.tsrx +15 -0
- package/src/Link.tsrx +10 -0
- package/src/Link.web.tsrx +12 -0
- package/src/ListItem.macos.tsrx +52 -0
- package/src/ListItem.tsrx +52 -0
- package/src/ListItem.web.tsrx +50 -0
- package/src/Meter.macos.tsrx +8 -0
- package/src/Meter.tsrx +45 -0
- package/src/Meter.web.tsrx +32 -0
- package/src/NavLink.macos.tsrx +24 -0
- package/src/NavLink.tsrx +22 -0
- package/src/NavLink.web.tsrx +23 -0
- package/src/NavigationMenu.macos.tsrx +31 -0
- package/src/NavigationMenu.tsrx +28 -0
- package/src/NavigationMenu.web.tsrx +31 -0
- package/src/Overlay.macos.tsrx +11 -0
- package/src/Overlay.tsrx +84 -0
- package/src/Overlay.web.tsrx +23 -0
- package/src/Pagination.macos.tsrx +54 -0
- package/src/Pagination.tsrx +47 -0
- package/src/Pagination.web.tsrx +50 -0
- package/src/PinInput.macos.tsrx +46 -0
- package/src/PinInput.tsrx +46 -0
- package/src/PinInput.web.tsrx +45 -0
- package/src/Popover.macos.tsrx +11 -0
- package/src/Popover.tsrx +157 -0
- package/src/Popover.web.tsrx +109 -0
- package/src/Pressable.macos.tsrx +19 -0
- package/src/Pressable.tsrx +37 -0
- package/src/Pressable.web.tsrx +45 -0
- package/src/ProgressGroup.macos.tsrx +17 -0
- package/src/ProgressGroup.tsrx +17 -0
- package/src/ProgressGroup.web.tsrx +15 -0
- package/src/RadioGroup.macos.tsrx +50 -0
- package/src/RadioGroup.tsrx +34 -0
- package/src/RadioGroup.web.tsrx +43 -0
- package/src/RichText.tsrx +40 -0
- package/src/RichText.web.tsrx +24 -0
- package/src/RouteHost.macos.tsrx +18 -0
- package/src/RouteHost.mobile.tsrx +44 -0
- package/src/Row.macos.tsrx +26 -0
- package/src/Row.tsrx +27 -0
- package/src/Row.web.tsrx +27 -0
- package/src/SafeArea.macos.tsrx +8 -0
- package/src/SafeArea.tsrx +20 -0
- package/src/SafeArea.web.tsrx +24 -0
- package/src/Screen.macos.tsrx +14 -0
- package/src/Screen.tsrx +31 -0
- package/src/Screen.web.tsrx +7 -0
- package/src/ScrollBox.tsrx +8 -0
- package/src/ScrollBox.web.tsrx +7 -0
- package/src/ScrollView.macos.tsrx +19 -0
- package/src/ScrollView.tsrx +117 -0
- package/src/ScrollView.web.tsrx +109 -0
- package/src/SearchInput.tsrx +60 -0
- package/src/SearchInput.web.test.tsrx +58 -0
- package/src/SearchInput.web.tsrx +55 -0
- package/src/SegmentedControl.tsrx +43 -0
- package/src/SegmentedControl.web.test.tsrx +46 -0
- package/src/SegmentedControl.web.tsrx +51 -0
- package/src/Select.macos.tsrx +104 -0
- package/src/Select.tsrx +104 -0
- package/src/Select.web.tsrx +124 -0
- package/src/Separator.macos.tsrx +17 -0
- package/src/Separator.tsrx +17 -0
- package/src/Separator.web.tsrx +17 -0
- package/src/Sheet.macos.tsrx +15 -0
- package/src/Sheet.tsrx +122 -0
- package/src/Sheet.web.tsrx +56 -0
- package/src/Skeleton.macos.tsrx +15 -0
- package/src/Skeleton.tsrx +15 -0
- package/src/Skeleton.web.tsrx +15 -0
- package/src/Slider.tsrx +71 -0
- package/src/Slider.web.tsrx +60 -0
- package/src/Spacer.tsrx +8 -0
- package/src/Spacer.web.tsrx +6 -0
- package/src/Stack.tsrx +24 -0
- package/src/Stack.web.tsrx +22 -0
- package/src/Stepper.macos.tsrx +52 -0
- package/src/Stepper.tsrx +31 -0
- package/src/Stepper.web.tsrx +37 -0
- package/src/Switch.tsrx +21 -0
- package/src/Switch.web.tsrx +28 -0
- package/src/Table.macos.tsrx +37 -0
- package/src/Table.tsrx +37 -0
- package/src/Table.web.tsrx +37 -0
- package/src/Tabs.macos.tsrx +60 -0
- package/src/Tabs.tsrx +55 -0
- package/src/Tabs.web.tsrx +98 -0
- package/src/Text.macos.tsrx +18 -0
- package/src/Text.tsrx +62 -0
- package/src/Text.web.tsrx +31 -0
- package/src/TextArea.tsrx +65 -0
- package/src/TextArea.web.tsrx +61 -0
- package/src/TextInput.tsrx +39 -0
- package/src/TextInput.web.tsrx +28 -0
- package/src/Timeline.macos.tsrx +27 -0
- package/src/Timeline.tsrx +24 -0
- package/src/Timeline.web.tsrx +22 -0
- package/src/Tooltip.mobile.tsrx +20 -0
- package/src/Tooltip.tsrx +102 -0
- package/src/Tooltip.web.tsrx +156 -0
- package/src/Tree.macos.tsrx +45 -0
- package/src/Tree.tsrx +45 -0
- package/src/Tree.web.tsrx +52 -0
- package/src/User.macos.tsrx +24 -0
- package/src/User.tsrx +24 -0
- package/src/User.web.tsrx +24 -0
- package/src/View.macos.tsrx +29 -0
- package/src/View.tsrx +32 -0
- package/src/View.web.tsrx +33 -0
- package/src/VirtualList.macos.tsrx +335 -0
- package/src/VirtualList.tsrx +358 -0
- package/src/VirtualList.web.tsrx +313 -0
- package/src/WebView.macos.tsrx +6 -0
- package/src/WebView.tsrx +89 -0
- package/src/WebView.web.tsrx +92 -0
- package/src/aliases.macos.tsrx +18 -0
- package/src/aliases.tsrx +18 -0
- package/src/aliases.web.tsrx +17 -0
- package/src/android/BottomNavigationView.android.tsrx +170 -0
- package/src/android/CircularProgressIndicator.android.tsrx +19 -0
- package/src/android/DrawerLayout.android.tsrx +48 -0
- package/src/android/MaterialDialog.android.tsrx +62 -0
- package/src/android/MaterialSwitch.android.tsrx +18 -0
- package/src/android/RecyclerView.android.tsrx +173 -0
- package/src/android/SeekBar.android.tsrx +20 -0
- package/src/android/icon.android.ts +8 -0
- package/src/android/index.ts +37 -0
- package/src/android/openModal.android.ts +55 -0
- package/src/anim.macos.tsrx +20 -0
- package/src/anim.tsrx +65 -0
- package/src/anim.web.tsrx +55 -0
- package/src/apply-native-modifiers.native.ts +13 -0
- package/src/camera-permission.web.ts +11 -0
- package/src/child-array.ts +16 -0
- package/src/colorScheme.macos.ts +27 -0
- package/src/controls.macos.tsrx +171 -0
- package/src/cx.ts +8 -0
- package/src/escape-props.macos.ts +11 -0
- package/src/escape-props.ts +70 -0
- package/src/escape-props.web.ts +25 -0
- package/src/hosted-unsupported.macos.tsrx +9 -0
- package/src/icons.ts +60 -0
- package/src/index.linux.ts +10 -0
- package/src/index.macos.ts +106 -0
- package/src/index.mobile.ts +6 -0
- package/src/index.shared.ts +269 -0
- package/src/index.ts +1 -0
- package/src/index.web.ts +261 -0
- package/src/ios/LiquidGlass.ios.tsrx +41 -0
- package/src/ios/LiquidGlassContainer.ios.tsrx +34 -0
- package/src/ios/SideDrawer.ios.tsrx +49 -0
- package/src/ios/UIActivityIndicatorView.ios.tsrx +18 -0
- package/src/ios/UIModal.ios.tsrx +68 -0
- package/src/ios/UISlider.ios.tsrx +20 -0
- package/src/ios/UISwitch.ios.tsrx +18 -0
- package/src/ios/UITabBar.ios.tsrx +172 -0
- package/src/ios/UITableView.ios.tsrx +186 -0
- package/src/ios/icon.ios.ts +8 -0
- package/src/ios/index.ts +42 -0
- package/src/ios/openModal.ios.ts +55 -0
- package/src/keyboard-inset.mobile.ts +89 -0
- package/src/layout-child.ts +57 -0
- package/src/layout-child.web.ts +108 -0
- package/src/layout-shells.macos.tsrx +10 -0
- package/src/layout.macos.tsrx +41 -0
- package/src/macos-extras.macos.tsrx +40 -0
- package/src/meter-math.ts +6 -0
- package/src/modal-presenter.mobile.ts +24 -0
- package/src/modifier-factories.ts +20 -0
- package/src/native/index.ts +6 -0
- package/src/pan.tsrx +64 -0
- package/src/pan.web.tsrx +38 -0
- package/src/platform.macos.ts +1 -0
- package/src/platform.ts +7 -0
- package/src/platform.web.ts +6 -0
- package/src/platformProps.ts +23 -0
- package/src/platformProps.web.ts +14 -0
- package/src/popover-position.ts +62 -0
- package/src/popover.mobile.test.ts +54 -0
- package/src/props.ts +1812 -0
- package/src/references.d.ts +2 -0
- package/src/refresh-metrics.ts +11 -0
- package/src/refresh.ts +271 -0
- package/src/refresh.web.test.ts +111 -0
- package/src/refresh.web.ts +205 -0
- package/src/root-layout.mobile.ts +89 -0
- package/src/route-host.mobile.ts +1 -0
- package/src/route-table.test.ts +345 -0
- package/src/route-table.ts +585 -0
- package/src/route.macos.ts +201 -0
- package/src/route.ts +703 -0
- package/src/route.web.ts +366 -0
- package/src/safeAreaInsets.macos.tsrx +7 -0
- package/src/safeAreaInsets.tsrx +60 -0
- package/src/safeAreaInsets.web.tsrx +38 -0
- package/src/sheet-detents.ts +142 -0
- package/src/sheet-detents.web.ts +147 -0
- package/src/sheet-service.macos.ts +60 -0
- package/src/sheet-service.ts +124 -0
- package/src/sheet-service.web.ts +64 -0
- package/src/sheet-snap.test.ts +46 -0
- package/src/sheet-snap.ts +66 -0
- package/src/stacks.macos.ts +13 -0
- package/src/stacks.ts +44 -0
- package/src/stacks.web.ts +9 -0
- package/src/store.mobile.test.ts +149 -0
- package/src/store.ts +39 -0
- package/src/store.web.test.tsrx +58 -0
- package/src/styled.macos.tsrx +23 -0
- package/src/styled.test.ts +40 -0
- package/src/styled.tsrx +36 -0
- package/src/styled.web.tsrx +23 -0
- package/src/surfaces.macos.tsrx +27 -0
- package/src/svg.mobile.ts +76 -0
- package/src/tap-to-blur.mobile.ts +108 -0
- package/src/text-controls.macos.tsrx +11 -0
- package/src/text-write.ts +28 -0
- package/src/text-write.web.ts +13 -0
- package/src/theme/colorScheme.linux.ts +52 -0
- package/src/theme/colorScheme.ts +26 -0
- package/src/theme/colorScheme.web.ts +20 -0
- package/src/theme/status-bar-scheme.mobile.ts +39 -0
- package/src/theme/theme-scheme.macos.ts +50 -0
- package/src/theme/theme-scheme.ts +66 -0
- package/src/theme/tokens.css +44 -22
- package/src/toast-anchor.macos.tsrx +3 -0
- package/src/toast-anchor.tsrx +122 -0
- package/src/toast-anchor.web.tsrx +92 -0
- package/src/toast.tsrx +90 -0
- package/src/toast.web.tsrx +50 -0
- package/src/transform.web.ts +52 -0
- package/src/translate.macos.ts +5 -0
- package/src/translate.ts +13 -0
- package/src/translate.web.ts +15 -0
- package/src/tsconfig.json +8 -0
- package/src/unsupported.macos.tsrx +5 -0
- package/src/use-back.tsrx +11 -0
- package/src/use-back.web.tsrx +12 -0
- package/src/use-store.tsrx +18 -0
- package/src/use-store.web.tsrx +18 -0
- package/src/useMeasure.macos.tsrx +23 -0
- package/src/useMeasure.tsrx +66 -0
- package/src/useMeasure.web.tsrx +39 -0
- package/src/useStore.macos.tsrx +6 -0
- package/src/vendor/ui-svg/LICENSE +201 -0
- package/src/vendor/ui-svg/index.android.ts +189 -0
- package/src/vendor/ui-svg/index.common.ts +19 -0
- package/src/vendor/ui-svg/index.ios.ts +147 -0
- package/src/vendor/ui-svg/index.ts +1 -0
- package/src/vendor/ui-svg/typings/SVGKit.d.ts +2862 -0
- package/src/vendor/ui-svg/typings/android.d.ts +1483 -0
- package/src/vendor/ui-svg/typings/ios.d.ts +1511 -0
- package/src/virtual-list-layout.test.ts +81 -0
- package/src/virtual-list-layout.ts +246 -0
- package/src/web/index.ts +11 -0
- package/src/windows.linux.ts +59 -0
- package/src/windows.macos.ts +10 -0
- package/src/windows.ts +7 -0
- package/src/windows.web.ts +6 -0
- package/types/generated/.tsrx-typegen-manifest.json +249 -0
- package/types/generated/Absolute.d.ts +3 -0
- package/types/generated/Absolute.web.d.ts +3 -0
- package/types/generated/Accordion.d.ts +5 -0
- package/types/generated/Accordion.web.d.ts +5 -0
- package/types/generated/ActivityIndicator.d.ts +7 -0
- package/types/generated/ActivityIndicator.web.d.ts +3 -0
- package/types/generated/Alert.d.ts +4 -0
- package/types/generated/Alert.web.d.ts +5 -0
- package/types/generated/Avatar.d.ts +6 -0
- package/types/generated/Avatar.web.d.ts +7 -0
- package/types/generated/AvatarGroup.d.ts +6 -0
- package/types/generated/AvatarGroup.web.d.ts +6 -0
- package/types/generated/Badge.d.ts +5 -0
- package/types/generated/Badge.web.d.ts +5 -0
- package/types/generated/Banner.d.ts +4 -0
- package/types/generated/Banner.web.d.ts +4 -0
- package/types/generated/Breadcrumb.d.ts +4 -0
- package/types/generated/Breadcrumb.web.d.ts +5 -0
- package/types/generated/Button.d.ts +6 -0
- package/types/generated/Button.web.d.ts +6 -0
- package/types/generated/Card.d.ts +4 -0
- package/types/generated/Card.web.d.ts +4 -0
- package/types/generated/Checkbox.d.ts +5 -0
- package/types/generated/Checkbox.web.d.ts +6 -0
- package/types/generated/CheckboxGroup.d.ts +3 -0
- package/types/generated/CheckboxGroup.web.d.ts +3 -0
- package/types/generated/Chip.d.ts +5 -0
- package/types/generated/Chip.web.d.ts +5 -0
- package/types/generated/Collapsible.d.ts +5 -0
- package/types/generated/Collapsible.web.d.ts +5 -0
- package/types/generated/CommandPalette.d.ts +4 -0
- package/types/generated/CommandPalette.web.d.ts +4 -0
- package/types/generated/ContextMenu.d.ts +5 -0
- package/types/generated/ContextMenu.web.d.ts +4 -0
- package/types/generated/Drawer.d.ts +7 -0
- package/types/generated/Drawer.web.d.ts +7 -0
- package/types/generated/DropdownMenu.d.ts +5 -0
- package/types/generated/DropdownMenu.web.d.ts +5 -0
- package/types/generated/Empty.d.ts +4 -0
- package/types/generated/Empty.web.d.ts +4 -0
- package/types/generated/FieldGroup.d.ts +4 -0
- package/types/generated/FieldGroup.web.d.ts +4 -0
- package/types/generated/FormField.d.ts +5 -0
- package/types/generated/FormField.web.d.ts +5 -0
- package/types/generated/Grid.d.ts +3 -0
- package/types/generated/Grid.web.d.ts +3 -0
- package/types/generated/Heading.d.ts +2 -0
- package/types/generated/Heading.web.d.ts +2 -0
- package/types/generated/Hoverable.d.ts +10 -0
- package/types/generated/Hoverable.web.d.ts +9 -0
- package/types/generated/Icon.d.ts +3 -0
- package/types/generated/Icon.web.d.ts +3 -0
- package/types/generated/Image.d.ts +7 -0
- package/types/generated/Image.web.d.ts +3 -0
- package/types/generated/InputNumber.d.ts +5 -0
- package/types/generated/InputNumber.web.d.ts +5 -0
- package/types/generated/InputRating.d.ts +4 -0
- package/types/generated/InputRating.web.d.ts +4 -0
- package/types/generated/InputTags.d.ts +4 -0
- package/types/generated/InputTags.web.d.ts +5 -0
- package/types/generated/Kbd.d.ts +4 -0
- package/types/generated/Kbd.web.d.ts +4 -0
- package/types/generated/KeyboardAvoiding.mobile.d.ts +2 -0
- package/types/generated/Link.d.ts +2 -0
- package/types/generated/Link.web.d.ts +3 -0
- package/types/generated/ListItem.d.ts +3 -0
- package/types/generated/ListItem.web.d.ts +3 -0
- package/types/generated/Meter.d.ts +3 -0
- package/types/generated/Meter.web.d.ts +3 -0
- package/types/generated/NavLink.d.ts +3 -0
- package/types/generated/NavLink.web.d.ts +3 -0
- package/types/generated/NavigationMenu.d.ts +4 -0
- package/types/generated/NavigationMenu.web.d.ts +5 -0
- package/types/generated/Overlay.d.ts +3 -0
- package/types/generated/Overlay.web.d.ts +3 -0
- package/types/generated/Pagination.d.ts +4 -0
- package/types/generated/Pagination.web.d.ts +5 -0
- package/types/generated/PinInput.d.ts +4 -0
- package/types/generated/PinInput.web.d.ts +4 -0
- package/types/generated/Popover.d.ts +6 -0
- package/types/generated/Popover.web.d.ts +3 -0
- package/types/generated/Pressable.d.ts +6 -0
- package/types/generated/Pressable.web.d.ts +2 -0
- package/types/generated/ProgressGroup.d.ts +3 -0
- package/types/generated/ProgressGroup.web.d.ts +4 -0
- package/types/generated/RadioGroup.d.ts +5 -0
- package/types/generated/RadioGroup.web.d.ts +5 -0
- package/types/generated/RichText.d.ts +7 -0
- package/types/generated/RichText.web.d.ts +3 -0
- package/types/generated/RouteHost.mobile.d.ts +14 -0
- package/types/generated/Row.d.ts +2 -0
- package/types/generated/Row.web.d.ts +2 -0
- package/types/generated/SafeArea.d.ts +2 -0
- package/types/generated/SafeArea.web.d.ts +3 -0
- package/types/generated/Screen.d.ts +3 -0
- package/types/generated/Screen.web.d.ts +3 -0
- package/types/generated/ScrollBox.d.ts +3 -0
- package/types/generated/ScrollBox.web.d.ts +3 -0
- package/types/generated/ScrollView.d.ts +7 -0
- package/types/generated/ScrollView.web.d.ts +6 -0
- package/types/generated/SearchInput.d.ts +7 -0
- package/types/generated/SearchInput.web.d.ts +6 -0
- package/types/generated/SegmentedControl.d.ts +7 -0
- package/types/generated/SegmentedControl.web.d.ts +6 -0
- package/types/generated/Select.d.ts +6 -0
- package/types/generated/Select.web.d.ts +6 -0
- package/types/generated/Separator.d.ts +5 -0
- package/types/generated/Separator.web.d.ts +5 -0
- package/types/generated/Sheet.d.ts +5 -0
- package/types/generated/Sheet.web.d.ts +7 -0
- package/types/generated/Skeleton.d.ts +5 -0
- package/types/generated/Skeleton.web.d.ts +6 -0
- package/types/generated/Slider.d.ts +6 -0
- package/types/generated/Slider.web.d.ts +6 -0
- package/types/generated/Spacer.d.ts +3 -0
- package/types/generated/Spacer.web.d.ts +3 -0
- package/types/generated/Stack.d.ts +3 -0
- package/types/generated/Stack.web.d.ts +3 -0
- package/types/generated/Stepper.d.ts +4 -0
- package/types/generated/Stepper.web.d.ts +5 -0
- package/types/generated/Switch.d.ts +7 -0
- package/types/generated/Switch.web.d.ts +6 -0
- package/types/generated/Table.d.ts +4 -0
- package/types/generated/Table.web.d.ts +5 -0
- package/types/generated/Tabs.d.ts +10 -0
- package/types/generated/Tabs.web.d.ts +6 -0
- package/types/generated/Text.d.ts +2 -0
- package/types/generated/Text.web.d.ts +2 -0
- package/types/generated/TextArea.d.ts +8 -0
- package/types/generated/TextArea.web.d.ts +9 -0
- package/types/generated/TextInput.d.ts +9 -0
- package/types/generated/TextInput.web.d.ts +2 -0
- package/types/generated/Timeline.d.ts +3 -0
- package/types/generated/Timeline.web.d.ts +4 -0
- package/types/generated/Tooltip.d.ts +9 -0
- package/types/generated/Tooltip.web.d.ts +12 -0
- package/types/generated/Tree.d.ts +4 -0
- package/types/generated/Tree.web.d.ts +4 -0
- package/types/generated/User.d.ts +5 -0
- package/types/generated/User.web.d.ts +5 -0
- package/types/generated/View.d.ts +7 -0
- package/types/generated/View.web.d.ts +7 -0
- package/types/generated/VirtualList.d.ts +5 -0
- package/types/generated/VirtualList.web.d.ts +4 -0
- package/types/generated/WebView.d.ts +11 -0
- package/types/generated/WebView.web.d.ts +5 -0
- package/types/generated/aliases.d.ts +7 -0
- package/types/generated/aliases.web.d.ts +7 -0
- package/types/generated/android/BottomNavigationView.android.d.ts +9 -0
- package/types/generated/android/CircularProgressIndicator.android.d.ts +6 -0
- package/types/generated/android/DrawerLayout.android.d.ts +12 -0
- package/types/generated/android/MaterialDialog.android.d.ts +8 -0
- package/types/generated/android/MaterialSwitch.android.d.ts +6 -0
- package/types/generated/android/RecyclerView.android.d.ts +14 -0
- package/types/generated/android/SeekBar.android.d.ts +5 -0
- package/types/generated/android/icon.android.d.ts +5 -0
- package/types/generated/android/index.d.ts +12 -0
- package/types/generated/android/openModal.android.d.ts +4 -0
- package/types/generated/anim.d.ts +10 -0
- package/types/generated/anim.web.d.ts +3 -0
- package/types/generated/apply-native-modifiers.native.d.ts +3 -0
- package/types/generated/child-array.d.ts +3 -0
- package/types/generated/cx.d.ts +6 -0
- package/types/generated/escape-props.d.ts +16 -0
- package/types/generated/icons.d.ts +5 -0
- package/types/generated/index.d.ts +1 -0
- package/types/generated/index.linux.d.ts +5 -0
- package/types/generated/index.mobile.d.ts +4 -0
- package/types/generated/index.shared.d.ts +111 -0
- package/types/generated/index.web.d.ts +111 -0
- package/types/generated/ios/LiquidGlass.ios.d.ts +12 -0
- package/types/generated/ios/LiquidGlassContainer.ios.d.ts +13 -0
- package/types/generated/ios/SideDrawer.ios.d.ts +12 -0
- package/types/generated/ios/UIActivityIndicatorView.ios.d.ts +5 -0
- package/types/generated/ios/UIModal.ios.d.ts +7 -0
- package/types/generated/ios/UISlider.ios.d.ts +5 -0
- package/types/generated/ios/UISwitch.ios.d.ts +6 -0
- package/types/generated/ios/UITabBar.ios.d.ts +7 -0
- package/types/generated/ios/UITableView.ios.d.ts +14 -0
- package/types/generated/ios/icon.ios.d.ts +5 -0
- package/types/generated/ios/index.d.ts +14 -0
- package/types/generated/ios/openModal.ios.d.ts +4 -0
- package/types/generated/keyboard-inset.mobile.d.ts +10 -0
- package/types/generated/layout-child.d.ts +6 -0
- package/types/generated/layout-child.web.d.ts +15 -0
- package/types/generated/meter-math.d.ts +6 -0
- package/types/generated/modal-presenter.mobile.d.ts +14 -0
- package/types/generated/modifier-factories.d.ts +15 -0
- package/types/generated/native/index.d.ts +3 -0
- package/types/generated/pan.d.ts +2 -0
- package/types/generated/pan.web.d.ts +9 -0
- package/types/generated/platform.d.ts +7 -0
- package/types/generated/platform.web.d.ts +6 -0
- package/types/generated/platformProps.d.ts +7 -0
- package/types/generated/platformProps.web.d.ts +2 -0
- package/types/generated/popover-position.d.ts +14 -0
- package/types/{props.d.ts → generated/props.d.ts} +127 -133
- package/types/generated/refresh-metrics.d.ts +8 -0
- package/types/generated/refresh.d.ts +42 -0
- package/types/generated/refresh.web.d.ts +23 -0
- package/types/generated/root-layout.mobile.d.ts +22 -0
- package/types/generated/route-host.mobile.d.ts +1 -0
- package/types/generated/route-table.d.ts +90 -0
- package/types/generated/route.d.ts +74 -0
- package/types/generated/route.web.d.ts +67 -0
- package/types/generated/safeAreaInsets.d.ts +8 -0
- package/types/generated/safeAreaInsets.web.d.ts +8 -0
- package/types/generated/sheet-detents.d.ts +23 -0
- package/types/generated/sheet-detents.web.d.ts +13 -0
- package/types/generated/sheet-service.d.ts +11 -0
- package/types/generated/sheet-service.web.d.ts +6 -0
- package/types/generated/sheet-snap.d.ts +18 -0
- package/types/generated/stacks.d.ts +9 -0
- package/types/generated/stacks.web.d.ts +4 -0
- package/types/generated/store.d.ts +14 -0
- package/types/generated/styled.d.ts +20 -0
- package/types/generated/styled.web.d.ts +10 -0
- package/types/generated/svg.mobile.d.ts +23 -0
- package/types/generated/tap-to-blur.mobile.d.ts +16 -0
- package/types/generated/text-write.d.ts +9 -0
- package/types/generated/theme/colorScheme.d.ts +6 -0
- package/types/generated/theme/colorScheme.linux.d.ts +5 -0
- package/types/generated/theme/colorScheme.web.d.ts +5 -0
- package/types/generated/theme/status-bar-scheme.mobile.d.ts +1 -0
- package/types/generated/theme/theme-scheme.d.ts +20 -0
- package/types/generated/toast-anchor.d.ts +4 -0
- package/types/generated/toast-anchor.web.d.ts +4 -0
- package/types/generated/transform.web.d.ts +8 -0
- package/types/generated/translate.d.ts +5 -0
- package/types/generated/translate.web.d.ts +6 -0
- package/types/generated/use-back.d.ts +6 -0
- package/types/generated/use-back.web.d.ts +7 -0
- package/types/generated/use-store.d.ts +9 -0
- package/types/generated/use-store.web.d.ts +9 -0
- package/types/generated/useMeasure.d.ts +3 -0
- package/types/generated/useMeasure.web.d.ts +3 -0
- package/types/generated/vendor/ui-svg/index.common.d.ts +7 -0
- package/types/generated/vendor/ui-svg/index.d.ts +1 -0
- package/types/generated/vendor/ui-svg/index.ios.d.ts +13 -0
- package/types/generated/virtual-list-layout.d.ts +44 -0
- package/types/generated/web/index.d.ts +3 -0
- package/types/generated/windows.d.ts +3 -0
- package/types/generated/windows.linux.d.ts +15 -0
- package/types/generated/windows.web.d.ts +3 -0
- package/types/index.macos.d.ts +142 -0
- package/dist/native/CameraView.native.tsrx.js +0 -165
- package/dist/native/Meter.native.tsrx.js +0 -92
- package/dist/native/Pager.native.tsrx.js +0 -282
- package/dist/native/Video.native.tsrx.js +0 -248
- package/dist/native/camera-permission.native.js +0 -47
- package/dist/native/safeAreaInsets.native.tsrx.js +0 -35
- package/dist/native/video-chrome.native.tsrx.js +0 -365
- package/dist/web/CameraView.web.tsrx.js +0 -310
- package/dist/web/Pager.web.tsrx.js +0 -337
- package/dist/web/Video.web.tsrx.js +0 -400
- package/dist/web/video-chrome.web.tsrx.js +0 -207
- package/types/android.d.ts +0 -53
- package/types/index.d.ts +0 -273
- package/types/index.native.d.ts +0 -273
- package/types/index.web.d.ts +0 -272
- package/types/ios.d.ts +0 -59
- package/types/native.d.ts +0 -5
- package/types/web.d.ts +0 -17
|
@@ -0,0 +1,622 @@
|
|
|
1
|
+
import { applyEscapeProps } from "./escape-props.web.js";
|
|
2
|
+
import { layoutChildProps } from "./layout-child.web.js";
|
|
3
|
+
import { VirtualListSizeIndex, createVirtualListEntries, estimateVirtualListSizes, virtualListMeasurementKey, virtualListRange } from "./virtual-list-layout.js";
|
|
4
|
+
import { __s, bag3, bag4, bag6, bagOf, child, clone, createScopedElement, drainFrag, forBlock, hookSlots, ifBlock, queueRefAttach, queueRefDetach, setStyleProperty, sibling, snapshotSpread, template, useEffect, useRef, useState } from "octane";
|
|
5
|
+
import { bindSignalChild, bindSignalHostPropSources, compilerMemoRegion, enableSignalBindings, hookMemoCreate, hookMemoEqual, hookMemoPublish3, replaceRef } from "octane/internal/client";
|
|
6
|
+
//#region src/VirtualList.web.tsrx
|
|
7
|
+
enableSignalBindings(1, true);
|
|
8
|
+
var _t$0 = /* @__PURE__ */ template("<div class=\"vx-virtual-list-header\"></div>");
|
|
9
|
+
var _t$1 = /* @__PURE__ */ template("<!>", 0, 1);
|
|
10
|
+
var _t$2 = /* @__PURE__ */ template("<div class=\"vx-virtual-list-separator\"></div>");
|
|
11
|
+
var _t$3 = /* @__PURE__ */ template("<div class=\"vx-virtual-list-row\" data-vx-row=\"true\"><div class=\"vx-virtual-list-item\"></div><!></div>");
|
|
12
|
+
var _t$4 = /* @__PURE__ */ template("<div class=\"vx-virtual-list-spacer\" aria-hidden=\"true\"></div><!><div class=\"vx-virtual-list-spacer\" aria-hidden=\"true\"></div>", 0, 1);
|
|
13
|
+
var _t$5 = /* @__PURE__ */ template("<div class=\"vx-virtual-list-footer\"></div>");
|
|
14
|
+
var _t$6 = /* @__PURE__ */ template("<div><!><!><!></div>");
|
|
15
|
+
var _hs$ = /* @__PURE__ */ hookSlots(19);
|
|
16
|
+
var _rm$2 = [
|
|
17
|
+
"r",
|
|
18
|
+
"b",
|
|
19
|
+
"a"
|
|
20
|
+
];
|
|
21
|
+
function __then$0(__props, __s, __extra) {
|
|
22
|
+
const bindObservedNode = __extra[0];
|
|
23
|
+
const props = __extra[1];
|
|
24
|
+
let _b = __s.slots[0];
|
|
25
|
+
if (_b === void 0) {
|
|
26
|
+
let _m0, _m1;
|
|
27
|
+
const _root = clone(_t$0);
|
|
28
|
+
queueRefAttach(__s, _m1 = (node) => bindObservedNode("header", node, { kind: "header" }), _m0 = _root);
|
|
29
|
+
(__s.cleanups ??= []).push(() => _b && queueRefDetach(_b.b, _b.a));
|
|
30
|
+
_b = bag4(__s, _root, _m0, _m1, null, void 0);
|
|
31
|
+
__s.refFields = _rm$2;
|
|
32
|
+
} else {
|
|
33
|
+
const _r = (node) => bindObservedNode("header", node, { kind: "header" });
|
|
34
|
+
if (_r !== _b.b) _b.b = replaceRef(__s, _b.b, _r, _b.a);
|
|
35
|
+
}
|
|
36
|
+
_b.e = bindSignalChild(__s, _b.e, 1, _b.a, props.renderHeader(), "b:94822c57", null, void 0, void 0, void 0, true);
|
|
37
|
+
}
|
|
38
|
+
function __then$4(__props, __s, __extra) {
|
|
39
|
+
const __block = __s.block;
|
|
40
|
+
const props = __extra[3];
|
|
41
|
+
let _b = __s.slots[0];
|
|
42
|
+
if (_b === void 0) {
|
|
43
|
+
let _m0, _m1;
|
|
44
|
+
const _root = clone(_t$1);
|
|
45
|
+
_m0 = __block.parentNode;
|
|
46
|
+
_m1 = child(_root);
|
|
47
|
+
drainFrag(_root, __block.parentNode, __block.endMarker);
|
|
48
|
+
_b = bag4(__s, null, _m0, _m1, null, void 0);
|
|
49
|
+
}
|
|
50
|
+
_b.e = bindSignalChild(__s, _b.e, 1, _b.a, props.renderEmpty ? createScopedElement("div", { className: "vx-virtual-list-empty" }, () => props.renderEmpty()) : null, "b:e8241bf2", _b.b, true, void 0, true, void 0);
|
|
51
|
+
}
|
|
52
|
+
var _key$7 = (entry) => entry.rowKey;
|
|
53
|
+
function __then$10(__props, __s, __extra) {
|
|
54
|
+
const props = __extra[0];
|
|
55
|
+
let _b = __s.slots[0];
|
|
56
|
+
if (_b === void 0) {
|
|
57
|
+
let _m0;
|
|
58
|
+
const _root = clone(_t$2);
|
|
59
|
+
_m0 = _root;
|
|
60
|
+
_b = bag3(__s, _root, _m0, null, void 0);
|
|
61
|
+
}
|
|
62
|
+
_b.d = bindSignalChild(__s, _b.d, 1, _b.a, props.renderSeparator?.(), "b:d89a1727", null, void 0, void 0, void 0, true);
|
|
63
|
+
}
|
|
64
|
+
var _rm$13 = [
|
|
65
|
+
"r",
|
|
66
|
+
"b",
|
|
67
|
+
"a"
|
|
68
|
+
];
|
|
69
|
+
function __item$8(entry, __s, __extra) {
|
|
70
|
+
const bindObservedNode = __extra[0];
|
|
71
|
+
const entries = __extra[1];
|
|
72
|
+
const hasSeparator = __extra[2];
|
|
73
|
+
const props = __extra[3];
|
|
74
|
+
let _b = __s.slots[0];
|
|
75
|
+
if (_b === void 0) {
|
|
76
|
+
let _m0, _m1, _m2, _m3;
|
|
77
|
+
const _root = clone(_t$3);
|
|
78
|
+
queueRefAttach(__s, _m1 = (node) => bindObservedNode("row:" + virtualListMeasurementKey(entry.rowKey, hasSeparator && entry.index < entries.length - 1), node, {
|
|
79
|
+
kind: "row",
|
|
80
|
+
rowKey: entry.rowKey
|
|
81
|
+
}), _m0 = _root);
|
|
82
|
+
(__s.cleanups ??= []).push(() => _b && queueRefDetach(_b.b, _b.a));
|
|
83
|
+
_m2 = sibling(child(_root), 1);
|
|
84
|
+
_m3 = child(_root);
|
|
85
|
+
_b = bag6(__s, _root, _m0, _m1, _m2, _m3, null, void 0);
|
|
86
|
+
__s.refFields = _rm$13;
|
|
87
|
+
} else {
|
|
88
|
+
const _r = (node) => bindObservedNode("row:" + virtualListMeasurementKey(entry.rowKey, hasSeparator && entry.index < entries.length - 1), node, {
|
|
89
|
+
kind: "row",
|
|
90
|
+
rowKey: entry.rowKey
|
|
91
|
+
});
|
|
92
|
+
if (_r !== _b.b) _b.b = replaceRef(__s, _b.b, _r, _b.a);
|
|
93
|
+
}
|
|
94
|
+
_b.g = bindSignalChild(__s, _b.g, 1, _b.d, props.renderItem(entry.item, entry.index), "b:a1d755a0", null, void 0, void 0, void 0, true);
|
|
95
|
+
{
|
|
96
|
+
const __ifCondition = hasSeparator && entry.index < entries.length - 1;
|
|
97
|
+
ifBlock(__s, 2, _b.a, __ifCondition, __then$10, null, _b.c, __ifCondition ? [props] : void 0);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
function __else$6(__props, __s, __extra) {
|
|
101
|
+
const __block = __s.block;
|
|
102
|
+
const bindObservedNode = __extra[0];
|
|
103
|
+
const entries = __extra[1];
|
|
104
|
+
const hasSeparator = __extra[2];
|
|
105
|
+
const props = __extra[3];
|
|
106
|
+
const range = __extra[4];
|
|
107
|
+
const visibleEntries = __extra[5];
|
|
108
|
+
let _b = __s.slots[0];
|
|
109
|
+
if (_b === void 0) {
|
|
110
|
+
let _m1, _m3, _m4, _m5;
|
|
111
|
+
const _root = clone(_t$4);
|
|
112
|
+
const _el0 = child(_root);
|
|
113
|
+
_m1 = _el0;
|
|
114
|
+
_m3 = sibling(_el0, 2);
|
|
115
|
+
_m4 = __block.parentNode;
|
|
116
|
+
_m5 = sibling(_el0, 1);
|
|
117
|
+
drainFrag(_root, __block.parentNode, __block.endMarker);
|
|
118
|
+
_b = bag6(__s, null, __s, _m1, __s, _m3, _m4, _m5);
|
|
119
|
+
}
|
|
120
|
+
{
|
|
121
|
+
const _v = range.top;
|
|
122
|
+
if (_b.a !== _v) {
|
|
123
|
+
setStyleProperty(_b.b, "height", _v, "", _b.a);
|
|
124
|
+
_b.a = _v;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
{
|
|
128
|
+
const _v = range.bottom;
|
|
129
|
+
if (_b.c !== _v) {
|
|
130
|
+
setStyleProperty(_b.d, "height", _v, "", _b.c);
|
|
131
|
+
_b.c = _v;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
forBlock(__s, 1, _b.e, visibleEntries, _key$7, __item$8, 58, [
|
|
135
|
+
bindObservedNode,
|
|
136
|
+
entries,
|
|
137
|
+
hasSeparator,
|
|
138
|
+
props
|
|
139
|
+
], null, _b.f, true, "f3hnb6e");
|
|
140
|
+
}
|
|
141
|
+
var _rm$18 = [
|
|
142
|
+
"r",
|
|
143
|
+
"b",
|
|
144
|
+
"a"
|
|
145
|
+
];
|
|
146
|
+
function __then$16(__props, __s, __extra) {
|
|
147
|
+
const bindObservedNode = __extra[0];
|
|
148
|
+
const props = __extra[1];
|
|
149
|
+
let _b = __s.slots[0];
|
|
150
|
+
if (_b === void 0) {
|
|
151
|
+
let _m0, _m1;
|
|
152
|
+
const _root = clone(_t$5);
|
|
153
|
+
queueRefAttach(__s, _m1 = (node) => bindObservedNode("footer", node, { kind: "footer" }), _m0 = _root);
|
|
154
|
+
(__s.cleanups ??= []).push(() => _b && queueRefDetach(_b.b, _b.a));
|
|
155
|
+
_b = bag4(__s, _root, _m0, _m1, null, void 0);
|
|
156
|
+
__s.refFields = _rm$18;
|
|
157
|
+
} else {
|
|
158
|
+
const _r = (node) => bindObservedNode("footer", node, { kind: "footer" });
|
|
159
|
+
if (_r !== _b.b) _b.b = replaceRef(__s, _b.b, _r, _b.a);
|
|
160
|
+
}
|
|
161
|
+
_b.e = bindSignalChild(__s, _b.e, 1, _b.a, props.renderFooter(), "b:d63031d4", null, void 0, void 0, void 0, true);
|
|
162
|
+
}
|
|
163
|
+
var _rm$20 = [
|
|
164
|
+
"s",
|
|
165
|
+
"p",
|
|
166
|
+
"o"
|
|
167
|
+
];
|
|
168
|
+
function sameSize(a, b) {
|
|
169
|
+
return Math.abs(a - b) < .5;
|
|
170
|
+
}
|
|
171
|
+
var VirtualList = /* @__PURE__ */ __s(function VirtualList(props, __s, __extra) {
|
|
172
|
+
const __memoRegion = compilerMemoRegion(__s, _hs$ + 0);
|
|
173
|
+
let __hk = __memoRegion.hooks;
|
|
174
|
+
if (__hk === void 0) __memoRegion.hooks = __hk = hookMemoCreate(5);
|
|
175
|
+
let __hkd0, __hkd1, __hkd2;
|
|
176
|
+
const entries = (__hkd0 = props.items, __hkd1 = props.keyExtractor, __hkd2 = props.getItemType, __hk[0] !== true || !hookMemoEqual(__hk[1], __hkd0) || !hookMemoEqual(__hk[2], __hkd1) || !hookMemoEqual(__hk[3], __hkd2) ? hookMemoPublish3(__hk, 0, createVirtualListEntries(props.items, props.keyExtractor, props.getItemType), __hkd0, __hkd1, __hkd2) : __hk[4]);
|
|
177
|
+
const [windowVersion, setWindowVersion] = useState(0, _hs$ + 0);
|
|
178
|
+
const sizeIndexRef = useRef(new VirtualListSizeIndex(), _hs$ + 1);
|
|
179
|
+
const sizeCacheRef = useRef(/* @__PURE__ */ new Map(), _hs$ + 2);
|
|
180
|
+
const entriesRef = useRef([], _hs$ + 3);
|
|
181
|
+
const indexByRowKeyRef = useRef(/* @__PURE__ */ new Map(), _hs$ + 4);
|
|
182
|
+
const scrollRef = useRef(null, _hs$ + 5);
|
|
183
|
+
const scrollOffsetRef = useRef(0, _hs$ + 6);
|
|
184
|
+
const viewportHeightRef = useRef(0, _hs$ + 7);
|
|
185
|
+
const viewportWidthRef = useRef(0, _hs$ + 8);
|
|
186
|
+
const headerHeightRef = useRef(0, _hs$ + 9);
|
|
187
|
+
const footerHeightRef = useRef(0, _hs$ + 10);
|
|
188
|
+
const observerRef = useRef(null, _hs$ + 11);
|
|
189
|
+
const estimateScheduledRef = useRef(false, _hs$ + 12);
|
|
190
|
+
const nodesBySlotRef = useRef(/* @__PURE__ */ new Map(), _hs$ + 13);
|
|
191
|
+
const metaByNodeRef = useRef(/* @__PURE__ */ new WeakMap(), _hs$ + 14);
|
|
192
|
+
const rangeRef = useRef({
|
|
193
|
+
start: -1,
|
|
194
|
+
end: -1,
|
|
195
|
+
top: -1,
|
|
196
|
+
bottom: -1
|
|
197
|
+
}, _hs$ + 15);
|
|
198
|
+
const handlersRef = useRef(() => {}, _hs$ + 16);
|
|
199
|
+
const hasSeparator = Boolean(props.renderSeparator);
|
|
200
|
+
const hasSeparatorRef = useRef(hasSeparator, _hs$ + 17);
|
|
201
|
+
hasSeparatorRef.current = hasSeparator;
|
|
202
|
+
function rebuildLayout(nextEntries, width) {
|
|
203
|
+
entriesRef.current = nextEntries;
|
|
204
|
+
const indexByKey = /* @__PURE__ */ new Map();
|
|
205
|
+
const activeMeasurements = /* @__PURE__ */ new Set();
|
|
206
|
+
for (const entry of nextEntries) {
|
|
207
|
+
indexByKey.set(entry.rowKey, entry.index);
|
|
208
|
+
const cacheKey = virtualListMeasurementKey(entry.rowKey, hasSeparatorRef.current && entry.index < nextEntries.length - 1);
|
|
209
|
+
activeMeasurements.add(cacheKey);
|
|
210
|
+
}
|
|
211
|
+
for (const cacheKey of sizeCacheRef.current.keys()) if (!activeMeasurements.has(cacheKey)) sizeCacheRef.current.delete(cacheKey);
|
|
212
|
+
indexByRowKeyRef.current = indexByKey;
|
|
213
|
+
sizeIndexRef.current.reset(estimateVirtualListSizes(nextEntries, hasSeparatorRef.current, width, sizeCacheRef.current));
|
|
214
|
+
}
|
|
215
|
+
if (entries !== entriesRef.current) rebuildLayout(entries, viewportWidthRef.current);
|
|
216
|
+
function currentRange() {
|
|
217
|
+
const listOffset = Math.max(0, scrollOffsetRef.current - headerHeightRef.current);
|
|
218
|
+
return virtualListRange(sizeIndexRef.current, listOffset, viewportHeightRef.current, viewportHeightRef.current);
|
|
219
|
+
}
|
|
220
|
+
function refreshWindow() {
|
|
221
|
+
const next = currentRange();
|
|
222
|
+
const previous = rangeRef.current;
|
|
223
|
+
if (next.start !== previous.start || next.end !== previous.end || !sameSize(next.top, previous.top) || !sameSize(next.bottom, previous.bottom)) {
|
|
224
|
+
rangeRef.current = next;
|
|
225
|
+
setWindowVersion((version) => version + 1);
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
function captureAnchor() {
|
|
229
|
+
const listOffset = scrollOffsetRef.current - headerHeightRef.current;
|
|
230
|
+
if (listOffset < 0 || entriesRef.current.length === 0) return null;
|
|
231
|
+
const index = sizeIndexRef.current.indexAt(listOffset);
|
|
232
|
+
const entry = entriesRef.current[index];
|
|
233
|
+
if (!entry) return null;
|
|
234
|
+
return {
|
|
235
|
+
rowKey: entry.rowKey,
|
|
236
|
+
index,
|
|
237
|
+
within: listOffset - sizeIndexRef.current.prefix(index)
|
|
238
|
+
};
|
|
239
|
+
}
|
|
240
|
+
function restoreAnchor(anchor) {
|
|
241
|
+
if (!anchor) return;
|
|
242
|
+
const index = indexByRowKeyRef.current.get(anchor.rowKey);
|
|
243
|
+
if (index === void 0) return;
|
|
244
|
+
const nextOffset = Math.max(0, headerHeightRef.current + sizeIndexRef.current.prefix(index) + anchor.within);
|
|
245
|
+
if (sameSize(nextOffset, scrollOffsetRef.current)) return;
|
|
246
|
+
scrollOffsetRef.current = nextOffset;
|
|
247
|
+
if (scrollRef.current) scrollRef.current.scrollTop = nextOffset;
|
|
248
|
+
}
|
|
249
|
+
function scheduleEstimateRebuild() {
|
|
250
|
+
if (estimateScheduledRef.current) return;
|
|
251
|
+
estimateScheduledRef.current = true;
|
|
252
|
+
Promise.resolve().then(() => {
|
|
253
|
+
estimateScheduledRef.current = false;
|
|
254
|
+
const anchor = captureAnchor();
|
|
255
|
+
rebuildLayout(entriesRef.current, viewportWidthRef.current);
|
|
256
|
+
restoreAnchor(anchor);
|
|
257
|
+
refreshWindow();
|
|
258
|
+
});
|
|
259
|
+
}
|
|
260
|
+
function recordRowSize(rowKey, width, height) {
|
|
261
|
+
if (!Number.isFinite(height) || height < 0) return;
|
|
262
|
+
const index = indexByRowKeyRef.current.get(rowKey);
|
|
263
|
+
if (index === void 0) return;
|
|
264
|
+
if (!entriesRef.current[index]) return;
|
|
265
|
+
const hasRowSeparator = hasSeparatorRef.current && index < entriesRef.current.length - 1;
|
|
266
|
+
const cacheKey = virtualListMeasurementKey(rowKey, hasRowSeparator);
|
|
267
|
+
sizeCacheRef.current.set(cacheKey, {
|
|
268
|
+
width,
|
|
269
|
+
height
|
|
270
|
+
});
|
|
271
|
+
const anchor = captureAnchor();
|
|
272
|
+
const delta = sizeIndexRef.current.set(index, height);
|
|
273
|
+
if (Math.abs(delta) >= .5) {
|
|
274
|
+
if (anchor && index < anchor.index) restoreAnchor(anchor);
|
|
275
|
+
refreshWindow();
|
|
276
|
+
}
|
|
277
|
+
scheduleEstimateRebuild();
|
|
278
|
+
}
|
|
279
|
+
function bindObservedNode(slot, node, meta) {
|
|
280
|
+
const previous = nodesBySlotRef.current.get(slot);
|
|
281
|
+
if (previous && previous !== node) {
|
|
282
|
+
observerRef.current?.unobserve(previous);
|
|
283
|
+
metaByNodeRef.current.delete(previous);
|
|
284
|
+
nodesBySlotRef.current.delete(slot);
|
|
285
|
+
}
|
|
286
|
+
if (!node) {
|
|
287
|
+
if (previous) {
|
|
288
|
+
observerRef.current?.unobserve(previous);
|
|
289
|
+
metaByNodeRef.current.delete(previous);
|
|
290
|
+
nodesBySlotRef.current.delete(slot);
|
|
291
|
+
}
|
|
292
|
+
return;
|
|
293
|
+
}
|
|
294
|
+
nodesBySlotRef.current.set(slot, node);
|
|
295
|
+
metaByNodeRef.current.set(node, meta);
|
|
296
|
+
observerRef.current?.observe(node);
|
|
297
|
+
}
|
|
298
|
+
handlersRef.current = (meta, entry) => {
|
|
299
|
+
if (meta.kind === "viewport") {
|
|
300
|
+
const width = scrollRef.current?.clientWidth ?? entry.contentRect.width;
|
|
301
|
+
const height = scrollRef.current?.clientHeight ?? entry.contentRect.height;
|
|
302
|
+
const widthChanged = !sameSize(width, viewportWidthRef.current);
|
|
303
|
+
viewportHeightRef.current = height;
|
|
304
|
+
if (widthChanged) {
|
|
305
|
+
const anchor = captureAnchor();
|
|
306
|
+
viewportWidthRef.current = width;
|
|
307
|
+
rebuildLayout(entriesRef.current, width);
|
|
308
|
+
restoreAnchor(anchor);
|
|
309
|
+
}
|
|
310
|
+
refreshWindow();
|
|
311
|
+
return;
|
|
312
|
+
}
|
|
313
|
+
const height = entry.contentRect.height;
|
|
314
|
+
if (meta.kind === "row") {
|
|
315
|
+
recordRowSize(meta.rowKey, entry.contentRect.width, height);
|
|
316
|
+
return;
|
|
317
|
+
}
|
|
318
|
+
if (meta.kind === "header" && !sameSize(height, headerHeightRef.current)) {
|
|
319
|
+
const anchor = captureAnchor();
|
|
320
|
+
headerHeightRef.current = height;
|
|
321
|
+
restoreAnchor(anchor);
|
|
322
|
+
refreshWindow();
|
|
323
|
+
} else if (meta.kind === "footer" && !sameSize(height, footerHeightRef.current)) {
|
|
324
|
+
footerHeightRef.current = height;
|
|
325
|
+
refreshWindow();
|
|
326
|
+
}
|
|
327
|
+
};
|
|
328
|
+
useEffect(() => {
|
|
329
|
+
if (typeof ResizeObserver === "undefined") return;
|
|
330
|
+
const observer = new ResizeObserver((records) => {
|
|
331
|
+
for (const record of records) {
|
|
332
|
+
const meta = metaByNodeRef.current.get(record.target);
|
|
333
|
+
if (meta) handlersRef.current(meta, record);
|
|
334
|
+
}
|
|
335
|
+
});
|
|
336
|
+
observerRef.current = observer;
|
|
337
|
+
for (const node of nodesBySlotRef.current.values()) observer.observe(node);
|
|
338
|
+
return () => {
|
|
339
|
+
observer.disconnect();
|
|
340
|
+
observerRef.current = null;
|
|
341
|
+
};
|
|
342
|
+
}, [], _hs$ + 18);
|
|
343
|
+
function onScroll(event) {
|
|
344
|
+
const root = event.currentTarget;
|
|
345
|
+
scrollOffsetRef.current = root.scrollTop;
|
|
346
|
+
refreshWindow();
|
|
347
|
+
}
|
|
348
|
+
const range = currentRange();
|
|
349
|
+
rangeRef.current = range;
|
|
350
|
+
const visibleEntries = entries.slice(range.start, range.end);
|
|
351
|
+
const style = {
|
|
352
|
+
...props.style,
|
|
353
|
+
minHeight: props.style?.minHeight ?? 0,
|
|
354
|
+
overflowY: "auto",
|
|
355
|
+
overflowX: "hidden",
|
|
356
|
+
overflowAnchor: "none"
|
|
357
|
+
};
|
|
358
|
+
if (__s.block.pending && !__s.block.crossRenderUpdate) return;
|
|
359
|
+
let _b = __s.slots[0];
|
|
360
|
+
if (_b === void 0) {
|
|
361
|
+
let _m0, _m1, _m2, _m3, _m4, _m5, _m6, _m7, _m8, _m9, _m10, _m11, _m12, _m13, _m14, _m15, _m16, _m17, _m18;
|
|
362
|
+
const _root = clone(_t$6);
|
|
363
|
+
_m0 = (node) => {
|
|
364
|
+
scrollRef.current = node;
|
|
365
|
+
if (node) applyEscapeProps(node, props);
|
|
366
|
+
bindObservedNode("viewport", node, { kind: "viewport" });
|
|
367
|
+
};
|
|
368
|
+
_m1 = props.id;
|
|
369
|
+
_m2 = ["vx-virtual-list", props.className];
|
|
370
|
+
_m3 = snapshotSpread(layoutChildProps(props, style));
|
|
371
|
+
_m4 = props.accessibilityRole;
|
|
372
|
+
_m5 = props.accessibilityLabel;
|
|
373
|
+
_m6 = props.accessible === false ? true : void 0;
|
|
374
|
+
_m7 = props.accessibilityHint;
|
|
375
|
+
_m8 = props.accessibilityValue;
|
|
376
|
+
_m9 = props.accessibilityState?.disabled;
|
|
377
|
+
_m10 = props.accessibilityState?.selected;
|
|
378
|
+
_m11 = props.accessibilityState?.checked;
|
|
379
|
+
_m12 = props.accessibilityLiveRegion === "none" ? "off" : props.accessibilityLiveRegion;
|
|
380
|
+
_m13 = onScroll;
|
|
381
|
+
_m14 = _root;
|
|
382
|
+
_m15 = bindSignalHostPropSources(__s, void 0, _root, [
|
|
383
|
+
[
|
|
384
|
+
false,
|
|
385
|
+
"ref",
|
|
386
|
+
_m0
|
|
387
|
+
],
|
|
388
|
+
[
|
|
389
|
+
false,
|
|
390
|
+
"id",
|
|
391
|
+
_m1
|
|
392
|
+
],
|
|
393
|
+
[
|
|
394
|
+
false,
|
|
395
|
+
"className",
|
|
396
|
+
_m2
|
|
397
|
+
],
|
|
398
|
+
[true, _m3],
|
|
399
|
+
[
|
|
400
|
+
false,
|
|
401
|
+
"role",
|
|
402
|
+
_m4
|
|
403
|
+
],
|
|
404
|
+
[
|
|
405
|
+
false,
|
|
406
|
+
"aria-label",
|
|
407
|
+
_m5
|
|
408
|
+
],
|
|
409
|
+
[
|
|
410
|
+
false,
|
|
411
|
+
"aria-hidden",
|
|
412
|
+
_m6
|
|
413
|
+
],
|
|
414
|
+
[
|
|
415
|
+
false,
|
|
416
|
+
"aria-description",
|
|
417
|
+
_m7
|
|
418
|
+
],
|
|
419
|
+
[
|
|
420
|
+
false,
|
|
421
|
+
"aria-valuetext",
|
|
422
|
+
_m8
|
|
423
|
+
],
|
|
424
|
+
[
|
|
425
|
+
false,
|
|
426
|
+
"aria-disabled",
|
|
427
|
+
_m9
|
|
428
|
+
],
|
|
429
|
+
[
|
|
430
|
+
false,
|
|
431
|
+
"aria-selected",
|
|
432
|
+
_m10
|
|
433
|
+
],
|
|
434
|
+
[
|
|
435
|
+
false,
|
|
436
|
+
"aria-checked",
|
|
437
|
+
_m11
|
|
438
|
+
],
|
|
439
|
+
[
|
|
440
|
+
false,
|
|
441
|
+
"aria-live",
|
|
442
|
+
_m12
|
|
443
|
+
],
|
|
444
|
+
[
|
|
445
|
+
false,
|
|
446
|
+
"onScroll",
|
|
447
|
+
_m13
|
|
448
|
+
]
|
|
449
|
+
], "b:5767fa6f", true);
|
|
450
|
+
const _el0 = child(_root);
|
|
451
|
+
_m16 = _el0;
|
|
452
|
+
const _el1 = sibling(_el0, 1);
|
|
453
|
+
_m17 = _el1;
|
|
454
|
+
_m18 = sibling(_el1, 1);
|
|
455
|
+
_b = bagOf(__s, _root, {
|
|
456
|
+
a: _m0,
|
|
457
|
+
b: _m1,
|
|
458
|
+
c: _m2,
|
|
459
|
+
d: _m3,
|
|
460
|
+
e: _m4,
|
|
461
|
+
f: _m5,
|
|
462
|
+
g: _m6,
|
|
463
|
+
h: _m7,
|
|
464
|
+
i: _m8,
|
|
465
|
+
j: _m9,
|
|
466
|
+
k: _m10,
|
|
467
|
+
l: _m11,
|
|
468
|
+
m: _m12,
|
|
469
|
+
n: _m13,
|
|
470
|
+
o: _m14,
|
|
471
|
+
p: _m15,
|
|
472
|
+
q: _m16,
|
|
473
|
+
r: _m17,
|
|
474
|
+
s: _m18
|
|
475
|
+
});
|
|
476
|
+
__s.refFields = _rm$20;
|
|
477
|
+
} else {
|
|
478
|
+
{
|
|
479
|
+
const _v = (node) => {
|
|
480
|
+
scrollRef.current = node;
|
|
481
|
+
if (node) applyEscapeProps(node, props);
|
|
482
|
+
bindObservedNode("viewport", node, { kind: "viewport" });
|
|
483
|
+
};
|
|
484
|
+
if (_b.a !== _v) _b.a = _v;
|
|
485
|
+
}
|
|
486
|
+
{
|
|
487
|
+
const _v = props.id;
|
|
488
|
+
if (_b.b !== _v) _b.b = _v;
|
|
489
|
+
}
|
|
490
|
+
{
|
|
491
|
+
const _v = ["vx-virtual-list", props.className];
|
|
492
|
+
if (_b.c !== _v) _b.c = _v;
|
|
493
|
+
}
|
|
494
|
+
_b.d = snapshotSpread(layoutChildProps(props, style));
|
|
495
|
+
{
|
|
496
|
+
const _v = props.accessibilityRole;
|
|
497
|
+
if (_b.e !== _v) _b.e = _v;
|
|
498
|
+
}
|
|
499
|
+
{
|
|
500
|
+
const _v = props.accessibilityLabel;
|
|
501
|
+
if (_b.f !== _v) _b.f = _v;
|
|
502
|
+
}
|
|
503
|
+
{
|
|
504
|
+
const _v = props.accessible === false ? true : void 0;
|
|
505
|
+
if (_b.g !== _v) _b.g = _v;
|
|
506
|
+
}
|
|
507
|
+
{
|
|
508
|
+
const _v = props.accessibilityHint;
|
|
509
|
+
if (_b.h !== _v) _b.h = _v;
|
|
510
|
+
}
|
|
511
|
+
{
|
|
512
|
+
const _v = props.accessibilityValue;
|
|
513
|
+
if (_b.i !== _v) _b.i = _v;
|
|
514
|
+
}
|
|
515
|
+
{
|
|
516
|
+
const _v = props.accessibilityState?.disabled;
|
|
517
|
+
if (_b.j !== _v) _b.j = _v;
|
|
518
|
+
}
|
|
519
|
+
{
|
|
520
|
+
const _v = props.accessibilityState?.selected;
|
|
521
|
+
if (_b.k !== _v) _b.k = _v;
|
|
522
|
+
}
|
|
523
|
+
{
|
|
524
|
+
const _v = props.accessibilityState?.checked;
|
|
525
|
+
if (_b.l !== _v) _b.l = _v;
|
|
526
|
+
}
|
|
527
|
+
{
|
|
528
|
+
const _v = props.accessibilityLiveRegion === "none" ? "off" : props.accessibilityLiveRegion;
|
|
529
|
+
if (_b.m !== _v) _b.m = _v;
|
|
530
|
+
}
|
|
531
|
+
{
|
|
532
|
+
const _v = onScroll;
|
|
533
|
+
if (_b.n !== _v) _b.n = _v;
|
|
534
|
+
}
|
|
535
|
+
_b.p = bindSignalHostPropSources(__s, _b.p, _b.o, [
|
|
536
|
+
[
|
|
537
|
+
false,
|
|
538
|
+
"ref",
|
|
539
|
+
_b.a
|
|
540
|
+
],
|
|
541
|
+
[
|
|
542
|
+
false,
|
|
543
|
+
"id",
|
|
544
|
+
_b.b
|
|
545
|
+
],
|
|
546
|
+
[
|
|
547
|
+
false,
|
|
548
|
+
"className",
|
|
549
|
+
_b.c
|
|
550
|
+
],
|
|
551
|
+
[true, _b.d],
|
|
552
|
+
[
|
|
553
|
+
false,
|
|
554
|
+
"role",
|
|
555
|
+
_b.e
|
|
556
|
+
],
|
|
557
|
+
[
|
|
558
|
+
false,
|
|
559
|
+
"aria-label",
|
|
560
|
+
_b.f
|
|
561
|
+
],
|
|
562
|
+
[
|
|
563
|
+
false,
|
|
564
|
+
"aria-hidden",
|
|
565
|
+
_b.g
|
|
566
|
+
],
|
|
567
|
+
[
|
|
568
|
+
false,
|
|
569
|
+
"aria-description",
|
|
570
|
+
_b.h
|
|
571
|
+
],
|
|
572
|
+
[
|
|
573
|
+
false,
|
|
574
|
+
"aria-valuetext",
|
|
575
|
+
_b.i
|
|
576
|
+
],
|
|
577
|
+
[
|
|
578
|
+
false,
|
|
579
|
+
"aria-disabled",
|
|
580
|
+
_b.j
|
|
581
|
+
],
|
|
582
|
+
[
|
|
583
|
+
false,
|
|
584
|
+
"aria-selected",
|
|
585
|
+
_b.k
|
|
586
|
+
],
|
|
587
|
+
[
|
|
588
|
+
false,
|
|
589
|
+
"aria-checked",
|
|
590
|
+
_b.l
|
|
591
|
+
],
|
|
592
|
+
[
|
|
593
|
+
false,
|
|
594
|
+
"aria-live",
|
|
595
|
+
_b.m
|
|
596
|
+
],
|
|
597
|
+
[
|
|
598
|
+
false,
|
|
599
|
+
"onScroll",
|
|
600
|
+
_b.n
|
|
601
|
+
]
|
|
602
|
+
], "b:5767fa6f", true);
|
|
603
|
+
}
|
|
604
|
+
{
|
|
605
|
+
const __ifCondition$ = props.renderHeader;
|
|
606
|
+
ifBlock(__s, 1, _b.o, __ifCondition$, __then$0, null, _b.q, __ifCondition$ ? [bindObservedNode, props] : void 0);
|
|
607
|
+
}
|
|
608
|
+
ifBlock(__s, 2, _b.o, entries.length === 0, __then$4, __else$6, _b.r, [
|
|
609
|
+
bindObservedNode,
|
|
610
|
+
entries,
|
|
611
|
+
hasSeparator,
|
|
612
|
+
props,
|
|
613
|
+
range,
|
|
614
|
+
visibleEntries
|
|
615
|
+
]);
|
|
616
|
+
{
|
|
617
|
+
const __ifCondition$2 = props.renderFooter;
|
|
618
|
+
ifBlock(__s, 3, _b.o, __ifCondition$2, __then$16, null, _b.s, __ifCondition$2 ? [bindObservedNode, props] : void 0);
|
|
619
|
+
}
|
|
620
|
+
});
|
|
621
|
+
//#endregion
|
|
622
|
+
export { VirtualList };
|