@fuf-stack/uniform 1.27.0 → 2.0.0-next.1

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 (149) hide show
  1. package/README.md +9 -0
  2. package/dist/Checkboxes/index.d.mts +192 -263
  3. package/dist/Checkboxes/index.d.mts.map +1 -1
  4. package/dist/Checkboxes/index.mjs +294 -90
  5. package/dist/Checkboxes/index.mjs.map +1 -1
  6. package/dist/DatePicker/index.d.mts +1282 -500
  7. package/dist/DatePicker/index.d.mts.map +1 -1
  8. package/dist/DatePicker/index.mjs +403 -83
  9. package/dist/DatePicker/index.mjs.map +1 -1
  10. package/dist/FieldArray/index.d.mts +105 -98
  11. package/dist/FieldArray/index.d.mts.map +1 -1
  12. package/dist/FieldArray/index.mjs +344 -195
  13. package/dist/FieldArray/index.mjs.map +1 -1
  14. package/dist/FieldCard/index.d.mts +37 -35
  15. package/dist/FieldCard/index.d.mts.map +1 -1
  16. package/dist/FieldCard/index.mjs +187 -128
  17. package/dist/FieldCard/index.mjs.map +1 -1
  18. package/dist/{FieldCopyTestIdButton-CRJBix9D.mjs → FieldCopyTestIdButton-DV0tkdh2.mjs} +5 -3
  19. package/dist/FieldCopyTestIdButton-DV0tkdh2.mjs.map +1 -0
  20. package/dist/FieldDescription-C4l0HKGL.mjs +36 -0
  21. package/dist/FieldDescription-C4l0HKGL.mjs.map +1 -0
  22. package/dist/FieldLabel-DKzqkuY1.mjs +125 -0
  23. package/dist/FieldLabel-DKzqkuY1.mjs.map +1 -0
  24. package/dist/FieldLayout-BLW5S-Jm.mjs +46 -0
  25. package/dist/FieldLayout-BLW5S-Jm.mjs.map +1 -0
  26. package/dist/FieldValidationError-DgkCL3cC.mjs +77 -0
  27. package/dist/FieldValidationError-DgkCL3cC.mjs.map +1 -0
  28. package/dist/Form/index.d.mts +11 -11
  29. package/dist/Form/index.d.mts.map +1 -1
  30. package/dist/Form/index.mjs +14 -11
  31. package/dist/Form/index.mjs.map +1 -1
  32. package/dist/FormContext-CHctWFAP.mjs +520 -0
  33. package/dist/FormContext-CHctWFAP.mjs.map +1 -0
  34. package/dist/FormContext-CsFiNvuJ.d.mts.map +1 -1
  35. package/dist/Grid/index.mjs +1 -2
  36. package/dist/{Grid-CTs-Rb9G.mjs → Grid-DfcZeuib.mjs} +4 -2
  37. package/dist/Grid-DfcZeuib.mjs.map +1 -0
  38. package/dist/Input/index.d.mts +640 -392
  39. package/dist/Input/index.d.mts.map +1 -1
  40. package/dist/Input/index.mjs +421 -76
  41. package/dist/Input/index.mjs.map +1 -1
  42. package/dist/RadioBoxes/index.d.mts +1583 -120
  43. package/dist/RadioBoxes/index.d.mts.map +1 -1
  44. package/dist/RadioBoxes/index.mjs +159 -114
  45. package/dist/RadioBoxes/index.mjs.map +1 -1
  46. package/dist/RadioTabs/index.d.mts +300 -81
  47. package/dist/RadioTabs/index.d.mts.map +1 -1
  48. package/dist/RadioTabs/index.mjs +277 -86
  49. package/dist/RadioTabs/index.mjs.map +1 -1
  50. package/dist/Radios/index.d.mts +1353 -108
  51. package/dist/Radios/index.d.mts.map +1 -1
  52. package/dist/Radios/index.mjs +105 -54
  53. package/dist/Radios/index.mjs.map +1 -1
  54. package/dist/Select/index.d.mts +558 -3013
  55. package/dist/Select/index.d.mts.map +1 -1
  56. package/dist/Select/index.mjs +319 -177
  57. package/dist/Select/index.mjs.map +1 -1
  58. package/dist/Slider/index.d.mts +414 -1326
  59. package/dist/Slider/index.d.mts.map +1 -1
  60. package/dist/Slider/index.mjs +276 -94
  61. package/dist/Slider/index.mjs.map +1 -1
  62. package/dist/SubmitButton/index.d.mts.map +1 -1
  63. package/dist/SubmitButton/index.mjs +4 -1
  64. package/dist/SubmitButton/index.mjs.map +1 -1
  65. package/dist/Switch/index.d.mts +2 -1248
  66. package/dist/Switch/index.mjs +167 -68
  67. package/dist/Switch/index.mjs.map +1 -1
  68. package/dist/Switch-CvPO8IF9.d.mts +601 -0
  69. package/dist/Switch-CvPO8IF9.d.mts.map +1 -0
  70. package/dist/SwitchBox/index.d.mts +139 -43
  71. package/dist/SwitchBox/index.d.mts.map +1 -1
  72. package/dist/SwitchBox/index.mjs +142 -87
  73. package/dist/SwitchBox/index.mjs.map +1 -1
  74. package/dist/TextArea/index.d.mts +295 -411
  75. package/dist/TextArea/index.d.mts.map +1 -1
  76. package/dist/TextArea/index.mjs +200 -48
  77. package/dist/TextArea/index.mjs.map +1 -1
  78. package/dist/Time/index.d.mts +1170 -601
  79. package/dist/Time/index.d.mts.map +1 -1
  80. package/dist/Time/index.mjs +162 -74
  81. package/dist/Time/index.mjs.map +1 -1
  82. package/dist/helpers/index.d.mts +1 -1
  83. package/dist/helpers/index.mjs +1 -1
  84. package/dist/helpers/index.mjs.map +1 -1
  85. package/dist/hooks/useClientValidation/index.mjs +1 -1
  86. package/dist/hooks/useController/index.d.mts +31 -3
  87. package/dist/hooks/useController/index.d.mts.map +1 -0
  88. package/dist/hooks/useController/index.mjs +1 -2
  89. package/dist/hooks/useFormContext/index.d.mts +65 -3
  90. package/dist/hooks/useFormContext/index.d.mts.map +1 -0
  91. package/dist/hooks/useFormContext/index.mjs +1 -2
  92. package/dist/hooks/useInputValueDebounce/index.d.mts +11 -5
  93. package/dist/hooks/useInputValueDebounce/index.d.mts.map +1 -1
  94. package/dist/hooks/useInputValueDebounce/index.mjs +27 -5
  95. package/dist/hooks/useInputValueDebounce/index.mjs.map +1 -1
  96. package/dist/hooks/useInputValueTransform/index.d.mts +1 -2
  97. package/dist/hooks/useInputValueTransform/index.mjs +1 -2
  98. package/dist/hooks/useWatchFormReset/index.mjs +1 -1
  99. package/dist/hooks/useWatchUserChange/index.d.mts +2 -2
  100. package/dist/hooks/useWatchUserChange/index.d.mts.map +1 -1
  101. package/dist/hooks/useWatchUserChange/index.mjs +1 -1
  102. package/dist/hooks/useWatchUserChange/index.mjs.map +1 -1
  103. package/dist/{useInputValueTransform-LOaEim7k.d.mts → index-BS8IoBOn.d.mts} +3 -3
  104. package/dist/index-BS8IoBOn.d.mts.map +1 -0
  105. package/dist/partials/FieldCopyTestIdButton/index.mjs +1 -2
  106. package/dist/partials/FieldValidationError/index.d.mts +637 -3
  107. package/dist/partials/FieldValidationError/index.d.mts.map +1 -1
  108. package/dist/partials/FieldValidationError/index.mjs +1 -2
  109. package/dist/radioControlVariants-Cm6WufWo.mjs +188 -0
  110. package/dist/radioControlVariants-Cm6WufWo.mjs.map +1 -0
  111. package/dist/switchVariants-BaQw2DA7.mjs +67 -0
  112. package/dist/switchVariants-BaQw2DA7.mjs.map +1 -0
  113. package/dist/timeVariants-B9HDfNYt.mjs +58 -0
  114. package/dist/timeVariants-B9HDfNYt.mjs.map +1 -0
  115. package/dist/{useController-CK39i6HI.mjs → useController-BCFeZbBZ.mjs} +2 -2
  116. package/dist/{useController-CK39i6HI.mjs.map → useController-BCFeZbBZ.mjs.map} +1 -1
  117. package/dist/{useFormContext-fYWtlnpE.mjs → useFormContext-BPjJjNnM.mjs} +2 -2
  118. package/dist/{useFormContext-fYWtlnpE.mjs.map → useFormContext-BPjJjNnM.mjs.map} +1 -1
  119. package/dist/{useInputValueTransform-DJ5zkqSy.mjs → useInputValueTransform-Mw8YEOXT.mjs} +2 -2
  120. package/dist/{useInputValueTransform-DJ5zkqSy.mjs.map → useInputValueTransform-Mw8YEOXT.mjs.map} +1 -1
  121. package/package.json +17 -29
  122. package/dist/FieldCopyTestIdButton-CRJBix9D.mjs.map +0 -1
  123. package/dist/FieldValidationError-ByRoIxaM.mjs +0 -50
  124. package/dist/FieldValidationError-ByRoIxaM.mjs.map +0 -1
  125. package/dist/FormContext-gHSwOlcy.mjs +0 -278
  126. package/dist/FormContext-gHSwOlcy.mjs.map +0 -1
  127. package/dist/Grid-CTs-Rb9G.mjs.map +0 -1
  128. package/dist/Switch/index.d.mts.map +0 -1
  129. package/dist/hooks/useInput/index.d.mts +0 -2
  130. package/dist/hooks/useInput/index.mjs +0 -7
  131. package/dist/hooks/useInput/index.mjs.map +0 -1
  132. package/dist/hooks/useUniformField/index.d.mts +0 -98
  133. package/dist/hooks/useUniformField/index.d.mts.map +0 -1
  134. package/dist/hooks/useUniformField/index.mjs +0 -137
  135. package/dist/hooks/useUniformField/index.mjs.map +0 -1
  136. package/dist/hooks/useUniformFieldArray/index.d.mts +0 -73
  137. package/dist/hooks/useUniformFieldArray/index.d.mts.map +0 -1
  138. package/dist/hooks/useUniformFieldArray/index.mjs +0 -101
  139. package/dist/hooks/useUniformFieldArray/index.mjs.map +0 -1
  140. package/dist/index-CAdGtKE_.d.mts +0 -1
  141. package/dist/index-CaxrMD1A.d.mts +0 -1
  142. package/dist/index-D5HVU2jP.d.mts +0 -1
  143. package/dist/useController-DcK2YHbw.d.mts +0 -32
  144. package/dist/useController-DcK2YHbw.d.mts.map +0 -1
  145. package/dist/useFormContext-B3QGVVaO.d.mts +0 -66
  146. package/dist/useFormContext-B3QGVVaO.d.mts.map +0 -1
  147. package/dist/useInput-C0aJaAGe.mjs +0 -2
  148. package/dist/useInput-ClpHDPdr.d.mts +0 -2
  149. package/dist/useInputValueTransform-LOaEim7k.d.mts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../../src/TextArea/TextArea.tsx"],"mappings":";;;cAWa,oBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;KAiEjB,YAAY,mBAAmB;;;UC7D1B;;EAEf;;EAEA,WAAW;;EAEX,YAAY;;EAEZ;;EAEA,cAAc;;EAEd;;EAEA,QAAQ;;EAER;;EAEA;;EAEA;;;cAII,aAAY,WAAA,eAAA,MAAA,gBAAA,gBAMf,kCAAa,IAAA"}
