@constructive-io/ui 0.6.1 → 0.9.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-CiaH2sfF.js +2840 -0
- package/dist/ai-CiaH2sfF.js.map +1 -0
- package/dist/ai-lAkichk8.cjs +3182 -0
- package/dist/ai-lAkichk8.cjs.map +1 -0
- package/dist/alert-BXuP0ayz.d.cts +19 -0
- package/dist/alert-BXuP0ayz.d.ts +19 -0
- package/dist/components/ai/index.cjs +61 -0
- package/dist/components/ai/index.d.cts +2 -0
- package/dist/components/ai/index.d.ts +2 -0
- package/dist/components/ai/index.js +4 -0
- package/dist/components/alert.d.cts +2 -19
- package/dist/components/alert.d.ts +2 -19
- package/dist/components/app-bar.cjs +1 -1
- package/dist/components/app-bar.js +1 -1
- package/dist/components/app-shell.cjs +1 -1
- package/dist/components/app-shell.js +1 -1
- package/dist/components/badge.d.cts +2 -2
- package/dist/components/badge.d.ts +2 -2
- package/dist/components/command.cjs +1 -1
- package/dist/components/command.cjs.map +1 -1
- package/dist/components/command.js +1 -1
- package/dist/components/command.js.map +1 -1
- package/dist/components/field.d.cts +1 -1
- package/dist/components/field.d.ts +1 -1
- package/dist/components/sheet.d.cts +1 -1
- package/dist/components/sheet.d.ts +1 -1
- package/dist/components/sidebar.cjs +1 -1
- package/dist/components/sidebar.d.cts +1 -1
- package/dist/components/sidebar.d.ts +1 -1
- package/dist/components/sidebar.js +1 -1
- package/dist/index-B0wXxIAb.d.ts +737 -0
- package/dist/index-CyaFaZe2.d.cts +737 -0
- package/dist/index.cjs +59 -1
- package/dist/index.d.cts +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.js +3 -2
- package/dist/{sidebar-CPy_fibW.cjs → sidebar-BavjjJp0.cjs} +29 -12
- package/dist/sidebar-BavjjJp0.cjs.map +1 -0
- package/dist/{sidebar-Cfax0g0_.js → sidebar-DeoL2ttp.js} +30 -12
- package/dist/sidebar-DeoL2ttp.js.map +1 -0
- package/package.json +13 -2
- package/src/styles/globals.css +92 -0
- package/dist/sidebar-CPy_fibW.cjs.map +0 -1
- package/dist/sidebar-Cfax0g0_.js.map +0 -1
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
3
|
+
const require_ai = require('../../ai-lAkichk8.cjs');
|
|
4
|
+
|
|
5
|
+
exports.AgentLoader = require_ai.AgentLoader;
|
|
6
|
+
exports.AiImage = require_ai.AiImage;
|
|
7
|
+
exports.ApprovalCard = require_ai.ApprovalCard;
|
|
8
|
+
exports.ChainOfThought = require_ai.ChainOfThought;
|
|
9
|
+
exports.ChainOfThoughtStep = require_ai.ChainOfThoughtStep;
|
|
10
|
+
exports.ChatContainer = require_ai.ChatContainer;
|
|
11
|
+
exports.ChatContainerContent = require_ai.ChatContainerContent;
|
|
12
|
+
exports.CodeBlock = require_ai.CodeBlock;
|
|
13
|
+
exports.ContextCard = require_ai.ContextCard;
|
|
14
|
+
exports.ContextCards = require_ai.ContextCards;
|
|
15
|
+
exports.ContextRing = require_ai.ContextRing;
|
|
16
|
+
exports.DiffTable = require_ai.DiffTable;
|
|
17
|
+
exports.FeedbackBar = require_ai.FeedbackBar;
|
|
18
|
+
exports.FileUpload = require_ai.FileUpload;
|
|
19
|
+
exports.InlineDiff = require_ai.InlineDiff;
|
|
20
|
+
exports.Loader = require_ai.Loader;
|
|
21
|
+
exports.Markdown = require_ai.Markdown;
|
|
22
|
+
exports.Message = require_ai.Message;
|
|
23
|
+
exports.MessageAction = require_ai.MessageAction;
|
|
24
|
+
exports.MessageActions = require_ai.MessageActions;
|
|
25
|
+
exports.MessageAvatar = require_ai.MessageAvatar;
|
|
26
|
+
exports.MessageContent = require_ai.MessageContent;
|
|
27
|
+
exports.PlanTracker = require_ai.PlanTracker;
|
|
28
|
+
exports.PromptInput = require_ai.PromptInput;
|
|
29
|
+
exports.PromptInputAction = require_ai.PromptInputAction;
|
|
30
|
+
exports.PromptInputActions = require_ai.PromptInputActions;
|
|
31
|
+
exports.PromptInputBody = require_ai.PromptInputBody;
|
|
32
|
+
exports.PromptInputTextarea = require_ai.PromptInputTextarea;
|
|
33
|
+
exports.PromptSuggestion = require_ai.PromptSuggestion;
|
|
34
|
+
exports.PromptSuggestions = require_ai.PromptSuggestions;
|
|
35
|
+
exports.Reasoning = require_ai.Reasoning;
|
|
36
|
+
exports.RecommendationCard = require_ai.RecommendationCard;
|
|
37
|
+
exports.ResponseStream = require_ai.ResponseStream;
|
|
38
|
+
exports.STREAM_THROTTLE_MS = require_ai.STREAM_THROTTLE_MS;
|
|
39
|
+
exports.ScrollButton = require_ai.ScrollButton;
|
|
40
|
+
exports.Source = require_ai.Source;
|
|
41
|
+
exports.Sources = require_ai.Sources;
|
|
42
|
+
exports.StatusIcon = require_ai.StatusIcon;
|
|
43
|
+
exports.Step = require_ai.Step;
|
|
44
|
+
exports.Steps = require_ai.Steps;
|
|
45
|
+
exports.StreamingText = require_ai.StreamingText;
|
|
46
|
+
exports.SystemMessage = require_ai.SystemMessage;
|
|
47
|
+
exports.TaskList = require_ai.TaskList;
|
|
48
|
+
exports.TaskRow = require_ai.TaskRow;
|
|
49
|
+
exports.TextShimmer = require_ai.TextShimmer;
|
|
50
|
+
exports.ThinkingBar = require_ai.ThinkingBar;
|
|
51
|
+
exports.ThinkingTrace = require_ai.ThinkingTrace;
|
|
52
|
+
exports.Tool = require_ai.Tool;
|
|
53
|
+
exports.ToolGroup = require_ai.ToolGroup;
|
|
54
|
+
exports.formatCompact = require_ai.formatCompact;
|
|
55
|
+
exports.formatDuration = require_ai.formatDuration;
|
|
56
|
+
exports.lineDiff = require_ai.lineDiff;
|
|
57
|
+
exports.normalizeToolStatus = require_ai.normalizeToolStatus;
|
|
58
|
+
exports.renderBasicMarkdown = require_ai.renderBasicMarkdown;
|
|
59
|
+
exports.useChatContainer = require_ai.useChatContainer;
|
|
60
|
+
exports.usePromptInput = require_ai.usePromptInput;
|
|
61
|
+
exports.useThrottledText = require_ai.useThrottledText;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { $ as ToolGroup, $t as MessageContent, A as PlanTrackerProps, At as SystemMessageProps, B as InlineDiff, Bt as ResponseStreamProps, C as TaskRow, Ct as Reasoning, D as ContextRingProps, Dt as STREAM_THROTTLE_MS, E as ContextRing, Et as ThinkingBarProps, F as DiffTableRowBase, Ft as ChatContainerContentProps, G as Sources, Gt as renderBasicMarkdown, H as lineDiff, Ht as CodeBlockProps, I as StreamToken, It as ChatContainerProps, J as ApprovalCardProps, Jt as MessageActionProps, K as SourcesProps, Kt as Message, L as StreamingText, Lt as useChatContainer, M as DiffTableAddedRow, Mt as ScrollButtonProps, N as DiffTableColumn, Nt as ChatContainer, O as formatCompact, Ot as useThrottledText, P as DiffTableProps, Pt as ChatContainerContent, Q as Tool, Qt as MessageAvatarProps, R as StreamingTextProps, Rt as ResponseStream, S as TaskListProps, St as ThinkingTraceRow, T as TaskStatus, Tt as ThinkingBar, U as Source, Ut as Markdown, V as InlineDiffProps, Vt as CodeBlock, W as SourceProps, Wt as MarkdownProps, X as ApprovalQuestion, Xt as MessageActionsProps, Y as ApprovalOption, Yt as MessageActions, Z as StatusIcon, Zt as MessageAvatar, _ as ContextCardProps, _n as PixelVariant, _t as Steps, a as FileUploadProps, an as PromptInputActions, at as InlineDiffSource, b as TaskDetail, bn as TextShimmerProps, bt as ThinkingTraceMode, c as PromptSuggestions, cn as PromptInputBodyProps, ct as PlanStep, d as FeedbackBarProps, dn as PromptInputTextareaProps, dt as normalizeToolStatus, en as MessageContentProps, et as ToolGroupProps, f as FeedbackValue, fn as usePromptInput, ft as ChainOfThought, g as ContextCard, gn as Loader, gt as StepStatus, h as RecommendationOption, hn as AgentLoaderVariant, ht as StepProps, i as FileUpload, in as PromptInputActionProps, it as DiffFileChip, j as DiffTable, jt as ScrollButton, k as PlanTracker, kt as SystemMessage, l as PromptSuggestionsProps, ln as PromptInputProps, lt as PlanStepStatus, m as RecommendationCardProps, mn as AgentLoaderProps, mt as Step, n as AiImage, nn as PromptInput, nt as ToolVariant, o as PromptSuggestion, on as PromptInputActionsProps, ot as NormalizedToolStatus, p as RecommendationCard, pn as AgentLoader, pt as ChainOfThoughtStep, q as ApprovalCard, qt as MessageAction, r as AiImageProps, rn as PromptInputAction, rt as ContextUsage, s as PromptSuggestionProps, sn as PromptInputBody, st as Plan, t as formatDuration, tn as MessageProps, tt as ToolProps, u as FeedbackBar, un as PromptInputTextarea, ut as ToolStatus, v as ContextCards, vn as SimpleVariant, vt as StepsProps, w as TaskRowProps, wt as ReasoningProps, x as TaskList, xt as ThinkingTraceProps, y as ContextCardsProps, yn as TextShimmer, yt as ThinkingTrace, z as StreamingTextSource, zt as ResponseStreamMode } from "../../index-CyaFaZe2.cjs";
|
|
2
|
+
export { AgentLoader, type AgentLoaderProps, type AgentLoaderVariant, AiImage, type AiImageProps, ApprovalCard, type ApprovalCardProps, type ApprovalOption, type ApprovalQuestion, ChainOfThought, ChainOfThoughtStep, ChatContainer, ChatContainerContent, type ChatContainerContentProps, type ChatContainerProps, CodeBlock, type CodeBlockProps, ContextCard, type ContextCardProps, ContextCards, type ContextCardsProps, ContextRing, type ContextRingProps, type ContextUsage, 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, Markdown, type MarkdownProps, Message, MessageAction, type MessageActionProps, MessageActions, type MessageActionsProps, MessageAvatar, type MessageAvatarProps, MessageContent, type MessageContentProps, type MessageProps, type NormalizedToolStatus, type PixelVariant, type Plan, type PlanStep, type PlanStepStatus, PlanTracker, type PlanTrackerProps, PromptInput, PromptInputAction, type PromptInputActionProps, PromptInputActions, type PromptInputActionsProps, PromptInputBody, type PromptInputBodyProps, type PromptInputProps, PromptInputTextarea, type PromptInputTextareaProps, 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, ThinkingTrace, type ThinkingTraceMode, type ThinkingTraceProps, type ThinkingTraceRow, Tool, ToolGroup, type ToolGroupProps, type ToolProps, type ToolStatus, type ToolVariant, formatCompact, formatDuration, lineDiff, normalizeToolStatus, renderBasicMarkdown, useChatContainer, usePromptInput, useThrottledText };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { $ as ToolGroup, $t as MessageContent, A as PlanTrackerProps, At as SystemMessageProps, B as InlineDiff, Bt as ResponseStreamProps, C as TaskRow, Ct as Reasoning, D as ContextRingProps, Dt as STREAM_THROTTLE_MS, E as ContextRing, Et as ThinkingBarProps, F as DiffTableRowBase, Ft as ChatContainerContentProps, G as Sources, Gt as renderBasicMarkdown, H as lineDiff, Ht as CodeBlockProps, I as StreamToken, It as ChatContainerProps, J as ApprovalCardProps, Jt as MessageActionProps, K as SourcesProps, Kt as Message, L as StreamingText, Lt as useChatContainer, M as DiffTableAddedRow, Mt as ScrollButtonProps, N as DiffTableColumn, Nt as ChatContainer, O as formatCompact, Ot as useThrottledText, P as DiffTableProps, Pt as ChatContainerContent, Q as Tool, Qt as MessageAvatarProps, R as StreamingTextProps, Rt as ResponseStream, S as TaskListProps, St as ThinkingTraceRow, T as TaskStatus, Tt as ThinkingBar, U as Source, Ut as Markdown, V as InlineDiffProps, Vt as CodeBlock, W as SourceProps, Wt as MarkdownProps, X as ApprovalQuestion, Xt as MessageActionsProps, Y as ApprovalOption, Yt as MessageActions, Z as StatusIcon, Zt as MessageAvatar, _ as ContextCardProps, _n as PixelVariant, _t as Steps, a as FileUploadProps, an as PromptInputActions, at as InlineDiffSource, b as TaskDetail, bn as TextShimmerProps, bt as ThinkingTraceMode, c as PromptSuggestions, cn as PromptInputBodyProps, ct as PlanStep, d as FeedbackBarProps, dn as PromptInputTextareaProps, dt as normalizeToolStatus, en as MessageContentProps, et as ToolGroupProps, f as FeedbackValue, fn as usePromptInput, ft as ChainOfThought, g as ContextCard, gn as Loader, gt as StepStatus, h as RecommendationOption, hn as AgentLoaderVariant, ht as StepProps, i as FileUpload, in as PromptInputActionProps, it as DiffFileChip, j as DiffTable, jt as ScrollButton, k as PlanTracker, kt as SystemMessage, l as PromptSuggestionsProps, ln as PromptInputProps, lt as PlanStepStatus, m as RecommendationCardProps, mn as AgentLoaderProps, mt as Step, n as AiImage, nn as PromptInput, nt as ToolVariant, o as PromptSuggestion, on as PromptInputActionsProps, ot as NormalizedToolStatus, p as RecommendationCard, pn as AgentLoader, pt as ChainOfThoughtStep, q as ApprovalCard, qt as MessageAction, r as AiImageProps, rn as PromptInputAction, rt as ContextUsage, s as PromptSuggestionProps, sn as PromptInputBody, st as Plan, t as formatDuration, tn as MessageProps, tt as ToolProps, u as FeedbackBar, un as PromptInputTextarea, ut as ToolStatus, v as ContextCards, vn as SimpleVariant, vt as StepsProps, w as TaskRowProps, wt as ReasoningProps, x as TaskList, xt as ThinkingTraceProps, y as ContextCardsProps, yn as TextShimmer, yt as ThinkingTrace, z as StreamingTextSource, zt as ResponseStreamMode } from "../../index-B0wXxIAb.js";
|
|
2
|
+
export { AgentLoader, type AgentLoaderProps, type AgentLoaderVariant, AiImage, type AiImageProps, ApprovalCard, type ApprovalCardProps, type ApprovalOption, type ApprovalQuestion, ChainOfThought, ChainOfThoughtStep, ChatContainer, ChatContainerContent, type ChatContainerContentProps, type ChatContainerProps, CodeBlock, type CodeBlockProps, ContextCard, type ContextCardProps, ContextCards, type ContextCardsProps, ContextRing, type ContextRingProps, type ContextUsage, 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, Markdown, type MarkdownProps, Message, MessageAction, type MessageActionProps, MessageActions, type MessageActionsProps, MessageAvatar, type MessageAvatarProps, MessageContent, type MessageContentProps, type MessageProps, type NormalizedToolStatus, type PixelVariant, type Plan, type PlanStep, type PlanStepStatus, PlanTracker, type PlanTrackerProps, PromptInput, PromptInputAction, type PromptInputActionProps, PromptInputActions, type PromptInputActionsProps, PromptInputBody, type PromptInputBodyProps, type PromptInputProps, PromptInputTextarea, type PromptInputTextareaProps, 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, ThinkingTrace, type ThinkingTraceMode, type ThinkingTraceProps, type ThinkingTraceRow, Tool, ToolGroup, type ToolGroupProps, type ToolProps, type ToolStatus, type ToolVariant, formatCompact, formatDuration, lineDiff, normalizeToolStatus, renderBasicMarkdown, useChatContainer, usePromptInput, useThrottledText };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { $ as PromptInputTextarea, A as Reasoning, B as Message, C as ToolGroup, D as Step, E as ChainOfThoughtStep, F as ChatContainer, G as Markdown, H as MessageActions, I as ChatContainerContent, J as useThrottledText, K as renderBasicMarkdown, L as useChatContainer, M as formatDuration, N as SystemMessage, O as Steps, P as ScrollButton, Q as PromptInputBody, R as ResponseStream, S as Tool, T as ChainOfThought, U as MessageAvatar, V as MessageAction, W as MessageContent, X as PromptInputAction, Y as PromptInput, Z as PromptInputActions, _ as lineDiff, a as ContextCards, b as ApprovalCard, c as ContextRing, d as DiffTable, et as usePromptInput, f as StreamingText, g as InlineDiff, h as FeedbackBar, i as ContextCard, j as ThinkingBar, k as ThinkingTrace, l as formatCompact, m as PromptSuggestions, n as FileUpload, nt as Loader, o as TaskList, p as PromptSuggestion, q as STREAM_THROTTLE_MS, r as RecommendationCard, rt as TextShimmer, s as TaskRow, t as AiImage, tt as AgentLoader, u as PlanTracker, v as Source, w as normalizeToolStatus, x as StatusIcon, y as Sources, z as CodeBlock } from "../../ai-CiaH2sfF.js";
|
|
3
|
+
|
|
4
|
+
export { AgentLoader, AiImage, ApprovalCard, ChainOfThought, ChainOfThoughtStep, ChatContainer, ChatContainerContent, CodeBlock, ContextCard, ContextCards, ContextRing, DiffTable, FeedbackBar, FileUpload, InlineDiff, Loader, Markdown, Message, MessageAction, MessageActions, MessageAvatar, MessageContent, PlanTracker, PromptInput, PromptInputAction, PromptInputActions, PromptInputBody, PromptInputTextarea, PromptSuggestion, PromptSuggestions, Reasoning, RecommendationCard, ResponseStream, STREAM_THROTTLE_MS, ScrollButton, Source, Sources, StatusIcon, Step, Steps, StreamingText, SystemMessage, TaskList, TaskRow, TextShimmer, ThinkingBar, ThinkingTrace, Tool, ToolGroup, formatCompact, formatDuration, lineDiff, normalizeToolStatus, renderBasicMarkdown, useChatContainer, usePromptInput, useThrottledText };
|
|
@@ -1,19 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
//#region src/components/alert.d.ts
|
|
4
|
-
/**
|
|
5
|
-
* Soft filled callout. Icon is a direct child SVG; content uses grid columns so
|
|
6
|
-
* title/description stay aligned without absolute positioning.
|
|
7
|
-
*/
|
|
8
|
-
declare const alertVariants: (props?: ({
|
|
9
|
-
variant?: "default" | "destructive" | "info" | "success" | "warning" | null | undefined;
|
|
10
|
-
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
11
|
-
type AlertProps = React$1.HTMLAttributes<HTMLDivElement> & VariantProps<typeof alertVariants>;
|
|
12
|
-
declare const Alert: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
|
|
13
|
-
variant?: "default" | "destructive" | "info" | "success" | "warning" | null | undefined;
|
|
14
|
-
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & React$1.RefAttributes<HTMLDivElement>>;
|
|
15
|
-
declare const AlertTitle: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLHeadingElement> & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
16
|
-
declare const AlertDescription: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
17
|
-
//#endregion
|
|
18
|
-
export { Alert, AlertDescription, type AlertProps, AlertTitle, alertVariants };
|
|
19
|
-
//# sourceMappingURL=alert.d.cts.map
|
|
1
|
+
import { a as alertVariants, i as AlertTitle, n as AlertDescription, r as AlertProps, t as Alert } from "../alert-BXuP0ayz.cjs";
|
|
2
|
+
export { Alert, AlertDescription, type AlertProps, AlertTitle, alertVariants };
|
|
@@ -1,19 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
//#region src/components/alert.d.ts
|
|
4
|
-
/**
|
|
5
|
-
* Soft filled callout. Icon is a direct child SVG; content uses grid columns so
|
|
6
|
-
* title/description stay aligned without absolute positioning.
|
|
7
|
-
*/
|
|
8
|
-
declare const alertVariants: (props?: ({
|
|
9
|
-
variant?: "default" | "destructive" | "info" | "success" | "warning" | null | undefined;
|
|
10
|
-
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
11
|
-
type AlertProps = React$1.HTMLAttributes<HTMLDivElement> & VariantProps<typeof alertVariants>;
|
|
12
|
-
declare const Alert: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
|
|
13
|
-
variant?: "default" | "destructive" | "info" | "success" | "warning" | null | undefined;
|
|
14
|
-
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & React$1.RefAttributes<HTMLDivElement>>;
|
|
15
|
-
declare const AlertTitle: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLHeadingElement> & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
16
|
-
declare const AlertDescription: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
17
|
-
//#endregion
|
|
18
|
-
export { Alert, AlertDescription, type AlertProps, AlertTitle, alertVariants };
|
|
19
|
-
//# sourceMappingURL=alert.d.ts.map
|
|
1
|
+
import { a as alertVariants, i as AlertTitle, n as AlertDescription, r as AlertProps, t as Alert } from "../alert-BXuP0ayz.js";
|
|
2
|
+
export { Alert, AlertDescription, type AlertProps, AlertTitle, alertVariants };
|
|
@@ -5,7 +5,7 @@ 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_separator = require('./separator.cjs');
|
|
7
7
|
const require_components_breadcrumb = require('./breadcrumb.cjs');
|
|
8
|
-
const require_sidebar = require('../sidebar-
|
|
8
|
+
const require_sidebar = require('../sidebar-BavjjJp0.cjs');
|
|
9
9
|
let react = require("react");
|
|
10
10
|
react = require_rolldown_runtime.__toESM(react, 1);
|
|
11
11
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { t as cn } from "../utils-BkMLyah9.js";
|
|
4
4
|
import { Separator } from "./separator.js";
|
|
5
5
|
import { Breadcrumb, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator } from "./breadcrumb.js";
|
|
6
|
-
import { C as SidebarTrigger } from "../sidebar-
|
|
6
|
+
import { C as SidebarTrigger } from "../sidebar-DeoL2ttp.js";
|
|
7
7
|
import * as React$1 from "react";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
import { mergeProps } from "@base-ui/react/merge-props";
|
|
@@ -6,7 +6,7 @@ const require_utils = require('../utils-CzTQ3-VI.cjs');
|
|
|
6
6
|
const require_components_dropdown_menu = require('./dropdown-menu.cjs');
|
|
7
7
|
const require_components_collapsible = require('./collapsible.cjs');
|
|
8
8
|
const require_components_avatar = require('./avatar.cjs');
|
|
9
|
-
const require_sidebar = require('../sidebar-
|
|
9
|
+
const require_sidebar = require('../sidebar-BavjjJp0.cjs');
|
|
10
10
|
const require_components_app_bar = require('./app-bar.cjs');
|
|
11
11
|
let react = require("react");
|
|
12
12
|
react = require_rolldown_runtime.__toESM(react, 1);
|
|
@@ -4,7 +4,7 @@ import { t as cn } from "../utils-BkMLyah9.js";
|
|
|
4
4
|
import { DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger } from "./dropdown-menu.js";
|
|
5
5
|
import { Collapsible, CollapsibleContent as CollapsiblePanel, CollapsibleTrigger } from "./collapsible.js";
|
|
6
6
|
import { Avatar, AvatarFallback, AvatarImage } from "./avatar.js";
|
|
7
|
-
import { S as SidebarSeparator, _ as SidebarMenuSub, b as SidebarProvider, c as SidebarHeader, d as SidebarMenu, f as SidebarMenuAction, h as SidebarMenuItem, i as SidebarGroup, m as SidebarMenuButton, n as SidebarContent, o as SidebarGroupContent, p as SidebarMenuBadge, r as SidebarFooter, s as SidebarGroupLabel, t as Sidebar, u as SidebarInset, v as SidebarMenuSubButton, w as useSidebar, x as SidebarRail, y as SidebarMenuSubItem } from "../sidebar-
|
|
7
|
+
import { S as SidebarSeparator, _ as SidebarMenuSub, b as SidebarProvider, c as SidebarHeader, d as SidebarMenu, f as SidebarMenuAction, h as SidebarMenuItem, i as SidebarGroup, m as SidebarMenuButton, n as SidebarContent, o as SidebarGroupContent, p as SidebarMenuBadge, r as SidebarFooter, s as SidebarGroupLabel, t as Sidebar, u as SidebarInset, v as SidebarMenuSubButton, w as useSidebar, x as SidebarRail, y as SidebarMenuSubItem } from "../sidebar-DeoL2ttp.js";
|
|
8
8
|
import { AppBar, createAppLink } from "./app-bar.js";
|
|
9
9
|
import * as React$1 from "react";
|
|
10
10
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -3,12 +3,12 @@ import { VariantProps } from "class-variance-authority";
|
|
|
3
3
|
//#region src/components/badge.d.ts
|
|
4
4
|
declare const badgeVariants: (props?: ({
|
|
5
5
|
size?: "default" | "lg" | "sm" | null | undefined;
|
|
6
|
-
variant?: "default" | "destructive" | "
|
|
6
|
+
variant?: "default" | "destructive" | "info" | "success" | "warning" | "error" | "outline" | "secondary" | 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
10
|
size?: "default" | "lg" | "sm" | null | undefined;
|
|
11
|
-
variant?: "default" | "destructive" | "
|
|
11
|
+
variant?: "default" | "destructive" | "info" | "success" | "warning" | "error" | "outline" | "secondary" | 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,12 +3,12 @@ import { VariantProps } from "class-variance-authority";
|
|
|
3
3
|
//#region src/components/badge.d.ts
|
|
4
4
|
declare const badgeVariants: (props?: ({
|
|
5
5
|
size?: "default" | "lg" | "sm" | null | undefined;
|
|
6
|
-
variant?: "default" | "destructive" | "
|
|
6
|
+
variant?: "default" | "destructive" | "info" | "success" | "warning" | "error" | "outline" | "secondary" | 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
10
|
size?: "default" | "lg" | "sm" | null | undefined;
|
|
11
|
-
variant?: "default" | "destructive" | "
|
|
11
|
+
variant?: "default" | "destructive" | "info" | "success" | "warning" | "error" | "outline" | "secondary" | 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 };
|
|
@@ -16,7 +16,7 @@ function CommandDialog({ className, children, ...props }) {
|
|
|
16
16
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(cmdk.Command.Dialog, {
|
|
17
17
|
container: container ?? void 0,
|
|
18
18
|
overlayClassName: require_utils.cn("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"),
|
|
19
|
-
contentClassName: require_utils.cn("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-2xl border bg-popover bg-clip-padding text-popover-foreground shadow-lg 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-2xl)-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%)]", className),
|
|
19
|
+
contentClassName: require_utils.cn("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-2xl 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-2xl)-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%)]", className),
|
|
20
20
|
loop: true,
|
|
21
21
|
...props,
|
|
22
22
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_constructive_io_ui_portal.ModalPortalScope, { children })
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command.cjs","names":["CommandPrimitive","cn","ModalPortalScope","SearchIcon"],"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 { 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-2xl border bg-popover bg-clip-padding text-popover-foreground shadow-lg 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-2xl)-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-2xl\",\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-muted-foreground disabled:cursor-not-allowed disabled:opacity-50\"\n placeholder={placeholder}\n data-slot=\"command-input\"\n {...props}\n />\n </div>\n </div>\n );\n}\n\nfunction CommandList({\n className,\n ...props\n}: React.ComponentProps<typeof CommandPrimitive.List>) {\n return (\n <CommandPrimitive.List\n className={cn(\"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 );\n}\n\nfunction CommandEmpty({\n className,\n ...props\n}: React.ComponentProps<typeof CommandPrimitive.Empty>) {\n return (\n <CommandPrimitive.Empty\n className={cn(\"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-xl 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-xl)-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\nfunction CommandItem({\n className,\n ...props\n}: React.ComponentProps<typeof CommandPrimitive.Item>) {\n return (\n <CommandPrimitive.Item\n className={cn(\n \"relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none pointer-coarse:min-h-11 data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50\",\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, ...props }: React.ComponentProps<\"kbd\">) {\n return (\n <span\n className={cn(\n \"ms-auto font-medium text-muted-foreground/72 text-xs tracking-widest\",\n className,\n )}\n data-slot=\"command-shortcut\"\n {...props}\n />\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-2xl)-1px)] px-5 py-3 text-muted-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":";;;;;;;;;;;;;AAQA,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,
|
|
1
|
+
{"version":3,"file":"command.cjs","names":["CommandPrimitive","cn","ModalPortalScope","SearchIcon"],"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 { 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-2xl 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-2xl)-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-2xl\",\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-muted-foreground disabled:cursor-not-allowed disabled:opacity-50\"\n placeholder={placeholder}\n data-slot=\"command-input\"\n {...props}\n />\n </div>\n </div>\n );\n}\n\nfunction CommandList({\n className,\n ...props\n}: React.ComponentProps<typeof CommandPrimitive.List>) {\n return (\n <CommandPrimitive.List\n className={cn(\"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 );\n}\n\nfunction CommandEmpty({\n className,\n ...props\n}: React.ComponentProps<typeof CommandPrimitive.Empty>) {\n return (\n <CommandPrimitive.Empty\n className={cn(\"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-xl 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-xl)-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\nfunction CommandItem({\n className,\n ...props\n}: React.ComponentProps<typeof CommandPrimitive.Item>) {\n return (\n <CommandPrimitive.Item\n className={cn(\n \"relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none pointer-coarse:min-h-11 data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50\",\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, ...props }: React.ComponentProps<\"kbd\">) {\n return (\n <span\n className={cn(\n \"ms-auto font-medium text-muted-foreground/72 text-xs tracking-widest\",\n className,\n )}\n data-slot=\"command-shortcut\"\n {...props}\n />\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-2xl)-1px)] px-5 py-3 text-muted-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":";;;;;;;;;;;;;AAQA,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,wuBACA,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,2DACA,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,GAAG,SACkD;CACrD,OACE,2CAACA,aAAiB,MAAlB;EACE,WAAWC,iBAAG,uFAAuF,SAAS;EAC9G,aAAU;EACV,GAAI;CACL;AAEL;AAEA,SAAS,aAAa,EACpB,WACA,GAAG,SACmD;CACtD,OACE,2CAACD,aAAiB,OAAlB;EACE,WAAWC,iBAAG,kBAAkB,SAAS;EACzC,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;AAEA,SAAS,YAAY,EACnB,WACA,GAAG,SACkD;CACrD,OACE,2CAACD,aAAiB,MAAlB;EACE,WAAWC,iBACT,uRACA,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,GAAG,SAAsC;CAC7E,OACE,2CAAC,QAAD;EACE,WAAWA,iBACT,wEACA,SACF;EACA,aAAU;EACV,GAAI;CACL;AAEL;AAEA,SAAS,cAAc,EAAE,WAAW,GAAG,SAAsC;CAC3E,OACE,2CAAC,OAAD;EACE,WAAWA,iBACT,2HACA,SACF;EACA,aAAU;EACV,GAAI;CACL;AAEL"}
|
|
@@ -13,7 +13,7 @@ function CommandDialog({ className, children, ...props }) {
|
|
|
13
13
|
return /* @__PURE__ */ jsx(Command$1.Dialog, {
|
|
14
14
|
container: container ?? void 0,
|
|
15
15
|
overlayClassName: cn("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"),
|
|
16
|
-
contentClassName: cn("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-2xl border bg-popover bg-clip-padding text-popover-foreground shadow-lg 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-2xl)-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%)]", className),
|
|
16
|
+
contentClassName: cn("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-2xl 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-2xl)-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%)]", className),
|
|
17
17
|
loop: true,
|
|
18
18
|
...props,
|
|
19
19
|
children: /* @__PURE__ */ jsx(ModalPortalScope, { children })
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command.js","names":["CommandPrimitive"],"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 { 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-2xl border bg-popover bg-clip-padding text-popover-foreground shadow-lg 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-2xl)-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-2xl\",\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-muted-foreground disabled:cursor-not-allowed disabled:opacity-50\"\n placeholder={placeholder}\n data-slot=\"command-input\"\n {...props}\n />\n </div>\n </div>\n );\n}\n\nfunction CommandList({\n className,\n ...props\n}: React.ComponentProps<typeof CommandPrimitive.List>) {\n return (\n <CommandPrimitive.List\n className={cn(\"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 );\n}\n\nfunction CommandEmpty({\n className,\n ...props\n}: React.ComponentProps<typeof CommandPrimitive.Empty>) {\n return (\n <CommandPrimitive.Empty\n className={cn(\"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-xl 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-xl)-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\nfunction CommandItem({\n className,\n ...props\n}: React.ComponentProps<typeof CommandPrimitive.Item>) {\n return (\n <CommandPrimitive.Item\n className={cn(\n \"relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none pointer-coarse:min-h-11 data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50\",\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, ...props }: React.ComponentProps<\"kbd\">) {\n return (\n <span\n className={cn(\n \"ms-auto font-medium text-muted-foreground/72 text-xs tracking-widest\",\n className,\n )}\n data-slot=\"command-shortcut\"\n {...props}\n />\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-2xl)-1px)] px-5 py-3 text-muted-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":";;;;;;;;;;AAQA,SAAS,cAAc,EACrB,WACA,UACA,GAAG,SACoD;CACvD,MAAM,YAAY,uBAAuB;CAEzC,OACE,oBAACA,UAAiB,QAAlB;EACE,WAAW,aAAa;EACxB,kBAAkB,GACtB,wMACI;EACA,kBAAkB,GAChB,
|
|
1
|
+
{"version":3,"file":"command.js","names":["CommandPrimitive"],"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 { 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-2xl 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-2xl)-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-2xl\",\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-muted-foreground disabled:cursor-not-allowed disabled:opacity-50\"\n placeholder={placeholder}\n data-slot=\"command-input\"\n {...props}\n />\n </div>\n </div>\n );\n}\n\nfunction CommandList({\n className,\n ...props\n}: React.ComponentProps<typeof CommandPrimitive.List>) {\n return (\n <CommandPrimitive.List\n className={cn(\"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 );\n}\n\nfunction CommandEmpty({\n className,\n ...props\n}: React.ComponentProps<typeof CommandPrimitive.Empty>) {\n return (\n <CommandPrimitive.Empty\n className={cn(\"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-xl 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-xl)-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\nfunction CommandItem({\n className,\n ...props\n}: React.ComponentProps<typeof CommandPrimitive.Item>) {\n return (\n <CommandPrimitive.Item\n className={cn(\n \"relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none pointer-coarse:min-h-11 data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50\",\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, ...props }: React.ComponentProps<\"kbd\">) {\n return (\n <span\n className={cn(\n \"ms-auto font-medium text-muted-foreground/72 text-xs tracking-widest\",\n className,\n )}\n data-slot=\"command-shortcut\"\n {...props}\n />\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-2xl)-1px)] px-5 py-3 text-muted-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":";;;;;;;;;;AAQA,SAAS,cAAc,EACrB,WACA,UACA,GAAG,SACoD;CACvD,MAAM,YAAY,uBAAuB;CAEzC,OACE,oBAACA,UAAiB,QAAlB;EACE,WAAW,aAAa;EACxB,kBAAkB,GACtB,wMACI;EACA,kBAAkB,GAChB,wuBACA,SACF;EACA;EACA,GAAI;YAEJ,oBAAC,kBAAD,EAAmB,SAA2B;CACvB;AAE7B;AAEA,SAAS,mBAAmB,EAC1B,UACA,WACA,GAAG,SAC2B;CAC9B,OACE,oBAAC,OAAD;EAAK,aAAU;EAAkC;EAAW,GAAI;EAC7D;CACE;AAET;AAEA,SAAS,QAAQ,EACf,WACA,GAAG,SAC6C;CAChD,OACE,oBAACA,WAAD;EACE,WAAW,GACT,2DACA,SACF;EACA,aAAU;EACV,GAAI;CACL;AAEL;AAEA,SAAS,aAAa,EACpB,WACA,aACA,GAAG,SACmD;CACtD,OACE,oBAAC,OAAD;EAAK,WAAU;EAAgB,aAAU;YACvC,qBAAC,OAAD;GACE,WAAW,GACT,qDACA,SACF;aAJF,CAME,oBAAC,YAAD,EAAY,WAAU,wCAAyC,IAC/D,oBAACA,UAAiB,OAAlB;IACE,WAAU;IACG;IACb,aAAU;IACV,GAAI;GACL,EACE;;CACF;AAET;AAEA,SAAS,YAAY,EACnB,WACA,GAAG,SACkD;CACrD,OACE,oBAACA,UAAiB,MAAlB;EACE,WAAW,GAAG,uFAAuF,SAAS;EAC9G,aAAU;EACV,GAAI;CACL;AAEL;AAEA,SAAS,aAAa,EACpB,WACA,GAAG,SACmD;CACtD,OACE,oBAACA,UAAiB,OAAlB;EACE,WAAW,GAAG,kBAAkB,SAAS;EACzC,aAAU;EACV,GAAI;CACL;AAEL;AAEA,SAAS,aAAa,EAAE,WAAW,GAAG,SAAsC;CAC1E,OACE,oBAAC,OAAD;EACE,WAAW,GACT,yUACA,SACF;EACA,aAAU;EACV,GAAI;CACL;AAEL;AAEA,SAAS,aAAa,EACpB,WACA,SACA,UACA,GAAG,SAGF;CACD,OACE,oBAACA,UAAiB,OAAlB;EACE,WAAW,GACT,sNACA,SACF;EACS;EACT,aAAU;EACV,GAAI;EAEH;CACqB;AAE5B;AAEA,SAAS,kBAAkB,EACzB,WACA,GAAG,SAC2B;CAC9B,OACE,oBAAC,OAAD;EACE,WAAW,GACT,yDACA,SACF;EACA,aAAU;EACV,GAAI;CACL;AAEL;AAEA,SAAS,kBAAkB,EAAE,YAA2C;CACtE,OAAO,gCAAG,SAAW;AACvB;AAEA,SAAS,YAAY,EACnB,WACA,GAAG,SACkD;CACrD,OACE,oBAACA,UAAiB,MAAlB;EACE,WAAW,GACT,uRACA,SACF;EACA,aAAU;EACV,GAAI;CACL;AAEL;AAEA,SAAS,iBAAiB,EACxB,WACA,GAAG,SACuD;CAC1D,OACE,oBAACA,UAAiB,WAAlB;EACE,WAAW,GAAG,6BAA6B,SAAS;EACpD,aAAU;EACV,GAAI;CACL;AAEL;AAEA,SAAS,gBAAgB,EAAE,WAAW,GAAG,SAAsC;CAC7E,OACE,oBAAC,QAAD;EACE,WAAW,GACT,wEACA,SACF;EACA,aAAU;EACV,GAAI;CACL;AAEL;AAEA,SAAS,cAAc,EAAE,WAAW,GAAG,SAAsC;CAC3E,OACE,oBAAC,OAAD;EACE,WAAW,GACT,2HACA,SACF;EACA,aAAU;EACV,GAAI;CACL;AAEL"}
|
|
@@ -8,7 +8,7 @@ declare function FieldLegend({ className, variant, ...props }: React$1.Component
|
|
|
8
8
|
}): React$1.JSX.Element;
|
|
9
9
|
declare function FieldGroup({ className, ...props }: React$1.ComponentProps<'div'>): React$1.JSX.Element;
|
|
10
10
|
declare const fieldVariants: (props?: ({
|
|
11
|
-
orientation?: "
|
|
11
|
+
orientation?: "horizontal" | "vertical" | "responsive" | null | undefined;
|
|
12
12
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
13
13
|
type StructuralFieldProps = React$1.ComponentProps<'div'> & VariantProps<typeof fieldVariants>;
|
|
14
14
|
interface LegacyFieldProps {
|
|
@@ -8,7 +8,7 @@ declare function FieldLegend({ className, variant, ...props }: React$1.Component
|
|
|
8
8
|
}): React$1.JSX.Element;
|
|
9
9
|
declare function FieldGroup({ className, ...props }: React$1.ComponentProps<'div'>): React$1.JSX.Element;
|
|
10
10
|
declare const fieldVariants: (props?: ({
|
|
11
|
-
orientation?: "
|
|
11
|
+
orientation?: "horizontal" | "vertical" | "responsive" | null | undefined;
|
|
12
12
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
13
13
|
type StructuralFieldProps = React$1.ComponentProps<'div'> & VariantProps<typeof fieldVariants>;
|
|
14
14
|
interface LegacyFieldProps {
|
|
@@ -74,7 +74,7 @@ type SheetOverlayProps = React$1.HTMLAttributes<HTMLDivElement> & {
|
|
|
74
74
|
};
|
|
75
75
|
declare function SheetOverlay({ className, asChild: _asChild, forceMount: _forceMount, ...props }: SheetOverlayProps): React$1.JSX.Element;
|
|
76
76
|
declare const sheetVariants: (props?: ({
|
|
77
|
-
side?: "
|
|
77
|
+
side?: "left" | "right" | "bottom" | "top" | null | undefined;
|
|
78
78
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
79
79
|
type SheetContentProps = Omit<React$1.ComponentProps<typeof Dialog.Popup>, 'children'> & VariantProps<typeof sheetVariants> & HTMLMotionProps<'div'> & {
|
|
80
80
|
transition?: Transition;
|
|
@@ -74,7 +74,7 @@ type SheetOverlayProps = React$1.HTMLAttributes<HTMLDivElement> & {
|
|
|
74
74
|
};
|
|
75
75
|
declare function SheetOverlay({ className, asChild: _asChild, forceMount: _forceMount, ...props }: SheetOverlayProps): React$1.JSX.Element;
|
|
76
76
|
declare const sheetVariants: (props?: ({
|
|
77
|
-
side?: "
|
|
77
|
+
side?: "left" | "right" | "bottom" | "top" | null | undefined;
|
|
78
78
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
79
79
|
type SheetContentProps = Omit<React$1.ComponentProps<typeof Dialog.Popup>, 'children'> & VariantProps<typeof sheetVariants> & HTMLMotionProps<'div'> & {
|
|
80
80
|
transition?: Transition;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
-
const require_sidebar = require('../sidebar-
|
|
4
|
+
const require_sidebar = require('../sidebar-BavjjJp0.cjs');
|
|
5
5
|
|
|
6
6
|
exports.Sidebar = require_sidebar.Sidebar;
|
|
7
7
|
exports.SidebarContent = require_sidebar.SidebarContent;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { n as TooltipContent } from "../tooltip-CTRQoN1A.cjs";
|
|
1
2
|
import { t as Button } from "../button-D4vqTxhp.cjs";
|
|
2
3
|
import { t as Input } from "../input-CBrCuMH8.cjs";
|
|
3
4
|
import { t as Separator } from "../separator-BQEsr0Rc.cjs";
|
|
4
|
-
import { n as TooltipContent } from "../tooltip-CTRQoN1A.cjs";
|
|
5
5
|
import * as React$1 from "react";
|
|
6
6
|
import { VariantProps } from "class-variance-authority";
|
|
7
7
|
import { useRender } from "@base-ui/react/use-render";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { n as TooltipContent } from "../tooltip-CTRQoN1A.js";
|
|
1
2
|
import { t as Button } from "../button-D4vqTxhp.js";
|
|
2
3
|
import { t as Input } from "../input-CBrCuMH8.js";
|
|
3
4
|
import { t as Separator } from "../separator-BQEsr0Rc.js";
|
|
4
|
-
import { n as TooltipContent } from "../tooltip-CTRQoN1A.js";
|
|
5
5
|
import * as React$1 from "react";
|
|
6
6
|
import { VariantProps } from "class-variance-authority";
|
|
7
7
|
import { useRender } from "@base-ui/react/use-render";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import { C as SidebarTrigger, S as SidebarSeparator, _ as SidebarMenuSub, a as SidebarGroupAction, b as SidebarProvider, c as SidebarHeader, d as SidebarMenu, f as SidebarMenuAction, g as SidebarMenuSkeleton, h as SidebarMenuItem, i as SidebarGroup, l as SidebarInput, m as SidebarMenuButton, n as SidebarContent, o as SidebarGroupContent, p as SidebarMenuBadge, r as SidebarFooter, s as SidebarGroupLabel, t as Sidebar, u as SidebarInset, v as SidebarMenuSubButton, w as useSidebar, x as SidebarRail, y as SidebarMenuSubItem } from "../sidebar-
|
|
3
|
+
import { C as SidebarTrigger, S as SidebarSeparator, _ as SidebarMenuSub, a as SidebarGroupAction, b as SidebarProvider, c as SidebarHeader, d as SidebarMenu, f as SidebarMenuAction, g as SidebarMenuSkeleton, h as SidebarMenuItem, i as SidebarGroup, l as SidebarInput, m as SidebarMenuButton, n as SidebarContent, o as SidebarGroupContent, p as SidebarMenuBadge, r as SidebarFooter, s as SidebarGroupLabel, t as Sidebar, u as SidebarInset, v as SidebarMenuSubButton, w as useSidebar, x as SidebarRail, y as SidebarMenuSubItem } from "../sidebar-DeoL2ttp.js";
|
|
4
4
|
|
|
5
5
|
export { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, useSidebar };
|