@xaui/native 0.9.1-alpha.36 → 0.9.1-alpha.38

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 (153) hide show
  1. package/dist/{chunk-B6OKVLC7.js → chunk-26OGEFQI.js} +4 -4
  2. package/dist/{chunk-V5IVMZQJ.js → chunk-2PMXMKS5.js} +13 -8
  3. package/dist/{chunk-QZO57TPX.js → chunk-346QBNUD.js} +4 -4
  4. package/dist/{chunk-PPWXLZGL.js → chunk-3GFRSZYR.js} +15 -23
  5. package/dist/{chunk-GPZSTEEI.cjs → chunk-3JXI2IHV.cjs} +17 -17
  6. package/dist/{chunk-ISPOIMGX.cjs → chunk-4KFKWBN5.cjs} +26 -5
  7. package/dist/{chunk-N2U63JUX.cjs → chunk-4KSKQD37.cjs} +10 -10
  8. package/dist/{chunk-ZU3XQZ63.cjs → chunk-54CWXA34.cjs} +66 -66
  9. package/dist/{chunk-EFPWXJAJ.cjs → chunk-66FOASTP.cjs} +16 -16
  10. package/dist/{chunk-E5ZW7MBW.js → chunk-6CO6FM67.js} +17 -17
  11. package/dist/{chunk-54FJOKAN.cjs → chunk-7GHM4GKL.cjs} +25 -25
  12. package/dist/{chunk-2L7FOIWY.cjs → chunk-7TOG4TVU.cjs} +26 -26
  13. package/dist/{chunk-6N5ZCEAB.cjs → chunk-A7YB7YWX.cjs} +10 -10
  14. package/dist/{chunk-FVKIQBHS.cjs → chunk-AAVCMCJ3.cjs} +4 -4
  15. package/dist/{chunk-HQVVQGYV.cjs → chunk-ACAPTWE3.cjs} +16 -12
  16. package/dist/{chunk-LCDHTLSG.cjs → chunk-BNFIFRQA.cjs} +7 -7
  17. package/dist/{chunk-6U5IUUAR.js → chunk-DY3SUG5P.js} +5 -5
  18. package/dist/{chunk-RSGIJ6RI.js → chunk-EYD4H4X6.js} +2 -2
  19. package/dist/{chunk-DL2PGB5G.js → chunk-FBCWNXZC.js} +59 -59
  20. package/dist/{chunk-OWE5IID7.js → chunk-FHUYHV6J.js} +28 -7
  21. package/dist/{chunk-K7GAHNMJ.js → chunk-HA6BFY3A.js} +6 -6
  22. package/dist/{chunk-MFXZHLOU.cjs → chunk-HOI5425P.cjs} +16 -16
  23. package/dist/{chunk-VWATEE5O.js → chunk-IKJVLJKT.js} +15 -15
  24. package/dist/{chunk-YXPYOOHU.js → chunk-K72UDPVN.js} +27 -27
  25. package/dist/{chunk-2LNE4PWB.cjs → chunk-KSUV74BE.cjs} +5 -5
  26. package/dist/{chunk-UCW25LL6.js → chunk-LIUO6D3D.js} +76 -76
  27. package/dist/{chunk-U3HFQHGZ.js → chunk-LTX6TB5I.js} +4 -4
  28. package/dist/{chunk-OSCW7I4H.js → chunk-M63GFNKV.js} +19 -4
  29. package/dist/chunk-MESKS6AI.js +0 -0
  30. package/dist/{chunk-SAGMDVFU.js → chunk-MXGER5PI.js} +5 -5
  31. package/dist/{chunk-GHKJ6MUH.cjs → chunk-NCCRQK3P.cjs} +14 -14
  32. package/dist/chunk-NCTOTTVW.js +13 -0
  33. package/dist/chunk-OJCCV65P.cjs +1 -0
  34. package/dist/chunk-Q3MQ7S2D.cjs +476 -0
  35. package/dist/{chunk-CVCE7TW5.js → chunk-QZ24MZRX.js} +4 -4
  36. package/dist/{chunk-5GMU7ESV.js → chunk-R7BU4CPS.js} +3 -3
  37. package/dist/chunk-RAWGK2XK.cjs +971 -0
  38. package/dist/{chunk-PGQWUASE.cjs → chunk-RKCWYUGA.cjs} +6 -6
  39. package/dist/{chunk-3YZSUDZ2.js → chunk-S2WNWMNT.js} +4 -4
  40. package/dist/{chunk-XARBUUIE.cjs → chunk-S4QUM4EE.cjs} +12 -12
  41. package/dist/{chunk-OMV5MUTM.js → chunk-SACDOFGF.js} +16 -16
  42. package/dist/{chunk-FYCDRRJ2.cjs → chunk-SIP5J7HU.cjs} +25 -25
  43. package/dist/{chunk-AQXNEV6J.cjs → chunk-SNIHUKDA.cjs} +16 -16
  44. package/dist/{chunk-2OZPOWFB.js → chunk-SZLXPF3G.js} +4 -4
  45. package/dist/{chunk-RPOKLFRB.cjs → chunk-TDTUAIFF.cjs} +12 -12
  46. package/dist/{chunk-2SCE7TFZ.cjs → chunk-TGMVEHV7.cjs} +68 -68
  47. package/dist/{chunk-K3AVOT6L.cjs → chunk-TK44VBIE.cjs} +22 -7
  48. package/dist/{chunk-KZVHC4FL.js → chunk-TRETQZEW.js} +7 -7
  49. package/dist/{chunk-AZRMOWRG.cjs → chunk-URA25DU4.cjs} +10 -10
  50. package/dist/{chunk-BAPXLO5N.js → chunk-USF6EWYR.js} +7 -7
  51. package/dist/{chunk-TE7KVFE4.cjs → chunk-VZK3NLBH.cjs} +11 -11
  52. package/dist/{chunk-5BNIIDQD.cjs → chunk-WDDXU3OH.cjs} +14 -9
  53. package/dist/chunk-WFEMJCXO.cjs +13 -0
  54. package/dist/{chunk-JB5XANQY.js → chunk-WKCQ6VGW.js} +15 -11
  55. package/dist/{chunk-DOLWSO7A.js → chunk-XNMZQSY5.js} +5 -5
  56. package/dist/{chunk-K4TWKF5U.cjs → chunk-XSQPVDFH.cjs} +15 -25
  57. package/dist/{chunk-4XFEEBPU.js → chunk-XTC2SLFT.js} +2 -2
  58. package/dist/{chunk-ADQVA2FQ.cjs → chunk-XWNG2U4K.cjs} +5 -5
  59. package/dist/chunk-ZF6KIHXH.js +591 -0
  60. package/dist/chunk-ZNZ7HVRW.js +1106 -0
  61. package/dist/components/accordion/index.cjs +34 -0
  62. package/dist/components/accordion/index.d.cts +299 -0
  63. package/dist/components/accordion/index.d.ts +299 -0
  64. package/dist/components/accordion/index.js +34 -0
  65. package/dist/components/alert/index.cjs +7 -8
  66. package/dist/components/alert/index.d.cts +2 -2
  67. package/dist/components/alert/index.d.ts +2 -2
  68. package/dist/components/alert/index.js +6 -7
  69. package/dist/components/avatar/index.cjs +5 -6
  70. package/dist/components/avatar/index.d.cts +2 -2
  71. package/dist/components/avatar/index.d.ts +2 -2
  72. package/dist/components/avatar/index.js +4 -5
  73. package/dist/components/badge/index.cjs +4 -5
  74. package/dist/components/badge/index.d.cts +1 -1
  75. package/dist/components/badge/index.d.ts +1 -1
  76. package/dist/components/badge/index.js +3 -4
  77. package/dist/components/button/index.cjs +8 -8
  78. package/dist/components/button/index.d.cts +41 -41
  79. package/dist/components/button/index.d.ts +41 -41
  80. package/dist/components/button/index.js +7 -7
  81. package/dist/components/card/index.cjs +5 -6
  82. package/dist/components/card/index.d.cts +43 -43
  83. package/dist/components/card/index.d.ts +43 -43
  84. package/dist/components/card/index.js +4 -5
  85. package/dist/components/checkbox/index.cjs +5 -6
  86. package/dist/components/checkbox/index.d.cts +82 -82
  87. package/dist/components/checkbox/index.d.ts +82 -82
  88. package/dist/components/checkbox/index.js +4 -5
  89. package/dist/components/chip/index.cjs +7 -8
  90. package/dist/components/chip/index.d.cts +42 -42
  91. package/dist/components/chip/index.d.ts +42 -42
  92. package/dist/components/chip/index.js +6 -7
  93. package/dist/components/divider/index.cjs +4 -5
  94. package/dist/components/divider/index.d.cts +3 -3
  95. package/dist/components/divider/index.d.ts +3 -3
  96. package/dist/components/divider/index.js +3 -4
  97. package/dist/components/field-group/index.cjs +6 -7
  98. package/dist/components/field-group/index.d.cts +2 -2
  99. package/dist/components/field-group/index.d.ts +2 -2
  100. package/dist/components/field-group/index.js +5 -6
  101. package/dist/components/input-otp/index.cjs +4 -5
  102. package/dist/components/input-otp/index.d.cts +2 -2
  103. package/dist/components/input-otp/index.d.ts +2 -2
  104. package/dist/components/input-otp/index.js +3 -4
  105. package/dist/components/radio/index.cjs +5 -6
  106. package/dist/components/radio/index.d.cts +82 -82
  107. package/dist/components/radio/index.d.ts +82 -82
  108. package/dist/components/radio/index.js +4 -5
  109. package/dist/components/select/index.cjs +48 -0
  110. package/dist/components/select/index.d.cts +509 -0
  111. package/dist/components/select/index.d.ts +509 -0
  112. package/dist/components/select/index.js +48 -0
  113. package/dist/components/skeleton/index.cjs +3 -4
  114. package/dist/components/skeleton/index.d.cts +1 -1
  115. package/dist/components/skeleton/index.d.ts +1 -1
  116. package/dist/components/skeleton/index.js +2 -3
  117. package/dist/components/spinner/index.cjs +5 -5
  118. package/dist/components/spinner/index.d.cts +1 -1
  119. package/dist/components/spinner/index.d.ts +1 -1
  120. package/dist/components/spinner/index.js +4 -4
  121. package/dist/components/switch/index.cjs +5 -6
  122. package/dist/components/switch/index.d.cts +81 -81
  123. package/dist/components/switch/index.d.ts +81 -81
  124. package/dist/components/switch/index.js +4 -5
  125. package/dist/components/text-area/index.cjs +5 -6
  126. package/dist/components/text-area/index.js +4 -5
  127. package/dist/components/text-field/index.cjs +4 -5
  128. package/dist/components/text-field/index.d.cts +3 -3
  129. package/dist/components/text-field/index.d.ts +3 -3
  130. package/dist/components/text-field/index.js +3 -4
  131. package/dist/components/typography/index.cjs +4 -5
  132. package/dist/components/typography/index.d.cts +5 -5
  133. package/dist/components/typography/index.d.ts +5 -5
  134. package/dist/components/typography/index.js +3 -4
  135. package/dist/components/view/index.cjs +4 -5
  136. package/dist/components/view/index.d.cts +3 -3
  137. package/dist/components/view/index.d.ts +3 -3
  138. package/dist/components/view/index.js +3 -4
  139. package/dist/index.cjs +91 -31
  140. package/dist/index.d.cts +3 -1
  141. package/dist/index.d.ts +3 -1
  142. package/dist/index.js +125 -65
  143. package/dist/system/index.cjs +13 -11
  144. package/dist/system/index.d.cts +61 -35
  145. package/dist/system/index.d.ts +61 -35
  146. package/dist/system/index.js +13 -11
  147. package/dist/theme/index.cjs +4 -3
  148. package/dist/theme/index.d.cts +21 -1
  149. package/dist/theme/index.d.ts +21 -1
  150. package/dist/theme/index.js +3 -2
  151. package/package.json +21 -1
  152. package/dist/chunk-FJ5TLRT3.js +0 -21
  153. package/dist/chunk-HT7H35GU.cjs +0 -21
