@xaui/native 0.9.1-alpha.35 → 0.9.1-alpha.37

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 (151) hide show
  1. package/dist/{chunk-ZC35YYKS.js → chunk-2PMXMKS5.js} +13 -8
  2. package/dist/{chunk-CYS6U374.cjs → chunk-3P6M2R4S.cjs} +6 -6
  3. package/dist/{chunk-7CTIE42J.cjs → chunk-437QULXO.cjs} +16 -8
  4. package/dist/{chunk-M2BGCN77.js → chunk-4PTWZCOK.js} +9 -9
  5. package/dist/{chunk-ZA6RT3XQ.js → chunk-5PPNDKRX.js} +16 -16
  6. package/dist/{chunk-AYOVBZAX.js → chunk-6G3XWPNP.js} +5 -5
  7. package/dist/{chunk-PCWT2YBE.cjs → chunk-7B3UBUC6.cjs} +3 -3
  8. package/dist/{chunk-HXL2QCMR.js → chunk-7LSY4WFL.js} +14 -14
  9. package/dist/{chunk-OHEHPQLC.cjs → chunk-ACAPTWE3.cjs} +16 -12
  10. package/dist/{chunk-I66VMLHE.cjs → chunk-AP6RVIIK.cjs} +21 -21
  11. package/dist/{chunk-UR6DNU2M.js → chunk-BORJJYDW.js} +4 -4
  12. package/dist/{chunk-XWMB66ZM.cjs → chunk-C5VDFRAD.cjs} +3 -3
  13. package/dist/{chunk-PBR44KVV.cjs → chunk-CUQTAPBU.cjs} +22 -22
  14. package/dist/{chunk-QY4MN7X3.cjs → chunk-DKH6BNPF.cjs} +15 -15
  15. package/dist/{chunk-6M7RUU7V.cjs → chunk-DRMT346W.cjs} +64 -64
  16. package/dist/chunk-DVDQSW7U.cjs +1006 -0
  17. package/dist/{chunk-NMAZ2TQF.js → chunk-E3X5ODKQ.js} +3 -3
  18. package/dist/{chunk-U3RDU3HU.js → chunk-EOJ5MYAQ.js} +5 -5
  19. package/dist/{chunk-UORTYL63.cjs → chunk-FTQHDJYL.cjs} +14 -14
  20. package/dist/{chunk-DBXFFJTC.cjs → chunk-GTT4NHS2.cjs} +11 -11
  21. package/dist/{chunk-WJPQARJ5.js → chunk-HXW4ANVB.js} +3 -3
  22. package/dist/{chunk-MSMZBUZO.cjs → chunk-IGLKACSR.cjs} +7 -7
  23. package/dist/{chunk-HNW4HIMO.js → chunk-IKJVLJKT.js} +15 -15
  24. package/dist/{chunk-CNNLMMFV.cjs → chunk-ITURCQMQ.cjs} +7 -7
  25. package/dist/{chunk-DUQUCOUY.cjs → chunk-JB5LGQ54.cjs} +3 -3
  26. package/dist/{chunk-NLASSGA7.js → chunk-JDSE4TQL.js} +10 -2
  27. package/dist/{chunk-GBFQZQ77.js → chunk-JXNFOOKC.js} +7 -7
  28. package/dist/{chunk-Q3D6KIVF.cjs → chunk-LEWW24RQ.cjs} +105 -99
  29. package/dist/{chunk-MEYCZS32.js → chunk-M63GFNKV.js} +19 -4
  30. package/dist/chunk-MESKS6AI.js +0 -0
  31. package/dist/{chunk-MHEL3NAN.js → chunk-NKPTXTTS.js} +53 -53
  32. package/dist/{chunk-VSALV7VO.cjs → chunk-NTD3NPRX.cjs} +3 -3
  33. package/dist/{chunk-HVD5EX7V.js → chunk-O3A3DBSZ.js} +3 -3
  34. package/dist/chunk-OJCCV65P.cjs +1 -0
  35. package/dist/{chunk-JCYWU5TO.js → chunk-OULTSBKU.js} +3 -3
  36. package/dist/{chunk-CM4LI5OH.cjs → chunk-P747CRAY.cjs} +9 -9
  37. package/dist/{chunk-BA2MPBCO.js → chunk-RGKWNK4T.js} +58 -58
  38. package/dist/{chunk-NFFL3E4N.js → chunk-RVRVGG73.js} +4 -4
  39. package/dist/{chunk-L55CDXNI.js → chunk-SMW6ZWMH.js} +110 -104
  40. package/dist/{chunk-YUG22AXX.cjs → chunk-SNIHUKDA.cjs} +16 -16
  41. package/dist/{chunk-SLUJFE6R.js → chunk-SO5UAGIU.js} +15 -15
  42. package/dist/{chunk-2IWL6R3D.js → chunk-TDYPY2J7.js} +8 -8
  43. package/dist/{chunk-LZK77LFX.js → chunk-TJHYSSBZ.js} +3 -3
  44. package/dist/{chunk-I6ZB3FZI.cjs → chunk-TK44VBIE.cjs} +22 -7
  45. package/dist/{chunk-OX2YNMNS.cjs → chunk-UBOXW5WO.cjs} +63 -63
  46. package/dist/{chunk-XNNJM5DQ.js → chunk-UGF35NSE.js} +75 -75
  47. package/dist/{chunk-AOEXU5UV.cjs → chunk-VFTT3Q4B.cjs} +4 -4
  48. package/dist/{chunk-4SLOOIE5.cjs → chunk-WDDXU3OH.cjs} +14 -9
  49. package/dist/{chunk-TZG3DERP.js → chunk-WKCQ6VGW.js} +15 -11
  50. package/dist/{chunk-TVCS5UOE.cjs → chunk-WVLSQO6K.cjs} +49 -49
  51. package/dist/chunk-XWY4DF37.js +1143 -0
  52. package/dist/{chunk-K7LLERKT.cjs → chunk-ZJWEVFAO.cjs} +12 -12
  53. package/dist/components/alert/index.cjs +7 -8
  54. package/dist/components/alert/index.d.cts +1 -1
  55. package/dist/components/alert/index.d.ts +1 -1
  56. package/dist/components/alert/index.js +6 -7
  57. package/dist/components/avatar/index.cjs +4 -5
  58. package/dist/components/avatar/index.d.cts +3 -3
  59. package/dist/components/avatar/index.d.ts +3 -3
  60. package/dist/components/avatar/index.js +3 -4
  61. package/dist/components/badge/index.cjs +3 -4
  62. package/dist/components/badge/index.d.cts +1 -1
  63. package/dist/components/badge/index.d.ts +1 -1
  64. package/dist/components/badge/index.js +2 -3
  65. package/dist/components/button/index.cjs +6 -7
  66. package/dist/components/button/index.d.cts +168 -168
  67. package/dist/components/button/index.d.ts +168 -168
  68. package/dist/components/button/index.js +5 -6
  69. package/dist/components/card/index.cjs +5 -6
  70. package/dist/components/card/index.d.cts +169 -169
  71. package/dist/components/card/index.d.ts +169 -169
  72. package/dist/components/card/index.js +4 -5
  73. package/dist/components/checkbox/index.cjs +5 -6
  74. package/dist/components/checkbox/index.d.cts +336 -336
  75. package/dist/components/checkbox/index.d.ts +336 -336
  76. package/dist/components/checkbox/index.js +4 -5
  77. package/dist/components/chip/index.cjs +7 -8
  78. package/dist/components/chip/index.d.cts +169 -169
  79. package/dist/components/chip/index.d.ts +169 -169
  80. package/dist/components/chip/index.js +6 -7
  81. package/dist/components/divider/index.cjs +3 -4
  82. package/dist/components/divider/index.d.cts +1 -1
  83. package/dist/components/divider/index.d.ts +1 -1
  84. package/dist/components/divider/index.js +2 -3
  85. package/dist/components/field-group/index.cjs +27 -0
  86. package/dist/components/{input-group → field-group}/index.d.cts +66 -66
  87. package/dist/components/{input-group → field-group}/index.d.ts +66 -66
  88. package/dist/components/field-group/index.js +27 -0
  89. package/dist/components/input-otp/index.cjs +3 -4
  90. package/dist/components/input-otp/index.d.cts +1 -1
  91. package/dist/components/input-otp/index.d.ts +1 -1
  92. package/dist/components/input-otp/index.js +2 -3
  93. package/dist/components/radio/index.cjs +5 -6
  94. package/dist/components/radio/index.d.cts +336 -336
  95. package/dist/components/radio/index.d.ts +336 -336
  96. package/dist/components/radio/index.js +4 -5
  97. package/dist/components/select/index.cjs +47 -0
  98. package/dist/components/select/index.d.cts +519 -0
  99. package/dist/components/select/index.d.ts +519 -0
  100. package/dist/components/select/index.js +47 -0
  101. package/dist/components/skeleton/index.cjs +3 -4
  102. package/dist/components/skeleton/index.d.cts +1 -1
  103. package/dist/components/skeleton/index.d.ts +1 -1
  104. package/dist/components/skeleton/index.js +2 -3
  105. package/dist/components/spinner/index.cjs +4 -5
  106. package/dist/components/spinner/index.d.cts +1 -1
  107. package/dist/components/spinner/index.d.ts +1 -1
  108. package/dist/components/spinner/index.js +3 -4
  109. package/dist/components/switch/index.cjs +5 -6
  110. package/dist/components/switch/index.d.cts +338 -338
  111. package/dist/components/switch/index.d.ts +338 -338
  112. package/dist/components/switch/index.js +4 -5
  113. package/dist/components/text-area/index.cjs +4 -5
  114. package/dist/components/text-area/index.d.cts +10 -10
  115. package/dist/components/text-area/index.d.ts +10 -10
  116. package/dist/components/text-area/index.js +3 -4
  117. package/dist/components/text-field/index.cjs +25 -0
  118. package/dist/components/text-field/index.d.cts +205 -0
  119. package/dist/components/text-field/index.d.ts +205 -0
  120. package/dist/components/text-field/index.js +25 -0
  121. package/dist/components/typography/index.cjs +3 -4
  122. package/dist/components/typography/index.d.cts +2 -2
  123. package/dist/components/typography/index.d.ts +2 -2
  124. package/dist/components/typography/index.js +2 -3
  125. package/dist/components/view/index.cjs +3 -4
  126. package/dist/components/view/index.d.cts +6 -6
  127. package/dist/components/view/index.d.ts +6 -6
  128. package/dist/components/view/index.js +2 -3
  129. package/dist/index.cjs +64 -28
  130. package/dist/index.d.cts +4 -3
  131. package/dist/index.d.ts +4 -3
  132. package/dist/index.js +100 -64
  133. package/dist/system/index.cjs +10 -10
  134. package/dist/system/index.d.cts +15 -2
  135. package/dist/system/index.d.ts +15 -2
  136. package/dist/system/index.js +8 -8
  137. package/dist/{input.type-D2qgi03E.d.ts → text-field.type-0l73acce.d.ts} +24 -24
  138. package/dist/{input.type-BUMDlzL9.d.cts → text-field.type-DBh06DU5.d.cts} +24 -24
  139. package/dist/theme/index.cjs +4 -3
  140. package/dist/theme/index.d.cts +21 -1
  141. package/dist/theme/index.d.ts +21 -1
  142. package/dist/theme/index.js +3 -2
  143. package/package.json +26 -16
  144. package/dist/chunk-GGW42MY4.js +0 -20
  145. package/dist/chunk-MC7SY2QH.cjs +0 -20
  146. package/dist/components/input/index.cjs +0 -26
  147. package/dist/components/input/index.d.cts +0 -205
  148. package/dist/components/input/index.d.ts +0 -205
  149. package/dist/components/input/index.js +0 -26
  150. package/dist/components/input-group/index.cjs +0 -28
  151. package/dist/components/input-group/index.js +0 -28
