@xaui/native 0.9.1-alpha.90 → 0.9.1-alpha.92

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 (300) hide show
  1. package/dist/{chunk-XZ42OWKC.js → chunk-2AFA5HA2.js} +78 -74
  2. package/dist/{chunk-A2JNZMDJ.cjs → chunk-2B6PUYTP.cjs} +2 -2
  3. package/dist/chunk-3A5RK2R7.js +40 -0
  4. package/dist/{chunk-HQLJZ6C2.js → chunk-52XUGOLD.js} +3 -3
  5. package/dist/{chunk-TCDWDTSW.cjs → chunk-5E6SHYEQ.cjs} +3 -3
  6. package/dist/{chunk-Y36UGSTS.cjs → chunk-62AYYMZP.cjs} +3 -3
  7. package/dist/{chunk-BLGAFZRI.cjs → chunk-6GQ7UTJ7.cjs} +2 -2
  8. package/dist/chunk-6JAGPPZU.cjs +788 -0
  9. package/dist/{chunk-CVPBNJRG.js → chunk-6RU6GUJP.js} +1 -1
  10. package/dist/{chunk-XUF7K4WP.js → chunk-7EVW6O2Q.js} +1 -1
  11. package/dist/chunk-7NQL5DXY.js +302 -0
  12. package/dist/{chunk-ACWFIZKC.cjs → chunk-AR7667VN.cjs} +6 -6
  13. package/dist/{chunk-DSCZZZIG.cjs → chunk-B33OU34Z.cjs} +12 -12
  14. package/dist/{chunk-WGXOYMZM.cjs → chunk-BI5ME4QP.cjs} +5 -5
  15. package/dist/{chunk-IEEUSJBJ.js → chunk-BJVO7DWJ.js} +1 -1
  16. package/dist/{chunk-5YEMZL4C.cjs → chunk-CBRW53GN.cjs} +7 -7
  17. package/dist/{chunk-34UJTR37.cjs → chunk-CBXILKQZ.cjs} +3 -3
  18. package/dist/{chunk-FB4JF34M.cjs → chunk-CEPX7CKM.cjs} +16 -16
  19. package/dist/{chunk-377XFATD.cjs → chunk-CYOUOQXT.cjs} +5 -5
  20. package/dist/{chunk-AUYFPVLA.cjs → chunk-DYQB54JA.cjs} +2 -2
  21. package/dist/{chunk-3OQPAZTF.js → chunk-EBCAPIBD.js} +44 -44
  22. package/dist/{chunk-M5LTEKGJ.cjs → chunk-EDNCHCIN.cjs} +2 -2
  23. package/dist/{chunk-34KILEQD.js → chunk-FOOXBVOQ.js} +15 -15
  24. package/dist/{chunk-24WXPNIT.js → chunk-FRLWG5LM.js} +24 -24
  25. package/dist/chunk-FTPPUTWL.cjs +40 -0
  26. package/dist/{chunk-AAQIBMJI.js → chunk-FVEMTBU4.js} +2 -2
  27. package/dist/{chunk-54DVPCYB.cjs → chunk-FXN32S75.cjs} +3 -3
  28. package/dist/chunk-GGP2ERSV.js +487 -0
  29. package/dist/{chunk-6BB6YWEN.js → chunk-GYEQEF5H.js} +1 -1
  30. package/dist/{chunk-MTGUUW7F.cjs → chunk-GZAGWNQM.cjs} +3 -3
  31. package/dist/{chunk-OF3E7WVQ.cjs → chunk-ILXKBDC6.cjs} +10 -10
  32. package/dist/{chunk-D2UYBAGB.cjs → chunk-IPD3IUE2.cjs} +4 -4
  33. package/dist/{chunk-XLPOJTA2.cjs → chunk-JBZ7SBRV.cjs} +3 -3
  34. package/dist/{chunk-UMTVYPYK.js → chunk-JC4YCKKL.js} +15 -15
  35. package/dist/{chunk-GL46PQPW.js → chunk-JJYHW4PV.js} +1 -1
  36. package/dist/{chunk-2CTIZGMC.js → chunk-JKDWYNSG.js} +99 -99
  37. package/dist/chunk-KPKEZWZM.js +517 -0
  38. package/dist/{chunk-KTI3GCFM.js → chunk-LECYGVIH.js} +43 -43
  39. package/dist/chunk-LKRQUQZQ.cjs +487 -0
  40. package/dist/{chunk-SYVFU6O5.cjs → chunk-LPJ3UBSO.cjs} +4 -4
  41. package/dist/{chunk-RS2UWFEG.js → chunk-MMFIMQMQ.js} +2 -2
  42. package/dist/chunk-MSORLKO7.cjs +422 -0
  43. package/dist/{chunk-PKVKFZW7.js → chunk-O6B72H4B.js} +5 -5
  44. package/dist/{chunk-7KQG4JQ2.js → chunk-OD6H7ANY.js} +1 -1
  45. package/dist/{chunk-UXPBSREP.js → chunk-ODQHAPQW.js} +17 -17
  46. package/dist/{chunk-TB7V2DO3.cjs → chunk-ORXVXYKC.cjs} +11 -11
  47. package/dist/{chunk-PIU3JONR.cjs → chunk-OW4N2C3M.cjs} +64 -60
  48. package/dist/{chunk-NPY7I7JJ.js → chunk-P2CJNTAP.js} +15 -15
  49. package/dist/{chunk-AOXNVM55.cjs → chunk-P2V6PIM7.cjs} +2 -2
  50. package/dist/{chunk-CKADVFCH.js → chunk-P5M5URAB.js} +30 -127
  51. package/dist/{chunk-BPQWLUQU.js → chunk-P7OHZCU3.js} +2 -2
  52. package/dist/{chunk-DPW25YCM.cjs → chunk-PAQD6UUF.cjs} +3 -3
  53. package/dist/{chunk-LDFBDFIW.js → chunk-PAQZOD2L.js} +1 -1
  54. package/dist/{chunk-4TG2OLEM.cjs → chunk-PDSR42YC.cjs} +3 -3
  55. package/dist/{chunk-AXSY2KPT.cjs → chunk-PROLOLZ5.cjs} +2 -2
  56. package/dist/{chunk-4SPCZVR6.cjs → chunk-PYQ2P3M5.cjs} +58 -58
  57. package/dist/{chunk-ZZTUJELK.cjs → chunk-Q2BWXT55.cjs} +9 -9
  58. package/dist/{chunk-RD3ZUUBC.cjs → chunk-QCH7X7O2.cjs} +14 -14
  59. package/dist/{chunk-ZYN7XKF5.cjs → chunk-QELEKXN3.cjs} +5 -5
  60. package/dist/{chunk-ZN5P3VTI.js → chunk-QHXTO525.js} +1 -1
  61. package/dist/{chunk-EVSQ4CEI.cjs → chunk-QN2D5ZCS.cjs} +3 -3
  62. package/dist/{chunk-4XZWVJZL.cjs → chunk-QUSQEYLP.cjs} +25 -25
  63. package/dist/chunk-RCSEVEIR.js +422 -0
  64. package/dist/{chunk-GOKUBJIK.js → chunk-RLC3EXMV.js} +2 -2
  65. package/dist/{chunk-BLYKQD47.cjs → chunk-RREJUSAS.cjs} +3 -3
  66. package/dist/{chunk-BLDMKFIG.js → chunk-RSIWSVXI.js} +1 -1
  67. package/dist/{chunk-5VYB7F3H.js → chunk-RXEUKYM5.js} +1 -1
  68. package/dist/{chunk-WRW4JBB4.js → chunk-SUJLTC2K.js} +4 -4
  69. package/dist/{chunk-KBQT6MZ4.js → chunk-TCWW7JI2.js} +58 -58
  70. package/dist/{chunk-B2KUGQS5.js → chunk-TPYOQSKT.js} +1 -1
  71. package/dist/{chunk-SEYZGC4E.js → chunk-TRWZEOCO.js} +2 -2
  72. package/dist/{chunk-SDLDRTT7.cjs → chunk-UEW3GAP5.cjs} +5 -5
  73. package/dist/{chunk-WQZJ26SX.cjs → chunk-UFKSUELU.cjs} +2 -2
  74. package/dist/chunk-UR37LVPU.cjs +382 -0
  75. package/dist/{chunk-4BAKKBHJ.js → chunk-USIWPESU.js} +1 -1
  76. package/dist/{chunk-HM6M6SIP.js → chunk-UYQLW7OD.js} +1 -1
  77. package/dist/{chunk-NIEIDK5Z.js → chunk-V2CEKPJ6.js} +4 -4
  78. package/dist/{chunk-GPSVJ75L.js → chunk-VMPCXS4S.js} +15 -15
  79. package/dist/{chunk-W6TFYAEF.js → chunk-VQGNLX5C.js} +1 -1
  80. package/dist/{chunk-YSZ4K6L6.cjs → chunk-WIX4SYZI.cjs} +2 -2
  81. package/dist/{chunk-T3WEEHSB.js → chunk-WRZV6ORJ.js} +1 -1
  82. package/dist/{chunk-UDVKP3V2.cjs → chunk-X4CZYJZ6.cjs} +12 -12
  83. package/dist/chunk-XWIPLZTD.cjs +302 -0
  84. package/dist/{chunk-67WT74DY.cjs → chunk-ZE4IHUUO.cjs} +2 -2
  85. package/dist/{chunk-4JB7XQCJ.js → chunk-ZKGVOXLQ.js} +1 -1
  86. package/dist/{chunk-U32IGHJ6.js → chunk-ZWS3FQ3J.js} +57 -57
  87. package/dist/components/accordion/index.cjs +3 -3
  88. package/dist/components/accordion/index.js +2 -2
  89. package/dist/components/agenda-calendar/index.cjs +4 -4
  90. package/dist/components/agenda-calendar/index.js +3 -3
  91. package/dist/components/alert/index.cjs +4 -4
  92. package/dist/components/alert/index.js +3 -3
  93. package/dist/components/autocomplete/index.cjs +3 -3
  94. package/dist/components/autocomplete/index.js +2 -2
  95. package/dist/components/bottom-sheet/index.cjs +3 -3
  96. package/dist/components/bottom-sheet/index.js +2 -2
  97. package/dist/components/button/button.d.cts +1 -0
  98. package/dist/components/button/button.d.ts +1 -0
  99. package/dist/components/button/index.cjs +4 -4
  100. package/dist/components/button/index.d.cts +1 -0
  101. package/dist/components/button/index.d.ts +1 -0
  102. package/dist/components/button/index.js +3 -3
  103. package/dist/components/calendar/index.cjs +3 -3
  104. package/dist/components/calendar/index.js +2 -2
  105. package/dist/components/card/card.d.cts +1 -0
  106. package/dist/components/card/card.d.ts +1 -0
  107. package/dist/components/card/index.cjs +3 -3
  108. package/dist/components/card/index.d.cts +1 -0
  109. package/dist/components/card/index.d.ts +1 -0
  110. package/dist/components/card/index.js +2 -2
  111. package/dist/components/carousel/index.cjs +4 -3
  112. package/dist/components/carousel/index.js +3 -2
  113. package/dist/components/checkbox/checkbox.d.cts +1 -0
  114. package/dist/components/checkbox/checkbox.d.ts +1 -0
  115. package/dist/components/checkbox/index.cjs +3 -3
  116. package/dist/components/checkbox/index.d.cts +1 -0
  117. package/dist/components/checkbox/index.d.ts +1 -0
  118. package/dist/components/checkbox/index.js +2 -2
  119. package/dist/components/chip/chip.d.cts +1 -0
  120. package/dist/components/chip/chip.d.ts +1 -0
  121. package/dist/components/chip/index.cjs +4 -4
  122. package/dist/components/chip/index.d.cts +1 -0
  123. package/dist/components/chip/index.d.ts +1 -0
  124. package/dist/components/chip/index.js +3 -3
  125. package/dist/components/close-button/close-button.d.cts +1 -0
  126. package/dist/components/close-button/close-button.d.ts +1 -0
  127. package/dist/components/close-button/index.cjs +4 -4
  128. package/dist/components/close-button/index.js +3 -3
  129. package/dist/components/color-picker/color-picker.d.cts +1 -1
  130. package/dist/components/color-picker/color-picker.d.ts +1 -1
  131. package/dist/components/color-picker/index.cjs +6 -6
  132. package/dist/components/color-picker/index.d.cts +1 -1
  133. package/dist/components/color-picker/index.d.ts +1 -1
  134. package/dist/components/color-picker/index.js +5 -5
  135. package/dist/components/combobox/index.cjs +4 -4
  136. package/dist/components/combobox/index.js +3 -3
  137. package/dist/components/date-picker/index.cjs +4 -4
  138. package/dist/components/date-picker/index.js +3 -3
  139. package/dist/components/date-range-picker/index.cjs +6 -6
  140. package/dist/components/date-range-picker/index.js +5 -5
  141. package/dist/components/date-time-picker/index.cjs +7 -7
  142. package/dist/components/date-time-picker/index.js +6 -6
  143. package/dist/components/dialog/index.cjs +4 -4
  144. package/dist/components/dialog/index.js +3 -3
  145. package/dist/components/dummy-field/index.cjs +3 -3
  146. package/dist/components/dummy-field/index.js +2 -2
  147. package/dist/components/fab/index.cjs +4 -4
  148. package/dist/components/fab/index.js +3 -3
  149. package/dist/components/flip-card/index.cjs +3 -3
  150. package/dist/components/flip-card/index.js +2 -2
  151. package/dist/components/index.d.cts +4 -0
  152. package/dist/components/index.d.ts +4 -0
  153. package/dist/components/list-box/index.cjs +2 -2
  154. package/dist/components/list-box/index.js +1 -1
  155. package/dist/components/menu/index.cjs +3 -3
  156. package/dist/components/menu/index.js +2 -2
  157. package/dist/components/morph-button/index.cjs +39 -0
  158. package/dist/components/morph-button/index.d.cts +53 -0
  159. package/dist/components/morph-button/index.d.ts +53 -0
  160. package/dist/components/morph-button/index.js +39 -0
  161. package/dist/components/morph-button/morph-button-face.d.cts +9 -0
  162. package/dist/components/morph-button/morph-button-face.d.ts +9 -0
  163. package/dist/components/morph-button/morph-button-icon.d.cts +13 -0
  164. package/dist/components/morph-button/morph-button-icon.d.ts +13 -0
  165. package/dist/components/morph-button/morph-button-text.d.cts +16 -0
  166. package/dist/components/morph-button/morph-button-text.d.ts +16 -0
  167. package/dist/components/morph-button/morph-button.animation.d.cts +29 -0
  168. package/dist/components/morph-button/morph-button.animation.d.ts +29 -0
  169. package/dist/components/morph-button/morph-button.context.d.cts +7 -0
  170. package/dist/components/morph-button/morph-button.context.d.ts +7 -0
  171. package/dist/components/morph-button/morph-button.d.cts +61 -0
  172. package/dist/components/morph-button/morph-button.d.ts +61 -0
  173. package/dist/components/morph-button/morph-button.recipe.d.cts +11 -0
  174. package/dist/components/morph-button/morph-button.recipe.d.ts +11 -0
  175. package/dist/components/morph-button/morph-button.type.d.cts +99 -0
  176. package/dist/components/morph-button/morph-button.type.d.ts +99 -0
  177. package/dist/components/number-pad/index.cjs +40 -0
  178. package/dist/components/number-pad/index.d.cts +60 -0
  179. package/dist/components/number-pad/index.d.ts +60 -0
  180. package/dist/components/number-pad/index.js +40 -0
  181. package/dist/components/number-pad/number-pad-action.d.cts +24 -0
  182. package/dist/components/number-pad/number-pad-action.d.ts +24 -0
  183. package/dist/components/number-pad/number-pad-backspace.d.cts +18 -0
  184. package/dist/components/number-pad/number-pad-backspace.d.ts +18 -0
  185. package/dist/components/number-pad/number-pad-cell.d.cts +7 -0
  186. package/dist/components/number-pad/number-pad-cell.d.ts +7 -0
  187. package/dist/components/number-pad/number-pad-icon.d.cts +13 -0
  188. package/dist/components/number-pad/number-pad-icon.d.ts +13 -0
  189. package/dist/components/number-pad/number-pad-key.d.cts +24 -0
  190. package/dist/components/number-pad/number-pad-key.d.ts +24 -0
  191. package/dist/components/number-pad/number-pad-label.d.cts +14 -0
  192. package/dist/components/number-pad/number-pad-label.d.ts +14 -0
  193. package/dist/components/number-pad/number-pad.context.d.cts +18 -0
  194. package/dist/components/number-pad/number-pad.context.d.ts +18 -0
  195. package/dist/components/number-pad/number-pad.d.cts +57 -0
  196. package/dist/components/number-pad/number-pad.d.ts +57 -0
  197. package/dist/components/number-pad/number-pad.recipe.d.cts +11 -0
  198. package/dist/components/number-pad/number-pad.recipe.d.ts +11 -0
  199. package/dist/components/number-pad/number-pad.style.d.cts +13 -0
  200. package/dist/components/number-pad/number-pad.style.d.ts +13 -0
  201. package/dist/components/number-pad/number-pad.type.d.cts +135 -0
  202. package/dist/components/number-pad/number-pad.type.d.ts +135 -0
  203. package/dist/components/number-pad/number-pad.utils.d.cts +34 -0
  204. package/dist/components/number-pad/number-pad.utils.d.ts +34 -0
  205. package/dist/components/number-stepper/index.cjs +3 -3
  206. package/dist/components/number-stepper/index.js +2 -2
  207. package/dist/components/pager/index.cjs +31 -0
  208. package/dist/components/pager/index.d.cts +60 -0
  209. package/dist/components/pager/index.d.ts +60 -0
  210. package/dist/components/pager/index.js +31 -0
  211. package/dist/components/pager/pager-content.d.cts +24 -0
  212. package/dist/components/pager/pager-content.d.ts +24 -0
  213. package/dist/components/pager/pager-indicator.d.cts +47 -0
  214. package/dist/components/pager/pager-indicator.d.ts +47 -0
  215. package/dist/components/pager/pager-page.d.cts +16 -0
  216. package/dist/components/pager/pager-page.d.ts +16 -0
  217. package/dist/components/pager/pager.context.d.cts +7 -0
  218. package/dist/components/pager/pager.context.d.ts +7 -0
  219. package/dist/components/pager/pager.d.cts +71 -0
  220. package/dist/components/pager/pager.d.ts +71 -0
  221. package/dist/components/pager/pager.recipe.d.cts +15 -0
  222. package/dist/components/pager/pager.recipe.d.ts +15 -0
  223. package/dist/components/pager/pager.type.d.cts +108 -0
  224. package/dist/components/pager/pager.type.d.ts +108 -0
  225. package/dist/components/phone-number-field/index.cjs +15 -15
  226. package/dist/components/phone-number-field/index.js +4 -4
  227. package/dist/components/popover/index.cjs +3 -3
  228. package/dist/components/popover/index.js +2 -2
  229. package/dist/components/radio/index.cjs +3 -3
  230. package/dist/components/radio/index.d.cts +1 -0
  231. package/dist/components/radio/index.d.ts +1 -0
  232. package/dist/components/radio/index.js +2 -2
  233. package/dist/components/radio/radio.d.cts +1 -0
  234. package/dist/components/radio/radio.d.ts +1 -0
  235. package/dist/components/range-calendar/index.cjs +4 -4
  236. package/dist/components/range-calendar/index.js +3 -3
  237. package/dist/components/rating/index.cjs +30 -0
  238. package/dist/components/rating/index.d.cts +41 -0
  239. package/dist/components/rating/index.d.ts +41 -0
  240. package/dist/components/rating/index.js +30 -0
  241. package/dist/components/rating/rating-icon.d.cts +16 -0
  242. package/dist/components/rating/rating-icon.d.ts +16 -0
  243. package/dist/components/rating/rating-item.d.cts +23 -0
  244. package/dist/components/rating/rating-item.d.ts +23 -0
  245. package/dist/components/rating/rating-star.d.cts +19 -0
  246. package/dist/components/rating/rating-star.d.ts +19 -0
  247. package/dist/components/rating/rating.context.d.cts +16 -0
  248. package/dist/components/rating/rating.context.d.ts +16 -0
  249. package/dist/components/rating/rating.d.cts +59 -0
  250. package/dist/components/rating/rating.d.ts +59 -0
  251. package/dist/components/rating/rating.recipe.d.cts +11 -0
  252. package/dist/components/rating/rating.recipe.d.ts +11 -0
  253. package/dist/components/rating/rating.style.d.cts +24 -0
  254. package/dist/components/rating/rating.style.d.ts +24 -0
  255. package/dist/components/rating/rating.type.d.cts +108 -0
  256. package/dist/components/rating/rating.type.d.ts +108 -0
  257. package/dist/components/rating/rating.utils.d.cts +28 -0
  258. package/dist/components/rating/rating.utils.d.ts +28 -0
  259. package/dist/components/search-field/index.cjs +4 -4
  260. package/dist/components/search-field/index.js +3 -3
  261. package/dist/components/segment/index.cjs +2 -2
  262. package/dist/components/segment/index.js +1 -1
  263. package/dist/components/select/index.cjs +3 -3
  264. package/dist/components/select/index.js +2 -2
  265. package/dist/components/snackbar/index.cjs +3 -3
  266. package/dist/components/snackbar/index.js +2 -2
  267. package/dist/components/switch/index.cjs +3 -3
  268. package/dist/components/switch/index.d.cts +1 -0
  269. package/dist/components/switch/index.d.ts +1 -0
  270. package/dist/components/switch/index.js +2 -2
  271. package/dist/components/switch/switch.d.cts +1 -0
  272. package/dist/components/switch/switch.d.ts +1 -0
  273. package/dist/components/table/index.cjs +4 -4
  274. package/dist/components/table/index.js +3 -3
  275. package/dist/components/tabs/index.cjs +3 -3
  276. package/dist/components/tabs/index.js +2 -2
  277. package/dist/components/tag-group/index.cjs +4 -4
  278. package/dist/components/tag-group/index.js +3 -3
  279. package/dist/components/time-picker/index.cjs +4 -4
  280. package/dist/components/time-picker/index.js +3 -3
  281. package/dist/components/toast/index.cjs +3 -3
  282. package/dist/components/toast/index.js +2 -2
  283. package/dist/components/toggle-button/index.cjs +3 -3
  284. package/dist/components/toggle-button/index.d.cts +1 -0
  285. package/dist/components/toggle-button/index.d.ts +1 -0
  286. package/dist/components/toggle-button/index.js +2 -2
  287. package/dist/components/toggle-button/toggle-button.d.cts +1 -0
  288. package/dist/components/toggle-button/toggle-button.d.ts +1 -0
  289. package/dist/index.cjs +145 -60
  290. package/dist/index.js +243 -158
  291. package/dist/system/index.cjs +3 -3
  292. package/dist/system/index.js +2 -2
  293. package/dist/system/pressable-feedback/index.d.cts +1 -0
  294. package/dist/system/pressable-feedback/index.d.ts +1 -0
  295. package/dist/system/pressable-feedback/pressable-feedback.d.cts +1 -0
  296. package/dist/system/pressable-feedback/pressable-feedback.d.ts +1 -0
  297. package/dist/system/pressable-feedback/pressable-feedback.type.d.cts +13 -1
  298. package/dist/system/pressable-feedback/pressable-feedback.type.d.ts +13 -1
  299. package/package.json +41 -1
  300. package/dist/chunk-L5GB6G3L.cjs +0 -1007
