@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,61 @@
|
|
|
1
|
+
# Bubble
|
|
2
|
+
|
|
3
|
+
### 원칙
|
|
4
|
+
메시지 말풍선 **primitive**. Shape 4종 × Fill 4종 조합. [[components/user-message]]·[[components/ai-message]]의 Quote 블록·AttachmentItem 등 "담는 그릇" 역할 전부에 재사용.
|
|
5
|
+
|
|
6
|
+
### Do
|
|
7
|
+
- UserMessage는 `shape=circular-drop fill=translucent tail=end` 조합이 기본.
|
|
8
|
+
- AI Quote 블록은 `shape=rounded fill=outline` 또는 `fill=none`.
|
|
9
|
+
- Shape 축 따라 radius 변화 — rounded는 `radius-md` 토큰 사용 (soft/standard/crisp 반응 명확).
|
|
10
|
+
- circular-drop의 `tail` prop으로 꼬리 방향 지정 — user는 end, assistant/quote는 start.
|
|
11
|
+
|
|
12
|
+
### Don't
|
|
13
|
+
- Bubble을 "일반 Card" 용도로 쓰지 않는다 — 그건 [[components/metric-card]] / 커스텀.
|
|
14
|
+
- fill=`solid`는 user "강조" 메시지(선택된/하이라이트)에만 — 기본은 translucent.
|
|
15
|
+
- 꼬리를 양쪽 다 각지게 하지 않는다 — tail은 한 방향만.
|
|
16
|
+
|
|
17
|
+
### Fallback
|
|
18
|
+
shape 애매하면 `rounded`, fill 애매하면 `translucent`, size 애매하면 `md`.
|
|
19
|
+
|
|
20
|
+
### 관련
|
|
21
|
+
- [[components/user-message]] / [[components/ai-message]] — 상위 소비처
|
|
22
|
+
- [[components/badge]] — 작은 라벨은 Badge
|
|
23
|
+
- [[components/callout]] — 안내 상자는 Callout
|
|
24
|
+
|
|
25
|
+
### Props 시그니처
|
|
26
|
+
```tsx
|
|
27
|
+
<Bubble
|
|
28
|
+
shape="rounded | circular-drop | circular | square" // default: rounded
|
|
29
|
+
fill="none | solid | translucent | outline" // default: translucent
|
|
30
|
+
size="md | lg" // default: md
|
|
31
|
+
tail="start | end" // circular-drop에서만
|
|
32
|
+
>
|
|
33
|
+
Text
|
|
34
|
+
</Bubble>
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
### 매트릭스
|
|
38
|
+
| shape | radius |
|
|
39
|
+
|---|---|
|
|
40
|
+
| rounded | `--radius-md` (Shape 축 반응 명확: soft 14 / standard 10 / crisp 6) |
|
|
41
|
+
| circular-drop | `--radius-md` 세 코너 + `0` tail 코너 하나 (각짐) |
|
|
42
|
+
| circular | `--radius-full` (알약) |
|
|
43
|
+
| square | `--radius-sm` |
|
|
44
|
+
|
|
45
|
+
| fill | bg | fg | border |
|
|
46
|
+
|---|---|---|---|
|
|
47
|
+
| none | transparent | fg-strong | — |
|
|
48
|
+
| solid | primary | primary-fg | — |
|
|
49
|
+
| translucent | primary-subtle (알파 8%) | fg-strong | — |
|
|
50
|
+
| outline | bg | fg-strong | hairline border |
|
|
51
|
+
|
|
52
|
+
### Size
|
|
53
|
+
- `md` (기본): padding `space-2 space-3`, `text-base` — 일반 메시지 bubble.
|
|
54
|
+
- `lg`: padding `space-3 space-4`, `text-base` — 히어로/강조 bubble. 패딩만 넉넉, 폰트는 md와 동일.
|
|
55
|
+
|
|
56
|
+
소형 라벨이 필요하면 [[components/badge]] 사용.
|
|
57
|
+
|
|
58
|
+
<!-- component-contract -->
|
|
59
|
+
```json
|
|
60
|
+
{"roles":["bubble"],"native":[],"hints":[],"requires":[]}
|
|
61
|
+
```
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# ButtonGroup
|
|
2
|
+
|
|
3
|
+
### 원칙
|
|
4
|
+
기존 코드용 호환 이름. 새 조합과 전체 규칙은 [[components/control-group]]를 사용한다. 구현은 ControlGroup의 공통 엔진을 재사용하며 별도 동작/스타일을 유지하지 않는다.
|
|
5
|
+
|
|
6
|
+
### Props
|
|
7
|
+
```tsx
|
|
8
|
+
// 기존 직접/루트 import와 타입 이름 유지
|
|
9
|
+
import { ButtonGroup, ButtonGroupSeparator } from "@/components/ButtonGroup";
|
|
10
|
+
import type { ButtonGroupProps, ButtonGroupVariant } from "@/components/ButtonGroup";
|
|
11
|
+
<ButtonGroup variant="primary">
|
|
12
|
+
<Button size="md">저장</Button>
|
|
13
|
+
<ButtonGroup.Separator />
|
|
14
|
+
<Button size="md" aria-label="저장 옵션" leftIcon={<Icon name="caret-down" />} />
|
|
15
|
+
</ButtonGroup>
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
### Do
|
|
19
|
+
- 기존 default primary와 primary/inverse/secondary/outline/ghost 지원은 유지한다.
|
|
20
|
+
- 자식의 size를 유지한다. 새 ControlGroup과 달리 그룹이 size를 강제로 지정하지 않는다.
|
|
21
|
+
- 새 코드에서는 ControlGroup composition="buttons"를 사용한다. 새 기본 variant는 outline이므로 기존 primary 외형을 옮길 때 variant를 명시한다.
|
|
22
|
+
|
|
23
|
+
### Don't
|
|
24
|
+
- 기존 어댑터에 Input/Select를 새로 결합하지 않는다. 혼합 조합은 ControlGroup을 사용한다.
|
|
25
|
+
|
|
26
|
+
### Fallback
|
|
27
|
+
기존 호출은 유지한다. 새 버튼 조합은 ControlGroup composition="buttons"로 작성한다.
|
|
28
|
+
|
|
29
|
+
### 관련
|
|
30
|
+
- [[components/control-group]] — 정식 API와 공통 계약
|
|
31
|
+
|
|
32
|
+
<!-- component-contract -->
|
|
33
|
+
```json
|
|
34
|
+
{"roles":["button-group"],"native":[],"hints":[],"requires":[]}
|
|
35
|
+
```
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
# Button
|
|
2
|
+
|
|
3
|
+
### 원칙
|
|
4
|
+
텍스트 액션의 최소 단위. 클릭 시 무언가 **일어나는** 컨트롤 — 페이지 이동은 [[components/link]]. size는 [[axes/density]] 축과 연동되고, variant는 semantic 역할(강조 위계)만 담당한다.
|
|
5
|
+
|
|
6
|
+
### Do
|
|
7
|
+
- `loading`은 접근 가능한 이름을 유지하고 `aria-busy`를 전달한다. 기본 Spinner는 Motion 축을 따르며 모션 축소에서도 정적인 로딩 표시를 유지한다. `asChild`의 disabled/loading도 클릭·키보드 활성화를 차단하고 탭 순서에서 제외한다.
|
|
8
|
+
- **중요=`primary`, 서브=`outline`**이 기본 쌍이다. 모달 하단, 폼 하단, 페이지 액션 영역 등 "확정 + 취소/이전" 구조의 기본값. `secondary`는 primary tint가 섞인 색조 액션이 필요한 특별 맥락에서만 — 중립 서브 액션엔 `outline`이 먼저다.
|
|
9
|
+
- **버튼 사이 gap은 언제나 `space-1`(4px) 고정.** footer action 쌍, 툴바 액션 묶음, 폼 하단 등 어느 자리든 동일. `space-2` 이상 금지 — 두 버튼이 하나의 액션 묶음으로 묶여 읽히는 밀도를 유지.
|
|
10
|
+
- **기본은 `size="md"`**. 90% 이상의 경우 md. 다른 사이즈로 갈 명확한 이유가 있을 때만 바꾼다.
|
|
11
|
+
- **폼·컨트롤과 나란히 놓일 때는 그 컨트롤의 size와 맞춘다** — Input md 옆엔 Button md, Input sm 옆엔 Button sm. 미묘한 높이 차이가 정렬을 무너뜨린다.
|
|
12
|
+
- 한 작업 문맥의 대표 행동을 primary로 한다. 별도 모달과 같은 행동의 모바일 고정 CTA는 각 문맥에서 판단한다.
|
|
13
|
+
- **아이콘만 있는 버튼도 Button으로 처리** — label 없이 `leftIcon`만 넣으면 자동으로 정사각(width = height = `--control-h-*`), `leftIcon` + `rightIcon`(예: 아이콘 + `caret-down`)이면 텍스트 없이 좁은 대칭 패딩. 어느 쪽이든 `aria-label` 필수. 별도 [[components/icon-button]] 컴포넌트는 legacy — 신규 사용은 지양.
|
|
14
|
+
- **파괴적 액션은 위계로 2단 분리한다.**
|
|
15
|
+
- `destructive` — **강한 위계.** 확인 모달의 "정말 삭제하시겠습니까?" 최종 확인, 되돌릴 수 없는 결정적 순간. 평상시 옅은 빨강 배경 + 빨강 텍스트, hover 시 solid 빨강으로 전환되며 위험을 예고.
|
|
16
|
+
- `destructive-ghost` — **약한 위계.** 테이블 행/헤더의 삭제, 페이지에 그냥 노출된 삭제 버튼 등 일상적 목록 조작. 평상시 fg(검정) 텍스트로 눈에 띄지 않다가 hover 시에만 빨강 톤(8% 배경 + 빨강 텍스트)이 나타남.
|
|
17
|
+
|
|
18
|
+
### Don't
|
|
19
|
+
- 같은 작업 문맥에서 경쟁하는 primary를 불필요하게 늘리지 않는다.
|
|
20
|
+
- 버튼 사이 gap에 `space-2`(8px) 이상 금지 — 반드시 `space-1`(4px).
|
|
21
|
+
- height를 CSS로 덮어쓰지 않는다. `size` prop 경유.
|
|
22
|
+
- 페이지 이동에 Button 쓰지 않는다 — 시맨틱은 `<a>`.
|
|
23
|
+
- disabled 색을 variant별로 다르게 덮어쓰지 않는다. **모든 variant는 disabled 시 회색 배경(`--bg-muted`) + 실버 텍스트(`--fg-disabled`) + 투명 보더로 통일** — "지금은 못 누른다"가 variant 위계보다 우선 읽혀야 한다.
|
|
24
|
+
|
|
25
|
+
### 인터랙션
|
|
26
|
+
- **Press 피드백은 size별 scale 비율**로 다름. xs/sm은 `scale(0.98)`, md는 `scale(0.97)`, lg는 `scale(0.96)` — 큰 버튼일수록 더 많이 눌리는 체감으로 사이즈 리듬을 보조한다. translateY 금지 — layout 흔들림·사이즈별 체감 균일 문제를 피하기 위해 scale로 통일.
|
|
27
|
+
- **`prefers-reduced-motion: reduce` 자동 대응** — 시스템에서 모션 축소를 켜면 transition·transform 전부 off된다. 접근성 요구를 꺾지 않도록 override 금지.
|
|
28
|
+
- **Hover 시 아이콘 opacity 0.75 → 1.0** — 평상시 Silver 톤이 hover 때만 완전 선명. 아이콘 fill을 다른 색으로 바꾸지 말고 이 투명도 리듬을 그대로 활용.
|
|
29
|
+
|
|
30
|
+
### Fallback
|
|
31
|
+
size 애매하면 `md`, variant 애매하면 서브 자리에선 `outline`·대표 자리에선 `primary`.
|
|
32
|
+
|
|
33
|
+
### 관련
|
|
34
|
+
- [[components/split-button]] — 메인 액션 + 부가 옵션(caret) 2-part 버튼
|
|
35
|
+
- [[components/icon-button]] — legacy, 신규는 Button icon-only 사용
|
|
36
|
+
- [[components/input]] · [[components/select]] — 같은 화면에서 size 맞춤
|
|
37
|
+
- [[axes/density]] — `--control-h-*`가 size에 매핑
|
|
38
|
+
- [[axes/shape]] — radius가 Shape 축에 반응
|
|
39
|
+
- [[tokens/color]] — `--primary`, `--destructive` 등 variant 매핑
|
|
40
|
+
|
|
41
|
+
### Props 시그니처
|
|
42
|
+
```tsx
|
|
43
|
+
<Button
|
|
44
|
+
size="xs | sm | md | lg | xl" // default: md
|
|
45
|
+
variant="primary | inverse | secondary | neutral | elevated | outline | ghost | destructive | destructive-ghost" // default: primary
|
|
46
|
+
leftIcon={ReactNode} rightIcon={ReactNode}
|
|
47
|
+
loading={boolean} disabled={boolean}
|
|
48
|
+
fullWidth={boolean}
|
|
49
|
+
asChild={boolean} // Radix Slot 패턴
|
|
50
|
+
/>
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
### Variant 매트릭스
|
|
54
|
+
| variant | 용도 | 금지 조합 |
|
|
55
|
+
|---|---|---|
|
|
56
|
+
| `primary` | **중요 액션의 기본값.** 페이지 대표 액션(가입·제출·확인·다음) | 한 화면 2개 이상 금지 |
|
|
57
|
+
| `inverse` | 현재 Mode의 반대편 `elevated`. 라이트에서는 다크 elevated, 다크에서는 라이트 elevated | Palette와 무관 |
|
|
58
|
+
| `outline` | **서브 액션의 기본값.** 취소·이전 등 primary와 짝 이루는 중립 액션. 툴바·필터에도 사용. 글자·아이콘은 `--fg-muted`로 조용하게, hover 시 `--fg`로 올라와 primary가 또렷하게 먼저 읽히도록 톤을 낮춘다 | — |
|
|
59
|
+
| `secondary` | primary tint가 섞인 색조 액션이 필요할 때만. 중립 서브엔 `outline`이 먼저 | — |
|
|
60
|
+
| `neutral` | **중성 솔리드** — 눈에 많이 안 튀는 서브 액션. `bg-subtle` 톤 + 중립 fg. 브랜드 색이 자리를 지배하면 안 되는 "조용한 보조 버튼" (코드 blocks·툴바·메타 액션)에 적합. secondary보다 더 중립. | — |
|
|
61
|
+
| `elevated` | **표면 위로 은은히 떠 있는 느낌.** 솔리드 `bg-elev-1`(라이트=흰, 다크=어두움) + `shadow-md`. 본문 위에 "뜬 알림"처럼 올라앉은 자리 — 닥스 CodeBlock 안 Expand 버튼, floating action, 카드 위 토글 등. | 평평한 UI 흐름 안엔 과함 — 서브 액션엔 `outline`·`neutral` 먼저 |
|
|
62
|
+
| `ghost` | 최소 시각 무게. 인라인·툴바. | — |
|
|
63
|
+
| `destructive` | **강한** 위험 위계 — 확인 모달의 최종 삭제 버튼, 되돌릴 수 없는 결정 | 목록·툴바의 일상 삭제엔 과함 → `destructive-ghost` 사용 |
|
|
64
|
+
| `destructive-ghost` | **약한** 위험 위계 — 테이블/페이지에 노출된 일상적 삭제 | 최종 확인 자리엔 부족 → `destructive` 사용 |
|
|
65
|
+
|
|
66
|
+
### Size 가이드
|
|
67
|
+
| size | height | 언제 |
|
|
68
|
+
|---|---|---|
|
|
69
|
+
| `xs` | 24 | **거의 쓸 일 없음.** 극한 밀도가 정말 필요한 예외적 상황(인라인 태그 액션, 셀 내부 미니 컨트롤)에서만. 쓴다면 **`variant="ghost"` 강력 권장** — filled/outline은 이 크기에서 시각 무게가 과해 튀고 답답함. |
|
|
70
|
+
| `sm` | 32 | 밀도 높은 관리 UI, 툴바, 테이블 행 액션 |
|
|
71
|
+
| `md` | 36 | **기본.** 폼·모달·페이지 액션 대부분 |
|
|
72
|
+
| `lg` | 40 | 랜딩·온보딩의 대표 CTA. 손가락 hitbox 필요한 터치 |
|
|
73
|
+
| `xl` | 48 | 히어로·대형 CTA. 텍스트 한 단계 더 큰 자리 (text-lg). 랜딩 첫 화면 "지금 시작" 류 |
|
|
74
|
+
|
|
75
|
+
> **`xs` 사용 전 재고**: 밀도가 부족하다고 느껴진다면 먼저 Density 축(`--space-scale`)을 조이는 게 옳다. 페이지에 `xs`가 튀어나온다면 대부분 `sm` + Density 축 조정으로 해결된다.
|
|
76
|
+
|
|
77
|
+
### 조합 예시
|
|
78
|
+
```tsx
|
|
79
|
+
// 폼 하단: outline(서브) + primary(중요) 나란히, Input과 같은 size
|
|
80
|
+
<div style={{ display: "flex", gap: "var(--space-1)" }}>
|
|
81
|
+
<Button variant="outline">취소</Button>
|
|
82
|
+
<Button variant="primary" leftIcon={<CheckIcon />}>저장</Button>
|
|
83
|
+
</div>
|
|
84
|
+
|
|
85
|
+
// 테이블 행 액션: sm ghost로 밀도 확보
|
|
86
|
+
<Button size="sm" variant="ghost" leftIcon={<PencilIcon />}>수정</Button>
|
|
87
|
+
|
|
88
|
+
// 테이블/페이지의 일상적 삭제: destructive-ghost (약한 위계, hover에만 빨강)
|
|
89
|
+
<Button size="sm" variant="destructive-ghost" leftIcon={<TrashIcon />}>삭제</Button>
|
|
90
|
+
|
|
91
|
+
// 확인 모달의 최종 삭제 버튼: destructive (강한 위계)
|
|
92
|
+
<Modal>
|
|
93
|
+
<p>정말 삭제하시겠습니까?</p>
|
|
94
|
+
<Button variant="outline" onClick={close}>취소</Button>
|
|
95
|
+
<Button variant="destructive" onClick={confirmDelete}>삭제</Button>
|
|
96
|
+
</Modal>
|
|
97
|
+
|
|
98
|
+
// 아이콘만: 정사각 (aria-label 필수)
|
|
99
|
+
<Button variant="ghost" aria-label="검색" leftIcon={<Icon name="search" />} />
|
|
100
|
+
|
|
101
|
+
// 아이콘 + caret: 드롭다운 트리거 (텍스트 없이 좁은 대칭 패딩)
|
|
102
|
+
<Button
|
|
103
|
+
variant="outline"
|
|
104
|
+
aria-label="사용자 메뉴"
|
|
105
|
+
leftIcon={<Icon name="user" />}
|
|
106
|
+
rightIcon={<Icon name="caret-down" />}
|
|
107
|
+
/>
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
### data-slot
|
|
111
|
+
|
|
112
|
+
[[SLOTS]] 참고. 외부 참조·테스트·MCP 쿼리용 공식 API.
|
|
113
|
+
|
|
114
|
+
- `button-root` — `<button>` 자체
|
|
115
|
+
- `button-icon-start` — leftIcon 슬롯
|
|
116
|
+
- `button-label` — children 담는 span
|
|
117
|
+
- `button-badge` — badge 슬롯
|
|
118
|
+
- `button-icon-end` — rightIcon 슬롯
|
|
119
|
+
- `button-spinner` — loading 상태 Spinner overlay
|
|
120
|
+
|
|
121
|
+
### state attributes
|
|
122
|
+
|
|
123
|
+
- `data-loading="true"` — 로딩 중 (label·icon 숨기고 Spinner overlay). `disabled` 자동 세팅됨
|
|
124
|
+
- `data-variant` — `primary|inverse|secondary|outline|ghost|destructive|destructive-ghost` 중 하나
|
|
125
|
+
- `data-icon-only="true"` — 아이콘만 (children 없음)
|
|
126
|
+
|
|
127
|
+
<!-- component-contract -->
|
|
128
|
+
```json
|
|
129
|
+
{"roles":["action"],"native":["button"],"hints":["primary","iconButton","export"],"requires":[]}
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
### ControlGroup 조합
|
|
133
|
+
[[components/control-group]] 안에서는 그룹의 sm/md/lg 크기를 공유한다. 라벨·설명·오류와 각 컨트롤의 행동은 유지하며, 팝오버 콘텐츠는 그룹에서 분리한다.
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
# Full Page Calendar
|
|
2
|
+
|
|
3
|
+
### 원칙
|
|
4
|
+
|
|
5
|
+
페이지의 **주 콘텐츠 영역을 넓게 차지하는 풀페이지 일정 캘린더**. 작은 날짜 선택 위젯이 아니라 일정명·시간을 월 전체에서 읽고 비교하는 큰 작업 영역이다. 표시 이름은 **Full Page Calendar**, 코드 export는 기존 `Calendar`를 사용한다. "풀페이지"는 브라우저 전체 화면 모드를 강제한다는 뜻이 아니라 페이지 본문의 중심으로 배치한다는 뜻이다. 작은 카드·사이드바에서 날짜와 일정 유무를 탐색할 때는 [[components/mini-calendar]], 폼에서 날짜 값 하나를 고르는 입력은 [[components/date-picker]]를 사용한다.
|
|
6
|
+
|
|
7
|
+
### 배치·크기 사용 규칙
|
|
8
|
+
- **페이지 본문의 주 영역에 크게 배치한다.** 본문 가로 폭을 우선 배정하고 월 제목·탐색·요일·일정 그리드를 하나의 작업 영역으로 구성한다. 작은 카드, 좁은 사이드바, Popover 안에 축소해 넣지 않는다.
|
|
9
|
+
- **일정 가독성을 기준으로 너비를 정한다.** 데스크톱 7열은 제목 전용에서 열당 약 120px(전체 약 840px), 제목+시간에서 열당 약 144px(전체 약 1008px) 이상을 권장한다. 폰트·언어·일정 길이에 따라 더 넓게 배치한다. 시간이 밀리거나 제목이 몇 글자만 보이면 글자를 줄이기보다 배치 폭을 먼저 넓힌다.
|
|
10
|
+
- **행 높이를 함께 확보한다.** 셀 안의 EventChip은 항상 공식 `size="sm"`을 사용한다. 별도 크기 스킨으로 덮어쓰지 않는다. 일정 칩 여러 개와 날짜·초과 수량 텍스트가 들어갈 높이가 필요하다. 일정이 있는 월간 업무 뷰는 주당 약 136~152px를 시작점으로 삼고 데이터 밀도에 맞춘다. 전체 높이를 무조건 작게 고정해 일정을 숨기지 않는다.
|
|
11
|
+
- **필요한 주 수만 표시한다.** 월마다 5·6주 등 자연스러운 행 수를 유지하며, 일정한 밀도가 필요하면 주 수에 비례해 호스트 높이를 바꾼다. 빈 주를 채워 항상 6줄로 만드는 방식을 기본값으로 쓰지 않는다.
|
|
12
|
+
- **좁은 화면도 주 콘텐츠로 유지한다.** 제목·날짜 이동은 화면 안에 두고 그리드 내부 가로 스크롤을 사용한다. 데스크톱에서는 먼저 충분한 본문 폭을 배정해 월 전체를 훑을 수 있게 한다.
|
|
13
|
+
- `eventVariant="dot"`은 같은 큰 캘린더의 일정 유무를 요약하는 타입이다. 이 옵션이 작은 카드·미니 캘린더 사용을 허용한다는 뜻은 아니다. 작은 영역의 일정 점 탐색은 별도 [[components/mini-calendar]]를 사용한다.
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Do
|
|
17
|
+
- `eventAppearance="soft | outline | filled"`로 일반 일정의 EventChip 표면을 선택한다. 할 일은 항상 outline이다. 기본은 `soft`이며 항상 `size="sm"`을 유지한다. 콘텐츠 표현 `eventVariant`와 시간 표시 `showTime`은 독립적이다.
|
|
18
|
+
- `events`에 일반 일정과 `type="task"` 할 일을 함께 넣는다. 할 일의 `completed`/`disabled`를 EventChip에 전달하고 공용 Checkbox 완료 모션을 그대로 사용한다. `onTaskCompletedChange(task, completed)`에서 상태를 갱신한다. `onTaskComplete(task)`는 모션 종료 알림이다. 항목을 실제 제거하거나 옮기려면 이 시점에 처리하며, 완료 항목 표시를 다시 켤 때 복원하려면 원본 records를 유지한다.
|
|
19
|
+
- `showTime`은 기본 false다. 켜면 일정·할 일의 표시용 time을 전달하며, 일반 일정의 dot은 점 표현을 유지한다. 기존 eventVariant=time 값도 받지만 실제 시간 표시는 showTime으로 제어한다.
|
|
20
|
+
- `showCompletedTasks`는 기본 true다. 켜면 완료 모션 후 완료된 체크·취소선 상태로 유지한다. 끄면 초기 완료 항목은 제외하고, 방금 체크한 항목은 공용 모션이 끝난 뒤 제외한다. 다시 켜면 유지한 완료 records를 복원한다. 전역 완료 상태를 유지하려면 completed와 변경 콜백을 호스트에서 제어한다.
|
|
21
|
+
- 날짜 셀은 labelled group이며 독립 날짜 선택 Button과 할 일 Checkbox가 형제 컨트롤이다. 할 일을 버튼·aria-hidden 안에 넣지 않는다. 체크로 날짜 선택을 바꾸지 않으며, 완료 후 초과 개수와 가려진 항목을 다시 계산한다.
|
|
22
|
+
- 날짜 버튼의 접근 가능한 요약에는 가려진 할 일의 제목·완료 상태·초과 개수까지 포함한다. 전체 날짜 목록에서 숨은 할 일도 처리하는 상세 UI가 필요하면 `onSelectedDateChange`의 날짜와 호스트의 events로 패널을 조립한다. Calendar 자체는 셀 안 스크롤이나 상세 팝업을 추가하지 않는다.
|
|
23
|
+
- 월에 필요한 자연스러운 주 수를 표시한다. 불필요한 빈 주를 추가하지 않는다. 일정 밀도를 유지하려면 호스트에서 주 수에 비례해 전체 높이를 조절하며, 주말 숨김은 행 수를 유지하고 5열로 표시한다.
|
|
24
|
+
- `month`는 controlled — 외부 상태로 쥔다. `onMonthChange` 짝. `selectedDate`도 controlled.
|
|
25
|
+
- 이벤트 pill의 `tone`은 **의미**에 매핑. 색은 7개 토큰(default/accent/success/warning/danger/info/neutral)만 — Presto류 14색 팔레트 재현 금지.
|
|
26
|
+
- 셀을 넘치는 이벤트는 자동으로 초과 수량 표시로 접힌다. 일정 아래 별도 공간에 배경·테두리 없는 작은 수량 텍스트(`3 more` / `외 3개`)로 표시해 일정과 겹치지 않는다. 이 Calendar 초과 표시는 사용자가 Badge 대신 텍스트를 명시한 예외다. 내부 스크롤과 셀별 높이 증가는 금지한다.
|
|
27
|
+
- `weekStartsOn`은 기본 `1` (월요일) — 업무 캘린더 관행. 생활 캘린더는 `0`으로 명시.
|
|
28
|
+
- 요일 헤더는 중립 muted 톤으로 통일한다. 현재 달 날짜는 과거여도 읽기 쉬운 대비를 유지하고 다른 달 날짜만 낮은 대비로 구별한다.
|
|
29
|
+
- 선택된 셀은 배경과 날짜 글자색을 바꾸지 않고 브랜드 색(`--primary`) 1px 안쪽 테두리와 `aria-pressed`로 표시한다. 선택 셀의 hover·키보드 포커스에서도 브랜드 색 테두리를 유지한다.
|
|
30
|
+
- 오늘 날짜는 날짜 줄 오른쪽에 작은 `Tag size="sm" variant="soft" status="neutral"`의 `today` 라벨로 표시하고 `aria-current="date"`를 제공한다. 날짜 숫자에 검정 원형 배경을 넣지 않는다. 오늘 복귀 버튼은 현재 달에서도 유지한다.
|
|
31
|
+
- 이벤트 밀도가 높고 라벨이 노이즈가 되는 월간 overview에는 `eventVariant="dot"` — 라벨 없이 색점만 가로 wrap. 기본 뷰는 `default`(라벨 바).
|
|
32
|
+
- 전체 Calendar를 테두리로 감싸지 않는다. 월 제목·날짜 이동 툴바는 프레임 밖에 두고, 요일 헤더부터 날짜 그리드까지만 하나의 외곽선으로 감싼다. 내부 가로·세로선과 5↔7열 전환은 유지한다. 각 행 마지막 칸의 오른쪽 선은 생략하고 프레임이 오른쪽 외곽선을 한 번만 그린다. 상단 월 제목과 이동 버튼 양끝은 아래 프레임 양끝에 맞추며 툴바 좌우 패딩을 추가하지 않는다.
|
|
33
|
+
|
|
34
|
+
### Don't
|
|
35
|
+
- Popover로 감싸지 않는다 — 이건 DatePicker 자리. Calendar는 페이지 레이아웃의 블록 영역을 차지한다.
|
|
36
|
+
- 셀 안에 "클릭 가능한 이벤트 pill"을 만들지 않는다 — 셀 전체가 하나의 클릭 타겟이고, 상세는 사이드 패널·Drawer에서 연다. pill 안에 또 버튼이 들어가면 클릭 영역이 미궁에 빠진다.
|
|
37
|
+
- 요일 헤더에 "월요일/화요일" 두 글자 표기 금지 — "월·화" 한 글자. 두 글자는 가로 공간을 먹고 셀 수가 줄어든 느낌을 준다.
|
|
38
|
+
- 하루 셀에 라벨 일정은 최대 3개만 표시한다. 실제 공간에 맞춰 더 적게 표시할 수 있으며 넘치면 작은 수량 텍스트로 접는다.
|
|
39
|
+
- `showWeekend=false`일 때 토·일 셀 자리를 유지하지 않는다 — 숨길 거면 열 자체를 5열로 접는다.
|
|
40
|
+
- 이벤트 pill에 `pill` radius(완전 둥근) 쓰지 않는다 — Shape 축이 radius를 쥐고 있는데 pill로 고정하면 Soft/Standard/Crisp 신호가 셀 안에서 깨진다.
|
|
41
|
+
- Calendar 자체 상단바에 "주말 숨김" 류 **뷰 옵션 토글**을 넣지 않는다 — Calendar는 콘텐츠 블록이고, 뷰 옵션은 호스트 화면의 툴바 영역이 담당한다. 외부 state로 `showWeekend`를 넘겨 조립할 것. (월 이동·오늘 복귀는 Calendar 내부 — 뷰 옵션이 아니라 "지금 보는 좌표" 조작이므로 예외.)
|
|
42
|
+
|
|
43
|
+
### Fallback
|
|
44
|
+
`today` 생략하면 `new Date()`. `selectedDate` 없이도 성립 — 그냥 뷰어로 쓸 수 있다. `events` 빈 배열이어도 그리드만 그려진다. `tone` 애매하면 `default`.
|
|
45
|
+
|
|
46
|
+
### 관련
|
|
47
|
+
- [[components/event-chip]] — 셀 안에 쌓이는 일정 블록. Calendar가 자동으로 그려주지만 톤·props 체계는 EventChip 문서를 1차 참조.
|
|
48
|
+
- [[components/date-picker]] — "날짜 입력"이 목적이면 그쪽. Popover + Input 트리거. Calendar와 utils(buildMonthGrid 등) 공유.
|
|
49
|
+
- 초과 일정 수는 작은 일반 텍스트로 표시한다. 배경·테두리·알약 모양의 Badge로 만들지 않는다.
|
|
50
|
+
- [[components/icon-button]] — outline·md의 실제 IconButton으로 이전/다음 달 이동을 제공한다. 정사각형 36px로 오늘 버튼 높이와 맞추고 연도 이동 버튼은 표시하지 않는다.
|
|
51
|
+
- [[components/button]] — 오늘 복귀 버튼은 outline·md이며 현재 달에도 표시한다.
|
|
52
|
+
- [[axes/shape]] — 큰 요일·날짜 프레임은 Shape 곡선을 유지하되 반경을 `min(--radius-lg, --size-4)`로 제한한다. soft·standard의 큰 반경이 과하게 둥글어지지 않도록 Calendar 범위에서만 조정한다. 셀은 각진 격자이며 EventChip·Tag·버튼과 전역 Shape 토큰은 별도로 유지한다.
|
|
53
|
+
- [[axes/density]] — compact일수록 셀 padding이 줄고 EventChip이 더 많이 보임.
|
|
54
|
+
- [[tokens/color]] — `--primary`(선택), `--hover`(셀 hover), `--border`(hairline), `--info`/`--destructive`(요일 신호).
|
|
55
|
+
|
|
56
|
+
### Props 시그니처
|
|
57
|
+
|
|
58
|
+
```tsx
|
|
59
|
+
<Calendar
|
|
60
|
+
month={Date} // required — 현재 보여줄 달 (controlled)
|
|
61
|
+
today={Date} // default: new Date()
|
|
62
|
+
selectedDate={Date | null} // 셀 하이라이트
|
|
63
|
+
events={CalendarEvent[]} // id/date/title/time?/tone?
|
|
64
|
+
eventVariant={"default" | "time" | "dot"} // default: "default" — 라벨 바. dot=색점만
|
|
65
|
+
showTime={boolean} // default: false
|
|
66
|
+
showCompletedTasks={boolean} // default: true
|
|
67
|
+
weekStartsOn={0 | 1} // default: 1 (월)
|
|
68
|
+
showWeekend={boolean} // default: true
|
|
69
|
+
leadingSlot={ReactNode} // 상단바 왼쪽 — Google 연결 뱃지 등
|
|
70
|
+
showTodayButton={boolean} // default: true
|
|
71
|
+
onMonthChange={(next: Date) => void}
|
|
72
|
+
onSelectedDateChange={(next: Date) => void}
|
|
73
|
+
onTaskCompletedChange={(task: CalendarEvent, completed: boolean) => void}
|
|
74
|
+
onTaskComplete={(task: CalendarEvent) => void} // after shared completion animation
|
|
75
|
+
/>
|
|
76
|
+
|
|
77
|
+
type CalendarEvent = {
|
|
78
|
+
id: string;
|
|
79
|
+
date: string; // yyyy-MM-dd
|
|
80
|
+
title: string;
|
|
81
|
+
time?: string; // 로케일에 맞게 포맷한 표시 시간
|
|
82
|
+
tone?: "default" | "accent" | "success" | "warning" | "danger" | "info" | "neutral";
|
|
83
|
+
type?: "event" | "task"; // default: event
|
|
84
|
+
completed?: boolean;
|
|
85
|
+
disabled?: boolean;
|
|
86
|
+
};
|
|
87
|
+
// 셀 안 렌더링은 EventChip이 담당. 시각은 showTime=true에서 표시. 코드·주최자는 Calendar 밖
|
|
88
|
+
// 사이드 패널·상세 뷰에서 다룬다. [[components/event-chip]] 참조.
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
### Tone
|
|
92
|
+
|
|
93
|
+
이벤트 톤 7개(default/neutral/accent/success/warning/danger/info) — 상세 매트릭스는 [[components/event-chip]]에서 1차 정의한다. Calendar는 `event.tone`을 그대로 EventChip에 전달.
|
|
94
|
+
|
|
95
|
+
**금지 조합**
|
|
96
|
+
- `tone="danger"`를 "눈에 띄게" 쓰려고 전부 danger로 깔기 — 색이 의미 신호를 잃는다. 셀당 1개가 danger라면 다른 셀은 default/accent여야 한다.
|
|
97
|
+
- Calendar를 작은 카드·좁은 사이드바에 축소해 넣기 — 이 컴포넌트는 페이지의 큰 일정 작업 영역이다. 날짜 값 선택이 목적이면 DatePicker를 사용한다.
|
|
98
|
+
- `showWeekend=false` + 월말 날짜가 토/일에 몰린 달 — 선택 가능한 셀이 사라져 "클릭이 안 되는 날짜"가 생긴다. 주말 숨김은 평일만 다루는 업무 캘린더 전용.
|
|
99
|
+
|
|
100
|
+
### 조합 예시
|
|
101
|
+
|
|
102
|
+
```tsx
|
|
103
|
+
// 기본 — 페이지 메인에 깔리는 월간 뷰
|
|
104
|
+
const [month, setMonth] = useState(new Date());
|
|
105
|
+
const [selected, setSelected] = useState<Date | null>(new Date());
|
|
106
|
+
|
|
107
|
+
<Calendar
|
|
108
|
+
month={month}
|
|
109
|
+
selectedDate={selected}
|
|
110
|
+
events={events}
|
|
111
|
+
onMonthChange={setMonth}
|
|
112
|
+
onSelectedDateChange={setSelected}
|
|
113
|
+
/>
|
|
114
|
+
|
|
115
|
+
// 2단 레이아웃 — 선택 날짜 상세 패널과 짝. 리스트는 ListItem으로 조립.
|
|
116
|
+
<div className="flex min-h-0 flex-1">
|
|
117
|
+
<Calendar
|
|
118
|
+
month={month}
|
|
119
|
+
selectedDate={selected}
|
|
120
|
+
events={events}
|
|
121
|
+
onMonthChange={setMonth}
|
|
122
|
+
onSelectedDateChange={setSelected}
|
|
123
|
+
/>
|
|
124
|
+
<aside className="w-80 shrink-0 border-l border-[var(--border)]">
|
|
125
|
+
<SelectedDayPanel date={selected} items={eventsOf(selected)} />
|
|
126
|
+
</aside>
|
|
127
|
+
</div>
|
|
128
|
+
|
|
129
|
+
// 외부 상태 신호가 있는 상단바 — leadingSlot으로 Badge 꽂음
|
|
130
|
+
<Calendar
|
|
131
|
+
leadingSlot={<Tag variant="soft" status="info">Google 연결됨</Tag>}
|
|
132
|
+
month={month}
|
|
133
|
+
onMonthChange={setMonth}
|
|
134
|
+
/>
|
|
135
|
+
|
|
136
|
+
// 업무 전용 — 주말 숨김, 월요일 시작
|
|
137
|
+
<Calendar
|
|
138
|
+
month={month}
|
|
139
|
+
showWeekend={false}
|
|
140
|
+
weekStartsOn={1}
|
|
141
|
+
onMonthChange={setMonth}
|
|
142
|
+
/>
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
<!-- component-contract -->
|
|
146
|
+
```json
|
|
147
|
+
{"roles":["calendar"],"native":[],"hints":[],"requires":["ThemeController"]}
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
### 제목과 시간
|
|
151
|
+
`showTime`을 켜면 EventChip의 시간 타입을 사용한다. 기본은 시간 숨김이다. `CalendarEvent.time`은 표시용 문자열이며, 배치는 EventChip의 기본 구성을 따른다. 시간은 줄바꿈하거나 잘리지 않고 제목이 먼저 말줄임된다. 좁은 화면은 날짜 열의 최소 폭을 확보해 그리드 내부에서 가로 스크롤한다. 시간이 없는 일정은 제목만 표시한다.
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
# Callout
|
|
2
|
+
|
|
3
|
+
### 원칙
|
|
4
|
+
사이드바·리스트 끝·설정 패널의 여백에 상주하는 소형 안내 카드. 페이지 흐름을 끊지 않고 새 기능·이동 경로를 제시한다. hover가 없는 [[components/tooltip]], 휘발되는 Toast, 페이지 폭 전체를 덮는 [[recipes/page-banner]]와 구분된다.
|
|
5
|
+
|
|
6
|
+
### Do
|
|
7
|
+
- 표면은 `fill` 하나 — tone tint 배경 + 투명 border 로 신호를 담는다. 색 테두리 없음.
|
|
8
|
+
- 강조 색은 `tone` 으로 제어한다.
|
|
9
|
+
- `dismissible=true`면 `onDismiss`와 함께 부모가 숨김 상태를 저장한다.
|
|
10
|
+
- `actions`는 [[components/button]] slot이다 — variant는 자유, size는 `xs`(기본) 또는 `sm`만.
|
|
11
|
+
- 액션 Button의 색은 `tone`을 따라간다 — solid/soft 버튼이면 같은 tone(warning엔 warning 버튼, destructive엔 destructive 버튼), 아니면 `ghost`/`outline` 중립. tone과 다른 색 solid 버튼으로 신호를 깨지 않는다.
|
|
12
|
+
- 좁은 컨테이너에선 `actionsPlacement="bottom"` 유지, `right`는 본문이 짧고 카드가 가로로 넓을 때만.
|
|
13
|
+
- `warning`/`destructive` tone은 `icon` 미지정 시 각각 `warning-circle`(주의) / `warning`(위험)이 자동. 다른 의미 아이콘이 필요할 때만 override한다.
|
|
14
|
+
- 톤을 "비권장" 수준으로 낮추고 싶으면 Callout 자체를 쓰지 않는다 — [[components/callout]] 대신 `fg-muted` 색 **인라인 텍스트 한 줄**로 처리.
|
|
15
|
+
|
|
16
|
+
### Don't
|
|
17
|
+
- 페이지 폭 전역 경고에 쓰지 않는다 — [[recipes/page-banner]] 영역.
|
|
18
|
+
- 임시 피드백에 쓰지 않는다 — Toast를 쓴다.
|
|
19
|
+
- 본문을 4줄 넘게 채우지 않는다.
|
|
20
|
+
- `tone`을 임의 색상으로 확장하지 않는다.
|
|
21
|
+
- `variant="outline"`은 폐기된 API이므로 사용하지 않는다. 현재 `fill`에 scoped skin으로 테두리를 더할 때는 배경과 아주 미세한 표시 색 차이만 허용한다 ([[PRINCIPLES]] §5b). 진한 스트로크로 이중 강조하지 않는다. 비권장 메시지는 muted 인라인 텍스트로.
|
|
22
|
+
|
|
23
|
+
### Fallback
|
|
24
|
+
`variant` 는 `fill` 하나뿐. `tone` 애매하면 `brand`. `actionsPlacement` 애매하면 `bottom`.
|
|
25
|
+
|
|
26
|
+
### 관련
|
|
27
|
+
- [[recipes/page-banner]] — 페이지 폭 전면 경고. Callout은 국소 카드.
|
|
28
|
+
- [[components/button]] — actions 슬롯의 실제 요소이며 variant 규칙 원본.
|
|
29
|
+
- [[components/badge]] — title 옆 상태 라벨.
|
|
30
|
+
- [[axes/palette]] — brand와 tone별 강조 색을 스왑.
|
|
31
|
+
|
|
32
|
+
### Props 시그니처
|
|
33
|
+
```tsx
|
|
34
|
+
<Callout
|
|
35
|
+
title={ReactNode} // optional (compound 쓰면 생략 가능)
|
|
36
|
+
icon={IconName | ReactNode} // 문자열은 Icon 자동 wrap, Avatar·Badge 등도 수용
|
|
37
|
+
tone="neutral | brand | success | warning | destructive" // default: brand
|
|
38
|
+
actions={ReactNode}
|
|
39
|
+
actionsPlacement="bottom | right" // default: bottom
|
|
40
|
+
dismissible={boolean} // default: false
|
|
41
|
+
onDismiss={() => void}
|
|
42
|
+
dismissLabel={string}
|
|
43
|
+
>{children}</Callout>
|
|
44
|
+
|
|
45
|
+
// Compound 패턴 — title에 heading 레벨(h2/h3 등)이 필요할 때
|
|
46
|
+
<Callout tone="brand" icon="info">
|
|
47
|
+
<Callout.Title as="h2">저장됨</Callout.Title>
|
|
48
|
+
<Callout.Description>서버에 반영됐어요.</Callout.Description>
|
|
49
|
+
</Callout>
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
> `variant` prop 은 폐기됨. 과거 코드는 자동으로 `fill` 로 동작하지만, 신규 작성 시 명시하지 않는다.
|
|
53
|
+
|
|
54
|
+
### Variant 매트릭스
|
|
55
|
+
`variant` 는 `fill` 하나로 고정. tone 별 표면 색만 바뀐다.
|
|
56
|
+
|
|
57
|
+
| tone | fill (유일 variant) | 용도 |
|
|
58
|
+
|---|---|---|
|
|
59
|
+
| `neutral` | 회색 표면(`bg-subtle`) + `fg-muted` 아이콘 | 톤 없는 기본 안내·중립 컨텍스트 |
|
|
60
|
+
| `brand` | tone 8% tint 표면 + brand 아이콘 | 신기능·프로모션·마이그레이션 유도 |
|
|
61
|
+
| `success` | success 8% tint + success 아이콘 | 완료·다음 스텝 제안 |
|
|
62
|
+
| `warning` | warning 8% tint + warning 아이콘 | 만료·용량 임박·설정 누락 |
|
|
63
|
+
| `destructive` | destructive 8% tint + destructive 아이콘 | 삭제 예정·비가역 상태 |
|
|
64
|
+
|
|
65
|
+
모든 tone 에서 border 는 `transparent` — 색 테두리는 fill 표면과 신호가 겹쳐 소음만 더한다. 영역 분리가 필요하면 외부 레이아웃 gap 으로 해결, Callout 자체는 테두리를 그리지 않음.
|
|
66
|
+
|
|
67
|
+
**금지 조합**
|
|
68
|
+
tone이 톤 신호를 쥐고 있으므로, 그 안의 요소들(액션 버튼·아이콘)도 같은 신호를 유지해야 한다. 색이 어긋나면 사용자는 어느 쪽을 믿어야 할지 결정하지 못한다.
|
|
69
|
+
|
|
70
|
+
- `tone`과 다른 색상 CTA Button을 섞지 않는다 — `warning` 콜아웃 안에 `brand`(파랑) solid 버튼, `destructive` 콜아웃 안에 `success`(초록) 버튼처럼 신호가 어긋나는 조합은 금지. 액션 Button은 같은 tone의 색을 쓰거나(`solid`/`soft`), 색 신호를 비우는 `ghost`/`outline` 중립 버튼만 허용.
|
|
71
|
+
- `brand` tone 콜아웃에 `secondary` 톤 solid 버튼으로 메인 CTA를 두지 않는다 — 톤이 brand면 주 액션도 brand solid, 보조 액션만 ghost.
|
|
72
|
+
- `tone=success` + 파괴 액션(`destructive` Button) — 긍정 맥락 안의 비가역 액션은 사용자를 속인다.
|
|
73
|
+
- `tone=destructive` + `success` 아이콘(check 등) — 아이콘이 톤을 뒤집는다.
|
|
74
|
+
- `tone=warning` + `success` 아이콘, `tone=warning` + brand solid 버튼 등 톤↔요소 신호 역전 금지.
|
|
75
|
+
- 한 콜아웃 안에 서로 다른 tone의 solid 버튼 둘을 나란히 두지 않는다 — primary 1개 + 중립(ghost/outline) 1개 패턴만.
|
|
76
|
+
|
|
77
|
+
### 조합 예시
|
|
78
|
+
```tsx
|
|
79
|
+
<Callout
|
|
80
|
+
icon="stack"
|
|
81
|
+
title="Import Issues"
|
|
82
|
+
dismissible
|
|
83
|
+
onDismiss={() => setHidden(true)}
|
|
84
|
+
dismissLabel="Dismiss"
|
|
85
|
+
actions={
|
|
86
|
+
<Button variant="ghost" size="sm" rightIcon={<Icon name="arrow-right" />}>
|
|
87
|
+
Try Now
|
|
88
|
+
</Button>
|
|
89
|
+
}
|
|
90
|
+
>
|
|
91
|
+
Use our Migration Assistant to copy issues from another service.
|
|
92
|
+
</Callout>
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
<!-- component-contract -->
|
|
96
|
+
```json
|
|
97
|
+
{"roles":["persistent-notice"],"native":[],"hints":["teamNote","monthNote"],"requires":[]}
|
|
98
|
+
```
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# Canvas Edge
|
|
2
|
+
|
|
3
|
+
### 원칙
|
|
4
|
+
캔버스 노드 사이의 연결선. SVG 안에 놓는 g primitive이며 노드·선택 상태·좌표는 호스트가 관리한다. 직각 경로와 포트 방향에 맞는 곡선, 실선·점선를 제공한다.
|
|
5
|
+
|
|
6
|
+
### Props
|
|
7
|
+
- `source`, `target`: `{ x: number; y: number; side: 'left' | 'right' | 'top' | 'bottom' }`. SVG 좌표계의 핸들 중심. 시작은 항상 source, 끝은 target이다. 선택적 `bounds:{x,y,width,height}`로 해당 노드의 표면 경계만 전달하면 orthogonal이 자기 포트의 출입 구간 외에는 해당 범위를 회피한다.
|
|
8
|
+
- `variant?: 'curve' | 'orthogonal'`: 기본 curve. orthogonal은 직각 경로의 모서리만 기본6px로 작게 라운드 처리한다.
|
|
9
|
+
- `obstacles?: readonly CanvasEdgeObstacle[]`: 회피할 다른 노드 표면 등의 `{x,y,width,height}` 경계. Canvas 조합에서는 본체만 전달하고 외부 caption은 경로 회피 대신 마스크로 가린다. source/target 자신의 표면 경계는 각 endpoint의 bounds로 전달하고 이 배열에는 중복하지 않는다. orthogonal에만 적용하며 미지정 시 기존 포트 기반 경로를 유지한다.
|
|
10
|
+
- `obstaclePadding?: number`: 노드와의 기본 여유, 기본12좌표px/0~80. 라운드 안전 여유를 더한다. 포트 방향으로 기본 offset24의 출발/도착 공간을 확보한다. 좁은 공간에서는 여유와 stem 길이를 단계적으로 줄이되, 대체 경로도 같은 라운드 처리를 거쳐 충돌하는 개별 코너의 반경만 줄인다. 전체 대체 경로를 일괄 sharp로 바꾸지 않는다. 경로 계산은 포트가 가려지거나 길을 찾지 못하면 관통 fallback 없이 빈 경로를 반환한다. 렌더러는 이미 확정된 선의 마지막 정상 경로를 유지하고, 다시 계산 가능해지면 새 경로로 갱신한다. 미리보기·정상 경로가 없던 선·비유한 입력에는 이전 경로를 표시하지 않는다. 방향/variant/arrow 변경은 캐시를 비운다.
|
|
11
|
+
- `lineStyle?: 'solid' | 'dashed'`: 기본 solid.
|
|
12
|
+
- `status?: 'idle' | 'running' | 'success' | 'error'`: 기본 idle. 실행은 primary 흐름, 완료·오류는 상태색을 사용한다.
|
|
13
|
+
- `selected?: boolean`, `disabled?: boolean`: 기본은 border-strong에 fg5%를 섞은 경계색이다. 선택은 fg의 진한 중립색으로만 강조하며 기본·선택·포커스 모두1.5px를 유지한다. 다크에서는 밝은 중립색으로 대응한다. 실행·오류 의미를 덮지 않는다.
|
|
14
|
+
- `preview?: boolean`: 연결 중인 비인터랙티브 미리보기. 실선 기본값은 임시 점선으로 표시하고 실행 모션은 사용하지 않는다.
|
|
15
|
+
- `arrow?: boolean`: 기본 false. 작은 열린 화살표로 방향을 표시하며, 12px 핸들과 겹치지 않도록 선과 화살표 끝을 target 중심에서9px 앞에 둔다. 클릭 영역은 원래 target까지 유지한다.
|
|
16
|
+
- `statusLabel?: string`: 현지화된 상태 설명. 기본값은 상태별 영어 이름이며 aria-describedby로 연결한다.
|
|
17
|
+
- `label?: string`: 연결의 접근 가능한 이름. 기본 Connection. 의미 있는 시작·끝 이름을 현지화해 전달한다.
|
|
18
|
+
- `onSelect?: () => void`: 제공 시 넓은 투명 클릭 영역과 키보드 Enter/Space 선택을 제공한다. 이벤트는 캔버스 배경으로 전파하지 않는다. preview/disabled에서는 선택하지 않는다.
|
|
19
|
+
- `offset?: number`: 바깥 방향 여유, 기본24좌표px/1~160으로 제한. 가까운 포트에서는 줄여 되접힘을 방지한다.
|
|
20
|
+
- `cornerRadius?: number`: orthogonal의 모서리 반경, 기본6좌표px/0~48로 제한.0은 완전한 직각이다.
|
|
21
|
+
- `curvature?: number`: curve 제어점 강도, 기본.45/.05~1로 제한.
|
|
22
|
+
- 나머지 SVG g 속성/ref/className/style 지원. children/role/tabIndex는 직접 지정하지 않는다.
|
|
23
|
+
|
|
24
|
+
### 조합
|
|
25
|
+
SVG 안에 CanvasEdge를 먼저 그린 뒤 CanvasNode와 핸들을 위 레이어에 배치한다. stroke는1.5px, hit 영역은16px이며 vector-effect로 확대 시 선 두께를 유지한다. 캔버스 경계에 여유를 두어 역방향 우회 경로를 자르지 않는다. 비유한 좌표는 렌더·포커스·화살표를 만들지 않고 캐시를 비운다. 유한한 두 앵커가 같은 위치로 겹치면 새 경로 계산은 비우되, 기존 확정 선은 마지막 정상 경로를 유지한다. 정상 경로가 없던 선이나 미리보기는 빈 상태로 둔다.
|
|
26
|
+
|
|
27
|
+
### 경로 유틸리티
|
|
28
|
+
`getCanvasEdgePath({ source, target, variant, offset, curvature, cornerRadius, obstacles, obstaclePadding, previousPath }): string`을 함께 내보낸다. 같은 방향·역방향·가까운 포트에 같은 계산을 적용하며, 곡선의 자기 교차가 감지되면 둥근 우회 경로로 보강한다. React 없이 경로 문자열만 필요한 호스트에서도 사용할 수 있다. `previousPath`에 이 유틸리티가 만든 이전 orthogonal 경로를 전달하면 유효한 기존 통로에 비용 우대를 주어 작은 움직임에서 경로가 자주 뒤집히는 현상을 줄인다. 장애물 장면이 달라지면 previousPath를 비우고 새 장면에서 다시 계산한다. CanvasEdge는 출발점 기준 장애물 상대 좌표·크기·여유가 같은 경우에만 이력을 재사용해 블록을 치운 뒤 우회 꺾임이 고정되지 않게 관리한다. 양 끝과 모든 장애물을 함께 평행이동하면 같은 장면으로 인식해 경로 꺾임도 함께 옮기며 선의 hit·화살표·실행 모션은 같은 우회 경로를 따른다. 좌표가 유효하지 않거나 두 앵커가 겹치면 빈 문자열을 반환한다.
|
|
29
|
+
|
|
30
|
+
### 모션
|
|
31
|
+
경로의 진행 순서는 좌표가 뒤집혀도 source→target이다. 실행 중에는 긴 하이라이트 하나가 출발점 밖에서 들어와 도착점 밖으로 빠져나간 뒤 반복한다. 경로 길이의80%를 덮는 창에 양끝80% 투명도 페이드(중심20% 유지)를 적용한다. 충분히 긴 dash 반복 간격으로 출발/도착 양끝에 두 조각이 동시에 나타나는 wrap을 방지한다.1.5초 주기에서 짧게 머금었다가 풀리는 가감속과 양끝의 짧은 휴지를 사용한다. 점선은 원래 패턴 위로 동일한 하이라이트 창이 지나가며 형태를 유지한다. reduced-motion/motion=none에서는 하이라이트를 숨기고 정적인 선을 선명하게 유지한다. disabled/preview는 흐름을 재생하지 않는다.
|
|
32
|
+
|
|
33
|
+
### Do
|
|
34
|
+
- 원래 노드 핸들의 방향과 좌표를 함께 전달한다.
|
|
35
|
+
- 실제 선택 상태는 호스트가 제어하고 포커스 가능한 선에 구체적인 label을 제공한다.
|
|
36
|
+
- 직각·곡선, 역방향·가까운 거리·위아래 포트를 함께 확인한다.
|
|
37
|
+
|
|
38
|
+
### Don't
|
|
39
|
+
- 노드 경계 자동 측정·포트 hit 영역·드래그·팬·줌을 이 부품의 기능으로 설명하지 않는다. 장애물 경계의 측정과 전달은 호스트 책임이다.
|
|
40
|
+
- curve에 장애물 회피나 선끼리의 교차 회피를 제공한다고 설명하지 않는다.
|
|
41
|
+
- 선택 halo나 별도 불투명 클릭 띠를 추가하지 않는다.
|
|
42
|
+
- SVG를 임의로 회전해 흐름 방향을 바꾸지 않는다. source와 target을 올바르게 전달한다.
|
|
43
|
+
|
|
44
|
+
### Fallback
|
|
45
|
+
variant를 정하지 못하면 기본 `curve`. 상태를 모르면 `idle`, 선 스타일은 `solid`. 포트 방향 정보가 없으면 source는 `right`, target은 `left`로 전달한다. 장애물 경계를 측정하지 못했으면 `obstacles`를 비워 두고 기존 포트 기반 경로를 쓴다. 경로 계산이 비면 마지막 정상 경로를 유지하며 관통선으로 대체하지 않는다.
|
|
46
|
+
|
|
47
|
+
### 예시
|
|
48
|
+
```tsx
|
|
49
|
+
<svg viewBox="0 0 480 240">
|
|
50
|
+
<CanvasEdge
|
|
51
|
+
source={{ x: 80, y: 80, side: "right" }}
|
|
52
|
+
target={{ x: 400, y: 160, side: "left" }}
|
|
53
|
+
variant="orthogonal"
|
|
54
|
+
lineStyle="dashed"
|
|
55
|
+
status="running"
|
|
56
|
+
label="입력 노드에서 출력 노드로 연결"
|
|
57
|
+
/>
|
|
58
|
+
</svg>
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
### 관련
|
|
62
|
+
- [[components/canvas-node]] — 연결되는 노드와 핸들
|
|
63
|
+
|
|
64
|
+
<!-- component-contract -->
|
|
65
|
+
```json
|
|
66
|
+
{"roles":["canvas-connection"],"native":[],"requires":[]}
|
|
67
|
+
```
|