@vetta-org/theme-ui 0.1.0

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.
Files changed (406) hide show
  1. package/package.json +195 -0
  2. package/src/action-approval/AppearanceActionPickerView.tsx +291 -0
  3. package/src/action-approval/AppearanceApprovalDrawerView.tsx +69 -0
  4. package/src/action-approval/AppearancePickerApprovalView.tsx +31 -0
  5. package/src/action-approval/ApprovalParts.tsx +376 -0
  6. package/src/action-approval/BatchTasksApprovalFrameView.tsx +138 -0
  7. package/src/action-approval/BatchTasksExecutionApprovalView.tsx +158 -0
  8. package/src/action-approval/BatchTasksTaskApprovalView.tsx +152 -0
  9. package/src/action-approval/GeneralSetExecutionModeApprovalView.tsx +76 -0
  10. package/src/action-approval/GenericActionApprovalView.tsx +127 -0
  11. package/src/action-approval/ManageActionApprovalFrameTypes.ts +27 -0
  12. package/src/action-approval/ManageActionApprovalFrameView.tsx +136 -0
  13. package/src/action-approval/NavigationOpenApprovalView.tsx +119 -0
  14. package/src/action-approval/SchedulerActionApprovalDialogView.tsx +191 -0
  15. package/src/action-approval/SchedulerEditApprovalDrawerView.tsx +113 -0
  16. package/src/action-approval/SchedulerUpdateApprovalView.tsx +14 -0
  17. package/src/action-approval/ThemeChangeApprovalView.tsx +30 -0
  18. package/src/action-approval/WebhookDeleteApprovalView.tsx +56 -0
  19. package/src/action-approval/WebhookTestApprovalView.tsx +51 -0
  20. package/src/action-approval/cn.ts +4 -0
  21. package/src/action-approval/index.ts +88 -0
  22. package/src/activity/ActivityPanel.tsx +269 -0
  23. package/src/activity/ActivityPanelFrame.tsx +36 -0
  24. package/src/activity/BackgroundTasksTabPanelView.tsx +382 -0
  25. package/src/activity/BatchProgressTabPanelView.tsx +22 -0
  26. package/src/activity/BrowserPanelView.tsx +169 -0
  27. package/src/activity/ChatTabPanelView.tsx +36 -0
  28. package/src/activity/CodePreview.tsx +57 -0
  29. package/src/activity/DebugTabPanelView.tsx +67 -0
  30. package/src/activity/FileTabContentView.tsx +46 -0
  31. package/src/activity/FloatingActivityTabView.tsx +107 -0
  32. package/src/activity/HtmlPreviewView.tsx +135 -0
  33. package/src/activity/JourneyPanelView.tsx +327 -0
  34. package/src/activity/KnowledgeHistoryPanelView.tsx +93 -0
  35. package/src/activity/MarkdownPreviewView.tsx +217 -0
  36. package/src/activity/PluginTabPickerView.tsx +182 -0
  37. package/src/activity/RequestHistorySubTabView.tsx +102 -0
  38. package/src/activity/ScheduleExecutionTabPanelView.tsx +162 -0
  39. package/src/activity/TodoTabPanelView.tsx +66 -0
  40. package/src/activity/ToolCallsSubTabView.tsx +184 -0
  41. package/src/activity/WorkflowTabPanelView.tsx +129 -0
  42. package/src/activity/index.ts +110 -0
  43. package/src/app/AppBackground.tsx +24 -0
  44. package/src/app/AppBootLoadingView.tsx +51 -0
  45. package/src/app/RouteContentLoadingView.tsx +20 -0
  46. package/src/app/index.ts +13 -0
  47. package/src/app-boot.ts +1 -0
  48. package/src/app-shell/DefaultPageHeader.tsx +46 -0
  49. package/src/app-shell/DefaultWindowControls.tsx +32 -0
  50. package/src/app-shell/PageHeaderActionGroup.tsx +15 -0
  51. package/src/app-shell/PageHeaderContent.tsx +70 -0
  52. package/src/app-shell/PageHeaderFrame.tsx +53 -0
  53. package/src/app-shell/PageHeaderSidebarTrigger.tsx +21 -0
  54. package/src/app-shell/PageHeaderTitle.tsx +25 -0
  55. package/src/app-shell/PageHeaderWindowActions.tsx +22 -0
  56. package/src/app-shell/WindowControlButton.tsx +35 -0
  57. package/src/app-shell/index.ts +49 -0
  58. package/src/appearance/BackgroundImageFrame.tsx +57 -0
  59. package/src/appearance/CenterSliceImageFrame.tsx +64 -0
  60. package/src/appearance/CornerImageFrame.tsx +63 -0
  61. package/src/appearance/HorizontalSliceImageFrame.tsx +97 -0
  62. package/src/appearance/NineSliceImageFrame.tsx +65 -0
  63. package/src/appearance/ThemeSurface.tsx +91 -0
  64. package/src/appearance/index.ts +12 -0
  65. package/src/batch-tasks/BatchProjectArtifactFieldView.tsx +36 -0
  66. package/src/batch-tasks/BatchProjectDialogView.tsx +61 -0
  67. package/src/batch-tasks/BatchProjectFoldersFieldView.tsx +108 -0
  68. package/src/batch-tasks/BatchProjectGroupView.tsx +77 -0
  69. package/src/batch-tasks/BatchProjectNameFieldView.tsx +29 -0
  70. package/src/batch-tasks/BatchProjectNotificationFieldView.tsx +42 -0
  71. package/src/batch-tasks/BatchProjectRuntimeFieldsView.tsx +67 -0
  72. package/src/batch-tasks/BatchTaskActionButtonsView.tsx +67 -0
  73. package/src/batch-tasks/BatchTaskCardView.tsx +142 -0
  74. package/src/batch-tasks/BatchTaskGridView.tsx +95 -0
  75. package/src/batch-tasks/BatchTaskListView.tsx +10 -0
  76. package/src/batch-tasks/BatchTaskProjectActionsView.tsx +73 -0
  77. package/src/batch-tasks/BatchTaskProjectBlockView.tsx +117 -0
  78. package/src/batch-tasks/BatchTaskProjectHeaderView.tsx +74 -0
  79. package/src/batch-tasks/BatchTasksPageView.tsx +126 -0
  80. package/src/batch-tasks/batchTaskUi.tsx +101 -0
  81. package/src/batch-tasks/index.ts +70 -0
  82. package/src/batch-tasks/types.ts +120 -0
  83. package/src/chat/ActionButtonBarView.tsx +45 -0
  84. package/src/chat/AgentAvatarView.tsx +59 -0
  85. package/src/chat/AppshotCardView.tsx +89 -0
  86. package/src/chat/AskUserQuestionView.tsx +177 -0
  87. package/src/chat/AssistantMessageView.tsx +147 -0
  88. package/src/chat/AtPanelView.tsx +220 -0
  89. package/src/chat/BackgroundTasksBadgeView.tsx +28 -0
  90. package/src/chat/BashTerminalCard.tsx +225 -0
  91. package/src/chat/ChatExportHostView.tsx +17 -0
  92. package/src/chat/ChatHeaderActionsView.tsx +75 -0
  93. package/src/chat/ContextRingView.tsx +100 -0
  94. package/src/chat/CopyIconButton.tsx +61 -0
  95. package/src/chat/DefaultGuidingWords.tsx +75 -0
  96. package/src/chat/DefaultSceneCarousel.tsx +113 -0
  97. package/src/chat/DefaultSkillBadgeRow.tsx +103 -0
  98. package/src/chat/DrawerCard.tsx +149 -0
  99. package/src/chat/EditDiffView.tsx +137 -0
  100. package/src/chat/ExecutionModeSelectorView.tsx +124 -0
  101. package/src/chat/ExportMessageListView.tsx +20 -0
  102. package/src/chat/GuideBadgeSwiperView.tsx +79 -0
  103. package/src/chat/InlineTokenChip.tsx +68 -0
  104. package/src/chat/InputActionBarView.tsx +112 -0
  105. package/src/chat/InputBarBackground.tsx +25 -0
  106. package/src/chat/InputBarCapsule.tsx +56 -0
  107. package/src/chat/InputBarContextMenuView.tsx +79 -0
  108. package/src/chat/InputBarPlaceholder.tsx +84 -0
  109. package/src/chat/InputBarToolbarButton.tsx +42 -0
  110. package/src/chat/KnowledgeToolViews.tsx +119 -0
  111. package/src/chat/LiveThinkingView.tsx +102 -0
  112. package/src/chat/MessageActions.tsx +109 -0
  113. package/src/chat/MessageBlockSegmentsView.tsx +203 -0
  114. package/src/chat/MessageBoundaryViews.tsx +93 -0
  115. package/src/chat/MessageCardsView.tsx +126 -0
  116. package/src/chat/MessageFeedContext.tsx +14 -0
  117. package/src/chat/MessageFeedLayoutView.tsx +97 -0
  118. package/src/chat/MessageFeedView.tsx +228 -0
  119. package/src/chat/MessageInputView.tsx +193 -0
  120. package/src/chat/MessageLayoutView.tsx +156 -0
  121. package/src/chat/MessageListFooterView.tsx +127 -0
  122. package/src/chat/MessageSelectionContextMenuView.tsx +66 -0
  123. package/src/chat/MessageTimelineView.tsx +261 -0
  124. package/src/chat/MessageView.tsx +82 -0
  125. package/src/chat/MessageVisualView.tsx +43 -0
  126. package/src/chat/ModelSelectorView.tsx +407 -0
  127. package/src/chat/NewSession.ts +107 -0
  128. package/src/chat/NewSessionBackground.tsx +54 -0
  129. package/src/chat/NewSessionPageLayoutView.tsx +96 -0
  130. package/src/chat/NewSessionPicker.tsx +270 -0
  131. package/src/chat/ProgressGroupView.tsx +323 -0
  132. package/src/chat/ProjectSelectorView.tsx +253 -0
  133. package/src/chat/QueueCardView.tsx +151 -0
  134. package/src/chat/ReadImageView.tsx +73 -0
  135. package/src/chat/SandboxGrantsBadgeView.tsx +101 -0
  136. package/src/chat/SandboxPermissionCard.tsx +64 -0
  137. package/src/chat/SceneCard.tsx +138 -0
  138. package/src/chat/SendButton.tsx +135 -0
  139. package/src/chat/SessionDropZoneView.tsx +85 -0
  140. package/src/chat/SessionViewerPageView.tsx +56 -0
  141. package/src/chat/SkillCard.tsx +56 -0
  142. package/src/chat/SkillPromptAreaView.tsx +129 -0
  143. package/src/chat/SuggestionBubblesView.tsx +58 -0
  144. package/src/chat/TextBlockView.tsx +770 -0
  145. package/src/chat/TextPreview.tsx +37 -0
  146. package/src/chat/ThinkingBlockView.tsx +183 -0
  147. package/src/chat/TodoCard.tsx +243 -0
  148. package/src/chat/TodoProgress.tsx +205 -0
  149. package/src/chat/TodoStatusBarView.tsx +140 -0
  150. package/src/chat/ToolCallBlockView.tsx +188 -0
  151. package/src/chat/UsageBarView.tsx +19 -0
  152. package/src/chat/UserMessageContextMenuView.tsx +87 -0
  153. package/src/chat/UserMessageView.tsx +241 -0
  154. package/src/chat/WorkflowFooterItemsView.tsx +170 -0
  155. package/src/chat/WriteContentView.tsx +12 -0
  156. package/src/chat/index.ts +524 -0
  157. package/src/chat/markdown-link.test.ts +238 -0
  158. package/src/chat/markdown-link.ts +279 -0
  159. package/src/chat/send-button.css +318 -0
  160. package/src/chat/useHorizontalDragScroll.ts +146 -0
  161. package/src/file-explorer/ConfirmDeleteDialogView.tsx +62 -0
  162. package/src/file-explorer/FileContextMenuView.tsx +209 -0
  163. package/src/file-explorer/FileTreeCreateRow.tsx +82 -0
  164. package/src/file-explorer/FileTreeNodeView.tsx +274 -0
  165. package/src/file-explorer/FileTreeView.tsx +301 -0
  166. package/src/file-explorer/FilesPanelView.tsx +91 -0
  167. package/src/file-explorer/drag-target.test.ts +34 -0
  168. package/src/file-explorer/drag-target.ts +26 -0
  169. package/src/file-explorer/fileIcons.ts +1 -0
  170. package/src/file-explorer/index.ts +28 -0
  171. package/src/file-explorer/nativeFileDrag.test.ts +30 -0
  172. package/src/file-explorer/nativeFileDrag.ts +14 -0
  173. package/src/file-explorer/types.ts +40 -0
  174. package/src/file-explorer/useFileTreeMarqueeSelection.ts +115 -0
  175. package/src/file-preview/FilePreviewDialogView.tsx +241 -0
  176. package/src/file-preview/FilePreviewView.tsx +162 -0
  177. package/src/file-preview/LightboxImageView.tsx +131 -0
  178. package/src/file-preview/PluginFilePreviewView.tsx +24 -0
  179. package/src/file-preview/PreviewBodyView.tsx +99 -0
  180. package/src/file-preview/PreviewErrorBoundary.tsx +51 -0
  181. package/src/file-preview/TextCodeEditorView.tsx +72 -0
  182. package/src/file-preview/TextFileEditorView.tsx +213 -0
  183. package/src/file-preview/index.ts +56 -0
  184. package/src/file-preview/keyboard-target.test.ts +49 -0
  185. package/src/file-preview/keyboard-target.ts +33 -0
  186. package/src/file-preview/syntax-tokens.css +77 -0
  187. package/src/file-preview/syntax-tokens.test.ts +31 -0
  188. package/src/file-preview/syntax-tokens.ts +155 -0
  189. package/src/file-preview/text-code-editor-theme.ts +321 -0
  190. package/src/file-preview/text-editor-language.test.ts +58 -0
  191. package/src/file-preview/text-editor-language.ts +182 -0
  192. package/src/file-preview/types.ts +29 -0
  193. package/src/flowing/FlowingPanelView.tsx +79 -0
  194. package/src/flowing/FlowingWorkflowView.tsx +54 -0
  195. package/src/flowing/UserNodeView.tsx +148 -0
  196. package/src/flowing/WorkflowBindDialogView.tsx +145 -0
  197. package/src/flowing/WorkflowProgressView.tsx +149 -0
  198. package/src/flowing/index.ts +27 -0
  199. package/src/flowing-chat/ChatBubbleView.tsx +219 -0
  200. package/src/flowing-chat/ChatComposerView.tsx +362 -0
  201. package/src/flowing-chat/ChatMembersBarView.tsx +86 -0
  202. package/src/flowing-chat/ChatPanelView.tsx +73 -0
  203. package/src/flowing-chat/index.ts +21 -0
  204. package/src/index.ts +22 -0
  205. package/src/knowledge/KnowledgeBaseSwitcherView.tsx +154 -0
  206. package/src/knowledge/KnowledgeBreadcrumbView.tsx +92 -0
  207. package/src/knowledge/KnowledgeContentsPanelView.tsx +77 -0
  208. package/src/knowledge/KnowledgeContextMenuView.tsx +70 -0
  209. package/src/knowledge/KnowledgeFilesSkeleton.tsx +22 -0
  210. package/src/knowledge/KnowledgeGridView.tsx +113 -0
  211. package/src/knowledge/KnowledgeHowItWorksDialogView.tsx +85 -0
  212. package/src/knowledge/KnowledgeImportDialogView.tsx +153 -0
  213. package/src/knowledge/KnowledgeListView.tsx +107 -0
  214. package/src/knowledge/KnowledgePendingFilesDialogView.tsx +76 -0
  215. package/src/knowledge/KnowledgeProcessingBadgeView.tsx +18 -0
  216. package/src/knowledge/KnowledgeRenameDialogView.tsx +66 -0
  217. package/src/knowledge/KnowledgeSourcePickerView.tsx +60 -0
  218. package/src/knowledge/KnowledgeViewShared.tsx +103 -0
  219. package/src/knowledge/cn.ts +4 -0
  220. package/src/knowledge/coloredFileIcons.ts +1 -0
  221. package/src/knowledge/index.ts +66 -0
  222. package/src/knowledge/types.ts +31 -0
  223. package/src/knowledge/useMarqueeSelection.ts +95 -0
  224. package/src/layout/AppFrame.tsx +34 -0
  225. package/src/layout/MainContentFrame.tsx +54 -0
  226. package/src/layout/ResizeHandle.tsx +91 -0
  227. package/src/layout/SidebarDock.tsx +33 -0
  228. package/src/layout/SidebarOverlay.tsx +36 -0
  229. package/src/layout/index.ts +10 -0
  230. package/src/overlays/CommandMenuRow.tsx +119 -0
  231. package/src/overlays/CommandMenuView.tsx +183 -0
  232. package/src/overlays/ConfirmDialogView.tsx +109 -0
  233. package/src/overlays/DetailDrawer.tsx +63 -0
  234. package/src/overlays/DetailDrawerEnter.tsx +37 -0
  235. package/src/overlays/KnowledgeDropOverlayView.tsx +43 -0
  236. package/src/overlays/RouteErrorPageView.tsx +72 -0
  237. package/src/overlays/ToasterView.tsx +76 -0
  238. package/src/overlays/UpdateCheckerView.tsx +206 -0
  239. package/src/overlays/UpdateRestartDialogView.tsx +107 -0
  240. package/src/overlays/command-menu-types.ts +47 -0
  241. package/src/overlays/command-menu.css +69 -0
  242. package/src/overlays/detail-drawer-guard.test.ts +16 -0
  243. package/src/overlays/detail-drawer-guard.ts +13 -0
  244. package/src/overlays/index.ts +44 -0
  245. package/src/plugin-ui/index.ts +26 -0
  246. package/src/project/BatchQueueStatusView.tsx +352 -0
  247. package/src/project/ConversationTagDotsView.tsx +130 -0
  248. package/src/project/ConversationTagEditorDialogView.tsx +273 -0
  249. package/src/project/DefaultConversationSectionView.tsx +74 -0
  250. package/src/project/DefaultSessionListView.tsx +128 -0
  251. package/src/project/DefaultSessionRowView.tsx +125 -0
  252. package/src/project/NewProjectDialogView.tsx +140 -0
  253. package/src/project/ProjectContextMenuView.tsx +187 -0
  254. package/src/project/ProjectDetailPageView.tsx +351 -0
  255. package/src/project/ProjectGroupView.tsx +37 -0
  256. package/src/project/ProjectRowView.tsx +111 -0
  257. package/src/project/ProjectSessionsLoadingView.tsx +14 -0
  258. package/src/project/ProjectSessionsView.tsx +96 -0
  259. package/src/project/ProjectsLoadingView.tsx +15 -0
  260. package/src/project/ProjectsPanelMenusView.tsx +23 -0
  261. package/src/project/ProjectsPanelView.tsx +56 -0
  262. package/src/project/QuickScrollOverlay.tsx +188 -0
  263. package/src/project/ScheduleStatusView.tsx +110 -0
  264. package/src/project/SessionContextMenuView.tsx +71 -0
  265. package/src/project/SessionRenameInputView.tsx +49 -0
  266. package/src/project/SessionRowView.tsx +119 -0
  267. package/src/project/SidebarProjectsSectionView.tsx +35 -0
  268. package/src/project/index.ts +87 -0
  269. package/src/project/types.ts +21 -0
  270. package/src/project/useActiveSessionAutoScroll.ts +171 -0
  271. package/src/registry.ts +62 -0
  272. package/src/scheduler/AutomationPageView.tsx +159 -0
  273. package/src/scheduler/ExecutionHistoryView.tsx +179 -0
  274. package/src/scheduler/HistoryDrawerView.tsx +149 -0
  275. package/src/scheduler/TaskFormDialogView.tsx +60 -0
  276. package/src/scheduler/TaskListView.tsx +219 -0
  277. package/src/scheduler/index.ts +30 -0
  278. package/src/settings/AchievementNavigationButtonView.tsx +90 -0
  279. package/src/settings/AchievementPromotionDialogView.tsx +91 -0
  280. package/src/settings/AchievementSettingsView.tsx +44 -0
  281. package/src/settings/AppshotSettingsView.tsx +132 -0
  282. package/src/settings/ArchivedProjectsSettingsView.tsx +80 -0
  283. package/src/settings/BuiltinMcpSecretsDialogView.tsx +278 -0
  284. package/src/settings/BuiltinMcpSectionView.tsx +164 -0
  285. package/src/settings/EnvironmentSettingsView.tsx +176 -0
  286. package/src/settings/GeneralSettingsView.tsx +174 -0
  287. package/src/settings/ImChannelCardView.tsx +152 -0
  288. package/src/settings/ImChannelGuideDialogView.tsx +126 -0
  289. package/src/settings/ImFeishuDialogView.tsx +156 -0
  290. package/src/settings/ImLegacyImportBannerView.tsx +44 -0
  291. package/src/settings/ImLogDrawerView.tsx +75 -0
  292. package/src/settings/ImStatusBadgeView.tsx +39 -0
  293. package/src/settings/McpDefaultIcon.tsx +27 -0
  294. package/src/settings/McpJsonEditorView.tsx +56 -0
  295. package/src/settings/ModelsProviderFormView.tsx +128 -0
  296. package/src/settings/ModelsProvidersSectionView.tsx +52 -0
  297. package/src/settings/MotionSelect.tsx +125 -0
  298. package/src/settings/PermissionsSettingsView.tsx +106 -0
  299. package/src/settings/PetBubbleStylePreviewView.tsx +44 -0
  300. package/src/settings/PetSettingsView.tsx +165 -0
  301. package/src/settings/PresetProviderModelsListView.tsx +58 -0
  302. package/src/settings/PresetProviderRowView.tsx +302 -0
  303. package/src/settings/PresetProvidersSectionView.tsx +70 -0
  304. package/src/settings/QrBindDialogView.tsx +165 -0
  305. package/src/settings/QuickPanelSettingsSectionView.tsx +66 -0
  306. package/src/settings/RemoteMcpSectionView.tsx +192 -0
  307. package/src/settings/SettingChrome.tsx +104 -0
  308. package/src/settings/SettingsAiAssistButtonView.tsx +150 -0
  309. package/src/settings/SettingsAiAssistDialogView.tsx +251 -0
  310. package/src/settings/SettingsFormFields.tsx +121 -0
  311. package/src/settings/SettingsPageShellView.tsx +84 -0
  312. package/src/settings/SettingsSidebarView.tsx +133 -0
  313. package/src/settings/ShortcutRecorderView.tsx +88 -0
  314. package/src/settings/ShortcutsSettingsView.tsx +66 -0
  315. package/src/settings/SubscriptionActionsView.tsx +63 -0
  316. package/src/settings/SubscriptionCardsView.tsx +212 -0
  317. package/src/settings/TeamDetailView.tsx +148 -0
  318. package/src/settings/TeamDialogsView.tsx +151 -0
  319. package/src/settings/TeamListView.tsx +57 -0
  320. package/src/settings/TeamSettingsView.tsx +51 -0
  321. package/src/settings/TokenActivityChartView.tsx +286 -0
  322. package/src/settings/UsageStatsView.tsx +101 -0
  323. package/src/settings/WebhookEndpointListView.tsx +123 -0
  324. package/src/settings/WechatBindDialogView.tsx +45 -0
  325. package/src/settings/achievements/AchievementCurtains.tsx +50 -0
  326. package/src/settings/achievements/AchievementPromotionBadge3D.tsx +350 -0
  327. package/src/settings/achievements/AchievementPromotionConfetti.tsx +71 -0
  328. package/src/settings/achievements/AchievementTitle.tsx +52 -0
  329. package/src/settings/achievements/index.ts +13 -0
  330. package/src/settings/index.ts +226 -0
  331. package/src/settings/shouldCloseEmptyApiKeyEditor.test.ts +135 -0
  332. package/src/settings/shouldCloseEmptyApiKeyEditor.ts +40 -0
  333. package/src/settings/token-activity.test.ts +195 -0
  334. package/src/settings/token-activity.ts +320 -0
  335. package/src/shared/AvatarStackView.tsx +45 -0
  336. package/src/shared/BotAvatar.tsx +395 -0
  337. package/src/shared/CodeBlockCopyButton.tsx +48 -0
  338. package/src/shared/CollapsePanel.tsx +125 -0
  339. package/src/shared/ContextMenuView.tsx +134 -0
  340. package/src/shared/MacKeyboardPreview.tsx +260 -0
  341. package/src/shared/MarkdownTable.tsx +216 -0
  342. package/src/shared/MultiplierTag.tsx +15 -0
  343. package/src/shared/ScrollFade.tsx +114 -0
  344. package/src/shared/SegmentedControl.tsx +82 -0
  345. package/src/shared/SyntaxHighlightedCode.tsx +0 -0
  346. package/src/shared/TabBar.tsx +696 -0
  347. package/src/shared/TimePicker.tsx +96 -0
  348. package/src/shared/connected-tab-outline.test.ts +22 -0
  349. package/src/shared/connected-tab-outline.ts +39 -0
  350. package/src/shared/fileIcons.test.ts +28 -0
  351. package/src/shared/fileIcons.ts +322 -0
  352. package/src/shared/index.ts +38 -0
  353. package/src/shared/markdown-table-clipboard.ts +31 -0
  354. package/src/shared/provider-icon/icons.ts +56 -0
  355. package/src/shared/provider-icon/index.tsx +42 -0
  356. package/src/shared/provider-icon/svg-url.d.ts +4 -0
  357. package/src/shared/tab-drag.test.ts +14 -0
  358. package/src/shared/tab-drag.ts +15 -0
  359. package/src/shared/useDelayedUnmount.ts +36 -0
  360. package/src/sidebar/AddProjectMenuItem.tsx +21 -0
  361. package/src/sidebar/AddProjectMenuPopoverView.tsx +52 -0
  362. package/src/sidebar/AddProjectMenuTriggerView.tsx +50 -0
  363. package/src/sidebar/ChatMessageListView.tsx +66 -0
  364. package/src/sidebar/DefaultSidebar.tsx +91 -0
  365. package/src/sidebar/FlowingMessageListView.tsx +111 -0
  366. package/src/sidebar/MessageCenterDialogView.tsx +81 -0
  367. package/src/sidebar/MessageCenterEmptyState.tsx +24 -0
  368. package/src/sidebar/MessageCenterTabs.tsx +86 -0
  369. package/src/sidebar/MessageCenterToolbarButton.tsx +25 -0
  370. package/src/sidebar/MessageCenterTriggerView.tsx +39 -0
  371. package/src/sidebar/NotificationMessageListView.tsx +136 -0
  372. package/src/sidebar/ProjectsPanelEmptyState.tsx +20 -0
  373. package/src/sidebar/RunningPulseDot.tsx +10 -0
  374. package/src/sidebar/SessionStatusIcon.tsx +43 -0
  375. package/src/sidebar/SettingsMenuAccountSection.tsx +32 -0
  376. package/src/sidebar/SettingsMenuActionButton.tsx +24 -0
  377. package/src/sidebar/SettingsMenuDivider.tsx +5 -0
  378. package/src/sidebar/SettingsMenuQuotaSection.tsx +45 -0
  379. package/src/sidebar/SettingsMenuSettingsItem.tsx +18 -0
  380. package/src/sidebar/SettingsMenuThemeSection.tsx +51 -0
  381. package/src/sidebar/SettingsMenuTriggerView.tsx +65 -0
  382. package/src/sidebar/ShowMoreSessionsButton.tsx +37 -0
  383. package/src/sidebar/SidebarFilterSelectView.tsx +95 -0
  384. package/src/sidebar/SidebarNavBadgeView.tsx +58 -0
  385. package/src/sidebar/SidebarNavIcon.tsx +33 -0
  386. package/src/sidebar/SidebarNavItemButton.tsx +59 -0
  387. package/src/sidebar/SidebarNavMorePanel.tsx +199 -0
  388. package/src/sidebar/SidebarNavigation.tsx +223 -0
  389. package/src/sidebar/SidebarPanel.tsx +48 -0
  390. package/src/sidebar/SidebarTopBar.tsx +103 -0
  391. package/src/sidebar/SidebarUpdateIcon.tsx +79 -0
  392. package/src/sidebar/index.ts +118 -0
  393. package/src/sidebar/nav-badge-text.test.ts +23 -0
  394. package/src/sidebar/nav-badge-text.ts +19 -0
  395. package/src/sidebar/useSidebarNavDrag.ts +139 -0
  396. package/src/skills/PluginCardView.tsx +150 -0
  397. package/src/skills/SceneCardView.tsx +194 -0
  398. package/src/skills/SkillCardView.tsx +186 -0
  399. package/src/skills/SkillDetailDialogView.tsx +138 -0
  400. package/src/skills/SkillTagGroupView.tsx +56 -0
  401. package/src/skills/SkillToggleSwitch.tsx +31 -0
  402. package/src/skills/index.ts +29 -0
  403. package/src/skills/skill-icon.test.ts +38 -0
  404. package/src/skills/skill-icon.tsx +126 -0
  405. package/src/styles.css +75 -0
  406. package/src/utils/platform.ts +2 -0
