@emoo-ai/ui-react 0.1.9 → 0.1.10
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/README.md +1 -0
- package/dist/components/file-type-icon.d.ts +6 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +926 -906
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -42,6 +42,7 @@ Button 保留原生 ref/props、asChild、variant/size/shape 和 data-slot;`bu
|
|
|
42
42
|
- 浮层:Dialog/AlertDialog/Sheet/Drawer(Vaul)/Popover/Tooltip/HoverCard/DropdownMenu/ContextMenu/Command。
|
|
43
43
|
- 复合件:Chips/Segmented/TagsInput/ValueDiff/HistoryList;表单字段(DatePicker/AmountInput/SpecField)、Upload、DataTable(TanStack Table 封装,支持虚拟滚动)、SearchBox、NavMenu/NavSegmented、SidebarShell、GhostButton/ActionPill。
|
|
44
44
|
- 框架原语:Direction/AspectRatio/Resizable/ScrollArea/InputOTP、Card/Item/Kbd/Separator/Pagination/Attachment。
|
|
45
|
+
- 名词图标:FileTypeIcon(文件 / 文件夹 / emoo 对象彩色面性,与 ui-vue EmooFileTypeIcon 同一字形;字形与判定 `fileIconType` 在 `@emoo-ai/brand/file-icons`,`type` + `size` 默认 `1em`,纯展示不依赖注入)。动作图标仍走 `@phosphor-icons/react` 直用,包内不包装。
|
|
45
46
|
|
|
46
47
|
Progress 向 Radix 传递真实 value/max,非有限值为不确定态;CommandDialog 自带 cmdk 根上下文。Select clearable 维持受控清空与 placeholder 协议,disabled 不可清空。浮层 Content 可选 container。
|
|
47
48
|
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface FileTypeIconProps extends Omit<React.SVGProps<SVGSVGElement>, "children" | "dangerouslySetInnerHTML"> {
|
|
3
|
+
type: string;
|
|
4
|
+
size?: number | string;
|
|
5
|
+
}
|
|
6
|
+
export declare function FileTypeIcon({ type, size, ...rest }: FileTypeIconProps): import("react/jsx-runtime").JSX.Element;
|
package/dist/index.d.ts
CHANGED
|
@@ -107,4 +107,5 @@ export * from "./components/search-box";
|
|
|
107
107
|
export * from "./components/nav-menu";
|
|
108
108
|
export * from "./components/nav-segmented";
|
|
109
109
|
export * from "./components/sidebar-shell";
|
|
110
|
+
export * from "./components/file-type-icon";
|
|
110
111
|
export { btnBase } from "./lib/btn-base";
|