@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,1054 @@
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 _chunk6ZWQDTGQcjs = require('./chunk-6ZWQDTGQ.cjs');
40
+ var _chunkISHMSP6Pcjs = require('./chunk-ISHMSP6P.cjs');
41
+ var _chunkWFEMJCXOcjs = require('./chunk-WFEMJCXO.cjs');
42
+ var _chunk7EIHHOHPcjs = require('./chunk-7EIHHOHP.cjs');
43
+ var _chunkHBYT7B47cjs = require('./chunk-HBYT7B47.cjs');
44
+ var _chunk7DPL3ZDScjs = require('./chunk-7DPL3ZDS.cjs');
45
+ var _chunkGSZDN6EZcjs = require('./chunk-GSZDN6EZ.cjs');
46
+ var _chunkFHNIGHN5cjs = require('./chunk-FHNIGHN5.cjs');
47
+ var _chunkSL3V7R2Ycjs = require('./chunk-SL3V7R2Y.cjs');
48
+ var _chunkCDRGTUYFcjs = require('./chunk-CDRGTUYF.cjs');
49
+ var _chunkIIAQISBGcjs = require('./chunk-IIAQISBG.cjs');
50
+ var _chunkTK44VBIEcjs = require('./chunk-TK44VBIE.cjs');
51
+
52
+ // src/components/agenda-calendar/agenda-calendar-day.tsx
53
+ var _react = require('react');
54
+ var _reactnative = require('react-native');
55
+
56
+ // src/components/agenda-calendar/agenda-calendar.context.ts
57
+ var [AgendaCalendarProvider, useAgendaCalendar] = _chunkCDRGTUYFcjs.createSlotContext.call(void 0, "AgendaCalendar");
58
+
59
+ // src/components/agenda-calendar/agenda-calendar-day.tsx
60
+ var _jsxruntime = require('react/jsx-runtime');
61
+ var AgendaCalendarDay = _react.forwardRef.call(void 0, function AgendaCalendarDay2({
62
+ date,
63
+ children,
64
+ isDisabled,
65
+ accessibilityRole,
66
+ accessibilityState,
67
+ accessibilityLabel,
68
+ style,
69
+ onPress,
70
+ onPressIn,
71
+ onPressOut,
72
+ ...props
73
+ }, ref) {
74
+ const {
75
+ dayStyle,
76
+ daySelectedStyle,
77
+ dayLabelStyle,
78
+ dayLabelSelectedStyle,
79
+ dayLabelMutedStyle,
80
+ dotStyle,
81
+ dotSelectedStyle,
82
+ value,
83
+ locale,
84
+ hasEvent,
85
+ isDayEnabled,
86
+ select
87
+ } = useAgendaCalendar();
88
+ const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
89
+ const [isPressed, press] = _chunk7DPL3ZDScjs.usePressState.call(void 0, {
90
+ onPressIn,
91
+ onPressOut
92
+ });
93
+ const isSelected = value !== void 0 && _chunkISHMSP6Pcjs.isSameDay.call(void 0, date, value);
94
+ const disabled = _nullishCoalesce(isDisabled, () => !isDayEnabled(date));
95
+ const marked = hasEvent(date);
96
+ const handlePress = _react.useCallback.call(void 0, event => {
97
+ select(date);
98
+ _optionalChain([onPress, 'optionalCall', _2 => _2(event)]);
99
+ }, [date, onPress, select]);
100
+ const label = _react.useMemo.call(void 0, () => fullDate(date, locale), [date, locale]);
101
+ const content = _nullishCoalesce(children, () => (/* @__PURE__ */_jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, {
102
+ children: [/* @__PURE__ */_jsxruntime.jsx.call(void 0, _reactnative.Text, {
103
+ style: [dayLabelStyle, disabled && dayLabelMutedStyle, isSelected && dayLabelSelectedStyle],
104
+ children: date.getDate()
105
+ }), marked ? /* @__PURE__ */_jsxruntime.jsx.call(void 0, _reactnative.View, {
106
+ style: isSelected ? dotSelectedStyle : dotStyle
107
+ }) : null]
108
+ })));
109
+ return /* @__PURE__ */_jsxruntime.jsx.call(void 0, _chunkHBYT7B47cjs.PressableFeedback, {
110
+ ref,
111
+ isPressed,
112
+ isDisabled: disabled,
113
+ accessibilityRole: _nullishCoalesce(accessibilityRole, () => "button"),
114
+ accessibilityLabel: _nullishCoalesce(accessibilityLabel, () => marked ? `${label} \u2014 ${MARKED_SUFFIX}` : label),
115
+ accessibilityState: {
116
+ disabled,
117
+ selected: isSelected,
118
+ ...accessibilityState
119
+ },
120
+ ...rest,
121
+ style: [dayStyle, isSelected && daySelectedStyle, styleProps, typeof style === "function" ? style({
122
+ pressed: isPressed
123
+ }) : style],
124
+ onPress: handlePress,
125
+ onPressIn: press.onPressIn,
126
+ onPressOut: press.onPressOut,
127
+ children: content
128
+ });
129
+ });
130
+ AgendaCalendarDay.displayName = "XAUI.AgendaCalendar.Day";
131
+ var MARKED_SUFFIX = "has events";
132
+ function fullDate(date, locale) {
133
+ try {
134
+ return new Intl.DateTimeFormat(locale, {
135
+ weekday: "long",
136
+ day: "numeric",
137
+ month: "long",
138
+ year: "numeric"
139
+ }).format(date);
140
+ } catch (e) {
141
+ return `${date.getDate()} ${_chunkISHMSP6Pcjs.monthLabel.call(void 0, date, locale)}`;
142
+ }
143
+ }
144
+
145
+ // src/components/agenda-calendar/agenda-calendar-header.tsx
146
+
147
+ var AgendaCalendarHeader = _react.forwardRef.call(void 0, function AgendaCalendarHeader2({
148
+ children,
149
+ style,
150
+ ...props
151
+ }, ref) {
152
+ const {
153
+ headerStyle,
154
+ glyph
155
+ } = useAgendaCalendar();
156
+ const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
157
+ return /* @__PURE__ */_jsxruntime.jsx.call(void 0, _chunkGSZDN6EZcjs.IconContext.Provider, {
158
+ value: glyph,
159
+ children: /* @__PURE__ */_jsxruntime.jsx.call(void 0, _reactnative.View, {
160
+ ref,
161
+ ...rest,
162
+ style: [headerStyle, styleProps, style],
163
+ children
164
+ })
165
+ });
166
+ });
167
+ AgendaCalendarHeader.displayName = "XAUI.AgendaCalendar.Header";
168
+
169
+ // src/components/agenda-calendar/agenda-calendar-month-picker.tsx
170
+
171
+ var _reactnativereanimated = require('react-native-reanimated');
172
+ var _reactnativereanimated2 = _interopRequireDefault(_reactnativereanimated);
173
+ var AnimatedScrollView = _reactnativereanimated2.default.createAnimatedComponent(_reactnative.ScrollView);
174
+ var MIDDLE = 3;
175
+ var OPEN_MS = 160;
176
+ var AgendaCalendarMonthPicker = _react.forwardRef.call(void 0, function AgendaCalendarMonthPicker2({
177
+ format = "short",
178
+ style,
179
+ contentContainerStyle,
180
+ ...props
181
+ }, ref) {
182
+ const {
183
+ pickerStyle,
184
+ pickerItemStyle,
185
+ pickerItemSelectedStyle,
186
+ pickerItemLabelStyle,
187
+ pickerItemLabelSelectedStyle,
188
+ days,
189
+ locale,
190
+ canGoByMonths,
191
+ goToMonthInYear
192
+ } = useAgendaCalendar();
193
+ const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
194
+ const theme = _chunkIIAQISBGcjs.useXAUITheme.call(void 0);
195
+ const names = _react.useMemo.call(void 0, () => _chunkISHMSP6Pcjs.monthNames.call(void 0, locale, format), [locale, format]);
196
+ const shownMonth = days[MIDDLE].getMonth();
197
+ return /* @__PURE__ */_jsxruntime.jsx.call(void 0, AnimatedScrollView, {
198
+ ref,
199
+ ...rest,
200
+ horizontal: true,
201
+ style: [pickerStyle, styleProps, style],
202
+ contentContainerStyle: [{
203
+ alignItems: "center",
204
+ gap: theme.spacing(2)
205
+ }, contentContainerStyle],
206
+ showsHorizontalScrollIndicator: false,
207
+ entering: _reactnativereanimated.FadeIn.duration(OPEN_MS),
208
+ children: names.map((name, index) => {
209
+ const disabled = !canGoByMonths(index - shownMonth);
210
+ const isSelected = index === shownMonth;
211
+ return /* @__PURE__ */_jsxruntime.jsx.call(void 0, _chunkHBYT7B47cjs.PressableFeedback, {
212
+ isDisabled: disabled,
213
+ accessibilityRole: "button",
214
+ accessibilityLabel: name,
215
+ accessibilityState: {
216
+ selected: isSelected,
217
+ disabled
218
+ },
219
+ style: [pickerItemStyle, isSelected && pickerItemSelectedStyle],
220
+ onPress: () => goToMonthInYear(index),
221
+ children: /* @__PURE__ */_jsxruntime.jsx.call(void 0, _reactnative.Text, {
222
+ numberOfLines: 1,
223
+ style: [pickerItemLabelStyle, isSelected && pickerItemLabelSelectedStyle],
224
+ children: name
225
+ })
226
+ }, name);
227
+ })
228
+ });
229
+ });
230
+ AgendaCalendarMonthPicker.displayName = "XAUI.AgendaCalendar.MonthPicker";
231
+
232
+ // src/components/agenda-calendar/agenda-calendar-nav.tsx
233
+
234
+ var AgendaCalendarNav = _react.forwardRef.call(void 0, function AgendaCalendarNav2({
235
+ children,
236
+ style,
237
+ ...props
238
+ }, ref) {
239
+ const {
240
+ navStyle
241
+ } = useAgendaCalendar();
242
+ const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
243
+ return /* @__PURE__ */_jsxruntime.jsx.call(void 0, _reactnative.View, {
244
+ ref,
245
+ ...rest,
246
+ style: [navStyle, styleProps, style],
247
+ children
248
+ });
249
+ });
250
+ AgendaCalendarNav.displayName = "XAUI.AgendaCalendar.Nav";
251
+
252
+ // src/components/agenda-calendar/agenda-calendar-nav-button.tsx
253
+
254
+ var sheet = _reactnative.StyleSheet.create({
255
+ back: {
256
+ transform: [{
257
+ rotate: "90deg"
258
+ }]
259
+ },
260
+ forward: {
261
+ transform: [{
262
+ rotate: "-90deg"
263
+ }]
264
+ }
265
+ });
266
+ function navButton(step, name, rotation) {
267
+ const Component = _react.forwardRef.call(void 0, function NavButton({
268
+ children,
269
+ step: overrideStep,
270
+ accessibilityRole,
271
+ accessibilityState,
272
+ style,
273
+ onPress,
274
+ onPressIn,
275
+ onPressOut,
276
+ ...props
277
+ }, ref) {
278
+ const {
279
+ navButtonStyle,
280
+ page,
281
+ canPage,
282
+ isDisabled
283
+ } = useAgendaCalendar();
284
+ const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
285
+ const [isPressed, press] = _chunk7DPL3ZDScjs.usePressState.call(void 0, {
286
+ onPressIn,
287
+ onPressOut
288
+ });
289
+ const steps = _nullishCoalesce(overrideStep, () => step);
290
+ const disabled = isDisabled || !canPage(steps);
291
+ return /* @__PURE__ */_jsxruntime.jsx.call(void 0, _chunkHBYT7B47cjs.PressableFeedback, {
292
+ ref,
293
+ isPressed,
294
+ isDisabled: disabled,
295
+ accessibilityRole: _nullishCoalesce(accessibilityRole, () => "button"),
296
+ accessibilityState: {
297
+ disabled,
298
+ ...accessibilityState
299
+ },
300
+ ...rest,
301
+ style: [navButtonStyle, styleProps, style],
302
+ onPress: event => {
303
+ _optionalChain([onPress, 'optionalCall', _3 => _3(event)]);
304
+ page(steps);
305
+ },
306
+ onPressIn: press.onPressIn,
307
+ onPressOut: press.onPressOut,
308
+ children: _nullishCoalesce(children, () => (/* @__PURE__ */_jsxruntime.jsx.call(void 0, _reactnative.View, {
309
+ style: rotation,
310
+ children: /* @__PURE__ */_jsxruntime.jsx.call(void 0, _chunkGSZDN6EZcjs.Icon, {
311
+ as: _chunkGSZDN6EZcjs.ChevronDownIcon
312
+ })
313
+ })))
314
+ });
315
+ });
316
+ Component.displayName = name;
317
+ return Component;
318
+ }
319
+ var AgendaCalendarPreviousButton = navButton(-1, "XAUI.AgendaCalendar.PreviousButton", sheet.back);
320
+ var AgendaCalendarNextButton = navButton(1, "XAUI.AgendaCalendar.NextButton", sheet.forward);
321
+
322
+ // src/components/agenda-calendar/agenda-calendar.tsx
323
+
324
+ // src/components/agenda-calendar/agenda-calendar.recipe.ts
325
+ var SLOTS = ["root", "header", "nav", "navButton", "today", "todayDisabled", "todayLabel", "week", "picker", "pickerItem"];
326
+ var VARIANT_TOKENS = {
327
+ // The four the `Calendar` declares, answered on the pill rather than on a disc. The
328
+ // variant is a level of emphasis, and the two controls it reaches are the chosen day and
329
+ // this button — a strip whose chosen day is a soft wash under a pill that kept a hard
330
+ // accent border is two variants on one card.
331
+ //
332
+ // The emphasis runs the other way round from a `Button`'s, and on purpose: `primary`
333
+ // outlines rather than fills. The pill sits between two bare chevrons, so the filled
334
+ // accent that makes a `Button` primary would read here as the primary action of the whole
335
+ // card — the accent goes on the word instead, which is where the strip's own accent is.
336
+ primary: {
337
+ border: "border",
338
+ fg: "accent"
339
+ },
340
+ secondary: {
341
+ bg: "accentSoft",
342
+ fg: "accentSoftForeground"
343
+ },
344
+ tertiary: {
345
+ bg: "default",
346
+ fg: "defaultForeground"
347
+ },
348
+ // No fill and no border: the word alone, as `ghost` means everywhere else.
349
+ ghost: {
350
+ fg: "foreground"
351
+ }
352
+ };
353
+ var SIZES = {
354
+ sm: {
355
+ button: 32,
356
+ today: "xs"
357
+ },
358
+ md: {
359
+ button: 36,
360
+ today: "sm"
361
+ },
362
+ lg: {
363
+ button: 40,
364
+ today: "md"
365
+ }
366
+ };
367
+ function sizeAxis(step) {
368
+ const {
369
+ button,
370
+ today
371
+ } = step;
372
+ return theme => ({
373
+ navButton: {
374
+ width: button,
375
+ height: button,
376
+ borderRadius: button / 2
377
+ },
378
+ // A pill the height of the strip's own cell and a nav button, so the row of months
379
+ // sits where the row of days did without the header shifting.
380
+ pickerItem: {
381
+ height: button,
382
+ paddingHorizontal: theme.spacing(3),
383
+ borderRadius: button / 2
384
+ },
385
+ today: {
386
+ height: button,
387
+ paddingHorizontal: theme.spacing(3),
388
+ borderRadius: button / 2
389
+ },
390
+ todayLabel: {
391
+ fontSize: theme.fontSizes[today],
392
+ lineHeight: theme.lineHeights[today]
393
+ },
394
+ // The header is at least a button tall whether or not it holds one, so a card with a
395
+ // bare title does not sit shorter than the one beside it.
396
+ header: {
397
+ minHeight: button
398
+ },
399
+ root: {
400
+ gap: theme.spacing(2)
401
+ }
402
+ });
403
+ }
404
+ var agendaCalendarRecipe = _chunkSL3V7R2Ycjs.createRecipe.call(void 0, {
405
+ slots: SLOTS,
406
+ base: theme => ({
407
+ root: {
408
+ width: "100%",
409
+ backgroundColor: theme.colors.surface,
410
+ borderRadius: theme.radius["2xl"],
411
+ padding: theme.spacing(3)
412
+ },
413
+ header: {
414
+ flexDirection: "row",
415
+ alignItems: "center",
416
+ justifyContent: "space-between",
417
+ gap: theme.spacing(2)
418
+ },
419
+ /** The cluster on the trailing end: back, today, forward. */
420
+ nav: {
421
+ flexDirection: "row",
422
+ alignItems: "center",
423
+ gap: theme.spacing(1)
424
+ },
425
+ navButton: {
426
+ alignItems: "center",
427
+ justifyContent: "center"
428
+ },
429
+ // The box only. Whether it is outlined, washed or bare is the variant's, below.
430
+ today: {
431
+ alignItems: "center",
432
+ justifyContent: "center"
433
+ },
434
+ todayLabel: {
435
+ fontFamily: theme.fontFamilies.body,
436
+ fontWeight: theme.fontWeights.medium
437
+ },
438
+ week: {
439
+ flexDirection: "row"
440
+ },
441
+ // A row that scrolls sideways where the week was. `flexGrow: 0` so the `ScrollView`
442
+ // does not eat the height the card gives it; the gap between pills is the
443
+ // `contentContainerStyle`'s, which a `ScrollView` refuses on its own style.
444
+ picker: {
445
+ flexGrow: 0
446
+ },
447
+ pickerItem: {
448
+ alignItems: "center",
449
+ justifyContent: "center"
450
+ },
451
+ // The pill goes dead once this week is the one on screen, and that is a **per-button**
452
+ // state rather than the recipe's `disabled` — which dims the whole card. Without a look
453
+ // of its own it would read as pressable and do nothing, which is the state the button
454
+ // exists to avoid on the chevrons beside it.
455
+ todayDisabled: {
456
+ opacity: theme.opacity.disabled
457
+ }
458
+ }),
459
+ variantTokens: VARIANT_TOKENS,
460
+ // The `Button`'s own paint, one slot down: the border's *width* follows the presence of
461
+ // the border role rather than a per-variant flag, because which variant outlines is
462
+ // already stated in the table above. `undefined` where a variant names no `bg` is the
463
+ // transparent the outlined and the bare pill both want.
464
+ paint: (theme, colors) => ({
465
+ today: {
466
+ backgroundColor: colors.bg,
467
+ borderColor: colors.border,
468
+ borderWidth: colors.border ? theme.borderWidth.default : 0
469
+ },
470
+ todayLabel: {
471
+ color: colors.fg
472
+ }
473
+ }),
474
+ variants: {
475
+ size: {
476
+ sm: sizeAxis(SIZES.sm),
477
+ md: sizeAxis(SIZES.md),
478
+ lg: sizeAxis(SIZES.lg)
479
+ },
480
+ /** The card's own corner, not the chosen day's — that one is the calendar's. */
481
+ radius: _chunkSL3V7R2Ycjs.radiusAxis.call(void 0, "root")
482
+ },
483
+ states: {
484
+ disabled: theme => ({
485
+ root: {
486
+ opacity: theme.opacity.disabled
487
+ }
488
+ })
489
+ },
490
+ // The `Calendar`'s default, because the two resolve from the same `variant` prop and a
491
+ // card whose strip defaulted to one and whose pill to another is not one component.
492
+ // Naming it is also what makes `paint` and `tint` run at all — without a variant both are
493
+ // handed no colours, and the pill loses its word to RN's black.
494
+ defaultVariants: {
495
+ variant: "primary",
496
+ size: "md"
497
+ }
498
+ });
499
+
500
+ // src/components/agenda-calendar/agenda-calendar.tsx
501
+
502
+ var DAYS_IN_WEEK = 7;
503
+ var MONTHS_IN_YEAR = 12;
504
+ var DEFAULT_YEAR_SPAN = 50;
505
+ var AgendaCalendarRoot = _react.forwardRef.call(void 0, function AgendaCalendar({
506
+ children,
507
+ variant,
508
+ size = "md",
509
+ radius,
510
+ color,
511
+ value: controlledValue,
512
+ defaultValue,
513
+ onValueChange,
514
+ week: controlledWeek,
515
+ defaultWeek,
516
+ onWeekChange,
517
+ view: controlledView,
518
+ defaultView,
519
+ onViewChange,
520
+ events,
521
+ minValue,
522
+ maxValue,
523
+ firstDayOfWeek,
524
+ locale,
525
+ isDisabled = false,
526
+ asChild = false,
527
+ style,
528
+ ...props
529
+ }, ref) {
530
+ const theme = _chunkIIAQISBGcjs.useXAUITheme.call(void 0);
531
+ const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
532
+ const [value, setValue] = _chunk7EIHHOHPcjs.useControllableState.call(void 0, {
533
+ value: controlledValue,
534
+ defaultValue,
535
+ onChange: onValueChange
536
+ });
537
+ const [fallbackWeek] = _react.useState.call(void 0, () => _chunkISHMSP6Pcjs.startOfDay.call(void 0, _nullishCoalesce(defaultValue, () => (/* @__PURE__ */new Date()))));
538
+ const [week, setWeek] = _chunk7EIHHOHPcjs.useControllableState.call(void 0, {
539
+ value: controlledWeek,
540
+ defaultValue: _nullishCoalesce(defaultWeek, () => fallbackWeek),
541
+ onChange: onWeekChange
542
+ });
543
+ const [view, setView] = _chunk7EIHHOHPcjs.useControllableState.call(void 0, {
544
+ value: controlledView,
545
+ defaultValue: _nullishCoalesce(defaultView, () => "week"),
546
+ onChange: onViewChange
547
+ });
548
+ const resolvedLocale = _nullishCoalesce(locale, () => deviceLocale());
549
+ const weekStart = _nullishCoalesce(firstDayOfWeek, () => _chunkISHMSP6Pcjs.firstDayOfWeekFor.call(void 0, resolvedLocale));
550
+ const selection = {
551
+ variant,
552
+ size,
553
+ radius
554
+ };
555
+ const cells = _chunk6ZWQDTGQcjs.calendarRecipe.resolve({
556
+ theme,
557
+ selection,
558
+ states: {
559
+ disabled: isDisabled
560
+ }
561
+ });
562
+ const cellTint = color ? _chunk6ZWQDTGQcjs.calendarRecipe.tint({
563
+ theme,
564
+ color,
565
+ selection
566
+ }) : void 0;
567
+ const styles = agendaCalendarRecipe.resolve({
568
+ theme,
569
+ selection,
570
+ states: {
571
+ disabled: isDisabled
572
+ }
573
+ });
574
+ const tint = color ? agendaCalendarRecipe.tint({
575
+ theme,
576
+ color,
577
+ selection
578
+ }) : void 0;
579
+ const days = _react.useMemo.call(void 0, () => _chunkISHMSP6Pcjs.weekGrid.call(void 0, week, weekStart), [week, weekStart]);
580
+ const marked = _react.useMemo.call(void 0, () => {
581
+ const keys = /* @__PURE__ */new Set();
582
+ for (const event of _nullishCoalesce(events, () => [])) keys.add(_chunkISHMSP6Pcjs.startOfDay.call(void 0, event).getTime());
583
+ return keys;
584
+ }, [events]);
585
+ const bounds = _react.useMemo.call(void 0, () => ({
586
+ min: minValue,
587
+ max: maxValue
588
+ }), [minValue, maxValue]);
589
+ const hasEvent = _react.useCallback.call(void 0, date => marked.has(_chunkISHMSP6Pcjs.startOfDay.call(void 0, date).getTime()), [marked]);
590
+ const isDayEnabled = _react.useCallback.call(void 0, date => !isDisabled && _chunkISHMSP6Pcjs.isWithinBounds.call(void 0, date, bounds), [bounds, isDisabled]);
591
+ const select = _react.useCallback.call(void 0, date => {
592
+ if (!_chunkISHMSP6Pcjs.isWithinBounds.call(void 0, date, bounds)) return;
593
+ setValue(_chunkISHMSP6Pcjs.startOfDay.call(void 0, date));
594
+ }, [bounds, setValue]);
595
+ const goByWeeks = _react.useCallback.call(void 0, step => {
596
+ if (step === 0) return;
597
+ setWeek(current => _chunkISHMSP6Pcjs.addDays.call(void 0, current, step * DAYS_IN_WEEK));
598
+ }, [setWeek]);
599
+ const canGoByWeeks = _react.useCallback.call(void 0, step => {
600
+ const target = _chunkISHMSP6Pcjs.weekGrid.call(void 0, _chunkISHMSP6Pcjs.addDays.call(void 0, week, step * DAYS_IN_WEEK), weekStart);
601
+ return target.some(day => _chunkISHMSP6Pcjs.isWithinBounds.call(void 0, day, bounds));
602
+ }, [bounds, week, weekStart]);
603
+ const goByMonths = _react.useCallback.call(void 0, step => {
604
+ if (step === 0) return;
605
+ setWeek(current => _chunkISHMSP6Pcjs.addMonths.call(void 0, current, step));
606
+ }, [setWeek]);
607
+ const canGoByMonths = _react.useCallback.call(void 0, step => {
608
+ const target = _chunkISHMSP6Pcjs.weekGrid.call(void 0, _chunkISHMSP6Pcjs.addMonths.call(void 0, week, step), weekStart);
609
+ return target.some(day => _chunkISHMSP6Pcjs.isWithinBounds.call(void 0, day, bounds));
610
+ }, [bounds, week, weekStart]);
611
+ const goByYears = _react.useCallback.call(void 0, step => {
612
+ if (step === 0) return;
613
+ setWeek(current => _chunkISHMSP6Pcjs.addMonths.call(void 0, current, step * MONTHS_IN_YEAR));
614
+ }, [setWeek]);
615
+ const canGoByYears = _react.useCallback.call(void 0, step => {
616
+ const target = _chunkISHMSP6Pcjs.weekGrid.call(void 0, _chunkISHMSP6Pcjs.addMonths.call(void 0, week, step * MONTHS_IN_YEAR), weekStart);
617
+ return target.some(day => _chunkISHMSP6Pcjs.isWithinBounds.call(void 0, day, bounds));
618
+ }, [bounds, week, weekStart]);
619
+ const page = _react.useCallback.call(void 0, step => {
620
+ if (view === "year") goByYears(step);else if (view === "month") goByMonths(step);else goByWeeks(step);
621
+ }, [view, goByYears, goByMonths, goByWeeks]);
622
+ const canPage = _react.useCallback.call(void 0, step => {
623
+ if (view === "year") return canGoByYears(step);
624
+ if (view === "month") return canGoByMonths(step);
625
+ return canGoByWeeks(step);
626
+ }, [view, canGoByYears, canGoByMonths, canGoByWeeks]);
627
+ const goToYear = _react.useCallback.call(void 0, year => {
628
+ setWeek(current => _chunkISHMSP6Pcjs.addMonths.call(void 0, current, (year - current.getFullYear()) * MONTHS_IN_YEAR));
629
+ setView("month");
630
+ }, [setWeek, setView]);
631
+ const goToMonthInYear = _react.useCallback.call(void 0, monthIndex => {
632
+ setWeek(current => _chunkISHMSP6Pcjs.addMonths.call(void 0, current, monthIndex - current.getMonth()));
633
+ setView("week");
634
+ }, [setWeek, setView]);
635
+ const yearRange = _react.useMemo.call(void 0, () => {
636
+ const now = (/* @__PURE__ */new Date()).getFullYear();
637
+ return {
638
+ first: _nullishCoalesce(_optionalChain([bounds, 'access', _4 => _4.min, 'optionalAccess', _5 => _5.getFullYear, 'call', _6 => _6()]), () => now - DEFAULT_YEAR_SPAN),
639
+ last: _nullishCoalesce(_optionalChain([bounds, 'access', _7 => _7.max, 'optionalAccess', _8 => _8.getFullYear, 'call', _9 => _9()]), () => now + DEFAULT_YEAR_SPAN)
640
+ };
641
+ }, [bounds.min, bounds.max]);
642
+ const goToToday = _react.useCallback.call(void 0, () => {
643
+ const today = _chunkISHMSP6Pcjs.startOfDay.call(void 0, /* @__PURE__ */new Date());
644
+ setWeek(today);
645
+ setView("week");
646
+ select(today);
647
+ }, [setWeek, setView, select]);
648
+ const isOnToday = _react.useMemo.call(void 0, () => _chunkISHMSP6Pcjs.isSameDay.call(void 0, _chunkISHMSP6Pcjs.startOfWeek.call(void 0, week, weekStart), _chunkISHMSP6Pcjs.startOfWeek.call(void 0, /* @__PURE__ */new Date(), weekStart)), [week, weekStart]);
649
+ const isTodayResolved = _react.useMemo.call(void 0, () => view === "week" && isOnToday && value !== void 0 && _chunkISHMSP6Pcjs.isSameDay.call(void 0, value, /* @__PURE__ */new Date()), [view, isOnToday, value]);
650
+ const context = _react.useMemo.call(void 0, () => {
651
+ const title = _reactnative.StyleSheet.flatten([cells.title]);
652
+ const disc = _reactnative.StyleSheet.flatten([cells.daySelected, _optionalChain([cellTint, 'optionalAccess', _10 => _10.daySelected])]);
653
+ return {
654
+ headerStyle: styles.header,
655
+ navStyle: styles.nav,
656
+ navButtonStyle: styles.navButton,
657
+ pickerStyle: styles.picker,
658
+ pickerItemStyle: styles.pickerItem,
659
+ pickerItemSelectedStyle: {
660
+ backgroundColor: disc.backgroundColor
661
+ },
662
+ pickerItemLabelStyle: cells.dayLabel,
663
+ pickerItemLabelSelectedStyle: cellTint ? [cells.dayLabelSelected, cellTint.dayLabelSelected] : cells.dayLabelSelected,
664
+ todayStyle: tint ? [styles.today, tint.today] : styles.today,
665
+ todayDisabledStyle: styles.todayDisabled,
666
+ todayLabelStyle: tint ? [styles.todayLabel, tint.todayLabel] : styles.todayLabel,
667
+ weekStyle: styles.week,
668
+ // The four below are the calendar's own slots, unchanged: same title, same column
669
+ // headings, same cell, same mark.
670
+ titleStyle: cells.title,
671
+ weekdaysStyle: cells.weekdays,
672
+ weekdayStyle: cells.weekday,
673
+ dayStyle: cells.day,
674
+ daySelectedStyle: cellTint ? [cells.daySelected, cellTint.daySelected] : cells.daySelected,
675
+ dayLabelStyle: cells.dayLabel,
676
+ dayLabelSelectedStyle: cellTint ? [cells.dayLabelSelected, cellTint.dayLabelSelected] : cells.dayLabelSelected,
677
+ dayLabelMutedStyle: cells.dayLabelMuted,
678
+ dotStyle: cells.dot,
679
+ // `dot` first, because the size axis puts the mark's width and corner there and a
680
+ // `dotSelected` handed over alone is a coloured node with no size.
681
+ dotSelectedStyle: [cells.dot, cellTint ? cellTint.dotSelected : cells.dotSelected],
682
+ glyph: {
683
+ size: title.fontSize,
684
+ color: typeof title.color === "string" ? title.color : void 0
685
+ },
686
+ days,
687
+ value,
688
+ locale: resolvedLocale,
689
+ isDisabled,
690
+ view,
691
+ setView,
692
+ hasEvent,
693
+ isDayEnabled,
694
+ select,
695
+ goByWeeks,
696
+ canGoByWeeks,
697
+ goByMonths,
698
+ canGoByMonths,
699
+ goByYears,
700
+ canGoByYears,
701
+ page,
702
+ canPage,
703
+ goToYear,
704
+ goToMonthInYear,
705
+ yearRange,
706
+ goToToday,
707
+ isOnToday,
708
+ isTodayResolved
709
+ };
710
+ }, [styles, tint, cells, cellTint, days, value, resolvedLocale, isDisabled, view, setView, hasEvent, isDayEnabled, select, goByWeeks, canGoByWeeks, goByMonths, canGoByMonths, goByYears, canGoByYears, page, canPage, goToYear, goToMonthInYear, yearRange, goToToday, isOnToday, isTodayResolved]);
711
+ const rootStyle = [styles.root, styleProps, style];
712
+ return /* @__PURE__ */_jsxruntime.jsx.call(void 0, AgendaCalendarProvider, {
713
+ value: context,
714
+ children: asChild ? /* @__PURE__ */_jsxruntime.jsx.call(void 0, _chunkCDRGTUYFcjs.Slot, {
715
+ ref,
716
+ ...rest,
717
+ style: rootStyle,
718
+ children
719
+ }) : /* @__PURE__ */_jsxruntime.jsx.call(void 0, _reactnative.View, {
720
+ ref,
721
+ ...rest,
722
+ style: rootStyle,
723
+ children
724
+ })
725
+ });
726
+ });
727
+ AgendaCalendarRoot.displayName = "XAUI.AgendaCalendar.Root";
728
+ function deviceLocale() {
729
+ try {
730
+ return new Intl.DateTimeFormat().resolvedOptions().locale;
731
+ } catch (e2) {
732
+ return "en";
733
+ }
734
+ }
735
+
736
+ // src/components/agenda-calendar/agenda-calendar-title.tsx
737
+
738
+ var MIDDLE2 = 3;
739
+ var AgendaCalendarTitle = _react.forwardRef.call(void 0, function AgendaCalendarTitle2({
740
+ children,
741
+ accessibilityRole,
742
+ style,
743
+ ...props
744
+ }, ref) {
745
+ const {
746
+ titleStyle,
747
+ days,
748
+ locale
749
+ } = useAgendaCalendar();
750
+ const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
751
+ return /* @__PURE__ */_jsxruntime.jsx.call(void 0, _reactnative.Text, {
752
+ ref,
753
+ accessibilityRole: _nullishCoalesce(accessibilityRole, () => "header"),
754
+ style: [titleStyle, styleProps, style],
755
+ ...rest,
756
+ children: _nullishCoalesce(children, () => _chunkISHMSP6Pcjs.monthLabel.call(void 0, days[MIDDLE2], locale))
757
+ });
758
+ });
759
+ AgendaCalendarTitle.displayName = "XAUI.AgendaCalendar.Title";
760
+
761
+ // src/components/agenda-calendar/agenda-calendar-today-button.tsx
762
+
763
+ var AgendaCalendarTodayButton = _react.forwardRef.call(void 0, function AgendaCalendarTodayButton2({
764
+ children,
765
+ accessibilityRole,
766
+ accessibilityState,
767
+ style,
768
+ onPress,
769
+ onPressIn,
770
+ onPressOut,
771
+ ...props
772
+ }, ref) {
773
+ const {
774
+ todayStyle,
775
+ todayDisabledStyle,
776
+ todayLabelStyle,
777
+ goToToday,
778
+ isTodayResolved,
779
+ isDisabled
780
+ } = useAgendaCalendar();
781
+ const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
782
+ const [isPressed, press] = _chunk7DPL3ZDScjs.usePressState.call(void 0, {
783
+ onPressIn,
784
+ onPressOut
785
+ });
786
+ const disabled = isDisabled || isTodayResolved;
787
+ const text = _chunkFHNIGHN5cjs.childrenToString.call(void 0, children);
788
+ return /* @__PURE__ */_jsxruntime.jsx.call(void 0, _chunkHBYT7B47cjs.PressableFeedback, {
789
+ ref,
790
+ isPressed,
791
+ isDisabled: disabled,
792
+ accessibilityRole: _nullishCoalesce(accessibilityRole, () => "button"),
793
+ accessibilityState: {
794
+ disabled,
795
+ ...accessibilityState
796
+ },
797
+ ...rest,
798
+ style: [todayStyle, disabled && todayDisabledStyle, styleProps, style],
799
+ onPress: event => {
800
+ _optionalChain([onPress, 'optionalCall', _11 => _11(event)]);
801
+ goToToday();
802
+ },
803
+ onPressIn: press.onPressIn,
804
+ onPressOut: press.onPressOut,
805
+ children: text !== null ? /* @__PURE__ */_jsxruntime.jsx.call(void 0, _reactnative.Text, {
806
+ style: todayLabelStyle,
807
+ children: text
808
+ }) : children
809
+ });
810
+ });
811
+ AgendaCalendarTodayButton.displayName = "XAUI.AgendaCalendar.TodayButton";
812
+
813
+ // src/components/agenda-calendar/agenda-calendar-week.tsx
814
+
815
+ var _reactnativegesturehandler = require('react-native-gesture-handler');
816
+ var SWIPE_DISTANCE = 48;
817
+ var SWIPE_VELOCITY = 360;
818
+ var DRAG_FOLLOW = 0.5;
819
+ var SPRING = {
820
+ damping: 18,
821
+ stiffness: 220,
822
+ mass: 0.6
823
+ };
824
+ const _worklet_368808865208_init_data = {
825
+ code: "function chunkZBFBF7S4Cjs1(){const{drag}=this.__closure;return{transform:[{translateX:drag.get()}]};}",
826
+ location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-ZBFBF7S4.cjs",
827
+ sourceMap: "{\"version\":3,\"names\":[\"chunkZBFBF7S4Cjs1\",\"drag\",\"__closure\",\"transform\",\"translateX\",\"get\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-ZBFBF7S4.cjs\"],\"mappings\":\"AA+0BuE,SAAAA,iBAAMA,CAAA,QAAAC,IAAA,OAAAC,SAAA,CAEvE,MAAO,CAAEC,SAAS,CAAE,CAAC,CAAEC,UAAU,CAAEH,IAAI,CAACI,GAAG,CAAC,CAAE,CAAC,CAAE,CAAC,CACpD\",\"ignoreList\":[]}"
828
+ };
829
+ var AgendaCalendarWeek = _react.forwardRef.call(void 0, function AgendaCalendarWeek2({
830
+ children,
831
+ swipeable = true,
832
+ style,
833
+ ...props
834
+ }, ref) {
835
+ const {
836
+ weekStyle,
837
+ days,
838
+ goByWeeks,
839
+ canGoByWeeks,
840
+ isDisabled
841
+ } = useAgendaCalendar();
842
+ const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
843
+ const drag = _reactnativereanimated.useSharedValue.call(void 0, 0);
844
+ const page = _react.useCallback.call(void 0, direction => {
845
+ if (canGoByWeeks(direction)) goByWeeks(direction);
846
+ }, [canGoByWeeks, goByWeeks]);
847
+ const pan = _reactnativegesturehandler.Gesture.Pan().enabled(swipeable && !isDisabled).activeOffsetX([-12, 12]).failOffsetY([-16, 16]).onUpdate(event => {
848
+ drag.set(event.translationX * DRAG_FOLLOW);
849
+ }).onEnd(event => {
850
+ const forward = event.translationX <= -SWIPE_DISTANCE || event.velocityX <= -SWIPE_VELOCITY;
851
+ const backward = event.translationX >= SWIPE_DISTANCE || event.velocityX >= SWIPE_VELOCITY;
852
+ if (forward) _reactnativereanimated.runOnJS.call(void 0, page)(1);else if (backward) _reactnativereanimated.runOnJS.call(void 0, page)(-1);
853
+ drag.set(_reactnativereanimated.withSpring.call(void 0, 0, SPRING));
854
+ }).onFinalize(() => {
855
+ drag.set(_reactnativereanimated.withSpring.call(void 0, 0, SPRING));
856
+ });
857
+ const slide = _reactnativereanimated.useAnimatedStyle.call(void 0, function chunkZBFBF7S4Cjs1Factory({
858
+ _worklet_368808865208_init_data,
859
+ drag
860
+ }) {
861
+ const _e = [new global.Error(), -2, -27];
862
+ const chunkZBFBF7S4Cjs1 = function () {
863
+ return {
864
+ transform: [{
865
+ translateX: drag.get()
866
+ }]
867
+ };
868
+ };
869
+ chunkZBFBF7S4Cjs1.__closure = {
870
+ drag
871
+ };
872
+ chunkZBFBF7S4Cjs1.__workletHash = 368808865208;
873
+ chunkZBFBF7S4Cjs1.__pluginVersion = "0.7.4";
874
+ chunkZBFBF7S4Cjs1.__initData = _worklet_368808865208_init_data;
875
+ chunkZBFBF7S4Cjs1.__stackDetails = _e;
876
+ return chunkZBFBF7S4Cjs1;
877
+ }({
878
+ _worklet_368808865208_init_data,
879
+ drag
880
+ }), [drag]);
881
+ const cells = days.map(date => /* @__PURE__ */_jsxruntime.jsx.call(void 0, _reactnative.View, {
882
+ style: CELL,
883
+ children: typeof children === "function" ? children(date) : /* @__PURE__ */_jsxruntime.jsx.call(void 0, AgendaCalendarDay, {
884
+ date
885
+ })
886
+ }, date.getTime()));
887
+ if (!swipeable) {
888
+ return /* @__PURE__ */_jsxruntime.jsx.call(void 0, _reactnative.View, {
889
+ ref,
890
+ ...rest,
891
+ style: [weekStyle, styleProps, style],
892
+ children: cells
893
+ });
894
+ }
895
+ return /* @__PURE__ */_jsxruntime.jsx.call(void 0, _reactnativegesturehandler.GestureDetector, {
896
+ gesture: pan,
897
+ children: /* @__PURE__ */_jsxruntime.jsx.call(void 0, _reactnativereanimated2.default.View, {
898
+ ref,
899
+ ...rest,
900
+ style: [weekStyle, slide, styleProps, style],
901
+ children: cells
902
+ })
903
+ });
904
+ });
905
+ AgendaCalendarWeek.displayName = "XAUI.AgendaCalendar.Week";
906
+ var CELL = {
907
+ width: "14.2857%",
908
+ alignItems: "center"
909
+ };
910
+
911
+ // src/components/agenda-calendar/agenda-calendar-weekdays.tsx
912
+
913
+ var AgendaCalendarWeekdays = _react.forwardRef.call(void 0, function AgendaCalendarWeekdays2({
914
+ children,
915
+ style,
916
+ ...props
917
+ }, ref) {
918
+ const {
919
+ weekdaysStyle,
920
+ weekdayStyle,
921
+ days,
922
+ locale
923
+ } = useAgendaCalendar();
924
+ const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
925
+ const names = _chunkISHMSP6Pcjs.weekdayNames.call(void 0, locale, days[0].getDay());
926
+ return /* @__PURE__ */_jsxruntime.jsx.call(void 0, _reactnative.View, {
927
+ ref,
928
+ accessibilityElementsHidden: true,
929
+ importantForAccessibility: "no-hide-descendants",
930
+ ...rest,
931
+ style: [weekdaysStyle, styleProps, style],
932
+ children: _nullishCoalesce(children, () => names.map((name, index) => /* @__PURE__ */_jsxruntime.jsx.call(void 0, _reactnative.Text, {
933
+ style: weekdayStyle,
934
+ children: name
935
+ }, days[index].getTime())))
936
+ });
937
+ });
938
+ AgendaCalendarWeekdays.displayName = "XAUI.AgendaCalendar.Weekdays";
939
+
940
+ // src/components/agenda-calendar/agenda-calendar-year-picker.tsx
941
+
942
+ var AnimatedScrollView2 = _reactnativereanimated2.default.createAnimatedComponent(_reactnative.ScrollView);
943
+ var MIDDLE3 = 3;
944
+ var OPEN_MS2 = 160;
945
+ var AgendaCalendarYearPicker = _react.forwardRef.call(void 0, function AgendaCalendarYearPicker2({
946
+ firstYear,
947
+ lastYear,
948
+ style,
949
+ onLayout,
950
+ contentContainerStyle,
951
+ ...props
952
+ }, ref) {
953
+ const {
954
+ pickerStyle,
955
+ pickerItemStyle,
956
+ pickerItemSelectedStyle,
957
+ pickerItemLabelStyle,
958
+ pickerItemLabelSelectedStyle,
959
+ days,
960
+ yearRange,
961
+ canGoByYears,
962
+ goToYear
963
+ } = useAgendaCalendar();
964
+ const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
965
+ const theme = _chunkIIAQISBGcjs.useXAUITheme.call(void 0);
966
+ const first = _nullishCoalesce(firstYear, () => yearRange.first);
967
+ const last = _nullishCoalesce(lastYear, () => yearRange.last);
968
+ const shownYear = days[MIDDLE3].getFullYear();
969
+ const years = _react.useMemo.call(void 0, () => Array.from({
970
+ length: last - first + 1
971
+ }, (_, index) => first + index), [first, last]);
972
+ const scroller = _react.useRef.call(void 0, null);
973
+ const refs = _chunkWFEMJCXOcjs.useMergedRef.call(void 0, scroller, ref);
974
+ const selectedX = _react.useRef.call(void 0, 0);
975
+ const [isPlaced, setIsPlaced] = _react.useState.call(void 0, false);
976
+ const centre = viewportWidth => {
977
+ if (isPlaced || viewportWidth === 0) return;
978
+ _optionalChain([scroller, 'access', _12 => _12.current, 'optionalAccess', _13 => _13.scrollTo, 'call', _14 => _14({
979
+ x: Math.max(0, selectedX.current - viewportWidth / 2),
980
+ animated: false
981
+ })]);
982
+ setIsPlaced(true);
983
+ };
984
+ const place = event => {
985
+ _optionalChain([onLayout, 'optionalCall', _15 => _15(event)]);
986
+ centre(event.nativeEvent.layout.width);
987
+ };
988
+ return /* @__PURE__ */_jsxruntime.jsx.call(void 0, AnimatedScrollView2, {
989
+ ref: refs,
990
+ ...rest,
991
+ horizontal: true,
992
+ style: [pickerStyle, styleProps, style],
993
+ contentContainerStyle: [{
994
+ alignItems: "center",
995
+ gap: theme.spacing(2)
996
+ }, contentContainerStyle],
997
+ showsHorizontalScrollIndicator: false,
998
+ onLayout: place,
999
+ entering: _reactnativereanimated.FadeIn.duration(OPEN_MS2),
1000
+ children: years.map(year => {
1001
+ const disabled = !canGoByYears(year - shownYear);
1002
+ const isSelected = year === shownYear;
1003
+ return /* @__PURE__ */_jsxruntime.jsx.call(void 0, _chunkHBYT7B47cjs.PressableFeedback, {
1004
+ isDisabled: disabled,
1005
+ accessibilityRole: "button",
1006
+ accessibilityLabel: `${year}`,
1007
+ accessibilityState: {
1008
+ selected: isSelected,
1009
+ disabled
1010
+ },
1011
+ style: [pickerItemStyle, isSelected && pickerItemSelectedStyle],
1012
+ onLayout: isSelected ? event => {
1013
+ selectedX.current = event.nativeEvent.layout.x;
1014
+ } : void 0,
1015
+ onPress: () => goToYear(year),
1016
+ children: /* @__PURE__ */_jsxruntime.jsx.call(void 0, _reactnative.Text, {
1017
+ style: [pickerItemLabelStyle, isSelected && pickerItemLabelSelectedStyle],
1018
+ children: year
1019
+ })
1020
+ }, year);
1021
+ })
1022
+ });
1023
+ });
1024
+ AgendaCalendarYearPicker.displayName = "XAUI.AgendaCalendar.YearPicker";
1025
+
1026
+ // src/components/agenda-calendar/index.ts
1027
+ var AgendaCalendar2 = Object.assign(AgendaCalendarRoot, {
1028
+ Header: AgendaCalendarHeader,
1029
+ Title: AgendaCalendarTitle,
1030
+ Nav: AgendaCalendarNav,
1031
+ PreviousButton: AgendaCalendarPreviousButton,
1032
+ NextButton: AgendaCalendarNextButton,
1033
+ TodayButton: AgendaCalendarTodayButton,
1034
+ Weekdays: AgendaCalendarWeekdays,
1035
+ Week: AgendaCalendarWeek,
1036
+ Day: AgendaCalendarDay,
1037
+ MonthPicker: AgendaCalendarMonthPicker,
1038
+ YearPicker: AgendaCalendarYearPicker
1039
+ });
1040
+ exports.useAgendaCalendar = useAgendaCalendar;
1041
+ exports.AgendaCalendarDay = AgendaCalendarDay;
1042
+ exports.AgendaCalendarHeader = AgendaCalendarHeader;
1043
+ exports.AgendaCalendarMonthPicker = AgendaCalendarMonthPicker;
1044
+ exports.AgendaCalendarNav = AgendaCalendarNav;
1045
+ exports.AgendaCalendarPreviousButton = AgendaCalendarPreviousButton;
1046
+ exports.AgendaCalendarNextButton = AgendaCalendarNextButton;
1047
+ exports.agendaCalendarRecipe = agendaCalendarRecipe;
1048
+ exports.AgendaCalendarRoot = AgendaCalendarRoot;
1049
+ exports.AgendaCalendarTitle = AgendaCalendarTitle;
1050
+ exports.AgendaCalendarTodayButton = AgendaCalendarTodayButton;
1051
+ exports.AgendaCalendarWeek = AgendaCalendarWeek;
1052
+ exports.AgendaCalendarWeekdays = AgendaCalendarWeekdays;
1053
+ exports.AgendaCalendarYearPicker = AgendaCalendarYearPicker;
1054
+ exports.AgendaCalendar = AgendaCalendar2;