@xaui/native 0.9.1-alpha.36 → 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 (141) hide show
  1. package/dist/{chunk-V5IVMZQJ.js → chunk-2PMXMKS5.js} +13 -8
  2. package/dist/{chunk-FVKIQBHS.cjs → chunk-3P6M2R4S.cjs} +6 -6
  3. package/dist/{chunk-RPOKLFRB.cjs → chunk-437QULXO.cjs} +7 -7
  4. package/dist/{chunk-BAPXLO5N.js → chunk-4PTWZCOK.js} +9 -9
  5. package/dist/{chunk-E5ZW7MBW.js → chunk-5PPNDKRX.js} +16 -16
  6. package/dist/{chunk-K7GAHNMJ.js → chunk-6G3XWPNP.js} +5 -5
  7. package/dist/{chunk-ISPOIMGX.cjs → chunk-7B3UBUC6.cjs} +3 -3
  8. package/dist/{chunk-5GMU7ESV.js → chunk-7LSY4WFL.js} +2 -2
  9. package/dist/{chunk-HQVVQGYV.cjs → chunk-ACAPTWE3.cjs} +16 -12
  10. package/dist/{chunk-2L7FOIWY.cjs → chunk-AP6RVIIK.cjs} +21 -21
  11. package/dist/{chunk-SAGMDVFU.js → chunk-BORJJYDW.js} +4 -4
  12. package/dist/{chunk-ADQVA2FQ.cjs → chunk-C5VDFRAD.cjs} +3 -3
  13. package/dist/{chunk-FYCDRRJ2.cjs → chunk-CUQTAPBU.cjs} +22 -22
  14. package/dist/{chunk-GPZSTEEI.cjs → chunk-DKH6BNPF.cjs} +15 -15
  15. package/dist/{chunk-2SCE7TFZ.cjs → chunk-DRMT346W.cjs} +64 -64
  16. package/dist/chunk-DVDQSW7U.cjs +1006 -0
  17. package/dist/{chunk-U3HFQHGZ.js → chunk-E3X5ODKQ.js} +3 -3
  18. package/dist/{chunk-RSGIJ6RI.js → chunk-EOJ5MYAQ.js} +5 -5
  19. package/dist/{chunk-MFXZHLOU.cjs → chunk-FTQHDJYL.cjs} +14 -14
  20. package/dist/{chunk-GHKJ6MUH.cjs → chunk-GTT4NHS2.cjs} +11 -11
  21. package/dist/{chunk-OWE5IID7.js → chunk-HXW4ANVB.js} +3 -3
  22. package/dist/{chunk-N2U63JUX.cjs → chunk-IGLKACSR.cjs} +7 -7
  23. package/dist/{chunk-VWATEE5O.js → chunk-IKJVLJKT.js} +15 -15
  24. package/dist/{chunk-AZRMOWRG.cjs → chunk-ITURCQMQ.cjs} +7 -7
  25. package/dist/{chunk-PGQWUASE.cjs → chunk-JB5LGQ54.cjs} +3 -3
  26. package/dist/{chunk-4XFEEBPU.js → chunk-JDSE4TQL.js} +1 -1
  27. package/dist/{chunk-6U5IUUAR.js → chunk-JXNFOOKC.js} +7 -7
  28. package/dist/{chunk-6N5ZCEAB.cjs → chunk-LEWW24RQ.cjs} +7 -7
  29. package/dist/{chunk-OSCW7I4H.js → chunk-M63GFNKV.js} +19 -4
  30. package/dist/chunk-MESKS6AI.js +0 -0
  31. package/dist/{chunk-CVCE7TW5.js → chunk-NKPTXTTS.js} +3 -3
  32. package/dist/{chunk-2LNE4PWB.cjs → chunk-NTD3NPRX.cjs} +3 -3
  33. package/dist/{chunk-2OZPOWFB.js → chunk-O3A3DBSZ.js} +3 -3
  34. package/dist/chunk-OJCCV65P.cjs +1 -0
  35. package/dist/{chunk-B6OKVLC7.js → chunk-OULTSBKU.js} +3 -3
  36. package/dist/{chunk-TE7KVFE4.cjs → chunk-P747CRAY.cjs} +9 -9
  37. package/dist/{chunk-DL2PGB5G.js → chunk-RGKWNK4T.js} +58 -58
  38. package/dist/{chunk-DOLWSO7A.js → chunk-RVRVGG73.js} +4 -4
  39. package/dist/{chunk-3YZSUDZ2.js → chunk-SMW6ZWMH.js} +3 -3
  40. package/dist/{chunk-AQXNEV6J.cjs → chunk-SNIHUKDA.cjs} +16 -16
  41. package/dist/{chunk-OMV5MUTM.js → chunk-SO5UAGIU.js} +15 -15
  42. package/dist/{chunk-KZVHC4FL.js → chunk-TDYPY2J7.js} +8 -8
  43. package/dist/{chunk-QZO57TPX.js → chunk-TJHYSSBZ.js} +3 -3
  44. package/dist/{chunk-K3AVOT6L.cjs → chunk-TK44VBIE.cjs} +22 -7
  45. package/dist/{chunk-ZU3XQZ63.cjs → chunk-UBOXW5WO.cjs} +63 -63
  46. package/dist/{chunk-UCW25LL6.js → chunk-UGF35NSE.js} +75 -75
  47. package/dist/{chunk-LCDHTLSG.cjs → chunk-VFTT3Q4B.cjs} +4 -4
  48. package/dist/{chunk-5BNIIDQD.cjs → chunk-WDDXU3OH.cjs} +14 -9
  49. package/dist/{chunk-JB5XANQY.js → chunk-WKCQ6VGW.js} +15 -11
  50. package/dist/{chunk-XARBUUIE.cjs → chunk-WVLSQO6K.cjs} +9 -9
  51. package/dist/chunk-XWY4DF37.js +1143 -0
  52. package/dist/{chunk-EFPWXJAJ.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 +5 -6
  86. package/dist/components/field-group/index.d.cts +6 -6
  87. package/dist/components/field-group/index.d.ts +6 -6
  88. package/dist/components/field-group/index.js +4 -5
  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.js +3 -4
  115. package/dist/components/text-field/index.cjs +3 -4
  116. package/dist/components/text-field/index.d.cts +3 -3
  117. package/dist/components/text-field/index.d.ts +3 -3
  118. package/dist/components/text-field/index.js +2 -3
  119. package/dist/components/typography/index.cjs +3 -4
  120. package/dist/components/typography/index.d.cts +2 -2
  121. package/dist/components/typography/index.d.ts +2 -2
  122. package/dist/components/typography/index.js +2 -3
  123. package/dist/components/view/index.cjs +3 -4
  124. package/dist/components/view/index.d.cts +6 -6
  125. package/dist/components/view/index.d.ts +6 -6
  126. package/dist/components/view/index.js +2 -3
  127. package/dist/index.cjs +64 -28
  128. package/dist/index.d.cts +1 -0
  129. package/dist/index.d.ts +1 -0
  130. package/dist/index.js +80 -44
  131. package/dist/system/index.cjs +10 -10
  132. package/dist/system/index.d.cts +15 -2
  133. package/dist/system/index.d.ts +15 -2
  134. package/dist/system/index.js +8 -8
  135. package/dist/theme/index.cjs +4 -3
  136. package/dist/theme/index.d.cts +21 -1
  137. package/dist/theme/index.d.ts +21 -1
  138. package/dist/theme/index.js +3 -2
  139. package/package.json +11 -1
  140. package/dist/chunk-FJ5TLRT3.js +0 -21
  141. package/dist/chunk-HT7H35GU.cjs +0 -21
@@ -1,15 +1,13 @@
1
1
  import {
2
2
  useStyleProps
3
- } from "./chunk-OSCW7I4H.js";
4
-
5
- // src/system/portal/portal.tsx
6
- import { useContext, useId, useLayoutEffect } from "react";
3
+ } from "./chunk-M63GFNKV.js";
7
4
 
