@mechane-ai/elements 0.44.0 → 0.46.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 (117) hide show
  1. package/README.md +48 -18
  2. package/bin/mechane-elements-catalog.mjs +42 -4
  3. package/dist/ai.js +268 -202
  4. package/dist/catalog.json +95 -31
  5. package/dist/categorical-values-BXi-rJuv.js +74 -0
  6. package/dist/chart-cursor-1mFd48Jc.js +23 -0
  7. package/dist/chart-data-CIJVWCYt.js +21 -0
  8. package/dist/chart-frame-BaxKn_MB.js +236 -0
  9. package/dist/{chart-input-B6_HXFDP.js → chart-input-Bm82_9Rd.js} +2 -2
  10. package/dist/chart-theme-4zprJ3rW.js +404 -0
  11. package/dist/charts/cartesian.js +1624 -1442
  12. package/dist/charts/distribution.js +486 -409
  13. package/dist/charts/graph.js +383 -358
  14. package/dist/charts/hierarchy.js +103 -94
  15. package/dist/charts/matrix.js +340 -333
  16. package/dist/charts/timeline.js +167 -134
  17. package/dist/charts.js +3 -3
  18. package/dist/{code-block-Cpfr7B6a.js → code-block-DioAM2bZ.js} +67 -52
  19. package/dist/collections.js +1648 -1188
  20. package/dist/{constants.stylex-CaVa9yGN.js → constants.stylex-CqhVl0uU.js} +9 -9
  21. package/dist/content/code.js +1 -1
  22. package/dist/content/diff.js +67 -66
  23. package/dist/content/link.js +1 -1
  24. package/dist/content/markdown.js +2 -2
  25. package/dist/content/tree.js +3 -3
  26. package/dist/{content-link-CGeFFb9F.js → content-link-NWuHp5rC.js} +1 -1
  27. package/dist/content.js +1 -1
  28. package/dist/csp.js +6 -11
  29. package/dist/feedback.js +1 -1
  30. package/dist/forms/dates.js +274 -214
  31. package/dist/{forms-DeU0Tiv3.js → forms-CEbwzlRR.js} +50 -41
  32. package/dist/forms.js +3 -3
  33. package/dist/index.js +1 -1
  34. package/dist/layout.js +207 -207
  35. package/dist/navigation.js +4 -3
  36. package/dist/packages/ai/src/conversation.d.ts +2 -0
  37. package/dist/packages/ai/src/prompt-input.d.ts +7 -2
  38. package/dist/packages/charts/src/cartesian/composition-bars.d.ts +2 -2
  39. package/dist/packages/charts/src/cartesian/index.d.ts +3 -2
  40. package/dist/packages/charts/src/cartesian/scatter-plot.d.ts +8 -2
  41. package/dist/packages/charts/src/cartesian/time-series.d.ts +11 -1
  42. package/dist/packages/charts/src/categorical-values.d.ts +14 -9
  43. package/dist/packages/charts/src/chart-frame.d.ts +7 -9
  44. package/dist/packages/charts/src/chart-inspection.d.ts +1 -2
  45. package/dist/packages/charts/src/chart-range.d.ts +33 -0
  46. package/dist/packages/charts/src/chart-rows.d.ts +20 -0
  47. package/dist/packages/charts/src/chart-theme.d.ts +25 -1
  48. package/dist/packages/charts/src/chart.d.ts +81 -0
  49. package/dist/packages/charts/src/distribution/distribution-plot.d.ts +6 -4
  50. package/dist/packages/charts/src/index.d.ts +2 -1
  51. package/dist/packages/charts/src/matrix/matrix-strip.d.ts +3 -3
  52. package/dist/packages/charts/src/plot-width.d.ts +0 -1
  53. package/dist/packages/charts/src/timeline/index.d.ts +1 -1
  54. package/dist/packages/charts/src/timeline/waterfall.d.ts +6 -2
  55. package/dist/packages/collections/src/collection-controls.d.ts +5 -1
  56. package/dist/packages/collections/src/collection-filters.d.ts +4 -1
  57. package/dist/packages/collections/src/control-toolbar.d.ts +13 -0
  58. package/dist/packages/collections/src/data-table-layout.d.ts +78 -0
  59. package/dist/packages/collections/src/data-table-rows.d.ts +54 -0
  60. package/dist/packages/collections/src/data-table-styles.d.ts +340 -0
  61. package/dist/packages/collections/src/data-table-text.d.ts +13 -0
  62. package/dist/packages/collections/src/data-table-trigger.d.ts +23 -0
  63. package/dist/packages/collections/src/data-table.d.ts +3 -85
  64. package/dist/packages/collections/src/index.d.ts +11 -6
  65. package/dist/packages/collections/src/query-controls.d.ts +6 -2
  66. package/dist/packages/collections/src/table-results.d.ts +47 -13
  67. package/dist/packages/collections/src/timeline.d.ts +1 -0
  68. package/dist/packages/collections/src/use-collection-controls.d.ts +2 -1
  69. package/dist/packages/collections/src/use-table-window.d.ts +25 -0
  70. package/dist/packages/content/src/viewer.d.ts +8 -0
  71. package/dist/packages/core/src/disclosure.d.ts +9 -1
  72. package/dist/packages/core/src/index.d.ts +1 -0
  73. package/dist/packages/core/src/route-link.d.ts +11 -0
  74. package/dist/packages/forms/src/dates/date-inputs.d.ts +3 -1
  75. package/dist/packages/forms/src/file-picker.d.ts +15 -0
  76. package/dist/packages/forms/src/form-controls.d.ts +1 -6
  77. package/dist/packages/forms/src/forms.d.ts +4 -1
  78. package/dist/packages/forms/src/index.d.ts +4 -2
  79. package/dist/packages/forms/src/selection.d.ts +14 -0
  80. package/dist/packages/foundations/src/chart-tones.d.ts +5 -0
  81. package/dist/packages/foundations/src/csp/index.d.ts +1 -1
  82. package/dist/packages/foundations/src/csp/provider.d.ts +7 -2
  83. package/dist/packages/navigation/src/index.d.ts +1 -1
  84. package/dist/{pierre-diff-B3tD3-6z.js → pierre-diff-DlvjyuJn.js} +1 -1
  85. package/dist/plot-width-v2c_rA20.js +63 -0
  86. package/dist/{src-gqEebHEa.js → src-1EHkSFS-.js} +395 -274
  87. package/dist/{src-DBNncL7_.js → src-BPTDJqt0.js} +48 -68
  88. package/dist/src-CGc_hjxJ.js +409 -0
  89. package/dist/{src-DcW_gMX8.js → src-CpdJlDhO.js} +480 -362
  90. package/dist/{src-CDp1JtwC.js → src-DVHlknB6.js} +135 -120
  91. package/dist/styles2.css +167 -132
  92. package/dist/tokens.js +1 -1
  93. package/package.json +1 -4
  94. package/packages/foundations/src/constants.stylex.ts +9 -9
  95. package/packages/foundations/src/tokens.stylex.ts +9 -9
  96. package/skills/extend-elements/SKILL.md +74 -0
  97. package/skills/review-elements/SKILL.md +76 -0
  98. package/skills/upgrade-elements/SKILL.md +34 -0
  99. package/skills/upgrade-elements/references/releases.md +58 -0
  100. package/skills/use-elements/SKILL.md +64 -13
  101. package/skills/use-elements/references/agent.md +57 -0
  102. package/skills/use-elements/references/charts.md +63 -0
  103. package/skills/use-elements/references/collections.md +89 -0
  104. package/skills/use-elements/references/conversations.md +47 -0
  105. package/skills/use-elements/references/forms.md +81 -0
  106. package/skills/use-elements/references/reports.md +6 -4
  107. package/skills/use-elements/references/styling.md +70 -0
  108. package/skills/use-elements/references/workspace.md +3 -3
  109. package/dist/categorical-values-ByvFLaNE.js +0 -59
  110. package/dist/chart-frame-Bcd9Tpt5.js +0 -251
  111. package/dist/chart-navigation-BAbb5PV9.js +0 -154
  112. package/dist/header-styles-COxCYFZx.js +0 -90
  113. package/dist/packages/charts/src/chart-navigation.d.ts +0 -39
  114. package/dist/packages/charts/src/chart-surface.d.ts +0 -27
  115. package/dist/packages/navigation/src/route-link.d.ts +0 -2
  116. package/dist/plot-width-8cXdAjoD.js +0 -96
  117. package/dist/src-Bk7M67zy.js +0 -396
