@mieweb/ui 0.6.1-dev.122 → 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.
- package/README.md +0 -8
- package/dist/brands/index.cjs +7 -7
- package/dist/brands/index.js +2 -2
- package/dist/{chunk-KJPOFUF5.cjs → chunk-AWUADXYI.cjs} +3 -3
- package/dist/{chunk-KJPOFUF5.cjs.map → chunk-AWUADXYI.cjs.map} +1 -1
- package/dist/{chunk-OXGUG57G.cjs → chunk-JLQTPLSY.cjs} +2 -2
- package/dist/{chunk-OXGUG57G.cjs.map → chunk-JLQTPLSY.cjs.map} +1 -1
- package/dist/{chunk-K3IVCUPP.js → chunk-MV337VA7.js} +2 -2
- package/dist/{chunk-K3IVCUPP.js.map → chunk-MV337VA7.js.map} +1 -1
- package/dist/{chunk-IUFDGB5O.js → chunk-WTDCNXZO.js} +3 -3
- package/dist/{chunk-IUFDGB5O.js.map → chunk-WTDCNXZO.js.map} +1 -1
- package/dist/components/AudioRecorder/index.d.cts +1 -1
- package/dist/components/AudioRecorder/index.d.ts +1 -1
- package/dist/components/Modal/index.cjs +10 -10
- package/dist/components/Modal/index.js +2 -2
- package/dist/index.cjs +202 -179
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.js +40 -16
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/utils/index.cjs +5 -5
- package/dist/utils/index.js +1 -1
- package/package.json +1 -16
- package/dist/ozwell.cjs +0 -385
- package/dist/ozwell.cjs.map +0 -1
- package/dist/ozwell.d.cts +0 -15
- package/dist/ozwell.d.ts +0 -15
- package/dist/ozwell.js +0 -360
- package/dist/ozwell.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -1085,6 +1085,8 @@ interface MessageComposerProps {
|
|
|
1085
1085
|
onCancelReply?: () => void;
|
|
1086
1086
|
/** Visual variant - 'default' shows border-t, 'minimal' has no border */
|
|
1087
1087
|
variant?: 'default' | 'minimal';
|
|
1088
|
+
/** Content to render inside the input wrapper (e.g. a mic button) */
|
|
1089
|
+
inputTrailing?: React$1.ReactNode;
|
|
1088
1090
|
/** Additional class name */
|
|
1089
1091
|
className?: string;
|
|
1090
1092
|
}
|
|
@@ -1139,6 +1141,10 @@ interface AIChatProps extends VariantProps<typeof chatVariants>, AIChatCallbacks
|
|
|
1139
1141
|
height?: string | number;
|
|
1140
1142
|
/** Props to pass to the MessageComposer */
|
|
1141
1143
|
composerProps?: Partial<MessageComposerProps>;
|
|
1144
|
+
/** Enable talk-to-text microphone button inside the input */
|
|
1145
|
+
talkToText?: boolean;
|
|
1146
|
+
/** Callback when recording completes (receives audio blob and duration) */
|
|
1147
|
+
onRecordingComplete?: (blob: Blob, duration: number) => void;
|
|
1142
1148
|
/** Callback when close button is clicked (shows close button when provided) */
|
|
1143
1149
|
onClose?: () => void;
|
|
1144
1150
|
/**
|
|
@@ -1153,7 +1159,7 @@ interface AIChatProps extends VariantProps<typeof chatVariants>, AIChatCallbacks
|
|
|
1153
1159
|
* A complete AI chat interface with message history, input, and tool call support.
|
|
1154
1160
|
* Reuses MessageComposer from the Messaging components for consistent UX.
|
|
1155
1161
|
*/
|
|
1156
|
-
declare function AIChat({ session, messages: messagesProp, isGenerating: isGeneratingProp, userName, title, suggestions, showHeader, showTimestamps, inputPlaceholder, variant, size, height, composerProps, className, onSendMessage, onToolCall: _onToolCall, onResourceClick, onSuggestedAction, onCancel, onClear, onClose, renderTextContent, }: AIChatProps): react_jsx_runtime.JSX.Element;
|
|
1162
|
+
declare function AIChat({ session, messages: messagesProp, isGenerating: isGeneratingProp, userName, title, suggestions, showHeader, showTimestamps, inputPlaceholder, variant, size, height, composerProps, talkToText, onRecordingComplete, className, onSendMessage, onToolCall: _onToolCall, onResourceClick, onSuggestedAction, onCancel, onClear, onClose, renderTextContent, }: AIChatProps): react_jsx_runtime.JSX.Element;
|
|
1157
1163
|
|
|
1158
1164
|
interface AIChatTriggerProps {
|
|
1159
1165
|
/** Whether the chat is open */
|
package/dist/index.d.ts
CHANGED
|
@@ -1085,6 +1085,8 @@ interface MessageComposerProps {
|
|
|
1085
1085
|
onCancelReply?: () => void;
|
|
1086
1086
|
/** Visual variant - 'default' shows border-t, 'minimal' has no border */
|
|
1087
1087
|
variant?: 'default' | 'minimal';
|
|
1088
|
+
/** Content to render inside the input wrapper (e.g. a mic button) */
|
|
1089
|
+
inputTrailing?: React$1.ReactNode;
|
|
1088
1090
|
/** Additional class name */
|
|
1089
1091
|
className?: string;
|
|
1090
1092
|
}
|
|
@@ -1139,6 +1141,10 @@ interface AIChatProps extends VariantProps<typeof chatVariants>, AIChatCallbacks
|
|
|
1139
1141
|
height?: string | number;
|
|
1140
1142
|
/** Props to pass to the MessageComposer */
|
|
1141
1143
|
composerProps?: Partial<MessageComposerProps>;
|
|
1144
|
+
/** Enable talk-to-text microphone button inside the input */
|
|
1145
|
+
talkToText?: boolean;
|
|
1146
|
+
/** Callback when recording completes (receives audio blob and duration) */
|
|
1147
|
+
onRecordingComplete?: (blob: Blob, duration: number) => void;
|
|
1142
1148
|
/** Callback when close button is clicked (shows close button when provided) */
|
|
1143
1149
|
onClose?: () => void;
|
|
1144
1150
|
/**
|
|
@@ -1153,7 +1159,7 @@ interface AIChatProps extends VariantProps<typeof chatVariants>, AIChatCallbacks
|
|
|
1153
1159
|
* A complete AI chat interface with message history, input, and tool call support.
|
|
1154
1160
|
* Reuses MessageComposer from the Messaging components for consistent UX.
|
|
1155
1161
|
*/
|
|
1156
|
-
declare function AIChat({ session, messages: messagesProp, isGenerating: isGeneratingProp, userName, title, suggestions, showHeader, showTimestamps, inputPlaceholder, variant, size, height, composerProps, className, onSendMessage, onToolCall: _onToolCall, onResourceClick, onSuggestedAction, onCancel, onClear, onClose, renderTextContent, }: AIChatProps): react_jsx_runtime.JSX.Element;
|
|
1162
|
+
declare function AIChat({ session, messages: messagesProp, isGenerating: isGeneratingProp, userName, title, suggestions, showHeader, showTimestamps, inputPlaceholder, variant, size, height, composerProps, talkToText, onRecordingComplete, className, onSendMessage, onToolCall: _onToolCall, onResourceClick, onSuggestedAction, onCancel, onClear, onClose, renderTextContent, }: AIChatProps): react_jsx_runtime.JSX.Element;
|
|
1157
1163
|
|
|
1158
1164
|
interface AIChatTriggerProps {
|
|
1159
1165
|
/** Whether the chat is open */
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export { brands } from './chunk-K3IVCUPP.js';
|
|
3
|
-
export { miewebBrand } from './chunk-NERS5ZT6.js';
|
|
1
|
+
export { brands } from './chunk-MV337VA7.js';
|
|
4
2
|
export { wagglelineBrand } from './chunk-2NTYAALC.js';
|
|
5
3
|
export { webchartBrand } from './chunk-CW66SO5O.js';
|
|
6
4
|
export { createBrandPreset, generateBrandCSS, generateTailwindTheme } from './chunk-WOYUQ4AT.js';
|
|
@@ -9,8 +7,7 @@ export { ccmeBrand } from './chunk-SCQRJPSV.js';
|
|
|
9
7
|
export { ozwellBrand } from './chunk-5YUBQIC7.js';
|
|
10
8
|
export { defaultBrand } from './chunk-PSTGFXQG.js';
|
|
11
9
|
export { enterpriseHealthBrand } from './chunk-MTZPVOP6.js';
|
|
12
|
-
|
|
13
|
-
export { FullPageSpinner, Spinner, SpinnerWithLabel, spinnerVariants } from './chunk-VCO2IZOG.js';
|
|
10
|
+
export { miewebBrand } from './chunk-NERS5ZT6.js';
|
|
14
11
|
import { Switch } from './chunk-43GBCUSQ.js';
|
|
15
12
|
export { Switch, switchThumbVariants, switchTrackVariants } from './chunk-43GBCUSQ.js';
|
|
16
13
|
import { Table, TableHeader, TableRow, TableHead, TableBody, TableCell } from './chunk-KL2S36FM.js';
|
|
@@ -24,11 +21,11 @@ export { Textarea, textareaVariants } from './chunk-6LFG4JFF.js';
|
|
|
24
21
|
export { ThemeProvider, ThemeProviderContext, ThemeToggle, themeToggleIconVariants, themeToggleVariants, useThemeContext } from './chunk-I56VBDSC.js';
|
|
25
22
|
import { Tooltip } from './chunk-FZJBFJJR.js';
|
|
26
23
|
export { Tooltip } from './chunk-FZJBFJJR.js';
|
|
27
|
-
|
|
28
|
-
export { CircularProgress, Progress, circularProgressVariants, progressBarFillVariants, progressBarTrackVariants } from './chunk-IYIYL2SQ.js';
|
|
24
|
+
export { VisuallyHidden } from './chunk-H2CIKJQI.js';
|
|
29
25
|
export { QuickAction, QuickActionGroup, QuickActionIcons, quickActionIconVariants, quickActionVariants } from './chunk-3CJBUAJ4.js';
|
|
30
26
|
import { RadioGroup, Radio } from './chunk-EZKRAW2X.js';
|
|
31
27
|
export { Radio, RadioGroup, radioVariants } from './chunk-EZKRAW2X.js';
|
|
28
|
+
import { RecordButton } from './chunk-QVJBUWJQ.js';
|
|
32
29
|
export { RecordButton, formatDuration, recordButtonVariants } from './chunk-QVJBUWJQ.js';
|
|
33
30
|
export { DateButton, DatePicker, RadioOption, SchedulePicker, TimeButton, TimePicker, dateButtonVariants, radioOptionVariants, timeButtonVariants } from './chunk-4DMZAVB2.js';
|
|
34
31
|
import { Select } from './chunk-R25H4N4Z.js';
|
|
@@ -36,21 +33,21 @@ export { Select, selectTriggerVariants } from './chunk-R25H4N4Z.js';
|
|
|
36
33
|
import { Skeleton } from './chunk-4Z6ZZKIY.js';
|
|
37
34
|
export { Skeleton, SkeletonCard, SkeletonTable, SkeletonText, skeletonVariants } from './chunk-4Z6ZZKIY.js';
|
|
38
35
|
export { Slider, sliderRangeVariants, sliderThumbVariants, sliderTrackVariants } from './chunk-JBB25LFB.js';
|
|
39
|
-
import {
|
|
40
|
-
export {
|
|
36
|
+
import { Spinner, SpinnerWithLabel } from './chunk-VCO2IZOG.js';
|
|
37
|
+
export { FullPageSpinner, Spinner, SpinnerWithLabel, spinnerVariants } from './chunk-VCO2IZOG.js';
|
|
41
38
|
export { CountryCodeDropdown, formatE164, validatePhoneNumber } from './chunk-WFS6R2F5.js';
|
|
42
39
|
import { DateInput } from './chunk-HYEJLKXI.js';
|
|
43
40
|
export { DateInput } from './chunk-HYEJLKXI.js';
|
|
44
41
|
import { Dropdown, DropdownItem, DropdownSeparator } from './chunk-MPOWJVV4.js';
|
|
45
42
|
export { Dropdown, DropdownContent, DropdownHeader, DropdownItem, DropdownLabel, DropdownSeparator } from './chunk-MPOWJVV4.js';
|
|
46
|
-
import { Modal, ModalHeader, ModalTitle, ModalClose, ModalBody, ModalFooter } from './chunk-
|
|
47
|
-
export { Modal, ModalBody, ModalClose, ModalFooter, ModalHeader, ModalTitle, modalContentVariants, modalOverlayVariants } from './chunk-
|
|
43
|
+
import { Modal, ModalHeader, ModalTitle, ModalClose, ModalBody, ModalFooter } from './chunk-WTDCNXZO.js';
|
|
44
|
+
export { Modal, ModalBody, ModalClose, ModalFooter, ModalHeader, ModalTitle, modalContentVariants, modalOverlayVariants } from './chunk-WTDCNXZO.js';
|
|
48
45
|
export { Pagination, SimplePagination, paginationButtonVariants } from './chunk-J3BU3JBX.js';
|
|
49
46
|
export { PhoneInput, PhoneInputGroup } from './chunk-OX2RIVN7.js';
|
|
50
47
|
import { Input } from './chunk-PVUDXJAI.js';
|
|
51
48
|
export { Input, inputVariants } from './chunk-PVUDXJAI.js';
|
|
52
|
-
import {
|
|
53
|
-
export {
|
|
49
|
+
import { Progress } from './chunk-IYIYL2SQ.js';
|
|
50
|
+
export { CircularProgress, Progress, circularProgressVariants, progressBarFillVariants, progressBarTrackVariants } from './chunk-IYIYL2SQ.js';
|
|
54
51
|
export { AudioPlayer, ProgressBar, audioPlayerVariants, formatTime as formatAudioTime, playButtonVariants } from './chunk-KAKH2UZA.js';
|
|
55
52
|
export { AudioRecorder, audioRecorderVariants, controlButtonVariants, formatTime, waveformContainerVariants } from './chunk-TRZXK57D.js';
|
|
56
53
|
import { Avatar } from './chunk-WO5CAOAN.js';
|
|
@@ -62,6 +59,8 @@ import { Button, buttonVariants } from './chunk-ZVSW2KS6.js';
|
|
|
62
59
|
export { Button, buttonVariants } from './chunk-ZVSW2KS6.js';
|
|
63
60
|
import { Card, CardHeader, CardContent, CardTitle } from './chunk-6555OYRU.js';
|
|
64
61
|
export { Card, CardActions, CardBadge, CardCollapsible, CardContent, CardDescription, CardDivider, CardFooter, CardHeader, CardMedia, CardStat, CardTitle, cardAccentVariants, cardVariants } from './chunk-6555OYRU.js';
|
|
62
|
+
import { Checkbox } from './chunk-XCLQZ4FV.js';
|
|
63
|
+
export { Checkbox, CheckboxGroup, checkboxVariants } from './chunk-XCLQZ4FV.js';
|
|
65
64
|
import { Clock, FileText, ArrowLeft, Stethoscope, Users, Mail, Phone, Share, ChevronDown, User, Download, ExternalLink, MoreVertical, Pencil, Send, Calendar, Printer, ClipboardPlus, ClipboardCheck, FilePlus, FileCheck, Wheat, Pill, Bell, FileHeart, HeartPulse, AlertCircle as AlertCircle$1, Paperclip, ClipboardList, MoreHorizontal, Trash2, Plus, CheckCircle, Upload as Upload$1, Scan, Camera, ScanLine, RefreshCw as RefreshCw$1, Image, X as X$1, Eye, Check as Check$1 } from './chunk-LEMY57MI.js';
|
|
66
65
|
import { useCommandK, useIsMobile, useMediaQuery, useScrollSpy } from './chunk-Q7NBJFEB.js';
|
|
67
66
|
export { useCommandK, useIsDesktop, useIsLargeDesktop, useIsMobile, useIsMobileOrTablet, useIsSmallTablet, useIsTablet, useKeyboardShortcut, useMediaQuery, useScrollSpy } from './chunk-Q7NBJFEB.js';
|
|
@@ -77,11 +76,13 @@ import './chunk-V2DF2GUE.js';
|
|
|
77
76
|
import { dateToDisplayFormat, isValidDate, displayFormatToDateString } from './chunk-RC2YMOMS.js';
|
|
78
77
|
export { calculateAge, dateToDisplayFormat, displayFormatToDateString, formatDateValue, isDateEmpty, isDateInFuture, isDateInPast, isValidDate, isValidDrivingAge, parseDateValue } from './chunk-RC2YMOMS.js';
|
|
79
78
|
export { formatPhoneNumber, isPhoneNumberEmpty, isValidPhoneNumber, unformatPhoneNumber } from './chunk-ZVPJ2MH6.js';
|
|
80
|
-
import { cn } from './chunk-F3SOEIN2.js';
|
|
81
|
-
export { cn } from './chunk-F3SOEIN2.js';
|
|
82
79
|
import { isStorybookDocsMode } from './chunk-VSQF22GL.js';
|
|
83
80
|
export { isStorybookDocsMode } from './chunk-VSQF22GL.js';
|
|
84
81
|
export { miewebUIPreset, miewebUISafelist } from './chunk-2DS3RJ2D.js';
|
|
82
|
+
import { Alert, AlertTitle, AlertDescription } from './chunk-MV3MTHWQ.js';
|
|
83
|
+
export { Alert, AlertDescription, AlertTitle, alertVariants } from './chunk-MV3MTHWQ.js';
|
|
84
|
+
import { cn } from './chunk-F3SOEIN2.js';
|
|
85
|
+
export { cn } from './chunk-F3SOEIN2.js';
|
|
85
86
|
import * as React48 from 'react';
|
|
86
87
|
import React48__default, { createContext, useState, useEffect, useCallback, useMemo, useContext, useRef } from 'react';
|
|
87
88
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
@@ -3145,6 +3146,7 @@ var MessageComposer = React48.forwardRef(
|
|
|
3145
3146
|
replyTo = null,
|
|
3146
3147
|
onCancelReply,
|
|
3147
3148
|
variant = "default",
|
|
3149
|
+
inputTrailing,
|
|
3148
3150
|
className
|
|
3149
3151
|
}, ref) => {
|
|
3150
3152
|
const textareaRef = React48.useRef(null);
|
|
@@ -3390,7 +3392,8 @@ var MessageComposer = React48.forwardRef(
|
|
|
3390
3392
|
disabled: disabled || isSending,
|
|
3391
3393
|
rows: 1,
|
|
3392
3394
|
className: cn(
|
|
3393
|
-
"w-full resize-none rounded-2xl
|
|
3395
|
+
"w-full resize-none rounded-2xl py-2.5",
|
|
3396
|
+
inputTrailing ? "pr-10 pl-4" : "px-4",
|
|
3394
3397
|
"bg-neutral-100 dark:bg-neutral-800",
|
|
3395
3398
|
"text-neutral-900 dark:text-neutral-100",
|
|
3396
3399
|
"placeholder:text-neutral-400 dark:placeholder:text-neutral-500",
|
|
@@ -3403,6 +3406,14 @@ var MessageComposer = React48.forwardRef(
|
|
|
3403
3406
|
"aria-describedby": showCharacterCount ? "char-count" : void 0
|
|
3404
3407
|
}
|
|
3405
3408
|
),
|
|
3409
|
+
inputTrailing && /* @__PURE__ */ jsx(
|
|
3410
|
+
"div",
|
|
3411
|
+
{
|
|
3412
|
+
"data-slot": "composer-input-trailing",
|
|
3413
|
+
className: "pointer-events-none absolute top-0 right-1 flex h-[44px] items-center [&>*]:pointer-events-auto",
|
|
3414
|
+
children: inputTrailing
|
|
3415
|
+
}
|
|
3416
|
+
),
|
|
3406
3417
|
showCharacterCount && /* @__PURE__ */ jsx(
|
|
3407
3418
|
"div",
|
|
3408
3419
|
{
|
|
@@ -4678,6 +4689,8 @@ function AIChat({
|
|
|
4678
4689
|
size,
|
|
4679
4690
|
height,
|
|
4680
4691
|
composerProps,
|
|
4692
|
+
talkToText = false,
|
|
4693
|
+
onRecordingComplete,
|
|
4681
4694
|
className,
|
|
4682
4695
|
onSendMessage,
|
|
4683
4696
|
onToolCall: _onToolCall,
|
|
@@ -4832,6 +4845,17 @@ function AIChat({
|
|
|
4832
4845
|
showCameraButton: false,
|
|
4833
4846
|
showCharacterCount: false,
|
|
4834
4847
|
variant: "minimal",
|
|
4848
|
+
inputTrailing: talkToText ? /* @__PURE__ */ jsx(
|
|
4849
|
+
RecordButton,
|
|
4850
|
+
{
|
|
4851
|
+
variant: "ghost",
|
|
4852
|
+
size: "sm",
|
|
4853
|
+
showPulse: false,
|
|
4854
|
+
showWaveform: true,
|
|
4855
|
+
disabled: isGenerating,
|
|
4856
|
+
onRecordingComplete
|
|
4857
|
+
}
|
|
4858
|
+
) : void 0,
|
|
4835
4859
|
...composerProps
|
|
4836
4860
|
}
|
|
4837
4861
|
)
|