@xaui/native 0.9.1-alpha.29 → 0.9.1-alpha.30

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 (110) hide show
  1. package/dist/{chunk-XYFMSRNJ.js → chunk-27ZRTZEE.js} +14 -10
  2. package/dist/{chunk-ICR42HHG.js → chunk-3FV4COTM.js} +3 -3
  3. package/dist/chunk-423RQBOX.js +21 -0
  4. package/dist/{chunk-TFNB2PNI.cjs → chunk-4XPLPQLM.cjs} +13 -11
  5. package/dist/{chunk-APONC4DB.cjs → chunk-5GO7MAVY.cjs} +12 -10
  6. package/dist/{chunk-AQNWXJYV.cjs → chunk-5RQ7AZPN.cjs} +20 -16
  7. package/dist/{chunk-FFEUGWVA.cjs → chunk-5Z4P6WHR.cjs} +11 -9
  8. package/dist/{chunk-L3Q5TVYE.js → chunk-6RVCGLKZ.js} +60 -58
  9. package/dist/chunk-7DPL3ZDS.cjs +21 -0
  10. package/dist/{chunk-Y4BPKSD3.js → chunk-7SEZGVTY.js} +1 -1
  11. package/dist/chunk-7XKQJQF2.cjs +70 -0
  12. package/dist/{chunk-7BOFQN2G.js → chunk-A5OCK3C2.js} +7 -5
  13. package/dist/{chunk-4HELPMAK.js → chunk-BFMTUMTU.js} +81 -101
  14. package/dist/chunk-BVJQ3UPZ.js +62 -0
  15. package/dist/{chunk-NG4GFBDR.js → chunk-DFME724B.js} +8 -6
  16. package/dist/chunk-E2CWBQTV.js +119 -0
  17. package/dist/chunk-E4TS6632.cjs +314 -0
  18. package/dist/{chunk-VUEDYW3M.js → chunk-FMZQW35T.js} +15 -11
  19. package/dist/{chunk-OYZYWWJ6.js → chunk-G7K652GC.js} +4 -2
  20. package/dist/{chunk-YGOXQSNU.js → chunk-GI24YJPE.js} +100 -206
  21. package/dist/chunk-GLGU2WFL.cjs +190 -0
  22. package/dist/{chunk-IG4Q3WQO.cjs → chunk-GPVNCJ3Z.cjs} +74 -95
  23. package/dist/{chunk-D4SOU26X.js → chunk-GVQOD3VW.js} +5 -3
  24. package/dist/chunk-KOC3KQIT.js +124 -0
  25. package/dist/chunk-KPWZLUES.cjs +124 -0
  26. package/dist/{chunk-SVRZJEDU.cjs → chunk-KWCHSIMI.cjs} +16 -12
  27. package/dist/{chunk-GCU5A5MM.cjs → chunk-N527BTY4.cjs} +17 -15
  28. package/dist/{chunk-F3H4TXAY.cjs → chunk-NBFWWQFW.cjs} +16 -12
  29. package/dist/{chunk-HOIQRGSK.js → chunk-NYRXUGVL.js} +6 -4
  30. package/dist/{chunk-V56334S3.js → chunk-Q3WFY5N3.js} +9 -7
  31. package/dist/{chunk-FXHRNUCS.cjs → chunk-QGN2BBJO.cjs} +8 -6
  32. package/dist/{chunk-J2JJLKLG.cjs → chunk-TGZZ3RZU.cjs} +7 -5
  33. package/dist/{chunk-YWBTIWT5.cjs → chunk-UBQLKIZC.cjs} +22 -18
  34. package/dist/{chunk-PMO62QK4.js → chunk-URSKA2VR.js} +1 -114
  35. package/dist/{chunk-A4RGJBP2.js → chunk-V4WDMM6Z.js} +5 -3
  36. package/dist/{chunk-FDSQOPJH.js → chunk-VJEER76X.js} +11 -7
  37. package/dist/{chunk-O5KDIEDH.cjs → chunk-VZBWYWEI.cjs} +25 -24
  38. package/dist/{chunk-B4W2XNBP.cjs → chunk-WR7YLDVV.cjs} +3 -3
  39. package/dist/{chunk-5RFRASSB.js → chunk-X4HQ4H2V.js} +16 -15
  40. package/dist/{chunk-IBEX4XGV.cjs → chunk-XFSW3ZNI.cjs} +13 -11
  41. package/dist/{chunk-VZGBEGDV.cjs → chunk-XQFAUDR2.cjs} +2 -2
  42. package/dist/{chunk-V3KS5PPK.js → chunk-YKL6XHM6.js} +14 -10
  43. package/dist/{chunk-HUZ4AUM2.cjs → chunk-ZP2E2H2G.cjs} +4 -188
  44. package/dist/{chunk-RZC4VFB5.cjs → chunk-ZSLNGBDS.cjs} +68 -66
  45. package/dist/components/alert/index.cjs +8 -6
  46. package/dist/components/alert/index.d.cts +2 -2
  47. package/dist/components/alert/index.d.ts +2 -2
  48. package/dist/components/alert/index.js +7 -5
  49. package/dist/components/button/index.cjs +9 -5
  50. package/dist/components/button/index.d.cts +9 -4
  51. package/dist/components/button/index.d.ts +9 -4
  52. package/dist/components/button/index.js +8 -4
  53. package/dist/components/card/index.cjs +6 -4
  54. package/dist/components/card/index.d.cts +1 -1
  55. package/dist/components/card/index.d.ts +1 -1
  56. package/dist/components/card/index.js +5 -3
  57. package/dist/components/checkbox/index.cjs +7 -5
  58. package/dist/components/checkbox/index.d.cts +1 -1
  59. package/dist/components/checkbox/index.d.ts +1 -1
  60. package/dist/components/checkbox/index.js +6 -4
  61. package/dist/components/chip/index.cjs +8 -6
  62. package/dist/components/chip/index.d.cts +2 -2
  63. package/dist/components/chip/index.d.ts +2 -2
  64. package/dist/components/chip/index.js +7 -5
  65. package/dist/components/input/index.cjs +4 -3
  66. package/dist/components/input/index.d.cts +1 -1
  67. package/dist/components/input/index.d.ts +1 -1
  68. package/dist/components/input/index.js +3 -2
  69. package/dist/components/input-group/index.cjs +6 -5
  70. package/dist/components/input-group/index.d.cts +1 -1
  71. package/dist/components/input-group/index.d.ts +1 -1
  72. package/dist/components/input-group/index.js +5 -4
  73. package/dist/components/input-otp/index.cjs +4 -3
  74. package/dist/components/input-otp/index.d.cts +2 -2
  75. package/dist/components/input-otp/index.d.ts +2 -2
  76. package/dist/components/input-otp/index.js +3 -2
  77. package/dist/components/radio/index.cjs +7 -5
  78. package/dist/components/radio/index.d.cts +1 -1
  79. package/dist/components/radio/index.d.ts +1 -1
  80. package/dist/components/radio/index.js +6 -4
  81. package/dist/components/spinner/index.cjs +16 -0
  82. package/dist/components/spinner/index.d.cts +104 -0
  83. package/dist/components/spinner/index.d.ts +104 -0
  84. package/dist/components/spinner/index.js +16 -0
  85. package/dist/components/switch/index.cjs +6 -4
  86. package/dist/components/switch/index.d.cts +1 -1
  87. package/dist/components/switch/index.d.ts +1 -1
  88. package/dist/components/switch/index.js +5 -3
  89. package/dist/components/text-area/index.cjs +5 -4
  90. package/dist/components/text-area/index.js +4 -3
  91. package/dist/components/typography/index.cjs +4 -3
  92. package/dist/components/typography/index.d.cts +1 -1
  93. package/dist/components/typography/index.d.ts +1 -1
  94. package/dist/components/typography/index.js +3 -2
  95. package/dist/components/view/index.cjs +4 -3
  96. package/dist/components/view/index.js +3 -2
  97. package/dist/{create-recipe-DUo8doTt.d.ts → create-recipe-BdVd2ffi.d.ts} +1 -1
  98. package/dist/{create-recipe-CWvI5ot3.d.cts → create-recipe-dC7wMfnj.d.cts} +1 -1
  99. package/dist/{icon.type-Dq4_qePa.d.ts → icon.type-Kml72iSz.d.ts} +1 -1
  100. package/dist/{icon.type-CF4KiMKl.d.cts → icon.type-d_i9ma-i.d.cts} +1 -1
  101. package/dist/index.cjs +39 -37
  102. package/dist/index.d.cts +24 -4
  103. package/dist/index.d.ts +24 -4
  104. package/dist/index.js +73 -71
  105. package/dist/system/index.cjs +11 -8
  106. package/dist/system/index.d.cts +4 -4
  107. package/dist/system/index.d.ts +4 -4
  108. package/dist/system/index.js +11 -8
  109. package/package.json +11 -1
  110. package/dist/chunk-E25JH7W2.cjs +0 -456