@@ -1,22 +1,22 @@
1
- import { i as e, s as t } from "./src-DcW_gMX8.js";
1
+ import { i as e, s as t } from "./src-CpdJlDhO.js";
2
2
  import { a as n, n as r, r as i, t as a } from "./control-styles-D3q_Qyxi.js";
3
3
  import { i as o, n as s, r as c } from "./tokens.stylex-dF5CACEJ.js";
4
4
  import { t as l } from "./accessibility-P89UG9-r.js";
5
- import { c as u } from "./constants.stylex-CaVa9yGN.js";
5
+ import { c as u } from "./constants.stylex-CqhVl0uU.js";
6
6
  import * as d from "@stylexjs/stylex";
7
7
  import { mergeProps as f } from "@ui-sdk/react/primitive";
8
8
  import { createContext as p, useContext as m, useEffect as h, useRef as g, useState as _ } from "react";
9
9
  import { Fragment as v, jsx as y, jsxs as b } from "react/jsx-runtime";
10
- import { Box as ee, CircleCheck as x, CircleX as te, Info as S, LoaderCircle as C, TriangleAlert as ne, X as w } from "lucide-react";
11
- import { Meter as T, MeterIndicator as E, MeterLabel as re, MeterTrack as ie } from "@ui-sdk/react/meter";
12
- import { Progress as ae, ProgressIndicator as oe, ProgressLabel as se, ProgressTrack as ce } from "@ui-sdk/react/progress";
13
- import { Toast as le, ToastAction as ue, ToastClose as de, ToastDescription as D, ToastRegion as O, ToastTitle as k, createToaster as A } from "@ui-sdk/react/toast";
10
+ import { Box as x, CircleCheck as S, CircleX as C, Info as w, LoaderCircle as T, TriangleAlert as ee, X as te } from "lucide-react";
11
+ import { Meter as ne, MeterIndicator as re, MeterLabel as ie, MeterTrack as ae } from "@ui-sdk/react/meter";
12
+ import { Progress as oe, ProgressIndicator as se, ProgressLabel as ce, ProgressTrack as le } from "@ui-sdk/react/progress";
13
+ import { Toast as ue, ToastAction as de, ToastClose as fe, ToastDescription as pe, ToastRegion as E, ToastTitle as D, createToaster as O } from "@ui-sdk/react/toast";
14
14
  // packages/feedback/src/feedback.tsx
