@octane-xplat/ui 0.5.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 (281) 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/{ui59.js → Heading.native.tsrx.js} +2 -2
  27. package/dist/native/{ui58.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/{ui50.js → KeyboardAvoiding.native.tsrx.js} +1 -1
  34. package/dist/native/{ui17.js → Link.native.tsrx.js} +1 -1
  35. package/dist/native/{ui55.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} +20 -14
  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/{ui49.js → SafeArea.native.tsrx.js} +2 -2
  49. package/dist/native/{ui45.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/{ui63.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} +4 -3
  66. package/dist/native/{ui24.js → TextArea.native.tsrx.js} +17 -16
  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/View.native.tsrx.js +98 -0
  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/{ui51.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/icons.js +25 -0
  87. package/dist/native/{ui11.js → ios/LiquidGlass.ios.tsrx.js} +4 -4
  88. package/dist/native/{ui12.js → ios/LiquidGlassContainer.ios.tsrx.js} +4 -4
  89. package/dist/native/ios/SideDrawer.ios.tsrx.js +64 -0
  90. package/dist/native/{ui53.js → ios/UIActivityIndicatorView.ios.tsrx.js} +5 -5
  91. package/dist/native/{ui32.js → ios/UIModal.ios.tsrx.js} +10 -6
  92. package/dist/native/{ui56.js → ios/UISlider.ios.tsrx.js} +5 -5
  93. package/dist/native/{ui47.js → ios/UISwitch.ios.tsrx.js} +5 -5
  94. package/dist/native/ios/UITabBar.ios.tsrx.js +166 -0
  95. package/dist/native/ios/UITableView.ios.tsrx.js +270 -0
  96. package/dist/native/ios/index.js +11 -0
  97. package/dist/native/{ui33.js → ios/openModal.ios.js} +5 -4
  98. package/dist/native/modal-presenter.native.js +19 -0
  99. package/dist/native/native/index.js +4 -0
  100. package/dist/native/octane-client-build.json +1 -1
  101. package/dist/native/{ui6.js → pan.native.tsrx.js} +9 -69
  102. package/dist/native/platform.native.js +10 -0
  103. package/dist/native/refresh-metrics.js +9 -0
  104. package/dist/native/refresh.native.js +177 -0
  105. package/dist/native/{ui34.js → root-layout.native.js} +6 -1
  106. package/dist/native/{ui21.js → route.native.js} +96 -12
  107. package/dist/native/sheet-detents.native.js +102 -0
  108. package/dist/native/{ui64.js → sheet-service.native.js} +19 -9
  109. package/dist/native/sheet-snap.js +35 -0
  110. package/dist/native/text-write.native.js +27 -0
  111. package/dist/native/{ui42.js → theme/status-bar-scheme.native.js} +2 -2
  112. package/dist/{web/ui29.js → native/theme/theme-scheme.js} +2 -2
  113. package/dist/native/{ui40.js → toast-anchor.native.tsrx.js} +3 -3
  114. package/dist/native/translate.native.js +11 -0
  115. package/dist/native/ui.js +93 -55
  116. package/dist/native/use-back.native.tsrx.js +9 -0
  117. package/dist/native/{ui52.js → useMeasure.native.tsrx.js} +1 -1
  118. package/dist/native/video-chrome.native.tsrx.js +365 -0
  119. package/dist/web/Absolute.web.tsrx.js +47 -0
  120. package/dist/web/Accordion.web.tsrx.js +85 -0
  121. package/dist/web/{ui48.js → ActivityIndicator.web.tsrx.js} +1 -1
  122. package/dist/web/Alert.web.tsrx.js +79 -0
  123. package/dist/web/Avatar.web.tsrx.js +106 -0
  124. package/dist/web/AvatarGroup.web.tsrx.js +108 -0
  125. package/dist/web/Badge.web.tsrx.js +37 -0
  126. package/dist/web/Banner.web.tsrx.js +79 -0
  127. package/dist/web/Breadcrumb.web.tsrx.js +135 -0
  128. package/dist/web/Button.web.tsrx.js +45 -0
  129. package/dist/web/CameraView.web.tsrx.js +310 -0
  130. package/dist/web/Card.web.tsrx.js +73 -0
  131. package/dist/web/Checkbox.web.tsrx.js +89 -0
  132. package/dist/web/CheckboxGroup.web.tsrx.js +79 -0
  133. package/dist/web/Chip.web.tsrx.js +64 -0
  134. package/dist/web/Collapsible.web.tsrx.js +94 -0
  135. package/dist/web/CommandPalette.web.tsrx.js +125 -0
  136. package/dist/web/ContextMenu.web.tsrx.js +154 -0
  137. package/dist/web/{ui45.js → Drawer.web.tsrx.js} +13 -9
  138. package/dist/web/DropdownMenu.web.tsrx.js +162 -0
  139. package/dist/web/Empty.web.tsrx.js +89 -0
  140. package/dist/web/FieldGroup.web.tsrx.js +57 -0
  141. package/dist/web/FormField.web.tsrx.js +92 -0
  142. package/dist/web/Grid.web.tsrx.js +65 -0
  143. package/dist/web/{ui54.js → Heading.web.tsrx.js} +2 -2
  144. package/dist/web/{ui53.js → Icon.web.tsrx.js} +2 -2
  145. package/dist/web/{ui25.js → Image.web.tsrx.js} +2 -2
  146. package/dist/web/InputNumber.web.tsrx.js +99 -0
  147. package/dist/web/InputRating.web.tsrx.js +72 -0
  148. package/dist/web/InputTags.web.tsrx.js +122 -0
  149. package/dist/web/Kbd.web.tsrx.js +37 -0
  150. package/dist/web/{ui50.js → Meter.web.tsrx.js} +1 -1
  151. package/dist/web/{ui19.js → NavLink.web.tsrx.js} +1 -1
  152. package/dist/web/NavigationMenu.web.tsrx.js +118 -0
  153. package/dist/web/{ui31.js → Overlay.web.tsrx.js} +2 -2
  154. package/dist/web/Pager.web.tsrx.js +337 -0
  155. package/dist/web/Pagination.web.tsrx.js +80 -0
  156. package/dist/web/PinInput.web.tsrx.js +72 -0
  157. package/dist/web/{ui33.js → Popover.web.tsrx.js} +3 -3
  158. package/dist/web/{ui15.js → Pressable.web.tsrx.js} +68 -95
  159. package/dist/web/ProgressGroup.web.tsrx.js +109 -0
  160. package/dist/web/RadioGroup.web.tsrx.js +69 -0
  161. package/dist/web/{ui14.js → RichText.web.tsrx.js} +2 -2
  162. package/dist/web/Row.web.tsrx.js +250 -0
  163. package/dist/web/{ui43.js → SafeArea.web.tsrx.js} +1 -1
  164. package/dist/web/{ui39.js → Screen.web.tsrx.js} +1 -1
  165. package/dist/web/{ui24.js → ScrollBox.web.tsrx.js} +1 -1
  166. package/dist/web/ScrollView.web.tsrx.js +388 -0
  167. package/dist/web/SearchInput.web.tsrx.js +137 -0
  168. package/dist/web/SegmentedControl.web.tsrx.js +75 -0
  169. package/dist/web/Select.web.tsrx.js +149 -0
  170. package/dist/web/Separator.web.tsrx.js +42 -0
  171. package/dist/web/Sheet.web.tsrx.js +81 -0
  172. package/dist/web/Skeleton.web.tsrx.js +56 -0
  173. package/dist/web/Slider.web.tsrx.js +97 -0
  174. package/dist/web/{ui12.js → Spacer.web.tsrx.js} +1 -1
  175. package/dist/web/Stack.web.tsrx.js +47 -0
  176. package/dist/web/Stepper.web.tsrx.js +65 -0
  177. package/dist/web/Switch.web.tsrx.js +59 -0
  178. package/dist/web/Table.web.tsrx.js +161 -0
  179. package/dist/web/{ui40.js → Tabs.web.tsrx.js} +33 -16
  180. package/dist/web/{ui13.js → Text.web.tsrx.js} +18 -50
  181. package/dist/web/{ui21.js → TextArea.web.tsrx.js} +4 -4
  182. package/dist/web/{ui20.js → TextInput.web.tsrx.js} +8 -8
  183. package/dist/web/Timeline.web.tsrx.js +172 -0
  184. package/dist/web/Tree.web.tsrx.js +146 -0
  185. package/dist/web/User.web.tsrx.js +116 -0
  186. package/dist/web/Video.web.tsrx.js +400 -0
  187. package/dist/web/View.web.tsrx.js +250 -0
  188. package/dist/web/WebView.web.tsrx.js +235 -0
  189. package/dist/web/aliases.web.tsrx.js +24 -0
  190. package/dist/web/{ui36.js → anim.web.tsrx.js} +3 -35
  191. package/dist/web/child-array.js +15 -0
  192. package/dist/web/icons.js +25 -0
  193. package/dist/web/octane-client-build.json +1 -1
  194. package/dist/web/pan.web.tsrx.js +66 -0
  195. package/dist/web/platform.web.js +9 -0
  196. package/dist/web/refresh-metrics.js +9 -0
  197. package/dist/web/refresh.web.js +133 -0
  198. package/dist/web/{ui18.js → route.web.js} +14 -2
  199. package/dist/web/sheet-detents.web.js +103 -0
  200. package/dist/web/{ui60.js → sheet-service.web.js} +5 -1
  201. package/dist/web/sheet-snap.js +35 -0
  202. package/dist/{native/ui31.js → web/theme/theme-scheme.js} +2 -2
  203. package/dist/web/{ui35.js → toast-anchor.web.tsrx.js} +3 -3
  204. package/dist/web/transform.web.js +43 -0
  205. package/dist/web/translate.web.js +13 -0
  206. package/dist/web/ui.js +91 -53
  207. package/dist/web/use-back.web.tsrx.js +9 -0
  208. package/dist/web/video-chrome.web.tsrx.js +207 -0
  209. package/dist/web/{ui34.js → web/Hoverable.web.tsrx.js} +6 -6
  210. package/dist/web/web/Tooltip.web.tsrx.js +183 -0
  211. package/dist/web/web/index.js +3 -0
  212. package/package.json +30 -3
  213. package/src/theme/tokens.css +1380 -200
  214. package/types/android.d.ts +53 -0
  215. package/types/index.d.ts +32 -17
  216. package/types/index.native.d.ts +273 -0
  217. package/types/index.web.d.ts +272 -0
  218. package/types/ios.d.ts +59 -0
  219. package/types/native.d.ts +5 -0
  220. package/types/props.d.ts +930 -40
  221. package/types/web.d.ts +17 -0
  222. package/dist/native/ui10.js +0 -32
  223. package/dist/native/ui25.js +0 -141
  224. package/dist/native/ui27.js +0 -61
  225. package/dist/native/ui39.js +0 -103
  226. package/dist/native/ui4.js +0 -24
  227. package/dist/native/ui46.js +0 -267
  228. package/dist/native/ui57.js +0 -19
  229. package/dist/native/ui60.js +0 -14
  230. package/dist/native/ui7.js +0 -52
  231. package/dist/web/ui10.js +0 -46
  232. package/dist/web/ui11.js +0 -42
  233. package/dist/web/ui22.js +0 -108
  234. package/dist/web/ui23.js +0 -96
  235. package/dist/web/ui26.js +0 -45
  236. package/dist/web/ui3.js +0 -31
  237. package/dist/web/ui30.js +0 -34
  238. package/dist/web/ui41.js +0 -43
  239. package/dist/web/ui44.js +0 -42
  240. package/dist/web/ui5.js +0 -168
  241. package/dist/web/ui51.js +0 -47
  242. package/dist/web/ui52.js +0 -19
  243. package/dist/web/ui55.js +0 -17
  244. package/dist/web/ui59.js +0 -44
  245. package/dist/web/ui6.js +0 -94
  246. package/dist/web/ui7.js +0 -62
  247. package/dist/web/ui8.js +0 -46
  248. package/dist/web/ui9.js +0 -46
  249. /package/dist/native/{ui20.js → RouteHost.native.tsrx.js} +0 -0
  250. /package/dist/native/{ui41.js → anim.native.tsrx.js} +0 -0
  251. /package/dist/native/{ui2.js → cx.js} +0 -0
  252. /package/dist/native/{ui3.js → escape-props.native.js} +0 -0
  253. /package/dist/native/{ui5.js → layout-child.native.js} +0 -0
  254. /package/dist/native/{ui54.js → meter-math.js} +0 -0
  255. /package/dist/native/{ui36.js → platformProps.native.js} +0 -0
  256. /package/dist/native/{ui37.js → popover-position.js} +0 -0
  257. /package/dist/native/{ui19.js → route-table.js} +0 -0
  258. /package/dist/native/{ui48.js → safeAreaInsets.native.tsrx.js} +0 -0
  259. /package/dist/native/{ui18.js → stacks.native.js} +0 -0
  260. /package/dist/native/{ui61.js → store.js} +0 -0
  261. /package/dist/native/{ui43.js → styled.native.tsrx.js} +0 -0
  262. /package/dist/native/{ui28.js → svg.native.js} +0 -0
  263. /package/dist/native/{ui30.js → theme/colorScheme.native.js} +0 -0
  264. /package/dist/native/{ui62.js → use-store.native.tsrx.js} +0 -0
  265. /package/dist/native/{ui44.js → windows.native.js} +0 -0
  266. /package/dist/web/{ui16.js → Link.web.tsrx.js} +0 -0
  267. /package/dist/web/{ui28.js → cx.js} +0 -0
  268. /package/dist/web/{ui2.js → escape-props.web.js} +0 -0
  269. /package/dist/web/{ui4.js → layout-child.web.js} +0 -0
  270. /package/dist/web/{ui49.js → meter-math.js} +0 -0
  271. /package/dist/web/{ui47.js → platformProps.web.js} +0 -0
  272. /package/dist/web/{ui32.js → popover-position.js} +0 -0
  273. /package/dist/web/{ui17.js → route-table.js} +0 -0
  274. /package/dist/web/{ui42.js → safeAreaInsets.web.tsrx.js} +0 -0
  275. /package/dist/web/{ui56.js → stacks.web.js} +0 -0
  276. /package/dist/web/{ui57.js → store.js} +0 -0
  277. /package/dist/web/{ui37.js → styled.web.tsrx.js} +0 -0
  278. /package/dist/web/{ui27.js → theme/colorScheme.web.js} +0 -0
  279. /package/dist/web/{ui58.js → use-store.web.tsrx.js} +0 -0
  280. /package/dist/web/{ui46.js → useMeasure.web.tsrx.js} +0 -0
  281. /package/dist/web/{ui38.js → windows.web.js} +0 -0
@@ -0,0 +1,140 @@
1
+ import { cx } from "./cx.js";
2
+ import { applyEscapeProps } from "./escape-props.native.js";
3
+ import { Popover } from "./Popover.native.tsrx.js";
4
+ import { Icon } from "./Icon.native.tsrx.js";
5
+ import { defineUniversalComponent, hookSlots, universalChildren, universalComponent, universalPlan, universalProps, universalValue, useRef, useState } from "@nativescript-community/octane";
6
+ //#region src/ContextMenu.native.tsrx
7
+ var _hs$ = /* @__PURE__ */ hookSlots(2);
8
+ var _h$0 = /* @__PURE__ */ Symbol(_hs$);
9
+ var _h$1 = /* @__PURE__ */ Symbol(_hs$ + 1);
10
+ var __octaneUniversalPlan0 = universalPlan("nativescript", {
11
+ "kind": "slot",
12
+ "slot": 0
13
+ });
14
+ var __octaneUniversalPlan1 = universalPlan("nativescript", {
15
+ "kind": "host",
16
+ "type": "label",
17
+ "props": { "className": "vx-menu-item-label" },
18
+ "bindings": [["text", 0]]
19
+ });
20
+ var __octaneUniversalPlan2 = universalPlan("nativescript", {
21
+ "kind": "host",
22
+ "type": "flexboxlayout",
23
+ "propsSlot": 0,
24
+ "children": [{
25
+ "kind": "slot",
26
+ "slot": 1
27
+ }, {
28
+ "kind": "slot",
29
+ "slot": 2
30
+ }]
31
+ });
32
+ var __octaneUniversalPlan3 = universalPlan("nativescript", {
33
+ "kind": "host",
34
+ "type": "flexboxlayout",
35
+ "props": { "className": "vx-menu-list" },
36
+ "children": [{
37
+ "kind": "slot",
38
+ "slot": 0
39
+ }]
40
+ });
41
+ var __octaneUniversalPlan4 = universalPlan("nativescript", {
42
+ "kind": "host",
43
+ "type": "flexboxlayout",
44
+ "bindings": [
45
+ ["ref", 0],
46
+ ["id", 1],
47
+ ["className", 2],
48
+ ["style", 3],
49
+ ["onLongPress", 4]
50
+ ],
51
+ "children": [{
52
+ "kind": "slot",
53
+ "slot": 5
54
+ }, {
55
+ "kind": "slot",
56
+ "slot": 6
57
+ }]
58
+ });
59
+ var ContextMenu = defineUniversalComponent("nativescript", function ContextMenu(props) {
60
+ const anchor = useRef(null, _h$0);
61
+ const [internal, setInternal] = useState(props.defaultOpen ?? false, _h$1);
62
+ const controlled = props.open !== void 0;
63
+ const open = controlled ? props.open : internal;
64
+ const setOpen = (next) => {
65
+ if (props.disabled && next) return;
66
+ if (!controlled) setInternal(next);
67
+ props.onOpenChange?.(next);
68
+ };
69
+ const select = (item) => {
70
+ if (item.disabled) return;
71
+ setOpen(false);
72
+ item.onSelect?.();
73
+ };
74
+ return universalValue(__octaneUniversalPlan4, [
75
+ (v) => {
76
+ anchor.current = v;
77
+ if (v) applyEscapeProps(v, props);
78
+ },
79
+ props.id,
80
+ cx("vx-contextmenu", props.className),
81
+ props.style,
82
+ props.disabled ? void 0 : () => setOpen(true),
83
+ props.children,
84
+ universalComponent("nativescript", Popover, universalProps([
85
+ [
86
+ "set",
87
+ "anchor",
88
+ anchor
89
+ ],
90
+ [
91
+ "set",
92
+ "open",
93
+ open
94
+ ],
95
+ [
96
+ "set",
97
+ "placement",
98
+ "bottom"
99
+ ],
100
+ [
101
+ "set",
102
+ "onDismiss",
103
+ () => setOpen(false)
104
+ ],
105
+ [
106
+ "set",
107
+ "className",
108
+ "vx-menu"
109
+ ]
110
+ ], universalChildren("nativescript", () => {
111
+ return universalValue(__octaneUniversalPlan3, [props.items.map((item) => universalValue(__octaneUniversalPlan2, [
112
+ universalProps([
113
+ [
114
+ "set",
115
+ "key",
116
+ item.key
117
+ ],
118
+ [
119
+ "set",
120
+ "className",
121
+ cx("vx-menu-item", item.disabled && "vx-menu-item--disabled")
122
+ ],
123
+ [
124
+ "set",
125
+ "onTap",
126
+ item.disabled ? void 0 : () => select(item)
127
+ ]
128
+ ]),
129
+ item.icon ? universalValue(__octaneUniversalPlan0, [universalComponent("nativescript", Icon, universalProps([[
130
+ "set",
131
+ "name",
132
+ item.icon
133
+ ]]))]) : null,
134
+ item.label != null ? universalValue(__octaneUniversalPlan1, [item.label]) : null
135
+ ]))]);
136
+ })))
137
+ ]);
138
+ }, { "module": "@nativescript-community/octane" });
139
+ //#endregion
140
+ export { ContextMenu };
@@ -0,0 +1,60 @@
1
+ import { cx } from "./cx.js";
2
+ import { applyEscapeProps } from "./escape-props.native.js";
3
+ import { defineUniversalComponent, universalIf, universalPlan, universalValue } from "@nativescript-community/octane";
4
+ //#region src/Drawer.native.tsrx
5
+ var __octaneUniversalPlan0 = universalPlan("nativescript", {
6
+ "kind": "range",
7
+ "children": [{
8
+ "kind": "host",
9
+ "type": "flexboxlayout",
10
+ "props": { "className": "vx-drawer-backdrop" },
11
+ "bindings": [["onTap", 0]]
12
+ }, {
13
+ "kind": "host",
14
+ "type": "flexboxlayout",
15
+ "props": {
16
+ "className": "vx-drawer-panel",
17
+ "horizontalAlignment": "left"
18
+ },
19
+ "children": [{
20
+ "kind": "slot",
21
+ "slot": 1
22
+ }]
23
+ }]
24
+ });
25
+ var __octaneUniversalPlan1 = universalPlan("nativescript", {
26
+ "kind": "host",
27
+ "type": "gridlayout",
28
+ "bindings": [
29
+ ["id", 0],
30
+ ["ref", 1],
31
+ ["className", 2],
32
+ ["style", 3]
33
+ ],
34
+ "children": [{
35
+ "kind": "host",
36
+ "type": "gridlayout",
37
+ "props": { "className": "vx-drawer-main" },
38
+ "children": [{
39
+ "kind": "slot",
40
+ "slot": 4
41
+ }]
42
+ }, {
43
+ "kind": "slot",
44
+ "slot": 5
45
+ }]
46
+ });
47
+ var Drawer = defineUniversalComponent("nativescript", function Drawer(props) {
48
+ return universalValue(__octaneUniversalPlan1, [
49
+ props.id,
50
+ (v) => applyEscapeProps(v, props),
51
+ cx("vx-drawer", props.className),
52
+ props.style,
53
+ props.main,
54
+ universalIf(props.open, () => {
55
+ return universalValue(__octaneUniversalPlan0, [props.onDismiss, props.drawer]);
56
+ })
57
+ ]);
58
+ }, { "module": "@nativescript-community/octane" });
59
+ //#endregion
60
+ export { Drawer };
@@ -0,0 +1,155 @@
1
+ import { cx } from "./cx.js";
2
+ import "./escape-props.native.js";
3
+ import { Pressable } from "./Pressable.native.tsrx.js";
4
+ import { Popover } from "./Popover.native.tsrx.js";
5
+ import { Icon } from "./Icon.native.tsrx.js";
6
+ import { defineUniversalComponent, hookSlots, universalChildren, universalComponent, universalPlan, universalProps, universalValue, useRef, useState } from "@nativescript-community/octane";
7
+ //#region src/DropdownMenu.native.tsrx
8
+ var _hs$ = /* @__PURE__ */ hookSlots(2);
9
+ var _h$0 = /* @__PURE__ */ Symbol(_hs$);
10
+ var _h$1 = /* @__PURE__ */ Symbol(_hs$ + 1);
11
+ var __octaneUniversalPlan0 = universalPlan("nativescript", {
12
+ "kind": "slot",
13
+ "slot": 0
14
+ });
15
+ var __octaneUniversalPlan1 = universalPlan("nativescript", {
16
+ "kind": "host",
17
+ "type": "label",
18
+ "props": { "className": "vx-menu-item-label" },
19
+ "bindings": [["text", 0]]
20
+ });
21
+ var __octaneUniversalPlan2 = universalPlan("nativescript", {
22
+ "kind": "host",
23
+ "type": "flexboxlayout",
24
+ "propsSlot": 0,
25
+ "children": [{
26
+ "kind": "slot",
27
+ "slot": 1
28
+ }, {
29
+ "kind": "slot",
30
+ "slot": 2
31
+ }]
32
+ });
33
+ var __octaneUniversalPlan3 = universalPlan("nativescript", {
34
+ "kind": "host",
35
+ "type": "flexboxlayout",
36
+ "props": { "className": "vx-menu-list" },
37
+ "children": [{
38
+ "kind": "slot",
39
+ "slot": 0
40
+ }]
41
+ });
42
+ var __octaneUniversalPlan4 = universalPlan("nativescript", {
43
+ "kind": "range",
44
+ "children": [{
45
+ "kind": "slot",
46
+ "slot": 0
47
+ }, {
48
+ "kind": "slot",
49
+ "slot": 1
50
+ }]
51
+ });
52
+ var DropdownMenu = defineUniversalComponent("nativescript", function DropdownMenu(props) {
53
+ const anchor = useRef(null, _h$0);
54
+ const [internal, setInternal] = useState(props.defaultOpen ?? false, _h$1);
55
+ const controlled = props.open !== void 0;
56
+ const open = controlled ? props.open : internal;
57
+ const setOpen = (next) => {
58
+ if (props.disabled && next) return;
59
+ if (!controlled) setInternal(next);
60
+ props.onOpenChange?.(next);
61
+ };
62
+ const select = (item) => {
63
+ if (item.disabled) return;
64
+ setOpen(false);
65
+ item.onSelect?.();
66
+ };
67
+ return universalValue(__octaneUniversalPlan4, [universalComponent("nativescript", Pressable, universalProps([
68
+ [
69
+ "set",
70
+ "bind",
71
+ (v) => {
72
+ anchor.current = v;
73
+ }
74
+ ],
75
+ [
76
+ "set",
77
+ "id",
78
+ props.id
79
+ ],
80
+ [
81
+ "set",
82
+ "className",
83
+ cx("vx-menu-trigger", props.className)
84
+ ],
85
+ [
86
+ "set",
87
+ "style",
88
+ props.style
89
+ ],
90
+ [
91
+ "set",
92
+ "disabled",
93
+ props.disabled
94
+ ],
95
+ [
96
+ "set",
97
+ "onPress",
98
+ () => setOpen(!open)
99
+ ]
100
+ ], props.trigger)), universalComponent("nativescript", Popover, universalProps([
101
+ [
102
+ "set",
103
+ "anchor",
104
+ anchor
105
+ ],
106
+ [
107
+ "set",
108
+ "open",
109
+ open
110
+ ],
111
+ [
112
+ "set",
113
+ "placement",
114
+ props.placement ?? "bottom"
115
+ ],
116
+ [
117
+ "set",
118
+ "onDismiss",
119
+ () => setOpen(false)
120
+ ],
121
+ [
122
+ "set",
123
+ "className",
124
+ "vx-menu"
125
+ ]
126
+ ], universalChildren("nativescript", () => {
127
+ return universalValue(__octaneUniversalPlan3, [props.items.map((item) => universalValue(__octaneUniversalPlan2, [
128
+ universalProps([
129
+ [
130
+ "set",
131
+ "key",
132
+ item.key
133
+ ],
134
+ [
135
+ "set",
136
+ "className",
137
+ cx("vx-menu-item", item.disabled && "vx-menu-item--disabled")
138
+ ],
139
+ [
140
+ "set",
141
+ "onTap",
142
+ item.disabled ? void 0 : () => select(item)
143
+ ]
144
+ ]),
145
+ item.icon ? universalValue(__octaneUniversalPlan0, [universalComponent("nativescript", Icon, universalProps([[
146
+ "set",
147
+ "name",
148
+ item.icon
149
+ ]]))]) : null,
150
+ item.label != null ? universalValue(__octaneUniversalPlan1, [item.label]) : null
151
+ ]))]);
152
+ })))]);
153
+ }, { "module": "@nativescript-community/octane" });
154
+ //#endregion
155
+ export { DropdownMenu };
@@ -0,0 +1,82 @@
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/Empty.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-empty-title" },
14
+ "bindings": [["text", 0]]
15
+ });
16
+ var __octaneUniversalPlan2 = universalPlan("nativescript", {
17
+ "kind": "host",
18
+ "type": "label",
19
+ "props": { "className": "vx-empty-desc" },
20
+ "bindings": [["text", 0]]
21
+ });
22
+ var __octaneUniversalPlan3 = universalPlan("nativescript", {
23
+ "kind": "host",
24
+ "type": "flexboxlayout",
25
+ "bindings": [
26
+ ["ref", 0],
27
+ ["id", 1],
28
+ ["className", 2],
29
+ ["style", 3]
30
+ ],
31
+ "children": [
32
+ {
33
+ "kind": "slot",
34
+ "slot": 4
35
+ },
36
+ {
37
+ "kind": "slot",
38
+ "slot": 5
39
+ },
40
+ {
41
+ "kind": "slot",
42
+ "slot": 6
43
+ },
44
+ {
45
+ "kind": "slot",
46
+ "slot": 7
47
+ }
48
+ ]
49
+ });
50
+ var Empty = defineUniversalComponent("nativescript", markWarm(function Empty(props) {
51
+ useBatch([], () => {
52
+ warmChild(Icon, {
53
+ name: props.icon,
54
+ className: "vx-empty-icon"
55
+ });
56
+ });
57
+ return universalValue(__octaneUniversalPlan3, [
58
+ (v) => applyEscapeProps(v, props),
59
+ props.id,
60
+ cx("vx-empty", props.className),
61
+ props.style,
62
+ props.icon ? universalValue(__octaneUniversalPlan0, [universalComponent("nativescript", Icon, universalProps([[
63
+ "set",
64
+ "name",
65
+ props.icon
66
+ ], [
67
+ "set",
68
+ "className",
69
+ "vx-empty-icon"
70
+ ]]))]) : null,
71
+ props.title != null ? universalValue(__octaneUniversalPlan1, [props.title]) : null,
72
+ props.description != null ? universalValue(__octaneUniversalPlan2, [props.description]) : null,
73
+ props.children
74
+ ]);
75
+ }, (__wp) => {
76
+ warmChild(Icon, {
77
+ name: __wp.icon,
78
+ className: "vx-empty-icon"
79
+ });
80
+ }), { "module": "@nativescript-community/octane" });
81
+ //#endregion
82
+ export { Empty };
@@ -0,0 +1,39 @@
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/FieldGroup.native.tsrx
5
+ var __octaneUniversalPlan0 = universalPlan("nativescript", {
6
+ "kind": "host",
7
+ "type": "label",
8
+ "props": { "className": "vx-fieldgroup-label" },
9
+ "bindings": [["text", 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
+ "kind": "slot",
25
+ "slot": 5
26
+ }]
27
+ });
28
+ var FieldGroup = defineUniversalComponent("nativescript", function FieldGroup(props) {
29
+ return universalValue(__octaneUniversalPlan1, [
30
+ (v) => applyEscapeProps(v, props),
31
+ props.id,
32
+ cx("vx-fieldgroup", props.className),
33
+ props.style,
34
+ props.label != null ? universalValue(__octaneUniversalPlan0, [props.label]) : null,
35
+ props.children
36
+ ]);
37
+ }, { "module": "@nativescript-community/octane" });
38
+ //#endregion
39
+ export { FieldGroup };
@@ -0,0 +1,53 @@
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/FormField.native.tsrx
5
+ var __octaneUniversalPlan0 = universalPlan("nativescript", {
6
+ "kind": "host",
7
+ "type": "label",
8
+ "props": { "className": "vx-field-label" },
9
+ "bindings": [["text", 0]]
10
+ });
11
+ var __octaneUniversalPlan1 = universalPlan("nativescript", {
12
+ "kind": "host",
13
+ "type": "label",
14
+ "bindings": [["className", 0], ["text", 1]]
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
+ ],
25
+ "children": [
26
+ {
27
+ "kind": "slot",
28
+ "slot": 4
29
+ },
30
+ {
31
+ "kind": "slot",
32
+ "slot": 5
33
+ },
34
+ {
35
+ "kind": "slot",
36
+ "slot": 6
37
+ }
38
+ ]
39
+ });
40
+ var FormField = defineUniversalComponent("nativescript", function FormField(props) {
41
+ const message = props.error ?? props.hint;
42
+ return universalValue(__octaneUniversalPlan2, [
43
+ (v) => applyEscapeProps(v, props),
44
+ props.id,
45
+ cx("vx-field", props.error && "vx-field--error", props.className),
46
+ props.style,
47
+ props.label != null ? universalValue(__octaneUniversalPlan0, [props.required ? props.label + " *" : props.label]) : null,
48
+ props.children,
49
+ message != null ? universalValue(__octaneUniversalPlan1, [cx("vx-field-msg", props.error && "vx-field-msg--error"), message]) : null
50
+ ]);
51
+ }, { "module": "@nativescript-community/octane" });
52
+ //#endregion
53
+ export { FormField };
@@ -1,6 +1,5 @@
1
- import { cx } from "./ui2.js";
2
- import { applyEscapeProps } from "./ui3.js";
3
- import { glassClassOf, glassConfigOf } from "./ui4.js";
1
+ import { cx } from "./cx.js";
2
+ import { applyEscapeProps, nativeAccessibilityRole, nativeAccessibilityState } from "./escape-props.native.js";
4
3
  import { defineUniversalComponent, universalPlan, universalValue } from "@nativescript-community/octane";