@@ -1,67 +1,219 @@
1
- import { useUniformField } from "../hooks/useUniformField/index.mjs";
1
+ import { n as useUniformField } from "../FieldLabel-DKzqkuY1.mjs";
2
+ import { n as getFieldControlProps, r as getFieldDataAttributes } from "../FieldDescription-C4l0HKGL.mjs";
3
+ import { t as FieldLayout } from "../FieldLayout-BLW5S-Jm.mjs";
2
4
  import { useInputValueDebounce } from "../hooks/useInputValueDebounce/index.mjs";
3
- import { tv, variantsToClassNames } from "@fuf-stack/pixel-utils";
5
+ import { useState } from "react";
4
6
  import { jsx } from "react/jsx-runtime";
5
- import { Textarea } from "@heroui/input";
6
- //#region src/TextArea/TextArea.tsx
7
- const textAreaVariants = tv({ slots: {
8
- /** wrapper around the whole input */
9
- base: "",
10
- /** clear button */
11
- clearButton: "",
12
- /** actual input element */
13
- input: "",
14
- /** inner wrapper (HeroUI inputWrapper slot) */
15
- inputWrapper: "bg-content1 group-data-[focus=true]:border-focus"
16
- } });
7
+ import { tv } from "@fuf-stack/pixel-utils";
8
+ import { useStyling } from "@fuf-stack/pixels/StylingProvider";
9
+ import { Group } from "react-aria-components";
10
+ import { useFocusRing } from "react-aria/useFocusRing";
11
+ import { useObjectRef } from "react-aria/useObjectRef";
12
+ import { useTextField } from "react-aria/useTextField";
13
+ import TextareaAutosize from "react-textarea-autosize";
14
+ //#region src/TextArea/textAreaVariants.ts
15
+ /** Textarea slot styles with disabled, filled and invalid states */
16
+ const textAreaVariants = tv({
17
+ slots: {
18
+ /** Container for the label, input and messages */
19
+ base: "group relative flex w-full flex-col",
20
+ /** Reserved clear action slot */
21
+ clearButton: "",
22
+ /** Supporting text below the textarea */
23
+ description: "text-foreground-500 text-tiny",
24
+ /** Validation message container */
25
+ errorMessage: "text-danger text-tiny",
26
+ /** Container for help text and validation messages */
27
+ helperWrapper: "relative flex flex-col p-0",
28
+ /** Container around the autosizing textarea */
29
+ innerWrapper: "inline-flex w-full items-start",
30
+ /** Editable multiline text */
31
+ input: [
32
+ "w-full min-w-0 resize-none bg-transparent bg-clip-text font-normal text-inherit outline-none",
33
+ "duration-100 transition-height text-small",
34
+ "placeholder:text-foreground-500 autofill:bg-transparent",
35
+ "data-[hide-scroll=true]:[scrollbar-width:none] motion-reduce:transition-none",
36
+ "dark:autofill:[-webkit-text-fill-color:var(--pixel-color-foreground)] data-[hide-scroll=true]:[&::-webkit-scrollbar]:hidden"
37
+ ],
38
+ /** Bordered surface around the textarea */
39
+ inputWrapper: [
40
+ "shadow-xs relative inline-flex w-full cursor-text items-start",
41
+ "rounded-medium border-medium border-default-200 bg-content1 px-3 py-2 text-foreground",
42
+ "transition-colors",
43
+ "data-[hover=true]:border-default-400 group-data-[focus=true]:border-focus group-data-[focus=true]:data-[hover=true]:border-default-foreground",
44
+ "motion-reduce:transition-none"
45
+ ],
46
+ /** Label above the textarea */
47
+ label: "block pb-1.5 text-foreground text-small"
48
+ },
49
+ variants: {
50
+ disabled: { true: { base: "pointer-events-none opacity-disabled" } },
51
+ filled: { true: {
52
+ base: "is-filled",
53
+ input: "is-filled",
54
+ inputWrapper: "is-filled"
55
+ } },
56
+ invalid: { true: {
57
+ input: "text-danger placeholder:text-danger",
58
+ inputWrapper: "border-danger data-[hover=true]:border-danger group-data-[focus=true]:border-danger group-data-[focus=true]:data-[hover=true]:border-danger",
59
+ label: "text-danger"
60
+ } }
61
+ }
62
+ });
63
+ //#endregion
64
+ //#region src/TextArea/subcomponents/TextAreaInput.tsx
17
65
  /**
18
- * TextArea component based on [HeroUI TextArea](https://www.heroui.com//docs/components/textarea)
66
+ * Autosizing textarea with wrapper focus routing and scroll-limit handling
67
+ *
68
+ * @see https://react-aria.adobe.com/useTextField
69
+ * @see https://react-aria.adobe.com/Group
19
70
  */