@@ -36,26 +36,26 @@ function _optionalChain(ops) {
36
36
  }
37
37
  return value;
38
38
  }
39
- var _chunk54FJOKANcjs = require('./chunk-54FJOKAN.cjs');
40
- var _chunkK3AVOT6Lcjs = require('./chunk-K3AVOT6L.cjs');
39
+ var _chunk7GHM4GKLcjs = require('./chunk-7GHM4GKL.cjs');
41
40
  var _chunk57SJ4LJFcjs = require('./chunk-57SJ4LJF.cjs');
41
+ var _chunkTK44VBIEcjs = require('./chunk-TK44VBIE.cjs');
42
42
 
43
43
  // src/system/pressable-feedback/pressable-feedback-context.ts
44
44
  var _react = require('react');
45
- var [FeedbackProvider, useFeedback] = _chunk54FJOKANcjs.createSlotContext.call(void 0, "PressableFeedback");
45
+ var [FeedbackProvider, useFeedback] = _chunk7GHM4GKLcjs.createSlotContext.call(void 0, "PressableFeedback");
46
46
  var DisableAllContext = _react.createContext.call(void 0, false);
47
47
 
48
48
  // src/system/pressable-feedback/pressable-feedback.animation.ts
49
49
  var PRESS_SCALE = 0.985;
50
50
  var PRESS_DURATION = 300;
51
51
  var SCALE_REFERENCE_WIDTH = 300;
