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
|
@@ -50,16 +50,24 @@ void main() {
|
|
|
50
50
|
vec2 uv = gl_FragCoord.xy / u_size;
|
|
51
51
|
vec3 lin = scene(uv, u_time);
|
|
52
52
|
/* A night scene on a light page: the light it adds over its own dark
|
|
53
|
-
ground is laid onto the page as
|
|
54
|
-
|
|
55
|
-
|
|
53
|
+
ground is laid onto the page as colour, so a horizon reads as a dawn
|
|
54
|
+
on paper rather than a dark block on it, and the brightest marks
|
|
55
|
+
(a crest, a beam) read as ink rather than vanishing into the white. */
|
|
56
56
|
if (u_lightMode > 0.5) {
|
|
57
57
|
vec3 light = max(lin - u_ground, vec3(0.0));
|
|
58
58
|
float peak = max(light.r, max(light.g, light.b));
|
|
59
59
|
vec3 hue = light / max(peak, 1e-4);
|
|
60
60
|
vec3 pastel = mix(hue, vec3(1.0), 0.3);
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
/* Most of the light is laid on as ink rather than tint: its hue
|
|
62
|
+
resaturated, leaning to the scene's lead colour and deepened, so a
|
|
63
|
+
bright crest darkens against the paper instead of washing out to
|
|
64
|
+
white on it. */
|
|
65
|
+
float hueGrey = dot(hue, vec3(1.0 / 3.0));
|
|
66
|
+
vec3 lead = u_col[0] / max(max(u_col[0].r, max(u_col[0].g, u_col[0].b)), 1e-4);
|
|
67
|
+
vec3 rich = mix(clamp(hueGrey + (hue - hueGrey) * 3.0, 0.0, 1.0), lead, 0.6) * 0.5;
|
|
68
|
+
vec3 tint = mix(u_page * pastel, u_page * rich, 0.8);
|
|
69
|
+
float strength = clamp(pow(dot(light, vec3(0.2126, 0.7152, 0.0722)) * 8.0, 0.7), 0.0, 0.9);
|
|
70
|
+
lin = mix(u_page, tint, strength);
|
|
63
71
|
}
|
|
64
72
|
${call("light", "lin")}
|
|
65
73
|
vec3 srgb = pow(max(lin, vec3(0.0)), vec3(1.0 / 2.2));
|
|
@@ -5,7 +5,7 @@ export type Colours = {
|
|
|
5
5
|
ground: Rgb;
|
|
6
6
|
/** The page's own ground, which the passes fade to. */
|
|
7
7
|
page: Rgb;
|
|
8
|
-
/** A night scene on a light page, laid on as
|
|
8
|
+
/** A night scene on a light page, laid on as colour and ink. */
|
|
9
9
|
lightMode: boolean;
|
|
10
10
|
colours: Rgb[];
|
|
11
11
|
};
|
|
@@ -14,7 +14,7 @@ export declare function readColours(host: HTMLElement, tokens: string[]): Colour
|
|
|
14
14
|
/**
|
|
15
15
|
* A scene's colours for a surface: read from the cascade. A night-only
|
|
16
16
|
* scene on a light page computes its light against a dark ground of its
|
|
17
|
-
* own, and the shader lays that light onto the page as
|
|
17
|
+
* own, and the shader lays that light onto the page as colour and ink
|
|
18
18
|
* (u_lightMode), so its masks still fade to the page and the theme stays
|
|
19
19
|
* light.
|
|
20
20
|
*/
|
|
@@ -38,7 +38,8 @@ export type ShaderSceneSource = {
|
|
|
38
38
|
/**
|
|
39
39
|
* `dark` for a scene that only adds light and so only reads on a dark
|
|
40
40
|
* ground. On a light page its light is computed against a near-black
|
|
41
|
-
* ground of its own and laid onto the page as
|
|
41
|
+
* ground of its own and laid onto the page as colour, its brightest
|
|
42
|
+
* marks as a deepened ink of the scene's first colour. A scene
|
|
42
43
|
* without it paints for both modes itself, from the page ground
|
|
43
44
|
* (`u_ground`).
|
|
44
45
|
*/
|
|
@@ -7,6 +7,10 @@
|
|
|
7
7
|
two columns read as one navigation system.
|
|
8
8
|
============================================ */
|
|
9
9
|
|
|
10
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
11
|
+
|
|
12
|
+
@layer rift.components {
|
|
13
|
+
|
|
10
14
|
/* ============================================
|
|
11
15
|
WRAPPER
|
|
12
16
|
============================================ */
|
|
@@ -297,3 +301,5 @@
|
|
|
297
301
|
.ds-sidebar-panel .ds-sidebar-panel__chevron {
|
|
298
302
|
color: var(--color-icon-secondary);
|
|
299
303
|
}
|
|
304
|
+
|
|
305
|
+
} /* @layer rift.components */
|
|
@@ -7,6 +7,10 @@
|
|
|
7
7
|
in the body face, italic, on the same line.
|
|
8
8
|
============================================ */
|
|
9
9
|
|
|
10
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
11
|
+
|
|
12
|
+
@layer rift.components {
|
|
13
|
+
|
|
10
14
|
/* Base */
|
|
11
15
|
.ds-signature-pad {
|
|
12
16
|
display: flex;
|
|
@@ -139,3 +143,5 @@
|
|
|
139
143
|
.ds-signature-pad--disabled .ds-signature-pad__canvas {
|
|
140
144
|
pointer-events: none;
|
|
141
145
|
}
|
|
146
|
+
|
|
147
|
+
} /* @layer rift.components */
|
|
@@ -8,6 +8,10 @@
|
|
|
8
8
|
decides the width.
|
|
9
9
|
============================================ */
|
|
10
10
|
|
|
11
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
12
|
+
|
|
13
|
+
@layer rift.components {
|
|
14
|
+
|
|
11
15
|
.ds-site-footer {
|
|
12
16
|
display: flex;
|
|
13
17
|
flex-direction: column;
|
|
@@ -155,3 +159,5 @@
|
|
|
155
159
|
align-items: center;
|
|
156
160
|
gap: var(--gap-100);
|
|
157
161
|
}
|
|
162
|
+
|
|
163
|
+
} /* @layer rift.components */
|
|
@@ -4,6 +4,10 @@
|
|
|
4
4
|
mega menus, actions, and a drawer once folded
|
|
5
5
|
============================================ */
|
|
6
6
|
|
|
7
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
8
|
+
|
|
9
|
+
@layer rift.components {
|
|
10
|
+
|
|
7
11
|
/* Base */
|
|
8
12
|
.ds-site-header {
|
|
9
13
|
/* The bar's height. An override hook: the blur's reach and a page's own
|
|
@@ -470,3 +474,5 @@
|
|
|
470
474
|
.ds-site-header__pill:has(.ds-site-header__caret) {
|
|
471
475
|
padding-inline-end: var(--padding-300);
|
|
472
476
|
}
|
|
477
|
+
|
|
478
|
+
} /* @layer rift.components */
|
|
@@ -8,6 +8,10 @@
|
|
|
8
8
|
the page colour: what lies behind shows through.
|
|
9
9
|
============================================ */
|
|
10
10
|
|
|
11
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
12
|
+
|
|
13
|
+
@layer rift.components {
|
|
14
|
+
|
|
11
15
|
.ds-site-layout {
|
|
12
16
|
/* The header's height, so the sticky columns start below it: SiteHeader's
|
|
13
17
|
own --ds-site-header-height when the host sets it on the layout (one
|
|
@@ -359,3 +363,5 @@
|
|
|
359
363
|
padding-inline-end: var(--ds-shell-gutter);
|
|
360
364
|
}
|
|
361
365
|
}
|
|
366
|
+
|
|
367
|
+
} /* @layer rift.components */
|
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
Placeholder while content is loading
|
|
4
4
|
============================================ */
|
|
5
5
|
|
|
6
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
7
|
+
|
|
8
|
+
@layer rift.components {
|
|
9
|
+
|
|
6
10
|
.ds-skeleton {
|
|
7
11
|
background-color: var(--color-bg-container-secondary);
|
|
8
12
|
position: relative;
|
|
@@ -79,3 +83,5 @@
|
|
|
79
83
|
transform: translateX(calc(100% * var(--ds-inline-sign, 1)));
|
|
80
84
|
}
|
|
81
85
|
}
|
|
86
|
+
|
|
87
|
+
} /* @layer rift.components */
|
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
Range input for selecting values
|
|
4
4
|
============================================ */
|
|
5
5
|
|
|
6
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
7
|
+
|
|
8
|
+
@layer rift.components {
|
|
9
|
+
|
|
6
10
|
.ds-slider {
|
|
7
11
|
display: flex;
|
|
8
12
|
align-items: center;
|
|
@@ -117,3 +121,5 @@
|
|
|
117
121
|
opacity: 0.4;
|
|
118
122
|
pointer-events: none;
|
|
119
123
|
}
|
|
124
|
+
|
|
125
|
+
} /* @layer rift.components */
|
|
@@ -5,6 +5,10 @@
|
|
|
5
5
|
span otherwise.
|
|
6
6
|
============================================ */
|
|
7
7
|
|
|
8
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
9
|
+
|
|
10
|
+
@layer rift.components {
|
|
11
|
+
|
|
8
12
|
.ds-source-chip {
|
|
9
13
|
/* Layout */
|
|
10
14
|
display: inline-flex;
|
|
@@ -307,3 +311,5 @@ button.ds-source-chip {
|
|
|
307
311
|
.ds-source-chip .material-symbols-rounded {
|
|
308
312
|
color: inherit;
|
|
309
313
|
}
|
|
314
|
+
|
|
315
|
+
} /* @layer rift.components */
|
|
@@ -9,6 +9,10 @@
|
|
|
9
9
|
more row in the run, not a different species.
|
|
10
10
|
============================================ */
|
|
11
11
|
|
|
12
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
13
|
+
|
|
14
|
+
@layer rift.components {
|
|
15
|
+
|
|
12
16
|
.ds-source-trail {
|
|
13
17
|
display: flex;
|
|
14
18
|
flex-direction: column;
|
|
@@ -224,3 +228,5 @@
|
|
|
224
228
|
.ds-source-trail__header:has(.ds-source-trail__chevron) {
|
|
225
229
|
padding-inline-end: calc(var(--ds-chat-card-inset) - var(--padding-100));
|
|
226
230
|
}
|
|
231
|
+
|
|
232
|
+
} /* @layer rift.components */
|
|
@@ -4,6 +4,10 @@
|
|
|
4
4
|
visual preview, size label, and pixel value.
|
|
5
5
|
============================================ */
|
|
6
6
|
|
|
7
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
8
|
+
|
|
9
|
+
@layer rift.components {
|
|
10
|
+
|
|
7
11
|
.ds-spacing-swatch {
|
|
8
12
|
/* Layout */
|
|
9
13
|
display: flex;
|
|
@@ -106,3 +110,5 @@
|
|
|
106
110
|
line-height: var(--font-paragraph-line-height);
|
|
107
111
|
color: var(--color-text-tertiary);
|
|
108
112
|
}
|
|
113
|
+
|
|
114
|
+
} /* @layer rift.components */
|
|
@@ -6,6 +6,10 @@
|
|
|
6
6
|
is one custom property swap.
|
|
7
7
|
============================================ */
|
|
8
8
|
|
|
9
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
10
|
+
|
|
11
|
+
@layer rift.components {
|
|
12
|
+
|
|
9
13
|
/* Base */
|
|
10
14
|
|
|
11
15
|
.ds-sparkline {
|
|
@@ -74,3 +78,5 @@
|
|
|
74
78
|
.ds-sparkline--neutral {
|
|
75
79
|
color: var(--color-text-secondary);
|
|
76
80
|
}
|
|
81
|
+
|
|
82
|
+
} /* @layer rift.components */
|
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
Animated circular loading indicator
|
|
4
4
|
============================================ */
|
|
5
5
|
|
|
6
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
7
|
+
|
|
8
|
+
@layer rift.components {
|
|
9
|
+
|
|
6
10
|
.ds-spinner {
|
|
7
11
|
display: inline-flex;
|
|
8
12
|
align-items: center;
|
|
@@ -82,3 +86,5 @@
|
|
|
82
86
|
transform: rotate(360deg);
|
|
83
87
|
}
|
|
84
88
|
}
|
|
89
|
+
|
|
90
|
+
} /* @layer rift.components */
|
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
Primary action + attached menu of alternatives
|
|
4
4
|
============================================ */
|
|
5
5
|
|
|
6
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
7
|
+
|
|
8
|
+
@layer rift.components {
|
|
9
|
+
|
|
6
10
|
.ds-split-button {
|
|
7
11
|
display: inline-flex;
|
|
8
12
|
align-items: stretch;
|
|
@@ -91,3 +95,5 @@
|
|
|
91
95
|
.ds-split-button--secondary .ds-split-button__trigger {
|
|
92
96
|
border-inline-start: none;
|
|
93
97
|
}
|
|
98
|
+
|
|
99
|
+
} /* @layer rift.components */
|
|
@@ -7,6 +7,12 @@ type SplitButtonOwnProps = {
|
|
|
7
7
|
label: string;
|
|
8
8
|
/** Click handler for the primary action */
|
|
9
9
|
onClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
10
|
+
/**
|
|
11
|
+
* The primary segment's native type. Defaults to `button`; set `submit` to
|
|
12
|
+
* make the primary action its form's submit button. The menu trigger is
|
|
13
|
+
* always `button`, so opening the menu never submits.
|
|
14
|
+
*/
|
|
15
|
+
type?: 'button' | 'submit' | 'reset';
|
|
10
16
|
/** Menu entries for the alternative actions */
|
|
11
17
|
items: DropdownMenuEntry[];
|
|
12
18
|
/**
|
|
@@ -35,7 +41,7 @@ type SplitButtonOwnProps = {
|
|
|
35
41
|
/** Additional CSS classes, applied to the wrapper around both segments, not the primary button */
|
|
36
42
|
className?: string;
|
|
37
43
|
};
|
|
38
|
-
export interface SplitButtonProps extends SplitButtonOwnProps, Omit<React.ComponentPropsWithoutRef<'button'>, keyof SplitButtonOwnProps
|
|
44
|
+
export interface SplitButtonProps extends SplitButtonOwnProps, Omit<React.ComponentPropsWithoutRef<'button'>, keyof SplitButtonOwnProps> {
|
|
39
45
|
}
|
|
40
46
|
/**
|
|
41
47
|
* A primary action with an attached menu of alternatives — "Save" beside
|
|
@@ -9,6 +9,7 @@ const SplitButton = React.forwardRef(
|
|
|
9
9
|
({
|
|
10
10
|
label,
|
|
11
11
|
onClick,
|
|
12
|
+
type = "button",
|
|
12
13
|
items,
|
|
13
14
|
variant = "primary",
|
|
14
15
|
tone,
|
|
@@ -44,7 +45,8 @@ const SplitButton = React.forwardRef(
|
|
|
44
45
|
size,
|
|
45
46
|
disabled,
|
|
46
47
|
loading,
|
|
47
|
-
onClick
|
|
48
|
+
onClick,
|
|
49
|
+
type
|
|
48
50
|
}
|
|
49
51
|
),
|
|
50
52
|
/* @__PURE__ */ jsx(
|
|
@@ -5,6 +5,10 @@
|
|
|
5
5
|
set from JS; everything visual is tokens.
|
|
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-split-pane {
|
|
@@ -104,3 +108,5 @@
|
|
|
104
108
|
.ds-split-pane--dragging .ds-split-pane__grip {
|
|
105
109
|
background-color: var(--color-icon-secondary);
|
|
106
110
|
}
|
|
111
|
+
|
|
112
|
+
} /* @layer rift.components */
|
|
@@ -5,6 +5,10 @@
|
|
|
5
5
|
--ds-stack-gap, set from the `gap` prop.
|
|
6
6
|
============================================ */
|
|
7
7
|
|
|
8
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
9
|
+
|
|
10
|
+
@layer rift.components {
|
|
11
|
+
|
|
8
12
|
/* Base */
|
|
9
13
|
.ds-stack {
|
|
10
14
|
display: flex;
|
|
@@ -66,3 +70,5 @@
|
|
|
66
70
|
.ds-stack--justify-between {
|
|
67
71
|
justify-content: space-between;
|
|
68
72
|
}
|
|
73
|
+
|
|
74
|
+
} /* @layer rift.components */
|
package/components/Stat/Stat.css
CHANGED
|
@@ -5,6 +5,10 @@
|
|
|
5
5
|
a metrics band.
|
|
6
6
|
============================================ */
|
|
7
7
|
|
|
8
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
9
|
+
|
|
10
|
+
@layer rift.components {
|
|
11
|
+
|
|
8
12
|
.ds-stat {
|
|
9
13
|
display: inline-flex;
|
|
10
14
|
flex-direction: column;
|
|
@@ -106,9 +110,11 @@
|
|
|
106
110
|
DELTA — trend-coloured annotation
|
|
107
111
|
============================================ */
|
|
108
112
|
|
|
113
|
+
/* The arrow sits on the delta's first line, not the middle of its whole
|
|
114
|
+
height, so a delta that wraps keeps its arrow beside its opening words. */
|
|
109
115
|
.ds-stat__delta {
|
|
110
116
|
display: inline-flex;
|
|
111
|
-
align-items:
|
|
117
|
+
align-items: flex-start;
|
|
112
118
|
gap: var(--gap-050);
|
|
113
119
|
font-family: var(--font-paragraph-sm-emphasis-family);
|
|
114
120
|
font-size: var(--font-paragraph-sm-emphasis-size);
|
|
@@ -120,6 +126,10 @@
|
|
|
120
126
|
.ds-stat__delta .material-symbols-rounded {
|
|
121
127
|
--icon-size: var(--icon-size-500);
|
|
122
128
|
line-height: 1;
|
|
129
|
+
flex-shrink: 0;
|
|
130
|
+
/* Centred on one line of the delta's text, whatever a theme makes of the
|
|
131
|
+
line height and the icon size. */
|
|
132
|
+
margin-block-start: calc((var(--font-paragraph-sm-emphasis-line-height) - var(--icon-size)) / 2);
|
|
123
133
|
}
|
|
124
134
|
|
|
125
135
|
/* The trend tokens are theme-split for contrast: the brightest ramp steps
|
|
@@ -253,3 +263,5 @@
|
|
|
253
263
|
.ds-stat .material-symbols-rounded {
|
|
254
264
|
color: inherit;
|
|
255
265
|
}
|
|
266
|
+
|
|
267
|
+
} /* @layer rift.components */
|
|
@@ -4,6 +4,10 @@
|
|
|
4
4
|
label, hollow outline and live pulse
|
|
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-status-dot {
|
|
@@ -126,3 +130,5 @@
|
|
|
126
130
|
opacity: 0;
|
|
127
131
|
}
|
|
128
132
|
}
|
|
133
|
+
|
|
134
|
+
} /* @layer rift.components */
|
|
@@ -4,6 +4,10 @@
|
|
|
4
4
|
and multi-stage flows
|
|
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-stepper {
|
|
@@ -214,3 +218,5 @@ button.ds-stepper__content:hover .ds-stepper__label {
|
|
|
214
218
|
.ds-stepper .material-symbols-rounded {
|
|
215
219
|
color: inherit;
|
|
216
220
|
}
|
|
221
|
+
|
|
222
|
+
} /* @layer rift.components */
|
|
@@ -6,6 +6,10 @@
|
|
|
6
6
|
text style of its own.
|
|
7
7
|
============================================ */
|
|
8
8
|
|
|
9
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
10
|
+
|
|
11
|
+
@layer rift.components {
|
|
12
|
+
|
|
9
13
|
/* Base */
|
|
10
14
|
|
|
11
15
|
.ds-streaming-text {
|
|
@@ -38,3 +42,5 @@
|
|
|
38
42
|
opacity: 0.15;
|
|
39
43
|
}
|
|
40
44
|
}
|
|
45
|
+
|
|
46
|
+
} /* @layer rift.components */
|
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
Clickable colour tile for palettes and pickers
|
|
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-swatch {
|
|
@@ -50,3 +54,5 @@
|
|
|
50
54
|
opacity: 0.4;
|
|
51
55
|
cursor: not-allowed;
|
|
52
56
|
}
|
|
57
|
+
|
|
58
|
+
} /* @layer rift.components */
|
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
Data table with flexible cell content
|
|
4
4
|
============================================ */
|
|
5
5
|
|
|
6
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
7
|
+
|
|
8
|
+
@layer rift.components {
|
|
9
|
+
|
|
6
10
|
.ds-table {
|
|
7
11
|
width: 100%;
|
|
8
12
|
border-collapse: separate;
|
|
@@ -59,10 +63,18 @@
|
|
|
59
63
|
font-weight: var(--font-paragraph-emphasis-weight);
|
|
60
64
|
}
|
|
61
65
|
|
|
62
|
-
|
|
66
|
+
/* The total's rule sits on its cells: with border-collapse: separate a
|
|
67
|
+
row's own border never paints (the bordered variant's dividers below are
|
|
68
|
+
on cells for the same reason). In the bordered table the row above drops
|
|
69
|
+
its hairline, so the heavier rule is the only line between them. */
|
|
70
|
+
.ds-table__row--total .ds-table__cell {
|
|
63
71
|
border-top: var(--border-050) solid var(--color-table-divider);
|
|
64
72
|
}
|
|
65
73
|
|
|
74
|
+
.ds-table--bordered .ds-table__row:has(+ .ds-table__row--total) .ds-table__cell {
|
|
75
|
+
border-bottom: none;
|
|
76
|
+
}
|
|
77
|
+
|
|
66
78
|
/* ============================================
|
|
67
79
|
HEADER CELL
|
|
68
80
|
============================================ */
|
|
@@ -273,3 +285,5 @@
|
|
|
273
285
|
overflow-wrap: anywhere;
|
|
274
286
|
word-break: break-word;
|
|
275
287
|
}
|
|
288
|
+
|
|
289
|
+
} /* @layer rift.components */
|
|
@@ -5,6 +5,10 @@
|
|
|
5
5
|
A long AI command grows its own row.
|
|
6
6
|
============================================ */
|
|
7
7
|
|
|
8
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
9
|
+
|
|
10
|
+
@layer rift.components {
|
|
11
|
+
|
|
8
12
|
.ds-table-toolbar {
|
|
9
13
|
position: relative;
|
|
10
14
|
display: flex;
|
|
@@ -641,3 +645,5 @@
|
|
|
641
645
|
opacity: 1;
|
|
642
646
|
transition: opacity var(--motion-duration-fast) var(--motion-ease-standard) var(--motion-duration-base);
|
|
643
647
|
}
|
|
648
|
+
|
|
649
|
+
} /* @layer rift.components */
|
package/components/Tabs/Tabs.css
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
Horizontal tab navigation with underline
|
|
4
4
|
============================================ */
|
|
5
5
|
|
|
6
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
7
|
+
|
|
8
|
+
@layer rift.components {
|
|
9
|
+
|
|
6
10
|
/* A row that does not fit its container scrolls inline rather than running
|
|
7
11
|
off the page: the tabs never wrap or shrink, the scrollbar is hidden (a
|
|
8
12
|
swipe, a trackpad or the arrow keys, whose focus scrolls the tab into
|
|
@@ -179,3 +183,5 @@
|
|
|
179
183
|
outline-offset: 2px;
|
|
180
184
|
border-radius: var(--radius-200);
|
|
181
185
|
}
|
|
186
|
+
|
|
187
|
+
} /* @layer rift.components */
|
|
@@ -4,6 +4,10 @@
|
|
|
4
4
|
held as removable tags inside the field
|
|
5
5
|
============================================ */
|
|
6
6
|
|
|
7
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
8
|
+
|
|
9
|
+
@layer rift.components {
|
|
10
|
+
|
|
7
11
|
.ds-taginput {
|
|
8
12
|
display: flex;
|
|
9
13
|
flex-direction: column;
|
|
@@ -167,3 +171,5 @@
|
|
|
167
171
|
.ds-taginput .material-symbols-rounded {
|
|
168
172
|
color: inherit;
|
|
169
173
|
}
|
|
174
|
+
|
|
175
|
+
} /* @layer rift.components */
|
package/components/Text/Text.css
CHANGED
|
@@ -8,6 +8,10 @@
|
|
|
8
8
|
the small tiers borrow from paragraph-sm.
|
|
9
9
|
============================================ */
|
|
10
10
|
|
|
11
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
12
|
+
|
|
13
|
+
@layer rift.components {
|
|
14
|
+
|
|
11
15
|
/* Base */
|
|
12
16
|
.ds-text {
|
|
13
17
|
margin: 0;
|
|
@@ -127,3 +131,5 @@
|
|
|
127
131
|
.ds-text--align-end {
|
|
128
132
|
text-align: end;
|
|
129
133
|
}
|
|
134
|
+
|
|
135
|
+
} /* @layer rift.components */
|
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
Multi-line text input with label and counter
|
|
4
4
|
============================================ */
|
|
5
5
|
|
|
6
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
7
|
+
|
|
8
|
+
@layer rift.components {
|
|
9
|
+
|
|
6
10
|
.ds-textarea {
|
|
7
11
|
display: flex;
|
|
8
12
|
flex-direction: column;
|
|
@@ -107,3 +111,4 @@
|
|
|
107
111
|
letter-spacing: var(--font-paragraph-sm-letter-spacing);
|
|
108
112
|
}
|
|
109
113
|
|
|
114
|
+
} /* @layer rift.components */
|
|
@@ -7,6 +7,10 @@
|
|
|
7
7
|
so the three read as one family in a row.
|
|
8
8
|
============================================ */
|
|
9
9
|
|
|
10
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
11
|
+
|
|
12
|
+
@layer rift.components {
|
|
13
|
+
|
|
10
14
|
.ds-theme-picker {
|
|
11
15
|
position: relative;
|
|
12
16
|
display: inline-flex;
|
|
@@ -193,3 +197,5 @@
|
|
|
193
197
|
.ds-theme-picker--open .ds-theme-picker__trigger-tip .ds-tooltip__panel {
|
|
194
198
|
display: none;
|
|
195
199
|
}
|
|
200
|
+
|
|
201
|
+
} /* @layer rift.components */
|
|
@@ -7,6 +7,10 @@
|
|
|
7
7
|
tooltips included, is SegmentedControl's.
|
|
8
8
|
============================================ */
|
|
9
9
|
|
|
10
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
11
|
+
|
|
12
|
+
@layer rift.components {
|
|
13
|
+
|
|
10
14
|
.ds-theme-toggle {
|
|
11
15
|
flex-shrink: 0;
|
|
12
16
|
}
|
|
@@ -14,3 +18,5 @@
|
|
|
14
18
|
/* The cycle form is SegmentedControl's (`ds-segmented-control--cycle`),
|
|
15
19
|
which draws the circle; `ds-theme-toggle--cycle` stays as a consumer
|
|
16
20
|
hook and styles nothing here. */
|
|
21
|
+
|
|
22
|
+
} /* @layer rift.components */
|
|
@@ -13,6 +13,10 @@
|
|
|
13
13
|
row is a perfect circle around its icon (12 + 8 + 24 + 8 + 12 = 64).
|
|
14
14
|
============================================ */
|
|
15
15
|
|
|
16
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
17
|
+
|
|
18
|
+
@layer rift.components {
|
|
19
|
+
|
|
16
20
|
.ds-thread-panel {
|
|
17
21
|
/* Width and padding combine on the root and the rows, so the component
|
|
18
22
|
declares its own sizing model rather than leaning on a host reset —
|
|
@@ -995,3 +999,5 @@
|
|
|
995
999
|
.ds-thread-panel__thread:has(.ds-thread-panel__thread-icon) {
|
|
996
1000
|
padding-inline-start: var(--padding-200);
|
|
997
1001
|
}
|
|
1002
|
+
|
|
1003
|
+
} /* @layer rift.components */
|
|
@@ -13,6 +13,10 @@
|
|
|
13
13
|
(the base beat), since a dismissal should feel lighter than an arrival.
|
|
14
14
|
============================================ */
|
|
15
15
|
|
|
16
|
+
@layer rift.tokens, rift.preset, rift.components;
|
|
17
|
+
|
|
18
|
+
@layer rift.components {
|
|
19
|
+
|
|
16
20
|
.ds-thread-tabs {
|
|
17
21
|
display: flex;
|
|
18
22
|
align-items: center;
|
|
@@ -260,3 +264,5 @@
|
|
|
260
264
|
.ds-thread-tabs__trigger:has(.ds-thread-tabs__status, .ds-thread-tabs__icon) {
|
|
261
265
|
padding-inline-start: var(--padding-200);
|
|
262
266
|
}
|
|
267
|
+
|
|
268
|
+
} /* @layer rift.components */
|