@vllnt/ui 0.4.0-canary.sha36bfa21 → 0.4.0-canary.sha49f831b

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (105) hide show
  1. package/CHANGELOG.md +170 -6
  2. package/README.md +61 -3
  3. package/dist/components/atoms/accordion/accordion.js +28 -7
  4. package/dist/components/atoms/agent-activity/agent-activity.js +1 -1
  5. package/dist/components/atoms/ai-source-citation/ai-source-citation.js +1 -1
  6. package/dist/components/atoms/alert/alert.js +1 -1
  7. package/dist/components/atoms/alert-pulse/alert-pulse.js +7 -4
  8. package/dist/components/atoms/avatar/avatar.js +129 -24
  9. package/dist/components/atoms/badge/badge.js +84 -5
  10. package/dist/components/atoms/bottom-activity-strip/bottom-activity-strip.js +3 -2
  11. package/dist/components/atoms/breadcrumb/breadcrumb.js +89 -37
  12. package/dist/components/atoms/checklist/checklist.js +2 -2
  13. package/dist/components/atoms/curriculum/curriculum.js +4 -4
  14. package/dist/components/atoms/dialog/dialog.js +4 -2
  15. package/dist/components/atoms/drawer/drawer.js +1 -1
  16. package/dist/components/atoms/dropdown-menu/dropdown-menu.js +1 -1
  17. package/dist/components/atoms/floating-toolbar/floating-toolbar.js +23 -2
  18. package/dist/components/atoms/gauge-chart/gauge-chart.js +1 -1
  19. package/dist/components/atoms/glass-progress/glass-progress.js +1 -1
  20. package/dist/components/atoms/heat-overlay/heat-overlay.js +3 -2
  21. package/dist/components/atoms/jarvis-dock/jarvis-dock.js +2 -2
  22. package/dist/components/atoms/kbd/kbd.js +41 -11
  23. package/dist/components/atoms/keyboard-shortcuts-help/keyboard-shortcuts-help.js +1 -1
  24. package/dist/components/atoms/menubar/menubar.js +1 -1
  25. package/dist/components/atoms/meter/meter.js +2 -2
  26. package/dist/components/atoms/metric-cluster/metric-cluster.js +2 -1
  27. package/dist/components/atoms/policy-delivery-panel/policy-delivery-panel.js +19 -10
  28. package/dist/components/atoms/presence-stack/presence-stack.js +1 -1
  29. package/dist/components/atoms/progress-bar/progress-bar.js +190 -30
  30. package/dist/components/atoms/pull-quote/pull-quote.js +77 -0
  31. package/dist/components/atoms/quiz/quiz.js +2 -2
  32. package/dist/components/atoms/relationship-inspector/relationship-inspector.js +1 -1
  33. package/dist/components/atoms/routing-assignment-panel/routing-assignment-panel.js +20 -11
  34. package/dist/components/atoms/runtime-overview-panel/runtime-overview-panel.js +2 -1
  35. package/dist/components/atoms/scrim/scrim.js +32 -0
  36. package/dist/components/atoms/segmented-control/segmented-control.js +2 -2
  37. package/dist/components/atoms/select/select.js +3 -3
  38. package/dist/components/atoms/sheet/sheet.js +3 -2
  39. package/dist/components/atoms/skeleton/skeleton.js +1 -1
  40. package/dist/components/atoms/state-badge-overlay/state-badge-overlay.js +14 -16
  41. package/dist/components/atoms/stepper/stepper.js +1 -1
  42. package/dist/components/atoms/sticky-metric/sticky-metric.js +2 -1
  43. package/dist/components/atoms/table/table.js +1 -1
  44. package/dist/components/atoms/table-of-contents/table-of-contents.js +1 -1
  45. package/dist/components/atoms/table-of-contents-panel/table-of-contents-panel.js +4 -4
  46. package/dist/components/atoms/tabs/tabs.js +34 -11
  47. package/dist/components/atoms/tag-group/tag-group.js +10 -5
  48. package/dist/components/atoms/tags-input/tags-input.js +1 -1
  49. package/dist/components/atoms/thread-bubble/thread-bubble.js +1 -1
  50. package/dist/components/atoms/threshold-ring/threshold-ring.js +3 -2
  51. package/dist/components/atoms/timeline/timeline.js +15 -3
  52. package/dist/components/atoms/timeline-scrubber/timeline-scrubber.js +3 -2
  53. package/dist/components/atoms/tldr-section/tldr-section.js +5 -5
  54. package/dist/components/atoms/toggle/toggle.js +1 -1
  55. package/dist/components/atoms/view-switcher/view-switcher.js +1 -1
  56. package/dist/components/atoms/viewport-bookmarks/viewport-bookmarks.js +1 -1
  57. package/dist/components/atoms/watchlist/watchlist.js +1 -1
  58. package/dist/components/atoms/workspace-switcher/workspace-switcher.js +1 -1
  59. package/dist/components/index.js +38 -2
  60. package/dist/components/molecules/ai-artifact/ai-artifact.js +2 -12
  61. package/dist/components/molecules/approval-request/approval-request.js +168 -0
  62. package/dist/components/molecules/civilization-card/civilization-card.js +1 -1
  63. package/dist/components/molecules/completion-dialog/completion-dialog.js +1 -1
  64. package/dist/components/molecules/content-intro/content-intro.js +2 -2
  65. package/dist/components/molecules/conversation-thread/conversation-thread.js +5 -5
  66. package/dist/components/molecules/cookie-consent/cookie-consent.js +188 -80
  67. package/dist/components/molecules/copy-button/use-copy-to-clipboard.js +10 -12
  68. package/dist/components/molecules/countdown-timer/countdown-timer.js +1 -1
  69. package/dist/components/molecules/credit-badge/credit-badge.js +13 -16
  70. package/dist/components/molecules/filter-bar/filter-bar.js +2 -2
  71. package/dist/components/molecules/historical-figure-card/historical-figure-card.js +1 -1
  72. package/dist/components/molecules/plan-badge/plan-badge.js +12 -13
  73. package/dist/components/molecules/pricing-table/pricing-table.js +1 -1
  74. package/dist/components/molecules/progress-tracker/progress-tracker.js +8 -17
  75. package/dist/components/molecules/sidebar/sidebar.js +24 -9
  76. package/dist/components/molecules/tour/tour.js +1 -1
  77. package/dist/components/molecules/transaction-list/transaction-list.js +7 -9
  78. package/dist/components/molecules/tutorial-filters/tutorial-filters.js +2 -2
  79. package/dist/components/molecules/usage-breakdown/usage-breakdown.js +1 -1
  80. package/dist/components/organisms/access-matrix/access-matrix.js +271 -0
  81. package/dist/components/organisms/activity-heatmap/activity-heatmap.js +1 -1
  82. package/dist/components/organisms/code-block/code-block.js +145 -81
  83. package/dist/components/organisms/cta-band/cta-band.js +79 -0
  84. package/dist/components/organisms/flow-diagram/flow-controls.js +1 -1
  85. package/dist/components/organisms/flow-diagram/flow-fullscreen.js +1 -1
  86. package/dist/components/organisms/gantt-chart/gantt-chart.js +1 -1
  87. package/dist/components/organisms/historic-timeline/historic-timeline.js +1 -1
  88. package/dist/components/organisms/navbar-saas/navbar-saas.js +1 -1
  89. package/dist/components/organisms/order-summary/order-summary.js +172 -0
  90. package/dist/components/organisms/settings-list/settings-list.js +125 -0
  91. package/dist/components/organisms/share-dialog-people/share-dialog-people.js +412 -0
  92. package/dist/components/organisms/slideshow/slideshow.js +6 -6
  93. package/dist/components/organisms/subscription-card/subscription-card.js +10 -10
  94. package/dist/components/organisms/tutorial-complete/tutorial-complete.js +2 -2
  95. package/dist/components/organisms/tutorial-mdx/tutorial-mdx.js +1 -1
  96. package/dist/index.d.ts +1143 -82
  97. package/dist/index.js +10 -0
  98. package/dist/lib/copy-text.js +64 -0
  99. package/dist/lib/status-dot.js +33 -0
  100. package/dist/tailwind-preset.js +16 -0
  101. package/package.json +17 -4
  102. package/styles.css +48 -7
  103. package/themes/default.css +48 -7
  104. package/themes/presets.css +24 -24
  105. package/themes/products.css +146 -0
