@mechane-ai/elements 0.13.0 → 0.14.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 +36 -12
- package/dist/ai.js +19 -19
- package/dist/{categorical-values-DwobbjBq.js → categorical-values-BnWfIPlv.js} +3 -3
- package/dist/{chart-frame-DAxsgMyl.js → chart-frame-Dm8UNfYD.js} +6 -6
- package/dist/{chart-input-B0snxbMH.js → chart-input-ceiMZYI-.js} +3 -3
- package/dist/charts/cartesian.js +16 -16
- package/dist/charts/distribution.js +6 -6
- package/dist/charts/graph.js +5 -5
- package/dist/charts/hierarchy.js +3 -3
- package/dist/charts/matrix.js +13 -13
- package/dist/charts/timeline.js +30 -30
- package/dist/charts.js +1 -1
- package/dist/{code-block-VwrOHz5j.js → code-block-D07N6mYS.js} +4 -4
- package/dist/collections.js +330 -394
- package/dist/constants.stylex-bbdiv1fD.js +83 -0
- package/dist/content/code.js +1 -1
- package/dist/content/diff.js +5 -5
- package/dist/content/link.js +1 -1
- package/dist/content/markdown.js +4 -4
- package/dist/content/tree.js +2 -2
- package/dist/{content-link-Oj-MtNYi.js → content-link-CEx2s1MU.js} +1 -1
- package/dist/content.js +5 -5
- package/dist/elements.css +65 -106
- package/dist/feedback.js +1 -1
- package/dist/forms/dates.js +21 -21
- package/dist/forms.js +1 -1
- package/dist/index.js +1 -1
- package/dist/layout.js +22 -22
- package/dist/navigation/commands.js +6 -6
- package/dist/navigation.js +7 -7
- package/dist/overlays.js +1 -1
- package/dist/packages/ai/src/approval.d.ts +1 -1
- package/dist/packages/ai/src/conversation.d.ts +4 -4
- package/dist/packages/ai/src/prompt-input.d.ts +7 -7
- package/dist/packages/charts/src/cartesian/time-series-data.d.ts +1 -1
- package/dist/packages/charts/src/cartesian/time-series.d.ts +2 -2
- package/dist/packages/charts/src/chart-frame.d.ts +2 -2
- package/dist/packages/collections/src/collection-controls.d.ts +8 -7
- package/dist/packages/collections/src/collection-scroll.d.ts +2 -2
- package/dist/packages/collections/src/data-table.d.ts +6 -6
- package/dist/packages/collections/src/index.d.ts +2 -3
- package/dist/packages/content/src/code/code-block.d.ts +4 -4
- package/dist/packages/content/src/diff/diff-source.d.ts +1 -1
- package/dist/packages/content/src/diff/pierre-diff.d.ts +2 -2
- package/dist/packages/content/src/markdown/markdown.d.ts +2 -2
- package/dist/packages/content/src/trace.d.ts +3 -3
- package/dist/packages/core/src/actions.d.ts +2 -2
- package/dist/packages/core/src/surfaces.d.ts +6 -6
- package/dist/packages/core/src/text.d.ts +2 -2
- package/dist/packages/feedback/src/async-region.d.ts +5 -3
- package/dist/packages/feedback/src/control-placeholders.d.ts +5 -5
- package/dist/packages/feedback/src/feedback.d.ts +2 -2
- package/dist/packages/forms/src/form-actions.d.ts +2 -2
- package/dist/packages/forms/src/forms.d.ts +2 -2
- package/dist/packages/forms/src/selection-styles.d.ts +1 -1
- package/dist/packages/foundations/src/constants.stylex.d.ts +90 -0
- package/dist/packages/foundations/src/tokens.d.ts +2 -0
- package/dist/packages/foundations/src/tokens.stylex.d.ts +0 -90
- package/dist/packages/layout/src/app-shell.d.ts +2 -2
- package/dist/packages/layout/src/page-toolbar.d.ts +3 -3
- package/dist/packages/layout/src/record-page.d.ts +2 -2
- package/dist/packages/layout/src/resizable.d.ts +2 -2
- package/dist/packages/layout/src/sidebar.d.ts +6 -6
- package/dist/packages/layout/src/view-stack.d.ts +2 -2
- package/dist/packages/layout/src/workbench.d.ts +2 -2
- package/dist/packages/navigation/src/commands/command.d.ts +3 -3
- package/dist/packages/navigation/src/page-navigation.d.ts +4 -4
- package/dist/packages/overlays/src/drawer.d.ts +2 -2
- package/dist/{pierre-diff-sUAU-xeL.js → pierre-diff-C_j0nxwS.js} +2 -2
- package/dist/pierre-theme-BUeJim8s.js +127 -0
- package/dist/{pierre-tree-Db1yaDM2.js → pierre-tree-CBBDlJ_Y.js} +4 -4
- package/dist/{src-DMsnWyru.js → src-BkXlN6aZ.js} +28 -28
- package/dist/{src-B0UTwpOz.js → src-C9GQP3px.js} +42 -41
- package/dist/{src-BNlyCwOr.js → src-CyJd2qSZ.js} +27 -27
- package/dist/{src-CVlgjAlw.js → src-d7EAi61b.js} +9 -9
- package/dist/theme.js +1 -1
- package/dist/tokens.js +3 -207
- package/dist/tokens.stylex-DTHHFbyl.js +128 -0
- package/package.json +4 -2
- package/packages/foundations/src/constants.stylex.ts +91 -0
- package/packages/foundations/src/tokens.stylex.ts +0 -90
- package/dist/packages/collections/src/table.d.ts +0 -17
- package/dist/pierre-theme-CBAncKdH.js +0 -126
package/dist/layout.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as e } from "./src-
|
|
2
|
-
import { C as t, i as n, n as r, w as i } from "./src-
|
|
1
|
+
import { a as e } from "./src-d7EAi61b.js";
|
|
2
|
+
import { C as t, i as n, n as r, w as i } from "./src-CyJd2qSZ.js";
|
|
3
3
|
import { t as a } from "./style-composition-uYlczSsB.js";
|
|
4
4
|
import { Button as o } from "@base-ui/react/button";
|
|
5
5
|
import { mergeProps as s } from "@base-ui/react/merge-props";
|
|
@@ -120,7 +120,7 @@ function M({ children: e, label: t }) {
|
|
|
120
120
|
}), e]
|
|
121
121
|
});
|
|
122
122
|
}
|
|
123
|
-
function N({ children: e, icon: t,
|
|
123
|
+
function N({ children: e, icon: t, isSelected: n = !1, onClick: r, className: i, style: s, ...c }) {
|
|
124
124
|
let l = d(E), u = p(), f = l !== null && !l.isExpanded;
|
|
125
125
|
return /* @__PURE__ */ _("div", {
|
|
126
126
|
...{
|
|
@@ -133,8 +133,8 @@ function N({ children: e, icon: t, selected: n = !1, onClick: r, className: i, s
|
|
|
133
133
|
className: i,
|
|
134
134
|
style: s,
|
|
135
135
|
styles: {
|
|
136
|
-
0: { className: "x9f619 x78zum5 x6s0dn4 x1ok0vyi xbixft xjbqb8w x1hz01jw xtqrqnz x1778rvt xj57cvi xvmahel xdpxx8g xkrqix3
|
|
137
|
-
1: { className: "x9f619 x78zum5 x6s0dn4 x1ok0vyi xbixft xjbqb8w x1hz01jw xtqrqnz x1778rvt xj57cvi xvmahel xdpxx8g xkrqix3
|
|
136
|
+
0: { className: "x9f619 x78zum5 x6s0dn4 x1ok0vyi xbixft xjbqb8w x1hz01jw xtqrqnz x1778rvt xj57cvi xvmahel xdpxx8g xkrqix3 x17lu4q8 x1480za7 x13qnu6 x9v5kkp x19rmrnh x1bqaal xc342km x1ypdohk xwj21n9 x1m8qfh3 x1nhvcw1 x1hnptsi x15rya3k x992rv9 x1avwmir xh8yej3 xeuugli xt970qd xksvo5r" },
|
|
137
|
+
1: { className: "x9f619 x78zum5 x6s0dn4 x1ok0vyi xbixft xjbqb8w x1hz01jw xtqrqnz x1778rvt xj57cvi xvmahel xdpxx8g xkrqix3 x17lu4q8 x1480za7 x13qnu6 x9v5kkp x19rmrnh x1bqaal xc342km x1ypdohk xwj21n9 x1m8qfh3 x1hnptsi x15rya3k x992rv9 x1avwmir xh8yej3 xeuugli xt970qd xksvo5r xl56j7k x1l31gyv" }
|
|
138
138
|
}[!!f | 0]
|
|
139
139
|
}),
|
|
140
140
|
"aria-current": n ? "page" : void 0,
|
|
@@ -158,12 +158,12 @@ function N({ children: e, icon: t, selected: n = !1, onClick: r, className: i, s
|
|
|
158
158
|
})
|
|
159
159
|
});
|
|
160
160
|
}
|
|
161
|
-
function P({ children: e, icon: t,
|
|
161
|
+
function P({ children: e, icon: t, isSelected: n = !1, onClick: r, className: i, style: a, ...o }) {
|
|
162
162
|
let s = d(E), c = p(), l = s !== null && !s.isExpanded, u = {
|
|
163
|
-
0: { className: "x9f619 x78zum5 x6s0dn4 x1ok0vyi xbixft xjbqb8w x1hz01jw xtqrqnz x1778rvt xj57cvi xvmahel xdpxx8g xkrqix3
|
|
164
|
-
2: { className: "x9f619 x78zum5 x6s0dn4 x1ok0vyi xbixft xjbqb8w x1hz01jw xtqrqnz x1778rvt xj57cvi xvmahel xdpxx8g xkrqix3
|
|
165
|
-
1: { className: "x9f619 x78zum5 x6s0dn4 x1ok0vyi xbixft x1hz01jw xtqrqnz x1778rvt xj57cvi xvmahel xdpxx8g xkrqix3
|
|
166
|
-
3: { className: "x9f619 x78zum5 x6s0dn4 x1ok0vyi xbixft x1hz01jw xtqrqnz x1778rvt xj57cvi xvmahel xdpxx8g xkrqix3
|
|
163
|
+
0: { className: "x9f619 x78zum5 x6s0dn4 x1ok0vyi xbixft xjbqb8w x1hz01jw xtqrqnz x1778rvt xj57cvi xvmahel xdpxx8g xkrqix3 x17lu4q8 x1480za7 x13qnu6 x9v5kkp x19rmrnh x1bqaal x1nhvcw1 x1hnptsi x15rya3k x992rv9 x1avwmir xh8yej3 xeuugli xt970qd xksvo5r" },
|
|
164
|
+
2: { className: "x9f619 x78zum5 x6s0dn4 x1ok0vyi xbixft xjbqb8w x1hz01jw xtqrqnz x1778rvt xj57cvi xvmahel xdpxx8g xkrqix3 x17lu4q8 x1480za7 x13qnu6 x9v5kkp x19rmrnh x1bqaal x1hnptsi x15rya3k x992rv9 x1avwmir xh8yej3 xeuugli xt970qd xksvo5r xl56j7k x1l31gyv" },
|
|
165
|
+
1: { className: "x9f619 x78zum5 x6s0dn4 x1ok0vyi xbixft x1hz01jw xtqrqnz x1778rvt xj57cvi xvmahel xdpxx8g xkrqix3 x17lu4q8 x1480za7 x13qnu6 x9v5kkp x19rmrnh x1bqaal x1nhvcw1 x1hnptsi x15rya3k x992rv9 x1avwmir xh8yej3 xeuugli xt970qd xksvo5r x1r7kqkb" },
|
|
166
|
+
3: { className: "x9f619 x78zum5 x6s0dn4 x1ok0vyi xbixft x1hz01jw xtqrqnz x1778rvt xj57cvi xvmahel xdpxx8g xkrqix3 x17lu4q8 x1480za7 x13qnu6 x9v5kkp x19rmrnh x1bqaal x1hnptsi x15rya3k x992rv9 x1avwmir xh8yej3 xeuugli xt970qd xksvo5r xl56j7k x1l31gyv x1r7kqkb" }
|
|
167
167
|
}[!!l << 1 | !!n];
|
|
168
168
|
return /* @__PURE__ */ v("a", {
|
|
169
169
|
...o,
|
|
@@ -194,7 +194,7 @@ function P({ children: e, icon: t, selected: n = !1, onClick: r, className: i, s
|
|
|
194
194
|
})]
|
|
195
195
|
});
|
|
196
196
|
}
|
|
197
|
-
function F({ children: e,
|
|
197
|
+
function F({ children: e, shouldGrow: t = !1 }) {
|
|
198
198
|
let n = d(E), r = n !== null && !n.isExpanded;
|
|
199
199
|
return /* @__PURE__ */ _("span", {
|
|
200
200
|
...{
|
|
@@ -251,7 +251,7 @@ var R = { drawer: {
|
|
|
251
251
|
ks0D6T: "x1recik0",
|
|
252
252
|
$$css: !0
|
|
253
253
|
} };
|
|
254
|
-
function z({ sidebarHeader: t, sidebar: n, footer: r, children: i, mainId: a = "main",
|
|
254
|
+
function z({ sidebarHeader: t, sidebar: n, footer: r, children: i, mainId: a = "main", shouldFocus: o = !1 }) {
|
|
255
255
|
let [s, c] = h(!0), [l, u] = h(!1), [d] = h(() => e.createHandle()), g = p(), y = m(null), b = m(null);
|
|
256
256
|
return f(() => {
|
|
257
257
|
let e = globalThis.matchMedia(T.sidebarDesktopQuery);
|
|
@@ -300,7 +300,7 @@ function z({ sidebarHeader: t, sidebar: n, footer: r, children: i, mainId: a = "
|
|
|
300
300
|
xstyle: R.drawer,
|
|
301
301
|
finalFocus: () => globalThis.matchMedia(T.sidebarDesktopQuery).matches ? y.current : b.current,
|
|
302
302
|
children: [/* @__PURE__ */ _(e.Title, {
|
|
303
|
-
|
|
303
|
+
isVisuallyHidden: !0,
|
|
304
304
|
children: "Navigation"
|
|
305
305
|
}), /* @__PURE__ */ _(k, {
|
|
306
306
|
header: t,
|
|
@@ -354,7 +354,7 @@ function H({ header: e, children: t, inspector: n }) {
|
|
|
354
354
|
})]
|
|
355
355
|
});
|
|
356
356
|
}
|
|
357
|
-
function U({ label: e, children: t,
|
|
357
|
+
function U({ label: e, children: t, isFlush: n = !1, scrollRestorationId: r }) {
|
|
358
358
|
return /* @__PURE__ */ _("div", {
|
|
359
359
|
role: "region",
|
|
360
360
|
"aria-label": e,
|
|
@@ -380,7 +380,7 @@ function W({ children: e }) {
|
|
|
380
380
|
children: e
|
|
381
381
|
});
|
|
382
382
|
}
|
|
383
|
-
function G({
|
|
383
|
+
function G({ isActive: e, children: t }) {
|
|
384
384
|
return /* @__PURE__ */ _("section", {
|
|
385
385
|
"aria-hidden": !e,
|
|
386
386
|
inert: !e,
|
|
@@ -399,7 +399,7 @@ var K = {
|
|
|
399
399
|
ks0D6T: "x193iq5w",
|
|
400
400
|
$$css: !0
|
|
401
401
|
} };
|
|
402
|
-
function J({ title: e, actions: t,
|
|
402
|
+
function J({ title: e, actions: t, showBreadcrumb: n = !1, showNavigation: r = !0, views: i, leading: a }) {
|
|
403
403
|
let o = l.toArray(e).length > 0, s = l.toArray(t).length > 0, c = l.toArray(i).length > 0, u = l.toArray(a).length > 0;
|
|
404
404
|
return l.toArray([
|
|
405
405
|
e,
|
|
@@ -427,7 +427,7 @@ function J({ title: e, actions: t, breadcrumb: n = !1, navigation: r = !0, views
|
|
|
427
427
|
children: i
|
|
428
428
|
}),
|
|
429
429
|
s && /* @__PURE__ */ _("div", {
|
|
430
|
-
className: "x78zum5 x6s0dn4 xunmzkg x1dc62k6 xeuugli
|
|
430
|
+
className: "x78zum5 x6s0dn4 xunmzkg x1dc62k6 xeuugli x2lah0s x8x9d4c",
|
|
431
431
|
children: t
|
|
432
432
|
})
|
|
433
433
|
]
|
|
@@ -470,14 +470,14 @@ function Z({ children: e }) {
|
|
|
470
470
|
children: e
|
|
471
471
|
});
|
|
472
472
|
}
|
|
473
|
-
function Q({ backLabel: e, backHref: t, onBack: n, actions: r,
|
|
473
|
+
function Q({ backLabel: e, backHref: t, onBack: n, actions: r, showNavigation: i = !0 }) {
|
|
474
474
|
return /* @__PURE__ */ _(J, {
|
|
475
|
-
|
|
476
|
-
|
|
475
|
+
showBreadcrumb: !0,
|
|
476
|
+
showNavigation: i,
|
|
477
477
|
actions: r,
|
|
478
478
|
title: /* @__PURE__ */ v("a", {
|
|
479
479
|
href: t,
|
|
480
|
-
className: "x3nfvp2 x6s0dn4 x1hnptsi xid9utz xeuugli x193iq5w xbixft xkrqix3
|
|
480
|
+
className: "x3nfvp2 x6s0dn4 x1hnptsi xid9utz xeuugli x193iq5w xbixft xkrqix3 x5638nf x13qnu6 x9v5kkp x19rmrnh x1bqaal",
|
|
481
481
|
onClick: (e) => {
|
|
482
482
|
if (n === void 0 || e.defaultPrevented || e.button !== 0) return;
|
|
483
483
|
let t = e.metaKey || e.ctrlKey, r = e.shiftKey || e.altKey;
|
|
@@ -556,7 +556,7 @@ function ae({ orientation: e = "horizontal", initialSizes: t, onSizesChange: n,
|
|
|
556
556
|
...s({ className: "xeuugli x2lwn1j xh8yej3 x5yr21d" }, a)
|
|
557
557
|
});
|
|
558
558
|
}
|
|
559
|
-
function oe({ id: e, initialSizePercent: t, minimumSizePercent: n = 10, maximumSizePercent: r = 100,
|
|
559
|
+
function oe({ id: e, initialSizePercent: t, minimumSizePercent: n = 10, maximumSizePercent: r = 100, canCollapse: i = !1, ref: a, ...o }) {
|
|
560
560
|
return /* @__PURE__ */ _(C, {
|
|
561
561
|
id: e,
|
|
562
562
|
defaultSize: t === void 0 ? void 0 : `${t}%`,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { l as e } from "../src-
|
|
2
|
-
import { s as t } from "../src-
|
|
1
|
+
import { l as e } from "../src-BkXlN6aZ.js";
|
|
2
|
+
import { s as t } from "../src-d7EAi61b.js";
|
|
3
3
|
import { n } from "../navigation-D2_sGy3C.js";
|
|
4
4
|
import "@stylexjs/stylex";
|
|
5
5
|
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
6
6
|
import { Autocomplete as a } from "@base-ui/react/autocomplete";
|
|
7
7
|
import { useFormatForDisplay as o, useHotkeys as s } from "@tanstack/react-hotkeys";
|
|
8
8
|
// packages/navigation/src/commands/command.tsx
|
|
9
|
-
function c({ commands: e, target: t,
|
|
10
|
-
let r = e.flatMap((e) => !n || e.
|
|
9
|
+
function c({ commands: e, target: t, isEnabled: n }) {
|
|
10
|
+
let r = e.flatMap((e) => !n || e.isDisabled === !0 || e.shortcut === void 0 ? [] : [{
|
|
11
11
|
hotkey: e.shortcut,
|
|
12
12
|
callback: (n) => {
|
|
13
13
|
if (n.defaultPrevented || n.repeat) return;
|
|
@@ -56,8 +56,8 @@ function u({ open: n, onOpenChange: o, title: s, commands: c, trigger: u, placeh
|
|
|
56
56
|
className: "x1717udv x1ghz6dp x1sslpiy x1odjw0f xish69e",
|
|
57
57
|
children: (e) => /* @__PURE__ */ i(a.Item, {
|
|
58
58
|
value: e,
|
|
59
|
-
disabled: e.
|
|
60
|
-
className: "x78zum5 x9f619 x6s0dn4 xaml1ju x17tes2r
|
|
59
|
+
disabled: e.isDisabled,
|
|
60
|
+
className: "x78zum5 x9f619 x6s0dn4 xaml1ju x17tes2r x17oiadl xn9t2bk x5g2kb4 x1ok0vyi xbixft xpvm0e4 x1hz01jw xj57cvi xtqrqnz x1778rvt x1ypdohk xf2ykmf x1480za7 xd12npn xwj21n9 x1m8qfh3",
|
|
61
61
|
onClick: () => {
|
|
62
62
|
o(!1), e.onSelect();
|
|
63
63
|
},
|
package/dist/navigation.js
CHANGED
|
@@ -5,7 +5,7 @@ import "@stylexjs/stylex";
|
|
|
5
5
|
import { jsx as i } from "react/jsx-runtime";
|
|
6
6
|
import { Tabs as a } from "@base-ui/react/tabs";
|
|
7
7
|
// packages/navigation/src/page-navigation.tsx
|
|
8
|
-
function o({ items: e,
|
|
8
|
+
function o({ items: e, isEmbedded: t = !1 }) {
|
|
9
9
|
return /* @__PURE__ */ i("div", {
|
|
10
10
|
"aria-hidden": !0,
|
|
11
11
|
inert: !0,
|
|
@@ -14,12 +14,12 @@ function o({ items: e, embedded: t = !1 }) {
|
|
|
14
14
|
1: { className: "x78zum5 xxhr3t xeuugli xw2csxc x1q0q8m5 x1qndepd x1hz01jw xtqrqnz xj57cvi x1778rvt xvmahel x13qnu6 x9v5kkp x19rmrnh x1bqaal x1qhh985" }
|
|
15
15
|
}[!!t | 0],
|
|
16
16
|
children: e.map((e) => /* @__PURE__ */ i("span", {
|
|
17
|
-
className: "x1n2onr6 x9f619 x3nfvp2 x6s0dn4 x2lah0s xid9utz xn9t2bk x1doqdfy xkrqix3 xuxw1ft x153jb6y
|
|
17
|
+
className: "x1n2onr6 x9f619 x3nfvp2 x6s0dn4 x2lah0s xid9utz xn9t2bk x1doqdfy xkrqix3 xuxw1ft x153jb6y xp9636p x1s9zmfe x1kl8fbi x1s928wv x1j6awrg x1ccaobo x1xrz1ek x3cntg4 xyhc2n1 x13qnu6 x9v5kkp x19rmrnh x1bqaal",
|
|
18
18
|
children: e.label
|
|
19
19
|
}, e.id))
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
|
-
function s({ items: e, selectedId: t, onNavigate: n, label: r = "Page sections",
|
|
22
|
+
function s({ items: e, selectedId: t, onNavigate: n, label: r = "Page sections", isEmbedded: a = !1 }) {
|
|
23
23
|
return /* @__PURE__ */ i("nav", {
|
|
24
24
|
"aria-label": r,
|
|
25
25
|
tabIndex: 0,
|
|
@@ -31,8 +31,8 @@ function s({ items: e, selectedId: t, onNavigate: n, label: r = "Page sections",
|
|
|
31
31
|
href: e.href,
|
|
32
32
|
"aria-current": e.id === t ? "page" : void 0,
|
|
33
33
|
...{
|
|
34
|
-
0: { className: "x1n2onr6 x9f619 x3nfvp2 x6s0dn4 x2lah0s xid9utz xn9t2bk x1doqdfy xkrqix3 xuxw1ft x153jb6y
|
|
35
|
-
1: { className: "x1n2onr6 x9f619 x3nfvp2 x6s0dn4 x2lah0s xid9utz xn9t2bk x1doqdfy xkrqix3 xuxw1ft
|
|
34
|
+
0: { className: "x1n2onr6 x9f619 x3nfvp2 x6s0dn4 x2lah0s xid9utz xn9t2bk x1doqdfy xkrqix3 xuxw1ft x153jb6y xp9636p x1s9zmfe x1kl8fbi x1s928wv x1j6awrg x1ccaobo x1xrz1ek x3cntg4 xyhc2n1 x13qnu6 x9v5kkp x19rmrnh x1bqaal" },
|
|
35
|
+
1: { className: "x1n2onr6 x9f619 x3nfvp2 x6s0dn4 x2lah0s xid9utz xn9t2bk x1doqdfy xkrqix3 xuxw1ft xp9636p x1s9zmfe x1kl8fbi x1s928wv x1j6awrg x1ccaobo x1xrz1ek x3cntg4 x13qnu6 x9v5kkp x19rmrnh x1bqaal xbixft xtawafa" }
|
|
36
36
|
}[e.id === t | 0],
|
|
37
37
|
onClick: (t) => {
|
|
38
38
|
if (n === void 0 || t.defaultPrevented || t.button !== 0) return;
|
|
@@ -45,7 +45,7 @@ function s({ items: e, selectedId: t, onNavigate: n, label: r = "Page sections",
|
|
|
45
45
|
}
|
|
46
46
|
// packages/navigation/src/skip-link.tsx
|
|
47
47
|
function c(e) {
|
|
48
|
-
return /* @__PURE__ */ i("a", { ...r({ className: "xixxii4 x1ridm32 x12hha37
|
|
48
|
+
return /* @__PURE__ */ i("a", { ...r({ className: "xixxii4 x1ridm32 x12hha37 x1b4oyad x174j0rr x1mvvolr x9f619 xvv7f4i xj0a0fe x1ok0vyi xpvm0e4 xbixft x1hz01jw xk4h15q xtqrqnz x1778rvt xvmahel xujl8zx x1wfrlr2 x1tkds87 x1de710j x1gnsi0 x1cm8ssg" }, e) });
|
|
49
49
|
}
|
|
50
50
|
// packages/navigation/src/tabs.tsx
|
|
51
51
|
function l({ className: e, style: t, ...r }) {
|
|
@@ -74,7 +74,7 @@ function d({ className: e, style: t, ...r }) {
|
|
|
74
74
|
...n({
|
|
75
75
|
className: e,
|
|
76
76
|
style: t,
|
|
77
|
-
styles: { className: "x1n2onr6 x9f619 x2lah0s x1hz01jw xj57cvi xvmahel xc342km xid9utz xn9t2bk x1doqdfy xjbqb8w x153jb6y x1ypdohk xtqrqnz x1778rvt xuxw1ft
|
|
77
|
+
styles: { className: "x1n2onr6 x9f619 x2lah0s x1hz01jw xj57cvi xvmahel xc342km xid9utz xn9t2bk x1doqdfy xjbqb8w x153jb6y x1ypdohk xtqrqnz x1778rvt xuxw1ft xy7uoan xyg3wme xoqm7u7 x1s928wv x1j6awrg x1ccaobo x1xrz1ek x3cntg4 xyhc2n1 x11v428d x1gkyb9z xv7chyw x1pgiufq xrzcr2b x1nten1d x1wzsryr x1hjdyp1 x1i5oxzy xx75q12 x7dn452 xwj21n9 x1m8qfh3 x13qnu6 x9v5kkp x19rmrnh x1bqaal" }
|
|
78
78
|
})
|
|
79
79
|
});
|
|
80
80
|
}
|
package/dist/overlays.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { o as AlertDialog, s as Dialog, a as Drawer, i as Menu, r as Popover, n as Preview, t as Tooltip } from "./src-
|
|
1
|
+
export { o as AlertDialog, s as Dialog, a as Drawer, i as Menu, r as Popover, n as Preview, t as Tooltip } from "./src-d7EAi61b.js";
|
|
@@ -4,7 +4,7 @@ type PendingApproval = {
|
|
|
4
4
|
readonly onApprove: () => void;
|
|
5
5
|
readonly onDeny: () => void;
|
|
6
6
|
readonly busy?: 'approve' | 'deny' | undefined;
|
|
7
|
-
readonly
|
|
7
|
+
readonly isDisabled?: boolean;
|
|
8
8
|
readonly approveLabel?: string;
|
|
9
9
|
readonly denyLabel?: string;
|
|
10
10
|
readonly statusLabel?: never;
|
|
@@ -2,7 +2,7 @@ import type { ReactNode, RefObject } from 'react';
|
|
|
2
2
|
export type ConversationRootProps = {
|
|
3
3
|
readonly children: ReactNode;
|
|
4
4
|
readonly initialPosition?: 'start' | 'end';
|
|
5
|
-
readonly
|
|
5
|
+
readonly shouldFollow?: boolean;
|
|
6
6
|
readonly viewportRef?: RefObject<HTMLDivElement | null> | undefined;
|
|
7
7
|
};
|
|
8
8
|
export type ConversationViewportProps = {
|
|
@@ -12,7 +12,7 @@ export type ConversationViewportProps = {
|
|
|
12
12
|
};
|
|
13
13
|
export type ConversationContentProps = {
|
|
14
14
|
readonly children: ReactNode;
|
|
15
|
-
readonly
|
|
15
|
+
readonly isStreaming?: boolean;
|
|
16
16
|
};
|
|
17
17
|
export type ConversationItemProps = {
|
|
18
18
|
readonly messageId: string;
|
|
@@ -28,9 +28,9 @@ export type ConversationLatestButtonProps = {
|
|
|
28
28
|
readonly label: string;
|
|
29
29
|
readonly onActivate?: () => void;
|
|
30
30
|
};
|
|
31
|
-
declare function ConversationRoot({ children, initialPosition,
|
|
31
|
+
declare function ConversationRoot({ children, initialPosition, shouldFollow, viewportRef, }: ConversationRootProps): ReactNode;
|
|
32
32
|
declare function ConversationViewport({ label, children, scrollRestorationId }: ConversationViewportProps): ReactNode;
|
|
33
|
-
declare function ConversationContent({ children,
|
|
33
|
+
declare function ConversationContent({ children, isStreaming }: ConversationContentProps): ReactNode;
|
|
34
34
|
declare function ConversationItem({ messageId, children }: ConversationItemProps): ReactNode;
|
|
35
35
|
declare function ConversationControls({ children }: ConversationControlsProps): ReactNode;
|
|
36
36
|
declare function ConversationJumpToLatest({ label }: ConversationJumpProps): ReactNode;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { ComponentProps, ReactNode } from 'react';
|
|
2
2
|
export type PromptInputPlaceholderProps = {
|
|
3
|
-
readonly
|
|
3
|
+
readonly isCompact?: boolean;
|
|
4
4
|
};
|
|
5
|
-
export declare function PromptInputPlaceholder({
|
|
5
|
+
export declare function PromptInputPlaceholder({ isCompact }: PromptInputPlaceholderProps): ReactNode;
|
|
6
6
|
export type PromptInputProps = {
|
|
7
7
|
readonly label: string;
|
|
8
8
|
readonly value: string;
|
|
@@ -12,19 +12,19 @@ export type PromptInputProps = {
|
|
|
12
12
|
readonly placeholder?: string;
|
|
13
13
|
readonly maxLength?: number;
|
|
14
14
|
readonly required?: boolean;
|
|
15
|
-
readonly
|
|
15
|
+
readonly isPending?: boolean;
|
|
16
16
|
readonly disabled?: boolean;
|
|
17
|
-
readonly
|
|
17
|
+
readonly isSubmitDisabled?: boolean;
|
|
18
18
|
readonly submitLabel?: string;
|
|
19
19
|
readonly pendingLabel?: string;
|
|
20
20
|
readonly enterBehavior?: 'newline' | 'submit';
|
|
21
|
-
readonly
|
|
21
|
+
readonly isCompact?: boolean;
|
|
22
22
|
readonly description?: ReactNode;
|
|
23
23
|
readonly error?: string | undefined;
|
|
24
24
|
readonly controls?: ReactNode;
|
|
25
25
|
readonly attachments?: ReactNode;
|
|
26
26
|
readonly onStop?: (() => void) | undefined;
|
|
27
|
-
readonly
|
|
27
|
+
readonly isStopPending?: boolean;
|
|
28
28
|
readonly stopLabel?: string;
|
|
29
29
|
};
|
|
30
|
-
export declare function PromptInput({ label, value, onValueChange, onSubmit, name, placeholder, maxLength, required,
|
|
30
|
+
export declare function PromptInput({ label, value, onValueChange, onSubmit, name, placeholder, maxLength, required, isPending, disabled, isSubmitDisabled, submitLabel, pendingLabel, enterBehavior, isCompact, description, error, controls, attachments, onStop, isStopPending, stopLabel, }: PromptInputProps): ReactNode;
|
|
@@ -50,5 +50,5 @@ export declare function timeSeriesSignature({ series, markers, timestampUnit, is
|
|
|
50
50
|
readonly timestampUnit: string;
|
|
51
51
|
readonly isStacked: boolean;
|
|
52
52
|
}): string;
|
|
53
|
-
export declare function observationDomain(minimum: number, maximum: number,
|
|
53
|
+
export declare function observationDomain(minimum: number, maximum: number, shouldStartAtZero?: boolean): readonly [number, number];
|
|
54
54
|
export declare function prepareTimeSeries(series: ReadonlyArray<TimeSeries>, isStacked: boolean): ReadonlyArray<PlotSeries>;
|
|
@@ -12,7 +12,7 @@ export type TimeSeriesChartProps = {
|
|
|
12
12
|
readonly actions?: ReactNode;
|
|
13
13
|
};
|
|
14
14
|
export type AreaChartProps = TimeSeriesChartProps & {
|
|
15
|
-
readonly
|
|
15
|
+
readonly isStacked?: boolean | undefined;
|
|
16
16
|
};
|
|
17
17
|
export type SmallMultiplesProps = Omit<TimeSeriesChartProps, 'series' | 'title' | 'description' | 'actions' | 'formatValue' | 'markers'> & {
|
|
18
18
|
readonly charts: ReadonlyArray<{
|
|
@@ -25,5 +25,5 @@ export type SmallMultiplesProps = Omit<TimeSeriesChartProps, 'series' | 'title'
|
|
|
25
25
|
}>;
|
|
26
26
|
};
|
|
27
27
|
export declare function LineChart(props: TimeSeriesChartProps): ReactNode;
|
|
28
|
-
export declare function AreaChart({
|
|
28
|
+
export declare function AreaChart({ isStacked, ...props }: AreaChartProps): ReactNode;
|
|
29
29
|
export declare function SmallMultiples({ charts, ...props }: SmallMultiplesProps): ReactNode;
|
|
@@ -22,9 +22,9 @@ export type ChartLegendProps = {
|
|
|
22
22
|
};
|
|
23
23
|
export declare function ChartFrame({ title, description, children, actions, footer }: ChartFrameProps): ReactNode;
|
|
24
24
|
export declare function ChartLegend({ items, label }: ChartLegendProps): ReactNode;
|
|
25
|
-
export declare function ChartDatumButton({ label,
|
|
25
|
+
export declare function ChartDatumButton({ label, isSelected, onSelect, children, }: {
|
|
26
26
|
readonly label: string;
|
|
27
|
-
readonly
|
|
27
|
+
readonly isSelected?: boolean | undefined;
|
|
28
28
|
readonly onSelect?: (() => void) | undefined;
|
|
29
29
|
readonly children: ReactNode;
|
|
30
30
|
}): ReactNode;
|
|
@@ -15,18 +15,19 @@ export type FilterChipsProps = {
|
|
|
15
15
|
readonly label?: string;
|
|
16
16
|
};
|
|
17
17
|
export declare function FilterChips({ filters, onRemove, label }: FilterChipsProps): ReactNode;
|
|
18
|
-
export type
|
|
18
|
+
export type DisplayOption = {
|
|
19
19
|
readonly id: string;
|
|
20
20
|
readonly label: string;
|
|
21
|
-
readonly
|
|
22
|
-
readonly
|
|
21
|
+
readonly isChecked: boolean;
|
|
22
|
+
readonly isRequired?: boolean;
|
|
23
23
|
};
|
|
24
|
-
export type
|
|
25
|
-
readonly
|
|
26
|
-
readonly
|
|
24
|
+
export type DisplayOptionsProps = {
|
|
25
|
+
readonly options: ReadonlyArray<DisplayOption>;
|
|
26
|
+
readonly onChange: (id: string, checked: boolean) => void;
|
|
27
|
+
readonly onReset?: () => void;
|
|
27
28
|
readonly label?: string;
|
|
28
29
|
};
|
|
29
|
-
export declare function
|
|
30
|
+
export declare function DisplayOptions({ options, onChange, onReset, label, }: DisplayOptionsProps): ReactNode;
|
|
30
31
|
export type CollectionPaginationProps = {
|
|
31
32
|
readonly description: string;
|
|
32
33
|
readonly previous: {
|
|
@@ -13,8 +13,8 @@ export type CollectionScrollProps = {
|
|
|
13
13
|
readonly children: ReactNode;
|
|
14
14
|
readonly endContent?: ReactNode;
|
|
15
15
|
readonly onEndReached?: (() => void) | undefined;
|
|
16
|
-
readonly
|
|
16
|
+
readonly shouldFill?: boolean;
|
|
17
17
|
readonly endPosition?: 'start' | 'end';
|
|
18
18
|
readonly label?: string;
|
|
19
19
|
};
|
|
20
|
-
export declare function CollectionScroll({ children, endContent, onEndReached,
|
|
20
|
+
export declare function CollectionScroll({ children, endContent, onEndReached, shouldFill, endPosition, label, }: CollectionScrollProps): ReactNode;
|
|
@@ -7,12 +7,12 @@ export type DataTableColumnLayout = {
|
|
|
7
7
|
readonly label: string;
|
|
8
8
|
readonly role: DataTableColumnRole;
|
|
9
9
|
readonly width?: number;
|
|
10
|
-
readonly
|
|
10
|
+
readonly isSecondary?: boolean;
|
|
11
11
|
};
|
|
12
12
|
export type DataTableColumn<Row> = DataTableColumnLayout & {
|
|
13
13
|
readonly cell: (row: Row) => ReactNode;
|
|
14
|
-
readonly
|
|
15
|
-
readonly
|
|
14
|
+
readonly shouldTruncate?: boolean;
|
|
15
|
+
readonly canSort?: boolean;
|
|
16
16
|
};
|
|
17
17
|
export type DataTablePlaceholderProps = {
|
|
18
18
|
readonly columns: ReadonlyArray<DataTableColumnLayout & {
|
|
@@ -31,10 +31,10 @@ export type DataTableTextProps = {
|
|
|
31
31
|
};
|
|
32
32
|
export type DataTableTextPlaceholderProps = {
|
|
33
33
|
readonly leading?: ReactNode;
|
|
34
|
-
readonly
|
|
34
|
+
readonly isSecondary?: boolean;
|
|
35
35
|
};
|
|
36
36
|
export declare function DataTableText({ children, secondary, leading, trailing }: DataTableTextProps): ReactNode;
|
|
37
|
-
export declare function DataTableTextPlaceholder({ leading,
|
|
37
|
+
export declare function DataTableTextPlaceholder({ leading, isSecondary }: DataTableTextPlaceholderProps): ReactNode;
|
|
38
38
|
export type DataTableSort = {
|
|
39
39
|
readonly columnId: string;
|
|
40
40
|
readonly direction: 'ascending' | 'descending';
|
|
@@ -58,7 +58,7 @@ type SortProperties<Row> = {
|
|
|
58
58
|
readonly onSortChange: (sort: DataTableSort | undefined) => void;
|
|
59
59
|
} | {
|
|
60
60
|
readonly columns: ReadonlyArray<DataTableColumn<Row> & {
|
|
61
|
-
readonly
|
|
61
|
+
readonly canSort?: false;
|
|
62
62
|
}>;
|
|
63
63
|
readonly sort?: never;
|
|
64
64
|
readonly onSortChange?: never;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export type { CollectionToolbarProps, FilterChip, FilterChipsProps,
|
|
2
|
-
export { CollectionToolbar, FilterChips,
|
|
1
|
+
export type { CollectionToolbarProps, FilterChip, FilterChipsProps, DisplayOption, DisplayOptionsProps, CollectionPaginationProps, } from './collection-controls.tsx';
|
|
2
|
+
export { CollectionToolbar, FilterChips, DisplayOptions, CollectionPagination } from './collection-controls.tsx';
|
|
3
3
|
export type { DataTableColumn, DataTableColumnLayout, DataTablePlaceholderProps, DataTableColumnRole, DataTableSort, DataTableWindow, DataTableProps, DataTableRowAction, DataTableTextProps, DataTableTextPlaceholderProps, } from './data-table.tsx';
|
|
4
4
|
export { DataTable, DataTableText, DataTablePlaceholder, DataTableTextPlaceholder } from './data-table.tsx';
|
|
5
5
|
export type { CollectionEndProps, CollectionScrollProps } from './collection-scroll.tsx';
|
|
@@ -8,7 +8,6 @@ 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 { Table, Cell } from './table.tsx';
|
|
12
11
|
export type { TimestampProps } from './timestamp.tsx';
|
|
13
12
|
export { Timestamp } from './timestamp.tsx';
|
|
14
13
|
export { Timeline } from './timeline.tsx';
|
|
@@ -11,12 +11,12 @@ export type CodeBlockProps = {
|
|
|
11
11
|
readonly code: string;
|
|
12
12
|
readonly language?: string | undefined;
|
|
13
13
|
readonly filename?: string | undefined;
|
|
14
|
-
readonly
|
|
15
|
-
readonly
|
|
16
|
-
readonly
|
|
14
|
+
readonly isStreaming?: boolean;
|
|
15
|
+
readonly shouldWrap?: boolean;
|
|
16
|
+
readonly showLineNumbers?: boolean;
|
|
17
17
|
readonly selectedLines?: CodeSelection;
|
|
18
18
|
readonly annotations?: ReadonlyArray<CodeAnnotation>;
|
|
19
19
|
readonly maxHeight?: number;
|
|
20
20
|
readonly maxLines?: number;
|
|
21
21
|
};
|
|
22
|
-
export declare function CodeBlock({ code, language, filename,
|
|
22
|
+
export declare function CodeBlock({ code, language, filename, isStreaming, shouldWrap, showLineNumbers, selectedLines, annotations, maxHeight, maxLines, }: CodeBlockProps): ReactNode;
|
|
@@ -26,7 +26,7 @@ export type DiffSource = {
|
|
|
26
26
|
export type DiffViewerProps = DiffSource & {
|
|
27
27
|
readonly label: string;
|
|
28
28
|
readonly layout?: 'unified' | 'split';
|
|
29
|
-
readonly
|
|
29
|
+
readonly shouldWrap?: boolean;
|
|
30
30
|
readonly annotations?: ReadonlyArray<DiffAnnotation>;
|
|
31
31
|
readonly maxHeight?: number;
|
|
32
32
|
};
|
|
@@ -4,12 +4,12 @@ import type { DiffAnnotation, DiffSource } from './diff-source.ts';
|
|
|
4
4
|
type PierreDiffProps = {
|
|
5
5
|
readonly files: ReadonlyArray<FileDiffMetadata>;
|
|
6
6
|
readonly layout: 'unified' | 'split';
|
|
7
|
-
readonly
|
|
7
|
+
readonly shouldWrap: boolean;
|
|
8
8
|
readonly showUnchanged: boolean;
|
|
9
9
|
readonly annotations: ReadonlyArray<DiffAnnotation>;
|
|
10
10
|
readonly maxHeight: number;
|
|
11
11
|
readonly label: string;
|
|
12
12
|
};
|
|
13
13
|
export declare function prepareDiff(source: DiffSource): ReadonlyArray<FileDiffMetadata>;
|
|
14
|
-
export declare function PierreDiff({ files, layout,
|
|
14
|
+
export declare function PierreDiff({ files, layout, shouldWrap, showUnchanged, annotations, maxHeight, label, }: PierreDiffProps): ReactNode;
|
|
15
15
|
export {};
|
|
@@ -2,9 +2,9 @@ import type { ReactNode } from 'react';
|
|
|
2
2
|
type HeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
|
|
3
3
|
export type MarkdownProps = {
|
|
4
4
|
readonly children: string;
|
|
5
|
-
readonly
|
|
5
|
+
readonly isStreaming?: boolean;
|
|
6
6
|
readonly label?: string;
|
|
7
7
|
readonly headingLevel?: HeadingLevel;
|
|
8
8
|
};
|
|
9
|
-
export declare function Markdown({ children,
|
|
9
|
+
export declare function Markdown({ children, isStreaming, label, headingLevel }: MarkdownProps): ReactNode;
|
|
10
10
|
export {};
|
|
@@ -9,10 +9,10 @@ export type TraceGroupProps = {
|
|
|
9
9
|
readonly children: ReactNode;
|
|
10
10
|
};
|
|
11
11
|
type TraceSelection = {
|
|
12
|
-
readonly
|
|
12
|
+
readonly isSelected: boolean;
|
|
13
13
|
readonly onSelect: (id: string) => void;
|
|
14
14
|
} | {
|
|
15
|
-
readonly
|
|
15
|
+
readonly isSelected?: never;
|
|
16
16
|
readonly onSelect?: never;
|
|
17
17
|
};
|
|
18
18
|
export type TraceItemProps = TraceSelection & {
|
|
@@ -26,7 +26,7 @@ export type TraceItemProps = TraceSelection & {
|
|
|
26
26
|
};
|
|
27
27
|
declare function TraceRoot({ label, children }: TraceRootProps): ReactNode;
|
|
28
28
|
declare function TraceGroup({ label, children }: TraceGroupProps): ReactNode;
|
|
29
|
-
declare function TraceItem({ id, label, status, statusLabel, description, detail,
|
|
29
|
+
declare function TraceItem({ id, label, status, statusLabel, description, detail, isSelected, onSelect, children, }: TraceItemProps): ReactNode;
|
|
30
30
|
export declare const Trace: {
|
|
31
31
|
Root: typeof TraceRoot;
|
|
32
32
|
Item: typeof TraceItem;
|
|
@@ -5,7 +5,7 @@ import type { PlacementStyle } from '../../foundations/src/style-composition.ts'
|
|
|
5
5
|
type ButtonVariant = 'solid' | 'outline' | 'ghost';
|
|
6
6
|
type ButtonTone = 'neutral' | 'danger';
|
|
7
7
|
type PendingProps = {
|
|
8
|
-
readonly
|
|
8
|
+
readonly isPending?: boolean;
|
|
9
9
|
readonly pendingLabel?: string | undefined;
|
|
10
10
|
};
|
|
11
11
|
type ButtonProps = ComponentProps<typeof BaseButton> & PendingProps & {
|
|
@@ -29,7 +29,7 @@ type TextLinkProps = ComponentProps<'a'> & {
|
|
|
29
29
|
};
|
|
30
30
|
export declare function Button(props: ButtonProps): ReactNode;
|
|
31
31
|
export declare function IconButton({ children, ...props }: IconButtonProps): ReactNode;
|
|
32
|
-
export declare function TextButton({ tone,
|
|
32
|
+
export declare function TextButton({ tone, isPending, pendingLabel, children, className, style, xstyle, disabled, ...props }: TextButtonProps): ReactNode;
|
|
33
33
|
export declare function TextLink({ xstyle, ...props }: TextLinkProps): ReactNode;
|
|
34
34
|
export declare function IconLink({ children, xstyle, render, ref, ...props }: IconLinkProps): ReactNode;
|
|
35
35
|
export {};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import type { ComponentProps, ReactNode } from 'react';
|
|
2
2
|
import type { PlacementStyle } from '../../foundations/src/style-composition.ts';
|
|
3
3
|
type PanelProps = ComponentProps<'section'> & {
|
|
4
|
-
readonly
|
|
4
|
+
readonly isPadded?: boolean;
|
|
5
5
|
};
|
|
6
6
|
type SurfaceLinkProps = ComponentProps<'a'> & {
|
|
7
7
|
readonly xstyle?: PlacementStyle;
|
|
8
8
|
};
|
|
9
9
|
type RowProps = ComponentProps<'div'> & {
|
|
10
|
-
readonly
|
|
10
|
+
readonly shouldSpaceBetween?: boolean;
|
|
11
11
|
};
|
|
12
12
|
type StackProps = ComponentProps<'div'> & {
|
|
13
|
-
readonly
|
|
13
|
+
readonly isCompact?: boolean;
|
|
14
14
|
};
|
|
15
15
|
type ColumnsProps = ComponentProps<'div'>;
|
|
16
16
|
type DividerProps = ComponentProps<'hr'>;
|
|
17
|
-
export declare function Panel({
|
|
17
|
+
export declare function Panel({ isPadded, ...props }: PanelProps): ReactNode;
|
|
18
18
|
export declare function SurfaceLink({ xstyle, ...props }: SurfaceLinkProps): ReactNode;
|
|
19
|
-
export declare function Row({
|
|
20
|
-
export declare function Stack({
|
|
19
|
+
export declare function Row({ shouldSpaceBetween, ...props }: RowProps): ReactNode;
|
|
20
|
+
export declare function Stack({ isCompact, ...props }: StackProps): ReactNode;
|
|
21
21
|
export declare function Columns(props: ColumnsProps): ReactNode;
|
|
22
22
|
export declare function Divider(props: DividerProps): ReactNode;
|
|
23
23
|
export {};
|
|
@@ -9,7 +9,7 @@ type TextProps = ComponentProps<'span'> & {
|
|
|
9
9
|
readonly xstyle?: PlacementStyle;
|
|
10
10
|
};
|
|
11
11
|
type HeadingProps = ComponentProps<'h1'> & {
|
|
12
|
-
readonly
|
|
12
|
+
readonly isCompact?: boolean;
|
|
13
13
|
};
|
|
14
14
|
type SubheadingProps = ComponentProps<'h2'>;
|
|
15
15
|
type MutedProps = ComponentProps<'p'>;
|
|
@@ -22,7 +22,7 @@ type StatusProps = ComponentProps<'span'> & {
|
|
|
22
22
|
readonly tone?: StatusTone;
|
|
23
23
|
};
|
|
24
24
|
export declare function Text({ variant, tone, xstyle, ...props }: TextProps): ReactNode;
|
|
25
|
-
export declare function Heading({
|
|
25
|
+
export declare function Heading({ isCompact, ...props }: HeadingProps): ReactNode;
|
|
26
26
|
export declare function Subheading(props: SubheadingProps): ReactNode;
|
|
27
27
|
export declare function Muted(props: MutedProps): ReactNode;
|
|
28
28
|
export declare function Identifier(props: IdentifierProps): ReactNode;
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
2
|
export type LoadingScopeProps = {
|
|
3
3
|
readonly identity: string | number;
|
|
4
|
+
/** Preserve elapsed loading time when a document hands its first read to React. */
|
|
5
|
+
readonly initialStartedAt?: number;
|
|
4
6
|
readonly children: ReactNode;
|
|
5
7
|
};
|
|
6
|
-
export declare function LoadingScope({ identity, children }: LoadingScopeProps): ReactNode;
|
|
8
|
+
export declare function LoadingScope({ identity, initialStartedAt, children }: LoadingScopeProps): ReactNode;
|
|
7
9
|
export type ContentRevealProps = {
|
|
8
|
-
readonly
|
|
10
|
+
readonly shouldEnter: boolean;
|
|
9
11
|
readonly children: ReactNode;
|
|
10
12
|
};
|
|
11
|
-
export declare function ContentReveal({
|
|
13
|
+
export declare function ContentReveal({ shouldEnter, children }: ContentRevealProps): ReactNode;
|
|
12
14
|
export type AsyncRegionState = 'pending' | 'ready' | 'failed';
|
|
13
15
|
export type AsyncRegionProps = {
|
|
14
16
|
readonly label: string;
|
|
@@ -3,19 +3,19 @@ import type { PlacementStyle } from '../../foundations/src/style-composition.ts'
|
|
|
3
3
|
export type ButtonPlaceholderProps = {
|
|
4
4
|
readonly xstyle?: PlacementStyle;
|
|
5
5
|
} & ({
|
|
6
|
-
readonly
|
|
6
|
+
readonly isIconOnly: true;
|
|
7
7
|
readonly width?: never;
|
|
8
8
|
} | {
|
|
9
|
-
readonly
|
|
9
|
+
readonly isIconOnly?: false;
|
|
10
10
|
readonly width?: number | string;
|
|
11
11
|
});
|
|
12
12
|
export type FieldPlaceholderProps = {
|
|
13
13
|
readonly label?: string;
|
|
14
14
|
readonly hint?: string;
|
|
15
|
-
readonly
|
|
15
|
+
readonly isMultiline?: boolean;
|
|
16
16
|
readonly rows?: number;
|
|
17
17
|
readonly width?: number | string;
|
|
18
18
|
readonly xstyle?: PlacementStyle;
|
|
19
19
|
};
|
|
20
|
-
export declare function ButtonPlaceholder({ width,
|
|
21
|
-
export declare function FieldPlaceholder({ label, hint,
|
|
20
|
+
export declare function ButtonPlaceholder({ width, isIconOnly, xstyle }: ButtonPlaceholderProps): ReactNode;
|
|
21
|
+
export declare function FieldPlaceholder({ label, hint, isMultiline, rows, width, xstyle, }: FieldPlaceholderProps): ReactNode;
|