@mcp-b/react-components 0.63.0 → 0.64.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.
- package/dist/{AgentActivity-DptCj8XQ.d.ts → AgentActivity-Cngwkalq.d.ts} +2 -9
- package/dist/{AgentChatQueue-DG2rGyCI.d.ts → AgentChatQueue-C1TDnVAn.d.ts} +1 -1
- package/dist/{AppTopBar-DwzydmXu.d.ts → AppTopBar-CM57rJID.d.ts} +7 -3
- package/dist/ChatGptSignInScreen-CmbBe09G.js +298 -0
- package/dist/{CodeBlock-BTkag9ms.d.ts → CodeBlock-BDupVceI.d.ts} +1 -1
- package/dist/CodeBlock-dt0L8md0.js +892 -0
- package/dist/{EmployeeChrome--PWdtg4B.d.ts → EmployeeChrome-kegSASjC.d.ts} +6 -5
- package/dist/{ExecutionBoard-DvPGdn4F.d.ts → ExecutionBoard-DBj1Aiva.d.ts} +8 -1
- package/dist/ExecutionResult-CXnGcmM4.js +671 -0
- package/dist/FileTree-CjfzpN6X.js +968 -0
- package/dist/{IconButton-FWsa9562.d.ts → IconButton-DXtGMkMI.d.ts} +7 -5
- package/dist/ManagerOffice-T79utm-P.js +2469 -0
- package/dist/{Menu-FA4P6KrA.d.ts → Menu-DajfQr3T.d.ts} +4 -2
- package/dist/{Message-BUedRDN1.d.ts → Message-BLyl6kWe.d.ts} +2 -2
- package/dist/{PromptInput-Dbe6WgWA.d.ts → PromptInput-DEwFMj6f.d.ts} +5 -8
- package/dist/{ResponsiveSidebarShell-DSAMNDdg.d.ts → ResponsiveSidebarShell-RwvmlMHS.d.ts} +23 -13
- package/dist/SetupChecklist-DwscX3Bw.js +230 -0
- package/dist/{Tabs-BYs-RgJ7.d.ts → Tabs-tyvVX3nc.d.ts} +29 -10
- package/dist/{ThinkChatActivity-zZaSsbC-.d.ts → ThinkChatActivity-C7xnO0Fx.d.ts} +1 -1
- package/dist/{ThinkChatActivitySummary-8MO1VjAJ.d.ts → ThinkChatActivitySummary-Dh4Av7x_.d.ts} +1 -1
- package/dist/{ThinkExecutionRun-DJ2TFDmZ.d.ts → ThinkExecutionRun-QzZVWX75.d.ts} +11 -3
- package/dist/ThinkSchedule-D4Ulsa0-.d.ts +53 -0
- package/dist/{ThinkThreadPicker-BmIZmpae.d.ts → ThinkThreadPicker-O-i2KloZ.d.ts} +1 -1
- package/dist/{Workspace-42LA9Zrb.d.ts → Workspace-B9nuTfIi.d.ts} +1 -1
- package/dist/{WorkspaceAutomation-yDZorXla.d.ts → WorkspaceAutomation-C0fghGLi.d.ts} +3 -3
- package/dist/WorkspaceBrowser-oBJv-Dac.js +985 -0
- package/dist/{WorkspaceConcept-BjrgGE1w.d.ts → WorkspaceConcept-D46cYerS.d.ts} +1 -1
- package/dist/{WorkspaceFile-nK2n0i4S.d.ts → WorkspaceFile-BJC6vlp_.d.ts} +15 -4
- package/dist/WorkspaceFileCommands-SNIjRgtU.d.ts +145 -0
- package/dist/WorkspaceFileTransfer-BRD22nW-.d.ts +159 -0
- package/dist/WorkspaceLink-DDkj-Tq5.js +407 -0
- package/dist/{WorkspaceMessageResponse-BZ-_I18b.js → WorkspaceMessageResponse-CXGOQgpo.js} +111 -24
- package/dist/{agent-tool-runs-DsOp_X2y.js → agent-tool-runs-BXKdcxl8.js} +55 -28
- package/dist/app-bar-outlet-BEIGl9iF.js +35 -0
- package/{LICENSE → dist/assets/desktop/LICENSE.fluent.txt} +1 -1
- package/dist/assets/desktop/LICENSE.mac-icons.txt +7 -0
- package/dist/assets/desktop/README.md +43 -0
- package/dist/assets/desktop/automations.svg +19 -0
- package/dist/assets/desktop/document.svg +24 -0
- package/dist/assets/desktop/folder.png +0 -0
- package/dist/assets/desktop/mail.svg +31 -0
- package/dist/assets/desktop/settings.svg +9 -0
- package/dist/assets/desktop/trash-full.svg +23 -0
- package/dist/assets/desktop/trash.svg +19 -0
- package/dist/attachment-preview-DeRqFjdz.js +68 -0
- package/dist/attempt-CySQHJsF.js +21 -0
- package/dist/command-search-1fjmCBBo.js +34 -0
- package/dist/components/agents-sdk/AIProviderDialog.js +757 -224
- package/dist/components/agents-sdk/AgentActivity.d.ts +2 -2
- package/dist/components/agents-sdk/AgentActivity.js +78 -31
- package/dist/components/agents-sdk/AgentChat.d.ts +3 -3
- package/dist/components/agents-sdk/AgentChat.js +1113 -386
- package/dist/components/agents-sdk/AgentChatQueue.d.ts +1 -1
- package/dist/components/agents-sdk/AgentChatQueue.js +290 -173
- package/dist/components/agents-sdk/AgentComputer.d.ts +270 -0
- package/dist/components/agents-sdk/AgentComputer.js +8045 -0
- package/dist/components/agents-sdk/AgentEvent.js +164 -21
- package/dist/components/agents-sdk/AgentScreenSwitcher.d.ts +46 -0
- package/dist/components/agents-sdk/AgentScreenSwitcher.js +409 -0
- package/dist/components/agents-sdk/AgentToolRunsContext.js +139 -41
- package/dist/components/agents-sdk/BrowserLiveScreen.js +860 -551
- package/dist/components/agents-sdk/BrowserLiveView.d.ts +1 -1
- package/dist/components/agents-sdk/BrowserLiveView.js +244 -88
- package/dist/components/agents-sdk/BrowserReplay.js +298 -133
- package/dist/components/agents-sdk/BrowserRunPanel.d.ts +57 -1
- package/dist/components/agents-sdk/BrowserRunPanel.js +979 -129
- package/dist/components/agents-sdk/DiscordConnectionDialog.js +104 -57
- package/dist/components/agents-sdk/EmployeeApp.d.ts +1 -1
- package/dist/components/agents-sdk/EmployeeApp.js +108 -46
- package/dist/components/agents-sdk/EmployeeChat.d.ts +1 -1
- package/dist/components/agents-sdk/EmployeeChat.js +500 -99
- package/dist/components/agents-sdk/EmployeeChrome.d.ts +1 -1
- package/dist/components/agents-sdk/EmployeeChrome.js +1375 -557
- package/dist/components/agents-sdk/EmployeeSchedules.d.ts +3 -3
- package/dist/components/agents-sdk/EmployeeSchedules.js +281 -64
- package/dist/components/agents-sdk/EmployeeStartScreen.d.ts +2 -2
- package/dist/components/agents-sdk/EmployeeStartScreen.js +185 -52
- package/dist/components/agents-sdk/ExecutionBoard.d.ts +1 -1
- package/dist/components/agents-sdk/ExecutionBoard.js +1661 -462
- package/dist/components/agents-sdk/ManagerAccountActions.js +142 -35
- package/dist/components/agents-sdk/ManagerOffice.d.ts +15 -8
- package/dist/components/agents-sdk/ManagerOffice.js +1 -1
- package/dist/components/agents-sdk/ManagerOfficeScreens.d.ts +1 -1
- package/dist/components/agents-sdk/ManagerOfficeScreens.js +551 -185
- package/dist/components/agents-sdk/McpConnectionRequest.js +332 -117
- package/dist/components/agents-sdk/McpConnectorForm.js +320 -100
- package/dist/components/agents-sdk/McpPluginCatalog.js +697 -249
- package/dist/components/agents-sdk/McpServerIcon.js +57 -14
- package/dist/components/agents-sdk/McpServerPicker.d.ts +1 -1
- package/dist/components/agents-sdk/McpServerPicker.js +542 -158
- package/dist/components/agents-sdk/ModelSelector.js +1151 -253
- package/dist/components/agents-sdk/PromptInputApproval.js +115 -27
- package/dist/components/agents-sdk/PromptInputCommands.d.ts +1 -1
- package/dist/components/agents-sdk/PromptInputCommands.js +33 -46
- package/dist/components/agents-sdk/SlackConnectionDialog.js +38 -14
- package/dist/components/agents-sdk/SubagentRunIndicator.js +118 -25
- package/dist/components/agents-sdk/SubagentRunLanes.js +291 -107
- package/dist/components/agents-sdk/SubagentRunPanel.js +357 -129
- package/dist/components/agents-sdk/SubagentRunSelector.js +123 -26
- package/dist/components/agents-sdk/ThinkChat.d.ts +2 -2
- package/dist/components/agents-sdk/ThinkChat.js +321 -132
- package/dist/components/agents-sdk/ThinkChatActivity.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkChatActivity.js +306 -100
- package/dist/components/agents-sdk/ThinkChatActivitySummary.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkChatActivitySummary.js +15 -9
- package/dist/components/agents-sdk/ThinkChatToolPanels.js +1386 -404
- package/dist/components/agents-sdk/ThinkExecutionDetail.d.ts +5 -3
- package/dist/components/agents-sdk/ThinkExecutionDetail.js +219 -45
- package/dist/components/agents-sdk/ThinkExecutionRun.d.ts +2 -2
- package/dist/components/agents-sdk/ThinkExecutionRun.js +19 -11
- package/dist/components/agents-sdk/ThinkExecutionStatus.d.ts +5 -3
- package/dist/components/agents-sdk/ThinkExecutionStatus.js +224 -37
- package/dist/components/agents-sdk/ThinkExecutionWorkbench.d.ts +8 -5
- package/dist/components/agents-sdk/ThinkExecutionWorkbench.js +505 -124
- package/dist/components/agents-sdk/ThinkFullApp.js +147 -44
- package/dist/components/agents-sdk/ThinkPendingApproval.js +381 -75
- package/dist/components/agents-sdk/ThinkRecoveryNotice.js +71 -26
- package/dist/components/agents-sdk/ThinkSchedule.d.ts +2 -2
- package/dist/components/agents-sdk/ThinkSchedule.js +124 -1
- package/dist/components/agents-sdk/ThinkScheduleActions.d.ts +3 -3
- package/dist/components/agents-sdk/ThinkScheduleActions.js +363 -132
- package/dist/components/agents-sdk/ThinkScheduleBrowser.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkScheduleBrowser.js +249 -116
- package/dist/components/agents-sdk/ThinkScheduleDetail.d.ts +2 -2
- package/dist/components/agents-sdk/ThinkScheduleDetail.js +311 -90
- package/dist/components/agents-sdk/ThinkScheduleForm.d.ts +6 -2
- package/dist/components/agents-sdk/ThinkScheduleForm.js +1318 -475
- package/dist/components/agents-sdk/ThinkThreadPicker.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkThreadPicker.js +434 -214
- package/dist/components/agents-sdk/TypeSafeConnectionDialog.js +30 -13
- package/dist/components/agents-sdk/WorkbenchBack.js +66 -20
- package/dist/components/agents-sdk/Workspace.d.ts +1 -1
- package/dist/components/agents-sdk/Workspace.js +491 -166
- package/dist/components/agents-sdk/WorkspaceAutomation.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceAutomation.js +1492 -415
- package/dist/components/agents-sdk/WorkspaceAutomationTable.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceAutomationTable.js +1316 -525
- package/dist/components/agents-sdk/WorkspaceBrowser.d.ts +72 -2
- package/dist/components/agents-sdk/WorkspaceBrowser.js +1 -94
- package/dist/components/agents-sdk/WorkspaceConcept.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceCorrespondence.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceCorrespondence.js +619 -178
- package/dist/components/agents-sdk/WorkspaceDesktop.d.ts +45 -0
- package/dist/components/agents-sdk/WorkspaceDesktop.js +240 -0
- package/dist/components/agents-sdk/WorkspaceExplorer.d.ts +52 -1
- package/dist/components/agents-sdk/WorkspaceExplorer.js +267 -85
- package/dist/components/agents-sdk/WorkspaceFile.d.ts +2 -2
- package/dist/components/agents-sdk/WorkspaceFile.js +30 -9
- package/dist/components/agents-sdk/WorkspaceFileCommands.d.ts +2 -0
- package/dist/components/agents-sdk/WorkspaceFileCommands.js +890 -0
- package/dist/components/agents-sdk/WorkspaceFileDetails.d.ts +29 -0
- package/dist/components/agents-sdk/WorkspaceFileDetails.js +271 -0
- package/dist/components/agents-sdk/WorkspaceFileTransfer.d.ts +2 -0
- package/dist/components/agents-sdk/WorkspaceFileTransfer.js +505 -0
- package/dist/components/agents-sdk/WorkspaceFileView.d.ts +18 -3
- package/dist/components/agents-sdk/WorkspaceFileView.js +866 -1
- package/dist/components/agents-sdk/WorkspaceHeader.js +71 -26
- package/dist/components/agents-sdk/WorkspaceLink.js +2 -2
- package/dist/components/agents-sdk/WorkspaceLive.d.ts +2 -2
- package/dist/components/agents-sdk/WorkspaceLive.js +126 -73
- package/dist/components/agents-sdk/WorkspaceLocalFolder.d.ts +63 -0
- package/dist/components/agents-sdk/WorkspaceLocalFolder.js +455 -0
- package/dist/components/agents-sdk/WorkspaceMessageResponse.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceMessageResponse.js +1 -1
- package/dist/components/agents-sdk/WorkspaceMountManager.js +118 -58
- package/dist/components/agents-sdk/WorkspaceNavigationRestoration.js +90 -54
- package/dist/components/agents-sdk/WorkspacePerson.d.ts +2 -2
- package/dist/components/agents-sdk/WorkspacePerson.js +172 -41
- package/dist/components/agents-sdk/WorkspaceProject.d.ts +2 -2
- package/dist/components/agents-sdk/WorkspaceProject.js +175 -41
- package/dist/components/ai-sdk/Activity.js +768 -192
- package/dist/components/ai-sdk/AgentAttention.js +286 -58
- package/dist/components/ai-sdk/AgentChatMessageEditor.js +193 -68
- package/dist/components/ai-sdk/AgentChatStartScreen.d.ts +1 -1
- package/dist/components/ai-sdk/AgentChatStartScreen.js +368 -80
- package/dist/components/ai-sdk/AgentChatTurnError.js +75 -25
- package/dist/components/ai-sdk/AgentMessageParts.js +0 -1
- package/dist/components/ai-sdk/Approval.js +574 -172
- package/dist/components/ai-sdk/Artifact.d.ts +1 -1
- package/dist/components/ai-sdk/Artifact.js +535 -128
- package/dist/components/ai-sdk/ChainOfThought.d.ts +1 -1
- package/dist/components/ai-sdk/ChainOfThought.js +404 -80
- package/dist/components/ai-sdk/Checkpoint.js +229 -45
- package/dist/components/ai-sdk/CodeBlock.d.ts +1 -1
- package/dist/components/ai-sdk/CodeBlock.js +1 -1
- package/dist/components/ai-sdk/ComposerLink.js +216 -48
- package/dist/components/ai-sdk/ConnectedAppCards.js +229 -52
- package/dist/components/ai-sdk/Context.js +737 -178
- package/dist/components/ai-sdk/Conversation.d.ts +1 -1
- package/dist/components/ai-sdk/Conversation.js +305 -68
- package/dist/components/ai-sdk/ExpansionState.js +74 -15
- package/dist/components/ai-sdk/Goal.js +435 -116
- package/dist/components/ai-sdk/InlineCitation.js +313 -76
- package/dist/components/ai-sdk/MediaPreviewCard.js +451 -135
- package/dist/components/ai-sdk/Message.d.ts +1 -1
- package/dist/components/ai-sdk/Message.js +1010 -195
- package/dist/components/ai-sdk/MessageScroller.d.ts +1 -1
- package/dist/components/ai-sdk/MessageScroller.js +264 -46
- package/dist/components/ai-sdk/MessageScrollerVirtual.js +6 -6
- package/dist/components/ai-sdk/Plan.js +639 -128
- package/dist/components/ai-sdk/PromptInput.d.ts +1 -1
- package/dist/components/ai-sdk/PromptInput.js +2735 -794
- package/dist/components/ai-sdk/PromptInputComposerEditor.d.ts +1 -3
- package/dist/components/ai-sdk/PromptInputComposerEditor.js +188 -83
- package/dist/components/ai-sdk/Queue.js +792 -154
- package/dist/components/ai-sdk/Reasoning.js +268 -69
- package/dist/components/ai-sdk/Sources.js +226 -63
- package/dist/components/ai-sdk/Task.js +294 -71
- package/dist/components/ai-sdk/ToolApproval.js +126 -26
- package/dist/components/ai-sdk/ToolInvocation.js +112 -22
- package/dist/components/extension/ChatGptSignInScreen.js +1 -82
- package/dist/components/extension/CodexModelSelector.d.ts +1 -1
- package/dist/components/extension/CodexModelSelector.js +467 -146
- package/dist/components/extension/ConversationTabPicker.d.ts +1 -1
- package/dist/components/extension/ConversationTabPicker.js +254 -76
- package/dist/components/extension/FirstRunSetup.d.ts +61 -35
- package/dist/components/extension/FirstRunSetup.js +3834 -1012
- package/dist/components/foundations/Accordion.js +186 -41
- package/dist/components/foundations/AlertDialog.js +425 -97
- package/dist/components/foundations/AppIcon.d.ts +13 -13
- package/dist/components/foundations/AppIcon.js +183 -34
- package/dist/components/foundations/Autocomplete.js +408 -89
- package/dist/components/foundations/Avatar.d.ts +100 -2
- package/dist/components/foundations/Avatar.js +204 -44
- package/dist/components/foundations/Button.js +64 -13
- package/dist/components/foundations/Card.js +357 -63
- package/dist/components/foundations/Checkbox.js +82 -17
- package/dist/components/foundations/CheckboxGroup.js +266 -58
- package/dist/components/foundations/Collapsible.d.ts +2 -1
- package/dist/components/foundations/Collapsible.js +129 -26
- package/dist/components/foundations/Combobox.js +408 -89
- package/dist/components/foundations/ContextMenu.d.ts +2 -2
- package/dist/components/foundations/ContextMenu.js +591 -117
- package/dist/components/foundations/DescriptionList.js +159 -28
- package/dist/components/foundations/Dialog.js +373 -89
- package/dist/components/foundations/EmptyState.js +86 -23
- package/dist/components/foundations/Favicon.d.ts +17 -0
- package/dist/components/foundations/Favicon.js +62 -0
- package/dist/components/foundations/Field.js +525 -108
- package/dist/components/foundations/Fieldset.js +115 -23
- package/dist/components/foundations/Form.js +38 -9
- package/dist/components/foundations/FormattedDate.d.ts +19 -5
- package/dist/components/foundations/FormattedDate.js +82 -12
- package/dist/components/foundations/IconButton.d.ts +1 -1
- package/dist/components/foundations/IconButton.js +114 -17
- package/dist/components/foundations/Input.js +38 -9
- package/dist/components/foundations/Kbd.js +55 -10
- package/dist/components/foundations/Label.js +56 -12
- package/dist/components/foundations/LinkButton.js +67 -15
- package/dist/components/foundations/Marker.js +138 -29
- package/dist/components/foundations/Menu.d.ts +1 -1
- package/dist/components/foundations/Menu.js +634 -136
- package/dist/components/foundations/Menubar.d.ts +2 -2
- package/dist/components/foundations/Menubar.js +685 -130
- package/dist/components/foundations/Meter.js +186 -41
- package/dist/components/foundations/NavigationMenu.js +426 -95
- package/dist/components/foundations/NumberField.js +223 -49
- package/dist/components/foundations/Popover.js +398 -88
- package/dist/components/foundations/PreviewCard.js +234 -53
- package/dist/components/foundations/Progress.js +117 -25
- package/dist/components/foundations/RadioGroup.d.ts +13 -5
- package/dist/components/foundations/RadioGroup.js +132 -25
- package/dist/components/foundations/ScrollArea.js +230 -51
- package/dist/components/foundations/SearchField.d.ts +8 -3
- package/dist/components/foundations/SearchField.js +129 -28
- package/dist/components/foundations/Select.js +648 -145
- package/dist/components/foundations/Separator.js +61 -12
- package/dist/components/foundations/Slider.js +260 -57
- package/dist/components/foundations/Stepper.d.ts +1 -1
- package/dist/components/foundations/Stepper.js +561 -127
- package/dist/components/foundations/Switch.js +82 -18
- package/dist/components/foundations/Tabs.d.ts +2 -2
- package/dist/components/foundations/Tabs.js +282 -53
- package/dist/components/foundations/Textarea.js +43 -9
- package/dist/components/foundations/ThemeProvider.js +138 -52
- package/dist/components/foundations/Toast.d.ts +10 -2
- package/dist/components/foundations/Toast.js +322 -75
- package/dist/components/foundations/Toggle.d.ts +5 -2
- package/dist/components/foundations/Toggle.js +51 -10
- package/dist/components/foundations/ToggleGroup.d.ts +3 -3
- package/dist/components/foundations/ToggleGroup.js +215 -59
- package/dist/components/foundations/Toolbar.js +249 -61
- package/dist/components/foundations/Tooltip.d.ts +3 -3
- package/dist/components/foundations/Tooltip.js +311 -55
- package/dist/components/foundations/TransitionSurface.js +43 -9
- package/dist/components/foundations/icons.d.ts +2 -2
- package/dist/components/foundations/icons.js +2 -2
- package/dist/components/general-purpose/AccountSignInDialog.js +99 -17
- package/dist/components/general-purpose/ActionGuide.js +290 -64
- package/dist/components/general-purpose/AppFrame.js +72 -14
- package/dist/components/general-purpose/AppTopBar.d.ts +1 -1
- package/dist/components/general-purpose/AppTopBar.js +349 -60
- package/dist/components/general-purpose/BrandLoading.js +37 -9
- package/dist/components/general-purpose/CommandPalette.d.ts +47 -0
- package/dist/components/general-purpose/CommandPalette.js +271 -0
- package/dist/components/general-purpose/Commit.d.ts +1 -1
- package/dist/components/general-purpose/Commit.js +937 -167
- package/dist/components/general-purpose/EnvironmentVariables.d.ts +1 -1
- package/dist/components/general-purpose/EnvironmentVariables.js +600 -114
- package/dist/components/general-purpose/FileTree.d.ts +20 -7
- package/dist/components/general-purpose/FileTree.js +1 -1
- package/dist/components/general-purpose/ListDetail.d.ts +84 -0
- package/dist/components/general-purpose/ListDetail.js +423 -0
- package/dist/components/general-purpose/NotificationPrompt.js +20 -11
- package/dist/components/general-purpose/PricingBillingToggle.js +33 -6
- package/dist/components/general-purpose/PricingConfirmationDialog.js +126 -42
- package/dist/components/general-purpose/PricingFAQ.js +53 -12
- package/dist/components/general-purpose/PricingPage.js +376 -139
- package/dist/components/general-purpose/PricingPlanCard.js +209 -84
- package/dist/components/general-purpose/PricingUsageCalculator.js +231 -81
- package/dist/components/general-purpose/ResizableSidePanel.js +316 -117
- package/dist/components/general-purpose/ResponsiveSidebarShell.d.ts +1 -1
- package/dist/components/general-purpose/ResponsiveSidebarShell.js +840 -342
- package/dist/components/general-purpose/ScreenStack.d.ts +54 -0
- package/dist/components/general-purpose/ScreenStack.js +427 -0
- package/dist/components/general-purpose/SettingsFormDialog.js +235 -77
- package/dist/components/general-purpose/SetupChecklist.js +1 -1
- package/dist/components/general-purpose/StatusScreen.js +82 -24
- package/dist/components/general-purpose/SwipeActions.d.ts +54 -0
- package/dist/components/general-purpose/SwipeActions.js +357 -0
- package/dist/components/general-purpose/Terminal.d.ts +22 -48
- package/dist/components/general-purpose/Terminal.js +320 -174
- package/dist/components/general-purpose/TestResults.js +975 -196
- package/dist/components/general-purpose/ThemeModeControl.d.ts +3 -1
- package/dist/components/general-purpose/ThemeModeControl.js +66 -23
- package/dist/components/general-purpose/WallpaperPicker.d.ts +33 -0
- package/dist/components/general-purpose/WallpaperPicker.js +180 -0
- package/dist/components/general-purpose/WebPreview.d.ts +5 -7
- package/dist/components/general-purpose/WebPreview.js +770 -203
- package/dist/components/nanites/AgentConnection.js +323 -84
- package/dist/components/nanites/AgentToolDetail.js +233 -53
- package/dist/components/nanites/GithubMotionMark.js +37 -9
- package/dist/components/nanites/NaniteScene.js +535 -323
- package/dist/connected-app-drafts-Bocdg3Z-.js +637 -0
- package/dist/container-width-C43ccJ84.js +17 -0
- package/dist/context-Ddsp8HgD.js +43 -0
- package/dist/{copy-button-B09hHWd1.d.ts → copy-button-C2HRdomn.d.ts} +1 -1
- package/dist/copy-button-DWBVJR6D.js +118 -0
- package/dist/{format-CWaZEp5o.js → format-DL7f2rqp.js} +5 -1
- package/dist/{icons-CReP3qYl.d.ts → icons-B3n7zvU7.d.ts} +10 -2
- package/dist/icons-nLTnB9kd.js +470 -0
- package/dist/{merge-refs-DAh6reu8.js → merge-refs-DTX97mLp.js} +17 -1
- package/dist/motion-CGM3i6lX.js +319 -0
- package/dist/motion-preferences-6qsDIDvH.js +13 -0
- package/dist/{navigation-link-kqMa81v5.js → navigation-link-DMmtdqsM.js} +32 -8
- package/dist/progress-ring-BO649JA9.js +79 -0
- package/dist/provider-logos-Ceu7iYFx.js +362 -0
- package/dist/scheduled-table-source-gGpVJ1TN.js +92 -0
- package/dist/styles/accessibility.css +26 -0
- package/dist/styles/accordion.css +0 -2
- package/dist/styles/activity.css +20 -12
- package/dist/styles/agent-attention.css +31 -10
- package/dist/styles/agent-chat.css +7 -6
- package/dist/styles/agent-computer-motion-reduction.css +118 -0
- package/dist/styles/agent-computer-motion.css +127 -0
- package/dist/styles/agent-computer-phone.css +942 -0
- package/dist/styles/agent-computer.css +1764 -0
- package/dist/styles/agent-connection.css +5 -5
- package/dist/styles/agent-screen-switcher.css +313 -0
- package/dist/styles/app-icon.css +34 -30
- package/dist/styles/app-top-bar.css +33 -18
- package/dist/styles/approval.css +3 -3
- package/dist/styles/artifact.css +1 -1
- package/dist/styles/attachment-preview.css +2 -4
- package/dist/styles/avatar.css +12 -14
- package/dist/styles/base-ui-motion.css +84 -18
- package/dist/styles/base-ui-motion.test.tsx +305 -0
- package/dist/styles/base.css +16 -12
- package/dist/styles/brand.test.ts +7 -20
- package/dist/styles/browser-control-overlay.css +1 -1
- package/dist/styles/browser-live-screen.css +2 -2
- package/dist/styles/browser-live-view.css +1 -1
- package/dist/styles/browser-replay.css +0 -8
- package/dist/styles/browser-run-panel.css +275 -37
- package/dist/styles/button.css +52 -9
- package/dist/styles/card.css +6 -5
- package/dist/styles/chain-of-thought.css +0 -10
- package/dist/styles/checkpoint.css +2 -2
- package/dist/styles/codex-model-selector.css +2 -2
- package/dist/styles/color-contrast.test.ts +18 -1
- package/dist/styles/command-palette.css +110 -0
- package/dist/styles/composer-link.css +11 -7
- package/dist/styles/composition-motion.css +3 -14
- package/dist/styles/context.css +2 -2
- package/dist/styles/conversation-tab-picker.css +7 -0
- package/dist/styles/conversation.css +8 -2
- package/dist/styles/dialog.css +2 -2
- package/dist/styles/employee-app.css +8 -2
- package/dist/styles/employee-chrome.css +4 -4
- package/dist/styles/execution-board.css +206 -114
- package/dist/styles/execution-result.css +2 -2
- package/dist/styles/field.css +187 -4
- package/dist/styles/file-tree.css +218 -40
- package/dist/styles/first-run-setup.css +914 -187
- package/dist/styles/github-motion-mark.css +0 -8
- package/dist/styles/index.css +145 -133
- package/dist/styles/inline-citation.css +5 -4
- package/dist/styles/list-detail.css +57 -0
- package/dist/styles/manager-office.css +6 -8
- package/dist/styles/manager-work.css +4 -2
- package/dist/styles/mcp-plugin-catalog.css +2 -2
- package/dist/styles/mcp-server-picker.css +3 -6
- package/dist/styles/media-preview-card.css +2 -2
- package/dist/styles/menu.css +0 -9
- package/dist/styles/menubar.css +18 -6
- package/dist/styles/message-scroller.css +47 -9
- package/dist/styles/message.css +3 -3
- package/dist/styles/model-selector.css +1 -1
- package/dist/styles/motion-reduction.css +39 -6
- package/dist/styles/pricing-page.css +1 -1
- package/dist/styles/prompt-input.css +29 -29
- package/dist/styles/queue.css +1 -1
- package/dist/styles/recipes.css +212 -28
- package/dist/styles/responsive-sidebar-shell-motion.test.ts +81 -1
- package/dist/styles/responsive-sidebar-shell.css +40 -43
- package/dist/styles/screen-stack.css +123 -0
- package/dist/styles/search-field.css +80 -3
- package/dist/styles/stepper.css +0 -10
- package/dist/styles/streamdown.css +2 -2
- package/dist/styles/subagent-run.css +9 -5
- package/dist/styles/swipe-actions.css +158 -0
- package/dist/styles/tabs.css +80 -23
- package/dist/styles/task.css +7 -1
- package/dist/styles/terminal.css +66 -78
- package/dist/styles/test-results.css +1 -19
- package/dist/styles/textarea.css +2 -1
- package/dist/styles/theme-mode-control.css +154 -26
- package/dist/styles/think-chat-tool-panels.css +1 -1
- package/dist/styles/think-execution-workbench.css +0 -9
- package/dist/styles/think-full-app.css +7 -1
- package/dist/styles/think-schedule.css +81 -54
- package/dist/styles/think-thread-picker.css +28 -37
- package/dist/styles/toast.css +11 -0
- package/dist/styles/toggle-group.css +0 -10
- package/dist/styles/toggle.css +13 -0
- package/dist/styles/tooltip.css +12 -0
- package/dist/styles/transition-surface.css +1 -0
- package/dist/styles/wallpaper-picker.css +224 -0
- package/dist/styles/web-preview.css +47 -18
- package/dist/styles/workspace-automation.css +116 -17
- package/dist/styles/workspace-concepts.css +1 -1
- package/dist/styles/workspace-desktop.css +124 -0
- package/dist/styles/workspace-entity-card.css +3 -1
- package/dist/styles/workspace-explorer.css +499 -5
- package/dist/utils/brand-marks.d.ts +13 -0
- package/dist/utils/brand-marks.js +14 -0
- package/dist/utils/desktop-artwork.d.ts +17 -0
- package/dist/utils/desktop-artwork.js +18 -0
- package/dist/utils/favicon.d.ts +6 -2
- package/dist/utils/favicon.js +16 -4
- package/dist/utils/structured-code.d.ts +1 -1
- package/dist/workspace-assets-DdtnBDU3.js +213 -0
- package/dist/{workspace-concept-panel-C_oYhPSx.d.ts → workspace-concept-panel-BDTBISNO.d.ts} +2 -2
- package/dist/workspace-concept-panel-VkjvFCY_.js +140 -0
- package/dist/workspace-delete-BOY6CMBf.js +183 -0
- package/dist/workspace-drag-B6hMXUNt.js +304 -0
- package/dist/workspace-entity-card-9YcsNiqU.js +178 -0
- package/dist/workspace-media-preview-B4iB5Tvi.js +1295 -0
- package/dist/{workspace-path-L_KmjRjq.js → workspace-path-TZggP-u4.js} +14 -1
- package/dist/{workspace-person-BVkYb3dv.js → workspace-person-ZwPqu5TX.js} +67 -21
- package/dist/workspace-quick-look-9V-UFpjj.js +1562 -0
- package/package.json +9 -3
- package/dist/Avatar-t1YRzdwB.d.ts +0 -101
- package/dist/CodeBlock-DYQdZUH6.js +0 -318
- package/dist/ExecutionResult-2fBkpIGN.js +0 -279
- package/dist/FileTree-CDLOD643.js +0 -323
- package/dist/ManagerOffice-CvVSHnOM.js +0 -1129
- package/dist/SetupChecklist-B-iEta9v.js +0 -78
- package/dist/ThinkSchedule-DPoOYWTQ.d.ts +0 -34
- package/dist/WorkspaceFileView-DwIkehSM.js +0 -783
- package/dist/WorkspaceLink-BeFAXpbI.js +0 -225
- package/dist/app-bar-outlet-CNfNzY4Y.js +0 -6
- package/dist/attachment-preview-1CXJvrmb.js +0 -25
- package/dist/chatgpt-sign-in-button-D8AT6x4c.js +0 -32
- package/dist/connected-app-drafts-DtA2fBK5.js +0 -283
- package/dist/copy-button-DbR932tF.js +0 -45
- package/dist/icons-GoybMAB2.js +0 -141
- package/dist/progress-ring-L2bbF0ji.js +0 -40
- package/dist/provider-logos-DWYY8wNz.js +0 -99
- package/dist/scheduled-table-source-NZR1vFc_.js +0 -38
- package/dist/workspace-assets-F3r6XltC.js +0 -107
- package/dist/workspace-concept-panel-D8oEvR0n.js +0 -66
- package/dist/workspace-delete-CQvv1eDE.js +0 -81
- package/dist/workspace-entity-card-B1aV-jBj.js +0 -61
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { THEME_STORAGE_KEY, applyThemePreference, readThemePreference, resolveThemePreference, writeThemePreference } from "../../utils/theme.js";
|
|
2
|
+
import { c } from "react/compiler-runtime";
|
|
2
3
|
import * as React from "react";
|
|
3
4
|
import { jsx } from "react/jsx-runtime";
|
|
4
5
|
//#region src/components/foundations/ThemeProvider.tsx
|
|
@@ -12,64 +13,149 @@ const useClientLayoutEffect = typeof document === "undefined" ? React.useEffect
|
|
|
12
13
|
* `getThemeInitializationScript()` in the document head to avoid a flash when
|
|
13
14
|
* a saved override differs from the operating-system preference.
|
|
14
15
|
*/
|
|
15
|
-
function ThemeProvider(
|
|
16
|
+
function ThemeProvider(t0) {
|
|
17
|
+
const $ = c(29);
|
|
18
|
+
const { children, value, defaultValue: t1, onValueChange, storageKey: t2 } = t0;
|
|
19
|
+
const defaultValue = t1 === void 0 ? "system" : t1;
|
|
20
|
+
const storageKey = t2 === void 0 ? THEME_STORAGE_KEY : t2;
|
|
16
21
|
const controlled = value !== void 0;
|
|
17
22
|
const [uncontrolledPreference, setUncontrolledPreference] = React.useState(defaultValue);
|
|
18
23
|
const preference = value ?? uncontrolledPreference;
|
|
19
|
-
|
|
24
|
+
let t3;
|
|
25
|
+
if ($[0] !== preference) {
|
|
26
|
+
t3 = () => typeof window === "undefined" ? "light" : resolveThemePreference(preference);
|
|
27
|
+
$[0] = preference;
|
|
28
|
+
$[1] = t3;
|
|
29
|
+
} else t3 = $[1];
|
|
30
|
+
const [resolvedTheme, setResolvedTheme] = React.useState(t3);
|
|
20
31
|
const initialized = React.useRef(false);
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
32
|
+
const restoringPreference = React.useRef(null);
|
|
33
|
+
let t4;
|
|
34
|
+
if ($[2] !== controlled || $[3] !== defaultValue || $[4] !== preference || $[5] !== storageKey) {
|
|
35
|
+
t4 = () => {
|
|
36
|
+
let initialPreference = preference;
|
|
37
|
+
if (!controlled && storageKey !== null) {
|
|
38
|
+
const storedPreference = readThemePreference(storageKey);
|
|
39
|
+
if (storedPreference !== "system" || defaultValue === "system") {
|
|
40
|
+
initialPreference = storedPreference;
|
|
41
|
+
setUncontrolledPreference(storedPreference);
|
|
42
|
+
}
|
|
28
43
|
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}, []);
|
|
33
|
-
React.useEffect(() => {
|
|
34
|
-
if (!initialized.current) return;
|
|
35
|
-
setResolvedTheme(applyThemePreference(preference));
|
|
36
|
-
if (storageKey !== null) writeThemePreference(preference, storageKey);
|
|
37
|
-
}, [preference, storageKey]);
|
|
38
|
-
React.useEffect(() => {
|
|
39
|
-
if (preference !== "system") return;
|
|
40
|
-
const mediaQuery = window.matchMedia("(prefers-color-scheme: dark)");
|
|
41
|
-
const handleChange = () => setResolvedTheme(mediaQuery.matches ? "dark" : "light");
|
|
42
|
-
mediaQuery.addEventListener("change", handleChange);
|
|
43
|
-
return () => mediaQuery.removeEventListener("change", handleChange);
|
|
44
|
-
}, [preference]);
|
|
45
|
-
React.useEffect(() => {
|
|
46
|
-
if (controlled || storageKey === null) return;
|
|
47
|
-
const handleStorage = (event) => {
|
|
48
|
-
if (event.key !== storageKey) return;
|
|
49
|
-
const nextPreference = readThemePreference(storageKey);
|
|
50
|
-
setUncontrolledPreference(nextPreference);
|
|
44
|
+
restoringPreference.current = initialPreference;
|
|
45
|
+
setResolvedTheme(applyThemePreference(initialPreference));
|
|
46
|
+
initialized.current = true;
|
|
51
47
|
};
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
48
|
+
$[2] = controlled;
|
|
49
|
+
$[3] = defaultValue;
|
|
50
|
+
$[4] = preference;
|
|
51
|
+
$[5] = storageKey;
|
|
52
|
+
$[6] = t4;
|
|
53
|
+
} else t4 = $[6];
|
|
54
|
+
let t5;
|
|
55
|
+
if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
|
|
56
|
+
t5 = [];
|
|
57
|
+
$[7] = t5;
|
|
58
|
+
} else t5 = $[7];
|
|
59
|
+
useClientLayoutEffect(t4, t5);
|
|
60
|
+
let t6;
|
|
61
|
+
let t7;
|
|
62
|
+
if ($[8] !== preference || $[9] !== storageKey) {
|
|
63
|
+
t6 = () => {
|
|
64
|
+
if (!initialized.current) return;
|
|
65
|
+
if (restoringPreference.current !== null && preference !== restoringPreference.current) return;
|
|
66
|
+
restoringPreference.current = null;
|
|
67
|
+
setResolvedTheme(applyThemePreference(preference));
|
|
68
|
+
if (storageKey !== null) writeThemePreference(preference, storageKey);
|
|
69
|
+
};
|
|
70
|
+
t7 = [preference, storageKey];
|
|
71
|
+
$[8] = preference;
|
|
72
|
+
$[9] = storageKey;
|
|
73
|
+
$[10] = t6;
|
|
74
|
+
$[11] = t7;
|
|
75
|
+
} else {
|
|
76
|
+
t6 = $[10];
|
|
77
|
+
t7 = $[11];
|
|
78
|
+
}
|
|
79
|
+
React.useEffect(t6, t7);
|
|
80
|
+
let t8;
|
|
81
|
+
let t9;
|
|
82
|
+
if ($[12] !== preference) {
|
|
83
|
+
t8 = () => {
|
|
84
|
+
if (preference !== "system") return;
|
|
85
|
+
const mediaQuery = window.matchMedia("(prefers-color-scheme: dark)");
|
|
86
|
+
const handleChange = () => setResolvedTheme(mediaQuery.matches ? "dark" : "light");
|
|
87
|
+
mediaQuery.addEventListener("change", handleChange);
|
|
88
|
+
return () => mediaQuery.removeEventListener("change", handleChange);
|
|
89
|
+
};
|
|
90
|
+
t9 = [preference];
|
|
91
|
+
$[12] = preference;
|
|
92
|
+
$[13] = t8;
|
|
93
|
+
$[14] = t9;
|
|
94
|
+
} else {
|
|
95
|
+
t8 = $[13];
|
|
96
|
+
t9 = $[14];
|
|
97
|
+
}
|
|
98
|
+
React.useEffect(t8, t9);
|
|
99
|
+
let t10;
|
|
100
|
+
let t11;
|
|
101
|
+
if ($[15] !== controlled || $[16] !== storageKey) {
|
|
102
|
+
t10 = () => {
|
|
103
|
+
if (controlled || storageKey === null) return;
|
|
104
|
+
const handleStorage = (event) => {
|
|
105
|
+
if (event.key !== storageKey) return;
|
|
106
|
+
const nextPreference = readThemePreference(storageKey);
|
|
107
|
+
setUncontrolledPreference(nextPreference);
|
|
108
|
+
};
|
|
109
|
+
window.addEventListener("storage", handleStorage);
|
|
110
|
+
return () => window.removeEventListener("storage", handleStorage);
|
|
111
|
+
};
|
|
112
|
+
t11 = [controlled, storageKey];
|
|
113
|
+
$[15] = controlled;
|
|
114
|
+
$[16] = storageKey;
|
|
115
|
+
$[17] = t10;
|
|
116
|
+
$[18] = t11;
|
|
117
|
+
} else {
|
|
118
|
+
t10 = $[17];
|
|
119
|
+
t11 = $[18];
|
|
120
|
+
}
|
|
121
|
+
React.useEffect(t10, t11);
|
|
122
|
+
let t12;
|
|
123
|
+
if ($[19] !== controlled || $[20] !== onValueChange) {
|
|
124
|
+
t12 = (nextPreference_0) => {
|
|
125
|
+
restoringPreference.current = null;
|
|
126
|
+
applyThemePreference(nextPreference_0);
|
|
127
|
+
if (!controlled) setUncontrolledPreference(nextPreference_0);
|
|
128
|
+
onValueChange?.(nextPreference_0);
|
|
129
|
+
};
|
|
130
|
+
$[19] = controlled;
|
|
131
|
+
$[20] = onValueChange;
|
|
132
|
+
$[21] = t12;
|
|
133
|
+
} else t12 = $[21];
|
|
134
|
+
const setPreference = t12;
|
|
135
|
+
let t13;
|
|
136
|
+
if ($[22] !== preference || $[23] !== resolvedTheme || $[24] !== setPreference) {
|
|
137
|
+
t13 = {
|
|
138
|
+
preference,
|
|
139
|
+
resolvedTheme,
|
|
140
|
+
setPreference
|
|
141
|
+
};
|
|
142
|
+
$[22] = preference;
|
|
143
|
+
$[23] = resolvedTheme;
|
|
144
|
+
$[24] = setPreference;
|
|
145
|
+
$[25] = t13;
|
|
146
|
+
} else t13 = $[25];
|
|
147
|
+
const contextValue = t13;
|
|
148
|
+
let t14;
|
|
149
|
+
if ($[26] !== children || $[27] !== contextValue) {
|
|
150
|
+
t14 = /* @__PURE__ */ jsx(ThemeContext.Provider, {
|
|
151
|
+
value: contextValue,
|
|
152
|
+
children
|
|
153
|
+
});
|
|
154
|
+
$[26] = children;
|
|
155
|
+
$[27] = contextValue;
|
|
156
|
+
$[28] = t14;
|
|
157
|
+
} else t14 = $[28];
|
|
158
|
+
return t14;
|
|
73
159
|
}
|
|
74
160
|
function useTheme() {
|
|
75
161
|
const context = React.useContext(ThemeContext);
|
|
@@ -9,10 +9,17 @@ export interface ToastProviderProps extends Omit<BaseToastProviderProps, "childr
|
|
|
9
9
|
/** Application subtree whose toast state is managed by this provider. */
|
|
10
10
|
children?: BaseToastProviderProps["children"];
|
|
11
11
|
}
|
|
12
|
+
/** Props for moving the viewport above application stacking contexts. */
|
|
13
|
+
export interface ToastPortalProps extends React.ComponentPropsWithoutRef<typeof Toast$1.Portal> {}
|
|
14
|
+
/** Keeps notifications above application windows while retaining the provider context. */
|
|
15
|
+
declare function ToastPortal(props: ToastPortalProps): React.JSX.Element;
|
|
12
16
|
/**
|
|
13
17
|
* Props for the Toast.Viewport component.
|
|
14
18
|
*/
|
|
15
|
-
export interface ToastViewportProps extends React.ComponentPropsWithoutRef<typeof Toast$1.Viewport> {
|
|
19
|
+
export interface ToastViewportProps extends React.ComponentPropsWithoutRef<typeof Toast$1.Viewport> {
|
|
20
|
+
/** Stack from the top for system notifications, or the bottom for task feedback. */
|
|
21
|
+
position?: "top-end" | "bottom-end";
|
|
22
|
+
}
|
|
16
23
|
/**
|
|
17
24
|
* Props for the Toast.Root component.
|
|
18
25
|
*/
|
|
@@ -48,7 +55,7 @@ export interface ToastCloseProps extends Omit<BaseToastCloseProps, "aria-label"
|
|
|
48
55
|
/**
|
|
49
56
|
* Container for displaying toasts.
|
|
50
57
|
*/
|
|
51
|
-
declare function ToastViewport({ className, ref, ...props }: ToastViewportProps & {
|
|
58
|
+
declare function ToastViewport({ position, className, ref, ...props }: ToastViewportProps & {
|
|
52
59
|
ref?: React.Ref<HTMLDivElement>;
|
|
53
60
|
}): React.JSX.Element;
|
|
54
61
|
/**
|
|
@@ -141,6 +148,7 @@ declare function ToastClose({ className, label, children, ref, ...props }: Toast
|
|
|
141
148
|
*/
|
|
142
149
|
export declare const Toast: {
|
|
143
150
|
Provider: (props: ToastProviderProps) => React.JSX.Element;
|
|
151
|
+
Portal: typeof ToastPortal;
|
|
144
152
|
Viewport: typeof ToastViewport;
|
|
145
153
|
Root: typeof ToastRoot;
|
|
146
154
|
Content: typeof ToastContent;
|
|
@@ -1,10 +1,21 @@
|
|
|
1
1
|
import { n as mergeBaseClassName } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import {
|
|
2
|
+
import { gt as XIcon } from "../../icons-nLTnB9kd.js";
|
|
3
3
|
import { buttonVariants } from "./Button.js";
|
|
4
|
-
import "react";
|
|
4
|
+
import { c } from "react/compiler-runtime";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
import { Toast as Toast$1 } from "@base-ui/react/toast";
|
|
7
7
|
//#region src/components/foundations/Toast.tsx
|
|
8
|
+
/** Keeps notifications above application windows while retaining the provider context. */
|
|
9
|
+
function ToastPortal(props) {
|
|
10
|
+
const $ = c(2);
|
|
11
|
+
let t0;
|
|
12
|
+
if ($[0] !== props) {
|
|
13
|
+
t0 = /* @__PURE__ */ jsx(Toast$1.Portal, { ...props });
|
|
14
|
+
$[0] = props;
|
|
15
|
+
$[1] = t0;
|
|
16
|
+
} else t0 = $[1];
|
|
17
|
+
return t0;
|
|
18
|
+
}
|
|
8
19
|
/**
|
|
9
20
|
* Wraps your application to manage toast state.
|
|
10
21
|
*
|
|
@@ -19,106 +30,342 @@ import { Toast as Toast$1 } from "@base-ui/react/toast";
|
|
|
19
30
|
* @see {@link https://base-ui.com/react/components/toast | Base UI Toast}
|
|
20
31
|
*/
|
|
21
32
|
const ToastProvider = (props) => {
|
|
22
|
-
|
|
33
|
+
const $ = c(2);
|
|
34
|
+
let t0;
|
|
35
|
+
if ($[0] !== props) {
|
|
36
|
+
t0 = /* @__PURE__ */ jsx(Toast$1.Provider, { ...props });
|
|
37
|
+
$[0] = props;
|
|
38
|
+
$[1] = t0;
|
|
39
|
+
} else t0 = $[1];
|
|
40
|
+
return t0;
|
|
23
41
|
};
|
|
24
42
|
/**
|
|
25
43
|
* Container for displaying toasts.
|
|
26
44
|
*/
|
|
27
|
-
function ToastViewport(
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
45
|
+
function ToastViewport(t0) {
|
|
46
|
+
const $ = c(12);
|
|
47
|
+
let className;
|
|
48
|
+
let props;
|
|
49
|
+
let ref;
|
|
50
|
+
let t1;
|
|
51
|
+
if ($[0] !== t0) {
|
|
52
|
+
({position: t1, className, ref, ...props} = t0);
|
|
53
|
+
$[0] = t0;
|
|
54
|
+
$[1] = className;
|
|
55
|
+
$[2] = props;
|
|
56
|
+
$[3] = ref;
|
|
57
|
+
$[4] = t1;
|
|
58
|
+
} else {
|
|
59
|
+
className = $[1];
|
|
60
|
+
props = $[2];
|
|
61
|
+
ref = $[3];
|
|
62
|
+
t1 = $[4];
|
|
63
|
+
}
|
|
64
|
+
const position = t1 === void 0 ? "bottom-end" : t1;
|
|
65
|
+
let t2;
|
|
66
|
+
if ($[5] !== className) {
|
|
67
|
+
t2 = mergeBaseClassName("toast__viewport", className);
|
|
68
|
+
$[5] = className;
|
|
69
|
+
$[6] = t2;
|
|
70
|
+
} else t2 = $[6];
|
|
71
|
+
const classes = t2;
|
|
72
|
+
let t3;
|
|
73
|
+
if ($[7] !== classes || $[8] !== position || $[9] !== props || $[10] !== ref) {
|
|
74
|
+
t3 = /* @__PURE__ */ jsx(Toast$1.Viewport, {
|
|
75
|
+
ref,
|
|
76
|
+
"data-slot": "toast-viewport",
|
|
77
|
+
"data-position": position,
|
|
78
|
+
className: classes,
|
|
79
|
+
...props
|
|
80
|
+
});
|
|
81
|
+
$[7] = classes;
|
|
82
|
+
$[8] = position;
|
|
83
|
+
$[9] = props;
|
|
84
|
+
$[10] = ref;
|
|
85
|
+
$[11] = t3;
|
|
86
|
+
} else t3 = $[11];
|
|
87
|
+
return t3;
|
|
35
88
|
}
|
|
36
89
|
/**
|
|
37
90
|
* Individual toast wrapper.
|
|
38
91
|
*/
|
|
39
|
-
function ToastRoot(
|
|
40
|
-
const
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
...props
|
|
46
|
-
|
|
92
|
+
function ToastRoot(t0) {
|
|
93
|
+
const $ = c(10);
|
|
94
|
+
let className;
|
|
95
|
+
let props;
|
|
96
|
+
let ref;
|
|
97
|
+
if ($[0] !== t0) {
|
|
98
|
+
({className, ref, ...props} = t0);
|
|
99
|
+
$[0] = t0;
|
|
100
|
+
$[1] = className;
|
|
101
|
+
$[2] = props;
|
|
102
|
+
$[3] = ref;
|
|
103
|
+
} else {
|
|
104
|
+
className = $[1];
|
|
105
|
+
props = $[2];
|
|
106
|
+
ref = $[3];
|
|
107
|
+
}
|
|
108
|
+
let t1;
|
|
109
|
+
if ($[4] !== className) {
|
|
110
|
+
t1 = mergeBaseClassName("toast", className);
|
|
111
|
+
$[4] = className;
|
|
112
|
+
$[5] = t1;
|
|
113
|
+
} else t1 = $[5];
|
|
114
|
+
const classes = t1;
|
|
115
|
+
let t2;
|
|
116
|
+
if ($[6] !== classes || $[7] !== props || $[8] !== ref) {
|
|
117
|
+
t2 = /* @__PURE__ */ jsx(Toast$1.Root, {
|
|
118
|
+
ref,
|
|
119
|
+
"data-slot": "toast",
|
|
120
|
+
className: classes,
|
|
121
|
+
...props
|
|
122
|
+
});
|
|
123
|
+
$[6] = classes;
|
|
124
|
+
$[7] = props;
|
|
125
|
+
$[8] = ref;
|
|
126
|
+
$[9] = t2;
|
|
127
|
+
} else t2 = $[9];
|
|
128
|
+
return t2;
|
|
47
129
|
}
|
|
48
130
|
/**
|
|
49
131
|
* Container for the contents of a toast.
|
|
50
132
|
*/
|
|
51
|
-
function ToastContent(
|
|
52
|
-
const
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
...props
|
|
58
|
-
|
|
133
|
+
function ToastContent(t0) {
|
|
134
|
+
const $ = c(10);
|
|
135
|
+
let className;
|
|
136
|
+
let props;
|
|
137
|
+
let ref;
|
|
138
|
+
if ($[0] !== t0) {
|
|
139
|
+
({className, ref, ...props} = t0);
|
|
140
|
+
$[0] = t0;
|
|
141
|
+
$[1] = className;
|
|
142
|
+
$[2] = props;
|
|
143
|
+
$[3] = ref;
|
|
144
|
+
} else {
|
|
145
|
+
className = $[1];
|
|
146
|
+
props = $[2];
|
|
147
|
+
ref = $[3];
|
|
148
|
+
}
|
|
149
|
+
let t1;
|
|
150
|
+
if ($[4] !== className) {
|
|
151
|
+
t1 = mergeBaseClassName("toast__content", className);
|
|
152
|
+
$[4] = className;
|
|
153
|
+
$[5] = t1;
|
|
154
|
+
} else t1 = $[5];
|
|
155
|
+
const classes = t1;
|
|
156
|
+
let t2;
|
|
157
|
+
if ($[6] !== classes || $[7] !== props || $[8] !== ref) {
|
|
158
|
+
t2 = /* @__PURE__ */ jsx(Toast$1.Content, {
|
|
159
|
+
ref,
|
|
160
|
+
"data-slot": "toast-content",
|
|
161
|
+
className: classes,
|
|
162
|
+
...props
|
|
163
|
+
});
|
|
164
|
+
$[6] = classes;
|
|
165
|
+
$[7] = props;
|
|
166
|
+
$[8] = ref;
|
|
167
|
+
$[9] = t2;
|
|
168
|
+
} else t2 = $[9];
|
|
169
|
+
return t2;
|
|
59
170
|
}
|
|
60
171
|
/**
|
|
61
172
|
* Title that labels the toast. Renders an `<h2>` element.
|
|
62
173
|
*/
|
|
63
|
-
function ToastTitle(
|
|
64
|
-
const
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
...props
|
|
70
|
-
|
|
174
|
+
function ToastTitle(t0) {
|
|
175
|
+
const $ = c(10);
|
|
176
|
+
let className;
|
|
177
|
+
let props;
|
|
178
|
+
let ref;
|
|
179
|
+
if ($[0] !== t0) {
|
|
180
|
+
({className, ref, ...props} = t0);
|
|
181
|
+
$[0] = t0;
|
|
182
|
+
$[1] = className;
|
|
183
|
+
$[2] = props;
|
|
184
|
+
$[3] = ref;
|
|
185
|
+
} else {
|
|
186
|
+
className = $[1];
|
|
187
|
+
props = $[2];
|
|
188
|
+
ref = $[3];
|
|
189
|
+
}
|
|
190
|
+
let t1;
|
|
191
|
+
if ($[4] !== className) {
|
|
192
|
+
t1 = mergeBaseClassName("toast__title", className);
|
|
193
|
+
$[4] = className;
|
|
194
|
+
$[5] = t1;
|
|
195
|
+
} else t1 = $[5];
|
|
196
|
+
const classes = t1;
|
|
197
|
+
let t2;
|
|
198
|
+
if ($[6] !== classes || $[7] !== props || $[8] !== ref) {
|
|
199
|
+
t2 = /* @__PURE__ */ jsx(Toast$1.Title, {
|
|
200
|
+
ref,
|
|
201
|
+
"data-slot": "toast-title",
|
|
202
|
+
className: classes,
|
|
203
|
+
...props
|
|
204
|
+
});
|
|
205
|
+
$[6] = classes;
|
|
206
|
+
$[7] = props;
|
|
207
|
+
$[8] = ref;
|
|
208
|
+
$[9] = t2;
|
|
209
|
+
} else t2 = $[9];
|
|
210
|
+
return t2;
|
|
71
211
|
}
|
|
72
212
|
/**
|
|
73
213
|
* Description text for the toast. Renders a `<p>` element.
|
|
74
214
|
*/
|
|
75
|
-
function ToastDescription(
|
|
76
|
-
const
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
...props
|
|
82
|
-
|
|
215
|
+
function ToastDescription(t0) {
|
|
216
|
+
const $ = c(10);
|
|
217
|
+
let className;
|
|
218
|
+
let props;
|
|
219
|
+
let ref;
|
|
220
|
+
if ($[0] !== t0) {
|
|
221
|
+
({className, ref, ...props} = t0);
|
|
222
|
+
$[0] = t0;
|
|
223
|
+
$[1] = className;
|
|
224
|
+
$[2] = props;
|
|
225
|
+
$[3] = ref;
|
|
226
|
+
} else {
|
|
227
|
+
className = $[1];
|
|
228
|
+
props = $[2];
|
|
229
|
+
ref = $[3];
|
|
230
|
+
}
|
|
231
|
+
let t1;
|
|
232
|
+
if ($[4] !== className) {
|
|
233
|
+
t1 = mergeBaseClassName("toast__description", className);
|
|
234
|
+
$[4] = className;
|
|
235
|
+
$[5] = t1;
|
|
236
|
+
} else t1 = $[5];
|
|
237
|
+
const classes = t1;
|
|
238
|
+
let t2;
|
|
239
|
+
if ($[6] !== classes || $[7] !== props || $[8] !== ref) {
|
|
240
|
+
t2 = /* @__PURE__ */ jsx(Toast$1.Description, {
|
|
241
|
+
ref,
|
|
242
|
+
"data-slot": "toast-description",
|
|
243
|
+
className: classes,
|
|
244
|
+
...props
|
|
245
|
+
});
|
|
246
|
+
$[6] = classes;
|
|
247
|
+
$[7] = props;
|
|
248
|
+
$[8] = ref;
|
|
249
|
+
$[9] = t2;
|
|
250
|
+
} else t2 = $[9];
|
|
251
|
+
return t2;
|
|
83
252
|
}
|
|
84
253
|
/**
|
|
85
254
|
* Action button within the toast.
|
|
86
255
|
*/
|
|
87
|
-
function ToastAction(
|
|
88
|
-
const
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
}
|
|
256
|
+
function ToastAction(t0) {
|
|
257
|
+
const $ = c(13);
|
|
258
|
+
let className;
|
|
259
|
+
let props;
|
|
260
|
+
let ref;
|
|
261
|
+
let render;
|
|
262
|
+
if ($[0] !== t0) {
|
|
263
|
+
({render, className, ref, ...props} = t0);
|
|
264
|
+
$[0] = t0;
|
|
265
|
+
$[1] = className;
|
|
266
|
+
$[2] = props;
|
|
267
|
+
$[3] = ref;
|
|
268
|
+
$[4] = render;
|
|
269
|
+
} else {
|
|
270
|
+
className = $[1];
|
|
271
|
+
props = $[2];
|
|
272
|
+
ref = $[3];
|
|
273
|
+
render = $[4];
|
|
274
|
+
}
|
|
275
|
+
let t1;
|
|
276
|
+
if ($[5] !== className || $[6] !== render) {
|
|
277
|
+
t1 = mergeBaseClassName(render == null ? buttonVariants({
|
|
278
|
+
variant: "normal",
|
|
279
|
+
color: "primary",
|
|
280
|
+
size: "xs",
|
|
281
|
+
className: "toast__action"
|
|
282
|
+
}) : "toast__action", className);
|
|
283
|
+
$[5] = className;
|
|
284
|
+
$[6] = render;
|
|
285
|
+
$[7] = t1;
|
|
286
|
+
} else t1 = $[7];
|
|
287
|
+
const classes = t1;
|
|
288
|
+
let t2;
|
|
289
|
+
if ($[8] !== classes || $[9] !== props || $[10] !== ref || $[11] !== render) {
|
|
290
|
+
t2 = /* @__PURE__ */ jsx(Toast$1.Action, {
|
|
291
|
+
ref,
|
|
292
|
+
"data-slot": "toast-action",
|
|
293
|
+
render,
|
|
294
|
+
className: classes,
|
|
295
|
+
...props
|
|
296
|
+
});
|
|
297
|
+
$[8] = classes;
|
|
298
|
+
$[9] = props;
|
|
299
|
+
$[10] = ref;
|
|
300
|
+
$[11] = render;
|
|
301
|
+
$[12] = t2;
|
|
302
|
+
} else t2 = $[12];
|
|
303
|
+
return t2;
|
|
101
304
|
}
|
|
102
305
|
/**
|
|
103
306
|
* Close button that dismisses the toast.
|
|
104
307
|
*/
|
|
105
|
-
function ToastClose(
|
|
106
|
-
const
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
ref,
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
308
|
+
function ToastClose(t0) {
|
|
309
|
+
const $ = c(16);
|
|
310
|
+
let children;
|
|
311
|
+
let className;
|
|
312
|
+
let props;
|
|
313
|
+
let ref;
|
|
314
|
+
let t1;
|
|
315
|
+
if ($[0] !== t0) {
|
|
316
|
+
({className, label: t1, children, ref, ...props} = t0);
|
|
317
|
+
$[0] = t0;
|
|
318
|
+
$[1] = children;
|
|
319
|
+
$[2] = className;
|
|
320
|
+
$[3] = props;
|
|
321
|
+
$[4] = ref;
|
|
322
|
+
$[5] = t1;
|
|
323
|
+
} else {
|
|
324
|
+
children = $[1];
|
|
325
|
+
className = $[2];
|
|
326
|
+
props = $[3];
|
|
327
|
+
ref = $[4];
|
|
328
|
+
t1 = $[5];
|
|
329
|
+
}
|
|
330
|
+
const label = t1 === void 0 ? "Dismiss" : t1;
|
|
331
|
+
let t2;
|
|
332
|
+
if ($[6] !== className) {
|
|
333
|
+
t2 = mergeBaseClassName(buttonVariants({
|
|
334
|
+
variant: "ghost",
|
|
335
|
+
color: "neutral",
|
|
336
|
+
size: "xs",
|
|
337
|
+
className: "toast__close"
|
|
338
|
+
}), className);
|
|
339
|
+
$[6] = className;
|
|
340
|
+
$[7] = t2;
|
|
341
|
+
} else t2 = $[7];
|
|
342
|
+
const classes = t2;
|
|
343
|
+
let t3;
|
|
344
|
+
if ($[8] !== children) {
|
|
345
|
+
t3 = children ?? /* @__PURE__ */ jsx(XIcon, {});
|
|
346
|
+
$[8] = children;
|
|
347
|
+
$[9] = t3;
|
|
348
|
+
} else t3 = $[9];
|
|
349
|
+
let t4;
|
|
350
|
+
if ($[10] !== classes || $[11] !== label || $[12] !== props || $[13] !== ref || $[14] !== t3) {
|
|
351
|
+
t4 = /* @__PURE__ */ jsx(Toast$1.Close, {
|
|
352
|
+
ref,
|
|
353
|
+
"data-slot": "toast-close",
|
|
354
|
+
type: "button",
|
|
355
|
+
"data-icon-only": "",
|
|
356
|
+
className: classes,
|
|
357
|
+
"aria-label": label,
|
|
358
|
+
...props,
|
|
359
|
+
children: t3
|
|
360
|
+
});
|
|
361
|
+
$[10] = classes;
|
|
362
|
+
$[11] = label;
|
|
363
|
+
$[12] = props;
|
|
364
|
+
$[13] = ref;
|
|
365
|
+
$[14] = t3;
|
|
366
|
+
$[15] = t4;
|
|
367
|
+
} else t4 = $[15];
|
|
368
|
+
return t4;
|
|
122
369
|
}
|
|
123
370
|
/**
|
|
124
371
|
* A toast notification system for displaying temporary messages.
|
|
@@ -174,6 +421,7 @@ function ToastClose({ className, label = "Dismiss", children, ref, ...props }) {
|
|
|
174
421
|
*/
|
|
175
422
|
const Toast = {
|
|
176
423
|
Provider: ToastProvider,
|
|
424
|
+
Portal: ToastPortal,
|
|
177
425
|
Viewport: ToastViewport,
|
|
178
426
|
Root: ToastRoot,
|
|
179
427
|
Content: ToastContent,
|
|
@@ -181,7 +429,6 @@ const Toast = {
|
|
|
181
429
|
Description: ToastDescription,
|
|
182
430
|
Action: ToastAction,
|
|
183
431
|
Close: ToastClose,
|
|
184
|
-
/** Hook to access the toast manager for adding/removing toasts */
|
|
185
432
|
useToastManager: Toast$1.useToastManager
|
|
186
433
|
};
|
|
187
434
|
//#endregion
|