@octane-xplat/ui 0.4.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (283) hide show
  1. package/README.md +3 -0
  2. package/dist/native/Absolute.native.tsrx.js +43 -0
  3. package/dist/native/Accordion.native.tsrx.js +75 -0
  4. package/dist/native/ActivityIndicator.native.tsrx.js +35 -0
  5. package/dist/native/Alert.native.tsrx.js +74 -0
  6. package/dist/native/Avatar.native.tsrx.js +76 -0
  7. package/dist/native/AvatarGroup.native.tsrx.js +84 -0
  8. package/dist/native/Badge.native.tsrx.js +29 -0
  9. package/dist/native/Banner.native.tsrx.js +80 -0
  10. package/dist/native/Breadcrumb.native.tsrx.js +66 -0
  11. package/dist/native/Button.native.tsrx.js +62 -0
  12. package/dist/native/CameraView.native.tsrx.js +165 -0
  13. package/dist/native/Card.native.tsrx.js +64 -0
  14. package/dist/native/Checkbox.native.tsrx.js +58 -0
  15. package/dist/native/CheckboxGroup.native.tsrx.js +70 -0
  16. package/dist/native/Chip.native.tsrx.js +83 -0
  17. package/dist/native/Collapsible.native.tsrx.js +74 -0
  18. package/dist/native/CommandPalette.native.tsrx.js +143 -0
  19. package/dist/native/ContextMenu.native.tsrx.js +140 -0
  20. package/dist/native/Drawer.native.tsrx.js +60 -0
  21. package/dist/native/DropdownMenu.native.tsrx.js +155 -0
  22. package/dist/native/Empty.native.tsrx.js +82 -0
  23. package/dist/native/FieldGroup.native.tsrx.js +39 -0
  24. package/dist/native/FormField.native.tsrx.js +53 -0
  25. package/dist/native/{ui8.js → Grid.native.tsrx.js} +19 -8
  26. package/dist/native/{ui56.js → Heading.native.tsrx.js} +2 -2
  27. package/dist/native/{ui55.js → Icon.native.tsrx.js} +4 -4
  28. package/dist/native/{ui29.js → Image.native.tsrx.js} +4 -4
  29. package/dist/native/InputNumber.native.tsrx.js +146 -0
  30. package/dist/native/InputRating.native.tsrx.js +74 -0
  31. package/dist/native/InputTags.native.tsrx.js +131 -0
  32. package/dist/native/Kbd.native.tsrx.js +29 -0
  33. package/dist/native/{ui48.js → KeyboardAvoiding.native.tsrx.js} +1 -1
  34. package/dist/native/{ui17.js → Link.native.tsrx.js} +1 -1
  35. package/dist/native/{ui52.js → Meter.native.tsrx.js} +2 -2
  36. package/dist/native/{ui22.js → NavLink.native.tsrx.js} +3 -3
  37. package/dist/native/NavigationMenu.native.tsrx.js +67 -0
  38. package/dist/native/{ui35.js → Overlay.native.tsrx.js} +3 -3
  39. package/dist/native/Pager.native.tsrx.js +282 -0
  40. package/dist/native/Pagination.native.tsrx.js +107 -0
  41. package/dist/native/PinInput.native.tsrx.js +94 -0
  42. package/dist/native/{ui38.js → Popover.native.tsrx.js} +5 -5
  43. package/dist/native/{ui16.js → Pressable.native.tsrx.js} +21 -15
  44. package/dist/native/ProgressGroup.native.tsrx.js +66 -0
  45. package/dist/native/RadioGroup.native.tsrx.js +85 -0
  46. package/dist/native/{ui15.js → RichText.native.tsrx.js} +15 -22
  47. package/dist/native/Row.native.tsrx.js +98 -0
  48. package/dist/native/{ui47.js → SafeArea.native.tsrx.js} +2 -2
  49. package/dist/native/{ui43.js → Screen.native.tsrx.js} +3 -3
  50. package/dist/native/{ui26.js → ScrollBox.native.tsrx.js} +1 -1
  51. package/dist/native/ScrollView.native.tsrx.js +233 -0
  52. package/dist/native/SearchInput.native.tsrx.js +151 -0
  53. package/dist/native/SegmentedControl.native.tsrx.js +75 -0
  54. package/dist/native/Select.native.tsrx.js +202 -0
  55. package/dist/native/Separator.native.tsrx.js +25 -0
  56. package/dist/native/{ui60.js → Sheet.native.tsrx.js} +15 -7
  57. package/dist/native/Skeleton.native.tsrx.js +28 -0
  58. package/dist/native/Slider.native.tsrx.js +98 -0
  59. package/dist/native/{ui13.js → Spacer.native.tsrx.js} +2 -2
  60. package/dist/native/{ui9.js → Stack.native.tsrx.js} +20 -9
  61. package/dist/native/Stepper.native.tsrx.js +75 -0
  62. package/dist/native/Switch.native.tsrx.js +33 -0
  63. package/dist/native/Table.native.tsrx.js +103 -0
  64. package/dist/native/Tabs.native.tsrx.js +163 -0
  65. package/dist/native/{ui14.js → Text.native.tsrx.js} +19 -3
  66. package/dist/native/{ui24.js → TextArea.native.tsrx.js} +19 -17
  67. package/dist/native/{ui23.js → TextInput.native.tsrx.js} +21 -16
  68. package/dist/native/Timeline.native.tsrx.js +112 -0
  69. package/dist/native/Tree.native.tsrx.js +140 -0
  70. package/dist/native/User.native.tsrx.js +95 -0
  71. package/dist/native/Video.native.tsrx.js +248 -0
  72. package/dist/native/{ui6.js → View.native.tsrx.js} +39 -25
  73. package/dist/native/WebView.native.tsrx.js +110 -0
  74. package/dist/native/aliases.native.tsrx.js +38 -0
  75. package/dist/native/android/BottomNavigationView.android.tsrx.js +171 -0
  76. package/dist/native/android/CircularProgressIndicator.android.tsrx.js +27 -0
  77. package/dist/native/{ui49.js → android/DrawerLayout.android.tsrx.js} +5 -7
  78. package/dist/native/android/MaterialDialog.android.tsrx.js +62 -0
  79. package/dist/native/android/MaterialSwitch.android.tsrx.js +28 -0
  80. package/dist/native/android/RecyclerView.android.tsrx.js +248 -0
  81. package/dist/native/android/SeekBar.android.tsrx.js +34 -0
  82. package/dist/native/android/index.js +9 -0
  83. package/dist/native/android/openModal.android.js +39 -0
  84. package/dist/native/camera-permission.native.js +47 -0
  85. package/dist/native/child-array.js +15 -0
  86. package/dist/native/{ui3.js → escape-props.native.js} +22 -1
  87. package/dist/native/icons.js +25 -0
  88. package/dist/native/{ui11.js → ios/LiquidGlass.ios.tsrx.js} +4 -4
  89. package/dist/native/{ui12.js → ios/LiquidGlassContainer.ios.tsrx.js} +4 -4
  90. package/dist/native/ios/SideDrawer.ios.tsrx.js +64 -0
  91. package/dist/native/{ui50.js → ios/UIActivityIndicatorView.ios.tsrx.js} +5 -5
  92. package/dist/native/{ui32.js → ios/UIModal.ios.tsrx.js} +10 -6
  93. package/dist/native/{ui53.js → ios/UISlider.ios.tsrx.js} +5 -5
  94. package/dist/native/{ui45.js → ios/UISwitch.ios.tsrx.js} +5 -5
  95. package/dist/native/ios/UITabBar.ios.tsrx.js +166 -0
  96. package/dist/native/ios/UITableView.ios.tsrx.js +270 -0
  97. package/dist/native/ios/index.js +11 -0
  98. package/dist/native/{ui33.js → ios/openModal.ios.js} +5 -4
  99. package/dist/native/modal-presenter.native.js +19 -0
  100. package/dist/native/native/index.js +4 -0
  101. package/dist/native/octane-client-build.json +1 -1
  102. package/dist/native/pan.native.tsrx.js +66 -0
  103. package/dist/native/platform.native.js +10 -0
  104. package/dist/native/refresh-metrics.js +9 -0
  105. package/dist/native/refresh.native.js +177 -0
  106. package/dist/native/{ui34.js → root-layout.native.js} +6 -1
  107. package/dist/native/{ui21.js → route.native.js} +96 -12
  108. package/dist/native/sheet-detents.native.js +102 -0
  109. package/dist/native/{ui61.js → sheet-service.native.js} +19 -9
  110. package/dist/native/sheet-snap.js +35 -0
  111. package/dist/native/text-write.native.js +27 -0
  112. package/dist/native/theme/status-bar-scheme.native.js +17 -0
  113. package/dist/{web/ui29.js → native/theme/theme-scheme.js} +2 -2
  114. package/dist/native/toast-anchor.native.tsrx.js +185 -0
  115. package/dist/native/translate.native.js +11 -0
  116. package/dist/native/ui.js +93 -52
  117. package/dist/native/use-back.native.tsrx.js +9 -0
  118. package/dist/native/useMeasure.native.tsrx.js +64 -0
  119. package/dist/native/video-chrome.native.tsrx.js +365 -0
  120. package/dist/web/Absolute.web.tsrx.js +47 -0
  121. package/dist/web/Accordion.web.tsrx.js +85 -0
  122. package/dist/web/{ui46.js → ActivityIndicator.web.tsrx.js} +1 -1
  123. package/dist/web/Alert.web.tsrx.js +79 -0
  124. package/dist/web/Avatar.web.tsrx.js +106 -0
  125. package/dist/web/AvatarGroup.web.tsrx.js +108 -0
  126. package/dist/web/Badge.web.tsrx.js +37 -0
  127. package/dist/web/Banner.web.tsrx.js +79 -0
  128. package/dist/web/Breadcrumb.web.tsrx.js +135 -0
  129. package/dist/web/Button.web.tsrx.js +45 -0
  130. package/dist/web/CameraView.web.tsrx.js +310 -0
  131. package/dist/web/Card.web.tsrx.js +73 -0
  132. package/dist/web/Checkbox.web.tsrx.js +89 -0
  133. package/dist/web/CheckboxGroup.web.tsrx.js +79 -0
  134. package/dist/web/Chip.web.tsrx.js +64 -0
  135. package/dist/web/Collapsible.web.tsrx.js +94 -0
  136. package/dist/web/CommandPalette.web.tsrx.js +125 -0
  137. package/dist/web/ContextMenu.web.tsrx.js +154 -0
  138. package/dist/web/{ui44.js → Drawer.web.tsrx.js} +13 -9
  139. package/dist/web/DropdownMenu.web.tsrx.js +162 -0
  140. package/dist/web/Empty.web.tsrx.js +89 -0
  141. package/dist/web/FieldGroup.web.tsrx.js +57 -0
  142. package/dist/web/FormField.web.tsrx.js +92 -0
  143. package/dist/web/Grid.web.tsrx.js +65 -0
  144. package/dist/web/{ui52.js → Heading.web.tsrx.js} +2 -2
  145. package/dist/web/Icon.web.tsrx.js +273 -0
  146. package/dist/web/{ui25.js → Image.web.tsrx.js} +2 -2
  147. package/dist/web/InputNumber.web.tsrx.js +99 -0
  148. package/dist/web/InputRating.web.tsrx.js +72 -0
  149. package/dist/web/InputTags.web.tsrx.js +122 -0
  150. package/dist/web/Kbd.web.tsrx.js +37 -0
  151. package/dist/web/{ui48.js → Meter.web.tsrx.js} +1 -1
  152. package/dist/web/{ui19.js → NavLink.web.tsrx.js} +1 -1
  153. package/dist/web/NavigationMenu.web.tsrx.js +118 -0
  154. package/dist/web/{ui31.js → Overlay.web.tsrx.js} +2 -2
  155. package/dist/web/Pager.web.tsrx.js +337 -0
  156. package/dist/web/Pagination.web.tsrx.js +80 -0
  157. package/dist/web/PinInput.web.tsrx.js +72 -0
  158. package/dist/web/{ui33.js → Popover.web.tsrx.js} +3 -3
  159. package/dist/web/{ui15.js → Pressable.web.tsrx.js} +68 -95
  160. package/dist/web/ProgressGroup.web.tsrx.js +109 -0
  161. package/dist/web/RadioGroup.web.tsrx.js +69 -0
  162. package/dist/web/{ui14.js → RichText.web.tsrx.js} +2 -2
  163. package/dist/web/Row.web.tsrx.js +250 -0
  164. package/dist/web/{ui42.js → SafeArea.web.tsrx.js} +1 -1
  165. package/dist/web/{ui38.js → Screen.web.tsrx.js} +1 -1
  166. package/dist/web/{ui24.js → ScrollBox.web.tsrx.js} +1 -1
  167. package/dist/web/ScrollView.web.tsrx.js +388 -0
  168. package/dist/web/SearchInput.web.tsrx.js +137 -0
  169. package/dist/web/SegmentedControl.web.tsrx.js +75 -0
  170. package/dist/web/Select.web.tsrx.js +149 -0
  171. package/dist/web/Separator.web.tsrx.js +42 -0
  172. package/dist/web/Sheet.web.tsrx.js +81 -0
  173. package/dist/web/Skeleton.web.tsrx.js +56 -0
  174. package/dist/web/Slider.web.tsrx.js +97 -0
  175. package/dist/web/{ui12.js → Spacer.web.tsrx.js} +1 -1
  176. package/dist/web/Stack.web.tsrx.js +47 -0
  177. package/dist/web/Stepper.web.tsrx.js +65 -0
  178. package/dist/web/Switch.web.tsrx.js +59 -0
  179. package/dist/web/Table.web.tsrx.js +161 -0
  180. package/dist/web/{ui39.js → Tabs.web.tsrx.js} +33 -16
  181. package/dist/web/{ui13.js → Text.web.tsrx.js} +79 -46
  182. package/dist/web/{ui21.js → TextArea.web.tsrx.js} +4 -4
  183. package/dist/web/{ui20.js → TextInput.web.tsrx.js} +8 -8
  184. package/dist/web/Timeline.web.tsrx.js +172 -0
  185. package/dist/web/Tree.web.tsrx.js +146 -0
  186. package/dist/web/User.web.tsrx.js +116 -0
  187. package/dist/web/Video.web.tsrx.js +400 -0
  188. package/dist/web/View.web.tsrx.js +250 -0
  189. package/dist/web/WebView.web.tsrx.js +235 -0
  190. package/dist/web/aliases.web.tsrx.js +24 -0
  191. package/dist/web/{ui35.js → anim.web.tsrx.js} +3 -2
  192. package/dist/web/child-array.js +15 -0
  193. package/dist/web/icons.js +25 -0
  194. package/dist/web/octane-client-build.json +1 -1
  195. package/dist/web/pan.web.tsrx.js +66 -0
  196. package/dist/web/platform.web.js +9 -0
  197. package/dist/web/refresh-metrics.js +9 -0
  198. package/dist/web/refresh.web.js +133 -0
  199. package/dist/web/{ui18.js → route.web.js} +14 -2
  200. package/dist/web/sheet-detents.web.js +103 -0
  201. package/dist/web/{ui58.js → sheet-service.web.js} +5 -1
  202. package/dist/web/sheet-snap.js +35 -0
  203. package/dist/{native/ui31.js → web/theme/theme-scheme.js} +2 -2
  204. package/dist/web/toast-anchor.web.tsrx.js +142 -0
  205. package/dist/web/transform.web.js +43 -0
  206. package/dist/web/translate.web.js +13 -0
  207. package/dist/web/ui.js +91 -51
  208. package/dist/web/use-back.web.tsrx.js +9 -0
  209. package/dist/web/useMeasure.web.tsrx.js +50 -0
  210. package/dist/web/video-chrome.web.tsrx.js +207 -0
  211. package/dist/web/web/Hoverable.web.tsrx.js +150 -0
  212. package/dist/web/web/Tooltip.web.tsrx.js +183 -0
  213. package/dist/web/web/index.js +3 -0
  214. package/package.json +34 -3
  215. package/src/theme/tokens.css +1599 -194
  216. package/types/android.d.ts +53 -0
  217. package/types/index.d.ts +39 -14
  218. package/types/index.native.d.ts +273 -0
  219. package/types/index.web.d.ts +272 -0
  220. package/types/ios.d.ts +59 -0
  221. package/types/native.d.ts +5 -0
  222. package/types/props.d.ts +989 -44
  223. package/types/web.d.ts +17 -0
  224. package/dist/native/ui10.js +0 -32
  225. package/dist/native/ui25.js +0 -141
  226. package/dist/native/ui27.js +0 -61
  227. package/dist/native/ui39.js +0 -105
  228. package/dist/native/ui4.js +0 -24
  229. package/dist/native/ui44.js +0 -267
  230. package/dist/native/ui54.js +0 -17
  231. package/dist/native/ui57.js +0 -14
  232. package/dist/native/ui7.js +0 -52
  233. package/dist/web/ui10.js +0 -46
  234. package/dist/web/ui11.js +0 -42
  235. package/dist/web/ui22.js +0 -108
  236. package/dist/web/ui23.js +0 -96
  237. package/dist/web/ui26.js +0 -45
  238. package/dist/web/ui3.js +0 -31
  239. package/dist/web/ui30.js +0 -34
  240. package/dist/web/ui34.js +0 -70
  241. package/dist/web/ui40.js +0 -43
  242. package/dist/web/ui43.js +0 -42
  243. package/dist/web/ui49.js +0 -47
  244. package/dist/web/ui5.js +0 -168
  245. package/dist/web/ui50.js +0 -17
  246. package/dist/web/ui51.js +0 -149
  247. package/dist/web/ui53.js +0 -17
  248. package/dist/web/ui57.js +0 -44
  249. package/dist/web/ui6.js +0 -94
  250. package/dist/web/ui7.js +0 -62
  251. package/dist/web/ui8.js +0 -46
  252. package/dist/web/ui9.js +0 -46
  253. /package/dist/native/{ui20.js → RouteHost.native.tsrx.js} +0 -0
  254. /package/dist/native/{ui40.js → anim.native.tsrx.js} +0 -0
  255. /package/dist/native/{ui2.js → cx.js} +0 -0
  256. /package/dist/native/{ui5.js → layout-child.native.js} +0 -0
  257. /package/dist/native/{ui51.js → meter-math.js} +0 -0
  258. /package/dist/native/{ui36.js → platformProps.native.js} +0 -0
  259. /package/dist/native/{ui37.js → popover-position.js} +0 -0
  260. /package/dist/native/{ui19.js → route-table.js} +0 -0
  261. /package/dist/native/{ui46.js → safeAreaInsets.native.tsrx.js} +0 -0
  262. /package/dist/native/{ui18.js → stacks.native.js} +0 -0
  263. /package/dist/native/{ui58.js → store.js} +0 -0
  264. /package/dist/native/{ui41.js → styled.native.tsrx.js} +0 -0
  265. /package/dist/native/{ui28.js → svg.native.js} +0 -0
  266. /package/dist/native/{ui30.js → theme/colorScheme.native.js} +0 -0
  267. /package/dist/native/{ui59.js → use-store.native.tsrx.js} +0 -0
  268. /package/dist/native/{ui42.js → windows.native.js} +0 -0
  269. /package/dist/web/{ui16.js → Link.web.tsrx.js} +0 -0
  270. /package/dist/web/{ui28.js → cx.js} +0 -0
  271. /package/dist/web/{ui2.js → escape-props.web.js} +0 -0
  272. /package/dist/web/{ui4.js → layout-child.web.js} +0 -0
  273. /package/dist/web/{ui47.js → meter-math.js} +0 -0
  274. /package/dist/web/{ui45.js → platformProps.web.js} +0 -0
  275. /package/dist/web/{ui32.js → popover-position.js} +0 -0
  276. /package/dist/web/{ui17.js → route-table.js} +0 -0
  277. /package/dist/web/{ui41.js → safeAreaInsets.web.tsrx.js} +0 -0
  278. /package/dist/web/{ui54.js → stacks.web.js} +0 -0
  279. /package/dist/web/{ui55.js → store.js} +0 -0
  280. /package/dist/web/{ui36.js → styled.web.tsrx.js} +0 -0
  281. /package/dist/web/{ui27.js → theme/colorScheme.web.js} +0 -0
  282. /package/dist/web/{ui56.js → use-store.web.tsrx.js} +0 -0
  283. /package/dist/web/{ui37.js → windows.web.js} +0 -0