@@ -1,6 +1,6 @@
1
1
  import { Slot, createSlotContext } from "./chunk-YXPYOOHU.js";
2
- import { useStyleProps } from "./chunk-MEYCZS32.js";
3
2
  import { contrastOn, isHex, useXAUITheme } from "./chunk-A3EGFI6T.js";
3
+ import { useStyleProps } from "./chunk-M63GFNKV.js";
4
4
 
5
5
  // src/system/pressable-feedback/pressable-feedback-context.ts
6
6
  import { createContext } from "react";
@@ -11,13 +11,13 @@ var DisableAllContext = createContext(false);
11
11
  var PRESS_SCALE = 0.985;
12
12
  var PRESS_DURATION = 300;
13
13
  var SCALE_REFERENCE_WIDTH = 300;
14
- const _worklet_9970110965583_init_data = {
15
- code: "function pressScaleFor_chunkXNNJM5DQJs1(width){const{SCALE_REFERENCE_WIDTH,PRESS_SCALE}=this.__closure;const coefficient=width>0?SCALE_REFERENCE_WIDTH/width:1;return 1-(1-PRESS_SCALE)*coefficient;}",
16
- location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-XNNJM5DQ.js",
17
- sourceMap: "{\"version\":3,\"names\":[\"pressScaleFor_chunkXNNJM5DQJs1\",\"width\",\"SCALE_REFERENCE_WIDTH\",\"PRESS_SCALE\",\"__closure\",\"coefficient\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-XNNJM5DQ.js\"],\"mappings\":\"AAsBA,SAAAA,8BAA8BA,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\":[]}"
14
+ const _worklet_5135557177946_init_data = {
15
+ code: "function pressScaleFor_chunkUGF35NSEJs1(width){const{SCALE_REFERENCE_WIDTH,PRESS_SCALE}=this.__closure;const coefficient=width>0?SCALE_REFERENCE_WIDTH/width:1;return 1-(1-PRESS_SCALE)*coefficient;}",
16
+ location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-UGF35NSE.js",
17
+ sourceMap: "{\"version\":3,\"names\":[\"pressScaleFor_chunkUGF35NSEJs1\",\"width\",\"SCALE_REFERENCE_WIDTH\",\"PRESS_SCALE\",\"__closure\",\"coefficient\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-UGF35NSE.js\"],\"mappings\":\"AAsBA,SAAAA,8BAA8BA,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\":[]}"
18
18
  };
19
- const pressScaleFor = function pressScaleFor_chunkXNNJM5DQJs1Factory({
20
- _worklet_9970110965583_init_data,
19
+ const pressScaleFor = function pressScaleFor_chunkUGF35NSEJs1Factory({
20
+ _worklet_5135557177946_init_data,
21
21
  SCALE_REFERENCE_WIDTH,
22
22
  PRESS_SCALE
23
23
  }) {
@@ -30,13 +30,13 @@ const pressScaleFor = function pressScaleFor_chunkXNNJM5DQJs1Factory({
30
30
  SCALE_REFERENCE_WIDTH,
31
31
  PRESS_SCALE
32
32
  };
33
- pressScaleFor.__workletHash = 9970110965583;
33
+ pressScaleFor.__workletHash = 5135557177946;
34
34
  pressScaleFor.__pluginVersion = "0.7.4";
35
- pressScaleFor.__initData = _worklet_9970110965583_init_data;
35
+ pressScaleFor.__initData = _worklet_5135557177946_init_data;
36
36
  pressScaleFor.__stackDetails = _e;
37
37
  return pressScaleFor;
38
38
  }({
39
- _worklet_9970110965583_init_data,
39
+ _worklet_5135557177946_init_data,
40
40
  SCALE_REFERENCE_WIDTH,
41
41
  PRESS_SCALE
42
42
  });
@@ -49,26 +49,26 @@ var RIPPLE_CONFIRM_DURATION = 225;
49
49
  var RIPPLE_FADE_IN = 75;
50
50
  var RIPPLE_FADE_OUT_DELAY = 225;
51
51
  var RIPPLE_FADE_OUT = 150;
52
- const _worklet_5679538863092_init_data = {
53
- code: "function rippleRadiusFor_chunkXNNJM5DQJs2(width,height){return Math.sqrt(width*width+height*height)/2+5;}",
54
- location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-XNNJM5DQ.js",
55
- sourceMap: "{\"version\":3,\"names\":[\"rippleRadiusFor_chunkXNNJM5DQJs2\",\"width\",\"height\",\"Math\",\"sqrt\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-XNNJM5DQ.js\"],\"mappings\":\"AAoCA,SAAAA,gCAAwCA,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\":[]}"
52
+ const _worklet_4090183949025_init_data = {
53
+ code: "function rippleRadiusFor_chunkUGF35NSEJs2(width,height){return Math.sqrt(width*width+height*height)/2+5;}",
54
+ location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-UGF35NSE.js",
55
+ sourceMap: "{\"version\":3,\"names\":[\"rippleRadiusFor_chunkUGF35NSEJs2\",\"width\",\"height\",\"Math\",\"sqrt\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-UGF35NSE.js\"],\"mappings\":\"AAoCA,SAAAA,gCAAwCA,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\":[]}"
56
56
  };
57
- const rippleRadiusFor = function rippleRadiusFor_chunkXNNJM5DQJs2Factory({
58
- _worklet_5679538863092_init_data
57
+ const rippleRadiusFor = function rippleRadiusFor_chunkUGF35NSEJs2Factory({
58
+ _worklet_4090183949025_init_data
59
59
  }) {
60
60
  const _e = [new global.Error(), 1, -27];
61
61
  const rippleRadiusFor = function (width, height) {
62
62
  return Math.sqrt(width * width + height * height) / 2 + 5;
63
63
  };
64
64
  rippleRadiusFor.__closure = {};
65
- rippleRadiusFor.__workletHash = 5679538863092;
65
+ rippleRadiusFor.__workletHash = 4090183949025;
66
66
  rippleRadiusFor.__pluginVersion = "0.7.4";
67
- rippleRadiusFor.__initData = _worklet_5679538863092_init_data;
67
+ rippleRadiusFor.__initData = _worklet_4090183949025_init_data;
68
68
  rippleRadiusFor.__stackDetails = _e;
69
69
  return rippleRadiusFor;
70
70
  }({
71
- _worklet_5679538863092_init_data
71
+ _worklet_4090183949025_init_data
72
72
  });
73
73
  var ALL_OFF = {
74
74
  scale: false,
@@ -242,15 +242,15 @@ var StaticFeedback = forwardRef(function StaticFeedback2({
242
242
  })
243
243
  });
244
244
  });
245
- const _worklet_13861557334785_init_data = {
246
- code: "function chunkXNNJM5DQJs3(){const{pressScaleFor,size}=this.__closure;return pressScaleFor(size.value.width);}",
247
- location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-XNNJM5DQ.js",
248
- sourceMap: "{\"version\":3,\"names\":[\"chunkXNNJM5DQJs3\",\"pressScaleFor\",\"size\",\"__closure\",\"value\",\"width\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-XNNJM5DQ.js\"],\"mappings\":\"AAkNuC,SAAAA,iBAAA,QAAAC,aAAA,CAAAC,IAAA,OAAAC,SAAA,OAAM,CAAAF,aAAc,CAAAC,IAAK,CAAAE,KAAM,CAAAC,KAAK\",\"ignoreList\":[]}"
245
+ const _worklet_15174532920532_init_data = {
246
+ code: "function chunkUGF35NSEJs3(){const{pressScaleFor,size}=this.__closure;return pressScaleFor(size.value.width);}",
247
+ location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-UGF35NSE.js",
248
+ sourceMap: "{\"version\":3,\"names\":[\"chunkUGF35NSEJs3\",\"pressScaleFor\",\"size\",\"__closure\",\"value\",\"width\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-UGF35NSE.js\"],\"mappings\":\"AAkNuC,SAAAA,iBAAA,QAAAC,aAAA,CAAAC,IAAA,OAAAC,SAAA,OAAM,CAAAF,aAAc,CAAAC,IAAK,CAAAE,KAAM,CAAAC,KAAK\",\"ignoreList\":[]}"
249
249
  };
250
- const _worklet_535513824337_init_data = {
251
- code: "function chunkXNNJM5DQJs4(){const{animation,pressedScale,progress}=this.__closure;if(!animation.scale)return{};return{transform:[{scale:1-(1-pressedScale.value)*progress.value}]};}",
252
- location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-XNNJM5DQ.js",
253
- sourceMap: "{\"version\":3,\"names\":[\"chunkXNNJM5DQJs4\",\"animation\",\"pressedScale\",\"progress\",\"__closure\",\"scale\",\"transform\",\"value\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-XNNJM5DQ.js\"],\"mappings\":\"AAmNyC,SAAAA,gBAAMA,CAAA,QAAAC,SAAA,CAAAC,YAAA,CAAAC,QAAA,OAAAC,SAAA,CAE3C,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\":[]}"
250
+ const _worklet_11256254319236_init_data = {
251
+ code: "function chunkUGF35NSEJs4(){const{animation,pressedScale,progress}=this.__closure;if(!animation.scale)return{};return{transform:[{scale:1-(1-pressedScale.value)*progress.value}]};}",
252
+ location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-UGF35NSE.js",
253
+ sourceMap: "{\"version\":3,\"names\":[\"chunkUGF35NSEJs4\",\"animation\",\"pressedScale\",\"progress\",\"__closure\",\"scale\",\"transform\",\"value\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-UGF35NSE.js\"],\"mappings\":\"AAmNyC,SAAAA,gBAAMA,CAAA,QAAAC,SAAA,CAAAC,YAAA,CAAAC,QAAA,OAAAC,SAAA,CAE3C,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\":[]}"
254
254
  };
255
255
  var AnimatedFeedback = forwardRef(function AnimatedFeedback2({
256
256
  isPressed = false,
@@ -278,35 +278,35 @@ var AnimatedFeedback = forwardRef(function AnimatedFeedback2({
278
278
  easing: Easing.out(Easing.ease)
279
279
  });
280
280
  }, [isPressed, progress]);
281
- const pressedScale = useDerivedValue(function chunkXNNJM5DQJs3Factory({
282
- _worklet_13861557334785_init_data,
281
+ const pressedScale = useDerivedValue(function chunkUGF35NSEJs3Factory({
282
+ _worklet_15174532920532_init_data,
283
283
  pressScaleFor,
284
284
  size
285
285
  }) {
286
286
  const _e = [new global.Error(), -3, -27];
287
- const chunkXNNJM5DQJs3 = () => pressScaleFor(size.value.width);
288
- chunkXNNJM5DQJs3.__closure = {
287
+ const chunkUGF35NSEJs3 = () => pressScaleFor(size.value.width);
288
+ chunkUGF35NSEJs3.__closure = {
289
289
  pressScaleFor,
290
290
  size
291
291
  };
292
- chunkXNNJM5DQJs3.__workletHash = 13861557334785;
293
- chunkXNNJM5DQJs3.__pluginVersion = "0.7.4";
294
- chunkXNNJM5DQJs3.__initData = _worklet_13861557334785_init_data;
295
- chunkXNNJM5DQJs3.__stackDetails = _e;
296
- return chunkXNNJM5DQJs3;
292
+ chunkUGF35NSEJs3.__workletHash = 15174532920532;
293
+ chunkUGF35NSEJs3.__pluginVersion = "0.7.4";
294
+ chunkUGF35NSEJs3.__initData = _worklet_15174532920532_init_data;
295
+ chunkUGF35NSEJs3.__stackDetails = _e;
296
+ return chunkUGF35NSEJs3;
297
297
  }({
298
- _worklet_13861557334785_init_data,
298
+ _worklet_15174532920532_init_data,
299
299
  pressScaleFor,
300
300
  size
301
301
  }));
302
- const animatedStyle = useAnimatedStyle(function chunkXNNJM5DQJs4Factory({
303
- _worklet_535513824337_init_data,
302
+ const animatedStyle = useAnimatedStyle(function chunkUGF35NSEJs4Factory({
303
+ _worklet_11256254319236_init_data,
304
304
  animation,
305
305
  pressedScale,
306
306
  progress
307
307
  }) {
308
308
  const _e = [new global.Error(), -4, -27];
309
- const chunkXNNJM5DQJs4 = function () {
309
+ const chunkUGF35NSEJs4 = function () {
310
310
  if (!animation.scale) return {};
311
311
  return {
312
312
  transform: [{
@@ -314,18 +314,18 @@ var AnimatedFeedback = forwardRef(function AnimatedFeedback2({
314
314
  }]
315
315
  };
316
316
  };
317
- chunkXNNJM5DQJs4.__closure = {
317
+ chunkUGF35NSEJs4.__closure = {
318
318
  animation,
319
319
  pressedScale,
320
320
  progress
321
321
  };
322
- chunkXNNJM5DQJs4.__workletHash = 535513824337;
323
- chunkXNNJM5DQJs4.__pluginVersion = "0.7.4";
324
- chunkXNNJM5DQJs4.__initData = _worklet_535513824337_init_data;
325
- chunkXNNJM5DQJs4.__stackDetails = _e;
326
- return chunkXNNJM5DQJs4;
322
+ chunkUGF35NSEJs4.__workletHash = 11256254319236;
323
+ chunkUGF35NSEJs4.__pluginVersion = "0.7.4";
324
+ chunkUGF35NSEJs4.__initData = _worklet_11256254319236_init_data;
325
+ chunkUGF35NSEJs4.__stackDetails = _e;
326
+ return chunkUGF35NSEJs4;
327
327
  }({
328
- _worklet_535513824337_init_data,
328
+ _worklet_11256254319236_init_data,
329
329
  animation,
330
330
  pressedScale,
331
331
  progress
@@ -470,10 +470,10 @@ function PressableFeedbackHighlight({
470
470
  }
471
471
  PressableFeedbackHighlight.displayName = "XAUI.PressableFeedback.Highlight";
472
472
  markOverlay(PressableFeedbackHighlight);
473
- const _worklet_8555670266145_init_data = {
474
- code: "function chunkXNNJM5DQJs5(){const{shown,opacity}=this.__closure;return{opacity:shown.value*opacity};}",
475
- location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-XNNJM5DQ.js",
476
- sourceMap: "{\"version\":3,\"names\":[\"chunkXNNJM5DQJs5\",\"shown\",\"opacity\",\"__closure\",\"value\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-XNNJM5DQ.js\"],\"mappings\":\"AAiW0C,SAAAA,gBAAMA,CAAA,QAAAC,KAAA,CAAAC,OAAA,OAAAC,SAAA,CAE5C,MAAO,CAAED,OAAO,CAAED,KAAK,CAACG,KAAK,CAAGF,OAAQ,CAAC,CAC3C\",\"ignoreList\":[]}"
473
+ const _worklet_8423429846196_init_data = {
474
+ code: "function chunkUGF35NSEJs5(){const{shown,opacity}=this.__closure;return{opacity:shown.value*opacity};}",
475
+ location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-UGF35NSE.js",
476
+ sourceMap: "{\"version\":3,\"names\":[\"chunkUGF35NSEJs5\",\"shown\",\"opacity\",\"__closure\",\"value\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-UGF35NSE.js\"],\"mappings\":\"AAiW0C,SAAAA,gBAAMA,CAAA,QAAAC,KAAA,CAAAC,OAAA,OAAAC,SAAA,CAE5C,MAAO,CAAED,OAAO,CAAED,KAAK,CAACG,KAAK,CAAGF,OAAQ,CAAC,CAC3C\",\"ignoreList\":[]}"
477
477
  };
478
478
  function AnimatedHighlight({
479
479
  base,
@@ -489,28 +489,28 @@ function AnimatedHighlight({
489
489
  duration
490
490
  });
491
491
  }, [isPressed, shown, duration]);
492
- const animatedStyle = useAnimatedStyle2(function chunkXNNJM5DQJs5Factory({
493
- _worklet_8555670266145_init_data,
492
+ const animatedStyle = useAnimatedStyle2(function chunkUGF35NSEJs5Factory({
493
+ _worklet_8423429846196_init_data,
494
494
  shown,
495
495
  opacity
496
496
  }) {
497
497
  const _e = [new global.Error(), -3, -27];
498
- const chunkXNNJM5DQJs5 = function () {
498
+ const chunkUGF35NSEJs5 = function () {
499
499
  return {
500
500
  opacity: shown.value * opacity
501
501
  };
502
502
  };
503
- chunkXNNJM5DQJs5.__closure = {
503
+ chunkUGF35NSEJs5.__closure = {
504
504
  shown,
505
505
  opacity
506
506
  };
507
- chunkXNNJM5DQJs5.__workletHash = 8555670266145;
508
- chunkXNNJM5DQJs5.__pluginVersion = "0.7.4";
509
- chunkXNNJM5DQJs5.__initData = _worklet_8555670266145_init_data;
510
- chunkXNNJM5DQJs5.__stackDetails = _e;
511
- return chunkXNNJM5DQJs5;
507
+ chunkUGF35NSEJs5.__workletHash = 8423429846196;
508
+ chunkUGF35NSEJs5.__pluginVersion = "0.7.4";
509
+ chunkUGF35NSEJs5.__initData = _worklet_8423429846196_init_data;
510
+ chunkUGF35NSEJs5.__stackDetails = _e;
511
+ return chunkUGF35NSEJs5;
512
512
  }({
513
- _worklet_8555670266145_init_data,
513
+ _worklet_8423429846196_init_data,
514
514
  shown,
515
515
  opacity
516
516
  }), [shown, opacity]);
@@ -577,10 +577,10 @@ function PressableFeedbackRipple({
577
577
  }
578
578
  PressableFeedbackRipple.displayName = "XAUI.PressableFeedback.Ripple";
579
579
  markOverlay(PressableFeedbackRipple);
580
- const _worklet_11561569097774_init_data = {
581
- code: "function chunkXNNJM5DQJs6(){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}]};}",
582
- location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-XNNJM5DQ.js",
583
- sourceMap: "{\"version\":3,\"names\":[\"chunkXNNJM5DQJs6\",\"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-XNNJM5DQ.js\"],\"mappings\":\"AAia0C,SAAAA,gBAAMA,CAAA,QAAAC,IAAA,CAAAC,kBAAA,CAAAC,MAAA,CAAAC,OAAA,CAAAC,MAAA,OAAAC,SAAA,CAE5C,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\":[]}"
580
+ const _worklet_11317917473275_init_data = {
581
+ code: "function chunkUGF35NSEJs6(){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}]};}",
582
+ location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-UGF35NSE.js",
583
+ sourceMap: "{\"version\":3,\"names\":[\"chunkUGF35NSEJs6\",\"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-UGF35NSE.js\"],\"mappings\":\"AAia0C,SAAAA,gBAAMA,CAAA,QAAAC,IAAA,CAAAC,kBAAA,CAAAC,MAAA,CAAAC,OAAA,CAAAC,MAAA,OAAAC,SAAA,CAE5C,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\":[]}"
584
584
  };
585
585
  function RippleWave({
586
586
  wave,
@@ -590,8 +590,8 @@ function RippleWave({
590
590
  opacity,
591
591
  style
592
592
  }) {
593
- const animatedStyle = useAnimatedStyle3(function chunkXNNJM5DQJs6Factory({
594
- _worklet_11561569097774_init_data,
593
+ const animatedStyle = useAnimatedStyle3(function chunkUGF35NSEJs6Factory({
594
+ _worklet_11317917473275_init_data,
595
595
  wave,
596
596
  RIPPLE_START_SCALE,
597
597
  center,
@@ -599,7 +599,7 @@ function RippleWave({
599
599
  radius
600
600
  }) {
601
601
  const _e = [new global.Error(), -6, -27];
602
- const chunkXNNJM5DQJs6 = function () {
602
+ const chunkUGF35NSEJs6 = function () {
603
603
  const t = wave.expand.value;
604
604
  const from = wave.origin.value;
605
605
  const scale = RIPPLE_START_SCALE + (1 - RIPPLE_START_SCALE) * t;
@@ -617,20 +617,20 @@ function RippleWave({
617
617
  }]
618
618
  };
619
619
  };
620
- chunkXNNJM5DQJs6.__closure = {
620
+ chunkUGF35NSEJs6.__closure = {
621
621
  wave,
622
622
  RIPPLE_START_SCALE,
623
623
  center,
624
624
  opacity,
625
625
  radius
626
626
  };
627
- chunkXNNJM5DQJs6.__workletHash = 11561569097774;
628
- chunkXNNJM5DQJs6.__pluginVersion = "0.7.4";
629
- chunkXNNJM5DQJs6.__initData = _worklet_11561569097774_init_data;
630
- chunkXNNJM5DQJs6.__stackDetails = _e;
631
- return chunkXNNJM5DQJs6;
627
+ chunkUGF35NSEJs6.__workletHash = 11317917473275;
628
+ chunkUGF35NSEJs6.__pluginVersion = "0.7.4";
629
+ chunkUGF35NSEJs6.__initData = _worklet_11317917473275_init_data;
630
+ chunkUGF35NSEJs6.__stackDetails = _e;
631
+ return chunkUGF35NSEJs6;
632
632
  }({
633
- _worklet_11561569097774_init_data,
633
+ _worklet_11317917473275_init_data,
634
634
  wave,
635
635
  RIPPLE_START_SCALE,
636
636
  center,
@@ -6,10 +6,10 @@ var _chunk54FJOKANcjs = require('./chunk-54FJOKAN.cjs');
6
6
  var _chunkFNEUOBCVcjs = require('./chunk-FNEUOBCV.cjs');
7
7
 
8
8
 
9
- var _chunkI6ZB3FZIcjs = require('./chunk-I6ZB3FZI.cjs');
9
+ var _chunk57SJ4LJFcjs = require('./chunk-57SJ4LJF.cjs');
10
10
 
11
11
 
12
- var _chunk57SJ4LJFcjs = require('./chunk-57SJ4LJF.cjs');
12
+ var _chunkTK44VBIEcjs = require('./chunk-TK44VBIE.cjs');
13
13
 
14
14
  // src/components/typography/typography.tsx
15
15
  var _react = require('react');
@@ -76,7 +76,7 @@ var typographyRecipe = _chunkFNEUOBCVcjs.createRecipe.call(void 0, {
76
76
  var _jsxruntime = require('react/jsx-runtime');
77
77
  var Typography = _react.forwardRef.call(void 0, function Typography2({ children, variant, color, asChild = false, style, ...props }, ref) {
78
78
  const theme = _chunk57SJ4LJFcjs.useXAUITheme.call(void 0, );
79
- const [styleProps, rest] = _chunkI6ZB3FZIcjs.useStyleProps.call(void 0, props);
79
+ const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
80
80
  const selection = { variant };
81
81
  const styles = typographyRecipe.resolve({ theme, selection });
82
82
  const tint = color ? typographyRecipe.tint({ theme, color, selection }) : void 0;
@@ -91,7 +91,7 @@ Typography.displayName = "XAUI.Typography";
91
91
 
92
92
 
93
93
  var TextSpan = _react.forwardRef.call(void 0, function TextSpan2({ children, asChild = false, style, ...props }, ref) {
94
- const [styleProps, rest] = _chunkI6ZB3FZIcjs.useStyleProps.call(void 0, props);
94
+ const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
95
95
  const Root = asChild ? _chunk54FJOKANcjs.Slot : _reactnative.Text;
96
96
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Root, { ref, style: [styleProps, style], ...rest, children });
97
97
  });
@@ -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 _chunkI6ZB3FZIcjs = require('./chunk-I6ZB3FZI.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] = _chunkI6ZB3FZIcjs.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
  ] }) });
@@ -1,3 +1,6 @@
1
+ import {
2
+ PortalHost
3
+ } from "./chunk-2PMXMKS5.js";
1
4
  import {
2
5
  ThemeContext,
3
6
  alpha,
@@ -5,7 +8,7 @@ import {
5
8
  } from "./chunk-A3EGFI6T.js";
6
9
  import {
7
10
  stableHash
8
- } from "./chunk-GGW42MY4.js";
11
+ } from "./chunk-M63GFNKV.js";
9
12
 
10
13
  // src/provider/xaui-provider.tsx
11
14
  import { useColorScheme } from "react-native";
@@ -130,10 +133,10 @@ function buildShadows(mode) {
130
133
  surface: noShadow,
131
134
  overlay: {
132
135
  shadowColor: "#000000",
133
- shadowOffset: { width: 0, height: 8 },
134
- shadowOpacity: 0.6,
135
- shadowRadius: 24,
136
- elevation: 16
136
+ shadowOffset: { width: 0, height: 4 },
137
+ shadowOpacity: 0.45,
138
+ shadowRadius: 16,
139
+ elevation: 8
137
140
  },
138
141
  field: noShadow
139
142
  };
@@ -148,10 +151,10 @@ function buildShadows(mode) {
148
151
  },
149
152
  overlay: {
150
153
  shadowColor: "#000000",
151
- shadowOffset: { width: 0, height: 8 },
152
- shadowOpacity: 0.14,
153
- shadowRadius: 24,
154
- elevation: 16
154
+ shadowOffset: { width: 0, height: 4 },
155
+ shadowOpacity: 0.1,
156
+ shadowRadius: 16,
157
+ elevation: 8
155
158
  },
156
159
  field: {
157
160
  shadowColor: "#000000",
@@ -390,11 +393,12 @@ import { jsx } from "react/jsx-runtime";
390
393
  function XAUIProvider({
391
394
  children,
392
395
  theme = defaultTheme,
393
- colorMode = "system"
396
+ colorMode = "system",
397
+ hasPortalHost = true
394
398
  }) {
395
399
  const scheme = useColorScheme();
396
400
  const resolved = colorMode === "system" ? scheme === "dark" ? "dark" : "light" : colorMode;
397
- return /* @__PURE__ */ jsx(ThemeContext.Provider, { value: theme[resolved], children });
401
+ return /* @__PURE__ */ jsx(ThemeContext.Provider, { value: theme[resolved], children: hasPortalHost ? /* @__PURE__ */ jsx(PortalHost, { children }) : children });
398
402
  }
399
403
 
400
404
  // src/theme/palette.ts
@@ -1,25 +1,25 @@
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 _chunkQ3D6KIVFcjs = require('./chunk-Q3D6KIVF.cjs');
4
+ var _chunkLEWW24RQcjs = require('./chunk-LEWW24RQ.cjs');
5
5
 
6
6
 
7
- var _chunkPCWT2YBEcjs = require('./chunk-PCWT2YBE.cjs');
7
+ var _chunk7B3UBUC6cjs = require('./chunk-7B3UBUC6.cjs');
8
8
 
9
9
 
10
10
 
11
11
  var _chunk54FJOKANcjs = require('./chunk-54FJOKAN.cjs');
12
12
 
13
13
 
14
- var _chunkI6ZB3FZIcjs = require('./chunk-I6ZB3FZI.cjs');
14
+ var _chunkTK44VBIEcjs = require('./chunk-TK44VBIE.cjs');
15
15
 
16
- // src/components/input-group/input-group-field.tsx
16
+ // src/components/field-group/field-group-field.tsx
17
17
  var _react = require('react');
18
18
 
19
- // src/components/input-group/input-group.context.ts
20
- var [InputGroupProvider, useInputGroup] = _chunk54FJOKANcjs.createSlotContext.call(void 0, "InputGroup");
19
+ // src/components/field-group/field-group.context.ts
20
+ var [FieldGroupProvider, useFieldGroup] = _chunk54FJOKANcjs.createSlotContext.call(void 0, "FieldGroup");
21
21
 
22
- // src/components/input-group/input-group.utils.ts
22
+ // src/components/field-group/field-group.utils.ts
23
23
  function decoratorPadding(prefixWidth, suffixWidth) {
24
24
  const paddingStart = prefixWidth > 0 ? prefixWidth : void 0;
25
25
  const paddingEnd = suffixWidth > 0 ? suffixWidth : void 0;
@@ -27,40 +27,40 @@ function decoratorPadding(prefixWidth, suffixWidth) {
27
27
  return { paddingStart, paddingEnd };
28
28
  }
29
29
 
30
- // src/components/input-group/input-group-field.tsx
30
+ // src/components/field-group/field-group-field.tsx
31
31
  var _jsxruntime = require('react/jsx-runtime');
32
- var InputGroupField = _react.forwardRef.call(void 0,
33
- function InputGroupField2({ style, ...props }, ref) {
34
- const { prefixWidth, suffixWidth } = useInputGroup();
32
+ var FieldGroupField = _react.forwardRef.call(void 0,
33
+ function FieldGroupField2({ style, ...props }, ref) {
34
+ const { prefixWidth, suffixWidth } = useFieldGroup();
35
35
  const padding = _react.useMemo.call(void 0,
36
36
  () => decoratorPadding(prefixWidth, suffixWidth),
37
37
  [prefixWidth, suffixWidth]
38
38
  );
39
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQ3D6KIVFcjs.InputField, { ref, ...props, style: [padding, style] });
39
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLEWW24RQcjs.TextFieldField, { ref, ...props, style: [padding, style] });
40
40
  }
41
41
  );
42
- InputGroupField.displayName = "XAUI.InputGroup.Field";
42
+ FieldGroupField.displayName = "XAUI.FieldGroup.Field";
43
43
 
44
- // src/components/input-group/input-group-icon.tsx
44
+ // src/components/field-group/field-group-icon.tsx
45
45
 
46
- function InputGroupIcon({ size, color, ...rest }) {
47
- const { icon } = _chunkQ3D6KIVFcjs.useInput.call(void 0, );
48
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPCWT2YBEcjs.Icon, { size: _nullishCoalesce(size, () => ( icon.size)), color: _nullishCoalesce(color, () => ( icon.color)), ...rest });
46
+ function FieldGroupIcon({ size, color, ...rest }) {
47
+ const { icon } = _chunkLEWW24RQcjs.useTextField.call(void 0, );
48
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7B3UBUC6cjs.Icon, { size: _nullishCoalesce(size, () => ( icon.size)), color: _nullishCoalesce(color, () => ( icon.color)), ...rest });
49
49
  }
50
- InputGroupIcon.displayName = "XAUI.InputGroup.Icon";
50
+ FieldGroupIcon.displayName = "XAUI.FieldGroup.Icon";
51
51
 
52
- // src/components/input-group/input-group-prefix.tsx
52
+ // src/components/field-group/field-group-prefix.tsx
53
53
 
54
54
 
55
- // src/components/input-group/input-group-decorator.tsx
55
+ // src/components/field-group/field-group-decorator.tsx
56
56
 
57
57
  var _reactnative = require('react-native');
58
58
 
59
- var InputGroupDecorator = _react.forwardRef.call(void 0,
60
- function InputGroupDecorator2({ side, children, isDecorative = false, onLayout, style, ...props }, ref) {
61
- const { prefixStyle, suffixStyle, isDisabled } = _chunkQ3D6KIVFcjs.useInput.call(void 0, );
62
- const { setPrefixWidth, setSuffixWidth } = useInputGroup();
63
- const [styleProps, rest] = _chunkI6ZB3FZIcjs.useStyleProps.call(void 0, props);
59
+ var FieldGroupDecorator = _react.forwardRef.call(void 0,
60
+ function FieldGroupDecorator2({ side, children, isDecorative = false, onLayout, style, ...props }, ref) {
61
+ const { prefixStyle, suffixStyle, isDisabled } = _chunkLEWW24RQcjs.useTextField.call(void 0, );
62
+ const { setPrefixWidth, setSuffixWidth } = useFieldGroup();
63
+ const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
64
64
  const report = side === "prefix" ? setPrefixWidth : setSuffixWidth;
65
65
  const handleLayout = _react.useCallback.call(void 0,
66
66
  (event) => {
@@ -85,33 +85,33 @@ var InputGroupDecorator = _react.forwardRef.call(void 0,
85
85
  );
86
86
  }
87
87
  );
88
- InputGroupDecorator.displayName = "XAUI.InputGroup.Decorator";
88
+ FieldGroupDecorator.displayName = "XAUI.FieldGroup.Decorator";
89
89
 
90
- // src/components/input-group/input-group-prefix.tsx
90
+ // src/components/field-group/field-group-prefix.tsx
91
91
 
92
- var InputGroupPrefix = _react.forwardRef.call(void 0,
93
- function InputGroupPrefix2(props, ref) {
94
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, InputGroupDecorator, { ref, side: "prefix", ...props });
92
+ var FieldGroupPrefix = _react.forwardRef.call(void 0,
93
+ function FieldGroupPrefix2(props, ref) {
94
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FieldGroupDecorator, { ref, side: "prefix", ...props });
95
95
  }
96
96
  );
97
- InputGroupPrefix.displayName = "XAUI.InputGroup.Prefix";
97
+ FieldGroupPrefix.displayName = "XAUI.FieldGroup.Prefix";
98
98
 
99
- // src/components/input-group/input-group-suffix.tsx
99
+ // src/components/field-group/field-group-suffix.tsx
100
100
 
101
101
 
102
- var InputGroupSuffix = _react.forwardRef.call(void 0,
103
- function InputGroupSuffix2(props, ref) {
104
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, InputGroupDecorator, { ref, side: "suffix", ...props });
102
+ var FieldGroupSuffix = _react.forwardRef.call(void 0,
103
+ function FieldGroupSuffix2(props, ref) {
104
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FieldGroupDecorator, { ref, side: "suffix", ...props });
105
105
  }
106
106
  );
107
- InputGroupSuffix.displayName = "XAUI.InputGroup.Suffix";
107
+ FieldGroupSuffix.displayName = "XAUI.FieldGroup.Suffix";
108
108
 
109
- // src/components/input-group/input-group.tsx
109
+ // src/components/field-group/field-group.tsx
110
110
 
111
111
 
112
112
 
113
- var InputGroupRoot = _react.forwardRef.call(void 0, function InputGroup({ children, asChild = false, style, ...props }, ref) {
114
- const [styleProps, rest] = _chunkI6ZB3FZIcjs.useStyleProps.call(void 0, props);
113
+ var FieldGroupRoot = _react.forwardRef.call(void 0, function FieldGroup({ children, asChild = false, style, ...props }, ref) {
114
+ const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
115
115
  const [prefixWidth, setPrefixWidth] = _react.useState.call(void 0, 0);
116
116
  const [suffixWidth, setSuffixWidth] = _react.useState.call(void 0, 0);
117
117
  const context = _react.useMemo.call(void 0,
@@ -123,16 +123,16 @@ var InputGroupRoot = _react.forwardRef.call(void 0, function InputGroup({ childr
123
123
  // R12 — the caller's element *is* the row.
124
124
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk54FJOKANcjs.Slot, { ref, ...rest, style: rootStyle, children })
125
125
  ) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { ref, ...rest, style: rootStyle, children });
126
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, InputGroupProvider, { value: context, children: surface });
126
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FieldGroupProvider, { value: context, children: surface });
127
127
  });
128
- InputGroupRoot.displayName = "XAUI.InputGroup.Root";
129
-
130
- // src/components/input-group/index.ts
131
- var InputGroup2 = Object.assign(InputGroupRoot, {
132
- Prefix: InputGroupPrefix,
133
- Field: InputGroupField,
134
- Suffix: InputGroupSuffix,
135
- Icon: InputGroupIcon
128
+ FieldGroupRoot.displayName = "XAUI.FieldGroup.Root";
129
+
130
+ // src/components/field-group/index.ts
131
+ var FieldGroup2 = Object.assign(FieldGroupRoot, {
132
+ Prefix: FieldGroupPrefix,
133
+ Field: FieldGroupField,
134
+ Suffix: FieldGroupSuffix,
135
+ Icon: FieldGroupIcon
136
136
  });
137
137
 
138
138
 
@@ -144,4 +144,4 @@ var InputGroup2 = Object.assign(InputGroupRoot, {
144
144
 
145
145
 
146
146
 
147
- exports.useInputGroup = useInputGroup; exports.decoratorPadding = decoratorPadding; exports.InputGroupField = InputGroupField; exports.InputGroupIcon = InputGroupIcon; exports.InputGroupPrefix = InputGroupPrefix; exports.InputGroupSuffix = InputGroupSuffix; exports.InputGroupRoot = InputGroupRoot; exports.InputGroup = InputGroup2;
147
+ exports.useFieldGroup = useFieldGroup; exports.decoratorPadding = decoratorPadding; exports.FieldGroupField = FieldGroupField; exports.FieldGroupIcon = FieldGroupIcon; exports.FieldGroupPrefix = FieldGroupPrefix; exports.FieldGroupSuffix = FieldGroupSuffix; exports.FieldGroupRoot = FieldGroupRoot; exports.FieldGroup = FieldGroup2;