Files
Genarrative/packages/shared/src/components/index.ts
T
kdletters e072c66ce9
Project CI / AI game creator shell Rust lane 1/2 (push) Has been cancelled
Project CI / AI game creator shell Rust lane 2/2 (push) Has been cancelled
Project CI / Backend tests (push) Has been cancelled
Project CI / Native shell tests (push) Has been cancelled
Project CI / Frontend tests (push) Has been cancelled
Project CI / Repository checks (push) Has been cancelled
Project CI / AI game creator shell Rust crates (push) Has been cancelled
Project CI / AI game creator shell web tests (push) Has been cancelled
Project CI / AI game creator shell Rust smoke (push) Has been cancelled
修复 AGC 模板库筛选与卡片状态的表现缺陷
- 模板库筛选区改用共享筛选条与标签 chip:选中为实心品牌填充 + 反白文字,未选为浅底描边
- 未选中悬停不再借用品牌色(品牌色专属已选中),状态阶梯固定为静止 / 悬停 / 按下 / 选中
- 新增 getPlatformCategoryChipClassName 收敛筛选 chip 类名口径,模板库、资源画布、参考图弹窗与平台 Web 端共用
- PlatformSegmentedTabs 增加 accent 选中口径,与筛选 chip 共用 --platform-chip-* 语义色
- 修复卡片文字区按 grid auto 行排版导致的标题 / 简介 / 标签被裁:行高契约拆为分项常量,文字区固定 174
- 修复忙状态下动作行塞入第三个元素导致的按钮文案换行顶出卡片:忙状态写在触发它的按钮上
- 修复经典滚动条占宽导致的卡片区横向滚动条:按竖滚动条预留列宽后再算列宽行高
- 焦点环由 15% 透明度改为实心色并用 outline 绘制,选中项聚焦不再被状态投影盖掉
- 封面加载失败改为隐藏图片留中性底色,不再出现浏览器裂图图标
- 补充状态对比度、行高契约、滚动条预留、封面兜底与忙状态文案的回归测试
- 同步技术方案、踩坑记录与决策记录的口径
2026-09-23 16:51:15 +08:00

237 lines
7.1 KiB
TypeScript

