@mechane-ai/elements 0.41.0 → 0.43.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.
Files changed (92) hide show
  1. package/README.md +72 -41
  2. package/bin/catalog.d.mts +17 -0
  3. package/bin/mechane-elements-catalog.mjs +60 -0
  4. package/dist/agent.js +1 -1
  5. package/dist/ai.js +23 -23
  6. package/dist/catalog.json +1984 -0
  7. package/dist/{categorical-values-DnGR_pQx.js → categorical-values-DzhbfZ5w.js} +3 -3
  8. package/dist/{chart-frame-BsyI1Zc8.js → chart-frame-9dQQNF3F.js} +74 -22
  9. package/dist/{chart-input-r4S3-QCT.js → chart-input-DT0STflx.js} +2 -2
  10. package/dist/{chart-navigation-D7OkLdSx.js → chart-navigation-BAbb5PV9.js} +67 -32
  11. package/dist/charts/cartesian.js +1728 -559
  12. package/dist/charts/distribution.js +5 -5
  13. package/dist/charts/graph.js +443 -76
  14. package/dist/charts/hierarchy.js +5 -5
  15. package/dist/charts/matrix.js +232 -63
  16. package/dist/charts/timeline.js +3 -3
  17. package/dist/charts.js +2 -2
  18. package/dist/{code-block-C4K1sM9O.js → code-block-Cpfr7B6a.js} +1 -1
  19. package/dist/collections.js +475 -354
  20. package/dist/content/code.js +1 -1
  21. package/dist/content/diff.js +3 -3
  22. package/dist/content/link.js +1 -1
  23. package/dist/content/markdown.js +2 -2
  24. package/dist/content/tree.js +2 -2
  25. package/dist/{content-link-CBDqSvgP.js → content-link-CGeFFb9F.js} +1 -1
  26. package/dist/content.js +1 -1
  27. package/dist/feedback.js +1 -1
  28. package/dist/forms/dates.js +11 -11
  29. package/dist/{forms-I-WMHTkr.js → forms-DeU0Tiv3.js} +6 -2
  30. package/dist/forms.js +3 -3
  31. package/dist/index.js +1 -1
  32. package/dist/label-spacing-BncjePGb.js +6 -0
  33. package/dist/layout.js +275 -249
  34. package/dist/mechane-elements-catalog.mjs +4 -0
  35. package/dist/navigation.js +2 -2
  36. package/dist/packages/charts/src/cartesian/bar-chart.d.ts +15 -3
  37. package/dist/packages/charts/src/cartesian/bar-data.d.ts +43 -0
  38. package/dist/packages/charts/src/cartesian/bar-overlays.d.ts +32 -0
  39. package/dist/packages/charts/src/cartesian/bridge-chart.d.ts +29 -0
  40. package/dist/packages/charts/src/cartesian/bridge-data.d.ts +40 -0
  41. package/dist/packages/charts/src/cartesian/index.d.ts +7 -2
  42. package/dist/packages/charts/src/cartesian/reference-lines.d.ts +34 -0
  43. package/dist/packages/charts/src/cartesian/sparkline.d.ts +10 -1
  44. package/dist/packages/charts/src/cartesian/time-series-bands.d.ts +66 -0
  45. package/dist/packages/charts/src/cartesian/time-series-data.d.ts +11 -1
  46. package/dist/packages/charts/src/cartesian/time-series-overlays.d.ts +35 -0
  47. package/dist/packages/charts/src/cartesian/time-series.d.ts +6 -1
  48. package/dist/packages/charts/src/chart-inspection.d.ts +4 -1
  49. package/dist/packages/charts/src/chart-navigation.d.ts +5 -1
  50. package/dist/packages/charts/src/chart-series-marker.d.ts +8 -1
  51. package/dist/packages/charts/src/chart-surface.d.ts +4 -0
  52. package/dist/packages/charts/src/chart-theme.d.ts +26 -0
  53. package/dist/packages/charts/src/graph/flow-diagram.d.ts +26 -0
  54. package/dist/packages/charts/src/graph/flow-layout.d.ts +70 -0
  55. package/dist/packages/charts/src/graph/index.d.ts +2 -0
  56. package/dist/packages/charts/src/index.d.ts +1 -1
  57. package/dist/packages/charts/src/label-spacing.d.ts +15 -0
  58. package/dist/packages/charts/src/matrix/matrix-cells.d.ts +4 -0
  59. package/dist/packages/charts/src/matrix/matrix-strip.d.ts +20 -0
  60. package/dist/packages/charts/src/matrix/matrix-types.d.ts +21 -0
  61. package/dist/packages/charts/src/matrix/matrix.d.ts +8 -19
  62. package/dist/packages/collections/src/collection-controls.d.ts +2 -1
  63. package/dist/packages/collections/src/data-table.d.ts +12 -8
  64. package/dist/packages/collections/src/index.d.ts +1 -0
  65. package/dist/packages/collections/src/table-results.d.ts +26 -0
  66. package/dist/packages/core/src/actions.d.ts +6 -0
  67. package/dist/packages/core/src/index.d.ts +1 -1
  68. package/dist/packages/forms/src/form-status.d.ts +7 -0
  69. package/dist/packages/forms/src/forms.d.ts +3 -1
  70. package/dist/packages/forms/src/index.d.ts +2 -0
  71. package/dist/packages/foundations/src/agent/index.d.ts +2 -2
  72. package/dist/packages/layout/src/page-context.d.ts +4 -0
  73. package/dist/packages/navigation/src/index.d.ts +1 -0
  74. package/dist/packages/navigation/src/route-link.d.ts +2 -0
  75. package/dist/{pierre-diff-DJ3oOfPX.js → pierre-diff-B3tD3-6z.js} +1 -1
  76. package/dist/{plot-width-BQQS-mw9.js → plot-width-DzCmthQW.js} +28 -0
  77. package/dist/{src-D2OHco8V.js → src-Bk7M67zy.js} +3 -3
  78. package/dist/{src-DfOAlAd2.js → src-BpvnBWrF.js} +1 -1
  79. package/dist/{src-CQQvXi7a.js → src-DBNncL7_.js} +70 -50
  80. package/dist/{src-s3tWwnN4.js → src-DcW_gMX8.js} +178 -168
  81. package/dist/{src-CNV1ewzb.js → src-gqEebHEa.js} +319 -285
  82. package/dist/styles2.css +115 -0
  83. package/package.json +9 -2
  84. package/recipes/allocation-report.tsx +115 -0
  85. package/recipes/consequential-form.tsx +132 -0
  86. package/recipes/searchable-collection.tsx +106 -0
  87. package/recipes/sectioned-report.tsx +58 -0
  88. package/recipes/tabbed-workspace.tsx +84 -0
  89. package/skills/extend-elements/SKILL.md +28 -0
  90. package/skills/use-elements/SKILL.md +36 -0
  91. package/skills/{elements-presentation/SKILL.md → use-elements/references/reports.md} +0 -6
  92. package/skills/{elements-workspace/SKILL.md → use-elements/references/workspace.md} +0 -6
