@mcp-b/react-components 0.49.0 → 0.50.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/{AgentChatQueue-C_Jaw3Ia.d.ts → AgentChatQueue-MrHhV901.d.ts} +1 -1
- package/dist/AgentMessageParts-C7L-Mv9U.d.ts +46 -0
- package/dist/AppTopBar-CVkLRdk7.d.ts +99 -0
- package/dist/{CodeBlock-g8sADidM.js → CodeBlock-BMK6CW9D.js} +1 -1
- package/dist/Dialog-88GF7_Th.d.ts +107 -0
- package/dist/{FileTree-H8mMg4rV.js → FileTree-okaLnS5j.js} +20 -9
- package/dist/Form-CM7GNTwR.d.ts +91 -0
- package/dist/ManagerOffice-5pEFpoV3.js +1146 -0
- package/dist/McpConnectorForm--HB0MEGC.d.ts +39 -0
- package/dist/{Menu-yb6QXWA3.d.ts → Menu-CgfUZhZd.d.ts} +1 -1
- package/dist/Popover-CgHG5DtS.d.ts +220 -0
- package/dist/{PromptInput-C4Mofitz.d.ts → PromptInput-DGPrCTPl.d.ts} +3 -2
- package/dist/ResponsiveSidebarShell-CAmmtQTR.d.ts +128 -0
- package/dist/SessionCompaction-CmTJFpzj.d.ts +89 -0
- package/dist/SetupChecklist-O6qmgwz4.js +77 -0
- package/dist/ThinkChatActivity-DENkintt.d.ts +77 -0
- package/dist/ThinkChatContext-COIgzkYp.d.ts +28 -0
- package/dist/ThinkRoutine-Cb1DdaHa.d.ts +30 -0
- package/dist/ThinkThreadPicker-yetGX_s5.d.ts +91 -0
- package/dist/{WorkspaceFileView-DYPtRVpM.js → WorkspaceFileView-ncZuIWhC.js} +2 -2
- package/dist/WorkspaceMessageResponse-8lOSAbw_.d.ts +48 -0
- package/dist/codex-model-catalog-BBN_gWcc.d.ts +155 -0
- package/dist/components/agents-sdk/AgentActivity.js +1 -1
- package/dist/components/agents-sdk/AgentChat.d.ts +3 -3
- package/dist/components/agents-sdk/AgentChat.js +8 -8
- package/dist/components/agents-sdk/AgentChatQueue.d.ts +1 -1
- package/dist/components/agents-sdk/AgentEvent.js +2 -2
- package/dist/components/agents-sdk/BrowserLiveScreen.js +1 -1
- package/dist/components/agents-sdk/BrowserLiveView.js +1 -1
- package/dist/components/agents-sdk/BrowserReplay.js +1 -1
- package/dist/components/agents-sdk/BrowserRunPanel.js +1 -1
- package/dist/components/agents-sdk/DiscordConnectionDialog.d.ts +20 -0
- package/dist/components/agents-sdk/DiscordConnectionDialog.js +65 -0
- package/dist/components/agents-sdk/EmployeeApp.d.ts +49 -0
- package/dist/components/agents-sdk/EmployeeApp.js +57 -0
- package/dist/components/agents-sdk/EmployeeChat.d.ts +63 -0
- package/dist/components/agents-sdk/EmployeeChat.js +84 -0
- package/dist/components/agents-sdk/EmployeeChrome.d.ts +10 -2
- package/dist/components/agents-sdk/EmployeeChrome.js +26 -16
- package/dist/components/agents-sdk/EmployeeSchedules.d.ts +24 -0
- package/dist/components/agents-sdk/EmployeeSchedules.js +105 -0
- package/dist/components/agents-sdk/EmployeeStartScreen.d.ts +43 -0
- package/dist/components/agents-sdk/EmployeeStartScreen.js +133 -0
- package/dist/components/agents-sdk/ManagerAccountActions.d.ts +29 -0
- package/dist/components/agents-sdk/ManagerAccountActions.js +62 -0
- package/dist/components/agents-sdk/ManagerOffice.d.ts +1 -1
- package/dist/components/agents-sdk/ManagerOffice.js +1 -1145
- package/dist/components/agents-sdk/ManagerOfficeScreens.d.ts +49 -0
- package/dist/components/agents-sdk/ManagerOfficeScreens.js +198 -0
- package/dist/components/agents-sdk/McpConnectionRequest.d.ts +1 -1
- package/dist/components/agents-sdk/McpConnectionRequest.js +3 -3
- package/dist/components/agents-sdk/McpConnectorForm.d.ts +1 -38
- package/dist/components/agents-sdk/McpConnectorForm.js +1 -1
- package/dist/components/agents-sdk/McpPluginCatalog.d.ts +3 -3
- package/dist/components/agents-sdk/McpPluginCatalog.js +4 -4
- package/dist/components/agents-sdk/McpServerIcon.d.ts +1 -1
- package/dist/components/agents-sdk/McpServerPicker.d.ts +4 -4
- package/dist/components/agents-sdk/McpServerPicker.js +2 -2
- package/dist/components/agents-sdk/ModelEndpointDialog.d.ts +31 -0
- package/dist/components/agents-sdk/ModelEndpointDialog.js +118 -0
- package/dist/components/agents-sdk/ModelSelector.d.ts +1 -1
- package/dist/components/agents-sdk/ModelSelector.js +4 -4
- package/dist/components/agents-sdk/PromptInputApproval.js +1 -1
- package/dist/components/agents-sdk/PromptInputCommands.d.ts +1 -1
- package/dist/components/agents-sdk/PromptInputCommands.js +1 -1
- package/dist/components/agents-sdk/SessionCompaction.d.ts +1 -88
- package/dist/components/agents-sdk/SlackConnectionDialog.d.ts +18 -0
- package/dist/components/agents-sdk/SlackConnectionDialog.js +48 -0
- package/dist/components/agents-sdk/SubagentRunIndicator.js +1 -1
- package/dist/components/agents-sdk/SubagentRunPanel.js +1 -1
- package/dist/components/agents-sdk/SubagentRunSelector.js +1 -1
- package/dist/components/agents-sdk/ThinkChat.d.ts +6 -6
- package/dist/components/agents-sdk/ThinkChatActivity.d.ts +1 -76
- package/dist/components/agents-sdk/ThinkChatActivity.js +3 -3
- package/dist/components/agents-sdk/ThinkChatContext.d.ts +1 -27
- package/dist/components/agents-sdk/ThinkChatToolPanels.js +2 -2
- package/dist/components/agents-sdk/ThinkExecutionDetail.js +2 -2
- package/dist/components/agents-sdk/ThinkExecutionStatus.js +1 -1
- package/dist/components/agents-sdk/ThinkExecutionWorkbench.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkExecutionWorkbench.js +3 -3
- package/dist/components/agents-sdk/ThinkRecoveryNotice.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkRecoveryNotice.js +1 -1
- package/dist/components/agents-sdk/ThinkRoutine.d.ts +1 -29
- package/dist/components/agents-sdk/ThinkRoutineActions.d.ts +2 -2
- package/dist/components/agents-sdk/ThinkRoutineActions.js +1 -1
- package/dist/components/agents-sdk/ThinkRoutineBrowser.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkRoutineBrowser.js +3 -3
- package/dist/components/agents-sdk/ThinkRoutineDetail.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkRoutineForm.js +4 -4
- package/dist/components/agents-sdk/ThinkRoutineRuns.js +1 -1
- package/dist/components/agents-sdk/ThinkThreadPicker.d.ts +1 -90
- package/dist/components/agents-sdk/ThinkThreadPicker.js +3 -3
- package/dist/components/agents-sdk/WorkspaceBrowser.js +1 -1
- package/dist/components/agents-sdk/WorkspaceCorrespondence.js +6 -6
- package/dist/components/agents-sdk/WorkspaceExecution.js +7 -7
- package/dist/components/agents-sdk/WorkspaceExplorer.js +1 -1
- package/dist/components/agents-sdk/WorkspaceFileView.js +1 -1
- package/dist/components/agents-sdk/WorkspaceHeader.js +1 -1
- package/dist/components/agents-sdk/WorkspaceMessageResponse.d.ts +1 -47
- package/dist/components/agents-sdk/WorkspaceMountManager.js +2 -2
- package/dist/components/agents-sdk/WorkspaceProject.js +4 -4
- package/dist/components/agents-sdk/WorkspaceUserScript.js +4 -4
- package/dist/components/ai-sdk/Activity.js +1 -1
- package/dist/components/ai-sdk/AgentChatMessageEditor.js +5 -1
- package/dist/components/ai-sdk/AgentChatStartScreen.d.ts +1 -1
- package/dist/components/ai-sdk/AgentChatStartScreen.js +1 -1
- package/dist/components/ai-sdk/AgentMessageParts.d.ts +1 -45
- package/dist/components/ai-sdk/Approval.js +2 -2
- package/dist/components/ai-sdk/Artifact.js +1 -1
- package/dist/components/ai-sdk/ChainOfThought.js +1 -1
- package/dist/components/ai-sdk/Checkpoint.js +1 -1
- package/dist/components/ai-sdk/CodeBlock.js +1 -1
- package/dist/components/ai-sdk/ComposerLink.js +1 -1
- package/dist/components/ai-sdk/ConnectedAppCards.js +3 -3
- package/dist/components/ai-sdk/Context.d.ts +1 -1
- package/dist/components/ai-sdk/Context.js +1 -1
- package/dist/components/ai-sdk/Conversation.js +1 -1
- package/dist/components/ai-sdk/Goal.js +1 -1
- package/dist/components/ai-sdk/MediaPreviewCard.js +1 -1
- package/dist/components/ai-sdk/Message.js +2 -2
- package/dist/components/ai-sdk/MessageScroller.js +1 -1
- package/dist/components/ai-sdk/MessageScrollerVirtual.js +2 -1
- package/dist/components/ai-sdk/Plan.d.ts +1 -1
- package/dist/components/ai-sdk/Plan.js +1 -1
- package/dist/components/ai-sdk/PromptInput.d.ts +1 -1
- package/dist/components/ai-sdk/PromptInput.js +7 -7
- package/dist/components/ai-sdk/Queue.js +1 -1
- package/dist/components/ai-sdk/Reasoning.js +1 -1
- package/dist/components/ai-sdk/Sources.js +1 -1
- package/dist/components/ai-sdk/Task.js +1 -1
- package/dist/components/extension/ChatGptSignInScreen.js +1 -1
- package/dist/components/extension/CodexModelSelector.d.ts +2 -2
- package/dist/components/extension/CodexModelSelector.js +3 -3
- package/dist/components/extension/ConversationTabPicker.js +2 -2
- package/dist/components/foundations/Checkbox.js +1 -1
- package/dist/components/foundations/Collapsible.js +1 -1
- package/dist/components/foundations/ContextMenu.d.ts +10 -23
- package/dist/components/foundations/ContextMenu.js +3 -2
- package/dist/components/foundations/Dialog.d.ts +1 -106
- package/dist/components/foundations/Form.d.ts +1 -90
- package/dist/components/foundations/Menu.d.ts +1 -1
- package/dist/components/foundations/Menubar.d.ts +1 -1
- package/dist/components/foundations/Menubar.js +1 -1
- package/dist/components/foundations/Popover.d.ts +1 -219
- package/dist/components/foundations/PreviewCard.d.ts +1 -1
- package/dist/components/foundations/SearchField.js +1 -1
- package/dist/components/foundations/Select.js +1 -1
- package/dist/components/foundations/Stepper.js +1 -1
- package/dist/components/foundations/Toast.js +1 -1
- package/dist/components/foundations/ToggleGroup.d.ts +1 -1
- package/dist/components/foundations/ToggleGroup.js +1 -1
- package/dist/components/foundations/Tooltip.d.ts +1 -1
- package/dist/components/foundations/icons.js +1 -1
- package/dist/components/general-purpose/AccountSignInDialog.d.ts +26 -0
- package/dist/components/general-purpose/AccountSignInDialog.js +25 -0
- package/dist/components/general-purpose/AppTopBar.d.ts +1 -98
- package/dist/components/general-purpose/Commit.js +2 -2
- package/dist/components/general-purpose/EnvironmentVariables.js +2 -2
- package/dist/components/general-purpose/FileTree.js +1 -1
- package/dist/components/general-purpose/NotificationPrompt.d.ts +13 -0
- package/dist/components/general-purpose/NotificationPrompt.js +18 -0
- package/dist/components/general-purpose/PricingPlanCard.js +2 -2
- package/dist/components/general-purpose/PricingUsageCalculator.js +2 -2
- package/dist/components/general-purpose/ResponsiveSidebarShell.d.ts +1 -127
- package/dist/components/general-purpose/ResponsiveSidebarShell.js +124 -72
- package/dist/components/general-purpose/SettingsFormDialog.d.ts +2 -2
- package/dist/components/general-purpose/SettingsFormDialog.js +2 -2
- package/dist/components/general-purpose/SetupChecklist.js +1 -76
- package/dist/components/general-purpose/StatusScreen.d.ts +10 -0
- package/dist/components/general-purpose/StatusScreen.js +13 -0
- package/dist/components/general-purpose/Terminal.js +2 -2
- package/dist/components/general-purpose/TestResults.js +1 -1
- package/dist/components/general-purpose/ThemeModeControl.js +2 -2
- package/dist/components/general-purpose/WebPreview.js +2 -2
- package/dist/components/nanites/AgentConnection.js +2 -2
- package/dist/components/nanites/AgentToolDetail.d.ts +1 -1
- package/dist/components/nanites/AgentToolDetail.js +4 -4
- package/dist/{copy-button-CSDuDfdP.js → copy-button-Dk2vRe9j.js} +1 -1
- package/dist/mcp-server-catalog-D9p4gGeJ.d.ts +1112 -0
- package/dist/styles/accessibility.css +20 -0
- package/dist/styles/agent-chat.css +1 -1
- package/dist/styles/base.css +0 -8
- package/dist/styles/codex-model-selector.css +4 -0
- package/dist/styles/color-contrast.test.ts +212 -0
- package/dist/styles/employee-app.css +29 -0
- package/dist/styles/file-tree.css +5 -1
- package/dist/styles/index.css +2 -0
- package/dist/styles/manager-office.css +5 -5
- package/dist/styles/manager-work.css +93 -0
- package/dist/styles/responsive-sidebar-shell.css +1 -1
- package/dist/utils/codex-model-catalog.d.ts +1 -135
- package/dist/utils/codex-model-catalog.js +22 -5
- package/dist/utils/mcp-server-catalog.d.ts +1 -1111
- package/dist/{workspace-assets-Bg7XhPsk.js → workspace-assets-wW_lQLYK.js} +2 -2
- package/package.json +3 -3
- package/dist/{icons-cuEtsgj9.js → icons-CeGfXO21.js} +1 -1
|
@@ -5,7 +5,15 @@ import { ContextMenu as ContextMenu$1 } from "@base-ui/react/context-menu";
|
|
|
5
5
|
/**
|
|
6
6
|
* Props for the ContextMenu.Root component.
|
|
7
7
|
*/
|
|
8
|
-
interface ContextMenuProps extends ContextMenu$1.Root.Props {
|
|
8
|
+
interface ContextMenuProps extends ContextMenu$1.Root.Props {
|
|
9
|
+
/** Trigger and popup composition rendered within the context menu. */
|
|
10
|
+
children?: ContextMenu$1.Root.Props["children"];
|
|
11
|
+
/**
|
|
12
|
+
* Has no effect on context menus.
|
|
13
|
+
* @deprecated This upstream prop has no effect on Context Menu.
|
|
14
|
+
*/
|
|
15
|
+
closeParentOnEsc?: ContextMenu$1.Root.Props["closeParentOnEsc"];
|
|
16
|
+
}
|
|
9
17
|
/**
|
|
10
18
|
* Props for the ContextMenu.Trigger component.
|
|
11
19
|
*/
|
|
@@ -45,27 +53,6 @@ interface ContextMenuSubmenuRootProps extends ContextMenu$1.SubmenuRoot.Props {}
|
|
|
45
53
|
interface ContextMenuSubmenuTriggerProps extends React.ComponentPropsWithRef<typeof ContextMenu$1.SubmenuTrigger> {
|
|
46
54
|
inset?: boolean;
|
|
47
55
|
}
|
|
48
|
-
/**
|
|
49
|
-
* Root component that manages context menu state.
|
|
50
|
-
*
|
|
51
|
-
* @example
|
|
52
|
-
* ```tsx
|
|
53
|
-
* <ContextMenu.Root>
|
|
54
|
-
* <ContextMenu.Trigger>Right click here</ContextMenu.Trigger>
|
|
55
|
-
* <ContextMenu.Portal>
|
|
56
|
-
* <ContextMenu.Positioner>
|
|
57
|
-
* <ContextMenu.Popup>
|
|
58
|
-
* <ContextMenu.Item>Cut</ContextMenu.Item>
|
|
59
|
-
* <ContextMenu.Item>Copy</ContextMenu.Item>
|
|
60
|
-
* <ContextMenu.Item>Paste</ContextMenu.Item>
|
|
61
|
-
* </ContextMenu.Popup>
|
|
62
|
-
* </ContextMenu.Positioner>
|
|
63
|
-
* </ContextMenu.Portal>
|
|
64
|
-
* </ContextMenu.Root>
|
|
65
|
-
* ```
|
|
66
|
-
*
|
|
67
|
-
* @see {@link https://base-ui.com/react/components/context-menu | Base UI ContextMenu}
|
|
68
|
-
*/
|
|
69
56
|
/** Interactive area that activates the menu on right-click or long-press. */
|
|
70
57
|
declare function ContextMenuTrigger({
|
|
71
58
|
className,
|
|
@@ -183,7 +170,7 @@ declare function ContextMenuSubmenuTrigger({
|
|
|
183
170
|
* @see {@link https://base-ui.com/react/components/context-menu | Base UI ContextMenu}
|
|
184
171
|
*/
|
|
185
172
|
declare const ContextMenu: {
|
|
186
|
-
Root:
|
|
173
|
+
Root: (props: ContextMenuProps) => React.JSX.Element;
|
|
187
174
|
Trigger: typeof ContextMenuTrigger;
|
|
188
175
|
Portal: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").ContextMenuPortalProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
189
176
|
Positioner: typeof ContextMenuPositioner;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as mergeBaseClassName, t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { _ as DotIcon, d as CheckIcon } from "../../icons-
|
|
2
|
+
import { _ as DotIcon, d as CheckIcon } from "../../icons-CeGfXO21.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
import { ContextMenu as ContextMenu$1 } from "@base-ui/react/context-menu";
|
|
@@ -25,6 +25,7 @@ import { ContextMenu as ContextMenu$1 } from "@base-ui/react/context-menu";
|
|
|
25
25
|
*
|
|
26
26
|
* @see {@link https://base-ui.com/react/components/context-menu | Base UI ContextMenu}
|
|
27
27
|
*/
|
|
28
|
+
const ContextMenuRoot = ContextMenu$1.Root;
|
|
28
29
|
/** Interactive area that activates the menu on right-click or long-press. */
|
|
29
30
|
function ContextMenuTrigger({ className, ref, ...props }) {
|
|
30
31
|
const classes = mergeBaseClassName("context-menu__trigger", className);
|
|
@@ -195,7 +196,7 @@ function ContextMenuSubmenuTrigger({ className, inset, ref, ...props }) {
|
|
|
195
196
|
* @see {@link https://base-ui.com/react/components/context-menu | Base UI ContextMenu}
|
|
196
197
|
*/
|
|
197
198
|
const ContextMenu = {
|
|
198
|
-
Root:
|
|
199
|
+
Root: ContextMenuRoot,
|
|
199
200
|
Trigger: ContextMenuTrigger,
|
|
200
201
|
Portal: ContextMenu$1.Portal,
|
|
201
202
|
Positioner: ContextMenuPositioner,
|
|
@@ -1,107 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Dialog as Dialog$1 } from "@base-ui/react/dialog";
|
|
3
|
-
|
|
4
|
-
//#region src/components/foundations/Dialog.d.ts
|
|
5
|
-
type DialogProps<Payload = unknown> = Dialog$1.Root.Props<Payload>;
|
|
6
|
-
type DialogTriggerProps<Payload = unknown> = Dialog$1.Trigger.Props<Payload> & React.RefAttributes<HTMLElement>;
|
|
7
|
-
interface DialogPortalProps extends React.ComponentPropsWithRef<typeof Dialog$1.Portal> {}
|
|
8
|
-
interface DialogBackdropProps extends React.ComponentPropsWithRef<typeof Dialog$1.Backdrop> {}
|
|
9
|
-
interface DialogViewportProps extends React.ComponentPropsWithRef<typeof Dialog$1.Viewport> {}
|
|
10
|
-
interface DialogPopupProps extends React.ComponentPropsWithRef<typeof Dialog$1.Popup> {
|
|
11
|
-
/**
|
|
12
|
-
* The size of the dialog.
|
|
13
|
-
* @default 'md'
|
|
14
|
-
*/
|
|
15
|
-
size?: "sm" | "md" | "lg" | "fullscreen";
|
|
16
|
-
}
|
|
17
|
-
interface DialogTitleProps extends React.ComponentPropsWithRef<typeof Dialog$1.Title> {}
|
|
18
|
-
interface DialogDescriptionProps extends React.ComponentPropsWithRef<typeof Dialog$1.Description> {}
|
|
19
|
-
interface DialogCloseProps extends React.ComponentPropsWithRef<typeof Dialog$1.Close> {}
|
|
20
|
-
interface DialogHeaderProps extends React.ComponentPropsWithRef<"div"> {}
|
|
21
|
-
interface DialogFooterProps extends React.ComponentPropsWithRef<"div"> {}
|
|
22
|
-
/**
|
|
23
|
-
* A dialog component for modal interactions.
|
|
24
|
-
*
|
|
25
|
-
* @example
|
|
26
|
-
* ```tsx
|
|
27
|
-
* <Dialog.Root open={isOpen} onOpenChange={setIsOpen}>
|
|
28
|
-
* <Dialog.Trigger render={<Button />}>Open</Dialog.Trigger>
|
|
29
|
-
* <Dialog.Portal>
|
|
30
|
-
* <Dialog.Backdrop />
|
|
31
|
-
* <Dialog.Viewport>
|
|
32
|
-
* <Dialog.Popup>
|
|
33
|
-
* <Dialog.Title>Confirm</Dialog.Title>
|
|
34
|
-
* <Dialog.Description>Are you sure?</Dialog.Description>
|
|
35
|
-
* <Dialog.Close>Cancel</Dialog.Close>
|
|
36
|
-
* </Dialog.Popup>
|
|
37
|
-
* </Dialog.Viewport>
|
|
38
|
-
* </Dialog.Portal>
|
|
39
|
-
* </Dialog.Root>
|
|
40
|
-
* ```
|
|
41
|
-
*
|
|
42
|
-
* @see {@link https://base-ui.com/react/components/dialog | Base UI Dialog}
|
|
43
|
-
*/
|
|
44
|
-
declare function DialogTrigger<Payload>({
|
|
45
|
-
render,
|
|
46
|
-
className,
|
|
47
|
-
ref,
|
|
48
|
-
...props
|
|
49
|
-
}: DialogTriggerProps<Payload>): React.JSX.Element;
|
|
50
|
-
declare function DialogBackdrop({
|
|
51
|
-
className,
|
|
52
|
-
ref,
|
|
53
|
-
...props
|
|
54
|
-
}: DialogBackdropProps): React.JSX.Element;
|
|
55
|
-
declare function DialogViewport({
|
|
56
|
-
className,
|
|
57
|
-
ref,
|
|
58
|
-
...props
|
|
59
|
-
}: DialogViewportProps): React.JSX.Element;
|
|
60
|
-
declare function DialogPopup({
|
|
61
|
-
size,
|
|
62
|
-
className,
|
|
63
|
-
ref,
|
|
64
|
-
...props
|
|
65
|
-
}: DialogPopupProps): React.JSX.Element;
|
|
66
|
-
declare function DialogHeader({
|
|
67
|
-
className,
|
|
68
|
-
ref,
|
|
69
|
-
...props
|
|
70
|
-
}: DialogHeaderProps): React.JSX.Element;
|
|
71
|
-
declare function DialogFooter({
|
|
72
|
-
className,
|
|
73
|
-
ref,
|
|
74
|
-
...props
|
|
75
|
-
}: DialogFooterProps): React.JSX.Element;
|
|
76
|
-
declare function DialogTitle({
|
|
77
|
-
className,
|
|
78
|
-
ref,
|
|
79
|
-
...props
|
|
80
|
-
}: DialogTitleProps): React.JSX.Element;
|
|
81
|
-
declare function DialogDescription({
|
|
82
|
-
className,
|
|
83
|
-
ref,
|
|
84
|
-
...props
|
|
85
|
-
}: DialogDescriptionProps): React.JSX.Element;
|
|
86
|
-
declare function DialogClose({
|
|
87
|
-
render,
|
|
88
|
-
className,
|
|
89
|
-
ref,
|
|
90
|
-
...props
|
|
91
|
-
}: DialogCloseProps): React.JSX.Element;
|
|
92
|
-
declare const Dialog: {
|
|
93
|
-
Root: typeof Dialog$1.Root;
|
|
94
|
-
Trigger: typeof DialogTrigger;
|
|
95
|
-
Portal: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").AlertDialogPortalProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
96
|
-
Backdrop: typeof DialogBackdrop;
|
|
97
|
-
Viewport: typeof DialogViewport;
|
|
98
|
-
Popup: typeof DialogPopup;
|
|
99
|
-
Header: typeof DialogHeader;
|
|
100
|
-
Footer: typeof DialogFooter;
|
|
101
|
-
Title: typeof DialogTitle;
|
|
102
|
-
Description: typeof DialogDescription;
|
|
103
|
-
Close: typeof DialogClose;
|
|
104
|
-
createHandle: typeof Dialog$1.createHandle;
|
|
105
|
-
};
|
|
106
|
-
//#endregion
|
|
1
|
+
import { a as DialogFooterProps, c as DialogPortalProps, d as DialogTriggerProps, f as DialogViewportProps, i as DialogDescriptionProps, l as DialogProps, n as DialogBackdropProps, o as DialogHeaderProps, r as DialogCloseProps, s as DialogPopupProps, t as Dialog, u as DialogTitleProps } from "../../Dialog-88GF7_Th.js";
|
|
107
2
|
export { Dialog, DialogBackdropProps, DialogCloseProps, DialogDescriptionProps, DialogFooterProps, DialogHeaderProps, DialogPopupProps, DialogPortalProps, DialogProps, DialogTitleProps, DialogTriggerProps, DialogViewportProps };
|
|
@@ -1,91 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Form as Form$1 } from "@base-ui/react/form";
|
|
3
|
-
|
|
4
|
-
//#region src/components/foundations/Form.d.ts
|
|
5
|
-
/**
|
|
6
|
-
* Props for the Form component.
|
|
7
|
-
*/
|
|
8
|
-
interface FormProps<Values extends Record<string, unknown> = Record<string, unknown>> extends React.ComponentPropsWithoutRef<typeof Form$1<Values>> {}
|
|
9
|
-
/**
|
|
10
|
-
* A form component that provides consolidated error handling and validation
|
|
11
|
-
* for form controls. Works seamlessly with the Field component.
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```tsx
|
|
15
|
-
* // Basic usage with Field components
|
|
16
|
-
* <Form onFormSubmit={(values) => console.log(values)}>
|
|
17
|
-
* <Field.Root name="username">
|
|
18
|
-
* <Field.Label>Username</Field.Label>
|
|
19
|
-
* <Field.Control required />
|
|
20
|
-
* <Field.Error match="valueMissing">Username is required</Field.Error>
|
|
21
|
-
* </Field.Root>
|
|
22
|
-
*
|
|
23
|
-
* <Field.Root name="email">
|
|
24
|
-
* <Field.Label>Email</Field.Label>
|
|
25
|
-
* <Field.Control type="email" required />
|
|
26
|
-
* <Field.Error match="valueMissing">Email is required</Field.Error>
|
|
27
|
-
* <Field.Error match="typeMismatch">Invalid email format</Field.Error>
|
|
28
|
-
* </Field.Root>
|
|
29
|
-
*
|
|
30
|
-
* <Button type="submit">Submit</Button>
|
|
31
|
-
* </Form>
|
|
32
|
-
* ```
|
|
33
|
-
*
|
|
34
|
-
* @example
|
|
35
|
-
* ```tsx
|
|
36
|
-
* // With external/server errors
|
|
37
|
-
* const [errors, setErrors] = useState({});
|
|
38
|
-
*
|
|
39
|
-
* async function handleSubmit(values) {
|
|
40
|
-
* const result = await api.submit(values);
|
|
41
|
-
* if (result.errors) {
|
|
42
|
-
* setErrors(result.errors); // { email: "Already registered" }
|
|
43
|
-
* }
|
|
44
|
-
* }
|
|
45
|
-
*
|
|
46
|
-
* <Form errors={errors} onFormSubmit={handleSubmit}>
|
|
47
|
-
* <Field.Root name="email">
|
|
48
|
-
* <Field.Control type="email" />
|
|
49
|
-
* <Field.Error />
|
|
50
|
-
* </Field.Root>
|
|
51
|
-
* </Form>
|
|
52
|
-
* ```
|
|
53
|
-
*
|
|
54
|
-
* @example
|
|
55
|
-
* ```tsx
|
|
56
|
-
* // Native submit handlers remain native, so TanStack Form can own state.
|
|
57
|
-
* <Form
|
|
58
|
-
* onSubmit={(event) => {
|
|
59
|
-
* event.preventDefault();
|
|
60
|
-
* void form.handleSubmit();
|
|
61
|
-
* }}
|
|
62
|
-
* >
|
|
63
|
-
* ...
|
|
64
|
-
* </Form>
|
|
65
|
-
* ```
|
|
66
|
-
*
|
|
67
|
-
* @example
|
|
68
|
-
* ```tsx
|
|
69
|
-
* // With validation modes
|
|
70
|
-
* // Fields validate when they lose focus
|
|
71
|
-
* <Form validationMode="onBlur">
|
|
72
|
-
* ...
|
|
73
|
-
* </Form>
|
|
74
|
-
*
|
|
75
|
-
* // Fields validate as user types
|
|
76
|
-
* <Form validationMode="onChange">
|
|
77
|
-
* ...
|
|
78
|
-
* </Form>
|
|
79
|
-
* ```
|
|
80
|
-
*
|
|
81
|
-
* @see {@link https://base-ui.com/react/components/form | Base UI Form}
|
|
82
|
-
*/
|
|
83
|
-
declare function Form<Values extends Record<string, unknown> = Record<string, unknown>>({
|
|
84
|
-
className,
|
|
85
|
-
ref,
|
|
86
|
-
...props
|
|
87
|
-
}: FormProps<Values> & {
|
|
88
|
-
/** Ref forwarded to the component's rendered root element. */ref?: React.Ref<HTMLFormElement>;
|
|
89
|
-
}): React.JSX.Element;
|
|
90
|
-
//#endregion
|
|
1
|
+
import { n as FormProps, t as Form } from "../../Form-CM7GNTwR.js";
|
|
91
2
|
export { Form, FormProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as MenuSubmenuRootProps, a as MenuGroupLabelProps, b as MenuViewportProps, c as MenuPopupProps, d as MenuProps, f as MenuRadioGroupProps, g as MenuShortcutProps, h as MenuSeparatorProps, i as MenuCheckboxItemProps, l as MenuPortalProps, m as MenuRadioItemProps, n as MenuArrowProps, o as MenuGroupProps, p as MenuRadioItemIndicatorProps, r as MenuCheckboxItemIndicatorProps, s as MenuItemProps, t as Menu, u as MenuPositionerProps, v as MenuSubmenuTriggerProps, y as MenuTriggerProps } from "../../Menu-
|
|
1
|
+
import { _ as MenuSubmenuRootProps, a as MenuGroupLabelProps, b as MenuViewportProps, c as MenuPopupProps, d as MenuProps, f as MenuRadioGroupProps, g as MenuShortcutProps, h as MenuSeparatorProps, i as MenuCheckboxItemProps, l as MenuPortalProps, m as MenuRadioItemProps, n as MenuArrowProps, o as MenuGroupProps, p as MenuRadioItemIndicatorProps, r as MenuCheckboxItemIndicatorProps, s as MenuItemProps, t as Menu, u as MenuPositionerProps, v as MenuSubmenuTriggerProps, y as MenuTriggerProps } from "../../Menu-CgfUZhZd.js";
|
|
2
2
|
export { Menu, MenuArrowProps, MenuCheckboxItemIndicatorProps, MenuCheckboxItemProps, MenuGroupLabelProps, MenuGroupProps, MenuItemProps, MenuPopupProps, MenuPortalProps, MenuPositionerProps, MenuProps, MenuRadioGroupProps, MenuRadioItemIndicatorProps, MenuRadioItemProps, MenuSeparatorProps, MenuShortcutProps, MenuSubmenuRootProps, MenuSubmenuTriggerProps, MenuTriggerProps, MenuViewportProps };
|
|
@@ -225,7 +225,7 @@ declare function MenubarSubmenuTrigger({
|
|
|
225
225
|
*/
|
|
226
226
|
declare const Menubar: {
|
|
227
227
|
Root: typeof MenubarRoot;
|
|
228
|
-
Menu: <Payload>(props: Menu.Root.Props<Payload>) =>
|
|
228
|
+
Menu: <Payload>(props: Menu.Root.Props<Payload>) => React.JSX.Element;
|
|
229
229
|
Trigger: typeof MenubarTrigger;
|
|
230
230
|
Portal: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").ContextMenuPortalProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
231
231
|
Positioner: typeof MenubarPositioner;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as mergeBaseClassName, t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { _ as DotIcon, d as CheckIcon } from "../../icons-
|
|
2
|
+
import { _ as DotIcon, d as CheckIcon } from "../../icons-CeGfXO21.js";
|
|
3
3
|
import { buttonVariants } from "./Button.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -1,220 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Popover as Popover$1 } from "@base-ui/react/popover";
|
|
3
|
-
|
|
4
|
-
//#region src/components/foundations/Popover.d.ts
|
|
5
|
-
/**
|
|
6
|
-
* Props for the Popover.Root component.
|
|
7
|
-
*/
|
|
8
|
-
type PopoverProps<Payload = unknown> = Popover$1.Root.Props<Payload>;
|
|
9
|
-
/**
|
|
10
|
-
* Props for the Popover.Trigger component.
|
|
11
|
-
*/
|
|
12
|
-
type PopoverTriggerProps<Payload = unknown> = Popover$1.Trigger.Props<Payload> & React.RefAttributes<HTMLElement> & {
|
|
13
|
-
/** Keep Base UI trigger behavior without the default popover trigger chrome. */unstyled?: boolean;
|
|
14
|
-
};
|
|
15
|
-
/**
|
|
16
|
-
* Props for the Popover.Portal component.
|
|
17
|
-
*/
|
|
18
|
-
interface PopoverPortalProps extends React.ComponentPropsWithoutRef<typeof Popover$1.Portal> {}
|
|
19
|
-
/**
|
|
20
|
-
* Props for the Popover.Backdrop component.
|
|
21
|
-
*/
|
|
22
|
-
interface PopoverBackdropProps extends React.ComponentPropsWithoutRef<typeof Popover$1.Backdrop> {}
|
|
23
|
-
/**
|
|
24
|
-
* Props for the Popover.Positioner component.
|
|
25
|
-
*/
|
|
26
|
-
interface PopoverPositionerProps extends React.ComponentPropsWithoutRef<typeof Popover$1.Positioner> {}
|
|
27
|
-
/**
|
|
28
|
-
* Props for the Popover.Popup component.
|
|
29
|
-
*/
|
|
30
|
-
interface PopoverPopupProps extends React.ComponentPropsWithoutRef<typeof Popover$1.Popup> {}
|
|
31
|
-
/**
|
|
32
|
-
* Props for the Popover.Viewport component. Use this only when one popover
|
|
33
|
-
* moves between triggers and its content changes during that transition.
|
|
34
|
-
*/
|
|
35
|
-
interface PopoverViewportProps extends React.ComponentPropsWithoutRef<typeof Popover$1.Viewport> {}
|
|
36
|
-
/**
|
|
37
|
-
* Props for the Popover.Arrow component.
|
|
38
|
-
*/
|
|
39
|
-
interface PopoverArrowProps extends React.ComponentPropsWithoutRef<typeof Popover$1.Arrow> {}
|
|
40
|
-
/**
|
|
41
|
-
* Props for the Popover.Title component.
|
|
42
|
-
*/
|
|
43
|
-
interface PopoverTitleProps extends React.ComponentPropsWithoutRef<typeof Popover$1.Title> {}
|
|
44
|
-
/**
|
|
45
|
-
* Props for the Popover.Description component.
|
|
46
|
-
*/
|
|
47
|
-
interface PopoverDescriptionProps extends React.ComponentPropsWithoutRef<typeof Popover$1.Description> {}
|
|
48
|
-
/**
|
|
49
|
-
* Props for the Popover.Close component.
|
|
50
|
-
*/
|
|
51
|
-
interface PopoverCloseProps extends React.ComponentPropsWithoutRef<typeof Popover$1.Close> {}
|
|
52
|
-
interface PopoverHeaderProps extends React.HTMLAttributes<HTMLDivElement> {}
|
|
53
|
-
/**
|
|
54
|
-
* Button that toggles the popover visibility.
|
|
55
|
-
* Renders a `<button>` element.
|
|
56
|
-
*/
|
|
57
|
-
declare function PopoverTrigger<Payload>({
|
|
58
|
-
className,
|
|
59
|
-
unstyled,
|
|
60
|
-
ref,
|
|
61
|
-
...props
|
|
62
|
-
}: PopoverTriggerProps<Payload>): React.JSX.Element;
|
|
63
|
-
/**
|
|
64
|
-
* Optional backdrop that appears behind the popover.
|
|
65
|
-
*/
|
|
66
|
-
declare function PopoverBackdrop({
|
|
67
|
-
className,
|
|
68
|
-
ref,
|
|
69
|
-
...props
|
|
70
|
-
}: PopoverBackdropProps & {
|
|
71
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
72
|
-
}): React.JSX.Element;
|
|
73
|
-
/**
|
|
74
|
-
* Positions the popup relative to the trigger element.
|
|
75
|
-
*
|
|
76
|
-
* @example
|
|
77
|
-
* ```tsx
|
|
78
|
-
* // Position on the right with offset
|
|
79
|
-
* <Popover.Positioner side="right" sideOffset={8}>
|
|
80
|
-
* <Popover.Popup>...</Popover.Popup>
|
|
81
|
-
* </Popover.Positioner>
|
|
82
|
-
* ```
|
|
83
|
-
*/
|
|
84
|
-
declare function PopoverPositioner({
|
|
85
|
-
className,
|
|
86
|
-
ref,
|
|
87
|
-
...props
|
|
88
|
-
}: PopoverPositionerProps & {
|
|
89
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
90
|
-
}): React.JSX.Element;
|
|
91
|
-
/**
|
|
92
|
-
* The popup container that holds the popover content.
|
|
93
|
-
*/
|
|
94
|
-
declare function PopoverPopup({
|
|
95
|
-
className,
|
|
96
|
-
ref,
|
|
97
|
-
...props
|
|
98
|
-
}: PopoverPopupProps & {
|
|
99
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
100
|
-
}): React.JSX.Element;
|
|
101
|
-
/**
|
|
102
|
-
* Transition container for content that changes as a popover moves between
|
|
103
|
-
* triggers. Pair the adaptive classes from `base-ui-motion.css` with the
|
|
104
|
-
* positioner, popup, and this viewport when that behavior is needed.
|
|
105
|
-
*/
|
|
106
|
-
declare function PopoverViewport({
|
|
107
|
-
className,
|
|
108
|
-
ref,
|
|
109
|
-
...props
|
|
110
|
-
}: PopoverViewportProps & {
|
|
111
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
112
|
-
}): React.JSX.Element;
|
|
113
|
-
declare function PopoverHeader({
|
|
114
|
-
className,
|
|
115
|
-
ref,
|
|
116
|
-
...props
|
|
117
|
-
}: PopoverHeaderProps & {
|
|
118
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
119
|
-
}): React.JSX.Element;
|
|
120
|
-
/**
|
|
121
|
-
* Directional arrow pointing to the trigger element.
|
|
122
|
-
*/
|
|
123
|
-
declare function PopoverArrow({
|
|
124
|
-
className,
|
|
125
|
-
ref,
|
|
126
|
-
...props
|
|
127
|
-
}: PopoverArrowProps & {
|
|
128
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
129
|
-
}): React.JSX.Element;
|
|
130
|
-
/**
|
|
131
|
-
* Semantic title for the popover content.
|
|
132
|
-
* Renders an `<h2>` element.
|
|
133
|
-
*/
|
|
134
|
-
declare function PopoverTitle({
|
|
135
|
-
className,
|
|
136
|
-
ref,
|
|
137
|
-
...props
|
|
138
|
-
}: PopoverTitleProps & {
|
|
139
|
-
ref?: React.Ref<HTMLHeadingElement>;
|
|
140
|
-
}): React.JSX.Element;
|
|
141
|
-
/**
|
|
142
|
-
* Description text for the popover content.
|
|
143
|
-
* Renders a `<p>` element.
|
|
144
|
-
*/
|
|
145
|
-
declare function PopoverDescription({
|
|
146
|
-
className,
|
|
147
|
-
ref,
|
|
148
|
-
...props
|
|
149
|
-
}: PopoverDescriptionProps & {
|
|
150
|
-
ref?: React.Ref<HTMLParagraphElement>;
|
|
151
|
-
}): React.JSX.Element;
|
|
152
|
-
/**
|
|
153
|
-
* Button that closes the popover.
|
|
154
|
-
*/
|
|
155
|
-
declare function PopoverClose({
|
|
156
|
-
render,
|
|
157
|
-
className,
|
|
158
|
-
ref,
|
|
159
|
-
...props
|
|
160
|
-
}: PopoverCloseProps & {
|
|
161
|
-
ref?: React.Ref<HTMLButtonElement>;
|
|
162
|
-
}): React.JSX.Element;
|
|
163
|
-
/**
|
|
164
|
-
* An accessible popup anchored to a trigger button.
|
|
165
|
-
* Supports flexible positioning, animations, and optional backdrop.
|
|
166
|
-
*
|
|
167
|
-
* @example
|
|
168
|
-
* ```tsx
|
|
169
|
-
* // Basic popover
|
|
170
|
-
* <Popover.Root>
|
|
171
|
-
* <Popover.Trigger>Click me</Popover.Trigger>
|
|
172
|
-
* <Popover.Portal>
|
|
173
|
-
* <Popover.Positioner>
|
|
174
|
-
* <Popover.Popup>
|
|
175
|
-
* <Popover.Title>Settings</Popover.Title>
|
|
176
|
-
* <Popover.Description>
|
|
177
|
-
* Configure your preferences here.
|
|
178
|
-
* </Popover.Description>
|
|
179
|
-
* <Popover.Close>Close</Popover.Close>
|
|
180
|
-
* </Popover.Popup>
|
|
181
|
-
* </Popover.Positioner>
|
|
182
|
-
* </Popover.Portal>
|
|
183
|
-
* </Popover.Root>
|
|
184
|
-
* ```
|
|
185
|
-
*
|
|
186
|
-
* @example
|
|
187
|
-
* ```tsx
|
|
188
|
-
* // With arrow and custom positioning
|
|
189
|
-
* <Popover.Root>
|
|
190
|
-
* <Popover.Trigger>Info</Popover.Trigger>
|
|
191
|
-
* <Popover.Portal>
|
|
192
|
-
* <Popover.Positioner side="right" sideOffset={8}>
|
|
193
|
-
* <Popover.Popup>
|
|
194
|
-
* <Popover.Arrow />
|
|
195
|
-
* <p>Additional information</p>
|
|
196
|
-
* </Popover.Popup>
|
|
197
|
-
* </Popover.Positioner>
|
|
198
|
-
* </Popover.Portal>
|
|
199
|
-
* </Popover.Root>
|
|
200
|
-
* ```
|
|
201
|
-
*
|
|
202
|
-
* @see {@link https://base-ui.com/react/components/popover | Base UI Popover}
|
|
203
|
-
*/
|
|
204
|
-
declare const Popover: {
|
|
205
|
-
createHandle: typeof Popover$1.createHandle;
|
|
206
|
-
Root: typeof Popover$1.Root;
|
|
207
|
-
Trigger: typeof PopoverTrigger;
|
|
208
|
-
Portal: (props: PopoverPortalProps) => React.JSX.Element;
|
|
209
|
-
Backdrop: typeof PopoverBackdrop;
|
|
210
|
-
Positioner: typeof PopoverPositioner;
|
|
211
|
-
Popup: typeof PopoverPopup;
|
|
212
|
-
Viewport: typeof PopoverViewport;
|
|
213
|
-
Header: typeof PopoverHeader;
|
|
214
|
-
Arrow: typeof PopoverArrow;
|
|
215
|
-
Title: typeof PopoverTitle;
|
|
216
|
-
Description: typeof PopoverDescription;
|
|
217
|
-
Close: typeof PopoverClose;
|
|
218
|
-
};
|
|
219
|
-
//#endregion
|
|
1
|
+
import { a as PopoverDescriptionProps, c as PopoverPortalProps, d as PopoverTitleProps, f as PopoverTriggerProps, i as PopoverCloseProps, l as PopoverPositionerProps, n as PopoverArrowProps, o as PopoverHeaderProps, p as PopoverViewportProps, r as PopoverBackdropProps, s as PopoverPopupProps, t as Popover, u as PopoverProps } from "../../Popover-CgHG5DtS.js";
|
|
220
2
|
export { Popover, PopoverArrowProps, PopoverBackdropProps, PopoverCloseProps, PopoverDescriptionProps, PopoverHeaderProps, PopoverPopupProps, PopoverPortalProps, PopoverPositionerProps, PopoverProps, PopoverTitleProps, PopoverTriggerProps, PopoverViewportProps };
|
|
@@ -142,7 +142,7 @@ declare function PreviewCardArrow({
|
|
|
142
142
|
*/
|
|
143
143
|
declare const PreviewCard: {
|
|
144
144
|
createHandle: typeof PreviewCard$1.createHandle;
|
|
145
|
-
Root: <Payload>(props: PreviewCard$1.Root.Props<Payload>) =>
|
|
145
|
+
Root: <Payload>(props: PreviewCard$1.Root.Props<Payload>) => React.JSX.Element;
|
|
146
146
|
Trigger: typeof PreviewCardTrigger;
|
|
147
147
|
Portal: typeof PreviewCardPortal;
|
|
148
148
|
Backdrop: typeof PreviewCardBackdrop;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as mergeBaseClassName } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { U as SearchIcon } from "../../icons-
|
|
2
|
+
import { U as SearchIcon } from "../../icons-CeGfXO21.js";
|
|
3
3
|
import { Field } from "./Field.js";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
//#region src/components/foundations/SearchField.tsx
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as mergeBaseClassName } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { a as ArrowUpIcon, d as CheckIcon, n as ArrowDownIcon } from "../../icons-
|
|
2
|
+
import { a as ArrowUpIcon, d as CheckIcon, n as ArrowDownIcon } from "../../icons-CeGfXO21.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
import { Select as Select$1 } from "@base-ui/react/select";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as mergeBaseClassName, t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { K as SpinnerIcon, d as CheckIcon } from "../../icons-
|
|
2
|
+
import { K as SpinnerIcon, d as CheckIcon } from "../../icons-CeGfXO21.js";
|
|
3
3
|
import { Tabs } from "./Tabs.js";
|
|
4
4
|
import * as React from "react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as mergeBaseClassName } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { nt as XIcon } from "../../icons-
|
|
2
|
+
import { nt as XIcon } from "../../icons-CeGfXO21.js";
|
|
3
3
|
import { buttonVariants } from "./Button.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ToggleVariantsOptions } from "./Toggle.js";
|
|
2
2
|
import * as React from "react";
|
|
3
|
-
import { ToggleGroup as ToggleGroup$1 } from "@base-ui/react/toggle-group";
|
|
4
3
|
import { Toggle } from "@base-ui/react/toggle";
|
|
4
|
+
import { ToggleGroup as ToggleGroup$1 } from "@base-ui/react/toggle-group";
|
|
5
5
|
|
|
6
6
|
//#region src/components/foundations/ToggleGroup.d.ts
|
|
7
7
|
type ToggleGroupSize = ToggleVariantsOptions["size"];
|
|
@@ -3,8 +3,8 @@ import { n as mergeRefs } from "../../merge-refs-DF_7w2x_.js";
|
|
|
3
3
|
import { toggleVariants } from "./Toggle.js";
|
|
4
4
|
import * as React from "react";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
-
import { ToggleGroup as ToggleGroup$1 } from "@base-ui/react/toggle-group";
|
|
7
6
|
import { Toggle } from "@base-ui/react/toggle";
|
|
7
|
+
import { ToggleGroup as ToggleGroup$1 } from "@base-ui/react/toggle-group";
|
|
8
8
|
//#region src/components/foundations/ToggleGroup.tsx
|
|
9
9
|
/**
|
|
10
10
|
* Tracks the pressed item's box so the segmented thumb can slide to it instead
|
|
@@ -80,7 +80,7 @@ declare function TooltipArrow({
|
|
|
80
80
|
*/
|
|
81
81
|
declare const Tooltip: {
|
|
82
82
|
createHandle: typeof Tooltip$1.createHandle;
|
|
83
|
-
Root: <Payload>(props: Tooltip$1.Root.Props<Payload>) =>
|
|
83
|
+
Root: <Payload>(props: Tooltip$1.Root.Props<Payload>) => React.JSX.Element;
|
|
84
84
|
Provider: typeof TooltipProvider;
|
|
85
85
|
Trigger: typeof TooltipTrigger;
|
|
86
86
|
Portal: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").TooltipPortalProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as UserIcon, A as McpIcon, B as PlusIcon, C as FolderIcon, D as LinkIcon, E as KeyboardIcon, F as MoonIcon, G as SlackIcon, H as RefreshIcon, I as PaperclipIcon, J as StopIcon, K as SpinnerIcon, L as PauseIcon, M as MicrophoneIcon, N as MinusIcon, O as MailIcon, P as MonitorIcon, Q as TrashIcon, R as PencilIcon, S as FileIcon, T as InfoIcon, U as SearchIcon, V as QueueIcon, W as SidebarIcon, X as TargetIcon, Y as SunIcon, Z as TerminalIcon, _ as DotIcon, a as ArrowUpIcon, b as EyeIcon, c as BoxIcon, d as CheckIcon, et as WarningIcon, f as ChevronDownIcon, g as DiscordIcon, h as CopyIcon, i as ArrowRightIcon, j as MessageSquareIcon, k as MaximizeIcon, l as BrainIcon, m as CodeIcon, n as ArrowDownIcon, nt as XIcon, o as ArrowUpRightIcon, p as ChevronRightIcon, q as SquareIcon, r as ArrowLeftIcon, s as BookmarkIcon, t as ArchiveIcon, tt as WrenchIcon, u as CalendarIcon, v as DownloadIcon, w as FolderOpenIcon, x as EyeOffIcon, y as EllipsisIcon, z as PlayIcon } from "../../icons-
|
|
1
|
+
import { $ as UserIcon, A as McpIcon, B as PlusIcon, C as FolderIcon, D as LinkIcon, E as KeyboardIcon, F as MoonIcon, G as SlackIcon, H as RefreshIcon, I as PaperclipIcon, J as StopIcon, K as SpinnerIcon, L as PauseIcon, M as MicrophoneIcon, N as MinusIcon, O as MailIcon, P as MonitorIcon, Q as TrashIcon, R as PencilIcon, S as FileIcon, T as InfoIcon, U as SearchIcon, V as QueueIcon, W as SidebarIcon, X as TargetIcon, Y as SunIcon, Z as TerminalIcon, _ as DotIcon, a as ArrowUpIcon, b as EyeIcon, c as BoxIcon, d as CheckIcon, et as WarningIcon, f as ChevronDownIcon, g as DiscordIcon, h as CopyIcon, i as ArrowRightIcon, j as MessageSquareIcon, k as MaximizeIcon, l as BrainIcon, m as CodeIcon, n as ArrowDownIcon, nt as XIcon, o as ArrowUpRightIcon, p as ChevronRightIcon, q as SquareIcon, r as ArrowLeftIcon, s as BookmarkIcon, t as ArchiveIcon, tt as WrenchIcon, u as CalendarIcon, v as DownloadIcon, w as FolderOpenIcon, x as EyeOffIcon, y as EllipsisIcon, z as PlayIcon } from "../../icons-CeGfXO21.js";
|
|
2
2
|
export { ArchiveIcon, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, ArrowUpRightIcon, BookmarkIcon, BoxIcon, BrainIcon, CalendarIcon, CheckIcon, ChevronDownIcon, ChevronRightIcon, CodeIcon, CopyIcon, DiscordIcon, DotIcon, DownloadIcon, EllipsisIcon, EyeIcon, EyeOffIcon, FileIcon, FolderIcon, FolderOpenIcon, InfoIcon, KeyboardIcon, LinkIcon, MailIcon, MaximizeIcon, McpIcon, MessageSquareIcon, MicrophoneIcon, MinusIcon, MonitorIcon, MoonIcon, PaperclipIcon, PauseIcon, PencilIcon, PlayIcon, PlusIcon, QueueIcon, RefreshIcon, SearchIcon, SidebarIcon, SlackIcon, SpinnerIcon, SquareIcon, StopIcon, SunIcon, TargetIcon, TerminalIcon, TrashIcon, UserIcon, WarningIcon, WrenchIcon, XIcon };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { l as DialogProps } from "../../Dialog-88GF7_Th.js";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/components/general-purpose/AccountSignInDialog.d.ts
|
|
5
|
+
interface AccountSignInDialogProps {
|
|
6
|
+
open: boolean;
|
|
7
|
+
onOpenChange: DialogProps["onOpenChange"];
|
|
8
|
+
trigger: React.ReactElement;
|
|
9
|
+
title: string;
|
|
10
|
+
description: string;
|
|
11
|
+
/** Provider-owned sign-in control; credentials never enter the component. */
|
|
12
|
+
children: React.ReactNode;
|
|
13
|
+
error?: string | null;
|
|
14
|
+
}
|
|
15
|
+
/** Shared account-dialog layout surrounding a provider's own sign-in control. */
|
|
16
|
+
declare function AccountSignInDialog({
|
|
17
|
+
open,
|
|
18
|
+
onOpenChange,
|
|
19
|
+
trigger,
|
|
20
|
+
title,
|
|
21
|
+
description,
|
|
22
|
+
error,
|
|
23
|
+
children
|
|
24
|
+
}: AccountSignInDialogProps): React.JSX.Element;
|
|
25
|
+
//#endregion
|
|
26
|
+
export { AccountSignInDialog, AccountSignInDialogProps };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Field } from "../foundations/Field.js";
|
|
2
|
+
import { Dialog } from "../foundations/Dialog.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
//#region src/components/general-purpose/AccountSignInDialog.tsx
|
|
6
|
+
/** Shared account-dialog layout surrounding a provider's own sign-in control. */
|
|
7
|
+
function AccountSignInDialog({ open, onOpenChange, trigger, title, description, error, children }) {
|
|
8
|
+
return /* @__PURE__ */ jsxs(Dialog.Root, {
|
|
9
|
+
open,
|
|
10
|
+
onOpenChange,
|
|
11
|
+
children: [/* @__PURE__ */ jsx(Dialog.Trigger, { render: trigger }), /* @__PURE__ */ jsxs(Dialog.Portal, { children: [/* @__PURE__ */ jsx(Dialog.Backdrop, {}), /* @__PURE__ */ jsx(Dialog.Viewport, { children: /* @__PURE__ */ jsxs(Dialog.Popup, {
|
|
12
|
+
size: "sm",
|
|
13
|
+
children: [
|
|
14
|
+
/* @__PURE__ */ jsxs(Dialog.Header, { children: [/* @__PURE__ */ jsx(Dialog.Title, { children: title }), /* @__PURE__ */ jsx(Dialog.Description, { children: description })] }),
|
|
15
|
+
/* @__PURE__ */ jsxs("div", {
|
|
16
|
+
className: "account-sign-in-dialog__control",
|
|
17
|
+
children: [children, error ? /* @__PURE__ */ jsx(Field.Errors, { errors: [error] }) : null]
|
|
18
|
+
}),
|
|
19
|
+
/* @__PURE__ */ jsx(Dialog.Footer, { children: /* @__PURE__ */ jsx(Dialog.Close, { children: "Cancel" }) })
|
|
20
|
+
]
|
|
21
|
+
}) })] })]
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
//#endregion
|
|
25
|
+
export { AccountSignInDialog };
|