@@ -0,0 +1,487 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
+
3
+ var _chunk7EIHHOHPcjs = require('./chunk-7EIHHOHP.cjs');
4
+
5
+
6
+ var _chunkOW4N2C3Mcjs = require('./chunk-OW4N2C3M.cjs');
7
+
8
+
9
+ var _chunk7DPL3ZDScjs = require('./chunk-7DPL3ZDS.cjs');
10
+
11
+
12
+ var _chunkGSZDN6EZcjs = require('./chunk-GSZDN6EZ.cjs');
13
+
14
+
15
+ var _chunkFHNIGHN5cjs = require('./chunk-FHNIGHN5.cjs');
16
+
17
+
18
+
19
+ var _chunkSL3V7R2Ycjs = require('./chunk-SL3V7R2Y.cjs');
20
+
21
+
22
+ var _chunkCDRGTUYFcjs = require('./chunk-CDRGTUYF.cjs');
23
+
24
+
25
+ var _chunkIIAQISBGcjs = require('./chunk-IIAQISBG.cjs');
26
+
27
+
28
+ var _chunkTK44VBIEcjs = require('./chunk-TK44VBIE.cjs');
29
+
30
+ // src/components/number-pad/number-pad-action.tsx
31
+ var _react = require('react');
32
+
33
+ // src/components/number-pad/number-pad-cell.tsx
34
+
35
+
36
+ // src/components/number-pad/number-pad.context.ts
37
+ var [NumberPadProvider, useNumberPad] = _chunkCDRGTUYFcjs.createSlotContext.call(void 0, "NumberPad");
38
+ var [NumberPadCellProvider, useNumberPadCell] = _chunkCDRGTUYFcjs.createSlotContext.call(void 0, "NumberPad.Cell");
39
+
40
+ // src/components/number-pad/number-pad-cell.tsx
41
+ var _jsxruntime = require('react/jsx-runtime');
42
+ var NumberPadCell = _react.forwardRef.call(void 0,
43
+ function NumberPadCell2({
44
+ tone,
45
+ onActivate,
46
+ children,
47
+ isDisabled,
48
+ accessibilityRole = "button",
49
+ accessibilityState,
50
+ style,
51
+ onPress,
52
+ onPressIn,
53
+ onPressOut,
54
+ ...props
55
+ }, ref) {
56
+ const pad = useNumberPad();
57
+ const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
58
+ const [isPressed, press] = _chunk7DPL3ZDScjs.usePressState.call(void 0, { onPressIn, onPressOut });
59
+ const disabled = _nullishCoalesce(isDisabled, () => ( pad.isDisabled));
60
+ const cellStyle = tone === "key" ? pad.keyStyle : pad.ghostStyle;
61
+ const pressedStyle = tone === "key" ? pad.keyPressedStyle : pad.ghostPressedStyle;
62
+ const handlePress = (event) => {
63
+ _optionalChain([onPress, 'optionalCall', _ => _(event)]);
64
+ _optionalChain([onActivate, 'optionalCall', _2 => _2()]);
65
+ };
66
+ const context = _react.useMemo.call(void 0,
67
+ () => ({ tone, isPressed, isDisabled: disabled }),
68
+ [tone, isPressed, disabled]
69
+ );
70
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
71
+ _chunkOW4N2C3Mcjs.PressableFeedback,
72
+ {
73
+ ref,
74
+ isPressed,
75
+ isDisabled: disabled,
76
+ accessibilityRole,
77
+ accessibilityState: { disabled, ...accessibilityState },
78
+ ...rest,
79
+ style: [
80
+ cellStyle,
81
+ isPressed && pressedStyle,
82
+ styleProps,
83
+ typeof style === "function" ? style({ pressed: isPressed }) : style
84
+ ],
85
+ onPress: handlePress,
86
+ onPressIn: press.onPressIn,
87
+ onPressOut: press.onPressOut,
88
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, NumberPadCellProvider, { value: context, children })
89
+ }
90
+ );
91
+ }
92
+ );
93
+ NumberPadCell.displayName = "XAUI.NumberPad.Cell";
94
+
95
+ // src/components/number-pad/number-pad-action.tsx
96
+
97
+ var NumberPadAction = _react.forwardRef.call(void 0,
98
+ function NumberPadAction2({ children, ...props }, ref) {
99
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, NumberPadCell, { ref, tone: "ghost", ...props, children });
100
+ }
101
+ );
102
+ NumberPadAction.displayName = "XAUI.NumberPad.Action";
103
+
104
+ // src/components/number-pad/number-pad-backspace.tsx
105
+
106
+ var _reactnative = require('react-native');
107
+
108
+ // src/components/number-pad/number-pad-label.tsx
109
+
110
+
111
+
112
+ var NumberPadLabel = _react.forwardRef.call(void 0,
113
+ function NumberPadLabel2({ children, style, numberOfLines = 1, ...props }, ref) {
114
+ const { labelStyle, ghostLabelStyle } = useNumberPad();
115
+ const { tone } = useNumberPadCell();
116
+ const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
117
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
118
+ _reactnative.Text,
119
+ {
120
+ ref,
121
+ numberOfLines,
122
+ style: [tone === "key" ? labelStyle : ghostLabelStyle, styleProps, style],
123
+ ...rest,
124
+ children
125
+ }
126
+ );
127
+ }
128
+ );
129
+ NumberPadLabel.displayName = "XAUI.NumberPad.Label";
130
+
131
+ // src/components/number-pad/number-pad-backspace.tsx
132
+
133
+ var NumberPadBackspace = _react.forwardRef.call(void 0,
134
+ function NumberPadBackspace2({ children, onLongPress, ...props }, ref) {
135
+ const { backspace, clear } = useNumberPad();
136
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
137
+ NumberPadCell,
138
+ {
139
+ ref,
140
+ tone: "ghost",
141
+ onActivate: backspace,
142
+ accessibilityLabel: "Backspace",
143
+ onLongPress: (event) => {
144
+ _optionalChain([onLongPress, 'optionalCall', _3 => _3(event)]);
145
+ clear();
146
+ },
147
+ ...props,
148
+ children: _nullishCoalesce(children, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, NumberPadLabel, { children: _reactnative.I18nManager.isRTL ? "\u2192" : "\u2190" })))
149
+ }
150
+ );
151
+ }
152
+ );
153
+ NumberPadBackspace.displayName = "XAUI.NumberPad.Backspace";
154
+
155
+ // src/components/number-pad/number-pad-icon.tsx
156
+
157
+ function NumberPadIcon({ size, color, ...rest }) {
158
+ const { icon, ghostIcon } = useNumberPad();
159
+ const { tone } = useNumberPadCell();
160
+ const resolved = tone === "key" ? icon : ghostIcon;
161
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSZDN6EZcjs.Icon, { size: _nullishCoalesce(size, () => ( resolved.size)), color: _nullishCoalesce(color, () => ( resolved.color)), ...rest });
162
+ }
163
+ NumberPadIcon.displayName = "XAUI.NumberPad.Icon";
164
+
165
+ // src/components/number-pad/number-pad-key.tsx
166
+
167
+
168
+ var NumberPadKey = _react.forwardRef.call(void 0,
169
+ function NumberPadKey2({ value, children, ...props }, ref) {
170
+ const { insert } = useNumberPad();
171
+ const text = _chunkFHNIGHN5cjs.childrenToString.call(void 0, children);
172
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
173
+ NumberPadCell,
174
+ {
175
+ ref,
176
+ tone: "key",
177
+ onActivate: () => insert(value),
178
+ accessibilityLabel: value,
179
+ ...props,
180
+ children: children === void 0 || text !== null ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, NumberPadLabel, { children: _nullishCoalesce(text, () => ( value)) }) : children
181
+ }
182
+ );
183
+ }
184
+ );
185
+ NumberPadKey.displayName = "XAUI.NumberPad.Key";
186
+
187
+ // src/components/number-pad/number-pad.tsx
188
+
189
+
190
+
191
+ // src/components/number-pad/number-pad.recipe.ts
192
+ var SLOTS = [
193
+ "root",
194
+ "row",
195
+ "key",
196
+ "label",
197
+ "icon",
198
+ "ghost",
199
+ "ghostLabel",
200
+ "ghostIcon"
201
+ ];
202
+ var VARIANT_TOKENS = {
203
+ primary: { bg: "accent", bgPressed: "accentPressed", fg: "accentForeground" },
204
+ secondary: {
205
+ bg: "accentSoft",
206
+ bgPressed: "accentSoftPressed",
207
+ fg: "accentSoftForeground"
208
+ },
209
+ default: { bg: "default", bgPressed: "defaultPressed", fg: "defaultForeground" },
210
+ tertiary: { border: "border", bgPressed: "defaultSoftPressed", fg: "foreground" },
211
+ ghost: { bgPressed: "defaultSoftPressed", fg: "foreground" }
212
+ };
213
+ var KEY_HEIGHT_RATIO = 1.5;
214
+ function keyHeight(theme, size) {
215
+ return theme.controlHeights[size] * KEY_HEIGHT_RATIO;
216
+ }
217
+ function sizeAxis(step) {
218
+ const { size, gap, radius, digit, glyph } = step;
219
+ return (theme) => {
220
+ const height = keyHeight(theme, size);
221
+ const corner = theme.radius[radius];
222
+ return {
223
+ root: { gap: theme.spacing(gap) },
224
+ row: { gap: theme.spacing(gap) },
225
+ key: { height, borderRadius: corner },
226
+ ghost: { height, borderRadius: corner },
227
+ label: {
228
+ fontSize: theme.fontSizes[digit],
229
+ lineHeight: theme.lineHeights[digit]
230
+ },
231
+ ghostLabel: {
232
+ fontSize: theme.fontSizes[glyph],
233
+ lineHeight: theme.lineHeights[glyph]
234
+ },
235
+ icon: { fontSize: theme.fontSizes[glyph] },
236
+ ghostIcon: { fontSize: theme.fontSizes[glyph] }
237
+ };
238
+ };
239
+ }
240
+ var SIZES = {
241
+ sm: { size: "sm", gap: 2, radius: "xl", digit: "2xl", glyph: "lg" },
242
+ md: { size: "md", gap: 2.5, radius: "xl", digit: "3xl", glyph: "xl" },
243
+ lg: { size: "lg", gap: 3, radius: "2xl", digit: "4xl", glyph: "2xl" }
244
+ };
245
+ var numberPadRecipe = _chunkSL3V7R2Ycjs.createRecipe.call(void 0, {
246
+ slots: SLOTS,
247
+ base: (theme) => ({
248
+ row: { flexDirection: "row" },
249
+ // `flex: 1` on both, so the three columns divide the width the pad was given. The
250
+ // `borderCurve` is iOS's squircle, free on Android and what keeps a corner this large
251
+ // reading as a shape rather than as two arcs meeting a straight edge.
252
+ key: {
253
+ flex: 1,
254
+ alignItems: "center",
255
+ justifyContent: "center",
256
+ borderWidth: 0,
257
+ borderCurve: "continuous"
258
+ },
259
+ ghost: {
260
+ flex: 1,
261
+ alignItems: "center",
262
+ justifyContent: "center",
263
+ borderCurve: "continuous"
264
+ },
265
+ label: {
266
+ fontFamily: theme.fontFamilies.body,
267
+ fontWeight: theme.fontWeights.semibold,
268
+ textAlign: "center"
269
+ },
270
+ /**
271
+ * The bare cells read the **page's** foreground rather than the variant's, and they
272
+ * are painted here rather than in `paint` because that is exactly what makes them
273
+ * independent of it: a `primary` pad puts `accentForeground` on its digits, and a
274
+ * backspace with no ground of its own would take white on white. It is also why a raw
275
+ * `color` does not reach them — `resolveTint` re-runs `paint`, not `base`.
276
+ */
277
+ ghostLabel: {
278
+ fontFamily: theme.fontFamilies.body,
279
+ fontWeight: theme.fontWeights.medium,
280
+ textAlign: "center",
281
+ color: theme.colors.foreground
282
+ },
283
+ ghostIcon: { color: theme.colors.foreground }
284
+ }),
285
+ variantTokens: VARIANT_TOKENS,
286
+ /**
287
+ * Where the variant's colours land. Only the filled keys: the border width follows the
288
+ * *presence* of the border role rather than a per-variant flag, and `tertiary` is the one
289
+ * variant that names one.
290
+ */
291
+ paint: (theme, colors) => ({
292
+ key: {
293
+ backgroundColor: colors.bg,
294
+ borderColor: colors.border,
295
+ borderWidth: colors.border ? theme.borderWidth.default : 0
296
+ },
297
+ label: { color: colors.fg },
298
+ icon: { color: colors.fg }
299
+ }),
300
+ /** Declaration order is application order: `radius` overrides the corner `size` chose. */
301
+ variants: {
302
+ size: { sm: sizeAxis(SIZES.sm), md: sizeAxis(SIZES.md), lg: sizeAxis(SIZES.lg) },
303
+ radius: _chunkSL3V7R2Ycjs.radiusAxis.call(void 0, "key", "ghost")
304
+ },
305
+ /**
306
+ * A filled key presses to the variant's own `…Pressed` token, as the `Button` does. A
307
+ * bare cell has no fill to darken, so it takes the neutral wash instead — the same one
308
+ * `ghost` and `tertiary` take, which is what makes the backspace read as pressed on a
309
+ * pad of any variant.
310
+ */
311
+ states: {
312
+ pressed: (theme, colors) => ({
313
+ key: { backgroundColor: colors.bgPressed },
314
+ ghost: { backgroundColor: theme.colors.defaultSoftPressed }
315
+ }),
316
+ disabled: (theme) => ({ root: { opacity: theme.opacity.disabled } })
317
+ },
318
+ defaultVariants: { variant: "default", size: "md" }
319
+ });
320
+
321
+ // src/components/number-pad/number-pad.style.ts
322
+
323
+ var numberPadSheet = _reactnative.StyleSheet.create({
324
+ spacer: { flex: 1 }
325
+ });
326
+
327
+ // src/components/number-pad/number-pad.utils.ts
328
+ var NUMBER_PAD_ROWS = [
329
+ ["1", "2", "3"],
330
+ ["4", "5", "6"],
331
+ ["7", "8", "9"]
332
+ ];
333
+ var NUMBER_PAD_ZERO = "0";
334
+ function appendKey({ value, insert, maxLength }) {
335
+ if (maxLength === void 0) return value + insert;
336
+ if (value.length + insert.length > maxLength) return value;
337
+ return value + insert;
338
+ }
339
+ function removeLast(value) {
340
+ return value.slice(0, -1);
341
+ }
342
+ function isComplete(value, maxLength) {
343
+ return maxLength !== void 0 && value.length >= maxLength;
344
+ }
345
+
346
+ // src/components/number-pad/number-pad.tsx
347
+
348
+ var NumberPadRoot = _react.forwardRef.call(void 0, function NumberPad({
349
+ children,
350
+ variant,
351
+ size,
352
+ radius,
353
+ color,
354
+ value: controlledValue,
355
+ defaultValue = "",
356
+ onChangeText,
357
+ onComplete,
358
+ maxLength,
359
+ isDisabled = false,
360
+ accessibilityRole = "none",
361
+ style,
362
+ ...props
363
+ }, ref) {
364
+ const theme = _chunkIIAQISBGcjs.useXAUITheme.call(void 0, );
365
+ const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
366
+ const [value, setValue] = _chunk7EIHHOHPcjs.useControllableState.call(void 0, {
367
+ value: controlledValue,
368
+ defaultValue,
369
+ onChange: onChangeText
370
+ });
371
+ const selection = { variant, size, radius };
372
+ const states = { disabled: isDisabled };
373
+ const styles = numberPadRecipe.resolve({ theme, selection, states });
374
+ const pressed = numberPadRecipe.resolve({
375
+ theme,
376
+ selection,
377
+ states: { ...states, pressed: true }
378
+ });
379
+ const tint = color ? numberPadRecipe.tint({ theme, color, selection, states }) : void 0;
380
+ const tintPressed = color ? numberPadRecipe.tint({
381
+ theme,
382
+ color,
383
+ selection,
384
+ states: { ...states, pressed: true }
385
+ }) : void 0;
386
+ const insert = _react.useCallback.call(void 0,
387
+ (text) => {
388
+ const next = appendKey({ value, insert: text, maxLength });
389
+ if (next === value) return;
390
+ setValue(next);
391
+ if (isComplete(next, maxLength)) _optionalChain([onComplete, 'optionalCall', _4 => _4(next)]);
392
+ },
393
+ [value, maxLength, setValue, onComplete]
394
+ );
395
+ const backspace = _react.useCallback.call(void 0, () => {
396
+ if (value === "") return;
397
+ setValue(removeLast(value));
398
+ }, [value, setValue]);
399
+ const clear = _react.useCallback.call(void 0, () => {
400
+ if (value === "") return;
401
+ setValue("");
402
+ }, [value, setValue]);
403
+ const context = _react.useMemo.call(void 0, () => {
404
+ const glyph = (...layers) => {
405
+ const flat = _reactnative.StyleSheet.flatten(layers);
406
+ return {
407
+ size: flat.fontSize,
408
+ // `ColorValue` also covers the platform's opaque colours, which `Icon` cannot hand
409
+ // to a third-party component expecting a string.
410
+ color: typeof flat.color === "string" ? flat.color : void 0
411
+ };
412
+ };
413
+ return {
414
+ rowStyle: styles.row,
415
+ keyStyle: tint ? [styles.key, tint.key] : styles.key,
416
+ keyPressedStyle: tintPressed ? [pressed.key, tintPressed.key] : pressed.key,
417
+ labelStyle: tint ? [styles.label, tint.label] : styles.label,
418
+ ghostStyle: styles.ghost,
419
+ ghostPressedStyle: pressed.ghost,
420
+ ghostLabelStyle: styles.ghostLabel,
421
+ icon: glyph(styles.icon, _optionalChain([tint, 'optionalAccess', _5 => _5.icon])),
422
+ // Never tinted, deliberately: the bare corners read the page's foreground, because a
423
+ // glyph with no ground of its own has nothing tinted to read against.
424
+ ghostIcon: glyph(styles.ghostIcon),
425
+ insert,
426
+ backspace,
427
+ clear,
428
+ value,
429
+ maxLength,
430
+ isDisabled
431
+ };
432
+ }, [
433
+ styles,
434
+ pressed,
435
+ tint,
436
+ tintPressed,
437
+ insert,
438
+ backspace,
439
+ clear,
440
+ value,
441
+ maxLength,
442
+ isDisabled
443
+ ]);
444
+ const rootStyle = [styles.root, _optionalChain([tint, 'optionalAccess', _6 => _6.root]), styleProps, style];
445
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, NumberPadProvider, { value: context, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
446
+ _reactnative.View,
447
+ {
448
+ ref,
449
+ accessibilityRole,
450
+ ...rest,
451
+ style: rootStyle,
452
+ children: [
453
+ NUMBER_PAD_ROWS.map((row) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { style: styles.row, children: row.map((digit) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, NumberPadKey, { value: digit }, digit)) }, row.join(""))),
454
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnative.View, { style: styles.row, children: [
455
+ _nullishCoalesce(children, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { style: numberPadSheet.spacer }))),
456
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, NumberPadKey, { value: NUMBER_PAD_ZERO }),
457
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, NumberPadBackspace, {})
458
+ ] })
459
+ ]
460
+ }
461
+ ) });
462
+ });
463
+ NumberPadRoot.displayName = "XAUI.NumberPad.Root";
464
+
465
+ // src/components/number-pad/index.ts
466
+ var NumberPad2 = Object.assign(NumberPadRoot, {
467
+ Key: NumberPadKey,
468
+ Backspace: NumberPadBackspace,
469
+ Action: NumberPadAction,
470
+ Label: NumberPadLabel,
471
+ Icon: NumberPadIcon
472
+ });
473
+
474
+
475
+
476
+
477
+
478
+
479
+
480
+
481
+
482
+
483
+
484
+
485
+
486
+
487
+ exports.useNumberPad = useNumberPad; exports.useNumberPadCell = useNumberPadCell; exports.NumberPadAction = NumberPadAction; exports.NumberPadLabel = NumberPadLabel; exports.NumberPadBackspace = NumberPadBackspace; exports.NumberPadIcon = NumberPadIcon; exports.NumberPadKey = NumberPadKey; exports.numberPadRecipe = numberPadRecipe; exports.NUMBER_PAD_ROWS = NUMBER_PAD_ROWS; exports.NUMBER_PAD_ZERO = NUMBER_PAD_ZERO; exports.NumberPadRoot = NumberPadRoot; exports.NumberPad = NumberPad2;
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkH2FTAU5Ccjs = require('./chunk-H2FTAU5C.cjs');
3
+ var _chunkXSQPVDFHcjs = require('./chunk-XSQPVDFH.cjs');
4
4
 
