@hanzogui/demos 3.0.6 → 4.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (352) hide show
  1. package/dist/cjs/AccordionDemo.cjs +17 -15
  2. package/dist/cjs/AccordionDemo.native.js +17 -15
  3. package/dist/cjs/AccordionDemo.native.js.map +1 -1
  4. package/dist/cjs/AddThemeDemo.cjs +31 -28
  5. package/dist/cjs/AddThemeDemo.native.js +33 -30
  6. package/dist/cjs/AddThemeDemo.native.js.map +1 -1
  7. package/dist/cjs/AlertDialogDemo.cjs +20 -18
  8. package/dist/cjs/AlertDialogDemo.native.js +20 -18
  9. package/dist/cjs/AlertDialogDemo.native.js.map +1 -1
  10. package/dist/cjs/AnimationsDelayDemo.cjs +40 -35
  11. package/dist/cjs/AnimationsDelayDemo.native.js +41 -36
  12. package/dist/cjs/AnimationsDelayDemo.native.js.map +1 -1
  13. package/dist/cjs/AnimationsDemo.cjs +26 -22
  14. package/dist/cjs/AnimationsDemo.native.js +28 -27
  15. package/dist/cjs/AnimationsDemo.native.js.map +1 -1
  16. package/dist/cjs/AnimationsEnterDemo.cjs +39 -34
  17. package/dist/cjs/AnimationsEnterDemo.native.js +38 -34
  18. package/dist/cjs/AnimationsEnterDemo.native.js.map +1 -1
  19. package/dist/cjs/AnimationsHoverDemo.cjs +15 -13
  20. package/dist/cjs/AnimationsHoverDemo.native.js +15 -13
  21. package/dist/cjs/AnimationsHoverDemo.native.js.map +1 -1
  22. package/dist/cjs/AnimationsPresenceDemo.cjs +66 -64
  23. package/dist/cjs/AnimationsPresenceDemo.native.js +69 -67
  24. package/dist/cjs/AnimationsPresenceDemo.native.js.map +1 -1
  25. package/dist/cjs/AnimationsTimingDemo.cjs +15 -13
  26. package/dist/cjs/AnimationsTimingDemo.native.js +15 -13
  27. package/dist/cjs/AnimationsTimingDemo.native.js.map +1 -1
  28. package/dist/cjs/AvatarDemo.cjs +16 -14
  29. package/dist/cjs/AvatarDemo.native.js +16 -14
  30. package/dist/cjs/AvatarDemo.native.js.map +1 -1
  31. package/dist/cjs/BoxShadowTokenDemo.cjs +14 -12
  32. package/dist/cjs/BoxShadowTokenDemo.native.js +21 -19
  33. package/dist/cjs/BoxShadowTokenDemo.native.js.map +1 -1
  34. package/dist/cjs/BuildAButtonDemo.cjs +20 -18
  35. package/dist/cjs/BuildAButtonDemo.native.js +29 -27
  36. package/dist/cjs/BuildAButtonDemo.native.js.map +1 -1
  37. package/dist/cjs/ButtonDemo.cjs +17 -15
  38. package/dist/cjs/ButtonDemo.native.js +17 -15
  39. package/dist/cjs/ButtonDemo.native.js.map +1 -1
  40. package/dist/cjs/CardDemo.cjs +15 -13
  41. package/dist/cjs/CardDemo.native.js +15 -13
  42. package/dist/cjs/CardDemo.native.js.map +1 -1
  43. package/dist/cjs/CheckboxDemo.cjs +17 -15
  44. package/dist/cjs/CheckboxDemo.native.js +23 -21
  45. package/dist/cjs/CheckboxDemo.native.js.map +1 -1
  46. package/dist/cjs/CheckboxHeadlessDemo.cjs +38 -36
  47. package/dist/cjs/CheckboxHeadlessDemo.native.js +38 -36
  48. package/dist/cjs/CheckboxHeadlessDemo.native.js.map +1 -1
  49. package/dist/cjs/CheckboxUnstyledDemo.cjs +41 -39
  50. package/dist/cjs/CheckboxUnstyledDemo.native.js +42 -40
  51. package/dist/cjs/CheckboxUnstyledDemo.native.js.map +1 -1
  52. package/dist/cjs/ColorsDemo.cjs +62 -56
  53. package/dist/cjs/ColorsDemo.native.js +32 -30
  54. package/dist/cjs/ColorsDemo.native.js.map +1 -1
  55. package/dist/cjs/ContextMenuDemo.cjs +49 -45
  56. package/dist/cjs/ContextMenuDemo.native.js +37 -35
  57. package/dist/cjs/ContextMenuDemo.native.js.map +1 -1
  58. package/dist/cjs/DialogDemo.cjs +32 -30
  59. package/dist/cjs/DialogDemo.native.js +34 -32
  60. package/dist/cjs/DialogDemo.native.js.map +1 -1
  61. package/dist/cjs/FormsDemo.cjs +31 -28
  62. package/dist/cjs/FormsDemo.native.js +31 -28
  63. package/dist/cjs/FormsDemo.native.js.map +1 -1
  64. package/dist/cjs/Grid.cjs +51 -42
  65. package/dist/cjs/Grid.native.js +44 -37
  66. package/dist/cjs/Grid.native.js.map +1 -1
  67. package/dist/cjs/GroupDemo.cjs +15 -13
  68. package/dist/cjs/GroupDemo.native.js +15 -13
  69. package/dist/cjs/GroupDemo.native.js.map +1 -1
  70. package/dist/cjs/HeadingsDemo.cjs +14 -12
  71. package/dist/cjs/HeadingsDemo.native.js +14 -12
  72. package/dist/cjs/HeadingsDemo.native.js.map +1 -1
  73. package/dist/cjs/ImageDemo.cjs +14 -12
  74. package/dist/cjs/ImageDemo.native.js +14 -12
  75. package/dist/cjs/ImageDemo.native.js.map +1 -1
  76. package/dist/cjs/InputsDemo.cjs +14 -12
  77. package/dist/cjs/InputsDemo.native.js +14 -12
  78. package/dist/cjs/InputsDemo.native.js.map +1 -1
  79. package/dist/cjs/LabelDemo.cjs +14 -12
  80. package/dist/cjs/LabelDemo.native.js +14 -12
  81. package/dist/cjs/LabelDemo.native.js.map +1 -1
  82. package/dist/cjs/LinearGradientDemo.cjs +15 -13
  83. package/dist/cjs/LinearGradientDemo.native.js +15 -13
  84. package/dist/cjs/LinearGradientDemo.native.js.map +1 -1
  85. package/dist/cjs/ListItemDemo.cjs +15 -13
  86. package/dist/cjs/ListItemDemo.native.js +15 -13
  87. package/dist/cjs/ListItemDemo.native.js.map +1 -1
  88. package/dist/cjs/LucideIconsDemo.cjs +54 -52
  89. package/dist/cjs/LucideIconsDemo.native.js +69 -67
  90. package/dist/cjs/LucideIconsDemo.native.js.map +1 -1
  91. package/dist/cjs/MenuDemo.cjs +38 -36
  92. package/dist/cjs/MenuDemo.native.js +38 -36
  93. package/dist/cjs/MenuDemo.native.js.map +1 -1
  94. package/dist/cjs/NewInputsDemo.cjs +15 -13
  95. package/dist/cjs/NewInputsDemo.native.js +15 -13
  96. package/dist/cjs/NewInputsDemo.native.js.map +1 -1
  97. package/dist/cjs/PopoverDemo.cjs +25 -23
  98. package/dist/cjs/PopoverDemo.native.js +25 -23
  99. package/dist/cjs/PopoverDemo.native.js.map +1 -1
  100. package/dist/cjs/ProgressDemo.cjs +35 -31
  101. package/dist/cjs/ProgressDemo.native.js +35 -31
  102. package/dist/cjs/ProgressDemo.native.js.map +1 -1
  103. package/dist/cjs/RadioGroupDemo.cjs +14 -12
  104. package/dist/cjs/RadioGroupDemo.native.js +14 -12
  105. package/dist/cjs/RadioGroupDemo.native.js.map +1 -1
  106. package/dist/cjs/RadioGroupHeadlessDemo.cjs +68 -63
  107. package/dist/cjs/RadioGroupHeadlessDemo.native.js +60 -60
  108. package/dist/cjs/RadioGroupHeadlessDemo.native.js.map +1 -1
  109. package/dist/cjs/RadioGroupUnstyledDemo.cjs +88 -86
  110. package/dist/cjs/RadioGroupUnstyledDemo.native.js +88 -86
  111. package/dist/cjs/RadioGroupUnstyledDemo.native.js.map +1 -1
  112. package/dist/cjs/ReplaceThemeDemo.cjs +38 -33
  113. package/dist/cjs/ReplaceThemeDemo.native.js +39 -34
  114. package/dist/cjs/ReplaceThemeDemo.native.js.map +1 -1
  115. package/dist/cjs/ScrollViewDemo.cjs +14 -12
  116. package/dist/cjs/ScrollViewDemo.native.js +14 -12
  117. package/dist/cjs/ScrollViewDemo.native.js.map +1 -1
  118. package/dist/cjs/SelectDemo.cjs +49 -45
  119. package/dist/cjs/SelectDemo.native.js +38 -36
  120. package/dist/cjs/SelectDemo.native.js.map +1 -1
  121. package/dist/cjs/SeparatorDemo.cjs +16 -14
  122. package/dist/cjs/SeparatorDemo.native.js +16 -14
  123. package/dist/cjs/SeparatorDemo.native.js.map +1 -1
  124. package/dist/cjs/ShapesDemo.cjs +14 -12
  125. package/dist/cjs/ShapesDemo.native.js +14 -12
  126. package/dist/cjs/ShapesDemo.native.js.map +1 -1
  127. package/dist/cjs/SheetDemo.cjs +124 -118
  128. package/dist/cjs/SheetDemo.native.js +148 -146
  129. package/dist/cjs/SheetDemo.native.js.map +1 -1
  130. package/dist/cjs/SliderDemo.cjs +14 -12
  131. package/dist/cjs/SliderDemo.native.js +14 -12
  132. package/dist/cjs/SliderDemo.native.js.map +1 -1
  133. package/dist/cjs/SpinnerDemo.cjs +14 -12
  134. package/dist/cjs/SpinnerDemo.native.js +14 -12
  135. package/dist/cjs/SpinnerDemo.native.js.map +1 -1
  136. package/dist/cjs/StacksDemo.cjs +17 -15
  137. package/dist/cjs/StacksDemo.native.js +29 -16
  138. package/dist/cjs/StacksDemo.native.js.map +1 -1
  139. package/dist/cjs/SwitchDemo.cjs +18 -16
  140. package/dist/cjs/SwitchDemo.native.js +20 -18
  141. package/dist/cjs/SwitchDemo.native.js.map +1 -1
  142. package/dist/cjs/SwitchHeadlessDemo.cjs +38 -36
  143. package/dist/cjs/SwitchHeadlessDemo.native.js +40 -38
  144. package/dist/cjs/SwitchHeadlessDemo.native.js.map +1 -1
  145. package/dist/cjs/SwitchUnstyledDemo.cjs +50 -48
  146. package/dist/cjs/SwitchUnstyledDemo.native.js +51 -49
  147. package/dist/cjs/SwitchUnstyledDemo.native.js.map +1 -1
  148. package/dist/cjs/TabsAdvancedDemo.cjs +315 -293
  149. package/dist/cjs/TabsAdvancedDemo.native.js +364 -348
  150. package/dist/cjs/TabsAdvancedDemo.native.js.map +1 -1
  151. package/dist/cjs/TabsDemo.cjs +105 -99
  152. package/dist/cjs/TabsDemo.native.js +162 -160
  153. package/dist/cjs/TabsDemo.native.js.map +1 -1
  154. package/dist/cjs/TabsHeadlessDemo.cjs +68 -64
  155. package/dist/cjs/TabsHeadlessDemo.native.js +94 -81
  156. package/dist/cjs/TabsHeadlessDemo.native.js.map +1 -1
  157. package/dist/cjs/TextDemo.cjs +14 -12
  158. package/dist/cjs/TextDemo.native.js +14 -12
  159. package/dist/cjs/TextDemo.native.js.map +1 -1
  160. package/dist/cjs/ThemeBuilderDemo.cjs +15 -13
  161. package/dist/cjs/ThemeBuilderDemo.native.js +15 -13
  162. package/dist/cjs/ThemeBuilderDemo.native.js.map +1 -1
  163. package/dist/cjs/ThemeInverseDemo.cjs +14 -12
  164. package/dist/cjs/ThemeInverseDemo.native.js +14 -12
  165. package/dist/cjs/ThemeInverseDemo.native.js.map +1 -1
  166. package/dist/cjs/ToastDemo.cjs +115 -110
  167. package/dist/cjs/ToastDemo.native.js +144 -141
  168. package/dist/cjs/ToastDemo.native.js.map +1 -1
  169. package/dist/cjs/ToastDuplicateDemo.cjs +29 -27
  170. package/dist/cjs/ToastDuplicateDemo.native.js +74 -72
  171. package/dist/cjs/ToastDuplicateDemo.native.js.map +1 -1
  172. package/dist/cjs/ToggleGroupDemo.cjs +18 -16
  173. package/dist/cjs/ToggleGroupDemo.native.js +18 -16
  174. package/dist/cjs/ToggleGroupDemo.native.js.map +1 -1
  175. package/dist/cjs/TokensDemo.cjs +80 -74
  176. package/dist/cjs/TokensDemo.native.js +58 -55
  177. package/dist/cjs/TokensDemo.native.js.map +1 -1
  178. package/dist/cjs/TooltipDemo.cjs +18 -16
  179. package/dist/cjs/TooltipDemo.native.js +18 -16
  180. package/dist/cjs/TooltipDemo.native.js.map +1 -1
  181. package/dist/cjs/UpdateThemeDemo.cjs +37 -33
  182. package/dist/cjs/UpdateThemeDemo.native.js +38 -34
  183. package/dist/cjs/UpdateThemeDemo.native.js.map +1 -1
  184. package/dist/cjs/WebNativeImageDemo.cjs +14 -12
  185. package/dist/cjs/WebNativeImageDemo.native.js +14 -12
  186. package/dist/cjs/WebNativeImageDemo.native.js.map +1 -1
  187. package/dist/cjs/gui.config.cjs +14 -12
  188. package/dist/cjs/gui.config.native.js +16 -14
  189. package/dist/cjs/gui.config.native.js.map +1 -1
  190. package/dist/cjs/index.cjs +7 -5
  191. package/dist/cjs/index.native.js +7 -5
  192. package/dist/cjs/index.native.js.map +1 -1
  193. package/dist/cjs/useOnIntersecting.cjs +44 -28
  194. package/dist/cjs/useOnIntersecting.native.js +84 -70
  195. package/dist/cjs/useOnIntersecting.native.js.map +1 -1
  196. package/dist/esm/AccordionDemo.mjs +2 -2
  197. package/dist/esm/AccordionDemo.native.js +2 -2
  198. package/dist/esm/AccordionDemo.native.js.map +1 -1
  199. package/dist/esm/AddThemeDemo.mjs +3 -2
  200. package/dist/esm/AddThemeDemo.mjs.map +1 -1
  201. package/dist/esm/AddThemeDemo.native.js +5 -4
  202. package/dist/esm/AddThemeDemo.native.js.map +1 -1
  203. package/dist/esm/AlertDialogDemo.mjs +6 -6
  204. package/dist/esm/AlertDialogDemo.native.js +6 -6
  205. package/dist/esm/AlertDialogDemo.native.js.map +1 -1
  206. package/dist/esm/AnimationsDelayDemo.mjs +12 -9
  207. package/dist/esm/AnimationsDelayDemo.mjs.map +1 -1
  208. package/dist/esm/AnimationsDelayDemo.native.js +12 -9
  209. package/dist/esm/AnimationsDelayDemo.native.js.map +1 -1
  210. package/dist/esm/AnimationsDemo.mjs +10 -8
  211. package/dist/esm/AnimationsDemo.mjs.map +1 -1
  212. package/dist/esm/AnimationsDemo.native.js +12 -13
  213. package/dist/esm/AnimationsDemo.native.js.map +1 -1
  214. package/dist/esm/AnimationsEnterDemo.mjs +10 -7
  215. package/dist/esm/AnimationsEnterDemo.mjs.map +1 -1
  216. package/dist/esm/AnimationsEnterDemo.native.js +9 -7
  217. package/dist/esm/AnimationsEnterDemo.native.js.map +1 -1
  218. package/dist/esm/AnimationsPresenceDemo.mjs +34 -34
  219. package/dist/esm/AnimationsPresenceDemo.mjs.map +1 -1
  220. package/dist/esm/AnimationsPresenceDemo.native.js +36 -36
  221. package/dist/esm/AnimationsPresenceDemo.native.js.map +1 -1
  222. package/dist/esm/AvatarDemo.mjs +2 -2
  223. package/dist/esm/AvatarDemo.native.js +2 -2
  224. package/dist/esm/BuildAButtonDemo.mjs +5 -5
  225. package/dist/esm/BuildAButtonDemo.mjs.map +1 -1
  226. package/dist/esm/BuildAButtonDemo.native.js +5 -5
  227. package/dist/esm/BuildAButtonDemo.native.js.map +1 -1
  228. package/dist/esm/ButtonDemo.mjs +1 -1
  229. package/dist/esm/ButtonDemo.native.js +1 -1
  230. package/dist/esm/CardDemo.mjs +1 -1
  231. package/dist/esm/CardDemo.native.js +1 -1
  232. package/dist/esm/CheckboxDemo.mjs +2 -2
  233. package/dist/esm/CheckboxDemo.native.js +8 -8
  234. package/dist/esm/CheckboxHeadlessDemo.mjs +8 -8
  235. package/dist/esm/CheckboxHeadlessDemo.mjs.map +1 -1
  236. package/dist/esm/CheckboxHeadlessDemo.native.js +8 -8
  237. package/dist/esm/CheckboxHeadlessDemo.native.js.map +1 -1
  238. package/dist/esm/CheckboxUnstyledDemo.mjs +24 -24
  239. package/dist/esm/CheckboxUnstyledDemo.mjs.map +1 -1
  240. package/dist/esm/CheckboxUnstyledDemo.native.js +24 -24
  241. package/dist/esm/CheckboxUnstyledDemo.native.js.map +1 -1
  242. package/dist/esm/ColorsDemo.mjs +47 -43
  243. package/dist/esm/ColorsDemo.mjs.map +1 -1
  244. package/dist/esm/ColorsDemo.native.js +17 -17
  245. package/dist/esm/ColorsDemo.native.js.map +1 -1
  246. package/dist/esm/ContextMenuDemo.mjs +20 -18
  247. package/dist/esm/ContextMenuDemo.mjs.map +1 -1
  248. package/dist/esm/ContextMenuDemo.native.js +8 -8
  249. package/dist/esm/ContextMenuDemo.native.js.map +1 -1
  250. package/dist/esm/DialogDemo.mjs +15 -15
  251. package/dist/esm/DialogDemo.mjs.map +1 -1
  252. package/dist/esm/DialogDemo.native.js +17 -17
  253. package/dist/esm/DialogDemo.native.js.map +1 -1
  254. package/dist/esm/FormsDemo.mjs +4 -3
  255. package/dist/esm/FormsDemo.mjs.map +1 -1
  256. package/dist/esm/FormsDemo.native.js +4 -3
  257. package/dist/esm/FormsDemo.native.js.map +1 -1
  258. package/dist/esm/Grid.mjs +23 -16
  259. package/dist/esm/Grid.mjs.map +1 -1
  260. package/dist/esm/Grid.native.js +16 -11
  261. package/dist/esm/Grid.native.js.map +1 -1
  262. package/dist/esm/LucideIconsDemo.mjs +24 -24
  263. package/dist/esm/LucideIconsDemo.mjs.map +1 -1
  264. package/dist/esm/LucideIconsDemo.native.js +31 -31
  265. package/dist/esm/LucideIconsDemo.native.js.map +1 -1
  266. package/dist/esm/MenuDemo.mjs +9 -9
  267. package/dist/esm/MenuDemo.mjs.map +1 -1
  268. package/dist/esm/MenuDemo.native.js +9 -9
  269. package/dist/esm/MenuDemo.native.js.map +1 -1
  270. package/dist/esm/PopoverDemo.mjs +9 -9
  271. package/dist/esm/PopoverDemo.mjs.map +1 -1
  272. package/dist/esm/PopoverDemo.native.js +9 -9
  273. package/dist/esm/PopoverDemo.native.js.map +1 -1
  274. package/dist/esm/ProgressDemo.mjs +7 -5
  275. package/dist/esm/ProgressDemo.mjs.map +1 -1
  276. package/dist/esm/ProgressDemo.native.js +7 -5
  277. package/dist/esm/ProgressDemo.native.js.map +1 -1
  278. package/dist/esm/RadioGroupHeadlessDemo.mjs +38 -35
  279. package/dist/esm/RadioGroupHeadlessDemo.mjs.map +1 -1
  280. package/dist/esm/RadioGroupHeadlessDemo.native.js +30 -32
  281. package/dist/esm/RadioGroupHeadlessDemo.native.js.map +1 -1
  282. package/dist/esm/RadioGroupUnstyledDemo.mjs +73 -73
  283. package/dist/esm/RadioGroupUnstyledDemo.mjs.map +1 -1
  284. package/dist/esm/RadioGroupUnstyledDemo.native.js +73 -73
  285. package/dist/esm/RadioGroupUnstyledDemo.native.js.map +1 -1
  286. package/dist/esm/ReplaceThemeDemo.mjs +10 -7
  287. package/dist/esm/ReplaceThemeDemo.mjs.map +1 -1
  288. package/dist/esm/ReplaceThemeDemo.native.js +11 -8
  289. package/dist/esm/ReplaceThemeDemo.native.js.map +1 -1
  290. package/dist/esm/SelectDemo.mjs +20 -18
  291. package/dist/esm/SelectDemo.mjs.map +1 -1
  292. package/dist/esm/SelectDemo.native.js +9 -9
  293. package/dist/esm/SelectDemo.native.js.map +1 -1
  294. package/dist/esm/SeparatorDemo.mjs +2 -2
  295. package/dist/esm/SeparatorDemo.native.js +2 -2
  296. package/dist/esm/SheetDemo.mjs +95 -91
  297. package/dist/esm/SheetDemo.mjs.map +1 -1
  298. package/dist/esm/SheetDemo.native.js +119 -119
  299. package/dist/esm/SheetDemo.native.js.map +1 -1
  300. package/dist/esm/StacksDemo.mjs +3 -3
  301. package/dist/esm/StacksDemo.native.js +4 -3
  302. package/dist/esm/StacksDemo.native.js.map +1 -1
  303. package/dist/esm/SwitchDemo.mjs +4 -4
  304. package/dist/esm/SwitchDemo.native.js +6 -6
  305. package/dist/esm/SwitchHeadlessDemo.mjs +9 -9
  306. package/dist/esm/SwitchHeadlessDemo.mjs.map +1 -1
  307. package/dist/esm/SwitchHeadlessDemo.native.js +11 -11
  308. package/dist/esm/SwitchHeadlessDemo.native.js.map +1 -1
  309. package/dist/esm/SwitchUnstyledDemo.mjs +34 -34
  310. package/dist/esm/SwitchUnstyledDemo.mjs.map +1 -1
  311. package/dist/esm/SwitchUnstyledDemo.native.js +34 -34
  312. package/dist/esm/SwitchUnstyledDemo.native.js.map +1 -1
  313. package/dist/esm/TabsAdvancedDemo.mjs +288 -268
  314. package/dist/esm/TabsAdvancedDemo.mjs.map +1 -1
  315. package/dist/esm/TabsAdvancedDemo.native.js +337 -323
  316. package/dist/esm/TabsAdvancedDemo.native.js.map +1 -1
  317. package/dist/esm/TabsDemo.mjs +77 -73
  318. package/dist/esm/TabsDemo.mjs.map +1 -1
  319. package/dist/esm/TabsDemo.native.js +135 -135
  320. package/dist/esm/TabsDemo.native.js.map +1 -1
  321. package/dist/esm/TabsHeadlessDemo.mjs +48 -46
  322. package/dist/esm/TabsHeadlessDemo.mjs.map +1 -1
  323. package/dist/esm/TabsHeadlessDemo.native.js +67 -67
  324. package/dist/esm/TabsHeadlessDemo.native.js.map +1 -1
  325. package/dist/esm/ThemeBuilderDemo.mjs +1 -1
  326. package/dist/esm/ThemeBuilderDemo.native.js +1 -1
  327. package/dist/esm/ToastDemo.mjs +86 -83
  328. package/dist/esm/ToastDemo.mjs.map +1 -1
  329. package/dist/esm/ToastDemo.native.js +115 -114
  330. package/dist/esm/ToastDemo.native.js.map +1 -1
  331. package/dist/esm/ToggleGroupDemo.mjs +3 -3
  332. package/dist/esm/ToggleGroupDemo.mjs.map +1 -1
  333. package/dist/esm/ToggleGroupDemo.native.js +3 -3
  334. package/dist/esm/ToggleGroupDemo.native.js.map +1 -1
  335. package/dist/esm/TokensDemo.mjs +52 -48
  336. package/dist/esm/TokensDemo.mjs.map +1 -1
  337. package/dist/esm/TokensDemo.native.js +24 -23
  338. package/dist/esm/TokensDemo.native.js.map +1 -1
  339. package/dist/esm/TooltipDemo.mjs +3 -3
  340. package/dist/esm/TooltipDemo.native.js +3 -3
  341. package/dist/esm/UpdateThemeDemo.mjs +8 -6
  342. package/dist/esm/UpdateThemeDemo.mjs.map +1 -1
  343. package/dist/esm/UpdateThemeDemo.native.js +9 -7
  344. package/dist/esm/UpdateThemeDemo.native.js.map +1 -1
  345. package/dist/esm/gui.config.native.js +2 -2
  346. package/dist/esm/gui.config.native.js.map +1 -1
  347. package/dist/esm/useOnIntersecting.mjs +30 -16
  348. package/dist/esm/useOnIntersecting.mjs.map +1 -1
  349. package/dist/esm/useOnIntersecting.native.js +70 -58
  350. package/dist/esm/useOnIntersecting.native.js.map +1 -1
  351. package/package.json +11 -11
  352. package/src/MenuDemo.tsx +1 -1