package/README.md CHANGED
@@ -9,18 +9,49 @@ Applications import the Elements family that owns the interaction. When adding a
9
9
  and its Storybook example. Keep focus, value changes, and dismissal with one primitive. Native links retain browser
10
10
  navigation and modifier-key behavior.
11
11
 
12
- Hosts that expose component actions can import `createAgent` from `@mechane-ai/elements/agent`. Mounting Elements alone
13
- does not grant an external agent access. Keep credentials out of observable values and retain human approval for
14
- privileged actions.
12
+ ## Build with an agent
15
13
 
16
- ## Workspace implementation guides
14
+ Use the [use-elements skill](skills/use-elements/SKILL.md) when building an app and the
15
+ [extend-elements skill](skills/extend-elements/SKILL.md) when changing the library. Both ship with the package.
17
16
 
18
- - [Workspace layout](skills/elements-workspace/SKILL.md) covers shell lifetime, full-width reports, task navigation and
19
- toolbar geometry.
20
- - [Loading and chart interaction](skills/elements-presentation/SKILL.md) covers coordinated route transitions, delayed
21
- skeletons and pointer and keyboard inspection.
17
+ Find a recipe by task from a project with Elements installed:
22
18
 
23
- The guides are included under `skills/` in the package.
19
+ ```sh
20
+ pnpm exec mechane-elements-catalog "searchable table with filters"
21
+ ```
22
+
23
+ The catalog connects a task to the example's TSX, public imports, and rendered Storybook story. Read the same index
24
+ programmatically at `@mechane-ai/elements/catalog.json`. When running the local Elements Storybook, connect an MCP
25
+ client to `http://localhost:6006/mcp` to explore the examples while developing.
26
+
27
+ ## Enable an agent in an app
28
+
29
+ Create the bridge at browser startup. A host integrating its own model can use the tool definitions in `agentTools`. To
30
+ expose tools to the browser through WebMCP, call `registerTools` explicitly and keep its cleanup function:
31
+
32
+ ```ts
33
+ import { createAgent, registerTools } from '@mechane-ai/elements/agent';
34
+ import type { AgentAction } from '@mechane-ai/elements/agent';
35
+
36
+ const allow = (step: AgentAction) =>
37
+ step.confirm === undefined && step.component === 'collection-query' && step.action === 'setQuery';
38
+
39
+ const agent = createAgent({ allow });
40
+ const unregister = registerTools(agent, { allow });
41
+ // Call unregister() when the host ends this integration.
42
+ ```
43
+
44
+ This example permits changing a collection search. A host can query or snapshot mounted components to discover their
45
+ available actions. After requesting a change, read the resulting state, including pending or error feedback from the
46
+ data owner. Keep credentials and private values out of observable labels, descriptions, and results. The application
47
+ authorizes data reads and mutations on the server.
48
+
49
+ | What the agent needs | What to look for in the mounted UI |
50
+ | ----------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
51
+ | Find and open a record | Use the named `collection-query`, then re-read `collection-results` until its `status` is `ready`. A pending or failed read can retain the previous rows. Match the chosen item to a mounted `collection-record` by `collection` and `recordId`, then use its advertised action. |
52
+ | Know where the user is | Read the `page-title`, current `navigation-link` or tab, and the `page-section` at the reading position. Scrolling updates the section an agent can query. |
53
+ | Inspect a chart or file | Query chart or tree items for the visible label and identifier. Read the chart's formatted `readout` after inspection. After selection, query the inspector's labeled `detail-field` entries. |
54
+ | Complete a form | Use visible field validation and `form-status` for pending, error, or success. Use `Field.Root isSensitive` to hide sensitive labels, values, and validation from the bridge. Put `ConfirmButton` on the action that performs a consequential mutation. |
24
55
 
