@robr0/design-system 0.9.0 → 0.11.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 +16 -10
- 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/AppSidebar/AppSidebar.css +22 -3
- package/components/AppSidebar/AppSidebar.d.ts +6 -2
- package/components/AppSidebar/AppSidebar.js +67 -36
- 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.js +6 -5
- package/components/Chart/BarChart.js +1 -1
- package/components/Chart/LineChart.js +4 -3
- package/components/Chart/PieChart.js +2 -15
- package/components/Chart/RadarChart.js +5 -4
- package/components/Chart/RadialChart.js +2 -15
- package/components/Chart/ScatterChart.js +3 -13
- package/components/Chart/StackedBarChart.js +2 -15
- package/components/Chart/Treemap.js +3 -17
- package/components/Chart/palette.d.ts +1 -0
- package/components/Chart/palette.js +19 -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/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/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/Popover/Popover.css +3 -1
- package/components/Popover/Popover.js +2 -1
- package/components/SectionTitle/SectionTitle.css +8 -0
- package/components/SectionTitle/SectionTitle.d.ts +3 -1
- package/components/SectionTitle/SectionTitle.js +6 -1
- package/components/SourceChip/SourceChip.css +9 -0
- package/components/Stat/Stat.css +9 -0
- 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 +37 -0
- package/components/registry.json.d.ts +37 -0
- package/components/registry.json.js +2 -2
- package/index.d.ts +4 -0
- package/index.js +8 -0
- package/package.json +5 -1
- package/tokens/motion.d.ts +23 -0
- package/tokens/motion.js +14 -0
- package/tokens/registry.json +17 -0
- package/tokens/registry.json.d.ts +17 -0
- package/tokens/registry.json.js +1 -1
- package/tokens/tokens-dark.css +28 -13
- package/tokens/tokens-light.css +26 -12
- package/tokens/tokens-typography.css +20 -0
|
@@ -4,9 +4,14 @@ import "./SectionTitle.css";
|
|
|
4
4
|
function SectionTitle({
|
|
5
5
|
title,
|
|
6
6
|
trailing,
|
|
7
|
+
divider = true,
|
|
7
8
|
className
|
|
8
9
|
}) {
|
|
9
|
-
const classes = [
|
|
10
|
+
const classes = [
|
|
11
|
+
"ds-section-title",
|
|
12
|
+
!divider && "ds-section-title--no-divider",
|
|
13
|
+
className
|
|
14
|
+
].filter(Boolean).join(" ");
|
|
10
15
|
return /* @__PURE__ */ jsxs("div", { className: classes, children: [
|
|
11
16
|
/* @__PURE__ */ jsx("h2", { className: "ds-section-title__heading", children: title }),
|
|
12
17
|
trailing !== void 0 && trailing !== null && /* @__PURE__ */ jsx("span", { className: "ds-section-title__trailing", children: trailing })
|
|
@@ -100,3 +100,12 @@
|
|
|
100
100
|
outline: 2px solid var(--color-action-primary-bg);
|
|
101
101
|
outline-offset: 2px;
|
|
102
102
|
}
|
|
103
|
+
|
|
104
|
+
/* Icons take the colour of the text around them. Explicit, not just
|
|
105
|
+
inherited by default: a consumer stylesheet that sets a colour on
|
|
106
|
+
.material-symbols-rounded itself (a common global default) would
|
|
107
|
+
otherwise override inheritance and detach the icon from the state
|
|
108
|
+
colours this component sets on its parents. */
|
|
109
|
+
.ds-source-chip .material-symbols-rounded {
|
|
110
|
+
color: inherit;
|
|
111
|
+
}
|
package/components/Stat/Stat.css
CHANGED
|
@@ -76,3 +76,12 @@
|
|
|
76
76
|
.ds-stat__delta--neutral {
|
|
77
77
|
color: var(--color-text-tertiary);
|
|
78
78
|
}
|
|
79
|
+
|
|
80
|
+
/* Icons take the colour of the text around them. Explicit, not just
|
|
81
|
+
inherited by default: a consumer stylesheet that sets a colour on
|
|
82
|
+
.material-symbols-rounded itself (a common global default) would
|
|
83
|
+
otherwise override inheritance and detach the icon from the state
|
|
84
|
+
colours this component sets on its parents. */
|
|
85
|
+
.ds-stat .material-symbols-rounded {
|
|
86
|
+
color: inherit;
|
|
87
|
+
}
|
|
@@ -205,3 +205,12 @@ button.ds-stepper__content:hover .ds-stepper__label {
|
|
|
205
205
|
height: auto;
|
|
206
206
|
transform: translateX(-50%);
|
|
207
207
|
}
|
|
208
|
+
|
|
209
|
+
/* Icons take the colour of the text around them. Explicit, not just
|
|
210
|
+
inherited by default: a consumer stylesheet that sets a colour on
|
|
211
|
+
.material-symbols-rounded itself (a common global default) would
|
|
212
|
+
otherwise override inheritance and detach the icon from the state
|
|
213
|
+
colours this component sets on its parents. */
|
|
214
|
+
.ds-stepper .material-symbols-rounded {
|
|
215
|
+
color: inherit;
|
|
216
|
+
}
|
|
@@ -158,3 +158,12 @@
|
|
|
158
158
|
line-height: var(--font-paragraph-sm-line-height);
|
|
159
159
|
letter-spacing: var(--font-paragraph-sm-letter-spacing);
|
|
160
160
|
}
|
|
161
|
+
|
|
162
|
+
/* Icons take the colour of the text around them. Explicit, not just
|
|
163
|
+
inherited by default: a consumer stylesheet that sets a colour on
|
|
164
|
+
.material-symbols-rounded itself (a common global default) would
|
|
165
|
+
otherwise override inheritance and detach the icon from the state
|
|
166
|
+
colours this component sets on its parents. */
|
|
167
|
+
.ds-taginput .material-symbols-rounded {
|
|
168
|
+
color: inherit;
|
|
169
|
+
}
|
|
@@ -158,6 +158,7 @@ const TimePicker = React.forwardRef(
|
|
|
158
158
|
focusedEl?.scrollIntoView({ block: "nearest" });
|
|
159
159
|
}
|
|
160
160
|
}, [focusedIndex, isOpen]);
|
|
161
|
+
const activeOptionId = isOpen && focusedIndex >= 0 && timeOptions[focusedIndex] ? `${inputId}-option-${focusedIndex}` : void 0;
|
|
161
162
|
return /* @__PURE__ */ jsxs(
|
|
162
163
|
Field,
|
|
163
164
|
{
|
|
@@ -181,7 +182,8 @@ const TimePicker = React.forwardRef(
|
|
|
181
182
|
className: `${baseClass}__trigger`,
|
|
182
183
|
"aria-expanded": isOpen,
|
|
183
184
|
"aria-haspopup": "listbox",
|
|
184
|
-
"aria-controls": `${inputId}-listbox
|
|
185
|
+
"aria-controls": isOpen ? `${inputId}-listbox` : void 0,
|
|
186
|
+
"aria-activedescendant": activeOptionId,
|
|
185
187
|
"aria-describedby": helperText ? `${inputId}-helper` : rest["aria-describedby"],
|
|
186
188
|
"aria-invalid": error || void 0,
|
|
187
189
|
disabled,
|
|
@@ -211,6 +213,7 @@ const TimePicker = React.forwardRef(
|
|
|
211
213
|
children: timeOptions.map((option, index) => /* @__PURE__ */ jsxs(
|
|
212
214
|
"li",
|
|
213
215
|
{
|
|
216
|
+
id: `${inputId}-option-${index}`,
|
|
214
217
|
className: [
|
|
215
218
|
`${baseClass}__option`,
|
|
216
219
|
option.value === selectedValue ? `${baseClass}__option--selected` : "",
|
|
@@ -1,11 +1,23 @@
|
|
|
1
1
|
/* ============================================
|
|
2
2
|
TOAST CONTAINER
|
|
3
3
|
Fixed position stack for notifications
|
|
4
|
+
|
|
5
|
+
Consumer hooks (custom properties with fallbacks, so the defaults hold
|
|
6
|
+
until a consumer sets them): a page that keeps its own fixed chrome in a
|
|
7
|
+
corner (a chat launcher, a cookie bar, a docked panel) sets the matching
|
|
8
|
+
inset so toasts stack clear of it rather than on top of it, and raises
|
|
9
|
+
--ds-toast-z above its own overlay layers. Toasts are transient feedback
|
|
10
|
+
and must be seen; a launcher can be covered for five seconds.
|
|
11
|
+
--ds-toast-z stacking order (default 200, the library's top)
|
|
12
|
+
--ds-toast-inset-top gap from the top edge for top-* placements
|
|
13
|
+
--ds-toast-inset-bottom gap from the bottom edge for bottom-* placements
|
|
14
|
+
--ds-toast-inset-left gap from the left edge for *-left placements
|
|
15
|
+
--ds-toast-inset-right gap from the right edge for *-right placements
|
|
4
16
|
============================================ */
|
|
5
17
|
|
|
6
18
|
.ds-toast-container {
|
|
7
19
|
position: fixed;
|
|
8
|
-
z-index: 200;
|
|
20
|
+
z-index: var(--ds-toast-z, 200);
|
|
9
21
|
display: flex;
|
|
10
22
|
flex-direction: column;
|
|
11
23
|
gap: var(--gap-sm); /* 8px */
|
|
@@ -14,38 +26,38 @@
|
|
|
14
26
|
}
|
|
15
27
|
|
|
16
28
|
.ds-toast-container--top-right {
|
|
17
|
-
top: 0;
|
|
18
|
-
right: 0;
|
|
29
|
+
top: var(--ds-toast-inset-top, 0);
|
|
30
|
+
right: var(--ds-toast-inset-right, 0);
|
|
19
31
|
align-items: flex-end;
|
|
20
32
|
}
|
|
21
33
|
|
|
22
34
|
.ds-toast-container--top-left {
|
|
23
|
-
top: 0;
|
|
24
|
-
left: 0;
|
|
35
|
+
top: var(--ds-toast-inset-top, 0);
|
|
36
|
+
left: var(--ds-toast-inset-left, 0);
|
|
25
37
|
align-items: flex-start;
|
|
26
38
|
}
|
|
27
39
|
|
|
28
40
|
.ds-toast-container--bottom-right {
|
|
29
|
-
bottom: 0;
|
|
30
|
-
right: 0;
|
|
41
|
+
bottom: var(--ds-toast-inset-bottom, 0);
|
|
42
|
+
right: var(--ds-toast-inset-right, 0);
|
|
31
43
|
align-items: flex-end;
|
|
32
44
|
}
|
|
33
45
|
|
|
34
46
|
.ds-toast-container--bottom-left {
|
|
35
|
-
bottom: 0;
|
|
36
|
-
left: 0;
|
|
47
|
+
bottom: var(--ds-toast-inset-bottom, 0);
|
|
48
|
+
left: var(--ds-toast-inset-left, 0);
|
|
37
49
|
align-items: flex-start;
|
|
38
50
|
}
|
|
39
51
|
|
|
40
52
|
.ds-toast-container--top-center {
|
|
41
|
-
top: 0;
|
|
53
|
+
top: var(--ds-toast-inset-top, 0);
|
|
42
54
|
left: 50%;
|
|
43
55
|
transform: translateX(-50%);
|
|
44
56
|
align-items: center;
|
|
45
57
|
}
|
|
46
58
|
|
|
47
59
|
.ds-toast-container--bottom-center {
|
|
48
|
-
bottom: 0;
|
|
60
|
+
bottom: var(--ds-toast-inset-bottom, 0);
|
|
49
61
|
left: 50%;
|
|
50
62
|
transform: translateX(-50%);
|
|
51
63
|
align-items: center;
|
|
@@ -340,3 +352,12 @@
|
|
|
340
352
|
transform: scaleX(0);
|
|
341
353
|
}
|
|
342
354
|
}
|
|
355
|
+
|
|
356
|
+
/* Icons take the colour of the text around them. Explicit, not just
|
|
357
|
+
inherited by default: a consumer stylesheet that sets a colour on
|
|
358
|
+
.material-symbols-rounded itself (a common global default) would
|
|
359
|
+
otherwise override inheritance and detach the icon from the state
|
|
360
|
+
colours this component sets on its parents. */
|
|
361
|
+
.ds-toast .material-symbols-rounded {
|
|
362
|
+
color: inherit;
|
|
363
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
3
3
|
import { useState, useSyncExternalStore, useCallback, useContext, createContext, useRef, useEffect } from "react";
|
|
4
|
+
import { MOTION_AUTO_DISMISS_MS } from "../../tokens/motion.js";
|
|
4
5
|
import ReactDOM from "react-dom";
|
|
5
6
|
import "./Toast.css";
|
|
6
7
|
import "../../fonts/material-symbols.css";
|
|
@@ -62,8 +63,7 @@ const ToastItem = ({
|
|
|
62
63
|
"div",
|
|
63
64
|
{
|
|
64
65
|
className: classes,
|
|
65
|
-
role: "
|
|
66
|
-
"aria-live": variant === "error" || variant === "warning" ? "assertive" : "polite",
|
|
66
|
+
role: variant === "error" || variant === "warning" ? "alert" : void 0,
|
|
67
67
|
onMouseEnter: () => setPauseTimer(true),
|
|
68
68
|
onMouseLeave: () => setPauseTimer(false),
|
|
69
69
|
onFocus: () => setPauseTimer(true),
|
|
@@ -119,7 +119,7 @@ const ToastProvider = ({
|
|
|
119
119
|
...data,
|
|
120
120
|
id,
|
|
121
121
|
variant: data.variant || "info",
|
|
122
|
-
duration: data.duration ??
|
|
122
|
+
duration: data.duration ?? MOTION_AUTO_DISMISS_MS,
|
|
123
123
|
dismissible: data.dismissible ?? true
|
|
124
124
|
};
|
|
125
125
|
setToasts((prev) => {
|
|
@@ -150,6 +150,7 @@ const ToastProvider = ({
|
|
|
150
150
|
className: containerClasses,
|
|
151
151
|
role: "region",
|
|
152
152
|
"aria-label": "Notifications",
|
|
153
|
+
"aria-live": "polite",
|
|
153
154
|
children: toasts.map((t) => /* @__PURE__ */ jsx(
|
|
154
155
|
ToastItem,
|
|
155
156
|
{
|
|
@@ -159,7 +160,7 @@ const ToastProvider = ({
|
|
|
159
160
|
variant: t.variant || "info",
|
|
160
161
|
dismissible: t.dismissible ?? true,
|
|
161
162
|
icon: t.icon,
|
|
162
|
-
duration: t.duration ??
|
|
163
|
+
duration: t.duration ?? MOTION_AUTO_DISMISS_MS,
|
|
163
164
|
onDismiss: dismiss
|
|
164
165
|
},
|
|
165
166
|
t.id
|
|
@@ -82,3 +82,12 @@
|
|
|
82
82
|
opacity: 0.4;
|
|
83
83
|
pointer-events: none;
|
|
84
84
|
}
|
|
85
|
+
|
|
86
|
+
/* Icons take the colour of the text around them. Explicit, not just
|
|
87
|
+
inherited by default: a consumer stylesheet that sets a colour on
|
|
88
|
+
.material-symbols-rounded itself (a common global default) would
|
|
89
|
+
otherwise override inheritance and detach the icon from the state
|
|
90
|
+
colours this component sets on its parents. */
|
|
91
|
+
.ds-toggle-group .material-symbols-rounded {
|
|
92
|
+
color: inherit;
|
|
93
|
+
}
|
|
@@ -20,7 +20,10 @@
|
|
|
20
20
|
width: 100%;
|
|
21
21
|
background-color: var(--color-bg-container-primary);
|
|
22
22
|
border: var(--border-xs) solid var(--color-bg-container-border);
|
|
23
|
-
|
|
23
|
+
/* The chat furniture shares one 24px shell with MessageCard and the
|
|
24
|
+
bubbles; a closed row rounds to a capsule the way a one-line bubble
|
|
25
|
+
does, echoing the system's pill buttons. */
|
|
26
|
+
border-radius: var(--radius-xl);
|
|
24
27
|
overflow: hidden;
|
|
25
28
|
}
|
|
26
29
|
|
|
@@ -33,7 +36,8 @@
|
|
|
33
36
|
align-items: center;
|
|
34
37
|
gap: var(--gap-sm);
|
|
35
38
|
width: 100%;
|
|
36
|
-
|
|
39
|
+
/* 20px sides — the card family's shared content inset. */
|
|
40
|
+
padding: var(--padding-sm) var(--padding-lg);
|
|
37
41
|
background: none;
|
|
38
42
|
border: none;
|
|
39
43
|
text-align: left;
|
|
@@ -181,7 +185,7 @@
|
|
|
181
185
|
}
|
|
182
186
|
|
|
183
187
|
.ds-tool-call--open .ds-tool-call__content {
|
|
184
|
-
padding: var(--padding-md);
|
|
188
|
+
padding: var(--padding-md) var(--padding-lg);
|
|
185
189
|
border-top: var(--border-xs) solid var(--color-divider);
|
|
186
190
|
}
|
|
187
191
|
|
|
@@ -202,8 +206,16 @@
|
|
|
202
206
|
.ds-tool-call__actions {
|
|
203
207
|
display: flex;
|
|
204
208
|
align-items: center;
|
|
205
|
-
justify-content: flex-
|
|
209
|
+
justify-content: flex-start;
|
|
206
210
|
gap: var(--gap-sm);
|
|
207
|
-
padding: var(--padding-sm-
|
|
208
|
-
|
|
211
|
+
padding: var(--padding-sm) var(--padding-lg) var(--padding-md);
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
/* Icons take the colour of the text around them. Explicit, not just
|
|
215
|
+
inherited by default: a consumer stylesheet that sets a colour on
|
|
216
|
+
.material-symbols-rounded itself (a common global default) would
|
|
217
|
+
otherwise override inheritance and detach the icon from the state
|
|
218
|
+
colours this component sets on its parents. */
|
|
219
|
+
.ds-tool-call .material-symbols-rounded {
|
|
220
|
+
color: inherit;
|
|
209
221
|
}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
3
|
-
import { useState, useRef, useId, isValidElement, cloneElement } from "react";
|
|
3
|
+
import { useState, useRef, useId, useEffect, isValidElement, cloneElement } from "react";
|
|
4
4
|
import "./Tooltip.css";
|
|
5
|
+
import { MOTION_HOVER_SHOW_DELAY_MS, MOTION_HOVER_HIDE_DELAY_MS } from "../../tokens/motion.js";
|
|
5
6
|
const Tooltip = ({
|
|
6
7
|
children,
|
|
7
8
|
content,
|
|
8
9
|
position = "top",
|
|
9
|
-
showDelay =
|
|
10
|
-
hideDelay =
|
|
10
|
+
showDelay = MOTION_HOVER_SHOW_DELAY_MS,
|
|
11
|
+
hideDelay = MOTION_HOVER_HIDE_DELAY_MS,
|
|
11
12
|
className = ""
|
|
12
13
|
}) => {
|
|
13
14
|
const [visible, setVisible] = useState(false);
|
|
@@ -23,6 +24,18 @@ const Tooltip = ({
|
|
|
23
24
|
clearTimeout(showTimeoutRef.current);
|
|
24
25
|
hideTimeoutRef.current = setTimeout(() => setVisible(false), hideDelay);
|
|
25
26
|
};
|
|
27
|
+
useEffect(() => {
|
|
28
|
+
if (!visible) return;
|
|
29
|
+
const onKeyDown = (e) => {
|
|
30
|
+
if (e.key === "Escape") {
|
|
31
|
+
clearTimeout(showTimeoutRef.current);
|
|
32
|
+
clearTimeout(hideTimeoutRef.current);
|
|
33
|
+
setVisible(false);
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
document.addEventListener("keydown", onKeyDown);
|
|
37
|
+
return () => document.removeEventListener("keydown", onKeyDown);
|
|
38
|
+
}, [visible]);
|
|
26
39
|
const trigger = isValidElement(children) ? cloneElement(children, {
|
|
27
40
|
"aria-describedby": tooltipId
|
|
28
41
|
}) : children;
|
|
@@ -42,19 +55,10 @@ const Tooltip = ({
|
|
|
42
55
|
onBlur: hide,
|
|
43
56
|
children: [
|
|
44
57
|
trigger,
|
|
45
|
-
/* @__PURE__ */ jsxs(
|
|
46
|
-
|
|
47
|
-
{
|
|
48
|
-
|
|
49
|
-
role: "tooltip",
|
|
50
|
-
id: tooltipId,
|
|
51
|
-
"aria-hidden": !visible,
|
|
52
|
-
children: [
|
|
53
|
-
content,
|
|
54
|
-
/* @__PURE__ */ jsx("span", { className: `${baseClass}__arrow` })
|
|
55
|
-
]
|
|
56
|
-
}
|
|
57
|
-
)
|
|
58
|
+
/* @__PURE__ */ jsxs("span", { className: panelClasses, role: "tooltip", id: tooltipId, children: [
|
|
59
|
+
content,
|
|
60
|
+
/* @__PURE__ */ jsx("span", { className: `${baseClass}__arrow` })
|
|
61
|
+
] })
|
|
58
62
|
]
|
|
59
63
|
}
|
|
60
64
|
);
|
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",
|
|
@@ -447,6 +460,14 @@
|
|
|
447
460
|
"category": "forms",
|
|
448
461
|
"client": true
|
|
449
462
|
},
|
|
463
|
+
{
|
|
464
|
+
"name": "Globe",
|
|
465
|
+
"label": "Globe",
|
|
466
|
+
"slug": "globe",
|
|
467
|
+
"description": "An orthographic globe with markers and great-circle arcs, rotated by drag, keys, or a slow spin.",
|
|
468
|
+
"category": "maps",
|
|
469
|
+
"client": true
|
|
470
|
+
},
|
|
450
471
|
{
|
|
451
472
|
"name": "Input",
|
|
452
473
|
"label": "Input",
|
|
@@ -496,6 +517,22 @@
|
|
|
496
517
|
"category": "data-display",
|
|
497
518
|
"client": false
|
|
498
519
|
},
|
|
520
|
+
{
|
|
521
|
+
"name": "MapCallout",
|
|
522
|
+
"label": "Map callout",
|
|
523
|
+
"slug": "map-callout",
|
|
524
|
+
"description": "The annotation beside a map point: a name in capitals over monospace readout lines.",
|
|
525
|
+
"category": "maps",
|
|
526
|
+
"client": false
|
|
527
|
+
},
|
|
528
|
+
{
|
|
529
|
+
"name": "MapLegend",
|
|
530
|
+
"label": "Map legend",
|
|
531
|
+
"slug": "map-legend",
|
|
532
|
+
"description": "The corner block of a map: its name, what it shows, and the key to its markers.",
|
|
533
|
+
"category": "maps",
|
|
534
|
+
"client": false
|
|
535
|
+
},
|
|
499
536
|
{
|
|
500
537
|
"name": "MessageActions",
|
|
501
538
|
"label": "Message actions",
|
|
@@ -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",
|
|
@@ -447,6 +460,14 @@ declare const _default: {
|
|
|
447
460
|
"category": "forms",
|
|
448
461
|
"client": true
|
|
449
462
|
},
|
|
463
|
+
{
|
|
464
|
+
"name": "Globe",
|
|
465
|
+
"label": "Globe",
|
|
466
|
+
"slug": "globe",
|
|
467
|
+
"description": "An orthographic globe with markers and great-circle arcs, rotated by drag, keys, or a slow spin.",
|
|
468
|
+
"category": "maps",
|
|
469
|
+
"client": true
|
|
470
|
+
},
|
|
450
471
|
{
|
|
451
472
|
"name": "Input",
|
|
452
473
|
"label": "Input",
|
|
@@ -496,6 +517,22 @@ declare const _default: {
|
|
|
496
517
|
"category": "data-display",
|
|
497
518
|
"client": false
|
|
498
519
|
},
|
|
520
|
+
{
|
|
521
|
+
"name": "MapCallout",
|
|
522
|
+
"label": "Map callout",
|
|
523
|
+
"slug": "map-callout",
|
|
524
|
+
"description": "The annotation beside a map point: a name in capitals over monospace readout lines.",
|
|
525
|
+
"category": "maps",
|
|
526
|
+
"client": false
|
|
527
|
+
},
|
|
528
|
+
{
|
|
529
|
+
"name": "MapLegend",
|
|
530
|
+
"label": "Map legend",
|
|
531
|
+
"slug": "map-legend",
|
|
532
|
+
"description": "The corner block of a map: its name, what it shows, and the key to its markers.",
|
|
533
|
+
"category": "maps",
|
|
534
|
+
"client": false
|
|
535
|
+
},
|
|
499
536
|
{
|
|
500
537
|
"name": "MessageActions",
|
|
501
538
|
"label": "Message actions",
|
|
@@ -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":"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":"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":"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":"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
|