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
|
@@ -5,6 +5,10 @@
|
|
|
5
5
|
so the counter circle sits flush in the row.
|
|
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-avatar-group {
|
|
@@ -59,3 +63,5 @@
|
|
|
59
63
|
height: 56px;
|
|
60
64
|
font-size: 18px; /* ds-allow(typography): matches Avatar's box-sized initials */
|
|
61
65
|
}
|
|
66
|
+
|
|
67
|
+
} /* @layer rift.components */
|
|
@@ -4,6 +4,10 @@
|
|
|
4
4
|
fading and rising in once the page has scrolled.
|
|
5
5
|
============================================ */
|
|
6
6
|
|
|
7
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
8
|
+
|
|
9
|
+
@layer rift.components {
|
|
10
|
+
|
|
7
11
|
.ds-back-to-top {
|
|
8
12
|
position: fixed;
|
|
9
13
|
inset-block-end: var(--ds-back-to-top-inset, var(--gap-500));
|
|
@@ -26,3 +30,5 @@
|
|
|
26
30
|
.ds-back-to-top .ds-icon-button {
|
|
27
31
|
box-shadow: var(--shadow-floating);
|
|
28
32
|
}
|
|
33
|
+
|
|
34
|
+
} /* @layer rift.components */
|
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
Small inline status labels
|
|
4
4
|
============================================ */
|
|
5
5
|
|
|
6
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
7
|
+
|
|
8
|
+
@layer rift.components {
|
|
9
|
+
|
|
6
10
|
.ds-badge {
|
|
7
11
|
display: inline-flex;
|
|
8
12
|
align-items: center;
|
|
@@ -65,3 +69,5 @@
|
|
|
65
69
|
background-color: var(--color-status-neutral-bg);
|
|
66
70
|
color: var(--color-status-neutral-text);
|
|
67
71
|
}
|
|
72
|
+
|
|
73
|
+
} /* @layer rift.components */
|
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
Full-width page-level status strip
|
|
4
4
|
============================================ */
|
|
5
5
|
|
|
6
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
7
|
+
|
|
8
|
+
@layer rift.components {
|
|
9
|
+
|
|
6
10
|
.ds-banner {
|
|
7
11
|
display: flex;
|
|
8
12
|
align-items: center;
|
|
@@ -108,3 +112,5 @@
|
|
|
108
112
|
background-color: var(--color-status-neutral-bg);
|
|
109
113
|
color: var(--color-status-neutral-text);
|
|
110
114
|
}
|
|
115
|
+
|
|
116
|
+
} /* @layer rift.components */
|
|
@@ -5,6 +5,10 @@
|
|
|
5
5
|
texture together) and
|
|
6
6
|
--ds-bento-tile-panel-width (the open overlay's width). */
|
|
7
7
|
|
|
8
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
9
|
+
|
|
10
|
+
@layer rift.components {
|
|
11
|
+
|
|
8
12
|
/* ------------------------------------------------------------- base */
|
|
9
13
|
|
|
10
14
|
/* No overflow clip on the tile itself: the surface and the body clip
|
|
@@ -540,3 +544,5 @@
|
|
|
540
544
|
.ds-bento-tile-overlay__body,
|
|
541
545
|
.ds-bento-tile-art { animation: none; }
|
|
542
546
|
}
|
|
547
|
+
|
|
548
|
+
} /* @layer rift.components */
|
|
@@ -8,6 +8,10 @@
|
|
|
8
8
|
is carried per platform (tint, lens, pill).
|
|
9
9
|
============================================ */
|
|
10
10
|
|
|
11
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
12
|
+
|
|
13
|
+
@layer rift.components {
|
|
14
|
+
|
|
11
15
|
/* ============================================
|
|
12
16
|
BASE (shared by every platform)
|
|
13
17
|
============================================ */
|
|
@@ -406,3 +410,5 @@
|
|
|
406
410
|
top: 4px;
|
|
407
411
|
inset-inline-start: calc(50% + 6px);
|
|
408
412
|
}
|
|
413
|
+
|
|
414
|
+
} /* @layer rift.components */
|
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
Hierarchical navigation trail
|
|
4
4
|
============================================ */
|
|
5
5
|
|
|
6
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
7
|
+
|
|
8
|
+
@layer rift.components {
|
|
9
|
+
|
|
6
10
|
.ds-breadcrumb {
|
|
7
11
|
width: 100%;
|
|
8
12
|
}
|
|
@@ -98,3 +102,5 @@
|
|
|
98
102
|
color: var(--color-text-tertiary);
|
|
99
103
|
user-select: none;
|
|
100
104
|
}
|
|
105
|
+
|
|
106
|
+
} /* @layer rift.components */
|
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
Figma design system button component
|
|
4
4
|
============================================ */
|
|
5
5
|
|
|
6
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
7
|
+
|
|
8
|
+
@layer rift.components {
|
|
9
|
+
|
|
6
10
|
.ds-button {
|
|
7
11
|
/* Layout */
|
|
8
12
|
display: inline-flex;
|
|
@@ -646,3 +650,5 @@
|
|
|
646
650
|
outline: 2px solid var(--color-action-primary-bg);
|
|
647
651
|
outline-offset: 2px;
|
|
648
652
|
}
|
|
653
|
+
|
|
654
|
+
} /* @layer rift.components */
|
|
@@ -58,6 +58,12 @@ type ButtonOwnProps = {
|
|
|
58
58
|
* and `tone`.
|
|
59
59
|
*/
|
|
60
60
|
glass?: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* The button's native type. Defaults to `button`, so a button inside a form
|
|
63
|
+
* never submits it by accident; set `submit` on the form's submit button, or
|
|
64
|
+
* `reset`. Ignored when `href` renders a link.
|
|
65
|
+
*/
|
|
66
|
+
type?: 'button' | 'submit' | 'reset';
|
|
61
67
|
/** Optional href — renders as <a> instead of <button> */
|
|
62
68
|
href?: string;
|
|
63
69
|
/** Optional target attribute for links */
|
|
@@ -103,7 +109,7 @@ type ButtonOwnProps = {
|
|
|
103
109
|
*/
|
|
104
110
|
text?: boolean;
|
|
105
111
|
};
|
|
106
|
-
export interface ButtonProps extends ButtonOwnProps, Omit<React.ComponentPropsWithoutRef<'button'>, keyof ButtonOwnProps
|
|
112
|
+
export interface ButtonProps extends ButtonOwnProps, Omit<React.ComponentPropsWithoutRef<'button'>, keyof ButtonOwnProps> {
|
|
107
113
|
}
|
|
108
114
|
/**
|
|
109
115
|
* Button component from Figma design system.
|
|
@@ -37,6 +37,7 @@ const Button = React.forwardRef(
|
|
|
37
37
|
disabled,
|
|
38
38
|
loading,
|
|
39
39
|
glass,
|
|
40
|
+
type = "button",
|
|
40
41
|
href,
|
|
41
42
|
target,
|
|
42
43
|
rel,
|
|
@@ -112,7 +113,7 @@ const Button = React.forwardRef(
|
|
|
112
113
|
{
|
|
113
114
|
...rest,
|
|
114
115
|
ref,
|
|
115
|
-
type
|
|
116
|
+
type,
|
|
116
117
|
className: classes,
|
|
117
118
|
disabled: isDisabled || isLoading,
|
|
118
119
|
"aria-busy": isLoading || void 0,
|
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
Container for grouped buttons in nav/subnav
|
|
4
4
|
============================================ */
|
|
5
5
|
|
|
6
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
7
|
+
|
|
8
|
+
@layer rift.components {
|
|
9
|
+
|
|
6
10
|
.ds-button-group {
|
|
7
11
|
/* Layout */
|
|
8
12
|
display: inline-flex; /* Hug content instead of stretch */
|
|
@@ -46,3 +50,5 @@
|
|
|
46
50
|
width: auto; /* Hug content instead of stretch */
|
|
47
51
|
display: inline-flex; /* Hug content */
|
|
48
52
|
}
|
|
53
|
+
|
|
54
|
+
} /* @layer rift.components */
|
package/components/Card/Card.css
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
Content card with preview area and title
|
|
4
4
|
============================================ */
|
|
5
5
|
|
|
6
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
7
|
+
|
|
8
|
+
@layer rift.components {
|
|
9
|
+
|
|
6
10
|
.ds-card {
|
|
7
11
|
/* Layout */
|
|
8
12
|
display: flex;
|
|
@@ -188,3 +192,5 @@
|
|
|
188
192
|
color: var(--color-text-secondary);
|
|
189
193
|
margin: 0;
|
|
190
194
|
}
|
|
195
|
+
|
|
196
|
+
} /* @layer rift.components */
|
|
@@ -8,6 +8,10 @@
|
|
|
8
8
|
deck holds.
|
|
9
9
|
============================================ */
|
|
10
10
|
|
|
11
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
12
|
+
|
|
13
|
+
@layer rift.components {
|
|
14
|
+
|
|
11
15
|
/* Base */
|
|
12
16
|
|
|
13
17
|
.ds-card-stack {
|
|
@@ -93,3 +97,4 @@
|
|
|
93
97
|
|
|
94
98
|
/* Screen-reader announcement of the deck position. */
|
|
95
99
|
|
|
100
|
+
} /* @layer rift.components */
|
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
Sliding content viewer with navigation
|
|
4
4
|
============================================ */
|
|
5
5
|
|
|
6
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
7
|
+
|
|
8
|
+
@layer rift.components {
|
|
9
|
+
|
|
6
10
|
.ds-carousel {
|
|
7
11
|
position: relative;
|
|
8
12
|
width: 100%;
|
|
@@ -122,3 +126,5 @@
|
|
|
122
126
|
.ds-carousel .material-symbols-rounded {
|
|
123
127
|
color: inherit;
|
|
124
128
|
}
|
|
129
|
+
|
|
130
|
+
} /* @layer rift.components */
|
|
@@ -4,6 +4,10 @@
|
|
|
4
4
|
used across all chart types (bar, line, pie…).
|
|
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
|
============================================ */
|
|
@@ -209,7 +213,9 @@
|
|
|
209
213
|
|
|
210
214
|
/* ds-allow(breakpoint): the phone step on its other edge (below 600px, not at or below it); aligning it would change this rule at exactly 600px. */
|
|
211
215
|
@media (max-width: 599px) {
|
|
212
|
-
|
|
216
|
+
/* A bare chart keeps no padding on a phone either: its host supplies the
|
|
217
|
+
surface. :where() keeps the specificity where it was. */
|
|
218
|
+
.ds-chart:not(:where(.ds-chart--bare)) {
|
|
213
219
|
padding: var(--padding-400);
|
|
214
220
|
}
|
|
215
221
|
|
|
@@ -229,3 +235,5 @@
|
|
|
229
235
|
padding: var(--padding-150) 0;
|
|
230
236
|
}
|
|
231
237
|
}
|
|
238
|
+
|
|
239
|
+
} /* @layer rift.components */
|
|
@@ -5,6 +5,10 @@
|
|
|
5
5
|
it floats free of the transcript.
|
|
6
6
|
============================================ */
|
|
7
7
|
|
|
8
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
9
|
+
|
|
10
|
+
@layer rift.components {
|
|
11
|
+
|
|
8
12
|
/* Base */
|
|
9
13
|
.ds-chat-header {
|
|
10
14
|
display: flex;
|
|
@@ -33,3 +37,5 @@
|
|
|
33
37
|
gap: var(--gap-100);
|
|
34
38
|
flex-shrink: 0;
|
|
35
39
|
}
|
|
40
|
+
|
|
41
|
+
} /* @layer rift.components */
|
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
Inline conversation separator for dates and system notes
|
|
4
4
|
============================================ */
|
|
5
5
|
|
|
6
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
7
|
+
|
|
8
|
+
@layer rift.components {
|
|
9
|
+
|
|
6
10
|
.ds-chat-marker {
|
|
7
11
|
display: flex;
|
|
8
12
|
align-items: center;
|
|
@@ -59,3 +63,5 @@
|
|
|
59
63
|
.ds-chat-marker .material-symbols-rounded {
|
|
60
64
|
color: inherit;
|
|
61
65
|
}
|
|
66
|
+
|
|
67
|
+
} /* @layer rift.components */
|
|
@@ -9,6 +9,10 @@
|
|
|
9
9
|
means repointing those four and nothing else.
|
|
10
10
|
============================================ */
|
|
11
11
|
|
|
12
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
13
|
+
|
|
14
|
+
@layer rift.components {
|
|
15
|
+
|
|
12
16
|
.ds-chat-message {
|
|
13
17
|
/* Gutter width matches the Avatar sm footprint, so a run of turns keeps
|
|
14
18
|
its left edge whether or not each row shows its avatar. Consumers can
|
|
@@ -337,3 +341,5 @@
|
|
|
337
341
|
opacity: 0.55;
|
|
338
342
|
}
|
|
339
343
|
}
|
|
344
|
+
|
|
345
|
+
} /* @layer rift.components */
|
|
@@ -4,6 +4,10 @@
|
|
|
4
4
|
send-to-top anchoring, subtle scrollbar.
|
|
5
5
|
============================================ */
|
|
6
6
|
|
|
7
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
8
|
+
|
|
9
|
+
@layer rift.components {
|
|
10
|
+
|
|
7
11
|
/* Base — the root is the scroll container. Inline gutters live on
|
|
8
12
|
__content, so the scrollbar rides the component's far edge. */
|
|
9
13
|
.ds-chat-thread {
|
|
@@ -193,3 +197,5 @@
|
|
|
193
197
|
justify-content: flex-end;
|
|
194
198
|
width: 100%;
|
|
195
199
|
}
|
|
200
|
+
|
|
201
|
+
} /* @layer rift.components */
|
|
@@ -20,7 +20,11 @@ type ChatThreadOwnProps = {
|
|
|
20
20
|
* returning to the bottom, or the next send, takes hold again.
|
|
21
21
|
*/
|
|
22
22
|
flow?: 'top-down' | 'bottom-up';
|
|
23
|
-
/**
|
|
23
|
+
/**
|
|
24
|
+
* Legacy accessible-name prop for the scrollable conversation region. Defaults to "Conversation"; a native `aria-label` wins when both are passed.
|
|
25
|
+
*
|
|
26
|
+
* @deprecated Pass the native `aria-label` attribute instead.
|
|
27
|
+
*/
|
|
24
28
|
ariaLabel?: string;
|
|
25
29
|
/** Accessible name for the scroll-to-bottom control. */
|
|
26
30
|
jumpLabel?: string;
|
|
@@ -11,6 +11,10 @@
|
|
|
11
11
|
lights it on hover.
|
|
12
12
|
============================================ */
|
|
13
13
|
|
|
14
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
15
|
+
|
|
16
|
+
@layer rift.components {
|
|
17
|
+
|
|
14
18
|
.ds-checkbox {
|
|
15
19
|
display: inline-flex;
|
|
16
20
|
align-items: center;
|
|
@@ -195,3 +199,5 @@
|
|
|
195
199
|
flex-wrap: wrap;
|
|
196
200
|
gap: var(--gap-200) var(--gap-500); /* 8px rows, 20px between options */
|
|
197
201
|
}
|
|
202
|
+
|
|
203
|
+
} /* @layer rift.components */
|
|
@@ -7,6 +7,10 @@
|
|
|
7
7
|
a WidgetRow list, on --color-divider.
|
|
8
8
|
============================================ */
|
|
9
9
|
|
|
10
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
11
|
+
|
|
12
|
+
@layer rift.components {
|
|
13
|
+
|
|
10
14
|
/* Base */
|
|
11
15
|
.ds-checklist {
|
|
12
16
|
display: flex;
|
|
@@ -121,3 +125,5 @@
|
|
|
121
125
|
.ds-checklist__description {
|
|
122
126
|
color: var(--color-text-tertiary);
|
|
123
127
|
}
|
|
128
|
+
|
|
129
|
+
} /* @layer rift.components */
|
package/components/Chip/Chip.css
CHANGED
|
@@ -5,6 +5,10 @@
|
|
|
5
5
|
clickable, selectable, and removable variants.
|
|
6
6
|
============================================ */
|
|
7
7
|
|
|
8
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
9
|
+
|
|
10
|
+
@layer rift.components {
|
|
11
|
+
|
|
8
12
|
.ds-chip {
|
|
9
13
|
/* Layout */
|
|
10
14
|
display: inline-flex;
|
|
@@ -286,3 +290,5 @@
|
|
|
286
290
|
.ds-chip .material-symbols-rounded {
|
|
287
291
|
color: inherit;
|
|
288
292
|
}
|
|
293
|
+
|
|
294
|
+
} /* @layer rift.components */
|
|
@@ -6,6 +6,10 @@
|
|
|
6
6
|
code is the one sanctioned monospace context.
|
|
7
7
|
============================================ */
|
|
8
8
|
|
|
9
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
10
|
+
|
|
11
|
+
@layer rift.components {
|
|
12
|
+
|
|
9
13
|
.ds-code-block {
|
|
10
14
|
display: flex;
|
|
11
15
|
flex-direction: column;
|
|
@@ -228,3 +232,5 @@
|
|
|
228
232
|
.ds-code-block .material-symbols-rounded {
|
|
229
233
|
color: inherit;
|
|
230
234
|
}
|
|
235
|
+
|
|
236
|
+
} /* @layer rift.components */
|
|
@@ -6,6 +6,10 @@
|
|
|
6
6
|
code is the one sanctioned monospace context.
|
|
7
7
|
============================================ */
|
|
8
8
|
|
|
9
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
10
|
+
|
|
11
|
+
@layer rift.components {
|
|
12
|
+
|
|
9
13
|
.ds-codediff {
|
|
10
14
|
display: flex;
|
|
11
15
|
flex-direction: column;
|
|
@@ -172,3 +176,4 @@
|
|
|
172
176
|
itself is decorative (aria-hidden).
|
|
173
177
|
============================================ */
|
|
174
178
|
|
|
179
|
+
} /* @layer rift.components */
|
|
@@ -14,6 +14,10 @@
|
|
|
14
14
|
tokens.
|
|
15
15
|
============================================ */
|
|
16
16
|
|
|
17
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
18
|
+
|
|
19
|
+
@layer rift.components {
|
|
20
|
+
|
|
17
21
|
/* Base */
|
|
18
22
|
|
|
19
23
|
.ds-colorpicker {
|
|
@@ -276,3 +280,5 @@
|
|
|
276
280
|
.ds-colorpicker--error .ds-colorpicker__trigger {
|
|
277
281
|
border-color: var(--color-status-error-border);
|
|
278
282
|
}
|
|
283
|
+
|
|
284
|
+
} /* @layer rift.components */
|
|
@@ -4,6 +4,10 @@
|
|
|
4
4
|
Primitive, Hex, and RGB values in a box.
|
|
5
5
|
============================================ */
|
|
6
6
|
|
|
7
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
8
|
+
|
|
9
|
+
@layer rift.components {
|
|
10
|
+
|
|
7
11
|
.ds-colour-swatch {
|
|
8
12
|
/* Layout */
|
|
9
13
|
display: flex;
|
|
@@ -89,3 +93,5 @@
|
|
|
89
93
|
.ds-colour-swatch__data {
|
|
90
94
|
word-break: break-word;
|
|
91
95
|
}
|
|
96
|
+
|
|
97
|
+
} /* @layer rift.components */
|
|
@@ -4,6 +4,10 @@
|
|
|
4
4
|
multi-select chips and async loading state
|
|
5
5
|
============================================ */
|
|
6
6
|
|
|
7
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
8
|
+
|
|
9
|
+
@layer rift.components {
|
|
10
|
+
|
|
7
11
|
.ds-combobox {
|
|
8
12
|
display: flex;
|
|
9
13
|
flex-direction: column;
|
|
@@ -403,3 +407,5 @@
|
|
|
403
407
|
.ds-combobox--compact .ds-combobox__control {
|
|
404
408
|
padding-inline: var(--padding-200);
|
|
405
409
|
}
|
|
410
|
+
|
|
411
|
+
} /* @layer rift.components */
|
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
Modal Cmd+K launcher over a grouped command list
|
|
4
4
|
============================================ */
|
|
5
5
|
|
|
6
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
7
|
+
|
|
8
|
+
@layer rift.components {
|
|
9
|
+
|
|
6
10
|
.ds-command-palette {
|
|
7
11
|
position: fixed;
|
|
8
12
|
inset: 0;
|
|
@@ -329,3 +333,5 @@
|
|
|
329
333
|
.ds-command-palette .material-symbols-rounded {
|
|
330
334
|
color: inherit;
|
|
331
335
|
}
|
|
336
|
+
|
|
337
|
+
} /* @layer rift.components */
|
|
@@ -8,6 +8,10 @@
|
|
|
8
8
|
family in a row, and it hovers like a field.
|
|
9
9
|
============================================ */
|
|
10
10
|
|
|
11
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
12
|
+
|
|
13
|
+
@layer rift.components {
|
|
14
|
+
|
|
11
15
|
.ds-command-palette-trigger {
|
|
12
16
|
display: inline-flex;
|
|
13
17
|
align-items: center;
|
|
@@ -107,3 +111,5 @@
|
|
|
107
111
|
.ds-command-palette-trigger:not(.ds-command-palette-trigger--icon-only) {
|
|
108
112
|
padding-inline: var(--padding-200);
|
|
109
113
|
}
|
|
114
|
+
|
|
115
|
+
} /* @layer rift.components */
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
The chat input shell: file tray, auto-growing textarea, send/stop
|
|
4
4
|
============================================ */
|
|
5
5
|
|
|
6
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
7
|
+
|
|
6
8
|
/* The focus treatment animates a registered custom property, exactly as
|
|
7
9
|
AiButton does: a conic gradient's angle cannot tween otherwise. Browsers
|
|
8
10
|
without @property render the ring at its initial angle, static — a
|
|
@@ -14,6 +16,8 @@
|
|
|
14
16
|
inherits: false;
|
|
15
17
|
}
|
|
16
18
|
|
|
19
|
+
@layer rift.components {
|
|
20
|
+
|
|
17
21
|
.ds-composer {
|
|
18
22
|
/* Anchors the focus ring and glow pseudo-elements */
|
|
19
23
|
position: relative;
|
|
@@ -792,3 +796,5 @@
|
|
|
792
796
|
flex-basis: 100%;
|
|
793
797
|
margin: var(--ds-composer-ring) var(--ds-composer-ring) 0;
|
|
794
798
|
}
|
|
799
|
+
|
|
800
|
+
} /* @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
|
CONTACT CARD
|
|
3
7
|
============================================ */
|
|
@@ -130,3 +134,5 @@
|
|
|
130
134
|
.ds-contact-card .material-symbols-rounded {
|
|
131
135
|
color: inherit;
|
|
132
136
|
}
|
|
137
|
+
|
|
138
|
+
} /* @layer rift.components */
|
|
@@ -4,6 +4,10 @@
|
|
|
4
4
|
Panel and item styling mirror DropdownMenu.
|
|
5
5
|
============================================ */
|
|
6
6
|
|
|
7
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
8
|
+
|
|
9
|
+
@layer rift.components {
|
|
10
|
+
|
|
7
11
|
/* Base — a plain block wrapper around the right-clickable area
|
|
8
12
|
(a real box, so the keyboard-invocation fallback can measure it) */
|
|
9
13
|
.ds-context-menu {
|
|
@@ -311,3 +315,5 @@
|
|
|
311
315
|
.ds-context-menu__panel--compact .ds-context-menu__item--has-submenu {
|
|
312
316
|
padding-inline-end: var(--padding-200);
|
|
313
317
|
}
|
|
318
|
+
|
|
319
|
+
} /* @layer rift.components */
|
|
@@ -7,7 +7,11 @@ type ContextMenuOwnProps = {
|
|
|
7
7
|
items: DropdownMenuEntry[];
|
|
8
8
|
/** Component size */
|
|
9
9
|
size?: 'default' | 'compact';
|
|
10
|
-
/**
|
|
10
|
+
/**
|
|
11
|
+
* Legacy accessible-name prop for the menu. A native `aria-label` wins when both are passed, and names the menu rather than the wrapper.
|
|
12
|
+
*
|
|
13
|
+
* @deprecated Pass the native `aria-label` attribute instead.
|
|
14
|
+
*/
|
|
11
15
|
ariaLabel?: string;
|
|
12
16
|
/** Replaces any legend an item's `keys` is written with, such as `{ ctrl: 'Strg' }` for a German keyboard. */
|
|
13
17
|
keyLabels?: ShortcutKeyLabels;
|
|
@@ -164,6 +164,7 @@ const ContextMenu = React.forwardRef(
|
|
|
164
164
|
items,
|
|
165
165
|
size = "default",
|
|
166
166
|
ariaLabel,
|
|
167
|
+
"aria-label": nativeAriaLabel,
|
|
167
168
|
keyLabels,
|
|
168
169
|
className = "",
|
|
169
170
|
children,
|
|
@@ -389,7 +390,7 @@ const ContextMenu = React.forwardRef(
|
|
|
389
390
|
{
|
|
390
391
|
className: panelClasses,
|
|
391
392
|
role: "menu",
|
|
392
|
-
"aria-label": ariaLabel,
|
|
393
|
+
"aria-label": nativeAriaLabel ?? ariaLabel,
|
|
393
394
|
"aria-activedescendant": focusedIndex >= 0 ? `${generatedId}-item-${focusedIndex}` : void 0,
|
|
394
395
|
tabIndex: -1,
|
|
395
396
|
ref: (el) => {
|
|
@@ -4,6 +4,10 @@
|
|
|
4
4
|
day, coloured by the contribution colour ramp
|
|
5
5
|
============================================ */
|
|
6
6
|
|
|
7
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
8
|
+
|
|
9
|
+
@layer rift.components {
|
|
10
|
+
|
|
7
11
|
/* Card chrome, header, and padding come from the shared chart styles
|
|
8
12
|
(Chart.css); this file owns the grid, legend, and cell ramp. */
|
|
9
13
|
|
|
@@ -167,3 +171,5 @@
|
|
|
167
171
|
.ds-contribution-graph__legend-label:last-child {
|
|
168
172
|
margin-inline-start: var(--gap-050);
|
|
169
173
|
}
|
|
174
|
+
|
|
175
|
+
} /* @layer rift.components */
|