25
56
  ## Install
26
57
 
@@ -65,38 +96,38 @@ emitted layers and selector specificity.
65
96
 
66
97
  Every path below belongs to `@mechane-ai/elements`. There is one package, version, and stylesheet.
67
98
 
68
- | Entry | Responsibility |
69
- | ---------------------- | ----------------------------------------------------------------------------------- |
70
- | Root | Buttons, text, surfaces, disclosure, avatars, and CopyValue. |
71
- | `/forms` | Fields, inputs, selection, appearance picking, file picking, and settings sections. |
72
- | `/forms/dates` | Civil-date pickers, range selection, and a controlled event month. |
73
- | `/overlays` | Dialog, Drawer, Menu, Popover, Preview, Tooltip, and AlertDialog. |
74
- | `/feedback` | Async regions, skeletons, progress, meters, notices, empty states, and toasts. |
75
- | `/navigation` | Tabs, page navigation, breadcrumbs, skip links, and shortcut labels. |
76
- | `/navigation/commands` | Command palette and scoped application-owned shortcuts. |
77
- | `/layout` | Application shell, sidebar, toolbars, compound record pages, and resizable panes. |
78
- | `/collections` | Tables, inspectors, collection controls, timelines, metrics, and timestamps. |
79
- | `/content` | Trace, JSON, recorded logs, and stack traces. |
80
- | `/content/link` | Safe content links without a renderer dependency. |
81
- | `/content/markdown` | Completed and streaming Markdown, embedded headings, and inert previews. |
82
- | `/content/code` | Source-preserving code highlighting. |
83
- | `/content/diff` | File changes and patches. |
84
- | `/content/tree` | File paths, statuses, and controlled selection. |
85
- | `/ai` | Conversations, messages, prompts, approvals, sources, and citations. |
86
- | `/charts` | Shared frames, legends, selection, and category types. |
87
- | `/charts/cartesian` | Lines, areas, sparklines, small multiples, bars, and scatter plots. |
88
- | `/charts/distribution` | Histograms, cumulative distributions, intervals, and ranked values. |
89
- | `/charts/matrix` | Matrices, token heatmaps, and color legends. |
90
- | `/charts/graph` | Supplied relationships and node selection. |
91
- | `/charts/hierarchy` | Treemaps. |
92
- | `/charts/timeline` | Waterfall intervals and instants. |
93
- | `/theme` | Light and dark theme props. |
94
- | `/agent` | Optional UI SDK bridge for a host that enables component inspection and actions. |
95
- | `/csp` | Application-supplied content security policy configuration. |
96
- | `/tokens` | Compiled token references for runtime styles. |
97
- | `/tokens.stylex` | Variable definitions for StyleX authoring and themes. |
98
- | `/constants.stylex` | Compile-time conditions, palette values, layers, and shared geometry. |
99
- | `/styles.css` | Component styles and token defaults. |
99
+ | Entry | Responsibility |
100
+ | ---------------------- | ------------------------------------------------------------------------------------ |
101
+ | Root | Buttons, text, surfaces, disclosure, avatars, and CopyValue. |
102
+ | `/forms` | Fields, inputs, selection, appearance picking, file picking, and settings sections. |
103
+ | `/forms/dates` | Civil-date pickers, range selection, and a controlled event month. |
104
+ | `/overlays` | Dialog, Drawer, Menu, Popover, Preview, Tooltip, and AlertDialog. |
105
+ | `/feedback` | Async regions, skeletons, progress, meters, notices, empty states, and toasts. |
106
+ | `/navigation` | Tabs, page navigation, breadcrumbs, skip links, and shortcut labels. |
107
+ | `/navigation/commands` | Command palette and scoped application-owned shortcuts. |
108
+ | `/layout` | Application shell, sidebar, toolbars, compound record pages, and resizable panes. |
109
+ | `/collections` | Tables, inspectors, collection controls, timelines, metrics, and timestamps. |
110
+ | `/content` | Trace, JSON, recorded logs, and stack traces. |
111
+ | `/content/link` | Safe content links without a renderer dependency. |
112
+ | `/content/markdown` | Completed and streaming Markdown, embedded headings, and inert previews. |
113
+ | `/content/code` | Source-preserving code highlighting. |
114
+ | `/content/diff` | File changes and patches. |
115
+ | `/content/tree` | File paths, statuses, and controlled selection. |
116
+ | `/ai` | Conversations, messages, prompts, approvals, sources, and citations. |
117
+ | `/charts` | Shared frames, legends, selection, and category types. |
118
+ | `/charts/cartesian` | Lines, ranges, areas, sparklines, small multiples, bars, bridges, and scatter plots. |
119
+ | `/charts/distribution` | Histograms, cumulative distributions, intervals, and ranked values. |
120
+ | `/charts/matrix` | Matrices, compact strips, token heatmaps, and color legends. |
121
+ | `/charts/graph` | Supplied relationships, weighted flows, and selection. |
122
+ | `/charts/hierarchy` | Treemaps. |
123
+ | `/charts/timeline` | Waterfall intervals and instants. |
124
+ | `/theme` | Light and dark theme props. |
125
+ | `/agent` | Optional UI SDK bridge for a host that enables component inspection and actions. |
126
+ | `/csp` | Application-supplied content security policy configuration. |
127
+ | `/tokens` | Compiled token references for runtime styles. |
128
+ | `/tokens.stylex` | Variable definitions for StyleX authoring and themes. |
129
+ | `/constants.stylex` | Compile-time conditions, palette values, layers, and shared geometry. |
130
+ | `/styles.css` | Component styles and token defaults. |
100
131
 