@@ -1,25 +1,29 @@
1
- import {
2
- useControllableState
3
- } from "./chunk-F6W3JQ7K.js";
4
1
  import {
5
2
  SelectionFill
6
3
  } from "./chunk-BA2DBSAN.js";
7
4
  import {
8
- PressableFeedback,
5
+ PressableFeedback
6
+ } from "./chunk-BFMTUMTU.js";
7
+ import {
9
8
  usePressState
10
- } from "./chunk-4HELPMAK.js";
9
+ } from "./chunk-423RQBOX.js";
10
+ import {
11
+ useControllableState
12
+ } from "./chunk-F6W3JQ7K.js";
11
13
  import {
12
14
  createRecipe,
13
15
  radiusAxis
14
16
  } from "./chunk-4GTAZM2C.js";
15
- import {
16
- childrenToString,
17
- createSlotContext,
18
- useStyleProps
19
- } from "./chunk-PMO62QK4.js";
20
17
  import {
21
18
  useXAUITheme
22
19
  } from "./chunk-A3EGFI6T.js";
20
+ import {
21
+ childrenToString,
22
+ createSlotContext
23
+ } from "./chunk-E2CWBQTV.js";
24
+ import {
25
+ useStyleProps
26
+ } from "./chunk-URSKA2VR.js";
23
27
 
