@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
@@ -1,9 +1,29 @@
1
- import {
2
- useStyleProps
3
- } from "./chunk-OSCW7I4H.js";
4
1
  import {
5
2
  useXAUITheme
6
3
  } from "./chunk-A3EGFI6T.js";
4
+ import {
5
+ useStyleProps
6
+ } from "./chunk-M63GFNKV.js";
7
+
8
+ // src/system/icon/chevron-down-icon.tsx
9
+ import { Path, Svg } from "react-native-svg";
10
+ import { jsx } from "react/jsx-runtime";
11
+ function ChevronDownIcon({
12
+ size = 20,
13
+ color = "currentColor"
14
+ }) {
15
+ return /* @__PURE__ */ jsx(Svg, { width: size, height: size, viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ jsx(
16
+ Path,
17
+ {
18
+ d: "m6 9 6 6 6-6",
19
+ stroke: color,
20
+ strokeWidth: 2,
21
+ strokeLinecap: "round",
22
+ strokeLinejoin: "round"
23
+ }
24
+ ) });
25
+ }
26
+ ChevronDownIcon.displayName = "XAUI.ChevronDownIcon";
7
27
 
8
28
  // src/system/icon/icon-context.ts
9
29
  import { createContext, useContext } from "react";
@@ -16,7 +36,7 @@ function useIconContext() {
16
36
  // src/system/icon/icon.tsx
17
37
  import { cloneElement, isValidElement } from "react";
18
38
  import { Image } from "react-native";
19
- import { jsx } from "react/jsx-runtime";
39
+ import { jsx as jsx2 } from "react/jsx-runtime";
20
40
  function Icon(props) {
21
41
  const inherited = useIconContext();
22
42
  const theme = useXAUITheme();
@@ -24,7 +44,7 @@ function Icon(props) {
24
44
  const color = props.color ?? inherited.color ?? theme.colors.foreground;
25
45
  if (props.as) {
26
46
  const Component = props.as;
27
- return /* @__PURE__ */ jsx(Component, { size, color });
47
+ return /* @__PURE__ */ jsx2(Component, { size, color });
28
48
  }
29
49
  if (isValidElement(props.children)) {
30
50
  return cloneElement(props.children, {
@@ -33,7 +53,7 @@ function Icon(props) {
33
53
  color
34
54
  });
35
55
  }
36
- if (props.source) return /* @__PURE__ */ jsx(IconImage, { ...props, resolved: { size, color } });
56
+ if (props.source) return /* @__PURE__ */ jsx2(IconImage, { ...props, resolved: { size, color } });
37
57
  throw new Error(
38
58
  "XAUI: Icon needs one of `as` (an icon component), a raw SVG element as its child, or `source` (an image). It renders nothing on its own."
39
59
  );
@@ -48,7 +68,7 @@ function IconImage({
48
68
  ...props
49
69
  }) {
50
70
  const [styleProps] = useStyleProps(props);
51
- return /* @__PURE__ */ jsx(
71
+ return /* @__PURE__ */ jsx2(
52
72
  Image,
53
73
  {
54
74
  source,
@@ -62,6 +82,7 @@ function IconImage({
62
82
  }
63
83
 
64
84
  export {
85
+ ChevronDownIcon,
65
86
  IconContext,
66
87
  useIconContext,
67
88
  Icon
@@ -1,25 +1,25 @@
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
  Slot,
10
10
  childrenToString,
11
11
  createSlotContext
12
- } from "./chunk-YXPYOOHU.js";
12
+ } from "./chunk-K72UDPVN.js";
13
13
  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,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunk2SCE7TFZcjs = require('./chunk-2SCE7TFZ.cjs');
3
+ var _chunkTGMVEHV7cjs = require('./chunk-TGMVEHV7.cjs');
4
4
 
5
5
 
6
6
  var _chunk7DPL3ZDScjs = require('./chunk-7DPL3ZDS.cjs');
@@ -11,16 +11,16 @@ var _chunkEJQCQPETcjs = require('./chunk-EJQCQPET.cjs');
11
11
 
12
12
 
13
13
 
14
- var _chunk54FJOKANcjs = require('./chunk-54FJOKAN.cjs');
14
+ var _chunk7GHM4GKLcjs = require('./chunk-7GHM4GKL.cjs');
15
15
 
16
16
 
17
17
  var _chunkFNEUOBCVcjs = require('./chunk-FNEUOBCV.cjs');
18
18
 
19
19
 
20
- var _chunkK3AVOT6Lcjs = require('./chunk-K3AVOT6L.cjs');
20
+ var _chunk57SJ4LJFcjs = require('./chunk-57SJ4LJF.cjs');
21
21
 
22
22
 
23
- var _chunk57SJ4LJFcjs = require('./chunk-57SJ4LJF.cjs');
23
+ var _chunkTK44VBIEcjs = require('./chunk-TK44VBIE.cjs');
24
24
 
25
25
  // src/components/card/card-background.tsx
26
26
  var _react = require('react');
@@ -50,7 +50,7 @@ function partitionBackground(children) {
50
50
  }
51
51
 
52
52
  // src/components/card/card.context.ts
53
- var [CardProvider, useCard] = _chunk54FJOKANcjs.createSlotContext.call(void 0, "Card");
53
+ var [CardProvider, useCard] = _chunk7GHM4GKLcjs.createSlotContext.call(void 0, "Card");
54
54
 
55
55
  // src/components/card/card.style.ts
56
56
 
@@ -63,7 +63,7 @@ var _jsxruntime = require('react/jsx-runtime');
63
63
  var CardBackground = markBackground(
64
64
  _react.forwardRef.call(void 0, function CardBackground2({ children, source, style, ...props }, ref) {
65
65
  const { backgroundStyle } = useCard();
66
- const [styleProps, rest] = _chunkK3AVOT6Lcjs.useStyleProps.call(void 0, props);
66
+ const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
67
67
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
68
68
  _reactnative.View,
69
69
  {
@@ -85,7 +85,7 @@ CardBackground.displayName = "XAUI.Card.Background";
85
85
 
86
86
  var CardBody = _react.forwardRef.call(void 0, function CardBody2({ children, style, ...props }, ref) {
87
87
  const { bodyStyle } = useCard();
88
- const [styleProps, rest] = _chunkK3AVOT6Lcjs.useStyleProps.call(void 0, props);
88
+ const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
89
89
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { ref, style: [bodyStyle, styleProps, style], ...rest, children });
90
90
  });
91
91
  CardBody.displayName = "XAUI.Card.Body";
@@ -97,7 +97,7 @@ CardBody.displayName = "XAUI.Card.Body";
97
97
  var CardDescription = _react.forwardRef.call(void 0,
98
98
  function CardDescription2({ children, style, ...props }, ref) {
99
99
  const { descriptionStyle } = useCard();
100
- const [styleProps, rest] = _chunkK3AVOT6Lcjs.useStyleProps.call(void 0, props);
100
+ const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
101
101
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { ref, style: [descriptionStyle, styleProps, style], ...rest, children });
102
102
  }
103
103
  );
@@ -109,7 +109,7 @@ CardDescription.displayName = "XAUI.Card.Description";
109
109
 
110
110
  var CardFooter = _react.forwardRef.call(void 0, function CardFooter2({ children, style, ...props }, ref) {
111
111
  const { footerStyle } = useCard();
112
- const [styleProps, rest] = _chunkK3AVOT6Lcjs.useStyleProps.call(void 0, props);
112
+ const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
113
113
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { ref, style: [footerStyle, styleProps, style], ...rest, children });
114
114
  });
115
115
  CardFooter.displayName = "XAUI.Card.Footer";
@@ -120,7 +120,7 @@ CardFooter.displayName = "XAUI.Card.Footer";
120
120
 
121
121
  var CardHeader = _react.forwardRef.call(void 0, function CardHeader2({ children, style, ...props }, ref) {
122
122
  const { headerStyle } = useCard();
123
- const [styleProps, rest] = _chunkK3AVOT6Lcjs.useStyleProps.call(void 0, props);
123
+ const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
124
124
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { ref, style: [headerStyle, styleProps, style], ...rest, children });
125
125
  });
126
126
  CardHeader.displayName = "XAUI.Card.Header";
@@ -131,7 +131,7 @@ CardHeader.displayName = "XAUI.Card.Header";
131
131
 
132
132
  var CardTitle = _react.forwardRef.call(void 0, function CardTitle2({ children, style, ...props }, ref) {
133
133
  const { titleStyle } = useCard();
134
- const [styleProps, rest] = _chunkK3AVOT6Lcjs.useStyleProps.call(void 0, props);
134
+ const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
135
135
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { ref, style: [titleStyle, styleProps, style], ...rest, children });
136
136
  });
137
137
  CardTitle.displayName = "XAUI.Card.Title";
@@ -351,7 +351,7 @@ var CardRoot = _react.forwardRef.call(void 0, function Card({
351
351
  ...props
352
352
  }, ref) {
353
353
  const theme = _chunk57SJ4LJFcjs.useXAUITheme.call(void 0, );
354
- const [styleProps, rest] = _chunkK3AVOT6Lcjs.useStyleProps.call(void 0, props);
354
+ const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
355
355
  const [isPressed, press] = _chunk7DPL3ZDScjs.usePressState.call(void 0, { onPressIn, onPressOut });
356
356
  const selection = { variant, size, radius };
357
357
  const states = { disabled: isDisabled };
@@ -375,7 +375,7 @@ var CardRoot = _react.forwardRef.call(void 0, function Card({
375
375
  styleProps,
376
376
  typeof style === "function" ? style({ pressed: isPressed }) : style
377
377
  ];
378
- const text = _chunk54FJOKANcjs.childrenToString.call(void 0, children);
378
+ const text = _chunk7GHM4GKLcjs.childrenToString.call(void 0, children);
379
379
  const content = text !== null ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardDescription, { children: text }) : children;
380
380
  if (!isPressable && !asChild && (onPressIn || onPressOut || rest.onPress || rest.onLongPress)) {
381
381
  _chunkEJQCQPETcjs.warnDev.call(void 0,
@@ -388,7 +388,7 @@ var CardRoot = _react.forwardRef.call(void 0, function Card({
388
388
  body
389
389
  ] });
390
390
  const surface = isPressable ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
391
- _chunk2SCE7TFZcjs.PressableFeedback,
391
+ _chunkTGMVEHV7cjs.PressableFeedback,
392
392
  {
393
393
  ref,
394
394
  isPressed,
@@ -403,7 +403,7 @@ var CardRoot = _react.forwardRef.call(void 0, function Card({
403
403
  onPressOut: press.onPressOut,
404
404
  children: asChild ? children : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
405
405
  background,
406
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2SCE7TFZcjs.PressableFeedback.Highlight, {}),
406
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTGMVEHV7cjs.PressableFeedback.Highlight, {}),
407
407
  body
408
408
  ] })
409
409
  }
@@ -411,7 +411,7 @@ var CardRoot = _react.forwardRef.call(void 0, function Card({
411
411
  // R12 — the caller's element is the card, so it takes the children it was written
412
412
  // with and the auto-wrap does not apply.
413
413
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
414
- _chunk54FJOKANcjs.Slot,
414
+ _chunk7GHM4GKLcjs.Slot,
415
415
  {
416
416
  ref,
417
417
  accessibilityRole,
@@ -1,6 +1,6 @@
1
1
  import { createRecipe, radiusAxis } from "./chunk-4GTAZM2C.js";
2
- import { useStyleProps } from "./chunk-OSCW7I4H.js";
3
2
  import { useXAUITheme } from "./chunk-A3EGFI6T.js";
3
+ import { useStyleProps } from "./chunk-M63GFNKV.js";
4
4
 
5
5
  // src/components/skeleton/skeleton.tsx
6
6
  import { forwardRef, useEffect } from "react";
@@ -100,10 +100,10 @@ var Skeleton = forwardRef(function Skeleton2({
100
100
  });
101
101
  });
102
102
  Skeleton.displayName = "XAUI.Skeleton";
103
- const _worklet_13110416509490_init_data = {
104
- code: "function chunkVWATEE5OJs1(){const{opacity}=this.__closure;return{opacity:opacity.value};}",
105
- location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-VWATEE5O.js",
106
- sourceMap: "{\"version\":3,\"names\":[\"chunkVWATEE5OJs1\",\"opacity\",\"__closure\",\"value\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-VWATEE5O.js\"],\"mappings\":\"AAyF2C,SAAAA,gBAAMA,CAAA,QAAAC,OAAA,OAAAC,SAAA,CAE3C,MAAO,CAAED,OAAO,CAAEA,OAAO,CAACE,KAAM,CAAC,CACnC\",\"ignoreList\":[]}"
103
+ const _worklet_948977267547_init_data = {
104
+ code: "function chunkIKJVLJKTJs1(){const{opacity}=this.__closure;return{opacity:opacity.value};}",
105
+ location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-IKJVLJKT.js",
106
+ sourceMap: "{\"version\":3,\"names\":[\"chunkIKJVLJKTJs1\",\"opacity\",\"__closure\",\"value\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-IKJVLJKT.js\"],\"mappings\":\"AAyF2C,SAAAA,gBAAMA,CAAA,QAAAC,OAAA,OAAAC,SAAA,CAE3C,MAAO,CAAED,OAAO,CAAEA,OAAO,CAACE,KAAM,CAAC,CACnC\",\"ignoreList\":[]}"
107
107
  };
108
108
  var PulsingBlock = forwardRef(function PulsingBlock2({
109
109
  style,
@@ -119,26 +119,26 @@ var PulsingBlock = forwardRef(function PulsingBlock2({
119
119
  true);
120
120
  return () => cancelAnimation(opacity);
121
121
  }, [opacity]);
122
- const animatedStyle = useAnimatedStyle(function chunkVWATEE5OJs1Factory({
123
- _worklet_13110416509490_init_data,
122
+ const animatedStyle = useAnimatedStyle(function chunkIKJVLJKTJs1Factory({
123
+ _worklet_948977267547_init_data,
124
124
  opacity
125
125
  }) {
126
126
  const _e = [new global.Error(), -2, -27];
127
- const chunkVWATEE5OJs1 = function () {
127
+ const chunkIKJVLJKTJs1 = function () {
128
128
  return {
129
129
  opacity: opacity.value
130
130
  };
131
131
  };
132
- chunkVWATEE5OJs1.__closure = {
132
+ chunkIKJVLJKTJs1.__closure = {
133
133
  opacity
134
134
  };
135
- chunkVWATEE5OJs1.__workletHash = 13110416509490;
136
- chunkVWATEE5OJs1.__pluginVersion = "0.7.4";
137
- chunkVWATEE5OJs1.__initData = _worklet_13110416509490_init_data;
138
- chunkVWATEE5OJs1.__stackDetails = _e;
139
- return chunkVWATEE5OJs1;
135
+ chunkIKJVLJKTJs1.__workletHash = 948977267547;
136
+ chunkIKJVLJKTJs1.__pluginVersion = "0.7.4";
137
+ chunkIKJVLJKTJs1.__initData = _worklet_948977267547_init_data;
138
+ chunkIKJVLJKTJs1.__stackDetails = _e;
139
+ return chunkIKJVLJKTJs1;
140
140
  }({
141
- _worklet_13110416509490_init_data,
141
+ _worklet_948977267547_init_data,
142
142
  opacity
143
143
  }), [opacity]);
144
144
  return /* @__PURE__ */jsx(Animated.View, {
@@ -2,6 +2,29 @@ import {
2
2
  mergeRefs
3
3
  } from "./chunk-36PRYGAM.js";
4
4
 
5
+ // src/system/slot/children-to-string.ts
6
+ import { isValidElement } from "react";
7
+ function childrenToString(children) {
8
+ const text = stringify(children);
9
+ return text === null || text === "" ? null : text;
10
+ }
11
+ function stringify(node) {
12
+ if (node === null || node === void 0 || typeof node === "boolean") return "";
13
+ if (typeof node === "string") return node;
14
+ if (typeof node === "number") return String(node);
15
+ if (isValidElement(node)) return null;
16
+ if (Array.isArray(node)) {
17
+ let text = "";
18
+ for (const child of node) {
19
+ const part = stringify(child);
20
+ if (part === null) return null;
21
+ text += part;
22
+ }
23
+ return text;
24
+ }
25
+ return null;
26
+ }
27
+
5
28
  // src/system/slot/create-slot-context.ts
6
29
  import { createContext, useContext } from "react";
7
30
  function createSlotContext(name) {
@@ -69,9 +92,9 @@ function resolveStyle(style, state) {
69
92
  }
70
93
 
71
94
  // src/system/slot/slot.tsx
72
- import { cloneElement, forwardRef, isValidElement } from "react";
95
+ import { cloneElement, forwardRef, isValidElement as isValidElement2 } from "react";
73
96
  var Slot = forwardRef(function Slot2({ children, ...ours }, ref) {
74
- if (!isValidElement(children)) {
97
+ if (!isValidElement2(children)) {
75
98
  throw new Error(
76
99
  "XAUI: asChild expects exactly one React element as its child, and merges the component's props into it. Text, a fragment, several children or none give it nothing to merge into \u2014 drop `asChild` to render the component itself."
77
100
  );
@@ -88,32 +111,9 @@ function refOf(element) {
88
111
  return fromProps ?? fromElement;
89
112
  }
90
113
 
91
- // src/system/slot/children-to-string.ts
92
- import { isValidElement as isValidElement2 } from "react";
93
- function childrenToString(children) {
94
- const text = stringify(children);
95
- return text === null || text === "" ? null : text;
96
- }
97
- function stringify(node) {
98
- if (node === null || node === void 0 || typeof node === "boolean") return "";
99
- if (typeof node === "string") return node;
100
- if (typeof node === "number") return String(node);
101
- if (isValidElement2(node)) return null;
102
- if (Array.isArray(node)) {
103
- let text = "";
104
- for (const child of node) {
105
- const part = stringify(child);
106
- if (part === null) return null;
107
- text += part;
108
- }
109
- return text;
110
- }
111
- return null;
112
- }
113
-
114
114
  export {
115
+ childrenToString,
115
116
  createSlotContext,
116
117
  mergeProps,
117
- Slot,
118
- childrenToString
118
+ Slot
119
119
  };
@@ -1,15 +1,15 @@
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 _chunk54FJOKANcjs = require('./chunk-54FJOKAN.cjs');
3
+ var _chunk7GHM4GKLcjs = require('./chunk-7GHM4GKL.cjs');
4
4
 
5
5
 
6
6
  var _chunkFNEUOBCVcjs = require('./chunk-FNEUOBCV.cjs');
7
7
 
8
8
 
9
- var _chunkK3AVOT6Lcjs = require('./chunk-K3AVOT6L.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/divider/divider.tsx
15
15
  var _react = require('react');
@@ -67,11 +67,11 @@ var dividerRecipe = _chunkFNEUOBCVcjs.createRecipe.call(void 0, {
67
67
  var _jsxruntime = require('react/jsx-runtime');
68
68
  var Divider = _react.forwardRef.call(void 0, function Divider2({ children, orientation, size, color, asChild = false, style, ...props }, ref) {
69
69
  const theme = _chunk57SJ4LJFcjs.useXAUITheme.call(void 0, );
70
- const [styleProps, rest] = _chunkK3AVOT6Lcjs.useStyleProps.call(void 0, props);
70
+ const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
71
71
  const selection = { orientation, size };
72
72
  const styles = dividerRecipe.resolve({ theme, selection });
73
73
  const tint = color ? dividerRecipe.tint({ theme, color, selection }) : void 0;
74
- const Root = asChild ? _chunk54FJOKANcjs.Slot : _reactnative.View;
74
+ const Root = asChild ? _chunk7GHM4GKLcjs.Slot : _reactnative.View;
75
75
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
76
76
  Root,
77
77
  {