@mordn/chat-widget 0.6.1 → 0.6.2

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.
package/dist/index.js CHANGED
@@ -220,11 +220,13 @@ var import_lucide_react3 = require("lucide-react");
220
220
  var import_jsx_runtime6 = require("react/jsx-runtime");
221
221
 
222
222
  // src/ui/textarea.tsx
223
+ var React = __toESM(require("react"));
223
224
  var import_jsx_runtime7 = require("react/jsx-runtime");
224
- function Textarea({ className, ...props }) {
225
+ var Textarea = React.forwardRef(({ className, ...props }, ref) => {
225
226
  return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
226
227
  "textarea",
227
228
  {
229
+ ref,
228
230
  "data-slot": "textarea",
229
231
  className: cn(
230
232
  "border-input placeholder:text-muted-foreground focus-visible:border-ring aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-[14px] transition-colors outline-none disabled:cursor-not-allowed disabled:opacity-50",
@@ -233,7 +235,8 @@ function Textarea({ className, ...props }) {
233
235
  ...props
234
236
  }
235
237
  );
236
- }
238
+ });
239
+ Textarea.displayName = "Textarea";
237
240
 
238
241
  // src/components/prompt-input.tsx
239
242
  var import_lucide_react4 = require("lucide-react");
@@ -2936,9 +2939,9 @@ function useChatTheme() {
2936
2939
  }
2937
2940
 
2938
2941
  // src/ui/input.tsx
2939
- var React2 = __toESM(require("react"));
2942
+ var React3 = __toESM(require("react"));
2940
2943
  var import_jsx_runtime23 = require("react/jsx-runtime");
2941
- var Input = React2.forwardRef(
2944
+ var Input = React3.forwardRef(
2942
2945
  ({ className, type, ...props }, ref) => {
2943
2946
  return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2944
2947
  "input",