@octane-xplat/ui 0.4.0 → 0.6.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 +3 -0
- package/dist/native/Absolute.native.tsrx.js +43 -0
- package/dist/native/Accordion.native.tsrx.js +75 -0
- package/dist/native/ActivityIndicator.native.tsrx.js +35 -0
- package/dist/native/Alert.native.tsrx.js +74 -0
- package/dist/native/Avatar.native.tsrx.js +76 -0
- package/dist/native/AvatarGroup.native.tsrx.js +84 -0
- package/dist/native/Badge.native.tsrx.js +29 -0
- package/dist/native/Banner.native.tsrx.js +80 -0
- package/dist/native/Breadcrumb.native.tsrx.js +66 -0
- package/dist/native/Button.native.tsrx.js +62 -0
- package/dist/native/CameraView.native.tsrx.js +165 -0
- package/dist/native/Card.native.tsrx.js +64 -0
- package/dist/native/Checkbox.native.tsrx.js +58 -0
- package/dist/native/CheckboxGroup.native.tsrx.js +70 -0
- package/dist/native/Chip.native.tsrx.js +83 -0
- package/dist/native/Collapsible.native.tsrx.js +74 -0
- package/dist/native/CommandPalette.native.tsrx.js +143 -0
- package/dist/native/ContextMenu.native.tsrx.js +140 -0
- package/dist/native/Drawer.native.tsrx.js +60 -0
- package/dist/native/DropdownMenu.native.tsrx.js +155 -0
- package/dist/native/Empty.native.tsrx.js +82 -0
- package/dist/native/FieldGroup.native.tsrx.js +39 -0
- package/dist/native/FormField.native.tsrx.js +53 -0
- package/dist/native/{ui8.js → Grid.native.tsrx.js} +19 -8
- package/dist/native/{ui56.js → Heading.native.tsrx.js} +2 -2
- package/dist/native/{ui55.js → Icon.native.tsrx.js} +4 -4
- package/dist/native/{ui29.js → Image.native.tsrx.js} +4 -4
- package/dist/native/InputNumber.native.tsrx.js +146 -0
- package/dist/native/InputRating.native.tsrx.js +74 -0
- package/dist/native/InputTags.native.tsrx.js +131 -0
- package/dist/native/Kbd.native.tsrx.js +29 -0
- package/dist/native/{ui48.js → KeyboardAvoiding.native.tsrx.js} +1 -1
- package/dist/native/{ui17.js → Link.native.tsrx.js} +1 -1
- package/dist/native/{ui52.js → Meter.native.tsrx.js} +2 -2
- package/dist/native/{ui22.js → NavLink.native.tsrx.js} +3 -3
- package/dist/native/NavigationMenu.native.tsrx.js +67 -0
- package/dist/native/{ui35.js → Overlay.native.tsrx.js} +3 -3
- package/dist/native/Pager.native.tsrx.js +282 -0
- package/dist/native/Pagination.native.tsrx.js +107 -0
- package/dist/native/PinInput.native.tsrx.js +94 -0
- package/dist/native/{ui38.js → Popover.native.tsrx.js} +5 -5
- package/dist/native/{ui16.js → Pressable.native.tsrx.js} +21 -15
- package/dist/native/ProgressGroup.native.tsrx.js +66 -0
- package/dist/native/RadioGroup.native.tsrx.js +85 -0
- package/dist/native/{ui15.js → RichText.native.tsrx.js} +15 -22
- package/dist/native/Row.native.tsrx.js +98 -0
- package/dist/native/{ui47.js → SafeArea.native.tsrx.js} +2 -2
- package/dist/native/{ui43.js → Screen.native.tsrx.js} +3 -3
- package/dist/native/{ui26.js → ScrollBox.native.tsrx.js} +1 -1
- package/dist/native/ScrollView.native.tsrx.js +233 -0
- package/dist/native/SearchInput.native.tsrx.js +151 -0
- package/dist/native/SegmentedControl.native.tsrx.js +75 -0
- package/dist/native/Select.native.tsrx.js +202 -0
- package/dist/native/Separator.native.tsrx.js +25 -0
- package/dist/native/{ui60.js → Sheet.native.tsrx.js} +15 -7
- package/dist/native/Skeleton.native.tsrx.js +28 -0
- package/dist/native/Slider.native.tsrx.js +98 -0
- package/dist/native/{ui13.js → Spacer.native.tsrx.js} +2 -2
- package/dist/native/{ui9.js → Stack.native.tsrx.js} +20 -9
- package/dist/native/Stepper.native.tsrx.js +75 -0
- package/dist/native/Switch.native.tsrx.js +33 -0
- package/dist/native/Table.native.tsrx.js +103 -0
- package/dist/native/Tabs.native.tsrx.js +163 -0
- package/dist/native/{ui14.js → Text.native.tsrx.js} +19 -3
- package/dist/native/{ui24.js → TextArea.native.tsrx.js} +19 -17
- package/dist/native/{ui23.js → TextInput.native.tsrx.js} +21 -16
- package/dist/native/Timeline.native.tsrx.js +112 -0
- package/dist/native/Tree.native.tsrx.js +140 -0
- package/dist/native/User.native.tsrx.js +95 -0
- package/dist/native/Video.native.tsrx.js +248 -0
- package/dist/native/{ui6.js → View.native.tsrx.js} +39 -25
- package/dist/native/WebView.native.tsrx.js +110 -0
- package/dist/native/aliases.native.tsrx.js +38 -0
- package/dist/native/android/BottomNavigationView.android.tsrx.js +171 -0
- package/dist/native/android/CircularProgressIndicator.android.tsrx.js +27 -0
- package/dist/native/{ui49.js → android/DrawerLayout.android.tsrx.js} +5 -7
- package/dist/native/android/MaterialDialog.android.tsrx.js +62 -0
- package/dist/native/android/MaterialSwitch.android.tsrx.js +28 -0
- package/dist/native/android/RecyclerView.android.tsrx.js +248 -0
- package/dist/native/android/SeekBar.android.tsrx.js +34 -0
- package/dist/native/android/index.js +9 -0
- package/dist/native/android/openModal.android.js +39 -0
- package/dist/native/camera-permission.native.js +47 -0
- package/dist/native/child-array.js +15 -0
- package/dist/native/{ui3.js → escape-props.native.js} +22 -1
- package/dist/native/icons.js +25 -0
- package/dist/native/{ui11.js → ios/LiquidGlass.ios.tsrx.js} +4 -4
- package/dist/native/{ui12.js → ios/LiquidGlassContainer.ios.tsrx.js} +4 -4
- package/dist/native/ios/SideDrawer.ios.tsrx.js +64 -0
- package/dist/native/{ui50.js → ios/UIActivityIndicatorView.ios.tsrx.js} +5 -5
- package/dist/native/{ui32.js → ios/UIModal.ios.tsrx.js} +10 -6
- package/dist/native/{ui53.js → ios/UISlider.ios.tsrx.js} +5 -5
- package/dist/native/{ui45.js → ios/UISwitch.ios.tsrx.js} +5 -5
- package/dist/native/ios/UITabBar.ios.tsrx.js +166 -0
- package/dist/native/ios/UITableView.ios.tsrx.js +270 -0
- package/dist/native/ios/index.js +11 -0
- package/dist/native/{ui33.js → ios/openModal.ios.js} +5 -4
- package/dist/native/modal-presenter.native.js +19 -0
- package/dist/native/native/index.js +4 -0
- package/dist/native/octane-client-build.json +1 -1
- package/dist/native/pan.native.tsrx.js +66 -0
- package/dist/native/platform.native.js +10 -0
- package/dist/native/refresh-metrics.js +9 -0
- package/dist/native/refresh.native.js +177 -0
- package/dist/native/{ui34.js → root-layout.native.js} +6 -1
- package/dist/native/{ui21.js → route.native.js} +96 -12
- package/dist/native/sheet-detents.native.js +102 -0
- package/dist/native/{ui61.js → sheet-service.native.js} +19 -9
- package/dist/native/sheet-snap.js +35 -0
- package/dist/native/text-write.native.js +27 -0
- package/dist/native/theme/status-bar-scheme.native.js +17 -0
- package/dist/{web/ui29.js → native/theme/theme-scheme.js} +2 -2
- package/dist/native/toast-anchor.native.tsrx.js +185 -0
- package/dist/native/translate.native.js +11 -0
- package/dist/native/ui.js +93 -52
- package/dist/native/use-back.native.tsrx.js +9 -0
- package/dist/native/useMeasure.native.tsrx.js +64 -0
- package/dist/native/video-chrome.native.tsrx.js +365 -0
- package/dist/web/Absolute.web.tsrx.js +47 -0
- package/dist/web/Accordion.web.tsrx.js +85 -0
- package/dist/web/{ui46.js → ActivityIndicator.web.tsrx.js} +1 -1
- package/dist/web/Alert.web.tsrx.js +79 -0
- package/dist/web/Avatar.web.tsrx.js +106 -0
- package/dist/web/AvatarGroup.web.tsrx.js +108 -0
- package/dist/web/Badge.web.tsrx.js +37 -0
- package/dist/web/Banner.web.tsrx.js +79 -0
- package/dist/web/Breadcrumb.web.tsrx.js +135 -0
- package/dist/web/Button.web.tsrx.js +45 -0
- package/dist/web/CameraView.web.tsrx.js +310 -0
- package/dist/web/Card.web.tsrx.js +73 -0
- package/dist/web/Checkbox.web.tsrx.js +89 -0
- package/dist/web/CheckboxGroup.web.tsrx.js +79 -0
- package/dist/web/Chip.web.tsrx.js +64 -0
- package/dist/web/Collapsible.web.tsrx.js +94 -0
- package/dist/web/CommandPalette.web.tsrx.js +125 -0
- package/dist/web/ContextMenu.web.tsrx.js +154 -0
- package/dist/web/{ui44.js → Drawer.web.tsrx.js} +13 -9
- package/dist/web/DropdownMenu.web.tsrx.js +162 -0
- package/dist/web/Empty.web.tsrx.js +89 -0
- package/dist/web/FieldGroup.web.tsrx.js +57 -0
- package/dist/web/FormField.web.tsrx.js +92 -0
- package/dist/web/Grid.web.tsrx.js +65 -0
- package/dist/web/{ui52.js → Heading.web.tsrx.js} +2 -2
- package/dist/web/Icon.web.tsrx.js +273 -0
- package/dist/web/{ui25.js → Image.web.tsrx.js} +2 -2
- package/dist/web/InputNumber.web.tsrx.js +99 -0
- package/dist/web/InputRating.web.tsrx.js +72 -0
- package/dist/web/InputTags.web.tsrx.js +122 -0
- package/dist/web/Kbd.web.tsrx.js +37 -0
- package/dist/web/{ui48.js → Meter.web.tsrx.js} +1 -1
- package/dist/web/{ui19.js → NavLink.web.tsrx.js} +1 -1
- package/dist/web/NavigationMenu.web.tsrx.js +118 -0
- package/dist/web/{ui31.js → Overlay.web.tsrx.js} +2 -2
- package/dist/web/Pager.web.tsrx.js +337 -0
- package/dist/web/Pagination.web.tsrx.js +80 -0
- package/dist/web/PinInput.web.tsrx.js +72 -0
- package/dist/web/{ui33.js → Popover.web.tsrx.js} +3 -3
- package/dist/web/{ui15.js → Pressable.web.tsrx.js} +68 -95
- package/dist/web/ProgressGroup.web.tsrx.js +109 -0
- package/dist/web/RadioGroup.web.tsrx.js +69 -0
- package/dist/web/{ui14.js → RichText.web.tsrx.js} +2 -2
- package/dist/web/Row.web.tsrx.js +250 -0
- package/dist/web/{ui42.js → SafeArea.web.tsrx.js} +1 -1
- package/dist/web/{ui38.js → Screen.web.tsrx.js} +1 -1
- package/dist/web/{ui24.js → ScrollBox.web.tsrx.js} +1 -1
- package/dist/web/ScrollView.web.tsrx.js +388 -0
- package/dist/web/SearchInput.web.tsrx.js +137 -0
- package/dist/web/SegmentedControl.web.tsrx.js +75 -0
- package/dist/web/Select.web.tsrx.js +149 -0
- package/dist/web/Separator.web.tsrx.js +42 -0
- package/dist/web/Sheet.web.tsrx.js +81 -0
- package/dist/web/Skeleton.web.tsrx.js +56 -0
- package/dist/web/Slider.web.tsrx.js +97 -0
- package/dist/web/{ui12.js → Spacer.web.tsrx.js} +1 -1
- package/dist/web/Stack.web.tsrx.js +47 -0
- package/dist/web/Stepper.web.tsrx.js +65 -0
- package/dist/web/Switch.web.tsrx.js +59 -0
- package/dist/web/Table.web.tsrx.js +161 -0
- package/dist/web/{ui39.js → Tabs.web.tsrx.js} +33 -16
- package/dist/web/{ui13.js → Text.web.tsrx.js} +79 -46
- package/dist/web/{ui21.js → TextArea.web.tsrx.js} +4 -4
- package/dist/web/{ui20.js → TextInput.web.tsrx.js} +8 -8
- package/dist/web/Timeline.web.tsrx.js +172 -0
- package/dist/web/Tree.web.tsrx.js +146 -0
- package/dist/web/User.web.tsrx.js +116 -0
- package/dist/web/Video.web.tsrx.js +400 -0
- package/dist/web/View.web.tsrx.js +250 -0
- package/dist/web/WebView.web.tsrx.js +235 -0
- package/dist/web/aliases.web.tsrx.js +24 -0
- package/dist/web/{ui35.js → anim.web.tsrx.js} +3 -2
- package/dist/web/child-array.js +15 -0
- package/dist/web/icons.js +25 -0
- package/dist/web/octane-client-build.json +1 -1
- package/dist/web/pan.web.tsrx.js +66 -0
- package/dist/web/platform.web.js +9 -0
- package/dist/web/refresh-metrics.js +9 -0
- package/dist/web/refresh.web.js +133 -0
- package/dist/web/{ui18.js → route.web.js} +14 -2
- package/dist/web/sheet-detents.web.js +103 -0
- package/dist/web/{ui58.js → sheet-service.web.js} +5 -1
- package/dist/web/sheet-snap.js +35 -0
- package/dist/{native/ui31.js → web/theme/theme-scheme.js} +2 -2
- package/dist/web/toast-anchor.web.tsrx.js +142 -0
- package/dist/web/transform.web.js +43 -0
- package/dist/web/translate.web.js +13 -0
- package/dist/web/ui.js +91 -51
- package/dist/web/use-back.web.tsrx.js +9 -0
- package/dist/web/useMeasure.web.tsrx.js +50 -0
- package/dist/web/video-chrome.web.tsrx.js +207 -0
- package/dist/web/web/Hoverable.web.tsrx.js +150 -0
- package/dist/web/web/Tooltip.web.tsrx.js +183 -0
- package/dist/web/web/index.js +3 -0
- package/package.json +34 -3
- package/src/theme/tokens.css +1599 -194
- package/types/android.d.ts +53 -0
- package/types/index.d.ts +39 -14
- package/types/index.native.d.ts +273 -0
- package/types/index.web.d.ts +272 -0
- package/types/ios.d.ts +59 -0
- package/types/native.d.ts +5 -0
- package/types/props.d.ts +989 -44
- package/types/web.d.ts +17 -0
- package/dist/native/ui10.js +0 -32
- package/dist/native/ui25.js +0 -141
- package/dist/native/ui27.js +0 -61
- package/dist/native/ui39.js +0 -105
- package/dist/native/ui4.js +0 -24
- package/dist/native/ui44.js +0 -267
- package/dist/native/ui54.js +0 -17
- package/dist/native/ui57.js +0 -14
- package/dist/native/ui7.js +0 -52
- package/dist/web/ui10.js +0 -46
- package/dist/web/ui11.js +0 -42
- package/dist/web/ui22.js +0 -108
- package/dist/web/ui23.js +0 -96
- package/dist/web/ui26.js +0 -45
- package/dist/web/ui3.js +0 -31
- package/dist/web/ui30.js +0 -34
- package/dist/web/ui34.js +0 -70
- package/dist/web/ui40.js +0 -43
- package/dist/web/ui43.js +0 -42
- package/dist/web/ui49.js +0 -47
- package/dist/web/ui5.js +0 -168
- package/dist/web/ui50.js +0 -17
- package/dist/web/ui51.js +0 -149
- package/dist/web/ui53.js +0 -17
- package/dist/web/ui57.js +0 -44
- package/dist/web/ui6.js +0 -94
- package/dist/web/ui7.js +0 -62
- package/dist/web/ui8.js +0 -46
- package/dist/web/ui9.js +0 -46
- /package/dist/native/{ui20.js → RouteHost.native.tsrx.js} +0 -0
- /package/dist/native/{ui40.js → anim.native.tsrx.js} +0 -0
- /package/dist/native/{ui2.js → cx.js} +0 -0
- /package/dist/native/{ui5.js → layout-child.native.js} +0 -0
- /package/dist/native/{ui51.js → meter-math.js} +0 -0
- /package/dist/native/{ui36.js → platformProps.native.js} +0 -0
- /package/dist/native/{ui37.js → popover-position.js} +0 -0
- /package/dist/native/{ui19.js → route-table.js} +0 -0
- /package/dist/native/{ui46.js → safeAreaInsets.native.tsrx.js} +0 -0
- /package/dist/native/{ui18.js → stacks.native.js} +0 -0
- /package/dist/native/{ui58.js → store.js} +0 -0
- /package/dist/native/{ui41.js → styled.native.tsrx.js} +0 -0
- /package/dist/native/{ui28.js → svg.native.js} +0 -0
- /package/dist/native/{ui30.js → theme/colorScheme.native.js} +0 -0
- /package/dist/native/{ui59.js → use-store.native.tsrx.js} +0 -0
- /package/dist/native/{ui42.js → windows.native.js} +0 -0
- /package/dist/web/{ui16.js → Link.web.tsrx.js} +0 -0
- /package/dist/web/{ui28.js → cx.js} +0 -0
- /package/dist/web/{ui2.js → escape-props.web.js} +0 -0
- /package/dist/web/{ui4.js → layout-child.web.js} +0 -0
- /package/dist/web/{ui47.js → meter-math.js} +0 -0
- /package/dist/web/{ui45.js → platformProps.web.js} +0 -0
- /package/dist/web/{ui32.js → popover-position.js} +0 -0
- /package/dist/web/{ui17.js → route-table.js} +0 -0
- /package/dist/web/{ui41.js → safeAreaInsets.web.tsrx.js} +0 -0
- /package/dist/web/{ui54.js → stacks.web.js} +0 -0
- /package/dist/web/{ui55.js → store.js} +0 -0
- /package/dist/web/{ui36.js → styled.web.tsrx.js} +0 -0
- /package/dist/web/{ui27.js → theme/colorScheme.web.js} +0 -0
- /package/dist/web/{ui56.js → use-store.web.tsrx.js} +0 -0
- /package/dist/web/{ui37.js → windows.web.js} +0 -0
package/dist/native/ui.js
CHANGED
|
@@ -1,52 +1,93 @@
|
|
|
1
|
-
import { View } from "./
|
|
2
|
-
import { Row } from "./
|
|
3
|
-
import { Grid } from "./
|
|
4
|
-
import { Stack } from "./
|
|
5
|
-
import { Absolute } from "./
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
|
|
1
|
+
import { View } from "./View.native.tsrx.js";
|
|
2
|
+
import { Row } from "./Row.native.tsrx.js";
|
|
3
|
+
import { Grid } from "./Grid.native.tsrx.js";
|
|
4
|
+
import { Stack } from "./Stack.native.tsrx.js";
|
|
5
|
+
import { Absolute } from "./Absolute.native.tsrx.js";
|
|
6
|
+
import { setTranslate } from "./translate.native.js";
|
|
7
|
+
import { Spacer } from "./Spacer.native.tsrx.js";
|
|
8
|
+
import { Text } from "./Text.native.tsrx.js";
|
|
9
|
+
import { RichText, RichTextSpan } from "./RichText.native.tsrx.js";
|
|
10
|
+
import { Pressable } from "./Pressable.native.tsrx.js";
|
|
11
|
+
import { ActivityIndicator } from "./ActivityIndicator.native.tsrx.js";
|
|
12
|
+
import { Button } from "./Button.native.tsrx.js";
|
|
13
|
+
import { Collapsible } from "./Collapsible.native.tsrx.js";
|
|
14
|
+
import { Accordion } from "./Accordion.native.tsrx.js";
|
|
15
|
+
import { Checkbox } from "./Checkbox.native.tsrx.js";
|
|
16
|
+
import { RadioGroup } from "./RadioGroup.native.tsrx.js";
|
|
17
|
+
import { getColorScheme, useColorScheme } from "./theme/colorScheme.native.js";
|
|
18
|
+
import { applyThemeClasses, getThemePreference, getThemeScheme, onThemeSchemeChange, setThemePreference, themeSchemeClasses, useThemeScheme } from "./theme/theme-scheme.js";
|
|
19
|
+
import { Popover } from "./Popover.native.tsrx.js";
|
|
20
|
+
import { registerIcon, registerIcons } from "./icons.js";
|
|
21
|
+
import { Icon } from "./Icon.native.tsrx.js";
|
|
22
|
+
import { DropdownMenu } from "./DropdownMenu.native.tsrx.js";
|
|
23
|
+
import { ContextMenu } from "./ContextMenu.native.tsrx.js";
|
|
24
|
+
import { Badge } from "./Badge.native.tsrx.js";
|
|
25
|
+
import { Separator } from "./Separator.native.tsrx.js";
|
|
26
|
+
import { Skeleton } from "./Skeleton.native.tsrx.js";
|
|
27
|
+
import { Image } from "./Image.native.tsrx.js";
|
|
28
|
+
import { Avatar } from "./Avatar.native.tsrx.js";
|
|
29
|
+
import { AvatarGroup } from "./AvatarGroup.native.tsrx.js";
|
|
30
|
+
import { FormField } from "./FormField.native.tsrx.js";
|
|
31
|
+
import { FieldGroup } from "./FieldGroup.native.tsrx.js";
|
|
32
|
+
import { TextInput } from "./TextInput.native.tsrx.js";
|
|
33
|
+
import { InputNumber } from "./InputNumber.native.tsrx.js";
|
|
34
|
+
import { PinInput } from "./PinInput.native.tsrx.js";
|
|
35
|
+
import { Select } from "./Select.native.tsrx.js";
|
|
36
|
+
import { Combobox, InputMenu, SelectMenu } from "./aliases.native.tsrx.js";
|
|
37
|
+
import { InputTags } from "./InputTags.native.tsrx.js";
|
|
38
|
+
import { InputRating } from "./InputRating.native.tsrx.js";
|
|
39
|
+
import { CheckboxGroup } from "./CheckboxGroup.native.tsrx.js";
|
|
40
|
+
import { Breadcrumb } from "./Breadcrumb.native.tsrx.js";
|
|
41
|
+
import { Pagination } from "./Pagination.native.tsrx.js";
|
|
42
|
+
import { Stepper } from "./Stepper.native.tsrx.js";
|
|
43
|
+
import { NavigationMenu } from "./NavigationMenu.native.tsrx.js";
|
|
44
|
+
import { Overlay } from "./Overlay.native.tsrx.js";
|
|
45
|
+
import { CommandPalette } from "./CommandPalette.native.tsrx.js";
|
|
46
|
+
import { Table } from "./Table.native.tsrx.js";
|
|
47
|
+
import { Timeline } from "./Timeline.native.tsrx.js";
|
|
48
|
+
import { Tree } from "./Tree.native.tsrx.js";
|
|
49
|
+
import { Alert } from "./Alert.native.tsrx.js";
|
|
50
|
+
import { Card } from "./Card.native.tsrx.js";
|
|
51
|
+
import { Chip } from "./Chip.native.tsrx.js";
|
|
52
|
+
import { Kbd } from "./Kbd.native.tsrx.js";
|
|
53
|
+
import { Empty } from "./Empty.native.tsrx.js";
|
|
54
|
+
import { Banner } from "./Banner.native.tsrx.js";
|
|
55
|
+
import { User } from "./User.native.tsrx.js";
|
|
56
|
+
import { Meter } from "./Meter.native.tsrx.js";
|
|
57
|
+
import { ProgressGroup } from "./ProgressGroup.native.tsrx.js";
|
|
58
|
+
import { Link } from "./Link.native.tsrx.js";
|
|
59
|
+
import { getStack, registerStack, stackEntries } from "./stacks.native.js";
|
|
60
|
+
import { deriveRouteManifest } from "./route-table.js";
|
|
61
|
+
import { addBackInterceptor, canGoBack, currentModalRoute, currentRoute, hrefFor, popRoute, pushDeepLink, pushRoute, redirect, registerRoutes, registerScreens, routeFor, routeStacks, screenFor, useCanGoBack, useModalRoute, useRoute } from "./route.native.js";
|
|
62
|
+
import { NavLink } from "./NavLink.native.tsrx.js";
|
|
63
|
+
import { TextArea } from "./TextArea.native.tsrx.js";
|
|
64
|
+
import { SearchInput } from "./SearchInput.native.tsrx.js";
|
|
65
|
+
import { SegmentedControl } from "./SegmentedControl.native.tsrx.js";
|
|
66
|
+
import { ScrollBox } from "./ScrollBox.native.tsrx.js";
|
|
67
|
+
import { ScrollView } from "./ScrollView.native.tsrx.js";
|
|
68
|
+
import { Pager } from "./Pager.native.tsrx.js";
|
|
69
|
+
import { WebView } from "./WebView.native.tsrx.js";
|
|
70
|
+
import { useMeasure } from "./useMeasure.native.tsrx.js";
|
|
71
|
+
import { Slider } from "./Slider.native.tsrx.js";
|
|
72
|
+
import { Video } from "./Video.native.tsrx.js";
|
|
73
|
+
import { CameraView } from "./CameraView.native.tsrx.js";
|
|
74
|
+
import { showToast } from "./toast-anchor.native.tsrx.js";
|
|
75
|
+
import { useAnimation } from "./anim.native.tsrx.js";
|
|
76
|
+
import "./theme/status-bar-scheme.native.js";
|
|
77
|
+
import { styled } from "./styled.native.tsrx.js";
|
|
78
|
+
import { openWindow } from "./windows.native.js";
|
|
79
|
+
import { Screen } from "./Screen.native.tsrx.js";
|
|
80
|
+
import { Tabs } from "./Tabs.native.tsrx.js";
|
|
81
|
+
import { Switch } from "./Switch.native.tsrx.js";
|
|
82
|
+
import { useSafeAreaInsets } from "./safeAreaInsets.native.tsrx.js";
|
|
83
|
+
import { SafeArea } from "./SafeArea.native.tsrx.js";
|
|
84
|
+
import { KeyboardAvoiding } from "./KeyboardAvoiding.native.tsrx.js";
|
|
85
|
+
import { Drawer } from "./Drawer.native.tsrx.js";
|
|
86
|
+
import { Heading } from "./Heading.native.tsrx.js";
|
|
87
|
+
import { isNative } from "./platform.native.js";
|
|
88
|
+
import { useBackInterceptor } from "./use-back.native.tsrx.js";
|
|
89
|
+
import { createStore } from "./store.js";
|
|
90
|
+
import { useStore } from "./use-store.native.tsrx.js";
|
|
91
|
+
import { Sheet } from "./Sheet.native.tsrx.js";
|
|
92
|
+
import { closeSheet, openSheet } from "./sheet-service.native.js";
|
|
93
|
+
export { Absolute, Accordion, ActivityIndicator, Alert, Avatar, AvatarGroup, Badge, Banner, Breadcrumb, Button, CameraView, Card, Checkbox, CheckboxGroup, Chip, Collapsible, View as Column, Combobox, CommandPalette, ContextMenu, Drawer, DropdownMenu, Empty, FieldGroup, FormField, Grid, Heading, Icon, Image, InputMenu, InputNumber, InputRating, InputTags, Kbd, KeyboardAvoiding, Link, Meter, NavLink, NavigationMenu, Overlay, Pager, Pagination, PinInput, Popover, Pressable, ProgressGroup, RadioGroup, RichText, RichTextSpan, Row, SafeArea, Screen, ScrollBox, ScrollView, SearchInput, SegmentedControl, Select, SelectMenu, Separator, Sheet, Skeleton, Slider, Spacer, Stack, Stepper, Switch, Table, Tabs, Text, TextArea, TextInput, Timeline, Tree, User, Video, View, WebView, addBackInterceptor, applyThemeClasses, canGoBack, closeSheet, createStore, currentModalRoute, currentRoute, deriveRouteManifest, getColorScheme, getStack, getThemePreference, getThemeScheme, hrefFor, isNative, onThemeSchemeChange, openSheet, openWindow, popRoute, pushDeepLink, pushRoute, redirect, registerIcon, registerIcons, registerRoutes, registerScreens, registerStack, routeFor, routeStacks, screenFor, setThemePreference, setTranslate, showToast, stackEntries, styled, themeSchemeClasses, useAnimation, useBackInterceptor, useCanGoBack, useColorScheme, useMeasure, useModalRoute, useRoute, useSafeAreaInsets, useStore, useThemeScheme };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { addBackInterceptor } from "./route.native.js";
|
|
2
|
+
import { hookSlots, useEffect } from "@nativescript-community/octane";
|
|
3
|
+
//#region src/use-back.native.tsrx
|
|
4
|
+
var _h$0 = /* @__PURE__ */ Symbol(/* @__PURE__ */ hookSlots(1));
|
|
5
|
+
function useBackInterceptor(fn) {
|
|
6
|
+
useEffect(() => addBackInterceptor(fn), [fn], _h$0);
|
|
7
|
+
}
|
|
8
|
+
//#endregion
|
|
9
|
+
export { useBackInterceptor };
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { hookSlots, useCallback, useEffect, useState } from "@nativescript-community/octane";
|
|
2
|
+
//#region src/useMeasure.native.tsrx
|
|
3
|
+
var _hs$ = /* @__PURE__ */ hookSlots(4);
|
|
4
|
+
var _h$0 = /* @__PURE__ */ Symbol(_hs$);
|
|
5
|
+
var _h$1 = /* @__PURE__ */ Symbol(_hs$ + 1);
|
|
6
|
+
var _h$2 = /* @__PURE__ */ Symbol(_hs$ + 2);
|
|
7
|
+
var _h$3 = /* @__PURE__ */ Symbol(_hs$ + 3);
|
|
8
|
+
function readBounds(view) {
|
|
9
|
+
const point = view?.getLocationOnScreen?.();
|
|
10
|
+
const size = view?.getActualSize?.();
|
|
11
|
+
if (!point || !size) return null;
|
|
12
|
+
return {
|
|
13
|
+
x: point.x,
|
|
14
|
+
y: point.y,
|
|
15
|
+
width: size.width,
|
|
16
|
+
height: size.height
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function useMeasure(options = {}) {
|
|
20
|
+
const [view, setView] = useState(null, _h$0);
|
|
21
|
+
const [bounds, setBounds] = useState(null, _h$1);
|
|
22
|
+
const observe = options.observe ?? true;
|
|
23
|
+
const bind = useCallback((next) => {
|
|
24
|
+
setView((current) => current === next ? current : next);
|
|
25
|
+
}, [], _h$2);
|
|
26
|
+
useEffect(() => {
|
|
27
|
+
if (!view) {
|
|
28
|
+
setBounds(null);
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
const update = () => {
|
|
32
|
+
const next = readBounds(view);
|
|
33
|
+
setBounds((prev) => prev && next && prev.x === next.x && prev.y === next.y && prev.width === next.width && prev.height === next.height ? prev : next);
|
|
34
|
+
};
|
|
35
|
+
const onLoaded = update;
|
|
36
|
+
view.on?.("loaded", onLoaded);
|
|
37
|
+
update();
|
|
38
|
+
if (observe) {
|
|
39
|
+
view.on?.("layoutChanged", update);
|
|
40
|
+
let parent = view.parent;
|
|
41
|
+
while (parent) {
|
|
42
|
+
parent.on?.("scroll", update);
|
|
43
|
+
parent = parent.parent;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
return () => {
|
|
47
|
+
view.off?.("loaded", onLoaded);
|
|
48
|
+
if (observe) {
|
|
49
|
+
view.off?.("layoutChanged", update);
|
|
50
|
+
let parent = view.parent;
|
|
51
|
+
while (parent) {
|
|
52
|
+
parent.off?.("scroll", update);
|
|
53
|
+
parent = parent.parent;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
}, [view, observe], _h$3);
|
|
58
|
+
return {
|
|
59
|
+
bind,
|
|
60
|
+
bounds
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
//#endregion
|
|
64
|
+
export { useMeasure };
|
|
@@ -0,0 +1,365 @@
|
|
|
1
|
+
import { View } from "./View.native.tsrx.js";
|
|
2
|
+
import { Row } from "./Row.native.tsrx.js";
|
|
3
|
+
import { Text } from "./Text.native.tsrx.js";
|
|
4
|
+
import { Pressable } from "./Pressable.native.tsrx.js";
|
|
5
|
+
import { Icon } from "./Icon.native.tsrx.js";
|
|
6
|
+
import { Image } from "./Image.native.tsrx.js";
|
|
7
|
+
import { Slider } from "./Slider.native.tsrx.js";
|
|
8
|
+
import { defineUniversalComponent, hookSlots, universalChildren, universalComponent, universalIf, universalPlan, universalProps, universalValue, useEffect, useState } from "@nativescript-community/octane";
|
|
9
|
+
//#region src/video-chrome.native.tsrx
|
|
10
|
+
var _hs$ = /* @__PURE__ */ hookSlots(2);
|
|
11
|
+
var _h$0 = /* @__PURE__ */ Symbol(_hs$);
|
|
12
|
+
var _h$1 = /* @__PURE__ */ Symbol(_hs$ + 1);
|
|
13
|
+
var __octaneUniversalPlan0 = universalPlan("nativescript", {
|
|
14
|
+
"kind": "slot",
|
|
15
|
+
"slot": 0
|
|
16
|
+
});
|
|
17
|
+
var __octaneUniversalPlan1 = universalPlan("nativescript", {
|
|
18
|
+
"kind": "slot",
|
|
19
|
+
"slot": 0
|
|
20
|
+
});
|
|
21
|
+
var __octaneUniversalPlan2 = universalPlan("nativescript", {
|
|
22
|
+
"kind": "slot",
|
|
23
|
+
"slot": 0
|
|
24
|
+
});
|
|
25
|
+
var __octaneUniversalPlan3 = universalPlan("nativescript", {
|
|
26
|
+
"kind": "slot",
|
|
27
|
+
"slot": 0
|
|
28
|
+
});
|
|
29
|
+
var __octaneUniversalPlan4 = universalPlan("nativescript", {
|
|
30
|
+
"kind": "slot",
|
|
31
|
+
"slot": 0
|
|
32
|
+
});
|
|
33
|
+
var __octaneUniversalPlan5 = universalPlan("nativescript", {
|
|
34
|
+
"kind": "slot",
|
|
35
|
+
"slot": 0
|
|
36
|
+
});
|
|
37
|
+
var __octaneUniversalPlan6 = universalPlan("nativescript", {
|
|
38
|
+
"kind": "range",
|
|
39
|
+
"children": [
|
|
40
|
+
{
|
|
41
|
+
"kind": "slot",
|
|
42
|
+
"slot": 0
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"kind": "slot",
|
|
46
|
+
"slot": 1
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"kind": "slot",
|
|
50
|
+
"slot": 2
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"kind": "slot",
|
|
54
|
+
"slot": 3
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"kind": "slot",
|
|
58
|
+
"slot": 4
|
|
59
|
+
}
|
|
60
|
+
]
|
|
61
|
+
});
|
|
62
|
+
var __octaneUniversalPlan7 = universalPlan("nativescript", {
|
|
63
|
+
"kind": "slot",
|
|
64
|
+
"slot": 0
|
|
65
|
+
});
|
|
66
|
+
var __octaneUniversalPlan8 = universalPlan("nativescript", {
|
|
67
|
+
"kind": "range",
|
|
68
|
+
"children": [{
|
|
69
|
+
"kind": "slot",
|
|
70
|
+
"slot": 0
|
|
71
|
+
}, {
|
|
72
|
+
"kind": "slot",
|
|
73
|
+
"slot": 1
|
|
74
|
+
}]
|
|
75
|
+
});
|
|
76
|
+
var __octaneUniversalPlan9 = universalPlan("nativescript", {
|
|
77
|
+
"kind": "range",
|
|
78
|
+
"children": [
|
|
79
|
+
{
|
|
80
|
+
"kind": "slot",
|
|
81
|
+
"slot": 0
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"kind": "slot",
|
|
85
|
+
"slot": 1
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"kind": "slot",
|
|
89
|
+
"slot": 2
|
|
90
|
+
}
|
|
91
|
+
]
|
|
92
|
+
});
|
|
93
|
+
function stamp(ms) {
|
|
94
|
+
const total = Math.max(0, Math.floor(ms / 1e3));
|
|
95
|
+
return `${Math.floor(total / 60)}:${String(total % 60).padStart(2, "0")}`;
|
|
96
|
+
}
|
|
97
|
+
var VideoChrome = defineUniversalComponent("nativescript", function VideoChrome(props) {
|
|
98
|
+
const [visible, setVisible] = useState(true, _h$0);
|
|
99
|
+
useEffect(() => {
|
|
100
|
+
if (!props.playing || !visible) return;
|
|
101
|
+
const t = setTimeout(() => setVisible(false), 2500);
|
|
102
|
+
return () => clearTimeout(t);
|
|
103
|
+
}, [props.playing, visible], _h$1);
|
|
104
|
+
return universalValue(__octaneUniversalPlan9, [
|
|
105
|
+
universalIf(props.poster && !props.started, () => {
|
|
106
|
+
return universalValue(__octaneUniversalPlan0, [universalComponent("nativescript", Image, universalProps([
|
|
107
|
+
[
|
|
108
|
+
"set",
|
|
109
|
+
"className",
|
|
110
|
+
"vx-video-poster"
|
|
111
|
+
],
|
|
112
|
+
[
|
|
113
|
+
"set",
|
|
114
|
+
"src",
|
|
115
|
+
props.poster
|
|
116
|
+
],
|
|
117
|
+
[
|
|
118
|
+
"set",
|
|
119
|
+
"ios",
|
|
120
|
+
{ stretch: "aspectFill" }
|
|
121
|
+
],
|
|
122
|
+
[
|
|
123
|
+
"set",
|
|
124
|
+
"android",
|
|
125
|
+
{ stretch: "aspectFill" }
|
|
126
|
+
]
|
|
127
|
+
]))]);
|
|
128
|
+
}),
|
|
129
|
+
universalComponent("nativescript", Pressable, universalProps([
|
|
130
|
+
[
|
|
131
|
+
"set",
|
|
132
|
+
"className",
|
|
133
|
+
"vx-video-tap"
|
|
134
|
+
],
|
|
135
|
+
[
|
|
136
|
+
"set",
|
|
137
|
+
"accessibilityRole",
|
|
138
|
+
"button"
|
|
139
|
+
],
|
|
140
|
+
[
|
|
141
|
+
"set",
|
|
142
|
+
"accessibilityLabel",
|
|
143
|
+
visible ? "Hide video controls" : "Show video controls"
|
|
144
|
+
],
|
|
145
|
+
[
|
|
146
|
+
"set",
|
|
147
|
+
"onPress",
|
|
148
|
+
() => setVisible(props.playing ? !visible : true)
|
|
149
|
+
]
|
|
150
|
+
])),
|
|
151
|
+
universalIf(visible, () => {
|
|
152
|
+
return universalValue(__octaneUniversalPlan8, [universalIf(!props.playing, () => {
|
|
153
|
+
return universalValue(__octaneUniversalPlan3, [universalComponent("nativescript", Pressable, universalProps([
|
|
154
|
+
[
|
|
155
|
+
"set",
|
|
156
|
+
"className",
|
|
157
|
+
"vx-video-center"
|
|
158
|
+
],
|
|
159
|
+
[
|
|
160
|
+
"set",
|
|
161
|
+
"justifyContent",
|
|
162
|
+
"center"
|
|
163
|
+
],
|
|
164
|
+
[
|
|
165
|
+
"set",
|
|
166
|
+
"alignItems",
|
|
167
|
+
"center"
|
|
168
|
+
],
|
|
169
|
+
[
|
|
170
|
+
"set",
|
|
171
|
+
"accessibilityRole",
|
|
172
|
+
"button"
|
|
173
|
+
],
|
|
174
|
+
[
|
|
175
|
+
"set",
|
|
176
|
+
"accessibilityLabel",
|
|
177
|
+
"Play"
|
|
178
|
+
],
|
|
179
|
+
[
|
|
180
|
+
"set",
|
|
181
|
+
"onPress",
|
|
182
|
+
props.onTogglePlay
|
|
183
|
+
]
|
|
184
|
+
], universalChildren("nativescript", () => {
|
|
185
|
+
return universalValue(__octaneUniversalPlan2, [universalComponent("nativescript", View, universalProps([[
|
|
186
|
+
"set",
|
|
187
|
+
"className",
|
|
188
|
+
"vx-video-centerbtn"
|
|
189
|
+
]], universalChildren("nativescript", () => {
|
|
190
|
+
return universalValue(__octaneUniversalPlan1, [universalComponent("nativescript", Icon, universalProps([
|
|
191
|
+
[
|
|
192
|
+
"set",
|
|
193
|
+
"name",
|
|
194
|
+
"xplat-play"
|
|
195
|
+
],
|
|
196
|
+
[
|
|
197
|
+
"set",
|
|
198
|
+
"size",
|
|
199
|
+
28
|
|
200
|
+
],
|
|
201
|
+
[
|
|
202
|
+
"set",
|
|
203
|
+
"color",
|
|
204
|
+
"#fff"
|
|
205
|
+
]
|
|
206
|
+
]))]);
|
|
207
|
+
})))]);
|
|
208
|
+
})))]);
|
|
209
|
+
}), universalComponent("nativescript", View, universalProps([[
|
|
210
|
+
"set",
|
|
211
|
+
"className",
|
|
212
|
+
"vx-video-barwrap"
|
|
213
|
+
], [
|
|
214
|
+
"set",
|
|
215
|
+
"justifyContent",
|
|
216
|
+
"end"
|
|
217
|
+
]], universalChildren("nativescript", () => {
|
|
218
|
+
return universalValue(__octaneUniversalPlan7, [universalComponent("nativescript", Row, universalProps([
|
|
219
|
+
[
|
|
220
|
+
"set",
|
|
221
|
+
"className",
|
|
222
|
+
"vx-video-bar"
|
|
223
|
+
],
|
|
224
|
+
[
|
|
225
|
+
"set",
|
|
226
|
+
"alignItems",
|
|
227
|
+
"center"
|
|
228
|
+
],
|
|
229
|
+
[
|
|
230
|
+
"set",
|
|
231
|
+
"gap",
|
|
232
|
+
8
|
|
233
|
+
]
|
|
234
|
+
], universalChildren("nativescript", () => {
|
|
235
|
+
return universalValue(__octaneUniversalPlan6, [
|
|
236
|
+
universalComponent("nativescript", Pressable, universalProps([
|
|
237
|
+
[
|
|
238
|
+
"set",
|
|
239
|
+
"className",
|
|
240
|
+
"vx-video-btn"
|
|
241
|
+
],
|
|
242
|
+
[
|
|
243
|
+
"set",
|
|
244
|
+
"accessibilityRole",
|
|
245
|
+
"button"
|
|
246
|
+
],
|
|
247
|
+
[
|
|
248
|
+
"set",
|
|
249
|
+
"accessibilityLabel",
|
|
250
|
+
props.playing ? "Pause" : "Play"
|
|
251
|
+
],
|
|
252
|
+
[
|
|
253
|
+
"set",
|
|
254
|
+
"onPress",
|
|
255
|
+
props.onTogglePlay
|
|
256
|
+
]
|
|
257
|
+
], universalChildren("nativescript", () => {
|
|
258
|
+
return universalValue(__octaneUniversalPlan4, [universalComponent("nativescript", Icon, universalProps([
|
|
259
|
+
[
|
|
260
|
+
"set",
|
|
261
|
+
"name",
|
|
262
|
+
props.playing ? "xplat-pause" : "xplat-play"
|
|
263
|
+
],
|
|
264
|
+
[
|
|
265
|
+
"set",
|
|
266
|
+
"size",
|
|
267
|
+
20
|
|
268
|
+
],
|
|
269
|
+
[
|
|
270
|
+
"set",
|
|
271
|
+
"color",
|
|
272
|
+
"#fff"
|
|
273
|
+
]
|
|
274
|
+
]))]);
|
|
275
|
+
}))),
|
|
276
|
+
universalComponent("nativescript", Text, universalProps([[
|
|
277
|
+
"set",
|
|
278
|
+
"className",
|
|
279
|
+
"vx-video-time"
|
|
280
|
+
]], stamp(props.position))),
|
|
281
|
+
universalComponent("nativescript", Slider, universalProps([
|
|
282
|
+
[
|
|
283
|
+
"set",
|
|
284
|
+
"className",
|
|
285
|
+
"vx-video-slider"
|
|
286
|
+
],
|
|
287
|
+
[
|
|
288
|
+
"set",
|
|
289
|
+
"style",
|
|
290
|
+
{ flexGrow: 1 }
|
|
291
|
+
],
|
|
292
|
+
[
|
|
293
|
+
"set",
|
|
294
|
+
"value",
|
|
295
|
+
props.position
|
|
296
|
+
],
|
|
297
|
+
[
|
|
298
|
+
"set",
|
|
299
|
+
"minValue",
|
|
300
|
+
0
|
|
301
|
+
],
|
|
302
|
+
[
|
|
303
|
+
"set",
|
|
304
|
+
"maxValue",
|
|
305
|
+
props.duration > 0 ? props.duration : 1
|
|
306
|
+
],
|
|
307
|
+
[
|
|
308
|
+
"set",
|
|
309
|
+
"onValueChange",
|
|
310
|
+
props.onSeek
|
|
311
|
+
]
|
|
312
|
+
])),
|
|
313
|
+
universalComponent("nativescript", Text, universalProps([[
|
|
314
|
+
"set",
|
|
315
|
+
"className",
|
|
316
|
+
"vx-video-time"
|
|
317
|
+
]], stamp(props.duration))),
|
|
318
|
+
universalComponent("nativescript", Pressable, universalProps([
|
|
319
|
+
[
|
|
320
|
+
"set",
|
|
321
|
+
"className",
|
|
322
|
+
"vx-video-btn"
|
|
323
|
+
],
|
|
324
|
+
[
|
|
325
|
+
"set",
|
|
326
|
+
"accessibilityRole",
|
|
327
|
+
"button"
|
|
328
|
+
],
|
|
329
|
+
[
|
|
330
|
+
"set",
|
|
331
|
+
"accessibilityLabel",
|
|
332
|
+
props.muted ? "Unmute" : "Mute"
|
|
333
|
+
],
|
|
334
|
+
[
|
|
335
|
+
"set",
|
|
336
|
+
"onPress",
|
|
337
|
+
props.onToggleMute
|
|
338
|
+
]
|
|
339
|
+
], universalChildren("nativescript", () => {
|
|
340
|
+
return universalValue(__octaneUniversalPlan5, [universalComponent("nativescript", Icon, universalProps([
|
|
341
|
+
[
|
|
342
|
+
"set",
|
|
343
|
+
"name",
|
|
344
|
+
props.muted ? "xplat-volume-off" : "xplat-volume"
|
|
345
|
+
],
|
|
346
|
+
[
|
|
347
|
+
"set",
|
|
348
|
+
"size",
|
|
349
|
+
20
|
|
350
|
+
],
|
|
351
|
+
[
|
|
352
|
+
"set",
|
|
353
|
+
"color",
|
|
354
|
+
"#fff"
|
|
355
|
+
]
|
|
356
|
+
]))]);
|
|
357
|
+
})))
|
|
358
|
+
]);
|
|
359
|
+
})))]);
|
|
360
|
+
})))]);
|
|
361
|
+
})
|
|
362
|
+
]);
|
|
363
|
+
}, { "module": "@nativescript-community/octane" });
|
|
364
|
+
//#endregion
|
|
365
|
+
export { VideoChrome };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { applyEscapeProps } from "./escape-props.web.js";
|
|
2
|
+
import { __s, bag16, clone, queueRefAttach, queueRefDetach, setAriaAttribute, setStyle, template } from "octane";
|
|
3
|
+
import { bindSignalAttribute, bindSignalChild, enableSignalBindings, replaceRef, setPlainAttribute, updateFreshClassName } from "octane/internal/client";
|
|
4
|
+
//#region src/Absolute.web.tsrx
|
|
5
|
+
enableSignalBindings(1, true);
|
|
6
|
+
var _t$0 = /* @__PURE__ */ template("<div></div>");
|
|
7
|
+
var _rm$1 = [
|
|
8
|
+
"r",
|
|
9
|
+
"e",
|
|
10
|
+
"b"
|
|
11
|
+
];
|
|
12
|
+
var Absolute = /* @__PURE__ */ __s(function Absolute(props, __s, __extra) {
|
|
13
|
+
let _b = __s.slots[0];
|
|
14
|
+
if (_b === void 0) {
|
|
15
|
+
let _m1, _m4;
|
|
16
|
+
const _root = clone(_t$0);
|
|
17
|
+
_m1 = _root;
|
|
18
|
+
queueRefAttach(__s, _m4 = (el) => applyEscapeProps(el, props), _m1);
|
|
19
|
+
(__s.cleanups ??= []).push(() => _b && queueRefDetach(_b.e, _b.b));
|
|
20
|
+
_b = bag16(__s, _root, void 0, _m1, void 0, void 0, _m4, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, null, void 0);
|
|
21
|
+
__s.refFields = _rm$1;
|
|
22
|
+
} else {
|
|
23
|
+
const _r = (el) => applyEscapeProps(el, props);
|
|
24
|
+
if (_r !== _b.e) _b.e = replaceRef(__s, _b.e, _r, _b.b);
|
|
25
|
+
}
|
|
26
|
+
_b.a = bindSignalAttribute(__s, _b.a, _b.b, "id", props.id, "b:1d9c3d06", setPlainAttribute);
|
|
27
|
+
_b.c = updateFreshClassName(["vx-absolute", props.className], _b.c, _b.b);
|
|
28
|
+
{
|
|
29
|
+
const _v = props.style;
|
|
30
|
+
if (_b.d !== _v) {
|
|
31
|
+
setStyle(_b.b, _v, _b.d);
|
|
32
|
+
_b.d = _v;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
_b.f = bindSignalAttribute(__s, _b.f, _b.b, "role", props.accessibilityRole, "b:a7333b54", setPlainAttribute);
|
|
36
|
+
_b.g = bindSignalAttribute(__s, _b.g, _b.b, "aria-label", props.accessibilityLabel, "b:709e3d48", setAriaAttribute);
|
|
37
|
+
_b.h = bindSignalAttribute(__s, _b.h, _b.b, "aria-hidden", props.accessible === false ? true : void 0, "b:7ae903c4", setAriaAttribute);
|
|
38
|
+
_b.i = bindSignalAttribute(__s, _b.i, _b.b, "aria-description", props.accessibilityHint, "b:a0927ebc", setAriaAttribute);
|
|
39
|
+
_b.j = bindSignalAttribute(__s, _b.j, _b.b, "aria-valuetext", props.accessibilityValue, "b:2a664c03", setAriaAttribute);
|
|
40
|
+
_b.k = bindSignalAttribute(__s, _b.k, _b.b, "aria-disabled", props.accessibilityState?.disabled, "b:4b5e5499", setAriaAttribute);
|
|
41
|
+
_b.l = bindSignalAttribute(__s, _b.l, _b.b, "aria-selected", props.accessibilityState?.selected, "b:b16a6b45", setAriaAttribute);
|
|
42
|
+
_b.m = bindSignalAttribute(__s, _b.m, _b.b, "aria-checked", props.accessibilityState?.checked, "b:211d6c51", setAriaAttribute);
|
|
43
|
+
_b.n = bindSignalAttribute(__s, _b.n, _b.b, "aria-live", props.accessibilityLiveRegion === "none" ? "off" : props.accessibilityLiveRegion, "b:b13c535c", setAriaAttribute);
|
|
44
|
+
_b.q = bindSignalChild(__s, _b.q, 1, _b.b, props.children, "b:9750e093", null, void 0, void 0, void 0, true);
|
|
45
|
+
});
|
|
46
|
+
//#endregion
|
|
47
|
+
export { Absolute };
|