@mcp-b/react-components 0.62.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-D5x4EM9y.d.ts → EmployeeChrome-kegSASjC.d.ts} +15 -8
- 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-CMvICi-p.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/{codex-model-catalog-18yO7dln.d.ts → codex-model-catalog-CFEGgUAj.d.ts} +8 -8
- package/dist/command-search-1fjmCBBo.js +34 -0
- package/dist/components/agents-sdk/AIProviderDialog.d.ts +53 -0
- package/dist/components/agents-sdk/AIProviderDialog.js +902 -0
- 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 +1120 -393
- 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 +165 -22
- 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 +109 -47
- package/dist/components/agents-sdk/EmployeeChat.d.ts +1 -1
- package/dist/components/agents-sdk/EmployeeChat.js +504 -103
- package/dist/components/agents-sdk/EmployeeChrome.d.ts +2 -2
- package/dist/components/agents-sdk/EmployeeChrome.js +1383 -522
- package/dist/components/agents-sdk/EmployeeSchedules.d.ts +3 -3
- package/dist/components/agents-sdk/EmployeeSchedules.js +283 -66
- 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 +143 -36
- 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 +331 -116
- package/dist/components/agents-sdk/McpConnectorForm.js +321 -101
- package/dist/components/agents-sdk/McpPluginCatalog.js +698 -250
- 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 +543 -159
- package/dist/components/agents-sdk/ModelSelector.d.ts +1 -1
- package/dist/components/agents-sdk/ModelSelector.js +1154 -256
- package/dist/components/agents-sdk/PromptInputApproval.js +116 -28
- 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 +359 -131
- package/dist/components/agents-sdk/SubagentRunSelector.js +123 -26
- package/dist/components/agents-sdk/ThinkChat.d.ts +5 -3
- package/dist/components/agents-sdk/ThinkChat.js +321 -129
- package/dist/components/agents-sdk/ThinkChatActivity.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkChatActivity.js +307 -101
- 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 +1389 -407
- package/dist/components/agents-sdk/ThinkExecutionDetail.d.ts +5 -3
- package/dist/components/agents-sdk/ThinkExecutionDetail.js +220 -46
- 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 +506 -125
- package/dist/components/agents-sdk/ThinkFullApp.js +147 -44
- package/dist/components/agents-sdk/ThinkPendingApproval.js +381 -75
- package/dist/components/agents-sdk/ThinkRecoveryNotice.d.ts +3 -1
- package/dist/components/agents-sdk/ThinkRecoveryNotice.js +72 -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 +364 -133
- 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 +312 -91
- package/dist/components/agents-sdk/ThinkScheduleForm.d.ts +6 -2
- package/dist/components/agents-sdk/ThinkScheduleForm.js +1324 -481
- package/dist/components/agents-sdk/ThinkThreadPicker.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkThreadPicker.js +435 -215
- 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 +1496 -419
- package/dist/components/agents-sdk/WorkspaceAutomationTable.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceAutomationTable.js +1320 -529
- 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 +268 -86
- 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 +119 -59
- 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 +194 -69
- 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.d.ts +6 -1
- package/dist/components/ai-sdk/AgentChatTurnError.js +77 -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 +738 -179
- 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 +2738 -797
- 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 +793 -155
- 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 +2 -2
- package/dist/components/extension/CodexModelSelector.js +468 -147
- 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 +3833 -1011
- 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 +83 -18
- package/dist/components/foundations/CheckboxGroup.js +266 -58
- package/dist/components/foundations/Collapsible.d.ts +2 -1
- package/dist/components/foundations/Collapsible.js +130 -27
- 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 +4 -4
- package/dist/components/foundations/ToggleGroup.js +216 -60
- 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 +34 -7
- 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 +210 -85
- package/dist/components/general-purpose/PricingUsageCalculator.js +233 -83
- 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.d.ts +10 -2
- package/dist/components/general-purpose/SettingsFormDialog.js +238 -74
- 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 +67 -24
- 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 +237 -57
- 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/ai-provider-dialog.css +46 -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 +15 -6
- 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 -132
- 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/codex-model-catalog.d.ts +1 -1
- 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/model-provider-error.d.ts +17 -0
- package/dist/utils/model-provider-error.js +76 -0
- package/dist/utils/structured-code.d.ts +1 -1
- package/dist/workspace-assets-DdtnBDU3.js +213 -0
- package/dist/{workspace-concept-panel-KpMmznB_.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-CNvOYR0Q.js +0 -318
- package/dist/ExecutionResult-DmC21cll.js +0 -279
- package/dist/FileTree-H31EVRv_.js +0 -323
- package/dist/ManagerOffice-B3X3iZV9.js +0 -1129
- package/dist/SetupChecklist-Wo4akaSG.js +0 -78
- package/dist/ThinkSchedule-CSuDGrZ9.d.ts +0 -34
- package/dist/WorkspaceFileView-BWI_AJlV.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-DNchrZHs.js +0 -32
- package/dist/components/agents-sdk/ModelEndpointDialog.d.ts +0 -31
- package/dist/components/agents-sdk/ModelEndpointDialog.js +0 -141
- package/dist/connected-app-drafts-B9i69bkj.js +0 -283
- package/dist/copy-button-z20VEXRF.js +0 -45
- package/dist/icons-Yp99gmMC.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-Dq5toMQc.js +0 -107
- package/dist/workspace-concept-panel-CxZfmFkP.js +0 -66
- package/dist/workspace-delete-CoB0l6ZU.js +0 -81
- package/dist/workspace-entity-card-B1aV-jBj.js +0 -61
|
@@ -1,22 +1,25 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import {
|
|
2
|
+
import { m as ChevronDownIcon, mt as WarningIcon, nt as SidebarIcon, r as ArrowLeftIcon } from "../../icons-nLTnB9kd.js";
|
|
3
|
+
import { t as capitalize } from "../../format-DL7f2rqp.js";
|
|
3
4
|
import { Button } from "../foundations/Button.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { n as ShellAppBarOutletContext, t as ContentAppBarOutletContext } from "../../app-bar-outlet-CNfNzY4Y.js";
|
|
5
|
+
import { n as mergeRefs } from "../../merge-refs-DTX97mLp.js";
|
|
6
|
+
import { t as isAtMostRem } from "../../container-width-C43ccJ84.js";
|
|
7
7
|
import { AppTopBar } from "./AppTopBar.js";
|
|
8
|
+
import { n as ShellAppBarOutletContext, r as createAppBarOutlet, t as ContentAppBarOutletContext } from "../../app-bar-outlet-BEIGl9iF.js";
|
|
8
9
|
import { ResizableSidePanel } from "./ResizableSidePanel.js";
|
|
10
|
+
import { c } from "react/compiler-runtime";
|
|
9
11
|
import * as React from "react";
|
|
10
|
-
import {
|
|
11
|
-
import { createPortal } from "react-dom";
|
|
12
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
12
13
|
//#region src/components/general-purpose/ResponsiveSidebarShell.tsx
|
|
13
14
|
/** Matches --sigvelo-layout-sidebar (16rem). */
|
|
14
15
|
const sidebarDefaultWidth = 256;
|
|
15
16
|
const sidebarMinWidth = 224;
|
|
16
17
|
const sidebarMaxWidth = 384;
|
|
17
18
|
const sidebarKeyboardStep = 24;
|
|
18
|
-
/**
|
|
19
|
-
const
|
|
19
|
+
/** Default 16rem rail plus the narrowest useful 24rem main column. */
|
|
20
|
+
const drawerSidebarWidthRem = 40;
|
|
21
|
+
/** Matches --sigvelo-layout-break-compact for controls inside the main column. */
|
|
22
|
+
const compactContentWidthRem = 56;
|
|
20
23
|
const SidebarShellContext = React.createContext(null);
|
|
21
24
|
/** Reuse the shell's measured layout and drawer controls instead of observing it again. */
|
|
22
25
|
function useResponsiveSidebarShell() {
|
|
@@ -24,73 +27,126 @@ function useResponsiveSidebarShell() {
|
|
|
24
27
|
if (!controls) throw new Error("useResponsiveSidebarShell must be inside ResponsiveSidebarShell.");
|
|
25
28
|
return controls;
|
|
26
29
|
}
|
|
27
|
-
function useControllableSidebar(
|
|
30
|
+
function useControllableSidebar(t0) {
|
|
31
|
+
const $ = c(6);
|
|
32
|
+
const { sidebarOpen, defaultSidebarOpen, onSidebarOpenChange } = t0;
|
|
28
33
|
const [innerOpen, setInnerOpen] = React.useState(defaultSidebarOpen ?? true);
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
34
|
+
const value = sidebarOpen ?? innerOpen;
|
|
35
|
+
let t1;
|
|
36
|
+
if ($[0] !== onSidebarOpenChange || $[1] !== sidebarOpen) {
|
|
37
|
+
t1 = (next) => {
|
|
32
38
|
if (sidebarOpen === void 0) setInnerOpen(next);
|
|
33
39
|
onSidebarOpenChange?.(next);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
const
|
|
40
|
-
|
|
40
|
+
};
|
|
41
|
+
$[0] = onSidebarOpenChange;
|
|
42
|
+
$[1] = sidebarOpen;
|
|
43
|
+
$[2] = t1;
|
|
44
|
+
} else t1 = $[2];
|
|
45
|
+
const setValue = t1;
|
|
46
|
+
let t2;
|
|
47
|
+
if ($[3] !== setValue || $[4] !== value) {
|
|
48
|
+
t2 = [
|
|
49
|
+
value,
|
|
50
|
+
setValue,
|
|
51
|
+
setInnerOpen
|
|
52
|
+
];
|
|
53
|
+
$[3] = setValue;
|
|
54
|
+
$[4] = value;
|
|
55
|
+
$[5] = t2;
|
|
56
|
+
} else t2 = $[5];
|
|
57
|
+
return t2;
|
|
41
58
|
}
|
|
59
|
+
const isCompactSidebar = (root) => isAtMostRem(root, drawerSidebarWidthRem);
|
|
60
|
+
const isCompactContent = (main) => isAtMostRem(main, compactContentWidthRem);
|
|
42
61
|
/** Owns the independent sidebar and main-content breakpoints. */
|
|
43
|
-
function useSidebarLayout(
|
|
62
|
+
function useSidebarLayout(t0) {
|
|
63
|
+
const $ = c(16);
|
|
64
|
+
const { rootRef, mainRef, isSidebarOpen, setSidebarOpen, primeSidebarOpen, wantsBuiltInDefault } = t0;
|
|
44
65
|
const compactRef = React.useRef(null);
|
|
45
66
|
const [compact, setCompact] = React.useState(true);
|
|
46
67
|
const [contentCompact, setContentCompact] = React.useState(true);
|
|
47
68
|
const restoreSidebarOnWideRef = React.useRef(isSidebarOpen);
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
const syncLayout = () => {
|
|
69
|
+
let t1;
|
|
70
|
+
if ($[0] !== isSidebarOpen || $[1] !== primeSidebarOpen || $[2] !== setSidebarOpen || $[3] !== wantsBuiltInDefault) {
|
|
71
|
+
t1 = (root) => {
|
|
52
72
|
if (root.offsetWidth <= 0) return;
|
|
53
|
-
const
|
|
73
|
+
const compact_0 = isCompactSidebar(root);
|
|
54
74
|
const wasCompact = compactRef.current;
|
|
55
|
-
compactRef.current =
|
|
56
|
-
setCompact(
|
|
75
|
+
compactRef.current = compact_0;
|
|
76
|
+
setCompact(compact_0);
|
|
57
77
|
if (wasCompact === null) {
|
|
58
|
-
if (wantsBuiltInDefault &&
|
|
78
|
+
if (wantsBuiltInDefault && compact_0) primeSidebarOpen(false);
|
|
59
79
|
return;
|
|
60
80
|
}
|
|
61
|
-
if (!wasCompact &&
|
|
81
|
+
if (!wasCompact && compact_0) {
|
|
62
82
|
restoreSidebarOnWideRef.current = isSidebarOpen;
|
|
63
83
|
if (isSidebarOpen) setSidebarOpen(false);
|
|
64
|
-
} else if (wasCompact && !
|
|
84
|
+
} else if (wasCompact && !compact_0 && restoreSidebarOnWideRef.current) setSidebarOpen(true);
|
|
85
|
+
};
|
|
86
|
+
$[0] = isSidebarOpen;
|
|
87
|
+
$[1] = primeSidebarOpen;
|
|
88
|
+
$[2] = setSidebarOpen;
|
|
89
|
+
$[3] = wantsBuiltInDefault;
|
|
90
|
+
$[4] = t1;
|
|
91
|
+
} else t1 = $[4];
|
|
92
|
+
const syncLayout = React.useEffectEvent(t1);
|
|
93
|
+
let t2;
|
|
94
|
+
if ($[5] !== rootRef || $[6] !== syncLayout) {
|
|
95
|
+
t2 = () => {
|
|
96
|
+
const root_0 = rootRef.current;
|
|
97
|
+
if (!root_0) return;
|
|
98
|
+
syncLayout(root_0);
|
|
99
|
+
if (typeof ResizeObserver === "undefined") return;
|
|
100
|
+
const observer = new ResizeObserver(() => syncLayout(root_0));
|
|
101
|
+
observer.observe(root_0);
|
|
102
|
+
return () => observer.disconnect();
|
|
65
103
|
};
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
rootRef
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
if (main
|
|
104
|
+
$[5] = rootRef;
|
|
105
|
+
$[6] = syncLayout;
|
|
106
|
+
$[7] = t2;
|
|
107
|
+
} else t2 = $[7];
|
|
108
|
+
let t3;
|
|
109
|
+
if ($[8] !== rootRef) {
|
|
110
|
+
t3 = [rootRef];
|
|
111
|
+
$[8] = rootRef;
|
|
112
|
+
$[9] = t3;
|
|
113
|
+
} else t3 = $[9];
|
|
114
|
+
React.useLayoutEffect(t2, t3);
|
|
115
|
+
let t4;
|
|
116
|
+
let t5;
|
|
117
|
+
if ($[10] !== mainRef) {
|
|
118
|
+
t4 = () => {
|
|
119
|
+
const main = mainRef.current;
|
|
120
|
+
if (!main) return;
|
|
121
|
+
const syncContent = () => {
|
|
122
|
+
if (main.offsetWidth > 0) setContentCompact(isCompactContent(main));
|
|
123
|
+
};
|
|
124
|
+
syncContent();
|
|
125
|
+
if (typeof ResizeObserver === "undefined") return;
|
|
126
|
+
const observer_0 = new ResizeObserver(syncContent);
|
|
127
|
+
observer_0.observe(main);
|
|
128
|
+
return () => observer_0.disconnect();
|
|
83
129
|
};
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
130
|
+
t5 = [mainRef];
|
|
131
|
+
$[10] = mainRef;
|
|
132
|
+
$[11] = t4;
|
|
133
|
+
$[12] = t5;
|
|
134
|
+
} else {
|
|
135
|
+
t4 = $[11];
|
|
136
|
+
t5 = $[12];
|
|
137
|
+
}
|
|
138
|
+
React.useLayoutEffect(t4, t5);
|
|
139
|
+
let t6;
|
|
140
|
+
if ($[13] !== compact || $[14] !== contentCompact) {
|
|
141
|
+
t6 = {
|
|
142
|
+
compact,
|
|
143
|
+
contentCompact
|
|
144
|
+
};
|
|
145
|
+
$[13] = compact;
|
|
146
|
+
$[14] = contentCompact;
|
|
147
|
+
$[15] = t6;
|
|
148
|
+
} else t6 = $[15];
|
|
149
|
+
return t6;
|
|
94
150
|
}
|
|
95
151
|
/**
|
|
96
152
|
* The one application shell: responsive master-detail with a resizable desktop
|
|
@@ -100,322 +156,764 @@ function useSidebarLayout({ rootRef, mainRef, isSidebarOpen, setSidebarOpen, pri
|
|
|
100
156
|
* hook, and its container name `responsive-sidebar-shell` is public contract:
|
|
101
157
|
* surfaces that compose the shell size themselves against it.
|
|
102
158
|
*/
|
|
103
|
-
function ResponsiveSidebarShell(
|
|
159
|
+
function ResponsiveSidebarShell(t0) {
|
|
160
|
+
const $ = c(114);
|
|
161
|
+
let bar;
|
|
162
|
+
let children;
|
|
163
|
+
let className;
|
|
164
|
+
let defaultSidebarOpen;
|
|
165
|
+
let error;
|
|
166
|
+
let onSidebarOpenChange;
|
|
167
|
+
let props;
|
|
168
|
+
let ref;
|
|
169
|
+
let sidebar;
|
|
170
|
+
let sidebarOpen;
|
|
171
|
+
let style;
|
|
172
|
+
let t1;
|
|
173
|
+
let t2;
|
|
174
|
+
let t3;
|
|
175
|
+
let t4;
|
|
176
|
+
let t5;
|
|
177
|
+
if ($[0] !== t0) {
|
|
178
|
+
({sidebar, sidebarLabel: t1, sidebarOpen, sidebarTogglePlacement: t2, defaultSidebarOpen, defaultSidebarWidth: t3, onSidebarOpenChange, bar, contentBar: t4, error, showMainLabel: t5, className, children, ref, style, ...props} = t0);
|
|
179
|
+
$[0] = t0;
|
|
180
|
+
$[1] = bar;
|
|
181
|
+
$[2] = children;
|
|
182
|
+
$[3] = className;
|
|
183
|
+
$[4] = defaultSidebarOpen;
|
|
184
|
+
$[5] = error;
|
|
185
|
+
$[6] = onSidebarOpenChange;
|
|
186
|
+
$[7] = props;
|
|
187
|
+
$[8] = ref;
|
|
188
|
+
$[9] = sidebar;
|
|
189
|
+
$[10] = sidebarOpen;
|
|
190
|
+
$[11] = style;
|
|
191
|
+
$[12] = t1;
|
|
192
|
+
$[13] = t2;
|
|
193
|
+
$[14] = t3;
|
|
194
|
+
$[15] = t4;
|
|
195
|
+
$[16] = t5;
|
|
196
|
+
} else {
|
|
197
|
+
bar = $[1];
|
|
198
|
+
children = $[2];
|
|
199
|
+
className = $[3];
|
|
200
|
+
defaultSidebarOpen = $[4];
|
|
201
|
+
error = $[5];
|
|
202
|
+
onSidebarOpenChange = $[6];
|
|
203
|
+
props = $[7];
|
|
204
|
+
ref = $[8];
|
|
205
|
+
sidebar = $[9];
|
|
206
|
+
sidebarOpen = $[10];
|
|
207
|
+
style = $[11];
|
|
208
|
+
t1 = $[12];
|
|
209
|
+
t2 = $[13];
|
|
210
|
+
t3 = $[14];
|
|
211
|
+
t4 = $[15];
|
|
212
|
+
t5 = $[16];
|
|
213
|
+
}
|
|
214
|
+
const sidebarLabel = t1 === void 0 ? "sidebar" : t1;
|
|
215
|
+
const sidebarTogglePlacement = t2 === void 0 ? "main" : t2;
|
|
216
|
+
const defaultSidebarWidth = t3 === void 0 ? sidebarDefaultWidth : t3;
|
|
217
|
+
const contentBar = t4 === void 0 ? false : t4;
|
|
218
|
+
const showMainLabel = t5 === void 0 ? "Show main content" : t5;
|
|
104
219
|
const sidebarId = React.useId();
|
|
105
220
|
const rootRef = React.useRef(null);
|
|
106
221
|
const mainRef = React.useRef(null);
|
|
107
222
|
const openerRef = React.useRef(null);
|
|
108
|
-
const
|
|
223
|
+
const barRef = React.useRef(null);
|
|
224
|
+
const [appBarOutlet] = React.useState(createAppBarOutlet);
|
|
225
|
+
const outlet = contentBar ? appBarOutlet : null;
|
|
109
226
|
const lastBarFocus = React.useRef(null);
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
227
|
+
let t6;
|
|
228
|
+
if ($[17] === Symbol.for("react.memo_cache_sentinel")) {
|
|
229
|
+
t6 = () => {
|
|
230
|
+
const previous = lastBarFocus.current;
|
|
231
|
+
const bar_0 = barRef.current;
|
|
232
|
+
if (!previous || !bar_0 || previous.control.isConnected) return;
|
|
233
|
+
const active = document.activeElement;
|
|
234
|
+
if (active instanceof HTMLElement && active !== document.body && active.getClientRects().length) return;
|
|
235
|
+
const controls = Array.from(bar_0.querySelectorAll("button, a[href]")).filter(_temp);
|
|
236
|
+
lastBarFocus.current = null;
|
|
237
|
+
(controls.find((element_0) => previous.label && element_0.getAttribute("aria-label") === previous.label) ?? controls[0])?.focus({ preventScroll: true });
|
|
238
|
+
};
|
|
239
|
+
$[17] = t6;
|
|
240
|
+
} else t6 = $[17];
|
|
241
|
+
const restoreBarFocus = t6;
|
|
242
|
+
let t7;
|
|
243
|
+
if ($[18] !== defaultSidebarOpen || $[19] !== onSidebarOpenChange || $[20] !== sidebarOpen) {
|
|
244
|
+
t7 = {
|
|
245
|
+
sidebarOpen,
|
|
246
|
+
defaultSidebarOpen,
|
|
247
|
+
onSidebarOpenChange
|
|
248
|
+
};
|
|
249
|
+
$[18] = defaultSidebarOpen;
|
|
250
|
+
$[19] = onSidebarOpenChange;
|
|
251
|
+
$[20] = sidebarOpen;
|
|
252
|
+
$[21] = t7;
|
|
253
|
+
} else t7 = $[21];
|
|
254
|
+
const [isSidebarOpen, setSidebarOpen, primeSidebarOpen] = useControllableSidebar(t7);
|
|
255
|
+
const t8 = sidebarOpen === void 0 && defaultSidebarOpen === void 0;
|
|
256
|
+
let t9;
|
|
257
|
+
if ($[22] !== isSidebarOpen || $[23] !== primeSidebarOpen || $[24] !== setSidebarOpen || $[25] !== t8) {
|
|
258
|
+
t9 = {
|
|
259
|
+
rootRef,
|
|
260
|
+
mainRef,
|
|
261
|
+
isSidebarOpen,
|
|
262
|
+
setSidebarOpen,
|
|
263
|
+
primeSidebarOpen,
|
|
264
|
+
wantsBuiltInDefault: t8
|
|
265
|
+
};
|
|
266
|
+
$[22] = isSidebarOpen;
|
|
267
|
+
$[23] = primeSidebarOpen;
|
|
268
|
+
$[24] = setSidebarOpen;
|
|
269
|
+
$[25] = t8;
|
|
270
|
+
$[26] = t9;
|
|
271
|
+
} else t9 = $[26];
|
|
272
|
+
const { compact, contentCompact } = useSidebarLayout(t9);
|
|
135
273
|
const hasSidebar = sidebar != null;
|
|
136
274
|
const sidebarVisible = hasSidebar && isSidebarOpen;
|
|
137
|
-
|
|
275
|
+
let t10;
|
|
276
|
+
if ($[27] !== sidebarLabel) {
|
|
277
|
+
t10 = capitalize(sidebarLabel);
|
|
278
|
+
$[27] = sidebarLabel;
|
|
279
|
+
$[28] = t10;
|
|
280
|
+
} else t10 = $[28];
|
|
281
|
+
const toggleLabel = t10;
|
|
138
282
|
const toggleTooltip = `${isSidebarOpen ? "Hide" : "Show"} ${sidebarLabel}`;
|
|
139
|
-
const updateSidebar =
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
}
|
|
199
|
-
const
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
283
|
+
const updateSidebar = _temp2;
|
|
284
|
+
let t11;
|
|
285
|
+
if ($[29] !== setSidebarOpen) {
|
|
286
|
+
t11 = () => {
|
|
287
|
+
updateSidebar(() => setSidebarOpen(false), () => mainRef.current?.focus({ preventScroll: true }));
|
|
288
|
+
};
|
|
289
|
+
$[29] = setSidebarOpen;
|
|
290
|
+
$[30] = t11;
|
|
291
|
+
} else t11 = $[30];
|
|
292
|
+
const closeSidebar = t11;
|
|
293
|
+
let t12;
|
|
294
|
+
if ($[31] !== closeSidebar) {
|
|
295
|
+
t12 = () => {
|
|
296
|
+
const root = rootRef.current;
|
|
297
|
+
if (root?.dataset.sidebarOpen === "true" && isCompactSidebar(root)) closeSidebar();
|
|
298
|
+
};
|
|
299
|
+
$[31] = closeSidebar;
|
|
300
|
+
$[32] = t12;
|
|
301
|
+
} else t12 = $[32];
|
|
302
|
+
const closeSidebarOnCompact = t12;
|
|
303
|
+
let t13;
|
|
304
|
+
if ($[33] !== isSidebarOpen || $[34] !== setSidebarOpen || $[35] !== sidebarId) {
|
|
305
|
+
t13 = (trigger) => {
|
|
306
|
+
if (trigger) openerRef.current = trigger;
|
|
307
|
+
updateSidebar(() => setSidebarOpen(!isSidebarOpen), trigger === document.activeElement ? () => {
|
|
308
|
+
const active_0 = document.activeElement;
|
|
309
|
+
if (active_0 !== trigger && active_0 !== document.body) return;
|
|
310
|
+
if (trigger?.isConnected && trigger.getClientRects().length && !trigger.closest("[inert]")) return;
|
|
311
|
+
(Array.from(rootRef.current?.querySelectorAll("button[aria-controls]") ?? []).find((button) => button.getAttribute("aria-controls") === sidebarId && button.getClientRects().length > 0 && !button.closest("[inert]")) ?? mainRef.current)?.focus({ preventScroll: true });
|
|
312
|
+
} : void 0);
|
|
313
|
+
};
|
|
314
|
+
$[33] = isSidebarOpen;
|
|
315
|
+
$[34] = setSidebarOpen;
|
|
316
|
+
$[35] = sidebarId;
|
|
317
|
+
$[36] = t13;
|
|
318
|
+
} else t13 = $[36];
|
|
319
|
+
const toggleSidebar = t13;
|
|
320
|
+
let t14;
|
|
321
|
+
if ($[37] !== setSidebarOpen) {
|
|
322
|
+
t14 = () => {
|
|
323
|
+
updateSidebar(() => setSidebarOpen(false), () => openerRef.current?.focus({ preventScroll: true }));
|
|
324
|
+
};
|
|
325
|
+
$[37] = setSidebarOpen;
|
|
326
|
+
$[38] = t14;
|
|
327
|
+
} else t14 = $[38];
|
|
328
|
+
const dismissSidebar = t14;
|
|
329
|
+
let t15;
|
|
330
|
+
if ($[39] !== closeSidebar || $[40] !== closeSidebarOnCompact || $[41] !== compact || $[42] !== contentCompact) {
|
|
331
|
+
t15 = {
|
|
332
|
+
compact,
|
|
333
|
+
contentCompact,
|
|
334
|
+
closeSidebar,
|
|
335
|
+
closeSidebarOnCompact
|
|
336
|
+
};
|
|
337
|
+
$[39] = closeSidebar;
|
|
338
|
+
$[40] = closeSidebarOnCompact;
|
|
339
|
+
$[41] = compact;
|
|
340
|
+
$[42] = contentCompact;
|
|
341
|
+
$[43] = t15;
|
|
342
|
+
} else t15 = $[43];
|
|
343
|
+
const controls_0 = t15;
|
|
344
|
+
let t16;
|
|
345
|
+
if ($[44] !== isSidebarOpen || $[45] !== sidebarId || $[46] !== sidebarTogglePlacement || $[47] !== sidebarVisible || $[48] !== toggleLabel || $[49] !== toggleSidebar || $[50] !== toggleTooltip) {
|
|
346
|
+
t16 = sidebarVisible && sidebarTogglePlacement === "sidebar" ? /* @__PURE__ */ jsx(Button, {
|
|
347
|
+
className: "responsive-sidebar-shell__toggle responsive-sidebar-shell__toggle--sidebar",
|
|
348
|
+
type: "button",
|
|
349
|
+
variant: "ghost",
|
|
350
|
+
color: "neutral",
|
|
351
|
+
size: "sm",
|
|
352
|
+
iconOnly: true,
|
|
353
|
+
"aria-label": toggleLabel,
|
|
354
|
+
title: toggleTooltip,
|
|
355
|
+
"aria-controls": sidebarId,
|
|
356
|
+
"aria-expanded": isSidebarOpen,
|
|
357
|
+
onClick: (event) => toggleSidebar(event.currentTarget),
|
|
358
|
+
children: /* @__PURE__ */ jsx(SidebarIcon, {})
|
|
359
|
+
}) : null;
|
|
360
|
+
$[44] = isSidebarOpen;
|
|
361
|
+
$[45] = sidebarId;
|
|
362
|
+
$[46] = sidebarTogglePlacement;
|
|
363
|
+
$[47] = sidebarVisible;
|
|
364
|
+
$[48] = toggleLabel;
|
|
365
|
+
$[49] = toggleSidebar;
|
|
366
|
+
$[50] = toggleTooltip;
|
|
367
|
+
$[51] = t16;
|
|
368
|
+
} else t16 = $[51];
|
|
369
|
+
const sidebarToggle = t16;
|
|
370
|
+
let t17;
|
|
371
|
+
if ($[52] !== ref) {
|
|
372
|
+
t17 = mergeRefs(rootRef, ref);
|
|
373
|
+
$[52] = ref;
|
|
374
|
+
$[53] = t17;
|
|
375
|
+
} else t17 = $[53];
|
|
376
|
+
let t18;
|
|
377
|
+
if ($[54] !== className) {
|
|
378
|
+
t18 = cx("responsive-sidebar-shell", className);
|
|
379
|
+
$[54] = className;
|
|
380
|
+
$[55] = t18;
|
|
381
|
+
} else t18 = $[55];
|
|
382
|
+
const t19 = sidebarVisible ? "true" : "false";
|
|
383
|
+
let t20;
|
|
384
|
+
if ($[56] !== dismissSidebar || $[57] !== props || $[58] !== sidebarVisible) {
|
|
385
|
+
t20 = (event_0) => {
|
|
386
|
+
props.onKeyDown?.(event_0);
|
|
387
|
+
if (!event_0.defaultPrevented && !event_0.nativeEvent.isComposing && event_0.nativeEvent.keyCode !== 229 && event_0.key === "Escape" && sidebarVisible && rootRef.current && isCompactSidebar(rootRef.current)) {
|
|
388
|
+
event_0.preventDefault();
|
|
389
|
+
dismissSidebar();
|
|
390
|
+
}
|
|
391
|
+
};
|
|
392
|
+
$[56] = dismissSidebar;
|
|
393
|
+
$[57] = props;
|
|
394
|
+
$[58] = sidebarVisible;
|
|
395
|
+
$[59] = t20;
|
|
396
|
+
} else t20 = $[59];
|
|
397
|
+
const t21 = Math.min(defaultSidebarWidth, sidebarMinWidth);
|
|
398
|
+
let t22;
|
|
399
|
+
if ($[60] !== sidebarVisible) {
|
|
400
|
+
t22 = sidebarVisible ? /* @__PURE__ */ jsx(ResizableSidePanel.Handle, { className: "responsive-sidebar-shell__resizer" }) : null;
|
|
401
|
+
$[60] = sidebarVisible;
|
|
402
|
+
$[61] = t22;
|
|
403
|
+
} else t22 = $[61];
|
|
404
|
+
let t23;
|
|
405
|
+
if ($[62] !== hasSidebar || $[63] !== isSidebarOpen || $[64] !== sidebar || $[65] !== sidebarId || $[66] !== sidebarToggle) {
|
|
406
|
+
t23 = hasSidebar ? /* @__PURE__ */ jsx(SidebarPane, {
|
|
407
|
+
id: sidebarId,
|
|
408
|
+
open: isSidebarOpen,
|
|
409
|
+
toggle: sidebarToggle,
|
|
410
|
+
children: sidebar
|
|
411
|
+
}) : null;
|
|
412
|
+
$[62] = hasSidebar;
|
|
413
|
+
$[63] = isSidebarOpen;
|
|
414
|
+
$[64] = sidebar;
|
|
415
|
+
$[65] = sidebarId;
|
|
416
|
+
$[66] = sidebarToggle;
|
|
417
|
+
$[67] = t23;
|
|
418
|
+
} else t23 = $[67];
|
|
419
|
+
const t24 = String(contentCompact);
|
|
420
|
+
let t25;
|
|
421
|
+
let t26;
|
|
422
|
+
if ($[68] === Symbol.for("react.memo_cache_sentinel")) {
|
|
423
|
+
t25 = (event_1) => {
|
|
424
|
+
if (barRef.current?.contains(event_1.target)) lastBarFocus.current = {
|
|
425
|
+
control: event_1.target,
|
|
426
|
+
label: event_1.target.getAttribute("aria-label")
|
|
427
|
+
};
|
|
428
|
+
else if (!event_1.target.closest("[role=\"menu\"]")) lastBarFocus.current = null;
|
|
429
|
+
};
|
|
430
|
+
t26 = (event_2) => {
|
|
431
|
+
if (event_2.target instanceof Element && !barRef.current?.contains(event_2.target) && !event_2.target.closest("[role=\"menu\"]")) lastBarFocus.current = null;
|
|
432
|
+
};
|
|
433
|
+
$[68] = t25;
|
|
434
|
+
$[69] = t26;
|
|
435
|
+
} else {
|
|
436
|
+
t25 = $[68];
|
|
437
|
+
t26 = $[69];
|
|
438
|
+
}
|
|
439
|
+
let t27;
|
|
440
|
+
if ($[70] !== bar || $[71] !== hasSidebar || $[72] !== isSidebarOpen || $[73] !== outlet || $[74] !== sidebarId || $[75] !== sidebarTogglePlacement || $[76] !== toggleLabel || $[77] !== toggleSidebar || $[78] !== toggleTooltip) {
|
|
441
|
+
t27 = /* @__PURE__ */ jsx(ShellAppBar, {
|
|
442
|
+
outlet,
|
|
443
|
+
barRef,
|
|
444
|
+
onCommit: restoreBarFocus,
|
|
445
|
+
bar,
|
|
446
|
+
hasSidebar,
|
|
447
|
+
sidebarTogglePlacement,
|
|
448
|
+
sidebarId,
|
|
449
|
+
isSidebarOpen,
|
|
450
|
+
toggleSidebar,
|
|
451
|
+
toggleLabel,
|
|
452
|
+
toggleTooltip
|
|
453
|
+
});
|
|
454
|
+
$[70] = bar;
|
|
455
|
+
$[71] = hasSidebar;
|
|
456
|
+
$[72] = isSidebarOpen;
|
|
457
|
+
$[73] = outlet;
|
|
458
|
+
$[74] = sidebarId;
|
|
459
|
+
$[75] = sidebarTogglePlacement;
|
|
460
|
+
$[76] = toggleLabel;
|
|
461
|
+
$[77] = toggleSidebar;
|
|
462
|
+
$[78] = toggleTooltip;
|
|
463
|
+
$[79] = t27;
|
|
464
|
+
} else t27 = $[79];
|
|
465
|
+
let t28;
|
|
466
|
+
if ($[80] !== error) {
|
|
467
|
+
t28 = error != null ? /* @__PURE__ */ jsxs("div", {
|
|
468
|
+
className: "responsive-sidebar-shell__error",
|
|
469
|
+
role: "alert",
|
|
470
|
+
children: [/* @__PURE__ */ jsx(WarningIcon, { "aria-hidden": "true" }), /* @__PURE__ */ jsx("span", { children: error })]
|
|
471
|
+
}) : null;
|
|
472
|
+
$[80] = error;
|
|
473
|
+
$[81] = t28;
|
|
474
|
+
} else t28 = $[81];
|
|
475
|
+
let t29;
|
|
476
|
+
if ($[82] !== children || $[83] !== t24 || $[84] !== t27 || $[85] !== t28) {
|
|
477
|
+
t29 = /* @__PURE__ */ jsxs("div", {
|
|
478
|
+
ref: mainRef,
|
|
479
|
+
className: "responsive-sidebar-shell__main",
|
|
480
|
+
"data-content-compact": t24,
|
|
481
|
+
tabIndex: -1,
|
|
482
|
+
onFocusCapture: t25,
|
|
483
|
+
onPointerDownCapture: t26,
|
|
484
|
+
children: [
|
|
485
|
+
t27,
|
|
486
|
+
t28,
|
|
487
|
+
children
|
|
488
|
+
]
|
|
489
|
+
});
|
|
490
|
+
$[82] = children;
|
|
491
|
+
$[83] = t24;
|
|
492
|
+
$[84] = t27;
|
|
493
|
+
$[85] = t28;
|
|
494
|
+
$[86] = t29;
|
|
495
|
+
} else t29 = $[86];
|
|
496
|
+
let t30;
|
|
497
|
+
if ($[87] !== closeSidebar || $[88] !== showMainLabel || $[89] !== sidebarVisible) {
|
|
498
|
+
t30 = sidebarVisible ? /* @__PURE__ */ jsx(Button, {
|
|
499
|
+
type: "button",
|
|
500
|
+
variant: "ghost",
|
|
501
|
+
color: "neutral",
|
|
502
|
+
className: "responsive-sidebar-shell__peek",
|
|
503
|
+
"aria-label": showMainLabel,
|
|
504
|
+
onClick: closeSidebar
|
|
505
|
+
}) : null;
|
|
506
|
+
$[87] = closeSidebar;
|
|
507
|
+
$[88] = showMainLabel;
|
|
508
|
+
$[89] = sidebarVisible;
|
|
509
|
+
$[90] = t30;
|
|
510
|
+
} else t30 = $[90];
|
|
511
|
+
let t31;
|
|
512
|
+
if ($[91] !== defaultSidebarWidth || $[92] !== sidebarLabel || $[93] !== t21 || $[94] !== t22 || $[95] !== t23 || $[96] !== t29 || $[97] !== t30) {
|
|
513
|
+
t31 = /* @__PURE__ */ jsxs(ResizableSidePanel.Root, {
|
|
514
|
+
className: "responsive-sidebar-shell__frame",
|
|
515
|
+
label: sidebarLabel,
|
|
516
|
+
side: "start",
|
|
517
|
+
sizeVariable: "--responsive-sidebar-shell-sidebar-size",
|
|
518
|
+
defaultSize: defaultSidebarWidth,
|
|
519
|
+
minSize: t21,
|
|
520
|
+
maxSize: sidebarMaxWidth,
|
|
521
|
+
keyboardStep: sidebarKeyboardStep,
|
|
522
|
+
children: [
|
|
523
|
+
t22,
|
|
524
|
+
t23,
|
|
525
|
+
t29,
|
|
526
|
+
t30
|
|
527
|
+
]
|
|
528
|
+
});
|
|
529
|
+
$[91] = defaultSidebarWidth;
|
|
530
|
+
$[92] = sidebarLabel;
|
|
531
|
+
$[93] = t21;
|
|
532
|
+
$[94] = t22;
|
|
533
|
+
$[95] = t23;
|
|
534
|
+
$[96] = t29;
|
|
535
|
+
$[97] = t30;
|
|
536
|
+
$[98] = t31;
|
|
537
|
+
} else t31 = $[98];
|
|
538
|
+
let t32;
|
|
539
|
+
if ($[99] !== props || $[100] !== sidebarTogglePlacement || $[101] !== style || $[102] !== t17 || $[103] !== t18 || $[104] !== t19 || $[105] !== t20 || $[106] !== t31) {
|
|
540
|
+
t32 = /* @__PURE__ */ jsx("div", {
|
|
541
|
+
ref: t17,
|
|
542
|
+
className: t18,
|
|
543
|
+
"data-recipe": "fill-host",
|
|
544
|
+
style,
|
|
545
|
+
...props,
|
|
546
|
+
"data-sidebar-open": t19,
|
|
547
|
+
"data-sidebar-toggle-placement": sidebarTogglePlacement,
|
|
548
|
+
onKeyDown: t20,
|
|
549
|
+
children: t31
|
|
550
|
+
});
|
|
551
|
+
$[99] = props;
|
|
552
|
+
$[100] = sidebarTogglePlacement;
|
|
553
|
+
$[101] = style;
|
|
554
|
+
$[102] = t17;
|
|
555
|
+
$[103] = t18;
|
|
556
|
+
$[104] = t19;
|
|
557
|
+
$[105] = t20;
|
|
558
|
+
$[106] = t31;
|
|
559
|
+
$[107] = t32;
|
|
560
|
+
} else t32 = $[107];
|
|
561
|
+
let t33;
|
|
562
|
+
if ($[108] !== outlet || $[109] !== t32) {
|
|
563
|
+
t33 = /* @__PURE__ */ jsx(ShellAppBarOutletContext.Provider, {
|
|
219
564
|
value: outlet,
|
|
220
|
-
children:
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
children: [
|
|
245
|
-
sidebarVisible ? /* @__PURE__ */ jsx(ResizableSidePanel.Handle, { className: "responsive-sidebar-shell__resizer" }) : null,
|
|
246
|
-
hasSidebar ? /* @__PURE__ */ jsx(SidebarPane, {
|
|
247
|
-
id: sidebarId,
|
|
248
|
-
open: isSidebarOpen,
|
|
249
|
-
toggle: sidebarToggle,
|
|
250
|
-
children: sidebarContent
|
|
251
|
-
}) : null,
|
|
252
|
-
/* @__PURE__ */ jsxs("div", {
|
|
253
|
-
ref: mainRef,
|
|
254
|
-
className: "responsive-sidebar-shell__main",
|
|
255
|
-
"data-content-compact": String(contentCompact),
|
|
256
|
-
tabIndex: -1,
|
|
257
|
-
onFocusCapture: (event) => {
|
|
258
|
-
const focusedBar = event.target.closest(".app-top-bar");
|
|
259
|
-
if (focusedBar && barTarget?.contains(focusedBar)) lastBarFocus.current = {
|
|
260
|
-
bar: focusedBar,
|
|
261
|
-
label: event.target.getAttribute("aria-label")
|
|
262
|
-
};
|
|
263
|
-
else if (!event.target.closest("[role=\"menu\"]")) lastBarFocus.current = null;
|
|
264
|
-
},
|
|
265
|
-
onPointerDownCapture: (event) => {
|
|
266
|
-
if (event.target instanceof Element && !barTarget?.contains(event.target) && !event.target.closest("[role=\"menu\"]")) lastBarFocus.current = null;
|
|
267
|
-
},
|
|
268
|
-
children: [
|
|
269
|
-
contentBar ? /* @__PURE__ */ jsx("div", {
|
|
270
|
-
className: "responsive-sidebar-shell__bar",
|
|
271
|
-
ref: setBarTarget,
|
|
272
|
-
children: renderBar(bar)
|
|
273
|
-
}) : renderBar(bar),
|
|
274
|
-
error != null ? /* @__PURE__ */ jsxs("div", {
|
|
275
|
-
className: "responsive-sidebar-shell__error",
|
|
276
|
-
role: "alert",
|
|
277
|
-
children: [/* @__PURE__ */ jsx(WarningIcon, { "aria-hidden": "true" }), /* @__PURE__ */ jsx("span", { children: error })]
|
|
278
|
-
}) : null,
|
|
279
|
-
children
|
|
280
|
-
]
|
|
281
|
-
}),
|
|
282
|
-
sidebarVisible ? /* @__PURE__ */ jsx(Button, {
|
|
283
|
-
type: "button",
|
|
284
|
-
variant: "ghost",
|
|
285
|
-
color: "neutral",
|
|
286
|
-
className: "responsive-sidebar-shell__peek",
|
|
287
|
-
"aria-label": showMainLabel,
|
|
288
|
-
onClick: closeSidebar
|
|
289
|
-
}) : null
|
|
290
|
-
]
|
|
291
|
-
})
|
|
292
|
-
})
|
|
293
|
-
})
|
|
294
|
-
});
|
|
565
|
+
children: t32
|
|
566
|
+
});
|
|
567
|
+
$[108] = outlet;
|
|
568
|
+
$[109] = t32;
|
|
569
|
+
$[110] = t33;
|
|
570
|
+
} else t33 = $[110];
|
|
571
|
+
let t34;
|
|
572
|
+
if ($[111] !== controls_0 || $[112] !== t33) {
|
|
573
|
+
t34 = /* @__PURE__ */ jsx(SidebarShellContext.Provider, {
|
|
574
|
+
value: controls_0,
|
|
575
|
+
children: t33
|
|
576
|
+
});
|
|
577
|
+
$[111] = controls_0;
|
|
578
|
+
$[112] = t33;
|
|
579
|
+
$[113] = t34;
|
|
580
|
+
} else t34 = $[113];
|
|
581
|
+
return t34;
|
|
582
|
+
}
|
|
583
|
+
function _temp2(update, restoreFocus) {
|
|
584
|
+
update();
|
|
585
|
+
if (restoreFocus) queueMicrotask(restoreFocus);
|
|
586
|
+
}
|
|
587
|
+
function _temp(element) {
|
|
588
|
+
return element.getClientRects().length;
|
|
295
589
|
}
|
|
296
590
|
/**
|
|
297
591
|
* A pane's title, Back control and actions share its enclosing shell's bar.
|
|
298
592
|
* Outside an opted-in workbench this renders a standalone application bar.
|
|
299
|
-
*
|
|
300
|
-
*
|
|
301
|
-
*
|
|
593
|
+
*
|
|
594
|
+
* Inside one, the slots render in the shell's toolbar, beside controls that
|
|
595
|
+
* stay mounted, so they read the shell's context rather than the pane's: a
|
|
596
|
+
* control that needs a pane-scoped provider must be wrapped in it by the pane.
|
|
597
|
+
* Submit controls must name their owning form with `form`.
|
|
302
598
|
*/
|
|
303
599
|
function ResponsiveSidebarAppBar(props) {
|
|
600
|
+
const $ = c(22);
|
|
304
601
|
const outlet = React.useContext(ContentAppBarOutletContext);
|
|
305
|
-
React.
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
]
|
|
323
|
-
|
|
602
|
+
const [owner] = React.useState(_temp3);
|
|
603
|
+
let t0;
|
|
604
|
+
if ($[0] !== outlet || $[1] !== owner || $[2] !== props) {
|
|
605
|
+
t0 = () => {
|
|
606
|
+
outlet?.publish(owner, props);
|
|
607
|
+
};
|
|
608
|
+
$[0] = outlet;
|
|
609
|
+
$[1] = owner;
|
|
610
|
+
$[2] = props;
|
|
611
|
+
$[3] = t0;
|
|
612
|
+
} else t0 = $[3];
|
|
613
|
+
React.useLayoutEffect(t0);
|
|
614
|
+
let t1;
|
|
615
|
+
let t2;
|
|
616
|
+
if ($[4] !== outlet || $[5] !== owner) {
|
|
617
|
+
t1 = () => outlet ? () => outlet.withdraw(owner) : void 0;
|
|
618
|
+
t2 = [outlet, owner];
|
|
619
|
+
$[4] = outlet;
|
|
620
|
+
$[5] = owner;
|
|
621
|
+
$[6] = t1;
|
|
622
|
+
$[7] = t2;
|
|
623
|
+
} else {
|
|
624
|
+
t1 = $[6];
|
|
625
|
+
t2 = $[7];
|
|
626
|
+
}
|
|
627
|
+
React.useLayoutEffect(t1, t2);
|
|
628
|
+
if (outlet) return null;
|
|
629
|
+
const t3 = props.label ?? "Application controls";
|
|
630
|
+
let t4;
|
|
631
|
+
if ($[8] !== props.leading) {
|
|
632
|
+
t4 = props.leading != null ? /* @__PURE__ */ jsx(AppTopBar.Leading, { children: props.leading }) : null;
|
|
633
|
+
$[8] = props.leading;
|
|
634
|
+
$[9] = t4;
|
|
635
|
+
} else t4 = $[9];
|
|
636
|
+
let t5;
|
|
637
|
+
if ($[10] !== props.title || $[11] !== props.titleRender) {
|
|
638
|
+
t5 = props.title != null ? /* @__PURE__ */ jsx(AppTopBar.Title, {
|
|
639
|
+
render: props.titleRender,
|
|
640
|
+
children: props.title
|
|
641
|
+
}) : null;
|
|
642
|
+
$[10] = props.title;
|
|
643
|
+
$[11] = props.titleRender;
|
|
644
|
+
$[12] = t5;
|
|
645
|
+
} else t5 = $[12];
|
|
646
|
+
let t6;
|
|
647
|
+
if ($[13] !== props.actions || $[14] !== props.primary) {
|
|
648
|
+
t6 = props.actions != null || props.primary != null ? /* @__PURE__ */ jsxs(AppTopBar.Trailing, { children: [props.actions, props.primary] }) : null;
|
|
649
|
+
$[13] = props.actions;
|
|
650
|
+
$[14] = props.primary;
|
|
651
|
+
$[15] = t6;
|
|
652
|
+
} else t6 = $[15];
|
|
653
|
+
let t7;
|
|
654
|
+
if ($[16] !== props.className || $[17] !== t3 || $[18] !== t4 || $[19] !== t5 || $[20] !== t6) {
|
|
655
|
+
t7 = /* @__PURE__ */ jsxs(AppTopBar.Root, {
|
|
656
|
+
"aria-label": t3,
|
|
657
|
+
titleAlign: "start",
|
|
658
|
+
className: props.className,
|
|
659
|
+
children: [
|
|
660
|
+
t4,
|
|
661
|
+
t5,
|
|
662
|
+
t6
|
|
663
|
+
]
|
|
664
|
+
});
|
|
665
|
+
$[16] = props.className;
|
|
666
|
+
$[17] = t3;
|
|
667
|
+
$[18] = t4;
|
|
668
|
+
$[19] = t5;
|
|
669
|
+
$[20] = t6;
|
|
670
|
+
$[21] = t7;
|
|
671
|
+
} else t7 = $[21];
|
|
672
|
+
return t7;
|
|
324
673
|
}
|
|
325
|
-
function
|
|
326
|
-
|
|
327
|
-
const mainSidebarToggle = hasSidebar ? /* @__PURE__ */ jsx(AppTopBar.Button, {
|
|
328
|
-
className: cx("responsive-sidebar-shell__toggle", sidebarTogglePlacement === "sidebar" && "responsive-sidebar-shell__toggle--sidebar-fallback"),
|
|
329
|
-
label: toggleLabel,
|
|
330
|
-
tooltip: toggleTooltip,
|
|
331
|
-
type: "button",
|
|
332
|
-
"aria-controls": sidebarId,
|
|
333
|
-
"aria-expanded": isSidebarOpen,
|
|
334
|
-
onClick: (event) => toggleSidebar(event.currentTarget),
|
|
335
|
-
children: /* @__PURE__ */ jsx(SidebarIcon, {})
|
|
336
|
-
}) : null;
|
|
337
|
-
const compactLeadingMode = hasTitleTrigger ? "trigger" : bar?.compactLeading != null ? "custom" : void 0;
|
|
338
|
-
if (!hasSidebarAppBar(bar, hasSidebar)) return null;
|
|
339
|
-
return /* @__PURE__ */ jsxs(AppTopBar.Root, {
|
|
340
|
-
"aria-label": bar?.label ?? "Application controls",
|
|
341
|
-
className: bar?.className,
|
|
342
|
-
"data-compact-leading": compactLeadingMode,
|
|
343
|
-
"data-content-bar": content ? "" : void 0,
|
|
344
|
-
children: [
|
|
345
|
-
/* @__PURE__ */ jsx(SidebarAppBarLeading, {
|
|
346
|
-
bar,
|
|
347
|
-
mainSidebarToggle,
|
|
348
|
-
compactLeadingMode
|
|
349
|
-
}),
|
|
350
|
-
/* @__PURE__ */ jsx(SidebarAppBarTitle, {
|
|
351
|
-
bar,
|
|
352
|
-
hasTitleTrigger,
|
|
353
|
-
sidebarId,
|
|
354
|
-
isSidebarOpen,
|
|
355
|
-
toggleSidebar
|
|
356
|
-
}),
|
|
357
|
-
bar?.actions != null || bar?.primary != null ? /* @__PURE__ */ jsxs(AppTopBar.Trailing, { children: [bar.actions, bar.primary] }) : null
|
|
358
|
-
]
|
|
359
|
-
});
|
|
674
|
+
function _temp3() {
|
|
675
|
+
return {};
|
|
360
676
|
}
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
677
|
+
const subscribeToNothing = () => () => {};
|
|
678
|
+
const noPane = () => null;
|
|
679
|
+
/** The shell's one bar. Only this subscribes to the pane outlet. */
|
|
680
|
+
function ShellAppBar(t0) {
|
|
681
|
+
const $ = c(9);
|
|
682
|
+
let barRef;
|
|
683
|
+
let onCommit;
|
|
684
|
+
let outlet;
|
|
685
|
+
let props;
|
|
686
|
+
if ($[0] !== t0) {
|
|
687
|
+
({outlet, barRef, onCommit, ...props} = t0);
|
|
688
|
+
$[0] = t0;
|
|
689
|
+
$[1] = barRef;
|
|
690
|
+
$[2] = onCommit;
|
|
691
|
+
$[3] = outlet;
|
|
692
|
+
$[4] = props;
|
|
693
|
+
} else {
|
|
694
|
+
barRef = $[1];
|
|
695
|
+
onCommit = $[2];
|
|
696
|
+
outlet = $[3];
|
|
697
|
+
props = $[4];
|
|
698
|
+
}
|
|
699
|
+
const pane = React.useSyncExternalStore(outlet?.subscribe ?? subscribeToNothing, outlet?.getSnapshot ?? noPane, outlet?.getSnapshot ?? noPane);
|
|
700
|
+
React.useLayoutEffect(onCommit);
|
|
701
|
+
let t1;
|
|
702
|
+
if ($[5] !== barRef || $[6] !== pane || $[7] !== props) {
|
|
703
|
+
t1 = /* @__PURE__ */ jsx(SidebarAppBar, {
|
|
704
|
+
...props,
|
|
705
|
+
pane,
|
|
706
|
+
barRef
|
|
707
|
+
});
|
|
708
|
+
$[5] = barRef;
|
|
709
|
+
$[6] = pane;
|
|
710
|
+
$[7] = props;
|
|
711
|
+
$[8] = t1;
|
|
712
|
+
} else t1 = $[8];
|
|
713
|
+
return t1;
|
|
380
714
|
}
|
|
381
|
-
|
|
715
|
+
/**
|
|
716
|
+
* Shell and pane slots in fixed positions, so a pane arriving or leaving only
|
|
717
|
+
* adds or removes its own controls. A pane's slot that replaces a shell slot is
|
|
718
|
+
* keyed apart from it, so the two never share component state.
|
|
719
|
+
*/
|
|
720
|
+
function SidebarAppBar(t0) {
|
|
721
|
+
const $ = c(44);
|
|
722
|
+
const { bar, pane, barRef, hasSidebar, sidebarTogglePlacement, sidebarId, isSidebarOpen, toggleSidebar, toggleLabel, toggleTooltip } = t0;
|
|
382
723
|
const { contentCompact } = useResponsiveSidebarShell();
|
|
724
|
+
const compactLeading = pane?.leading ?? bar?.compactLeading;
|
|
725
|
+
const compactTitleTrigger = pane ? void 0 : bar?.compactTitleTrigger;
|
|
726
|
+
const hasTitleTrigger = hasSidebar && compactTitleTrigger != null && compactLeading == null;
|
|
727
|
+
const title = pane?.title ?? bar?.title;
|
|
728
|
+
const compactLeadingMode = hasTitleTrigger ? "trigger" : compactLeading != null ? "custom" : void 0;
|
|
383
729
|
const compactNavigationActive = contentCompact && compactLeadingMode === "custom";
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
]
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
730
|
+
const back = pane?.leading == null && !compactNavigationActive ? bar?.back : void 0;
|
|
731
|
+
let t1;
|
|
732
|
+
if ($[0] !== bar?.compactLeading || $[1] !== bar?.leading || $[2] !== compactNavigationActive || $[3] !== pane) {
|
|
733
|
+
t1 = pane?.leading != null ? /* @__PURE__ */ jsx(React.Fragment, { children: pane.leading }, "pane") : /* @__PURE__ */ jsx(React.Fragment, { children: compactNavigationActive ? bar?.compactLeading : bar?.leading }, "shell");
|
|
734
|
+
$[0] = bar?.compactLeading;
|
|
735
|
+
$[1] = bar?.leading;
|
|
736
|
+
$[2] = compactNavigationActive;
|
|
737
|
+
$[3] = pane;
|
|
738
|
+
$[4] = t1;
|
|
739
|
+
} else t1 = $[4];
|
|
740
|
+
const leading = t1;
|
|
741
|
+
let t2;
|
|
742
|
+
if ($[5] !== bar?.primary || $[6] !== pane) {
|
|
743
|
+
t2 = pane?.primary != null ? /* @__PURE__ */ jsx(React.Fragment, { children: pane.primary }, "pane") : /* @__PURE__ */ jsx(React.Fragment, { children: bar?.primary }, "shell");
|
|
744
|
+
$[5] = bar?.primary;
|
|
745
|
+
$[6] = pane;
|
|
746
|
+
$[7] = t2;
|
|
747
|
+
} else t2 = $[7];
|
|
748
|
+
const primary = t2;
|
|
749
|
+
if (bar?.hidden || !(hasSidebar || [
|
|
397
750
|
bar?.back,
|
|
398
751
|
bar?.leading,
|
|
399
752
|
bar?.compactLeading,
|
|
400
|
-
|
|
753
|
+
title,
|
|
401
754
|
bar?.actions,
|
|
402
755
|
bar?.primary
|
|
403
|
-
].some(
|
|
756
|
+
].some(_temp4) || [
|
|
757
|
+
pane?.leading,
|
|
758
|
+
pane?.actions,
|
|
759
|
+
pane?.primary
|
|
760
|
+
].some(_temp5))) return null;
|
|
761
|
+
const hasLeading = hasSidebar || bar?.back != null || bar?.leading != null || compactLeading != null;
|
|
762
|
+
const hasTrailing = pane?.actions != null || bar?.actions != null || pane?.primary != null || bar?.primary != null;
|
|
763
|
+
const t3 = pane?.label ?? bar?.label ?? "Application controls";
|
|
764
|
+
const t4 = bar?.className;
|
|
765
|
+
const t5 = pane?.className;
|
|
766
|
+
let t6;
|
|
767
|
+
if ($[8] !== t4 || $[9] !== t5) {
|
|
768
|
+
t6 = cx(t4, t5);
|
|
769
|
+
$[8] = t4;
|
|
770
|
+
$[9] = t5;
|
|
771
|
+
$[10] = t6;
|
|
772
|
+
} else t6 = $[10];
|
|
773
|
+
let t7;
|
|
774
|
+
if ($[11] !== back || $[12] !== hasLeading || $[13] !== hasSidebar || $[14] !== isSidebarOpen || $[15] !== leading || $[16] !== sidebarId || $[17] !== sidebarTogglePlacement || $[18] !== toggleLabel || $[19] !== toggleSidebar || $[20] !== toggleTooltip) {
|
|
775
|
+
t7 = hasLeading ? /* @__PURE__ */ jsxs(AppTopBar.Leading, { children: [
|
|
776
|
+
hasSidebar ? /* @__PURE__ */ jsx(AppTopBar.Button, {
|
|
777
|
+
className: cx("responsive-sidebar-shell__toggle", sidebarTogglePlacement === "sidebar" && "responsive-sidebar-shell__toggle--sidebar-fallback"),
|
|
778
|
+
label: toggleLabel,
|
|
779
|
+
tooltip: toggleTooltip,
|
|
780
|
+
type: "button",
|
|
781
|
+
"aria-controls": sidebarId,
|
|
782
|
+
"aria-expanded": isSidebarOpen,
|
|
783
|
+
onClick: (event) => toggleSidebar(event.currentTarget),
|
|
784
|
+
children: /* @__PURE__ */ jsx(SidebarIcon, {})
|
|
785
|
+
}) : null,
|
|
786
|
+
back ? /* @__PURE__ */ jsx(AppTopBar.Link, {
|
|
787
|
+
label: back.label,
|
|
788
|
+
render: back.link,
|
|
789
|
+
children: /* @__PURE__ */ jsx(ArrowLeftIcon, {})
|
|
790
|
+
}) : null,
|
|
791
|
+
leading
|
|
792
|
+
] }) : null;
|
|
793
|
+
$[11] = back;
|
|
794
|
+
$[12] = hasLeading;
|
|
795
|
+
$[13] = hasSidebar;
|
|
796
|
+
$[14] = isSidebarOpen;
|
|
797
|
+
$[15] = leading;
|
|
798
|
+
$[16] = sidebarId;
|
|
799
|
+
$[17] = sidebarTogglePlacement;
|
|
800
|
+
$[18] = toggleLabel;
|
|
801
|
+
$[19] = toggleSidebar;
|
|
802
|
+
$[20] = toggleTooltip;
|
|
803
|
+
$[21] = t7;
|
|
804
|
+
} else t7 = $[21];
|
|
805
|
+
let t8;
|
|
806
|
+
if ($[22] !== bar?.titleRender || $[23] !== compactTitleTrigger || $[24] !== hasTitleTrigger || $[25] !== isSidebarOpen || $[26] !== pane?.titleRender || $[27] !== sidebarId || $[28] !== title || $[29] !== toggleSidebar) {
|
|
807
|
+
t8 = title != null || hasTitleTrigger ? /* @__PURE__ */ jsxs(AppTopBar.Title, {
|
|
808
|
+
render: bar?.titleRender ?? pane?.titleRender,
|
|
809
|
+
children: [title != null ? /* @__PURE__ */ jsx("span", {
|
|
810
|
+
className: "responsive-sidebar-shell__title-text",
|
|
811
|
+
children: title
|
|
812
|
+
}) : null, hasTitleTrigger ? /* @__PURE__ */ jsxs(Button, {
|
|
813
|
+
type: "button",
|
|
814
|
+
variant: "ghost",
|
|
815
|
+
color: "neutral",
|
|
816
|
+
size: "sm",
|
|
817
|
+
className: "responsive-sidebar-shell__title-trigger",
|
|
818
|
+
"aria-controls": sidebarId,
|
|
819
|
+
"aria-expanded": isSidebarOpen,
|
|
820
|
+
onClick: (event_0) => toggleSidebar(event_0.currentTarget),
|
|
821
|
+
children: [compactTitleTrigger, /* @__PURE__ */ jsx(ChevronDownIcon, { "aria-hidden": "true" })]
|
|
822
|
+
}) : null]
|
|
823
|
+
}) : null;
|
|
824
|
+
$[22] = bar?.titleRender;
|
|
825
|
+
$[23] = compactTitleTrigger;
|
|
826
|
+
$[24] = hasTitleTrigger;
|
|
827
|
+
$[25] = isSidebarOpen;
|
|
828
|
+
$[26] = pane?.titleRender;
|
|
829
|
+
$[27] = sidebarId;
|
|
830
|
+
$[28] = title;
|
|
831
|
+
$[29] = toggleSidebar;
|
|
832
|
+
$[30] = t8;
|
|
833
|
+
} else t8 = $[30];
|
|
834
|
+
let t9;
|
|
835
|
+
if ($[31] !== bar?.actions || $[32] !== hasTrailing || $[33] !== pane?.actions || $[34] !== primary) {
|
|
836
|
+
t9 = hasTrailing ? /* @__PURE__ */ jsxs(AppTopBar.Trailing, { children: [
|
|
837
|
+
pane?.actions,
|
|
838
|
+
bar?.actions,
|
|
839
|
+
primary
|
|
840
|
+
] }) : null;
|
|
841
|
+
$[31] = bar?.actions;
|
|
842
|
+
$[32] = hasTrailing;
|
|
843
|
+
$[33] = pane?.actions;
|
|
844
|
+
$[34] = primary;
|
|
845
|
+
$[35] = t9;
|
|
846
|
+
} else t9 = $[35];
|
|
847
|
+
let t10;
|
|
848
|
+
if ($[36] !== barRef || $[37] !== compactLeadingMode || $[38] !== t3 || $[39] !== t6 || $[40] !== t7 || $[41] !== t8 || $[42] !== t9) {
|
|
849
|
+
t10 = /* @__PURE__ */ jsxs(AppTopBar.Root, {
|
|
850
|
+
ref: barRef,
|
|
851
|
+
"aria-label": t3,
|
|
852
|
+
className: t6,
|
|
853
|
+
"data-compact-leading": compactLeadingMode,
|
|
854
|
+
children: [
|
|
855
|
+
t7,
|
|
856
|
+
t8,
|
|
857
|
+
t9
|
|
858
|
+
]
|
|
859
|
+
});
|
|
860
|
+
$[36] = barRef;
|
|
861
|
+
$[37] = compactLeadingMode;
|
|
862
|
+
$[38] = t3;
|
|
863
|
+
$[39] = t6;
|
|
864
|
+
$[40] = t7;
|
|
865
|
+
$[41] = t8;
|
|
866
|
+
$[42] = t9;
|
|
867
|
+
$[43] = t10;
|
|
868
|
+
} else t10 = $[43];
|
|
869
|
+
return t10;
|
|
870
|
+
}
|
|
871
|
+
function _temp5(slot) {
|
|
872
|
+
return slot != null;
|
|
873
|
+
}
|
|
874
|
+
function _temp4(slot_0) {
|
|
875
|
+
return slot_0 != null;
|
|
404
876
|
}
|
|
405
|
-
function SidebarPane(
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
877
|
+
function SidebarPane(t0) {
|
|
878
|
+
const $ = c(10);
|
|
879
|
+
const { id, open, toggle, children } = t0;
|
|
880
|
+
const t1 = open ? void 0 : true;
|
|
881
|
+
const t2 = open ? void 0 : true;
|
|
882
|
+
let t3;
|
|
883
|
+
if ($[0] !== toggle) {
|
|
884
|
+
t3 = toggle ? /* @__PURE__ */ jsx("div", {
|
|
412
885
|
className: "responsive-sidebar-shell__sidebar-leading",
|
|
413
886
|
children: toggle
|
|
414
|
-
}) : null
|
|
887
|
+
}) : null;
|
|
888
|
+
$[0] = toggle;
|
|
889
|
+
$[1] = t3;
|
|
890
|
+
} else t3 = $[1];
|
|
891
|
+
let t4;
|
|
892
|
+
if ($[2] !== children) {
|
|
893
|
+
t4 = /* @__PURE__ */ jsx("div", {
|
|
415
894
|
className: "responsive-sidebar-shell__sidebar-content",
|
|
416
895
|
children
|
|
417
|
-
})
|
|
418
|
-
|
|
896
|
+
});
|
|
897
|
+
$[2] = children;
|
|
898
|
+
$[3] = t4;
|
|
899
|
+
} else t4 = $[3];
|
|
900
|
+
let t5;
|
|
901
|
+
if ($[4] !== id || $[5] !== t1 || $[6] !== t2 || $[7] !== t3 || $[8] !== t4) {
|
|
902
|
+
t5 = /* @__PURE__ */ jsxs("div", {
|
|
903
|
+
id,
|
|
904
|
+
className: "responsive-sidebar-shell__sidebar",
|
|
905
|
+
"aria-hidden": t1,
|
|
906
|
+
inert: t2,
|
|
907
|
+
children: [t3, t4]
|
|
908
|
+
});
|
|
909
|
+
$[4] = id;
|
|
910
|
+
$[5] = t1;
|
|
911
|
+
$[6] = t2;
|
|
912
|
+
$[7] = t3;
|
|
913
|
+
$[8] = t4;
|
|
914
|
+
$[9] = t5;
|
|
915
|
+
} else t5 = $[9];
|
|
916
|
+
return t5;
|
|
419
917
|
}
|
|
420
918
|
//#endregion
|
|
421
919
|
export { ResponsiveSidebarAppBar, ResponsiveSidebarShell, useResponsiveSidebarShell };
|