@admin-layout/tailwind-ui 12.2.4-alpha.34 → 12.2.4-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.
@@ -1 +1 @@
1
- {"version":3,"file":"AIToolBar.d.ts","sourceRoot":"","sources":["../../../../src/components/AIToolbar/components/AIToolBar.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAO1C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAGjD;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,SAAS,CAAC,EACtB,QAAgB,EAChB,WAAW,EACX,UAAU,EACV,gBAAuB,EACvB,cAAqB,EACrB,UAAU,EACV,QAAQ,EACR,eAAe,EACf,QAAQ,EACR,SAAS,EACT,gBAAgB,GACnB,EAAE,iBAAiB,2CAgEnB;AAED,OAAO,EAAE,UAAU,EAAE,CAAC;AACtB,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"AIToolBar.d.ts","sourceRoot":"","sources":["../../../../src/components/AIToolbar/components/AIToolBar.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAO1C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAGjD;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,SAAS,CAAC,EACtB,QAAgB,EAChB,WAAW,EACX,UAAU,EACV,gBAAuB,EACvB,cAAqB,EACrB,UAAU,EACV,QAAQ,EACR,eAAe,EACf,QAAQ,EACR,SAAS,EACT,gBAAgB,GACnB,EAAE,iBAAiB,2CAiEnB;AAED,OAAO,EAAE,UAAU,EAAE,CAAC;AACtB,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC"}
@@ -30,7 +30,9 @@ function AIToolBar({
30
30
  const showCustomCursor = Boolean(platform && cursorType === 'invisible' && platform !== 'linux');
31
31
  return jsxs(Fragment, {
32
32
  children: [jsx("div", {
33
- className: cn('flex h-screen w-screen items-start justify-center overflow-hidden', isHidden ? 'pointer-events-none hidden' : '', className),
33
+ className: cn(
34
+ // Default shrink-wraps so floating hosts (e.g. Tauri strip) can size the window to content; use className="min-h-screen w-screen" for full-viewport layouts.
35
+ 'flex min-h-0 h-auto w-full items-start justify-center overflow-visible', isHidden ? 'pointer-events-none hidden' : '', className),
34
36
  children: jsxs(AIToolbar, {
35
37
  className: cn('w-full', toolbarClassName),
36
38
  children: [jsx(AIToolbarLeading, {
@@ -1 +1 @@
1
- {"version":3,"file":"AIToolBar.js","sources":["../../../../src/components/AIToolbar/components/AIToolBar.tsx"],"sourcesContent":[null],"names":[],"mappings":";;;;;;AA2BG;AACH;AA8EA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"AIToolBar.js","sources":["../../../../src/components/AIToolbar/components/AIToolBar.tsx"],"sourcesContent":[null],"names":[],"mappings":";;;;;;AA2BG;AACH;AA+EA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -13,7 +13,7 @@ function AIToolbarLeading({
13
13
  ...props
14
14
  }) {
15
15
  return jsx("div", {
16
- className: cn('flex shrink-0 flex-row items-center gap-2', className),
16
+ className: cn('flex shrink-0 flex-row gap-2', className),
17
17
  ...props
18
18
  });
19
19
  }
@@ -22,7 +22,7 @@ function AIToolbarMain({
22
22
  ...props
23
23
  }) {
24
24
  return jsx("div", {
25
- className: cn('flex min-h-10 min-w-0 flex-1 flex-row items-center gap-2', className),
25
+ className: cn('flex min-h-10 min-w-0 flex-1 flex-row gap-2', className),
26
26
  ...props
27
27
  });
28
28
  }
@@ -31,7 +31,7 @@ function AIToolbarTrailing({
31
31
  ...props
32
32
  }) {
33
33
  return jsx("div", {
34
- className: cn('flex shrink-0 flex-row items-center gap-2', className),
34
+ className: cn('flex shrink-0 flex-row gap-2', className),
35
35
  ...props
36
36
  });
37
37
  }
@@ -36,7 +36,7 @@ import {jsxs,jsx,Fragment}from'react/jsx-runtime';import {MicIcon,InfoIcon}from'
36
36
  }), jsx(PopoverContent, {
37
37
  align: "end",
38
38
  side: "bottom",
39
- className: `w-80 p-3 ${managedAiApiEnabled || speechProviderStatus ? 'hidden' : ''}`,
39
+ className: `z-[200] w-80 p-3 ${managedAiApiEnabled || speechProviderStatus ? 'hidden' : ''}`,
40
40
  sideOffset: 8,
41
41
  children: jsxs("div", {
42
42
  className: "text-sm select-none",
@@ -1 +1 @@
1
- {"version":3,"file":"Files.d.ts","sourceRoot":"","sources":["../../../../../src/components/AIToolbar/components/completion/Files.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAI/C,eAAO,MAAM,KAAK,GAAI,oJAUnB,mBAAmB,GAAG;IAAE,cAAc,CAAC,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,4CAsIvE,CAAC"}
1
+ {"version":3,"file":"Files.d.ts","sourceRoot":"","sources":["../../../../../src/components/AIToolbar/components/completion/Files.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAK/C,eAAO,MAAM,KAAK,GAAI,oJAUnB,mBAAmB,GAAG;IAAE,cAAc,CAAC,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,4CA8IvE,CAAC"}
@@ -1,4 +1,4 @@
1
- import {jsxs,jsx}from'react/jsx-runtime';import {useRef}from'react';import'../../../../shardui/accordion.js';import'../../../../shardui/alert.js';import'../../../../shardui/alert-dialog.js';import'@radix-ui/react-aspect-ratio';import'../../../../shardui/avatar.js';import'../../../../shardui/badge.js';import'../../../../shardui/breadcrumb.js';import {Button}from'../../../../shardui/button.js';import'../../../../shardui/calendar.js';import'../../../../shardui/card.js';import'../../../../shardui/carousel.js';import'../../../../shardui/chart.js';import'../../../../shardui/checkbox.js';import'@radix-ui/react-collapsible';import'../../../../shardui/command.js';import'../../../../shardui/context-menu.js';import'../../../../shardui/dialog.js';import'../../../../shardui/drawer.js';import'../../../../shardui/dropdown-menu.js';import'../../../../shardui/form.js';import'../../../../shardui/hover-card.js';import'../../../../shardui/input.js';import'../../../../shardui/input-otp.js';import'../../../../shardui/label.js';import'../../../../shardui/menubar.js';import'../../../../shardui/navigation-menu.js';import'../../../../shardui/pagination.js';import {Popover,PopoverTrigger,PopoverContent}from'../../../../shardui/popover.js';import'../../../../shardui/progress.js';import'../../../../shardui/radio-group.js';import {PaperclipIcon,XIcon,PlusIcon,TrashIcon}from'lucide-react';import'react-resizable-panels';import'../../../../utils/isBrowser/index.js';import'clsx';import'tailwind-merge';import'fast-deep-equal/react.js';import {ScrollArea}from'../../../../shardui/scroll-area.js';import'../../../../shardui/select.js';import'../../../../shardui/separator.js';import'../../../../shardui/sheet.js';import'../../../../shardui/sidebar.js';import'../../../../shardui/slider.js';import'../../../ThemeProvider/ThemeProvider.js';import'sonner';import'../../../../shardui/switch.js';import'../../../../shardui/table.js';import'../../../../shardui/tabs.js';import'../../../../shardui/textarea.js';import'../../../../shardui/toast.js';import'../../../../shardui/toggle.js';import'../../../../shardui/toggle-group.js';import'../../../../shardui/tooltip.js';const DEFAULT_MAX_FILES = 10;
1
+ import {jsxs,jsx,Fragment}from'react/jsx-runtime';import {useRef}from'react';import'../../../../shardui/accordion.js';import'../../../../shardui/alert.js';import'../../../../shardui/alert-dialog.js';import'@radix-ui/react-aspect-ratio';import'../../../../shardui/avatar.js';import'../../../../shardui/badge.js';import'../../../../shardui/breadcrumb.js';import {Button}from'../../../../shardui/button.js';import'../../../../shardui/calendar.js';import'../../../../shardui/card.js';import'../../../../shardui/carousel.js';import'../../../../shardui/chart.js';import'../../../../shardui/checkbox.js';import'@radix-ui/react-collapsible';import'../../../../shardui/command.js';import'../../../../shardui/context-menu.js';import'../../../../shardui/dialog.js';import'../../../../shardui/drawer.js';import'../../../../shardui/dropdown-menu.js';import'../../../../shardui/form.js';import'../../../../shardui/hover-card.js';import'../../../../shardui/input.js';import'../../../../shardui/input-otp.js';import'../../../../shardui/label.js';import'../../../../shardui/menubar.js';import'../../../../shardui/navigation-menu.js';import'../../../../shardui/pagination.js';import {Popover,PopoverTrigger,PopoverContent}from'../../../../shardui/popover.js';import'../../../../shardui/progress.js';import'../../../../shardui/radio-group.js';import {PaperclipIcon,PlusIcon,XIcon,TrashIcon}from'lucide-react';import'react-resizable-panels';import'../../../../utils/isBrowser/index.js';import {cn}from'../../../../utils/util.js';import'fast-deep-equal/react.js';import {ScrollArea}from'../../../../shardui/scroll-area.js';import'../../../../shardui/select.js';import'../../../../shardui/separator.js';import'../../../../shardui/sheet.js';import'../../../../shardui/sidebar.js';import'../../../../shardui/slider.js';import'../../../ThemeProvider/ThemeProvider.js';import'sonner';import'../../../../shardui/switch.js';import'../../../../shardui/table.js';import'../../../../shardui/tabs.js';import'../../../../shardui/textarea.js';import'../../../../shardui/toast.js';import'../../../../shardui/toggle.js';import'../../../../shardui/toggle-group.js';import'../../../../shardui/tooltip.js';const DEFAULT_MAX_FILES = 10;
2
2
  const Files = ({
3
3
  attachedFiles,
4
4
  handleFileSelect,
@@ -24,15 +24,6 @@ const Files = ({
24
24
  asChild: true,
25
25
  children: jsx(Button, {
26
26
  size: "icon",
27
- onClick: () => {
28
- if (attachedFiles.length === 0) {
29
- // If no files, directly open file picker
30
- fileInputRef.current?.click();
31
- } else {
32
- // If files exist, show popover
33
- setIsFilesPopoverOpen(true);
34
- }
35
- },
36
27
  disabled: isLoading || supportsImages === false,
37
28
  className: "cursor-pointer",
38
29
  title: supportsImages !== false ? 'Attach images' : 'Image upload not supported by current AI provider',
@@ -43,76 +34,93 @@ const Files = ({
43
34
  }), attachedFiles.length > 0 && jsx("div", {
44
35
  className: "absolute -top-2 -right-2 bg-primary-foreground text-primary rounded-full h-5 w-5 flex border border-primary items-center justify-center text-xs font-medium",
45
36
  children: attachedFiles.length
46
- }), attachedFiles.length > 0 && jsxs(PopoverContent, {
37
+ }), jsx(PopoverContent, {
47
38
  align: "end",
48
39
  side: "bottom",
49
- className: "w-screen p-0 border shadow-lg overflow-hidden",
40
+ className: cn('z-[200] max-h-[min(85vh,calc(100vh-2rem))] flex flex-col p-0 border shadow-lg overflow-hidden', attachedFiles.length > 0 ? 'w-[min(100vw,36rem)]' : 'w-80'),
50
41
  sideOffset: 8,
51
- children: [jsxs("div", {
52
- className: "flex items-center justify-between px-4 py-2 border-b bg-muted/30",
53
- children: [jsxs("h3", {
54
- className: "font-semibold text-sm select-none",
55
- children: ["Attached Images (", attachedFiles.length, "/", maxFiles, ")"]
56
- }), jsx(Button, {
57
- size: "icon",
58
- variant: "ghost",
59
- onClick: () => setIsFilesPopoverOpen(false),
60
- className: "cursor-pointer",
61
- title: "Close",
62
- children: jsx(XIcon, {
63
- className: "h-4 w-4"
64
- })
65
- })]
66
- }), jsx(ScrollArea, {
67
- className: "p-4 h-[calc(100vh-11rem)]",
68
- children: jsx("div", {
69
- className: `gap-3 ${attachedFiles.length <= 2 ? 'flex flex-col' : 'grid grid-cols-2'}`,
70
- children: attachedFiles.map(file => jsxs("div", {
71
- className: "relative group border rounded-lg overflow-hidden bg-muted/20",
72
- children: [jsx("img", {
73
- src: `data:${file.type};base64,${file.base64}`,
74
- alt: file.name,
75
- className: `w-full object-cover h-full`
76
- }), jsxs("div", {
77
- className: "absolute bottom-0 left-0 right-0 bg-black/70 text-white p-2 text-xs",
78
- children: [jsx("div", {
79
- className: "truncate font-medium",
80
- children: file.name
81
- }), jsxs("div", {
82
- className: "text-gray-300",
83
- children: [(file.size / 1024 / 1024).toFixed(2), " MB"]
84
- })]
85
- }), jsx(Button, {
86
- size: "icon",
87
- variant: "default",
88
- className: "absolute top-2 right-2 h-6 w-6 cursor-pointer",
89
- onClick: () => removeFile(file.id),
90
- title: "Remove image",
91
- children: jsx(XIcon, {
92
- className: "h-3 w-3"
93
- })
94
- })]
95
- }, file.id))
96
- })
97
- }), jsxs("div", {
98
- className: "sticky bottom-0 border-t bg-background p-3 flex flex-row gap-2",
99
- children: [jsxs(Button, {
100
- onClick: handleAddMoreClick,
101
- disabled: !canAddMore || isLoading,
102
- className: "w-2/4",
42
+ children: attachedFiles.length === 0 ? jsxs("div", {
43
+ className: "p-4 space-y-3",
44
+ children: [jsx("p", {
45
+ className: "text-sm text-muted-foreground",
46
+ children: "No images attached yet. Choose files to add them to your message."
47
+ }), jsxs(Button, {
48
+ type: "button",
49
+ className: "w-full",
103
50
  variant: "outline",
51
+ disabled: isLoading || supportsImages === false,
52
+ onClick: () => fileInputRef.current?.click(),
104
53
  children: [jsx(PlusIcon, {
105
54
  className: "h-4 w-4 mr-2"
106
- }), "Add More Images ", !canAddMore && `(${maxFiles} max)`]
107
- }), jsxs(Button, {
108
- className: "w-2/4",
109
- variant: "destructive",
110
- onClick: onRemoveAllFiles,
111
- children: [jsx(TrashIcon, {
112
- className: "h-4 w-4 mr-2"
113
- }), "Remove All Images"]
55
+ }), "Choose images"]
56
+ })]
57
+ }) : jsxs(Fragment, {
58
+ children: [jsxs("div", {
59
+ className: "flex items-center justify-between px-4 py-2 border-b bg-muted/30 shrink-0",
60
+ children: [jsxs("h3", {
61
+ className: "font-semibold text-sm select-none",
62
+ children: ["Attached Images (", attachedFiles.length, "/", maxFiles, ")"]
63
+ }), jsx(Button, {
64
+ size: "icon",
65
+ variant: "ghost",
66
+ onClick: () => setIsFilesPopoverOpen(false),
67
+ className: "cursor-pointer",
68
+ title: "Close",
69
+ children: jsx(XIcon, {
70
+ className: "h-4 w-4"
71
+ })
72
+ })]
73
+ }), jsx(ScrollArea, {
74
+ className: "p-4 min-h-0 flex-1 max-h-[min(32rem,calc(85vh-10rem))]",
75
+ children: jsx("div", {
76
+ className: `gap-3 ${attachedFiles.length <= 2 ? 'flex flex-col' : 'grid grid-cols-2'}`,
77
+ children: attachedFiles.map(file => jsxs("div", {
78
+ className: "relative group border rounded-lg overflow-hidden bg-muted/20 min-h-[8rem]",
79
+ children: [jsx("img", {
80
+ src: `data:${file.type};base64,${file.base64}`,
81
+ alt: file.name,
82
+ className: "w-full object-cover max-h-64"
83
+ }), jsxs("div", {
84
+ className: "absolute bottom-0 left-0 right-0 bg-black/70 text-white p-2 text-xs",
85
+ children: [jsx("div", {
86
+ className: "truncate font-medium",
87
+ children: file.name
88
+ }), jsxs("div", {
89
+ className: "text-gray-300",
90
+ children: [(file.size / 1024 / 1024).toFixed(2), " MB"]
91
+ })]
92
+ }), jsx(Button, {
93
+ size: "icon",
94
+ variant: "default",
95
+ className: "absolute top-2 right-2 h-6 w-6 cursor-pointer",
96
+ onClick: () => removeFile(file.id),
97
+ title: "Remove image",
98
+ children: jsx(XIcon, {
99
+ className: "h-3 w-3"
100
+ })
101
+ })]
102
+ }, file.id))
103
+ })
104
+ }), jsxs("div", {
105
+ className: "shrink-0 border-t bg-background p-3 flex flex-row gap-2",
106
+ children: [jsxs(Button, {
107
+ onClick: handleAddMoreClick,
108
+ disabled: !canAddMore || isLoading,
109
+ className: "w-2/4",
110
+ variant: "outline",
111
+ children: [jsx(PlusIcon, {
112
+ className: "h-4 w-4 mr-2"
113
+ }), "Add More Images ", !canAddMore && `(${maxFiles} max)`]
114
+ }), jsxs(Button, {
115
+ className: "w-2/4",
116
+ variant: "destructive",
117
+ onClick: onRemoveAllFiles,
118
+ children: [jsx(TrashIcon, {
119
+ className: "h-4 w-4 mr-2"
120
+ }), "Remove All Images"]
121
+ })]
114
122
  })]
115
- })]
123
+ })
116
124
  })]
117
125
  }), jsx("input", {
118
126
  ref: fileInputRef,
@@ -1 +1 @@
1
- {"version":3,"file":"Files.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"Files.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../../../src/components/AIToolbar/components/completion/Input.tsx"],"names":[],"mappings":"AAcA,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAI/C,eAAO,MAAM,KAAK,GAAI,0RAqBnB,mBAAmB,GAAG;IAAE,QAAQ,EAAE,OAAO,CAAA;CAAE,4CAoL7C,CAAC"}
1
+ {"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../../../src/components/AIToolbar/components/completion/Input.tsx"],"names":[],"mappings":"AAcA,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAI/C,eAAO,MAAM,KAAK,GAAI,0RAqBnB,mBAAmB,GAAG;IAAE,QAAQ,EAAE,OAAO,CAAA;CAAE,4CA6K7C,CAAC"}
@@ -1,4 +1,4 @@
1
- import {jsx,jsxs}from'react/jsx-runtime';import {AIToolbarInputSurface,AIToolbarStatusDot}from'../AIToolbarPrimitives.js';import {Loader2,XIcon}from'lucide-react';import'../../../../shardui/accordion.js';import'../../../../shardui/alert.js';import'../../../../shardui/alert-dialog.js';import'@radix-ui/react-aspect-ratio';import'../../../../shardui/avatar.js';import'../../../../shardui/badge.js';import'../../../../shardui/breadcrumb.js';import {Button}from'../../../../shardui/button.js';import'../../../../shardui/calendar.js';import'../../../../shardui/card.js';import'../../../../shardui/carousel.js';import'../../../../shardui/chart.js';import'../../../../shardui/checkbox.js';import'@radix-ui/react-collapsible';import'../../../../shardui/command.js';import'../../../../shardui/context-menu.js';import'../../../../shardui/dialog.js';import'../../../../shardui/drawer.js';import'../../../../shardui/dropdown-menu.js';import'../../../../shardui/form.js';import'../../../../shardui/hover-card.js';import {Input as Input$1}from'../../../../shardui/input.js';import'../../../../shardui/input-otp.js';import'../../../../shardui/label.js';import'../../../../shardui/menubar.js';import'../../../../shardui/navigation-menu.js';import'../../../../shardui/pagination.js';import {Popover,PopoverTrigger,PopoverContent}from'../../../../shardui/popover.js';import'../../../../shardui/progress.js';import'../../../../shardui/radio-group.js';import'react-resizable-panels';import'../../../../utils/isBrowser/index.js';import {cn}from'../../../../utils/util.js';import'react';import'fast-deep-equal/react.js';import {ScrollArea}from'../../../../shardui/scroll-area.js';import'../../../../shardui/select.js';import'../../../../shardui/separator.js';import'../../../../shardui/sheet.js';import'../../../../shardui/sidebar.js';import'../../../../shardui/slider.js';import'../../../ThemeProvider/ThemeProvider.js';import'sonner';import {Switch}from'../../../../shardui/switch.js';import'../../../../shardui/table.js';import'../../../../shardui/tabs.js';import'../../../../shardui/textarea.js';import'../../../../shardui/toast.js';import'../../../../shardui/toggle.js';import'../../../../shardui/toggle-group.js';import'../../../../shardui/tooltip.js';import {Markdown}from'../Markdown/index.js';import {CopyButton}from'../Markdown/copy-button.js';import {MessageHistory}from'./MessageHistory.js';const Input = ({
1
+ import {jsx,jsxs}from'react/jsx-runtime';import {AIToolbarInputSurface}from'../AIToolbarPrimitives.js';import {Loader2,XIcon}from'lucide-react';import'../../../../shardui/accordion.js';import'../../../../shardui/alert.js';import'../../../../shardui/alert-dialog.js';import'@radix-ui/react-aspect-ratio';import'../../../../shardui/avatar.js';import'../../../../shardui/badge.js';import'../../../../shardui/breadcrumb.js';import {Button}from'../../../../shardui/button.js';import'../../../../shardui/calendar.js';import'../../../../shardui/card.js';import'../../../../shardui/carousel.js';import'../../../../shardui/chart.js';import'../../../../shardui/checkbox.js';import'@radix-ui/react-collapsible';import'../../../../shardui/command.js';import'../../../../shardui/context-menu.js';import'../../../../shardui/dialog.js';import'../../../../shardui/drawer.js';import'../../../../shardui/dropdown-menu.js';import'../../../../shardui/form.js';import'../../../../shardui/hover-card.js';import {Input as Input$1}from'../../../../shardui/input.js';import'../../../../shardui/input-otp.js';import'../../../../shardui/label.js';import'../../../../shardui/menubar.js';import'../../../../shardui/navigation-menu.js';import'../../../../shardui/pagination.js';import {Popover,PopoverTrigger,PopoverContent}from'../../../../shardui/popover.js';import'../../../../shardui/progress.js';import'../../../../shardui/radio-group.js';import'react-resizable-panels';import'../../../../utils/isBrowser/index.js';import {cn}from'../../../../utils/util.js';import'react';import'fast-deep-equal/react.js';import {ScrollArea}from'../../../../shardui/scroll-area.js';import'../../../../shardui/select.js';import'../../../../shardui/separator.js';import'../../../../shardui/sheet.js';import'../../../../shardui/sidebar.js';import'../../../../shardui/slider.js';import'../../../ThemeProvider/ThemeProvider.js';import'sonner';import {Switch}from'../../../../shardui/switch.js';import'../../../../shardui/table.js';import'../../../../shardui/tabs.js';import'../../../../shardui/textarea.js';import'../../../../shardui/toast.js';import'../../../../shardui/toggle.js';import'../../../../shardui/toggle-group.js';import'../../../../shardui/tooltip.js';import {Markdown}from'../Markdown/index.js';import {CopyButton}from'../Markdown/copy-button.js';import {MessageHistory}from'./MessageHistory.js';const Input = ({
2
2
  isPopoverOpen,
3
3
  isLoading,
4
4
  reset,
@@ -41,7 +41,7 @@ import {jsx,jsxs}from'react/jsx-runtime';import {AIToolbarInputSurface,AIToolbar
41
41
  onKeyPress: handleKeyPress,
42
42
  onPaste: handlePaste,
43
43
  disabled: isLoading || isHidden,
44
- className: cn('h-9 flex-1 border-0 bg-transparent shadow-none focus-visible:ring-0 dark:bg-transparent', currentConversationId && conversationHistory.length > 0 ? 'pr-14' : isLoading ? 'pr-10' : isHidden ? 'pr-2' : 'pr-10')
44
+ className: cn('h-9 flex-1 border-0 bg-transparent shadow-none outline-none dark:bg-transparent', currentConversationId && conversationHistory.length > 0 ? 'pr-14' : isLoading ? 'pr-10' : isHidden ? 'pr-2' : 'pr-10')
45
45
  }), currentConversationId && conversationHistory.length > 0 && !isLoading && jsx("div", {
46
46
  className: "absolute right-1 top-1/2 flex -translate-y-1/2 select-none items-center gap-1",
47
47
  children: jsx(MessageHistory, {
@@ -56,17 +56,12 @@ import {jsx,jsxs}from'react/jsx-runtime';import {AIToolbarInputSurface,AIToolbar
56
56
  children: jsx(Loader2, {
57
57
  className: "h-4 w-4 animate-spin text-muted-foreground"
58
58
  })
59
- }), !isLoading && !(currentConversationId && conversationHistory.length > 0) && !isHidden && jsx("div", {
60
- className: "pointer-events-none absolute right-2.5 top-1/2 -translate-y-1/2",
61
- children: jsx(AIToolbarStatusDot, {
62
- active: !isHidden
63
- })
64
59
  })]
65
60
  })
66
61
  }), jsxs(PopoverContent, {
67
62
  align: "end",
68
63
  side: "bottom",
69
- className: "w-screen p-0 border shadow-lg overflow-hidden",
64
+ className: "z-[200] w-screen max-h-[min(90vh,calc(100vh-1rem))] p-0 border shadow-lg overflow-hidden",
70
65
  sideOffset: 8,
71
66
  children: [jsxs("div", {
72
67
  className: "flex items-center justify-between px-4 py-2 border-b bg-muted/30",
@@ -1 +1 @@
1
- {"version":3,"file":"Input.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"Input.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -24,7 +24,7 @@ import {jsxs,jsx}from'react/jsx-runtime';import {MessageSquareText,ChevronUp,Che
24
24
  }), jsxs(PopoverContent, {
25
25
  align: "end",
26
26
  side: "bottom",
27
- className: "select-none w-screen p-0 mt-3 border overflow-hidden border-input/50",
27
+ className: "z-[200] select-none w-screen max-h-[min(90vh,calc(100vh-1rem))] p-0 mt-3 border overflow-hidden border-input/50",
28
28
  children: [jsx("div", {
29
29
  className: "border-b border-input/50 p-4",
30
30
  children: jsxs("div", {
@@ -139,7 +139,7 @@ import {jsxs,jsx,Fragment}from'react/jsx-runtime';import {useState,useEffect,use
139
139
  }), (capturing || setupRequired || error) && jsx(PopoverContent, {
140
140
  align: "end",
141
141
  side: "bottom",
142
- className: "select-none w-screen p-0 border shadow-lg overflow-hidden border-input/50",
142
+ className: "z-[200] select-none w-screen max-h-[min(92vh,calc(100vh-1rem))] p-0 border shadow-lg overflow-hidden border-input/50",
143
143
  sideOffset: 8,
144
144
  children: jsxs("div", {
145
145
  className: "flex flex-col h-[calc(100vh-4rem)] overflow-hidden",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@admin-layout/tailwind-ui",
3
- "version": "12.2.4-alpha.34",
3
+ "version": "12.2.4-alpha.36",
4
4
  "description": "Sample core for higher packages to depend on",
5
5
  "license": "ISC",
6
6
  "author": "CDMBase LLC",
@@ -29,7 +29,7 @@
29
29
  "watch": "npm run build:lib:watch"
30
30
  },
31
31
  "dependencies": {
32
- "@admin-layout/client": "12.2.4-alpha.34",
32
+ "@admin-layout/client": "12.2.4-alpha.36",
33
33
  "@radix-ui/react-accordion": "^1.2.0",
34
34
  "@radix-ui/react-alert-dialog": "^1.1.1",
35
35
  "@radix-ui/react-aspect-ratio": "^1.1.0",
@@ -93,5 +93,5 @@
93
93
  "typescript": {
94
94
  "definition": "lib/index.d.ts"
95
95
  },
96
- "gitHead": "3de7c315c8667254d7133ae01215c85ac23e9618"
96
+ "gitHead": "9a85f6af06ef39660e1b05d5b88c155b82cc700d"
97
97
  }