8
5
  // src/system/portal/portal-context.ts
9
6
  import { createContext } from "react";
10
7
  var PortalContext = createContext(null);
11
8
 
12
9
  // src/system/portal/portal.tsx
10
+ import { useContext, useId, useLayoutEffect } from "react";
13
11
  function Portal({ children }) {
14
12
  const context = useContext(PortalContext);
15
13
  const key = useId();
@@ -24,7 +22,7 @@ function Portal({ children }) {
24
22
  Portal.displayName = "XAUI.Portal";
25
23
 
26
24
  // src/system/portal/portal-host.tsx
27
- import { Fragment, useCallback, useMemo, useState } from "react";
25
+ import { Fragment, useCallback, useMemo, useRef, useState } from "react";
28
26
  import { StyleSheet, View } from "react-native";
29
27
  import { jsx, jsxs } from "react/jsx-runtime";
30
28
  var styles = StyleSheet.create({
@@ -33,6 +31,13 @@ var styles = StyleSheet.create({
33
31
  function PortalHost({ children, ...props }) {
34
32
  const [styleProps] = useStyleProps(props);
35
33
  const [portals, setPortals] = useState(/* @__PURE__ */ new Map());
34
+ const [origin, setOrigin] = useState({ x: 0, y: 0 });
35
+ const node = useRef(null);
36
+ const measure = useCallback((_event) => {
37
+ node.current?.measureInWindow((x, y) => {
38
+ setOrigin((current) => current.x === x && current.y === y ? current : { x, y });
39
+ });
40
+ }, []);
36
41
  const addPortal = useCallback((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 = useMemo(
48
- () => ({ addPortal, removePortal }),
49
- [addPortal, removePortal]
53
+ () => ({ addPortal, removePortal, origin }),
54
+ [addPortal, removePortal, origin]
50
55
  );
51
- return /* @__PURE__ */ jsx(PortalContext.Provider, { value: methods, children: /* @__PURE__ */ jsxs(View, { style: [styles.container, styleProps], children: [
56
+ return /* @__PURE__ */ jsx(PortalContext.Provider, { value: methods, children: /* @__PURE__ */ jsxs(View, { ref: node, onLayout: measure, style: [styles.container, styleProps], children: [
52
57
  children,
53
58
  Array.from(portals, ([key, element]) => /* @__PURE__ */ jsx(Fragment, { children: element }, key))
54
59
  ] }) });
@@ -1,15 +1,15 @@
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 _chunk2SCE7TFZcjs = require('./chunk-2SCE7TFZ.cjs');
3
+ var _chunkDRMT346Wcjs = require('./chunk-DRMT346W.cjs');
4
4
 
5
5
 
6
- var _chunk7DPL3ZDScjs = require('./chunk-7DPL3ZDS.cjs');
6
+ var _chunkEJQCQPETcjs = require('./chunk-EJQCQPET.cjs');
7
7
 
8
8
 
9
- var _chunkEJQCQPETcjs = require('./chunk-EJQCQPET.cjs');
9
+ var _chunk7DPL3ZDScjs = require('./chunk-7DPL3ZDS.cjs');
10
10
 
11
11
 
12
- var _chunkK3AVOT6Lcjs = require('./chunk-K3AVOT6L.cjs');
12
+ var _chunkTK44VBIEcjs = require('./chunk-TK44VBIE.cjs');
13
13
 
14
14
  // src/system/close-button/close-button.tsx
15
15
  var _react = require('react');
@@ -37,7 +37,7 @@ var CloseButton = _react.forwardRef.call(void 0, function CloseButton2({
37
37
  onPressOut,
38
38
  ...props
39
39
  }, ref) {
40
- const [styleProps, rest] = _chunkK3AVOT6Lcjs.useStyleProps.call(void 0, props);
40
+ const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
41
41
  const [isPressed, press] = _chunk7DPL3ZDScjs.usePressState.call(void 0, { onPressIn, onPressOut });
42
42
  if (!rest.accessibilityLabel && !rest["aria-label"]) {
43
43
  _chunkEJQCQPETcjs.warnDev.call(void 0,
@@ -45,7 +45,7 @@ var CloseButton = _react.forwardRef.call(void 0, function CloseButton2({
45
45
  );
46
46
  }
47
47
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
48
- _chunk2SCE7TFZcjs.PressableFeedback,
48
+ _chunkDRMT346Wcjs.PressableFeedback,
49
49
  {
50
50
  ref,
51
51
  isPressed,
@@ -3,7 +3,7 @@
3
3
  var _chunk54FJOKANcjs = require('./chunk-54FJOKAN.cjs');
4
4
 
5
5
 
6
- var _chunkK3AVOT6Lcjs = require('./chunk-K3AVOT6L.cjs');
6
+ var _chunkTK44VBIEcjs = require('./chunk-TK44VBIE.cjs');
7
7
 
8
8
  // src/components/view/grid.tsx
9
9
  var _react = require('react');
@@ -32,7 +32,7 @@ function spanWidth({ cellWidth, columns, gap }, span) {
32
32
  var _jsxruntime = require('react/jsx-runtime');
33
33
  var GridRoot = _react.forwardRef.call(void 0, function Grid({ children, columns = 2, gap = 0, style, onLayout, ...props }, ref) {
34
34
  const [width, setWidth] = _react.useState.call(void 0, );
35
- const [styleProps, rest] = _chunkK3AVOT6Lcjs.useStyleProps.call(void 0, props);
35
+ const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
36
36
  const safeColumns = Math.max(Math.floor(columns), 1);
37
37
  const cellWidth = width === void 0 ? void 0 : (width - gap * (safeColumns - 1)) / safeColumns;
38
38
  const context = _react.useMemo.call(void 0,
@@ -75,7 +75,7 @@ function isGridItem(child) {
75
75
 
76
76
  var GridItem = _react.forwardRef.call(void 0, function GridItem2({ children, span = 1, style, ...props }, ref) {
77
77
  const grid = useGrid();
78
- const [styleProps, rest] = _chunkK3AVOT6Lcjs.useStyleProps.call(void 0, props);
78
+ const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
79
79
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
80
80
  _reactnative.View,
81
81
  {
@@ -93,7 +93,7 @@ GridItem.displayName = "XAUI.Grid.Item";
93
93
 
94
94
 
95
95
  var StackRoot = _react.forwardRef.call(void 0, function Stack({ children, asChild = false, style, ...props }, ref) {
96
- const [styleProps, rest] = _chunkK3AVOT6Lcjs.useStyleProps.call(void 0, props);
96
+ const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
97
97
  const Root = asChild ? _chunk54FJOKANcjs.Slot : _reactnative.View;
98
98
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Root, { ref, style: [{ position: "relative" }, styleProps, style], ...rest, children });
99
99
  });
@@ -104,7 +104,7 @@ StackRoot.displayName = "XAUI.Stack";
104
104
 
105
105
 
106
106
  var StackItem = _react.forwardRef.call(void 0, function StackItem2({ children, asChild = false, style, ...props }, ref) {
107
- const [styleProps, rest] = _chunkK3AVOT6Lcjs.useStyleProps.call(void 0, props);
107
+ const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
108
108
  const Root = asChild ? _chunk54FJOKANcjs.Slot : _reactnative.View;
109
109
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Root, { ref, style: [{ position: "absolute" }, styleProps, style], ...rest, children });
110
110
  });
@@ -115,7 +115,7 @@ StackItem.displayName = "XAUI.Stack.Item";
115
115
 
116
116
 
117
117
  var Row = _react.forwardRef.call(void 0, function Row2({ children, asChild = false, style, ...props }, ref) {
118
- const [styleProps, rest] = _chunkK3AVOT6Lcjs.useStyleProps.call(void 0, props);
118
+ const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
119
119
  const Root = asChild ? _chunk54FJOKANcjs.Slot : _reactnative.View;
120
120
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Root, { ref, style: [{ flexDirection: "row" }, styleProps, style], ...rest, children });
121
121
  });
@@ -126,7 +126,7 @@ Row.displayName = "XAUI.Row";
126
126
 
127
127
 
128
128
  var Column = _react.forwardRef.call(void 0, function Column2({ children, asChild = false, style, ...props }, ref) {
129
- const [styleProps, rest] = _chunkK3AVOT6Lcjs.useStyleProps.call(void 0, props);
129
+ const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
130
130
  const Root = asChild ? _chunk54FJOKANcjs.Slot : _reactnative.View;
131
131
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
132
132
  Root,
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  CloseButton,
3
3
  closeButtonBase
4
- } from "./chunk-RSGIJ6RI.js";
4
+ } from "./chunk-EOJ5MYAQ.js";
5
5
  import {
6
6
  Icon
7
- } from "./chunk-OWE5IID7.js";
7
+ } from "./chunk-HXW4ANVB.js";
8
8
  import {
9
9
  PressableFeedback
10
- } from "./chunk-UCW25LL6.js";
11
- import {
12
- usePressState
13
- } from "./chunk-423RQBOX.js";
10
+ } from "./chunk-UGF35NSE.js";
14
11
  import {
15
12
  warnDev
16
13
  } from "./chunk-EGLLDKN6.js";
14
+ import {
15
+ usePressState
16
+ } from "./chunk-423RQBOX.js";
17
17
  import {
18
18
  Slot,
19
19
  childrenToString,
@@ -23,12 +23,12 @@ 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";
@@ -1,8 +1,8 @@
1
- import { IconContext } from "./chunk-OWE5IID7.js";
1
+ import { IconContext } from "./chunk-HXW4ANVB.js";
2
2
  import { Slot, childrenToString, createSlotContext } from "./chunk-YXPYOOHU.js";
3
3
  import { createRecipe, radiusAxis } from "./chunk-4GTAZM2C.js";
4
- import { useStyleProps } from "./chunk-OSCW7I4H.js";
5
4
  import { useXAUITheme } from "./chunk-A3EGFI6T.js";
5
+ import { useStyleProps } from "./chunk-M63GFNKV.js";
6
6
 
7
7
  // src/components/avatar/avatar-fallback.tsx
8
8
  import { forwardRef as forwardRef2 } from "react";
@@ -105,10 +105,10 @@ var AvatarImage = forwardRef3(function AvatarImage2({
105
105
  });
106
106
  });
107
107
  AvatarImage.displayName = "XAUI.Avatar.Image";
108
- const _worklet_8778646627758_init_data = {
109
- code: "function chunkE5ZW7MBWJs1(){const{opacity}=this.__closure;return{opacity:opacity.value};}",
110
- location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-E5ZW7MBW.js",
111
- sourceMap: "{\"version\":3,\"names\":[\"chunkE5ZW7MBWJs1\",\"opacity\",\"__closure\",\"value\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-E5ZW7MBW.js\"],\"mappings\":\"AAoG2C,SAAAA,gBAAMA,CAAA,QAAAC,OAAA,OAAAC,SAAA,CAE3C,MAAO,CAAED,OAAO,CAAEA,OAAO,CAACE,KAAM,CAAC,CACnC\",\"ignoreList\":[]}"
108
+ const _worklet_5642990609762_init_data = {
109
+ code: "function chunk5PPNDKRXJs1(){const{opacity}=this.__closure;return{opacity:opacity.value};}",
110
+ location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-5PPNDKRX.js",
111
+ sourceMap: "{\"version\":3,\"names\":[\"chunk5PPNDKRXJs1\",\"opacity\",\"__closure\",\"value\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-5PPNDKRX.js\"],\"mappings\":\"AAoG2C,SAAAA,gBAAMA,CAAA,QAAAC,OAAA,OAAAC,SAAA,CAE3C,MAAO,CAAED,OAAO,CAAEA,OAAO,CAACE,KAAM,CAAC,CACnC\",\"ignoreList\":[]}"
112
112
  };
113
113
  var FadingImage = forwardRef3(function FadingImage2({
114
114
  onLoad,
@@ -122,26 +122,26 @@ var FadingImage = forwardRef3(function FadingImage2({
122
122
  });
123
123
  onLoad?.(event);
124
124
  }, [opacity, onLoad]);
125
- const animatedStyle = useAnimatedStyle(function chunkE5ZW7MBWJs1Factory({
126
- _worklet_8778646627758_init_data,
125
+ const animatedStyle = useAnimatedStyle(function chunk5PPNDKRXJs1Factory({
126
+ _worklet_5642990609762_init_data,
127
127
  opacity
128
128
  }) {
129
129
  const _e = [new global.Error(), -2, -27];
130
- const chunkE5ZW7MBWJs1 = function () {
130
+ const chunk5PPNDKRXJs1 = function () {
131
131
  return {
132
132
  opacity: opacity.value
133
133
  };
134
134
  };
135
- chunkE5ZW7MBWJs1.__closure = {
135
+ chunk5PPNDKRXJs1.__closure = {
136
136
  opacity
137
137
  };
138
- chunkE5ZW7MBWJs1.__workletHash = 8778646627758;
139
- chunkE5ZW7MBWJs1.__pluginVersion = "0.7.4";
140
- chunkE5ZW7MBWJs1.__initData = _worklet_8778646627758_init_data;
141
- chunkE5ZW7MBWJs1.__stackDetails = _e;
142
- return chunkE5ZW7MBWJs1;
138
+ chunk5PPNDKRXJs1.__workletHash = 5642990609762;
139
+ chunk5PPNDKRXJs1.__pluginVersion = "0.7.4";
140
+ chunk5PPNDKRXJs1.__initData = _worklet_5642990609762_init_data;
141
+ chunk5PPNDKRXJs1.__stackDetails = _e;
142
+ return chunk5PPNDKRXJs1;
143
143
  }({
144
- _worklet_8778646627758_init_data,
144
+ _worklet_5642990609762_init_data,
145
145
  opacity
146
146
  }), [opacity]);
147
147
  return /* @__PURE__ */jsx3(Animated.Image, {
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  CloseButton,
3
3
  closeButtonBase
4
- } from "./chunk-RSGIJ6RI.js";
4
+ } from "./chunk-EOJ5MYAQ.js";
5
5
  import {
6
6
  Icon
7
- } from "./chunk-OWE5IID7.js";
7
+ } from "./chunk-HXW4ANVB.js";
8
8
  import {
9
9
  Slot,
10
10
  childrenToString,
@@ -14,12 +14,12 @@ import {
14
14
  createRecipe,
15
15
  radiusAxis
16
16
  } from "./chunk-4GTAZM2C.js";
17
- import {
18
- useStyleProps
19
- } from "./chunk-OSCW7I4H.js";
20
17
  import {
21
18
  useXAUITheme
22
19
  } from "./chunk-A3EGFI6T.js";
20
+ import {
21
+ useStyleProps
22
+ } from "./chunk-M63GFNKV.js";
23
23
 
24
24
  // src/components/alert/alert-close.tsx
25
25
  import { forwardRef } from "react";
@@ -1,9 +1,9 @@
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 _chunkK3AVOT6Lcjs = require('./chunk-K3AVOT6L.cjs');
3
+ var _chunk57SJ4LJFcjs = require('./chunk-57SJ4LJF.cjs');
4
4
 
5
5
 
6
- var _chunk57SJ4LJFcjs = require('./chunk-57SJ4LJF.cjs');
6
+ var _chunkTK44VBIEcjs = require('./chunk-TK44VBIE.cjs');
7
7
 
8
8
  // src/system/icon/icon-context.ts
9
9
  var _react = require('react');
@@ -47,7 +47,7 @@ function IconImage({
47
47
  color: _color,
48
48
  ...props
49
49
  }) {
50
- const [styleProps] = _chunkK3AVOT6Lcjs.useStyleProps.call(void 0, props);
50
+ const [styleProps] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
51
51
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
52
52
  _reactnative.Image,
53
53
  {
@@ -5,13 +5,13 @@ import {
5
5
  TextFieldLabel,
6
6
  TextFieldRoot,
7
7
  useTextField
8
- } from "./chunk-3YZSUDZ2.js";
8
+ } from "./chunk-SMW6ZWMH.js";
9
9
  import {
10
10
  createSlotContext
11
11
  } from "./chunk-YXPYOOHU.js";
12
12
  import {
13
13
  useStyleProps
14
- } from "./chunk-OSCW7I4H.js";
14
+ } from "./chunk-M63GFNKV.js";
15
15
 
16
16
  // src/components/text-area/text-area-field.tsx
17
17
  import { forwardRef, useMemo } from "react";
@@ -1,11 +1,14 @@
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 _chunkWDDXU3OHcjs = require('./chunk-WDDXU3OH.cjs');
4
+
5
+
3
6
 
4
7
 
5
8
  var _chunk57SJ4LJFcjs = require('./chunk-57SJ4LJF.cjs');
6
9
 
7
10
 
8
- var _chunkHT7H35GUcjs = require('./chunk-HT7H35GU.cjs');
11
+ var _chunkTK44VBIEcjs = require('./chunk-TK44VBIE.cjs');
9
12
 
10
13
  // src/provider/xaui-provider.tsx
11
14
  var _reactnative = require('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",
@@ -376,7 +379,7 @@ function resolveMode(mode, config, id) {
376
379
  };
377
380
  }
378
381
  function createTheme(config = {}) {
379
- const id = _chunkHT7H35GUcjs.stableHash.call(void 0, config);
382
+ const id = _chunkTK44VBIEcjs.stableHash.call(void 0, config);
380
383
  return {
381
384
  id,
382
385
  light: resolveMode("light", config, id),
@@ -390,11 +393,12 @@ var _jsxruntime = require('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 = _reactnative.useColorScheme.call(void 0, );
396
400
  const resolved = colorMode === "system" ? scheme === "dark" ? "dark" : "light" : colorMode;
397
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk57SJ4LJFcjs.ThemeContext.Provider, { value: theme[resolved], children });
401
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk57SJ4LJFcjs.ThemeContext.Provider, { value: theme[resolved], children: hasPortalHost ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWDDXU3OHcjs.PortalHost, { children }) : children });
398
402
  }
399
403
 
400
404
  // src/theme/palette.ts
@@ -29,11 +29,11 @@ function _optionalChain(ops) {
29
29
  }
30
30
  return value;
31
31
  }
32
- var _chunkISPOIMGXcjs = require('./chunk-ISPOIMGX.cjs');
32
+ var _chunk7B3UBUC6cjs = require('./chunk-7B3UBUC6.cjs');
33
33
  var _chunk54FJOKANcjs = require('./chunk-54FJOKAN.cjs');
34
34
  var _chunkFNEUOBCVcjs = require('./chunk-FNEUOBCV.cjs');
35
- var _chunkK3AVOT6Lcjs = require('./chunk-K3AVOT6L.cjs');
36
35
  var _chunk57SJ4LJFcjs = require('./chunk-57SJ4LJF.cjs');
36
+ var _chunkTK44VBIEcjs = require('./chunk-TK44VBIE.cjs');
37
37
 
38
38
  // src/components/avatar/avatar-fallback.tsx
39
39
  var _react = require('react');
@@ -54,7 +54,7 @@ var AvatarInitials = _react.forwardRef.call(void 0, function AvatarInitials2({
54
54
  const {
55
55
  initialsStyle
56
56
  } = useAvatar();
57
- const [styleProps, rest] = _chunkK3AVOT6Lcjs.useStyleProps.call(void 0, props);
57
+ const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
58
58
  return /* @__PURE__ */_jsxruntime.jsx.call(void 0, _reactnative.Text, {
59
59
  ref,
60
60
  accessibilityElementsHidden: true,
@@ -78,7 +78,7 @@ var AvatarFallback = _react.forwardRef.call(void 0, function AvatarFallback2({
78
78
  fallbackStyle,
79
79
  icon
80
80
  } = useAvatar();
81
- const [styleProps, rest] = _chunkK3AVOT6Lcjs.useStyleProps.call(void 0, props);
81
+ const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
82
82
  const text = _chunk54FJOKANcjs.childrenToString.call(void 0, children);
83
83
  const content = text !== null ? /* @__PURE__ */_jsxruntime.jsx.call(void 0, AvatarInitials, {
84
84
  children: text
@@ -87,7 +87,7 @@ var AvatarFallback = _react.forwardRef.call(void 0, function AvatarFallback2({
87
87
  ref,
88
88
  style: [fallbackStyle, styleProps, style],
89
89
  ...rest,
90
- children: /* @__PURE__ */_jsxruntime.jsx.call(void 0, _chunkISPOIMGXcjs.IconContext.Provider, {
90
+ children: /* @__PURE__ */_jsxruntime.jsx.call(void 0, _chunk7B3UBUC6cjs.IconContext.Provider, {
91
91
  value: icon,
92
92
  children: content
93
93
  })
@@ -120,7 +120,7 @@ var AvatarImage = _react.forwardRef.call(void 0, function AvatarImage2({
120
120
  style,
121
121
  ...props
122
122
  }, ref) {
123
- const [styleProps, rest] = _chunkK3AVOT6Lcjs.useStyleProps.call(void 0, props);
123
+ const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
124
124
  const frameStyle = [avatarSheet.image, styleProps, style];
125
125
  if (!animation) return /* @__PURE__ */_jsxruntime.jsx.call(void 0, _reactnative.Image, {
126
126
  ref,
@@ -134,10 +134,10 @@ var AvatarImage = _react.forwardRef.call(void 0, function AvatarImage2({
134
134
  });
135
135
  });
136
136
  AvatarImage.displayName = "XAUI.Avatar.Image";
137
- const _worklet_4663083759544_init_data = {
138
- code: "function chunk2L7FOIWYCjs1(){const{opacity}=this.__closure;return{opacity:opacity.value};}",
139
- location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-2L7FOIWY.cjs",
140
- sourceMap: "{\"version\":3,\"names\":[\"chunk2L7FOIWYCjs1\",\"opacity\",\"__closure\",\"value\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-2L7FOIWY.cjs\"],\"mappings\":\"AAoG+E,SAAAA,iBAAMA,CAAA,QAAAC,OAAA,OAAAC,SAAA,CAE/E,MAAO,CAAED,OAAO,CAAEA,OAAO,CAACE,KAAM,CAAC,CACnC\",\"ignoreList\":[]}"
137
+ const _worklet_4810798062167_init_data = {
138
+ code: "function chunkAP6RVIIKCjs1(){const{opacity}=this.__closure;return{opacity:opacity.value};}",
139
+ location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-AP6RVIIK.cjs",
140
+ sourceMap: "{\"version\":3,\"names\":[\"chunkAP6RVIIKCjs1\",\"opacity\",\"__closure\",\"value\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-AP6RVIIK.cjs\"],\"mappings\":\"AAoG+E,SAAAA,iBAAMA,CAAA,QAAAC,OAAA,OAAAC,SAAA,CAE/E,MAAO,CAAED,OAAO,CAAEA,OAAO,CAACE,KAAM,CAAC,CACnC\",\"ignoreList\":[]}"
141
141
  };
142
142
  var FadingImage = _react.forwardRef.call(void 0, function FadingImage2({
143
143
  onLoad,
@@ -151,26 +151,26 @@ var FadingImage = _react.forwardRef.call(void 0, function FadingImage2({
151
151
  });
152
152
  _optionalChain([onLoad, 'optionalCall', _ => _(event)]);
153
153
  }, [opacity, onLoad]);
154
- const animatedStyle = _reactnativereanimated.useAnimatedStyle.call(void 0, function chunk2L7FOIWYCjs1Factory({
155
- _worklet_4663083759544_init_data,
154
+ const animatedStyle = _reactnativereanimated.useAnimatedStyle.call(void 0, function chunkAP6RVIIKCjs1Factory({
155
+ _worklet_4810798062167_init_data,
156
156
  opacity
157
157
  }) {
158
158
  const _e = [new global.Error(), -2, -27];
159
- const chunk2L7FOIWYCjs1 = function () {
159
+ const chunkAP6RVIIKCjs1 = function () {
160
160
  return {
161
161
  opacity: opacity.value
162
162
  };
163
163
  };
164
- chunk2L7FOIWYCjs1.__closure = {
164
+ chunkAP6RVIIKCjs1.__closure = {
165
165
  opacity
166
166
  };
167
- chunk2L7FOIWYCjs1.__workletHash = 4663083759544;
168
- chunk2L7FOIWYCjs1.__pluginVersion = "0.7.4";
169
- chunk2L7FOIWYCjs1.__initData = _worklet_4663083759544_init_data;
170
- chunk2L7FOIWYCjs1.__stackDetails = _e;
171
- return chunk2L7FOIWYCjs1;
167
+ chunkAP6RVIIKCjs1.__workletHash = 4810798062167;
168
+ chunkAP6RVIIKCjs1.__pluginVersion = "0.7.4";
169
+ chunkAP6RVIIKCjs1.__initData = _worklet_4810798062167_init_data;
170
+ chunkAP6RVIIKCjs1.__stackDetails = _e;
171
+ return chunkAP6RVIIKCjs1;
172
172
  }({
173
- _worklet_4663083759544_init_data,
173
+ _worklet_4810798062167_init_data,
174
174
  opacity
175
175
  }), [opacity]);
176
176
  return /* @__PURE__ */_jsxruntime.jsx.call(void 0, _reactnativereanimated2.default.Image, {
@@ -353,7 +353,7 @@ var AvatarRoot = _react.forwardRef.call(void 0, function Avatar({
353
353
  ...props
354
354
  }, ref) {
355
355
  const theme = _chunk57SJ4LJFcjs.useXAUITheme.call(void 0);
356
- const [styleProps, rest] = _chunkK3AVOT6Lcjs.useStyleProps.call(void 0, props);
356
+ const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
357
357
  const selection = {
358
358
  variant,
359
359
  size,
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-F6W3JQ7K.js";
7
7
  import {
8
8
  PressableFeedback
9
- } from "./chunk-UCW25LL6.js";
9
+ } from "./chunk-UGF35NSE.js";
10
10
  import {
11
11
  usePressState
12
12
  } from "./chunk-423RQBOX.js";
@@ -18,12 +18,12 @@ import {
18
18
  createRecipe,
19
19
  radiusAxis
20
20
  } from "./chunk-4GTAZM2C.js";
21
- import {
22
- useStyleProps
23
- } from "./chunk-OSCW7I4H.js";
24
21
  import {
25
22
  useXAUITheme
26
23
  } from "./chunk-A3EGFI6T.js";
24
+ import {
25
+ useStyleProps
26
+ } from "./chunk-M63GFNKV.js";
27
27
 
28
28
  // src/components/checkbox/checkbox-indicator.tsx
29
29
  import { forwardRef } from "react";
@@ -6,11 +6,11 @@ var _chunkK4TWKF5Ucjs = require('./chunk-K4TWKF5U.cjs');
6
6
  var _chunkFNEUOBCVcjs = require('./chunk-FNEUOBCV.cjs');
7
7
 
8
8
 
9
- var _chunkK3AVOT6Lcjs = require('./chunk-K3AVOT6L.cjs');
10
9
 
10
+ var _chunk57SJ4LJFcjs = require('./chunk-57SJ4LJF.cjs');
11
11
 
12
12
 
13
- var _chunk57SJ4LJFcjs = require('./chunk-57SJ4LJF.cjs');
13
+ var _chunkTK44VBIEcjs = require('./chunk-TK44VBIE.cjs');
14
14
 
15
15
  // src/components/spinner/spinner.tsx
16
16
  var _react = require('react');
@@ -95,7 +95,7 @@ var spinnerRecipe = _chunkFNEUOBCVcjs.createRecipe.call(void 0, {
95
95
  var _jsxruntime = require('react/jsx-runtime');
96
96
  var Spinner = _react.forwardRef.call(void 0, function Spinner2({ variant, size, color, animation = true, style, ...props }, ref) {
97
97
  const theme = _chunk57SJ4LJFcjs.useXAUITheme.call(void 0, );
98
- const [styleProps, rest] = _chunkK3AVOT6Lcjs.useStyleProps.call(void 0, props);
98
+ const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
99
99
  const selection = { variant, size };
100
100
  const styles = spinnerRecipe.resolve({ theme, selection });
101
101
  const tint = color ? spinnerRecipe.tint({ theme, color, selection }) : void 0;