@conscience-technology/ovenn 0.0.0-stage → 0.6.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +189 -2
- package/assets/components/AIMessage/AIMessage.module.css +149 -0
- package/assets/components/AIMessage/AIMessage.tsx +106 -0
- package/assets/components/AIMessage/index.ts +2 -0
- package/assets/components/Accordion/Accordion.module.css +262 -0
- package/assets/components/Accordion/Accordion.tsx +209 -0
- package/assets/components/Accordion/index.ts +7 -0
- package/assets/components/AppFrame/AppFrame.module.css +198 -0
- package/assets/components/AppFrame/AppFrame.tsx +93 -0
- package/assets/components/AppFrame/index.ts +6 -0
- package/assets/components/AttachmentItem/AttachmentItem.module.css +118 -0
- package/assets/components/AttachmentItem/AttachmentItem.tsx +185 -0
- package/assets/components/AttachmentItem/index.ts +6 -0
- package/assets/components/AttachmentThumb/AttachmentThumb.module.css +137 -0
- package/assets/components/AttachmentThumb/AttachmentThumb.tsx +102 -0
- package/assets/components/AttachmentThumb/index.ts +2 -0
- package/assets/components/Avatar/Avatar.module.css +201 -0
- package/assets/components/Avatar/Avatar.tsx +283 -0
- package/assets/components/Avatar/index.ts +9 -0
- package/assets/components/AvatarUpload/AvatarUpload.module.css +82 -0
- package/assets/components/AvatarUpload/AvatarUpload.tsx +155 -0
- package/assets/components/AvatarUpload/index.ts +2 -0
- package/assets/components/Badge/Badge.module.css +152 -0
- package/assets/components/Badge/Badge.tsx +109 -0
- package/assets/components/Badge/index.ts +2 -0
- package/assets/components/BrandSet/BrandSetController.tsx +56 -0
- package/assets/components/BrandSet/index.ts +14 -0
- package/assets/components/BrandSet/resolve.ts +10 -0
- package/assets/components/BrandSet/types.ts +43 -0
- package/assets/components/Breadcrumb/Breadcrumb.module.css +277 -0
- package/assets/components/Breadcrumb/Breadcrumb.tsx +352 -0
- package/assets/components/Breadcrumb/index.ts +8 -0
- package/assets/components/Bubble/Bubble.module.css +65 -0
- package/assets/components/Bubble/Bubble.tsx +63 -0
- package/assets/components/Bubble/index.ts +2 -0
- package/assets/components/Button/Button.module.css +336 -0
- package/assets/components/Button/Button.tsx +217 -0
- package/assets/components/Button/index.ts +2 -0
- package/assets/components/ButtonGroup/ButtonGroup.tsx +22 -0
- package/assets/components/ButtonGroup/index.ts +5 -0
- package/assets/components/Callout/Callout.module.css +146 -0
- package/assets/components/Callout/Callout.tsx +207 -0
- package/assets/components/Callout/index.ts +2 -0
- package/assets/components/CanvasNode/CanvasNode.module.css +110 -0
- package/assets/components/CanvasNode/CanvasNode.tsx +77 -0
- package/assets/components/CanvasNode/index.ts +2 -0
- package/assets/components/CanvasNode/tokens.css +26 -0
- package/assets/components/Card/Card.module.css +122 -0
- package/assets/components/Card/Card.tsx +88 -0
- package/assets/components/Card/index.ts +2 -0
- package/assets/components/ChatInput/ChatInput.module.css +373 -0
- package/assets/components/ChatInput/ChatInput.tsx +362 -0
- package/assets/components/ChatInput/ModelSelector.tsx +48 -0
- package/assets/components/ChatInput/SendButton.tsx +72 -0
- package/assets/components/ChatInput/index.ts +12 -0
- package/assets/components/Checkbox/Checkbox.module.css +147 -0
- package/assets/components/Checkbox/Checkbox.tsx +44 -0
- package/assets/components/Checkbox/index.ts +2 -0
- package/assets/components/CheckboxCard/CheckboxCard.module.css +177 -0
- package/assets/components/CheckboxCard/CheckboxCard.tsx +83 -0
- package/assets/components/CheckboxCard/index.ts +2 -0
- package/assets/components/Chip/Chip.module.css +219 -0
- package/assets/components/Chip/Chip.tsx +219 -0
- package/assets/components/Chip/index.ts +2 -0
- package/assets/components/Code/Code.module.css +25 -0
- package/assets/components/Code/Code.tsx +26 -0
- package/assets/components/Code/index.ts +2 -0
- package/assets/components/CodeBlock/CodeBlock.module.css +255 -0
- package/assets/components/CodeBlock/CodeBlock.tsx +283 -0
- package/assets/components/CodeBlock/copy-code.ts +15 -0
- package/assets/components/CodeBlock/index.ts +2 -0
- package/assets/components/ColorArea/ColorArea.module.css +145 -0
- package/assets/components/ColorArea/ColorArea.tsx +156 -0
- package/assets/components/ColorArea/index.ts +2 -0
- package/assets/components/ColorField/ColorField.module.css +195 -0
- package/assets/components/ColorField/ColorField.tsx +372 -0
- package/assets/components/ColorField/index.ts +2 -0
- package/assets/components/ColorSlider/ColorSlider.module.css +167 -0
- package/assets/components/ColorSlider/ColorSlider.tsx +165 -0
- package/assets/components/ColorSlider/index.ts +15 -0
- package/assets/components/ColorSwatch/ColorSwatch.module.css +35 -0
- package/assets/components/ColorSwatch/ColorSwatch.tsx +69 -0
- package/assets/components/ColorSwatch/index.ts +2 -0
- package/assets/components/ColorSwatchPicker/ColorSwatchPicker.module.css +114 -0
- package/assets/components/ColorSwatchPicker/ColorSwatchPicker.tsx +183 -0
- package/assets/components/ColorSwatchPicker/index.ts +15 -0
- package/assets/components/Combobox/Combobox.module.css +13 -0
- package/assets/components/Combobox/Combobox.tsx +107 -0
- package/assets/components/Combobox/index.ts +2 -0
- package/assets/components/CommandPalette/CommandPalette.module.css +269 -0
- package/assets/components/CommandPalette/CommandPalette.tsx +423 -0
- package/assets/components/CommandPalette/index.ts +9 -0
- package/assets/components/CommandPalette/useCommandPaletteHotkey.ts +49 -0
- package/assets/components/ContextMenu/ContextMenu.module.css +118 -0
- package/assets/components/ContextMenu/ContextMenu.tsx +415 -0
- package/assets/components/ContextMenu/index.ts +9 -0
- package/assets/components/ControlGroup/ControlGroup.module.css +313 -0
- package/assets/components/ControlGroup/ControlGroup.tsx +69 -0
- package/assets/components/ControlGroup/context.tsx +12 -0
- package/assets/components/ControlGroup/index.ts +3 -0
- package/assets/components/ControlGroup/size.ts +9 -0
- package/assets/components/DataTable/DataTable.module.css +55 -0
- package/assets/components/DataTable/DataTable.tsx +137 -0
- package/assets/components/DataTable/index.ts +4 -0
- package/assets/components/DataTable/state.ts +34 -0
- package/assets/components/DatePicker/Calendar.tsx +485 -0
- package/assets/components/DatePicker/DESIGN_NOTES.md +106 -0
- package/assets/components/DatePicker/DESIGN_NOTES_TIME.md +125 -0
- package/assets/components/DatePicker/DateField.tsx +303 -0
- package/assets/components/DatePicker/DatePicker.module.css +590 -0
- package/assets/components/DatePicker/DatePicker.tsx +520 -0
- package/assets/components/DatePicker/TimeSelector.tsx +77 -0
- package/assets/components/DatePicker/index.ts +11 -0
- package/assets/components/DatePicker/presets.ts +84 -0
- package/assets/components/DatePicker/utils.ts +214 -0
- package/assets/components/Disclosure/Disclosure.module.css +73 -0
- package/assets/components/Disclosure/Disclosure.tsx +129 -0
- package/assets/components/Disclosure/index.ts +6 -0
- package/assets/components/Drawer/Drawer.module.css +190 -0
- package/assets/components/Drawer/Drawer.tsx +226 -0
- package/assets/components/Drawer/index.ts +15 -0
- package/assets/components/DropdownMenu/DropdownMenu.module.css +26 -0
- package/assets/components/DropdownMenu/DropdownMenu.tsx +395 -0
- package/assets/components/DropdownMenu/index.ts +9 -0
- package/assets/components/EmptyState/EmptyState.module.css +102 -0
- package/assets/components/EmptyState/EmptyState.tsx +80 -0
- package/assets/components/EmptyState/index.ts +2 -0
- package/assets/components/EventChip/EventChip.module.css +76 -0
- package/assets/components/EventChip/EventChip.tsx +47 -0
- package/assets/components/EventChip/index.ts +2 -0
- package/assets/components/EventListItem/EventListItem.module.css +220 -0
- package/assets/components/EventListItem/EventListItem.tsx +226 -0
- package/assets/components/EventListItem/index.ts +8 -0
- package/assets/components/FileIcon/FileIcon.module.css +76 -0
- package/assets/components/FileIcon/FileIcon.tsx +142 -0
- package/assets/components/FileIcon/fileExtMap.ts +166 -0
- package/assets/components/FileIcon/index.ts +9 -0
- package/assets/components/FileUpload/FileUpload.module.css +12 -0
- package/assets/components/FileUpload/FileUpload.tsx +100 -0
- package/assets/components/FileUpload/index.ts +2 -0
- package/assets/components/FileUpload/utils.ts +8 -0
- package/assets/components/GalleryItem/GalleryItem.module.css +220 -0
- package/assets/components/GalleryItem/GalleryItem.tsx +163 -0
- package/assets/components/GalleryItem/index.ts +7 -0
- package/assets/components/GeneratedImage/GeneratedImage.module.css +91 -0
- package/assets/components/GeneratedImage/GeneratedImage.tsx +84 -0
- package/assets/components/GeneratedImage/index.ts +5 -0
- package/assets/components/Hint/Hint.module.css +75 -0
- package/assets/components/Hint/Hint.tsx +89 -0
- package/assets/components/Hint/index.ts +2 -0
- package/assets/components/Icon/Icon.tsx +1478 -0
- package/assets/components/Icon/context.tsx +39 -0
- package/assets/components/Icon/index.ts +4 -0
- package/assets/components/IconButton/IconButton.module.css +116 -0
- package/assets/components/IconButton/IconButton.tsx +113 -0
- package/assets/components/IconButton/index.ts +2 -0
- package/assets/components/Input/Input.module.css +357 -0
- package/assets/components/Input/Input.tsx +424 -0
- package/assets/components/Input/index.ts +2 -0
- package/assets/components/Kanban/Kanban.module.css +347 -0
- package/assets/components/Kanban/Kanban.tsx +371 -0
- package/assets/components/Kanban/index.ts +10 -0
- package/assets/components/ListItem/ListItem.module.css +232 -0
- package/assets/components/ListItem/ListItem.tsx +262 -0
- package/assets/components/ListItem/index.ts +9 -0
- package/assets/components/MenuItem/MenuItem.module.css +601 -0
- package/assets/components/MenuItem/MenuItem.tsx +704 -0
- package/assets/components/MenuItem/index.ts +8 -0
- package/assets/components/MessageActions/MessageActions.module.css +43 -0
- package/assets/components/MessageActions/MessageActions.tsx +114 -0
- package/assets/components/MessageActions/index.ts +6 -0
- package/assets/components/MessageQuote/MessageQuote.module.css +29 -0
- package/assets/components/MessageQuote/MessageQuote.tsx +33 -0
- package/assets/components/MessageQuote/index.ts +2 -0
- package/assets/components/MessageSources/MessageSources.module.css +58 -0
- package/assets/components/MessageSources/MessageSources.tsx +60 -0
- package/assets/components/MessageSources/index.ts +2 -0
- package/assets/components/MessageState/MessageState.module.css +118 -0
- package/assets/components/MessageState/MessageState.tsx +150 -0
- package/assets/components/MessageState/index.ts +2 -0
- package/assets/components/MessageTable/MessageTable.module.css +59 -0
- package/assets/components/MessageTable/MessageTable.tsx +21 -0
- package/assets/components/MessageTable/index.ts +2 -0
- package/assets/components/MetricCard/MetricCard.module.css +153 -0
- package/assets/components/MetricCard/MetricCard.tsx +140 -0
- package/assets/components/MetricCard/index.ts +2 -0
- package/assets/components/Modal/Modal.module.css +285 -0
- package/assets/components/Modal/Modal.tsx +398 -0
- package/assets/components/Modal/index.ts +22 -0
- package/assets/components/MultiSelect/MultiSelect.tsx +7 -0
- package/assets/components/MultiSelect/index.ts +2 -0
- package/assets/components/Onboarding/DocsIndex.tsx +102 -0
- package/assets/components/Onboarding/LayoutBuilder.tsx +204 -0
- package/assets/components/Onboarding/Onboarding.module.css +1561 -0
- package/assets/components/Onboarding/OnboardingAxisPanel.tsx +516 -0
- package/assets/components/Onboarding/OnboardingPage.tsx +1481 -0
- package/assets/components/Onboarding/PresetsGallery.tsx +56 -0
- package/assets/components/Onboarding/actions.ts +524 -0
- package/assets/components/Onboarding/index.ts +8 -0
- package/assets/components/Onboarding/palette.css +40 -0
- package/assets/components/Onboarding/wizardData.ts +529 -0
- package/assets/components/PageHeader/PageHeader.module.css +119 -0
- package/assets/components/PageHeader/PageHeader.tsx +126 -0
- package/assets/components/PageHeader/index.ts +2 -0
- package/assets/components/Pagination/Pagination.module.css +132 -0
- package/assets/components/Pagination/Pagination.tsx +294 -0
- package/assets/components/Pagination/index.ts +6 -0
- package/assets/components/ProgressBar/ProgressBar.module.css +127 -0
- package/assets/components/ProgressBar/ProgressBar.tsx +90 -0
- package/assets/components/ProgressBar/index.ts +7 -0
- package/assets/components/QuotationBar/QuotationBar.module.css +61 -0
- package/assets/components/QuotationBar/QuotationBar.tsx +60 -0
- package/assets/components/QuotationBar/index.ts +2 -0
- package/assets/components/Radio/Radio.module.css +123 -0
- package/assets/components/Radio/Radio.tsx +39 -0
- package/assets/components/Radio/index.ts +2 -0
- package/assets/components/RadioCard/RadioCard.module.css +208 -0
- package/assets/components/RadioCard/RadioCard.tsx +164 -0
- package/assets/components/RadioCard/index.ts +2 -0
- package/assets/components/SegmentedChart/SegmentedChart.module.css +221 -0
- package/assets/components/SegmentedChart/SegmentedChart.tsx +104 -0
- package/assets/components/SegmentedChart/index.ts +2 -0
- package/assets/components/Select/Select.module.css +161 -0
- package/assets/components/Select/Select.tsx +450 -0
- package/assets/components/Select/index.ts +10 -0
- package/assets/components/Shortcut/Shortcut.module.css +77 -0
- package/assets/components/Shortcut/Shortcut.tsx +206 -0
- package/assets/components/Shortcut/index.ts +2 -0
- package/assets/components/Sidebar/Sidebar.module.css +406 -0
- package/assets/components/Sidebar/Sidebar.tsx +585 -0
- package/assets/components/Sidebar/index.ts +7 -0
- package/assets/components/Slider/Slider.module.css +134 -0
- package/assets/components/Slider/Slider.tsx +99 -0
- package/assets/components/Slider/index.ts +2 -0
- package/assets/components/Spinner/LottiePlayer.tsx +179 -0
- package/assets/components/Spinner/Spinner.module.css +205 -0
- package/assets/components/Spinner/Spinner.tsx +133 -0
- package/assets/components/Spinner/index.ts +10 -0
- package/assets/components/Spinner/lottieColor.ts +166 -0
- package/assets/components/Spinner/lottieManifest.ts +100 -0
- package/assets/components/Stepper/Stepper.module.css +330 -0
- package/assets/components/Stepper/Stepper.tsx +244 -0
- package/assets/components/Stepper/index.ts +2 -0
- package/assets/components/Switch/Switch.module.css +163 -0
- package/assets/components/Switch/Switch.tsx +73 -0
- package/assets/components/Switch/index.ts +2 -0
- package/assets/components/TabStrip/TabStrip.module.css +358 -0
- package/assets/components/TabStrip/TabStrip.tsx +404 -0
- package/assets/components/TabStrip/index.ts +7 -0
- package/assets/components/TableCell/TableCell.module.css +130 -0
- package/assets/components/TableCell/TableCellAvatar.tsx +66 -0
- package/assets/components/TableCell/TableCellBadge.tsx +26 -0
- package/assets/components/TableCell/TableCellImage.tsx +49 -0
- package/assets/components/TableCell/TableCellMeter.tsx +55 -0
- package/assets/components/TableCell/TableCellNumber.tsx +43 -0
- package/assets/components/TableCell/TableCellText.tsx +33 -0
- package/assets/components/TableCell/index.ts +19 -0
- package/assets/components/TableHeader/TableHeader.module.css +351 -0
- package/assets/components/TableHeader/TableHeader.tsx +658 -0
- package/assets/components/TableHeader/index.ts +9 -0
- package/assets/components/TableRow/TableRow.module.css +352 -0
- package/assets/components/TableRow/TableRow.tsx +292 -0
- package/assets/components/TableRow/index.ts +8 -0
- package/assets/components/TableRowEdit/TableRowEdit.module.css +162 -0
- package/assets/components/TableRowEdit/TableRowEdit.tsx +279 -0
- package/assets/components/TableRowEdit/index.ts +2 -0
- package/assets/components/TableRowSelect/TableRowSelect.module.css +23 -0
- package/assets/components/TableRowSelect/TableRowSelect.tsx +173 -0
- package/assets/components/TableRowSelect/index.ts +2 -0
- package/assets/components/TableToolbar/TableToolbar.module.css +37 -0
- package/assets/components/TableToolbar/TableToolbar.tsx +105 -0
- package/assets/components/TableToolbar/index.ts +5 -0
- package/assets/components/Tabs/Tabs.module.css +372 -0
- package/assets/components/Tabs/Tabs.tsx +517 -0
- package/assets/components/Tabs/index.ts +9 -0
- package/assets/components/TemplateBoundary/TemplateBoundary.module.css +4 -0
- package/assets/components/TemplateBoundary/TemplateBoundary.tsx +50 -0
- package/assets/components/TemplateBoundary/index.ts +3 -0
- package/assets/components/TemplateBoundary/types.ts +23 -0
- package/assets/components/Textarea/Textarea.module.css +343 -0
- package/assets/components/Textarea/Textarea.tsx +438 -0
- package/assets/components/Textarea/index.ts +7 -0
- package/assets/components/ThemeController.tsx +369 -0
- package/assets/components/TimePicker/TimePicker.module.css +112 -0
- package/assets/components/TimePicker/TimePicker.tsx +403 -0
- package/assets/components/TimePicker/index.ts +8 -0
- package/assets/components/TimePicker/utils.ts +116 -0
- package/assets/components/Toast/Toast.module.css +332 -0
- package/assets/components/Toast/Toast.tsx +310 -0
- package/assets/components/Toast/index.ts +16 -0
- package/assets/components/Toolbar/Toolbar.module.css +128 -0
- package/assets/components/Toolbar/Toolbar.tsx +186 -0
- package/assets/components/Toolbar/index.ts +7 -0
- package/assets/components/Tooltip/Tooltip.module.css +42 -0
- package/assets/components/Tooltip/Tooltip.tsx +332 -0
- package/assets/components/Tooltip/index.ts +2 -0
- package/assets/components/TopLoader/TopLoader.module.css +64 -0
- package/assets/components/TopLoader/TopLoader.tsx +58 -0
- package/assets/components/TopLoader/index.ts +2 -0
- package/assets/components/Topbar/Topbar.module.css +54 -0
- package/assets/components/Topbar/Topbar.tsx +102 -0
- package/assets/components/Topbar/index.ts +2 -0
- package/assets/components/TreeNav/TreeNav.module.css +32 -0
- package/assets/components/TreeNav/TreeNav.tsx +130 -0
- package/assets/components/TreeNav/index.ts +2 -0
- package/assets/components/UserMessage/UserMessage.module.css +47 -0
- package/assets/components/UserMessage/UserMessage.tsx +66 -0
- package/assets/components/UserMessage/index.ts +2 -0
- package/assets/components/_cn.ts +3 -0
- package/assets/components/_color.ts +75 -0
- package/assets/components/_data.ts +607 -0
- package/assets/components/_rowInteraction.ts +16 -0
- package/assets/components/_utils.css +130 -0
- package/assets/components/app-shell.css +17 -0
- package/assets/components/axisOptions.ts +15 -0
- package/assets/components/component-registry.json +914 -0
- package/assets/components/index.ts +102 -0
- package/assets/components/reset.css +77 -0
- package/assets/components/themeBootScript.ts +124 -0
- package/assets/components/tokens.css +1121 -0
- package/assets/prompts/ASSEMBLY.md +70 -0
- package/assets/prompts/CASCADE.md +49 -0
- package/assets/prompts/CATALOG.md +127 -0
- package/assets/prompts/GUIDE.md +307 -0
- package/assets/prompts/MEMORY.md +202 -0
- package/assets/prompts/OVERRIDE.md +30 -0
- package/assets/prompts/PRINCIPLES.md +114 -0
- package/assets/prompts/SLOTS.md +194 -0
- package/assets/prompts/WORKFLOW_DESIGN.md +156 -0
- package/assets/prompts/axes/density.md +42 -0
- package/assets/prompts/axes/font.md +30 -0
- package/assets/prompts/axes/icon.md +57 -0
- package/assets/prompts/axes/mode.md +52 -0
- package/assets/prompts/axes/motion.md +77 -0
- package/assets/prompts/axes/palette.md +50 -0
- package/assets/prompts/axes/shape.md +33 -0
- package/assets/prompts/axes/voice.md +57 -0
- package/assets/prompts/brand-sets/_SCHEMA.md +27 -0
- package/assets/prompts/components/README.md +84 -0
- package/assets/prompts/components/_variants.md +86 -0
- package/assets/prompts/components/accordion.md +151 -0
- package/assets/prompts/components/ai-message.md +53 -0
- package/assets/prompts/components/app-frame.md +141 -0
- package/assets/prompts/components/attachment-item.md +88 -0
- package/assets/prompts/components/attachment-thumb.md +54 -0
- package/assets/prompts/components/avatar-upload.md +62 -0
- package/assets/prompts/components/avatar.md +106 -0
- package/assets/prompts/components/badge.md +123 -0
- package/assets/prompts/components/breadcrumb.md +123 -0
- package/assets/prompts/components/bubble.md +61 -0
- package/assets/prompts/components/button-group.md +35 -0
- package/assets/prompts/components/button.md +133 -0
- package/assets/prompts/components/callout.md +98 -0
- package/assets/prompts/components/canvas-node.md +63 -0
- package/assets/prompts/components/card.md +167 -0
- package/assets/prompts/components/chat-input.md +103 -0
- package/assets/prompts/components/checkbox-card.md +72 -0
- package/assets/prompts/components/checkbox.md +98 -0
- package/assets/prompts/components/chip.md +163 -0
- package/assets/prompts/components/code-block.md +94 -0
- package/assets/prompts/components/code.md +62 -0
- package/assets/prompts/components/color-area.md +95 -0
- package/assets/prompts/components/color-field.md +108 -0
- package/assets/prompts/components/color-slider.md +108 -0
- package/assets/prompts/components/color-swatch-picker.md +96 -0
- package/assets/prompts/components/color-swatch.md +85 -0
- package/assets/prompts/components/combobox.md +35 -0
- package/assets/prompts/components/command-palette.md +193 -0
- package/assets/prompts/components/context-menu.md +150 -0
- package/assets/prompts/components/control-group.md +67 -0
- package/assets/prompts/components/data-table.md +81 -0
- package/assets/prompts/components/date-picker.md +146 -0
- package/assets/prompts/components/disclosure.md +55 -0
- package/assets/prompts/components/drawer.md +141 -0
- package/assets/prompts/components/dropdown-menu.md +165 -0
- package/assets/prompts/components/empty-state.md +74 -0
- package/assets/prompts/components/event-chip.md +81 -0
- package/assets/prompts/components/event-list-item.md +108 -0
- package/assets/prompts/components/file-icon.md +83 -0
- package/assets/prompts/components/file-upload.md +35 -0
- package/assets/prompts/components/gallery-item.md +163 -0
- package/assets/prompts/components/generated-image.md +85 -0
- package/assets/prompts/components/hint.md +94 -0
- package/assets/prompts/components/icon-button.md +99 -0
- package/assets/prompts/components/icon.md +79 -0
- package/assets/prompts/components/input.md +134 -0
- package/assets/prompts/components/kanban.md +172 -0
- package/assets/prompts/components/list-item.md +325 -0
- package/assets/prompts/components/menu-item.md +247 -0
- package/assets/prompts/components/message-actions.md +54 -0
- package/assets/prompts/components/message-quote.md +34 -0
- package/assets/prompts/components/message-sources.md +46 -0
- package/assets/prompts/components/message-state.md +61 -0
- package/assets/prompts/components/message-table.md +42 -0
- package/assets/prompts/components/metric-card.md +137 -0
- package/assets/prompts/components/modal.md +235 -0
- package/assets/prompts/components/multi-select.md +31 -0
- package/assets/prompts/components/onboarding.md +51 -0
- package/assets/prompts/components/page-header.md +161 -0
- package/assets/prompts/components/pagination.md +99 -0
- package/assets/prompts/components/progress-bar.md +75 -0
- package/assets/prompts/components/quotation-bar.md +44 -0
- package/assets/prompts/components/radio-card.md +146 -0
- package/assets/prompts/components/radio.md +56 -0
- package/assets/prompts/components/segmented-chart.md +65 -0
- package/assets/prompts/components/select.md +145 -0
- package/assets/prompts/components/shortcut.md +81 -0
- package/assets/prompts/components/sidebar.md +528 -0
- package/assets/prompts/components/slider.md +111 -0
- package/assets/prompts/components/spinner.md +124 -0
- package/assets/prompts/components/stepper.md +108 -0
- package/assets/prompts/components/switch.md +103 -0
- package/assets/prompts/components/tab-strip.md +162 -0
- package/assets/prompts/components/table-cell.md +65 -0
- package/assets/prompts/components/table-header.md +181 -0
- package/assets/prompts/components/table-row-edit.md +144 -0
- package/assets/prompts/components/table-row-select.md +90 -0
- package/assets/prompts/components/table-row.md +175 -0
- package/assets/prompts/components/table-toolbar.md +94 -0
- package/assets/prompts/components/tabs.md +134 -0
- package/assets/prompts/components/textarea.md +114 -0
- package/assets/prompts/components/time-picker.md +86 -0
- package/assets/prompts/components/toast.md +155 -0
- package/assets/prompts/components/toolbar.md +86 -0
- package/assets/prompts/components/tooltip.md +76 -0
- package/assets/prompts/components/top-loader.md +64 -0
- package/assets/prompts/components/topbar.md +177 -0
- package/assets/prompts/components/tree-nav.md +77 -0
- package/assets/prompts/components/user-message.md +50 -0
- package/assets/prompts/design-examples/README.md +57 -0
- package/assets/prompts/design-examples/catalog.json +1 -0
- package/assets/prompts/primitives/emerge.md +43 -0
- package/assets/prompts/primitives/fade.md +31 -0
- package/assets/prompts/primitives/mobile.md +53 -0
- package/assets/prompts/primitives/scale.md +32 -0
- package/assets/prompts/primitives/scroll.md +170 -0
- package/assets/prompts/primitives/slide.md +31 -0
- package/assets/prompts/recipes/README.md +104 -0
- package/assets/prompts/recipes/card-row.md +39 -0
- package/assets/prompts/recipes/form-footer.md +76 -0
- package/assets/prompts/recipes/meta-line.md +61 -0
- package/assets/prompts/recipes/page-banner.md +121 -0
- package/assets/prompts/recipes/page-header.md +107 -0
- package/assets/prompts/recipes/section-header.md +90 -0
- package/assets/prompts/templates/README.md +9 -0
- package/assets/prompts/templates/ains.md +630 -0
- package/assets/prompts/templates/aurora.md +439 -0
- package/assets/prompts/templates/glass-button.md +336 -0
- package/assets/prompts/templates/minimal.md +207 -0
- package/assets/prompts/templates/workspace.md +346 -0
- package/assets/prompts/themes/_SCHEMA.md +135 -0
- package/assets/prompts/themes/_TEMPLATE.md +73 -0
- package/assets/prompts/themes/expressive.md +118 -0
- package/assets/prompts/themes/pure.md +87 -0
- package/assets/prompts/themes/spare.md +73 -0
- package/assets/prompts/tokens/breakpoint.md +29 -0
- package/assets/prompts/tokens/color.md +103 -0
- package/assets/prompts/tokens/radius.md +33 -0
- package/assets/prompts/tokens/shadow.md +35 -0
- package/assets/prompts/tokens/spacing.md +96 -0
- package/assets/prompts/tokens/typography.md +67 -0
- package/assets/prompts/tokens/z-index.md +35 -0
- package/assets/public/expressive.png +0 -0
- package/assets/public/pure.png +0 -0
- package/assets/public/spare.png +0 -0
- package/assets/skills/ovenn/SKILL.md +12 -0
- package/assets/skills/ovenn-component/SKILL.md +12 -0
- package/assets/skills/ovenn-page/SKILL.md +12 -0
- package/assets/skills/ovenn-theme/SKILL.md +12 -0
- package/assets/skills/ovenn-validate/SKILL.md +14 -0
- package/assets/skills/ovenn-validate/fixtures/clean/Clean.module.css +12 -0
- package/assets/skills/ovenn-validate/fixtures/clean/Clean.tsx +9 -0
- package/assets/skills/ovenn-validate/scripts/lib/component-usage.js +112 -0
- package/assets/skills/ovenn-validate/scripts/lib/source-graph.js +15 -0
- package/assets/skills/ovenn-validate/scripts/lib/source-utils.mjs +25 -0
- package/assets/skills/ovenn-validate/scripts/lib/source-utils.test.mjs +52 -0
- package/assets/skills/ovenn-validate/scripts/rules/doc-sync.mjs +151 -0
- package/assets/skills/ovenn-validate/scripts/rules/doc-sync.test.mjs +91 -0
- package/assets/skills/ovenn-validate/scripts/rules/ghost-tokens.mjs +69 -0
- package/assets/skills/ovenn-validate/scripts/rules/ghost-tokens.test.mjs +52 -0
- package/assets/skills/ovenn-validate/scripts/rules/hardcoded.mjs +145 -0
- package/assets/skills/ovenn-validate/scripts/rules/hardcoded.test.mjs +83 -0
- package/assets/skills/ovenn-validate/scripts/rules/memory-rules.mjs +252 -0
- package/assets/skills/ovenn-validate/scripts/rules/memory-rules.test.mjs +131 -0
- package/assets/skills/ovenn-validate/scripts/validate.mjs +169 -0
- package/assets/skills/ovenn-wireframe/SKILL.md +12 -0
- package/bin/ovenn.js +85 -0
- package/package.json +139 -4
- package/src/commands/info.js +217 -0
- package/src/commands/init.js +386 -0
- package/src/commands/update.js +65 -0
- package/src/utils/agents.js +83 -0
- package/src/utils/assets.js +51 -0
- package/src/utils/client-bridges.js +32 -0
- package/src/utils/component-usage.js +112 -0
- package/src/utils/deps.js +59 -0
- package/src/utils/design-examples.js +101 -0
- package/src/utils/design-workflow.js +155 -0
- package/src/utils/detect.js +59 -0
- package/src/utils/diff.js +52 -0
- package/src/utils/doctor.js +47 -0
- package/src/utils/hash.js +16 -0
- package/src/utils/launch.js +94 -0
- package/src/utils/log.js +41 -0
- package/src/utils/managed-assets.js +50 -0
- package/src/utils/mcp-client.js +47 -0
- package/src/utils/meta.js +73 -0
- package/src/utils/patch.js +334 -0
- package/src/utils/prompt.js +28 -0
- package/src/utils/source-graph.js +15 -0
- package/src/utils/update-transaction.js +79 -0
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { useTheme } from "../ThemeController";
|
|
4
|
+
import { Button } from "../Button";
|
|
5
|
+
import { themePresets } from "../_data";
|
|
6
|
+
import styles from "./Onboarding.module.css";
|
|
7
|
+
|
|
8
|
+
const LABELS = {
|
|
9
|
+
ko: { applied: "적용됨", apply: "적용" },
|
|
10
|
+
en: { applied: "Applied", apply: "Apply" },
|
|
11
|
+
} as const;
|
|
12
|
+
|
|
13
|
+
export function PresetsGallery() {
|
|
14
|
+
const { applyPreset, theme, shape, density, motionMode, iconFamily, lang } = useTheme();
|
|
15
|
+
const L = LABELS[lang];
|
|
16
|
+
|
|
17
|
+
return (
|
|
18
|
+
<div className={styles.cardGrid}>
|
|
19
|
+
{themePresets.map((p) => {
|
|
20
|
+
const active =
|
|
21
|
+
theme === p.values.mode &&
|
|
22
|
+
shape === p.values.shape &&
|
|
23
|
+
density === p.values.density &&
|
|
24
|
+
motionMode === p.values.motion &&
|
|
25
|
+
iconFamily === p.values.iconFamily &&
|
|
26
|
+
(p.values.lang == null || lang === p.values.lang);
|
|
27
|
+
|
|
28
|
+
return (
|
|
29
|
+
<div
|
|
30
|
+
key={p.id}
|
|
31
|
+
className={styles.card}
|
|
32
|
+
data-active={active || undefined}
|
|
33
|
+
>
|
|
34
|
+
<div className={styles.cardHead}>
|
|
35
|
+
<span className={styles.cardTitle}>{p.label}</span>
|
|
36
|
+
</div>
|
|
37
|
+
<p className={styles.cardDesc}>{p.desc}</p>
|
|
38
|
+
<p className={styles.cardDesc}>
|
|
39
|
+
{p.values.mode}, {p.values.shape}, {p.values.density}, {p.values.motion},{" "}
|
|
40
|
+
{p.values.iconFamily}
|
|
41
|
+
</p>
|
|
42
|
+
<div className={styles.cardFoot}>
|
|
43
|
+
<Button
|
|
44
|
+
variant={active ? "primary" : "ghost"}
|
|
45
|
+
size="sm"
|
|
46
|
+
onClick={() => applyPreset(p.values)}
|
|
47
|
+
>
|
|
48
|
+
{active ? L.applied : L.apply}
|
|
49
|
+
</Button>
|
|
50
|
+
</div>
|
|
51
|
+
</div>
|
|
52
|
+
);
|
|
53
|
+
})}
|
|
54
|
+
</div>
|
|
55
|
+
);
|
|
56
|
+
}
|
|
@@ -0,0 +1,524 @@
|
|
|
1
|
+
"use server";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* 온보딩 완료 시 플젝 파일에 선택을 영구 반영하는 server action.
|
|
5
|
+
*
|
|
6
|
+
* Ovenn은 "사용자가 자기 플젝에 복사해서 쓰는" 모델. `npx ovenn init`으로 설치하면
|
|
7
|
+
* 이 서버 액션이 사용자 플젝의 /ovenn 라우트에 심어지고, "적용" 버튼이 눌리면
|
|
8
|
+
* 사용자 플젝 루트에 두 파일이 쓰인다:
|
|
9
|
+
*
|
|
10
|
+
* 1) ovenn.config.json — 축 값 JSON. 머신 리더블 소스.
|
|
11
|
+
* ThemeController가 import해서 SSR 초기값으로 사용.
|
|
12
|
+
* AI 에이전트(Claude Code 등)도 이걸 읽어서 축 참조.
|
|
13
|
+
* 2) DESIGN.md — 축 값 + 테마 산문 요약. 사람·AI 모두 읽는 설명.
|
|
14
|
+
*
|
|
15
|
+
* layout.tsx 자동 패치는 하지 않음 — 사용자 플젝마다 구조가 달라 정규식 치환이
|
|
16
|
+
* 깨지기 쉬움. ThemeController가 ovenn.config.json을 initialConfig prop으로
|
|
17
|
+
* 받으면 됨.
|
|
18
|
+
*
|
|
19
|
+
* 로컬 dev 환경에서만 돌아간다는 가정. 프로덕션 서버리스에서는 FS 쓰기 거부.
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
import { writeFile, access, readFile } from "node:fs/promises";
|
|
23
|
+
import { join, dirname, parse } from "node:path";
|
|
24
|
+
import type {
|
|
25
|
+
DensityValue,
|
|
26
|
+
IconFamily,
|
|
27
|
+
LangValue,
|
|
28
|
+
MotionValue,
|
|
29
|
+
PaletteSet,
|
|
30
|
+
ShapeValue,
|
|
31
|
+
VoiceValue,
|
|
32
|
+
} from "../_data";
|
|
33
|
+
import type { Lang, LayoutId } from "./wizardData";
|
|
34
|
+
|
|
35
|
+
export type AppliedLayout = {
|
|
36
|
+
id: LayoutId;
|
|
37
|
+
sidebar: "left" | "right" | "dual" | "none";
|
|
38
|
+
topbar: boolean;
|
|
39
|
+
/** AppFrame layout prop과 1:1. topbar=false면 생략. */
|
|
40
|
+
appFrameLayout?: "sidebar-first" | "topbar-first";
|
|
41
|
+
/** 탑바 아래 탭 바 유무. */
|
|
42
|
+
tabs?: boolean;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
export type AppliedConfig = {
|
|
46
|
+
brandSet: { id: string; version: string };
|
|
47
|
+
theme: "none" | "pure" | "spare" | "expressive";
|
|
48
|
+
mode: "light" | "dark";
|
|
49
|
+
/** primary brand hex (#RRGGBB). */
|
|
50
|
+
brand: string;
|
|
51
|
+
paletteSet: PaletteSet;
|
|
52
|
+
mono: boolean;
|
|
53
|
+
shape: ShapeValue;
|
|
54
|
+
density: DensityValue;
|
|
55
|
+
motion: MotionValue;
|
|
56
|
+
iconFamily: IconFamily;
|
|
57
|
+
voice: VoiceValue;
|
|
58
|
+
lang: LangValue;
|
|
59
|
+
layout: AppliedLayout;
|
|
60
|
+
/** 참고용 메타. */
|
|
61
|
+
appliedAt: string;
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
export type ApplyResult =
|
|
65
|
+
| { ok: true; files: string[] }
|
|
66
|
+
| { ok: false; error: string; files: string[] };
|
|
67
|
+
|
|
68
|
+
const TARGET_FILES = ["ovenn.config.json", "DESIGN.md"] as const;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* 사용자 플젝 루트 결정. Next.js dev server의 process.cwd()가 꼭 플젝 루트가 아님:
|
|
72
|
+
* - 모노레포에서 `web/`에 Next.js 있으면 cwd가 web/이 됨 (Ovenn 레포 자체가 그런 경우)
|
|
73
|
+
* - pnpm/yarn workspaces에서도 비슷
|
|
74
|
+
* - 사용자가 자기 플젝 루트에 Ovenn을 설치해 /ovenn를 심은 경우 cwd=플젝루트가 맞음
|
|
75
|
+
*
|
|
76
|
+
* 로직:
|
|
77
|
+
* 1) cwd에서 시작해 위로 올라가며 모든 package.json 수집
|
|
78
|
+
* 2) 가장 바깥쪽 package.json 디렉토리를 "진짜 프로젝트 루트"로 선택
|
|
79
|
+
* - 보통 사용자 플젝: 바로 cwd에 package.json 하나뿐 → cwd 선택 (OK)
|
|
80
|
+
* - 모노레포/workspaces: 바깥에 workspace root package.json 발견 → 그걸 선택
|
|
81
|
+
* - Ovenn 자기 레포: web/package.json과 루트 package.json 둘 다 → 루트 선택
|
|
82
|
+
* 3) 아무것도 못 찾으면 cwd 폴백
|
|
83
|
+
*/
|
|
84
|
+
async function findProjectRoot(startDir: string): Promise<string> {
|
|
85
|
+
const { root: fsRoot } = parse(startDir);
|
|
86
|
+
const pkgDirs: string[] = [];
|
|
87
|
+
let dir = startDir;
|
|
88
|
+
while (true) {
|
|
89
|
+
const pkgPath = join(dir, "package.json");
|
|
90
|
+
try {
|
|
91
|
+
await readFile(pkgPath, "utf8");
|
|
92
|
+
pkgDirs.push(dir);
|
|
93
|
+
} catch {
|
|
94
|
+
// package.json 없거나 파싱 실패 — 그냥 넘어감
|
|
95
|
+
}
|
|
96
|
+
if (dir === fsRoot) break;
|
|
97
|
+
const parent = dirname(dir);
|
|
98
|
+
if (parent === dir) break;
|
|
99
|
+
dir = parent;
|
|
100
|
+
}
|
|
101
|
+
// pkgDirs는 cwd → 상위 순이라 마지막이 가장 바깥.
|
|
102
|
+
return pkgDirs.length > 0 ? pkgDirs[pkgDirs.length - 1] : startDir;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
const PROJECT_ROOT = () => findProjectRoot(process.cwd());
|
|
106
|
+
|
|
107
|
+
async function fileExists(path: string): Promise<boolean> {
|
|
108
|
+
try {
|
|
109
|
+
await access(path);
|
|
110
|
+
return true;
|
|
111
|
+
} catch {
|
|
112
|
+
return false;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/** 적용 전에 호출해서 기존에 어떤 파일이 있는지 확인. 다이얼로그에서 "덮어쓸래?" 묻는 용. */
|
|
117
|
+
export async function checkExistingFiles(): Promise<{ existing: string[] }> {
|
|
118
|
+
const root = await PROJECT_ROOT();
|
|
119
|
+
const existing: string[] = [];
|
|
120
|
+
for (const f of TARGET_FILES) {
|
|
121
|
+
if (await fileExists(join(root, f))) existing.push(f);
|
|
122
|
+
}
|
|
123
|
+
return { existing };
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
type ErrorMessages = {
|
|
127
|
+
productionBlocked: string;
|
|
128
|
+
alreadyExists: (files: string) => string;
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
const ERROR_MESSAGES: Record<Lang, ErrorMessages> = {
|
|
132
|
+
ko: {
|
|
133
|
+
productionBlocked:
|
|
134
|
+
"/ovenn 는 로컬 개발 환경 전용이에요. 프로덕션 빌드에선 파일을 쓸 수 없습니다. 로컬에서 `npm run dev` 로 돌려주세요.",
|
|
135
|
+
alreadyExists: (files) =>
|
|
136
|
+
`이미 존재: ${files}. 덮어쓰려면 확인 후 다시 적용해주세요.`,
|
|
137
|
+
},
|
|
138
|
+
en: {
|
|
139
|
+
productionBlocked:
|
|
140
|
+
"/ovenn is for local development only. File writes are blocked in production builds. Run `npm run dev` locally instead.",
|
|
141
|
+
alreadyExists: (files) =>
|
|
142
|
+
`Already exists: ${files}. Confirm and apply again to overwrite.`,
|
|
143
|
+
},
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
/** 두 아티팩트를 쓴다. 하나라도 실패하면 그 지점에서 중단하고 어디까지 썼는지 리턴.
|
|
147
|
+
* overwrite=false(기본값)에서 기존 파일 있으면 거부. 호출자가 명시적으로 덮어쓰기 승인하면 true.
|
|
148
|
+
* lang은 에러 메시지·DESIGN.md 산문 언어. 기본값은 "ko" (하위 호환). */
|
|
149
|
+
export async function applyOnboarding(
|
|
150
|
+
config: AppliedConfig,
|
|
151
|
+
options: { overwrite?: boolean; lang?: Lang } = {}
|
|
152
|
+
): Promise<ApplyResult> {
|
|
153
|
+
const lang: Lang = options.lang ?? "ko";
|
|
154
|
+
const msg = ERROR_MESSAGES[lang];
|
|
155
|
+
|
|
156
|
+
// 프로덕션 서버리스에서 /ovenn가 실수로 노출됐을 때 FS 쓰기 거부.
|
|
157
|
+
if (process.env.NODE_ENV === "production") {
|
|
158
|
+
return {
|
|
159
|
+
ok: false,
|
|
160
|
+
error: msg.productionBlocked,
|
|
161
|
+
files: [],
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
if (!options.overwrite) {
|
|
166
|
+
const { existing } = await checkExistingFiles();
|
|
167
|
+
if (existing.length > 0) {
|
|
168
|
+
return {
|
|
169
|
+
ok: false,
|
|
170
|
+
error: msg.alreadyExists(existing.join(", ")),
|
|
171
|
+
files: [],
|
|
172
|
+
};
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
const root = await PROJECT_ROOT();
|
|
177
|
+
const written: string[] = [];
|
|
178
|
+
try {
|
|
179
|
+
const configPath = join(root, "ovenn.config.json");
|
|
180
|
+
await writeFile(configPath, JSON.stringify(config, null, 2) + "\n", "utf8");
|
|
181
|
+
written.push("ovenn.config.json");
|
|
182
|
+
|
|
183
|
+
const designPath = join(root, "DESIGN.md");
|
|
184
|
+
await writeFile(designPath, renderDesignMd(config, lang), "utf8");
|
|
185
|
+
written.push("DESIGN.md");
|
|
186
|
+
|
|
187
|
+
return { ok: true, files: written };
|
|
188
|
+
} catch (e) {
|
|
189
|
+
return {
|
|
190
|
+
ok: false,
|
|
191
|
+
error: e instanceof Error ? e.message : String(e),
|
|
192
|
+
files: written,
|
|
193
|
+
};
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
/** DESIGN.md 생성. 테마가 "none"이면 커스텀 조합 설명, 그 외엔 테마 프롬프트 기반. */
|
|
198
|
+
function renderDesignMd(c: AppliedConfig, lang: Lang = "ko"): string {
|
|
199
|
+
const date = c.appliedAt.slice(0, 10);
|
|
200
|
+
const t = DESIGN_MD_STRINGS[lang];
|
|
201
|
+
|
|
202
|
+
const themeLine =
|
|
203
|
+
c.theme === "none"
|
|
204
|
+
? t.themeLineNone
|
|
205
|
+
: t.themeLineNamed(c.theme);
|
|
206
|
+
|
|
207
|
+
return `# ${t.title}
|
|
208
|
+
|
|
209
|
+
> ${t.generatedOn}: ${date} · ${t.subtitleTail}
|
|
210
|
+
> ${t.machineReadable}
|
|
211
|
+
|
|
212
|
+
${themeLine}
|
|
213
|
+
|
|
214
|
+
## ${t.axisHeading}
|
|
215
|
+
|
|
216
|
+
| ${t.col.axis} | ${t.col.value} | ${t.col.desc} |
|
|
217
|
+
|---|---|---|
|
|
218
|
+
| Brand Set | \`${c.brandSet.id}@${c.brandSet.version}\` | Project-wide renderer policy; unsupported components use Core fallback |
|
|
219
|
+
| Mode | \`${c.mode}\` | ${c.mode === "light" ? t.modeLight : t.modeDark} |
|
|
220
|
+
| Brand | \`${c.brand}\` | ${t.brandDesc} |
|
|
221
|
+
| Palette Set | \`${c.paletteSet}\` | ${paletteSetDesc(c.paletteSet, lang)} |
|
|
222
|
+
| Mono | \`${String(c.mono)}\` | ${c.mono ? t.monoOn : t.monoOff} |
|
|
223
|
+
| Shape | \`${c.shape}\` | ${shapeDesc(c.shape, lang)} |
|
|
224
|
+
| Density | \`${c.density}\` | ${densityDesc(c.density, lang)} |
|
|
225
|
+
| Motion | \`${c.motion}\` | ${motionDesc(c.motion, lang)} |
|
|
226
|
+
| Icon Family | \`${c.iconFamily}\` | ${t.iconFamilyDesc} |
|
|
227
|
+
| Voice | \`${c.voice}\` | ${voiceDesc(c.voice, lang)} |
|
|
228
|
+
| Lang | \`${c.lang}\` | ${t.langDesc} |
|
|
229
|
+
|
|
230
|
+
## ${t.layoutHeading}
|
|
231
|
+
|
|
232
|
+
${layoutSection(c.layout, lang)}
|
|
233
|
+
|
|
234
|
+
## ${t.aiHeading}
|
|
235
|
+
|
|
236
|
+
${t.aiIntro}
|
|
237
|
+
|
|
238
|
+
- ${t.aiBullets.noHardcode}
|
|
239
|
+
- ${t.aiBullets.sourceOfTruth}
|
|
240
|
+
- ${t.aiBullets.tokenRules}
|
|
241
|
+
- ${t.aiBullets.layoutReuse}
|
|
242
|
+
${
|
|
243
|
+
c.theme === "none"
|
|
244
|
+
? ""
|
|
245
|
+
: `- ${t.aiBullets.themeCharacter(c.theme)}`
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
## ${t.historyHeading}
|
|
249
|
+
|
|
250
|
+
- ${date}: ${t.historyAppliedEntry}
|
|
251
|
+
`;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
type DesignMdStrings = {
|
|
255
|
+
title: string;
|
|
256
|
+
generatedOn: string;
|
|
257
|
+
subtitleTail: string;
|
|
258
|
+
machineReadable: string;
|
|
259
|
+
themeLineNone: string;
|
|
260
|
+
themeLineNamed: (theme: string) => string;
|
|
261
|
+
axisHeading: string;
|
|
262
|
+
col: { axis: string; value: string; desc: string };
|
|
263
|
+
modeLight: string;
|
|
264
|
+
modeDark: string;
|
|
265
|
+
brandDesc: string;
|
|
266
|
+
monoOn: string;
|
|
267
|
+
monoOff: string;
|
|
268
|
+
iconFamilyDesc: string;
|
|
269
|
+
langDesc: string;
|
|
270
|
+
layoutHeading: string;
|
|
271
|
+
aiHeading: string;
|
|
272
|
+
aiIntro: string;
|
|
273
|
+
aiBullets: {
|
|
274
|
+
noHardcode: string;
|
|
275
|
+
sourceOfTruth: string;
|
|
276
|
+
tokenRules: string;
|
|
277
|
+
layoutReuse: string;
|
|
278
|
+
themeCharacter: (theme: string) => string;
|
|
279
|
+
};
|
|
280
|
+
historyHeading: string;
|
|
281
|
+
historyAppliedEntry: string;
|
|
282
|
+
};
|
|
283
|
+
|
|
284
|
+
const DESIGN_MD_STRINGS: Record<Lang, DesignMdStrings> = {
|
|
285
|
+
ko: {
|
|
286
|
+
title: "디자인 결정",
|
|
287
|
+
generatedOn: "생성일",
|
|
288
|
+
subtitleTail: "온보딩 적용 결과",
|
|
289
|
+
machineReadable:
|
|
290
|
+
"머신 리더블 소스는 [ovenn.config.json](ovenn.config.json)에.",
|
|
291
|
+
themeLineNone:
|
|
292
|
+
"**직접 조합** — 테마 preset 없이 사용자가 각 축을 직접 선택했습니다.",
|
|
293
|
+
themeLineNamed: (theme) =>
|
|
294
|
+
`**${theme}** 테마 기반. 자세한 원칙·Do/Don't는 [prompts/themes/${theme}.md](prompts/themes/${theme}.md) 참조.`,
|
|
295
|
+
axisHeading: "축 값",
|
|
296
|
+
col: { axis: "Axis", value: "Value", desc: "설명" },
|
|
297
|
+
modeLight: "밝은 배경",
|
|
298
|
+
modeDark: "어두운 배경",
|
|
299
|
+
brandDesc: "primary brand hex (유저 입력)",
|
|
300
|
+
monoOn: "ON — primary와 chart는 명도 단계 흑백, 상태색만 유색 유지",
|
|
301
|
+
monoOff: "OFF — 아이콘·secondary·selected-fg 전부 brand 톤",
|
|
302
|
+
iconFamilyDesc: "아이콘 세트",
|
|
303
|
+
langDesc: "UI 언어",
|
|
304
|
+
layoutHeading: "레이아웃",
|
|
305
|
+
aiHeading: "AI 에이전트에게",
|
|
306
|
+
aiIntro:
|
|
307
|
+
"이 프로젝트는 위 축 값으로 고정됐습니다. 컴포넌트·페이지를 생성할 때:",
|
|
308
|
+
aiBullets: {
|
|
309
|
+
noHardcode:
|
|
310
|
+
"**하드코딩 금지** — 색/간격/radius/shadow/motion은 전부 Ovenn 토큰 경유.",
|
|
311
|
+
sourceOfTruth: `축 값은 [ovenn.config.json](ovenn.config.json)이 소스 오브 트루스.
|
|
312
|
+
런타임엔 \`ThemeController\`가 관리하며, 사용자가 축을 바꿀 때마다 \`<html data-*>\` 속성이 갱신됩니다.`,
|
|
313
|
+
tokenRules:
|
|
314
|
+
"토큰·축의 상세 규칙은 [prompts/](prompts/) 하위 문서들을 참조하세요.",
|
|
315
|
+
layoutReuse:
|
|
316
|
+
"**레이아웃 조립**은 위 \"레이아웃\" 섹션의 `AppFrame` 조합을 따르세요. 페이지마다 다시 결정하지 말고 이 조합을 재사용.",
|
|
317
|
+
themeCharacter: (theme) =>
|
|
318
|
+
`이 프로젝트의 "성격"은 [prompts/themes/${theme}.md](prompts/themes/${theme}.md)의 Do/Don't·Signature·Negative에 정의돼 있습니다.`,
|
|
319
|
+
},
|
|
320
|
+
historyHeading: "변경 이력",
|
|
321
|
+
historyAppliedEntry: "온보딩 적용",
|
|
322
|
+
},
|
|
323
|
+
en: {
|
|
324
|
+
title: "Design decisions",
|
|
325
|
+
generatedOn: "Generated",
|
|
326
|
+
subtitleTail: "onboarding result",
|
|
327
|
+
machineReadable:
|
|
328
|
+
"Machine-readable source lives in [ovenn.config.json](ovenn.config.json).",
|
|
329
|
+
themeLineNone:
|
|
330
|
+
"**Custom combination**: no theme preset. The user picked each axis directly.",
|
|
331
|
+
themeLineNamed: (theme) =>
|
|
332
|
+
`Based on the **${theme}** theme. Full principles and Do/Don't rules in [prompts/themes/${theme}.md](prompts/themes/${theme}.md).`,
|
|
333
|
+
axisHeading: "Axis values",
|
|
334
|
+
col: { axis: "Axis", value: "Value", desc: "Description" },
|
|
335
|
+
modeLight: "Light background",
|
|
336
|
+
modeDark: "Dark background",
|
|
337
|
+
brandDesc: "primary brand hex (user input)",
|
|
338
|
+
monoOn: "ON — primary and charts use grayscale steps; only status colors remain chromatic",
|
|
339
|
+
monoOff: "OFF — icon, secondary, selected-fg all follow brand",
|
|
340
|
+
iconFamilyDesc: "Icon set",
|
|
341
|
+
langDesc: "UI language",
|
|
342
|
+
layoutHeading: "Layout",
|
|
343
|
+
aiHeading: "For AI agents",
|
|
344
|
+
aiIntro:
|
|
345
|
+
"This project is locked to the axis values above. When generating components or pages:",
|
|
346
|
+
aiBullets: {
|
|
347
|
+
noHardcode:
|
|
348
|
+
"**No hardcoded values**: colors, spacing, radius, shadow, and motion all go through Ovenn tokens.",
|
|
349
|
+
sourceOfTruth: `Axis values live in [ovenn.config.json](ovenn.config.json) as the source of truth.
|
|
350
|
+
At runtime \`ThemeController\` owns them and refreshes the \`<html data-*>\` attributes whenever the user changes an axis.`,
|
|
351
|
+
tokenRules:
|
|
352
|
+
"Token and axis rules are detailed in the docs under [prompts/](prompts/).",
|
|
353
|
+
layoutReuse:
|
|
354
|
+
"**Layout composition** should follow the `AppFrame` combination in the \"Layout\" section above. Reuse this composition instead of deciding per page.",
|
|
355
|
+
themeCharacter: (theme) =>
|
|
356
|
+
`This project's "character" is defined in the Do/Don't, Signature, and Negative sections of [prompts/themes/${theme}.md](prompts/themes/${theme}.md).`,
|
|
357
|
+
},
|
|
358
|
+
historyHeading: "Changelog",
|
|
359
|
+
historyAppliedEntry: "Onboarding applied",
|
|
360
|
+
},
|
|
361
|
+
};
|
|
362
|
+
|
|
363
|
+
type LayoutStrings = {
|
|
364
|
+
sidebarNone: string;
|
|
365
|
+
sidebarLeft: string;
|
|
366
|
+
sidebarRight: string;
|
|
367
|
+
sidebarDual: string;
|
|
368
|
+
topbarOn: string;
|
|
369
|
+
topbarOff: string;
|
|
370
|
+
tabsSuffix: string;
|
|
371
|
+
frameTopbarFirst: string;
|
|
372
|
+
frameSidebarFirst: string;
|
|
373
|
+
frameNoTopbar: string;
|
|
374
|
+
combinationLabel: string;
|
|
375
|
+
machineReadableTail: string;
|
|
376
|
+
};
|
|
377
|
+
|
|
378
|
+
const LAYOUT_STRINGS: Record<Lang, LayoutStrings> = {
|
|
379
|
+
ko: {
|
|
380
|
+
sidebarNone: "사이드바 없음",
|
|
381
|
+
sidebarLeft: "왼쪽 사이드바",
|
|
382
|
+
sidebarRight: "오른쪽 사이드바",
|
|
383
|
+
sidebarDual: "양쪽 사이드바 (좌: 네비 · 우: 속성 패널)",
|
|
384
|
+
topbarOn: "탑바 있음",
|
|
385
|
+
topbarOff: "탑바 없음",
|
|
386
|
+
tabsSuffix: " · 탑바 아래 탭 바",
|
|
387
|
+
frameTopbarFirst:
|
|
388
|
+
"탑바가 **가로 전체**를 차지하고, 그 아래에 사이드바가 들어갑니다 (`<AppFrame layout=\"topbar-first\">`).",
|
|
389
|
+
frameSidebarFirst:
|
|
390
|
+
"사이드바가 **세로 전체**를 차지하고, 탑바는 콘텐츠 영역 위에만 걸칩니다 (`<AppFrame layout=\"sidebar-first\">`).",
|
|
391
|
+
frameNoTopbar:
|
|
392
|
+
"탑바 없는 레이아웃이라 `AppFrame layout` prop은 의미 없음.",
|
|
393
|
+
combinationLabel: "조합",
|
|
394
|
+
machineReadableTail:
|
|
395
|
+
"머신 리더블 형태는 `ovenn.config.json`의 `layout` 객체 참조.",
|
|
396
|
+
},
|
|
397
|
+
en: {
|
|
398
|
+
sidebarNone: "No sidebar",
|
|
399
|
+
sidebarLeft: "Left sidebar",
|
|
400
|
+
sidebarRight: "Right sidebar",
|
|
401
|
+
sidebarDual: "Dual sidebars (left: nav, right: properties)",
|
|
402
|
+
topbarOn: "Topbar on",
|
|
403
|
+
topbarOff: "No topbar",
|
|
404
|
+
tabsSuffix: ", tab bar under the topbar",
|
|
405
|
+
frameTopbarFirst:
|
|
406
|
+
"The topbar spans the **full width**, with the sidebar sitting underneath it (`<AppFrame layout=\"topbar-first\">`).",
|
|
407
|
+
frameSidebarFirst:
|
|
408
|
+
"The sidebar spans the **full height**, with the topbar only crossing the content area (`<AppFrame layout=\"sidebar-first\">`).",
|
|
409
|
+
frameNoTopbar:
|
|
410
|
+
"No topbar in this layout, so the `AppFrame layout` prop does not apply.",
|
|
411
|
+
combinationLabel: "Composition",
|
|
412
|
+
machineReadableTail:
|
|
413
|
+
"The machine-readable form lives in the `layout` object of `ovenn.config.json`.",
|
|
414
|
+
},
|
|
415
|
+
};
|
|
416
|
+
|
|
417
|
+
/**
|
|
418
|
+
* 레이아웃 섹션 — AppFrame 조합을 사람·AI 모두 읽을 수 있게 산문으로.
|
|
419
|
+
* 사이드바 위치·탑바·탭·AppFrame layout prop을 명시해 페이지 조립 시 재사용되도록.
|
|
420
|
+
*/
|
|
421
|
+
function layoutSection(l: AppliedLayout, lang: Lang = "ko"): string {
|
|
422
|
+
const s = LAYOUT_STRINGS[lang];
|
|
423
|
+
const sidebarText =
|
|
424
|
+
l.sidebar === "none"
|
|
425
|
+
? s.sidebarNone
|
|
426
|
+
: l.sidebar === "left"
|
|
427
|
+
? s.sidebarLeft
|
|
428
|
+
: l.sidebar === "right"
|
|
429
|
+
? s.sidebarRight
|
|
430
|
+
: s.sidebarDual;
|
|
431
|
+
const topbarText = l.topbar ? s.topbarOn : s.topbarOff;
|
|
432
|
+
const tabsText = l.tabs ? s.tabsSuffix : "";
|
|
433
|
+
const frameText = l.topbar
|
|
434
|
+
? l.appFrameLayout === "topbar-first"
|
|
435
|
+
? s.frameTopbarFirst
|
|
436
|
+
: s.frameSidebarFirst
|
|
437
|
+
: s.frameNoTopbar;
|
|
438
|
+
|
|
439
|
+
return `**${s.combinationLabel}**: ${sidebarText} · ${topbarText}${tabsText}
|
|
440
|
+
|
|
441
|
+
${frameText}
|
|
442
|
+
|
|
443
|
+
${s.machineReadableTail}`;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
function paletteSetDesc(v: PaletteSet, lang: Lang = "ko"): string {
|
|
447
|
+
const map: Record<Lang, Record<PaletteSet, string>> = {
|
|
448
|
+
ko: {
|
|
449
|
+
analogous: "primary 주변 ±30·±60도 · 잔잔한 조화",
|
|
450
|
+
triadic: "primary + 120·240 · 강한 대비",
|
|
451
|
+
split: "primary + 보색 ±30 · 균형감",
|
|
452
|
+
},
|
|
453
|
+
en: {
|
|
454
|
+
analogous: "±30·±60 around primary — gentle harmony",
|
|
455
|
+
triadic: "primary + 120·240 — strong contrast",
|
|
456
|
+
split: "primary + split-complement ±30 — balanced",
|
|
457
|
+
},
|
|
458
|
+
};
|
|
459
|
+
return map[lang][v];
|
|
460
|
+
}
|
|
461
|
+
function shapeDesc(v: ShapeValue, lang: Lang = "ko"): string {
|
|
462
|
+
const map: Record<Lang, Record<ShapeValue, string>> = {
|
|
463
|
+
ko: {
|
|
464
|
+
soft: "말랑, 캐주얼",
|
|
465
|
+
standard: "표준",
|
|
466
|
+
crisp: "딱딱, 전문",
|
|
467
|
+
pill: "완전 원형",
|
|
468
|
+
},
|
|
469
|
+
en: {
|
|
470
|
+
soft: "soft, casual",
|
|
471
|
+
standard: "standard",
|
|
472
|
+
crisp: "crisp, professional",
|
|
473
|
+
pill: "fully rounded",
|
|
474
|
+
},
|
|
475
|
+
};
|
|
476
|
+
return map[lang][v];
|
|
477
|
+
}
|
|
478
|
+
function densityDesc(v: DensityValue, lang: Lang = "ko"): string {
|
|
479
|
+
const map: Record<Lang, Record<DensityValue, string>> = {
|
|
480
|
+
ko: {
|
|
481
|
+
compact: "높은 밀도 (85%)",
|
|
482
|
+
default: "표준 (100%)",
|
|
483
|
+
comfortable: "낮은 밀도 (106%)",
|
|
484
|
+
},
|
|
485
|
+
en: {
|
|
486
|
+
compact: "high density (85%)",
|
|
487
|
+
default: "standard (100%)",
|
|
488
|
+
comfortable: "low density (106%)",
|
|
489
|
+
},
|
|
490
|
+
};
|
|
491
|
+
return map[lang][v];
|
|
492
|
+
}
|
|
493
|
+
function motionDesc(v: MotionValue, lang: Lang = "ko"): string {
|
|
494
|
+
const map: Record<Lang, Record<MotionValue, string>> = {
|
|
495
|
+
ko: {
|
|
496
|
+
bouncy: "쫀득한 오버슛",
|
|
497
|
+
standard: "짧고 매끈",
|
|
498
|
+
calm: "차분",
|
|
499
|
+
none: "애니 없음",
|
|
500
|
+
},
|
|
501
|
+
en: {
|
|
502
|
+
bouncy: "springy overshoot",
|
|
503
|
+
standard: "short and smooth",
|
|
504
|
+
calm: "calm",
|
|
505
|
+
none: "no animation",
|
|
506
|
+
},
|
|
507
|
+
};
|
|
508
|
+
return map[lang][v];
|
|
509
|
+
}
|
|
510
|
+
function voiceDesc(v: VoiceValue, lang: Lang = "ko"): string {
|
|
511
|
+
const map: Record<Lang, Record<VoiceValue, string>> = {
|
|
512
|
+
ko: {
|
|
513
|
+
formal: "격식체 (입니다)",
|
|
514
|
+
neutral: "표준 존대",
|
|
515
|
+
casual: "친근체",
|
|
516
|
+
},
|
|
517
|
+
en: {
|
|
518
|
+
formal: "formal",
|
|
519
|
+
neutral: "neutral",
|
|
520
|
+
casual: "casual",
|
|
521
|
+
},
|
|
522
|
+
};
|
|
523
|
+
return map[lang][v];
|
|
524
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Ovenn 온보딩 패키지 — 사용자 플젝의 /ovenn 라우트에서 쓰는 UI.
|
|
3
|
+
*
|
|
4
|
+
* 사용 예 (사용자 플젝의 app/ovenn/page.tsx):
|
|
5
|
+
* import { OnboardingPage } from "@/components/ovenn/Onboarding";
|
|
6
|
+
* export default function Page() { return <OnboardingPage />; }
|
|
7
|
+
*/
|
|
8
|
+
export { OnboardingPage } from "./OnboardingPage";
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/* Onboarding 페이지 전용 팔레트.
|
|
2
|
+
축(hue/palette) 시스템과 독립된 고정 브랜드 컬러. 온보딩은 웜 아이보리 배경 +
|
|
3
|
+
차분한 wine·brown rail 조합으로 톤을 고정. 사용자가 "Cloud Dancer + 세련된 브라운
|
|
4
|
+
+ 와인" 요청. 축 값 변경 영향 안 받음. */
|
|
5
|
+
|
|
6
|
+
:root {
|
|
7
|
+
/* 아주 옅은 웜 오프화이트 — 거의 순백 (Cloud Dancer보다 밝게) */
|
|
8
|
+
--onb-bg: #F8F6F2;
|
|
9
|
+
|
|
10
|
+
/* Rail — 웜 차콜(거의 뉴트럴, warm undertone).
|
|
11
|
+
Wine·brown은 강조 없이 아주 미세하게만 배어남. */
|
|
12
|
+
--onb-rail: #2C2825;
|
|
13
|
+
--onb-rail-deep: #201D1A;
|
|
14
|
+
|
|
15
|
+
/* Accent — 정말 필요할 때만. Active state 강조에 subtle하게. */
|
|
16
|
+
--onb-accent: #6B4F4C;
|
|
17
|
+
|
|
18
|
+
/* Rail 위 텍스트/보조 */
|
|
19
|
+
--onb-rail-fg: #EEE9E2;
|
|
20
|
+
--onb-rail-fg-muted: #A69B94;
|
|
21
|
+
--onb-rail-fg-subtle: #6D6560;
|
|
22
|
+
--onb-rail-surface: rgba(238, 233, 226, 0.10);
|
|
23
|
+
--onb-rail-line: rgba(238, 233, 226, 0.14);
|
|
24
|
+
--onb-rail-dot-idle: rgba(238, 233, 226, 0.22);
|
|
25
|
+
--onb-rail-progress-dot: rgba(238, 233, 226, 0.28);
|
|
26
|
+
|
|
27
|
+
/* 콘텐츠 (우측) */
|
|
28
|
+
--onb-card-bg: #FFFFFF;
|
|
29
|
+
--onb-back-btn: #E8E4DD;
|
|
30
|
+
--onb-back-btn-hover: #DED8CE;
|
|
31
|
+
--onb-fg: #2A2622;
|
|
32
|
+
--onb-fg-muted: #6E655F;
|
|
33
|
+
--onb-border: rgba(42, 38, 34, 0.08);
|
|
34
|
+
--onb-border-strong: rgba(42, 38, 34, 0.14);
|
|
35
|
+
|
|
36
|
+
/* Mode preview swatch — 모드 축 미리보기용 고정 색. 현재 테마와 무관하게
|
|
37
|
+
light/dark 두 비주얼을 동시에 보여주기 위함. */
|
|
38
|
+
--onb-mode-light: #FFFFFF;
|
|
39
|
+
--onb-mode-dark: #1A1A1A;
|
|
40
|
+
}
|