15
- function j({ title: n, children: r, action: i, ...a }) {
15
+ function k({ title: n, children: r, action: i, ...a }) {
16
16
  return /* @__PURE__ */ b("div", {
17
17
  ...f({ className: "x78zum5 xdt5ytf x6s0dn4 xl56j7k x2b8uid xeuugli x193iq5w x9f619 x9w77qv xnx3t7k x1n8ia3y x1hz01jw xj57cvi xvmahel xj0a0fe" }, a),
18
18
  children: [
19
- /* @__PURE__ */ y(ee, {
19
+ /* @__PURE__ */ y(x, {
20
20
  size: 22,
21
21
  "aria-hidden": !0,
22
22
  className: "x153jb6y x2lah0s"
@@ -30,14 +30,14 @@ function j({ title: n, children: r, action: i, ...a }) {
30
30
  ]
31
31
  });
32
32
  }
33
- function M({ hasError: e = !1, ...t }) {
33
+ function A({ hasError: e = !1, ...t }) {
34
34
  return /* @__PURE__ */ y("div", { ...f({ role: e ? "alert" : "status" }, {
35
35
  0: { className: "xeuugli x193iq5w x9f619 x1qokhjc x1doqdfy x1ok0vyi x1hz01jw xvmahel xtqrqnz x1778rvt xj57cvi x1dqe72f x1f9ixgr xj0a0fe" },
36
36
  1: { className: "xeuugli x193iq5w x9f619 x1qokhjc x1doqdfy x1ok0vyi x1hz01jw xvmahel xtqrqnz x1778rvt xj57cvi xj0a0fe xr5kp14 xcqwzn" }
37
37
  }[!!e | 0], t) });
38
38
  }
39
39
  // packages/feedback/src/skeleton.tsx
40
- var N = {
40
+ var j = {
41
41
  skeleton: {
42
42
  k1xSpc: "x1lliihq",
43
43
  ks0D6T: "x193iq5w",
@@ -75,50 +75,50 @@ var N = {
75
75
  k7Eaqz: "xeuugli",
76
76
  $$css: !0
77
77
  }
78
- }, P = {
79
- rectangle: N.rectangle,
80
- circle: N.circle
78
+ }, M = {
79
+ rectangle: j.rectangle,
80
+ circle: j.circle
81
81
  };
82
- function F({ width: e = "100%", height: t = 8, shape: n = "rectangle" }) {
82
+ function N({ width: e = "100%", height: t = 8, shape: n = "rectangle" }) {
83
83
  return /* @__PURE__ */ y("span", {
84
84
  "aria-hidden": !0,
85
- ...d.props(N.skeleton, N.dimensions(e, t), P[n])
85
+ ...d.props(j.skeleton, j.dimensions(e, t), M[n])
86
86
  });
87
87
  }
88
- function I({ lines: e = 1, width: t = "100%" }) {
88
+ function P({ lines: e = 1, width: t = "100%" }) {
89
89
  return /* @__PURE__ */ y("span", {
90
90
  "aria-hidden": !0,
91
- ...d.props(N.text, N.width(t)),
91
+ ...d.props(j.text, j.width(t)),
92
92
  children: Array.from({ length: e }, (t, n) => /* @__PURE__ */ y("span", {
93
93
  className: "x78zum5 x6s0dn4 xg2ss61",
94
- children: /* @__PURE__ */ y(F, {
94
+ children: /* @__PURE__ */ y(N, {
95
95
  width: e > 1 && n === e - 1 ? "65%" : "100%",
96
96
  height: "0.6em"
97
97
  })
98
98
  }, `placeholder-${n}`))
99
99
  });
100
100
  }
101
- function L({ label: e, showLabel: t = !1 }) {
101
+ function F({ label: e, showLabel: t = !1 }) {
102
102
  return /* @__PURE__ */ b("span", {
103
103
  role: "status",
104
104
  className: "x3nfvp2 x1n2onr6 x6s0dn4 xeuugli x193iq5w x1hnptsi x153jb6y x1hz01jw xtqrqnz x1778rvt xj57cvi xj0a0fe",
105
- children: [/* @__PURE__ */ y(C, {
105
+ children: [/* @__PURE__ */ y(T, {
106
106
  "aria-hidden": !0,
107
107
  className: "xtwnzbg x18utl2x x2lah0s"
108
108
  }), /* @__PURE__ */ y("span", {
109
- ...d.props(N.label, !t && l.hidden),
109
+ ...d.props(j.label, !t && l.hidden),
110
110
  children: e
111
111
  })]
112
112
  });
113
113
  }
114
114
  // packages/feedback/src/control-placeholders.tsx
115
- var R = {
115
+ var I = {
116
116
  ks0D6T: "x193iq5w",
117
117
  $$css: !0
118
- }, z = {
118
+ }, L = {
119
119
  kZKoxP: "x16ye13r",
120
120
  $$css: !0
121
- }, B = {
121
+ }, R = {
122
122
  button: {
123
123
  kWkggS: "x1r7kqkb",
124
124
  kXLuUW: "xxymvpz",
@@ -130,39 +130,39 @@ var R = {
130
130
  $$css: !0
131
131
  },
132
132
  width: (e) => [
133
- R,
133
+ I,
134
134
  {
135
135
  kzqmXN: e == null ? e : "x5lhr3w",
136
136
  $$css: !0
137
137
  },
138
138
  { "--x-width": ((e) => typeof e == "number" ? e + "px" : e ?? void 0)(e) }
139
139
  ],
140
- rows: (e) => [z, { "--x-height": ((e) => typeof e == "number" ? e + "px" : e ?? void 0)(`calc(${e} * 1lh + 2 * ${o.paddingBlock} + 2px)`) }]
140
+ rows: (e) => [L, { "--x-height": ((e) => typeof e == "number" ? e + "px" : e ?? void 0)(`calc(${e} * 1lh + 2 * ${o.paddingBlock} + 2px)`) }]
141
141
  };
142
- function V({ width: e = "7ch", isIconOnly: t = !1, density: n = "standard", xstyle: s }) {
142
+ function z({ width: e = "7ch", isIconOnly: t = !1, density: n = "standard", xstyle: s }) {
143
143
  return /* @__PURE__ */ y("span", {
144
144
  "aria-hidden": !0,
145
145
  inert: !0,
146
- ...d.props(i.base, i.button, r[n], a[n], t && i.iconButton, B.button, s),
147
- children: t ? /* @__PURE__ */ y(F, {
146
+ ...d.props(i.base, i.button, r[n], a[n], t && i.iconButton, R.button, s),
147
+ children: t ? /* @__PURE__ */ y(N, {
148
148
  width: o.iconSize,
149
149
  height: o.iconSize
150
- }) : /* @__PURE__ */ y(I, { width: e })
150
+ }) : /* @__PURE__ */ y(P, { width: e })
151
151
  });
152
152
  }
153
- function H({ label: e, hint: t, isMultiline: a = !1, density: o = "standard", rows: s = 4, width: c = "100%", xstyle: l }) {
153
+ function B({ label: e, hint: t, isMultiline: a = !1, density: o = "standard", rows: s = 4, width: c = "100%", xstyle: l }) {
154
154
  let u = a ? Math.min(s, 6) : 1;
155
155
  return /* @__PURE__ */ b("div", {
156
156
  "aria-hidden": !0,
157
- ...d.props(i.fieldRoot, B.width(c), l),
157
+ ...d.props(i.fieldRoot, R.width(c), l),
158
158
  children: [
159
159
  e !== void 0 && /* @__PURE__ */ y("span", {
160
160
  ...d.props(i.label),
161
161
  children: e
162
162
  }),
163
163
  /* @__PURE__ */ y("div", {
164
- ...d.props(i.base, i.field, r[o], !a && i.singleLineField, !a && n[o], !a && B.singleLine, a && i.textarea, a && B.rows(s)),
165
- children: /* @__PURE__ */ y(I, {
164
+ ...d.props(i.base, i.field, r[o], !a && i.singleLineField, !a && n[o], !a && R.singleLine, a && i.textarea, a && R.rows(s)),
165
+ children: /* @__PURE__ */ y(P, {
166
166
  width: "60%",
167
167
  lines: u
168
168
  })
@@ -175,7 +175,7 @@ function H({ label: e, hint: t, isMultiline: a = !1, density: o = "standard", ro
175
175
  });
176
176
  }
177
177
  // packages/foundations/src/chart-tones.ts
178
- var U = {
178
+ var V = {
179
179
  series1: s.series1,
180
180
  series2: s.series2,
181
181
  series3: s.series3,
@@ -185,7 +185,22 @@ var U = {
185
185
  positive: s.positive,
186
186
  negative: s.negative,
187
187
  neutral: c.muted
188
- }, W = {
188
+ }, me = {
189
+ series1: H(s.series1),
190
+ series2: H(s.series2),
191
+ series3: H(s.series3),
192
+ series4: H(s.series4),
193
+ series5: H(s.series5),
194
+ series6: H(s.series6),
195
+ positive: H(s.positive),
196
+ negative: H(s.negative),
197
+ neutral: H(c.muted)
198
+ };
199
+ function H(e) {
200
+ return `color-mix(in srgb, ${e} 62%, ${c.ink})`;
201
+ }
202
+ // packages/feedback/src/progress.tsx
203
+ var U = {
189
204
  root: {
190
205
  k1xSpc: "x78zum5",
191
206
  kXwgrk: "xdt5ytf",
@@ -266,7 +281,7 @@ var U = {
266
281
  kB7OPa: "x9f619",
267
282
  $$css: !0
268
283
  }
269
- }, fe = {
284
+ }, he = {
270
285
  stacked: {
271
286
  root: void 0,
272
287
  heading: void 0,
@@ -275,15 +290,15 @@ var U = {
275
290
  track: void 0
276
291
  },
277
292
  inline: {
278
- root: W.inline,
279
- heading: W.inlineHeading,
293
+ root: U.inline,
294
+ heading: U.inlineHeading,
280
295
  label: l.hidden,
281
- value: W.inlineValue,
282
- track: W.inlineTrack
296
+ value: U.inlineValue,
297
+ track: U.inlineTrack
283
298
  }
284
299
  };
285
- function pe({ label: e, value: t, max: n, valueLabel: r }) {
286
- return /* @__PURE__ */ b(ae, {
300
+ function ge({ label: e, value: t, max: n, valueLabel: r }) {
301
+ return /* @__PURE__ */ b(oe, {
287
302
  value: t,
288
303
  max: n,
289
304
  locale: "en-US",
@@ -291,69 +306,69 @@ function pe({ label: e, value: t, max: n, valueLabel: r }) {
291
306
  className: "x78zum5 xdt5ytf x1hnptsi xh8yej3 xeuugli x1hz01jw xtqrqnz x1778rvt xj57cvi xbixft xj0a0fe",
292
307
  children: [/* @__PURE__ */ b("div", {
293
308
  className: "x78zum5 x1pha0wt x1qughib x1n8ia3y x1a02dak",
294
- children: [/* @__PURE__ */ y(se, {
309
+ children: [/* @__PURE__ */ y(ce, {
295
310
  className: "xeuugli x193iq5w",
296
311
  children: e
297
312
  }), /* @__PURE__ */ y("span", {
298
313
  className: "xeuugli x193iq5w x153jb6y xss6m8b",
299
314
  children: r
300
315
  })]
301
- }), /* @__PURE__ */ y(ce, {
316
+ }), /* @__PURE__ */ y(le, {
302
317
  ...{
303
318
  0: { className: "xqu0tyb xh8yej3 x1ok0vyi x1fa40ue xb3r6kr" },
304
319
  1: { className: "xqu0tyb xh8yej3 x1ok0vyi xb3r6kr x1r7kqkb xmkeg23 xbsl7fq xqrc7c3 x9f619" }
305
320
  }[t === null | 0],
306
- children: t !== null && /* @__PURE__ */ y(oe, { className: "x5yr21d x1pt885t x1ok0vyi" })
321
+ children: t !== null && /* @__PURE__ */ y(se, { className: "x5yr21d x1pt885t x1ok0vyi" })
307
322
  })]
308
323
  });
309
324
  }
310
- function me({ label: e, value: t, max: n, valueLabel: r, layout: i = "stacked", tone: a }) {
311
- let o = fe[i], s = a === void 0 ? void 0 : W.tone(U[a]), c = t !== null && Number.isFinite(t);
312
- return Number.isFinite(n) && n > 0 && c && t >= 0 && t <= n ? /* @__PURE__ */ b(T, {
325
+ function _e({ label: e, value: t, max: n, valueLabel: r, layout: i = "stacked", tone: a }) {
326
+ let o = he[i], s = a === void 0 ? void 0 : U.tone(V[a]), c = t !== null && Number.isFinite(t);
327
+ return Number.isFinite(n) && n > 0 && c && t >= 0 && t <= n ? /* @__PURE__ */ b(ne, {
313
328
  value: t,
314
329
  max: n,
315
330
  locale: "en-US",
316
331
  getValueLabel: () => r,
317
- ...d.props(W.root, o.root),
332
+ ...d.props(U.root, o.root),
318
333
  children: [/* @__PURE__ */ b("div", {
319
- ...d.props(W.heading, o.heading),
320
- children: [/* @__PURE__ */ y(re, {
321
- ...d.props(W.label, o.label),
334
+ ...d.props(U.heading, o.heading),
335
+ children: [/* @__PURE__ */ y(ie, {
336
+ ...d.props(U.label, o.label),
322
337
  children: e
323
338
  }), /* @__PURE__ */ y("span", {
324
- ...d.props(W.value, o.value),
339
+ ...d.props(U.value, o.value),
325
340
  children: r
326
341
  })]
327
- }), /* @__PURE__ */ y(ie, {
328
- ...d.props(W.track, o.track),
329
- children: /* @__PURE__ */ y(E, { ...d.props(W.indicator, s) })
342
+ }), /* @__PURE__ */ y(ae, {
343
+ ...d.props(U.track, o.track),
344
+ children: /* @__PURE__ */ y(re, { ...d.props(U.indicator, s) })
330
345
  })]
331
346
  }) : /* @__PURE__ */ b("div", {
332
- ...d.props(W.root, o.root),
347
+ ...d.props(U.root, o.root),
333
348
  children: [/* @__PURE__ */ b("div", {
334
- ...d.props(W.heading, o.heading),
349
+ ...d.props(U.heading, o.heading),
335
350
  children: [/* @__PURE__ */ y("span", {
336
- ...d.props(W.label, o.label),
351
+ ...d.props(U.label, o.label),
337
352
  children: e
338
353
  }), /* @__PURE__ */ y("span", {
339
- ...d.props(W.value, o.value),
354
+ ...d.props(U.value, o.value),
340
355
  children: r
341
356
  })]
342
357
  }), /* @__PURE__ */ y("div", {
343
358
  "aria-hidden": !0,
344
- ...d.props(W.track, o.track, W.unknown)
359
+ ...d.props(U.track, o.track, U.unknown)
345
360
  })]
346
361
  });
347
362
  }
348
363
  // packages/feedback/src/notifications.ts
349
- var he = 1e3, ge = 4;
350
- function _e() {
351
- let e = A(), t = /* @__PURE__ */ new Map();
364
+ var ve = 1e3, ye = 4;
365
+ function be() {
366
+ let e = O(), t = /* @__PURE__ */ new Map();
352
367
  function n(n) {
353
368
  if (n === void 0) return e;
354
369
  let r = t.get(n);
355
370
  if (r !== void 0) return r;
356
- let i = A();
371
+ let i = O();
357
372
  return typeof document < "u" && t.set(n, i), i;
358
373
  }
359
374
  function r(e, n) {
@@ -371,13 +386,13 @@ function _e() {
371
386
  dismiss: i
372
387
  };
373
388
  }
374
- var G = _e();
375
- function K(e) {
389
+ var W = be();
390
+ function G(e) {
376
391
  return typeof e == "number" ? `#${e}` : e.replace(/^#/, "##");
377
392
  }
378
- function q(e, { id: t, toasterId: n, title: r, description: i, action: a, shouldPersist: o }) {
379
- let s = G.queueFor(n)({
380
- ...t !== void 0 && { id: K(t) },
393
+ function K(e, { id: t, toasterId: n, title: r, description: i, action: a, shouldPersist: o }) {
394
+ let s = W.queueFor(n)({
395
+ ...t !== void 0 && { id: G(t) },
381
396
  type: e,
382
397
  title: r,
383
398
  description: i,
@@ -386,18 +401,18 @@ function q(e, { id: t, toasterId: n, title: r, description: i, action: a, should
386
401
  dismiss: a?.shouldDismiss ?? !0,
387
402
  ...a !== void 0 && { onAction: a.onClick }
388
403
  },
389
- duration: o === !0 || a !== void 0 || e === "loading" ? Infinity : ge * he
404
+ duration: o === !0 || a !== void 0 || e === "loading" ? Infinity : ye * ve
390
405
  });
391
406
  return t ?? s;
392
407
  }
393
- var ve = {
394
- success: (e) => q("success", e),
395
- error: (e) => q("error", e),
396
- info: (e) => q("info", e),
397
- warning: (e) => q("warning", e),
398
- loading: (e) => q("loading", e),
399
- dismiss: ({ id: e }) => G.dismiss(K(e))
400
- }, J = {
408
+ var xe = {
409
+ success: (e) => K("success", e),
410
+ error: (e) => K("error", e),
411
+ info: (e) => K("info", e),
412
+ warning: (e) => K("warning", e),
413
+ loading: (e) => K("loading", e),
414
+ dismiss: ({ id: e }) => W.dismiss(G(e))
415
+ }, q = {
401
416
  region: {
402
417
  kzqmXN: "x1261nif xqu3jwc",
403
418
  kqGvvJ: "xtru72a xf6ji1w",
@@ -565,38 +580,38 @@ var ve = {
565
580
  kBLIq6: "xvivl9a",
566
581
  $$css: !0
567
582
  }
568
- }, ye = {
583
+ }, Se = {
569
584
  default: {
570
- Icon: S,
571
- tone: J.neutral
585
+ Icon: w,
586
+ tone: q.neutral
572
587
  },
573
588
  info: {
574
- Icon: S,
575
- tone: J.neutral
589
+ Icon: w,
590
+ tone: q.neutral
576
591
  },
577
592
  success: {
578
- Icon: x,
579
- tone: J.success
593
+ Icon: S,
594
+ tone: q.success
580
595
  },
581
596
  warning: {
582
- Icon: ne,
583
- tone: J.warning
597
+ Icon: ee,
598
+ tone: q.warning
584
599
  },
585
600
  error: {
586
- Icon: te,
587
- tone: J.error
601
+ Icon: C,
602
+ tone: q.error
588
603
  },
589
604
  loading: {
590
- Icon: C,
591
- tone: J.neutral
605
+ Icon: T,
606
+ tone: q.neutral
592
607
  }
593
- }, be = {
608
+ }, Ce = {
594
609
  "x-default-marker": "x-default-marker",
595
610
  $$css: !0
596
611
  };
597
- function xe({ id: e, side: t = "bottom", align: n = "end", isExpanded: r = !1, visibleToasts: i = 3, showCloseButton: a = !0, closeButtonAriaLabel: o = "Dismiss notification", containerAriaLabel: s = "Notifications" }) {
598
- let c = G.queueFor(e);
599
- return h(() => G.bind(e, c), [e, c]), /* @__PURE__ */ y(O, {
612
+ function we({ id: e, side: t = "bottom", align: n = "end", isExpanded: r = !1, visibleToasts: i = 3, showCloseButton: a = !0, closeButtonAriaLabel: o = "Dismiss notification", containerAriaLabel: s = "Notifications" }) {
613
+ let c = W.queueFor(e);
614
+ return h(() => W.bind(e, c), [e, c]), /* @__PURE__ */ y(E, {
600
615
  toaster: c,
601
616
  side: t,
602
617
  align: n,
@@ -606,23 +621,23 @@ function xe({ id: e, side: t = "bottom", align: n = "end", isExpanded: r = !1, v
606
621
  "aria-label": s,
607
622
  className: "x1261nif xqu3jwc xtru72a xf6ji1w xqv9vo9 xyt9zns x1u22o8f xviucbn x1572sgj",
608
623
  children: (e) => {
609
- let { Icon: n, tone: r } = ye[e.type];
610
- return /* @__PURE__ */ b(le, {
611
- ...d.props(J.toast, J[t], J.focus, be),
624
+ let { Icon: n, tone: r } = Se[e.type];
625
+ return /* @__PURE__ */ b(ue, {
626
+ ...d.props(q.toast, q[t], q.focus, Ce),
612
627
  children: [
613
628
  /* @__PURE__ */ y(n, {
614
629
  "aria-hidden": !0,
615
- ...d.props(J.icon, J.part, r)
630
+ ...d.props(q.icon, q.part, r)
616
631
  }),
617
632
  /* @__PURE__ */ b("div", {
618
633
  className: "x78zum5 xdt5ytf x148l3ej xeuugli xfko13i x1hc1fzr x1gqwzbp x19991ni xtitasy x1faw7qm",
619
- children: [/* @__PURE__ */ y(k, { className: "xk4h15q x104kibb x1ua5tub xh0615m xb3r6kr xj0a0fe" }), /* @__PURE__ */ y(D, { className: "x153jb6y x104kibb x1ua5tub xh0615m xb3r6kr xj0a0fe" })]
634
+ children: [/* @__PURE__ */ y(D, { className: "xk4h15q x104kibb x1ua5tub xh0615m xb3r6kr xj0a0fe" }), /* @__PURE__ */ y(pe, { className: "x153jb6y x104kibb x1ua5tub xh0615m xb3r6kr xj0a0fe" })]
620
635
  }),
621
- e.action?.label !== void 0 && /* @__PURE__ */ y(ue, { className: "x3nfvp2 x6s0dn4 xl56j7k x2lah0s x9f619 xeuugli x193iq5w x17tes2r x17oiadl x1hmw7ec x1atzlso xc342km x1ok0vyi x1hz01jw xtqrqnz x1778rvt xk4h15q xeaf4i8 xj0a0fe x1ypdohk x1pt885t x1ymx3u3 xmn6lam x1eou8nq x13qnu6 x9v5kkp x19rmrnh x7s97pk x1hc1fzr x1gqwzbp x19991ni xtitasy x1faw7qm" }),
622
- a && /* @__PURE__ */ y(de, {
636
+ e.action?.label !== void 0 && /* @__PURE__ */ y(de, { className: "x3nfvp2 x6s0dn4 xl56j7k x2lah0s x9f619 xeuugli x193iq5w x17tes2r x17oiadl x1hmw7ec x1atzlso xc342km x1ok0vyi x1hz01jw xtqrqnz x1778rvt xk4h15q xeaf4i8 xj0a0fe x1ypdohk x1pt885t x1ymx3u3 xmn6lam x1eou8nq x13qnu6 x9v5kkp x19rmrnh x7s97pk x1hc1fzr x1gqwzbp x19991ni xtitasy x1faw7qm" }),
637
+ a && /* @__PURE__ */ y(fe, {
623
638
  "aria-label": o,
624
639
  className: "x3nfvp2 x6s0dn4 xl56j7k x2lah0s x9f619 x193iq5w x17tes2r x17oiadl x1hmw7ec xc342km x1ok0vyi x1hz01jw xtqrqnz x1778rvt xk4h15q xeaf4i8 xj0a0fe x1ypdohk x10l6tqk x1m7q2ru x1b86y6l x16opp91 x1gjsuxi xnjsko4 xjbqb8w x153jb6y x1rfq5r5 x1dqpf9g x15wa9bl xvivl9a x13qnu6 x9v5kkp x19rmrnh x7s97pk x1hc1fzr x1gqwzbp x19991ni xtitasy x1faw7qm",
625
- children: /* @__PURE__ */ y(w, {
640
+ children: /* @__PURE__ */ y(te, {
626
641
  "aria-hidden": !0,
627
642
  className: "xtwnzbg x18utl2x x1m5cc3j"
628
643
  })
@@ -633,7 +648,7 @@ function xe({ id: e, side: t = "bottom", align: n = "end", isExpanded: r = !1, v
633
648
  });
634
649
  }
635
650
  // packages/feedback/src/async-region.tsx
636
- var Y = p(void 0), X = p(!1), Z = u.delaySeconds * 1e3, Q = {
651
+ var J = p(void 0), Y = p(!1), X = u.delaySeconds * 1e3, Z = {
637
652
  content: {
638
653
  k7Eaqz: "xeuugli",
639
654
  kAzted: "x2lwn1j",
@@ -652,11 +667,11 @@ var Y = p(void 0), X = p(!1), Z = u.delaySeconds * 1e3, Q = {
652
667
  k44tkh: "x11hm9ij",
653
668
  $$css: !0
654
669
  }
655
- }, Se = {
670
+ }, Q = {
656
671
  content: null,
657
- image: Q.imageReveal
672
+ image: Z.imageReveal
658
673
  };
659
- function Ce({ identity: e, initialStartedAt: t, children: n }) {
674
+ function Te({ identity: e, initialStartedAt: t, children: n }) {
660
675
  let [r, i] = _(() => ({
661
676
  identity: e,
662
677
  startedAt: t ?? Date.now()
@@ -664,13 +679,13 @@ function Ce({ identity: e, initialStartedAt: t, children: n }) {
664
679
  return r.identity !== e && (a = {
665
680
  identity: e,
666
681
  startedAt: Date.now()
667
- }, i(a)), /* @__PURE__ */ y(Y, {
682
+ }, i(a)), /* @__PURE__ */ y(J, {
668
683
  value: a,
669
684
  children: n
670
685
  });
671
686
  }
672
687
  function $({ shouldEnter: e, presentation: t = "content", children: n }) {
673
- let r = m(X), [i, a] = _(e && !r), o = g(null);
688
+ let r = m(Y), [i, a] = _(e && !r), o = g(null);
674
689
  return h(() => {
675
690
  let e = o.current;
676
691
  if (!i || e === null) return;
@@ -682,17 +697,17 @@ function $({ shouldEnter: e, presentation: t = "content", children: n }) {
682
697
  };
683
698
  }, [i]), /* @__PURE__ */ y("div", {
684
699
  ref: o,
685
- ...d.props(Q.content, i && Q.reveal, Se[t]),
686
- children: /* @__PURE__ */ y(X, {
700
+ ...d.props(Z.content, i && Z.reveal, Q[t]),
701
+ children: /* @__PURE__ */ y(Y, {
687
702
  value: r || i,
688
703
  children: n
689
704
  })
690
705
  });
691
706
  }
692
- function we({ label: e, placeholder: t, startedAt: n, presentation: r }) {
693
- let [i, a] = _(() => Date.now() - n >= Z ? n : void 0), o = i === n, s = r === "image";
707
+ function Ee({ label: e, placeholder: t, startedAt: n, presentation: r }) {
708
+ let [i, a] = _(() => Date.now() - n >= X ? n : void 0), o = i === n, s = r === "image";
694
709
  return h(() => {
695
- let e = Math.max(0, Z - (Date.now() - n)), t = setTimeout(() => a(n), e);
710
+ let e = Math.max(0, X - (Date.now() - n)), t = setTimeout(() => a(n), e);
696
711
  return () => clearTimeout(t);
697
712
  }, [n]), /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y("div", {
698
713
  "aria-busy": !0,
@@ -714,8 +729,8 @@ function we({ label: e, placeholder: t, startedAt: n, presentation: r }) {
714
729
  children: e
715
730
  })] });
716
731
  }
717
- function Te(e) {
718
- let t = m(Y), [n, r] = _(() => ({
732
+ function De(e) {
733
+ let t = m(J), [n, r] = _(() => ({
719
734
  state: e.state,
720
735
  scope: t,
721
736
  startedAt: t?.startedAt ?? Date.now(),
@@ -732,7 +747,7 @@ function Te(e) {
732
747
  }
733
748
  return /* @__PURE__ */ y("div", {
734
749
  className: "x1n2onr6 xeuugli x2lwn1j x78zum5 xdt5ytf x98rzlu",
735
- children: e.state === "pending" ? /* @__PURE__ */ y(we, {
750
+ children: e.state === "pending" ? /* @__PURE__ */ y(Ee, {
736
751
  label: e.label,
737
752
  placeholder: e.placeholder,
738
753
  startedAt: i.startedAt,
@@ -747,4 +762,4 @@ function Te(e) {
747
762
  })
748
763
  });
749
764
  }
750
- export { ve as a, U as c, F as d, I as f, M as h, xe as i, V as l, j as m, $ as n, me as o, L as p, Ce as r, pe as s, Te as t, H as u };
765
+ export { xe as a, V as c, B as d, N as f, A as g, k as h, we as i, me as l, F as m, $ as n, _e as o, P as p, Te as r, ge as s, De as t, z as u };