rift-ds 1.35.0 → 1.36.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (213) hide show
  1. package/README.md +1 -0
  2. package/behaviors/chat-card.css +6 -0
  3. package/behaviors/direction.css +6 -0
  4. package/behaviors/shell.css +6 -0
  5. package/behaviors/shortcuts.js +2 -2
  6. package/behaviors/visually-hidden.css +6 -0
  7. package/bin/templates/blocks/app/settings/ProfileForm.tsx +1 -1
  8. package/bin/templates/blocks/app/sign-in/page.tsx +3 -3
  9. package/chat/ChatAgentPane.css +6 -0
  10. package/chat/ChatWidget.css +6 -0
  11. package/chat/demo.css +6 -0
  12. package/chat/queries.js +1 -1
  13. package/chat/selection.css +6 -0
  14. package/components/Accordion/Accordion.css +6 -0
  15. package/components/ActionBar/ActionBar.css +6 -0
  16. package/components/ActionCard/ActionCard.css +6 -0
  17. package/components/ActionReadout/ActionReadout.css +6 -0
  18. package/components/AgentPlan/AgentPlan.css +6 -0
  19. package/components/AgentRail/AgentRail.css +6 -0
  20. package/components/AgentStatus/AgentStatus.css +12 -7
  21. package/components/AiButton/AiButton.css +17 -11
  22. package/components/Alert/Alert.css +6 -0
  23. package/components/AlertDialog/AlertDialog.css +6 -0
  24. package/components/AnchorNav/AnchorNav.css +6 -0
  25. package/components/AnimatedNumber/AnimatedNumber.css +5 -0
  26. package/components/AppLayout/AppLayout.css +6 -0
  27. package/components/AppSidebar/AppSidebar.css +19 -1
  28. package/components/AppSidebar/AppSidebar.d.ts +1 -1
  29. package/components/AppSidebar/AppSidebar.js +10 -4
  30. package/components/ArtifactCard/ArtifactCard.css +6 -0
  31. package/components/ArtifactPanel/ArtifactPanel.css +6 -0
  32. package/components/Attachment/Attachment.css +6 -0
  33. package/components/Attachment/AttachmentGroup.js +4 -1
  34. package/components/Avatar/Avatar.css +6 -0
  35. package/components/AvatarGroup/AvatarGroup.css +6 -0
  36. package/components/BackToTop/BackToTop.css +6 -0
  37. package/components/Badge/Badge.css +6 -0
  38. package/components/Banner/Banner.css +6 -0
  39. package/components/BentoTile/BentoTile.css +6 -0
  40. package/components/BottomNav/BottomNav.css +6 -0
  41. package/components/Breadcrumb/Breadcrumb.css +6 -0
  42. package/components/Button/Button.css +6 -0
  43. package/components/Button/Button.d.ts +7 -1
  44. package/components/Button/Button.js +2 -1
  45. package/components/ButtonGroup/ButtonGroup.css +6 -0
  46. package/components/Card/Card.css +6 -0
  47. package/components/CardStack/CardStack.css +5 -0
  48. package/components/Carousel/Carousel.css +6 -0
  49. package/components/Chart/Chart.css +9 -1
  50. package/components/ChatHeader/ChatHeader.css +6 -0
  51. package/components/ChatMarker/ChatMarker.css +6 -0
  52. package/components/ChatMessage/ChatMessage.css +6 -0
  53. package/components/ChatThread/ChatThread.css +6 -0
  54. package/components/Checkbox/Checkbox.css +6 -0
  55. package/components/Checkbox/Checkbox.js +1 -1
  56. package/components/Checklist/Checklist.css +6 -0
  57. package/components/Chip/Chip.css +6 -0
  58. package/components/CodeBlock/CodeBlock.css +6 -0
  59. package/components/CodeDiff/CodeDiff.css +5 -0
  60. package/components/ColorPicker/ColorPicker.css +6 -0
  61. package/components/ColourSwatch/ColourSwatch.css +6 -0
  62. package/components/Combobox/Combobox.css +6 -0
  63. package/components/CommandPalette/CommandPalette.css +6 -0
  64. package/components/CommandPaletteTrigger/CommandPaletteTrigger.css +6 -0
  65. package/components/Composer/Composer.css +6 -0
  66. package/components/ContactCard/ContactCard.css +6 -0
  67. package/components/ContextMenu/ContextMenu.css +6 -0
  68. package/components/ContributionGraph/ContributionGraph.css +6 -0
  69. package/components/CurrencyInput/CurrencyInput.css +6 -0
  70. package/components/DataTable/DataTable.css +6 -0
  71. package/components/DataTable/DataTable.js +6 -2
  72. package/components/DateInput/DateInput.css +6 -0
  73. package/components/DatePicker/DatePicker.css +6 -0
  74. package/components/DateRangePicker/DateRangePicker.css +6 -0
  75. package/components/Deadline/Deadline.css +6 -0
  76. package/components/DecisionRow/DecisionRow.css +6 -0
  77. package/components/DescriptionList/DescriptionList.css +6 -0
  78. package/components/Dialog/Dialog.css +6 -0
  79. package/components/Divider/Divider.css +6 -0
  80. package/components/DocumentChip/DocumentChip.css +6 -0
  81. package/components/DocumentViewer/DocumentViewer.css +6 -0
  82. package/components/Drawer/Drawer.css +6 -0
  83. package/components/Dropdown/ChosenMark.css +6 -0
  84. package/components/Dropdown/Dropdown.css +6 -0
  85. package/components/Dropdown/Dropdown.js +1 -1
  86. package/components/DropdownMenu/DropdownMenu.css +6 -0
  87. package/components/EmptyState/EmptyState.css +6 -0
  88. package/components/EntityCard/EntityCard.css +6 -0
  89. package/components/EntitySwitcher/EntitySwitcher.css +6 -0
  90. package/components/ErrorSummary/ErrorSummary.css +6 -0
  91. package/components/ErrorSummary/ErrorSummary.js +3 -1
  92. package/components/EventCalendar/EventCalendar.css +6 -0
  93. package/components/Field/Field.css +6 -0
  94. package/components/Figure/Figure.css +6 -0
  95. package/components/FileInput/FileInput.css +6 -0
  96. package/components/FilterBar/FilterBar.css +9 -1
  97. package/components/FormSection/FormSection.css +6 -0
  98. package/components/FunnelChart/FunnelChart.css +6 -0
  99. package/components/GanttChart/GanttChart.css +6 -0
  100. package/components/Gauge/Gauge.css +6 -0
  101. package/components/Globe/Globe.css +6 -0
  102. package/components/Grid/Grid.css +6 -0
  103. package/components/Heading/Heading.css +6 -0
  104. package/components/HoverCard/HoverCard.css +6 -0
  105. package/components/Icon/Icon.css +6 -0
  106. package/components/IconButton/IconButton.css +6 -0
  107. package/components/IconButton/IconButton.d.ts +7 -1
  108. package/components/IconButton/IconButton.js +2 -1
  109. package/components/ImageCompare/ImageCompare.css +6 -0
  110. package/components/Input/Input.css +22 -4
  111. package/components/Inspector/Inspector.css +6 -0
  112. package/components/Instructions/Instructions.css +6 -0
  113. package/components/InterruptCard/InterruptCard.css +6 -0
  114. package/components/Kbd/Kbd.css +6 -0
  115. package/components/LegendTile/LegendTile.css +6 -0
  116. package/components/Lightbox/Lightbox.css +6 -0
  117. package/components/Link/Link.css +9 -1
  118. package/components/LinkList/LinkList.css +6 -0
  119. package/components/List/List.css +6 -0
  120. package/components/MapCallout/MapCallout.css +6 -0
  121. package/components/MapLegend/MapLegend.css +6 -0
  122. package/components/MaskedInput/MaskedInput.css +6 -0
  123. package/components/MegaMenu/MegaMenu.css +6 -0
  124. package/components/Mention/Mention.css +6 -0
  125. package/components/Mention/Mention.js +1 -1
  126. package/components/Menubar/Menubar.css +6 -0
  127. package/components/MessageActions/MessageActions.css +6 -0
  128. package/components/MessageCard/MessageCard.css +6 -0
  129. package/components/Meter/Meter.css +6 -0
  130. package/components/ModelPicker/ModelPicker.css +6 -0
  131. package/components/MotionSwatch/MotionSwatch.css +6 -0
  132. package/components/Nav/Nav.css +6 -0
  133. package/components/NavList/NavList.css +6 -0
  134. package/components/NotificationCenter/NotificationCenter.css +6 -0
  135. package/components/NumberInput/NumberInput.css +6 -0
  136. package/components/OrgChart/OrgChart.css +6 -0
  137. package/components/PageHeader/PageHeader.css +6 -0
  138. package/components/Pagination/Pagination.css +6 -0
  139. package/components/Panel/Panel.css +6 -0
  140. package/components/PinInput/PinInput.css +6 -0
  141. package/components/PixelAvatar/PixelAvatar.css +6 -0
  142. package/components/Popover/Popover.css +6 -0
  143. package/components/ProgressBar/ProgressBar.css +6 -0
  144. package/components/ProgressiveBlur/ProgressiveBlur.css +6 -0
  145. package/components/PromptSuggestions/PromptSuggestions.css +5 -0
  146. package/components/Prose/Prose.css +6 -0
  147. package/components/QuestionCard/QuestionCard.css +5 -0
  148. package/components/Quote/Quote.css +6 -0
  149. package/components/RadioButton/RadioButton.css +6 -0
  150. package/components/Rating/Rating.css +6 -0
  151. package/components/Reasoning/Reasoning.css +6 -0
  152. package/components/ResourceTimeline/ResourceTimeline.css +6 -0
  153. package/components/RichDropdown/RichDropdown.css +6 -0
  154. package/components/SectionTitle/SectionTitle.css +6 -0
  155. package/components/SegmentedControl/SegmentedControl.css +6 -0
  156. package/components/SelectionCard/SelectionCard.css +6 -0
  157. package/components/ShaderField/ShaderField.css +6 -0
  158. package/components/ShaderField/ShaderField.js +2 -0
  159. package/components/ShaderScene/ShaderScene.css +6 -0
  160. package/components/SidebarPanel/SidebarPanel.css +6 -0
  161. package/components/SignaturePad/SignaturePad.css +6 -0
  162. package/components/SiteFooter/SiteFooter.css +6 -0
  163. package/components/SiteHeader/SiteHeader.css +6 -0
  164. package/components/SiteLayout/SiteLayout.css +6 -0
  165. package/components/Skeleton/Skeleton.css +6 -0
  166. package/components/Slider/Slider.css +6 -0
  167. package/components/SourceChip/SourceChip.css +6 -0
  168. package/components/SourceTrail/SourceTrail.css +6 -0
  169. package/components/SpacingSwatch/SpacingSwatch.css +6 -0
  170. package/components/Sparkline/Sparkline.css +6 -0
  171. package/components/Spinner/Spinner.css +6 -0
  172. package/components/SplitButton/SplitButton.css +6 -0
  173. package/components/SplitButton/SplitButton.d.ts +7 -1
  174. package/components/SplitButton/SplitButton.js +3 -1
  175. package/components/SplitPane/SplitPane.css +6 -0
  176. package/components/Stack/Stack.css +6 -0
  177. package/components/Stat/Stat.css +13 -1
  178. package/components/StatusDot/StatusDot.css +6 -0
  179. package/components/Stepper/Stepper.css +6 -0
  180. package/components/StreamingText/StreamingText.css +6 -0
  181. package/components/Swatch/Swatch.css +6 -0
  182. package/components/Table/Table.css +15 -1
  183. package/components/TableToolbar/TableToolbar.css +6 -0
  184. package/components/Tabs/Tabs.css +6 -0
  185. package/components/TagInput/TagInput.css +6 -0
  186. package/components/Text/Text.css +6 -0
  187. package/components/Textarea/Textarea.css +5 -0
  188. package/components/ThemePicker/ThemePicker.css +6 -0
  189. package/components/ThemeToggle/ThemeToggle.css +6 -0
  190. package/components/ThreadPanel/ThreadPanel.css +6 -0
  191. package/components/ThreadTabs/ThreadTabs.css +6 -0
  192. package/components/TimePicker/TimePicker.css +6 -0
  193. package/components/Timeline/Timeline.css +18 -18
  194. package/components/Toast/Toast.css +6 -0
  195. package/components/Toast/Toast.js +1 -1
  196. package/components/ToggleGroup/ToggleGroup.css +6 -0
  197. package/components/ToggleSwitch/ToggleSwitch.css +21 -3
  198. package/components/ToggleSwitch/ToggleSwitch.d.ts +1 -1
  199. package/components/ToggleSwitch/ToggleSwitch.js +2 -2
  200. package/components/ToolCall/ToolCall.css +6 -0
  201. package/components/Toolbar/Toolbar.css +6 -0
  202. package/components/Tooltip/Tooltip.css +6 -0
  203. package/components/TopAppBar/TopAppBar.css +6 -0
  204. package/components/TreeView/TreeView.css +6 -0
  205. package/components/TypographySwatch/TypographySwatch.css +6 -0
  206. package/components/UsageCard/UsageCard.css +6 -0
  207. package/components/Waveform/Waveform.css +6 -0
  208. package/components/Widget/Widget.css +6 -0
  209. package/components/Wizard/Wizard.css +6 -0
  210. package/components/WorldMap/WorldMap.css +6 -0
  211. package/fonts/material-symbols.css +10 -0
  212. package/package.json +1 -1
  213. package/tokens/base.css +11 -2
