@conscience-technology/ovenn 0.6.7 → 0.7.2
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/assets/components/AIMessage/AIMessage.module.css +23 -1
- package/assets/components/AIMessage/AIMessage.tsx +27 -7
- package/assets/components/Accordion/Accordion.module.css +3 -0
- package/assets/components/AppFrame/AppFrame.module.css +2 -0
- package/assets/components/AttachmentItem/AttachmentItem.module.css +50 -13
- package/assets/components/AttachmentItem/AttachmentItem.tsx +25 -8
- package/assets/components/AttachmentThumb/AttachmentThumb.module.css +12 -9
- package/assets/components/Avatar/Avatar.module.css +26 -11
- package/assets/components/Avatar/Avatar.tsx +1 -1
- package/assets/components/AvatarUpload/AvatarUpload.module.css +4 -3
- package/assets/components/Badge/Badge.module.css +96 -70
- package/assets/components/Badge/Badge.tsx +33 -25
- package/assets/components/Breadcrumb/Breadcrumb.module.css +8 -4
- package/assets/components/Breadcrumb/Breadcrumb.tsx +1 -1
- package/assets/components/Bubble/Bubble.module.css +6 -0
- package/assets/components/Button/Button.module.css +6 -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 +54 -7
- package/assets/components/Callout/Callout.tsx +26 -2
- package/assets/components/Callout/index.ts +1 -1
- 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 +234 -30
- package/assets/components/CanvasNode/CanvasNode.tsx +95 -28
- package/assets/components/CanvasNode/index.ts +1 -1
- package/assets/components/CanvasNode/runningOutline.ts +59 -0
- package/assets/components/CanvasNode/tokens.css +76 -13
- package/assets/components/Card/Card.module.css +5 -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/ChatComposer/ChatComposer.module.css +17 -0
- package/assets/components/ChatComposer/ChatComposer.tsx +131 -0
- package/assets/components/ChatComposer/index.ts +2 -0
- package/assets/components/ChatInput/ChatInput.module.css +197 -30
- package/assets/components/ChatInput/ChatInput.tsx +137 -45
- package/assets/components/ChatInput/SendButton.tsx +4 -1
- package/assets/components/ChatInput/index.ts +5 -0
- package/assets/components/ChatMessage/ChatMessage.module.css +19 -0
- package/assets/components/ChatMessage/ChatMessage.tsx +63 -0
- package/assets/components/ChatMessage/index.ts +2 -0
- package/assets/components/ChatReactions/ChatReactions.module.css +15 -0
- package/assets/components/ChatReactions/ChatReactions.tsx +58 -0
- package/assets/components/ChatReactions/index.ts +2 -0
- package/assets/components/Checkbox/Checkbox.module.css +39 -0
- package/assets/components/Checkbox/Checkbox.tsx +99 -14
- package/assets/components/Checkbox/index.ts +1 -1
- package/assets/components/CheckboxCard/CheckboxCard.module.css +1 -177
- package/assets/components/CheckboxCard/CheckboxCard.tsx +6 -72
- package/assets/components/Chip/Chip.module.css +20 -30
- package/assets/components/Code/Code.module.css +1 -0
- package/assets/components/CodeBlock/CodeBlock.module.css +113 -13
- package/assets/components/CodeBlock/CodeBlock.tsx +114 -29
- package/assets/components/CodeBlock/SyntaxHighlight.tsx +20 -0
- package/assets/components/CodeBlock/diff-lines.ts +21 -0
- package/assets/components/CodeBlock/index.ts +2 -1
- package/assets/components/CodeBlock/line-preview.ts +7 -0
- package/assets/components/CodeBlock/syntax-highlighter.ts +96 -0
- package/assets/components/CodeBlock/use-syntax-tokens.ts +17 -0
- package/assets/components/ColorArea/ColorArea.module.css +3 -0
- package/assets/components/ColorField/ColorField.module.css +19 -190
- package/assets/components/ColorField/ColorField.tsx +116 -107
- 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 +15 -12
- package/assets/components/ColorSlider/ColorSlider.tsx +3 -3
- package/assets/components/ColorSwatch/ColorSwatch.module.css +2 -2
- package/assets/components/ColorSwatchPicker/ColorSwatchPicker.module.css +4 -3
- package/assets/components/Combobox/Combobox.module.css +21 -4
- package/assets/components/Combobox/Combobox.tsx +38 -22
- package/assets/components/CommandPalette/CommandPalette.module.css +19 -24
- package/assets/components/CommandPalette/CommandPalette.tsx +7 -5
- 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 +5 -2
- package/assets/components/ContextMenu/ContextMenu.tsx +5 -0
- package/assets/components/ControlGroup/ControlGroup.module.css +20 -7
- package/assets/components/DataTable/DataTable.module.css +2 -0
- package/assets/components/DatePicker/DateField.tsx +72 -25
- package/assets/components/DatePicker/DatePicker.module.css +56 -54
- package/assets/components/DatePicker/DatePicker.tsx +86 -40
- package/assets/components/DatePicker/TimeSelector.tsx +1 -1
- package/assets/components/Disclosure/Disclosure.module.css +1 -0
- package/assets/components/Drawer/Drawer.module.css +23 -19
- package/assets/components/Drawer/Drawer.tsx +20 -24
- package/assets/components/DropdownMenu/DropdownMenu.tsx +5 -0
- package/assets/components/EmojiPicker/EmojiGlyph.module.css +2 -0
- package/assets/components/EmojiPicker/EmojiGlyph.tsx +12 -0
- package/assets/components/EmojiPicker/EmojiPicker.module.css +43 -0
- package/assets/components/EmojiPicker/EmojiPicker.tsx +143 -0
- package/assets/components/EmojiPicker/UNICODE-LICENSE.txt +39 -0
- package/assets/components/EmojiPicker/data.ts +41 -0
- package/assets/components/EmojiPicker/emojiData-0.json +1 -0
- package/assets/components/EmojiPicker/emojiData-1.json +1 -0
- package/assets/components/EmojiPicker/emojiData-2.json +1 -0
- package/assets/components/EmojiPicker/emojiData-3.json +1 -0
- package/assets/components/EmojiPicker/emojiData.sources.json +35 -0
- package/assets/components/EmojiPicker/emojiData.ts +8 -0
- package/assets/components/EmojiPicker/emojiFallbacks.json +1 -0
- package/assets/components/EmojiPicker/index.ts +4 -0
- package/assets/components/EmptyState/EmptyState.module.css +2 -2
- package/assets/components/EventChip/EventChip.module.css +120 -53
- package/assets/components/EventChip/EventChip.tsx +54 -6
- package/assets/components/EventChip/index.ts +1 -1
- package/assets/components/EventListItem/EventListItem.module.css +3 -0
- package/assets/components/EventListItem/EventListItem.tsx +15 -8
- package/assets/components/FileIcon/FileIcon.module.css +6 -6
- package/assets/components/FileUpload/FileUpload.module.css +10 -3
- package/assets/components/FileUpload/FileUpload.tsx +5 -9
- package/assets/components/FileUpload/FileUploadItem.tsx +34 -0
- package/assets/components/GalleryItem/GalleryItem.module.css +16 -19
- package/assets/components/GeneratedImage/GeneratedImage.module.css +2 -0
- package/assets/components/Icon/Icon.tsx +264 -1088
- package/assets/components/Icon/LucideFamilyIcon.tsx +436 -0
- package/assets/components/Icon/MissingIcon.tsx +25 -0
- package/assets/components/Icon/SolarFamilyIcon.tsx +443 -0
- package/assets/components/Icon/catalogNames.ts +8 -0
- package/assets/components/Icon/context.tsx +1 -1
- package/assets/components/Icon/index.ts +2 -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 +3 -2
- package/assets/components/Input/Input.module.css +63 -22
- package/assets/components/Input/Input.tsx +21 -10
- package/assets/components/Kanban/Kanban.module.css +6 -0
- package/assets/components/ListItem/ListItem.module.css +9 -6
- package/assets/components/MenuItem/MenuItem.module.css +24 -22
- package/assets/components/MenuItem/MenuItem.tsx +12 -12
- package/assets/components/MessageActions/MessageActions.module.css +38 -2
- package/assets/components/MessageActions/MessageActions.tsx +53 -28
- package/assets/components/MessageQuote/MessageQuote.module.css +1 -0
- package/assets/components/MessageSources/MessageSources.module.css +2 -0
- package/assets/components/MessageState/MessageState.module.css +1 -1
- package/assets/components/MetricCard/MetricCard.module.css +96 -108
- package/assets/components/MetricCard/MetricCard.tsx +45 -23
- 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 +13 -4
- package/assets/components/Modal/Modal.tsx +4 -0
- package/assets/components/Onboarding/LayoutBuilder.tsx +12 -50
- package/assets/components/Onboarding/Onboarding.module.css +211 -278
- package/assets/components/Onboarding/OnboardingAxisPanel.tsx +81 -125
- package/assets/components/Onboarding/OnboardingPage.tsx +244 -467
- package/assets/components/Onboarding/actions.ts +5 -0
- package/assets/components/Onboarding/palette.css +8 -0
- package/assets/components/Onboarding/wizardData.ts +8 -8
- package/assets/components/ProgressBar/ProgressBar.module.css +42 -8
- package/assets/components/ProgressBar/ProgressBar.tsx +5 -6
- package/assets/components/ProgressBar/index.ts +0 -1
- package/assets/components/QuotationBar/QuotationBar.module.css +2 -0
- package/assets/components/Radio/Radio.module.css +2 -0
- package/assets/components/RadioCard/RadioCard.module.css +96 -3
- package/assets/components/RadioCard/RadioCard.tsx +76 -13
- package/assets/components/RadioCard/index.ts +1 -1
- package/assets/components/SegmentedChart/SegmentedChart.module.css +16 -0
- package/assets/components/SegmentedChart/SegmentedChart.tsx +25 -8
- package/assets/components/Select/Select.module.css +9 -7
- package/assets/components/Select/Select.tsx +22 -6
- package/assets/components/Shortcut/Shortcut.module.css +2 -0
- package/assets/components/Sidebar/Sidebar.module.css +1 -0
- package/assets/components/Sidebar/Sidebar.tsx +2 -2
- 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 +3 -0
- package/assets/components/Slider/Slider.tsx +7 -2
- package/assets/components/Spinner/LottiePlayer.tsx +4 -4
- package/assets/components/Spinner/Spinner.module.css +3 -0
- package/assets/components/Spinner/lottieManifest.ts +3 -0
- package/assets/components/Stepper/Stepper.module.css +56 -8
- package/assets/components/Stepper/Stepper.tsx +13 -4
- package/assets/components/Switch/Switch.module.css +55 -42
- package/assets/components/Switch/Switch.tsx +6 -2
- package/assets/components/Switch/index.ts +1 -1
- package/assets/components/TabStrip/TabStrip.module.css +5 -1
- package/assets/components/TableCell/TableCell.module.css +8 -1
- package/assets/components/TableCell/TableCellBadge.tsx +7 -3
- package/assets/components/TableCell/TableCellImage.tsx +1 -1
- package/assets/components/TableCell/TableCellTag.tsx +23 -0
- package/assets/components/TableCell/index.ts +3 -0
- package/assets/components/TableHeader/TableHeader.module.css +4 -0
- package/assets/components/TableRow/TableRow.module.css +3 -0
- package/assets/components/TableRowEdit/TableRowEdit.module.css +2 -0
- package/assets/components/TableToolbar/TableToolbar.module.css +1 -0
- package/assets/components/Tabs/Tabs.module.css +23 -8
- package/assets/components/Tabs/Tabs.tsx +4 -3
- 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.tsx +22 -18
- package/assets/components/TemplateBoundary/types.ts +2 -0
- package/assets/components/Textarea/Textarea.module.css +30 -226
- package/assets/components/Textarea/Textarea.tsx +2 -2
- package/assets/components/ThemeController.tsx +30 -3
- package/assets/components/TimePicker/TimePicker.module.css +17 -4
- package/assets/components/TimePicker/TimePicker.tsx +102 -23
- 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 +20 -0
- package/assets/components/Toast/Toast.tsx +1 -1
- package/assets/components/Toolbar/Toolbar.module.css +31 -24
- package/assets/components/Toolbar/Toolbar.tsx +4 -3
- package/assets/components/Tooltip/Tooltip.module.css +10 -0
- package/assets/components/Tooltip/Tooltip.tsx +50 -15
- package/assets/components/TopLoader/TopLoader.module.css +1 -0
- package/assets/components/TreeNav/TreeNav.module.css +1 -0
- package/assets/components/UserMessage/UserMessage.module.css +110 -1
- package/assets/components/UserMessage/UserMessage.tsx +138 -16
- package/assets/components/UserMessage/index.ts +4 -0
- package/assets/components/_color.ts +2 -2
- package/assets/components/_data.ts +37 -31
- package/assets/components/_utils.css +36 -5
- package/assets/components/axisOptions.ts +2 -0
- package/assets/components/component-registry.json +1731 -94
- package/assets/components/index.ts +23 -0
- package/assets/components/materialScope.tsx +11 -0
- package/assets/components/reset.css +1 -0
- package/assets/components/themeBootScript.ts +3 -2
- package/assets/components/tokens.css +308 -71
- package/assets/components/useChartEntrance.ts +119 -0
- package/assets/prompts/ASSEMBLY.md +20 -7
- package/assets/prompts/CATALOG.md +110 -92
- package/assets/prompts/FEEDBACK_PROCESS.md +19 -0
- package/assets/prompts/PRINCIPLES.md +25 -1
- package/assets/prompts/TEMPLATE_PREVIEWS.md +21 -0
- package/assets/prompts/WORKFLOW_DESIGN.md +48 -70
- package/assets/prompts/axes/font.md +12 -1
- package/assets/prompts/axes/icon.md +6 -4
- package/assets/prompts/axes/material.md +40 -0
- package/assets/prompts/axes/motion.md +2 -0
- package/assets/prompts/axes/palette.md +10 -2
- package/assets/prompts/axes/shape.md +8 -0
- package/assets/prompts/axes/voice.md +4 -0
- package/assets/prompts/components/README.md +3 -3
- package/assets/prompts/components/_variants.md +35 -35
- package/assets/prompts/components/accordion.md +15 -15
- package/assets/prompts/components/ai-message.md +14 -12
- package/assets/prompts/components/app-frame.md +16 -16
- package/assets/prompts/components/attachment-item.md +38 -31
- package/assets/prompts/components/attachment-thumb.md +14 -12
- package/assets/prompts/components/avatar-upload.md +10 -10
- package/assets/prompts/components/avatar.md +16 -16
- package/assets/prompts/components/badge.md +32 -97
- package/assets/prompts/components/breadcrumb.md +25 -24
- package/assets/prompts/components/bubble.md +13 -13
- package/assets/prompts/components/button-group.md +1 -1
- package/assets/prompts/components/button.md +36 -36
- package/assets/prompts/components/calendar.md +151 -0
- package/assets/prompts/components/callout.md +39 -23
- package/assets/prompts/components/canvas-edge.md +70 -0
- package/assets/prompts/components/canvas-node.md +27 -10
- package/assets/prompts/components/canvas.md +85 -0
- package/assets/prompts/components/card.md +31 -31
- 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-composer.md +71 -0
- package/assets/prompts/components/chat-input.md +82 -27
- package/assets/prompts/components/chat-message.md +48 -0
- package/assets/prompts/components/chat-reactions.md +38 -0
- package/assets/prompts/components/checkbox-card.md +26 -45
- package/assets/prompts/components/checkbox.md +40 -17
- package/assets/prompts/components/chip.md +34 -34
- package/assets/prompts/components/code-block.md +109 -65
- package/assets/prompts/components/code.md +4 -4
- package/assets/prompts/components/color-area.md +9 -9
- package/assets/prompts/components/color-field.md +17 -13
- package/assets/prompts/components/color-picker.md +173 -0
- package/assets/prompts/components/color-slider.md +14 -14
- package/assets/prompts/components/color-swatch-picker.md +8 -8
- package/assets/prompts/components/color-swatch.md +9 -9
- package/assets/prompts/components/combobox.md +5 -2
- package/assets/prompts/components/command-palette.md +31 -30
- package/assets/prompts/components/comment.md +75 -0
- package/assets/prompts/components/context-menu.md +28 -25
- package/assets/prompts/components/control-group.md +4 -4
- package/assets/prompts/components/data-table.md +9 -0
- package/assets/prompts/components/date-picker.md +41 -23
- package/assets/prompts/components/disclosure.md +10 -10
- package/assets/prompts/components/drawer.md +29 -18
- package/assets/prompts/components/dropdown-menu.md +23 -21
- package/assets/prompts/components/emoji-picker.md +45 -0
- package/assets/prompts/components/empty-state.md +20 -18
- package/assets/prompts/components/event-chip.md +70 -28
- package/assets/prompts/components/event-list-item.md +32 -28
- package/assets/prompts/components/file-icon.md +18 -19
- package/assets/prompts/components/file-upload.md +1 -1
- package/assets/prompts/components/gallery-item.md +24 -23
- package/assets/prompts/components/generated-image.md +10 -10
- package/assets/prompts/components/hint.md +19 -19
- package/assets/prompts/components/icon-button.md +16 -16
- package/assets/prompts/components/icon.md +42 -17
- package/assets/prompts/components/input.md +49 -46
- package/assets/prompts/components/kanban.md +35 -35
- package/assets/prompts/components/list-item.md +50 -41
- package/assets/prompts/components/menu-item.md +49 -44
- package/assets/prompts/components/message-actions.md +15 -6
- package/assets/prompts/components/message-quote.md +7 -7
- package/assets/prompts/components/message-sources.md +10 -10
- package/assets/prompts/components/message-state.md +17 -17
- package/assets/prompts/components/message-table.md +5 -5
- package/assets/prompts/components/metric-card.md +57 -109
- package/assets/prompts/components/mini-calendar.md +77 -0
- package/assets/prompts/components/modal.md +40 -39
- package/assets/prompts/components/multi-select.md +4 -1
- package/assets/prompts/components/onboarding.md +23 -19
- package/assets/prompts/components/page-header.md +42 -33
- package/assets/prompts/components/pagination.md +17 -17
- package/assets/prompts/components/progress-bar.md +26 -13
- package/assets/prompts/components/quotation-bar.md +10 -10
- package/assets/prompts/components/radio-card.md +34 -117
- package/assets/prompts/components/radio.md +9 -9
- package/assets/prompts/components/segmented-chart.md +19 -5
- package/assets/prompts/components/select.md +29 -25
- package/assets/prompts/components/shortcut.md +11 -11
- package/assets/prompts/components/sidebar.md +67 -58
- package/assets/prompts/components/skeleton.md +47 -0
- package/assets/prompts/components/slider.md +18 -18
- package/assets/prompts/components/spinner.md +16 -16
- package/assets/prompts/components/stepper.md +29 -15
- package/assets/prompts/components/switch.md +30 -26
- package/assets/prompts/components/tab-strip.md +32 -31
- package/assets/prompts/components/table-cell.md +9 -7
- package/assets/prompts/components/table-header.md +16 -16
- package/assets/prompts/components/table-row-edit.md +19 -19
- package/assets/prompts/components/table-row-select.md +9 -9
- package/assets/prompts/components/table-row.md +29 -20
- package/assets/prompts/components/table-toolbar.md +9 -0
- package/assets/prompts/components/tabs.md +30 -27
- package/assets/prompts/components/tag.md +54 -0
- package/assets/prompts/components/textarea.md +16 -15
- package/assets/prompts/components/time-picker.md +22 -14
- package/assets/prompts/components/timeline-view.md +129 -0
- package/assets/prompts/components/toast.md +43 -42
- package/assets/prompts/components/toolbar.md +36 -23
- package/assets/prompts/components/tooltip.md +36 -17
- package/assets/prompts/components/top-loader.md +12 -12
- package/assets/prompts/components/topbar.md +43 -34
- package/assets/prompts/components/tree-nav.md +10 -10
- package/assets/prompts/components/user-message.md +23 -12
- package/assets/prompts/design-examples/README.md +1 -1
- package/assets/prompts/design-examples/ai-chat-full-page.png +0 -0
- package/assets/prompts/design-examples/catalog.json +124 -1
- package/assets/prompts/design-examples/sources/ai-chat-full-page/ChatExperience.module.css +346 -0
- package/assets/prompts/design-examples/sources/ai-chat-full-page/ChatExperience.tsx +375 -0
- package/assets/prompts/design-examples/sources/ai-chat-full-page/FullPageChat.tsx +8 -0
- package/assets/prompts/design-examples/sources/ai-chat-full-page/REFERENCE.md +19 -0
- package/assets/prompts/design-examples/sources/ai-chat-full-page/useChatDemo.ts +139 -0
- package/assets/prompts/design-examples/sources/ai-chat-full-page/useDemoTextStream.ts +30 -0
- package/assets/prompts/primitives/emerge.md +2 -0
- package/assets/prompts/templates/README.md +1 -1
- package/assets/prompts/templates/ains.md +9 -1
- package/assets/prompts/templates/aurora.md +5 -4
- package/assets/prompts/templates/minimal.md +14 -6
- package/assets/prompts/templates/onboarding.md +156 -0
- package/assets/prompts/templates/workspace.md +16 -11
- package/assets/prompts/tokens/color.md +11 -4
- package/assets/prompts/tokens/material.md +51 -0
- package/assets/prompts/tokens/radius.md +34 -0
- package/assets/prompts/tokens/typography.md +24 -2
- 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/chat-chat-composer.md +529 -0
- package/assets/prompts/use-cases/chat-chat-input.md +1766 -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 +1168 -0
- package/assets/prompts/use-cases/feedback-progress-bar.md +432 -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 +1196 -0
- package/assets/public/ovenn-wordmark.svg +19 -0
- package/assets/skills/ovenn-wireframe/SKILL.md +17 -4
- package/package.json +10 -2
- package/src/commands/info.js +1 -1
- package/src/utils/design-examples.js +3 -4
- package/assets/prompts/templates/glass-button.md +0 -336
|
@@ -17,6 +17,7 @@ import { Icon } from "../Icon";
|
|
|
17
17
|
import styles from "./Stepper.module.css";
|
|
18
18
|
|
|
19
19
|
type Orientation = "vertical" | "horizontal";
|
|
20
|
+
type Indicator = "marker" | "line";
|
|
20
21
|
type Marker = "dot" | "number";
|
|
21
22
|
type Variant = "md" | "sm";
|
|
22
23
|
type Spacing = "compact" | "default" | "relaxed";
|
|
@@ -27,6 +28,7 @@ type ItemState = "upcoming" | "active" | "done";
|
|
|
27
28
|
|
|
28
29
|
type StepperContextValue = {
|
|
29
30
|
orientation: Orientation;
|
|
31
|
+
indicator: Indicator;
|
|
30
32
|
marker: Marker;
|
|
31
33
|
variant: Variant;
|
|
32
34
|
tone: Tone;
|
|
@@ -53,12 +55,15 @@ export type StepperProps = Omit<HTMLAttributes<HTMLDivElement>, "onSelect"> & {
|
|
|
53
55
|
activeIndex: number;
|
|
54
56
|
/** 세로/가로 배치. 기본 vertical. */
|
|
55
57
|
orientation?: Orientation;
|
|
58
|
+
/** 단계 표시 방식. marker(기본) | line. */
|
|
59
|
+
indicator?: Indicator;
|
|
56
60
|
/** marker 종류. dot(기본) | number. */
|
|
57
61
|
marker?: Marker;
|
|
58
62
|
/**
|
|
59
|
-
* marker
|
|
63
|
+
* marker 크기 또는 line 두께.
|
|
60
64
|
* - `md` : 24px 동그라미 marker (기본, 01 Stripe 류)
|
|
61
65
|
* - `sm` : 10px 작은 solid dot (02 헤이딜러 류, title 중심)
|
|
66
|
+
* - line indicator: md 4px / sm 2px
|
|
62
67
|
*/
|
|
63
68
|
variant?: Variant;
|
|
64
69
|
spacing?: Spacing;
|
|
@@ -82,6 +87,7 @@ const StepperRoot = forwardRef<HTMLDivElement, StepperProps>(
|
|
|
82
87
|
{
|
|
83
88
|
activeIndex,
|
|
84
89
|
orientation = "vertical",
|
|
90
|
+
indicator = "marker",
|
|
85
91
|
marker = "dot",
|
|
86
92
|
variant = "md",
|
|
87
93
|
spacing = "default",
|
|
@@ -98,6 +104,7 @@ const StepperRoot = forwardRef<HTMLDivElement, StepperProps>(
|
|
|
98
104
|
const ctxValue = useMemo<StepperContextValue>(
|
|
99
105
|
() => ({
|
|
100
106
|
orientation,
|
|
107
|
+
indicator,
|
|
101
108
|
marker,
|
|
102
109
|
variant,
|
|
103
110
|
tone,
|
|
@@ -107,6 +114,7 @@ const StepperRoot = forwardRef<HTMLDivElement, StepperProps>(
|
|
|
107
114
|
}),
|
|
108
115
|
[
|
|
109
116
|
orientation,
|
|
117
|
+
indicator,
|
|
110
118
|
marker,
|
|
111
119
|
variant,
|
|
112
120
|
tone,
|
|
@@ -136,6 +144,7 @@ const StepperRoot = forwardRef<HTMLDivElement, StepperProps>(
|
|
|
136
144
|
.filter(Boolean)
|
|
137
145
|
.join(" ")}
|
|
138
146
|
data-orientation={orientation}
|
|
147
|
+
data-indicator={indicator}
|
|
139
148
|
data-marker={marker}
|
|
140
149
|
data-variant={variant}
|
|
141
150
|
data-spacing={spacing}
|
|
@@ -179,7 +188,7 @@ const StepperItem = forwardRef<HTMLButtonElement, StepperItemProps>(
|
|
|
179
188
|
},
|
|
180
189
|
ref,
|
|
181
190
|
) => {
|
|
182
|
-
const { orientation, marker, variant, activeIndex, onStepClick } =
|
|
191
|
+
const { orientation, indicator, marker, variant, activeIndex, onStepClick } =
|
|
183
192
|
useStepperContext();
|
|
184
193
|
|
|
185
194
|
const idx = index ?? 0;
|
|
@@ -188,12 +197,12 @@ const StepperItem = forwardRef<HTMLButtonElement, StepperItemProps>(
|
|
|
188
197
|
(idx === activeIndex ? "active" : idx < activeIndex ? "done" : "upcoming");
|
|
189
198
|
|
|
190
199
|
// marker 내부 렌더링 규칙:
|
|
191
|
-
// ─ sm
|
|
200
|
+
// ─ line / sm : 내부 글자/dot 없음
|
|
192
201
|
// ─ done : check 아이콘
|
|
193
202
|
// ─ number marker: 숫자 (active여도 숫자 유지)
|
|
194
203
|
// ─ dot + active : 작은 Primary dot
|
|
195
204
|
const markerContent =
|
|
196
|
-
variant === "sm"
|
|
205
|
+
indicator === "line" || variant === "sm"
|
|
197
206
|
? null
|
|
198
207
|
: state === "done"
|
|
199
208
|
? <Icon name="check" size={10} />
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* Switch — 즉시 적용되는 on/off 컨트롤.
|
|
2
|
-
시각:
|
|
2
|
+
시각: 둥근 사각 트랙 + 가로로 넓은 썸. checked면 트랙이 --primary로 채워지고 썸이 우측 이동.
|
|
3
3
|
시맨틱: role=switch가 붙은 checkbox input. label 래퍼가 hitbox.
|
|
4
4
|
|
|
5
5
|
축 반응:
|
|
@@ -9,10 +9,20 @@
|
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
.root {
|
|
12
|
-
--_track-h: var(--size-4);
|
|
13
|
-
--_track-w: var(--
|
|
14
|
-
--_thumb: var(--
|
|
15
|
-
--
|
|
12
|
+
--_track-h: calc(var(--size-4) + var(--size-0-5));
|
|
13
|
+
--_track-w: calc(var(--_track-h) * 13 / 6);
|
|
14
|
+
--_thumb-w: calc(var(--_track-h) * 7 / 6);
|
|
15
|
+
--_thumb-h: calc(var(--_track-h) * 2 / 3);
|
|
16
|
+
--_pad: calc(var(--_track-h) / 6);
|
|
17
|
+
--_press-ratio: 0.2;
|
|
18
|
+
--_press-extension: calc(var(--_thumb-w) * var(--_press-ratio));
|
|
19
|
+
/* 곡률은 전역 Shape 축과 독립적인 컴포넌트 토큰이다. */
|
|
20
|
+
--_radius-ratio: 0.44;
|
|
21
|
+
--_corner-shape: superellipse(1.2);
|
|
22
|
+
--_track-radius: calc(var(--_track-h) * var(--_radius-ratio));
|
|
23
|
+
--_thumb-radius: calc(var(--_thumb-h) * var(--_radius-ratio));
|
|
24
|
+
--_thumb-shadow: 0 var(--size-0-5) var(--size-1) oklch(var(--shadow-color) / 0.2), /* lint-hardcoded: ignore */
|
|
25
|
+
0 var(--hairline) var(--size-0-5) oklch(var(--shadow-color) / 0.08); /* lint-hardcoded: ignore */
|
|
16
26
|
/* position:relative — .input(absolute, visually-hidden)의 containing block이 되어
|
|
17
27
|
브라우저가 포커스된 input을 뷰포트로 끌어오려 할 때 label 안쪽에 머물게 한다.
|
|
18
28
|
이게 없으면 input이 가까운 positioned ancestor(app shell 등)로 올라가, 포커스 시
|
|
@@ -25,21 +35,17 @@
|
|
|
25
35
|
-webkit-tap-highlight-color: transparent;
|
|
26
36
|
}
|
|
27
37
|
|
|
28
|
-
|
|
29
|
-
.
|
|
30
|
-
--
|
|
31
|
-
--_track-w: var(--size-6);
|
|
32
|
-
--_thumb: var(--size-2);
|
|
38
|
+
.root[data-variant="crisp"] {
|
|
39
|
+
--_radius-ratio: 0.16;
|
|
40
|
+
--_corner-shape: superellipse(2.4);
|
|
33
41
|
}
|
|
42
|
+
|
|
43
|
+
/* Sizes — md 18px, lg 20px. Density 배율과 동일한 비례를 유지한다. */
|
|
34
44
|
.size_md {
|
|
35
|
-
--_track-h: var(--size-4);
|
|
36
|
-
--_track-w: var(--size-8);
|
|
37
|
-
--_thumb: var(--size-3);
|
|
45
|
+
--_track-h: calc(var(--size-4) + var(--size-0-5));
|
|
38
46
|
}
|
|
39
47
|
.size_lg {
|
|
40
48
|
--_track-h: var(--size-5);
|
|
41
|
-
--_track-w: var(--size-10);
|
|
42
|
-
--_thumb: var(--size-4);
|
|
43
49
|
}
|
|
44
50
|
|
|
45
51
|
/* Native input: visually-hidden but focusable & form-submittable */
|
|
@@ -61,29 +67,38 @@
|
|
|
61
67
|
width: var(--_track-w);
|
|
62
68
|
height: var(--_track-h);
|
|
63
69
|
background: var(--bg-muted);
|
|
64
|
-
|
|
70
|
+
corner-shape: var(--_corner-shape);
|
|
71
|
+
border-radius: var(--_track-radius);
|
|
65
72
|
transition:
|
|
66
73
|
background var(--duration-slow) var(--ease-out),
|
|
67
74
|
box-shadow var(--duration-fast) var(--ease-out);
|
|
68
75
|
}
|
|
69
76
|
|
|
70
|
-
/* Thumb
|
|
71
|
-
checked
|
|
72
|
-
transform-origin을 상태별로 전환해야 pressed 확장이 양쪽 edge 모두 자연스러움. */
|
|
77
|
+
/* Thumb의 위치와 눌림 표면을 분리한다. 표면은 트랙 안쪽으로만 넓어지고,
|
|
78
|
+
checked 전환 때 변형 기준점을 바꾸거나 가로 scale로 모서리를 왜곡하지 않는다. */
|
|
73
79
|
.thumb {
|
|
74
80
|
position: absolute;
|
|
75
81
|
top: 50%;
|
|
76
82
|
left: var(--_pad);
|
|
77
|
-
width: var(--_thumb);
|
|
78
|
-
height: var(--_thumb);
|
|
79
|
-
|
|
80
|
-
border-radius: var(--radius
|
|
81
|
-
box-shadow: var(--shadow-xs);
|
|
83
|
+
width: var(--_thumb-w);
|
|
84
|
+
height: var(--_thumb-h);
|
|
85
|
+
corner-shape: var(--_corner-shape);
|
|
86
|
+
border-radius: var(--_thumb-radius);
|
|
82
87
|
transform: translateY(-50%);
|
|
83
|
-
|
|
88
|
+
transition: left var(--duration-base) var(--ease-out);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.thumb::before {
|
|
92
|
+
content: "";
|
|
93
|
+
position: absolute;
|
|
94
|
+
inset: 0;
|
|
95
|
+
background: var(--bg);
|
|
96
|
+
corner-shape: inherit;
|
|
97
|
+
border-radius: inherit;
|
|
98
|
+
box-shadow: var(--_thumb-shadow);
|
|
84
99
|
transition:
|
|
85
|
-
left var(--duration-base) var(--ease-
|
|
86
|
-
|
|
100
|
+
left var(--duration-base) var(--ease-emphasized),
|
|
101
|
+
right var(--duration-base) var(--ease-emphasized),
|
|
87
102
|
background var(--duration-slow) var(--ease-out);
|
|
88
103
|
}
|
|
89
104
|
|
|
@@ -92,10 +107,10 @@
|
|
|
92
107
|
background: var(--primary);
|
|
93
108
|
}
|
|
94
109
|
.input:checked + .track .thumb {
|
|
95
|
-
left: calc(var(--_track-w) - var(--_thumb) - var(--_pad));
|
|
110
|
+
left: calc(var(--_track-w) - var(--_thumb-w) - var(--_pad));
|
|
111
|
+
}
|
|
112
|
+
.input:checked + .track .thumb::before {
|
|
96
113
|
background: var(--primary-fg);
|
|
97
|
-
/* checked 상태에선 썸이 우측 edge에 가까우므로 scale 확장이 왼쪽으로 자라야 자연스러움 */
|
|
98
|
-
transform-origin: right center;
|
|
99
114
|
}
|
|
100
115
|
|
|
101
116
|
/* Hover ────────────────────────────────────────────────────── */
|
|
@@ -109,11 +124,13 @@
|
|
|
109
124
|
background: var(--primary-hover);
|
|
110
125
|
}
|
|
111
126
|
|
|
112
|
-
/* Pressed
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
127
|
+
/* Pressed — 끝의 여백은 고정하고 트랙 안쪽으로만 표면을 확장한다.
|
|
128
|
+
양쪽 inset을 같은 곡선으로 복구하므로 누른 채 상태가 바뀌어도 튀지 않는다. */
|
|
129
|
+
.root:active:not([data-disabled]) .input:not(:checked) + .track .thumb::before {
|
|
130
|
+
right: calc(var(--_press-extension) * -1);
|
|
131
|
+
}
|
|
132
|
+
.root:active:not([data-disabled]) .input:checked + .track .thumb::before {
|
|
133
|
+
left: calc(var(--_press-extension) * -1);
|
|
117
134
|
}
|
|
118
135
|
|
|
119
136
|
/* Focus — 트랙에 링 표시 */
|
|
@@ -129,7 +146,7 @@
|
|
|
129
146
|
.input:disabled + .track {
|
|
130
147
|
background: var(--bg-muted);
|
|
131
148
|
}
|
|
132
|
-
.input:disabled + .track .thumb {
|
|
149
|
+
.input:disabled + .track .thumb::before {
|
|
133
150
|
background: var(--fg-disabled);
|
|
134
151
|
box-shadow: none;
|
|
135
152
|
}
|
|
@@ -154,10 +171,6 @@
|
|
|
154
171
|
}
|
|
155
172
|
|
|
156
173
|
@media (prefers-reduced-motion: reduce) {
|
|
157
|
-
.root:
|
|
158
|
-
transform: translateY(-50%);
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
[data-motion="none"] .root:active:not([data-disabled]) .thumb {
|
|
162
|
-
transform: translateY(-50%);
|
|
174
|
+
.root { --_press-ratio: 0; }
|
|
163
175
|
}
|
|
176
|
+
[data-motion="none"] .root { --_press-ratio: 0; }
|
|
@@ -9,13 +9,16 @@ import {
|
|
|
9
9
|
|
|
10
10
|
import styles from "./Switch.module.css";
|
|
11
11
|
|
|
12
|
-
export type SwitchSize = "
|
|
12
|
+
export type SwitchSize = "md" | "lg";
|
|
13
|
+
export type SwitchVariant = "soft" | "crisp";
|
|
13
14
|
|
|
14
15
|
export type SwitchProps = Omit<
|
|
15
16
|
InputHTMLAttributes<HTMLInputElement>,
|
|
16
17
|
"type" | "size"
|
|
17
18
|
> & {
|
|
18
19
|
size?: SwitchSize;
|
|
20
|
+
/** Shape 축과 독립적인 곡률. 기본 soft. */
|
|
21
|
+
variant?: SwitchVariant;
|
|
19
22
|
/** 폼 검증 실패. track·focus ring destructive 톤으로 전환. */
|
|
20
23
|
invalid?: boolean;
|
|
21
24
|
/**
|
|
@@ -29,7 +32,7 @@ export type SwitchProps = Omit<
|
|
|
29
32
|
|
|
30
33
|
const Switch = forwardRef<HTMLInputElement, SwitchProps>(
|
|
31
34
|
(
|
|
32
|
-
{ className, size = "md", invalid, disabled, onCheckedChange, onChange, style, ...rest },
|
|
35
|
+
{ className, size = "md", variant = "soft", invalid, disabled, onCheckedChange, onChange, style, ...rest },
|
|
33
36
|
ref,
|
|
34
37
|
) => {
|
|
35
38
|
const handleChange = useCallback(
|
|
@@ -48,6 +51,7 @@ const Switch = forwardRef<HTMLInputElement, SwitchProps>(
|
|
|
48
51
|
<label
|
|
49
52
|
className={cls}
|
|
50
53
|
style={style as CSSProperties}
|
|
54
|
+
data-variant={variant}
|
|
51
55
|
data-disabled={disabled || undefined}
|
|
52
56
|
data-invalid={invalid || undefined}
|
|
53
57
|
>
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { Switch } from "./Switch";
|
|
2
|
-
export type { SwitchProps, SwitchSize } from "./Switch";
|
|
2
|
+
export type { SwitchProps, SwitchSize, SwitchVariant } from "./Switch";
|
|
@@ -42,13 +42,14 @@
|
|
|
42
42
|
align-items: center;
|
|
43
43
|
gap: var(--space-1_5);
|
|
44
44
|
padding-inline: var(--space-2_5);
|
|
45
|
+
corner-shape: var(--corner-shape);
|
|
45
46
|
border-radius: var(--radius-sm);
|
|
46
47
|
color: var(--fg-muted);
|
|
47
48
|
background: transparent;
|
|
48
49
|
font-family: var(--label-font);
|
|
49
50
|
font-weight: var(--label-weight);
|
|
50
51
|
letter-spacing: var(--label-tracking);
|
|
51
|
-
line-height: var(--
|
|
52
|
+
line-height: var(--label-md-line-height);
|
|
52
53
|
white-space: nowrap;
|
|
53
54
|
cursor: pointer;
|
|
54
55
|
user-select: none;
|
|
@@ -62,6 +63,7 @@
|
|
|
62
63
|
box-shadow var(--duration-fast) var(--ease-out);
|
|
63
64
|
}
|
|
64
65
|
.size_sm .tab {
|
|
66
|
+
line-height: var(--label-sm-line-height);
|
|
65
67
|
font-size: var(--label-sm-size);
|
|
66
68
|
padding-inline: var(--space-2);
|
|
67
69
|
gap: var(--space-1);
|
|
@@ -223,6 +225,7 @@
|
|
|
223
225
|
height: var(--control-h-xs);
|
|
224
226
|
padding: 0;
|
|
225
227
|
border: 0;
|
|
228
|
+
corner-shape: var(--corner-shape);
|
|
226
229
|
border-radius: var(--radius-xs);
|
|
227
230
|
background: transparent;
|
|
228
231
|
color: var(--fg-muted);
|
|
@@ -305,6 +308,7 @@
|
|
|
305
308
|
gap: var(--space-0_5);
|
|
306
309
|
}
|
|
307
310
|
.variant_segmented .tab {
|
|
311
|
+
corner-shape: var(--corner-shape);
|
|
308
312
|
border-radius: var(--radius-xs);
|
|
309
313
|
position: relative;
|
|
310
314
|
}
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
.textIcon { display: inline-flex; align-items: center; flex-shrink: 0; }
|
|
29
29
|
|
|
30
30
|
.textMuted { color: var(--fg-muted); }
|
|
31
|
-
.textStrong { color: var(--fg-strong); font-weight: var(--font-weight-
|
|
31
|
+
.textStrong { color: var(--fg-strong); font-weight: var(--font-weight-book); }
|
|
32
32
|
.textSubtle { color: var(--fg-subtle); }
|
|
33
33
|
|
|
34
34
|
/* Number — 숫자 셀. tabular-nums로 자릿수 정렬 안정. */
|
|
@@ -58,6 +58,7 @@
|
|
|
58
58
|
/* Image thumb — 정사각/radius-sm 기본. src 없거나 로드 실패 시 빈 회색박스로 노출.
|
|
59
59
|
셀 min-height를 넘기지 않도록 size로 받은 px 그대로 적용. */
|
|
60
60
|
.image {
|
|
61
|
+
corner-shape: var(--corner-shape);
|
|
61
62
|
display: inline-flex;
|
|
62
63
|
align-items: center;
|
|
63
64
|
justify-content: center;
|
|
@@ -67,6 +68,10 @@
|
|
|
67
68
|
flex-shrink: 0;
|
|
68
69
|
}
|
|
69
70
|
|
|
71
|
+
.image[data-image-shape="circle"] {
|
|
72
|
+
corner-shape: round;
|
|
73
|
+
}
|
|
74
|
+
|
|
70
75
|
.imageImg {
|
|
71
76
|
display: block;
|
|
72
77
|
width: 100%;
|
|
@@ -104,6 +109,7 @@
|
|
|
104
109
|
display: inline-block;
|
|
105
110
|
height: var(--size-1-5);
|
|
106
111
|
background: var(--bg-muted);
|
|
112
|
+
corner-shape: var(--corner-shape);
|
|
107
113
|
border-radius: var(--radius-full);
|
|
108
114
|
overflow: hidden;
|
|
109
115
|
flex-shrink: 0;
|
|
@@ -114,6 +120,7 @@
|
|
|
114
120
|
inset-block: 0;
|
|
115
121
|
inset-inline-start: 0;
|
|
116
122
|
background: var(--primary);
|
|
123
|
+
corner-shape: inherit;
|
|
117
124
|
border-radius: inherit;
|
|
118
125
|
}
|
|
119
126
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { forwardRef, type HTMLAttributes, type ReactNode } from "react";
|
|
2
2
|
|
|
3
3
|
import { Badge, type BadgeShape, type BadgeSize, type BadgeStatus, type BadgeVariant } from "../Badge";
|
|
4
|
+
import { Tag } from "../Tag";
|
|
4
5
|
import styles from "./TableCell.module.css";
|
|
5
6
|
|
|
6
7
|
export type TableCellBadgeProps = HTMLAttributes<HTMLSpanElement> & {
|
|
@@ -12,14 +13,17 @@ export type TableCellBadgeProps = HTMLAttributes<HTMLSpanElement> & {
|
|
|
12
13
|
shape?: BadgeShape;
|
|
13
14
|
};
|
|
14
15
|
|
|
16
|
+
/** @deprecated Use TableCellTag for categories and text statuses. */
|
|
15
17
|
export const TableCellBadge = forwardRef<HTMLSpanElement, TableCellBadgeProps>(
|
|
16
18
|
function TableCellBadge({ className, children, status, variant = "soft", size = "md", shape = "rounded", ...rest }, ref) {
|
|
17
19
|
const cls = [styles.base, className ?? ""].filter(Boolean).join(" ");
|
|
18
20
|
return (
|
|
19
21
|
<span ref={ref} className={cls} {...rest}>
|
|
20
|
-
|
|
21
|
-
{children}
|
|
22
|
-
|
|
22
|
+
{variant === "dot" || shape === "circle" ? (
|
|
23
|
+
<Badge size={size} variant={variant} status={variant === "dot" ? status : undefined} shape={shape}>{children}</Badge>
|
|
24
|
+
) : (
|
|
25
|
+
<Tag size="md" variant={variant} status={status} shape={shape === "pill" ? "pill" : "rounded"}>{children}</Tag>
|
|
26
|
+
)}
|
|
23
27
|
</span>
|
|
24
28
|
);
|
|
25
29
|
},
|
|
@@ -35,7 +35,7 @@ export const TableCellImage = forwardRef<HTMLSpanElement, TableCellImageProps>(
|
|
|
35
35
|
};
|
|
36
36
|
return (
|
|
37
37
|
<span ref={ref} className={cls} {...rest}>
|
|
38
|
-
<span className={styles.image} style={thumbStyle} aria-hidden={!alt || undefined}>
|
|
38
|
+
<span className={styles.image} data-image-shape={shape} style={thumbStyle} aria-hidden={!alt || undefined}>
|
|
39
39
|
{src ? (
|
|
40
40
|
<img className={styles.imageImg} src={src} alt={alt ?? ""} />
|
|
41
41
|
) : (
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { forwardRef } from "react";
|
|
2
|
+
import { Tag, type TagProps } from "../Tag";
|
|
3
|
+
import styles from "./TableCell.module.css";
|
|
4
|
+
|
|
5
|
+
export type TableCellTagProps = TagProps;
|
|
6
|
+
export const TableCellTag = forwardRef<HTMLSpanElement, TableCellTagProps>(
|
|
7
|
+
function TableCellTag(
|
|
8
|
+
{ className, children, size = "md", variant, status, shape, ...rest },
|
|
9
|
+
ref,
|
|
10
|
+
) {
|
|
11
|
+
return (
|
|
12
|
+
<span
|
|
13
|
+
ref={ref}
|
|
14
|
+
className={[styles.base, className].filter(Boolean).join(" ")}
|
|
15
|
+
{...rest}
|
|
16
|
+
>
|
|
17
|
+
<Tag size={size} variant={variant} status={status} shape={shape}>
|
|
18
|
+
{children}
|
|
19
|
+
</Tag>
|
|
20
|
+
</span>
|
|
21
|
+
);
|
|
22
|
+
},
|
|
23
|
+
);
|
|
@@ -17,3 +17,6 @@ export type { TableCellAvatarProps } from "./TableCellAvatar";
|
|
|
17
17
|
|
|
18
18
|
export { TableCellMeter } from "./TableCellMeter";
|
|
19
19
|
export type { TableCellMeterProps, TableCellMeterTone } from "./TableCellMeter";
|
|
20
|
+
|
|
21
|
+
export { TableCellTag } from "./TableCellTag";
|
|
22
|
+
export type { TableCellTagProps } from "./TableCellTag";
|
|
@@ -57,6 +57,7 @@
|
|
|
57
57
|
min-height으로 시각 무게 유지. */
|
|
58
58
|
.plate {
|
|
59
59
|
background: var(--bg-subtle);
|
|
60
|
+
corner-shape: var(--corner-shape);
|
|
60
61
|
border-radius: var(--radius-lg);
|
|
61
62
|
padding: var(--space-1);
|
|
62
63
|
min-height: var(--control-h-lg);
|
|
@@ -122,6 +123,7 @@
|
|
|
122
123
|
position: absolute;
|
|
123
124
|
inset-block: 7.5%;
|
|
124
125
|
inset-inline: 0;
|
|
126
|
+
corner-shape: var(--corner-shape);
|
|
125
127
|
border-radius: var(--radius-sm);
|
|
126
128
|
background: transparent;
|
|
127
129
|
transition: var(--transition-colors);
|
|
@@ -242,6 +244,7 @@
|
|
|
242
244
|
.resizeHandle:focus-visible {
|
|
243
245
|
outline: none;
|
|
244
246
|
box-shadow: var(--ring-shadow-nav);
|
|
247
|
+
corner-shape: var(--corner-shape);
|
|
245
248
|
border-radius: var(--radius-xs);
|
|
246
249
|
}
|
|
247
250
|
|
|
@@ -254,6 +257,7 @@
|
|
|
254
257
|
height: 48%;
|
|
255
258
|
background: var(--bg);
|
|
256
259
|
border: var(--hairline) solid var(--border);
|
|
260
|
+
corner-shape: var(--corner-shape);
|
|
257
261
|
border-radius: var(--radius-full);
|
|
258
262
|
opacity: 0;
|
|
259
263
|
box-shadow: var(--shadow-xs);
|
|
@@ -56,6 +56,7 @@
|
|
|
56
56
|
padding은 TableHeader.plate와 동일(space-1 사면 균일)로 — 안쪽 셀들의 가로
|
|
57
57
|
origin을 헤더와 정확히 맞춰 열이 어긋나지 않도록 보장. */
|
|
58
58
|
.plate {
|
|
59
|
+
corner-shape: var(--corner-shape);
|
|
59
60
|
border-radius: var(--radius-lg);
|
|
60
61
|
padding: var(--space-1);
|
|
61
62
|
}
|
|
@@ -88,10 +89,12 @@
|
|
|
88
89
|
.root[tabindex]:not(.disabled):focus-visible {
|
|
89
90
|
outline: none;
|
|
90
91
|
box-shadow: var(--ring-shadow-nav);
|
|
92
|
+
corner-shape: var(--corner-shape);
|
|
91
93
|
border-radius: var(--radius-sm);
|
|
92
94
|
}
|
|
93
95
|
|
|
94
96
|
.plate:focus-visible {
|
|
97
|
+
corner-shape: var(--corner-shape);
|
|
95
98
|
border-radius: var(--radius-lg);
|
|
96
99
|
}
|
|
97
100
|
|
|
@@ -122,6 +122,7 @@
|
|
|
122
122
|
overflow-y: auto;
|
|
123
123
|
background: var(--bg);
|
|
124
124
|
border: var(--hairline) solid var(--border-strong);
|
|
125
|
+
corner-shape: var(--corner-shape);
|
|
125
126
|
border-radius: var(--radius-sm);
|
|
126
127
|
box-shadow: var(--shadow-md);
|
|
127
128
|
}
|
|
@@ -148,6 +149,7 @@
|
|
|
148
149
|
/* ── 키보드 포커스 (활성 전) ───────────────────────────── */
|
|
149
150
|
.editCell:focus-visible:not([data-active]) {
|
|
150
151
|
box-shadow: var(--ring-shadow-nav);
|
|
152
|
+
corner-shape: var(--corner-shape);
|
|
151
153
|
border-radius: var(--radius-sm);
|
|
152
154
|
}
|
|
153
155
|
|
|
@@ -80,6 +80,7 @@
|
|
|
80
80
|
gap: var(--space-0_5);
|
|
81
81
|
padding: var(--space-1);
|
|
82
82
|
background: var(--bg-muted);
|
|
83
|
+
corner-shape: var(--corner-shape);
|
|
83
84
|
border-radius: var(--radius-pill-lg);
|
|
84
85
|
width: 100%;
|
|
85
86
|
}
|
|
@@ -92,7 +93,7 @@
|
|
|
92
93
|
gap: var(--space-1_5);
|
|
93
94
|
font-family: var(--label-font);
|
|
94
95
|
font-weight: var(--label-weight);
|
|
95
|
-
line-height: var(--
|
|
96
|
+
line-height: var(--label-md-line-height);
|
|
96
97
|
letter-spacing: var(--label-tracking);
|
|
97
98
|
white-space: nowrap;
|
|
98
99
|
cursor: pointer;
|
|
@@ -132,7 +133,7 @@
|
|
|
132
133
|
/* Sizes — sm/md/lg는 Button 계열 --control-h-* 기반.
|
|
133
134
|
xl/2xl/3xl은 "순수 텍스트 위계"(text variant) 전용 — height 고정 안 하고 폰트 크기만.
|
|
134
135
|
underline/segmented에서도 쓸 수 있지만 보통 text variant에서 heading 역할. */
|
|
135
|
-
.size_sm .trigger { height: var(--control-h-sm); font-size: var(--label-sm-size); }
|
|
136
|
+
.size_sm .trigger { line-height: var(--label-sm-line-height); height: var(--control-h-sm); font-size: var(--label-sm-size); }
|
|
136
137
|
.size_md .trigger { height: var(--control-h-md); font-size: var(--label-md-size); }
|
|
137
138
|
.size_lg .trigger { height: var(--control-h-lg); font-size: var(--label-md-size); }
|
|
138
139
|
.size_xl .trigger { height: auto; font-size: var(--text-lg); line-height: var(--lh-lg); }
|
|
@@ -182,7 +183,7 @@
|
|
|
182
183
|
.underlineBar {
|
|
183
184
|
position: absolute;
|
|
184
185
|
left: 0;
|
|
185
|
-
bottom: calc(var(--hairline) * -1);
|
|
186
|
+
bottom: var(--tabs-underline-inset, calc(var(--hairline) * -1));
|
|
186
187
|
height: var(--hairline);
|
|
187
188
|
/* 트리거 좌우 padding을 0으로 뺐으므로 바도 트리거 전체 폭 = 글자 폭에 그대로 맞음. */
|
|
188
189
|
width: var(--tab-indicator-w);
|
|
@@ -212,9 +213,10 @@
|
|
|
212
213
|
}
|
|
213
214
|
|
|
214
215
|
/* Text variant ─────────────────────────────────────────────
|
|
215
|
-
장식 없음.
|
|
216
|
+
장식 없음. 연한 미선택 색 → fg(hover) → fg-strong(active).
|
|
216
217
|
좌우 패딩도 최소로 잡아 시각적 존재감을 낮춤. */
|
|
217
218
|
.triggerText {
|
|
219
|
+
--tabs-text-inactive: color-mix(in oklab, var(--fg-muted) 40%, var(--fg-subtle));
|
|
218
220
|
padding-inline: var(--space-1);
|
|
219
221
|
}
|
|
220
222
|
.size_sm .triggerText { padding-inline: var(--space-0_5); }
|
|
@@ -255,14 +257,15 @@
|
|
|
255
257
|
|
|
256
258
|
.triggerSegmented {
|
|
257
259
|
padding-inline: var(--space-4);
|
|
260
|
+
corner-shape: var(--corner-shape);
|
|
258
261
|
border-radius: var(--radius-pill-md);
|
|
259
262
|
flex: 1 1 0;
|
|
260
263
|
min-width: max-content;
|
|
261
264
|
position: relative;
|
|
262
265
|
z-index: var(--z-raise);
|
|
263
266
|
}
|
|
264
|
-
.size_sm .triggerSegmented { padding-inline: var(--space-3); border-radius: var(--radius-pill-sm); }
|
|
265
|
-
.size_lg .triggerSegmented { padding-inline: var(--space-5); border-radius: var(--radius-pill-md); }
|
|
267
|
+
.size_sm .triggerSegmented { padding-inline: var(--space-3); corner-shape: var(--corner-shape); border-radius: var(--radius-pill-sm); }
|
|
268
|
+
.size_lg .triggerSegmented { padding-inline: var(--space-5); corner-shape: var(--corner-shape); border-radius: var(--radius-pill-md); }
|
|
266
269
|
|
|
267
270
|
.size_sm .listSegmented .trigger { height: calc(var(--control-h-sm) - var(--size-1)); }
|
|
268
271
|
.size_md .listSegmented .trigger { height: calc(var(--control-h-md) - var(--size-1)); }
|
|
@@ -283,13 +286,14 @@
|
|
|
283
286
|
width: var(--tab-indicator-w);
|
|
284
287
|
transform: translateX(var(--tab-indicator-x));
|
|
285
288
|
background: var(--bg);
|
|
289
|
+
corner-shape: var(--corner-shape);
|
|
286
290
|
border-radius: var(--radius-pill-md);
|
|
287
291
|
box-shadow: var(--shadow-xs);
|
|
288
292
|
pointer-events: none;
|
|
289
293
|
z-index: var(--z-base);
|
|
290
294
|
}
|
|
291
|
-
.size_sm .pill { border-radius: var(--radius-pill-sm); }
|
|
292
|
-
.size_lg .pill { border-radius: var(--radius-pill-md); }
|
|
295
|
+
.size_sm .pill { corner-shape: var(--corner-shape); border-radius: var(--radius-pill-sm); }
|
|
296
|
+
.size_lg .pill { corner-shape: var(--corner-shape); border-radius: var(--radius-pill-md); }
|
|
293
297
|
|
|
294
298
|
/* vertical pill: 좌우 padding은 list 바깥 공간(space-1), 상하는 측정값 기준.
|
|
295
299
|
bottom:0을 지워 height가 측정값으로 결정되게. */
|
|
@@ -337,6 +341,7 @@
|
|
|
337
341
|
.panel:focus-visible {
|
|
338
342
|
outline: none;
|
|
339
343
|
box-shadow: var(--ring-shadow-nav);
|
|
344
|
+
corner-shape: var(--corner-shape);
|
|
340
345
|
border-radius: var(--radius-xs);
|
|
341
346
|
}
|
|
342
347
|
/* vertical일 때 panel이 list 옆에서 남은 공간 꽉 채움.
|
|
@@ -370,3 +375,13 @@
|
|
|
370
375
|
overflow: visible;
|
|
371
376
|
text-overflow: clip;
|
|
372
377
|
}
|
|
378
|
+
|
|
379
|
+
.triggerText[data-state="inactive"]:not(:disabled):not(:hover) { color: var(--tabs-text-inactive); }
|
|
380
|
+
|
|
381
|
+
/* Compact segmented view selection: total24px, trigger20px. */
|
|
382
|
+
.size_xs .trigger { height: var(--size-6); font-size: var(--text-xs); }
|
|
383
|
+
.size_xs.listSegmented { padding: var(--space-0_5); }
|
|
384
|
+
.size_xs .triggerSegmented { padding-inline: var(--space-2); border-radius: var(--radius-pill-sm); }
|
|
385
|
+
.listSegmented.size_xs .trigger { height: calc(var(--size-6) - var(--space-1)); }
|
|
386
|
+
.size_xs .pill { top: var(--space-0_5); bottom: var(--space-0_5); border-radius: var(--radius-pill-sm); }
|
|
387
|
+
.size_xs .listSegmented[data-orientation="vertical"] .pill { top: 0; bottom: auto; left: var(--space-0_5); right: var(--space-0_5); }
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
import styles from "./Tabs.module.css";
|
|
24
24
|
|
|
25
25
|
export type TabsVariant = "underline" | "segmented" | "text";
|
|
26
|
-
export type TabsSize = "sm" | "md" | "lg" | "xl" | "2xl" | "3xl";
|
|
26
|
+
export type TabsSize = "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl";
|
|
27
27
|
export type TabsOrientation = "horizontal" | "vertical";
|
|
28
28
|
|
|
29
29
|
type TabsContextValue = {
|
|
@@ -50,6 +50,7 @@ function useTabsContext(component: string): TabsContextValue {
|
|
|
50
50
|
|
|
51
51
|
/** 트리거 아이콘 렌더 사이즈 — 사이즈가 커질수록 아이콘도 따라 커짐. */
|
|
52
52
|
const ICON_SIZE: Record<TabsSize, number> = {
|
|
53
|
+
xs: 12,
|
|
53
54
|
sm: 14,
|
|
54
55
|
md: 16,
|
|
55
56
|
lg: 18,
|
|
@@ -220,9 +221,9 @@ const List = forwardRef<HTMLDivElement, TabsListProps>(
|
|
|
220
221
|
const listRect = list.getBoundingClientRect();
|
|
221
222
|
const rect = active.getBoundingClientRect();
|
|
222
223
|
setIndicator({
|
|
223
|
-
x: rect.left - listRect.left,
|
|
224
|
+
x: rect.left - listRect.left + list.scrollLeft - list.clientLeft,
|
|
224
225
|
w: rect.width,
|
|
225
|
-
y: rect.top - listRect.top,
|
|
226
|
+
y: rect.top - listRect.top + list.scrollTop - list.clientTop,
|
|
226
227
|
h: rect.height,
|
|
227
228
|
});
|
|
228
229
|
}, []);
|