@@ -0,0 +1,35 @@
1
+ import { forwardRef, type JSX } from "react";
2
+ import type { WindowControlButtonProps, WindowControlKind } from "@vetta-org/theme-sdk/app-shell";
3
+ import { cn } from "@vetta-org/ui";
4
+
5
+ const WINDOW_CONTROL_ICONS: Record<WindowControlKind, string> = {
6
+ close: "icon-[mdi--close]",
7
+ maximize: "icon-[mdi--window-maximize]",
8
+ minimize: "icon-[mdi--window-minimize]",
9
+ restore: "icon-[mdi--window-restore]",
10
+ };
11
+
12
+ export const WindowControlButton = forwardRef<HTMLButtonElement, WindowControlButtonProps>(
13
+ function WindowControlButton({ className, control, iconClassName, onClick, ...props }, ref): JSX.Element {
14
+ return (
15
+ <button
16
+ ref={ref}
17
+ type="button"
18
+ onClick={(event) => {
19
+ onClick?.(event);
20
+ if (!event.defaultPrevented) control.action();
21
+ }}
22
+ title={control.label}
23
+ aria-label={control.label}
24
+ className={cn(
25
+ "flex h-8 w-11 items-center justify-center rounded-md text-foreground transition-colors hover:bg-accent/50 active:opacity-70",
26
+ control.kind === "close" && "hover:bg-destructive hover:text-destructive-foreground",
27
+ className,
28
+ )}
29
+ {...props}
30
+ >
31
+ <span className={cn(WINDOW_CONTROL_ICONS[control.kind], "h-4 w-4", iconClassName)} />
32
+ </button>
33
+ );
34
+ },
35
+ );
@@ -0,0 +1,49 @@
1
+ import type { WindowControlsComponentProps } from "@vetta-org/theme-sdk/app-shell";
2
+ import type { ComponentType } from "react";
3
+ import type { PageHeaderContentProps } from "./PageHeaderContent";
4
+ import type { PageHeaderSidebarTrigger } from "./PageHeaderSidebarTrigger";
5
+ import type { PageHeaderTitle } from "./PageHeaderTitle";
6
+ import type { PageHeaderWindowActions } from "./PageHeaderWindowActions";
7
+ import type { WindowControlButton } from "./WindowControlButton";
8
+
9
+ declare module "@vetta-org/theme-sdk" {
10
+ interface ThemeComponentRegistry {
11
+ readonly "app.pageHeaderContent"?: ComponentType<PageHeaderContentProps>;
12
+ readonly "app.pageHeaderSidebarTrigger"?: typeof PageHeaderSidebarTrigger;
13
+ readonly "app.pageHeaderTitle"?: typeof PageHeaderTitle;
14
+ readonly "app.pageHeaderWindowActions"?: typeof PageHeaderWindowActions;
15
+ readonly "app.windowControls"?: ComponentType<WindowControlsComponentProps>;
16
+ readonly "app.windowControlButton"?: typeof WindowControlButton;
17
+ }
18
+ }
19
+
20
+ export type {
21
+ PageHeaderClassNames,
22
+ PageHeaderModel,
23
+ PageHeaderModelInput,
24
+ PageHeaderProps,
25
+ PageHeaderRegionProps,
26
+ PageHeaderSidebarTriggerProps,
27
+ PageHeaderTitleKey,
28
+ WindowControlButtonProps,
29
+ WindowControlItem,
30
+ WindowControlKind,
31
+ WindowControlsComponentProps,
32
+ WindowControlsModel,
33
+ WindowControlsProps,
34
+ } from "@vetta-org/theme-sdk/app-shell";
35
+ export type { DefaultPageHeaderProps } from "./DefaultPageHeader";
36
+ export { DefaultPageHeader } from "./DefaultPageHeader";
37
+ export { DefaultWindowControls } from "./DefaultWindowControls";
38
+ export type { PageHeaderActionGroupProps } from "./PageHeaderActionGroup";
39
+ export { PageHeaderActionGroup } from "./PageHeaderActionGroup";
40
+ export type { PageHeaderContentProps } from "./PageHeaderContent";
41
+ export { PageHeaderContent } from "./PageHeaderContent";
42
+ export type { PageHeaderFrameProps } from "./PageHeaderFrame";
43
+ export { PageHeaderFrame } from "./PageHeaderFrame";
44
+ export { PageHeaderSidebarTrigger } from "./PageHeaderSidebarTrigger";
45
+ export type { PageHeaderTitleProps } from "./PageHeaderTitle";
46
+ export { PageHeaderTitle } from "./PageHeaderTitle";
47
+ export type { PageHeaderWindowActionsProps } from "./PageHeaderWindowActions";
48
+ export { PageHeaderWindowActions } from "./PageHeaderWindowActions";
49
+ export { WindowControlButton } from "./WindowControlButton";
@@ -0,0 +1,57 @@
1
+ import { memo, type ComponentPropsWithoutRef, type JSX, type ReactNode } from "react";
2
+ import type { BackgroundImageFrameDecoration } from "@vetta-org/theme-sdk/appearance";
3
+ import { cn } from "@vetta-org/ui";
4
+
5
+ export interface BackgroundImageFrameProps extends ComponentPropsWithoutRef<"div"> {
6
+ children: ReactNode;
7
+ contentClassName?: string;
8
+ decoration?: BackgroundImageFrameDecoration;
9
+ imageUrl?: string;
10
+ }
11
+
12
+ export const BackgroundImageDecoration = memo(function BackgroundImageDecoration({
13
+ className,
14
+ decoration,
15
+ imageUrl,
16
+ }: {
17
+ className?: string;
18
+ decoration?: BackgroundImageFrameDecoration;
19
+ imageUrl: string;
20
+ }): JSX.Element {
21
+ return (
22
+ <span
23
+ aria-hidden="true"
24
+ className={cn("pointer-events-none absolute inset-0", className)}
25
+ style={{
26
+ backgroundImage: `url("${imageUrl}")`,
27
+ backgroundPosition: decoration?.position ?? "center",
28
+ backgroundRepeat: decoration?.repeat ?? "no-repeat",
29
+ backgroundSize: decoration?.size ?? "cover",
30
+ }}
31
+ />
32
+ );
33
+ });
34
+
35
+ export function BackgroundImageFrame({
36
+ children,
37
+ className,
38
+ contentClassName,
39
+ decoration,
40
+ imageUrl,
41
+ ...props
42
+ }: BackgroundImageFrameProps): JSX.Element {
43
+ return (
44
+ <div
45
+ className={cn("relative", className)}
46
+ {...props}
47
+ >
48
+ {imageUrl ? (
49
+ <BackgroundImageDecoration
50
+ decoration={decoration}
51
+ imageUrl={imageUrl}
52
+ />
53
+ ) : null}
54
+ <div className={cn("relative", contentClassName)}>{children}</div>
55
+ </div>
56
+ );
57
+ }
@@ -0,0 +1,64 @@
1
+ import { memo, type JSX } from "react";
2
+ import { cn } from "@vetta-org/ui";
3
+
4
+ export interface CenterSliceImageFrameDecoration {
5
+ readonly centerWidth: string;
6
+ readonly height?: string;
7
+ }
8
+
9
+ export const CenterSliceImageDecoration = memo(function CenterSliceImageDecoration({
10
+ className,
11
+ decoration,
12
+ imageUrl,
13
+ }: {
14
+ className?: string;
15
+ decoration: CenterSliceImageFrameDecoration;
16
+ imageUrl: string;
17
+ }): JSX.Element {
18
+ const sideWidth = `max(0px, calc((100% - ${decoration.centerWidth}) / 2))`;
19
+ const stretchedImageWidth = `calc(200% + ${decoration.centerWidth})`;
20
+
21
+ return (
22
+ <span
23
+ aria-hidden="true"
24
+ className={cn("pointer-events-none absolute inset-x-0 top-1/2 -translate-y-1/2", className)}
25
+ style={{ height: decoration.height ?? "100%" }}
26
+ >
27
+ <span
28
+ className="absolute bottom-0 left-0 top-0 overflow-hidden"
29
+ style={{ width: sideWidth }}
30
+ >
31
+ <img
32
+ alt=""
33
+ className="absolute left-0 top-0 h-full max-w-none select-none object-fill"
34
+ draggable={false}
35
+ src={imageUrl}
36
+ style={{ width: stretchedImageWidth }}
37
+ />
38
+ </span>
39
+ <span
40
+ className="absolute bottom-0 left-1/2 top-0 -translate-x-1/2 overflow-hidden"
41
+ style={{ width: decoration.centerWidth }}
42
+ >
43
+ <img
44
+ alt=""
45
+ className="absolute left-1/2 top-0 h-full max-w-none -translate-x-1/2 select-none object-contain"
46
+ draggable={false}
47
+ src={imageUrl}
48
+ />
49
+ </span>
50
+ <span
51
+ className="absolute bottom-0 right-0 top-0 overflow-hidden"
52
+ style={{ width: sideWidth }}
53
+ >
54
+ <img
55
+ alt=""
56
+ className="absolute right-0 top-0 h-full max-w-none select-none object-fill"
57
+ draggable={false}
58
+ src={imageUrl}
59
+ style={{ width: stretchedImageWidth }}
60
+ />
61
+ </span>
62
+ </span>
63
+ );
64
+ });
@@ -0,0 +1,63 @@
1
+ import { memo, type ComponentPropsWithoutRef, type JSX, type ReactNode } from "react";
2
+ import type { CornerImageFrameDecoration } from "@vetta-org/theme-sdk/appearance";
3
+ import { cn } from "@vetta-org/ui";
4
+
5
+ export interface CornerImageFrameProps extends ComponentPropsWithoutRef<"div"> {
6
+ children: ReactNode;
7
+ contentClassName?: string;
8
+ decoration?: CornerImageFrameDecoration;
9
+ imageUrl?: string;
10
+ }
11
+
12
+ export const CornerImageDecoration = memo(function CornerImageDecoration({
13
+ decoration,
14
+ imageUrl,
15
+ }: {
16
+ decoration: CornerImageFrameDecoration;
17
+ imageUrl: string;
18
+ }): JSX.Element {
19
+ return (
20
+ <>
21
+ {decoration.corners.map((corner) => (
22
+ <span
23
+ aria-hidden="true"
24
+ className="pointer-events-none absolute"
25
+ key={corner.id}
26
+ style={{
27
+ width: decoration.cornerWidth,
28
+ height: decoration.cornerHeight,
29
+ ...corner.position,
30
+ backgroundImage: `url("${imageUrl}")`,
31
+ backgroundPosition: corner.backgroundPosition,
32
+ backgroundRepeat: "no-repeat",
33
+ backgroundSize: decoration.backgroundSize,
34
+ }}
35
+ />
36
+ ))}
37
+ </>
38
+ );
39
+ });
40
+
41
+ export function CornerImageFrame({
42
+ children,
43
+ className,
44
+ contentClassName,
45
+ decoration,
46
+ imageUrl,
47
+ ...props
48
+ }: CornerImageFrameProps): JSX.Element {
49
+ return (
50
+ <div
51
+ className={cn("relative", className)}
52
+ {...props}
53
+ >
54
+ {imageUrl && decoration ? (
55
+ <CornerImageDecoration
56
+ decoration={decoration}
57
+ imageUrl={imageUrl}
58
+ />
59
+ ) : null}
60
+ <div className={cn("relative", contentClassName)}>{children}</div>
61
+ </div>
62
+ );
63
+ }
@@ -0,0 +1,97 @@
1
+ import { memo, type ComponentPropsWithoutRef, type JSX, type ReactNode } from "react";
2
+ import type { HorizontalSliceImageFrameDecoration } from "@vetta-org/theme-sdk/appearance";
3
+ import { cn } from "@vetta-org/ui";
4
+
5
+ export interface HorizontalSliceImageFrameProps extends ComponentPropsWithoutRef<"div"> {
6
+ children: ReactNode;
7
+ contentClassName?: string;
8
+ decoration?: HorizontalSliceImageFrameDecoration;
9
+ imageUrl?: string;
10
+ }
11
+
12
+ export const HorizontalSliceImageDecoration = memo(function HorizontalSliceImageDecoration({
13
+ className,
14
+ decoration,
15
+ imageUrl,
16
+ }: {
17
+ className?: string;
18
+ decoration: HorizontalSliceImageFrameDecoration;
19
+ imageUrl: string;
20
+ }): JSX.Element {
21
+ const centerWidth = `calc(100% + ${decoration.leftWidth} + ${decoration.rightWidth})`;
22
+
23
+ return (
24
+ <span
25
+ aria-hidden="true"
26
+ className={cn("pointer-events-none absolute inset-x-0 top-1/2 -translate-y-1/2", className)}
27
+ style={{
28
+ height: decoration.height ?? "100%",
29
+ }}
30
+ >
31
+ <span
32
+ className="absolute bottom-0 left-0 top-0 overflow-hidden"
33
+ style={{ width: decoration.leftWidth }}
34
+ >
35
+ <img
36
+ alt=""
37
+ className="absolute left-0 top-0 h-full max-w-none select-none object-contain"
38
+ draggable={false}
39
+ src={imageUrl}
40
+ />
41
+ </span>
42
+ <span
43
+ className="absolute bottom-0 top-0 overflow-hidden"
44
+ style={{
45
+ left: decoration.leftWidth,
46
+ right: decoration.rightWidth,
47
+ }}
48
+ >
49
+ <img
50
+ alt=""
51
+ className="absolute top-0 h-full max-w-none select-none object-fill"
52
+ draggable={false}
53
+ src={imageUrl}
54
+ style={{
55
+ left: `calc(-1 * ${decoration.leftWidth})`,
56
+ width: centerWidth,
57
+ }}
58
+ />
59
+ </span>
60
+ <span
61
+ className="absolute bottom-0 right-0 top-0 overflow-hidden"
62
+ style={{ width: decoration.rightWidth }}
63
+ >
64
+ <img
65
+ alt=""
66
+ className="absolute right-0 top-0 h-full max-w-none select-none object-contain"
67
+ draggable={false}
68
+ src={imageUrl}
69
+ />
70
+ </span>
71
+ </span>
72
+ );
73
+ });
74
+
75
+ export function HorizontalSliceImageFrame({
76
+ children,
77
+ className,
78
+ contentClassName,
79
+ decoration,
80
+ imageUrl,
81
+ ...props
82
+ }: HorizontalSliceImageFrameProps): JSX.Element {
83
+ return (
84
+ <div
85
+ className={cn("relative", className)}
86
+ {...props}
87
+ >
88
+ {imageUrl && decoration ? (
89
+ <HorizontalSliceImageDecoration
90
+ decoration={decoration}
91
+ imageUrl={imageUrl}
92
+ />
93
+ ) : null}
94
+ <div className={cn("relative", contentClassName)}>{children}</div>
95
+ </div>
96
+ );
97
+ }
@@ -0,0 +1,65 @@
1
+ import { memo, type ComponentPropsWithoutRef, type JSX, type ReactNode } from "react";
2
+ import type { NineSliceImageFrameDecoration } from "@vetta-org/theme-sdk/appearance";
3
+ import { cn } from "@vetta-org/ui";
4
+
5
+ export interface NineSliceImageFrameProps extends ComponentPropsWithoutRef<"div"> {
6
+ children: ReactNode;
7
+ contentClassName?: string;
8
+ decoration?: NineSliceImageFrameDecoration;
9
+ imageUrl?: string;
10
+ }
11
+
12
+ export const NineSliceImageDecoration = memo(function NineSliceImageDecoration({
13
+ className,
14
+ decoration,
15
+ imageUrl,
16
+ }: {
17
+ className?: string;
18
+ decoration: NineSliceImageFrameDecoration;
19
+ imageUrl: string;
20
+ }): JSX.Element {
21
+ return (
22
+ <span
23
+ aria-hidden="true"
24
+ // -inset-px:四周外扩 1px,盖住 DPR/非整数宽下的子像素发丝缝
25
+ // translateZ(0):独立合成层,减轻 border-image 切片接缝闪线
26
+ className={cn(
27
+ "pointer-events-none absolute -inset-px [backface-visibility:hidden] [transform:translateZ(0)]",
28
+ className,
29
+ )}
30
+ style={{
31
+ borderImageOutset: decoration.outset,
32
+ borderImageRepeat: decoration.repeat ?? "stretch",
33
+ borderImageSlice: `${decoration.slice} fill`,
34
+ borderImageSource: `url("${imageUrl}")`,
35
+ borderImageWidth: decoration.borderWidth,
36
+ borderStyle: "solid",
37
+ borderWidth: decoration.borderWidth,
38
+ }}
39
+ />
40
+ );
41
+ });
42
+
43
+ export function NineSliceImageFrame({
44
+ children,
45
+ className,
46
+ contentClassName,
47
+ decoration,
48
+ imageUrl,
49
+ ...props
50
+ }: NineSliceImageFrameProps): JSX.Element {
51
+ return (
52
+ <div
53
+ className={cn("relative", className)}
54
+ {...props}
55
+ >
56
+ {imageUrl && decoration ? (
57
+ <NineSliceImageDecoration
58
+ decoration={decoration}
59
+ imageUrl={imageUrl}
60
+ />
61
+ ) : null}
62
+ <div className={cn("relative", contentClassName)}>{children}</div>
63
+ </div>
64
+ );
65
+ }
@@ -0,0 +1,91 @@
1
+ import type { ComponentPropsWithoutRef, JSX } from "react";
2
+ import { useThemeSurface, type ThemeSurfaceSlot } from "@vetta-org/theme-sdk/appearance";
3
+ import { cn } from "@vetta-org/ui";
4
+ import { BackgroundImageDecoration } from "./BackgroundImageFrame";
5
+ import { CornerImageDecoration } from "./CornerImageFrame";
6
+ import { HorizontalSliceImageDecoration } from "./HorizontalSliceImageFrame";
7
+ import { NineSliceImageDecoration } from "./NineSliceImageFrame";
8
+
9
+ export interface ThemeSurfaceProps extends Omit<ComponentPropsWithoutRef<"div">, "children"> {
10
+ slot: ThemeSurfaceSlot;
11
+ }
12
+
13
+ export function ThemeSurface({
14
+ className,
15
+ slot,
16
+ ...props
17
+ }: ThemeSurfaceProps): JSX.Element {
18
+ const surface = useThemeSurface(slot);
19
+
20
+ if (surface?.frame?.kind === "background-image") {
21
+ return (
22
+ <div
23
+ aria-hidden="true"
24
+ className={cn("pointer-events-none absolute inset-0 z-0 overflow-hidden", className, surface.surfaceClassName)}
25
+ data-theme-surface={slot}
26
+ {...props}
27
+ >
28
+ <BackgroundImageDecoration
29
+ decoration={surface.frame.decoration}
30
+ imageUrl={surface.frame.imageUrl}
31
+ />
32
+ </div>
33
+ );
34
+ }
35
+
36
+ if (surface?.frame?.kind === "corner-image") {
37
+ return (
38
+ <div
39
+ aria-hidden="true"
40
+ className={cn("pointer-events-none absolute inset-0 z-0 overflow-visible", className, surface.surfaceClassName)}
41
+ data-theme-surface={slot}
42
+ {...props}
43
+ >
44
+ <CornerImageDecoration
45
+ decoration={surface.frame.decoration}
46
+ imageUrl={surface.frame.imageUrl}
47
+ />
48
+ </div>
49
+ );
50
+ }
51
+
52
+ if (surface?.frame?.kind === "nine-slice-image") {
53
+ return (
54
+ <div
55
+ aria-hidden="true"
56
+ className={cn("pointer-events-none absolute inset-0 z-0 overflow-visible", className, surface.surfaceClassName)}
57
+ data-theme-surface={slot}
58
+ {...props}
59
+ >
60
+ <NineSliceImageDecoration
61
+ decoration={surface.frame.decoration}
62
+ imageUrl={surface.frame.imageUrl}
63
+ />
64
+ </div>
65
+ );
66
+ }
67
+
68
+ if (surface?.frame?.kind === "horizontal-slice-image") {
69
+ return (
70
+ <div
71
+ aria-hidden="true"
72
+ className={cn("pointer-events-none absolute inset-0 z-0 overflow-visible", className, surface.surfaceClassName)}
73
+ data-theme-surface={slot}
74
+ {...props}
75
+ >
76
+ <HorizontalSliceImageDecoration
77
+ decoration={surface.frame.decoration}
78
+ imageUrl={surface.frame.imageUrl}
79
+ />
80
+ </div>
81
+ );
82
+ }
83
+
84
+ return (
85
+ <div
86
+ className={cn("pointer-events-none absolute inset-0 z-0", className, surface?.surfaceClassName)}
87
+ data-theme-surface={slot}
88
+ {...props}
89
+ />
90
+ );
91
+ }
@@ -0,0 +1,12 @@
1
+ export type { BackgroundImageFrameProps } from "./BackgroundImageFrame";
2
+ export { BackgroundImageDecoration, BackgroundImageFrame } from "./BackgroundImageFrame";
3
+ export type { CenterSliceImageFrameDecoration } from "./CenterSliceImageFrame";
4
+ export { CenterSliceImageDecoration } from "./CenterSliceImageFrame";
5
+ export type { CornerImageFrameProps } from "./CornerImageFrame";
6
+ export { CornerImageDecoration, CornerImageFrame } from "./CornerImageFrame";
7
+ export type { HorizontalSliceImageFrameProps } from "./HorizontalSliceImageFrame";
8
+ export { HorizontalSliceImageDecoration, HorizontalSliceImageFrame } from "./HorizontalSliceImageFrame";
9
+ export type { NineSliceImageFrameProps } from "./NineSliceImageFrame";
10
+ export { NineSliceImageDecoration, NineSliceImageFrame } from "./NineSliceImageFrame";
11
+ export type { ThemeSurfaceProps } from "./ThemeSurface";
12
+ export { ThemeSurface } from "./ThemeSurface";
@@ -0,0 +1,36 @@
1
+ import type { JSX } from "react";
2
+
3
+ export interface BatchProjectArtifactFieldViewLabels {
4
+ readonly title: string;
5
+ readonly optional: string;
6
+ readonly placeholder: string;
7
+ readonly hint: string;
8
+ }
9
+
10
+ export interface BatchProjectArtifactFieldViewProps {
11
+ readonly value: string;
12
+ readonly onChange: (value: string) => void;
13
+ readonly labels: BatchProjectArtifactFieldViewLabels;
14
+ }
15
+
16
+ export function BatchProjectArtifactFieldView({
17
+ value,
18
+ onChange,
19
+ labels,
20
+ }: BatchProjectArtifactFieldViewProps): JSX.Element {
21
+ return (
22
+ <div>
23
+ <label className="mb-2 flex items-center justify-between text-sm font-medium text-foreground">
24
+ <span>{labels.title}</span>
25
+ <span className="text-xs font-normal text-muted-foreground/60">{labels.optional}</span>
26
+ </label>
27
+ <textarea
28
+ value={value}
29
+ onChange={(event) => onChange(event.target.value)}
30
+ className="min-h-[72px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm text-foreground outline-none placeholder:text-muted-foreground"
31
+ placeholder={labels.placeholder}
32
+ />
33
+ <p className="mt-2 text-xs text-muted-foreground/60">{labels.hint}</p>
34
+ </div>
35
+ );
36
+ }
@@ -0,0 +1,61 @@
1
+ import type { JSX, ReactNode } from "react";
2
+ import { Button, Dialog, DialogContent, DialogHeader, DialogTitle } from "@vetta-org/ui";
3
+
4
+ export interface BatchProjectDialogViewLabels {
5
+ readonly title: string;
6
+ readonly cancel: string;
7
+ readonly submit: string;
8
+ }
9
+
10
+ export interface BatchProjectDialogViewProps {
11
+ readonly open: boolean;
12
+ readonly onClose: () => void;
13
+ readonly onSubmit: () => void;
14
+ readonly canSubmit: boolean;
15
+ readonly labels: BatchProjectDialogViewLabels;
16
+ /** Form body stays host-owned (fields may still use desktop adapters). */
17
+ readonly form: ReactNode;
18
+ }
19
+
20
+ export function BatchProjectDialogView({
21
+ open,
22
+ onClose,
23
+ onSubmit,
24
+ canSubmit,
25
+ labels,
26
+ form,
27
+ }: BatchProjectDialogViewProps): JSX.Element {
28
+ return (
29
+ <Dialog open={open} onOpenChange={(value) => !value && onClose()}>
30
+ <DialogContent
31
+ className="flex max-h-[82vh] flex-col gap-0 overflow-hidden rounded-xl border border-border/60 bg-card/95 p-0 backdrop-blur-md sm:max-w-xl"
32
+ showCloseButton={false}
33
+ >
34
+ <DialogHeader className="sr-only">
35
+ <DialogTitle>{labels.title}</DialogTitle>
36
+ </DialogHeader>
37
+
38
+ <div className="flex-1 overflow-y-auto px-7 pt-6 pb-4">{form}</div>
39
+
40
+ <div className="flex items-center justify-end gap-2 border-t border-border/40 px-5 py-3">
41
+ <Button
42
+ variant="ghost"
43
+ onClick={onClose}
44
+ className="h-9 rounded-lg px-3 text-[13px] text-muted-foreground hover:text-foreground"
45
+ >
46
+ <span className="icon-[solar--close-circle-linear] h-4 w-4" />
47
+ <span>{labels.cancel}</span>
48
+ </Button>
49
+ <Button
50
+ onClick={onSubmit}
51
+ disabled={!canSubmit}
52
+ className="h-9 rounded-lg px-4 text-[13px]"
53
+ >
54
+ <span className="icon-[solar--check-circle-linear] h-4 w-4" />
55
+ <span>{labels.submit}</span>
56
+ </Button>
57
+ </div>
58
+ </DialogContent>
59
+ </Dialog>
60
+ );
61
+ }