@@ -4,385 +4,401 @@ var __create = Object.create;
4
4
  var __defProp = Object.defineProperty;
5
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
7
- var __getProtoOf = Object.getPrototypeOf,
8
- __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __getProtoOf = Object.getPrototypeOf;
8
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
9
  var __export = (target, all) => {
10
- for (var name in all) __defProp(target, name, {
11
- get: all[name],
12
- enumerable: !0
13
- });
14
- },
15
- __copyProps = (to, from, except, desc) => {
16
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
10
+ for (var name in all) __defProp(target, name, {
11
+ get: all[name],
12
+ enumerable: true
13
+ });
14
+ };
15
+ var __copyProps = (to, from, except, desc) => {
16
+ if (from && typeof from === "object" || typeof from === "function") {
17
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
17
18
  get: () => from[key],
18
19
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
20
  });
20
- return to;
21
- };
21
+ }
22
+ return to;
23
+ };
22
24
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
23
- // If the importer is in node compatibility mode or this is not an ESM
24
- // file that has been converted to a CommonJS file using a Babel-
25
- // compatible transform (i.e. "__esModule" has not been set), then set
26
- // "default" to the CommonJS "module.exports" for node compatibility.
27
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
28
- value: mod,
29
- enumerable: !0
30
- }) : target, mod)),
31
- __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
32
- value: !0
33
- }), mod);
25
+ // If the importer is in node compatibility mode or this is not an ESM
26
+ // file that has been converted to a CommonJS file using a Babel-
27
+ // compatible transform (i.e. "__esModule" has not been set), then set
28
+ // "default" to the CommonJS "module.exports" for node compatibility.
29
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
30
+ value: mod,
31
+ enumerable: true
32
+ }) : target, mod));
33
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
34
+ value: true
35
+ }), mod);
34
36
  var TabsAdvancedDemo_exports = {};
