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

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 (107) hide show
  1. package/dist/{chunk-I66VMLHE.cjs → chunk-2L7FOIWY.cjs} +21 -21
  2. package/dist/{chunk-VSALV7VO.cjs → chunk-2LNE4PWB.cjs} +2 -2
  3. package/dist/{chunk-HVD5EX7V.js → chunk-2OZPOWFB.js} +1 -1
  4. package/dist/{chunk-6M7RUU7V.cjs → chunk-2SCE7TFZ.cjs} +64 -64
  5. package/dist/{chunk-L55CDXNI.js → chunk-3YZSUDZ2.js} +108 -102
  6. package/dist/{chunk-NLASSGA7.js → chunk-4XFEEBPU.js} +10 -2
  7. package/dist/{chunk-4SLOOIE5.cjs → chunk-5BNIIDQD.cjs} +2 -2
  8. package/dist/{chunk-HXL2QCMR.js → chunk-5GMU7ESV.js} +14 -14
  9. package/dist/{chunk-Q3D6KIVF.cjs → chunk-6N5ZCEAB.cjs} +104 -98
  10. package/dist/{chunk-GBFQZQ77.js → chunk-6U5IUUAR.js} +2 -2
  11. package/dist/{chunk-XWMB66ZM.cjs → chunk-ADQVA2FQ.cjs} +2 -2
  12. package/dist/{chunk-YUG22AXX.cjs → chunk-AQXNEV6J.cjs} +16 -16
  13. package/dist/{chunk-CNNLMMFV.cjs → chunk-AZRMOWRG.cjs} +6 -6
  14. package/dist/{chunk-JCYWU5TO.js → chunk-B6OKVLC7.js} +1 -1
  15. package/dist/{chunk-M2BGCN77.js → chunk-BAPXLO5N.js} +4 -4
  16. package/dist/{chunk-MHEL3NAN.js → chunk-CVCE7TW5.js} +53 -53
  17. package/dist/{chunk-BA2MPBCO.js → chunk-DL2PGB5G.js} +58 -58
  18. package/dist/{chunk-NFFL3E4N.js → chunk-DOLWSO7A.js} +2 -2
  19. package/dist/{chunk-ZA6RT3XQ.js → chunk-E5ZW7MBW.js} +16 -16
  20. package/dist/{chunk-K7LLERKT.cjs → chunk-EFPWXJAJ.cjs} +11 -11
  21. package/dist/{chunk-GGW42MY4.js → chunk-FJ5TLRT3.js} +2 -1
  22. package/dist/{chunk-CYS6U374.cjs → chunk-FVKIQBHS.cjs} +4 -4
  23. package/dist/{chunk-PBR44KVV.cjs → chunk-FYCDRRJ2.cjs} +22 -22
  24. package/dist/{chunk-DBXFFJTC.cjs → chunk-GHKJ6MUH.cjs} +8 -8
  25. package/dist/{chunk-QY4MN7X3.cjs → chunk-GPZSTEEI.cjs} +12 -12
  26. package/dist/{chunk-OHEHPQLC.cjs → chunk-HQVVQGYV.cjs} +2 -2
  27. package/dist/{chunk-MC7SY2QH.cjs → chunk-HT7H35GU.cjs} +2 -1
  28. package/dist/{chunk-PCWT2YBE.cjs → chunk-ISPOIMGX.cjs} +2 -2
  29. package/dist/{chunk-TZG3DERP.js → chunk-JB5XANQY.js} +1 -1
  30. package/dist/{chunk-I6ZB3FZI.cjs → chunk-K3AVOT6L.cjs} +2 -2
  31. package/dist/{chunk-AYOVBZAX.js → chunk-K7GAHNMJ.js} +3 -3
  32. package/dist/{chunk-2IWL6R3D.js → chunk-KZVHC4FL.js} +3 -3
  33. package/dist/{chunk-AOEXU5UV.cjs → chunk-LCDHTLSG.cjs} +3 -3
  34. package/dist/{chunk-UORTYL63.cjs → chunk-MFXZHLOU.cjs} +11 -11
  35. package/dist/{chunk-MSMZBUZO.cjs → chunk-N2U63JUX.cjs} +6 -6
  36. package/dist/{chunk-SLUJFE6R.js → chunk-OMV5MUTM.js} +15 -15
  37. package/dist/{chunk-MEYCZS32.js → chunk-OSCW7I4H.js} +1 -1
  38. package/dist/{chunk-WJPQARJ5.js → chunk-OWE5IID7.js} +1 -1
  39. package/dist/{chunk-DUQUCOUY.cjs → chunk-PGQWUASE.cjs} +2 -2
  40. package/dist/{chunk-LZK77LFX.js → chunk-QZO57TPX.js} +1 -1
  41. package/dist/{chunk-7CTIE42J.cjs → chunk-RPOKLFRB.cjs} +16 -8
  42. package/dist/{chunk-U3RDU3HU.js → chunk-RSGIJ6RI.js} +2 -2
  43. package/dist/{chunk-UR6DNU2M.js → chunk-SAGMDVFU.js} +2 -2
  44. package/dist/{chunk-CM4LI5OH.cjs → chunk-TE7KVFE4.cjs} +9 -9
  45. package/dist/{chunk-NMAZ2TQF.js → chunk-U3HFQHGZ.js} +1 -1
  46. package/dist/{chunk-XNNJM5DQ.js → chunk-UCW25LL6.js} +75 -75
  47. package/dist/{chunk-ZC35YYKS.js → chunk-V5IVMZQJ.js} +1 -1
  48. package/dist/{chunk-HNW4HIMO.js → chunk-VWATEE5O.js} +15 -15
  49. package/dist/{chunk-TVCS5UOE.cjs → chunk-XARBUUIE.cjs} +49 -49
  50. package/dist/{chunk-OX2YNMNS.cjs → chunk-ZU3XQZ63.cjs} +63 -63
  51. package/dist/components/alert/index.cjs +7 -7
  52. package/dist/components/alert/index.js +6 -6
  53. package/dist/components/avatar/index.cjs +5 -5
  54. package/dist/components/avatar/index.js +4 -4
  55. package/dist/components/badge/index.cjs +4 -4
  56. package/dist/components/badge/index.js +3 -3
  57. package/dist/components/button/index.cjs +6 -6
  58. package/dist/components/button/index.js +5 -5
  59. package/dist/components/card/index.cjs +5 -5
  60. package/dist/components/card/index.js +4 -4
  61. package/dist/components/checkbox/index.cjs +5 -5
  62. package/dist/components/checkbox/index.js +4 -4
  63. package/dist/components/chip/index.cjs +7 -7
  64. package/dist/components/chip/index.js +6 -6
  65. package/dist/components/divider/index.cjs +4 -4
  66. package/dist/components/divider/index.js +3 -3
  67. package/dist/components/field-group/index.cjs +28 -0
  68. package/dist/components/{input-group → field-group}/index.d.cts +60 -60
  69. package/dist/components/{input-group → field-group}/index.d.ts +60 -60
  70. package/dist/components/field-group/index.js +28 -0
  71. package/dist/components/input-otp/index.cjs +4 -4
  72. package/dist/components/input-otp/index.js +3 -3
  73. package/dist/components/radio/index.cjs +5 -5
  74. package/dist/components/radio/index.js +4 -4
  75. package/dist/components/skeleton/index.cjs +4 -4
  76. package/dist/components/skeleton/index.js +3 -3
  77. package/dist/components/spinner/index.cjs +4 -4
  78. package/dist/components/spinner/index.js +3 -3
  79. package/dist/components/switch/index.cjs +5 -5
  80. package/dist/components/switch/index.js +4 -4
  81. package/dist/components/text-area/index.cjs +5 -5
  82. package/dist/components/text-area/index.d.cts +10 -10
  83. package/dist/components/text-area/index.d.ts +10 -10
  84. package/dist/components/text-area/index.js +4 -4
  85. package/dist/components/text-field/index.cjs +26 -0
  86. package/dist/components/{input → text-field}/index.d.cts +43 -43
  87. package/dist/components/{input → text-field}/index.d.ts +43 -43
  88. package/dist/components/text-field/index.js +26 -0
  89. package/dist/components/typography/index.cjs +4 -4
  90. package/dist/components/typography/index.js +3 -3
  91. package/dist/components/view/index.cjs +4 -4
  92. package/dist/components/view/index.js +3 -3
  93. package/dist/index.cjs +26 -26
  94. package/dist/index.d.cts +3 -3
  95. package/dist/index.d.ts +3 -3
  96. package/dist/index.js +60 -60
  97. package/dist/system/index.cjs +7 -7
  98. package/dist/system/index.js +6 -6
  99. package/dist/{input.type-D2qgi03E.d.ts → text-field.type-0l73acce.d.ts} +24 -24
  100. package/dist/{input.type-BUMDlzL9.d.cts → text-field.type-DBh06DU5.d.cts} +24 -24
  101. package/dist/theme/index.cjs +3 -3
  102. package/dist/theme/index.js +2 -2
  103. package/package.json +16 -16
  104. package/dist/components/input/index.cjs +0 -26
  105. package/dist/components/input/index.js +0 -26
  106. package/dist/components/input-group/index.cjs +0 -28
  107. package/dist/components/input-group/index.js +0 -28