package/README.md CHANGED
@@ -36,6 +36,9 @@ Docs:
36
36
  - [Building screens](https://octane-xplat.goddardai.org/primitives) — the element vocabulary
37
37
  - [Styling screens](https://octane-xplat.goddardai.org/styling) — classes, tokens, runtime styles
38
38
  - [Moving between screens](https://octane-xplat.goddardai.org/navigation) — routes and links
39
+ - [Known limits](https://octane-xplat.goddardai.org/known-limits) — broken/platform-bound seams, version-stamped
40
+
41
+ For agents: [llms.txt](https://octane-xplat.goddardai.org/llms.txt) indexes the docs; `llms-full.txt` inlines every guide.
39
42
 
40
43
  Rules for consumers:
41
44
 
@@ -0,0 +1,43 @@
1
+ import { cx } from "./cx.js";
2
+ import { applyEscapeProps, nativeAccessibilityRole, nativeAccessibilityState } from "./escape-props.native.js";
3
+ import { defineUniversalComponent, universalPlan, universalValue } from "@nativescript-community/octane";
4
+ //#region src/Absolute.native.tsrx
5
+ var __octaneUniversalPlan0 = universalPlan("nativescript", {
6
+ "kind": "host",
7
+ "type": "absolutelayout",
8
+ "bindings": [
9
+ ["id", 0],
10
+ ["ref", 1],
11
+ ["className", 2],
12
+ ["style", 3],
13
+ ["accessible", 4],
14
+ ["accessibilityLabel", 5],
15
+ ["accessibilityRole", 6],
16
+ ["accessibilityHint", 7],
17
+ ["accessibilityValue", 8],
18
+ ["accessibilityState", 9],
19
+ ["accessibilityLiveRegion", 10]
20
+ ],
21
+ "children": [{
22
+ "kind": "slot",
23
+ "slot": 11
24
+ }]
25
+ });
26
+ var Absolute = defineUniversalComponent("nativescript", function Absolute(props) {
27
+ return universalValue(__octaneUniversalPlan0, [
28
+ props.id,
29
+ (view) => applyEscapeProps(view, props),
30
+ cx("vx-absolute", props.className),
31
+ props.style,
32
+ props.accessible,
33
+ props.accessibilityLabel,
34
+ nativeAccessibilityRole(props.accessibilityRole),
35
+ props.accessibilityHint,
36
+ props.accessibilityValue,
37
+ nativeAccessibilityState(props.accessibilityState),
38
+ props.accessibilityLiveRegion,
39
+ props.children
40
+ ]);
41
+ }, { "module": "@nativescript-community/octane" });
42
+ //#endregion
43
+ export { Absolute };
@@ -0,0 +1,75 @@
1
+ import { cx } from "./cx.js";
2
+ import { applyEscapeProps } from "./escape-props.native.js";
3
+ import { Collapsible } from "./Collapsible.native.tsrx.js";
4
+ import { defineUniversalComponent, hookSlots, universalComponent, universalFor, universalPlan, universalProps, universalValue, useState } from "@nativescript-community/octane";
5
+ //#region src/Accordion.native.tsrx
6
+ var _h$0 = /* @__PURE__ */ Symbol(/* @__PURE__ */ hookSlots(1));
7
+ var __octaneUniversalPlan0 = universalPlan("nativescript", {
8
+ "kind": "slot",
9
+ "slot": 0
10
+ });
11
+ var __octaneUniversalPlan1 = universalPlan("nativescript", {
12
+ "kind": "host",
13
+ "type": "flexboxlayout",
14
+ "bindings": [
15
+ ["ref", 0],
16
+ ["id", 1],
17
+ ["className", 2],
18
+ ["style", 3]
19
+ ],
20
+ "children": [{
21
+ "kind": "slot",
22
+ "slot": 4
23
+ }]
24
+ });
25
+ var Accordion = defineUniversalComponent("nativescript", function Accordion(props) {
26
+ const normalize = (v) => v === void 0 ? [] : Array.isArray(v) ? v : [v];
27
+ const [internal, setInternal] = useState(normalize(props.defaultOpen), _h$0);
28
+ const controlled = props.open !== void 0;
29
+ const openKeys = controlled ? normalize(props.open) : internal;
30
+ const report = (keys) => {
31
+ if (!controlled) setInternal(keys);
32
+ props.onOpenChange?.(props.multiple ? keys : keys[0]);
33
+ };
34
+ const toggle = (key, next) => {
35
+ if (props.multiple) report(next ? [...openKeys, key] : openKeys.filter((k) => k !== key));
36
+ else report(next ? [key] : []);
37
+ };
38
+ return universalValue(__octaneUniversalPlan1, [
39
+ (v) => applyEscapeProps(v, props),
40
+ props.id,
41
+ cx("vx-accordion", props.className),
42
+ props.style,
43
+ universalFor(props.items, (item, __octaneUniversalIndex) => item.key, (item, __octaneUniversalIndex) => {
44
+ return universalValue(__octaneUniversalPlan0, [universalComponent("nativescript", Collapsible, universalProps([
45
+ [
46
+ "set",
47
+ "className",
48
+ "vx-accordion-item"
49
+ ],
50
+ [
51
+ "set",
52
+ "trigger",
53
+ item.header
54
+ ],
55
+ [
56
+ "set",
57
+ "disabled",
58
+ item.disabled
59
+ ],
60
+ [
61
+ "set",
62
+ "open",
63
+ openKeys.includes(item.key)
64
+ ],
65
+ [
66
+ "set",
67
+ "onOpenChange",
68
+ (next) => toggle(item.key, next)
69
+ ]
70
+ ], item.content))]);
71
+ })
72
+ ]);
73
+ }, { "module": "@nativescript-community/octane" });
74
+ //#endregion
75
+ export { Accordion };
@@ -0,0 +1,35 @@
1
+ import { cx } from "./cx.js";
2
+ import { applyNativeProps } from "./platformProps.native.js";
3
+ import { defineUniversalComponent, universalPlan, universalValue } from "@nativescript-community/octane";
4
+ //#region src/ActivityIndicator.native.tsrx
5
+ var __octaneUniversalPlan0 = universalPlan("nativescript", {
6
+ "kind": "host",
7
+ "type": "flexboxlayout",
8
+ "bindings": [
9
+ ["id", 0],
10
+ ["className", 1],
11
+ ["style", 2],
12
+ ["ref", 3]
13
+ ]
14
+ });
15
+ var ActivityIndicator = defineUniversalComponent("nativescript", function ActivityIndicator(props) {
16
+ if (props.busy === false) return null;
17
+ return universalValue(__octaneUniversalPlan0, [
18
+ props.id,
19
+ cx("vx-spinner", props.className),
20
+ props.style,
21
+ (el) => {
22
+ if (!el) return;
23
+ applyNativeProps(el, props);
24
+ el.once("loaded", () => {
25
+ el.animate({
26
+ rotate: 360,
27
+ duration: 800,
28
+ iterations: Number.POSITIVE_INFINITY
29
+ });
30
+ });
31
+ }
32
+ ]);
33
+ }, { "module": "@nativescript-community/octane" });
34
+ //#endregion
35
+ export { ActivityIndicator };
@@ -0,0 +1,74 @@
1
+ import { cx } from "./cx.js";
2
+ import { applyEscapeProps } from "./escape-props.native.js";
3
+ import { Icon } from "./Icon.native.tsrx.js";
4
+ import { defineUniversalComponent, markWarm, universalComponent, universalPlan, universalProps, universalValue, useBatch, warmChild } from "@nativescript-community/octane";
5
+ //#region src/Alert.native.tsrx
6
+ var __octaneUniversalPlan0 = universalPlan("nativescript", {
7
+ "kind": "slot",
8
+ "slot": 0
9
+ });
10
+ var __octaneUniversalPlan1 = universalPlan("nativescript", {
11
+ "kind": "host",
12
+ "type": "label",
13
+ "props": { "className": "vx-alert-title" },
14
+ "bindings": [["text", 0]]
15
+ });
16
+ var __octaneUniversalPlan2 = universalPlan("nativescript", {
17
+ "kind": "host",
18
+ "type": "flexboxlayout",
19
+ "props": { "flexDirection": "row" },
20
+ "bindings": [
21
+ ["ref", 0],
22
+ ["id", 1],
23
+ ["className", 2],
24
+ ["style", 3]
25
+ ],
26
+ "children": [{
27
+ "kind": "slot",
28
+ "slot": 4
29
+ }, {
30
+ "kind": "host",
31
+ "type": "flexboxlayout",
32
+ "props": { "className": "vx-alert-body" },
33
+ "children": [{
34
+ "kind": "slot",
35
+ "slot": 5
36
+ }, {
37
+ "kind": "slot",
38
+ "slot": 6
39
+ }]
40
+ }]
41
+ });
42
+ var Alert = defineUniversalComponent("nativescript", markWarm(function Alert(props) {
43
+ const tone = props.tone ?? "info";
44
+ useBatch([], () => {
45
+ warmChild(Icon, {
46
+ name: props.icon,
47
+ className: "vx-alert-icon"
48
+ });
49
+ });
50
+ return universalValue(__octaneUniversalPlan2, [
51
+ (v) => applyEscapeProps(v, props),
52
+ props.id,
53
+ cx("vx-alert", "vx-alert--" + tone, props.className),
54
+ props.style,
55
+ props.icon ? universalValue(__octaneUniversalPlan0, [universalComponent("nativescript", Icon, universalProps([[
56
+ "set",
57
+ "name",
58
+ props.icon
59
+ ], [
60
+ "set",
61
+ "className",
62
+ "vx-alert-icon"
63
+ ]]))]) : null,
64
+ props.title != null ? universalValue(__octaneUniversalPlan1, [props.title]) : null,
65
+ props.children
66
+ ]);
67
+ }, (__wp) => {
68
+ warmChild(Icon, {
69
+ name: __wp.icon,
70
+ className: "vx-alert-icon"
71
+ });
72
+ }), { "module": "@nativescript-community/octane" });
73
+ //#endregion
74
+ export { Alert };
@@ -0,0 +1,76 @@
1
+ import { cx } from "./cx.js";
2
+ import { applyEscapeProps } from "./escape-props.native.js";
3
+ import { Image } from "./Image.native.tsrx.js";
4
+ import { defineUniversalComponent, universalComponent, universalPlan, universalProps, universalValue } from "@nativescript-community/octane";
5
+ //#region src/Avatar.native.tsrx
6
+ var __octaneUniversalPlan0 = universalPlan("nativescript", {
7
+ "kind": "slot",
8
+ "slot": 0
9
+ });
10
+ var __octaneUniversalPlan1 = universalPlan("nativescript", {
11
+ "kind": "host",
12
+ "type": "label",
13
+ "props": { "className": "vx-avatar-fallback" },
14
+ "bindings": [["text", 0]]
15
+ });
16
+ var __octaneUniversalPlan2 = universalPlan("nativescript", {
17
+ "kind": "host",
18
+ "type": "flexboxlayout",
19
+ "bindings": [
20
+ ["ref", 0],
21
+ ["id", 1],
22
+ ["className", 2],
23
+ ["style", 3],
24
+ ["accessibilityLabel", 4]
25
+ ],
26
+ "children": [{
27
+ "kind": "slot",
28
+ "slot": 5
29
+ }]
30
+ });
31
+ var Avatar = defineUniversalComponent("nativescript", function Avatar(props) {
32
+ const size = props.size ?? 32;
33
+ const box = {
34
+ width: size,
35
+ height: size,
36
+ borderRadius: size / 2
37
+ };
38
+ return universalValue(__octaneUniversalPlan2, [
39
+ (v) => applyEscapeProps(v, props),
40
+ props.id,
41
+ cx("vx-avatar", props.className),
42
+ {
43
+ ...props.style,
44
+ ...box
45
+ },
46
+ props.alt,
47
+ props.src ? universalValue(__octaneUniversalPlan0, [universalComponent("nativescript", Image, universalProps([
48
+ [
49
+ "set",
50
+ "className",
51
+ "vx-avatar-img"
52
+ ],
53
+ [
54
+ "set",
55
+ "src",
56
+ props.src
57
+ ],
58
+ [
59
+ "set",
60
+ "alt",
61
+ props.alt
62
+ ],
63
+ [
64
+ "set",
65
+ "style",
66
+ {
67
+ width: size,
68
+ height: size,
69
+ borderRadius: size / 2
70
+ }
71
+ ]
72
+ ]))]) : universalValue(__octaneUniversalPlan1, [props.fallback ?? ""])
73
+ ]);
74
+ }, { "module": "@nativescript-community/octane" });
75
+ //#endregion
76
+ export { Avatar };
@@ -0,0 +1,84 @@
1
+ import { cx } from "./cx.js";
2
+ import { applyEscapeProps } from "./escape-props.native.js";
3
+ import { Avatar } from "./Avatar.native.tsrx.js";
4
+ import { toChildArray } from "./child-array.js";
5
+ import { defineUniversalComponent, universalComponent, universalPlan, universalProps, universalValue } from "@nativescript-community/octane";
6
+ //#region src/AvatarGroup.native.tsrx
7
+ var __octaneUniversalPlan0 = universalPlan("nativescript", {
8
+ "kind": "host",
9
+ "type": "flexboxlayout",
10
+ "propsSlot": 0,
11
+ "children": [{
12
+ "kind": "slot",
13
+ "slot": 1
14
+ }]
15
+ });
16
+ var __octaneUniversalPlan1 = universalPlan("nativescript", {
17
+ "kind": "host",
18
+ "type": "flexboxlayout",
19
+ "props": { "className": "vx-avatar-group-item" },
20
+ "bindings": [["style", 0]],
21
+ "children": [{
22
+ "kind": "slot",
23
+ "slot": 1
24
+ }]
25
+ });
26
+ var __octaneUniversalPlan2 = universalPlan("nativescript", {
27
+ "kind": "host",
28
+ "type": "flexboxlayout",
29
+ "props": { "flexDirection": "row" },
30
+ "bindings": [
31
+ ["ref", 0],
32
+ ["id", 1],
33
+ ["className", 2],
34
+ ["style", 3]
35
+ ],
36
+ "children": [{
37
+ "kind": "slot",
38
+ "slot": 4
39
+ }, {
40
+ "kind": "slot",
41
+ "slot": 5
42
+ }]
43
+ });
44
+ var AvatarGroup = defineUniversalComponent("nativescript", function AvatarGroup(props) {
45
+ const size = props.size ?? 32;
46
+ const children = toChildArray(props.children);
47
+ const shown = props.max != null ? children.slice(0, props.max) : children;
48
+ const overflow = children.length - shown.length;
49
+ const itemStyle = (i) => i === 0 ? void 0 : { marginLeft: -size / 3 };
50
+ return universalValue(__octaneUniversalPlan2, [
51
+ (v) => applyEscapeProps(v, props),
52
+ props.id,
53
+ cx("vx-avatar-group", props.className),
54
+ props.style,
55
+ shown.map((child, i) => universalValue(__octaneUniversalPlan0, [universalProps([
56
+ [
57
+ "set",
58
+ "key",
59
+ i
60
+ ],
61
+ [
62
+ "set",
63
+ "className",
64
+ "vx-avatar-group-item"
65
+ ],
66
+ [
67
+ "set",
68
+ "style",
69
+ itemStyle(i)
70
+ ]
71
+ ]), child])),
72
+ overflow > 0 ? universalValue(__octaneUniversalPlan1, [itemStyle(shown.length), universalComponent("nativescript", Avatar, universalProps([[
73
+ "set",
74
+ "fallback",
75
+ `+${overflow}`
76
+ ], [
77
+ "set",
78
+ "size",
79
+ size
80
+ ]]))]) : null
81
+ ]);
82
+ }, { "module": "@nativescript-community/octane" });
83
+ //#endregion
84
+ export { AvatarGroup };
@@ -0,0 +1,29 @@
1
+ import { cx } from "./cx.js";
2
+ import { applyEscapeProps } from "./escape-props.native.js";
3
+ import { defineUniversalComponent, universalPlan, universalValue } from "@nativescript-community/octane";
4
+ //#region src/Badge.native.tsrx
5
+ var __octaneUniversalPlan0 = universalPlan("nativescript", {
6
+ "kind": "host",
7
+ "type": "flexboxlayout",
8
+ "bindings": [
9
+ ["ref", 0],
10
+ ["id", 1],
11
+ ["className", 2],
12
+ ["style", 3]
13
+ ],
14
+ "children": [{
15
+ "kind": "slot",
16
+ "slot": 4
17
+ }]
18
+ });
19
+ var Badge = defineUniversalComponent("nativescript", function Badge(props) {
20
+ return universalValue(__octaneUniversalPlan0, [
21
+ (v) => applyEscapeProps(v, props),
22
+ props.id,
23
+ cx("vx-badge", props.className),
24
+ props.style,
25
+ props.children
26
+ ]);
27
+ }, { "module": "@nativescript-community/octane" });
28
+ //#endregion
29
+ export { Badge };
@@ -0,0 +1,80 @@
1
+ import { cx } from "./cx.js";
2
+ import { applyEscapeProps } from "./escape-props.native.js";
3
+ import { Icon } from "./Icon.native.tsrx.js";
4
+ import { defineUniversalComponent, markWarm, universalComponent, universalPlan, universalProps, universalValue, useBatch, warmChild } from "@nativescript-community/octane";
5
+ //#region src/Banner.native.tsrx
6
+ var __octaneUniversalPlan0 = universalPlan("nativescript", {
7
+ "kind": "slot",
8
+ "slot": 0
9
+ });
10
+ var __octaneUniversalPlan1 = universalPlan("nativescript", {
11
+ "kind": "host",
12
+ "type": "label",
13
+ "props": {
14
+ "className": "vx-banner-dismiss",
15
+ "text": "✕"
16
+ },
17
+ "bindings": [["onTap", 0]]
18
+ });
19
+ var __octaneUniversalPlan2 = universalPlan("nativescript", {
20
+ "kind": "host",
21
+ "type": "flexboxlayout",
22
+ "props": { "flexDirection": "row" },
23
+ "bindings": [
24
+ ["ref", 0],
25
+ ["id", 1],
26
+ ["className", 2],
27
+ ["style", 3]
28
+ ],
29
+ "children": [
30
+ {
31
+ "kind": "slot",
32
+ "slot": 4
33
+ },
34
+ {
35
+ "kind": "host",
36
+ "type": "flexboxlayout",
37
+ "props": { "className": "vx-banner-body" },
38
+ "children": [{
39
+ "kind": "slot",
40
+ "slot": 5
41
+ }]
42
+ },
43
+ {
44
+ "kind": "slot",
45
+ "slot": 6
46
+ }
47
+ ]
48
+ });
49
+ var Banner = defineUniversalComponent("nativescript", markWarm(function Banner(props) {
50
+ useBatch([], () => {
51
+ warmChild(Icon, {
52
+ name: props.icon,
53
+ className: "vx-banner-icon"
54
+ });
55
+ });
56
+ return universalValue(__octaneUniversalPlan2, [
57
+ (v) => applyEscapeProps(v, props),
58
+ props.id,
59
+ cx("vx-banner", props.className),
60
+ props.style,
61
+ props.icon ? universalValue(__octaneUniversalPlan0, [universalComponent("nativescript", Icon, universalProps([[
62
+ "set",
63
+ "name",
64
+ props.icon
65
+ ], [
66
+ "set",
67
+ "className",
68
+ "vx-banner-icon"
69
+ ]]))]) : null,
70
+ props.children,
71
+ props.onDismiss ? universalValue(__octaneUniversalPlan1, [props.onDismiss]) : null
72
+ ]);
73
+ }, (__wp) => {
74
+ warmChild(Icon, {
75
+ name: __wp.icon,
76
+ className: "vx-banner-icon"
77
+ });
78
+ }), { "module": "@nativescript-community/octane" });
79
+ //#endregion
80
+ export { Banner };
@@ -0,0 +1,66 @@
1
+ import { cx } from "./cx.js";
2
+ import { applyEscapeProps } from "./escape-props.native.js";
3
+ import { defineUniversalComponent, universalFor, universalPlan, universalValue } from "@nativescript-community/octane";
4
+ //#region src/Breadcrumb.native.tsrx
5
+ var __octaneUniversalPlan0 = universalPlan("nativescript", {
6
+ "kind": "host",
7
+ "type": "label",
8
+ "props": { "className": "vx-breadcrumb-sep" },
9
+ "bindings": [["text", 0]]
10
+ });
11
+ var __octaneUniversalPlan1 = universalPlan("nativescript", {
12
+ "kind": "host",
13
+ "type": "label",
14
+ "props": { "className": "vx-breadcrumb-link" },
15
+ "bindings": [["text", 0], ["onTap", 1]]
16
+ });
17
+ var __octaneUniversalPlan2 = universalPlan("nativescript", {
18
+ "kind": "host",
19
+ "type": "label",
20
+ "props": { "className": "vx-breadcrumb-text" },
21
+ "bindings": [["text", 0]]
22
+ });
23
+ var __octaneUniversalPlan3 = universalPlan("nativescript", {
24
+ "kind": "host",
25
+ "type": "flexboxlayout",
26
+ "props": { "className": "vx-breadcrumb-item" },
27
+ "children": [{
28
+ "kind": "slot",
29
+ "slot": 0
30
+ }, {
31
+ "kind": "slot",
32
+ "slot": 1
33
+ }]
34
+ });
35
+ var __octaneUniversalPlan4 = universalPlan("nativescript", {
36
+ "kind": "host",
37
+ "type": "flexboxlayout",
38
+ "props": { "flexDirection": "row" },
39
+ "bindings": [
40
+ ["ref", 0],
41
+ ["id", 1],
42
+ ["className", 2],
43
+ ["style", 3]
44
+ ],
45
+ "children": [{
46
+ "kind": "slot",
47
+ "slot": 4
48
+ }]
49
+ });
50
+ var Breadcrumb = defineUniversalComponent("nativescript", function Breadcrumb(props) {
51
+ const sep = props.separator ?? "/";
52
+ return universalValue(__octaneUniversalPlan4, [
53
+ (v) => applyEscapeProps(v, props),
54
+ props.id,
55
+ cx("vx-breadcrumb", props.className),
56
+ props.style,
57
+ universalFor(props.items.map((item, i) => ({
58
+ item,
59
+ i
60
+ })), (e, __octaneUniversalIndex) => e.i, (e, __octaneUniversalIndex) => {
61
+ return universalValue(__octaneUniversalPlan3, [e.i > 0 ? universalValue(__octaneUniversalPlan0, [sep]) : null, e.item.onSelect ? universalValue(__octaneUniversalPlan1, [e.item.label, e.item.onSelect]) : universalValue(__octaneUniversalPlan2, [e.item.label])]);
62
+ })
63
+ ]);
64
+ }, { "module": "@nativescript-community/octane" });
65
+ //#endregion
66
+ export { Breadcrumb };
@@ -0,0 +1,62 @@
1
+ import { cx } from "./cx.js";
2
+ import { Pressable } from "./Pressable.native.tsrx.js";
3
+ import { ActivityIndicator } from "./ActivityIndicator.native.tsrx.js";
4
+ import { defineUniversalComponent, markWarm, universalComponent, universalPlan, universalProps, universalValue, useBatch, warmChild } from "@nativescript-community/octane";
5
+ //#region src/Button.native.tsrx
6
+ var __octaneUniversalPlan0 = universalPlan("nativescript", {
7
+ "kind": "slot",
8
+ "slot": 0
9
+ });
10
+ var __octaneUniversalPlan1 = universalPlan("nativescript", {
11
+ "kind": "range",
12
+ "children": [
13
+ {
14
+ "kind": "slot",
15
+ "slot": 0
16
+ },
17
+ {
18
+ "kind": "slot",
19
+ "slot": 1
20
+ },
21
+ {
22
+ "kind": "slot",
23
+ "slot": 2
24
+ }
25
+ ]
26
+ });
27
+ var __octaneUniversalPlan2 = universalPlan("nativescript", {
28
+ "kind": "slot",
29
+ "slot": 0
30
+ });
31
+ var Button = defineUniversalComponent("nativescript", markWarm(function Button(props) {
32
+ const disabled = props.disabled || props.loading;
33
+ useBatch([], () => {
34
+ warmChild(ActivityIndicator, {});
35
+ });
36
+ return universalValue(__octaneUniversalPlan2, [universalComponent("nativescript", Pressable, universalProps([
37
+ ["spread", props],
38
+ [
39
+ "set",
40
+ "disabled",
41
+ disabled
42
+ ],
43
+ [
44
+ "set",
45
+ "className",
46
+ cx("vx-button", props.loading && "vx-button--loading", props.className)
47
+ ],
48
+ [
49
+ "set",
50
+ "accessibilityRole",
51
+ props.accessibilityRole ?? "button"
52
+ ]
53
+ ], props.loading ? universalValue(__octaneUniversalPlan0, [universalComponent("nativescript", ActivityIndicator, universalProps([]))]) : universalValue(__octaneUniversalPlan1, [
54
+ props.leading,
55
+ props.children,
56
+ props.trailing
57
+ ])))]);
58
+ }, (__wp) => {
59
+ warmChild(ActivityIndicator, {});
60
+ }), { "module": "@nativescript-community/octane" });
61
+ //#endregion
62
+ export { Button };