@mechane-ai/elements 0.12.0 → 0.13.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 +15 -0
- package/dist/ai.js +167 -140
- package/dist/{categorical-values-CTrHn9jH.js → categorical-values-DwobbjBq.js} +2 -2
- package/dist/{chart-frame-38ES6kwK.js → chart-frame-DAxsgMyl.js} +1 -1
- package/dist/{chart-input-C9fu7f1Q.js → chart-input-B0snxbMH.js} +2 -2
- package/dist/charts/cartesian.js +6 -6
- 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-BjV2EFZS.js → code-block-VwrOHz5j.js} +1 -1
- package/dist/collections.js +282 -199
- 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-C460m-O7.js → content-link-Oj-MtNYi.js} +1 -1
- package/dist/content.js +3 -3
- package/dist/elements.css +8 -16
- 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 +1 -1
- package/dist/navigation/commands.js +1 -1
- package/dist/navigation.js +26 -12
- package/dist/packages/ai/src/index.d.ts +2 -2
- package/dist/packages/ai/src/prompt-input.d.ts +4 -0
- package/dist/packages/collections/src/data-table.d.ts +19 -2
- package/dist/packages/collections/src/index.d.ts +2 -2
- package/dist/packages/feedback/src/async-region.d.ts +15 -9
- package/dist/packages/feedback/src/control-placeholders.d.ts +8 -3
- package/dist/packages/feedback/src/index.d.ts +2 -3
- package/dist/packages/foundations/src/control-styles.d.ts +21 -0
- package/dist/packages/foundations/src/tokens.stylex.d.ts +5 -0
- package/dist/packages/navigation/src/index.d.ts +2 -2
- package/dist/packages/navigation/src/page-navigation.d.ts +5 -0
- package/dist/{pierre-tree-DKN2eGlZ.js → pierre-tree-Db1yaDM2.js} +2 -2
- package/dist/{src-CI6KtN2w.js → src-B0UTwpOz.js} +339 -364
- package/dist/{src-3gzujMhN.js → src-BNlyCwOr.js} +21 -7
- package/dist/{src-DOzle5d4.js → src-DMsnWyru.js} +155 -170
- package/dist/tokens.js +8 -4
- package/package.json +1 -1
- package/packages/foundations/src/tokens.stylex.ts +2 -0
- package/dist/packages/feedback/src/loading.d.ts +0 -7
package/dist/content/code.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as CodeBlock } from "../code-block-
|
|
1
|
+
export { t as CodeBlock } from "../code-block-VwrOHz5j.js";
|
package/dist/content/diff.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { E as e, _ as t, g as n } from "../src-
|
|
2
|
-
import { t as r } from "../code-block-
|
|
1
|
+
import { E as e, _ as t, g as n } from "../src-BNlyCwOr.js";
|
|
2
|
+
import { t as r } from "../code-block-VwrOHz5j.js";
|
|
3
3
|
import { t as i } from "../viewer-styles-CpHqp5Qv.js";
|
|
4
4
|
import * as a from "@stylexjs/stylex";
|
|
5
5
|
import { useEffect as o, useState as s } from "react";
|
package/dist/content/link.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as ContentLink } from "../content-link-
|
|
1
|
+
export { t as ContentLink } from "../content-link-Oj-MtNYi.js";
|
package/dist/content/markdown.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as e } from "../code-block-
|
|
2
|
-
import { n as t, t as n } from "../content-link-
|
|
1
|
+
import { t as e } from "../code-block-VwrOHz5j.js";
|
|
2
|
+
import { n as t, t as n } from "../content-link-Oj-MtNYi.js";
|
|
3
3
|
import { t as r } from "../viewer-styles-CpHqp5Qv.js";
|
|
4
4
|
import * as i from "@stylexjs/stylex";
|
|
5
5
|
import { Children as a, createElement as o } from "react";
|
package/dist/content/tree.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E as e } from "../src-
|
|
1
|
+
import { E as e } from "../src-BNlyCwOr.js";
|
|
2
2
|
import { t } from "../viewer-styles-CpHqp5Qv.js";
|
|
3
3
|
import * as n from "@stylexjs/stylex";
|
|
4
4
|
import { useEffect as r, useState as i } from "react";
|
|
@@ -27,7 +27,7 @@ function d(l) {
|
|
|
27
27
|
let e = !0;
|
|
28
28
|
async function t() {
|
|
29
29
|
try {
|
|
30
|
-
let t = await import("../pierre-tree-
|
|
30
|
+
let t = await import("../pierre-tree-Db1yaDM2.js");
|
|
31
31
|
e && f({
|
|
32
32
|
Component: t.PierreTree,
|
|
33
33
|
hasFailed: !1
|
package/dist/content.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { C as e, E as t, _ as n, g as r } from "./src-
|
|
1
|
+
import { C as e, E as t, _ as n, g as r } from "./src-BNlyCwOr.js";
|
|
2
2
|
import { t as i } from "./viewer-styles-CpHqp5Qv.js";
|
|
3
|
-
import { t as a } from "./code-block-
|
|
4
|
-
import { t as o } from "./content-link-
|
|
3
|
+
import { t as a } from "./code-block-VwrOHz5j.js";
|
|
4
|
+
import { t as o } from "./content-link-Oj-MtNYi.js";
|
|
5
5
|
import * as s from "@stylexjs/stylex";
|
|
6
6
|
import { useCallback as c, useEffect as l, useRef as u, useState as d } from "react";
|
|
7
7
|
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
package/dist/elements.css
CHANGED
|
@@ -664,12 +664,16 @@ html[dir=ltr],[data-sonner-toaster][dir=ltr]{--toast-icon-margin-start:-3px;--to
|
|
|
664
664
|
align-items: stretch;
|
|
665
665
|
}
|
|
666
666
|
|
|
667
|
-
.
|
|
668
|
-
animation-duration:
|
|
667
|
+
.x1nked9z {
|
|
668
|
+
animation-duration: .12s;
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
.xk4ixfy {
|
|
672
|
+
animation-duration: 80ms;
|
|
669
673
|
}
|
|
670
674
|
|
|
671
|
-
.
|
|
672
|
-
animation-duration: var(--xjjzqp4);
|
|
675
|
+
.x350ok5 {
|
|
676
|
+
animation-duration: var(--elements-toast-duration, var(--xjjzqp4)) !important;
|
|
673
677
|
}
|
|
674
678
|
|
|
675
679
|
.xqcmdr3 {
|
|
@@ -1173,10 +1177,6 @@ html[dir=ltr],[data-sonner-toaster][dir=ltr]{--toast-icon-margin-start:-3px;--to
|
|
|
1173
1177
|
grid-template-columns: minmax(0, 1fr);
|
|
1174
1178
|
}
|
|
1175
1179
|
|
|
1176
|
-
.x18zg5m9 {
|
|
1177
|
-
grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
|
|
1178
|
-
}
|
|
1179
|
-
|
|
1180
1180
|
.x37z1gs {
|
|
1181
1181
|
grid-template-columns: minmax(0, max-content) minmax(0, 1fr);
|
|
1182
1182
|
}
|
|
@@ -2381,14 +2381,6 @@ html[dir=ltr],[data-sonner-toaster][dir=ltr]{--toast-icon-margin-start:-3px;--to
|
|
|
2381
2381
|
min-height: 144px;
|
|
2382
2382
|
}
|
|
2383
2383
|
|
|
2384
|
-
.x1hyy85k {
|
|
2385
|
-
min-height: 36px;
|
|
2386
|
-
}
|
|
2387
|
-
|
|
2388
|
-
.xb4ss6y {
|
|
2389
|
-
min-height: 48px;
|
|
2390
|
-
}
|
|
2391
|
-
|
|
2392
2384
|
.x1wiwyrm {
|
|
2393
2385
|
min-height: 52px;
|
|
2394
2386
|
}
|
package/dist/feedback.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as AsyncRegion, c as ButtonPlaceholder, n as ContentReveal, p as EmptyState, l as FieldPlaceholder,
|
|
1
|
+
export { t as AsyncRegion, c as ButtonPlaceholder, n as ContentReveal, p as EmptyState, l as FieldPlaceholder, r as LoadingScope, o as Meter, m as Notice, s as Progress, u as Skeleton, d as SkeletonText, f as Spinner, i as Toaster, a as toast } from "./src-B0UTwpOz.js";
|
package/dist/forms/dates.js
CHANGED
package/dist/forms.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { _ as AgentAvatarPicker, r as Checkbox, v as Combobox, c as Field, f as Fieldset, p as FilePicker, d as FormActions, l as Input, m as InputGroup, h as NumberField, i as RadioGroup, s as Select, n as SettingsRow, t as SettingsSection, g as Slider, a as Switch, u as Textarea, o as ToggleGroup } from "./src-
|
|
1
|
+
export { _ as AgentAvatarPicker, r as Checkbox, v as Combobox, c as Field, f as Fieldset, p as FilePicker, d as FormActions, l as Input, m as InputGroup, h as NumberField, i as RadioGroup, s as Select, n as SettingsRow, t as SettingsSection, g as Slider, a as Switch, u as Textarea, o as ToggleGroup } from "./src-DMsnWyru.js";
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { h as Accordion, v as AgentAvatar, S as Avatar, t as Badge, C as Button, g as Collapsible, l as Columns, _ as CopyValue, u as Divider, n as Heading, w as IconButton, T as IconLink, r as Identifier, i as Muted, d as Panel, a as Prose, f as Row, p as Stack, o as Status, s as Subheading, m as SurfaceLink, c as Text, E as TextButton, D as TextLink, y as agentAppearance, b as agentAvatarColors, x as agentAvatarShapes } from "./src-
|
|
1
|
+
export { h as Accordion, v as AgentAvatar, S as Avatar, t as Badge, C as Button, g as Collapsible, l as Columns, _ as CopyValue, u as Divider, n as Heading, w as IconButton, T as IconLink, r as Identifier, i as Muted, d as Panel, a as Prose, f as Row, p as Stack, o as Status, s as Subheading, m as SurfaceLink, c as Text, E as TextButton, D as TextLink, y as agentAppearance, b as agentAvatarColors, x as agentAvatarShapes } from "./src-BNlyCwOr.js";
|
package/dist/layout.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as e } from "./src-CVlgjAlw.js";
|
|
2
|
-
import { C as t, i as n, n as r, w as i } from "./src-
|
|
2
|
+
import { C as t, i as n, n as r, w as i } from "./src-BNlyCwOr.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";
|
package/dist/navigation.js
CHANGED
|
@@ -5,7 +5,21 @@ 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, embedded: t = !1 }) {
|
|
9
|
+
return /* @__PURE__ */ i("div", {
|
|
10
|
+
"aria-hidden": !0,
|
|
11
|
+
inert: !0,
|
|
12
|
+
...{
|
|
13
|
+
0: { className: "x78zum5 xxhr3t xeuugli xw2csxc xso031l x1q0q8m5 x1qndepd x1hz01jw xtqrqnz xj57cvi x1778rvt xvmahel x13qnu6 x9v5kkp x19rmrnh x1bqaal" },
|
|
14
|
+
1: { className: "x78zum5 xxhr3t xeuugli xw2csxc x1q0q8m5 x1qndepd x1hz01jw xtqrqnz xj57cvi x1778rvt xvmahel x13qnu6 x9v5kkp x19rmrnh x1bqaal x1qhh985" }
|
|
15
|
+
}[!!t | 0],
|
|
16
|
+
children: e.map((e) => /* @__PURE__ */ i("span", {
|
|
17
|
+
className: "x1n2onr6 x9f619 x3nfvp2 x6s0dn4 x2lah0s xid9utz xn9t2bk x1doqdfy xkrqix3 xuxw1ft x153jb6y x1mkgjtd x1s9zmfe x1kl8fbi x1s928wv x1j6awrg x1ccaobo x1xrz1ek x3cntg4 xyhc2n1 x13qnu6 x9v5kkp x19rmrnh x1bqaal",
|
|
18
|
+
children: e.label
|
|
19
|
+
}, e.id))
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
function s({ items: e, selectedId: t, onNavigate: n, label: r = "Page sections", embedded: a = !1 }) {
|
|
9
23
|
return /* @__PURE__ */ i("nav", {
|
|
10
24
|
"aria-label": r,
|
|
11
25
|
tabIndex: 0,
|
|
@@ -30,11 +44,11 @@ function o({ items: e, selectedId: t, onNavigate: n, label: r = "Page sections",
|
|
|
30
44
|
});
|
|
31
45
|
}
|
|
32
46
|
// packages/navigation/src/skip-link.tsx
|
|
33
|
-
function
|
|
47
|
+
function c(e) {
|
|
34
48
|
return /* @__PURE__ */ i("a", { ...r({ className: "xixxii4 x1ridm32 x12hha37 xkwijxb x174j0rr x1mvvolr x9f619 xvv7f4i xj0a0fe x1ok0vyi xpvm0e4 xbixft x1hz01jw xk4h15q xtqrqnz x1778rvt xvmahel xujl8zx x1wfrlr2 x1tkds87 x1de710j x1gnsi0 x1cm8ssg" }, e) });
|
|
35
49
|
}
|
|
36
50
|
// packages/navigation/src/tabs.tsx
|
|
37
|
-
function
|
|
51
|
+
function l({ className: e, style: t, ...r }) {
|
|
38
52
|
return /* @__PURE__ */ i(a.Root, {
|
|
39
53
|
...r,
|
|
40
54
|
...n({
|
|
@@ -44,7 +58,7 @@ function c({ className: e, style: t, ...r }) {
|
|
|
44
58
|
})
|
|
45
59
|
});
|
|
46
60
|
}
|
|
47
|
-
function
|
|
61
|
+
function u({ className: e, style: t, ...r }) {
|
|
48
62
|
return /* @__PURE__ */ i(a.List, {
|
|
49
63
|
...r,
|
|
50
64
|
...n({
|
|
@@ -54,7 +68,7 @@ function l({ className: e, style: t, ...r }) {
|
|
|
54
68
|
})
|
|
55
69
|
});
|
|
56
70
|
}
|
|
57
|
-
function
|
|
71
|
+
function d({ className: e, style: t, ...r }) {
|
|
58
72
|
return /* @__PURE__ */ i(a.Tab, {
|
|
59
73
|
...r,
|
|
60
74
|
...n({
|
|
@@ -64,7 +78,7 @@ function u({ className: e, style: t, ...r }) {
|
|
|
64
78
|
})
|
|
65
79
|
});
|
|
66
80
|
}
|
|
67
|
-
function
|
|
81
|
+
function f({ className: e, style: t, ...r }) {
|
|
68
82
|
return /* @__PURE__ */ i(a.Panel, {
|
|
69
83
|
...r,
|
|
70
84
|
...n({
|
|
@@ -74,10 +88,10 @@ function d({ className: e, style: t, ...r }) {
|
|
|
74
88
|
})
|
|
75
89
|
});
|
|
76
90
|
}
|
|
77
|
-
var
|
|
78
|
-
Root:
|
|
79
|
-
List:
|
|
80
|
-
Tab:
|
|
81
|
-
Panel:
|
|
91
|
+
var p = {
|
|
92
|
+
Root: l,
|
|
93
|
+
List: u,
|
|
94
|
+
Tab: d,
|
|
95
|
+
Panel: f
|
|
82
96
|
};
|
|
83
|
-
export { t as Breadcrumb, e as Kbd,
|
|
97
|
+
export { t as Breadcrumb, e as Kbd, s as PageNavigation, o as PageNavigationPlaceholder, c as SkipLink, p as Tabs };
|
|
@@ -8,7 +8,7 @@ export type { MessageActionProps } from './message-action.tsx';
|
|
|
8
8
|
export { MessageAction } from './message-action.tsx';
|
|
9
9
|
export type { MessageBoundaryProps } from './message-boundary.tsx';
|
|
10
10
|
export { MessageBoundary } from './message-boundary.tsx';
|
|
11
|
-
export type { PromptInputProps } from './prompt-input.tsx';
|
|
12
|
-
export { PromptInput } from './prompt-input.tsx';
|
|
11
|
+
export type { PromptInputProps, PromptInputPlaceholderProps } from './prompt-input.tsx';
|
|
12
|
+
export { PromptInput, PromptInputPlaceholder } from './prompt-input.tsx';
|
|
13
13
|
export type { Source, SourcesProps, InlineCitationProps } from './sources.tsx';
|
|
14
14
|
export { Sources, InlineCitation } from './sources.tsx';
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import type { ComponentProps, ReactNode } from 'react';
|
|
2
|
+
export type PromptInputPlaceholderProps = {
|
|
3
|
+
readonly compact?: boolean;
|
|
4
|
+
};
|
|
5
|
+
export declare function PromptInputPlaceholder({ compact }: PromptInputPlaceholderProps): ReactNode;
|
|
2
6
|
export type PromptInputProps = {
|
|
3
7
|
readonly label: string;
|
|
4
8
|
readonly value: string;
|
|
@@ -1,23 +1,40 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
|
+
type TableSizing = 'content' | 'fill';
|
|
2
3
|
type RowSizing = 'fixed' | 'content';
|
|
3
4
|
export type DataTableColumnRole = 'primary' | 'text' | 'status' | 'number' | 'timestamp' | 'actions';
|
|
4
|
-
export type
|
|
5
|
+
export type DataTableColumnLayout = {
|
|
5
6
|
readonly id: string;
|
|
6
7
|
readonly label: string;
|
|
7
8
|
readonly role: DataTableColumnRole;
|
|
8
|
-
readonly cell: (row: Row) => ReactNode;
|
|
9
9
|
readonly width?: number;
|
|
10
10
|
readonly secondary?: boolean;
|
|
11
|
+
};
|
|
12
|
+
export type DataTableColumn<Row> = DataTableColumnLayout & {
|
|
13
|
+
readonly cell: (row: Row) => ReactNode;
|
|
11
14
|
readonly truncate?: boolean;
|
|
12
15
|
readonly sortable?: boolean;
|
|
13
16
|
};
|
|
17
|
+
export type DataTablePlaceholderProps = {
|
|
18
|
+
readonly columns: ReadonlyArray<DataTableColumnLayout & {
|
|
19
|
+
readonly placeholder?: ReactNode;
|
|
20
|
+
}>;
|
|
21
|
+
readonly sizing?: TableSizing;
|
|
22
|
+
readonly rowSizing?: RowSizing;
|
|
23
|
+
readonly hideHeaders?: boolean;
|
|
24
|
+
};
|
|
25
|
+
export declare function DataTablePlaceholder({ columns: suppliedColumns, sizing, rowSizing, hideHeaders, }: DataTablePlaceholderProps): ReactNode;
|
|
14
26
|
export type DataTableTextProps = {
|
|
15
27
|
readonly children: string;
|
|
16
28
|
readonly secondary?: string | undefined;
|
|
17
29
|
readonly leading?: ReactNode;
|
|
18
30
|
readonly trailing?: ReactNode;
|
|
19
31
|
};
|
|
32
|
+
export type DataTableTextPlaceholderProps = {
|
|
33
|
+
readonly leading?: ReactNode;
|
|
34
|
+
readonly secondary?: boolean;
|
|
35
|
+
};
|
|
20
36
|
export declare function DataTableText({ children, secondary, leading, trailing }: DataTableTextProps): ReactNode;
|
|
37
|
+
export declare function DataTableTextPlaceholder({ leading, secondary }: DataTableTextPlaceholderProps): ReactNode;
|
|
21
38
|
export type DataTableSort = {
|
|
22
39
|
readonly columnId: string;
|
|
23
40
|
readonly direction: 'ascending' | 'descending';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export type { CollectionToolbarProps, FilterChip, FilterChipsProps, ColumnChoice, ColumnControlsProps, CollectionPaginationProps, } from './collection-controls.tsx';
|
|
2
2
|
export { CollectionToolbar, FilterChips, ColumnControls, CollectionPagination } from './collection-controls.tsx';
|
|
3
|
-
export type { DataTableColumn, DataTableColumnRole, DataTableSort, DataTableWindow, DataTableProps, DataTableRowAction, DataTableTextProps, } from './data-table.tsx';
|
|
4
|
-
export { DataTable, DataTableText } from './data-table.tsx';
|
|
3
|
+
export type { DataTableColumn, DataTableColumnLayout, DataTablePlaceholderProps, DataTableColumnRole, DataTableSort, DataTableWindow, DataTableProps, DataTableRowAction, DataTableTextProps, DataTableTextPlaceholderProps, } from './data-table.tsx';
|
|
4
|
+
export { DataTable, DataTableText, DataTablePlaceholder, DataTableTextPlaceholder } from './data-table.tsx';
|
|
5
5
|
export type { CollectionEndProps, CollectionScrollProps } from './collection-scroll.tsx';
|
|
6
6
|
export { CollectionEnd, CollectionScroll } from './collection-scroll.tsx';
|
|
7
7
|
export type { InspectorProps } from './inspector.tsx';
|
|
@@ -1,17 +1,23 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
|
+
export type LoadingScopeProps = {
|
|
3
|
+
readonly identity: string | number;
|
|
4
|
+
readonly children: ReactNode;
|
|
5
|
+
};
|
|
6
|
+
export declare function LoadingScope({ identity, children }: LoadingScopeProps): ReactNode;
|
|
2
7
|
export type ContentRevealProps = {
|
|
3
8
|
readonly enter: boolean;
|
|
4
|
-
readonly fill?: boolean | undefined;
|
|
5
9
|
readonly children: ReactNode;
|
|
6
10
|
};
|
|
7
|
-
export declare function ContentReveal({ enter,
|
|
11
|
+
export declare function ContentReveal({ enter, children }: ContentRevealProps): ReactNode;
|
|
12
|
+
export type AsyncRegionState = 'pending' | 'ready' | 'failed';
|
|
8
13
|
export type AsyncRegionProps = {
|
|
9
|
-
readonly pending: boolean;
|
|
10
14
|
readonly label: string;
|
|
11
15
|
readonly placeholder: ReactNode;
|
|
12
|
-
|
|
13
|
-
readonly
|
|
14
|
-
readonly
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
} & ({
|
|
17
|
+
readonly state: 'pending';
|
|
18
|
+
readonly children?: never;
|
|
19
|
+
} | {
|
|
20
|
+
readonly state: 'ready' | 'failed';
|
|
21
|
+
readonly children: ReactNode;
|
|
22
|
+
});
|
|
23
|
+
export declare function AsyncRegion(props: AsyncRegionProps): ReactNode;
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
2
|
import type { PlacementStyle } from '../../foundations/src/style-composition.ts';
|
|
3
3
|
export type ButtonPlaceholderProps = {
|
|
4
|
-
readonly width?: number | string;
|
|
5
4
|
readonly xstyle?: PlacementStyle;
|
|
6
|
-
}
|
|
5
|
+
} & ({
|
|
6
|
+
readonly icon: true;
|
|
7
|
+
readonly width?: never;
|
|
8
|
+
} | {
|
|
9
|
+
readonly icon?: false;
|
|
10
|
+
readonly width?: number | string;
|
|
11
|
+
});
|
|
7
12
|
export type FieldPlaceholderProps = {
|
|
8
13
|
readonly label?: string;
|
|
9
14
|
readonly hint?: string;
|
|
@@ -12,5 +17,5 @@ export type FieldPlaceholderProps = {
|
|
|
12
17
|
readonly width?: number | string;
|
|
13
18
|
readonly xstyle?: PlacementStyle;
|
|
14
19
|
};
|
|
15
|
-
export declare function ButtonPlaceholder({ width, xstyle }: ButtonPlaceholderProps): ReactNode;
|
|
20
|
+
export declare function ButtonPlaceholder({ width, icon, xstyle }: ButtonPlaceholderProps): ReactNode;
|
|
16
21
|
export declare function FieldPlaceholder({ label, hint, multiline, rows, width, xstyle, }: FieldPlaceholderProps): ReactNode;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export { EmptyState, Notice } from './feedback.tsx';
|
|
2
2
|
export type { ButtonPlaceholderProps, FieldPlaceholderProps } from './control-placeholders.tsx';
|
|
3
3
|
export { ButtonPlaceholder, FieldPlaceholder } from './control-placeholders.tsx';
|
|
4
|
-
export { Loading } from './loading.tsx';
|
|
5
4
|
export type { ProgressProps, MeterProps } from './progress.tsx';
|
|
6
5
|
export { Progress, Meter } from './progress.tsx';
|
|
7
6
|
export type { SkeletonProps, SkeletonTextProps, SpinnerProps } from './skeleton.tsx';
|
|
@@ -10,5 +9,5 @@ export type { ExternalToast as ToastOptions } from 'sonner';
|
|
|
10
9
|
export { toast } from 'sonner';
|
|
11
10
|
export type { ToasterProps } from './toast.tsx';
|
|
12
11
|
export { Toaster } from './toast.tsx';
|
|
13
|
-
export type { AsyncRegionProps, ContentRevealProps } from './async-region.tsx';
|
|
14
|
-
export { AsyncRegion, ContentReveal } from './async-region.tsx';
|
|
12
|
+
export type { AsyncRegionProps, AsyncRegionState, ContentRevealProps, LoadingScopeProps } from './async-region.tsx';
|
|
13
|
+
export { AsyncRegion, ContentReveal, LoadingScope } from './async-region.tsx';
|
|
@@ -25,6 +25,10 @@ export declare const controlStyles: Readonly<{
|
|
|
25
25
|
readonly overflowWrap: stylex.StyleXClassNameFor<"overflowWrap", "anywhere">;
|
|
26
26
|
readonly textAlign: stylex.StyleXClassNameFor<"textAlign", "center">;
|
|
27
27
|
}>;
|
|
28
|
+
readonly iconButton: Readonly<{
|
|
29
|
+
readonly minWidth: stylex.StyleXClassNameFor<"minWidth", string>;
|
|
30
|
+
readonly paddingInline: stylex.StyleXClassNameFor<"paddingInline", 0>;
|
|
31
|
+
}>;
|
|
28
32
|
readonly field: Readonly<{
|
|
29
33
|
readonly display: stylex.StyleXClassNameFor<"display", "block">;
|
|
30
34
|
readonly width: stylex.StyleXClassNameFor<"width", "100%">;
|
|
@@ -62,6 +66,23 @@ export declare const controlStyles: Readonly<{
|
|
|
62
66
|
readonly resize: stylex.StyleXClassNameFor<"resize", "vertical">;
|
|
63
67
|
readonly lineHeight: stylex.StyleXClassNameFor<"lineHeight", string>;
|
|
64
68
|
}>;
|
|
69
|
+
readonly plainTextarea: Readonly<{
|
|
70
|
+
readonly minHeight: stylex.StyleXClassNameFor<"minHeight", string>;
|
|
71
|
+
readonly maxHeight: stylex.StyleXClassNameFor<"maxHeight", "30dvh">;
|
|
72
|
+
readonly fieldSizing: stylex.StyleXClassNameFor<"fieldSizing", "content">;
|
|
73
|
+
readonly resize: stylex.StyleXClassNameFor<"resize", "none">;
|
|
74
|
+
readonly paddingBlock: stylex.StyleXClassNameFor<"paddingBlock", 0>;
|
|
75
|
+
readonly paddingInline: stylex.StyleXClassNameFor<"paddingInline", 0>;
|
|
76
|
+
readonly borderWidth: stylex.StyleXClassNameFor<"borderWidth", 0>;
|
|
77
|
+
readonly borderRadius: stylex.StyleXClassNameFor<"borderRadius", 0>;
|
|
78
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", "transparent">;
|
|
79
|
+
readonly ':focus-visible': stylex.StyleXClassNameFor<":focus-visible", {
|
|
80
|
+
readonly outlineStyle: "none";
|
|
81
|
+
}>;
|
|
82
|
+
readonly ':disabled': stylex.StyleXClassNameFor<":disabled", {
|
|
83
|
+
readonly backgroundColor: "transparent";
|
|
84
|
+
}>;
|
|
85
|
+
}>;
|
|
65
86
|
readonly group: Readonly<{
|
|
66
87
|
readonly position: stylex.StyleXClassNameFor<"position", "relative">;
|
|
67
88
|
readonly display: stylex.StyleXClassNameFor<"display", "flex">;
|
|
@@ -182,6 +182,11 @@ export declare const motion: stylex.VarGroup<Readonly<{
|
|
|
182
182
|
drawerDuration: string;
|
|
183
183
|
drawerEasing: string;
|
|
184
184
|
}>, symbol>;
|
|
185
|
+
export declare const loading: {
|
|
186
|
+
delaySeconds: number;
|
|
187
|
+
revealMs: number;
|
|
188
|
+
placeholderMs: number;
|
|
189
|
+
};
|
|
185
190
|
export declare const shadows: stylex.VarGroup<Readonly<{
|
|
186
191
|
popup: string;
|
|
187
192
|
selection: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { Kbd, Breadcrumb } from './navigation.tsx';
|
|
2
|
-
export type { PageNavigationItem, PageNavigationProps } from './page-navigation.tsx';
|
|
3
|
-
export { PageNavigation } from './page-navigation.tsx';
|
|
2
|
+
export type { PageNavigationItem, PageNavigationProps, PageNavigationPlaceholderProps } from './page-navigation.tsx';
|
|
3
|
+
export { PageNavigation, PageNavigationPlaceholder } from './page-navigation.tsx';
|
|
4
4
|
export { SkipLink } from './skip-link.tsx';
|
|
5
5
|
export { Tabs } from './tabs.tsx';
|
|
@@ -11,4 +11,9 @@ export type PageNavigationProps<ItemId extends string = string> = {
|
|
|
11
11
|
readonly label?: string;
|
|
12
12
|
readonly embedded?: boolean;
|
|
13
13
|
};
|
|
14
|
+
export type PageNavigationPlaceholderProps = {
|
|
15
|
+
readonly items: ReadonlyArray<Pick<PageNavigationItem, 'id' | 'label'>>;
|
|
16
|
+
readonly embedded?: boolean;
|
|
17
|
+
};
|
|
18
|
+
export declare function PageNavigationPlaceholder({ items, embedded }: PageNavigationPlaceholderProps): ReactNode;
|
|
14
19
|
export declare function PageNavigation<ItemId extends string>({ items, selectedId, onNavigate, label, embedded, }: PageNavigationProps<ItemId>): 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-BNlyCwOr.js";
|
|
2
|
+
import { l as t } from "./src-DMsnWyru.js";
|
|
3
3
|
import { conditions as n } from "./tokens.js";
|
|
4
4
|
import { r } from "./pierre-theme-CBAncKdH.js";
|
|
5
5
|
import * as i from "@stylexjs/stylex";
|