@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.
Files changed (129) hide show
  1. package/README.md +46 -0
  2. package/dist/native/octane-client-build.json +1 -1
  3. package/dist/native/ui.js +55 -40
  4. package/dist/native/ui10.js +20 -11
  5. package/dist/native/ui11.js +42 -109
  6. package/dist/native/ui12.js +17 -84
  7. package/dist/native/ui13.js +11 -41
  8. package/dist/native/ui14.js +133 -76
  9. package/dist/native/ui15.js +43 -92
  10. package/dist/native/ui16.js +106 -45
  11. package/dist/native/ui17.js +29 -42
  12. package/dist/native/ui18.js +34 -53
  13. package/dist/native/ui19.js +246 -32
  14. package/dist/native/ui20.js +27 -16
  15. package/dist/native/ui21.js +376 -86
  16. package/dist/native/ui22.js +26 -114
  17. package/dist/native/ui23.js +49 -97
  18. package/dist/native/ui24.js +79 -53
  19. package/dist/native/ui25.js +138 -16
  20. package/dist/native/ui26.js +8 -23
  21. package/dist/native/ui27.js +60 -34
  22. package/dist/native/ui28.js +36 -142
  23. package/dist/native/ui29.js +101 -21
  24. package/dist/native/ui3.js +22 -1
  25. package/dist/native/ui30.js +14 -31
  26. package/dist/native/ui31.js +55 -36
  27. package/dist/native/ui32.js +49 -61
  28. package/dist/native/ui33.js +36 -28
  29. package/dist/native/ui34.js +51 -8
  30. package/dist/native/ui35.js +98 -20
  31. package/dist/native/ui36.js +9 -33
  32. package/dist/native/ui37.js +42 -15
  33. package/dist/native/ui38.js +186 -57
  34. package/dist/native/ui39.js +96 -26
  35. package/dist/native/ui4.js +22 -20
  36. package/dist/native/ui40.js +179 -8
  37. package/dist/native/ui41.js +52 -98
  38. package/dist/native/ui42.js +14 -145
  39. package/dist/native/ui43.js +16 -19
  40. package/dist/native/ui44.js +6 -6
  41. package/dist/native/ui45.js +38 -0
  42. package/dist/native/ui46.js +267 -0
  43. package/dist/native/ui47.js +28 -0
  44. package/dist/native/ui48.js +35 -0
  45. package/dist/native/ui49.js +41 -0
  46. package/dist/native/ui5.js +37 -77
  47. package/dist/native/ui50.js +72 -0
  48. package/dist/native/ui51.js +66 -0
  49. package/dist/native/ui52.js +64 -0
  50. package/dist/native/ui53.js +27 -0
  51. package/dist/native/ui54.js +13 -0
  52. package/dist/native/ui55.js +92 -0
  53. package/dist/native/ui56.js +34 -0
  54. package/dist/native/ui57.js +19 -0
  55. package/dist/native/ui58.js +156 -0
  56. package/dist/native/ui59.js +33 -0
  57. package/dist/native/ui6.js +94 -9
  58. package/dist/native/ui60.js +14 -0
  59. package/dist/native/ui61.js +22 -0
  60. package/dist/native/ui62.js +8 -0
  61. package/dist/native/ui63.js +108 -0
  62. package/dist/native/ui64.js +76 -0
  63. package/dist/native/ui7.js +42 -26
  64. package/dist/native/ui8.js +22 -12
  65. package/dist/native/ui9.js +18 -9
  66. package/dist/web/octane-client-build.json +1 -1
  67. package/dist/web/ui.js +53 -40
  68. package/dist/web/ui10.js +33 -186
  69. package/dist/web/ui11.js +28 -409
  70. package/dist/web/ui12.js +21 -68
  71. package/dist/web/ui13.js +265 -96
  72. package/dist/web/ui14.js +85 -95
  73. package/dist/web/ui15.js +368 -25
  74. package/dist/web/ui16.js +13 -101
  75. package/dist/web/ui17.js +246 -42
  76. package/dist/web/ui18.js +237 -28
  77. package/dist/web/ui19.js +36 -10
  78. package/dist/web/ui20.js +73 -102
  79. package/dist/web/ui21.js +102 -73
  80. package/dist/web/ui22.js +95 -55
  81. package/dist/web/ui23.js +94 -55
  82. package/dist/web/ui24.js +31 -15
  83. package/dist/web/ui25.js +105 -19
  84. package/dist/web/ui26.js +29 -23
  85. package/dist/web/ui27.js +12 -123
  86. package/dist/web/ui28.js +9 -110
  87. package/dist/web/ui29.js +52 -102
  88. package/dist/web/ui3.js +29 -18
  89. package/dist/web/ui30.js +32 -41
  90. package/dist/web/ui31.js +120 -39
  91. package/dist/web/ui32.js +41 -74
  92. package/dist/web/ui33.js +148 -32
  93. package/dist/web/ui34.js +145 -62
  94. package/dist/web/ui35.js +140 -7
  95. package/dist/web/ui36.js +86 -41
  96. package/dist/web/ui37.js +19 -44
  97. package/dist/web/ui38.js +5 -15
  98. package/dist/web/ui39.js +24 -86
  99. package/dist/web/ui4.js +46 -152
  100. package/dist/web/ui40.js +150 -37
  101. package/dist/web/ui41.js +36 -10
  102. package/dist/web/ui42.js +40 -7
  103. package/dist/web/ui43.js +73 -19
  104. package/dist/web/ui44.js +40 -6
  105. package/dist/web/ui45.js +62 -0
  106. package/dist/web/ui46.js +50 -0
  107. package/dist/web/ui47.js +9 -0
  108. package/dist/web/ui48.js +45 -0
  109. package/dist/web/ui49.js +13 -0
  110. package/dist/web/ui5.js +131 -27
  111. package/dist/web/ui50.js +63 -0
  112. package/dist/web/ui51.js +47 -0
  113. package/dist/web/ui52.js +19 -0
  114. package/dist/web/ui53.js +273 -0
  115. package/dist/web/ui54.js +42 -0
  116. package/dist/web/ui55.js +17 -0
  117. package/dist/web/ui56.js +9 -0
  118. package/dist/web/ui57.js +22 -0
  119. package/dist/web/ui58.js +8 -0
  120. package/dist/web/ui59.js +44 -0
  121. package/dist/web/ui6.js +81 -45
  122. package/dist/web/ui60.js +46 -0
  123. package/dist/web/ui7.js +43 -21
  124. package/dist/web/ui8.js +27 -21
  125. package/dist/web/ui9.js +29 -18
  126. package/package.json +17 -4
  127. package/src/theme/tokens.css +597 -141
  128. package/types/index.d.ts +112 -58
  129. 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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 1,