24
28
  // src/components/radio/radio-indicator.tsx
25
29
  import { forwardRef } from "react";
@@ -1,9 +1,9 @@
1
- import {
2
- useStyleProps
3
- } from "./chunk-PMO62QK4.js";
4
1
  import {
5
2
  useXAUITheme
6
3
  } from "./chunk-A3EGFI6T.js";
4
+ import {
5
+ useStyleProps
6
+ } from "./chunk-URSKA2VR.js";
7
7
 
8
8
  // src/system/icon/icon-context.ts
9
9
  import { createContext, useContext } from "react";
@@ -0,0 +1,21 @@
1
+ // src/hooks/use-press-state.ts
2
+ import { useCallback, useRef, useState } from "react";
3
+ function usePressState(handlers = {}) {
4
+ const [isPressed, setIsPressed] = useState(false);
5
+ const latest = useRef(handlers);
6
+ latest.current = handlers;
7
+ const onPressIn = useCallback((event) => {
8
+ setIsPressed(true);
9
+ latest.current.onPressIn?.(event);
10
+ }, []);
11
+ const onPressOut = useCallback((event) => {
12
+ setIsPressed(false);
13
+ latest.current.onPressOut?.(event);
14
+ }, []);
15
+ const press = useRef({ onPressIn, onPressOut }).current;
16
+ return [isPressed, press];
17
+ }
18
+
19
+ export {
20
+ usePressState
21
+ };
@@ -1,21 +1,23 @@
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 _chunkB4W2XNBPcjs = require('./chunk-B4W2XNBP.cjs');
4
3
 
4
+ var _chunk5Z4P6WHRcjs = require('./chunk-5Z4P6WHR.cjs');
5
5
 
6
6
 
7
- var _chunkFFEUGWVAcjs = require('./chunk-FFEUGWVA.cjs');
7
+ var _chunkWR7YLDVVcjs = require('./chunk-WR7YLDVV.cjs');
8
8
 
9
9
 
10
10
 
11
+ var _chunkZP2E2H2Gcjs = require('./chunk-ZP2E2H2G.cjs');
11
12
 
12
- var _chunkHUZ4AUM2cjs = require('./chunk-HUZ4AUM2.cjs');
13
+
14
+ var _chunkGLGU2WFLcjs = require('./chunk-GLGU2WFL.cjs');
13
15
 
14
16
  // src/components/input-group/input-group-field.tsx
15
17
  var _react = require('react');
16
18
 
17
19
  // src/components/input-group/input-group.context.ts
18
- var [InputGroupProvider, useInputGroup] = _chunkHUZ4AUM2cjs.createSlotContext.call(void 0, "InputGroup");
20
+ var [InputGroupProvider, useInputGroup] = _chunkZP2E2H2Gcjs.createSlotContext.call(void 0, "InputGroup");
19
21
 
20
22
  // src/components/input-group/input-group.utils.ts
