@robr0/design-system 0.10.0 → 0.12.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 +9 -8
- package/charts.d.ts +1 -0
- package/charts.js +2 -0
- package/components/AgentPlan/AgentPlan.css +14 -3
- package/components/AiButton/AiButton.css +1 -1
- package/components/Alert/Alert.css +9 -0
- package/components/AlertDialog/AlertDialog.css +3 -1
- package/components/AlertDialog/AlertDialog.js +2 -3
- package/components/AppLayout/AppLayout.d.ts +7 -1
- package/components/AppLayout/AppLayout.js +2 -1
- package/components/AppSidebar/AppSidebar.css +113 -40
- package/components/AppSidebar/AppSidebar.d.ts +14 -1
- package/components/AppSidebar/AppSidebar.js +26 -17
- package/components/Badge/Badge.css +4 -5
- package/components/Card/Card.css +7 -2
- package/components/CardStack/CardStack.css +106 -0
- package/components/CardStack/CardStack.d.ts +44 -0
- package/components/CardStack/CardStack.js +140 -0
- package/components/Carousel/Carousel.css +9 -0
- package/components/Carousel/Carousel.js +37 -4
- package/components/Chart/AreaChart.d.ts +5 -1
- package/components/Chart/AreaChart.js +11 -9
- package/components/Chart/BarChart.d.ts +3 -1
- package/components/Chart/BarChart.js +3 -3
- package/components/Chart/Chart.css +45 -0
- package/components/Chart/ComboChart.d.ts +40 -0
- package/components/Chart/ComboChart.js +142 -0
- package/components/Chart/LineChart.d.ts +3 -1
- package/components/Chart/LineChart.js +7 -6
- package/components/Chart/PieChart.d.ts +3 -1
- package/components/Chart/PieChart.js +5 -18
- package/components/Chart/RadarChart.d.ts +3 -1
- package/components/Chart/RadarChart.js +8 -7
- package/components/Chart/RadialChart.d.ts +7 -1
- package/components/Chart/RadialChart.js +53 -58
- package/components/Chart/ScatterChart.d.ts +3 -1
- package/components/Chart/ScatterChart.js +6 -16
- package/components/Chart/StackedBarChart.d.ts +3 -1
- package/components/Chart/StackedBarChart.js +5 -18
- package/components/Chart/Treemap.d.ts +3 -1
- package/components/Chart/Treemap.js +6 -20
- package/components/Chart/palette.d.ts +1 -0
- package/components/Chart/palette.js +17 -0
- package/components/ChatMarker/ChatMarker.css +9 -0
- package/components/ChatMessage/ChatMessage.css +16 -0
- package/components/ChatThread/ChatThread.js +2 -2
- package/components/Chip/Chip.css +9 -0
- package/components/CodeBlock/CodeBlock.css +10 -1
- package/components/CodeBlock/CodeBlock.js +2 -1
- package/components/ColorPicker/ColorPicker.js +10 -0
- package/components/Combobox/Combobox.css +9 -0
- package/components/CommandPalette/CommandPalette.css +9 -0
- package/components/CommandPalette/CommandPalette.js +31 -5
- package/components/Composer/Composer.css +118 -0
- package/components/Composer/Composer.d.ts +7 -0
- package/components/Composer/Composer.js +7 -1
- package/components/ContactCard/ContactCard.css +9 -0
- package/components/ContextMenu/ContextMenu.js +39 -3
- package/components/DatePicker/DatePicker.js +16 -0
- package/components/Dialog/Dialog.css +3 -1
- package/components/Dialog/Dialog.js +5 -4
- package/components/DocumentChip/DocumentChip.css +9 -0
- package/components/Dropdown/Dropdown.js +22 -3
- package/components/DropdownMenu/DropdownMenu.js +43 -6
- package/components/EmptyState/EmptyState.css +9 -0
- package/components/FileInput/FileInput.css +9 -0
- package/components/FunnelChart/FunnelChart.css +41 -0
- package/components/FunnelChart/FunnelChart.d.ts +40 -0
- package/components/FunnelChart/FunnelChart.js +48 -0
- package/components/Globe/Globe.css +155 -0
- package/components/Globe/Globe.d.ts +96 -0
- package/components/Globe/Globe.js +415 -0
- package/components/InterruptCard/InterruptCard.css +27 -17
- package/components/InterruptCard/InterruptCard.d.ts +1 -1
- package/components/InterruptCard/InterruptCard.js +1 -1
- package/components/LegendTile/LegendTile.css +60 -0
- package/components/LegendTile/LegendTile.d.ts +30 -0
- package/components/LegendTile/LegendTile.js +21 -0
- package/components/MapCallout/MapCallout.css +46 -0
- package/components/MapCallout/MapCallout.d.ts +29 -0
- package/components/MapCallout/MapCallout.js +17 -0
- package/components/MapLegend/MapLegend.css +88 -0
- package/components/MapLegend/MapLegend.d.ts +39 -0
- package/components/MapLegend/MapLegend.js +68 -0
- package/components/MessageActions/MessageActions.css +9 -0
- package/components/MessageCard/MessageCard.css +68 -16
- package/components/MessageCard/MessageCard.d.ts +1 -1
- package/components/MessageCard/MessageCard.js +6 -4
- package/components/ModelPicker/ModelPicker.css +4 -1
- package/components/ModelPicker/ModelPicker.js +43 -1
- package/components/NotificationCenter/NotificationCenter.css +9 -0
- package/components/NotificationCenter/NotificationCenter.js +26 -10
- package/components/NumberInput/NumberInput.css +9 -0
- package/components/Panel/Panel.css +26 -0
- package/components/Panel/Panel.d.ts +22 -0
- package/components/Panel/Panel.js +19 -0
- package/components/Popover/Popover.css +3 -1
- package/components/Popover/Popover.js +2 -1
- package/components/SourceChip/SourceChip.css +9 -0
- package/components/Stat/Stat.css +44 -2
- package/components/Stat/Stat.d.ts +3 -1
- package/components/Stat/Stat.js +7 -1
- package/components/Stepper/Stepper.css +9 -0
- package/components/TagInput/TagInput.css +9 -0
- package/components/TimePicker/TimePicker.js +4 -1
- package/components/Toast/Toast.css +32 -11
- package/components/Toast/Toast.js +5 -4
- package/components/ToggleGroup/ToggleGroup.css +9 -0
- package/components/ToolCall/ToolCall.css +18 -6
- package/components/Tooltip/Tooltip.js +20 -16
- package/components/registry.json +70 -0
- package/components/registry.json.d.ts +70 -0
- package/components/registry.json.js +2 -2
- package/index.d.ts +7 -0
- package/index.js +14 -0
- package/package.json +5 -1
- package/tokens/motion.d.ts +23 -0
- package/tokens/motion.js +14 -0
- package/tokens/registry.json +21 -1
- package/tokens/registry.json.d.ts +21 -1
- package/tokens/registry.json.js +1 -1
- package/tokens/tokens-dark.css +14 -0
- package/tokens/tokens-light.css +22 -0
- package/tokens/tokens-primitives.css +2 -0
- package/tokens/tokens-typography.css +32 -5
package/components/registry.json
CHANGED
|
@@ -41,6 +41,11 @@
|
|
|
41
41
|
"label": "Layout",
|
|
42
42
|
"description": "Page scaffolding: app shells, sidebars, dividers, and section headings."
|
|
43
43
|
},
|
|
44
|
+
{
|
|
45
|
+
"id": "maps",
|
|
46
|
+
"label": "Maps",
|
|
47
|
+
"description": "Geographic surfaces for showing where things are and what connects them, from the globe to its legend."
|
|
48
|
+
},
|
|
44
49
|
{
|
|
45
50
|
"id": "navigation",
|
|
46
51
|
"label": "Navigation",
|
|
@@ -191,6 +196,14 @@
|
|
|
191
196
|
"category": "data-display",
|
|
192
197
|
"client": true
|
|
193
198
|
},
|
|
199
|
+
{
|
|
200
|
+
"name": "CardStack",
|
|
201
|
+
"label": "Card stack",
|
|
202
|
+
"slug": "card-stack",
|
|
203
|
+
"description": "A deck of cards showing one at a time, flipped through with a lift-and-settle animation.",
|
|
204
|
+
"category": "data-display",
|
|
205
|
+
"client": true
|
|
206
|
+
},
|
|
194
207
|
{
|
|
195
208
|
"name": "Carousel",
|
|
196
209
|
"label": "Carousel",
|
|
@@ -279,6 +292,15 @@
|
|
|
279
292
|
"category": "forms",
|
|
280
293
|
"client": true
|
|
281
294
|
},
|
|
295
|
+
{
|
|
296
|
+
"name": "ComboChart",
|
|
297
|
+
"label": "Combo chart",
|
|
298
|
+
"slug": "combo-chart",
|
|
299
|
+
"description": "Bar and line series in one chart, with an optional second y-axis for pairs in different units, like spend and ROAS.",
|
|
300
|
+
"category": "charts",
|
|
301
|
+
"client": false,
|
|
302
|
+
"folder": "Chart"
|
|
303
|
+
},
|
|
282
304
|
{
|
|
283
305
|
"name": "Combobox",
|
|
284
306
|
"label": "Combobox",
|
|
@@ -447,6 +469,22 @@
|
|
|
447
469
|
"category": "forms",
|
|
448
470
|
"client": true
|
|
449
471
|
},
|
|
472
|
+
{
|
|
473
|
+
"name": "FunnelChart",
|
|
474
|
+
"label": "Funnel chart",
|
|
475
|
+
"slug": "funnel-chart",
|
|
476
|
+
"description": "Ordered funnel stages as stepped bars with conversion percentages, each sized by its share of the first stage.",
|
|
477
|
+
"category": "charts",
|
|
478
|
+
"client": false
|
|
479
|
+
},
|
|
480
|
+
{
|
|
481
|
+
"name": "Globe",
|
|
482
|
+
"label": "Globe",
|
|
483
|
+
"slug": "globe",
|
|
484
|
+
"description": "An orthographic globe with markers and great-circle arcs, rotated by drag, keys, or a slow spin.",
|
|
485
|
+
"category": "maps",
|
|
486
|
+
"client": true
|
|
487
|
+
},
|
|
450
488
|
{
|
|
451
489
|
"name": "Input",
|
|
452
490
|
"label": "Input",
|
|
@@ -479,6 +517,14 @@
|
|
|
479
517
|
"category": "data-display",
|
|
480
518
|
"client": false
|
|
481
519
|
},
|
|
520
|
+
{
|
|
521
|
+
"name": "LegendTile",
|
|
522
|
+
"label": "Legend tile",
|
|
523
|
+
"slug": "legend-tile",
|
|
524
|
+
"description": "The labelled value tile under a chart: a series dot, the series name, and its reading, on an inset fill.",
|
|
525
|
+
"category": "charts",
|
|
526
|
+
"client": false
|
|
527
|
+
},
|
|
482
528
|
{
|
|
483
529
|
"name": "LineChart",
|
|
484
530
|
"label": "Line chart",
|
|
@@ -496,6 +542,22 @@
|
|
|
496
542
|
"category": "data-display",
|
|
497
543
|
"client": false
|
|
498
544
|
},
|
|
545
|
+
{
|
|
546
|
+
"name": "MapCallout",
|
|
547
|
+
"label": "Map callout",
|
|
548
|
+
"slug": "map-callout",
|
|
549
|
+
"description": "The annotation beside a map point: a name in capitals over monospace readout lines.",
|
|
550
|
+
"category": "maps",
|
|
551
|
+
"client": false
|
|
552
|
+
},
|
|
553
|
+
{
|
|
554
|
+
"name": "MapLegend",
|
|
555
|
+
"label": "Map legend",
|
|
556
|
+
"slug": "map-legend",
|
|
557
|
+
"description": "The corner block of a map: its name, what it shows, and the key to its markers.",
|
|
558
|
+
"category": "maps",
|
|
559
|
+
"client": false
|
|
560
|
+
},
|
|
499
561
|
{
|
|
500
562
|
"name": "MessageActions",
|
|
501
563
|
"label": "Message actions",
|
|
@@ -560,6 +622,14 @@
|
|
|
560
622
|
"category": "navigation",
|
|
561
623
|
"client": true
|
|
562
624
|
},
|
|
625
|
+
{
|
|
626
|
+
"name": "Panel",
|
|
627
|
+
"label": "Panel",
|
|
628
|
+
"slug": "panel",
|
|
629
|
+
"description": "The plain dashboard surface: a rounded container with no border or shadow, just padding and a gap.",
|
|
630
|
+
"category": "layout",
|
|
631
|
+
"client": false
|
|
632
|
+
},
|
|
563
633
|
{
|
|
564
634
|
"name": "PieChart",
|
|
565
635
|
"label": "Pie chart",
|
|
@@ -41,6 +41,11 @@ declare const _default: {
|
|
|
41
41
|
"label": "Layout",
|
|
42
42
|
"description": "Page scaffolding: app shells, sidebars, dividers, and section headings."
|
|
43
43
|
},
|
|
44
|
+
{
|
|
45
|
+
"id": "maps",
|
|
46
|
+
"label": "Maps",
|
|
47
|
+
"description": "Geographic surfaces for showing where things are and what connects them, from the globe to its legend."
|
|
48
|
+
},
|
|
44
49
|
{
|
|
45
50
|
"id": "navigation",
|
|
46
51
|
"label": "Navigation",
|
|
@@ -191,6 +196,14 @@ declare const _default: {
|
|
|
191
196
|
"category": "data-display",
|
|
192
197
|
"client": true
|
|
193
198
|
},
|
|
199
|
+
{
|
|
200
|
+
"name": "CardStack",
|
|
201
|
+
"label": "Card stack",
|
|
202
|
+
"slug": "card-stack",
|
|
203
|
+
"description": "A deck of cards showing one at a time, flipped through with a lift-and-settle animation.",
|
|
204
|
+
"category": "data-display",
|
|
205
|
+
"client": true
|
|
206
|
+
},
|
|
194
207
|
{
|
|
195
208
|
"name": "Carousel",
|
|
196
209
|
"label": "Carousel",
|
|
@@ -279,6 +292,15 @@ declare const _default: {
|
|
|
279
292
|
"category": "forms",
|
|
280
293
|
"client": true
|
|
281
294
|
},
|
|
295
|
+
{
|
|
296
|
+
"name": "ComboChart",
|
|
297
|
+
"label": "Combo chart",
|
|
298
|
+
"slug": "combo-chart",
|
|
299
|
+
"description": "Bar and line series in one chart, with an optional second y-axis for pairs in different units, like spend and ROAS.",
|
|
300
|
+
"category": "charts",
|
|
301
|
+
"client": false,
|
|
302
|
+
"folder": "Chart"
|
|
303
|
+
},
|
|
282
304
|
{
|
|
283
305
|
"name": "Combobox",
|
|
284
306
|
"label": "Combobox",
|
|
@@ -447,6 +469,22 @@ declare const _default: {
|
|
|
447
469
|
"category": "forms",
|
|
448
470
|
"client": true
|
|
449
471
|
},
|
|
472
|
+
{
|
|
473
|
+
"name": "FunnelChart",
|
|
474
|
+
"label": "Funnel chart",
|
|
475
|
+
"slug": "funnel-chart",
|
|
476
|
+
"description": "Ordered funnel stages as stepped bars with conversion percentages, each sized by its share of the first stage.",
|
|
477
|
+
"category": "charts",
|
|
478
|
+
"client": false
|
|
479
|
+
},
|
|
480
|
+
{
|
|
481
|
+
"name": "Globe",
|
|
482
|
+
"label": "Globe",
|
|
483
|
+
"slug": "globe",
|
|
484
|
+
"description": "An orthographic globe with markers and great-circle arcs, rotated by drag, keys, or a slow spin.",
|
|
485
|
+
"category": "maps",
|
|
486
|
+
"client": true
|
|
487
|
+
},
|
|
450
488
|
{
|
|
451
489
|
"name": "Input",
|
|
452
490
|
"label": "Input",
|
|
@@ -479,6 +517,14 @@ declare const _default: {
|
|
|
479
517
|
"category": "data-display",
|
|
480
518
|
"client": false
|
|
481
519
|
},
|
|
520
|
+
{
|
|
521
|
+
"name": "LegendTile",
|
|
522
|
+
"label": "Legend tile",
|
|
523
|
+
"slug": "legend-tile",
|
|
524
|
+
"description": "The labelled value tile under a chart: a series dot, the series name, and its reading, on an inset fill.",
|
|
525
|
+
"category": "charts",
|
|
526
|
+
"client": false
|
|
527
|
+
},
|
|
482
528
|
{
|
|
483
529
|
"name": "LineChart",
|
|
484
530
|
"label": "Line chart",
|
|
@@ -496,6 +542,22 @@ declare const _default: {
|
|
|
496
542
|
"category": "data-display",
|
|
497
543
|
"client": false
|
|
498
544
|
},
|
|
545
|
+
{
|
|
546
|
+
"name": "MapCallout",
|
|
547
|
+
"label": "Map callout",
|
|
548
|
+
"slug": "map-callout",
|
|
549
|
+
"description": "The annotation beside a map point: a name in capitals over monospace readout lines.",
|
|
550
|
+
"category": "maps",
|
|
551
|
+
"client": false
|
|
552
|
+
},
|
|
553
|
+
{
|
|
554
|
+
"name": "MapLegend",
|
|
555
|
+
"label": "Map legend",
|
|
556
|
+
"slug": "map-legend",
|
|
557
|
+
"description": "The corner block of a map: its name, what it shows, and the key to its markers.",
|
|
558
|
+
"category": "maps",
|
|
559
|
+
"client": false
|
|
560
|
+
},
|
|
499
561
|
{
|
|
500
562
|
"name": "MessageActions",
|
|
501
563
|
"label": "Message actions",
|
|
@@ -560,6 +622,14 @@ declare const _default: {
|
|
|
560
622
|
"category": "navigation",
|
|
561
623
|
"client": true
|
|
562
624
|
},
|
|
625
|
+
{
|
|
626
|
+
"name": "Panel",
|
|
627
|
+
"label": "Panel",
|
|
628
|
+
"slug": "panel",
|
|
629
|
+
"description": "The plain dashboard surface: a rounded container with no border or shadow, just padding and a gap.",
|
|
630
|
+
"category": "layout",
|
|
631
|
+
"client": false
|
|
632
|
+
},
|
|
563
633
|
{
|
|
564
634
|
"name": "PieChart",
|
|
565
635
|
"label": "Pie chart",
|
|
@@ -1,5 +1,5 @@
|
|
|
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": "layout", "label": "Layout", "description": "Page scaffolding: app shells, sidebars, dividers, and section headings." }, { "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":"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 on a transparent field, ringed by a slowly turning gradient and a soft glow.","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":"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, category headings, and 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"},{"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":"Badge","label":"Badge","slug":"badge","description":"Small inline status labels with info, positive, warning, error, and neutral variants.","category":"data-display","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"},{"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 and secondary button 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":"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 and secondary 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":"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, 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":"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":"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":"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"},{"name":"LinkList","label":"Link list","slug":"link-list","description":"Linked items with logo, label, and subtitle.","category":"data-display","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":"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":"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"},{"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":false},{"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"},{"name":"RadialChart","label":"Radial chart","slug":"radial-chart","description":"Concentric progress rings for completion and KPI readouts.","category":"charts","client":false,"folder":"Chart"},{"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":"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":"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"},{"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":"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":"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":"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"},{"name":"Stat","label":"Stat","slug":"stat","description":"Headline metrics with labels and trend deltas.","category":"data-display","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":"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":"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":"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":"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"}]`);
|
|
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": "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, from the globe to its legend." }, { "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":"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 on a transparent field, ringed by a slowly turning gradient and a soft glow.","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":"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, category headings, and 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"},{"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":"Badge","label":"Badge","slug":"badge","description":"Small inline status labels with info, positive, warning, error, and neutral variants.","category":"data-display","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"},{"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 and secondary button 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 and secondary 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"},{"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, 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":"FunnelChart","label":"Funnel chart","slug":"funnel-chart","description":"Ordered funnel stages as stepped bars with conversion percentages, each sized by its share of the first stage.","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":"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":"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":"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"},{"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":"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"},{"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":false},{"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"},{"name":"RadialChart","label":"Radial chart","slug":"radial-chart","description":"Concentric progress rings for completion and KPI readouts.","category":"charts","client":false,"folder":"Chart"},{"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":"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":"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"},{"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":"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":"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":"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"},{"name":"Stat","label":"Stat","slug":"stat","description":"Headline metrics with labels and trend deltas.","category":"data-display","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":"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":"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":"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":"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"}]`);
|
|
3
3
|
const registry = {
|
|
4
4
|
categories,
|
|
5
5
|
components
|
package/index.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ export * from './components/Breadcrumb/Breadcrumb';
|
|
|
19
19
|
export * from './components/Button/Button';
|
|
20
20
|
export * from './components/ButtonGroup/ButtonGroup';
|
|
21
21
|
export * from './components/Card/Card';
|
|
22
|
+
export * from './components/CardStack/CardStack';
|
|
22
23
|
export * from './components/Carousel/Carousel';
|
|
23
24
|
export * from './components/ChatHeader/ChatHeader';
|
|
24
25
|
export * from './components/ChatMarker/ChatMarker';
|
|
@@ -52,11 +53,16 @@ export * from './components/Field/Field';
|
|
|
52
53
|
export * from './components/Field/FieldContext';
|
|
53
54
|
export * from './components/Figure/Figure';
|
|
54
55
|
export * from './components/FileInput/FileInput';
|
|
56
|
+
export * from './components/FunnelChart/FunnelChart';
|
|
57
|
+
export * from './components/Globe/Globe';
|
|
55
58
|
export * from './components/Input/Input';
|
|
56
59
|
export * from './components/Instructions/Instructions';
|
|
57
60
|
export * from './components/InterruptCard/InterruptCard';
|
|
58
61
|
export * from './components/Kbd/Kbd';
|
|
62
|
+
export * from './components/LegendTile/LegendTile';
|
|
59
63
|
export * from './components/LinkList/LinkList';
|
|
64
|
+
export * from './components/MapCallout/MapCallout';
|
|
65
|
+
export * from './components/MapLegend/MapLegend';
|
|
60
66
|
export * from './components/MessageActions/MessageActions';
|
|
61
67
|
export * from './components/MessageCard/MessageCard';
|
|
62
68
|
export * from './components/ModelPicker/ModelPicker';
|
|
@@ -65,6 +71,7 @@ export * from './components/NavList/NavList';
|
|
|
65
71
|
export * from './components/NotificationCenter/NotificationCenter';
|
|
66
72
|
export * from './components/NumberInput/NumberInput';
|
|
67
73
|
export * from './components/Pagination/Pagination';
|
|
74
|
+
export * from './components/Panel/Panel';
|
|
68
75
|
export * from './components/PinInput/PinInput';
|
|
69
76
|
export * from './components/Popover/Popover';
|
|
70
77
|
export * from './components/ProgressBar/ProgressBar';
|
package/index.js
CHANGED
|
@@ -14,6 +14,7 @@ import { Breadcrumb } from "./components/Breadcrumb/Breadcrumb.js";
|
|
|
14
14
|
import { Button } from "./components/Button/Button.js";
|
|
15
15
|
import { ButtonGroup } from "./components/ButtonGroup/ButtonGroup.js";
|
|
16
16
|
import { Card } from "./components/Card/Card.js";
|
|
17
|
+
import { CardStack } from "./components/CardStack/CardStack.js";
|
|
17
18
|
import { Carousel } from "./components/Carousel/Carousel.js";
|
|
18
19
|
import { ChatHeader } from "./components/ChatHeader/ChatHeader.js";
|
|
19
20
|
import { ChatMarker } from "./components/ChatMarker/ChatMarker.js";
|
|
@@ -47,11 +48,16 @@ import { Field } from "./components/Field/Field.js";
|
|
|
47
48
|
import { FieldContext, useField } from "./components/Field/FieldContext.js";
|
|
48
49
|
import { Figure } from "./components/Figure/Figure.js";
|
|
49
50
|
import { FileInput } from "./components/FileInput/FileInput.js";
|
|
51
|
+
import { FunnelChart } from "./components/FunnelChart/FunnelChart.js";
|
|
52
|
+
import { Globe } from "./components/Globe/Globe.js";
|
|
50
53
|
import { Input } from "./components/Input/Input.js";
|
|
51
54
|
import { Instructions } from "./components/Instructions/Instructions.js";
|
|
52
55
|
import { InterruptCard } from "./components/InterruptCard/InterruptCard.js";
|
|
53
56
|
import { Kbd } from "./components/Kbd/Kbd.js";
|
|
57
|
+
import { LegendTile } from "./components/LegendTile/LegendTile.js";
|
|
54
58
|
import { LinkList } from "./components/LinkList/LinkList.js";
|
|
59
|
+
import { MapCallout } from "./components/MapCallout/MapCallout.js";
|
|
60
|
+
import { MapLegend } from "./components/MapLegend/MapLegend.js";
|
|
55
61
|
import { MessageActions } from "./components/MessageActions/MessageActions.js";
|
|
56
62
|
import { MessageCard } from "./components/MessageCard/MessageCard.js";
|
|
57
63
|
import { ModelPicker } from "./components/ModelPicker/ModelPicker.js";
|
|
@@ -60,6 +66,7 @@ import { NavList } from "./components/NavList/NavList.js";
|
|
|
60
66
|
import { NotificationCenter, NotificationItem } from "./components/NotificationCenter/NotificationCenter.js";
|
|
61
67
|
import { NumberInput } from "./components/NumberInput/NumberInput.js";
|
|
62
68
|
import { Pagination } from "./components/Pagination/Pagination.js";
|
|
69
|
+
import { Panel } from "./components/Panel/Panel.js";
|
|
63
70
|
import { PinInput } from "./components/PinInput/PinInput.js";
|
|
64
71
|
import { Popover } from "./components/Popover/Popover.js";
|
|
65
72
|
import { ProgressBar } from "./components/ProgressBar/ProgressBar.js";
|
|
@@ -114,6 +121,7 @@ export {
|
|
|
114
121
|
ButtonGroup,
|
|
115
122
|
COMPONENT_COUNT,
|
|
116
123
|
Card,
|
|
124
|
+
CardStack,
|
|
117
125
|
Carousel,
|
|
118
126
|
ChatHeader,
|
|
119
127
|
ChatMarker,
|
|
@@ -150,11 +158,16 @@ export {
|
|
|
150
158
|
FieldContext,
|
|
151
159
|
Figure,
|
|
152
160
|
FileInput,
|
|
161
|
+
FunnelChart,
|
|
162
|
+
Globe,
|
|
153
163
|
Input,
|
|
154
164
|
Instructions,
|
|
155
165
|
InterruptCard,
|
|
156
166
|
Kbd,
|
|
167
|
+
LegendTile,
|
|
157
168
|
LinkList,
|
|
169
|
+
MapCallout,
|
|
170
|
+
MapLegend,
|
|
158
171
|
MessageActions,
|
|
159
172
|
MessageCard,
|
|
160
173
|
ModelPicker,
|
|
@@ -164,6 +177,7 @@ export {
|
|
|
164
177
|
NotificationItem,
|
|
165
178
|
NumberInput,
|
|
166
179
|
Pagination,
|
|
180
|
+
Panel,
|
|
167
181
|
PinInput,
|
|
168
182
|
Popover,
|
|
169
183
|
ProgressBar,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@robr0/design-system",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0",
|
|
4
4
|
"description": "An AI-ready React design system: accessible components on composable tokens, light/dark theming, and CSS-variable overrides.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -50,6 +50,10 @@
|
|
|
50
50
|
"types": "./tokens/registry.d.ts",
|
|
51
51
|
"import": "./tokens/registry.js"
|
|
52
52
|
},
|
|
53
|
+
"./tokens/motion": {
|
|
54
|
+
"types": "./tokens/motion.d.ts",
|
|
55
|
+
"import": "./tokens/motion.js"
|
|
56
|
+
},
|
|
53
57
|
"./components/*": {
|
|
54
58
|
"types": "./components/*.d.ts",
|
|
55
59
|
"import": "./components/*.js"
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* JS-driven motion timings — the TypeScript side of the motion tokens.
|
|
3
|
+
* CSS transitions read the `--motion-*` custom properties; these constants
|
|
4
|
+
* are the single home for timings that live in JavaScript timers, where a
|
|
5
|
+
* CSS variable cannot reach. Components use them as defaults, so a single
|
|
6
|
+
* instance can still be tuned through its component's own props.
|
|
7
|
+
*
|
|
8
|
+
* These are schedule timings (when something starts, stops, or is taken
|
|
9
|
+
* away), not animation durations, so the reduced-motion guard in
|
|
10
|
+
* tokens-motion.css deliberately does not apply to them.
|
|
11
|
+
*/
|
|
12
|
+
/** Delay before a hover-triggered overlay appears, filtering pass-through hovers. */
|
|
13
|
+
export declare const MOTION_HOVER_SHOW_DELAY_MS = 300;
|
|
14
|
+
/** Grace period before a hover-triggered overlay or submenu closes, forgiving a wobbly pointer path. */
|
|
15
|
+
export declare const MOTION_HOVER_HIDE_DELAY_MS = 150;
|
|
16
|
+
/** How long a transient notification stays before dismissing itself. */
|
|
17
|
+
export declare const MOTION_AUTO_DISMISS_MS = 5000;
|
|
18
|
+
/** Interval between automatic slide advances. */
|
|
19
|
+
export declare const MOTION_AUTOPLAY_INTERVAL_MS = 5000;
|
|
20
|
+
/** How long momentary confirmation feedback (a copied state) holds before resetting. */
|
|
21
|
+
export declare const MOTION_FEEDBACK_RESET_MS = 2000;
|
|
22
|
+
/** How long after the last scroll event a scroll surface is considered settled. */
|
|
23
|
+
export declare const MOTION_SCROLL_SETTLE_MS = 600;
|
package/tokens/motion.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
const MOTION_HOVER_SHOW_DELAY_MS = 300;
|
|
2
|
+
const MOTION_HOVER_HIDE_DELAY_MS = 150;
|
|
3
|
+
const MOTION_AUTO_DISMISS_MS = 5e3;
|
|
4
|
+
const MOTION_AUTOPLAY_INTERVAL_MS = 5e3;
|
|
5
|
+
const MOTION_FEEDBACK_RESET_MS = 2e3;
|
|
6
|
+
const MOTION_SCROLL_SETTLE_MS = 600;
|
|
7
|
+
export {
|
|
8
|
+
MOTION_AUTOPLAY_INTERVAL_MS,
|
|
9
|
+
MOTION_AUTO_DISMISS_MS,
|
|
10
|
+
MOTION_FEEDBACK_RESET_MS,
|
|
11
|
+
MOTION_HOVER_HIDE_DELAY_MS,
|
|
12
|
+
MOTION_HOVER_SHOW_DELAY_MS,
|
|
13
|
+
MOTION_SCROLL_SETTLE_MS
|
|
14
|
+
};
|
package/tokens/registry.json
CHANGED
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
"--color-bg-container-primary-transparent",
|
|
29
29
|
"--color-bg-container-secondary",
|
|
30
30
|
"--color-bg-container-tertiary",
|
|
31
|
+
"--color-bg-glass",
|
|
31
32
|
"--color-bg-page-inverse",
|
|
32
33
|
"--color-bg-page-primary",
|
|
33
34
|
"--color-chart-contribution-0",
|
|
@@ -35,6 +36,13 @@
|
|
|
35
36
|
"--color-chart-contribution-2",
|
|
36
37
|
"--color-chart-contribution-3",
|
|
37
38
|
"--color-chart-contribution-4",
|
|
39
|
+
"--color-chart-series-1",
|
|
40
|
+
"--color-chart-series-2",
|
|
41
|
+
"--color-chart-series-3",
|
|
42
|
+
"--color-chart-series-4",
|
|
43
|
+
"--color-chart-series-5",
|
|
44
|
+
"--color-chart-series-6",
|
|
45
|
+
"--color-chart-series-7",
|
|
38
46
|
"--color-chat-bubble-received-bg",
|
|
39
47
|
"--color-chat-bubble-received-text",
|
|
40
48
|
"--color-chat-bubble-sent-bg",
|
|
@@ -81,9 +89,16 @@
|
|
|
81
89
|
"--color-text-on-inverse",
|
|
82
90
|
"--color-text-primary",
|
|
83
91
|
"--color-text-secondary",
|
|
84
|
-
"--color-text-tertiary"
|
|
92
|
+
"--color-text-tertiary",
|
|
93
|
+
"--color-trend-down",
|
|
94
|
+
"--color-trend-up"
|
|
85
95
|
],
|
|
86
96
|
"typography": [
|
|
97
|
+
"--font-caption-family",
|
|
98
|
+
"--font-caption-letter-spacing",
|
|
99
|
+
"--font-caption-line-height",
|
|
100
|
+
"--font-caption-size",
|
|
101
|
+
"--font-caption-weight",
|
|
87
102
|
"--font-display-1-family",
|
|
88
103
|
"--font-display-1-letter-spacing",
|
|
89
104
|
"--font-display-1-line-height",
|
|
@@ -121,6 +136,11 @@
|
|
|
121
136
|
"--font-mega-2-line-height",
|
|
122
137
|
"--font-mega-2-size",
|
|
123
138
|
"--font-mega-2-weight",
|
|
139
|
+
"--font-overline-family",
|
|
140
|
+
"--font-overline-letter-spacing",
|
|
141
|
+
"--font-overline-line-height",
|
|
142
|
+
"--font-overline-size",
|
|
143
|
+
"--font-overline-weight",
|
|
124
144
|
"--font-paragraph-em-family",
|
|
125
145
|
"--font-paragraph-em-letter-spacing",
|
|
126
146
|
"--font-paragraph-em-line-height",
|