rift-ds 1.34.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 +4 -3
- package/behaviors/chat-card.css +6 -0
- package/behaviors/direction.css +6 -0
- package/behaviors/locale.d.ts +9 -0
- package/behaviors/locale.js +2 -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/dashboard/page.tsx +1 -1
- 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/AppShell.module.css +10 -6
- package/chat/ChatAgentPane.css +6 -0
- package/chat/ChatTabs.js +1 -1
- package/chat/ChatWidget.css +6 -0
- package/chat/ChatWidget.d.ts +2 -2
- package/chat/ChatWidget.js +1 -1
- package/chat/DemoWelcome.js +2 -2
- package/chat/FollowupSuggestions.js +1 -1
- 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 +84 -0
- package/components/ActionBar/ActionBar.d.ts +40 -0
- package/components/ActionBar/ActionBar.js +29 -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/AiButton/AiButton.js +1 -1
- package/components/Alert/Alert.css +22 -0
- package/components/Alert/Alert.d.ts +2 -2
- package/components/Alert/Alert.js +3 -1
- 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 +159 -5
- package/components/AppSidebar/AppSidebar.d.ts +13 -1
- package/components/AppSidebar/AppSidebar.js +17 -7
- 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/ChatThread/ChatThread.d.ts +5 -1
- package/components/ChatThread/ChatThread.js +1 -1
- 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/ContextMenu/ContextMenu.d.ts +5 -1
- package/components/ContextMenu/ContextMenu.js +2 -1
- package/components/ContributionGraph/ContributionGraph.css +6 -0
- package/components/ContributionGraph/ContributionGraph.d.ts +7 -1
- package/components/ContributionGraph/ContributionGraph.js +4 -18
- package/components/ContributionGraph/weeks.d.ts +8 -0
- package/components/ContributionGraph/weeks.js +25 -0
- package/components/CurrencyInput/CurrencyInput.css +6 -0
- package/components/DataTable/DataTable.css +6 -0
- package/components/DataTable/DataTable.js +7 -3
- 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/DocumentChip/DocumentChip.js +1 -1
- 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 +17 -3
- package/components/EntitySwitcher/EntitySwitcher.js +1 -1
- package/components/ErrorSummary/ErrorSummary.css +6 -0
- package/components/ErrorSummary/ErrorSummary.js +3 -1
- package/components/EventCalendar/EventCalendar.css +158 -0
- package/components/EventCalendar/EventCalendar.d.ts +50 -4
- package/components/EventCalendar/EventCalendar.js +154 -23
- package/components/EventCalendar/eventTime.d.ts +31 -0
- package/components/EventCalendar/eventTime.js +42 -0
- package/components/Field/Field.css +6 -0
- package/components/Figure/Figure.css +6 -0
- package/components/FileInput/FileInput.css +6 -0
- package/components/FileInput/FileInput.d.ts +12 -4
- package/components/FileInput/FileInput.js +27 -4
- 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 +52 -4
- package/components/Input/Input.d.ts +8 -0
- package/components/Input/Input.js +3 -0
- 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/Popover/Popover.d.ts +5 -1
- package/components/Popover/Popover.js +3 -1
- package/components/ProgressBar/ProgressBar.css +6 -0
- package/components/ProgressBar/ProgressBar.d.ts +5 -1
- package/components/ProgressBar/ProgressBar.js +1 -1
- package/components/ProgressiveBlur/ProgressiveBlur.css +6 -0
- package/components/PromptSuggestions/PromptSuggestions.css +5 -0
- package/components/PromptSuggestions/PromptSuggestions.d.ts +5 -1
- package/components/PromptSuggestions/PromptSuggestions.js +1 -1
- 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/ResourceTimeline/ResourceTimeline.js +2 -2
- package/components/RichDropdown/RichDropdown.css +6 -0
- package/components/SectionTitle/SectionTitle.css +6 -0
- package/components/SegmentedControl/SegmentedControl.css +126 -3
- package/components/SegmentedControl/SegmentedControl.d.ts +9 -0
- package/components/SegmentedControl/SegmentedControl.js +11 -1
- 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 -3
- package/components/ShaderScene/scenes.d.ts +17 -0
- package/components/ShaderScene/scenes.js +175 -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 +25 -1
- package/components/Stat/Stat.d.ts +5 -0
- package/components/Stat/Stat.js +9 -3
- 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/TableToolbar/TableToolbar.js +2 -2
- 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/ThemeToggle/ThemeToggle.d.ts +1 -1
- package/components/ThreadPanel/ThreadPanel.css +6 -0
- package/components/ThreadTabs/ThreadTabs.css +6 -0
- package/components/ThreadTabs/ThreadTabs.d.ts +5 -1
- package/components/ThreadTabs/ThreadTabs.js +2 -1
- 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/ToggleGroup/ToggleGroup.d.ts +5 -1
- 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 +21 -4
- package/components/registry.json.d.ts +21 -4
- package/components/registry.json.js +1 -1
- package/fonts/material-symbols.css +10 -0
- package/index.d.ts +1 -0
- package/index.js +2 -0
- package/package.json +1 -1
- package/tokens/base.css +11 -2
|
@@ -4,6 +4,10 @@
|
|
|
4
4
|
what it shows, and the key to its markers.
|
|
5
5
|
============================================ */
|
|
6
6
|
|
|
7
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
8
|
+
|
|
9
|
+
@layer rift.components {
|
|
10
|
+
|
|
7
11
|
/* Base */
|
|
8
12
|
|
|
9
13
|
.ds-map-legend {
|
|
@@ -86,3 +90,5 @@
|
|
|
86
90
|
color: var(--color-text-secondary);
|
|
87
91
|
margin: 0;
|
|
88
92
|
}
|
|
93
|
+
|
|
94
|
+
} /* @layer rift.components */
|
|
@@ -7,6 +7,10 @@
|
|
|
7
7
|
spaced so each stands for one character.
|
|
8
8
|
============================================ */
|
|
9
9
|
|
|
10
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
11
|
+
|
|
12
|
+
@layer rift.components {
|
|
13
|
+
|
|
10
14
|
.ds-masked-input .ds-input__field {
|
|
11
15
|
font-variant-numeric: tabular-nums;
|
|
12
16
|
}
|
|
@@ -14,3 +18,5 @@
|
|
|
14
18
|
.ds-masked-input--concealed .ds-input__field {
|
|
15
19
|
letter-spacing: var(--font-overline-letter-spacing);
|
|
16
20
|
}
|
|
21
|
+
|
|
22
|
+
} /* @layer rift.components */
|
|
@@ -4,6 +4,10 @@
|
|
|
4
4
|
optional featured card
|
|
5
5
|
============================================ */
|
|
6
6
|
|
|
7
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
8
|
+
|
|
9
|
+
@layer rift.components {
|
|
10
|
+
|
|
7
11
|
/* Base: the floating glass shell, CommandPalette's surface. The panel is a
|
|
8
12
|
shallow strip that lands on whatever the page opens with, display type
|
|
9
13
|
most of it, so its blur runs harder than the shell's 24px: at that
|
|
@@ -271,3 +275,5 @@
|
|
|
271
275
|
min-height: 50cqw;
|
|
272
276
|
}
|
|
273
277
|
}
|
|
278
|
+
|
|
279
|
+
} /* @layer rift.components */
|
|
@@ -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,7 +3,7 @@ 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
9
|
const Mention = 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 */
|
|
@@ -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 */
|
|
@@ -29,7 +29,11 @@ type PopoverOwnProps = {
|
|
|
29
29
|
defaultOpen?: boolean;
|
|
30
30
|
/** Callback when open state changes */
|
|
31
31
|
onOpenChange?: (open: boolean) => void;
|
|
32
|
-
/**
|
|
32
|
+
/**
|
|
33
|
+
* Legacy accessible-name prop for the trigger and the panel. A native `aria-label` wins when both are passed, and names those two rather than the wrapper; with neither, the panel is named "Popover".
|
|
34
|
+
*
|
|
35
|
+
* @deprecated Pass the native `aria-label` attribute instead.
|
|
36
|
+
*/
|
|
33
37
|
ariaLabel?: string;
|
|
34
38
|
/** Additional CSS classes for the popover's root wrapper, which holds the trigger and the panel */
|
|
35
39
|
className?: string;
|
|
@@ -19,12 +19,14 @@ const Popover = React.forwardRef(
|
|
|
19
19
|
open: controlledOpen,
|
|
20
20
|
defaultOpen = false,
|
|
21
21
|
onOpenChange,
|
|
22
|
-
ariaLabel,
|
|
22
|
+
ariaLabel: legacyAriaLabel,
|
|
23
|
+
"aria-label": nativeAriaLabel,
|
|
23
24
|
className = "",
|
|
24
25
|
onMouseEnter,
|
|
25
26
|
onMouseLeave,
|
|
26
27
|
...rest
|
|
27
28
|
}, ref) => {
|
|
29
|
+
const ariaLabel = nativeAriaLabel ?? legacyAriaLabel;
|
|
28
30
|
const [internalOpen, setInternalOpen] = useState(defaultOpen);
|
|
29
31
|
const containerRef = useRef(null);
|
|
30
32
|
const triggerRef = useRef(null);
|
|
@@ -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 */
|
|
@@ -7,7 +7,11 @@ type ProgressBarOwnProps = {
|
|
|
7
7
|
size?: 'default' | 'compact';
|
|
8
8
|
/** Show percentage label */
|
|
9
9
|
showLabel?: boolean;
|
|
10
|
-
/**
|
|
10
|
+
/**
|
|
11
|
+
* Legacy accessible-name prop for the bar, saying what is loading. A native `aria-label` wins when both are passed; with neither, the bar is named "Progress".
|
|
12
|
+
*
|
|
13
|
+
* @deprecated Pass the native `aria-label` attribute instead.
|
|
14
|
+
*/
|
|
11
15
|
ariaLabel?: string;
|
|
12
16
|
/** The BCP 47 locale the percentage label is written in, such as `ar-EG`. Defaults to `en-US`. This component can render from a Server Component, so it takes the prop alone and reads no LocaleProvider. */
|
|
13
17
|
locale?: string;
|
|
@@ -22,7 +22,7 @@ const ProgressBar = React.forwardRef(
|
|
|
22
22
|
"aria-valuenow": clamped,
|
|
23
23
|
"aria-valuemin": 0,
|
|
24
24
|
"aria-valuemax": 100,
|
|
25
|
-
"aria-label":
|
|
25
|
+
"aria-label": restAriaLabel ?? ariaLabel ?? "Progress",
|
|
26
26
|
children: [
|
|
27
27
|
/* @__PURE__ */ jsx("div", { className: `${baseClass}__track`, children: /* @__PURE__ */ jsx("div", { className: `${baseClass}__fill`, style: { width: `${clamped}%` } }) }),
|
|
28
28
|
showLabel && /* @__PURE__ */ jsx("span", { className: `${baseClass}__label`, children: formatPercent(clamped, locale) })
|
|
@@ -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 */
|
|
@@ -67,7 +67,11 @@ type PromptSuggestionsOwnProps = {
|
|
|
67
67
|
value?: string;
|
|
68
68
|
/** Visually hidden text read after the taken suggestion once `value` is set. Defaults to "(chosen)". */
|
|
69
69
|
chosenLabel?: string;
|
|
70
|
-
/**
|
|
70
|
+
/**
|
|
71
|
+
* Legacy accessible-name prop for the list. Defaults to "Suggested prompts"; a native `aria-label` wins when both are passed.
|
|
72
|
+
*
|
|
73
|
+
* @deprecated Pass the native `aria-label` attribute instead.
|
|
74
|
+
*/
|
|
71
75
|
ariaLabel?: string;
|
|
72
76
|
/** Additional CSS classes */
|
|
73
77
|
className?: string;
|
|
@@ -62,7 +62,7 @@ const PromptSuggestions = React.forwardRef(
|
|
|
62
62
|
ref,
|
|
63
63
|
className: classes,
|
|
64
64
|
role: "list",
|
|
65
|
-
"aria-label": ariaLabel,
|
|
65
|
+
"aria-label": rest["aria-label"] ?? ariaLabel,
|
|
66
66
|
"aria-busy": pending || void 0,
|
|
67
67
|
"data-pending": pending || void 0,
|
|
68
68
|
children: pending ? Array.from({ length: pendingCount }, (_, index) => /* @__PURE__ */ jsx("div", { "aria-hidden": "true", className: `${baseClass}__item`, children: block ? (
|
|
@@ -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 */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { DEFAULT_LOCALE } from "../../behaviors/locale.js";
|
|
3
|
+
import { DEFAULT_LOCALE, plainSpaces } from "../../behaviors/locale.js";
|
|
4
4
|
import { ScrollRegion } from "../../behaviors/ScrollRegion.js";
|
|
5
5
|
import "../../behaviors/visually-hidden.css";
|
|
6
6
|
import "../../behaviors/direction.css";
|
|
@@ -34,7 +34,7 @@ function ResourceTimeline({
|
|
|
34
34
|
minute: "2-digit"
|
|
35
35
|
});
|
|
36
36
|
const asDate = (minutes) => new Date(2e3, 0, 1, Math.floor(minutes / 60), minutes % 60);
|
|
37
|
-
const range = (start, end) => timeFormat.formatRange(asDate(start), asDate(end));
|
|
37
|
+
const range = (start, end) => plainSpaces(timeFormat.formatRange(asDate(start), asDate(end)));
|
|
38
38
|
const hours = [];
|
|
39
39
|
for (let h = from / 60; h <= to / 60; h++) hours.push(h);
|
|
40
40
|
const nowMinutes = now ? minutesOf(now) : null;
|
|
@@ -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 */
|