@@ -3,6 +3,10 @@
3
3
  Token-styled typography for rendered markdown
4
4
  ============================================ */
5
5
 
6
+ @layer rift.tokens, rift.preset, rift.components;
7
+
8
+ @layer rift.components {
9
+
6
10
  .ds-prose {
7
11
  font-family: var(--font-paragraph-family);
8
12
  font-size: var(--font-paragraph-size);
@@ -338,3 +342,5 @@
338
342
  .ds-prose--sm code {
339
343
  font-size: var(--font-paragraph-sm-size);
340
344
  }
345
+
346
+ } /* @layer rift.components */
@@ -13,6 +13,10 @@
13
13
  it. The rows carry the structure.
14
14
  ============================================ */
15
15
 
16
+ @layer rift.tokens, rift.preset, rift.components;
17
+
18
+ @layer rift.components {
19
+
16
20
  .ds-question-card {
17
21
  display: flex;
18
22
  flex-direction: column;
@@ -352,3 +356,4 @@ button.ds-question-card__option--chosen:hover {
352
356
  color: var(--color-text-tertiary);
353
357
  }
354
358
 
359
+ } /* @layer rift.components */
@@ -4,6 +4,10 @@
4
4
  optional attribution.
5
5
  ============================================ */
6
6
 
7
+ @layer rift.tokens, rift.preset, rift.components;
8
+
9
+ @layer rift.components {
10
+
7
11
  .ds-quote {
8
12
  margin: 0;
9
13
  display: flex;
@@ -76,3 +80,5 @@
76
80
  letter-spacing: var(--font-paragraph-sm-letter-spacing);
77
81
  color: var(--color-text-tertiary);
78
82
  }
83
+
84
+ } /* @layer rift.components */
@@ -9,6 +9,10 @@
9
9
  ds-control-host lights it on hover.
10
10
  ============================================ */
11
11
 
12
+ @layer rift.tokens, rift.preset, rift.components;
13
+
14
+ @layer rift.components {
15
+
12
16
  .ds-radio {
13
17
  display: inline-flex;
14
18
  align-items: center;
@@ -172,3 +176,5 @@
172
176
  flex-wrap: wrap;
173
177
  gap: var(--gap-200) var(--gap-500); /* 8px rows, 20px between options */
174
178
  }
179
+
180
+ } /* @layer rift.components */
@@ -3,6 +3,10 @@
3
3
  Star-scale rating control
4
4
  ============================================ */
5
5
 
6
+ @layer rift.tokens, rift.preset, rift.components;
7
+
8
+ @layer rift.components {
9
+
6
10
  .ds-rating {
7
11
  display: inline-flex;
8
12
  align-items: center;
@@ -98,3 +102,5 @@
98
102
  .ds-rating--thumbs .ds-rating__step--filled {
99
103
  color: var(--color-icon-primary);
100
104
  }
105
+
106
+ } /* @layer rift.components */
@@ -6,6 +6,10 @@
6
6
  competing with the answer beside it.
7
7
  ============================================ */
8
8
 
9
+ @layer rift.tokens, rift.preset, rift.components;
10
+
11
+ @layer rift.components {
12
+
9
13
  .ds-reasoning {
10
14
  /* Where an AgentStatus summary's label starts: matrix plus its gap.
11
15
  The rail geometry and the handoff slide both derive from it. */
@@ -304,3 +308,5 @@
304
308
  animation: none;
305
309
  }
306
310
  }
311
+
312
+ } /* @layer rift.components */
@@ -10,6 +10,10 @@
10
10
  on every theme whatever the accent.
11
11
  ============================================ */
12
12
 
13
+ @layer rift.tokens, rift.preset, rift.components;
14
+
15
+ @layer rift.components {
16
+
13
17
  /* Base */
14
18
  .ds-resource-timeline {
15
19
  --ds-resource-timeline-label: 9rem;
@@ -192,3 +196,5 @@ button.ds-resource-timeline__bar:focus-visible {
192
196
  .ds-resource-timeline__bar--mint {
193
197
  --ds-resource-timeline-accent: var(--color-core-accent-mint);
194
198
  }
199
+
200
+ } /* @layer rift.components */
@@ -3,6 +3,10 @@
3
3
  Select whose options preview their own look
4
4
  ============================================ */
5
5
 
6
+ @layer rift.tokens, rift.preset, rift.components;
7
+
8
+ @layer rift.components {
9
+
6
10
  /* Base */
7
11
 
8
12
  .ds-rich-dropdown {
@@ -248,3 +252,5 @@
248
252
  .ds-rich-dropdown__trigger {
249
253
  padding-inline-end: var(--padding-300);
250
254
  }
255
+
256
+ } /* @layer rift.components */
@@ -3,6 +3,10 @@
3
3
  Heading with divider line, optional trailing content
4
4
  ============================================ */
5
5
 
6
+ @layer rift.tokens, rift.preset, rift.components;
7
+
8
+ @layer rift.components {
9
+
6
10
  .ds-section-title {
7
11
  display: flex;
8
12
  align-items: baseline;
@@ -79,3 +83,5 @@
79
83
  opacity: 1;
80
84
  }
81
85
  }
86
+
87
+ } /* @layer rift.components */
@@ -3,6 +3,10 @@
3
3
  Pill-style toggle between related views
4
4
  ============================================ */
5
5
 
6
+ @layer rift.tokens, rift.preset, rift.components;
7
+
8
+ @layer rift.components {
9
+
6
10
  .ds-segmented-control {
7
11
  position: relative;
8
12
  display: inline-flex;
@@ -470,3 +474,5 @@
470
474
  .ds-segmented-control--cycle .ds-icon-button:not(.ds-icon-button--disabled):active .ds-icon-button__icon {
471
475
  color: var(--color-action-icon-default);
472
476
  }
477
+
478
+ } /* @layer rift.components */
@@ -15,6 +15,10 @@
15
15
  draws.
16
16
  ============================================ */
17
17
 
18
+ @layer rift.tokens, rift.preset, rift.components;
19
+
20
+ @layer rift.components {
21
+
18
22
  /* ============================================
19
23
  GROUP — vertical stack of cards
20
24
  ============================================ */
@@ -122,3 +126,5 @@
122
126
  display: inline-flex;
123
127
  flex-shrink: 0;
124
128
  }
129
+
130
+ } /* @layer rift.components */
@@ -3,6 +3,10 @@
3
3
  ancestor the caller provides: where the field sits is a layout decision,
4
4
  and baking one in would make the component unusable anywhere else. */
5
5
 
6
+ @layer rift.tokens, rift.preset, rift.components;
7
+
8
+ @layer rift.components {
9
+
6
10
  .ds-shader-field {
7
11
  position: absolute;
8
12
  inset: 0;
@@ -22,3 +26,5 @@
22
26
  .ds-shader-field[data-status='active'] {
23
27
  opacity: 1;
24
28
  }
29
+
30
+ } /* @layer rift.components */
@@ -4,6 +4,7 @@ import React, { useRef, useMemo, useState, useEffect } from "react";
4
4
  import { DEFAULT_SHADER_BLOBS, DEFAULT_SHADER_PARAMS, useShaderField } from "./useShaderField.js";
5
5
  import "./ShaderField.css";
6
6
  import { MOTION_RENDERER_WATCHDOG_MS } from "../../tokens/motion.js";
7
+ import { BLOB_COUNT } from "./field.glsl.js";
7
8
  const WATCHDOG_MS = MOTION_RENDERER_WATCHDOG_MS;
8
9
  const ShaderField = React.forwardRef(
9
10
  ({
@@ -49,6 +50,7 @@ const ShaderField = React.forwardRef(
49
50
  );
50
51
  ShaderField.displayName = "ShaderField";
51
52
  export {
53
+ BLOB_COUNT,
52
54
  DEFAULT_SHADER_BLOBS,
53
55
  DEFAULT_SHADER_PARAMS,
54
56
  ShaderField,
@@ -2,6 +2,10 @@
2
2
  Placement and clipping belong to that ancestor, as with ShaderField: where
3
3
  a scene sits is a layout decision. */
4
4
 
5
+ @layer rift.tokens, rift.preset, rift.components;
6
+
7
+ @layer rift.components {
8
+
5
9
  .ds-shader-scene {
6
10
  position: absolute;
7
11
  inset: 0;
@@ -25,3 +29,5 @@
25
29
  width: 100%;
26
30
  height: 100%;
27
31
  }
32
+
33
+ } /* @layer rift.components */
@@ -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 | 'type'> {
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 */
@@ -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: center;
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 */