@teamix-evo/ui 0.7.0 → 0.7.1

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": "@teamix-evo/ui",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "description": "Source-injected UI components for Teamix Evo (shadcn-based, antd capabilities)",
5
5
  "type": "module",
6
6
  "files": [
@@ -51,9 +51,9 @@
51
51
  "vite": "^5.4.0",
52
52
  "vite-tsconfig-paths": "^6.1.1",
53
53
  "zod": "^3",
54
- "@teamix-evo/registry": "0.12.0",
54
+ "@teamix-evo/tokens": "^0.8.1",
55
55
  "@teamix-evo/eslint-config": "0.2.3",
56
- "@teamix-evo/tokens": "^0.8.0"
56
+ "@teamix-evo/registry": "0.12.0"
57
57
  },
58
58
  "publishConfig": {
59
59
  "access": "public",
@@ -1216,7 +1216,7 @@ function DataTable<T = Record<string, unknown>>(props: DataTableProps<T>) {
1216
1216
  data-col-hover={isColHover ? '' : undefined}
1217
1217
  className={cn(
1218
1218
  alignClass(cellMeta?.align),
1219
- isFixed && 'bg-background',
1219
+ isFixed && 'bg-card group-hover/row:bg-row-hover',
1220
1220
  isColHover && 'bg-muted/30',
1221
1221
  )}
1222
1222
  onMouseEnter={crossline ? () => setHoveredColId(colId) : undefined}
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import type { Meta, StoryObj } from '@storybook/react';
3
- import { RefreshCw, Rows3, Settings2 } from 'lucide-react';
3
+ import { ArrowUpDown, RotateCw, Settings } from 'lucide-react';
4
4
  import { useForm } from 'react-hook-form';
5
5
 
6
6
  import { Avatar, AvatarFallback, AvatarImage } from '@/components/avatar';
@@ -380,19 +380,19 @@ export const Full: Story = {
380
380
  addonAfter={
381
381
  <div className="flex items-center gap-1">
382
382
  <Button variant="outline" size="icon">
383
- <RefreshCw />
383
+ <RotateCw className="text-muted-foreground" />
384
384
  </Button>
385
385
  <Button
386
386
  variant="outline"
387
387
  size="icon"
388
388
  onClick={() => setSize(size === 'sm' ? 'md' : 'sm')}
389
389
  >
390
- <Rows3 />
390
+ <ArrowUpDown className="text-muted-foreground" />
391
391
  </Button>
392
392
  <Popover>
393
393
  <PopoverTrigger asChild>
394
394
  <Button variant="outline" size="icon">
395
- <Settings2 />
395
+ <Settings className="text-muted-foreground" />
396
396
  </Button>
397
397
  </PopoverTrigger>
398
398
  <PopoverContent align="end" className="w-40 p-2">
@@ -470,7 +470,7 @@ function FilterBarSearchKey({ options, className }: FilterBarSearchKeyProps) {
470
470
  <SelectTrigger
471
471
  size="sm"
472
472
  className={cn(
473
- 'h-full rounded-none border-0 border-r border-input bg-transparent shadow-none focus-visible:ring-0',
473
+ 'h-full rounded-none border-0 border-r border-r-input bg-transparent shadow-none focus-visible:ring-0 focus:border-r-input data-[state=open]:border-r-input',
474
474
  className,
475
475
  )}
476
476
  >
@@ -166,7 +166,7 @@ const PageHeaderDescription = React.forwardRef<
166
166
  <p
167
167
  ref={ref}
168
168
  data-slot="page-header-description"
169
- className={cn('my-2 text-xs text-muted-foreground', className)}
169
+ className={cn('mt-2 text-xs text-muted-foreground', className)}
170
170
  {...props}
171
171
  />
172
172
  ));
@@ -93,7 +93,7 @@ function PageShell({
93
93
  // 受限容器(如 storybook `LayoutSandbox`)通过外级注入 `min-height: 0; height: 100%` 重置。
94
94
  // 说明:传入的 sidebar 如果是默认 collapsible="offcanvas",其内部使用 `position: fixed`、
95
95
  // 高度 100svh,适用于全屏页面;在受限容器中需使用 `collapsible="none"` 退出 fixed 布局。
96
- className={cn('!flex-col', className)}
96
+ className={cn('!flex-col !h-svh', className)}
97
97
  style={
98
98
  {
99
99
  '--sidebar-width': sidebarWidth,
@@ -107,7 +107,7 @@ function PageShell({
107
107
  {sidebar}
108
108
  <SidebarInset
109
109
  data-slot="page-shell-content"
110
- className={cn('!min-h-0 overflow-y-auto', bgClass)}
110
+ className={cn('!min-h-0 overflow-hidden', bgClass)}
111
111
  >
112
112
  {children}
113
113
  </SidebarInset>
@@ -219,8 +219,8 @@ const TableRow = React.forwardRef<
219
219
  className={cn(
220
220
  'border-b border-border-subtle transition-colors',
221
221
  hoverable &&
222
- 'hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted',
223
- crossline && 'group/row',
222
+ 'group/row hover:bg-row-hover has-aria-expanded:bg-row-hover data-[state=selected]:bg-muted',
223
+ crossline && !hoverable && 'group/row',
224
224
  className,
225
225
  )}
226
226
  {...props}