@invana/ui 0.0.18 → 0.0.20
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.cjs +291 -40
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +170 -1
- package/dist/index.d.ts +170 -1
- package/dist/index.js +283 -41
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -150,7 +150,7 @@ var AlertDescription = React23__namespace.forwardRef(({ className, ...props }, r
|
|
|
150
150
|
));
|
|
151
151
|
AlertDescription.displayName = "AlertDescription";
|
|
152
152
|
var buttonVariants = classVarianceAuthority.cva(
|
|
153
|
-
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-
|
|
153
|
+
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-control font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-5 [&_svg]:shrink-0",
|
|
154
154
|
{
|
|
155
155
|
variants: {
|
|
156
156
|
variant: {
|
|
@@ -164,10 +164,10 @@ var buttonVariants = classVarianceAuthority.cva(
|
|
|
164
164
|
},
|
|
165
165
|
size: {
|
|
166
166
|
default: "h-9 px-4 py-2",
|
|
167
|
-
sm: "h-8 rounded-
|
|
168
|
-
lg: "h-12 rounded-
|
|
169
|
-
icon: "h-8 w-8 rounded-
|
|
170
|
-
"nav-icon": "h-11 w-11 rounded-
|
|
167
|
+
sm: "h-8 rounded-control px-3 py-2 text-sm",
|
|
168
|
+
lg: "h-12 rounded-control px-8 py-3",
|
|
169
|
+
icon: "h-8 w-8 rounded-control",
|
|
170
|
+
"nav-icon": "h-11 w-11 rounded-control"
|
|
171
171
|
}
|
|
172
172
|
},
|
|
173
173
|
defaultVariants: {
|
|
@@ -323,7 +323,7 @@ var AvatarFallback = React23__namespace.forwardRef(({ className, ...props }, ref
|
|
|
323
323
|
));
|
|
324
324
|
AvatarFallback.displayName = AvatarPrimitive__namespace.Fallback.displayName;
|
|
325
325
|
var badgeVariants = classVarianceAuthority.cva(
|
|
326
|
-
"inline-flex items-center
|
|
326
|
+
"inline-flex items-center border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
|
|
327
327
|
{
|
|
328
328
|
variants: {
|
|
329
329
|
variant: {
|
|
@@ -478,7 +478,7 @@ function ButtonGroupText({
|
|
|
478
478
|
Comp,
|
|
479
479
|
{
|
|
480
480
|
className: cn(
|
|
481
|
-
"bg-muted shadow-xs flex items-center gap-2 rounded-
|
|
481
|
+
"bg-muted shadow-xs flex items-center gap-2 rounded-control border px-4 text-sm font-medium [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none",
|
|
482
482
|
className
|
|
483
483
|
),
|
|
484
484
|
...props
|
|
@@ -706,7 +706,7 @@ var CarouselPrevious = React23__namespace.forwardRef(({ className, variant = "ou
|
|
|
706
706
|
variant,
|
|
707
707
|
size,
|
|
708
708
|
className: cn(
|
|
709
|
-
"absolute h-8 w-8 rounded-
|
|
709
|
+
"absolute h-8 w-8 rounded-control",
|
|
710
710
|
orientation === "horizontal" ? "-left-12 top-1/2 -translate-y-1/2" : "-top-12 left-1/2 -translate-x-1/2 rotate-90",
|
|
711
711
|
className
|
|
712
712
|
),
|
|
@@ -730,7 +730,7 @@ var CarouselNext = React23__namespace.forwardRef(({ className, variant = "outlin
|
|
|
730
730
|
variant,
|
|
731
731
|
size,
|
|
732
732
|
className: cn(
|
|
733
|
-
"absolute h-8 w-8 rounded-
|
|
733
|
+
"absolute h-8 w-8 rounded-control",
|
|
734
734
|
orientation === "horizontal" ? "-right-12 top-1/2 -translate-y-1/2" : "-bottom-12 left-1/2 -translate-x-1/2 rotate-90",
|
|
735
735
|
className
|
|
736
736
|
),
|
|
@@ -774,7 +774,7 @@ var DialogContent = React23__namespace.forwardRef(({ className, children, ...pro
|
|
|
774
774
|
...props,
|
|
775
775
|
children: [
|
|
776
776
|
children,
|
|
777
|
-
/* @__PURE__ */ jsxRuntime.jsxs(DialogPrimitive__namespace.Close, { className: "absolute right-4 top-4 rounded-
|
|
777
|
+
/* @__PURE__ */ jsxRuntime.jsxs(DialogPrimitive__namespace.Close, { className: "absolute right-4 top-4 rounded-control opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground", children: [
|
|
778
778
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { className: "h-4 w-4" }),
|
|
779
779
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "Close" })
|
|
780
780
|
] })
|
|
@@ -854,7 +854,7 @@ var CommandInput = React23__namespace.forwardRef(({ className, ...props }, ref)
|
|
|
854
854
|
{
|
|
855
855
|
ref,
|
|
856
856
|
className: cn(
|
|
857
|
-
"flex h-10 w-full rounded-
|
|
857
|
+
"flex h-10 w-full rounded-control bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",
|
|
858
858
|
className
|
|
859
859
|
),
|
|
860
860
|
...props
|
|
@@ -906,7 +906,7 @@ var CommandItem = React23__namespace.forwardRef(({ className, ...props }, ref) =
|
|
|
906
906
|
{
|
|
907
907
|
ref,
|
|
908
908
|
className: cn(
|
|
909
|
-
"relative flex cursor-default gap-2 select-none items-center rounded-
|
|
909
|
+
"relative flex cursor-default gap-2 select-none items-center rounded-control px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-primary/15 data-[selected=true]:text-primary data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
910
910
|
className
|
|
911
911
|
),
|
|
912
912
|
...props
|
|
@@ -940,7 +940,7 @@ var DropdownMenuSubTrigger = React23__namespace.forwardRef(({ className, inset,
|
|
|
940
940
|
{
|
|
941
941
|
ref,
|
|
942
942
|
className: cn(
|
|
943
|
-
"flex cursor-default gap-2 select-none items-center rounded-
|
|
943
|
+
"flex cursor-default gap-2 select-none items-center rounded-control px-2 py-1.5 outline-none focus:bg-primary/15 focus:text-primary data-[state=open]:bg-primary/15 data-[state=open]:text-primary [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
944
944
|
inset && "pl-8",
|
|
945
945
|
className
|
|
946
946
|
),
|
|
@@ -983,7 +983,7 @@ var DropdownMenuItem = React23__namespace.forwardRef(({ className, inset, ...pro
|
|
|
983
983
|
{
|
|
984
984
|
ref,
|
|
985
985
|
className: cn(
|
|
986
|
-
"relative flex cursor-default select-none items-center gap-2 rounded-
|
|
986
|
+
"relative flex cursor-default select-none items-center gap-2 rounded-control px-2 py-1.5 outline-none transition-colors focus:bg-primary/15 focus:text-primary hover:bg-primary/10 hover:text-primary data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",
|
|
987
987
|
inset && "pl-8",
|
|
988
988
|
className
|
|
989
989
|
),
|
|
@@ -996,7 +996,7 @@ var DropdownMenuCheckboxItem = React23__namespace.forwardRef(({ className, child
|
|
|
996
996
|
{
|
|
997
997
|
ref,
|
|
998
998
|
className: cn(
|
|
999
|
-
"relative flex cursor-default select-none items-center rounded-
|
|
999
|
+
"relative flex cursor-default select-none items-center rounded-control py-1.5 pl-8 pr-2 outline-none transition-colors focus:bg-primary/15 focus:text-primary data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
1000
1000
|
className
|
|
1001
1001
|
),
|
|
1002
1002
|
checked,
|
|
@@ -1013,7 +1013,7 @@ var DropdownMenuRadioItem = React23__namespace.forwardRef(({ className, children
|
|
|
1013
1013
|
{
|
|
1014
1014
|
ref,
|
|
1015
1015
|
className: cn(
|
|
1016
|
-
"relative flex cursor-default select-none items-center rounded-
|
|
1016
|
+
"relative flex cursor-default select-none items-center rounded-control py-1.5 pl-8 pr-2 outline-none transition-colors focus:bg-primary/15 focus:text-primary data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
1017
1017
|
className
|
|
1018
1018
|
),
|
|
1019
1019
|
...props,
|
|
@@ -1251,7 +1251,7 @@ function Kbd({ className, ...props }) {
|
|
|
1251
1251
|
{
|
|
1252
1252
|
"data-slot": "kbd",
|
|
1253
1253
|
className: cn(
|
|
1254
|
-
"bg-muted text-muted-foreground pointer-events-none inline-flex h-5 w-fit min-w-5 select-none items-center justify-center gap-1 rounded-
|
|
1254
|
+
"bg-muted text-muted-foreground pointer-events-none inline-flex h-5 w-fit min-w-5 select-none items-center justify-center gap-1 rounded-control px-1 font-sans text-xs font-medium",
|
|
1255
1255
|
"[&_svg:not([class*='size-'])]:size-3",
|
|
1256
1256
|
"[[data-slot=tooltip-content]_&]:bg-background/20 [[data-slot=tooltip-content]_&]:text-background dark:[[data-slot=tooltip-content]_&]:bg-background/10",
|
|
1257
1257
|
className
|
|
@@ -1312,7 +1312,7 @@ var MenubarTrigger = React23__namespace.forwardRef(({ className, ...props }, ref
|
|
|
1312
1312
|
{
|
|
1313
1313
|
ref,
|
|
1314
1314
|
className: cn(
|
|
1315
|
-
"flex cursor-default select-none items-center rounded-
|
|
1315
|
+
"flex cursor-default select-none items-center rounded-control px-3 py-1.5 font-medium outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",
|
|
1316
1316
|
className
|
|
1317
1317
|
),
|
|
1318
1318
|
...props
|
|
@@ -1324,7 +1324,7 @@ var MenubarSubTrigger = React23__namespace.forwardRef(({ className, inset, child
|
|
|
1324
1324
|
{
|
|
1325
1325
|
ref,
|
|
1326
1326
|
className: cn(
|
|
1327
|
-
"flex cursor-default select-none items-center rounded-
|
|
1327
|
+
"flex cursor-default select-none items-center rounded-control px-2 py-1.5 outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",
|
|
1328
1328
|
inset && "pl-8",
|
|
1329
1329
|
className
|
|
1330
1330
|
),
|
|
@@ -1370,7 +1370,7 @@ var MenubarItem = React23__namespace.forwardRef(({ className, inset, ...props },
|
|
|
1370
1370
|
{
|
|
1371
1371
|
ref,
|
|
1372
1372
|
className: cn(
|
|
1373
|
-
"relative flex cursor-default select-none items-center rounded-
|
|
1373
|
+
"relative flex cursor-default select-none items-center rounded-control px-2 py-1.5 outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
1374
1374
|
inset && "pl-8",
|
|
1375
1375
|
className
|
|
1376
1376
|
),
|
|
@@ -1383,7 +1383,7 @@ var MenubarCheckboxItem = React23__namespace.forwardRef(({ className, children,
|
|
|
1383
1383
|
{
|
|
1384
1384
|
ref,
|
|
1385
1385
|
className: cn(
|
|
1386
|
-
"relative flex cursor-default select-none items-center rounded-
|
|
1386
|
+
"relative flex cursor-default select-none items-center rounded-control py-1.5 pl-8 pr-2 outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
1387
1387
|
className
|
|
1388
1388
|
),
|
|
1389
1389
|
checked,
|
|
@@ -1400,7 +1400,7 @@ var MenubarRadioItem = React23__namespace.forwardRef(({ className, children, ...
|
|
|
1400
1400
|
{
|
|
1401
1401
|
ref,
|
|
1402
1402
|
className: cn(
|
|
1403
|
-
"relative flex cursor-default select-none items-center rounded-
|
|
1403
|
+
"relative flex cursor-default select-none items-center rounded-control py-1.5 pl-8 pr-2 outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
1404
1404
|
className
|
|
1405
1405
|
),
|
|
1406
1406
|
...props,
|
|
@@ -1479,7 +1479,7 @@ var NavigationMenuList = React23__namespace.forwardRef(({ className, ...props },
|
|
|
1479
1479
|
NavigationMenuList.displayName = NavigationMenuPrimitive__namespace.List.displayName;
|
|
1480
1480
|
var NavigationMenuItem = NavigationMenuPrimitive__namespace.Item;
|
|
1481
1481
|
var navigationMenuTriggerStyle = classVarianceAuthority.cva(
|
|
1482
|
-
"group inline-flex h-10 w-max items-center justify-center rounded-
|
|
1482
|
+
"group inline-flex h-10 w-max items-center justify-center rounded-control bg-background px-4 py-2 font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=open]:text-accent-foreground data-[state=open]:bg-accent/50 data-[state=open]:hover:bg-accent data-[state=open]:focus:bg-accent"
|
|
1483
1483
|
);
|
|
1484
1484
|
var NavigationMenuTrigger = React23__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1485
1485
|
NavigationMenuPrimitive__namespace.Trigger,
|
|
@@ -1761,7 +1761,7 @@ var SheetContent = React23__namespace.forwardRef(({ side = "right", className, c
|
|
|
1761
1761
|
...props,
|
|
1762
1762
|
children: [
|
|
1763
1763
|
children,
|
|
1764
|
-
/* @__PURE__ */ jsxRuntime.jsxs(DialogPrimitive__namespace.Close, { className: "absolute right-4 top-4 rounded-
|
|
1764
|
+
/* @__PURE__ */ jsxRuntime.jsxs(DialogPrimitive__namespace.Close, { className: "absolute right-4 top-4 rounded-control opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary", children: [
|
|
1765
1765
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { className: "h-4 w-4" }),
|
|
1766
1766
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "Close" })
|
|
1767
1767
|
] })
|
|
@@ -2109,7 +2109,7 @@ var SidebarInput = React23__namespace.forwardRef(({ className, type, ...props },
|
|
|
2109
2109
|
"data-sidebar": "input",
|
|
2110
2110
|
className: cn(
|
|
2111
2111
|
// mirrors @invana/forms <Input> styling
|
|
2112
|
-
"flex h-10 w-full rounded-
|
|
2112
|
+
"flex h-10 w-full rounded-control border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
|
2113
2113
|
"h-8 w-full shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",
|
|
2114
2114
|
className
|
|
2115
2115
|
),
|
|
@@ -2206,7 +2206,7 @@ var SidebarGroupAction = React23__namespace.forwardRef(({ className, asChild = f
|
|
|
2206
2206
|
ref,
|
|
2207
2207
|
"data-sidebar": "group-action",
|
|
2208
2208
|
className: cn(
|
|
2209
|
-
"absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-
|
|
2209
|
+
"absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-control p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
|
|
2210
2210
|
// Increases the hit area of the button on mobile.
|
|
2211
2211
|
"after:absolute after:-inset-2 after:md:hidden",
|
|
2212
2212
|
"group-data-[collapsible=icon]:hidden",
|
|
@@ -2248,7 +2248,7 @@ var SidebarMenuItem = React23__namespace.forwardRef(({ className, ...props }, re
|
|
|
2248
2248
|
));
|
|
2249
2249
|
SidebarMenuItem.displayName = "SidebarMenuItem";
|
|
2250
2250
|
var sidebarMenuButtonVariants = classVarianceAuthority.cva(
|
|
2251
|
-
"peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-
|
|
2251
|
+
"peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-control p-2 text-left outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",
|
|
2252
2252
|
{
|
|
2253
2253
|
variants: {
|
|
2254
2254
|
variant: {
|
|
@@ -2321,7 +2321,7 @@ var SidebarMenuAction = React23__namespace.forwardRef(({ className, asChild = fa
|
|
|
2321
2321
|
ref,
|
|
2322
2322
|
"data-sidebar": "menu-action",
|
|
2323
2323
|
className: cn(
|
|
2324
|
-
"absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-
|
|
2324
|
+
"absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-control p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0",
|
|
2325
2325
|
// Increases the hit area of the button on mobile.
|
|
2326
2326
|
"after:absolute after:-inset-2 after:md:hidden",
|
|
2327
2327
|
"peer-data-[size=sm]/menu-button:top-1",
|
|
@@ -2414,7 +2414,7 @@ var SidebarMenuSubButton = React23__namespace.forwardRef(({ asChild = false, siz
|
|
|
2414
2414
|
"data-size": size,
|
|
2415
2415
|
"data-active": isActive,
|
|
2416
2416
|
className: cn(
|
|
2417
|
-
"flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-
|
|
2417
|
+
"flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-control px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground",
|
|
2418
2418
|
"data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",
|
|
2419
2419
|
size === "sm" && "text-sm",
|
|
2420
2420
|
size === "md" && "text-lg",
|
|
@@ -2568,7 +2568,7 @@ var TabsTrigger = React23__namespace.forwardRef(({ className, ...props }, ref) =
|
|
|
2568
2568
|
{
|
|
2569
2569
|
ref,
|
|
2570
2570
|
className: cn(
|
|
2571
|
-
"inline-flex items-center justify-center whitespace-nowrap rounded-
|
|
2571
|
+
"inline-flex items-center justify-center whitespace-nowrap rounded-control px-3 py-1 font-medium ring-offset-background transition-colors text-muted-foreground hover:text-foreground hover:bg-background/60 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-primary/15 data-[state=active]:text-primary data-[state=active]:ring-1 data-[state=active]:ring-primary/25 data-[state=active]:shadow-sm",
|
|
2572
2572
|
className
|
|
2573
2573
|
),
|
|
2574
2574
|
...props
|
|
@@ -2588,7 +2588,7 @@ var TabsContent = React23__namespace.forwardRef(({ className, ...props }, ref) =
|
|
|
2588
2588
|
));
|
|
2589
2589
|
TabsContent.displayName = TabsPrimitive__namespace.Content.displayName;
|
|
2590
2590
|
var toggleVariants = classVarianceAuthority.cva(
|
|
2591
|
-
"inline-flex items-center justify-center rounded-
|
|
2591
|
+
"inline-flex items-center justify-center rounded-control font-medium ring-offset-background transition-colors text-muted-foreground hover:bg-muted hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-primary/15 data-[state=on]:text-primary data-[state=on]:ring-1 data-[state=on]:ring-primary/25 data-[state=on]:shadow-sm [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 gap-2",
|
|
2592
2592
|
{
|
|
2593
2593
|
variants: {
|
|
2594
2594
|
variant: {
|
|
@@ -2735,7 +2735,7 @@ function ChatSessionMessage({
|
|
|
2735
2735
|
"div",
|
|
2736
2736
|
{
|
|
2737
2737
|
className: cn(
|
|
2738
|
-
"max-w-[85%]
|
|
2738
|
+
"max-w-[85%] bg-secondary px-3 py-2 text-secondary-foreground whitespace-pre-wrap break-words",
|
|
2739
2739
|
icon && "flex items-center gap-1.5"
|
|
2740
2740
|
),
|
|
2741
2741
|
children: [
|
|
@@ -2787,7 +2787,7 @@ var NavItems = ({
|
|
|
2787
2787
|
const padding = item.label ? "px-3 py-1.5" : "px-2 py-2";
|
|
2788
2788
|
const isInteractive = Boolean(item.href || item.onClick);
|
|
2789
2789
|
const itemClass = `inline-flex border-0 items-center justify-center gap-2
|
|
2790
|
-
whitespace-nowrap rounded-
|
|
2790
|
+
whitespace-nowrap rounded-control transition-colors
|
|
2791
2791
|
ring-1 ring-transparent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring
|
|
2792
2792
|
${padding}
|
|
2793
2793
|
${isInteractive ? "cursor-pointer hover:bg-primary/10 hover:text-primary hover:ring-primary/25" : ""}
|
|
@@ -2954,7 +2954,7 @@ function ChatSessionComposer({
|
|
|
2954
2954
|
}
|
|
2955
2955
|
};
|
|
2956
2956
|
const isSendDisabled = sendDisabled ?? (disabled || value.trim().length === 0);
|
|
2957
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("p-3", className), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "rounded-
|
|
2957
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("p-3", className), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "rounded-control border border-border bg-card shadow-sm overflow-hidden focus-within:border-ring transition-colors", children: [
|
|
2958
2958
|
attachments && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "px-2 py-1.5 border-b border-border max-h-24 overflow-y-auto flex items-start gap-1 flex-wrap", children: attachments }),
|
|
2959
2959
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2960
2960
|
"textarea",
|
|
@@ -2977,7 +2977,7 @@ function ChatSessionComposer({
|
|
|
2977
2977
|
Button,
|
|
2978
2978
|
{
|
|
2979
2979
|
size: "icon",
|
|
2980
|
-
className: "h-7 w-7 shrink-0 rounded-
|
|
2980
|
+
className: "h-7 w-7 shrink-0 rounded-control",
|
|
2981
2981
|
onClick: onStop,
|
|
2982
2982
|
title: "Stop",
|
|
2983
2983
|
"aria-label": "Stop",
|
|
@@ -2987,7 +2987,7 @@ function ChatSessionComposer({
|
|
|
2987
2987
|
Button,
|
|
2988
2988
|
{
|
|
2989
2989
|
size: "icon",
|
|
2990
|
-
className: "h-7 w-7 shrink-0 rounded-
|
|
2990
|
+
className: "h-7 w-7 shrink-0 rounded-control",
|
|
2991
2991
|
onClick: onSend,
|
|
2992
2992
|
disabled: isSendDisabled,
|
|
2993
2993
|
title: "Send",
|
|
@@ -2998,6 +2998,248 @@ function ChatSessionComposer({
|
|
|
2998
2998
|
] })
|
|
2999
2999
|
] }) });
|
|
3000
3000
|
}
|
|
3001
|
+
var chatSessionGutterClass = "w-3.5 shrink-0 flex justify-center";
|
|
3002
|
+
var markerClass = {
|
|
3003
|
+
default: "bg-muted-foreground",
|
|
3004
|
+
info: "bg-info",
|
|
3005
|
+
success: "bg-success",
|
|
3006
|
+
warning: "bg-warning",
|
|
3007
|
+
error: "bg-destructive",
|
|
3008
|
+
pending: "bg-transparent border-[1.5px] border-muted-foreground"
|
|
3009
|
+
};
|
|
3010
|
+
function ChatSessionActivityRow({
|
|
3011
|
+
status = "default",
|
|
3012
|
+
marker,
|
|
3013
|
+
children,
|
|
3014
|
+
actions,
|
|
3015
|
+
meta,
|
|
3016
|
+
footer,
|
|
3017
|
+
className
|
|
3018
|
+
}) {
|
|
3019
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("flex gap-2", className), children: [
|
|
3020
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: cn(chatSessionGutterClass, "pt-[7px]"), "aria-hidden": true, children: marker ?? /* @__PURE__ */ jsxRuntime.jsx(
|
|
3021
|
+
"span",
|
|
3022
|
+
{
|
|
3023
|
+
className: cn("w-1.5 h-1.5 rounded-full", markerClass[status])
|
|
3024
|
+
}
|
|
3025
|
+
) }),
|
|
3026
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0 flex-1 flex flex-col gap-1", children: [
|
|
3027
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3028
|
+
"div",
|
|
3029
|
+
{
|
|
3030
|
+
className: cn(
|
|
3031
|
+
"whitespace-pre-wrap break-words",
|
|
3032
|
+
status === "error" && "text-destructive",
|
|
3033
|
+
status === "warning" && "text-warning"
|
|
3034
|
+
),
|
|
3035
|
+
children
|
|
3036
|
+
}
|
|
3037
|
+
),
|
|
3038
|
+
actions,
|
|
3039
|
+
meta && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-muted-foreground", children: meta }),
|
|
3040
|
+
footer
|
|
3041
|
+
] })
|
|
3042
|
+
] });
|
|
3043
|
+
}
|
|
3044
|
+
function ChatSessionActivitySubLine({
|
|
3045
|
+
elbow,
|
|
3046
|
+
children,
|
|
3047
|
+
className
|
|
3048
|
+
}) {
|
|
3049
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("flex gap-2 text-muted-foreground", className), children: [
|
|
3050
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "shrink-0 select-none text-border", "aria-hidden": true, children: elbow ?? "\u2514" }),
|
|
3051
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "min-w-0 break-words", children })
|
|
3052
|
+
] });
|
|
3053
|
+
}
|
|
3054
|
+
function ChatSessionPromptRow({
|
|
3055
|
+
children,
|
|
3056
|
+
caret,
|
|
3057
|
+
meta,
|
|
3058
|
+
className
|
|
3059
|
+
}) {
|
|
3060
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3061
|
+
"div",
|
|
3062
|
+
{
|
|
3063
|
+
className: cn("-mx-3 flex gap-2 bg-muted/70 px-3 py-2", className),
|
|
3064
|
+
children: [
|
|
3065
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3066
|
+
"span",
|
|
3067
|
+
{
|
|
3068
|
+
className: cn(
|
|
3069
|
+
chatSessionGutterClass,
|
|
3070
|
+
"select-none font-semibold text-primary"
|
|
3071
|
+
),
|
|
3072
|
+
"aria-hidden": true,
|
|
3073
|
+
children: caret ?? "\u276F"
|
|
3074
|
+
}
|
|
3075
|
+
),
|
|
3076
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "min-w-0 flex-1 whitespace-pre-wrap break-words", children }),
|
|
3077
|
+
meta && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "shrink-0 self-start text-muted-foreground", children: meta })
|
|
3078
|
+
]
|
|
3079
|
+
}
|
|
3080
|
+
);
|
|
3081
|
+
}
|
|
3082
|
+
function RingSpinner() {
|
|
3083
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3084
|
+
"span",
|
|
3085
|
+
{
|
|
3086
|
+
className: "h-3 w-3 rounded-full border-2 border-muted border-t-primary animate-spin motion-reduce:animate-none",
|
|
3087
|
+
role: "status",
|
|
3088
|
+
"aria-label": "Working"
|
|
3089
|
+
}
|
|
3090
|
+
);
|
|
3091
|
+
}
|
|
3092
|
+
function ChatSessionProgressLine({
|
|
3093
|
+
children,
|
|
3094
|
+
spinner,
|
|
3095
|
+
elapsed,
|
|
3096
|
+
className
|
|
3097
|
+
}) {
|
|
3098
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3099
|
+
"div",
|
|
3100
|
+
{
|
|
3101
|
+
className: cn(
|
|
3102
|
+
"flex items-center gap-2 text-muted-foreground",
|
|
3103
|
+
className
|
|
3104
|
+
),
|
|
3105
|
+
children: [
|
|
3106
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: chatSessionGutterClass, children: spinner ?? /* @__PURE__ */ jsxRuntime.jsx(RingSpinner, {}) }),
|
|
3107
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "min-w-0 flex-1", children }),
|
|
3108
|
+
elapsed && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "shrink-0 tabular-nums", children: elapsed })
|
|
3109
|
+
]
|
|
3110
|
+
}
|
|
3111
|
+
);
|
|
3112
|
+
}
|
|
3113
|
+
function ChatSessionDisclosure({
|
|
3114
|
+
label,
|
|
3115
|
+
meta,
|
|
3116
|
+
children,
|
|
3117
|
+
open,
|
|
3118
|
+
defaultOpen = false,
|
|
3119
|
+
onOpenChange,
|
|
3120
|
+
chevron,
|
|
3121
|
+
className,
|
|
3122
|
+
contentClassName
|
|
3123
|
+
}) {
|
|
3124
|
+
const [uncontrolledOpen, setUncontrolledOpen] = React23__namespace.useState(defaultOpen);
|
|
3125
|
+
const isOpen = open ?? uncontrolledOpen;
|
|
3126
|
+
const toggle = () => {
|
|
3127
|
+
const next = !isOpen;
|
|
3128
|
+
if (open === void 0) setUncontrolledOpen(next);
|
|
3129
|
+
onOpenChange?.(next);
|
|
3130
|
+
};
|
|
3131
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3132
|
+
"div",
|
|
3133
|
+
{
|
|
3134
|
+
className: cn(
|
|
3135
|
+
"overflow-hidden rounded-md border border-border bg-accent/40",
|
|
3136
|
+
className
|
|
3137
|
+
),
|
|
3138
|
+
children: [
|
|
3139
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
3140
|
+
"button",
|
|
3141
|
+
{
|
|
3142
|
+
type: "button",
|
|
3143
|
+
onClick: toggle,
|
|
3144
|
+
"aria-expanded": isOpen,
|
|
3145
|
+
className: "flex w-full items-center gap-2 px-2.5 py-1.5 text-left text-muted-foreground hover:bg-accent hover:text-foreground",
|
|
3146
|
+
children: [
|
|
3147
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3148
|
+
"span",
|
|
3149
|
+
{
|
|
3150
|
+
className: cn(
|
|
3151
|
+
"shrink-0 select-none transition-transform",
|
|
3152
|
+
!chevron && isOpen && "rotate-90"
|
|
3153
|
+
),
|
|
3154
|
+
"aria-hidden": true,
|
|
3155
|
+
children: chevron ?? "\u25B8"
|
|
3156
|
+
}
|
|
3157
|
+
),
|
|
3158
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "min-w-0 flex-1 truncate", children: label }),
|
|
3159
|
+
meta && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "shrink-0 tabular-nums text-muted-foreground", children: meta })
|
|
3160
|
+
]
|
|
3161
|
+
}
|
|
3162
|
+
),
|
|
3163
|
+
isOpen && /* @__PURE__ */ jsxRuntime.jsx(
|
|
3164
|
+
"div",
|
|
3165
|
+
{
|
|
3166
|
+
className: cn(
|
|
3167
|
+
"overflow-x-auto border-t border-border px-2.5 py-2",
|
|
3168
|
+
contentClassName
|
|
3169
|
+
),
|
|
3170
|
+
children
|
|
3171
|
+
}
|
|
3172
|
+
)
|
|
3173
|
+
]
|
|
3174
|
+
}
|
|
3175
|
+
);
|
|
3176
|
+
}
|
|
3177
|
+
var indicatorClass = {
|
|
3178
|
+
running: "bg-primary animate-pulse motion-reduce:animate-none",
|
|
3179
|
+
"needs-input": "bg-warning",
|
|
3180
|
+
success: "bg-success",
|
|
3181
|
+
error: "bg-destructive",
|
|
3182
|
+
queued: "bg-transparent border-[1.5px] border-muted-foreground"
|
|
3183
|
+
};
|
|
3184
|
+
function ChatSessionTaskRow({
|
|
3185
|
+
status = "queued",
|
|
3186
|
+
indicator,
|
|
3187
|
+
name,
|
|
3188
|
+
description,
|
|
3189
|
+
meta,
|
|
3190
|
+
onClick,
|
|
3191
|
+
className
|
|
3192
|
+
}) {
|
|
3193
|
+
const content = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
3194
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex w-3.5 shrink-0 justify-center", "aria-hidden": true, children: indicator ?? /* @__PURE__ */ jsxRuntime.jsx(
|
|
3195
|
+
"span",
|
|
3196
|
+
{
|
|
3197
|
+
className: cn("h-1.5 w-1.5 rounded-full", indicatorClass[status])
|
|
3198
|
+
}
|
|
3199
|
+
) }),
|
|
3200
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "shrink-0 font-medium", children: name }),
|
|
3201
|
+
description && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "min-w-0 flex-1 truncate text-muted-foreground", children: description }),
|
|
3202
|
+
meta && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "shrink-0 tabular-nums text-muted-foreground", children: meta })
|
|
3203
|
+
] });
|
|
3204
|
+
const rowClass = cn(
|
|
3205
|
+
"flex w-full items-center gap-2 rounded-control px-1.5 py-1 text-left",
|
|
3206
|
+
onClick && "hover:bg-accent focus-visible:outline-2 focus-visible:outline-ring",
|
|
3207
|
+
className
|
|
3208
|
+
);
|
|
3209
|
+
if (onClick) {
|
|
3210
|
+
return /* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", onClick, className: rowClass, children: content });
|
|
3211
|
+
}
|
|
3212
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: rowClass, children: content });
|
|
3213
|
+
}
|
|
3214
|
+
function ChatSessionTaskGroup({
|
|
3215
|
+
heading,
|
|
3216
|
+
children,
|
|
3217
|
+
className
|
|
3218
|
+
}) {
|
|
3219
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("flex flex-col gap-1", className), children: [
|
|
3220
|
+
heading && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "font-semibold", children: heading }),
|
|
3221
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-col gap-0.5", children })
|
|
3222
|
+
] });
|
|
3223
|
+
}
|
|
3224
|
+
function ChatSessionStatusBar({
|
|
3225
|
+
start,
|
|
3226
|
+
end,
|
|
3227
|
+
className
|
|
3228
|
+
}) {
|
|
3229
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3230
|
+
"div",
|
|
3231
|
+
{
|
|
3232
|
+
className: cn(
|
|
3233
|
+
"flex items-center gap-3 px-3 py-1.5 text-muted-foreground",
|
|
3234
|
+
className
|
|
3235
|
+
),
|
|
3236
|
+
children: [
|
|
3237
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex min-w-0 flex-1 items-center gap-3", children: start }),
|
|
3238
|
+
end && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex shrink-0 items-center gap-3", children: end })
|
|
3239
|
+
]
|
|
3240
|
+
}
|
|
3241
|
+
);
|
|
3242
|
+
}
|
|
3001
3243
|
var ErrorBoundary = class extends React23.Component {
|
|
3002
3244
|
constructor(props) {
|
|
3003
3245
|
super(props);
|
|
@@ -3448,8 +3690,8 @@ var SearchInput = ({ value, onChange, ...props }) => {
|
|
|
3448
3690
|
onChange: (e) => onChange(e.target.value),
|
|
3449
3691
|
placeholder: "Search...",
|
|
3450
3692
|
className: cn(
|
|
3451
|
-
"flex h-10 w-full rounded-
|
|
3452
|
-
"w-full px-2 py-1 border rounded-
|
|
3693
|
+
"flex h-10 w-full rounded-control border border-input bg-background px-3 py-2 text-base ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
|
3694
|
+
"w-full px-2 py-1 border rounded-control dark:bg-neutral-800",
|
|
3453
3695
|
props?.className
|
|
3454
3696
|
)
|
|
3455
3697
|
}
|
|
@@ -3725,7 +3967,7 @@ var TreeItem = ({ item }) => {
|
|
|
3725
3967
|
item.onClick?.(item.id, item.label);
|
|
3726
3968
|
},
|
|
3727
3969
|
className: cn(
|
|
3728
|
-
"flex items-center gap-2 w-full rounded-
|
|
3970
|
+
"flex items-center gap-2 w-full rounded-control px-2 py-1 hover:bg-accent hover:text-accent-foreground",
|
|
3729
3971
|
hasChildren && "cursor-pointer font-medium"
|
|
3730
3972
|
),
|
|
3731
3973
|
children: [
|
|
@@ -3778,7 +4020,7 @@ function UnderDevelopment({
|
|
|
3778
4020
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Construction, { size: iconSize, className: "text-primary" }),
|
|
3779
4021
|
/* @__PURE__ */ jsxRuntime.jsx("h1", { className: "text-2xl font-bold", children: title }),
|
|
3780
4022
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground max-w-md", children: description }),
|
|
3781
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "mt-4 px-3 py-1 bg-yellow-100 text-yellow-800
|
|
4023
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "mt-4 px-3 py-1 bg-yellow-100 text-yellow-800 text-sm", children: "Coming Soon" })
|
|
3782
4024
|
] });
|
|
3783
4025
|
}
|
|
3784
4026
|
var TypographyH1 = React23__namespace.forwardRef(
|
|
@@ -4088,9 +4330,17 @@ exports.CarouselItem = CarouselItem;
|
|
|
4088
4330
|
exports.CarouselNext = CarouselNext;
|
|
4089
4331
|
exports.CarouselPrevious = CarouselPrevious;
|
|
4090
4332
|
exports.ChatSession = ChatSession;
|
|
4333
|
+
exports.ChatSessionActivityRow = ChatSessionActivityRow;
|
|
4334
|
+
exports.ChatSessionActivitySubLine = ChatSessionActivitySubLine;
|
|
4091
4335
|
exports.ChatSessionComposer = ChatSessionComposer;
|
|
4336
|
+
exports.ChatSessionDisclosure = ChatSessionDisclosure;
|
|
4092
4337
|
exports.ChatSessionMessage = ChatSessionMessage;
|
|
4093
4338
|
exports.ChatSessionMessageOptions = ChatSessionMessageOptions;
|
|
4339
|
+
exports.ChatSessionProgressLine = ChatSessionProgressLine;
|
|
4340
|
+
exports.ChatSessionPromptRow = ChatSessionPromptRow;
|
|
4341
|
+
exports.ChatSessionStatusBar = ChatSessionStatusBar;
|
|
4342
|
+
exports.ChatSessionTaskGroup = ChatSessionTaskGroup;
|
|
4343
|
+
exports.ChatSessionTaskRow = ChatSessionTaskRow;
|
|
4094
4344
|
exports.Command = Command;
|
|
4095
4345
|
exports.CommandDialog = CommandDialog;
|
|
4096
4346
|
exports.CommandEmpty = CommandEmpty;
|
|
@@ -4274,6 +4524,7 @@ exports.UnderDevelopment = UnderDevelopment;
|
|
|
4274
4524
|
exports.badgeVariants = badgeVariants;
|
|
4275
4525
|
exports.buttonGroupVariants = buttonGroupVariants;
|
|
4276
4526
|
exports.buttonVariants = buttonVariants;
|
|
4527
|
+
exports.chatSessionGutterClass = chatSessionGutterClass;
|
|
4277
4528
|
exports.cn = cn;
|
|
4278
4529
|
exports.navigationMenuTriggerStyle = navigationMenuTriggerStyle;
|
|
4279
4530
|
exports.toggleVariants = toggleVariants;
|