@mechane-ai/elements 0.9.0 → 0.10.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 (71) hide show
  1. package/NOTICE +24 -0
  2. package/README.md +7 -1
  3. package/dist/ai.js +129 -125
  4. package/dist/{categorical-values-DYRiw5Qd.js → categorical-values-DLRE4EEW.js} +4 -4
  5. package/dist/{chart-frame-RL1hCWBC.js → chart-frame-et6f6Vhg.js} +22 -14
  6. package/dist/{chart-input-Bm3ot1yD.js → chart-input-CdLkFomi.js} +2 -2
  7. package/dist/charts/cartesian.js +529 -450
  8. package/dist/charts/distribution.js +302 -261
  9. package/dist/charts/graph.js +137 -103
  10. package/dist/charts/hierarchy.js +7 -7
  11. package/dist/charts/matrix.js +187 -174
  12. package/dist/charts/timeline.js +118 -92
  13. package/dist/charts.js +1 -1
  14. package/dist/code-block-D77maJBB.js +180 -0
  15. package/dist/collections.js +280 -236
  16. package/dist/content/code.js +1 -1
  17. package/dist/content/diff.js +81 -63
  18. package/dist/content/link.js +1 -1
  19. package/dist/content/markdown.js +115 -96
  20. package/dist/content/tree.js +43 -38
  21. package/dist/{content-link-BrPrpBof.js → content-link-BpSZeTNK.js} +6 -2
  22. package/dist/content.js +172 -153
  23. package/dist/{assets/stylex.css → elements.css} +471 -185
  24. package/dist/feedback.js +1 -1
  25. package/dist/forms/dates.js +25 -25
  26. package/dist/forms.js +1 -1
  27. package/dist/index.js +1 -1
  28. package/dist/layout.js +239 -192
  29. package/dist/navigation/commands.js +45 -42
  30. package/dist/{navigation-yxK3iQXo.js → navigation-D2_sGy3C.js} +2 -2
  31. package/dist/navigation.js +10 -10
  32. package/dist/overlays.js +1 -1
  33. package/dist/packages/charts/src/cartesian/bar-chart.d.ts +5 -0
  34. package/dist/packages/charts/src/cartesian/index.d.ts +2 -2
  35. package/dist/packages/charts/src/chart-frame.d.ts +3 -0
  36. package/dist/packages/charts/src/chart-theme.d.ts +2 -1
  37. package/dist/packages/charts/src/distribution/distribution-plot.d.ts +22 -2
  38. package/dist/packages/collections/src/collection-scroll.d.ts +2 -1
  39. package/dist/packages/content/src/diff/pierre-diff.d.ts +2 -1
  40. package/dist/packages/content/src/viewer-styles.d.ts +64 -0
  41. package/dist/packages/core/src/index.d.ts +1 -1
  42. package/dist/packages/core/src/surfaces.d.ts +5 -0
  43. package/dist/packages/feedback/src/index.d.ts +4 -1
  44. package/dist/packages/feedback/src/toast.d.ts +5 -27
  45. package/dist/packages/forms/src/field-styles.d.ts +9 -0
  46. package/dist/packages/forms/src/selection-styles.d.ts +18 -2
  47. package/dist/packages/foundations/src/overlay-styles.d.ts +3 -1
  48. package/dist/packages/foundations/src/popup-styles.d.ts +7 -0
  49. package/dist/packages/foundations/src/tokens.stylex.d.ts +9 -0
  50. package/dist/packages/layout/src/frame.stylex.d.ts +1 -0
  51. package/dist/packages/layout/src/sidebar.d.ts +3 -1
  52. package/dist/packages/overlays/src/alert-dialog.d.ts +5 -2
  53. package/dist/packages/overlays/src/dialog.d.ts +7 -3
  54. package/dist/pierre-diff--zsiHCCB.js +71 -0
  55. package/dist/pierre-theme-D9hnHv3Z.js +126 -0
  56. package/dist/{pierre-tree-CRk09rx7.js → pierre-tree-BFxEuxwb.js} +3 -3
  57. package/dist/{src-Cc0Sadzr.js → src-Be7NLG8c.js} +238 -186
  58. package/dist/src-CBspCKfO.js +969 -0
  59. package/dist/src-Cs0dRc4X.js +617 -0
  60. package/dist/{src-elMBQ2Dh.js → src-sU9b0oZW.js} +224 -143
  61. package/dist/tokens.js +9 -1
  62. package/dist/viewer-styles-CpHqp5Qv.js +70 -0
  63. package/package.json +2 -1
  64. package/packages/foundations/src/tokens.stylex.ts +7 -0
  65. package/styles.css +1 -1
  66. package/dist/code-block-B30xQKqg.js +0 -175
  67. package/dist/pierre-diff-CZdzgiYm.js +0 -66
  68. package/dist/pierre-theme-BpESNIsV.js +0 -96
  69. package/dist/popup-styles-CvtZDE2t.js +0 -135
  70. package/dist/src-CfDf8TY8.js +0 -466
  71. package/dist/src-DuuAmS-c.js +0 -360
@@ -7,30 +7,33 @@ import * as a from "@stylexjs/stylex";
7
7
  import { useEffect as o, useId as s, useRef as c, useState as l } from "react";
8
8
  import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
9
9
  import { Avatar as p } from "@base-ui/react/avatar";
10
- import { Check as m, ChevronDown as h, Circle as g, CircleCheck as _, CircleX as v, Clock as y, Copy as ee } from "lucide-react";
11
- import { Accordion as b } from "@base-ui/react/accordion";
12
- import { Collapsible as x } from "@base-ui/react/collapsible";
10
+ import { Check as m, ChevronDown as h, Circle as g, CircleCheck as _, CircleX as v, Clock as y, Copy as b } from "lucide-react";
11
+ import { Accordion as x } from "@base-ui/react/accordion";
12
+ import { Collapsible as S } from "@base-ui/react/collapsible";
13
13
  // packages/core/src/actions.tsx
