@erxes/ui 3.3.0 → 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@erxes/ui",
3
- "version": "3.3.0",
3
+ "version": "3.3.1-next.2",
4
4
  "description": "erxes design system: UI primitives, business modules, hooks and shared frontend state",
5
5
  "license": "AGPL-3.0-only",
6
6
  "repository": {
@@ -111,7 +111,7 @@ const SheetHeader = ({
111
111
  }: React.HTMLAttributes<HTMLDivElement>) => (
112
112
  <div
113
113
  className={cn(
114
- 'flex px-5 h-14 items-center bg-background border-b flex-none',
114
+ 'flex px-5 h-10 items-center bg-background border-b flex-none',
115
115
  className,
116
116
  )}
117
117
  {...props}
@@ -154,7 +154,7 @@ export const SidebarPanel = React.forwardRef<
154
154
  )}
155
155
  <SidebarPanelInnerTriggerHiddenContext.Provider value={triggerInSlot}>
156
156
  {open && label && (
157
- <div className="flex h-12 shrink-0 items-center gap-1 px-2">
157
+ <div className="flex h-10 shrink-0 items-center gap-1 px-2">
158
158
  <span className="min-w-0 flex-1 truncate px-2 text-sm font-medium">
159
159
  {label}
160
160
  </span>
@@ -210,7 +210,7 @@ const FocusSheetSideContentHeader = forwardRef<
210
210
  <div
211
211
  ref={ref}
212
212
  className={cn(
213
- 'h-11 px-5 flex items-center gap-2 flex-none bg-background',
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-3 flex flex-col items-center justify-start gap-3 border-b-0',
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-10 bg-sidebar data-[state=active]:bg-primary/10 data-[state=active]:text-foreground data-[state=active]:shadow-none [&_svg]:size-5 data-[state=active]:after:hidden [&_svg]:text-primary hover:bg-primary/10 data-[state=active]:hover:bg-primary/10 rounded group/side-tabs-trigger',
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-5 flex-none',
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-5 flex-none hidden group-hover/side-tabs-trigger:block" />
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 className={cn('gap-2', className)} {...props}>
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>
@@ -154,7 +154,7 @@ const AppLayoutFloatingButton = ({
154
154
  icon: React.ReactNode;
155
155
  onClick: () => void;
156
156
  }) => (
157
- <div className="absolute top-0 left-0 z-30 flex h-12 w-10 items-center justify-center bg-sidebar">
157
+ <div className="absolute top-0 left-0 z-30 flex h-10 w-10 items-center justify-center bg-sidebar">
158
158
  <Button
159
159
  aria-expanded={false}
160
160
  aria-label={label}
@@ -296,7 +296,7 @@ const AppLayoutDesktop = ({
296
296
  className="flex h-full flex-col"
297
297
  style={{ minWidth: currentWidth }}
298
298
  >
299
- <div className="flex h-12 shrink-0 items-center px-2">
299
+ <div className="flex h-10 shrink-0 items-center px-2">
300
300
  <div className="min-w-0 flex-1 truncate px-2 text-sm font-medium">
301
301
  {title}
302
302
  </div>
@@ -26,7 +26,7 @@ export const PageSubHeader = React.forwardRef<
26
26
  <div
27
27
  ref={ref}
28
28
  className={cn(
29
- 'flex-none bg-background px-3 py-2 border-b flex gap-3 h-auto',
29
+ 'flex-none bg-background px-3 py-1 border-b flex gap-3 h-auto',
30
30
  className,
31
31
  )}
32
32
  {...props}
@@ -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-13 px-3 box-border shrink-0 bg-sidebar overflow-auto styled-scroll print:hidden">
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-11 px-5 flex items-center gap-2 flex-none bg-background',
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-3 flex flex-col items-center justify-start gap-3',
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-10 bg-sidebar data-[state=active]:bg-primary/10 data-[state=active]:text-foreground data-[state=active]:shadow-none [&_svg]:size-5 data-[state=active]:after:hidden [&_svg]:text-primary hover:bg-primary/10 data-[state=active]:hover:bg-primary/10 rounded',
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-5 flex-none" />}
129
+ {!!Icon && <Icon className="size-4 flex-none" />}
130
130
  </Tooltip.Trigger>
131
131
  </Tabs.Trigger>
132
132