@mechane-ai/elements 0.65.0 → 0.68.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 (129) hide show
  1. package/README.md +21 -10
  2. package/dist/ai.js +288 -205
  3. package/dist/{article-BrUa4Wz1.js → article-Ni152e-v.js} +107 -92
  4. package/dist/article.js +1 -1
  5. package/dist/catalog.json +151 -34
  6. package/dist/{categorical-values-AXJkMt-Y.js → categorical-values-6Iz03F1i.js} +1 -1
  7. package/dist/{cells-X8SVrZBc.js → cells-BRI8LpMU.js} +1 -1
  8. package/dist/charts/cartesian.js +1 -1
  9. package/dist/charts/cells.js +1 -1
  10. package/dist/charts/comparison.js +1 -1
  11. package/dist/charts/distribution.js +1 -1
  12. package/dist/charts/figure.js +12 -12
  13. package/dist/charts/graph.js +1 -1
  14. package/dist/charts/hierarchy.js +1 -1
  15. package/dist/charts/image.js +1 -1
  16. package/dist/charts/matrix.js +2 -2
  17. package/dist/charts/plot.js +16 -15
  18. package/dist/charts/relationship.js +1 -1
  19. package/dist/charts/text.js +1 -1
  20. package/dist/charts/timeline.js +2 -2
  21. package/dist/charts/trend.js +1 -1
  22. package/dist/charts.js +3 -3
  23. package/dist/{code-block-BDRmjlES.js → code-block-DbW_t9U4.js} +1 -1
  24. package/dist/collections.js +1 -1
  25. package/dist/{color-legend-CIo7DhXB.js → color-legend-4As8881l.js} +1 -1
  26. package/dist/{commands-rzsDElrG.js → commands-C7Zrp-tG.js} +2 -2
  27. package/dist/content/code.js +1 -1
  28. package/dist/content/diff.js +3 -3
  29. package/dist/content/link.js +1 -1
  30. package/dist/content/markdown.js +1 -1
  31. package/dist/content/tree.js +2 -2
  32. package/dist/{content-link-DRaNf1mD.js → content-link-BN4NPp0u.js} +1 -1
  33. package/dist/content.js +1 -1
  34. package/dist/{dates-wu-gKO2C.js → dates-OTq-xU33.js} +2 -2
  35. package/dist/{dumbbell-plot-VFajQtEW.js → dumbbell-plot-jaQvOctJ.js} +4 -4
  36. package/dist/{embedding-map-BqDEmy88.js → embedding-map-DnZL1kvY.js} +8 -8
  37. package/dist/feedback.js +1 -1
  38. package/dist/figure-format-BVb7yFCA.js +46 -0
  39. package/dist/{figure-frame-Dd-pOeZN.js → figure-frame-96zFqsWz.js} +22 -21
  40. package/dist/forms/dates.js +1 -1
  41. package/dist/{forms-Bjx7JQ30.js → forms-iAOjGRTO.js} +1 -1
  42. package/dist/forms.js +2 -2
  43. package/dist/{image-grid-Dpyqxgwy.js → image-grid-B6fdmE9c.js} +4 -4
  44. package/dist/index.js +1 -1
  45. package/dist/kits/evaluation.js +15 -15
  46. package/dist/kits/interpretability.js +49 -45
  47. package/dist/kits/operations.js +81 -80
  48. package/dist/kits/research.js +776 -499
  49. package/dist/kits/training.js +108 -107
  50. package/dist/layout.js +1 -1
  51. package/dist/lesson.js +3 -3
  52. package/dist/markdown-JeuBeMDZ.js +293 -0
  53. package/dist/mdx.js +6 -6
  54. package/dist/navigation/commands.js +1 -1
  55. package/dist/{navigation-Cp3p0gss.js → navigation-CTnYtVD8.js} +1 -1
  56. package/dist/navigation.js +3 -3
  57. package/dist/packages/ai/src/index.d.ts +2 -0
  58. package/dist/packages/ai/src/message-reactions.d.ts +51 -0
  59. package/dist/packages/ai/src/message.d.ts +3 -1
  60. package/dist/packages/charts/src/plot/index.d.ts +2 -0
  61. package/dist/packages/charts/src/plot/plot-layout.d.ts +2 -2
  62. package/dist/packages/charts/src/plot/spatial-layer.d.ts +32 -0
  63. package/dist/packages/charts/src/plot/ticks.d.ts +2 -2
  64. package/dist/packages/collections/src/card-columns-model.d.ts +50 -0
  65. package/dist/packages/collections/src/card-columns.d.ts +30 -0
  66. package/dist/packages/collections/src/collection-page.d.ts +43 -0
  67. package/dist/packages/collections/src/column-card.d.ts +15 -0
  68. package/dist/packages/collections/src/data-table-layout.d.ts +2 -0
  69. package/dist/packages/collections/src/data-table-rows.d.ts +4 -3
  70. package/dist/packages/collections/src/data-table.d.ts +2 -2
  71. package/dist/packages/collections/src/index.d.ts +5 -0
  72. package/dist/packages/collections/src/table-query.d.ts +9 -1
  73. package/dist/packages/feedback/src/feedback.d.ts +0 -4
  74. package/dist/packages/feedback/src/index.d.ts +1 -1
  75. package/dist/packages/foundations/src/visible-motion.d.ts +1 -1
  76. package/dist/packages/kits/src/research/index.d.ts +7 -2
  77. package/dist/packages/kits/src/research/motion-clip.d.ts +41 -0
  78. package/dist/packages/kits/src/research/motion-error.d.ts +8 -0
  79. package/dist/packages/kits/src/research/motion-figure.d.ts +9 -0
  80. package/dist/packages/kits/src/research/motion-frame.d.ts +22 -0
  81. package/dist/packages/kits/src/research/motion-scene.d.ts +22 -0
  82. package/dist/packages/teaching/src/article/uncover.d.ts +2 -0
  83. package/dist/{param-CwT1RvUS.js → param-Dk92C-K1.js} +2 -2
  84. package/dist/{pierre-diff-DuvK3kLF.js → pierre-diff-DXVIwW7o.js} +1 -1
  85. package/dist/plot-CpTwLIYN.js +101 -0
  86. package/dist/{plot-layout-CvkeUuG6.js → plot-layout-1MG72ZWn.js} +175 -124
  87. package/dist/{plot-surface-yy37R4vs.js → plot-surface-8-FZI94y.js} +1 -1
  88. package/dist/{reference-lines-AMeDkYlo.js → reference-lines-C18o1yEY.js} +1 -1
  89. package/dist/{scene-BRhI8XSy.js → scene-B8dppj5V.js} +7 -7
  90. package/dist/scene.js +1 -1
  91. package/dist/{slope-chart-BMOCaa8R.js → slope-chart-CELflRJd.js} +5 -5
  92. package/dist/{src-9n2M1V_y.js → src-BCAelv4f.js} +3 -3
  93. package/dist/{src-BgmAkau8.js → src-Bkov5TTa.js} +171 -164
  94. package/dist/{src-Bns-5joF.js → src-BsqbWDxS.js} +4 -4
  95. package/dist/{src-BdyO4PgQ.js → src-CIyuaSCi.js} +101 -107
  96. package/dist/{src-Tu6d_Pm8.js → src-Dc1t1ugL.js} +958 -585
  97. package/dist/{src-C5SH3jjU.js → src-DceyVyL0.js} +2 -2
  98. package/dist/{src-C_E29-DX.js → src-Dlh99sPD.js} +1 -1
  99. package/dist/styles2.css +33 -1
  100. package/dist/{time-series-CTNVqoUQ.js → time-series-DtAtGoT_.js} +9 -9
  101. package/dist/{timeline-DrsDtEIW.js → timeline-CzianQir.js} +5 -5
  102. package/dist/{token-heatmap-DddArdH8.js → token-heatmap-m6oaMwkK.js} +274 -289
  103. package/dist/{token-predictions-CBykmPID.js → token-predictions-CpGVjOIs.js} +4 -4
  104. package/dist/{transport-r1QgELf8.js → transport-DQ1yzsQl.js} +5 -5
  105. package/dist/{tree-diagram-BIJFK4pl.js → tree-diagram-D9ekymCQ.js} +5 -5
  106. package/dist/{treemap-DgmEw_mr.js → treemap-DT8q65LQ.js} +5 -5
  107. package/dist/{use-tween-BWf44Jy4.js → use-tween-DbXVZBR8.js} +1 -1
  108. package/dist/{violin-plot-BYJnv6sG.js → violin-plot-83HSjnQM.js} +4 -4
  109. package/dist/visible-motion-D6NwjGNz.js +24 -0
  110. package/dist/{waterfall-BNseqMas.js → waterfall-DmApvdrY.js} +5 -5
  111. package/package.json +1 -1
  112. package/recipes/recorded-motion.tsx +14 -0
  113. package/recipes/searchable-collection.tsx +74 -76
  114. package/skills/extend-elements/SKILL.md +2 -1
  115. package/skills/review-elements/SKILL.md +15 -7
  116. package/skills/review-explainer/SKILL.md +4 -0
  117. package/skills/upgrade-elements/SKILL.md +3 -1
  118. package/skills/upgrade-elements/references/releases.md +20 -0
  119. package/skills/use-elements/SKILL.md +10 -6
  120. package/skills/use-elements/references/collections.md +59 -12
  121. package/skills/use-elements/references/conversations.md +32 -0
  122. package/skills/use-elements/references/editorial-restraint.md +17 -29
  123. package/skills/use-elements/references/figures.md +6 -2
  124. package/skills/use-elements/references/kits.md +23 -0
  125. package/skills/use-elements/references/workspace.md +5 -5
  126. package/skills/write-explainer/SKILL.md +5 -0
  127. package/dist/figure-format-B8kRZMlo.js +0 -36
  128. package/dist/markdown--nfaDoR1.js +0 -313
  129. package/dist/packages/kits/src/research/collection-page.d.ts +0 -71
