rift-ds 1.35.0 → 1.37.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 +2 -1
- package/behaviors/chat-card.css +6 -0
- package/behaviors/direction.css +6 -0
- package/behaviors/matchParts.d.ts +9 -0
- package/behaviors/matchParts.js +10 -0
- package/behaviors/shell.css +6 -0
- package/behaviors/shortcuts.js +2 -2
- package/behaviors/useLayer.d.ts +2 -2
- package/behaviors/visually-hidden.css +6 -0
- package/bin/templates/blocks/app/landing/page.module.css +50 -0
- package/bin/templates/blocks/app/landing/page.tsx +157 -0
- package/bin/templates/blocks/app/pricing/page.module.css +15 -0
- package/bin/templates/blocks/app/pricing/page.tsx +173 -0
- package/bin/templates/blocks/app/settings/ProfileForm.tsx +1 -1
- package/bin/templates/blocks/app/sign-in/page.tsx +3 -3
- package/bin/templates/blocks/components/blocks/MarketingShell.module.css +66 -0
- package/bin/templates/blocks/components/blocks/MarketingShell.tsx +141 -0
- package/bin/templates/blocks/components/blocks/emberScene.ts +1 -1
- package/bin/templates/blocks/registry.json +24 -0
- package/chat/AssistantTurn.js +5 -20
- 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/ActiveReporter.d.ts +32 -0
- package/components/Chart/ActiveReporter.js +31 -0
- package/components/Chart/AreaChart.d.ts +7 -1
- package/components/Chart/AreaChart.js +8 -3
- package/components/Chart/BarChart.d.ts +12 -0
- package/components/Chart/BarChart.js +8 -3
- package/components/Chart/Chart.css +9 -1
- package/components/Chart/ComboChart.d.ts +7 -1
- package/components/Chart/ComboChart.js +8 -3
- package/components/Chart/LineChart.d.ts +7 -1
- package/components/Chart/LineChart.js +8 -3
- package/components/Chart/StackedBarChart.d.ts +7 -1
- package/components/Chart/StackedBarChart.js +8 -3
- 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 +32 -0
- package/components/Combobox/Combobox.d.ts +10 -0
- package/components/Combobox/Combobox.js +10 -0
- package/components/CommandPalette/CommandPalette.css +32 -0
- package/components/CommandPalette/CommandPalette.d.ts +2 -1
- package/components/CommandPalette/CommandPalette.js +21 -4
- 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 +55 -7
- package/components/Drawer/Drawer.d.ts +17 -1
- package/components/Drawer/Drawer.js +27 -5
- package/components/Dropdown/ChosenMark.css +6 -0
- package/components/Dropdown/Dropdown.css +46 -0
- package/components/Dropdown/Dropdown.d.ts +7 -0
- package/components/Dropdown/Dropdown.js +23 -38
- 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 +27 -0
- package/components/Instructions/Instructions.d.ts +5 -2
- package/components/Instructions/Instructions.js +1 -1
- 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 +7 -7
- 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/NavList/NavList.d.ts +2 -0
- package/components/NavList/NavList.js +1 -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/ShaderScene/ShaderScene.d.ts +3 -2
- package/components/ShaderScene/assemble.js +13 -5
- package/components/ShaderScene/renderer.d.ts +2 -2
- package/components/ShaderScene/types.d.ts +2 -1
- 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/components/registry.json +3 -3
- package/components/registry.json.d.ts +3 -3
- package/components/registry.json.js +1 -1
- package/fonts/material-symbols.css +10 -0
- package/markdown/index.d.ts +8 -0
- package/markdown/index.js +10 -0
- package/markdown/mappers.d.ts +31 -0
- package/markdown/mappers.js +43 -0
- package/package.json +7 -2
- package/tokens/base.css +11 -2
- package/tokens/presets/contrast.css +8 -0
- package/tokens/presets/forest.css +8 -0
- package/tokens/presets/plum.css +18 -5
- package/tokens/presets/warm.css +10 -5
- package/tokens/presets/zest.css +22 -5
- package/tokens/values.json.js +1 -1
|
@@ -4,6 +4,10 @@
|
|
|
4
4
|
`@` for entities, `/` for skills.
|
|
5
5
|
============================================ */
|
|
6
6
|
|
|
7
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
8
|
+
|
|
9
|
+
@layer rift.components {
|
|
10
|
+
|
|
7
11
|
/* ============================================
|
|
8
12
|
TAG
|
|
9
13
|
Composer lays this exact tag over the text of its textarea, so nothing
|
|
@@ -193,3 +197,5 @@
|
|
|
193
197
|
letter-spacing: var(--font-paragraph-sm-letter-spacing);
|
|
194
198
|
color: var(--color-text-tertiary);
|
|
195
199
|
}
|
|
200
|
+
|
|
201
|
+
} /* @layer rift.components */
|
|
@@ -3,9 +3,10 @@ import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
|
3
3
|
import React, { useRef, useLayoutEffect } from "react";
|
|
4
4
|
import "../../fonts/material-symbols.css";
|
|
5
5
|
import "./Mention.css";
|
|
6
|
-
import { mentionOptionId, mentionListboxId
|
|
6
|
+
import { splitMentions, mentionOptionId, mentionListboxId } from "./mentions.js";
|
|
7
7
|
import { filterMentionItems, getMentionQuery, insertMention } from "./mentions.js";
|
|
8
8
|
import { mirrorClass } from "../../behaviors/direction.js";
|
|
9
|
+
import { matchParts } from "../../behaviors/matchParts.js";
|
|
9
10
|
const Mention = React.forwardRef(
|
|
10
11
|
({ trigger = "@", className = "", children, ...rest }, ref) => /* @__PURE__ */ jsxs(
|
|
11
12
|
"span",
|
|
@@ -40,13 +41,12 @@ const MentionText = React.forwardRef(
|
|
|
40
41
|
);
|
|
41
42
|
MentionText.displayName = "MentionText";
|
|
42
43
|
const renderLabel = (label, query) => {
|
|
43
|
-
const
|
|
44
|
-
|
|
45
|
-
if (at < 0) return label;
|
|
44
|
+
const parts = matchParts(label, query);
|
|
45
|
+
if (!parts) return label;
|
|
46
46
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
47
|
-
|
|
48
|
-
/* @__PURE__ */ jsx("span", { className: "ds-mention-menu__match", children:
|
|
49
|
-
|
|
47
|
+
parts[0],
|
|
48
|
+
/* @__PURE__ */ jsx("span", { className: "ds-mention-menu__match", children: parts[1] }),
|
|
49
|
+
parts[2]
|
|
50
50
|
] });
|
|
51
51
|
};
|
|
52
52
|
const MentionMenu = React.forwardRef(
|
|
@@ -5,6 +5,10 @@
|
|
|
5
5
|
menu is a DropdownMenu, whose panel is unchanged.
|
|
6
6
|
============================================ */
|
|
7
7
|
|
|
8
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
9
|
+
|
|
10
|
+
@layer rift.components {
|
|
11
|
+
|
|
8
12
|
/* Base: Toolbar's pill shell, so a menu bar and a toolbar sitting in the
|
|
9
13
|
same chrome read as one family. Padding clears the focus ring's reach. */
|
|
10
14
|
|
|
@@ -80,3 +84,5 @@
|
|
|
80
84
|
height: calc(var(--control-height-compact) - var(--padding-200));
|
|
81
85
|
padding-inline: var(--padding-200);
|
|
82
86
|
}
|
|
87
|
+
|
|
88
|
+
} /* @layer rift.components */
|
|
@@ -10,6 +10,10 @@
|
|
|
10
10
|
timer inside the row.
|
|
11
11
|
============================================ */
|
|
12
12
|
|
|
13
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
14
|
+
|
|
15
|
+
@layer rift.components {
|
|
16
|
+
|
|
13
17
|
.ds-message-actions {
|
|
14
18
|
display: flex;
|
|
15
19
|
align-items: center;
|
|
@@ -91,3 +95,5 @@
|
|
|
91
95
|
.ds-message-actions .material-symbols-rounded {
|
|
92
96
|
color: inherit;
|
|
93
97
|
}
|
|
98
|
+
|
|
99
|
+
} /* @layer rift.components */
|
|
@@ -11,6 +11,10 @@
|
|
|
11
11
|
shell, so cards read the same across surfaces.
|
|
12
12
|
============================================ */
|
|
13
13
|
|
|
14
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
15
|
+
|
|
16
|
+
@layer rift.components {
|
|
17
|
+
|
|
14
18
|
.ds-message-card {
|
|
15
19
|
display: flex;
|
|
16
20
|
flex-direction: column;
|
|
@@ -181,3 +185,5 @@
|
|
|
181
185
|
.ds-message-card .material-symbols-rounded {
|
|
182
186
|
color: inherit;
|
|
183
187
|
}
|
|
188
|
+
|
|
189
|
+
} /* @layer rift.components */
|
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
Level indicator for a known quantity
|
|
4
4
|
============================================ */
|
|
5
5
|
|
|
6
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
7
|
+
|
|
8
|
+
@layer rift.components {
|
|
9
|
+
|
|
6
10
|
.ds-meter {
|
|
7
11
|
display: flex;
|
|
8
12
|
flex-direction: column;
|
|
@@ -96,3 +100,5 @@
|
|
|
96
100
|
.ds-meter--neutral .ds-meter__fill {
|
|
97
101
|
background-color: var(--color-status-neutral-border);
|
|
98
102
|
}
|
|
103
|
+
|
|
104
|
+
} /* @layer rift.components */
|
|
@@ -9,6 +9,10 @@
|
|
|
9
9
|
the send button keeps the only action colour.
|
|
10
10
|
============================================ */
|
|
11
11
|
|
|
12
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
13
|
+
|
|
14
|
+
@layer rift.components {
|
|
15
|
+
|
|
12
16
|
.ds-model-picker {
|
|
13
17
|
position: relative;
|
|
14
18
|
display: inline-flex;
|
|
@@ -214,3 +218,5 @@
|
|
|
214
218
|
.ds-model-picker--compact .ds-model-picker__trigger {
|
|
215
219
|
padding-inline-end: var(--padding-200);
|
|
216
220
|
}
|
|
221
|
+
|
|
222
|
+
} /* @layer rift.components */
|
|
@@ -5,6 +5,10 @@
|
|
|
5
5
|
Click the preview to replay one-shot demos.
|
|
6
6
|
============================================ */
|
|
7
7
|
|
|
8
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
9
|
+
|
|
10
|
+
@layer rift.components {
|
|
11
|
+
|
|
8
12
|
.ds-motion-swatch {
|
|
9
13
|
/* Layout */
|
|
10
14
|
display: flex;
|
|
@@ -174,3 +178,5 @@
|
|
|
174
178
|
text-align: center;
|
|
175
179
|
overflow-wrap: anywhere;
|
|
176
180
|
}
|
|
181
|
+
|
|
182
|
+
} /* @layer rift.components */
|
package/components/Nav/Nav.css
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
Top navigation bar using ButtonGroup
|
|
4
4
|
============================================ */
|
|
5
5
|
|
|
6
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
7
|
+
|
|
8
|
+
@layer rift.components {
|
|
9
|
+
|
|
6
10
|
.ds-nav {
|
|
7
11
|
display: flex;
|
|
8
12
|
align-items: center;
|
|
@@ -49,3 +53,5 @@
|
|
|
49
53
|
flex-shrink: 0;
|
|
50
54
|
flex-wrap: nowrap;
|
|
51
55
|
}
|
|
56
|
+
|
|
57
|
+
} /* @layer rift.components */
|
|
@@ -7,6 +7,10 @@
|
|
|
7
7
|
toggle, and the expand animation.
|
|
8
8
|
============================================ */
|
|
9
9
|
|
|
10
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
11
|
+
|
|
12
|
+
@layer rift.components {
|
|
13
|
+
|
|
10
14
|
.ds-nav-list {
|
|
11
15
|
/* How far a row's text sits in from the row's own edge (the rows are
|
|
12
16
|
compact tertiary Buttons, the headings share their inset). A host that
|
|
@@ -350,3 +354,5 @@
|
|
|
350
354
|
border-radius: var(--radius-pill);
|
|
351
355
|
background: var(--color-bg-container-border);
|
|
352
356
|
}
|
|
357
|
+
|
|
358
|
+
} /* @layer rift.components */
|
|
@@ -23,6 +23,8 @@ export interface NavListItem {
|
|
|
23
23
|
current?: boolean;
|
|
24
24
|
/** A short tag after the label, such as "New" or "Beta", drawn as a neutral Badge. */
|
|
25
25
|
badge?: string;
|
|
26
|
+
/** Icon before the label — Material Symbol name (string) or custom element (ReactNode) */
|
|
27
|
+
icon?: string | React.ReactNode;
|
|
26
28
|
}
|
|
27
29
|
/**
|
|
28
30
|
* A titled section of rows: a heading over its items, the way a long
|
|
@@ -127,6 +127,7 @@ const NavList = React.forwardRef(
|
|
|
127
127
|
variant: "tertiary",
|
|
128
128
|
size: level === 1 && size === "default" ? "default" : "compact",
|
|
129
129
|
label: item.label,
|
|
130
|
+
iconLeft: item.icon,
|
|
130
131
|
iconRight: item.badge ? /* @__PURE__ */ jsx(Badge, { className: `${baseClass}__badge`, label: item.badge, variant: "neutral" }) : void 0,
|
|
131
132
|
href: item.href,
|
|
132
133
|
linkComponent,
|
|
@@ -9,6 +9,10 @@
|
|
|
9
9
|
dropped from a bell icon or inline on a page.
|
|
10
10
|
============================================ */
|
|
11
11
|
|
|
12
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
13
|
+
|
|
14
|
+
@layer rift.components {
|
|
15
|
+
|
|
12
16
|
.ds-notification-center {
|
|
13
17
|
display: flex;
|
|
14
18
|
flex-direction: column;
|
|
@@ -265,3 +269,5 @@
|
|
|
265
269
|
.ds-notification-center .material-symbols-rounded {
|
|
266
270
|
color: inherit;
|
|
267
271
|
}
|
|
272
|
+
|
|
273
|
+
} /* @layer rift.components */
|
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
Numeric field with stepper buttons and clamping
|
|
4
4
|
============================================ */
|
|
5
5
|
|
|
6
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
7
|
+
|
|
8
|
+
@layer rift.components {
|
|
9
|
+
|
|
6
10
|
/* Base */
|
|
7
11
|
|
|
8
12
|
.ds-numberinput {
|
|
@@ -161,3 +165,5 @@
|
|
|
161
165
|
.ds-numberinput .material-symbols-rounded {
|
|
162
166
|
color: inherit;
|
|
163
167
|
}
|
|
168
|
+
|
|
169
|
+
} /* @layer rift.components */
|
|
@@ -11,6 +11,10 @@
|
|
|
11
11
|
right-to-left context.
|
|
12
12
|
============================================ */
|
|
13
13
|
|
|
14
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
15
|
+
|
|
16
|
+
@layer rift.components {
|
|
17
|
+
|
|
14
18
|
/* Base */
|
|
15
19
|
.ds-org-chart {
|
|
16
20
|
min-width: 0;
|
|
@@ -141,3 +145,5 @@
|
|
|
141
145
|
letter-spacing: var(--font-caption-letter-spacing);
|
|
142
146
|
color: var(--color-text-tertiary);
|
|
143
147
|
}
|
|
148
|
+
|
|
149
|
+
} /* @layer rift.components */
|
|
@@ -7,6 +7,10 @@
|
|
|
7
7
|
text by the room it has, never the viewport.
|
|
8
8
|
============================================ */
|
|
9
9
|
|
|
10
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
11
|
+
|
|
12
|
+
@layer rift.components {
|
|
13
|
+
|
|
10
14
|
/* Base */
|
|
11
15
|
.ds-page-header {
|
|
12
16
|
container-type: inline-size;
|
|
@@ -72,3 +76,5 @@
|
|
|
72
76
|
flex: 1 1 auto;
|
|
73
77
|
}
|
|
74
78
|
}
|
|
79
|
+
|
|
80
|
+
} /* @layer rift.components */
|
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
Page navigation for long datasets
|
|
4
4
|
============================================ */
|
|
5
5
|
|
|
6
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
7
|
+
|
|
8
|
+
@layer rift.components {
|
|
9
|
+
|
|
6
10
|
.ds-pagination {
|
|
7
11
|
display: inline-flex;
|
|
8
12
|
align-items: center;
|
|
@@ -206,3 +210,5 @@
|
|
|
206
210
|
grid-column: 1;
|
|
207
211
|
}
|
|
208
212
|
}
|
|
213
|
+
|
|
214
|
+
} /* @layer rift.components */
|
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
The plain dashboard surface
|
|
4
4
|
============================================ */
|
|
5
5
|
|
|
6
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
7
|
+
|
|
8
|
+
@layer rift.components {
|
|
9
|
+
|
|
6
10
|
.ds-panel {
|
|
7
11
|
display: flex;
|
|
8
12
|
flex-direction: column;
|
|
@@ -31,3 +35,5 @@
|
|
|
31
35
|
.ds-panel--flush {
|
|
32
36
|
padding: 0;
|
|
33
37
|
}
|
|
38
|
+
|
|
39
|
+
} /* @layer rift.components */
|
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
Segmented one-time-code input
|
|
4
4
|
============================================ */
|
|
5
5
|
|
|
6
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
7
|
+
|
|
8
|
+
@layer rift.components {
|
|
9
|
+
|
|
6
10
|
/* Base — the Field wrapper carries the root class */
|
|
7
11
|
.ds-pininput {
|
|
8
12
|
display: flex;
|
|
@@ -90,3 +94,5 @@
|
|
|
90
94
|
color: var(--color-input-text-disabled);
|
|
91
95
|
cursor: not-allowed;
|
|
92
96
|
}
|
|
97
|
+
|
|
98
|
+
} /* @layer rift.components */
|
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
A generated character mark, drawn from a name
|
|
4
4
|
============================================ */
|
|
5
5
|
|
|
6
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
7
|
+
|
|
8
|
+
@layer rift.components {
|
|
9
|
+
|
|
6
10
|
/* Base — the character rides the icon scale, so it seats wherever an icon
|
|
7
11
|
does. A host that already sets --icon-size on its icon seat is matched by
|
|
8
12
|
the size classes below, which set the same variable. */
|
|
@@ -77,3 +81,5 @@
|
|
|
77
81
|
border-radius: var(--radius-200);
|
|
78
82
|
background-color: color-mix(in srgb, var(--ds-pixel-avatar-ink) 16%, transparent);
|
|
79
83
|
}
|
|
84
|
+
|
|
85
|
+
} /* @layer rift.components */
|
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
Contextual overlay panel
|
|
4
4
|
============================================ */
|
|
5
5
|
|
|
6
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
7
|
+
|
|
8
|
+
@layer rift.components {
|
|
9
|
+
|
|
6
10
|
.ds-popover {
|
|
7
11
|
position: relative;
|
|
8
12
|
display: inline-flex;
|
|
@@ -118,3 +122,5 @@
|
|
|
118
122
|
border-color: var(--color-input-border-primary);
|
|
119
123
|
border-radius: var(--radius-300);
|
|
120
124
|
}
|
|
125
|
+
|
|
126
|
+
} /* @layer rift.components */
|
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
Displays completion progress as a horizontal bar
|
|
4
4
|
============================================ */
|
|
5
5
|
|
|
6
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
7
|
+
|
|
8
|
+
@layer rift.components {
|
|
9
|
+
|
|
6
10
|
.ds-progress-bar {
|
|
7
11
|
display: flex;
|
|
8
12
|
align-items: center;
|
|
@@ -58,3 +62,5 @@
|
|
|
58
62
|
.ds-progress-bar__fill {
|
|
59
63
|
background-color: var(--color-core-accent-mint);
|
|
60
64
|
}
|
|
65
|
+
|
|
66
|
+
} /* @layer rift.components */
|
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
A backdrop blur that dissolves along one edge
|
|
4
4
|
============================================ */
|
|
5
5
|
|
|
6
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
7
|
+
|
|
8
|
+
@layer rift.components {
|
|
9
|
+
|
|
6
10
|
/* Why a stack, and why masks: a single backdrop-filter is uniform across its
|
|
7
11
|
whole box, so a tint that fades to transparent still ends in a hard line
|
|
8
12
|
where the blur stops. A mask-image multiplies both the layer's paint and
|
|
@@ -100,3 +104,5 @@
|
|
|
100
104
|
.ds-progressive-blur--tinted::after {
|
|
101
105
|
opacity: 1;
|
|
102
106
|
}
|
|
107
|
+
|
|
108
|
+
} /* @layer rift.components */
|
|
@@ -5,6 +5,10 @@
|
|
|
5
5
|
wraps for empty-state hero placements.
|
|
6
6
|
============================================ */
|
|
7
7
|
|
|
8
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
9
|
+
|
|
10
|
+
@layer rift.components {
|
|
11
|
+
|
|
8
12
|
.ds-prompt-suggestions {
|
|
9
13
|
display: flex;
|
|
10
14
|
gap: var(--gap-200);
|
|
@@ -546,3 +550,4 @@
|
|
|
546
550
|
box-shadow: none;
|
|
547
551
|
}
|
|
548
552
|
|
|
553
|
+
} /* @layer rift.components */
|
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
Token-styled typography for rendered markdown
|
|
4
4
|
============================================ */
|
|
5
5
|
|
|
6
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
7
|
+
|
|
8
|
+
@layer rift.components {
|
|
9
|
+
|
|
6
10
|
.ds-prose {
|
|
7
11
|
font-family: var(--font-paragraph-family);
|
|
8
12
|
font-size: var(--font-paragraph-size);
|
|
@@ -338,3 +342,5 @@
|
|
|
338
342
|
.ds-prose--sm code {
|
|
339
343
|
font-size: var(--font-paragraph-sm-size);
|
|
340
344
|
}
|
|
345
|
+
|
|
346
|
+
} /* @layer rift.components */
|
|
@@ -13,6 +13,10 @@
|
|
|
13
13
|
it. The rows carry the structure.
|
|
14
14
|
============================================ */
|
|
15
15
|
|
|
16
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
17
|
+
|
|
18
|
+
@layer rift.components {
|
|
19
|
+
|
|
16
20
|
.ds-question-card {
|
|
17
21
|
display: flex;
|
|
18
22
|
flex-direction: column;
|
|
@@ -352,3 +356,4 @@ button.ds-question-card__option--chosen:hover {
|
|
|
352
356
|
color: var(--color-text-tertiary);
|
|
353
357
|
}
|
|
354
358
|
|
|
359
|
+
} /* @layer rift.components */
|
|
@@ -4,6 +4,10 @@
|
|
|
4
4
|
optional attribution.
|
|
5
5
|
============================================ */
|
|
6
6
|
|
|
7
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
8
|
+
|
|
9
|
+
@layer rift.components {
|
|
10
|
+
|
|
7
11
|
.ds-quote {
|
|
8
12
|
margin: 0;
|
|
9
13
|
display: flex;
|
|
@@ -76,3 +80,5 @@
|
|
|
76
80
|
letter-spacing: var(--font-paragraph-sm-letter-spacing);
|
|
77
81
|
color: var(--color-text-tertiary);
|
|
78
82
|
}
|
|
83
|
+
|
|
84
|
+
} /* @layer rift.components */
|
|
@@ -9,6 +9,10 @@
|
|
|
9
9
|
ds-control-host lights it on hover.
|
|
10
10
|
============================================ */
|
|
11
11
|
|
|
12
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
13
|
+
|
|
14
|
+
@layer rift.components {
|
|
15
|
+
|
|
12
16
|
.ds-radio {
|
|
13
17
|
display: inline-flex;
|
|
14
18
|
align-items: center;
|
|
@@ -172,3 +176,5 @@
|
|
|
172
176
|
flex-wrap: wrap;
|
|
173
177
|
gap: var(--gap-200) var(--gap-500); /* 8px rows, 20px between options */
|
|
174
178
|
}
|
|
179
|
+
|
|
180
|
+
} /* @layer rift.components */
|
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
Star-scale rating control
|
|
4
4
|
============================================ */
|
|
5
5
|
|
|
6
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
7
|
+
|
|
8
|
+
@layer rift.components {
|
|
9
|
+
|
|
6
10
|
.ds-rating {
|
|
7
11
|
display: inline-flex;
|
|
8
12
|
align-items: center;
|
|
@@ -98,3 +102,5 @@
|
|
|
98
102
|
.ds-rating--thumbs .ds-rating__step--filled {
|
|
99
103
|
color: var(--color-icon-primary);
|
|
100
104
|
}
|
|
105
|
+
|
|
106
|
+
} /* @layer rift.components */
|
|
@@ -6,6 +6,10 @@
|
|
|
6
6
|
competing with the answer beside it.
|
|
7
7
|
============================================ */
|
|
8
8
|
|
|
9
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
10
|
+
|
|
11
|
+
@layer rift.components {
|
|
12
|
+
|
|
9
13
|
.ds-reasoning {
|
|
10
14
|
/* Where an AgentStatus summary's label starts: matrix plus its gap.
|
|
11
15
|
The rail geometry and the handoff slide both derive from it. */
|
|
@@ -304,3 +308,5 @@
|
|
|
304
308
|
animation: none;
|
|
305
309
|
}
|
|
306
310
|
}
|
|
311
|
+
|
|
312
|
+
} /* @layer rift.components */
|
|
@@ -10,6 +10,10 @@
|
|
|
10
10
|
on every theme whatever the accent.
|
|
11
11
|
============================================ */
|
|
12
12
|
|
|
13
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
14
|
+
|
|
15
|
+
@layer rift.components {
|
|
16
|
+
|
|
13
17
|
/* Base */
|
|
14
18
|
.ds-resource-timeline {
|
|
15
19
|
--ds-resource-timeline-label: 9rem;
|
|
@@ -192,3 +196,5 @@ button.ds-resource-timeline__bar:focus-visible {
|
|
|
192
196
|
.ds-resource-timeline__bar--mint {
|
|
193
197
|
--ds-resource-timeline-accent: var(--color-core-accent-mint);
|
|
194
198
|
}
|
|
199
|
+
|
|
200
|
+
} /* @layer rift.components */
|
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
Select whose options preview their own look
|
|
4
4
|
============================================ */
|
|
5
5
|
|
|
6
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
7
|
+
|
|
8
|
+
@layer rift.components {
|
|
9
|
+
|
|
6
10
|
/* Base */
|
|
7
11
|
|
|
8
12
|
.ds-rich-dropdown {
|
|
@@ -248,3 +252,5 @@
|
|
|
248
252
|
.ds-rich-dropdown__trigger {
|
|
249
253
|
padding-inline-end: var(--padding-300);
|
|
250
254
|
}
|
|
255
|
+
|
|
256
|
+
} /* @layer rift.components */
|
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
Heading with divider line, optional trailing content
|
|
4
4
|
============================================ */
|
|
5
5
|
|
|
6
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
7
|
+
|
|
8
|
+
@layer rift.components {
|
|
9
|
+
|
|
6
10
|
.ds-section-title {
|
|
7
11
|
display: flex;
|
|
8
12
|
align-items: baseline;
|
|
@@ -79,3 +83,5 @@
|
|
|
79
83
|
opacity: 1;
|
|
80
84
|
}
|
|
81
85
|
}
|
|
86
|
+
|
|
87
|
+
} /* @layer rift.components */
|
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
Pill-style toggle between related views
|
|
4
4
|
============================================ */
|
|
5
5
|
|
|
6
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
7
|
+
|
|
8
|
+
@layer rift.components {
|
|
9
|
+
|
|
6
10
|
.ds-segmented-control {
|
|
7
11
|
position: relative;
|
|
8
12
|
display: inline-flex;
|
|
@@ -470,3 +474,5 @@
|
|
|
470
474
|
.ds-segmented-control--cycle .ds-icon-button:not(.ds-icon-button--disabled):active .ds-icon-button__icon {
|
|
471
475
|
color: var(--color-action-icon-default);
|
|
472
476
|
}
|
|
477
|
+
|
|
478
|
+
} /* @layer rift.components */
|
|
@@ -15,6 +15,10 @@
|
|
|
15
15
|
draws.
|
|
16
16
|
============================================ */
|
|
17
17
|
|
|
18
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
19
|
+
|
|
20
|
+
@layer rift.components {
|
|
21
|
+
|
|
18
22
|
/* ============================================
|
|
19
23
|
GROUP — vertical stack of cards
|
|
20
24
|
============================================ */
|
|
@@ -122,3 +126,5 @@
|
|
|
122
126
|
display: inline-flex;
|
|
123
127
|
flex-shrink: 0;
|
|
124
128
|
}
|
|
129
|
+
|
|
130
|
+
} /* @layer rift.components */
|
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
ancestor the caller provides: where the field sits is a layout decision,
|
|
4
4
|
and baking one in would make the component unusable anywhere else. */
|
|
5
5
|
|
|
6
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
7
|
+
|
|
8
|
+
@layer rift.components {
|
|
9
|
+
|
|
6
10
|
.ds-shader-field {
|
|
7
11
|
position: absolute;
|
|
8
12
|
inset: 0;
|
|
@@ -22,3 +26,5 @@
|
|
|
22
26
|
.ds-shader-field[data-status='active'] {
|
|
23
27
|
opacity: 1;
|
|
24
28
|
}
|
|
29
|
+
|
|
30
|
+
} /* @layer rift.components */
|
|
@@ -4,6 +4,7 @@ import React, { useRef, useMemo, useState, useEffect } from "react";
|
|
|
4
4
|
import { DEFAULT_SHADER_BLOBS, DEFAULT_SHADER_PARAMS, useShaderField } from "./useShaderField.js";
|
|
5
5
|
import "./ShaderField.css";
|
|
6
6
|
import { MOTION_RENDERER_WATCHDOG_MS } from "../../tokens/motion.js";
|
|
7
|
+
import { BLOB_COUNT } from "./field.glsl.js";
|
|
7
8
|
const WATCHDOG_MS = MOTION_RENDERER_WATCHDOG_MS;
|
|
8
9
|
const ShaderField = React.forwardRef(
|
|
9
10
|
({
|
|
@@ -49,6 +50,7 @@ const ShaderField = React.forwardRef(
|
|
|
49
50
|
);
|
|
50
51
|
ShaderField.displayName = "ShaderField";
|
|
51
52
|
export {
|
|
53
|
+
BLOB_COUNT,
|
|
52
54
|
DEFAULT_SHADER_BLOBS,
|
|
53
55
|
DEFAULT_SHADER_PARAMS,
|
|
54
56
|
ShaderField,
|
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
Placement and clipping belong to that ancestor, as with ShaderField: where
|
|
3
3
|
a scene sits is a layout decision. */
|
|
4
4
|
|
|
5
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
6
|
+
|
|
7
|
+
@layer rift.components {
|
|
8
|
+
|
|
5
9
|
.ds-shader-scene {
|
|
6
10
|
position: absolute;
|
|
7
11
|
inset: 0;
|
|
@@ -25,3 +29,5 @@
|
|
|
25
29
|
width: 100%;
|
|
26
30
|
height: 100%;
|
|
27
31
|
}
|
|
32
|
+
|
|
33
|
+
} /* @layer rift.components */
|
|
@@ -87,8 +87,9 @@ export interface ShaderSceneProps extends ShaderSceneOwnProps, Omit<React.Compon
|
|
|
87
87
|
*
|
|
88
88
|
* Every scene but the ocean and the sky is a night scene: it adds light over a dark
|
|
89
89
|
* ground. On a light page each computes its light against a dark ground of
|
|
90
|
-
* its own and lays it onto the page as
|
|
91
|
-
*
|
|
90
|
+
* its own and lays it onto the page as colour, its brightest marks as a
|
|
91
|
+
* deepened ink of the scene's lead colour, so it reads as a dawn on paper
|
|
92
|
+
* rather than a dark block, and a crest or a beam stays visible on white. The ocean paints both: a turquoise shallow
|
|
92
93
|
* over a light page ground, deep moonlit water over a dark one. The sky does
|
|
93
94
|
* too: a golden hour over a light ground, the last of a sunset under a night sky
|
|
94
95
|
* over a dark one. Nothing here
|