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

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 (247) hide show
  1. package/dist/{chunk-PAQZOD2L.js → chunk-2JFMCW5E.js} +1 -1
  2. package/dist/chunk-2TLPFGGR.cjs +251 -0
  3. package/dist/{chunk-TPYOQSKT.js → chunk-2UNLQRXY.js} +1 -1
  4. package/dist/{chunk-JKDWYNSG.js → chunk-2XEQDQAN.js} +109 -107
  5. package/dist/{chunk-RXEUKYM5.js → chunk-33BA4LVN.js} +1 -1
  6. package/dist/{chunk-ODQHAPQW.js → chunk-4AIIAF6U.js} +24 -22
  7. package/dist/{chunk-QCH7X7O2.cjs → chunk-4LRVB6WR.cjs} +14 -14
  8. package/dist/{chunk-QUSQEYLP.cjs → chunk-53E2E7GS.cjs} +26 -28
  9. package/dist/{chunk-2B6PUYTP.cjs → chunk-55KGHYYU.cjs} +4 -4
  10. package/dist/{chunk-B33OU34Z.cjs → chunk-5O7E73QP.cjs} +12 -12
  11. package/dist/{chunk-FVEMTBU4.js → chunk-5XTF2JDK.js} +2 -2
  12. package/dist/{chunk-V2CEKPJ6.js → chunk-6MVKLRLZ.js} +1 -1
  13. package/dist/{chunk-RSIWSVXI.js → chunk-6NAZ2IHL.js} +1 -1
  14. package/dist/{chunk-LPJ3UBSO.cjs → chunk-6NRWZR7T.cjs} +2 -2
  15. package/dist/{chunk-FXN32S75.cjs → chunk-6SRFQSPR.cjs} +3 -3
  16. package/dist/{chunk-7EVW6O2Q.js → chunk-6W45YHTF.js} +1 -1
  17. package/dist/{chunk-7NQL5DXY.js → chunk-6XY3XAEQ.js} +1 -1
  18. package/dist/{chunk-UEW3GAP5.cjs → chunk-6ZWQDTGQ.cjs} +5 -5
  19. package/dist/{chunk-VMPCXS4S.js → chunk-7OVYYZ7H.js} +22 -20
  20. package/dist/{chunk-CYOUOQXT.cjs → chunk-AHJLQJOE.cjs} +5 -5
  21. package/dist/chunk-AHKKEM3K.cjs +536 -0
  22. package/dist/{chunk-WIX4SYZI.cjs → chunk-AIHKBSQ5.cjs} +2 -2
  23. package/dist/{chunk-WRZV6ORJ.js → chunk-AYOJXFHR.js} +1 -1
  24. package/dist/{chunk-OD6H7ANY.js → chunk-B5DBFS6M.js} +1 -1
  25. package/dist/{chunk-VQGNLX5C.js → chunk-BYDGJU5A.js} +1 -1
  26. package/dist/{chunk-NVODH2PR.js → chunk-CCTAJXZ3.js} +63 -61
  27. package/dist/{chunk-ORXVXYKC.cjs → chunk-CHGBWFDI.cjs} +63 -26
  28. package/dist/{chunk-WLJPO3AS.cjs → chunk-CZ2NUGUI.cjs} +357 -201
  29. package/dist/{chunk-PYQ2P3M5.cjs → chunk-CZEWWCWG.cjs} +58 -58
  30. package/dist/{chunk-PDSR42YC.cjs → chunk-D22K3NZU.cjs} +3 -3
  31. package/dist/{chunk-TRWZEOCO.js → chunk-DBP5CA5R.js} +2 -2
  32. package/dist/{chunk-QN2D5ZCS.cjs → chunk-DE4RSR7Q.cjs} +3 -3
  33. package/dist/{chunk-FOOXBVOQ.js → chunk-E5E2QA4K.js} +22 -20
  34. package/dist/{chunk-LECYGVIH.js → chunk-EQUD3NHO.js} +50 -48
  35. package/dist/chunk-ERIGD4SE.cjs +686 -0
  36. package/dist/{chunk-62AYYMZP.cjs → chunk-FDYPWVNP.cjs} +3 -3
  37. package/dist/chunk-GN7BWYXP.cjs +627 -0
  38. package/dist/chunk-GWTURY4S.cjs +999 -0
  39. package/dist/{chunk-OW4N2C3M.cjs → chunk-HBYT7B47.cjs} +88 -61
  40. package/dist/{chunk-XWIPLZTD.cjs → chunk-HOV25N3M.cjs} +2 -2
  41. package/dist/{chunk-5MMBEDZG.cjs → chunk-I3XIZWCV.cjs} +29 -29
  42. package/dist/{chunk-EDNCHCIN.cjs → chunk-IAJG7GYE.cjs} +2 -2
  43. package/dist/{chunk-P7OHZCU3.js → chunk-IAWLQN2W.js} +2 -2
  44. package/dist/{chunk-RCSEVEIR.js → chunk-ICVIWXK4.js} +1 -1
  45. package/dist/{chunk-RREJUSAS.cjs → chunk-IMIY34F4.cjs} +3 -3
  46. package/dist/{chunk-ZWS3FQ3J.js → chunk-IUDQG3JI.js} +57 -57
  47. package/dist/{chunk-O6B72H4B.js → chunk-K7VDLVLE.js} +6 -8
  48. package/dist/{chunk-P2CJNTAP.js → chunk-KFB24VYT.js} +22 -20
  49. package/dist/chunk-KHPODIQV.cjs +540 -0
  50. package/dist/{chunk-CBRW53GN.cjs → chunk-KMK6FUTK.cjs} +39 -23
  51. package/dist/{chunk-2AFA5HA2.js → chunk-KQW25RCC.js} +77 -75
  52. package/dist/{chunk-X4CZYJZ6.cjs → chunk-LCGJA37L.cjs} +12 -12
  53. package/dist/{chunk-SUJLTC2K.js → chunk-LPGY2IDX.js} +1 -1
  54. package/dist/{chunk-P5M5URAB.js → chunk-LSZW4G7B.js} +31 -31
  55. package/dist/{chunk-GYEQEF5H.js → chunk-LUPU7FJK.js} +1 -1
  56. package/dist/chunk-MNBEUNC5.cjs +792 -0
  57. package/dist/{chunk-AIND5F7P.js → chunk-MTQGFUW5.js} +29 -29
  58. package/dist/chunk-NGXLJ5ZF.cjs +395 -0
  59. package/dist/{chunk-DYQB54JA.cjs → chunk-NPAGA6SH.cjs} +2 -2
  60. package/dist/{chunk-QELEKXN3.cjs → chunk-OMI2FRCU.cjs} +5 -5
  61. package/dist/{chunk-EBCAPIBD.js → chunk-OX23MW5E.js} +70 -50
  62. package/dist/{chunk-MMFIMQMQ.js → chunk-OZLOYXLW.js} +2 -2
  63. package/dist/{chunk-JBZ7SBRV.cjs → chunk-Q3ZKZ2Y6.cjs} +3 -3
  64. package/dist/{chunk-TCWW7JI2.js → chunk-QT7KLGO3.js} +65 -63
  65. package/dist/{chunk-6RU6GUJP.js → chunk-QZF7RSVV.js} +1 -1
  66. package/dist/{chunk-UYQLW7OD.js → chunk-RAYO2TJL.js} +2 -2
  67. package/dist/{chunk-FRLWG5LM.js → chunk-RFT5MGJC.js} +25 -25
  68. package/dist/chunk-SIOSYITD.cjs +1039 -0
  69. package/dist/{chunk-USIWPESU.js → chunk-SIX5AVXG.js} +1 -1
  70. package/dist/{chunk-52XUGOLD.js → chunk-SX5U5UJQ.js} +3 -3
  71. package/dist/{chunk-GGP2ERSV.js → chunk-T5ES7FOL.js} +1 -1
  72. package/dist/{chunk-MSORLKO7.cjs → chunk-V3C3ATRO.cjs} +2 -2
  73. package/dist/{chunk-BI5ME4QP.cjs → chunk-VBS6VWW4.cjs} +5 -5
  74. package/dist/{chunk-KPKEZWZM.js → chunk-VQ4OTVET.js} +189 -211
  75. package/dist/{chunk-6GQ7UTJ7.cjs → chunk-VXAIFOXL.cjs} +2 -2
  76. package/dist/{chunk-BJVO7DWJ.js → chunk-W4F4NQXM.js} +1 -1
  77. package/dist/{chunk-ZE4IHUUO.cjs → chunk-WNEDQTH6.cjs} +2 -2
  78. package/dist/{chunk-CBXILKQZ.cjs → chunk-WPYJW3WM.cjs} +3 -3
  79. package/dist/{chunk-QHXTO525.js → chunk-WYJHDTU7.js} +1 -1
  80. package/dist/{chunk-PROLOLZ5.cjs → chunk-X22PLAP6.cjs} +2 -2
  81. package/dist/chunk-X6GT4H4I.cjs +662 -0
  82. package/dist/{chunk-RLC3EXMV.js → chunk-XM4IN4Q6.js} +2 -2
  83. package/dist/{chunk-ZKGVOXLQ.js → chunk-XOZMGNVS.js} +1 -1
  84. package/dist/chunk-XXXR2AD3.cjs +94 -0
  85. package/dist/{chunk-JC4YCKKL.js → chunk-YI5D4QZP.js} +22 -20
  86. package/dist/{chunk-AR7667VN.cjs → chunk-YJA7OQQZ.cjs} +4 -4
  87. package/dist/{chunk-PAQD6UUF.cjs → chunk-YJIVPYMG.cjs} +3 -3
  88. package/dist/{chunk-JJYHW4PV.js → chunk-YOPWQHNO.js} +1 -1
  89. package/dist/{chunk-LKRQUQZQ.cjs → chunk-YRANVNJG.cjs} +2 -2
  90. package/dist/chunk-ZDJQ643D.js +62 -0
  91. package/dist/components/accordion/index.cjs +3 -3
  92. package/dist/components/accordion/index.js +2 -2
  93. package/dist/components/agenda-calendar/index.cjs +4 -4
  94. package/dist/components/agenda-calendar/index.js +3 -3
  95. package/dist/components/alert/index.cjs +4 -4
  96. package/dist/components/alert/index.js +3 -3
  97. package/dist/components/autocomplete/index.cjs +3 -3
  98. package/dist/components/autocomplete/index.js +2 -2
  99. package/dist/components/bottom-sheet/index.cjs +3 -3
  100. package/dist/components/bottom-sheet/index.js +2 -2
  101. package/dist/components/button/index.cjs +3 -3
  102. package/dist/components/button/index.js +2 -2
  103. package/dist/components/calendar/index.cjs +3 -3
  104. package/dist/components/calendar/index.js +2 -2
  105. package/dist/components/card/index.cjs +3 -3
  106. package/dist/components/card/index.js +2 -2
  107. package/dist/components/carousel/index.cjs +3 -3
  108. package/dist/components/carousel/index.js +2 -2
  109. package/dist/components/checkbox/index.cjs +3 -3
  110. package/dist/components/checkbox/index.js +2 -2
  111. package/dist/components/chip/index.cjs +4 -4
  112. package/dist/components/chip/index.js +3 -3
  113. package/dist/components/close-button/index.cjs +4 -4
  114. package/dist/components/close-button/index.js +3 -3
  115. package/dist/components/color-picker/index.cjs +6 -6
  116. package/dist/components/color-picker/index.js +5 -5
  117. package/dist/components/combobox/index.cjs +4 -4
  118. package/dist/components/combobox/index.js +3 -3
  119. package/dist/components/date-picker/index.cjs +4 -4
  120. package/dist/components/date-picker/index.js +3 -3
  121. package/dist/components/date-range-picker/index.cjs +6 -6
  122. package/dist/components/date-range-picker/index.js +5 -5
  123. package/dist/components/date-time-picker/date-time-picker-indicator.d.cts +2 -2
  124. package/dist/components/date-time-picker/date-time-picker-indicator.d.ts +2 -2
  125. package/dist/components/date-time-picker/date-time-picker.type.d.cts +3 -2
  126. package/dist/components/date-time-picker/date-time-picker.type.d.ts +3 -2
  127. package/dist/components/date-time-picker/index.cjs +8 -9
  128. package/dist/components/date-time-picker/index.d.cts +1 -1
  129. package/dist/components/date-time-picker/index.d.ts +1 -1
  130. package/dist/components/date-time-picker/index.js +7 -8
  131. package/dist/components/dialog/index.cjs +4 -4
  132. package/dist/components/dialog/index.js +3 -3
  133. package/dist/components/dummy-field/index.cjs +3 -3
  134. package/dist/components/dummy-field/index.js +2 -2
  135. package/dist/components/fab/index.cjs +3 -3
  136. package/dist/components/fab/index.js +2 -2
  137. package/dist/components/flip-card/index.cjs +3 -3
  138. package/dist/components/flip-card/index.js +2 -2
  139. package/dist/components/index.d.cts +0 -1
  140. package/dist/components/index.d.ts +0 -1
  141. package/dist/components/list-box/index.cjs +2 -2
  142. package/dist/components/list-box/index.js +1 -1
  143. package/dist/components/menu/index.cjs +3 -3
  144. package/dist/components/menu/index.js +2 -2
  145. package/dist/components/morph-button/index.cjs +3 -3
  146. package/dist/components/morph-button/index.js +2 -2
  147. package/dist/components/number-field/number-field-increment.d.cts +2 -2
  148. package/dist/components/number-field/number-field-increment.d.ts +2 -2
  149. package/dist/components/number-pad/index.cjs +3 -3
  150. package/dist/components/number-pad/index.js +2 -2
  151. package/dist/components/number-stepper/index.cjs +3 -3
  152. package/dist/components/number-stepper/index.js +2 -2
  153. package/dist/components/pager/index.cjs +4 -2
  154. package/dist/components/pager/index.d.cts +2 -2
  155. package/dist/components/pager/index.d.ts +2 -2
  156. package/dist/components/pager/index.js +3 -1
  157. package/dist/components/pager/pager.d.cts +3 -4
  158. package/dist/components/pager/pager.d.ts +3 -4
  159. package/dist/components/pager/pager.recipe.d.cts +19 -1
  160. package/dist/components/pager/pager.recipe.d.ts +19 -1
  161. package/dist/components/pager/pager.type.d.cts +5 -6
  162. package/dist/components/pager/pager.type.d.ts +5 -6
  163. package/dist/components/phone-number-field/index.cjs +14 -14
  164. package/dist/components/phone-number-field/index.js +3 -3
  165. package/dist/components/popover/index.cjs +3 -3
  166. package/dist/components/popover/index.js +2 -2
  167. package/dist/components/radio/index.cjs +3 -3
  168. package/dist/components/radio/index.js +2 -2
  169. package/dist/components/range-calendar/index.cjs +4 -4
  170. package/dist/components/range-calendar/index.js +3 -3
  171. package/dist/components/rating/index.cjs +3 -3
  172. package/dist/components/rating/index.js +2 -2
  173. package/dist/components/search-field/index.cjs +4 -4
  174. package/dist/components/search-field/index.js +3 -3
  175. package/dist/components/segment/index.cjs +4 -4
  176. package/dist/components/segment/index.js +2 -2
  177. package/dist/components/select/index.cjs +3 -3
  178. package/dist/components/select/index.js +2 -2
  179. package/dist/components/slider/index.cjs +2 -2
  180. package/dist/components/slider/index.js +1 -1
  181. package/dist/components/snackbar/index.cjs +3 -3
  182. package/dist/components/snackbar/index.js +2 -2
  183. package/dist/components/switch/index.cjs +3 -3
  184. package/dist/components/switch/index.js +2 -2
  185. package/dist/components/table/index.cjs +4 -4
  186. package/dist/components/table/index.js +3 -3
  187. package/dist/components/tabs/index.cjs +4 -4
  188. package/dist/components/tabs/index.js +3 -3
  189. package/dist/components/tag-group/index.cjs +4 -4
  190. package/dist/components/tag-group/index.js +3 -3
  191. package/dist/components/time-picker/index.cjs +4 -5
  192. package/dist/components/time-picker/index.d.cts +1 -1
  193. package/dist/components/time-picker/index.d.ts +1 -1
  194. package/dist/components/time-picker/index.js +3 -4
  195. package/dist/components/time-picker/time-picker-display.d.cts +3 -3
  196. package/dist/components/time-picker/time-picker-display.d.ts +3 -3
  197. package/dist/components/time-picker/time-picker-indicator.d.cts +2 -2
  198. package/dist/components/time-picker/time-picker-indicator.d.ts +2 -2
  199. package/dist/components/time-picker/time-picker.d.cts +1 -1
  200. package/dist/components/time-picker/time-picker.d.ts +1 -1
  201. package/dist/components/time-picker/time-picker.type.d.cts +11 -1
  202. package/dist/components/time-picker/time-picker.type.d.ts +11 -1
  203. package/dist/components/toast/index.cjs +3 -3
  204. package/dist/components/toast/index.js +2 -2
  205. package/dist/components/toggle-button/index.cjs +3 -3
  206. package/dist/components/toggle-button/index.js +2 -2
  207. package/dist/components/wheel-picker/index.cjs +2 -2
  208. package/dist/components/wheel-picker/index.js +1 -1
  209. package/dist/index.cjs +48 -59
  210. package/dist/index.js +52 -63
  211. package/dist/system/index.cjs +3 -3
  212. package/dist/system/index.js +2 -2
  213. package/dist/utils/time.d.cts +29 -0
  214. package/dist/utils/time.d.ts +29 -0
  215. package/package.json +1 -11
  216. package/dist/chunk-3MRCSXGT.js +0 -73
  217. package/dist/chunk-5E6SHYEQ.cjs +0 -631
  218. package/dist/chunk-6JAGPPZU.cjs +0 -788
  219. package/dist/chunk-CEPX7CKM.cjs +0 -365
  220. package/dist/chunk-CHFPFYNV.js +0 -60
  221. package/dist/chunk-ECR6GPJ6.js +0 -198
  222. package/dist/chunk-GBTNFQXN.cjs +0 -33
  223. package/dist/chunk-GZAGWNQM.cjs +0 -719
  224. package/dist/chunk-ILXKBDC6.cjs +0 -209
  225. package/dist/chunk-IPD3IUE2.cjs +0 -640
  226. package/dist/chunk-P2V6PIM7.cjs +0 -478
  227. package/dist/chunk-Q2BWXT55.cjs +0 -1011
  228. package/dist/chunk-UFKSUELU.cjs +0 -453
  229. package/dist/chunk-UR37LVPU.cjs +0 -382
  230. package/dist/chunk-W4IPOWLY.cjs +0 -198
  231. package/dist/chunk-YSTLHVQV.cjs +0 -73
  232. package/dist/components/time-field/index.cjs +0 -27
  233. package/dist/components/time-field/index.d.cts +0 -52
  234. package/dist/components/time-field/index.d.ts +0 -52
  235. package/dist/components/time-field/index.js +0 -27
  236. package/dist/components/time-field/time-field-field.d.cts +0 -11
  237. package/dist/components/time-field/time-field-field.d.ts +0 -11
  238. package/dist/components/time-field/time-field-period.d.cts +0 -34
  239. package/dist/components/time-field/time-field-period.d.ts +0 -34
  240. package/dist/components/time-field/time-field.context.d.cts +0 -9
  241. package/dist/components/time-field/time-field.context.d.ts +0 -9
  242. package/dist/components/time-field/time-field.d.cts +0 -56
  243. package/dist/components/time-field/time-field.d.ts +0 -56
  244. package/dist/components/time-field/time-field.type.d.cts +0 -72
  245. package/dist/components/time-field/time-field.type.d.ts +0 -72
  246. package/dist/utils/time-mask.d.cts +0 -68
  247. package/dist/utils/time-mask.d.ts +0 -68
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  PressableFeedback
3
- } from "./chunk-2AFA5HA2.js";
3
+ } from "./chunk-KQW25RCC.js";
4
4
  import {
5
5
  usePressState
6
6
  } from "./chunk-423RQBOX.js";
