@conscience-technology/ctds 0.0.0-stage → 0.1.1
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 +128 -2
- package/assets/components/AppFrame/AppFrame.module.css +177 -0
- package/assets/components/AppFrame/AppFrame.tsx +93 -0
- package/assets/components/AppFrame/index.ts +6 -0
- package/assets/components/AttachmentChip/AttachmentChip.module.css +71 -0
- package/assets/components/AttachmentChip/AttachmentChip.tsx +74 -0
- package/assets/components/AttachmentChip/index.ts +2 -0
- package/assets/components/AttachmentThumb/AttachmentThumb.module.css +107 -0
- package/assets/components/AttachmentThumb/AttachmentThumb.tsx +91 -0
- package/assets/components/AttachmentThumb/index.ts +2 -0
- package/assets/components/Avatar/Avatar.module.css +167 -0
- package/assets/components/Avatar/Avatar.tsx +228 -0
- package/assets/components/Avatar/index.ts +2 -0
- package/assets/components/AvatarUpload/AvatarUpload.module.css +130 -0
- package/assets/components/AvatarUpload/AvatarUpload.tsx +139 -0
- package/assets/components/AvatarUpload/index.ts +2 -0
- package/assets/components/Badge/Badge.module.css +76 -0
- package/assets/components/Badge/Badge.tsx +68 -0
- package/assets/components/Badge/index.ts +2 -0
- package/assets/components/Breadcrumb/Breadcrumb.module.css +213 -0
- package/assets/components/Breadcrumb/Breadcrumb.tsx +279 -0
- package/assets/components/Breadcrumb/index.ts +8 -0
- package/assets/components/Button/Button.module.css +216 -0
- package/assets/components/Button/Button.tsx +149 -0
- package/assets/components/Button/index.ts +2 -0
- package/assets/components/Callout/Callout.module.css +146 -0
- package/assets/components/Callout/Callout.tsx +138 -0
- package/assets/components/Callout/index.ts +2 -0
- package/assets/components/ChatInput/ChatInput.module.css +254 -0
- package/assets/components/ChatInput/ChatInput.tsx +322 -0
- package/assets/components/ChatInput/ModelSelector.tsx +40 -0
- package/assets/components/ChatInput/SendButton.tsx +41 -0
- package/assets/components/ChatInput/index.ts +10 -0
- package/assets/components/Checkbox/Checkbox.module.css +66 -0
- package/assets/components/Checkbox/Checkbox.tsx +36 -0
- package/assets/components/Checkbox/index.ts +2 -0
- package/assets/components/Chip/Chip.module.css +128 -0
- package/assets/components/Chip/Chip.tsx +103 -0
- package/assets/components/Chip/index.ts +2 -0
- package/assets/components/ChoiceCard/ChoiceCard.module.css +142 -0
- package/assets/components/ChoiceCard/ChoiceCard.tsx +132 -0
- package/assets/components/ChoiceCard/index.ts +2 -0
- package/assets/components/ContextMenu/ContextMenu.module.css +102 -0
- package/assets/components/ContextMenu/ContextMenu.tsx +392 -0
- package/assets/components/ContextMenu/index.ts +9 -0
- package/assets/components/DatePicker/Calendar.tsx +234 -0
- package/assets/components/DatePicker/DESIGN_NOTES.md +106 -0
- package/assets/components/DatePicker/DESIGN_NOTES_TIME.md +125 -0
- package/assets/components/DatePicker/DatePicker.module.css +295 -0
- package/assets/components/DatePicker/DatePicker.tsx +387 -0
- package/assets/components/DatePicker/TimeSelector.tsx +69 -0
- package/assets/components/DatePicker/index.ts +8 -0
- package/assets/components/DatePicker/presets.ts +80 -0
- package/assets/components/DatePicker/utils.ts +148 -0
- package/assets/components/Disclosure/Disclosure.module.css +73 -0
- package/assets/components/Disclosure/Disclosure.tsx +129 -0
- package/assets/components/Disclosure/index.ts +6 -0
- package/assets/components/Drawer/Drawer.module.css +257 -0
- package/assets/components/Drawer/Drawer.tsx +126 -0
- package/assets/components/Drawer/index.ts +7 -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/FileIcon/FileIcon.module.css +66 -0
- package/assets/components/FileIcon/FileIcon.tsx +84 -0
- package/assets/components/FileIcon/fileExtMap.ts +112 -0
- package/assets/components/FileIcon/index.ts +9 -0
- package/assets/components/FilterButton/FilterButton.module.css +130 -0
- package/assets/components/FilterButton/FilterButton.tsx +94 -0
- package/assets/components/FilterButton/index.ts +2 -0
- package/assets/components/GalleryItem/GalleryItem.module.css +220 -0
- package/assets/components/GalleryItem/GalleryItem.tsx +163 -0
- package/assets/components/GalleryItem/index.ts +7 -0
- package/assets/components/Icon/Icon.tsx +616 -0
- package/assets/components/Icon/context.tsx +39 -0
- package/assets/components/Icon/index.ts +4 -0
- package/assets/components/IconButton/IconButton.module.css +109 -0
- package/assets/components/IconButton/IconButton.tsx +110 -0
- package/assets/components/IconButton/index.ts +2 -0
- package/assets/components/Input/Input.module.css +338 -0
- package/assets/components/Input/Input.tsx +371 -0
- package/assets/components/Input/index.ts +2 -0
- package/assets/components/ListItem/ListItem.module.css +318 -0
- package/assets/components/ListItem/ListItem.tsx +262 -0
- package/assets/components/ListItem/index.ts +9 -0
- package/assets/components/MenuItem/MenuItem.module.css +437 -0
- package/assets/components/MenuItem/MenuItem.tsx +529 -0
- package/assets/components/MenuItem/index.ts +8 -0
- package/assets/components/MetricCard/MetricCard.module.css +153 -0
- package/assets/components/MetricCard/MetricCard.tsx +140 -0
- package/assets/components/MetricCard/index.ts +2 -0
- package/assets/components/Modal/Modal.module.css +175 -0
- package/assets/components/Modal/Modal.tsx +98 -0
- package/assets/components/Modal/index.ts +2 -0
- package/assets/components/Onboarding/DocsIndex.tsx +82 -0
- package/assets/components/Onboarding/LayoutBuilder.tsx +160 -0
- package/assets/components/Onboarding/Onboarding.module.css +1394 -0
- package/assets/components/Onboarding/OnboardingAxisPanel.tsx +515 -0
- package/assets/components/Onboarding/OnboardingPage.tsx +1193 -0
- package/assets/components/Onboarding/PresetsGallery.tsx +65 -0
- package/assets/components/Onboarding/actions.ts +250 -0
- package/assets/components/Onboarding/index.ts +8 -0
- package/assets/components/Onboarding/palette.css +40 -0
- package/assets/components/Onboarding/wizardData.ts +265 -0
- package/assets/components/Pagination/Pagination.module.css +82 -0
- package/assets/components/Pagination/Pagination.tsx +248 -0
- package/assets/components/Pagination/index.ts +6 -0
- package/assets/components/ProgressBar/ProgressBar.module.css +64 -0
- package/assets/components/ProgressBar/ProgressBar.tsx +54 -0
- package/assets/components/ProgressBar/index.ts +2 -0
- package/assets/components/QuotationBar/QuotationBar.module.css +61 -0
- package/assets/components/QuotationBar/QuotationBar.tsx +48 -0
- package/assets/components/QuotationBar/index.ts +2 -0
- package/assets/components/Radio/Radio.module.css +63 -0
- package/assets/components/Radio/Radio.tsx +33 -0
- package/assets/components/Radio/index.ts +2 -0
- package/assets/components/Select/Select.module.css +151 -0
- package/assets/components/Select/Select.tsx +425 -0
- package/assets/components/Select/index.ts +10 -0
- package/assets/components/SelectableCard/SelectableCard.module.css +177 -0
- package/assets/components/SelectableCard/SelectableCard.tsx +83 -0
- package/assets/components/SelectableCard/index.ts +2 -0
- package/assets/components/Shortcut/Shortcut.module.css +56 -0
- package/assets/components/Shortcut/Shortcut.tsx +156 -0
- package/assets/components/Shortcut/index.ts +2 -0
- package/assets/components/Sidebar/Sidebar.module.css +242 -0
- package/assets/components/Sidebar/Sidebar.tsx +264 -0
- package/assets/components/Sidebar/index.ts +7 -0
- package/assets/components/SidebarSplit/SidebarSplit.module.css +126 -0
- package/assets/components/SidebarSplit/SidebarSplit.tsx +222 -0
- package/assets/components/SidebarSplit/index.ts +6 -0
- package/assets/components/Slider/Slider.module.css +120 -0
- package/assets/components/Slider/Slider.tsx +88 -0
- package/assets/components/Slider/index.ts +2 -0
- package/assets/components/SplitButton/SplitButton.module.css +190 -0
- package/assets/components/SplitButton/SplitButton.tsx +145 -0
- package/assets/components/SplitButton/index.ts +6 -0
- package/assets/components/Stepper/Stepper.module.css +182 -0
- package/assets/components/Stepper/Stepper.tsx +185 -0
- package/assets/components/Stepper/index.ts +2 -0
- package/assets/components/Switch/Switch.module.css +116 -0
- package/assets/components/Switch/Switch.tsx +58 -0
- package/assets/components/Switch/index.ts +2 -0
- package/assets/components/TableCell/TableCell.module.css +137 -0
- package/assets/components/TableCell/TableCellAvatar.tsx +42 -0
- package/assets/components/TableCell/TableCellBadge.tsx +23 -0
- package/assets/components/TableCell/TableCellIcon.tsx +39 -0
- package/assets/components/TableCell/TableCellImage.tsx +49 -0
- package/assets/components/TableCell/TableCellLink.tsx +33 -0
- package/assets/components/TableCell/TableCellMeter.tsx +55 -0
- package/assets/components/TableCell/TableCellNumber.tsx +43 -0
- package/assets/components/TableCell/TableCellText.tsx +30 -0
- package/assets/components/TableCell/index.ts +23 -0
- package/assets/components/TableHeader/TableHeader.module.css +287 -0
- package/assets/components/TableHeader/TableHeader.tsx +590 -0
- package/assets/components/TableHeader/index.ts +9 -0
- package/assets/components/TableRow/TableRow.module.css +290 -0
- package/assets/components/TableRow/TableRow.tsx +253 -0
- package/assets/components/TableRow/index.ts +8 -0
- package/assets/components/TableRowEdit/TableRowEdit.module.css +126 -0
- package/assets/components/TableRowEdit/TableRowEdit.tsx +247 -0
- package/assets/components/TableRowEdit/index.ts +2 -0
- package/assets/components/TableRowSelect/TableRowSelect.module.css +23 -0
- package/assets/components/TableRowSelect/TableRowSelect.tsx +175 -0
- package/assets/components/TableRowSelect/index.ts +2 -0
- package/assets/components/Tabs/Tabs.module.css +234 -0
- package/assets/components/Tabs/Tabs.tsx +426 -0
- package/assets/components/Tabs/index.ts +9 -0
- package/assets/components/Textarea/Textarea.module.css +318 -0
- package/assets/components/Textarea/Textarea.tsx +426 -0
- package/assets/components/Textarea/index.ts +7 -0
- package/assets/components/ThemeController.tsx +271 -0
- package/assets/components/TimePicker/TimePicker.module.css +317 -0
- package/assets/components/TimePicker/TimePicker.tsx +821 -0
- package/assets/components/TimePicker/index.ts +8 -0
- package/assets/components/TimePicker/utils.ts +115 -0
- package/assets/components/Toast/Toast.module.css +264 -0
- package/assets/components/Toast/Toast.tsx +243 -0
- package/assets/components/Toast/index.ts +15 -0
- package/assets/components/Toolbar/Toolbar.module.css +72 -0
- package/assets/components/Toolbar/Toolbar.tsx +75 -0
- package/assets/components/Toolbar/index.ts +2 -0
- package/assets/components/Tooltip/Tooltip.module.css +42 -0
- package/assets/components/Tooltip/Tooltip.tsx +332 -0
- package/assets/components/Tooltip/index.ts +2 -0
- package/assets/components/Topbar/Topbar.module.css +26 -0
- package/assets/components/Topbar/Topbar.tsx +47 -0
- package/assets/components/Topbar/index.ts +2 -0
- package/assets/components/_cn.ts +3 -0
- package/assets/components/_color.ts +48 -0
- package/assets/components/_data.ts +659 -0
- package/assets/components/_utils.css +19 -0
- package/assets/components/axisOptions.ts +24 -0
- package/assets/components/tokens.css +742 -0
- package/assets/prompts/GUIDE.md +251 -0
- package/assets/prompts/OVERRIDE.md +170 -0
- package/assets/prompts/PRINCIPLES.md +130 -0
- package/assets/prompts/axes/density.md +38 -0
- package/assets/prompts/axes/font.md +36 -0
- package/assets/prompts/axes/hue.md +36 -0
- package/assets/prompts/axes/icon.md +48 -0
- package/assets/prompts/axes/mode.md +50 -0
- package/assets/prompts/axes/motion.md +77 -0
- package/assets/prompts/axes/palette.md +35 -0
- package/assets/prompts/axes/shape.md +33 -0
- package/assets/prompts/axes/voice.md +54 -0
- package/assets/prompts/components/README.md +84 -0
- package/assets/prompts/components/app-frame.md +94 -0
- package/assets/prompts/components/attachment-chip.md +46 -0
- package/assets/prompts/components/attachment-thumb.md +49 -0
- package/assets/prompts/components/avatar.md +86 -0
- package/assets/prompts/components/badge.md +104 -0
- package/assets/prompts/components/breadcrumb.md +77 -0
- package/assets/prompts/components/button.md +99 -0
- package/assets/prompts/components/callout.md +81 -0
- package/assets/prompts/components/chat-input.md +84 -0
- package/assets/prompts/components/checkbox.md +46 -0
- package/assets/prompts/components/chip.md +84 -0
- package/assets/prompts/components/choice-card.md +127 -0
- package/assets/prompts/components/context-menu.md +145 -0
- package/assets/prompts/components/date-picker.md +104 -0
- package/assets/prompts/components/drawer.md +152 -0
- package/assets/prompts/components/empty-state.md +69 -0
- package/assets/prompts/components/file-icon.md +73 -0
- package/assets/prompts/components/filter-button.md +42 -0
- package/assets/prompts/components/form-field.md +74 -0
- package/assets/prompts/components/gallery-item.md +158 -0
- package/assets/prompts/components/icon-button.md +82 -0
- package/assets/prompts/components/icon.md +68 -0
- package/assets/prompts/components/input.md +95 -0
- package/assets/prompts/components/list-item.md +235 -0
- package/assets/prompts/components/menu-item.md +234 -0
- package/assets/prompts/components/metric-card.md +132 -0
- package/assets/prompts/components/modal.md +131 -0
- package/assets/prompts/components/pagination.md +92 -0
- package/assets/prompts/components/progress-bar.md +61 -0
- package/assets/prompts/components/quotation-bar.md +39 -0
- package/assets/prompts/components/radio.md +41 -0
- package/assets/prompts/components/select.md +104 -0
- package/assets/prompts/components/selectable-card.md +67 -0
- package/assets/prompts/components/shortcut.md +76 -0
- package/assets/prompts/components/sidebar.md +107 -0
- package/assets/prompts/components/slider.md +89 -0
- package/assets/prompts/components/split-button.md +71 -0
- package/assets/prompts/components/stepper.md +93 -0
- package/assets/prompts/components/switch.md +86 -0
- package/assets/prompts/components/table-cell.md +87 -0
- package/assets/prompts/components/table-header.md +157 -0
- package/assets/prompts/components/table-row-edit.md +129 -0
- package/assets/prompts/components/table-row-select.md +82 -0
- package/assets/prompts/components/table-row.md +156 -0
- package/assets/prompts/components/tabs.md +122 -0
- package/assets/prompts/components/textarea.md +105 -0
- package/assets/prompts/components/toast.md +149 -0
- package/assets/prompts/components/tooltip.md +71 -0
- package/assets/prompts/components/topbar.md +148 -0
- package/assets/prompts/primitives/emerge.md +43 -0
- package/assets/prompts/primitives/fade.md +31 -0
- package/assets/prompts/primitives/scale.md +32 -0
- package/assets/prompts/primitives/scroll.md +75 -0
- package/assets/prompts/primitives/slide.md +31 -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 +78 -0
- package/assets/prompts/tokens/radius.md +33 -0
- package/assets/prompts/tokens/shadow.md +35 -0
- package/assets/prompts/tokens/spacing.md +86 -0
- package/assets/prompts/tokens/typography.md +76 -0
- package/assets/prompts/tokens/z-index.md +35 -0
- package/assets/public/expressive.png +0 -0
- package/assets/public/pure.png +0 -0
- package/assets/public/spare.png +0 -0
- package/assets/skill/SKILL.md +36 -0
- package/bin/ctds.js +76 -0
- package/package.json +35 -4
- package/src/commands/init.js +215 -0
- package/src/commands/update.js +275 -0
- package/src/utils/assets.js +78 -0
- package/src/utils/deps.js +51 -0
- package/src/utils/detect.js +47 -0
- package/src/utils/diff.js +52 -0
- package/src/utils/hash.js +16 -0
- package/src/utils/log.js +41 -0
- package/src/utils/meta.js +73 -0
- package/src/utils/prompt.js +28 -0
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
/* TableHeader
|
|
2
|
+
───────────────────────────────────────────────────────────────
|
|
3
|
+
두 개 variant × resizable × reorderable 조합 = 8가지.
|
|
4
|
+
구조는 항상 flex + order (columns 순서는 @dnd-kit이 관리).
|
|
5
|
+
|
|
6
|
+
시각 원칙
|
|
7
|
+
- line : 페이지에 얹힌 얇은 눈금자. bg=--bg, 하단 hairline border.
|
|
8
|
+
- plate: 라운드 컨테이너. bg=--bg-subtle(연하게), 안쪽 padding, radius-lg.
|
|
9
|
+
- hover: reorderable=on일 때만 셀 hover 배경 노출.
|
|
10
|
+
- resize handle:
|
|
11
|
+
· line → 셀 좌측 tick (눈금자 느낌). 첫 셀엔 안 붙음.
|
|
12
|
+
· plate → 셀 우측 세로선 (hover 시 opacity 상승).
|
|
13
|
+
- sort arrow: --fg-subtle → active 시 --fg-strong.
|
|
14
|
+
|
|
15
|
+
토큰만 사용 — 색/여백/시간/폰트 리터럴 금지.
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
.root {
|
|
19
|
+
position: sticky;
|
|
20
|
+
top: 0;
|
|
21
|
+
z-index: var(--z-docked);
|
|
22
|
+
display: flex;
|
|
23
|
+
align-items: stretch;
|
|
24
|
+
/* 총 컬럼 폭 합보다 컨테이너가 좁으면 셀이 겹치지 않고 밀리도록.
|
|
25
|
+
상위에 overflow-x: auto를 두면 가로 스크롤이 생김. */
|
|
26
|
+
width: max-content;
|
|
27
|
+
min-width: 100%;
|
|
28
|
+
font-family: var(--label-font);
|
|
29
|
+
/* 헤더는 regular로 담담하게. 강조(medium)는 데이터 셀의 'strong' 톤에만 쓴다.
|
|
30
|
+
weight 두 단계(regular/medium)만 사용 — 세 단계 이상은 위계가 모호해짐. */
|
|
31
|
+
font-weight: var(--font-weight-regular);
|
|
32
|
+
letter-spacing: var(--label-tracking);
|
|
33
|
+
font-size: var(--label-sm-size);
|
|
34
|
+
line-height: var(--label-sm-line-height);
|
|
35
|
+
color: var(--fg);
|
|
36
|
+
user-select: none;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/* variant: line ────────────────────────────────────────────── */
|
|
40
|
+
/* 페이지 표면에 얹히는 얇은 헤더. sticky 시 아래 데이터 위로 자연스럽게 흐르게
|
|
41
|
+
bg를 채우고 하단만 hairline. */
|
|
42
|
+
.line {
|
|
43
|
+
background: var(--bg);
|
|
44
|
+
border-bottom: var(--hairline) solid var(--border);
|
|
45
|
+
/* padding-block을 넣지 않음 — bar 세로를 cell(min-height)이 결정해
|
|
46
|
+
reorder hover 배경이 bar 전체 세로를 자연스레 커버하도록. */
|
|
47
|
+
color: var(--fg-muted);
|
|
48
|
+
min-height: var(--control-h-md);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/* line variant는 셀 좌우 패딩을 먹지 않는다 — TableRow.line과 짝.
|
|
52
|
+
콘텐츠가 테이블 좌/우 경계에 바짝 붙어 "선 사이의 데이터" 톤 유지.
|
|
53
|
+
plate에선 .cell 기본 padding-inline(--space-2)을 유지. */
|
|
54
|
+
.line .cell {
|
|
55
|
+
padding-inline: 0;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/* line variant 셀 간 숨 쉴 공간. plate는 셀 자체 padding-inline으로 간격 확보. */
|
|
59
|
+
.line {
|
|
60
|
+
column-gap: var(--space-2);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/* variant: plate ─────────────────────────────────────────────
|
|
64
|
+
pill 형태. 컨테이너 자체에 radius + padding, 셀 hover 배경이 라운드 안쪽에서 발생.
|
|
65
|
+
min-height으로 시각 무게 유지. */
|
|
66
|
+
.plate {
|
|
67
|
+
background: var(--bg-subtle);
|
|
68
|
+
border-radius: var(--radius-lg);
|
|
69
|
+
padding: var(--space-1);
|
|
70
|
+
min-height: var(--control-h-lg);
|
|
71
|
+
color: var(--fg-strong);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/* Cell slot — dnd 위치 계산은 slot이 담당, 시각(padding/hover/border)은 안쪽 .cell.
|
|
75
|
+
slot에 width/order를 얹지 않는 이유: @dnd-kit이 transform으로 위치를 옮길 때
|
|
76
|
+
슬롯 폭 자체는 columns 순서대로 유지돼야 flex가 흔들리지 않음.
|
|
77
|
+
flex-shrink: 0 — 셀이 min-width 밑으로 줄어들며 겹치지 않도록 방지. */
|
|
78
|
+
.cellSlot {
|
|
79
|
+
display: flex;
|
|
80
|
+
flex-shrink: 0;
|
|
81
|
+
min-width: 0;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/* ── Pinned cellSlot ───────────────────────────────────
|
|
85
|
+
position: sticky는 inline style로 걸림. CSS는 배경(스크롤되는 셀이 비치지
|
|
86
|
+
않도록)과 가장자리 shadow만 담당. 왼쪽 pinned → 오른쪽 가장자리 shadow,
|
|
87
|
+
오른쪽 pinned → 왼쪽 가장자리 shadow로 "떠있음" 신호. */
|
|
88
|
+
.cellSlot[data-pinned] {
|
|
89
|
+
background: var(--bg);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/* Cell (columnheader) ─────────────────────────────────────── */
|
|
93
|
+
/* width:100%로 슬롯 폭을 그대로 채워 라벨/tick/handle 정렬이 슬롯 경계에 맞춰 계산됨.
|
|
94
|
+
padding-inline은 hover/drag hit 영역이 콘텐츠에 바짝 붙지 않도록 필수.
|
|
95
|
+
reorder hover 배경과 셀 간 간격감이 이 패딩에서 나온다. */
|
|
96
|
+
.cell {
|
|
97
|
+
position: relative;
|
|
98
|
+
display: inline-flex;
|
|
99
|
+
align-items: center;
|
|
100
|
+
width: 100%;
|
|
101
|
+
min-width: 0;
|
|
102
|
+
padding-inline: var(--space-2);
|
|
103
|
+
height: 100%;
|
|
104
|
+
color: inherit;
|
|
105
|
+
transition: var(--transition-colors);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/* reorderable=on: 전 셀을 grab 커서 + hover 배경.
|
|
109
|
+
hover/drag 배경은 ::before pseudo로 cell 세로의 ~95%만 덮어 bar top/bottom에
|
|
110
|
+
살짝 숨구멍이 남게 — bar 전체 꽉 차면 과도해 보임. */
|
|
111
|
+
.reorderable {
|
|
112
|
+
cursor: grab;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.reorderable::before {
|
|
116
|
+
content: "";
|
|
117
|
+
position: absolute;
|
|
118
|
+
inset-block: 7.5%;
|
|
119
|
+
inset-inline: 0;
|
|
120
|
+
border-radius: var(--radius-sm);
|
|
121
|
+
background: transparent;
|
|
122
|
+
transition: var(--transition-colors);
|
|
123
|
+
pointer-events: none;
|
|
124
|
+
z-index: var(--z-base);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.reorderable:hover::before,
|
|
128
|
+
.dragging::before {
|
|
129
|
+
background: var(--hover);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/* 라벨/아이콘은 ::before 위에 올라와야 — cell 안의 콘텐츠는 position relative 상속. */
|
|
133
|
+
.reorderable > * {
|
|
134
|
+
position: relative;
|
|
135
|
+
z-index: var(--z-raise);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/* 드래그 중 셀: grabbing. 배경은 위 ::before 규칙으로. */
|
|
139
|
+
.dragging {
|
|
140
|
+
cursor: grabbing;
|
|
141
|
+
z-index: var(--z-raised);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/* Label ───────────────────────────────────────────────────── */
|
|
145
|
+
.label {
|
|
146
|
+
display: inline-flex;
|
|
147
|
+
align-items: center;
|
|
148
|
+
gap: var(--space-1);
|
|
149
|
+
min-width: 0;
|
|
150
|
+
overflow: hidden;
|
|
151
|
+
text-overflow: ellipsis;
|
|
152
|
+
white-space: nowrap;
|
|
153
|
+
/* sortable 셀에서 라벨을 클릭 대상으로. reorder 리스너는 셀 전체에 걸려 있어
|
|
154
|
+
8px threshold 안에서의 클릭은 sort로 취급됨. */
|
|
155
|
+
pointer-events: auto;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.sortable .label {
|
|
159
|
+
cursor: pointer;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/* Sort icon ──────────────────────────────────────────────
|
|
163
|
+
arrows-down-up 커스텀 아이콘(위↓ · 아래↑ 두 path 분리형). 모양은 상태와
|
|
164
|
+
무관하게 고정이고, 상태 표시는 각 path의 fill 톤 교체로만 처리. */
|
|
165
|
+
.sortIcon {
|
|
166
|
+
flex-shrink: 0;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.sortPath {
|
|
170
|
+
fill: var(--fg-subtle);
|
|
171
|
+
transition: var(--transition-colors);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.sortPathActive {
|
|
175
|
+
fill: var(--fg-strong);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
/* Line variant: 좌측 tick (눈금자 스타일) ─────────────────
|
|
179
|
+
첫 셀엔 안 붙게 :first-of-type의 슬롯 안쪽 tick을 숨김.
|
|
180
|
+
선 굵기 1px 고정(border 규칙과 정합). 색은 border 톤. */
|
|
181
|
+
.tick {
|
|
182
|
+
position: absolute;
|
|
183
|
+
left: 0;
|
|
184
|
+
top: 25%;
|
|
185
|
+
bottom: 25%;
|
|
186
|
+
width: var(--hairline);
|
|
187
|
+
background: var(--border);
|
|
188
|
+
opacity: 0.7;
|
|
189
|
+
pointer-events: none;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
/* 헤더 첫 셀엔 tick 표시하지 않음 — 컨테이너 좌측 라인과 겹치는 인상 방지.
|
|
193
|
+
selectable 셀이 있으면 그건 selectCell(별도 slot)이라 첫 cellSlot에 해당. */
|
|
194
|
+
.cellSlot:first-child .tick {
|
|
195
|
+
display: none;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
/* Resize handle ──────────────────────────────────────────────
|
|
199
|
+
히트 영역은 셀 우측 경계에 걸쳐 있는 투명 버튼. 시각 세로선은 안쪽 .resizeLine이
|
|
200
|
+
담당하고, 라인은 handle 폭 안에서 "우측 끝"이 아니라 "중앙"에 위치 →
|
|
201
|
+
시각적으로 셀 경계에 딱 붙는다. 사용자가 잡기 좋게 좌우로 넉넉한 hover 영역 유지. */
|
|
202
|
+
.resizeHandle {
|
|
203
|
+
position: absolute;
|
|
204
|
+
top: 0;
|
|
205
|
+
/* handle 중심을 다음 세로 구분선 위치에 정확히 맞춤.
|
|
206
|
+
- 데이터 row의 세로선: 다음 cellSlot의 좌측 경계(= 현재 셀 우측 + cellSlot gap).
|
|
207
|
+
- handle 중심이 그 지점에 오도록: right = -(gap + handleWidth/2).
|
|
208
|
+
cellSlot gap은 TableRow의 column-gap(--space-1). */
|
|
209
|
+
right: calc((var(--space-1) * -1) - (var(--space-3) * 0.5));
|
|
210
|
+
bottom: 0;
|
|
211
|
+
width: var(--space-3);
|
|
212
|
+
padding: 0;
|
|
213
|
+
margin: 0;
|
|
214
|
+
background: transparent;
|
|
215
|
+
border: none;
|
|
216
|
+
cursor: col-resize;
|
|
217
|
+
z-index: var(--z-raise);
|
|
218
|
+
display: flex;
|
|
219
|
+
align-items: center;
|
|
220
|
+
justify-content: center;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.resizeHandle:focus-visible {
|
|
224
|
+
outline: none;
|
|
225
|
+
box-shadow: var(--ring-shadow);
|
|
226
|
+
border-radius: var(--radius-xs);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
/* 시각 세로선 — plate에서만 hover 시 표시. line은 자체 tick으로 대체하므로 숨김.
|
|
230
|
+
색은 border-strong(살짝 밝은 hairline 톤) — fg-subtle은 너무 진해서 데이터 색과 경쟁함. */
|
|
231
|
+
/* 둥근 pill 핸들 — 선이 아니라 떠있는 그립 느낌.
|
|
232
|
+
폭은 좁고 세로로 길쭉한 캡슐, 연한 중성 톤에 그림자로 "집어들 수 있는" 어포던스. */
|
|
233
|
+
.resizeLine {
|
|
234
|
+
display: block;
|
|
235
|
+
width: var(--space-1);
|
|
236
|
+
height: 60%;
|
|
237
|
+
background: var(--border-strong);
|
|
238
|
+
border-radius: var(--radius-full);
|
|
239
|
+
opacity: 0;
|
|
240
|
+
box-shadow: var(--shadow-xs);
|
|
241
|
+
transition:
|
|
242
|
+
opacity var(--duration-fast) var(--ease-out),
|
|
243
|
+
background var(--duration-fast) var(--ease-out),
|
|
244
|
+
height var(--duration-fast) var(--ease-out),
|
|
245
|
+
box-shadow var(--duration-fast) var(--ease-out);
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
/* 셀 전체 hover: pill 연하게 노출. */
|
|
249
|
+
.cell:hover .resizeLine {
|
|
250
|
+
opacity: 0.6;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
/* handle hover/active: 더 또렷하게 + 길어지고 shadow 깊어짐 — "집은 상태". */
|
|
254
|
+
.resizeHandle:hover .resizeLine,
|
|
255
|
+
.resizeHandle:active .resizeLine {
|
|
256
|
+
opacity: 1;
|
|
257
|
+
background: var(--fg-muted);
|
|
258
|
+
height: 80%;
|
|
259
|
+
box-shadow: var(--shadow-sm);
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
/* Select-all cell (leading checkbox) ─────────────────────
|
|
263
|
+
체크박스 자체가 width/height를 가져 중앙 정렬만 하면 됨 — 좌우 패딩 불필요. */
|
|
264
|
+
.selectCell {
|
|
265
|
+
display: inline-flex;
|
|
266
|
+
align-items: center;
|
|
267
|
+
justify-content: flex-start;
|
|
268
|
+
flex-shrink: 0;
|
|
269
|
+
width: var(--control-h-sm);
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
/* Column manager cell (trailing IconButton) ────────────── */
|
|
273
|
+
.managerCell {
|
|
274
|
+
display: inline-flex;
|
|
275
|
+
align-items: center;
|
|
276
|
+
justify-content: center;
|
|
277
|
+
flex-shrink: 0;
|
|
278
|
+
padding-inline: var(--space-1);
|
|
279
|
+
margin-inline-start: auto;
|
|
280
|
+
color: var(--fg-subtle);
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
/* Resize 중 body에 얹히는 클래스. TSX가 styles.bodyResizing으로 접근. */
|
|
284
|
+
.bodyResizing {
|
|
285
|
+
cursor: col-resize !important;
|
|
286
|
+
user-select: none !important;
|
|
287
|
+
}
|