@mechane-ai/elements 0.20.1 → 0.22.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 (41) hide show
  1. package/README.md +7 -4
  2. package/dist/ai.js +111 -103
  3. package/dist/{categorical-values-DG0kzYxN.js → categorical-values-B_Z-X-tI.js} +2 -2
  4. package/dist/{chart-frame-DxAZ0h_q.js → chart-frame-CT_mfkYD.js} +1 -1
  5. package/dist/{chart-input-Dru0GScv.js → chart-input-C78Vq8ON.js} +2 -2
  6. package/dist/charts/cartesian.js +6 -6
  7. package/dist/charts/distribution.js +2 -2
  8. package/dist/charts/graph.js +2 -2
  9. package/dist/charts/hierarchy.js +3 -3
  10. package/dist/charts/matrix.js +2 -2
  11. package/dist/charts/timeline.js +2 -2
  12. package/dist/charts.js +1 -1
  13. package/dist/{code-block-DlUwVaPP.js → code-block-C3wqGP_q.js} +1 -1
  14. package/dist/collections.js +183 -74
  15. package/dist/content/code.js +1 -1
  16. package/dist/content/diff.js +2 -2
  17. package/dist/content/link.js +1 -1
  18. package/dist/content/markdown.js +8 -8
  19. package/dist/content/tree.js +2 -2
  20. package/dist/{content-link-BIMrgXbz.js → content-link-Dc-pl2ee.js} +1 -1
  21. package/dist/content.js +3 -3
  22. package/dist/elements.css +32 -10
  23. package/dist/feedback.js +1 -1
  24. package/dist/forms/dates.js +1 -1
  25. package/dist/forms.js +1 -1
  26. package/dist/foundations.css +7 -0
  27. package/dist/index.js +1 -1
  28. package/dist/layout.js +199 -192
  29. package/dist/navigation/commands.js +1 -1
  30. package/dist/packages/ai/src/conversation.d.ts +2 -1
  31. package/dist/packages/collections/src/index.d.ts +1 -0
  32. package/dist/packages/collections/src/metrics.d.ts +64 -5
  33. package/dist/packages/core/src/disclosure.d.ts +4 -2
  34. package/dist/packages/layout/src/index.d.ts +2 -0
  35. package/dist/packages/layout/src/report-section.d.ts +6 -0
  36. package/dist/{pierre-tree-D3XsgEH6.js → pierre-tree-Ba80jL2Z.js} +2 -2
  37. package/dist/{src-D4zPPr32.js → src-CWA2Tigm.js} +1 -1
  38. package/dist/{src-0mocxTaR.js → src-D3AGX7uZ.js} +1 -1
  39. package/dist/{src-qU5Z5LRH.js → src-F1zdubkU.js} +121 -55
  40. package/package.json +1 -1
  41. package/styles.css +1 -1
@@ -1,4 +1,4 @@
1
- import { l as e } from "../src-D4zPPr32.js";
1
+ import { l as e } from "../src-CWA2Tigm.js";
2
2
  import { s as t } from "../src-d7EAi61b.js";
3
3
  import { n } from "../navigation-D2_sGy3C.js";
4
4
  import "@stylexjs/stylex";
@@ -20,6 +20,7 @@ export type ConversationContentProps = {
20
20
  };
21
21
  export type ConversationItemProps = {
22
22
  readonly messageId: string;
23
+ readonly shouldRevealOnAppend?: boolean;
23
24
  readonly children: ReactNode;
24
25
  };
