@mechane-ai/elements 0.22.1 → 0.24.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 +8 -6
- package/dist/ai.js +4 -4
- package/dist/{categorical-values-B_Z-X-tI.js → categorical-values-CPRt9uzI.js} +2 -2
- package/dist/{chart-frame-CT_mfkYD.js → chart-frame-CNr8M_b2.js} +2 -2
- package/dist/{chart-input-C78Vq8ON.js → chart-input-DDAjzy-O.js} +2 -2
- package/dist/charts/cartesian.js +765 -586
- package/dist/charts/distribution.js +2 -2
- package/dist/charts/graph.js +2 -2
- package/dist/charts/hierarchy.js +3 -3
- package/dist/charts/matrix.js +2 -2
- package/dist/charts/timeline.js +2 -2
- package/dist/charts.js +1 -1
- package/dist/{code-block-C3wqGP_q.js → code-block-DENC5fD_.js} +1 -1
- package/dist/collections.js +3 -3
- package/dist/content/code.js +1 -1
- package/dist/content/diff.js +2 -2
- 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-Dc-pl2ee.js → content-link-CGIua9If.js} +1 -1
- package/dist/content.js +3 -3
- package/dist/elements.css +38 -8
- package/dist/feedback.js +1 -1
- package/dist/forms/dates.js +1 -1
- package/dist/forms.js +1 -1
- package/dist/index.js +1 -1
- package/dist/layout.js +298 -233
- package/dist/navigation/commands.js +1 -1
- package/dist/packages/charts/src/cartesian/bar-chart.d.ts +3 -1
- package/dist/packages/charts/src/cartesian/composition-bars.d.ts +2 -1
- package/dist/packages/charts/src/cartesian/time-series.d.ts +3 -1
- package/dist/packages/charts/src/chart-data.d.ts +5 -0
- package/dist/packages/charts/src/chart-frame.d.ts +1 -1
- package/dist/packages/charts/src/chart-inspection.d.ts +24 -0
- package/dist/packages/charts/src/index.d.ts +1 -0
- package/dist/packages/core/src/avatar.d.ts +3 -1
- package/dist/packages/layout/src/app-shell.d.ts +2 -1
- package/dist/packages/layout/src/index.d.ts +2 -0
- package/dist/packages/layout/src/navigation-rail-menu.d.ts +7 -0
- package/dist/packages/layout/src/navigation-rail.d.ts +1 -1
- package/dist/{pierre-tree-Ba80jL2Z.js → pierre-tree-C3nKYyoN.js} +2 -2
- package/dist/{src-CWA2Tigm.js → src-CQOgWIzP.js} +1 -1
- package/dist/{src-D3AGX7uZ.js → src-DHYcohZP.js} +1 -1
- package/dist/{src-F1zdubkU.js → src-DLReNPV9.js} +70 -62
- package/package.json +1 -1
|
@@ -15,6 +15,8 @@ export type BarChartProps = {
|
|
|
15
15
|
readonly mode?: 'grouped' | 'stacked' | undefined;
|
|
16
16
|
readonly composition?: BarComposition | undefined;
|
|
17
17
|
readonly formatValue: (value: number) => string;
|
|
18
|
+
readonly formatTick?: ((value: number) => string) | undefined;
|
|
19
|
+
readonly highlightedSeriesId?: string | undefined;
|
|
18
20
|
readonly selection?: ChartSelection | undefined;
|
|
19
21
|
readonly height?: number | undefined;
|
|
20
22
|
};
|
|
@@ -23,4 +25,4 @@ export type BarChartPlaceholderProps = Pick<BarChartProps, 'description' | 'heig
|
|
|
23
25
|
readonly series?: ReadonlyArray<Pick<BarSeries, 'id' | 'label' | 'tone'>> | undefined;
|
|
24
26
|
};
|
|
25
27
|
export declare function BarChartPlaceholder({ title, description, series, height, }: BarChartPlaceholderProps): ReactNode;
|
|
26
|
-
export declare function BarChart({ title, description, categories, series, domain, mode, formatValue, selection, height, composition, }: BarChartProps): ReactNode;
|
|
28
|
+
export declare function BarChart({ title, description, categories, series, domain, mode, formatValue, formatTick, highlightedSeriesId, selection, height, composition, }: BarChartProps): ReactNode;
|
|
@@ -9,6 +9,7 @@ type CompositionBarsProps = {
|
|
|
9
9
|
readonly width: number;
|
|
10
10
|
readonly y: (value: number) => number;
|
|
11
11
|
readonly isHighlighted: boolean;
|
|
12
|
+
readonly highlightedSeriesId?: string | undefined;
|
|
12
13
|
};
|
|
13
|
-
export declare function CompositionBars({ bucket, series, focusedSeries, index, x, width, y, isHighlighted, }: CompositionBarsProps): ReactNode;
|
|
14
|
+
export declare function CompositionBars({ bucket, series, focusedSeries, index, x, width, y, isHighlighted, highlightedSeriesId, }: CompositionBarsProps): ReactNode;
|
|
14
15
|
export {};
|
|
@@ -7,6 +7,7 @@ export type TimeSeriesChartProps = {
|
|
|
7
7
|
readonly timestampUnit: 'seconds' | 'milliseconds';
|
|
8
8
|
readonly formatTimestamp: (timestamp: number) => string;
|
|
9
9
|
readonly formatValue: (value: number) => string;
|
|
10
|
+
readonly formatTick?: ((value: number) => string) | undefined;
|
|
10
11
|
readonly markers?: ReadonlyArray<TimeSeriesMarker> | undefined;
|
|
11
12
|
readonly height?: number | undefined;
|
|
12
13
|
readonly actions?: ReactNode;
|
|
@@ -14,13 +15,14 @@ export type TimeSeriesChartProps = {
|
|
|
14
15
|
export type AreaChartProps = TimeSeriesChartProps & {
|
|
15
16
|
readonly isStacked?: boolean | undefined;
|
|
16
17
|
};
|
|
17
|
-
export type SmallMultiplesProps = Omit<TimeSeriesChartProps, 'series' | 'title' | 'description' | 'actions' | 'formatValue' | 'markers'> & {
|
|
18
|
+
export type SmallMultiplesProps = Omit<TimeSeriesChartProps, 'series' | 'title' | 'description' | 'actions' | 'formatValue' | 'formatTick' | 'markers'> & {
|
|
18
19
|
readonly charts: ReadonlyArray<{
|
|
19
20
|
readonly id: string;
|
|
20
21
|
readonly title: string;
|
|
21
22
|
readonly series: ReadonlyArray<TimeSeries>;
|
|
22
23
|
readonly description?: string | undefined;
|
|
23
24
|
readonly formatValue: (value: number) => string;
|
|
25
|
+
readonly formatTick?: ((value: number) => string) | undefined;
|
|
24
26
|
readonly markers?: ReadonlyArray<TimeSeriesMarker> | undefined;
|
|
25
27
|
}>;
|
|
26
28
|
};
|
|
@@ -5,7 +5,7 @@ export type ChartSelection = {
|
|
|
5
5
|
readonly onSelect: (id: string) => void;
|
|
6
6
|
};
|
|
7
7
|
export type ChartFrameProps = {
|
|
8
|
-
readonly title:
|
|
8
|
+
readonly title: ReactNode;
|
|
9
9
|
readonly description?: string | undefined;
|
|
10
10
|
readonly children: ReactNode;
|
|
11
11
|
readonly actions?: ReactNode;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { ChartLegendItem } from './chart-frame.tsx';
|
|
3
|
+
export type ChartInspectionRow = ChartLegendItem & {
|
|
4
|
+
readonly value: string;
|
|
5
|
+
};
|
|
6
|
+
type ChartInspectionProps = {
|
|
7
|
+
readonly id: string;
|
|
8
|
+
readonly label: string | undefined;
|
|
9
|
+
readonly summary?: string | undefined;
|
|
10
|
+
readonly legend: ReadonlyArray<ChartLegendItem>;
|
|
11
|
+
readonly layoutLegend?: ReadonlyArray<ChartLegendItem> | undefined;
|
|
12
|
+
readonly rows: ReadonlyArray<ChartInspectionRow>;
|
|
13
|
+
readonly x: number;
|
|
14
|
+
readonly width: number;
|
|
15
|
+
readonly offset?: number | undefined;
|
|
16
|
+
readonly source: 'pointer' | 'keyboard' | undefined;
|
|
17
|
+
readonly notes?: ReadonlyArray<string> | undefined;
|
|
18
|
+
};
|
|
19
|
+
export declare function ChartInspectionTitle({ title, detail, }: {
|
|
20
|
+
readonly title: string;
|
|
21
|
+
readonly detail: string | undefined;
|
|
22
|
+
}): ReactNode;
|
|
23
|
+
export declare function ChartInspection({ id, label, summary, legend, layoutLegend, rows, x, width, offset, source, notes, }: ChartInspectionProps): ReactNode;
|
|
24
|
+
export {};
|
|
@@ -2,3 +2,4 @@ export type { BreakdownItem } from './categorical-values.tsx';
|
|
|
2
2
|
export type { ChartSelection, ChartFrameProps, ChartLegendItem, ChartLegendProps } from './chart-frame.tsx';
|
|
3
3
|
export { ChartFrame, ChartLegend } from './chart-frame.tsx';
|
|
4
4
|
export type { ChartTone } from './chart-theme.ts';
|
|
5
|
+
export { chartToneColors } from './chart-theme.ts';
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
2
|
type AvatarSize = 'sm' | 'md' | 'lg';
|
|
3
|
+
type AvatarShape = 'rounded' | 'circle';
|
|
3
4
|
export type AvatarProps = {
|
|
4
5
|
readonly label: string;
|
|
5
6
|
readonly fallback: string;
|
|
6
7
|
readonly src?: string;
|
|
7
8
|
readonly size?: AvatarSize;
|
|
9
|
+
readonly shape?: AvatarShape;
|
|
8
10
|
};
|
|
9
|
-
export declare function Avatar({ label, fallback, src, size }: AvatarProps): ReactNode;
|
|
11
|
+
export declare function Avatar({ label, fallback, src, size, shape }: AvatarProps): ReactNode;
|
|
10
12
|
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
2
|
type AppShellProps = {
|
|
3
3
|
readonly rail?: ReactNode;
|
|
4
|
+
readonly railFooter?: ReactNode;
|
|
4
5
|
readonly sidebarHeader?: ReactNode;
|
|
5
6
|
readonly sidebar: ReactNode;
|
|
6
7
|
readonly footer?: ReactNode;
|
|
@@ -8,5 +9,5 @@ type AppShellProps = {
|
|
|
8
9
|
readonly mainId?: string;
|
|
9
10
|
readonly shouldFocus?: boolean;
|
|
10
11
|
};
|
|
11
|
-
export declare function AppShell({ rail, sidebarHeader, sidebar, footer, children, mainId, shouldFocus, }: AppShellProps): ReactNode;
|
|
12
|
+
export declare function AppShell({ rail, railFooter, sidebarHeader, sidebar, footer, children, mainId, shouldFocus, }: AppShellProps): ReactNode;
|
|
12
13
|
export {};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export { AppShell } from './app-shell.tsx';
|
|
2
2
|
export { NavigationRail } from './navigation-rail.tsx';
|
|
3
3
|
export type { NavigationRailLink, NavigationRailProps } from './navigation-rail.tsx';
|
|
4
|
+
export { NavigationRailMenu } from './navigation-rail-menu.tsx';
|
|
5
|
+
export type { NavigationRailMenuProps } from './navigation-rail-menu.tsx';
|
|
4
6
|
export { DetailPage } from './detail-page.tsx';
|
|
5
7
|
export { FocusPage } from './focus-page.tsx';
|
|
6
8
|
export { Workbench, WorkbenchScroll, WorkbenchFooter } from './workbench.tsx';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
export type NavigationRailMenuProps = {
|
|
3
|
+
readonly label: string;
|
|
4
|
+
readonly icon: ReactNode;
|
|
5
|
+
readonly children: ReactNode;
|
|
6
|
+
};
|
|
7
|
+
export declare function NavigationRailMenu({ label, icon, children }: NavigationRailMenuProps): ReactNode;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ComponentProps, MouseEventHandler, ReactNode } from 'react';
|
|
2
|
-
export declare const NavigationRailContext: import("react").Context<
|
|
2
|
+
export declare const NavigationRailContext: import("react").Context<"drawer" | "rail">;
|
|
3
3
|
export type NavigationRailLink = Omit<ComponentProps<'a'>, 'children' | 'href' | 'aria-label' | 'aria-current' | 'title'> & {
|
|
4
4
|
readonly label: string;
|
|
5
5
|
readonly icon: ReactNode;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as e } from "./src-
|
|
2
|
-
import { l as t } from "./src-
|
|
1
|
+
import { c as e } from "./src-DLReNPV9.js";
|
|
2
|
+
import { l as t } from "./src-CQOgWIzP.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-
|
|
1
|
+
import { O as e, b as t, i as n, s as r, v as i, x as a } from "./src-DLReNPV9.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-
|
|
1
|
+
import { O as e, i as t, s as n } from "./src-DLReNPV9.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";
|
|
@@ -311,12 +311,12 @@ function ee({ children: e, ...t }) {
|
|
|
311
311
|
isIconOnly: !0,
|
|
312
312
|
children: /* @__PURE__ */ d("span", {
|
|
313
313
|
"aria-hidden": !0,
|
|
314
|
-
className: "xtwnzbg x18utl2x x2lah0s x3nfvp2",
|
|
314
|
+
className: "xtwnzbg x18utl2x x2lah0s x3nfvp2 x6s0dn4 xl56j7k",
|
|
315
315
|
children: e
|
|
316
316
|
})
|
|
317
317
|
});
|
|
318
318
|
}
|
|
319
|
-
function
|
|
319
|
+
function A({ 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,22 +337,22 @@ function te({ tone: t = "neutral", isPending: r = !1, pendingLabel: i, children:
|
|
|
337
337
|
})
|
|
338
338
|
});
|
|
339
339
|
}
|
|
340
|
-
function
|
|
340
|
+
function j({ xstyle: e, ...t }) {
|
|
341
341
|
return /* @__PURE__ */ d("a", { ...r(a.props(w.link, e), t) });
|
|
342
342
|
}
|
|
343
|
-
function
|
|
343
|
+
function M({ children: e, xstyle: t, render: n, ref: o, ...s }) {
|
|
344
344
|
return i({
|
|
345
345
|
defaultTagName: "a",
|
|
346
346
|
render: n,
|
|
347
347
|
ref: o,
|
|
348
348
|
props: r(a.props(C.base, C.button, w.button, w.ghostNeutral, C.iconButton, t), s, { children: /* @__PURE__ */ d("span", {
|
|
349
|
-
className: "xtwnzbg x18utl2x x2lah0s x3nfvp2",
|
|
349
|
+
className: "xtwnzbg x18utl2x x2lah0s x3nfvp2 x6s0dn4 xl56j7k",
|
|
350
350
|
children: e
|
|
351
351
|
}) })
|
|
352
352
|
});
|
|
353
353
|
}
|
|
354
354
|
// packages/core/src/avatar.tsx
|
|
355
|
-
var
|
|
355
|
+
var N = {
|
|
356
356
|
avatar: {
|
|
357
357
|
kB7OPa: "x9f619",
|
|
358
358
|
k1xSpc: "x3nfvp2",
|
|
@@ -386,17 +386,25 @@ var M = {
|
|
|
386
386
|
kzqmXN: "x100vrsf",
|
|
387
387
|
kZKoxP: "x1vqgdyp",
|
|
388
388
|
$$css: !0
|
|
389
|
+
},
|
|
390
|
+
rounded: { $$css: !0 },
|
|
391
|
+
circle: {
|
|
392
|
+
kaIpWk: "x16rqkct",
|
|
393
|
+
$$css: !0
|
|
389
394
|
}
|
|
390
|
-
},
|
|
391
|
-
sm:
|
|
392
|
-
md:
|
|
393
|
-
lg:
|
|
395
|
+
}, P = {
|
|
396
|
+
sm: N.small,
|
|
397
|
+
md: N.medium,
|
|
398
|
+
lg: N.large
|
|
399
|
+
}, te = {
|
|
400
|
+
rounded: N.rounded,
|
|
401
|
+
circle: N.circle
|
|
394
402
|
};
|
|
395
|
-
function
|
|
403
|
+
function ne({ label: e, fallback: t, src: n, size: r = "md", shape: i = "rounded" }) {
|
|
396
404
|
return /* @__PURE__ */ f(p.Root, {
|
|
397
405
|
role: "img",
|
|
398
406
|
"aria-label": e,
|
|
399
|
-
...a.props(
|
|
407
|
+
...a.props(N.avatar, P[r], te[i]),
|
|
400
408
|
children: [n !== void 0 && /* @__PURE__ */ d(p.Image, {
|
|
401
409
|
src: n,
|
|
402
410
|
alt: "",
|
|
@@ -408,7 +416,7 @@ function P({ label: e, fallback: t, src: n, size: r = "md" }) {
|
|
|
408
416
|
});
|
|
409
417
|
}
|
|
410
418
|
// packages/core/src/agent-avatar-glyphs.tsx
|
|
411
|
-
var F = Object.freeze(/* @__PURE__ */ "spark.facet.orbit.loop.clover.petal.wheel.compass.grid.steps.chevron.wave.ripple.arch.bridge.peak.zigzag.helix.kite.cube.prism.frame.brackets.diamond.hexagon.signal.crest.bolt.link.split.aster.portal".split(".")),
|
|
419
|
+
var F = Object.freeze(/* @__PURE__ */ "spark.facet.orbit.loop.clover.petal.wheel.compass.grid.steps.chevron.wave.ripple.arch.bridge.peak.zigzag.helix.kite.cube.prism.frame.brackets.diamond.hexagon.signal.crest.bolt.link.split.aster.portal".split(".")), re = Object.freeze([
|
|
412
420
|
...F,
|
|
413
421
|
"rosette",
|
|
414
422
|
"blossom",
|
|
@@ -1456,14 +1464,14 @@ var Z = {
|
|
|
1456
1464
|
k3aq6I: "x9tu13d x1felao3",
|
|
1457
1465
|
$$css: !0
|
|
1458
1466
|
}
|
|
1459
|
-
},
|
|
1467
|
+
}, ie = {
|
|
1460
1468
|
default: null,
|
|
1461
1469
|
inline: Z.inline
|
|
1462
|
-
},
|
|
1470
|
+
}, ae = {
|
|
1463
1471
|
default: null,
|
|
1464
1472
|
inline: Z.inlineIcon
|
|
1465
1473
|
};
|
|
1466
|
-
function
|
|
1474
|
+
function oe({ className: t, style: n, ...r }) {
|
|
1467
1475
|
return /* @__PURE__ */ d(x.Root, {
|
|
1468
1476
|
...r,
|
|
1469
1477
|
...e({
|
|
@@ -1473,7 +1481,7 @@ function ae({ className: t, style: n, ...r }) {
|
|
|
1473
1481
|
})
|
|
1474
1482
|
});
|
|
1475
1483
|
}
|
|
1476
|
-
function
|
|
1484
|
+
function se({ className: t, style: n, ...r }) {
|
|
1477
1485
|
return /* @__PURE__ */ d(x.Item, {
|
|
1478
1486
|
...r,
|
|
1479
1487
|
...e({
|
|
@@ -1483,7 +1491,7 @@ function oe({ className: t, style: n, ...r }) {
|
|
|
1483
1491
|
})
|
|
1484
1492
|
});
|
|
1485
1493
|
}
|
|
1486
|
-
function
|
|
1494
|
+
function ce({ className: t, style: n, ...r }) {
|
|
1487
1495
|
return /* @__PURE__ */ d(x.Header, {
|
|
1488
1496
|
...r,
|
|
1489
1497
|
...e({
|
|
@@ -1493,7 +1501,7 @@ function se({ className: t, style: n, ...r }) {
|
|
|
1493
1501
|
})
|
|
1494
1502
|
});
|
|
1495
1503
|
}
|
|
1496
|
-
function
|
|
1504
|
+
function le({ className: t, style: n, children: r, ...i }) {
|
|
1497
1505
|
return /* @__PURE__ */ f(x.Trigger, {
|
|
1498
1506
|
...i,
|
|
1499
1507
|
...e({
|
|
@@ -1507,7 +1515,7 @@ function ce({ className: t, style: n, children: r, ...i }) {
|
|
|
1507
1515
|
})]
|
|
1508
1516
|
});
|
|
1509
1517
|
}
|
|
1510
|
-
function
|
|
1518
|
+
function ue({ className: t, style: n, ...r }) {
|
|
1511
1519
|
return /* @__PURE__ */ d(x.Panel, {
|
|
1512
1520
|
...r,
|
|
1513
1521
|
...e({
|
|
@@ -1517,7 +1525,7 @@ function le({ className: t, style: n, ...r }) {
|
|
|
1517
1525
|
})
|
|
1518
1526
|
});
|
|
1519
1527
|
}
|
|
1520
|
-
function
|
|
1528
|
+
function de({ className: t, style: n, ...r }) {
|
|
1521
1529
|
return /* @__PURE__ */ d(S.Root, {
|
|
1522
1530
|
...r,
|
|
1523
1531
|
...e({
|
|
@@ -1527,25 +1535,25 @@ function ue({ className: t, style: n, ...r }) {
|
|
|
1527
1535
|
})
|
|
1528
1536
|
});
|
|
1529
1537
|
}
|
|
1530
|
-
var
|
|
1538
|
+
var fe = {
|
|
1531
1539
|
"x-default-marker": "x-default-marker",
|
|
1532
1540
|
$$css: !0
|
|
1533
1541
|
};
|
|
1534
|
-
function
|
|
1542
|
+
function pe({ className: t, style: n, children: r, variant: i = "default", ...o }) {
|
|
1535
1543
|
return /* @__PURE__ */ f(S.Trigger, {
|
|
1536
1544
|
...o,
|
|
1537
1545
|
...e({
|
|
1538
1546
|
className: t,
|
|
1539
1547
|
style: n,
|
|
1540
|
-
styles: a.props(Z.trigger,
|
|
1548
|
+
styles: a.props(Z.trigger, ie[i], fe)
|
|
1541
1549
|
}),
|
|
1542
1550
|
children: [r, /* @__PURE__ */ d(h, {
|
|
1543
1551
|
"aria-hidden": !0,
|
|
1544
|
-
...a.props(Z.icon,
|
|
1552
|
+
...a.props(Z.icon, ae[i])
|
|
1545
1553
|
})]
|
|
1546
1554
|
});
|
|
1547
1555
|
}
|
|
1548
|
-
function
|
|
1556
|
+
function me({ className: t, style: n, ...r }) {
|
|
1549
1557
|
return /* @__PURE__ */ d(S.Panel, {
|
|
1550
1558
|
...r,
|
|
1551
1559
|
...e({
|
|
@@ -1555,17 +1563,17 @@ function pe({ className: t, style: n, ...r }) {
|
|
|
1555
1563
|
})
|
|
1556
1564
|
});
|
|
1557
1565
|
}
|
|
1558
|
-
var
|
|
1559
|
-
Root:
|
|
1560
|
-
Item:
|
|
1561
|
-
Header:
|
|
1562
|
-
Trigger:
|
|
1563
|
-
Panel:
|
|
1564
|
-
},
|
|
1565
|
-
Root:
|
|
1566
|
-
Trigger:
|
|
1567
|
-
Panel:
|
|
1568
|
-
},
|
|
1566
|
+
var he = {
|
|
1567
|
+
Root: oe,
|
|
1568
|
+
Item: se,
|
|
1569
|
+
Header: ce,
|
|
1570
|
+
Trigger: le,
|
|
1571
|
+
Panel: ue
|
|
1572
|
+
}, ge = {
|
|
1573
|
+
Root: de,
|
|
1574
|
+
Trigger: pe,
|
|
1575
|
+
Panel: me
|
|
1576
|
+
}, _e = { link: {
|
|
1569
1577
|
k1xSpc: "x1lliihq",
|
|
1570
1578
|
kB7OPa: "x9f619",
|
|
1571
1579
|
k7Eaqz: "xeuugli",
|
|
@@ -1588,31 +1596,31 @@ var me = {
|
|
|
1588
1596
|
kiEn40: "x8fq8g9",
|
|
1589
1597
|
$$css: !0
|
|
1590
1598
|
} };
|
|
1591
|
-
function
|
|
1599
|
+
function ve({ isPadded: e = !0, ...t }) {
|
|
1592
1600
|
return /* @__PURE__ */ d("section", { ...r({
|
|
1593
1601
|
0: { className: "xmkeg23 x1y0btm7 x1ey3b81 x1ok0vyi xpvm0e4 xb3r6kr x1hz01jw xj57cvi xtqrqnz x1778rvt xbixft xvmahel" },
|
|
1594
1602
|
1: { className: "xmkeg23 x1y0btm7 x1ey3b81 x1ok0vyi xpvm0e4 xb3r6kr x1hz01jw xj57cvi xtqrqnz x1778rvt xbixft xvmahel x1jvlu93" }
|
|
1595
1603
|
}[!!e | 0], t) });
|
|
1596
1604
|
}
|
|
1597
|
-
function
|
|
1598
|
-
return /* @__PURE__ */ d("a", { ...r(a.props(
|
|
1605
|
+
function ye({ xstyle: e, ...t }) {
|
|
1606
|
+
return /* @__PURE__ */ d("a", { ...r(a.props(_e.link, e), t) });
|
|
1599
1607
|
}
|
|
1600
|
-
function
|
|
1608
|
+
function be({ shouldSpaceBetween: e = !1, ...t }) {
|
|
1601
1609
|
return /* @__PURE__ */ d("div", { ...r({
|
|
1602
1610
|
0: { className: "x78zum5 x6s0dn4 x1hnptsi x1a02dak xeuugli" },
|
|
1603
1611
|
1: { className: "x78zum5 x6s0dn4 x1hnptsi x1a02dak xeuugli x1qughib" }
|
|
1604
1612
|
}[!!e | 0], t) });
|
|
1605
1613
|
}
|
|
1606
|
-
function
|
|
1614
|
+
function xe({ isCompact: e = !1, ...t }) {
|
|
1607
1615
|
return /* @__PURE__ */ d("div", { ...r({
|
|
1608
1616
|
0: { className: "x78zum5 xdt5ytf x1j825kq xeuugli" },
|
|
1609
1617
|
1: { className: "x78zum5 xdt5ytf xeuugli x1hnptsi" }
|
|
1610
1618
|
}[!!e | 0], t) });
|
|
1611
1619
|
}
|
|
1612
|
-
function
|
|
1620
|
+
function Se(e) {
|
|
1613
1621
|
return /* @__PURE__ */ d("div", { ...r({ className: "xrvj5dj xhuszhj x1m6b44x xeuugli" }, e) });
|
|
1614
1622
|
}
|
|
1615
|
-
function
|
|
1623
|
+
function Ce(e) {
|
|
1616
1624
|
return /* @__PURE__ */ d("hr", { ...r({ className: "xc342km x178xt8z x1y0btm7 x1ey3b81 x1ghz6dp" }, e) });
|
|
1617
1625
|
}
|
|
1618
1626
|
// packages/core/src/text.tsx
|
|
@@ -1716,54 +1724,54 @@ var Q = {
|
|
|
1716
1724
|
kMwMTN: "xr5kp14",
|
|
1717
1725
|
$$css: !0
|
|
1718
1726
|
}
|
|
1719
|
-
},
|
|
1727
|
+
}, we = {
|
|
1720
1728
|
body: Q.body,
|
|
1721
1729
|
caption: Q.caption,
|
|
1722
1730
|
mono: Q.mono,
|
|
1723
1731
|
prose: Q.prose
|
|
1724
|
-
},
|
|
1732
|
+
}, Te = {
|
|
1725
1733
|
ink: Q.ink,
|
|
1726
1734
|
muted: Q.muted
|
|
1727
|
-
},
|
|
1735
|
+
}, Ee = {
|
|
1728
1736
|
neutral: Q.neutral,
|
|
1729
1737
|
positive: Q.positive,
|
|
1730
1738
|
warning: Q.warning,
|
|
1731
1739
|
negative: Q.negative
|
|
1732
|
-
},
|
|
1740
|
+
}, De = {
|
|
1733
1741
|
neutral: Q.neutralIcon,
|
|
1734
1742
|
positive: Q.positiveIcon,
|
|
1735
1743
|
warning: Q.warningIcon,
|
|
1736
1744
|
negative: Q.negativeIcon
|
|
1737
|
-
},
|
|
1745
|
+
}, $ = {
|
|
1738
1746
|
neutral: g,
|
|
1739
1747
|
positive: _,
|
|
1740
1748
|
warning: y,
|
|
1741
1749
|
negative: v
|
|
1742
1750
|
};
|
|
1743
|
-
function
|
|
1744
|
-
return /* @__PURE__ */ d("span", { ...r(a.props(Q.text,
|
|
1751
|
+
function Oe({ variant: e = "body", tone: t = "ink", xstyle: n, ...i }) {
|
|
1752
|
+
return /* @__PURE__ */ d("span", { ...r(a.props(Q.text, we[e], Te[t], n), i) });
|
|
1745
1753
|
}
|
|
1746
|
-
function
|
|
1754
|
+
function ke({ isCompact: e = !1, ...t }) {
|
|
1747
1755
|
return /* @__PURE__ */ d("h1", { ...r({
|
|
1748
1756
|
0: { className: "x1ghz6dp x1hz01jw xvmahel xc0f4dz xvukjed xzju6ct x1vxm5eg x1b5ytql x1wjjqco xbixft xj0a0fe" },
|
|
1749
1757
|
1: { className: "x1ghz6dp x1hz01jw xvmahel x1i2cqwi x4fansv x1b5ytql xbixft xj0a0fe" }
|
|
1750
1758
|
}[!!e | 0], t) });
|
|
1751
1759
|
}
|
|
1752
|
-
function
|
|
1760
|
+
function Ae(e) {
|
|
1753
1761
|
return /* @__PURE__ */ d("h2", { ...r({ className: "x1ghz6dp x1hz01jw xvmahel x1i2cqwi x4fansv x1b5ytql xbixft xj0a0fe" }, e) });
|
|
1754
1762
|
}
|
|
1755
|
-
function
|
|
1763
|
+
function je(e) {
|
|
1756
1764
|
return /* @__PURE__ */ d("p", { ...r({ className: "x1ghz6dp x1hz01jw xj57cvi xvmahel xj0a0fe xtqrqnz x1778rvt x153jb6y" }, e) });
|
|
1757
1765
|
}
|
|
1758
|
-
function
|
|
1766
|
+
function Me(e) {
|
|
1759
1767
|
return /* @__PURE__ */ d("span", { ...r({ className: "x1ghz6dp xj57cvi xvmahel xiard35 xy8obcc x1778rvt xj0a0fe x153jb6y" }, e) });
|
|
1760
1768
|
}
|
|
1761
|
-
function
|
|
1769
|
+
function Ne(e) {
|
|
1762
1770
|
return /* @__PURE__ */ d("pre", { ...r({ className: "x1ghz6dp x1hz01jw xj57cvi xvmahel x1ewvobj x126k92a xj0a0fe x12myhf4 x1ytb0s6 xbixft" }, e) });
|
|
1763
1771
|
}
|
|
1764
|
-
function
|
|
1772
|
+
function Pe({ children: e, tone: t = "neutral", ...n }) {
|
|
1765
1773
|
return /* @__PURE__ */ f("span", {
|
|
1766
|
-
...r(a.props(Q.badge,
|
|
1774
|
+
...r(a.props(Q.badge, Ee[t]), n),
|
|
1767
1775
|
children: [/* @__PURE__ */ d(g, {
|
|
1768
1776
|
size: 5,
|
|
1769
1777
|
fill: "currentColor",
|
|
@@ -1775,18 +1783,18 @@ function Ne({ children: e, tone: t = "neutral", ...n }) {
|
|
|
1775
1783
|
})]
|
|
1776
1784
|
});
|
|
1777
1785
|
}
|
|
1778
|
-
function
|
|
1779
|
-
let i =
|
|
1786
|
+
function Fe({ children: e, tone: t = "neutral", ...n }) {
|
|
1787
|
+
let i = $[t];
|
|
1780
1788
|
return /* @__PURE__ */ f("span", {
|
|
1781
1789
|
...r({ className: "x3nfvp2 x6s0dn4 xbgj81g xbixft x1hz01jw xvmahel xtqrqnz x1778rvt xj57cvi x193iq5w" }, n),
|
|
1782
1790
|
children: [/* @__PURE__ */ d(i, {
|
|
1783
1791
|
size: 14,
|
|
1784
1792
|
"aria-hidden": !0,
|
|
1785
|
-
...a.props(Q.statusIcon,
|
|
1793
|
+
...a.props(Q.statusIcon, De[t])
|
|
1786
1794
|
}), /* @__PURE__ */ d("span", {
|
|
1787
1795
|
className: "xeuugli xj0a0fe",
|
|
1788
1796
|
children: e
|
|
1789
1797
|
})]
|
|
1790
1798
|
});
|
|
1791
1799
|
}
|
|
1792
|
-
export { k as C,
|
|
1800
|
+
export { k as C, j as D, A as E, C as O, ne as S, M as T, X as _, Ne as a, z as b, Oe as c, ve as d, be as f, ge as g, he as h, je as i, Se as l, ye as m, ke as n, Fe as o, xe as p, Me as r, Ae as s, Pe as t, Ce as u, W as v, ee as w, re as x, U as y };
|
package/package.json
CHANGED