35
37
  __export(TabsAdvancedDemo_exports, {
36
38
  TabsAdvancedDemo: () => TabsAdvancedDemo
37
39
  });
38
40
  module.exports = __toCommonJS(TabsAdvancedDemo_exports);
39
- var import_jsx_runtime = require("react/jsx-runtime"),
40
- import_react = __toESM(require("react"), 1),
41
- import_gui = require("@hanzo/gui"),
42
- demos = ["background", "underline"],
43
- demosTitle = {
44
- background: "Background Indicator",
45
- underline: "Underline Indicator"
46
- },
47
- TabsAdvancedDemo = function () {
48
- var [demoIndex, setDemoIndex] = import_react.default.useState(0),
49
- demo = demos[demoIndex];
50
- return /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
51
- children: [demo === "underline" ? /* @__PURE__ */(0, import_jsx_runtime.jsx)(TabsAdvancedUnderline, {}) : /* @__PURE__ */(0, import_jsx_runtime.jsx)(TabsAdvancedBackground, {}), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_gui.XStack, {
52
- items: "center",
53
- gap: "$4",
54
- position: "absolute",
55
- b: "$3",
56
- l: "$4",
57
- $xxs: {
58
- display: "none"
41
+ var import_jsx_runtime = require("react/jsx-runtime");
42
+ var import_react = __toESM(require("react"), 1);
43
+ var import_gui = require("@hanzo/gui");
44
+ var demos = ["background", "underline"];
45
+ var demosTitle = {
46
+ background: "Background Indicator",
47
+ underline: "Underline Indicator"
48
+ };
49
+ var TabsAdvancedDemo = function () {
50
+ var [demoIndex, setDemoIndex] = import_react.default.useState(0);
51
+ var demo = demos[demoIndex];
52
+ return /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
53
+ children: [demo === "underline" ? /* @__PURE__ */(0, import_jsx_runtime.jsx)(TabsAdvancedUnderline, {}) : /* @__PURE__ */(0, import_jsx_runtime.jsx)(TabsAdvancedBackground, {}), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_gui.XStack, {
54
+ items: "center",
55
+ gap: "$4",
56
+ position: "absolute",
57
+ b: "$3",
58
+ l: "$4",
59
+ $xxs: {
60
+ display: "none"
61
+ },
62
+ children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_gui.Button, {
63
+ size: "$2",
64
+ onPress: function () {
65
+ return setDemoIndex(function (x) {
66
+ return (x + 1) % demos.length;
67
+ });
59
68
  },
60
- children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_gui.Button, {
61
- size: "$2",
62
- onPress: function () {
63
- return setDemoIndex(function (x) {
64
- return (x + 1) % demos.length;
65
- });
66
- },
67
- children: demosTitle[demo]
68
- })
69
- })]
69
+ children: demosTitle[demo]
70
+ })
71
+ })]
72
+ });
73
+ };
74
+ var TabsAdvancedBackground = function () {
75
+ var [tabState, setTabState] = import_react.default.useState(
76
+ /**
77
+ * Layout of the Tab user might intend to select (hovering / focusing)
78
+ */
79
+ /**
80
+ * Layout of the Tab user selected
81
+ */
82
+ /**
83
+ * Used to get the direction of activation for animating the active indicator
84
+ */
85
+ {
86
+ activeAt: null,
87
+ currentTab: "tab1",
88
+ intentAt: null,
89
+ prevActiveAt: null
90
+ });
91
+ var setCurrentTab = function (currentTab2) {
92
+ return setTabState({
93
+ ...tabState,
94
+ currentTab: currentTab2
70
95
  });
71
- },
72
- TabsAdvancedBackground = function () {
73
- var [tabState, setTabState] = import_react.default.useState(
74
- /**
75
- * Layout of the Tab user might intend to select (hovering / focusing)
76
- */
77
- /**
78
- * Layout of the Tab user selected
79
- */
80
- /**
81
- * Used to get the direction of activation for animating the active indicator
82
- */
83
- {
84
- activeAt: null,
85
- currentTab: "tab1",
86
- intentAt: null,
87
- prevActiveAt: null
88
- }),
89
- setCurrentTab = function (currentTab2) {
90
- return setTabState({
91
- ...tabState,
92
- currentTab: currentTab2
93
- });
94
- },
95
- setIntentIndicator = function (intentAt2) {
96
- return setTabState({
97
- ...tabState,
98
- intentAt: intentAt2
99
- });
100
- },
101
- setActiveIndicator = function (activeAt2) {
102
- return setTabState({
103
- ...tabState,
104
- prevActiveAt: tabState.activeAt,
105
- activeAt: activeAt2
106
- });
96
+ };
97
+ var setIntentIndicator = function (intentAt2) {
98
+ return setTabState({
99
+ ...tabState,
100
+ intentAt: intentAt2
101
+ });
102
+ };
103
+ var setActiveIndicator = function (activeAt2) {
104
+ return setTabState({
105
+ ...tabState,
106
+ prevActiveAt: tabState.activeAt,
107
+ activeAt: activeAt2
108
+ });
109
+ };
110
+ var {
111
+ activeAt,
112
+ intentAt,
113
+ prevActiveAt,
114
+ currentTab
115
+ } = tabState;
116
+ var direction = function () {
117
+ if (!activeAt || !prevActiveAt || activeAt.x === prevActiveAt.x) {
118
+ return 0;
119
+ }
120
+ return activeAt.x > prevActiveAt.x ? -1 : 1;
121
+ }();
122
+ var handleOnInteraction = function (type, layout) {
123
+ if (type === "select") {
124
+ setActiveIndicator(layout);
125
+ } else {
126
+ setIntentIndicator(layout);
127
+ }
128
+ };
129
+ return /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_gui.Tabs, {
130
+ value: currentTab,
131
+ onValueChange: setCurrentTab,
132
+ orientation: "horizontal",
133
+ size: "$4",
134
+ p: "$2",
135
+ height: 150,
136
+ flexDirection: "column",
137
+ activationMode: "manual",
138
+ bg: "$background",
139
+ rounded: "$4",
140
+ children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_gui.AnimatePresence, {
141
+ children: intentAt && /* @__PURE__ */(0, import_jsx_runtime.jsx)(TabsRovingIndicator, {
142
+ rounded: "$4",
143
+ width: intentAt.width,
144
+ height: intentAt.height,
145
+ x: intentAt.x,
146
+ y: intentAt.y
147
+ })
148
+ }), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_gui.AnimatePresence, {
149
+ children: activeAt && /* @__PURE__ */(0, import_jsx_runtime.jsx)(TabsRovingIndicator, {
150
+ rounded: "$4",
151
+ theme: "accent",
152
+ width: activeAt.width,
153
+ height: activeAt.height,
154
+ x: activeAt.x,
155
+ y: activeAt.y
156
+ })
157
+ }), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_gui.YStack, {
158
+ position: "relative",
159
+ children: /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_gui.Tabs.List, {
160
+ loop: false,
161
+ "aria-label": "Manage your account",
162
+ gap: "$2",
163
+ backgroundColor: "transparent",
164
+ children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_gui.Tabs.Tab, {
165
+ unstyled: true,
166
+ paddingVertical: "$2",
167
+ paddingHorizontal: "$3",
168
+ value: "tab1",
169
+ onInteraction: handleOnInteraction,
170
+ children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_gui.SizableText, {
171
+ children: "Profile"
172
+ })
173
+ }), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_gui.Tabs.Tab, {
174
+ unstyled: true,
175
+ paddingVertical: "$2",
176
+ paddingHorizontal: "$3",
177
+ value: "tab2",
178
+ onInteraction: handleOnInteraction,
179
+ children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_gui.SizableText, {
180
+ children: "Connections"
181
+ })
182
+ }), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_gui.Tabs.Tab, {
183
+ unstyled: true,
184
+ paddingVertical: "$2",
185
+ paddingHorizontal: "$3",
186
+ value: "tab3",
187
+ onInteraction: handleOnInteraction,
188
+ children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_gui.SizableText, {
189
+ children: "Notifications"
190
+ })
191
+ })]
192
+ })
193
+ }), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_gui.AnimatePresence, {
194
+ exitBeforeEnter: true,
195
+ custom: {
196
+ direction
107
197
  },
108
- {
109
- activeAt,
110
- intentAt,
111
- prevActiveAt,
112
- currentTab
113
- } = tabState,
114
- direction = function () {
115
- return !activeAt || !prevActiveAt || activeAt.x === prevActiveAt.x ? 0 : activeAt.x > prevActiveAt.x ? -1 : 1;
116
- }(),
117
- handleOnInteraction = function (type, layout) {
118
- type === "select" ? setActiveIndicator(layout) : setIntentIndicator(layout);
119
- };
120
- return /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_gui.Tabs, {
121
- value: currentTab,
122
- onValueChange: setCurrentTab,
123
- orientation: "horizontal",
124
- size: "$4",
125
- p: "$2",
126
- height: 150,
127
- flexDirection: "column",
128
- activationMode: "manual",
129
- bg: "$background",
130
- rounded: "$4",
198
+ initial: false,
199
+ children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(AnimatedYStack, {
200
+ children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_gui.Tabs.Content, {
201
+ value: currentTab,
202
+ forceMount: true,
203
+ flex: 1,
204
+ justify: "center",
205
+ children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_gui.H5, {
206
+ text: "center",
207
+ children: currentTab
208
+ })
209
+ })
210
+ }, currentTab)
211
+ })]
212
+ });
213
+ };
214
+ var TabsAdvancedUnderline = function () {
215
+ var [tabState, setTabState] = import_react.default.useState(
216
+ /**
217
+ * Layout of the Tab user might intend to select (hovering / focusing)
218
+ */
219
+ /**
220
+ * Layout of the Tab user selected
221
+ */
222
+ /**
223
+ * Used to get the direction of activation for animating the active indicator
224
+ */
225
+ {
226
+ activeAt: null,
227
+ currentTab: "tab1",
228
+ intentAt: null,
229
+ prevActiveAt: null
230
+ });
231
+ var setCurrentTab = function (currentTab2) {
232
+ return setTabState({
233
+ ...tabState,
234
+ currentTab: currentTab2
235
+ });
236
+ };
237
+ var setIntentIndicator = function (intentAt2) {
238
+ return setTabState({
239
+ ...tabState,
240
+ intentAt: intentAt2
241
+ });
242
+ };
243
+ var setActiveIndicator = function (activeAt2) {
244
+ return setTabState({
245
+ ...tabState,
246
+ prevActiveAt: tabState.activeAt,
247
+ activeAt: activeAt2
248
+ });
249
+ };
250
+ var {
251
+ activeAt,
252
+ intentAt,
253
+ prevActiveAt,
254
+ currentTab
255
+ } = tabState;
256
+ var direction = function () {
257
+ if (!activeAt || !prevActiveAt || activeAt.x === prevActiveAt.x) {
258
+ return 0;
259
+ }
260
+ return activeAt.x > prevActiveAt.x ? -1 : 1;
261
+ }();
262
+ var handleOnInteraction = function (type, layout) {
263
+ if (type === "select") {
264
+ setActiveIndicator(layout);
265
+ } else {
266
+ setIntentIndicator(layout);
267
+ }
268
+ };
269
+ return /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_gui.Tabs, {
270
+ value: currentTab,
271
+ onValueChange: setCurrentTab,
272
+ orientation: "horizontal",
273
+ size: "$4",
274
+ height: 150,
275
+ flexDirection: "column",
276
+ activationMode: "manual",
277
+ bg: "$background",
278
+ rounded: "$4",
279
+ children: [/* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_gui.YStack, {
280
+ position: "relative",
131
281
  children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_gui.AnimatePresence, {
132
282
  children: intentAt && /* @__PURE__ */(0, import_jsx_runtime.jsx)(TabsRovingIndicator, {
133
- rounded: "$4",
134
283
  width: intentAt.width,
135
- height: intentAt.height,
284
+ height: "$0.5",
136
285
  x: intentAt.x,
137
- y: intentAt.y
286
+ b: 0
138
287
  })
139
288
  }), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_gui.AnimatePresence, {
140
289
  children: activeAt && /* @__PURE__ */(0, import_jsx_runtime.jsx)(TabsRovingIndicator, {
141
- rounded: "$4",
142
290
  theme: "accent",
291
+ active: true,
143
292
  width: activeAt.width,
144
- height: activeAt.height,
293
+ height: "$0.5",
145
294
  x: activeAt.x,
146
- y: activeAt.y
147
- })
148
- }), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_gui.YStack, {
149
- position: "relative",
150
- children: /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_gui.Tabs.List, {
151
- loop: !1,
152
- "aria-label": "Manage your account",
153
- gap: "$2",
154
- backgroundColor: "transparent",
155
- children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_gui.Tabs.Tab, {
156
- unstyled: !0,
157
- paddingVertical: "$2",
158
- paddingHorizontal: "$3",
159
- value: "tab1",
160
- onInteraction: handleOnInteraction,
161
- children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_gui.SizableText, {
162
- children: "Profile"
163
- })
164
- }), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_gui.Tabs.Tab, {
165
- unstyled: !0,
166
- paddingVertical: "$2",
167
- paddingHorizontal: "$3",
168
- value: "tab2",
169
- onInteraction: handleOnInteraction,
170
- children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_gui.SizableText, {
171
- children: "Connections"
172
- })
173
- }), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_gui.Tabs.Tab, {
174
- unstyled: !0,
175
- paddingVertical: "$2",
176
- paddingHorizontal: "$3",
177
- value: "tab3",
178
- onInteraction: handleOnInteraction,
179
- children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_gui.SizableText, {
180
- children: "Notifications"
181
- })
182
- })]
295
+ b: 0
183
296
  })