@@ -1,9 +1,9 @@
1
- import { A as e, E as t, O as n, b as r, c as i, v as a } from "./src-BgmAkau8.js";
1
+ import { A as e, E as t, O as n, b as r, c as i, v as a } from "./src-Bkov5TTa.js";
2
2
  import { t as o } from "./use-scroll-tab-index-Dxpdh4W7.js";
3
3
  import { t as s } from "./viewer-styles-DsFYri4K.js";
4
- import { i as c, t as l } from "./code-block-BDRmjlES.js";
5
- import { p as u } from "./src-C5SH3jjU.js";
6
- import { t as d } from "./content-link-DRaNf1mD.js";
4
+ import { i as c, t as l } from "./code-block-DbW_t9U4.js";
5
+ import { p as u } from "./src-DceyVyL0.js";
6
+ import { t as d } from "./content-link-BN4NPp0u.js";
7
7
  import * as f from "@stylexjs/stylex";
8
8
  import { usePart as p, usePrimitive as m } from "@ui-sdk/react/primitive";
9
9
  import { useCallback as h, useLayoutEffect as g, useMemo as _, useRef as v, useState as y, useSyncExternalStore as b } from "react";
@@ -1,4 +1,4 @@
1
- import { F as e, L as t, N as n, P as r, i, s as a } from "./src-BgmAkau8.js";
1
+ import { F as e, L as t, N as n, P as r, i, s as a } from "./src-Bkov5TTa.js";
2
2
  import { i as o } from "./tokens.stylex-dF5CACEJ.js";
