@mieweb/ui 0.6.1-dev.123 → 0.6.1-dev.124

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.
@@ -62,7 +62,7 @@ declare const audioRecorderVariants: (props?: ({
62
62
  variant?: "default" | "minimal" | "elevated" | null | undefined;
63
63
  } & class_variance_authority_types.ClassProp) | undefined) => string;
64
64
  declare const waveformContainerVariants: (props?: ({
65
- state?: "paused" | "idle" | "listening" | "recording" | "stopped" | "playback" | null | undefined;
65
+ state?: "paused" | "idle" | "recording" | "listening" | "stopped" | "playback" | null | undefined;
66
66
  } & class_variance_authority_types.ClassProp) | undefined) => string;
67
67
  declare const controlButtonVariants: (props?: ({
68
68
  variant?: "primary" | "secondary" | "ghost" | "danger" | null | undefined;
@@ -62,7 +62,7 @@ declare const audioRecorderVariants: (props?: ({
62
62
  variant?: "default" | "minimal" | "elevated" | null | undefined;
63
63
  } & class_variance_authority_types.ClassProp) | undefined) => string;
64
64
  declare const waveformContainerVariants: (props?: ({
65
- state?: "paused" | "idle" | "listening" | "recording" | "stopped" | "playback" | null | undefined;
65
+ state?: "paused" | "idle" | "recording" | "listening" | "stopped" | "playback" | null | undefined;
66
66
  } & class_variance_authority_types.ClassProp) | undefined) => string;
67
67
  declare const controlButtonVariants: (props?: ({
68
68
  variant?: "primary" | "secondary" | "ghost" | "danger" | null | undefined;
package/dist/index.cjs CHANGED
@@ -3138,6 +3138,7 @@ var MessageComposer = React48__namespace.forwardRef(
3138
3138
  replyTo = null,
3139
3139
  onCancelReply,
3140
3140
  variant = "default",
3141
+ inputTrailing,
3141
3142
  className
3142
3143
  }, ref) => {
3143
3144
  const textareaRef = React48__namespace.useRef(null);
@@ -3383,7 +3384,8 @@ var MessageComposer = React48__namespace.forwardRef(
3383
3384
  disabled: disabled || isSending,
3384
3385
  rows: 1,
3385
3386
  className: chunkOR5DRJCW_cjs.cn(
3386
- "w-full resize-none rounded-2xl px-4 py-2.5",
3387
+ "w-full resize-none rounded-2xl py-2.5",
3388
+ inputTrailing ? "pr-10 pl-4" : "px-4",
3387
3389
  "bg-neutral-100 dark:bg-neutral-800",
3388
3390
  "text-neutral-900 dark:text-neutral-100",
3389
3391
  "placeholder:text-neutral-400 dark:placeholder:text-neutral-500",
@@ -3396,6 +3398,14 @@ var MessageComposer = React48__namespace.forwardRef(
3396
3398
  "aria-describedby": showCharacterCount ? "char-count" : void 0
3397
3399
  }
3398
3400
  ),
3401
+ inputTrailing && /* @__PURE__ */ jsxRuntime.jsx(
3402
+ "div",
3403
+ {
3404
+ "data-slot": "composer-input-trailing",
3405
+ className: "pointer-events-none absolute top-0 right-1 flex h-[44px] items-center [&>*]:pointer-events-auto",
3406
+ children: inputTrailing
3407
+ }
3408
+ ),
3399
3409
  showCharacterCount && /* @__PURE__ */ jsxRuntime.jsx(
3400
3410
  "div",
3401
3411
  {
@@ -4671,6 +4681,8 @@ function AIChat({
4671
4681
  size,
4672
4682
  height,
4673
4683
  composerProps,
4684
+ talkToText = false,
4685
+ onRecordingComplete,
4674
4686
  className,
4675
4687
  onSendMessage,
4676
4688
  onToolCall: _onToolCall,
@@ -4825,6 +4837,17 @@ function AIChat({
4825
4837
  showCameraButton: false,
4826
4838
  showCharacterCount: false,
4827
4839
  variant: "minimal",
4840
+ inputTrailing: talkToText ? /* @__PURE__ */ jsxRuntime.jsx(
4841
+ chunkK7IGBNZA_cjs.RecordButton,
4842
+ {
4843
+ variant: "ghost",
4844
+ size: "sm",
4845
+ showPulse: false,
4846
+ showWaveform: true,
4847
+ disabled: isGenerating,
4848
+ onRecordingComplete
4849
+ }
4850
+ ) : void 0,
4828
4851
  ...composerProps
4829
4852
  }
4830
4853
  )