101
132
  Focused entries keep renderer and chart dependencies out of basic controls. There is no all-components barrel. Renderers
102
133
  initialize when used, without a consumer-managed worker pool or grammar CDN. The
@@ -0,0 +1,17 @@
1
+ type Recipe = {
2
+ readonly slug: string;
3
+ readonly title: string;
4
+ readonly description: string;
5
+ readonly path: string;
6
+ readonly story: string;
7
+ readonly imports: ReadonlyArray<string>;
8
+ };
9
+
10
+ type PublicExport = { readonly kind: 'type' | 'value'; readonly declaration: string };
11
+
12
+ export type Catalog = {
13
+ readonly package: string;
14
+ readonly version: string;
15
+ readonly recipes: ReadonlyArray<Recipe>;
16
+ readonly entries: Readonly<Record<string, Readonly<Record<string, PublicExport>>>>;
17
+ };
@@ -0,0 +1,60 @@
1
+ import { readFileSync } from 'node:fs';
2
+ import { parseArgs } from 'node:util';
3
+
4
+ const ignored = new Set(['a', 'an', 'and', 'are', 'build', 'for', 'in', 'of', 'on', 'page', 'the', 'to', 'with']);
5
+
6
+ /** @import {Catalog} from './catalog.d.mts' */
7
+
8
+ /**
9
+ * @param {Catalog} catalog The catalog built from the public package.
10
+ * @param {string} query Normalized task or public export name.
11
+ */
12
+ function lookup(catalog, query) {
13
+ const version = { package: catalog.package, version: catalog.version };
14
+
15
+ if (query.length === 0) {
16
+ return { ...version, recipes: catalog.recipes };
17
+ }
18
+
19
+ const words = new Set(query.match(/[a-z0-9]+/g));
20
+ const terms = [...words].filter((word) => !ignored.has(word));
21
+ const matches = catalog.recipes
22
+ .map((recipe) => {
23
+ const title = `${recipe.title} ${recipe.slug}`.toLowerCase();
24
+ const details = `${recipe.description} ${recipe.imports.join(' ')}`.toLowerCase();
25
+ const score = terms.reduce((sum, term) => sum + (title.includes(term) ? 3 : Number(details.includes(term))), 0);
26
+
27
+ return { recipe, score };
28
+ })
29
+ .filter(({ score }) => score > 0)
30
+ .toSorted((first, second) => second.score - first.score);
31
+
32
+ const exports = Object.entries(catalog.entries).flatMap(([specifier, members]) =>
33
+ Object.entries(members)
34
+ .filter(([name]) => name.toLowerCase().includes(query) || specifier.toLowerCase() === query)
35
+ .map(([name, member]) => ({ name, specifier, ...member })),
36
+ );
37
+ const best = matches[0]?.recipe;
38
+
39
+ return {
40
+ ...version,
41
+ recipes: matches.map(({ recipe }) => recipe),
42
+ exports,
43
+ ...(best !== undefined && { example: readFileSync(new URL(`../${best.path}`, import.meta.url), 'utf8') }),
44
+ };
45
+ }
46
+
47
+ /** @param {Catalog} catalog The catalog built from the public package. */
48
+ export function runCatalog(catalog) {
49
+ const { positionals, values } = parseArgs({
50
+ allowPositionals: true,
51
+ options: { help: { type: 'boolean', short: 'h', default: false } },
52
+ });
53
+
54
+ if (values.help) {
55
+ process.stdout.write('Usage: mechane-elements-catalog [task or public export name]\n');
56
+ } else {
57
+ const result = lookup(catalog, positionals.join(' ').trim().toLowerCase());
58
+ process.stdout.write(`${JSON.stringify(result, null, 2)}\n`);
59
+ }
60
+ }
package/dist/agent.js CHANGED
@@ -1 +1 @@
1
- export { createAgent } from "@ui-sdk/react/agent";
1
+ export { agentTools, createAgent, registerTools } from "@ui-sdk/react/agent";
package/dist/ai.js CHANGED
@@ -1,10 +1,10 @@
1
- import { D as e, E as t, T as n, _ as r, i, m as a, p as o, t as s, w as c } from "./src-s3tWwnN4.js";
2
- import { t as l } from "./code-block-C4K1sM9O.js";
3
- import { a as u } from "./src-D2OHco8V.js";
4
- import { t as d } from "./content-link-CBDqSvgP.js";
1
+ import { D as e, E as t, O as n, _ as r, i, m as a, p as o, t as s, w as c } from "./src-DcW_gMX8.js";
2
+ import { t as l } from "./code-block-Cpfr7B6a.js";
3
+ import { a as u } from "./src-Bk7M67zy.js";
4
+ import { t as d } from "./content-link-CGeFFb9F.js";
5
5
  import { r as f, t as p } from "./src-na2DdkKI.js";
