proto-plugin 0.1.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/AGENTS.md +350 -0
- package/README.md +279 -0
- package/components.json +18 -0
- package/package.json +73 -0
- package/scripts/download-mobbin-reference-images.mjs +112 -0
- package/scripts/lib/host-config.example.sh +48 -0
- package/scripts/lib/host-config.sh +25 -0
- package/scripts/lib/resolve-host-root.mjs +18 -0
- package/scripts/lib/source-path.sh +49 -0
- package/scripts/link-source-db.sh +128 -0
- package/scripts/link-source.sh +40 -0
- package/scripts/publish-package.sh +147 -0
- package/scripts/share-prototype.sh +279 -0
- package/scripts/sync-from-source.sh +74 -0
- package/scripts/verify-prototype-component-ids.mjs +151 -0
- package/scripts/verify-prototype-preview-states.mjs +135 -0
- package/src/app.ts +4 -0
- package/src/components/platform-ui/code-block.tsx +21 -0
- package/src/components/platform-ui/controls-panel-options.tsx +71 -0
- package/src/components/platform-ui/controls-panel-select.tsx +438 -0
- package/src/components/platform-ui/empty-state.tsx +15 -0
- package/src/components/platform-ui/icon-button.tsx +18 -0
- package/src/components/platform-ui/panel-select.tsx +123 -0
- package/src/components/platform-ui/panel.tsx +97 -0
- package/src/components/platform-ui/review-dropdown-menu.tsx +35 -0
- package/src/components/platform-ui/sidebar.tsx +293 -0
- package/src/components/platform-ui/toolbar-icon-button.tsx +34 -0
- package/src/components/platform-ui/toolbar.tsx +37 -0
- package/src/components/prototype-gallery-client.tsx +57 -0
- package/src/components/prototype-provider.tsx +20 -0
- package/src/components/prototypes/mini-pill-label.tsx +37 -0
- package/src/components/prototypes/prototype-change-log-panel.tsx +207 -0
- package/src/components/prototypes/prototype-comment-provider.tsx +61 -0
- package/src/components/prototypes/prototype-comment-toolbar.tsx +65 -0
- package/src/components/prototypes/prototype-control.tsx +31 -0
- package/src/components/prototypes/prototype-controls.tsx +553 -0
- package/src/components/prototypes/prototype-create-exploration-modal.tsx +117 -0
- package/src/components/prototypes/prototype-create-state-modal.tsx +117 -0
- package/src/components/prototypes/prototype-default-state-map-page.tsx +66 -0
- package/src/components/prototypes/prototype-design-brief-modal.tsx +128 -0
- package/src/components/prototypes/prototype-design-brief-panel.tsx +525 -0
- package/src/components/prototypes/prototype-design-context-panel.tsx +65 -0
- package/src/components/prototypes/prototype-floating-pill.module.scss +1341 -0
- package/src/components/prototypes/prototype-mobbin-gallery.tsx +330 -0
- package/src/components/prototypes/prototype-reference-docs.tsx +222 -0
- package/src/components/prototypes/prototype-review-chrome.module.scss +630 -0
- package/src/components/prototypes/prototype-review-chrome.tsx +1241 -0
- package/src/components/prototypes/prototype-review-dropdown-menu-item.tsx +1 -0
- package/src/components/prototypes/prototype-review-dropdown-menu-separator.tsx +1 -0
- package/src/components/prototypes/prototype-review-panel-menu-item.tsx +1 -0
- package/src/components/prototypes/prototype-review-panel-menu-separator.tsx +1 -0
- package/src/components/prototypes/prototype-review-panel-select.tsx +4 -0
- package/src/components/prototypes/prototype-review-sidebar.tsx +167 -0
- package/src/components/prototypes/prototype-share-link-restore.tsx +75 -0
- package/src/components/prototypes/prototype-share-mode.tsx +206 -0
- package/src/components/prototypes/prototype-spec-panel-content.tsx +538 -0
- package/src/components/prototypes/prototype-state-canvas-overlay.module.scss +336 -0
- package/src/components/prototypes/prototype-state-canvas-overlay.tsx +1023 -0
- package/src/components/prototypes/prototype-state-canvas.tsx +38 -0
- package/src/components/prototypes/prototype-state-screenshot-preview.tsx +47 -0
- package/src/components/prototypes/prototype-target.tsx +120 -0
- package/src/components/prototypes/prototype-tweak-highlight.tsx +132 -0
- package/src/components/prototypes/prototype-tweaks.tsx +48 -0
- package/src/components/prototypes/prototype-variant-explorer.tsx +347 -0
- package/src/components/prototypes/prototype-variant-rationale-panel.tsx +49 -0
- package/src/components/prototypes/prototype-variant-tabs.tsx +207 -0
- package/src/components/prototypes/prototype-vercel-preview-modal.tsx +120 -0
- package/src/components/prototypes/state-map-annotation-tooltip.module.scss +89 -0
- package/src/components/prototypes/state-map-annotation-tooltip.tsx +137 -0
- package/src/components/prototypes/state-map-wireframe-highlight.module.scss +25 -0
- package/src/components/prototypes/state-map-wireframe-highlight.tsx +82 -0
- package/src/components/shell/prototype-gallery-shell.tsx +79 -0
- package/src/components/shell/prototype-screenshot-capture.tsx +45 -0
- package/src/components/shell/prototype-shell.module.scss +194 -0
- package/src/components/shell/prototype-shell.tsx +160 -0
- package/src/components/shell/prototype-state-screenshot-capture.tsx +68 -0
- package/src/components/ui/button.tsx +58 -0
- package/src/components/ui/dialog.module.scss +81 -0
- package/src/components/ui/dialog.tsx +127 -0
- package/src/components/ui/dropdown-menu.tsx +200 -0
- package/src/components/ui/input.tsx +22 -0
- package/src/components/ui/label.tsx +26 -0
- package/src/components/ui/option-select.tsx +81 -0
- package/src/components/ui/scroll-area.tsx +48 -0
- package/src/components/ui/separator.tsx +31 -0
- package/src/components/ui/slider.tsx +28 -0
- package/src/components/ui/switch.tsx +29 -0
- package/src/components/ui/tabs.tsx +55 -0
- package/src/components/ui/toggle-group.tsx +80 -0
- package/src/components/ui/tooltip.tsx +32 -0
- package/src/config/create-prototype-gallery-page.tsx +65 -0
- package/src/config/create-prototype-host-app.tsx +121 -0
- package/src/config/create-prototype-page.tsx +41 -0
- package/src/config/create-prototype-site-layout.tsx +28 -0
- package/src/config/define-prototype-config.ts +7 -0
- package/src/config/prototype-icon.tsx +25 -0
- package/src/config/prototype-site-layout-client.tsx +35 -0
- package/src/config/with-prototype.ts +20 -0
- package/src/index.ts +303 -0
- package/src/lib/pr-split/build-pr-agent-prompt.ts +68 -0
- package/src/lib/pr-split/build-pr-split-prototype-url.ts +12 -0
- package/src/lib/pr-split/pr-split-highlight.ts +6 -0
- package/src/lib/pr-split/pr-split-types.ts +58 -0
- package/src/lib/pr-split/resolve-source-preview-url.ts +45 -0
- package/src/lib/pr-split/use-pr-vercel-previews.ts +69 -0
- package/src/lib/prototype-comments/core/annotation-channel.ts +41 -0
- package/src/lib/prototype-comments/core/annotation-status.ts +60 -0
- package/src/lib/prototype-comments/core/annotation-target.ts +567 -0
- package/src/lib/prototype-comments/core/capture-theme.ts +41 -0
- package/src/lib/prototype-comments/core/capture.ts +11 -0
- package/src/lib/prototype-comments/core/comment-capture-blocked.ts +47 -0
- package/src/lib/prototype-comments/core/comment-threads.ts +52 -0
- package/src/lib/prototype-comments/core/element-identification.ts +615 -0
- package/src/lib/prototype-comments/core/export.ts +35 -0
- package/src/lib/prototype-comments/core/freeze-animations.ts +266 -0
- package/src/lib/prototype-comments/core/identify-element.ts +76 -0
- package/src/lib/prototype-comments/core/normalize-viewport.ts +35 -0
- package/src/lib/prototype-comments/core/react-detection.ts +704 -0
- package/src/lib/prototype-comments/core/restore.ts +7 -0
- package/src/lib/prototype-comments/core/screenshot.ts +428 -0
- package/src/lib/prototype-comments/core/source-location.ts +906 -0
- package/src/lib/prototype-comments/core/storage.ts +80 -0
- package/src/lib/prototype-comments/core/types.ts +79 -0
- package/src/lib/prototype-comments/core/validation.ts +17 -0
- package/src/lib/prototype-comments/hooks/useLayoutShift.ts +61 -0
- package/src/lib/prototype-comments/index.ts +58 -0
- package/src/lib/prototype-comments/react/CommentCaptureToolbar.tsx +1398 -0
- package/src/lib/prototype-comments/react/CommentProvider.tsx +298 -0
- package/src/lib/prototype-comments/scss.d.ts +10 -0
- package/src/lib/prototype-comments/ui/CommentAnnotationOverlay.tsx +253 -0
- package/src/lib/prototype-comments/ui/CommentDetailPage.tsx +56 -0
- package/src/lib/prototype-comments/ui/CommentHeaderCount.tsx +28 -0
- package/src/lib/prototype-comments/ui/CommentThread.tsx +331 -0
- package/src/lib/prototype-comments/ui/CommentsGrid.tsx +780 -0
- package/src/lib/prototype-comments/ui/CommentsListPage.tsx +25 -0
- package/src/lib/prototype-comments/ui/CommentsSidebar.tsx +77 -0
- package/src/lib/prototype-comments/ui/annotation-marker/index.tsx +200 -0
- package/src/lib/prototype-comments/ui/annotation-marker/styles.module.scss +194 -0
- package/src/lib/prototype-comments/ui/annotation-popup/index.tsx +335 -0
- package/src/lib/prototype-comments/ui/annotation-popup/styles.module.scss +469 -0
- package/src/lib/prototype-comments/ui/capture-styles.module.scss +2225 -0
- package/src/lib/prototype-comments/ui/comment-highlight.ts +48 -0
- package/src/lib/prototype-comments/ui/comment-thread.module.scss +203 -0
- package/src/lib/prototype-comments/ui/comments-grid-card.module.scss +253 -0
- package/src/lib/prototype-comments/ui/comments-sidebar.module.scss +123 -0
- package/src/lib/prototype-comments/ui/icon-transitions.module.scss +51 -0
- package/src/lib/prototype-comments/ui/icons.tsx +1086 -0
- package/src/lib/prototype-comments/ui/is-comment-detail-path.ts +7 -0
- package/src/lib/prototypes/capture-prototype-viewport.ts +32 -0
- package/src/lib/prototypes/changelog-meta-context.tsx +162 -0
- package/src/lib/prototypes/changelog-meta-storage.ts +62 -0
- package/src/lib/prototypes/changelog-meta.ts +95 -0
- package/src/lib/prototypes/create-prototype-registry.ts +74 -0
- package/src/lib/prototypes/create-state-screenshot-thumbnail.ts +46 -0
- package/src/lib/prototypes/design-exploration-default-storage.ts +68 -0
- package/src/lib/prototypes/design-exploration-default.ts +51 -0
- package/src/lib/prototypes/design-exploration-types.ts +203 -0
- package/src/lib/prototypes/prototype-comment-registry.tsx +145 -0
- package/src/lib/prototypes/prototype-comment-review-bridge.tsx +40 -0
- package/src/lib/prototypes/prototype-comment-review-state.ts +57 -0
- package/src/lib/prototypes/prototype-component-registry.ts +40 -0
- package/src/lib/prototypes/prototype-config-types.ts +34 -0
- package/src/lib/prototypes/prototype-preview-state-registry.ts +443 -0
- package/src/lib/prototypes/prototype-preview-state-types.ts +89 -0
- package/src/lib/prototypes/prototype-review-context.tsx +905 -0
- package/src/lib/prototypes/prototype-review-url.ts +134 -0
- package/src/lib/prototypes/prototype-share-link.ts +175 -0
- package/src/lib/prototypes/prototype-state-canvas-constants.ts +118 -0
- package/src/lib/prototypes/prototype-state-canvas-types.ts +159 -0
- package/src/lib/prototypes/prototype-state-screenshot.ts +39 -0
- package/src/lib/prototypes/prototype-tweak-registry.ts +96 -0
- package/src/lib/prototypes/prototype-tweak-types.ts +31 -0
- package/src/lib/prototypes/reference-docs.ts +137 -0
- package/src/lib/prototypes/screenshot-manifest.ts +33 -0
- package/src/lib/prototypes/screenshot-src.ts +7 -0
- package/src/lib/prototypes/share-command.ts +8 -0
- package/src/lib/prototypes/state-map-annotation.ts +70 -0
- package/src/lib/prototypes/use-design-exploration-default.ts +114 -0
- package/src/lib/prototypes/use-persisted-local-state.ts +140 -0
- package/src/lib/prototypes/use-prototype-comments.ts +63 -0
- package/src/lib/prototypes/use-prototype-mobile-viewport-frame.ts +46 -0
- package/src/lib/prototypes/use-prototype-state-screenshot-src.ts +71 -0
- package/src/lib/prototypes/use-prototype-tool-theme.tsx +115 -0
- package/src/lib/prototypes/use-prototype-viewport-frame.ts +34 -0
- package/src/lib/prototypes/use-register-prototype-reference-docs.ts +16 -0
- package/src/lib/prototypes/use-snap-corner-position.ts +417 -0
- package/src/lib/prototypes/use-toolbar-hover-panel.ts +98 -0
- package/src/lib/prototypes/variant-set-lucide-icon.tsx +55 -0
- package/src/lib/tool-portal.ts +33 -0
- package/src/lib/use-copy-to-clipboard.ts +81 -0
- package/src/lib/utils.ts +6 -0
- package/src/lib/vercel-preview/parse-vercel-github-comment.ts +81 -0
- package/src/server/create-host-api-route.ts +100 -0
- package/src/server/create-prototype-api-routes.ts +428 -0
- package/src/server/gallery/create-gallery-api.ts +56 -0
- package/src/server/gallery/folders-route.ts +156 -0
- package/src/server/gallery/gallery-env.ts +39 -0
- package/src/server/gallery/gallery-route.ts +150 -0
- package/src/server/gallery/gallery-types.ts +15 -0
- package/src/server/gallery/image-route.ts +59 -0
- package/src/server/gallery/item-route.ts +92 -0
- package/src/server/pr-vercel-preview-route.ts +162 -0
- package/src/server/redis/client.ts +55 -0
- package/src/server/redis/prototype-changelog-meta.ts +31 -0
- package/src/server/redis/prototype-comments.ts +92 -0
- package/src/server/redis/prototype-design-exploration-default.ts +32 -0
- package/src/server.ts +51 -0
- package/src/styles/globals.css +624 -0
- package/tsconfig.json +19 -0
|
@@ -0,0 +1,336 @@
|
|
|
1
|
+
$canvas-chrome-bg: var(--tool-chrome-bg);
|
|
2
|
+
$canvas-chrome-muted: var(--tool-chrome-surface-muted, #252525);
|
|
3
|
+
$canvas-border: var(--tool-chrome-border);
|
|
4
|
+
$canvas-border-strong: var(--tool-chrome-border-strong);
|
|
5
|
+
$canvas-text: var(--tool-chrome-text);
|
|
6
|
+
$canvas-text-muted: var(--tool-chrome-text-muted);
|
|
7
|
+
$canvas-text-tertiary: var(--tool-chrome-icon-hover, #a3a3a3);
|
|
8
|
+
$canvas-edge-base: var(--prototype-state-canvas-edge, var(--tool-chrome-icon-hover, #a3a3a3));
|
|
9
|
+
// Pre-blend to canvas bg so edges stay subtle without semi-transparent layering at corners/arrowheads.
|
|
10
|
+
$canvas-edge-color: color-mix(in srgb, $canvas-edge-base 50%, $canvas-chrome-bg);
|
|
11
|
+
|
|
12
|
+
$wireframe-bg: #ffffff;
|
|
13
|
+
$wireframe-subtle: var(--color-gray-50);
|
|
14
|
+
$wireframe-border: #edebeb;
|
|
15
|
+
$wireframe-border-medium: var(--color-gray-300);
|
|
16
|
+
$wireframe-text: var(--color-gray-900);
|
|
17
|
+
|
|
18
|
+
.page {
|
|
19
|
+
display: flex;
|
|
20
|
+
flex-direction: column;
|
|
21
|
+
width: 100%;
|
|
22
|
+
height: 100%;
|
|
23
|
+
min-height: 0;
|
|
24
|
+
background: $canvas-chrome-bg;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.overlay {
|
|
28
|
+
position: absolute;
|
|
29
|
+
inset: 0;
|
|
30
|
+
z-index: 20;
|
|
31
|
+
display: flex;
|
|
32
|
+
flex-direction: column;
|
|
33
|
+
background: $canvas-chrome-bg;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.header {
|
|
37
|
+
display: flex;
|
|
38
|
+
align-items: center;
|
|
39
|
+
justify-content: space-between;
|
|
40
|
+
gap: 1rem;
|
|
41
|
+
padding: 0.75rem 1rem;
|
|
42
|
+
background: $canvas-chrome-bg;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.headerTitle {
|
|
46
|
+
margin: 0;
|
|
47
|
+
font-size: 0.8125rem;
|
|
48
|
+
font-weight: 600;
|
|
49
|
+
color: $canvas-text;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.headerHint {
|
|
53
|
+
margin: 0.125rem 0 0;
|
|
54
|
+
font-size: 0.75rem;
|
|
55
|
+
color: $canvas-text-muted;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.closeButton {
|
|
59
|
+
display: inline-flex;
|
|
60
|
+
align-items: center;
|
|
61
|
+
justify-content: center;
|
|
62
|
+
width: 2rem;
|
|
63
|
+
height: 2rem;
|
|
64
|
+
padding: 0;
|
|
65
|
+
border: 1px solid $canvas-border;
|
|
66
|
+
border-radius: 0.375rem;
|
|
67
|
+
background: $canvas-chrome-bg;
|
|
68
|
+
color: $canvas-text-muted;
|
|
69
|
+
cursor: pointer;
|
|
70
|
+
font-size: 0.75rem;
|
|
71
|
+
font-weight: 500;
|
|
72
|
+
text-decoration: none;
|
|
73
|
+
transition: background-color 0.2s ease, color 0.2s ease;
|
|
74
|
+
|
|
75
|
+
@media (hover: hover) and (pointer: fine) {
|
|
76
|
+
&:hover {
|
|
77
|
+
background: $canvas-chrome-muted;
|
|
78
|
+
color: $canvas-text;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.canvasViewport {
|
|
84
|
+
position: relative;
|
|
85
|
+
flex: 1 1 0;
|
|
86
|
+
min-height: 0;
|
|
87
|
+
overflow: hidden;
|
|
88
|
+
background: $canvas-chrome-bg;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.zoomControls {
|
|
92
|
+
position: absolute;
|
|
93
|
+
right: 1rem;
|
|
94
|
+
bottom: 1rem;
|
|
95
|
+
z-index: 2;
|
|
96
|
+
display: inline-flex;
|
|
97
|
+
align-items: center;
|
|
98
|
+
gap: 0.125rem;
|
|
99
|
+
padding: 0.25rem;
|
|
100
|
+
border: 1px solid $canvas-border;
|
|
101
|
+
border-radius: 0.5rem;
|
|
102
|
+
background: $canvas-chrome-bg;
|
|
103
|
+
box-shadow: 0 1px 3px rgb(0 0 0 / 0.24);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.zoomButton {
|
|
107
|
+
display: inline-flex;
|
|
108
|
+
align-items: center;
|
|
109
|
+
justify-content: center;
|
|
110
|
+
width: 1.75rem;
|
|
111
|
+
height: 1.75rem;
|
|
112
|
+
padding: 0;
|
|
113
|
+
border: none;
|
|
114
|
+
border-radius: 0.375rem;
|
|
115
|
+
background: transparent;
|
|
116
|
+
color: $canvas-text-muted;
|
|
117
|
+
cursor: pointer;
|
|
118
|
+
transition: background-color 0.2s ease, color 0.2s ease;
|
|
119
|
+
|
|
120
|
+
@media (hover: hover) and (pointer: fine) {
|
|
121
|
+
&:hover {
|
|
122
|
+
background: $canvas-chrome-muted;
|
|
123
|
+
color: $canvas-text;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
&:focus:not(:focus-visible) {
|
|
128
|
+
outline: none;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
&:focus-visible {
|
|
132
|
+
outline: 2px solid color-mix(in srgb, var(--tool-chrome-blue) 55%, transparent);
|
|
133
|
+
outline-offset: -2px;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.zoomLabel {
|
|
138
|
+
min-width: 2.75rem;
|
|
139
|
+
padding: 0 0.25rem;
|
|
140
|
+
font-size: 0.6875rem;
|
|
141
|
+
font-weight: 500;
|
|
142
|
+
color: $canvas-text-muted;
|
|
143
|
+
text-align: center;
|
|
144
|
+
user-select: none;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.canvasLayer {
|
|
148
|
+
position: absolute;
|
|
149
|
+
top: 24px;
|
|
150
|
+
left: 24px;
|
|
151
|
+
transform-origin: 0 0;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.edges {
|
|
155
|
+
position: absolute;
|
|
156
|
+
inset: 0;
|
|
157
|
+
pointer-events: none;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.edge {
|
|
161
|
+
fill: none;
|
|
162
|
+
stroke: $canvas-edge-color;
|
|
163
|
+
stroke-width: 1.5;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.edgeArrowHead {
|
|
167
|
+
fill: $canvas-edge-color;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.sectionLabel {
|
|
171
|
+
position: absolute;
|
|
172
|
+
font-size: 0.6875rem;
|
|
173
|
+
font-weight: 600;
|
|
174
|
+
letter-spacing: 0.04em;
|
|
175
|
+
text-transform: uppercase;
|
|
176
|
+
color: $canvas-text-tertiary;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.nodeGroup {
|
|
180
|
+
position: absolute;
|
|
181
|
+
display: flex;
|
|
182
|
+
flex-direction: column;
|
|
183
|
+
overflow: hidden;
|
|
184
|
+
border: 1px solid $wireframe-border;
|
|
185
|
+
border-radius: 0.5rem;
|
|
186
|
+
background: $wireframe-bg;
|
|
187
|
+
transition: border-color 0.2s ease;
|
|
188
|
+
|
|
189
|
+
@media (hover: hover) and (pointer: fine) {
|
|
190
|
+
&:hover {
|
|
191
|
+
border-color: color-mix(in srgb, var(--tool-chrome-blue) 45%, transparent);
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.nodeGroupSelected {
|
|
197
|
+
border-color: color-mix(in srgb, var(--tool-chrome-blue) 55%, transparent);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.node {
|
|
201
|
+
display: flex;
|
|
202
|
+
flex-direction: column;
|
|
203
|
+
width: 100%;
|
|
204
|
+
overflow: hidden;
|
|
205
|
+
border: none;
|
|
206
|
+
background: transparent;
|
|
207
|
+
text-align: left;
|
|
208
|
+
cursor: pointer;
|
|
209
|
+
transition: background-color 0.2s ease;
|
|
210
|
+
|
|
211
|
+
@media (hover: hover) and (pointer: fine) {
|
|
212
|
+
.nodeGroup:hover & {
|
|
213
|
+
background: color-mix(in srgb, var(--tool-chrome-blue) 4%, $wireframe-bg);
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
&:focus:not(:focus-visible) {
|
|
218
|
+
outline: none;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
&:focus-visible {
|
|
222
|
+
outline: 2px solid color-mix(in srgb, var(--tool-chrome-blue) 55%, transparent);
|
|
223
|
+
outline-offset: -2px;
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.nodeSelected {
|
|
228
|
+
background: color-mix(in srgb, var(--tool-chrome-blue) 6%, $wireframe-bg);
|
|
229
|
+
|
|
230
|
+
@media (hover: hover) and (pointer: fine) {
|
|
231
|
+
.nodeGroup:hover & {
|
|
232
|
+
background: color-mix(in srgb, var(--tool-chrome-blue) 8%, $wireframe-bg);
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.nodePreview {
|
|
238
|
+
height: 132px;
|
|
239
|
+
overflow: hidden;
|
|
240
|
+
border-bottom: 1px solid $wireframe-border;
|
|
241
|
+
background: $wireframe-subtle;
|
|
242
|
+
pointer-events: none;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
.nodePreviewContent {
|
|
246
|
+
position: relative;
|
|
247
|
+
height: 100%;
|
|
248
|
+
width: 100%;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
.nodeLabel {
|
|
252
|
+
display: flex;
|
|
253
|
+
align-items: center;
|
|
254
|
+
justify-content: space-between;
|
|
255
|
+
gap: 0.5rem;
|
|
256
|
+
min-height: 36px;
|
|
257
|
+
padding: 0 0.625rem;
|
|
258
|
+
background: $wireframe-bg;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
.nodeLabelText {
|
|
262
|
+
font-size: 0.75rem;
|
|
263
|
+
font-weight: 500;
|
|
264
|
+
color: $wireframe-text;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
.nodeSelectedIcon {
|
|
268
|
+
flex-shrink: 0;
|
|
269
|
+
color: var(--tool-chrome-blue);
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
.calloutTray {
|
|
273
|
+
display: flex;
|
|
274
|
+
flex-direction: column;
|
|
275
|
+
gap: 4px;
|
|
276
|
+
border-top: 1px solid $wireframe-border;
|
|
277
|
+
background: $wireframe-subtle;
|
|
278
|
+
padding: 8px;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.callout {
|
|
282
|
+
display: flex;
|
|
283
|
+
align-items: center;
|
|
284
|
+
gap: 0.375rem;
|
|
285
|
+
width: 100%;
|
|
286
|
+
min-height: 36px;
|
|
287
|
+
padding: 0.25rem 0.5rem;
|
|
288
|
+
border: 1px solid transparent;
|
|
289
|
+
border-radius: 0.375rem;
|
|
290
|
+
background: $wireframe-bg;
|
|
291
|
+
text-align: left;
|
|
292
|
+
cursor: pointer;
|
|
293
|
+
transition:
|
|
294
|
+
border-color 0.2s ease,
|
|
295
|
+
background-color 0.2s ease;
|
|
296
|
+
|
|
297
|
+
@media (hover: hover) and (pointer: fine) {
|
|
298
|
+
&:hover {
|
|
299
|
+
border-color: $wireframe-border-medium;
|
|
300
|
+
background: color-mix(in srgb, var(--color-gray-900) 4%, $wireframe-bg);
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
&:focus:not(:focus-visible) {
|
|
305
|
+
outline: none;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
&:focus-visible {
|
|
309
|
+
outline: 2px solid color-mix(in srgb, var(--tool-chrome-blue) 55%, transparent);
|
|
310
|
+
outline-offset: -2px;
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
.calloutSelected {
|
|
315
|
+
border-color: color-mix(in srgb, var(--tool-chrome-blue) 45%, transparent);
|
|
316
|
+
background: color-mix(in srgb, var(--tool-chrome-blue) 6%, $wireframe-bg);
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
.calloutLabel {
|
|
320
|
+
flex: 1 1 auto;
|
|
321
|
+
min-width: 0;
|
|
322
|
+
font-size: 0.6875rem;
|
|
323
|
+
font-weight: 500;
|
|
324
|
+
color: $wireframe-text;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
.calloutHint {
|
|
328
|
+
flex-shrink: 0;
|
|
329
|
+
font-size: 0.625rem;
|
|
330
|
+
color: var(--color-gray-500);
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
.calloutSelectedIcon {
|
|
334
|
+
flex-shrink: 0;
|
|
335
|
+
color: var(--tool-chrome-blue);
|
|
336
|
+
}
|