@conscience-technology/ovenn 0.0.0-stage → 0.6.7
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/README.md +189 -2
- package/assets/components/AIMessage/AIMessage.module.css +149 -0
- package/assets/components/AIMessage/AIMessage.tsx +106 -0
- package/assets/components/AIMessage/index.ts +2 -0
- package/assets/components/Accordion/Accordion.module.css +262 -0
- package/assets/components/Accordion/Accordion.tsx +209 -0
- package/assets/components/Accordion/index.ts +7 -0
- package/assets/components/AppFrame/AppFrame.module.css +198 -0
- package/assets/components/AppFrame/AppFrame.tsx +93 -0
- package/assets/components/AppFrame/index.ts +6 -0
- package/assets/components/AttachmentItem/AttachmentItem.module.css +118 -0
- package/assets/components/AttachmentItem/AttachmentItem.tsx +185 -0
- package/assets/components/AttachmentItem/index.ts +6 -0
- package/assets/components/AttachmentThumb/AttachmentThumb.module.css +137 -0
- package/assets/components/AttachmentThumb/AttachmentThumb.tsx +102 -0
- package/assets/components/AttachmentThumb/index.ts +2 -0
- package/assets/components/Avatar/Avatar.module.css +201 -0
- package/assets/components/Avatar/Avatar.tsx +283 -0
- package/assets/components/Avatar/index.ts +9 -0
- package/assets/components/AvatarUpload/AvatarUpload.module.css +82 -0
- package/assets/components/AvatarUpload/AvatarUpload.tsx +155 -0
- package/assets/components/AvatarUpload/index.ts +2 -0
- package/assets/components/Badge/Badge.module.css +152 -0
- package/assets/components/Badge/Badge.tsx +109 -0
- package/assets/components/Badge/index.ts +2 -0
- package/assets/components/BrandSet/BrandSetController.tsx +56 -0
- package/assets/components/BrandSet/index.ts +14 -0
- package/assets/components/BrandSet/resolve.ts +10 -0
- package/assets/components/BrandSet/types.ts +43 -0
- package/assets/components/Breadcrumb/Breadcrumb.module.css +277 -0
- package/assets/components/Breadcrumb/Breadcrumb.tsx +352 -0
- package/assets/components/Breadcrumb/index.ts +8 -0
- package/assets/components/Bubble/Bubble.module.css +65 -0
- package/assets/components/Bubble/Bubble.tsx +63 -0
- package/assets/components/Bubble/index.ts +2 -0
- package/assets/components/Button/Button.module.css +336 -0
- package/assets/components/Button/Button.tsx +217 -0
- package/assets/components/Button/index.ts +2 -0
- package/assets/components/ButtonGroup/ButtonGroup.tsx +22 -0
- package/assets/components/ButtonGroup/index.ts +5 -0
- package/assets/components/Callout/Callout.module.css +146 -0
- package/assets/components/Callout/Callout.tsx +207 -0
- package/assets/components/Callout/index.ts +2 -0
- package/assets/components/CanvasNode/CanvasNode.module.css +110 -0
- package/assets/components/CanvasNode/CanvasNode.tsx +77 -0
- package/assets/components/CanvasNode/index.ts +2 -0
- package/assets/components/CanvasNode/tokens.css +26 -0
- package/assets/components/Card/Card.module.css +122 -0
- package/assets/components/Card/Card.tsx +88 -0
- package/assets/components/Card/index.ts +2 -0
- package/assets/components/ChatInput/ChatInput.module.css +373 -0
- package/assets/components/ChatInput/ChatInput.tsx +362 -0
- package/assets/components/ChatInput/ModelSelector.tsx +48 -0
- package/assets/components/ChatInput/SendButton.tsx +72 -0
- package/assets/components/ChatInput/index.ts +12 -0
- package/assets/components/Checkbox/Checkbox.module.css +147 -0
- package/assets/components/Checkbox/Checkbox.tsx +44 -0
- package/assets/components/Checkbox/index.ts +2 -0
- package/assets/components/CheckboxCard/CheckboxCard.module.css +177 -0
- package/assets/components/CheckboxCard/CheckboxCard.tsx +83 -0
- package/assets/components/CheckboxCard/index.ts +2 -0
- package/assets/components/Chip/Chip.module.css +219 -0
- package/assets/components/Chip/Chip.tsx +219 -0
- package/assets/components/Chip/index.ts +2 -0
- package/assets/components/Code/Code.module.css +25 -0
- package/assets/components/Code/Code.tsx +26 -0
- package/assets/components/Code/index.ts +2 -0
- package/assets/components/CodeBlock/CodeBlock.module.css +255 -0
- package/assets/components/CodeBlock/CodeBlock.tsx +283 -0
- package/assets/components/CodeBlock/copy-code.ts +15 -0
- package/assets/components/CodeBlock/index.ts +2 -0
- package/assets/components/ColorArea/ColorArea.module.css +145 -0
- package/assets/components/ColorArea/ColorArea.tsx +156 -0
- package/assets/components/ColorArea/index.ts +2 -0
- package/assets/components/ColorField/ColorField.module.css +195 -0
- package/assets/components/ColorField/ColorField.tsx +372 -0
- package/assets/components/ColorField/index.ts +2 -0
- package/assets/components/ColorSlider/ColorSlider.module.css +167 -0
- package/assets/components/ColorSlider/ColorSlider.tsx +165 -0
- package/assets/components/ColorSlider/index.ts +15 -0
- package/assets/components/ColorSwatch/ColorSwatch.module.css +35 -0
- package/assets/components/ColorSwatch/ColorSwatch.tsx +69 -0
- package/assets/components/ColorSwatch/index.ts +2 -0
- package/assets/components/ColorSwatchPicker/ColorSwatchPicker.module.css +114 -0
- package/assets/components/ColorSwatchPicker/ColorSwatchPicker.tsx +183 -0
- package/assets/components/ColorSwatchPicker/index.ts +15 -0
- package/assets/components/Combobox/Combobox.module.css +13 -0
- package/assets/components/Combobox/Combobox.tsx +107 -0
- package/assets/components/Combobox/index.ts +2 -0
- package/assets/components/CommandPalette/CommandPalette.module.css +269 -0
- package/assets/components/CommandPalette/CommandPalette.tsx +423 -0
- package/assets/components/CommandPalette/index.ts +9 -0
- package/assets/components/CommandPalette/useCommandPaletteHotkey.ts +49 -0
- package/assets/components/ContextMenu/ContextMenu.module.css +118 -0
- package/assets/components/ContextMenu/ContextMenu.tsx +415 -0
- package/assets/components/ContextMenu/index.ts +9 -0
- package/assets/components/ControlGroup/ControlGroup.module.css +313 -0
- package/assets/components/ControlGroup/ControlGroup.tsx +69 -0
- package/assets/components/ControlGroup/context.tsx +12 -0
- package/assets/components/ControlGroup/index.ts +3 -0
- package/assets/components/ControlGroup/size.ts +9 -0
- package/assets/components/DataTable/DataTable.module.css +55 -0
- package/assets/components/DataTable/DataTable.tsx +137 -0
- package/assets/components/DataTable/index.ts +4 -0
- package/assets/components/DataTable/state.ts +34 -0
- package/assets/components/DatePicker/Calendar.tsx +485 -0
- package/assets/components/DatePicker/DESIGN_NOTES.md +106 -0
- package/assets/components/DatePicker/DESIGN_NOTES_TIME.md +125 -0
- package/assets/components/DatePicker/DateField.tsx +303 -0
- package/assets/components/DatePicker/DatePicker.module.css +590 -0
- package/assets/components/DatePicker/DatePicker.tsx +520 -0
- package/assets/components/DatePicker/TimeSelector.tsx +77 -0
- package/assets/components/DatePicker/index.ts +11 -0
- package/assets/components/DatePicker/presets.ts +84 -0
- package/assets/components/DatePicker/utils.ts +214 -0
- package/assets/components/Disclosure/Disclosure.module.css +73 -0
- package/assets/components/Disclosure/Disclosure.tsx +129 -0
- package/assets/components/Disclosure/index.ts +6 -0
- package/assets/components/Drawer/Drawer.module.css +190 -0
- package/assets/components/Drawer/Drawer.tsx +226 -0
- package/assets/components/Drawer/index.ts +15 -0
- package/assets/components/DropdownMenu/DropdownMenu.module.css +26 -0
- package/assets/components/DropdownMenu/DropdownMenu.tsx +395 -0
- package/assets/components/DropdownMenu/index.ts +9 -0
- package/assets/components/EmptyState/EmptyState.module.css +102 -0
- package/assets/components/EmptyState/EmptyState.tsx +80 -0
- package/assets/components/EmptyState/index.ts +2 -0
- package/assets/components/EventChip/EventChip.module.css +76 -0
- package/assets/components/EventChip/EventChip.tsx +47 -0
- package/assets/components/EventChip/index.ts +2 -0
- package/assets/components/EventListItem/EventListItem.module.css +220 -0
- package/assets/components/EventListItem/EventListItem.tsx +226 -0
- package/assets/components/EventListItem/index.ts +8 -0
- package/assets/components/FileIcon/FileIcon.module.css +76 -0
- package/assets/components/FileIcon/FileIcon.tsx +142 -0
- package/assets/components/FileIcon/fileExtMap.ts +166 -0
- package/assets/components/FileIcon/index.ts +9 -0
- package/assets/components/FileUpload/FileUpload.module.css +12 -0
- package/assets/components/FileUpload/FileUpload.tsx +100 -0
- package/assets/components/FileUpload/index.ts +2 -0
- package/assets/components/FileUpload/utils.ts +8 -0
- package/assets/components/GalleryItem/GalleryItem.module.css +220 -0
- package/assets/components/GalleryItem/GalleryItem.tsx +163 -0
- package/assets/components/GalleryItem/index.ts +7 -0
- package/assets/components/GeneratedImage/GeneratedImage.module.css +91 -0
- package/assets/components/GeneratedImage/GeneratedImage.tsx +84 -0
- package/assets/components/GeneratedImage/index.ts +5 -0
- package/assets/components/Hint/Hint.module.css +75 -0
- package/assets/components/Hint/Hint.tsx +89 -0
- package/assets/components/Hint/index.ts +2 -0
- package/assets/components/Icon/Icon.tsx +1478 -0
- package/assets/components/Icon/context.tsx +39 -0
- package/assets/components/Icon/index.ts +4 -0
- package/assets/components/IconButton/IconButton.module.css +116 -0
- package/assets/components/IconButton/IconButton.tsx +113 -0
- package/assets/components/IconButton/index.ts +2 -0
- package/assets/components/Input/Input.module.css +357 -0
- package/assets/components/Input/Input.tsx +424 -0
- package/assets/components/Input/index.ts +2 -0
- package/assets/components/Kanban/Kanban.module.css +347 -0
- package/assets/components/Kanban/Kanban.tsx +371 -0
- package/assets/components/Kanban/index.ts +10 -0
- package/assets/components/ListItem/ListItem.module.css +232 -0
- package/assets/components/ListItem/ListItem.tsx +262 -0
- package/assets/components/ListItem/index.ts +9 -0
- package/assets/components/MenuItem/MenuItem.module.css +601 -0
- package/assets/components/MenuItem/MenuItem.tsx +704 -0
- package/assets/components/MenuItem/index.ts +8 -0
- package/assets/components/MessageActions/MessageActions.module.css +43 -0
- package/assets/components/MessageActions/MessageActions.tsx +114 -0
- package/assets/components/MessageActions/index.ts +6 -0
- package/assets/components/MessageQuote/MessageQuote.module.css +29 -0
- package/assets/components/MessageQuote/MessageQuote.tsx +33 -0
- package/assets/components/MessageQuote/index.ts +2 -0
- package/assets/components/MessageSources/MessageSources.module.css +58 -0
- package/assets/components/MessageSources/MessageSources.tsx +60 -0
- package/assets/components/MessageSources/index.ts +2 -0
- package/assets/components/MessageState/MessageState.module.css +118 -0
- package/assets/components/MessageState/MessageState.tsx +150 -0
- package/assets/components/MessageState/index.ts +2 -0
- package/assets/components/MessageTable/MessageTable.module.css +59 -0
- package/assets/components/MessageTable/MessageTable.tsx +21 -0
- package/assets/components/MessageTable/index.ts +2 -0
- package/assets/components/MetricCard/MetricCard.module.css +153 -0
- package/assets/components/MetricCard/MetricCard.tsx +140 -0
- package/assets/components/MetricCard/index.ts +2 -0
- package/assets/components/Modal/Modal.module.css +285 -0
- package/assets/components/Modal/Modal.tsx +398 -0
- package/assets/components/Modal/index.ts +22 -0
- package/assets/components/MultiSelect/MultiSelect.tsx +7 -0
- package/assets/components/MultiSelect/index.ts +2 -0
- package/assets/components/Onboarding/DocsIndex.tsx +102 -0
- package/assets/components/Onboarding/LayoutBuilder.tsx +204 -0
- package/assets/components/Onboarding/Onboarding.module.css +1561 -0
- package/assets/components/Onboarding/OnboardingAxisPanel.tsx +516 -0
- package/assets/components/Onboarding/OnboardingPage.tsx +1481 -0
- package/assets/components/Onboarding/PresetsGallery.tsx +56 -0
- package/assets/components/Onboarding/actions.ts +524 -0
- package/assets/components/Onboarding/index.ts +8 -0
- package/assets/components/Onboarding/palette.css +40 -0
- package/assets/components/Onboarding/wizardData.ts +529 -0
- package/assets/components/PageHeader/PageHeader.module.css +119 -0
- package/assets/components/PageHeader/PageHeader.tsx +126 -0
- package/assets/components/PageHeader/index.ts +2 -0
- package/assets/components/Pagination/Pagination.module.css +132 -0
- package/assets/components/Pagination/Pagination.tsx +294 -0
- package/assets/components/Pagination/index.ts +6 -0
- package/assets/components/ProgressBar/ProgressBar.module.css +127 -0
- package/assets/components/ProgressBar/ProgressBar.tsx +90 -0
- package/assets/components/ProgressBar/index.ts +7 -0
- package/assets/components/QuotationBar/QuotationBar.module.css +61 -0
- package/assets/components/QuotationBar/QuotationBar.tsx +60 -0
- package/assets/components/QuotationBar/index.ts +2 -0
- package/assets/components/Radio/Radio.module.css +123 -0
- package/assets/components/Radio/Radio.tsx +39 -0
- package/assets/components/Radio/index.ts +2 -0
- package/assets/components/RadioCard/RadioCard.module.css +208 -0
- package/assets/components/RadioCard/RadioCard.tsx +164 -0
- package/assets/components/RadioCard/index.ts +2 -0
- package/assets/components/SegmentedChart/SegmentedChart.module.css +221 -0
- package/assets/components/SegmentedChart/SegmentedChart.tsx +104 -0
- package/assets/components/SegmentedChart/index.ts +2 -0
- package/assets/components/Select/Select.module.css +161 -0
- package/assets/components/Select/Select.tsx +450 -0
- package/assets/components/Select/index.ts +10 -0
- package/assets/components/Shortcut/Shortcut.module.css +77 -0
- package/assets/components/Shortcut/Shortcut.tsx +206 -0
- package/assets/components/Shortcut/index.ts +2 -0
- package/assets/components/Sidebar/Sidebar.module.css +406 -0
- package/assets/components/Sidebar/Sidebar.tsx +585 -0
- package/assets/components/Sidebar/index.ts +7 -0
- package/assets/components/Slider/Slider.module.css +134 -0
- package/assets/components/Slider/Slider.tsx +99 -0
- package/assets/components/Slider/index.ts +2 -0
- package/assets/components/Spinner/LottiePlayer.tsx +179 -0
- package/assets/components/Spinner/Spinner.module.css +205 -0
- package/assets/components/Spinner/Spinner.tsx +133 -0
- package/assets/components/Spinner/index.ts +10 -0
- package/assets/components/Spinner/lottieColor.ts +166 -0
- package/assets/components/Spinner/lottieManifest.ts +100 -0
- package/assets/components/Stepper/Stepper.module.css +330 -0
- package/assets/components/Stepper/Stepper.tsx +244 -0
- package/assets/components/Stepper/index.ts +2 -0
- package/assets/components/Switch/Switch.module.css +163 -0
- package/assets/components/Switch/Switch.tsx +73 -0
- package/assets/components/Switch/index.ts +2 -0
- package/assets/components/TabStrip/TabStrip.module.css +358 -0
- package/assets/components/TabStrip/TabStrip.tsx +404 -0
- package/assets/components/TabStrip/index.ts +7 -0
- package/assets/components/TableCell/TableCell.module.css +130 -0
- package/assets/components/TableCell/TableCellAvatar.tsx +66 -0
- package/assets/components/TableCell/TableCellBadge.tsx +26 -0
- package/assets/components/TableCell/TableCellImage.tsx +49 -0
- package/assets/components/TableCell/TableCellMeter.tsx +55 -0
- package/assets/components/TableCell/TableCellNumber.tsx +43 -0
- package/assets/components/TableCell/TableCellText.tsx +33 -0
- package/assets/components/TableCell/index.ts +19 -0
- package/assets/components/TableHeader/TableHeader.module.css +351 -0
- package/assets/components/TableHeader/TableHeader.tsx +658 -0
- package/assets/components/TableHeader/index.ts +9 -0
- package/assets/components/TableRow/TableRow.module.css +352 -0
- package/assets/components/TableRow/TableRow.tsx +292 -0
- package/assets/components/TableRow/index.ts +8 -0
- package/assets/components/TableRowEdit/TableRowEdit.module.css +162 -0
- package/assets/components/TableRowEdit/TableRowEdit.tsx +279 -0
- package/assets/components/TableRowEdit/index.ts +2 -0
- package/assets/components/TableRowSelect/TableRowSelect.module.css +23 -0
- package/assets/components/TableRowSelect/TableRowSelect.tsx +173 -0
- package/assets/components/TableRowSelect/index.ts +2 -0
- package/assets/components/TableToolbar/TableToolbar.module.css +37 -0
- package/assets/components/TableToolbar/TableToolbar.tsx +105 -0
- package/assets/components/TableToolbar/index.ts +5 -0
- package/assets/components/Tabs/Tabs.module.css +372 -0
- package/assets/components/Tabs/Tabs.tsx +517 -0
- package/assets/components/Tabs/index.ts +9 -0
- package/assets/components/TemplateBoundary/TemplateBoundary.module.css +4 -0
- package/assets/components/TemplateBoundary/TemplateBoundary.tsx +50 -0
- package/assets/components/TemplateBoundary/index.ts +3 -0
- package/assets/components/TemplateBoundary/types.ts +23 -0
- package/assets/components/Textarea/Textarea.module.css +343 -0
- package/assets/components/Textarea/Textarea.tsx +438 -0
- package/assets/components/Textarea/index.ts +7 -0
- package/assets/components/ThemeController.tsx +369 -0
- package/assets/components/TimePicker/TimePicker.module.css +112 -0
- package/assets/components/TimePicker/TimePicker.tsx +403 -0
- package/assets/components/TimePicker/index.ts +8 -0
- package/assets/components/TimePicker/utils.ts +116 -0
- package/assets/components/Toast/Toast.module.css +332 -0
- package/assets/components/Toast/Toast.tsx +310 -0
- package/assets/components/Toast/index.ts +16 -0
- package/assets/components/Toolbar/Toolbar.module.css +128 -0
- package/assets/components/Toolbar/Toolbar.tsx +186 -0
- package/assets/components/Toolbar/index.ts +7 -0
- package/assets/components/Tooltip/Tooltip.module.css +42 -0
- package/assets/components/Tooltip/Tooltip.tsx +332 -0
- package/assets/components/Tooltip/index.ts +2 -0
- package/assets/components/TopLoader/TopLoader.module.css +64 -0
- package/assets/components/TopLoader/TopLoader.tsx +58 -0
- package/assets/components/TopLoader/index.ts +2 -0
- package/assets/components/Topbar/Topbar.module.css +54 -0
- package/assets/components/Topbar/Topbar.tsx +102 -0
- package/assets/components/Topbar/index.ts +2 -0
- package/assets/components/TreeNav/TreeNav.module.css +32 -0
- package/assets/components/TreeNav/TreeNav.tsx +130 -0
- package/assets/components/TreeNav/index.ts +2 -0
- package/assets/components/UserMessage/UserMessage.module.css +47 -0
- package/assets/components/UserMessage/UserMessage.tsx +66 -0
- package/assets/components/UserMessage/index.ts +2 -0
- package/assets/components/_cn.ts +3 -0
- package/assets/components/_color.ts +75 -0
- package/assets/components/_data.ts +607 -0
- package/assets/components/_rowInteraction.ts +16 -0
- package/assets/components/_utils.css +130 -0
- package/assets/components/app-shell.css +17 -0
- package/assets/components/axisOptions.ts +15 -0
- package/assets/components/component-registry.json +914 -0
- package/assets/components/index.ts +102 -0
- package/assets/components/reset.css +77 -0
- package/assets/components/themeBootScript.ts +124 -0
- package/assets/components/tokens.css +1121 -0
- package/assets/prompts/ASSEMBLY.md +70 -0
- package/assets/prompts/CASCADE.md +49 -0
- package/assets/prompts/CATALOG.md +127 -0
- package/assets/prompts/GUIDE.md +307 -0
- package/assets/prompts/MEMORY.md +202 -0
- package/assets/prompts/OVERRIDE.md +30 -0
- package/assets/prompts/PRINCIPLES.md +114 -0
- package/assets/prompts/SLOTS.md +194 -0
- package/assets/prompts/WORKFLOW_DESIGN.md +156 -0
- package/assets/prompts/axes/density.md +42 -0
- package/assets/prompts/axes/font.md +30 -0
- package/assets/prompts/axes/icon.md +57 -0
- package/assets/prompts/axes/mode.md +52 -0
- package/assets/prompts/axes/motion.md +77 -0
- package/assets/prompts/axes/palette.md +50 -0
- package/assets/prompts/axes/shape.md +33 -0
- package/assets/prompts/axes/voice.md +57 -0
- package/assets/prompts/brand-sets/_SCHEMA.md +27 -0
- package/assets/prompts/components/README.md +84 -0
- package/assets/prompts/components/_variants.md +86 -0
- package/assets/prompts/components/accordion.md +151 -0
- package/assets/prompts/components/ai-message.md +53 -0
- package/assets/prompts/components/app-frame.md +141 -0
- package/assets/prompts/components/attachment-item.md +88 -0
- package/assets/prompts/components/attachment-thumb.md +54 -0
- package/assets/prompts/components/avatar-upload.md +62 -0
- package/assets/prompts/components/avatar.md +106 -0
- package/assets/prompts/components/badge.md +123 -0
- package/assets/prompts/components/breadcrumb.md +123 -0
- package/assets/prompts/components/bubble.md +61 -0
- package/assets/prompts/components/button-group.md +35 -0
- package/assets/prompts/components/button.md +133 -0
- package/assets/prompts/components/callout.md +98 -0
- package/assets/prompts/components/canvas-node.md +63 -0
- package/assets/prompts/components/card.md +167 -0
- package/assets/prompts/components/chat-input.md +103 -0
- package/assets/prompts/components/checkbox-card.md +72 -0
- package/assets/prompts/components/checkbox.md +98 -0
- package/assets/prompts/components/chip.md +163 -0
- package/assets/prompts/components/code-block.md +94 -0
- package/assets/prompts/components/code.md +62 -0
- package/assets/prompts/components/color-area.md +95 -0
- package/assets/prompts/components/color-field.md +108 -0
- package/assets/prompts/components/color-slider.md +108 -0
- package/assets/prompts/components/color-swatch-picker.md +96 -0
- package/assets/prompts/components/color-swatch.md +85 -0
- package/assets/prompts/components/combobox.md +35 -0
- package/assets/prompts/components/command-palette.md +193 -0
- package/assets/prompts/components/context-menu.md +150 -0
- package/assets/prompts/components/control-group.md +67 -0
- package/assets/prompts/components/data-table.md +81 -0
- package/assets/prompts/components/date-picker.md +146 -0
- package/assets/prompts/components/disclosure.md +55 -0
- package/assets/prompts/components/drawer.md +141 -0
- package/assets/prompts/components/dropdown-menu.md +165 -0
- package/assets/prompts/components/empty-state.md +74 -0
- package/assets/prompts/components/event-chip.md +81 -0
- package/assets/prompts/components/event-list-item.md +108 -0
- package/assets/prompts/components/file-icon.md +83 -0
- package/assets/prompts/components/file-upload.md +35 -0
- package/assets/prompts/components/gallery-item.md +163 -0
- package/assets/prompts/components/generated-image.md +85 -0
- package/assets/prompts/components/hint.md +94 -0
- package/assets/prompts/components/icon-button.md +99 -0
- package/assets/prompts/components/icon.md +79 -0
- package/assets/prompts/components/input.md +134 -0
- package/assets/prompts/components/kanban.md +172 -0
- package/assets/prompts/components/list-item.md +325 -0
- package/assets/prompts/components/menu-item.md +247 -0
- package/assets/prompts/components/message-actions.md +54 -0
- package/assets/prompts/components/message-quote.md +34 -0
- package/assets/prompts/components/message-sources.md +46 -0
- package/assets/prompts/components/message-state.md +61 -0
- package/assets/prompts/components/message-table.md +42 -0
- package/assets/prompts/components/metric-card.md +137 -0
- package/assets/prompts/components/modal.md +235 -0
- package/assets/prompts/components/multi-select.md +31 -0
- package/assets/prompts/components/onboarding.md +51 -0
- package/assets/prompts/components/page-header.md +161 -0
- package/assets/prompts/components/pagination.md +99 -0
- package/assets/prompts/components/progress-bar.md +75 -0
- package/assets/prompts/components/quotation-bar.md +44 -0
- package/assets/prompts/components/radio-card.md +146 -0
- package/assets/prompts/components/radio.md +56 -0
- package/assets/prompts/components/segmented-chart.md +65 -0
- package/assets/prompts/components/select.md +145 -0
- package/assets/prompts/components/shortcut.md +81 -0
- package/assets/prompts/components/sidebar.md +528 -0
- package/assets/prompts/components/slider.md +111 -0
- package/assets/prompts/components/spinner.md +124 -0
- package/assets/prompts/components/stepper.md +108 -0
- package/assets/prompts/components/switch.md +103 -0
- package/assets/prompts/components/tab-strip.md +162 -0
- package/assets/prompts/components/table-cell.md +65 -0
- package/assets/prompts/components/table-header.md +181 -0
- package/assets/prompts/components/table-row-edit.md +144 -0
- package/assets/prompts/components/table-row-select.md +90 -0
- package/assets/prompts/components/table-row.md +175 -0
- package/assets/prompts/components/table-toolbar.md +94 -0
- package/assets/prompts/components/tabs.md +134 -0
- package/assets/prompts/components/textarea.md +114 -0
- package/assets/prompts/components/time-picker.md +86 -0
- package/assets/prompts/components/toast.md +155 -0
- package/assets/prompts/components/toolbar.md +86 -0
- package/assets/prompts/components/tooltip.md +76 -0
- package/assets/prompts/components/top-loader.md +64 -0
- package/assets/prompts/components/topbar.md +177 -0
- package/assets/prompts/components/tree-nav.md +77 -0
- package/assets/prompts/components/user-message.md +50 -0
- package/assets/prompts/design-examples/README.md +57 -0
- package/assets/prompts/design-examples/catalog.json +1 -0
- package/assets/prompts/primitives/emerge.md +43 -0
- package/assets/prompts/primitives/fade.md +31 -0
- package/assets/prompts/primitives/mobile.md +53 -0
- package/assets/prompts/primitives/scale.md +32 -0
- package/assets/prompts/primitives/scroll.md +170 -0
- package/assets/prompts/primitives/slide.md +31 -0
- package/assets/prompts/recipes/README.md +104 -0
- package/assets/prompts/recipes/card-row.md +39 -0
- package/assets/prompts/recipes/form-footer.md +76 -0
- package/assets/prompts/recipes/meta-line.md +61 -0
- package/assets/prompts/recipes/page-banner.md +121 -0
- package/assets/prompts/recipes/page-header.md +107 -0
- package/assets/prompts/recipes/section-header.md +90 -0
- package/assets/prompts/templates/README.md +9 -0
- package/assets/prompts/templates/ains.md +630 -0
- package/assets/prompts/templates/aurora.md +439 -0
- package/assets/prompts/templates/glass-button.md +336 -0
- package/assets/prompts/templates/minimal.md +207 -0
- package/assets/prompts/templates/workspace.md +346 -0
- package/assets/prompts/themes/_SCHEMA.md +135 -0
- package/assets/prompts/themes/_TEMPLATE.md +73 -0
- package/assets/prompts/themes/expressive.md +118 -0
- package/assets/prompts/themes/pure.md +87 -0
- package/assets/prompts/themes/spare.md +73 -0
- package/assets/prompts/tokens/breakpoint.md +29 -0
- package/assets/prompts/tokens/color.md +103 -0
- package/assets/prompts/tokens/radius.md +33 -0
- package/assets/prompts/tokens/shadow.md +35 -0
- package/assets/prompts/tokens/spacing.md +96 -0
- package/assets/prompts/tokens/typography.md +67 -0
- package/assets/prompts/tokens/z-index.md +35 -0
- package/assets/public/expressive.png +0 -0
- package/assets/public/pure.png +0 -0
- package/assets/public/spare.png +0 -0
- package/assets/skills/ovenn/SKILL.md +12 -0
- package/assets/skills/ovenn-component/SKILL.md +12 -0
- package/assets/skills/ovenn-page/SKILL.md +12 -0
- package/assets/skills/ovenn-theme/SKILL.md +12 -0
- package/assets/skills/ovenn-validate/SKILL.md +14 -0
- package/assets/skills/ovenn-validate/fixtures/clean/Clean.module.css +12 -0
- package/assets/skills/ovenn-validate/fixtures/clean/Clean.tsx +9 -0
- package/assets/skills/ovenn-validate/scripts/lib/component-usage.js +112 -0
- package/assets/skills/ovenn-validate/scripts/lib/source-graph.js +15 -0
- package/assets/skills/ovenn-validate/scripts/lib/source-utils.mjs +25 -0
- package/assets/skills/ovenn-validate/scripts/lib/source-utils.test.mjs +52 -0
- package/assets/skills/ovenn-validate/scripts/rules/doc-sync.mjs +151 -0
- package/assets/skills/ovenn-validate/scripts/rules/doc-sync.test.mjs +91 -0
- package/assets/skills/ovenn-validate/scripts/rules/ghost-tokens.mjs +69 -0
- package/assets/skills/ovenn-validate/scripts/rules/ghost-tokens.test.mjs +52 -0
- package/assets/skills/ovenn-validate/scripts/rules/hardcoded.mjs +145 -0
- package/assets/skills/ovenn-validate/scripts/rules/hardcoded.test.mjs +83 -0
- package/assets/skills/ovenn-validate/scripts/rules/memory-rules.mjs +252 -0
- package/assets/skills/ovenn-validate/scripts/rules/memory-rules.test.mjs +131 -0
- package/assets/skills/ovenn-validate/scripts/validate.mjs +169 -0
- package/assets/skills/ovenn-wireframe/SKILL.md +12 -0
- package/bin/ovenn.js +85 -0
- package/package.json +139 -4
- package/src/commands/info.js +217 -0
- package/src/commands/init.js +386 -0
- package/src/commands/update.js +65 -0
- package/src/utils/agents.js +83 -0
- package/src/utils/assets.js +51 -0
- package/src/utils/client-bridges.js +32 -0
- package/src/utils/component-usage.js +112 -0
- package/src/utils/deps.js +59 -0
- package/src/utils/design-examples.js +101 -0
- package/src/utils/design-workflow.js +155 -0
- package/src/utils/detect.js +59 -0
- package/src/utils/diff.js +52 -0
- package/src/utils/doctor.js +47 -0
- package/src/utils/hash.js +16 -0
- package/src/utils/launch.js +94 -0
- package/src/utils/log.js +41 -0
- package/src/utils/managed-assets.js +50 -0
- package/src/utils/mcp-client.js +47 -0
- package/src/utils/meta.js +73 -0
- package/src/utils/patch.js +334 -0
- package/src/utils/prompt.js +28 -0
- package/src/utils/source-graph.js +15 -0
- package/src/utils/update-transaction.js +79 -0
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
# GalleryItem
|
|
2
|
+
|
|
3
|
+
### 원칙
|
|
4
|
+
갤러리뷰 그리드에서 썸네일을 전면에 세우고 그 아래 title·description·meta·actions를 서술하는 콘텐츠 카드. 미디어가 주인공이고 텍스트는 꼬리표. 선택 카드가 아니라 "보여주고 열어가는" 카드 — 선택 상태는 가지지 않는다. 반복 레코드를 비교·정렬해야 하면 [[components/table-row]], 숫자 하나만 전달하면 [[components/metric-card]], 옵션 중 하나를 고르는 자리면 [[components/radio-card]].
|
|
5
|
+
|
|
6
|
+
### Do
|
|
7
|
+
- **media 필수**: 썸네일이 없으면 이 컴포넌트가 아니다. 자산이 아직 없으면 placeholder라도 넣어 자리를 지킨다.
|
|
8
|
+
- **layout 선택 기준**: `vertical`은 썸네일을 전면에 세우는 **그리드 갤러리** 용(이미지 비중 ↑). `horizontal`은 썸네일 옆에 title·description·meta가 길게 서술되는 **세로 리스트** 용(텍스트 비중 ↑). 블로그 아카이브·검색 결과·세션 목록처럼 "읽는 콘텐츠"는 horizontal.
|
|
9
|
+
- **그리드로 배치(vertical)**: `display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: var(--space-4)` 가 기본 리듬. 열 수는 Density 축에 따라 자동 조절되게 min 폭만 고정.
|
|
10
|
+
- **세로 스택(horizontal)**: `display: flex; flex-direction: column; gap: var(--space-6)` 로 쌓는다. 카드끼리 붙지 않도록 gap 최소 `space-6`.
|
|
11
|
+
- **aspect 통일**: 한 리스트/그리드 안의 카드는 전부 같은 `aspect`. 16/9 가로형이 기본, 세로 포스터형 콘텐츠(책/영상 커버)만 3/4.
|
|
12
|
+
- **actionPosition 선택 기준**: 호버 전 보여야 하는 상시 액션(공개·북마크 토글 등)이면 `overlay`, 카드 전체가 링크일 때 보조 액션(⋯ 메뉴)이면 `footer`. 둘 다 쓰면 overlay/footer 중 하나로만 통일.
|
|
13
|
+
- **meta는 muted 한 줄**: [[components/badge]](카테고리·상태 라벨) + inline 날짜/카운트 텍스트 조합. 두 줄이 되면 description으로 승격.
|
|
14
|
+
- **href 또는 onClick이 있을 때만 hover elevation 활성**: 정적 카드는 떠오르지 않는다. elevation은 썸네일에만 적용 — body에는 그림자/톤 변화 없음.
|
|
15
|
+
|
|
16
|
+
### Don't
|
|
17
|
+
- **meta에 [[components/chip]] 사용 금지**. Chip은 검색 필터·다중 선택 전용(사용자가 제거하는 값). 카드 카테고리·태그 라벨은 전부 Badge (`variant="soft"`).
|
|
18
|
+
- **meta 토큰 사이 가운뎃점(`·`·`•`·`|`) 금지**. 저자·날짜·좋아요·댓글 등을 나열할 때 구분자는 짧고 연한 세로 hairline. 가운뎃점은 글자처럼 읽혀 라인에 시각 노이즈를 더함. 전역 룰.
|
|
19
|
+
- 카드 전체에 테두리·배경 chrome 추가 금지. 썸네일 radius 외의 경계는 두지 않는다. 분위기 있는 그리드가 필요해도 카드 chrome이 아니라 **그리드 간격·행 구분**으로 해결.
|
|
20
|
+
- 선택 상태(selected·checked) 흉내 금지 — border accent나 ring 승격 금지. 선택이 필요하면 다른 카드.
|
|
21
|
+
- media 위에 title/description 글자 overlay 금지. 글자가 사진 위에 겹치는 레이아웃은 썸네일 가독성과 축 스왑을 둘 다 깬다. overlay 슬롯은 액션 전용.
|
|
22
|
+
- actions에 full-width Button 금지. IconButton 또는 Button(`size="sm"`, `variant="ghost|outline"`)만. actions가 primary CTA가 되는 순간 이건 카드가 아니라 다른 컴포넌트.
|
|
23
|
+
- aspect 값 바깥의 임의 `aspect-ratio` inline 금지. 네 값(`16/9`·`4/3`·`1/1`·`3/4`) 외가 필요하면 그리드 설계가 틀렸을 가능성.
|
|
24
|
+
|
|
25
|
+
### Fallback
|
|
26
|
+
- `layout` 미지정 시 `vertical`.
|
|
27
|
+
- `aspect` 미지정 시 `16/9`.
|
|
28
|
+
- `actionPosition` 미지정 시 `footer`.
|
|
29
|
+
- `href`/`onClick`이 둘 다 없으면 hover elevation 비활성 — 정적 카드.
|
|
30
|
+
|
|
31
|
+
### 관련
|
|
32
|
+
- [[components/radio-card]] — 선택이 화면 주 액션인 카드. GalleryItem은 선택 상태 없음.
|
|
33
|
+
- [[components/checkbox-card]] — 폼 안 옵션 리스트형 선택 카드.
|
|
34
|
+
- [[components/metric-card]] — 숫자 하나 전달. 미디어 없음.
|
|
35
|
+
- [[components/table-row]] — 반복 레코드 비교·정렬이 필요하면 테이블.
|
|
36
|
+
- [[components/empty-state]] — 그리드가 비었을 때. GalleryItem 그리드 안이 아니라 영역 전체를 대체.
|
|
37
|
+
- [[tokens/radius]] — 썸네일에 `radius-md` 토큰.
|
|
38
|
+
- [[axes/density]] — 그리드 열 수가 density 따라 자동 변동.
|
|
39
|
+
|
|
40
|
+
### Props 시그니처
|
|
41
|
+
```tsx
|
|
42
|
+
<GalleryItem
|
|
43
|
+
media={ReactNode} // required — 썸네일 슬롯 (img/video/svg)
|
|
44
|
+
layout="vertical | horizontal" // default: vertical
|
|
45
|
+
aspect="16/9 | 4/3 | 1/1 | 3/4" // default: 16/9
|
|
46
|
+
title={ReactNode} // required
|
|
47
|
+
description={ReactNode}
|
|
48
|
+
meta={ReactNode} // Badge·날짜 자유 조합. muted
|
|
49
|
+
actions={ReactNode} // IconButton 또는 Button sm ghost/outline
|
|
50
|
+
actionPosition="footer | overlay" // default: footer
|
|
51
|
+
href={string} // 있으면 <a>로 렌더. hover elevation 활성
|
|
52
|
+
disabled={boolean}
|
|
53
|
+
/>
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### Variant 매트릭스
|
|
57
|
+
|
|
58
|
+
**layout × 전형 용례**
|
|
59
|
+
|
|
60
|
+
| layout | 전형 | 썸네일 폭 | title 크기 |
|
|
61
|
+
|---|---|---|---|
|
|
62
|
+
| `vertical` | 그리드 갤러리, 포스터·블로그 커버 | 100% | `text-sm` |
|
|
63
|
+
| `horizontal` | 세로 리스트, 블로그 아카이브, 검색 결과 | 고정(~16rem) | `text-lg` |
|
|
64
|
+
|
|
65
|
+
**aspect × 콘텐츠 성격**
|
|
66
|
+
|
|
67
|
+
| aspect | 전형 콘텐츠 |
|
|
68
|
+
|---|---|
|
|
69
|
+
| `16/9` | 영상 썸네일, 블로그 커버, 와이드 스크린샷 (기본) |
|
|
70
|
+
| `4/3` | 제품 사진, 일반 이미지 |
|
|
71
|
+
| `1/1` | 아바타형·앨범 커버·프로덕트 그리드 |
|
|
72
|
+
| `3/4` | 책/영화 포스터, 세로 모바일 캡처 |
|
|
73
|
+
|
|
74
|
+
**금지 조합**
|
|
75
|
+
- `layout="horizontal"` + `aspect="3/4"` — 세로 포스터가 왼쪽에 길쭉하게 서면 리스트 높이가 들쭉날쭉해지고 title row 정렬이 깨짐. horizontal에서는 가로형(`16/9` · `4/3`)만.
|
|
76
|
+
- `layout="horizontal"` + 그리드 배치 — horizontal은 세로 스택 전용. 그리드로 쌓으면 각 셀 내부가 좁아져 media 고정 폭이 body를 밀어버림.
|
|
77
|
+
- `actionPosition="overlay"` + 반투명 overlay 배경 추가 — media 위에 글자 겹치는 레이아웃 유도. overlay는 액션 아이콘 자체만.
|
|
78
|
+
- `aspect="1/1"` + title 3줄 이상 — 정사각 카드에 긴 텍스트는 밸런스 깨짐. 1줄 title이면 1/1, 2줄까지면 4/3 이상.
|
|
79
|
+
|
|
80
|
+
### 조합 예시
|
|
81
|
+
|
|
82
|
+
```tsx
|
|
83
|
+
// 블로그/뉴스 — 와이드 썸네일 + 메타 + ⋯ 메뉴
|
|
84
|
+
<section
|
|
85
|
+
style={{
|
|
86
|
+
display: "grid",
|
|
87
|
+
gridTemplateColumns: "repeat(auto-fill, minmax(16rem, 1fr))",
|
|
88
|
+
gap: "var(--space-4)",
|
|
89
|
+
}}
|
|
90
|
+
>
|
|
91
|
+
{posts.map((p) => (
|
|
92
|
+
<GalleryItem
|
|
93
|
+
key={p.id}
|
|
94
|
+
href={`/posts/${p.id}`}
|
|
95
|
+
media={<img src={p.thumb} alt="" />}
|
|
96
|
+
aspect="16/9"
|
|
97
|
+
title={p.title}
|
|
98
|
+
description={p.excerpt}
|
|
99
|
+
meta={
|
|
100
|
+
<>
|
|
101
|
+
<Badge variant="soft">{p.category}</Badge>
|
|
102
|
+
<span>{p.date}</span>
|
|
103
|
+
</>
|
|
104
|
+
}
|
|
105
|
+
actions={
|
|
106
|
+
<IconButton
|
|
107
|
+
size="sm"
|
|
108
|
+
variant="ghost"
|
|
109
|
+
icon={<Icon name="dots-three" />}
|
|
110
|
+
aria-label="더보기"
|
|
111
|
+
onClick={(e) => { e.preventDefault(); openMenu(p.id); }}
|
|
112
|
+
/>
|
|
113
|
+
}
|
|
114
|
+
/>
|
|
115
|
+
))}
|
|
116
|
+
</section>
|
|
117
|
+
|
|
118
|
+
// 포스터 그리드 — 세로형 + overlay 저장 토글
|
|
119
|
+
<GalleryItem
|
|
120
|
+
href={`/movies/${m.id}`}
|
|
121
|
+
media={<img src={m.poster} alt="" />}
|
|
122
|
+
aspect="3/4"
|
|
123
|
+
title={m.title}
|
|
124
|
+
meta={<Badge variant="soft" status="info">{m.year}</Badge>}
|
|
125
|
+
actionPosition="overlay"
|
|
126
|
+
actions={
|
|
127
|
+
<IconButton
|
|
128
|
+
size="sm"
|
|
129
|
+
variant="ghost"
|
|
130
|
+
icon={<Icon name="star" />}
|
|
131
|
+
aria-label="저장"
|
|
132
|
+
/>
|
|
133
|
+
}
|
|
134
|
+
/>
|
|
135
|
+
|
|
136
|
+
// 블로그 아카이브 — horizontal 리스트
|
|
137
|
+
<section style={{ display: "flex", flexDirection: "column", gap: "var(--space-6)" }}>
|
|
138
|
+
{posts.map((p) => (
|
|
139
|
+
<GalleryItem
|
|
140
|
+
key={p.id}
|
|
141
|
+
href={`/posts/${p.id}`}
|
|
142
|
+
layout="horizontal"
|
|
143
|
+
media={<img src={p.thumb} alt="" />}
|
|
144
|
+
title={p.title}
|
|
145
|
+
description={p.excerpt}
|
|
146
|
+
meta={
|
|
147
|
+
<>
|
|
148
|
+
<span>{p.author}</span>
|
|
149
|
+
<span className={styles.sep} aria-hidden />
|
|
150
|
+
<span>{p.date}</span>
|
|
151
|
+
<span className={styles.sep} aria-hidden />
|
|
152
|
+
<span>♥ {p.likes}</span>
|
|
153
|
+
</>
|
|
154
|
+
}
|
|
155
|
+
/>
|
|
156
|
+
))}
|
|
157
|
+
</section>
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
<!-- component-contract -->
|
|
161
|
+
```json
|
|
162
|
+
{"roles":["gallery-item"],"native":[],"hints":[],"requires":[]}
|
|
163
|
+
```
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
# GeneratedImage
|
|
2
|
+
|
|
3
|
+
### 원칙
|
|
4
|
+
AI가 생성한 **이미지 결과물의 큰 표시 자리**. 세 상태(loading / placeholder / image)가 같은 프레임 안에서 바뀐다. `aspect` 축으로 비율만 바꾸고 폭은 상위 그리드가 담당 — 자체적으로 크기를 들고 다니지 않는다. loading 상태는 image-gen 전용 lottie(sparkle breathe)로 "생성 중"을 전달하고, 플레이스홀더 배경이 이미 들어가 있어 깜빡임 없이 전환된다.
|
|
5
|
+
|
|
6
|
+
### Do
|
|
7
|
+
- 폭은 상위 그리드/부모가 결정. GeneratedImage는 `aspect`로 비율만 선언.
|
|
8
|
+
- 생성 중이면 `loading` prop, 결과가 없을 뿐이면 `loading` 생략(= placeholder만 노출).
|
|
9
|
+
- 다운로드 버튼이 필요하면 `onDownload`를 넘긴다. hover·focus-visible일 때만 노출되고, loading·placeholder 상태에서는 자동으로 숨겨진다.
|
|
10
|
+
- 결과물 레퍼런스는 세로 비율이 많아 기본값 `portrait`(3/4) 그대로 쓰기를 권장.
|
|
11
|
+
|
|
12
|
+
### Don't
|
|
13
|
+
- 폭을 CSS로 override 금지. 비율은 `aspect`가, 폭은 부모 레이아웃이 책임.
|
|
14
|
+
- `loading=true`일 때 `src`에 결과물을 미리 넣어두는 식의 선행 로딩 금지 — 상태가 꼬인다.
|
|
15
|
+
- 자체 border·bg 덮어쓰기 금지. `--bg-subtle`/`--bg-muted` 토큰이 상태를 신호한다.
|
|
16
|
+
- 다운로드 버튼 자리에 다른 액션(공유·삭제 등) 추가 금지. 이 자리는 "저장" 전용. 액션이 더 필요하면 외부 Toolbar/MessageActions로 뺀다.
|
|
17
|
+
- 결과물 위에 라벨·캡션 overlay 올리지 않는다. 캡션은 바깥 블록으로 분리.
|
|
18
|
+
|
|
19
|
+
### Fallback
|
|
20
|
+
비율 애매하면 `portrait`, 상태 애매하면 `loading` 생략(= placeholder). onDownload는 "저장이 UX의 핵심일 때만" 공급.
|
|
21
|
+
|
|
22
|
+
### 관련
|
|
23
|
+
- [[components/spinner]] — loading 상태에서 `variant="lottie-image-gen"` size `lg`로 내장.
|
|
24
|
+
- [[components/tooltip]] — 다운로드 버튼의 "다운로드" 레이블.
|
|
25
|
+
- [[components/ai-message]] — 어시스턴트 메시지 안 결과물 자리에서 자주 쌍으로 조립.
|
|
26
|
+
- [[components/attachment-thumb]] — 사용자가 올린 참조 이미지 썸네일(작은 자리). 생성 결과 큰 자리는 GeneratedImage.
|
|
27
|
+
- [[components/gallery-item]] — 여러 결과를 그리드로 늘어놓을 때 셀 안쪽 미디어 자리.
|
|
28
|
+
|
|
29
|
+
### Props 시그니처
|
|
30
|
+
```tsx
|
|
31
|
+
<GeneratedImage
|
|
32
|
+
src={string} // 결과 이미지 URL (없거나 loading이면 placeholder)
|
|
33
|
+
alt={string} // 접근성 대체 텍스트
|
|
34
|
+
aspect="square | portrait | landscape" // default: portrait (3/4)
|
|
35
|
+
loading={boolean} // 생성 중 — placeholder + sparkle breathe
|
|
36
|
+
onDownload={(e) => void} // 지정 시만 우상단 다운로드 버튼 노출
|
|
37
|
+
/>
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
### Aspect 가이드
|
|
41
|
+
| aspect | 비율 | 쓰임 |
|
|
42
|
+
|---|---|---|
|
|
43
|
+
| `portrait` | 3/4 | **기본**. 레퍼런스/캐릭터/인물 중심 결과물. |
|
|
44
|
+
| `square` | 1/1 | 아이콘·썸네일·SNS 포맷 결과물. |
|
|
45
|
+
| `landscape` | 4/3 | 배경·풍경·와이드 포스터 결과물. |
|
|
46
|
+
|
|
47
|
+
### 상태 전환
|
|
48
|
+
1. 초기: `src` 없음, `loading` 없음 → **placeholder** (배경 이미지 + 조용히 대기)
|
|
49
|
+
2. 생성 시작: `loading=true` → **loading** (같은 배경 + image-gen lottie 중앙 중첩)
|
|
50
|
+
3. 결과 수신: `loading=false`, `src=<url>` → **image** (cover로 가득 채움)
|
|
51
|
+
4. 다운로드: `onDownload` 공급 시, image 상태에서만 우상단 버튼 hover 노출
|
|
52
|
+
|
|
53
|
+
전환 사이에 레이아웃 shift가 없다 — 세 상태 모두 동일한 `aspect-ratio` 프레임 안에서 바뀌므로 상위 그리드가 흔들리지 않는다.
|
|
54
|
+
|
|
55
|
+
### 조합 예시
|
|
56
|
+
```tsx
|
|
57
|
+
// 기본 — AI 메시지 안 결과물
|
|
58
|
+
<GeneratedImage
|
|
59
|
+
src={result.url}
|
|
60
|
+
alt={result.prompt}
|
|
61
|
+
onDownload={() => downloadImage(result.url)}
|
|
62
|
+
/>
|
|
63
|
+
|
|
64
|
+
// 생성 중
|
|
65
|
+
<GeneratedImage loading alt="생성 중" />
|
|
66
|
+
|
|
67
|
+
// 와이드 포맷 결과
|
|
68
|
+
<GeneratedImage
|
|
69
|
+
src={banner.url}
|
|
70
|
+
alt={banner.prompt}
|
|
71
|
+
aspect="landscape"
|
|
72
|
+
onDownload={() => downloadImage(banner.url)}
|
|
73
|
+
/>
|
|
74
|
+
|
|
75
|
+
// AIMessage 안쪽에서 쌍으로
|
|
76
|
+
<AIMessage>
|
|
77
|
+
<AIMessage.Body>원하신 레퍼런스예요.</AIMessage.Body>
|
|
78
|
+
<GeneratedImage src={url} alt={prompt} onDownload={handleSave} />
|
|
79
|
+
</AIMessage>
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
<!-- component-contract -->
|
|
83
|
+
```json
|
|
84
|
+
{"roles":["generated-image"],"native":[],"hints":[],"requires":["ThemeController"]}
|
|
85
|
+
```
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
# Hint
|
|
2
|
+
|
|
3
|
+
### 원칙
|
|
4
|
+
흐름 속에 스며드는 **참고 한 줄~두 줄**. 아이콘 하나와 muted 텍스트로만 구성된 가장 가벼운 안내. 페이지 폭을 차지하지 않고, 자리의 성격은 "이 자리에서 알아야 할 것"의 각주 — [[components/callout]]처럼 액션으로 유도하지 않고, [[recipes/page-banner]]처럼 상태를 외치지 않는다.
|
|
5
|
+
|
|
6
|
+
**아이콘 + 텍스트 조합의 모든 안내는 반드시 이 컴포넌트 경유.** 와이어프레임·페이지에 `<Icon /> + <span>`을 수제로 조립해서 "ℹ️ 어쩌구" 한 줄을 만드는 패턴 영구 금지 — Hint 하나로 통일한다. 수제 조립은 size·color·vertical-align·둘째 줄 들여쓰기가 매번 어긋나서 리듬이 깨지는 반복 함정이다 ([[feedback_no_hand_rolled_components]], [[feedback_local_derivative_over_handrolled]]).
|
|
7
|
+
|
|
8
|
+
### Do
|
|
9
|
+
- **아이콘 + 텍스트 한 줄짜리 안내는 전부 Hint**. 폼 helper, 섹션 각주, 리스트 하단 주석 등.
|
|
10
|
+
- 아이콘은 **1개 고정**, 자유롭게 선택 (`info` `question` `brackets-square` `clock` `shield-check` 등 상황에 맞게).
|
|
11
|
+
- 텍스트는 1~2줄. 두 줄 넘어가면 둘째 줄은 아이콘 폭만큼 자동 들여쓰기 (hanging indent — 컴포넌트가 처리).
|
|
12
|
+
- **줄 바꿈이 애매하면 저자가 호흡 단위로 끊어준다.** 긴 문장이 어중간한 자리에서 자동 줄 바꿈되면 리듬이 깨짐. 문장이 두 호흡으로 나뉘면 `.` 바로 뒤에서 사람이 `\n`을 넣어 **문장 단위로** 끊어라 (JSX에서는 중괄호 안 템플릿 리터럴 또는 두 `<Hint>` 분리). 자동 줄 바꿈에 맡기면 "···하고 승인한 / 뒤 실행을" 같은 어색한 지점에서 꺾인다.
|
|
13
|
+
- 색은 **neutral이 기본**. 톤 신호가 꼭 필요할 때만 brand/success/warning/destructive — 아이콘 색만 바뀌고 텍스트는 muted 유지 ([[components/callout]]보다 조용).
|
|
14
|
+
- 아이콘 수직 정렬은 **첫 줄 캡 하이트 중앙** — flex align-items 트릭 대신 `vertical-align: text-bottom`으로 line box 안에 흘려넣기 (내부 구현 책임).
|
|
15
|
+
|
|
16
|
+
### Don't
|
|
17
|
+
- [HARD] **아이콘 + 텍스트를 수제 조립 금지** — `<span><Icon/> …</span>`, `<div className="hint"><Icon/>…</div>` 전부 금지. 반드시 `<Hint>` 사용.
|
|
18
|
+
- [HARD] 액션 버튼을 넣지 않는다 — 액션이 필요하면 [[components/callout]].
|
|
19
|
+
- Hint는 **배경·테두리 둘 다 없음**이 기본이다. scoped skin으로 표면을 더하면 [[PRINCIPLES]] §5b의 미세한 색 차이 기준을 따른다.
|
|
20
|
+
- [HARD] 톤 신호를 띠는 **배경**은 금지 — 톤이 필요하면 아이콘 색만 (`tone="warning"`). 배경까지 가야 하면 [[components/callout]].
|
|
21
|
+
- [SOFT] 3줄 이상 텍스트 금지 — 길어지면 섹션 자체가 "안내 블록"이 돼야 함. Hint는 각주 성격 유지.
|
|
22
|
+
- [SOFT] 리스트·강조 같은 서식 금지. 평문만.
|
|
23
|
+
- [SOFT] 폼 필드 helper text는 [[components/form-field]]의 자체 helper를 쓴다. Hint는 **폼 밖, 섹션 안 설명** 전용.
|
|
24
|
+
|
|
25
|
+
### Fallback
|
|
26
|
+
아이콘이 애매하면 `info`. 질문·도움말이면 `question`, 코드·기술 설명이면 `brackets-square`.
|
|
27
|
+
|
|
28
|
+
### 관련
|
|
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
|
+
|
|
35
|
+
### Props 시그니처
|
|
36
|
+
```tsx
|
|
37
|
+
<Hint
|
|
38
|
+
icon={IconName} // default: "info" — 자유롭게
|
|
39
|
+
size="sm | md" // default: "sm"
|
|
40
|
+
tone="neutral | brand | success | warning | destructive" // default: "neutral"
|
|
41
|
+
>{children}</Hint>
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
### Variant 매트릭스
|
|
45
|
+
tone은 **아이콘 색만** 스왑. 텍스트는 전 톤에서 fg-muted 고정 — Callout보다 조용한 성격을 유지한다.
|
|
46
|
+
|
|
47
|
+
| tone | 아이콘 색 | 자리 |
|
|
48
|
+
|---|---|---|
|
|
49
|
+
| `neutral` | `fg-muted` | 기본. 그냥 각주. |
|
|
50
|
+
| `brand` | `primary` | 자리의 핵심 기능을 가리키는 각주. |
|
|
51
|
+
| `success` | `success` | 완료·안전 상태 각주. |
|
|
52
|
+
| `warning` | `warning` | 주의 각주 (배경 띠까지 가면 Callout). |
|
|
53
|
+
| `destructive` | `destructive` | 되돌릴 수 없는 결과 각주. |
|
|
54
|
+
|
|
55
|
+
### Size 가이드
|
|
56
|
+
| size | font-size | line-height | icon size | 자리 |
|
|
57
|
+
|---|---|---|---|---|
|
|
58
|
+
| `sm` | `--text-sm` | 1.6 | 16 | 섹션 안 각주 (기본) |
|
|
59
|
+
| `md` | `--text-base` | 1.6 | 20 | 페이지 폭 참고 블록 |
|
|
60
|
+
|
|
61
|
+
### 조합 예시
|
|
62
|
+
```tsx
|
|
63
|
+
// 기본 각주
|
|
64
|
+
<Hint>최근 30일 활동만 표시됩니다.</Hint>
|
|
65
|
+
|
|
66
|
+
// 아이콘 자유 선택
|
|
67
|
+
<Hint icon="clock">업로드한 파일은 24시간 동안 임시 저장소에 남아 있습니다.</Hint>
|
|
68
|
+
|
|
69
|
+
// 긴 설명 — 저자가 문장 단위로 호흡을 끊어줌 (자동 줄 바꿈 금지)
|
|
70
|
+
<Hint icon="brackets-square">
|
|
71
|
+
{`문서 등록은 추출과 정리까지 자동 처리합니다.
|
|
72
|
+
AI 작업 계획을 요청하고 승인한 뒤 실행을 요청하면, 연결된 실행기가 코드 변경안과 테스트 결과를 작성합니다.`}
|
|
73
|
+
</Hint>
|
|
74
|
+
|
|
75
|
+
// 톤 신호 — 아이콘 색만
|
|
76
|
+
<Hint icon="shield-check" tone="success">
|
|
77
|
+
2단계 인증이 활성화되어 있습니다.
|
|
78
|
+
</Hint>
|
|
79
|
+
|
|
80
|
+
<Hint icon="warning" tone="warning">
|
|
81
|
+
이 작업은 되돌릴 수 없습니다.
|
|
82
|
+
</Hint>
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
### 구현 노트 (벤더 코드에만 적용)
|
|
86
|
+
- 아이콘 수직 정렬은 **`display: inline-flex` + `vertical-align: text-bottom`** 조합으로 line box 안에 자동 정렬. flex `align-items` + `margin-top` 보정 조합은 **금지** (line-height 바뀔 때마다 어긋남).
|
|
87
|
+
- 둘째 줄 들여쓰기는 **hanging indent** 패턴: `padding-inline-start: icon + gap` + `text-indent: -(icon + gap)`.
|
|
88
|
+
- line-height는 `1.6` 고정 (muted 다줄 가독성).
|
|
89
|
+
- tone은 `--hint-accent` CSS 변수 하나만 스왑 — `--hint-fg`는 전 톤에서 `--fg-muted` 유지.
|
|
90
|
+
|
|
91
|
+
<!-- component-contract -->
|
|
92
|
+
```json
|
|
93
|
+
{"roles":["hint"],"native":[],"hints":[],"requires":[]}
|
|
94
|
+
```
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
# IconButton
|
|
2
|
+
|
|
3
|
+
### 원칙
|
|
4
|
+
아이콘만 있는 버튼. 툴바, 테이블 행 액션, 플로팅 액션, Input의 trailing 등 좁은 자리의 액션 전용. [[components/button]]과 사이즈가 **1:1 매칭**(sm=32 / md=36 / lg=40)이라 같은 자리에 섞어 써도 세로 중심이 어긋나지 않음. `aria-label` 필수.
|
|
5
|
+
|
|
6
|
+
### Do
|
|
7
|
+
- 기본 ghost 아이콘은 `fg-muted`로 표시해 밝은 배경에서도 식별 대비를 확보한다. motion=none에서는 눌림 확대·축소를 적용하지 않는다.
|
|
8
|
+
- `aria-label` 반드시 지정. 아이콘은 글자가 아님.
|
|
9
|
+
- 툴바·테이블 행 action: `size="md"` + `variant="ghost"`가 표준.
|
|
10
|
+
- 플로팅 액션: `size="lg"` + `variant="secondary"`.
|
|
11
|
+
- `trailingIcon`을 넣으면 자동 **dual 모드**(정사각 → 가로형 2-슬롯). caret-down 등 보조 아이콘 자리.
|
|
12
|
+
- `asChild`로 `<a>` 또는 Next `<Link>` 위임 가능 (이땐 아이콘·trailingIcon은 자식이 담당).
|
|
13
|
+
|
|
14
|
+
### Don't
|
|
15
|
+
- 라벨이 필요하면 쓰지 않는다 — [[components/button]] icon-only 모드로.
|
|
16
|
+
- `xs(24)`는 테이블 셀처럼 극한 밀도 자리 전용. 쓸 때도 `variant="ghost"`로 (Button xs와 같은 룰).
|
|
17
|
+
- aria-label 생략 금지. 아이콘 의미가 자명해도 스크린리더엔 안 보임.
|
|
18
|
+
- 색을 variant로 override하지 않는다 — destructive 외의 상태색은 Badge/Callout 쪽.
|
|
19
|
+
|
|
20
|
+
### Fallback
|
|
21
|
+
size 애매하면 `md`, variant 애매하면 `ghost`.
|
|
22
|
+
|
|
23
|
+
### 관련
|
|
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
|
+
|
|
31
|
+
### Props 시그니처
|
|
32
|
+
```tsx
|
|
33
|
+
<IconButton
|
|
34
|
+
icon={<Icon name="..." />} // asChild=true면 무시
|
|
35
|
+
trailingIcon={<Icon name="caret-down" />} // 있으면 dual 모드
|
|
36
|
+
size="xs | sm | md | lg" // default: md (Button md와 동일 36px)
|
|
37
|
+
variant="secondary | outline | ghost | destructive" // default: ghost
|
|
38
|
+
asChild={boolean} // Radix Slot — <a>/<Link> 위임
|
|
39
|
+
aria-label="필수"
|
|
40
|
+
disabled={boolean}
|
|
41
|
+
onClick={(e) => void}
|
|
42
|
+
/>
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### Size 가이드 (Button과 1:1)
|
|
46
|
+
| size | 높이 | 아이콘 | 쓰임 |
|
|
47
|
+
|---|---|---|---|
|
|
48
|
+
| `xs` | 24 | 12 | 테이블 셀·극한 밀도. **ghost만**. 거의 안 씀 |
|
|
49
|
+
| `sm` | 32 | 16 | 밀도 있는 툴바·인라인 |
|
|
50
|
+
| `md` | 36 | 20 | **기본** — 툴바·테이블 행·Input trailing |
|
|
51
|
+
| `lg` | 40 | 20 | 플로팅 액션·주 액션 |
|
|
52
|
+
|
|
53
|
+
### Variant 매트릭스
|
|
54
|
+
| variant | 시각 | 쓰임 |
|
|
55
|
+
|---|---|---|
|
|
56
|
+
| `secondary` | primary 8% 배경 + primary 아이콘 | 강조가 필요한 플로팅 |
|
|
57
|
+
| `outline` | 투명 배경 + border | 툴바 그룹의 그룹핑 |
|
|
58
|
+
| `ghost` | 완전 투명, hover만 반응 | **기본** — 밀도 자리 |
|
|
59
|
+
| `destructive` | 평상시 ghost, hover 시 destructive 톤 | 삭제·제거 |
|
|
60
|
+
|
|
61
|
+
### 조합 예시
|
|
62
|
+
```tsx
|
|
63
|
+
// 툴바 — ghost md 나열
|
|
64
|
+
<Toolbar>
|
|
65
|
+
<IconButton icon={<Icon name="pencil-simple" />} aria-label="수정" />
|
|
66
|
+
<IconButton icon={<Icon name="copy" />} aria-label="복제" />
|
|
67
|
+
<IconButton icon={<Icon name="trash" />} aria-label="삭제" variant="destructive" />
|
|
68
|
+
</Toolbar>
|
|
69
|
+
|
|
70
|
+
// Dual 모드 — 드롭다운 트리거
|
|
71
|
+
<IconButton
|
|
72
|
+
icon={<Icon name="user" />}
|
|
73
|
+
trailingIcon={<Icon name="caret-down" />}
|
|
74
|
+
aria-label="사용자 메뉴"
|
|
75
|
+
variant="outline"
|
|
76
|
+
/>
|
|
77
|
+
|
|
78
|
+
// asChild — Next Link 위임
|
|
79
|
+
<IconButton asChild size="md" variant="ghost" aria-label="깃허브">
|
|
80
|
+
<a href="https://github.com/..." target="_blank" rel="noreferrer">
|
|
81
|
+
<Icon name="github-logo" />
|
|
82
|
+
</a>
|
|
83
|
+
</IconButton>
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
### data-slot
|
|
87
|
+
|
|
88
|
+
[[SLOTS]] 참고.
|
|
89
|
+
|
|
90
|
+
- `icon-button-root` — `<button>` 또는 asChild 자식 자체
|
|
91
|
+
|
|
92
|
+
### state attributes
|
|
93
|
+
|
|
94
|
+
- `data-dual="true"` — trailingIcon 있을 때 (정사각 → 가로형 dual 자동 전환)
|
|
95
|
+
|
|
96
|
+
<!-- component-contract -->
|
|
97
|
+
```json
|
|
98
|
+
{"roles":["icon-button"],"native":[],"hints":[],"requires":[]}
|
|
99
|
+
```
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
# Icon
|
|
2
|
+
|
|
3
|
+
### 원칙
|
|
4
|
+
의미 기반 아이콘 렌더러. `name`으로 **의미 슬롯**을 지정하고, 실제 SVG는 [[axes/icon]]의 Family(phosphor/solar/lucide)가 결정. **한 페이지 = 한 Family** 원칙. family는 `<html data-icon-family>` 축에서 자동 상속. Weight(regular/fill)는 축이 아니라 prop — phosphor·solar만 실제 반응, lucide는 regular 고정.
|
|
5
|
+
|
|
6
|
+
### Do
|
|
7
|
+
- 항상 `name`으로 의미 지정: `<Icon name="check" />`.
|
|
8
|
+
- 라벨 없는 아이콘 쓰임엔 반드시 `aria-label` 또는 Tooltip (sender 쪽에서).
|
|
9
|
+
- `size`는 number(px). 컴포넌트 안에서 자동 상속되므로 대부분 지정 안 함.
|
|
10
|
+
- 활성/선택 상태 표시엔 `weight="fill"` (phosphor/solar만).
|
|
11
|
+
- 축 override가 필요한 특수 자리(브랜드 로고 아이콘 등)에만 `family` prop.
|
|
12
|
+
|
|
13
|
+
### Don't
|
|
14
|
+
- 인라인 `<svg>` 로 아이콘 그리지 않는다 — 반드시 Icon 컴포넌트. 브랜드 로고·Tooltip tail은 예외.
|
|
15
|
+
- `name`에 Icon.tsx 유니온 밖 문자열 금지 — 유령 아이콘은 **family별 placeholder 사각형**으로 렌더됨 (설계된 폴백).
|
|
16
|
+
- 한 페이지에서 여러 family 섞지 않는다. 축 override를 과용하면 Ovenn 지문이 깨짐.
|
|
17
|
+
- Lucide에서 `weight="fill"` 요구 금지 — 원본이 fill 미제공, regular로 폴백.
|
|
18
|
+
- 아이콘 크기를 CSS로 override 금지. `size` prop 또는 컨테이너의 `--icon-size-*` 토큰 경유.
|
|
19
|
+
|
|
20
|
+
### Fallback
|
|
21
|
+
family는 축 상속(기본 `phosphor`), weight는 축 상속(기본 `regular`), size 애매하면 `20`.
|
|
22
|
+
|
|
23
|
+
### 관련
|
|
24
|
+
- [[axes/icon]] — Family 축 (data-icon-family). Weight는 축 아님.
|
|
25
|
+
- [[components/icon-button]] · [[components/button]] — 아이콘 담는 가장 흔한 자리
|
|
26
|
+
- [[components/menu-item]] · [[components/badge]] · [[components/chip]] — leadingActions/leftIcon 자리
|
|
27
|
+
- [[tokens/color]] — `--icon-color`가 Palette 축에 반응
|
|
28
|
+
|
|
29
|
+
### Props 시그니처
|
|
30
|
+
```tsx
|
|
31
|
+
<Icon
|
|
32
|
+
name={IconName} // Icon.tsx 유니온 (phosphor + solar + lucide 합집합)
|
|
33
|
+
family="phosphor | solar | lucide" // default: 축 상속
|
|
34
|
+
weight="regular | fill" // default: 축 상속 (phosphor/solar만 반응)
|
|
35
|
+
size={number | string} // default: 20
|
|
36
|
+
// 그 외 SVG attributes 전부 통과
|
|
37
|
+
/>
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
### Family별 지원
|
|
41
|
+
| Family | Weight 반응 | 스타일 특징 | 쓰임 |
|
|
42
|
+
|---|---|---|---|
|
|
43
|
+
| `phosphor` | regular / fill | 다재다능, 모던, 선·면 균형 | **기본** |
|
|
44
|
+
| `solar` | Linear(regular) / Bold(fill) | 두꺼운 선·단단한 느낌 | 모바일·터치 |
|
|
45
|
+
| `lucide` | regular만 (fill 요청 시 regular) | 얇은 Feather 계승, 미니멀 | 미니멀·docs |
|
|
46
|
+
|
|
47
|
+
### 사용 가능한 name
|
|
48
|
+
|
|
49
|
+
228개. kebab-case 유니온이며 이 밖의 문자열은 placeholder 사각형으로 렌더된다. 축이 solar/lucide일 때는 매핑된 자리에만 실제 아이콘이 뜨고 미매핑 자리는 placeholder.
|
|
50
|
+
|
|
51
|
+
`airplane`, `align-bottom`, `align-center-horizontal`, `align-center-vertical`, `align-left`, `align-right`, `align-top`, `arrow-clockwise`, `arrow-counter-clockwise`, `arrow-down`, `arrow-left`, `arrow-right`, `arrow-square-out`, `arrow-up`, `arrows-clockwise`, `arrows-in`, `arrows-left-right`, `arrows-out`, `arrows-vertical`, `article`, `at`, `bell`, `bicycle`, `bookmark`, `brackets-square`, `broadcast`, `buildings`, `calendar`, `calendar-blank`, `calendar-dots`, `camera`, `car`, `cards`, `caret-circle-down`, `caret-double-left`, `caret-double-right`, `caret-down`, `caret-left`, `caret-right`, `caret-up`, `caret-up-down`, `chart-bar`, `chart-line`, `chart-line-up`, `chart-pie-slice`, `chat-centered-dots`, `chat-circle`, `chat-text`, `check`, `check-circle`, `check-square`, `circle-notch`, `clipboard-text`, `clock`, `cloud`, `cloud-down`, `cloud-slash`, `cloud-up`, `code`, `code-block`, `coins`, `columns`, `command`, `compass`, `copy`, `copy-simple`, `corners-in`, `corners-out`, `credit-card`, `crown`, `currency-dollar`, `cursor-click`, `devices`, `dots-three`, `dots-three-outline`, `download-simple`, `empty`, `envelope`, `eye`, `eye-slash`, `eyedropper`, `factory`, `file`, `file-text`, `fire`, `flag`, `floppy-disk`, `flower`, `folder`, `folder-open`, `folder-simple`, `gear`, `gift`, `globe`, `grid-four`, `grid-nine`, `hand-waving`, `handshake`, `hash`, `headphones`, `heart`, `hourglass`, `house`, `identification-card`, `image`, `info`, `key`, `keyboard`, `layout`, `leaf`, `lifebuoy`, `lightbulb`, `lightning`, `line-segments`, `link`, `link-simple`, `list`, `list-bullets`, `list-dashes`, `lock`, `lock-open`, `map-pin`, `map-trifold`, `medal`, `megaphone`, `microphone`, `microphone-slash`, `minus`, `minus-circle`, `minus-square`, `moon`, `music-note`, `navigation`, `note-pencil`, `package`, `paint-bucket`, `palette`, `paper-plane`, `paperclip`, `path`, `pause`, `pencil-simple`, `placeholder`, `play`, `plus`, `plus-circle`, `printer`, `push-pin`, `question`, `quotes`, `radio-button`, `receipt`, `rectangle`, `rows`, `rows-plus-bottom`, `ruler`, `scissors`, `seal-check`, `search`, `selection`, `share-network`, `shield`, `shield-check`, `shopping-cart`, `sidebar`, `sidebar-simple`, `sign-in`, `sign-out`, `skip-back`, `skip-forward`, `sliders`, `smiley`, `smiley-meh`, `smiley-sad`, `speaker-high`, `speaker-low`, `speaker-x`, `speedometer`, `split-horizontal`, `split-vertical`, `square`, `square-half`, `squares-four`, `stack`, `star`, `steps`, `stop`, `storefront`, `sun`, `table`, `tabs`, `tag`, `target`, `text-aa`, `text-align-center`, `text-align-justify`, `text-align-left`, `text-align-right`, `text-b`, `text-indent`, `text-italic`, `text-outdent`, `text-strikethrough`, `text-underline`, `textbox`, `thumbs-down`, `thumbs-up`, `toggle-left`, `toggle-right`, `trash`, `tray`, `tree`, `trend-down`, `trend-up`, `trophy`, `truck`, `upload-simple`, `user`, `user-circle`, `users`, `users-three`, `video-camera`, `wallet`, `warning`, `warning-circle`, `waveform`, `x`, `x-circle`
|
|
52
|
+
|
|
53
|
+
### 유령 이름 처리
|
|
54
|
+
- `name="존재하지-않는-슬롯"` → **family별 placeholder 사각형**이 자동 렌더. 레이아웃 공간 유지.
|
|
55
|
+
- 축 전환 시 "이 아이콘은 이 family에 없다"가 시각적으로 드러나는 설계된 폴백.
|
|
56
|
+
|
|
57
|
+
### 조합 예시
|
|
58
|
+
```tsx
|
|
59
|
+
// 기본 — 축 상속
|
|
60
|
+
<Icon name="check" />
|
|
61
|
+
<Icon name="warning" size={16} />
|
|
62
|
+
|
|
63
|
+
// 활성 상태 fill
|
|
64
|
+
<Icon name="heart" weight={isLiked ? "fill" : "regular"} />
|
|
65
|
+
|
|
66
|
+
// Family override — 로고 자리처럼 특수한 지점만
|
|
67
|
+
<Icon name="github-logo" family="phosphor" size={24} />
|
|
68
|
+
|
|
69
|
+
// Button 안 — 자동 크기 상속 (ICON_SIZE 매핑)
|
|
70
|
+
<Button leftIcon={<Icon name="plus" />}>추가</Button>
|
|
71
|
+
|
|
72
|
+
// MenuItem leadingActions
|
|
73
|
+
<MenuItem leadingActions={[<Icon name="user" />]}>프로필</MenuItem>
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
<!-- component-contract -->
|
|
77
|
+
```json
|
|
78
|
+
{"roles":["icon"],"native":[],"hints":[],"requires":[]}
|
|
79
|
+
```
|