@conscience-technology/ovenn 0.7.0 → 0.7.3
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/assets/components/AIMessage/AIMessage.module.css +21 -0
- package/assets/components/AIMessage/AIMessage.tsx +27 -7
- package/assets/components/AttachmentItem/AttachmentItem.module.css +41 -10
- package/assets/components/AttachmentItem/AttachmentItem.tsx +25 -8
- package/assets/components/AttachmentThumb/AttachmentThumb.module.css +9 -10
- package/assets/components/Button/Button.module.css +19 -0
- package/assets/components/Callout/Callout.module.css +53 -7
- package/assets/components/Callout/Callout.tsx +26 -2
- package/assets/components/Callout/index.ts +1 -1
- package/assets/components/ChatComposer/ChatComposer.module.css +17 -0
- package/assets/components/ChatComposer/ChatComposer.tsx +131 -0
- package/assets/components/ChatComposer/index.ts +2 -0
- package/assets/components/ChatInput/ChatInput.module.css +192 -30
- package/assets/components/ChatInput/ChatInput.tsx +137 -45
- package/assets/components/ChatInput/SendButton.tsx +4 -1
- package/assets/components/ChatInput/index.ts +5 -0
- package/assets/components/ChatMessage/ChatMessage.module.css +19 -0
- package/assets/components/ChatMessage/ChatMessage.tsx +63 -0
- package/assets/components/ChatMessage/index.ts +2 -0
- package/assets/components/ChatReactions/ChatReactions.module.css +15 -0
- package/assets/components/ChatReactions/ChatReactions.tsx +58 -0
- package/assets/components/ChatReactions/index.ts +2 -0
- package/assets/components/CodeBlock/CodeBlock.module.css +106 -10
- package/assets/components/CodeBlock/CodeBlock.tsx +114 -29
- package/assets/components/CodeBlock/SyntaxHighlight.tsx +20 -0
- package/assets/components/CodeBlock/diff-lines.ts +21 -0
- package/assets/components/CodeBlock/index.ts +2 -1
- package/assets/components/CodeBlock/line-preview.ts +7 -0
- package/assets/components/CodeBlock/syntax-highlighter.ts +96 -0
- package/assets/components/CodeBlock/use-syntax-tokens.ts +17 -0
- package/assets/components/ColorField/ColorField.module.css +19 -196
- package/assets/components/ColorField/ColorField.tsx +116 -109
- package/assets/components/Combobox/Combobox.module.css +21 -4
- package/assets/components/Combobox/Combobox.tsx +37 -21
- package/assets/components/CommandPalette/CommandPalette.module.css +1 -1
- package/assets/components/ControlGroup/ControlGroup.module.css +13 -6
- package/assets/components/DatePicker/DateField.tsx +72 -25
- package/assets/components/DatePicker/DatePicker.module.css +28 -59
- package/assets/components/DatePicker/DatePicker.tsx +76 -40
- package/assets/components/Drawer/Drawer.module.css +12 -15
- package/assets/components/Drawer/Drawer.tsx +15 -23
- package/assets/components/EmojiPicker/EmojiGlyph.module.css +2 -0
- package/assets/components/EmojiPicker/EmojiGlyph.tsx +12 -0
- package/assets/components/EmojiPicker/EmojiPicker.module.css +43 -0
- package/assets/components/EmojiPicker/EmojiPicker.tsx +143 -0
- package/assets/components/EmojiPicker/UNICODE-LICENSE.txt +39 -0
- package/assets/components/EmojiPicker/data.ts +41 -0
- package/assets/components/EmojiPicker/emojiData-0.json +1 -0
- package/assets/components/EmojiPicker/emojiData-1.json +1 -0
- package/assets/components/EmojiPicker/emojiData-2.json +1 -0
- package/assets/components/EmojiPicker/emojiData-3.json +1 -0
- package/assets/components/EmojiPicker/emojiData.sources.json +35 -0
- package/assets/components/EmojiPicker/emojiData.ts +8 -0
- package/assets/components/EmojiPicker/emojiFallbacks.json +1 -0
- package/assets/components/EmojiPicker/index.ts +4 -0
- package/assets/components/EmptyState/EmptyState.module.css +2 -2
- package/assets/components/FileIcon/FileIcon.module.css +4 -6
- package/assets/components/Icon/LucideFamilyIcon.tsx +2 -0
- package/assets/components/Icon/SolarFamilyIcon.tsx +4 -0
- package/assets/components/Input/Input.module.css +33 -10
- package/assets/components/Input/Input.tsx +20 -9
- package/assets/components/MessageActions/MessageActions.module.css +2 -2
- package/assets/components/Onboarding/Onboarding.module.css +1 -1
- package/assets/components/ProgressBar/ProgressBar.module.css +38 -4
- package/assets/components/ProgressBar/ProgressBar.tsx +5 -1
- package/assets/components/RadioCard/RadioCard.module.css +18 -0
- package/assets/components/RadioCard/RadioCard.tsx +48 -7
- package/assets/components/Select/Select.module.css +9 -7
- package/assets/components/Select/Select.tsx +15 -2
- package/assets/components/Tabs/Tabs.module.css +1 -1
- package/assets/components/Tabs/Tabs.tsx +2 -2
- package/assets/components/Textarea/Textarea.module.css +28 -231
- package/assets/components/Textarea/Textarea.tsx +2 -2
- package/assets/components/TimePicker/TimePicker.module.css +16 -4
- package/assets/components/TimePicker/TimePicker.tsx +66 -8
- package/assets/components/Toast/Toast.module.css +18 -0
- package/assets/components/Toast/Toast.tsx +1 -1
- package/assets/components/Tooltip/Tooltip.tsx +33 -7
- package/assets/components/UserMessage/UserMessage.module.css +110 -1
- package/assets/components/UserMessage/UserMessage.tsx +138 -16
- package/assets/components/UserMessage/index.ts +4 -0
- package/assets/components/_data.ts +10 -5
- package/assets/components/_utils.css +31 -5
- package/assets/components/component-registry.json +1595 -107
- package/assets/components/index.ts +7 -0
- package/assets/components/tokens.css +83 -0
- package/assets/prompts/ASSEMBLY.md +11 -0
- package/assets/prompts/CATALOG.md +110 -106
- package/assets/prompts/PRINCIPLES.md +11 -1
- package/assets/prompts/TEMPLATE_PREVIEWS.md +21 -0
- package/assets/prompts/WORKFLOW_DESIGN.md +2 -0
- package/assets/prompts/axes/font.md +6 -0
- package/assets/prompts/axes/material.md +1 -1
- package/assets/prompts/axes/motion.md +2 -0
- package/assets/prompts/axes/palette.md +9 -2
- package/assets/prompts/axes/voice.md +4 -0
- package/assets/prompts/components/README.md +3 -3
- package/assets/prompts/components/_variants.md +35 -35
- package/assets/prompts/components/accordion.md +15 -15
- package/assets/prompts/components/ai-message.md +14 -12
- package/assets/prompts/components/app-frame.md +16 -16
- package/assets/prompts/components/attachment-item.md +36 -30
- package/assets/prompts/components/attachment-thumb.md +14 -12
- package/assets/prompts/components/avatar-upload.md +10 -10
- package/assets/prompts/components/avatar.md +16 -16
- package/assets/prompts/components/badge.md +4 -4
- package/assets/prompts/components/breadcrumb.md +24 -24
- package/assets/prompts/components/bubble.md +13 -13
- package/assets/prompts/components/button-group.md +1 -1
- package/assets/prompts/components/button.md +37 -36
- package/assets/prompts/components/calendar.md +29 -29
- package/assets/prompts/components/callout.md +39 -23
- package/assets/prompts/components/canvas-edge.md +5 -2
- package/assets/prompts/components/canvas-node.md +3 -3
- package/assets/prompts/components/canvas.md +5 -2
- package/assets/prompts/components/card.md +21 -21
- package/assets/prompts/components/chart-bar.md +7 -7
- package/assets/prompts/components/chart-pie.md +3 -3
- package/assets/prompts/components/chart-radar.md +3 -3
- package/assets/prompts/components/chart-radial.md +4 -4
- package/assets/prompts/components/chat-composer.md +71 -0
- package/assets/prompts/components/chat-input.md +82 -27
- package/assets/prompts/components/chat-message.md +48 -0
- package/assets/prompts/components/chat-reactions.md +38 -0
- package/assets/prompts/components/checkbox-card.md +3 -3
- package/assets/prompts/components/checkbox.md +17 -17
- package/assets/prompts/components/chip.md +32 -32
- package/assets/prompts/components/code-block.md +109 -66
- package/assets/prompts/components/code.md +4 -4
- package/assets/prompts/components/color-area.md +9 -9
- package/assets/prompts/components/color-field.md +17 -13
- package/assets/prompts/components/color-picker.md +6 -6
- package/assets/prompts/components/color-slider.md +8 -8
- package/assets/prompts/components/color-swatch-picker.md +8 -8
- package/assets/prompts/components/color-swatch.md +9 -9
- package/assets/prompts/components/combobox.md +5 -2
- package/assets/prompts/components/command-palette.md +26 -26
- package/assets/prompts/components/comment.md +5 -2
- package/assets/prompts/components/context-menu.md +22 -22
- package/assets/prompts/components/control-group.md +4 -4
- package/assets/prompts/components/date-picker.md +31 -23
- package/assets/prompts/components/disclosure.md +10 -10
- package/assets/prompts/components/drawer.md +19 -18
- package/assets/prompts/components/dropdown-menu.md +21 -21
- package/assets/prompts/components/emoji-picker.md +45 -0
- package/assets/prompts/components/empty-state.md +20 -18
- package/assets/prompts/components/event-chip.md +11 -11
- package/assets/prompts/components/event-list-item.md +21 -21
- package/assets/prompts/components/file-icon.md +18 -19
- package/assets/prompts/components/gallery-item.md +19 -19
- package/assets/prompts/components/generated-image.md +10 -10
- package/assets/prompts/components/hint.md +19 -19
- package/assets/prompts/components/icon-button.md +16 -16
- package/assets/prompts/components/icon.md +12 -9
- package/assets/prompts/components/input.md +49 -46
- package/assets/prompts/components/kanban.md +34 -34
- package/assets/prompts/components/list-item.md +39 -39
- package/assets/prompts/components/menu-item.md +41 -41
- package/assets/prompts/components/message-actions.md +6 -6
- package/assets/prompts/components/message-quote.md +7 -7
- package/assets/prompts/components/message-sources.md +10 -10
- package/assets/prompts/components/message-state.md +17 -17
- package/assets/prompts/components/message-table.md +5 -5
- package/assets/prompts/components/mini-calendar.md +6 -1
- package/assets/prompts/components/modal.md +39 -39
- package/assets/prompts/components/multi-select.md +4 -1
- package/assets/prompts/components/onboarding.md +19 -19
- package/assets/prompts/components/page-header.md +31 -31
- package/assets/prompts/components/pagination.md +17 -17
- package/assets/prompts/components/progress-bar.md +14 -11
- package/assets/prompts/components/quotation-bar.md +10 -10
- package/assets/prompts/components/radio-card.md +7 -6
- package/assets/prompts/components/radio.md +9 -9
- package/assets/prompts/components/select.md +28 -25
- package/assets/prompts/components/shortcut.md +11 -11
- package/assets/prompts/components/sidebar.md +56 -56
- package/assets/prompts/components/skeleton.md +7 -4
- package/assets/prompts/components/slider.md +18 -18
- package/assets/prompts/components/spinner.md +16 -16
- package/assets/prompts/components/stepper.md +14 -14
- package/assets/prompts/components/switch.md +19 -20
- package/assets/prompts/components/tab-strip.md +31 -31
- package/assets/prompts/components/table-cell.md +4 -4
- package/assets/prompts/components/table-header.md +16 -16
- package/assets/prompts/components/table-row-edit.md +19 -19
- package/assets/prompts/components/table-row-select.md +9 -9
- package/assets/prompts/components/table-row.md +18 -18
- package/assets/prompts/components/tabs.md +26 -25
- package/assets/prompts/components/tag.md +6 -6
- package/assets/prompts/components/textarea.md +16 -15
- package/assets/prompts/components/time-picker.md +21 -14
- package/assets/prompts/components/timeline-view.md +4 -4
- package/assets/prompts/components/toast.md +42 -41
- package/assets/prompts/components/toolbar.md +23 -23
- package/assets/prompts/components/tooltip.md +15 -14
- package/assets/prompts/components/top-loader.md +11 -11
- package/assets/prompts/components/topbar.md +35 -35
- package/assets/prompts/components/tree-nav.md +9 -9
- package/assets/prompts/components/user-message.md +23 -12
- package/assets/prompts/design-examples/README.md +1 -1
- package/assets/prompts/design-examples/ai-chat-full-page.png +0 -0
- package/assets/prompts/design-examples/catalog.json +124 -1
- package/assets/prompts/design-examples/sources/ai-chat-full-page/ChatExperience.module.css +346 -0
- package/assets/prompts/design-examples/sources/ai-chat-full-page/ChatExperience.tsx +375 -0
- package/assets/prompts/design-examples/sources/ai-chat-full-page/FullPageChat.tsx +8 -0
- package/assets/prompts/design-examples/sources/ai-chat-full-page/REFERENCE.md +19 -0
- package/assets/prompts/design-examples/sources/ai-chat-full-page/useChatDemo.ts +139 -0
- package/assets/prompts/design-examples/sources/ai-chat-full-page/useDemoTextStream.ts +30 -0
- package/assets/prompts/primitives/emerge.md +2 -0
- package/assets/prompts/templates/README.md +1 -1
- package/assets/prompts/templates/ains.md +7 -0
- package/assets/prompts/templates/minimal.md +6 -0
- package/assets/prompts/templates/onboarding.md +156 -0
- package/assets/prompts/templates/workspace.md +13 -8
- package/assets/prompts/tokens/color.md +7 -2
- package/assets/prompts/tokens/radius.md +22 -0
- package/assets/prompts/use-cases/chart-chart-area.md +40 -40
- package/assets/prompts/use-cases/chart-chart-bar.md +34 -34
- package/assets/prompts/use-cases/chart-chart-pie.md +14 -14
- package/assets/prompts/use-cases/chart-chart-radar.md +24 -24
- package/assets/prompts/use-cases/chart-chart-radial.md +14 -14
- package/assets/prompts/use-cases/chart-segmented-chart.md +32 -32
- package/assets/prompts/use-cases/chat-chat-composer.md +529 -0
- package/assets/prompts/use-cases/chat-chat-input.md +1766 -0
- package/assets/prompts/use-cases/data-comment.md +39 -39
- package/assets/prompts/use-cases/data-data-table.md +34 -34
- package/assets/prompts/use-cases/data-list-item.md +16 -16
- package/assets/prompts/use-cases/data-metric-card.md +18 -18
- package/assets/prompts/use-cases/data-table-row.md +19 -19
- package/assets/prompts/use-cases/data-table-toolbar.md +10 -10
- package/assets/prompts/use-cases/feedback-drawer.md +35 -30
- package/assets/prompts/use-cases/feedback-progress-bar.md +23 -18
- package/assets/prompts/use-cases/general-toolbar.md +16 -16
- package/assets/prompts/use-cases/general-tooltip.md +26 -26
- package/assets/prompts/use-cases/input-checkbox.md +27 -27
- package/assets/prompts/use-cases/structure-card.md +9 -9
- package/assets/prompts/use-cases/structure-page-header.md +17 -17
- package/assets/prompts/use-cases/structure-sidebar.md +20 -20
- package/assets/prompts/use-cases/structure-topbar.md +38 -42
- package/assets/skills/ovenn-wireframe/SKILL.md +17 -4
- package/package.json +6 -2
- package/src/utils/design-examples.js +3 -4
- package/assets/prompts/templates/glass-button.md +0 -337
|
@@ -26,6 +26,27 @@
|
|
|
26
26
|
min-width: 0;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
+
.body [data-ai-message-text] {
|
|
30
|
+
white-space: pre-wrap;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.streamChar {
|
|
34
|
+
animation: aimsg-stream-in var(--duration-slow) var(--ease-out) both;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@keyframes aimsg-stream-in {
|
|
38
|
+
from { opacity: 0; }
|
|
39
|
+
to { opacity: 1; }
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
:global([data-motion="none"]) .streamChar {
|
|
43
|
+
animation: none;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
@media (prefers-reduced-motion: reduce) {
|
|
47
|
+
.streamChar { animation: none; }
|
|
48
|
+
}
|
|
49
|
+
|
|
29
50
|
/* isGenerating — 한 글자씩 통통 wave. Spinner+텍스트 세로 중앙 정렬. */
|
|
30
51
|
.root[data-generating="true"] .body {
|
|
31
52
|
color: var(--fg-muted);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import type
|
|
3
|
+
import { useEffect, useState, type HTMLAttributes, type ReactNode } from "react";
|
|
4
4
|
import {
|
|
5
5
|
MessageActions,
|
|
6
6
|
type MessageAction,
|
|
@@ -29,6 +29,8 @@ export interface AIMessageProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
29
29
|
onSourcesClick?: () => void;
|
|
30
30
|
/** 생성 중이면 액션 숨김. */
|
|
31
31
|
isGenerating?: boolean;
|
|
32
|
+
/** 본문 수신 중. children에 누적 본문을 전달하며 액션은 완료 후 표시. */
|
|
33
|
+
isStreaming?: boolean;
|
|
32
34
|
}
|
|
33
35
|
|
|
34
36
|
const DEFAULT_ACTIONS: MessageAction[] = [
|
|
@@ -58,6 +60,20 @@ function renderBouncingText(text: string) {
|
|
|
58
60
|
});
|
|
59
61
|
}
|
|
60
62
|
|
|
63
|
+
function MessageText({ text, streaming }: { text: string; streaming: boolean }) {
|
|
64
|
+
const [hasStreamed, setHasStreamed] = useState(streaming);
|
|
65
|
+
useEffect(() => { if (streaming) setHasStreamed(true); }, [streaming]);
|
|
66
|
+
if (!streaming && !hasStreamed) return <span data-ai-message-text>{text}</span>;
|
|
67
|
+
const characters = Array.from(new Intl.Segmenter(undefined, { granularity: "grapheme" }).segment(text), (part) => part.segment);
|
|
68
|
+
return (
|
|
69
|
+
<span data-ai-message-text>
|
|
70
|
+
{characters.map((character, index) => (
|
|
71
|
+
<span key={index} className={styles.streamChar}>{character}</span>
|
|
72
|
+
))}
|
|
73
|
+
</span>
|
|
74
|
+
);
|
|
75
|
+
}
|
|
76
|
+
|
|
61
77
|
export function AIMessage({
|
|
62
78
|
children,
|
|
63
79
|
label,
|
|
@@ -66,23 +82,27 @@ export function AIMessage({
|
|
|
66
82
|
sources,
|
|
67
83
|
onSourcesClick,
|
|
68
84
|
isGenerating = false,
|
|
85
|
+
isStreaming = false,
|
|
69
86
|
className,
|
|
70
87
|
...rest
|
|
71
88
|
}: AIMessageProps) {
|
|
72
89
|
const cls = [styles.root, className].filter(Boolean).join(" ");
|
|
73
|
-
const
|
|
74
|
-
const
|
|
90
|
+
const pending = isGenerating || isStreaming;
|
|
91
|
+
const hasSources = sources && sources.length > 0 && !pending;
|
|
92
|
+
const hasActions = (actions.length > 0 || hasSources) && !pending;
|
|
75
93
|
|
|
76
94
|
return (
|
|
77
95
|
<div
|
|
78
96
|
className={cls}
|
|
79
97
|
data-actions-visibility={actionsVisibility}
|
|
80
|
-
data-generating={isGenerating ? "true" : undefined}
|
|
98
|
+
data-generating={isGenerating && !isStreaming ? "true" : undefined}
|
|
99
|
+
data-streaming={isStreaming ? "true" : undefined}
|
|
100
|
+
aria-busy={pending || undefined}
|
|
81
101
|
{...rest}
|
|
82
102
|
>
|
|
83
103
|
{label ? <div className={styles.label}>{label}</div> : null}
|
|
84
|
-
<div className={styles.body}>
|
|
85
|
-
{isGenerating ? (
|
|
104
|
+
<div className={styles.body} data-ai-message-body>
|
|
105
|
+
{isGenerating && !isStreaming ? (
|
|
86
106
|
<>
|
|
87
107
|
<Spinner variant="lottie-dots" size="sm" className={styles.generatingSpinner} />
|
|
88
108
|
<span className={styles.generatingText}>
|
|
@@ -90,7 +110,7 @@ export function AIMessage({
|
|
|
90
110
|
</span>
|
|
91
111
|
</>
|
|
92
112
|
) : (
|
|
93
|
-
children
|
|
113
|
+
typeof children === "string" ? <MessageText text={children} streaming={isStreaming} /> : children
|
|
94
114
|
)}
|
|
95
115
|
</div>
|
|
96
116
|
{hasActions ? (
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
/* AttachmentItem — [leading] filename (meta) [actions]
|
|
2
|
-
size sm/md:
|
|
2
|
+
size sm/md: 한 줄 첨부 — 좁은 폭(55 * unit = 220px).
|
|
3
3
|
size lg: 2줄 큰 카드 (파일명 위 / meta 아래) — --input-w-lg(400px) 폭. */
|
|
4
4
|
|
|
5
5
|
.root {
|
|
6
|
+
--attachment-exit-ms: 160;
|
|
7
|
+
--attachment-action-fg: color-mix(in oklab, var(--fg-muted) 50%, var(--fg-subtle) 50%);
|
|
8
|
+
position: relative;
|
|
6
9
|
display: inline-flex;
|
|
7
10
|
align-items: center;
|
|
8
11
|
gap: var(--space-2);
|
|
@@ -17,30 +20,35 @@
|
|
|
17
20
|
}
|
|
18
21
|
|
|
19
22
|
/* ───────── size ─────────
|
|
20
|
-
sm/md: 1줄.
|
|
21
|
-
lg: 2줄 세로 스택.
|
|
23
|
+
sm/md: 1줄. 작은 크기에 맞춘 Shape 반경. 좁은 폭.
|
|
24
|
+
lg: 2줄 세로 스택. 작은 카드 반경 + 넉넉한 padding. 큰 폭. */
|
|
22
25
|
.sizeSm {
|
|
23
|
-
|
|
26
|
+
--attachment-radius: calc(var(--radius-xs) * 0.8);
|
|
27
|
+
height: var(--size-8);
|
|
28
|
+
padding: calc((var(--size-8) - var(--size-6)) / 2 - var(--hairline)) var(--space-1) calc((var(--size-8) - var(--size-6)) / 2 - var(--hairline)) var(--space-2);
|
|
24
29
|
gap: var(--space-1_5);
|
|
25
30
|
font-size: var(--text-xs);
|
|
26
31
|
corner-shape: var(--corner-shape);
|
|
27
|
-
border-radius: var(--radius
|
|
32
|
+
border-radius: var(--attachment-radius);
|
|
28
33
|
width: calc(var(--size-unit) * 55);
|
|
29
34
|
}
|
|
30
35
|
.sizeMd {
|
|
31
|
-
|
|
36
|
+
--attachment-radius: calc(var(--radius-sm) * 0.8);
|
|
37
|
+
height: var(--size-10);
|
|
38
|
+
padding: calc((var(--size-10) - var(--size-6)) / 2 - var(--hairline)) var(--space-1_5) calc((var(--size-10) - var(--size-6)) / 2 - var(--hairline)) var(--space-2_5);
|
|
32
39
|
gap: var(--space-2);
|
|
33
40
|
font-size: var(--text-sm);
|
|
34
41
|
corner-shape: var(--corner-shape);
|
|
35
|
-
border-radius: var(--radius
|
|
42
|
+
border-radius: var(--attachment-radius);
|
|
36
43
|
width: calc(var(--size-unit) * 55);
|
|
37
44
|
}
|
|
38
45
|
.sizeLg {
|
|
46
|
+
--attachment-radius: calc(var(--radius-md) * 0.8);
|
|
39
47
|
padding: var(--space-2_5) var(--space-1_5) var(--space-2_5) var(--space-2_5);
|
|
40
48
|
gap: var(--space-2_5);
|
|
41
49
|
font-size: var(--text-sm);
|
|
42
50
|
corner-shape: var(--corner-shape);
|
|
43
|
-
border-radius: var(--radius
|
|
51
|
+
border-radius: var(--attachment-radius);
|
|
44
52
|
width: var(--input-w-lg);
|
|
45
53
|
}
|
|
46
54
|
|
|
@@ -55,7 +63,7 @@
|
|
|
55
63
|
.sizeLg .text {
|
|
56
64
|
flex-direction: column;
|
|
57
65
|
align-items: flex-start;
|
|
58
|
-
gap:
|
|
66
|
+
gap: 0;
|
|
59
67
|
}
|
|
60
68
|
|
|
61
69
|
.label {
|
|
@@ -114,7 +122,7 @@
|
|
|
114
122
|
.actions {
|
|
115
123
|
display: inline-flex;
|
|
116
124
|
align-items: center;
|
|
117
|
-
gap:
|
|
125
|
+
gap: 0;
|
|
118
126
|
flex: 0 0 auto;
|
|
119
127
|
}
|
|
120
128
|
|
|
@@ -122,3 +130,26 @@
|
|
|
122
130
|
.root.fill { width: 100%; }
|
|
123
131
|
.fill .text { flex: 1; }
|
|
124
132
|
.fill .meta { width: 100%; white-space: normal; overflow: visible; color: var(--fg-muted); }
|
|
133
|
+
|
|
134
|
+
.action.action,
|
|
135
|
+
.action.action:hover:not(:disabled) { color: var(--attachment-action-fg); }
|
|
136
|
+
|
|
137
|
+
.action.action > svg { width: var(--size-4); height: var(--size-4); }
|
|
138
|
+
.sizeLg .action.action > svg { width: var(--size-5); height: var(--size-5); }
|
|
139
|
+
|
|
140
|
+
.action[data-feedback] > svg {
|
|
141
|
+
animation: attachment-feedback var(--duration-base) var(--ease-out);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
@keyframes attachment-feedback {
|
|
145
|
+
from { opacity: 0; transform: scale(0.8); }
|
|
146
|
+
to { opacity: 1; transform: scale(1); }
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
:global([data-motion="none"]) .action[data-feedback] > svg { animation: none; }
|
|
150
|
+
|
|
151
|
+
@media (prefers-reduced-motion: reduce) {
|
|
152
|
+
.action[data-feedback] > svg { animation: none; }
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.uploadProgress { --progressbar-corner-shape: round; position: absolute; inset-inline: calc(var(--hairline) * -1); bottom: calc(var(--hairline) * -1); width: auto; }
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import type
|
|
3
|
+
import { useEffect, useRef, useState, type CSSProperties, type HTMLAttributes, type MouseEvent, type ReactNode } from "react";
|
|
4
4
|
import {
|
|
5
5
|
DotsThree as PhDotsThree,
|
|
6
6
|
DownloadSimple as PhDownload,
|
|
7
7
|
X as PhX,
|
|
8
|
+
Check as PhCheck,
|
|
8
9
|
} from "@phosphor-icons/react";
|
|
10
|
+
import { ProgressBar } from "@/components/ovenn/ProgressBar";
|
|
9
11
|
import { FileIcon, type FileIconSize } from "@/components/ovenn/FileIcon";
|
|
10
12
|
import { IconButton, type IconButtonSize } from "@/components/ovenn/IconButton";
|
|
11
13
|
import { Spinner } from "@/components/ovenn/Spinner";
|
|
@@ -42,6 +44,7 @@ export interface AttachmentItemProps
|
|
|
42
44
|
/** sm/md: 파일명 옆 inline 보조 영역. lg: 파일명 아래 2번째 줄.
|
|
43
45
|
* 문자열이면 muted 라벨로, ReactNode면 그대로 렌더 (ex. Button ghost xs). */
|
|
44
46
|
meta?: ReactNode;
|
|
47
|
+
progress?: number;
|
|
45
48
|
/** 지정 시 우측 X. */
|
|
46
49
|
onRemove?: (e: MouseEvent<HTMLButtonElement>) => void;
|
|
47
50
|
/** 지정 시 우측 다운로드 아이콘. */
|
|
@@ -63,11 +66,11 @@ const FILE_ICON_SIZE: Record<AttachmentItemSize, FileIconSize> = {
|
|
|
63
66
|
lg: "lg",
|
|
64
67
|
};
|
|
65
68
|
|
|
66
|
-
/** trailing IconButton 크기 — sm/md=
|
|
69
|
+
/** trailing IconButton 크기 — sm/md=xs(24), lg=sm(32). IconButton 공식 사이즈만 사용. */
|
|
67
70
|
const ACTION_BTN_SIZE: Record<AttachmentItemSize, IconButtonSize> = {
|
|
68
|
-
sm: "
|
|
69
|
-
md: "
|
|
70
|
-
lg: "
|
|
71
|
+
sm: "xs",
|
|
72
|
+
md: "xs",
|
|
73
|
+
lg: "sm",
|
|
71
74
|
};
|
|
72
75
|
|
|
73
76
|
/** loading 자리의 Spinner 크기 — loadingSlot(=FileIcon 치수) 16/24/32와 일치시켜야
|
|
@@ -98,6 +101,7 @@ export function AttachmentItem({
|
|
|
98
101
|
width = "fixed",
|
|
99
102
|
size = "md",
|
|
100
103
|
state = "idle",
|
|
104
|
+
progress,
|
|
101
105
|
meta,
|
|
102
106
|
onRemove,
|
|
103
107
|
onDownload,
|
|
@@ -106,6 +110,9 @@ export function AttachmentItem({
|
|
|
106
110
|
...rest
|
|
107
111
|
}: AttachmentItemProps) {
|
|
108
112
|
const { lang } = useTheme();
|
|
113
|
+
const [downloadFeedback, setDownloadFeedback] = useState(false);
|
|
114
|
+
const feedbackTimer = useRef<ReturnType<typeof setTimeout> | undefined>(undefined);
|
|
115
|
+
useEffect(() => () => clearTimeout(feedbackTimer.current), []);
|
|
109
116
|
const L = ATTACHMENT_ITEM_LABELS[lang];
|
|
110
117
|
const cls = [
|
|
111
118
|
styles.root,
|
|
@@ -136,7 +143,8 @@ export function AttachmentItem({
|
|
|
136
143
|
const actionSize = ACTION_BTN_SIZE[size];
|
|
137
144
|
|
|
138
145
|
return (
|
|
139
|
-
<div className={cls} {...rest}>
|
|
146
|
+
<div className={cls} data-slot="attachment-item-root" data-uploading={state === "loading" || undefined} {...rest}>
|
|
147
|
+
{state === "loading" && <ProgressBar variant="flow" className={styles.uploadProgress} size="sm" value={progress} aria-label={`${filename} ${L.uploading}`} />}
|
|
140
148
|
{leading}
|
|
141
149
|
|
|
142
150
|
<span className={styles.text}>
|
|
@@ -152,15 +160,23 @@ export function AttachmentItem({
|
|
|
152
160
|
<span className={styles.actions}>
|
|
153
161
|
{onDownload ? (
|
|
154
162
|
<IconButton
|
|
163
|
+
className={styles.action}
|
|
155
164
|
size={actionSize}
|
|
156
165
|
variant="ghost"
|
|
157
|
-
onClick={
|
|
166
|
+
onClick={(event) => {
|
|
167
|
+
onDownload(event);
|
|
168
|
+
clearTimeout(feedbackTimer.current);
|
|
169
|
+
setDownloadFeedback(true);
|
|
170
|
+
feedbackTimer.current = setTimeout(() => setDownloadFeedback(false), 1200);
|
|
171
|
+
}}
|
|
172
|
+
data-feedback={downloadFeedback || undefined}
|
|
158
173
|
aria-label={L.download}
|
|
159
|
-
icon={<PhDownload />}
|
|
174
|
+
icon={downloadFeedback ? <PhCheck /> : <PhDownload />}
|
|
160
175
|
/>
|
|
161
176
|
) : null}
|
|
162
177
|
{onMore ? (
|
|
163
178
|
<IconButton
|
|
179
|
+
className={styles.action}
|
|
164
180
|
size={actionSize}
|
|
165
181
|
variant="ghost"
|
|
166
182
|
onClick={onMore}
|
|
@@ -171,6 +187,7 @@ export function AttachmentItem({
|
|
|
171
187
|
) : null}
|
|
172
188
|
{onRemove ? (
|
|
173
189
|
<IconButton
|
|
190
|
+
className={styles.action}
|
|
174
191
|
size={actionSize}
|
|
175
192
|
variant="ghost"
|
|
176
193
|
onClick={onRemove}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* AttachmentThumb — 정사각 썸네일.
|
|
2
|
-
비율은 FileIcon과 동일 (radius 0.25, glyph 0.60).
|
|
2
|
+
비율은 FileIcon과 동일 (radius 0.25, glyph 0.60). sm/md 높이는 AttachmentItem과 같은 size 토큰 사용. */
|
|
3
3
|
|
|
4
4
|
.root {
|
|
5
|
-
--at-size:
|
|
5
|
+
--at-size: var(--size-10);
|
|
6
6
|
|
|
7
7
|
position: relative;
|
|
8
8
|
display: inline-flex;
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
Remove 버튼이 바깥으로 overlap되도록. */
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
.sizeSm { --at-size:
|
|
23
|
-
.sizeMd { --at-size:
|
|
24
|
-
.sizeLg { --at-size:
|
|
22
|
+
.sizeSm { --at-size: var(--size-8); }
|
|
23
|
+
.sizeMd { --at-size: var(--size-10); }
|
|
24
|
+
.sizeLg { --at-size: calc(var(--size-unit) * 14); }
|
|
25
25
|
|
|
26
26
|
/* 이미지 — 다크/라이트 공통 검정 보더(이미지 가장자리 분리).
|
|
27
27
|
<img>에 inset shadow 걸면 이미지 픽셀이 덮어버리므로 부모에 outline 사용. */
|
|
@@ -82,12 +82,11 @@
|
|
|
82
82
|
50% { background-position: 100% 50%; }
|
|
83
83
|
100% { background-position: 0% 50%; }
|
|
84
84
|
}
|
|
85
|
-
/*
|
|
85
|
+
/* 로딩 표시는 썸네일의 일부만 차지하며 중앙에 배치한다. */
|
|
86
86
|
.loading > span[role="status"] {
|
|
87
87
|
position: relative;
|
|
88
88
|
z-index: var(--z-raise);
|
|
89
|
-
|
|
90
|
-
transform-origin: center;
|
|
89
|
+
--loader-size: calc(var(--at-size) * 0.45);
|
|
91
90
|
}
|
|
92
91
|
|
|
93
92
|
/* Remove 버튼 — hover 시만 노출. 코너 overlap. */
|
|
@@ -102,8 +101,8 @@
|
|
|
102
101
|
justify-content: center;
|
|
103
102
|
padding: 0;
|
|
104
103
|
border: 0;
|
|
105
|
-
corner-shape:
|
|
106
|
-
border-radius:
|
|
104
|
+
corner-shape: round;
|
|
105
|
+
border-radius: 50%;
|
|
107
106
|
background: var(--bg);
|
|
108
107
|
color: var(--fg);
|
|
109
108
|
box-shadow:
|
|
@@ -293,6 +293,25 @@
|
|
|
293
293
|
--button-fg: var(--fg-muted);
|
|
294
294
|
--button-border: var(--border);
|
|
295
295
|
}
|
|
296
|
+
/* Paint the thin outline outside the shared control box. The 1px native border
|
|
297
|
+
stays transparent for layout; padding-box inset -2 hairlines extends the
|
|
298
|
+
visible contour by one hairline without changing heights or icon-only squares. */
|
|
299
|
+
.outline {
|
|
300
|
+
border-color: transparent;
|
|
301
|
+
}
|
|
302
|
+
.outline:not([data-slot="control-group"][data-composition="buttons"] > *)::before {
|
|
303
|
+
content: "";
|
|
304
|
+
position: absolute;
|
|
305
|
+
inset: calc(var(--hairline) * -2);
|
|
306
|
+
box-sizing: border-box;
|
|
307
|
+
border: var(--hairline) solid var(--button-border);
|
|
308
|
+
corner-shape: inherit;
|
|
309
|
+
border-radius: inherit;
|
|
310
|
+
pointer-events: none;
|
|
311
|
+
}
|
|
312
|
+
.outline:not([data-slot="control-group"][data-composition="buttons"] > *):is(:disabled, [aria-disabled="true"]):not([data-loading="true"])::before {
|
|
313
|
+
display: none;
|
|
314
|
+
}
|
|
296
315
|
.outline:hover:not(:disabled):not([aria-disabled="true"]) {
|
|
297
316
|
--button-fg: var(--fg);
|
|
298
317
|
}
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
패딩·gap은 사진의 밸런스를 재현 — 아이콘 좌우 gap은 타이틀 line-height 보정으로
|
|
5
5
|
space-3, 헤더-본문-액션은 space-3 리듬. */
|
|
6
6
|
.root {
|
|
7
|
+
/* 광색역 배경이 sRGB 범위를 넘을 때 글래스 합성 색의 왜곡을 방지한다. */
|
|
8
|
+
--callout-material-bg: rgb(from var(--material-floating-bg) clamp(0, r, 255) clamp(0, g, 255) clamp(0, b, 255) / alpha); /* lint-hardcoded: ignore — 기존 Material 색의 채널 범위만 정규화하는 로컬 토큰 정의 */
|
|
7
9
|
display: flex;
|
|
8
10
|
flex-direction: column;
|
|
9
11
|
gap: var(--space-1_5);
|
|
@@ -11,7 +13,8 @@
|
|
|
11
13
|
corner-shape: var(--card-corner-shape);
|
|
12
14
|
border-radius: var(--radius-md);
|
|
13
15
|
color: var(--fg);
|
|
14
|
-
border: 1px solid transparent;
|
|
16
|
+
border: 1px solid var(--material-border, transparent);
|
|
17
|
+
backdrop-filter: var(--material-floating-filter, none);
|
|
15
18
|
font-family: var(--font-sans);
|
|
16
19
|
}
|
|
17
20
|
|
|
@@ -20,11 +23,12 @@
|
|
|
20
23
|
outline: 표면 투명 + tone border (32% 알파).
|
|
21
24
|
tone별로 --callout-subtle / --callout-border를 스왑해서 재사용. */
|
|
22
25
|
.fill {
|
|
23
|
-
background: var(--callout-subtle);
|
|
26
|
+
background: var(--callout-material-bg, var(--callout-subtle));
|
|
24
27
|
}
|
|
25
28
|
.outline {
|
|
26
|
-
background: transparent;
|
|
27
|
-
border-color: var(--callout-border);
|
|
29
|
+
background: var(--callout-material-bg, transparent);
|
|
30
|
+
border-color: var(--material-border, var(--callout-border));
|
|
31
|
+
box-shadow: var(--shadow-sm);
|
|
28
32
|
}
|
|
29
33
|
|
|
30
34
|
/* Head: icon | title | dismiss ─────────────────────────────── */
|
|
@@ -56,11 +60,17 @@
|
|
|
56
60
|
}
|
|
57
61
|
.dismiss {
|
|
58
62
|
flex-shrink: 0;
|
|
59
|
-
/*
|
|
60
|
-
margin-
|
|
63
|
+
/* 작은 닫기 버튼의 중심을 타이틀 첫 줄에 맞춘다. */
|
|
64
|
+
margin-block: calc((var(--lh-sm) - var(--iconbtn-h-sm)) / 2);
|
|
61
65
|
margin-inline-end: calc(var(--space-1) * -1);
|
|
62
66
|
}
|
|
63
67
|
|
|
68
|
+
/* 버튼 영역과 글리프 크기는 독립적이다. 안내 아이콘은 유지하고 X만 중간 크기로 맞춘다. */
|
|
69
|
+
.root .dismiss > svg {
|
|
70
|
+
width: var(--icon-size-sm);
|
|
71
|
+
height: var(--icon-size-sm);
|
|
72
|
+
}
|
|
73
|
+
|
|
64
74
|
/* Body ─────────────────────────────────────────────────────── */
|
|
65
75
|
.body {
|
|
66
76
|
color: var(--fg-muted);
|
|
@@ -107,7 +117,7 @@
|
|
|
107
117
|
}
|
|
108
118
|
/* side 안으로 옮겨진 dismiss는 head baseline 보정 불필요. */
|
|
109
119
|
.actionsRight .side .dismiss {
|
|
110
|
-
margin-
|
|
120
|
+
margin-block: 0;
|
|
111
121
|
margin-inline-end: calc(var(--space-1) * -1);
|
|
112
122
|
}
|
|
113
123
|
.actionsRight .body {
|
|
@@ -145,3 +155,39 @@
|
|
|
145
155
|
--callout-subtle: var(--destructive-subtle);
|
|
146
156
|
--callout-border: var(--destructive-border-color);
|
|
147
157
|
}
|
|
158
|
+
|
|
159
|
+
/* Inline: toast처럼 낮은 가로 안내. 내용과 액션은 좁은 폭에서 줄바꿈. */
|
|
160
|
+
.inline {
|
|
161
|
+
flex-direction: row;
|
|
162
|
+
align-items: center;
|
|
163
|
+
flex-wrap: wrap;
|
|
164
|
+
gap: var(--space-2);
|
|
165
|
+
padding: var(--space-3) var(--space-4);
|
|
166
|
+
}
|
|
167
|
+
.message {
|
|
168
|
+
flex: 1;
|
|
169
|
+
min-width: 0;
|
|
170
|
+
overflow-wrap: anywhere;
|
|
171
|
+
font-size: var(--text-sm);
|
|
172
|
+
line-height: var(--lh-sm);
|
|
173
|
+
}
|
|
174
|
+
.message .title,
|
|
175
|
+
.message .body {
|
|
176
|
+
display: inline;
|
|
177
|
+
}
|
|
178
|
+
.message > .body:only-child {
|
|
179
|
+
color: var(--fg);
|
|
180
|
+
}
|
|
181
|
+
.message .title + .body::before {
|
|
182
|
+
content: " ";
|
|
183
|
+
white-space: pre-wrap;
|
|
184
|
+
}
|
|
185
|
+
.inline > .actions {
|
|
186
|
+
max-width: 100%;
|
|
187
|
+
/* 컨트롤이 기존 세로 패딩을 사용하도록 해 한 줄 높이를 늘리지 않는다.
|
|
188
|
+
xs/sm 액션 및 md 컨트롤까지 본문 행의 중심에 배치한다. */
|
|
189
|
+
margin-block: calc(var(--space-2) * -1);
|
|
190
|
+
}
|
|
191
|
+
.inline > .actions > .dismiss {
|
|
192
|
+
margin-block: 0;
|
|
193
|
+
}
|
|
@@ -16,6 +16,7 @@ import styles from "./Callout.module.css";
|
|
|
16
16
|
* - dismissible=true면 우상단 닫기 IconButton 렌더 + onDismiss 호출 (controlled 정책).
|
|
17
17
|
*/
|
|
18
18
|
export type CalloutTone = "neutral" | "brand" | "success" | "warning" | "destructive";
|
|
19
|
+
export type CalloutLayout = "card" | "inline";
|
|
19
20
|
export type CalloutVariant = "fill" | "outline";
|
|
20
21
|
export type CalloutActionsPlacement = "bottom" | "right";
|
|
21
22
|
|
|
@@ -35,6 +36,8 @@ export interface CalloutProps extends Omit<HTMLAttributes<HTMLDivElement>, "titl
|
|
|
35
36
|
/** 하단(또는 우측) 액션 슬롯. Button/Link 자유 배치. */
|
|
36
37
|
actions?: ReactNode;
|
|
37
38
|
actionsPlacement?: CalloutActionsPlacement;
|
|
39
|
+
/** card=기존 카드, inline=아이콘·메시지·액션·닫기를 가로 배치. 긴 내용은 줄바꿈. */
|
|
40
|
+
layout?: CalloutLayout;
|
|
38
41
|
/** 카드 표면 강도. fill=tone tint 표면, outline=표면 투명 + 경계. */
|
|
39
42
|
variant?: CalloutVariant;
|
|
40
43
|
/** tone은 아이콘·강조 색만 스왑. 표면·본문 텍스트는 유지. */
|
|
@@ -79,6 +82,7 @@ const Callout = forwardRef<HTMLDivElement, CalloutProps>(
|
|
|
79
82
|
children,
|
|
80
83
|
actions,
|
|
81
84
|
actionsPlacement = "bottom",
|
|
85
|
+
layout = "card",
|
|
82
86
|
variant = "fill",
|
|
83
87
|
tone = "brand",
|
|
84
88
|
dismissible = false,
|
|
@@ -92,7 +96,9 @@ const Callout = forwardRef<HTMLDivElement, CalloutProps>(
|
|
|
92
96
|
styles.root,
|
|
93
97
|
variantClass[variant],
|
|
94
98
|
toneClass[tone],
|
|
95
|
-
|
|
99
|
+
layout === "inline"
|
|
100
|
+
? styles.inline
|
|
101
|
+
: actionsPlacement === "right" ? styles.actionsRight : styles.actionsBottom,
|
|
96
102
|
className ?? "",
|
|
97
103
|
]
|
|
98
104
|
.filter(Boolean)
|
|
@@ -112,7 +118,7 @@ const Callout = forwardRef<HTMLDivElement, CalloutProps>(
|
|
|
112
118
|
const dismissBtn = dismissible ? (
|
|
113
119
|
<IconButton
|
|
114
120
|
className={styles.dismiss}
|
|
115
|
-
size="
|
|
121
|
+
size="sm"
|
|
116
122
|
variant="ghost"
|
|
117
123
|
icon={<Icon name="x" />}
|
|
118
124
|
onClick={onDismiss}
|
|
@@ -120,6 +126,24 @@ const Callout = forwardRef<HTMLDivElement, CalloutProps>(
|
|
|
120
126
|
/>
|
|
121
127
|
) : null;
|
|
122
128
|
|
|
129
|
+
if (layout === "inline") {
|
|
130
|
+
return (
|
|
131
|
+
<div ref={ref} className={rootClass} {...rest}>
|
|
132
|
+
{iconNode && <span className={styles.icon} aria-hidden>{iconNode}</span>}
|
|
133
|
+
<div className={styles.message}>
|
|
134
|
+
{title != null && <div className={styles.title}>{title}</div>}
|
|
135
|
+
{children != null && <div className={styles.body}>{children}</div>}
|
|
136
|
+
</div>
|
|
137
|
+
{(actions || dismissBtn) && (
|
|
138
|
+
<div className={styles.actions}>
|
|
139
|
+
{actions}
|
|
140
|
+
{dismissBtn}
|
|
141
|
+
</div>
|
|
142
|
+
)}
|
|
143
|
+
</div>
|
|
144
|
+
);
|
|
145
|
+
}
|
|
146
|
+
|
|
123
147
|
return (
|
|
124
148
|
<div ref={ref} className={rootClass} {...rest}>
|
|
125
149
|
<div className={styles.head}>
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { Callout } from "./Callout";
|
|
2
|
-
export type { CalloutProps, CalloutTone, CalloutVariant, CalloutActionsPlacement } from "./Callout";
|
|
2
|
+
export type { CalloutProps, CalloutLayout, CalloutTone, CalloutVariant, CalloutActionsPlacement } from "./Callout";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
.wrapper { position: relative; min-width: 0; width: 100%; }
|
|
2
|
+
.tools { display: inline-flex; align-items: center; gap: var(--space-1); margin: 0; padding: 0; border: 0; }
|
|
3
|
+
.menu {
|
|
4
|
+
composes: surface from "../ContextMenu/ContextMenu.module.css";
|
|
5
|
+
|
|
6
|
+
--chat-composer-menu-width: calc(var(--size-10) * 7);
|
|
7
|
+
--chat-composer-menu-height: calc(var(--size-10) * 6);
|
|
8
|
+
|
|
9
|
+
z-index: var(--z-popover);
|
|
10
|
+
width: var(--chat-composer-menu-width);
|
|
11
|
+
max-width: calc(100vw - var(--space-4));
|
|
12
|
+
max-height: min(var(--chat-composer-menu-height), var(--radix-popover-content-available-height));
|
|
13
|
+
overflow-y: auto;
|
|
14
|
+
}
|
|
15
|
+
.empty { padding: var(--space-3); font-size: var(--text-sm); color: var(--fg-muted); }
|
|
16
|
+
|
|
17
|
+
.mention.mention { display: inline; white-space: inherit; padding: 0; border: 0; font: inherit; letter-spacing: inherit; color: var(--_tag-color); background: var(--_tag-surface); box-shadow: 0 0 0 var(--space-1) var(--_tag-surface); box-decoration-break: clone; transition: none; }
|