@stagewise/ui 0.10.0 → 0.12.0
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/package.json +1 -1
- package/src/components/ui/context-menu.tsx +4 -4
- package/src/components/ui/dropdown-menu.tsx +5 -5
- package/src/components/ui/message-scroller.tsx +1 -1
- package/src/components/ui/sidebar.tsx +4 -1
- package/src/components/ui/trace.tsx +1 -1
- package/src/icons/custom/ui-outline-18/IconDesktop.tsx +24 -0
- package/src/icons/custom/ui-outline-18/IconFilterOutline18.tsx +18 -0
- package/src/icons/custom/ui-outline-18/index.ts +2 -0
- package/src/icons/index.ts +2 -0
package/package.json
CHANGED
|
@@ -113,7 +113,7 @@ function ContextMenuItem({
|
|
|
113
113
|
data-inset={inset}
|
|
114
114
|
data-variant={variant}
|
|
115
115
|
className={cn(
|
|
116
|
-
"group/context-menu-item relative flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-inset:pl-7 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:data-highlighted:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 dark:data-[variant=destructive]:data-highlighted:bg-destructive/20 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 focus:*:[svg]:text-accent-foreground data-[variant=destructive]:*:[svg]:text-destructive",
|
|
116
|
+
"group/context-menu-item relative flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm whitespace-nowrap outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-inset:pl-7 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:data-highlighted:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 dark:data-[variant=destructive]:data-highlighted:bg-destructive/20 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 focus:*:[svg]:text-accent-foreground data-[variant=destructive]:*:[svg]:text-destructive",
|
|
117
117
|
className,
|
|
118
118
|
)}
|
|
119
119
|
{...props}
|
|
@@ -140,7 +140,7 @@ function ContextMenuSubTrigger({
|
|
|
140
140
|
data-slot="context-menu-sub-trigger"
|
|
141
141
|
data-inset={inset}
|
|
142
142
|
className={cn(
|
|
143
|
-
"flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-inset:pl-7 data-open:bg-accent data-open:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
143
|
+
"flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm whitespace-nowrap outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-inset:pl-7 data-open:bg-accent data-open:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
144
144
|
className,
|
|
145
145
|
)}
|
|
146
146
|
{...props}
|
|
@@ -178,7 +178,7 @@ function ContextMenuCheckboxItem({
|
|
|
178
178
|
data-slot="context-menu-checkbox-item"
|
|
179
179
|
data-inset={inset}
|
|
180
180
|
className={cn(
|
|
181
|
-
"relative flex cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-inset:pl-7 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
181
|
+
"relative flex cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm whitespace-nowrap outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-inset:pl-7 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
182
182
|
className,
|
|
183
183
|
)}
|
|
184
184
|
checked={checked}
|
|
@@ -218,7 +218,7 @@ function ContextMenuRadioItem({
|
|
|
218
218
|
data-slot="context-menu-radio-item"
|
|
219
219
|
data-inset={inset}
|
|
220
220
|
className={cn(
|
|
221
|
-
"relative flex cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-inset:pl-7 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
221
|
+
"relative flex cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm whitespace-nowrap outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-inset:pl-7 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
222
222
|
className,
|
|
223
223
|
)}
|
|
224
224
|
{...props}
|
|
@@ -40,7 +40,7 @@ function DropdownMenuContent({
|
|
|
40
40
|
<MenuPrimitive.Popup
|
|
41
41
|
data-slot="dropdown-menu-content"
|
|
42
42
|
className={cn(
|
|
43
|
-
'z-50 max-h-(--available-height) w-
|
|
43
|
+
'z-50 max-h-(--available-height) w-max min-w-32 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-lg p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 outline-none data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 relative bg-popover **:data-[slot$=-item]:not-data-[variant=destructive]:focus:bg-foreground/10 **:data-[slot$=-item]:not-data-[variant=destructive]:data-highlighted:bg-foreground/10 **:data-[slot$=-separator]:bg-foreground/5 **:data-[slot$=-trigger]:focus:bg-foreground/10 **:data-[slot$=-trigger]:aria-expanded:bg-foreground/10!',
|
|
44
44
|
className,
|
|
45
45
|
)}
|
|
46
46
|
{...props}
|
|
@@ -89,7 +89,7 @@ function DropdownMenuItem({
|
|
|
89
89
|
data-inset={inset}
|
|
90
90
|
data-variant={variant}
|
|
91
91
|
className={cn(
|
|
92
|
-
"group/dropdown-menu-item relative flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-7 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:data-highlighted:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 dark:data-[variant=destructive]:data-highlighted:bg-destructive/20 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-[variant=destructive]:*:[svg]:text-destructive",
|
|
92
|
+
"group/dropdown-menu-item relative flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm whitespace-nowrap outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-7 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:data-highlighted:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 dark:data-[variant=destructive]:data-highlighted:bg-destructive/20 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-[variant=destructive]:*:[svg]:text-destructive",
|
|
93
93
|
className,
|
|
94
94
|
)}
|
|
95
95
|
{...props}
|
|
@@ -114,7 +114,7 @@ function DropdownMenuSubTrigger({
|
|
|
114
114
|
data-slot="dropdown-menu-sub-trigger"
|
|
115
115
|
data-inset={inset}
|
|
116
116
|
className={cn(
|
|
117
|
-
"flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-7 data-popup-open:bg-accent data-popup-open:text-accent-foreground data-open:bg-accent data-open:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
117
|
+
"flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm whitespace-nowrap outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-7 data-popup-open:bg-accent data-popup-open:text-accent-foreground data-open:bg-accent data-open:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
118
118
|
className,
|
|
119
119
|
)}
|
|
120
120
|
{...props}
|
|
@@ -163,7 +163,7 @@ function DropdownMenuCheckboxItem({
|
|
|
163
163
|
data-slot="dropdown-menu-checkbox-item"
|
|
164
164
|
data-inset={inset}
|
|
165
165
|
className={cn(
|
|
166
|
-
"relative flex cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground data-inset:pl-7 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
166
|
+
"relative flex cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm whitespace-nowrap outline-hidden select-none focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground data-inset:pl-7 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
167
167
|
className,
|
|
168
168
|
)}
|
|
169
169
|
checked={checked}
|
|
@@ -204,7 +204,7 @@ function DropdownMenuRadioItem({
|
|
|
204
204
|
data-slot="dropdown-menu-radio-item"
|
|
205
205
|
data-inset={inset}
|
|
206
206
|
className={cn(
|
|
207
|
-
"relative flex cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground data-inset:pl-7 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
207
|
+
"relative flex cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm whitespace-nowrap outline-hidden select-none focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground data-inset:pl-7 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
208
208
|
className,
|
|
209
209
|
)}
|
|
210
210
|
{...props}
|
|
@@ -42,7 +42,7 @@ function MessageScrollerViewport({
|
|
|
42
42
|
<MessageScrollerPrimitive.Viewport
|
|
43
43
|
data-slot="message-scroller-viewport"
|
|
44
44
|
className={cn(
|
|
45
|
-
'size-full min-h-0 min-w-0 scrollbar-thin scrollbar-gutter-stable overflow-y-auto overscroll-contain contain-content
|
|
45
|
+
'size-full min-h-0 min-w-0 scrollbar-thin scrollbar-gutter-stable overflow-y-auto overscroll-contain contain-content',
|
|
46
46
|
className,
|
|
47
47
|
)}
|
|
48
48
|
{...props}
|
|
@@ -358,7 +358,10 @@ function SidebarHeader({ className, ...props }: React.ComponentProps<'div'>) {
|
|
|
358
358
|
<div
|
|
359
359
|
data-slot="sidebar-header"
|
|
360
360
|
data-sidebar="header"
|
|
361
|
-
className={cn(
|
|
361
|
+
className={cn(
|
|
362
|
+
'flex flex-col gap-2 p-2 [&_[data-slot=button-group]>[data-slot]:first-child]:rounded-l-full! [&_[data-slot=button-group]>[data-slot]:last-child]:rounded-r-full!',
|
|
363
|
+
className,
|
|
364
|
+
)}
|
|
362
365
|
{...props}
|
|
363
366
|
/>
|
|
364
367
|
);
|
|
@@ -161,7 +161,7 @@ function TraceCollapsibleContent({
|
|
|
161
161
|
<div
|
|
162
162
|
data-slot="trace-collapsible-content-inner"
|
|
163
163
|
className={cn(
|
|
164
|
-
'mt-2 mb-1 ml-[calc(--spacing(2)-1px)] min-w-0 border-l pr-1 pl-4 leading-relaxed wrap-break-word text-muted-foreground',
|
|
164
|
+
'mt-2 mb-1 ml-[calc(--spacing(2)-1px)] min-w-0 border-l border-border pr-1 pl-4 leading-relaxed wrap-break-word text-muted-foreground',
|
|
165
165
|
className,
|
|
166
166
|
)}
|
|
167
167
|
>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import { Icon, type IconProps } from './Icon';
|
|
3
|
+
|
|
4
|
+
export const IconDesktop: React.FC<IconProps> = (props) => (
|
|
5
|
+
<Icon size="18px" {...props}>
|
|
6
|
+
<rect
|
|
7
|
+
x="1.75"
|
|
8
|
+
y="2.5"
|
|
9
|
+
width="14.5"
|
|
10
|
+
height="10"
|
|
11
|
+
rx="1.5"
|
|
12
|
+
fill="none"
|
|
13
|
+
stroke="currentColor"
|
|
14
|
+
strokeWidth="1.5"
|
|
15
|
+
/>
|
|
16
|
+
<path
|
|
17
|
+
d="M9 12.5v3M5.5 15.5h7"
|
|
18
|
+
fill="none"
|
|
19
|
+
stroke="currentColor"
|
|
20
|
+
strokeWidth="1.5"
|
|
21
|
+
strokeLinecap="round"
|
|
22
|
+
/>
|
|
23
|
+
</Icon>
|
|
24
|
+
);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
|
|
3
|
+
import { Icon, type IconProps } from './Icon';
|
|
4
|
+
|
|
5
|
+
export const IconFilterOutline18: React.FC<
|
|
6
|
+
IconProps & { strokeWidth?: number }
|
|
7
|
+
> = ({ strokeWidth = 1.5, ...props }) => (
|
|
8
|
+
<Icon size="18px" {...props}>
|
|
9
|
+
<path
|
|
10
|
+
d="M2.25 3.25h13.5L10.5 9.5v4.75l-3 1V9.5L2.25 3.25Z"
|
|
11
|
+
fill="none"
|
|
12
|
+
stroke="currentColor"
|
|
13
|
+
strokeLinecap="round"
|
|
14
|
+
strokeLinejoin="round"
|
|
15
|
+
strokeWidth={strokeWidth}
|
|
16
|
+
/>
|
|
17
|
+
</Icon>
|
|
18
|
+
);
|
|
@@ -2,6 +2,8 @@ export { Icon, type IconProps } from './Icon';
|
|
|
2
2
|
export { IconBrowserTab } from './IconBrowserTab';
|
|
3
3
|
export { IconCalendarOutline18 } from './IconCalendarOutline18';
|
|
4
4
|
export { IconCrownOutline18 } from './IconCrownOutline18';
|
|
5
|
+
export { IconDesktop } from './IconDesktop';
|
|
6
|
+
export { IconFilterOutline18 } from './IconFilterOutline18';
|
|
5
7
|
export { IconKlexOutline18 } from './IconKlexOutline18';
|
|
6
8
|
export { IconLaptop } from './IconLaptop';
|
|
7
9
|
export { IconNewTerminal } from './IconNewTerminal';
|