zidane-ui 9.2.2 → 9.2.3
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/dist/adapters/browser-keybindings-host.js +3 -1
- package/dist/adapters/server-settings-host.js +30 -3
- package/dist/adapters/server-settings-sections.js +23 -1
- package/dist/adapters/server-sidebar-host.d.ts +3 -1
- package/dist/adapters/server-sidebar-host.js +10 -1
- package/dist/app/ModalProvider.js +1 -1
- package/dist/approvals/ApprovalShell.js +1 -1
- package/dist/chat/DaemonOrb.d.ts +29 -1
- package/dist/chat/DaemonOrb.js +25 -12
- package/dist/chat/StatusDot.js +8 -2
- package/dist/chat/Transcript.js +11 -4
- package/dist/chat/headless/index.d.ts +3 -2
- package/dist/chat/headless/index.js +11 -10
- package/dist/chat/headless/labels.d.ts +13 -0
- package/dist/chat/headless/labels.js +12 -0
- package/dist/chat/headless/session-list.d.ts +10 -0
- package/dist/chat/headless/sidebar/directory.d.ts +8 -1
- package/dist/chat/headless/sidebar/directory.js +40 -4
- package/dist/chat/headless/sidebar/environment.d.ts +5 -2
- package/dist/chat/headless/sidebar/environment.js +11 -2
- package/dist/chat/headless/sidebar/host.d.ts +15 -0
- package/dist/chat/headless/sidebar/inbox.d.ts +12 -3
- package/dist/chat/headless/sidebar/inbox.js +18 -9
- package/dist/chat/headless/sidebar/index.d.ts +2 -2
- package/dist/chat/headless/sidebar/index.js +2 -2
- package/dist/chat/headless/sidebar/labels.d.ts +28 -2
- package/dist/chat/headless/sidebar/labels.js +16 -0
- package/dist/chat/headless/transcript/fold-actions.d.ts +8 -3
- package/dist/chat/headless/transcript/fold-actions.js +16 -0
- package/dist/chat/headless/transcript/fold.d.ts +2 -1
- package/dist/chat/headless/transcript/fold.js +22 -2
- package/dist/chat/headless/transcript/index.d.ts +2 -1
- package/dist/chat/headless/transcript/index.js +2 -1
- package/dist/chat/headless/transcript/rail.d.ts +93 -0
- package/dist/chat/headless/transcript/rail.js +148 -0
- package/dist/chat/headless/transcript/rows.d.ts +6 -0
- package/dist/chat/headless/transcript/run-failures.d.ts +4 -0
- package/dist/chat/headless/transcript/run-failures.js +29 -1
- package/dist/chat/headless/transcript-labels.d.ts +1 -0
- package/dist/chat/headless/turn-labels.d.ts +1 -0
- package/dist/chat/headless/turn-labels.js +2 -1
- package/dist/chat/index.d.ts +4 -3
- package/dist/chat/index.js +14 -13
- package/dist/chat/interactions/ElicitationCard.js +1 -1
- package/dist/chat/interactions/InteractionCard.js +1 -1
- package/dist/chat/interactions/PlanCard.js +3 -3
- package/dist/chat/interactions/QuestionField.js +4 -4
- package/dist/chat/interactions/QuestionForm.js +3 -3
- package/dist/chat/interactions/SecretInput.js +1 -1
- package/dist/chat/sidebar/ProjectIcon.d.ts +1 -1
- package/dist/chat/sidebar/ProjectIcon.js +1 -1
- package/dist/chat/sidebar/RowChips.d.ts +3 -2
- package/dist/chat/sidebar/RowChips.js +6 -3
- package/dist/chat/sidebar/SessionSidebar.js +13 -14
- package/dist/chat/sidebar/SidebarFrame.d.ts +2 -0
- package/dist/chat/sidebar/SidebarFrame.js +5 -2
- package/dist/chat/sidebar/SidebarSessionRow.d.ts +3 -1
- package/dist/chat/sidebar/SidebarSessionRow.js +3 -1
- package/dist/chat/sidebar/SpacesSection.d.ts +20 -1
- package/dist/chat/sidebar/SpacesSection.js +34 -13
- package/dist/chat/sidebar/index.d.ts +2 -2
- package/dist/chat/sidebar/session-menu.d.ts +11 -2
- package/dist/chat/sidebar/session-menu.js +50 -5
- package/dist/chat/sidebar/sidebar-live.js +1 -1
- package/dist/chat/sidebar/useInboxRows.js +43 -2
- package/dist/chat/sidebar/useInboxTriage.js +19 -14
- package/dist/chat/testing/fixture-sidebar-host.d.ts +7 -1
- package/dist/chat/testing/fixture-sidebar-host.js +12 -0
- package/dist/chat/testing/sidebar.contract.d.ts +6 -0
- package/dist/chat/testing/sidebar.contract.js +24 -0
- package/dist/chat/transcript/InteractionToolBody.js +1 -1
- package/dist/chat/transcript/SelectCursor.d.ts +11 -1
- package/dist/chat/transcript/SelectCursor.js +10 -5
- package/dist/chat/transcript/TranscriptRail.d.ts +86 -0
- package/dist/chat/transcript/TranscriptRail.js +421 -0
- package/dist/chat/transcript/TranscriptRow.js +5 -2
- package/dist/chat/transcript/actions.d.ts +6 -2
- package/dist/chat/transcript/fold.js +19 -1
- package/dist/chat/transcript/index.d.ts +3 -2
- package/dist/chat/transcript/index.js +3 -2
- package/dist/chat/transcript/notices.d.ts +23 -1
- package/dist/chat/transcript/notices.js +108 -27
- package/dist/chat/transcript/prose.js +1 -0
- package/dist/chat/transcript/receipt-parts.d.ts +22 -0
- package/dist/chat/transcript/receipt-parts.js +87 -0
- package/dist/chat/transcript/run-rows.js +3 -76
- package/dist/chat/transcript/script-input.d.ts +1 -1
- package/dist/chat/transcript/scroll-clamp.js +1 -1
- package/dist/chat/transcript/useSettledReveal.js +15 -3
- package/dist/chat/transcript/useStickToBottom.js +2 -1
- package/dist/components/ChoiceCards.js +1 -1
- package/dist/components/ConfirmDialog.js +1 -1
- package/dist/components/CopyValue.d.ts +33 -0
- package/dist/components/CopyValue.js +54 -0
- package/dist/components/Form.js +1 -1
- package/dist/components/HowItWorks.js +1 -1
- package/dist/components/Menu.js +1 -1
- package/dist/components/StepFrame.js +2 -2
- package/dist/components/SwatchPicker.js +1 -1
- package/dist/components/ToggleCard.js +1 -1
- package/dist/components/floating/HoverCard.js +2 -3
- package/dist/components/floating/hover-delay.d.ts +4 -0
- package/dist/components/floating/hover-delay.js +6 -0
- package/dist/core.css +14 -12
- package/dist/dist/index-De9AbmxS.d.ts +1 -0
- package/dist/dist/{index-Betz0OWq.d.ts → index-E1Z0aPmi.d.ts} +20 -2
- package/dist/dist/index.d.ts +5 -5
- package/dist/dist/sandbox-CSUihARm.d.ts +2 -0
- package/dist/dist/{timeout-CyU7HLyz.d.ts → timeout-CmTx6V9y.d.ts} +1 -0
- package/dist/extensions/ExtensionDialogHost.js +1 -1
- package/dist/files/TreeColumn.js +3 -1
- package/dist/files/headless/host.d.ts +2 -2
- package/dist/git/ImportRepoDialog.js +1 -1
- package/dist/git/MoveSessionDialog.js +2 -2
- package/dist/git/SandboxManager.d.ts +42 -0
- package/dist/git/SandboxManager.js +297 -0
- package/dist/git/SyncChip.js +1 -1
- package/dist/git/headless/index.d.ts +2 -1
- package/dist/git/headless/index.js +2 -1
- package/dist/git/headless/labels.d.ts +29 -0
- package/dist/git/headless/labels.js +34 -1
- package/dist/git/headless/sandboxes.d.ts +43 -0
- package/dist/git/headless/sandboxes.js +52 -0
- package/dist/git/index.d.ts +2 -1
- package/dist/git/index.js +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/keybindings/headless/catalog.d.ts +1 -1
- package/dist/keybindings/headless/catalog.js +12 -0
- package/dist/machines/HostsSection.d.ts +1 -1
- package/dist/machines/headless/labels.js +2 -2
- package/dist/motion/flip-list.js +3 -10
- package/dist/motion/presence.d.ts +10 -0
- package/dist/motion/presence.js +20 -1
- package/dist/motion/swap.d.ts +8 -2
- package/dist/motion/swap.js +5 -2
- package/dist/onboarding/conversation.js +27 -15
- package/dist/onboarding/demos/how-it-works.js +1 -1
- package/dist/onboarding/skills/parts.js +4 -4
- package/dist/onboarding/sources/SourceBrowser.js +1 -1
- package/dist/onboarding/steps/ReadyStep.js +1 -1
- package/dist/onboarding/steps/connect/KeyForm.js +1 -1
- package/dist/palette/headless/app-sources.js +20 -0
- package/dist/palette/headless/labels.js +2 -0
- package/dist/session/PlanTracker.js +3 -3
- package/dist/session/SecretsPanel.js +1 -1
- package/dist/session/SessionHeader.d.ts +18 -6
- package/dist/session/SessionHeader.js +67 -12
- package/dist/session/SessionPlaceMenu.d.ts +35 -0
- package/dist/session/SessionPlaceMenu.js +299 -0
- package/dist/session/SessionShell.js +1 -1
- package/dist/session/TurnDetailsDialog.js +1 -1
- package/dist/session/headless/index.d.ts +2 -1
- package/dist/session/headless/index.js +2 -1
- package/dist/session/headless/labels.d.ts +73 -0
- package/dist/session/headless/labels.js +73 -0
- package/dist/session/headless/place.d.ts +49 -0
- package/dist/session/headless/place.js +57 -0
- package/dist/session/index.d.ts +2 -1
- package/dist/session/index.js +2 -1
- package/dist/settings/ConversationPresetsCard.js +1 -1
- package/dist/settings/SettingCard.js +2 -2
- package/dist/settings/SettingsRowsPage.js +1 -1
- package/dist/settings/headless/fixture-sections.js +7 -0
- package/dist/settings/headless/labels.d.ts +1 -1
- package/dist/settings/headless/labels.js +1 -1
- package/dist/settings/headless/layout.d.ts +4 -4
- package/dist/settings/headless/layout.js +1 -1
- package/dist/settings/headless/search.d.ts +2 -2
- package/dist/settings/headless/sections-host.d.ts +20 -2
- package/dist/settings/sections/claude-import/ClaudeImportDialog.js +1 -1
- package/dist/settings/sections/enabled-list/EnabledListSection.js +2 -2
- package/dist/settings/sections/environments/EnvironmentsSection.d.ts +9 -3
- package/dist/settings/sections/environments/EnvironmentsSection.js +292 -52
- package/dist/settings/sections/environments/labels.d.ts +15 -0
- package/dist/settings/sections/environments/labels.js +18 -3
- package/dist/settings/sections/extensions/ChangeOriginDialog.js +1 -1
- package/dist/settings/sections/extensions/ExtensionSourceBrowser.js +1 -1
- package/dist/settings/sections/extensions/ExtensionsSection.d.ts +3 -2
- package/dist/settings/sections/extensions/ExtensionsSection.js +9 -3
- package/dist/settings/sections/host-catalog/HostCatalogSection.js +15 -5
- package/dist/settings/sections/keybindings/labels.d.ts +2 -0
- package/dist/settings/sections/keybindings/labels.js +2 -0
- package/dist/settings/sections/keybindings/rows.js +8 -0
- package/dist/settings/sections/models/SpacesDefaultsSection.d.ts +7 -3
- package/dist/settings/sections/models/SpacesDefaultsSection.js +11 -5
- package/dist/settings/sections/skills/SkillGroups.js +1 -1
- package/dist/settings/server-app.d.ts +4 -2
- package/dist/settings/server-app.js +7 -3
- package/dist/settings/testing/sections.contract.d.ts +7 -1
- package/dist/settings/testing/sections.contract.js +37 -0
- package/dist/styles.css +212 -19
- package/dist/terminal/TerminalDrawer.js +3 -1
- package/dist/workspace/SidePanel.js +3 -1
- package/package.json +2 -2
- package/src/styles/base.css +13 -0
- package/src/styles/chat.css +30 -0
- package/src/styles/components.css +0 -10
- package/src/styles/files.css +5 -0
- package/src/styles/sidebar.css +29 -7
- package/src/styles/terminal.css +6 -0
- package/src/styles/tokens.css +5 -0
- package/src/styles/transcript.css +107 -0
- package/src/styles/workspace.css +6 -0
- package/dist/dist/index-QcFzZlao.d.ts +0 -1
- package/dist/dist/sandbox-D0zsW8I1.d.ts +0 -2
- /package/dist/dist/{types-_Dtoq_No.d.ts → execution-failure-SREfl-EZ.d.ts} +0 -0
|
@@ -4,7 +4,7 @@ import { useResizeDrag } from "../hooks/useResizeDrag.js";
|
|
|
4
4
|
import { getMergedKeybindings } from "../keybindings/headless/overrides.js";
|
|
5
5
|
import { useKeybindingsHost } from "../keybindings/KeybindingsProvider.js";
|
|
6
6
|
import { KeyHint } from "../keybindings/KeyHint.js";
|
|
7
|
-
import { readPanelMs, usePresence } from "../motion/presence.js";
|
|
7
|
+
import { readPanelMs, usePanelSettled, usePresence } from "../motion/presence.js";
|
|
8
8
|
import { useWorkspaceView } from "../workspace/WorkspaceProvider.js";
|
|
9
9
|
import { terminalScopeKey } from "./headless/scope.js";
|
|
10
10
|
import { TerminalPanel } from "./TerminalPanel.js";
|
|
@@ -48,6 +48,7 @@ function Drawer({ scope, className }) {
|
|
|
48
48
|
exitMs: readPanelMs,
|
|
49
49
|
key: terminalScopeKey(scope)
|
|
50
50
|
});
|
|
51
|
+
const settled = usePanelSettled(presence.state);
|
|
51
52
|
const ref = useRef(null);
|
|
52
53
|
const [columnHeight, setColumnHeight] = useState(0);
|
|
53
54
|
useEffect(() => {
|
|
@@ -85,6 +86,7 @@ function Drawer({ scope, className }) {
|
|
|
85
86
|
"aria-hidden": !open,
|
|
86
87
|
"data-testid": "terminal-drawer",
|
|
87
88
|
"data-collapsed": !open,
|
|
89
|
+
"data-settled": settled || void 0,
|
|
88
90
|
...drawerProps,
|
|
89
91
|
className: `zg-terminal-drawer outline-none relative shrink-0 border-t border-[var(--zg-hairline)] bg-[var(--zg-bg)]${className ? ` ${className}` : ""}`,
|
|
90
92
|
style: { "--zg-terminal-h": `${height}px` },
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CountBadge } from "../components/TabPill.js";
|
|
2
2
|
import { useResizeDrag } from "../hooks/useResizeDrag.js";
|
|
3
|
-
import { readPanelMs, usePresence } from "../motion/presence.js";
|
|
3
|
+
import { readPanelMs, usePanelSettled, usePresence } from "../motion/presence.js";
|
|
4
4
|
import { useSlotRegistry } from "./dnd/parking.js";
|
|
5
5
|
import { PanelGroups } from "./PanelGroups.js";
|
|
6
6
|
import { PanelHome } from "./PanelHome.js";
|
|
@@ -33,6 +33,7 @@ const SidePanel = memo(({ registry, width, minWidth, maxWidth, defaultWidth = wi
|
|
|
33
33
|
exitMs: readPanelMs,
|
|
34
34
|
key
|
|
35
35
|
});
|
|
36
|
+
const settled = usePanelSettled(presence.state);
|
|
36
37
|
const asideRef = useRef(null);
|
|
37
38
|
const sheetFull = full.mounted;
|
|
38
39
|
useEffect(() => {
|
|
@@ -70,6 +71,7 @@ const SidePanel = memo(({ registry, width, minWidth, maxWidth, defaultWidth = wi
|
|
|
70
71
|
"aria-hidden": !open,
|
|
71
72
|
hidden: parked,
|
|
72
73
|
"data-collapsed": !open,
|
|
74
|
+
"data-settled": settled || void 0,
|
|
73
75
|
"data-overlay": overlay || void 0,
|
|
74
76
|
"data-full": sheetFull || void 0,
|
|
75
77
|
"data-expanded": full.state === "open" || void 0,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zidane-ui",
|
|
3
|
-
"version": "9.2.
|
|
3
|
+
"version": "9.2.3",
|
|
4
4
|
"description": "Zidane design system and chat kit: tokens, surface primitives, theme engine, React components, the chat layer (sessions, transcript, composer) and ChatHost adapters.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -584,7 +584,7 @@
|
|
|
584
584
|
"react": "^19.3.0",
|
|
585
585
|
"react-dom": "^19.3.0",
|
|
586
586
|
"unocss": ">=66.0.0",
|
|
587
|
-
"zidane": "^9.2.
|
|
587
|
+
"zidane": "^9.2.3",
|
|
588
588
|
"vitest": ">=3"
|
|
589
589
|
},
|
|
590
590
|
"peerDependenciesMeta": {
|
package/src/styles/base.css
CHANGED
|
@@ -25,6 +25,19 @@ html {
|
|
|
25
25
|
box-sizing: border-box;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
+
/* Text wraps without a lone last word, everywhere (inherited). Text that
|
|
29
|
+
changes as you read it opts out: a word would hop between lines on each
|
|
30
|
+
keystroke or token. Headings balance their lines instead. */
|
|
31
|
+
html {
|
|
32
|
+
text-wrap-style: pretty;
|
|
33
|
+
}
|
|
34
|
+
:is(input, textarea, [contenteditable]:not([contenteditable='false']), pre, .zg-streaming) {
|
|
35
|
+
text-wrap-style: auto;
|
|
36
|
+
}
|
|
37
|
+
:is(h1, h2, h3, h4, h5, h6, .zg-balance) {
|
|
38
|
+
text-wrap-style: balance;
|
|
39
|
+
}
|
|
40
|
+
|
|
28
41
|
/* Thin, neutral scrollbars; the transparent track lets each surface show through. */
|
|
29
42
|
* {
|
|
30
43
|
scrollbar-width: thin;
|
package/src/styles/chat.css
CHANGED
|
@@ -515,6 +515,36 @@ html[data-motion='full'] .zg-orb:not([data-state='down']) {
|
|
|
515
515
|
}
|
|
516
516
|
}
|
|
517
517
|
|
|
518
|
+
/* The cube: the same light on the Environments icon. The sphere's fill and
|
|
519
|
+
rim give way to the glyph, which takes the gradient through its mask, and a
|
|
520
|
+
drop-shadow in the state colour stands in for the halo. */
|
|
521
|
+
.zg-orb[data-shape='cube'],
|
|
522
|
+
html[data-motion='full'] .zg-orb[data-shape='cube'],
|
|
523
|
+
.zg-orb[data-shape='cube'][data-state='down'] {
|
|
524
|
+
background: none;
|
|
525
|
+
box-shadow: none;
|
|
526
|
+
}
|
|
527
|
+
.zg-orb[data-shape='cube'] > .zg-orb-cube {
|
|
528
|
+
position: absolute;
|
|
529
|
+
inset: 0;
|
|
530
|
+
width: 100%;
|
|
531
|
+
height: 100%;
|
|
532
|
+
background: linear-gradient(
|
|
533
|
+
150deg,
|
|
534
|
+
color-mix(in oklab, var(--orb) 45%, white) 0%,
|
|
535
|
+
var(--orb) 45%,
|
|
536
|
+
color-mix(in oklab, var(--orb), var(--zg-orb-tone) var(--zg-orb-shade)) 100%
|
|
537
|
+
);
|
|
538
|
+
filter: drop-shadow(0 0 4px color-mix(in oklab, var(--orb) calc(90% * var(--zg-orb-glow)), transparent));
|
|
539
|
+
}
|
|
540
|
+
.zg-orb[data-shape='cube'][data-state='down'] > .zg-orb-cube {
|
|
541
|
+
filter: none;
|
|
542
|
+
}
|
|
543
|
+
/* The breathing halo is round: on a cube it reads as a disc behind it. */
|
|
544
|
+
.zg-orb[data-shape='cube']::before {
|
|
545
|
+
display: none;
|
|
546
|
+
}
|
|
547
|
+
|
|
518
548
|
html[data-motion='off'] .zg-orb,
|
|
519
549
|
html[data-motion='off'] .zg-orb::before,
|
|
520
550
|
html[data-motion='off'] .zg-orb::after,
|
|
@@ -107,16 +107,6 @@ html[data-motion='reduced'] .zg-attention::after {
|
|
|
107
107
|
0 0 0 2px var(--zg-bg),
|
|
108
108
|
0 0 0 4px var(--zg-ring);
|
|
109
109
|
}
|
|
110
|
-
/* `text-wrap: balance` keeps short headings on roughly equal-width lines
|
|
111
|
-
(no orphan words). Applied via class to opt-in surfaces — modals,
|
|
112
|
-
session titles — so body copy keeps its default flow. */
|
|
113
|
-
.zg-balance {
|
|
114
|
-
text-wrap: balance;
|
|
115
|
-
}
|
|
116
|
-
/* `text-wrap: pretty` avoids single-word orphan lines in body copy. */
|
|
117
|
-
.zg-pretty {
|
|
118
|
-
text-wrap: pretty;
|
|
119
|
-
}
|
|
120
110
|
/* Segment spinner (`SegmentSpinner.tsx`) — GUI twin of the TUI `▀▁▁▁▁` bar.
|
|
121
111
|
Each pill is lit for the first half of an 800 ms cycle and dim for the
|
|
122
112
|
rest; per-pill `animation-delay` (i × 80 ms) produces the fill → drain
|
package/src/styles/files.css
CHANGED
|
@@ -34,6 +34,11 @@
|
|
|
34
34
|
transition: opacity var(--zg-motion-fade);
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
+
/* Open and done opening (`usePanelSettled`): the sheet follows the column's width. */
|
|
38
|
+
.zg-files-tree[data-settled] .zg-files-tree-sheet {
|
|
39
|
+
width: 100%;
|
|
40
|
+
}
|
|
41
|
+
|
|
37
42
|
.zg-files-tree[data-collapsed='true'] .zg-files-tree-sheet {
|
|
38
43
|
opacity: 0.4;
|
|
39
44
|
pointer-events: none;
|
package/src/styles/sidebar.css
CHANGED
|
@@ -46,6 +46,12 @@
|
|
|
46
46
|
transition: opacity var(--zg-motion-fade);
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
+
/* Open and done opening (`usePanelSettled`): the sheet follows the aside's width, so a width change while open
|
|
50
|
+
(the layout budget) flows the content with the edge instead of jumping it to the new width. */
|
|
51
|
+
.zg-sidebar[data-settled] .zg-sidebar-sheet {
|
|
52
|
+
width: 100%;
|
|
53
|
+
}
|
|
54
|
+
|
|
49
55
|
.zg-sidebar[data-collapsed='true'] .zg-sidebar-sheet {
|
|
50
56
|
opacity: 0.4;
|
|
51
57
|
pointer-events: none;
|
|
@@ -75,6 +81,11 @@
|
|
|
75
81
|
.zg-sidebar-list {
|
|
76
82
|
/* Positioned: rows that leave fade out as stand-ins placed in it (motion/flip-list.ts). */
|
|
77
83
|
position: relative;
|
|
84
|
+
/* The list scrolls down, never sideways: a scroller's `overflow-x` would compute to `auto` and turn
|
|
85
|
+
anything a row lets poke out (badges, a title line on a narrow sidebar) into a horizontal scroll.
|
|
86
|
+
`clip`, not `hidden`: the inbox's list holds its scrollers and must not become one itself (where it
|
|
87
|
+
scrolls, the Groups layout, clip computes to hidden). */
|
|
88
|
+
overflow-x: clip;
|
|
78
89
|
--zg-sticky-head-h: 36px;
|
|
79
90
|
scroll-padding-top: calc(var(--zg-sticky-head-h) + 4px);
|
|
80
91
|
}
|
|
@@ -144,17 +155,23 @@
|
|
|
144
155
|
top: var(--zg-sticky-head-h);
|
|
145
156
|
}
|
|
146
157
|
|
|
147
|
-
/* A sidebar row's badges: one line; badges keep their width (not a squeeze)
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
158
|
+
/* A sidebar row's badges: one line; badges keep their width (not a squeeze). Past the row's edge the line
|
|
159
|
+
scrolls sideways (a trackpad swipe, shift + wheel), without a scrollbar, and fades only on the side that
|
|
160
|
+
has more (`.zg-scroll-fade-x`, primitives.css). The scroll stays in the line, never the sidebar's.
|
|
161
|
+
`min-width: 0`: as a grid or flex item it never widens the row to its badges' whole width. */
|
|
151
162
|
.zg-badge-strip {
|
|
152
163
|
display: flex;
|
|
153
164
|
align-items: center;
|
|
154
165
|
column-gap: 0.25rem;
|
|
155
|
-
|
|
156
|
-
-
|
|
157
|
-
|
|
166
|
+
min-width: 0;
|
|
167
|
+
overflow-x: auto;
|
|
168
|
+
overflow-y: hidden;
|
|
169
|
+
overscroll-behavior-x: contain;
|
|
170
|
+
scrollbar-width: none;
|
|
171
|
+
--zg-fade-size: 12px;
|
|
172
|
+
}
|
|
173
|
+
.zg-badge-strip::-webkit-scrollbar {
|
|
174
|
+
display: none;
|
|
158
175
|
}
|
|
159
176
|
|
|
160
177
|
.zg-badge-strip > * {
|
|
@@ -178,6 +195,9 @@
|
|
|
178
195
|
.zg-row-extra {
|
|
179
196
|
display: grid;
|
|
180
197
|
grid-template-rows: 1fr;
|
|
198
|
+
/* The track takes the row's width, never its badges': the strip clips at the row's edge. */
|
|
199
|
+
grid-template-columns: minmax(0, 1fr);
|
|
200
|
+
min-width: 0;
|
|
181
201
|
}
|
|
182
202
|
.zg-row-extra[data-grow] {
|
|
183
203
|
animation:
|
|
@@ -234,6 +254,7 @@
|
|
|
234
254
|
.zg-inbox-scroll {
|
|
235
255
|
flex: 1;
|
|
236
256
|
min-height: 0;
|
|
257
|
+
overflow-x: hidden;
|
|
237
258
|
overflow-y: auto;
|
|
238
259
|
}
|
|
239
260
|
/* The dock sits on the tray; its first shelf's line is the edge against the rows above. */
|
|
@@ -250,6 +271,7 @@
|
|
|
250
271
|
}
|
|
251
272
|
.zg-inbox-dock-body {
|
|
252
273
|
min-height: 0;
|
|
274
|
+
overflow-x: hidden;
|
|
253
275
|
overflow-y: auto;
|
|
254
276
|
}
|
|
255
277
|
.zg-inbox-dock .zg-inbox-shelf {
|
package/src/styles/terminal.css
CHANGED
|
@@ -36,6 +36,12 @@
|
|
|
36
36
|
transition: opacity var(--zg-motion-fade);
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
+
/* Open and done opening (`usePanelSettled`): the sheet follows the drawer's height (the clip's: the drawer less
|
|
40
|
+
its border). */
|
|
41
|
+
.zg-terminal-drawer[data-settled] .zg-terminal-drawer-sheet {
|
|
42
|
+
height: 100%;
|
|
43
|
+
}
|
|
44
|
+
|
|
39
45
|
.zg-terminal-drawer[data-collapsed='true'] .zg-terminal-drawer-sheet {
|
|
40
46
|
opacity: 0.4;
|
|
41
47
|
pointer-events: none;
|
package/src/styles/tokens.css
CHANGED
|
@@ -141,6 +141,11 @@
|
|
|
141
141
|
--zg-radius-xl: 16px;
|
|
142
142
|
--zg-radius-2xl: 24px;
|
|
143
143
|
|
|
144
|
+
/* The transcript's and the composer's columns pad their sides by this
|
|
145
|
+
(`.zg-transcript-column`), so both keep one edge and the prompt rail
|
|
146
|
+
(`TranscriptRail`) has room beside the text whether it shows or not. */
|
|
147
|
+
--zg-transcript-gutter: 12px;
|
|
148
|
+
|
|
144
149
|
/* Interface type scale: every size outside the transcript and composer
|
|
145
150
|
bodies comes from it, never ad hoc (scale-guard.test.ts). In Uno:
|
|
146
151
|
`text-zg-badge` … `text-zg-body` (font-size only, line-height untouched).
|
|
@@ -59,6 +59,13 @@ html[data-motion='reduced'] .zg-arc::after {
|
|
|
59
59
|
content: '\200b';
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
+
/* The column a transcript and its composer share: the same side padding on
|
|
63
|
+
both, always, so their edges line up and the prompt rail appearing or
|
|
64
|
+
leaving moves nothing. */
|
|
65
|
+
.zg-transcript-column {
|
|
66
|
+
padding-inline: var(--zg-transcript-gutter);
|
|
67
|
+
}
|
|
68
|
+
|
|
62
69
|
/* Select-turn highlight (Timeline SelectCursor): one tint behind the
|
|
63
70
|
transcript that fades in, then slides and resizes between selections.
|
|
64
71
|
The timeline isolates so it can sit behind the rows (z-index -1) and
|
|
@@ -93,6 +100,106 @@ html[data-motion='reduced'] .zg-arc::after {
|
|
|
93
100
|
height var(--zg-motion-snap);
|
|
94
101
|
}
|
|
95
102
|
|
|
103
|
+
/* The prompt rail's hovered exchange (`RailTint`): the select cursor's
|
|
104
|
+
element in the row hover's tone, so it never reads as a selection. */
|
|
105
|
+
.zg-select-cursor.zg-rail-tint {
|
|
106
|
+
background: var(--zg-hover-wash);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/* The prompt rail (`TranscriptRail`): ticks left of the transcript's text,
|
|
110
|
+
centred in that space (near the pane's edge once it is wide) and on the
|
|
111
|
+
view's height, over the layout (never in it). A tick is a
|
|
112
|
+
short line; the one in view and the one under the pointer stretch to full
|
|
113
|
+
length and take the text's tone. Touch screens get no rail. */
|
|
114
|
+
.zg-prompt-rail {
|
|
115
|
+
position: absolute;
|
|
116
|
+
z-index: 2;
|
|
117
|
+
transform: translateY(-50%);
|
|
118
|
+
opacity: 0;
|
|
119
|
+
visibility: hidden;
|
|
120
|
+
pointer-events: none;
|
|
121
|
+
transition:
|
|
122
|
+
opacity var(--zg-motion-fade-out),
|
|
123
|
+
visibility 0s linear var(--zg-motion-fade-out-duration, 0s);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.zg-prompt-rail[data-on='true'] {
|
|
127
|
+
opacity: 1;
|
|
128
|
+
visibility: visible;
|
|
129
|
+
pointer-events: auto;
|
|
130
|
+
transition: opacity var(--zg-motion-fade);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.zg-prompt-rail-ticks {
|
|
134
|
+
display: flex;
|
|
135
|
+
flex-direction: column;
|
|
136
|
+
max-height: 192px;
|
|
137
|
+
overflow-y: auto;
|
|
138
|
+
scrollbar-width: none;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.zg-prompt-rail-ticks::-webkit-scrollbar {
|
|
142
|
+
display: none;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.zg-prompt-rail-tick {
|
|
146
|
+
position: relative;
|
|
147
|
+
flex: none;
|
|
148
|
+
width: 100%;
|
|
149
|
+
height: 8px;
|
|
150
|
+
padding: 0;
|
|
151
|
+
border: 0;
|
|
152
|
+
background: none;
|
|
153
|
+
cursor: pointer;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.zg-prompt-rail-tick::before {
|
|
157
|
+
content: '';
|
|
158
|
+
position: absolute;
|
|
159
|
+
top: 3px;
|
|
160
|
+
left: 0;
|
|
161
|
+
width: 14px;
|
|
162
|
+
height: 2px;
|
|
163
|
+
border-radius: 9999px;
|
|
164
|
+
background: var(--zg-text-subtle);
|
|
165
|
+
transform: scaleX(0.55);
|
|
166
|
+
transform-origin: left center;
|
|
167
|
+
transition:
|
|
168
|
+
transform var(--zg-motion-snap),
|
|
169
|
+
background-color var(--zg-motion-hover);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.zg-prompt-rail-tick[aria-current='location']::before {
|
|
173
|
+
background: var(--zg-text);
|
|
174
|
+
transform: scaleX(1);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.zg-prompt-rail-tick[data-hover]::before {
|
|
178
|
+
background: var(--zg-text-muted);
|
|
179
|
+
transform: scaleX(1);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.zg-prompt-rail-tick[aria-current='location'][data-hover]::before {
|
|
183
|
+
background: var(--zg-text);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.zg-prompt-rail-tick:focus-visible {
|
|
187
|
+
outline: 2px solid var(--zg-ring);
|
|
188
|
+
outline-offset: 1px;
|
|
189
|
+
border-radius: var(--zg-radius-xs);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
/* A preview, not a menu: the pointer goes through it to the rail. */
|
|
193
|
+
.zg-prompt-rail-card {
|
|
194
|
+
pointer-events: none;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
@media (hover: none) {
|
|
198
|
+
.zg-prompt-rail {
|
|
199
|
+
display: none;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
|
|
96
203
|
/* In select mode (the only time rows carry `data-stop`) a row is clickable. */
|
|
97
204
|
[data-stop] {
|
|
98
205
|
cursor: pointer;
|
package/src/styles/workspace.css
CHANGED
|
@@ -43,6 +43,12 @@
|
|
|
43
43
|
clip-path var(--zg-panel-ms) var(--zg-panel-ease);
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
+
/* Open and done opening (`usePanelSettled`): the sheet follows the aside, so a width change while open
|
|
47
|
+
(the budget, the sidebar toggling) flows the content with the edge instead of jumping it to the new width. */
|
|
48
|
+
.zg-side-panel[data-settled] .zg-side-panel-sheet {
|
|
49
|
+
width: 100%;
|
|
50
|
+
}
|
|
51
|
+
|
|
46
52
|
/* Full screen (`SidePanel`'s `expanded`): the aside keeps its width in the row (nothing
|
|
47
53
|
beside it reflows), its clip opens to the parent at once (`data-full`), and the sheet,
|
|
48
54
|
pinned to the outer edge, grows to the parent's width on the panel clock
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "./types-_Dtoq_No.js";
|
|
File without changes
|