@xaui/native 0.9.1-alpha.93 → 0.9.1-beta.100

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 (394) hide show
  1. package/dist/{chunk-AXKDHX5V.cjs → chunk-2IOL3VDP.cjs} +3 -3
  2. package/dist/{chunk-PAQZOD2L.js → chunk-2JFMCW5E.js} +1 -1
  3. package/dist/{chunk-TPYOQSKT.js → chunk-2UNLQRXY.js} +1 -1
  4. package/dist/{chunk-GYEQEF5H.js → chunk-356DND54.js} +1 -1
  5. package/dist/{chunk-OD6H7ANY.js → chunk-3BRVAMXQ.js} +2 -2
  6. package/dist/{chunk-QCH7X7O2.cjs → chunk-3DQCHPB6.cjs} +14 -14
  7. package/dist/{chunk-B33OU34Z.cjs → chunk-3MMOZP4Y.cjs} +20 -20
  8. package/dist/chunk-3TBT6ORW.cjs +662 -0
  9. package/dist/{chunk-DN3X5WIB.js → chunk-3VMKOQXH.js} +1 -1
  10. package/dist/{chunk-CBXILKQZ.cjs → chunk-435MOVG2.cjs} +3 -3
  11. package/dist/{chunk-2B6PUYTP.cjs → chunk-55KGHYYU.cjs} +4 -4
  12. package/dist/{chunk-V4IFH65I.cjs → chunk-5CXOSDFI.cjs} +2 -2
  13. package/dist/{chunk-FVEMTBU4.js → chunk-5G36GMFS.js} +3 -3
  14. package/dist/{chunk-BI5ME4QP.cjs → chunk-5UT5I53X.cjs} +8 -8
  15. package/dist/{chunk-V2CEKPJ6.js → chunk-6MVKLRLZ.js} +1 -1
  16. package/dist/{chunk-RSIWSVXI.js → chunk-6NAZ2IHL.js} +1 -1
  17. package/dist/{chunk-LPJ3UBSO.cjs → chunk-6NRWZR7T.cjs} +2 -2
  18. package/dist/{chunk-7NQL5DXY.js → chunk-6XY3XAEQ.js} +1 -1
  19. package/dist/{chunk-UEW3GAP5.cjs → chunk-6ZWQDTGQ.cjs} +5 -5
  20. package/dist/{chunk-ODQHAPQW.js → chunk-73EVNWZI.js} +25 -23
  21. package/dist/{chunk-VMPCXS4S.js → chunk-7EPH24S2.js} +23 -21
  22. package/dist/{chunk-G2YHGLN3.cjs → chunk-7JWOAGB3.cjs} +9 -9
  23. package/dist/{chunk-FXN32S75.cjs → chunk-ADGHFLBJ.cjs} +4 -4
  24. package/dist/{chunk-OPLPLFGK.cjs → chunk-AHKKEM3K.cjs} +66 -23
  25. package/dist/{chunk-WRZV6ORJ.js → chunk-AYOJXFHR.js} +1 -1
  26. package/dist/{chunk-MMFIMQMQ.js → chunk-BBQQIO6L.js} +6 -6
  27. package/dist/{chunk-PROLOLZ5.cjs → chunk-BGBJTBFC.cjs} +3 -3
  28. package/dist/{chunk-RXEUKYM5.js → chunk-BH4IN6H6.js} +2 -2
  29. package/dist/{chunk-WLWZG2PA.cjs → chunk-BKY5YQ7W.cjs} +1 -1
  30. package/dist/{chunk-CYOUOQXT.cjs → chunk-C2S6J27O.cjs} +6 -6
  31. package/dist/chunk-C6JO2RTV.cjs +752 -0
  32. package/dist/{chunk-NVODH2PR.js → chunk-CCTAJXZ3.js} +63 -61
  33. package/dist/{chunk-ORXVXYKC.cjs → chunk-CHGBWFDI.cjs} +63 -26
  34. package/dist/chunk-CS6CYB4I.cjs +260 -0
  35. package/dist/{chunk-WLJPO3AS.cjs → chunk-CZ2NUGUI.cjs} +357 -201
  36. package/dist/{chunk-PYQ2P3M5.cjs → chunk-CZEWWCWG.cjs} +58 -58
  37. package/dist/{chunk-PDSR42YC.cjs → chunk-D22K3NZU.cjs} +3 -3
  38. package/dist/{chunk-WYRM77XM.cjs → chunk-ENZBKNFJ.cjs} +15 -15
  39. package/dist/chunk-ETY5PM3E.cjs +797 -0
  40. package/dist/{chunk-62AYYMZP.cjs → chunk-FDYPWVNP.cjs} +3 -3
  41. package/dist/{chunk-PAQD6UUF.cjs → chunk-FLKTJ46K.cjs} +17 -17
  42. package/dist/{chunk-EBCAPIBD.js → chunk-FSVZXWLZ.js} +71 -51
  43. package/dist/{chunk-FOOXBVOQ.js → chunk-GVZJNIHN.js} +184 -68
  44. package/dist/chunk-GWTURY4S.cjs +999 -0
  45. package/dist/{chunk-OW4N2C3M.cjs → chunk-HBYT7B47.cjs} +88 -61
  46. package/dist/{chunk-7EVW6O2Q.js → chunk-HDERVGWZ.js} +2 -2
  47. package/dist/{chunk-XWIPLZTD.cjs → chunk-HOV25N3M.cjs} +2 -2
  48. package/dist/{chunk-5MMBEDZG.cjs → chunk-I3XIZWCV.cjs} +29 -29
  49. package/dist/{chunk-EDNCHCIN.cjs → chunk-IAJG7GYE.cjs} +2 -2
  50. package/dist/{chunk-P7OHZCU3.js → chunk-IAWLQN2W.js} +2 -2
  51. package/dist/{chunk-RCSEVEIR.js → chunk-ICVIWXK4.js} +1 -1
  52. package/dist/chunk-IHRPAKCZ.cjs +540 -0
  53. package/dist/{chunk-ZWS3FQ3J.js → chunk-IUDQG3JI.js} +57 -57
  54. package/dist/{chunk-JKDWYNSG.js → chunk-IVELCJEN.js} +110 -108
  55. package/dist/{chunk-5YZUYSV7.js → chunk-JYV53WUN.js} +1 -1
  56. package/dist/{chunk-QN2D5ZCS.cjs → chunk-KAYZH7ZN.cjs} +4 -4
  57. package/dist/{chunk-RREJUSAS.cjs → chunk-KIXHSX3L.cjs} +4 -4
  58. package/dist/{chunk-2AFA5HA2.js → chunk-KQW25RCC.js} +77 -75
  59. package/dist/{chunk-7M6YKCHX.js → chunk-KZZWNDDO.js} +2 -2
  60. package/dist/{chunk-J5COSALO.cjs → chunk-L4B6Z45Q.cjs} +5 -5
  61. package/dist/{chunk-X4CZYJZ6.cjs → chunk-LCGJA37L.cjs} +12 -12
  62. package/dist/{chunk-P2CJNTAP.js → chunk-LMMHAGOM.js} +33 -22
  63. package/dist/{chunk-SUJLTC2K.js → chunk-LPGY2IDX.js} +1 -1
  64. package/dist/{chunk-P5M5URAB.js → chunk-LSZW4G7B.js} +31 -31
  65. package/dist/{chunk-LECYGVIH.js → chunk-LYWXGEED.js} +51 -49
  66. package/dist/{chunk-VQGNLX5C.js → chunk-M352N6PQ.js} +6 -6
  67. package/dist/{chunk-AIND5F7P.js → chunk-MTQGFUW5.js} +29 -29
  68. package/dist/{chunk-ZKGVOXLQ.js → chunk-MXSIY6QQ.js} +4 -4
  69. package/dist/{chunk-3CPLJJWX.js → chunk-MZUYTCCB.js} +1 -1
  70. package/dist/{chunk-DYQB54JA.cjs → chunk-NPAGA6SH.cjs} +2 -2
  71. package/dist/{chunk-O6B72H4B.js → chunk-NQDTGYHC.js} +7 -9
  72. package/dist/{chunk-NADCILBL.cjs → chunk-NRU5APUE.cjs} +4 -4
  73. package/dist/{chunk-43S673KF.js → chunk-NTVPLDJC.js} +1 -1
  74. package/dist/{chunk-7AVZ2FST.cjs → chunk-NXVSNESK.cjs} +12 -12
  75. package/dist/{chunk-QELEKXN3.cjs → chunk-OMI2FRCU.cjs} +5 -5
  76. package/dist/{chunk-E4FWGZH2.js → chunk-OUNTRW6E.js} +5 -5
  77. package/dist/{chunk-JBZ7SBRV.cjs → chunk-Q3ZKZ2Y6.cjs} +3 -3
  78. package/dist/chunk-QRH45OO3.cjs +903 -0
  79. package/dist/{chunk-6RU6GUJP.js → chunk-QZF7RSVV.js} +1 -1
  80. package/dist/{chunk-UYQLW7OD.js → chunk-RAYO2TJL.js} +2 -2
  81. package/dist/{chunk-FRLWG5LM.js → chunk-RFT5MGJC.js} +25 -25
  82. package/dist/{chunk-USIWPESU.js → chunk-SIX5AVXG.js} +1 -1
  83. package/dist/chunk-SVS726BW.js +822 -0
  84. package/dist/{chunk-GGP2ERSV.js → chunk-T5ES7FOL.js} +1 -1
  85. package/dist/{chunk-JJYHW4PV.js → chunk-TNFLBURM.js} +2 -2
  86. package/dist/{chunk-YCQEX25B.cjs → chunk-U6YD3UBO.cjs} +7 -7
  87. package/dist/chunk-USQK6SFZ.cjs +627 -0
  88. package/dist/{chunk-MSORLKO7.cjs → chunk-V3C3ATRO.cjs} +2 -2
  89. package/dist/{chunk-TCWW7JI2.js → chunk-V5FYHQKQ.js} +111 -94
  90. package/dist/{chunk-CBRW53GN.cjs → chunk-V5V2QYFH.cjs} +43 -27
  91. package/dist/{chunk-YGETADPV.js → chunk-V7YT4SDX.js} +2 -2
  92. package/dist/{chunk-TRWZEOCO.js → chunk-VL2ZT4BB.js} +5 -5
  93. package/dist/{chunk-2SHWOFQV.js → chunk-VQ4OTVET.js} +29 -29
  94. package/dist/{chunk-Q6OVVUAT.js → chunk-VTGWFZCA.js} +2 -2
  95. package/dist/{chunk-6GQ7UTJ7.cjs → chunk-VXAIFOXL.cjs} +2 -2
  96. package/dist/{chunk-BJVO7DWJ.js → chunk-W4F4NQXM.js} +1 -1
  97. package/dist/{chunk-JC4YCKKL.js → chunk-WIGDDZHO.js} +198 -82
  98. package/dist/{chunk-ZE4IHUUO.cjs → chunk-WNEDQTH6.cjs} +2 -2
  99. package/dist/chunk-WSDDUVF6.cjs +395 -0
  100. package/dist/{chunk-QHXTO525.js → chunk-WYJHDTU7.js} +1 -1
  101. package/dist/{chunk-RLC3EXMV.js → chunk-XM4IN4Q6.js} +2 -2
  102. package/dist/chunk-XXXR2AD3.cjs +94 -0
  103. package/dist/{chunk-AR7667VN.cjs → chunk-YJA7OQQZ.cjs} +4 -4
  104. package/dist/{chunk-LKRQUQZQ.cjs → chunk-YRANVNJG.cjs} +2 -2
  105. package/dist/{chunk-WIX4SYZI.cjs → chunk-YUCK5VJO.cjs} +10 -10
  106. package/dist/chunk-ZBFBF7S4.cjs +1054 -0
  107. package/dist/{chunk-52XUGOLD.js → chunk-ZBY7Q7WJ.js} +3 -3
  108. package/dist/chunk-ZDJQ643D.js +62 -0
  109. package/dist/{chunk-QUSQEYLP.cjs → chunk-ZNKHL5O6.cjs} +30 -32
  110. package/dist/{chunk-U5CUBDJA.js → chunk-ZR5YOCOQ.js} +15 -15
  111. package/dist/components/accordion/accordion.animation.d.cts +1 -1
  112. package/dist/components/accordion/accordion.animation.d.ts +1 -1
  113. package/dist/components/accordion/accordion.type.d.cts +1 -1
  114. package/dist/components/accordion/accordion.type.d.ts +1 -1
  115. package/dist/components/accordion/index.cjs +3 -3
  116. package/dist/components/accordion/index.js +2 -2
  117. package/dist/components/agenda-calendar/agenda-calendar-today-button.d.cts +4 -0
  118. package/dist/components/agenda-calendar/agenda-calendar-today-button.d.ts +4 -0
  119. package/dist/components/agenda-calendar/agenda-calendar.recipe.d.cts +1 -1
  120. package/dist/components/agenda-calendar/agenda-calendar.recipe.d.ts +1 -1
  121. package/dist/components/agenda-calendar/agenda-calendar.type.d.cts +4 -1
  122. package/dist/components/agenda-calendar/agenda-calendar.type.d.ts +4 -1
  123. package/dist/components/agenda-calendar/index.cjs +4 -4
  124. package/dist/components/agenda-calendar/index.js +3 -3
  125. package/dist/components/alert/alert-icon.d.cts +2 -2
  126. package/dist/components/alert/alert-icon.d.ts +2 -2
  127. package/dist/components/alert/alert.type.d.cts +1 -1
  128. package/dist/components/alert/alert.type.d.ts +1 -1
  129. package/dist/components/alert/index.cjs +4 -4
  130. package/dist/components/alert/index.js +3 -3
  131. package/dist/components/autocomplete/autocomplete-description.d.cts +14 -0
  132. package/dist/components/autocomplete/autocomplete-description.d.ts +14 -0
  133. package/dist/components/autocomplete/autocomplete-error.d.cts +12 -0
  134. package/dist/components/autocomplete/autocomplete-error.d.ts +12 -0
  135. package/dist/components/autocomplete/autocomplete-label.d.cts +15 -0
  136. package/dist/components/autocomplete/autocomplete-label.d.ts +15 -0
  137. package/dist/components/autocomplete/autocomplete.d.cts +50 -7
  138. package/dist/components/autocomplete/autocomplete.d.ts +50 -7
  139. package/dist/components/autocomplete/autocomplete.type.d.cts +21 -4
  140. package/dist/components/autocomplete/autocomplete.type.d.ts +21 -4
  141. package/dist/components/autocomplete/index.cjs +11 -4
  142. package/dist/components/autocomplete/index.d.cts +50 -3
  143. package/dist/components/autocomplete/index.d.ts +50 -3
  144. package/dist/components/autocomplete/index.js +10 -3
  145. package/dist/components/avatar/avatar-fallback.d.cts +1 -1
  146. package/dist/components/avatar/avatar-fallback.d.ts +1 -1
  147. package/dist/components/avatar/avatar.d.cts +1 -1
  148. package/dist/components/avatar/avatar.d.ts +1 -1
  149. package/dist/components/avatar/avatar.type.d.cts +1 -1
  150. package/dist/components/avatar/avatar.type.d.ts +1 -1
  151. package/dist/components/avatar/index.cjs +2 -2
  152. package/dist/components/avatar/index.js +1 -1
  153. package/dist/components/bottom-sheet/bottom-sheet.d.cts +1 -1
  154. package/dist/components/bottom-sheet/bottom-sheet.d.ts +1 -1
  155. package/dist/components/bottom-sheet/index.cjs +3 -3
  156. package/dist/components/bottom-sheet/index.js +2 -2
  157. package/dist/components/button/index.cjs +3 -3
  158. package/dist/components/button/index.js +2 -2
  159. package/dist/components/calendar/index.cjs +3 -3
  160. package/dist/components/calendar/index.js +2 -2
  161. package/dist/components/card/card-background.d.cts +1 -1
  162. package/dist/components/card/card-background.d.ts +1 -1
  163. package/dist/components/card/card.utils.d.cts +1 -1
  164. package/dist/components/card/card.utils.d.ts +1 -1
  165. package/dist/components/card/index.cjs +3 -3
  166. package/dist/components/card/index.js +2 -2
  167. package/dist/components/carousel/index.cjs +3 -3
  168. package/dist/components/carousel/index.js +2 -2
  169. package/dist/components/checkbox/checkbox.recipe.d.cts +1 -1
  170. package/dist/components/checkbox/checkbox.recipe.d.ts +1 -1
  171. package/dist/components/checkbox/checkbox.type.d.cts +1 -1
  172. package/dist/components/checkbox/checkbox.type.d.ts +1 -1
  173. package/dist/components/checkbox/index.cjs +3 -3
  174. package/dist/components/checkbox/index.js +2 -2
  175. package/dist/components/chip/chip.type.d.cts +1 -1
  176. package/dist/components/chip/chip.type.d.ts +1 -1
  177. package/dist/components/chip/index.cjs +4 -4
  178. package/dist/components/chip/index.js +3 -3
  179. package/dist/components/close-button/index.cjs +4 -4
  180. package/dist/components/close-button/index.js +3 -3
  181. package/dist/components/color-picker/index.cjs +9 -9
  182. package/dist/components/color-picker/index.js +8 -8
  183. package/dist/components/combobox/combobox.type.d.cts +5 -1
  184. package/dist/components/combobox/combobox.type.d.ts +5 -1
  185. package/dist/components/combobox/index.cjs +6 -5
  186. package/dist/components/combobox/index.d.cts +15 -1
  187. package/dist/components/combobox/index.d.ts +15 -1
  188. package/dist/components/combobox/index.js +5 -4
  189. package/dist/components/date-picker/index.cjs +6 -6
  190. package/dist/components/date-picker/index.js +5 -5
  191. package/dist/components/date-range-picker/index.cjs +7 -7
  192. package/dist/components/date-range-picker/index.js +6 -6
  193. package/dist/components/date-time-picker/date-time-picker-indicator.d.cts +2 -2
  194. package/dist/components/date-time-picker/date-time-picker-indicator.d.ts +2 -2
  195. package/dist/components/date-time-picker/date-time-picker.type.d.cts +3 -2
  196. package/dist/components/date-time-picker/date-time-picker.type.d.ts +3 -2
  197. package/dist/components/date-time-picker/index.cjs +9 -10
  198. package/dist/components/date-time-picker/index.d.cts +1 -1
  199. package/dist/components/date-time-picker/index.d.ts +1 -1
  200. package/dist/components/date-time-picker/index.js +8 -9
  201. package/dist/components/dialog/index.cjs +4 -4
  202. package/dist/components/dialog/index.js +3 -3
  203. package/dist/components/dummy-field/index.cjs +6 -6
  204. package/dist/components/dummy-field/index.js +5 -5
  205. package/dist/components/fab/index.cjs +3 -3
  206. package/dist/components/fab/index.js +2 -2
  207. package/dist/components/field-group/field-group-icon.d.cts +1 -1
  208. package/dist/components/field-group/field-group-icon.d.ts +1 -1
  209. package/dist/components/field-group/index.cjs +4 -4
  210. package/dist/components/field-group/index.js +3 -3
  211. package/dist/components/flip-card/index.cjs +3 -3
  212. package/dist/components/flip-card/index.js +2 -2
  213. package/dist/components/index.d.cts +1 -1
  214. package/dist/components/index.d.ts +1 -1
  215. package/dist/components/input-otp/input-otp.type.d.cts +1 -1
  216. package/dist/components/input-otp/input-otp.type.d.ts +1 -1
  217. package/dist/components/list-box/index.cjs +2 -2
  218. package/dist/components/list-box/index.js +1 -1
  219. package/dist/components/list-box/list-box-item-suffix.d.cts +1 -1
  220. package/dist/components/list-box/list-box-item-suffix.d.ts +1 -1
  221. package/dist/components/mask-field/index.cjs +5 -5
  222. package/dist/components/mask-field/index.js +4 -4
  223. package/dist/components/menu/index.cjs +3 -3
  224. package/dist/components/menu/index.js +2 -2
  225. package/dist/components/morph-button/index.cjs +3 -3
  226. package/dist/components/morph-button/index.js +2 -2
  227. package/dist/components/number-field/index.cjs +5 -5
  228. package/dist/components/number-field/index.js +4 -4
  229. package/dist/components/number-field/number-field-increment.d.cts +2 -2
  230. package/dist/components/number-field/number-field-increment.d.ts +2 -2
  231. package/dist/components/number-pad/index.cjs +3 -3
  232. package/dist/components/number-pad/index.js +2 -2
  233. package/dist/components/number-stepper/index.cjs +3 -3
  234. package/dist/components/number-stepper/index.js +2 -2
  235. package/dist/components/pager/index.cjs +2 -2
  236. package/dist/components/pager/index.js +1 -1
  237. package/dist/components/phone-number-field/index.cjs +43 -36
  238. package/dist/components/phone-number-field/index.js +15 -8
  239. package/dist/components/popover/index.cjs +3 -3
  240. package/dist/components/popover/index.js +2 -2
  241. package/dist/components/popover/popover.recipe.d.cts +1 -1
  242. package/dist/components/popover/popover.recipe.d.ts +1 -1
  243. package/dist/components/radio/index.cjs +3 -3
  244. package/dist/components/radio/index.js +2 -2
  245. package/dist/components/range-calendar/index.cjs +4 -4
  246. package/dist/components/range-calendar/index.js +3 -3
  247. package/dist/components/rating/index.cjs +3 -3
  248. package/dist/components/rating/index.js +2 -2
  249. package/dist/components/search-field/index.cjs +7 -7
  250. package/dist/components/search-field/index.js +6 -6
  251. package/dist/components/segment/index.cjs +4 -4
  252. package/dist/components/segment/index.js +2 -2
  253. package/dist/components/select/index.cjs +11 -4
  254. package/dist/components/select/index.d.cts +45 -4
  255. package/dist/components/select/index.d.ts +45 -4
  256. package/dist/components/select/index.js +10 -3
  257. package/dist/components/select/select-description.d.cts +14 -0
  258. package/dist/components/select/select-description.d.ts +14 -0
  259. package/dist/components/select/select-error.d.cts +13 -0
  260. package/dist/components/select/select-error.d.ts +13 -0
  261. package/dist/components/select/select-group-label.d.cts +11 -0
  262. package/dist/components/select/select-group-label.d.ts +11 -0
  263. package/dist/components/select/select-indicator.d.cts +1 -1
  264. package/dist/components/select/select-indicator.d.ts +1 -1
  265. package/dist/components/select/select-label.d.cts +11 -2
  266. package/dist/components/select/select-label.d.ts +11 -2
  267. package/dist/components/select/select.d.cts +49 -9
  268. package/dist/components/select/select.d.ts +49 -9
  269. package/dist/components/select/select.recipe.d.cts +1 -1
  270. package/dist/components/select/select.recipe.d.ts +1 -1
  271. package/dist/components/select/select.type.d.cts +33 -9
  272. package/dist/components/select/select.type.d.ts +33 -9
  273. package/dist/components/skeleton/skeleton.type.d.cts +1 -1
  274. package/dist/components/skeleton/skeleton.type.d.ts +1 -1
  275. package/dist/components/slide-button/index.cjs +30 -0
  276. package/dist/components/slide-button/index.d.cts +44 -0
  277. package/dist/components/slide-button/index.d.ts +44 -0
  278. package/dist/components/slide-button/index.js +30 -0
  279. package/dist/components/slide-button/slide-button-fill.d.cts +29 -0
  280. package/dist/components/slide-button/slide-button-fill.d.ts +29 -0
  281. package/dist/components/slide-button/slide-button-icon.d.cts +10 -0
  282. package/dist/components/slide-button/slide-button-icon.d.ts +10 -0
  283. package/dist/components/slide-button/slide-button-label.d.cts +20 -0
  284. package/dist/components/slide-button/slide-button-label.d.ts +20 -0
  285. package/dist/components/slide-button/slide-button-thumb.d.cts +20 -0
  286. package/dist/components/slide-button/slide-button-thumb.d.ts +20 -0
  287. package/dist/components/slide-button/slide-button.animation.d.cts +33 -0
  288. package/dist/components/slide-button/slide-button.animation.d.ts +33 -0
  289. package/dist/components/slide-button/slide-button.context.d.cts +7 -0
  290. package/dist/components/slide-button/slide-button.context.d.ts +7 -0
  291. package/dist/components/slide-button/slide-button.d.cts +56 -0
  292. package/dist/components/slide-button/slide-button.d.ts +56 -0
  293. package/dist/components/slide-button/slide-button.recipe.d.cts +31 -0
  294. package/dist/components/slide-button/slide-button.recipe.d.ts +31 -0
  295. package/dist/components/slide-button/slide-button.type.d.cts +79 -0
  296. package/dist/components/slide-button/slide-button.type.d.ts +79 -0
  297. package/dist/components/slider/index.cjs +2 -2
  298. package/dist/components/slider/index.js +1 -1
  299. package/dist/components/slider/slider-thumb.d.cts +1 -1
  300. package/dist/components/slider/slider-thumb.d.ts +1 -1
  301. package/dist/components/slider/slider.recipe.d.cts +1 -1
  302. package/dist/components/slider/slider.recipe.d.ts +1 -1
  303. package/dist/components/snackbar/index.cjs +3 -3
  304. package/dist/components/snackbar/index.js +2 -2
  305. package/dist/components/spinner/spinner.d.cts +1 -1
  306. package/dist/components/spinner/spinner.d.ts +1 -1
  307. package/dist/components/switch/index.cjs +3 -3
  308. package/dist/components/switch/index.js +2 -2
  309. package/dist/components/switch/switch.style.d.cts +1 -1
  310. package/dist/components/switch/switch.style.d.ts +1 -1
  311. package/dist/components/table/index.cjs +4 -4
  312. package/dist/components/table/index.js +3 -3
  313. package/dist/components/tabs/index.cjs +4 -4
  314. package/dist/components/tabs/index.js +3 -3
  315. package/dist/components/tag-group/index.cjs +4 -4
  316. package/dist/components/tag-group/index.js +3 -3
  317. package/dist/components/text-area/index.cjs +4 -4
  318. package/dist/components/text-area/index.js +3 -3
  319. package/dist/components/text-area/text-area.d.cts +1 -1
  320. package/dist/components/text-area/text-area.d.ts +1 -1
  321. package/dist/components/text-field/index.cjs +3 -3
  322. package/dist/components/text-field/index.js +2 -2
  323. package/dist/components/text-field/text-field.type.d.cts +4 -4
  324. package/dist/components/text-field/text-field.type.d.ts +4 -4
  325. package/dist/components/time-picker/index.cjs +5 -6
  326. package/dist/components/time-picker/index.d.cts +1 -1
  327. package/dist/components/time-picker/index.d.ts +1 -1
  328. package/dist/components/time-picker/index.js +4 -5
  329. package/dist/components/time-picker/time-picker-display.d.cts +3 -3
  330. package/dist/components/time-picker/time-picker-display.d.ts +3 -3
  331. package/dist/components/time-picker/time-picker-indicator.d.cts +2 -2
  332. package/dist/components/time-picker/time-picker-indicator.d.ts +2 -2
  333. package/dist/components/time-picker/time-picker.d.cts +1 -1
  334. package/dist/components/time-picker/time-picker.d.ts +1 -1
  335. package/dist/components/time-picker/time-picker.type.d.cts +11 -1
  336. package/dist/components/time-picker/time-picker.type.d.ts +11 -1
  337. package/dist/components/toast/index.cjs +3 -3
  338. package/dist/components/toast/index.js +2 -2
  339. package/dist/components/toast/toast.animation.d.cts +2 -2
  340. package/dist/components/toast/toast.animation.d.ts +2 -2
  341. package/dist/components/toast/toast.utils.d.cts +1 -1
  342. package/dist/components/toast/toast.utils.d.ts +1 -1
  343. package/dist/components/toggle-button/index.cjs +3 -3
  344. package/dist/components/toggle-button/index.js +2 -2
  345. package/dist/components/typography/typography.type.d.cts +1 -1
  346. package/dist/components/typography/typography.type.d.ts +1 -1
  347. package/dist/components/wheel-picker/index.cjs +2 -2
  348. package/dist/components/wheel-picker/index.js +1 -1
  349. package/dist/hooks/use-rotation.d.cts +1 -1
  350. package/dist/hooks/use-rotation.d.ts +1 -1
  351. package/dist/index.cjs +74 -63
  352. package/dist/index.js +92 -81
  353. package/dist/system/anchored/indicator-spring.d.cts +2 -2
  354. package/dist/system/anchored/indicator-spring.d.ts +2 -2
  355. package/dist/system/index.cjs +3 -3
  356. package/dist/system/index.js +2 -2
  357. package/dist/theme/derive-colors.d.cts +1 -1
  358. package/dist/theme/derive-colors.d.ts +1 -1
  359. package/dist/theme/index.cjs +2 -2
  360. package/dist/theme/index.js +1 -1
  361. package/dist/utils/time.d.cts +29 -0
  362. package/dist/utils/time.d.ts +29 -0
  363. package/package.json +11 -11
  364. package/dist/chunk-3MRCSXGT.js +0 -73
  365. package/dist/chunk-5E6SHYEQ.cjs +0 -631
  366. package/dist/chunk-6JAGPPZU.cjs +0 -788
  367. package/dist/chunk-CEPX7CKM.cjs +0 -365
  368. package/dist/chunk-CHFPFYNV.js +0 -60
  369. package/dist/chunk-ECR6GPJ6.js +0 -198
  370. package/dist/chunk-GBTNFQXN.cjs +0 -33
  371. package/dist/chunk-GZAGWNQM.cjs +0 -719
  372. package/dist/chunk-ILXKBDC6.cjs +0 -209
  373. package/dist/chunk-IPD3IUE2.cjs +0 -640
  374. package/dist/chunk-P2V6PIM7.cjs +0 -478
  375. package/dist/chunk-Q2BWXT55.cjs +0 -1011
  376. package/dist/chunk-UFKSUELU.cjs +0 -453
  377. package/dist/chunk-W4IPOWLY.cjs +0 -198
  378. package/dist/chunk-YSTLHVQV.cjs +0 -73
  379. package/dist/components/time-field/index.cjs +0 -27
  380. package/dist/components/time-field/index.d.cts +0 -52
  381. package/dist/components/time-field/index.d.ts +0 -52
  382. package/dist/components/time-field/index.js +0 -27
  383. package/dist/components/time-field/time-field-field.d.cts +0 -11
  384. package/dist/components/time-field/time-field-field.d.ts +0 -11
  385. package/dist/components/time-field/time-field-period.d.cts +0 -34
  386. package/dist/components/time-field/time-field-period.d.ts +0 -34
  387. package/dist/components/time-field/time-field.context.d.cts +0 -9
  388. package/dist/components/time-field/time-field.context.d.ts +0 -9
  389. package/dist/components/time-field/time-field.d.cts +0 -56
  390. package/dist/components/time-field/time-field.d.ts +0 -56
  391. package/dist/components/time-field/time-field.type.d.cts +0 -72
  392. package/dist/components/time-field/time-field.type.d.ts +0 -72
  393. package/dist/utils/time-mask.d.cts +0 -68
  394. package/dist/utils/time-mask.d.ts +0 -68
