@octane-xplat/ui 0.7.1 → 0.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/native/Hoverable.mobile.tsrx.js +39 -0
- package/dist/native/Tooltip.mobile.tsrx.js +39 -0
- package/dist/native/index.shared.js +2 -2
- package/dist/native/octane-client-build.json +1 -1
- package/dist/native/shared.js +2 -2
- package/dist/native/ui.js +2 -2
- package/dist/web/index.shared.js +92 -0
- package/dist/web/octane-client-build.json +1 -1
- package/dist/web/ui.js +1 -0
- package/package.json +1 -1
- package/src/index.shared.ts +84 -84
- package/src/index.web.ts +1 -261
- package/types/generated/.tsrx-typegen-manifest.json +7 -1
- package/types/generated/Hoverable.mobile.d.ts +8 -0
- package/types/generated/Tooltip.mobile.d.ts +7 -0
- package/types/generated/camera-permission.web.d.ts +2 -0
- package/types/generated/escape-props.web.d.ts +5 -0
- package/types/generated/index.web.d.ts +1 -111
- package/types/generated/text-write.web.d.ts +4 -0
- package/types/generated/toast.d.ts +3 -0
- package/types/generated/toast.web.d.ts +3 -0
- package/dist/native/Hoverable.tsrx.js +0 -139
- package/dist/native/Tooltip.tsrx.js +0 -131
- package/types/generated/theme/colorScheme.web.d.ts +0 -5
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { cx } from "./cx.js";
|
|
2
|
+
import { View } from "./View.tsrx.js";
|
|
3
|
+
import { defineUniversalComponent, universalComponent, universalPlan, universalProps, universalValue } from "@nativescript-community/octane";
|
|
4
|
+
//#region src/Hoverable.mobile.tsrx
|
|
5
|
+
var __octaneUniversalPlan0 = universalPlan("nativescript", {
|
|
6
|
+
"kind": "slot",
|
|
7
|
+
"slot": 0
|
|
8
|
+
});
|
|
9
|
+
var Hoverable = defineUniversalComponent("nativescript", function Hoverable(props) {
|
|
10
|
+
return universalValue(__octaneUniversalPlan0, [universalComponent("nativescript", View, universalProps([
|
|
11
|
+
[
|
|
12
|
+
"set",
|
|
13
|
+
"id",
|
|
14
|
+
props.id
|
|
15
|
+
],
|
|
16
|
+
[
|
|
17
|
+
"set",
|
|
18
|
+
"className",
|
|
19
|
+
cx(props.className)
|
|
20
|
+
],
|
|
21
|
+
[
|
|
22
|
+
"set",
|
|
23
|
+
"style",
|
|
24
|
+
props.style
|
|
25
|
+
],
|
|
26
|
+
[
|
|
27
|
+
"set",
|
|
28
|
+
"ios",
|
|
29
|
+
props.ios
|
|
30
|
+
],
|
|
31
|
+
[
|
|
32
|
+
"set",
|
|
33
|
+
"android",
|
|
34
|
+
props.android
|
|
35
|
+
]
|
|
36
|
+
], props.children))]);
|
|
37
|
+
}, { "module": "@nativescript-community/octane" });
|
|
38
|
+
//#endregion
|
|
39
|
+
export { Hoverable };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { cx } from "./cx.js";
|
|
2
|
+
import { View } from "./View.tsrx.js";
|
|
3
|
+
import { defineUniversalComponent, universalComponent, universalPlan, universalProps, universalValue } from "@nativescript-community/octane";
|
|
4
|
+
//#region src/Tooltip.mobile.tsrx
|
|
5
|
+
var __octaneUniversalPlan0 = universalPlan("nativescript", {
|
|
6
|
+
"kind": "slot",
|
|
7
|
+
"slot": 0
|
|
8
|
+
});
|
|
9
|
+
var Tooltip = defineUniversalComponent("nativescript", function Tooltip(props) {
|
|
10
|
+
return universalValue(__octaneUniversalPlan0, [universalComponent("nativescript", View, universalProps([
|
|
11
|
+
[
|
|
12
|
+
"set",
|
|
13
|
+
"id",
|
|
14
|
+
props.id
|
|
15
|
+
],
|
|
16
|
+
[
|
|
17
|
+
"set",
|
|
18
|
+
"className",
|
|
19
|
+
cx(props.className)
|
|
20
|
+
],
|
|
21
|
+
[
|
|
22
|
+
"set",
|
|
23
|
+
"style",
|
|
24
|
+
props.style
|
|
25
|
+
],
|
|
26
|
+
[
|
|
27
|
+
"set",
|
|
28
|
+
"ios",
|
|
29
|
+
props.ios
|
|
30
|
+
],
|
|
31
|
+
[
|
|
32
|
+
"set",
|
|
33
|
+
"android",
|
|
34
|
+
props.android
|
|
35
|
+
]
|
|
36
|
+
], props.trigger))]);
|
|
37
|
+
}, { "module": "@nativescript-community/octane" });
|
|
38
|
+
//#endregion
|
|
39
|
+
export { Tooltip };
|
|
@@ -68,8 +68,8 @@ import { ScrollBox } from "./ScrollBox.tsrx.js";
|
|
|
68
68
|
import { ScrollView } from "./ScrollView.tsrx.js";
|
|
69
69
|
import { VirtualList } from "./VirtualList.tsrx.js";
|
|
70
70
|
import { WebView } from "./WebView.tsrx.js";
|
|
71
|
-
import { Hoverable } from "./Hoverable.tsrx.js";
|
|
72
|
-
import { Tooltip } from "./Tooltip.tsrx.js";
|
|
71
|
+
import { Hoverable } from "./Hoverable.mobile.tsrx.js";
|
|
72
|
+
import { Tooltip } from "./Tooltip.mobile.tsrx.js";
|
|
73
73
|
import { showToast } from "./toast-anchor.tsrx.js";
|
|
74
74
|
import { useAnimation } from "./anim.tsrx.js";
|
|
75
75
|
import { styled } from "./styled.tsrx.js";
|
package/dist/native/shared.js
CHANGED
|
@@ -68,8 +68,8 @@ import { ScrollBox } from "./ScrollBox.tsrx.js";
|
|
|
68
68
|
import { ScrollView } from "./ScrollView.tsrx.js";
|
|
69
69
|
import { VirtualList } from "./VirtualList.tsrx.js";
|
|
70
70
|
import { WebView } from "./WebView.tsrx.js";
|
|
71
|
-
import { Hoverable } from "./Hoverable.tsrx.js";
|
|
72
|
-
import { Tooltip } from "./Tooltip.tsrx.js";
|
|
71
|
+
import { Hoverable } from "./Hoverable.mobile.tsrx.js";
|
|
72
|
+
import { Tooltip } from "./Tooltip.mobile.tsrx.js";
|
|
73
73
|
import { showToast } from "./toast-anchor.tsrx.js";
|
|
74
74
|
import { useAnimation } from "./anim.tsrx.js";
|
|
75
75
|
import { styled } from "./styled.tsrx.js";
|
package/dist/native/ui.js
CHANGED
|
@@ -68,8 +68,8 @@ import { ScrollBox } from "./ScrollBox.tsrx.js";
|
|
|
68
68
|
import { ScrollView } from "./ScrollView.tsrx.js";
|
|
69
69
|
import { VirtualList } from "./VirtualList.tsrx.js";
|
|
70
70
|
import { WebView } from "./WebView.tsrx.js";
|
|
71
|
-
import { Hoverable } from "./Hoverable.tsrx.js";
|
|
72
|
-
import { Tooltip } from "./Tooltip.tsrx.js";
|
|
71
|
+
import { Hoverable } from "./Hoverable.mobile.tsrx.js";
|
|
72
|
+
import { Tooltip } from "./Tooltip.mobile.tsrx.js";
|
|
73
73
|
import { showToast } from "./toast-anchor.tsrx.js";
|
|
74
74
|
import { useAnimation } from "./anim.tsrx.js";
|
|
75
75
|
import { styled } from "./styled.tsrx.js";
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { View } from "./View.web.tsrx.js";
|
|
2
|
+
import { Row } from "./Row.web.tsrx.js";
|
|
3
|
+
import { Grid } from "./Grid.web.tsrx.js";
|
|
4
|
+
import { Stack } from "./Stack.web.tsrx.js";
|
|
5
|
+
import { Absolute } from "./Absolute.web.tsrx.js";
|
|
6
|
+
import { setTranslate } from "./translate.web.js";
|
|
7
|
+
import { Spacer } from "./Spacer.web.tsrx.js";
|
|
8
|
+
import { Text } from "./Text.web.tsrx.js";
|
|
9
|
+
import { RichText, RichTextSpan } from "./RichText.web.tsrx.js";
|
|
10
|
+
import { Pressable } from "./Pressable.web.tsrx.js";
|
|
11
|
+
import { ActivityIndicator } from "./ActivityIndicator.web.tsrx.js";
|
|
12
|
+
import { Button } from "./Button.web.tsrx.js";
|
|
13
|
+
import { Collapsible } from "./Collapsible.web.tsrx.js";
|
|
14
|
+
import { Accordion } from "./Accordion.web.tsrx.js";
|
|
15
|
+
import { Checkbox } from "./Checkbox.web.tsrx.js";
|
|
16
|
+
import { RadioGroup } from "./RadioGroup.web.tsrx.js";
|
|
17
|
+
import { getColorScheme, useColorScheme } from "./theme/colorScheme.web.js";
|
|
18
|
+
import { applyThemeClasses, getThemePreference, getThemeScheme, onThemeSchemeChange, setThemePreference, themeSchemeClasses, useThemeScheme } from "./theme/theme-scheme.js";
|
|
19
|
+
import { Popover } from "./Popover.web.tsrx.js";
|
|
20
|
+
import { registerIcon, registerIcons } from "./icons.js";
|
|
21
|
+
import { Icon } from "./Icon.web.tsrx.js";
|
|
22
|
+
import { DropdownMenu } from "./DropdownMenu.web.tsrx.js";
|
|
23
|
+
import { ContextMenu } from "./ContextMenu.web.tsrx.js";
|
|
24
|
+
import { Badge } from "./Badge.web.tsrx.js";
|
|
25
|
+
import { Separator } from "./Separator.web.tsrx.js";
|
|
26
|
+
import { Skeleton } from "./Skeleton.web.tsrx.js";
|
|
27
|
+
import { Avatar } from "./Avatar.web.tsrx.js";
|
|
28
|
+
import { AvatarGroup } from "./AvatarGroup.web.tsrx.js";
|
|
29
|
+
import { FormField } from "./FormField.web.tsrx.js";
|
|
30
|
+
import { FieldGroup } from "./FieldGroup.web.tsrx.js";
|
|
31
|
+
import { ListItem } from "./ListItem.web.tsrx.js";
|
|
32
|
+
import { TextInput } from "./TextInput.web.tsrx.js";
|
|
33
|
+
import { InputNumber } from "./InputNumber.web.tsrx.js";
|
|
34
|
+
import { PinInput } from "./PinInput.web.tsrx.js";
|
|
35
|
+
import { Select } from "./Select.web.tsrx.js";
|
|
36
|
+
import { Combobox, InputMenu, SelectMenu } from "./aliases.web.tsrx.js";
|
|
37
|
+
import { InputTags } from "./InputTags.web.tsrx.js";
|
|
38
|
+
import { InputRating } from "./InputRating.web.tsrx.js";
|
|
39
|
+
import { CheckboxGroup } from "./CheckboxGroup.web.tsrx.js";
|
|
40
|
+
import { Breadcrumb } from "./Breadcrumb.web.tsrx.js";
|
|
41
|
+
import { Pagination } from "./Pagination.web.tsrx.js";
|
|
42
|
+
import { Stepper } from "./Stepper.web.tsrx.js";
|
|
43
|
+
import { NavigationMenu } from "./NavigationMenu.web.tsrx.js";
|
|
44
|
+
import { Overlay } from "./Overlay.web.tsrx.js";
|
|
45
|
+
import { CommandPalette } from "./CommandPalette.web.tsrx.js";
|
|
46
|
+
import { Table } from "./Table.web.tsrx.js";
|
|
47
|
+
import { Timeline } from "./Timeline.web.tsrx.js";
|
|
48
|
+
import { Tree } from "./Tree.web.tsrx.js";
|
|
49
|
+
import { Alert } from "./Alert.web.tsrx.js";
|
|
50
|
+
import { Card } from "./Card.web.tsrx.js";
|
|
51
|
+
import { Chip } from "./Chip.web.tsrx.js";
|
|
52
|
+
import { Kbd } from "./Kbd.web.tsrx.js";
|
|
53
|
+
import { Empty } from "./Empty.web.tsrx.js";
|
|
54
|
+
import { Banner } from "./Banner.web.tsrx.js";
|
|
55
|
+
import { User } from "./User.web.tsrx.js";
|
|
56
|
+
import { Meter } from "./Meter.web.tsrx.js";
|
|
57
|
+
import { ProgressGroup } from "./ProgressGroup.web.tsrx.js";
|
|
58
|
+
import { Link } from "./Link.web.tsrx.js";
|
|
59
|
+
import { defineRoutes, deriveRouteManifest, mergeRouteManifests } from "./route-table.js";
|
|
60
|
+
import { addBackInterceptor, addRoutes, canGoBack, currentModalRoute, currentRoute, hrefFor, layoutsFor, popRoute, pushDeepLink, pushRoute, redirect, registerRoutes, registerScreens, routeFor, routeStacks, screenFor, useCanGoBack, useModalRoute, useRoute } from "./route.web.js";
|
|
61
|
+
import { NavLink } from "./NavLink.web.tsrx.js";
|
|
62
|
+
import { TextArea } from "./TextArea.web.tsrx.js";
|
|
63
|
+
import { SearchInput } from "./SearchInput.web.tsrx.js";
|
|
64
|
+
import { SegmentedControl } from "./SegmentedControl.web.tsrx.js";
|
|
65
|
+
import { ScrollView } from "./ScrollView.web.tsrx.js";
|
|
66
|
+
import { ScrollBox } from "./ScrollBox.web.tsrx.js";
|
|
67
|
+
import { VirtualList } from "./VirtualList.web.tsrx.js";
|
|
68
|
+
import { Image } from "./Image.web.tsrx.js";
|
|
69
|
+
import { WebView } from "./WebView.web.tsrx.js";
|
|
70
|
+
import { Hoverable } from "./Hoverable.web.tsrx.js";
|
|
71
|
+
import { Tooltip } from "./Tooltip.web.tsrx.js";
|
|
72
|
+
import { showToast } from "./toast-anchor.web.tsrx.js";
|
|
73
|
+
import { useAnimation } from "./anim.web.tsrx.js";
|
|
74
|
+
import { styled } from "./styled.web.tsrx.js";
|
|
75
|
+
import { openWindow } from "./windows.web.js";
|
|
76
|
+
import { Screen } from "./Screen.web.tsrx.js";
|
|
77
|
+
import { Tabs } from "./Tabs.web.tsrx.js";
|
|
78
|
+
import { Switch } from "./Switch.web.tsrx.js";
|
|
79
|
+
import { useSafeAreaInsets } from "./safeAreaInsets.web.tsrx.js";
|
|
80
|
+
import { SafeArea } from "./SafeArea.web.tsrx.js";
|
|
81
|
+
import { Drawer } from "./Drawer.web.tsrx.js";
|
|
82
|
+
import { useMeasure } from "./useMeasure.web.tsrx.js";
|
|
83
|
+
import { Slider } from "./Slider.web.tsrx.js";
|
|
84
|
+
import { Heading } from "./Heading.web.tsrx.js";
|
|
85
|
+
import { isNative } from "./platform.web.js";
|
|
86
|
+
import { getStack, registerStack, stackEntries } from "./stacks.web.js";
|
|
87
|
+
import { useBackInterceptor } from "./use-back.web.tsrx.js";
|
|
88
|
+
import { createStore } from "./store.js";
|
|
89
|
+
import { useStore } from "./use-store.web.tsrx.js";
|
|
90
|
+
import { Sheet } from "./Sheet.web.tsrx.js";
|
|
91
|
+
import { closeSheet, openSheet } from "./sheet-service.web.js";
|
|
92
|
+
export { Absolute, Accordion, ActivityIndicator, Alert, Avatar, AvatarGroup, Badge, Banner, Breadcrumb, Button, Card, Checkbox, CheckboxGroup, Chip, Collapsible, View as Column, Combobox, CommandPalette, ContextMenu, Drawer, DropdownMenu, Empty, FieldGroup, FormField, Grid, Heading, Hoverable, Icon, Image, InputMenu, InputNumber, InputRating, InputTags, Kbd, Link, ListItem, Meter, NavLink, NavigationMenu, Overlay, 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, Tooltip, Tree, User, View, VirtualList, WebView, addBackInterceptor, addRoutes, applyThemeClasses, canGoBack, closeSheet, createStore, currentModalRoute, currentRoute, defineRoutes, deriveRouteManifest, getColorScheme, getStack, getThemePreference, getThemeScheme, hrefFor, isNative, layoutsFor as layoutsForRoute, mergeRouteManifests, 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 };
|
package/dist/web/ui.js
CHANGED
|
@@ -89,4 +89,5 @@ import { createStore } from "./store.js";
|
|
|
89
89
|
import { useStore } from "./use-store.web.tsrx.js";
|
|
90
90
|
import { Sheet } from "./Sheet.web.tsrx.js";
|
|
91
91
|
import { closeSheet, openSheet } from "./sheet-service.web.js";
|
|
92
|
+
import "./index.shared.js";
|
|
92
93
|
export { Absolute, Accordion, ActivityIndicator, Alert, Avatar, AvatarGroup, Badge, Banner, Breadcrumb, Button, Card, Checkbox, CheckboxGroup, Chip, Collapsible, View as Column, Combobox, CommandPalette, ContextMenu, Drawer, DropdownMenu, Empty, FieldGroup, FormField, Grid, Heading, Hoverable, Icon, Image, InputMenu, InputNumber, InputRating, InputTags, Kbd, Link, ListItem, Meter, NavLink, NavigationMenu, Overlay, 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, Tooltip, Tree, User, View, VirtualList, WebView, addBackInterceptor, addRoutes, applyThemeClasses, canGoBack, closeSheet, createStore, currentModalRoute, currentRoute, defineRoutes, deriveRouteManifest, getColorScheme, getStack, getThemePreference, getThemeScheme, hrefFor, isNative, layoutsFor as layoutsForRoute, mergeRouteManifests, 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 };
|
package/package.json
CHANGED
package/src/index.shared.ts
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
// Foundations and common controls
|
|
2
|
-
export { View } from './View
|
|
3
|
-
export { View as Column } from './View
|
|
4
|
-
export { Row } from './Row
|
|
5
|
-
export { Grid } from './Grid
|
|
6
|
-
export { Stack } from './Stack
|
|
7
|
-
export { Absolute } from './Absolute
|
|
2
|
+
export { View } from './View'
|
|
3
|
+
export { View as Column } from './View'
|
|
4
|
+
export { Row } from './Row'
|
|
5
|
+
export { Grid } from './Grid'
|
|
6
|
+
export { Stack } from './Stack'
|
|
7
|
+
export { Absolute } from './Absolute'
|
|
8
8
|
export type { PanEvent, SwipeEvent, SetTranslate } from './props'
|
|
9
9
|
export { setTranslate } from './translate'
|
|
10
|
-
export { Spacer } from './Spacer
|
|
11
|
-
export { Text } from './Text
|
|
12
|
-
export { RichText, RichTextSpan } from './RichText
|
|
13
|
-
export { Pressable } from './Pressable
|
|
14
|
-
export { Button } from './Button
|
|
15
|
-
export { Collapsible } from './Collapsible
|
|
16
|
-
export { Accordion } from './Accordion
|
|
17
|
-
export { Checkbox } from './Checkbox
|
|
18
|
-
export { RadioGroup } from './RadioGroup
|
|
19
|
-
export { DropdownMenu } from './DropdownMenu
|
|
20
|
-
export { ContextMenu } from './ContextMenu
|
|
21
|
-
export { Badge } from './Badge
|
|
22
|
-
export { Separator } from './Separator
|
|
23
|
-
export { Skeleton } from './Skeleton
|
|
24
|
-
export { Avatar } from './Avatar
|
|
25
|
-
export { AvatarGroup } from './AvatarGroup
|
|
10
|
+
export { Spacer } from './Spacer'
|
|
11
|
+
export { Text } from './Text'
|
|
12
|
+
export { RichText, RichTextSpan } from './RichText'
|
|
13
|
+
export { Pressable } from './Pressable'
|
|
14
|
+
export { Button } from './Button'
|
|
15
|
+
export { Collapsible } from './Collapsible'
|
|
16
|
+
export { Accordion } from './Accordion'
|
|
17
|
+
export { Checkbox } from './Checkbox'
|
|
18
|
+
export { RadioGroup } from './RadioGroup'
|
|
19
|
+
export { DropdownMenu } from './DropdownMenu'
|
|
20
|
+
export { ContextMenu } from './ContextMenu'
|
|
21
|
+
export { Badge } from './Badge'
|
|
22
|
+
export { Separator } from './Separator'
|
|
23
|
+
export { Skeleton } from './Skeleton'
|
|
24
|
+
export { Avatar } from './Avatar'
|
|
25
|
+
export { AvatarGroup } from './AvatarGroup'
|
|
26
26
|
export type {
|
|
27
27
|
AccordionItemSpec,
|
|
28
28
|
AccordionProps,
|
|
@@ -43,16 +43,16 @@ export type {
|
|
|
43
43
|
} from './props'
|
|
44
44
|
|
|
45
45
|
// Forms and data entry
|
|
46
|
-
export { FormField } from './FormField
|
|
47
|
-
export { FieldGroup } from './FieldGroup
|
|
48
|
-
export { ListItem } from './ListItem
|
|
49
|
-
export { InputNumber } from './InputNumber
|
|
50
|
-
export { PinInput } from './PinInput
|
|
51
|
-
export { Select } from './Select
|
|
52
|
-
export { SelectMenu, Combobox, InputMenu } from './aliases
|
|
53
|
-
export { InputTags } from './InputTags
|
|
54
|
-
export { InputRating } from './InputRating
|
|
55
|
-
export { CheckboxGroup } from './CheckboxGroup
|
|
46
|
+
export { FormField } from './FormField'
|
|
47
|
+
export { FieldGroup } from './FieldGroup'
|
|
48
|
+
export { ListItem } from './ListItem'
|
|
49
|
+
export { InputNumber } from './InputNumber'
|
|
50
|
+
export { PinInput } from './PinInput'
|
|
51
|
+
export { Select } from './Select'
|
|
52
|
+
export { SelectMenu, Combobox, InputMenu } from './aliases'
|
|
53
|
+
export { InputTags } from './InputTags'
|
|
54
|
+
export { InputRating } from './InputRating'
|
|
55
|
+
export { CheckboxGroup } from './CheckboxGroup'
|
|
56
56
|
export type {
|
|
57
57
|
CheckboxGroupProps,
|
|
58
58
|
FieldGroupProps,
|
|
@@ -69,11 +69,11 @@ export type {
|
|
|
69
69
|
} from './props'
|
|
70
70
|
|
|
71
71
|
// Navigation and command surfaces
|
|
72
|
-
export { Breadcrumb } from './Breadcrumb
|
|
73
|
-
export { Pagination } from './Pagination
|
|
74
|
-
export { Stepper } from './Stepper
|
|
75
|
-
export { NavigationMenu } from './NavigationMenu
|
|
76
|
-
export { CommandPalette } from './CommandPalette
|
|
72
|
+
export { Breadcrumb } from './Breadcrumb'
|
|
73
|
+
export { Pagination } from './Pagination'
|
|
74
|
+
export { Stepper } from './Stepper'
|
|
75
|
+
export { NavigationMenu } from './NavigationMenu'
|
|
76
|
+
export { CommandPalette } from './CommandPalette'
|
|
77
77
|
export type {
|
|
78
78
|
BreadcrumbItem,
|
|
79
79
|
BreadcrumbProps,
|
|
@@ -86,17 +86,17 @@ export type {
|
|
|
86
86
|
} from './props'
|
|
87
87
|
|
|
88
88
|
// Content and display
|
|
89
|
-
export { Table } from './Table
|
|
90
|
-
export { Timeline } from './Timeline
|
|
91
|
-
export { Tree } from './Tree
|
|
92
|
-
export { Alert } from './Alert
|
|
93
|
-
export { Card } from './Card
|
|
94
|
-
export { Chip } from './Chip
|
|
95
|
-
export { Kbd } from './Kbd
|
|
96
|
-
export { Empty } from './Empty
|
|
97
|
-
export { Banner } from './Banner
|
|
98
|
-
export { User } from './User
|
|
99
|
-
export { ProgressGroup } from './ProgressGroup
|
|
89
|
+
export { Table } from './Table'
|
|
90
|
+
export { Timeline } from './Timeline'
|
|
91
|
+
export { Tree } from './Tree'
|
|
92
|
+
export { Alert } from './Alert'
|
|
93
|
+
export { Card } from './Card'
|
|
94
|
+
export { Chip } from './Chip'
|
|
95
|
+
export { Kbd } from './Kbd'
|
|
96
|
+
export { Empty } from './Empty'
|
|
97
|
+
export { Banner } from './Banner'
|
|
98
|
+
export { User } from './User'
|
|
99
|
+
export { ProgressGroup } from './ProgressGroup'
|
|
100
100
|
export type {
|
|
101
101
|
AlertProps,
|
|
102
102
|
BannerProps,
|
|
@@ -115,24 +115,24 @@ export type {
|
|
|
115
115
|
} from './props'
|
|
116
116
|
|
|
117
117
|
// Links, input, scrolling, media, and overlays
|
|
118
|
-
export { Link } from './Link
|
|
119
|
-
export { NavLink } from './NavLink
|
|
120
|
-
export { TextInput } from './TextInput
|
|
121
|
-
export { TextArea } from './TextArea
|
|
122
|
-
export { SearchInput } from './SearchInput
|
|
123
|
-
export { SegmentedControl } from './SegmentedControl
|
|
124
|
-
export { ScrollBox } from './ScrollBox
|
|
125
|
-
export { ScrollView } from './ScrollView
|
|
126
|
-
export { VirtualList } from './VirtualList
|
|
118
|
+
export { Link } from './Link'
|
|
119
|
+
export { NavLink } from './NavLink'
|
|
120
|
+
export { TextInput } from './TextInput'
|
|
121
|
+
export { TextArea } from './TextArea'
|
|
122
|
+
export { SearchInput } from './SearchInput'
|
|
123
|
+
export { SegmentedControl } from './SegmentedControl'
|
|
124
|
+
export { ScrollBox } from './ScrollBox'
|
|
125
|
+
export { ScrollView } from './ScrollView'
|
|
126
|
+
export { VirtualList } from './VirtualList'
|
|
127
127
|
export type { VirtualListProps } from './props'
|
|
128
|
-
export { Image } from './Image
|
|
129
|
-
export { WebView } from './WebView
|
|
128
|
+
export { Image } from './Image'
|
|
129
|
+
export { WebView } from './WebView'
|
|
130
130
|
export type { WebViewContentSize, WebViewHandle, WebViewLoadEvent, WebViewProps } from './props'
|
|
131
|
-
export { Overlay } from './Overlay
|
|
132
|
-
export { Popover } from './Popover
|
|
133
|
-
export { Hoverable } from './Hoverable
|
|
134
|
-
export { Tooltip } from './Tooltip
|
|
135
|
-
export { showToast } from './toast-anchor
|
|
131
|
+
export { Overlay } from './Overlay'
|
|
132
|
+
export { Popover } from './Popover'
|
|
133
|
+
export { Hoverable } from './Hoverable'
|
|
134
|
+
export { Tooltip } from './Tooltip'
|
|
135
|
+
export { showToast } from './toast-anchor'
|
|
136
136
|
export type {
|
|
137
137
|
HoverableProps,
|
|
138
138
|
OverlayProps,
|
|
@@ -146,8 +146,8 @@ export type {
|
|
|
146
146
|
} from './props'
|
|
147
147
|
|
|
148
148
|
// Animation, theme, styling, and host services
|
|
149
|
-
export { useAnimation } from './anim
|
|
150
|
-
export type { AnimatedValue } from './anim
|
|
149
|
+
export { useAnimation } from './anim'
|
|
150
|
+
export type { AnimatedValue } from './anim'
|
|
151
151
|
export {
|
|
152
152
|
useThemeScheme,
|
|
153
153
|
getThemeScheme,
|
|
@@ -160,25 +160,25 @@ export {
|
|
|
160
160
|
|
|
161
161
|
export { useColorScheme, getColorScheme } from './theme/colorScheme'
|
|
162
162
|
export type { ColorScheme } from './theme/colorScheme'
|
|
163
|
-
export { styled } from './styled
|
|
163
|
+
export { styled } from './styled'
|
|
164
164
|
export { openWindow } from './windows'
|
|
165
165
|
|
|
166
166
|
// Screens, visual controls, and icons
|
|
167
|
-
export { Screen } from './Screen
|
|
168
|
-
export { Tabs } from './Tabs
|
|
169
|
-
export type { TabSpec } from './Tabs
|
|
170
|
-
export { Switch } from './Switch
|
|
171
|
-
export { SafeArea } from './SafeArea
|
|
172
|
-
export { Drawer } from './Drawer
|
|
173
|
-
export { useSafeAreaInsets } from './safeAreaInsets
|
|
174
|
-
export type { SafeAreaInsets } from './safeAreaInsets
|
|
175
|
-
export { useMeasure } from './useMeasure
|
|
167
|
+
export { Screen } from './Screen'
|
|
168
|
+
export { Tabs } from './Tabs'
|
|
169
|
+
export type { TabSpec } from './Tabs'
|
|
170
|
+
export { Switch } from './Switch'
|
|
171
|
+
export { SafeArea } from './SafeArea'
|
|
172
|
+
export { Drawer } from './Drawer'
|
|
173
|
+
export { useSafeAreaInsets } from './safeAreaInsets'
|
|
174
|
+
export type { SafeAreaInsets } from './safeAreaInsets'
|
|
175
|
+
export { useMeasure } from './useMeasure'
|
|
176
176
|
export type { MeasureBounds, MeasureResult, UseMeasureOptions } from './props'
|
|
177
|
-
export { ActivityIndicator } from './ActivityIndicator
|
|
178
|
-
export { Meter } from './Meter
|
|
179
|
-
export { Slider } from './Slider
|
|
180
|
-
export { Icon } from './Icon
|
|
181
|
-
export { Heading } from './Heading
|
|
177
|
+
export { ActivityIndicator } from './ActivityIndicator'
|
|
178
|
+
export { Meter } from './Meter'
|
|
179
|
+
export { Slider } from './Slider'
|
|
180
|
+
export { Icon } from './Icon'
|
|
181
|
+
export { Heading } from './Heading'
|
|
182
182
|
export { registerIcon, registerIcons } from './icons'
|
|
183
183
|
export type { IconGlyph } from './icons'
|
|
184
184
|
export type {
|
|
@@ -216,7 +216,7 @@ export {
|
|
|
216
216
|
layoutsForRoute,
|
|
217
217
|
} from './route'
|
|
218
218
|
|
|
219
|
-
export { useBackInterceptor } from './use-back
|
|
219
|
+
export { useBackInterceptor } from './use-back'
|
|
220
220
|
|
|
221
221
|
export { deriveRouteManifest, defineRoutes, mergeRouteManifests } from './route-table'
|
|
222
222
|
export type {
|
|
@@ -240,8 +240,8 @@ export type {
|
|
|
240
240
|
// Stores, sheets, and shared prop types
|
|
241
241
|
export { createStore } from './store'
|
|
242
242
|
export type { Store, ReadableStore } from './store'
|
|
243
|
-
export { useStore } from './use-store
|
|
244
|
-
export { Sheet } from './Sheet
|
|
243
|
+
export { useStore } from './use-store'
|
|
244
|
+
export { Sheet } from './Sheet'
|
|
245
245
|
export { openSheet, closeSheet } from './sheet-service'
|
|
246
246
|
export type { SheetProps, SheetOpenOptions, OpenSheet } from './props'
|
|
247
247
|
export type {
|
package/src/index.web.ts
CHANGED
|
@@ -1,261 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
export { View as Column } from './View.web.tsrx'
|
|
3
|
-
export { Row } from './Row.web.tsrx'
|
|
4
|
-
export { Grid } from './Grid.web.tsrx'
|
|
5
|
-
export { Stack } from './Stack.web.tsrx'
|
|
6
|
-
export { Absolute } from './Absolute.web.tsrx'
|
|
7
|
-
export type { PanEvent, SwipeEvent, SetTranslate } from './props'
|
|
8
|
-
export { setTranslate } from './translate.web'
|
|
9
|
-
export { Spacer } from './Spacer.web.tsrx'
|
|
10
|
-
export { Text } from './Text.web.tsrx'
|
|
11
|
-
export { RichText, RichTextSpan } from './RichText.web.tsrx'
|
|
12
|
-
export { Pressable } from './Pressable.web.tsrx'
|
|
13
|
-
export { Button } from './Button.web.tsrx'
|
|
14
|
-
export { Collapsible } from './Collapsible.web.tsrx'
|
|
15
|
-
export { Accordion } from './Accordion.web.tsrx'
|
|
16
|
-
export { Checkbox } from './Checkbox.web.tsrx'
|
|
17
|
-
export { RadioGroup } from './RadioGroup.web.tsrx'
|
|
18
|
-
export { DropdownMenu } from './DropdownMenu.web.tsrx'
|
|
19
|
-
export { ContextMenu } from './ContextMenu.web.tsrx'
|
|
20
|
-
export { Badge } from './Badge.web.tsrx'
|
|
21
|
-
export { Separator } from './Separator.web.tsrx'
|
|
22
|
-
export { Skeleton } from './Skeleton.web.tsrx'
|
|
23
|
-
export { Avatar } from './Avatar.web.tsrx'
|
|
24
|
-
export { AvatarGroup } from './AvatarGroup.web.tsrx'
|
|
25
|
-
export type {
|
|
26
|
-
AccordionItemSpec,
|
|
27
|
-
AccordionProps,
|
|
28
|
-
AvatarGroupProps,
|
|
29
|
-
AvatarProps,
|
|
30
|
-
BadgeProps,
|
|
31
|
-
ButtonProps,
|
|
32
|
-
CheckboxProps,
|
|
33
|
-
CollapsibleProps,
|
|
34
|
-
ContextMenuProps,
|
|
35
|
-
DropdownMenuProps,
|
|
36
|
-
MenuItem,
|
|
37
|
-
RadioGroupProps,
|
|
38
|
-
RadioOption,
|
|
39
|
-
SegmentedControlProps,
|
|
40
|
-
SeparatorProps,
|
|
41
|
-
SkeletonProps,
|
|
42
|
-
} from './props'
|
|
43
|
-
|
|
44
|
-
export { FormField } from './FormField.web.tsrx'
|
|
45
|
-
export { FieldGroup } from './FieldGroup.web.tsrx'
|
|
46
|
-
export { ListItem } from './ListItem.web.tsrx'
|
|
47
|
-
export { InputNumber } from './InputNumber.web.tsrx'
|
|
48
|
-
export { PinInput } from './PinInput.web.tsrx'
|
|
49
|
-
export { Select } from './Select.web.tsrx'
|
|
50
|
-
export { SelectMenu, Combobox, InputMenu } from './aliases.web.tsrx'
|
|
51
|
-
export { InputTags } from './InputTags.web.tsrx'
|
|
52
|
-
export { InputRating } from './InputRating.web.tsrx'
|
|
53
|
-
export { CheckboxGroup } from './CheckboxGroup.web.tsrx'
|
|
54
|
-
export type {
|
|
55
|
-
CheckboxGroupProps,
|
|
56
|
-
FieldGroupProps,
|
|
57
|
-
ListItemComponent,
|
|
58
|
-
ListItemProps,
|
|
59
|
-
ListItemSlotProps,
|
|
60
|
-
FormFieldProps,
|
|
61
|
-
InputNumberProps,
|
|
62
|
-
InputRatingProps,
|
|
63
|
-
InputTagsProps,
|
|
64
|
-
PinInputProps,
|
|
65
|
-
SelectOption,
|
|
66
|
-
SelectProps,
|
|
67
|
-
} from './props'
|
|
68
|
-
|
|
69
|
-
export { Breadcrumb } from './Breadcrumb.web.tsrx'
|
|
70
|
-
export { Pagination } from './Pagination.web.tsrx'
|
|
71
|
-
export { Stepper } from './Stepper.web.tsrx'
|
|
72
|
-
export { NavigationMenu } from './NavigationMenu.web.tsrx'
|
|
73
|
-
export { CommandPalette } from './CommandPalette.web.tsrx'
|
|
74
|
-
export type {
|
|
75
|
-
BreadcrumbItem,
|
|
76
|
-
BreadcrumbProps,
|
|
77
|
-
CommandPaletteProps,
|
|
78
|
-
NavigationMenuItem,
|
|
79
|
-
NavigationMenuProps,
|
|
80
|
-
PaginationProps,
|
|
81
|
-
StepperProps,
|
|
82
|
-
StepperStep,
|
|
83
|
-
} from './props'
|
|
84
|
-
|
|
85
|
-
export { Table } from './Table.web.tsrx'
|
|
86
|
-
export { Timeline } from './Timeline.web.tsrx'
|
|
87
|
-
export { Tree } from './Tree.web.tsrx'
|
|
88
|
-
export { Alert } from './Alert.web.tsrx'
|
|
89
|
-
export { Card } from './Card.web.tsrx'
|
|
90
|
-
export { Chip } from './Chip.web.tsrx'
|
|
91
|
-
export { Kbd } from './Kbd.web.tsrx'
|
|
92
|
-
export { Empty } from './Empty.web.tsrx'
|
|
93
|
-
export { Banner } from './Banner.web.tsrx'
|
|
94
|
-
export { User } from './User.web.tsrx'
|
|
95
|
-
export { ProgressGroup } from './ProgressGroup.web.tsrx'
|
|
96
|
-
export type {
|
|
97
|
-
AlertProps,
|
|
98
|
-
BannerProps,
|
|
99
|
-
CardProps,
|
|
100
|
-
ChipProps,
|
|
101
|
-
EmptyProps,
|
|
102
|
-
KbdProps,
|
|
103
|
-
ProgressGroupProps,
|
|
104
|
-
TableColumn,
|
|
105
|
-
TableProps,
|
|
106
|
-
TimelineItem,
|
|
107
|
-
TimelineProps,
|
|
108
|
-
TreeNode,
|
|
109
|
-
TreeProps,
|
|
110
|
-
UserProps,
|
|
111
|
-
} from './props'
|
|
112
|
-
|
|
113
|
-
export { Link } from './Link.web.tsrx'
|
|
114
|
-
export { NavLink } from './NavLink.web.tsrx'
|
|
115
|
-
export { TextInput } from './TextInput.web.tsrx'
|
|
116
|
-
export { TextArea } from './TextArea.web.tsrx'
|
|
117
|
-
export { SearchInput } from './SearchInput.web.tsrx'
|
|
118
|
-
export { SegmentedControl } from './SegmentedControl.web.tsrx'
|
|
119
|
-
export { ScrollBox } from './ScrollBox.web.tsrx'
|
|
120
|
-
export { ScrollView } from './ScrollView.web.tsrx'
|
|
121
|
-
export { VirtualList } from './VirtualList.web.tsrx'
|
|
122
|
-
export type { VirtualListProps } from './props'
|
|
123
|
-
export { Image } from './Image.web.tsrx'
|
|
124
|
-
export { WebView } from './WebView.web.tsrx'
|
|
125
|
-
export type { WebViewContentSize, WebViewHandle, WebViewLoadEvent, WebViewProps } from './props'
|
|
126
|
-
export { Overlay } from './Overlay.web.tsrx'
|
|
127
|
-
export { Popover } from './Popover.web.tsrx'
|
|
128
|
-
export { Hoverable } from './Hoverable.web.tsrx'
|
|
129
|
-
export { Tooltip } from './Tooltip.web.tsrx'
|
|
130
|
-
export { showToast } from './toast-anchor.web.tsrx'
|
|
131
|
-
export type {
|
|
132
|
-
HoverableProps,
|
|
133
|
-
OverlayProps,
|
|
134
|
-
PopoverAnchorRef,
|
|
135
|
-
PopoverProps,
|
|
136
|
-
PopoverPlacement,
|
|
137
|
-
ToastContent,
|
|
138
|
-
ToastOptions,
|
|
139
|
-
ToastPosition,
|
|
140
|
-
TooltipProps,
|
|
141
|
-
} from './props'
|
|
142
|
-
|
|
143
|
-
export { useAnimation } from './anim.web.tsrx'
|
|
144
|
-
export type { AnimatedValue } from './anim.web.tsrx'
|
|
145
|
-
export {
|
|
146
|
-
useThemeScheme,
|
|
147
|
-
getThemeScheme,
|
|
148
|
-
setThemePreference,
|
|
149
|
-
getThemePreference,
|
|
150
|
-
themeSchemeClasses,
|
|
151
|
-
onThemeSchemeChange,
|
|
152
|
-
applyThemeClasses,
|
|
153
|
-
} from './theme/theme-scheme'
|
|
154
|
-
|
|
155
|
-
export { useColorScheme, getColorScheme } from './theme/colorScheme.web'
|
|
156
|
-
export type { ColorScheme } from './theme/colorScheme.web'
|
|
157
|
-
export { styled } from './styled.web.tsrx'
|
|
158
|
-
export { openWindow } from './windows.web'
|
|
159
|
-
export { Screen } from './Screen.web.tsrx'
|
|
160
|
-
export { Tabs } from './Tabs.web.tsrx'
|
|
161
|
-
export type { TabSpec } from './Tabs.web.tsrx'
|
|
162
|
-
export { Switch } from './Switch.web.tsrx'
|
|
163
|
-
export { SafeArea } from './SafeArea.web.tsrx'
|
|
164
|
-
export { Drawer } from './Drawer.web.tsrx'
|
|
165
|
-
export { useSafeAreaInsets } from './safeAreaInsets.web.tsrx'
|
|
166
|
-
export type { SafeAreaInsets } from './safeAreaInsets.web.tsrx'
|
|
167
|
-
export { useMeasure } from './useMeasure.web.tsrx'
|
|
168
|
-
export type { MeasureBounds, MeasureResult, UseMeasureOptions } from './props'
|
|
169
|
-
export { ActivityIndicator } from './ActivityIndicator.web.tsrx'
|
|
170
|
-
export { Meter } from './Meter.web.tsrx'
|
|
171
|
-
export { Slider } from './Slider.web.tsrx'
|
|
172
|
-
export { Icon } from './Icon.web.tsrx'
|
|
173
|
-
export { Heading } from './Heading.web.tsrx'
|
|
174
|
-
export { registerIcon, registerIcons } from './icons'
|
|
175
|
-
export type { IconGlyph } from './icons'
|
|
176
|
-
export type {
|
|
177
|
-
ActivityIndicatorProps,
|
|
178
|
-
HeadingProps,
|
|
179
|
-
IconProps,
|
|
180
|
-
MeterProps,
|
|
181
|
-
RefreshProps,
|
|
182
|
-
SearchInputProps,
|
|
183
|
-
SliderProps,
|
|
184
|
-
} from './props'
|
|
185
|
-
|
|
186
|
-
export { isNative } from './platform.web'
|
|
187
|
-
export { registerStack, getStack, stackEntries } from './stacks.web'
|
|
188
|
-
export {
|
|
189
|
-
pushRoute,
|
|
190
|
-
popRoute,
|
|
191
|
-
routeStacks,
|
|
192
|
-
pushDeepLink,
|
|
193
|
-
routeFor,
|
|
194
|
-
currentRoute,
|
|
195
|
-
currentModalRoute,
|
|
196
|
-
canGoBack,
|
|
197
|
-
useCanGoBack,
|
|
198
|
-
useRoute,
|
|
199
|
-
useModalRoute,
|
|
200
|
-
redirect,
|
|
201
|
-
addBackInterceptor,
|
|
202
|
-
registerScreens,
|
|
203
|
-
registerRoutes,
|
|
204
|
-
addRoutes,
|
|
205
|
-
screenFor,
|
|
206
|
-
hrefFor,
|
|
207
|
-
layoutsFor as layoutsForRoute,
|
|
208
|
-
} from './route.web'
|
|
209
|
-
|
|
210
|
-
export { useBackInterceptor } from './use-back.web.tsrx'
|
|
211
|
-
|
|
212
|
-
export { deriveRouteManifest, defineRoutes, mergeRouteManifests } from './route-table'
|
|
213
|
-
export type {
|
|
214
|
-
BeforeLoad,
|
|
215
|
-
BeforeLoadArgs,
|
|
216
|
-
LinkProps,
|
|
217
|
-
NavLinkProps,
|
|
218
|
-
Route,
|
|
219
|
-
RouteContext,
|
|
220
|
-
RouteHead,
|
|
221
|
-
RouteHeadExport,
|
|
222
|
-
RouteMeta,
|
|
223
|
-
RouteManifest,
|
|
224
|
-
RouteSpec,
|
|
225
|
-
RouteSpecSet,
|
|
226
|
-
ScreenTable,
|
|
227
|
-
ModalOpenResult,
|
|
228
|
-
OpenWindowOptions,
|
|
229
|
-
} from './props'
|
|
230
|
-
|
|
231
|
-
export { createStore } from './store'
|
|
232
|
-
export type { Store, ReadableStore } from './store'
|
|
233
|
-
export { useStore } from './use-store.web.tsrx'
|
|
234
|
-
export { Sheet } from './Sheet.web.tsrx'
|
|
235
|
-
export { openSheet, closeSheet } from './sheet-service.web'
|
|
236
|
-
export type { SheetProps, SheetOpenOptions, OpenSheet } from './props'
|
|
237
|
-
|
|
238
|
-
// These props are shared type-only exports added after the explicit web barrel.
|
|
239
|
-
export type {
|
|
240
|
-
AbsoluteProps,
|
|
241
|
-
DrawerProps,
|
|
242
|
-
GridProps,
|
|
243
|
-
ImageProps,
|
|
244
|
-
LayoutChildProps,
|
|
245
|
-
PressableProps,
|
|
246
|
-
RichTextProps,
|
|
247
|
-
RichTextSpanProps,
|
|
248
|
-
RowProps,
|
|
249
|
-
SafeAreaProps,
|
|
250
|
-
ScreenProps,
|
|
251
|
-
ScrollBoxProps,
|
|
252
|
-
ScrollViewProps,
|
|
253
|
-
SpacerProps,
|
|
254
|
-
StackProps,
|
|
255
|
-
SwitchProps,
|
|
256
|
-
TabsProps,
|
|
257
|
-
TextAreaProps,
|
|
258
|
-
TextInputProps,
|
|
259
|
-
TextProps,
|
|
260
|
-
ViewProps,
|
|
261
|
-
} from './props'
|
|
1
|
+
export * from './index.shared'
|
|
@@ -50,6 +50,7 @@
|
|
|
50
50
|
"Heading.d.ts",
|
|
51
51
|
"Heading.web.d.ts",
|
|
52
52
|
"Hoverable.d.ts",
|
|
53
|
+
"Hoverable.mobile.d.ts",
|
|
53
54
|
"Hoverable.web.d.ts",
|
|
54
55
|
"Icon.d.ts",
|
|
55
56
|
"Icon.web.d.ts",
|
|
@@ -136,6 +137,7 @@
|
|
|
136
137
|
"Timeline.d.ts",
|
|
137
138
|
"Timeline.web.d.ts",
|
|
138
139
|
"Tooltip.d.ts",
|
|
140
|
+
"Tooltip.mobile.d.ts",
|
|
139
141
|
"Tooltip.web.d.ts",
|
|
140
142
|
"Tree.d.ts",
|
|
141
143
|
"Tree.web.d.ts",
|
|
@@ -162,9 +164,11 @@
|
|
|
162
164
|
"anim.d.ts",
|
|
163
165
|
"anim.web.d.ts",
|
|
164
166
|
"apply-native-modifiers.native.d.ts",
|
|
167
|
+
"camera-permission.web.d.ts",
|
|
165
168
|
"child-array.d.ts",
|
|
166
169
|
"cx.d.ts",
|
|
167
170
|
"escape-props.d.ts",
|
|
171
|
+
"escape-props.web.d.ts",
|
|
168
172
|
"icons.d.ts",
|
|
169
173
|
"index.d.ts",
|
|
170
174
|
"index.linux.d.ts",
|
|
@@ -221,13 +225,15 @@
|
|
|
221
225
|
"svg.mobile.d.ts",
|
|
222
226
|
"tap-to-blur.mobile.d.ts",
|
|
223
227
|
"text-write.d.ts",
|
|
228
|
+
"text-write.web.d.ts",
|
|
224
229
|
"theme/colorScheme.d.ts",
|
|
225
230
|
"theme/colorScheme.linux.d.ts",
|
|
226
|
-
"theme/colorScheme.web.d.ts",
|
|
227
231
|
"theme/status-bar-scheme.mobile.d.ts",
|
|
228
232
|
"theme/theme-scheme.d.ts",
|
|
229
233
|
"toast-anchor.d.ts",
|
|
230
234
|
"toast-anchor.web.d.ts",
|
|
235
|
+
"toast.d.ts",
|
|
236
|
+
"toast.web.d.ts",
|
|
231
237
|
"transform.web.d.ts",
|
|
232
238
|
"translate.d.ts",
|
|
233
239
|
"translate.web.d.ts",
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** @jsxImportSource @nativescript-community/octane */
|
|
2
|
+
import type { HoverableProps } from './props.js';
|
|
3
|
+
/** Touch-target leaf: renders the children unchanged and never mounts the
|
|
4
|
+
* hover card — pointer intent has no touch semantic. A long-press stand-in
|
|
5
|
+
* is deliberately not provided (the fake-parity trap from decision #44).
|
|
6
|
+
* Keep essential information out of `card`; the pointer platforms (web,
|
|
7
|
+
* macOS) carry the real hover surface. */
|
|
8
|
+
export declare function Hoverable(props: HoverableProps): unknown;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** @jsxImportSource @nativescript-community/octane */
|
|
2
|
+
import type { TooltipProps } from './props.js';
|
|
3
|
+
/** Touch-target leaf: renders the trigger unchanged and never mounts the
|
|
4
|
+
* hint layer — hover/focus intent has no touch semantic (decision #47,
|
|
5
|
+
* revised). Keep essential information out of `content`; the pointer
|
|
6
|
+
* platforms (web, macOS) carry the real hover surface. */
|
|
7
|
+
export declare function Tooltip(props: TooltipProps): unknown;
|
|
@@ -1,111 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
export { View as Column } from './View.web.js';
|
|
3
|
-
export { Row } from './Row.web.js';
|
|
4
|
-
export { Grid } from './Grid.web.js';
|
|
5
|
-
export { Stack } from './Stack.web.js';
|
|
6
|
-
export { Absolute } from './Absolute.web.js';
|
|
7
|
-
export type { PanEvent, SwipeEvent, SetTranslate } from './props.js';
|
|
8
|
-
export { setTranslate } from './translate.web.js';
|
|
9
|
-
export { Spacer } from './Spacer.web.js';
|
|
10
|
-
export { Text } from './Text.web.js';
|
|
11
|
-
export { RichText, RichTextSpan } from './RichText.web.js';
|
|
12
|
-
export { Pressable } from './Pressable.web.js';
|
|
13
|
-
export { Button } from './Button.web.js';
|
|
14
|
-
export { Collapsible } from './Collapsible.web.js';
|
|
15
|
-
export { Accordion } from './Accordion.web.js';
|
|
16
|
-
export { Checkbox } from './Checkbox.web.js';
|
|
17
|
-
export { RadioGroup } from './RadioGroup.web.js';
|
|
18
|
-
export { DropdownMenu } from './DropdownMenu.web.js';
|
|
19
|
-
export { ContextMenu } from './ContextMenu.web.js';
|
|
20
|
-
export { Badge } from './Badge.web.js';
|
|
21
|
-
export { Separator } from './Separator.web.js';
|
|
22
|
-
export { Skeleton } from './Skeleton.web.js';
|
|
23
|
-
export { Avatar } from './Avatar.web.js';
|
|
24
|
-
export { AvatarGroup } from './AvatarGroup.web.js';
|
|
25
|
-
export type { AccordionItemSpec, AccordionProps, AvatarGroupProps, AvatarProps, BadgeProps, ButtonProps, CheckboxProps, CollapsibleProps, ContextMenuProps, DropdownMenuProps, MenuItem, RadioGroupProps, RadioOption, SegmentedControlProps, SeparatorProps, SkeletonProps, } from './props.js';
|
|
26
|
-
export { FormField } from './FormField.web.js';
|
|
27
|
-
export { FieldGroup } from './FieldGroup.web.js';
|
|
28
|
-
export { ListItem } from './ListItem.web.js';
|
|
29
|
-
export { InputNumber } from './InputNumber.web.js';
|
|
30
|
-
export { PinInput } from './PinInput.web.js';
|
|
31
|
-
export { Select } from './Select.web.js';
|
|
32
|
-
export { SelectMenu, Combobox, InputMenu } from './aliases.web.js';
|
|
33
|
-
export { InputTags } from './InputTags.web.js';
|
|
34
|
-
export { InputRating } from './InputRating.web.js';
|
|
35
|
-
export { CheckboxGroup } from './CheckboxGroup.web.js';
|
|
36
|
-
export type { CheckboxGroupProps, FieldGroupProps, ListItemComponent, ListItemProps, ListItemSlotProps, FormFieldProps, InputNumberProps, InputRatingProps, InputTagsProps, PinInputProps, SelectOption, SelectProps, } from './props.js';
|
|
37
|
-
export { Breadcrumb } from './Breadcrumb.web.js';
|
|
38
|
-
export { Pagination } from './Pagination.web.js';
|
|
39
|
-
export { Stepper } from './Stepper.web.js';
|
|
40
|
-
export { NavigationMenu } from './NavigationMenu.web.js';
|
|
41
|
-
export { CommandPalette } from './CommandPalette.web.js';
|
|
42
|
-
export type { BreadcrumbItem, BreadcrumbProps, CommandPaletteProps, NavigationMenuItem, NavigationMenuProps, PaginationProps, StepperProps, StepperStep, } from './props.js';
|
|
43
|
-
export { Table } from './Table.web.js';
|
|
44
|
-
export { Timeline } from './Timeline.web.js';
|
|
45
|
-
export { Tree } from './Tree.web.js';
|
|
46
|
-
export { Alert } from './Alert.web.js';
|
|
47
|
-
export { Card } from './Card.web.js';
|
|
48
|
-
export { Chip } from './Chip.web.js';
|
|
49
|
-
export { Kbd } from './Kbd.web.js';
|
|
50
|
-
export { Empty } from './Empty.web.js';
|
|
51
|
-
export { Banner } from './Banner.web.js';
|
|
52
|
-
export { User } from './User.web.js';
|
|
53
|
-
export { ProgressGroup } from './ProgressGroup.web.js';
|
|
54
|
-
export type { AlertProps, BannerProps, CardProps, ChipProps, EmptyProps, KbdProps, ProgressGroupProps, TableColumn, TableProps, TimelineItem, TimelineProps, TreeNode, TreeProps, UserProps, } from './props.js';
|
|
55
|
-
export { Link } from './Link.web.js';
|
|
56
|
-
export { NavLink } from './NavLink.web.js';
|
|
57
|
-
export { TextInput } from './TextInput.web.js';
|
|
58
|
-
export { TextArea } from './TextArea.web.js';
|
|
59
|
-
export { SearchInput } from './SearchInput.web.js';
|
|
60
|
-
export { SegmentedControl } from './SegmentedControl.web.js';
|
|
61
|
-
export { ScrollBox } from './ScrollBox.web.js';
|
|
62
|
-
export { ScrollView } from './ScrollView.web.js';
|
|
63
|
-
export { VirtualList } from './VirtualList.web.js';
|
|
64
|
-
export type { VirtualListProps } from './props.js';
|
|
65
|
-
export { Image } from './Image.web.js';
|
|
66
|
-
export { WebView } from './WebView.web.js';
|
|
67
|
-
export type { WebViewContentSize, WebViewHandle, WebViewLoadEvent, WebViewProps } from './props.js';
|
|
68
|
-
export { Overlay } from './Overlay.web.js';
|
|
69
|
-
export { Popover } from './Popover.web.js';
|
|
70
|
-
export { Hoverable } from './Hoverable.web.js';
|
|
71
|
-
export { Tooltip } from './Tooltip.web.js';
|
|
72
|
-
export { showToast } from './toast-anchor.web.js';
|
|
73
|
-
export type { HoverableProps, OverlayProps, PopoverAnchorRef, PopoverProps, PopoverPlacement, ToastContent, ToastOptions, ToastPosition, TooltipProps, } from './props.js';
|
|
74
|
-
export { useAnimation } from './anim.web.js';
|
|
75
|
-
export type { AnimatedValue } from './anim.web.js';
|
|
76
|
-
export { useThemeScheme, getThemeScheme, setThemePreference, getThemePreference, themeSchemeClasses, onThemeSchemeChange, applyThemeClasses, } from './theme/theme-scheme.js';
|
|
77
|
-
export { useColorScheme, getColorScheme } from './theme/colorScheme.web.js';
|
|
78
|
-
export type { ColorScheme } from './theme/colorScheme.web.js';
|
|
79
|
-
export { styled } from './styled.web.js';
|
|
80
|
-
export { openWindow } from './windows.web.js';
|
|
81
|
-
export { Screen } from './Screen.web.js';
|
|
82
|
-
export { Tabs } from './Tabs.web.js';
|
|
83
|
-
export type { TabSpec } from './Tabs.web.js';
|
|
84
|
-
export { Switch } from './Switch.web.js';
|
|
85
|
-
export { SafeArea } from './SafeArea.web.js';
|
|
86
|
-
export { Drawer } from './Drawer.web.js';
|
|
87
|
-
export { useSafeAreaInsets } from './safeAreaInsets.web.js';
|
|
88
|
-
export type { SafeAreaInsets } from './safeAreaInsets.web.js';
|
|
89
|
-
export { useMeasure } from './useMeasure.web.js';
|
|
90
|
-
export type { MeasureBounds, MeasureResult, UseMeasureOptions } from './props.js';
|
|
91
|
-
export { ActivityIndicator } from './ActivityIndicator.web.js';
|
|
92
|
-
export { Meter } from './Meter.web.js';
|
|
93
|
-
export { Slider } from './Slider.web.js';
|
|
94
|
-
export { Icon } from './Icon.web.js';
|
|
95
|
-
export { Heading } from './Heading.web.js';
|
|
96
|
-
export { registerIcon, registerIcons } from './icons.js';
|
|
97
|
-
export type { IconGlyph } from './icons.js';
|
|
98
|
-
export type { ActivityIndicatorProps, HeadingProps, IconProps, MeterProps, RefreshProps, SearchInputProps, SliderProps, } from './props.js';
|
|
99
|
-
export { isNative } from './platform.web.js';
|
|
100
|
-
export { registerStack, getStack, stackEntries } from './stacks.web.js';
|
|
101
|
-
export { pushRoute, popRoute, routeStacks, pushDeepLink, routeFor, currentRoute, currentModalRoute, canGoBack, useCanGoBack, useRoute, useModalRoute, redirect, addBackInterceptor, registerScreens, registerRoutes, addRoutes, screenFor, hrefFor, layoutsFor as layoutsForRoute, } from './route.web.js';
|
|
102
|
-
export { useBackInterceptor } from './use-back.web.js';
|
|
103
|
-
export { deriveRouteManifest, defineRoutes, mergeRouteManifests } from './route-table.js';
|
|
104
|
-
export type { BeforeLoad, BeforeLoadArgs, LinkProps, NavLinkProps, Route, RouteContext, RouteHead, RouteHeadExport, RouteMeta, RouteManifest, RouteSpec, RouteSpecSet, ScreenTable, ModalOpenResult, OpenWindowOptions, } from './props.js';
|
|
105
|
-
export { createStore } from './store.js';
|
|
106
|
-
export type { Store, ReadableStore } from './store.js';
|
|
107
|
-
export { useStore } from './use-store.web.js';
|
|
108
|
-
export { Sheet } from './Sheet.web.js';
|
|
109
|
-
export { openSheet, closeSheet } from './sheet-service.web.js';
|
|
110
|
-
export type { SheetProps, SheetOpenOptions, OpenSheet } from './props.js';
|
|
111
|
-
export type { AbsoluteProps, DrawerProps, GridProps, ImageProps, LayoutChildProps, PressableProps, RichTextProps, RichTextSpanProps, RowProps, SafeAreaProps, ScreenProps, ScrollBoxProps, ScrollViewProps, SpacerProps, StackProps, SwitchProps, TabsProps, TextAreaProps, TextInputProps, TextProps, ViewProps, } from './props.js';
|
|
1
|
+
export * from './index.shared.js';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/** Web twin — controlled text writes are DOM value assignments; the browser
|
|
2
|
+
* keeps the selection on unchanged prefixes itself. Present for
|
|
3
|
+
* platform-suffix parity; the native leaves are the only callers. */
|
|
4
|
+
export declare function writeText(view: any, value: string | undefined | null): void;
|
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
import { cx } from "./cx.js";
|
|
2
|
-
import { View } from "./View.tsrx.js";
|
|
3
|
-
import { defineUniversalComponent, hookSlots, universalComponent, universalPlan, universalProps, universalValue, useEffect, useRef } from "@nativescript-community/octane";
|
|
4
|
-
//#region src/Hoverable.tsrx
|
|
5
|
-
var _hs$ = /* @__PURE__ */ hookSlots(7);
|
|
6
|
-
var _h$0 = /* @__PURE__ */ Symbol(_hs$);
|
|
7
|
-
var _h$1 = /* @__PURE__ */ Symbol(_hs$ + 1);
|
|
8
|
-
var _h$2 = /* @__PURE__ */ Symbol(_hs$ + 2);
|
|
9
|
-
var _h$3 = /* @__PURE__ */ Symbol(_hs$ + 3);
|
|
10
|
-
var _h$4 = /* @__PURE__ */ Symbol(_hs$ + 4);
|
|
11
|
-
var _h$5 = /* @__PURE__ */ Symbol(_hs$ + 5);
|
|
12
|
-
var _h$6 = /* @__PURE__ */ Symbol(_hs$ + 6);
|
|
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 host = () => globalThis.__xplatAppKit ?? {};
|
|
22
|
-
var HoverablePanel = defineUniversalComponent("nativescript", function HoverablePanel(props) {
|
|
23
|
-
return universalValue(__octaneUniversalPlan0, [universalComponent("nativescript", View, universalProps([[
|
|
24
|
-
"set",
|
|
25
|
-
"className",
|
|
26
|
-
cx("vx-hoverable-card", props.className)
|
|
27
|
-
], [
|
|
28
|
-
"set",
|
|
29
|
-
"style",
|
|
30
|
-
props.style
|
|
31
|
-
]], props.body))]);
|
|
32
|
-
}, { "module": "@nativescript-community/octane" });
|
|
33
|
-
var Hoverable = defineUniversalComponent("nativescript", function Hoverable(props) {
|
|
34
|
-
const anchor = useRef(null, _h$0);
|
|
35
|
-
const popup = useRef(null, _h$1);
|
|
36
|
-
const detachHover = useRef(null, _h$2);
|
|
37
|
-
const detachCardHover = useRef(null, _h$3);
|
|
38
|
-
const openTimer = useRef(null, _h$4);
|
|
39
|
-
const closeTimer = useRef(null, _h$5);
|
|
40
|
-
const clearOpen = () => {
|
|
41
|
-
if (openTimer.current !== null) clearTimeout(openTimer.current);
|
|
42
|
-
openTimer.current = null;
|
|
43
|
-
};
|
|
44
|
-
const clearClose = () => {
|
|
45
|
-
if (closeTimer.current !== null) clearTimeout(closeTimer.current);
|
|
46
|
-
closeTimer.current = null;
|
|
47
|
-
};
|
|
48
|
-
const closeNow = () => {
|
|
49
|
-
clearOpen();
|
|
50
|
-
clearClose();
|
|
51
|
-
detachCardHover.current?.();
|
|
52
|
-
detachCardHover.current = null;
|
|
53
|
-
popup.current?.close();
|
|
54
|
-
popup.current = null;
|
|
55
|
-
};
|
|
56
|
-
const openNow = () => {
|
|
57
|
-
if (popup.current) return;
|
|
58
|
-
const view = anchor.current;
|
|
59
|
-
const show = host().showAnchoredPopup;
|
|
60
|
-
if (!view || typeof show !== "function") return;
|
|
61
|
-
popup.current = show({
|
|
62
|
-
anchor: view,
|
|
63
|
-
placement: props.placement ?? "bottom",
|
|
64
|
-
component: HoverablePanel,
|
|
65
|
-
props: {
|
|
66
|
-
body: props.card,
|
|
67
|
-
className: props.cardClassName,
|
|
68
|
-
style: props.cardStyle
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
if (popup.current?.contentView && typeof host().observeHover === "function") detachCardHover.current = host().observeHover(popup.current.contentView, {
|
|
72
|
-
enter: clearClose,
|
|
73
|
-
exit: scheduleClose
|
|
74
|
-
});
|
|
75
|
-
};
|
|
76
|
-
const startOpen = () => {
|
|
77
|
-
clearClose();
|
|
78
|
-
clearOpen();
|
|
79
|
-
openTimer.current = setTimeout(() => {
|
|
80
|
-
openTimer.current = null;
|
|
81
|
-
openNow();
|
|
82
|
-
}, Math.max(0, props.openDelay ?? 500));
|
|
83
|
-
};
|
|
84
|
-
const scheduleClose = () => {
|
|
85
|
-
clearClose();
|
|
86
|
-
closeTimer.current = setTimeout(() => {
|
|
87
|
-
closeTimer.current = null;
|
|
88
|
-
closeNow();
|
|
89
|
-
}, Math.max(0, props.closeDelay ?? 120));
|
|
90
|
-
};
|
|
91
|
-
const bindAnchor = (view) => {
|
|
92
|
-
if (view && view === anchor.current && detachHover.current) return;
|
|
93
|
-
anchor.current = view;
|
|
94
|
-
detachHover.current?.();
|
|
95
|
-
detachHover.current = null;
|
|
96
|
-
if (!view) return;
|
|
97
|
-
const observe = host().observeHover;
|
|
98
|
-
if (typeof observe !== "function") return;
|
|
99
|
-
detachHover.current = observe(view, {
|
|
100
|
-
enter: startOpen,
|
|
101
|
-
exit: () => {
|
|
102
|
-
clearOpen();
|
|
103
|
-
scheduleClose();
|
|
104
|
-
}
|
|
105
|
-
});
|
|
106
|
-
};
|
|
107
|
-
useEffect(() => () => {
|
|
108
|
-
clearOpen();
|
|
109
|
-
clearClose();
|
|
110
|
-
detachHover.current?.();
|
|
111
|
-
detachCardHover.current?.();
|
|
112
|
-
popup.current?.close();
|
|
113
|
-
popup.current = null;
|
|
114
|
-
}, [], _h$6);
|
|
115
|
-
return universalValue(__octaneUniversalPlan1, [universalComponent("nativescript", View, universalProps([
|
|
116
|
-
[
|
|
117
|
-
"set",
|
|
118
|
-
"id",
|
|
119
|
-
props.id
|
|
120
|
-
],
|
|
121
|
-
[
|
|
122
|
-
"set",
|
|
123
|
-
"className",
|
|
124
|
-
props.className
|
|
125
|
-
],
|
|
126
|
-
[
|
|
127
|
-
"set",
|
|
128
|
-
"style",
|
|
129
|
-
props.style
|
|
130
|
-
],
|
|
131
|
-
[
|
|
132
|
-
"set",
|
|
133
|
-
"bind",
|
|
134
|
-
bindAnchor
|
|
135
|
-
]
|
|
136
|
-
], props.children))]);
|
|
137
|
-
}, { "module": "@nativescript-community/octane" });
|
|
138
|
-
//#endregion
|
|
139
|
-
export { Hoverable };
|
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
import { cx } from "./cx.js";
|
|
2
|
-
import { View } from "./View.tsrx.js";
|
|
3
|
-
import { defineUniversalComponent, hookSlots, universalComponent, universalPlan, universalProps, universalValue, useEffect, useRef } from "@nativescript-community/octane";
|
|
4
|
-
//#region src/Tooltip.tsrx
|
|
5
|
-
var _hs$ = /* @__PURE__ */ hookSlots(6);
|
|
6
|
-
var _h$0 = /* @__PURE__ */ Symbol(_hs$);
|
|
7
|
-
var _h$1 = /* @__PURE__ */ Symbol(_hs$ + 1);
|
|
8
|
-
var _h$2 = /* @__PURE__ */ Symbol(_hs$ + 2);
|
|
9
|
-
var _h$3 = /* @__PURE__ */ Symbol(_hs$ + 3);
|
|
10
|
-
var _h$4 = /* @__PURE__ */ Symbol(_hs$ + 4);
|
|
11
|
-
var _h$5 = /* @__PURE__ */ Symbol(_hs$ + 5);
|
|
12
|
-
var __octaneUniversalPlan0 = universalPlan("nativescript", {
|
|
13
|
-
"kind": "slot",
|
|
14
|
-
"slot": 0
|
|
15
|
-
});
|
|
16
|
-
var __octaneUniversalPlan1 = universalPlan("nativescript", {
|
|
17
|
-
"kind": "slot",
|
|
18
|
-
"slot": 0
|
|
19
|
-
});
|
|
20
|
-
var host = () => globalThis.__xplatAppKit ?? {};
|
|
21
|
-
var TooltipPanel = defineUniversalComponent("nativescript", function TooltipPanel(props) {
|
|
22
|
-
return universalValue(__octaneUniversalPlan0, [universalComponent("nativescript", View, universalProps([[
|
|
23
|
-
"set",
|
|
24
|
-
"className",
|
|
25
|
-
cx("vx-tooltip", props.className)
|
|
26
|
-
], [
|
|
27
|
-
"set",
|
|
28
|
-
"style",
|
|
29
|
-
props.style
|
|
30
|
-
]], props.body))]);
|
|
31
|
-
}, { "module": "@nativescript-community/octane" });
|
|
32
|
-
var Tooltip = defineUniversalComponent("nativescript", function Tooltip(props) {
|
|
33
|
-
const anchor = useRef(null, _h$0);
|
|
34
|
-
const popup = useRef(null, _h$1);
|
|
35
|
-
const detachHover = useRef(null, _h$2);
|
|
36
|
-
const openTimer = useRef(null, _h$3);
|
|
37
|
-
const closeTimer = useRef(null, _h$4);
|
|
38
|
-
const clearOpen = () => {
|
|
39
|
-
if (openTimer.current !== null) clearTimeout(openTimer.current);
|
|
40
|
-
openTimer.current = null;
|
|
41
|
-
};
|
|
42
|
-
const clearClose = () => {
|
|
43
|
-
if (closeTimer.current !== null) clearTimeout(closeTimer.current);
|
|
44
|
-
closeTimer.current = null;
|
|
45
|
-
};
|
|
46
|
-
const closeNow = () => {
|
|
47
|
-
clearOpen();
|
|
48
|
-
clearClose();
|
|
49
|
-
popup.current?.close();
|
|
50
|
-
popup.current = null;
|
|
51
|
-
};
|
|
52
|
-
const openNow = () => {
|
|
53
|
-
if (props.disabled || popup.current) return;
|
|
54
|
-
const view = anchor.current;
|
|
55
|
-
const show = host().showAnchoredPopup;
|
|
56
|
-
if (!view || typeof show !== "function") return;
|
|
57
|
-
popup.current = show({
|
|
58
|
-
anchor: view,
|
|
59
|
-
placement: props.placement ?? "top",
|
|
60
|
-
component: TooltipPanel,
|
|
61
|
-
props: {
|
|
62
|
-
body: props.content,
|
|
63
|
-
className: props.contentClassName,
|
|
64
|
-
style: props.contentStyle
|
|
65
|
-
}
|
|
66
|
-
});
|
|
67
|
-
};
|
|
68
|
-
const startOpen = () => {
|
|
69
|
-
if (props.disabled) return;
|
|
70
|
-
clearClose();
|
|
71
|
-
clearOpen();
|
|
72
|
-
openTimer.current = setTimeout(() => {
|
|
73
|
-
openTimer.current = null;
|
|
74
|
-
openNow();
|
|
75
|
-
}, Math.max(0, props.openDelay ?? 500));
|
|
76
|
-
};
|
|
77
|
-
const scheduleClose = () => {
|
|
78
|
-
clearClose();
|
|
79
|
-
closeTimer.current = setTimeout(() => {
|
|
80
|
-
closeTimer.current = null;
|
|
81
|
-
closeNow();
|
|
82
|
-
}, Math.max(0, props.closeDelay ?? 100));
|
|
83
|
-
};
|
|
84
|
-
const bindAnchor = (view) => {
|
|
85
|
-
if (view && view === anchor.current && detachHover.current) return;
|
|
86
|
-
anchor.current = view;
|
|
87
|
-
detachHover.current?.();
|
|
88
|
-
detachHover.current = null;
|
|
89
|
-
if (!view) return;
|
|
90
|
-
const observe = host().observeHover;
|
|
91
|
-
if (typeof observe !== "function") return;
|
|
92
|
-
detachHover.current = observe(view, {
|
|
93
|
-
enter: startOpen,
|
|
94
|
-
exit: () => {
|
|
95
|
-
clearOpen();
|
|
96
|
-
scheduleClose();
|
|
97
|
-
}
|
|
98
|
-
});
|
|
99
|
-
};
|
|
100
|
-
useEffect(() => () => {
|
|
101
|
-
clearOpen();
|
|
102
|
-
clearClose();
|
|
103
|
-
detachHover.current?.();
|
|
104
|
-
popup.current?.close();
|
|
105
|
-
popup.current = null;
|
|
106
|
-
}, [], _h$5);
|
|
107
|
-
return universalValue(__octaneUniversalPlan1, [universalComponent("nativescript", View, universalProps([
|
|
108
|
-
[
|
|
109
|
-
"set",
|
|
110
|
-
"id",
|
|
111
|
-
props.id
|
|
112
|
-
],
|
|
113
|
-
[
|
|
114
|
-
"set",
|
|
115
|
-
"className",
|
|
116
|
-
props.className
|
|
117
|
-
],
|
|
118
|
-
[
|
|
119
|
-
"set",
|
|
120
|
-
"style",
|
|
121
|
-
props.style
|
|
122
|
-
],
|
|
123
|
-
[
|
|
124
|
-
"set",
|
|
125
|
-
"bind",
|
|
126
|
-
bindAnchor
|
|
127
|
-
]
|
|
128
|
-
], props.trigger))]);
|
|
129
|
-
}, { "module": "@nativescript-community/octane" });
|
|
130
|
-
//#endregion
|
|
131
|
-
export { Tooltip };
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export type { ColorScheme } from '../props.js';
|
|
2
|
-
import type { ColorScheme } from '../props.js';
|
|
3
|
-
export declare function getColorScheme(): ColorScheme;
|
|
4
|
-
export declare function subscribeSystemScheme(cb: () => void): () => void;
|
|
5
|
-
export declare function useColorScheme(): ColorScheme;
|