@@ -0,0 +1,125 @@
1
+ "use client";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ import * as React from "react";
4
+ import { cva } from "class-variance-authority";
5
+ import { ChevronRight } from "lucide-react";
6
+ import { cn } from "../../../lib/utils.js";
7
+ import { itemVariants } from "../../atoms/item/item.js";
8
+ const settingsListVariants = cva("w-full", {
9
+ defaultVariants: {
10
+ variant: "inset-grouped"
11
+ },
12
+ variants: {
13
+ variant: {
14
+ "inset-grouped": "overflow-hidden rounded-lg border bg-card text-card-foreground",
15
+ plain: ""
16
+ }
17
+ }
18
+ });
19
+ const interactiveRowClasses = "cursor-pointer text-left transition-colors hover:bg-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring motion-reduce:transition-none";
20
+ function SettingsListRowShell({
21
+ children,
22
+ href,
23
+ onClick
24
+ }) {
25
+ const rowClassName = cn(itemVariants(), "w-full px-4 py-3");
26
+ if (href !== void 0) {
27
+ return /* @__PURE__ */ jsx("a", { className: cn(rowClassName, interactiveRowClasses), href, children });
28
+ }
29
+ if (onClick !== void 0) {
30
+ return /* @__PURE__ */ jsx(
31
+ "button",
32
+ {
33
+ className: cn(rowClassName, interactiveRowClasses),
34
+ onClick,
35
+ type: "button",
36
+ children
37
+ }
38
+ );
39
+ }
40
+ return /* @__PURE__ */ jsx("div", { className: rowClassName, children });
41
+ }
42
+ const SettingsList = ({
43
+ children,
44
+ className,
45
+ description,
46
+ ref: reference,
47
+ title,
48
+ variant,
49
+ ...props
50
+ }) => {
51
+ const baseId = React.useId();
52
+ const titleId = `${baseId}-title`;
53
+ const descriptionId = `${baseId}-description`;
54
+ return /* @__PURE__ */ jsxs(
55
+ "section",
56
+ {
57
+ "aria-describedby": description ? descriptionId : void 0,
58
+ "aria-labelledby": title ? titleId : void 0,
59
+ className: cn(settingsListVariants({ variant }), className),
60
+ "data-slot": "settings-list",
61
+ ref: reference,
62
+ ...props,
63
+ children: [
64
+ title || description ? /* @__PURE__ */ jsxs("header", { className: "flex flex-col gap-1 border-b px-4 py-3", children: [
65
+ title ? /* @__PURE__ */ jsx("h2", { className: "text-sm font-semibold", id: titleId, children: title }) : null,
66
+ description ? /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", id: descriptionId, children: description }) : null
67
+ ] }) : null,
68
+ /* @__PURE__ */ jsx("ul", { className: "divide-y divide-border", children })
69
+ ]
70
+ }
71
+ );
72
+ };
73
+ SettingsList.displayName = "SettingsList";
74
+ const SettingsListItem = ({
75
+ chevron,
76
+ className,
77
+ control,
78
+ description,
79
+ href,
80
+ label,
81
+ leading,
82
+ meta,
83
+ onClick,
84
+ ref: reference,
85
+ ...props
86
+ }) => {
87
+ const baseId = React.useId();
88
+ const labelId = `${baseId}-label`;
89
+ const descriptionId = `${baseId}-description`;
90
+ const isInteractive = href !== void 0 || onClick !== void 0;
91
+ const showChevron = isInteractive && chevron !== false;
92
+ return /* @__PURE__ */ jsx(
93
+ "li",
94
+ {
95
+ className,
96
+ "data-slot": "settings-list-item",
97
+ ref: reference,
98
+ ...props,
99
+ children: /* @__PURE__ */ jsxs(SettingsListRowShell, { href, onClick, children: [
100
+ leading ? /* @__PURE__ */ jsx("span", { className: "flex shrink-0 items-center justify-center [&_svg]:size-5", children: leading }) : null,
101
+ /* @__PURE__ */ jsxs("span", { className: "flex min-w-0 flex-1 flex-col gap-0.5", children: [
102
+ /* @__PURE__ */ jsx("span", { className: "font-medium", id: labelId, children: label }),
103
+ description ? /* @__PURE__ */ jsx("span", { className: "text-muted-foreground", id: descriptionId, children: description }) : null
104
+ ] }),
105
+ meta ? /* @__PURE__ */ jsx("span", { className: "max-w-32 shrink-0 text-right text-muted-foreground", children: meta }) : null,
106
+ control === void 0 ? null : React.cloneElement(control, {
107
+ "aria-describedby": control.props["aria-describedby"] ?? (description ? descriptionId : void 0),
108
+ "aria-labelledby": control.props["aria-labelledby"] ?? labelId
109
+ }),
110
+ showChevron ? /* @__PURE__ */ jsx(
111
+ ChevronRight,
112
+ {
113
+ "aria-hidden": "true",
114
+ className: "size-4 shrink-0 text-muted-foreground"
115
+ }
116
+ ) : null
117
+ ] })
118
+ }
119
+ );
120
+ };
121
+ SettingsListItem.displayName = "SettingsListItem";
122
+ export {
123
+ SettingsList,
124
+ SettingsListItem
125
+ };
@@ -0,0 +1,412 @@
1
+ "use client";
2
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
3
+ import * as React from "react";
4
+ import { cva } from "class-variance-authority";
5
+ import { X } from "lucide-react";
6
+ import { cn } from "../../../lib/utils.js";
7
+ import { Avatar, AvatarFallback, AvatarImage } from "../../atoms/avatar/avatar.js";
8
+ import { Button } from "../../atoms/button/button.js";
9
+ import { Input } from "../../atoms/input/input.js";
10
+ import {
11
+ Select,
12
+ SelectContent,
13
+ SelectItem,
14
+ SelectSeparator,
15
+ SelectTrigger,
16
+ SelectValue
17
+ } from "../../atoms/select/select.js";
18
+ import { Separator } from "../../atoms/separator/separator.js";
19
+ const REMOVE_VALUE = "__remove__";
20
+ const DEFAULT_LABELS = {
21
+ back: "Back",
22
+ close: "Close",
23
+ copyLink: "Copy link",
24
+ done: "Done",
25
+ emailInput: "Email address",
26
+ emailPlaceholder: "name@example.com",
27
+ empty: "No one has access yet.",
28
+ invite: "Invite",
29
+ inviteRole: "Role for the new person",
30
+ linkInput: "Share link",
31
+ note: "Invited people get an email with a link.",
32
+ peopleList: "People with access",
33
+ personRole: (name) => `${name} role`,
34
+ remove: "Remove",
35
+ send: "Send"
36
+ };
37
+ const panelVariants = cva(
38
+ "flex w-full flex-col rounded-lg border bg-card text-card-foreground",
39
+ {
40
+ defaultVariants: { layout: "desktop" },
41
+ variants: {
42
+ layout: {
43
+ desktop: "max-w-lg gap-4 p-6",
44
+ phone: "max-w-sm gap-3 p-4"
45
+ }
46
+ }
47
+ }
48
+ );
49
+ const stackVariants = cva("flex flex-col", {
50
+ defaultVariants: { layout: "desktop" },
51
+ variants: {
52
+ layout: {
53
+ desktop: "gap-4",
54
+ phone: "gap-3"
55
+ }
56
+ }
57
+ });
58
+ const actionsVariants = cva("flex gap-2", {
59
+ defaultVariants: { layout: "desktop" },
60
+ variants: {
61
+ layout: {
62
+ desktop: "flex-row justify-end",
63
+ phone: "flex-col-reverse [&>button]:w-full"
64
+ }
65
+ }
66
+ });
67
+ const avatarVariants = cva("", {
68
+ defaultVariants: { layout: "desktop" },
69
+ variants: {
70
+ layout: {
71
+ desktop: "size-10",
72
+ phone: "size-8 text-xs"
73
+ }
74
+ }
75
+ });
76
+ const roleTriggerVariants = cva("shrink-0", {
77
+ defaultVariants: { layout: "desktop" },
78
+ variants: {
79
+ layout: {
80
+ desktop: "w-36",
81
+ phone: "h-9 w-28"
82
+ }
83
+ }
84
+ });
85
+ function getInitials(name) {
86
+ return name.split(/\s+/).filter(Boolean).slice(0, 2).map((part) => part.slice(0, 1).toUpperCase()).join("");
87
+ }
88
+ function getRoleLabel(roles, value) {
89
+ return roles.find((role) => role.value === value)?.label ?? value;
90
+ }
91
+ function RoleItems({
92
+ roles
93
+ }) {
94
+ return /* @__PURE__ */ jsx(Fragment, { children: roles.map((role) => /* @__PURE__ */ jsx(SelectItem, { value: role.value, children: role.label }, role.value)) });
95
+ }
96
+ function PanelHeader({
97
+ labels,
98
+ onClose,
99
+ title,
100
+ titleId
101
+ }) {
102
+ const handleClose = () => {
103
+ onClose?.();
104
+ };
105
+ return /* @__PURE__ */ jsxs("header", { className: "flex items-center justify-between gap-3", children: [
106
+ /* @__PURE__ */ jsx(
107
+ "h2",
108
+ {
109
+ className: "text-lg font-semibold leading-none tracking-tight",
110
+ id: titleId,
111
+ children: title
112
+ }
113
+ ),
114
+ onClose ? /* @__PURE__ */ jsxs(
115
+ Button,
116
+ {
117
+ className: "-mr-2 shrink-0",
118
+ onClick: handleClose,
119
+ size: "icon",
120
+ type: "button",
121
+ variant: "ghost",
122
+ children: [
123
+ /* @__PURE__ */ jsx(X, { "aria-hidden": "true" }),
124
+ /* @__PURE__ */ jsx("span", { className: "sr-only", children: labels.close })
125
+ ]
126
+ }
127
+ ) : null
128
+ ] });
129
+ }
130
+ function LinkRow({
131
+ labels,
132
+ linkUrl,
133
+ onCopyLink
134
+ }) {
135
+ const handleCopy = () => {
136
+ onCopyLink?.();
137
+ };
138
+ return /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
139
+ /* @__PURE__ */ jsx(
140
+ Input,
141
+ {
142
+ "aria-label": labels.linkInput,
143
+ className: "min-w-0 flex-1",
144
+ readOnly: true,
145
+ value: linkUrl
146
+ }
147
+ ),
148
+ /* @__PURE__ */ jsx(
149
+ Button,
150
+ {
151
+ className: "shrink-0",
152
+ onClick: handleCopy,
153
+ type: "button",
154
+ variant: "outline",
155
+ children: labels.copyLink
156
+ }
157
+ )
158
+ ] });
159
+ }
160
+ function PersonEntry({
161
+ labels,
162
+ layout,
163
+ onRemove,
164
+ onRoleChange,
165
+ person,
166
+ roles
167
+ }) {
168
+ const handleValueChange = (value) => {
169
+ if (value === REMOVE_VALUE) {
170
+ onRemove?.(person.id);
171
+ return;
172
+ }
173
+ onRoleChange?.(person.id, value);
174
+ };
175
+ return /* @__PURE__ */ jsxs("li", { className: "flex items-center gap-3", children: [
176
+ /* @__PURE__ */ jsxs(Avatar, { className: avatarVariants({ layout }), children: [
177
+ person.avatarSrc ? /* @__PURE__ */ jsx(AvatarImage, { alt: "", src: person.avatarSrc }) : null,
178
+ /* @__PURE__ */ jsx(AvatarFallback, { children: getInitials(person.name) })
179
+ ] }),
180
+ /* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
181
+ /* @__PURE__ */ jsx("p", { className: "truncate text-sm font-medium", children: person.name }),
182
+ person.email ? /* @__PURE__ */ jsx("p", { className: "truncate text-xs text-muted-foreground", children: person.email }) : null
183
+ ] }),
184
+ /* @__PURE__ */ jsxs(Select, { onValueChange: handleValueChange, value: person.role, children: [
185
+ /* @__PURE__ */ jsx(
186
+ SelectTrigger,
187
+ {
188
+ "aria-label": labels.personRole(person.name),
189
+ className: roleTriggerVariants({ layout }),
190
+ children: /* @__PURE__ */ jsx(SelectValue, { children: getRoleLabel(roles, person.role) })
191
+ }
192
+ ),
193
+ /* @__PURE__ */ jsxs(SelectContent, { children: [
194
+ /* @__PURE__ */ jsx(RoleItems, { roles }),
195
+ onRemove ? /* @__PURE__ */ jsxs(Fragment, { children: [
196
+ /* @__PURE__ */ jsx(SelectSeparator, { className: "my-1" }),
197
+ /* @__PURE__ */ jsx(
198
+ SelectItem,
199
+ {
200
+ className: "text-destructive focus:text-destructive",
201
+ value: REMOVE_VALUE,
202
+ children: labels.remove
203
+ }
204
+ )
205
+ ] }) : null
206
+ ] })
207
+ ] })
208
+ ] });
209
+ }
210
+ function PeopleList({
211
+ labels,
212
+ layout,
213
+ onRemove,
214
+ onRoleChange,
215
+ people,
216
+ roles
217
+ }) {
218
+ if (people.length === 0) {
219
+ return /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: labels.empty });
220
+ }
221
+ return /* @__PURE__ */ jsx("ul", { "aria-label": labels.peopleList, className: "flex flex-col gap-3", children: people.map((person) => /* @__PURE__ */ jsx(
222
+ PersonEntry,
223
+ {
224
+ labels,
225
+ layout,
226
+ onRemove,
227
+ onRoleChange,
228
+ person,
229
+ roles
230
+ },
231
+ person.id
232
+ )) });
233
+ }
234
+ function ListView({
235
+ labels,
236
+ layout,
237
+ linkUrl,
238
+ onCopyLink,
239
+ onDone,
240
+ onKindChange,
241
+ onRemove,
242
+ onRoleChange,
243
+ people,
244
+ roles
245
+ }) {
246
+ const handleInvite = () => {
247
+ onKindChange?.("invite");
248
+ };
249
+ const handleDone = () => {
250
+ onDone?.();
251
+ };
252
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
253
+ /* @__PURE__ */ jsxs("div", { className: stackVariants({ layout }), children: [
254
+ linkUrl ? /* @__PURE__ */ jsxs(Fragment, { children: [
255
+ /* @__PURE__ */ jsx(
256
+ LinkRow,
257
+ {
258
+ labels,
259
+ linkUrl,
260
+ onCopyLink
261
+ }
262
+ ),
263
+ /* @__PURE__ */ jsx(Separator, {})
264
+ ] }) : null,
265
+ /* @__PURE__ */ jsx(
266
+ PeopleList,
267
+ {
268
+ labels,
269
+ layout,
270
+ onRemove,
271
+ onRoleChange,
272
+ people,
273
+ roles
274
+ }
275
+ )
276
+ ] }),
277
+ /* @__PURE__ */ jsxs("div", { className: actionsVariants({ layout }), children: [
278
+ /* @__PURE__ */ jsx(Button, { onClick: handleInvite, type: "button", variant: "outline", children: labels.invite }),
279
+ /* @__PURE__ */ jsx(Button, { onClick: handleDone, type: "button", children: labels.done })
280
+ ] })
281
+ ] });
282
+ }
283
+ function InviteForm({
284
+ labels,
285
+ layout,
286
+ onInvite,
287
+ onKindChange,
288
+ roles
289
+ }) {
290
+ const noteId = React.useId();
291
+ const [email, setEmail] = React.useState("");
292
+ const [role, setRole] = React.useState(roles[0]?.value ?? "");
293
+ const handleEmailChange = (event) => {
294
+ setEmail(event.target.value);
295
+ };
296
+ const handleSubmit = (event) => {
297
+ event.preventDefault();
298
+ onInvite?.(email.trim(), role);
299
+ };
300
+ const handleBack = () => {
301
+ onKindChange?.("list");
302
+ };
303
+ return /* @__PURE__ */ jsxs("form", { className: stackVariants({ layout }), onSubmit: handleSubmit, children: [
304
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2", children: [
305
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
306
+ /* @__PURE__ */ jsx(
307
+ Input,
308
+ {
309
+ "aria-describedby": noteId,
310
+ "aria-label": labels.emailInput,
311
+ autoComplete: "email",
312
+ className: "min-w-0 flex-1",
313
+ onChange: handleEmailChange,
314
+ placeholder: labels.emailPlaceholder,
315
+ required: true,
316
+ type: "email",
317
+ value: email
318
+ }
319
+ ),
320
+ /* @__PURE__ */ jsxs(Select, { onValueChange: setRole, value: role, children: [
321
+ /* @__PURE__ */ jsx(
322
+ SelectTrigger,
323
+ {
324
+ "aria-label": labels.inviteRole,
325
+ className: roleTriggerVariants({ layout }),
326
+ children: /* @__PURE__ */ jsx(SelectValue, { children: getRoleLabel(roles, role) })
327
+ }
328
+ ),
329
+ /* @__PURE__ */ jsx(SelectContent, { children: /* @__PURE__ */ jsx(RoleItems, { roles }) })
330
+ ] })
331
+ ] }),
332
+ /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", id: noteId, children: labels.note })
333
+ ] }),
334
+ /* @__PURE__ */ jsxs("div", { className: actionsVariants({ layout }), children: [
335
+ /* @__PURE__ */ jsx(Button, { onClick: handleBack, type: "button", variant: "outline", children: labels.back }),
336
+ /* @__PURE__ */ jsx(Button, { type: "submit", children: labels.send })
337
+ ] })
338
+ ] });
339
+ }
340
+ const ShareDialogPeople = ({
341
+ className,
342
+ kind = "list",
343
+ labels: labelOverrides,
344
+ layout = "desktop",
345
+ linkUrl,
346
+ onClose,
347
+ onCopyLink,
348
+ onDone,
349
+ onInvite,
350
+ onKindChange,
351
+ onRemove,
352
+ onRoleChange,
353
+ people,
354
+ ref: reference,
355
+ roles,
356
+ title = "Share",
357
+ ...props
358
+ }) => {
359
+ const titleId = React.useId();
360
+ const labels = { ...DEFAULT_LABELS, ...labelOverrides };
361
+ return /* @__PURE__ */ jsxs(
362
+ "section",
363
+ {
364
+ ...props,
365
+ "aria-labelledby": titleId,
366
+ className: cn(panelVariants({ layout }), className),
367
+ "data-kind": kind,
368
+ "data-layout": layout,
369
+ ref: reference,
370
+ role: "group",
371
+ children: [
372
+ /* @__PURE__ */ jsx(
373
+ PanelHeader,
374
+ {
375
+ labels,
376
+ onClose,
377
+ title,
378
+ titleId
379
+ }
380
+ ),
381
+ kind === "invite" ? /* @__PURE__ */ jsx(
382
+ InviteForm,
383
+ {
384
+ labels,
385
+ layout,
386
+ onInvite,
387
+ onKindChange,
388
+ roles
389
+ }
390
+ ) : /* @__PURE__ */ jsx(
391
+ ListView,
392
+ {
393
+ labels,
394
+ layout,
395
+ linkUrl,
396
+ onCopyLink,
397
+ onDone,
398
+ onKindChange,
399
+ onRemove,
400
+ onRoleChange,
401
+ people,
402
+ roles
403
+ }
404
+ )
405
+ ]
406
+ }
407
+ );
408
+ };
409
+ ShareDialogPeople.displayName = "ShareDialogPeople";
410
+ export {
411
+ ShareDialogPeople
412
+ };
@@ -20,7 +20,7 @@ const DEFAULT_LABELS = {
20
20
  };
