@quantlife/qlui 0.0.7 → 0.0.8

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.
@@ -3,7 +3,7 @@ import { Dialog as SheetPrimitive } from "radix-ui";
3
3
  declare function Sheet({ ...props }: React.ComponentProps<typeof SheetPrimitive.Root>): React.JSX.Element;
4
4
  declare function SheetTrigger({ ...props }: React.ComponentProps<typeof SheetPrimitive.Trigger>): React.JSX.Element;
5
5
  declare function SheetClose({ ...props }: React.ComponentProps<typeof SheetPrimitive.Close>): React.JSX.Element;
6
- declare function SheetContent({ className, children, side, showCloseButton, maskClosable, onInteractOutside, ...props }: React.ComponentProps<typeof SheetPrimitive.Content> & {
6
+ declare function SheetContent({ className, children, side, showCloseButton, maskClosable, onInteractOutside, onPointerDownOutside, ...props }: React.ComponentProps<typeof SheetPrimitive.Content> & {
7
7
  side?: "top" | "right" | "bottom" | "left";
8
8
  showCloseButton?: boolean;
9
9
  /** antd 兼容:点击遮罩是否关闭(false 时点外部不关闭) */
@@ -9,6 +9,9 @@ declare module "@tanstack/react-table" {
9
9
  cardHidden?: boolean;
10
10
  /** 移动卡片模式:自定义卡片字段渲染(缺省取 cell) */
11
11
  cardCell?: (row: TData) => React.ReactNode;
12
+ /** 基准列型:numeric=JetBrains Mono 右对齐(数字列);mono=等宽字体且正文色(代码列) */
13
+ numeric?: boolean;
14
+ mono?: boolean;
12
15
  }
13
16
  }
14
17
  export interface StandardTableProps<TData> {
@@ -41,6 +44,8 @@ export interface StandardTableProps<TData> {
41
44
  mobileCard?: boolean;
42
45
  /** 移动端卡片自定义渲染(优先于自动字段卡) */
43
46
  renderMobileCard?: (row: TData) => React.ReactNode;
47
+ /** 基准 compact 变体(td 7px 14px / 12.5px,th 9px 14px) */
48
+ compact?: boolean;
44
49
  }
45
50
  /** 通用数据表(@tanstack/react-table 封装:排序/筛选/分页/展开行/服务端分页/移动卡片降级) */
46
- export declare function StandardTable<TData>({ columns, data, searchable, searchPlaceholder, enableSorting, renderExpanded, pageSize, className, loading, emptyDescription, manualPagination, pageCount, pageIndex, onPaginationChange, paginationExtra, mobileCard, renderMobileCard, }: StandardTableProps<TData>): React.JSX.Element;
51
+ export declare function StandardTable<TData>({ columns, data, searchable, searchPlaceholder, enableSorting, renderExpanded, pageSize, className, loading, emptyDescription, manualPagination, pageCount, pageIndex, onPaginationChange, paginationExtra, mobileCard, renderMobileCard, compact, }: StandardTableProps<TData>): React.JSX.Element;
@@ -1,5 +1,14 @@
1
1
  import * as React from "react";
2
- declare function Table({ className, ...props }: React.ComponentProps<"table">): React.JSX.Element;
2
+ /**
3
+ * 基准表格(2efaf73c W4 · reference_components.html .tbl 规格逐条照搬)
4
+ * - 容器:border var(--line) + radius 16 + overflow auto + bg rgba(255,255,255,.015)
5
+ * - 表头:sticky top-0 z-[2] 独立底色 #161b26 + 11.5px uppercase tracking .6px + muted 色
6
+ * - 行:td 分隔线 var(--line-soft)(末行无);zebra 偶行 rgba 白 .016;hover .025;选中 accent .09
7
+ * - compact 变体:td 7px 14px / 12.5px;th 9px 14px(Table 传 size="compact")
8
+ */
9
+ declare function Table({ className, size, ...props }: React.ComponentProps<"table"> & {
10
+ size?: "default" | "compact";
11
+ }): React.JSX.Element;
3
12
  declare function TableHeader({ className, ...props }: React.ComponentProps<"thead">): React.JSX.Element;
4
13
  declare function TableBody({ className, ...props }: React.ComponentProps<"tbody">): React.JSX.Element;
5
14
  declare function TableFooter({ className, ...props }: React.ComponentProps<"tfoot">): React.JSX.Element;