@mechane-ai/elements 0.26.0 → 0.27.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.
- package/README.md +9 -6
- package/dist/ai.js +56 -56
- package/dist/{categorical-values-CPRt9uzI.js → categorical-values-DqoH9l1M.js} +2 -2
- package/dist/chart-frame-CYdrUwvP.js +239 -0
- package/dist/{chart-input-DDAjzy-O.js → chart-input--Q3Jdono.js} +4 -3
- package/dist/charts/cartesian.js +527 -434
- package/dist/charts/distribution.js +134 -126
- package/dist/charts/graph.js +46 -43
- package/dist/charts/hierarchy.js +28 -26
- package/dist/charts/matrix.js +81 -77
- package/dist/charts/timeline.js +87 -80
- package/dist/charts.js +1 -1
- package/dist/{code-block-DENC5fD_.js → code-block-DPeyW4sm.js} +3 -3
- package/dist/collections.js +52 -52
- package/dist/content/code.js +1 -1
- package/dist/content/diff.js +10 -10
- package/dist/content/link.js +1 -1
- package/dist/content/markdown.js +2 -2
- package/dist/content/tree.js +2 -2
- package/dist/{content-link-CGIua9If.js → content-link-5oRGjDHa.js} +1 -1
- package/dist/content.js +18 -18
- package/dist/elements.css +14 -0
- package/dist/feedback.js +1 -1
- package/dist/forms/dates.js +7 -7
- package/dist/forms.js +1 -1
- package/dist/index.js +1 -1
- package/dist/layout.js +39 -39
- package/dist/navigation/commands.js +1 -1
- package/dist/packages/charts/src/cartesian/bar-chart.d.ts +5 -4
- package/dist/packages/charts/src/cartesian/breakdown-bar.d.ts +3 -2
- package/dist/packages/charts/src/cartesian/index.d.ts +2 -2
- package/dist/packages/charts/src/cartesian/scatter-plot.d.ts +2 -1
- package/dist/packages/charts/src/cartesian/time-series.d.ts +12 -3
- package/dist/packages/charts/src/chart-frame.d.ts +15 -7
- package/dist/packages/charts/src/chart-input.d.ts +3 -1
- package/dist/packages/charts/src/chart-inspection.d.ts +3 -1
- package/dist/packages/charts/src/chart-series-summary.d.ts +6 -0
- package/dist/packages/charts/src/chart-theme.d.ts +5 -0
- package/dist/packages/charts/src/distribution/ecdf.d.ts +3 -2
- package/dist/packages/charts/src/distribution/histogram.d.ts +3 -2
- package/dist/packages/charts/src/distribution/interval-plot.d.ts +3 -2
- package/dist/packages/charts/src/distribution/ranked-bars.d.ts +3 -2
- package/dist/packages/charts/src/graph/relation-graph.d.ts +3 -2
- package/dist/packages/charts/src/hierarchy/treemap.d.ts +3 -2
- package/dist/packages/charts/src/index.d.ts +1 -1
- package/dist/packages/charts/src/matrix/matrix.d.ts +3 -2
- package/dist/packages/charts/src/matrix/token-heatmap.d.ts +3 -2
- package/dist/packages/charts/src/timeline/waterfall.d.ts +4 -1
- package/dist/packages/core/src/index.d.ts +2 -0
- package/dist/packages/core/src/section-heading.d.ts +8 -0
- package/dist/{pierre-diff-CHQsoQSZ.js → pierre-diff-C3U_qae6.js} +1 -1
- package/dist/{pierre-theme-CLgk9v3e.js → pierre-theme-DsrSwl5m.js} +19 -20
- package/dist/{pierre-tree-C3nKYyoN.js → pierre-tree-KSFewJrY.js} +4 -4
- package/dist/{src-CQOgWIzP.js → src-DYwAhQHt.js} +98 -98
- package/dist/{src-DLReNPV9.js → src-E3Or8tkO.js} +38 -18
- package/dist/{src-DHYcohZP.js → src-eWcNz_oB.js} +25 -26
- package/dist/tokens.js +1 -3
- package/dist/{tokens.stylex-DTHHFbyl.js → tokens.stylex-BoRZ3D8s.js} +92 -12
- package/package.json +1 -1
- package/dist/chart-frame-CNr8M_b2.js +0 -166
- package/dist/constants.stylex-BILvnwUk.js +0 -84
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { S as e, i as t, k as n, s as r, x as i, y as a } from "./src-E3Or8tkO.js";
|
|
2
2
|
import { t as o } from "./style-composition-uYlczSsB.js";
|
|
3
3
|
import { mergeProps as s } from "@base-ui/react/merge-props";
|
|
4
4
|
import * as c from "@stylexjs/stylex";
|
|
@@ -53,7 +53,7 @@ var E = {
|
|
|
53
53
|
}
|
|
54
54
|
}, D = {
|
|
55
55
|
field: { field: { $$css: !0 } }.field,
|
|
56
|
-
plain:
|
|
56
|
+
plain: n.plainTextarea
|
|
57
57
|
}, O = {
|
|
58
58
|
trigger: {
|
|
59
59
|
k1xSpc: "x3nfvp2",
|
|
@@ -186,36 +186,36 @@ var E = {
|
|
|
186
186
|
function ne(e) {
|
|
187
187
|
return /* @__PURE__ */ u(h.Root, { ...e });
|
|
188
188
|
}
|
|
189
|
-
function re({ className:
|
|
189
|
+
function re({ className: e, style: t, xstyle: r, ...i }) {
|
|
190
190
|
return /* @__PURE__ */ u(h.InputGroup, {
|
|
191
191
|
...i,
|
|
192
192
|
...o({
|
|
193
|
-
className:
|
|
194
|
-
style:
|
|
195
|
-
styles: c.props(
|
|
193
|
+
className: e,
|
|
194
|
+
style: t,
|
|
195
|
+
styles: c.props(n.group, k.inputGroup, r)
|
|
196
196
|
})
|
|
197
197
|
});
|
|
198
198
|
}
|
|
199
|
-
function A({ className:
|
|
199
|
+
function A({ className: e, style: t, ...r }) {
|
|
200
200
|
return /* @__PURE__ */ u(h.Label, {
|
|
201
201
|
...r,
|
|
202
202
|
...o({
|
|
203
|
-
className:
|
|
204
|
-
style:
|
|
205
|
-
styles: c.props(
|
|
203
|
+
className: e,
|
|
204
|
+
style: t,
|
|
205
|
+
styles: c.props(n.label)
|
|
206
206
|
})
|
|
207
207
|
});
|
|
208
208
|
}
|
|
209
209
|
function j(e) {
|
|
210
210
|
return /* @__PURE__ */ u(h.Value, { ...e });
|
|
211
211
|
}
|
|
212
|
-
function M({ className:
|
|
212
|
+
function M({ className: e, style: t, ...r }) {
|
|
213
213
|
return /* @__PURE__ */ u(h.Input, {
|
|
214
214
|
...r,
|
|
215
215
|
...o({
|
|
216
|
-
className:
|
|
217
|
-
style:
|
|
218
|
-
styles: c.props(
|
|
216
|
+
className: e,
|
|
217
|
+
style: t,
|
|
218
|
+
styles: c.props(n.base, n.field, E.input, n.embedded, k.input)
|
|
219
219
|
})
|
|
220
220
|
});
|
|
221
221
|
}
|
|
@@ -344,13 +344,13 @@ function U({ className: e, style: t, ...n }) {
|
|
|
344
344
|
})
|
|
345
345
|
});
|
|
346
346
|
}
|
|
347
|
-
function W({ className:
|
|
347
|
+
function W({ className: e, style: t, ...r }) {
|
|
348
348
|
return /* @__PURE__ */ u(h.Chip, {
|
|
349
349
|
...r,
|
|
350
350
|
...o({
|
|
351
|
-
className:
|
|
352
|
-
style:
|
|
353
|
-
styles: c.props(
|
|
351
|
+
className: e,
|
|
352
|
+
style: t,
|
|
353
|
+
styles: c.props(n.group, k.chip)
|
|
354
354
|
})
|
|
355
355
|
});
|
|
356
356
|
}
|
|
@@ -392,25 +392,25 @@ var K = {
|
|
|
392
392
|
Collection: h.Collection
|
|
393
393
|
};
|
|
394
394
|
// packages/forms/src/agent-avatar-picker.tsx
|
|
395
|
-
function q({ value:
|
|
395
|
+
function q({ value: t, onValueChange: n, disabled: r = !1 }) {
|
|
396
396
|
let o = l(), s = l();
|
|
397
397
|
return /* @__PURE__ */ d("div", {
|
|
398
398
|
className: "x78zum5 xdt5ytf xaml1ju x1hz01jw xj57cvi xeuugli x193iq5w x16m5f1z",
|
|
399
399
|
children: [
|
|
400
400
|
/* @__PURE__ */ d("div", {
|
|
401
401
|
className: "x78zum5 x6s0dn4 x1n8ia3y xeuugli",
|
|
402
|
-
children: [/* @__PURE__ */ u(
|
|
402
|
+
children: [/* @__PURE__ */ u(a, {
|
|
403
403
|
seed: "preview",
|
|
404
|
-
appearance:
|
|
404
|
+
appearance: t,
|
|
405
405
|
size: "lg"
|
|
406
406
|
}), /* @__PURE__ */ d("div", {
|
|
407
407
|
className: "x78zum5 xdt5ytf xeuugli",
|
|
408
408
|
children: [/* @__PURE__ */ u("span", {
|
|
409
409
|
className: "xbixft xtqrqnz xk4h15q x1778rvt xn80e1m",
|
|
410
|
-
children:
|
|
410
|
+
children: t.shape
|
|
411
411
|
}), /* @__PURE__ */ u("span", {
|
|
412
412
|
className: "x153jb6y xy8obcc xas2l8k xn80e1m",
|
|
413
|
-
children:
|
|
413
|
+
children: t.color
|
|
414
414
|
})]
|
|
415
415
|
})]
|
|
416
416
|
}),
|
|
@@ -422,27 +422,27 @@ function q({ value: e, onValueChange: n, disabled: r = !1 }) {
|
|
|
422
422
|
children: "Shape"
|
|
423
423
|
}), /* @__PURE__ */ u(_, {
|
|
424
424
|
"aria-labelledby": o,
|
|
425
|
-
value:
|
|
426
|
-
onValueChange: (
|
|
427
|
-
...
|
|
428
|
-
shape:
|
|
425
|
+
value: t.shape,
|
|
426
|
+
onValueChange: (e) => n({
|
|
427
|
+
...t,
|
|
428
|
+
shape: e
|
|
429
429
|
}),
|
|
430
430
|
disabled: r,
|
|
431
431
|
className: "xrvj5dj x10yxpwy x15eknm3 xunmzkg",
|
|
432
|
-
children:
|
|
433
|
-
value:
|
|
434
|
-
"aria-label":
|
|
435
|
-
title:
|
|
432
|
+
children: e.map((e) => /* @__PURE__ */ u(g.Root, {
|
|
433
|
+
value: e,
|
|
434
|
+
"aria-label": e,
|
|
435
|
+
title: e,
|
|
436
436
|
className: "x3nfvp2 x6s0dn4 xl56j7k x9f619 x16opp91 x1gjsuxi x17tes2r x17oiadl x1s01oa9 xmkeg23 x1y0btm7 x9r1u3d xy32g2j xjbqb8w x1ypdohk x1bn55bi xgm7wsc x17lu4q8 x1480za7 x13qnu6 x9v5kkp x19rmrnh x7s97pk x1m8qfh3 xwj21n9",
|
|
437
|
-
children: /* @__PURE__ */ u(
|
|
438
|
-
seed:
|
|
437
|
+
children: /* @__PURE__ */ u(a, {
|
|
438
|
+
seed: e,
|
|
439
439
|
appearance: {
|
|
440
|
-
...
|
|
441
|
-
shape:
|
|
440
|
+
...t,
|
|
441
|
+
shape: e
|
|
442
442
|
},
|
|
443
443
|
size: "md"
|
|
444
444
|
})
|
|
445
|
-
},
|
|
445
|
+
}, e))
|
|
446
446
|
})]
|
|
447
447
|
}),
|
|
448
448
|
/* @__PURE__ */ d("div", {
|
|
@@ -453,27 +453,27 @@ function q({ value: e, onValueChange: n, disabled: r = !1 }) {
|
|
|
453
453
|
children: "Color"
|
|
454
454
|
}), /* @__PURE__ */ u(_, {
|
|
455
455
|
"aria-labelledby": s,
|
|
456
|
-
value:
|
|
457
|
-
onValueChange: (
|
|
458
|
-
...
|
|
459
|
-
color:
|
|
456
|
+
value: t.color,
|
|
457
|
+
onValueChange: (e) => n({
|
|
458
|
+
...t,
|
|
459
|
+
color: e
|
|
460
460
|
}),
|
|
461
461
|
disabled: r,
|
|
462
462
|
className: "xrvj5dj x10yxpwy x15eknm3 xunmzkg",
|
|
463
|
-
children:
|
|
464
|
-
value:
|
|
465
|
-
"aria-label":
|
|
466
|
-
title:
|
|
463
|
+
children: i.map((e) => /* @__PURE__ */ u(g.Root, {
|
|
464
|
+
value: e,
|
|
465
|
+
"aria-label": e,
|
|
466
|
+
title: e,
|
|
467
467
|
className: "x3nfvp2 x6s0dn4 xl56j7k x9f619 x16opp91 x1gjsuxi x17tes2r x17oiadl x1s01oa9 xmkeg23 x1y0btm7 x9r1u3d xy32g2j xjbqb8w x1ypdohk x1bn55bi xgm7wsc x17lu4q8 x1480za7 x13qnu6 x9v5kkp x19rmrnh x7s97pk x1m8qfh3 xwj21n9",
|
|
468
|
-
children: /* @__PURE__ */ u(
|
|
469
|
-
seed:
|
|
468
|
+
children: /* @__PURE__ */ u(a, {
|
|
469
|
+
seed: e,
|
|
470
470
|
appearance: {
|
|
471
|
-
...
|
|
472
|
-
color:
|
|
471
|
+
...t,
|
|
472
|
+
color: e
|
|
473
473
|
},
|
|
474
474
|
size: "md"
|
|
475
475
|
})
|
|
476
|
-
},
|
|
476
|
+
}, e))
|
|
477
477
|
})]
|
|
478
478
|
})
|
|
479
479
|
]
|
|
@@ -554,49 +554,49 @@ function X({ className: e, style: t, ...n }) {
|
|
|
554
554
|
})
|
|
555
555
|
});
|
|
556
556
|
}
|
|
557
|
-
function ie({ xstyle:
|
|
558
|
-
return /* @__PURE__ */ u("div", { ...s(c.props(
|
|
557
|
+
function ie({ xstyle: e, ...t }) {
|
|
558
|
+
return /* @__PURE__ */ u("div", { ...s(c.props(n.group, e), t) });
|
|
559
559
|
}
|
|
560
560
|
function ae(e) {
|
|
561
561
|
return /* @__PURE__ */ u("span", { ...s({ className: "x3nfvp2 x2lah0s x6s0dn4 x1atzlso x153jb6y x1hz01jw xj57cvi xtqrqnz x1778rvt" }, e) });
|
|
562
562
|
}
|
|
563
|
-
function oe({ className:
|
|
563
|
+
function oe({ className: e, style: t, xstyle: r, ...i }) {
|
|
564
564
|
return /* @__PURE__ */ u(y, {
|
|
565
565
|
...i,
|
|
566
566
|
...o({
|
|
567
|
-
className:
|
|
568
|
-
style:
|
|
569
|
-
styles: c.props(
|
|
567
|
+
className: e,
|
|
568
|
+
style: t,
|
|
569
|
+
styles: c.props(n.base, n.field, E.input, n.embedded, r)
|
|
570
570
|
})
|
|
571
571
|
});
|
|
572
572
|
}
|
|
573
|
-
function se({ className:
|
|
573
|
+
function se({ className: e, style: t, xstyle: r, ...i }) {
|
|
574
574
|
return /* @__PURE__ */ u(b.Root, {
|
|
575
575
|
...i,
|
|
576
576
|
...o({
|
|
577
|
-
className:
|
|
578
|
-
style:
|
|
579
|
-
styles: c.props(
|
|
577
|
+
className: e,
|
|
578
|
+
style: t,
|
|
579
|
+
styles: c.props(n.fieldRoot, r)
|
|
580
580
|
})
|
|
581
581
|
});
|
|
582
582
|
}
|
|
583
|
-
function ce({ className:
|
|
583
|
+
function ce({ className: e, style: t, ...r }) {
|
|
584
584
|
return /* @__PURE__ */ u(b.Group, {
|
|
585
585
|
...r,
|
|
586
586
|
...o({
|
|
587
|
-
className:
|
|
588
|
-
style:
|
|
589
|
-
styles: c.props(
|
|
587
|
+
className: e,
|
|
588
|
+
style: t,
|
|
589
|
+
styles: c.props(n.group)
|
|
590
590
|
})
|
|
591
591
|
});
|
|
592
592
|
}
|
|
593
|
-
function le({ className:
|
|
593
|
+
function le({ className: e, style: t, ...r }) {
|
|
594
594
|
return /* @__PURE__ */ u(b.Input, {
|
|
595
595
|
...r,
|
|
596
596
|
...o({
|
|
597
|
-
className:
|
|
598
|
-
style:
|
|
599
|
-
styles: c.props(
|
|
597
|
+
className: e,
|
|
598
|
+
style: t,
|
|
599
|
+
styles: c.props(n.base, n.field, E.input, n.embedded, J.numberInput)
|
|
600
600
|
})
|
|
601
601
|
});
|
|
602
602
|
}
|
|
@@ -674,13 +674,13 @@ function ge({ className: e, style: t, ...n }) {
|
|
|
674
674
|
})
|
|
675
675
|
});
|
|
676
676
|
}
|
|
677
|
-
function _e({ className:
|
|
677
|
+
function _e({ className: e, style: t, ...r }) {
|
|
678
678
|
return /* @__PURE__ */ u(x.Label, {
|
|
679
679
|
...r,
|
|
680
680
|
...o({
|
|
681
|
-
className:
|
|
682
|
-
style:
|
|
683
|
-
styles: c.props(
|
|
681
|
+
className: e,
|
|
682
|
+
style: t,
|
|
683
|
+
styles: c.props(n.label)
|
|
684
684
|
})
|
|
685
685
|
});
|
|
686
686
|
}
|
|
@@ -694,14 +694,14 @@ function ve({ className: e, style: t, ...n }) {
|
|
|
694
694
|
})
|
|
695
695
|
});
|
|
696
696
|
}
|
|
697
|
-
function ye({ className:
|
|
697
|
+
function ye({ className: e, style: t, xstyle: r, ...i }) {
|
|
698
698
|
return /* @__PURE__ */ u(y, {
|
|
699
699
|
...i,
|
|
700
700
|
type: "file",
|
|
701
701
|
...o({
|
|
702
|
-
className:
|
|
703
|
-
style:
|
|
704
|
-
styles: c.props(
|
|
702
|
+
className: e,
|
|
703
|
+
style: t,
|
|
704
|
+
styles: c.props(n.base, n.field, E.input, J.file, r)
|
|
705
705
|
})
|
|
706
706
|
});
|
|
707
707
|
}
|
|
@@ -759,33 +759,33 @@ function Te({ children: e, align: t = "end", hasSeparator: n = !1, xstyle: r })
|
|
|
759
759
|
});
|
|
760
760
|
}
|
|
761
761
|
// packages/forms/src/forms.tsx
|
|
762
|
-
function Ee({ className:
|
|
762
|
+
function Ee({ className: e, style: t, xstyle: r, ...i }) {
|
|
763
763
|
return /* @__PURE__ */ u(S.Root, {
|
|
764
764
|
...i,
|
|
765
765
|
...o({
|
|
766
|
-
className:
|
|
767
|
-
style:
|
|
768
|
-
styles: c.props(
|
|
766
|
+
className: e,
|
|
767
|
+
style: t,
|
|
768
|
+
styles: c.props(n.fieldRoot, r)
|
|
769
769
|
})
|
|
770
770
|
});
|
|
771
771
|
}
|
|
772
|
-
function De({ className:
|
|
772
|
+
function De({ className: e, style: t, ...r }) {
|
|
773
773
|
return /* @__PURE__ */ u(S.Label, {
|
|
774
774
|
...r,
|
|
775
775
|
...o({
|
|
776
|
-
className:
|
|
777
|
-
style:
|
|
778
|
-
styles: c.props(
|
|
776
|
+
className: e,
|
|
777
|
+
style: t,
|
|
778
|
+
styles: c.props(n.label)
|
|
779
779
|
})
|
|
780
780
|
});
|
|
781
781
|
}
|
|
782
|
-
function Oe({ className:
|
|
782
|
+
function Oe({ className: e, style: t, ...r }) {
|
|
783
783
|
return /* @__PURE__ */ u(S.Description, {
|
|
784
784
|
...r,
|
|
785
785
|
...o({
|
|
786
|
-
className:
|
|
787
|
-
style:
|
|
788
|
-
styles: c.props(
|
|
786
|
+
className: e,
|
|
787
|
+
style: t,
|
|
788
|
+
styles: c.props(n.description)
|
|
789
789
|
})
|
|
790
790
|
});
|
|
791
791
|
}
|
|
@@ -805,17 +805,17 @@ var Ae = {
|
|
|
805
805
|
Description: Oe,
|
|
806
806
|
Error: ke
|
|
807
807
|
};
|
|
808
|
-
function je({ className:
|
|
808
|
+
function je({ className: e, style: t, xstyle: r, ...i }) {
|
|
809
809
|
return /* @__PURE__ */ u(y, {
|
|
810
810
|
...i,
|
|
811
811
|
...o({
|
|
812
|
-
className:
|
|
813
|
-
style:
|
|
814
|
-
styles: c.props(
|
|
812
|
+
className: e,
|
|
813
|
+
style: t,
|
|
814
|
+
styles: c.props(n.base, n.field, E.input, r)
|
|
815
815
|
})
|
|
816
816
|
});
|
|
817
817
|
}
|
|
818
|
-
function Me({ isCompact:
|
|
818
|
+
function Me({ isCompact: e = !1, shouldGrow: t = !1, appearance: r = "field", value: i, defaultValue: a, onValueChange: s, name: l, disabled: d, readOnly: f, required: p, className: m, style: h, xstyle: g, ..._ }) {
|
|
819
819
|
return /* @__PURE__ */ u(S.Control, {
|
|
820
820
|
value: i,
|
|
821
821
|
defaultValue: a,
|
|
@@ -828,7 +828,7 @@ function Me({ isCompact: t = !1, shouldGrow: n = !1, appearance: r = "field", va
|
|
|
828
828
|
...o({
|
|
829
829
|
className: m,
|
|
830
830
|
style: h,
|
|
831
|
-
styles: c.props(
|
|
831
|
+
styles: c.props(n.base, n.field, E.input, n.textarea, e && E.compactTextarea, t && E.growingTextarea, D[r], g)
|
|
832
832
|
})
|
|
833
833
|
});
|
|
834
834
|
}
|
|
@@ -840,13 +840,13 @@ var Ne = {
|
|
|
840
840
|
function Pe(e) {
|
|
841
841
|
return /* @__PURE__ */ u(C.Root, { ...e });
|
|
842
842
|
}
|
|
843
|
-
function Fe({ variant:
|
|
843
|
+
function Fe({ variant: e = "outline", className: t, style: r, xstyle: i, ...a }) {
|
|
844
844
|
return /* @__PURE__ */ u(C.Trigger, {
|
|
845
845
|
...a,
|
|
846
846
|
...o({
|
|
847
|
-
className:
|
|
847
|
+
className: t,
|
|
848
848
|
style: r,
|
|
849
|
-
styles: c.props(
|
|
849
|
+
styles: c.props(n.base, O.trigger, Ne[e], i)
|
|
850
850
|
})
|
|
851
851
|
});
|
|
852
852
|
}
|
|
@@ -1174,7 +1174,7 @@ function nt({ label: e, description: t, controlId: n, children: r }) {
|
|
|
1174
1174
|
});
|
|
1175
1175
|
}
|
|
1176
1176
|
// packages/forms/src/settings-section.tsx
|
|
1177
|
-
function rt({ title: e, description:
|
|
1177
|
+
function rt({ title: e, description: n, children: i }) {
|
|
1178
1178
|
let a = l();
|
|
1179
1179
|
return /* @__PURE__ */ d("section", {
|
|
1180
1180
|
"aria-labelledby": a,
|
|
@@ -1184,7 +1184,7 @@ function rt({ title: e, description: t, children: i }) {
|
|
|
1184
1184
|
children: [/* @__PURE__ */ u(r, {
|
|
1185
1185
|
id: a,
|
|
1186
1186
|
children: e
|
|
1187
|
-
}),
|
|
1187
|
+
}), n !== void 0 && /* @__PURE__ */ u(t, { children: n })]
|
|
1188
1188
|
}), /* @__PURE__ */ u("div", { children: i })]
|
|
1189
1189
|
});
|
|
1190
1190
|
}
|
|
@@ -1623,6 +1623,26 @@ function Se(e) {
|
|
|
1623
1623
|
function Ce(e) {
|
|
1624
1624
|
return /* @__PURE__ */ d("hr", { ...r({ className: "xc342km x178xt8z x1y0btm7 x1ey3b81 x1ghz6dp" }, e) });
|
|
1625
1625
|
}
|
|
1626
|
+
// packages/core/src/section-heading.tsx
|
|
1627
|
+
function we({ title: e, id: t, meta: n, actions: r }) {
|
|
1628
|
+
return /* @__PURE__ */ f("div", {
|
|
1629
|
+
className: "x78zum5 x1a02dak x6s0dn4 x1n8ia3y x1oec0jp xeuugli x9f619 xn9t2bk x1dc62k6 xso031l x1q0q8m5 x1qndepd x1r7kqkb xbixft x1hz01jw xtqrqnz x1778rvt",
|
|
1630
|
+
children: [/* @__PURE__ */ d("h2", {
|
|
1631
|
+
id: t,
|
|
1632
|
+
className: "x12lumcd xeuugli x1ghz6dp xj0a0fe x12myhf4 xk4h15q x1778rvt",
|
|
1633
|
+
children: e
|
|
1634
|
+
}), (n !== void 0 || r !== void 0) && /* @__PURE__ */ f("div", {
|
|
1635
|
+
className: "x78zum5 x1a02dak x6s0dn4 x1n8ia3y xvc5jky xeuugli x193iq5w",
|
|
1636
|
+
children: [n !== void 0 && /* @__PURE__ */ d("div", {
|
|
1637
|
+
className: "xeuugli xvc5jky xj0a0fe x153jb6y xy8obcc xas2l8k",
|
|
1638
|
+
children: n
|
|
1639
|
+
}), r !== void 0 && /* @__PURE__ */ d("div", {
|
|
1640
|
+
className: "x78zum5 x6s0dn4 x1a02dak x1hnptsi x193iq5w",
|
|
1641
|
+
children: r
|
|
1642
|
+
})]
|
|
1643
|
+
})]
|
|
1644
|
+
});
|
|
1645
|
+
}
|
|
1626
1646
|
// packages/core/src/text.tsx
|
|
1627
1647
|
var Q = {
|
|
1628
1648
|
text: {
|
|
@@ -1724,54 +1744,54 @@ var Q = {
|
|
|
1724
1744
|
kMwMTN: "xr5kp14",
|
|
1725
1745
|
$$css: !0
|
|
1726
1746
|
}
|
|
1727
|
-
},
|
|
1747
|
+
}, Te = {
|
|
1728
1748
|
body: Q.body,
|
|
1729
1749
|
caption: Q.caption,
|
|
1730
1750
|
mono: Q.mono,
|
|
1731
1751
|
prose: Q.prose
|
|
1732
|
-
},
|
|
1752
|
+
}, Ee = {
|
|
1733
1753
|
ink: Q.ink,
|
|
1734
1754
|
muted: Q.muted
|
|
1735
|
-
},
|
|
1755
|
+
}, De = {
|
|
1736
1756
|
neutral: Q.neutral,
|
|
1737
1757
|
positive: Q.positive,
|
|
1738
1758
|
warning: Q.warning,
|
|
1739
1759
|
negative: Q.negative
|
|
1740
|
-
},
|
|
1760
|
+
}, Oe = {
|
|
1741
1761
|
neutral: Q.neutralIcon,
|
|
1742
1762
|
positive: Q.positiveIcon,
|
|
1743
1763
|
warning: Q.warningIcon,
|
|
1744
1764
|
negative: Q.negativeIcon
|
|
1745
|
-
},
|
|
1765
|
+
}, ke = {
|
|
1746
1766
|
neutral: g,
|
|
1747
1767
|
positive: _,
|
|
1748
1768
|
warning: y,
|
|
1749
1769
|
negative: v
|
|
1750
1770
|
};
|
|
1751
|
-
function
|
|
1752
|
-
return /* @__PURE__ */ d("span", { ...r(a.props(Q.text,
|
|
1771
|
+
function Ae({ variant: e = "body", tone: t = "ink", xstyle: n, ...i }) {
|
|
1772
|
+
return /* @__PURE__ */ d("span", { ...r(a.props(Q.text, Te[e], Ee[t], n), i) });
|
|
1753
1773
|
}
|
|
1754
|
-
function
|
|
1774
|
+
function $({ isCompact: e = !1, ...t }) {
|
|
1755
1775
|
return /* @__PURE__ */ d("h1", { ...r({
|
|
1756
1776
|
0: { className: "x1ghz6dp x1hz01jw xvmahel xc0f4dz xvukjed xzju6ct x1vxm5eg x1b5ytql x1wjjqco xbixft xj0a0fe" },
|
|
1757
1777
|
1: { className: "x1ghz6dp x1hz01jw xvmahel x1i2cqwi x4fansv x1b5ytql xbixft xj0a0fe" }
|
|
1758
1778
|
}[!!e | 0], t) });
|
|
1759
1779
|
}
|
|
1760
|
-
function
|
|
1780
|
+
function je(e) {
|
|
1761
1781
|
return /* @__PURE__ */ d("h2", { ...r({ className: "x1ghz6dp x1hz01jw xvmahel x1i2cqwi x4fansv x1b5ytql xbixft xj0a0fe" }, e) });
|
|
1762
1782
|
}
|
|
1763
|
-
function
|
|
1783
|
+
function Me(e) {
|
|
1764
1784
|
return /* @__PURE__ */ d("p", { ...r({ className: "x1ghz6dp x1hz01jw xj57cvi xvmahel xj0a0fe xtqrqnz x1778rvt x153jb6y" }, e) });
|
|
1765
1785
|
}
|
|
1766
|
-
function
|
|
1786
|
+
function Ne(e) {
|
|
1767
1787
|
return /* @__PURE__ */ d("span", { ...r({ className: "x1ghz6dp xj57cvi xvmahel xiard35 xy8obcc x1778rvt xj0a0fe x153jb6y" }, e) });
|
|
1768
1788
|
}
|
|
1769
|
-
function
|
|
1789
|
+
function Pe(e) {
|
|
1770
1790
|
return /* @__PURE__ */ d("pre", { ...r({ className: "x1ghz6dp x1hz01jw xj57cvi xvmahel x1ewvobj x126k92a xj0a0fe x12myhf4 x1ytb0s6 xbixft" }, e) });
|
|
1771
1791
|
}
|
|
1772
|
-
function
|
|
1792
|
+
function Fe({ children: e, tone: t = "neutral", ...n }) {
|
|
1773
1793
|
return /* @__PURE__ */ f("span", {
|
|
1774
|
-
...r(a.props(Q.badge,
|
|
1794
|
+
...r(a.props(Q.badge, De[t]), n),
|
|
1775
1795
|
children: [/* @__PURE__ */ d(g, {
|
|
1776
1796
|
size: 5,
|
|
1777
1797
|
fill: "currentColor",
|
|
@@ -1783,18 +1803,18 @@ function Pe({ children: e, tone: t = "neutral", ...n }) {
|
|
|
1783
1803
|
})]
|
|
1784
1804
|
});
|
|
1785
1805
|
}
|
|
1786
|
-
function
|
|
1787
|
-
let i =
|
|
1806
|
+
function Ie({ children: e, tone: t = "neutral", ...n }) {
|
|
1807
|
+
let i = ke[t];
|
|
1788
1808
|
return /* @__PURE__ */ f("span", {
|
|
1789
1809
|
...r({ className: "x3nfvp2 x6s0dn4 xbgj81g xbixft x1hz01jw xvmahel xtqrqnz x1778rvt xj57cvi x193iq5w" }, n),
|
|
1790
1810
|
children: [/* @__PURE__ */ d(i, {
|
|
1791
1811
|
size: 14,
|
|
1792
1812
|
"aria-hidden": !0,
|
|
1793
|
-
...a.props(Q.statusIcon,
|
|
1813
|
+
...a.props(Q.statusIcon, Oe[t])
|
|
1794
1814
|
}), /* @__PURE__ */ d("span", {
|
|
1795
1815
|
className: "xeuugli xj0a0fe",
|
|
1796
1816
|
children: e
|
|
1797
1817
|
})]
|
|
1798
1818
|
});
|
|
1799
1819
|
}
|
|
1800
|
-
export {
|
|
1820
|
+
export { ne as C, A as D, M as E, j as O, re as S, ee as T, ge as _, Pe as a, U as b, Ae as c, Ce as d, ve as f, he as g, ye as h, Me as i, C as k, we as l, xe as m, $ as n, Ie as o, be as p, Ne as r, je as s, Fe as t, Se as u, X as v, k as w, z as x, W as y };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as r, l as i } from "./tokens.stylex-
|
|
3
|
-
import { t as
|
|
4
|
-
import { c as o, s } from "./constants.stylex-BILvnwUk.js";
|
|
1
|
+
import { i as e, k as t, s as n } from "./src-E3Or8tkO.js";
|
|
2
|
+
import { i as r, l as i, v as a, y as o } from "./tokens.stylex-BoRZ3D8s.js";
|
|
3
|
+
import { t as s } from "./accessibility-C-aIZ1Yx.js";
|
|
5
4
|
import { mergeProps as c } from "@base-ui/react/merge-props";
|
|
6
5
|
import * as l from "@stylexjs/stylex";
|
|
7
6
|
import u, { createContext as d, useContext as f, useEffect as p, useRef as m, useState as h } from "react";
|
|
@@ -11,7 +10,7 @@ import { Meter as w } from "@base-ui/react/meter";
|
|
|
11
10
|
import { Progress as T } from "@base-ui/react/progress";
|
|
12
11
|
import E from "react-dom";
|
|
13
12
|
// packages/feedback/src/feedback.tsx
|
|
14
|
-
function ne({ title:
|
|
13
|
+
function ne({ title: t, children: r, action: i, ...a }) {
|
|
15
14
|
return /* @__PURE__ */ _("div", {
|
|
16
15
|
...c({ className: "x78zum5 xdt5ytf x6s0dn4 xl56j7k x2b8uid xeuugli x193iq5w x9f619 x9w77qv xnx3t7k x1n8ia3y x1hz01jw xj57cvi xvmahel xj0a0fe" }, a),
|
|
17
16
|
children: [
|
|
@@ -20,8 +19,8 @@ function ne({ title: e, children: r, action: i, ...a }) {
|
|
|
20
19
|
"aria-hidden": !0,
|
|
21
20
|
className: "x153jb6y x2lah0s"
|
|
22
21
|
}),
|
|
23
|
-
/* @__PURE__ */ g(n, { children:
|
|
24
|
-
r != null && /* @__PURE__ */ g(
|
|
22
|
+
/* @__PURE__ */ g(n, { children: t }),
|
|
23
|
+
r != null && /* @__PURE__ */ g(e, { children: r }),
|
|
25
24
|
i != null && /* @__PURE__ */ g("div", {
|
|
26
25
|
className: "x78zum5 xl56j7k x1a02dak x1hnptsi xeuugli x193iq5w",
|
|
27
26
|
children: i
|
|
@@ -105,7 +104,7 @@ function j({ label: e, showLabel: t = !1 }) {
|
|
|
105
104
|
"aria-hidden": !0,
|
|
106
105
|
className: "xtwnzbg x18utl2x x2lah0s"
|
|
107
106
|
}), /* @__PURE__ */ g("span", {
|
|
108
|
-
...l.props(D.label, !t &&
|
|
107
|
+
...l.props(D.label, !t && s.hidden),
|
|
109
108
|
children: e
|
|
110
109
|
})]
|
|
111
110
|
});
|
|
@@ -138,36 +137,36 @@ var M = {
|
|
|
138
137
|
],
|
|
139
138
|
rows: (e) => [N, { "--x-height": ((e) => typeof e == "number" ? e + "px" : e ?? void 0)(`calc(${e} * 1lh + 2 * ${r.paddingBlock} + 2px)`) }]
|
|
140
139
|
};
|
|
141
|
-
function F({ width:
|
|
140
|
+
function F({ width: e = "7ch", isIconOnly: n = !1, xstyle: i }) {
|
|
142
141
|
return /* @__PURE__ */ g("span", {
|
|
143
142
|
"aria-hidden": !0,
|
|
144
143
|
inert: !0,
|
|
145
|
-
...l.props(
|
|
144
|
+
...l.props(t.base, t.button, n && t.iconButton, P.button, i),
|
|
146
145
|
children: n ? /* @__PURE__ */ g(k, {
|
|
147
146
|
width: r.iconSize,
|
|
148
147
|
height: r.iconSize
|
|
149
|
-
}) : /* @__PURE__ */ g(A, { width:
|
|
148
|
+
}) : /* @__PURE__ */ g(A, { width: e })
|
|
150
149
|
});
|
|
151
150
|
}
|
|
152
|
-
function I({ label:
|
|
151
|
+
function I({ label: e, hint: n, isMultiline: r = !1, rows: i = 4, width: a = "100%", xstyle: o }) {
|
|
153
152
|
let s = r ? Math.min(i, 6) : 1;
|
|
154
153
|
return /* @__PURE__ */ _("div", {
|
|
155
154
|
"aria-hidden": !0,
|
|
156
|
-
...l.props(
|
|
155
|
+
...l.props(t.fieldRoot, P.width(a), o),
|
|
157
156
|
children: [
|
|
158
|
-
|
|
159
|
-
...l.props(
|
|
160
|
-
children:
|
|
157
|
+
e !== void 0 && /* @__PURE__ */ g("span", {
|
|
158
|
+
...l.props(t.label),
|
|
159
|
+
children: e
|
|
161
160
|
}),
|
|
162
161
|
/* @__PURE__ */ g("div", {
|
|
163
|
-
...l.props(
|
|
162
|
+
...l.props(t.base, t.field, !r && P.singleLine, r && t.textarea, r && P.rows(i)),
|
|
164
163
|
children: /* @__PURE__ */ g(A, {
|
|
165
164
|
width: "60%",
|
|
166
165
|
lines: s
|
|
167
166
|
})
|
|
168
167
|
}),
|
|
169
168
|
n !== void 0 && /* @__PURE__ */ g("span", {
|
|
170
|
-
...l.props(
|
|
169
|
+
...l.props(t.description),
|
|
171
170
|
children: n
|
|
172
171
|
})
|
|
173
172
|
]
|
|
@@ -852,12 +851,12 @@ var we = /*#__PURE__*/ u.forwardRef(function(e, t) {
|
|
|
852
851
|
}));
|
|
853
852
|
});
|
|
854
853
|
// packages/feedback/src/toast.tsx
|
|
855
|
-
function Te({ closeButton: e = !0, closeButtonAriaLabel: t = "Dismiss notification", offset: n = i.xl, mobileOffset: r = i.lg, ...
|
|
854
|
+
function Te({ closeButton: e = !0, closeButtonAriaLabel: t = "Dismiss notification", offset: n = i.xl, mobileOffset: r = i.lg, ...o }) {
|
|
856
855
|
return /* @__PURE__ */ g(we, {
|
|
857
|
-
...
|
|
856
|
+
...o,
|
|
858
857
|
className: "x7kce61 xkwcdv0 x19hn9gq x350ok5 x1dknavn x1qgcmqu x19j7ixz xgam3oh x7s97pk",
|
|
859
858
|
style: {
|
|
860
|
-
zIndex:
|
|
859
|
+
zIndex: a.popup,
|
|
861
860
|
transitionProperty: "opacity, transform"
|
|
862
861
|
},
|
|
863
862
|
offset: n,
|
|
@@ -965,9 +964,9 @@ function $({ shouldEnter: e, presentation: t = "content", children: n }) {
|
|
|
965
964
|
});
|
|
966
965
|
}
|
|
967
966
|
function Oe({ label: e, placeholder: t, startedAt: n, presentation: r }) {
|
|
968
|
-
let [i,
|
|
967
|
+
let [i, a] = h(() => Date.now() - n >= Ee ? n : void 0), o = i === n, c = r === "image";
|
|
969
968
|
return p(() => {
|
|
970
|
-
let e = Math.max(0, Ee - (Date.now() - n)), t = setTimeout(() =>
|
|
969
|
+
let e = Math.max(0, Ee - (Date.now() - n)), t = setTimeout(() => a(n), e);
|
|
971
970
|
return () => clearTimeout(t);
|
|
972
971
|
}, [n]), /* @__PURE__ */ _(ee, { children: [/* @__PURE__ */ g("div", {
|
|
973
972
|
"aria-busy": !0,
|
|
@@ -980,12 +979,12 @@ function Oe({ label: e, placeholder: t, startedAt: n, presentation: r }) {
|
|
|
980
979
|
2: { className: "xeuugli x2lwn1j x78zum5 xdt5ytf x98rzlu xlshs6z x18usnwx" },
|
|
981
980
|
1: { className: "xeuugli x2lwn1j x78zum5 xdt5ytf x98rzlu xqcmdr3 x1qme5af x1c3o69q x18usnwx" },
|
|
982
981
|
3: { className: "xeuugli x2lwn1j x78zum5 xdt5ytf x98rzlu xlshs6z xqcmdr3 x1qme5af x1c3o69q x18usnwx" }
|
|
983
|
-
}[!(c ||
|
|
982
|
+
}[!(c || o) << 1 | !(c || !o)],
|
|
984
983
|
children: t
|
|
985
984
|
})
|
|
986
|
-
}),
|
|
985
|
+
}), o && /* @__PURE__ */ g("span", {
|
|
987
986
|
role: "status",
|
|
988
|
-
...l.props(
|
|
987
|
+
...l.props(s.hidden),
|
|
989
988
|
children: e
|
|
990
989
|
})] });
|
|
991
990
|
}
|
package/dist/tokens.js
CHANGED
|
@@ -1,3 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { a as l, c as u, d, i as f, l as p, n as m, o as h, r as g, s as _, t as v, u as y } from "./tokens.stylex-DTHHFbyl.js";
|
|
3
|
-
export { v as avatarColors, m as chartColors, g as colors, c as conditions, f as controls, i as darkAvatarColors, o as darkChartColors, n as darkColors, e as darkShadows, a as darkSyntaxColors, s as layers, t as loading, l as motion, h as pageGeometry, _ as radii, u as shadows, p as spacing, y as syntaxColors, r as tableGeometry, d as typography };
|
|
1
|
+
export { t as avatarColors, n as chartColors, r as colors, f as conditions, i as controls, p as darkAvatarColors, m as darkChartColors, h as darkColors, g as darkShadows, _ as darkSyntaxColors, v as layers, y as loading, a as motion, o as pageGeometry, s as radii, c as shadows, l as spacing, u as syntaxColors, b as tableGeometry, d as typography } from "./tokens.stylex-BoRZ3D8s.js";
|