@grackle-ai/web-components 0.107.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.rush/temp/3ae72563f781afd72723475938136f113846603e.untar.log +10 -0
- package/.rush/temp/bc1d5bf9201ce71abeaeaddd096deb9b0805d703.untar.log +10 -0
- package/.rush/temp/operation/_phase_build/all.log +18 -0
- package/.rush/temp/operation/_phase_build/log-chunks.jsonl +18 -0
- package/.rush/temp/operation/_phase_build/state.json +3 -0
- package/.rush/temp/operation/_phase_test/all.log +121 -0
- package/.rush/temp/operation/_phase_test/log-chunks.jsonl +121 -0
- package/.rush/temp/operation/_phase_test/state.json +3 -0
- package/.rush/temp/shrinkwrap-deps.json +938 -0
- package/.storybook/main.ts +22 -0
- package/.storybook/preview.tsx +30 -0
- package/config/rig.json +4 -0
- package/config/rush-project.json +12 -0
- package/dist/index.css +1 -0
- package/dist/index.js +39221 -0
- package/eslint.config.cjs +5 -0
- package/package.json +83 -0
- package/rush-logs/web-components._phase_build.cache.log +4 -0
- package/rush-logs/web-components._phase_test.cache.log +4 -0
- package/src/components/chat/ChatInput.module.scss +81 -0
- package/src/components/chat/ChatInput.stories.tsx +91 -0
- package/src/components/chat/ChatInput.tsx +168 -0
- package/src/components/chat/index.ts +6 -0
- package/src/components/dag/DagView.module.scss +149 -0
- package/src/components/dag/DagView.stories.tsx +125 -0
- package/src/components/dag/DagView.tsx +109 -0
- package/src/components/dag/TaskNode.stories.tsx +133 -0
- package/src/components/dag/TaskNode.tsx +40 -0
- package/src/components/dag/useDagLayout.ts +139 -0
- package/src/components/display/Breadcrumbs.module.scss +71 -0
- package/src/components/display/Breadcrumbs.stories.tsx +80 -0
- package/src/components/display/Breadcrumbs.tsx +46 -0
- package/src/components/display/Button.module.scss +110 -0
- package/src/components/display/Button.stories.tsx +88 -0
- package/src/components/display/Button.tsx +40 -0
- package/src/components/display/ConfirmDialog.module.scss +67 -0
- package/src/components/display/ConfirmDialog.stories.tsx +81 -0
- package/src/components/display/ConfirmDialog.tsx +88 -0
- package/src/components/display/CopyButton.module.scss +41 -0
- package/src/components/display/CopyButton.stories.tsx +78 -0
- package/src/components/display/CopyButton.tsx +64 -0
- package/src/components/display/DemoBanner.module.scss +37 -0
- package/src/components/display/DemoBanner.stories.tsx +40 -0
- package/src/components/display/DemoBanner.tsx +23 -0
- package/src/components/display/EventHoverRow.module.scss +102 -0
- package/src/components/display/EventHoverRow.stories.tsx +99 -0
- package/src/components/display/EventHoverRow.tsx +154 -0
- package/src/components/display/EventRenderer.module.scss +272 -0
- package/src/components/display/EventRenderer.stories.tsx +186 -0
- package/src/components/display/EventRenderer.tsx +271 -0
- package/src/components/display/EventStream.module.scss +93 -0
- package/src/components/display/EventStream.stories.tsx +249 -0
- package/src/components/display/EventStream.tsx +369 -0
- package/src/components/display/FloatingActionBar.module.scss +107 -0
- package/src/components/display/FloatingActionBar.stories.tsx +122 -0
- package/src/components/display/FloatingActionBar.tsx +119 -0
- package/src/components/display/SessionAttemptSelector.module.scss +50 -0
- package/src/components/display/SessionAttemptSelector.stories.tsx +78 -0
- package/src/components/display/SessionAttemptSelector.tsx +49 -0
- package/src/components/display/SessionPicker.module.scss +200 -0
- package/src/components/display/SessionPicker.stories.tsx +169 -0
- package/src/components/display/SessionPicker.tsx +214 -0
- package/src/components/display/Skeleton.module.scss +58 -0
- package/src/components/display/Skeleton.stories.tsx +94 -0
- package/src/components/display/Skeleton.tsx +127 -0
- package/src/components/display/Spinner.module.scss +41 -0
- package/src/components/display/Spinner.stories.tsx +66 -0
- package/src/components/display/Spinner.tsx +32 -0
- package/src/components/display/SplashScreen.module.scss +20 -0
- package/src/components/display/SplashScreen.stories.tsx +26 -0
- package/src/components/display/SplashScreen.tsx +16 -0
- package/src/components/display/SplitButton.module.scss +166 -0
- package/src/components/display/SplitButton.stories.tsx +95 -0
- package/src/components/display/SplitButton.tsx +128 -0
- package/src/components/display/Tooltip.module.scss +84 -0
- package/src/components/display/Tooltip.stories.tsx +240 -0
- package/src/components/display/Tooltip.tsx +184 -0
- package/src/components/display/extractText.test.tsx +48 -0
- package/src/components/display/index.ts +20 -0
- package/src/components/editable/EditableCheckbox.stories.tsx +54 -0
- package/src/components/editable/EditableCheckbox.tsx +39 -0
- package/src/components/editable/EditableField.module.scss +135 -0
- package/src/components/editable/EditableSelect.tsx +164 -0
- package/src/components/editable/EditableTextArea.stories.tsx +50 -0
- package/src/components/editable/EditableTextArea.tsx +148 -0
- package/src/components/editable/EditableTextField.stories.tsx +62 -0
- package/src/components/editable/EditableTextField.tsx +153 -0
- package/src/components/editable/EnvironmentSelect.module.scss +17 -0
- package/src/components/editable/EnvironmentSelect.stories.tsx +61 -0
- package/src/components/editable/EnvironmentSelect.tsx +87 -0
- package/src/components/editable/index.ts +13 -0
- package/src/components/editable/useEditableField.test.tsx +233 -0
- package/src/components/editable/useEditableField.ts +173 -0
- package/src/components/index.ts +20 -0
- package/src/components/knowledge/KnowledgeDetailPanel.module.scss +162 -0
- package/src/components/knowledge/KnowledgeDetailPanel.stories.tsx +208 -0
- package/src/components/knowledge/KnowledgeDetailPanel.tsx +122 -0
- package/src/components/knowledge/KnowledgeGraph.module.scss +110 -0
- package/src/components/knowledge/KnowledgeGraph.stories.tsx +180 -0
- package/src/components/knowledge/KnowledgeGraph.tsx +455 -0
- package/src/components/knowledge/KnowledgeNav.module.scss +130 -0
- package/src/components/knowledge/KnowledgeNav.stories.tsx +108 -0
- package/src/components/knowledge/KnowledgeNav.tsx +138 -0
- package/src/components/knowledge/index.ts +3 -0
- package/src/components/layout/AppNav.module.scss +82 -0
- package/src/components/layout/AppNav.stories.tsx +115 -0
- package/src/components/layout/AppNav.tsx +133 -0
- package/src/components/layout/BottomStatusBar.module.scss +58 -0
- package/src/components/layout/BottomStatusBar.stories.tsx +35 -0
- package/src/components/layout/BottomStatusBar.tsx +206 -0
- package/src/components/layout/Sidebar.module.scss +60 -0
- package/src/components/layout/Sidebar.stories.tsx +46 -0
- package/src/components/layout/Sidebar.tsx +84 -0
- package/src/components/layout/StatusBar.module.scss +108 -0
- package/src/components/layout/StatusBar.stories.tsx +119 -0
- package/src/components/layout/StatusBar.tsx +70 -0
- package/src/components/layout/index.ts +9 -0
- package/src/components/lists/EnvironmentNav.module.scss +118 -0
- package/src/components/lists/EnvironmentNav.stories.tsx +121 -0
- package/src/components/lists/EnvironmentNav.tsx +133 -0
- package/src/components/lists/FindingsNav.module.scss +126 -0
- package/src/components/lists/FindingsNav.tsx +146 -0
- package/src/components/lists/TaskList.module.scss +206 -0
- package/src/components/lists/TaskList.stories.tsx +401 -0
- package/src/components/lists/TaskList.tsx +509 -0
- package/src/components/lists/index.ts +6 -0
- package/src/components/lists/listHelpers.tsx +130 -0
- package/src/components/notifications/Callout.module.scss +83 -0
- package/src/components/notifications/Callout.stories.tsx +81 -0
- package/src/components/notifications/Callout.tsx +64 -0
- package/src/components/notifications/Toast.module.scss +86 -0
- package/src/components/notifications/Toast.stories.tsx +71 -0
- package/src/components/notifications/Toast.tsx +51 -0
- package/src/components/notifications/ToastContainer.module.scss +23 -0
- package/src/components/notifications/ToastContainer.stories.tsx +66 -0
- package/src/components/notifications/ToastContainer.tsx +29 -0
- package/src/components/notifications/UpdateBanner.stories.tsx +77 -0
- package/src/components/notifications/UpdateBanner.test.tsx +64 -0
- package/src/components/notifications/UpdateBanner.tsx +44 -0
- package/src/components/notifications/index.ts +8 -0
- package/src/components/panels/AboutPanel.stories.tsx +70 -0
- package/src/components/panels/AboutPanel.tsx +66 -0
- package/src/components/panels/AppearancePanel.stories.tsx +45 -0
- package/src/components/panels/AppearancePanel.tsx +97 -0
- package/src/components/panels/CredentialProvidersPanel.stories.tsx +62 -0
- package/src/components/panels/CredentialProvidersPanel.tsx +111 -0
- package/src/components/panels/EnvironmentEditPanel.module.scss +170 -0
- package/src/components/panels/EnvironmentEditPanel.stories.tsx +206 -0
- package/src/components/panels/EnvironmentEditPanel.tsx +785 -0
- package/src/components/panels/FindingsPanel.module.scss +94 -0
- package/src/components/panels/FindingsPanel.stories.tsx +109 -0
- package/src/components/panels/FindingsPanel.tsx +76 -0
- package/src/components/panels/KeyboardShortcutsPanel.module.scss +65 -0
- package/src/components/panels/KeyboardShortcutsPanel.stories.tsx +40 -0
- package/src/components/panels/KeyboardShortcutsPanel.tsx +104 -0
- package/src/components/panels/PluginsPanel.tsx +77 -0
- package/src/components/panels/SettingsPanel.module.scss +336 -0
- package/src/components/panels/TaskActionButtons.module.scss +22 -0
- package/src/components/panels/TaskActionButtons.stories.tsx +125 -0
- package/src/components/panels/TaskActionButtons.tsx +87 -0
- package/src/components/panels/TaskEditPanel.module.scss +202 -0
- package/src/components/panels/TaskEditPanel.stories.tsx +75 -0
- package/src/components/panels/TaskEditPanel.tsx +328 -0
- package/src/components/panels/TaskOverviewPanel.module.scss +236 -0
- package/src/components/panels/TaskOverviewPanel.stories.tsx +219 -0
- package/src/components/panels/TaskOverviewPanel.tsx +270 -0
- package/src/components/panels/TokensPanel.stories.tsx +131 -0
- package/src/components/panels/TokensPanel.tsx +143 -0
- package/src/components/panels/WorkpadPanel.module.scss +39 -0
- package/src/components/panels/WorkpadPanel.stories.tsx +56 -0
- package/src/components/panels/WorkpadPanel.tsx +63 -0
- package/src/components/panels/index.ts +13 -0
- package/src/components/personas/McpToolSelector.module.scss +109 -0
- package/src/components/personas/McpToolSelector.stories.tsx +129 -0
- package/src/components/personas/McpToolSelector.tsx +180 -0
- package/src/components/personas/PersonaManager.module.scss +233 -0
- package/src/components/personas/PersonaManager.stories.tsx +139 -0
- package/src/components/personas/PersonaManager.tsx +122 -0
- package/src/components/schedules/ScheduleManager.module.scss +98 -0
- package/src/components/schedules/ScheduleManager.stories.tsx +78 -0
- package/src/components/schedules/ScheduleManager.tsx +160 -0
- package/src/components/settings/SettingsNav.module.scss +82 -0
- package/src/components/settings/SettingsNav.stories.tsx +83 -0
- package/src/components/settings/SettingsNav.tsx +104 -0
- package/src/components/streams/StreamDetailPanel.module.scss +206 -0
- package/src/components/streams/StreamDetailPanel.stories.tsx +132 -0
- package/src/components/streams/StreamDetailPanel.tsx +119 -0
- package/src/components/streams/StreamList.module.scss +92 -0
- package/src/components/streams/StreamList.stories.tsx +99 -0
- package/src/components/streams/StreamList.tsx +114 -0
- package/src/components/streams/index.ts +10 -0
- package/src/components/tools/AgentToolCard.module.scss +118 -0
- package/src/components/tools/AgentToolCard.stories.tsx +304 -0
- package/src/components/tools/AgentToolCard.tsx +247 -0
- package/src/components/tools/FileEditCard.stories.tsx +138 -0
- package/src/components/tools/FileEditCard.tsx +160 -0
- package/src/components/tools/FileReadCard.stories.tsx +120 -0
- package/src/components/tools/FileReadCard.tsx +106 -0
- package/src/components/tools/FindingCard.stories.tsx +124 -0
- package/src/components/tools/FindingCard.tsx +178 -0
- package/src/components/tools/GenericToolCard.stories.tsx +80 -0
- package/src/components/tools/GenericToolCard.tsx +111 -0
- package/src/components/tools/IpcCard.stories.tsx +129 -0
- package/src/components/tools/IpcCard.tsx +178 -0
- package/src/components/tools/KnowledgeCard.stories.tsx +112 -0
- package/src/components/tools/KnowledgeCard.tsx +165 -0
- package/src/components/tools/MetadataCard.stories.tsx +32 -0
- package/src/components/tools/MetadataCard.tsx +39 -0
- package/src/components/tools/SearchCard.stories.tsx +74 -0
- package/src/components/tools/SearchCard.tsx +86 -0
- package/src/components/tools/ShellCard.stories.tsx +112 -0
- package/src/components/tools/ShellCard.tsx +106 -0
- package/src/components/tools/TaskCard.stories.tsx +123 -0
- package/src/components/tools/TaskCard.tsx +203 -0
- package/src/components/tools/TodoCard.module.scss +131 -0
- package/src/components/tools/TodoCard.stories.tsx +202 -0
- package/src/components/tools/TodoCard.tsx +200 -0
- package/src/components/tools/ToolCard.stories.tsx +177 -0
- package/src/components/tools/ToolCard.tsx +60 -0
- package/src/components/tools/ToolCardProps.ts +20 -0
- package/src/components/tools/ToolSearchCard.stories.tsx +81 -0
- package/src/components/tools/ToolSearchCard.tsx +86 -0
- package/src/components/tools/WorkpadCard.stories.tsx +106 -0
- package/src/components/tools/WorkpadCard.tsx +125 -0
- package/src/components/tools/classifyTool.test.ts +44 -0
- package/src/components/tools/classifyTool.ts +134 -0
- package/src/components/tools/parseDiff.ts +95 -0
- package/src/components/tools/parseShellOutput.ts +28 -0
- package/src/components/tools/toolCardHelpers.test.ts +53 -0
- package/src/components/tools/toolCards.module.scss +234 -0
- package/src/components/workspace/WorkspaceBoard.module.scss +238 -0
- package/src/components/workspace/WorkspaceBoard.stories.tsx +240 -0
- package/src/components/workspace/WorkspaceBoard.tsx +232 -0
- package/src/components/workspace/WorkspaceFormFields.module.scss +79 -0
- package/src/components/workspace/WorkspaceFormFields.stories.tsx +133 -0
- package/src/components/workspace/WorkspaceFormFields.tsx +185 -0
- package/src/context/GrackleContext.ts +28 -0
- package/src/context/GrackleContextTypes.ts +64 -0
- package/src/context/SidebarContext.tsx +53 -0
- package/src/context/ThemeContext.tsx +21 -0
- package/src/context/ToastContext.tsx +56 -0
- package/src/hooks/types.ts +864 -0
- package/src/hooks/useEventSelection.test.ts +204 -0
- package/src/hooks/useEventSelection.ts +158 -0
- package/src/hooks/useSmartScroll.ts +151 -0
- package/src/hooks/useTheme.ts +228 -0
- package/src/index.ts +210 -0
- package/src/mocks/MockGrackleProvider.tsx +1397 -0
- package/src/mocks/mockData.ts +1966 -0
- package/src/mocks/mockKnowledgeData.ts +294 -0
- package/src/scss.d.ts +12 -0
- package/src/styles/global.scss +244 -0
- package/src/styles/mixins.scss +278 -0
- package/src/styles/prism-theme.scss +148 -0
- package/src/styles/theme.scss +1102 -0
- package/src/test-utils/storybook-decorators.tsx +50 -0
- package/src/test-utils/storybook-helpers.ts +262 -0
- package/src/themes.ts +142 -0
- package/src/utils/boardColumns.ts +141 -0
- package/src/utils/breadcrumbs.test.ts +285 -0
- package/src/utils/breadcrumbs.ts +222 -0
- package/src/utils/dashboard.test.ts +156 -0
- package/src/utils/dashboard.ts +195 -0
- package/src/utils/eventContent.test.ts +353 -0
- package/src/utils/eventContent.ts +209 -0
- package/src/utils/findingCategory.ts +33 -0
- package/src/utils/format.ts +27 -0
- package/src/utils/iconSize.ts +18 -0
- package/src/utils/navigation.ts +205 -0
- package/src/utils/route-config.test.ts +128 -0
- package/src/utils/scrollUtils.test.ts +65 -0
- package/src/utils/scrollUtils.ts +49 -0
- package/src/utils/sessionEvents.test.ts +302 -0
- package/src/utils/sessionEvents.ts +233 -0
- package/src/utils/taskStatus.tsx +137 -0
- package/src/utils/time.ts +92 -0
- package/tsconfig.json +8 -0
- package/vite.config.ts +20 -0
- package/vitest.config.ts +10 -0
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
// ============================================================================
|
|
2
|
+
// Mixins — Grackle Web UI
|
|
3
|
+
// ============================================================================
|
|
4
|
+
// Reusable style patterns consumed by component .module.scss files via:
|
|
5
|
+
// @use '../styles/mixins' as *;
|
|
6
|
+
//
|
|
7
|
+
// Surface mixins include glass properties (backdrop-filter, highlights) via
|
|
8
|
+
// CSS custom properties. In the glass theme these are active values; in
|
|
9
|
+
// light/dark they are zeroed, so the properties become no-ops.
|
|
10
|
+
// ============================================================================
|
|
11
|
+
|
|
12
|
+
// =============================================================================
|
|
13
|
+
// Responsive Breakpoints
|
|
14
|
+
// =============================================================================
|
|
15
|
+
|
|
16
|
+
$mobile: 768px;
|
|
17
|
+
$tablet: 1024px;
|
|
18
|
+
|
|
19
|
+
/// Mobile breakpoint — applies when viewport is 768px or narrower.
|
|
20
|
+
@mixin mobile { @media (max-width: $mobile) { @content; } }
|
|
21
|
+
|
|
22
|
+
/// Tablet media query (max-width: 1024px).
|
|
23
|
+
@mixin tablet { @media (max-width: $tablet) { @content; } }
|
|
24
|
+
|
|
25
|
+
// =============================================================================
|
|
26
|
+
// Surfaces
|
|
27
|
+
// =============================================================================
|
|
28
|
+
|
|
29
|
+
/// Structural panel — layout shells (StatusBar, Sidebar, bars).
|
|
30
|
+
/// Glass effects activate when --glass-blur is non-zero.
|
|
31
|
+
@mixin surface-panel {
|
|
32
|
+
background: var(--bg-surface);
|
|
33
|
+
backdrop-filter: blur(var(--glass-blur));
|
|
34
|
+
-webkit-backdrop-filter: blur(var(--glass-blur));
|
|
35
|
+
border: var(--border-width, 1px) solid var(--glass-border);
|
|
36
|
+
box-shadow: var(--highlight-top);
|
|
37
|
+
position: relative;
|
|
38
|
+
|
|
39
|
+
&::after {
|
|
40
|
+
content: '';
|
|
41
|
+
position: absolute;
|
|
42
|
+
inset: 0;
|
|
43
|
+
background: linear-gradient(180deg, var(--glass-highlight) 0%, transparent 40px);
|
|
44
|
+
pointer-events: none;
|
|
45
|
+
border-radius: inherit;
|
|
46
|
+
opacity: var(--glass-inner-glow);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/// Elevated card — floating content (tool events, findings, dialogs).
|
|
51
|
+
@mixin surface-card {
|
|
52
|
+
background: var(--bg-elevated);
|
|
53
|
+
backdrop-filter: blur(var(--glass-blur-card));
|
|
54
|
+
-webkit-backdrop-filter: blur(var(--glass-blur-card));
|
|
55
|
+
border: var(--border-width, 1px) solid var(--glass-border);
|
|
56
|
+
border-radius: var(--radius-lg);
|
|
57
|
+
box-shadow: var(--shadow-xs), var(--highlight-top);
|
|
58
|
+
position: relative;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/// Recessed inset — nested elements inside cards (code blocks, tags, badges).
|
|
62
|
+
@mixin surface-inset {
|
|
63
|
+
background: var(--bg-inset);
|
|
64
|
+
backdrop-filter: blur(var(--glass-blur-inset));
|
|
65
|
+
-webkit-backdrop-filter: blur(var(--glass-blur-inset));
|
|
66
|
+
border: var(--border-width, 1px) solid var(--glass-border);
|
|
67
|
+
border-radius: var(--radius-sm);
|
|
68
|
+
box-shadow: var(--highlight-top);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
// =============================================================================
|
|
72
|
+
// Hover & Focus
|
|
73
|
+
// =============================================================================
|
|
74
|
+
|
|
75
|
+
/// Standard accent hover — subtle background tint on hover.
|
|
76
|
+
/// Includes backdrop-filter for glass theme.
|
|
77
|
+
@mixin hover-accent {
|
|
78
|
+
transition: background var(--transition-fast),
|
|
79
|
+
color var(--transition-fast),
|
|
80
|
+
backdrop-filter var(--transition-fast);
|
|
81
|
+
|
|
82
|
+
&:hover {
|
|
83
|
+
background: var(--bg-overlay);
|
|
84
|
+
backdrop-filter: blur(var(--glass-blur-inset));
|
|
85
|
+
-webkit-backdrop-filter: blur(var(--glass-blur-inset));
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/// Card hover — increases shadow depth and border on hover.
|
|
90
|
+
@mixin card-hover {
|
|
91
|
+
transition: box-shadow var(--transition-fast),
|
|
92
|
+
border-color var(--transition-fast),
|
|
93
|
+
backdrop-filter var(--transition-fast);
|
|
94
|
+
|
|
95
|
+
&:hover {
|
|
96
|
+
box-shadow: var(--shadow-sm), var(--highlight-top);
|
|
97
|
+
border-color: var(--glass-border-hover);
|
|
98
|
+
backdrop-filter: blur(var(--glass-blur-inset));
|
|
99
|
+
-webkit-backdrop-filter: blur(var(--glass-blur-inset));
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
// =============================================================================
|
|
104
|
+
// Buttons
|
|
105
|
+
// =============================================================================
|
|
106
|
+
|
|
107
|
+
/// Primary action button (green/brand).
|
|
108
|
+
@mixin btn-primary {
|
|
109
|
+
background: var(--accent-green);
|
|
110
|
+
border: 1px solid var(--accent-green);
|
|
111
|
+
color: #ffffff;
|
|
112
|
+
padding: var(--space-sm) var(--space-lg);
|
|
113
|
+
border-radius: var(--radius-md);
|
|
114
|
+
cursor: pointer;
|
|
115
|
+
font-family: var(--font-ui);
|
|
116
|
+
font-size: var(--font-size-sm);
|
|
117
|
+
font-weight: var(--font-weight-bold);
|
|
118
|
+
box-shadow: var(--shadow-xs);
|
|
119
|
+
transition: background var(--transition-fast),
|
|
120
|
+
box-shadow var(--transition-fast),
|
|
121
|
+
transform var(--transition-fast);
|
|
122
|
+
|
|
123
|
+
&:hover {
|
|
124
|
+
box-shadow: var(--shadow-glow-green);
|
|
125
|
+
transform: translateY(-1px);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
&:active {
|
|
129
|
+
transform: translateY(0);
|
|
130
|
+
box-shadow: none;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
&:focus-visible {
|
|
134
|
+
outline: 2px solid var(--ring);
|
|
135
|
+
outline-offset: 2px;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
&:disabled {
|
|
139
|
+
opacity: 0.64;
|
|
140
|
+
cursor: not-allowed;
|
|
141
|
+
pointer-events: none;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/// Danger action button (red).
|
|
146
|
+
@mixin btn-danger {
|
|
147
|
+
@include btn-primary;
|
|
148
|
+
background: var(--accent-red);
|
|
149
|
+
border-color: var(--accent-red);
|
|
150
|
+
|
|
151
|
+
&:hover {
|
|
152
|
+
box-shadow: var(--shadow-glow-red);
|
|
153
|
+
transform: translateY(-1px);
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
/// Outline button — bordered with background on hover.
|
|
158
|
+
@mixin btn-outline($color: var(--accent-green)) {
|
|
159
|
+
background: var(--bg-surface);
|
|
160
|
+
border: 1px solid var(--border-input);
|
|
161
|
+
color: $color;
|
|
162
|
+
border-radius: var(--radius-md);
|
|
163
|
+
cursor: pointer;
|
|
164
|
+
font-family: var(--font-ui);
|
|
165
|
+
box-shadow: var(--shadow-xs);
|
|
166
|
+
transition: background var(--transition-fast),
|
|
167
|
+
border-color var(--transition-fast);
|
|
168
|
+
|
|
169
|
+
&:hover {
|
|
170
|
+
background: var(--bg-overlay);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
&:focus-visible {
|
|
174
|
+
outline: 2px solid var(--ring);
|
|
175
|
+
outline-offset: 2px;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
&:disabled {
|
|
179
|
+
opacity: 0.64;
|
|
180
|
+
cursor: not-allowed;
|
|
181
|
+
pointer-events: none;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
/// Ghost button — no border or shadow, tints on hover.
|
|
186
|
+
@mixin btn-ghost($color: var(--accent-green)) {
|
|
187
|
+
background: none;
|
|
188
|
+
border: 1px solid transparent;
|
|
189
|
+
color: $color;
|
|
190
|
+
border-radius: var(--radius-md);
|
|
191
|
+
cursor: pointer;
|
|
192
|
+
font-family: var(--font-ui);
|
|
193
|
+
transition: background var(--transition-fast);
|
|
194
|
+
|
|
195
|
+
&:hover {
|
|
196
|
+
background: var(--bg-overlay);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
&:focus-visible {
|
|
200
|
+
outline: 2px solid var(--ring);
|
|
201
|
+
outline-offset: 2px;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
&:disabled {
|
|
205
|
+
opacity: 0.64;
|
|
206
|
+
cursor: not-allowed;
|
|
207
|
+
pointer-events: none;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
// =============================================================================
|
|
212
|
+
// Form Controls
|
|
213
|
+
// =============================================================================
|
|
214
|
+
|
|
215
|
+
/// Standard input field.
|
|
216
|
+
@mixin input-field {
|
|
217
|
+
background: var(--bg-input);
|
|
218
|
+
border: 1px solid var(--border-input);
|
|
219
|
+
color: var(--text-primary);
|
|
220
|
+
padding: var(--space-sm) var(--space-md);
|
|
221
|
+
border-radius: var(--radius-md);
|
|
222
|
+
font-family: var(--font-ui);
|
|
223
|
+
font-size: var(--font-size-md);
|
|
224
|
+
outline: none;
|
|
225
|
+
box-shadow: var(--shadow-xs);
|
|
226
|
+
transition: border-color var(--transition-fast),
|
|
227
|
+
box-shadow var(--transition-fast),
|
|
228
|
+
backdrop-filter var(--transition-fast);
|
|
229
|
+
|
|
230
|
+
&:focus {
|
|
231
|
+
border-color: var(--ring);
|
|
232
|
+
box-shadow: 0 0 0 3px var(--ring-alpha), var(--highlight-top);
|
|
233
|
+
backdrop-filter: blur(var(--glass-blur-inset));
|
|
234
|
+
-webkit-backdrop-filter: blur(var(--glass-blur-inset));
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
&::placeholder {
|
|
238
|
+
color: var(--text-tertiary);
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
&:disabled {
|
|
242
|
+
opacity: 0.64;
|
|
243
|
+
cursor: not-allowed;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
/// Select field — inherits from input-field with smaller sizing.
|
|
248
|
+
@mixin select-field {
|
|
249
|
+
@include input-field;
|
|
250
|
+
font-size: var(--font-size-sm);
|
|
251
|
+
padding: var(--space-sm);
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
// =============================================================================
|
|
255
|
+
// Typography
|
|
256
|
+
// =============================================================================
|
|
257
|
+
|
|
258
|
+
/// Uppercase section label.
|
|
259
|
+
@mixin section-label {
|
|
260
|
+
font-size: var(--font-size-xs);
|
|
261
|
+
color: var(--text-tertiary);
|
|
262
|
+
text-transform: uppercase;
|
|
263
|
+
letter-spacing: 1.5px;
|
|
264
|
+
font-weight: var(--font-weight-medium);
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
// =============================================================================
|
|
268
|
+
// Animation Helpers
|
|
269
|
+
// =============================================================================
|
|
270
|
+
|
|
271
|
+
/// CSS-only staggered fade-in for list children.
|
|
272
|
+
@mixin stagger-children($count: 20, $delay: 30ms) {
|
|
273
|
+
@for $i from 1 through $count {
|
|
274
|
+
&:nth-child(#{$i}) {
|
|
275
|
+
animation-delay: #{$i * $delay};
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
}
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
// ============================================================================
|
|
2
|
+
// Prism Syntax Highlighting Theme — Grackle Web UI
|
|
3
|
+
// ============================================================================
|
|
4
|
+
// Token colors reference CSS custom properties (--code-*) defined in
|
|
5
|
+
// theme.scss, so syntax highlighting automatically adapts to
|
|
6
|
+
// light/dark theme via the data-theme attribute.
|
|
7
|
+
// ============================================================================
|
|
8
|
+
|
|
9
|
+
// ---------------------------------------------------------------------------
|
|
10
|
+
// Base code block styles
|
|
11
|
+
// ---------------------------------------------------------------------------
|
|
12
|
+
|
|
13
|
+
code[class*='language-'],
|
|
14
|
+
pre[class*='language-'] {
|
|
15
|
+
color: var(--text-primary);
|
|
16
|
+
text-align: left;
|
|
17
|
+
white-space: pre;
|
|
18
|
+
word-spacing: normal;
|
|
19
|
+
word-break: normal;
|
|
20
|
+
word-wrap: normal;
|
|
21
|
+
tab-size: 2;
|
|
22
|
+
hyphens: none;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
// ---------------------------------------------------------------------------
|
|
26
|
+
// Token Colors — referencing theme CSS variables
|
|
27
|
+
// ---------------------------------------------------------------------------
|
|
28
|
+
|
|
29
|
+
.token.comment,
|
|
30
|
+
.token.prolog,
|
|
31
|
+
.token.doctype,
|
|
32
|
+
.token.cdata {
|
|
33
|
+
color: var(--code-comment);
|
|
34
|
+
font-style: italic;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.token.punctuation {
|
|
38
|
+
color: var(--code-punctuation);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.token.namespace {
|
|
42
|
+
opacity: 0.8;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.token.string,
|
|
46
|
+
.token.attr-value,
|
|
47
|
+
.token.template-string,
|
|
48
|
+
.token.template-punctuation,
|
|
49
|
+
.token.inserted {
|
|
50
|
+
color: var(--code-string);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.token.number,
|
|
54
|
+
.token.boolean,
|
|
55
|
+
.token.constant,
|
|
56
|
+
.token.symbol {
|
|
57
|
+
color: var(--code-number);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.token.keyword,
|
|
61
|
+
.token.tag,
|
|
62
|
+
.token.important {
|
|
63
|
+
color: var(--code-keyword);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.token.function,
|
|
67
|
+
.token.builtin {
|
|
68
|
+
color: var(--code-function);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.token.selector,
|
|
72
|
+
.token.attr-name,
|
|
73
|
+
.token.char {
|
|
74
|
+
color: var(--code-function);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.token.class-name,
|
|
78
|
+
.token.maybe-class-name {
|
|
79
|
+
color: var(--code-class);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.token.regex,
|
|
83
|
+
.token.deleted {
|
|
84
|
+
color: var(--code-deleted);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.token.operator,
|
|
88
|
+
.token.entity,
|
|
89
|
+
.token.url {
|
|
90
|
+
color: var(--code-keyword);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.token.variable,
|
|
94
|
+
.token.property {
|
|
95
|
+
color: var(--text-primary);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.token.atrule {
|
|
99
|
+
color: var(--code-class);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
// ---------------------------------------------------------------------------
|
|
103
|
+
// Modifiers
|
|
104
|
+
// ---------------------------------------------------------------------------
|
|
105
|
+
|
|
106
|
+
.token.bold {
|
|
107
|
+
font-weight: var(--font-weight-bold);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.token.italic {
|
|
111
|
+
font-style: italic;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.token.entity {
|
|
115
|
+
cursor: help;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
// ---------------------------------------------------------------------------
|
|
119
|
+
// Line highlighting (rehype-prism-plus)
|
|
120
|
+
// ---------------------------------------------------------------------------
|
|
121
|
+
// When using `{1,3-5}` syntax on fenced code blocks, highlighted lines
|
|
122
|
+
// receive the `.highlight-line` class.
|
|
123
|
+
|
|
124
|
+
.highlight-line {
|
|
125
|
+
background: var(--accent-green-subtle);
|
|
126
|
+
border-left: 3px solid var(--accent-green);
|
|
127
|
+
margin-left: -3px;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
// ---------------------------------------------------------------------------
|
|
131
|
+
// Line numbers (rehype-prism-plus `showLineNumbers`)
|
|
132
|
+
// ---------------------------------------------------------------------------
|
|
133
|
+
|
|
134
|
+
.code-line {
|
|
135
|
+
display: block;
|
|
136
|
+
padding-left: var(--space-xs);
|
|
137
|
+
padding-right: var(--space-xs);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.line-number::before {
|
|
141
|
+
content: attr(line);
|
|
142
|
+
display: inline-block;
|
|
143
|
+
width: 2em;
|
|
144
|
+
margin-right: var(--space-sm);
|
|
145
|
+
text-align: right;
|
|
146
|
+
color: var(--text-tertiary);
|
|
147
|
+
user-select: none;
|
|
148
|
+
}
|