@erxes/ui 3.3.1-next.1 → 3.3.1-next.2
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
CHANGED
package/src/components/sheet.tsx
CHANGED
|
@@ -111,7 +111,7 @@ const SheetHeader = ({
|
|
|
111
111
|
}: React.HTMLAttributes<HTMLDivElement>) => (
|
|
112
112
|
<div
|
|
113
113
|
className={cn(
|
|
114
|
-
'flex px-5 h-
|
|
114
|
+
'flex px-5 h-10 items-center bg-background border-b flex-none',
|
|
115
115
|
className,
|
|
116
116
|
)}
|
|
117
117
|
{...props}
|
|
@@ -210,7 +210,7 @@ const FocusSheetSideContentHeader = forwardRef<
|
|
|
210
210
|
<div
|
|
211
211
|
ref={ref}
|
|
212
212
|
className={cn(
|
|
213
|
-
'h-
|
|
213
|
+
'h-10 px-4 flex items-center gap-2 flex-none bg-background',
|
|
214
214
|
className,
|
|
215
215
|
)}
|
|
216
216
|
{...props}
|
|
@@ -237,7 +237,7 @@ const FocusSheetSideTabsList = forwardRef<
|
|
|
237
237
|
<Tabs.List
|
|
238
238
|
ref={ref}
|
|
239
239
|
className={cn(
|
|
240
|
-
'w-16 flex-none border-l bg-sidebar h-full py-
|
|
240
|
+
'w-16 flex-none border-l bg-sidebar h-full py-2 flex flex-col items-center justify-start gap-1.5 border-b-0',
|
|
241
241
|
className,
|
|
242
242
|
)}
|
|
243
243
|
{...props}
|
|
@@ -263,7 +263,7 @@ const FocusSheetSideTabsTrigger = forwardRef<
|
|
|
263
263
|
<Tabs.Trigger
|
|
264
264
|
ref={ref}
|
|
265
265
|
className={cn(
|
|
266
|
-
'size-
|
|
266
|
+
'size-8 bg-sidebar data-[state=active]:bg-primary/10 data-[state=active]:text-foreground data-[state=active]:shadow-none [&_svg]:size-4 data-[state=active]:after:hidden [&_svg]:text-primary hover:bg-primary/10 data-[state=active]:hover:bg-primary/10 rounded group/side-tabs-trigger',
|
|
267
267
|
className,
|
|
268
268
|
)}
|
|
269
269
|
value={value}
|
|
@@ -276,14 +276,14 @@ const FocusSheetSideTabsTrigger = forwardRef<
|
|
|
276
276
|
{!!Icon && (
|
|
277
277
|
<Icon
|
|
278
278
|
className={cn(
|
|
279
|
-
'size-
|
|
279
|
+
'size-4 flex-none',
|
|
280
280
|
activeSideTab === value &&
|
|
281
281
|
'group-hover/side-tabs-trigger:hidden',
|
|
282
282
|
)}
|
|
283
283
|
/>
|
|
284
284
|
)}
|
|
285
285
|
{activeSideTab === value && (
|
|
286
|
-
<IconX className="size-
|
|
286
|
+
<IconX className="size-4 flex-none hidden group-hover/side-tabs-trigger:block" />
|
|
287
287
|
)}
|
|
288
288
|
</Tabs.Trigger>
|
|
289
289
|
</Tooltip.Trigger>
|
|
@@ -306,7 +306,10 @@ const FocusSheetHeader = ({
|
|
|
306
306
|
}) => {
|
|
307
307
|
const { hasSidebar } = useFocusSheet();
|
|
308
308
|
return (
|
|
309
|
-
<Sheet.Header
|
|
309
|
+
<Sheet.Header
|
|
310
|
+
className={cn('gap-2', description && 'h-auto py-2', className)}
|
|
311
|
+
{...props}
|
|
312
|
+
>
|
|
310
313
|
{hasSidebar && <FocusSheetSidebarTrigger />}
|
|
311
314
|
<div className="flex flex-col">
|
|
312
315
|
<Sheet.Title>{title}</Sheet.Title>
|
|
@@ -56,7 +56,7 @@ export const ReportPageContainer = ({
|
|
|
56
56
|
|
|
57
57
|
return (
|
|
58
58
|
<PageContainer className="h-dvh print:h-auto print:block">
|
|
59
|
-
<header className="flex items-center justify-between h-
|
|
59
|
+
<header className="flex items-center justify-between h-10 px-3 box-border shrink-0 bg-sidebar overflow-auto styled-scroll print:hidden">
|
|
60
60
|
<div className="flex items-center gap-2 flex-none pr-8">
|
|
61
61
|
<Button variant="ghost">Report</Button>
|
|
62
62
|
<Separator.Inline />
|
|
@@ -66,7 +66,7 @@ export const SideMenuContentHeader = forwardRef<
|
|
|
66
66
|
<div
|
|
67
67
|
ref={ref}
|
|
68
68
|
className={cn(
|
|
69
|
-
'h-
|
|
69
|
+
'h-10 px-4 flex items-center gap-2 flex-none bg-background',
|
|
70
70
|
className,
|
|
71
71
|
)}
|
|
72
72
|
{...props}
|
|
@@ -91,7 +91,7 @@ export const SideMenuSidebar = forwardRef<
|
|
|
91
91
|
<Tabs.List
|
|
92
92
|
ref={ref}
|
|
93
93
|
className={cn(
|
|
94
|
-
'w-16 flex-none border-l bg-sidebar h-full py-
|
|
94
|
+
'w-16 flex-none border-l bg-sidebar h-full py-2 flex flex-col items-center justify-start gap-1.5',
|
|
95
95
|
className,
|
|
96
96
|
)}
|
|
97
97
|
{...props}
|
|
@@ -115,7 +115,7 @@ export const SideMenuTrigger = forwardRef<
|
|
|
115
115
|
<Tabs.Trigger
|
|
116
116
|
ref={ref}
|
|
117
117
|
className={cn(
|
|
118
|
-
'size-
|
|
118
|
+
'size-8 bg-sidebar data-[state=active]:bg-primary/10 data-[state=active]:text-foreground data-[state=active]:shadow-none [&_svg]:size-4 data-[state=active]:after:hidden [&_svg]:text-primary hover:bg-primary/10 data-[state=active]:hover:bg-primary/10 rounded',
|
|
119
119
|
className,
|
|
120
120
|
)}
|
|
121
121
|
onClick={(e) => {
|
|
@@ -126,7 +126,7 @@ export const SideMenuTrigger = forwardRef<
|
|
|
126
126
|
asChild
|
|
127
127
|
>
|
|
128
128
|
<Tooltip.Trigger>
|
|
129
|
-
{!!Icon && <Icon className="size-
|
|
129
|
+
{!!Icon && <Icon className="size-4 flex-none" />}
|
|
130
130
|
</Tooltip.Trigger>
|
|
131
131
|
</Tabs.Trigger>
|
|
132
132
|
|