184
- }), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_gui.AnimatePresence, {
185
- exitBeforeEnter: !0,
186
- custom: {
187
- direction
188
- },
189
- initial: !1,
190
- children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(AnimatedYStack, {
191
- children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_gui.Tabs.Content, {
192
- value: currentTab,
193
- forceMount: !0,
194
- flex: 1,
195
- justify: "center",
196
- children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_gui.H5, {
197
- text: "center",
198
- children: currentTab
199
- })
297
+ }), /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_gui.Tabs.List, {
298
+ loop: false,
299
+ "aria-label": "Manage your account",
300
+ borderBottomLeftRadius: 0,
301
+ borderBottomRightRadius: 0,
302
+ paddingBottom: "$1.5",
303
+ borderColor: "$color3",
304
+ borderBottomWidth: "$0.5",
305
+ backgroundColor: "transparent",
306
+ children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_gui.Tabs.Tab, {
307
+ unstyled: true,
308
+ paddingHorizontal: "$3",
309
+ paddingVertical: "$2",
310
+ value: "tab1",
311
+ onInteraction: handleOnInteraction,
312
+ children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_gui.SizableText, {
313
+ children: "Profile"
200
314
  })
201
- }, currentTab)
202
- })]
203
- });
204
- },
205
- TabsAdvancedUnderline = function () {
206
- var [tabState, setTabState] = import_react.default.useState(
207
- /**
208
- * Layout of the Tab user might intend to select (hovering / focusing)
209
- */
210
- /**
211
- * Layout of the Tab user selected
212
- */
213
- /**
214
- * Used to get the direction of activation for animating the active indicator
215
- */
216
- {
217
- activeAt: null,
218
- currentTab: "tab1",
219
- intentAt: null,
220
- prevActiveAt: null
221
- }),
222
- setCurrentTab = function (currentTab2) {
223
- return setTabState({
224
- ...tabState,
225
- currentTab: currentTab2
226
- });
227
- },
228
- setIntentIndicator = function (intentAt2) {
229
- return setTabState({
230
- ...tabState,
231
- intentAt: intentAt2
232
- });
233
- },
234
- setActiveIndicator = function (activeAt2) {
235
- return setTabState({
236
- ...tabState,
237
- prevActiveAt: tabState.activeAt,
238
- activeAt: activeAt2
239
- });
240
- },
241
- {
242
- activeAt,
243
- intentAt,
244
- prevActiveAt,
245
- currentTab
246
- } = tabState,
247
- direction = function () {
248
- return !activeAt || !prevActiveAt || activeAt.x === prevActiveAt.x ? 0 : activeAt.x > prevActiveAt.x ? -1 : 1;
249
- }(),
250
- handleOnInteraction = function (type, layout) {
251
- type === "select" ? setActiveIndicator(layout) : setIntentIndicator(layout);
252
- };
253
- return /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_gui.Tabs, {
254
- value: currentTab,
255
- onValueChange: setCurrentTab,
256
- orientation: "horizontal",
257
- size: "$4",
258
- height: 150,
259
- flexDirection: "column",
260
- activationMode: "manual",
261
- bg: "$background",
262
- rounded: "$4",
263
- children: [/* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_gui.YStack, {
264
- position: "relative",
265
- children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_gui.AnimatePresence, {
266
- children: intentAt && /* @__PURE__ */(0, import_jsx_runtime.jsx)(TabsRovingIndicator, {
267
- width: intentAt.width,
268
- height: "$0.5",
269
- x: intentAt.x,
270
- b: 0
315
+ }), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_gui.Tabs.Tab, {
316
+ unstyled: true,
317
+ paddingHorizontal: "$3",
318
+ paddingVertical: "$2",
319
+ value: "tab2",
320
+ onInteraction: handleOnInteraction,
321
+ children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_gui.SizableText, {
322
+ children: "Connections"
271
323
  })
272
- }), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_gui.AnimatePresence, {
273
- children: activeAt && /* @__PURE__ */(0, import_jsx_runtime.jsx)(TabsRovingIndicator, {
274
- theme: "accent",
275
- active: !0,
276
- width: activeAt.width,
277
- height: "$0.5",
278
- x: activeAt.x,
279
- b: 0
324
+ }), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_gui.Tabs.Tab, {
325
+ unstyled: true,
326
+ paddingHorizontal: "$3",
327
+ paddingVertical: "$2",
328
+ value: "tab3",
329
+ onInteraction: handleOnInteraction,
330
+ children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_gui.SizableText, {
331
+ children: "Notifications"
280
332
  })
281
- }), /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_gui.Tabs.List, {
282
- loop: !1,
283
- "aria-label": "Manage your account",
284
- borderBottomLeftRadius: 0,
285
- borderBottomRightRadius: 0,
286
- paddingBottom: "$1.5",
287
- borderColor: "$color3",
288
- borderBottomWidth: "$0.5",
289
- backgroundColor: "transparent",
290
- children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_gui.Tabs.Tab, {
291
- unstyled: !0,
292
- paddingHorizontal: "$3",
293
- paddingVertical: "$2",
294
- value: "tab1",
295
- onInteraction: handleOnInteraction,
296
- children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_gui.SizableText, {
297
- children: "Profile"
298
- })
299
- }), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_gui.Tabs.Tab, {
300
- unstyled: !0,
301
- paddingHorizontal: "$3",
302
- paddingVertical: "$2",
303
- value: "tab2",
304
- onInteraction: handleOnInteraction,
305
- children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_gui.SizableText, {
306
- children: "Connections"
307
- })
308
- }), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_gui.Tabs.Tab, {
309
- unstyled: !0,
310
- paddingHorizontal: "$3",
311
- paddingVertical: "$2",
312
- value: "tab3",
313
- onInteraction: handleOnInteraction,
314
- children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_gui.SizableText, {
315
- children: "Notifications"
316
- })
317
- })]
318
333
  })]
