@octane-xplat/ui 0.3.0 → 0.5.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 +46 -0
- package/dist/native/octane-client-build.json +1 -1
- package/dist/native/ui.js +55 -40
- package/dist/native/ui10.js +20 -11
- package/dist/native/ui11.js +42 -109
- package/dist/native/ui12.js +17 -84
- package/dist/native/ui13.js +11 -41
- package/dist/native/ui14.js +133 -76
- package/dist/native/ui15.js +43 -92
- package/dist/native/ui16.js +106 -45
- package/dist/native/ui17.js +29 -42
- package/dist/native/ui18.js +34 -53
- package/dist/native/ui19.js +246 -32
- package/dist/native/ui20.js +27 -16
- package/dist/native/ui21.js +376 -86
- package/dist/native/ui22.js +26 -114
- package/dist/native/ui23.js +49 -97
- package/dist/native/ui24.js +79 -53
- package/dist/native/ui25.js +138 -16
- package/dist/native/ui26.js +8 -23
- package/dist/native/ui27.js +60 -34
- package/dist/native/ui28.js +36 -142
- package/dist/native/ui29.js +101 -21
- package/dist/native/ui3.js +22 -1
- package/dist/native/ui30.js +14 -31
- package/dist/native/ui31.js +55 -36
- package/dist/native/ui32.js +49 -61
- package/dist/native/ui33.js +36 -28
- package/dist/native/ui34.js +51 -8
- package/dist/native/ui35.js +98 -20
- package/dist/native/ui36.js +9 -33
- package/dist/native/ui37.js +42 -15
- package/dist/native/ui38.js +186 -57
- package/dist/native/ui39.js +96 -26
- package/dist/native/ui4.js +22 -20
- package/dist/native/ui40.js +179 -8
- package/dist/native/ui41.js +52 -98
- package/dist/native/ui42.js +14 -145
- package/dist/native/ui43.js +16 -19
- package/dist/native/ui44.js +6 -6
- package/dist/native/ui45.js +38 -0
- package/dist/native/ui46.js +267 -0
- package/dist/native/ui47.js +28 -0
- package/dist/native/ui48.js +35 -0
- package/dist/native/ui49.js +41 -0
- package/dist/native/ui5.js +37 -77
- package/dist/native/ui50.js +72 -0
- package/dist/native/ui51.js +66 -0
- package/dist/native/ui52.js +64 -0
- package/dist/native/ui53.js +27 -0
- package/dist/native/ui54.js +13 -0
- package/dist/native/ui55.js +92 -0
- package/dist/native/ui56.js +34 -0
- package/dist/native/ui57.js +19 -0
- package/dist/native/ui58.js +156 -0
- package/dist/native/ui59.js +33 -0
- package/dist/native/ui6.js +94 -9
- package/dist/native/ui60.js +14 -0
- package/dist/native/ui61.js +22 -0
- package/dist/native/ui62.js +8 -0
- package/dist/native/ui63.js +108 -0
- package/dist/native/ui64.js +76 -0
- package/dist/native/ui7.js +42 -26
- package/dist/native/ui8.js +22 -12
- package/dist/native/ui9.js +18 -9
- package/dist/web/octane-client-build.json +1 -1
- package/dist/web/ui.js +53 -40
- package/dist/web/ui10.js +33 -186
- package/dist/web/ui11.js +28 -409
- package/dist/web/ui12.js +21 -68
- package/dist/web/ui13.js +265 -96
- package/dist/web/ui14.js +85 -95
- package/dist/web/ui15.js +368 -25
- package/dist/web/ui16.js +13 -101
- package/dist/web/ui17.js +246 -42
- package/dist/web/ui18.js +237 -28
- package/dist/web/ui19.js +36 -10
- package/dist/web/ui20.js +73 -102
- package/dist/web/ui21.js +102 -73
- package/dist/web/ui22.js +95 -55
- package/dist/web/ui23.js +94 -55
- package/dist/web/ui24.js +31 -15
- package/dist/web/ui25.js +105 -19
- package/dist/web/ui26.js +29 -23
- package/dist/web/ui27.js +12 -123
- package/dist/web/ui28.js +9 -110
- package/dist/web/ui29.js +52 -102
- package/dist/web/ui3.js +29 -18
- package/dist/web/ui30.js +32 -41
- package/dist/web/ui31.js +120 -39
- package/dist/web/ui32.js +41 -74
- package/dist/web/ui33.js +148 -32
- package/dist/web/ui34.js +145 -62
- package/dist/web/ui35.js +140 -7
- package/dist/web/ui36.js +86 -41
- package/dist/web/ui37.js +19 -44
- package/dist/web/ui38.js +5 -15
- package/dist/web/ui39.js +24 -86
- package/dist/web/ui4.js +46 -152
- package/dist/web/ui40.js +150 -37
- package/dist/web/ui41.js +36 -10
- package/dist/web/ui42.js +40 -7
- package/dist/web/ui43.js +73 -19
- package/dist/web/ui44.js +40 -6
- package/dist/web/ui45.js +62 -0
- package/dist/web/ui46.js +50 -0
- package/dist/web/ui47.js +9 -0
- package/dist/web/ui48.js +45 -0
- package/dist/web/ui49.js +13 -0
- package/dist/web/ui5.js +131 -27
- package/dist/web/ui50.js +63 -0
- package/dist/web/ui51.js +47 -0
- package/dist/web/ui52.js +19 -0
- package/dist/web/ui53.js +273 -0
- package/dist/web/ui54.js +42 -0
- package/dist/web/ui55.js +17 -0
- package/dist/web/ui56.js +9 -0
- package/dist/web/ui57.js +22 -0
- package/dist/web/ui58.js +8 -0
- package/dist/web/ui59.js +44 -0
- package/dist/web/ui6.js +81 -45
- package/dist/web/ui60.js +46 -0
- package/dist/web/ui7.js +43 -21
- package/dist/web/ui8.js +27 -21
- package/dist/web/ui9.js +29 -18
- package/package.json +17 -4
- package/src/theme/tokens.css +597 -141
- package/types/index.d.ts +112 -58
- package/types/props.d.ts +291 -16
package/README.md
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# @octane-xplat/ui
|
|
2
|
+
|
|
3
|
+
> Cross-platform primitives for Octane xplat — one element vocabulary that
|
|
4
|
+
> renders to the DOM on web and NativeScript views on iOS/Android.
|
|
5
|
+
>
|
|
6
|
+
> Status: `0.x` — the API surface is still moving. iOS/Android targets need
|
|
7
|
+
> the NativeScript toolchain (Xcode/JDK + `ns`).
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
pnpm add @octane-xplat/ui octane
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
`octane` is a required peer; the `@nativescript/*` peers are optional and
|
|
14
|
+
only needed for native targets.
|
|
15
|
+
|
|
16
|
+
```tsx
|
|
17
|
+
import { Row, Text, Pressable } from '@octane-xplat/ui'
|
|
18
|
+
|
|
19
|
+
;<Row className="items-center gap-2">
|
|
20
|
+
<Text>Hello</Text>
|
|
21
|
+
<Pressable onPress={save}>
|
|
22
|
+
<Text>Save</Text>
|
|
23
|
+
</Pressable>
|
|
24
|
+
</Row>
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
The package also ships `styled()`, layout stacks, routing (`Link`, `NavLink`,
|
|
28
|
+
route tables), overlay/toast/modal services, and the theme stylesheet:
|
|
29
|
+
|
|
30
|
+
```ts
|
|
31
|
+
import '@octane-xplat/ui/theme/tokens.css'
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Docs:
|
|
35
|
+
|
|
36
|
+
- [Building screens](https://octane-xplat.goddardai.org/primitives) — the element vocabulary
|
|
37
|
+
- [Styling screens](https://octane-xplat.goddardai.org/styling) — classes, tokens, runtime styles
|
|
38
|
+
- [Moving between screens](https://octane-xplat.goddardai.org/navigation) — routes and links
|
|
39
|
+
|
|
40
|
+
Rules for consumers:
|
|
41
|
+
|
|
42
|
+
- Static styles = `className`; dynamic styles = `style` objects.
|
|
43
|
+
- One element vocabulary per file — platform divergence happens at file
|
|
44
|
+
boundaries (`*.web`/`.native`/`.ios`/`.android`), not inside JSX.
|
|
45
|
+
- No DOM globals in shared code; use `@octane-xplat/platform` for device
|
|
46
|
+
capabilities.
|
package/dist/native/ui.js
CHANGED
|
@@ -1,40 +1,55 @@
|
|
|
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
|
-
|
|
1
|
+
import { View } from "./ui6.js";
|
|
2
|
+
import { Row } from "./ui7.js";
|
|
3
|
+
import { Grid } from "./ui8.js";
|
|
4
|
+
import { Stack } from "./ui9.js";
|
|
5
|
+
import { Absolute } from "./ui10.js";
|
|
6
|
+
import { LiquidGlass } from "./ui11.js";
|
|
7
|
+
import { LiquidGlassContainer } from "./ui12.js";
|
|
8
|
+
import { Spacer } from "./ui13.js";
|
|
9
|
+
import { Text } from "./ui14.js";
|
|
10
|
+
import { RichText, RichTextSpan } from "./ui15.js";
|
|
11
|
+
import { Pressable } from "./ui16.js";
|
|
12
|
+
import { Link } from "./ui17.js";
|
|
13
|
+
import { getStack, registerStack, stackEntries } from "./ui18.js";
|
|
14
|
+
import { deriveRouteManifest } from "./ui19.js";
|
|
15
|
+
import { canGoBack, currentModalRoute, currentRoute, hrefFor, layoutsForRoute, popRoute, pushDeepLink, pushRoute, redirect, registerRoutes, registerScreens, routeFor, routeStacks, screenFor, useCanGoBack, useModalRoute, useRoute } from "./ui21.js";
|
|
16
|
+
import { NavLink } from "./ui22.js";
|
|
17
|
+
import { TextInput } from "./ui23.js";
|
|
18
|
+
import { TextArea } from "./ui24.js";
|
|
19
|
+
import { List } from "./ui25.js";
|
|
20
|
+
import { ScrollBox } from "./ui26.js";
|
|
21
|
+
import { ScrollView } from "./ui27.js";
|
|
22
|
+
import { Image } from "./ui29.js";
|
|
23
|
+
import { getColorScheme, useColorScheme } from "./ui30.js";
|
|
24
|
+
import { applyThemeClasses, getThemePreference, getThemeScheme, onThemeSchemeChange, setThemePreference, themeSchemeClasses, useThemeScheme } from "./ui31.js";
|
|
25
|
+
import { Modal } from "./ui32.js";
|
|
26
|
+
import { openModal } from "./ui33.js";
|
|
27
|
+
import { findInRootLayouts, rootLayoutFor, topRootLayout } from "./ui34.js";
|
|
28
|
+
import { Overlay } from "./ui35.js";
|
|
29
|
+
import { Popover } from "./ui38.js";
|
|
30
|
+
import { Hoverable } from "./ui39.js";
|
|
31
|
+
import { showToast } from "./ui40.js";
|
|
32
|
+
import { useAnimation } from "./ui41.js";
|
|
33
|
+
import "./ui42.js";
|
|
34
|
+
import { styled } from "./ui43.js";
|
|
35
|
+
import { openWindow } from "./ui44.js";
|
|
36
|
+
import { Screen } from "./ui45.js";
|
|
37
|
+
import { Tabs } from "./ui46.js";
|
|
38
|
+
import { Switch } from "./ui47.js";
|
|
39
|
+
import { useSafeAreaInsets } from "./ui48.js";
|
|
40
|
+
import { SafeArea } from "./ui49.js";
|
|
41
|
+
import { KeyboardAvoiding } from "./ui50.js";
|
|
42
|
+
import { Drawer } from "./ui51.js";
|
|
43
|
+
import { useMeasure } from "./ui52.js";
|
|
44
|
+
import { ActivityIndicator } from "./ui53.js";
|
|
45
|
+
import { Meter } from "./ui55.js";
|
|
46
|
+
import { Slider } from "./ui56.js";
|
|
47
|
+
import { registerIcon, registerIcons } from "./ui57.js";
|
|
48
|
+
import { Icon } from "./ui58.js";
|
|
49
|
+
import { Heading } from "./ui59.js";
|
|
50
|
+
import { PlatformBadge } from "./ui60.js";
|
|
51
|
+
import { createStore } from "./ui61.js";
|
|
52
|
+
import { useStore } from "./ui62.js";
|
|
53
|
+
import { Sheet } from "./ui63.js";
|
|
54
|
+
import { closeSheet, openSheet, sheetHost } from "./ui64.js";
|
|
55
|
+
export { Absolute, ActivityIndicator, View as Column, Drawer, Grid, Heading, Hoverable, Icon, Image, KeyboardAvoiding, Link, LiquidGlass, LiquidGlassContainer, List, Meter, Modal, NavLink, Overlay, PlatformBadge, Popover, Pressable, RichText, RichTextSpan, Row, SafeArea, Screen, ScrollBox, ScrollView, Sheet, Slider, Spacer, Stack, Switch, Tabs, Text, TextArea, TextInput, View, applyThemeClasses, canGoBack, closeSheet, createStore, currentModalRoute, currentRoute, deriveRouteManifest, findInRootLayouts, getColorScheme, getStack, getThemePreference, getThemeScheme, hrefFor, layoutsForRoute, onThemeSchemeChange, openModal, openSheet, openWindow, popRoute, pushDeepLink, pushRoute, redirect, registerIcon, registerIcons, registerRoutes, registerScreens, registerStack, rootLayoutFor, routeFor, routeStacks, screenFor, setThemePreference, sheetHost, showToast, stackEntries, styled, themeSchemeClasses, topRootLayout, useAnimation, useCanGoBack, useColorScheme, useMeasure, useModalRoute, useRoute, useSafeAreaInsets, useStore, useThemeScheme };
|
package/dist/native/ui10.js
CHANGED
|
@@ -1,23 +1,32 @@
|
|
|
1
1
|
import { cx } from "./ui2.js";
|
|
2
2
|
import { applyEscapeProps } from "./ui3.js";
|
|
3
|
+
import { glassClassOf, glassConfigOf } from "./ui4.js";
|
|
3
4
|
import { defineUniversalComponent, universalPlan, universalValue } from "@nativescript-community/octane";
|
|
4
|
-
//#region src/
|
|
5
|
+
//#region src/Absolute.native.tsrx
|
|
5
6
|
var __octaneUniversalPlan0 = universalPlan("nativescript", {
|
|
6
7
|
"kind": "host",
|
|
7
|
-
"type": "
|
|
8
|
-
"props": { "flexGrow": 1 },
|
|
8
|
+
"type": "absolutelayout",
|
|
9
9
|
"bindings": [
|
|
10
|
-
["
|
|
11
|
-
["
|
|
12
|
-
["
|
|
13
|
-
|
|
10
|
+
["id", 0],
|
|
11
|
+
["ref", 1],
|
|
12
|
+
["iosGlassEffect", 2],
|
|
13
|
+
["className", 3],
|
|
14
|
+
["style", 4]
|
|
15
|
+
],
|
|
16
|
+
"children": [{
|
|
17
|
+
"kind": "slot",
|
|
18
|
+
"slot": 5
|
|
19
|
+
}]
|
|
14
20
|
});
|
|
15
|
-
var
|
|
21
|
+
var Absolute = defineUniversalComponent("nativescript", function Absolute(props) {
|
|
16
22
|
return universalValue(__octaneUniversalPlan0, [
|
|
23
|
+
props.id,
|
|
17
24
|
(view) => applyEscapeProps(view, props),
|
|
18
|
-
|
|
19
|
-
props.
|
|
25
|
+
glassConfigOf(props.glass),
|
|
26
|
+
cx("vx-absolute", glassClassOf(props.glass), props.className),
|
|
27
|
+
props.style,
|
|
28
|
+
props.children
|
|
20
29
|
]);
|
|
21
30
|
}, { "module": "@nativescript-community/octane" });
|
|
22
31
|
//#endregion
|
|
23
|
-
export {
|
|
32
|
+
export { Absolute };
|
package/dist/native/ui11.js
CHANGED
|
@@ -1,120 +1,53 @@
|
|
|
1
1
|
import { cx } from "./ui2.js";
|
|
2
|
-
import { applyEscapeProps
|
|
3
|
-
import { layoutChildProps } from "./
|
|
4
|
-
import {
|
|
5
|
-
|
|
2
|
+
import { applyEscapeProps } from "./ui3.js";
|
|
3
|
+
import { layoutChildProps } from "./ui5.js";
|
|
4
|
+
import { defineUniversalComponent, registerElement, universalPlan, universalProps, universalValue } from "@nativescript-community/octane";
|
|
5
|
+
import { LiquidGlass } from "@nativescript/core";
|
|
6
|
+
//#region src/LiquidGlass.native.tsrx
|
|
6
7
|
var __octaneUniversalPlan0 = universalPlan("nativescript", {
|
|
7
8
|
"kind": "host",
|
|
8
|
-
"type": "
|
|
9
|
+
"type": "liquidglass",
|
|
9
10
|
"propsSlot": 0,
|
|
10
11
|
"children": [{
|
|
11
12
|
"kind": "slot",
|
|
12
13
|
"slot": 1
|
|
13
14
|
}]
|
|
14
15
|
});
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
],
|
|
51
|
-
[
|
|
52
|
-
"set",
|
|
53
|
-
"className",
|
|
54
|
-
cx(props.className)
|
|
55
|
-
],
|
|
56
|
-
[
|
|
57
|
-
"set",
|
|
58
|
-
"style",
|
|
59
|
-
textStyle
|
|
60
|
-
],
|
|
61
|
-
["spread", layoutChildProps(props)]
|
|
62
|
-
]), props.children]);
|
|
63
|
-
}, () => {
|
|
64
|
-
return universalValue(__octaneUniversalPlan1, [universalProps([
|
|
65
|
-
[
|
|
66
|
-
"set",
|
|
67
|
-
"ref",
|
|
68
|
-
(v) => applyEscapeProps(v, props)
|
|
69
|
-
],
|
|
70
|
-
["spread", layoutChildProps(props)],
|
|
71
|
-
[
|
|
72
|
-
"set",
|
|
73
|
-
"className",
|
|
74
|
-
cx(props.className)
|
|
75
|
-
],
|
|
76
|
-
[
|
|
77
|
-
"set",
|
|
78
|
-
"style",
|
|
79
|
-
textStyle
|
|
80
|
-
],
|
|
81
|
-
[
|
|
82
|
-
"set",
|
|
83
|
-
"maxLines",
|
|
84
|
-
props.numberOfLines
|
|
85
|
-
],
|
|
86
|
-
[
|
|
87
|
-
"set",
|
|
88
|
-
"textOverflow",
|
|
89
|
-
props.ellipsize ? "ellipsis" : void 0
|
|
90
|
-
],
|
|
91
|
-
[
|
|
92
|
-
"set",
|
|
93
|
-
"whiteSpace",
|
|
94
|
-
props.ellipsize ? "nowrap" : void 0
|
|
95
|
-
],
|
|
96
|
-
[
|
|
97
|
-
"set",
|
|
98
|
-
"accessibilityHint",
|
|
99
|
-
props.accessibilityHint
|
|
100
|
-
],
|
|
101
|
-
[
|
|
102
|
-
"set",
|
|
103
|
-
"accessibilityValue",
|
|
104
|
-
props.accessibilityValue
|
|
105
|
-
],
|
|
106
|
-
[
|
|
107
|
-
"set",
|
|
108
|
-
"accessibilityState",
|
|
109
|
-
nativeAccessibilityState(props.accessibilityState)
|
|
110
|
-
],
|
|
111
|
-
[
|
|
112
|
-
"set",
|
|
113
|
-
"accessibilityLiveRegion",
|
|
114
|
-
props.accessibilityLiveRegion
|
|
115
|
-
]
|
|
116
|
-
]), universalComponent("nativescript", TextScope, universalProps([], props.children))]);
|
|
117
|
-
})]);
|
|
16
|
+
registerElement("liquidglass", LiquidGlass);
|
|
17
|
+
var LiquidGlass$1 = defineUniversalComponent("nativescript", function LiquidGlass(props) {
|
|
18
|
+
return universalValue(__octaneUniversalPlan0, [universalProps([
|
|
19
|
+
[
|
|
20
|
+
"set",
|
|
21
|
+
"id",
|
|
22
|
+
props.id
|
|
23
|
+
],
|
|
24
|
+
[
|
|
25
|
+
"set",
|
|
26
|
+
"ref",
|
|
27
|
+
(v) => applyEscapeProps(v, props)
|
|
28
|
+
],
|
|
29
|
+
["spread", layoutChildProps(props)],
|
|
30
|
+
[
|
|
31
|
+
"set",
|
|
32
|
+
"iosGlassEffect",
|
|
33
|
+
{
|
|
34
|
+
variant: props.variant ?? "regular",
|
|
35
|
+
interactive: props.interactive ?? true,
|
|
36
|
+
tint: props.tint,
|
|
37
|
+
animateChangeDuration: props.animateChangeDuration
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
[
|
|
41
|
+
"set",
|
|
42
|
+
"className",
|
|
43
|
+
cx("vx-glass", props.variant === "clear" ? "vx-glass--clear" : void 0, props.className)
|
|
44
|
+
],
|
|
45
|
+
[
|
|
46
|
+
"set",
|
|
47
|
+
"style",
|
|
48
|
+
props.style
|
|
49
|
+
]
|
|
50
|
+
]), props.children]);
|
|
118
51
|
}, { "module": "@nativescript-community/octane" });
|
|
119
52
|
//#endregion
|
|
120
|
-
export {
|
|
53
|
+
export { LiquidGlass$1 as LiquidGlass };
|
package/dist/native/ui12.js
CHANGED
|
@@ -1,115 +1,48 @@
|
|
|
1
1
|
import { cx } from "./ui2.js";
|
|
2
|
-
import { applyEscapeProps
|
|
3
|
-
import { layoutChildProps } from "./
|
|
4
|
-
import { defineUniversalComponent, universalPlan, universalProps, universalValue } from "@nativescript-community/octane";
|
|
5
|
-
|
|
2
|
+
import { applyEscapeProps } from "./ui3.js";
|
|
3
|
+
import { layoutChildProps } from "./ui5.js";
|
|
4
|
+
import { defineUniversalComponent, registerElement, universalPlan, universalProps, universalValue } from "@nativescript-community/octane";
|
|
5
|
+
import { LiquidGlassContainer } from "@nativescript/core";
|
|
6
|
+
//#region src/LiquidGlassContainer.native.tsrx
|
|
6
7
|
var __octaneUniversalPlan0 = universalPlan("nativescript", {
|
|
7
8
|
"kind": "host",
|
|
8
|
-
"type": "
|
|
9
|
+
"type": "liquidglasscontainer",
|
|
9
10
|
"propsSlot": 0,
|
|
10
11
|
"children": [{
|
|
11
12
|
"kind": "slot",
|
|
12
13
|
"slot": 1
|
|
13
14
|
}]
|
|
14
15
|
});
|
|
15
|
-
|
|
16
|
+
registerElement("liquidglasscontainer", LiquidGlassContainer);
|
|
17
|
+
var LiquidGlassContainer$1 = defineUniversalComponent("nativescript", function LiquidGlassContainer(props) {
|
|
16
18
|
return universalValue(__octaneUniversalPlan0, [universalProps([
|
|
17
19
|
[
|
|
18
20
|
"set",
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
+
"id",
|
|
22
|
+
props.id
|
|
21
23
|
],
|
|
22
24
|
[
|
|
23
25
|
"set",
|
|
24
|
-
"
|
|
25
|
-
props
|
|
26
|
+
"ref",
|
|
27
|
+
(v) => applyEscapeProps(v, props)
|
|
26
28
|
],
|
|
27
29
|
["spread", layoutChildProps(props)],
|
|
28
30
|
[
|
|
29
31
|
"set",
|
|
30
|
-
"
|
|
31
|
-
|
|
32
|
+
"iosGlassEffect",
|
|
33
|
+
{ spacing: props.spacing ?? 8 }
|
|
32
34
|
],
|
|
33
35
|
[
|
|
34
36
|
"set",
|
|
35
37
|
"className",
|
|
36
|
-
cx("vx-
|
|
38
|
+
cx("vx-glass-container", props.className)
|
|
37
39
|
],
|
|
38
40
|
[
|
|
39
41
|
"set",
|
|
40
42
|
"style",
|
|
41
|
-
|
|
42
|
-
...props.style,
|
|
43
|
-
...props.hitSlop ? {
|
|
44
|
-
margin: -props.hitSlop,
|
|
45
|
-
padding: props.hitSlop
|
|
46
|
-
} : {}
|
|
47
|
-
}
|
|
48
|
-
],
|
|
49
|
-
[
|
|
50
|
-
"set",
|
|
51
|
-
"accessible",
|
|
52
|
-
props.accessible
|
|
53
|
-
],
|
|
54
|
-
[
|
|
55
|
-
"set",
|
|
56
|
-
"accessibilityLabel",
|
|
57
|
-
props.accessibilityLabel
|
|
58
|
-
],
|
|
59
|
-
[
|
|
60
|
-
"set",
|
|
61
|
-
"accessibilityRole",
|
|
62
|
-
props.accessibilityRole
|
|
63
|
-
],
|
|
64
|
-
[
|
|
65
|
-
"set",
|
|
66
|
-
"accessibilityHint",
|
|
67
|
-
props.accessibilityHint
|
|
68
|
-
],
|
|
69
|
-
[
|
|
70
|
-
"set",
|
|
71
|
-
"accessibilityValue",
|
|
72
|
-
props.accessibilityValue
|
|
73
|
-
],
|
|
74
|
-
[
|
|
75
|
-
"set",
|
|
76
|
-
"accessibilityState",
|
|
77
|
-
nativeAccessibilityState(props.accessibilityState)
|
|
78
|
-
],
|
|
79
|
-
[
|
|
80
|
-
"set",
|
|
81
|
-
"accessibilityLiveRegion",
|
|
82
|
-
props.accessibilityLiveRegion
|
|
83
|
-
],
|
|
84
|
-
[
|
|
85
|
-
"set",
|
|
86
|
-
"ignoreTouchAnimation",
|
|
87
|
-
props.ignoreTouchAnimation
|
|
88
|
-
],
|
|
89
|
-
[
|
|
90
|
-
"set",
|
|
91
|
-
"onTap",
|
|
92
|
-
props.disabled ? void 0 : props.onPress
|
|
93
|
-
],
|
|
94
|
-
[
|
|
95
|
-
"set",
|
|
96
|
-
"onLongPress",
|
|
97
|
-
props.disabled ? void 0 : props.onLongPress
|
|
98
|
-
],
|
|
99
|
-
[
|
|
100
|
-
"set",
|
|
101
|
-
"onDoubleTap",
|
|
102
|
-
props.disabled ? void 0 : props.onDoublePress
|
|
103
|
-
],
|
|
104
|
-
[
|
|
105
|
-
"set",
|
|
106
|
-
"onTouch",
|
|
107
|
-
props.disabled ? void 0 : (e) => {
|
|
108
|
-
if (e.action === "down") props.onPressIn?.();
|
|
109
|
-
else if (e.action === "up" || e.action === "cancel") props.onPressOut?.();
|
|
110
|
-
}
|
|
43
|
+
props.style
|
|
111
44
|
]
|
|
112
45
|
]), props.children]);
|
|
113
46
|
}, { "module": "@nativescript-community/octane" });
|
|
114
47
|
//#endregion
|
|
115
|
-
export {
|
|
48
|
+
export { LiquidGlassContainer$1 as LiquidGlassContainer };
|
package/dist/native/ui13.js
CHANGED
|
@@ -1,55 +1,25 @@
|
|
|
1
1
|
import { cx } from "./ui2.js";
|
|
2
2
|
import { applyEscapeProps } from "./ui3.js";
|
|
3
3
|
import { defineUniversalComponent, universalPlan, universalValue } from "@nativescript-community/octane";
|
|
4
|
-
//#region src/
|
|
4
|
+
//#region src/Spacer.native.tsrx
|
|
5
5
|
var __octaneUniversalPlan0 = universalPlan("nativescript", {
|
|
6
6
|
"kind": "host",
|
|
7
|
-
"type": "
|
|
7
|
+
"type": "stacklayout",
|
|
8
|
+
"props": { "flexGrow": 1 },
|
|
8
9
|
"bindings": [
|
|
9
|
-
["
|
|
10
|
-
["
|
|
10
|
+
["id", 0],
|
|
11
|
+
["ref", 1],
|
|
11
12
|
["className", 2],
|
|
12
|
-
["style", 3]
|
|
13
|
-
["text", 4],
|
|
14
|
-
["hint", 5],
|
|
15
|
-
["secure", 6],
|
|
16
|
-
["keyboardType", 7],
|
|
17
|
-
["returnKeyType", 8],
|
|
18
|
-
["editable", 9],
|
|
19
|
-
["onTextChange", 10],
|
|
20
|
-
["onReturnPress", 11],
|
|
21
|
-
["onFocus", 12],
|
|
22
|
-
["onBlur", 13]
|
|
13
|
+
["style", 3]
|
|
23
14
|
]
|
|
24
15
|
});
|
|
25
|
-
var
|
|
16
|
+
var Spacer = defineUniversalComponent("nativescript", function Spacer(props) {
|
|
26
17
|
return universalValue(__octaneUniversalPlan0, [
|
|
27
|
-
(v) => {
|
|
28
|
-
if (!v) return;
|
|
29
|
-
applyEscapeProps(v, props);
|
|
30
|
-
props.bind?.({
|
|
31
|
-
focus: () => v.focus(),
|
|
32
|
-
blur: () => v.dismissSoftInput?.() ?? v.blur(),
|
|
33
|
-
native: v
|
|
34
|
-
});
|
|
35
|
-
},
|
|
36
18
|
props.id,
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
...props.placeholderTextColor ? { placeholderColor: props.placeholderTextColor } : {}
|
|
41
|
-
},
|
|
42
|
-
props.value,
|
|
43
|
-
props.placeholder ?? props.hint,
|
|
44
|
-
props.secure,
|
|
45
|
-
props.keyboardType === "default" ? void 0 : props.keyboardType,
|
|
46
|
-
props.returnKeyType,
|
|
47
|
-
props.editable,
|
|
48
|
-
(e) => props.onChange?.(e.value),
|
|
49
|
-
props.onSubmit,
|
|
50
|
-
props.onFocus,
|
|
51
|
-
props.onBlur
|
|
19
|
+
(view) => applyEscapeProps(view, props),
|
|
20
|
+
cx("vx-spacer", props.className),
|
|
21
|
+
props.style
|
|
52
22
|
]);
|
|
53
23
|
}, { "module": "@nativescript-community/octane" });
|
|
54
24
|
//#endregion
|
|
55
|
-
export {
|
|
25
|
+
export { Spacer };
|