52
- const _worklet_15114992479627_init_data = {
53
- code: "function pressScaleFor_chunk2SCE7TFZCjs1(width){const{SCALE_REFERENCE_WIDTH,PRESS_SCALE}=this.__closure;const coefficient=width>0?SCALE_REFERENCE_WIDTH/width:1;return 1-(1-PRESS_SCALE)*coefficient;}",
54
- location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-2SCE7TFZ.cjs",
55
- sourceMap: "{\"version\":3,\"names\":[\"pressScaleFor_chunk2SCE7TFZCjs1\",\"width\",\"SCALE_REFERENCE_WIDTH\",\"PRESS_SCALE\",\"__closure\",\"coefficient\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-2SCE7TFZ.cjs\"],\"mappings\":\"AAsBA,SAAAA,+BAA8BA,CAAAC,KAAA,QAAAC,qBAAA,CAAAC,WAAA,OAAAC,SAAA,CAE5B,KAAM,CAAAC,WAAW,CAAGJ,KAAK,CAAG,CAAC,CAAGC,qBAAqB,CAAGD,KAAK,CAAG,CAAC,CACjE,MAAO,EAAC,CAAG,CAAC,CAAC,CAAGE,WAAW,EAAIE,WAAW,CAC5C\",\"ignoreList\":[]}"
52
+ const _worklet_4204522801015_init_data = {
53
+ code: "function pressScaleFor_chunkTGMVEHV7Cjs1(width){const{SCALE_REFERENCE_WIDTH,PRESS_SCALE}=this.__closure;const coefficient=width>0?SCALE_REFERENCE_WIDTH/width:1;return 1-(1-PRESS_SCALE)*coefficient;}",
54
+ location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-TGMVEHV7.cjs",
55
+ sourceMap: "{\"version\":3,\"names\":[\"pressScaleFor_chunkTGMVEHV7Cjs1\",\"width\",\"SCALE_REFERENCE_WIDTH\",\"PRESS_SCALE\",\"__closure\",\"coefficient\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-TGMVEHV7.cjs\"],\"mappings\":\"AAsBA,SAAAA,+BAA8BA,CAAAC,KAAA,QAAAC,qBAAA,CAAAC,WAAA,OAAAC,SAAA,CAE5B,KAAM,CAAAC,WAAW,CAAGJ,KAAK,CAAG,CAAC,CAAGC,qBAAqB,CAAGD,KAAK,CAAG,CAAC,CACjE,MAAO,EAAC,CAAG,CAAC,CAAC,CAAGE,WAAW,EAAIE,WAAW,CAC5C\",\"ignoreList\":[]}"
56
56
  };
57
- const pressScaleFor = function pressScaleFor_chunk2SCE7TFZCjs1Factory({
58
- _worklet_15114992479627_init_data,
57
+ const pressScaleFor = function pressScaleFor_chunkTGMVEHV7Cjs1Factory({
58
+ _worklet_4204522801015_init_data,
59
59
  SCALE_REFERENCE_WIDTH,
60
60
  PRESS_SCALE
61
61
  }) {
@@ -68,13 +68,13 @@ const pressScaleFor = function pressScaleFor_chunk2SCE7TFZCjs1Factory({
68
68
  SCALE_REFERENCE_WIDTH,
69
69
  PRESS_SCALE
70
70
  };
71
- pressScaleFor.__workletHash = 15114992479627;
71
+ pressScaleFor.__workletHash = 4204522801015;
72
72
  pressScaleFor.__pluginVersion = "0.7.4";
73
- pressScaleFor.__initData = _worklet_15114992479627_init_data;
73
+ pressScaleFor.__initData = _worklet_4204522801015_init_data;
74
74
  pressScaleFor.__stackDetails = _e;
75
75
  return pressScaleFor;
76
76
  }({
77
- _worklet_15114992479627_init_data,
77
+ _worklet_4204522801015_init_data,
78
78
  SCALE_REFERENCE_WIDTH,
79
79
  PRESS_SCALE
80
80
  });
@@ -87,26 +87,26 @@ var RIPPLE_CONFIRM_DURATION = 225;
87
87
  var RIPPLE_FADE_IN = 75;
88
88
  var RIPPLE_FADE_OUT_DELAY = 225;
89
89
  var RIPPLE_FADE_OUT = 150;
90
- const _worklet_490281727600_init_data = {
91
- code: "function rippleRadiusFor_chunk2SCE7TFZCjs2(width,height){return Math.sqrt(width*width+height*height)/2+5;}",
92
- location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-2SCE7TFZ.cjs",
93
- sourceMap: "{\"version\":3,\"names\":[\"rippleRadiusFor_chunk2SCE7TFZCjs2\",\"width\",\"height\",\"Math\",\"sqrt\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-2SCE7TFZ.cjs\"],\"mappings\":\"AAoCA,SAAAA,iCAAwCA,CAAAC,KAAA,CAAAC,MAAA,EAEtC,MAAO,CAAAC,IAAI,CAACC,IAAI,CAACH,KAAK,CAAGA,KAAK,CAAGC,MAAM,CAAGA,MAAM,CAAC,CAAG,CAAC,CAAG,CAAC,CAC3D\",\"ignoreList\":[]}"
90
+ const _worklet_14079067495692_init_data = {
91
+ code: "function rippleRadiusFor_chunkTGMVEHV7Cjs2(width,height){return Math.sqrt(width*width+height*height)/2+5;}",
92
+ location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-TGMVEHV7.cjs",
93
+ sourceMap: "{\"version\":3,\"names\":[\"rippleRadiusFor_chunkTGMVEHV7Cjs2\",\"width\",\"height\",\"Math\",\"sqrt\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-TGMVEHV7.cjs\"],\"mappings\":\"AAoCA,SAAAA,iCAAwCA,CAAAC,KAAA,CAAAC,MAAA,EAEtC,MAAO,CAAAC,IAAI,CAACC,IAAI,CAACH,KAAK,CAAGA,KAAK,CAAGC,MAAM,CAAGA,MAAM,CAAC,CAAG,CAAC,CAAG,CAAC,CAC3D\",\"ignoreList\":[]}"
94
94
  };
95
- const rippleRadiusFor = function rippleRadiusFor_chunk2SCE7TFZCjs2Factory({
96
- _worklet_490281727600_init_data
95
+ const rippleRadiusFor = function rippleRadiusFor_chunkTGMVEHV7Cjs2Factory({
96
+ _worklet_14079067495692_init_data
97
97
  }) {
98
98
  const _e = [new global.Error(), 1, -27];
99
99
  const rippleRadiusFor = function (width, height) {
100
100
  return Math.sqrt(width * width + height * height) / 2 + 5;
101
101
  };
102
102
  rippleRadiusFor.__closure = {};
103
- rippleRadiusFor.__workletHash = 490281727600;
103
+ rippleRadiusFor.__workletHash = 14079067495692;
104
104
  rippleRadiusFor.__pluginVersion = "0.7.4";
105
- rippleRadiusFor.__initData = _worklet_490281727600_init_data;
105
+ rippleRadiusFor.__initData = _worklet_14079067495692_init_data;
106
106
  rippleRadiusFor.__stackDetails = _e;
107
107
  return rippleRadiusFor;
108
108
  }({
109
- _worklet_490281727600_init_data
109
+ _worklet_14079067495692_init_data
110
110
  });
111
111
  var ALL_OFF = {
112
112
  scale: false,
@@ -233,7 +233,7 @@ function radiusFrom(style) {
233
233
  // src/system/pressable-feedback/pressable-feedback.tsx
234
234
  var _jsxruntime = require('react/jsx-runtime');
235
235
  var AnimatedPressable = _reactnativereanimated2.default.createAnimatedComponent(_reactnative.Pressable);
236
- var AnimatedSlot = _reactnativereanimated2.default.createAnimatedComponent(_chunk54FJOKANcjs.Slot);
236
+ var AnimatedSlot = _reactnativereanimated2.default.createAnimatedComponent(_chunk7GHM4GKLcjs.Slot);
237
237
  var PressableFeedback = _react.forwardRef.call(void 0, function PressableFeedback2({
238
238
  animation,
239
239
  style,
@@ -241,7 +241,7 @@ var PressableFeedback = _react.forwardRef.call(void 0, function PressableFeedbac
241
241
  }, ref) {
242
242
  const inheritedDisableAll = _react.useContext.call(void 0, DisableAllContext);
243
243
  const resolved = resolveAnimation(animation, inheritedDisableAll);
244
- const [styleProps, rest] = _chunkK3AVOT6Lcjs.useStyleProps.call(void 0, props);
244
+ const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
245
245
  const Feedback = resolved.none ? StaticFeedback : AnimatedFeedback;
246
246
  const body = /* @__PURE__ */_jsxruntime.jsx.call(void 0, Feedback, {
247
247
  ref,
@@ -269,7 +269,7 @@ var StaticFeedback = _react.forwardRef.call(void 0, function StaticFeedback2({
269
269
  animation,
270
270
  ...surface
271
271
  }), [isPressed, animation, surface]);
272
- const Root = asChild ? _chunk54FJOKANcjs.Slot : _reactnative.Pressable;
272
+ const Root = asChild ? _chunk7GHM4GKLcjs.Slot : _reactnative.Pressable;
273
273
  return /* @__PURE__ */_jsxruntime.jsx.call(void 0, FeedbackProvider, {
274
274
  value: context,
275
275
  children: /* @__PURE__ */_jsxruntime.jsx.call(void 0, Root, {
@@ -281,10 +281,10 @@ var StaticFeedback = _react.forwardRef.call(void 0, function StaticFeedback2({
281
281
  })
282
282
  });
283
283
  });
284
- const _worklet_9115258468818_init_data = {
285
- code: "function chunk2SCE7TFZCjs3(){const{animation,pressedScale,progress}=this.__closure;if(!animation.scale)return{};return{transform:[{scale:1-(1-pressedScale.value)*progress.value}]};}",
286
- location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-2SCE7TFZ.cjs",
287
- sourceMap: "{\"version\":3,\"names\":[\"chunk2SCE7TFZCjs3\",\"animation\",\"pressedScale\",\"progress\",\"__closure\",\"scale\",\"transform\",\"value\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-2SCE7TFZ.cjs\"],\"mappings\":\"AAmN6E,SAAAA,iBAAMA,CAAA,QAAAC,SAAA,CAAAC,YAAA,CAAAC,QAAA,OAAAC,SAAA,CAE/E,GAAI,CAACH,SAAS,CAACI,KAAK,CAAE,MAAO,CAAC,CAAC,CAC/B,MAAO,CAAEC,SAAS,CAAE,CAAC,CAAED,KAAK,CAAE,CAAC,CAAG,CAAC,CAAC,CAAGH,YAAY,CAACK,KAAK,EAAIJ,QAAQ,CAACI,KAAM,CAAC,CAAE,CAAC,CAClF\",\"ignoreList\":[]}"
284
+ const _worklet_12411296039406_init_data = {
285
+ code: "function chunkTGMVEHV7Cjs3(){const{animation,pressedScale,progress}=this.__closure;if(!animation.scale)return{};return{transform:[{scale:1-(1-pressedScale.value)*progress.value}]};}",
286
+ location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-TGMVEHV7.cjs",
287
+ sourceMap: "{\"version\":3,\"names\":[\"chunkTGMVEHV7Cjs3\",\"animation\",\"pressedScale\",\"progress\",\"__closure\",\"scale\",\"transform\",\"value\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-TGMVEHV7.cjs\"],\"mappings\":\"AAmN6E,SAAAA,iBAAMA,CAAA,QAAAC,SAAA,CAAAC,YAAA,CAAAC,QAAA,OAAAC,SAAA,CAE/E,GAAI,CAACH,SAAS,CAACI,KAAK,CAAE,MAAO,CAAC,CAAC,CAC/B,MAAO,CAAEC,SAAS,CAAE,CAAC,CAAED,KAAK,CAAE,CAAC,CAAG,CAAC,CAAC,CAAGH,YAAY,CAACK,KAAK,EAAIJ,QAAQ,CAACI,KAAM,CAAC,CAAE,CAAC,CAClF\",\"ignoreList\":[]}"
288
288
  };
289
289
  var AnimatedFeedback = _react.forwardRef.call(void 0, function AnimatedFeedback2({
290
290
  isPressed = false,
@@ -313,14 +313,14 @@ var AnimatedFeedback = _react.forwardRef.call(void 0, function AnimatedFeedback2
313
313
  });
314
314
  }, [isPressed, progress]);
315
315
  const pressedScale = _reactnativereanimated.useDerivedValue.call(void 0, () => pressScaleFor(size.value.width));
316
- const animatedStyle = _reactnativereanimated.useAnimatedStyle.call(void 0, function chunk2SCE7TFZCjs3Factory({
317
- _worklet_9115258468818_init_data,
316
+ const animatedStyle = _reactnativereanimated.useAnimatedStyle.call(void 0, function chunkTGMVEHV7Cjs3Factory({
317
+ _worklet_12411296039406_init_data,
318
318
  animation,
319
319
  pressedScale,
320
320
  progress
321
321
  }) {
322
322
  const _e = [new global.Error(), -4, -27];
323
- const chunk2SCE7TFZCjs3 = function () {
323
+ const chunkTGMVEHV7Cjs3 = function () {
324
324
  if (!animation.scale) return {};
325
325
  return {
326
326
  transform: [{
@@ -328,18 +328,18 @@ var AnimatedFeedback = _react.forwardRef.call(void 0, function AnimatedFeedback2
328
328
  }]
329
329
  };
330
330
  };
331
- chunk2SCE7TFZCjs3.__closure = {
331
+ chunkTGMVEHV7Cjs3.__closure = {
332
332
  animation,
333
333
  pressedScale,
334
334
  progress
335
335
  };
336
- chunk2SCE7TFZCjs3.__workletHash = 9115258468818;
337
- chunk2SCE7TFZCjs3.__pluginVersion = "0.7.4";
338
- chunk2SCE7TFZCjs3.__initData = _worklet_9115258468818_init_data;
339
- chunk2SCE7TFZCjs3.__stackDetails = _e;
340
- return chunk2SCE7TFZCjs3;
336
+ chunkTGMVEHV7Cjs3.__workletHash = 12411296039406;
337
+ chunkTGMVEHV7Cjs3.__pluginVersion = "0.7.4";
338
+ chunkTGMVEHV7Cjs3.__initData = _worklet_12411296039406_init_data;
339
+ chunkTGMVEHV7Cjs3.__stackDetails = _e;
340
+ return chunkTGMVEHV7Cjs3;
341
341
  }({
342
- _worklet_9115258468818_init_data,
342
+ _worklet_12411296039406_init_data,
343
343
  animation,
344
344
  pressedScale,
345
345
  progress
@@ -456,7 +456,7 @@ function PressableFeedbackHighlight({
456
456
  ink,
457
457
  corners
458
458
  } = useFeedback();
459
- const [styleProps] = _chunkK3AVOT6Lcjs.useStyleProps.call(void 0, props);
459
+ const [styleProps] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
460
460
  const settings = resolveSlotAnimation(override, animation.highlight, HIGHLIGHT_OPACITY, HIGHLIGHT_DURATION);
461
461
  const base = [_reactnative.StyleSheet.absoluteFillObject, {
462
462
  backgroundColor: ink,
@@ -481,10 +481,10 @@ function PressableFeedbackHighlight({
481
481
  }
482
482
  PressableFeedbackHighlight.displayName = "XAUI.PressableFeedback.Highlight";
483
483
  markOverlay(PressableFeedbackHighlight);
484
- const _worklet_11165654675812_init_data = {
485
- code: "function chunk2SCE7TFZCjs4(){const{shown,opacity}=this.__closure;return{opacity:shown.value*opacity};}",
486
- location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-2SCE7TFZ.cjs",
487
- sourceMap: "{\"version\":3,\"names\":[\"chunk2SCE7TFZCjs4\",\"shown\",\"opacity\",\"__closure\",\"value\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-2SCE7TFZ.cjs\"],\"mappings\":\"AAiW6E,SAAAA,iBAAMA,CAAA,QAAAC,KAAA,CAAAC,OAAA,OAAAC,SAAA,CAE/E,MAAO,CAAED,OAAO,CAAED,KAAK,CAACG,KAAK,CAAGF,OAAQ,CAAC,CAC3C\",\"ignoreList\":[]}"
484
+ const _worklet_5751186117208_init_data = {
485
+ code: "function chunkTGMVEHV7Cjs4(){const{shown,opacity}=this.__closure;return{opacity:shown.value*opacity};}",
486
+ location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-TGMVEHV7.cjs",
487
+ sourceMap: "{\"version\":3,\"names\":[\"chunkTGMVEHV7Cjs4\",\"shown\",\"opacity\",\"__closure\",\"value\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-TGMVEHV7.cjs\"],\"mappings\":\"AAiW6E,SAAAA,iBAAMA,CAAA,QAAAC,KAAA,CAAAC,OAAA,OAAAC,SAAA,CAE/E,MAAO,CAAED,OAAO,CAAED,KAAK,CAACG,KAAK,CAAGF,OAAQ,CAAC,CAC3C\",\"ignoreList\":[]}"
488
488
  };
489
489
  function AnimatedHighlight({
490
490
  base,
@@ -500,28 +500,28 @@ function AnimatedHighlight({
500
500
  duration
501
501
  });
502
502
  }, [isPressed, shown, duration]);
503
- const animatedStyle = _reactnativereanimated.useAnimatedStyle.call(void 0, function chunk2SCE7TFZCjs4Factory({
504
- _worklet_11165654675812_init_data,
503
+ const animatedStyle = _reactnativereanimated.useAnimatedStyle.call(void 0, function chunkTGMVEHV7Cjs4Factory({
504
+ _worklet_5751186117208_init_data,
505
505
  shown,
506
506
  opacity
507
507
  }) {
508
508
  const _e = [new global.Error(), -3, -27];
509
- const chunk2SCE7TFZCjs4 = function () {
509
+ const chunkTGMVEHV7Cjs4 = function () {
510
510
  return {
511
511
  opacity: shown.value * opacity
512
512
  };
513
513
  };
514
- chunk2SCE7TFZCjs4.__closure = {
514
+ chunkTGMVEHV7Cjs4.__closure = {
515
515
  shown,
516
516
  opacity
517
517
  };
518
- chunk2SCE7TFZCjs4.__workletHash = 11165654675812;
519
- chunk2SCE7TFZCjs4.__pluginVersion = "0.7.4";
520
- chunk2SCE7TFZCjs4.__initData = _worklet_11165654675812_init_data;
521
- chunk2SCE7TFZCjs4.__stackDetails = _e;
522
- return chunk2SCE7TFZCjs4;
518
+ chunkTGMVEHV7Cjs4.__workletHash = 5751186117208;
519
+ chunkTGMVEHV7Cjs4.__pluginVersion = "0.7.4";
520
+ chunkTGMVEHV7Cjs4.__initData = _worklet_5751186117208_init_data;
521
+ chunkTGMVEHV7Cjs4.__stackDetails = _e;
522
+ return chunkTGMVEHV7Cjs4;
523
523
  }({
524
- _worklet_11165654675812_init_data,
524
+ _worklet_5751186117208_init_data,
525
525
  shown,
526
526
  opacity
527
527
  }), [shown, opacity]);
@@ -544,7 +544,7 @@ function PressableFeedbackRipple({
544
544
  ink,
545
545
  corners
546
546
  } = useFeedback();
547
- const [styleProps] = _chunkK3AVOT6Lcjs.useStyleProps.call(void 0, props);
547
+ const [styleProps] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
548
548
  const waveStyle = [styleProps, style];
549
549
  const settings = resolveSlotAnimation(override, animation.ripple, RIPPLE_OPACITY);
550
550
  const [size, setSize] = _react.useState.call(void 0, {
@@ -585,10 +585,10 @@ function PressableFeedbackRipple({
585
585
  }
586
586
  PressableFeedbackRipple.displayName = "XAUI.PressableFeedback.Ripple";
587
587
  markOverlay(PressableFeedbackRipple);
588
- const _worklet_1103682389833_init_data = {
589
- code: "function chunk2SCE7TFZCjs5(){const{wave,RIPPLE_START_SCALE,center,opacity,radius}=this.__closure;const t=wave.expand.value;const from=wave.origin.value;const scale=RIPPLE_START_SCALE+(1-RIPPLE_START_SCALE)*t;const x=from.x+(center.x-from.x)*t;const y=from.y+(center.y-from.y)*t;return{opacity:wave.alpha.value*opacity,transform:[{translateX:x-radius},{translateY:y-radius},{scale:scale}]};}",
590
- location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-2SCE7TFZ.cjs",
591
- sourceMap: "{\"version\":3,\"names\":[\"chunk2SCE7TFZCjs5\",\"wave\",\"RIPPLE_START_SCALE\",\"center\",\"opacity\",\"radius\",\"__closure\",\"t\",\"expand\",\"value\",\"from\",\"origin\",\"scale\",\"x\",\"y\",\"alpha\",\"transform\",\"translateX\",\"translateY\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-2SCE7TFZ.cjs\"],\"mappings\":\"AAia6E,SAAAA,iBAAMA,CAAA,QAAAC,IAAA,CAAAC,kBAAA,CAAAC,MAAA,CAAAC,OAAA,CAAAC,MAAA,OAAAC,SAAA,CAE/E,KAAM,CAAAC,CAAC,CAAGN,IAAI,CAACO,MAAM,CAACC,KAAK,CAC3B,KAAM,CAAAC,IAAI,CAAGT,IAAI,CAACU,MAAM,CAACF,KAAK,CAC9B,KAAM,CAAAG,KAAK,CAAGV,kBAAkB,CAAG,CAAC,CAAC,CAAGA,kBAAkB,EAAIK,CAAC,CAC/D,KAAM,CAAAM,CAAC,CAAGH,IAAI,CAACG,CAAC,CAAG,CAACV,MAAM,CAACU,CAAC,CAAGH,IAAI,CAACG,CAAC,EAAIN,CAAC,CAC1C,KAAM,CAAAO,CAAC,CAAGJ,IAAI,CAACI,CAAC,CAAG,CAACX,MAAM,CAACW,CAAC,CAAGJ,IAAI,CAACI,CAAC,EAAIP,CAAC,CAC1C,MAAO,CAELH,OAAO,CAAEH,IAAI,CAACc,KAAK,CAACN,KAAK,CAAGL,OAAO,CACnCY,SAAS,CAAE,CAAC,CAAEC,UAAU,CAAEJ,CAAC,CAAGR,MAAO,CAAC,CAAE,CAAEa,UAAU,CAAEJ,CAAC,CAAGT,MAAO,CAAC,CAAE,CAAEO,KAAA,CAAAA,KAAM,CAAC,CAC/E,CAAC,CACH\",\"ignoreList\":[]}"
588
+ const _worklet_3265727251381_init_data = {
589
+ code: "function chunkTGMVEHV7Cjs5(){const{wave,RIPPLE_START_SCALE,center,opacity,radius}=this.__closure;const t=wave.expand.value;const from=wave.origin.value;const scale=RIPPLE_START_SCALE+(1-RIPPLE_START_SCALE)*t;const x=from.x+(center.x-from.x)*t;const y=from.y+(center.y-from.y)*t;return{opacity:wave.alpha.value*opacity,transform:[{translateX:x-radius},{translateY:y-radius},{scale:scale}]};}",
590
+ location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-TGMVEHV7.cjs",
591
+ sourceMap: "{\"version\":3,\"names\":[\"chunkTGMVEHV7Cjs5\",\"wave\",\"RIPPLE_START_SCALE\",\"center\",\"opacity\",\"radius\",\"__closure\",\"t\",\"expand\",\"value\",\"from\",\"origin\",\"scale\",\"x\",\"y\",\"alpha\",\"transform\",\"translateX\",\"translateY\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-TGMVEHV7.cjs\"],\"mappings\":\"AAia6E,SAAAA,iBAAMA,CAAA,QAAAC,IAAA,CAAAC,kBAAA,CAAAC,MAAA,CAAAC,OAAA,CAAAC,MAAA,OAAAC,SAAA,CAE/E,KAAM,CAAAC,CAAC,CAAGN,IAAI,CAACO,MAAM,CAACC,KAAK,CAC3B,KAAM,CAAAC,IAAI,CAAGT,IAAI,CAACU,MAAM,CAACF,KAAK,CAC9B,KAAM,CAAAG,KAAK,CAAGV,kBAAkB,CAAG,CAAC,CAAC,CAAGA,kBAAkB,EAAIK,CAAC,CAC/D,KAAM,CAAAM,CAAC,CAAGH,IAAI,CAACG,CAAC,CAAG,CAACV,MAAM,CAACU,CAAC,CAAGH,IAAI,CAACG,CAAC,EAAIN,CAAC,CAC1C,KAAM,CAAAO,CAAC,CAAGJ,IAAI,CAACI,CAAC,CAAG,CAACX,MAAM,CAACW,CAAC,CAAGJ,IAAI,CAACI,CAAC,EAAIP,CAAC,CAC1C,MAAO,CAELH,OAAO,CAAEH,IAAI,CAACc,KAAK,CAACN,KAAK,CAAGL,OAAO,CACnCY,SAAS,CAAE,CAAC,CAAEC,UAAU,CAAEJ,CAAC,CAAGR,MAAO,CAAC,CAAE,CAAEa,UAAU,CAAEJ,CAAC,CAAGT,MAAO,CAAC,CAAE,CAAEO,KAAA,CAAAA,KAAM,CAAC,CAC/E,CAAC,CACH\",\"ignoreList\":[]}"
592
592
  };
593
593
  function RippleWave({
594
594
  wave,
@@ -598,8 +598,8 @@ function RippleWave({
598
598
  opacity,
599
599
  style
600
600
  }) {
601
- const animatedStyle = _reactnativereanimated.useAnimatedStyle.call(void 0, function chunk2SCE7TFZCjs5Factory({
602
- _worklet_1103682389833_init_data,
601
+ const animatedStyle = _reactnativereanimated.useAnimatedStyle.call(void 0, function chunkTGMVEHV7Cjs5Factory({
602
+ _worklet_3265727251381_init_data,
603
603
  wave,
604
604
  RIPPLE_START_SCALE,
605
605
  center,
@@ -607,7 +607,7 @@ function RippleWave({
607
607
  radius
608
608
  }) {
609
609
  const _e = [new global.Error(), -6, -27];
610
- const chunk2SCE7TFZCjs5 = function () {
610
+ const chunkTGMVEHV7Cjs5 = function () {
611
611
  const t = wave.expand.value;
612
612
  const from = wave.origin.value;
613
613
  const scale = RIPPLE_START_SCALE + (1 - RIPPLE_START_SCALE) * t;
@@ -625,20 +625,20 @@ function RippleWave({
625
625
  }]
626
626
  };
627
627
  };
628
- chunk2SCE7TFZCjs5.__closure = {
628
+ chunkTGMVEHV7Cjs5.__closure = {
629
629
  wave,
630
630
  RIPPLE_START_SCALE,
631
631
  center,
632
632
  opacity,
633
633
  radius
634
634
  };
635
- chunk2SCE7TFZCjs5.__workletHash = 1103682389833;
636
- chunk2SCE7TFZCjs5.__pluginVersion = "0.7.4";
637
- chunk2SCE7TFZCjs5.__initData = _worklet_1103682389833_init_data;
638
- chunk2SCE7TFZCjs5.__stackDetails = _e;
639
- return chunk2SCE7TFZCjs5;
635
+ chunkTGMVEHV7Cjs5.__workletHash = 3265727251381;
636
+ chunkTGMVEHV7Cjs5.__pluginVersion = "0.7.4";
637
+ chunkTGMVEHV7Cjs5.__initData = _worklet_3265727251381_init_data;
638
+ chunkTGMVEHV7Cjs5.__stackDetails = _e;
639
+ return chunkTGMVEHV7Cjs5;
640
640
  }({
641
- _worklet_1103682389833_init_data,
641
+ _worklet_3265727251381_init_data,
642
642
  wave,
643
643
  RIPPLE_START_SCALE,
644
644
  center,
@@ -1,10 +1,24 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
- var _chunkHT7H35GUcjs = require('./chunk-HT7H35GU.cjs');
4
-
5
- // src/system/style-props/use-style-props.ts
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }// src/system/style-props/use-style-props.ts
6
2
  var _react = require('react');
7
3
 
4
+ // src/utils/stable-hash.ts
5
+ function canonical(value) {
6
+ if (value === null || typeof value !== "object")
7
+ return _nullishCoalesce(JSON.stringify(value), () => ( "null"));
8
+ if (Array.isArray(value)) return `[${value.map(canonical).join(",")}]`;
9
+ const entries = Object.entries(value).filter(([, v]) => typeof v !== "function").sort(([a], [b]) => a < b ? -1 : 1).map(([k, v]) => `${JSON.stringify(k)}:${canonical(v)}`);
10
+ return `{${entries.join(",")}}`;
11
+ }
12
+ function stableHash(value) {
13
+ const input = canonical(value);
14
+ let hash = 2166136261;
15
+ for (let i = 0; i < input.length; i++) {
16
+ hash ^= input.charCodeAt(i);
17
+ hash = Math.imul(hash, 16777619) >>> 0;
18
+ }
19
+ return hash.toString(36);
20
+ }
21
+
8
22
  // src/utils/style-props.ts
9
23
  var STYLE_PROP_KEYS = [
10
24
  // Flex and layout
@@ -170,10 +184,11 @@ function splitStyleProps(props) {
170
184
  // src/system/style-props/use-style-props.ts
171
185
  function useStyleProps(props) {
172
186
  const [styleProps, rest] = splitStyleProps(props);
173
- const key = _chunkHT7H35GUcjs.stableHash.call(void 0, styleProps);
187
+ const key = stableHash(styleProps);
174
188
  return [_react.useMemo.call(void 0, () => styleProps, [key]), rest];
175
189
  }
176
190
 
177
191
 
178
192
 
179
- exports.useStyleProps = useStyleProps;
193
+
194
+ exports.stableHash = stableHash; exports.useStyleProps = useStyleProps;
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  useRotation
3
- } from "./chunk-PPWXLZGL.js";
3
+ } from "./chunk-3GFRSZYR.js";
4
4
  import {
5
5
  Icon
6
- } from "./chunk-OWE5IID7.js";
6
+ } from "./chunk-FHUYHV6J.js";
7
7
  import {
8
8
  PressableFeedback
9
- } from "./chunk-UCW25LL6.js";
9
+ } from "./chunk-LIUO6D3D.js";
10
10
  import {
11
11
  usePressState
12
12
  } from "./chunk-423RQBOX.js";
@@ -16,17 +16,17 @@ import {
16
16
  import {
17
17
  childrenToString,
18
18
  createSlotContext
19
- } from "./chunk-YXPYOOHU.js";
19
+ } from "./chunk-K72UDPVN.js";
20
20
  import {
21
21
  createRecipe,
22
22
  radiusAxis
23
23
  } from "./chunk-4GTAZM2C.js";
24
- import {
25
- useStyleProps
26
- } from "./chunk-OSCW7I4H.js";
27
24
  import {
28
25
  useXAUITheme
29
26
  } from "./chunk-A3EGFI6T.js";
27
+ import {
28
+ useStyleProps
29
+ } from "./chunk-M63GFNKV.js";
30
30
 
31
31
  // src/components/button/button.context.ts
32
32
  var [ButtonProvider, useButton] = createSlotContext("Button");
@@ -6,38 +6,38 @@ var _chunkF6CQ6CBIcjs = require('./chunk-F6CQ6CBI.cjs');
6
6
  var _chunk7EIHHOHPcjs = require('./chunk-7EIHHOHP.cjs');
7
7
 
8
8
 
9
- var _chunk2SCE7TFZcjs = require('./chunk-2SCE7TFZ.cjs');
9
+ var _chunkTGMVEHV7cjs = require('./chunk-TGMVEHV7.cjs');
10
10
 
11
11
 
12
12
  var _chunk7DPL3ZDScjs = require('./chunk-7DPL3ZDS.cjs');
13
13
 
14
14
 
15
15
 
16
- var _chunk54FJOKANcjs = require('./chunk-54FJOKAN.cjs');
16
+ var _chunk7GHM4GKLcjs = require('./chunk-7GHM4GKL.cjs');
17
17
 
18
18
 
19
19
 
20
20
  var _chunkFNEUOBCVcjs = require('./chunk-FNEUOBCV.cjs');
21
21
 
22
22
 
23
- var _chunkK3AVOT6Lcjs = require('./chunk-K3AVOT6L.cjs');
23
+ var _chunk57SJ4LJFcjs = require('./chunk-57SJ4LJF.cjs');
24
24
 
25
25
 
26
- var _chunk57SJ4LJFcjs = require('./chunk-57SJ4LJF.cjs');
26
+ var _chunkTK44VBIEcjs = require('./chunk-TK44VBIE.cjs');
27
27
 
28
28
  // src/components/checkbox/checkbox-indicator.tsx
29
29
  var _react = require('react');
30
30
  var _reactnative = require('react-native');
31
31
 
32
32
  // src/components/checkbox/checkbox.context.ts
33
- var [CheckboxProvider, useCheckbox] = _chunk54FJOKANcjs.createSlotContext.call(void 0, "Checkbox");
33
+ var [CheckboxProvider, useCheckbox] = _chunk7GHM4GKLcjs.createSlotContext.call(void 0, "Checkbox");
34
34
 
35
35
  // src/components/checkbox/checkbox-indicator.tsx
36
36
  var _jsxruntime = require('react/jsx-runtime');
37
37
  var CheckboxIndicator = _react.forwardRef.call(void 0,
38
38
  function CheckboxIndicator2({ children, animation = true, style, ...props }, ref) {
39
39
  const { indicatorStyle, fillStyle, isSelected, isIndeterminate } = useCheckbox();
40
- const [styleProps, rest] = _chunkK3AVOT6Lcjs.useStyleProps.call(void 0, props);
40
+ const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
41
41
  const isFilled = isSelected || isIndeterminate;
42
42
  const mark = _nullishCoalesce(children, () => ( (isIndeterminate ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Dash, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Check, {}))));
43
43
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { ref, ...rest, style: [indicatorStyle, styleProps, style], children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkF6CQ6CBIcjs.SelectionFill, { isVisible: isFilled, style: fillStyle, animation, children: mark }) });
@@ -60,7 +60,7 @@ function Dash() {
60
60
  var CheckboxLabel = _react.forwardRef.call(void 0,
61
61
  function CheckboxLabel2({ children, style, ...props }, ref) {
62
62
  const { labelStyle } = useCheckbox();
63
- const [styleProps, rest] = _chunkK3AVOT6Lcjs.useStyleProps.call(void 0, props);
63
+ const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
64
64
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { ref, style: [labelStyle, styleProps, style], ...rest, children });
65
65
  }
66
66
  );
@@ -250,7 +250,7 @@ var CheckboxRoot = _react.forwardRef.call(void 0, function Checkbox({
250
250
  ...props
251
251
  }, ref) {
252
252
  const theme = _chunk57SJ4LJFcjs.useXAUITheme.call(void 0, );
253
- const [styleProps, rest] = _chunkK3AVOT6Lcjs.useStyleProps.call(void 0, props);
253
+ const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
254
254
  const [isPressed, press] = _chunk7DPL3ZDScjs.usePressState.call(void 0, { onPressIn, onPressOut });
255
255
  const [selected, setSelected] = _chunk7EIHHOHPcjs.useControllableState.call(void 0, {
256
256
  value: isSelected,
@@ -297,13 +297,13 @@ var CheckboxRoot = _react.forwardRef.call(void 0, function Checkbox({
297
297
  styleProps,
298
298
  typeof style === "function" ? style({ pressed: isPressed }) : style
299
299
  ];
300
- const text = _chunk54FJOKANcjs.childrenToString.call(void 0, children);
300
+ const text = _chunk7GHM4GKLcjs.childrenToString.call(void 0, children);
301
301
  const content = text !== null ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
302
302
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CheckboxIndicator, {}),
303
303
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CheckboxLabel, { children: text })
304
304
  ] }) : _nullishCoalesce(children, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CheckboxIndicator, {})));
305
305
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CheckboxProvider, { value: context, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
306
- _chunk2SCE7TFZcjs.PressableFeedback,
306
+ _chunkTGMVEHV7cjs.PressableFeedback,
307
307
  {
308
308
  ref,
309
309
  isPressed,
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  CloseButton,
3
3
  closeButtonBase
4
- } from "./chunk-RSGIJ6RI.js";
4
+ } from "./chunk-EYD4H4X6.js";
5
5
  import {
6
6
  Icon
7
- } from "./chunk-OWE5IID7.js";
7
+ } from "./chunk-FHUYHV6J.js";
8
8
  import {
9
9
  PressableFeedback
10
- } from "./chunk-UCW25LL6.js";
10
+ } from "./chunk-LIUO6D3D.js";
11
11
  import {
12
12
  usePressState
13
13
  } from "./chunk-423RQBOX.js";
@@ -18,17 +18,17 @@ import {
18
18
  Slot,
19
19
  childrenToString,
20
20
  createSlotContext
21
- } from "./chunk-YXPYOOHU.js";
21
+ } from "./chunk-K72UDPVN.js";
22
22
  import {
23
23
  createRecipe,
24
24
  radiusAxis
25
25
  } from "./chunk-4GTAZM2C.js";
26
- import {
27
- useStyleProps
28
- } from "./chunk-OSCW7I4H.js";
29
26
  import {
30
27
  useXAUITheme
31
28
  } from "./chunk-A3EGFI6T.js";
29
+ import {
30
+ useStyleProps
31
+ } from "./chunk-M63GFNKV.js";
32
32
 
33
33
  // src/components/chip/chip-avatar.tsx
34
34
  import { forwardRef } from "react";
@@ -5,27 +5,27 @@
5
5
 
6
6
 
7
7
 
8
- var _chunk6N5ZCEABcjs = require('./chunk-6N5ZCEAB.cjs');
8
+ var _chunkA7YB7YWXcjs = require('./chunk-A7YB7YWX.cjs');
9
9
 
10
10
 
11
- var _chunk54FJOKANcjs = require('./chunk-54FJOKAN.cjs');
11
+ var _chunk7GHM4GKLcjs = require('./chunk-7GHM4GKL.cjs');
12
12
 
13
13
 
14
- var _chunkK3AVOT6Lcjs = require('./chunk-K3AVOT6L.cjs');
14
+ var _chunkTK44VBIEcjs = require('./chunk-TK44VBIE.cjs');
15
15
 
16
16
  // src/components/text-area/text-area-field.tsx
17
17
  var _react = require('react');
18
18
 
19
19
  // src/components/text-area/text-area.context.ts
20
- var [TextAreaProvider, useTextArea] = _chunk54FJOKANcjs.createSlotContext.call(void 0, "TextArea");
20
+ var [TextAreaProvider, useTextArea] = _chunk7GHM4GKLcjs.createSlotContext.call(void 0, "TextArea");
21
21
 
22
22
  // src/components/text-area/text-area-field.tsx
23
23
  var _jsxruntime = require('react/jsx-runtime');
24
24
  var TextAreaField = _react.forwardRef.call(void 0,
25
25
  function TextAreaField2({ style, scrollEnabled, ...props }, ref) {
26
- const { textAreaStyle, textArea } = _chunk6N5ZCEABcjs.useTextField.call(void 0, );
26
+ const { textAreaStyle, textArea } = _chunkA7YB7YWXcjs.useTextField.call(void 0, );
27
27
  const { rows, maxRows } = useTextArea();
28
- const [styleProps, rest] = _chunkK3AVOT6Lcjs.useStyleProps.call(void 0, props);
28
+ const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
29
29
  const height = _react.useMemo.call(void 0, () => {
30
30
  const chrome = textArea.paddingVertical * 2;
31
31
  return {
@@ -37,7 +37,7 @@ var TextAreaField = _react.forwardRef.call(void 0,
37
37
  };
38
38
  }, [rows, maxRows, textArea]);
39
39
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
40
- _chunk6N5ZCEABcjs.TextFieldField,
40
+ _chunkA7YB7YWXcjs.TextFieldField,
41
41
  {
42
42
  ref,
43
43
  multiline: true,
@@ -56,16 +56,16 @@ TextAreaField.displayName = "XAUI.TextArea.Field";
56
56
  var DEFAULT_ROWS = 3;
57
57
  var TextAreaRoot = _react.forwardRef.call(void 0, function TextArea({ rows = DEFAULT_ROWS, maxRows, children, ...props }, ref) {
58
58
  const context = _react.useMemo.call(void 0, () => ({ rows, maxRows }), [rows, maxRows]);
59
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TextAreaProvider, { value: context, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6N5ZCEABcjs.TextFieldRoot, { ref, ...props, children }) });
59
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TextAreaProvider, { value: context, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkA7YB7YWXcjs.TextFieldRoot, { ref, ...props, children }) });
60
60
  });
61
61
  TextAreaRoot.displayName = "XAUI.TextArea.Root";
62
62
 
63
63
  // src/components/text-area/index.ts
64
64
  var TextArea2 = Object.assign(TextAreaRoot, {
65
- Label: _chunk6N5ZCEABcjs.TextFieldLabel,
65
+ Label: _chunkA7YB7YWXcjs.TextFieldLabel,
66
66
  Field: TextAreaField,
67
- Description: _chunk6N5ZCEABcjs.TextFieldDescription,
68
- Error: _chunk6N5ZCEABcjs.TextFieldError
67
+ Description: _chunkA7YB7YWXcjs.TextFieldDescription,
68
+ Error: _chunkA7YB7YWXcjs.TextFieldError
69
69
  });
70
70
 
71
71
 
@@ -1,15 +1,13 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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 _chunkK3AVOT6Lcjs = require('./chunk-K3AVOT6L.cjs');
4
-
5
- // src/system/portal/portal.tsx
6
- var _react = require('react');
3
+ var _chunkTK44VBIEcjs = require('./chunk-TK44VBIE.cjs');
7
4
 
8
5
  // src/system/portal/portal-context.ts
9
-
6
+ var _react = require('react');
10
7
  var PortalContext = _react.createContext.call(void 0, null);
11
8
 
12
9
  // src/system/portal/portal.tsx
10
+
13
11
  function Portal({ children }) {
14
12
  const context = _react.useContext.call(void 0, PortalContext);
15
13
  const key = _react.useId.call(void 0, );
@@ -31,8 +29,15 @@ var styles = _reactnative.StyleSheet.create({
31
29
  container: { flex: 1 }
32
30
  });
33
31
  function PortalHost({ children, ...props }) {
34
- const [styleProps] = _chunkK3AVOT6Lcjs.useStyleProps.call(void 0, props);
32
+ const [styleProps] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
35
33
  const [portals, setPortals] = _react.useState.call(void 0, /* @__PURE__ */ new Map());
34
+ const [origin, setOrigin] = _react.useState.call(void 0, { x: 0, y: 0 });
35
+ const node = _react.useRef.call(void 0, null);
36
+ const measure = _react.useCallback.call(void 0, (_event) => {
37
+ _optionalChain([node, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.measureInWindow, 'call', _7 => _7((x, y) => {
38
+ setOrigin((current) => current.x === x && current.y === y ? current : { x, y });
39
+ })]);
40
+ }, []);
36
41
  const addPortal = _react.useCallback.call(void 0, (key, element) => {
37
42
  setPortals((current) => new Map(current).set(key, element));
38
43
  }, []);
@@ -45,10 +50,10 @@ function PortalHost({ children, ...props }) {
45
50
  });
46
51
  }, []);
47
52
  const methods = _react.useMemo.call(void 0,
48
- () => ({ addPortal, removePortal }),
49
- [addPortal, removePortal]
53
+ () => ({ addPortal, removePortal, origin }),
54
+ [addPortal, removePortal, origin]
50
55
  );
51
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PortalContext.Provider, { value: methods, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnative.View, { style: [styles.container, styleProps], children: [
56
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PortalContext.Provider, { value: methods, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnative.View, { ref: node, onLayout: measure, style: [styles.container, styleProps], children: [
52
57
  children,
53
58
  Array.from(portals, ([key, element]) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react.Fragment, { children: element }, key))
54
59
  ] }) });
@@ -0,0 +1,13 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkH4E4HDEPcjs = require('./chunk-H4E4HDEP.cjs');
4
+
5
+ // src/hooks/use-merged-ref.ts
6
+ var _react = require('react');
7
+ function useMergedRef(...refs) {
8
+ return _react.useMemo.call(void 0, () => _chunkH4E4HDEPcjs.mergeRefs.call(void 0, ...refs), refs);
9
+ }
10
+
11
+
12
+
13
+ exports.useMergedRef = useMergedRef;