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
  Text input with label, icons, and helper text
4
4
  ============================================ */
5
5
 
6
+ @layer rift.tokens, rift.preset, rift.components;
7
+
8
+ @layer rift.components {
9
+
6
10
  .ds-input {
7
11
  display: flex;
8
12
  flex-direction: column;
@@ -146,11 +150,11 @@
146
150
  inset-inline-end: var(--padding-300); /* 12px */
147
151
  }
148
152
 
149
- .ds-input--compact.ds-input--has-icon-left .ds-input__field {
153
+ .ds-input--compact.ds-input--has-icon-left:not(:where(.ds-input--affixed)) .ds-input__field {
150
154
  padding-inline-start: calc(var(--padding-300) + 20px + var(--gap-200)); /* 12px + 20px icon + 8px gap */
151
155
  }
152
156
 
153
- .ds-input--compact.ds-input--has-icon-right .ds-input__field {
157
+ .ds-input--compact.ds-input--has-icon-right:not(:where(.ds-input--affixed)) .ds-input__field {
154
158
  padding-inline-end: calc(var(--padding-300) + 20px + var(--gap-200)); /* 12px + 20px icon + 8px gap */
155
159
  }
156
160
 
@@ -240,6 +244,15 @@
240
244
  margin-inline-end: calc(-1 * var(--padding-200));
241
245
  }
242
246
 
247
+ /* A search field draws its own cancel button in WebKit and Blink. While the
248
+ library's clear button is showing, the native one goes, so the field never
249
+ offers two; a search field without `clearable` keeps the browser's. */
250
+ .ds-input:has(.ds-input__clear) .ds-input__field::-webkit-search-cancel-button {
251
+ -webkit-appearance: none;
252
+ appearance: none;
253
+ display: none;
254
+ }
255
+
243
256
  .ds-input--affixed.ds-input--error .ds-input__field-wrapper,
244
257
  .ds-input--affixed.ds-input--error .ds-input__field-wrapper:focus-within {
245
258
  border-color: var(--color-status-error-border);
@@ -304,11 +317,14 @@
304
317
  inset-inline-end: var(--padding-200);
305
318
  }
306
319
 
307
- .ds-input--compact.ds-input--has-icon-left .ds-input__field {
320
+ /* The compact icon padding never reaches an affixed field: there the icon
321
+ sits in the row's flow and the field's own padding is zero (the affixed
322
+ rule), whichever rule comes later. :where() keeps the specificity. */
323
+ .ds-input--compact.ds-input--has-icon-left:not(:where(.ds-input--affixed)) .ds-input__field {
308
324
  padding-inline-start: calc(var(--padding-200) + 20px + var(--gap-200)); /* 8px + 20px icon + 8px gap */
309
325
  }
310
326
 
311
- .ds-input--compact.ds-input--has-icon-right .ds-input__field {
327
+ .ds-input--compact.ds-input--has-icon-right:not(:where(.ds-input--affixed)) .ds-input__field {
312
328
  padding-inline-end: calc(var(--padding-200) + 20px + var(--gap-200)); /* 8px + 20px icon + 8px gap */
313
329
  }
314
330
 
@@ -357,3 +373,5 @@
357
373
  border-color: var(--color-input-border-primary);
358
374
  }
359
375
  }
376
+
377
+ } /* @layer rift.components */
@@ -32,6 +32,10 @@
32
32
  the same in a panel as in a form.
33
33
  ============================================ */
34
34
 
35
+ @layer rift.tokens, rift.preset, rift.components;
36
+
37
+ @layer rift.components {
38
+
35
39
  /* ---------- size ----------
36
40
  default 8px + 24px line + 8px = 40px, 20px sides, paragraph-emphasis
37
41
  compact 6px + 20px line + 6px = 32px, 12px sides, paragraph-sm-emphasis */
@@ -632,3 +636,5 @@
632
636
  content: "";
633
637
  flex: 0 0 calc(var(--padding-300) - var(--gap-200));
634
638
  }
639
+
640
+ } /* @layer rift.components */
@@ -3,6 +3,10 @@
3
3
  Step-by-step guidance with numbered steps