@@ -4,20 +4,20 @@ import {
4
4
  DummyFieldField,
5
5
  DummyFieldLabel,
6
6
  DummyFieldRoot
7
- } from "./chunk-ZKGVOXLQ.js";
7
+ } from "./chunk-XOZMGNVS.js";
8
8
  import {
9
9
  Dialog,
10
10
  DialogClose,
11
11
  DialogContent,
12
12
  DialogOverlay,
13
13
  DialogTitle
14
- } from "./chunk-FVEMTBU4.js";
14
+ } from "./chunk-5XTF2JDK.js";
15
15
  import {
16
16
  useControllableState
17
17
  } from "./chunk-F6W3JQ7K.js";
18
18
  import {
19
19
  PressableFeedback
20
- } from "./chunk-2AFA5HA2.js";
20
+ } from "./chunk-KQW25RCC.js";
21
21
  import {
22
22
  usePressState
23
23
  } from "./chunk-423RQBOX.js";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-F6W3JQ7K.js";
4
4
  import {
5
5
  PressableFeedback
6
- } from "./chunk-2AFA5HA2.js";
6
+ } from "./chunk-KQW25RCC.js";
7
7
  import {
8
8
  usePressState
9
9
  } from "./chunk-423RQBOX.js";
@@ -6,7 +6,7 @@ var _chunkH2FTAU5Ccjs = require('./chunk-H2FTAU5C.cjs');
6
6
  var _chunk7EIHHOHPcjs = require('./chunk-7EIHHOHP.cjs');