319
- }), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_gui.AnimatePresence, {
320
- exitBeforeEnter: !0,
321
- custom: {
322
- direction
323
- },
324
- initial: !1,
325
- children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(AnimatedYStack, {
326
- children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_gui.Tabs.Content, {
327
- value: currentTab,
328
- forceMount: !0,
329
- flex: 1,
330
- justify: "center",
331
- flexBasis: "auto",
332
- children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_gui.H5, {
333
- text: "center",
334
- children: currentTab
335
- })
336
- })
337
- }, currentTab)
338
334
  })]
339
- });
340
- },
341
- TabsRovingIndicator = function (param) {
342
- var {
343
- active,
344
- ...props
345
- } = param;
346
- return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_gui.YStack, {
347
- position: "absolute",
348
- backgroundColor: "$color5",
349
- opacity: 0.7,
350
- transition: "100ms",
351
- enterStyle: {
352
- opacity: 0
353
- },
354
- exitStyle: {
355
- opacity: 0
335
+ }), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_gui.AnimatePresence, {
336
+ exitBeforeEnter: true,
337
+ custom: {
338
+ direction
356
339
  },
357
- ...(active && {
358
- backgroundColor: "$color8",
359
- opacity: 0.6
360
- }),
361
- ...props
362
- });
363
- },
364
- AnimatedYStack = (0, import_gui.styled)(import_gui.YStack, {
365
- flex: 1,
366
- x: 0,
367
- opacity: 1,
340
+ initial: false,
341
+ children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(AnimatedYStack, {
342
+ children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_gui.Tabs.Content, {
343
+ value: currentTab,
344
+ forceMount: true,
345
+ flex: 1,
346
+ justify: "center",
347
+ flexBasis: "auto",
348
+ children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_gui.H5, {
349
+ text: "center",
350
+ children: currentTab
351
+ })
352
+ })
353
+ }, currentTab)
354
+ })]
355
+ });
356
+ };
357
+ var TabsRovingIndicator = function (param) {
358
+ var {
359
+ active,
360
+ ...props
361
+ } = param;
362
+ return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_gui.YStack, {
363
+ position: "absolute",
364
+ backgroundColor: "$color5",
365
+ opacity: 0.7,
368
366
  transition: "100ms",
369
- variants: {
370
- // 1 = right, 0 = nowhere, -1 = left
371
- direction: {
372
- ":number": function (direction) {
373
- return {
374
- enterStyle: {
375
- x: direction > 0 ? -25 : 25,
376
- opacity: 0
377
- },
378
- exitStyle: {
379
- zIndex: 0,
380
- x: direction < 0 ? -25 : 25,
381
- opacity: 0
382
- }
383
- };
384
- }
367
+ enterStyle: {
368
+ opacity: 0
369
+ },
370
+ exitStyle: {
371
+ opacity: 0
372
+ },
373
+ ...(active && {
374
+ backgroundColor: "$color8",
375
+ opacity: 0.6
376
+ }),
377
+ ...props
378
+ });
379
+ };
380
+ var AnimatedYStack = (0, import_gui.styled)(import_gui.YStack, {
381
+ flex: 1,
382
+ x: 0,
383
+ opacity: 1,
384
+ transition: "100ms",
385
+ variants: {
386
+ // 1 = right, 0 = nowhere, -1 = left
387
+ direction: {
388
+ ":number": function (direction) {
389
+ return {
390
+ enterStyle: {
391
+ x: direction > 0 ? -25 : 25,
392
+ opacity: 0
393
+ },
394
+ exitStyle: {
395
+ zIndex: 0,
396
+ x: direction < 0 ? -25 : 25,
397
+ opacity: 0
398
+ }
399
+ };
385
400
  }
386
401
  }
387
- });
402
+ }
403
+ });
388
404
  //# sourceMappingURL=TabsAdvancedDemo.native.js.map