rift-ds 1.35.0 → 1.36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/behaviors/chat-card.css +6 -0
- package/behaviors/direction.css +6 -0
- package/behaviors/shell.css +6 -0
- package/behaviors/shortcuts.js +2 -2
- package/behaviors/visually-hidden.css +6 -0
- package/bin/templates/blocks/app/settings/ProfileForm.tsx +1 -1
- package/bin/templates/blocks/app/sign-in/page.tsx +3 -3
- package/chat/ChatAgentPane.css +6 -0
- package/chat/ChatWidget.css +6 -0
- package/chat/demo.css +6 -0
- package/chat/queries.js +1 -1
- package/chat/selection.css +6 -0
- package/components/Accordion/Accordion.css +6 -0
- package/components/ActionBar/ActionBar.css +6 -0
- package/components/ActionCard/ActionCard.css +6 -0
- package/components/ActionReadout/ActionReadout.css +6 -0
- package/components/AgentPlan/AgentPlan.css +6 -0
- package/components/AgentRail/AgentRail.css +6 -0
- package/components/AgentStatus/AgentStatus.css +12 -7
- package/components/AiButton/AiButton.css +17 -11
- package/components/Alert/Alert.css +6 -0
- package/components/AlertDialog/AlertDialog.css +6 -0
- package/components/AnchorNav/AnchorNav.css +6 -0
- package/components/AnimatedNumber/AnimatedNumber.css +5 -0
- package/components/AppLayout/AppLayout.css +6 -0
- package/components/AppSidebar/AppSidebar.css +19 -1
- package/components/AppSidebar/AppSidebar.d.ts +1 -1
- package/components/AppSidebar/AppSidebar.js +10 -4
- package/components/ArtifactCard/ArtifactCard.css +6 -0
- package/components/ArtifactPanel/ArtifactPanel.css +6 -0
- package/components/Attachment/Attachment.css +6 -0
- package/components/Attachment/AttachmentGroup.js +4 -1
- package/components/Avatar/Avatar.css +6 -0
- package/components/AvatarGroup/AvatarGroup.css +6 -0
- package/components/BackToTop/BackToTop.css +6 -0
- package/components/Badge/Badge.css +6 -0
- package/components/Banner/Banner.css +6 -0
- package/components/BentoTile/BentoTile.css +6 -0
- package/components/BottomNav/BottomNav.css +6 -0
- package/components/Breadcrumb/Breadcrumb.css +6 -0
- package/components/Button/Button.css +6 -0
- package/components/Button/Button.d.ts +7 -1
- package/components/Button/Button.js +2 -1
- package/components/ButtonGroup/ButtonGroup.css +6 -0
- package/components/Card/Card.css +6 -0
- package/components/CardStack/CardStack.css +5 -0
- package/components/Carousel/Carousel.css +6 -0
- package/components/Chart/Chart.css +9 -1
- package/components/ChatHeader/ChatHeader.css +6 -0
- package/components/ChatMarker/ChatMarker.css +6 -0
- package/components/ChatMessage/ChatMessage.css +6 -0
- package/components/ChatThread/ChatThread.css +6 -0
- package/components/Checkbox/Checkbox.css +6 -0
- package/components/Checkbox/Checkbox.js +1 -1
- package/components/Checklist/Checklist.css +6 -0
- package/components/Chip/Chip.css +6 -0
- package/components/CodeBlock/CodeBlock.css +6 -0
- package/components/CodeDiff/CodeDiff.css +5 -0
- package/components/ColorPicker/ColorPicker.css +6 -0
- package/components/ColourSwatch/ColourSwatch.css +6 -0
- package/components/Combobox/Combobox.css +6 -0
- package/components/CommandPalette/CommandPalette.css +6 -0
- package/components/CommandPaletteTrigger/CommandPaletteTrigger.css +6 -0
- package/components/Composer/Composer.css +6 -0
- package/components/ContactCard/ContactCard.css +6 -0
- package/components/ContextMenu/ContextMenu.css +6 -0
- package/components/ContributionGraph/ContributionGraph.css +6 -0
- package/components/CurrencyInput/CurrencyInput.css +6 -0
- package/components/DataTable/DataTable.css +6 -0
- package/components/DataTable/DataTable.js +6 -2
- package/components/DateInput/DateInput.css +6 -0
- package/components/DatePicker/DatePicker.css +6 -0
- package/components/DateRangePicker/DateRangePicker.css +6 -0
- package/components/Deadline/Deadline.css +6 -0
- package/components/DecisionRow/DecisionRow.css +6 -0
- package/components/DescriptionList/DescriptionList.css +6 -0
- package/components/Dialog/Dialog.css +6 -0
- package/components/Divider/Divider.css +6 -0
- package/components/DocumentChip/DocumentChip.css +6 -0
- package/components/DocumentViewer/DocumentViewer.css +6 -0
- package/components/Drawer/Drawer.css +6 -0
- package/components/Dropdown/ChosenMark.css +6 -0
- package/components/Dropdown/Dropdown.css +6 -0
- package/components/Dropdown/Dropdown.js +1 -1
- package/components/DropdownMenu/DropdownMenu.css +6 -0
- package/components/EmptyState/EmptyState.css +6 -0
- package/components/EntityCard/EntityCard.css +6 -0
- package/components/EntitySwitcher/EntitySwitcher.css +6 -0
- package/components/ErrorSummary/ErrorSummary.css +6 -0
- package/components/ErrorSummary/ErrorSummary.js +3 -1
- package/components/EventCalendar/EventCalendar.css +6 -0
- package/components/Field/Field.css +6 -0
- package/components/Figure/Figure.css +6 -0
- package/components/FileInput/FileInput.css +6 -0
- package/components/FilterBar/FilterBar.css +9 -1
- package/components/FormSection/FormSection.css +6 -0
- package/components/FunnelChart/FunnelChart.css +6 -0
- package/components/GanttChart/GanttChart.css +6 -0
- package/components/Gauge/Gauge.css +6 -0
- package/components/Globe/Globe.css +6 -0
- package/components/Grid/Grid.css +6 -0
- package/components/Heading/Heading.css +6 -0
- package/components/HoverCard/HoverCard.css +6 -0
- package/components/Icon/Icon.css +6 -0
- package/components/IconButton/IconButton.css +6 -0
- package/components/IconButton/IconButton.d.ts +7 -1
- package/components/IconButton/IconButton.js +2 -1
- package/components/ImageCompare/ImageCompare.css +6 -0
- package/components/Input/Input.css +22 -4
- package/components/Inspector/Inspector.css +6 -0
- package/components/Instructions/Instructions.css +6 -0
- package/components/InterruptCard/InterruptCard.css +6 -0
- package/components/Kbd/Kbd.css +6 -0
- package/components/LegendTile/LegendTile.css +6 -0
- package/components/Lightbox/Lightbox.css +6 -0
- package/components/Link/Link.css +9 -1
- package/components/LinkList/LinkList.css +6 -0
- package/components/List/List.css +6 -0
- package/components/MapCallout/MapCallout.css +6 -0
- package/components/MapLegend/MapLegend.css +6 -0
- package/components/MaskedInput/MaskedInput.css +6 -0
- package/components/MegaMenu/MegaMenu.css +6 -0
- package/components/Mention/Mention.css +6 -0
- package/components/Mention/Mention.js +1 -1
- package/components/Menubar/Menubar.css +6 -0
- package/components/MessageActions/MessageActions.css +6 -0
- package/components/MessageCard/MessageCard.css +6 -0
- package/components/Meter/Meter.css +6 -0
- package/components/ModelPicker/ModelPicker.css +6 -0
- package/components/MotionSwatch/MotionSwatch.css +6 -0
- package/components/Nav/Nav.css +6 -0
- package/components/NavList/NavList.css +6 -0
- package/components/NotificationCenter/NotificationCenter.css +6 -0
- package/components/NumberInput/NumberInput.css +6 -0
- package/components/OrgChart/OrgChart.css +6 -0
- package/components/PageHeader/PageHeader.css +6 -0
- package/components/Pagination/Pagination.css +6 -0
- package/components/Panel/Panel.css +6 -0
- package/components/PinInput/PinInput.css +6 -0
- package/components/PixelAvatar/PixelAvatar.css +6 -0
- package/components/Popover/Popover.css +6 -0
- package/components/ProgressBar/ProgressBar.css +6 -0
- package/components/ProgressiveBlur/ProgressiveBlur.css +6 -0
- package/components/PromptSuggestions/PromptSuggestions.css +5 -0
- package/components/Prose/Prose.css +6 -0
- package/components/QuestionCard/QuestionCard.css +5 -0
- package/components/Quote/Quote.css +6 -0
- package/components/RadioButton/RadioButton.css +6 -0
- package/components/Rating/Rating.css +6 -0
- package/components/Reasoning/Reasoning.css +6 -0
- package/components/ResourceTimeline/ResourceTimeline.css +6 -0
- package/components/RichDropdown/RichDropdown.css +6 -0
- package/components/SectionTitle/SectionTitle.css +6 -0
- package/components/SegmentedControl/SegmentedControl.css +6 -0
- package/components/SelectionCard/SelectionCard.css +6 -0
- package/components/ShaderField/ShaderField.css +6 -0
- package/components/ShaderField/ShaderField.js +2 -0
- package/components/ShaderScene/ShaderScene.css +6 -0
- package/components/SidebarPanel/SidebarPanel.css +6 -0
- package/components/SignaturePad/SignaturePad.css +6 -0
- package/components/SiteFooter/SiteFooter.css +6 -0
- package/components/SiteHeader/SiteHeader.css +6 -0
- package/components/SiteLayout/SiteLayout.css +6 -0
- package/components/Skeleton/Skeleton.css +6 -0
- package/components/Slider/Slider.css +6 -0
- package/components/SourceChip/SourceChip.css +6 -0
- package/components/SourceTrail/SourceTrail.css +6 -0
- package/components/SpacingSwatch/SpacingSwatch.css +6 -0
- package/components/Sparkline/Sparkline.css +6 -0
- package/components/Spinner/Spinner.css +6 -0
- package/components/SplitButton/SplitButton.css +6 -0
- package/components/SplitButton/SplitButton.d.ts +7 -1
- package/components/SplitButton/SplitButton.js +3 -1
- package/components/SplitPane/SplitPane.css +6 -0
- package/components/Stack/Stack.css +6 -0
- package/components/Stat/Stat.css +13 -1
- package/components/StatusDot/StatusDot.css +6 -0
- package/components/Stepper/Stepper.css +6 -0
- package/components/StreamingText/StreamingText.css +6 -0
- package/components/Swatch/Swatch.css +6 -0
- package/components/Table/Table.css +15 -1
- package/components/TableToolbar/TableToolbar.css +6 -0
- package/components/Tabs/Tabs.css +6 -0
- package/components/TagInput/TagInput.css +6 -0
- package/components/Text/Text.css +6 -0
- package/components/Textarea/Textarea.css +5 -0
- package/components/ThemePicker/ThemePicker.css +6 -0
- package/components/ThemeToggle/ThemeToggle.css +6 -0
- package/components/ThreadPanel/ThreadPanel.css +6 -0
- package/components/ThreadTabs/ThreadTabs.css +6 -0
- package/components/TimePicker/TimePicker.css +6 -0
- package/components/Timeline/Timeline.css +18 -18
- package/components/Toast/Toast.css +6 -0
- package/components/Toast/Toast.js +1 -1
- package/components/ToggleGroup/ToggleGroup.css +6 -0
- package/components/ToggleSwitch/ToggleSwitch.css +21 -3
- package/components/ToggleSwitch/ToggleSwitch.d.ts +1 -1
- package/components/ToggleSwitch/ToggleSwitch.js +2 -2
- package/components/ToolCall/ToolCall.css +6 -0
- package/components/Toolbar/Toolbar.css +6 -0
- package/components/Tooltip/Tooltip.css +6 -0
- package/components/TopAppBar/TopAppBar.css +6 -0
- package/components/TreeView/TreeView.css +6 -0
- package/components/TypographySwatch/TypographySwatch.css +6 -0
- package/components/UsageCard/UsageCard.css +6 -0
- package/components/Waveform/Waveform.css +6 -0
- package/components/Widget/Widget.css +6 -0
- package/components/Wizard/Wizard.css +6 -0
- package/components/WorldMap/WorldMap.css +6 -0
- package/fonts/material-symbols.css +10 -0
- package/package.json +1 -1
- package/tokens/base.css +11 -2
package/README.md
CHANGED
|
@@ -107,6 +107,7 @@ import 'rift-ds/tokens/presets/presets.css';
|
|
|
107
107
|
- **Page colours**: the token stylesheet defines custom properties and styles no element, so paint the page once: set `background: var(--color-bg-page-primary)`, `color: var(--color-text-primary)` and `font-family: var(--font-family-primary)` on `body`. Without it a dark theme lands as dark components on a white page.
|
|
108
108
|
- **Your own brand**: every semantic token chains to a primitive, so overriding one primitive re-themes everything built on it. The [playground](https://rift-ds.com/playground) restyles the system live and copies out a complete, paste-ready override.
|
|
109
109
|
- **One part of a shipped theme**: the token and theme stylesheets sit in cascade layers (`rift.tokens`, then `rift.preset`), so any rule of your own outranks them whatever its selector. A plain `:root { --font-family-primary: … }` keeps a preset's colours with your face, in light and dark alike. To set a default that a preset still replaces, declare it inside `@layer rift.tokens { … }`.
|
|
110
|
+
- **Overriding component styles**: component styles sit in a third layer, `rift.components`, after the two token layers, so your own CSS outside a layer always beats them, whatever its selector and in whatever order your bundler loads the sheets. `className` is the supported hook: `.my-table { … }` on `<Table className="my-table" />` holds in development and production alike. That reaches your resets too: a bare `* { margin: 0 }` would strip the components' spacing, so put a reset inside `@layer rift.tokens { … }`, or import `tokens/base.css`, which is already there.
|
|
110
111
|
- **Fonts**: the base theme bundles no text face, and the whole scale chains to `--font-family-primary` (split heading and body faces via `--font-family-heading` and `--font-family-body`); point them at any font you load. Only the preset stylesheets carry faces, each self-hosting its own, and only the presets you import pull them in.
|
|
111
112
|
- **Icons**: a Material Symbols Rounded variable font is bundled and components import it themselves, with every Google axis exposed as a custom property. Every icon prop also takes your own element, so any icon set drops in.
|
|
112
113
|
|
package/behaviors/chat-card.css
CHANGED
|
@@ -24,6 +24,10 @@
|
|
|
24
24
|
the decision's read-out.
|
|
25
25
|
============================================ */
|
|
26
26
|
|
|
27
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
28
|
+
|
|
29
|
+
@layer rift.components {
|
|
30
|
+
|
|
27
31
|
:where(
|
|
28
32
|
.ds-interrupt-card,
|
|
29
33
|
.ds-question-card,
|
|
@@ -141,3 +145,5 @@
|
|
|
141
145
|
|
|
142
146
|
color: inherit;
|
|
143
147
|
}
|
|
148
|
+
|
|
149
|
+
} /* @layer rift.components */
|
package/behaviors/direction.css
CHANGED
|
@@ -10,6 +10,10 @@
|
|
|
10
10
|
design.md's "Layout follows the reading direction" owns the contract.
|
|
11
11
|
============================================ */
|
|
12
12
|
|
|
13
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
14
|
+
|
|
15
|
+
@layer rift.components {
|
|
16
|
+
|
|
13
17
|
:dir(ltr) {
|
|
14
18
|
--ds-inline-sign: 1;
|
|
15
19
|
}
|
|
@@ -17,3 +21,5 @@
|
|
|
17
21
|
:dir(rtl) {
|
|
18
22
|
--ds-inline-sign: -1;
|
|
19
23
|
}
|
|
24
|
+
|
|
25
|
+
} /* @layer rift.components */
|
package/behaviors/shell.css
CHANGED
|
@@ -47,6 +47,10 @@
|
|
|
47
47
|
rules these encode.
|
|
48
48
|
============================================ */
|
|
49
49
|
|
|
50
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
51
|
+
|
|
52
|
+
@layer rift.components {
|
|
53
|
+
|
|
50
54
|
:where([data-ds-shell]) {
|
|
51
55
|
/* The two gaps. The inset gap's value lives with AppSidebar's root rule
|
|
52
56
|
(--ds-shell-inset) and the float gap's with the floating rail
|
|
@@ -214,3 +218,5 @@ html[data-chat='docked-left'] :where([data-ds-shell]:not(.ds-chat-widget__rails)
|
|
|
214
218
|
html[data-chat-resizing] :where([data-ds-shell]) {
|
|
215
219
|
transition: none;
|
|
216
220
|
}
|
|
221
|
+
|
|
222
|
+
} /* @layer rift.components */
|
package/behaviors/shortcuts.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { useRef, useEffect, useSyncExternalStore } from "react";
|
|
3
3
|
import { MOTION_SHORTCUT_SEQUENCE_MS } from "../tokens/motion.js";
|
|
4
4
|
import { warnOnce } from "./devWarning.js";
|
|
5
5
|
import { activeModalPanel } from "./useFocusScope.js";
|
|
6
6
|
import { hasOpenLayer, openLayerContains } from "./useLayer.js";
|
|
7
|
-
import {
|
|
7
|
+
import { parseShortcut, detectPlatform, KEY_ALIASES } from "./shortcut-keys.js";
|
|
8
8
|
import { formatShortcut, shortcutAria, shortcutKeys } from "./shortcut-keys.js";
|
|
9
9
|
const noSubscription = () => () => {
|
|
10
10
|
};
|
|
@@ -11,6 +11,10 @@
|
|
|
11
11
|
keeps its own rule, with the reason beside it.
|
|
12
12
|
============================================ */
|
|
13
13
|
|
|
14
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
15
|
+
|
|
16
|
+
@layer rift.components {
|
|
17
|
+
|
|
14
18
|
.ds-visually-hidden {
|
|
15
19
|
position: absolute;
|
|
16
20
|
width: 1px;
|
|
@@ -22,3 +26,5 @@
|
|
|
22
26
|
white-space: nowrap;
|
|
23
27
|
border: 0;
|
|
24
28
|
}
|
|
29
|
+
|
|
30
|
+
} /* @layer rift.components */
|
|
@@ -65,7 +65,7 @@ export function ProfileForm() {
|
|
|
65
65
|
columns={2}
|
|
66
66
|
title="Profile"
|
|
67
67
|
description="How you appear to the people you work with."
|
|
68
|
-
actions={<Button label={saved ? 'Saved' : 'Save profile'}
|
|
68
|
+
actions={<Button type="submit" label={saved ? 'Saved' : 'Save profile'} />}
|
|
69
69
|
>
|
|
70
70
|
<Input
|
|
71
71
|
id="profile-firstName"
|
|
@@ -32,8 +32,8 @@ export default function SignInPage() {
|
|
|
32
32
|
// Hand { email, password, remember } to your auth provider here.
|
|
33
33
|
};
|
|
34
34
|
|
|
35
|
-
/*
|
|
36
|
-
field
|
|
35
|
+
/* The Sign in button is the form's submit button, so a click and Enter in
|
|
36
|
+
a field both arrive here. */
|
|
37
37
|
const handleSubmit = (event: FormEvent<HTMLFormElement>) => {
|
|
38
38
|
event.preventDefault();
|
|
39
39
|
signIn();
|
|
@@ -73,7 +73,7 @@ export default function SignInPage() {
|
|
|
73
73
|
<Checkbox label="Remember me" checked={remember} onCheckedChange={setRemember} />
|
|
74
74
|
<Button variant="tertiary" size="compact" label="Forgot password?" href="#" />
|
|
75
75
|
</div>
|
|
76
|
-
<Button variant="primary" label="Sign in" className={styles.full}
|
|
76
|
+
<Button type="submit" variant="primary" label="Sign in" className={styles.full} />
|
|
77
77
|
</form>
|
|
78
78
|
|
|
79
79
|
<Divider label="or" labelPosition="center" spacing="none" />
|
package/chat/ChatAgentPane.css
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
2
|
+
|
|
3
|
+
@layer rift.components {
|
|
4
|
+
|
|
1
5
|
/* The built-in agent pane. The rail owns its shell; this only says how it
|
|
2
6
|
sits in the widget's bottom sheet, where it fills the width rather than
|
|
3
7
|
holding its own column and the sheet's rounded top edge is the surface. */
|
|
@@ -58,3 +62,5 @@
|
|
|
58
62
|
line-height: var(--font-paragraph-sm-emphasis-line-height);
|
|
59
63
|
color: var(--color-text-primary);
|
|
60
64
|
}
|
|
65
|
+
|
|
66
|
+
} /* @layer rift.components */
|
package/chat/ChatWidget.css
CHANGED
|
@@ -13,6 +13,10 @@
|
|
|
13
13
|
<html> by the widen grip), --ds-chat-inset and --ds-chat-float-height.
|
|
14
14
|
============================================ */
|
|
15
15
|
|
|
16
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
17
|
+
|
|
18
|
+
@layer rift.components {
|
|
19
|
+
|
|
16
20
|
:root {
|
|
17
21
|
/* The docked panel's resting width; DOCK_MIN_WIDTH in placement.ts mirrors it. */
|
|
18
22
|
--ds-chat-width: 420px;
|
|
@@ -1692,3 +1696,5 @@ html[data-chat-resizing] .ds-chat-launcher__panel--floating .ds-chat-header {
|
|
|
1692
1696
|
pointer-events: none;
|
|
1693
1697
|
background: linear-gradient(to bottom, transparent, var(--ds-shell-surface));
|
|
1694
1698
|
}
|
|
1699
|
+
|
|
1700
|
+
} /* @layer rift.components */
|
package/chat/demo.css
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
disc a source chip wears for a logo. Chart-series tokens keep it on-theme
|
|
4
4
|
in both modes and re-theme with the rest of a theme like every chart. */
|
|
5
5
|
|
|
6
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
7
|
+
|
|
8
|
+
@layer rift.components {
|
|
9
|
+
|
|
6
10
|
.ds-chat-demo__card-media {
|
|
7
11
|
height: 120px;
|
|
8
12
|
background: linear-gradient(135deg, var(--color-chart-series-1), var(--color-chart-series-2));
|
|
@@ -50,3 +54,5 @@
|
|
|
50
54
|
.ds-chat-demo__artifact-board {
|
|
51
55
|
padding: var(--padding-400);
|
|
52
56
|
}
|
|
57
|
+
|
|
58
|
+
} /* @layer rift.components */
|
package/chat/queries.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { useSyncExternalStore } from "react";
|
|
3
|
-
import { mediaAbove, mediaBelow, BREAKPOINT_CHAT_TAKEOVER_PX
|
|
3
|
+
import { mediaAbove, BREAKPOINT_CHAT_DOCK_PX, mediaBelow, BREAKPOINT_CHAT_TAKEOVER_PX } from "../tokens/breakpoints.js";
|
|
4
4
|
import { DOCK_MIN_WIDTH, dockFits } from "./placement.js";
|
|
5
5
|
const DOCK_QUERY = mediaAbove(BREAKPOINT_CHAT_DOCK_PX);
|
|
6
6
|
const TAKEOVER_QUERY = mediaBelow(BREAKPOINT_CHAT_TAKEOVER_PX);
|
package/chat/selection.css
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
2
|
+
|
|
3
|
+
@layer rift.components {
|
|
4
|
+
|
|
1
5
|
/* The highlight a chat holds on the page while it is the chat's context
|
|
2
6
|
(useHeldHighlight in selection.ts): the context note's own fill, so the
|
|
3
7
|
passage and the note that names it read as one thing, and quieter than a
|
|
@@ -6,3 +10,5 @@
|
|
|
6
10
|
background-color: var(--color-chat-context-bg);
|
|
7
11
|
color: var(--color-text-primary);
|
|
8
12
|
}
|
|
13
|
+
|
|
14
|
+
} /* @layer rift.components */
|
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
Collapsible content sections
|
|
4
4
|
============================================ */
|
|
5
5
|
|
|
6
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
7
|
+
|
|
8
|
+
@layer rift.components {
|
|
9
|
+
|
|
6
10
|
/* The standard card surface (container fill, hairline border,
|
|
7
11
|
--radius-300), the one SelectionCard's and QuestionCard's option rows
|
|
8
12
|
share, so a collapsible section reads as a card on the page rather than
|
|
@@ -132,3 +136,5 @@
|
|
|
132
136
|
.ds-accordion__trigger {
|
|
133
137
|
padding-inline-end: var(--padding-400);
|
|
134
138
|
}
|
|
139
|
+
|
|
140
|
+
} /* @layer rift.components */
|
|
@@ -4,6 +4,10 @@
|
|
|
4
4
|
to the bottom of a long list or form
|
|
5
5
|
============================================ */
|
|
6
6
|
|
|
7
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
8
|
+
|
|
9
|
+
@layer rift.components {
|
|
10
|
+
|
|
7
11
|
/* Base */
|
|
8
12
|
.ds-action-bar {
|
|
9
13
|
/* The surface the bar reads as one with: the blur's tint with the blur
|
|
@@ -76,3 +80,5 @@
|
|
|
76
80
|
gap: var(--gap-300);
|
|
77
81
|
margin-inline-start: auto;
|
|
78
82
|
}
|
|
83
|
+
|
|
84
|
+
} /* @layer rift.components */
|
|
@@ -12,6 +12,10 @@
|
|
|
12
12
|
starts where the reply's own text does.
|
|
13
13
|
============================================ */
|
|
14
14
|
|
|
15
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
16
|
+
|
|
17
|
+
@layer rift.components {
|
|
18
|
+
|
|
15
19
|
.ds-action-card {
|
|
16
20
|
box-sizing: border-box;
|
|
17
21
|
display: flex;
|
|
@@ -145,3 +149,5 @@
|
|
|
145
149
|
.ds-action-card .material-symbols-rounded {
|
|
146
150
|
color: inherit;
|
|
147
151
|
}
|
|
152
|
+
|
|
153
|
+
} /* @layer rift.components */
|
|
@@ -7,6 +7,10 @@
|
|
|
7
7
|
its readout read as one family.
|
|
8
8
|
============================================ */
|
|
9
9
|
|
|
10
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
11
|
+
|
|
12
|
+
@layer rift.components {
|
|
13
|
+
|
|
10
14
|
.ds-action-readout {
|
|
11
15
|
box-sizing: border-box;
|
|
12
16
|
display: flex;
|
|
@@ -45,3 +49,5 @@
|
|
|
45
49
|
.ds-action-readout .material-symbols-rounded {
|
|
46
50
|
color: inherit;
|
|
47
51
|
}
|
|
52
|
+
|
|
53
|
+
} /* @layer rift.components */
|
|
@@ -10,6 +10,10 @@
|
|
|
10
10
|
indicators into one path through the task.
|
|
11
11
|
============================================ */
|
|
12
12
|
|
|
13
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
14
|
+
|
|
15
|
+
@layer rift.components {
|
|
16
|
+
|
|
13
17
|
.ds-agent-plan {
|
|
14
18
|
display: flex;
|
|
15
19
|
flex-direction: column;
|
|
@@ -255,3 +259,5 @@
|
|
|
255
259
|
.ds-agent-plan__header:has(.ds-agent-plan__chevron) {
|
|
256
260
|
padding-inline-end: calc(var(--ds-chat-card-inset) - var(--padding-100));
|
|
257
261
|
}
|
|
262
|
+
|
|
263
|
+
} /* @layer rift.components */
|
|
@@ -9,6 +9,10 @@
|
|
|
9
9
|
stay put, so switching tabs never moves the agent's face.
|
|
10
10
|
============================================ */
|
|
11
11
|
|
|
12
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
13
|
+
|
|
14
|
+
@layer rift.components {
|
|
15
|
+
|
|
12
16
|
.ds-agent-rail {
|
|
13
17
|
/* Width and padding combine on the root, so the component declares its
|
|
14
18
|
own sizing model rather than leaning on a host reset — ThreadPanel's
|
|
@@ -289,3 +293,5 @@
|
|
|
289
293
|
padding-top: var(--padding-200);
|
|
290
294
|
border-top: var(--border-025) solid var(--color-divider);
|
|
291
295
|
}
|
|
296
|
+
|
|
297
|
+
} /* @layer rift.components */
|
|
@@ -19,6 +19,16 @@
|
|
|
19
19
|
changes the indicator's footprint or rhythm.
|
|
20
20
|
============================================ */
|
|
21
21
|
|
|
22
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
23
|
+
|
|
24
|
+
@property --ds-agent-ring-angle {
|
|
25
|
+
syntax: '<angle>';
|
|
26
|
+
initial-value: 0deg;
|
|
27
|
+
inherits: false;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@layer rift.components {
|
|
31
|
+
|
|
22
32
|
.ds-agent-status {
|
|
23
33
|
--ds-agent-color: var(--color-text-secondary);
|
|
24
34
|
--ds-agent-label-color: var(--color-text-secondary);
|
|
@@ -918,7 +928,6 @@
|
|
|
918
928
|
.ds-agent-status-mark--diagonal-swipe .ds-agent-status-mark__dot:nth-child(15) { --ds-agent-step: 7.5; }
|
|
919
929
|
.ds-agent-status-mark--diagonal-swipe .ds-agent-status-mark__dot:nth-child(16) { --ds-agent-step: 9; }
|
|
920
930
|
|
|
921
|
-
|
|
922
931
|
/* Twinkle: solid, one or two dots dipping on a fixed scatter */
|
|
923
932
|
.ds-agent-status-mark--animated.ds-agent-status-mark--twinkle .ds-agent-status-mark__dot:nth-child(n) {
|
|
924
933
|
opacity: 1;
|
|
@@ -963,12 +972,6 @@
|
|
|
963
972
|
element's own edge and radius.
|
|
964
973
|
============================================ */
|
|
965
974
|
|
|
966
|
-
@property --ds-agent-ring-angle {
|
|
967
|
-
syntax: '<angle>';
|
|
968
|
-
initial-value: 0deg;
|
|
969
|
-
inherits: false;
|
|
970
|
-
}
|
|
971
|
-
|
|
972
975
|
/* Zero specificity, so a host's own position always wins: the ring only
|
|
973
976
|
needs a containing block, which absolute and fixed already are. */
|
|
974
977
|
:where(.ds-agent-ring) {
|
|
@@ -1238,3 +1241,5 @@
|
|
|
1238
1241
|
animation: none;
|
|
1239
1242
|
}
|
|
1240
1243
|
}
|
|
1244
|
+
|
|
1245
|
+
} /* @layer rift.components */
|
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
the flat action colour.
|
|
10
10
|
============================================ */
|
|
11
11
|
|
|
12
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
13
|
+
|
|
12
14
|
/* The rotation animates a registered custom property: a conic gradient's
|
|
13
15
|
angle cannot tween otherwise. Browsers without @property render the ring
|
|
14
16
|
at its initial angle, static — a correct, quieter fallback. */
|
|
@@ -18,6 +20,19 @@
|
|
|
18
20
|
inherits: false;
|
|
19
21
|
}
|
|
20
22
|
|
|
23
|
+
/* The opening signature: the AI gradient sweeps once around the whole
|
|
24
|
+
border — the button's masked conic ring, run as a single swoosh — then
|
|
25
|
+
fades away, leaving the regular border. The rotation animates a
|
|
26
|
+
registered custom property; without @property support the ring still
|
|
27
|
+
fades in and out, just without turning. */
|
|
28
|
+
@property --ds-ai-summary-ring-angle {
|
|
29
|
+
syntax: '<angle>';
|
|
30
|
+
initial-value: 0deg;
|
|
31
|
+
inherits: false;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@layer rift.components {
|
|
35
|
+
|
|
21
36
|
/* Base */
|
|
22
37
|
.ds-ai-button {
|
|
23
38
|
/* Layout */
|
|
@@ -505,17 +520,6 @@
|
|
|
505
520
|
}
|
|
506
521
|
}
|
|
507
522
|
|
|
508
|
-
/* The opening signature: the AI gradient sweeps once around the whole
|
|
509
|
-
border — the button's masked conic ring, run as a single swoosh — then
|
|
510
|
-
fades away, leaving the regular border. The rotation animates a
|
|
511
|
-
registered custom property; without @property support the ring still
|
|
512
|
-
fades in and out, just without turning. */
|
|
513
|
-
@property --ds-ai-summary-ring-angle {
|
|
514
|
-
syntax: '<angle>';
|
|
515
|
-
initial-value: 0deg;
|
|
516
|
-
inherits: false;
|
|
517
|
-
}
|
|
518
|
-
|
|
519
523
|
.ds-ai-button__summary::before,
|
|
520
524
|
.ds-ai-button__request::before {
|
|
521
525
|
content: '';
|
|
@@ -762,3 +766,5 @@
|
|
|
762
766
|
.ds-tooltip:has(> .ds-ai-button[aria-expanded='true']) .ds-tooltip__panel {
|
|
763
767
|
display: none;
|
|
764
768
|
}
|
|
769
|
+
|
|
770
|
+
} /* @layer rift.components */
|
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
Contextual feedback with status variants
|
|
4
4
|
============================================ */
|
|
5
5
|
|
|
6
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
7
|
+
|
|
8
|
+
@layer rift.components {
|
|
9
|
+
|
|
6
10
|
.ds-alert {
|
|
7
11
|
display: flex;
|
|
8
12
|
align-items: flex-start;
|
|
@@ -287,3 +291,5 @@
|
|
|
287
291
|
.ds-alert .material-symbols-rounded {
|
|
288
292
|
color: inherit;
|
|
289
293
|
}
|
|
294
|
+
|
|
295
|
+
} /* @layer rift.components */
|
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
Modal confirmation with backdrop overlay
|
|
4
4
|
============================================ */
|
|
5
5
|
|
|
6
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
7
|
+
|
|
8
|
+
@layer rift.components {
|
|
9
|
+
|
|
6
10
|
.ds-alert-dialog {
|
|
7
11
|
position: fixed;
|
|
8
12
|
inset: 0;
|
|
@@ -131,3 +135,5 @@
|
|
|
131
135
|
margin: var(--padding-400);
|
|
132
136
|
}
|
|
133
137
|
}
|
|
138
|
+
|
|
139
|
+
} /* @layer rift.components */
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
2
|
+
|
|
3
|
+
@layer rift.components {
|
|
4
|
+
|
|
1
5
|
/* ============================================
|
|
2
6
|
ANCHOR NAV
|
|
3
7
|
"On this page" list of anchor links with a
|
|
@@ -135,3 +139,5 @@
|
|
|
135
139
|
pointer-events: auto;
|
|
136
140
|
transform: translate(0, -50%);
|
|
137
141
|
}
|
|
142
|
+
|
|
143
|
+
} /* @layer rift.components */
|
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
A number that counts to its value
|
|
4
4
|
============================================ */
|
|
5
5
|
|
|
6
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
7
|
+
|
|
8
|
+
@layer rift.components {
|
|
9
|
+
|
|
6
10
|
/* Base — inherits the surrounding type entirely: the component is a number
|
|
7
11
|
inside someone else's composition (a Stat, a table cell, a sentence), so
|
|
8
12
|
it owns no face, size, or colour of its own. */
|
|
@@ -17,3 +21,4 @@
|
|
|
17
21
|
font-variant-numeric: tabular-nums;
|
|
18
22
|
}
|
|
19
23
|
|
|
24
|
+
} /* @layer rift.components */
|
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
Sidebar rail on the left, centered content area
|
|
4
4
|
============================================ */
|
|
5
5
|
|
|
6
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
7
|
+
|
|
8
|
+
@layer rift.components {
|
|
9
|
+
|
|
6
10
|
.ds-app-layout {
|
|
7
11
|
/* The contained width, AppLayout's own: an app's working column. */
|
|
8
12
|
--ds-shell-contained-width: 1120px;
|
|
@@ -165,3 +169,5 @@
|
|
|
165
169
|
padding: var(--padding-500) var(--padding-400);
|
|
166
170
|
}
|
|
167
171
|
}
|
|
172
|
+
|
|
173
|
+
} /* @layer rift.components */
|
|
@@ -4,6 +4,10 @@
|
|
|
4
4
|
Expanded: 280px with labels, accordion, profile
|
|
5
5
|
============================================ */
|
|
6
6
|
|
|
7
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
8
|
+
|
|
9
|
+
@layer rift.components {
|
|
10
|
+
|
|
7
11
|
/* ============================================
|
|
8
12
|
WRAPPER
|
|
9
13
|
============================================ */
|
|
@@ -1005,6 +1009,16 @@
|
|
|
1005
1009
|
outline-offset: -2px;
|
|
1006
1010
|
}
|
|
1007
1011
|
|
|
1012
|
+
/* The rail's standalone controls (the collapse toggle, the profile menu
|
|
1013
|
+
button, the mobile trigger) take the same ring, outside their round box as
|
|
1014
|
+
Button's sits, rather than the browser's default. */
|
|
1015
|
+
.ds-app-sidebar__toggle:focus-visible,
|
|
1016
|
+
.ds-app-sidebar__profile-more:focus-visible,
|
|
1017
|
+
.ds-app-sidebar__mobile-trigger:focus-visible {
|
|
1018
|
+
outline: 2px solid var(--color-action-primary-bg);
|
|
1019
|
+
outline-offset: 2px;
|
|
1020
|
+
}
|
|
1021
|
+
|
|
1008
1022
|
/* ============================================
|
|
1009
1023
|
DRAWER DRILL-IN — the panel's level as a
|
|
1010
1024
|
second screen inside the mobile drawer
|
|
@@ -1074,7 +1088,9 @@
|
|
|
1074
1088
|
width: 40px;
|
|
1075
1089
|
height: 40px;
|
|
1076
1090
|
padding: 0;
|
|
1077
|
-
|
|
1091
|
+
/* Opaque: the trigger floats over the page's own content, and the
|
|
1092
|
+
container fill is translucent in dark mode. */
|
|
1093
|
+
background: var(--color-bg-page-primary);
|
|
1078
1094
|
border: var(--border-025) solid var(--color-bg-container-border);
|
|
1079
1095
|
border-radius: var(--radius-pill);
|
|
1080
1096
|
color: var(--color-text-primary);
|
|
@@ -1225,3 +1241,5 @@
|
|
|
1225
1241
|
.ds-app-sidebar__toggle:active::before {
|
|
1226
1242
|
background-color: var(--color-action-passive-bg-active);
|
|
1227
1243
|
}
|
|
1244
|
+
|
|
1245
|
+
} /* @layer rift.components */
|
|
@@ -69,7 +69,7 @@ type AppSidebarOwnProps = {
|
|
|
69
69
|
sections: AppSidebarSection[];
|
|
70
70
|
/** Profile data for the bottom section */
|
|
71
71
|
profile?: AppSidebarProfile;
|
|
72
|
-
/** Key of the currently active item */
|
|
72
|
+
/** Key of the currently active item. When one of its children is the current page (`activeSubKey` or `activeTertiaryKey`), that child carries `aria-current` instead, and this row drops its fill while the child shows below it. */
|
|
73
73
|
activeKey?: string;
|
|
74
74
|
/** Key of the currently active sub-item */
|
|
75
75
|
activeSubKey?: string;
|
|
@@ -5,7 +5,7 @@ import { useLinkComponent } from "../../behaviors/LinkProvider.js";
|
|
|
5
5
|
import { useLayer } from "../../behaviors/useLayer.js";
|
|
6
6
|
import { useFocusScope } from "../../behaviors/useFocusScope.js";
|
|
7
7
|
import { useScrollLock } from "../../behaviors/useScrollLock.js";
|
|
8
|
-
import { mediaAbove, mediaBelow,
|
|
8
|
+
import { mediaAbove, mediaBelow, BREAKPOINT_MOBILE_PX, BREAKPOINT_TABLET_PX } from "../../tokens/breakpoints.js";
|
|
9
9
|
import { Avatar } from "../Avatar/Avatar.js";
|
|
10
10
|
import { PixelAvatar } from "../PixelAvatar/PixelAvatar.js";
|
|
11
11
|
import { SidebarPanel } from "../SidebarPanel/SidebarPanel.js";
|
|
@@ -349,7 +349,13 @@ const AppSidebar = React.forwardRef(function AppSidebar2({
|
|
|
349
349
|
const isOpen = openKeys.has(item.key);
|
|
350
350
|
const feedsPanel = isPanelMode && hasChildren;
|
|
351
351
|
const isSource = feedsPanel && item.key === panelSourceKey;
|
|
352
|
-
const
|
|
352
|
+
const childCurrent = Boolean(
|
|
353
|
+
hasChildren && item.children.some(
|
|
354
|
+
(sub) => sub.key === activeSubKey || sub.children?.some((leaf) => leaf.key === activeTertiaryKey)
|
|
355
|
+
)
|
|
356
|
+
);
|
|
357
|
+
const childShows = childCurrent && !isPanelMode && (isExpanded || mobileOpen) && isOpen;
|
|
358
|
+
const isActive = (isPanelMode && panelVisible ? isSource : activeKey === item.key) && !childShows;
|
|
353
359
|
const isLink = Boolean(item.href) && !hasChildren;
|
|
354
360
|
const itemClasses = [
|
|
355
361
|
`${baseClass}__btn`,
|
|
@@ -413,7 +419,7 @@ const AppSidebar = React.forwardRef(function AppSidebar2({
|
|
|
413
419
|
},
|
|
414
420
|
"aria-expanded": feedsPanel ? mobileOpen ? void 0 : isSource && panelVisible : hasChildren ? isOpen : void 0,
|
|
415
421
|
"aria-controls": feedsPanel && !mobileOpen ? panelId : void 0,
|
|
416
|
-
"aria-current": activeKey === item.key ? "page" : void 0,
|
|
422
|
+
"aria-current": activeKey === item.key && !childCurrent ? "page" : void 0,
|
|
417
423
|
"data-panel-source": isSource ? "true" : void 0,
|
|
418
424
|
title: !isExpanded && !isPanelMode ? item.label : void 0,
|
|
419
425
|
children: itemContent
|
|
@@ -459,7 +465,7 @@ const AppSidebar = React.forwardRef(function AppSidebar2({
|
|
|
459
465
|
},
|
|
460
466
|
"aria-expanded": mobileOpen ? void 0 : subIsSource && panelVisible,
|
|
461
467
|
"aria-controls": mobileOpen ? void 0 : panelId,
|
|
462
|
-
"aria-current": activeSubKey === sub.key ? "page" : void 0,
|
|
468
|
+
"aria-current": activeSubKey === sub.key && !sub.children?.some((leaf) => leaf.key === activeTertiaryKey) ? "page" : void 0,
|
|
463
469
|
"data-panel-source": subIsSource ? "true" : void 0,
|
|
464
470
|
children: subLabel
|
|
465
471
|
}
|
|
@@ -5,6 +5,10 @@
|
|
|
5
5
|
toggle button: pressed while its artifact is on stage in the panel.
|
|
6
6
|
============================================ */
|
|
7
7
|
|
|
8
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
9
|
+
|
|
10
|
+
@layer rift.components {
|
|
11
|
+
|
|
8
12
|
/* Base */
|
|
9
13
|
|
|
10
14
|
.ds-artifact-card {
|
|
@@ -105,3 +109,5 @@
|
|
|
105
109
|
opacity: 0.4;
|
|
106
110
|
cursor: not-allowed;
|
|
107
111
|
}
|
|
112
|
+
|
|
113
|
+
} /* @layer rift.components */
|
|
@@ -10,6 +10,10 @@
|
|
|
10
10
|
never leave with the content.
|
|
11
11
|
============================================ */
|
|
12
12
|
|
|
13
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
14
|
+
|
|
15
|
+
@layer rift.components {
|
|
16
|
+
|
|
13
17
|
/* Base */
|
|
14
18
|
|
|
15
19
|
.ds-artifact-panel {
|
|
@@ -203,3 +207,5 @@
|
|
|
203
207
|
.ds-artifact-panel--inline .ds-artifact-panel__frame {
|
|
204
208
|
min-height: var(--ds-artifact-panel-stage-height, calc(6 * var(--control-height-default)));
|
|
205
209
|
}
|
|
210
|
+
|
|
211
|
+
} /* @layer rift.components */
|
|
@@ -7,6 +7,10 @@
|
|
|
7
7
|
One stylesheet, shared by every member.
|
|
8
8
|
============================================ */
|
|
9
9
|
|
|
10
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
11
|
+
|
|
12
|
+
@layer rift.components {
|
|
13
|
+
|
|
10
14
|
/* ============================================
|
|
11
15
|
TYPE MARK — what kind of file this is
|
|
12
16
|
Shared by the tile and the viewer. Every mark, and every glyph a tile
|
|
@@ -1134,3 +1138,5 @@ button.ds-attachment-group__single:focus-visible {
|
|
|
1134
1138
|
align-items: center;
|
|
1135
1139
|
gap: var(--gap-100);
|
|
1136
1140
|
}
|
|
1141
|
+
|
|
1142
|
+
} /* @layer rift.components */
|
|
@@ -7,6 +7,7 @@ import { renderTypeMark } from "./typeMark.js";
|
|
|
7
7
|
import { AttachmentViewer } from "./AttachmentViewer.js";
|
|
8
8
|
import "./Attachment.css";
|
|
9
9
|
import { useLocale } from "../../behaviors/LocaleProvider.js";
|
|
10
|
+
import { revokeAttachmentUrls, useAttachments } from "./useAttachments.js";
|
|
10
11
|
const isPicture = (item) => item.status === "ready" && item.kind === "image" && Boolean(item.previewSrc);
|
|
11
12
|
const AttachmentGroup = React.forwardRef(
|
|
12
13
|
({
|
|
@@ -192,5 +193,7 @@ const AttachmentGroup = React.forwardRef(
|
|
|
192
193
|
);
|
|
193
194
|
AttachmentGroup.displayName = "AttachmentGroup";
|
|
194
195
|
export {
|
|
195
|
-
AttachmentGroup
|
|
196
|
+
AttachmentGroup,
|
|
197
|
+
revokeAttachmentUrls,
|
|
198
|
+
useAttachments
|
|
196
199
|
};
|