@@ -0,0 +1,903 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ function _interopRequireDefault(obj) {
7
+ return obj && obj.__esModule ? obj : {
8
+ default: obj
9
+ };
10
+ }
11
+ function _nullishCoalesce(lhs, rhsFn) {
12
+ if (lhs != null) {
13
+ return lhs;
14
+ } else {
15
+ return rhsFn();
16
+ }
17
+ }
18
+ function _optionalChain(ops) {
19
+ let lastAccessLHS = undefined;
20
+ let value = ops[0];
21
+ let i = 1;
22
+ while (i < ops.length) {
23
+ const op = ops[i];
24
+ const fn = ops[i + 1];
25
+ i += 2;
26
+ if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) {
27
+ return undefined;
28
+ }
29
+ if (op === 'access' || op === 'optionalAccess') {
30
+ lastAccessLHS = value;
31
+ value = fn(value);
32
+ } else if (op === 'call' || op === 'optionalCall') {
33
+ value = fn((...args) => value.call(lastAccessLHS, ...args));
34
+ lastAccessLHS = undefined;
35
+ }
36
+ }
37
+ return value;
38
+ }
39
+ var _chunkFJGPDWMScjs = require('./chunk-FJGPDWMS.cjs');
40
+ var _chunkYVYYONTPcjs = require('./chunk-YVYYONTP.cjs');
41
+ var _chunkBKY5YQ7Wcjs = require('./chunk-BKY5YQ7W.cjs');
42
+ var _chunkL4B6Z45Qcjs = require('./chunk-L4B6Z45Q.cjs');
43
+ var _chunkWDDXU3OHcjs = require('./chunk-WDDXU3OH.cjs');
44
+ var _chunkEKS3W46Mcjs = require('./chunk-EKS3W46M.cjs');
45
+ var _chunkWFEMJCXOcjs = require('./chunk-WFEMJCXO.cjs');
46
+ var _chunk7EIHHOHPcjs = require('./chunk-7EIHHOHP.cjs');
47
+ var _chunkHBYT7B47cjs = require('./chunk-HBYT7B47.cjs');
48
+ var _chunk7DPL3ZDScjs = require('./chunk-7DPL3ZDS.cjs');
49
+ var _chunkGSZDN6EZcjs = require('./chunk-GSZDN6EZ.cjs');
50
+ var _chunkFHNIGHN5cjs = require('./chunk-FHNIGHN5.cjs');
51
+ var _chunkSL3V7R2Ycjs = require('./chunk-SL3V7R2Y.cjs');
52
+ var _chunkCDRGTUYFcjs = require('./chunk-CDRGTUYF.cjs');
53
+ var _chunkIIAQISBGcjs = require('./chunk-IIAQISBG.cjs');
54
+ var _chunkTK44VBIEcjs = require('./chunk-TK44VBIE.cjs');
55
+
56
+ // src/components/autocomplete/autocomplete.tsx
57
+ var _react = require('react');
58
+ var _reactnative = require('react-native');
59
+
60
+ // src/components/autocomplete/autocomplete.context.ts
61
+ var [AutocompleteProvider, useAutocomplete] = _chunkCDRGTUYFcjs.createSlotContext.call(void 0, "Autocomplete");
62
+ var [AutocompleteItemProvider, useAutocompleteItem] = _chunkCDRGTUYFcjs.createSlotContext.call(void 0, "Autocomplete.Item");
63
+
64
+ // src/components/autocomplete/autocomplete.recipe.ts
65
+ var SLOTS = ["search", "empty"];
66
+ var VARIANT_TOKENS = {
67
+ // The search box is a field **inside** a panel rather than one on a page, so it takes
68
+ // the recessed neutral rather than `fieldBackground` — on a white panel the latter is
69
+ // the panel's own colour and the box would vanish into it. It is the same reasoning the
70
+ // `Checkbox`'s `secondary` gives for the same swap.
71
+ default: {
72
+ bg: "default",
73
+ fg: "fieldForeground"
74
+ }
75
+ };
76
+ var SIZES = {
77
+ sm: {
78
+ value: "md"
79
+ },
80
+ md: {
81
+ value: "md"
82
+ },
83
+ lg: {
84
+ value: "lg"
85
+ }
86
+ };
87
+ var BOX = {
88
+ height: 10,
89
+ paddingHorizontal: 3,
90
+ radius: "field",
91
+ marginBottom: 2
92
+ };
93
+ function sizeAxis(step) {
94
+ return theme => ({
95
+ search: {
96
+ fontSize: theme.fontSizes[step.value],
97
+ lineHeight: theme.lineHeights[step.value]
98
+ }
99
+ });
100
+ }
101
+ var autocompleteRecipe = _chunkSL3V7R2Ycjs.createRecipe.call(void 0, {
102
+ slots: SLOTS,
103
+ base: theme => ({
104
+ search: {
105
+ height: theme.spacing(BOX.height),
106
+ paddingHorizontal: theme.spacing(BOX.paddingHorizontal),
107
+ marginBottom: theme.spacing(BOX.marginBottom),
108
+ borderRadius: theme.radius[BOX.radius],
109
+ borderCurve: "continuous",
110
+ fontFamily: theme.fontFamilies.body
111
+ },
112
+ empty: {
113
+ fontFamily: theme.fontFamilies.body,
114
+ fontSize: theme.fontSizes.sm,
115
+ lineHeight: theme.lineHeights.sm,
116
+ color: theme.colors.muted,
117
+ textAlign: "center",
118
+ paddingVertical: theme.spacing(4)
119
+ }
120
+ }),
121
+ variantTokens: VARIANT_TOKENS,
122
+ paint: (_theme, colors) => ({
123
+ search: {
124
+ backgroundColor: colors.bg,
125
+ color: colors.fg
126
+ }
127
+ }),
128
+ variants: {
129
+ size: {
130
+ sm: sizeAxis(SIZES.sm),
131
+ md: sizeAxis(SIZES.md),
132
+ lg: sizeAxis(SIZES.lg)
133
+ }
134
+ },
135
+ defaultVariants: {
136
+ variant: "default",
137
+ size: "md"
138
+ }
139
+ });
140
+
141
+ // src/components/autocomplete/autocomplete.tsx
142
+ var _jsxruntime = require('react/jsx-runtime');
143
+ var Autocomplete = _react.forwardRef.call(void 0, function Autocomplete2({
144
+ children,
145
+ variant,
146
+ size,
147
+ radius,
148
+ color,
149
+ value: controlledValue,
150
+ defaultValue,
151
+ onValueChange,
152
+ isOpen: controlledOpen,
153
+ defaultOpen = false,
154
+ onOpenChange,
155
+ query: controlledQuery,
156
+ defaultQuery = "",
157
+ onQueryChange,
158
+ isDisabled = false,
159
+ isInvalid = false,
160
+ asChild = false,
161
+ style,
162
+ ...props
163
+ }, ref) {
164
+ const theme = _chunkIIAQISBGcjs.useXAUITheme.call(void 0);
165
+ const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
166
+ const {
167
+ labelFor,
168
+ registerLabel
169
+ } = _chunkFJGPDWMScjs.useLabelRegistry.call(void 0);
170
+ const [anchor, setAnchor] = _react.useState.call(void 0, null);
171
+ const id = _react.useId.call(void 0);
172
+ const labelId = `${id}-label`;
173
+ const descriptionId = `${id}-description`;
174
+ const [value, setValue] = _chunk7EIHHOHPcjs.useControllableState.call(void 0, {
175
+ value: controlledValue,
176
+ defaultValue,
177
+ onChange: onValueChange
178
+ });
179
+ const [isOpen, setOpen] = _chunk7EIHHOHPcjs.useControllableState.call(void 0, {
180
+ value: controlledOpen,
181
+ defaultValue: defaultOpen,
182
+ onChange: onOpenChange
183
+ });
184
+ const [query, setQueryState] = _chunk7EIHHOHPcjs.useControllableState.call(void 0, {
185
+ value: controlledQuery,
186
+ defaultValue: defaultQuery,
187
+ onChange: onQueryChange
188
+ });
189
+ const selection = {
190
+ variant,
191
+ size,
192
+ radius,
193
+ isOpen: isOpen ? "true" : void 0,
194
+ isInvalid: isInvalid ? "true" : void 0
195
+ };
196
+ const styles = _chunkL4B6Z45Qcjs.selectRecipe.resolve({
197
+ theme,
198
+ selection
199
+ });
200
+ const pressed = _chunkL4B6Z45Qcjs.selectRecipe.resolve({
201
+ theme,
202
+ selection,
203
+ states: {
204
+ pressed: true
205
+ }
206
+ });
207
+ const tint = color ? _chunkL4B6Z45Qcjs.selectRecipe.tint({
208
+ theme,
209
+ color,
210
+ selection
211
+ }) : void 0;
212
+ const labelled = _chunkBKY5YQ7Wcjs.textFieldRecipe.resolve({
213
+ theme,
214
+ selection: {
215
+ size,
216
+ isInvalid: isInvalid ? "true" : void 0
217
+ },
218
+ states: {
219
+ disabled: isDisabled
220
+ }
221
+ });
222
+ const own = autocompleteRecipe.resolve({
223
+ theme,
224
+ selection: {
225
+ size
226
+ }
227
+ });
228
+ const ownTint = color ? autocompleteRecipe.tint({
229
+ theme,
230
+ color,
231
+ selection: {
232
+ size
233
+ }
234
+ }) : void 0;
235
+ const open = _react.useCallback.call(void 0, () => setOpen(true), [setOpen]);
236
+ const close = _react.useCallback.call(void 0, () => {
237
+ setOpen(false);
238
+ setQueryState("");
239
+ }, [setOpen, setQueryState]);
240
+ const toggle = _react.useCallback.call(void 0, () => isOpen ? close() : open(), [close, isOpen, open]);
241
+ const select = _react.useCallback.call(void 0, (next, label) => {
242
+ if (label !== void 0) registerLabel(next, label);
243
+ setValue(next);
244
+ close();
245
+ }, [close, registerLabel, setValue]);
246
+ const context = _react.useMemo.call(void 0, () => {
247
+ const indicator = _reactnative.StyleSheet.flatten([styles.indicator, _optionalChain([tint, 'optionalAccess', _ => _.indicator])]);
248
+ const tintedPlaceholder = tint ? _reactnative.StyleSheet.flatten([tint.value]).color : void 0;
249
+ return {
250
+ triggerStyle: tint ? [styles.trigger, tint.trigger] : styles.trigger,
251
+ triggerPressedStyle: pressed.trigger,
252
+ valueStyle: tint ? [styles.value, tint.value] : styles.value,
253
+ placeholderStyle: tint ? [styles.placeholder, {
254
+ color: tintedPlaceholder
255
+ }] : styles.placeholder,
256
+ indicatorStyle: styles.indicator,
257
+ overlayStyle: styles.overlay,
258
+ contentStyle: styles.content,
259
+ searchStyle: ownTint ? [own.search, ownTint.search] : own.search,
260
+ emptyStyle: own.empty,
261
+ itemStyle: styles.item,
262
+ itemPressedStyle: pressed.item,
263
+ itemLabelStyle: styles.itemLabel,
264
+ labelStyle: labelled.label,
265
+ descriptionStyle: labelled.description,
266
+ errorStyle: labelled.error,
267
+ glyph: {
268
+ size: indicator.fontSize,
269
+ color: typeof indicator.color === "string" ? indicator.color : void 0
270
+ },
271
+ placeholderColor: _reactnative.StyleSheet.flatten([styles.placeholder]).color,
272
+ value,
273
+ query,
274
+ setQuery: setQueryState,
275
+ isOpen,
276
+ isDisabled,
277
+ isInvalid,
278
+ open,
279
+ close,
280
+ toggle,
281
+ select,
282
+ anchor,
283
+ setAnchor,
284
+ labelFor,
285
+ registerLabel,
286
+ labelId,
287
+ descriptionId
288
+ };
289
+ }, [styles, pressed, tint, own, ownTint, labelled, labelId, descriptionId, value, query, setQueryState, isOpen, isDisabled, isInvalid, open, close, toggle, select, anchor, labelFor, registerLabel]);
290
+ const columnStyle = [labelled.root, styleProps, style];
291
+ const column = asChild ?
292
+ // R12 — the caller's element is the column.
293
+ /* @__PURE__ */
294
+ _jsxruntime.jsx.call(void 0, _chunkCDRGTUYFcjs.Slot, {
295
+ ref,
296
+ ...rest,
297
+ style: columnStyle,
298
+ children
299
+ }) : /* @__PURE__ */_jsxruntime.jsx.call(void 0, _reactnative.View, {
300
+ ref,
301
+ ...rest,
302
+ style: columnStyle,
303
+ children
304
+ });
305
+ return /* @__PURE__ */_jsxruntime.jsx.call(void 0, AutocompleteProvider, {
306
+ value: context,
307
+ children: column
308
+ });
309
+ });
310
+ Autocomplete.displayName = "XAUI.Autocomplete.Root";
311
+
312
+ // src/components/autocomplete/autocomplete-content.tsx
313
+
314
+ var _reactnativereanimated = require('react-native-reanimated');
315
+ var _reactnativereanimated2 = _interopRequireDefault(_reactnativereanimated);
316
+
317
+ // src/utils/filter-items.ts
318
+
319
+ function fold(text) {
320
+ return text.normalize("NFD").replace(/[̀-ͯ]/g, "").toLowerCase();
321
+ }
322
+ function matchesQuery(label, query) {
323
+ const needle = fold(query.trim());
324
+ return needle === "" || fold(label).includes(needle);
325
+ }
326
+ function filterItems(children, query, isItem2) {
327
+ const kept = [];
328
+ let matched = 0;
329
+ _react.Children.forEach(children, child => {
330
+ if (!_react.isValidElement.call(void 0, child) || !isItem2(child.type)) {
331
+ kept.push(child);
332
+ return;
333
+ }
334
+ const label = _chunkFJGPDWMScjs.readItemLabel.call(void 0, child.props);
335
+ if (label !== void 0 && !matchesQuery(label, query)) return;
336
+ matched += 1;
337
+ kept.push(child);
338
+ });
339
+ return {
340
+ children: kept,
341
+ matched
342
+ };
343
+ }
344
+
345
+ // src/components/autocomplete/autocomplete-empty.tsx
346
+
347
+ var AutocompleteEmpty = _react.forwardRef.call(void 0, function AutocompleteEmpty2({
348
+ children,
349
+ style,
350
+ ...props
351
+ }, ref) {
352
+ const {
353
+ emptyStyle
354
+ } = useAutocomplete();
355
+ const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
356
+ return /* @__PURE__ */_jsxruntime.jsx.call(void 0, _reactnative.Text, {
357
+ ref,
358
+ ...rest,
359
+ style: [emptyStyle, styleProps, style],
360
+ children
361
+ });
362
+ });
363
+ AutocompleteEmpty.displayName = "XAUI.Autocomplete.Empty";
364
+
365
+ // src/components/autocomplete/autocomplete-item.tsx
366
+
367
+ // src/components/autocomplete/autocomplete-item-label.tsx
368
+
369
+ var AutocompleteItemLabel = _react.forwardRef.call(void 0, function AutocompleteItemLabel2({
370
+ children,
371
+ style,
372
+ ...props
373
+ }, ref) {
374
+ const {
375
+ itemLabelStyle
376
+ } = useAutocomplete();
377
+ const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
378
+ return /* @__PURE__ */_jsxruntime.jsx.call(void 0, _reactnative.Text, {
379
+ ref,
380
+ ...rest,
381
+ style: [itemLabelStyle, styleProps, style],
382
+ children
383
+ });
384
+ });
385
+ AutocompleteItemLabel.displayName = "XAUI.Autocomplete.ItemLabel";
386
+
387
+ // src/components/autocomplete/autocomplete-item.tsx
388
+
389
+ var AutocompleteItem = _react.forwardRef.call(void 0, function AutocompleteItem2({
390
+ value,
391
+ label,
392
+ children,
393
+ isDisabled = false,
394
+ asChild = false,
395
+ accessibilityRole = "menuitem",
396
+ accessibilityState,
397
+ style,
398
+ onPress,
399
+ onPressIn,
400
+ onPressOut,
401
+ ...props
402
+ }, ref) {
403
+ const {
404
+ itemStyle,
405
+ itemPressedStyle,
406
+ value: selected,
407
+ isDisabled: isRootDisabled,
408
+ select
409
+ } = useAutocomplete();
410
+ const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
411
+ const [isPressed, press] = _chunk7DPL3ZDScjs.usePressState.call(void 0, {
412
+ onPressIn,
413
+ onPressOut
414
+ });
415
+ const isSelected = selected === value;
416
+ const disabled = isRootDisabled || isDisabled;
417
+ const handlePress = _react.useCallback.call(void 0, event => {
418
+ _optionalChain([onPress, 'optionalCall', _2 => _2(event)]);
419
+ select(value, _nullishCoalesce(_nullishCoalesce(label, () => _chunkFHNIGHN5cjs.childrenToString.call(void 0, children)), () => void 0));
420
+ }, [children, label, onPress, select, value]);
421
+ const context = _react.useMemo.call(void 0, () => ({
422
+ isSelected,
423
+ isPressed,
424
+ isDisabled: disabled
425
+ }), [isSelected, isPressed, disabled]);
426
+ const text = _chunkFHNIGHN5cjs.childrenToString.call(void 0, children);
427
+ return /* @__PURE__ */_jsxruntime.jsx.call(void 0, AutocompleteItemProvider, {
428
+ value: context,
429
+ children: /* @__PURE__ */_jsxruntime.jsx.call(void 0, _chunkHBYT7B47cjs.PressableFeedback, {
430
+ ref,
431
+ isPressed,
432
+ isDisabled: disabled,
433
+ asChild,
434
+ accessibilityRole,
435
+ accessibilityState: {
436
+ disabled,
437
+ selected: isSelected,
438
+ ...accessibilityState
439
+ },
440
+ ...rest,
441
+ style: [itemStyle, isPressed && itemPressedStyle, styleProps, typeof style === "function" ? style({
442
+ pressed: isPressed
443
+ }) : style],
444
+ onPress: handlePress,
445
+ onPressIn: press.onPressIn,
446
+ onPressOut: press.onPressOut,
447
+ children: text !== null ? /* @__PURE__ */_jsxruntime.jsx.call(void 0, AutocompleteItemLabel, {
448
+ children: text
449
+ }) : children
450
+ })
451
+ });
452
+ });
453
+ AutocompleteItem.displayName = "XAUI.Autocomplete.Item";
454
+
455
+ // src/components/autocomplete/autocomplete-search.tsx
456
+
457
+ var AutocompleteSearch = _react.forwardRef.call(void 0, function AutocompleteSearch2({
458
+ autoFocus = true,
459
+ style,
460
+ ...props
461
+ }, ref) {
462
+ const {
463
+ searchStyle,
464
+ placeholderColor,
465
+ query,
466
+ setQuery,
467
+ isDisabled
468
+ } = useAutocomplete();
469
+ const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
470
+ return /* @__PURE__ */_jsxruntime.jsx.call(void 0, _reactnative.TextInput, {
471
+ ref,
472
+ value: query,
473
+ onChangeText: setQuery,
474
+ autoFocus,
475
+ editable: !isDisabled,
476
+ autoCorrect: false,
477
+ autoCapitalize: "none",
478
+ placeholderTextColor: placeholderColor,
479
+ accessibilityRole: "search",
480
+ ...rest,
481
+ style: [searchStyle, styleProps, style]
482
+ });
483
+ });
484
+ AutocompleteSearch.displayName = "XAUI.Autocomplete.Search";
485
+
486
+ // src/components/autocomplete/autocomplete-content.tsx
487
+
488
+ var DEFAULT_OFFSET = 8;
489
+ var DEFAULT_INSETS = {
490
+ top: 12,
491
+ bottom: 12,
492
+ start: 12,
493
+ end: 12
494
+ };
495
+ var isItem = type => type === AutocompleteItem;
496
+ var isSearch = type => type === AutocompleteSearch;
497
+ var isEmpty = type => type === AutocompleteEmpty;
498
+ var AutocompleteContent = _react.forwardRef.call(void 0, function AutocompleteContent2({
499
+ children,
500
+ placement = "bottom",
501
+ align = "center",
502
+ width = "trigger",
503
+ offset = DEFAULT_OFFSET,
504
+ alignOffset = 0,
505
+ avoidCollisions = true,
506
+ insets,
507
+ style,
508
+ onLayout,
509
+ ...props
510
+ }, ref) {
511
+ const context = useAutocomplete();
512
+ const {
513
+ contentStyle,
514
+ isOpen,
515
+ anchor,
516
+ query,
517
+ registerLabel
518
+ } = context;
519
+ const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
520
+ const {
521
+ position,
522
+ onContentLayout,
523
+ measuringStyle
524
+ } = _chunkYVYYONTPcjs.useAnchoredPosition.call(void 0, {
525
+ anchor,
526
+ isOpen,
527
+ placement,
528
+ align,
529
+ width,
530
+ offset,
531
+ alignOffset,
532
+ avoidCollisions,
533
+ insets: {
534
+ ...DEFAULT_INSETS,
535
+ ...insets
536
+ },
537
+ onLayout
538
+ });
539
+ _react.useEffect.call(void 0, () => {
540
+ for (const [value, label] of _chunkFJGPDWMScjs.collectItemLabels.call(void 0, children, isItem)) {
541
+ registerLabel(value, label);
542
+ }
543
+ }, [children, registerLabel]);
544
+ const {
545
+ search,
546
+ empty,
547
+ rest: listed
548
+ } = _react.useMemo.call(void 0, () => partition(children), [children]);
549
+ const {
550
+ children: results,
551
+ matched
552
+ } = _react.useMemo.call(void 0, () => filterItems(listed, query, isItem), [listed, query]);
553
+ if (!isOpen || anchor === null) return null;
554
+ return /* @__PURE__ */_jsxruntime.jsx.call(void 0, _chunkWDDXU3OHcjs.Portal, {
555
+ children: /* @__PURE__ */_jsxruntime.jsx.call(void 0, AutocompleteProvider, {
556
+ value: context,
557
+ children: /* @__PURE__ */_jsxruntime.jsxs.call(void 0, _reactnativereanimated2.default.View, {
558
+ ref,
559
+ entering: position ? _chunkEKS3W46Mcjs.anchoredEntering.call(void 0, position.placement) : void 0,
560
+ exiting: position ? _chunkEKS3W46Mcjs.anchoredExiting.call(void 0, position.placement) : void 0,
561
+ onLayout: onContentLayout,
562
+ ...rest,
563
+ style: [contentStyle, position === null ? measuringStyle : {
564
+ top: position.top,
565
+ start: position.start,
566
+ width: position.width,
567
+ maxHeight: position.maxHeight
568
+ }, styleProps, style],
569
+ children: [search, /* @__PURE__ */_jsxruntime.jsx.call(void 0, _reactnative.ScrollView, {
570
+ bounces: false,
571
+ keyboardShouldPersistTaps: "handled",
572
+ showsVerticalScrollIndicator: false,
573
+ children: matched === 0 && empty !== null ? empty : results
574
+ })]
575
+ }, _nullishCoalesce(_optionalChain([position, 'optionalAccess', _3 => _3.placement]), () => "measuring"))
576
+ })
577
+ });
578
+ });
579
+ AutocompleteContent.displayName = "XAUI.Autocomplete.Content";
580
+ function partition(children) {
581
+ let search = null;
582
+ let empty = null;
583
+ const rest = [];
584
+ _react.Children.forEach(children, child => {
585
+ if (_react.isValidElement.call(void 0, child) && isSearch(child.type)) {
586
+ search = child;
587
+ return;
588
+ }
589
+ if (_react.isValidElement.call(void 0, child) && isEmpty(child.type)) {
590
+ empty = child;
591
+ return;
592
+ }
593
+ rest.push(child);
594
+ });
595
+ return {
596
+ search,
597
+ empty,
598
+ rest
599
+ };
600
+ }
601
+
602
+ // src/components/autocomplete/autocomplete-description.tsx
603
+
604
+ var AutocompleteDescription = _react.forwardRef.call(void 0, function AutocompleteDescription2({
605
+ children,
606
+ style,
607
+ nativeID,
608
+ ...props
609
+ }, ref) {
610
+ const {
611
+ descriptionStyle,
612
+ descriptionId
613
+ } = useAutocomplete();
614
+ const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
615
+ return /* @__PURE__ */_jsxruntime.jsx.call(void 0, _reactnative.Text, {
616
+ ref,
617
+ nativeID: _nullishCoalesce(nativeID, () => descriptionId),
618
+ style: [descriptionStyle, styleProps, style],
619
+ ...rest,
620
+ children
621
+ });
622
+ });
623
+ AutocompleteDescription.displayName = "XAUI.Autocomplete.Description";
624
+
625
+ // src/components/autocomplete/autocomplete-error.tsx
626
+
627
+ var AutocompleteError = _react.forwardRef.call(void 0, function AutocompleteError2({
628
+ children,
629
+ style,
630
+ ...props
631
+ }, ref) {
632
+ const {
633
+ errorStyle
634
+ } = useAutocomplete();
635
+ const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
636
+ return /* @__PURE__ */_jsxruntime.jsx.call(void 0, _reactnative.Text, {
637
+ ref,
638
+ style: [errorStyle, styleProps, style],
639
+ ...rest,
640
+ children
641
+ });
642
+ });
643
+ AutocompleteError.displayName = "XAUI.Autocomplete.Error";
644
+
645
+ // src/components/autocomplete/autocomplete-indicator.tsx
646
+ const _worklet_11757462218469_init_data = {
647
+ code: "function chunkQRH45OO3Cjs1(){const{_reactnativereanimated,progress,_chunkEKS3W46Mcjs}=this.__closure;return{transform:[{rotate:_reactnativereanimated.interpolate.call(void 0,progress.get(),[0,1],[_chunkEKS3W46Mcjs.INDICATOR_ROTATION[0],_chunkEKS3W46Mcjs.INDICATOR_ROTATION[1]])+\"deg\"}]};}",
648
+ location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-QRH45OO3.cjs",
649
+ sourceMap: "{\"version\":3,\"names\":[\"chunkQRH45OO3Cjs1\",\"_reactnativereanimated\",\"progress\",\"_chunkEKS3W46Mcjs\",\"__closure\",\"transform\",\"rotate\",\"interpolate\",\"call\",\"get\",\"INDICATOR_ROTATION\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-QRH45OO3.cjs\"],\"mappings\":\"AAwlBwE,SAAAA,iBAAMA,CAAA,QAAAC,sBAAA,CAAAC,QAAA,CAAAC,iBAAA,OAAAC,SAAA,CAE1E,MAAO,CACLC,SAAS,CAAE,CACT,CACEC,MAAM,CAAKL,sBAAsB,CAACM,WAAW,CAACC,IAAI,CAAC,IAAK,EAAC,CAAEN,QAAQ,CAACO,GAAG,CAAC,CAAC,CAAE,CAAC,CAAC,CAAE,CAAC,CAAC,CAAE,CAACN,iBAAiB,CAACO,kBAAkB,CAAC,CAAC,CAAC,CAAEP,iBAAiB,CAACO,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC,MACxK,CAAC,CAEL,CAAC,CACH\",\"ignoreList\":[]}"
650
+ };
651
+ function AutocompleteIndicator(props) {
652
+ const {
653
+ as = _chunkGSZDN6EZcjs.ChevronDownIcon
654
+ } = props;
655
+ const {
656
+ indicatorStyle,
657
+ isOpen
658
+ } = useAutocomplete();
659
+ const progress = _reactnativereanimated.useSharedValue.call(void 0, isOpen ? 1 : 0);
660
+ _react.useEffect.call(void 0, () => {
661
+ progress.set(_reactnativereanimated.withSpring.call(void 0, isOpen ? 1 : 0, _chunkEKS3W46Mcjs.INDICATOR_SPRING));
662
+ }, [isOpen, progress]);
663
+ const rotation = _reactnativereanimated.useAnimatedStyle.call(void 0, function chunkQRH45OO3Cjs1Factory({
664
+ _worklet_11757462218469_init_data,
665
+ _reactnativereanimated,
666
+ progress,
667
+ _chunkEKS3W46Mcjs
668
+ }) {
669
+ const _e = [new global.Error(), -4, -27];
670
+ const chunkQRH45OO3Cjs1 = function () {
671
+ return {
672
+ transform: [{
673
+ rotate: `${_reactnativereanimated.interpolate.call(void 0, progress.get(), [0, 1], [_chunkEKS3W46Mcjs.INDICATOR_ROTATION[0], _chunkEKS3W46Mcjs.INDICATOR_ROTATION[1]])}deg`
674
+ }]
675
+ };
676
+ };
677
+ chunkQRH45OO3Cjs1.__closure = {
678
+ _reactnativereanimated,
679
+ progress,
680
+ _chunkEKS3W46Mcjs
681
+ };
682
+ chunkQRH45OO3Cjs1.__workletHash = 11757462218469;
683
+ chunkQRH45OO3Cjs1.__pluginVersion = "0.7.4";
684
+ chunkQRH45OO3Cjs1.__initData = _worklet_11757462218469_init_data;
685
+ chunkQRH45OO3Cjs1.__stackDetails = _e;
686
+ return chunkQRH45OO3Cjs1;
687
+ }({
688
+ _worklet_11757462218469_init_data,
689
+ _reactnativereanimated,
690
+ progress,
691
+ _chunkEKS3W46Mcjs
692
+ }), [progress]);
693
+ return /* @__PURE__ */_jsxruntime.jsx.call(void 0, _reactnativereanimated2.default.View, {
694
+ style: [indicatorStyle, rotation],
695
+ children: /* @__PURE__ */_jsxruntime.jsx.call(void 0, _chunkGSZDN6EZcjs.Icon, {
696
+ as
697
+ })
698
+ });
699
+ }
700
+ AutocompleteIndicator.displayName = "XAUI.Autocomplete.Indicator";
701
+
702
+ // src/components/autocomplete/autocomplete-label.tsx
703
+
704
+ var AutocompleteLabel = _react.forwardRef.call(void 0, function AutocompleteLabel2({
705
+ children,
706
+ style,
707
+ nativeID,
708
+ ...props
709
+ }, ref) {
710
+ const {
711
+ labelStyle,
712
+ labelId
713
+ } = useAutocomplete();
714
+ const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
715
+ return /* @__PURE__ */_jsxruntime.jsx.call(void 0, _reactnative.Text, {
716
+ ref,
717
+ nativeID: _nullishCoalesce(nativeID, () => labelId),
718
+ style: [labelStyle, styleProps, style],
719
+ ...rest,
720
+ children
721
+ });
722
+ });
723
+ AutocompleteLabel.displayName = "XAUI.Autocomplete.Label";
724
+
725
+ // src/components/autocomplete/autocomplete-overlay.tsx
726
+
727
+ var AnimatedPressable = _reactnativereanimated2.default.createAnimatedComponent(_reactnative.Pressable);
728
+ var AutocompleteOverlay = _react.forwardRef.call(void 0, function AutocompleteOverlay2({
729
+ children,
730
+ style,
731
+ ...props
732
+ }, ref) {
733
+ const context = useAutocomplete();
734
+ const {
735
+ overlayStyle,
736
+ isOpen,
737
+ close
738
+ } = context;
739
+ const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
740
+ if (!isOpen) return null;
741
+ return /* @__PURE__ */_jsxruntime.jsx.call(void 0, _chunkWDDXU3OHcjs.Portal, {
742
+ children: /* @__PURE__ */_jsxruntime.jsx.call(void 0, AutocompleteProvider, {
743
+ value: context,
744
+ children: /* @__PURE__ */_jsxruntime.jsx.call(void 0, AnimatedPressable, {
745
+ ref,
746
+ entering: _chunkEKS3W46Mcjs.overlayEntering,
747
+ exiting: _chunkEKS3W46Mcjs.overlayExiting,
748
+ accessibilityRole: "none",
749
+ importantForAccessibility: "no",
750
+ onPress: close,
751
+ ...rest,
752
+ style: [overlayStyle, styleProps, style],
753
+ children
754
+ })
755
+ })
756
+ });
757
+ });
758
+ AutocompleteOverlay.displayName = "XAUI.Autocomplete.Overlay";
759
+
760
+ // src/components/autocomplete/autocomplete-trigger.tsx
761
+
762
+ var AutocompleteTrigger = _react.forwardRef.call(void 0, function AutocompleteTrigger2({
763
+ children,
764
+ asChild = false,
765
+ accessibilityRole = "combobox",
766
+ accessibilityState,
767
+ style,
768
+ onLayout,
769
+ onPressIn,
770
+ onPressOut,
771
+ onPress,
772
+ ...props
773
+ }, ref) {
774
+ const {
775
+ triggerStyle,
776
+ triggerPressedStyle,
777
+ glyph,
778
+ isOpen,
779
+ isDisabled,
780
+ isInvalid,
781
+ toggle,
782
+ setAnchor,
783
+ labelId,
784
+ descriptionId
785
+ } = useAutocomplete();
786
+ const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
787
+ const [isPressed, press] = _chunk7DPL3ZDScjs.usePressState.call(void 0, {
788
+ onPressIn,
789
+ onPressOut
790
+ });
791
+ const node = _react.useRef.call(void 0, null);
792
+ const refs = _chunkWFEMJCXOcjs.useMergedRef.call(void 0, node, ref);
793
+ const measure = _react.useCallback.call(void 0, () => {
794
+ _optionalChain([node, 'access', _4 => _4.current, 'optionalAccess', _5 => _5.measureInWindow, 'call', _6 => _6((x, y, width, height) => {
795
+ setAnchor({
796
+ x,
797
+ y,
798
+ width,
799
+ height
800
+ });
801
+ })]);
802
+ }, [setAnchor]);
803
+ const handleLayout = _react.useCallback.call(void 0, event => {
804
+ _optionalChain([onLayout, 'optionalCall', _7 => _7(event)]);
805
+ measure();
806
+ }, [measure, onLayout]);
807
+ _react.useEffect.call(void 0, () => {
808
+ if (isOpen) measure();
809
+ }, [isOpen, measure]);
810
+ const handlePress = _react.useCallback.call(void 0, event => {
811
+ _optionalChain([onPress, 'optionalCall', _8 => _8(event)]);
812
+ measure();
813
+ toggle();
814
+ }, [measure, onPress, toggle]);
815
+ return /* @__PURE__ */_jsxruntime.jsx.call(void 0, _chunkGSZDN6EZcjs.IconContext.Provider, {
816
+ value: glyph,
817
+ children: /* @__PURE__ */_jsxruntime.jsx.call(void 0, _chunkHBYT7B47cjs.PressableFeedback, {
818
+ ref: refs,
819
+ isPressed,
820
+ isDisabled,
821
+ asChild,
822
+ accessibilityRole,
823
+ accessibilityState: {
824
+ disabled: isDisabled,
825
+ expanded: isOpen,
826
+ ...accessibilityState
827
+ },
828
+ "aria-invalid": isInvalid || void 0,
829
+ "aria-labelledby": labelId,
830
+ "aria-describedby": descriptionId,
831
+ ...rest,
832
+ onLayout: handleLayout,
833
+ style: [triggerStyle, isPressed && triggerPressedStyle, styleProps, typeof style === "function" ? style({
834
+ pressed: isPressed
835
+ }) : style],
836
+ onPress: handlePress,
837
+ onPressIn: press.onPressIn,
838
+ onPressOut: press.onPressOut,
839
+ children
840
+ })
841
+ });
842
+ });
843
+ AutocompleteTrigger.displayName = "XAUI.Autocomplete.Trigger";
844
+
845
+ // src/components/autocomplete/autocomplete-value.tsx
846
+
847
+ var AutocompleteValue = _react.forwardRef.call(void 0, function AutocompleteValue2({
848
+ children,
849
+ placeholder,
850
+ style,
851
+ ...props
852
+ }, ref) {
853
+ const {
854
+ valueStyle,
855
+ placeholderStyle,
856
+ value,
857
+ labelFor
858
+ } = useAutocomplete();
859
+ const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
860
+ const label = _nullishCoalesce(children, () => value === void 0 ? void 0 : labelFor(value));
861
+ const isEmpty2 = label === void 0 || label === null;
862
+ return /* @__PURE__ */_jsxruntime.jsx.call(void 0, _reactnative.Text, {
863
+ ref,
864
+ numberOfLines: 1,
865
+ ...rest,
866
+ style: [isEmpty2 ? placeholderStyle : valueStyle, styleProps, style],
867
+ children: isEmpty2 ? placeholder : label
868
+ });
869
+ });
870
+ AutocompleteValue.displayName = "XAUI.Autocomplete.Value";
871
+
872
+ // src/components/autocomplete/index.ts
873
+ var Autocomplete3 = Object.assign(Autocomplete, {
874
+ Label: AutocompleteLabel,
875
+ Trigger: AutocompleteTrigger,
876
+ Value: AutocompleteValue,
877
+ Indicator: AutocompleteIndicator,
878
+ Overlay: AutocompleteOverlay,
879
+ Content: AutocompleteContent,
880
+ Search: AutocompleteSearch,
881
+ Item: AutocompleteItem,
882
+ ItemLabel: AutocompleteItemLabel,
883
+ Empty: AutocompleteEmpty,
884
+ Description: AutocompleteDescription,
885
+ Error: AutocompleteError
886
+ });
887
+ exports.useAutocomplete = useAutocomplete;
888
+ exports.useAutocompleteItem = useAutocompleteItem;
889
+ exports.autocompleteRecipe = autocompleteRecipe;
890
+ exports.Autocomplete = Autocomplete;
891
+ exports.AutocompleteEmpty = AutocompleteEmpty;
892
+ exports.AutocompleteItemLabel = AutocompleteItemLabel;
893
+ exports.AutocompleteItem = AutocompleteItem;
894
+ exports.AutocompleteSearch = AutocompleteSearch;
895
+ exports.AutocompleteContent = AutocompleteContent;
896
+ exports.AutocompleteDescription = AutocompleteDescription;
897
+ exports.AutocompleteError = AutocompleteError;
898
+ exports.AutocompleteIndicator = AutocompleteIndicator;
899
+ exports.AutocompleteLabel = AutocompleteLabel;
900
+ exports.AutocompleteOverlay = AutocompleteOverlay;
901
+ exports.AutocompleteTrigger = AutocompleteTrigger;
902
+ exports.AutocompleteValue = AutocompleteValue;
903
+ exports.Autocomplete2 = Autocomplete3;