rift-ds 1.34.0 → 1.36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -3
- package/behaviors/chat-card.css +6 -0
- package/behaviors/direction.css +6 -0
- package/behaviors/locale.d.ts +9 -0
- package/behaviors/locale.js +2 -0
- package/behaviors/shell.css +6 -0
- package/behaviors/shortcuts.js +2 -2
- package/behaviors/visually-hidden.css +6 -0
- package/bin/templates/blocks/app/dashboard/page.tsx +1 -1
- package/bin/templates/blocks/app/settings/ProfileForm.tsx +1 -1
- package/bin/templates/blocks/app/sign-in/page.tsx +3 -3
- package/bin/templates/blocks/components/blocks/AppShell.module.css +10 -6
- package/chat/ChatAgentPane.css +6 -0
- package/chat/ChatTabs.js +1 -1
- package/chat/ChatWidget.css +6 -0
- package/chat/ChatWidget.d.ts +2 -2
- package/chat/ChatWidget.js +1 -1
- package/chat/DemoWelcome.js +2 -2
- package/chat/FollowupSuggestions.js +1 -1
- package/chat/demo.css +6 -0
- package/chat/queries.js +1 -1
- package/chat/selection.css +6 -0
- package/components/Accordion/Accordion.css +6 -0
- package/components/ActionBar/ActionBar.css +84 -0
- package/components/ActionBar/ActionBar.d.ts +40 -0
- package/components/ActionBar/ActionBar.js +29 -0
- package/components/ActionCard/ActionCard.css +6 -0
- package/components/ActionReadout/ActionReadout.css +6 -0
- package/components/AgentPlan/AgentPlan.css +6 -0
- package/components/AgentRail/AgentRail.css +6 -0
- package/components/AgentStatus/AgentStatus.css +12 -7
- package/components/AiButton/AiButton.css +17 -11
- package/components/AiButton/AiButton.js +1 -1
- package/components/Alert/Alert.css +22 -0
- package/components/Alert/Alert.d.ts +2 -2
- package/components/Alert/Alert.js +3 -1
- package/components/AlertDialog/AlertDialog.css +6 -0
- package/components/AnchorNav/AnchorNav.css +6 -0
- package/components/AnimatedNumber/AnimatedNumber.css +5 -0
- package/components/AppLayout/AppLayout.css +6 -0
- package/components/AppSidebar/AppSidebar.css +159 -5
- package/components/AppSidebar/AppSidebar.d.ts +13 -1
- package/components/AppSidebar/AppSidebar.js +17 -7
- package/components/ArtifactCard/ArtifactCard.css +6 -0
- package/components/ArtifactPanel/ArtifactPanel.css +6 -0
- package/components/Attachment/Attachment.css +6 -0
- package/components/Attachment/AttachmentGroup.js +4 -1
- package/components/Avatar/Avatar.css +6 -0
- package/components/AvatarGroup/AvatarGroup.css +6 -0
- package/components/BackToTop/BackToTop.css +6 -0
- package/components/Badge/Badge.css +6 -0
- package/components/Banner/Banner.css +6 -0
- package/components/BentoTile/BentoTile.css +6 -0
- package/components/BottomNav/BottomNav.css +6 -0
- package/components/Breadcrumb/Breadcrumb.css +6 -0
- package/components/Button/Button.css +6 -0
- package/components/Button/Button.d.ts +7 -1
- package/components/Button/Button.js +2 -1
- package/components/ButtonGroup/ButtonGroup.css +6 -0
- package/components/Card/Card.css +6 -0
- package/components/CardStack/CardStack.css +5 -0
- package/components/Carousel/Carousel.css +6 -0
- package/components/Chart/Chart.css +9 -1
- package/components/ChatHeader/ChatHeader.css +6 -0
- package/components/ChatMarker/ChatMarker.css +6 -0
- package/components/ChatMessage/ChatMessage.css +6 -0
- package/components/ChatThread/ChatThread.css +6 -0
- package/components/ChatThread/ChatThread.d.ts +5 -1
- package/components/ChatThread/ChatThread.js +1 -1
- package/components/Checkbox/Checkbox.css +6 -0
- package/components/Checkbox/Checkbox.js +1 -1
- package/components/Checklist/Checklist.css +6 -0
- package/components/Chip/Chip.css +6 -0
- package/components/CodeBlock/CodeBlock.css +6 -0
- package/components/CodeDiff/CodeDiff.css +5 -0
- package/components/ColorPicker/ColorPicker.css +6 -0
- package/components/ColourSwatch/ColourSwatch.css +6 -0
- package/components/Combobox/Combobox.css +6 -0
- package/components/CommandPalette/CommandPalette.css +6 -0
- package/components/CommandPaletteTrigger/CommandPaletteTrigger.css +6 -0
- package/components/Composer/Composer.css +6 -0
- package/components/ContactCard/ContactCard.css +6 -0
- package/components/ContextMenu/ContextMenu.css +6 -0
- package/components/ContextMenu/ContextMenu.d.ts +5 -1
- package/components/ContextMenu/ContextMenu.js +2 -1
- package/components/ContributionGraph/ContributionGraph.css +6 -0
- package/components/ContributionGraph/ContributionGraph.d.ts +7 -1
- package/components/ContributionGraph/ContributionGraph.js +4 -18
- package/components/ContributionGraph/weeks.d.ts +8 -0
- package/components/ContributionGraph/weeks.js +25 -0
- package/components/CurrencyInput/CurrencyInput.css +6 -0
- package/components/DataTable/DataTable.css +6 -0
- package/components/DataTable/DataTable.js +7 -3
- package/components/DateInput/DateInput.css +6 -0
- package/components/DatePicker/DatePicker.css +6 -0
- package/components/DateRangePicker/DateRangePicker.css +6 -0
- package/components/Deadline/Deadline.css +6 -0
- package/components/DecisionRow/DecisionRow.css +6 -0
- package/components/DescriptionList/DescriptionList.css +6 -0
- package/components/Dialog/Dialog.css +6 -0
- package/components/Divider/Divider.css +6 -0
- package/components/DocumentChip/DocumentChip.css +6 -0
- package/components/DocumentChip/DocumentChip.js +1 -1
- package/components/DocumentViewer/DocumentViewer.css +6 -0
- package/components/Drawer/Drawer.css +6 -0
- package/components/Dropdown/ChosenMark.css +6 -0
- package/components/Dropdown/Dropdown.css +6 -0
- package/components/Dropdown/Dropdown.js +1 -1
- package/components/DropdownMenu/DropdownMenu.css +6 -0
- package/components/EmptyState/EmptyState.css +6 -0
- package/components/EntityCard/EntityCard.css +6 -0
- package/components/EntitySwitcher/EntitySwitcher.css +17 -3
- package/components/EntitySwitcher/EntitySwitcher.js +1 -1
- package/components/ErrorSummary/ErrorSummary.css +6 -0
- package/components/ErrorSummary/ErrorSummary.js +3 -1
- package/components/EventCalendar/EventCalendar.css +158 -0
- package/components/EventCalendar/EventCalendar.d.ts +50 -4
- package/components/EventCalendar/EventCalendar.js +154 -23
- package/components/EventCalendar/eventTime.d.ts +31 -0
- package/components/EventCalendar/eventTime.js +42 -0
- package/components/Field/Field.css +6 -0
- package/components/Figure/Figure.css +6 -0
- package/components/FileInput/FileInput.css +6 -0
- package/components/FileInput/FileInput.d.ts +12 -4
- package/components/FileInput/FileInput.js +27 -4
- package/components/FilterBar/FilterBar.css +9 -1
- package/components/FormSection/FormSection.css +6 -0
- package/components/FunnelChart/FunnelChart.css +6 -0
- package/components/GanttChart/GanttChart.css +6 -0
- package/components/Gauge/Gauge.css +6 -0
- package/components/Globe/Globe.css +6 -0
- package/components/Grid/Grid.css +6 -0
- package/components/Heading/Heading.css +6 -0
- package/components/HoverCard/HoverCard.css +6 -0
- package/components/Icon/Icon.css +6 -0
- package/components/IconButton/IconButton.css +6 -0
- package/components/IconButton/IconButton.d.ts +7 -1
- package/components/IconButton/IconButton.js +2 -1
- package/components/ImageCompare/ImageCompare.css +6 -0
- package/components/Input/Input.css +52 -4
- package/components/Input/Input.d.ts +8 -0
- package/components/Input/Input.js +3 -0
- package/components/Inspector/Inspector.css +6 -0
- package/components/Instructions/Instructions.css +6 -0
- package/components/InterruptCard/InterruptCard.css +6 -0
- package/components/Kbd/Kbd.css +6 -0
- package/components/LegendTile/LegendTile.css +6 -0
- package/components/Lightbox/Lightbox.css +6 -0
- package/components/Link/Link.css +9 -1
- package/components/LinkList/LinkList.css +6 -0
- package/components/List/List.css +6 -0
- package/components/MapCallout/MapCallout.css +6 -0
- package/components/MapLegend/MapLegend.css +6 -0
- package/components/MaskedInput/MaskedInput.css +6 -0
- package/components/MegaMenu/MegaMenu.css +6 -0
- package/components/Mention/Mention.css +6 -0
- package/components/Mention/Mention.js +1 -1
- package/components/Menubar/Menubar.css +6 -0
- package/components/MessageActions/MessageActions.css +6 -0
- package/components/MessageCard/MessageCard.css +6 -0
- package/components/Meter/Meter.css +6 -0
- package/components/ModelPicker/ModelPicker.css +6 -0
- package/components/MotionSwatch/MotionSwatch.css +6 -0
- package/components/Nav/Nav.css +6 -0
- package/components/NavList/NavList.css +6 -0
- package/components/NotificationCenter/NotificationCenter.css +6 -0
- package/components/NumberInput/NumberInput.css +6 -0
- package/components/OrgChart/OrgChart.css +6 -0
- package/components/PageHeader/PageHeader.css +6 -0
- package/components/Pagination/Pagination.css +6 -0
- package/components/Panel/Panel.css +6 -0
- package/components/PinInput/PinInput.css +6 -0
- package/components/PixelAvatar/PixelAvatar.css +6 -0
- package/components/Popover/Popover.css +6 -0
- package/components/Popover/Popover.d.ts +5 -1
- package/components/Popover/Popover.js +3 -1
- package/components/ProgressBar/ProgressBar.css +6 -0
- package/components/ProgressBar/ProgressBar.d.ts +5 -1
- package/components/ProgressBar/ProgressBar.js +1 -1
- package/components/ProgressiveBlur/ProgressiveBlur.css +6 -0
- package/components/PromptSuggestions/PromptSuggestions.css +5 -0
- package/components/PromptSuggestions/PromptSuggestions.d.ts +5 -1
- package/components/PromptSuggestions/PromptSuggestions.js +1 -1
- package/components/Prose/Prose.css +6 -0
- package/components/QuestionCard/QuestionCard.css +5 -0
- package/components/Quote/Quote.css +6 -0
- package/components/RadioButton/RadioButton.css +6 -0
- package/components/Rating/Rating.css +6 -0
- package/components/Reasoning/Reasoning.css +6 -0
- package/components/ResourceTimeline/ResourceTimeline.css +6 -0
- package/components/ResourceTimeline/ResourceTimeline.js +2 -2
- package/components/RichDropdown/RichDropdown.css +6 -0
- package/components/SectionTitle/SectionTitle.css +6 -0
- package/components/SegmentedControl/SegmentedControl.css +126 -3
- package/components/SegmentedControl/SegmentedControl.d.ts +9 -0
- package/components/SegmentedControl/SegmentedControl.js +11 -1
- package/components/SelectionCard/SelectionCard.css +6 -0
- package/components/ShaderField/ShaderField.css +6 -0
- package/components/ShaderField/ShaderField.js +2 -0
- package/components/ShaderScene/ShaderScene.css +6 -0
- package/components/ShaderScene/ShaderScene.d.ts +3 -3
- package/components/ShaderScene/scenes.d.ts +17 -0
- package/components/ShaderScene/scenes.js +175 -1
- package/components/SidebarPanel/SidebarPanel.css +6 -0
- package/components/SignaturePad/SignaturePad.css +6 -0
- package/components/SiteFooter/SiteFooter.css +6 -0
- package/components/SiteHeader/SiteHeader.css +6 -0
- package/components/SiteLayout/SiteLayout.css +6 -0
- package/components/Skeleton/Skeleton.css +6 -0
- package/components/Slider/Slider.css +6 -0
- package/components/SourceChip/SourceChip.css +6 -0
- package/components/SourceTrail/SourceTrail.css +6 -0
- package/components/SpacingSwatch/SpacingSwatch.css +6 -0
- package/components/Sparkline/Sparkline.css +6 -0
- package/components/Spinner/Spinner.css +6 -0
- package/components/SplitButton/SplitButton.css +6 -0
- package/components/SplitButton/SplitButton.d.ts +7 -1
- package/components/SplitButton/SplitButton.js +3 -1
- package/components/SplitPane/SplitPane.css +6 -0
- package/components/Stack/Stack.css +6 -0
- package/components/Stat/Stat.css +25 -1
- package/components/Stat/Stat.d.ts +5 -0
- package/components/Stat/Stat.js +9 -3
- package/components/StatusDot/StatusDot.css +6 -0
- package/components/Stepper/Stepper.css +6 -0
- package/components/StreamingText/StreamingText.css +6 -0
- package/components/Swatch/Swatch.css +6 -0
- package/components/Table/Table.css +15 -1
- package/components/TableToolbar/TableToolbar.css +6 -0
- package/components/TableToolbar/TableToolbar.js +2 -2
- package/components/Tabs/Tabs.css +6 -0
- package/components/TagInput/TagInput.css +6 -0
- package/components/Text/Text.css +6 -0
- package/components/Textarea/Textarea.css +5 -0
- package/components/ThemePicker/ThemePicker.css +6 -0
- package/components/ThemeToggle/ThemeToggle.css +6 -0
- package/components/ThemeToggle/ThemeToggle.d.ts +1 -1
- package/components/ThreadPanel/ThreadPanel.css +6 -0
- package/components/ThreadTabs/ThreadTabs.css +6 -0
- package/components/ThreadTabs/ThreadTabs.d.ts +5 -1
- package/components/ThreadTabs/ThreadTabs.js +2 -1
- package/components/TimePicker/TimePicker.css +6 -0
- package/components/Timeline/Timeline.css +18 -18
- package/components/Toast/Toast.css +6 -0
- package/components/Toast/Toast.js +1 -1
- package/components/ToggleGroup/ToggleGroup.css +6 -0
- package/components/ToggleGroup/ToggleGroup.d.ts +5 -1
- package/components/ToggleSwitch/ToggleSwitch.css +21 -3
- package/components/ToggleSwitch/ToggleSwitch.d.ts +1 -1
- package/components/ToggleSwitch/ToggleSwitch.js +2 -2
- package/components/ToolCall/ToolCall.css +6 -0
- package/components/Toolbar/Toolbar.css +6 -0
- package/components/Tooltip/Tooltip.css +6 -0
- package/components/TopAppBar/TopAppBar.css +6 -0
- package/components/TreeView/TreeView.css +6 -0
- package/components/TypographySwatch/TypographySwatch.css +6 -0
- package/components/UsageCard/UsageCard.css +6 -0
- package/components/Waveform/Waveform.css +6 -0
- package/components/Widget/Widget.css +6 -0
- package/components/Wizard/Wizard.css +6 -0
- package/components/WorldMap/WorldMap.css +6 -0
- package/components/registry.json +21 -4
- package/components/registry.json.d.ts +21 -4
- package/components/registry.json.js +1 -1
- package/fonts/material-symbols.css +10 -0
- package/index.d.ts +1 -0
- package/index.js +2 -0
- package/package.json +1 -1
- package/tokens/base.css +11 -2
|
@@ -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 */
|
|
@@ -10,6 +10,8 @@ export interface FileInputFile {
|
|
|
10
10
|
progress?: number;
|
|
11
11
|
/** Per-file error message — replaces the size line */
|
|
12
12
|
error?: string;
|
|
13
|
+
/** The picked file itself. Set on the entries FileInput makes from a selection, so an uncontrolled list still hands the host its files. */
|
|
14
|
+
file?: File;
|
|
13
15
|
}
|
|
14
16
|
/** Props owned by FileInput itself — everything else falls through to the native <input type="file">. */
|
|
15
17
|
type FileInputOwnProps = {
|
|
@@ -17,8 +19,12 @@ type FileInputOwnProps = {
|
|
|
17
19
|
label?: string;
|
|
18
20
|
/** Instructional copy inside the dropzone */
|
|
19
21
|
placeholder?: string;
|
|
20
|
-
/** Files to list under the dropzone */
|
|
22
|
+
/** Files to list under the dropzone (controlled). Leave it out and FileInput keeps its own list, starting from `defaultFiles`. */
|
|
21
23
|
files?: FileInputFile[];
|
|
24
|
+
/** The list FileInput starts with when `files` is left out (uncontrolled). A selection adds to it, or replaces it unless `multiple` is set, and a remove button takes an entry out. */
|
|
25
|
+
defaultFiles?: FileInputFile[];
|
|
26
|
+
/** Called with the whole list after a selection or a removal, in both modes. A controlled host can set `files` to it. */
|
|
27
|
+
onFilesChange?: (files: FileInputFile[]) => void;
|
|
22
28
|
/** Component size (not the native character-width `size` attribute) */
|
|
23
29
|
size?: 'default' | 'compact';
|
|
24
30
|
/** Error state — shows error styling and message */
|
|
@@ -50,9 +56,11 @@ export interface FileInputProps extends FileInputOwnProps, Omit<React.ComponentP
|
|
|
50
56
|
}
|
|
51
57
|
/**
|
|
52
58
|
* FileInput component — a click-or-drop zone paired with a list of the
|
|
53
|
-
* chosen files. The list is
|
|
54
|
-
* `onFilesSelected` / `onFileRemove` so upload
|
|
55
|
-
* errors stay owned by the host app
|
|
59
|
+
* chosen files. The list is a controlled/uncontrolled pair: pass `files` and
|
|
60
|
+
* handle `onFilesSelected` / `onFileRemove` (or `onFilesChange`) so upload
|
|
61
|
+
* progress and per-file errors stay owned by the host app, or leave `files`
|
|
62
|
+
* out and FileInput keeps the list itself, from `defaultFiles`, adding each
|
|
63
|
+
* selection and showing a remove button on every entry.
|
|
56
64
|
*
|
|
57
65
|
* Forwards a ref to the underlying `<input type="file">` — useful for
|
|
58
66
|
* programmatically opening the picker or clearing the selection — and spreads
|
|
@@ -12,7 +12,9 @@ const FileInput = React.forwardRef(
|
|
|
12
12
|
placeholder = "Drag and drop, or click to browse",
|
|
13
13
|
accept,
|
|
14
14
|
multiple = false,
|
|
15
|
-
files
|
|
15
|
+
files: controlledFiles,
|
|
16
|
+
defaultFiles,
|
|
17
|
+
onFilesChange,
|
|
16
18
|
size = "default",
|
|
17
19
|
disabled = false,
|
|
18
20
|
required = false,
|
|
@@ -33,6 +35,10 @@ const FileInput = React.forwardRef(
|
|
|
33
35
|
}, ref) => {
|
|
34
36
|
const locale = useLocale(localeProp);
|
|
35
37
|
const [isDragging, setIsDragging] = useState(false);
|
|
38
|
+
const isControlled = controlledFiles !== void 0;
|
|
39
|
+
const [internalFiles, setInternalFiles] = useState(defaultFiles ?? []);
|
|
40
|
+
const files = isControlled ? controlledFiles : internalFiles;
|
|
41
|
+
const nextEntryId = useRef(0);
|
|
36
42
|
const inputRef = useRef(null);
|
|
37
43
|
const generatedId = useId();
|
|
38
44
|
const inputId = id || name || generatedId;
|
|
@@ -42,10 +48,27 @@ const FileInput = React.forwardRef(
|
|
|
42
48
|
if (typeof ref === "function") ref(node);
|
|
43
49
|
else if (ref) ref.current = node;
|
|
44
50
|
};
|
|
51
|
+
const commitFiles = (next) => {
|
|
52
|
+
if (!isControlled) setInternalFiles(next);
|
|
53
|
+
onFilesChange?.(next);
|
|
54
|
+
};
|
|
45
55
|
const emitFiles = (fileList) => {
|
|
46
56
|
if (!fileList || fileList.length === 0) return;
|
|
47
|
-
|
|
57
|
+
const picked = Array.from(fileList);
|
|
58
|
+
onFilesSelected?.(picked);
|
|
59
|
+
const entries = picked.map((file) => ({
|
|
60
|
+
id: `${generatedId}-file-${nextEntryId.current += 1}`,
|
|
61
|
+
name: file.name,
|
|
62
|
+
size: file.size,
|
|
63
|
+
file
|
|
64
|
+
}));
|
|
65
|
+
commitFiles(multiple ? [...files, ...entries] : entries);
|
|
66
|
+
};
|
|
67
|
+
const removeFile = (fileId) => {
|
|
68
|
+
onFileRemove?.(fileId);
|
|
69
|
+
commitFiles(files.filter((entry) => entry.id !== fileId));
|
|
48
70
|
};
|
|
71
|
+
const canRemove = Boolean(onFileRemove || onFilesChange || !isControlled);
|
|
49
72
|
const handleChange = (e) => {
|
|
50
73
|
onChange?.(e);
|
|
51
74
|
emitFiles(e.target.files);
|
|
@@ -176,12 +199,12 @@ const FileInput = React.forwardRef(
|
|
|
176
199
|
}
|
|
177
200
|
)
|
|
178
201
|
] }),
|
|
179
|
-
|
|
202
|
+
canRemove && /* @__PURE__ */ jsx(
|
|
180
203
|
"button",
|
|
181
204
|
{
|
|
182
205
|
type: "button",
|
|
183
206
|
className: `${baseClass}__file-remove`,
|
|
184
|
-
onClick: () =>
|
|
207
|
+
onClick: () => removeFile(file.id),
|
|
185
208
|
disabled,
|
|
186
209
|
"aria-label": removeLabel(file.name),
|
|
187
210
|
children: /* @__PURE__ */ jsx("span", { className: "material-symbols-rounded", "aria-hidden": "true", children: "close" })
|
|
@@ -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
|
-
|
|
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 */
|
package/components/Grid/Grid.css
CHANGED
|
@@ -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 */
|
package/components/Icon/Icon.css
CHANGED
|
@@ -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
|
|
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
|
|
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 */
|
|
@@ -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
|
-
|
|
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
|
|
|
@@ -327,3 +343,35 @@
|
|
|
327
343
|
.ds-input--affixed.ds-input--compact.ds-input--has-icon-right .ds-input__field-wrapper {
|
|
328
344
|
padding-inline-end: var(--padding-200);
|
|
329
345
|
}
|
|
346
|
+
|
|
347
|
+
/* ============================================
|
|
348
|
+
QUIET
|
|
349
|
+
At rest the field draws no border and no fill,
|
|
350
|
+
only its leading icon and placeholder. The
|
|
351
|
+
border stays, transparent, so revealing it
|
|
352
|
+
moves nothing. The rest rule names every
|
|
353
|
+
condition that reveals the field, so a
|
|
354
|
+
revealed field is simply the default one,
|
|
355
|
+
with its own hover, focus and error states:
|
|
356
|
+
the field hovered or focused, a value in it,
|
|
357
|
+
an error, disabled, or the nearest
|
|
358
|
+
[data-quiet-host] ancestor (a list row)
|
|
359
|
+
hovered.
|
|
360
|
+
============================================ */
|
|
361
|
+
|
|
362
|
+
.ds-input--quiet:not(.ds-input--filled, .ds-input--error, .ds-input--disabled):not(:where([data-quiet-host]:hover) *):not(.ds-input--affixed) .ds-input__field:not(:hover, :focus),
|
|
363
|
+
.ds-input--quiet.ds-input--affixed:not(.ds-input--filled, .ds-input--error, .ds-input--disabled):not(:where([data-quiet-host]:hover) *) .ds-input__field-wrapper:not(:hover, :focus-within) {
|
|
364
|
+
border-color: transparent;
|
|
365
|
+
background-color: transparent;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
/* Forced colors flatten every fill, so the border is all that marks the
|
|
369
|
+
field out: keep it at rest. */
|
|
370
|
+
@media (forced-colors: active) {
|
|
371
|
+
.ds-input--quiet:not(.ds-input--filled, .ds-input--error, .ds-input--disabled):not(:where([data-quiet-host]:hover) *):not(.ds-input--affixed) .ds-input__field:not(:hover, :focus),
|
|
372
|
+
.ds-input--quiet.ds-input--affixed:not(.ds-input--filled, .ds-input--error, .ds-input--disabled):not(:where([data-quiet-host]:hover) *) .ds-input__field-wrapper:not(:hover, :focus-within) {
|
|
373
|
+
border-color: var(--color-input-border-primary);
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
} /* @layer rift.components */
|
|
@@ -9,6 +9,14 @@ type InputOwnProps = {
|
|
|
9
9
|
type?: 'text' | 'email' | 'password' | 'number' | 'search' | 'tel' | 'url';
|
|
10
10
|
/** Component size (not the native character-width `size` attribute) */
|
|
11
11
|
size?: 'default' | 'compact';
|
|
12
|
+
/**
|
|
13
|
+
* The field's form. `quiet` draws no border or fill at rest, only the
|
|
14
|
+
* leading icon and the placeholder, and reveals the full field while it is
|
|
15
|
+
* hovered, focused or holds a value, or while the nearest ancestor marked
|
|
16
|
+
* `data-quiet-host` (a list row) is hovered. For a list where every row can
|
|
17
|
+
* take an optional entry. An error always shows the full field.
|
|
18
|
+
*/
|
|
19
|
+
variant?: 'default' | 'quiet';
|
|
12
20
|
/** Error state — shows error styling and message */
|
|
13
21
|
error?: boolean;
|
|
14
22
|
/** Helper text displayed below the input. With the older `error` flag and no `errorText`, it doubles as the error message. */
|
|
@@ -13,6 +13,7 @@ const Input = React.forwardRef(
|
|
|
13
13
|
value,
|
|
14
14
|
type = "text",
|
|
15
15
|
size = "default",
|
|
16
|
+
variant = "default",
|
|
16
17
|
disabled = false,
|
|
17
18
|
required = false,
|
|
18
19
|
error = false,
|
|
@@ -57,6 +58,8 @@ const Input = React.forwardRef(
|
|
|
57
58
|
const classes = [
|
|
58
59
|
baseClass,
|
|
59
60
|
size === "compact" ? `${baseClass}--compact` : "",
|
|
61
|
+
variant === "quiet" ? `${baseClass}--quiet` : "",
|
|
62
|
+
variant === "quiet" && filled ? `${baseClass}--filled` : "",
|
|
60
63
|
invalid ? `${baseClass}--error` : "",
|
|
61
64
|
affixed ? `${baseClass}--affixed` : "",
|
|
62
65
|
disabled ? `${baseClass}--disabled` : "",
|
|
@@ -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 */
|
package/components/Kbd/Kbd.css
CHANGED
|
@@ -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 */
|
package/components/Link/Link.css
CHANGED
|
@@ -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
|
-
|
|
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 */
|
package/components/List/List.css
CHANGED
|
@@ -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 */
|