21
23
  function decoratorPadding(prefixWidth, suffixWidth) {
@@ -34,7 +36,7 @@ var InputGroupField = _react.forwardRef.call(void 0,
34
36
  () => decoratorPadding(prefixWidth, suffixWidth),
35
37
  [prefixWidth, suffixWidth]
36
38
  );
37
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFFEUGWVAcjs.InputField, { ref, ...props, style: [padding, style] });
39
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5Z4P6WHRcjs.InputField, { ref, ...props, style: [padding, style] });
38
40
  }
39
41
  );
40
42
  InputGroupField.displayName = "XAUI.InputGroup.Field";
@@ -42,8 +44,8 @@ InputGroupField.displayName = "XAUI.InputGroup.Field";
42
44
  // src/components/input-group/input-group-icon.tsx
43
45
 
44
46
  function InputGroupIcon({ size, color, ...rest }) {
45
- const { icon } = _chunkFFEUGWVAcjs.useInput.call(void 0, );
46
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkB4W2XNBPcjs.Icon, { size: _nullishCoalesce(size, () => ( icon.size)), color: _nullishCoalesce(color, () => ( icon.color)), ...rest });
47
+ const { icon } = _chunk5Z4P6WHRcjs.useInput.call(void 0, );
48
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWR7YLDVVcjs.Icon, { size: _nullishCoalesce(size, () => ( icon.size)), color: _nullishCoalesce(color, () => ( icon.color)), ...rest });
47
49
  }
48
50
  InputGroupIcon.displayName = "XAUI.InputGroup.Icon";
49
51
 
@@ -56,9 +58,9 @@ var _reactnative = require('react-native');
56
58
 
