Files
apes-sidebar/src/client/ui/index.ts
T
Menghuan1918 fd13838b09 refactor(ui): 统一组件层地基与批次规划
- 新增 DownloadLink(kit.tsx)与 FallbackPane(patterns.tsx),从 ui/index.ts 导出;
  样式只用 --dsw-* / --ds-* 令牌,覆盖下载出口与 pane 级兜底消息两个跨页面模式
- 示范替换孤儿标签页占位组件(改用 FallbackPane role="status",文案与类型 chip 不变)
  与 binary-download(整页 FallbackPane + DownloadLink),删除 binary 独占的
  .editorBinary / .editorBinaryNotice 规则
- tests/ui-kit.spec.tsx、tests/ui-patterns.spec.tsx 补两个新组件的契约:
  download 属性、inline 变体、role 只在调用方要求时透传
- docs/plans/2026-11-25-ui-kit-convergence.md:36 个未接入 tsx 的 A/B/C 分类与
  B1–B4 批次(任务/作业 → 侧边对话 → 标签页与预览宿主 → 文件树与侧栏外壳)
2026-11-25 00:55:07 +08:00

29 lines
1.7 KiB
TypeScript

/**
* The global UI kit's public face. Pages import from HERE (`./ui/index.ts`)
* so the component set is one reviewable surface; the modules behind it stay
* free to split further without touching call sites.
*/
export {
ActionButton, Chip, ConfirmDialog, DownloadLink, IconButton, Notice, SectionHeader, StatusBadge,
type StatusTone,
} from './kit.tsx'
export { LoadingIndicator, type LoadingIndicatorProps } from './LoadingIndicator.tsx'
export { WorkbenchSection, type WorkbenchSectionProps } from './WorkbenchSection.tsx'
export { SelectMenu, type SelectMenuProps, type SelectOption } from './SelectMenu.tsx'
export { TextInput, TextArea, NumberInput, Checkbox, ToggleSwitch, Tabs, SettingRow, type TabOption } from './controls.tsx'
export {
ActionFooter, ChoiceCard, Disclosure, EmptyState, ErrorBlock, FactList, FactRow, FallbackPane, Field, ListRow, StatusLine,
type ActionFooterProps, type ChoiceCardProps, type ChoiceOption, type DisclosureProps, type EmptyStateProps,
type ErrorBlockProps, type Fact, type FactListProps, type FactRowProps, type FallbackPaneProps, type FieldProps,
type ListRowProps, type PatternTone, type StatusLineProps,
} from './patterns.tsx'
export { SourceSwitcher, type SourceSwitcherItem, type SourceSwitcherProps } from './SourceSwitcher.tsx'
export { SearchField, type SearchFieldProps } from './SearchField.tsx'
export { SidebarToolbar, type SidebarToolbarProps } from './SidebarToolbar.tsx'
export { Menu, MenuSurface } from './Menu.tsx'
export { useScrollLoad, type ScrollLoadOptions } from './use-scroll-load.ts'
export {
invalidateGitStatus, statusOfXY, useGitStatus,
type GitFileStatus, type GitStatusView, type GitTone,
} from './git-status.ts'