rift-ds 1.2.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/components/Attachment/Attachment.css +1036 -0
- package/components/Attachment/AttachmentDropZone.d.ts +39 -0
- package/components/Attachment/AttachmentDropZone.js +76 -0
- package/components/Attachment/AttachmentGroup.d.ts +60 -0
- package/components/Attachment/AttachmentGroup.js +179 -0
- package/components/Attachment/AttachmentTile.d.ts +80 -0
- package/components/Attachment/AttachmentTile.js +143 -0
- package/components/Attachment/AttachmentViewer.d.ts +66 -0
- package/components/Attachment/AttachmentViewer.js +215 -0
- package/components/Attachment/fileTypes.d.ts +101 -0
- package/components/Attachment/fileTypes.js +182 -0
- package/components/Attachment/typeMark.d.ts +11 -0
- package/components/Attachment/typeMark.js +51 -0
- package/components/Attachment/useAttachments.d.ts +65 -0
- package/components/Attachment/useAttachments.js +201 -0
- package/components/Chart/BarChart.js +1 -1
- package/components/Chart/ComboChart.js +1 -1
- package/components/Chart/Treemap.js +83 -6
- package/components/ChatMessage/ChatMessage.css +24 -0
- package/components/ChatMessage/ChatMessage.d.ts +6 -0
- package/components/ChatMessage/ChatMessage.js +8 -5
- package/components/ColorPicker/ColorPicker.js +1 -1
- package/components/Composer/Composer.css +140 -5
- package/components/Composer/Composer.d.ts +71 -14
- package/components/Composer/Composer.js +204 -11
- package/components/DatePicker/DatePicker.css +1 -1
- package/components/DocumentChip/DocumentChip.d.ts +7 -5
- package/components/EventCalendar/EventCalendar.css +2 -2
- package/components/FileInput/FileInput.css +1 -1
- package/components/FileInput/FileInput.js +1 -7
- package/components/Globe/Globe.d.ts +5 -3
- package/components/Globe/Globe.js +18 -2
- package/components/Inspector/Inspector.css +108 -3
- package/components/Inspector/InspectorColorPicker.d.ts +43 -0
- package/components/Inspector/InspectorColorPicker.js +51 -0
- package/components/Instructions/Instructions.css +4 -4
- package/components/MessageCard/MessageCard.d.ts +1 -1
- package/components/Prose/Prose.css +27 -0
- package/components/Sparkline/Sparkline.css +2 -2
- package/components/Spinner/Spinner.css +1 -1
- package/components/Timeline/Timeline.css +1 -1
- package/components/WorldMap/land.d.ts +1 -1
- package/components/registry.json +48 -3
- package/components/registry.json.d.ts +48 -3
- package/components/registry.json.js +1 -1
- package/index.d.ts +5 -0
- package/index.js +21 -0
- package/package.json +9 -1
- package/tokens/motion.d.ts +2 -0
- package/tokens/motion.js +2 -0
- package/tokens/presets/contrast.css +2 -4
- package/tokens/presets/coral.css +2 -4
- package/tokens/presets/forest.css +2 -4
- package/tokens/presets/gold.css +4 -4
- package/tokens/presets/mono.css +0 -2
- package/tokens/presets/pink.css +4 -4
- package/tokens/presets/terminal.css +5 -4
- package/tokens/presets/violet.css +2 -4
- package/tokens/presets/warm.css +3 -4
- package/tokens/presets/zest.css +2 -4
- package/tokens/registry.json +5 -0
- package/tokens/registry.json.d.ts +5 -0
- package/tokens/registry.json.js +1 -1
- package/tokens/tokens-dark.css +14 -5
- package/tokens/tokens-light.css +16 -2
- package/tokens/tokens-motion.css +2 -0
- package/tokens/tokens-primitives.css +10 -0
package/components/registry.json
CHANGED
|
@@ -161,6 +161,42 @@
|
|
|
161
161
|
"folder": "Chart",
|
|
162
162
|
"recharts": true
|
|
163
163
|
},
|
|
164
|
+
{
|
|
165
|
+
"name": "AttachmentDropZone",
|
|
166
|
+
"label": "Attachment drop zone",
|
|
167
|
+
"slug": "attachment-drop-zone",
|
|
168
|
+
"description": "A wrapper that makes a whole surface a file drop target, with an outlined overlay while files hover over it.",
|
|
169
|
+
"category": "ai",
|
|
170
|
+
"client": true,
|
|
171
|
+
"folder": "Attachment"
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"name": "AttachmentGroup",
|
|
175
|
+
"label": "Attachment group",
|
|
176
|
+
"slug": "attachment-group",
|
|
177
|
+
"description": "The files on a sent message: one picture at its own shape, or a grid of tiles that collapses behind a count.",
|
|
178
|
+
"category": "ai",
|
|
179
|
+
"client": true,
|
|
180
|
+
"folder": "Attachment"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"name": "AttachmentTile",
|
|
184
|
+
"label": "Attachment tile",
|
|
185
|
+
"slug": "attachment-tile",
|
|
186
|
+
"description": "One file as a square: a picture, a coloured mark for well-known formats, or a neutral badge, with upload states.",
|
|
187
|
+
"category": "ai",
|
|
188
|
+
"client": false,
|
|
189
|
+
"folder": "Attachment"
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"name": "AttachmentViewer",
|
|
193
|
+
"label": "Attachment viewer",
|
|
194
|
+
"slug": "attachment-viewer",
|
|
195
|
+
"description": "A preview dialog for a message's files, with download, stepping, and plain states for files it cannot show.",
|
|
196
|
+
"category": "ai",
|
|
197
|
+
"client": true,
|
|
198
|
+
"folder": "Attachment"
|
|
199
|
+
},
|
|
164
200
|
{
|
|
165
201
|
"name": "Avatar",
|
|
166
202
|
"label": "Avatar",
|
|
@@ -369,7 +405,7 @@
|
|
|
369
405
|
"name": "Composer",
|
|
370
406
|
"label": "Composer",
|
|
371
407
|
"slug": "composer",
|
|
372
|
-
"description": "An auto-growing message input with send and stop states, a page-context note,
|
|
408
|
+
"description": "An auto-growing message input with send and stop states, a page-context note, a file tray fed by picker, paste and drop, and Enter-to-send.",
|
|
373
409
|
"category": "ai",
|
|
374
410
|
"client": true
|
|
375
411
|
},
|
|
@@ -441,7 +477,7 @@
|
|
|
441
477
|
"name": "DocumentChip",
|
|
442
478
|
"label": "Document chip",
|
|
443
479
|
"slug": "document-chip",
|
|
444
|
-
"description": "A
|
|
480
|
+
"description": "A legacy one-row file reference, superseded by the attachment tile and kept for existing consumers.",
|
|
445
481
|
"category": "ai",
|
|
446
482
|
"client": false
|
|
447
483
|
},
|
|
@@ -582,6 +618,15 @@
|
|
|
582
618
|
"category": "forms",
|
|
583
619
|
"client": true
|
|
584
620
|
},
|
|
621
|
+
{
|
|
622
|
+
"name": "InspectorColorPicker",
|
|
623
|
+
"label": "Inspector colour picker",
|
|
624
|
+
"slug": "inspector-color-picker",
|
|
625
|
+
"description": "One-row colour setting for inspector panels, with the hex and a round swatch at the bar's end and ColorPicker's own panel.",
|
|
626
|
+
"category": "inspector",
|
|
627
|
+
"client": true,
|
|
628
|
+
"folder": "Inspector"
|
|
629
|
+
},
|
|
585
630
|
{
|
|
586
631
|
"name": "InspectorDropdown",
|
|
587
632
|
"label": "Inspector dropdown",
|
|
@@ -1198,7 +1243,7 @@
|
|
|
1198
1243
|
"slug": "treemap",
|
|
1199
1244
|
"description": "Nested rectangles sized by value for part-to-whole breakdowns.",
|
|
1200
1245
|
"category": "charts",
|
|
1201
|
-
"client":
|
|
1246
|
+
"client": true,
|
|
1202
1247
|
"folder": "Chart",
|
|
1203
1248
|
"recharts": true
|
|
1204
1249
|
},
|
|
@@ -161,6 +161,42 @@ declare const _default: {
|
|
|
161
161
|
"folder": "Chart",
|
|
162
162
|
"recharts": true
|
|
163
163
|
},
|
|
164
|
+
{
|
|
165
|
+
"name": "AttachmentDropZone",
|
|
166
|
+
"label": "Attachment drop zone",
|
|
167
|
+
"slug": "attachment-drop-zone",
|
|
168
|
+
"description": "A wrapper that makes a whole surface a file drop target, with an outlined overlay while files hover over it.",
|
|
169
|
+
"category": "ai",
|
|
170
|
+
"client": true,
|
|
171
|
+
"folder": "Attachment"
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"name": "AttachmentGroup",
|
|
175
|
+
"label": "Attachment group",
|
|
176
|
+
"slug": "attachment-group",
|
|
177
|
+
"description": "The files on a sent message: one picture at its own shape, or a grid of tiles that collapses behind a count.",
|
|
178
|
+
"category": "ai",
|
|
179
|
+
"client": true,
|
|
180
|
+
"folder": "Attachment"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"name": "AttachmentTile",
|
|
184
|
+
"label": "Attachment tile",
|
|
185
|
+
"slug": "attachment-tile",
|
|
186
|
+
"description": "One file as a square: a picture, a coloured mark for well-known formats, or a neutral badge, with upload states.",
|
|
187
|
+
"category": "ai",
|
|
188
|
+
"client": false,
|
|
189
|
+
"folder": "Attachment"
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"name": "AttachmentViewer",
|
|
193
|
+
"label": "Attachment viewer",
|
|
194
|
+
"slug": "attachment-viewer",
|
|
195
|
+
"description": "A preview dialog for a message's files, with download, stepping, and plain states for files it cannot show.",
|
|
196
|
+
"category": "ai",
|
|
197
|
+
"client": true,
|
|
198
|
+
"folder": "Attachment"
|
|
199
|
+
},
|
|
164
200
|
{
|
|
165
201
|
"name": "Avatar",
|
|
166
202
|
"label": "Avatar",
|
|
@@ -369,7 +405,7 @@ declare const _default: {
|
|
|
369
405
|
"name": "Composer",
|
|
370
406
|
"label": "Composer",
|
|
371
407
|
"slug": "composer",
|
|
372
|
-
"description": "An auto-growing message input with send and stop states, a page-context note,
|
|
408
|
+
"description": "An auto-growing message input with send and stop states, a page-context note, a file tray fed by picker, paste and drop, and Enter-to-send.",
|
|
373
409
|
"category": "ai",
|
|
374
410
|
"client": true
|
|
375
411
|
},
|
|
@@ -441,7 +477,7 @@ declare const _default: {
|
|
|
441
477
|
"name": "DocumentChip",
|
|
442
478
|
"label": "Document chip",
|
|
443
479
|
"slug": "document-chip",
|
|
444
|
-
"description": "A
|
|
480
|
+
"description": "A legacy one-row file reference, superseded by the attachment tile and kept for existing consumers.",
|
|
445
481
|
"category": "ai",
|
|
446
482
|
"client": false
|
|
447
483
|
},
|
|
@@ -582,6 +618,15 @@ declare const _default: {
|
|
|
582
618
|
"category": "forms",
|
|
583
619
|
"client": true
|
|
584
620
|
},
|
|
621
|
+
{
|
|
622
|
+
"name": "InspectorColorPicker",
|
|
623
|
+
"label": "Inspector colour picker",
|
|
624
|
+
"slug": "inspector-color-picker",
|
|
625
|
+
"description": "One-row colour setting for inspector panels, with the hex and a round swatch at the bar's end and ColorPicker's own panel.",
|
|
626
|
+
"category": "inspector",
|
|
627
|
+
"client": true,
|
|
628
|
+
"folder": "Inspector"
|
|
629
|
+
},
|
|
585
630
|
{
|
|
586
631
|
"name": "InspectorDropdown",
|
|
587
632
|
"label": "Inspector dropdown",
|
|
@@ -1198,7 +1243,7 @@ declare const _default: {
|
|
|
1198
1243
|
"slug": "treemap",
|
|
1199
1244
|
"description": "Nested rectangles sized by value for part-to-whole breakdowns.",
|
|
1200
1245
|
"category": "charts",
|
|
1201
|
-
"client":
|
|
1246
|
+
"client": true,
|
|
1202
1247
|
"folder": "Chart",
|
|
1203
1248
|
"recharts": true
|
|
1204
1249
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const categories = [{ "id": "actions", "label": "Actions", "description": "Buttons, button groups, and toggles for triggering actions and switching modes." }, { "id": "ai", "label": "AI", "description": "Chat, agent, and model surfaces for building AI products, from the composer to the reasoning trace and the diff an agent proposes." }, { "id": "charts", "label": "Charts", "description": "Data visualisation components for plotting series and activity over time." }, { "id": "data-display", "label": "Data display", "description": "Cards, tables, lists, and badges for presenting structured content." }, { "id": "effects", "label": "Effects", "description": "Ambient and decorative surfaces that sit behind or around the interface." }, { "id": "feedback", "label": "Feedback", "description": "Alerts, toasts, progress, and empty states that tell people what is happening." }, { "id": "forms", "label": "Forms", "description": "Inputs, pickers, and selection controls for collecting and editing values." }, { "id": "inspector", "label": "Inspector", "description": "One-row controls for tool panels and settings rails, each carrying its name inside the control and sized to match Button." }, { "id": "layout", "label": "Layout", "description": "Page scaffolding: app shells, sidebars, dividers, and section headings." }, { "id": "maps", "label": "Maps", "description": "Geographic surfaces for showing where things are and what connects them: a globe, a flat world map, and the callout and key that explain them." }, { "id": "navigation", "label": "Navigation", "description": "Top bars, breadcrumbs, tabs, steppers, and pagination for moving through a product." }, { "id": "overlays", "label": "Overlays", "description": "Dialogs, drawers, menus, and tooltips that float above the page." }];
|
|
2
|
-
const components = /* @__PURE__ */ JSON.parse(`[{"name":"Accordion","label":"Accordion","slug":"accordion","description":"Collapsible content sections for organising related information.","category":"data-display","client":true},{"name":"AgentPlan","label":"Agent plan","slug":"agent-plan","description":"A collapsible checklist of an agent's task, with live step states and a progress readout.","category":"ai","client":true},{"name":"AgentRail","label":"Agent rail","slug":"agent-rail","description":"The companion rail of an agent product: the agent's portrait over tabbed panes for activity, approvals, automations, and personalization.","category":"ai","client":false},{"name":"AgentStatus","label":"Agent status","slug":"agent-status","description":"A dot-matrix indicator and status line reporting what an agent is doing right now.","category":"ai","client":true},{"name":"AiButton","label":"AI button","slug":"ai-button","description":"The AI entry point: icon and label ringed by a turning gradient and glow, with an optional hover-summoned AI-summary panel and prompt chips.","category":"ai","client":true},{"name":"Alert","label":"Alert","slug":"alert","description":"Contextual feedback with status variants, optional dismiss, and compact sizing.","category":"feedback","client":false},{"name":"AlertDialog","label":"Alert dialog","slug":"alert-dialog","description":"Modal confirmation overlay with title, description, and confirm / cancel actions.","category":"overlays","client":true},{"name":"AnchorNav","label":"Anchor nav","slug":"anchor-nav","description":"An on-page list of anchor links that tracks the reader's position and jumps between sections.","category":"navigation","client":true},{"name":"AnimatedNumber","label":"Animated number","slug":"animated-number","description":"A number that counts to its value: count-up on mount, eased tweens on change, tabular digits that never jitter.","category":"data-display","client":true},{"name":"AppLayout","label":"App layout","slug":"app-layout","description":"Full-page template pairing the collapsible App sidebar with a centred content area.","category":"layout","client":true},{"name":"AppSidebar","label":"App sidebar","slug":"app-sidebar","description":"Collapsible navigation rail with accordion sub-items, a side panel for a third level, category headings, and a profile section.","category":"layout","client":true},{"name":"AreaChart","label":"Area chart","slug":"area-chart","description":"Filled area chart for showing volume over time, with stacked and single-series variants.","category":"charts","client":false,"folder":"Chart","recharts":true},{"name":"Avatar","label":"Avatar","slug":"avatar","description":"User profile image with initials and icon fallback, status indicator, and multiple sizes.","category":"data-display","client":true},{"name":"AvatarGroup","label":"Avatar group","slug":"avatar-group","description":"Overlapping avatar stack with a +N counter for the overflow.","category":"data-display","client":false},{"name":"Badge","label":"Badge","slug":"badge","description":"Small inline status labels with info, positive, warning, error, and neutral variants.","category":"data-display","client":false},{"name":"Banner","label":"Banner","slug":"banner","description":"Full-width status strip for page-level announcements, with an action slot and optional dismissal.","category":"feedback","client":false},{"name":"BarChart","label":"Bar chart","slug":"bar-chart","description":"Vertical bars for comparing values across categories or time, with summary stats and tooltips.","category":"charts","client":false,"folder":"Chart","recharts":true},{"name":"BottomNav","label":"Bottom nav","slug":"bottom-nav","description":"Mobile tab bar for three to five destinations, in the Rift style or as iOS Liquid Glass or Material 3 Expressive.","category":"navigation","client":true},{"name":"Breadcrumb","label":"Breadcrumb","slug":"breadcrumb","description":"Hierarchical navigation trail showing the user's location within the site.","category":"navigation","client":false},{"name":"Button","label":"Button","slug":"button","description":"Primary, secondary, tertiary, neutral and destructive variants in default and compact sizes, with icon support and multiple states.","category":"actions","client":true},{"name":"ButtonGroup","label":"Button group","slug":"button-group","description":"Horizontal and vertical button group layouts for related actions and navigation patterns.","category":"actions","client":false},{"name":"Card","label":"Card","slug":"card","description":"Card components for previews, navigation, and token documentation, from content cards to colour swatches and typography specimens.","category":"data-display","client":true},{"name":"CardStack","label":"Card stack","slug":"card-stack","description":"A deck of cards showing one at a time, flipped through with a lift-and-settle animation.","category":"data-display","client":true},{"name":"Carousel","label":"Carousel","slug":"carousel","description":"Sliding content viewer with navigation arrows, dot indicators, auto-play, and keyboard support.","category":"data-display","client":true},{"name":"ChatHeader","label":"Chat header","slug":"chat-header","description":"The top row of a chat surface, with the conversation title and its controls.","category":"ai","client":false},{"name":"ChatMarker","label":"Chat marker","slug":"chat-marker","description":"An inline conversation separator for date breaks and system notes.","category":"ai","client":false},{"name":"ChatMessage","label":"Chat message","slug":"chat-message","description":"A single chat turn with avatar, author, timestamp, and bubble or plain content aligned by role.","category":"ai","client":false},{"name":"ChatThread","label":"Chat thread","slug":"chat-thread","description":"A scrollable conversation column with edge fades, send anchoring, and a subtle scrollbar.","category":"ai","client":true},{"name":"Checkbox","label":"Checkbox","slug":"checkbox","description":"Custom checkbox with check and indeterminate states, keyboard accessible with animated transitions.","category":"forms","client":true},{"name":"Chip","label":"Chip","slug":"chip","description":"Compact pills for attributes, filters, and inline metadata.","category":"data-display","client":false},{"name":"CircularButton","label":"Circular button","slug":"circular-button","description":"Round icon button with primary, secondary, tertiary and neutral variants, default and compact sizes.","category":"actions","client":false},{"name":"CodeBlock","label":"Code block","slug":"code-block","description":"Monospace code with a header and one-click copy.","category":"data-display","client":true},{"name":"CodeDiff","label":"Code diff","slug":"code-diff","description":"Unified diff view for code changes, with added, removed, and context lines.","category":"ai","client":false},{"name":"ColorPicker","label":"Colour picker","slug":"color-picker","description":"Swatch trigger opening a saturation area, hue and alpha sliders, and a hex field; controlled or uncontrolled.","category":"forms","client":true},{"name":"ComboChart","label":"Combo chart","slug":"combo-chart","description":"Bar and line series in one chart, with an optional second y-axis for pairs in different units, like spend and ROAS.","category":"charts","client":false,"folder":"Chart","recharts":true},{"name":"Combobox","label":"Combobox","slug":"combobox","description":"A filterable select that narrows options as the user types, with multi-select chips, grouping, and async loading.","category":"forms","client":true},{"name":"CommandPalette","label":"Command palette","slug":"command-palette","description":"A modal Cmd+K launcher that searches a grouped command list, with keyboard navigation and shortcut hints.","category":"overlays","client":true},{"name":"Composer","label":"Composer","slug":"composer","description":"An auto-growing message input with send and stop states, a page-context note, an attachment slot, and Enter-to-send.","category":"ai","client":true},{"name":"ContactCard","label":"Contact card","slug":"contact-card","description":"Linked contact method with icon, label, and value.","category":"data-display","client":true},{"name":"ContextMenu","label":"Context menu","slug":"context-menu","description":"Right-click menu at the pointer with groups, sub-menus, and shortcut hints.","category":"overlays","client":true},{"name":"ContributionGraph","label":"Contribution graph","slug":"contribution-graph","description":"A year of activity, one cell per day.","category":"charts","client":false},{"name":"DataTable","label":"Data table","slug":"data-table","description":"The wired table: sorting, search, row selection, and pagination assembled around Table.","category":"data-display","client":true},{"name":"DateInput","label":"Date input","slug":"date-input","description":"Date input with native picker, calendar icon, label, and validation states.","category":"forms","client":true},{"name":"DatePicker","label":"Date picker","slug":"date-picker","description":"Inline calendar with month navigation, day selection, and today indicator.","category":"forms","client":true},{"name":"Dialog","label":"Dialog","slug":"dialog","description":"A general-purpose modal for focused tasks, with sizes, an optional footer, and full focus management.","category":"overlays","client":true},{"name":"Divider","label":"Divider","slug":"divider","description":"A thin rule separating stacked content, with optional inline label and vertical orientation.","category":"layout","client":false},{"name":"DocumentChip","label":"Document chip","slug":"document-chip","description":"A compact file reference with a type icon, name, metadata, and optional remove.","category":"ai","client":false},{"name":"Drawer","label":"Drawer","slug":"drawer","description":"An edge-anchored modal panel that slides in from any side, for filter panels, detail views, and mobile navigation.","category":"overlays","client":true},{"name":"Dropdown","label":"Dropdown","slug":"dropdown","description":"Custom select dropdown with keyboard navigation, disabled options, and error states.","category":"forms","client":true},{"name":"DropdownMenu","label":"Dropdown menu","slug":"dropdown-menu","description":"Contextual menu with sections, sub-menus, keyboard shortcuts, and inset-gap hover styling.","category":"overlays","client":true},{"name":"EmptyState","label":"Empty state","slug":"empty-state","description":"The placeholder for a list, table, or search with nothing to show: icon, headline, guidance, and a next action.","category":"feedback","client":false},{"name":"EntityCard","label":"Entity card","slug":"entity-card","description":"Compact display-only card with a centred icon or image and a label, used in the Icons and Logos galleries.","category":"data-display","client":false},{"name":"EventCalendar","label":"Event calendar","slug":"event-calendar","description":"A month grid with event pills, overflow counts, and month navigation.","category":"data-display","client":true},{"name":"Field","label":"Field","slug":"field","description":"The shared scaffolding for labelled form controls: label, required marker, helper and error text, and the ARIA wiring that ties them together.","category":"forms","client":true},{"name":"Figure","label":"Figure","slug":"figure","description":"Images with captions, in the case-study frame.","category":"data-display","client":false},{"name":"FileInput","label":"File input","slug":"file-input","description":"A click-or-drop upload zone paired with a controlled file list showing size, progress, and per-file errors.","category":"forms","client":true},{"name":"FilterBar","label":"Filter bar","slug":"filter-bar","description":"A row of filter chips for narrowing a collection, each opening a popover of options, with per-filter and clear-all resets.","category":"forms","client":true},{"name":"FunnelChart","label":"Funnel chart","slug":"funnel-chart","description":"Ordered funnel stages as centred trapezoid bands, each sized by its share of the first stage.","category":"charts","client":false,"recharts":true},{"name":"GanttChart","label":"Gantt chart","slug":"gantt-chart","description":"Phases and tasks as bars on a shared timeline, with milestones, progress, and a today rule.","category":"charts","client":false},{"name":"Gauge","label":"Gauge","slug":"gauge","description":"A radial dial for a single bounded reading, recoloured through the status roles as it crosses thresholds.","category":"charts","client":false},{"name":"Globe","label":"Globe","slug":"globe","description":"An orthographic globe with markers and great-circle arcs, rotated by drag, keys, or a slow spin.","category":"maps","client":true},{"name":"HoverCard","label":"Hover card","slug":"hover-card","description":"Rich preview panel that opens from hover or focus, with interactive content and position options.","category":"overlays","client":true},{"name":"ImageCompare","label":"Image compare","slug":"image-compare","description":"Before-and-after image comparison with a draggable divider, keyboard control, and corner labels.","category":"data-display","client":true},{"name":"Input","label":"Input","slug":"input","description":"Text input with label, placeholder, left and right icons, helper text, and error states.","category":"forms","client":true},{"name":"InspectorDropdown","label":"Inspector dropdown","slug":"inspector-dropdown","description":"One-row select for inspector panels, with the name inside the bar and the library Dropdown's menu and font previews.","category":"inspector","client":true,"folder":"Inspector"},{"name":"InspectorInput","label":"Inspector input","slug":"inspector-input","description":"One-row text field for inspector panels, with the name on the left and the value right-aligned in the bar.","category":"inspector","client":true,"folder":"Inspector"},{"name":"InspectorSection","label":"Inspector section","slug":"inspector-section","description":"Collapsible, titled run of inspector controls whose open body lets a dropdown menu open past its edge.","category":"inspector","client":true,"folder":"Inspector"},{"name":"InspectorSegmentedControl","label":"Inspector segments","slug":"inspector-segmented-control","description":"One-row choice between a few options for inspector panels, as native radios with a neutral selected chip.","category":"inspector","client":true,"folder":"Inspector"},{"name":"InspectorSlider","label":"Inspector slider","slug":"inspector-slider","description":"One-row slider for inspector panels, where the whole bar is the control and its fill is the value.","category":"inspector","client":true,"folder":"Inspector"},{"name":"InspectorToggleSwitch","label":"Inspector toggle switch","slug":"inspector-toggle-switch","description":"One-row switch for inspector panels, where the whole bar toggles and the track sits at its end.","category":"inspector","client":true,"folder":"Inspector"},{"name":"Instructions","label":"Instructions","slug":"instructions","description":"Step-by-step guidance with numbered badges, connecting lines, and horizontal layout.","category":"data-display","client":false},{"name":"InterruptCard","label":"Interrupt card","slug":"interrupt-card","description":"A human-in-the-loop checkpoint with a question from the agent and option buttons to decide.","category":"ai","client":false},{"name":"Kbd","label":"Kbd","slug":"kbd","description":"A keyboard key rendered as a keycap, for shortcut hints in menus and prose.","category":"data-display","client":false},{"name":"LegendTile","label":"Legend tile","slug":"legend-tile","description":"The labelled value tile under a chart: a series dot, the series name, and its reading, on an inset fill.","category":"charts","client":false},{"name":"Lightbox","label":"Lightbox","slug":"lightbox","description":"Fullscreen media viewer on the shared overlay stack: deep scrim, caption chip, gallery stepping, trapped and restored focus.","category":"overlays","client":true},{"name":"LineChart","label":"Line chart","slug":"line-chart","description":"Multi-series line chart for trends over time, with per-series colours and a summary row.","category":"charts","client":false,"folder":"Chart","recharts":true},{"name":"LinkList","label":"Link list","slug":"link-list","description":"Linked items with logo, label, and subtitle.","category":"data-display","client":false},{"name":"MapCallout","label":"Map callout","slug":"map-callout","description":"The annotation beside a map point: a name in capitals over monospace readout lines.","category":"maps","client":false},{"name":"MapLegend","label":"Map legend","slug":"map-legend","description":"The corner block of a map: its name, what it shows, and the key to its markers.","category":"maps","client":false},{"name":"MessageActions","label":"Message actions","slug":"message-actions","description":"An icon-button row for message-level actions like copy, retry, and feedback.","category":"ai","client":false},{"name":"MessageCard","label":"Message card","slug":"message-card","description":"A structured rich-content card embedded in a chat message, with media, title, body, and actions.","category":"ai","client":false},{"name":"Meter","label":"Meter","slug":"meter","description":"Level indicator for a known quantity, with a status-coloured fill and an optional value readout.","category":"feedback","client":false},{"name":"ModelPicker","label":"Model picker","slug":"model-picker","description":"A model selector for chat surfaces, with per-model descriptions and an optional effort row.","category":"ai","client":true},{"name":"Nav","label":"Nav","slug":"nav","description":"Desktop top navigation bar with a brand slot, horizontal button group, and optional trailing content.","category":"navigation","client":false},{"name":"NavList","label":"Nav list","slug":"nav-list","description":"Vertical list of navigation links for drawers and menus, with three indent levels and per-row expand toggles.","category":"navigation","client":true},{"name":"NotificationCenter","label":"Notification centre","slug":"notification-center","description":"A persistent notification inbox with unread count, filter tabs, and per-item actions.","category":"feedback","client":true},{"name":"NumberInput","label":"Number input","slug":"number-input","description":"Numeric field with increment and decrement steppers and min/max clamping.","category":"forms","client":true},{"name":"Pagination","label":"Pagination","slug":"pagination","description":"Numbered page navigation for long datasets, with ellipses, disabled end arrows, and a compact readout mode.","category":"navigation","client":true},{"name":"Panel","label":"Panel","slug":"panel","description":"The plain dashboard surface: a rounded container with no border or shadow, just padding and a gap.","category":"layout","client":false},{"name":"PieChart","label":"Pie chart","slug":"pie-chart","description":"Proportional share of a whole as a pie or donut, with per-slice colours.","category":"charts","client":false,"folder":"Chart","recharts":true},{"name":"PinInput","label":"Pin input","slug":"pin-input","description":"Segmented one-time-code input with auto-advance, paste support, and completion callback.","category":"forms","client":true},{"name":"Popover","label":"Popover","slug":"popover","description":"Contextual overlay panel with click and hover triggers, positioned relative to its anchor.","category":"overlays","client":true},{"name":"ProgressBar","label":"Progress bar","slug":"progress-bar","description":"Horizontal bar indicating completion progress, with an optional percentage label.","category":"feedback","client":false},{"name":"PromptSuggestions","label":"Prompt suggestions","slug":"prompt-suggestions","description":"A horizontal row of tappable prompt suggestions to start or steer a conversation.","category":"ai","client":true},{"name":"Prose","label":"Prose","slug":"prose","description":"Token-styled typography for rendered markdown and rich agent output.","category":"ai","client":false},{"name":"Quote","label":"Quote","slug":"quote","description":"Blockquotes and pull-quotes with attribution.","category":"data-display","client":false},{"name":"RadarChart","label":"Radar chart","slug":"radar-chart","description":"Multi-axis comparison of series across categories on a radial grid.","category":"charts","client":false,"folder":"Chart","recharts":true},{"name":"RadialChart","label":"Radial chart","slug":"radial-chart","description":"Concentric progress rings for completion and KPI readouts.","category":"charts","client":false,"folder":"Chart","recharts":true},{"name":"RadioButton","label":"Radio button","slug":"radio-button","description":"Radio button and radio group with vertical and horizontal layouts, animated dot indicator.","category":"forms","client":true},{"name":"Rating","label":"Rating","slug":"rating","description":"Star-scale rating control with keyboard selection, a read-only mode, and a configurable icon.","category":"forms","client":true},{"name":"Reasoning","label":"Reasoning","slug":"reasoning","description":"A model's thinking, disclosed behind a one-line summary and collapsed once it finishes.","category":"ai","client":true},{"name":"RichDropdown","label":"Rich dropdown","slug":"rich-dropdown","description":"Dropdown's rich sibling: options preview their own heading face, body face, and key colour.","category":"forms","client":true},{"name":"ScatterChart","label":"Scatter chart","slug":"scatter-chart","description":"Plots point clusters across two axes to show correlation and distribution.","category":"charts","client":false,"folder":"Chart","recharts":true},{"name":"SectionTitle","label":"Section title","slug":"section-title","description":"Heading with a divider line and optional trailing content for organising page sections.","category":"layout","client":false},{"name":"SegmentedControl","label":"Segmented control","slug":"segmented-control","description":"Pill-style toggle between related views with keyboard navigation and icon support.","category":"actions","client":true},{"name":"SelectionCard","label":"Selection card","slug":"selection-card","description":"Large selectable option cards with radio or checkbox indicators for high-visibility choices like settings and onboarding.","category":"data-display","client":true},{"name":"ShaderField","label":"Shader field","slug":"shader-field","description":"An ambient WebGL2 field of soft light sources that sample colour tokens, with a reported fallback status.","category":"effects","client":true},{"name":"SidebarPanel","label":"Sidebar panel","slug":"sidebar-panel","description":"Secondary navigation column listing one section's pages, with group headings and one level of accordion nesting.","category":"layout","client":true},{"name":"Skeleton","label":"Skeleton","slug":"skeleton","description":"Placeholder loading indicators with text, circular, and rectangular variants.","category":"feedback","client":false},{"name":"Slider","label":"Slider","slug":"slider","description":"Range input for selecting a value between a minimum and maximum, in default and compact sizes.","category":"forms","client":true},{"name":"SourceChip","label":"Source chip","slug":"source-chip","description":"A numbered citation pill linking a claim to its source.","category":"ai","client":false},{"name":"SourceTrail","label":"Source trail","slug":"source-trail","description":"The sources an agent opened while answering, as a collapsible list with per-item status.","category":"ai","client":true},{"name":"Sparkline","label":"Sparkline","slug":"sparkline","description":"Inline trend line for stats and table cells, drawn without axes or chrome.","category":"charts","client":false},{"name":"Spinner","label":"Spinner","slug":"spinner","description":"Animated circular loading indicator in three sizes and primary, neutral, or inherit variants.","category":"feedback","client":false},{"name":"SplitButton","label":"Split button","slug":"split-button","description":"Primary action with an attached menu of alternatives, composing Button and DropdownMenu in one pill.","category":"actions","client":false},{"name":"SplitPane","label":"Split pane","slug":"split-pane","description":"Two resizable regions with a draggable, keyboard-operable divider between them.","category":"layout","client":true},{"name":"StackedBarChart","label":"Stacked bar chart","slug":"stacked-bar-chart","description":"Bars split into stacked segments to compare totals and their composition.","category":"charts","client":false,"folder":"Chart","recharts":true},{"name":"Stat","label":"Stat","slug":"stat","description":"Headline metrics with labels and trend deltas.","category":"data-display","client":false},{"name":"StatusDot","label":"Status dot","slug":"status-dot","description":"The bare status mark: a dot in the five status roles, with an optional label and a live pulse for recording and online-now states.","category":"feedback","client":false},{"name":"Stepper","label":"Stepper","slug":"stepper","description":"Step-by-step progress indicator for wizards and multi-stage flows.","category":"navigation","client":true},{"name":"StreamingText","label":"Streaming text","slug":"streaming-text","description":"Progressive reveal for text arriving in chunks, with a blinking cursor while more is coming.","category":"ai","client":true},{"name":"Swatch","label":"Swatch","slug":"swatch","description":"Clickable colour tile for preset palettes and picker triggers, with a theme-aware selection ring.","category":"forms","client":false},{"name":"Table","label":"Table","slug":"table","description":"Data table with flexible cell content, striped rows, compact sizing, and support for icons, inputs, buttons, and interactive controls.","category":"data-display","client":false},{"name":"Tabs","label":"Tabs","slug":"tabs","description":"Tab navigation with underline indicator, icon support, compact size, and full-width mode.","category":"navigation","client":true},{"name":"TagInput","label":"Tag input","slug":"tag-input","description":"Multi-value text input with entries held as removable tags.","category":"forms","client":true},{"name":"Textarea","label":"Textarea","slug":"textarea","description":"Multi-line text input with character counter, resize control, helper text, and error states.","category":"forms","client":true},{"name":"ThreadPanel","label":"Thread panel","slug":"thread-panel","description":"The session-history rail for chat products: brand header, new-thread action, standing controls, projects, grouped detail-rich threads, and a profile footer.","category":"ai","client":false},{"name":"ThreadTabs","label":"Thread tabs","slug":"thread-tabs","description":"The strip of open chat sessions: pill tabs with unread dots and hover-revealed close buttons, a new-tab action, and animated enter and exit.","category":"ai","client":true},{"name":"TimePicker","label":"Time picker","slug":"time-picker","description":"Time-of-day field with a dropdown list of selectable times.","category":"forms","client":true},{"name":"Timeline","label":"Timeline","slug":"timeline","description":"Ordered sequences: histories and steppers.","category":"data-display","client":false},{"name":"Toast","label":"Toast","slug":"toast","description":"Temporary notification with status variants, auto-dismiss, and stacking via ToastProvider.","category":"feedback","client":true},{"name":"ToggleGroup","label":"Toggle group","slug":"toggle-group","description":"A set of two-state buttons that can be toggled on or off, supporting text and icon items.","category":"actions","client":true},{"name":"ToggleSwitch","label":"Toggle switch","slug":"toggle-switch","description":"Binary on/off toggle control with sliding thumb and check indicator, used for settings like theme switching.","category":"forms","client":true},{"name":"ToolCall","label":"Tool call","slug":"tool-call","description":"The record of one tool invocation, with its arguments and result behind a disclosure.","category":"ai","client":true},{"name":"Toolbar","label":"Toolbar","slug":"toolbar","description":"A grouped strip of controls in one pill shell: clusters, separators, arrow-key focus, and a glass floating variant.","category":"layout","client":true},{"name":"Tooltip","label":"Tooltip","slug":"tooltip","description":"Contextual text label that appears on hover or focus with position and delay options.","category":"overlays","client":true},{"name":"TopAppBar","label":"Top app bar","slug":"top-app-bar","description":"Mobile screen header with a menu or back button, title, and actions, in Rift, iOS, or Android style, collapsing on scroll.","category":"navigation","client":true},{"name":"TreeView","label":"Tree view","slug":"tree-view","description":"Collapsible hierarchy for files, folders, and nested structures.","category":"data-display","client":true},{"name":"Treemap","label":"Treemap","slug":"treemap","description":"Nested rectangles sized by value for part-to-whole breakdowns.","category":"charts","client":false,"folder":"Chart","recharts":true},{"name":"UsageCard","label":"Usage card","slug":"usage-card","description":"An agent's budgets at a glance: context window and plan limits as meter rows with reset captions.","category":"ai","client":false},{"name":"Waveform","label":"Waveform","slug":"waveform","description":"Voice made visible: a row of bars dancing on the shared twelve-slot cycle, or tracking a live analyser level by level.","category":"ai","client":false},{"name":"WorldMap","label":"World map","slug":"world-map","description":"A flat world map from Natural Earth land shapes: token-coloured continents, framed bounds, and colour-carrying markers.","category":"maps","client":true}]`);
|
|
2
|
+
const components = /* @__PURE__ */ JSON.parse(`[{"name":"Accordion","label":"Accordion","slug":"accordion","description":"Collapsible content sections for organising related information.","category":"data-display","client":true},{"name":"AgentPlan","label":"Agent plan","slug":"agent-plan","description":"A collapsible checklist of an agent's task, with live step states and a progress readout.","category":"ai","client":true},{"name":"AgentRail","label":"Agent rail","slug":"agent-rail","description":"The companion rail of an agent product: the agent's portrait over tabbed panes for activity, approvals, automations, and personalization.","category":"ai","client":false},{"name":"AgentStatus","label":"Agent status","slug":"agent-status","description":"A dot-matrix indicator and status line reporting what an agent is doing right now.","category":"ai","client":true},{"name":"AiButton","label":"AI button","slug":"ai-button","description":"The AI entry point: icon and label ringed by a turning gradient and glow, with an optional hover-summoned AI-summary panel and prompt chips.","category":"ai","client":true},{"name":"Alert","label":"Alert","slug":"alert","description":"Contextual feedback with status variants, optional dismiss, and compact sizing.","category":"feedback","client":false},{"name":"AlertDialog","label":"Alert dialog","slug":"alert-dialog","description":"Modal confirmation overlay with title, description, and confirm / cancel actions.","category":"overlays","client":true},{"name":"AnchorNav","label":"Anchor nav","slug":"anchor-nav","description":"An on-page list of anchor links that tracks the reader's position and jumps between sections.","category":"navigation","client":true},{"name":"AnimatedNumber","label":"Animated number","slug":"animated-number","description":"A number that counts to its value: count-up on mount, eased tweens on change, tabular digits that never jitter.","category":"data-display","client":true},{"name":"AppLayout","label":"App layout","slug":"app-layout","description":"Full-page template pairing the collapsible App sidebar with a centred content area.","category":"layout","client":true},{"name":"AppSidebar","label":"App sidebar","slug":"app-sidebar","description":"Collapsible navigation rail with accordion sub-items, a side panel for a third level, category headings, and a profile section.","category":"layout","client":true},{"name":"AreaChart","label":"Area chart","slug":"area-chart","description":"Filled area chart for showing volume over time, with stacked and single-series variants.","category":"charts","client":false,"folder":"Chart","recharts":true},{"name":"AttachmentDropZone","label":"Attachment drop zone","slug":"attachment-drop-zone","description":"A wrapper that makes a whole surface a file drop target, with an outlined overlay while files hover over it.","category":"ai","client":true,"folder":"Attachment"},{"name":"AttachmentGroup","label":"Attachment group","slug":"attachment-group","description":"The files on a sent message: one picture at its own shape, or a grid of tiles that collapses behind a count.","category":"ai","client":true,"folder":"Attachment"},{"name":"AttachmentTile","label":"Attachment tile","slug":"attachment-tile","description":"One file as a square: a picture, a coloured mark for well-known formats, or a neutral badge, with upload states.","category":"ai","client":false,"folder":"Attachment"},{"name":"AttachmentViewer","label":"Attachment viewer","slug":"attachment-viewer","description":"A preview dialog for a message's files, with download, stepping, and plain states for files it cannot show.","category":"ai","client":true,"folder":"Attachment"},{"name":"Avatar","label":"Avatar","slug":"avatar","description":"User profile image with initials and icon fallback, status indicator, and multiple sizes.","category":"data-display","client":true},{"name":"AvatarGroup","label":"Avatar group","slug":"avatar-group","description":"Overlapping avatar stack with a +N counter for the overflow.","category":"data-display","client":false},{"name":"Badge","label":"Badge","slug":"badge","description":"Small inline status labels with info, positive, warning, error, and neutral variants.","category":"data-display","client":false},{"name":"Banner","label":"Banner","slug":"banner","description":"Full-width status strip for page-level announcements, with an action slot and optional dismissal.","category":"feedback","client":false},{"name":"BarChart","label":"Bar chart","slug":"bar-chart","description":"Vertical bars for comparing values across categories or time, with summary stats and tooltips.","category":"charts","client":false,"folder":"Chart","recharts":true},{"name":"BottomNav","label":"Bottom nav","slug":"bottom-nav","description":"Mobile tab bar for three to five destinations, in the Rift style or as iOS Liquid Glass or Material 3 Expressive.","category":"navigation","client":true},{"name":"Breadcrumb","label":"Breadcrumb","slug":"breadcrumb","description":"Hierarchical navigation trail showing the user's location within the site.","category":"navigation","client":false},{"name":"Button","label":"Button","slug":"button","description":"Primary, secondary, tertiary, neutral and destructive variants in default and compact sizes, with icon support and multiple states.","category":"actions","client":true},{"name":"ButtonGroup","label":"Button group","slug":"button-group","description":"Horizontal and vertical button group layouts for related actions and navigation patterns.","category":"actions","client":false},{"name":"Card","label":"Card","slug":"card","description":"Card components for previews, navigation, and token documentation, from content cards to colour swatches and typography specimens.","category":"data-display","client":true},{"name":"CardStack","label":"Card stack","slug":"card-stack","description":"A deck of cards showing one at a time, flipped through with a lift-and-settle animation.","category":"data-display","client":true},{"name":"Carousel","label":"Carousel","slug":"carousel","description":"Sliding content viewer with navigation arrows, dot indicators, auto-play, and keyboard support.","category":"data-display","client":true},{"name":"ChatHeader","label":"Chat header","slug":"chat-header","description":"The top row of a chat surface, with the conversation title and its controls.","category":"ai","client":false},{"name":"ChatMarker","label":"Chat marker","slug":"chat-marker","description":"An inline conversation separator for date breaks and system notes.","category":"ai","client":false},{"name":"ChatMessage","label":"Chat message","slug":"chat-message","description":"A single chat turn with avatar, author, timestamp, and bubble or plain content aligned by role.","category":"ai","client":false},{"name":"ChatThread","label":"Chat thread","slug":"chat-thread","description":"A scrollable conversation column with edge fades, send anchoring, and a subtle scrollbar.","category":"ai","client":true},{"name":"Checkbox","label":"Checkbox","slug":"checkbox","description":"Custom checkbox with check and indeterminate states, keyboard accessible with animated transitions.","category":"forms","client":true},{"name":"Chip","label":"Chip","slug":"chip","description":"Compact pills for attributes, filters, and inline metadata.","category":"data-display","client":false},{"name":"CircularButton","label":"Circular button","slug":"circular-button","description":"Round icon button with primary, secondary, tertiary and neutral variants, default and compact sizes.","category":"actions","client":false},{"name":"CodeBlock","label":"Code block","slug":"code-block","description":"Monospace code with a header and one-click copy.","category":"data-display","client":true},{"name":"CodeDiff","label":"Code diff","slug":"code-diff","description":"Unified diff view for code changes, with added, removed, and context lines.","category":"ai","client":false},{"name":"ColorPicker","label":"Colour picker","slug":"color-picker","description":"Swatch trigger opening a saturation area, hue and alpha sliders, and a hex field; controlled or uncontrolled.","category":"forms","client":true},{"name":"ComboChart","label":"Combo chart","slug":"combo-chart","description":"Bar and line series in one chart, with an optional second y-axis for pairs in different units, like spend and ROAS.","category":"charts","client":false,"folder":"Chart","recharts":true},{"name":"Combobox","label":"Combobox","slug":"combobox","description":"A filterable select that narrows options as the user types, with multi-select chips, grouping, and async loading.","category":"forms","client":true},{"name":"CommandPalette","label":"Command palette","slug":"command-palette","description":"A modal Cmd+K launcher that searches a grouped command list, with keyboard navigation and shortcut hints.","category":"overlays","client":true},{"name":"Composer","label":"Composer","slug":"composer","description":"An auto-growing message input with send and stop states, a page-context note, a file tray fed by picker, paste and drop, and Enter-to-send.","category":"ai","client":true},{"name":"ContactCard","label":"Contact card","slug":"contact-card","description":"Linked contact method with icon, label, and value.","category":"data-display","client":true},{"name":"ContextMenu","label":"Context menu","slug":"context-menu","description":"Right-click menu at the pointer with groups, sub-menus, and shortcut hints.","category":"overlays","client":true},{"name":"ContributionGraph","label":"Contribution graph","slug":"contribution-graph","description":"A year of activity, one cell per day.","category":"charts","client":false},{"name":"DataTable","label":"Data table","slug":"data-table","description":"The wired table: sorting, search, row selection, and pagination assembled around Table.","category":"data-display","client":true},{"name":"DateInput","label":"Date input","slug":"date-input","description":"Date input with native picker, calendar icon, label, and validation states.","category":"forms","client":true},{"name":"DatePicker","label":"Date picker","slug":"date-picker","description":"Inline calendar with month navigation, day selection, and today indicator.","category":"forms","client":true},{"name":"Dialog","label":"Dialog","slug":"dialog","description":"A general-purpose modal for focused tasks, with sizes, an optional footer, and full focus management.","category":"overlays","client":true},{"name":"Divider","label":"Divider","slug":"divider","description":"A thin rule separating stacked content, with optional inline label and vertical orientation.","category":"layout","client":false},{"name":"DocumentChip","label":"Document chip","slug":"document-chip","description":"A legacy one-row file reference, superseded by the attachment tile and kept for existing consumers.","category":"ai","client":false},{"name":"Drawer","label":"Drawer","slug":"drawer","description":"An edge-anchored modal panel that slides in from any side, for filter panels, detail views, and mobile navigation.","category":"overlays","client":true},{"name":"Dropdown","label":"Dropdown","slug":"dropdown","description":"Custom select dropdown with keyboard navigation, disabled options, and error states.","category":"forms","client":true},{"name":"DropdownMenu","label":"Dropdown menu","slug":"dropdown-menu","description":"Contextual menu with sections, sub-menus, keyboard shortcuts, and inset-gap hover styling.","category":"overlays","client":true},{"name":"EmptyState","label":"Empty state","slug":"empty-state","description":"The placeholder for a list, table, or search with nothing to show: icon, headline, guidance, and a next action.","category":"feedback","client":false},{"name":"EntityCard","label":"Entity card","slug":"entity-card","description":"Compact display-only card with a centred icon or image and a label, used in the Icons and Logos galleries.","category":"data-display","client":false},{"name":"EventCalendar","label":"Event calendar","slug":"event-calendar","description":"A month grid with event pills, overflow counts, and month navigation.","category":"data-display","client":true},{"name":"Field","label":"Field","slug":"field","description":"The shared scaffolding for labelled form controls: label, required marker, helper and error text, and the ARIA wiring that ties them together.","category":"forms","client":true},{"name":"Figure","label":"Figure","slug":"figure","description":"Images with captions, in the case-study frame.","category":"data-display","client":false},{"name":"FileInput","label":"File input","slug":"file-input","description":"A click-or-drop upload zone paired with a controlled file list showing size, progress, and per-file errors.","category":"forms","client":true},{"name":"FilterBar","label":"Filter bar","slug":"filter-bar","description":"A row of filter chips for narrowing a collection, each opening a popover of options, with per-filter and clear-all resets.","category":"forms","client":true},{"name":"FunnelChart","label":"Funnel chart","slug":"funnel-chart","description":"Ordered funnel stages as centred trapezoid bands, each sized by its share of the first stage.","category":"charts","client":false,"recharts":true},{"name":"GanttChart","label":"Gantt chart","slug":"gantt-chart","description":"Phases and tasks as bars on a shared timeline, with milestones, progress, and a today rule.","category":"charts","client":false},{"name":"Gauge","label":"Gauge","slug":"gauge","description":"A radial dial for a single bounded reading, recoloured through the status roles as it crosses thresholds.","category":"charts","client":false},{"name":"Globe","label":"Globe","slug":"globe","description":"An orthographic globe with markers and great-circle arcs, rotated by drag, keys, or a slow spin.","category":"maps","client":true},{"name":"HoverCard","label":"Hover card","slug":"hover-card","description":"Rich preview panel that opens from hover or focus, with interactive content and position options.","category":"overlays","client":true},{"name":"ImageCompare","label":"Image compare","slug":"image-compare","description":"Before-and-after image comparison with a draggable divider, keyboard control, and corner labels.","category":"data-display","client":true},{"name":"Input","label":"Input","slug":"input","description":"Text input with label, placeholder, left and right icons, helper text, and error states.","category":"forms","client":true},{"name":"InspectorColorPicker","label":"Inspector colour picker","slug":"inspector-color-picker","description":"One-row colour setting for inspector panels, with the hex and a round swatch at the bar's end and ColorPicker's own panel.","category":"inspector","client":true,"folder":"Inspector"},{"name":"InspectorDropdown","label":"Inspector dropdown","slug":"inspector-dropdown","description":"One-row select for inspector panels, with the name inside the bar and the library Dropdown's menu and font previews.","category":"inspector","client":true,"folder":"Inspector"},{"name":"InspectorInput","label":"Inspector input","slug":"inspector-input","description":"One-row text field for inspector panels, with the name on the left and the value right-aligned in the bar.","category":"inspector","client":true,"folder":"Inspector"},{"name":"InspectorSection","label":"Inspector section","slug":"inspector-section","description":"Collapsible, titled run of inspector controls whose open body lets a dropdown menu open past its edge.","category":"inspector","client":true,"folder":"Inspector"},{"name":"InspectorSegmentedControl","label":"Inspector segments","slug":"inspector-segmented-control","description":"One-row choice between a few options for inspector panels, as native radios with a neutral selected chip.","category":"inspector","client":true,"folder":"Inspector"},{"name":"InspectorSlider","label":"Inspector slider","slug":"inspector-slider","description":"One-row slider for inspector panels, where the whole bar is the control and its fill is the value.","category":"inspector","client":true,"folder":"Inspector"},{"name":"InspectorToggleSwitch","label":"Inspector toggle switch","slug":"inspector-toggle-switch","description":"One-row switch for inspector panels, where the whole bar toggles and the track sits at its end.","category":"inspector","client":true,"folder":"Inspector"},{"name":"Instructions","label":"Instructions","slug":"instructions","description":"Step-by-step guidance with numbered badges, connecting lines, and horizontal layout.","category":"data-display","client":false},{"name":"InterruptCard","label":"Interrupt card","slug":"interrupt-card","description":"A human-in-the-loop checkpoint with a question from the agent and option buttons to decide.","category":"ai","client":false},{"name":"Kbd","label":"Kbd","slug":"kbd","description":"A keyboard key rendered as a keycap, for shortcut hints in menus and prose.","category":"data-display","client":false},{"name":"LegendTile","label":"Legend tile","slug":"legend-tile","description":"The labelled value tile under a chart: a series dot, the series name, and its reading, on an inset fill.","category":"charts","client":false},{"name":"Lightbox","label":"Lightbox","slug":"lightbox","description":"Fullscreen media viewer on the shared overlay stack: deep scrim, caption chip, gallery stepping, trapped and restored focus.","category":"overlays","client":true},{"name":"LineChart","label":"Line chart","slug":"line-chart","description":"Multi-series line chart for trends over time, with per-series colours and a summary row.","category":"charts","client":false,"folder":"Chart","recharts":true},{"name":"LinkList","label":"Link list","slug":"link-list","description":"Linked items with logo, label, and subtitle.","category":"data-display","client":false},{"name":"MapCallout","label":"Map callout","slug":"map-callout","description":"The annotation beside a map point: a name in capitals over monospace readout lines.","category":"maps","client":false},{"name":"MapLegend","label":"Map legend","slug":"map-legend","description":"The corner block of a map: its name, what it shows, and the key to its markers.","category":"maps","client":false},{"name":"MessageActions","label":"Message actions","slug":"message-actions","description":"An icon-button row for message-level actions like copy, retry, and feedback.","category":"ai","client":false},{"name":"MessageCard","label":"Message card","slug":"message-card","description":"A structured rich-content card embedded in a chat message, with media, title, body, and actions.","category":"ai","client":false},{"name":"Meter","label":"Meter","slug":"meter","description":"Level indicator for a known quantity, with a status-coloured fill and an optional value readout.","category":"feedback","client":false},{"name":"ModelPicker","label":"Model picker","slug":"model-picker","description":"A model selector for chat surfaces, with per-model descriptions and an optional effort row.","category":"ai","client":true},{"name":"Nav","label":"Nav","slug":"nav","description":"Desktop top navigation bar with a brand slot, horizontal button group, and optional trailing content.","category":"navigation","client":false},{"name":"NavList","label":"Nav list","slug":"nav-list","description":"Vertical list of navigation links for drawers and menus, with three indent levels and per-row expand toggles.","category":"navigation","client":true},{"name":"NotificationCenter","label":"Notification centre","slug":"notification-center","description":"A persistent notification inbox with unread count, filter tabs, and per-item actions.","category":"feedback","client":true},{"name":"NumberInput","label":"Number input","slug":"number-input","description":"Numeric field with increment and decrement steppers and min/max clamping.","category":"forms","client":true},{"name":"Pagination","label":"Pagination","slug":"pagination","description":"Numbered page navigation for long datasets, with ellipses, disabled end arrows, and a compact readout mode.","category":"navigation","client":true},{"name":"Panel","label":"Panel","slug":"panel","description":"The plain dashboard surface: a rounded container with no border or shadow, just padding and a gap.","category":"layout","client":false},{"name":"PieChart","label":"Pie chart","slug":"pie-chart","description":"Proportional share of a whole as a pie or donut, with per-slice colours.","category":"charts","client":false,"folder":"Chart","recharts":true},{"name":"PinInput","label":"Pin input","slug":"pin-input","description":"Segmented one-time-code input with auto-advance, paste support, and completion callback.","category":"forms","client":true},{"name":"Popover","label":"Popover","slug":"popover","description":"Contextual overlay panel with click and hover triggers, positioned relative to its anchor.","category":"overlays","client":true},{"name":"ProgressBar","label":"Progress bar","slug":"progress-bar","description":"Horizontal bar indicating completion progress, with an optional percentage label.","category":"feedback","client":false},{"name":"PromptSuggestions","label":"Prompt suggestions","slug":"prompt-suggestions","description":"A horizontal row of tappable prompt suggestions to start or steer a conversation.","category":"ai","client":true},{"name":"Prose","label":"Prose","slug":"prose","description":"Token-styled typography for rendered markdown and rich agent output.","category":"ai","client":false},{"name":"Quote","label":"Quote","slug":"quote","description":"Blockquotes and pull-quotes with attribution.","category":"data-display","client":false},{"name":"RadarChart","label":"Radar chart","slug":"radar-chart","description":"Multi-axis comparison of series across categories on a radial grid.","category":"charts","client":false,"folder":"Chart","recharts":true},{"name":"RadialChart","label":"Radial chart","slug":"radial-chart","description":"Concentric progress rings for completion and KPI readouts.","category":"charts","client":false,"folder":"Chart","recharts":true},{"name":"RadioButton","label":"Radio button","slug":"radio-button","description":"Radio button and radio group with vertical and horizontal layouts, animated dot indicator.","category":"forms","client":true},{"name":"Rating","label":"Rating","slug":"rating","description":"Star-scale rating control with keyboard selection, a read-only mode, and a configurable icon.","category":"forms","client":true},{"name":"Reasoning","label":"Reasoning","slug":"reasoning","description":"A model's thinking, disclosed behind a one-line summary and collapsed once it finishes.","category":"ai","client":true},{"name":"RichDropdown","label":"Rich dropdown","slug":"rich-dropdown","description":"Dropdown's rich sibling: options preview their own heading face, body face, and key colour.","category":"forms","client":true},{"name":"ScatterChart","label":"Scatter chart","slug":"scatter-chart","description":"Plots point clusters across two axes to show correlation and distribution.","category":"charts","client":false,"folder":"Chart","recharts":true},{"name":"SectionTitle","label":"Section title","slug":"section-title","description":"Heading with a divider line and optional trailing content for organising page sections.","category":"layout","client":false},{"name":"SegmentedControl","label":"Segmented control","slug":"segmented-control","description":"Pill-style toggle between related views with keyboard navigation and icon support.","category":"actions","client":true},{"name":"SelectionCard","label":"Selection card","slug":"selection-card","description":"Large selectable option cards with radio or checkbox indicators for high-visibility choices like settings and onboarding.","category":"data-display","client":true},{"name":"ShaderField","label":"Shader field","slug":"shader-field","description":"An ambient WebGL2 field of soft light sources that sample colour tokens, with a reported fallback status.","category":"effects","client":true},{"name":"SidebarPanel","label":"Sidebar panel","slug":"sidebar-panel","description":"Secondary navigation column listing one section's pages, with group headings and one level of accordion nesting.","category":"layout","client":true},{"name":"Skeleton","label":"Skeleton","slug":"skeleton","description":"Placeholder loading indicators with text, circular, and rectangular variants.","category":"feedback","client":false},{"name":"Slider","label":"Slider","slug":"slider","description":"Range input for selecting a value between a minimum and maximum, in default and compact sizes.","category":"forms","client":true},{"name":"SourceChip","label":"Source chip","slug":"source-chip","description":"A numbered citation pill linking a claim to its source.","category":"ai","client":false},{"name":"SourceTrail","label":"Source trail","slug":"source-trail","description":"The sources an agent opened while answering, as a collapsible list with per-item status.","category":"ai","client":true},{"name":"Sparkline","label":"Sparkline","slug":"sparkline","description":"Inline trend line for stats and table cells, drawn without axes or chrome.","category":"charts","client":false},{"name":"Spinner","label":"Spinner","slug":"spinner","description":"Animated circular loading indicator in three sizes and primary, neutral, or inherit variants.","category":"feedback","client":false},{"name":"SplitButton","label":"Split button","slug":"split-button","description":"Primary action with an attached menu of alternatives, composing Button and DropdownMenu in one pill.","category":"actions","client":false},{"name":"SplitPane","label":"Split pane","slug":"split-pane","description":"Two resizable regions with a draggable, keyboard-operable divider between them.","category":"layout","client":true},{"name":"StackedBarChart","label":"Stacked bar chart","slug":"stacked-bar-chart","description":"Bars split into stacked segments to compare totals and their composition.","category":"charts","client":false,"folder":"Chart","recharts":true},{"name":"Stat","label":"Stat","slug":"stat","description":"Headline metrics with labels and trend deltas.","category":"data-display","client":false},{"name":"StatusDot","label":"Status dot","slug":"status-dot","description":"The bare status mark: a dot in the five status roles, with an optional label and a live pulse for recording and online-now states.","category":"feedback","client":false},{"name":"Stepper","label":"Stepper","slug":"stepper","description":"Step-by-step progress indicator for wizards and multi-stage flows.","category":"navigation","client":true},{"name":"StreamingText","label":"Streaming text","slug":"streaming-text","description":"Progressive reveal for text arriving in chunks, with a blinking cursor while more is coming.","category":"ai","client":true},{"name":"Swatch","label":"Swatch","slug":"swatch","description":"Clickable colour tile for preset palettes and picker triggers, with a theme-aware selection ring.","category":"forms","client":false},{"name":"Table","label":"Table","slug":"table","description":"Data table with flexible cell content, striped rows, compact sizing, and support for icons, inputs, buttons, and interactive controls.","category":"data-display","client":false},{"name":"Tabs","label":"Tabs","slug":"tabs","description":"Tab navigation with underline indicator, icon support, compact size, and full-width mode.","category":"navigation","client":true},{"name":"TagInput","label":"Tag input","slug":"tag-input","description":"Multi-value text input with entries held as removable tags.","category":"forms","client":true},{"name":"Textarea","label":"Textarea","slug":"textarea","description":"Multi-line text input with character counter, resize control, helper text, and error states.","category":"forms","client":true},{"name":"ThreadPanel","label":"Thread panel","slug":"thread-panel","description":"The session-history rail for chat products: brand header, new-thread action, standing controls, projects, grouped detail-rich threads, and a profile footer.","category":"ai","client":false},{"name":"ThreadTabs","label":"Thread tabs","slug":"thread-tabs","description":"The strip of open chat sessions: pill tabs with unread dots and hover-revealed close buttons, a new-tab action, and animated enter and exit.","category":"ai","client":true},{"name":"TimePicker","label":"Time picker","slug":"time-picker","description":"Time-of-day field with a dropdown list of selectable times.","category":"forms","client":true},{"name":"Timeline","label":"Timeline","slug":"timeline","description":"Ordered sequences: histories and steppers.","category":"data-display","client":false},{"name":"Toast","label":"Toast","slug":"toast","description":"Temporary notification with status variants, auto-dismiss, and stacking via ToastProvider.","category":"feedback","client":true},{"name":"ToggleGroup","label":"Toggle group","slug":"toggle-group","description":"A set of two-state buttons that can be toggled on or off, supporting text and icon items.","category":"actions","client":true},{"name":"ToggleSwitch","label":"Toggle switch","slug":"toggle-switch","description":"Binary on/off toggle control with sliding thumb and check indicator, used for settings like theme switching.","category":"forms","client":true},{"name":"ToolCall","label":"Tool call","slug":"tool-call","description":"The record of one tool invocation, with its arguments and result behind a disclosure.","category":"ai","client":true},{"name":"Toolbar","label":"Toolbar","slug":"toolbar","description":"A grouped strip of controls in one pill shell: clusters, separators, arrow-key focus, and a glass floating variant.","category":"layout","client":true},{"name":"Tooltip","label":"Tooltip","slug":"tooltip","description":"Contextual text label that appears on hover or focus with position and delay options.","category":"overlays","client":true},{"name":"TopAppBar","label":"Top app bar","slug":"top-app-bar","description":"Mobile screen header with a menu or back button, title, and actions, in Rift, iOS, or Android style, collapsing on scroll.","category":"navigation","client":true},{"name":"TreeView","label":"Tree view","slug":"tree-view","description":"Collapsible hierarchy for files, folders, and nested structures.","category":"data-display","client":true},{"name":"Treemap","label":"Treemap","slug":"treemap","description":"Nested rectangles sized by value for part-to-whole breakdowns.","category":"charts","client":true,"folder":"Chart","recharts":true},{"name":"UsageCard","label":"Usage card","slug":"usage-card","description":"An agent's budgets at a glance: context window and plan limits as meter rows with reset captions.","category":"ai","client":false},{"name":"Waveform","label":"Waveform","slug":"waveform","description":"Voice made visible: a row of bars dancing on the shared twelve-slot cycle, or tracking a live analyser level by level.","category":"ai","client":false},{"name":"WorldMap","label":"World map","slug":"world-map","description":"A flat world map from Natural Earth land shapes: token-coloured continents, framed bounds, and colour-carrying markers.","category":"maps","client":true}]`);
|
|
3
3
|
const registry = {
|
|
4
4
|
categories,
|
|
5
5
|
components
|
package/index.d.ts
CHANGED
|
@@ -15,6 +15,10 @@ export * from './components/AnchorNav/AnchorNav';
|
|
|
15
15
|
export * from './components/AnimatedNumber/AnimatedNumber';
|
|
16
16
|
export * from './components/AppLayout/AppLayout';
|
|
17
17
|
export * from './components/AppSidebar/AppSidebar';
|
|
18
|
+
export * from './components/Attachment/AttachmentDropZone';
|
|
19
|
+
export * from './components/Attachment/AttachmentGroup';
|
|
20
|
+
export * from './components/Attachment/AttachmentTile';
|
|
21
|
+
export * from './components/Attachment/AttachmentViewer';
|
|
18
22
|
export * from './components/Avatar/Avatar';
|
|
19
23
|
export * from './components/AvatarGroup/AvatarGroup';
|
|
20
24
|
export * from './components/Badge/Badge';
|
|
@@ -65,6 +69,7 @@ export * from './components/Globe/Globe';
|
|
|
65
69
|
export * from './components/HoverCard/HoverCard';
|
|
66
70
|
export * from './components/ImageCompare/ImageCompare';
|
|
67
71
|
export * from './components/Input/Input';
|
|
72
|
+
export * from './components/Inspector/InspectorColorPicker';
|
|
68
73
|
export * from './components/Inspector/InspectorDropdown';
|
|
69
74
|
export * from './components/Inspector/InspectorInput';
|
|
70
75
|
export * from './components/Inspector/InspectorSection';
|
package/index.js
CHANGED
|
@@ -10,6 +10,10 @@ import { AnchorNav } from "./components/AnchorNav/AnchorNav.js";
|
|
|
10
10
|
import { AnimatedNumber } from "./components/AnimatedNumber/AnimatedNumber.js";
|
|
11
11
|
import { AppLayout } from "./components/AppLayout/AppLayout.js";
|
|
12
12
|
import { AppSidebar } from "./components/AppSidebar/AppSidebar.js";
|
|
13
|
+
import { AttachmentDropZone } from "./components/Attachment/AttachmentDropZone.js";
|
|
14
|
+
import { AttachmentGroup } from "./components/Attachment/AttachmentGroup.js";
|
|
15
|
+
import { AttachmentTile } from "./components/Attachment/AttachmentTile.js";
|
|
16
|
+
import { AttachmentViewer } from "./components/Attachment/AttachmentViewer.js";
|
|
13
17
|
import { Avatar } from "./components/Avatar/Avatar.js";
|
|
14
18
|
import { AvatarGroup } from "./components/AvatarGroup/AvatarGroup.js";
|
|
15
19
|
import { Badge } from "./components/Badge/Badge.js";
|
|
@@ -60,6 +64,7 @@ import { Globe } from "./components/Globe/Globe.js";
|
|
|
60
64
|
import { HoverCard } from "./components/HoverCard/HoverCard.js";
|
|
61
65
|
import { ImageCompare } from "./components/ImageCompare/ImageCompare.js";
|
|
62
66
|
import { Input } from "./components/Input/Input.js";
|
|
67
|
+
import { InspectorColorPicker } from "./components/Inspector/InspectorColorPicker.js";
|
|
63
68
|
import { InspectorDropdown } from "./components/Inspector/InspectorDropdown.js";
|
|
64
69
|
import { InspectorInput } from "./components/Inspector/InspectorInput.js";
|
|
65
70
|
import { InspectorSection } from "./components/Inspector/InspectorSection.js";
|
|
@@ -135,7 +140,9 @@ import { COMPONENT_COUNT, componentCategories, componentCategoryMetadata, compon
|
|
|
135
140
|
import { TOKEN_COUNT, TOKEN_COUNTS, tokenRegistry } from "./tokens/registry.js";
|
|
136
141
|
import { BLOB_COUNT } from "./components/ShaderField/field.glsl.js";
|
|
137
142
|
import { DEFAULT_SHADER_BLOBS, DEFAULT_SHADER_PARAMS, useShaderField } from "./components/ShaderField/useShaderField.js";
|
|
143
|
+
import { FILE_KINDS, formatBytes, getFileExtension, getFileKind, getFileTypeLabel, matchesAccept, splitFileName } from "./components/Attachment/fileTypes.js";
|
|
138
144
|
import { createStreamReveal, useStreamReveal } from "./components/StreamingText/useStreamReveal.js";
|
|
145
|
+
import { revokeAttachmentUrls, useAttachments } from "./components/Attachment/useAttachments.js";
|
|
139
146
|
export {
|
|
140
147
|
Accordion,
|
|
141
148
|
AgentPlan,
|
|
@@ -148,6 +155,10 @@ export {
|
|
|
148
155
|
AnimatedNumber,
|
|
149
156
|
AppLayout,
|
|
150
157
|
AppSidebar,
|
|
158
|
+
AttachmentDropZone,
|
|
159
|
+
AttachmentGroup,
|
|
160
|
+
AttachmentTile,
|
|
161
|
+
AttachmentViewer,
|
|
151
162
|
Avatar,
|
|
152
163
|
AvatarGroup,
|
|
153
164
|
BLOB_COUNT,
|
|
@@ -192,6 +203,7 @@ export {
|
|
|
192
203
|
EmptyState,
|
|
193
204
|
EntityCard,
|
|
194
205
|
EventCalendar,
|
|
206
|
+
FILE_KINDS,
|
|
195
207
|
Field,
|
|
196
208
|
FieldContext,
|
|
197
209
|
Figure,
|
|
@@ -203,6 +215,7 @@ export {
|
|
|
203
215
|
HoverCard,
|
|
204
216
|
ImageCompare,
|
|
205
217
|
Input,
|
|
218
|
+
InspectorColorPicker,
|
|
206
219
|
InspectorDropdown,
|
|
207
220
|
InspectorInput,
|
|
208
221
|
InspectorSection,
|
|
@@ -286,8 +299,16 @@ export {
|
|
|
286
299
|
componentMetadata,
|
|
287
300
|
componentRegistry,
|
|
288
301
|
createStreamReveal,
|
|
302
|
+
formatBytes,
|
|
303
|
+
getFileExtension,
|
|
304
|
+
getFileKind,
|
|
305
|
+
getFileTypeLabel,
|
|
306
|
+
matchesAccept,
|
|
289
307
|
parseUnifiedDiff,
|
|
308
|
+
revokeAttachmentUrls,
|
|
309
|
+
splitFileName,
|
|
290
310
|
tokenRegistry,
|
|
311
|
+
useAttachments,
|
|
291
312
|
useField,
|
|
292
313
|
useShaderField,
|
|
293
314
|
useStreamReveal,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rift-ds",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"description": "An AI-ready React design system: accessible components on composable tokens, light/dark theming, and CSS-variable overrides.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Robert Ritacca",
|
|
@@ -49,6 +49,14 @@
|
|
|
49
49
|
"types": "./components/Avatar/demoAvatars.d.ts",
|
|
50
50
|
"import": "./components/Avatar/demoAvatars.js"
|
|
51
51
|
},
|
|
52
|
+
"./components/Attachment/fileTypes": {
|
|
53
|
+
"types": "./components/Attachment/fileTypes.d.ts",
|
|
54
|
+
"import": "./components/Attachment/fileTypes.js"
|
|
55
|
+
},
|
|
56
|
+
"./components/Attachment/useAttachments": {
|
|
57
|
+
"types": "./components/Attachment/useAttachments.d.ts",
|
|
58
|
+
"import": "./components/Attachment/useAttachments.js"
|
|
59
|
+
},
|
|
52
60
|
"./components/ShaderField/useShaderField": {
|
|
53
61
|
"types": "./components/ShaderField/useShaderField.d.ts",
|
|
54
62
|
"import": "./components/ShaderField/useShaderField.js"
|
package/tokens/motion.d.ts
CHANGED
|
@@ -42,3 +42,5 @@ export declare const MOTION_SUMMARY_THINK_MS = 900;
|
|
|
42
42
|
export declare const MOTION_SUMMARY_REVEAL_MS = 1600;
|
|
43
43
|
/** How long a suggestion row stages its "generation" (PromptSuggestions' pending shimmer) before a pre-written set reveals — the summary panel's think beat, shorter because it replays every time the set swaps rather than once per mount. A schedule timing, so the reduced-motion guard leaves it alone; the shimmer itself stills through the tokenized duration. */
|
|
44
44
|
export declare const MOTION_SUGGESTIONS_THINK_MS = 600;
|
|
45
|
+
/** The shipped period of one full turn for an auto-rotating surface — mirrors --motion-duration-orbit. Not a timer: Globe reads the live token and divides this by it, so its `autoRotate` speed means exactly what it says at the shipped tempo and scales with a theme's motion. */
|
|
46
|
+
export declare const MOTION_ORBIT_REFERENCE_MS = 120000;
|
package/tokens/motion.js
CHANGED
|
@@ -13,6 +13,7 @@ const MOTION_HOVER_EXIT_GRACE_MS = 600;
|
|
|
13
13
|
const MOTION_SUMMARY_THINK_MS = 900;
|
|
14
14
|
const MOTION_SUMMARY_REVEAL_MS = 1600;
|
|
15
15
|
const MOTION_SUGGESTIONS_THINK_MS = 600;
|
|
16
|
+
const MOTION_ORBIT_REFERENCE_MS = 12e4;
|
|
16
17
|
export {
|
|
17
18
|
MOTION_AUTOPLAY_INTERVAL_MS,
|
|
18
19
|
MOTION_AUTO_DISMISS_MS,
|
|
@@ -22,6 +23,7 @@ export {
|
|
|
22
23
|
MOTION_HOVER_EXIT_GRACE_MS,
|
|
23
24
|
MOTION_HOVER_HIDE_DELAY_MS,
|
|
24
25
|
MOTION_HOVER_SHOW_DELAY_MS,
|
|
26
|
+
MOTION_ORBIT_REFERENCE_MS,
|
|
25
27
|
MOTION_SCROLL_SETTLE_MS,
|
|
26
28
|
MOTION_STREAM_CHAR_INTERVAL_MS,
|
|
27
29
|
MOTION_STREAM_DRAIN_MS,
|
|
@@ -25,7 +25,6 @@
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
html[data-brand="contrast"] {
|
|
28
|
-
--color-action-icon-active: var(--primitive-blue-02);
|
|
29
28
|
--color-action-primary-bg: var(--primitive-blue-07);
|
|
30
29
|
--color-action-primary-bg-active: var(--primitive-blue-09);
|
|
31
30
|
--color-action-primary-bg-hover: var(--primitive-blue-08);
|
|
@@ -170,10 +169,9 @@ html[data-brand="contrast"] {
|
|
|
170
169
|
}
|
|
171
170
|
|
|
172
171
|
html[data-brand="contrast"][data-theme="dark"] {
|
|
173
|
-
--color-action-icon-active: var(--primitive-blue-02);
|
|
174
172
|
--color-action-primary-bg: var(--primitive-blue-07);
|
|
175
|
-
--color-action-primary-bg-active: var(--primitive-blue-
|
|
176
|
-
--color-action-primary-bg-hover: var(--primitive-blue-
|
|
173
|
+
--color-action-primary-bg-active: var(--primitive-blue-09);
|
|
174
|
+
--color-action-primary-bg-hover: var(--primitive-blue-08);
|
|
177
175
|
--color-action-primary-border: var(--primitive-blue-07);
|
|
178
176
|
--color-action-primary-border-secondary: var(--primitive-blue-08);
|
|
179
177
|
--color-action-primary-border-tertiary: var(--primitive-blue-07);
|
package/tokens/presets/coral.css
CHANGED
|
@@ -115,7 +115,6 @@
|
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
html[data-brand="coral"] {
|
|
118
|
-
--color-action-icon-active: var(--primitive-red-01);
|
|
119
118
|
--color-action-primary-bg: var(--primitive-red-07);
|
|
120
119
|
--color-action-primary-bg-active: var(--primitive-red-09);
|
|
121
120
|
--color-action-primary-bg-hover: var(--primitive-red-08);
|
|
@@ -235,10 +234,9 @@ html[data-brand="coral"] {
|
|
|
235
234
|
}
|
|
236
235
|
|
|
237
236
|
html[data-brand="coral"][data-theme="dark"] {
|
|
238
|
-
--color-action-icon-active: var(--primitive-red-01);
|
|
239
237
|
--color-action-primary-bg: var(--primitive-red-07);
|
|
240
|
-
--color-action-primary-bg-active: var(--primitive-red-
|
|
241
|
-
--color-action-primary-bg-hover: var(--primitive-red-
|
|
238
|
+
--color-action-primary-bg-active: var(--primitive-red-09);
|
|
239
|
+
--color-action-primary-bg-hover: var(--primitive-red-08);
|
|
242
240
|
--color-action-primary-border: var(--primitive-red-07);
|
|
243
241
|
--color-action-primary-border-secondary: var(--primitive-red-08);
|
|
244
242
|
--color-action-primary-border-tertiary: var(--primitive-red-07);
|
|
@@ -43,7 +43,6 @@
|
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
html[data-brand="forest"] {
|
|
46
|
-
--color-action-icon-active: var(--primitive-green-02);
|
|
47
46
|
--color-action-primary-bg: var(--primitive-green-07);
|
|
48
47
|
--color-action-primary-bg-active: var(--primitive-green-09);
|
|
49
48
|
--color-action-primary-bg-hover: var(--primitive-green-08);
|
|
@@ -188,10 +187,9 @@ html[data-brand="forest"] {
|
|
|
188
187
|
}
|
|
189
188
|
|
|
190
189
|
html[data-brand="forest"][data-theme="dark"] {
|
|
191
|
-
--color-action-icon-active: var(--primitive-green-02);
|
|
192
190
|
--color-action-primary-bg: var(--primitive-green-07);
|
|
193
|
-
--color-action-primary-bg-active: var(--primitive-green-
|
|
194
|
-
--color-action-primary-bg-hover: var(--primitive-green-
|
|
191
|
+
--color-action-primary-bg-active: var(--primitive-green-09);
|
|
192
|
+
--color-action-primary-bg-hover: var(--primitive-green-08);
|
|
195
193
|
--color-action-primary-border: var(--primitive-green-07);
|
|
196
194
|
--color-action-primary-border-secondary: var(--primitive-green-08);
|
|
197
195
|
--color-action-primary-border-tertiary: var(--primitive-green-07);
|