@conscience-technology/ovenn 0.6.7 → 0.7.2
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 +23 -1
- package/assets/components/AIMessage/AIMessage.tsx +27 -7
- package/assets/components/Accordion/Accordion.module.css +3 -0
- package/assets/components/AppFrame/AppFrame.module.css +2 -0
- package/assets/components/AttachmentItem/AttachmentItem.module.css +50 -13
- package/assets/components/AttachmentItem/AttachmentItem.tsx +25 -8
- package/assets/components/AttachmentThumb/AttachmentThumb.module.css +12 -9
- package/assets/components/Avatar/Avatar.module.css +26 -11
- package/assets/components/Avatar/Avatar.tsx +1 -1
- package/assets/components/AvatarUpload/AvatarUpload.module.css +4 -3
- package/assets/components/Badge/Badge.module.css +96 -70
- package/assets/components/Badge/Badge.tsx +33 -25
- package/assets/components/Breadcrumb/Breadcrumb.module.css +8 -4
- package/assets/components/Breadcrumb/Breadcrumb.tsx +1 -1
- package/assets/components/Bubble/Bubble.module.css +6 -0
- package/assets/components/Button/Button.module.css +6 -0
- package/assets/components/Calendar/Calendar.module.css +244 -0
- package/assets/components/Calendar/Calendar.tsx +419 -0
- package/assets/components/Calendar/index.ts +2 -0
- package/assets/components/Callout/Callout.module.css +54 -7
- package/assets/components/Callout/Callout.tsx +26 -2
- package/assets/components/Callout/index.ts +1 -1
- package/assets/components/Canvas/Canvas.module.css +75 -0
- package/assets/components/Canvas/Canvas.tsx +699 -0
- package/assets/components/Canvas/alignment.ts +34 -0
- package/assets/components/Canvas/clipboard.ts +30 -0
- package/assets/components/Canvas/collision.ts +67 -0
- package/assets/components/Canvas/edgeOptions.ts +11 -0
- package/assets/components/Canvas/graph.ts +11 -0
- package/assets/components/Canvas/history.ts +41 -0
- package/assets/components/Canvas/index.ts +4 -0
- package/assets/components/Canvas/selection.ts +56 -0
- package/assets/components/Canvas/tokens.css +61 -0
- package/assets/components/Canvas/types.ts +27 -0
- package/assets/components/Canvas/useCanvasSettlement.ts +79 -0
- package/assets/components/CanvasEdge/CanvasEdge.module.css +62 -0
- package/assets/components/CanvasEdge/CanvasEdge.tsx +121 -0
- package/assets/components/CanvasEdge/geometry.ts +350 -0
- package/assets/components/CanvasEdge/index.ts +4 -0
- package/assets/components/CanvasEdge/interactions.ts +14 -0
- package/assets/components/CanvasEdge/tokens.css +29 -0
- package/assets/components/CanvasNode/CanvasNode.module.css +234 -30
- package/assets/components/CanvasNode/CanvasNode.tsx +95 -28
- package/assets/components/CanvasNode/index.ts +1 -1
- package/assets/components/CanvasNode/runningOutline.ts +59 -0
- package/assets/components/CanvasNode/tokens.css +76 -13
- package/assets/components/Card/Card.module.css +5 -0
- package/assets/components/Chart/Chart.module.css +278 -0
- package/assets/components/Chart/Chart.tsx +385 -0
- package/assets/components/Chart/entrance.tsx +57 -0
- package/assets/components/Chart/index.ts +14 -0
- 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 +197 -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/Checkbox/Checkbox.module.css +39 -0
- package/assets/components/Checkbox/Checkbox.tsx +99 -14
- package/assets/components/Checkbox/index.ts +1 -1
- package/assets/components/CheckboxCard/CheckboxCard.module.css +1 -177
- package/assets/components/CheckboxCard/CheckboxCard.tsx +6 -72
- package/assets/components/Chip/Chip.module.css +20 -30
- package/assets/components/Code/Code.module.css +1 -0
- package/assets/components/CodeBlock/CodeBlock.module.css +113 -13
- 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/ColorArea/ColorArea.module.css +3 -0
- package/assets/components/ColorField/ColorField.module.css +19 -190
- package/assets/components/ColorField/ColorField.tsx +116 -107
- package/assets/components/ColorPicker/ColorPicker.module.css +310 -0
- package/assets/components/ColorPicker/ColorPicker.tsx +387 -0
- package/assets/components/ColorPicker/index.ts +16 -0
- package/assets/components/ColorSlider/ColorSlider.module.css +15 -12
- package/assets/components/ColorSlider/ColorSlider.tsx +3 -3
- package/assets/components/ColorSwatch/ColorSwatch.module.css +2 -2
- package/assets/components/ColorSwatchPicker/ColorSwatchPicker.module.css +4 -3
- package/assets/components/Combobox/Combobox.module.css +21 -4
- package/assets/components/Combobox/Combobox.tsx +38 -22
- package/assets/components/CommandPalette/CommandPalette.module.css +19 -24
- package/assets/components/CommandPalette/CommandPalette.tsx +7 -5
- package/assets/components/Comment/Comment.module.css +25 -0
- package/assets/components/Comment/Comment.tsx +44 -0
- package/assets/components/Comment/CommentComposer.module.css +26 -0
- package/assets/components/Comment/CommentComposer.tsx +56 -0
- package/assets/components/Comment/CommentEditor.module.css +8 -0
- package/assets/components/Comment/CommentEditor.tsx +43 -0
- package/assets/components/Comment/CommentMentionInput.module.css +9 -0
- package/assets/components/Comment/CommentMentionInput.tsx +150 -0
- package/assets/components/Comment/index.ts +9 -0
- package/assets/components/Comment/types.ts +1 -0
- package/assets/components/ContextMenu/ContextMenu.module.css +5 -2
- package/assets/components/ContextMenu/ContextMenu.tsx +5 -0
- package/assets/components/ControlGroup/ControlGroup.module.css +20 -7
- package/assets/components/DataTable/DataTable.module.css +2 -0
- package/assets/components/DatePicker/DateField.tsx +72 -25
- package/assets/components/DatePicker/DatePicker.module.css +56 -54
- package/assets/components/DatePicker/DatePicker.tsx +86 -40
- package/assets/components/DatePicker/TimeSelector.tsx +1 -1
- package/assets/components/Disclosure/Disclosure.module.css +1 -0
- package/assets/components/Drawer/Drawer.module.css +23 -19
- package/assets/components/Drawer/Drawer.tsx +20 -24
- package/assets/components/DropdownMenu/DropdownMenu.tsx +5 -0
- 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/EventChip/EventChip.module.css +120 -53
- package/assets/components/EventChip/EventChip.tsx +54 -6
- package/assets/components/EventChip/index.ts +1 -1
- package/assets/components/EventListItem/EventListItem.module.css +3 -0
- package/assets/components/EventListItem/EventListItem.tsx +15 -8
- package/assets/components/FileIcon/FileIcon.module.css +6 -6
- package/assets/components/FileUpload/FileUpload.module.css +10 -3
- package/assets/components/FileUpload/FileUpload.tsx +5 -9
- package/assets/components/FileUpload/FileUploadItem.tsx +34 -0
- package/assets/components/GalleryItem/GalleryItem.module.css +16 -19
- package/assets/components/GeneratedImage/GeneratedImage.module.css +2 -0
- package/assets/components/Icon/Icon.tsx +264 -1088
- package/assets/components/Icon/LucideFamilyIcon.tsx +436 -0
- package/assets/components/Icon/MissingIcon.tsx +25 -0
- package/assets/components/Icon/SolarFamilyIcon.tsx +443 -0
- package/assets/components/Icon/catalogNames.ts +8 -0
- package/assets/components/Icon/context.tsx +1 -1
- package/assets/components/Icon/index.ts +2 -0
- package/assets/components/Icon/lucideCatalog.ts +11358 -0
- package/assets/components/Icon/phosphorCatalog.ts +3052 -0
- package/assets/components/Icon/solarCatalog.ts +16064 -0
- package/assets/components/IconButton/IconButton.module.css +3 -2
- package/assets/components/Input/Input.module.css +63 -22
- package/assets/components/Input/Input.tsx +21 -10
- package/assets/components/Kanban/Kanban.module.css +6 -0
- package/assets/components/ListItem/ListItem.module.css +9 -6
- package/assets/components/MenuItem/MenuItem.module.css +24 -22
- package/assets/components/MenuItem/MenuItem.tsx +12 -12
- package/assets/components/MessageActions/MessageActions.module.css +38 -2
- package/assets/components/MessageActions/MessageActions.tsx +53 -28
- package/assets/components/MessageQuote/MessageQuote.module.css +1 -0
- package/assets/components/MessageSources/MessageSources.module.css +2 -0
- package/assets/components/MessageState/MessageState.module.css +1 -1
- package/assets/components/MetricCard/MetricCard.module.css +96 -108
- package/assets/components/MetricCard/MetricCard.tsx +45 -23
- package/assets/components/MetricCard/tokens.css +10 -0
- package/assets/components/MiniCalendar/MiniCalendar.module.css +130 -0
- package/assets/components/MiniCalendar/MiniCalendar.tsx +161 -0
- package/assets/components/MiniCalendar/index.ts +2 -0
- package/assets/components/Modal/Modal.module.css +13 -4
- package/assets/components/Modal/Modal.tsx +4 -0
- package/assets/components/Onboarding/LayoutBuilder.tsx +12 -50
- package/assets/components/Onboarding/Onboarding.module.css +211 -278
- package/assets/components/Onboarding/OnboardingAxisPanel.tsx +81 -125
- package/assets/components/Onboarding/OnboardingPage.tsx +244 -467
- package/assets/components/Onboarding/actions.ts +5 -0
- package/assets/components/Onboarding/palette.css +8 -0
- package/assets/components/Onboarding/wizardData.ts +8 -8
- package/assets/components/ProgressBar/ProgressBar.module.css +42 -8
- package/assets/components/ProgressBar/ProgressBar.tsx +5 -6
- package/assets/components/ProgressBar/index.ts +0 -1
- package/assets/components/QuotationBar/QuotationBar.module.css +2 -0
- package/assets/components/Radio/Radio.module.css +2 -0
- package/assets/components/RadioCard/RadioCard.module.css +96 -3
- package/assets/components/RadioCard/RadioCard.tsx +76 -13
- package/assets/components/RadioCard/index.ts +1 -1
- package/assets/components/SegmentedChart/SegmentedChart.module.css +16 -0
- package/assets/components/SegmentedChart/SegmentedChart.tsx +25 -8
- package/assets/components/Select/Select.module.css +9 -7
- package/assets/components/Select/Select.tsx +22 -6
- package/assets/components/Shortcut/Shortcut.module.css +2 -0
- package/assets/components/Sidebar/Sidebar.module.css +1 -0
- package/assets/components/Sidebar/Sidebar.tsx +2 -2
- package/assets/components/Skeleton/Skeleton.module.css +33 -0
- package/assets/components/Skeleton/Skeleton.tsx +20 -0
- package/assets/components/Skeleton/index.ts +2 -0
- package/assets/components/Skeleton/tokens.css +11 -0
- package/assets/components/Slider/Slider.module.css +3 -0
- package/assets/components/Slider/Slider.tsx +7 -2
- package/assets/components/Spinner/LottiePlayer.tsx +4 -4
- package/assets/components/Spinner/Spinner.module.css +3 -0
- package/assets/components/Spinner/lottieManifest.ts +3 -0
- package/assets/components/Stepper/Stepper.module.css +56 -8
- package/assets/components/Stepper/Stepper.tsx +13 -4
- package/assets/components/Switch/Switch.module.css +55 -42
- package/assets/components/Switch/Switch.tsx +6 -2
- package/assets/components/Switch/index.ts +1 -1
- package/assets/components/TabStrip/TabStrip.module.css +5 -1
- package/assets/components/TableCell/TableCell.module.css +8 -1
- package/assets/components/TableCell/TableCellBadge.tsx +7 -3
- package/assets/components/TableCell/TableCellImage.tsx +1 -1
- package/assets/components/TableCell/TableCellTag.tsx +23 -0
- package/assets/components/TableCell/index.ts +3 -0
- package/assets/components/TableHeader/TableHeader.module.css +4 -0
- package/assets/components/TableRow/TableRow.module.css +3 -0
- package/assets/components/TableRowEdit/TableRowEdit.module.css +2 -0
- package/assets/components/TableToolbar/TableToolbar.module.css +1 -0
- package/assets/components/Tabs/Tabs.module.css +23 -8
- package/assets/components/Tabs/Tabs.tsx +4 -3
- package/assets/components/Tag/Tag.module.css +101 -0
- package/assets/components/Tag/Tag.tsx +55 -0
- package/assets/components/Tag/index.ts +2 -0
- package/assets/components/TemplateBoundary/TemplateBoundary.tsx +22 -18
- package/assets/components/TemplateBoundary/types.ts +2 -0
- package/assets/components/Textarea/Textarea.module.css +30 -226
- package/assets/components/Textarea/Textarea.tsx +2 -2
- package/assets/components/ThemeController.tsx +30 -3
- package/assets/components/TimePicker/TimePicker.module.css +17 -4
- package/assets/components/TimePicker/TimePicker.tsx +102 -23
- package/assets/components/TimelineView/TimelineEventBar.tsx +109 -0
- package/assets/components/TimelineView/TimelineView.module.css +203 -0
- package/assets/components/TimelineView/TimelineView.tsx +137 -0
- package/assets/components/TimelineView/axis.ts +62 -0
- package/assets/components/TimelineView/index.ts +3 -0
- package/assets/components/TimelineView/layout.ts +56 -0
- package/assets/components/TimelineView/move.ts +51 -0
- package/assets/components/TimelineView/useTimelineDrag.ts +215 -0
- package/assets/components/TimelineView/useTimelineZoom.ts +92 -0
- package/assets/components/Toast/Toast.module.css +20 -0
- package/assets/components/Toast/Toast.tsx +1 -1
- package/assets/components/Toolbar/Toolbar.module.css +31 -24
- package/assets/components/Toolbar/Toolbar.tsx +4 -3
- package/assets/components/Tooltip/Tooltip.module.css +10 -0
- package/assets/components/Tooltip/Tooltip.tsx +50 -15
- package/assets/components/TopLoader/TopLoader.module.css +1 -0
- package/assets/components/TreeNav/TreeNav.module.css +1 -0
- 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/_color.ts +2 -2
- package/assets/components/_data.ts +37 -31
- package/assets/components/_utils.css +36 -5
- package/assets/components/axisOptions.ts +2 -0
- package/assets/components/component-registry.json +1731 -94
- package/assets/components/index.ts +23 -0
- package/assets/components/materialScope.tsx +11 -0
- package/assets/components/reset.css +1 -0
- package/assets/components/themeBootScript.ts +3 -2
- package/assets/components/tokens.css +308 -71
- package/assets/components/useChartEntrance.ts +119 -0
- package/assets/prompts/ASSEMBLY.md +20 -7
- package/assets/prompts/CATALOG.md +110 -92
- package/assets/prompts/FEEDBACK_PROCESS.md +19 -0
- package/assets/prompts/PRINCIPLES.md +25 -1
- package/assets/prompts/TEMPLATE_PREVIEWS.md +21 -0
- package/assets/prompts/WORKFLOW_DESIGN.md +48 -70
- package/assets/prompts/axes/font.md +12 -1
- package/assets/prompts/axes/icon.md +6 -4
- package/assets/prompts/axes/material.md +40 -0
- package/assets/prompts/axes/motion.md +2 -0
- package/assets/prompts/axes/palette.md +10 -2
- package/assets/prompts/axes/shape.md +8 -0
- 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 +38 -31
- 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 +32 -97
- package/assets/prompts/components/breadcrumb.md +25 -24
- package/assets/prompts/components/bubble.md +13 -13
- package/assets/prompts/components/button-group.md +1 -1
- package/assets/prompts/components/button.md +36 -36
- package/assets/prompts/components/calendar.md +151 -0
- package/assets/prompts/components/callout.md +39 -23
- package/assets/prompts/components/canvas-edge.md +70 -0
- package/assets/prompts/components/canvas-node.md +27 -10
- package/assets/prompts/components/canvas.md +85 -0
- package/assets/prompts/components/card.md +31 -31
- package/assets/prompts/components/chart-bar.md +77 -0
- package/assets/prompts/components/chart-pie.md +63 -0
- package/assets/prompts/components/chart-radar.md +56 -0
- package/assets/prompts/components/chart-radial.md +56 -0
- package/assets/prompts/components/chart.md +129 -0
- 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 +26 -45
- package/assets/prompts/components/checkbox.md +40 -17
- package/assets/prompts/components/chip.md +34 -34
- package/assets/prompts/components/code-block.md +109 -65
- 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 +173 -0
- package/assets/prompts/components/color-slider.md +14 -14
- 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 +31 -30
- package/assets/prompts/components/comment.md +75 -0
- package/assets/prompts/components/context-menu.md +28 -25
- package/assets/prompts/components/control-group.md +4 -4
- package/assets/prompts/components/data-table.md +9 -0
- package/assets/prompts/components/date-picker.md +41 -23
- package/assets/prompts/components/disclosure.md +10 -10
- package/assets/prompts/components/drawer.md +29 -18
- package/assets/prompts/components/dropdown-menu.md +23 -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 +70 -28
- package/assets/prompts/components/event-list-item.md +32 -28
- package/assets/prompts/components/file-icon.md +18 -19
- package/assets/prompts/components/file-upload.md +1 -1
- package/assets/prompts/components/gallery-item.md +24 -23
- 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 +42 -17
- package/assets/prompts/components/input.md +49 -46
- package/assets/prompts/components/kanban.md +35 -35
- package/assets/prompts/components/list-item.md +50 -41
- package/assets/prompts/components/menu-item.md +49 -44
- package/assets/prompts/components/message-actions.md +15 -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/metric-card.md +57 -109
- package/assets/prompts/components/mini-calendar.md +77 -0
- package/assets/prompts/components/modal.md +40 -39
- package/assets/prompts/components/multi-select.md +4 -1
- package/assets/prompts/components/onboarding.md +23 -19
- package/assets/prompts/components/page-header.md +42 -33
- package/assets/prompts/components/pagination.md +17 -17
- package/assets/prompts/components/progress-bar.md +26 -13
- package/assets/prompts/components/quotation-bar.md +10 -10
- package/assets/prompts/components/radio-card.md +34 -117
- package/assets/prompts/components/radio.md +9 -9
- package/assets/prompts/components/segmented-chart.md +19 -5
- package/assets/prompts/components/select.md +29 -25
- package/assets/prompts/components/shortcut.md +11 -11
- package/assets/prompts/components/sidebar.md +67 -58
- package/assets/prompts/components/skeleton.md +47 -0
- package/assets/prompts/components/slider.md +18 -18
- package/assets/prompts/components/spinner.md +16 -16
- package/assets/prompts/components/stepper.md +29 -15
- package/assets/prompts/components/switch.md +30 -26
- package/assets/prompts/components/tab-strip.md +32 -31
- package/assets/prompts/components/table-cell.md +9 -7
- 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 +29 -20
- package/assets/prompts/components/table-toolbar.md +9 -0
- package/assets/prompts/components/tabs.md +30 -27
- package/assets/prompts/components/tag.md +54 -0
- package/assets/prompts/components/textarea.md +16 -15
- package/assets/prompts/components/time-picker.md +22 -14
- package/assets/prompts/components/timeline-view.md +129 -0
- package/assets/prompts/components/toast.md +43 -42
- package/assets/prompts/components/toolbar.md +36 -23
- package/assets/prompts/components/tooltip.md +36 -17
- package/assets/prompts/components/top-loader.md +12 -12
- package/assets/prompts/components/topbar.md +43 -34
- package/assets/prompts/components/tree-nav.md +10 -10
- 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 +9 -1
- package/assets/prompts/templates/aurora.md +5 -4
- package/assets/prompts/templates/minimal.md +14 -6
- package/assets/prompts/templates/onboarding.md +156 -0
- package/assets/prompts/templates/workspace.md +16 -11
- package/assets/prompts/tokens/color.md +11 -4
- package/assets/prompts/tokens/material.md +51 -0
- package/assets/prompts/tokens/radius.md +34 -0
- package/assets/prompts/tokens/typography.md +24 -2
- package/assets/prompts/use-cases/chart-chart-area.md +1334 -0
- package/assets/prompts/use-cases/chart-chart-bar.md +1886 -0
- package/assets/prompts/use-cases/chart-chart-pie.md +1031 -0
- package/assets/prompts/use-cases/chart-chart-radar.md +785 -0
- package/assets/prompts/use-cases/chart-chart-radial.md +988 -0
- package/assets/prompts/use-cases/chart-segmented-chart.md +262 -0
- 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 +360 -0
- package/assets/prompts/use-cases/data-data-table.md +249 -0
- package/assets/prompts/use-cases/data-list-item.md +1056 -0
- package/assets/prompts/use-cases/data-metric-card.md +673 -0
- package/assets/prompts/use-cases/data-table-row.md +966 -0
- package/assets/prompts/use-cases/data-table-toolbar.md +481 -0
- package/assets/prompts/use-cases/feedback-drawer.md +1168 -0
- package/assets/prompts/use-cases/feedback-progress-bar.md +432 -0
- package/assets/prompts/use-cases/general-toolbar.md +854 -0
- package/assets/prompts/use-cases/general-tooltip.md +652 -0
- package/assets/prompts/use-cases/input-checkbox.md +443 -0
- package/assets/prompts/use-cases/structure-card.md +603 -0
- package/assets/prompts/use-cases/structure-page-header.md +755 -0
- package/assets/prompts/use-cases/structure-sidebar.md +1132 -0
- package/assets/prompts/use-cases/structure-topbar.md +1196 -0
- package/assets/public/ovenn-wordmark.svg +19 -0
- package/assets/skills/ovenn-wireframe/SKILL.md +17 -4
- package/package.json +10 -2
- package/src/commands/info.js +1 -1
- package/src/utils/design-examples.js +3 -4
- package/assets/prompts/templates/glass-button.md +0 -336
|
@@ -26,10 +26,31 @@
|
|
|
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);
|
|
32
|
-
font-weight: var(--font-weight-
|
|
53
|
+
font-weight: var(--font-weight-book);
|
|
33
54
|
display: inline-flex;
|
|
34
55
|
align-items: center;
|
|
35
56
|
gap: var(--space-2);
|
|
@@ -118,6 +139,7 @@
|
|
|
118
139
|
/* CodeBlock 안쪽 code 요소는 글로벌 bg를 받지 않도록 리셋. */
|
|
119
140
|
.body :global(pre) :global(code) {
|
|
120
141
|
background: none;
|
|
142
|
+
corner-shape: var(--corner-shape);
|
|
121
143
|
border-radius: 0;
|
|
122
144
|
padding: 0;
|
|
123
145
|
font-size: inherit;
|
|
@@ -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 ? (
|
|
@@ -74,6 +74,7 @@
|
|
|
74
74
|
}
|
|
75
75
|
.root[data-variant="card"] .item {
|
|
76
76
|
border: var(--hairline) solid var(--border);
|
|
77
|
+
corner-shape: var(--corner-shape);
|
|
77
78
|
border-radius: var(--radius-md);
|
|
78
79
|
background: var(--bg);
|
|
79
80
|
overflow: hidden;
|
|
@@ -83,6 +84,7 @@
|
|
|
83
84
|
"카드 영역처럼" 좌우 숨 공간 가지고 깔리도록. radius도 추가해 둥근 모서리. */
|
|
84
85
|
.root[data-variant="bare"] .trigger,
|
|
85
86
|
.root[data-variant="line"] .trigger {
|
|
87
|
+
corner-shape: var(--corner-shape);
|
|
86
88
|
border-radius: var(--radius-sm);
|
|
87
89
|
}
|
|
88
90
|
|
|
@@ -127,6 +129,7 @@
|
|
|
127
129
|
.trigger:focus-visible {
|
|
128
130
|
outline: none;
|
|
129
131
|
box-shadow: var(--ring-shadow-nav);
|
|
132
|
+
corner-shape: var(--corner-shape);
|
|
130
133
|
border-radius: var(--radius-sm);
|
|
131
134
|
}
|
|
132
135
|
|
|
@@ -159,6 +159,7 @@
|
|
|
159
159
|
|
|
160
160
|
.root[data-variant="floating"] .sidebarSlot {
|
|
161
161
|
background: var(--bg);
|
|
162
|
+
corner-shape: var(--corner-shape);
|
|
162
163
|
border-radius: var(--radius-lg);
|
|
163
164
|
box-shadow: var(--shadow-sm);
|
|
164
165
|
}
|
|
@@ -167,6 +168,7 @@
|
|
|
167
168
|
.root[data-variant="floating"] .tabsSlot,
|
|
168
169
|
.root[data-variant="floating"] .contentSlot {
|
|
169
170
|
background: var(--app-frame-bg);
|
|
171
|
+
corner-shape: var(--corner-shape);
|
|
170
172
|
border-radius: var(--radius-lg);
|
|
171
173
|
box-shadow: var(--shadow-sm);
|
|
172
174
|
}
|
|
@@ -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,27 +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);
|
|
32
|
+
border-radius: var(--attachment-radius);
|
|
27
33
|
width: calc(var(--size-unit) * 55);
|
|
28
34
|
}
|
|
29
35
|
.sizeMd {
|
|
30
|
-
|
|
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);
|
|
31
39
|
gap: var(--space-2);
|
|
32
40
|
font-size: var(--text-sm);
|
|
33
|
-
|
|
41
|
+
corner-shape: var(--corner-shape);
|
|
42
|
+
border-radius: var(--attachment-radius);
|
|
34
43
|
width: calc(var(--size-unit) * 55);
|
|
35
44
|
}
|
|
36
45
|
.sizeLg {
|
|
46
|
+
--attachment-radius: calc(var(--radius-md) * 0.8);
|
|
37
47
|
padding: var(--space-2_5) var(--space-1_5) var(--space-2_5) var(--space-2_5);
|
|
38
48
|
gap: var(--space-2_5);
|
|
39
49
|
font-size: var(--text-sm);
|
|
40
|
-
|
|
50
|
+
corner-shape: var(--corner-shape);
|
|
51
|
+
border-radius: var(--attachment-radius);
|
|
41
52
|
width: var(--input-w-lg);
|
|
42
53
|
}
|
|
43
54
|
|
|
@@ -52,7 +63,7 @@
|
|
|
52
63
|
.sizeLg .text {
|
|
53
64
|
flex-direction: column;
|
|
54
65
|
align-items: flex-start;
|
|
55
|
-
gap:
|
|
66
|
+
gap: 0;
|
|
56
67
|
}
|
|
57
68
|
|
|
58
69
|
.label {
|
|
@@ -62,8 +73,11 @@
|
|
|
62
73
|
text-overflow: ellipsis;
|
|
63
74
|
white-space: nowrap;
|
|
64
75
|
color: var(--fg-strong);
|
|
65
|
-
font-weight: var(--font-weight-
|
|
66
|
-
line-height:
|
|
76
|
+
font-weight: var(--font-weight-book);
|
|
77
|
+
line-height: var(--lh-sm);
|
|
78
|
+
}
|
|
79
|
+
.sizeSm .label {
|
|
80
|
+
line-height: var(--lh-xs);
|
|
67
81
|
}
|
|
68
82
|
.sizeLg .label {
|
|
69
83
|
font-size: var(--text-sm);
|
|
@@ -74,7 +88,7 @@
|
|
|
74
88
|
min-width: 0;
|
|
75
89
|
color: var(--fg-subtle);
|
|
76
90
|
font-weight: var(--font-weight-regular);
|
|
77
|
-
line-height:
|
|
91
|
+
line-height: var(--lh-xs);
|
|
78
92
|
overflow: hidden;
|
|
79
93
|
text-overflow: ellipsis;
|
|
80
94
|
white-space: nowrap;
|
|
@@ -108,7 +122,7 @@
|
|
|
108
122
|
.actions {
|
|
109
123
|
display: inline-flex;
|
|
110
124
|
align-items: center;
|
|
111
|
-
gap:
|
|
125
|
+
gap: 0;
|
|
112
126
|
flex: 0 0 auto;
|
|
113
127
|
}
|
|
114
128
|
|
|
@@ -116,3 +130,26 @@
|
|
|
116
130
|
.root.fill { width: 100%; }
|
|
117
131
|
.fill .text { flex: 1; }
|
|
118
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;
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
justify-content: center;
|
|
11
11
|
width: var(--at-size);
|
|
12
12
|
height: var(--at-size);
|
|
13
|
+
corner-shape: var(--corner-shape);
|
|
13
14
|
border-radius: calc(var(--at-size) * 0.25);
|
|
14
15
|
flex: 0 0 auto;
|
|
15
16
|
user-select: none;
|
|
@@ -18,9 +19,9 @@
|
|
|
18
19
|
Remove 버튼이 바깥으로 overlap되도록. */
|
|
19
20
|
}
|
|
20
21
|
|
|
21
|
-
.sizeSm { --at-size:
|
|
22
|
-
.sizeMd { --at-size:
|
|
23
|
-
.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); }
|
|
24
25
|
|
|
25
26
|
/* 이미지 — 다크/라이트 공통 검정 보더(이미지 가장자리 분리).
|
|
26
27
|
<img>에 inset shadow 걸면 이미지 픽셀이 덮어버리므로 부모에 outline 사용. */
|
|
@@ -44,6 +45,7 @@
|
|
|
44
45
|
height: 100%;
|
|
45
46
|
object-fit: cover;
|
|
46
47
|
display: block;
|
|
48
|
+
corner-shape: inherit;
|
|
47
49
|
border-radius: inherit;
|
|
48
50
|
}
|
|
49
51
|
|
|
@@ -71,6 +73,7 @@
|
|
|
71
73
|
var(--bg-muted) 100%
|
|
72
74
|
);
|
|
73
75
|
background-size: 220% 220%;
|
|
76
|
+
corner-shape: inherit;
|
|
74
77
|
border-radius: inherit;
|
|
75
78
|
animation: at-shimmer calc(var(--duration-slower) * 6) var(--ease-in-out) infinite;
|
|
76
79
|
}
|
|
@@ -79,12 +82,11 @@
|
|
|
79
82
|
50% { background-position: 100% 50%; }
|
|
80
83
|
100% { background-position: 0% 50%; }
|
|
81
84
|
}
|
|
82
|
-
/*
|
|
85
|
+
/* 로딩 표시는 썸네일의 일부만 차지하며 중앙에 배치한다. */
|
|
83
86
|
.loading > span[role="status"] {
|
|
84
87
|
position: relative;
|
|
85
88
|
z-index: var(--z-raise);
|
|
86
|
-
|
|
87
|
-
transform-origin: center;
|
|
89
|
+
--loader-size: calc(var(--at-size) * 0.45);
|
|
88
90
|
}
|
|
89
91
|
|
|
90
92
|
/* Remove 버튼 — hover 시만 노출. 코너 overlap. */
|
|
@@ -99,7 +101,8 @@
|
|
|
99
101
|
justify-content: center;
|
|
100
102
|
padding: 0;
|
|
101
103
|
border: 0;
|
|
102
|
-
|
|
104
|
+
corner-shape: round;
|
|
105
|
+
border-radius: 50%;
|
|
103
106
|
background: var(--bg);
|
|
104
107
|
color: var(--fg);
|
|
105
108
|
box-shadow:
|
|
@@ -21,15 +21,15 @@
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
/* Shape ─────────────────────────────────────────────────── */
|
|
24
|
-
.circle { border-radius: var(--radius-full); }
|
|
24
|
+
.circle { corner-shape: round; border-radius: var(--radius-full); }
|
|
25
25
|
|
|
26
26
|
/* rounded는 size에 맞춰 radius 크기가 자연스럽게 커짐.
|
|
27
27
|
xs/sm은 컨테이너 자체가 작아 xs radius, md는 sm, lg는 md, xl은 lg. */
|
|
28
|
-
.rounded.xs { border-radius: var(--radius-xs); }
|
|
29
|
-
.rounded.sm { border-radius: var(--radius-sm); }
|
|
30
|
-
.rounded.md { border-radius: var(--radius-md); }
|
|
31
|
-
.rounded.lg { border-radius: var(--radius-lg); }
|
|
32
|
-
.rounded.xl { border-radius: var(--radius-xl); }
|
|
28
|
+
.rounded.xs { corner-shape: var(--corner-shape); border-radius: var(--radius-xs); }
|
|
29
|
+
.rounded.sm { corner-shape: var(--corner-shape); border-radius: var(--radius-sm); }
|
|
30
|
+
.rounded.md { corner-shape: var(--corner-shape); border-radius: var(--radius-md); }
|
|
31
|
+
.rounded.lg { corner-shape: var(--corner-shape); border-radius: var(--radius-lg); }
|
|
32
|
+
.rounded.xl { corner-shape: var(--corner-shape); border-radius: var(--radius-xl); }
|
|
33
33
|
|
|
34
34
|
/* Sizes ────────────────────────────────────────────────────
|
|
35
35
|
space-* 스케일에 붙여 다른 컨트롤과 정렬 유지.
|
|
@@ -75,6 +75,7 @@
|
|
|
75
75
|
object-fit: cover;
|
|
76
76
|
display: block;
|
|
77
77
|
opacity: 0;
|
|
78
|
+
corner-shape: inherit;
|
|
78
79
|
border-radius: inherit; /* root의 shape를 그대로 따라감 */
|
|
79
80
|
}
|
|
80
81
|
.image[data-loaded="true"] { opacity: 1; }
|
|
@@ -125,7 +126,7 @@
|
|
|
125
126
|
.overflow {
|
|
126
127
|
background: var(--bg-muted);
|
|
127
128
|
color: var(--fg-subtle);
|
|
128
|
-
font-weight: var(--font-weight-
|
|
129
|
+
font-weight: var(--font-weight-book);
|
|
129
130
|
}
|
|
130
131
|
.overflow.xs { font-size: calc(var(--size-4) * 0.42); }
|
|
131
132
|
.overflow.sm { font-size: calc(var(--size-6) * 0.36); }
|
|
@@ -182,20 +183,34 @@
|
|
|
182
183
|
.anchor[data-anchor-position="top-start"] > [data-anchored] {
|
|
183
184
|
top: 0;
|
|
184
185
|
inset-inline-start: 0;
|
|
185
|
-
|
|
186
|
+
--_anchor-x: calc(-1 * var(--_anchor-overlap));
|
|
187
|
+
--_anchor-y: calc(-1 * var(--_anchor-overlap));
|
|
188
|
+
transform: translate(var(--_anchor-x), var(--_anchor-y));
|
|
186
189
|
}
|
|
187
190
|
.anchor[data-anchor-position="top-end"] > [data-anchored] {
|
|
188
191
|
top: 0;
|
|
189
192
|
inset-inline-end: 0;
|
|
190
|
-
|
|
193
|
+
--_anchor-x: var(--_anchor-overlap);
|
|
194
|
+
--_anchor-y: calc(-1 * var(--_anchor-overlap));
|
|
195
|
+
transform: translate(var(--_anchor-x), var(--_anchor-y));
|
|
191
196
|
}
|
|
192
197
|
.anchor[data-anchor-position="bottom-start"] > [data-anchored] {
|
|
193
198
|
bottom: 0;
|
|
194
199
|
inset-inline-start: 0;
|
|
195
|
-
|
|
200
|
+
--_anchor-x: calc(-1 * var(--_anchor-overlap));
|
|
201
|
+
--_anchor-y: var(--_anchor-overlap);
|
|
202
|
+
transform: translate(var(--_anchor-x), var(--_anchor-y));
|
|
196
203
|
}
|
|
197
204
|
.anchor[data-anchor-position="bottom-end"] > [data-anchored] {
|
|
198
205
|
bottom: 0;
|
|
199
206
|
inset-inline-end: 0;
|
|
200
|
-
|
|
207
|
+
--_anchor-x: var(--_anchor-overlap);
|
|
208
|
+
--_anchor-y: var(--_anchor-overlap);
|
|
209
|
+
transform: translate(var(--_anchor-x), var(--_anchor-y));
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
/* Position Badge before its independent scale, so entrance scaling cannot move its center. */
|
|
213
|
+
.anchor > [data-slot="badge-root"][data-anchored] {
|
|
214
|
+
transform: none;
|
|
215
|
+
translate: var(--_anchor-x) var(--_anchor-y);
|
|
201
216
|
}
|
|
@@ -201,7 +201,7 @@ const AvatarGroup = forwardRef<HTMLSpanElement, AvatarGroupProps>(
|
|
|
201
201
|
const total = visible.length + (overflow > 0 ? 1 : 0);
|
|
202
202
|
|
|
203
203
|
return (
|
|
204
|
-
<span ref={ref} className={cls} {...rest}>
|
|
204
|
+
<span ref={ref} className={cls} data-slot="avatar-group" {...rest}>
|
|
205
205
|
{visible.map((child, i) =>
|
|
206
206
|
cloneElement(child, {
|
|
207
207
|
key: child.key ?? i,
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
}
|
|
32
32
|
/* trigger는 안쪽 Avatar와 border-radius를 맞춰야 focus ring이 정확한 모양으로 감쌈.
|
|
33
33
|
circle이면 full, rounded면 Avatar와 동일한 size별 radius. */
|
|
34
|
-
.circle .trigger { border-radius: var(--radius-full); }
|
|
35
|
-
.rounded.lg .trigger { border-radius: var(--radius-md); }
|
|
36
|
-
.rounded.xl .trigger { border-radius: var(--radius-lg); }
|
|
34
|
+
.circle .trigger { corner-shape: round; border-radius: var(--radius-full); }
|
|
35
|
+
.rounded.lg .trigger { corner-shape: var(--corner-shape); border-radius: var(--radius-md); }
|
|
36
|
+
.rounded.xl .trigger { corner-shape: var(--corner-shape); border-radius: var(--radius-lg); }
|
|
37
37
|
.trigger:focus-visible {
|
|
38
38
|
outline: none;
|
|
39
39
|
box-shadow: var(--ring-shadow-nav);
|
|
@@ -53,6 +53,7 @@
|
|
|
53
53
|
justify-content: center;
|
|
54
54
|
background: var(--scrim);
|
|
55
55
|
color: var(--scrim-fg);
|
|
56
|
+
corner-shape: inherit;
|
|
56
57
|
border-radius: inherit;
|
|
57
58
|
opacity: 0;
|
|
58
59
|
pointer-events: none;
|