3
3
  import { t as s } from "./accessibility-P89UG9-r.js";
4
4
  import { t as c } from "./chart-tones-ei3BC2AL.js";
@@ -7,12 +7,12 @@ import * as u from "@stylexjs/stylex";
7
7
  import { mergeProps as d } from "@ui-sdk/react/primitive";
8
8
  import { createContext as f, useContext as p, useEffect as m, useRef as h, useState as g } from "react";
9
9
  import { Fragment as _, jsx as v, jsxs as y } from "react/jsx-runtime";
10
- import { Box as b, CircleCheck as ee, CircleX as te, Info as x, LoaderCircle as S, TriangleAlert as ne, X as C } from "lucide-react";
11
- import { Meter as re, MeterIndicator as w, MeterLabel as T, MeterTrack as E } from "@ui-sdk/react/meter";
12
- import { Progress as ie, ProgressIndicator as ae, ProgressLabel as oe, ProgressTrack as se } from "@ui-sdk/react/progress";
13
- import { Toast as ce, ToastAction as D, ToastClose as O, ToastDescription as k, ToastRegion as A, ToastTitle as j, createToaster as M } from "@ui-sdk/react/toast";
10
+ import { Box as b, CircleCheck as x, CircleX as S, Info as C, LoaderCircle as w, TriangleAlert as T, X as ee } from "lucide-react";
11
+ import { Meter as te, MeterIndicator as ne, 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 E, ToastClose as D, ToastDescription as O, ToastRegion as k, ToastTitle as A, createToaster as j } from "@ui-sdk/react/toast";
14
14
  // packages/feedback/src/feedback.tsx