14
- var S = {
14
+ var C = {
15
15
  button: {
16
16
  k1xSpc: "x3nfvp2",
17
17
  kB7OPa: "x9f619",
18
18
  kGNEyG: "x6s0dn4",
19
19
  kjj79g: "xl56j7k",
20
20
  kOIVth: "xbgj81g",
21
- k8WAf4: "xt970qd",
21
+ k8WAf4: "x1hmw7ec",
22
22
  kg3NbH: "x1atzlso",
23
23
  kaIpWk: "x1ok0vyi",
24
24
  kMzoRj: "xmkeg23",
25
25
  ksu8eU: "x1y0btm7",
26
26
  kMv6JI: "x1hz01jw",
27
27
  khiITx: "xvmahel",
28
- k63SB2: "xk50ysn",
28
+ k63SB2: "xk4h15q",
29
29
  kGuDYH: "xtqrqnz",
30
30
  kLWn49: "x1778rvt",
31
31
  kMnn75: "xkrqix3",
32
32
  kkrTdU: "x1ypdohk",
33
- khDVqt: "xuxw1ft",
33
+ k7Eaqz: "xeuugli",
34
+ ks0D6T: "x193iq5w",
35
+ kHjlTd: "xj0a0fe",
36
+ k9WMMc: "x2b8uid",
34
37
  kUfY9r: "xdibjt2",
35
38
  kxHhyo: "xwpgcpl",
36
39
  kL1HnH: "xknznnm",
@@ -53,6 +56,7 @@ var S = {
53
56
  kVAM5u: "x159tnba",
54
57
  kMwMTN: "x1ymx3u3",
55
58
  kGGynd: "x443sj4",
59
+ k2wZ5d: "x4gy2so",
56
60
  $$css: !0
57
61
  },
58
62
  outlineNeutral: {
@@ -60,6 +64,7 @@ var S = {
60
64
  kVAM5u: "x1ey3b81",
61
65
  kMwMTN: "xbixft",
62
66
  kGGynd: "x1od0s29",
67
+ k2wZ5d: "x1480za7",
63
68
  $$css: !0
64
69
  },
65
70
  ghostNeutral: {
@@ -67,8 +72,9 @@ var S = {
67
72
  kVAM5u: "x9r1u3d",
68
73
  kMzoRj: "xc342km",
69
74
  kMwMTN: "xbixft",
70
- k63SB2: "xo1l8bm",
71
- kGGynd: "xvwfb5p",
75
+ k63SB2: "xj57cvi",
76
+ kvyT6O: "x19fjeqo",
77
+ k2wZ5d: "x1480za7",
72
78
  $$css: !0
73
79
  },
74
80
  solidDanger: {
@@ -76,6 +82,7 @@ var S = {
76
82
  kVAM5u: "x1oddvo6",
77
83
  kMwMTN: "x1ymx3u3",
78
84
  kGGynd: "x1nru5f5",
85
+ k2wZ5d: "x96ohg0",
79
86
  $$css: !0
80
87
  },
81
88
  outlineDanger: {
@@ -83,6 +90,7 @@ var S = {
83
90
  kVAM5u: "x1oddvo6",
84
91
  kMwMTN: "xr5kp14",
85
92
  kGGynd: "xvxq6zk",
93
+ k2wZ5d: "x14u6bge",
86
94
  $$css: !0
87
95
  },
88
96
  ghostDanger: {
@@ -90,8 +98,9 @@ var S = {
90
98
  kVAM5u: "x9r1u3d",
91
99
  kMzoRj: "xc342km",
92
100
  kMwMTN: "xr5kp14",
93
- k63SB2: "xo1l8bm",
101
+ k63SB2: "xj57cvi",
94
102
  kGGynd: "xvxq6zk",
103
+ k2wZ5d: "x14u6bge",
95
104
  $$css: !0
96
105
  },
97
106
  iconSm: {
@@ -118,13 +127,14 @@ var S = {
118
127
  khiITx: "xvmahel",
119
128
  kGuDYH: "xtqrqnz",
120
129
  kLWn49: "x1778rvt",
121
- k63SB2: "xo1l8bm",
130
+ k63SB2: "xj57cvi",
122
131
  ks0D6T: "x193iq5w",
123
132
  kVQacm: "xb3r6kr",
124
133
  kg5iWk: "xlyipyv",
125
134
  kXLuUW: "xxymvpz",
126
135
  kkrTdU: "x1ypdohk",
127
136
  kqIQ8: "xtcyz2r",
137
+ kC4hMs: "x10n9q27",
128
138
  kUfY9r: "xdibjt2",
129
139
  kxHhyo: "xwpgcpl",
130
140
  kL1HnH: "xknznnm",
@@ -136,10 +146,12 @@ var S = {
136
146
  },
137
147
  neutralText: {
138
148
  kMwMTN: "xbixft",
149
+ kEZPYj: "x1d2pjik",
139
150
  $$css: !0
140
151
  },
141
152
  dangerText: {
142
153
  kMwMTN: "xr5kp14",
154
+ kEZPYj: "x1vwga6f",
143
155
  $$css: !0
144
156
  },
145
157
  link: {
@@ -148,56 +160,58 @@ var S = {
148
160
  kMwMTN: "xbixft",
149
161
  kMnn75: "xkrqix3",
150
162
  kdSwXR: "x9p3ypd",
163
+ kc7ZrP: "x15klc50",
164
+ kM5EO1: "xnoqg6i",
151
165
  kPJHz1: "x13qnu6",
152
166
  k7shQP: "x9v5kkp",
153
167
  kZs9gx: "x19rmrnh",
154
168
  kiEn40: "x7s97pk",
155
169
  $$css: !0
156
170
  }
157
- }, C = {
171
+ }, w = {
158
172
  neutral: {
159
- solid: S.solidNeutral,
160
- outline: S.outlineNeutral,
161
- ghost: S.ghostNeutral
173
+ solid: C.solidNeutral,
174
+ outline: C.outlineNeutral,
175
+ ghost: C.ghostNeutral
162
176
  },
163
177
  danger: {
164
- solid: S.solidDanger,
165
- outline: S.outlineDanger,
166
- ghost: S.ghostDanger
178
+ solid: C.solidDanger,
179
+ outline: C.outlineDanger,
180
+ ghost: C.ghostDanger
167
181
  }
168
- }, w = {
169
- sm: S.sm,
170
- md: S.md
171
182
  }, T = {
172
- sm: S.iconSm,
173
- md: S.iconMd
183
+ sm: C.sm,
184
+ md: C.md
174
185
  }, E = {
175
- neutral: S.neutralText,
176
- danger: S.dangerText
186
+ sm: C.iconSm,
187
+ md: C.iconMd
188
+ }, D = {
189
+ neutral: C.neutralText,
190
+ danger: C.dangerText
177
191
  };
178
- function D({ id: e, children: t, pending: n = !1, pendingLabel: r }) {
192
+ function O({ id: e, children: t, pending: n = !1, pendingLabel: r }) {
179
193
  return r === void 0 ? t : /* @__PURE__ */ f("span", {
180
194
  id: e,
181
- className: "xwz0xwf",
195
+ className: "xwz0xwf xeuugli x193iq5w",
182
196
  children: [/* @__PURE__ */ d("span", {
183
197
  "aria-hidden": n,
184
198
  ...{
185
- 0: { className: "x15r89dc" },
186
- 1: { className: "x15r89dc xlshs6z" }
199
+ 0: { className: "x15r89dc xeuugli" },
200
+ 1: { className: "x15r89dc xeuugli xlshs6z" }
187
201
  }[!!n | 0],
188
202
  children: t
189
203
  }), /* @__PURE__ */ d("span", {
190
204
  "aria-hidden": !n,
191
205
  ...{
192
- 0: { className: "x15r89dc" },
193
- 1: { className: "x15r89dc xlshs6z" }
206
+ 0: { className: "x15r89dc xeuugli" },
207
+ 1: { className: "x15r89dc xeuugli xlshs6z" }
194
208
  }[!n | 0],
195
209
  children: r
196
210
  })]
197
211
  });
198
212
  }
199
- function O({ variant: t = "outline", tone: r = "neutral", size: i = "sm", pending: o = !1, pendingLabel: c, children: l, className: u, style: f, xstyle: p, disabled: m = !1, ...h }) {
200
- let g = s(), _ = a.props(S.button, w[i], C[r][t], p);
213
+ function k({ variant: t = "outline", tone: r = "neutral", size: i = "sm", pending: o = !1, pendingLabel: c, children: l, className: u, style: f, xstyle: p, disabled: m = !1, ...h }) {
214
+ let g = s(), _ = a.props(C.button, T[i], w[r][t], p);
201
215
  return /* @__PURE__ */ d(n, {
202
216
  ...h,
203
217
  ...e({
@@ -209,7 +223,7 @@ function O({ variant: t = "outline", tone: r = "neutral", size: i = "sm", pendin
209
223
  focusableWhenDisabled: o || h.focusableWhenDisabled,
210
224
  "aria-labelledby": h["aria-labelledby"] ?? (h["aria-label"] === void 0 && c !== void 0 ? g : void 0),
211
225
  "aria-busy": o || h["aria-busy"],
212
- children: /* @__PURE__ */ d(D, {
226
+ children: /* @__PURE__ */ d(O, {
213
227
  id: g,
214
228
  pending: o,
215
229
  pendingLabel: c,
@@ -217,11 +231,11 @@ function O({ variant: t = "outline", tone: r = "neutral", size: i = "sm", pendin
217
231
  })
218
232
  });
219
233
  }
220
- function k({ size: e = "sm", children: t, xstyle: n, ...r }) {
221
- return /* @__PURE__ */ d(O, {
234
+ function A({ size: e = "sm", children: t, xstyle: n, ...r }) {
235
+ return /* @__PURE__ */ d(k, {
222
236
  ...r,
223
237
  size: e,
224
- xstyle: [T[e], n],
238
+ xstyle: [E[e], n],
225
239
  children: /* @__PURE__ */ d("span", {
226
240
  "aria-hidden": !0,
227
241
  className: "xtwnzbg x18utl2x x2lah0s x3nfvp2",
@@ -229,8 +243,8 @@ function k({ size: e = "sm", children: t, xstyle: n, ...r }) {
229
243
  })
230
244
  });
231
245
  }
232
- function A({ tone: t = "neutral", pending: r = !1, pendingLabel: i, children: o, className: c, style: l, xstyle: u, disabled: f = !1, ...p }) {
233
- let m = s(), h = a.props(S.text, E[t], u);
246
+ function ee({ tone: t = "neutral", pending: r = !1, pendingLabel: i, children: o, className: c, style: l, xstyle: u, disabled: f = !1, ...p }) {
247
+ let m = s(), h = a.props(C.text, D[t], u);
234
248
  return /* @__PURE__ */ d(n, {
235
249
  ...p,
236
250
  ...e({
@@ -242,7 +256,7 @@ function A({ tone: t = "neutral", pending: r = !1, pendingLabel: i, children: o,
242
256
  focusableWhenDisabled: r || p.focusableWhenDisabled,
243
257
  "aria-labelledby": p["aria-labelledby"] ?? (p["aria-label"] === void 0 && i !== void 0 ? m : void 0),
244
258
  "aria-busy": r || p["aria-busy"],
245
- children: /* @__PURE__ */ d(D, {
259
+ children: /* @__PURE__ */ d(O, {
246
260
  id: m,
247
261
  pending: r,
248
262
  pendingLabel: i,
@@ -251,14 +265,14 @@ function A({ tone: t = "neutral", pending: r = !1, pendingLabel: i, children: o,
251
265
  });
252
266
  }
253
267
  function j({ xstyle: e, ...t }) {
254
- return /* @__PURE__ */ d("a", { ...r(a.props(S.link, e), t) });
268
+ return /* @__PURE__ */ d("a", { ...r(a.props(C.link, e), t) });
255
269
  }
256
270
  function M({ size: e = "sm", children: t, xstyle: n, render: o, ref: s, ...c }) {
257
271
  return i({
258
272
  defaultTagName: "a",
259
273
  render: o,
260
274
  ref: s,
261
- props: r(a.props(S.button, w[e], S.ghostNeutral, T[e], n), c, { children: /* @__PURE__ */ d("span", {
275
+ props: r(a.props(C.button, T[e], C.ghostNeutral, E[e], n), c, { children: /* @__PURE__ */ d("span", {
262
276
  className: "xtwnzbg x18utl2x x2lah0s x3nfvp2",
263
277
  children: t
264
278
  }) })
@@ -280,7 +294,8 @@ var N = {
280
294
  kMwMTN: "x153jb6y",
281
295
  kMv6JI: "x1hz01jw",
282
296
  kGuDYH: "xy8obcc",
283
- k63SB2: "xk50ysn",
297
+ kLWn49: "xas2l8k",
298
+ k63SB2: "xk4h15q",
284
299
  $$css: !0
285
300
  },
286
301
  small: {
@@ -714,75 +729,107 @@ function U({ seed: e, appearance: t, size: n = "sm", label: r }) {
714
729
  });
715
730
  }
716
731
  // packages/core/src/copy-value.tsx
717
- var W = 1600, G = /* @__PURE__ */ new Set(["copied", "failed"]);
718
- function K({ value: i, label: s, display: u = "value", children: p, className: h, style: g, disabled: _ = !1, onClick: v, render: y, ...b }) {
719
- let [x, S] = l({
732
+ var W = {
733
+ value: {
734
+ kJuA4N: "x15r89dc",
735
+ k7Eaqz: "xeuugli",
736
+ kHjlTd: "xj0a0fe",
737
+ kcqcaj: "xss6m8b",
738
+ kfSwDN: "x1hx0egp",
739
+ $$css: !0
740
+ },
741
+ visible: { $$css: !0 },
742
+ hidden: {
743
+ k33iCy: "xlshs6z",
744
+ $$css: !0
745
+ }
746
+ }, G = 1600, K = /* @__PURE__ */ new Set(["copied", "failed"]), q = {
747
+ idle: W.visible,
748
+ pending: W.visible,
749
+ copied: W.hidden,
750
+ failed: W.visible
751
+ }, J = {
752
+ idle: W.hidden,
753
+ pending: W.hidden,
754
+ copied: W.visible,
755
+ failed: W.hidden
756
+ };
757
+ function Y({ value: i, label: s, display: u = "value", children: p, className: h, style: g, disabled: _ = !1, onClick: v, render: y, ...x }) {
758
+ let [S, C] = l({
720
759
  value: i,
721
760
  status: "idle"
722
- }), C = c(0), w = x.value === i ? x.status : "idle";
761
+ }), w = c(0), T = S.value === i ? S.status : "idle";
723
762
  o(() => () => {
724
- C.current += 1;
763
+ w.current += 1;
725
764
  }, [i]), o(() => {
726
- if (!G.has(x.status)) return;
765
+ if (!K.has(S.status)) return;
727
766
  let e = globalThis.setTimeout(() => {
728
- S((e) => e === x ? {
767
+ C((e) => e === S ? {
729
768
  value: i,
730
769
  status: "idle"
731
770
  } : e);
732
- }, W);
771
+ }, G);
733
772
  return () => globalThis.clearTimeout(e);
734
- }, [x, i]);
735
- async function T() {
736
- C.current += 1;
737
- let e = C.current;
738
- S({
773
+ }, [S, i]);
774
+ async function E() {
775
+ w.current += 1;
776
+ let e = w.current;
777
+ C({
739
778
  value: i,
740
779
  status: "pending"
741
780
  });
742
781
  try {
743
- await navigator.clipboard.writeText(typeof i == "string" ? i : i()), C.current === e && S({
782
+ await navigator.clipboard.writeText(typeof i == "string" ? i : i()), w.current === e && C({
744
783
  value: i,
745
784
  status: "copied"
746
785
  });
747
786
  } catch {
748
- C.current === e && S({
787
+ w.current === e && C({
749
788
  value: i,
750
789
  status: "failed"
751
790
  });
752
791
  }
753
792
  }
754
- let E = w === "copied" ? m : ee, D = {
793
+ let D = T === "copied" ? m : b, O = {
755
794
  idle: "",
756
795
  pending: "",
757
796
  copied: `${s} copied`,
758
797
  failed: `Could not copy ${s}. Select and copy the value.`
759
- }, O = r({ onClick: () => {
760
- T();
798
+ }, k = r({ onClick: () => {
799
+ E();
761
800
  } }, { onClick: v });
762
801
  return /* @__PURE__ */ f(n, {
763
- ...b,
802
+ ...x,
764
803
  render: y,
765
- ...O,
804
+ ...k,
766
805
  ...e({
767
806
  className: h,
768
807
  style: g,
769
808
  styles: {
770
809
  0: {},
771
- 1: { className: "x3nfvp2 x6s0dn4 x193iq5w x16exltd xwu7q15 xbgj81g x1717udv xc342km xjbqb8w x153jb6y x1hz01jw xvmahel xtqrqnz x1778rvt x1yc453h x1ypdohk x1wlwa7r x19rmrnh x9v5kkp x13qnu6 x7s97pk" }
810
+ 1: { className: "x3nfvp2 x6s0dn4 x193iq5w x16exltd xwu7q15 xbgj81g x1717udv xc342km xjbqb8w x153jb6y x1hz01jw xj57cvi xvmahel xtqrqnz x1778rvt x1yc453h x1ypdohk x1wlwa7r xoqm7u7 xdibjt2 xwpgcpl xknznnm x19rmrnh x9v5kkp x13qnu6 x7s97pk" }
772
811
  }[y === void 0 | 0]
773
812
  }),
774
813
  type: "button",
775
814
  "aria-label": `Copy ${s}`,
776
- "aria-busy": w === "pending" || b["aria-busy"],
777
- disabled: _ || w === "pending",
778
- focusableWhenDisabled: w === "pending" || b.focusableWhenDisabled,
779
- title: b.title ?? (typeof i == "string" ? i : s),
815
+ "aria-busy": T === "pending" || x["aria-busy"],
816
+ disabled: _ || T === "pending",
817
+ focusableWhenDisabled: T === "pending" || x.focusableWhenDisabled,
818
+ title: x.title ?? (typeof i == "string" ? i : s),
780
819
  children: [
781
- u === "value" && /* @__PURE__ */ d("span", {
782
- className: "xeuugli xj0a0fe xss6m8b x1hx0egp",
783
- children: w === "copied" ? "Copied" : p ?? (typeof i == "string" ? i : s)
820
+ u === "value" && /* @__PURE__ */ f("span", {
821
+ className: "xwz0xwf xeuugli",
822
+ children: [/* @__PURE__ */ d("span", {
823
+ "aria-hidden": T === "copied",
824
+ ...a.props(W.value, q[T]),
825
+ children: p ?? (typeof i == "string" ? i : s)
826
+ }), /* @__PURE__ */ d("span", {
827
+ "aria-hidden": T !== "copied",
828
+ ...a.props(W.value, J[T]),
829
+ children: "Copied"
830
+ })]
784
831
  }),
785
- /* @__PURE__ */ d(E, {
832
+ /* @__PURE__ */ d(D, {
786
833
  size: u === "icon" ? 16 : 12,
787
834
  "aria-hidden": !0,
788
835
  className: "x2lah0s"
@@ -790,24 +837,24 @@ function K({ value: i, label: s, display: u = "value", children: p, className: h
790
837
  /* @__PURE__ */ d("span", {
791
838
  role: "status",
792
839
  ...a.props(t.hidden),
793
- children: D[w]
840
+ children: O[T]
794
841
  })
795
842
  ]
796
843
  });
797
844
  }
798
845
  // packages/core/src/disclosure.tsx
799
- function q({ className: t, style: n, ...r }) {
800
- return /* @__PURE__ */ d(b.Root, {
846
+ function X({ className: t, style: n, ...r }) {
847
+ return /* @__PURE__ */ d(x.Root, {
801
848
  ...r,
802
849
  ...e({
803
850
  className: t,
804
851
  style: n,
805
- styles: { className: "xeuugli x1hz01jw xvmahel xtqrqnz x1778rvt xbixft" }
852
+ styles: { className: "xeuugli x1hz01jw xvmahel xtqrqnz x1778rvt xj57cvi xbixft" }
806
853
  })
807
854
  });
808
855
  }
809
- function J({ className: t, style: n, ...r }) {
810
- return /* @__PURE__ */ d(b.Item, {
856
+ function Z({ className: t, style: n, ...r }) {
857
+ return /* @__PURE__ */ d(x.Item, {
811
858
  ...r,
812
859
  ...e({
813
860
  className: t,
@@ -816,8 +863,8 @@ function J({ className: t, style: n, ...r }) {
816
863
  })
817
864
  });
818
865
  }
819
- function Y({ className: t, style: n, ...r }) {
820
- return /* @__PURE__ */ d(b.Header, {
866
+ function re({ className: t, style: n, ...r }) {
867
+ return /* @__PURE__ */ d(x.Header, {
821
868
  ...r,
822
869
  ...e({
823
870
  className: t,
@@ -826,13 +873,13 @@ function Y({ className: t, style: n, ...r }) {
826
873
  })
827
874
  });
828
875
  }
829
- function X({ className: t, style: n, children: r, ...i }) {
830
- return /* @__PURE__ */ f(b.Trigger, {
876
+ function ie({ className: t, style: n, children: r, ...i }) {
877
+ return /* @__PURE__ */ f(x.Trigger, {
831
878
  ...i,
832
879
  ...e({
833
880
  className: t,
834
881
  style: n,
835
- styles: { className: "x78zum5 x6s0dn4 x1qughib x1hnptsi xh8yej3 x1uey4wk xwu7q15 xnjsko4 xn9t2bk xc342km xjbqb8w xjb2p0i x1qlqyl8 x15bjb6t xk50ysn x1heor9g x1yc453h x1ypdohk xwj21n9 x1m8qfh3 x13qnu6 x9v5kkp x19rmrnh x7s97pk x-default-marker" }
882
+ styles: { className: "x78zum5 x6s0dn4 x1qughib x1hnptsi xh8yej3 x1uey4wk xwu7q15 xnjsko4 xn9t2bk xc342km xjbqb8w xvwfb5p xyg3wme xjb2p0i x1qlqyl8 x15bjb6t xk4h15q x1heor9g x1yc453h xj0a0fe x1ypdohk xwj21n9 x1m8qfh3 x13qnu6 x9v5kkp x19rmrnh x7s97pk x-default-marker" }
836
883
  }),
837
884
  children: [r, /* @__PURE__ */ d(h, {
838
885
  "aria-hidden": !0,
@@ -840,8 +887,8 @@ function X({ className: t, style: n, children: r, ...i }) {
840
887
  })]
841
888
  });
842
889
  }
843
- function Z({ className: t, style: n, ...r }) {
844
- return /* @__PURE__ */ d(b.Panel, {
890
+ function ae({ className: t, style: n, ...r }) {
891
+ return /* @__PURE__ */ d(x.Panel, {
845
892
  ...r,
846
893
  ...e({
847
894
  className: t,
@@ -850,23 +897,23 @@ function Z({ className: t, style: n, ...r }) {
850
897
  })
851
898
  });
852
899
  }
853
- function re({ className: t, style: n, ...r }) {
854
- return /* @__PURE__ */ d(x.Root, {
900
+ function oe({ className: t, style: n, ...r }) {
901
+ return /* @__PURE__ */ d(S.Root, {
855
902
  ...r,
856
903
  ...e({
857
904
  className: t,
858
905
  style: n,
859
- styles: { className: "xeuugli x1hz01jw xvmahel xtqrqnz x1778rvt xbixft" }
906
+ styles: { className: "xeuugli x1hz01jw xvmahel xtqrqnz x1778rvt xj57cvi xbixft" }
860
907
  })
861
908
  });
862
909
  }
863
- function ie({ className: t, style: n, children: r, ...i }) {
864
- return /* @__PURE__ */ f(x.Trigger, {
910
+ function se({ className: t, style: n, children: r, ...i }) {
911
+ return /* @__PURE__ */ f(S.Trigger, {
865
912
  ...i,
866
913
  ...e({
867
914
  className: t,
868
915
  style: n,
869
- styles: { className: "x78zum5 x6s0dn4 x1qughib x1hnptsi xh8yej3 x1uey4wk xwu7q15 xnjsko4 xn9t2bk xc342km xjbqb8w xjb2p0i x1qlqyl8 x15bjb6t xk50ysn x1heor9g x1yc453h x1ypdohk xwj21n9 x1m8qfh3 x13qnu6 x9v5kkp x19rmrnh x7s97pk x-default-marker" }
916
+ styles: { className: "x78zum5 x6s0dn4 x1qughib x1hnptsi xh8yej3 x1uey4wk xwu7q15 xnjsko4 xn9t2bk xc342km xjbqb8w xvwfb5p xyg3wme xjb2p0i x1qlqyl8 x15bjb6t xk4h15q x1heor9g x1yc453h xj0a0fe x1ypdohk xwj21n9 x1m8qfh3 x13qnu6 x9v5kkp x19rmrnh x7s97pk x-default-marker" }
870
917
  }),
871
918
  children: [r, /* @__PURE__ */ d(h, {
872
919
  "aria-hidden": !0,
@@ -874,8 +921,8 @@ function ie({ className: t, style: n, children: r, ...i }) {
874
921
  })]
875
922
  });
876
923
  }
877
- function ae({ className: t, style: n, ...r }) {
878
- return /* @__PURE__ */ d(x.Panel, {
924
+ function ce({ className: t, style: n, ...r }) {
925
+ return /* @__PURE__ */ d(S.Panel, {
879
926
  ...r,
880
927
  ...e({
881
928
  className: t,
@@ -884,40 +931,64 @@ function ae({ className: t, style: n, ...r }) {
884
931
  })
885
932
  });
886
933
  }
887
- var oe = {
888
- Root: q,
889
- Item: J,
890
- Header: Y,
891
- Trigger: X,
892
- Panel: Z
893
- }, se = {
894
- Root: re,
934
+ var le = {
935
+ Root: X,
936
+ Item: Z,
937
+ Header: re,
895
938
  Trigger: ie,
896
939
  Panel: ae
897
- };
898
- // packages/core/src/surfaces.tsx
899
- function ce({ padded: e = !0, ...t }) {
940
+ }, ue = {
941
+ Root: oe,
942
+ Trigger: se,
943
+ Panel: ce
944
+ }, de = { link: {
945
+ k1xSpc: "x1lliihq",
946
+ kB7OPa: "x9f619",
947
+ k7Eaqz: "xeuugli",
948
+ kAzted: "x2lwn1j xwu7q15",
949
+ kaIpWk: "x1pjcqnp",
950
+ kWkggS: "xjbqb8w",
951
+ kMwMTN: "xbixft",
952
+ kMv6JI: "x1hz01jw",
953
+ k63SB2: "xj57cvi",
954
+ kGuDYH: "xtqrqnz",
955
+ kLWn49: "x1778rvt",
956
+ khiITx: "xvmahel",
957
+ kMnn75: "xkrqix3",
958
+ kHjlTd: "xj0a0fe",
959
+ ko0ZBZ: "x13nmlw8",
960
+ kSReZ0: "x1ecmtor",
961
+ kPJHz1: "x13qnu6",
962
+ k7shQP: "x9v5kkp",
963
+ kZs9gx: "x19rmrnh",
964
+ kiEn40: "x8fq8g9",
965
+ $$css: !0
966
+ } };
967
+ function fe({ padded: e = !0, ...t }) {
900
968
  return /* @__PURE__ */ d("section", { ...r({
901
- 0: { className: "xmkeg23 x1y0btm7 x1ey3b81 x1ok0vyi xpvm0e4 xb3r6kr x1hz01jw xvmahel" },
902
- 1: { className: "xmkeg23 x1y0btm7 x1ey3b81 x1ok0vyi xpvm0e4 xb3r6kr x1hz01jw xvmahel x1jvlu93" }
969
+ 0: { className: "xmkeg23 x1y0btm7 x1ey3b81 x1ok0vyi xpvm0e4 xb3r6kr x1hz01jw xj57cvi xtqrqnz x1778rvt xbixft xvmahel" },
970
+ 1: { className: "xmkeg23 x1y0btm7 x1ey3b81 x1ok0vyi xpvm0e4 xb3r6kr x1hz01jw xj57cvi xtqrqnz x1778rvt xbixft xvmahel x1jvlu93" }
903
971
  }[!!e | 0], t) });
904
972
  }
905
- function le({ between: e = !1, ...t }) {
973
+ function pe({ xstyle: e, ...t }) {
974
+ return /* @__PURE__ */ d("a", { ...r(a.props(de.link, e), t) });
975
+ }
976
+ function me({ between: e = !1, ...t }) {
906
977
  return /* @__PURE__ */ d("div", { ...r({
907
978
  0: { className: "x78zum5 x6s0dn4 x1hnptsi x1a02dak xeuugli" },
908
979
  1: { className: "x78zum5 x6s0dn4 x1hnptsi x1a02dak xeuugli x1qughib" }
909
980
  }[!!e | 0], t) });
910
981
  }
911
- function ue({ compact: e = !1, ...t }) {
982
+ function he({ compact: e = !1, ...t }) {
912
983
  return /* @__PURE__ */ d("div", { ...r({
913
984
  0: { className: "x78zum5 xdt5ytf x1j825kq xeuugli" },
914
985
  1: { className: "x78zum5 xdt5ytf xeuugli x1hnptsi" }
915
986
  }[!!e | 0], t) });
916
987
  }
917
- function de(e) {
988
+ function ge(e) {
918
989
  return /* @__PURE__ */ d("div", { ...r({ className: "xrvj5dj xhuszhj x1m6b44x xeuugli" }, e) });
919
990
  }
920
- function fe(e) {
991
+ function _e(e) {
921
992
  return /* @__PURE__ */ d("hr", { ...r({ className: "xc342km x178xt8z x1y0btm7 x1ey3b81 x1ghz6dp" }, e) });
922
993
  }
923
994
  // packages/core/src/text.tsx
@@ -925,6 +996,7 @@ var Q = {
925
996
  text: {
926
997
  kogj98: "x1ghz6dp",
927
998
  kMv6JI: "x1hz01jw",
999
+ k63SB2: "xj57cvi",
928
1000
  khiITx: "xvmahel",
929
1001
  kHjlTd: "xj0a0fe",
930
1002
  $$css: !0
@@ -959,22 +1031,24 @@ var Q = {
959
1031
  khDVqt: "x126k92a",
960
1032
  kHjlTd: "xj0a0fe",
961
1033
  kGuDYH: "x12myhf4",
962
- kLWn49: "xa7kkou",
1034
+ kLWn49: "x1ytb0s6",
963
1035
  $$css: !0
964
1036
  },
965
1037
  badge: {
966
1038
  k1xSpc: "x3nfvp2",
1039
+ kmuXW: "x2lah0s",
967
1040
  kGNEyG: "x6s0dn4",
968
- kOIVth: "x1nejdyq",
1041
+ kOIVth: "xunmzkg",
969
1042
  kaIpWk: "x1ok0vyi",
970
1043
  k8WAf4: "x10dazmo",
971
- kg3NbH: "x1xijbu4",
1044
+ kg3NbH: "x5g2kb4",
972
1045
  kMv6JI: "x1hz01jw",
973
1046
  khiITx: "xvmahel",
974
1047
  kGuDYH: "xy8obcc",
975
1048
  kLWn49: "x1778rvt",
976
- k63SB2: "xk50ysn",
977
- khDVqt: "xuxw1ft",
1049
+ k63SB2: "xk4h15q",
1050
+ ks0D6T: "x193iq5w",
1051
+ kB7OPa: "x9f619",
978
1052
  kzqmXN: "xeq5yr9",
979
1053
  $$css: !0
980
1054
  },
@@ -1018,70 +1092,77 @@ var Q = {
1018
1092
  kMwMTN: "xr5kp14",
1019
1093
  $$css: !0
1020
1094
  }
1021
- }, pe = {
1095
+ }, ve = {
1022
1096
  body: Q.body,
1023
1097
  caption: Q.caption,
1024
1098
  mono: Q.mono,
1025
1099
  prose: Q.prose
1026
- }, $ = {
1100
+ }, ye = {
1027
1101
  ink: Q.ink,
1028
1102
  muted: Q.muted
1029
- }, me = {
1103
+ }, be = {
1030
1104
  neutral: Q.neutral,
1031
1105
  positive: Q.positive,
1032
1106
  warning: Q.warning,
1033
1107
  negative: Q.negative
1034
- }, he = {
1108
+ }, xe = {
1035
1109
  neutral: Q.neutralIcon,
1036
1110
  positive: Q.positiveIcon,
1037
1111
  warning: Q.warningIcon,
1038
1112
  negative: Q.negativeIcon
1039
- }, ge = {
1113
+ }, Se = {
1040
1114
  neutral: g,
1041
1115
  positive: _,
1042
1116
  warning: y,
1043
1117
  negative: v
1044
1118
  };
1045
- function _e({ variant: e = "body", tone: t = "ink", xstyle: n, ...i }) {
1046
- return /* @__PURE__ */ d("span", { ...r(a.props(Q.text, pe[e], $[t], n), i) });
1119
+ function $({ variant: e = "body", tone: t = "ink", xstyle: n, ...i }) {
1120
+ return /* @__PURE__ */ d("span", { ...r(a.props(Q.text, ve[e], ye[t], n), i) });
1047
1121
  }
1048
- function ve({ compact: e = !1, ...t }) {
1122
+ function Ce({ compact: e = !1, ...t }) {
1049
1123
  return /* @__PURE__ */ d("h1", { ...r({
1050
- 0: { className: "x1ghz6dp x1hz01jw xvmahel xc0f4dz x1sfszr9 xzju6ct x197eox2 x1s688f x1wjjqco xbixft xj0a0fe" },
1051
- 1: { className: "x1ghz6dp x1hz01jw xvmahel x1i2cqwi x4fansv x1s688f xbixft" }
1124
+ 0: { className: "x1ghz6dp x1hz01jw xvmahel xc0f4dz x1sfszr9 xzju6ct x197eox2 x1b5ytql x1wjjqco xbixft xj0a0fe" },
1125
+ 1: { className: "x1ghz6dp x1hz01jw xvmahel x1i2cqwi x4fansv x1b5ytql xbixft xj0a0fe" }
1052
1126
  }[!!e | 0], t) });
1053
1127
  }
1054
- function ye(e) {
1055
- return /* @__PURE__ */ d("h2", { ...r({ className: "x1ghz6dp x1hz01jw xvmahel x1i2cqwi x4fansv x1s688f xbixft" }, e) });
1128
+ function we(e) {
1129
+ return /* @__PURE__ */ d("h2", { ...r({ className: "x1ghz6dp x1hz01jw xvmahel x1i2cqwi x4fansv x1b5ytql xbixft xj0a0fe" }, e) });
1056
1130
  }
1057
- function be(e) {
1058
- return /* @__PURE__ */ d("p", { ...r({ className: "x1ghz6dp x1hz01jw xvmahel xj0a0fe xtqrqnz x1778rvt x153jb6y" }, e) });
1131
+ function Te(e) {
1132
+ return /* @__PURE__ */ d("p", { ...r({ className: "x1ghz6dp x1hz01jw xj57cvi xvmahel xj0a0fe xtqrqnz x1778rvt x153jb6y" }, e) });
1059
1133
  }
1060
- function xe(e) {
1061
- return /* @__PURE__ */ d("span", { ...r({ className: "x1ghz6dp xvmahel xiard35 xy8obcc x1778rvt xj0a0fe x153jb6y" }, e) });
1134
+ function Ee(e) {
1135
+ return /* @__PURE__ */ d("span", { ...r({ className: "x1ghz6dp xj57cvi xvmahel xiard35 xy8obcc x1778rvt xj0a0fe x153jb6y" }, e) });
1062
1136
  }
1063
- function Se(e) {
1064
- return /* @__PURE__ */ d("pre", { ...r({ className: "x1ghz6dp x1hz01jw xvmahel x1ewvobj x126k92a xj0a0fe x12myhf4 xa7kkou xbixft" }, e) });
1137
+ function De(e) {
1138
+ return /* @__PURE__ */ d("pre", { ...r({ className: "x1ghz6dp x1hz01jw xj57cvi xvmahel x1ewvobj x126k92a xj0a0fe x12myhf4 x1ytb0s6 xbixft" }, e) });
1065
1139
  }
1066
- function Ce({ children: e, tone: t = "neutral", ...n }) {
1140
+ function Oe({ children: e, tone: t = "neutral", ...n }) {
1067
1141
  return /* @__PURE__ */ f("span", {
1068
- ...r(a.props(Q.badge, me[t]), n),
1142
+ ...r(a.props(Q.badge, be[t]), n),
1069
1143
  children: [/* @__PURE__ */ d(g, {
1070
1144
  size: 5,
1071
1145
  fill: "currentColor",
1072
- "aria-hidden": !0
1073
- }), e]
1146
+ "aria-hidden": !0,
1147
+ className: "x2lah0s"
1148
+ }), /* @__PURE__ */ d("span", {
1149
+ className: "xeuugli xj0a0fe",
1150
+ children: e
1151
+ })]
1074
1152
  });
1075
1153
  }
1076
- function we({ children: e, tone: t = "neutral", ...n }) {
1077
- let i = ge[t];
1154
+ function ke({ children: e, tone: t = "neutral", ...n }) {
1155
+ let i = Se[t];
1078
1156
  return /* @__PURE__ */ f("span", {
1079
- ...r({ className: "x3nfvp2 x6s0dn4 x17d4w8g xbixft x1hz01jw xvmahel xtqrqnz x1778rvt xo1l8bm xuxw1ft" }, n),
1157
+ ...r({ className: "x3nfvp2 x6s0dn4 xbgj81g xbixft x1hz01jw xvmahel xtqrqnz x1778rvt xj57cvi x193iq5w" }, n),
1080
1158
  children: [/* @__PURE__ */ d(i, {
1081
1159
  size: 14,
1082
1160
  "aria-hidden": !0,
1083
- ...a.props(Q.statusIcon, he[t])
1084
- }), e]
1161
+ ...a.props(Q.statusIcon, xe[t])
1162
+ }), /* @__PURE__ */ d("span", {
1163
+ className: "xeuugli xj0a0fe",
1164
+ children: e
1165
+ })]
1085
1166
  });
1086
1167
  }
1087
- export { k as C, j as E, O as S, A as T, U as _, Se as a, F as b, _e as c, ce as d, le as f, K as g, se as h, be as i, de as l, oe as m, ve as n, we as o, ue as p, xe as r, ye as s, Ce as t, fe as u, H as v, M as w, ne as x, R as y };
1168
+ export { k as C, j as D, ee as E, ne as S, M as T, Y as _, De as a, R as b, $ as c, fe as d, me as f, ue as g, le as h, Te as i, ge as l, pe as m, Ce as n, ke as o, he as p, Ee as r, we as s, Oe as t, _e as u, U as v, A as w, F as x, H as y };