7
7
 
8
8
 
9
- var _chunkOW4N2C3Mcjs = require('./chunk-OW4N2C3M.cjs');
9
+ var _chunkHBYT7B47cjs = require('./chunk-HBYT7B47.cjs');
10
10
 
11
11
 
12
12
  var _chunk7DPL3ZDScjs = require('./chunk-7DPL3ZDS.cjs');
@@ -372,7 +372,7 @@ var MorphButtonRoot = _react.forwardRef.call(void 0,
372
372
  );
373
373
  }
374
374
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MorphButtonProvider, { value: context, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
375
- _chunkOW4N2C3Mcjs.PressableFeedback,
375
+ _chunkHBYT7B47cjs.PressableFeedback,
376
376
  {
377
377
  ref,
378
378
  isPressed,
@@ -1,10 +1,10 @@
1
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
2
 
3
3
 
4
- var _chunkZE4IHUUOcjs = require('./chunk-ZE4IHUUO.cjs');
4
+ var _chunkWNEDQTH6cjs = require('./chunk-WNEDQTH6.cjs');
5
5
 
6
6
 
7
- var _chunkOW4N2C3Mcjs = require('./chunk-OW4N2C3M.cjs');
7
+ var _chunkHBYT7B47cjs = require('./chunk-HBYT7B47.cjs');
8
8
 
9
9
 
10
10
  var _chunk7DPL3ZDScjs = require('./chunk-7DPL3ZDS.cjs');
@@ -60,7 +60,7 @@ ChipAvatar.displayName = "XAUI.Chip.Avatar";
60
60
  var ChipClose = _react.forwardRef.call(void 0, function ChipClose2({ isDisabled, ...props }, ref) {
61
61
  const { closeStyle, closeGlyphStyle, isDisabled: isChipDisabled } = useChip();
62
62
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
63
- _chunkZE4IHUUOcjs.CloseButtonBase,
63
+ _chunkWNEDQTH6cjs.CloseButtonBase,
64
64
  {
65
65
  ref,
66
66
  name: "Chip.Close",
@@ -244,7 +244,7 @@ var chipRecipe = _chunkSL3V7R2Ycjs.createRecipe.call(void 0, {
244
244
  // The cross's own geometry — thickness and centring — belongs to the shared
245
245
  // `CloseButtonBase`; what stays below is the box and bar size this component's scale sets.
246
246
  base: (theme) => ({
247
- ..._chunkZE4IHUUOcjs.closeButtonGeometry.call(void 0, theme),
247
+ ..._chunkWNEDQTH6cjs.closeButtonGeometry.call(void 0, theme),
248
248
  root: {
249
249
  // A chip hugs its content where a `Button` fills its column. The difference is what
250
250
  // the two are: a button is a control the layout sizes, a chip is a token *about*
@@ -373,7 +373,7 @@ var ChipRoot = _react.forwardRef.call(void 0, function Chip({
373
373
  );
374
374
  }
375
375
  const surface = isPressable ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
376
- _chunkOW4N2C3Mcjs.PressableFeedback,
376
+ _chunkHBYT7B47cjs.PressableFeedback,
377
377
  {
378
378
  ref,
379
379
  isPressed,
@@ -15,10 +15,10 @@ var [PagerProvider, usePager] = createSlotContext("Pager");
15
15
 
16
16
  // src/components/pager/pager-content.tsx
17
17
  import { jsx } from "react/jsx-runtime";
18
- const _worklet_5592363110114_init_data = {
19
- code: "function chunkKPKEZWZMJs1(event){const{isHorizontal,offset,indexFromOffset,step,count,settled,runOnJS,onSettle}=this.__closure;const travelled=isHorizontal?event.contentOffset.x:event.contentOffset.y;offset.set(travelled);const next=indexFromOffset(travelled,step,count);if(next!==settled.get()){settled.set(next);runOnJS(onSettle)(next);}}",
20
- location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-KPKEZWZM.js",
21
- sourceMap: "{\"version\":3,\"names\":[\"chunkKPKEZWZMJs1\",\"event\",\"isHorizontal\",\"offset\",\"indexFromOffset\",\"step\",\"count\",\"settled\",\"runOnJS\",\"onSettle\",\"__closure\",\"travelled\",\"contentOffset\",\"x\",\"y\",\"set\",\"next\",\"get\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-KPKEZWZM.js\"],\"mappings\":\"AAiE6C,SAAAA,gBAAUA,CAAAC,KAAA,QAAAC,YAAA,CAAAC,MAAA,CAAAC,eAAA,CAAAC,IAAA,CAAAC,KAAA,CAAAC,OAAA,CAAAC,OAAA,CAAAC,QAAA,OAAAC,SAAA,CACjD,KAAM,CAAAC,SAAS,CAAGT,YAAY,CAAGD,KAAK,CAACW,aAAa,CAACC,CAAC,CAAGZ,KAAK,CAACW,aAAa,CAACE,CAAC,CAC9EX,MAAM,CAACY,GAAG,CAACJ,SAAS,CAAC,CACrB,KAAM,CAAAK,IAAI,CAAGZ,eAAe,CAACO,SAAS,CAAEN,IAAI,CAAEC,KAAK,CAAC,CACpD,GAAIU,IAAI,GAAKT,OAAO,CAACU,GAAG,CAAC,CAAC,CAAE,CAC1BV,OAAO,CAACQ,GAAG,CAACC,IAAI,CAAC,CACjBR,OAAO,CAACC,QAAQ,CAAC,CAACO,IAAI,CAAC,CACzB,CACF\",\"ignoreList\":[]}"
18
+ const _worklet_17495950956898_init_data = {
19
+ code: "function chunkVQ4OTVETJs1(event){const{isHorizontal,offset,indexFromOffset,step,count,settled,runOnJS,onSettle}=this.__closure;const travelled=isHorizontal?event.contentOffset.x:event.contentOffset.y;offset.set(travelled);const next=indexFromOffset(travelled,step,count);if(next!==settled.get()){settled.set(next);runOnJS(onSettle)(next);}}",
20
+ location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-VQ4OTVET.js",
21
+ sourceMap: "{\"version\":3,\"names\":[\"chunkVQ4OTVETJs1\",\"event\",\"isHorizontal\",\"offset\",\"indexFromOffset\",\"step\",\"count\",\"settled\",\"runOnJS\",\"onSettle\",\"__closure\",\"travelled\",\"contentOffset\",\"x\",\"y\",\"set\",\"next\",\"get\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-VQ4OTVET.js\"],\"mappings\":\"AAkEO,SAAAA,gBAAUA,CAAAC,KAAA,QAAAC,YAAA,CAAAC,MAAA,CAAAC,eAAA,CAAAC,IAAA,CAAAC,KAAA,CAAAC,OAAA,CAAAC,OAAA,CAAAC,QAAA,OAAAC,SAAA,CAET,KAAM,CAAAC,SAAS,CAAGT,YAAY,CAAGD,KAAK,CAACW,aAAa,CAACC,CAAC,CAAGZ,KAAK,CAACW,aAAa,CAACE,CAAC,CAC9EX,MAAM,CAACY,GAAG,CAACJ,SAAS,CAAC,CACrB,KAAM,CAAAK,IAAI,CAAGZ,eAAe,CAACO,SAAS,CAAEN,IAAI,CAAEC,KAAK,CAAC,CACpD,GAAIU,IAAI,GAAKT,OAAO,CAACU,GAAG,CAAC,CAAC,CAAE,CAC1BV,OAAO,CAACQ,GAAG,CAACC,IAAI,CAAC,CACjBR,OAAO,CAACC,QAAQ,CAAC,CAACO,IAAI,CAAC,CACzB,CACF\",\"ignoreList\":[]}"
22
22
  };
23
23
  var PagerContent = forwardRef(function PagerContent2({
24
24
  children,
@@ -58,8 +58,8 @@ var PagerContent = forwardRef(function PagerContent2({
58
58
  };
59
59
  const settled = useSharedValue(0);
60
60
  const isHorizontal = orientation === "horizontal";
61
- const scroll = useAnimatedScrollHandler(function chunkKPKEZWZMJs1Factory({
62
- _worklet_5592363110114_init_data,
61
+ const scroll = useAnimatedScrollHandler(function chunkVQ4OTVETJs1Factory({
62
+ _worklet_17495950956898_init_data,
63
63
  isHorizontal,
64
64
  offset,
65
65
  indexFromOffset,
@@ -70,7 +70,7 @@ var PagerContent = forwardRef(function PagerContent2({
70
70
  onSettle
71
71
  }) {
72
72
  const _e = [new global.Error(), -9, -27];
73
- const chunkKPKEZWZMJs1 = function (event) {
73
+ const chunkVQ4OTVETJs1 = function (event) {
74
74
  const travelled = isHorizontal ? event.contentOffset.x : event.contentOffset.y;
75
75
  offset.set(travelled);
76
76
  const next = indexFromOffset(travelled, step, count);
@@ -79,7 +79,7 @@ var PagerContent = forwardRef(function PagerContent2({
79
79
  runOnJS(onSettle)(next);
80
80
  }
81
81
  };
82
- chunkKPKEZWZMJs1.__closure = {
82
+ chunkVQ4OTVETJs1.__closure = {
83
83
  isHorizontal,
84
84
  offset,
85
85
  indexFromOffset,
@@ -89,13 +89,13 @@ var PagerContent = forwardRef(function PagerContent2({
89
89
  runOnJS,
90
90
  onSettle
91
91
  };
92
- chunkKPKEZWZMJs1.__workletHash = 5592363110114;
93
- chunkKPKEZWZMJs1.__pluginVersion = "0.7.4";
94
- chunkKPKEZWZMJs1.__initData = _worklet_5592363110114_init_data;
95
- chunkKPKEZWZMJs1.__stackDetails = _e;
96
- return chunkKPKEZWZMJs1;
92
+ chunkVQ4OTVETJs1.__workletHash = 17495950956898;
93
+ chunkVQ4OTVETJs1.__pluginVersion = "0.7.4";
94
+ chunkVQ4OTVETJs1.__initData = _worklet_17495950956898_init_data;
95
+ chunkVQ4OTVETJs1.__stackDetails = _e;
96
+ return chunkVQ4OTVETJs1;
97
97
  }({
98
- _worklet_5592363110114_init_data,
98
+ _worklet_17495950956898_init_data,
99
99
  isHorizontal,
100
100
  offset,
101
101
  indexFromOffset,
@@ -104,7 +104,7 @@ var PagerContent = forwardRef(function PagerContent2({
104
104
  settled,
105
105
  runOnJS,
106
106
  onSettle
107
- }));
107
+ }), [offset, settled, step, count, onSettle, isHorizontal]);
108
108
  return /* @__PURE__ */jsx(Animated.ScrollView, {
109
109
  ref: scroller,
110
110
  horizontal: isHorizontal,
@@ -126,171 +126,26 @@ PagerContent.displayName = "XAUI.Pager.Content";
126
126
  // src/components/pager/pager-indicator.tsx
127
127
  import { forwardRef as forwardRef2 } from "react";
128
128
  import { Pressable, View } from "react-native";
129
- import Animated2, { interpolateColor, useAnimatedStyle } from "react-native-reanimated";
130
- import { jsx as jsx2 } from "react/jsx-runtime";
131
- var HIT_SLOP = 8;
132
- var AnimatedPressable = Animated2.createAnimatedComponent(Pressable);
133
- var PagerIndicator = forwardRef2(function PagerIndicator2({
134
- children,
135
- style,
136
- ...props
137
- }, ref) {
138
- const {
139
- indicatorStyle,
140
- count
141
- } = usePager();
142
- const [styleProps, rest] = useStyleProps(props);
143
- return /* @__PURE__ */jsx2(View, {
144
- ref,
145
- ...rest,
146
- style: [indicatorStyle, styleProps, style],
147
- children: children ?? Array.from({
148
- length: count
149
- }, (_, index) => /* @__PURE__ */jsx2(PagerDot, {
150
- index
151
- }, index))
152
- });
153
- });
154
- PagerIndicator.displayName = "XAUI.Pager.Indicator";
155
- const _worklet_3999860474786_init_data = {
156
- code: "function chunkKPKEZWZMJs2(){const{progressFromOffset,offset,step,count,index,interpolateColor,restColor,active}=this.__closure;const distance=Math.abs(progressFromOffset(offset.get(),step,count)-index);const nearness=Math.max(0,1-distance);return{backgroundColor:interpolateColor(nearness,[0,1],[restColor,active])};}",
157
- location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-KPKEZWZM.js",
158
- sourceMap: "{\"version\":3,\"names\":[\"chunkKPKEZWZMJs2\",\"progressFromOffset\",\"offset\",\"step\",\"count\",\"index\",\"interpolateColor\",\"restColor\",\"active\",\"__closure\",\"distance\",\"Math\",\"abs\",\"get\",\"nearness\",\"max\",\"backgroundColor\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-KPKEZWZM.js\"],\"mappings\":\"AA+HkC,SAAAA,gBAAMA,CAAA,QAAAC,kBAAA,CAAAC,MAAA,CAAAC,IAAA,CAAAC,KAAA,CAAAC,KAAA,CAAAC,gBAAA,CAAAC,SAAA,CAAAC,MAAA,OAAAC,SAAA,CACpC,KAAM,CAAAC,QAAQ,CAAGC,IAAI,CAACC,GAAG,CAACX,kBAAkB,CAACC,MAAM,CAACW,GAAG,CAAC,CAAC,CAAEV,IAAI,CAAEC,KAAK,CAAC,CAAGC,KAAK,CAAC,CAChF,KAAM,CAAAS,QAAQ,CAAGH,IAAI,CAACI,GAAG,CAAC,CAAC,CAAE,CAAC,CAAGL,QAAQ,CAAC,CAC1C,MAAO,CACLM,eAAe,CAAEV,gBAAgB,CAACQ,QAAQ,CAAE,CAAC,CAAC,CAAE,CAAC,CAAC,CAAE,CAACP,SAAS,CAAEC,MAAM,CAAC,CACzE,CAAC,CACH\",\"ignoreList\":[]}"
159
- };
160
- var PagerDot = forwardRef2(function PagerDot2({
161
- index,
162
- children,
163
- style,
164
- ...props
165
- }, ref) {
166
- const {
167
- dotStyle,
168
- dotInk,
169
- offset,
170
- step,
171
- count,
172
- index: current,
173
- isDisabled,
174
- goTo
175
- } = usePager();
176
- const [styleProps, rest] = useStyleProps(props);
177
- const {
178
- rest: restColor,
179
- active
180
- } = dotInk;
181
- const travel = useAnimatedStyle(function chunkKPKEZWZMJs2Factory({
182
- _worklet_3999860474786_init_data,
183
- progressFromOffset,
184
- offset,
185
- step,
186
- count,
187
- index,
188
- interpolateColor,
189
- restColor,
190
- active
191
- }) {
192
- const _e = [new global.Error(), -9, -27];
193
- const chunkKPKEZWZMJs2 = function () {
194
- const distance = Math.abs(progressFromOffset(offset.get(), step, count) - index);
195
- const nearness = Math.max(0, 1 - distance);
196
- return {
197
- backgroundColor: interpolateColor(nearness, [0, 1], [restColor, active])
198
- };
199
- };
200
- chunkKPKEZWZMJs2.__closure = {
201
- progressFromOffset,
202
- offset,
203
- step,
204
- count,
205
- index,
206
- interpolateColor,
207
- restColor,
208
- active
209
- };
210
- chunkKPKEZWZMJs2.__workletHash = 3999860474786;
211
- chunkKPKEZWZMJs2.__pluginVersion = "0.7.4";
212
- chunkKPKEZWZMJs2.__initData = _worklet_3999860474786_init_data;
213
- chunkKPKEZWZMJs2.__stackDetails = _e;
214
- return chunkKPKEZWZMJs2;
215
- }({
216
- _worklet_3999860474786_init_data,
217
- progressFromOffset,
218
- offset,
219
- step,
220
- count,
221
- index,
222
- interpolateColor,
223
- restColor,
224
- active
225
- }));
226
- return /* @__PURE__ */jsx2(AnimatedPressable, {
227
- ref,
228
- accessibilityRole: "button",
229
- accessibilityState: {
230
- selected: index === current,
231
- disabled: isDisabled
232
- },
233
- accessibilityValue: {
234
- now: index + 1,
235
- min: 1,
236
- max: count
237
- },
238
- disabled: isDisabled,
239
- hitSlop: HIT_SLOP,
240
- ...rest,
241
- style: [dotStyle, travel, styleProps, style],
242
- onPress: () => goTo(index),
243
- children
244
- });
245
- });
246
- PagerDot.displayName = "XAUI.Pager.Dot";
247
-
248
- // src/components/pager/pager-page.tsx
249
- import { forwardRef as forwardRef3 } from "react";
250
- import { View as View2 } from "react-native";
251
- import { jsx as jsx3 } from "react/jsx-runtime";
252
- var PagerPage = forwardRef3(function PagerPage2({
253
- children,
254
- style,
255
- ...props
256
- }, ref) {
257
- const {
258
- pageStyle,
259
- track
260
- } = usePager();
261
- const [styleProps, rest] = useStyleProps(props);
262
- return /* @__PURE__ */jsx3(View2, {
263
- ref,
264
- ...rest,
265
- style: [pageStyle, {
266
- width: track.width,
267
- height: track.height
268
- }, styleProps, style],
269
- children
270
- });
271
- });
272
- PagerPage.displayName = "XAUI.Pager.Page";
273
-
274
- // src/components/pager/pager.tsx
275
- import { forwardRef as forwardRef4, useCallback, useMemo, useState } from "react";
276
- import { StyleSheet, View as View3 } from "react-native";
277
- import { useAnimatedRef, useSharedValue as useSharedValue2 } from "react-native-reanimated";
129
+ import Animated2, { interpolate, useAnimatedStyle } from "react-native-reanimated";
278
130
 
279
131
  // src/components/pager/pager.recipe.ts
280
- var SLOTS = ["root", "content", "page", "indicator", "dot", "dotActive"];
132
+ var SLOTS = ["root", "content", "page", "indicator", "dot"];
281
133
  var VARIANT_TOKENS = {
282
134
  primary: {
283
135
  bgSelected: "accent"
284
136
  },
137
+ // The page's own ink, for an indicator that has to read as chrome rather than as accent.
285
138
  secondary: {
286
- bgSelected: "defaultForeground"
139
+ bgSelected: "foreground"
287
140
  },
288
- // The raised ground rather than the page's, which on a light theme is white: this is the
289
- // pager over a photograph, where an accent dot disappears into whatever is behind it.
141
+ // The raised ground — white on a light theme. A pager over a *photograph* wants
142
+ // `color="#ffffff"` instead: a photograph is a photograph in both colour modes, and this
143
+ // token flips with the theme.
290
144
  tertiary: {
291
145
  bgSelected: "surface"
292
146
  }
293
147
  };
148
+ var DOT_REST_OPACITY = 0.3;
294
149
  var SIZES = {
295
150
  xs: {
296
151
  dot: 5,
@@ -334,7 +189,7 @@ function orientationAxis(direction) {
334
189
  }
335
190
  var pagerRecipe = createRecipe({
336
191
  slots: SLOTS,
337
- base: theme => ({
192
+ base: () => ({
338
193
  /**
339
194
  * **The root has no size of its own**, and that is deliberate rather than missing.
340
195
  *
@@ -360,24 +215,16 @@ var pagerRecipe = createRecipe({
360
215
  indicator: {
361
216
  alignItems: "center",
362
217
  justifyContent: "center"
363
- },
364
- /**
365
- * A neutral fill rather than a faint version of the current one: a pale tint of the
366
- * accent under the pages reads as a control that has half failed to load. A raw `color`
367
- * reaches the current dot, which is the one it should move.
368
- */
369
- dot: {
370
- backgroundColor: theme.colors.default
371
218
  }
372
219
  }),
373
220
  variantTokens: VARIANT_TOKENS,
374
221
  /**
375
- * The current dot, **read as a value and never applied as a style**: the colour is
376
- * interpolated on the UI thread, and `interpolateColor` needs a string rather than a
377
- * `StyleSheet` id. The root flattens this slot into `dotInk`, so the recipe still owns it.
222
+ * Every dot takes the same colour. What separates the current one from the rest is its
223
+ * opacity, animated on the UI thread — so this is a plain style rather than a value the
224
+ * root has to flatten and hand to a worklet.
378
225
  */
379
226
  paint: (_theme, colors) => ({
380
- dotActive: {
227
+ dot: {
381
228
  backgroundColor: colors.bgSelected
382
229
  }
383
230
  }),
@@ -407,7 +254,147 @@ var pagerRecipe = createRecipe({
407
254
  }
408
255
  });
409
256
 
257
+ // src/components/pager/pager-indicator.tsx
258
+ import { jsx as jsx2 } from "react/jsx-runtime";
259
+ var HIT_SLOP = 8;
260
+ var AnimatedPressable = Animated2.createAnimatedComponent(Pressable);
261
+ var PagerIndicator = forwardRef2(function PagerIndicator2({
262
+ children,
263
+ style,
264
+ ...props
265
+ }, ref) {
266
+ const {
267
+ indicatorStyle,
268
+ count
269
+ } = usePager();
270
+ const [styleProps, rest] = useStyleProps(props);
271
+ return /* @__PURE__ */jsx2(View, {
272
+ ref,
273
+ ...rest,
274
+ style: [indicatorStyle, styleProps, style],
275
+ children: children ?? Array.from({
276
+ length: count
277
+ }, (_, index) => /* @__PURE__ */jsx2(PagerDot, {
278
+ index
279
+ }, index))
280
+ });
281
+ });
282
+ PagerIndicator.displayName = "XAUI.Pager.Indicator";
283
+ const _worklet_5019807398933_init_data = {
284
+ code: "function chunkVQ4OTVETJs2(){const{progressFromOffset,offset,step,count,index,interpolate,DOT_REST_OPACITY}=this.__closure;const distance=Math.abs(progressFromOffset(offset.get(),step,count)-index);const nearness=Math.max(0,1-distance);return{opacity:interpolate(nearness,[0,1],[DOT_REST_OPACITY,1])};}",
285
+ location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-VQ4OTVET.js",
286
+ sourceMap: "{\"version\":3,\"names\":[\"chunkVQ4OTVETJs2\",\"progressFromOffset\",\"offset\",\"step\",\"count\",\"index\",\"interpolate\",\"DOT_REST_OPACITY\",\"__closure\",\"distance\",\"Math\",\"abs\",\"get\",\"nearness\",\"max\",\"opacity\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-VQ4OTVET.js\"],\"mappings\":\"AAgNkC,SAAAA,gBAAMA,CAAA,QAAAC,kBAAA,CAAAC,MAAA,CAAAC,IAAA,CAAAC,KAAA,CAAAC,KAAA,CAAAC,WAAA,CAAAC,gBAAA,OAAAC,SAAA,CAEpC,KAAM,CAAAC,QAAQ,CAAGC,IAAI,CAACC,GAAG,CAACV,kBAAkB,CAACC,MAAM,CAACU,GAAG,CAAC,CAAC,CAAET,IAAI,CAAEC,KAAK,CAAC,CAAGC,KAAK,CAAC,CAChF,KAAM,CAAAQ,QAAQ,CAAGH,IAAI,CAACI,GAAG,CAAC,CAAC,CAAE,CAAC,CAAGL,QAAQ,CAAC,CAC1C,MAAO,CAAEM,OAAO,CAAET,WAAW,CAACO,QAAQ,CAAE,CAAC,CAAC,CAAE,CAAC,CAAC,CAAE,CAACN,gBAAgB,CAAE,CAAC,CAAC,CAAE,CAAC,CAC1E\",\"ignoreList\":[]}"
287
+ };
288
+ var PagerDot = forwardRef2(function PagerDot2({
289
+ index,
290
+ children,
291
+ style,
292
+ ...props
293
+ }, ref) {
294
+ const {
295
+ dotStyle,
296
+ offset,
297
+ step,
298
+ count,
299
+ index: current,
300
+ isDisabled,
301
+ goTo
302
+ } = usePager();
303
+ const [styleProps, rest] = useStyleProps(props);
304
+ const travel = useAnimatedStyle(function chunkVQ4OTVETJs2Factory({
305
+ _worklet_5019807398933_init_data,
306
+ progressFromOffset,
307
+ offset,
308
+ step,
309
+ count,
310
+ index,
311
+ interpolate,
312
+ DOT_REST_OPACITY
313
+ }) {
314
+ const _e = [new global.Error(), -8, -27];
315
+ const chunkVQ4OTVETJs2 = function () {
316
+ const distance = Math.abs(progressFromOffset(offset.get(), step, count) - index);
317
+ const nearness = Math.max(0, 1 - distance);
318
+ return {
319
+ opacity: interpolate(nearness, [0, 1], [DOT_REST_OPACITY, 1])
320
+ };
321
+ };
322
+ chunkVQ4OTVETJs2.__closure = {
323
+ progressFromOffset,
324
+ offset,
325
+ step,
326
+ count,
327
+ index,
328
+ interpolate,
329
+ DOT_REST_OPACITY
330
+ };
331
+ chunkVQ4OTVETJs2.__workletHash = 5019807398933;
332
+ chunkVQ4OTVETJs2.__pluginVersion = "0.7.4";
333
+ chunkVQ4OTVETJs2.__initData = _worklet_5019807398933_init_data;
334
+ chunkVQ4OTVETJs2.__stackDetails = _e;
335
+ return chunkVQ4OTVETJs2;
336
+ }({
337
+ _worklet_5019807398933_init_data,
338
+ progressFromOffset,
339
+ offset,
340
+ step,
341
+ count,
342
+ index,
343
+ interpolate,
344
+ DOT_REST_OPACITY
345
+ }), [offset, step, count, index]);
346
+ return /* @__PURE__ */jsx2(AnimatedPressable, {
347
+ ref,
348
+ accessibilityRole: "button",
349
+ accessibilityState: {
350
+ selected: index === current,
351
+ disabled: isDisabled
352
+ },
353
+ accessibilityValue: {
354
+ now: index + 1,
355
+ min: 1,
356
+ max: count
357
+ },
358
+ disabled: isDisabled,
359
+ hitSlop: HIT_SLOP,
360
+ ...rest,
361
+ style: [dotStyle, travel, styleProps, style],
362
+ onPress: () => goTo(index),
363
+ children
364
+ });
365
+ });
366
+ PagerDot.displayName = "XAUI.Pager.Dot";
367
+
368
+ // src/components/pager/pager-page.tsx
369
+ import { forwardRef as forwardRef3 } from "react";
370
+ import { View as View2 } from "react-native";
371
+ import { jsx as jsx3 } from "react/jsx-runtime";
372
+ var PagerPage = forwardRef3(function PagerPage2({
373
+ children,
374
+ style,
375
+ ...props
376
+ }, ref) {
377
+ const {
378
+ pageStyle,
379
+ track
380
+ } = usePager();
381
+ const [styleProps, rest] = useStyleProps(props);
382
+ return /* @__PURE__ */jsx3(View2, {
383
+ ref,
384
+ ...rest,
385
+ style: [pageStyle, {
386
+ width: track.width,
387
+ height: track.height
388
+ }, styleProps, style],
389
+ children
390
+ });
391
+ });
392
+ PagerPage.displayName = "XAUI.Pager.Page";
393
+
410
394
  // src/components/pager/pager.tsx
395
+ import { forwardRef as forwardRef4, useCallback, useMemo, useState } from "react";
396
+ import { View as View3 } from "react-native";
397
+ import { useAnimatedRef, useSharedValue as useSharedValue2 } from "react-native-reanimated";
411
398
  import { jsx as jsx4 } from "react/jsx-runtime";
412
399
  var PagerRoot = forwardRef4(function Pager({
413
400
  children,
@@ -465,35 +452,26 @@ var PagerRoot = forwardRef4(function Pager({
465
452
  });
466
453
  setIndex(next);
467
454
  }, [orientation, setIndex, step, trackRef]);
468
- const context = useMemo(() => {
469
- const active = StyleSheet.flatten([styles.dotActive, tint?.dotActive]);
470
- const at = StyleSheet.flatten([styles.dot]);
471
- return {
472
- contentStyle: styles.content,
473
- pageStyle: styles.page,
474
- indicatorStyle: styles.indicator,
475
- dotStyle: styles.dot,
476
- // Values rather than styles: the colour is interpolated on the UI thread, and
477
- // `interpolateColor` needs strings. The fallbacks are the tokens the recipe named, for
478
- // the platform colours `ColorValue` also covers.
479
- dotInk: {
480
- rest: typeof at.backgroundColor === "string" ? at.backgroundColor : theme.colors.default,
481
- active: typeof active.backgroundColor === "string" ? active.backgroundColor : theme.colors.accent
482
- },
483
- orientation,
484
- index,
485
- count,
486
- setCount,
487
- track,
488
- setTrack,
489
- step,
490
- offset,
491
- goTo,
492
- onSettle: setIndex,
493
- trackRef,
494
- isDisabled
495
- };
496
- }, [styles, tint, theme, orientation, index, count, track, setTrack, step, offset, goTo, setIndex, trackRef, isDisabled]);
455
+ const context = useMemo(() => ({
456
+ contentStyle: styles.content,
457
+ pageStyle: styles.page,
458
+ indicatorStyle: styles.indicator,
459
+ // One colour for every dot; the current one is told apart by its opacity, which the dot
460
+ // animates itself. Nothing here has to be flattened into a value for a worklet.
461
+ dotStyle: tint ? [styles.dot, tint.dot] : styles.dot,
462
+ orientation,
463
+ index,
464
+ count,
465
+ setCount,
466
+ track,
467
+ setTrack,
468
+ step,
469
+ offset,
470
+ goTo,
471
+ onSettle: setIndex,
472
+ trackRef,
473
+ isDisabled
474
+ }), [styles, tint, orientation, index, count, track, setTrack, step, offset, goTo, setIndex, trackRef, isDisabled]);
497
475
  const rootStyle = [styles.root, tint?.root, styleProps, style];
498
476
  return /* @__PURE__ */jsx4(PagerProvider, {
499
477
  value: context,
@@ -514,4 +492,4 @@ var Pager2 = Object.assign(PagerRoot, {
514
492
  Indicator: PagerIndicator,
515
493
  Dot: PagerDot
516
494
  });
517
- export { usePager, PagerContent, PagerIndicator, PagerDot, PagerPage, pagerRecipe, PagerRoot, Pager2 as Pager };
495
+ export { usePager, PagerContent, DOT_REST_OPACITY, pagerRecipe, PagerIndicator, PagerDot, PagerPage, PagerRoot, Pager2 as Pager };
@@ -6,7 +6,7 @@ var _chunkWDDXU3OHcjs = require('./chunk-WDDXU3OH.cjs');
6
6
  var _chunk7EIHHOHPcjs = require('./chunk-7EIHHOHP.cjs');
7
7
 
8
8
 
9
- var _chunkOW4N2C3Mcjs = require('./chunk-OW4N2C3M.cjs');
9
+ var _chunkHBYT7B47cjs = require('./chunk-HBYT7B47.cjs');
10
10
 
11
11
 
12
12
  var _chunk7DPL3ZDScjs = require('./chunk-7DPL3ZDS.cjs');
@@ -75,7 +75,7 @@ var SnackbarAction = _react.forwardRef.call(void 0,
75
75
  );
76
76
  const text = _chunkFHNIGHN5cjs.childrenToString.call(void 0, children);
77
77
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
78
- _chunkOW4N2C3Mcjs.PressableFeedback,
78
+ _chunkHBYT7B47cjs.PressableFeedback,
79
79
  {
80
80
  ref,
81
81
  asChild,
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-F6W3JQ7K.js";
4
4
  import {
5
5
  PressableFeedback
6
- } from "./chunk-2AFA5HA2.js";
6
+ } from "./chunk-KQW25RCC.js";
7
7
  import {
8
8
  usePressState
9
9
  } from "./chunk-423RQBOX.js";
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
2
 
3
- var _chunkOW4N2C3Mcjs = require('./chunk-OW4N2C3M.cjs');
3
+ var _chunkHBYT7B47cjs = require('./chunk-HBYT7B47.cjs');
4
4
 
5
5
 
6
6
  var _chunk7DPL3ZDScjs = require('./chunk-7DPL3ZDS.cjs');
@@ -47,7 +47,7 @@ var CloseButtonBase = _react.forwardRef.call(void 0,
47
47
  );
48
48
  }
49
49
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
50
- _chunkOW4N2C3Mcjs.PressableFeedback,
50
+ _chunkHBYT7B47cjs.PressableFeedback,
51
51
  {
52
52
  ref,
53
53
  isPressed,
@@ -1,6 +1,6 @@
1
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
2
 
3
- var _chunkPROLOLZ5cjs = require('./chunk-PROLOLZ5.cjs');
3
+ var _chunkX22PLAP6cjs = require('./chunk-X22PLAP6.cjs');
4
4
 
5
5
 
6
6
  var _chunk7EIHHOHPcjs = require('./chunk-7EIHHOHP.cjs');
@@ -651,7 +651,7 @@ var TableSelectAllCell = _react.forwardRef.call(void 0,
651
651
  ...rest,
652
652
  style: [cellStyle, { width: selectionWidth }, styleProps, style],
653
653
  children: _nullishCoalesce(children, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
654
- _chunkPROLOLZ5cjs.Checkbox,
654
+ _chunkX22PLAP6cjs.Checkbox,
655
655
  {
656
656
  isSelected: isAll,
657
657
  isIndeterminate: isSome,
@@ -678,7 +678,7 @@ var TableSelectionCell = _react.forwardRef.call(void 0,
678
678
  ...rest,
679
679
  style: [cellStyle, { width: selectionWidth }, styleProps, style],
680
680
  children: _nullishCoalesce(children, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
681
- _chunkPROLOLZ5cjs.Checkbox,
681
+ _chunkX22PLAP6cjs.Checkbox,
682
682
  {
683
683
  isSelected,
684
684
  isDisabled,