4
4
  ============================================ */
5
5
 
6
+ @layer rift.tokens, rift.preset, rift.components;
7
+
8
+ @layer rift.components {
9
+
6
10
  .ds-instructions {
7
11
  display: flex;
8
12
  flex-direction: column;
@@ -214,3 +218,5 @@
214
218
  .ds-instructions--compact .ds-instructions__step:last-child .ds-instructions__content {
215
219
  padding-bottom: 0;
216
220
  }
221
+
222
+ } /* @layer rift.components */
@@ -11,6 +11,10 @@
11
11
  announcement carries the waiting state.
12
12
  ============================================ */
13
13
 
14
+ @layer rift.tokens, rift.preset, rift.components;
15
+
16
+ @layer rift.components {
17
+
14
18
  .ds-interrupt-card {
15
19
  --ds-interrupt-card-color: var(--color-icon-secondary);
16
20
 
@@ -220,3 +224,5 @@
220
224
  .ds-interrupt-card .material-symbols-rounded {
221
225
  color: inherit;
222
226
  }
227
+
228
+ } /* @layer rift.components */
@@ -3,6 +3,10 @@
3
3
  A single keyboard key rendered as a keycap
4
4
  ============================================ */
5
5
 
6
+ @layer rift.tokens, rift.preset, rift.components;
7
+
8
+ @layer rift.components {
9
+
6
10
  /* Base */
7
11
  .ds-kbd {
8
12
  display: inline-flex;
@@ -47,3 +51,5 @@
47
51
  align-items: center;
48
52
  gap: var(--gap-050);
49
53
  }
54
+
55
+ } /* @layer rift.components */
@@ -10,6 +10,10 @@
10
10
  token-only.
11
11
  ============================================ */
12
12
 
13
+ @layer rift.tokens, rift.preset, rift.components;
14
+
15
+ @layer rift.components {
16
+
13
17
  /* Base */
14
18
 
15
19
  .ds-legend-tile {
@@ -65,3 +69,5 @@
65
69
  letter-spacing: var(--font-paragraph-sm-emphasis-letter-spacing);
66
70
  color: var(--color-text-primary);
67
71
  }
72
+
73
+ } /* @layer rift.components */
@@ -3,6 +3,10 @@
3
3
  Fullscreen media viewer over a frosted scrim
4
4
  ============================================ */
5
5
 
6
+ @layer rift.tokens, rift.preset, rift.components;
7
+
8
+ @layer rift.components {
9
+
6
10
  .ds-lightbox {
7
11
  position: fixed;
8
12
  inset: 0;
@@ -208,3 +212,5 @@
208
212
  max-width: calc(100vw - var(--gap-400) * 2);
209
213
  }
210
214
  }
215
+
216
+ } /* @layer rift.components */
@@ -9,6 +9,10 @@
9
9
  for primary actions.
10
10
  ============================================ */
11
11
 
12
+ @layer rift.tokens, rift.preset, rift.components;
13
+
14
+ @layer rift.components {
15
+
12
16
  /* Base */
13
17
  .ds-link {
14
18
  display: inline;
@@ -102,7 +106,9 @@
102
106
  height: var(--control-height-default);
103
107
  padding-inline: var(--padding-500);
104
108
  border-radius: var(--radius-pill);
105
- background-color: var(--color-bg-container-primary);
109
+ /* Opaque: it floats over whatever the page shows at its corner, and the
110
+ container fill is translucent in dark mode. */
111
+ background-color: var(--color-bg-page-primary);
106
112
  box-shadow: var(--shadow-floating);
107
113
  font-family: var(--font-paragraph-emphasis-family);
108
114
  font-size: var(--font-paragraph-emphasis-size);
@@ -120,3 +126,5 @@
120
126
  outline: 2px solid var(--color-action-primary-bg);
121
127
  outline-offset: 2px;
122
128
  }
129
+
130
+ } /* @layer rift.components */
@@ -1,3 +1,7 @@
1
+ @layer rift.tokens, rift.preset, rift.components;
2
+
3
+ @layer rift.components {
4
+
1
5
  .ds-link-list {
2
6
  display: flex;
3
7
  flex-direction: column;
@@ -69,3 +73,5 @@
69
73
  line-height: var(--font-paragraph-sm-line-height);
70
74
  color: var(--color-text-tertiary);
71
75
  }
76
+
77
+ } /* @layer rift.components */
@@ -9,6 +9,10 @@
9
9
  however the label wraps.
10
10
  ============================================ */
11
11
 
12
+ @layer rift.tokens, rift.preset, rift.components;
13
+
14
+ @layer rift.components {
15
+
12
16
  /* Base */
13
17
  .ds-list {
14
18
  --ds-list-gutter: calc(var(--icon-size-500) + var(--gap-200));
@@ -171,3 +175,5 @@
171
175
  .ds-list--marker-none .ds-list__item--icon .ds-list__marker {
172
176
  inset-inline-start: 0;
173
177
  }
178
+
179
+ } /* @layer rift.components */
@@ -1,3 +1,7 @@
1
+ @layer rift.tokens, rift.preset, rift.components;
2
+
3
+ @layer rift.components {
4
+
1
5
  /* ds-allow-file(physical): a callout points at a place on a map, whose sides are geography */
2
6
  /* ============================================
3
7
  MAP CALLOUT COMPONENT
@@ -45,3 +49,5 @@
45
49
  color: var(--color-text-tertiary);
46
50
  font-variant-numeric: tabular-nums;
47
51
  }
52
+
53
+ } /* @layer rift.components */
@@ -4,6 +4,10 @@
4
4
  what it shows, and the key to its markers.
5
5
  ============================================ */
6
6
 
7
+ @layer rift.tokens, rift.preset, rift.components;
8
+
9
+ @layer rift.components {
10
+
7
11
  /* Base */
8
12
 
9
13
  .ds-map-legend {
@@ -86,3 +90,5 @@
86
90
  color: var(--color-text-secondary);
87
91
  margin: 0;
88
92
  }
93
+
94
+ } /* @layer rift.components */
@@ -7,6 +7,10 @@
7
7
  spaced so each stands for one character.
8
8
  ============================================ */
9
9
 
10
+ @layer rift.tokens, rift.preset, rift.components;
11
+
12
+ @layer rift.components {
13
+
10
14
  .ds-masked-input .ds-input__field {
11
15
  font-variant-numeric: tabular-nums;
12
16
  }
@@ -14,3 +18,5 @@
14
18
  .ds-masked-input--concealed .ds-input__field {
15
19
  letter-spacing: var(--font-overline-letter-spacing);
16
20
  }
21
+
22
+ } /* @layer rift.components */
@@ -4,6 +4,10 @@
4
4
  optional featured card
5
5
  ============================================ */
6
6
 
7
+ @layer rift.tokens, rift.preset, rift.components;
8
+
9
+ @layer rift.components {
10
+
7
11
  /* Base: the floating glass shell, CommandPalette's surface. The panel is a
8
12
  shallow strip that lands on whatever the page opens with, display type
9
13
  most of it, so its blur runs harder than the shell's 24px: at that
@@ -271,3 +275,5 @@
271
275
  min-height: 50cqw;
272
276
  }
273
277
  }
278
+
279
+ } /* @layer rift.components */
@@ -4,6 +4,10 @@
4
4
  `@` for entities, `/` for skills.
5
5
  ============================================ */
6
6
 
7
+ @layer rift.tokens, rift.preset, rift.components;
8
+
9
+ @layer rift.components {
10
+
7
11
  /* ============================================
8
12
  TAG
9
13
  Composer lays this exact tag over the text of its textarea, so nothing
@@ -193,3 +197,5 @@
193
197
  letter-spacing: var(--font-paragraph-sm-letter-spacing);
194
198
  color: var(--color-text-tertiary);
195
199
  }
200
+
201
+ } /* @layer rift.components */
@@ -3,7 +3,7 @@ import { jsxs, jsx, Fragment } from "react/jsx-runtime";
3
3
  import React, { useRef, useLayoutEffect } from "react";
4
4
  import "../../fonts/material-symbols.css";
5
5
  import "./Mention.css";
6
- import { mentionOptionId, mentionListboxId, splitMentions } from "./mentions.js";
6
+ import { splitMentions, mentionOptionId, mentionListboxId } from "./mentions.js";
7
7
  import { filterMentionItems, getMentionQuery, insertMention } from "./mentions.js";
8
8
  import { mirrorClass } from "../../behaviors/direction.js";
9
9
  const Mention = React.forwardRef(
@@ -5,6 +5,10 @@
5
5
  menu is a DropdownMenu, whose panel is unchanged.
6
6
  ============================================ */
7
7
 
8
+ @layer rift.tokens, rift.preset, rift.components;
9
+
10
+ @layer rift.components {
11
+
8
12
  /* Base: Toolbar's pill shell, so a menu bar and a toolbar sitting in the
9
13
  same chrome read as one family. Padding clears the focus ring's reach. */
10
14
 
@@ -80,3 +84,5 @@
80
84
  height: calc(var(--control-height-compact) - var(--padding-200));
81
85
  padding-inline: var(--padding-200);
82
86
  }
87
+
88
+ } /* @layer rift.components */
@@ -10,6 +10,10 @@
10
10
  timer inside the row.
11
11
  ============================================ */
12
12
 
13
+ @layer rift.tokens, rift.preset, rift.components;
14
+
15
+ @layer rift.components {
16
+
13
17
  .ds-message-actions {
14
18
  display: flex;
15
19
  align-items: center;
@@ -91,3 +95,5 @@
91
95
  .ds-message-actions .material-symbols-rounded {
92
96
  color: inherit;
93
97
  }
98
+
99
+ } /* @layer rift.components */
@@ -11,6 +11,10 @@
11
11
  shell, so cards read the same across surfaces.
12
12
  ============================================ */
13
13
 
14
+ @layer rift.tokens, rift.preset, rift.components;
15
+
16
+ @layer rift.components {
17
+
14
18
  .ds-message-card {
15
19
  display: flex;
16
20
  flex-direction: column;
@@ -181,3 +185,5 @@
181
185
  .ds-message-card .material-symbols-rounded {
182
186
  color: inherit;
183
187
  }
188
+
189
+ } /* @layer rift.components */
@@ -3,6 +3,10 @@
3
3
  Level indicator for a known quantity
4
4
  ============================================ */
5
5
 
6
+ @layer rift.tokens, rift.preset, rift.components;
7
+
8
+ @layer rift.components {
9
+
6
10
  .ds-meter {
7
11
  display: flex;
8
12
  flex-direction: column;
@@ -96,3 +100,5 @@
96
100
  .ds-meter--neutral .ds-meter__fill {
97
101
  background-color: var(--color-status-neutral-border);
98
102
  }
103
+
104
+ } /* @layer rift.components */
@@ -9,6 +9,10 @@
9
9
  the send button keeps the only action colour.
10
10
  ============================================ */
11
11
 
12
+ @layer rift.tokens, rift.preset, rift.components;
13
+
14
+ @layer rift.components {
15
+
12
16
  .ds-model-picker {
13
17
  position: relative;
14
18
  display: inline-flex;
@@ -214,3 +218,5 @@
214
218
  .ds-model-picker--compact .ds-model-picker__trigger {
215
219
  padding-inline-end: var(--padding-200);
216
220
  }
221
+
222
+ } /* @layer rift.components */
@@ -5,6 +5,10 @@
5
5
  Click the preview to replay one-shot demos.
6
6
  ============================================ */
7
7
 
8
+ @layer rift.tokens, rift.preset, rift.components;
9
+
10
+ @layer rift.components {
11
+
8
12
  .ds-motion-swatch {
9
13
  /* Layout */
10
14
  display: flex;
@@ -174,3 +178,5 @@
174
178
  text-align: center;
175
179
  overflow-wrap: anywhere;
176
180
  }
181
+
182
+ } /* @layer rift.components */
@@ -3,6 +3,10 @@
3
3
  Top navigation bar using ButtonGroup
4
4
  ============================================ */
5
5
 
6
+ @layer rift.tokens, rift.preset, rift.components;
7
+
8
+ @layer rift.components {
9
+
6
10
  .ds-nav {
7
11
  display: flex;
8
12
  align-items: center;
@@ -49,3 +53,5 @@
49
53
  flex-shrink: 0;
50
54
  flex-wrap: nowrap;
51
55
  }
56
+
57
+ } /* @layer rift.components */
@@ -7,6 +7,10 @@
7
7
  toggle, and the expand animation.
8
8
  ============================================ */
9
9
 
10
+ @layer rift.tokens, rift.preset, rift.components;
11
+
12
+ @layer rift.components {
13
+
10
14
  .ds-nav-list {
11
15
  /* How far a row's text sits in from the row's own edge (the rows are
12
16
  compact tertiary Buttons, the headings share their inset). A host that
@@ -350,3 +354,5 @@
350
354
  border-radius: var(--radius-pill);
351
355
  background: var(--color-bg-container-border);
352
356
  }
357
+
358
+ } /* @layer rift.components */
@@ -9,6 +9,10 @@
9
9
  dropped from a bell icon or inline on a page.
10
10
  ============================================ */
11
11
 
12
+ @layer rift.tokens, rift.preset, rift.components;
13
+
14
+ @layer rift.components {
15
+
12
16
  .ds-notification-center {
13
17
  display: flex;
14
18
  flex-direction: column;
@@ -265,3 +269,5 @@
265
269
  .ds-notification-center .material-symbols-rounded {
266
270
  color: inherit;
267
271
  }
272
+
273
+ } /* @layer rift.components */
@@ -3,6 +3,10 @@
3
3
  Numeric field with stepper buttons and clamping
4
4
  ============================================ */
5
5
 
6
+ @layer rift.tokens, rift.preset, rift.components;
7
+
8
+ @layer rift.components {
9
+
6
10
  /* Base */
7
11
 
8
12
  .ds-numberinput {
@@ -161,3 +165,5 @@
161
165
  .ds-numberinput .material-symbols-rounded {
162
166
  color: inherit;
163
167
  }
168
+
169
+ } /* @layer rift.components */
@@ -11,6 +11,10 @@
11
11
  right-to-left context.
12
12
  ============================================ */
13
13
 
14
+ @layer rift.tokens, rift.preset, rift.components;
15
+
16
+ @layer rift.components {
17
+
14
18
  /* Base */
15
19
  .ds-org-chart {
16
20
  min-width: 0;
@@ -141,3 +145,5 @@
141
145
  letter-spacing: var(--font-caption-letter-spacing);
142
146
  color: var(--color-text-tertiary);
143
147
  }
148
+
149
+ } /* @layer rift.components */
@@ -7,6 +7,10 @@
7
7
  text by the room it has, never the viewport.
8
8
  ============================================ */
9
9
 
10
+ @layer rift.tokens, rift.preset, rift.components;
11
+
12
+ @layer rift.components {
13
+
10
14
  /* Base */
11
15
  .ds-page-header {
12
16
  container-type: inline-size;
@@ -72,3 +76,5 @@
72
76
  flex: 1 1 auto;
73
77
  }
74
78
  }
79
+
80
+ } /* @layer rift.components */
@@ -3,6 +3,10 @@
3
3
  Page navigation for long datasets
4
4
  ============================================ */
5
5
 
6
+ @layer rift.tokens, rift.preset, rift.components;
7
+
8
+ @layer rift.components {
9
+
6
10
  .ds-pagination {
7
11
  display: inline-flex;
8
12
  align-items: center;
@@ -206,3 +210,5 @@
206
210
  grid-column: 1;
207
211
  }
208
212
  }
213
+
214
+ } /* @layer rift.components */
@@ -3,6 +3,10 @@
3
3
  The plain dashboard surface
4
4
  ============================================ */
5
5
 
6
+ @layer rift.tokens, rift.preset, rift.components;
7
+
8
+ @layer rift.components {
9
+
6
10
  .ds-panel {
7
11
  display: flex;
8
12
  flex-direction: column;
@@ -31,3 +35,5 @@
31
35
  .ds-panel--flush {
32
36
  padding: 0;
33
37
  }
38
+
39
+ } /* @layer rift.components */
@@ -3,6 +3,10 @@
3
3
  Segmented one-time-code input
4
4
  ============================================ */
5
5
 
6
+ @layer rift.tokens, rift.preset, rift.components;
7
+
8
+ @layer rift.components {
9
+
6
10
  /* Base — the Field wrapper carries the root class */
7
11
  .ds-pininput {
8
12
  display: flex;
@@ -90,3 +94,5 @@
90
94
  color: var(--color-input-text-disabled);
91
95
  cursor: not-allowed;
92
96
  }
97
+
98
+ } /* @layer rift.components */
@@ -3,6 +3,10 @@
3
3
  A generated character mark, drawn from a name
4
4
  ============================================ */
5
5
 
6
+ @layer rift.tokens, rift.preset, rift.components;
7
+
8
+ @layer rift.components {
9
+
6
10
  /* Base — the character rides the icon scale, so it seats wherever an icon
7
11
  does. A host that already sets --icon-size on its icon seat is matched by
8
12
  the size classes below, which set the same variable. */
@@ -77,3 +81,5 @@
77
81
  border-radius: var(--radius-200);
78
82
  background-color: color-mix(in srgb, var(--ds-pixel-avatar-ink) 16%, transparent);
79
83
  }
84
+
85
+ } /* @layer rift.components */
@@ -3,6 +3,10 @@
3
3
  Contextual overlay panel
4
4
  ============================================ */
5
5
 
6
+ @layer rift.tokens, rift.preset, rift.components;
7
+
8
+ @layer rift.components {
9
+
6
10
  .ds-popover {
7
11
  position: relative;
8
12
  display: inline-flex;
@@ -118,3 +122,5 @@
118
122
  border-color: var(--color-input-border-primary);
119
123
  border-radius: var(--radius-300);
120
124
  }
125
+
126
+ } /* @layer rift.components */
@@ -3,6 +3,10 @@
3
3
  Displays completion progress as a horizontal bar
4
4
  ============================================ */
5
5
 
6
+ @layer rift.tokens, rift.preset, rift.components;
7
+
8
+ @layer rift.components {
9
+
6
10
  .ds-progress-bar {
7
11
  display: flex;
8
12
  align-items: center;
@@ -58,3 +62,5 @@
58
62
  .ds-progress-bar__fill {
59
63
  background-color: var(--color-core-accent-mint);
60
64
  }
65
+
66
+ } /* @layer rift.components */
@@ -3,6 +3,10 @@
3
3
  A backdrop blur that dissolves along one edge
4
4
  ============================================ */
5
5
 
6
+ @layer rift.tokens, rift.preset, rift.components;
7
+
8
+ @layer rift.components {
9
+
6
10
  /* Why a stack, and why masks: a single backdrop-filter is uniform across its
7
11
  whole box, so a tint that fades to transparent still ends in a hard line
8
12
  where the blur stops. A mask-image multiplies both the layer's paint and
@@ -100,3 +104,5 @@
100
104
  .ds-progressive-blur--tinted::after {
101
105
  opacity: 1;
102
106
  }
107
+
108
+ } /* @layer rift.components */
@@ -5,6 +5,10 @@
5
5
  wraps for empty-state hero placements.
6
6
  ============================================ */
7
7
 
8
+ @layer rift.tokens, rift.preset, rift.components;
9
+
10
+ @layer rift.components {
11
+
8
12
  .ds-prompt-suggestions {
9
13
  display: flex;
10
14
  gap: var(--gap-200);
@@ -546,3 +550,4 @@
546
550
  box-shadow: none;
547
551
  }
548
552
 
553
+ } /* @layer rift.components */