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
  Date input with calendar icon and label
4
4
  ============================================ */
5
5
 
6
+ @layer rift.tokens, rift.preset, rift.components;
7
+
8
+ @layer rift.components {
9
+
6
10
  .ds-date-input {
7
11
  display: flex;
8
12
  flex-direction: column;
@@ -151,3 +155,5 @@
151
155
  .ds-date-input--compact .ds-date-input__field {
152
156
  padding-inline-start: calc(var(--padding-200) + 20px + var(--gap-200)); /* 8px + 20px icon + 8px gap */
153
157
  }
158
+
159
+ } /* @layer rift.components */
@@ -3,6 +3,10 @@
3
3
  Inline calendar with month navigation
4
4
  ============================================ */
5
5
 
6
+ @layer rift.tokens, rift.preset, rift.components;
7
+
8
+ @layer rift.components {
9
+
6
10
  .ds-date-picker {
7
11
  display: inline-flex;
8
12
  flex-direction: column;
@@ -227,3 +231,5 @@
227
231
  opacity: 0.4;
228
232
  pointer-events: none;
229
233
  }
234
+
235
+ } /* @layer rift.components */
@@ -10,6 +10,10 @@
10
10
  chips above, which wrap.
11
11
  ============================================ */
12
12
 
13
+ @layer rift.tokens, rift.preset, rift.components;
14
+
15
+ @layer rift.components {
16
+
13
17
  /* Layout */
14
18
  .ds-date-range-picker {
15
19
  max-inline-size: 100%;
@@ -90,3 +94,5 @@
90
94
  .ds-date-picker__gridcell:has(> .ds-date-range-picker__cell--preview-end):dir(rtl) {
91
95
  background: linear-gradient(to right, transparent 50%, var(--color-action-passive-bg-active) 50%); /* ds-allow(physical): the right-to-left twin of the rule above */
92
96
  }
97
+
98
+ } /* @layer rift.components */
@@ -7,6 +7,10 @@
7
7
  warning, then error, and error once it passes.
8
8
  ============================================ */
9
9
 
10
+ @layer rift.tokens, rift.preset, rift.components;
11
+
12
+ @layer rift.components {
13
+
10
14
  /* Base */
11
15
  .ds-deadline {
12
16
  display: inline-flex;
@@ -80,3 +84,5 @@
80
84
  .ds-deadline--text.ds-deadline--overdue {
81
85
  font-weight: var(--font-paragraph-emphasis-weight);
82
86
  }
87
+
88
+ } /* @layer rift.components */
@@ -7,6 +7,10 @@
7
7
  to go.
8
8
  ============================================ */
9
9
 
10
+ @layer rift.tokens, rift.preset, rift.components;
11
+
12
+ @layer rift.components {
13
+
10
14
  /* Base */
11
15
 
12
16
  .ds-decision-row {
@@ -44,3 +48,5 @@
44
48
  .ds-decision-row .ds-widget-row__actions {
45
49
  margin-inline-start: auto;
46
50
  }
51
+
52
+ } /* @layer rift.components */
@@ -8,6 +8,10 @@
8
8
  never by the viewport.
9
9
  ============================================ */
10
10
 
11
+ @layer rift.tokens, rift.preset, rift.components;
12
+
13
+ @layer rift.components {
14
+
11
15
  /* Frame */
12
16
  .ds-description-list__frame {
13
17
  container-type: inline-size;
@@ -210,3 +214,5 @@
210
214
  grid-template-columns: repeat(min(var(--ds-description-list-columns, 2), 2), minmax(0, 1fr));
211
215
  }
212
216
  }
217
+
218
+ } /* @layer rift.components */
@@ -3,6 +3,10 @@
3
3
  General-purpose modal with backdrop overlay
4
4
  ============================================ */
5
5
 
6
+ @layer rift.tokens, rift.preset, rift.components;
7
+
8
+ @layer rift.components {
9
+
6
10
  .ds-dialog {
7
11
  position: fixed;
8
12
  inset: 0;
@@ -152,3 +156,5 @@
152
156
  margin: var(--padding-400);
153
157
  }
154
158
  }
159
+
160
+ } /* @layer rift.components */
@@ -3,6 +3,10 @@
3
3
  Thin rule separating stacked content
4
4
  ============================================ */
5
5
 
6
+ @layer rift.tokens, rift.preset, rift.components;
7
+
8
+ @layer rift.components {
9
+
6
10
  /* Base — plain horizontal <hr> */
7
11
  .ds-divider {
8
12
  border: none;
@@ -98,3 +102,5 @@
98
102
  margin-block: 0;
99
103
  margin-inline: var(--gap-500); /* 20px */
100
104
  }
105
+
106
+ } /* @layer rift.components */
@@ -4,6 +4,10 @@
4
4
  metadata line, upload progress, optional remove.
5
5
  ============================================ */
6
6
 
7
+ @layer rift.tokens, rift.preset, rift.components;
8
+
9
+ @layer rift.components {
10
+
7
11
  .ds-document-chip {
8
12
  /* Accent indirection — the error modifier repoints one variable
9
13
  instead of restyling each part */
@@ -224,3 +228,5 @@
224
228
  .ds-document-chip:has(> .ds-document-chip__remove) {
225
229
  padding-inline-end: var(--padding-200);
226
230
  }
231
+
232
+ } /* @layer rift.components */
@@ -8,6 +8,10 @@
8
8
  control-height scale, or its container's.
9
9
  ============================================ */
10
10
 
11
+ @layer rift.tokens, rift.preset, rift.components;
12
+
13
+ @layer rift.components {
14
+
11
15
  /* Base */
12
16
  .ds-document-viewer {
13
17
  display: flex;
@@ -186,3 +190,5 @@
186
190
  line-height: var(--font-paragraph-line-height);
187
191
  color: var(--color-text-secondary);
188
192
  }
193
+
194
+ } /* @layer rift.components */
@@ -3,6 +3,10 @@
3
3
  Edge-anchored modal panel that slides in
4
4
  ============================================ */
5
5
 
6
+ @layer rift.tokens, rift.preset, rift.components;
7
+
8
+ @layer rift.components {
9
+
6
10
  .ds-drawer {
7
11
  position: fixed;
8
12
  inset: 0;
@@ -271,3 +275,5 @@
271
275
  transition: none;
272
276
  }
273
277
  }
278
+
279
+ } /* @layer rift.components */
@@ -10,6 +10,10 @@
10
10
  tick beside a label, not a leading icon.
11
11
  ============================================ */
12
12
 
13
+ @layer rift.tokens, rift.preset, rift.components;
14
+
15
+ @layer rift.components {
16
+
13
17
  .ds-chosen-mark {
14
18
  --icon-size: var(--icon-size-500);
15
19
  flex-shrink: 0;
@@ -17,3 +21,5 @@
17
21
  color: var(--color-action-primary-bg);
18
22
  line-height: 1;
19
23
  }
24
+
25
+ } /* @layer rift.components */
@@ -3,6 +3,10 @@
3
3
  Custom select with menu, keyboard navigation
4
4
  ============================================ */
5
5
 
6
+ @layer rift.tokens, rift.preset, rift.components;
7
+
8
+ @layer rift.components {
9
+
6
10
  .ds-dropdown {
7
11
  display: flex;
8
12
  flex-direction: column;
@@ -320,3 +324,5 @@
320
324
  .ds-dropdown__option:has(.ds-chosen-mark) {
321
325
  padding-inline-end: var(--padding-200);
322
326
  }
327
+
328
+ } /* @layer rift.components */
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { jsx, jsxs } from "react/jsx-runtime";
2
+ import { jsxs, jsx } from "react/jsx-runtime";
3
3
  import React, { useState, useId, useRef, useEffect } from "react";
4
4
  import { useAnchoredPosition } from "../../behaviors/useAnchoredPosition.js";
5
5
  import { useLayer } from "../../behaviors/useLayer.js";
@@ -5,6 +5,10 @@
5
5
  Tokens aligned to Figma spec.
6
6
  ============================================ */
7
7
 
8
+ @layer rift.tokens, rift.preset, rift.components;
9
+
10
+ @layer rift.components {
11
+
8
12
  .ds-dropdown-menu {
9
13
  position: relative;
10
14
  display: inline-flex;
@@ -405,3 +409,5 @@
405
409
  .ds-dropdown-menu__panel--compact .ds-dropdown-menu__item--has-submenu {
406
410
  padding-inline-end: var(--padding-200);
407
411
  }
412
+
413
+ } /* @layer rift.components */
@@ -4,6 +4,10 @@
4
4
  that have nothing to show
5
5
  ============================================ */
6
6
 
7
+ @layer rift.tokens, rift.preset, rift.components;
8
+
9
+ @layer rift.components {
10
+
7
11
  .ds-empty-state {
8
12
  display: flex;
9
13
  flex-direction: column;
@@ -146,3 +150,5 @@
146
150
  .ds-empty-state .material-symbols-rounded:not(:where(.ds-empty-state__action *)) {
147
151
  color: inherit;
148
152
  }
153
+
154
+ } /* @layer rift.components */
@@ -4,6 +4,10 @@
4
4
  and a label. Used on Icons and Logos pages.
5
5
  ============================================ */
6
6
 
7
+ @layer rift.tokens, rift.preset, rift.components;
8
+
9
+ @layer rift.components {
10
+
7
11
  .ds-entity-card {
8
12
  /* Layout */
9
13
  display: flex;
@@ -67,3 +71,5 @@
67
71
  text-align: center;
68
72
  word-break: break-word;
69
73
  }
74
+
75
+ } /* @layer rift.components */
@@ -5,6 +5,10 @@
5
5
  at rest, the passive wash on hover and focus at --radius-200).
6
6
  ============================================ */
7
7
 
8
+ @layer rift.tokens, rift.preset, rift.components;
9
+
10
+ @layer rift.components {
11
+
8
12
  .ds-entity-switcher {
9
13
  display: flex;
10
14
  width: 100%;
@@ -339,3 +343,5 @@
339
343
  font-size: var(--font-paragraph-sm-size);
340
344
  line-height: var(--font-paragraph-sm-line-height);
341
345
  }
346
+
347
+ } /* @layer rift.components */
@@ -5,6 +5,10 @@
5
5
  heading and a list of links, one per error.
6
6
  ============================================ */
7
7
 
8
+ @layer rift.tokens, rift.preset, rift.components;
9
+
10
+ @layer rift.components {
11
+
8
12
  /* Base */
9
13
  .ds-error-summary {
10
14
  display: flex;
@@ -92,3 +96,5 @@
92
96
  outline: var(--border-050) solid var(--color-action-primary-bg);
93
97
  outline-offset: var(--border-050);
94
98
  }
99
+
100
+ } /* @layer rift.components */
@@ -5,6 +5,7 @@ import { useLocale } from "../../behaviors/LocaleProvider.js";
5
5
  import { formatNumber } from "../../behaviors/locale.js";
6
6
  import "../../fonts/material-symbols.css";
7
7
  import "./ErrorSummary.css";
8
+ import { fieldErrorsFrom } from "./fieldErrors.js";
8
9
  const DEFAULT_TITLE_LABEL = (count, formatted) => count === 1 ? "There is a problem" : `There are ${formatted} problems`;
9
10
  function ErrorSummary({
10
11
  errors,
@@ -66,5 +67,6 @@ function ErrorSummary({
66
67
  );
67
68
  }
68
69
  export {
69
- ErrorSummary
70
+ ErrorSummary,
71
+ fieldErrorsFrom
70
72
  };
@@ -11,6 +11,10 @@
11
11
  for actions.
12
12
  ============================================ */
13
13
 
14
+ @layer rift.tokens, rift.preset, rift.components;
15
+
16
+ @layer rift.components {
17
+
14
18
  .ds-event-calendar {
15
19
  display: flex;
16
20
  flex-direction: column;
@@ -628,3 +632,5 @@ button.ds-event-calendar__agenda-event:focus-visible {
628
632
  width: var(--gap-200);
629
633
  height: var(--gap-200);
630
634
  }
635
+
636
+ } /* @layer rift.components */
@@ -9,6 +9,10 @@
9
9
  changes no spacing.
10
10
  ============================================ */
11
11
 
12
+ @layer rift.tokens, rift.preset, rift.components;
13
+
14
+ @layer rift.components {
15
+
12
16
  /* ============================================
13
17
  LABEL
14
18
  ============================================ */
@@ -90,3 +94,5 @@
90
94
  font-size: var(--font-paragraph-sm-size);
91
95
  line-height: var(--font-paragraph-sm-line-height);
92
96
  }
97
+
98
+ } /* @layer rift.components */
@@ -4,6 +4,10 @@
4
4
  Pass onClick for a zoomable (lightbox) figure.
5
5
  ============================================ */
6
6
 
7
+ @layer rift.tokens, rift.preset, rift.components;
8
+
9
+ @layer rift.components {
10
+
7
11
  .ds-figure {
8
12
  margin: 0;
9
13
  border-radius: var(--radius-300);
@@ -95,3 +99,5 @@
95
99
  .ds-figure__verdict {
96
100
  flex: none;
97
101
  }
102
+
103
+ } /* @layer rift.components */
@@ -3,6 +3,10 @@
3
3
  Click-or-drop zone plus a controlled file list
4
4
  ============================================ */
5
5
 
6
+ @layer rift.tokens, rift.preset, rift.components;
7
+
8
+ @layer rift.components {
9
+
6
10
  .ds-file-input {
7
11
  display: flex;
8
12
  flex-direction: column;
@@ -288,3 +292,5 @@
288
292
  .ds-file-input__file {
289
293
  padding-inline-start: var(--padding-200);
290
294
  }
295
+
296
+ } /* @layer rift.components */
@@ -6,6 +6,10 @@
6
6
  convention from Chip's selected state.
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-filter-bar {
@@ -139,7 +143,9 @@
139
143
  list-style: none;
140
144
  border: var(--border-025) solid var(--color-bg-container-border);
141
145
  border-radius: var(--radius-300);
142
- background-color: var(--color-bg-container-primary);
146
+ /* The menu fill, opaque in every theme: the container fill is translucent
147
+ in dark mode, and the page behind would read through the options. */
148
+ background-color: var(--color-bg-page-primary);
143
149
  box-shadow: var(--shadow-floating);
144
150
  }
145
151
 
@@ -208,3 +214,5 @@
208
214
  .ds-filter-bar__chip:has(.ds-filter-bar__icon) {
209
215
  padding-inline-start: var(--padding-200);
210
216
  }
217
+
218
+ } /* @layer rift.components */
@@ -6,6 +6,10 @@
6
6
  aside layout stacks by the room it has.
7
7
  ============================================ */
8
8
 
9
+ @layer rift.tokens, rift.preset, rift.components;
10
+
11
+ @layer rift.components {
12
+
9
13
  /* Base */
10
14
  .ds-form-section {
11
15
  container-type: inline-size;
@@ -68,3 +72,5 @@
68
72
  gap: var(--gap-1000);
69
73
  }
70
74
  }
75
+
76
+ } /* @layer rift.components */
@@ -9,9 +9,15 @@
9
9
  only what the shared styles cannot reach.
10
10
  ============================================ */
11
11
 
12
+ @layer rift.tokens, rift.preset, rift.components;
13
+
14
+ @layer rift.components {
15
+
12
16
  /* The stage-name labels draw as SVG text, which inherits no typography from
13
17
  the shared chart classes — pin them to the family's primary face. */
14
18
 
15
19
  .ds-funnel-chart .recharts-label-list text {
16
20
  font-family: var(--font-family-primary);
17
21
  }
22
+
23
+ } /* @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): time runs left to right on the chart axis in every direction, like the other charts' axes; bars are placed by date in screen percentages */
2
6
  /* ============================================
3
7
  GANTT CHART COMPONENT
@@ -312,3 +316,5 @@ button.ds-gantt__bar:focus-visible {
312
316
  --ds-gantt-label-width: 120px;
313
317
  }
314
318
  }
319
+
320
+ } /* @layer rift.components */
@@ -9,6 +9,10 @@
9
9
  property swap.
10
10
  ============================================ */
11
11
 
12
+ @layer rift.tokens, rift.preset, rift.components;
13
+
14
+ @layer rift.components {
15
+
12
16
  /* Base — the dial centres in the shared chart body */
13
17
 
14
18
  .ds-gauge__body {
@@ -118,3 +122,5 @@
118
122
  .ds-gauge--neutral {
119
123
  color: var(--color-text-secondary);
120
124
  }
125
+
126
+ } /* @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 the globe, whose sides are geography */
2
6
  /* ============================================
3
7
  GLOBE COMPONENT
@@ -184,3 +188,5 @@
184
188
  .ds-globe__callout[data-side='left'] {
185
189
  transform: translate(-100%, -100%);
186
190
  }
191
+
192
+ } /* @layer rift.components */
@@ -9,6 +9,10 @@
9
9
  cannot add an extra column on a wide row.
10
10
  ============================================ */
11
11
 
12
+ @layer rift.tokens, rift.preset, rift.components;
13
+
14
+ @layer rift.components {
15
+
12
16
  /* Base */
13
17
  .ds-grid {
14
18
  --ds-grid-gap-resolved: var(--ds-grid-gap, var(--gap-500));
@@ -50,3 +54,5 @@
50
54
  .ds-grid--align-end {
51
55
  align-items: end;
52
56
  }
57
+
58
+ } /* @layer rift.components */
@@ -8,6 +8,10 @@
8
8
  either tier tones every Heading with it.
9
9
  ============================================ */
10
10
 
11
+ @layer rift.tokens, rift.preset, rift.components;
12
+
13
+ @layer rift.components {
14
+
11
15
  /* Base */
12
16
  .ds-heading {
13
17
  margin: 0;
@@ -170,3 +174,5 @@
170
174
  opacity: 1;
171
175
  }
172
176
  }
177
+
178
+ } /* @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): the entrance nudge points away from the side the anchored behaviour placed the card on, a screen side */
2
6
  /* ============================================
3
7
  HOVER CARD COMPONENT
@@ -104,3 +108,5 @@
104
108
  transform: translateX(-4px);
105
109
  }
106
110
  }
111
+
112
+ } /* @layer rift.components */
@@ -6,6 +6,10 @@
6
6
  --icon-size, never as a font size.
7
7
  ============================================ */
8
8
 
9
+ @layer rift.tokens, rift.preset, rift.components;
10
+
11
+ @layer rift.components {
12
+
9
13
  /* Base */
10
14
  .ds-icon {
11
15
  display: inline-flex;
@@ -53,3 +57,5 @@
53
57
  .ds-icon--tile.ds-icon--default {
54
58
  color: var(--color-text-primary);
55
59
  }
60
+
61
+ } /* @layer rift.components */
@@ -3,6 +3,10 @@
3
3
  A button holding a single icon, shaped by the theme's button radius
4
4
  ============================================ */
5
5
 
6
+ @layer rift.tokens, rift.preset, rift.components;
7
+
8
+ @layer rift.components {
9
+
6
10
  .ds-icon-button {
7
11
  /* Layout */
8
12
  display: inline-flex;
@@ -437,3 +441,5 @@
437
441
  height: 8px;
438
442
  padding: 0;
439
443
  }
444
+
445
+ } /* @layer rift.components */
@@ -62,6 +62,12 @@ type IconButtonOwnProps = {
62
62
  tooltip?: string | false;
63
63
  /** Which side the tooltip opens on. `start` and `end` follow the reading direction. */
64
64
  tooltipPosition?: 'top' | 'bottom' | 'left' | 'right' | 'start' | 'end';
65
+ /**
66
+ * The button's native type. Defaults to `button`, so a button inside a form
67
+ * never submits it by accident; set `submit` on the form's submit button, or
68
+ * `reset`. Ignored when `href` renders a link.
69
+ */
70
+ type?: 'button' | 'submit' | 'reset';
65
71
  /** Optional href — renders as <a> instead of <button> */
66
72
  href?: string;
67
73
  /** Optional target attribute for links */
@@ -91,7 +97,7 @@ type IconButtonOwnProps = {
91
97
  */
92
98
  linkComponent?: LinkComponent;
93
99
  };
94
- export interface IconButtonProps extends IconButtonOwnProps, Omit<React.ComponentPropsWithoutRef<'button'>, keyof IconButtonOwnProps | 'type'> {
100
+ export interface IconButtonProps extends IconButtonOwnProps, Omit<React.ComponentPropsWithoutRef<'button'>, keyof IconButtonOwnProps> {
95
101
  }
96
102
  /**
97
103
  * Icon button component.
@@ -30,6 +30,7 @@ const IconButton = React.forwardRef(
30
30
  label,
31
31
  tooltip,
32
32
  tooltipPosition = "top",
33
+ type = "button",
33
34
  href,
34
35
  target,
35
36
  rel,
@@ -81,7 +82,7 @@ const IconButton = React.forwardRef(
81
82
  {
82
83
  ...rest,
83
84
  ref,
84
- type: "button",
85
+ type,
85
86
  className: classes,
86
87
  disabled: isDisabled || isLoading,
87
88
  "aria-busy": isLoading || void 0,
@@ -1,3 +1,7 @@
1
+ @layer rift.tokens, rift.preset, rift.components;
2
+
3
+ @layer rift.components {
4
+
1
5
  /* ds-allow-file(physical): the divider and the before and after images sit by the pointer's screen position, and the two images keep their sides */
2
6
  /* ============================================
3
7
  IMAGE COMPARE COMPONENT
@@ -111,3 +115,5 @@
111
115
  outline: 2px solid var(--color-action-primary-bg);
112
116
  outline-offset: 2px;
113
117
  }
118
+
119
+ } /* @layer rift.components */