@conscience-technology/ovenn 0.0.0-stage → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +189 -2
- package/assets/components/AIMessage/AIMessage.module.css +150 -0
- package/assets/components/AIMessage/AIMessage.tsx +106 -0
- package/assets/components/AIMessage/index.ts +2 -0
- package/assets/components/Accordion/Accordion.module.css +265 -0
- package/assets/components/Accordion/Accordion.tsx +209 -0
- package/assets/components/Accordion/index.ts +7 -0
- package/assets/components/AppFrame/AppFrame.module.css +200 -0
- package/assets/components/AppFrame/AppFrame.tsx +93 -0
- package/assets/components/AppFrame/index.ts +6 -0
- package/assets/components/AttachmentItem/AttachmentItem.module.css +124 -0
- package/assets/components/AttachmentItem/AttachmentItem.tsx +185 -0
- package/assets/components/AttachmentItem/index.ts +6 -0
- package/assets/components/AttachmentThumb/AttachmentThumb.module.css +141 -0
- package/assets/components/AttachmentThumb/AttachmentThumb.tsx +102 -0
- package/assets/components/AttachmentThumb/index.ts +2 -0
- package/assets/components/Avatar/Avatar.module.css +216 -0
- package/assets/components/Avatar/Avatar.tsx +283 -0
- package/assets/components/Avatar/index.ts +9 -0
- package/assets/components/AvatarUpload/AvatarUpload.module.css +83 -0
- package/assets/components/AvatarUpload/AvatarUpload.tsx +155 -0
- package/assets/components/AvatarUpload/index.ts +2 -0
- package/assets/components/Badge/Badge.module.css +178 -0
- package/assets/components/Badge/Badge.tsx +117 -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 +281 -0
- package/assets/components/Breadcrumb/Breadcrumb.tsx +352 -0
- package/assets/components/Breadcrumb/index.ts +8 -0
- package/assets/components/Bubble/Bubble.module.css +71 -0
- package/assets/components/Bubble/Bubble.tsx +63 -0
- package/assets/components/Bubble/index.ts +2 -0
- package/assets/components/Button/Button.module.css +342 -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/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 +147 -0
- package/assets/components/Callout/Callout.tsx +207 -0
- package/assets/components/Callout/index.ts +2 -0
- 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 +314 -0
- package/assets/components/CanvasNode/CanvasNode.tsx +144 -0
- package/assets/components/CanvasNode/index.ts +2 -0
- package/assets/components/CanvasNode/runningOutline.ts +59 -0
- package/assets/components/CanvasNode/tokens.css +89 -0
- package/assets/components/Card/Card.module.css +127 -0
- package/assets/components/Card/Card.tsx +88 -0
- package/assets/components/Card/index.ts +2 -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/ChatInput/ChatInput.module.css +378 -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 +186 -0
- package/assets/components/Checkbox/Checkbox.tsx +129 -0
- package/assets/components/Checkbox/index.ts +2 -0
- package/assets/components/CheckboxCard/CheckboxCard.module.css +1 -0
- package/assets/components/CheckboxCard/CheckboxCard.tsx +17 -0
- package/assets/components/CheckboxCard/index.ts +2 -0
- package/assets/components/Chip/Chip.module.css +209 -0
- package/assets/components/Chip/Chip.tsx +219 -0
- package/assets/components/Chip/index.ts +2 -0
- package/assets/components/Code/Code.module.css +26 -0
- package/assets/components/Code/Code.tsx +26 -0
- package/assets/components/Code/index.ts +2 -0
- package/assets/components/CodeBlock/CodeBlock.module.css +259 -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 +148 -0
- package/assets/components/ColorArea/ColorArea.tsx +156 -0
- package/assets/components/ColorArea/index.ts +2 -0
- package/assets/components/ColorField/ColorField.module.css +201 -0
- package/assets/components/ColorField/ColorField.tsx +374 -0
- package/assets/components/ColorField/index.ts +2 -0
- 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 +170 -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 +115 -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 +264 -0
- package/assets/components/CommandPalette/CommandPalette.tsx +425 -0
- package/assets/components/CommandPalette/index.ts +9 -0
- package/assets/components/CommandPalette/useCommandPaletteHotkey.ts +49 -0
- 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 +121 -0
- package/assets/components/ContextMenu/ContextMenu.tsx +420 -0
- package/assets/components/ContextMenu/index.ts +9 -0
- package/assets/components/ControlGroup/ControlGroup.module.css +319 -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 +57 -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 +623 -0
- package/assets/components/DatePicker/DatePicker.tsx +530 -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 +74 -0
- package/assets/components/Disclosure/Disclosure.tsx +129 -0
- package/assets/components/Disclosure/index.ts +6 -0
- package/assets/components/Drawer/Drawer.module.css +197 -0
- package/assets/components/Drawer/Drawer.tsx +230 -0
- package/assets/components/Drawer/index.ts +15 -0
- package/assets/components/DropdownMenu/DropdownMenu.module.css +26 -0
- package/assets/components/DropdownMenu/DropdownMenu.tsx +400 -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 +143 -0
- package/assets/components/EventChip/EventChip.tsx +95 -0
- package/assets/components/EventChip/index.ts +2 -0
- package/assets/components/EventListItem/EventListItem.module.css +223 -0
- package/assets/components/EventListItem/EventListItem.tsx +233 -0
- package/assets/components/EventListItem/index.ts +8 -0
- package/assets/components/FileIcon/FileIcon.module.css +78 -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 +19 -0
- package/assets/components/FileUpload/FileUpload.tsx +96 -0
- package/assets/components/FileUpload/FileUploadItem.tsx +34 -0
- package/assets/components/FileUpload/index.ts +2 -0
- package/assets/components/FileUpload/utils.ts +8 -0
- package/assets/components/GalleryItem/GalleryItem.module.css +217 -0
- package/assets/components/GalleryItem/GalleryItem.tsx +163 -0
- package/assets/components/GalleryItem/index.ts +7 -0
- package/assets/components/GeneratedImage/GeneratedImage.module.css +93 -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 +654 -0
- package/assets/components/Icon/LucideFamilyIcon.tsx +434 -0
- package/assets/components/Icon/MissingIcon.tsx +25 -0
- package/assets/components/Icon/SolarFamilyIcon.tsx +439 -0
- package/assets/components/Icon/catalogNames.ts +8 -0
- package/assets/components/Icon/context.tsx +39 -0
- package/assets/components/Icon/index.ts +6 -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 +117 -0
- package/assets/components/IconButton/IconButton.tsx +113 -0
- package/assets/components/IconButton/index.ts +2 -0
- package/assets/components/Input/Input.module.css +375 -0
- package/assets/components/Input/Input.tsx +424 -0
- package/assets/components/Input/index.ts +2 -0
- package/assets/components/Kanban/Kanban.module.css +353 -0
- package/assets/components/Kanban/Kanban.tsx +371 -0
- package/assets/components/Kanban/index.ts +10 -0
- package/assets/components/ListItem/ListItem.module.css +235 -0
- package/assets/components/ListItem/ListItem.tsx +262 -0
- package/assets/components/ListItem/index.ts +9 -0
- package/assets/components/MenuItem/MenuItem.module.css +603 -0
- package/assets/components/MenuItem/MenuItem.tsx +704 -0
- package/assets/components/MenuItem/index.ts +8 -0
- package/assets/components/MessageActions/MessageActions.module.css +79 -0
- package/assets/components/MessageActions/MessageActions.tsx +139 -0
- package/assets/components/MessageActions/index.ts +6 -0
- package/assets/components/MessageQuote/MessageQuote.module.css +30 -0
- package/assets/components/MessageQuote/MessageQuote.tsx +33 -0
- package/assets/components/MessageQuote/index.ts +2 -0
- package/assets/components/MessageSources/MessageSources.module.css +60 -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 +141 -0
- package/assets/components/MetricCard/MetricCard.tsx +162 -0
- package/assets/components/MetricCard/index.ts +2 -0
- 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 +294 -0
- package/assets/components/Modal/Modal.tsx +402 -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 +166 -0
- package/assets/components/Onboarding/Onboarding.module.css +1494 -0
- package/assets/components/Onboarding/OnboardingAxisPanel.tsx +472 -0
- package/assets/components/Onboarding/OnboardingPage.tsx +1258 -0
- package/assets/components/Onboarding/PresetsGallery.tsx +56 -0
- package/assets/components/Onboarding/actions.ts +529 -0
- package/assets/components/Onboarding/index.ts +8 -0
- package/assets/components/Onboarding/palette.css +48 -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 +85 -0
- package/assets/components/ProgressBar/index.ts +6 -0
- package/assets/components/QuotationBar/QuotationBar.module.css +63 -0
- package/assets/components/QuotationBar/QuotationBar.tsx +60 -0
- package/assets/components/QuotationBar/index.ts +2 -0
- package/assets/components/Radio/Radio.module.css +125 -0
- package/assets/components/Radio/Radio.tsx +39 -0
- package/assets/components/Radio/index.ts +2 -0
- package/assets/components/RadioCard/RadioCard.module.css +283 -0
- package/assets/components/RadioCard/RadioCard.tsx +186 -0
- package/assets/components/RadioCard/index.ts +2 -0
- package/assets/components/SegmentedChart/SegmentedChart.module.css +237 -0
- package/assets/components/SegmentedChart/SegmentedChart.tsx +121 -0
- package/assets/components/SegmentedChart/index.ts +2 -0
- package/assets/components/Select/Select.module.css +161 -0
- package/assets/components/Select/Select.tsx +453 -0
- package/assets/components/Select/index.ts +10 -0
- package/assets/components/Shortcut/Shortcut.module.css +79 -0
- package/assets/components/Shortcut/Shortcut.tsx +206 -0
- package/assets/components/Shortcut/index.ts +2 -0
- package/assets/components/Sidebar/Sidebar.module.css +407 -0
- package/assets/components/Sidebar/Sidebar.tsx +585 -0
- package/assets/components/Sidebar/index.ts +7 -0
- 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 +137 -0
- package/assets/components/Slider/Slider.tsx +104 -0
- package/assets/components/Slider/index.ts +2 -0
- package/assets/components/Spinner/LottiePlayer.tsx +179 -0
- package/assets/components/Spinner/Spinner.module.css +208 -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 +103 -0
- package/assets/components/Stepper/Stepper.module.css +378 -0
- package/assets/components/Stepper/Stepper.tsx +253 -0
- package/assets/components/Stepper/index.ts +2 -0
- package/assets/components/Switch/Switch.module.css +176 -0
- package/assets/components/Switch/Switch.tsx +77 -0
- package/assets/components/Switch/index.ts +2 -0
- package/assets/components/TabStrip/TabStrip.module.css +362 -0
- package/assets/components/TabStrip/TabStrip.tsx +404 -0
- package/assets/components/TabStrip/index.ts +7 -0
- package/assets/components/TableCell/TableCell.module.css +137 -0
- package/assets/components/TableCell/TableCellAvatar.tsx +66 -0
- package/assets/components/TableCell/TableCellBadge.tsx +30 -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/TableCellTag.tsx +23 -0
- package/assets/components/TableCell/TableCellText.tsx +33 -0
- package/assets/components/TableCell/index.ts +22 -0
- package/assets/components/TableHeader/TableHeader.module.css +355 -0
- package/assets/components/TableHeader/TableHeader.tsx +658 -0
- package/assets/components/TableHeader/index.ts +9 -0
- package/assets/components/TableRow/TableRow.module.css +355 -0
- package/assets/components/TableRow/TableRow.tsx +292 -0
- package/assets/components/TableRow/index.ts +8 -0
- package/assets/components/TableRowEdit/TableRowEdit.module.css +164 -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 +38 -0
- package/assets/components/TableToolbar/TableToolbar.tsx +105 -0
- package/assets/components/TableToolbar/index.ts +5 -0
- package/assets/components/Tabs/Tabs.module.css +387 -0
- package/assets/components/Tabs/Tabs.tsx +518 -0
- package/assets/components/Tabs/index.ts +9 -0
- 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.module.css +4 -0
- package/assets/components/TemplateBoundary/TemplateBoundary.tsx +54 -0
- package/assets/components/TemplateBoundary/index.ts +3 -0
- package/assets/components/TemplateBoundary/types.ts +25 -0
- package/assets/components/Textarea/Textarea.module.css +350 -0
- package/assets/components/Textarea/Textarea.tsx +438 -0
- package/assets/components/Textarea/index.ts +7 -0
- package/assets/components/ThemeController.tsx +396 -0
- package/assets/components/TimePicker/TimePicker.module.css +113 -0
- package/assets/components/TimePicker/TimePicker.tsx +424 -0
- package/assets/components/TimePicker/index.ts +8 -0
- package/assets/components/TimePicker/utils.ts +116 -0
- 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 +334 -0
- package/assets/components/Toast/Toast.tsx +310 -0
- package/assets/components/Toast/index.ts +16 -0
- package/assets/components/Toolbar/Toolbar.module.css +135 -0
- package/assets/components/Toolbar/Toolbar.tsx +187 -0
- package/assets/components/Toolbar/index.ts +7 -0
- package/assets/components/Tooltip/Tooltip.module.css +52 -0
- package/assets/components/Tooltip/Tooltip.tsx +341 -0
- package/assets/components/Tooltip/index.ts +2 -0
- package/assets/components/TopLoader/TopLoader.module.css +65 -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 +33 -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 +608 -0
- package/assets/components/_rowInteraction.ts +16 -0
- package/assets/components/_utils.css +135 -0
- package/assets/components/app-shell.css +17 -0
- package/assets/components/axisOptions.ts +17 -0
- package/assets/components/component-registry.json +1063 -0
- package/assets/components/index.ts +118 -0
- package/assets/components/materialScope.tsx +11 -0
- package/assets/components/reset.css +78 -0
- package/assets/components/themeBootScript.ts +125 -0
- package/assets/components/tokens.css +1275 -0
- package/assets/components/useChartEntrance.ts +119 -0
- package/assets/prompts/ASSEMBLY.md +72 -0
- package/assets/prompts/CASCADE.md +49 -0
- package/assets/prompts/CATALOG.md +141 -0
- package/assets/prompts/FEEDBACK_PROCESS.md +19 -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 +128 -0
- package/assets/prompts/SLOTS.md +194 -0
- package/assets/prompts/WORKFLOW_DESIGN.md +132 -0
- package/assets/prompts/axes/density.md +42 -0
- package/assets/prompts/axes/font.md +35 -0
- package/assets/prompts/axes/icon.md +59 -0
- package/assets/prompts/axes/material.md +40 -0
- package/assets/prompts/axes/mode.md +52 -0
- package/assets/prompts/axes/motion.md +77 -0
- package/assets/prompts/axes/palette.md +51 -0
- package/assets/prompts/axes/shape.md +41 -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 +89 -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 +58 -0
- package/assets/prompts/components/breadcrumb.md +124 -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/calendar.md +151 -0
- package/assets/prompts/components/callout.md +98 -0
- package/assets/prompts/components/canvas-edge.md +67 -0
- package/assets/prompts/components/canvas-node.md +80 -0
- package/assets/prompts/components/canvas.md +82 -0
- package/assets/prompts/components/card.md +167 -0
- 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-input.md +103 -0
- package/assets/prompts/components/checkbox-card.md +53 -0
- package/assets/prompts/components/checkbox.md +121 -0
- package/assets/prompts/components/chip.md +163 -0
- package/assets/prompts/components/code-block.md +95 -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-picker.md +173 -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 +194 -0
- package/assets/prompts/components/comment.md +72 -0
- package/assets/prompts/components/context-menu.md +153 -0
- package/assets/prompts/components/control-group.md +67 -0
- package/assets/prompts/components/data-table.md +90 -0
- package/assets/prompts/components/date-picker.md +156 -0
- package/assets/prompts/components/disclosure.md +55 -0
- package/assets/prompts/components/drawer.md +151 -0
- package/assets/prompts/components/dropdown-menu.md +167 -0
- package/assets/prompts/components/empty-state.md +74 -0
- package/assets/prompts/components/event-chip.md +123 -0
- package/assets/prompts/components/event-list-item.md +112 -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 +164 -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 +101 -0
- package/assets/prompts/components/input.md +134 -0
- package/assets/prompts/components/kanban.md +172 -0
- package/assets/prompts/components/list-item.md +334 -0
- package/assets/prompts/components/menu-item.md +252 -0
- package/assets/prompts/components/message-actions.md +63 -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 +85 -0
- package/assets/prompts/components/mini-calendar.md +72 -0
- package/assets/prompts/components/modal.md +236 -0
- package/assets/prompts/components/multi-select.md +31 -0
- package/assets/prompts/components/onboarding.md +55 -0
- package/assets/prompts/components/page-header.md +170 -0
- package/assets/prompts/components/pagination.md +99 -0
- package/assets/prompts/components/progress-bar.md +85 -0
- package/assets/prompts/components/quotation-bar.md +44 -0
- package/assets/prompts/components/radio-card.md +62 -0
- package/assets/prompts/components/radio.md +56 -0
- package/assets/prompts/components/segmented-chart.md +79 -0
- package/assets/prompts/components/select.md +146 -0
- package/assets/prompts/components/shortcut.md +81 -0
- package/assets/prompts/components/sidebar.md +537 -0
- package/assets/prompts/components/skeleton.md +44 -0
- package/assets/prompts/components/slider.md +111 -0
- package/assets/prompts/components/spinner.md +124 -0
- package/assets/prompts/components/stepper.md +122 -0
- package/assets/prompts/components/switch.md +108 -0
- package/assets/prompts/components/tab-strip.md +163 -0
- package/assets/prompts/components/table-cell.md +67 -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 +184 -0
- package/assets/prompts/components/table-toolbar.md +103 -0
- package/assets/prompts/components/tabs.md +136 -0
- package/assets/prompts/components/tag.md +54 -0
- package/assets/prompts/components/textarea.md +114 -0
- package/assets/prompts/components/time-picker.md +87 -0
- package/assets/prompts/components/timeline-view.md +129 -0
- package/assets/prompts/components/toast.md +155 -0
- package/assets/prompts/components/toolbar.md +99 -0
- package/assets/prompts/components/tooltip.md +94 -0
- package/assets/prompts/components/top-loader.md +64 -0
- package/assets/prompts/components/topbar.md +186 -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 +631 -0
- package/assets/prompts/templates/aurora.md +440 -0
- package/assets/prompts/templates/glass-button.md +337 -0
- package/assets/prompts/templates/minimal.md +209 -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 +105 -0
- package/assets/prompts/tokens/material.md +51 -0
- package/assets/prompts/tokens/radius.md +45 -0
- package/assets/prompts/tokens/shadow.md +35 -0
- package/assets/prompts/tokens/spacing.md +96 -0
- package/assets/prompts/tokens/typography.md +89 -0
- package/assets/prompts/tokens/z-index.md +35 -0
- 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/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 +1163 -0
- package/assets/prompts/use-cases/feedback-progress-bar.md +427 -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 +1200 -0
- package/assets/public/expressive.png +0 -0
- package/assets/public/ovenn-wordmark.svg +19 -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 +143 -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,170 @@
|
|
|
1
|
+
# scroll
|
|
2
|
+
|
|
3
|
+
### 원칙
|
|
4
|
+
스크롤이 있는 곳엔 **두 겹의 패딩 규약**을 지킨다.
|
|
5
|
+
|
|
6
|
+
1. **바깥 컨테이너(스크롤 발생 요소)** 에는 패딩을 두지 않는다.
|
|
7
|
+
→ 패딩이 있으면 스크롤 트랙이 콘텐츠 위로 겹치거나 잘려 보인다.
|
|
8
|
+
2. **안쪽 트랙(items가 실제로 놓이는 자식)** 에 상하좌우 패딩을 준다.
|
|
9
|
+
→ 스크롤 도중 첫/끝 item이 컨테이너 엣지에 딱 붙어 잘린 느낌을 없앤다.
|
|
10
|
+
|
|
11
|
+
이 규약은 세로·가로·양방향 스크롤 모두에 동일하게 적용된다.
|
|
12
|
+
|
|
13
|
+
### Do
|
|
14
|
+
- 스크롤 컨테이너에 `overflow: auto`를, 안쪽 children wrapper에 `padding: var(--space-*)`를.
|
|
15
|
+
- 스크롤 방향에 맞춰 최소 `--space-2` 이상의 패딩을 줘서 트랙 끝에서도 콘텐츠가 카드 벽에 붙지 않도록.
|
|
16
|
+
- 리스트/그리드형 스크롤은 items 간 gap과 별개로 **컨테이너-item 사이의 여백**을 반드시 확보.
|
|
17
|
+
- 채팅창처럼 하단이 항상 최신인 경우에도 안쪽 패딩으로 마지막 메시지가 잘리지 않게.
|
|
18
|
+
|
|
19
|
+
### Don't
|
|
20
|
+
- 스크롤 컨테이너 자체에 `padding`을 걸지 않는다 → thumb이 콘텐츠와 겹쳐 보임.
|
|
21
|
+
- items에 `margin: first-child/last-child` 트릭으로 여백 흉내내지 않는다 → 정렬 깨지고 유지보수 어려움.
|
|
22
|
+
- `overflow: hidden` 위에 scrollTop을 JS로 조작하는 커스텀 스크롤은 접근성 무너짐. 반드시 네이티브 `overflow: auto`.
|
|
23
|
+
|
|
24
|
+
### Fallback
|
|
25
|
+
스크롤 필요 없는 경우엔 안쪽 트랙 패딩만으로도 무해. 그러니 규약을 컴포넌트 기본으로 두는 게 안전.
|
|
26
|
+
|
|
27
|
+
### 관련
|
|
28
|
+
- [[axes/density]] — `--space-*` 스케일 스왑에 자동 반응
|
|
29
|
+
- [[tokens/spacing]] — 안쪽 패딩은 `--space-*` 경유
|
|
30
|
+
- 스크롤바 시각(색·두께·hover 노출)은 globals.css의 전역 정책이 담당. 컴포넌트가 별도로 스크롤바 스타일을 선언하지 않는다.
|
|
31
|
+
|
|
32
|
+
### 정책 요약
|
|
33
|
+
|
|
34
|
+
| 요소 | overflow | padding |
|
|
35
|
+
|---|---|---|
|
|
36
|
+
| 바깥(스크롤) 컨테이너 | `auto` | 없음 |
|
|
37
|
+
| 안쪽(items) 트랙 | 없음 | `var(--space-2)` 이상 |
|
|
38
|
+
|
|
39
|
+
### 가로 스크롤 테이블의 "full-bleed" 규칙
|
|
40
|
+
|
|
41
|
+
페이지 wrapper에 좌우 padding(gutter)이 있는 자리에 테이블을 넣으면, 가로 스크롤이 발생할 때 **오른쪽에 빈 띠**가 보여 콘텐츠가 중간에 잘린 느낌을 준다. 테이블의 스크롤 컨테이너는 페이지 gutter를 **무시하고 뷰포트 끝까지 늘어나야** 한다.
|
|
42
|
+
|
|
43
|
+
- 벤더 [[components/data-table]]은 `--data-table-bleed` CSS 변수로 bleed 폭을 받는다. 소비처가 wrapper에 자기 좌우 padding과 동일한 값으로 선언하면 `.scroll` 컨테이너가 negative margin으로 그만큼 흘러나와 전체 폭을 차지한다.
|
|
44
|
+
- `TableToolbar`·`Pagination` 같은 sibling 블록은 bleed 영향을 받지 않는다 — 테이블만 전체 폭.
|
|
45
|
+
- `contained` variant는 둥근 외곽이 자리를 잡아 bleed가 어색하므로 자동 off.
|
|
46
|
+
|
|
47
|
+
### 스크롤바 시각 정책 (전역, globals.css)
|
|
48
|
+
|
|
49
|
+
핵심은 **overlay 방식 전용** — 스크롤바는 콘텐츠 위에 뜨기만 하고 **공간을 먹지 않는다**. 공간을 먹는 "고정 스크롤바" 는 다크 모드에서 OS·브라우저 조합이 트랙·코너를 흰색으로 강제 렌더해 그 자리가 하얗게 뜨는 함정이 있어 영구 금지 ([[feedback_scrollbar_no_fixed_track]]).
|
|
50
|
+
|
|
51
|
+
- 평상시: thumb 투명 → 스크롤바 자리는 있지만 안 보임 (overlay)
|
|
52
|
+
- 부모 `:hover` 또는 `:focus-within`: thumb에 `--border-strong` 페이드 인
|
|
53
|
+
- thumb `:hover`: `--fg-muted`로 진해짐
|
|
54
|
+
- 두께: `--scrollbar-size` 토큰 — overlay 두께이지 공간 할당 아님. 커지면 overlay 가 더 두껍게 뜰 뿐, 콘텐츠는 안 밀림.
|
|
55
|
+
- macOS 방식(사용 중일 때만 얇게 노출) — Notion/Linear/Figma 스타일
|
|
56
|
+
|
|
57
|
+
#### Don't (스크롤바)
|
|
58
|
+
- `scrollbar-gutter: stable` 로 트랙 공간 미리 확보하기 — 그게 "고정 스크롤바" 다.
|
|
59
|
+
- 컴포넌트/페이지에서 `::-webkit-scrollbar-*` 또는 `scrollbar-*` 를 재선언해 트랙 폭을 만들기.
|
|
60
|
+
- 평상시에도 트랙·thumb 이 보이는 "always visible" 스타일. 특히 다크 모드에서 흰 띠가 뜸.
|
|
61
|
+
|
|
62
|
+
### 스크롤 페이드 (edge fade mask)
|
|
63
|
+
|
|
64
|
+
스크롤로 잘려나가는 콘텐츠 경계를 부드럽게 처리. 사용자에게 "더 있음"을 암시하면서 카드 벽에 텍스트가 딱 붙는 느낌을 없앤다.
|
|
65
|
+
|
|
66
|
+
- 세로 스크롤 컨테이너: `class="scroll-fade-y"` 부착 (상하단 페이드)
|
|
67
|
+
- 가로 스크롤 컨테이너: `class="scroll-fade-x"` 부착 (좌우 페이드)
|
|
68
|
+
- 크기 토큰: `--scroll-fade-size` (기본 `--space-4`)
|
|
69
|
+
- 구현: `mask-image` linear-gradient. 컨테이너 안 콘텐츠 전체가 마스킹되므로 스크롤 페이드는 **실제 스크롤이 있는 컨테이너에만** 부착. 스크롤 없는 곳에 붙이면 가장자리 요소(아이콘·버튼)가 흐릿하게 잘려 보임.
|
|
70
|
+
|
|
71
|
+
**Do**: 세로 스크롤 리스트, 가로 스크롤 테이블/탭, 채팅 메시지 리스트 등 스크롤이 상수인 자리에 클래스 명시적 부착.
|
|
72
|
+
|
|
73
|
+
**Don't**: 스크롤 유무가 유동적인 컨테이너에 blanket 적용. 콘텐츠가 짧을 때는 마스크만 남고 실제 페이드 효과 없이 가장자리가 흐릿함.
|
|
74
|
+
|
|
75
|
+
### 예시 (CSS 스케치)
|
|
76
|
+
|
|
77
|
+
```css
|
|
78
|
+
.list { /* 바깥 스크롤 컨테이너 */
|
|
79
|
+
overflow-y: auto;
|
|
80
|
+
max-height: calc(var(--control-h-md) * 8);
|
|
81
|
+
/* padding 금지 */
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.listTrack { /* 안쪽 items 래퍼 */
|
|
85
|
+
display: flex;
|
|
86
|
+
flex-direction: column;
|
|
87
|
+
gap: var(--space-0_5);
|
|
88
|
+
padding: var(--space-2);
|
|
89
|
+
}
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
---
|
|
93
|
+
|
|
94
|
+
## Textarea / 단일 콘텐츠 스크롤
|
|
95
|
+
|
|
96
|
+
리스트가 아니라 **텍스트 하나**가 자라서 스크롤되는 경우(채팅 입력창, 코드 에디터, Markdown preview 등). 리스트 규약과 다른 **특수 패턴** 필요 — 브라우저가 scroll 컨테이너의 `padding-bottom`을 scroll 영역에 포함시키지 않는 알려진 이슈(Chrome/Safari/Firefox 공통) 때문.
|
|
97
|
+
|
|
98
|
+
### 왜 특수한가
|
|
99
|
+
- 리스트는 "items wrapper에 padding"이면 끝 — 각 item 자체가 콘텐츠라 scroll content의 일부.
|
|
100
|
+
- textarea는 자신이 scroll 컨테이너면 **padding-top은 scroll track에 포함**(글이 거기까지 흘러옴)되지만, **padding-bottom은 scroll content 바깥**이 되어 "글이 bottom padding 앞에서 미리 잘리는" 현상이 생김.
|
|
101
|
+
|
|
102
|
+
### 금지 패턴 (실제 ChatInput 작업 중 겪은 삽질)
|
|
103
|
+
|
|
104
|
+
❌ **"root 전체에 padding"** — 글이 root padding 안쪽에서만 보이고 scroll clip이 root 안쪽 border에서 생겨 어색:
|
|
105
|
+
```css
|
|
106
|
+
.chatInput { padding: var(--space-2); }
|
|
107
|
+
.textarea { overflow-y: auto; }
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
❌ **"textarea 자체가 scroll + 상하 padding"** — padding-bottom이 scroll 밖이라 작동 안 함:
|
|
111
|
+
```css
|
|
112
|
+
.textarea { overflow-y: auto; padding: var(--space-1); }
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
### 정답 패턴 (ChatInput이 쓰는 구조)
|
|
116
|
+
|
|
117
|
+
핵심 결정: **wrapper에 padding 0, textarea에 상·하·좌·우 padding 전부**. 왜냐하면
|
|
118
|
+
`overflow: auto` 요소에 padding을 두면 그 padding은 **scroll 시 고정** — 스크롤해도
|
|
119
|
+
빈 띠가 상·하에 남아 "글이 padding에서 미리 잘린다"는 느낌을 줌. 반면 textarea의
|
|
120
|
+
padding은 **자신의 content box 일부**로 취급돼, textarea 전체가 wrapper 안에서 scroll
|
|
121
|
+
되면 padding도 함께 올라감.
|
|
122
|
+
|
|
123
|
+
1. **root는 `padding: 0; overflow: hidden`** — scroll clip이 root border에서 생기도록.
|
|
124
|
+
2. **wrapper div(`.scroll`)는 `overflow-y: auto; padding: 0`** — padding 두면 "빈 띠" 생김.
|
|
125
|
+
3. **textarea는 상·하·좌·우 padding 전부 + `overflow: hidden`** — 자체 scroll 금지.
|
|
126
|
+
|
|
127
|
+
```css
|
|
128
|
+
.root {
|
|
129
|
+
padding: 0;
|
|
130
|
+
overflow: hidden;
|
|
131
|
+
border-radius: var(--radius-sm);
|
|
132
|
+
border: var(--hairline) solid var(--border);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.scroll {
|
|
136
|
+
overflow-y: auto;
|
|
137
|
+
max-height: calc(var(--text-base) * 1.5 * 8);
|
|
138
|
+
padding: 0; /* 반드시 0 */
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.textarea {
|
|
142
|
+
display: block;
|
|
143
|
+
width: 100%;
|
|
144
|
+
box-sizing: border-box;
|
|
145
|
+
padding: var(--space-3) var(--space-4); /* 상·하·좌·우 모두 */
|
|
146
|
+
background: transparent;
|
|
147
|
+
border: 0;
|
|
148
|
+
outline: none;
|
|
149
|
+
resize: none;
|
|
150
|
+
overflow: hidden; /* textarea 자체 scroll 금지 */
|
|
151
|
+
font: inherit;
|
|
152
|
+
line-height: 1.5;
|
|
153
|
+
}
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
이 구조에서:
|
|
157
|
+
- **짧은 글**: textarea가 자신의 padding 포함 높이 → wrapper 안에 스크롤 없음.
|
|
158
|
+
- **긴 글**: textarea height > wrapper max-height → wrapper 스크롤 시 textarea 전체가 올라감.
|
|
159
|
+
- 상단에서 textarea padding-top을 지나며 글이 **root 상단 border에서 자연스레 clip**.
|
|
160
|
+
- 하단에서 textarea padding-bottom을 지나며 글이 **root 하단 border에서 자연스레 clip**.
|
|
161
|
+
|
|
162
|
+
### 금지 패턴 추가 (이번 삽질로 확인)
|
|
163
|
+
|
|
164
|
+
❌ **"wrapper에 padding-top, textarea에 padding-bottom"** — 전에 썼던 패턴. wrapper의 padding-top이 scroll 시 "빈 띠"로 남아 글이 그 아래에서 clip돼 어색함.
|
|
165
|
+
|
|
166
|
+
### 함께 적용되는 레이아웃 룰
|
|
167
|
+
|
|
168
|
+
- `root`에 다른 섹션(attachment bar, footer 등)이 함께 있으면 각 섹션이 **자기 상하 padding을 책임**. `root`는 어떤 상·하 패딩도 걸지 않음.
|
|
169
|
+
- textarea JS autoResize는 `textarea.style.height = textarea.scrollHeight` 패턴. `scrollHeight`가 padding 포함이라 그대로 됨.
|
|
170
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# slide
|
|
2
|
+
|
|
3
|
+
### 원칙
|
|
4
|
+
공간 이동(translate). 이동 거리는 `--motion-distance-scale`이 축 값에 따라 스왑.
|
|
5
|
+
Drawer·Toast·Sheet 등 화면 가장자리에서 들어오는 요소.
|
|
6
|
+
|
|
7
|
+
### Do
|
|
8
|
+
- 뷰포트 가장자리에서 들어오는 큰 오버레이(Drawer, Sheet, Toast).
|
|
9
|
+
- 방향은 요소의 논리적 위치와 일치. 하단 Toast → `slide-up`, 상단 배너 → `slide-down`.
|
|
10
|
+
|
|
11
|
+
### Don't
|
|
12
|
+
- 앵커(트리거 요소) 기반 등장에는 slide만 쓰지 않는다 (`emerge` 사용).
|
|
13
|
+
|
|
14
|
+
### Fallback
|
|
15
|
+
방향 애매하면 `slide-up`.
|
|
16
|
+
|
|
17
|
+
### 관련
|
|
18
|
+
- [[axes/motion]] — duration과 이동 거리를 스왑
|
|
19
|
+
- [[primitives/emerge]] — 앵커 기반 등장은 이쪽
|
|
20
|
+
|
|
21
|
+
### 축별 스왑
|
|
22
|
+
| data-motion | 파라미터 |
|
|
23
|
+
|---|---|
|
|
24
|
+
| `bouncy` | duration 400ms · distance 1.3× |
|
|
25
|
+
| `standard` | duration 200ms · distance 1× |
|
|
26
|
+
| `calm` | duration 100ms · distance 0.7× |
|
|
27
|
+
| `none` | 즉시 (이동 없음) |
|
|
28
|
+
|
|
29
|
+
### 겹침 규칙
|
|
30
|
+
- `fade`와 조합 필수.
|
|
31
|
+
- `emerge-*`와는 대체 관계. 뷰포트 기반이면 slide, 앵커 기반이면 emerge.
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
# Recipes
|
|
2
|
+
|
|
3
|
+
**자리별 조립 레시피 모음.** 벤더에 없는 자리를 조립할 때, 토큰·vendor 컴포넌트의 **조립 출발점**이다. 안전·변형 정책은 [[PRINCIPLES]], 실행 순서는 [[ASSEMBLY]]가 원본이다.
|
|
4
|
+
|
|
5
|
+
## 왜 레시피인가
|
|
6
|
+
|
|
7
|
+
벤더 컴포넌트 문서(`components/*.md`)는 "**있는 컴포넌트를 어떻게 쓰는가**"만 다룬다. 하지만 실제 페이지는 벤더가 없는 자리가 더 많다 — 페이지 헤더, 섹션 그룹, 메타 라인, 빈 상태 등. 이 자리들은 **여러 토큰과 vendor 컴포넌트의 조합**으로만 성립하고, 조합의 리듬·위계·여백이 매번 달라지면 Ovenn의 결과물이 흩어진다.
|
|
8
|
+
|
|
9
|
+
레시피는 조합의 역할과 토큰 관계를 보여준다. 업무에 맞게 구조·외형을 변형하며, 예시의 설명·장식까지 복제할 필요는 없다.
|
|
10
|
+
|
|
11
|
+
## 레시피 작성 규칙
|
|
12
|
+
|
|
13
|
+
레시피 파일은 [[GUIDE]]의 **공통 골격**을 따르되, 아래 추가 섹션을 포함한다.
|
|
14
|
+
|
|
15
|
+
```markdown
|
|
16
|
+
# <레시피 이름>
|
|
17
|
+
|
|
18
|
+
### 원칙
|
|
19
|
+
<1~2줄. 이 자리의 역할·언제 쓰는가>
|
|
20
|
+
|
|
21
|
+
### Anatomy
|
|
22
|
+
<이 자리를 구성하는 요소. 뼈대 구조. 수치가 아니라 역할 중심.>
|
|
23
|
+
|
|
24
|
+
### Do
|
|
25
|
+
- <토큰·vendor 조합 규칙 (명령형)>
|
|
26
|
+
|
|
27
|
+
### Don't
|
|
28
|
+
- <금지 조합. [HARD]/[SOFT] 명시 — PRINCIPLES §4a>
|
|
29
|
+
|
|
30
|
+
### Fallback
|
|
31
|
+
<규칙 밖 자리에서의 기본 선택>
|
|
32
|
+
|
|
33
|
+
### 조립 예시
|
|
34
|
+
<규칙을 종합한 최소 코드 예시 1개. 수치 하드코딩 금지, 토큰·vendor만.>
|
|
35
|
+
|
|
36
|
+
### 관련
|
|
37
|
+
- [[다른 레시피]] / [[components/X]] / [[tokens/Y]]
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## 등재된 레시피
|
|
41
|
+
|
|
42
|
+
- [[recipes/page-header]] — 페이지 상단: 큰 타이틀 + 서브텍스트 + (옵션) 액션
|
|
43
|
+
- [[recipes/section-header]] — 섹션 상단: 중간 타이틀 + (옵션) 설명/액션
|
|
44
|
+
- [[recipes/meta-line]] — 메타 라벨 가로 나열 (구분자 포함)
|
|
45
|
+
- [[recipes/card-row]] — 카드형 반복 행. 기존 행동 재사용과 로컬 조합의 출발점
|
|
46
|
+
- [[recipes/form-footer]] — 폼·모달 하단 액션 묶음
|
|
47
|
+
- [[recipes/page-banner]] — 페이지 폭 안내 배너
|
|
48
|
+
|
|
49
|
+
> "빈 상태"는 vendor [[components/empty-state]]로 해결 — 조립 레시피 아님.
|
|
50
|
+
|
|
51
|
+
## 신설 기준
|
|
52
|
+
|
|
53
|
+
새 자리가 **3번 반복**되면 레시피로 올린다. 1~2번은 vendor anatomy 복제로 처리하되, 3번째가 되면 조합 규칙이 자리 잡은 것 — [[ASSEMBLY]] §2 목록에 추가하고 이 디렉토리에 파일 신설.
|
|
54
|
+
|
|
55
|
+
## 이전 조립 테스트 이력
|
|
56
|
+
|
|
57
|
+
아래는 과거 검사·정책의 이력이다. 현재 규칙은 PRINCIPLES/ASSEMBLY/WORKFLOW_DESIGN을 따른다. 과거 통과를 현재 디자인의 품질 보증으로 사용하지 않는다.
|
|
58
|
+
|
|
59
|
+
레시피는 **반드시 실제 조립으로 검증**된다. 테스트 페이지는 `web/app/assembly-test/`. 지금까지 검증 중 발견된 결함:
|
|
60
|
+
|
|
61
|
+
- **meta-line separator** — 초기 레시피의 `width:1px / height:0.75em`가 check_tokens hook에서 리터럴로 차단됨 → `border-left: 1px solid var(--border)` + `align-self: stretch`로 수정
|
|
62
|
+
- **배경·경계 조합** — [[PRINCIPLES]] §5b의 미세한 표시 색 차이 기준을 따른다. 완전 투명한 border는 보이는 스트로크가 아니므로 동시 사용 위반으로 보지 않는다. 불필요한 테두리 선언은 생략한다.
|
|
63
|
+
- **날짜 포맷** — 초기 예시들의 "10. 13." 숫자 날짜가 [[feedback-date-writing]] 룰 위반 → "10월 13일" 표기로 수정
|
|
64
|
+
- **Callout 유령 참조** — `[[components/banner]]`가 유령 → `[[recipes/page-banner]]`로 교체
|
|
65
|
+
- **아이콘 이름 misname** — 레시피 예시의 `name="chevron-right" / "refresh" / "share" / "code" / "shield" / "checklist" / "terminal"` 중 어느 것도 Ovenn Icon 세트에 **등재되지 않음**. 각각 `caret-right / arrow-clockwise / share-network / brackets-square / shield-check / clipboard-text / brackets-square`로 교체. **레시피에 "아이콘 이름은 `web/components/Icon/Icon.tsx`의 phosphor 이름 레지스트리에서 찾을 것" 가이드 추가 필요**
|
|
66
|
+
- **Badge API prop 오류** — 레시피가 `tone="warning"`을 썼지만 실제 API는 `status="warning"` + `variant="soft"` 조합. `tone`은 Callout prop. 레시피 수정 필요
|
|
67
|
+
- **Vendor prop 선언 확인 공백** — ASSEMBLY §1 2단계 "가장 가까운 벤더 anatomy 베끼기"는 API까지 확인하지 않으면 복제가 깨짐. ASSEMBLY에 **"vendor prop·타입 선언을 반드시 확인"** 단계 추가 필요
|
|
68
|
+
- **Compound component의 Server Component 경계 — "use client" 전염** — Stepper처럼 `"use client"` 벤더를 Server Component page에서 compound property(`Stepper.Item`)로 접근하면 **런타임에 `Element type is invalid` + undefined**. Next 15/React 19 경계 이슈. 레시피 조립 코드는 vendor 하나라도 client면 **page 자체도 `"use client"`로 선언** — ASSEMBLY에 "조립 page가 client 벤더를 포함하면 'use client' 강제" 가이드 추가
|
|
69
|
+
|
|
70
|
+
**브라우저 렌더 1차 피드백 (유저 육안 검증, 2026-10-14)**:
|
|
71
|
+
- **섹션 간 gap `space-6` 과잉** — 콘솔 리듬에서 섹션이 border/배경으로 이미 분리되면 `space-4`가 적정. page 레벨 gap을 `space-4`로 조정 + ASSEMBLY 체크리스트에 "섹션 간 space-6 과잉" 항목 추가
|
|
72
|
+
- **섹션 타이틀 `text-xl` + medium → "크고 얇음"** — [[recipes/section-header]] 기본값을 `text-lg`로 다운. text-xl은 랜딩 리듬에만
|
|
73
|
+
- **멀티라인 banner padding 타이트** — `padding: space-2 space-4` + `gap: space-0.5`가 멀티라인에서 숨 안 쉼. 단일/멀티라인 2 모드로 분리 + 멀티라인은 상하 `space-3`
|
|
74
|
+
- **아이콘 + 다줄 텍스트 center 정렬 함정** — 긴 inline hint에서 `align-items: center`면 아이콘이 중앙쯤 뜸. `flex-start` + `margin-top: space-0.5`로 **첫 줄 baseline** 맞춤 필요
|
|
75
|
+
- **"라벨 혼자 위에 뜨는" 함정** — Stepper 카드에서 "작업 전 점검" 라벨을 Stepper 위에 flex-end로 두니 라벨 영역만 공백 → 라벨은 header 자리로 명시적 묶음
|
|
76
|
+
|
|
77
|
+
**브라우저 렌더 2차 피드백 (유저 육안 검증, 2026-10-14)**:
|
|
78
|
+
- **"page gap 하나로 다 담당" = 통짜 느낌의 근원** — 섹션 간 gap을 `space-4`로 줄여도 모든 블록 사이가 같은 공간이면 역할 분리가 안 됨
|
|
79
|
+
- **"Stepper 카드" 자체 폐기** — 카드로 감싸면 상하좌우 균일 padding이 공식인데 "라벨 혼자" 있는 조합은 균일 못 지킴. 카드를 포기하고 페이지 흐름에 그대로 놓는 쪽이 정답. → ASSEMBLY §2b "카드 포기 시그널" 섹션 신설
|
|
80
|
+
- **섹션 header가 "통짜 라벨"만 있으면 어색** — h2만 떠있고 count·설명·eyebrow 없으면 섹션끼리 구별 안 됨. count badge 또는 설명 1줄 **의미 있는 자리면** 넣기
|
|
81
|
+
|
|
82
|
+
**브라우저 렌더 3차 피드백 (유저 육안 검증, 2026-10-14)** — ★ 레이아웃 전면 교체:
|
|
83
|
+
- **"margin-top differential rhythm"은 틀린 결론이었음** — 2차에서 시도한 `A + B { margin-top: ... }`도 그룹 설계가 틀렸다는 신호였음. 정답은 **wrapper 추가 + 그룹별 flex column + gap**. 레이아웃 1원칙은 "**관련있는 것끼리 묶기**" — 이게 **padding/margin으로 간격 조정보다 선행**해야 함. → ASSEMBLY §2a 전면 재작성, [[feedback-group-first-layout]] 메모리 교체 (기존 differential rhythm 폐기)
|
|
84
|
+
- **유령 토큰 `--font-medium` → 모든 타이틀 얇음의 숨은 원인** — 실제 토큰은 `--font-weight-medium`. 레시피들이 전부 `var(--font-medium)` 썼고 **check_tokens hook이 유령 토큰은 못 잡음** (리터럴만 잡음). 조용히 상속된 400으로 렌더되어 h1·h2·cardTitle 전부 얇음. → ASSEMBLY §1 체크리스트 "font-weight 토큰 이름 정확성" 추가, 전수 교체
|
|
85
|
+
- **섹션 header의 `margin-bottom`은 틀림** — section 자체를 flex column + gap으로 묶으면 header와 body가 자연스럽게 간격을 가짐. margin-bottom은 그룹 설계 실패의 흔적
|
|
86
|
+
- **3-tier 리듬 확립**: 그룹 안 `space-2~3` / 섹션 반복 `space-6` / 그룹 사이 `space-10`. 콘솔 리듬 기준
|
|
87
|
+
- **`<section>` 태그 금지의 재확인** — AppShell의 `.content section`이 `padding-top: var(--space-20)` = **80px**을 모든 `<section>`에 꽂음. 메모리 [[feedback-no-semantic-tags-in-components]]가 이미 못 박은 함정인데 레시피 예시가 `<section>`을 그대로 썼음. 전수 `<div>`로 교체 + section-header 레시피 Don't에 명시 + ASSEMBLY §1 체크리스트 추가
|
|
88
|
+
- **그룹 안에서도 "미니 그룹" 필요** — introGroup 안 banner↔header↔hint 셋을 `space-3` 하나로 통일했더니 "같은 거리로 뭉쳐" 성격 구분 안 됨. **banner(메타)와 headerBlock(타이틀+설명)**을 분리하는 중간 wrapper(headerBlock) 추가 → introGroup gap을 `space-6`로 벌리고 headerBlock 안은 `space-2` 좁게. 그룹 설계는 **재귀적**이어야 함.
|
|
89
|
+
- **3-tier 리듬 수치 상향** — 초기 "섹션 반복 space-6 / 그룹 space-10"은 실측에서 좁았음. "섹션 ↔ 섹션 반복"과 "그룹 ↔ 그룹"은 둘 다 `space-20` (80px) 수준이 자연스러움. space-6은 "섹션 안 블록 단위" 또는 "같은 그룹 안 성격 다른 요소"에만.
|
|
90
|
+
- **"가까운 관계일수록 더 좁게" 원칙 확립 (ASSEMBLY §2a 재작성)** — 유저 지적: section header↔body `space-2` + cardList 아이템 간 `space-2`가 **같은 값**이라 "타이틀과 아이템이 같은 레벨"로 뭉쳐 보임. **인접한 두 레벨은 반드시 한 단계 이상 차이**가 나야 위계 성립. 수정: 아이템 간 `space-1`, 섹션 header↔body `space-3`. 같은 원칙으로 headerBlock gap도 `space-2`→`space-3` 상향 (pageHeader 안 title↔description이 `space-1`이므로)
|
|
91
|
+
- **"아이콘 + 다줄 muted 텍스트" 자리 → 벤더 `Hint`로 확정** — assembly-test의 inlineHint 수제 조립이 flex align/margin-top 보정으로도 반복 어긋남. 벤더 신설 결정, 이름 `Hint`. Layer 2 스펙은 [[components/hint]], Layer 1 코드는 유저 작성. 안내 자리 3층 구분 확립:
|
|
92
|
+
- 흐름 속 각주 (톤·액션 없음) = Hint
|
|
93
|
+
- 액션 유도 안내 블록 = Callout
|
|
94
|
+
- 페이지 폭 상태 바 = page-banner 레시피
|
|
95
|
+
- **벤더 신설이 레시피보다 나은 자리 식별 — 반복 함정 임계점** — 레시피 수정 2회 이상 반복해도 특정 조립 실패가 재발하면 "레시피로 담기 어려운 자리". 벤더로 승격 신호. "line-box 안 아이콘 정렬"처럼 **구현 디테일이 결과를 좌우**하는 자리는 특히.
|
|
96
|
+
- **card-row 변형 정책 갱신** — 과거의 벤더 강제·로컬 조합 금지를 해제했다. 현재 PRINCIPLES의 접근성·행동 보존과 변형 허용을 따른다.
|
|
97
|
+
|
|
98
|
+
이 섹션은 **살아있는 체인지로그** — 새 결함이 나오면 추가하고 레시피를 수정한다.
|
|
99
|
+
|
|
100
|
+
## 관련
|
|
101
|
+
|
|
102
|
+
- [[ASSEMBLY]] — 조립 알고리즘. 레시피는 그 3단계에서 참조된다
|
|
103
|
+
- [[GUIDE]] — 공통 골격·N/A 규칙. 레시피 파일도 이를 따른다
|
|
104
|
+
- [[components/_variants]] — 역할 × variant 매핑. 레시피 내 vendor 선택 시 참조
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# 카드형 반복 행
|
|
2
|
+
|
|
3
|
+
### 원칙
|
|
4
|
+
리스트에서 한 항목의 이름·상태·행동을 읽는 자리다. 행동과 접근성은 [[PRINCIPLES]]를 보존하고 외형은 업무에 맞게 변형한다.
|
|
5
|
+
|
|
6
|
+
### Anatomy
|
|
7
|
+
선택적인 leading, 주 내용, 필요한 상태·행동으로 구성한다. 보조 문구·chevron·배지를 기본으로 추가하지 않는다.
|
|
8
|
+
|
|
9
|
+
### Do
|
|
10
|
+
- 전체 카탈로그에서 ListItem, TableRow, EventListItem 등 역할에 맞는 행동을 먼저 확인한다.
|
|
11
|
+
- 기존 anatomy가 맞으면 재사용하고 표면·간격은 scoped skin으로 조정한다. 구조가 다르면 로컬 파생·semantic 목록 조합을 사용한다.
|
|
12
|
+
- 토큰은 공통 정의부를 사용하고 컨트롤 크기는 [[ASSEMBLY]]를 따른다.
|
|
13
|
+
- 항목 전체가 링크라면 내부에 다른 버튼을 중첩하지 않는다. 독립 행동은 링크 바깥의 형제 컨트롤로 배치한다.
|
|
14
|
+
|
|
15
|
+
### Don't
|
|
16
|
+
- [HARD] 표의 열 관계나 선택·키보드·링크 의미를 시각적 카드 모양 때문에 잃지 않는다.
|
|
17
|
+
- [SOFT] 모든 항목에 테두리·배경·장식을 반복하지 않는다.
|
|
18
|
+
- [SOFT] 카드 모양만 필요하다는 이유로 Core에 새 variant를 추가할 의무는 없다.
|
|
19
|
+
|
|
20
|
+
### Fallback
|
|
21
|
+
행동이 단순한 반복 목록은 ul/li와 실제 link/button을 조합할 수 있다. 복잡한 선택·키보드 로직은 검증된 부품을 우선 재사용한다.
|
|
22
|
+
|
|
23
|
+
### 조립 예시
|
|
24
|
+
```tsx
|
|
25
|
+
<ul className={styles.items}>
|
|
26
|
+
{items.map(item => (
|
|
27
|
+
<li key={item.id}>
|
|
28
|
+
<ListItem href={item.href} size="md">
|
|
29
|
+
<ListItem.Title>{item.title}</ListItem.Title>
|
|
30
|
+
</ListItem>
|
|
31
|
+
</li>
|
|
32
|
+
))}
|
|
33
|
+
</ul>
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### 관련
|
|
37
|
+
- [[components/list-item]]
|
|
38
|
+
- [[ASSEMBLY]]
|
|
39
|
+
- [[WORKFLOW_DESIGN]]
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
# Form Footer
|
|
2
|
+
|
|
3
|
+
### 원칙
|
|
4
|
+
폼·모달·drawer 하단의 **액션 묶음** 자리. 주 액션(primary)과 보조 액션(outline)이 **반드시 쌍으로** 등장하는 자리라 레시피로 못 박는다. 유저·AI가 자주 틀리는 지점: variant 선택, 좌/우 정렬, 액션 순서.
|
|
5
|
+
|
|
6
|
+
### Anatomy
|
|
7
|
+
한 줄 row, 액션은 **오른쪽 정렬**이 기본.
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
[.............................spacer............................] [secondary] [primary]
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
- spacer: `flex: 1 1 auto` (액션들을 오른쪽으로 밀어냄)
|
|
14
|
+
- secondary (취소·닫기): [[components/button]] `variant="outline"`
|
|
15
|
+
- primary (저장·제출·확인): [[components/button]] `variant="primary"`
|
|
16
|
+
- 액션 간 gap: `space-1` 고정 (버튼↔버튼 묶음, [[tokens/spacing]])
|
|
17
|
+
- footer 자체 상단: `space-4` 또는 `space-6` 공간 (본문과의 분리) — 선 없이 공간으로
|
|
18
|
+
|
|
19
|
+
### Do
|
|
20
|
+
- 액션 순서: **왼쪽 secondary → 오른쪽 primary** ([[components/_variants]] "중요=primary, 서브=outline")
|
|
21
|
+
- destructive 액션이 primary 자리로 올 때: `variant="destructive"` 사용. destructive가 두 번째 시선이면 `destructive-ghost`
|
|
22
|
+
- 모달의 경우 primary는 항상 하나 — ESC/닫기 외에 두 개 이상의 "주 액션"이 있으면 모달 설계 재검토
|
|
23
|
+
- footer 상단에 **선이 필요하면** `border-top: 1px solid var(--border)`만, 배경 변화 없이 — [[PRINCIPLES]] §5b
|
|
24
|
+
- 좌측에 **보조 정보**(예: "변경사항 저장 안 됨")가 필요하면 spacer 자리에 muted 텍스트 1줄. 더는 금지
|
|
25
|
+
|
|
26
|
+
### Don't
|
|
27
|
+
- [HARD] primary 2개 금지 — [[PRINCIPLES]] §4a HARD 예시. 주 액션은 한 화면에 하나
|
|
28
|
+
- [HARD] 액션을 세로로 쌓지 않는다 (모바일에서도 가로 유지가 기본). 세로가 필요하면 drawer/sheet가 맞는지 재검토
|
|
29
|
+
- [HARD] secondary로 `variant="secondary"`(레거시) 쓰지 않는다 — `outline`을 쓴다 ([[components/_variants]] 액션 선택 규칙)
|
|
30
|
+
- [HARD] 액션 사이 gap을 `space-2` 이상으로 벌리지 않는다 — 버튼 묶음은 `space-1` 고정 ([[tokens/spacing]])
|
|
31
|
+
- [SOFT] 왼쪽 정렬·중앙 정렬 금지 — 우측 정렬이 디폴트. 좌측 정렬은 오직 "폼 흐름이 좌에서 우로 흐르지 않는" 특수 자리에서만
|
|
32
|
+
|
|
33
|
+
### Fallback
|
|
34
|
+
primary 하나만 있으면 그 단독으로 (여전히 오른쪽 정렬). destructive가 primary 자리면 secondary도 반드시 함께 — 확인 가능한 escape를 제공.
|
|
35
|
+
|
|
36
|
+
### 조립 예시
|
|
37
|
+
```tsx
|
|
38
|
+
<footer className="form-footer">
|
|
39
|
+
<Button variant="outline" size="md" onClick={onCancel}>
|
|
40
|
+
취소
|
|
41
|
+
</Button>
|
|
42
|
+
<Button variant="primary" size="md" type="submit">
|
|
43
|
+
저장
|
|
44
|
+
</Button>
|
|
45
|
+
</footer>
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
```css
|
|
49
|
+
.form-footer {
|
|
50
|
+
display: flex;
|
|
51
|
+
justify-content: flex-end;
|
|
52
|
+
align-items: center;
|
|
53
|
+
gap: var(--space-1);
|
|
54
|
+
margin-top: var(--space-6);
|
|
55
|
+
}
|
|
56
|
+
/* 좌측 보조 정보가 필요한 경우 */
|
|
57
|
+
.form-footer .status {
|
|
58
|
+
margin-right: auto;
|
|
59
|
+
font-size: var(--text-sm);
|
|
60
|
+
color: var(--fg-muted);
|
|
61
|
+
}
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
destructive 예시:
|
|
65
|
+
```tsx
|
|
66
|
+
<footer className="form-footer">
|
|
67
|
+
<Button variant="outline" size="md">취소</Button>
|
|
68
|
+
<Button variant="destructive" size="md">삭제</Button>
|
|
69
|
+
</footer>
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
### 관련
|
|
73
|
+
- [[components/button]] — variant 선택
|
|
74
|
+
- [[components/_variants]] — 역할 × variant 매핑
|
|
75
|
+
- [[components/modal]] — footer 자리의 vendor host
|
|
76
|
+
- [[tokens/spacing]] — space-1 버튼 묶음 고정
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# Meta Line
|
|
2
|
+
|
|
3
|
+
### 원칙
|
|
4
|
+
한 줄 안에 **여러 메타 라벨**(요청 시각, 작성자, 상태 주석, 카테고리 등)을 가로로 나열하는 자리. 카드 서브텍스트, 리스트 row의 두번째 줄, 테이블 셀 아래 보조 라인에 반복 등장. 구분자가 틀리면 UI가 즉시 싸구려로 뜬다.
|
|
5
|
+
|
|
6
|
+
### Anatomy
|
|
7
|
+
```
|
|
8
|
+
[label1] [separator] [label2] [separator] [label3]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
- label은 모두 같은 톤·크기 (한 줄 안에서 위계 X)
|
|
12
|
+
- separator는 **짧고 연한 세로 hairline** 1개만 — 구간 사이에 들어감 (처음/끝 바깥 X)
|
|
13
|
+
- label과 separator 사이: `space-2` (양쪽 균등)
|
|
14
|
+
|
|
15
|
+
### Do
|
|
16
|
+
- 각 label: `text-xs` 또는 `text-sm`, `color: var(--fg-muted)`
|
|
17
|
+
- separator는 `<span>` + `border-left: 1px solid var(--border)` + `align-self: stretch` — 텍스트 하이트에 자동 맞춤
|
|
18
|
+
- separator는 `aria-hidden="true"` — 스크린리더에서 읽히지 않게
|
|
19
|
+
- label 중 하나가 **값**(사람 이름·시각)이고 나머지가 **고정 라벨**이면, 값만 `color: var(--fg)` (살짝 올림) — 단 톤 차이는 1단계 이내
|
|
20
|
+
- 전체 wrapper: `display: flex; align-items: center; gap: var(--space-2);`
|
|
21
|
+
- 날짜·시간은 [[feedback-date-writing]] 전략 중 하나로 (상대어 "12분 전" / "10월 13일") — 숫자 패턴("10. 13") 금지
|
|
22
|
+
|
|
23
|
+
### Don't
|
|
24
|
+
- [HARD] **가운뎃점(`·` `•` `∙`)·점(`.`)·pipe(`|`)·슬래시(`/`)** 등 **문자 구분자 금지** — 메모리 [no-bullet-separator]. hairline으로만 분리
|
|
25
|
+
- [HARD] separator를 label 앞뒤에도 넣지 않는다. **"사이에만"**. 끝에 또는 처음에 두면 끊긴 느낌
|
|
26
|
+
- [HARD] label 하나하나를 Badge로 쓰지 않는다 — 메타 라인은 톤이 조용해야 한다. Badge는 상태·카테고리 **표시**가 필요할 때만, 메타 라인에 섞이지 않게 분리
|
|
27
|
+
- [SOFT] 3개 넘으면 메타 라인이 아니라 **별도 블록**이 맞는지 재검토. 4개 이상은 사용자가 다 못 읽음
|
|
28
|
+
|
|
29
|
+
### Fallback
|
|
30
|
+
항목이 1개뿐이면 separator 없음. 2개 이상부터 hairline 사용.
|
|
31
|
+
|
|
32
|
+
### 조립 예시
|
|
33
|
+
```tsx
|
|
34
|
+
<div className="meta-line">
|
|
35
|
+
<span>요청 10월 13일 오후 10시 25분</span>
|
|
36
|
+
<span className="sep" aria-hidden="true" />
|
|
37
|
+
<span>근거 변경 확인 필요</span>
|
|
38
|
+
</div>
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
```css
|
|
42
|
+
.meta-line {
|
|
43
|
+
display: flex;
|
|
44
|
+
align-items: center;
|
|
45
|
+
gap: var(--space-2);
|
|
46
|
+
font-size: var(--text-sm);
|
|
47
|
+
color: var(--fg-muted);
|
|
48
|
+
}
|
|
49
|
+
/* separator는 border-left로 — width/height 리터럴 금지 (check_tokens hook) */
|
|
50
|
+
.meta-line .sep {
|
|
51
|
+
border-left: 1px solid var(--border);
|
|
52
|
+
align-self: stretch;
|
|
53
|
+
margin: var(--space-0\.5) 0;
|
|
54
|
+
flex: 0 0 auto;
|
|
55
|
+
}
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
### 관련
|
|
59
|
+
- [[components/badge]] — 상태·카테고리 표시가 필요하면 (메타 라인 바깥에 분리)
|
|
60
|
+
- [[tokens/color]] — fg-muted, border
|
|
61
|
+
- [[tokens/typography]] — text-sm/text-xs
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
# Page Banner
|
|
2
|
+
|
|
3
|
+
### 원칙
|
|
4
|
+
페이지 폭에 걸치는 **안내 바**. 공유 상태·만료 안내·시스템 공지·권한 경고 등 "이 페이지 전체에 적용되는 메타 상태"를 알린다. Callout과 다름 — Callout은 사이드바·리스트 끝의 **국소** 블록, Banner는 페이지 **상단/하단**의 전면 바.
|
|
5
|
+
|
|
6
|
+
관찰: 유저 페이지에서 ①상단 "공유 열람 10.20 만료" ②중간 "`</>` 자동 처리 안내" ③하단 "열람 권한 접속" 셋 다 Banner 성격인데 서로 다른 스타일로 조립됐다 — 이 레시피가 그 셋을 하나의 리듬으로 묶는다.
|
|
7
|
+
|
|
8
|
+
### Anatomy
|
|
9
|
+
한 줄 row.
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
[leading icon] [text (1~2줄)] [...spacer...] [action/dismiss]
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
- leading icon: 20px, [[components/icon]]
|
|
16
|
+
- text: `flex: 1 1 auto`, 1~2줄, `line-height: 1.4`
|
|
17
|
+
- action: [[components/button]] `variant="ghost"` 또는 간단한 link. **banner에서 primary 금지** — primary 액션이 필요하면 banner가 아니라 modal/dialog
|
|
18
|
+
- dismiss: [[components/icon-button]] `ghost` + close 아이콘 (옵션)
|
|
19
|
+
|
|
20
|
+
**padding:**
|
|
21
|
+
- 단일라인 (title만, 또는 1줄 메시지): 상하 `space-2`, 좌우 `space-3`
|
|
22
|
+
- 멀티라인 (title + sub, 또는 메타 라인 포함): 상하 `space-3`, 좌우 `space-4`
|
|
23
|
+
- 하단 조용한 안내: `data-size="sm"`로 다운스케일 — 상하 `space-2`, 좌우 `space-3`
|
|
24
|
+
|
|
25
|
+
**radius:** `var(--radius-md)` (단, 페이지 full-bleed로 쓰면 radius 0).
|
|
26
|
+
|
|
27
|
+
**gap:**
|
|
28
|
+
- leading↔text: 단일라인 `space-2`, 멀티라인 `space-3`
|
|
29
|
+
- text↔action: `space-3`
|
|
30
|
+
- banner.text 내부 title↔sub: `space-1` (space-0.5는 너무 타이트 — 두 줄이 녹아보임)
|
|
31
|
+
|
|
32
|
+
**leading icon 수직 정렬:** 멀티라인일 때 `align-self: flex-start` + `margin-top: space-0.5` — 센터 정렬이면 title보다 아이콘이 내려가 보임.
|
|
33
|
+
|
|
34
|
+
### Tone 체계
|
|
35
|
+
Banner는 톤 3종만 지원 — Callout과 통일.
|
|
36
|
+
|
|
37
|
+
| Tone | 자리 | 색 조합 |
|
|
38
|
+
|---|---|---|
|
|
39
|
+
| `info` | 상태 공지 (만료, 공유 모드) | `background: var(--bg-subtle)` + border 없음 |
|
|
40
|
+
| `warning` | 주의 (권한 제한, 임시 상태) | `background: var(--bg-warning-subtle)` + border 없음 |
|
|
41
|
+
| `critical` | 위험 (만료 임박, 오류) | `background: var(--bg-critical-subtle)` + border 없음 |
|
|
42
|
+
|
|
43
|
+
### Do
|
|
44
|
+
- leading icon은 tone에 맞춤 — info=`info`/`share-network`, warning=`warning-circle`, critical=`warning`. **아이콘 이름은 `web/components/Icon/Icon.tsx` 레지스트리에서 확인**
|
|
45
|
+
- 텍스트는 **1문장 명제 + (옵션) 부가 1문장** — 길어지면 banner가 아니라 Callout이나 dedicated page
|
|
46
|
+
- 액션 라벨은 **동사**로 짧게 ("공유 열람 종료", "자세히")
|
|
47
|
+
- 상단 banner면 Page Header 위에 둠. 블록 아래 gap: `space-4`
|
|
48
|
+
- 하단 banner면 섹션들 다 끝난 뒤, `space-6` 간격
|
|
49
|
+
|
|
50
|
+
### Don't
|
|
51
|
+
- Banner 기본형은 **배경 톤만** 사용한다. 경계를 더하면 배경과 아주 미세한 표시 색 차이만 허용한다 ([[PRINCIPLES]] §5b).
|
|
52
|
+
- [HARD] primary 버튼 금지 — banner는 "알림" 자리, 주 액션은 다른 곳
|
|
53
|
+
- [HARD] banner 안에 chip·Badge 섞지 않는다 — 톤이 겹쳐 시끄러워짐. 상태 분류가 필요하면 Banner tone을 바꾼다
|
|
54
|
+
- [HARD] 아이콘 인라인 `<svg>` 금지 — [[components/icon]] 경유
|
|
55
|
+
- [SOFT] banner 3개 이상 동시에 쌓지 않는다. 2개 이상이 쌓이면 "뭐가 중요한지" 판독 불가. 정보가 많으면 하나의 banner + "자세히" 액션으로
|
|
56
|
+
|
|
57
|
+
### Fallback
|
|
58
|
+
- action 없으면 그 자리 생략, text가 끝까지 참
|
|
59
|
+
- dismiss만 있고 action 없으면 dismiss는 trailing 우측 끝
|
|
60
|
+
|
|
61
|
+
### 조립 예시
|
|
62
|
+
```tsx
|
|
63
|
+
{/* info: 공유 열람 상태 */}
|
|
64
|
+
<aside className="page-banner" data-tone="info">
|
|
65
|
+
<Icon name="share-network" size={20} className="leading" />
|
|
66
|
+
<div className="text">
|
|
67
|
+
<strong>Kailey Kim님 프로젝트 공유 열람</strong>
|
|
68
|
+
<span className="sub">
|
|
69
|
+
조회 전용
|
|
70
|
+
<span className="sep" aria-hidden="true" />
|
|
71
|
+
10월 20일 오후 9시 53분 만료
|
|
72
|
+
<span className="sep" aria-hidden="true" />
|
|
73
|
+
Kailey 프로젝트 전체 공유
|
|
74
|
+
</span>
|
|
75
|
+
</div>
|
|
76
|
+
<Button variant="ghost" size="sm">공유 열람 종료</Button>
|
|
77
|
+
</aside>
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
```css
|
|
81
|
+
/* 기본형은 배경만. 경계 변형은 [[PRINCIPLES]] §5b의 미세한 색 차이 기준 적용. */
|
|
82
|
+
.page-banner {
|
|
83
|
+
display: flex;
|
|
84
|
+
align-items: center;
|
|
85
|
+
gap: var(--space-3);
|
|
86
|
+
padding: var(--space-3) var(--space-4);
|
|
87
|
+
border-radius: var(--radius-md);
|
|
88
|
+
}
|
|
89
|
+
.page-banner[data-size="sm"] {
|
|
90
|
+
padding: var(--space-2) var(--space-3);
|
|
91
|
+
gap: var(--space-2);
|
|
92
|
+
}
|
|
93
|
+
.page-banner[data-tone="info"] { background: var(--bg-subtle); }
|
|
94
|
+
.page-banner[data-tone="warning"] { background: var(--bg-warning-subtle); }
|
|
95
|
+
.page-banner[data-tone="critical"] { background: var(--bg-critical-subtle); }
|
|
96
|
+
|
|
97
|
+
.page-banner .leading {
|
|
98
|
+
color: var(--fg-muted);
|
|
99
|
+
flex: 0 0 auto;
|
|
100
|
+
align-self: flex-start;
|
|
101
|
+
margin-top: var(--space-0\.5);
|
|
102
|
+
}
|
|
103
|
+
.page-banner .text {
|
|
104
|
+
flex: 1 1 auto;
|
|
105
|
+
display: flex;
|
|
106
|
+
flex-direction: column;
|
|
107
|
+
gap: var(--space-1);
|
|
108
|
+
line-height: 1.4;
|
|
109
|
+
}
|
|
110
|
+
.page-banner .text .sub {
|
|
111
|
+
font-size: var(--text-sm);
|
|
112
|
+
color: var(--fg-muted);
|
|
113
|
+
}
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
### 관련
|
|
117
|
+
- [[components/callout]] — 국소 안내 블록 (사이드바·리스트 끝). Banner와 자리가 다름
|
|
118
|
+
- [[components/button]] — ghost 액션
|
|
119
|
+
- [[components/icon-button]] — dismiss
|
|
120
|
+
- [[tokens/color]] — bg-subtle, bg-warning-subtle, bg-critical-subtle
|
|
121
|
+
- [[PRINCIPLES]] §5b — 배경·테두리의 미세한 표시 색 차이
|