@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,87 @@
|
|
|
1
|
+
# Time Picker
|
|
2
|
+
|
|
3
|
+
### 원칙
|
|
4
|
+
시간만 단독으로 고르는 자리. 트리거는 **세그먼트 입력(HH:MM, 선택적 AM/PM)** 하나 — Popover·Grid·Quick 없음. 숫자 타이핑으로 바로 입력, 화살표로 세그먼트 네비·값 조정. Input 어휘(variant/size/invalid)를 그대로 재사용해 폼 안에서 자연스럽게 섞인다.
|
|
5
|
+
|
|
6
|
+
**날짜 함께 필요하면 `DatePicker withTime` / `withTimeRange`.** TimePicker는 "시간 그 자체"만.
|
|
7
|
+
|
|
8
|
+
### Do
|
|
9
|
+
- 숫자 타이핑으로 바로 입력 — 세그먼트 폭(2자리)에 닿으면 다음 세그먼트로 자동 이동.
|
|
10
|
+
- **키보드**: `← →` 세그먼트 간 이동 · `↑ ↓` 값 ±1 (분은 step 단위) · `A/P` meridiem 토글 (12h 모드).
|
|
11
|
+
- `format="12h"`로 오전·오후가 자연스러운 자리(약속·회의)에서 AM/PM 세그먼트 노출.
|
|
12
|
+
- `minTime`/`maxTime`은 "HH:MM" 문자열. 범위 밖은 자동 clamp.
|
|
13
|
+
- `invalid`로 폼 검증 실패 시각 피드백 — Input·Textarea와 동일 어휘.
|
|
14
|
+
- `prefix`/`suffix`로 Icon 등 슬롯 — 시계 아이콘, clear 버튼 등.
|
|
15
|
+
|
|
16
|
+
### Don't
|
|
17
|
+
- Popover·그리드로 시간 고르려 하지 않는다 — 세그먼트 입력이 가장 빠르고 접근성 좋음.
|
|
18
|
+
- `<Input type="time">` 네이티브로 섞어쓰지 않는다 — 축·토큰 적용 안 되고 디자인 어색.
|
|
19
|
+
- 시간 범위(from~to)가 필요하면 TimePicker 두 개를 수제로 조립하지 말 것 — `DatePicker withTimeRange`로.
|
|
20
|
+
|
|
21
|
+
### Fallback
|
|
22
|
+
format 애매하면 `24h` (한국 자리는 24h가 더 흔함). step 애매하면 `1`.
|
|
23
|
+
|
|
24
|
+
### 관련
|
|
25
|
+
- [[components/input]] — 시각 토큰(root/variant/size) 재사용. 폼 안에서 Input과 섞여도 어색 없음.
|
|
26
|
+
- [[components/date-picker]] — 날짜·시간 함께는 DatePicker `withTime`/`withTimeRange`.
|
|
27
|
+
- [[axes/density]] — size가 Input과 동일 체계.
|
|
28
|
+
|
|
29
|
+
### Props 시그니처
|
|
30
|
+
```tsx
|
|
31
|
+
<TimePicker
|
|
32
|
+
value?={TimeValue | null} // { hours, minutes }
|
|
33
|
+
onChange?={(v: TimeValue | null) => void}
|
|
34
|
+
step?={1 | 5 | 15 | 30 | 60} // default: 1 (↑↓ 분 조정 간격)
|
|
35
|
+
format?="24h | 12h" // default: 24h
|
|
36
|
+
minTime?={string} // "HH:MM" (24h, inclusive)
|
|
37
|
+
maxTime?={string} // "HH:MM" (24h, inclusive)
|
|
38
|
+
disabled?={boolean}
|
|
39
|
+
invalid?={boolean} // Input·Textarea와 동일 어휘
|
|
40
|
+
size?="sm | md | lg" // default: md
|
|
41
|
+
variant?="outline | filled | line" // default: outline
|
|
42
|
+
prefix?={ReactNode} // 좌측 슬롯 (Icon 등)
|
|
43
|
+
suffix?={ReactNode} // 우측 슬롯
|
|
44
|
+
placeholder?={string} // empty 상태 overlay
|
|
45
|
+
aria-label?={string}
|
|
46
|
+
/>
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
### 조합 예시
|
|
50
|
+
```tsx
|
|
51
|
+
// 기본 — 24h
|
|
52
|
+
<TimePicker value={v} onChange={setV} />
|
|
53
|
+
|
|
54
|
+
// 회의 — 12h + 아이콘
|
|
55
|
+
<TimePicker
|
|
56
|
+
format="12h"
|
|
57
|
+
prefix={<Icon name="clock" />}
|
|
58
|
+
value={meeting}
|
|
59
|
+
onChange={setMeeting}
|
|
60
|
+
/>
|
|
61
|
+
|
|
62
|
+
// 업무시간 제한 — 09:00~18:00
|
|
63
|
+
<TimePicker
|
|
64
|
+
minTime="09:00"
|
|
65
|
+
maxTime="18:00"
|
|
66
|
+
value={v}
|
|
67
|
+
onChange={setV}
|
|
68
|
+
/>
|
|
69
|
+
|
|
70
|
+
// 폼 검증 — invalid 톤
|
|
71
|
+
<TimePicker
|
|
72
|
+
invalid
|
|
73
|
+
value={v}
|
|
74
|
+
onChange={setV}
|
|
75
|
+
/>
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
### 시간 값 계약
|
|
79
|
+
- TimeValue는 `{hours, minutes}` 로컬 벽시계 값이다. 날짜·UTC offset·시간대를 포함하지 않는다. 서버의 날짜/시간대 변환은 호스트 책임이다.
|
|
80
|
+
- AM/PM 입력의 시간은 1부터 12까지만 허용한다. 13pm·0am을 허용하지 않는다.
|
|
81
|
+
- step은 양의 정수로 정규화하며 유효하지 않으면 기본 간격을 사용한다. minTime/maxTime은 같은 날의 포함 경계다. 자정을 넘는 구간은 지원하지 않는다.
|
|
82
|
+
- 분 입력을 step에 맞춰 반올림한 결과가 60이면 다음 시간으로 이월하고, 24시는 00시로 순환한 뒤 minTime/maxTime 경계를 적용한다.
|
|
83
|
+
|
|
84
|
+
<!-- component-contract -->
|
|
85
|
+
```json
|
|
86
|
+
{"roles":["time-picker"],"native":[],"hints":[],"requires":["ThemeController"]}
|
|
87
|
+
```
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
# Timeline View
|
|
2
|
+
|
|
3
|
+
### 원칙
|
|
4
|
+
일정의 시작·종료·겹침을 명시적으로 선택한 시간 또는 날짜 축에서 비교하는 컴포넌트. 월 단위 날짜 탐색은 [[components/calendar]], 활동 기록은 목록으로 구분한다.
|
|
5
|
+
|
|
6
|
+
### Do
|
|
7
|
+
- start/end에 표시 구간의 Date, events에 id/title/start/end/tone을 전달한다. 시간 문자열을 계산에 사용하지 않는다.
|
|
8
|
+
- 겹치는 일정은 자동으로 다른 행에 배치하고 맞닿은 일정은 같은 행을 재사용한다.
|
|
9
|
+
- 범위를 가로지르는 일정은 시각적으로 잘라 표시하되 접근 가능한 이름과 title에는 실제 시작·종료를 유지한다.
|
|
10
|
+
- currentTime은 호스트가 갱신한다. 생략하거나 범위를 벗어나면 선을 숨긴다.
|
|
11
|
+
- onEventClick이 있으면 Button으로 클릭·Enter·Space를 지원한다. onEventsChange를 제공하면 드래그 편집도 지원한다. 둘 다 없으면 읽기 전용이다.
|
|
12
|
+
- 좁은 화면에서는 컴포넌트 안에서 가로 스크롤한다. 시간축을 압축해 글자를 겹치게 만들지 않는다.
|
|
13
|
+
- EventChip의 7개 tone과 Shape/Density 토큰을 재사용한다. 뷰 전환·필터·추가 액션은 호스트 툴바가 담당한다.
|
|
14
|
+
|
|
15
|
+
### Don't
|
|
16
|
+
- 막대 너비를 제목 길이에 맞춰 바꾸지 않는다. 너비는 실제 기간이다.
|
|
17
|
+
- 계산 불가능한 표시용 문자열을 시작·종료 값으로 넣지 않는다.
|
|
18
|
+
- 기능 없는 추가·필터 버튼이나 총 일정 수를 장식으로 넣지 않는다.
|
|
19
|
+
|
|
20
|
+
### Fallback
|
|
21
|
+
빈 구간은 축과 EmptyState로 표시한다. 잘못된 날짜와 종료≤시작 일정은 제외한다. 잘못된 start/end 표시 범위는 RangeError를 발생시킨다. 시간·날짜 단위 이동을 지원하며 양끝 핸들로 시작·종료 길이 편집을 지원한다.
|
|
22
|
+
|
|
23
|
+
### Props
|
|
24
|
+
```tsx
|
|
25
|
+
import { TimelineView, type TimelineViewEvent } from "@/components/TimelineView";
|
|
26
|
+
|
|
27
|
+
<TimelineView
|
|
28
|
+
size="sm | md | lg" // default md40px, sm36px, lg44px
|
|
29
|
+
unit="time | date" // default time; zoom never changes unit
|
|
30
|
+
zoom={zoom} // optional controlled scale fit–4
|
|
31
|
+
defaultZoom={1} // optional; omitted fits full range
|
|
32
|
+
onZoomChange={setZoom}
|
|
33
|
+
start={new Date(2026, 10, 5, 8)}
|
|
34
|
+
end={new Date(2026, 10, 5, 20)}
|
|
35
|
+
events={events}
|
|
36
|
+
onEventsChange={setEvents} // controlled editing
|
|
37
|
+
resizable={true} // edge resize, requires onEventsChange
|
|
38
|
+
draggable={true} // requires onEventsChange
|
|
39
|
+
snapMinutes={15} // date uses calendar days
|
|
40
|
+
currentTime={now}
|
|
41
|
+
selectedEventId={selectedId}
|
|
42
|
+
onEventClick={(event) => setSelectedId(event.id)}
|
|
43
|
+
/>
|
|
44
|
+
|
|
45
|
+
type TimelineViewEvent = {
|
|
46
|
+
id: string;
|
|
47
|
+
title: string;
|
|
48
|
+
start: Date;
|
|
49
|
+
end: Date;
|
|
50
|
+
row?: number; // preferred lane
|
|
51
|
+
leadingSlot?: ReactNode; // non-interactive Icon or Avatar
|
|
52
|
+
trailingSlot?: ReactNode;
|
|
53
|
+
tone?: "default" | "neutral" | "accent" | "success" | "warning" | "danger" | "info";
|
|
54
|
+
};
|
|
55
|
+
// currentTime?: Date | null; selectedEventId?: string | null;
|
|
56
|
+
// onEventClick?: (event: TimelineViewEvent) => void; emptyContent?: ReactNode;
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
### 관련
|
|
60
|
+
- [[components/event-chip]] — 일정의 제목·시간·톤.
|
|
61
|
+
- [[components/calendar]] — 월간 캘린더와 같은 원천 데이터를 투영해 전환.
|
|
62
|
+
- [[components/tabs]] — 호스트의 뷰 전환.
|
|
63
|
+
|
|
64
|
+
<!-- component-contract -->
|
|
65
|
+
```json
|
|
66
|
+
{"roles":["timeline-view"],"native":[],"hints":[],"requires":["ThemeController"]}
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
### 크기와 슬롯
|
|
70
|
+
기본 `size="md"`는40px 막대와14.5px 글자다. `sm`은 이전 md의36px 막대·13px 글자이며 `lg`는44px 막대·14.5px 글자다. 기본 Density 기준이다. 일정의 leadingSlot/trailingSlot을 EventChip으로 전달하며 시간(선택) → 앞 슬롯 → 제목 → 뒤 슬롯 순서로 표시한다. 슬롯에 중첩 버튼·링크·입력을 넣지 않는다. 현재 시각 라벨도 squircle이다.
|
|
71
|
+
|
|
72
|
+
### 짧은 일정과 시간 표시
|
|
73
|
+
시간 태그(켜진 경우)·앞뒤 슬롯·제목 앞 5개 grapheme(짧은 제목은 전체)·말줄임표·간격까지 담지 못하는 경우에만 콘텐츠를 여유가 더 큰 좌우 바깥에 표시한다. 그 이상은 막대 안에서 제목을 말줄임한다. 최소 콘텐츠 폭을 실제 렌더링에서 측정하며 바깥 라벨은 canvas 양끝을 넘지 않는 폭에서 말줄임하며 앞/뒤 시각적 폭도 행 배치에서 예약해 뒤 일정과 겹치지 않는다. 아주 긴 바깥 라벨은 최대 폭에서 말줄임하고 전체 내용은 title·접근 가능한 이름으로 유지한다. `showTime` 기본값은 false이며 켜면 시작 시간이 맨 왼쪽에 표시된다. 시간축 눈금과 현재 시각 선은 이 옵션과 별개다. 화면에서 시간을 숨겨도 접근 가능한 이름의 시작·종료는 유지한다.
|
|
74
|
+
|
|
75
|
+
### 표면
|
|
76
|
+
`appearance="outline"`이 기본이며 흰 표면·강한 테두리·그림자를 사용한다. `filled`는 브랜드 배경·흰 글자다. 일정별 `appearance`가 TimelineView 전역 값보다 우선한다. 짧은 일정의 바깥 라벨은 두 표면 모두 페이지 전경색으로 표시하고 배경·테두리·그림자를 붙이지 않는다. 그림자는 clipping 바깥의 실제 기간 wrapper에 한 번만 적용한다.
|
|
77
|
+
|
|
78
|
+
시간 표시는 기존 Tag를 재사용하며 맨 왼쪽, 아이콘·아바타보다 앞에 둔다. outline은 연한 회색 태그 배경, filled는 흰 태그 배경과 브랜드 잉크를 사용한다. sm 타임라인에는 sm Tag, md/lg에는 md Tag를 쓴다. 타임라인의 showTime 기본값은 계속 false다.
|
|
79
|
+
|
|
80
|
+
막대는 실제 기간의 100% 너비를 사용하며 바깥 라벨로 바뀌어도 줄이지 않는다. 시간축 canvas 너비도 시간 간격과 viewport로만 정한다. 겹친 아바타는 leadingSlot 또는 trailingSlot에 기존 `<AvatarGroup size="xs"><Avatar ... />...</AvatarGroup>`를 전달하며 스택의 자연 너비를 보존한다.
|
|
81
|
+
|
|
82
|
+
세로 간격은 sm/md 행 사이8px, lg12px이며 트랙 위아래는8px이다. 시간 눈금 아래와 세로 가이드 시작 사이는8px로 유지하고 눈금 위쪽 여백도4px로 둔다. 눈금 line-height에 맞춰 ruler 높이를 계산하며 현재 시간 라벨의 텍스트 정렬을 보존한다. 기본 Density 기준이다.
|
|
83
|
+
|
|
84
|
+
양끝 시간 눈금도 가운데 정렬하며 viewport 좌우32px 여백으로 잘림을 방지한다. lg 막대는44px이며 타임라인 제목은 sm20px, md/lg22px line-height를 사용해 하강 글자의 잘림을 피한다.
|
|
85
|
+
|
|
86
|
+
시간축 세로 가이드는 border-strong을50%로 옅게 혼합한1px 점선으로 표시한다.
|
|
87
|
+
|
|
88
|
+
TimelineViewSize는 EventChipSize를 그대로 사용하며 sm/md/lg를 EventChip에 변환 없이 전달한다. 칩의 크기·글자·슬롯 스타일은 EventChip 원본이 담당한다.
|
|
89
|
+
|
|
90
|
+
바깥 라벨도 같은 일정 버튼으로 실행하지만 hover overlay와 키보드 focus ring은 실제 기간 막대의 폭에만 표시한다. 바깥 글자는 평소 fg-muted, hover/focus에서 fg로 진해지며 밑줄 없이 라벨 영역 전체에 넓은 칩 배경을 그리지 않는다.
|
|
91
|
+
|
|
92
|
+
### Zoom / Unit
|
|
93
|
+
`unit="time"`은 시·분, `unit="date"`는 월·일 눈금이다. 단위는 사용자가 명시적으로 선택하며 확대·축소로 전환하지 않는다. 눈금이 겹치지 않도록 같은 단위 안에서 표시 간격만 조정한다. Date 값과 기간, 일정 선택은 배율에 따라 바뀌지 않는다. 날짜 경계는 로컬 달력의 자정으로 계산하고 DST 경계에서도 날짜 눈금을 유지한다. 막대 위치·폭은 실제 경과 시간 비율을 따른다.
|
|
94
|
+
|
|
95
|
+
트랙패드 pinch는 `ctrlKey` wheel의 비수동 리스너로 처리하며 일반 두 손가락 스크롤은 가로·세로 스크롤에 남긴다. Safari gesturestart/change/end도 처리하며 같은 gesture 중 wheel은 중복 적용하지 않는다. 배율은 전체 구간 맞춤부터400%까지 제한하고 pointer 아래의 시점을 기준으로 폭을 변경한다. 포커스된 타임라인에서 +/− 키는 중앙 기준 확대·축소, 0 키는 전체 구간 맞춤이다.
|
|
96
|
+
|
|
97
|
+
내부 줌 툴바는 제공하지 않는다. `zoom`/`onZoomChange`로 제어하거나 `defaultZoom`으로 초기값을 정한다. 미지정 시 전체 구간을 화면에 맞춘다. 최소 배율은 viewport 내용 너비와 실제 CSS 단위 폭으로 계산하며 canvas가 화면보다 짧아질 만큼 축소할 수 없다. 긴 구간은25%보다 작아져도 전체가 들어오도록 최소 배율을 계산한다. 화면·Density·단위 변경 시 한계를 갱신하며 최대 배율은4다. 배율은 가로 기하만 바꾸고 카드 높이·글자·time/date 단위는 바꾸지 않는다. `showTime`을 켜면 선택 단위의 시작 시간 또는 날짜 Tag를 표시한다.
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
### 이동과 충돌
|
|
101
|
+
`onEventsChange`에 갱신된 배열을 반영하면 드래그로 일정의 시간·날짜와 행을 옮길 수 있다. `draggable` 기본 true지만 콜백이 없으면 이동을 활성화하지 않는다. 시간 모드는 원래 시작 시간에서 `snapMinutes`(기본15분) 간격, 날짜 모드는 로컬 달력 하루 단위로 움직인다. 기간은 유지하며 표시 범위 안으로 제한한다. 날짜 모드에서는 DST를 넘어도 로컬 시각을 보존한다. 행만 이동하면 원래 기간을 그대로 유지한다.
|
|
102
|
+
|
|
103
|
+
짧은 일정의 바깥 라벨도 같은 버튼으로 이동한다. 마우스·펜 드래그 임계값은5px이고 드래그 후 선택 클릭을 억제한다. 터치는 칩 위에서도 세로 스크롤·가로 탐색을 유지한다. 터치 드래그 편집은 제공하지 않으며 마우스·펜 또는 키보드로 이동한다. 가장자리에서는 가로 자동 스크롤한다. 원래 행을 기준으로 미리 보이며 드래그한 일정의 목적 행을 먼저 확보한다. 겹침은 바깥 라벨 폭까지 고려하여 가까운 행으로 정리하고 놓을 때 빈 행을 압축한다. 행의 세로 이동만 짧게 전환하며 reduced-motion을 따른다.
|
|
104
|
+
|
|
105
|
+
포인터를 놓으면 한 번만 `onEventsChange`를 호출한다. Escape·pointercancel·capture 손실·window blur·외부 데이터/범위/배율 변경은 취소한다. Alt+좌우 방향키는 시간/날짜, Alt+위아래는 행을 옮긴다. 이동 결과는 스크린리더 상태 영역으로 알린다. 호스트가 반환된 `row`를 유지하면 정리된 행이 보존된다. 서버 저장은 호스트 책임이다.
|
|
106
|
+
|
|
107
|
+
타임라인의 hit Button은 누를 때 scale 변형을 적용하지 않는다. 기간 막대와 같은 크기의 overlay를 유지해 좌우 여백이 생기지 않게 한다. 바깥 라벨은 기존대로 기간 막대만 칠한다.
|
|
108
|
+
|
|
109
|
+
날짜 모드의 현재 날짜 라벨은 같은 로컬 연·월·일의 눈금 라벨을 대체한다. 자정 눈금과 현재 시각의 거리가 확대 시 벌어져도 같은 날짜를 두 번 표시하지 않는다.
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
### 길이 조절
|
|
113
|
+
`resizable` 기본 true이며 `onEventsChange`가 있어야 활성화된다. `draggable`과 독립적으로 켜고 끈다. 실제 기간 막대 양끝에 공유 Button 핸들을 두며 범위 밖으로 잘린 실제 경계는 핸들을 숨긴다. 한쪽 경계를 조절할 때 반대 경계와 선호 행은 고정하며, 겹친 일정만 기존 배치 규칙으로 정리한다. 같은 콜백에 변경된 start/end/row를 한 번 반영한다.
|
|
114
|
+
|
|
115
|
+
시간은 snapMinutes(기본15분), 날짜는 로컬 달력 하루 단위로 해당 경계를 조절한다. 경계는 viewport 안으로 제한하며 시작과 종료가 역전되지 않는다. 기존 끝점의 snap offset을 유지해 짧은 기간을 늘린 뒤 줄여도 원래 길이로 돌아올 수 있다. 날짜 이동은 로컬 시각과 DST를 따른다.
|
|
116
|
+
|
|
117
|
+
핸들에서 좌우 방향키로 같은 간격을 조절하고 Escape·pointercancel·capture 손실·외부 데이터 변경은 드래그 취소다. 핸들은 touch-action:none으로 터치 조절을 담당하고 본체 터치 스크롤은 유지한다. 핸들은 막대 너비의 절반을 넘지 않으며 아주 짧은 막대는 먼저 확대하거나 키보드로 조절한다. 밖으로 나온 제목은 본체 이동 대상이며 길이 조절 핸들은 실제 막대 끝에만 둔다.
|
|
118
|
+
|
|
119
|
+
outline 선택은 실제 테두리를 primary로 바꾸고 기간 wrapper 경계 바깥에 hairline outline을 더한다. 안쪽 inset 선택 링은 사용하지 않으며 키보드 focus shadow를 보존한다. filled 선택은 기존 흰색 inset 링을 유지한다.
|
|
120
|
+
|
|
121
|
+
리사이즈 손잡이 선은 hover/focus/drag 및 터치에서 opacity0.12로 매우 옅게 표시한다. 조작 영역과 키보드 focus 표시는 유지한다.
|
|
122
|
+
|
|
123
|
+
빠르게 놓아도 마지막 pointerup 좌표를 다시 계산하여 길이·위치를 확정한다. 중간 pointermove가 생략되어도 반영하며 리사이즈 핸들의 이동 임계값은1px, 본체 이동은5px다.
|
|
124
|
+
|
|
125
|
+
드래그 임계값을 넘으면 재배치되는 칩 대신 고정된 viewport가 포인터를 캡처한다. 다른 요소의 capture 손실은 현재 드래그를 취소하지 않으며 viewport 자체의 capture 손실·Escape·pointercancel·blur는 취소한다. 단순 클릭은 캡처하지 않는다.
|
|
126
|
+
|
|
127
|
+
이전 드래그의 지연된 capture 손실 알림이 새 드래그를 취소하지 않도록, 현재 세션이 활성화됐고 viewport가 실제 캡처를 잃은 경우에만 취소한다. 새로 잡기 전이나 새 캡처를 이미 유지하는 동안의 이전 알림은 무시한다.
|
|
128
|
+
|
|
129
|
+
드래그 후 클릭 억제는 시간 제한이 아닌 현재 포인터 시퀀스 한 번에 적용한다. 키보드(detail0) 클릭은 통과하고 다음 primary pointerdown에서 초기화한다. 동일한 id/start/end/row의 새 배열은 드래그를 취소하지 않으며 확정 시 최신 제목·슬롯 등 메타데이터를 보존한다. 실제 경계·행 데이터 변경은 취소한다.
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
# Toast
|
|
2
|
+
|
|
3
|
+
### 원칙
|
|
4
|
+
휘발성 피드백 — 사용자 액션의 결과를 짧게 알리고 자동으로 사라진다. 흐름을 끊지 않는다. [[components/callout]]은 상주 안내, [[components/banner]]는 페이지 폭 경고, Toast는 **일회성 결과 신호**.
|
|
5
|
+
|
|
6
|
+
### Do
|
|
7
|
+
- `tone`은 **아이콘 색**에만 적용. 표면 색은 `surface`(`default` 기본 / `inverse`)가 담당. `default`는 기본 배경과 연한 테두리로 뒤 화면과 구분한다.
|
|
8
|
+
- 비파괴 결과(저장·복사됨)엔 `tone="neutral"`, 성공 상태 전환엔 `success`, 설정 누락·용량 임박엔 `warning`, 삭제·실패엔 `destructive`.
|
|
9
|
+
- `tone` 미지정 시 아이콘 자동 매칭 — `neutral`→`info`, `success`→`check-circle`, `warning`→`warning-circle`, `destructive`→`warning`. 다른 의미 아이콘 필요할 때만 `icon` override. 아이콘 없는 Toast는 허용하지 않는다.
|
|
10
|
+
- `action` 1개 + 자동 close `×` 1개까지. `action` Button은 size `xs`·variant `ghost` 또는 `outline`만 — Toast 표면이 inverse일 때 solid 버튼은 신호 역전.
|
|
11
|
+
- 스택 최대 3개. 4번째가 들어오면 가장 오래된 1개를 자동 제거.
|
|
12
|
+
- `placement`는 `bottom-right`(데스크톱 생산성 도구) 또는 `top-center`(모바일·간결 앱) 둘 중 하나. 혼용 금지.
|
|
13
|
+
- `placement="top-center"`는 **단일 라인 강제** — Viewport가 title 1줄만 보여주고 `description`은 자동 숨김, 긴 title은 ellipsis. 2줄 이상 신호가 필요하면 `bottom-right` 또는 [[components/callout]].
|
|
14
|
+
- `duration` 기본 4000ms. 중요도 높으면 `6000`, action 포함 시 `6000` 권장. `destructive` + 사용자 결정 필요엔 `Infinity`(수동 close 전엔 유지).
|
|
15
|
+
- `role` 자동 — tone이 `destructive`면 `alert`(즉시 읽힘), 그 외엔 `status`(polite).
|
|
16
|
+
- Provider는 앱 루트 1곳에 `<ToastProvider>` + `<ToastViewport>` 배치. Viewport가 placement를 결정.
|
|
17
|
+
|
|
18
|
+
### Don't
|
|
19
|
+
- Toast 표면색에 tone별 tint 금지 — 색은 아이콘·action 버튼에만.
|
|
20
|
+
- action Button 2개 이상 두지 않는다 — Toast 폭에서 신호 분산.
|
|
21
|
+
- action variant에 `primary`·`destructive` solid 금지 — inverse 표면에서 색 신호가 깨짐.
|
|
22
|
+
- 긴 본문(2줄 초과) 금지 — Toast는 1~2줄까지. 그 이상이면 [[components/callout]] 또는 [[components/banner]].
|
|
23
|
+
- `placement="top-center"`에 `description` 전달 금지 — Viewport가 숨긴다. multiline 신호 필요하면 placement부터 `bottom-right`로.
|
|
24
|
+
- 비동기 로딩 상태(spinner Toast)로 쓰지 않는다 — Toast는 완료 신호 전용.
|
|
25
|
+
- 플로팅이지만 `data-side` 기반 `.m-float` 유틸은 쓰지 않는다 — Toast는 placement별 slide-in 전용 애니.
|
|
26
|
+
- 영구 안내·설명·FAQ 유도에 쓰지 않는다 — [[components/callout]] 영역.
|
|
27
|
+
- `duration`을 [[axes/motion]] 스케일로 조절하지 않는다 — motion은 애니메이션 속도 축이고, duration은 "사용자 읽는 시간" 축. 둘은 독립. motion=`none`이어도 duration은 그대로(툭 나타나 4초 보고 툭 사라짐이 정상).
|
|
28
|
+
|
|
29
|
+
### Fallback
|
|
30
|
+
`tone` 애매하면 `neutral`. `surface` 애매하면 `default`. `placement` 애매하면 `bottom-right`. `duration` 애매하면 `4000`.
|
|
31
|
+
|
|
32
|
+
### 관련
|
|
33
|
+
- [[components/callout]] — 상주 안내 카드. Toast는 휘발.
|
|
34
|
+
- [[components/banner]] — 페이지 폭 전역 경고. Toast는 코너 소형.
|
|
35
|
+
- [[components/button]] — `action` 슬롯의 요소.
|
|
36
|
+
- [[axes/motion]] — placement별 slide-in·fade-out 파라미터 스왑.
|
|
37
|
+
- [[tokens/z-index]] — `z-toast` 레이어 (Modal 위, Tooltip 아래).
|
|
38
|
+
|
|
39
|
+
### Props 시그니처
|
|
40
|
+
```tsx
|
|
41
|
+
// Provider — 앱 루트 1곳
|
|
42
|
+
<ToastProvider duration={4000}>
|
|
43
|
+
{children}
|
|
44
|
+
<ToastViewport placement="bottom-right | top-center" /> // default: bottom-right
|
|
45
|
+
</ToastProvider>
|
|
46
|
+
|
|
47
|
+
// Toast — ToastProvider 자손에서 open 상태로 렌더
|
|
48
|
+
<Toast
|
|
49
|
+
open={boolean}
|
|
50
|
+
onOpenChange={(open: boolean) => void}
|
|
51
|
+
title={ReactNode} // required
|
|
52
|
+
description={ReactNode}
|
|
53
|
+
tone="neutral | success | warning | destructive" // default: neutral
|
|
54
|
+
surface="default | inverse" // default: default
|
|
55
|
+
icon={IconName} // tone별 자동 매칭 override
|
|
56
|
+
action={ReactNode} // Button size="xs" variant="ghost|outline"만
|
|
57
|
+
actionAltText={string} // required if action — 스크린리더 설명
|
|
58
|
+
dismissible={boolean} // default: true
|
|
59
|
+
dismissLabel={string}
|
|
60
|
+
duration={number | "Infinity"} // default: 4000
|
|
61
|
+
/>
|
|
62
|
+
|
|
63
|
+
// Hook — 명령형 호출 (권장)
|
|
64
|
+
const { toast } = useToast();
|
|
65
|
+
toast({ title: "저장됨", tone: "success", duration: 3000 });
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
### Variant 매트릭스
|
|
69
|
+
Toast는 **5개 축의 독립 조합**이다. 축별로 결정 → 조합의 완성도는 아래 금지 조합만 피하면 보증.
|
|
70
|
+
|
|
71
|
+
**1. `placement` (Viewport 레벨, 앱당 1곳 지정)**
|
|
72
|
+
|
|
73
|
+
| 값 | 레이아웃 | description | 용도 |
|
|
74
|
+
|---|---|---|---|
|
|
75
|
+
| `bottom-right` (기본) | 우하단 → 위로 스택 | **허용** (2줄까지) | 데스크톱 생산성 도구 |
|
|
76
|
+
| `top-center` | 상단 중앙 → 아래로 스택 | **자동 숨김** (단일 라인 강제, title ellipsis) | 모바일·간결 앱 |
|
|
77
|
+
|
|
78
|
+
**2. `surface` (Toast별)**
|
|
79
|
+
|
|
80
|
+
| 값 | 표면 | 텍스트 | 용도 |
|
|
81
|
+
|---|---|---|---|
|
|
82
|
+
| `default` (기본) | `--bg` + `--shadow-overlay` | `--fg` | Callout·Tooltip과 같은 톤. 주변 UI와 자연스럽게 섞임 |
|
|
83
|
+
| `inverse` | `--fg`(라이트에선 검정) | `--bg`(라이트에선 흰색) | 반전 표면으로 강조 — 중요한 1회성 신호 |
|
|
84
|
+
|
|
85
|
+
**3. `tone` (아이콘·action 색만 스왑. 표면 색은 영향 없음)**
|
|
86
|
+
|
|
87
|
+
| 값 | 아이콘 색 | 자동 아이콘 | 용도 |
|
|
88
|
+
|---|---|---|---|
|
|
89
|
+
| `neutral` (기본) | 중립(bg/fg-muted) | 없음 | 저장됨·복사됨 등 일반 완료 |
|
|
90
|
+
| `success` | `--success` | `check-circle` | 성공 전환(업로드 완료·결제 완료) |
|
|
91
|
+
| `warning` | `--warning` | `warning-circle` | 설정 누락·용량 임박 |
|
|
92
|
+
| `destructive` | `--destructive` | `warning` | 삭제·실패·롤백. `role="alert"` 자동 승격 |
|
|
93
|
+
|
|
94
|
+
**4. `dismissible` (우측 X 버튼)**
|
|
95
|
+
|
|
96
|
+
| 값 | 결과 | 용도 |
|
|
97
|
+
|---|---|---|
|
|
98
|
+
| `true` (기본) | 우측에 X IconButton | 대부분의 경우. `duration=Infinity`일 땐 **필수** |
|
|
99
|
+
| `false` | X 숨김 | duration 짧고(≤4000) action도 없는 순수 알림 전용 |
|
|
100
|
+
|
|
101
|
+
**5. `action` (Button 1개 slot)**
|
|
102
|
+
|
|
103
|
+
| action variant | 허용 조건 |
|
|
104
|
+
|---|---|
|
|
105
|
+
| `ghost` | 모든 tone·surface |
|
|
106
|
+
| `outline` | 모든 tone·surface |
|
|
107
|
+
| `primary`/`solid` | **금지** (아래 참조) |
|
|
108
|
+
|
|
109
|
+
**금지 조합**
|
|
110
|
+
- `surface=inverse` + action `primary`/`solid` — 반전 표면에서 solid는 색 신호 깨짐. `ghost`/`outline`만.
|
|
111
|
+
- `tone=destructive` + action `primary`(brand) — 파괴 맥락에 brand 색 신호 금지.
|
|
112
|
+
- `tone=success` + action `destructive` — 긍정 맥락에 비가역 액션 혼재 금지.
|
|
113
|
+
- `placement=top-center` + `description` 전달 — Viewport가 숨긴다. 2줄 신호 필요하면 bottom-right.
|
|
114
|
+
- `duration=Infinity` + `dismissible=false` — 사용자가 영원히 닫을 수 없음.
|
|
115
|
+
- action 2개 이상 — slot 1개로 제한.
|
|
116
|
+
|
|
117
|
+
### 애니메이션
|
|
118
|
+
`.m-float` 쓰지 않는다 (data-side 기반이라 placement 스택 구조에 안 맞음). Toast 전용 keyframe을 컴포넌트 CSS에 두되, duration·easing은 **반드시 `--duration-*`/`--ease-*` 토큰 경유**.
|
|
119
|
+
|
|
120
|
+
톤은 Sonner/Linear 계열 — **짧은 거리 slide + fade + 미세 scale**. 뷰포트 밖 전체 폭에서 밀고 들어오는 긴 slide는 쓰지 않는다 ("확 끼어드는" 인상). open은 공간에 '놓이는' 느낌, close는 '사라지는' 느낌.
|
|
121
|
+
|
|
122
|
+
- `placement=bottom-right` — open: `translateX(space-4)` + `scale(0.96)` + opacity 0 → 1. `--duration-slow` + `--ease-emphasized`.
|
|
123
|
+
- `placement=top-center` — open: `translateY(-space-4)` + `scale(0.96)` + opacity 0 → 1. 같은 토큰.
|
|
124
|
+
- close(dismiss) — placement 공통으로 `scale(1 → 0.96)` + opacity 1 → 0만. slide 없음. `--duration-base` + `--ease-in`.
|
|
125
|
+
- swipe dismiss는 `--radix-toast-swipe-move-x` 추적 → end 시 손가락이 민 방향으로 짧게 밀어내며 fade.
|
|
126
|
+
- `prefers-reduced-motion: reduce` — 모든 Toast 애니 즉시 완료.
|
|
127
|
+
|
|
128
|
+
### 조합 예시
|
|
129
|
+
```tsx
|
|
130
|
+
// 앱 루트
|
|
131
|
+
<ToastProvider>
|
|
132
|
+
<App />
|
|
133
|
+
<ToastViewport placement="bottom-right" />
|
|
134
|
+
</ToastProvider>
|
|
135
|
+
|
|
136
|
+
// 호출부
|
|
137
|
+
const { toast } = useToast();
|
|
138
|
+
|
|
139
|
+
toast({
|
|
140
|
+
title: "변경사항이 저장되었습니다",
|
|
141
|
+
tone: "success",
|
|
142
|
+
action: (
|
|
143
|
+
<Button size="xs" variant="outline" onClick={undo}>
|
|
144
|
+
실행 취소
|
|
145
|
+
</Button>
|
|
146
|
+
),
|
|
147
|
+
actionAltText: "방금 저장을 되돌리기",
|
|
148
|
+
duration: 6000,
|
|
149
|
+
});
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
<!-- component-contract -->
|
|
153
|
+
```json
|
|
154
|
+
{"roles":["toast"],"native":[],"hints":[],"requires":[]}
|
|
155
|
+
```
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
# Toolbar
|
|
2
|
+
|
|
3
|
+
### 원칙
|
|
4
|
+
IconButton 중심의 action 줄. 에디터·캔버스·갤러리 상단, 또는 "뜨 있는" 알약으로 콘텐츠 위에 떠서 액션을 모으는 자리. toolbar 안의 버튼은 전부 같은 사이즈 — Toolbar의 `size` prop이 안쪽 IconButton 히트박스·아이콘을 한 번에 결정.
|
|
5
|
+
|
|
6
|
+
### Do
|
|
7
|
+
- 시각 속성의 선택 옵션은 [[PRINCIPLES]] §5d **선택 옵션 시각화**를 적용한다.
|
|
8
|
+
- 떠 있는 표면은 [[axes/material]]의 `solid | glass`를 따른다. Glass는 라이트·다크 모두 불투명도58%·blur8px로 작은 표면 뒤 내용이 은은하게 비치게 한다. 입력·색상판·inline 표면과 기존 동작은 유지한다.
|
|
9
|
+
- `variant="floating"` 기본 — bg-elevated + shadow-sm + Shape별 squircle, 콘텐츠 위에 떠있는 액션 바. 작은 크기에서도 반경이 과하지 않도록 히트박스 비례 상한을 적용. 캔버스·에디터·이미지 뷰어의 상단 중앙.
|
|
10
|
+
- `variant="attached"`는 콘텐츠에 붙은 bar — transparent + 하단 hairline. 페이지 상단에 "탭 아래 액션 바"로 쓸 때.
|
|
11
|
+
- 관련 액션은 `<Toolbar.Group>`으로 묶는다 — 내부는 좁은 gap, 그룹 간은 `<Toolbar.Divider>`.
|
|
12
|
+
- 좌·우 정렬이 필요하면 `<Toolbar.Spacer>`로 공간 밀기 — flex:1.
|
|
13
|
+
- `size="md"`(기본) — 히트박스30·아이콘18. 캔버스·에디터 상단 표준 자리.
|
|
14
|
+
- `size="sm"` — 히트박스28·아이콘18. 일반 인라인 bar.
|
|
15
|
+
- `size="xs"` — 히트박스24·아이콘16. 댓글 등 작은 액션 블록.
|
|
16
|
+
- 기본 IconButton md가 읽는 icon-size-md와 명시적 sm이 읽는 icon-size-sm을 toolbar-icon-size에 연결한다. sm/md 글리프는18, xs는16이며 변수 자기참조를 만들지 않는다.
|
|
17
|
+
- 안쪽 IconButton은 size prop을 넘기지 않는다 — Toolbar가 CSS 변수로 자동 매칭.
|
|
18
|
+
|
|
19
|
+
### Don't
|
|
20
|
+
- toolbar 안에 label 긴 Button을 섞지 않는다 — IconButton + Tooltip이 toolbar 패턴. 긴 label이 필요하면 그 자리는 toolbar가 아니라 액션 영역.
|
|
21
|
+
- 두 Toolbar를 세로로 쌓지 않는다 — 하나의 toolbar에 Group·Divider로 구분. 쌓으면 밀도·시선 둘 다 깨짐.
|
|
22
|
+
- `attached` variant에 shadow·radius-xl를 수동으로 추가하지 않는다 — floating을 쓰면 됨.
|
|
23
|
+
- Group 안에 또 Group을 중첩하지 않는다 — flat 2단(Toolbar > Group > IconButton).
|
|
24
|
+
|
|
25
|
+
### Fallback
|
|
26
|
+
액션 그룹 구조가 불명확하면 `attached`를 기본으로 쓰고 그룹 구분은 최소화한다.
|
|
27
|
+
|
|
28
|
+
### Props 시그니처
|
|
29
|
+
```tsx
|
|
30
|
+
<Toolbar
|
|
31
|
+
variant?="floating | attached" // default: floating
|
|
32
|
+
size?="xs | sm | md" // default: md (히트박스30·아이콘18)
|
|
33
|
+
orientation?="horizontal | vertical" // default: horizontal
|
|
34
|
+
stretch?={boolean} // default: variant로 자동 (attached=true, floating=false)
|
|
35
|
+
role?={string} // default: "toolbar"
|
|
36
|
+
>
|
|
37
|
+
{children}
|
|
38
|
+
</Toolbar>
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Compound sub:
|
|
42
|
+
- `<Toolbar.Group>` — 관련 액션 묶음 (role="group")
|
|
43
|
+
- `<Toolbar.Divider>` — orientation 따라 자동 회전 (가로=세로 hairline, 세로=가로 hairline)
|
|
44
|
+
- `<Toolbar.Spacer>` — flex:1 공간 밀기
|
|
45
|
+
|
|
46
|
+
### 접근성
|
|
47
|
+
- **Roving tabindex 자동** — Tab으로 toolbar에 1번 진입 후, 안쪽에선 ← → (가로) 또는 ↑ ↓ (세로)로 아이템 순회. Home/End로 양 끝.
|
|
48
|
+
- `role="toolbar"` + `aria-orientation` 자동 세팅.
|
|
49
|
+
- 소비처에서 `aria-label` 지정 권장 (`<Toolbar aria-label="이미지 편집">`).
|
|
50
|
+
|
|
51
|
+
### 조합 예시
|
|
52
|
+
```tsx
|
|
53
|
+
// 에디터 — floating 알약, 좌/중/우 섹션
|
|
54
|
+
<Toolbar variant="floating">
|
|
55
|
+
<Toolbar.Group>
|
|
56
|
+
<IconButton size="sm" variant="ghost" aria-label="실행 취소" icon={<Icon name="arrow-u-up-left" />} />
|
|
57
|
+
<IconButton size="sm" variant="ghost" aria-label="다시 실행" icon={<Icon name="arrow-u-up-right" />} />
|
|
58
|
+
</Toolbar.Group>
|
|
59
|
+
<Toolbar.Divider />
|
|
60
|
+
<Toolbar.Group>
|
|
61
|
+
<IconButton size="sm" variant="ghost" aria-label="굵게" icon={<Icon name="text-b" />} />
|
|
62
|
+
<IconButton size="sm" variant="ghost" aria-label="기울임" icon={<Icon name="text-italic" />} />
|
|
63
|
+
</Toolbar.Group>
|
|
64
|
+
<Toolbar.Spacer />
|
|
65
|
+
<Toolbar.Group>
|
|
66
|
+
<IconButton size="sm" variant="ghost" aria-label="공유" icon={<Icon name="share" />} />
|
|
67
|
+
</Toolbar.Group>
|
|
68
|
+
</Toolbar>
|
|
69
|
+
|
|
70
|
+
// 페이지 상단 — attached, 콘텐츠에 붙음
|
|
71
|
+
<Toolbar variant="attached">
|
|
72
|
+
<Toolbar.Group>
|
|
73
|
+
<Button size="sm" variant="ghost" leftIcon={<Icon name="plus" />}>새로 만들기</Button>
|
|
74
|
+
<Button size="sm" variant="ghost" leftIcon={<Icon name="funnel" />}>필터</Button>
|
|
75
|
+
</Toolbar.Group>
|
|
76
|
+
<Toolbar.Spacer />
|
|
77
|
+
<IconButton size="sm" variant="ghost" aria-label="보기 전환" icon={<Icon name="list" />} />
|
|
78
|
+
</Toolbar>
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
### 관련
|
|
82
|
+
- [[components/icon-button]] — toolbar 안 주 버튼
|
|
83
|
+
- [[components/button]] — label 짧은 액션
|
|
84
|
+
- [[components/tooltip]] — IconButton엔 Tooltip 필수
|
|
85
|
+
- [[components/breadcrumb]] — 페이지 상단에선 Breadcrumb + Toolbar 조합이 흔함
|
|
86
|
+
|
|
87
|
+
<!-- component-contract -->
|
|
88
|
+
```json
|
|
89
|
+
{"roles":["toolbar"],"native":[],"hints":[],"requires":[]}
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
<!-- generated-use-cases:start -->
|
|
93
|
+
### 사용 사례 연결
|
|
94
|
+
|
|
95
|
+
- Text editor · Line editor
|
|
96
|
+
- 문서: /en/components/general/toolbar#use-cases
|
|
97
|
+
- 참조 원본: [Toolbar 사례](../use-cases/general-toolbar.md)
|
|
98
|
+
- AI 조회: `get_guide(topic="use-cases/general-toolbar", sections=["사례 목록", "파일 목록"])` 후 필요한 `Section:` / `Source:` 헤딩을 선택한다.
|
|
99
|
+
<!-- generated-use-cases:end -->
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
# Tooltip
|
|
2
|
+
|
|
3
|
+
### 원칙
|
|
4
|
+
hover·focus 시 뜨는 **짧은 보조 설명**. Radix Tooltip 위에 얹은 compound. 라벨이 없는 [[components/icon-button]]의 의미 설명, 축약된 단어의 보충, 단축키 힌트에 사용. **클릭 액션은 담지 않는다** — 그건 [[components/popover]].
|
|
5
|
+
|
|
6
|
+
### Do
|
|
7
|
+
- 라벨이 없는 아이콘 버튼엔 반드시 Tooltip + `aria-label` 둘 다.
|
|
8
|
+
- 내용은 **한 줄** 또는 **최대 두 줄** — Tooltip은 설명이 아니라 힌트.
|
|
9
|
+
- 단축키는 Code 대신 [[components/shortcut]]의 `size="sm"`과 조합한다. Tooltip 내부에서는 작은 글자와 패딩을 사용하고, 키캡 배경·글자는 `--tooltip-bg`/`--tooltip-fg`에서 파생해 모드에 맞춘다: `content={<>붙여넣기 <Shortcut>⌘V</Shortcut></>}`.
|
|
10
|
+
- `side`로 방향 지정 — 공간이 좁은 쪽은 자동 flip.
|
|
11
|
+
- `followMouse`는 긴 호버 요소(차트·툴바)에서만.
|
|
12
|
+
|
|
13
|
+
### Don't
|
|
14
|
+
- 모바일/터치에서 hover에만 의존하는 힌트는 쓰지 않는다. 중요한 정보는 Label·description으로 제공한다. 클릭 완료 후 잠시 표시하는 결과 피드백은 허용한다.
|
|
15
|
+
- 액션 버튼이 담긴 Tooltip 금지 — [[components/popover]]로.
|
|
16
|
+
- content에 긴 문단 금지. 설명이 길면 Dialog 또는 Popover.
|
|
17
|
+
- hover 시 사라지는 중요 정보 금지 — WCAG 2.5.3 (호버 지속성) 위반.
|
|
18
|
+
- 표면 등장·퇴장을 별도 애니메이션으로 재작성하지 않는다. `.m-float`이 전담한다. 액션 결과의 내부 콘텐츠 전환은 아래 표준을 따른다.
|
|
19
|
+
|
|
20
|
+
### Fallback
|
|
21
|
+
side 애매하면 `top`, align 애매하면 `center`, delayDuration 애매하면 Radix 기본(~700ms).
|
|
22
|
+
|
|
23
|
+
### 관련
|
|
24
|
+
- [[components/icon-button]] — 가장 흔한 트리거 (aria-label 보충)
|
|
25
|
+
- [[components/shortcut]] — content 안쪽 단축키 힌트
|
|
26
|
+
- [[components/popover]] — 액션·입력이 담긴 자리 (Tooltip 대신)
|
|
27
|
+
- [[axes/motion]] — Content in/out은 `.m-float` 유틸
|
|
28
|
+
|
|
29
|
+
### Props 시그니처
|
|
30
|
+
```tsx
|
|
31
|
+
<Tooltip
|
|
32
|
+
content={ReactNode} // 한 줄 또는 Shortcut 조합
|
|
33
|
+
side="top | right | bottom | left" // default: top (자동 flip)
|
|
34
|
+
align="start | center | end" // default: center
|
|
35
|
+
sideOffset={number} // default: 6
|
|
36
|
+
arrowOffset={number} // 꼭지 중심 오프셋 (followMouse=true 시 무시)
|
|
37
|
+
followMouse={boolean} // 트리거 위 커서 추적
|
|
38
|
+
arrow={boolean} // default: true
|
|
39
|
+
delayDuration={number} // ms, default: Radix 기본
|
|
40
|
+
open={boolean}
|
|
41
|
+
onOpenChange={(open: boolean) => void}
|
|
42
|
+
>
|
|
43
|
+
{trigger} // 자동으로 asChild 처리
|
|
44
|
+
</Tooltip>
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
### Size · 색
|
|
48
|
+
Tooltip은 size prop 없음 — 콘텐츠에 맞춰 자동 폭 (최소 240px). 색은 Mode 반전 (라이트에선 다크 Tooltip, 다크에선 라이트) — `--tooltip-bg`·`--tooltip-fg` 토큰이 자동.
|
|
49
|
+
|
|
50
|
+
### 조합 예시
|
|
51
|
+
```tsx
|
|
52
|
+
// 아이콘 버튼 라벨 — 가장 흔한 자리
|
|
53
|
+
<Tooltip content="복사">
|
|
54
|
+
<IconButton icon={<Icon name="copy" />} aria-label="복사" />
|
|
55
|
+
</Tooltip>
|
|
56
|
+
|
|
57
|
+
// 단축키 힌트 — Shortcut 조합
|
|
58
|
+
<Tooltip content={<>붙여넣기 <Shortcut>⌘V</Shortcut></>}>
|
|
59
|
+
<IconButton icon={<Icon name="clipboard" />} aria-label="붙여넣기" />
|
|
60
|
+
</Tooltip>
|
|
61
|
+
|
|
62
|
+
// followMouse — 긴 요소 (툴바 레이블)
|
|
63
|
+
<Tooltip content="Timeline에서 이 시점을 선택" side="bottom" followMouse>
|
|
64
|
+
<div className="timeline-track">...</div>
|
|
65
|
+
</Tooltip>
|
|
66
|
+
|
|
67
|
+
// 축약어 보충
|
|
68
|
+
<Tooltip content="Operational Expenditure (운영비)" side="top">
|
|
69
|
+
<span className="metric-label">OPEX</span>
|
|
70
|
+
</Tooltip>
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
<!-- component-contract -->
|
|
74
|
+
```json
|
|
75
|
+
{"roles":["tooltip"],"native":[],"hints":[],"requires":[]}
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
### 액션 완료 피드백 애니메이션 표준
|
|
79
|
+
- 실제 예제: `/en/components/general/tooltip#use-cases`의 Copy confirmation. [[components/message-actions]]의 successLabel/errorLabel을 사용해 동일 구현을 재사용한다.
|
|
80
|
+
- 비동기 성공 후에만 체크 + 완료 문구를 1200ms 표시한다. 실패는 errorLabel로 구분한다. 완료 피드백은 포인터 이탈·포커스 해제 시 닫는다.
|
|
81
|
+
- 완료 체크와 문구를 별도로 애니메이션한다. 체크는 duration-slower / ease-out으로 clip-path inset(0 100% 0 0)→inset(0)(크기 고정), 문구는 duration-base 뒤에 duration-slow / ease-out으로 translateY(space-0_5 / 2)→0·opacity 0→1로 나타난다. 묶음 전체를 확대하지 않는다. 체크는 size-3, 내부 gap은 space-1이며 라벨 폭은 내용에 맞춘다. 기본 라벨에 완료 문구용 최소 폭을 예약하지 않는다. 표면 자체는 m-float을 유지하며 Radix open/delayed-open/instant-open 모두 같은 등장 모션을 적용한다.
|
|
82
|
+
- 종료 중에는 완료 문구를 유지한다. 원래 라벨은 다음 hover/focus로 새로 열릴 때만 복원해 Copy가 스치지 않게 한다. 연속 실행은 마지막 완료부터 타이머를 다시 시작한다.
|
|
83
|
+
- data-motion=none 및 prefers-reduced-motion에서는 콘텐츠 전환 애니메이션을 끈다. 버튼 접근성 이름은 원래 액션 이름을 유지한다.
|
|
84
|
+
|
|
85
|
+
- 완료 전환 시 원래 라벨을 별도 레이어로 유지해 duration-base로 페이드아웃한다. 체크와 완료 문구는 duration-base 뒤에 등장해 이전 라벨이 완전히 사라진 뒤 완료 문구를 표시한다. 두 라벨을 겹쳐 표시하지 않는다. 이전 라벨은 aria-hidden이며 모션 감소 설정에서는 즉시 숨긴다.
|
|
86
|
+
|
|
87
|
+
<!-- generated-use-cases:start -->
|
|
88
|
+
### 사용 사례 연결
|
|
89
|
+
|
|
90
|
+
- Copy confirmation
|
|
91
|
+
- 문서: /en/components/general/tooltip#use-cases
|
|
92
|
+
- 참조 원본: [Tooltip 사례](../use-cases/general-tooltip.md)
|
|
93
|
+
- AI 조회: `get_guide(topic="use-cases/general-tooltip", sections=["사례 목록", "파일 목록"])` 후 필요한 `Section:` / `Source:` 헤딩을 선택한다.
|
|
94
|
+
<!-- generated-use-cases:end -->
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# TopLoader
|
|
2
|
+
|
|
3
|
+
### 원칙
|
|
4
|
+
얇은 가로 **라우팅·네트워크 로딩 신호 바** (NProgress류). 두 모드: `value` 있으면 **determinate**(그 %로 채움), 없으면 **indeterminate**(왼쪽부터 자연스레 채워지는 왕복). 페이지 상단 fixed로 두고 라우팅 전환·네트워크 요청 중 "지금 뭔가 로드 중" 신호만 흘린다.
|
|
5
|
+
|
|
6
|
+
**TopLoader ≠ ProgressBar.** 값이 있는 진행률 게이지(업로드 60%, 설치 3/10 단계)는 ProgressBar(추후 신설)의 자리 — TopLoader는 "신호 바"지 "데이터 바"가 아니다. 업계 네이밍도 TopLoader·RouteProgress·NProgress(지금의 Ovenn 자리) vs Progress·ProgressBar(값 게이지)로 나뉘어 있음.
|
|
7
|
+
|
|
8
|
+
### Do
|
|
9
|
+
- 기본 접근 가능한 이름은 `Loading`이며 aria-label로 지역화할 수 있다. active=false면 접근성 트리에서도 숨긴다.
|
|
10
|
+
- 라우팅·네트워크 로딩: `position="fixed"` + indeterminate(value 미지정).
|
|
11
|
+
- 상단 shell에 한 번만 깔아두고 app-level에서 `active` 토글 — Ovenn은 `RouteProgress`가 이미 조립해둠.
|
|
12
|
+
- `active=false`로 숨기면 자동 fade-out. 즉시 unmount 금지(깜빡임).
|
|
13
|
+
- role=`progressbar` + aria-valuenow 자동.
|
|
14
|
+
|
|
15
|
+
### Don't
|
|
16
|
+
- 긴 폼의 단계 표시엔 쓰지 않는다 — [[components/stepper]].
|
|
17
|
+
- 작업 비율·사용량 표시엔 쓰지 않는다 — TableCellMeter 또는 Chart.
|
|
18
|
+
- 파일 업로드 진행률에 쓰지 않는다 — ProgressBar(게이지, 추후 신설) 자리.
|
|
19
|
+
- 색을 variant로 바꾸지 않는다. 상태색(destructive 등)은 Meter 쪽에서.
|
|
20
|
+
- value가 100 넘지 않도록 상위에서 보장 (컴포넌트가 clamp하지만 로직 책임).
|
|
21
|
+
|
|
22
|
+
### Fallback
|
|
23
|
+
position 애매하면 `fixed`, active 애매하면 `true`. value 애매하면 미지정(indeterminate).
|
|
24
|
+
|
|
25
|
+
### 관련
|
|
26
|
+
- [[components/stepper]] — 단계 진행 표시 (TopLoader와 역할 분리)
|
|
27
|
+
- [[components/table-cell]] — TableCellMeter가 비율 바
|
|
28
|
+
- [[axes/motion]] — indeterminate 애니메이션 duration이 Motion 축에 반응
|
|
29
|
+
|
|
30
|
+
### Props 시그니처
|
|
31
|
+
```tsx
|
|
32
|
+
<TopLoader
|
|
33
|
+
value={number} // 0~100. 미지정 시 indeterminate
|
|
34
|
+
position="fixed | inline" // default: fixed
|
|
35
|
+
active={boolean} // default: true. false면 fade-out
|
|
36
|
+
/>
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### Mode 매트릭스
|
|
40
|
+
| 모드 | 조건 | 시각 | 쓰임 |
|
|
41
|
+
|---|---|---|---|
|
|
42
|
+
| determinate | `value` 숫자 | %만큼 채움 | 라우팅 완료 임박·실제 % 아는 전환 (드물다) |
|
|
43
|
+
| indeterminate | `value` 미지정 | 무한 왕복 | **기본** — 네트워크·라우팅 로딩 |
|
|
44
|
+
|
|
45
|
+
### Position 매트릭스
|
|
46
|
+
| position | 자리 | 쓰임 |
|
|
47
|
+
|---|---|---|
|
|
48
|
+
| `fixed` | 화면 최상단 fixed | **기본** — 라우팅 로딩바(Linear/Vercel 패턴) |
|
|
49
|
+
| `inline` | 부모 안 inline | 미리보기·데모 자리 (실사용 거의 없음) |
|
|
50
|
+
|
|
51
|
+
### 조합 예시
|
|
52
|
+
```tsx
|
|
53
|
+
// 라우팅 로딩 — 상단 fixed indeterminate (app shell)
|
|
54
|
+
<TopLoader active={isNavigating} />
|
|
55
|
+
|
|
56
|
+
// RouteProgress는 문서 셸에서 링크·Sidebar·검색·언어 전환의 실제 transition pending 상태를 공유한다. 프로그램 이동은 useProgressRouter를 사용한다.
|
|
57
|
+
import { RouteProgress } from "@/app/_components/RouteProgress";
|
|
58
|
+
<RouteProgress />
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
<!-- component-contract -->
|
|
62
|
+
```json
|
|
63
|
+
{"roles":["top-loader"],"native":[],"hints":[],"requires":[]}
|
|
64
|
+
```
|