export type {
PlatformActionButtonAlign,
PlatformActionButtonProps,
PlatformActionButtonShape,
PlatformActionButtonSize,
PlatformActionButtonSurface,
PlatformActionButtonTone,
} from './PlatformActionButton';
export { PlatformActionButton } from './PlatformActionButton';
export { getPlatformActionButtonClassName } from './platformActionButtonModel';
export type { PlatformAsyncStatePanelProps } from './PlatformAsyncStatePanel';
export { PlatformAsyncStatePanel } from './PlatformAsyncStatePanel';
export type {
PlatformBackActionButtonProps,
PlatformBackActionButtonVariant,
} from './PlatformBackActionButton';
export { PlatformBackActionButton } from './PlatformBackActionButton';
export type { PlatformBadgeProps, PlatformBadgeTone } from './PlatformBadge';
export { PlatformBadge } from './PlatformBadge';
export { getPlatformCategoryChipClassName } from './platformCategoryChipModel';
export type {
PlatformEmptyStateProps,
PlatformEmptyStateSize,
PlatformEmptyStateSurface,
PlatformEmptyStateTone,
} from './PlatformEmptyState';
export { PlatformEmptyState } from './PlatformEmptyState';
export type {
PlatformFieldLabelProps,
PlatformFieldLabelVariant,
} from './PlatformFieldLabel';
export { PlatformFieldLabel } from './PlatformFieldLabel';
export type {
PlatformFilterToolbarProps,
PlatformFilterToolbarTabItem,
} from './PlatformFilterToolbar';
export { PlatformFilterToolbar } from './PlatformFilterToolbar';
export type {
PlatformIconBadgeProps,
PlatformIconBadgeShape,
PlatformIconBadgeSize,
PlatformIconBadgeTone,
} from './PlatformIconBadge';
export { PlatformIconBadge } from './PlatformIconBadge';
export type {
PlatformIconButtonProps,
PlatformIconButtonSize,
PlatformIconButtonVariant,
} from './PlatformIconButton';
export { PlatformIconButton } from './PlatformIconButton';
export type {
PlatformInfoBlockProps,
PlatformInfoBlockVariant,
} from './PlatformInfoBlock';
export { PlatformInfoBlock } from './PlatformInfoBlock';
export type { PlatformModalProps } from './PlatformModal';
export { PlatformModal } from './PlatformModal';
export type {
PlatformNavigableListItemAlign,
PlatformNavigableListItemProps,
} from './PlatformNavigableListItem';
export { PlatformNavigableListItem } from './PlatformNavigableListItem';
export type {
PlatformPillBadgeProps,
PlatformPillBadgeSize,
PlatformPillBadgeTone,
} from './PlatformPillBadge';
export { PlatformPillBadge } from './PlatformPillBadge';
export { getPlatformPillBadgeClassName } from './platformPillBadgeModel';
export type {
PlatformProgressBarProps,
PlatformProgressBarSize,
} from './PlatformProgressBar';
export { PlatformProgressBar } from './PlatformProgressBar';
export type {
PlatformRuntimeStatusShape,
PlatformRuntimeStatusSize,
PlatformRuntimeStatusSurface,
PlatformRuntimeStatusToastProps,
PlatformRuntimeStatusTone,
} from './PlatformRuntimeStatusToast';
export { PlatformRuntimeStatusToast } from './PlatformRuntimeStatusToast';
export type {
PlatformSegmentedTabItem,
PlatformSegmentedTabsColumns,
PlatformSegmentedTabsFrame,
PlatformSegmentedTabsGap,
PlatformSegmentedTabsLayout,
PlatformSegmentedTabsProps,
PlatformSegmentedTabsRadius,
PlatformSegmentedTabsSemantics,
PlatformSegmentedTabsSize,
PlatformSegmentedTabsSurface,
PlatformSegmentedTabsTone,
} from './PlatformSegmentedTabs';
export { PlatformSegmentedTabs } from './PlatformSegmentedTabs';
export type {
PlatformStatGridColumns,
PlatformStatGridDensity,
PlatformStatGridItem,
PlatformStatGridOrder,
PlatformStatGridProps,
PlatformStatGridSurface,
PlatformStatGridTextAlign,
} from './PlatformStatGrid';
export { PlatformStatGrid } from './PlatformStatGrid';
export type { PlatformStatusProps, PlatformStatusTone } from './PlatformStatus';
export { PlatformStatus } from './PlatformStatus';
export type {
PlatformStatusMessageProps,
PlatformStatusMessageSize,
PlatformStatusMessageSurface,
PlatformStatusMessageTone,
} from './PlatformStatusMessage';
export { PlatformStatusMessage } from './PlatformStatusMessage';
export type {
PlatformSubpanelElement,
PlatformSubpanelPadding,
PlatformSubpanelProps,
PlatformSubpanelRadius,
PlatformSubpanelStaticElement,
PlatformSubpanelSurface,
PlatformSubpanelTitleVariant,
} from './PlatformSubpanel';
export { PlatformSubpanel } from './PlatformSubpanel';
export type {
PlatformSelectFieldProps,
PlatformTextFieldProps,
} from './PlatformTextField';
export { PlatformSelectField, PlatformTextField } from './PlatformTextField';
export type {
PlatformToggleRowMode,
PlatformToggleRowProps,
PlatformToggleRowSurface,
} from './PlatformToggleRow';
export { PlatformToggleRow } from './PlatformToggleRow';
export type {
BadgeProps,
BadgeTone,
ButtonProps,
CheckboxProps,
EmptyStateProps,
IconButtonProps,
IconButtonSize,
IconButtonVariant,
LabelProps,
ModalProps,
ProgressBarProps,
SegmentedTabItem,
SegmentedTabsProps,
SelectFieldProps,
SharedButtonSize,
SharedButtonVariant,
SkeletonProps,
StatusProps,
StatusTone,
SubpanelProps,
SwitchProps,
TableProps,
TextFieldProps,
} from './ui';
export {
Badge,
Button,
Checkbox,
Divider,
EmptyState,
IconButton,
Label,
Modal,
ProgressBar,
SegmentedTabs,
SelectField,
Skeleton,
Spinner,
Status,
Subpanel,
Switch,
Table,
TableBody,
TableCaption,
TableCell,
TableFooter,
TableHead,
TableHeader,
TableRow,
TextField,
} from './ui';
export type { BadgeProps as ShadcnBadgeProps } from './ui/badge';
export { badgeVariants, Badge as ShadcnBadge } from './ui/badge';
export type {
ButtonProps as ShadcnButtonProps,
ShadcnButtonSize,
ShadcnButtonVariant,
} from './ui/button';
export { buttonVariants, Button as ShadcnButton } from './ui/button';
export type { CardProps } from './ui/card';
export { Card, CardActions, CardHeader, CardTitle } from './ui/card';
export type { SharedDialogProps } from './ui/dialog';
export {
Dialog,
DialogClose,
DialogContent,
DialogDescription,
DialogFooter,
DialogHeader,
DialogOverlay,
DialogPortal,
DialogTitle,
DialogTrigger,
} from './ui/dialog';
export type { InputProps } from './ui/input';
export { Input, inputVariants } from './ui/input';
export type { SharedSwitchProps } from './ui/switch';
export { SwitchRoot, SwitchThumb } from './ui/switch';
export { Tabs, TabsContent, TabsList, TabsTrigger } from './ui/tabs';
export type { TextareaProps } from './ui/textarea';
export { Textarea } from './ui/textarea';
// Additional platform-prefixed aliases make the package discoverable beside
// existing application adapters while keeping the public API product-neutral.
export type { AgentMessageTone } from './AgentMessageContent';
export { AgentMessageContent } from './AgentMessageContent';
export { AgentProcessSummary } from './AgentProcessSummary';
export { CanvasCardCornerActions } from './CanvasCardCornerActions';
export { OverflowActions } from './OverflowActions';
export type {
ButtonProps as PlatformButtonProps,
SwitchProps as PlatformSwitchProps,
} from './ui';
export {
Button as PlatformButton,
Divider as PlatformDivider,
Spinner as PlatformSpinner,
Switch as PlatformSwitch,
} from './ui';