3
- "buildId": "0f82ad97-944d-4397-a64d-c6ebca7ba253",
3
+ "buildId": "d5edf471-fc0d-486d-9d3d-c0ab3ededea6",
4
4
  "mode": "production",
5
5
  "capabilities": {
6
6
  "independentHydration": false
package/dist/native/ui.js CHANGED
@@ -1,40 +1,55 @@
1
- import { View } from "./ui5.js";
2
- import { Row } from "./ui6.js";
3
- import { Grid } from "./ui7.js";
4
- import { Stack } from "./ui8.js";
5
- import { Absolute } from "./ui9.js";
6
- import { Spacer } from "./ui10.js";
7
- import { Text } from "./ui11.js";
8
- import { Pressable } from "./ui12.js";
9
- import { TextInput } from "./ui13.js";
10
- import { TextArea } from "./ui14.js";
11
- import { List } from "./ui15.js";
12
- import { ScrollView } from "./ui16.js";
13
- import { Image } from "./ui17.js";
14
- import { Modal } from "./ui18.js";
15
- import { openModal } from "./ui19.js";
16
- import { getColorScheme, useColorScheme } from "./ui20.js";
17
- import { Overlay } from "./ui21.js";
18
- import { Popover } from "./ui22.js";
19
- import { showToast } from "./ui23.js";
20
- import { useAnimation } from "./ui24.js";
21
- import { styled } from "./ui25.js";
22
- import { Screen } from "./ui26.js";
23
- import { getStack, registerStack, stackEntries } from "./ui27.js";
24
- import { Tabs } from "./ui28.js";
25
- import { Switch } from "./ui29.js";
26
- import { useSafeAreaInsets } from "./ui30.js";
27
- import { SafeArea } from "./ui31.js";
28
- import { KeyboardAvoiding } from "./ui32.js";
29
- import { Drawer } from "./ui33.js";
30
- import { ActivityIndicator } from "./ui35.js";
31
- import { Slider } from "./ui36.js";
32
- import { registerIcon, registerIcons } from "./ui37.js";
33
- import { Icon } from "./ui38.js";
34
- import { Heading } from "./ui39.js";
35
- import { PlatformBadge } from "./ui40.js";
36
- import { deriveRouteManifest } from "./ui41.js";
37
- import { currentRoute, hrefFor, popRoute, pushRoute, registerRoutes, registerScreens, routeFor, screenFor, useRoute } from "./ui42.js";
38
- import { createStore } from "./ui43.js";
39
- import { useStore } from "./ui44.js";
40
- export { Absolute, ActivityIndicator, View as Column, Drawer, Grid, Heading, Icon, Image, KeyboardAvoiding, List, Modal, Overlay, PlatformBadge, Popover, Pressable, Row, SafeArea, Screen, ScrollView, Slider, Spacer, Stack, Switch, Tabs, Text, TextArea, TextInput, View, createStore, currentRoute, deriveRouteManifest, getColorScheme, getStack, hrefFor, openModal, popRoute, pushRoute, registerIcon, registerIcons, registerRoutes, registerScreens, registerStack, routeFor, screenFor, showToast, stackEntries, styled, useAnimation, useColorScheme, useRoute, useSafeAreaInsets, useStore };
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 };
@@ -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/Spacer.native.tsrx
5
+ //#region src/Absolute.native.tsrx
5
6
  var __octaneUniversalPlan0 = universalPlan("nativescript", {
6
7
  "kind": "host",
7
- "type": "stacklayout",
8
- "props": { "flexGrow": 1 },
8
+ "type": "absolutelayout",
9
9
  "bindings": [
10
- ["ref", 0],
11
- ["className", 1],
12
- ["style", 2]
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 Spacer = defineUniversalComponent("nativescript", function Spacer(props) {
21
+ var Absolute = defineUniversalComponent("nativescript", function Absolute(props) {
16
22
  return universalValue(__octaneUniversalPlan0, [
23
+ props.id,
17
24
  (view) => applyEscapeProps(view, props),
18
- cx("vx-spacer", props.className),
19
- props.style
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 { Spacer };
32
+ export { Absolute };
@@ -1,120 +1,53 @@
1
1
  import { cx } from "./ui2.js";
2
- import { applyEscapeProps, nativeAccessibilityState } from "./ui3.js";
3
- import { layoutChildProps } from "./ui4.js";
4
- import { createContext, defineUniversalComponent, universalComponent, universalIf, universalPlan, universalProps, universalValue, useContext } from "@nativescript-community/octane";
5
- //#region src/Text.native.tsrx
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": "span",
9
+ "type": "liquidglass",
9
10
  "propsSlot": 0,
10
11
  "children": [{
11
12
  "kind": "slot",
12
13
  "slot": 1
13
14
  }]
14
15
  });
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
- "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 { Text };
53
+ export { LiquidGlass$1 as LiquidGlass };
@@ -1,115 +1,48 @@
1
1
  import { cx } from "./ui2.js";
2
- import { applyEscapeProps, nativeAccessibilityState } from "./ui3.js";
3
- import { layoutChildProps } from "./ui4.js";
4
- import { defineUniversalComponent, universalPlan, universalProps, universalValue } from "@nativescript-community/octane";
5
- //#region src/Pressable.native.tsrx
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": "flexboxlayout",
9
+ "type": "liquidglasscontainer",
9
10
  "propsSlot": 0,
10
11
  "children": [{
11
12
  "kind": "slot",
12
13
  "slot": 1
13
14
  }]
14
15
  });
15
- var Pressable = defineUniversalComponent("nativescript", function Pressable(props) {
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
- "ref",
20
- (v) => applyEscapeProps(v, props)
21
+ "id",
22
+ props.id
21
23
  ],
22
24
  [
23
25
  "set",
24
- "id",
25
- props.id
26
+ "ref",
27
+ (v) => applyEscapeProps(v, props)
26
28
  ],
27
29
  ["spread", layoutChildProps(props)],
28
30
  [
29
31
  "set",
30
- "flexDirection",
31
- "column"
32
+ "iosGlassEffect",
33
+ { spacing: props.spacing ?? 8 }
32
34
  ],
33
35
  [
34
36
  "set",
35
37
  "className",
36
- cx("vx-pressable", props.className)
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 { Pressable };
48
+ export { LiquidGlassContainer$1 as LiquidGlassContainer };
@@ -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/TextInput.native.tsrx
4
+ //#region src/Spacer.native.tsrx
5
5
  var __octaneUniversalPlan0 = universalPlan("nativescript", {
6
6
  "kind": "host",
7
- "type": "textfield",
7
+ "type": "stacklayout",
8
+ "props": { "flexGrow": 1 },
8
9
  "bindings": [
9
- ["ref", 0],
10
- ["id", 1],
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 TextInput = defineUniversalComponent("nativescript", function TextInput(props) {
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
- cx(props.className),
38
- {
39
- ...props.style,
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 { TextInput };
25
+ export { Spacer };