@constructive-io/ui 0.13.0 → 0.14.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/{ai-B7XNnqYL.js → ai-4JrVVL3q.js} +311 -213
- package/dist/ai-4JrVVL3q.js.map +1 -0
- package/dist/{ai-DJ-YPj8c.cjs → ai-B08ufcbD.cjs} +309 -211
- package/dist/ai-B08ufcbD.cjs.map +1 -0
- package/dist/components/ai/index.cjs +1 -1
- package/dist/components/ai/index.d.cts +1 -1
- package/dist/components/ai/index.d.ts +1 -1
- package/dist/components/ai/index.js +1 -1
- package/dist/components/autocomplete.cjs +1 -1
- package/dist/components/autocomplete.js +1 -1
- package/dist/components/badge.d.cts +4 -4
- package/dist/components/badge.d.ts +4 -4
- package/dist/components/button-group.d.cts +1 -1
- package/dist/components/button-group.d.ts +1 -1
- package/dist/components/button.cjs +3 -3
- package/dist/components/button.cjs.map +1 -1
- package/dist/components/button.d.cts +2 -2
- package/dist/components/button.d.ts +2 -2
- package/dist/components/button.js +3 -3
- package/dist/components/button.js.map +1 -1
- package/dist/components/card.d.cts +1 -1
- package/dist/components/card.d.ts +1 -1
- package/dist/components/collapsible.cjs +1 -1
- package/dist/components/collapsible.cjs.map +1 -1
- package/dist/components/collapsible.js +1 -1
- package/dist/components/collapsible.js.map +1 -1
- package/dist/components/combobox.cjs +1 -1
- package/dist/components/combobox.js +1 -1
- package/dist/components/command.cjs +8 -3
- package/dist/components/command.cjs.map +1 -1
- package/dist/components/command.d.cts +4 -1
- package/dist/components/command.d.ts +4 -1
- package/dist/components/command.js +8 -3
- package/dist/components/command.js.map +1 -1
- package/dist/components/dropdown-menu.cjs +2 -2
- package/dist/components/dropdown-menu.cjs.map +1 -1
- package/dist/components/dropdown-menu.js +2 -2
- package/dist/components/dropdown-menu.js.map +1 -1
- package/dist/components/field.d.cts +1 -1
- package/dist/components/field.d.ts +1 -1
- package/dist/components/input-otp.cjs +1 -1
- package/dist/components/input-otp.js +1 -1
- package/dist/components/multi-select.cjs +1 -1
- package/dist/components/multi-select.js +1 -1
- package/dist/components/popover.cjs +7 -0
- package/dist/components/popover.cjs.map +1 -1
- package/dist/components/popover.d.cts +7 -1
- package/dist/components/popover.d.ts +7 -1
- package/dist/components/popover.js +7 -1
- package/dist/components/popover.js.map +1 -1
- package/dist/components/select.cjs +1 -1
- package/dist/components/select.js +1 -1
- package/dist/components/sidebar.d.cts +1 -1
- package/dist/components/sidebar.d.ts +1 -1
- package/dist/components/tabs.cjs +5 -2
- package/dist/components/tabs.cjs.map +1 -1
- package/dist/components/tabs.js +5 -2
- package/dist/components/tabs.js.map +1 -1
- package/dist/components/toggle-group.cjs +1 -1
- package/dist/components/toggle-group.js +1 -1
- package/dist/components/toggle.d.cts +1 -1
- package/dist/components/toggle.d.ts +1 -1
- package/dist/components/workspace-kit/index.cjs +51 -21
- package/dist/components/workspace-kit/index.cjs.map +1 -1
- package/dist/components/workspace-kit/index.d.cts +18 -6
- package/dist/components/workspace-kit/index.d.ts +18 -6
- package/dist/components/workspace-kit/index.js +51 -21
- package/dist/components/workspace-kit/index.js.map +1 -1
- package/dist/{fluid-highlight-DxWeZ7iu.js → fluid-highlight-CNELHV8o.js} +26 -11
- package/dist/fluid-highlight-CNELHV8o.js.map +1 -0
- package/dist/{fluid-highlight-AW-OITqJ.cjs → fluid-highlight-YWFRZXsw.cjs} +30 -9
- package/dist/fluid-highlight-YWFRZXsw.cjs.map +1 -0
- package/dist/{index-z3LqQ5L5.d.ts → index-Cluc_xc5.d.ts} +23 -14
- package/dist/{index-CiO-3M_X.d.cts → index-DXoG0ghv.d.cts} +23 -14
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/dist/{theme-DTTTlylA.d.ts → theme-CKpIa4Fj.d.cts} +42 -26
- package/dist/{theme-DTTTlylA.d.cts → theme-CKpIa4Fj.d.ts} +42 -26
- package/dist/theme-dials-config.d.cts +1 -1
- package/dist/theme-dials-config.d.ts +1 -1
- package/dist/theme-presets.d.cts +1 -1
- package/dist/theme-presets.d.ts +1 -1
- package/dist/{theme-tuning-TJ76tnxZ.d.cts → theme-tuning-CTOHSrsh.d.cts} +2 -2
- package/dist/{theme-tuning-DjgDvV8V.d.ts → theme-tuning-DOko6Pmy.d.ts} +2 -2
- package/dist/theme-tuning.d.cts +1 -1
- package/dist/theme-tuning.d.ts +1 -1
- package/dist/theme.cjs +28 -22
- package/dist/theme.cjs.map +1 -1
- package/dist/theme.d.cts +1 -1
- package/dist/theme.d.ts +1 -1
- package/dist/theme.js +28 -22
- package/dist/theme.js.map +1 -1
- package/package.json +5 -2
- package/src/styles/globals.css +43 -25
- package/dist/ai-B7XNnqYL.js.map +0 -1
- package/dist/ai-DJ-YPj8c.cjs.map +0 -1
- package/dist/fluid-highlight-AW-OITqJ.cjs.map +0 -1
- package/dist/fluid-highlight-DxWeZ7iu.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
3
|
-
const require_ai = require('../../ai-
|
|
3
|
+
const require_ai = require('../../ai-B08ufcbD.cjs');
|
|
4
4
|
|
|
5
5
|
exports.AgentDraftCard = require_ai.AgentDraftCard;
|
|
6
6
|
exports.AgentLoader = require_ai.AgentLoader;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as PromptSuggestionsProps, $n as PromptInputProps, $t as PlanStepStatus, A as usageTone, An as ResponseStreamProps, At as InlineDiff, B as ToolTraceProps, Bn as MessageActionsProps, Bt as ApprovalQuestion, C as AiModelTag, Cn as ChatContainer, Ct as DiffTableColumn, D as ModelSelectorProps, Dn as useChatContainer, Dt as StreamingText, E as ModelSelector, En as ChatContainerProps, Et as StreamToken, F as PromptInputTrayTone, Fn as renderBasicMarkdown, Ft as Sources, G as iconEnterClass, Gn as MessageProps, Gt as ToolProps, H as ToolTraceStep, Hn as MessageAvatarProps, Ht as Tool, I as ThinkingStatus, In as Message, It as SourcesProps, J as FileUpload, Jn as PromptInputActionProps, Jt as DiffFileChip, K as AiImage, Kn as PromptInput, Kt as ToolVariant, L as ThinkingStatusProps, Ln as MessageAction, Lt as ApprovalCard, M as PromptInputTrayProps, Mn as CodeBlockProps, Mt as lineDiff, N as PromptInputTrayRow, Nn as Markdown, Nt as Source, O as UsageNotice, On as ResponseStream, Ot as StreamingTextProps, P as PromptInputTrayRowProps, Pn as MarkdownProps, Pt as SourceProps, Q as PromptSuggestions, Qn as PromptInputBodyProps, Qt as PlanStep, R as formatElapsed, Rn as MessageActionProps, Rt as ApprovalCardProps, S as AiModelPricing, Sn as ScrollButtonProps, St as DiffTableAddedRow, T as ModelSelection, Tn as ChatContainerContentProps, Tt as DiffTableRowBase, U as MarkTile, Un as MessageContent, Ut as ToolGroup, V as ToolTraceStatus, Vn as MessageAvatar, Vt as StatusIcon, W as MarkTileProps, Wn as MessageContentProps, Wt as ToolGroupProps, X as PromptSuggestion, Xn as PromptInputActionsProps, Xt as NormalizedToolStatus, Y as FileUploadProps, Yn as PromptInputActions, Yt as InlineDiffSource, Z as PromptSuggestionProps, Zn as PromptInputBody, Zt as Plan, _ as PromptInputAttachmentStatus, _n as STREAM_THROTTLE_MS, _t as ContextRingProps, a as AgentDraftTool, an as StepProps, ar as AgentLoaderVariant, at as RecommendationOption, b as AiModel, bn as SystemMessageProps, bt as PlanTrackerProps, c as ConnectPromptStatus, cn as StepsProps, cr as SimpleVariant, ct as ContextCards, d as AskCardProps, dn as ThinkingTraceProps, dt as TaskList, en as ToolStatus, er as PromptInputTextarea, et as FeedbackBar, f as AskChoice, fn as ThinkingTraceRow, ft as TaskListProps, g as PromptInputAttachmentProps, gn as ThinkingBarProps, gt as ContextRing, h as PromptInputAttachment, hn as ThinkingBar, ht as TaskStatus, i as AgentDraftCardProps, in as Step, ir as AgentLoaderProps, it as RecommendationCardProps, j as PromptInputTray, jn as CodeBlock, jt as InlineDiffProps, k as UsageNoticeProps, kn as ResponseStreamMode, kt as StreamingTextSource, l as AskAnswer, ln as ThinkingTrace, lr as TextShimmer, lt as ContextCardsProps, m as AskQuestion, mn as ReasoningProps, mt as TaskRowProps, n as AgentDraftAction, nn as ChainOfThought, nr as usePromptInput, nt as FeedbackValue, o as ConnectPrompt, on as StepStatus, or as Loader, ot as ContextCard, p as AskOption, pn as Reasoning, pt as TaskRow, q as AiImageProps, qn as PromptInputAction, qt as ContextUsage, r as AgentDraftCard, rn as ChainOfThoughtStep, rr as AgentLoader, rt as RecommendationCard, s as ConnectPromptProps, sn as Steps, sr as PixelVariant, st as ContextCardProps, t as formatDuration, tn as normalizeToolStatus, tr as PromptInputTextareaProps, tt as FeedbackBarProps, u as AskCard, un as ThinkingTraceMode, ur as TextShimmerProps, ut as TaskDetail, v as PromptInputAttachments, vn as useThrottledText, vt as formatCompact, w as CostBlocks, wn as ChatContainerContent, wt as DiffTableProps, x as AiModelLevel, xn as ScrollButton, xt as DiffTable, y as PromptInputAttachmentsProps, yn as SystemMessage, yt as PlanTracker, z as ToolTrace, zn as MessageActions, zt as ApprovalOption } from "../../index-
|
|
1
|
+
import { $ as PromptSuggestionsProps, $n as PromptInputProps, $t as PlanStepStatus, A as usageTone, An as ResponseStreamProps, At as InlineDiff, B as ToolTraceProps, Bn as MessageActionsProps, Bt as ApprovalQuestion, C as AiModelTag, Cn as ChatContainer, Ct as DiffTableColumn, D as ModelSelectorProps, Dn as useChatContainer, Dt as StreamingText, E as ModelSelector, En as ChatContainerProps, Et as StreamToken, F as PromptInputTrayTone, Fn as renderBasicMarkdown, Ft as Sources, G as iconEnterClass, Gn as MessageProps, Gt as ToolProps, H as ToolTraceStep, Hn as MessageAvatarProps, Ht as Tool, I as ThinkingStatus, In as Message, It as SourcesProps, J as FileUpload, Jn as PromptInputActionProps, Jt as DiffFileChip, K as AiImage, Kn as PromptInput, Kt as ToolVariant, L as ThinkingStatusProps, Ln as MessageAction, Lt as ApprovalCard, M as PromptInputTrayProps, Mn as CodeBlockProps, Mt as lineDiff, N as PromptInputTrayRow, Nn as Markdown, Nt as Source, O as UsageNotice, On as ResponseStream, Ot as StreamingTextProps, P as PromptInputTrayRowProps, Pn as MarkdownProps, Pt as SourceProps, Q as PromptSuggestions, Qn as PromptInputBodyProps, Qt as PlanStep, R as formatElapsed, Rn as MessageActionProps, Rt as ApprovalCardProps, S as AiModelPricing, Sn as ScrollButtonProps, St as DiffTableAddedRow, T as ModelSelection, Tn as ChatContainerContentProps, Tt as DiffTableRowBase, U as MarkTile, Un as MessageContent, Ut as ToolGroup, V as ToolTraceStatus, Vn as MessageAvatar, Vt as StatusIcon, W as MarkTileProps, Wn as MessageContentProps, Wt as ToolGroupProps, X as PromptSuggestion, Xn as PromptInputActionsProps, Xt as NormalizedToolStatus, Y as FileUploadProps, Yn as PromptInputActions, Yt as InlineDiffSource, Z as PromptSuggestionProps, Zn as PromptInputBody, Zt as Plan, _ as PromptInputAttachmentStatus, _n as STREAM_THROTTLE_MS, _t as ContextRingProps, a as AgentDraftTool, an as StepProps, ar as AgentLoaderVariant, at as RecommendationOption, b as AiModel, bn as SystemMessageProps, bt as PlanTrackerProps, c as ConnectPromptStatus, cn as StepsProps, cr as SimpleVariant, ct as ContextCards, d as AskCardProps, dn as ThinkingTraceProps, dt as TaskList, en as ToolStatus, er as PromptInputTextarea, et as FeedbackBar, f as AskChoice, fn as ThinkingTraceRow, ft as TaskListProps, g as PromptInputAttachmentProps, gn as ThinkingBarProps, gt as ContextRing, h as PromptInputAttachment, hn as ThinkingBar, ht as TaskStatus, i as AgentDraftCardProps, in as Step, ir as AgentLoaderProps, it as RecommendationCardProps, j as PromptInputTray, jn as CodeBlock, jt as InlineDiffProps, k as UsageNoticeProps, kn as ResponseStreamMode, kt as StreamingTextSource, l as AskAnswer, ln as ThinkingTrace, lr as TextShimmer, lt as ContextCardsProps, m as AskQuestion, mn as ReasoningProps, mt as TaskRowProps, n as AgentDraftAction, nn as ChainOfThought, nr as usePromptInput, nt as FeedbackValue, o as ConnectPrompt, on as StepStatus, or as Loader, ot as ContextCard, p as AskOption, pn as Reasoning, pt as TaskRow, q as AiImageProps, qn as PromptInputAction, qt as ContextUsage, r as AgentDraftCard, rn as ChainOfThoughtStep, rr as AgentLoader, rt as RecommendationCard, s as ConnectPromptProps, sn as Steps, sr as PixelVariant, st as ContextCardProps, t as formatDuration, tn as normalizeToolStatus, tr as PromptInputTextareaProps, tt as FeedbackBarProps, u as AskCard, un as ThinkingTraceMode, ur as TextShimmerProps, ut as TaskDetail, v as PromptInputAttachments, vn as useThrottledText, vt as formatCompact, w as CostBlocks, wn as ChatContainerContent, wt as DiffTableProps, x as AiModelLevel, xn as ScrollButton, xt as DiffTable, y as PromptInputAttachmentsProps, yn as SystemMessage, yt as PlanTracker, z as ToolTrace, zn as MessageActions, zt as ApprovalOption } from "../../index-DXoG0ghv.cjs";
|
|
2
2
|
export { type AgentDraftAction, AgentDraftCard, type AgentDraftCardProps, type AgentDraftTool, AgentLoader, type AgentLoaderProps, type AgentLoaderVariant, AiImage, type AiImageProps, type AiModel, type AiModelLevel, type AiModelPricing, type AiModelTag, ApprovalCard, type ApprovalCardProps, type ApprovalOption, type ApprovalQuestion, type AskAnswer, AskCard, type AskCardProps, type AskChoice, type AskOption, type AskQuestion, ChainOfThought, ChainOfThoughtStep, ChatContainer, ChatContainerContent, type ChatContainerContentProps, type ChatContainerProps, CodeBlock, type CodeBlockProps, ConnectPrompt, type ConnectPromptProps, type ConnectPromptStatus, ContextCard, type ContextCardProps, ContextCards, type ContextCardsProps, ContextRing, type ContextRingProps, type ContextUsage, CostBlocks, type DiffFileChip, DiffTable, type DiffTableAddedRow, type DiffTableColumn, type DiffTableProps, type DiffTableRowBase, FeedbackBar, type FeedbackBarProps, type FeedbackValue, FileUpload, type FileUploadProps, InlineDiff, type InlineDiffProps, type InlineDiffSource, Loader, MarkTile, type MarkTileProps, Markdown, type MarkdownProps, Message, MessageAction, type MessageActionProps, MessageActions, type MessageActionsProps, MessageAvatar, type MessageAvatarProps, MessageContent, type MessageContentProps, type MessageProps, type ModelSelection, ModelSelector, type ModelSelectorProps, type NormalizedToolStatus, type PixelVariant, type Plan, type PlanStep, type PlanStepStatus, PlanTracker, type PlanTrackerProps, PromptInput, PromptInputAction, type PromptInputActionProps, PromptInputActions, type PromptInputActionsProps, PromptInputAttachment, type PromptInputAttachmentProps, type PromptInputAttachmentStatus, PromptInputAttachments, type PromptInputAttachmentsProps, PromptInputBody, type PromptInputBodyProps, type PromptInputProps, PromptInputTextarea, type PromptInputTextareaProps, PromptInputTray, type PromptInputTrayProps, PromptInputTrayRow, type PromptInputTrayRowProps, type PromptInputTrayTone, PromptSuggestion, type PromptSuggestionProps, PromptSuggestions, type PromptSuggestionsProps, Reasoning, type ReasoningProps, RecommendationCard, type RecommendationCardProps, type RecommendationOption, ResponseStream, type ResponseStreamMode, type ResponseStreamProps, STREAM_THROTTLE_MS, ScrollButton, type ScrollButtonProps, type SimpleVariant, Source, type SourceProps, Sources, type SourcesProps, StatusIcon, Step, type StepProps, type StepStatus, Steps, type StepsProps, type StreamToken, StreamingText, type StreamingTextProps, type StreamingTextSource, SystemMessage, type SystemMessageProps, type TaskDetail, TaskList, type TaskListProps, TaskRow, type TaskRowProps, type TaskStatus, TextShimmer, type TextShimmerProps, ThinkingBar, type ThinkingBarProps, ThinkingStatus, type ThinkingStatusProps, ThinkingTrace, type ThinkingTraceMode, type ThinkingTraceProps, type ThinkingTraceRow, Tool, ToolGroup, type ToolGroupProps, type ToolProps, type ToolStatus, ToolTrace, type ToolTraceProps, type ToolTraceStatus, type ToolTraceStep, type ToolVariant, UsageNotice, type UsageNoticeProps, formatCompact, formatDuration, formatElapsed, iconEnterClass, lineDiff, normalizeToolStatus, renderBasicMarkdown, usageTone, useChatContainer, usePromptInput, useThrottledText };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as PromptSuggestionsProps, $n as PromptInputProps, $t as PlanStepStatus, A as usageTone, An as ResponseStreamProps, At as InlineDiff, B as ToolTraceProps, Bn as MessageActionsProps, Bt as ApprovalQuestion, C as AiModelTag, Cn as ChatContainer, Ct as DiffTableColumn, D as ModelSelectorProps, Dn as useChatContainer, Dt as StreamingText, E as ModelSelector, En as ChatContainerProps, Et as StreamToken, F as PromptInputTrayTone, Fn as renderBasicMarkdown, Ft as Sources, G as iconEnterClass, Gn as MessageProps, Gt as ToolProps, H as ToolTraceStep, Hn as MessageAvatarProps, Ht as Tool, I as ThinkingStatus, In as Message, It as SourcesProps, J as FileUpload, Jn as PromptInputActionProps, Jt as DiffFileChip, K as AiImage, Kn as PromptInput, Kt as ToolVariant, L as ThinkingStatusProps, Ln as MessageAction, Lt as ApprovalCard, M as PromptInputTrayProps, Mn as CodeBlockProps, Mt as lineDiff, N as PromptInputTrayRow, Nn as Markdown, Nt as Source, O as UsageNotice, On as ResponseStream, Ot as StreamingTextProps, P as PromptInputTrayRowProps, Pn as MarkdownProps, Pt as SourceProps, Q as PromptSuggestions, Qn as PromptInputBodyProps, Qt as PlanStep, R as formatElapsed, Rn as MessageActionProps, Rt as ApprovalCardProps, S as AiModelPricing, Sn as ScrollButtonProps, St as DiffTableAddedRow, T as ModelSelection, Tn as ChatContainerContentProps, Tt as DiffTableRowBase, U as MarkTile, Un as MessageContent, Ut as ToolGroup, V as ToolTraceStatus, Vn as MessageAvatar, Vt as StatusIcon, W as MarkTileProps, Wn as MessageContentProps, Wt as ToolGroupProps, X as PromptSuggestion, Xn as PromptInputActionsProps, Xt as NormalizedToolStatus, Y as FileUploadProps, Yn as PromptInputActions, Yt as InlineDiffSource, Z as PromptSuggestionProps, Zn as PromptInputBody, Zt as Plan, _ as PromptInputAttachmentStatus, _n as STREAM_THROTTLE_MS, _t as ContextRingProps, a as AgentDraftTool, an as StepProps, ar as AgentLoaderVariant, at as RecommendationOption, b as AiModel, bn as SystemMessageProps, bt as PlanTrackerProps, c as ConnectPromptStatus, cn as StepsProps, cr as SimpleVariant, ct as ContextCards, d as AskCardProps, dn as ThinkingTraceProps, dt as TaskList, en as ToolStatus, er as PromptInputTextarea, et as FeedbackBar, f as AskChoice, fn as ThinkingTraceRow, ft as TaskListProps, g as PromptInputAttachmentProps, gn as ThinkingBarProps, gt as ContextRing, h as PromptInputAttachment, hn as ThinkingBar, ht as TaskStatus, i as AgentDraftCardProps, in as Step, ir as AgentLoaderProps, it as RecommendationCardProps, j as PromptInputTray, jn as CodeBlock, jt as InlineDiffProps, k as UsageNoticeProps, kn as ResponseStreamMode, kt as StreamingTextSource, l as AskAnswer, ln as ThinkingTrace, lr as TextShimmer, lt as ContextCardsProps, m as AskQuestion, mn as ReasoningProps, mt as TaskRowProps, n as AgentDraftAction, nn as ChainOfThought, nr as usePromptInput, nt as FeedbackValue, o as ConnectPrompt, on as StepStatus, or as Loader, ot as ContextCard, p as AskOption, pn as Reasoning, pt as TaskRow, q as AiImageProps, qn as PromptInputAction, qt as ContextUsage, r as AgentDraftCard, rn as ChainOfThoughtStep, rr as AgentLoader, rt as RecommendationCard, s as ConnectPromptProps, sn as Steps, sr as PixelVariant, st as ContextCardProps, t as formatDuration, tn as normalizeToolStatus, tr as PromptInputTextareaProps, tt as FeedbackBarProps, u as AskCard, un as ThinkingTraceMode, ur as TextShimmerProps, ut as TaskDetail, v as PromptInputAttachments, vn as useThrottledText, vt as formatCompact, w as CostBlocks, wn as ChatContainerContent, wt as DiffTableProps, x as AiModelLevel, xn as ScrollButton, xt as DiffTable, y as PromptInputAttachmentsProps, yn as SystemMessage, yt as PlanTracker, z as ToolTrace, zn as MessageActions, zt as ApprovalOption } from "../../index-
|
|
1
|
+
import { $ as PromptSuggestionsProps, $n as PromptInputProps, $t as PlanStepStatus, A as usageTone, An as ResponseStreamProps, At as InlineDiff, B as ToolTraceProps, Bn as MessageActionsProps, Bt as ApprovalQuestion, C as AiModelTag, Cn as ChatContainer, Ct as DiffTableColumn, D as ModelSelectorProps, Dn as useChatContainer, Dt as StreamingText, E as ModelSelector, En as ChatContainerProps, Et as StreamToken, F as PromptInputTrayTone, Fn as renderBasicMarkdown, Ft as Sources, G as iconEnterClass, Gn as MessageProps, Gt as ToolProps, H as ToolTraceStep, Hn as MessageAvatarProps, Ht as Tool, I as ThinkingStatus, In as Message, It as SourcesProps, J as FileUpload, Jn as PromptInputActionProps, Jt as DiffFileChip, K as AiImage, Kn as PromptInput, Kt as ToolVariant, L as ThinkingStatusProps, Ln as MessageAction, Lt as ApprovalCard, M as PromptInputTrayProps, Mn as CodeBlockProps, Mt as lineDiff, N as PromptInputTrayRow, Nn as Markdown, Nt as Source, O as UsageNotice, On as ResponseStream, Ot as StreamingTextProps, P as PromptInputTrayRowProps, Pn as MarkdownProps, Pt as SourceProps, Q as PromptSuggestions, Qn as PromptInputBodyProps, Qt as PlanStep, R as formatElapsed, Rn as MessageActionProps, Rt as ApprovalCardProps, S as AiModelPricing, Sn as ScrollButtonProps, St as DiffTableAddedRow, T as ModelSelection, Tn as ChatContainerContentProps, Tt as DiffTableRowBase, U as MarkTile, Un as MessageContent, Ut as ToolGroup, V as ToolTraceStatus, Vn as MessageAvatar, Vt as StatusIcon, W as MarkTileProps, Wn as MessageContentProps, Wt as ToolGroupProps, X as PromptSuggestion, Xn as PromptInputActionsProps, Xt as NormalizedToolStatus, Y as FileUploadProps, Yn as PromptInputActions, Yt as InlineDiffSource, Z as PromptSuggestionProps, Zn as PromptInputBody, Zt as Plan, _ as PromptInputAttachmentStatus, _n as STREAM_THROTTLE_MS, _t as ContextRingProps, a as AgentDraftTool, an as StepProps, ar as AgentLoaderVariant, at as RecommendationOption, b as AiModel, bn as SystemMessageProps, bt as PlanTrackerProps, c as ConnectPromptStatus, cn as StepsProps, cr as SimpleVariant, ct as ContextCards, d as AskCardProps, dn as ThinkingTraceProps, dt as TaskList, en as ToolStatus, er as PromptInputTextarea, et as FeedbackBar, f as AskChoice, fn as ThinkingTraceRow, ft as TaskListProps, g as PromptInputAttachmentProps, gn as ThinkingBarProps, gt as ContextRing, h as PromptInputAttachment, hn as ThinkingBar, ht as TaskStatus, i as AgentDraftCardProps, in as Step, ir as AgentLoaderProps, it as RecommendationCardProps, j as PromptInputTray, jn as CodeBlock, jt as InlineDiffProps, k as UsageNoticeProps, kn as ResponseStreamMode, kt as StreamingTextSource, l as AskAnswer, ln as ThinkingTrace, lr as TextShimmer, lt as ContextCardsProps, m as AskQuestion, mn as ReasoningProps, mt as TaskRowProps, n as AgentDraftAction, nn as ChainOfThought, nr as usePromptInput, nt as FeedbackValue, o as ConnectPrompt, on as StepStatus, or as Loader, ot as ContextCard, p as AskOption, pn as Reasoning, pt as TaskRow, q as AiImageProps, qn as PromptInputAction, qt as ContextUsage, r as AgentDraftCard, rn as ChainOfThoughtStep, rr as AgentLoader, rt as RecommendationCard, s as ConnectPromptProps, sn as Steps, sr as PixelVariant, st as ContextCardProps, t as formatDuration, tn as normalizeToolStatus, tr as PromptInputTextareaProps, tt as FeedbackBarProps, u as AskCard, un as ThinkingTraceMode, ur as TextShimmerProps, ut as TaskDetail, v as PromptInputAttachments, vn as useThrottledText, vt as formatCompact, w as CostBlocks, wn as ChatContainerContent, wt as DiffTableProps, x as AiModelLevel, xn as ScrollButton, xt as DiffTable, y as PromptInputAttachmentsProps, yn as SystemMessage, yt as PlanTracker, z as ToolTrace, zn as MessageActions, zt as ApprovalOption } from "../../index-Cluc_xc5.js";
|
|
2
2
|
export { type AgentDraftAction, AgentDraftCard, type AgentDraftCardProps, type AgentDraftTool, AgentLoader, type AgentLoaderProps, type AgentLoaderVariant, AiImage, type AiImageProps, type AiModel, type AiModelLevel, type AiModelPricing, type AiModelTag, ApprovalCard, type ApprovalCardProps, type ApprovalOption, type ApprovalQuestion, type AskAnswer, AskCard, type AskCardProps, type AskChoice, type AskOption, type AskQuestion, ChainOfThought, ChainOfThoughtStep, ChatContainer, ChatContainerContent, type ChatContainerContentProps, type ChatContainerProps, CodeBlock, type CodeBlockProps, ConnectPrompt, type ConnectPromptProps, type ConnectPromptStatus, ContextCard, type ContextCardProps, ContextCards, type ContextCardsProps, ContextRing, type ContextRingProps, type ContextUsage, CostBlocks, type DiffFileChip, DiffTable, type DiffTableAddedRow, type DiffTableColumn, type DiffTableProps, type DiffTableRowBase, FeedbackBar, type FeedbackBarProps, type FeedbackValue, FileUpload, type FileUploadProps, InlineDiff, type InlineDiffProps, type InlineDiffSource, Loader, MarkTile, type MarkTileProps, Markdown, type MarkdownProps, Message, MessageAction, type MessageActionProps, MessageActions, type MessageActionsProps, MessageAvatar, type MessageAvatarProps, MessageContent, type MessageContentProps, type MessageProps, type ModelSelection, ModelSelector, type ModelSelectorProps, type NormalizedToolStatus, type PixelVariant, type Plan, type PlanStep, type PlanStepStatus, PlanTracker, type PlanTrackerProps, PromptInput, PromptInputAction, type PromptInputActionProps, PromptInputActions, type PromptInputActionsProps, PromptInputAttachment, type PromptInputAttachmentProps, type PromptInputAttachmentStatus, PromptInputAttachments, type PromptInputAttachmentsProps, PromptInputBody, type PromptInputBodyProps, type PromptInputProps, PromptInputTextarea, type PromptInputTextareaProps, PromptInputTray, type PromptInputTrayProps, PromptInputTrayRow, type PromptInputTrayRowProps, type PromptInputTrayTone, PromptSuggestion, type PromptSuggestionProps, PromptSuggestions, type PromptSuggestionsProps, Reasoning, type ReasoningProps, RecommendationCard, type RecommendationCardProps, type RecommendationOption, ResponseStream, type ResponseStreamMode, type ResponseStreamProps, STREAM_THROTTLE_MS, ScrollButton, type ScrollButtonProps, type SimpleVariant, Source, type SourceProps, Sources, type SourcesProps, StatusIcon, Step, type StepProps, type StepStatus, Steps, type StepsProps, type StreamToken, StreamingText, type StreamingTextProps, type StreamingTextSource, SystemMessage, type SystemMessageProps, type TaskDetail, TaskList, type TaskListProps, TaskRow, type TaskRowProps, type TaskStatus, TextShimmer, type TextShimmerProps, ThinkingBar, type ThinkingBarProps, ThinkingStatus, type ThinkingStatusProps, ThinkingTrace, type ThinkingTraceMode, type ThinkingTraceProps, type ThinkingTraceRow, Tool, ToolGroup, type ToolGroupProps, type ToolProps, type ToolStatus, ToolTrace, type ToolTraceProps, type ToolTraceStatus, type ToolTraceStep, type ToolVariant, UsageNotice, type UsageNoticeProps, formatCompact, formatDuration, formatElapsed, iconEnterClass, lineDiff, normalizeToolStatus, renderBasicMarkdown, usageTone, useChatContainer, usePromptInput, useThrottledText };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { $ as useChatContainer, A as PromptSuggestions, B as normalizeToolStatus, C as TaskRow, D as DiffTable, E as PlanTracker, F as Sources, G as ThinkingTrace, H as ChainOfThoughtStep, I as ApprovalCard, J as formatDuration, K as Reasoning, L as StatusIcon, M as InlineDiff, N as lineDiff, O as StreamingText, P as Source, Q as ChatContainerContent, R as Tool, S as TaskList, T as formatCompact, U as Step, V as ChainOfThought, W as Steps, X as ScrollButton, Y as SystemMessage, Z as ChatContainer, _ as AiImage, _t as AgentLoader, a as PromptInputAttachments, at as MessageAvatar, b as ContextCard, c as UsageNotice, ct as renderBasicMarkdown, d as PromptInputTrayRow, dt as PromptInput, et as ResponseStream, f as ThinkingStatus, ft as PromptInputAction, g as iconEnterClass, gt as usePromptInput, h as MarkTile, ht as PromptInputTextarea, i as PromptInputAttachment, it as MessageActions, j as FeedbackBar, k as PromptSuggestion, l as usageTone, lt as STREAM_THROTTLE_MS, m as ToolTrace, mt as PromptInputBody, n as ConnectPrompt, nt as Message, o as CostBlocks, ot as MessageContent, p as formatElapsed, pt as PromptInputActions, q as ThinkingBar, r as AskCard, rt as MessageAction, s as ModelSelector, st as Markdown, t as AgentDraftCard, tt as CodeBlock, u as PromptInputTray, ut as useThrottledText, v as FileUpload, vt as Loader, w as ContextRing, x as ContextCards, y as RecommendationCard, yt as TextShimmer, z as ToolGroup } from "../../ai-
|
|
2
|
+
import { $ as useChatContainer, A as PromptSuggestions, B as normalizeToolStatus, C as TaskRow, D as DiffTable, E as PlanTracker, F as Sources, G as ThinkingTrace, H as ChainOfThoughtStep, I as ApprovalCard, J as formatDuration, K as Reasoning, L as StatusIcon, M as InlineDiff, N as lineDiff, O as StreamingText, P as Source, Q as ChatContainerContent, R as Tool, S as TaskList, T as formatCompact, U as Step, V as ChainOfThought, W as Steps, X as ScrollButton, Y as SystemMessage, Z as ChatContainer, _ as AiImage, _t as AgentLoader, a as PromptInputAttachments, at as MessageAvatar, b as ContextCard, c as UsageNotice, ct as renderBasicMarkdown, d as PromptInputTrayRow, dt as PromptInput, et as ResponseStream, f as ThinkingStatus, ft as PromptInputAction, g as iconEnterClass, gt as usePromptInput, h as MarkTile, ht as PromptInputTextarea, i as PromptInputAttachment, it as MessageActions, j as FeedbackBar, k as PromptSuggestion, l as usageTone, lt as STREAM_THROTTLE_MS, m as ToolTrace, mt as PromptInputBody, n as ConnectPrompt, nt as Message, o as CostBlocks, ot as MessageContent, p as formatElapsed, pt as PromptInputActions, q as ThinkingBar, r as AskCard, rt as MessageAction, s as ModelSelector, st as Markdown, t as AgentDraftCard, tt as CodeBlock, u as PromptInputTray, ut as useThrottledText, v as FileUpload, vt as Loader, w as ContextRing, x as ContextCards, y as RecommendationCard, yt as TextShimmer, z as ToolGroup } from "../../ai-4JrVVL3q.js";
|
|
3
3
|
|
|
4
4
|
export { AgentDraftCard, AgentLoader, AiImage, ApprovalCard, AskCard, ChainOfThought, ChainOfThoughtStep, ChatContainer, ChatContainerContent, CodeBlock, ConnectPrompt, ContextCard, ContextCards, ContextRing, CostBlocks, DiffTable, FeedbackBar, FileUpload, InlineDiff, Loader, MarkTile, Markdown, Message, MessageAction, MessageActions, MessageAvatar, MessageContent, ModelSelector, PlanTracker, PromptInput, PromptInputAction, PromptInputActions, PromptInputAttachment, PromptInputAttachments, PromptInputBody, PromptInputTextarea, PromptInputTray, PromptInputTrayRow, PromptSuggestion, PromptSuggestions, Reasoning, RecommendationCard, ResponseStream, STREAM_THROTTLE_MS, ScrollButton, Source, Sources, StatusIcon, Step, Steps, StreamingText, SystemMessage, TaskList, TaskRow, TextShimmer, ThinkingBar, ThinkingStatus, ThinkingTrace, Tool, ToolGroup, ToolTrace, UsageNotice, formatCompact, formatDuration, formatElapsed, iconEnterClass, lineDiff, normalizeToolStatus, renderBasicMarkdown, usageTone, useChatContainer, usePromptInput, useThrottledText };
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
const require_utils = require('../utils-CzTQ3-VI.cjs');
|
|
5
5
|
const require_components_input = require('./input.cjs');
|
|
6
|
-
const require_fluid_highlight = require('../fluid-highlight-
|
|
6
|
+
const require_fluid_highlight = require('../fluid-highlight-YWFRZXsw.cjs');
|
|
7
7
|
const require_components_scroll_area = require('./scroll-area.cjs');
|
|
8
8
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
9
9
|
let lucide_react = require("lucide-react");
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { t as cn } from "../utils-BkMLyah9.js";
|
|
4
4
|
import { Input } from "./input.js";
|
|
5
|
-
import { t as FluidHighlight } from "../fluid-highlight-
|
|
5
|
+
import { t as FluidHighlight } from "../fluid-highlight-CNELHV8o.js";
|
|
6
6
|
import { ScrollArea } from "./scroll-area.js";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
import { ChevronsUpDownIcon, XIcon } from "lucide-react";
|
|
@@ -2,13 +2,13 @@ import * as React$1 from "react";
|
|
|
2
2
|
import { VariantProps } from "class-variance-authority";
|
|
3
3
|
//#region src/components/badge.d.ts
|
|
4
4
|
declare const badgeVariants: (props?: ({
|
|
5
|
-
size?: "default" | "
|
|
6
|
-
variant?: "default" | "destructive" | "outline" | "secondary" | "
|
|
5
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
6
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | "info" | "success" | "warning" | "error" | null | undefined;
|
|
7
7
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
8
|
type BadgeProps = React$1.HTMLAttributes<HTMLSpanElement> & VariantProps<typeof badgeVariants>;
|
|
9
9
|
declare const Badge: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLSpanElement> & VariantProps<(props?: ({
|
|
10
|
-
size?: "default" | "
|
|
11
|
-
variant?: "default" | "destructive" | "outline" | "secondary" | "
|
|
10
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
11
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | "info" | "success" | "warning" | "error" | null | undefined;
|
|
12
12
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { Badge, type BadgeProps, badgeVariants };
|
|
@@ -2,13 +2,13 @@ import * as React$1 from "react";
|
|
|
2
2
|
import { VariantProps } from "class-variance-authority";
|
|
3
3
|
//#region src/components/badge.d.ts
|
|
4
4
|
declare const badgeVariants: (props?: ({
|
|
5
|
-
size?: "default" | "
|
|
6
|
-
variant?: "default" | "destructive" | "outline" | "secondary" | "
|
|
5
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
6
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | "info" | "success" | "warning" | "error" | null | undefined;
|
|
7
7
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
8
|
type BadgeProps = React$1.HTMLAttributes<HTMLSpanElement> & VariantProps<typeof badgeVariants>;
|
|
9
9
|
declare const Badge: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLSpanElement> & VariantProps<(props?: ({
|
|
10
|
-
size?: "default" | "
|
|
11
|
-
variant?: "default" | "destructive" | "outline" | "secondary" | "
|
|
10
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
11
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | "info" | "success" | "warning" | "error" | null | undefined;
|
|
12
12
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { Badge, type BadgeProps, badgeVariants };
|
|
@@ -3,7 +3,7 @@ import * as React$1 from "react";
|
|
|
3
3
|
import { VariantProps } from "class-variance-authority";
|
|
4
4
|
//#region src/components/button-group.d.ts
|
|
5
5
|
declare const buttonGroupVariants: (props?: ({
|
|
6
|
-
orientation?: "
|
|
6
|
+
orientation?: "vertical" | "horizontal" | null | undefined;
|
|
7
7
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
8
|
interface ButtonGroupProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof buttonGroupVariants> {}
|
|
9
9
|
declare function ButtonGroup({ className, orientation, ...props }: ButtonGroupProps): React$1.JSX.Element;
|
|
@@ -3,7 +3,7 @@ import * as React$1 from "react";
|
|
|
3
3
|
import { VariantProps } from "class-variance-authority";
|
|
4
4
|
//#region src/components/button-group.d.ts
|
|
5
5
|
declare const buttonGroupVariants: (props?: ({
|
|
6
|
-
orientation?: "
|
|
6
|
+
orientation?: "vertical" | "horizontal" | null | undefined;
|
|
7
7
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
8
|
interface ButtonGroupProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof buttonGroupVariants> {}
|
|
9
9
|
declare function ButtonGroup({ className, orientation, ...props }: ButtonGroupProps): React$1.JSX.Element;
|
|
@@ -27,12 +27,12 @@ const buttonVariants = (0, class_variance_authority.cva)("[&_svg]:-mx-0.5 relati
|
|
|
27
27
|
icon: "size-10 pointer-coarse:size-11",
|
|
28
28
|
"icon-lg": "size-11",
|
|
29
29
|
"icon-sm": "size-8 pointer-coarse:size-11",
|
|
30
|
-
"icon-xl": "size-11 [&_svg:not([class
|
|
30
|
+
"icon-xl": "size-11 [&_svg:not([class*='size-'])]:size-5",
|
|
31
31
|
"icon-xs": "size-7 rounded-md before:rounded-[calc(var(--radius-md)-1px)] pointer-coarse:size-11 not-in-data-[slot=input-group]:[&_svg:not([class*=\"size-\"])]:size-4",
|
|
32
32
|
lg: "h-11 min-w-11 px-[calc(--spacing(3.5)-1px)]",
|
|
33
33
|
sm: "h-8 gap-1.5 px-[calc(--spacing(2.5)-1px)] pointer-coarse:min-h-11 pointer-coarse:min-w-11",
|
|
34
|
-
xl: "h-12 min-w-12 px-[calc(--spacing(4)-1px)] text-lg [&_svg:not([class
|
|
35
|
-
xs: "h-7 gap-1 rounded-md px-[calc(--spacing(2)-1px)] text-xs before:rounded-[calc(var(--radius-md)-1px)] pointer-coarse:min-h-11 pointer-coarse:min-w-11 [&_svg:not([class
|
|
34
|
+
xl: "h-12 min-w-12 px-[calc(--spacing(4)-1px)] text-lg [&_svg:not([class*='size-'])]:size-5",
|
|
35
|
+
xs: "h-7 gap-1 rounded-md px-[calc(--spacing(2)-1px)] text-xs before:rounded-[calc(var(--radius-md)-1px)] pointer-coarse:min-h-11 pointer-coarse:min-w-11 [&_svg:not([class*='size-'])]:size-3.5"
|
|
36
36
|
},
|
|
37
37
|
variant: {
|
|
38
38
|
default: "not-disabled:not-data-disabled:inset-shadow-[0_1px_--theme(--color-white/16%)] border-primary bg-primary text-primary-foreground shadow-primary/24 shadow-xs hover:bg-primary/90 [:active,[data-pressed]]:inset-shadow-[0_1px_--theme(--color-black/8%)] [:disabled,[data-disabled],:active,[data-pressed]]:shadow-none data-disabled:hover:bg-primary data-disabled:active:inset-shadow-none",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.cjs","names":["React","cn","BaseButton","Slot"],"sources":["../../src/components/button.tsx"],"sourcesContent":["import * as React from 'react';\nimport { Button as BaseButton } from '@base-ui/react/button';\nimport { cva, type VariantProps } from 'class-variance-authority';\n\nimport { Slot } from '../lib/slot';\nimport { cn } from '../lib/utils';\n\nconst buttonVariants = cva(\n\t\"[&_svg]:-mx-0.5 relative inline-flex shrink-0 cursor-pointer items-center justify-center gap-2 whitespace-nowrap rounded-md border font-medium text-sm outline-none transition-[box-shadow,scale] duration-(--duration-moderate) ease-out before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-md)-1px)] focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-64 data-disabled:cursor-not-allowed data-disabled:opacity-64 motion-reduce:transition-shadow [&_svg:not([class*='opacity-'])]:opacity-80 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0\",\n\t{\n\t\tdefaultVariants: {\n\t\t\tsize: 'default',\n\t\t\tstatic: false,\n\t\t\tvariant: 'default',\n\t\t\twrap: false,\n\t\t},\n\t\tvariants: {\n\t\t\tstatic: {\n\t\t\t\tfalse: 'motion-safe:active:not-disabled:not-data-disabled:scale-[0.96]',\n\t\t\t\ttrue: null,\n\t\t\t},\n\t\t\tsize: {\n\t\t\t\tdefault: 'h-10 min-w-10 px-[calc(--spacing(3)-1px)] pointer-coarse:min-h-11 pointer-coarse:min-w-11',\n\t\t\t\ticon: 'size-10 pointer-coarse:size-11',\n\t\t\t\t'icon-lg': 'size-11',\n\t\t\t\t'icon-sm': 'size-8 pointer-coarse:size-11',\n\t\t\t\t'icon-xl':
|
|
1
|
+
{"version":3,"file":"button.cjs","names":["React","cn","BaseButton","Slot"],"sources":["../../src/components/button.tsx"],"sourcesContent":["import * as React from 'react';\nimport { Button as BaseButton } from '@base-ui/react/button';\nimport { cva, type VariantProps } from 'class-variance-authority';\n\nimport { Slot } from '../lib/slot';\nimport { cn } from '../lib/utils';\n\nconst buttonVariants = cva(\n\t\"[&_svg]:-mx-0.5 relative inline-flex shrink-0 cursor-pointer items-center justify-center gap-2 whitespace-nowrap rounded-md border font-medium text-sm outline-none transition-[box-shadow,scale] duration-(--duration-moderate) ease-out before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-md)-1px)] focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-64 data-disabled:cursor-not-allowed data-disabled:opacity-64 motion-reduce:transition-shadow [&_svg:not([class*='opacity-'])]:opacity-80 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0\",\n\t{\n\t\tdefaultVariants: {\n\t\t\tsize: 'default',\n\t\t\tstatic: false,\n\t\t\tvariant: 'default',\n\t\t\twrap: false,\n\t\t},\n\t\tvariants: {\n\t\t\tstatic: {\n\t\t\t\tfalse: 'motion-safe:active:not-disabled:not-data-disabled:scale-[0.96]',\n\t\t\t\ttrue: null,\n\t\t\t},\n\t\t\tsize: {\n\t\t\t\tdefault: 'h-10 min-w-10 px-[calc(--spacing(3)-1px)] pointer-coarse:min-h-11 pointer-coarse:min-w-11',\n\t\t\t\ticon: 'size-10 pointer-coarse:size-11',\n\t\t\t\t'icon-lg': 'size-11',\n\t\t\t\t'icon-sm': 'size-8 pointer-coarse:size-11',\n\t\t\t\t'icon-xl': \"size-11 [&_svg:not([class*='size-'])]:size-5\",\n\t\t\t\t'icon-xs':\n\t\t\t\t\t'size-7 rounded-md before:rounded-[calc(var(--radius-md)-1px)] pointer-coarse:size-11 not-in-data-[slot=input-group]:[&_svg:not([class*=\"size-\"])]:size-4',\n\t\t\t\tlg: 'h-11 min-w-11 px-[calc(--spacing(3.5)-1px)]',\n\t\t\t\tsm:\n\t\t\t\t\t'h-8 gap-1.5 px-[calc(--spacing(2.5)-1px)] pointer-coarse:min-h-11 pointer-coarse:min-w-11',\n\t\t\t\txl: \"h-12 min-w-12 px-[calc(--spacing(4)-1px)] text-lg [&_svg:not([class*='size-'])]:size-5\",\n\t\t\t\txs:\n\t\t\t\t\t\"h-7 gap-1 rounded-md px-[calc(--spacing(2)-1px)] text-xs before:rounded-[calc(var(--radius-md)-1px)] pointer-coarse:min-h-11 pointer-coarse:min-w-11 [&_svg:not([class*='size-'])]:size-3.5\",\n\t\t\t},\n\t\t\tvariant: {\n\t\t\t\tdefault:\n\t\t\t\t\t'not-disabled:not-data-disabled:inset-shadow-[0_1px_--theme(--color-white/16%)] border-primary bg-primary text-primary-foreground shadow-primary/24 shadow-xs hover:bg-primary/90 [:active,[data-pressed]]:inset-shadow-[0_1px_--theme(--color-black/8%)] [:disabled,[data-disabled],:active,[data-pressed]]:shadow-none data-disabled:hover:bg-primary data-disabled:active:inset-shadow-none',\n\t\t\t\tdestructive:\n\t\t\t\t\t'not-disabled:not-data-disabled:inset-shadow-[0_1px_--theme(--color-white/16%)] border-destructive bg-destructive text-white shadow-destructive/24 shadow-xs hover:bg-destructive/90 [:active,[data-pressed]]:inset-shadow-[0_1px_--theme(--color-black/8%)] [:disabled,[data-disabled],:active,[data-pressed]]:shadow-none data-disabled:hover:bg-destructive data-disabled:active:inset-shadow-none',\n\t\t\t\t'destructive-outline':\n\t\t\t\t\t'border-destructive/40 bg-transparent bg-clip-padding text-destructive shadow-xs not-disabled:not-data-disabled:not-active:not-data-pressed:before:shadow-[0_1px_--theme(--color-black/4%)] dark:bg-input/32 dark:not-in-data-[slot=group]:bg-clip-border dark:not-disabled:not-data-disabled:before:shadow-[0_-1px_--theme(--color-white/4%)] dark:not-disabled:not-data-disabled:not-active:not-data-pressed:before:shadow-[0_-1px_--theme(--color-white/8%)] [:disabled,[data-disabled],:active,[data-pressed]]:shadow-none [:hover,[data-pressed]]:border-destructive/60 [:hover,[data-pressed]]:bg-destructive/8 data-disabled:[:hover]:border-destructive/40 data-disabled:[:hover]:bg-transparent dark:data-disabled:[:hover]:bg-input/32',\n\t\t\t\tghost: 'border-transparent hover:bg-accent data-pressed:bg-accent data-disabled:hover:bg-transparent',\n\t\t\t\tlink: 'border-transparent underline-offset-4 hover:underline data-disabled:hover:no-underline',\n\t\t\t\toutline:\n\t\t\t\t\t'border-border bg-background bg-clip-padding shadow-xs not-disabled:not-data-disabled:not-active:not-data-pressed:before:shadow-[0_1px_--theme(--color-black/4%)] dark:bg-input/32 dark:not-in-data-[slot=group]:bg-clip-border dark:not-disabled:not-data-disabled:before:shadow-[0_-1px_--theme(--color-white/4%)] dark:not-disabled:not-data-disabled:not-active:not-data-pressed:before:shadow-[0_-1px_--theme(--color-white/8%)] [:disabled,[data-disabled],:active,[data-pressed]]:shadow-none [:hover,[data-pressed]]:bg-accent/50 dark:[:hover,[data-pressed]]:bg-input/64 data-disabled:[:hover]:bg-background dark:data-disabled:[:hover]:bg-input/32',\n\t\t\t\tsecondary:\n\t\t\t\t\t'border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/90 [:active,[data-pressed]]:bg-secondary/80 data-disabled:hover:bg-secondary data-disabled:active:bg-secondary',\n\t\t\t},\n\t\t\t// Opt-in: long or translated labels wrap onto more lines instead of\n\t\t\t// overflowing. The height becomes a minimum and the button may shrink\n\t\t\t// inside a flex row. Icon sizes ignore it (they have no label).\n\t\t\twrap: {\n\t\t\t\tfalse: null,\n\t\t\t\ttrue: 'max-w-full min-w-0 shrink whitespace-normal text-center [overflow-wrap:anywhere]',\n\t\t\t},\n\t\t},\n\t\tcompoundVariants: [\n\t\t\t{ wrap: true, size: 'default', className: 'h-auto min-h-10 py-[calc(--spacing(2)-1px)]' },\n\t\t\t{ wrap: true, size: 'sm', className: 'h-auto min-h-8 py-[calc(--spacing(1.5)-1px)]' },\n\t\t\t{ wrap: true, size: 'xs', className: 'h-auto min-h-7 py-[calc(--spacing(1)-1px)]' },\n\t\t\t{ wrap: true, size: 'lg', className: 'h-auto min-h-11 py-[calc(--spacing(2.5)-1px)]' },\n\t\t\t{ wrap: true, size: 'xl', className: 'h-auto min-h-12 py-[calc(--spacing(3)-1px)]' },\n\t\t],\n\t},\n);\n\ninterface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {\n\tvariant?: VariantProps<typeof buttonVariants>['variant'];\n\tsize?: VariantProps<typeof buttonVariants>['size'];\n\t/** Disables tactile press scaling when motion would distract from the interaction. */\n\tstatic?: boolean;\n\t/**\n\t * Lets the label wrap onto several lines (long or translated copy) instead of\n\t * staying on one line and overflowing. The height becomes a minimum and the\n\t * button can shrink inside a flex row. Off by default.\n\t */\n\twrap?: boolean;\n\t/** When true, merges props onto the child element instead of rendering a button */\n\tasChild?: boolean;\n\t/**\n\t * Keeps the button focusable and hoverable while disabled, disabled with `aria-disabled` instead, so a tooltip\n\t * explaining why it is disabled can still open. `TooltipTrigger` sets it on a `Button` child.\n\t */\n\tfocusableWhenDisabled?: boolean;\n}\n\nconst Button = React.forwardRef<HTMLButtonElement, ButtonProps>(\n\t({ className, variant, size, static: isStatic, wrap, asChild, focusableWhenDisabled, children, type = 'button', ...props }, ref) => {\n\t\tconst buttonClasses = cn(buttonVariants({ className, size, static: isStatic, variant, wrap }));\n\n\t\t// Base UI keeps a disabled button focusable, marks it `aria-disabled` and swallows the events a native disabled\n\t\t// button never receives, so a composed menu or dialog trigger cannot open and a consumer handler cannot run. It\n\t\t// renders the same element enabled or disabled, so toggling keeps focus and what the element holds.\n\t\tif (focusableWhenDisabled) {\n\t\t\treturn (\n\t\t\t\t<BaseButton\n\t\t\t\t\tref={ref}\n\t\t\t\t\tfocusableWhenDisabled\n\t\t\t\t\tnativeButton={!asChild}\n\t\t\t\t\trender={asChild && React.isValidElement(children) ? children : undefined}\n\t\t\t\t\ttype={asChild ? undefined : type}\n\t\t\t\t\tclassName={buttonClasses}\n\t\t\t\t\tdata-slot=\"button\"\n\t\t\t\t\t{...props}\n\t\t\t\t>\n\t\t\t\t\t{asChild ? undefined : children}\n\t\t\t\t</BaseButton>\n\t\t\t);\n\t\t}\n\n\t\tif (asChild) {\n\t\t\treturn (\n\t\t\t\t<Slot ref={ref as React.Ref<HTMLElement>} className={buttonClasses} data-slot=\"button\" {...props}>\n\t\t\t\t\t{children}\n\t\t\t\t</Slot>\n\t\t\t);\n\t\t}\n\n\t\treturn (\n\t\t\t<button ref={ref} type={type} className={buttonClasses} data-slot=\"button\" {...props}>\n\t\t\t\t{children}\n\t\t\t</button>\n\t\t);\n\t},\n);\nButton.displayName = 'Button';\n\nexport { Button, buttonVariants };\nexport type { ButtonProps };\n"],"mappings":";;;;;;;;;;;;AAOA,MAAM,mDACL,gpBACA;CACC,iBAAiB;EAChB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,MAAM;CACP;CACA,UAAU;EACT,QAAQ;GACP,OAAO;GACP,MAAM;EACP;EACA,MAAM;GACL,SAAS;GACT,MAAM;GACN,WAAW;GACX,WAAW;GACX,WAAW;GACX,WACC;GACD,IAAI;GACJ,IACC;GACD,IAAI;GACJ,IACC;EACF;EACA,SAAS;GACR,SACC;GACD,aACC;GACD,uBACC;GACD,OAAO;GACP,MAAM;GACN,SACC;GACD,WACC;EACF;EAIA,MAAM;GACL,OAAO;GACP,MAAM;EACP;CACD;CACA,kBAAkB;EACjB;GAAE,MAAM;GAAM,MAAM;GAAW,WAAW;EAA8C;EACxF;GAAE,MAAM;GAAM,MAAM;GAAM,WAAW;EAA+C;EACpF;GAAE,MAAM;GAAM,MAAM;GAAM,WAAW;EAA6C;EAClF;GAAE,MAAM;GAAM,MAAM;GAAM,WAAW;EAAgD;EACrF;GAAE,MAAM;GAAM,MAAM;GAAM,WAAW;EAA8C;CACpF;AACD,CACD;AAsBA,MAAM,SAASA,MAAM,YACnB,EAAE,WAAW,SAAS,MAAM,QAAQ,UAAU,MAAM,SAAS,uBAAuB,UAAU,OAAO,UAAU,GAAG,SAAS,QAAQ;CACnI,MAAM,gBAAgBC,iBAAG,eAAe;EAAE;EAAW;EAAM,QAAQ;EAAU;EAAS;CAAK,CAAC,CAAC;CAK7F,IAAI,uBACH,OACC,2CAACC,8BAAD;EACM;EACL;EACA,cAAc,CAAC;EACf,QAAQ,WAAWF,MAAM,eAAe,QAAQ,IAAI,WAAW;EAC/D,MAAM,UAAU,SAAY;EAC5B,WAAW;EACX,aAAU;EACV,GAAI;YAEH,UAAU,SAAY;CACZ;CAId,IAAI,SACH,OACC,2CAACG,mBAAD;EAAW;EAA+B,WAAW;EAAe,aAAU;EAAS,GAAI;EACzF;CACI;CAIR,OACC,2CAAC,UAAD;EAAa;EAAW;EAAM,WAAW;EAAe,aAAU;EAAS,GAAI;EAC7E;CACM;AAEV,CACD;AACA,OAAO,cAAc"}
|
|
@@ -3,8 +3,8 @@ import { VariantProps } from "class-variance-authority";
|
|
|
3
3
|
//#region src/components/button.d.ts
|
|
4
4
|
declare const buttonVariants: (props?: ({
|
|
5
5
|
static?: boolean | null | undefined;
|
|
6
|
-
size?: "default" | "icon" | "icon-lg" | "icon-sm" | "icon-xl" | "icon-xs" | "lg" | "
|
|
7
|
-
variant?: "default" | "
|
|
6
|
+
size?: "default" | "sm" | "icon" | "icon-lg" | "icon-sm" | "icon-xl" | "icon-xs" | "lg" | "xl" | "xs" | null | undefined;
|
|
7
|
+
variant?: "default" | "ghost" | "destructive" | "destructive-outline" | "link" | "outline" | "secondary" | null | undefined;
|
|
8
8
|
wrap?: boolean | null | undefined;
|
|
9
9
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
10
10
|
interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
@@ -3,8 +3,8 @@ import { VariantProps } from "class-variance-authority";
|
|
|
3
3
|
//#region src/components/button.d.ts
|
|
4
4
|
declare const buttonVariants: (props?: ({
|
|
5
5
|
static?: boolean | null | undefined;
|
|
6
|
-
size?: "default" | "icon" | "icon-lg" | "icon-sm" | "icon-xl" | "icon-xs" | "lg" | "
|
|
7
|
-
variant?: "default" | "
|
|
6
|
+
size?: "default" | "sm" | "icon" | "icon-lg" | "icon-sm" | "icon-xl" | "icon-xs" | "lg" | "xl" | "xs" | null | undefined;
|
|
7
|
+
variant?: "default" | "ghost" | "destructive" | "destructive-outline" | "link" | "outline" | "secondary" | null | undefined;
|
|
8
8
|
wrap?: boolean | null | undefined;
|
|
9
9
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
10
10
|
interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
@@ -24,12 +24,12 @@ const buttonVariants = cva("[&_svg]:-mx-0.5 relative inline-flex shrink-0 cursor
|
|
|
24
24
|
icon: "size-10 pointer-coarse:size-11",
|
|
25
25
|
"icon-lg": "size-11",
|
|
26
26
|
"icon-sm": "size-8 pointer-coarse:size-11",
|
|
27
|
-
"icon-xl": "size-11 [&_svg:not([class
|
|
27
|
+
"icon-xl": "size-11 [&_svg:not([class*='size-'])]:size-5",
|
|
28
28
|
"icon-xs": "size-7 rounded-md before:rounded-[calc(var(--radius-md)-1px)] pointer-coarse:size-11 not-in-data-[slot=input-group]:[&_svg:not([class*=\"size-\"])]:size-4",
|
|
29
29
|
lg: "h-11 min-w-11 px-[calc(--spacing(3.5)-1px)]",
|
|
30
30
|
sm: "h-8 gap-1.5 px-[calc(--spacing(2.5)-1px)] pointer-coarse:min-h-11 pointer-coarse:min-w-11",
|
|
31
|
-
xl: "h-12 min-w-12 px-[calc(--spacing(4)-1px)] text-lg [&_svg:not([class
|
|
32
|
-
xs: "h-7 gap-1 rounded-md px-[calc(--spacing(2)-1px)] text-xs before:rounded-[calc(var(--radius-md)-1px)] pointer-coarse:min-h-11 pointer-coarse:min-w-11 [&_svg:not([class
|
|
31
|
+
xl: "h-12 min-w-12 px-[calc(--spacing(4)-1px)] text-lg [&_svg:not([class*='size-'])]:size-5",
|
|
32
|
+
xs: "h-7 gap-1 rounded-md px-[calc(--spacing(2)-1px)] text-xs before:rounded-[calc(var(--radius-md)-1px)] pointer-coarse:min-h-11 pointer-coarse:min-w-11 [&_svg:not([class*='size-'])]:size-3.5"
|
|
33
33
|
},
|
|
34
34
|
variant: {
|
|
35
35
|
default: "not-disabled:not-data-disabled:inset-shadow-[0_1px_--theme(--color-white/16%)] border-primary bg-primary text-primary-foreground shadow-primary/24 shadow-xs hover:bg-primary/90 [:active,[data-pressed]]:inset-shadow-[0_1px_--theme(--color-black/8%)] [:disabled,[data-disabled],:active,[data-pressed]]:shadow-none data-disabled:hover:bg-primary data-disabled:active:inset-shadow-none",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.js","names":["React","BaseButton"],"sources":["../../src/components/button.tsx"],"sourcesContent":["import * as React from 'react';\nimport { Button as BaseButton } from '@base-ui/react/button';\nimport { cva, type VariantProps } from 'class-variance-authority';\n\nimport { Slot } from '../lib/slot';\nimport { cn } from '../lib/utils';\n\nconst buttonVariants = cva(\n\t\"[&_svg]:-mx-0.5 relative inline-flex shrink-0 cursor-pointer items-center justify-center gap-2 whitespace-nowrap rounded-md border font-medium text-sm outline-none transition-[box-shadow,scale] duration-(--duration-moderate) ease-out before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-md)-1px)] focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-64 data-disabled:cursor-not-allowed data-disabled:opacity-64 motion-reduce:transition-shadow [&_svg:not([class*='opacity-'])]:opacity-80 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0\",\n\t{\n\t\tdefaultVariants: {\n\t\t\tsize: 'default',\n\t\t\tstatic: false,\n\t\t\tvariant: 'default',\n\t\t\twrap: false,\n\t\t},\n\t\tvariants: {\n\t\t\tstatic: {\n\t\t\t\tfalse: 'motion-safe:active:not-disabled:not-data-disabled:scale-[0.96]',\n\t\t\t\ttrue: null,\n\t\t\t},\n\t\t\tsize: {\n\t\t\t\tdefault: 'h-10 min-w-10 px-[calc(--spacing(3)-1px)] pointer-coarse:min-h-11 pointer-coarse:min-w-11',\n\t\t\t\ticon: 'size-10 pointer-coarse:size-11',\n\t\t\t\t'icon-lg': 'size-11',\n\t\t\t\t'icon-sm': 'size-8 pointer-coarse:size-11',\n\t\t\t\t'icon-xl':
|
|
1
|
+
{"version":3,"file":"button.js","names":["React","BaseButton"],"sources":["../../src/components/button.tsx"],"sourcesContent":["import * as React from 'react';\nimport { Button as BaseButton } from '@base-ui/react/button';\nimport { cva, type VariantProps } from 'class-variance-authority';\n\nimport { Slot } from '../lib/slot';\nimport { cn } from '../lib/utils';\n\nconst buttonVariants = cva(\n\t\"[&_svg]:-mx-0.5 relative inline-flex shrink-0 cursor-pointer items-center justify-center gap-2 whitespace-nowrap rounded-md border font-medium text-sm outline-none transition-[box-shadow,scale] duration-(--duration-moderate) ease-out before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-md)-1px)] focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-64 data-disabled:cursor-not-allowed data-disabled:opacity-64 motion-reduce:transition-shadow [&_svg:not([class*='opacity-'])]:opacity-80 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0\",\n\t{\n\t\tdefaultVariants: {\n\t\t\tsize: 'default',\n\t\t\tstatic: false,\n\t\t\tvariant: 'default',\n\t\t\twrap: false,\n\t\t},\n\t\tvariants: {\n\t\t\tstatic: {\n\t\t\t\tfalse: 'motion-safe:active:not-disabled:not-data-disabled:scale-[0.96]',\n\t\t\t\ttrue: null,\n\t\t\t},\n\t\t\tsize: {\n\t\t\t\tdefault: 'h-10 min-w-10 px-[calc(--spacing(3)-1px)] pointer-coarse:min-h-11 pointer-coarse:min-w-11',\n\t\t\t\ticon: 'size-10 pointer-coarse:size-11',\n\t\t\t\t'icon-lg': 'size-11',\n\t\t\t\t'icon-sm': 'size-8 pointer-coarse:size-11',\n\t\t\t\t'icon-xl': \"size-11 [&_svg:not([class*='size-'])]:size-5\",\n\t\t\t\t'icon-xs':\n\t\t\t\t\t'size-7 rounded-md before:rounded-[calc(var(--radius-md)-1px)] pointer-coarse:size-11 not-in-data-[slot=input-group]:[&_svg:not([class*=\"size-\"])]:size-4',\n\t\t\t\tlg: 'h-11 min-w-11 px-[calc(--spacing(3.5)-1px)]',\n\t\t\t\tsm:\n\t\t\t\t\t'h-8 gap-1.5 px-[calc(--spacing(2.5)-1px)] pointer-coarse:min-h-11 pointer-coarse:min-w-11',\n\t\t\t\txl: \"h-12 min-w-12 px-[calc(--spacing(4)-1px)] text-lg [&_svg:not([class*='size-'])]:size-5\",\n\t\t\t\txs:\n\t\t\t\t\t\"h-7 gap-1 rounded-md px-[calc(--spacing(2)-1px)] text-xs before:rounded-[calc(var(--radius-md)-1px)] pointer-coarse:min-h-11 pointer-coarse:min-w-11 [&_svg:not([class*='size-'])]:size-3.5\",\n\t\t\t},\n\t\t\tvariant: {\n\t\t\t\tdefault:\n\t\t\t\t\t'not-disabled:not-data-disabled:inset-shadow-[0_1px_--theme(--color-white/16%)] border-primary bg-primary text-primary-foreground shadow-primary/24 shadow-xs hover:bg-primary/90 [:active,[data-pressed]]:inset-shadow-[0_1px_--theme(--color-black/8%)] [:disabled,[data-disabled],:active,[data-pressed]]:shadow-none data-disabled:hover:bg-primary data-disabled:active:inset-shadow-none',\n\t\t\t\tdestructive:\n\t\t\t\t\t'not-disabled:not-data-disabled:inset-shadow-[0_1px_--theme(--color-white/16%)] border-destructive bg-destructive text-white shadow-destructive/24 shadow-xs hover:bg-destructive/90 [:active,[data-pressed]]:inset-shadow-[0_1px_--theme(--color-black/8%)] [:disabled,[data-disabled],:active,[data-pressed]]:shadow-none data-disabled:hover:bg-destructive data-disabled:active:inset-shadow-none',\n\t\t\t\t'destructive-outline':\n\t\t\t\t\t'border-destructive/40 bg-transparent bg-clip-padding text-destructive shadow-xs not-disabled:not-data-disabled:not-active:not-data-pressed:before:shadow-[0_1px_--theme(--color-black/4%)] dark:bg-input/32 dark:not-in-data-[slot=group]:bg-clip-border dark:not-disabled:not-data-disabled:before:shadow-[0_-1px_--theme(--color-white/4%)] dark:not-disabled:not-data-disabled:not-active:not-data-pressed:before:shadow-[0_-1px_--theme(--color-white/8%)] [:disabled,[data-disabled],:active,[data-pressed]]:shadow-none [:hover,[data-pressed]]:border-destructive/60 [:hover,[data-pressed]]:bg-destructive/8 data-disabled:[:hover]:border-destructive/40 data-disabled:[:hover]:bg-transparent dark:data-disabled:[:hover]:bg-input/32',\n\t\t\t\tghost: 'border-transparent hover:bg-accent data-pressed:bg-accent data-disabled:hover:bg-transparent',\n\t\t\t\tlink: 'border-transparent underline-offset-4 hover:underline data-disabled:hover:no-underline',\n\t\t\t\toutline:\n\t\t\t\t\t'border-border bg-background bg-clip-padding shadow-xs not-disabled:not-data-disabled:not-active:not-data-pressed:before:shadow-[0_1px_--theme(--color-black/4%)] dark:bg-input/32 dark:not-in-data-[slot=group]:bg-clip-border dark:not-disabled:not-data-disabled:before:shadow-[0_-1px_--theme(--color-white/4%)] dark:not-disabled:not-data-disabled:not-active:not-data-pressed:before:shadow-[0_-1px_--theme(--color-white/8%)] [:disabled,[data-disabled],:active,[data-pressed]]:shadow-none [:hover,[data-pressed]]:bg-accent/50 dark:[:hover,[data-pressed]]:bg-input/64 data-disabled:[:hover]:bg-background dark:data-disabled:[:hover]:bg-input/32',\n\t\t\t\tsecondary:\n\t\t\t\t\t'border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/90 [:active,[data-pressed]]:bg-secondary/80 data-disabled:hover:bg-secondary data-disabled:active:bg-secondary',\n\t\t\t},\n\t\t\t// Opt-in: long or translated labels wrap onto more lines instead of\n\t\t\t// overflowing. The height becomes a minimum and the button may shrink\n\t\t\t// inside a flex row. Icon sizes ignore it (they have no label).\n\t\t\twrap: {\n\t\t\t\tfalse: null,\n\t\t\t\ttrue: 'max-w-full min-w-0 shrink whitespace-normal text-center [overflow-wrap:anywhere]',\n\t\t\t},\n\t\t},\n\t\tcompoundVariants: [\n\t\t\t{ wrap: true, size: 'default', className: 'h-auto min-h-10 py-[calc(--spacing(2)-1px)]' },\n\t\t\t{ wrap: true, size: 'sm', className: 'h-auto min-h-8 py-[calc(--spacing(1.5)-1px)]' },\n\t\t\t{ wrap: true, size: 'xs', className: 'h-auto min-h-7 py-[calc(--spacing(1)-1px)]' },\n\t\t\t{ wrap: true, size: 'lg', className: 'h-auto min-h-11 py-[calc(--spacing(2.5)-1px)]' },\n\t\t\t{ wrap: true, size: 'xl', className: 'h-auto min-h-12 py-[calc(--spacing(3)-1px)]' },\n\t\t],\n\t},\n);\n\ninterface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {\n\tvariant?: VariantProps<typeof buttonVariants>['variant'];\n\tsize?: VariantProps<typeof buttonVariants>['size'];\n\t/** Disables tactile press scaling when motion would distract from the interaction. */\n\tstatic?: boolean;\n\t/**\n\t * Lets the label wrap onto several lines (long or translated copy) instead of\n\t * staying on one line and overflowing. The height becomes a minimum and the\n\t * button can shrink inside a flex row. Off by default.\n\t */\n\twrap?: boolean;\n\t/** When true, merges props onto the child element instead of rendering a button */\n\tasChild?: boolean;\n\t/**\n\t * Keeps the button focusable and hoverable while disabled, disabled with `aria-disabled` instead, so a tooltip\n\t * explaining why it is disabled can still open. `TooltipTrigger` sets it on a `Button` child.\n\t */\n\tfocusableWhenDisabled?: boolean;\n}\n\nconst Button = React.forwardRef<HTMLButtonElement, ButtonProps>(\n\t({ className, variant, size, static: isStatic, wrap, asChild, focusableWhenDisabled, children, type = 'button', ...props }, ref) => {\n\t\tconst buttonClasses = cn(buttonVariants({ className, size, static: isStatic, variant, wrap }));\n\n\t\t// Base UI keeps a disabled button focusable, marks it `aria-disabled` and swallows the events a native disabled\n\t\t// button never receives, so a composed menu or dialog trigger cannot open and a consumer handler cannot run. It\n\t\t// renders the same element enabled or disabled, so toggling keeps focus and what the element holds.\n\t\tif (focusableWhenDisabled) {\n\t\t\treturn (\n\t\t\t\t<BaseButton\n\t\t\t\t\tref={ref}\n\t\t\t\t\tfocusableWhenDisabled\n\t\t\t\t\tnativeButton={!asChild}\n\t\t\t\t\trender={asChild && React.isValidElement(children) ? children : undefined}\n\t\t\t\t\ttype={asChild ? undefined : type}\n\t\t\t\t\tclassName={buttonClasses}\n\t\t\t\t\tdata-slot=\"button\"\n\t\t\t\t\t{...props}\n\t\t\t\t>\n\t\t\t\t\t{asChild ? undefined : children}\n\t\t\t\t</BaseButton>\n\t\t\t);\n\t\t}\n\n\t\tif (asChild) {\n\t\t\treturn (\n\t\t\t\t<Slot ref={ref as React.Ref<HTMLElement>} className={buttonClasses} data-slot=\"button\" {...props}>\n\t\t\t\t\t{children}\n\t\t\t\t</Slot>\n\t\t\t);\n\t\t}\n\n\t\treturn (\n\t\t\t<button ref={ref} type={type} className={buttonClasses} data-slot=\"button\" {...props}>\n\t\t\t\t{children}\n\t\t\t</button>\n\t\t);\n\t},\n);\nButton.displayName = 'Button';\n\nexport { Button, buttonVariants };\nexport type { ButtonProps };\n"],"mappings":";;;;;;;;;AAOA,MAAM,iBAAiB,IACtB,gpBACA;CACC,iBAAiB;EAChB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,MAAM;CACP;CACA,UAAU;EACT,QAAQ;GACP,OAAO;GACP,MAAM;EACP;EACA,MAAM;GACL,SAAS;GACT,MAAM;GACN,WAAW;GACX,WAAW;GACX,WAAW;GACX,WACC;GACD,IAAI;GACJ,IACC;GACD,IAAI;GACJ,IACC;EACF;EACA,SAAS;GACR,SACC;GACD,aACC;GACD,uBACC;GACD,OAAO;GACP,MAAM;GACN,SACC;GACD,WACC;EACF;EAIA,MAAM;GACL,OAAO;GACP,MAAM;EACP;CACD;CACA,kBAAkB;EACjB;GAAE,MAAM;GAAM,MAAM;GAAW,WAAW;EAA8C;EACxF;GAAE,MAAM;GAAM,MAAM;GAAM,WAAW;EAA+C;EACpF;GAAE,MAAM;GAAM,MAAM;GAAM,WAAW;EAA6C;EAClF;GAAE,MAAM;GAAM,MAAM;GAAM,WAAW;EAAgD;EACrF;GAAE,MAAM;GAAM,MAAM;GAAM,WAAW;EAA8C;CACpF;AACD,CACD;AAsBA,MAAM,SAASA,QAAM,YACnB,EAAE,WAAW,SAAS,MAAM,QAAQ,UAAU,MAAM,SAAS,uBAAuB,UAAU,OAAO,UAAU,GAAG,SAAS,QAAQ;CACnI,MAAM,gBAAgB,GAAG,eAAe;EAAE;EAAW;EAAM,QAAQ;EAAU;EAAS;CAAK,CAAC,CAAC;CAK7F,IAAI,uBACH,OACC,oBAACC,UAAD;EACM;EACL;EACA,cAAc,CAAC;EACf,QAAQ,WAAWD,QAAM,eAAe,QAAQ,IAAI,WAAW;EAC/D,MAAM,UAAU,SAAY;EAC5B,WAAW;EACX,aAAU;EACV,GAAI;YAEH,UAAU,SAAY;CACZ;CAId,IAAI,SACH,OACC,oBAAC,MAAD;EAAW;EAA+B,WAAW;EAAe,aAAU;EAAS,GAAI;EACzF;CACI;CAIR,OACC,oBAAC,UAAD;EAAa;EAAW;EAAM,WAAW;EAAe,aAAU;EAAS,GAAI;EAC7E;CACM;AAEV,CACD;AACA,OAAO,cAAc"}
|
|
@@ -2,7 +2,7 @@ import * as React$1 from "react";
|
|
|
2
2
|
import { VariantProps } from "class-variance-authority";
|
|
3
3
|
//#region src/components/card.d.ts
|
|
4
4
|
declare const cardVariants: (props?: ({
|
|
5
|
-
variant?: "default" | "
|
|
5
|
+
variant?: "default" | "elevated" | "flat" | "ghost" | "interactive" | null | undefined;
|
|
6
6
|
size?: "default" | "sm" | null | undefined;
|
|
7
7
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
8
|
interface CardProps extends React$1.ComponentProps<'div'>, VariantProps<typeof cardVariants> {}
|
|
@@ -2,7 +2,7 @@ import * as React$1 from "react";
|
|
|
2
2
|
import { VariantProps } from "class-variance-authority";
|
|
3
3
|
//#region src/components/card.d.ts
|
|
4
4
|
declare const cardVariants: (props?: ({
|
|
5
|
-
variant?: "default" | "
|
|
5
|
+
variant?: "default" | "elevated" | "flat" | "ghost" | "interactive" | null | undefined;
|
|
6
6
|
size?: "default" | "sm" | null | undefined;
|
|
7
7
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
8
|
interface CardProps extends React$1.ComponentProps<'div'>, VariantProps<typeof cardVariants> {}
|
|
@@ -26,7 +26,7 @@ function Collapsible({ className, ...props }) {
|
|
|
26
26
|
* Supports asChild pattern for custom trigger elements.
|
|
27
27
|
*/
|
|
28
28
|
const CollapsibleTrigger = react.forwardRef(({ className, asChild, nativeButton, children, render, ...props }, ref) => {
|
|
29
|
-
const triggerClassName = require_utils.cn("group/trigger flex w-full cursor-pointer items-center justify-between text-start text-sm font-medium outline-none [overflow-wrap:anywhere] transition-[
|
|
29
|
+
const triggerClassName = require_utils.cn("group/trigger flex w-full cursor-pointer items-center justify-between text-start text-sm font-medium outline-none [overflow-wrap:anywhere] transition-[box-shadow]", "focus-visible:ring-[3px] focus-visible:ring-ring/50", "disabled:pointer-events-none disabled:opacity-64", "[&_[data-slot=collapsible-icon]]:transition-transform [&_[data-slot=collapsible-icon]]:duration-(--duration-slow)", "[&[data-panel-open]_[data-slot=collapsible-icon]]:rotate-180", className);
|
|
30
30
|
const childRender = render === void 0 && asChild && react.isValidElement(children) ? children : void 0;
|
|
31
31
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_collapsible.Collapsible.Trigger, {
|
|
32
32
|
ref,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collapsible.cjs","names":["CollapsiblePrimitive","cn","React"],"sources":["../../src/components/collapsible.tsx"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport { Collapsible as CollapsiblePrimitive } from \"@base-ui/react/collapsible\";\n\nimport { cn } from \"../lib/utils\";\n\n/**\n * Collapsible Root\n * Container for collapsible content with open/close state management.\n */\nfunction Collapsible({\n className,\n ...props\n}: CollapsiblePrimitive.Root.Props) {\n return (\n <CollapsiblePrimitive.Root\n data-slot=\"collapsible\"\n className={cn(\"group/collapsible\", className)}\n {...props}\n />\n );\n}\n\n/**\n * CollapsibleTrigger Props\n */\ntype CollapsibleTriggerProps = CollapsiblePrimitive.Trigger.Props & {\n /** When true, merges props onto the child element instead of rendering a button */\n asChild?: boolean;\n /** Whether the child renders a native button. Defaults to true when asChild is used. */\n nativeButton?: boolean;\n};\n\n/**\n * CollapsibleTrigger\n * Button that toggles the collapsible open/closed state.\n * Supports asChild pattern for custom trigger elements.\n */\nconst CollapsibleTrigger = React.forwardRef<\n HTMLButtonElement,\n CollapsibleTriggerProps\n>(({ className, asChild, nativeButton, children, render, ...props }, ref) => {\n const triggerClassName = cn(\n \"group/trigger flex w-full cursor-pointer items-center justify-between text-start text-sm font-medium outline-none [overflow-wrap:anywhere] transition-[
|
|
1
|
+
{"version":3,"file":"collapsible.cjs","names":["CollapsiblePrimitive","cn","React"],"sources":["../../src/components/collapsible.tsx"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport { Collapsible as CollapsiblePrimitive } from \"@base-ui/react/collapsible\";\n\nimport { cn } from \"../lib/utils\";\n\n/**\n * Collapsible Root\n * Container for collapsible content with open/close state management.\n */\nfunction Collapsible({\n className,\n ...props\n}: CollapsiblePrimitive.Root.Props) {\n return (\n <CollapsiblePrimitive.Root\n data-slot=\"collapsible\"\n className={cn(\"group/collapsible\", className)}\n {...props}\n />\n );\n}\n\n/**\n * CollapsibleTrigger Props\n */\ntype CollapsibleTriggerProps = CollapsiblePrimitive.Trigger.Props & {\n /** When true, merges props onto the child element instead of rendering a button */\n asChild?: boolean;\n /** Whether the child renders a native button. Defaults to true when asChild is used. */\n nativeButton?: boolean;\n};\n\n/**\n * CollapsibleTrigger\n * Button that toggles the collapsible open/closed state.\n * Supports asChild pattern for custom trigger elements.\n */\nconst CollapsibleTrigger = React.forwardRef<\n HTMLButtonElement,\n CollapsibleTriggerProps\n>(({ className, asChild, nativeButton, children, render, ...props }, ref) => {\n const triggerClassName = cn(\n \"group/trigger flex w-full cursor-pointer items-center justify-between text-start text-sm font-medium outline-none [overflow-wrap:anywhere] transition-[box-shadow]\",\n \"focus-visible:ring-[3px] focus-visible:ring-ring/50\",\n \"disabled:pointer-events-none disabled:opacity-64\",\n \"[&_[data-slot=collapsible-icon]]:transition-transform [&_[data-slot=collapsible-icon]]:duration-(--duration-slow)\",\n \"[&[data-panel-open]_[data-slot=collapsible-icon]]:rotate-180\",\n className\n );\n\n const childRender = render === undefined && asChild && React.isValidElement(children) ? children : undefined;\n\n return (\n <CollapsiblePrimitive.Trigger\n ref={ref}\n data-slot=\"collapsible-trigger\"\n nativeButton={nativeButton ?? (childRender ? true : undefined)}\n className={triggerClassName}\n render={render ?? childRender}\n {...props}\n >\n {childRender ? undefined : children}\n </CollapsiblePrimitive.Trigger>\n );\n});\nCollapsibleTrigger.displayName = \"CollapsibleTrigger\";\n\n/**\n * CollapsiblePanel Props\n */\ntype CollapsiblePanelProps = CollapsiblePrimitive.Panel.Props & {\n /** Additional className for the inner content wrapper */\n innerClassName?: string;\n};\n\n/**\n * CollapsiblePanel\n * Compositor-animated reveal for collapsible content.\n * Geometry snaps to its measured height while opacity/translation carry the state change.\n */\nconst CollapsiblePanel = React.forwardRef<HTMLDivElement, CollapsiblePanelProps>(\n ({ className, innerClassName, children, ...props }, ref) => {\n return (\n <CollapsiblePrimitive.Panel\n ref={ref}\n data-slot=\"collapsible-panel\"\n className={cn(\n \"h-[var(--collapsible-panel-height)] overflow-hidden text-sm\",\n \"origin-top transition-[opacity,transform] duration-(--duration-slow) ease-out motion-reduce:transition-none\",\n \"data-[ending-style]:translate-y-1 data-[ending-style]:opacity-0 data-[starting-style]:translate-y-1 data-[starting-style]:opacity-0\",\n className\n )}\n {...props}\n >\n <div\n data-slot=\"collapsible-panel-content\"\n className={cn(\"py-4 [overflow-wrap:anywhere]\", innerClassName)}\n >\n {children}\n </div>\n </CollapsiblePrimitive.Panel>\n );\n }\n);\nCollapsiblePanel.displayName = \"CollapsiblePanel\";\n\n/**\n * CollapsibleIcon\n * Animated chevron icon that rotates when the collapsible opens/closes.\n * Use this within CollapsibleTrigger for automatic rotation animation.\n */\nfunction CollapsibleIcon({\n className,\n ...props\n}: React.SVGProps<SVGSVGElement>) {\n return (\n <svg\n data-slot=\"collapsible-icon\"\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n className={cn(\"h-4 w-4 shrink-0 text-muted-foreground\", className)}\n {...props}\n >\n <path d=\"m6 9 6 6 6-6\" />\n </svg>\n );\n}\n\nexport {\n Collapsible,\n CollapsibleTrigger,\n CollapsiblePanel,\n CollapsiblePanel as CollapsibleContent,\n CollapsibleIcon,\n type CollapsibleTriggerProps,\n type CollapsiblePanelProps,\n};\n"],"mappings":";;;;;;;;;;;;;;;AAWA,SAAS,YAAY,EACnB,WACA,GAAG,SAC+B;CAClC,OACE,2CAACA,uCAAqB,MAAtB;EACE,aAAU;EACV,WAAWC,iBAAG,qBAAqB,SAAS;EAC5C,GAAI;CACL;AAEL;;;;;;AAiBA,MAAM,qBAAqBC,MAAM,YAG9B,EAAE,WAAW,SAAS,cAAc,UAAU,QAAQ,GAAG,SAAS,QAAQ;CAC3E,MAAM,mBAAmBD,iBACvB,sKACA,uDACA,oDACA,qHACA,gEACA,SACF;CAEA,MAAM,cAAc,WAAW,UAAa,WAAWC,MAAM,eAAe,QAAQ,IAAI,WAAW;CAEnG,OACE,2CAACF,uCAAqB,SAAtB;EACO;EACL,aAAU;EACV,cAAc,iBAAiB,cAAc,OAAO;EACpD,WAAW;EACX,QAAQ,UAAU;EAClB,GAAI;YAEH,cAAc,SAAY;CACC;AAElC,CAAC;AACD,mBAAmB,cAAc;;;;;;AAejC,MAAM,mBAAmBE,MAAM,YAC5B,EAAE,WAAW,gBAAgB,UAAU,GAAG,SAAS,QAAQ;CAC1D,OACE,2CAACF,uCAAqB,OAAtB;EACO;EACL,aAAU;EACV,WAAWC,iBACT,+DACA,+GACA,uIACA,SACF;EACA,GAAI;YAEJ,2CAAC,OAAD;GACE,aAAU;GACV,WAAWA,iBAAG,iCAAiC,cAAc;GAE5D;EACE;CACqB;AAEhC,CACF;AACA,iBAAiB,cAAc;;;;;;AAO/B,SAAS,gBAAgB,EACvB,WACA,GAAG,SAC6B;CAChC,OACE,2CAAC,OAAD;EACE,aAAU;EACV,OAAM;EACN,OAAM;EACN,QAAO;EACP,SAAQ;EACR,MAAK;EACL,QAAO;EACP,aAAY;EACZ,eAAc;EACd,gBAAe;EACf,WAAWA,iBAAG,0CAA0C,SAAS;EACjE,GAAI;YAEJ,2CAAC,QAAD,EAAM,GAAE,eAAgB;CACrB;AAET"}
|
|
@@ -23,7 +23,7 @@ function Collapsible({ className, ...props }) {
|
|
|
23
23
|
* Supports asChild pattern for custom trigger elements.
|
|
24
24
|
*/
|
|
25
25
|
const CollapsibleTrigger = React$1.forwardRef(({ className, asChild, nativeButton, children, render, ...props }, ref) => {
|
|
26
|
-
const triggerClassName = cn("group/trigger flex w-full cursor-pointer items-center justify-between text-start text-sm font-medium outline-none [overflow-wrap:anywhere] transition-[
|
|
26
|
+
const triggerClassName = cn("group/trigger flex w-full cursor-pointer items-center justify-between text-start text-sm font-medium outline-none [overflow-wrap:anywhere] transition-[box-shadow]", "focus-visible:ring-[3px] focus-visible:ring-ring/50", "disabled:pointer-events-none disabled:opacity-64", "[&_[data-slot=collapsible-icon]]:transition-transform [&_[data-slot=collapsible-icon]]:duration-(--duration-slow)", "[&[data-panel-open]_[data-slot=collapsible-icon]]:rotate-180", className);
|
|
27
27
|
const childRender = render === void 0 && asChild && React$1.isValidElement(children) ? children : void 0;
|
|
28
28
|
return /* @__PURE__ */ jsx(Collapsible$1.Trigger, {
|
|
29
29
|
ref,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collapsible.js","names":["CollapsiblePrimitive","React"],"sources":["../../src/components/collapsible.tsx"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport { Collapsible as CollapsiblePrimitive } from \"@base-ui/react/collapsible\";\n\nimport { cn } from \"../lib/utils\";\n\n/**\n * Collapsible Root\n * Container for collapsible content with open/close state management.\n */\nfunction Collapsible({\n className,\n ...props\n}: CollapsiblePrimitive.Root.Props) {\n return (\n <CollapsiblePrimitive.Root\n data-slot=\"collapsible\"\n className={cn(\"group/collapsible\", className)}\n {...props}\n />\n );\n}\n\n/**\n * CollapsibleTrigger Props\n */\ntype CollapsibleTriggerProps = CollapsiblePrimitive.Trigger.Props & {\n /** When true, merges props onto the child element instead of rendering a button */\n asChild?: boolean;\n /** Whether the child renders a native button. Defaults to true when asChild is used. */\n nativeButton?: boolean;\n};\n\n/**\n * CollapsibleTrigger\n * Button that toggles the collapsible open/closed state.\n * Supports asChild pattern for custom trigger elements.\n */\nconst CollapsibleTrigger = React.forwardRef<\n HTMLButtonElement,\n CollapsibleTriggerProps\n>(({ className, asChild, nativeButton, children, render, ...props }, ref) => {\n const triggerClassName = cn(\n \"group/trigger flex w-full cursor-pointer items-center justify-between text-start text-sm font-medium outline-none [overflow-wrap:anywhere] transition-[
|
|
1
|
+
{"version":3,"file":"collapsible.js","names":["CollapsiblePrimitive","React"],"sources":["../../src/components/collapsible.tsx"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport { Collapsible as CollapsiblePrimitive } from \"@base-ui/react/collapsible\";\n\nimport { cn } from \"../lib/utils\";\n\n/**\n * Collapsible Root\n * Container for collapsible content with open/close state management.\n */\nfunction Collapsible({\n className,\n ...props\n}: CollapsiblePrimitive.Root.Props) {\n return (\n <CollapsiblePrimitive.Root\n data-slot=\"collapsible\"\n className={cn(\"group/collapsible\", className)}\n {...props}\n />\n );\n}\n\n/**\n * CollapsibleTrigger Props\n */\ntype CollapsibleTriggerProps = CollapsiblePrimitive.Trigger.Props & {\n /** When true, merges props onto the child element instead of rendering a button */\n asChild?: boolean;\n /** Whether the child renders a native button. Defaults to true when asChild is used. */\n nativeButton?: boolean;\n};\n\n/**\n * CollapsibleTrigger\n * Button that toggles the collapsible open/closed state.\n * Supports asChild pattern for custom trigger elements.\n */\nconst CollapsibleTrigger = React.forwardRef<\n HTMLButtonElement,\n CollapsibleTriggerProps\n>(({ className, asChild, nativeButton, children, render, ...props }, ref) => {\n const triggerClassName = cn(\n \"group/trigger flex w-full cursor-pointer items-center justify-between text-start text-sm font-medium outline-none [overflow-wrap:anywhere] transition-[box-shadow]\",\n \"focus-visible:ring-[3px] focus-visible:ring-ring/50\",\n \"disabled:pointer-events-none disabled:opacity-64\",\n \"[&_[data-slot=collapsible-icon]]:transition-transform [&_[data-slot=collapsible-icon]]:duration-(--duration-slow)\",\n \"[&[data-panel-open]_[data-slot=collapsible-icon]]:rotate-180\",\n className\n );\n\n const childRender = render === undefined && asChild && React.isValidElement(children) ? children : undefined;\n\n return (\n <CollapsiblePrimitive.Trigger\n ref={ref}\n data-slot=\"collapsible-trigger\"\n nativeButton={nativeButton ?? (childRender ? true : undefined)}\n className={triggerClassName}\n render={render ?? childRender}\n {...props}\n >\n {childRender ? undefined : children}\n </CollapsiblePrimitive.Trigger>\n );\n});\nCollapsibleTrigger.displayName = \"CollapsibleTrigger\";\n\n/**\n * CollapsiblePanel Props\n */\ntype CollapsiblePanelProps = CollapsiblePrimitive.Panel.Props & {\n /** Additional className for the inner content wrapper */\n innerClassName?: string;\n};\n\n/**\n * CollapsiblePanel\n * Compositor-animated reveal for collapsible content.\n * Geometry snaps to its measured height while opacity/translation carry the state change.\n */\nconst CollapsiblePanel = React.forwardRef<HTMLDivElement, CollapsiblePanelProps>(\n ({ className, innerClassName, children, ...props }, ref) => {\n return (\n <CollapsiblePrimitive.Panel\n ref={ref}\n data-slot=\"collapsible-panel\"\n className={cn(\n \"h-[var(--collapsible-panel-height)] overflow-hidden text-sm\",\n \"origin-top transition-[opacity,transform] duration-(--duration-slow) ease-out motion-reduce:transition-none\",\n \"data-[ending-style]:translate-y-1 data-[ending-style]:opacity-0 data-[starting-style]:translate-y-1 data-[starting-style]:opacity-0\",\n className\n )}\n {...props}\n >\n <div\n data-slot=\"collapsible-panel-content\"\n className={cn(\"py-4 [overflow-wrap:anywhere]\", innerClassName)}\n >\n {children}\n </div>\n </CollapsiblePrimitive.Panel>\n );\n }\n);\nCollapsiblePanel.displayName = \"CollapsiblePanel\";\n\n/**\n * CollapsibleIcon\n * Animated chevron icon that rotates when the collapsible opens/closes.\n * Use this within CollapsibleTrigger for automatic rotation animation.\n */\nfunction CollapsibleIcon({\n className,\n ...props\n}: React.SVGProps<SVGSVGElement>) {\n return (\n <svg\n data-slot=\"collapsible-icon\"\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n className={cn(\"h-4 w-4 shrink-0 text-muted-foreground\", className)}\n {...props}\n >\n <path d=\"m6 9 6 6 6-6\" />\n </svg>\n );\n}\n\nexport {\n Collapsible,\n CollapsibleTrigger,\n CollapsiblePanel,\n CollapsiblePanel as CollapsibleContent,\n CollapsibleIcon,\n type CollapsibleTriggerProps,\n type CollapsiblePanelProps,\n};\n"],"mappings":";;;;;;;;;;;;AAWA,SAAS,YAAY,EACnB,WACA,GAAG,SAC+B;CAClC,OACE,oBAACA,cAAqB,MAAtB;EACE,aAAU;EACV,WAAW,GAAG,qBAAqB,SAAS;EAC5C,GAAI;CACL;AAEL;;;;;;AAiBA,MAAM,qBAAqBC,QAAM,YAG9B,EAAE,WAAW,SAAS,cAAc,UAAU,QAAQ,GAAG,SAAS,QAAQ;CAC3E,MAAM,mBAAmB,GACvB,sKACA,uDACA,oDACA,qHACA,gEACA,SACF;CAEA,MAAM,cAAc,WAAW,UAAa,WAAWA,QAAM,eAAe,QAAQ,IAAI,WAAW;CAEnG,OACE,oBAACD,cAAqB,SAAtB;EACO;EACL,aAAU;EACV,cAAc,iBAAiB,cAAc,OAAO;EACpD,WAAW;EACX,QAAQ,UAAU;EAClB,GAAI;YAEH,cAAc,SAAY;CACC;AAElC,CAAC;AACD,mBAAmB,cAAc;;;;;;AAejC,MAAM,mBAAmBC,QAAM,YAC5B,EAAE,WAAW,gBAAgB,UAAU,GAAG,SAAS,QAAQ;CAC1D,OACE,oBAACD,cAAqB,OAAtB;EACO;EACL,aAAU;EACV,WAAW,GACT,+DACA,+GACA,uIACA,SACF;EACA,GAAI;YAEJ,oBAAC,OAAD;GACE,aAAU;GACV,WAAW,GAAG,iCAAiC,cAAc;GAE5D;EACE;CACqB;AAEhC,CACF;AACA,iBAAiB,cAAc;;;;;;AAO/B,SAAS,gBAAgB,EACvB,WACA,GAAG,SAC6B;CAChC,OACE,oBAAC,OAAD;EACE,aAAU;EACV,OAAM;EACN,OAAM;EACN,QAAO;EACP,SAAQ;EACR,MAAK;EACL,QAAO;EACP,aAAY;EACZ,eAAc;EACd,gBAAe;EACf,WAAW,GAAG,0CAA0C,SAAS;EACjE,GAAI;YAEJ,oBAAC,QAAD,EAAM,GAAE,eAAgB;CACrB;AAET"}
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
4
4
|
const require_rolldown_runtime = require('../rolldown-runtime-D_qnwXdH.cjs');
|
|
5
5
|
const require_utils = require('../utils-CzTQ3-VI.cjs');
|
|
6
6
|
const require_components_input = require('./input.cjs');
|
|
7
|
-
const require_fluid_highlight = require('../fluid-highlight-
|
|
7
|
+
const require_fluid_highlight = require('../fluid-highlight-YWFRZXsw.cjs');
|
|
8
8
|
const require_components_scroll_area = require('./scroll-area.cjs');
|
|
9
9
|
let react = require("react");
|
|
10
10
|
react = require_rolldown_runtime.__toESM(react, 1);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { t as cn } from "../utils-BkMLyah9.js";
|
|
4
4
|
import { Input } from "./input.js";
|
|
5
|
-
import { t as FluidHighlight } from "../fluid-highlight-
|
|
5
|
+
import { t as FluidHighlight } from "../fluid-highlight-CNELHV8o.js";
|
|
6
6
|
import { ScrollArea } from "./scroll-area.js";
|
|
7
7
|
import * as React$1 from "react";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
const require_rolldown_runtime = require('../rolldown-runtime-D_qnwXdH.cjs');
|
|
5
5
|
const require_utils = require('../utils-CzTQ3-VI.cjs');
|
|
6
|
-
const require_fluid_highlight = require('../fluid-highlight-
|
|
6
|
+
const require_fluid_highlight = require('../fluid-highlight-YWFRZXsw.cjs');
|
|
7
7
|
let react = require("react");
|
|
8
8
|
react = require_rolldown_runtime.__toESM(react, 1);
|
|
9
9
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -53,9 +53,14 @@ function CommandInput({ className, placeholder, ...props }) {
|
|
|
53
53
|
})
|
|
54
54
|
});
|
|
55
55
|
}
|
|
56
|
-
|
|
56
|
+
/**
|
|
57
|
+
* Small pickers such as a model or worktree list pack their rows tighter than a command palette: 4px of padding,
|
|
58
|
+
* a thin scrollbar, and group headings in small, quiet text so the rows carry the weight.
|
|
59
|
+
*/
|
|
60
|
+
const COMPACT_LIST_CLASS = "[scrollbar-width:thin] scroll-py-1 p-1 not-empty:scroll-py-1 not-empty:p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:pt-2 [&_[cmdk-group-heading]]:pb-1 [&_[cmdk-group-heading]]:text-[0.6875rem] [&_[cmdk-group-heading]]:font-normal [&_[cmdk-group-heading]]:text-subtle-foreground";
|
|
61
|
+
function CommandList({ className, children, density = "default", ...props }) {
|
|
57
62
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(cmdk.Command.List, {
|
|
58
|
-
className: require_utils.cn("relative not-empty:scroll-py-2 not-empty:p-2 max-h-[300px] overflow-y-auto overflow-x-hidden", className),
|
|
63
|
+
className: require_utils.cn("relative not-empty:scroll-py-2 not-empty:p-2 max-h-[300px] overflow-y-auto overflow-x-hidden", density === "compact" && COMPACT_LIST_CLASS, className),
|
|
59
64
|
"data-slot": "command-list",
|
|
60
65
|
...props,
|
|
61
66
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_fluid_highlight.FluidHighlight, {}), children]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command.cjs","names":["CommandPrimitive","cn","ModalPortalScope","SearchIcon","FluidHighlight"],"sources":["../../src/components/command.tsx"],"sourcesContent":["\"use client\";\n\nimport { Command as CommandPrimitive } from \"cmdk\";\nimport { SearchIcon } from \"lucide-react\";\nimport * as React from \"react\";\nimport { ModalPortalScope, useRootPortalContainer } from \"@constructive-io/ui/portal\";\nimport { FluidHighlight } from \"../lib/motion/fluid-highlight\";\nimport { cn } from \"../lib/utils\";\n\nfunction CommandDialog({\n className,\n children,\n ...props\n}: React.ComponentProps<typeof CommandPrimitive.Dialog>) {\n const container = useRootPortalContainer();\n\n return (\n <CommandPrimitive.Dialog\n container={container ?? undefined}\n overlayClassName={cn(\n\t\t\"fixed inset-0 z-[var(--z-layer-toast)] bg-black/32 backdrop-blur-sm data-[state=open]:animate-[fade-in_200ms_ease-out] data-[state=closed]:animate-[fade-out_150ms_ease-in] motion-reduce:animate-none\",\n )}\n contentClassName={cn(\n \"fixed left-1/2 top-[max(--spacing(4),4vh)] sm:top-[10vh] z-[var(--z-layer-toast)] -translate-x-1/2 flex max-h-100 min-h-0 w-full min-w-0 max-w-xl flex-col rounded-lg border bg-popover bg-clip-padding text-popover-foreground shadow-lg max-sm:right-3 max-sm:left-3 max-sm:w-auto max-sm:translate-x-0 data-[state=open]:animate-[command-in_200ms_ease-out] data-[state=closed]:animate-[command-out_150ms_ease-in] motion-reduce:animate-none before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-lg)-1px)] before:bg-muted/50 before:shadow-[0_1px_--theme(--color-black/4%)] **:data-[slot=scroll-area-viewport]:data-has-overflow-y:pe-1 dark:bg-clip-border dark:before:shadow-[0_-1px_--theme(--color-white/8%)]\",\n className,\n )}\n loop\n {...props}\n >\n <ModalPortalScope>{children}</ModalPortalScope>\n </CommandPrimitive.Dialog>\n );\n}\n\nfunction CommandDialogPopup({\n children,\n className,\n ...props\n}: React.ComponentProps<\"div\">) {\n return (\n <div data-slot=\"command-dialog-popup\" className={className} {...props}>\n {children}\n </div>\n );\n}\n\nfunction Command({\n className,\n ...props\n}: React.ComponentProps<typeof CommandPrimitive>) {\n return (\n <CommandPrimitive\n className={cn(\n \"flex h-full w-full flex-col overflow-hidden rounded-lg\",\n className,\n )}\n data-slot=\"command\"\n {...props}\n />\n );\n}\n\nfunction CommandInput({\n className,\n placeholder,\n ...props\n}: React.ComponentProps<typeof CommandPrimitive.Input>) {\n return (\n <div className=\"px-2.5 py-1.5\" data-slot=\"command-input-wrapper\">\n <div\n className={cn(\n \"flex items-center gap-2 rounded-lg px-3 text-base\",\n className,\n )}\n >\n <SearchIcon className=\"size-4 shrink-0 text-muted-foreground\" />\n <CommandPrimitive.Input\n className=\"flex h-10 w-full bg-transparent text-sm outline-none placeholder:text-subtle-foreground disabled:cursor-not-allowed disabled:opacity-64\"\n placeholder={placeholder}\n data-slot=\"command-input\"\n {...props}\n />\n </div>\n </div>\n );\n}\n\nfunction CommandList({\n className,\n children,\n ...props\n}: React.ComponentProps<typeof CommandPrimitive.List>) {\n return (\n <CommandPrimitive.List\n className={cn(\"relative not-empty:scroll-py-2 not-empty:p-2 max-h-[300px] overflow-y-auto overflow-x-hidden\", className)}\n data-slot=\"command-list\"\n {...props}\n >\n <FluidHighlight />\n {children}\n </CommandPrimitive.List>\n );\n}\n\nfunction CommandEmpty({\n className,\n ...props\n}: React.ComponentProps<typeof CommandPrimitive.Empty>) {\n return (\n <CommandPrimitive.Empty\n className={cn(\"text-center text-muted-foreground text-sm not-empty:px-2 not-empty:py-6\", className)}\n data-slot=\"command-empty\"\n {...props}\n />\n );\n}\n\nfunction CommandPanel({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n className={cn(\n \"-mx-px relative min-h-0 rounded-t-lg border bg-popover bg-clip-padding shadow-xs [clip-path:inset(0_1px)] before:pointer-events-none before:absolute before:inset-0 before:rounded-t-[calc(var(--radius-lg)-1px)] **:data-[slot=scroll-area-scrollbar]:mt-2 dark:bg-clip-border dark:before:shadow-[0_-1px_--theme(--color-white/8%)]\",\n className,\n )}\n data-slot=\"command-panel\"\n {...props}\n />\n );\n}\n\nfunction CommandGroup({\n className,\n heading,\n children,\n ...props\n}: React.ComponentProps<typeof CommandPrimitive.Group> & {\n heading?: React.ReactNode;\n}) {\n return (\n <CommandPrimitive.Group\n className={cn(\n \"overflow-hidden text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground\",\n className,\n )}\n heading={heading}\n data-slot=\"command-group\"\n {...props}\n >\n {children}\n </CommandPrimitive.Group>\n );\n}\n\nfunction CommandGroupLabel({\n className,\n ...props\n}: React.ComponentProps<\"div\">) {\n return (\n <div\n className={cn(\n \"px-2 py-1.5 text-xs font-medium text-muted-foreground\",\n className,\n )}\n data-slot=\"command-group-label\"\n {...props}\n />\n );\n}\n\nfunction CommandCollection({ children }: { children: React.ReactNode }) {\n return <>{children}</>;\n}\n\n/**\n * cmdk identifies an item by its `value` (or its text when `value` is omitted), so two items with the same value\n * highlight together. Give items that can share a name a unique `value` and put the name in `keywords`.\n */\nfunction CommandItem({\n className,\n ...props\n}: React.ComponentProps<typeof CommandPrimitive.Item>) {\n return (\n <CommandPrimitive.Item\n className={cn(\n // `overflow-wrap:anywhere` lets an unbreakable label shrink and wrap, so the icon and shortcut keep their room.\n \"relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none [overflow-wrap:anywhere] pointer-coarse:min-h-11 data-[disabled=true]:pointer-events-none data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-64 [&_svg]:shrink-0\",\n className,\n )}\n data-slot=\"command-item\"\n {...props}\n />\n );\n}\n\nfunction CommandSeparator({\n className,\n ...props\n}: React.ComponentProps<typeof CommandPrimitive.Separator>) {\n return (\n <CommandPrimitive.Separator\n className={cn(\"-mx-1 my-2 h-px bg-border\", className)}\n data-slot=\"command-separator\"\n {...props}\n />\n );\n}\n\nfunction CommandShortcut({ className, children, ...props }: React.ComponentProps<\"kbd\">) {\n return (\n <span\n className={cn(\n \"ms-auto shrink-0 whitespace-nowrap font-medium text-subtle-foreground text-xs tracking-widest\",\n className,\n )}\n data-slot=\"command-shortcut\"\n {...props}\n >\n {/* Key glyphs read left to right in every writing direction, so isolate them from the surrounding text. */}\n <span dir=\"ltr\" className=\"[unicode-bidi:isolate]\">\n {children}\n </span>\n </span>\n );\n}\n\nfunction CommandFooter({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n className={cn(\n \"flex items-center justify-between gap-2 rounded-b-[calc(var(--radius-lg)-1px)] px-5 py-3 text-subtle-foreground text-xs\",\n className,\n )}\n data-slot=\"command-footer\"\n {...props}\n />\n );\n}\n\nexport {\n Command,\n CommandCollection,\n CommandDialog,\n CommandDialogPopup,\n CommandEmpty,\n CommandFooter,\n CommandGroup,\n CommandGroupLabel,\n CommandInput,\n CommandItem,\n CommandList,\n CommandPanel,\n CommandSeparator,\n CommandShortcut,\n};\n"],"mappings":";;;;;;;;;;;;;;AASA,SAAS,cAAc,EACrB,WACA,UACA,GAAG,SACoD;CACvD,MAAM,mEAAmC;CAEzC,OACE,2CAACA,aAAiB,QAAlB;EACE,WAAW,aAAa;EACxB,kBAAkBC,iBACtB,wMACI;EACA,kBAAkBA,iBAChB,suBACA,SACF;EACA;EACA,GAAI;YAEJ,2CAACC,6CAAD,EAAmB,SAA2B;CACvB;AAE7B;AAEA,SAAS,mBAAmB,EAC1B,UACA,WACA,GAAG,SAC2B;CAC9B,OACE,2CAAC,OAAD;EAAK,aAAU;EAAkC;EAAW,GAAI;EAC7D;CACE;AAET;AAEA,SAAS,QAAQ,EACf,WACA,GAAG,SAC6C;CAChD,OACE,2CAACF,cAAD;EACE,WAAWC,iBACT,0DACA,SACF;EACA,aAAU;EACV,GAAI;CACL;AAEL;AAEA,SAAS,aAAa,EACpB,WACA,aACA,GAAG,SACmD;CACtD,OACE,2CAAC,OAAD;EAAK,WAAU;EAAgB,aAAU;YACvC,4CAAC,OAAD;GACE,WAAWA,iBACT,qDACA,SACF;aAJF,CAME,2CAACE,yBAAD,EAAY,WAAU,wCAAyC,IAC/D,2CAACH,aAAiB,OAAlB;IACE,WAAU;IACG;IACb,aAAU;IACV,GAAI;GACL,EACE;;CACF;AAET;AAEA,SAAS,YAAY,EACnB,WACA,UACA,GAAG,SACkD;CACrD,OACE,4CAACA,aAAiB,MAAlB;EACE,WAAWC,iBAAG,gGAAgG,SAAS;EACvH,aAAU;EACV,GAAI;YAHN,CAKE,2CAACG,wCAAD,CAAiB,IAChB,QACoB;;AAE3B;AAEA,SAAS,aAAa,EACpB,WACA,GAAG,SACmD;CACtD,OACE,2CAACJ,aAAiB,OAAlB;EACE,WAAWC,iBAAG,2EAA2E,SAAS;EAClG,aAAU;EACV,GAAI;CACL;AAEL;AAEA,SAAS,aAAa,EAAE,WAAW,GAAG,SAAsC;CAC1E,OACE,2CAAC,OAAD;EACE,WAAWA,iBACT,yUACA,SACF;EACA,aAAU;EACV,GAAI;CACL;AAEL;AAEA,SAAS,aAAa,EACpB,WACA,SACA,UACA,GAAG,SAGF;CACD,OACE,2CAACD,aAAiB,OAAlB;EACE,WAAWC,iBACT,sNACA,SACF;EACS;EACT,aAAU;EACV,GAAI;EAEH;CACqB;AAE5B;AAEA,SAAS,kBAAkB,EACzB,WACA,GAAG,SAC2B;CAC9B,OACE,2CAAC,OAAD;EACE,WAAWA,iBACT,yDACA,SACF;EACA,aAAU;EACV,GAAI;CACL;AAEL;AAEA,SAAS,kBAAkB,EAAE,YAA2C;CACtE,OAAO,yEAAG,SAAW;AACvB;;;;;AAMA,SAAS,YAAY,EACnB,WACA,GAAG,SACkD;CACrD,OACE,2CAACD,aAAiB,MAAlB;EACE,WAAWC,iBAET,kSACA,SACF;EACA,aAAU;EACV,GAAI;CACL;AAEL;AAEA,SAAS,iBAAiB,EACxB,WACA,GAAG,SACuD;CAC1D,OACE,2CAACD,aAAiB,WAAlB;EACE,WAAWC,iBAAG,6BAA6B,SAAS;EACpD,aAAU;EACV,GAAI;CACL;AAEL;AAEA,SAAS,gBAAgB,EAAE,WAAW,UAAU,GAAG,SAAsC;CACvF,OACE,2CAAC,QAAD;EACE,WAAWA,iBACT,iGACA,SACF;EACA,aAAU;EACV,GAAI;YAGJ,2CAAC,QAAD;GAAM,KAAI;GAAM,WAAU;GACvB;EACG;CACF;AAEV;AAEA,SAAS,cAAc,EAAE,WAAW,GAAG,SAAsC;CAC3E,OACE,2CAAC,OAAD;EACE,WAAWA,iBACT,2HACA,SACF;EACA,aAAU;EACV,GAAI;CACL;AAEL"}
|
|
1
|
+
{"version":3,"file":"command.cjs","names":["CommandPrimitive","cn","ModalPortalScope","SearchIcon","FluidHighlight"],"sources":["../../src/components/command.tsx"],"sourcesContent":["\"use client\";\n\nimport { Command as CommandPrimitive } from \"cmdk\";\nimport { SearchIcon } from \"lucide-react\";\nimport * as React from \"react\";\nimport { ModalPortalScope, useRootPortalContainer } from \"@constructive-io/ui/portal\";\nimport { FluidHighlight } from \"../lib/motion/fluid-highlight\";\nimport { cn } from \"../lib/utils\";\n\nfunction CommandDialog({\n className,\n children,\n ...props\n}: React.ComponentProps<typeof CommandPrimitive.Dialog>) {\n const container = useRootPortalContainer();\n\n return (\n <CommandPrimitive.Dialog\n container={container ?? undefined}\n overlayClassName={cn(\n\t\t\"fixed inset-0 z-[var(--z-layer-toast)] bg-black/32 backdrop-blur-sm data-[state=open]:animate-[fade-in_200ms_ease-out] data-[state=closed]:animate-[fade-out_150ms_ease-in] motion-reduce:animate-none\",\n )}\n contentClassName={cn(\n \"fixed left-1/2 top-[max(--spacing(4),4vh)] sm:top-[10vh] z-[var(--z-layer-toast)] -translate-x-1/2 flex max-h-100 min-h-0 w-full min-w-0 max-w-xl flex-col rounded-lg border bg-popover bg-clip-padding text-popover-foreground shadow-lg max-sm:right-3 max-sm:left-3 max-sm:w-auto max-sm:translate-x-0 data-[state=open]:animate-[command-in_200ms_ease-out] data-[state=closed]:animate-[command-out_150ms_ease-in] motion-reduce:animate-none before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-lg)-1px)] before:bg-muted/50 before:shadow-[0_1px_--theme(--color-black/4%)] **:data-[slot=scroll-area-viewport]:data-has-overflow-y:pe-1 dark:bg-clip-border dark:before:shadow-[0_-1px_--theme(--color-white/8%)]\",\n className,\n )}\n loop\n {...props}\n >\n <ModalPortalScope>{children}</ModalPortalScope>\n </CommandPrimitive.Dialog>\n );\n}\n\nfunction CommandDialogPopup({\n children,\n className,\n ...props\n}: React.ComponentProps<\"div\">) {\n return (\n <div data-slot=\"command-dialog-popup\" className={className} {...props}>\n {children}\n </div>\n );\n}\n\nfunction Command({\n className,\n ...props\n}: React.ComponentProps<typeof CommandPrimitive>) {\n return (\n <CommandPrimitive\n className={cn(\n \"flex h-full w-full flex-col overflow-hidden rounded-lg\",\n className,\n )}\n data-slot=\"command\"\n {...props}\n />\n );\n}\n\nfunction CommandInput({\n className,\n placeholder,\n ...props\n}: React.ComponentProps<typeof CommandPrimitive.Input>) {\n return (\n <div className=\"px-2.5 py-1.5\" data-slot=\"command-input-wrapper\">\n <div\n className={cn(\n \"flex items-center gap-2 rounded-lg px-3 text-base\",\n className,\n )}\n >\n <SearchIcon className=\"size-4 shrink-0 text-muted-foreground\" />\n <CommandPrimitive.Input\n className=\"flex h-10 w-full bg-transparent text-sm outline-none placeholder:text-subtle-foreground disabled:cursor-not-allowed disabled:opacity-64\"\n placeholder={placeholder}\n data-slot=\"command-input\"\n {...props}\n />\n </div>\n </div>\n );\n}\n\n/**\n * Small pickers such as a model or worktree list pack their rows tighter than a command palette: 4px of padding,\n * a thin scrollbar, and group headings in small, quiet text so the rows carry the weight.\n */\nconst COMPACT_LIST_CLASS =\n \"[scrollbar-width:thin] scroll-py-1 p-1 not-empty:scroll-py-1 not-empty:p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:pt-2 [&_[cmdk-group-heading]]:pb-1 [&_[cmdk-group-heading]]:text-[0.6875rem] [&_[cmdk-group-heading]]:font-normal [&_[cmdk-group-heading]]:text-subtle-foreground\";\n\nfunction CommandList({\n className,\n children,\n density = \"default\",\n ...props\n}: React.ComponentProps<typeof CommandPrimitive.List> & {\n /** `compact` is for small pickers in a popover; the default suits a full command palette. */\n density?: \"default\" | \"compact\";\n}) {\n return (\n <CommandPrimitive.List\n className={cn(\n \"relative not-empty:scroll-py-2 not-empty:p-2 max-h-[300px] overflow-y-auto overflow-x-hidden\",\n density === \"compact\" && COMPACT_LIST_CLASS,\n className,\n )}\n data-slot=\"command-list\"\n {...props}\n >\n <FluidHighlight />\n {children}\n </CommandPrimitive.List>\n );\n}\n\nfunction CommandEmpty({\n className,\n ...props\n}: React.ComponentProps<typeof CommandPrimitive.Empty>) {\n return (\n <CommandPrimitive.Empty\n className={cn(\"text-center text-muted-foreground text-sm not-empty:px-2 not-empty:py-6\", className)}\n data-slot=\"command-empty\"\n {...props}\n />\n );\n}\n\nfunction CommandPanel({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n className={cn(\n \"-mx-px relative min-h-0 rounded-t-lg border bg-popover bg-clip-padding shadow-xs [clip-path:inset(0_1px)] before:pointer-events-none before:absolute before:inset-0 before:rounded-t-[calc(var(--radius-lg)-1px)] **:data-[slot=scroll-area-scrollbar]:mt-2 dark:bg-clip-border dark:before:shadow-[0_-1px_--theme(--color-white/8%)]\",\n className,\n )}\n data-slot=\"command-panel\"\n {...props}\n />\n );\n}\n\nfunction CommandGroup({\n className,\n heading,\n children,\n ...props\n}: React.ComponentProps<typeof CommandPrimitive.Group> & {\n heading?: React.ReactNode;\n}) {\n return (\n <CommandPrimitive.Group\n className={cn(\n \"overflow-hidden text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground\",\n className,\n )}\n heading={heading}\n data-slot=\"command-group\"\n {...props}\n >\n {children}\n </CommandPrimitive.Group>\n );\n}\n\nfunction CommandGroupLabel({\n className,\n ...props\n}: React.ComponentProps<\"div\">) {\n return (\n <div\n className={cn(\n \"px-2 py-1.5 text-xs font-medium text-muted-foreground\",\n className,\n )}\n data-slot=\"command-group-label\"\n {...props}\n />\n );\n}\n\nfunction CommandCollection({ children }: { children: React.ReactNode }) {\n return <>{children}</>;\n}\n\n/**\n * cmdk identifies an item by its `value` (or its text when `value` is omitted), so two items with the same value\n * highlight together. Give items that can share a name a unique `value` and put the name in `keywords`.\n */\nfunction CommandItem({\n className,\n ...props\n}: React.ComponentProps<typeof CommandPrimitive.Item>) {\n return (\n <CommandPrimitive.Item\n className={cn(\n // `overflow-wrap:anywhere` lets an unbreakable label shrink and wrap, so the icon and shortcut keep their room.\n \"relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none [overflow-wrap:anywhere] pointer-coarse:min-h-11 data-[disabled=true]:pointer-events-none data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-64 [&_svg]:shrink-0\",\n className,\n )}\n data-slot=\"command-item\"\n {...props}\n />\n );\n}\n\nfunction CommandSeparator({\n className,\n ...props\n}: React.ComponentProps<typeof CommandPrimitive.Separator>) {\n return (\n <CommandPrimitive.Separator\n className={cn(\"-mx-1 my-2 h-px bg-border\", className)}\n data-slot=\"command-separator\"\n {...props}\n />\n );\n}\n\nfunction CommandShortcut({ className, children, ...props }: React.ComponentProps<\"kbd\">) {\n return (\n <span\n className={cn(\n \"ms-auto shrink-0 whitespace-nowrap font-medium text-subtle-foreground text-xs tracking-widest\",\n className,\n )}\n data-slot=\"command-shortcut\"\n {...props}\n >\n {/* Key glyphs read left to right in every writing direction, so isolate them from the surrounding text. */}\n <span dir=\"ltr\" className=\"[unicode-bidi:isolate]\">\n {children}\n </span>\n </span>\n );\n}\n\nfunction CommandFooter({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n className={cn(\n \"flex items-center justify-between gap-2 rounded-b-[calc(var(--radius-lg)-1px)] px-5 py-3 text-subtle-foreground text-xs\",\n className,\n )}\n data-slot=\"command-footer\"\n {...props}\n />\n );\n}\n\nexport {\n Command,\n CommandCollection,\n CommandDialog,\n CommandDialogPopup,\n CommandEmpty,\n CommandFooter,\n CommandGroup,\n CommandGroupLabel,\n CommandInput,\n CommandItem,\n CommandList,\n CommandPanel,\n CommandSeparator,\n CommandShortcut,\n};\n"],"mappings":";;;;;;;;;;;;;;AASA,SAAS,cAAc,EACrB,WACA,UACA,GAAG,SACoD;CACvD,MAAM,mEAAmC;CAEzC,OACE,2CAACA,aAAiB,QAAlB;EACE,WAAW,aAAa;EACxB,kBAAkBC,iBACtB,wMACI;EACA,kBAAkBA,iBAChB,suBACA,SACF;EACA;EACA,GAAI;YAEJ,2CAACC,6CAAD,EAAmB,SAA2B;CACvB;AAE7B;AAEA,SAAS,mBAAmB,EAC1B,UACA,WACA,GAAG,SAC2B;CAC9B,OACE,2CAAC,OAAD;EAAK,aAAU;EAAkC;EAAW,GAAI;EAC7D;CACE;AAET;AAEA,SAAS,QAAQ,EACf,WACA,GAAG,SAC6C;CAChD,OACE,2CAACF,cAAD;EACE,WAAWC,iBACT,0DACA,SACF;EACA,aAAU;EACV,GAAI;CACL;AAEL;AAEA,SAAS,aAAa,EACpB,WACA,aACA,GAAG,SACmD;CACtD,OACE,2CAAC,OAAD;EAAK,WAAU;EAAgB,aAAU;YACvC,4CAAC,OAAD;GACE,WAAWA,iBACT,qDACA,SACF;aAJF,CAME,2CAACE,yBAAD,EAAY,WAAU,wCAAyC,IAC/D,2CAACH,aAAiB,OAAlB;IACE,WAAU;IACG;IACb,aAAU;IACV,GAAI;GACL,EACE;;CACF;AAET;;;;;AAMA,MAAM,qBACJ;AAEF,SAAS,YAAY,EACnB,WACA,UACA,UAAU,WACV,GAAG,SAIF;CACD,OACE,4CAACA,aAAiB,MAAlB;EACE,WAAWC,iBACT,gGACA,YAAY,aAAa,oBACzB,SACF;EACA,aAAU;EACV,GAAI;YAPN,CASE,2CAACG,wCAAD,CAAiB,IAChB,QACoB;;AAE3B;AAEA,SAAS,aAAa,EACpB,WACA,GAAG,SACmD;CACtD,OACE,2CAACJ,aAAiB,OAAlB;EACE,WAAWC,iBAAG,2EAA2E,SAAS;EAClG,aAAU;EACV,GAAI;CACL;AAEL;AAEA,SAAS,aAAa,EAAE,WAAW,GAAG,SAAsC;CAC1E,OACE,2CAAC,OAAD;EACE,WAAWA,iBACT,yUACA,SACF;EACA,aAAU;EACV,GAAI;CACL;AAEL;AAEA,SAAS,aAAa,EACpB,WACA,SACA,UACA,GAAG,SAGF;CACD,OACE,2CAACD,aAAiB,OAAlB;EACE,WAAWC,iBACT,sNACA,SACF;EACS;EACT,aAAU;EACV,GAAI;EAEH;CACqB;AAE5B;AAEA,SAAS,kBAAkB,EACzB,WACA,GAAG,SAC2B;CAC9B,OACE,2CAAC,OAAD;EACE,WAAWA,iBACT,yDACA,SACF;EACA,aAAU;EACV,GAAI;CACL;AAEL;AAEA,SAAS,kBAAkB,EAAE,YAA2C;CACtE,OAAO,yEAAG,SAAW;AACvB;;;;;AAMA,SAAS,YAAY,EACnB,WACA,GAAG,SACkD;CACrD,OACE,2CAACD,aAAiB,MAAlB;EACE,WAAWC,iBAET,kSACA,SACF;EACA,aAAU;EACV,GAAI;CACL;AAEL;AAEA,SAAS,iBAAiB,EACxB,WACA,GAAG,SACuD;CAC1D,OACE,2CAACD,aAAiB,WAAlB;EACE,WAAWC,iBAAG,6BAA6B,SAAS;EACpD,aAAU;EACV,GAAI;CACL;AAEL;AAEA,SAAS,gBAAgB,EAAE,WAAW,UAAU,GAAG,SAAsC;CACvF,OACE,2CAAC,QAAD;EACE,WAAWA,iBACT,iGACA,SACF;EACA,aAAU;EACV,GAAI;YAGJ,2CAAC,QAAD;GAAM,KAAI;GAAM,WAAU;GACvB;EACG;CACF;AAEV;AAEA,SAAS,cAAc,EAAE,WAAW,GAAG,SAAsC;CAC3E,OACE,2CAAC,OAAD;EACE,WAAWA,iBACT,2HACA,SACF;EACA,aAAU;EACV,GAAI;CACL;AAEL"}
|
|
@@ -5,7 +5,10 @@ declare function CommandDialog({ className, children, ...props }: React$1.Compon
|
|
|
5
5
|
declare function CommandDialogPopup({ children, className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
6
6
|
declare function Command({ className, ...props }: React$1.ComponentProps<typeof Command$1>): React$1.JSX.Element;
|
|
7
7
|
declare function CommandInput({ className, placeholder, ...props }: React$1.ComponentProps<typeof Command$1.Input>): React$1.JSX.Element;
|
|
8
|
-
declare function CommandList({ className, children, ...props }: React$1.ComponentProps<typeof Command$1.List>
|
|
8
|
+
declare function CommandList({ className, children, density, ...props }: React$1.ComponentProps<typeof Command$1.List> & {
|
|
9
|
+
/** `compact` is for small pickers in a popover; the default suits a full command palette. */
|
|
10
|
+
density?: "default" | "compact";
|
|
11
|
+
}): React$1.JSX.Element;
|
|
9
12
|
declare function CommandEmpty({ className, ...props }: React$1.ComponentProps<typeof Command$1.Empty>): React$1.JSX.Element;
|
|
10
13
|
declare function CommandPanel({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
11
14
|
declare function CommandGroup({ className, heading, children, ...props }: React$1.ComponentProps<typeof Command$1.Group> & {
|
|
@@ -5,7 +5,10 @@ declare function CommandDialog({ className, children, ...props }: React$1.Compon
|
|
|
5
5
|
declare function CommandDialogPopup({ children, className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
6
6
|
declare function Command({ className, ...props }: React$1.ComponentProps<typeof Command$1>): React$1.JSX.Element;
|
|
7
7
|
declare function CommandInput({ className, placeholder, ...props }: React$1.ComponentProps<typeof Command$1.Input>): React$1.JSX.Element;
|
|
8
|
-
declare function CommandList({ className, children, ...props }: React$1.ComponentProps<typeof Command$1.List>
|
|
8
|
+
declare function CommandList({ className, children, density, ...props }: React$1.ComponentProps<typeof Command$1.List> & {
|
|
9
|
+
/** `compact` is for small pickers in a popover; the default suits a full command palette. */
|
|
10
|
+
density?: "default" | "compact";
|
|
11
|
+
}): React$1.JSX.Element;
|
|
9
12
|
declare function CommandEmpty({ className, ...props }: React$1.ComponentProps<typeof Command$1.Empty>): React$1.JSX.Element;
|
|
10
13
|
declare function CommandPanel({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
11
14
|
declare function CommandGroup({ className, heading, children, ...props }: React$1.ComponentProps<typeof Command$1.Group> & {
|