5
5
 
6
- var _chunkXSQPVDFHcjs = require('./chunk-XSQPVDFH.cjs');
6
+ var _chunkH2FTAU5Ccjs = require('./chunk-H2FTAU5C.cjs');
7
7
 
8
8
 
9
- var _chunkPIU3JONRcjs = require('./chunk-PIU3JONR.cjs');
9
+ var _chunkOW4N2C3Mcjs = require('./chunk-OW4N2C3M.cjs');
10
10
 
11
11
 
12
12
  var _chunk7DPL3ZDScjs = require('./chunk-7DPL3ZDS.cjs');
@@ -272,7 +272,7 @@ var ButtonRoot = _react.forwardRef.call(void 0, function Button({
272
272
  );
273
273
  }
274
274
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ButtonProvider, { value: context, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
275
- _chunkPIU3JONRcjs.PressableFeedback,
275
+ _chunkOW4N2C3Mcjs.PressableFeedback,
276
276
  {
277
277
  ref,
278
278
  isPressed,
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  Calendar,
6
6
  SIZES
7
- } from "./chunk-BLDMKFIG.js";
7
+ } from "./chunk-RSIWSVXI.js";
8
8
  import {
9
9
  startOfDay
10
10
  } from "./chunk-SHFUQVLX.js";
@@ -31,7 +31,7 @@ import {
31
31
  } from "./chunk-F6W3JQ7K.js";
32
32
  import {
33
33
  PressableFeedback
34
- } from "./chunk-XZ42OWKC.js";
34
+ } from "./chunk-2AFA5HA2.js";
35
35
  import {
36
36
  usePressState
37
37
  } from "./chunk-423RQBOX.js";