@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,172 @@
1
+ import { applyEscapeProps } from "./escape-props.web.js";
2
+ import { Icon } from "./Icon.web.tsrx.js";
3
+ import { __s, bag0, bag3, bag6, bag8, child, clone, compilerCacheContext, componentSlot, createElement, createScopedElement, createScopedValue, hookSlots, ifBlock, mapSlot, positionalChildren, queueRefAttach, queueRefDetach, setStyle, sibling, template } from "octane";
4
+ import { bindSignalAttribute, bindSignalChild, compilerMemoRegion, createElementFromConfig, enableSignalBindings, hookMemoEqual, replaceRef, setPlainAttribute, updateFreshClassName } from "octane/internal/client";
5
+ //#region src/Timeline.web.tsrx
6
+ enableSignalBindings(1, true);
7
+ var _t$0 = /* @__PURE__ */ template("<div class=\"vx-timeline-line\"></div>");
8
+ var _t$1 = /* @__PURE__ */ template("<span class=\"vx-timeline-time\"></span>");
9
+ var _t$2 = /* @__PURE__ */ template("<span class=\"vx-timeline-title\"></span>");
10
+ var _t$3 = /* @__PURE__ */ template("<span class=\"vx-timeline-desc\"></span>");
11
+ var _t$4 = /* @__PURE__ */ template("<div class=\"vx-timeline-item\"><div class=\"vx-timeline-rail\" aria-hidden=\"true\"><div class=\"vx-timeline-dot\"><!></div><!></div><div class=\"vx-timeline-body\"><!><!><!></div></div>");
12
+ var _t$5 = /* @__PURE__ */ template("<div><!></div>");
13
+ var _key$0 = (item, i) => item.key;
14
+ function __then$2(__props, __s, __extra) {
15
+ const __block = __s.block;
16
+ const item = __extra[0];
17
+ componentSlot(__s, 0, __block.parentNode, Icon, { "name": item.icon }, __block.endMarker, void 0, 2, void 0, void 0, "c:5643b2d9");
18
+ }
19
+ function __then$5(__props, __s, __extra) {
20
+ let _b = __s.slots[0];
21
+ if (_b === void 0) {
22
+ const _root = clone(_t$0);
23
+ _b = bag0(__s, _root);
24
+ }
25
+ }
26
+ function __then$7(__props, __s, __extra) {
27
+ const item = __extra[0];
28
+ let _b = __s.slots[0];
29
+ if (_b === void 0) {
30
+ let _m0;
31
+ const _root = clone(_t$1);
32
+ _m0 = _root;
33
+ _b = bag3(__s, _root, _m0, null, void 0);
34
+ }
35
+ _b.d = bindSignalChild(__s, _b.d, 1, _b.a, item.time, "b:fa704bab", null, void 0, void 0, void 0, true);
36
+ }
37
+ function __then$10(__props, __s, __extra) {
38
+ const item = __extra[0];
39
+ let _b = __s.slots[0];
40
+ if (_b === void 0) {
41
+ let _m0;
42
+ const _root = clone(_t$2);
43
+ _m0 = _root;
44
+ _b = bag3(__s, _root, _m0, null, void 0);
45
+ }
46
+ _b.d = bindSignalChild(__s, _b.d, 1, _b.a, item.title, "b:5fccd11b", null, void 0, void 0, void 0, true);
47
+ }
48
+ function __then$13(__props, __s, __extra) {
49
+ const item = __extra[0];
50
+ let _b = __s.slots[0];
51
+ if (_b === void 0) {
52
+ let _m0;
53
+ const _root = clone(_t$3);
54
+ _m0 = _root;
55
+ _b = bag3(__s, _root, _m0, null, void 0);
56
+ }
57
+ _b.d = bindSignalChild(__s, _b.d, 1, _b.a, item.description, "b:72e5897c", null, void 0, void 0, void 0, true);
58
+ }
59
+ function __item$1(item, __s, __extra) {
60
+ const __block = __s.block;
61
+ const props = __extra[0];
62
+ const i = __block.itemIndex;
63
+ let _b = __s.slots[0];
64
+ if (_b === void 0) {
65
+ let _m0, _m1, _m2, _m3, _m4, _m5, _m6, _m7;
66
+ const _root = clone(_t$4);
67
+ const _el0 = child(_root);
68
+ const _el1 = child(_el0);
69
+ _m0 = _el1;
70
+ _m1 = child(_el1);
71
+ _m2 = _el0;
72
+ _m3 = sibling(_el1, 1);
73
+ const _el4 = sibling(_el0, 1);
74
+ _m4 = _el4;
75
+ const _el5 = child(_el4);
76
+ _m5 = _el5;
77
+ const _el6 = sibling(_el5, 1);
78
+ _m6 = _el6;
79
+ _m7 = sibling(_el6, 1);
80
+ _b = bag8(__s, _root, _m0, _m1, _m2, _m3, _m4, _m5, _m6, _m7);
81
+ }
82
+ {
83
+ const __ifCondition = item.icon;
84
+ ifBlock(__s, 1, _b.a, __ifCondition, __then$2, null, _b.b, __ifCondition ? [item] : void 0);
85
+ }
86
+ ifBlock(__s, 2, _b.c, i < props.items.length - 1, __then$5, null, _b.d);
87
+ {
88
+ const __ifCondition$ = item.time != null;
89
+ ifBlock(__s, 3, _b.e, __ifCondition$, __then$7, null, _b.f, __ifCondition$ ? [item] : void 0);
90
+ }
91
+ {
92
+ const __ifCondition$2 = item.title != null;
93
+ ifBlock(__s, 4, _b.e, __ifCondition$2, __then$10, null, _b.g, __ifCondition$2 ? [item] : void 0);
94
+ }
95
+ {
96
+ const __ifCondition$3 = item.description != null;
97
+ ifBlock(__s, 5, _b.e, __ifCondition$3, __then$13, null, _b.h, __ifCondition$3 ? [item] : void 0);
98
+ }
99
+ }
100
+ var _rm$17 = [
101
+ "r",
102
+ "b",
103
+ "a"
104
+ ];
105
+ var _hs$ = /* @__PURE__ */ hookSlots(7);
106
+ var Timeline = /* @__PURE__ */ __s(function Timeline(props, __s, __extra) {
107
+ const __memoRegion = compilerMemoRegion(__s, _hs$ + 0);
108
+ const __memoCommitted = __memoRegion.auto;
109
+ let __memoCache = __memoCommitted === void 0 ? [] : __memoCommitted;
110
+ let __mapItems;
111
+ let __mapMethod;
112
+ let _b = __s.slots[0];
113
+ if (_b === void 0) {
114
+ let _m0, _m1, _m5;
115
+ const _root = clone(_t$5);
116
+ queueRefAttach(__s, _m1 = (e) => applyEscapeProps(e, props), _m0 = _root);
117
+ (__s.cleanups ??= []).push(() => _b && queueRefDetach(_b.b, _b.a));
118
+ _m5 = child(_root);
119
+ _b = bag6(__s, _root, _m0, _m1, void 0, void 0, void 0, _m5);
120
+ __s.refFields = _rm$17;
121
+ } else {
122
+ const _r = (e) => applyEscapeProps(e, props);
123
+ if (_r !== _b.b) _b.b = replaceRef(__s, _b.b, _r, _b.a);
124
+ }
125
+ _b.c = bindSignalAttribute(__s, _b.c, _b.a, "id", props.id, "b:38cab871", setPlainAttribute);
126
+ _b.d = updateFreshClassName(["vx-timeline", props.className], _b.d, _b.a);
127
+ {
128
+ const _v = props.style;
129
+ if (_b.e !== _v) {
130
+ setStyle(_b.a, _v, _b.e);
131
+ _b.e = _v;
132
+ }
133
+ }
134
+ {
135
+ const _v = (__mapItems = props.items, __mapMethod = __mapItems.map, __mapItems);
136
+ const __mapNative = mapSlot(_v, __mapMethod);
137
+ {
138
+ const __memoDep = _v;
139
+ const __memoDep$ = Icon;
140
+ const __memoDep$2 = props;
141
+ if (__s.slots[1] === void 0 || !__mapNative || Icon.__memo !== true || Icon.__compare !== void 0 || __memoCache[4] !== true || !hookMemoEqual(__memoCache[0], __memoDep) || !hookMemoEqual(__memoCache[1], __memoDep$) || !hookMemoEqual(__memoCache[2], __memoDep$2)) {
142
+ mapSlot(__s, 1, _b.a, _v, __mapMethod, __mapNative, (item, i) => createScopedElement("div", {
143
+ key: item.key,
144
+ className: "vx-timeline-item"
145
+ }, () => positionalChildren([createScopedElement("div", {
146
+ className: "vx-timeline-rail",
147
+ "aria-hidden": "true"
148
+ }, () => positionalChildren([createScopedElement("div", { className: "vx-timeline-dot" }, () => item.icon ? createScopedValue(() => createElementFromConfig("c:1003e85c", Icon, { name: item.icon })) : null), i < props.items.length - 1 ? createElement("div", { className: "vx-timeline-line" }) : null])), createScopedElement("div", { className: "vx-timeline-body" }, () => positionalChildren([
149
+ item.time != null ? createScopedElement("span", { className: "vx-timeline-time" }, () => item.time) : null,
150
+ item.title != null ? createScopedElement("span", { className: "vx-timeline-title" }, () => item.title) : null,
151
+ item.description != null ? createScopedElement("span", { className: "vx-timeline-desc" }, () => item.description) : null
152
+ ]))])), _key$0, __item$1, 18 | (Icon.__memo === true && Icon.__compare === void 0 ? 4 : 0), [props, Icon], _b.f, 1);
153
+ const _c = compilerCacheContext(__s, 1, __memoCache[3]);
154
+ if (__memoCache === __memoCommitted) __memoCache = __memoCache.slice();
155
+ __memoCache[0] = __memoDep;
156
+ __memoCache[1] = __memoDep$;
157
+ __memoCache[2] = __memoDep$2;
158
+ __memoCache[3] = _c;
159
+ __memoCache[4] = __mapNative;
160
+ } else {
161
+ const _c = compilerCacheContext(__s, 1, __memoCache[3]);
162
+ if (_c !== __memoCache[3]) {
163
+ if (__memoCache === __memoCommitted) __memoCache = __memoCache.slice();
164
+ __memoCache[3] = _c;
165
+ }
166
+ }
167
+ }
168
+ }
169
+ if (__memoCache !== __memoCommitted) __memoRegion.auto = __memoCache;
170
+ });
171
+ //#endregion
172
+ export { Timeline };
@@ -0,0 +1,146 @@
1
+ import { applyEscapeProps } from "./escape-props.web.js";
2
+ import { __s, bag14, bag6, child, clone, componentSlotVoid, delegateEvents, hookSlots, htext, mapSlot, queueRefAttach, queueRefDetach, setAriaAttribute, setEventHandler, setStyle, setStyleProperty, setText, sibling, template, useState } from "octane";
3
+ import { bindSignalAttribute, bindSignalChild, createElementFromConfig, enableSignalBindings, replaceRef, setPlainAttribute, updateFreshClassName } from "octane/internal/client";
4
+ //#region src/Tree.web.tsrx
5
+ enableSignalBindings(1, true);
6
+ delegateEvents(["click", "keydown"]);
7
+ var _t$0 = /* @__PURE__ */ template("<div class=\"vx-tree-node\" role=\"treeitem\"><div role=\"button\"><span class=\"vx-tree-caret\" aria-hidden=\"true\"> </span><span class=\"vx-tree-label\"></span></div><!></div>");
8
+ var _t$1 = /* @__PURE__ */ template("<div role=\"tree\"><!></div>");
9
+ var _hs$ = /* @__PURE__ */ hookSlots(3);
10
+ var _key$2 = (node) => node.key;
11
+ function __item$3(node, __s, __extra) {
12
+ const __block = __s.block;
13
+ const open = __extra[0];
14
+ const props = __extra[1];
15
+ const toggle = __extra[2];
16
+ componentSlotVoid(__s, 0, __block.parentNode, TreeRow, {
17
+ "node": node,
18
+ "depth": 0,
19
+ "open": open,
20
+ "toggle": toggle,
21
+ "onSelect": props.onSelect
22
+ }, __block.endMarker, void 0, true, void 0, void 0, "c:88d52115");
23
+ }
24
+ var _rm$6 = [
25
+ "r",
26
+ "b",
27
+ "a"
28
+ ];
29
+ var TreeRow = /* @__PURE__ */ __s(function TreeRow(props, __s, __extra) {
30
+ const node = props.node;
31
+ const kids = node.children ?? [];
32
+ const isOpen = props.open.has(node.key);
33
+ if (__s.block.pending && !__s.block.crossRenderUpdate) return;
34
+ let _b = __s.slots[0];
35
+ if (_b === void 0) {
36
+ let _m1, _m3, _m6, _m7, _m8, _m11;
37
+ const _root = clone(_t$0);
38
+ _m1 = _root;
39
+ const _el0 = child(_root);
40
+ _m3 = _el0;
41
+ setEventHandler(_el0, "$$click", node.disabled ? void 0 : () => kids.length ? props.toggle(node) : props.onSelect?.(node));
42
+ setEventHandler(_el0, "$$keydown", (e) => {
43
+ if (node.disabled) return;
44
+ if (e.key === "Enter" || e.key === " ") {
45
+ e.preventDefault();
46
+ if (kids.length) props.toggle(node);
47
+ else props.onSelect?.(node);
48
+ }
49
+ });
50
+ const _el1 = child(_el0);
51
+ {
52
+ const _v = kids.length ? isOpen ? "▾" : "▸" : "";
53
+ _m6 = htext(_el1, _v, 1);
54
+ _m7 = _v;
55
+ }
56
+ _m8 = sibling(_el1, 1);
57
+ _m11 = sibling(_el0, 1);
58
+ _b = bag14(__s, _root, void 0, _m1, void 0, _m3, __s, void 0, _m6, _m7, _m8, null, void 0, _m11, null, void 0);
59
+ } else {
60
+ setEventHandler(_b.d, "$$click", node.disabled ? void 0 : () => kids.length ? props.toggle(node) : props.onSelect?.(node));
61
+ setEventHandler(_b.d, "$$keydown", (e) => {
62
+ if (node.disabled) return;
63
+ if (e.key === "Enter" || e.key === " ") {
64
+ e.preventDefault();
65
+ if (kids.length) props.toggle(node);
66
+ else props.onSelect?.(node);
67
+ }
68
+ });
69
+ {
70
+ const _v = kids.length ? isOpen ? "▾" : "▸" : "";
71
+ if (_b.h !== _v) {
72
+ setText(_b.g, _v);
73
+ _b.h = _v;
74
+ }
75
+ }
76
+ }
77
+ _b.a = bindSignalAttribute(__s, _b.a, _b.b, "aria-expanded", kids.length ? isOpen : void 0, "b:06a2728a", setAriaAttribute);
78
+ _b.c = updateFreshClassName(["vx-tree-row", node.disabled ? "vx-tree-row--disabled" : void 0], _b.c, _b.d);
79
+ {
80
+ const _v = props.depth * 16;
81
+ if (_b.e !== _v) {
82
+ setStyleProperty(_b.d, "paddingLeft", _v, "", _b.e);
83
+ _b.e = _v;
84
+ }
85
+ }
86
+ _b.f = bindSignalAttribute(__s, _b.f, _b.d, "tabindex", node.disabled ? void 0 : 0, "b:a11a3438", setPlainAttribute);
87
+ _b.o = bindSignalChild(__s, _b.o, 1, _b.i, node.label ?? node.key, "b:34dbe901", null, void 0, void 0, void 0, true);
88
+ _b.p = bindSignalChild(__s, _b.p, 2, _b.b, isOpen && kids.map((kid) => createElementFromConfig("c:7b3274a7", TreeRow, {
89
+ key: kid.key,
90
+ node: kid,
91
+ depth: props.depth + 1,
92
+ open: props.open,
93
+ toggle: props.toggle,
94
+ onSelect: props.onSelect
95
+ })), "b:2e1f6af7", _b.l, true, void 0, void 0, void 0);
96
+ });
97
+ var Tree = /* @__PURE__ */ __s(function Tree(props, __s, __extra) {
98
+ let __mapItems;
99
+ let __mapMethod;
100
+ const [open, setOpen] = useState(new Set(props.defaultExpanded ?? []), _hs$ + 0);
101
+ const toggle = (node) => {
102
+ const next = new Set(open);
103
+ const willOpen = !next.has(node.key);
104
+ if (willOpen) next.add(node.key);
105
+ else next.delete(node.key);
106
+ setOpen(next);
107
+ props.onToggle?.(node.key, willOpen);
108
+ };
109
+ if (__s.block.pending && !__s.block.crossRenderUpdate) return;
110
+ let _b = __s.slots[0];
111
+ if (_b === void 0) {
112
+ let _m0, _m1, _m5;
113
+ const _root = clone(_t$1);
114
+ queueRefAttach(__s, _m1 = (e) => applyEscapeProps(e, props), _m0 = _root);
115
+ (__s.cleanups ??= []).push(() => _b && queueRefDetach(_b.b, _b.a));
116
+ _m5 = child(_root);
117
+ _b = bag6(__s, _root, _m0, _m1, void 0, void 0, void 0, _m5);
118
+ __s.refFields = _rm$6;
119
+ } else {
120
+ const _r = (e) => applyEscapeProps(e, props);
121
+ if (_r !== _b.b) _b.b = replaceRef(__s, _b.b, _r, _b.a);
122
+ }
123
+ _b.c = bindSignalAttribute(__s, _b.c, _b.a, "id", props.id, "b:ebb0f180", setPlainAttribute);
124
+ _b.d = updateFreshClassName(["vx-tree", props.className], _b.d, _b.a);
125
+ {
126
+ const _v = props.style;
127
+ if (_b.e !== _v) {
128
+ setStyle(_b.a, _v, _b.e);
129
+ _b.e = _v;
130
+ }
131
+ }
132
+ mapSlot(__s, 1, _b.a, (__mapItems = props.nodes, __mapMethod = __mapItems.map, __mapItems), __mapMethod, (node) => createElementFromConfig("c:3f4e10dc", TreeRow, {
133
+ key: node.key,
134
+ node,
135
+ depth: 0,
136
+ open,
137
+ toggle,
138
+ onSelect: props.onSelect
139
+ }), _key$2, __item$3, 10, [
140
+ open,
141
+ props,
142
+ toggle
143
+ ], _b.f, 1);
144
+ });
145
+ //#endregion
146
+ export { Tree };
@@ -0,0 +1,116 @@
1
+ import { applyEscapeProps } from "./escape-props.web.js";
2
+ import { Avatar } from "./Avatar.web.tsrx.js";
3
+ import { __s, bag11, bag3, child, clone, componentSlotVoid, delegateEvents, ifBlock, markWarm, queueRefAttach, queueRefDetach, registerWarmPlan, setEventHandler, setStyle, sibling, template, warmChild } from "octane";
4
+ import { bindSignalAttribute, bindSignalChild, enableSignalBindings, replaceRef, setPlainAttribute, updateFreshClassName } from "octane/internal/client";
5
+ //#region src/User.web.tsrx
6
+ enableSignalBindings(1, true);
7
+ delegateEvents(["click", "keydown"]);
8
+ var _t$0 = /* @__PURE__ */ template("<span class=\"vx-user-name\"></span>");
9
+ var _t$1 = /* @__PURE__ */ template("<span class=\"vx-user-desc\"></span>");
10
+ var _t$2 = /* @__PURE__ */ template("<div><!><div class=\"vx-user-body\"><!><!></div></div>");
11
+ function __then$1(__props, __s, __extra) {
12
+ const props = __extra[0];
13
+ let _b = __s.slots[0];
14
+ if (_b === void 0) {
15
+ let _m0;
16
+ const _root = clone(_t$0);
17
+ _m0 = _root;
18
+ _b = bag3(__s, _root, _m0, null, void 0);
19
+ }
20
+ _b.d = bindSignalChild(__s, _b.d, 1, _b.a, props.name, "b:8225cc20", null, void 0, void 0, void 0, true);
21
+ }
22
+ function __then$4(__props, __s, __extra) {
23
+ const props = __extra[0];
24
+ let _b = __s.slots[0];
25
+ if (_b === void 0) {
26
+ let _m0;
27
+ const _root = clone(_t$1);
28
+ _m0 = _root;
29
+ _b = bag3(__s, _root, _m0, null, void 0);
30
+ }
31
+ _b.d = bindSignalChild(__s, _b.d, 1, _b.a, props.description, "b:3b29757d", null, void 0, void 0, void 0, true);
32
+ }
33
+ var _rm$7 = [
34
+ "r",
35
+ "b",
36
+ "a"
37
+ ];
38
+ var User = /* @__PURE__ */ __s(/* @__PURE__ */ markWarm(function User(props, __s, __extra) {
39
+ const __warmPlan = User.__warm;
40
+ if (typeof __warmPlan === "function") registerWarmPlan(__warmPlan, props);
41
+ else registerWarmPlan(() => {
42
+ warmChild(Avatar, {
43
+ src: props.src,
44
+ fallback: props.fallback,
45
+ alt: props.name,
46
+ size: props.size
47
+ });
48
+ }, void 0);
49
+ let _b = __s.slots[0];
50
+ if (_b === void 0) {
51
+ let _m0, _m1, _m7, _m8, _m9, _m10;
52
+ const _root = clone(_t$2);
53
+ queueRefAttach(__s, _m1 = (e) => applyEscapeProps(e, props), _m0 = _root);
54
+ (__s.cleanups ??= []).push(() => _b && queueRefDetach(_b.b, _b.a));
55
+ setEventHandler(_root, "$$click", props.onSelect);
56
+ setEventHandler(_root, "$$keydown", (e) => {
57
+ if (props.onSelect && e.key === "Enter") props.onSelect();
58
+ });
59
+ const _el0 = sibling(child(_root), 1);
60
+ _m7 = _el0;
61
+ const _el1 = child(_el0);
62
+ _m8 = _el1;
63
+ _m9 = sibling(_el1, 1);
64
+ _m10 = child(_root);
65
+ _b = bag11(__s, _root, _m0, _m1, void 0, void 0, void 0, void 0, void 0, _m7, _m8, _m9, _m10);
66
+ __s.refFields = _rm$7;
67
+ } else {
68
+ {
69
+ const _r = (e) => applyEscapeProps(e, props);
70
+ if (_r !== _b.b) _b.b = replaceRef(__s, _b.b, _r, _b.a);
71
+ }
72
+ setEventHandler(_b.a, "$$click", props.onSelect);
73
+ setEventHandler(_b.a, "$$keydown", (e) => {
74
+ if (props.onSelect && e.key === "Enter") props.onSelect();
75
+ });
76
+ }
77
+ _b.c = bindSignalAttribute(__s, _b.c, _b.a, "id", props.id, "b:b820184a", setPlainAttribute);
78
+ _b.d = updateFreshClassName([
79
+ "vx-user",
80
+ props.onSelect ? "vx-user--pressable" : void 0,
81
+ props.className
82
+ ], _b.d, _b.a);
83
+ {
84
+ const _v = props.style;
85
+ if (_b.e !== _v) {
86
+ setStyle(_b.a, _v, _b.e);
87
+ _b.e = _v;
88
+ }
89
+ }
90
+ _b.f = bindSignalAttribute(__s, _b.f, _b.a, "role", props.onSelect ? "button" : void 0, "b:6fb023ee", setPlainAttribute);
91
+ _b.g = bindSignalAttribute(__s, _b.g, _b.a, "tabindex", props.onSelect ? 0 : void 0, "b:49a4bb1f", setPlainAttribute);
92
+ componentSlotVoid(__s, 1, _b.a, Avatar, {
93
+ "src": props.src,
94
+ "fallback": props.fallback,
95
+ "alt": props.name,
96
+ "size": props.size
97
+ }, _b.k, void 0, 2, void 0, void 0, "c:b5b3da20");
98
+ {
99
+ const __ifCondition = props.name != null;
100
+ ifBlock(__s, 2, _b.h, __ifCondition, __then$1, null, _b.i, __ifCondition ? [props] : void 0);
101
+ }
102
+ {
103
+ const __ifCondition$ = props.description != null;
104
+ ifBlock(__s, 3, _b.h, __ifCondition$, __then$4, null, _b.j, __ifCondition$ ? [props] : void 0);
105
+ }
106
+ }, (__wp) => {
107
+ const props = __wp;
108
+ warmChild(Avatar, {
109
+ src: props.src,
110
+ fallback: props.fallback,
111
+ alt: props.name,
112
+ size: props.size
113
+ });
114
+ }));
115
+ //#endregion
116
+ export { User };