25
26
  export type ConversationJumpProps = {
@@ -35,7 +36,7 @@ export type ConversationLatestButtonProps = {
35
36
  declare function ConversationRoot({ children, initialPosition, shouldFollow, viewportRef, }: ConversationRootProps): ReactNode;
36
37
  declare function ConversationViewport({ label, children, scrollRestorationId }: ConversationViewportProps): ReactNode;
37
38
  declare function ConversationContent({ children, isStreaming }: ConversationContentProps): ReactNode;
38
- declare function ConversationItem({ messageId, children }: ConversationItemProps): ReactNode;
39
+ declare function ConversationItem({ messageId, shouldRevealOnAppend, children }: ConversationItemProps): ReactNode;
39
40
  declare function ConversationControls({ children }: ConversationControlsProps): ReactNode;
40
41
  declare function ConversationJumpToLatest({ label }: ConversationJumpProps): ReactNode;
41
42
  declare function ConversationLatestButton({ label, onActivate }: ConversationLatestButtonProps): ReactNode;
@@ -8,6 +8,7 @@ export type { InspectorProps } from './inspector.tsx';
8
8
  export { Inspector, Details } from './inspector.tsx';
9
9
  export { ListFooter } from './list-footer.tsx';
10
10
  export { MetricGrid, Metric } from './metrics.tsx';
11
+ export type { MetricGridProps, MetricProps } from './metrics.tsx';
11
12
  export type { TimestampProps } from './timestamp.tsx';
12
13
  export { Timestamp } from './timestamp.tsx';
13
14
  export { Timeline } from './timeline.tsx';
@@ -1,12 +1,71 @@
1
- import type { ComponentProps, ReactNode } from 'react';
1
+ import * as stylex from '@stylexjs/stylex';
2
+ import type { ComponentProps, ReactElement, ReactNode } from 'react';
2
3
  type MetricLayout = 'inline' | 'columns';
3
- type MetricGridProps = ComponentProps<'dl'> & {
4
+ declare const variants: {
5
+ inline: {
6
+ metric: undefined;
7
+ label: undefined;
8
+ value: undefined;
9
+ detail: Readonly<{
10
+ readonly flexBasis: stylex.StyleXClassNameFor<"flexBasis", "100%">;
11
+ }>;
12
+ valueWidth: string;
13
+ };
14
+ statistic: {
15
+ metric: Readonly<{
16
+ readonly flexDirection: stylex.StyleXClassNameFor<"flexDirection", "column">;
17
+ readonly alignItems: stylex.StyleXClassNameFor<"alignItems", "flex-start">;
18
+ }>;
19
+ label: Readonly<{
20
+ readonly order: stylex.StyleXClassNameFor<"order", 0>;
21
+ }>;
22
+ value: Readonly<{
23
+ readonly fontSize: stylex.StyleXClassNameFor<"fontSize", string>;
24
+ readonly lineHeight: stylex.StyleXClassNameFor<"lineHeight", string>;
25
+ readonly fontWeight: stylex.StyleXClassNameFor<"fontWeight", string>;
26
+ readonly letterSpacing: stylex.StyleXClassNameFor<"letterSpacing", string>;
27
+ }>;
28
+ detail: undefined;
29
+ valueWidth: string;
30
+ };
31
+ headline: {
32
+ metric: Readonly<{
33
+ readonly columnGap: stylex.StyleXClassNameFor<"columnGap", string>;
34
+ }>;
35
+ label: Readonly<{
36
+ readonly order: stylex.StyleXClassNameFor<"order", 0>;
37
+ readonly flexBasis: stylex.StyleXClassNameFor<"flexBasis", "100%">;
38
+ readonly fontSize: stylex.StyleXClassNameFor<"fontSize", string>;
39
+ }>;
40
+ value: Readonly<{
41
+ readonly fontSize: stylex.StyleXClassNameFor<"fontSize", string>;
42
+ readonly lineHeight: stylex.StyleXClassNameFor<"lineHeight", string>;
43
+ readonly fontWeight: stylex.StyleXClassNameFor<"fontWeight", string>;
44
+ readonly letterSpacing: stylex.StyleXClassNameFor<"letterSpacing", string>;
45
+ }>;
46
+ detail: undefined;
47
+ valueWidth: string;
48
+ };
49
+ };
50
+ type MetricVariant = keyof typeof variants;
51
+ export type MetricGridProps = ComponentProps<'dl'> & {
4
52
  readonly layout?: MetricLayout;
5
53
  };
6
- type MetricProps = ComponentProps<'div'> & {
54
+ export type MetricProps = Omit<ComponentProps<'div'>, 'children' | 'dangerouslySetInnerHTML'> & {
7
55
  readonly label: string;
56
+ readonly variant?: MetricVariant;
57
+ readonly trend?: ReactElement;
58
+ } & ({
59
+ readonly isLoading?: false;
8
60
  readonly value: string;
9
- };
61
+ readonly detail?: string;
62
+ readonly hasDetail?: never;
63
+ } | {
64
+ readonly isLoading: true;
65
+ readonly value?: never;
66
+ readonly detail?: never;
67
+ readonly hasDetail?: boolean;
68
+ });
10
69
  export declare function MetricGrid({ layout, ...props }: MetricGridProps): ReactNode;
11
- export declare function Metric({ label, value, ...props }: MetricProps): ReactNode;
70
+ export declare function Metric({ label, value, detail, isLoading, hasDetail, variant, trend, ...props }: MetricProps): ReactNode;
12
71
  export {};
@@ -8,7 +8,9 @@ type AccordionHeaderProps = ComponentProps<typeof BaseAccordion.Header>;
8
8
  type AccordionTriggerProps = ComponentProps<typeof BaseAccordion.Trigger>;
9
9
  type AccordionPanelProps = ComponentProps<typeof BaseAccordion.Panel>;
10
10
  type CollapsibleRootProps = Omit<BaseCollapsible.Root.Props, 'open' | 'defaultOpen' | 'onOpenChange'> & OpenStateProperties<NonNullable<BaseCollapsible.Root.Props['onOpenChange']>>;
11
- type CollapsibleTriggerProps = ComponentProps<typeof BaseCollapsible.Trigger>;
11
+ type CollapsibleTriggerProps = ComponentProps<typeof BaseCollapsible.Trigger> & {
12
+ readonly variant?: 'default' | 'inline';
13
+ };
12
14
  type CollapsiblePanelProps = ComponentProps<typeof BaseCollapsible.Panel>;
13
15
  declare function AccordionRoot<Value = string>({ className, style, ...props }: AccordionRootProps<Value>): ReactNode;
14
16
  declare function AccordionItem({ className, style, ...props }: AccordionItemProps): ReactNode;
@@ -16,7 +18,7 @@ declare function AccordionHeader({ className, style, ...props }: AccordionHeader
16
18
  declare function AccordionTrigger({ className, style, children, ...props }: AccordionTriggerProps): ReactNode;
17
19
  declare function AccordionPanel({ className, style, ...props }: AccordionPanelProps): ReactNode;
18
20
  declare function CollapsibleRoot({ className, style, ...props }: CollapsibleRootProps): ReactNode;
19
- declare function CollapsibleTrigger({ className, style, children, ...props }: CollapsibleTriggerProps): ReactNode;
21
+ declare function CollapsibleTrigger({ className, style, children, variant, ...props }: CollapsibleTriggerProps): ReactNode;
20
22
  declare function CollapsiblePanel({ className, style, ...props }: CollapsiblePanelProps): ReactNode;
21
23
  export declare const Accordion: {
22
24
  Root: typeof AccordionRoot;
@@ -8,6 +8,8 @@ export { ViewStack } from './view-stack.tsx';
8
8
  export { PageToolbar, ToolbarAction } from './page-toolbar.tsx';
9
9
  export type { PageContentProps } from './page-content.tsx';
10
10
  export { PageContent } from './page-content.tsx';
11
+ export type { ReportSectionProps } from './report-section.tsx';
12
+ export { ReportSection } from './report-section.tsx';
11
13
  export type { RecordPageRootProps, RecordPageToolbarProps, RecordPageBodyProps, RecordPageHeaderProps, RecordPageContentProps, RecordPageAsideProps, } from './record-page.tsx';
12
14
  export { RecordPage } from './record-page.tsx';
13
15
  export type { ResizableRootProps, ResizablePaneProps, ResizableHandleProps } from './resizable.tsx';
@@ -0,0 +1,6 @@
1
+ import type { ReactElement, ReactNode } from 'react';
2
+ export type ReportSectionProps = {
3
+ readonly summary: ReactElement;
4
+ readonly children: ReactElement;
5
+ };
6
+ export declare function ReportSection({ summary, children }: ReportSectionProps): ReactNode;
@@ -1,5 +1,5 @@
1
- import { c as e } from "./src-qU5Z5LRH.js";
2
- import { l as t } from "./src-D4zPPr32.js";
1
+ import { c as e } from "./src-F1zdubkU.js";
2
+ import { l as t } from "./src-CWA2Tigm.js";
3
3
  import { t as n } from "./constants.stylex-BILvnwUk.js";
4
4
  import { r } from "./pierre-theme-CLgk9v3e.js";
5
5
  import * as i from "@stylexjs/stylex";
@@ -1,4 +1,4 @@
1
- import { O as e, b as t, i as n, s as r, v as i, x as a } from "./src-qU5Z5LRH.js";
1
+ import { O as e, b as t, i as n, s as r, v as i, x as a } from "./src-F1zdubkU.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";
@@ -1,4 +1,4 @@
1
- import { O as e, i as t, s as n } from "./src-qU5Z5LRH.js";
1
+ import { O as e, i as t, s as n } from "./src-F1zdubkU.js";
2
2
  import { i as r, l as i } from "./tokens.stylex-DTHHFbyl.js";
3
3
  import { t as a } from "./accessibility-C-aIZ1Yx.js";
4
4
  import { c as o, s } from "./constants.stylex-BILvnwUk.js";
@@ -316,7 +316,7 @@ function ee({ children: e, ...t }) {
316
316
  })
317
317
  });
318
318
  }
319
- function A({ tone: t = "neutral", isPending: r = !1, pendingLabel: i, children: o, className: c, style: l, xstyle: u, disabled: f = !1, ...p }) {
319
+ function te({ tone: t = "neutral", isPending: r = !1, pendingLabel: i, children: o, className: c, style: l, xstyle: u, disabled: f = !1, ...p }) {
320
320
  let m = s(), h = a.props(w.text, E[t], u);
321
321
  return /* @__PURE__ */ d(n, {
322
322
  ...p,
@@ -337,10 +337,10 @@ function A({ tone: t = "neutral", isPending: r = !1, pendingLabel: i, children:
337
337
  })
338
338
  });
339
339
  }
340
- function j({ xstyle: e, ...t }) {
340
+ function A({ xstyle: e, ...t }) {
341
341
  return /* @__PURE__ */ d("a", { ...r(a.props(w.link, e), t) });
342
342
  }
343
- function M({ children: e, xstyle: t, render: n, ref: o, ...s }) {
343
+ function j({ children: e, xstyle: t, render: n, ref: o, ...s }) {
344
344
  return i({
345
345
  defaultTagName: "a",
346
346
  render: n,
@@ -352,7 +352,7 @@ function M({ children: e, xstyle: t, render: n, ref: o, ...s }) {
352
352
  });
353
353
  }
354
354
  // packages/core/src/avatar.tsx
355
- var N = {
355
+ var M = {
356
356
  avatar: {
357
357
  kB7OPa: "x9f619",
358
358
  k1xSpc: "x3nfvp2",
@@ -387,16 +387,16 @@ var N = {
387
387
  kZKoxP: "x1vqgdyp",
388
388
  $$css: !0
389
389
  }
390
- }, P = {
391
- sm: N.small,
392
- md: N.medium,
393
- lg: N.large
390
+ }, N = {
391
+ sm: M.small,
392
+ md: M.medium,
393
+ lg: M.large
394
394
  };
395
- function te({ label: e, fallback: t, src: n, size: r = "md" }) {
395
+ function P({ label: e, fallback: t, src: n, size: r = "md" }) {
396
396
  return /* @__PURE__ */ f(p.Root, {
397
397
  role: "img",
398
398
  "aria-label": e,
399
- ...a.props(N.avatar, P[r]),
399
+ ...a.props(M.avatar, N[r]),
400
400
  children: [n !== void 0 && /* @__PURE__ */ d(p.Image, {
401
401
  src: n,
402
402
  alt: "",
@@ -1401,7 +1401,69 @@ function X({ value: i, label: s, display: u = "value", children: p, className: h
1401
1401
  });
1402
1402
  }
1403
1403
  // packages/core/src/disclosure.tsx
1404
- function Z({ className: t, style: n, ...r }) {
1404
+ var Z = {
1405
+ trigger: {
1406
+ k1xSpc: "x78zum5",
1407
+ kGNEyG: "x6s0dn4",
1408
+ kjj79g: "x1qughib",
1409
+ kOIVth: "x1hnptsi",
1410
+ kzqmXN: "xh8yej3",
1411
+ kAzted: "x17tes2r x17oiadl",
1412
+ kg3NbH: "xnjsko4",
1413
+ k8WAf4: "xn9t2bk",
1414
+ kMzoRj: "xc342km",
1415
+ kWkggS: "xjbqb8w x18vtl6o xyg3wme",
1416
+ kMv6JI: "xjb2p0i",
1417
+ kGuDYH: "x1qlqyl8",
1418
+ kLWn49: "x15bjb6t",
1419
+ k63SB2: "xk4h15q",
1420
+ kMwMTN: "x1heor9g",
1421
+ k9WMMc: "x1yc453h",
1422
+ kHjlTd: "xj0a0fe",
1423
+ kkrTdU: "x1ypdohk",
1424
+ kk7Lky: "xwj21n9",
1425
+ kXyCmE: "x1m8qfh3",
1426
+ kPJHz1: "x13qnu6",
1427
+ k7shQP: "x9v5kkp",
1428
+ kZs9gx: "x19rmrnh",
1429
+ kiEn40: "x7s97pk",
1430
+ $$css: !0
1431
+ },
1432
+ inline: {
1433
+ kzqmXN: "xeq5yr9",
1434
+ k8WAf4: "xt970qd",
1435
+ ks0D6T: "x193iq5w",
1436
+ kjj79g: "x1nhvcw1",
1437
+ kOIVth: "xunmzkg",
1438
+ kMwMTN: "x153jb6y",
1439
+ k63SB2: "xj57cvi",
1440
+ k4DVmp: "xy7uoan",
1441
+ $$css: !0
1442
+ },
1443
+ inlineIcon: {
1444
+ kzqmXN: "x6jxa94",
1445
+ kZKoxP: "x1v9usgg",
1446
+ k1ekBW: "x11xpdln",
1447
+ kIyJzY: "xtitasy xsn8rav",
1448
+ kAMwcw: "x1faw7qm",
1449
+ $$css: !0
1450
+ },
1451
+ icon: {
1452
+ kmuXW: "x2lah0s",
1453
+ kzqmXN: "xtwnzbg",
1454
+ kZKoxP: "x18utl2x",
1455
+ kMwMTN: "x153jb6y",
1456
+ k3aq6I: "x9tu13d x1felao3",
1457
+ $$css: !0
1458
+ }
1459
+ }, re = {
1460
+ default: null,
1461
+ inline: Z.inline
1462
+ }, ie = {
1463
+ default: null,
1464
+ inline: Z.inlineIcon
1465
+ };
1466
+ function ae({ className: t, style: n, ...r }) {
1405
1467
  return /* @__PURE__ */ d(x.Root, {
1406
1468
  ...r,
1407
1469
  ...e({
@@ -1411,7 +1473,7 @@ function Z({ className: t, style: n, ...r }) {
1411
1473
  })
1412
1474
  });
1413
1475
  }
1414
- function re({ className: t, style: n, ...r }) {
1476
+ function oe({ className: t, style: n, ...r }) {
1415
1477
  return /* @__PURE__ */ d(x.Item, {
1416
1478
  ...r,
1417
1479
  ...e({
@@ -1421,7 +1483,7 @@ function re({ className: t, style: n, ...r }) {
1421
1483
  })
1422
1484
  });
1423
1485
  }
1424
- function ie({ className: t, style: n, ...r }) {
1486
+ function se({ className: t, style: n, ...r }) {
1425
1487
  return /* @__PURE__ */ d(x.Header, {
1426
1488
  ...r,
1427
1489
  ...e({
@@ -1431,7 +1493,7 @@ function ie({ className: t, style: n, ...r }) {
1431
1493
  })
1432
1494
  });
1433
1495
  }
1434
- function ae({ className: t, style: n, children: r, ...i }) {
1496
+ function ce({ className: t, style: n, children: r, ...i }) {
1435
1497
  return /* @__PURE__ */ f(x.Trigger, {
1436
1498
  ...i,
1437
1499
  ...e({
@@ -1445,7 +1507,7 @@ function ae({ className: t, style: n, children: r, ...i }) {
1445
1507
  })]
1446
1508
  });
1447
1509
  }
1448
- function oe({ className: t, style: n, ...r }) {
1510
+ function le({ className: t, style: n, ...r }) {
1449
1511
  return /* @__PURE__ */ d(x.Panel, {
1450
1512
  ...r,
1451
1513
  ...e({
@@ -1455,7 +1517,7 @@ function oe({ className: t, style: n, ...r }) {
1455
1517
  })
1456
1518
  });
1457
1519
  }
1458
- function se({ className: t, style: n, ...r }) {
1520
+ function ue({ className: t, style: n, ...r }) {
1459
1521
  return /* @__PURE__ */ d(S.Root, {
1460
1522
  ...r,
1461
1523
  ...e({
@@ -1465,21 +1527,25 @@ function se({ className: t, style: n, ...r }) {
1465
1527
  })
1466
1528
  });
1467
1529
  }
1468
- function ce({ className: t, style: n, children: r, ...i }) {
1530
+ var de = {
1531
+ "x-default-marker": "x-default-marker",
1532
+ $$css: !0
1533
+ };
1534
+ function fe({ className: t, style: n, children: r, variant: i = "default", ...o }) {
1469
1535
  return /* @__PURE__ */ f(S.Trigger, {
1470
- ...i,
1536
+ ...o,
1471
1537
  ...e({
1472
1538
  className: t,
1473
1539
  style: n,
1474
- styles: { className: "x78zum5 x6s0dn4 x1qughib x1hnptsi xh8yej3 x17tes2r x17oiadl xnjsko4 xn9t2bk xc342km xjbqb8w x18vtl6o xyg3wme xjb2p0i x1qlqyl8 x15bjb6t xk4h15q x1heor9g x1yc453h xj0a0fe x1ypdohk xwj21n9 x1m8qfh3 x13qnu6 x9v5kkp x19rmrnh x7s97pk x-default-marker" }
1540
+ styles: a.props(Z.trigger, re[i], de)
1475
1541
  }),
1476
1542
  children: [r, /* @__PURE__ */ d(h, {
1477
1543
  "aria-hidden": !0,
1478
- className: "x2lah0s xtwnzbg x18utl2x x153jb6y x9tu13d x1felao3"
1544
+ ...a.props(Z.icon, ie[i])
1479
1545
  })]
1480
1546
  });
1481
1547
  }
1482
- function le({ className: t, style: n, ...r }) {
1548
+ function pe({ className: t, style: n, ...r }) {
1483
1549
  return /* @__PURE__ */ d(S.Panel, {
1484
1550
  ...r,
1485
1551
  ...e({
@@ -1489,17 +1555,17 @@ function le({ className: t, style: n, ...r }) {
1489
1555
  })
1490
1556
  });
1491
1557
  }
1492
- var ue = {
1493
- Root: Z,
1494
- Item: re,
1495
- Header: ie,
1496
- Trigger: ae,
1497
- Panel: oe
1498
- }, de = {
1499
- Root: se,
1558
+ var me = {
1559
+ Root: ae,
1560
+ Item: oe,
1561
+ Header: se,
1500
1562
  Trigger: ce,
1501
1563
  Panel: le
1502
- }, fe = { link: {
1564
+ }, he = {
1565
+ Root: ue,
1566
+ Trigger: fe,
1567
+ Panel: pe
1568
+ }, ge = { link: {
1503
1569
  k1xSpc: "x1lliihq",
1504
1570
  kB7OPa: "x9f619",
1505
1571
  k7Eaqz: "xeuugli",
@@ -1522,31 +1588,31 @@ var ue = {
1522
1588
  kiEn40: "x8fq8g9",
1523
1589
  $$css: !0
1524
1590
  } };
1525
- function pe({ isPadded: e = !0, ...t }) {
1591
+ function _e({ isPadded: e = !0, ...t }) {
1526
1592
  return /* @__PURE__ */ d("section", { ...r({
1527
1593
  0: { className: "xmkeg23 x1y0btm7 x1ey3b81 x1ok0vyi xpvm0e4 xb3r6kr x1hz01jw xj57cvi xtqrqnz x1778rvt xbixft xvmahel" },
1528
1594
  1: { className: "xmkeg23 x1y0btm7 x1ey3b81 x1ok0vyi xpvm0e4 xb3r6kr x1hz01jw xj57cvi xtqrqnz x1778rvt xbixft xvmahel x1jvlu93" }
1529
1595
  }[!!e | 0], t) });
1530
1596
  }
1531
- function me({ xstyle: e, ...t }) {
1532
- return /* @__PURE__ */ d("a", { ...r(a.props(fe.link, e), t) });
1597
+ function ve({ xstyle: e, ...t }) {
1598
+ return /* @__PURE__ */ d("a", { ...r(a.props(ge.link, e), t) });
1533
1599
  }
1534
- function he({ shouldSpaceBetween: e = !1, ...t }) {
1600
+ function ye({ shouldSpaceBetween: e = !1, ...t }) {
1535
1601
  return /* @__PURE__ */ d("div", { ...r({
1536
1602
  0: { className: "x78zum5 x6s0dn4 x1hnptsi x1a02dak xeuugli" },
1537
1603
  1: { className: "x78zum5 x6s0dn4 x1hnptsi x1a02dak xeuugli x1qughib" }
1538
1604
  }[!!e | 0], t) });
1539
1605
  }
1540
- function ge({ isCompact: e = !1, ...t }) {
1606
+ function be({ isCompact: e = !1, ...t }) {
1541
1607
  return /* @__PURE__ */ d("div", { ...r({
1542
1608
  0: { className: "x78zum5 xdt5ytf x1j825kq xeuugli" },
1543
1609
  1: { className: "x78zum5 xdt5ytf xeuugli x1hnptsi" }
1544
1610
  }[!!e | 0], t) });
1545
1611
  }
1546
- function _e(e) {
1612
+ function xe(e) {
1547
1613
  return /* @__PURE__ */ d("div", { ...r({ className: "xrvj5dj xhuszhj x1m6b44x xeuugli" }, e) });
1548
1614
  }
1549
- function ve(e) {
1615
+ function Se(e) {
1550
1616
  return /* @__PURE__ */ d("hr", { ...r({ className: "xc342km x178xt8z x1y0btm7 x1ey3b81 x1ghz6dp" }, e) });
1551
1617
  }
1552
1618
  // packages/core/src/text.tsx
@@ -1650,54 +1716,54 @@ var Q = {
1650
1716
  kMwMTN: "xr5kp14",
1651
1717
  $$css: !0
1652
1718
  }
1653
- }, ye = {
1719
+ }, Ce = {
1654
1720
  body: Q.body,
1655
1721
  caption: Q.caption,
1656
1722
  mono: Q.mono,
1657
1723
  prose: Q.prose
1658
- }, be = {
1724
+ }, we = {
1659
1725
  ink: Q.ink,
1660
1726
  muted: Q.muted
1661
- }, $ = {
1727
+ }, Te = {
1662
1728
  neutral: Q.neutral,
1663
1729
  positive: Q.positive,
1664
1730
  warning: Q.warning,
1665
1731
  negative: Q.negative
1666
- }, xe = {
1732
+ }, Ee = {
1667
1733
  neutral: Q.neutralIcon,
1668
1734
  positive: Q.positiveIcon,
1669
1735
  warning: Q.warningIcon,
1670
1736
  negative: Q.negativeIcon
1671
- }, Se = {
1737
+ }, De = {
1672
1738
  neutral: g,
1673
1739
  positive: _,
1674
1740
  warning: y,
1675
1741
  negative: v
1676
1742
  };
1677
- function Ce({ variant: e = "body", tone: t = "ink", xstyle: n, ...i }) {
1678
- return /* @__PURE__ */ d("span", { ...r(a.props(Q.text, ye[e], be[t], n), i) });
1743
+ function $({ variant: e = "body", tone: t = "ink", xstyle: n, ...i }) {
1744
+ return /* @__PURE__ */ d("span", { ...r(a.props(Q.text, Ce[e], we[t], n), i) });
1679
1745
  }
1680
- function we({ isCompact: e = !1, ...t }) {
1746
+ function Oe({ isCompact: e = !1, ...t }) {
1681
1747
  return /* @__PURE__ */ d("h1", { ...r({
1682
1748
  0: { className: "x1ghz6dp x1hz01jw xvmahel xc0f4dz xvukjed xzju6ct x1vxm5eg x1b5ytql x1wjjqco xbixft xj0a0fe" },
1683
1749
  1: { className: "x1ghz6dp x1hz01jw xvmahel x1i2cqwi x4fansv x1b5ytql xbixft xj0a0fe" }
1684
1750
  }[!!e | 0], t) });
1685
1751
  }
1686
- function Te(e) {
1752
+ function ke(e) {
1687
1753
  return /* @__PURE__ */ d("h2", { ...r({ className: "x1ghz6dp x1hz01jw xvmahel x1i2cqwi x4fansv x1b5ytql xbixft xj0a0fe" }, e) });
1688
1754
  }
1689
- function Ee(e) {
1755
+ function Ae(e) {
1690
1756
  return /* @__PURE__ */ d("p", { ...r({ className: "x1ghz6dp x1hz01jw xj57cvi xvmahel xj0a0fe xtqrqnz x1778rvt x153jb6y" }, e) });
1691
1757
  }
1692
- function De(e) {
1758
+ function je(e) {
1693
1759
  return /* @__PURE__ */ d("span", { ...r({ className: "x1ghz6dp xj57cvi xvmahel xiard35 xy8obcc x1778rvt xj0a0fe x153jb6y" }, e) });
1694
1760
  }
1695
- function Oe(e) {
1761
+ function Me(e) {
1696
1762
  return /* @__PURE__ */ d("pre", { ...r({ className: "x1ghz6dp x1hz01jw xj57cvi xvmahel x1ewvobj x126k92a xj0a0fe x12myhf4 x1ytb0s6 xbixft" }, e) });
1697
1763
  }
1698
- function ke({ children: e, tone: t = "neutral", ...n }) {
1764
+ function Ne({ children: e, tone: t = "neutral", ...n }) {
1699
1765
  return /* @__PURE__ */ f("span", {
1700
- ...r(a.props(Q.badge, $[t]), n),
1766
+ ...r(a.props(Q.badge, Te[t]), n),
1701
1767
  children: [/* @__PURE__ */ d(g, {
1702
1768
  size: 5,
1703
1769
  fill: "currentColor",
@@ -1709,18 +1775,18 @@ function ke({ children: e, tone: t = "neutral", ...n }) {
1709
1775
  })]
1710
1776
  });
1711
1777
  }
1712
- function Ae({ children: e, tone: t = "neutral", ...n }) {
1713
- let i = Se[t];
1778
+ function Pe({ children: e, tone: t = "neutral", ...n }) {
1779
+ let i = De[t];
1714
1780
  return /* @__PURE__ */ f("span", {
1715
1781
  ...r({ className: "x3nfvp2 x6s0dn4 xbgj81g xbixft x1hz01jw xvmahel xtqrqnz x1778rvt xj57cvi x193iq5w" }, n),
1716
1782
  children: [/* @__PURE__ */ d(i, {
1717
1783
  size: 14,
1718
1784
  "aria-hidden": !0,
1719
- ...a.props(Q.statusIcon, xe[t])
1785
+ ...a.props(Q.statusIcon, Ee[t])
1720
1786
  }), /* @__PURE__ */ d("span", {
1721
1787
  className: "xeuugli xj0a0fe",
1722
1788
  children: e
1723
1789
  })]
1724
1790
  });
1725
1791
  }
1726
- export { k as C, j as D, A as E, C as O, te as S, M as T, X as _, Oe as a, z as b, Ce as c, pe as d, he as f, de as g, ue as h, Ee as i, _e as l, me as m, we as n, Ae as o, ge as p, De as r, Te as s, ke as t, ve as u, W as v, ee as w, ne as x, U as y };
1792
+ export { k as C, A as D, te as E, C as O, P as S, j as T, X as _, Me as a, z as b, $ as c, _e as d, ye as f, he as g, me as h, Ae as i, xe as l, ve as m, Oe as n, Pe as o, be as p, je as r, ke as s, Ne as t, Se as u, W as v, ee as w, ne as x, U as y };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mechane-ai/elements",
3
- "version": "0.20.1",
3
+ "version": "0.22.0",
4
4
  "description": "Elements by Mechane — React components for applications, AI interfaces, and analytical graphics",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
package/styles.css CHANGED
@@ -1,2 +1,2 @@
1
- @layer reset;
1
+ @import './dist/foundations.css';
2
2
  @import './dist/elements.css';