15
- function N({ title: e, children: t, action: n, ...r }) {
15
+ function M({ title: e, children: t, action: n, ...r }) {
16
16
  return /* @__PURE__ */ y("div", {
17
17
  ...d({ className: "x78zum5 xdt5ytf x6s0dn4 xl56j7k x2b8uid xeuugli x193iq5w x9f619 x9w77qv xnx3t7k x1n8ia3y x1hz01jw xj57cvi xvmahel xj0a0fe" }, r),
18
18
  children: [
@@ -30,14 +30,8 @@ function N({ title: e, children: t, action: n, ...r }) {
30
30
  ]
31
31
  });
32
32
  }
33
- function P({ hasError: e = !1, ...t }) {
34
- return /* @__PURE__ */ v("div", { ...d({ role: e ? "alert" : "status" }, {
35
- 0: { className: "xeuugli x193iq5w x9f619 x1qokhjc x1doqdfy x1ok0vyi x1hz01jw xvmahel xtqrqnz x1778rvt xj57cvi x1dqe72f x1f9ixgr xj0a0fe" },
36
- 1: { className: "xeuugli x193iq5w x9f619 x1qokhjc x1doqdfy x1ok0vyi x1hz01jw xvmahel xtqrqnz x1778rvt xj57cvi xj0a0fe xr5kp14 xcqwzn" }
37
- }[!!e | 0], t) });
38
- }
39
33
  // packages/feedback/src/skeleton.tsx
40
- var F = {
34
+ var N = {
41
35
  skeleton: {
42
36
  k1xSpc: "x1lliihq",
43
37
  ks0D6T: "x193iq5w",
@@ -75,50 +69,50 @@ var F = {
75
69
  k7Eaqz: "xeuugli",
76
70
  $$css: !0
77
71
  }
78
- }, I = {
79
- rectangle: F.rectangle,
80
- circle: F.circle
72
+ }, P = {
73
+ rectangle: N.rectangle,
74
+ circle: N.circle
81
75
  };
82
- function L({ width: e = "100%", height: t = 8, shape: n = "rectangle" }) {
76
+ function F({ width: e = "100%", height: t = 8, shape: n = "rectangle" }) {
83
77
  return /* @__PURE__ */ v("span", {
84
78
  "aria-hidden": !0,
85
- ...u.props(F.skeleton, F.dimensions(e, t), I[n])
79
+ ...u.props(N.skeleton, N.dimensions(e, t), P[n])
86
80
  });
87
81
  }
88
- function R({ lines: e = 1, width: t = "100%" }) {
82
+ function I({ lines: e = 1, width: t = "100%" }) {
89
83
  return /* @__PURE__ */ v("span", {
90
84
  "aria-hidden": !0,
91
- ...u.props(F.text, F.width(t)),
85
+ ...u.props(N.text, N.width(t)),
92
86
  children: Array.from({ length: e }, (t, n) => /* @__PURE__ */ v("span", {
93
87
  className: "x78zum5 x6s0dn4 xg2ss61",
94
- children: /* @__PURE__ */ v(L, {
88
+ children: /* @__PURE__ */ v(F, {
95
89
  width: e > 1 && n === e - 1 ? "65%" : "100%",
96
90
  height: "0.6em"
97
91
  })
98
92
  }, `placeholder-${n}`))
99
93
  });
100
94
  }
101
- function z({ label: e, showLabel: t = !1 }) {
95
+ function L({ label: e, showLabel: t = !1 }) {
102
96
  return /* @__PURE__ */ y("span", {
103
97
  role: "status",
104
98
  className: "x3nfvp2 x1n2onr6 x6s0dn4 xeuugli x193iq5w x1hnptsi x153jb6y x1hz01jw xtqrqnz x1778rvt xj57cvi xj0a0fe",
105
- children: [/* @__PURE__ */ v(S, {
99
+ children: [/* @__PURE__ */ v(w, {
106
100
  "aria-hidden": !0,
107
101
  className: "xtwnzbg x18utl2x x2lah0s"
108
102
  }), /* @__PURE__ */ v("span", {
109
- ...u.props(F.label, !t && s.hidden),
103
+ ...u.props(N.label, !t && s.hidden),
110
104
  children: e
111
105
  })]
112
106
  });
113
107
  }
114
108
  // packages/feedback/src/control-placeholders.tsx
115
- var B = {
109
+ var R = {
116
110
  ks0D6T: "x193iq5w",
117
111
  $$css: !0
118
- }, V = {
112
+ }, z = {
119
113
  kZKoxP: "x16ye13r",
120
114
  $$css: !0
121
- }, H = {
115
+ }, B = {
122
116
  button: {
123
117
  kWkggS: "x1r7kqkb",
124
118
  kXLuUW: "xxymvpz",
@@ -130,39 +124,39 @@ var B = {
130
124
  $$css: !0
131
125
  },
132
126
  width: (e) => [
133
- B,
127
+ R,
134
128
  {
135
129
  kzqmXN: e == null ? e : "x5lhr3w",
136
130
  $$css: !0
137
131
  },
138
132
  { "--x-width": ((e) => typeof e == "number" ? e + "px" : e ?? void 0)(e) }
139
133
  ],
140
- rows: (e) => [V, { "--x-height": ((e) => typeof e == "number" ? e + "px" : e ?? void 0)(`calc(${e} * 1lh + 2 * ${o.paddingBlock} + 2px)`) }]
134
+ rows: (e) => [z, { "--x-height": ((e) => typeof e == "number" ? e + "px" : e ?? void 0)(`calc(${e} * 1lh + 2 * ${o.paddingBlock} + 2px)`) }]
141
135
  };
142
- function U({ width: t = "7ch", isIconOnly: i = !1, density: a = "standard", xstyle: s }) {
136
+ function V({ width: t = "7ch", isIconOnly: i = !1, density: a = "standard", xstyle: s }) {
143
137
  return /* @__PURE__ */ v("span", {
144
138
  "aria-hidden": !0,
145
139
  inert: !0,
146
- ...u.props(e.base, e.button, r[a], n[a], i && e.iconButton, H.button, s),
147
- children: i ? /* @__PURE__ */ v(L, {
140
+ ...u.props(e.base, e.button, r[a], n[a], i && e.iconButton, B.button, s),
141
+ children: i ? /* @__PURE__ */ v(F, {
148
142
  width: o.iconSize,
149
143
  height: o.iconSize
150
- }) : /* @__PURE__ */ v(R, { width: t })
144
+ }) : /* @__PURE__ */ v(I, { width: t })
151
145
  });
152
146
  }
153
- function W({ label: n, hint: i, isMultiline: a = !1, density: o = "standard", rows: s = 4, width: c = "100%", xstyle: l }) {
147
+ function H({ label: n, hint: i, isMultiline: a = !1, density: o = "standard", rows: s = 4, width: c = "100%", xstyle: l }) {
154
148
  let d = a ? Math.min(s, 6) : 1;
155
149
  return /* @__PURE__ */ y("div", {
156
150
  "aria-hidden": !0,
157
- ...u.props(e.fieldRoot, H.width(c), l),
151
+ ...u.props(e.fieldRoot, B.width(c), l),
158
152
  children: [
159
153
  n !== void 0 && /* @__PURE__ */ v("span", {
160
154
  ...u.props(e.label),
161
155
  children: n
162
156
  }),
163
157
  /* @__PURE__ */ v("div", {
164
- ...u.props(e.base, e.field, r[o], !a && e.singleLineField, !a && t[o], !a && H.singleLine, a && e.textarea, a && H.rows(s)),
165
- children: /* @__PURE__ */ v(R, {
158
+ ...u.props(e.base, e.field, r[o], !a && e.singleLineField, !a && t[o], !a && B.singleLine, a && e.textarea, a && B.rows(s)),
159
+ children: /* @__PURE__ */ v(I, {
166
160
  width: "60%",
167
161
  lines: d
168
162
  })
@@ -175,7 +169,7 @@ function W({ label: n, hint: i, isMultiline: a = !1, density: o = "standard", ro
175
169
  });
176
170
  }
177
171
  // packages/feedback/src/progress.tsx
178
- var G = {
172
+ var U = {
179
173
  root: {
180
174
  k1xSpc: "x78zum5",
181
175
  kXwgrk: "xdt5ytf",
@@ -256,7 +250,7 @@ var G = {
256
250
  kB7OPa: "x9f619",
257
251
  $$css: !0
258
252
  }
259
- }, le = {
253
+ }, W = {
260
254
  stacked: {
261
255
  root: void 0,
262
256
  heading: void 0,
@@ -265,15 +259,15 @@ var G = {
265
259
  track: void 0
266
260
  },
267
261
  inline: {
268
- root: G.inline,
269
- heading: G.inlineHeading,
262
+ root: U.inline,
263
+ heading: U.inlineHeading,
270
264
  label: s.hidden,
271
- value: G.inlineValue,
272
- track: G.inlineTrack
265
+ value: U.inlineValue,
266
+ track: U.inlineTrack
273
267
  }
274
268
  };
275
269
  function ue({ label: e, value: t, max: n, valueLabel: r }) {
276
- return /* @__PURE__ */ y(ie, {
270
+ return /* @__PURE__ */ y(ae, {
277
271
  value: t,
278
272
  max: n,
279
273
  locale: "en-US",
@@ -281,69 +275,69 @@ function ue({ label: e, value: t, max: n, valueLabel: r }) {
281
275
  className: "x78zum5 xdt5ytf x1hnptsi xh8yej3 xeuugli x1hz01jw xtqrqnz x1778rvt xj57cvi xbixft xj0a0fe",
282
276
  children: [/* @__PURE__ */ y("div", {
283
277
  className: "x78zum5 x1pha0wt x1qughib x1n8ia3y x1a02dak",
284
- children: [/* @__PURE__ */ v(oe, {
278
+ children: [/* @__PURE__ */ v(se, {
285
279
  className: "xeuugli x193iq5w",
286
280
  children: e
287
281
  }), /* @__PURE__ */ v("span", {
288
282
  className: "xeuugli x193iq5w x153jb6y xss6m8b",
289
283
  children: r
290
284
  })]
291
- }), /* @__PURE__ */ v(se, {
285
+ }), /* @__PURE__ */ v(ce, {
292
286
  ...{
293
287
  0: { className: "xqu0tyb xh8yej3 x1ok0vyi x1fa40ue xb3r6kr" },
294
288
  1: { className: "xqu0tyb xh8yej3 x1ok0vyi xb3r6kr x1r7kqkb xmkeg23 xbsl7fq xqrc7c3 x9f619" }
295
289
  }[t === null | 0],
296
- children: t !== null && /* @__PURE__ */ v(ae, { className: "x5yr21d x1pt885t x1ok0vyi" })
290
+ children: t !== null && /* @__PURE__ */ v(oe, { className: "x5yr21d x1pt885t x1ok0vyi" })
297
291
  })]
298
292
  });
299
293
  }
300
294
  function de({ label: e, value: t, max: n, valueLabel: r, layout: i = "stacked", tone: a }) {
301
- let o = le[i], s = a === void 0 ? void 0 : G.tone(c[a]), l = t !== null && Number.isFinite(t);
302
- return Number.isFinite(n) && n > 0 && l && t >= 0 && t <= n ? /* @__PURE__ */ y(re, {
295
+ let o = W[i], s = a === void 0 ? void 0 : U.tone(c[a]), l = t !== null && Number.isFinite(t);
296
+ return Number.isFinite(n) && n > 0 && l && t >= 0 && t <= n ? /* @__PURE__ */ y(te, {
303
297
  value: t,
304
298
  max: n,
305
299
  locale: "en-US",
306
300
  getValueLabel: () => r,
307
- ...u.props(G.root, o.root),
301
+ ...u.props(U.root, o.root),
308
302
  children: [/* @__PURE__ */ y("div", {
309
- ...u.props(G.heading, o.heading),
310
- children: [/* @__PURE__ */ v(T, {
311
- ...u.props(G.label, o.label),
303
+ ...u.props(U.heading, o.heading),
304
+ children: [/* @__PURE__ */ v(re, {
305
+ ...u.props(U.label, o.label),
312
306
  children: e
313
307
  }), /* @__PURE__ */ v("span", {
314
- ...u.props(G.value, o.value),
308
+ ...u.props(U.value, o.value),
315
309
  children: r
316
310
  })]
317
- }), /* @__PURE__ */ v(E, {
318
- ...u.props(G.track, o.track),
319
- children: /* @__PURE__ */ v(w, { ...u.props(G.indicator, s) })
311
+ }), /* @__PURE__ */ v(ie, {
312
+ ...u.props(U.track, o.track),
313
+ children: /* @__PURE__ */ v(ne, { ...u.props(U.indicator, s) })
320
314
  })]
321
315
  }) : /* @__PURE__ */ y("div", {
322
- ...u.props(G.root, o.root),
316
+ ...u.props(U.root, o.root),
323
317
  children: [/* @__PURE__ */ y("div", {
324
- ...u.props(G.heading, o.heading),
318
+ ...u.props(U.heading, o.heading),
325
319
  children: [/* @__PURE__ */ v("span", {
326
- ...u.props(G.label, o.label),
320
+ ...u.props(U.label, o.label),
327
321
  children: e
328
322
  }), /* @__PURE__ */ v("span", {
329
- ...u.props(G.value, o.value),
323
+ ...u.props(U.value, o.value),
330
324
  children: r
331
325
  })]
332
326
  }), /* @__PURE__ */ v("div", {
333
327
  "aria-hidden": !0,
334
- ...u.props(G.track, o.track, G.unknown)
328
+ ...u.props(U.track, o.track, U.unknown)
335
329
  })]
336
330
  });
337
331
  }
338
332
  // packages/feedback/src/notifications.ts
339
333
  var fe = 1e3, pe = 4;
340
334
  function me() {
341
- let e = M(), t = /* @__PURE__ */ new Map();
335
+ let e = j(), t = /* @__PURE__ */ new Map();
342
336
  function n(n) {
343
337
  if (n === void 0) return e;
344
338
  let r = t.get(n);
345
339
  if (r !== void 0) return r;
346
- let i = M();
340
+ let i = j();
347
341
  return typeof document < "u" && t.set(n, i), i;
348
342
  }
349
343
  function r(e, n) {
@@ -361,13 +355,13 @@ function me() {
361
355
  dismiss: i
362
356
  };
363
357
  }
364
- var K = me();
365
- function q(e) {
358
+ var G = me();
359
+ function K(e) {
366
360
  return typeof e == "number" ? `#${e}` : e.replace(/^#/, "##");
367
361
  }
368
- function J(e, { id: t, toasterId: n, title: r, description: i, action: a, shouldPersist: o }) {
369
- let s = K.queueFor(n)({
370
- ...t !== void 0 && { id: q(t) },
362
+ function q(e, { id: t, toasterId: n, title: r, description: i, action: a, shouldPersist: o }) {
363
+ let s = G.queueFor(n)({
364
+ ...t !== void 0 && { id: K(t) },
371
365
  type: e,
372
366
  title: r,
373
367
  description: i,
@@ -381,13 +375,13 @@ function J(e, { id: t, toasterId: n, title: r, description: i, action: a, should
381
375
  return t ?? s;
382
376
  }
383
377
  var he = {
384
- success: (e) => J("success", e),
385
- error: (e) => J("error", e),
386
- info: (e) => J("info", e),
387
- warning: (e) => J("warning", e),
388
- loading: (e) => J("loading", e),
389
- dismiss: ({ id: e }) => K.dismiss(q(e))
390
- }, Y = {
378
+ success: (e) => q("success", e),
379
+ error: (e) => q("error", e),
380
+ info: (e) => q("info", e),
381
+ warning: (e) => q("warning", e),
382
+ loading: (e) => q("loading", e),
383
+ dismiss: ({ id: e }) => G.dismiss(K(e))
384
+ }, J = {
391
385
  region: {
392
386
  kzqmXN: "x1261nif xqu3jwc",
393
387
  kqGvvJ: "xtru72a xf6ji1w",
@@ -558,36 +552,36 @@ var he = {
558
552
  }
559
553
  }, ge = {
560
554
  default: {
561
- Icon: x,
562
- tone: Y.neutral
555
+ Icon: C,
556
+ tone: J.neutral
563
557
  },
564
558
  info: {
565
- Icon: x,
566
- tone: Y.neutral
559
+ Icon: C,
560
+ tone: J.neutral
567
561
  },
568
562
  success: {
569
- Icon: ee,
570
- tone: Y.success
563
+ Icon: x,
564
+ tone: J.success
571
565
  },
572
566
  warning: {
573
- Icon: ne,
574
- tone: Y.warning
567
+ Icon: T,
568
+ tone: J.warning
575
569
  },
576
570
  error: {
577
- Icon: te,
578
- tone: Y.error
571
+ Icon: S,
572
+ tone: J.error
579
573
  },
580
574
  loading: {
581
- Icon: S,
582
- tone: Y.neutral
575
+ Icon: w,
576
+ tone: J.neutral
583
577
  }
584
578
  }, _e = {
585
579
  "x-default-marker": "x-default-marker",
586
580
  $$css: !0
587
581
  };
588
- function ve({ id: e, side: t = "bottom", align: n = "end", isExpanded: r = !1, visibleToasts: i = 3, showCloseButton: a = !0, closeButtonAriaLabel: o = "Dismiss notification", containerAriaLabel: s = "Notifications" }) {
589
- let c = K.queueFor(e);
590
- return m(() => K.bind(e, c), [e, c]), /* @__PURE__ */ v(A, {
582
+ function Y({ id: e, side: t = "bottom", align: n = "end", isExpanded: r = !1, visibleToasts: i = 3, showCloseButton: a = !0, closeButtonAriaLabel: o = "Dismiss notification", containerAriaLabel: s = "Notifications" }) {
583
+ let c = G.queueFor(e);
584
+ return m(() => G.bind(e, c), [e, c]), /* @__PURE__ */ v(k, {
591
585
  toaster: c,
592
586
  side: t,
593
587
  align: n,
@@ -598,22 +592,22 @@ function ve({ id: e, side: t = "bottom", align: n = "end", isExpanded: r = !1, v
598
592
  className: "x1261nif xqu3jwc xtru72a xf6ji1w xlwtff5 xqv9vo9 xyt9zns x1u22o8f xviucbn x1572sgj",
599
593
  children: (e) => {
600
594
  let { Icon: n, tone: r } = ge[e.type];
601
- return /* @__PURE__ */ y(ce, {
602
- ...u.props(Y.toast, Y[t], Y.focus, _e),
595
+ return /* @__PURE__ */ y(le, {
596
+ ...u.props(J.toast, J[t], J.focus, _e),
603
597
  children: [
604
598
  /* @__PURE__ */ v(n, {
605
599
  "aria-hidden": !0,
606
- ...u.props(Y.icon, Y.part, r)
600
+ ...u.props(J.icon, J.part, r)
607
601
  }),
608
602
  /* @__PURE__ */ y("div", {
609
603
  className: "x78zum5 xdt5ytf x148l3ej xeuugli xfko13i x1hc1fzr x1gqwzbp x19991ni xtitasy x1faw7qm",
610
- children: [/* @__PURE__ */ v(j, { className: "xk4h15q x104kibb x1ua5tub xh0615m xb3r6kr xj0a0fe" }), /* @__PURE__ */ v(k, { className: "x153jb6y x104kibb x1ua5tub xh0615m xb3r6kr xj0a0fe" })]
604
+ children: [/* @__PURE__ */ v(A, { className: "xk4h15q x104kibb x1ua5tub xh0615m xb3r6kr xj0a0fe" }), /* @__PURE__ */ v(O, { className: "x153jb6y x104kibb x1ua5tub xh0615m xb3r6kr xj0a0fe" })]
611
605
  }),
612
- e.action?.label !== void 0 && /* @__PURE__ */ v(D, { 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" }),
613
- a && /* @__PURE__ */ v(O, {
606
+ e.action?.label !== void 0 && /* @__PURE__ */ v(E, { 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" }),
607
+ a && /* @__PURE__ */ v(D, {
614
608
  "aria-label": o,
615
609
  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",
616
- children: /* @__PURE__ */ v(C, {
610
+ children: /* @__PURE__ */ v(ee, {
617
611
  "aria-hidden": !0,
618
612
  className: "xtwnzbg x18utl2x x1m5cc3j"
619
613
  })
@@ -624,7 +618,7 @@ function ve({ id: e, side: t = "bottom", align: n = "end", isExpanded: r = !1, v
624
618
  });
625
619
  }
626
620
  // packages/feedback/src/async-region.tsx
627
- var X = f(void 0), Z = f(!1), ye = l.delaySeconds * 1e3, Q = {
621
+ var X = f(void 0), Z = f(!1), ve = l.delaySeconds * 1e3, Q = {
628
622
  content: {
629
623
  k7Eaqz: "xeuugli",
630
624
  kAzted: "x2lwn1j",
@@ -643,11 +637,11 @@ var X = f(void 0), Z = f(!1), ye = l.delaySeconds * 1e3, Q = {
643
637
  k44tkh: "x11hm9ij",
644
638
  $$css: !0
645
639
  }
646
- }, be = {
640
+ }, ye = {
647
641
  content: null,
648
642
  image: Q.imageReveal
649
643
  };
650
- function xe({ identity: e, initialStartedAt: t, children: n }) {
644
+ function be({ identity: e, initialStartedAt: t, children: n }) {
651
645
  let [r, i] = g(() => ({
652
646
  identity: e,
653
647
  startedAt: t ?? Date.now()
@@ -673,14 +667,14 @@ function $({ shouldEnter: e, presentation: t = "content", children: n }) {
673
667
  };
674
668
  }, [i]), /* @__PURE__ */ v("div", {
675
669
  ref: o,
676
- ...u.props(Q.content, i && Q.reveal, be[t]),
670
+ ...u.props(Q.content, i && Q.reveal, ye[t]),
677
671
  children: /* @__PURE__ */ v(Z, {
678
672
  value: r || i,
679
673
  children: n
680
674
  })
681
675
  });
682
676
  }
683
- function Se({ label: e, placeholder: t, startedAt: n, placeholderDelayMs: r, presentation: i }) {
677
+ function xe({ label: e, placeholder: t, startedAt: n, placeholderDelayMs: r, presentation: i }) {
684
678
  let [a, o] = g(() => Date.now() - n >= r ? n : void 0), c = a === n, l = i === "image";
685
679
  return m(() => {
686
680
  let e = Math.max(0, r - (Date.now() - n)), t = setTimeout(() => o(n), e);
@@ -705,7 +699,7 @@ function Se({ label: e, placeholder: t, startedAt: n, placeholderDelayMs: r, pre
705
699
  children: e
706
700
  })] });
707
701
  }
708
- function Ce(e) {
702
+ function Se(e) {
709
703
  let t = p(X), [n, r] = g(() => ({
710
704
  state: e.state,
711
705
  scope: t,
@@ -723,8 +717,8 @@ function Ce(e) {
723
717
  }
724
718
  return /* @__PURE__ */ v("div", {
725
719
  className: "x1n2onr6 xeuugli x2lwn1j x78zum5 xdt5ytf x98rzlu",
726
- children: e.state === "pending" ? /* @__PURE__ */ v(Se, {
727
- placeholderDelayMs: e.placeholderDelayMs ?? ye,
720
+ children: e.state === "pending" ? /* @__PURE__ */ v(xe, {
721
+ placeholderDelayMs: e.placeholderDelayMs ?? ve,
728
722
  label: e.label,
729
723
  placeholder: e.placeholder,
730
724
  startedAt: i.startedAt,
@@ -739,4 +733,4 @@ function Ce(e) {
739
733
  })
740
734
  });
741
735
  }
742
- export { he as a, U as c, R as d, z as f, ve as i, W as l, P as m, $ as n, de as o, N as p, xe as r, ue as s, Ce as t, L as u };
736
+ export { he as a, V as c, I as d, L as f, Y as i, H as l, $ as n, de as o, M as p, be as r, ue as s, Se as t, F as u };