@conscience-technology/ovenn 0.0.0-stage → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +189 -2
- package/assets/components/AIMessage/AIMessage.module.css +150 -0
- package/assets/components/AIMessage/AIMessage.tsx +106 -0
- package/assets/components/AIMessage/index.ts +2 -0
- package/assets/components/Accordion/Accordion.module.css +265 -0
- package/assets/components/Accordion/Accordion.tsx +209 -0
- package/assets/components/Accordion/index.ts +7 -0
- package/assets/components/AppFrame/AppFrame.module.css +200 -0
- package/assets/components/AppFrame/AppFrame.tsx +93 -0
- package/assets/components/AppFrame/index.ts +6 -0
- package/assets/components/AttachmentItem/AttachmentItem.module.css +124 -0
- package/assets/components/AttachmentItem/AttachmentItem.tsx +185 -0
- package/assets/components/AttachmentItem/index.ts +6 -0
- package/assets/components/AttachmentThumb/AttachmentThumb.module.css +141 -0
- package/assets/components/AttachmentThumb/AttachmentThumb.tsx +102 -0
- package/assets/components/AttachmentThumb/index.ts +2 -0
- package/assets/components/Avatar/Avatar.module.css +216 -0
- package/assets/components/Avatar/Avatar.tsx +283 -0
- package/assets/components/Avatar/index.ts +9 -0
- package/assets/components/AvatarUpload/AvatarUpload.module.css +83 -0
- package/assets/components/AvatarUpload/AvatarUpload.tsx +155 -0
- package/assets/components/AvatarUpload/index.ts +2 -0
- package/assets/components/Badge/Badge.module.css +178 -0
- package/assets/components/Badge/Badge.tsx +117 -0
- package/assets/components/Badge/index.ts +2 -0
- package/assets/components/BrandSet/BrandSetController.tsx +56 -0
- package/assets/components/BrandSet/index.ts +14 -0
- package/assets/components/BrandSet/resolve.ts +10 -0
- package/assets/components/BrandSet/types.ts +43 -0
- package/assets/components/Breadcrumb/Breadcrumb.module.css +281 -0
- package/assets/components/Breadcrumb/Breadcrumb.tsx +352 -0
- package/assets/components/Breadcrumb/index.ts +8 -0
- package/assets/components/Bubble/Bubble.module.css +71 -0
- package/assets/components/Bubble/Bubble.tsx +63 -0
- package/assets/components/Bubble/index.ts +2 -0
- package/assets/components/Button/Button.module.css +342 -0
- package/assets/components/Button/Button.tsx +217 -0
- package/assets/components/Button/index.ts +2 -0
- package/assets/components/ButtonGroup/ButtonGroup.tsx +22 -0
- package/assets/components/ButtonGroup/index.ts +5 -0
- package/assets/components/Calendar/Calendar.module.css +244 -0
- package/assets/components/Calendar/Calendar.tsx +419 -0
- package/assets/components/Calendar/index.ts +2 -0
- package/assets/components/Callout/Callout.module.css +147 -0
- package/assets/components/Callout/Callout.tsx +207 -0
- package/assets/components/Callout/index.ts +2 -0
- package/assets/components/Canvas/Canvas.module.css +75 -0
- package/assets/components/Canvas/Canvas.tsx +699 -0
- package/assets/components/Canvas/alignment.ts +34 -0
- package/assets/components/Canvas/clipboard.ts +30 -0
- package/assets/components/Canvas/collision.ts +67 -0
- package/assets/components/Canvas/edgeOptions.ts +11 -0
- package/assets/components/Canvas/graph.ts +11 -0
- package/assets/components/Canvas/history.ts +41 -0
- package/assets/components/Canvas/index.ts +4 -0
- package/assets/components/Canvas/selection.ts +56 -0
- package/assets/components/Canvas/tokens.css +61 -0
- package/assets/components/Canvas/types.ts +27 -0
- package/assets/components/Canvas/useCanvasSettlement.ts +79 -0
- package/assets/components/CanvasEdge/CanvasEdge.module.css +62 -0
- package/assets/components/CanvasEdge/CanvasEdge.tsx +121 -0
- package/assets/components/CanvasEdge/geometry.ts +350 -0
- package/assets/components/CanvasEdge/index.ts +4 -0
- package/assets/components/CanvasEdge/interactions.ts +14 -0
- package/assets/components/CanvasEdge/tokens.css +29 -0
- package/assets/components/CanvasNode/CanvasNode.module.css +314 -0
- package/assets/components/CanvasNode/CanvasNode.tsx +144 -0
- package/assets/components/CanvasNode/index.ts +2 -0
- package/assets/components/CanvasNode/runningOutline.ts +59 -0
- package/assets/components/CanvasNode/tokens.css +89 -0
- package/assets/components/Card/Card.module.css +127 -0
- package/assets/components/Card/Card.tsx +88 -0
- package/assets/components/Card/index.ts +2 -0
- package/assets/components/Chart/Chart.module.css +278 -0
- package/assets/components/Chart/Chart.tsx +385 -0
- package/assets/components/Chart/entrance.tsx +57 -0
- package/assets/components/Chart/index.ts +14 -0
- package/assets/components/ChatInput/ChatInput.module.css +378 -0
- package/assets/components/ChatInput/ChatInput.tsx +362 -0
- package/assets/components/ChatInput/ModelSelector.tsx +48 -0
- package/assets/components/ChatInput/SendButton.tsx +72 -0
- package/assets/components/ChatInput/index.ts +12 -0
- package/assets/components/Checkbox/Checkbox.module.css +186 -0
- package/assets/components/Checkbox/Checkbox.tsx +129 -0
- package/assets/components/Checkbox/index.ts +2 -0
- package/assets/components/CheckboxCard/CheckboxCard.module.css +1 -0
- package/assets/components/CheckboxCard/CheckboxCard.tsx +17 -0
- package/assets/components/CheckboxCard/index.ts +2 -0
- package/assets/components/Chip/Chip.module.css +209 -0
- package/assets/components/Chip/Chip.tsx +219 -0
- package/assets/components/Chip/index.ts +2 -0
- package/assets/components/Code/Code.module.css +26 -0
- package/assets/components/Code/Code.tsx +26 -0
- package/assets/components/Code/index.ts +2 -0
- package/assets/components/CodeBlock/CodeBlock.module.css +259 -0
- package/assets/components/CodeBlock/CodeBlock.tsx +283 -0
- package/assets/components/CodeBlock/copy-code.ts +15 -0
- package/assets/components/CodeBlock/index.ts +2 -0
- package/assets/components/ColorArea/ColorArea.module.css +148 -0
- package/assets/components/ColorArea/ColorArea.tsx +156 -0
- package/assets/components/ColorArea/index.ts +2 -0
- package/assets/components/ColorField/ColorField.module.css +201 -0
- package/assets/components/ColorField/ColorField.tsx +374 -0
- package/assets/components/ColorField/index.ts +2 -0
- package/assets/components/ColorPicker/ColorPicker.module.css +310 -0
- package/assets/components/ColorPicker/ColorPicker.tsx +387 -0
- package/assets/components/ColorPicker/index.ts +16 -0
- package/assets/components/ColorSlider/ColorSlider.module.css +170 -0
- package/assets/components/ColorSlider/ColorSlider.tsx +165 -0
- package/assets/components/ColorSlider/index.ts +15 -0
- package/assets/components/ColorSwatch/ColorSwatch.module.css +35 -0
- package/assets/components/ColorSwatch/ColorSwatch.tsx +69 -0
- package/assets/components/ColorSwatch/index.ts +2 -0
- package/assets/components/ColorSwatchPicker/ColorSwatchPicker.module.css +115 -0
- package/assets/components/ColorSwatchPicker/ColorSwatchPicker.tsx +183 -0
- package/assets/components/ColorSwatchPicker/index.ts +15 -0
- package/assets/components/Combobox/Combobox.module.css +13 -0
- package/assets/components/Combobox/Combobox.tsx +107 -0
- package/assets/components/Combobox/index.ts +2 -0
- package/assets/components/CommandPalette/CommandPalette.module.css +264 -0
- package/assets/components/CommandPalette/CommandPalette.tsx +425 -0
- package/assets/components/CommandPalette/index.ts +9 -0
- package/assets/components/CommandPalette/useCommandPaletteHotkey.ts +49 -0
- package/assets/components/Comment/Comment.module.css +25 -0
- package/assets/components/Comment/Comment.tsx +44 -0
- package/assets/components/Comment/CommentComposer.module.css +26 -0
- package/assets/components/Comment/CommentComposer.tsx +56 -0
- package/assets/components/Comment/CommentEditor.module.css +8 -0
- package/assets/components/Comment/CommentEditor.tsx +43 -0
- package/assets/components/Comment/CommentMentionInput.module.css +9 -0
- package/assets/components/Comment/CommentMentionInput.tsx +150 -0
- package/assets/components/Comment/index.ts +9 -0
- package/assets/components/Comment/types.ts +1 -0
- package/assets/components/ContextMenu/ContextMenu.module.css +121 -0
- package/assets/components/ContextMenu/ContextMenu.tsx +420 -0
- package/assets/components/ContextMenu/index.ts +9 -0
- package/assets/components/ControlGroup/ControlGroup.module.css +319 -0
- package/assets/components/ControlGroup/ControlGroup.tsx +69 -0
- package/assets/components/ControlGroup/context.tsx +12 -0
- package/assets/components/ControlGroup/index.ts +3 -0
- package/assets/components/ControlGroup/size.ts +9 -0
- package/assets/components/DataTable/DataTable.module.css +57 -0
- package/assets/components/DataTable/DataTable.tsx +137 -0
- package/assets/components/DataTable/index.ts +4 -0
- package/assets/components/DataTable/state.ts +34 -0
- package/assets/components/DatePicker/Calendar.tsx +485 -0
- package/assets/components/DatePicker/DESIGN_NOTES.md +106 -0
- package/assets/components/DatePicker/DESIGN_NOTES_TIME.md +125 -0
- package/assets/components/DatePicker/DateField.tsx +303 -0
- package/assets/components/DatePicker/DatePicker.module.css +623 -0
- package/assets/components/DatePicker/DatePicker.tsx +530 -0
- package/assets/components/DatePicker/TimeSelector.tsx +77 -0
- package/assets/components/DatePicker/index.ts +11 -0
- package/assets/components/DatePicker/presets.ts +84 -0
- package/assets/components/DatePicker/utils.ts +214 -0
- package/assets/components/Disclosure/Disclosure.module.css +74 -0
- package/assets/components/Disclosure/Disclosure.tsx +129 -0
- package/assets/components/Disclosure/index.ts +6 -0
- package/assets/components/Drawer/Drawer.module.css +197 -0
- package/assets/components/Drawer/Drawer.tsx +230 -0
- package/assets/components/Drawer/index.ts +15 -0
- package/assets/components/DropdownMenu/DropdownMenu.module.css +26 -0
- package/assets/components/DropdownMenu/DropdownMenu.tsx +400 -0
- package/assets/components/DropdownMenu/index.ts +9 -0
- package/assets/components/EmptyState/EmptyState.module.css +102 -0
- package/assets/components/EmptyState/EmptyState.tsx +80 -0
- package/assets/components/EmptyState/index.ts +2 -0
- package/assets/components/EventChip/EventChip.module.css +143 -0
- package/assets/components/EventChip/EventChip.tsx +95 -0
- package/assets/components/EventChip/index.ts +2 -0
- package/assets/components/EventListItem/EventListItem.module.css +223 -0
- package/assets/components/EventListItem/EventListItem.tsx +233 -0
- package/assets/components/EventListItem/index.ts +8 -0
- package/assets/components/FileIcon/FileIcon.module.css +78 -0
- package/assets/components/FileIcon/FileIcon.tsx +142 -0
- package/assets/components/FileIcon/fileExtMap.ts +166 -0
- package/assets/components/FileIcon/index.ts +9 -0
- package/assets/components/FileUpload/FileUpload.module.css +19 -0
- package/assets/components/FileUpload/FileUpload.tsx +96 -0
- package/assets/components/FileUpload/FileUploadItem.tsx +34 -0
- package/assets/components/FileUpload/index.ts +2 -0
- package/assets/components/FileUpload/utils.ts +8 -0
- package/assets/components/GalleryItem/GalleryItem.module.css +217 -0
- package/assets/components/GalleryItem/GalleryItem.tsx +163 -0
- package/assets/components/GalleryItem/index.ts +7 -0
- package/assets/components/GeneratedImage/GeneratedImage.module.css +93 -0
- package/assets/components/GeneratedImage/GeneratedImage.tsx +84 -0
- package/assets/components/GeneratedImage/index.ts +5 -0
- package/assets/components/Hint/Hint.module.css +75 -0
- package/assets/components/Hint/Hint.tsx +89 -0
- package/assets/components/Hint/index.ts +2 -0
- package/assets/components/Icon/Icon.tsx +654 -0
- package/assets/components/Icon/LucideFamilyIcon.tsx +434 -0
- package/assets/components/Icon/MissingIcon.tsx +25 -0
- package/assets/components/Icon/SolarFamilyIcon.tsx +439 -0
- package/assets/components/Icon/catalogNames.ts +8 -0
- package/assets/components/Icon/context.tsx +39 -0
- package/assets/components/Icon/index.ts +6 -0
- package/assets/components/Icon/lucideCatalog.ts +11358 -0
- package/assets/components/Icon/phosphorCatalog.ts +3052 -0
- package/assets/components/Icon/solarCatalog.ts +16064 -0
- package/assets/components/IconButton/IconButton.module.css +117 -0
- package/assets/components/IconButton/IconButton.tsx +113 -0
- package/assets/components/IconButton/index.ts +2 -0
- package/assets/components/Input/Input.module.css +375 -0
- package/assets/components/Input/Input.tsx +424 -0
- package/assets/components/Input/index.ts +2 -0
- package/assets/components/Kanban/Kanban.module.css +353 -0
- package/assets/components/Kanban/Kanban.tsx +371 -0
- package/assets/components/Kanban/index.ts +10 -0
- package/assets/components/ListItem/ListItem.module.css +235 -0
- package/assets/components/ListItem/ListItem.tsx +262 -0
- package/assets/components/ListItem/index.ts +9 -0
- package/assets/components/MenuItem/MenuItem.module.css +603 -0
- package/assets/components/MenuItem/MenuItem.tsx +704 -0
- package/assets/components/MenuItem/index.ts +8 -0
- package/assets/components/MessageActions/MessageActions.module.css +79 -0
- package/assets/components/MessageActions/MessageActions.tsx +139 -0
- package/assets/components/MessageActions/index.ts +6 -0
- package/assets/components/MessageQuote/MessageQuote.module.css +30 -0
- package/assets/components/MessageQuote/MessageQuote.tsx +33 -0
- package/assets/components/MessageQuote/index.ts +2 -0
- package/assets/components/MessageSources/MessageSources.module.css +60 -0
- package/assets/components/MessageSources/MessageSources.tsx +60 -0
- package/assets/components/MessageSources/index.ts +2 -0
- package/assets/components/MessageState/MessageState.module.css +118 -0
- package/assets/components/MessageState/MessageState.tsx +150 -0
- package/assets/components/MessageState/index.ts +2 -0
- package/assets/components/MessageTable/MessageTable.module.css +59 -0
- package/assets/components/MessageTable/MessageTable.tsx +21 -0
- package/assets/components/MessageTable/index.ts +2 -0
- package/assets/components/MetricCard/MetricCard.module.css +141 -0
- package/assets/components/MetricCard/MetricCard.tsx +162 -0
- package/assets/components/MetricCard/index.ts +2 -0
- package/assets/components/MetricCard/tokens.css +10 -0
- package/assets/components/MiniCalendar/MiniCalendar.module.css +130 -0
- package/assets/components/MiniCalendar/MiniCalendar.tsx +161 -0
- package/assets/components/MiniCalendar/index.ts +2 -0
- package/assets/components/Modal/Modal.module.css +294 -0
- package/assets/components/Modal/Modal.tsx +402 -0
- package/assets/components/Modal/index.ts +22 -0
- package/assets/components/MultiSelect/MultiSelect.tsx +7 -0
- package/assets/components/MultiSelect/index.ts +2 -0
- package/assets/components/Onboarding/DocsIndex.tsx +102 -0
- package/assets/components/Onboarding/LayoutBuilder.tsx +166 -0
- package/assets/components/Onboarding/Onboarding.module.css +1494 -0
- package/assets/components/Onboarding/OnboardingAxisPanel.tsx +472 -0
- package/assets/components/Onboarding/OnboardingPage.tsx +1258 -0
- package/assets/components/Onboarding/PresetsGallery.tsx +56 -0
- package/assets/components/Onboarding/actions.ts +529 -0
- package/assets/components/Onboarding/index.ts +8 -0
- package/assets/components/Onboarding/palette.css +48 -0
- package/assets/components/Onboarding/wizardData.ts +529 -0
- package/assets/components/PageHeader/PageHeader.module.css +119 -0
- package/assets/components/PageHeader/PageHeader.tsx +126 -0
- package/assets/components/PageHeader/index.ts +2 -0
- package/assets/components/Pagination/Pagination.module.css +132 -0
- package/assets/components/Pagination/Pagination.tsx +294 -0
- package/assets/components/Pagination/index.ts +6 -0
- package/assets/components/ProgressBar/ProgressBar.module.css +127 -0
- package/assets/components/ProgressBar/ProgressBar.tsx +85 -0
- package/assets/components/ProgressBar/index.ts +6 -0
- package/assets/components/QuotationBar/QuotationBar.module.css +63 -0
- package/assets/components/QuotationBar/QuotationBar.tsx +60 -0
- package/assets/components/QuotationBar/index.ts +2 -0
- package/assets/components/Radio/Radio.module.css +125 -0
- package/assets/components/Radio/Radio.tsx +39 -0
- package/assets/components/Radio/index.ts +2 -0
- package/assets/components/RadioCard/RadioCard.module.css +283 -0
- package/assets/components/RadioCard/RadioCard.tsx +186 -0
- package/assets/components/RadioCard/index.ts +2 -0
- package/assets/components/SegmentedChart/SegmentedChart.module.css +237 -0
- package/assets/components/SegmentedChart/SegmentedChart.tsx +121 -0
- package/assets/components/SegmentedChart/index.ts +2 -0
- package/assets/components/Select/Select.module.css +161 -0
- package/assets/components/Select/Select.tsx +453 -0
- package/assets/components/Select/index.ts +10 -0
- package/assets/components/Shortcut/Shortcut.module.css +79 -0
- package/assets/components/Shortcut/Shortcut.tsx +206 -0
- package/assets/components/Shortcut/index.ts +2 -0
- package/assets/components/Sidebar/Sidebar.module.css +407 -0
- package/assets/components/Sidebar/Sidebar.tsx +585 -0
- package/assets/components/Sidebar/index.ts +7 -0
- package/assets/components/Skeleton/Skeleton.module.css +33 -0
- package/assets/components/Skeleton/Skeleton.tsx +20 -0
- package/assets/components/Skeleton/index.ts +2 -0
- package/assets/components/Skeleton/tokens.css +11 -0
- package/assets/components/Slider/Slider.module.css +137 -0
- package/assets/components/Slider/Slider.tsx +104 -0
- package/assets/components/Slider/index.ts +2 -0
- package/assets/components/Spinner/LottiePlayer.tsx +179 -0
- package/assets/components/Spinner/Spinner.module.css +208 -0
- package/assets/components/Spinner/Spinner.tsx +133 -0
- package/assets/components/Spinner/index.ts +10 -0
- package/assets/components/Spinner/lottieColor.ts +166 -0
- package/assets/components/Spinner/lottieManifest.ts +103 -0
- package/assets/components/Stepper/Stepper.module.css +378 -0
- package/assets/components/Stepper/Stepper.tsx +253 -0
- package/assets/components/Stepper/index.ts +2 -0
- package/assets/components/Switch/Switch.module.css +176 -0
- package/assets/components/Switch/Switch.tsx +77 -0
- package/assets/components/Switch/index.ts +2 -0
- package/assets/components/TabStrip/TabStrip.module.css +362 -0
- package/assets/components/TabStrip/TabStrip.tsx +404 -0
- package/assets/components/TabStrip/index.ts +7 -0
- package/assets/components/TableCell/TableCell.module.css +137 -0
- package/assets/components/TableCell/TableCellAvatar.tsx +66 -0
- package/assets/components/TableCell/TableCellBadge.tsx +30 -0
- package/assets/components/TableCell/TableCellImage.tsx +49 -0
- package/assets/components/TableCell/TableCellMeter.tsx +55 -0
- package/assets/components/TableCell/TableCellNumber.tsx +43 -0
- package/assets/components/TableCell/TableCellTag.tsx +23 -0
- package/assets/components/TableCell/TableCellText.tsx +33 -0
- package/assets/components/TableCell/index.ts +22 -0
- package/assets/components/TableHeader/TableHeader.module.css +355 -0
- package/assets/components/TableHeader/TableHeader.tsx +658 -0
- package/assets/components/TableHeader/index.ts +9 -0
- package/assets/components/TableRow/TableRow.module.css +355 -0
- package/assets/components/TableRow/TableRow.tsx +292 -0
- package/assets/components/TableRow/index.ts +8 -0
- package/assets/components/TableRowEdit/TableRowEdit.module.css +164 -0
- package/assets/components/TableRowEdit/TableRowEdit.tsx +279 -0
- package/assets/components/TableRowEdit/index.ts +2 -0
- package/assets/components/TableRowSelect/TableRowSelect.module.css +23 -0
- package/assets/components/TableRowSelect/TableRowSelect.tsx +173 -0
- package/assets/components/TableRowSelect/index.ts +2 -0
- package/assets/components/TableToolbar/TableToolbar.module.css +38 -0
- package/assets/components/TableToolbar/TableToolbar.tsx +105 -0
- package/assets/components/TableToolbar/index.ts +5 -0
- package/assets/components/Tabs/Tabs.module.css +387 -0
- package/assets/components/Tabs/Tabs.tsx +518 -0
- package/assets/components/Tabs/index.ts +9 -0
- package/assets/components/Tag/Tag.module.css +101 -0
- package/assets/components/Tag/Tag.tsx +55 -0
- package/assets/components/Tag/index.ts +2 -0
- package/assets/components/TemplateBoundary/TemplateBoundary.module.css +4 -0
- package/assets/components/TemplateBoundary/TemplateBoundary.tsx +54 -0
- package/assets/components/TemplateBoundary/index.ts +3 -0
- package/assets/components/TemplateBoundary/types.ts +25 -0
- package/assets/components/Textarea/Textarea.module.css +350 -0
- package/assets/components/Textarea/Textarea.tsx +438 -0
- package/assets/components/Textarea/index.ts +7 -0
- package/assets/components/ThemeController.tsx +396 -0
- package/assets/components/TimePicker/TimePicker.module.css +113 -0
- package/assets/components/TimePicker/TimePicker.tsx +424 -0
- package/assets/components/TimePicker/index.ts +8 -0
- package/assets/components/TimePicker/utils.ts +116 -0
- package/assets/components/TimelineView/TimelineEventBar.tsx +109 -0
- package/assets/components/TimelineView/TimelineView.module.css +203 -0
- package/assets/components/TimelineView/TimelineView.tsx +137 -0
- package/assets/components/TimelineView/axis.ts +62 -0
- package/assets/components/TimelineView/index.ts +3 -0
- package/assets/components/TimelineView/layout.ts +56 -0
- package/assets/components/TimelineView/move.ts +51 -0
- package/assets/components/TimelineView/useTimelineDrag.ts +215 -0
- package/assets/components/TimelineView/useTimelineZoom.ts +92 -0
- package/assets/components/Toast/Toast.module.css +334 -0
- package/assets/components/Toast/Toast.tsx +310 -0
- package/assets/components/Toast/index.ts +16 -0
- package/assets/components/Toolbar/Toolbar.module.css +135 -0
- package/assets/components/Toolbar/Toolbar.tsx +187 -0
- package/assets/components/Toolbar/index.ts +7 -0
- package/assets/components/Tooltip/Tooltip.module.css +52 -0
- package/assets/components/Tooltip/Tooltip.tsx +341 -0
- package/assets/components/Tooltip/index.ts +2 -0
- package/assets/components/TopLoader/TopLoader.module.css +65 -0
- package/assets/components/TopLoader/TopLoader.tsx +58 -0
- package/assets/components/TopLoader/index.ts +2 -0
- package/assets/components/Topbar/Topbar.module.css +54 -0
- package/assets/components/Topbar/Topbar.tsx +102 -0
- package/assets/components/Topbar/index.ts +2 -0
- package/assets/components/TreeNav/TreeNav.module.css +33 -0
- package/assets/components/TreeNav/TreeNav.tsx +130 -0
- package/assets/components/TreeNav/index.ts +2 -0
- package/assets/components/UserMessage/UserMessage.module.css +47 -0
- package/assets/components/UserMessage/UserMessage.tsx +66 -0
- package/assets/components/UserMessage/index.ts +2 -0
- package/assets/components/_cn.ts +3 -0
- package/assets/components/_color.ts +75 -0
- package/assets/components/_data.ts +608 -0
- package/assets/components/_rowInteraction.ts +16 -0
- package/assets/components/_utils.css +135 -0
- package/assets/components/app-shell.css +17 -0
- package/assets/components/axisOptions.ts +17 -0
- package/assets/components/component-registry.json +1063 -0
- package/assets/components/index.ts +118 -0
- package/assets/components/materialScope.tsx +11 -0
- package/assets/components/reset.css +78 -0
- package/assets/components/themeBootScript.ts +125 -0
- package/assets/components/tokens.css +1275 -0
- package/assets/components/useChartEntrance.ts +119 -0
- package/assets/prompts/ASSEMBLY.md +72 -0
- package/assets/prompts/CASCADE.md +49 -0
- package/assets/prompts/CATALOG.md +141 -0
- package/assets/prompts/FEEDBACK_PROCESS.md +19 -0
- package/assets/prompts/GUIDE.md +307 -0
- package/assets/prompts/MEMORY.md +202 -0
- package/assets/prompts/OVERRIDE.md +30 -0
- package/assets/prompts/PRINCIPLES.md +128 -0
- package/assets/prompts/SLOTS.md +194 -0
- package/assets/prompts/WORKFLOW_DESIGN.md +132 -0
- package/assets/prompts/axes/density.md +42 -0
- package/assets/prompts/axes/font.md +35 -0
- package/assets/prompts/axes/icon.md +59 -0
- package/assets/prompts/axes/material.md +40 -0
- package/assets/prompts/axes/mode.md +52 -0
- package/assets/prompts/axes/motion.md +77 -0
- package/assets/prompts/axes/palette.md +51 -0
- package/assets/prompts/axes/shape.md +41 -0
- package/assets/prompts/axes/voice.md +57 -0
- package/assets/prompts/brand-sets/_SCHEMA.md +27 -0
- package/assets/prompts/components/README.md +84 -0
- package/assets/prompts/components/_variants.md +86 -0
- package/assets/prompts/components/accordion.md +151 -0
- package/assets/prompts/components/ai-message.md +53 -0
- package/assets/prompts/components/app-frame.md +141 -0
- package/assets/prompts/components/attachment-item.md +89 -0
- package/assets/prompts/components/attachment-thumb.md +54 -0
- package/assets/prompts/components/avatar-upload.md +62 -0
- package/assets/prompts/components/avatar.md +106 -0
- package/assets/prompts/components/badge.md +58 -0
- package/assets/prompts/components/breadcrumb.md +124 -0
- package/assets/prompts/components/bubble.md +61 -0
- package/assets/prompts/components/button-group.md +35 -0
- package/assets/prompts/components/button.md +133 -0
- package/assets/prompts/components/calendar.md +151 -0
- package/assets/prompts/components/callout.md +98 -0
- package/assets/prompts/components/canvas-edge.md +67 -0
- package/assets/prompts/components/canvas-node.md +80 -0
- package/assets/prompts/components/canvas.md +82 -0
- package/assets/prompts/components/card.md +167 -0
- package/assets/prompts/components/chart-bar.md +77 -0
- package/assets/prompts/components/chart-pie.md +63 -0
- package/assets/prompts/components/chart-radar.md +56 -0
- package/assets/prompts/components/chart-radial.md +56 -0
- package/assets/prompts/components/chart.md +129 -0
- package/assets/prompts/components/chat-input.md +103 -0
- package/assets/prompts/components/checkbox-card.md +53 -0
- package/assets/prompts/components/checkbox.md +121 -0
- package/assets/prompts/components/chip.md +163 -0
- package/assets/prompts/components/code-block.md +95 -0
- package/assets/prompts/components/code.md +62 -0
- package/assets/prompts/components/color-area.md +95 -0
- package/assets/prompts/components/color-field.md +108 -0
- package/assets/prompts/components/color-picker.md +173 -0
- package/assets/prompts/components/color-slider.md +108 -0
- package/assets/prompts/components/color-swatch-picker.md +96 -0
- package/assets/prompts/components/color-swatch.md +85 -0
- package/assets/prompts/components/combobox.md +35 -0
- package/assets/prompts/components/command-palette.md +194 -0
- package/assets/prompts/components/comment.md +72 -0
- package/assets/prompts/components/context-menu.md +153 -0
- package/assets/prompts/components/control-group.md +67 -0
- package/assets/prompts/components/data-table.md +90 -0
- package/assets/prompts/components/date-picker.md +156 -0
- package/assets/prompts/components/disclosure.md +55 -0
- package/assets/prompts/components/drawer.md +151 -0
- package/assets/prompts/components/dropdown-menu.md +167 -0
- package/assets/prompts/components/empty-state.md +74 -0
- package/assets/prompts/components/event-chip.md +123 -0
- package/assets/prompts/components/event-list-item.md +112 -0
- package/assets/prompts/components/file-icon.md +83 -0
- package/assets/prompts/components/file-upload.md +35 -0
- package/assets/prompts/components/gallery-item.md +164 -0
- package/assets/prompts/components/generated-image.md +85 -0
- package/assets/prompts/components/hint.md +94 -0
- package/assets/prompts/components/icon-button.md +99 -0
- package/assets/prompts/components/icon.md +101 -0
- package/assets/prompts/components/input.md +134 -0
- package/assets/prompts/components/kanban.md +172 -0
- package/assets/prompts/components/list-item.md +334 -0
- package/assets/prompts/components/menu-item.md +252 -0
- package/assets/prompts/components/message-actions.md +63 -0
- package/assets/prompts/components/message-quote.md +34 -0
- package/assets/prompts/components/message-sources.md +46 -0
- package/assets/prompts/components/message-state.md +61 -0
- package/assets/prompts/components/message-table.md +42 -0
- package/assets/prompts/components/metric-card.md +85 -0
- package/assets/prompts/components/mini-calendar.md +72 -0
- package/assets/prompts/components/modal.md +236 -0
- package/assets/prompts/components/multi-select.md +31 -0
- package/assets/prompts/components/onboarding.md +55 -0
- package/assets/prompts/components/page-header.md +170 -0
- package/assets/prompts/components/pagination.md +99 -0
- package/assets/prompts/components/progress-bar.md +85 -0
- package/assets/prompts/components/quotation-bar.md +44 -0
- package/assets/prompts/components/radio-card.md +62 -0
- package/assets/prompts/components/radio.md +56 -0
- package/assets/prompts/components/segmented-chart.md +79 -0
- package/assets/prompts/components/select.md +146 -0
- package/assets/prompts/components/shortcut.md +81 -0
- package/assets/prompts/components/sidebar.md +537 -0
- package/assets/prompts/components/skeleton.md +44 -0
- package/assets/prompts/components/slider.md +111 -0
- package/assets/prompts/components/spinner.md +124 -0
- package/assets/prompts/components/stepper.md +122 -0
- package/assets/prompts/components/switch.md +108 -0
- package/assets/prompts/components/tab-strip.md +163 -0
- package/assets/prompts/components/table-cell.md +67 -0
- package/assets/prompts/components/table-header.md +181 -0
- package/assets/prompts/components/table-row-edit.md +144 -0
- package/assets/prompts/components/table-row-select.md +90 -0
- package/assets/prompts/components/table-row.md +184 -0
- package/assets/prompts/components/table-toolbar.md +103 -0
- package/assets/prompts/components/tabs.md +136 -0
- package/assets/prompts/components/tag.md +54 -0
- package/assets/prompts/components/textarea.md +114 -0
- package/assets/prompts/components/time-picker.md +87 -0
- package/assets/prompts/components/timeline-view.md +129 -0
- package/assets/prompts/components/toast.md +155 -0
- package/assets/prompts/components/toolbar.md +99 -0
- package/assets/prompts/components/tooltip.md +94 -0
- package/assets/prompts/components/top-loader.md +64 -0
- package/assets/prompts/components/topbar.md +186 -0
- package/assets/prompts/components/tree-nav.md +77 -0
- package/assets/prompts/components/user-message.md +50 -0
- package/assets/prompts/design-examples/README.md +57 -0
- package/assets/prompts/design-examples/catalog.json +1 -0
- package/assets/prompts/primitives/emerge.md +43 -0
- package/assets/prompts/primitives/fade.md +31 -0
- package/assets/prompts/primitives/mobile.md +53 -0
- package/assets/prompts/primitives/scale.md +32 -0
- package/assets/prompts/primitives/scroll.md +170 -0
- package/assets/prompts/primitives/slide.md +31 -0
- package/assets/prompts/recipes/README.md +104 -0
- package/assets/prompts/recipes/card-row.md +39 -0
- package/assets/prompts/recipes/form-footer.md +76 -0
- package/assets/prompts/recipes/meta-line.md +61 -0
- package/assets/prompts/recipes/page-banner.md +121 -0
- package/assets/prompts/recipes/page-header.md +107 -0
- package/assets/prompts/recipes/section-header.md +90 -0
- package/assets/prompts/templates/README.md +9 -0
- package/assets/prompts/templates/ains.md +631 -0
- package/assets/prompts/templates/aurora.md +440 -0
- package/assets/prompts/templates/glass-button.md +337 -0
- package/assets/prompts/templates/minimal.md +209 -0
- package/assets/prompts/templates/workspace.md +346 -0
- package/assets/prompts/themes/_SCHEMA.md +135 -0
- package/assets/prompts/themes/_TEMPLATE.md +73 -0
- package/assets/prompts/themes/expressive.md +118 -0
- package/assets/prompts/themes/pure.md +87 -0
- package/assets/prompts/themes/spare.md +73 -0
- package/assets/prompts/tokens/breakpoint.md +29 -0
- package/assets/prompts/tokens/color.md +105 -0
- package/assets/prompts/tokens/material.md +51 -0
- package/assets/prompts/tokens/radius.md +45 -0
- package/assets/prompts/tokens/shadow.md +35 -0
- package/assets/prompts/tokens/spacing.md +96 -0
- package/assets/prompts/tokens/typography.md +89 -0
- package/assets/prompts/tokens/z-index.md +35 -0
- package/assets/prompts/use-cases/chart-chart-area.md +1334 -0
- package/assets/prompts/use-cases/chart-chart-bar.md +1886 -0
- package/assets/prompts/use-cases/chart-chart-pie.md +1031 -0
- package/assets/prompts/use-cases/chart-chart-radar.md +785 -0
- package/assets/prompts/use-cases/chart-chart-radial.md +988 -0
- package/assets/prompts/use-cases/chart-segmented-chart.md +262 -0
- package/assets/prompts/use-cases/data-comment.md +360 -0
- package/assets/prompts/use-cases/data-data-table.md +249 -0
- package/assets/prompts/use-cases/data-list-item.md +1056 -0
- package/assets/prompts/use-cases/data-metric-card.md +673 -0
- package/assets/prompts/use-cases/data-table-row.md +966 -0
- package/assets/prompts/use-cases/data-table-toolbar.md +481 -0
- package/assets/prompts/use-cases/feedback-drawer.md +1163 -0
- package/assets/prompts/use-cases/feedback-progress-bar.md +427 -0
- package/assets/prompts/use-cases/general-toolbar.md +854 -0
- package/assets/prompts/use-cases/general-tooltip.md +652 -0
- package/assets/prompts/use-cases/input-checkbox.md +443 -0
- package/assets/prompts/use-cases/structure-card.md +603 -0
- package/assets/prompts/use-cases/structure-page-header.md +755 -0
- package/assets/prompts/use-cases/structure-sidebar.md +1132 -0
- package/assets/prompts/use-cases/structure-topbar.md +1200 -0
- package/assets/public/expressive.png +0 -0
- package/assets/public/ovenn-wordmark.svg +19 -0
- package/assets/public/pure.png +0 -0
- package/assets/public/spare.png +0 -0
- package/assets/skills/ovenn/SKILL.md +12 -0
- package/assets/skills/ovenn-component/SKILL.md +12 -0
- package/assets/skills/ovenn-page/SKILL.md +12 -0
- package/assets/skills/ovenn-theme/SKILL.md +12 -0
- package/assets/skills/ovenn-validate/SKILL.md +14 -0
- package/assets/skills/ovenn-validate/fixtures/clean/Clean.module.css +12 -0
- package/assets/skills/ovenn-validate/fixtures/clean/Clean.tsx +9 -0
- package/assets/skills/ovenn-validate/scripts/lib/component-usage.js +112 -0
- package/assets/skills/ovenn-validate/scripts/lib/source-graph.js +15 -0
- package/assets/skills/ovenn-validate/scripts/lib/source-utils.mjs +25 -0
- package/assets/skills/ovenn-validate/scripts/lib/source-utils.test.mjs +52 -0
- package/assets/skills/ovenn-validate/scripts/rules/doc-sync.mjs +151 -0
- package/assets/skills/ovenn-validate/scripts/rules/doc-sync.test.mjs +91 -0
- package/assets/skills/ovenn-validate/scripts/rules/ghost-tokens.mjs +69 -0
- package/assets/skills/ovenn-validate/scripts/rules/ghost-tokens.test.mjs +52 -0
- package/assets/skills/ovenn-validate/scripts/rules/hardcoded.mjs +145 -0
- package/assets/skills/ovenn-validate/scripts/rules/hardcoded.test.mjs +83 -0
- package/assets/skills/ovenn-validate/scripts/rules/memory-rules.mjs +252 -0
- package/assets/skills/ovenn-validate/scripts/rules/memory-rules.test.mjs +131 -0
- package/assets/skills/ovenn-validate/scripts/validate.mjs +169 -0
- package/assets/skills/ovenn-wireframe/SKILL.md +12 -0
- package/bin/ovenn.js +85 -0
- package/package.json +143 -4
- package/src/commands/info.js +217 -0
- package/src/commands/init.js +386 -0
- package/src/commands/update.js +65 -0
- package/src/utils/agents.js +83 -0
- package/src/utils/assets.js +51 -0
- package/src/utils/client-bridges.js +32 -0
- package/src/utils/component-usage.js +112 -0
- package/src/utils/deps.js +59 -0
- package/src/utils/design-examples.js +101 -0
- package/src/utils/design-workflow.js +155 -0
- package/src/utils/detect.js +59 -0
- package/src/utils/diff.js +52 -0
- package/src/utils/doctor.js +47 -0
- package/src/utils/hash.js +16 -0
- package/src/utils/launch.js +94 -0
- package/src/utils/log.js +41 -0
- package/src/utils/managed-assets.js +50 -0
- package/src/utils/mcp-client.js +47 -0
- package/src/utils/meta.js +73 -0
- package/src/utils/patch.js +334 -0
- package/src/utils/prompt.js +28 -0
- package/src/utils/source-graph.js +15 -0
- package/src/utils/update-transaction.js +79 -0
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
# TabStrip
|
|
2
|
+
|
|
3
|
+
### 원칙
|
|
4
|
+
브라우저·에디터·디자인툴 상단에 늘어선 **"열려있는 문서/파일 탭"** 전용 컴포넌트. 각 탭은 **독립 문서·독립 라우트**를 가리킨다 — Chrome의 창 탭, Figma의 파일 탭, VSCode의 에디터 탭이 전부 같은 자리. 이름은 Chromium/VSCode/Telerik이 공통으로 쓰는 업계 표준어 `TabStrip`.
|
|
5
|
+
|
|
6
|
+
[[components/tabs]]와 역할이 **완전히 다르다**. Tabs는 "같은 화면 안 섹션 전환"(URL `?tab=activity`), TabStrip은 "열린 N개 중 하나 선택"(각 탭 = 라우트). 섞어 쓰지 말 것 — 한 화면에 TabStrip이 있고 그 아래 Tabs가 있는 건 OK (브라우저 탭 밑에 설정 섹션 탭 있는 꼴).
|
|
7
|
+
|
|
8
|
+
활성 표시는 **pill·underline이 아니라 bg-muted 배경 상시 유지** — hover 색(bg-muted)이 활성 탭에서 lock된 꼴. "hover되는 자리가 현재 자리"라는 직관.
|
|
9
|
+
|
|
10
|
+
### 발동 트리거 — 다중 탭 UI를 원할 때
|
|
11
|
+
사용자가 **"브라우저처럼 탭 열기"**, **"노션처럼 다중 탭"**, **"Figma/VSCode처럼 파일 탭"**, **"Chrome 탭 UI"**, **"탭으로 여러 문서/페이지 열기"** 등을 요구하면 **TabStrip이 정답**. 수제 조립·`<Tabs>` 전용화 하지 말 것. 신호 체크:
|
|
12
|
+
- 사용자가 **"열어두기"**·**"탭 추가"**·**"X 버튼으로 닫기"** 언급 → TabStrip (각 탭 = 열린 문서)
|
|
13
|
+
- 사용자가 **"섹션 전환"**·**"뷰 바꾸기"**·**"필터 토글"** 언급 → [[components/tabs]] (한 화면 안 뷰 전환)
|
|
14
|
+
- 둘 다 필요하면 **TabStrip(상단, 문서 탭) → PageHeader → Tabs(그 안 섹션)** 순으로 중첩. 한 화면에 TabStrip도 되고 Tabs도 되는 자리면 **TabStrip이 바깥**.
|
|
15
|
+
|
|
16
|
+
소비처 세팅은 보통 **라우팅 상태 + 열린 문서 배열**:
|
|
17
|
+
```tsx
|
|
18
|
+
const [docs, setDocs] = useState<Doc[]>(openDocs);
|
|
19
|
+
const [activeId, setActiveId] = useState<string>(openDocs[0].id);
|
|
20
|
+
// closeDoc, addDoc 핸들러는 소비처가 관리 (TabStrip은 상태 안 가짐).
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
### Do
|
|
24
|
+
- 탭 라벨은 sm/md 크기에 맞는 label 줄 높이를 사용해 가로 스크롤·marquee 마스크 안에서 글자 하단이 잘리지 않게 한다.
|
|
25
|
+
- **각 탭 = 독립 문서/라우트**. 라우팅이나 외부 상태 저장소에 반영 (`?doc=portfolio` 또는 workspace store).
|
|
26
|
+
- **leadingIcon에 자유롭게** — [[components/icon]], `<img>`(파일 썸네일), `<svg>`(브랜드 로고) 전부 ReactNode로 받는다. Figma 파일 탭의 작은 썸네일, VSCode 파일 아이콘 패턴.
|
|
27
|
+
- **닫기는 `closable` prop으로**. x 버튼은 `absolute`로 오른쪽에 띄워 **왼쪽에서 bg-muted 그라데이션으로 라벨 위를 덮으며 등장** — Chrome 긴 탭 패턴. **hover 시에만** fade-in (활성 탭도 hover 아니면 숨김) — 평상시 시각 노이즈 최소화.
|
|
28
|
+
- **긴 라벨은 hover 시 marquee loop** — 라벨이 overflow되면 짧은 지연 후 왼쪽으로 **전광판처럼 끊김 없이** 흐른다 (텍스트 복제본이 뒤를 이어받음). ResizeObserver로 overflow 감지, 짧은 라벨은 자동으로 안 움직임. `prefers-reduced-motion`에선 비활성.
|
|
29
|
+
- **trailing slot은 자유 조립**. `trailing` prop에 ReactNode를 넣으면 탭 묶음 오른쪽에 자리잡음 — `<IconButton icon={<Icon name="plus" />} />` (새 탭), `<IconButton icon={<Icon name="dots-three" />} />` (더보기), 또는 아무것도 안 넣기. TabStrip hover·focus-within 시에만 fade-in.
|
|
30
|
+
- **자리 중립** — Topbar 바로 아래 2번째 줄에 flush로 두거나, Topbar의 center slot에 넣는다. 소비처가 자리를 결정.
|
|
31
|
+
- **키보드**: ← → Home End 지원. Enter/Space로 선택. 활성 탭만 `tabIndex=0` (roving).
|
|
32
|
+
- **라벨은 1줄 cap** — `max-width: 20ch`(md), `16ch`(sm)에서 ellipsis. 문서명이 길면 Tooltip으로 보완.
|
|
33
|
+
|
|
34
|
+
### Don't
|
|
35
|
+
- **섹션 전환**에 TabStrip 쓰지 말 것 — 그건 [[components/tabs]] underline/segmented/text. 역할 뒤집으면 "탭 안에 탭" 혼동.
|
|
36
|
+
- **활성 색을 `--primary`로 덮지 않는다** — 활성은 `--fg-strong` + `--bg-muted` 무채. 브랜드 컬러는 CTA와 위계가 충돌 ([[components/tabs]]와 동일 원칙).
|
|
37
|
+
- **라벨 가로 폭을 숫자(px)로 고정 금지** — 폰트 축이 바뀌면 깨짐. `ch` 단위 사용.
|
|
38
|
+
- **x 아이콘을 상시 노출하지 말 것** — 시각 노이즈. hover·active에만, 활성 탭은 늘 보이는 게 맞다.
|
|
39
|
+
- **`<svg>` 인라인 금지** — leadingIcon은 Icon·이미지·브랜드 svg는 OK지만 "아이콘용 raw svg"는 [[feedback_no_inline_svg]].
|
|
40
|
+
- **trailing에 생짜 `<button>` 넣지 말 것** — Button·IconButton·DropdownMenu 트리거 등 Ovenn 컴포넌트 경유. 자리별 간격·디바이더는 wrapper가 담당하니 소비처는 버튼만 넘김.
|
|
41
|
+
- **탭 사이에 가운뎃점·대시 구분자 금지** — [[feedback_no_bullet_separator]]. 탭 자체가 구분된 블록.
|
|
42
|
+
|
|
43
|
+
### Fallback
|
|
44
|
+
자리 애매하면 **Topbar 아래 2번째 줄**(shell 2단), size 애매하면 **md** (shell chrome에서도 sm보다 md가 안정적 — Topbar와 같은 리듬).
|
|
45
|
+
|
|
46
|
+
### 관련
|
|
47
|
+
- [[components/tabs]] — 역할 분리. Tabs=섹션 전환, TabStrip=문서 전환
|
|
48
|
+
- [[components/topbar]] — TabStrip이 가장 자주 조립되는 shell. 아래 줄 또는 center slot
|
|
49
|
+
- [[components/icon]] · [[components/file-icon]] — leadingIcon 자리 (파일 타입 썸네일로 FileIcon 자주 조합)
|
|
50
|
+
- [[components/tooltip]] — 라벨이 ellipsis될 때 전체 문서명 노출
|
|
51
|
+
- [[axes/density]] — `--control-h-*`가 탭 높이에 매핑
|
|
52
|
+
- [[axes/shape]] — 탭 radius가 Shape 축에 반응
|
|
53
|
+
- [[axes/motion]] — hover·active 전환 duration
|
|
54
|
+
- [[tokens/color]] — `--bg-muted`(활성·hover 배경), `--fg-muted` → `--fg-strong` 대비
|
|
55
|
+
|
|
56
|
+
### Props 시그니처
|
|
57
|
+
```tsx
|
|
58
|
+
<TabStrip
|
|
59
|
+
variant="ghost | soft | segmented" // default: ghost
|
|
60
|
+
size="sm | md" // default: md
|
|
61
|
+
value={string} // controlled
|
|
62
|
+
defaultValue={string} // uncontrolled 초기값
|
|
63
|
+
onValueChange={(v) => void}
|
|
64
|
+
trailing={<ReactNode>} // 오른쪽 slot. IconButton·DropdownMenu 등 자유 조립
|
|
65
|
+
>
|
|
66
|
+
<TabStrip.Tab
|
|
67
|
+
value="revana"
|
|
68
|
+
leadingIcon={<Icon name="file-text" />}
|
|
69
|
+
closable
|
|
70
|
+
onClose={() => removeTab("revana")}
|
|
71
|
+
closeLabel="탭 닫기"
|
|
72
|
+
>
|
|
73
|
+
Revana (copy 2)
|
|
74
|
+
</TabStrip.Tab>
|
|
75
|
+
<TabStrip.Tab
|
|
76
|
+
value="portfolio"
|
|
77
|
+
leadingIcon={<img src="/figma.svg" alt="" />}
|
|
78
|
+
closable
|
|
79
|
+
onClose={() => removeTab("portfolio")}
|
|
80
|
+
>
|
|
81
|
+
Portfolio
|
|
82
|
+
</TabStrip.Tab>
|
|
83
|
+
</TabStrip>
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
### 상태 매트릭스
|
|
87
|
+
| 상태 | 배경 | 라벨 색 | leading opacity | x + fade | 라벨 marquee |
|
|
88
|
+
|---|---|---|---|---|---|
|
|
89
|
+
| default (inactive) | transparent | `--fg-muted` | 0.75 | opacity 0 | 정지 |
|
|
90
|
+
| hover (inactive) | `--bg-muted` | `--fg` | 1 | fade-in | 지연 후 loop (오버플로우 시) |
|
|
91
|
+
| active (no hover) | `--bg-muted` 상시 | `--fg-strong` | 1 | opacity 0 | 정지 |
|
|
92
|
+
| active + hover | `--bg-muted` | `--fg-strong` | 1 | fade-in | 지연 후 loop (오버플로우 시) |
|
|
93
|
+
| disabled | transparent | opacity 0.5 | 0.5 | opacity 0 | 정지 |
|
|
94
|
+
| focus-visible | — | — | — | `--ring-shadow` | — |
|
|
95
|
+
|
|
96
|
+
### Variant 가이드
|
|
97
|
+
| variant | 결 | 언제 |
|
|
98
|
+
|---|---|---|
|
|
99
|
+
| `ghost` (default) | 투명 + hover/active bg | shell chrome 기본. 가장 가벼움. 주변 UI와 조용히 어울림. |
|
|
100
|
+
| `soft` | 모든 탭에 연한 bg 상시, 활성이 조금 더 진함 | 탭이 **독립 블록**으로 보여야 할 때. 선택 자리가 또렷. Button 그룹과 리듬 맞음. |
|
|
101
|
+
| `segmented` | 탭 사이 세로 hairline으로 칸 구분 | 브라우저·에디터의 **문서 탭** 표준. 탭 경계가 또렷하고 전통적. |
|
|
102
|
+
|
|
103
|
+
### Size 가이드
|
|
104
|
+
| size | 언제 |
|
|
105
|
+
|---|---|
|
|
106
|
+
| `sm` | 밀도 승부처 (사이드바 내부 docked, 좁은 패널) |
|
|
107
|
+
| `md` | 기본. Topbar 아래 shell 2번째 줄 |
|
|
108
|
+
|
|
109
|
+
### 조합 예시
|
|
110
|
+
|
|
111
|
+
```tsx
|
|
112
|
+
// Topbar 아래 줄 (Figma·Chrome 패턴)
|
|
113
|
+
<Topbar>
|
|
114
|
+
<Topbar.Leading><MenuItem avatar={...} align="center" role="button">…</MenuItem></Topbar.Leading>
|
|
115
|
+
<Topbar.Trailing>…</Topbar.Trailing>
|
|
116
|
+
</Topbar>
|
|
117
|
+
<div className="shell-row-2">
|
|
118
|
+
<TabStrip
|
|
119
|
+
value={active}
|
|
120
|
+
onValueChange={setActive}
|
|
121
|
+
trailing={
|
|
122
|
+
<IconButton
|
|
123
|
+
variant="ghost"
|
|
124
|
+
icon={<Icon name="plus" />}
|
|
125
|
+
aria-label="새 문서"
|
|
126
|
+
onClick={handleNewDoc}
|
|
127
|
+
/>
|
|
128
|
+
}
|
|
129
|
+
>
|
|
130
|
+
{docs.map((d) => (
|
|
131
|
+
<TabStrip.Tab
|
|
132
|
+
key={d.id}
|
|
133
|
+
value={d.id}
|
|
134
|
+
leadingIcon={<FileIcon ext={d.ext} />}
|
|
135
|
+
closable
|
|
136
|
+
onClose={() => closeDoc(d.id)}
|
|
137
|
+
>
|
|
138
|
+
{d.title}
|
|
139
|
+
</TabStrip.Tab>
|
|
140
|
+
))}
|
|
141
|
+
</TabStrip>
|
|
142
|
+
</div>
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
```tsx
|
|
146
|
+
// Topbar center slot (탭 2~4개로 적을 때)
|
|
147
|
+
<Topbar>
|
|
148
|
+
<Topbar.Leading><MenuItem avatar={...} align="center" role="button">…</MenuItem></Topbar.Leading>
|
|
149
|
+
<Topbar.Center>
|
|
150
|
+
<TabStrip value={view} onValueChange={setView} size="sm">
|
|
151
|
+
<TabStrip.Tab value="design">Design</TabStrip.Tab>
|
|
152
|
+
<TabStrip.Tab value="code">Code</TabStrip.Tab>
|
|
153
|
+
<TabStrip.Tab value="specs">Specs</TabStrip.Tab>
|
|
154
|
+
</TabStrip>
|
|
155
|
+
</Topbar.Center>
|
|
156
|
+
<Topbar.Trailing>…</Topbar.Trailing>
|
|
157
|
+
</Topbar>
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
<!-- component-contract -->
|
|
161
|
+
```json
|
|
162
|
+
{"roles":["tab-strip"],"native":[],"hints":[],"requires":["ThemeController"]}
|
|
163
|
+
```
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# TableCell
|
|
2
|
+
|
|
3
|
+
### 원칙
|
|
4
|
+
[[components/table-row]]·[[components/table-row-edit]]의 셀 안쪽에 넣는 콘텐츠 포맷터 세트. Text·Number·Image·Badge·Avatar·Meter 6종을 제공한다. 폭·정렬·패딩은 Row가, 콘텐츠 표현은 포맷터가 담당한다.
|
|
5
|
+
|
|
6
|
+
### Do
|
|
7
|
+
- 첫·마지막 셀을 포함한 좌우 `--space-2_5` 패딩은 Header/Row가 관리한다. 포맷터에 중복 적용하지 않는다.
|
|
8
|
+
- 일반 텍스트는 `TableCellText`, 아이콘을 함께 보이려면 `icon={<Icon ... />}`을 사용한다. 아이콘은 장식으로 처리되므로 의미는 텍스트로 전달한다.
|
|
9
|
+
- 숫자는 `TableCellNumber`의 `tabular-nums`와 Intl 포맷을 사용한다.
|
|
10
|
+
- 상태는 `TableCellTag`를 사용한다. 공통 [[components/tag]]를 그대로 조합하며 기본 `size="md"`, `variant="soft"`, `shape="rounded"`다 — 표/목록 셀에서 알약이 모여 "알약 바다"가 되지 않도록 셀 안 Tag는 rounded를 기본으로 쓴다. 필요하면 variant를 `outline`으로 바꿔 fill 없는 테두리 라벨로 조립한다.
|
|
11
|
+
- Avatar는 label/sublabel로 이름과 보조 정보를 구분한다.
|
|
12
|
+
- Meter는 바를 주 정보로, 오른쪽 수치를 `--text-2xs`·`--fg-subtle`의 보조 정보로 표시한다.
|
|
13
|
+
- 행 이동은 TableRow의 href/onClick을 사용한다. 셀 안 보조 링크가 필요하면 기존 링크/버튼 부품을 조합하고 행 이벤트와 분리한다.
|
|
14
|
+
|
|
15
|
+
### Don't
|
|
16
|
+
- 셀 너비나 좌우 패딩을 포맷터에서 중복 지정하지 않는다.
|
|
17
|
+
- 아이콘만으로 텍스트의 의미를 대체하지 않는다.
|
|
18
|
+
- 표시 전용 셀에 불필요한 상호작용을 추가하지 않는다.
|
|
19
|
+
- TableCellIcon·TableCellLink는 제공하지 않는다. 아이콘은 Text의 icon 슬롯으로 조합한다.
|
|
20
|
+
|
|
21
|
+
### Fallback
|
|
22
|
+
콘텐츠가 일반 문자열이면 TableCellText의 default 톤을 사용한다.
|
|
23
|
+
|
|
24
|
+
### 관련
|
|
25
|
+
- [[components/table-row]] · [[components/table-row-edit]] · [[components/table-row-select]] — 행 레이아웃과 상호작용
|
|
26
|
+
- [[components/table-header]] — 컬럼 정의
|
|
27
|
+
- [[components/icon]] · [[components/badge]] · [[components/avatar]] — 실제 재사용 부품
|
|
28
|
+
|
|
29
|
+
### Props 시그니처
|
|
30
|
+
```tsx
|
|
31
|
+
<TableCellText tone="default | strong | muted | subtle" icon={<Icon name="article" size={16} />}>
|
|
32
|
+
문서 제목
|
|
33
|
+
</TableCellText>
|
|
34
|
+
<TableCellNumber value={1234} format={{ maximumFractionDigits: 0 }} locale="ko-KR" unit="건" />
|
|
35
|
+
<TableCellImage src={src} alt="제품" size={24} shape="rounded" label="제품명" />
|
|
36
|
+
<TableCellTag status="success" variant="soft" size="md">활성</TableCellTag>
|
|
37
|
+
<TableCellAvatar name="김희영" label="김희영" sublabel="디자이너" status="online" />
|
|
38
|
+
<TableCellMeter value={72} tone="success" labelPosition="right" format={(value) => `${value}%`} />
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### 서브 컴포넌트 선택 가이드
|
|
42
|
+
| 셀 콘텐츠 | 사용 |
|
|
43
|
+
|---|---|
|
|
44
|
+
| 일반 텍스트·아이콘과 텍스트 | TableCellText, 선택적 icon 슬롯 |
|
|
45
|
+
| 금액·개수·비율 | TableCellNumber |
|
|
46
|
+
| 썸네일과 라벨 | TableCellImage |
|
|
47
|
+
| 단일 상태·여러 메타 라벨 | TableCellTag (공통 Tag 조합) |
|
|
48
|
+
| 사람·팀 식별 | TableCellAvatar |
|
|
49
|
+
| 진행률·사용량 바 | TableCellMeter |
|
|
50
|
+
|
|
51
|
+
### 조합 예시
|
|
52
|
+
```tsx
|
|
53
|
+
const columns: TableRowColumn<User>[] = [
|
|
54
|
+
{ key: "name", label: "이름", flex: true, minWidth: 180,
|
|
55
|
+
render: (user) => <TableCellText icon={<Icon name="user" size={16} />}>{user.name}</TableCellText> },
|
|
56
|
+
{ key: "status", label: "상태", width: 120,
|
|
57
|
+
render: (user) => <TableCellTag status={user.active ? "success" : "warning"}>{user.active ? "활성" : "휴면"}</TableCellTag> },
|
|
58
|
+
];
|
|
59
|
+
<TableRow columns={columns} data={user} />
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
<!-- component-contract -->
|
|
63
|
+
```json
|
|
64
|
+
{"roles":["table-cell"],"native":[],"hints":[],"requires":["ThemeController"]}
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
`TableCellTag`는 분류·텍스트 상태를 렌더링한다. 기존 `TableCellBadge`는 호환용으로 유지하며 일반 텍스트 상태는 내부 Tag로 전달하고 dot/circle 카운트만 Badge로 유지한다.
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
# TableHeader
|
|
2
|
+
|
|
3
|
+
### 원칙
|
|
4
|
+
데이터 그리드 상단의 columnheader 행. 시각 스타일(`line`/`divided`/`plate`/`grid`) × 두 기능(`resizable`/`reorderable`) 각각 on/off = 총 16조합을 하나의 컴포넌트로 담는다. 데이터 로딩·정렬 로직·행 렌더는 상위 Table이 책임지고, 이 컴포넌트는 columnheader 시각·상호작용만 담당한다.
|
|
5
|
+
|
|
6
|
+
`reorderable=on`이면 각 셀이 hover 배경 + `cursor: grab`으로 반응하고, `off`면 hover 반응이 사라진다. reorder는 @dnd-kit/sortable로 처리해 키보드/터치도 지원한다.
|
|
7
|
+
|
|
8
|
+
### Do
|
|
9
|
+
- **resize 핸들은 불투명**: 셀/핸들 hover 모두 opacity=1로 표시하고 grip을 구분선보다 위에 둔다. 핸들 뒤로 tick/grid 경계가 비치지 않게 한다.
|
|
10
|
+
- **짧은 구분선은 디자인 선택**: `variant="divided"`는 짧은 세로선을 항상 표시한다. resizable/reorderable 여부와 독립적이며 `line`은 resizable을 켜도 구분선이 생기지 않는다. resize 핸들은 기존대로 resizable에 따라 동작한다.
|
|
11
|
+
- **편집 그리드 헤더**: `variant="grid"`는 line의 열 폭·여백·상태를 유지하면서 상단 가로선과 전체 높이 세로 구분선을 추가한다. `TableRowEdit`와 조합한다. resize 여부와 관계없이 선이 표시되며 선택/고정 열 경계는 이중으로 그리지 않는다. 읽기 행의 variant는 line/plate를 유지한다.
|
|
12
|
+
- 표 전체를 둥글게 감싸려면 `DataTable variant="contained"`를 사용한다. `plate`는 헤더 자체 형태다. 공유 표면을 연결할 때 `--table-header-bg`는 line 헤더와 선택/고정 셀의 배경을 함께 바꾼다.
|
|
13
|
+
- **좌우 여백 통일**: `line`/`divided`/`plate`/`grid`, 선택·편집 모드 모두 첫·마지막 셀의 좌우 `--space-2_5` 패딩을 유지한다. 선택 체크박스도 좌우 여백을 갖는다. 읽기 행의 선택 체크박스 영역에는 세로 구분선을 그리지 않는다. 패딩은 Header/Row가 관리하고 `TableCell*` 콘텐츠 포맷터에 중복 적용하지 않는다.
|
|
14
|
+
- sortable 헤더 라벨은 키보드 포커스를 받고 Enter/Space로 정렬을 전환한다. 컬럼의 `aria-sort`가 정렬 상태를 전달하며 포커스는 nav ring 토큰으로 표시한다.
|
|
15
|
+
- **variant 선택 기준**: 페이지 표면과 자연스럽게 이어지는 얇은 헤더는 `line`, 카드 안에서 위치가 명확해야 하는 헤더는 `plate`. `line`은 sticky 하단 hairline으로 흐름을 만들고, `plate`는 라운드 컨테이너로 시선을 가둔다.
|
|
16
|
+
- **정렬은 셀별 opt-in**: 컬럼마다 `sortable: true`로 개별 활성화. 정렬 인디케이터는 2-state (`asc` ↔ `desc`) — 라벨 옆 caret이 방향 표시.
|
|
17
|
+
- **컨트롤드 3종은 세트로**: `order`/`widths`/`sort` 중 하나라도 controlled로 넘기면 대응 `on*Change`도 반드시 함께. uncontrolled 사용도 지원(각 상태 내부 보관).
|
|
18
|
+
- **width 최소 하한**: 사용자가 resize로 아무리 줄여도 48px 밑으로는 안 내려간다(컴포넌트가 강제). 컬럼 라벨이 잘리기 시작하는 지점의 안전선.
|
|
19
|
+
- **checkbox 셀은 `selectable` prop**: 셀 순서 재정렬 대상에서 자동 제외되어 항상 맨 앞 고정.
|
|
20
|
+
- **컬럼 매니저 버튼은 `columnManager` prop**: 우측 끝 고정 IconButton (`Icon name="columns"`). show/hide 다이얼로그 트리거용.
|
|
21
|
+
- **sortable + reorderable 공존**: 라벨 클릭(sort)과 드래그(reorder)는 8px pointer 이동 threshold로 자동 분기 — 짧게 누르면 sort, 끌면 reorder.
|
|
22
|
+
|
|
23
|
+
### Don't
|
|
24
|
+
- 이 컴포넌트 안에서 데이터를 정렬하지 않는다. `onSortChange`만 발화하고 정렬은 상위 Table의 책임.
|
|
25
|
+
- variant 시각을 `background`/`border` 직접 지정으로 커스터마이즈하지 않는다 — Palette·Mode 축 스왑이 깨진다. 색이 필요하면 축·프리셋에 정의.
|
|
26
|
+
- resize handle 폭을 CSS로 좁히지 않는다 — 8px 히트 영역이 접근성 최소치.
|
|
27
|
+
- 셀 안에 두 개 이상의 인터랙션 요소(라벨 정렬 + 아이콘 필터 등)를 넣지 않는다. 셀 = 하나의 columnheader.
|
|
28
|
+
- `reorderable=off`에서 hover 배경을 억지로 살리지 않는다 — "이동 불가한데 반응만 있으면" 의미 없는 시각 노이즈.
|
|
29
|
+
- 3-state sort(asc→desc→none)로 확장하지 않는다. 정렬 해제는 "다른 컬럼 클릭"으로 대체 — 클릭당 결과가 명확해야 함.
|
|
30
|
+
|
|
31
|
+
### Fallback
|
|
32
|
+
- variant 애매하면 `line`. 페이지에 자연스럽게 얹히는 기본 형태.
|
|
33
|
+
- resizable/reorderable 애매하면 둘 다 `off`. 나중에 필요하면 켜는 게 안전.
|
|
34
|
+
- sort 초기값 애매하면 `null` (미정렬) — 다만 이후엔 2-state로 고정.
|
|
35
|
+
|
|
36
|
+
### 관련
|
|
37
|
+
- [[components/checkbox]] — `selectable` 셀에서 사용
|
|
38
|
+
- [[components/icon-button]] — `columnManager` 버튼
|
|
39
|
+
- [[components/icon]] — sort caret / column manager icon
|
|
40
|
+
- [[axes/density]] — Density=`compact`일 때 헤더 높이와 셀 padding이 자동으로 좁아짐
|
|
41
|
+
- [[axes/shape]] — `plate` variant의 컨테이너 radius가 Shape 축에 반응
|
|
42
|
+
- [[tokens/color]] — `--hover`(reorderable hover) / `--border`(line tick / hairline) / `--fg-subtle`→`--fg-strong`(sort icon)
|
|
43
|
+
|
|
44
|
+
### Props 시그니처
|
|
45
|
+
```tsx
|
|
46
|
+
type TableHeaderColumn = {
|
|
47
|
+
key: string; // 안정적 id (reorder/width 상태 키)
|
|
48
|
+
label: ReactNode;
|
|
49
|
+
width?: number | string; // px number 또는 CSS 값
|
|
50
|
+
minWidth?: number | string;
|
|
51
|
+
flex?: boolean; // 남은 공간 차지
|
|
52
|
+
sortable?: boolean; // 라벨 옆 sort caret
|
|
53
|
+
align?: "start" | "center" | "end";
|
|
54
|
+
resizable?: boolean; // false면 상위 resizable=true여도 이 column handle 숨김. 기본 true
|
|
55
|
+
movable?: boolean; // false면 상위 reorderable=true여도 이 column drag 불가. 기본 true
|
|
56
|
+
pinned?: "left" | "right"; // 가로스크롤 시 좌/우 끝에 sticky. reorder 자동 제외
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
type TableHeaderSortState = { key: string; direction: "asc" | "desc" } | null;
|
|
60
|
+
|
|
61
|
+
<TableHeader
|
|
62
|
+
variant="line | divided | plate | grid" // default: line
|
|
63
|
+
columns={TableHeaderColumn[]}
|
|
64
|
+
|
|
65
|
+
resizable={boolean} // 전 셀 resize handle
|
|
66
|
+
reorderable={boolean} // 전 셀 drag reorder + hover
|
|
67
|
+
|
|
68
|
+
selectionPinned={boolean} // default: true
|
|
69
|
+
selectable={boolean} // 맨 앞 체크박스 셀
|
|
70
|
+
selectAllChecked={boolean}
|
|
71
|
+
selectAllIndeterminate={boolean}
|
|
72
|
+
onSelectAllChange={(next: boolean) => void}
|
|
73
|
+
|
|
74
|
+
order={string[]} // controlled column 순서
|
|
75
|
+
onOrderChange={(next: string[]) => void}
|
|
76
|
+
widths={Record<string, number>} // controlled column 폭
|
|
77
|
+
onWidthsChange={(next: Record<string, number>) => void}
|
|
78
|
+
sort={TableHeaderSortState} // controlled sort 상태
|
|
79
|
+
onSortChange={(next: TableHeaderSortState) => void}
|
|
80
|
+
|
|
81
|
+
columnManager={boolean} // 우측 끝 컬럼 관리 IconButton
|
|
82
|
+
onColumnManagerClick={() => void}
|
|
83
|
+
/>
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
### Variant × Feature 매트릭스
|
|
87
|
+
| variant | resizable | reorderable | 시각 |
|
|
88
|
+
|---|---|---|---|
|
|
89
|
+
| `line` | off | off | 하단 hairline만 |
|
|
90
|
+
| `line` | on | off | 셀 좌측 세로 tick (눈금자) + resize handle |
|
|
91
|
+
| `line` | off | on | 하단 hairline + 셀 hover 배경, cursor-grab |
|
|
92
|
+
| `line` | on | on | 위 둘 조합 |
|
|
93
|
+
| `plate` | off | off | 라운드 컨테이너 (bg-muted) |
|
|
94
|
+
| `plate` | on | off | hover 시 셀 우측 세로선 (opacity 상승) |
|
|
95
|
+
| `plate` | off | on | 셀 hover 배경, cursor-grab |
|
|
96
|
+
| `plate` | on | on | 위 둘 조합 |
|
|
97
|
+
|
|
98
|
+
### 상태 매트릭스
|
|
99
|
+
| 상태 | 시각 |
|
|
100
|
+
|---|---|
|
|
101
|
+
| default | variant 기본 색·배경 |
|
|
102
|
+
| cell hover (reorderable=on) | `--hover` 배경, `cursor: grab` |
|
|
103
|
+
| cell dragging | `--bg-muted` 배경, `cursor: grabbing`, z 상승 |
|
|
104
|
+
| resize handle hover (plate) | 우측 세로선 opacity 0 → 0.5 |
|
|
105
|
+
| sort inactive | caret-up-down 아이콘, `--fg-subtle` |
|
|
106
|
+
| sort asc | caret-up 아이콘, `--fg-strong` |
|
|
107
|
+
| sort desc | caret-down 아이콘, `--fg-strong` |
|
|
108
|
+
|
|
109
|
+
### 조합 예시
|
|
110
|
+
```tsx
|
|
111
|
+
// 가장 단순 — 라인 + 정렬 없는 기본 헤더
|
|
112
|
+
<TableHeader
|
|
113
|
+
columns={[
|
|
114
|
+
{ key: "name", label: "이름", width: 200 },
|
|
115
|
+
{ key: "email", label: "이메일", flex: true, minWidth: 240 },
|
|
116
|
+
{ key: "role", label: "역할", width: 120 },
|
|
117
|
+
]}
|
|
118
|
+
/>
|
|
119
|
+
|
|
120
|
+
// 리서치 트레이스 뷰 — line + resize + 체크박스, 일부 컬럼만 정렬 가능
|
|
121
|
+
<TableHeader
|
|
122
|
+
variant="line"
|
|
123
|
+
resizable
|
|
124
|
+
selectable
|
|
125
|
+
selectAllChecked={allSelected}
|
|
126
|
+
onSelectAllChange={setAllSelected}
|
|
127
|
+
columns={[
|
|
128
|
+
{ key: "timestamp", label: "Timestamp", width: 140, sortable: true },
|
|
129
|
+
{ key: "flow", label: "Flow", width: 260 },
|
|
130
|
+
{ key: "input", label: "Input", width: 220 },
|
|
131
|
+
{ key: "output", label: "Output", flex: true, minWidth: 240 },
|
|
132
|
+
{ key: "status", label: "Status", width: 92 },
|
|
133
|
+
{ key: "duration", label: "Duration", width: 84, sortable: true },
|
|
134
|
+
{ key: "cost", label: "Cost", width: 84, sortable: true },
|
|
135
|
+
]}
|
|
136
|
+
sort={sort}
|
|
137
|
+
onSortChange={setSort}
|
|
138
|
+
/>
|
|
139
|
+
|
|
140
|
+
// 법무 관리 뷰 — plate + 순서 변경 + 리사이즈 + 컬럼 매니저
|
|
141
|
+
<TableHeader
|
|
142
|
+
variant="plate"
|
|
143
|
+
resizable
|
|
144
|
+
reorderable
|
|
145
|
+
columnManager
|
|
146
|
+
onColumnManagerClick={() => setColManagerOpen(true)}
|
|
147
|
+
columns={[
|
|
148
|
+
{ key: "type", label: "권리", width: 80 },
|
|
149
|
+
{ key: "ourRef", label: "Our Ref", width: 150 },
|
|
150
|
+
{ key: "status", label: "상태", width: 200, minWidth: 200 },
|
|
151
|
+
{ key: "deadline", label: "법정 마감일", width: 170, minWidth: 170 },
|
|
152
|
+
{ key: "client", label: "의뢰인", width: 140 },
|
|
153
|
+
{ key: "applicant", label: "출원인", width: 140 },
|
|
154
|
+
{ key: "title", label: "출원명", flex: true, minWidth: 300 },
|
|
155
|
+
{ key: "history", label: "히스토리", width: 300 },
|
|
156
|
+
{ key: "appNo", label: "출원번호", width: 160 },
|
|
157
|
+
{ key: "owner", label: "담당자", width: 120 },
|
|
158
|
+
]}
|
|
159
|
+
order={order}
|
|
160
|
+
onOrderChange={setOrder}
|
|
161
|
+
widths={widths}
|
|
162
|
+
onWidthsChange={setWidths}
|
|
163
|
+
/>
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
### 키보드 열 너비 조절
|
|
167
|
+
- resize 버튼은 열 이름을 포함한다. 포커스 후 좌우 방향키는 현재 폭을 비례 조정한다. 마우스 드래그와 같은 widths 상태를 갱신한다.
|
|
168
|
+
|
|
169
|
+
<!-- component-contract -->
|
|
170
|
+
```json
|
|
171
|
+
{"roles":["table-header"],"native":[],"hints":[],"requires":["ThemeController"]}
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
### Do: 헤더와 행의 열 너비
|
|
175
|
+
헤더·TableRow·TableRowSelect·TableRowEdit는 같은 열 계산을 공유한다. width의 양수 fr 값(예: "2fr", "1.1fr")은 가변 공간 비율로 지원한다. 폭이 필요한 정보는 minWidth를 함께 전달한다. pinned는 고정 길이 width를 사용한다. CSS grid의 열 선언을 행 일부에만 덮어써 헤더·선택 셀을 어긋나게 만들지 않는다.
|
|
176
|
+
|
|
177
|
+
### 열 너비 회귀 방지
|
|
178
|
+
헤더와 로우의 cellSlot은 같은 공통 폭 함수와 `contain: inline-size`를 사용한다. 긴 헤더 라벨만 intrinsic 너비 계산에 참여하도록 containment를 제거하지 않는다. 고정 열은 기존 sticky 계약의 containment 예외를 함께 유지한다. 열 경계 좌표뿐 아니라 버튼처럼 내부 패딩이 있는 콘텐츠의 실제 기준선도 확인한다.
|
|
179
|
+
|
|
180
|
+
### 선택 열 고정
|
|
181
|
+
`selectionPinned`는 기본 true로 선택 체크박스 열을 가로 스크롤 중 고정한다. false면 선택 열도 함께 스크롤된다. `selectable`은 표시 여부, `selectionPinned`는 고정 여부다. DataTable은 헤더/행에 같은 값을 전달한다. 직접 조립할 때도 Header와 Row/RowEdit에 동일한 값을 사용한다. 고정 해제 시 pinned-left 열의 기준에서 선택 열 폭을 제외한다. 헤더 선택 셀은 불투명 헤더 표면과 상위 레이어로 글자나 드래그에 가려지지 않게 한다.
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
# TableRowEdit
|
|
2
|
+
|
|
3
|
+
### 원칙
|
|
4
|
+
Notion·Excel 톤의 **edit 모드** 행. [[components/table-row]]가 "읽는 행"(행 전체 클릭)이라면 이 컴포넌트는 "편집 가능한 셀 그리드" — 상호작용 단위가 **행이 아니라 셀**이다. 세로 구분선이 **강제**되는 유일한 Row 타입으로, 사용자가 edit 모드임을 즉시 인지할 수 있게 한다.
|
|
5
|
+
|
|
6
|
+
**외곽은 line, 높이는 md로 고정** — 사이즈·variant 축이 없다. 밀도(sm/lg)나 pill(plate) 조합은 edit의 정체성(스프레드시트 톤, 세로선 그리드)과 어긋나 지원하지 않는다. 레이아웃·fade mask는 [[components/table-row]]의 CSS를 상속 — 헤더와의 폭·정렬 동기화 규칙은 동일. 셀 안쪽 콘텐츠는 [[components/table-cell]] 포맷터 또는 Input/Select/DatePicker 같은 편집 컨트롤을 호출 측에서 `columns[].render(data)`로 꽂아 쓴다.
|
|
7
|
+
|
|
8
|
+
### Do
|
|
9
|
+
- 편집 행 위 헤더는 `TableHeader variant="grid"`로 조합하면 상단 가로선과 여백 없는 세로 경계가 편집 행의 열 경계로 이어진다.
|
|
10
|
+
- **좌우 여백 통일**: `line`/`plate`, 선택·편집 모드 모두 첫·마지막 셀의 좌우 `--space-2_5` 패딩을 유지한다. 선택 체크박스도 좌우 여백을 갖는다. 패딩은 Header/Row가 관리하고 `TableCell*` 콘텐츠 포맷터에 중복 적용하지 않는다.
|
|
11
|
+
- 선택 체크박스 영역도 role=cell을 유지해 읽기·편집 행의 접근성 구조를 일치시킨다.
|
|
12
|
+
- **columns는 헤더와 1:1로 공유**: [[components/table-row]]와 동일한 `TableRowColumn<T>[]`. 폭·정렬·flex 동기화는 그대로 작동. 헤더는 `variant="grid"`를 권장하며 기존 `line`도 사용할 수 있다.
|
|
13
|
+
- **세로 구분선은 자동**: 첫 데이터 셀 왼쪽엔 선 없음, 그 뒤로 `--border` hairline이 자동으로 들어감. `selectable`이 있으면 체크박스 셀과 첫 데이터 셀 사이에도 선이 들어가 "선택 영역 ↔ 편집 영역" 구분.
|
|
14
|
+
- **`activeCellKey`로 '지금 편집 중인 셀' 단일화**: 호출 측에서 하나의 셀 key만 넘김. 포커스·클릭 시 `onCellActivate(key)`가 호출되므로 상위에서 그 값을 state로 받아 다시 돌려주는 패턴. 활성 셀은 `--primary-subtle` 배경 + 1px inset ring.
|
|
15
|
+
- **셀 콘텐츠는 `TableCell*` + 편집 컨트롤**: 표시 전엔 [[components/table-cell]] 포맷터, 활성 상태로 바뀌면 [[components/input]]·[[components/select]]·[[components/date-picker]] 등으로 교체하는 패턴. Row는 레이아웃만 관장.
|
|
16
|
+
- **selectable은 bulk 액션용**: 체크박스로 여러 행을 모아 복사/삭제. [[components/table-row-select]]와 선택 톤(`--primary-subtle`)이 동일 — 멀티셀렉션 신호 일관성.
|
|
17
|
+
- **읽기 전용 셀은 `columns[].editable: false`로 명시**: SKU·식별자·계산 파생값처럼 "값을 보여주지만 바꿀 수 없는" 셀. 커서는 default, hover/active 톤 없음, 포커스 불가, 세로 구분선 대상에서도 제외됨. 첫 "편집 가능" 셀 왼쪽엔 자동으로 선이 없음.
|
|
18
|
+
- **편집 컨트롤은 호출 측 책임**: Input은 `Enter` 커밋 / `Esc` 취소 / `Tab` 다음 셀로 쓰는 게 Notion/Excel 표준. Select는 `defaultOpen`으로 셀 활성화와 동시에 open해 한 번의 클릭으로 선택까지 끝나게. `autoFocus` 대신 `focus({ preventScroll: true })` + `select()`를 쓸 것 — autoFocus는 scrollIntoView로 페이지가 튐.
|
|
19
|
+
|
|
20
|
+
### Don't
|
|
21
|
+
- 행 전체에 `onClick`/`href`를 걸지 않는다. edit 모드는 **셀**이 상호작용 단위 — 행 전체 핸들러가 있으면 셀 활성화와 충돌해 포커스/편집이 꼬인다. 행 라우팅이 필요하면 [[components/table-row]]를 쓸 것.
|
|
22
|
+
- 세로 구분선을 끄지 않는다. edit 모드의 **정체성** — 끄면 navigate 모드와 시각 구분이 사라져 사용자가 편집 가능 여부를 인지하지 못함.
|
|
23
|
+
- 셀 안에 또 다른 anchor/button을 중첩하지 않는다. 셀 자체가 포커스 타겟(`tabIndex=0`) — nested interactive는 접근성·키보드 탐색 파괴.
|
|
24
|
+
- `activeCellKey`를 여러 개로 동시에 유지하지 않는다. "지금 편집 중"은 한 번에 하나. 멀티셀 선택이 필요하면 별도 selection state로 분리(미래 기능).
|
|
25
|
+
- hover가 selected/active 셀을 덮지 않는다 — 컴포넌트 CSS가 보장([[feedback/hover-over-active]]).
|
|
26
|
+
- `background`를 직접 지정하지 않는다. selected/active는 축 토큰(`--primary-subtle`)으로 자동.
|
|
27
|
+
- 사이즈·variant를 쓰려 하지 않는다 — 애초에 prop이 없다. 밀도 다른 테이블이 필요하면 edit 대신 [[components/table-row]]의 size로 해결.
|
|
28
|
+
|
|
29
|
+
### Fallback
|
|
30
|
+
- 셀 콘텐츠 애매하면 [[components/table-cell]] 중 `TableCellText`. 편집 시만 [[components/input]]으로 교체.
|
|
31
|
+
- `activeCellKey` 미지정 → 아무 셀도 활성 아님(모두 포커스 가능 상태만 유지).
|
|
32
|
+
|
|
33
|
+
### 관련
|
|
34
|
+
- [[components/table-row]] — navigate 모드(행 전체 클릭). edit과 스펙 공유.
|
|
35
|
+
- [[components/table-row-select]] — select 모드(체크박스 bulk 선택). selected 톤 일관.
|
|
36
|
+
- [[components/table-header]] — columns·order·widths·selectable 세트 (variant=grid 권장)
|
|
37
|
+
- [[components/table-cell]] — 각 셀 콘텐츠 포맷터
|
|
38
|
+
- [[components/input]], [[components/select]], [[components/date-picker]] — 활성 셀의 편집 컨트롤로 꽂음
|
|
39
|
+
- [[axes/density]] — space-* 토큰을 통해 자동 반영 (명시적 size 축 없음)
|
|
40
|
+
- [[tokens/color]] — `--primary-subtle`/`--primary`(active cell), `--border`(세로 구분선), `--hover`(셀 hover), `--fg-disabled`
|
|
41
|
+
- [[feedback/hover-over-active]] — selected/active 위 hover가 상태 톤을 덮지 않음
|
|
42
|
+
|
|
43
|
+
### Props 시그니처
|
|
44
|
+
```tsx
|
|
45
|
+
type TableRowColumn<T> = TableHeaderColumn & {
|
|
46
|
+
render?: (data: T) => ReactNode; // 미지정 시 data[key]
|
|
47
|
+
editable?: boolean; // 기본 true. false면 read-only
|
|
48
|
+
resizable?: boolean; // 폭 drag 조절 opt-in (widths로 state 커밋)
|
|
49
|
+
movable?: boolean; // 순서 drag 변경 opt-in (order로 state 커밋)
|
|
50
|
+
removable?: boolean; // 헤더 액션으로 삭제 opt-in
|
|
51
|
+
pinned?: "left" | "right"; // 가로스크롤 시 좌/우 sticky
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
<TableRowEdit<T>
|
|
55
|
+
size="sm | md" // default: md (sm=36, md=40)
|
|
56
|
+
columns={TableRowColumn<T>[]} // 헤더와 동일 스펙 + render + editable + …
|
|
57
|
+
order={string[]} // 헤더와 공유
|
|
58
|
+
widths={Record<string, number>} // 헤더와 공유
|
|
59
|
+
data={T}
|
|
60
|
+
|
|
61
|
+
selectionPinned={boolean} // default: true
|
|
62
|
+
selectable={boolean} // 맨 앞 체크박스
|
|
63
|
+
selected={boolean}
|
|
64
|
+
onSelectedChange={(next: boolean) => void}
|
|
65
|
+
|
|
66
|
+
activeCellKey={string} // 지금 편집 중인 셀 key
|
|
67
|
+
onCellActivate={(key: string) => void} // 편집 가능 셀 클릭/Enter/Space 시
|
|
68
|
+
|
|
69
|
+
disabled={boolean}
|
|
70
|
+
/>
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
### 상태 매트릭스
|
|
74
|
+
| 상태 | 시각 |
|
|
75
|
+
|---|---|
|
|
76
|
+
| default | 세로 구분선 + 행 하단 hairline |
|
|
77
|
+
| cell hover | 해당 셀만 `--hover` 배경 |
|
|
78
|
+
| cell active | `--primary-subtle` 배경 + 1px inset ring (`--primary`) |
|
|
79
|
+
| cell focus-visible (keyboard, not active) | `--ring-shadow` 표면 톤 |
|
|
80
|
+
| selected (행) | 행 전체 `--primary-subtle` 배경 |
|
|
81
|
+
| disabled | `--fg-disabled` 톤, 셀 포커스 불가 |
|
|
82
|
+
|
|
83
|
+
### 조합 예시
|
|
84
|
+
```tsx
|
|
85
|
+
// 가장 단순 — 셀 하나씩 활성화되는 스프레드시트 톤
|
|
86
|
+
const [activeCell, setActiveCell] = useState<string | undefined>();
|
|
87
|
+
|
|
88
|
+
<TableHeader variant="grid" columns={headerCols} />
|
|
89
|
+
{rows.map((row) => (
|
|
90
|
+
<TableRowEdit
|
|
91
|
+
key={row.id}
|
|
92
|
+
columns={rowCols}
|
|
93
|
+
data={row}
|
|
94
|
+
activeCellKey={activeCell}
|
|
95
|
+
onCellActivate={setActiveCell}
|
|
96
|
+
/>
|
|
97
|
+
))}
|
|
98
|
+
|
|
99
|
+
// 활성 셀만 Input으로 교체하는 패턴
|
|
100
|
+
const makeEditColumn = <T,>(col: TableHeaderColumn, field: keyof T): TableRowColumn<T> => ({
|
|
101
|
+
...col,
|
|
102
|
+
render: (d) =>
|
|
103
|
+
activeCell === col.key && focusedRowId === (d as { id: string }).id ? (
|
|
104
|
+
<Input defaultValue={String(d[field])} autoFocus onBlur={commit} />
|
|
105
|
+
) : (
|
|
106
|
+
<TableCellText>{String(d[field])}</TableCellText>
|
|
107
|
+
),
|
|
108
|
+
});
|
|
109
|
+
|
|
110
|
+
// 체크박스 selection + 셀 편집 동시 사용
|
|
111
|
+
<TableHeader
|
|
112
|
+
variant="grid"
|
|
113
|
+
columns={headerCols}
|
|
114
|
+
selectable
|
|
115
|
+
selectAllChecked={allSelected}
|
|
116
|
+
onSelectAllChange={setAllSelected}
|
|
117
|
+
/>
|
|
118
|
+
{rows.map((row) => (
|
|
119
|
+
<TableRowEdit
|
|
120
|
+
key={row.id}
|
|
121
|
+
columns={rowCols}
|
|
122
|
+
data={row}
|
|
123
|
+
selectable
|
|
124
|
+
selected={selected.has(row.id)}
|
|
125
|
+
onSelectedChange={(next) => toggleOne(row.id, next)}
|
|
126
|
+
activeCellKey={focusedRowId === row.id ? activeCell : undefined}
|
|
127
|
+
onCellActivate={(key) => {
|
|
128
|
+
setFocusedRowId(row.id);
|
|
129
|
+
setActiveCell(key);
|
|
130
|
+
}}
|
|
131
|
+
/>
|
|
132
|
+
))}
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
<!-- component-contract -->
|
|
136
|
+
```json
|
|
137
|
+
{"roles":["table-row-edit"],"native":[],"hints":[],"requires":["ThemeController"]}
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
### 선택 열과 고정 열 정렬
|
|
141
|
+
`selectable`과 왼쪽 `pinned`를 함께 쓰면 체크박스 셀의 실제 폭을 고정 열 offset에 더한다. Header와 Row는 동일한 columns/order/widths/selectable을 공유하며, 선택된 행의 고정 셀도 행의 선택 표면을 유지한다.
|
|
142
|
+
|
|
143
|
+
### 선택 열 고정
|
|
144
|
+
`selectionPinned`는 기본 true로 선택 체크박스 열을 가로 스크롤 중 고정한다. false면 선택 열도 함께 스크롤된다. `selectable`은 표시 여부, `selectionPinned`는 고정 여부다. DataTable은 헤더/행에 같은 값을 전달한다. 직접 조립할 때도 Header와 Row/RowEdit에 동일한 값을 사용한다. 고정 해제 시 pinned-left 열의 기준에서 선택 열 폭을 제외한다. 헤더 선택 셀은 불투명 헤더 표면과 상위 레이어로 글자나 드래그에 가려지지 않게 한다.
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
# TableRowSelect
|
|
2
|
+
|
|
3
|
+
### 원칙
|
|
4
|
+
"선택 모드" 데이터 행. [[components/table-row]]의 **navigate 모드**가 "클릭 = 라우팅/상세 열기"였다면, select 모드는 **"클릭 = 선택 토글"** 하나로 묶인다. 체크박스 UI는 **쓰지 않음** — 선택된 행 자체가 primary 톤의 옅은 배경으로 명확히 구분된다. 행 본문·빈 공간을 누르거나, 키보드 Space를 눌러도 전부 동일한 토글.
|
|
5
|
+
|
|
6
|
+
레이아웃·사이즈·variant·fade mask·폭 공식은 [[components/table-row]]와 **완전히 공유** — 같은 `TableRowColumn<T>[]`를 받고, 같은 2단계(cellSlot→cell→cellInner) 구조로 렌더된다. 차이는 "선택 상태 시각"과 "클릭 핸들러의 의미"뿐.
|
|
7
|
+
|
|
8
|
+
### Do
|
|
9
|
+
- **좌우 여백 통일**: `line`/`plate`, 선택·편집 모드 모두 첫·마지막 셀의 좌우 `--space-2_5` 패딩을 유지한다. 선택 체크박스도 좌우 여백을 갖는다. 패딩은 Header/Row가 관리하고 `TableCell*` 콘텐츠 포맷터에 중복 적용하지 않는다.
|
|
10
|
+
- **columns는 TableRow와 동일 스펙**: 같은 `TableRowColumn<T>[]`를 Header와 Row 모두에 전달. 폭·정렬·render가 자동 동기화.
|
|
11
|
+
- **체크박스 UI 없음**: 행 자체가 토글 영역 — 선택된 상태는 배경 톤으로만 표현. 헤더에도 `selectable=false` (기본).
|
|
12
|
+
- **선택 배경은 `--primary-subtle`**: 기본 hover와 선택이 구분된다. hover가 선택을 덮지 않는다.
|
|
13
|
+
- **hover가 selected를 덮지 않도록**: selected 위에서 hover해도 배경 톤 유지. [[feedback/hover-over-active]] 원칙과 정합.
|
|
14
|
+
- **키보드 Space로 토글**: Enter는 안 받음 — Finder·Explorer도 선택은 Space. 접근성 트리는 `role="row"` + `aria-selected`.
|
|
15
|
+
- **전체 선택/해제는 외부 UI로**: Row 자체엔 "select all" 개념이 없음. 상위 툴바에 버튼으로 두거나 헤더의 `selectable`을 켜고 TableRow(navigate)와 섞어 쓰는 패턴은 지양.
|
|
16
|
+
|
|
17
|
+
### Don't
|
|
18
|
+
- select 모드 안에 navigate(`href`/`onClick 라우팅`)를 섞지 않는다. "클릭의 의미가 하나"라는 규칙이 이 컴포넌트의 핵심. 두 가지가 필요하면 [[components/table-row]]를 쓰고 체크박스는 selectable로 켠다.
|
|
19
|
+
- 체크박스 UI를 추가하지 않는다 — 이 컴포넌트의 정체성이 "체크박스 없이 행 자체로 선택". 체크박스가 필요하면 [[components/table-row]]의 `selectable` + `onSelectedChange`로.
|
|
20
|
+
- `active` prop 없음. "지금 보고 있는 상세 행"의 개념은 navigate 전용 — select 모드엔 "선택됨"만 있다.
|
|
21
|
+
- 행 한 줄 안에 여러 선택 가능한 영역을 두지 않는다. 선택 단위는 "행 하나" 고정.
|
|
22
|
+
|
|
23
|
+
자식 버튼·링크·입력에서 시작된 이벤트는 선택으로 전파하지 않는다. onClick 소비자 콜백은 기본 선택 전환과 함께 호출되며 preventDefault로 취소할 수 있다. 자식 Space는 행 선택을 바꾸지 않는다. disabled는 자식 컨트롤도 차단한다.
|
|
24
|
+
|
|
25
|
+
### Fallback
|
|
26
|
+
- 사이즈 애매하면 `md`. 파일 리스트 표준.
|
|
27
|
+
- variant 애매하면 `line`. 파일 매니저 톤.
|
|
28
|
+
- selected 초기값 애매하면 `false`.
|
|
29
|
+
|
|
30
|
+
### 관련
|
|
31
|
+
- [[components/table-row]] — navigate 모드. columns 스펙·레이아웃·fade mask 전부 공유. 체크박스가 필요하면 이쪽의 `selectable` 사용
|
|
32
|
+
- [[components/table-header]] — 헤더는 selectable 끄고 사용 (이 컴포넌트는 체크박스 없음)
|
|
33
|
+
- [[tokens/color]] — `--hover`(선택 + hover 공통 중성 톤), `--fg-disabled`(disabled)
|
|
34
|
+
|
|
35
|
+
### Props 시그니처
|
|
36
|
+
```tsx
|
|
37
|
+
<TableRowSelect<T>
|
|
38
|
+
variant="line | plate" // default: line
|
|
39
|
+
size="sm | md | lg" // default: md
|
|
40
|
+
columns={TableRowColumn<T>[]} // TableRow와 동일 스펙
|
|
41
|
+
order={string[]} // Header와 공유
|
|
42
|
+
widths={Record<string, number>} // Header와 공유
|
|
43
|
+
data={T}
|
|
44
|
+
|
|
45
|
+
selected={boolean}
|
|
46
|
+
onSelectedChange={(next: boolean) => void} // 행 클릭 / Space 공통 콜백
|
|
47
|
+
|
|
48
|
+
disabled={boolean} // pointer-events + 키보드 차단
|
|
49
|
+
/>
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
### 상태 매트릭스
|
|
53
|
+
| 상태 | 시각 |
|
|
54
|
+
|---|---|
|
|
55
|
+
| default | variant 기본 배경 |
|
|
56
|
+
| hover | `--hover` 중성 톤 |
|
|
57
|
+
| selected | `--hover` 배경 (TableRow active와 동일 토큰) |
|
|
58
|
+
| selected + hover | selected 톤 유지(hover 덮어쓰기 금지) |
|
|
59
|
+
| focus-visible (keyboard) | 옅은 표면 톤(`--ring-shadow`) |
|
|
60
|
+
| disabled | `--fg-disabled` 톤, pointer-events 없음, Space 무시 |
|
|
61
|
+
|
|
62
|
+
### 조합 예시
|
|
63
|
+
```tsx
|
|
64
|
+
const [selected, setSelected] = useState<Set<string>>(new Set());
|
|
65
|
+
|
|
66
|
+
const toggle = (id: string, next: boolean) => {
|
|
67
|
+
setSelected((prev) => {
|
|
68
|
+
const n = new Set(prev);
|
|
69
|
+
if (next) n.add(id); else n.delete(id);
|
|
70
|
+
return n;
|
|
71
|
+
});
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
<TableHeader variant="line" columns={HEADER_COLUMNS} />
|
|
75
|
+
{rows.map((row) => (
|
|
76
|
+
<TableRowSelect
|
|
77
|
+
key={row.id}
|
|
78
|
+
variant="line"
|
|
79
|
+
columns={ROW_COLUMNS}
|
|
80
|
+
data={row}
|
|
81
|
+
selected={selected.has(row.id)}
|
|
82
|
+
onSelectedChange={(next) => toggle(row.id, next)}
|
|
83
|
+
/>
|
|
84
|
+
))}
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
<!-- component-contract -->
|
|
88
|
+
```json
|
|
89
|
+
{"roles":["table-row-select"],"native":[],"hints":[],"requires":[]}
|
|
90
|
+
```
|