21
21
  const EMPTY_SLIDESHOW_LABELS = {};
22
22
  function SlideshowProgress({ progress }) {
23
- return /* @__PURE__ */ jsx("div", { className: "absolute top-0 left-0 right-0 h-1 bg-muted z-10", children: /* @__PURE__ */ jsx(
23
+ return /* @__PURE__ */ jsx("div", { className: "absolute top-0 left-0 right-0 h-1 bg-secondary z-10", children: /* @__PURE__ */ jsx(
24
24
  "div",
25
25
  {
26
26
  className: "h-full bg-foreground transition-all duration-300 ease-out",
@@ -44,7 +44,7 @@ function SlideshowHeader({
44
44
  "button",
45
45
  {
46
46
  "aria-label": isTocOpen ? labels.closeTocLabel : labels.openTocLabel,
47
- className: "flex-shrink-0 p-2 rounded-lg hover:bg-muted transition-colors",
47
+ className: "flex-shrink-0 p-2 rounded-lg hover:bg-secondary transition-colors",
48
48
  onClick: onToggleToc,
49
49
  type: "button",
50
50
  children: isTocOpen ? /* @__PURE__ */ jsx(
@@ -101,7 +101,7 @@ function SlideshowHeader({
101
101
  "button",
102
102
  {
103
103
  "aria-label": labels.exitLabel,
104
- className: "p-2 rounded-lg hover:bg-muted transition-colors",
104
+ className: "p-2 rounded-lg hover:bg-secondary transition-colors",
105
105
  onClick: onExit,
106
106
  type: "button",
107
107
  children: /* @__PURE__ */ jsx(
@@ -179,7 +179,7 @@ function SlideshowToc({
179
179
  "button",
180
180
  {
181
181
  "aria-label": labels.closeLabel,
182
- className: "p-2 rounded-lg hover:bg-muted transition-colors",
182
+ className: "p-2 rounded-lg hover:bg-secondary transition-colors",
183
183
  onClick: onClose,
184
184
  type: "button",
185
185
  children: /* @__PURE__ */ jsx(
@@ -212,7 +212,7 @@ function SlideshowToc({
212
212
  {
213
213
  className: cn(
214
214
  "w-full flex items-center gap-3 p-3 rounded-lg text-left transition-colors",
215
- isCurrent ? "bg-muted" : "hover:bg-muted/50"
215
+ isCurrent ? "bg-secondary" : "hover:bg-secondary/50"
216
216
  ),
217
217
  onClick: () => {
218
218
  onNavigate(index);
@@ -286,7 +286,7 @@ function SlideshowNav({
286
286
  /* @__PURE__ */ jsxs(
287
287
  "button",
288
288
  {
289
- className: "min-w-[100px] gap-1 inline-flex items-center justify-center px-4 py-2 rounded-md hover:bg-muted transition-colors disabled:opacity-50 disabled:pointer-events-none",
289
+ className: "min-w-[100px] gap-1 inline-flex items-center justify-center px-4 py-2 rounded-md hover:bg-secondary transition-colors disabled:opacity-50 disabled:pointer-events-none",
290
290
  disabled: !canGoPrevious,
291
291
  onClick: onPrevious,
292
292
  type: "button",
@@ -1,5 +1,6 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { cn } from "../../../lib/utils.js";
3
+ import { Badge } from "../../atoms/badge/badge.js";
3
4
  import { Button } from "../../atoms/button/button.js";
4
5
  import {
5
6
  Card,
@@ -24,16 +25,16 @@ function getStatusLabel(status) {
24
25
  return "Trialing";
25
26
  }
26
27
  }
27
- function getStatusClasses(status) {
28
+ function getStatusTone(status) {
28
29
  switch (status) {
29
30
  case "active":
30
- return "bg-emerald-500/10 text-emerald-700 dark:text-emerald-300";
31
+ return "success";
31
32
  case "canceled":
32
- return "bg-muted text-muted-foreground";
33
+ return "neutral";
33
34
  case "past-due":
34
- return "bg-amber-500/10 text-amber-700 dark:text-amber-300";
35
+ return "warning";
35
36
  case "trialing":
36
- return "bg-sky-500/10 text-sky-700 dark:text-sky-300";
37
+ return "info";
37
38
  }
38
39
  }
39
40
  function getPlanState(status) {
@@ -116,12 +117,11 @@ const SubscriptionCard = ({
116
117
  /* @__PURE__ */ jsx(CardDescription, { children: "Billing overview for the current workspace plan." })
117
118
  ] }),
118
119
  /* @__PURE__ */ jsx(
119
- "span",
120
+ Badge,
120
121
  {
121
- className: cn(
122
- "inline-flex rounded-full px-2.5 py-1 text-xs font-medium",
123
- getStatusClasses(status)
124
- ),
122
+ className: "shrink-0 whitespace-nowrap py-1 font-medium hover:bg-secondary",
123
+ dot: true,
124
+ tone: getStatusTone(status),
125
125
  children: getStatusLabel(status)
126
126
  }
127
127
  )
@@ -55,7 +55,7 @@ function ReviewSections({
55
55
  return /* @__PURE__ */ jsxs(
56
56
  "button",
57
57
  {
58
- className: "w-full flex items-center gap-3 p-3 rounded-lg border border-border hover:bg-muted/50 transition-colors text-left",
58
+ className: "w-full flex items-center gap-3 p-3 rounded-lg border border-border hover:bg-secondary/50 transition-colors text-left",
59
59
  onClick: () => {
60
60
  onGoToSection(index);
61
61
  },
@@ -88,7 +88,7 @@ function RelatedContentList({
88
88
  /* @__PURE__ */ jsx("div", { className: "space-y-2", children: relatedContent.map((item) => /* @__PURE__ */ jsxs(
89
89
  LinkComponent,
90
90
  {
91
- className: "flex items-center gap-3 p-3 rounded-lg border border-border hover:bg-muted/50 transition-colors",
91
+ className: "flex items-center gap-3 p-3 rounded-lg border border-border hover:bg-secondary/50 transition-colors",
92
92
  href: item.href,
93
93
  children: [
94
94
  /* @__PURE__ */ jsx("span", { className: "text-xs uppercase text-muted-foreground font-medium", children: item.type }),
@@ -46,7 +46,7 @@ function FlowDiagramWithSuspense(props) {
46
46
  "div",
47
47
  {
48
48
  "aria-label": "Loading diagram...",
49
- className: "h-96 bg-muted animate-pulse rounded-lg motion-reduce:animate-none"
49
+ className: "h-96 bg-secondary animate-pulse rounded-lg motion-reduce:animate-none"
50
50
  }
51
51
  ),
52
52
  children: /* @__PURE__ */ jsx(LazyFlowDiagram, { ...props })