5
4
  //#region src/Grid.native.tsrx
6
5
  var __octaneUniversalPlan0 = universalPlan("nativescript", {
@@ -13,27 +12,39 @@ var __octaneUniversalPlan0 = universalPlan("nativescript", {
13
12
  ["columns", 3],
14
13
  ["className", 4],
15
14
  ["style", 5],
16
- ["iosGlassEffect", 6]
15
+ ["accessible", 6],
16
+ ["accessibilityLabel", 7],
17
+ ["accessibilityRole", 8],
18
+ ["accessibilityHint", 9],
19
+ ["accessibilityValue", 10],
20
+ ["accessibilityState", 11],
21
+ ["accessibilityLiveRegion", 12]
17
22
  ],
18
23
  "children": [{
19
24
  "kind": "slot",
20
- "slot": 7
25
+ "slot": 13
21
26
  }]
22
27
  });
23
28
  var warnedAboutGap = false;
24
29
  var Grid = defineUniversalComponent("nativescript", function Grid(props) {
25
30
  if (props.gap != null && !warnedAboutGap) {
26
31
  warnedAboutGap = true;
27
- console.warn("[Grid] gap is not supported; use child margins instead.");
32
+ console.warn("[Grid] gap was removed; use child margins");
28
33
  }
29
34
  return universalValue(__octaneUniversalPlan0, [
30
35
  props.id,
31
36
  (view) => applyEscapeProps(view, props),
32
37
  props.rows,
33
38
  props.columns,
34
- cx("vx-grid", glassClassOf(props.glass), props.className),
39
+ cx("vx-grid", props.className),
35
40
  props.style,
36
- glassConfigOf(props.glass),
41
+ props.accessible,
42
+ props.accessibilityLabel,
43
+ nativeAccessibilityRole(props.accessibilityRole),
44
+ props.accessibilityHint,
45
+ props.accessibilityValue,
46
+ nativeAccessibilityState(props.accessibilityState),
47
+ props.accessibilityLiveRegion,
37
48
  props.children
38
49
  ]);
39
50
  }, { "module": "@nativescript-community/octane" });
@@ -1,5 +1,5 @@
1
- import { cx } from "./ui2.js";
2
- import { applyNativeProps } from "./ui36.js";
1
+ import { cx } from "./cx.js";
2
+ import { applyNativeProps } from "./platformProps.native.js";
3
3
  import { defineUniversalComponent, universalPlan, universalValue } from "@nativescript-community/octane";
4
4
  import { AccessibilityRole } from "@nativescript/core";
5
5
  //#region src/Heading.native.tsrx
@@ -1,7 +1,7 @@
1
- import { cx } from "./ui2.js";
2
- import { glyphSvgMarkup, isSvgSrc, svgSource } from "./ui28.js";
3
- import { applyNativeProps } from "./ui36.js";
4
- import { getIcon } from "./ui57.js";
1
+ import { cx } from "./cx.js";
2
+ import { applyNativeProps } from "./platformProps.native.js";
3
+ import { getIcon } from "./icons.js";
4
+ import { glyphSvgMarkup, isSvgSrc, svgSource } from "./svg.native.js";
5
5
  import { defineUniversalComponent, universalIf, universalPlan, universalValue } from "@nativescript-community/octane";
6
6
  //#region src/Icon.native.tsrx
7
7
  var __octaneUniversalPlan0 = universalPlan("nativescript", {
@@ -1,7 +1,7 @@
1
- import { cx } from "./ui2.js";
2
- import { applyEscapeProps } from "./ui3.js";
3
- import { layoutChildProps } from "./ui5.js";
4
- import { isSvgSrc, svgSource } from "./ui28.js";
1
+ import { cx } from "./cx.js";
2
+ import { applyEscapeProps } from "./escape-props.native.js";
3
+ import { layoutChildProps } from "./layout-child.native.js";
4
+ import { isSvgSrc, svgSource } from "./svg.native.js";
5
5
  import { defineUniversalComponent, hookSlots, universalIf, universalPlan, universalProps, universalValue, useMemo } from "@nativescript-community/octane";
6
6
  import { ImageSource } from "@nativescript/core";
7
7
  //#region src/Image.native.tsrx