@@ -8,23 +8,23 @@ import {
8
8
  } from "./chunk-4GTAZM2C.js";
9
9
  import {
10
10
  useStyleProps
11
- } from "./chunk-MEYCZS32.js";
11
+ } from "./chunk-OSCW7I4H.js";
12
12
  import {
13
13
  useXAUITheme
14
14
  } from "./chunk-A3EGFI6T.js";
15
15
 
16
- // src/components/input/input-description.tsx
16
+ // src/components/text-field/text-field-description.tsx
17
17
  import { forwardRef } from "react";
18
18
  import { Text } from "react-native";
19
19
 
20
- // src/components/input/input.context.ts
21
- var [InputProvider, useInput] = createSlotContext("Input");
20
+ // src/components/text-field/text-field.context.ts
21
+ var [TextFieldProvider, useTextField] = createSlotContext("TextField");
22
22
 
23
- // src/components/input/input-description.tsx
23
+ // src/components/text-field/text-field-description.tsx
24
24
  import { jsx } from "react/jsx-runtime";
25
- var InputDescription = forwardRef(
26
- function InputDescription2({ children, style, nativeID, ...props }, ref) {
27
- const { descriptionStyle, descriptionId } = useInput();
25
+ var TextFieldDescription = forwardRef(
26
+ function TextFieldDescription2({ children, style, nativeID, ...props }, ref) {
27
+ const { descriptionStyle, descriptionId } = useTextField();
28
28
  const [styleProps, rest] = useStyleProps(props);
29
29
  return /* @__PURE__ */ jsx(
30
30
  Text,
@@ -38,93 +38,99 @@ var InputDescription = forwardRef(
38
38
  );
39
39
  }
40
40
  );
41
- InputDescription.displayName = "XAUI.Input.Description";
41
+ TextFieldDescription.displayName = "XAUI.TextField.Description";
42
42
 
43
- // src/components/input/input-error.tsx
43
+ // src/components/text-field/text-field-error.tsx
44
44
  import { forwardRef as forwardRef2 } from "react";
45
45
  import { Text as Text2 } from "react-native";
46
46
  import { jsx as jsx2 } from "react/jsx-runtime";
47
- var InputError = forwardRef2(function InputError2({ children, style, ...props }, ref) {
48
- const { errorStyle } = useInput();
49
- const [styleProps, rest] = useStyleProps(props);
50
- return /* @__PURE__ */ jsx2(Text2, { ref, style: [errorStyle, styleProps, style], ...rest, children });
51
- });
52
- InputError.displayName = "XAUI.Input.Error";
47
+ var TextFieldError = forwardRef2(
48
+ function TextFieldError2({ children, style, ...props }, ref) {
49
+ const { errorStyle } = useTextField();
50
+ const [styleProps, rest] = useStyleProps(props);
51
+ return /* @__PURE__ */ jsx2(Text2, { ref, style: [errorStyle, styleProps, style], ...rest, children });
52
+ }
53
+ );
54
+ TextFieldError.displayName = "XAUI.TextField.Error";
53
55
 
54
- // src/components/input/input-field.tsx
56
+ // src/components/text-field/text-field-field.tsx
55
57
  import { forwardRef as forwardRef3, useCallback } from "react";
56
58
  import { TextInput } from "react-native";
57
59
  import { jsx as jsx3 } from "react/jsx-runtime";
58
- var InputField = forwardRef3(function InputField2({ style, onFocus, onBlur, placeholderTextColor, ...props }, ref) {
59
- const {
60
- fieldStyle,
61
- placeholderTextColor: resolvedPlaceholder,
62
- onFieldFocus,
63
- onFieldBlur,
64
- labelId,
65
- descriptionId,
66
- isDisabled,
67
- isInvalid
68
- } = useInput();
69
- const [styleProps, rest] = useStyleProps(props);
70
- const handleFocus = useCallback(
71
- (event) => {
72
- onFieldFocus(event);
73
- onFocus?.(event);
74
- },
75
- [onFieldFocus, onFocus]
76
- );
77
- const handleBlur = useCallback(
78
- (event) => {
79
- onFieldBlur(event);
80
- onBlur?.(event);
81
- },
82
- [onFieldBlur, onBlur]
83
- );
84
- return /* @__PURE__ */ jsx3(
85
- TextInput,
86
- {
87
- ref,
88
- "aria-labelledby": labelId,
89
- "aria-describedby": descriptionId,
90
- "aria-invalid": isInvalid,
91
- editable: !isDisabled,
92
- accessibilityState: { disabled: isDisabled },
93
- placeholderTextColor: placeholderTextColor ?? resolvedPlaceholder,
94
- ...rest,
95
- style: [fieldStyle, styleProps, style],
96
- onFocus: handleFocus,
97
- onBlur: handleBlur
98
- }
99
- );
100
- });
101
- InputField.displayName = "XAUI.Input.Field";
60
+ var TextFieldField = forwardRef3(
61
+ function TextFieldField2({ style, onFocus, onBlur, placeholderTextColor, ...props }, ref) {
62
+ const {
63
+ fieldStyle,
64
+ placeholderTextColor: resolvedPlaceholder,
65
+ onFieldFocus,
66
+ onFieldBlur,
67
+ labelId,
68
+ descriptionId,
69
+ isDisabled,
70
+ isInvalid
71
+ } = useTextField();
72
+ const [styleProps, rest] = useStyleProps(props);
73
+ const handleFocus = useCallback(
74
+ (event) => {
75
+ onFieldFocus(event);
76
+ onFocus?.(event);
77
+ },
78
+ [onFieldFocus, onFocus]
79
+ );
80
+ const handleBlur = useCallback(
81
+ (event) => {
82
+ onFieldBlur(event);
83
+ onBlur?.(event);
84
+ },
85
+ [onFieldBlur, onBlur]
86
+ );
87
+ return /* @__PURE__ */ jsx3(
88
+ TextInput,
89
+ {
90
+ ref,
91
+ "aria-labelledby": labelId,
92
+ "aria-describedby": descriptionId,
93
+ "aria-invalid": isInvalid,
94
+ editable: !isDisabled,
95
+ accessibilityState: { disabled: isDisabled },
96
+ placeholderTextColor: placeholderTextColor ?? resolvedPlaceholder,
97
+ ...rest,
98
+ style: [fieldStyle, styleProps, style],
99
+ onFocus: handleFocus,
100
+ onBlur: handleBlur
101
+ }
102
+ );
103
+ }
104
+ );
105
+ TextFieldField.displayName = "XAUI.TextField.Field";
102
106
 
103
- // src/components/input/input-label.tsx
107
+ // src/components/text-field/text-field-label.tsx
104
108
  import { forwardRef as forwardRef4 } from "react";
105
109
  import { Text as Text3 } from "react-native";
106
110
  import { jsx as jsx4 } from "react/jsx-runtime";
107
- var InputLabel = forwardRef4(function InputLabel2({ children, style, nativeID, ...props }, ref) {
108
- const { labelStyle, labelId } = useInput();
109
- const [styleProps, rest] = useStyleProps(props);
110
- return /* @__PURE__ */ jsx4(
111
- Text3,
112
- {
113
- ref,
114
- nativeID: nativeID ?? labelId,
115
- style: [labelStyle, styleProps, style],
116
- ...rest,
117
- children
118
- }
119
- );
120
- });
121
- InputLabel.displayName = "XAUI.Input.Label";
111
+ var TextFieldLabel = forwardRef4(
112
+ function TextFieldLabel2({ children, style, nativeID, ...props }, ref) {
113
+ const { labelStyle, labelId } = useTextField();
114
+ const [styleProps, rest] = useStyleProps(props);
115
+ return /* @__PURE__ */ jsx4(
116
+ Text3,
117
+ {
118
+ ref,
119
+ nativeID: nativeID ?? labelId,
120
+ style: [labelStyle, styleProps, style],
121
+ ...rest,
122
+ children
123
+ }
124
+ );
125
+ }
126
+ );
127
+ TextFieldLabel.displayName = "XAUI.TextField.Label";
122
128
 
123
- // src/components/input/input.tsx
129
+ // src/components/text-field/text-field.tsx
124
130
  import { forwardRef as forwardRef5, useCallback as useCallback2, useId, useMemo, useState } from "react";
125
131
  import { StyleSheet, View } from "react-native";
126
132
 
127
- // src/components/input/input.recipe.ts
133
+ // src/components/text-field/text-field.recipe.ts
128
134
  var SLOTS = [
129
135
  "root",
130
136
  "label",
@@ -184,7 +190,7 @@ function sizeAxis(step) {
184
190
  paddingHorizontal: theme.spacing(padding),
185
191
  fontSize: theme.fontSizes[field]
186
192
  },
187
- // Only what a multiline field *adds* — `Input.TextArea` layers this over the field's
193
+ // Only what a multiline field *adds* — `TextField.TextArea` layers this over the field's
188
194
  // own style rather than restating it, so the colours, the border and the radius are
189
195
  // resolved once for both. The height is not here: `rows` is a raw value, and the
190
196
  // slot computes it from the two numbers below.
@@ -285,14 +291,14 @@ function insideLabel(step) {
285
291
  paddingTop: block,
286
292
  paddingBottom: top
287
293
  },
288
- // The same room, because `Input.TextArea` layers its own padding over the field's
294
+ // The same room, because `TextField.TextArea` layers its own padding over the field's
289
295
  // and would otherwise put the first line back under the label.
290
296
  textArea: { paddingTop: block, paddingBottom: top }
291
297
  };
292
298
  };
293
299
  }
294
300
  var LABEL_INSIDE_TOP = 1.5;
295
- var inputRecipe = createRecipe({
301
+ var textFieldRecipe = createRecipe({
296
302
  slots: SLOTS,
297
303
  base: (theme) => ({
298
304
  root: { flexDirection: "column" },
@@ -419,9 +425,9 @@ var inputRecipe = createRecipe({
419
425
  defaultVariants: { variant: "secondary", size: "md", labelPlacement: "outside" }
420
426
  });
421
427
 
422
- // src/components/input/input.tsx
428
+ // src/components/text-field/text-field.tsx
423
429
  import { jsx as jsx5 } from "react/jsx-runtime";
424
- var InputRoot = forwardRef5(function Input({
430
+ var TextFieldRoot = forwardRef5(function TextField({
425
431
  children,
426
432
  variant,
427
433
  size,
@@ -450,8 +456,8 @@ var InputRoot = forwardRef5(function Input({
450
456
  isInvalid: isInvalid ? "true" : void 0
451
457
  };
452
458
  const states = { focused: isFocused && !isInvalid, disabled: isDisabled };
453
- const styles = inputRecipe.resolve({ theme, selection, states });
454
- const tint = color ? inputRecipe.tint({ theme, color, selection, states }) : void 0;
459
+ const styles = textFieldRecipe.resolve({ theme, selection, states });
460
+ const tint = color ? textFieldRecipe.tint({ theme, color, selection, states }) : void 0;
455
461
  const context = useMemo(() => {
456
462
  const placeholder = StyleSheet.flatten(styles.placeholder);
457
463
  const icon = StyleSheet.flatten(styles.icon);
@@ -501,25 +507,25 @@ var InputRoot = forwardRef5(function Input({
501
507
  // R12 — the caller's element *is* the column.
502
508
  /* @__PURE__ */ jsx5(Slot, { ref, ...rest, style: rootStyle, children })
503
509
  ) : /* @__PURE__ */ jsx5(View, { ref, ...rest, style: rootStyle, children });
504
- return /* @__PURE__ */ jsx5(InputProvider, { value: context, children: surface });
510
+ return /* @__PURE__ */ jsx5(TextFieldProvider, { value: context, children: surface });
505
511
  });
506
- InputRoot.displayName = "XAUI.Input.Root";
512
+ TextFieldRoot.displayName = "XAUI.TextField.Root";
507
513
 
508
- // src/components/input/index.ts
509
- var Input2 = Object.assign(InputRoot, {
510
- Label: InputLabel,
511
- Field: InputField,
512
- Description: InputDescription,
513
- Error: InputError
514
+ // src/components/text-field/index.ts
515
+ var TextField2 = Object.assign(TextFieldRoot, {
516
+ Label: TextFieldLabel,
517
+ Field: TextFieldField,
518
+ Description: TextFieldDescription,
519
+ Error: TextFieldError
514
520
  });
515
521
 
516
522
  export {
517
- useInput,
518
- InputDescription,
519
- InputError,
520
- InputField,
521
- InputLabel,
522
- inputRecipe,
523
- InputRoot,
524
- Input2 as Input
523
+ useTextField,
524
+ TextFieldDescription,
525
+ TextFieldError,
526
+ TextFieldField,
527
+ TextFieldLabel,
528
+ textFieldRecipe,
529
+ TextFieldRoot,
530
+ TextField2 as TextField
525
531
  };
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-YXPYOOHU.js";
4
4
  import {
5
5
  useStyleProps
6
- } from "./chunk-MEYCZS32.js";
6
+ } from "./chunk-OSCW7I4H.js";
7
7
 
8
8
  // src/components/view/grid.tsx
9
9
  import { Children, forwardRef, useMemo, useState } from "react";
@@ -128,7 +128,15 @@ import { jsx as jsx6 } from "react/jsx-runtime";
128
128
  var Column = forwardRef6(function Column2({ children, asChild = false, style, ...props }, ref) {
129
129
  const [styleProps, rest] = useStyleProps(props);
130
130
  const Root = asChild ? Slot : View6;
131
- return /* @__PURE__ */ jsx6(Root, { ref, style: [{ flexDirection: "column" }, styleProps, style], ...rest, children });
131
+ return /* @__PURE__ */ jsx6(
132
+ Root,
133
+ {
134
+ ref,
135
+ style: [{ flexDirection: "column" }, styleProps, style],
136
+ ...rest,
137
+ children
138
+ }
139
+ );
132
140
  });
133
141
  Column.displayName = "XAUI.Column";
134
142
 
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkI6ZB3FZIcjs = require('./chunk-I6ZB3FZI.cjs');
3
+ var _chunkK3AVOT6Lcjs = require('./chunk-K3AVOT6L.cjs');
4
4
 
5
5
  // src/system/portal/portal.tsx
6
6
  var _react = require('react');
@@ -31,7 +31,7 @@ var styles = _reactnative.StyleSheet.create({
31
31
  container: { flex: 1 }
32
32
  });
33
33
  function PortalHost({ children, ...props }) {
34
- const [styleProps] = _chunkI6ZB3FZIcjs.useStyleProps.call(void 0, props);
34
+ const [styleProps] = _chunkK3AVOT6Lcjs.useStyleProps.call(void 0, props);
35
35
  const [portals, setPortals] = _react.useState.call(void 0, /* @__PURE__ */ new Map());
36
36
  const addPortal = _react.useCallback.call(void 0, (key, element) => {
37
37
  setPortals((current) => new Map(current).set(key, element));
@@ -1,17 +1,17 @@
1
1
  import {
2
- InputDescription,
3
- InputError,
4
- InputField,
5
- InputLabel,
6
- InputRoot,
7
- useInput
8
- } from "./chunk-L55CDXNI.js";
2
+ TextFieldDescription,
3
+ TextFieldError,
4
+ TextFieldField,
5
+ TextFieldLabel,
6
+ TextFieldRoot,
7
+ useTextField
8
+ } from "./chunk-3YZSUDZ2.js";
9
9
  import {
10
10
  createSlotContext
11
11
  } from "./chunk-YXPYOOHU.js";
12
12
  import {
13
13
  useStyleProps
14
- } from "./chunk-MEYCZS32.js";
14
+ } from "./chunk-OSCW7I4H.js";
15
15
 
16
16
  // src/components/text-area/text-area-field.tsx
17
17
  import { forwardRef, useMemo } from "react";
@@ -23,7 +23,7 @@ var [TextAreaProvider, useTextArea] = createSlotContext("TextArea");
23
23
  import { jsx } from "react/jsx-runtime";
24
24
  var TextAreaField = forwardRef(
25
25
  function TextAreaField2({ style, scrollEnabled, ...props }, ref) {
26
- const { textAreaStyle, textArea } = useInput();
26
+ const { textAreaStyle, textArea } = useTextField();
27
27
  const { rows, maxRows } = useTextArea();
28
28
  const [styleProps, rest] = useStyleProps(props);
29
29
  const height = useMemo(() => {
@@ -37,7 +37,7 @@ var TextAreaField = forwardRef(
37
37
  };
38
38
  }, [rows, maxRows, textArea]);
39
39
  return /* @__PURE__ */ jsx(
40
- InputField,
40
+ TextFieldField,
41
41
  {
42
42
  ref,
43
43
  multiline: true,
@@ -56,16 +56,16 @@ import { jsx as jsx2 } from "react/jsx-runtime";
56
56
  var DEFAULT_ROWS = 3;
57
57
  var TextAreaRoot = forwardRef2(function TextArea({ rows = DEFAULT_ROWS, maxRows, children, ...props }, ref) {
58
58
  const context = useMemo2(() => ({ rows, maxRows }), [rows, maxRows]);
59
- return /* @__PURE__ */ jsx2(TextAreaProvider, { value: context, children: /* @__PURE__ */ jsx2(InputRoot, { ref, ...props, children }) });
59
+ return /* @__PURE__ */ jsx2(TextAreaProvider, { value: context, children: /* @__PURE__ */ jsx2(TextFieldRoot, { ref, ...props, children }) });
60
60
  });
61
61
  TextAreaRoot.displayName = "XAUI.TextArea.Root";
62
62
 
63
63
  // src/components/text-area/index.ts
64
64
  var TextArea2 = Object.assign(TextAreaRoot, {
65
- Label: InputLabel,
65
+ Label: TextFieldLabel,
66
66
  Field: TextAreaField,
67
- Description: InputDescription,
68
- Error: InputError
67
+ Description: TextFieldDescription,
68
+ Error: TextFieldError
69
69
  });
70
70
 
71
71
  export {