20
- const TextArea = ({ children = null, className: _className = void 0, debounceDelay = 300, name, placeholder = " ", ...uniformFieldProps }) => {
21
- const { ariaLabel, disabled, errorMessage, field: { onChange: fieldOnChange, onBlur: fieldOnBlur, value: fieldValue, ref }, invalid, label, required, testId } = useUniformField({
71
+ const TextAreaInput = ({ className: classNames, field, focused, hasValue, hovered, onHoverChange, placeholder }) => {
72
+ const controlRef = useObjectRef(field.ref);
73
+ const [limitReached, setLimitReached] = useState(false);
74
+ const { disabled, invalid, name, onBlur, onChange: onValueChange, required, testId, value } = field;
75
+ const controlProps = getFieldControlProps(field);
76
+ const { inputProps } = useTextField({
77
+ ...controlProps,
78
+ inputElementType: "textarea",
79
+ isDisabled: disabled,
80
+ isInvalid: invalid,
81
+ isRequired: required,
22
82
  name,
23
- ...uniformFieldProps
83
+ onBlur,
84
+ onChange: onValueChange,
85
+ validationBehavior: "aria",
86
+ value: String(value ?? "")
87
+ }, controlRef);
88
+ const inputStyle = inputProps.style ? {
89
+ ...inputProps.style,
90
+ height: typeof inputProps.style.height === "number" ? inputProps.style.height : void 0
91
+ } : void 0;
92
+ const handleWrapperClick = (event) => {
93
+ if (!disabled && event.target === event.currentTarget) controlRef.current?.focus();
94
+ };
95
+ const handleHoverStart = () => {
96
+ onHoverChange(true);
97
+ };
98
+ const handleHoverEnd = () => {
99
+ onHoverChange(false);
100
+ };
101
+ const handleHeightChange = (height, { rowHeight }) => {
102
+ setLimitReached(height >= rowHeight * 8);
103
+ };
104
+ return /* @__PURE__ */ jsx(Group, {
105
+ className: classNames.inputWrapper,
106
+ "data-focus": focused || void 0,
107
+ "data-hover": hovered || void 0,
108
+ "data-slot": "input-wrapper",
109
+ isDisabled: disabled,
110
+ onClick: handleWrapperClick,
111
+ onHoverEnd: handleHoverEnd,
112
+ onHoverStart: handleHoverStart,
113
+ role: "presentation",
114
+ children: /* @__PURE__ */ jsx("div", {
115
+ className: classNames.innerWrapper,
116
+ "data-slot": "inner-wrapper",
117
+ children: /* @__PURE__ */ jsx(TextareaAutosize, {
118
+ ...inputProps,
119
+ ...controlProps,
120
+ ref: controlRef,
121
+ style: inputStyle,
122
+ className: classNames.input,
123
+ "data-filled": hasValue || void 0,
124
+ "data-hide-scroll": !limitReached || void 0,
125
+ "data-slot": "input",
126
+ "data-testid": testId,
127
+ maxRows: 8,
128
+ minRows: 3,
129
+ onHeightChange: handleHeightChange,
130
+ placeholder
131
+ })
132
+ })
24
133
  });
25
- const { onChange, onBlur, value } = useInputValueDebounce({
26
- debounceDelay,
27
- name,
28
- onBlur: fieldOnBlur,
29
- onChange: fieldOnChange,
30
- value: fieldValue
134
+ };
135
+ //#endregion
136
+ //#region src/TextArea/subcomponents/TextAreaControl.tsx
137
+ /**
138
+ * Multiline input presentation with autosizing, focus and field layout
139
+ *
140
+ * @see https://react-aria.adobe.com/useTextField
141
+ * @see https://react-aria.adobe.com/Group
142
+ */
143
+ const TextAreaControl = ({ field, className, placeholder }) => {
144
+ const styling = useStyling();
145
+ const { focusProps, isFocused, isFocusVisible } = useFocusRing({
146
+ isTextInput: true,
147
+ within: true
148
+ });
149
+ const [hovered, setHovered] = useState(false);
150
+ const { description, disabled, errorMessage, ids, invalid, label, required, value } = field;
151
+ const hasValue = value !== "" && value != null;
152
+ const variants = styling.resolve(textAreaVariants, {
153
+ disabled,
154
+ invalid,
155
+ filled: hasValue
31
156
  });
32
- const variants = textAreaVariants();
33
- const classNames = variantsToClassNames(variants, _className, "base");
34
- return /* @__PURE__ */ jsx(Textarea, {
35
- ref,
36
- "aria-label": !placeholder || placeholder.trim() === "" ? ariaLabel : void 0,
37
- classNames: {
38
- base: classNames.base,
39
- clearButton: classNames.clearButton,
40
- helperWrapper: "p-0",
41
- input: classNames.input,
42
- inputWrapper: classNames.inputWrapper
157
+ const classNames = styling.variantsToClassNames(variants, className, "base");
158
+ return /* @__PURE__ */ jsx(FieldLayout, {
159
+ baseProps: {
160
+ ...focusProps,
161
+ ...getFieldDataAttributes(field),
162
+ "data-component": "text-area",
163
+ "data-filled": hasValue || void 0,
164
+ "data-focus": isFocused || void 0,
165
+ "data-focus-visible": isFocusVisible || void 0,
166
+ "data-hover": hovered || void 0
43
167
  },
44
- "data-testid": testId,
168
+ className: classNames,
169
+ description,
45
170
  errorMessage,
46
- id: testId,
47
- isDisabled: disabled,
48
- isInvalid: invalid,
49
- isRequired: required,
171
+ ids,
172
+ invalid,
50
173
  label,
51
- labelPlacement: "outside",
174
+ required,
175
+ children: /* @__PURE__ */ jsx(TextAreaInput, {
176
+ className: classNames,
177
+ field,
178
+ focused: isFocused,
179
+ hasValue,
180
+ hovered,
181
+ onHoverChange: setHovered,
182
+ placeholder
183
+ })
184
+ });
185
+ };
186
+ //#endregion
187
+ //#region src/TextArea/TextArea.tsx
188
+ /** Form input field for multiline text */
189
+ const TextArea = ({ className = void 0, debounceDelay = 300, name, placeholder = " ", ...uniformProps }) => {
190
+ const { field } = useUniformField({
191
+ ...uniformProps,
52
192
  name,
53
- onBlur,
54
- onChange,
55
- placeholder,
56
- value,
57
- variant: "bordered",
58
- children
193
+ placeholder
194
+ });
195
+ const { value, onChange, onBlur } = useInputValueDebounce({
196
+ debounceDelay,
197
+ name,
198
+ onBlur: field.onBlur,
199
+ onChange: field.onChange,
200
+ value: field.value
201
+ });
202
+ return /* @__PURE__ */ jsx(TextAreaControl, {
203
+ className,
204
+ field: {
205
+ ...field,
206
+ onBlur,
207
+ onChange,
208
+ value
209
+ },
210
+ placeholder
59
211
  });
60
212
  };
61
213
  //#endregion
62
214
  //#region src/TextArea/index.ts
63
215
  var TextArea_default = TextArea;
64
216
  //#endregion
65
- export { TextArea_default as default };
217
+ export { TextArea_default as default, textAreaVariants };
66
218
 
67
219
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","names":["HeroTextArea"],"sources":["../../src/TextArea/TextArea.tsx","../../src/TextArea/index.ts"],"sourcesContent":["import type { TVClassName, TVProps } from '@fuf-stack/pixel-utils';\nimport type { ReactNode } from 'react';\n\nimport { Textarea as HeroTextArea } from '@heroui/input';\n\nimport { tv, variantsToClassNames } from '@fuf-stack/pixel-utils';\n\nimport { useInputValueDebounce } from '../hooks/useInputValueDebounce';\nimport { useUniformField } from '../hooks/useUniformField';\n\n// input variants\nexport const textAreaVariants = tv({\n slots: {\n /** wrapper around the whole input */\n base: '',\n /** clear button */\n clearButton: '',\n /** actual input element */\n input: '',\n /** inner wrapper (HeroUI inputWrapper slot) */\n inputWrapper: 'bg-content1 group-data-[focus=true]:border-focus',\n },\n});\n\ntype VariantProps = TVProps<typeof textAreaVariants>;\ntype ClassName = TVClassName<typeof textAreaVariants>;\n\nexport interface TextAreaProps extends VariantProps {\n /** Custom aria-label for accessibility. If not provided, falls back to field name when no visible label exists */\n ariaLabel?: string;\n /** Child components. The content of the textarea. */\n children?: ReactNode;\n /** CSS class name */\n className?: ClassName;\n /** debounce delay in milliseconds for form state updates (default: 300ms) */\n debounceDelay?: number;\n /** Determines if the TextArea is disabled or not. */\n disabled?: boolean;\n /** Label displayed above the TextArea. */\n label?: ReactNode;\n /** Name the TextArea is registered at in HTML forms (react-hook-form). */\n name: string;\n /** placeholder for the textArea content. */\n placeholder?: string;\n /** Id to grab element in internal tests. */\n testId?: string;\n}\n\n/**\n * TextArea component based on [HeroUI TextArea](https://www.heroui.com//docs/components/textarea)\n */\nconst TextArea = ({\n children = null,\n className: _className = undefined,\n debounceDelay = 300,\n name,\n placeholder = ' ',\n ...uniformFieldProps\n}: TextAreaProps) => {\n const {\n ariaLabel,\n disabled,\n errorMessage,\n field: {\n onChange: fieldOnChange,\n onBlur: fieldOnBlur,\n value: fieldValue,\n ref,\n },\n invalid,\n label,\n required,\n testId,\n } = useUniformField({ name, ...uniformFieldProps });\n\n // Use debounced handlers for form updates\n const { onChange, onBlur, value } = useInputValueDebounce({\n debounceDelay,\n name,\n onBlur: fieldOnBlur,\n onChange: fieldOnChange,\n value: fieldValue,\n });\n\n // classNames from slots\n const variants = textAreaVariants();\n const classNames = variantsToClassNames(variants, _className, 'base');\n\n return (\n <HeroTextArea\n ref={ref}\n // Only add aria-label if there's no meaningful placeholder (HeroUI uses placeholder as aria-label)\n aria-label={\n !placeholder || placeholder.trim() === '' ? ariaLabel : undefined\n }\n classNames={{\n base: classNames.base,\n clearButton: classNames.clearButton,\n // set padding to 0 for error message exit animation\n helperWrapper: 'p-0',\n input: classNames.input,\n inputWrapper: classNames.inputWrapper,\n }}\n data-testid={testId}\n errorMessage={errorMessage}\n id={testId}\n isDisabled={disabled}\n isInvalid={invalid}\n isRequired={required}\n label={label}\n labelPlacement=\"outside\"\n name={name}\n onBlur={onBlur}\n onChange={onChange}\n placeholder={placeholder}\n value={value}\n variant=\"bordered\"\n >\n {children}\n </HeroTextArea>\n );\n};\n\nexport default TextArea;\n","import TextArea from './TextArea';\n\nexport type { TextAreaProps } from './TextArea';\n\nexport default TextArea;\n"],"mappings":";;;;;;AAWA,MAAa,mBAAmB,GAAG,EACjC,OAAO;;CAEL,MAAM;;CAEN,aAAa;;CAEb,OAAO;;CAEP,cAAc;AAChB,EACF,CAAC;;;;AA6BD,MAAM,YAAY,EAChB,WAAW,MACX,WAAW,aAAa,KAAA,GACxB,gBAAgB,KAChB,MACA,cAAc,KACd,GAAG,wBACgB;CACnB,MAAM,EACJ,WACA,UACA,cACA,OAAO,EACL,UAAU,eACV,QAAQ,aACR,OAAO,YACP,OAEF,SACA,OACA,UACA,WACE,gBAAgB;EAAE;EAAM,GAAG;CAAkB,CAAC;CAGlD,MAAM,EAAE,UAAU,QAAQ,UAAU,sBAAsB;EACxD;EACA;EACA,QAAQ;EACR,UAAU;EACV,OAAO;CACT,CAAC;CAGD,MAAM,WAAW,iBAAiB;CAClC,MAAM,aAAa,qBAAqB,UAAU,YAAY,MAAM;CAEpE,OACE,oBAACA,UAAD;EACO;EAEL,cACE,CAAC,eAAe,YAAY,KAAK,MAAM,KAAK,YAAY,KAAA;EAE1D,YAAY;GACV,MAAM,WAAW;GACjB,aAAa,WAAW;GAExB,eAAe;GACf,OAAO,WAAW;GAClB,cAAc,WAAW;EAC3B;EACA,eAAa;EACC;EACd,IAAI;EACJ,YAAY;EACZ,WAAW;EACX,YAAY;EACL;EACP,gBAAe;EACT;EACE;EACE;EACG;EACN;EACP,SAAQ;EAEP;CACW,CAAA;AAElB;;;ACrHA,IAAA,mBAAe"}
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../../src/TextArea/textAreaVariants.ts","../../src/TextArea/subcomponents/TextAreaInput.tsx","../../src/TextArea/subcomponents/TextAreaControl.tsx","../../src/TextArea/TextArea.tsx","../../src/TextArea/index.ts"],"sourcesContent":["import type { TVClassName, TVProps } from '@fuf-stack/pixel-utils';\n\nimport { tv } from '@fuf-stack/pixel-utils';\n\n/** Textarea slot styles with disabled, filled and invalid states */\nexport const textAreaVariants = tv({\n slots: {\n /** Container for the label, input and messages */\n base: 'group relative flex w-full flex-col',\n /** Reserved clear action slot */\n clearButton: '',\n /** Supporting text below the textarea */\n description: 'text-foreground-500 text-tiny',\n /** Validation message container */\n errorMessage: 'text-danger text-tiny',\n /** Container for help text and validation messages */\n helperWrapper: 'relative flex flex-col p-0',\n /** Container around the autosizing textarea */\n innerWrapper: 'inline-flex w-full items-start',\n /** Editable multiline text */\n input: [\n // editable text and transparent surface\n 'w-full min-w-0 resize-none bg-transparent bg-clip-text font-normal text-inherit outline-none',\n // autosize transition\n 'duration-100 transition-height text-small',\n // placeholder and autofill\n 'placeholder:text-foreground-500 autofill:bg-transparent',\n // scrollbar visibility and reduced motion\n 'data-[hide-scroll=true]:[scrollbar-width:none] motion-reduce:transition-none',\n // browser-specific textarea appearance\n 'dark:autofill:[-webkit-text-fill-color:var(--pixel-color-foreground)] data-[hide-scroll=true]:[&::-webkit-scrollbar]:hidden',\n ],\n /** Bordered surface around the textarea */\n inputWrapper: [\n // textarea frame and layout\n 'shadow-xs relative inline-flex w-full cursor-text items-start',\n // bordered surface and text\n 'rounded-medium border-medium border-default-200 bg-content1 px-3 py-2 text-foreground',\n // interaction transitions\n 'transition-colors',\n // hover and focus borders\n 'data-[hover=true]:border-default-400 group-data-[focus=true]:border-focus group-data-[focus=true]:data-[hover=true]:border-default-foreground',\n // reduced motion\n 'motion-reduce:transition-none',\n ],\n /** Label above the textarea */\n label: 'block pb-1.5 text-foreground text-small',\n },\n variants: {\n disabled: { true: { base: 'pointer-events-none opacity-disabled' } },\n filled: {\n true: {\n base: 'is-filled',\n input: 'is-filled',\n inputWrapper: 'is-filled',\n },\n },\n invalid: {\n true: {\n input: 'text-danger placeholder:text-danger',\n inputWrapper:\n 'border-danger data-[hover=true]:border-danger group-data-[focus=true]:border-danger group-data-[focus=true]:data-[hover=true]:border-danger',\n label: 'text-danger',\n },\n },\n },\n});\n\nexport type VariantProps = TVProps<typeof textAreaVariants>;\n\nexport type ClassName = TVClassName<typeof textAreaVariants>;\n\n/** Resolved class names for the multiline input slots */\nexport type TextAreaClassNames = Record<\n keyof ReturnType<typeof textAreaVariants>,\n string\n>;\n\nexport default textAreaVariants;\n","import type { ComponentProps, MouseEvent } from 'react';\nimport type { UniformField } from '../../hooks/useUniformField/types';\nimport type { TextAreaProps } from '../TextArea';\nimport type { TextAreaClassNames } from '../textAreaVariants';\n\nimport { useState } from 'react';\nimport { Group } from 'react-aria-components';\nimport { useObjectRef } from 'react-aria/useObjectRef';\nimport { useTextField } from 'react-aria/useTextField';\nimport TextareaAutosize from 'react-textarea-autosize';\n\nimport { getFieldControlProps } from '../../helpers/fieldProps/fieldProps';\n\ninterface TextAreaInputProps extends Pick<TextAreaProps, 'placeholder'> {\n /** CSS class name */\n className: TextAreaClassNames;\n /** Bound field values, interactions and metadata */\n field: UniformField<unknown, string>;\n /** Focus within the field */\n focused: boolean;\n /** Whether the field contains a value */\n hasValue: boolean;\n /** Pointer hover state on the input surface */\n hovered: boolean;\n /** Reports hover changes for the field root selectors */\n onHoverChange: (hovered: boolean) => void;\n}\n\n/**\n * Autosizing textarea with wrapper focus routing and scroll-limit handling\n *\n * @see https://react-aria.adobe.com/useTextField\n * @see https://react-aria.adobe.com/Group\n */\nconst TextAreaInput = ({\n className: classNames,\n field,\n focused,\n hasValue,\n hovered,\n onHoverChange,\n placeholder,\n}: TextAreaInputProps) => {\n const controlRef = useObjectRef<HTMLTextAreaElement>(field.ref);\n const [limitReached, setLimitReached] = useState(false);\n\n const {\n disabled,\n invalid,\n name,\n onBlur,\n onChange: onValueChange,\n required,\n testId,\n value,\n } = field;\n const controlProps = getFieldControlProps(field);\n\n const { inputProps } = useTextField(\n {\n ...controlProps,\n inputElementType: 'textarea',\n isDisabled: disabled,\n isInvalid: invalid,\n isRequired: required,\n name,\n onBlur,\n onChange: onValueChange,\n validationBehavior: 'aria',\n value: String(value ?? ''),\n },\n controlRef,\n );\n\n // the autosizer accepts numeric heights, other ARIA styles remain unchanged\n const inputStyle = inputProps.style\n ? {\n ...inputProps.style,\n height:\n typeof inputProps.style.height === 'number'\n ? inputProps.style.height\n : undefined,\n }\n : undefined;\n\n // focus the input when its wrapper padding is clicked\n const handleWrapperClick = (event: MouseEvent<HTMLElement>) => {\n if (!disabled && event.target === event.currentTarget) {\n controlRef.current?.focus();\n }\n };\n\n // track hover for the existing root and wrapper selectors\n const handleHoverStart = () => {\n onHoverChange(true);\n };\n\n const handleHoverEnd = () => {\n onHoverChange(false);\n };\n\n // hide scrolling until the eight-row display limit is reached\n const handleHeightChange: NonNullable<\n ComponentProps<typeof TextareaAutosize>['onHeightChange']\n > = (height, { rowHeight }) => {\n setLimitReached(height >= rowHeight * 8);\n };\n\n return (\n <Group\n className={classNames.inputWrapper}\n data-focus={focused || undefined}\n data-hover={hovered || undefined}\n data-slot=\"input-wrapper\"\n isDisabled={disabled}\n onClick={handleWrapperClick}\n onHoverEnd={handleHoverEnd}\n onHoverStart={handleHoverStart}\n role=\"presentation\"\n >\n <div className={classNames.innerWrapper} data-slot=\"inner-wrapper\">\n <TextareaAutosize\n {...inputProps}\n {...controlProps}\n ref={controlRef}\n style={inputStyle}\n className={classNames.input}\n data-filled={hasValue || undefined}\n data-hide-scroll={!limitReached || undefined}\n data-slot=\"input\"\n data-testid={testId}\n maxRows={8}\n minRows={3}\n onHeightChange={handleHeightChange}\n placeholder={placeholder}\n />\n </div>\n </Group>\n );\n};\n\nexport default TextAreaInput;\n","import type { UniformField } from '../../hooks/useUniformField/types';\nimport type { TextAreaProps } from '../TextArea';\n\nimport { useState } from 'react';\nimport { useFocusRing } from 'react-aria/useFocusRing';\n\nimport { useStyling } from '@fuf-stack/pixels/StylingProvider';\n\nimport { getFieldDataAttributes } from '../../helpers/fieldProps/fieldProps';\nimport FieldLayout from '../../partials/FieldLayout/FieldLayout';\nimport { textAreaVariants } from '../textAreaVariants';\nimport TextAreaInput from './TextAreaInput';\n\ninterface TextAreaControlProps extends Pick<\n TextAreaProps,\n 'className' | 'placeholder'\n> {\n /** Bound field values, interactions and metadata */\n field: UniformField<unknown, string>;\n}\n\n/**\n * Multiline input presentation with autosizing, focus and field layout\n *\n * @see https://react-aria.adobe.com/useTextField\n * @see https://react-aria.adobe.com/Group\n */\nconst TextAreaControl = ({\n field,\n className,\n placeholder,\n}: TextAreaControlProps) => {\n const styling = useStyling();\n const { focusProps, isFocused, isFocusVisible } = useFocusRing({\n isTextInput: true,\n within: true,\n });\n const [hovered, setHovered] = useState(false);\n\n const {\n description,\n disabled,\n errorMessage,\n ids,\n invalid,\n label,\n required,\n value,\n } = field;\n\n // zero counts as a filled value\n const hasValue = value !== '' && value != null;\n\n // classNames from slots\n const variants = styling.resolve(textAreaVariants, {\n disabled,\n invalid,\n filled: hasValue,\n });\n const classNames = styling.variantsToClassNames(variants, className, 'base');\n\n return (\n <FieldLayout\n baseProps={{\n ...focusProps,\n ...getFieldDataAttributes(field),\n 'data-component': 'text-area',\n 'data-filled': hasValue || undefined,\n 'data-focus': isFocused || undefined,\n 'data-focus-visible': isFocusVisible || undefined,\n 'data-hover': hovered || undefined,\n }}\n className={classNames}\n description={description}\n errorMessage={errorMessage}\n ids={ids}\n invalid={invalid}\n label={label}\n required={required}\n >\n <TextAreaInput\n className={classNames}\n field={field}\n focused={isFocused}\n hasValue={hasValue}\n hovered={hovered}\n onHoverChange={setHovered}\n placeholder={placeholder}\n />\n </FieldLayout>\n );\n};\n\nexport default TextAreaControl;\n","import type { ReactNode } from 'react';\nimport type { ClassName } from './textAreaVariants';\n\nimport { useInputValueDebounce } from '../hooks/useInputValueDebounce';\nimport useUniformField from '../hooks/useUniformField/useUniformField';\nimport TextAreaControl from './subcomponents/TextAreaControl';\n\nexport { default as textAreaVariants } from './textAreaVariants';\n\nexport interface TextAreaProps {\n /** Custom aria-label for accessibility. If not provided, falls back to field name when no visible label exists */\n ariaLabel?: string;\n /** Child components. The content of the textarea. */\n children?: ReactNode;\n /** CSS class name */\n className?: ClassName;\n /** debounce delay in milliseconds for form state updates (default: 300ms) */\n debounceDelay?: number;\n /** Help text associated with the editable control. */\n description?: ReactNode;\n /** Determines if the TextArea is disabled or not. */\n disabled?: boolean;\n /** Label displayed above the TextArea. */\n label?: ReactNode;\n /** Name the TextArea is registered at in HTML forms (react-hook-form). */\n name: string;\n /** placeholder for the textArea content. */\n placeholder?: string;\n /** Id to grab element in internal tests. */\n testId?: string;\n}\n\n/** Form input field for multiline text */\nconst TextArea = ({\n className = undefined,\n debounceDelay = 300,\n name,\n placeholder = ' ',\n ...uniformProps\n}: TextAreaProps) => {\n const { field } = useUniformField({\n ...uniformProps,\n name,\n placeholder,\n });\n\n // debounce form updates, flush pending edits on blur\n const { value, onChange, onBlur } = useInputValueDebounce({\n debounceDelay,\n name,\n onBlur: field.onBlur,\n onChange: field.onChange,\n value: field.value,\n });\n\n return (\n <TextAreaControl\n className={className}\n field={{ ...field, onBlur, onChange, value }}\n placeholder={placeholder}\n />\n );\n};\n\nexport default TextArea;\n","import TextArea from './TextArea';\n\nexport type { TextAreaProps } from './TextArea';\n\nexport { textAreaVariants } from './textAreaVariants';\n\nexport default TextArea;\n"],"mappings":";;;;;;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