@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
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
# Hint
|
|
2
2
|
|
|
3
3
|
### 원칙
|
|
4
|
-
|
|
4
|
+
문서나 화면 흐름 안에 짧은 참고 내용을 표시한다. 아이콘과 한두 줄의 텍스트로 구성하며, 큰 안내 영역이 필요하면 Callout을 사용한다.
|
|
5
5
|
|
|
6
|
-
**아이콘 + 텍스트 조합의 모든 안내는 반드시 이 컴포넌트 경유.** 와이어프레임·페이지에 `<Icon /> + <span>`을 수제로 조립해서 "ℹ️ 어쩌구" 한 줄을 만드는 패턴 영구
|
|
6
|
+
**아이콘 + 텍스트 조합의 모든 안내는 반드시 이 컴포넌트 경유.** 와이어프레임·페이지에 `<Icon /> + <span>`을 수제로 조립해서 "ℹ️ 어쩌구" 한 줄을 만드는 패턴 영구 금지: Hint 하나로 통일한다. 수제 조립은 size·color·vertical-align·둘째 줄 들여쓰기가 매번 어긋나서 리듬이 깨지는 반복 함정이다 ([[feedback_no_hand_rolled_components]], [[feedback_local_derivative_over_handrolled]]).
|
|
7
7
|
|
|
8
8
|
### Do
|
|
9
9
|
- **아이콘 + 텍스트 한 줄짜리 안내는 전부 Hint**. 폼 helper, 섹션 각주, 리스트 하단 주석 등.
|
|
10
10
|
- 아이콘은 **1개 고정**, 자유롭게 선택 (`info` `question` `brackets-square` `clock` `shield-check` 등 상황에 맞게).
|
|
11
|
-
- 텍스트는 1~2줄. 두 줄 넘어가면 둘째 줄은 아이콘 폭만큼 자동 들여쓰기 (hanging indent
|
|
11
|
+
- 텍스트는 1~2줄. 두 줄 넘어가면 둘째 줄은 아이콘 폭만큼 자동 들여쓰기 (hanging indent: 컴포넌트가 처리).
|
|
12
12
|
- **줄 바꿈이 애매하면 저자가 호흡 단위로 끊어준다.** 긴 문장이 어중간한 자리에서 자동 줄 바꿈되면 리듬이 깨짐. 문장이 두 호흡으로 나뉘면 `.` 바로 뒤에서 사람이 `\n`을 넣어 **문장 단위로** 끊어라 (JSX에서는 중괄호 안 템플릿 리터럴 또는 두 `<Hint>` 분리). 자동 줄 바꿈에 맡기면 "···하고 승인한 / 뒤 실행을" 같은 어색한 지점에서 꺾인다.
|
|
13
|
-
- 색은 **neutral이 기본**. 톤 신호가 꼭 필요할 때만 brand/success/warning/destructive
|
|
14
|
-
- 아이콘 수직 정렬은 **첫 줄 캡 하이트
|
|
13
|
+
- 색은 **neutral이 기본**. 톤 신호가 꼭 필요할 때만 brand/success/warning/destructive: 아이콘 색만 바뀌고 텍스트는 muted 유지 ([[components/callout]]보다 조용).
|
|
14
|
+
- 아이콘 수직 정렬은 **첫 줄 캡 하이트 중앙**: flex align-items 트릭 대신 `vertical-align: text-bottom`으로 line box 안에 흘려넣기 (내부 구현 책임).
|
|
15
15
|
|
|
16
16
|
### Don't
|
|
17
|
-
- [HARD] **아이콘 + 텍스트를 수제 조립
|
|
18
|
-
- [HARD] 액션 버튼을 넣지
|
|
17
|
+
- [HARD] **아이콘 + 텍스트를 수제 조립 금지**: `<span><Icon/> 생략</span>`, `<div className="hint"><Icon/>콘텐츠</div>` 전부 금지. 반드시 `<Hint>` 사용.
|
|
18
|
+
- [HARD] 액션 버튼을 넣지 않는다: 액션이 필요하면 [[components/callout]].
|
|
19
19
|
- Hint는 **배경·테두리 둘 다 없음**이 기본이다. scoped skin으로 표면을 더하면 [[PRINCIPLES]] §5b의 미세한 색 차이 기준을 따른다.
|
|
20
|
-
- [HARD] 톤 신호를 띠는 **배경**은
|
|
21
|
-
- [SOFT] 3줄 이상 텍스트
|
|
20
|
+
- [HARD] 톤 신호를 띠는 **배경**은 금지: 톤이 필요하면 아이콘 색만 (`tone="warning"`). 배경까지 가야 하면 [[components/callout]].
|
|
21
|
+
- [SOFT] 3줄 이상 텍스트 금지: 길어지면 섹션 자체가 "안내 블록"이 돼야 함. Hint는 각주 성격 유지.
|
|
22
22
|
- [SOFT] 리스트·강조 같은 서식 금지. 평문만.
|
|
23
23
|
- [SOFT] 폼 필드 helper text는 [[components/form-field]]의 자체 helper를 쓴다. Hint는 **폼 밖, 섹션 안 설명** 전용.
|
|
24
24
|
|
|
@@ -26,23 +26,23 @@
|
|
|
26
26
|
아이콘이 애매하면 `info`. 질문·도움말이면 `question`, 코드·기술 설명이면 `brackets-square`.
|
|
27
27
|
|
|
28
28
|
### 관련
|
|
29
|
-
- [[components/callout]]
|
|
30
|
-
- [[recipes/page-banner]]
|
|
31
|
-
- [[components/form-field]]
|
|
32
|
-
- [[tokens/color]]
|
|
33
|
-
- [[tokens/typography]]
|
|
29
|
+
- [[components/callout]]: 톤·액션·배경 있는 안내 블록. Hint는 액션 없음, 배경 없음.
|
|
30
|
+
- [[recipes/page-banner]]: 페이지 폭 상태 바. Hint는 흐름 속 각주.
|
|
31
|
+
- [[components/form-field]]: 폼 helper text 전용 자리.
|
|
32
|
+
- [[tokens/color]]: fg-muted, primary/success/warning/destructive
|
|
33
|
+
- [[tokens/typography]]: text-sm 기본, line-height 1.6
|
|
34
34
|
|
|
35
35
|
### Props 시그니처
|
|
36
36
|
```tsx
|
|
37
37
|
<Hint
|
|
38
|
-
icon={IconName} // default: "info"
|
|
38
|
+
icon={IconName} // default: "info": 자유롭게
|
|
39
39
|
size="sm | md" // default: "sm"
|
|
40
40
|
tone="neutral | brand | success | warning | destructive" // default: "neutral"
|
|
41
41
|
>{children}</Hint>
|
|
42
42
|
```
|
|
43
43
|
|
|
44
44
|
### Variant 매트릭스
|
|
45
|
-
tone은 **아이콘 색만** 스왑. 텍스트는 전 톤에서 fg-muted
|
|
45
|
+
tone은 **아이콘 색만** 스왑. 텍스트는 전 톤에서 fg-muted 고정: Callout보다 조용한 성격을 유지한다.
|
|
46
46
|
|
|
47
47
|
| tone | 아이콘 색 | 자리 |
|
|
48
48
|
|---|---|---|
|
|
@@ -66,13 +66,13 @@ tone은 **아이콘 색만** 스왑. 텍스트는 전 톤에서 fg-muted 고정
|
|
|
66
66
|
// 아이콘 자유 선택
|
|
67
67
|
<Hint icon="clock">업로드한 파일은 24시간 동안 임시 저장소에 남아 있습니다.</Hint>
|
|
68
68
|
|
|
69
|
-
// 긴
|
|
69
|
+
// 긴 설명: 저자가 문장 단위로 호흡을 끊어줌 (자동 줄 바꿈 금지)
|
|
70
70
|
<Hint icon="brackets-square">
|
|
71
71
|
{`문서 등록은 추출과 정리까지 자동 처리합니다.
|
|
72
72
|
AI 작업 계획을 요청하고 승인한 뒤 실행을 요청하면, 연결된 실행기가 코드 변경안과 테스트 결과를 작성합니다.`}
|
|
73
73
|
</Hint>
|
|
74
74
|
|
|
75
|
-
// 톤
|
|
75
|
+
// 톤 신호: 아이콘 색만
|
|
76
76
|
<Hint icon="shield-check" tone="success">
|
|
77
77
|
2단계 인증이 활성화되어 있습니다.
|
|
78
78
|
</Hint>
|
|
@@ -86,7 +86,7 @@ AI 작업 계획을 요청하고 승인한 뒤 실행을 요청하면, 연결된
|
|
|
86
86
|
- 아이콘 수직 정렬은 **`display: inline-flex` + `vertical-align: text-bottom`** 조합으로 line box 안에 자동 정렬. flex `align-items` + `margin-top` 보정 조합은 **금지** (line-height 바뀔 때마다 어긋남).
|
|
87
87
|
- 둘째 줄 들여쓰기는 **hanging indent** 패턴: `padding-inline-start: icon + gap` + `text-indent: -(icon + gap)`.
|
|
88
88
|
- line-height는 `1.6` 고정 (muted 다줄 가독성).
|
|
89
|
-
- tone은 `--hint-accent` CSS 변수 하나만
|
|
89
|
+
- tone은 `--hint-accent` CSS 변수 하나만 스왑: `--hint-fg`는 전 톤에서 `--fg-muted` 유지.
|
|
90
90
|
|
|
91
91
|
<!-- component-contract -->
|
|
92
92
|
```json
|
|
@@ -12,21 +12,21 @@
|
|
|
12
12
|
- `asChild`로 `<a>` 또는 Next `<Link>` 위임 가능 (이땐 아이콘·trailingIcon은 자식이 담당).
|
|
13
13
|
|
|
14
14
|
### Don't
|
|
15
|
-
- 라벨이 필요하면 쓰지
|
|
15
|
+
- 라벨이 필요하면 쓰지 않는다: [[components/button]] icon-only 모드로.
|
|
16
16
|
- `xs(24)`는 테이블 셀처럼 극한 밀도 자리 전용. 쓸 때도 `variant="ghost"`로 (Button xs와 같은 룰).
|
|
17
17
|
- aria-label 생략 금지. 아이콘 의미가 자명해도 스크린리더엔 안 보임.
|
|
18
|
-
- 색을 variant로 override하지
|
|
18
|
+
- 색을 variant로 override하지 않는다: destructive 외의 상태색은 Badge/Callout 쪽.
|
|
19
19
|
|
|
20
20
|
### Fallback
|
|
21
21
|
size 애매하면 `md`, variant 애매하면 `ghost`.
|
|
22
22
|
|
|
23
23
|
### 관련
|
|
24
|
-
- [[components/button]]
|
|
25
|
-
- [[components/icon]]
|
|
26
|
-
- [[components/toolbar]]
|
|
27
|
-
- [[components/tooltip]]
|
|
28
|
-
- [[axes/density]]
|
|
29
|
-
- [[axes/shape]]
|
|
24
|
+
- [[components/button]]: 라벨 있는 버튼 또는 Button의 icon-only 모드 (신규 권장)
|
|
25
|
+
- [[components/icon]]: 안에 들어가는 아이콘
|
|
26
|
+
- [[components/toolbar]]: 가장 많이 쓰는 자리
|
|
27
|
+
- [[components/tooltip]]: aria-label 보충 설명 (hover 시 라벨 노출)
|
|
28
|
+
- [[axes/density]]: `--iconbtn-h-*`가 Density에 반응
|
|
29
|
+
- [[axes/shape]]: radius가 Shape 축에 반응
|
|
30
30
|
|
|
31
31
|
### Props 시그니처
|
|
32
32
|
```tsx
|
|
@@ -35,7 +35,7 @@ size 애매하면 `md`, variant 애매하면 `ghost`.
|
|
|
35
35
|
trailingIcon={<Icon name="caret-down" />} // 있으면 dual 모드
|
|
36
36
|
size="xs | sm | md | lg" // default: md (Button md와 동일 36px)
|
|
37
37
|
variant="secondary | outline | ghost | destructive" // default: ghost
|
|
38
|
-
asChild={boolean} // Radix Slot
|
|
38
|
+
asChild={boolean} // Radix Slot: <a>/<Link> 위임
|
|
39
39
|
aria-label="필수"
|
|
40
40
|
disabled={boolean}
|
|
41
41
|
onClick={(e) => void}
|
|
@@ -47,7 +47,7 @@ size 애매하면 `md`, variant 애매하면 `ghost`.
|
|
|
47
47
|
|---|---|---|---|
|
|
48
48
|
| `xs` | 24 | 12 | 테이블 셀·극한 밀도. **ghost만**. 거의 안 씀 |
|
|
49
49
|
| `sm` | 32 | 16 | 밀도 있는 툴바·인라인 |
|
|
50
|
-
| `md` | 36 | 20 |
|
|
50
|
+
| `md` | 36 | 20 | **기본**: 툴바·테이블 행·Input trailing |
|
|
51
51
|
| `lg` | 40 | 20 | 플로팅 액션·주 액션 |
|
|
52
52
|
|
|
53
53
|
### Variant 매트릭스
|
|
@@ -55,19 +55,19 @@ size 애매하면 `md`, variant 애매하면 `ghost`.
|
|
|
55
55
|
|---|---|---|
|
|
56
56
|
| `secondary` | primary 8% 배경 + primary 아이콘 | 강조가 필요한 플로팅 |
|
|
57
57
|
| `outline` | 투명 배경 + border | 툴바 그룹의 그룹핑 |
|
|
58
|
-
| `ghost` | 완전 투명, hover만 반응 |
|
|
58
|
+
| `ghost` | 완전 투명, hover만 반응 | **기본**: 밀도 자리 |
|
|
59
59
|
| `destructive` | 평상시 ghost, hover 시 destructive 톤 | 삭제·제거 |
|
|
60
60
|
|
|
61
61
|
### 조합 예시
|
|
62
62
|
```tsx
|
|
63
|
-
//
|
|
63
|
+
// 툴바: ghost md 나열
|
|
64
64
|
<Toolbar>
|
|
65
65
|
<IconButton icon={<Icon name="pencil-simple" />} aria-label="수정" />
|
|
66
66
|
<IconButton icon={<Icon name="copy" />} aria-label="복제" />
|
|
67
67
|
<IconButton icon={<Icon name="trash" />} aria-label="삭제" variant="destructive" />
|
|
68
68
|
</Toolbar>
|
|
69
69
|
|
|
70
|
-
// Dual
|
|
70
|
+
// Dual 모드: 드롭다운 트리거
|
|
71
71
|
<IconButton
|
|
72
72
|
icon={<Icon name="user" />}
|
|
73
73
|
trailingIcon={<Icon name="caret-down" />}
|
|
@@ -75,7 +75,7 @@ size 애매하면 `md`, variant 애매하면 `ghost`.
|
|
|
75
75
|
variant="outline"
|
|
76
76
|
/>
|
|
77
77
|
|
|
78
|
-
// asChild
|
|
78
|
+
// asChild: Next Link 위임
|
|
79
79
|
<IconButton asChild size="md" variant="ghost" aria-label="깃허브">
|
|
80
80
|
<a href="https://github.com/..." target="_blank" rel="noreferrer">
|
|
81
81
|
<Icon name="github-logo" />
|
|
@@ -87,11 +87,11 @@ size 애매하면 `md`, variant 애매하면 `ghost`.
|
|
|
87
87
|
|
|
88
88
|
[[SLOTS]] 참고.
|
|
89
89
|
|
|
90
|
-
- `icon-button-root
|
|
90
|
+
- `icon-button-root`: `<button>` 또는 asChild 자식 자체
|
|
91
91
|
|
|
92
92
|
### state attributes
|
|
93
93
|
|
|
94
|
-
- `data-dual="true"
|
|
94
|
+
- `data-dual="true"`: trailingIcon 있을 때 (정사각 → 가로형 dual 자동 전환)
|
|
95
95
|
|
|
96
96
|
<!-- component-contract -->
|
|
97
97
|
```json
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
# Icon
|
|
2
2
|
|
|
3
3
|
### 원칙
|
|
4
|
-
의미 기반 아이콘 렌더러. `name`으로 **의미 슬롯**을 지정하고, 실제 SVG는 [[axes/icon]]의 Family(phosphor/solar/lucide)가 결정. **한 페이지 = 한 Family** 원칙. family는 `<html data-icon-family>` 축에서 자동 상속. Weight
|
|
4
|
+
의미 기반 아이콘 렌더러. `name`으로 **의미 슬롯**을 지정하고, 실제 SVG는 [[axes/icon]]의 Family(phosphor/solar/lucide)가 결정. **한 페이지 = 한 Family** 원칙. family는 `<html data-icon-family>` 축에서 자동 상속. Weight는 축이 아니라 prop. Phosphor는 thin/light/regular/bold/fill/duotone을 모두 지원하고, Solar는 원본 6개 스타일을 `solarStyle`로 지정하며, 생략하면 fill만 Bold, 나머지는 Linear로 렌더한다. Lucide는 regular 고정이다.
|
|
5
5
|
|
|
6
6
|
### Do
|
|
7
|
+
- `chat-centered`는 정중앙 꼭지의 말풍선이다. Tooltip처럼 형상이 중요한 자리에서 사용하며, 다른 Family의 모서리 꼭지 아이콘으로 바뀌지 않도록 공통 Phosphor 형상을 사용한다.
|
|
7
8
|
- 항상 `name`으로 의미 지정: `<Icon name="check" />`.
|
|
8
9
|
- 라벨 없는 아이콘 쓰임엔 반드시 `aria-label` 또는 Tooltip (sender 쪽에서).
|
|
9
10
|
- `size`는 number(px). 컴포넌트 안에서 자동 상속되므로 대부분 지정 안 함.
|
|
@@ -11,27 +12,28 @@
|
|
|
11
12
|
- 축 override가 필요한 특수 자리(브랜드 로고 아이콘 등)에만 `family` prop.
|
|
12
13
|
|
|
13
14
|
### Don't
|
|
14
|
-
- 인라인 `<svg>` 로 아이콘 그리지
|
|
15
|
-
- `name
|
|
15
|
+
- 인라인 `<svg>` 로 아이콘 그리지 않는다: 반드시 Icon 컴포넌트. 브랜드 로고·Tooltip tail은 예외.
|
|
16
|
+
- `name`은 현재 family의 공식 kebab-case 이름·공식 export 이름 또는 기존 의미 별칭을 쓴다. 등록되지 않은 이름은 placeholder 사각형으로 렌더한다.
|
|
16
17
|
- 한 페이지에서 여러 family 섞지 않는다. 축 override를 과용하면 Ovenn 지문이 깨짐.
|
|
17
|
-
- Lucide에서 `weight="fill"` 요구
|
|
18
|
+
- Lucide에서 `weight="fill"` 요구 금지: 원본이 fill 미제공, regular로 폴백.
|
|
18
19
|
- 아이콘 크기를 CSS로 override 금지. `size` prop 또는 컨테이너의 `--icon-size-*` 토큰 경유.
|
|
19
20
|
|
|
20
21
|
### Fallback
|
|
21
22
|
family는 축 상속(기본 `phosphor`), weight는 축 상속(기본 `regular`), size 애매하면 `20`.
|
|
22
23
|
|
|
23
24
|
### 관련
|
|
24
|
-
- [[axes/icon]]
|
|
25
|
-
- [[components/icon-button]] · [[components/button]]
|
|
26
|
-
- [[components/menu-item]] · [[components/badge]] · [[components/chip]]
|
|
27
|
-
- [[tokens/color]]
|
|
25
|
+
- [[axes/icon]]: Family 축 (data-icon-family). Weight는 축 아님.
|
|
26
|
+
- [[components/icon-button]] · [[components/button]]: 아이콘 담는 가장 흔한 자리
|
|
27
|
+
- [[components/menu-item]] · [[components/badge]] · [[components/chip]]: leadingActions/leftIcon 자리
|
|
28
|
+
- [[tokens/color]]: `--icon-color`가 Palette 축에 반응
|
|
28
29
|
|
|
29
30
|
### Props 시그니처
|
|
30
31
|
```tsx
|
|
31
32
|
<Icon
|
|
32
|
-
name={IconName} //
|
|
33
|
+
name={IconName} // family별 공식 이름 + 기존 의미 별칭
|
|
33
34
|
family="phosphor | solar | lucide" // default: 축 상속
|
|
34
|
-
weight="regular | fill"
|
|
35
|
+
weight="thin | light | regular | bold | fill | duotone" // default: regular
|
|
36
|
+
solarStyle="linear | bold | bold-duotone | line-duotone | broken | outline" // Solar 전용, 선택
|
|
35
37
|
size={number | string} // default: 20
|
|
36
38
|
// 그 외 SVG attributes 전부 통과
|
|
37
39
|
/>
|
|
@@ -40,15 +42,24 @@ family는 축 상속(기본 `phosphor`), weight는 축 상속(기본 `regular`),
|
|
|
40
42
|
### Family별 지원
|
|
41
43
|
| Family | Weight 반응 | 스타일 특징 | 쓰임 |
|
|
42
44
|
|---|---|---|---|
|
|
43
|
-
| `phosphor` | regular / fill | 다재다능, 모던, 선·면 균형 | **기본** |
|
|
44
|
-
| `solar` |
|
|
45
|
+
| `phosphor` | thin / light / regular / bold / fill / duotone | 다재다능, 모던, 선·면 균형 | **기본** |
|
|
46
|
+
| `solar` | solarStyle로 6개 스타일, 기본 fill → Bold / 나머지 → Linear | 두꺼운 선·단단한 느낌 | 모바일·터치 |
|
|
45
47
|
| `lucide` | regular만 (fill 요청 시 regular) | 얇은 Feather 계승, 미니멀 | 미니멀·docs |
|
|
46
48
|
|
|
49
|
+
### 로딩
|
|
50
|
+
기본 Phosphor의 기존 의미 슬롯은 즉시 렌더한다. Solar/Lucide는 해당 family를 처음 사용할 때 기본 세트를 로드하며, 각 family의 전체 공식 카탈로그는 추가 아이콘이 처음 필요할 때만 별도 청크로 로드한다. 로딩 동안 아이콘 크기의 빈 SVG를 유지하고 준비되면 원본 아이콘을 표시한다. 공개 이름 목록은 SVG 없는 메타데이터이므로 목록 조회만으로 전체 SVG를 가져오지 않는다.
|
|
51
|
+
|
|
47
52
|
### 사용 가능한 name
|
|
48
53
|
|
|
49
|
-
|
|
54
|
+
Phosphor 공식 React 패키지의 전체 1,512개 아이콘을 지원한다 (`@phosphor-icons/react@2.1.10`). 공식 PascalCase 이름을 kebab-case로 바꿔 사용한다: `AcornIcon` → `acorn`, `ArrowUDownLeftIcon` → `arrow-u-down-left`, `GithubLogoIcon` → `github-logo`.
|
|
55
|
+
|
|
56
|
+
`search`, `download-simple`, `cloud-up` 등 기존 의미 별칭도 유지한다. 공식 이름과 호환 별칭은 `Icon` 모듈의 `PHOSPHOR_ICON_NAMES` export로 조회한다. 공식 export 이름(`AcornIcon`, `ArrowsInIcon`)도 `name`에 그대로 쓸 수 있다. 기존 `paper-plane`·`arrows-in`·`arrows-out`은 각각 Tilt·Simple 형상을 보존하므로 원본 형상을 정확히 지정할 때는 공식 export 이름을 쓴다. 목록 원본은 설치된 공식 패키지이며, 패키지 업데이트 뒤 `npm run build:icons`로 매핑을 재생성한다. 생성 파일은 직접 수정하지 않는다.
|
|
57
|
+
|
|
58
|
+
Solar는 `solar-icon-set@2.0.1`의 1,235개 이름과 7,403개 스타일 export를 모두 지원한다. `SOLAR_ICON_NAMES`는 기본 이름, `SOLAR_ICON_EXPORT_NAMES`는 스타일까지 지정된 공식 export 목록이다. `<Icon name="chat-round-money" family="solar" solarStyle="bold-duotone" />`처럼 쓰거나 `name="ChatRoundMoneyBoldDuotone"`으로 원본 스타일을 고정한다. 기본 이름은 `ChatRoundMoney`처럼 PascalCase도 지원한다. 패키지에 없는 스타일은 Linear → Outline → Bold 순으로 폴백하며 존재하지 않는 SVG를 만들지 않는다. 스타일이 포함된 공식 export 이름은 `weight`보다 우선한다. `BoneBroken`처럼 기본 이름과 스타일 export 이름이 겹치면 `solarStyle`을 지정한 쪽을 기본 이름으로 해석한다.
|
|
59
|
+
|
|
60
|
+
Lucide는 `lucide-react@1.68.0`의 전체 2,020개 아이콘을 지원한다. `LUCIDE_ICON_NAMES`에서 공식 kebab-case 이름을 조회한다. 공식 export 이름과 호환 별칭(`AArrowDown`, `AArrowDownIcon`, `LucideAArrowDown` 등)도 모두 지원한다.
|
|
50
61
|
|
|
51
|
-
|
|
62
|
+
세 family의 전체 목록은 각 라이브러리의 실제 아이콘 목록이며 서로 같은 의미 슬롯 전체를 공유한다는 뜻은 아니다. 기존 의미 매핑은 우선 유지하고, 해당 family에도 없는 이름만 placeholder로 렌더한다. 편집기 아이콘 등 기존 Phosphor 고정 슬롯과 `arrows-down-up`의 경로별 색 제어는 유지한다. 이 슬롯에서 다른 family의 원본 형상을 명시하려면 공식 PascalCase export 이름을 쓴다. 세 목록은 모두 `npm run build:icons`로 재생성하고 테스트에서 패키지 목록과 대조한다.
|
|
52
63
|
|
|
53
64
|
### 유령 이름 처리
|
|
54
65
|
- `name="존재하지-않는-슬롯"` → **family별 placeholder 사각형**이 자동 렌더. 레이아웃 공간 유지.
|
|
@@ -56,17 +67,28 @@ family는 축 상속(기본 `phosphor`), weight는 축 상속(기본 `regular`),
|
|
|
56
67
|
|
|
57
68
|
### 조합 예시
|
|
58
69
|
```tsx
|
|
59
|
-
//
|
|
70
|
+
// 기본: 축 상속
|
|
60
71
|
<Icon name="check" />
|
|
61
72
|
<Icon name="warning" size={16} />
|
|
62
73
|
|
|
74
|
+
// Phosphor 전체 스타일
|
|
75
|
+
<Icon name="acorn" family="phosphor" weight="thin" />
|
|
76
|
+
<Icon name="butterfly" family="phosphor" weight="duotone" />
|
|
77
|
+
|
|
78
|
+
// Solar 전체 스타일
|
|
79
|
+
<Icon name="chat-round-money" family="solar" solarStyle="line-duotone" />
|
|
80
|
+
<Icon name="HeartBroken" family="solar" />
|
|
81
|
+
|
|
82
|
+
// Lucide 전체 목록
|
|
83
|
+
<Icon name="a-arrow-down" family="lucide" />
|
|
84
|
+
|
|
63
85
|
// 활성 상태 fill
|
|
64
86
|
<Icon name="heart" weight={isLiked ? "fill" : "regular"} />
|
|
65
87
|
|
|
66
|
-
// Family override
|
|
88
|
+
// Family override: 로고 자리처럼 특수한 지점만
|
|
67
89
|
<Icon name="github-logo" family="phosphor" size={24} />
|
|
68
90
|
|
|
69
|
-
// Button
|
|
91
|
+
// Button 안: 자동 크기 상속 (ICON_SIZE 매핑)
|
|
70
92
|
<Button leftIcon={<Icon name="plus" />}>추가</Button>
|
|
71
93
|
|
|
72
94
|
// MenuItem leadingActions
|
|
@@ -77,3 +99,6 @@ family는 축 상속(기본 `phosphor`), weight는 축 상속(기본 `regular`),
|
|
|
77
99
|
```json
|
|
78
100
|
{"roles":["icon"],"native":[],"hints":[],"requires":[]}
|
|
79
101
|
```
|
|
102
|
+
|
|
103
|
+
### 이모지 분류의 의미 별칭
|
|
104
|
+
- `paw-print`는 Solar Paw에, `fork-knife`는 Solar Plate 및 Lucide Utensils에 대응한다. 이모지 분류 탭에서 family를 바꿔도 해당 의미의 아이콘을 표시한다.
|
|
@@ -2,42 +2,42 @@
|
|
|
2
2
|
|
|
3
3
|
### 원칙
|
|
4
4
|
|
|
5
|
-
폼 입력의 최소 단위. 사용자가 한 줄의 텍스트/숫자/비밀번호 등을 입력하는 컨트롤.
|
|
5
|
+
폼 입력의 최소 단위. 사용자가 한 줄의 텍스트/숫자/비밀번호 등을 입력하는 컨트롤. `label`·`description`·`warning`으로 라벨과 안내·오류를 함께 연결한다. Select·Textarea·검색 선택·날짜·시간·색상 입력이 이 필드 스타일을 공유한다.
|
|
6
6
|
|
|
7
7
|
### Do
|
|
8
|
-
-
|
|
9
|
-
-
|
|
8
|
+
- 읽기 전용 상태를 배경색으로 칠하지 않는다. `line`은 기본·hover·포커스·열림·오류·비활성·읽기 전용 상태 모두 배경을 투명하게 유지한다.
|
|
9
|
+
- 일반 입력의 `aria-label`·포커스/키보드 이벤트는 실제 input에 적용한다. 명시적인 button/combobox role 또는 aria-haspopup이 있는 트리거만 wrapper 상호작용을 사용하며 Enter/Space로 활성화한다. searchbox 등 네이티브 입력 역할은 field에 남긴다. 외부 `aria-describedby`는 내부 설명·오류 ID와 합치며 warning이 있으면 invalid를 유지한다. 설명문은 `fg-muted`를 사용한다. warning은 description보다 우선하며 실제 표시한 안내 ID만 연결한다. 키보드 포커스는 외곽 링 없이 테두리 변화로 표시하고 오류 색을 유지한다.
|
|
10
|
+
- 기본 variant는 `outline`이다. 같은 폼의 입력·선택 필드는 size·variant를 맞춘다. `line`은 명시적으로 요청한 밑줄 형태에 사용한다.
|
|
10
11
|
- **사이드바 안쪽은 `outline` 기본, `line` 금지. `filled`는 연한 배경이 아닌 곳에서만 검토한다.** 사이드바 안은 ghost MenuItem 리듬이라 line의 밑줄 하나가 흐름에 녹아 "검색창이 비어 보임"으로 읽힌다 ([[components/sidebar]]).
|
|
11
|
-
- 라벨이 필요한 실제 폼에서는
|
|
12
|
+
- 라벨이 필요한 실제 폼에서는 `label`을 전달한다. Input을 라벨 없이 단독으로 두는 것은 검색창 · Popover 트리거 · 인라인 필터에 한한다.
|
|
12
13
|
- 통화 · 단위 · 도메인처럼 사용자가 편집하지 않는 고정 문자열은 `prefix` / `suffix`로 넣는다. placeholder에 넣지 않는다.
|
|
13
14
|
- 아이콘은 시맨틱 힌트(`leftIcon`=검색 돋보기, 메일 봉투 등). 인터랙션이 있으면 `rightAction` 슬롯으로 실제 버튼을 넣는다.
|
|
14
|
-
- 값을 지울 수 있어야 하면 `clearable`. 비밀번호는 `passwordToggle` 을 켠다.
|
|
15
|
-
- 검증 실패 시 `invalid`
|
|
16
|
-
- 다른 컴포넌트(DatePicker · Combobox · Select)가 트리거로 Input을 재사용할 때는 `readOnly` + `role="combobox"` 조합. 새 스타일을 만들지 않는다.
|
|
15
|
+
- 값을 지울 수 있어야 하면 `clearable`. controlled 값은 `onClear`에서 초기화한다. 지우기·비밀번호 보기 버튼은 키보드로 접근할 수 있고 지운 뒤 입력으로 포커스를 돌린다. 비밀번호는 `passwordToggle` 을 켠다.
|
|
16
|
+
- 검증 실패 시 `invalid` 활성과 `warning`으로 사유를 알린다. `invalid`만 켜고 에러 문구를 안 주면 사용자가 이유를 모른다.
|
|
17
|
+
- 다른 컴포넌트(DatePicker · Combobox · Select)가 트리거로 Input을 재사용할 때는 `readOnly` + `role="combobox"` 조합. 트리거 내부 표시 input의 readOnly는 실제 필드의 읽기 전용 상태와 구분한다. 실제 읽기 전용 트리거는 `aria-readonly=true`도 전달한다. 새 스타일을 만들지 않는다.
|
|
17
18
|
|
|
18
19
|
### Don't
|
|
19
20
|
- 흰색·연한 중립색·연한 유색 배경에 `filled`를 사용하지 않는다. 이 자리에서는 `outline`을 사용한다. 밀도 높은 관리자 UI도 예외가 아니다([[PRINCIPLES]] §5c).
|
|
20
21
|
- `leftIcon`에 클릭 액션을 붙이지 않는다. 아이콘은 항상 `aria-hidden`. 액션이 필요하면 `rightAction`.
|
|
21
|
-
- placeholder를 라벨 대신 쓰지
|
|
22
|
+
- placeholder를 라벨 대신 쓰지 않는다: 값이 들어가면 힌트가 사라진다. 접근성 실패.
|
|
22
23
|
- `variant="filled"`와 `invalid`를 조합해서 배경까지 destructive 계열로 물들이지 않는다. 보더/링만 destructive.
|
|
23
24
|
- 사이즈 조정용으로 CSS로 height를 덮어쓰지 않는다. `size` prop 경유.
|
|
24
25
|
|
|
25
26
|
### Fallback
|
|
26
|
-
variant가 애매하면
|
|
27
|
+
variant가 애매하면 `outline`. `line`은 밑줄 형태가 필요한 곳에 명시한다. `filled`는 연하지 않은 배경에서만 검토한다. **사이드바 안쪽에선 `outline`**. size가 애매하면 `md`. 폼 전체가 일관된 밀도를 갖도록 한 화면에서 size·variant를 섞지 않는다.
|
|
27
28
|
|
|
28
29
|
### 관련
|
|
29
|
-
- [[components/
|
|
30
|
-
- [[
|
|
31
|
-
- [[axes/
|
|
32
|
-
- [[
|
|
33
|
-
- [[tokens/color]] — `--primary`(focus), `--destructive`(invalid), `--bg-subtle`(filled/readOnly).
|
|
30
|
+
- [[components/date-picker]]: Input을 readOnly 트리거로 재사용.
|
|
31
|
+
- [[axes/density]]: `--control-h-sm/md/lg`가 size에 매핑.
|
|
32
|
+
- [[axes/shape]]: 컨테이너 radius가 Shape 축에 반응.
|
|
33
|
+
- [[tokens/color]]: `--primary`(focus), `--destructive`(invalid), `--bg-subtle`(filled).
|
|
34
34
|
|
|
35
35
|
### Props 시그니처
|
|
36
36
|
|
|
37
37
|
```tsx
|
|
38
38
|
<Input
|
|
39
39
|
size="sm | md | lg" // default: md
|
|
40
|
-
variant="line | outline | filled" // default: outline
|
|
40
|
+
variant="line | outline | filled" // default: outline
|
|
41
41
|
|
|
42
42
|
value={string} defaultValue={string}
|
|
43
43
|
onChange={(e) => void}
|
|
@@ -47,7 +47,8 @@ variant가 애매하면 **`line`**(기본 권장). 독립 폼 블록이면 `outl
|
|
|
47
47
|
invalid={boolean}
|
|
48
48
|
disabled={boolean}
|
|
49
49
|
readOnly={boolean}
|
|
50
|
-
|
|
50
|
+
width="fill | md | lg | number"
|
|
51
|
+
label={ReactNode} description={ReactNode} warning={ReactNode}
|
|
51
52
|
|
|
52
53
|
leftIcon={ReactNode} rightIcon={ReactNode} // 시각용
|
|
53
54
|
prefix={ReactNode} suffix={ReactNode} // 짧은 텍스트
|
|
@@ -62,8 +63,8 @@ variant가 애매하면 **`line`**(기본 권장). 독립 폼 블록이면 `outl
|
|
|
62
63
|
|
|
63
64
|
| variant | 용도 | 금지 조합 |
|
|
64
65
|
|---|---|---|
|
|
65
|
-
| `line` |
|
|
66
|
-
| `outline` |
|
|
66
|
+
| `line` | 밑줄 형태를 명시한 자리 | |
|
|
67
|
+
| `outline` | 기본값. 일반 폼·검색·선택 필드 | |
|
|
67
68
|
| `filled` | 연한 배경이 아닌 밀도 높은 관리자·대시보드 | 흰색·연한 배경에서 금지. `invalid`와 결합 시 배경까지 물들이지 말 것 |
|
|
68
69
|
|
|
69
70
|
**상태 조합:**
|
|
@@ -71,24 +72,22 @@ variant가 애매하면 **`line`**(기본 권장). 독립 폼 블록이면 `outl
|
|
|
71
72
|
| 상태 | 시각 반응 | 접근성 |
|
|
72
73
|
|---|---|---|
|
|
73
74
|
| `disabled` | 반투명 + cursor:not-allowed | 포커스 불가 |
|
|
74
|
-
| `readOnly` |
|
|
75
|
-
| `invalid` | destructive
|
|
75
|
+
| `readOnly` | 추가 배경색 없음, cursor default | 포커스 가능, 편집 불가 |
|
|
76
|
+
| `invalid` | destructive 테두리 | `aria-invalid="true"` |
|
|
76
77
|
|
|
77
78
|
### 조합 예시
|
|
78
79
|
|
|
79
80
|
```tsx
|
|
80
|
-
// 로그인 폼:
|
|
81
|
-
<
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
<FormField.Error>{error}</FormField.Error>
|
|
91
|
-
</FormField>
|
|
81
|
+
// 로그인 폼: 라벨과 오류 자동 연결
|
|
82
|
+
<Input
|
|
83
|
+
label="이메일"
|
|
84
|
+
type="email"
|
|
85
|
+
value={email}
|
|
86
|
+
onChange={(e) => setEmail(e.target.value)}
|
|
87
|
+
leftIcon={<MailIcon />}
|
|
88
|
+
warning={error}
|
|
89
|
+
required
|
|
90
|
+
/>
|
|
92
91
|
|
|
93
92
|
// 검색: 라벨 없이 단독
|
|
94
93
|
<Input placeholder="검색" leftIcon={<SearchIcon />} clearable value={q} onChange={..} />
|
|
@@ -101,23 +100,23 @@ variant가 애매하면 **`line`**(기본 권장). 독립 폼 블록이면 `outl
|
|
|
101
100
|
|
|
102
101
|
[[SLOTS]] 참고.
|
|
103
102
|
|
|
104
|
-
- `input-field-wrapper
|
|
105
|
-
- `input-label
|
|
106
|
-
- `input-root
|
|
107
|
-
- `input-prefix
|
|
108
|
-
- `input-icon-start
|
|
109
|
-
- `input-field
|
|
110
|
-
- `input-action
|
|
111
|
-
- `input-icon-end
|
|
112
|
-
- `input-suffix
|
|
113
|
-
- `input-description
|
|
114
|
-
- `input-warning
|
|
103
|
+
- `input-field-wrapper`: label+control+description/warning 전체 (label 또는 description 있을 때만 등장)
|
|
104
|
+
- `input-label`: label 자체
|
|
105
|
+
- `input-root`: control 전체 wrapper (prefix/icon/input/action/suffix 담는 자리)
|
|
106
|
+
- `input-prefix`: 왼쪽 prefix 텍스트 (`$`, `+82` 등)
|
|
107
|
+
- `input-icon-start`: leftIcon 슬롯
|
|
108
|
+
- `input-field`: `<input>` 자체
|
|
109
|
+
- `input-action`: rightAction 슬롯 (버튼 등)
|
|
110
|
+
- `input-icon-end`: rightIcon 슬롯
|
|
111
|
+
- `input-suffix`: 오른쪽 suffix 텍스트 (`USD`, `kg` 등)
|
|
112
|
+
- `input-description`: 설명 메시지
|
|
113
|
+
- `input-warning`: warning 메시지
|
|
115
114
|
|
|
116
115
|
### state attributes
|
|
117
116
|
|
|
118
|
-
- `data-invalid="true"
|
|
119
|
-
- `data-disabled="true"
|
|
120
|
-
- `data-readonly="true"
|
|
117
|
+
- `data-invalid="true"`: 폼 검증 실패 (border destructive)
|
|
118
|
+
- `data-disabled="true"`: disabled
|
|
119
|
+
- `data-readonly="true"`: readonly
|
|
121
120
|
|
|
122
121
|
### 포커스 참조
|
|
123
122
|
- 일반 입력의 ref는 실제 HTMLInputElement를 가리켜 폼 검증 후 focus/select할 수 있다. 명시적 button/combobox trigger 모드의 ref는 외부 overlay가 요구하는 wrapper를 가리킨다.
|
|
@@ -132,3 +131,7 @@ variant가 애매하면 **`line`**(기본 권장). 독립 폼 블록이면 `outl
|
|
|
132
131
|
|
|
133
132
|
### ControlGroup 조합
|
|
134
133
|
[[components/control-group]] 안에서는 그룹의 sm/md/lg 크기를 공유한다. 라벨·설명·오류와 각 컨트롤의 행동은 유지하며, 팝오버 콘텐츠는 그룹에서 분리한다.
|
|
134
|
+
|
|
135
|
+
### filled 포커스
|
|
136
|
+
|
|
137
|
+
filled 입력은 포커스에서 기존 채움 위에 `--hover` 색을 얹는다. 포커스 전용 테두리·외곽 링·그림자를 추가하지 않는다. outline 입력의 경계 기반 포커스는 유지한다.
|