57
59
  var InputGroupDecorator = _react.forwardRef.call(void 0,
58
60
  function InputGroupDecorator2({ side, children, isDecorative = false, onLayout, style, ...props }, ref) {
59
- const { prefixStyle, suffixStyle, isDisabled } = _chunkFFEUGWVAcjs.useInput.call(void 0, );
61
+ const { prefixStyle, suffixStyle, isDisabled } = _chunk5Z4P6WHRcjs.useInput.call(void 0, );
60
62
  const { setPrefixWidth, setSuffixWidth } = useInputGroup();
61
- const [styleProps, rest] = _chunkHUZ4AUM2cjs.useStyleProps.call(void 0, props);
63
+ const [styleProps, rest] = _chunkGLGU2WFLcjs.useStyleProps.call(void 0, props);
62
64
  const report = side === "prefix" ? setPrefixWidth : setSuffixWidth;
63
65
  const handleLayout = _react.useCallback.call(void 0,
64
66
  (event) => {
@@ -109,7 +111,7 @@ InputGroupSuffix.displayName = "XAUI.InputGroup.Suffix";
109
111
 
110
112
 
111
113
  var InputGroupRoot = _react.forwardRef.call(void 0, function InputGroup({ children, asChild = false, style, ...props }, ref) {
112
- const [styleProps, rest] = _chunkHUZ4AUM2cjs.useStyleProps.call(void 0, props);
114
+ const [styleProps, rest] = _chunkGLGU2WFLcjs.useStyleProps.call(void 0, props);
113
115
  const [prefixWidth, setPrefixWidth] = _react.useState.call(void 0, 0);
114
116
  const [suffixWidth, setSuffixWidth] = _react.useState.call(void 0, 0);
115
117
  const context = _react.useMemo.call(void 0,
@@ -119,7 +121,7 @@ var InputGroupRoot = _react.forwardRef.call(void 0, function InputGroup({ childr
119
121
  const rootStyle = [styleProps, style];
120
122
  const surface = asChild ? (
121
123
  // R12 — the caller's element *is* the row.
122
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHUZ4AUM2cjs.Slot, { ref, ...rest, style: rootStyle, children })
124
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZP2E2H2Gcjs.Slot, { ref, ...rest, style: rootStyle, children })
123
125
  ) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { ref, ...rest, style: rootStyle, children });
124
126
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, InputGroupProvider, { value: context, children: surface });
125
127
  });
@@ -5,25 +5,27 @@
5
5
 
6
6
 
7
7
 
8
- var _chunkFFEUGWVAcjs = require('./chunk-FFEUGWVA.cjs');
8
+ var _chunk5Z4P6WHRcjs = require('./chunk-5Z4P6WHR.cjs');
9
9
 
10
10
 
11
+ var _chunkZP2E2H2Gcjs = require('./chunk-ZP2E2H2G.cjs');
11
12
 
12
- var _chunkHUZ4AUM2cjs = require('./chunk-HUZ4AUM2.cjs');
13
+
14
+ var _chunkGLGU2WFLcjs = require('./chunk-GLGU2WFL.cjs');
13
15
 
14
16
  // src/components/text-area/text-area-field.tsx
15
17
  var _react = require('react');
16
18
 
17
19
  // src/components/text-area/text-area.context.ts
18
- var [TextAreaProvider, useTextArea] = _chunkHUZ4AUM2cjs.createSlotContext.call(void 0, "TextArea");
20
+ var [TextAreaProvider, useTextArea] = _chunkZP2E2H2Gcjs.createSlotContext.call(void 0, "TextArea");
19
21
 
20
22
  // src/components/text-area/text-area-field.tsx
21
23
  var _jsxruntime = require('react/jsx-runtime');
22
24
  var TextAreaField = _react.forwardRef.call(void 0,
23
25
  function TextAreaField2({ style, scrollEnabled, ...props }, ref) {
24
- const { textAreaStyle, textArea } = _chunkFFEUGWVAcjs.useInput.call(void 0, );
26
+ const { textAreaStyle, textArea } = _chunk5Z4P6WHRcjs.useInput.call(void 0, );
25
27
  const { rows, maxRows } = useTextArea();
26
- const [styleProps, rest] = _chunkHUZ4AUM2cjs.useStyleProps.call(void 0, props);
28
+ const [styleProps, rest] = _chunkGLGU2WFLcjs.useStyleProps.call(void 0, props);
27
29
  const height = _react.useMemo.call(void 0, () => {
28
30
  const chrome = textArea.paddingVertical * 2;
29
31
  return {
@@ -35,7 +37,7 @@ var TextAreaField = _react.forwardRef.call(void 0,
35
37
  };
36
38
  }, [rows, maxRows, textArea]);
37
39
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
38
- _chunkFFEUGWVAcjs.InputField,
40
+ _chunk5Z4P6WHRcjs.InputField,
39
41
  {
40
42
  ref,
41
43
  multiline: true,
@@ -54,16 +56,16 @@ TextAreaField.displayName = "XAUI.TextArea.Field";
54
56
  var DEFAULT_ROWS = 3;
55
57
  var TextAreaRoot = _react.forwardRef.call(void 0, function TextArea({ rows = DEFAULT_ROWS, maxRows, children, ...props }, ref) {
56
58
  const context = _react.useMemo.call(void 0, () => ({ rows, maxRows }), [rows, maxRows]);
57
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TextAreaProvider, { value: context, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFFEUGWVAcjs.InputRoot, { ref, ...props, children }) });
59
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TextAreaProvider, { value: context, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5Z4P6WHRcjs.InputRoot, { ref, ...props, children }) });
58
60
  });
59
61
  TextAreaRoot.displayName = "XAUI.TextArea.Root";
60
62
 
61
63
  // src/components/text-area/index.ts
62
64
  var TextArea2 = Object.assign(TextAreaRoot, {
63
- Label: _chunkFFEUGWVAcjs.InputLabel,
65
+ Label: _chunk5Z4P6WHRcjs.InputLabel,
64
66
  Field: TextAreaField,
65
- Description: _chunkFFEUGWVAcjs.InputDescription,
66
- Error: _chunkFFEUGWVAcjs.InputError
67
+ Description: _chunk5Z4P6WHRcjs.InputDescription,
68
+ Error: _chunk5Z4P6WHRcjs.InputError
67
69
  });
68
70
 
69
71
 
@@ -1,7 +1,9 @@
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 _chunkGPVNCJ3Zcjs = require('./chunk-GPVNCJ3Z.cjs');
3
4
 
4
- var _chunkIG4Q3WQOcjs = require('./chunk-IG4Q3WQO.cjs');
5
+
6
+ var _chunk7DPL3ZDScjs = require('./chunk-7DPL3ZDS.cjs');
5
7
 
6
8
 
7
9
  var _chunkEJQCQPETcjs = require('./chunk-EJQCQPET.cjs');
@@ -10,13 +12,15 @@ var _chunkEJQCQPETcjs = require('./chunk-EJQCQPET.cjs');
10
12
  var _chunkFNEUOBCVcjs = require('./chunk-FNEUOBCV.cjs');
11
13
 
12
14
 
15
+ var _chunk57SJ4LJFcjs = require('./chunk-57SJ4LJF.cjs');
16
+
13
17
 
14
18
 
15
19
 
16
- var _chunkHUZ4AUM2cjs = require('./chunk-HUZ4AUM2.cjs');
20
+ var _chunkZP2E2H2Gcjs = require('./chunk-ZP2E2H2G.cjs');
17
21
 
18
22
 
19
- var _chunk57SJ4LJFcjs = require('./chunk-57SJ4LJF.cjs');
23
+ var _chunkGLGU2WFLcjs = require('./chunk-GLGU2WFL.cjs');
20
24
 
21
25
  // src/components/card/card-background.tsx
22
26
  var _react = require('react');
@@ -46,7 +50,7 @@ function partitionBackground(children) {
46
50
  }
47
51
 
48
52
  // src/components/card/card.context.ts
49
- var [CardProvider, useCard] = _chunkHUZ4AUM2cjs.createSlotContext.call(void 0, "Card");
53
+ var [CardProvider, useCard] = _chunkZP2E2H2Gcjs.createSlotContext.call(void 0, "Card");
50
54
 
51
55
  // src/components/card/card.style.ts
52
56
 
@@ -59,7 +63,7 @@ var _jsxruntime = require('react/jsx-runtime');
59
63
  var CardBackground = markBackground(
60
64
  _react.forwardRef.call(void 0, function CardBackground2({ children, source, style, ...props }, ref) {
61
65
  const { backgroundStyle } = useCard();
62
- const [styleProps, rest] = _chunkHUZ4AUM2cjs.useStyleProps.call(void 0, props);
66
+ const [styleProps, rest] = _chunkGLGU2WFLcjs.useStyleProps.call(void 0, props);
63
67
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
64
68
  _reactnative.View,
65
69
  {
@@ -81,7 +85,7 @@ CardBackground.displayName = "XAUI.Card.Background";
81
85
 
82
86
  var CardBody = _react.forwardRef.call(void 0, function CardBody2({ children, style, ...props }, ref) {
83
87
  const { bodyStyle } = useCard();
84
- const [styleProps, rest] = _chunkHUZ4AUM2cjs.useStyleProps.call(void 0, props);
88
+ const [styleProps, rest] = _chunkGLGU2WFLcjs.useStyleProps.call(void 0, props);
85
89
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { ref, style: [bodyStyle, styleProps, style], ...rest, children });
86
90
  });
87
91
  CardBody.displayName = "XAUI.Card.Body";
@@ -93,7 +97,7 @@ CardBody.displayName = "XAUI.Card.Body";
93
97
  var CardDescription = _react.forwardRef.call(void 0,
94
98
  function CardDescription2({ children, style, ...props }, ref) {
95
99
  const { descriptionStyle } = useCard();
96
- const [styleProps, rest] = _chunkHUZ4AUM2cjs.useStyleProps.call(void 0, props);
100
+ const [styleProps, rest] = _chunkGLGU2WFLcjs.useStyleProps.call(void 0, props);
97
101
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { ref, style: [descriptionStyle, styleProps, style], ...rest, children });
98
102
  }
99
103
  );
@@ -105,7 +109,7 @@ CardDescription.displayName = "XAUI.Card.Description";
105
109
 
106
110
  var CardFooter = _react.forwardRef.call(void 0, function CardFooter2({ children, style, ...props }, ref) {
107
111
  const { footerStyle } = useCard();
108
- const [styleProps, rest] = _chunkHUZ4AUM2cjs.useStyleProps.call(void 0, props);
112
+ const [styleProps, rest] = _chunkGLGU2WFLcjs.useStyleProps.call(void 0, props);
109
113
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { ref, style: [footerStyle, styleProps, style], ...rest, children });
110
114
  });
111
115
  CardFooter.displayName = "XAUI.Card.Footer";
@@ -116,7 +120,7 @@ CardFooter.displayName = "XAUI.Card.Footer";
116
120
 
117
121
  var CardHeader = _react.forwardRef.call(void 0, function CardHeader2({ children, style, ...props }, ref) {
118
122
  const { headerStyle } = useCard();
119
- const [styleProps, rest] = _chunkHUZ4AUM2cjs.useStyleProps.call(void 0, props);
123
+ const [styleProps, rest] = _chunkGLGU2WFLcjs.useStyleProps.call(void 0, props);
120
124
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { ref, style: [headerStyle, styleProps, style], ...rest, children });
121
125
  });
122
126
  CardHeader.displayName = "XAUI.Card.Header";
@@ -127,7 +131,7 @@ CardHeader.displayName = "XAUI.Card.Header";
127
131
 
128
132
  var CardTitle = _react.forwardRef.call(void 0, function CardTitle2({ children, style, ...props }, ref) {
129
133
  const { titleStyle } = useCard();
130
- const [styleProps, rest] = _chunkHUZ4AUM2cjs.useStyleProps.call(void 0, props);
134
+ const [styleProps, rest] = _chunkGLGU2WFLcjs.useStyleProps.call(void 0, props);
131
135
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { ref, style: [titleStyle, styleProps, style], ...rest, children });
132
136
  });
133
137
  CardTitle.displayName = "XAUI.Card.Title";
@@ -347,8 +351,8 @@ var CardRoot = _react.forwardRef.call(void 0, function Card({
347
351
  ...props
348
352
  }, ref) {
349
353
  const theme = _chunk57SJ4LJFcjs.useXAUITheme.call(void 0, );
350
- const [styleProps, rest] = _chunkHUZ4AUM2cjs.useStyleProps.call(void 0, props);
351
- const [isPressed, press] = _chunkIG4Q3WQOcjs.usePressState.call(void 0, { onPressIn, onPressOut });
354
+ const [styleProps, rest] = _chunkGLGU2WFLcjs.useStyleProps.call(void 0, props);
355
+ const [isPressed, press] = _chunk7DPL3ZDScjs.usePressState.call(void 0, { onPressIn, onPressOut });
352
356
  const selection = { variant, size, radius };
353
357
  const states = { disabled: isDisabled };
354
358
  const styles = cardRecipe.resolve({ theme, selection, states });
@@ -371,7 +375,7 @@ var CardRoot = _react.forwardRef.call(void 0, function Card({
371
375
  styleProps,
372
376
  typeof style === "function" ? style({ pressed: isPressed }) : style
373
377
  ];
374
- const text = _chunkHUZ4AUM2cjs.childrenToString.call(void 0, children);
378
+ const text = _chunkZP2E2H2Gcjs.childrenToString.call(void 0, children);
375
379
  const content = text !== null ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardDescription, { children: text }) : children;
376
380
  if (!isPressable && !asChild && (onPressIn || onPressOut || rest.onPress || rest.onLongPress)) {
377
381
  _chunkEJQCQPETcjs.warnDev.call(void 0,
@@ -384,7 +388,7 @@ var CardRoot = _react.forwardRef.call(void 0, function Card({
384
388
  body
385
389
  ] });
386
390
  const surface = isPressable ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
387
- _chunkIG4Q3WQOcjs.PressableFeedback,
391
+ _chunkGPVNCJ3Zcjs.PressableFeedback,
388
392
  {
389
393
  ref,
390
394
  isPressed,
@@ -399,7 +403,7 @@ var CardRoot = _react.forwardRef.call(void 0, function Card({
399
403
  onPressOut: press.onPressOut,
400
404
  children: asChild ? children : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
401
405
  background,
402
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIG4Q3WQOcjs.PressableFeedback.Highlight, {}),
406
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGPVNCJ3Zcjs.PressableFeedback.Highlight, {}),
403
407
  body
404
408
  ] })
405
409
  }
@@ -407,7 +411,7 @@ var CardRoot = _react.forwardRef.call(void 0, function Card({
407
411
  // R12 — the caller's element is the card, so it takes the children it was written
408
412
  // with and the auto-wrap does not apply.
409
413
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
410
- _chunkHUZ4AUM2cjs.Slot,
414
+ _chunkZP2E2H2Gcjs.Slot,
411
415
  {
412
416
  ref,
413
417
  accessibilityRole,
@@ -4,26 +4,28 @@
4
4
  var _chunkFNEUOBCVcjs = require('./chunk-FNEUOBCV.cjs');
5
5
 
6
6
 
7
+ var _chunk57SJ4LJFcjs = require('./chunk-57SJ4LJF.cjs');
7
8
 
8
9
 
9
- var _chunkHUZ4AUM2cjs = require('./chunk-HUZ4AUM2.cjs');
10
10
 
11
+ var _chunkZP2E2H2Gcjs = require('./chunk-ZP2E2H2G.cjs');
11
12
 
12
- var _chunk57SJ4LJFcjs = require('./chunk-57SJ4LJF.cjs');
13
+
14
+ var _chunkGLGU2WFLcjs = require('./chunk-GLGU2WFL.cjs');
13
15
 
14
16
  // src/components/input/input-description.tsx
15
17
  var _react = require('react');
16
18
  var _reactnative = require('react-native');
17
19
 
18
20
  // src/components/input/input.context.ts
19
- var [InputProvider, useInput] = _chunkHUZ4AUM2cjs.createSlotContext.call(void 0, "Input");
21
+ var [InputProvider, useInput] = _chunkZP2E2H2Gcjs.createSlotContext.call(void 0, "Input");
20
22
 
21
23
  // src/components/input/input-description.tsx
22
24
  var _jsxruntime = require('react/jsx-runtime');
23
25
  var InputDescription = _react.forwardRef.call(void 0,
24
26
  function InputDescription2({ children, style, nativeID, ...props }, ref) {
25
27
  const { descriptionStyle, descriptionId } = useInput();
26
- const [styleProps, rest] = _chunkHUZ4AUM2cjs.useStyleProps.call(void 0, props);
28
+ const [styleProps, rest] = _chunkGLGU2WFLcjs.useStyleProps.call(void 0, props);
27
29
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
28
30
  _reactnative.Text,
29
31
  {
@@ -44,7 +46,7 @@ InputDescription.displayName = "XAUI.Input.Description";
44
46
 
45
47
  var InputError = _react.forwardRef.call(void 0, function InputError2({ children, style, ...props }, ref) {
46
48
  const { errorStyle } = useInput();
47
- const [styleProps, rest] = _chunkHUZ4AUM2cjs.useStyleProps.call(void 0, props);
49
+ const [styleProps, rest] = _chunkGLGU2WFLcjs.useStyleProps.call(void 0, props);
48
50
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { ref, style: [errorStyle, styleProps, style], ...rest, children });
49
51
  });
50
52
  InputError.displayName = "XAUI.Input.Error";
@@ -64,7 +66,7 @@ var InputField = _react.forwardRef.call(void 0, function InputField2({ style, on
64
66
  isDisabled,
65
67
  isInvalid
66
68
  } = useInput();
67
- const [styleProps, rest] = _chunkHUZ4AUM2cjs.useStyleProps.call(void 0, props);
69
+ const [styleProps, rest] = _chunkGLGU2WFLcjs.useStyleProps.call(void 0, props);
68
70
  const handleFocus = _react.useCallback.call(void 0,
69
71
  (event) => {
70
72
  onFieldFocus(event);
@@ -104,7 +106,7 @@ InputField.displayName = "XAUI.Input.Field";
104
106
 
105
107
  var InputLabel = _react.forwardRef.call(void 0, function InputLabel2({ children, style, nativeID, ...props }, ref) {
106
108
  const { labelStyle, labelId } = useInput();
107
- const [styleProps, rest] = _chunkHUZ4AUM2cjs.useStyleProps.call(void 0, props);
109
+ const [styleProps, rest] = _chunkGLGU2WFLcjs.useStyleProps.call(void 0, props);
108
110
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
109
111
  _reactnative.Text,
110
112
  {
@@ -433,7 +435,7 @@ var InputRoot = _react.forwardRef.call(void 0, function Input({
433
435
  ...props
434
436
  }, ref) {
435
437
  const theme = _chunk57SJ4LJFcjs.useXAUITheme.call(void 0, );
436
- const [styleProps, rest] = _chunkHUZ4AUM2cjs.useStyleProps.call(void 0, props);
438
+ const [styleProps, rest] = _chunkGLGU2WFLcjs.useStyleProps.call(void 0, props);
437
439
  const [isFocused, setIsFocused] = _react.useState.call(void 0, false);
438
440
  const onFieldFocus = _react.useCallback.call(void 0, () => setIsFocused(true), []);
439
441
  const onFieldBlur = _react.useCallback.call(void 0, () => setIsFocused(false), []);
@@ -497,7 +499,7 @@ var InputRoot = _react.forwardRef.call(void 0, function Input({
497
499
  const rootStyle = [styles.root, _optionalChain([tint, 'optionalAccess', _3 => _3.root]), styleProps, style];
498
500
  const surface = asChild ? (
499
501
  // R12 — the caller's element *is* the column.
500
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHUZ4AUM2cjs.Slot, { ref, ...rest, style: rootStyle, children })
502
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZP2E2H2Gcjs.Slot, { ref, ...rest, style: rootStyle, children })
501
503
  ) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { ref, ...rest, style: rootStyle, children });
502
504
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, InputProvider, { value: context, children: surface });
503
505
  });