6
- import { f as m, l as h } from "./src-DfOAlAd2.js";
7
- import { i as g, t as _ } from "./forms-I-WMHTkr.js";
6
+ import { f as m, l as h } from "./src-BpvnBWrF.js";
7
+ import { i as g, t as _ } from "./forms-DeU0Tiv3.js";
8
8
  import { t as ee } from "./accessibility-P89UG9-r.js";
9
9
  import { r as v } from "./control-styles-D3q_Qyxi.js";
10
10
  import { t as y } from "./visible-motion-1GcUaEi4.js";
@@ -330,16 +330,16 @@ function oe({ name: e, description: t, href: n, actions: r }) {
330
330
  });
331
331
  }
332
332
  // packages/ai/src/message-action.tsx
333
- function se(e) {
334
- if (e.kind === "link") {
335
- let { kind: n, label: r, ...i } = e;
336
- return /* @__PURE__ */ O(t, {
333
+ function se(n) {
334
+ if (n.kind === "link") {
335
+ let { kind: t, label: r, ...i } = n;
336
+ return /* @__PURE__ */ O(e, {
337
337
  ...i,
338
338
  "aria-label": r
339
339
  });
340
340
  }
341
- let { kind: r, label: i, ...a } = e;
342
- return /* @__PURE__ */ O(n, {
341
+ let { kind: r, label: i, ...a } = n;
342
+ return /* @__PURE__ */ O(t, {
343
343
  ...a,
344
344
  variant: "ghost",
345
345
  "aria-label": i
@@ -406,7 +406,7 @@ function ue({ isCompact: e = !1 }) {
406
406
  })
407
407
  });
408
408
  }
409
- function de({ label: e, value: t, onValueChange: r, onSubmit: i, name: a = "prompt", placeholder: o, maxLength: s, required: c = !0, isPending: l = !1, disabled: u = !1, isSubmitDisabled: d = !1, submitLabel: f = "Send message", pendingLabel: m = "Sending…", enterBehavior: h = "newline", isCompact: v = !1, description: y, error: x, controls: S, attachments: C, onStop: T, isStopPending: E = !1, stopLabel: D = "Stop response" }) {
409
+ function de({ label: e, value: n, onValueChange: r, onSubmit: i, name: a = "prompt", placeholder: o, maxLength: s, required: c = !0, isPending: l = !1, disabled: u = !1, isSubmitDisabled: d = !1, submitLabel: f = "Send message", pendingLabel: m = "Sending…", enterBehavior: h = "newline", isCompact: v = !1, description: y, error: x, controls: S, attachments: C, onStop: T, isStopPending: E = !1, stopLabel: D = "Stop response" }) {
410
410
  let A = w(), M = u, N = v && C === void 0 && S === void 0, P = !M && !l && !d, F = f;
411
411
  T === void 0 ? l ? F = m : h === "submit" && (F = `${f} · Enter`) : F = E ? "Stopping…" : D;
412
412
  function I(e) {
@@ -443,7 +443,7 @@ function de({ label: e, value: t, onValueChange: r, onSubmit: i, name: a = "prom
443
443
  shouldGrow: N,
444
444
  xstyle: N ? $.inlineInput : void 0,
445
445
  name: a,
446
- value: t,
446
+ value: n,
447
447
  onValueChange: r,
448
448
  onKeyDown: I,
449
449
  placeholder: o ?? e,
@@ -461,7 +461,7 @@ function de({ label: e, value: t, onValueChange: r, onSubmit: i, name: a = "prom
461
461
  children: [S !== void 0 && /* @__PURE__ */ O("div", {
462
462
  className: "x78zum5 x1a02dak x6s0dn4 x1hnptsi xeuugli x12lumcd",
463
463
  children: S
464
- }), /* @__PURE__ */ k(p.Root, { children: [/* @__PURE__ */ O(p.Trigger, { render: T === void 0 ? /* @__PURE__ */ O(n, {
464
+ }), /* @__PURE__ */ k(p.Root, { children: [/* @__PURE__ */ O(p.Trigger, { render: T === void 0 ? /* @__PURE__ */ O(t, {
465
465
  xstyle: $.action,
466
466
  type: "submit",
467
467
  "data-agent-confirm": f,
@@ -473,7 +473,7 @@ function de({ label: e, value: t, onValueChange: r, onSubmit: i, name: a = "prom
473
473
  size: 16,
474
474
  "aria-hidden": !0
475
475
  })
476
- }) : /* @__PURE__ */ O(n, {
476
+ }) : /* @__PURE__ */ O(t, {
477
477
  xstyle: $.action,
478
478
  type: "button",
479
479
  "data-agent-confirm": D,
@@ -553,22 +553,22 @@ function pe({ sources: e, label: t = "Sources" }) {
553
553
  ]
554
554
  });
555
555
  }
556
- function me({ source: t, label: n }) {
556
+ function me({ source: e, label: t }) {
557
557
  return /* @__PURE__ */ O("span", {
558
558
  className: "xt0psk2 x11njtxf xss6m8b",
559
559
  children: /* @__PURE__ */ k(f.Root, { children: [/* @__PURE__ */ O(f.Trigger, {
560
- render: /* @__PURE__ */ O(e, {}),
561
- "aria-label": `Source ${n}: ${t.title}`,
562
- children: n
560
+ render: /* @__PURE__ */ O(n, {}),
561
+ "aria-label": `Source ${t}: ${e.title}`,
562
+ children: t
563
563
  }), /* @__PURE__ */ O(f.Popup, {
564
564
  side: "top",
565
565
  children: /* @__PURE__ */ k(a, {
566
566
  isCompact: !0,
567
567
  children: [
568
- /* @__PURE__ */ O(f.Title, { children: t.title }),
569
- t.description !== void 0 && /* @__PURE__ */ O(f.Description, { children: t.description }),
568
+ /* @__PURE__ */ O(f.Title, { children: e.title }),
569
+ e.description !== void 0 && /* @__PURE__ */ O(f.Description, { children: e.description }),
570
570
  /* @__PURE__ */ O(d, {
571
- href: t.href,
571
+ href: e.href,
572
572
  children: "Open source"
573
573
  })
574
574
  ]