@octane-xplat/ui 0.2.1 → 0.4.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 +52 -19
- package/dist/native/ui10.js +25 -45
- package/dist/native/ui11.js +52 -57
- package/dist/native/ui12.js +47 -16
- package/dist/native/ui13.js +24 -18
- package/dist/native/ui14.js +117 -12
- package/dist/native/ui15.js +78 -17
- package/dist/native/ui16.js +88 -115
- package/dist/native/ui17.js +29 -19
- package/dist/native/ui18.js +34 -12
- package/dist/native/ui19.js +244 -8
- package/dist/native/ui2.js +10 -48
- package/dist/native/ui20.js +28 -0
- package/dist/native/ui21.js +383 -0
- package/dist/native/ui22.js +36 -0
- package/dist/native/ui23.js +55 -0
- package/dist/native/ui24.js +83 -0
- package/dist/native/ui25.js +141 -0
- package/dist/native/ui26.js +12 -0
- package/dist/native/ui27.js +61 -0
- package/dist/native/ui28.js +40 -0
- package/dist/native/ui29.js +108 -0
- package/dist/native/ui3.js +17 -20
- package/dist/native/ui30.js +18 -0
- package/dist/native/ui31.js +58 -0
- package/dist/native/ui32.js +58 -0
- package/dist/native/ui33.js +38 -0
- package/dist/native/ui34.js +53 -0
- package/dist/native/ui35.js +105 -0
- package/dist/native/ui36.js +10 -0
- package/dist/native/ui37.js +44 -0
- package/dist/native/ui38.js +197 -0
- package/dist/native/ui39.js +105 -0
- package/dist/native/ui4.js +23 -48
- package/dist/native/ui40.js +58 -0
- package/dist/native/ui41.js +19 -0
- package/dist/native/ui42.js +8 -0
- package/dist/native/ui43.js +38 -0
- package/dist/native/ui44.js +267 -0
- package/dist/native/ui45.js +28 -0
- package/dist/native/ui46.js +35 -0
- package/dist/native/ui47.js +41 -0
- package/dist/native/ui48.js +72 -0
- package/dist/native/ui49.js +66 -0
- package/dist/native/ui5.js +37 -34
- package/dist/native/ui50.js +27 -0
- package/dist/native/ui51.js +13 -0
- package/dist/native/ui52.js +92 -0
- package/dist/native/ui53.js +34 -0
- package/dist/native/ui54.js +17 -0
- package/dist/native/ui55.js +156 -0
- package/dist/native/ui56.js +33 -0
- package/dist/native/ui57.js +14 -0
- package/dist/native/ui58.js +22 -0
- package/dist/native/ui59.js +8 -0
- package/dist/native/ui6.js +79 -20
- package/dist/native/ui60.js +108 -0
- package/dist/native/ui61.js +76 -0
- package/dist/native/ui7.js +44 -65
- package/dist/native/ui8.js +25 -17
- package/dist/native/ui9.js +24 -12
- package/dist/web/octane-client-build.json +1 -1
- package/dist/web/ui.js +51 -19
- package/dist/web/ui10.js +33 -30
- package/dist/web/ui11.js +40 -55
- package/dist/web/ui12.js +36 -15
- package/dist/web/ui13.js +212 -20
- package/dist/web/ui14.js +84 -14
- package/dist/web/ui15.js +425 -46
- package/dist/web/ui16.js +12 -93
- package/dist/web/ui17.js +246 -28
- package/dist/web/ui18.js +238 -15
- package/dist/web/ui19.js +36 -8
- package/dist/web/ui2.js +15 -103
- package/dist/web/ui20.js +85 -0
- package/dist/web/ui21.js +111 -0
- package/dist/web/ui22.js +108 -0
- package/dist/web/ui23.js +96 -0
- package/dist/web/ui24.js +32 -0
- package/dist/web/ui25.js +108 -0
- package/dist/web/ui26.js +45 -0
- package/dist/web/ui27.js +16 -0
- package/dist/web/ui28.js +11 -0
- package/dist/web/ui29.js +58 -0
- package/dist/web/ui3.js +30 -27
- package/dist/web/ui30.js +34 -0
- package/dist/web/ui31.js +123 -0
- package/dist/web/ui32.js +44 -0
- package/dist/web/ui33.js +159 -0
- package/dist/web/ui34.js +70 -0
- package/dist/web/ui35.js +57 -0
- package/dist/web/ui36.js +22 -0
- package/dist/web/ui37.js +7 -0
- package/dist/web/ui38.js +38 -0
- package/dist/web/ui39.js +154 -0
- package/dist/web/ui4.js +46 -24
- package/dist/web/ui40.js +43 -0
- package/dist/web/ui41.js +42 -0
- package/dist/web/ui42.js +76 -0
- package/dist/web/ui43.js +42 -0
- package/dist/web/ui44.js +62 -0
- package/dist/web/ui45.js +9 -0
- package/dist/web/ui46.js +45 -0
- package/dist/web/ui47.js +13 -0
- package/dist/web/ui48.js +63 -0
- package/dist/web/ui49.js +47 -0
- package/dist/web/ui5.js +158 -52
- package/dist/web/ui50.js +17 -0
- package/dist/web/ui51.js +149 -0
- package/dist/web/ui52.js +42 -0
- package/dist/web/ui53.js +17 -0
- package/dist/web/ui54.js +9 -0
- package/dist/web/ui55.js +22 -0
- package/dist/web/ui56.js +8 -0
- package/dist/web/ui57.js +44 -0
- package/dist/web/ui58.js +46 -0
- package/dist/web/ui6.js +85 -22
- package/dist/web/ui7.js +46 -41
- package/dist/web/ui8.js +28 -11
- package/dist/web/ui9.js +32 -13
- package/package.json +18 -6
- package/src/theme/tokens.css +444 -47
- package/types/index.d.ts +180 -29
- package/types/props.d.ts +553 -8
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,19 +1,52 @@
|
|
|
1
|
-
import { View } from "./
|
|
2
|
-
import { Row } from "./
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
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
|
-
|
|
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 { showToast } from "./ui39.js";
|
|
31
|
+
import { useAnimation } from "./ui40.js";
|
|
32
|
+
import { styled } from "./ui41.js";
|
|
33
|
+
import { openWindow } from "./ui42.js";
|
|
34
|
+
import { Screen } from "./ui43.js";
|
|
35
|
+
import { Tabs } from "./ui44.js";
|
|
36
|
+
import { Switch } from "./ui45.js";
|
|
37
|
+
import { useSafeAreaInsets } from "./ui46.js";
|
|
38
|
+
import { SafeArea } from "./ui47.js";
|
|
39
|
+
import { KeyboardAvoiding } from "./ui48.js";
|
|
40
|
+
import { Drawer } from "./ui49.js";
|
|
41
|
+
import { ActivityIndicator } from "./ui50.js";
|
|
42
|
+
import { Meter } from "./ui52.js";
|
|
43
|
+
import { Slider } from "./ui53.js";
|
|
44
|
+
import { registerIcon, registerIcons } from "./ui54.js";
|
|
45
|
+
import { Icon } from "./ui55.js";
|
|
46
|
+
import { Heading } from "./ui56.js";
|
|
47
|
+
import { PlatformBadge } from "./ui57.js";
|
|
48
|
+
import { createStore } from "./ui58.js";
|
|
49
|
+
import { useStore } from "./ui59.js";
|
|
50
|
+
import { Sheet } from "./ui60.js";
|
|
51
|
+
import { closeSheet, openSheet, sheetHost } from "./ui61.js";
|
|
52
|
+
export { Absolute, ActivityIndicator, View as Column, Drawer, Grid, Heading, 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, useModalRoute, useRoute, useSafeAreaInsets, useStore, useThemeScheme };
|
package/dist/native/ui10.js
CHANGED
|
@@ -1,52 +1,32 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
var _h$1 = /* @__PURE__ */ Symbol(_hs$ + 1);
|
|
1
|
+
import { cx } from "./ui2.js";
|
|
2
|
+
import { applyEscapeProps } from "./ui3.js";
|
|
3
|
+
import { glassClassOf, glassConfigOf } from "./ui4.js";
|
|
4
|
+
import { defineUniversalComponent, universalPlan, universalValue } from "@nativescript-community/octane";
|
|
5
|
+
//#region src/Absolute.native.tsrx
|
|
7
6
|
var __octaneUniversalPlan0 = universalPlan("nativescript", {
|
|
8
|
-
"kind": "
|
|
7
|
+
"kind": "host",
|
|
8
|
+
"type": "absolutelayout",
|
|
9
|
+
"bindings": [
|
|
10
|
+
["id", 0],
|
|
11
|
+
["ref", 1],
|
|
12
|
+
["iosGlassEffect", 2],
|
|
13
|
+
["className", 3],
|
|
14
|
+
["style", 4]
|
|
15
|
+
],
|
|
9
16
|
"children": [{
|
|
10
17
|
"kind": "slot",
|
|
11
|
-
"slot":
|
|
18
|
+
"slot": 5
|
|
12
19
|
}]
|
|
13
20
|
});
|
|
14
|
-
var
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
useEffect(() => {
|
|
24
|
-
if (props.open && !shown.current) {
|
|
25
|
-
const presenter = Frame.topmost()?.currentPage ?? Frame.topmost();
|
|
26
|
-
if (!presenter) return;
|
|
27
|
-
const host = new ContentView();
|
|
28
|
-
const root = createNativeScriptRoot(host);
|
|
29
|
-
shown.current = {
|
|
30
|
-
host,
|
|
31
|
-
root
|
|
32
|
-
};
|
|
33
|
-
root.render(Panel, { children: props.children });
|
|
34
|
-
presenter.showModal(host, {
|
|
35
|
-
context: {},
|
|
36
|
-
closeCallback: () => {
|
|
37
|
-
shown.current = null;
|
|
38
|
-
props.onClose?.();
|
|
39
|
-
},
|
|
40
|
-
fullscreen: props.fullscreen ?? true,
|
|
41
|
-
animated: true
|
|
42
|
-
});
|
|
43
|
-
} else if (!props.open && shown.current) {
|
|
44
|
-
const { host } = shown.current;
|
|
45
|
-
shown.current = null;
|
|
46
|
-
host.closeModal();
|
|
47
|
-
}
|
|
48
|
-
}, [props.open], _h$1);
|
|
49
|
-
return universalValue(__octaneUniversalPlan1, []);
|
|
21
|
+
var Absolute = defineUniversalComponent("nativescript", function Absolute(props) {
|
|
22
|
+
return universalValue(__octaneUniversalPlan0, [
|
|
23
|
+
props.id,
|
|
24
|
+
(view) => applyEscapeProps(view, props),
|
|
25
|
+
glassConfigOf(props.glass),
|
|
26
|
+
cx("vx-absolute", glassClassOf(props.glass), props.className),
|
|
27
|
+
props.style,
|
|
28
|
+
props.children
|
|
29
|
+
]);
|
|
50
30
|
}, { "module": "@nativescript-community/octane" });
|
|
51
31
|
//#endregion
|
|
52
|
-
export {
|
|
32
|
+
export { Absolute };
|
package/dist/native/ui11.js
CHANGED
|
@@ -1,58 +1,53 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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
|
-
function useAnimation(initial = 0, prop = "translateX") {
|
|
53
|
-
const c = useRef(null, _h$0);
|
|
54
|
-
if (!c.current) c.current = createAnimated(initial, prop);
|
|
55
|
-
return c.current;
|
|
56
|
-
}
|
|
1
|
+
import { cx } from "./ui2.js";
|
|
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
|
|
7
|
+
var __octaneUniversalPlan0 = universalPlan("nativescript", {
|
|
8
|
+
"kind": "host",
|
|
9
|
+
"type": "liquidglass",
|
|
10
|
+
"propsSlot": 0,
|
|
11
|
+
"children": [{
|
|
12
|
+
"kind": "slot",
|
|
13
|
+
"slot": 1
|
|
14
|
+
}]
|
|
15
|
+
});
|
|
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]);
|
|
51
|
+
}, { "module": "@nativescript-community/octane" });
|
|
57
52
|
//#endregion
|
|
58
|
-
export {
|
|
53
|
+
export { LiquidGlass$1 as LiquidGlass };
|
package/dist/native/ui12.js
CHANGED
|
@@ -1,17 +1,48 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
1
|
+
import { cx } from "./ui2.js";
|
|
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
|
|
7
|
+
var __octaneUniversalPlan0 = universalPlan("nativescript", {
|
|
8
|
+
"kind": "host",
|
|
9
|
+
"type": "liquidglasscontainer",
|
|
10
|
+
"propsSlot": 0,
|
|
11
|
+
"children": [{
|
|
12
|
+
"kind": "slot",
|
|
13
|
+
"slot": 1
|
|
14
|
+
}]
|
|
15
|
+
});
|
|
16
|
+
registerElement("liquidglasscontainer", LiquidGlassContainer);
|
|
17
|
+
var LiquidGlassContainer$1 = defineUniversalComponent("nativescript", function LiquidGlassContainer(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
|
+
{ spacing: props.spacing ?? 8 }
|
|
34
|
+
],
|
|
35
|
+
[
|
|
36
|
+
"set",
|
|
37
|
+
"className",
|
|
38
|
+
cx("vx-glass-container", props.className)
|
|
39
|
+
],
|
|
40
|
+
[
|
|
41
|
+
"set",
|
|
42
|
+
"style",
|
|
43
|
+
props.style
|
|
44
|
+
]
|
|
45
|
+
]), props.children]);
|
|
46
|
+
}, { "module": "@nativescript-community/octane" });
|
|
16
47
|
//#endregion
|
|
17
|
-
export {
|
|
48
|
+
export { LiquidGlassContainer$1 as LiquidGlassContainer };
|
package/dist/native/ui13.js
CHANGED
|
@@ -1,19 +1,25 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
1
|
+
import { cx } from "./ui2.js";
|
|
2
|
+
import { applyEscapeProps } from "./ui3.js";
|
|
3
|
+
import { defineUniversalComponent, universalPlan, universalValue } from "@nativescript-community/octane";
|
|
4
|
+
//#region src/Spacer.native.tsrx
|
|
5
|
+
var __octaneUniversalPlan0 = universalPlan("nativescript", {
|
|
6
|
+
"kind": "host",
|
|
7
|
+
"type": "stacklayout",
|
|
8
|
+
"props": { "flexGrow": 1 },
|
|
9
|
+
"bindings": [
|
|
10
|
+
["id", 0],
|
|
11
|
+
["ref", 1],
|
|
12
|
+
["className", 2],
|
|
13
|
+
["style", 3]
|
|
14
|
+
]
|
|
15
|
+
});
|
|
16
|
+
var Spacer = defineUniversalComponent("nativescript", function Spacer(props) {
|
|
17
|
+
return universalValue(__octaneUniversalPlan0, [
|
|
18
|
+
props.id,
|
|
19
|
+
(view) => applyEscapeProps(view, props),
|
|
20
|
+
cx("vx-spacer", props.className),
|
|
21
|
+
props.style
|
|
22
|
+
]);
|
|
23
|
+
}, { "module": "@nativescript-community/octane" });
|
|
18
24
|
//#endregion
|
|
19
|
-
export {
|
|
25
|
+
export { Spacer };
|
package/dist/native/ui14.js
CHANGED
|
@@ -1,20 +1,125 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { cx } from "./ui2.js";
|
|
2
|
+
import { applyEscapeProps, nativeAccessibilityState } from "./ui3.js";
|
|
3
|
+
import { layoutChildProps } from "./ui5.js";
|
|
4
|
+
import { createContext, defineUniversalComponent, universalComponent, universalIf, universalPlan, universalProps, universalValue, useContext } from "@nativescript-community/octane";
|
|
5
|
+
//#region src/Text.native.tsrx
|
|
3
6
|
var __octaneUniversalPlan0 = universalPlan("nativescript", {
|
|
4
7
|
"kind": "host",
|
|
5
|
-
"type": "
|
|
6
|
-
"
|
|
8
|
+
"type": "span",
|
|
9
|
+
"propsSlot": 0,
|
|
7
10
|
"children": [{
|
|
8
11
|
"kind": "slot",
|
|
9
|
-
"slot":
|
|
12
|
+
"slot": 1
|
|
10
13
|
}]
|
|
11
14
|
});
|
|
12
|
-
var
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
var __octaneUniversalPlan1 = universalPlan("nativescript", {
|
|
16
|
+
"kind": "host",
|
|
17
|
+
"type": "label",
|
|
18
|
+
"propsSlot": 0,
|
|
19
|
+
"children": [{
|
|
20
|
+
"kind": "slot",
|
|
21
|
+
"slot": 1
|
|
22
|
+
}]
|
|
23
|
+
});
|
|
24
|
+
var __octaneUniversalPlan2 = universalPlan("nativescript", {
|
|
25
|
+
"kind": "slot",
|
|
26
|
+
"slot": 0
|
|
27
|
+
});
|
|
28
|
+
var InText = createContext(false);
|
|
29
|
+
var TextScope = defineUniversalComponent("nativescript", function TextScope(props) {
|
|
30
|
+
return InText({
|
|
31
|
+
value: true,
|
|
32
|
+
children: props.children
|
|
33
|
+
});
|
|
34
|
+
}, { "module": "@nativescript-community/octane" });
|
|
35
|
+
var Text = defineUniversalComponent("nativescript", function Text(props) {
|
|
36
|
+
const inText = useContext(InText);
|
|
37
|
+
const textStyle = {
|
|
38
|
+
...props.style,
|
|
39
|
+
...props.ellipsize ? {
|
|
40
|
+
whiteSpace: "nowrap",
|
|
41
|
+
textOverflow: "ellipsis"
|
|
42
|
+
} : {}
|
|
43
|
+
};
|
|
44
|
+
return universalValue(__octaneUniversalPlan2, [universalIf(inText, () => {
|
|
45
|
+
return universalValue(__octaneUniversalPlan0, [universalProps([
|
|
46
|
+
[
|
|
47
|
+
"set",
|
|
48
|
+
"ref",
|
|
49
|
+
(v) => applyEscapeProps(v, props)
|
|
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
|
+
"id",
|
|
68
|
+
props.id
|
|
69
|
+
],
|
|
70
|
+
[
|
|
71
|
+
"set",
|
|
72
|
+
"ref",
|
|
73
|
+
(v) => applyEscapeProps(v, props)
|
|
74
|
+
],
|
|
75
|
+
["spread", layoutChildProps(props)],
|
|
76
|
+
[
|
|
77
|
+
"set",
|
|
78
|
+
"className",
|
|
79
|
+
cx(props.className)
|
|
80
|
+
],
|
|
81
|
+
[
|
|
82
|
+
"set",
|
|
83
|
+
"style",
|
|
84
|
+
textStyle
|
|
85
|
+
],
|
|
86
|
+
[
|
|
87
|
+
"set",
|
|
88
|
+
"maxLines",
|
|
89
|
+
props.numberOfLines ?? 0
|
|
90
|
+
],
|
|
91
|
+
[
|
|
92
|
+
"set",
|
|
93
|
+
"whiteSpace",
|
|
94
|
+
props.ellipsize ? "nowrap" : "normal"
|
|
95
|
+
],
|
|
96
|
+
[
|
|
97
|
+
"set",
|
|
98
|
+
"textOverflow",
|
|
99
|
+
props.ellipsize ? "ellipsis" : void 0
|
|
100
|
+
],
|
|
101
|
+
[
|
|
102
|
+
"set",
|
|
103
|
+
"accessibilityHint",
|
|
104
|
+
props.accessibilityHint
|
|
105
|
+
],
|
|
106
|
+
[
|
|
107
|
+
"set",
|
|
108
|
+
"accessibilityValue",
|
|
109
|
+
props.accessibilityValue
|
|
110
|
+
],
|
|
111
|
+
[
|
|
112
|
+
"set",
|
|
113
|
+
"accessibilityState",
|
|
114
|
+
nativeAccessibilityState(props.accessibilityState)
|
|
115
|
+
],
|
|
116
|
+
[
|
|
117
|
+
"set",
|
|
118
|
+
"accessibilityLiveRegion",
|
|
119
|
+
props.accessibilityLiveRegion
|
|
120
|
+
]
|
|
121
|
+
]), universalComponent("nativescript", TextScope, universalProps([], props.children))]);
|
|
122
|
+
})]);
|
|
18
123
|
}, { "module": "@nativescript-community/octane" });
|
|
19
124
|
//#endregion
|
|
20
|
-
export {
|
|
125
|
+
export { Text };
|