@mechane-ai/elements 0.29.0 → 0.31.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 +6 -0
- package/dist/ai.js +250 -172
- package/dist/{categorical-values-Dfe3nkBV.js → categorical-values-Cfn6nwHi.js} +2 -2
- package/dist/{chart-frame-rL7_RAIc.js → chart-frame-C8JU2tlM.js} +9 -9
- package/dist/{chart-input-JIyGPusK.js → chart-input-D0hBpH1r.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 +3 -3
- package/dist/charts.js +1 -1
- package/dist/{code-block-DPeyW4sm.js → code-block-DlzYynjv.js} +21 -20
- package/dist/collections.js +224 -211
- package/dist/content/code.js +1 -1
- package/dist/content/diff.js +4 -4
- package/dist/content/link.js +1 -1
- package/dist/content/markdown.js +3 -3
- package/dist/content/tree.js +3 -3
- package/dist/{content-link-5oRGjDHa.js → content-link-Dh1hon1m.js} +1 -1
- package/dist/content.js +1 -394
- package/dist/elements.css +41 -23
- 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 +392 -318
- package/dist/navigation/commands.js +1 -1
- package/dist/packages/ai/src/command-activity.d.ts +7 -0
- package/dist/packages/ai/src/command-details.d.ts +10 -0
- package/dist/packages/ai/src/index.d.ts +4 -0
- package/dist/packages/content/src/code/code-block.d.ts +2 -1
- package/dist/packages/content/src/log-viewer.d.ts +2 -1
- package/dist/packages/content/src/viewer-styles.d.ts +8 -0
- package/dist/packages/foundations/src/control-styles.d.ts +3 -0
- package/dist/packages/foundations/src/header-styles.d.ts +47 -0
- package/dist/packages/layout/src/frame.stylex.d.ts +0 -2
- package/dist/{pierre-diff-C3U_qae6.js → pierre-diff-DOkqEUqx.js} +1 -1
- package/dist/{pierre-tree-D2kRr4h4.js → pierre-tree-tdFSl55t.js} +2 -2
- package/dist/{src-BfPaaDxg.js → src-Bb2fDOeE.js} +105 -105
- package/dist/src-CVleZrPa.js +395 -0
- package/dist/{src-eWcNz_oB.js → src-DvLYUTID.js} +14 -14
- package/dist/{src-E3Or8tkO.js → src-SE6QORrJ.js} +347 -290
- package/dist/{viewer-styles-CpHqp5Qv.js → viewer-styles-DsFYri4K.js} +10 -0
- package/package.json +1 -1
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { CommandDetailsProps } from './command-details.tsx';
|
|
3
|
+
export type CommandStatus = 'pending' | 'running' | 'complete' | 'failed' | 'stopped' | 'unknown';
|
|
4
|
+
export type CommandActivityProps = Omit<CommandDetailsProps, 'isRunning'> & {
|
|
5
|
+
readonly status: CommandStatus;
|
|
6
|
+
};
|
|
7
|
+
export declare function CommandActivity({ status, ...details }: CommandActivityProps): ReactNode;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
export type CommandDetailsProps = {
|
|
3
|
+
readonly command?: string | undefined;
|
|
4
|
+
readonly output?: string | undefined;
|
|
5
|
+
readonly commandNotice?: string | undefined;
|
|
6
|
+
readonly outputNotice?: string | undefined;
|
|
7
|
+
readonly outputLanguage?: string;
|
|
8
|
+
readonly isRunning?: boolean;
|
|
9
|
+
};
|
|
10
|
+
export declare function CommandDetails({ command, output, commandNotice, outputNotice, outputLanguage, isRunning, }: CommandDetailsProps): ReactNode;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
export type { ApprovalProps } from './approval.tsx';
|
|
2
2
|
export { Approval } from './approval.tsx';
|
|
3
|
+
export { CommandActivity } from './command-activity.tsx';
|
|
4
|
+
export type { CommandActivityProps, CommandStatus } from './command-activity.tsx';
|
|
5
|
+
export { CommandDetails } from './command-details.tsx';
|
|
6
|
+
export type { CommandDetailsProps } from './command-details.tsx';
|
|
3
7
|
export type { ConversationRootProps, ConversationViewportProps, ConversationContentProps, ConversationItemProps, ConversationJumpProps, ConversationControlsProps, ConversationLatestButtonProps, } from './conversation.tsx';
|
|
4
8
|
export { Conversation } from './conversation.tsx';
|
|
5
9
|
export type { MessageKind, MessageProps, MessageAttachmentProps } from './message.tsx';
|
|
@@ -9,6 +9,7 @@ export type CodeSelection = {
|
|
|
9
9
|
};
|
|
10
10
|
export type CodeBlockProps = {
|
|
11
11
|
readonly code: string;
|
|
12
|
+
readonly variant?: 'default' | 'embedded';
|
|
12
13
|
readonly language?: string | undefined;
|
|
13
14
|
readonly filename?: string | undefined;
|
|
14
15
|
readonly isStreaming?: boolean;
|
|
@@ -19,4 +20,4 @@ export type CodeBlockProps = {
|
|
|
19
20
|
readonly maxHeight?: number;
|
|
20
21
|
readonly maxLines?: number;
|
|
21
22
|
};
|
|
22
|
-
export declare function CodeBlock({ code, language, filename, isStreaming, shouldWrap, showLineNumbers, selectedLines, annotations, maxHeight, maxLines, }: CodeBlockProps): ReactNode;
|
|
23
|
+
export declare function CodeBlock({ code, variant, language, filename, isStreaming, shouldWrap, showLineNumbers, selectedLines, annotations, maxHeight, maxLines, }: CodeBlockProps): ReactNode;
|
|
@@ -2,8 +2,9 @@ import type { ReactNode } from 'react';
|
|
|
2
2
|
export type LogViewerProps = {
|
|
3
3
|
readonly output: string;
|
|
4
4
|
readonly label: string;
|
|
5
|
+
readonly variant?: 'default' | 'embedded';
|
|
5
6
|
readonly maxLines?: number;
|
|
6
7
|
readonly maxHeight?: number;
|
|
7
8
|
readonly isRunning?: boolean;
|
|
8
9
|
};
|
|
9
|
-
export declare function LogViewer({ output, label, maxLines, maxHeight, isRunning, }: LogViewerProps): ReactNode;
|
|
10
|
+
export declare function LogViewer({ output, label, variant, maxLines, maxHeight, isRunning, }: LogViewerProps): ReactNode;
|
|
@@ -12,6 +12,14 @@ export declare const viewerStyles: Readonly<{
|
|
|
12
12
|
readonly lineHeight: stylex.StyleXClassNameFor<"lineHeight", string>;
|
|
13
13
|
readonly fontWeight: stylex.StyleXClassNameFor<"fontWeight", string>;
|
|
14
14
|
}>;
|
|
15
|
+
readonly embedded: Readonly<{
|
|
16
|
+
readonly borderWidth: stylex.StyleXClassNameFor<"borderWidth", 0>;
|
|
17
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
|
|
18
|
+
}>;
|
|
19
|
+
readonly embeddedHeader: Readonly<{
|
|
20
|
+
readonly borderBlockEndWidth: stylex.StyleXClassNameFor<"borderBlockEndWidth", 0>;
|
|
21
|
+
readonly paddingBlock: stylex.StyleXClassNameFor<"paddingBlock", string>;
|
|
22
|
+
}>;
|
|
15
23
|
readonly header: Readonly<{
|
|
16
24
|
readonly display: stylex.StyleXClassNameFor<"display", "flex">;
|
|
17
25
|
readonly flexWrap: stylex.StyleXClassNameFor<"flexWrap", "wrap">;
|
|
@@ -37,6 +37,9 @@ export declare const controlStyles: Readonly<{
|
|
|
37
37
|
readonly color: stylex.StyleXClassNameFor<"color", string>;
|
|
38
38
|
readonly fontSize: stylex.StyleXClassNameFor<"fontSize", string>;
|
|
39
39
|
}>;
|
|
40
|
+
readonly singleLineField: Readonly<{
|
|
41
|
+
readonly height: stylex.StyleXClassNameFor<"height", string>;
|
|
42
|
+
}>;
|
|
40
43
|
readonly fieldRoot: Readonly<{
|
|
41
44
|
readonly display: stylex.StyleXClassNameFor<"display", "flex">;
|
|
42
45
|
readonly flexDirection: stylex.StyleXClassNameFor<"flexDirection", "column">;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import * as stylex from '@stylexjs/stylex';
|
|
2
|
+
export declare const headerStyles: Readonly<{
|
|
3
|
+
readonly row: Readonly<{
|
|
4
|
+
readonly boxSizing: stylex.StyleXClassNameFor<"boxSizing", "border-box">;
|
|
5
|
+
readonly position: stylex.StyleXClassNameFor<"position", "relative">;
|
|
6
|
+
readonly display: stylex.StyleXClassNameFor<"display", "flex">;
|
|
7
|
+
readonly alignItems: stylex.StyleXClassNameFor<"alignItems", "center">;
|
|
8
|
+
readonly flexWrap: stylex.StyleXClassNameFor<"flexWrap", "wrap">;
|
|
9
|
+
readonly minWidth: stylex.StyleXClassNameFor<"minWidth", 0>;
|
|
10
|
+
readonly minHeight: stylex.StyleXClassNameFor<"minHeight", string>;
|
|
11
|
+
readonly paddingInline: stylex.StyleXClassNameFor<"paddingInline", string>;
|
|
12
|
+
readonly paddingBlock: stylex.StyleXClassNameFor<"paddingBlock", `calc((${stylex.StyleXVar<string>} - ${stylex.StyleXVar<string>}) / 2)`>;
|
|
13
|
+
}>;
|
|
14
|
+
readonly blockEnd: Readonly<{
|
|
15
|
+
readonly '::after': stylex.StyleXClassNameFor<"::after", {
|
|
16
|
+
readonly content: "\"\"";
|
|
17
|
+
readonly position: "absolute";
|
|
18
|
+
readonly insetInline: 0;
|
|
19
|
+
readonly insetBlockEnd: 0;
|
|
20
|
+
readonly height: 1;
|
|
21
|
+
readonly backgroundColor: stylex.StyleXVar<string>;
|
|
22
|
+
readonly pointerEvents: "none";
|
|
23
|
+
}>;
|
|
24
|
+
}>;
|
|
25
|
+
readonly blockStart: Readonly<{
|
|
26
|
+
readonly '::after': stylex.StyleXClassNameFor<"::after", {
|
|
27
|
+
readonly content: "\"\"";
|
|
28
|
+
readonly position: "absolute";
|
|
29
|
+
readonly insetInline: 0;
|
|
30
|
+
readonly insetBlockStart: 0;
|
|
31
|
+
readonly height: 1;
|
|
32
|
+
readonly backgroundColor: stylex.StyleXVar<string>;
|
|
33
|
+
readonly pointerEvents: "none";
|
|
34
|
+
}>;
|
|
35
|
+
}>;
|
|
36
|
+
readonly inlineEnd: Readonly<{
|
|
37
|
+
readonly '::after': stylex.StyleXClassNameFor<"::after", {
|
|
38
|
+
readonly content: "\"\"";
|
|
39
|
+
readonly position: "absolute";
|
|
40
|
+
readonly insetBlock: 0;
|
|
41
|
+
readonly insetInlineEnd: 0;
|
|
42
|
+
readonly width: 1;
|
|
43
|
+
readonly backgroundColor: stylex.StyleXVar<string>;
|
|
44
|
+
readonly pointerEvents: "none";
|
|
45
|
+
}>;
|
|
46
|
+
}>;
|
|
47
|
+
}>;
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import * as stylex from '@stylexjs/stylex';
|
|
2
2
|
export declare const frame: stylex.VarGroup<Readonly<{
|
|
3
3
|
sidebarWidth: string;
|
|
4
|
-
navigationHeight: string;
|
|
5
4
|
navigationInset: string;
|
|
6
5
|
navigationPadding: string;
|
|
7
6
|
footerHeight: string;
|
|
8
|
-
footerPadding: string;
|
|
9
7
|
detailWidth: string;
|
|
10
8
|
detailMaxWidth: string;
|
|
11
9
|
detailTop: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "./use-scroll-tab-index-Dxpdh4W7.js";
|
|
2
2
|
import { n as t, t as n } from "./pierre-theme-DsrSwl5m.js";
|
|
3
|
-
import { t as r } from "./viewer-styles-
|
|
3
|
+
import { t as r } from "./viewer-styles-DsFYri4K.js";
|
|
4
4
|
import * as i from "@stylexjs/stylex";
|
|
5
5
|
import { useCallback as a, useState as o } from "react";
|
|
6
6
|
import { jsx as s } from "react/jsx-runtime";
|
|
@@ -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-SE6QORrJ.js";
|
|
2
|
+
import { l as t } from "./src-Bb2fDOeE.js";
|
|
3
3
|
import { f as n } from "./tokens.stylex-BoRZ3D8s.js";
|
|
4
4
|
import { r } from "./pierre-theme-DsrSwl5m.js";
|
|
5
5
|
import * as i from "@stylexjs/stylex";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as e, C as t, S as n, b as r, i, s as a } from "./src-SE6QORrJ.js";
|
|
2
2
|
import { t as o } from "./style-composition-uYlczSsB.js";
|
|
3
3
|
import { mergeProps as s } from "@base-ui/react/merge-props";
|
|
4
4
|
import * as c from "@stylexjs/stylex";
|
|
@@ -53,7 +53,7 @@ var E = {
|
|
|
53
53
|
}
|
|
54
54
|
}, D = {
|
|
55
55
|
field: { field: { $$css: !0 } }.field,
|
|
56
|
-
plain:
|
|
56
|
+
plain: e.plainTextarea
|
|
57
57
|
}, O = {
|
|
58
58
|
trigger: {
|
|
59
59
|
k1xSpc: "x3nfvp2",
|
|
@@ -186,36 +186,36 @@ var E = {
|
|
|
186
186
|
function ne(e) {
|
|
187
187
|
return /* @__PURE__ */ u(h.Root, { ...e });
|
|
188
188
|
}
|
|
189
|
-
function re({ className:
|
|
189
|
+
function re({ className: t, style: n, xstyle: r, ...i }) {
|
|
190
190
|
return /* @__PURE__ */ u(h.InputGroup, {
|
|
191
191
|
...i,
|
|
192
192
|
...o({
|
|
193
|
-
className:
|
|
194
|
-
style:
|
|
195
|
-
styles: c.props(
|
|
193
|
+
className: t,
|
|
194
|
+
style: n,
|
|
195
|
+
styles: c.props(e.group, k.inputGroup, r)
|
|
196
196
|
})
|
|
197
197
|
});
|
|
198
198
|
}
|
|
199
|
-
function A({ className:
|
|
199
|
+
function A({ className: t, style: n, ...r }) {
|
|
200
200
|
return /* @__PURE__ */ u(h.Label, {
|
|
201
201
|
...r,
|
|
202
202
|
...o({
|
|
203
|
-
className:
|
|
204
|
-
style:
|
|
205
|
-
styles: c.props(
|
|
203
|
+
className: t,
|
|
204
|
+
style: n,
|
|
205
|
+
styles: c.props(e.label)
|
|
206
206
|
})
|
|
207
207
|
});
|
|
208
208
|
}
|
|
209
209
|
function j(e) {
|
|
210
210
|
return /* @__PURE__ */ u(h.Value, { ...e });
|
|
211
211
|
}
|
|
212
|
-
function M({ className:
|
|
212
|
+
function M({ className: t, style: n, ...r }) {
|
|
213
213
|
return /* @__PURE__ */ u(h.Input, {
|
|
214
214
|
...r,
|
|
215
215
|
...o({
|
|
216
|
-
className:
|
|
217
|
-
style:
|
|
218
|
-
styles: c.props(
|
|
216
|
+
className: t,
|
|
217
|
+
style: n,
|
|
218
|
+
styles: c.props(e.base, e.field, e.singleLineField, E.input, e.embedded, k.input)
|
|
219
219
|
})
|
|
220
220
|
});
|
|
221
221
|
}
|
|
@@ -344,13 +344,13 @@ function U({ className: e, style: t, ...n }) {
|
|
|
344
344
|
})
|
|
345
345
|
});
|
|
346
346
|
}
|
|
347
|
-
function W({ className:
|
|
347
|
+
function W({ className: t, style: n, ...r }) {
|
|
348
348
|
return /* @__PURE__ */ u(h.Chip, {
|
|
349
349
|
...r,
|
|
350
350
|
...o({
|
|
351
|
-
className:
|
|
352
|
-
style:
|
|
353
|
-
styles: c.props(
|
|
351
|
+
className: t,
|
|
352
|
+
style: n,
|
|
353
|
+
styles: c.props(e.group, k.chip)
|
|
354
354
|
})
|
|
355
355
|
});
|
|
356
356
|
}
|
|
@@ -392,25 +392,25 @@ var K = {
|
|
|
392
392
|
Collection: h.Collection
|
|
393
393
|
};
|
|
394
394
|
// packages/forms/src/agent-avatar-picker.tsx
|
|
395
|
-
function q({ value:
|
|
395
|
+
function q({ value: e, onValueChange: i, disabled: a = !1 }) {
|
|
396
396
|
let o = l(), s = l();
|
|
397
397
|
return /* @__PURE__ */ d("div", {
|
|
398
398
|
className: "x78zum5 xdt5ytf xaml1ju x1hz01jw xj57cvi xeuugli x193iq5w x16m5f1z",
|
|
399
399
|
children: [
|
|
400
400
|
/* @__PURE__ */ d("div", {
|
|
401
401
|
className: "x78zum5 x6s0dn4 x1n8ia3y xeuugli",
|
|
402
|
-
children: [/* @__PURE__ */ u(
|
|
402
|
+
children: [/* @__PURE__ */ u(r, {
|
|
403
403
|
seed: "preview",
|
|
404
|
-
appearance:
|
|
404
|
+
appearance: e,
|
|
405
405
|
size: "lg"
|
|
406
406
|
}), /* @__PURE__ */ d("div", {
|
|
407
407
|
className: "x78zum5 xdt5ytf xeuugli",
|
|
408
408
|
children: [/* @__PURE__ */ u("span", {
|
|
409
409
|
className: "xbixft xtqrqnz xk4h15q x1778rvt xn80e1m",
|
|
410
|
-
children:
|
|
410
|
+
children: e.shape
|
|
411
411
|
}), /* @__PURE__ */ u("span", {
|
|
412
412
|
className: "x153jb6y xy8obcc xas2l8k xn80e1m",
|
|
413
|
-
children:
|
|
413
|
+
children: e.color
|
|
414
414
|
})]
|
|
415
415
|
})]
|
|
416
416
|
}),
|
|
@@ -422,27 +422,27 @@ function q({ value: t, onValueChange: n, disabled: r = !1 }) {
|
|
|
422
422
|
children: "Shape"
|
|
423
423
|
}), /* @__PURE__ */ u(_, {
|
|
424
424
|
"aria-labelledby": o,
|
|
425
|
-
value:
|
|
426
|
-
onValueChange: (
|
|
427
|
-
...
|
|
428
|
-
shape:
|
|
425
|
+
value: e.shape,
|
|
426
|
+
onValueChange: (t) => i({
|
|
427
|
+
...e,
|
|
428
|
+
shape: t
|
|
429
429
|
}),
|
|
430
|
-
disabled:
|
|
430
|
+
disabled: a,
|
|
431
431
|
className: "xrvj5dj x10yxpwy x15eknm3 xunmzkg",
|
|
432
|
-
children:
|
|
433
|
-
value:
|
|
434
|
-
"aria-label":
|
|
435
|
-
title:
|
|
432
|
+
children: t.map((t) => /* @__PURE__ */ u(g.Root, {
|
|
433
|
+
value: t,
|
|
434
|
+
"aria-label": t,
|
|
435
|
+
title: t,
|
|
436
436
|
className: "x3nfvp2 x6s0dn4 xl56j7k x9f619 x16opp91 x1gjsuxi x17tes2r x17oiadl x1s01oa9 xmkeg23 x1y0btm7 x9r1u3d xy32g2j xjbqb8w x1ypdohk x1bn55bi xgm7wsc x17lu4q8 x1480za7 x13qnu6 x9v5kkp x19rmrnh x7s97pk x1m8qfh3 xwj21n9",
|
|
437
|
-
children: /* @__PURE__ */ u(
|
|
438
|
-
seed:
|
|
437
|
+
children: /* @__PURE__ */ u(r, {
|
|
438
|
+
seed: t,
|
|
439
439
|
appearance: {
|
|
440
|
-
...
|
|
441
|
-
shape:
|
|
440
|
+
...e,
|
|
441
|
+
shape: t
|
|
442
442
|
},
|
|
443
443
|
size: "md"
|
|
444
444
|
})
|
|
445
|
-
},
|
|
445
|
+
}, t))
|
|
446
446
|
})]
|
|
447
447
|
}),
|
|
448
448
|
/* @__PURE__ */ d("div", {
|
|
@@ -453,27 +453,27 @@ function q({ value: t, onValueChange: n, disabled: r = !1 }) {
|
|
|
453
453
|
children: "Color"
|
|
454
454
|
}), /* @__PURE__ */ u(_, {
|
|
455
455
|
"aria-labelledby": s,
|
|
456
|
-
value:
|
|
457
|
-
onValueChange: (
|
|
458
|
-
...
|
|
459
|
-
color:
|
|
456
|
+
value: e.color,
|
|
457
|
+
onValueChange: (t) => i({
|
|
458
|
+
...e,
|
|
459
|
+
color: t
|
|
460
460
|
}),
|
|
461
|
-
disabled:
|
|
461
|
+
disabled: a,
|
|
462
462
|
className: "xrvj5dj x10yxpwy x15eknm3 xunmzkg",
|
|
463
|
-
children:
|
|
464
|
-
value:
|
|
465
|
-
"aria-label":
|
|
466
|
-
title:
|
|
463
|
+
children: n.map((t) => /* @__PURE__ */ u(g.Root, {
|
|
464
|
+
value: t,
|
|
465
|
+
"aria-label": t,
|
|
466
|
+
title: t,
|
|
467
467
|
className: "x3nfvp2 x6s0dn4 xl56j7k x9f619 x16opp91 x1gjsuxi x17tes2r x17oiadl x1s01oa9 xmkeg23 x1y0btm7 x9r1u3d xy32g2j xjbqb8w x1ypdohk x1bn55bi xgm7wsc x17lu4q8 x1480za7 x13qnu6 x9v5kkp x19rmrnh x7s97pk x1m8qfh3 xwj21n9",
|
|
468
|
-
children: /* @__PURE__ */ u(
|
|
469
|
-
seed:
|
|
468
|
+
children: /* @__PURE__ */ u(r, {
|
|
469
|
+
seed: t,
|
|
470
470
|
appearance: {
|
|
471
|
-
...
|
|
472
|
-
color:
|
|
471
|
+
...e,
|
|
472
|
+
color: t
|
|
473
473
|
},
|
|
474
474
|
size: "md"
|
|
475
475
|
})
|
|
476
|
-
},
|
|
476
|
+
}, t))
|
|
477
477
|
})]
|
|
478
478
|
})
|
|
479
479
|
]
|
|
@@ -554,49 +554,49 @@ function X({ className: e, style: t, ...n }) {
|
|
|
554
554
|
})
|
|
555
555
|
});
|
|
556
556
|
}
|
|
557
|
-
function ie({ xstyle:
|
|
558
|
-
return /* @__PURE__ */ u("div", { ...s(c.props(
|
|
557
|
+
function ie({ xstyle: t, ...n }) {
|
|
558
|
+
return /* @__PURE__ */ u("div", { ...s(c.props(e.group, t), n) });
|
|
559
559
|
}
|
|
560
560
|
function ae(e) {
|
|
561
561
|
return /* @__PURE__ */ u("span", { ...s({ className: "x3nfvp2 x2lah0s x6s0dn4 x1atzlso x153jb6y x1hz01jw xj57cvi xtqrqnz x1778rvt" }, e) });
|
|
562
562
|
}
|
|
563
|
-
function oe({ className:
|
|
563
|
+
function oe({ className: t, style: n, xstyle: r, ...i }) {
|
|
564
564
|
return /* @__PURE__ */ u(y, {
|
|
565
565
|
...i,
|
|
566
566
|
...o({
|
|
567
|
-
className:
|
|
568
|
-
style:
|
|
569
|
-
styles: c.props(
|
|
567
|
+
className: t,
|
|
568
|
+
style: n,
|
|
569
|
+
styles: c.props(e.base, e.field, e.singleLineField, E.input, e.embedded, r)
|
|
570
570
|
})
|
|
571
571
|
});
|
|
572
572
|
}
|
|
573
|
-
function se({ className:
|
|
573
|
+
function se({ className: t, style: n, xstyle: r, ...i }) {
|
|
574
574
|
return /* @__PURE__ */ u(b.Root, {
|
|
575
575
|
...i,
|
|
576
576
|
...o({
|
|
577
|
-
className:
|
|
578
|
-
style:
|
|
579
|
-
styles: c.props(
|
|
577
|
+
className: t,
|
|
578
|
+
style: n,
|
|
579
|
+
styles: c.props(e.fieldRoot, r)
|
|
580
580
|
})
|
|
581
581
|
});
|
|
582
582
|
}
|
|
583
|
-
function ce({ className:
|
|
583
|
+
function ce({ className: t, style: n, ...r }) {
|
|
584
584
|
return /* @__PURE__ */ u(b.Group, {
|
|
585
585
|
...r,
|
|
586
586
|
...o({
|
|
587
|
-
className:
|
|
588
|
-
style:
|
|
589
|
-
styles: c.props(
|
|
587
|
+
className: t,
|
|
588
|
+
style: n,
|
|
589
|
+
styles: c.props(e.group)
|
|
590
590
|
})
|
|
591
591
|
});
|
|
592
592
|
}
|
|
593
|
-
function le({ className:
|
|
593
|
+
function le({ className: t, style: n, ...r }) {
|
|
594
594
|
return /* @__PURE__ */ u(b.Input, {
|
|
595
595
|
...r,
|
|
596
596
|
...o({
|
|
597
|
-
className:
|
|
598
|
-
style:
|
|
599
|
-
styles: c.props(
|
|
597
|
+
className: t,
|
|
598
|
+
style: n,
|
|
599
|
+
styles: c.props(e.base, e.field, e.singleLineField, E.input, e.embedded, J.numberInput)
|
|
600
600
|
})
|
|
601
601
|
});
|
|
602
602
|
}
|
|
@@ -674,13 +674,13 @@ function ge({ className: e, style: t, ...n }) {
|
|
|
674
674
|
})
|
|
675
675
|
});
|
|
676
676
|
}
|
|
677
|
-
function _e({ className:
|
|
677
|
+
function _e({ className: t, style: n, ...r }) {
|
|
678
678
|
return /* @__PURE__ */ u(x.Label, {
|
|
679
679
|
...r,
|
|
680
680
|
...o({
|
|
681
|
-
className:
|
|
682
|
-
style:
|
|
683
|
-
styles: c.props(
|
|
681
|
+
className: t,
|
|
682
|
+
style: n,
|
|
683
|
+
styles: c.props(e.label)
|
|
684
684
|
})
|
|
685
685
|
});
|
|
686
686
|
}
|
|
@@ -694,14 +694,14 @@ function ve({ className: e, style: t, ...n }) {
|
|
|
694
694
|
})
|
|
695
695
|
});
|
|
696
696
|
}
|
|
697
|
-
function ye({ className:
|
|
697
|
+
function ye({ className: t, style: n, xstyle: r, ...i }) {
|
|
698
698
|
return /* @__PURE__ */ u(y, {
|
|
699
699
|
...i,
|
|
700
700
|
type: "file",
|
|
701
701
|
...o({
|
|
702
|
-
className:
|
|
703
|
-
style:
|
|
704
|
-
styles: c.props(
|
|
702
|
+
className: t,
|
|
703
|
+
style: n,
|
|
704
|
+
styles: c.props(e.base, e.field, e.singleLineField, E.input, J.file, r)
|
|
705
705
|
})
|
|
706
706
|
});
|
|
707
707
|
}
|
|
@@ -759,33 +759,33 @@ function Te({ children: e, align: t = "end", hasSeparator: n = !1, xstyle: r })
|
|
|
759
759
|
});
|
|
760
760
|
}
|
|
761
761
|
// packages/forms/src/forms.tsx
|
|
762
|
-
function Ee({ className:
|
|
762
|
+
function Ee({ className: t, style: n, xstyle: r, ...i }) {
|
|
763
763
|
return /* @__PURE__ */ u(S.Root, {
|
|
764
764
|
...i,
|
|
765
765
|
...o({
|
|
766
|
-
className:
|
|
767
|
-
style:
|
|
768
|
-
styles: c.props(
|
|
766
|
+
className: t,
|
|
767
|
+
style: n,
|
|
768
|
+
styles: c.props(e.fieldRoot, r)
|
|
769
769
|
})
|
|
770
770
|
});
|
|
771
771
|
}
|
|
772
|
-
function De({ className:
|
|
772
|
+
function De({ className: t, style: n, ...r }) {
|
|
773
773
|
return /* @__PURE__ */ u(S.Label, {
|
|
774
774
|
...r,
|
|
775
775
|
...o({
|
|
776
|
-
className:
|
|
777
|
-
style:
|
|
778
|
-
styles: c.props(
|
|
776
|
+
className: t,
|
|
777
|
+
style: n,
|
|
778
|
+
styles: c.props(e.label)
|
|
779
779
|
})
|
|
780
780
|
});
|
|
781
781
|
}
|
|
782
|
-
function Oe({ className:
|
|
782
|
+
function Oe({ className: t, style: n, ...r }) {
|
|
783
783
|
return /* @__PURE__ */ u(S.Description, {
|
|
784
784
|
...r,
|
|
785
785
|
...o({
|
|
786
|
-
className:
|
|
787
|
-
style:
|
|
788
|
-
styles: c.props(
|
|
786
|
+
className: t,
|
|
787
|
+
style: n,
|
|
788
|
+
styles: c.props(e.description)
|
|
789
789
|
})
|
|
790
790
|
});
|
|
791
791
|
}
|
|
@@ -805,17 +805,17 @@ var Ae = {
|
|
|
805
805
|
Description: Oe,
|
|
806
806
|
Error: ke
|
|
807
807
|
};
|
|
808
|
-
function je({ className:
|
|
808
|
+
function je({ className: t, style: n, xstyle: r, ...i }) {
|
|
809
809
|
return /* @__PURE__ */ u(y, {
|
|
810
810
|
...i,
|
|
811
811
|
...o({
|
|
812
|
-
className:
|
|
813
|
-
style:
|
|
814
|
-
styles: c.props(
|
|
812
|
+
className: t,
|
|
813
|
+
style: n,
|
|
814
|
+
styles: c.props(e.base, e.field, e.singleLineField, E.input, r)
|
|
815
815
|
})
|
|
816
816
|
});
|
|
817
817
|
}
|
|
818
|
-
function Me({ isCompact:
|
|
818
|
+
function Me({ isCompact: t = !1, shouldGrow: n = !1, appearance: r = "field", value: i, defaultValue: a, onValueChange: s, name: l, disabled: d, readOnly: f, required: p, className: m, style: h, xstyle: g, ..._ }) {
|
|
819
819
|
return /* @__PURE__ */ u(S.Control, {
|
|
820
820
|
value: i,
|
|
821
821
|
defaultValue: a,
|
|
@@ -828,7 +828,7 @@ function Me({ isCompact: e = !1, shouldGrow: t = !1, appearance: r = "field", va
|
|
|
828
828
|
...o({
|
|
829
829
|
className: m,
|
|
830
830
|
style: h,
|
|
831
|
-
styles: c.props(
|
|
831
|
+
styles: c.props(e.base, e.field, E.input, e.textarea, t && E.compactTextarea, n && E.growingTextarea, D[r], g)
|
|
832
832
|
})
|
|
833
833
|
});
|
|
834
834
|
}
|
|
@@ -840,13 +840,13 @@ var Ne = {
|
|
|
840
840
|
function Pe(e) {
|
|
841
841
|
return /* @__PURE__ */ u(C.Root, { ...e });
|
|
842
842
|
}
|
|
843
|
-
function Fe({ variant:
|
|
843
|
+
function Fe({ variant: t = "outline", className: n, style: r, xstyle: i, ...a }) {
|
|
844
844
|
return /* @__PURE__ */ u(C.Trigger, {
|
|
845
845
|
...a,
|
|
846
846
|
...o({
|
|
847
|
-
className:
|
|
847
|
+
className: n,
|
|
848
848
|
style: r,
|
|
849
|
-
styles: c.props(
|
|
849
|
+
styles: c.props(e.base, O.trigger, Ne[t], i)
|
|
850
850
|
})
|
|
851
851
|
});
|
|
852
852
|
}
|
|
@@ -1176,18 +1176,18 @@ function nt({ label: e, description: t, controlId: n, isPlaceholder: r = !1, chi
|
|
|
1176
1176
|
});
|
|
1177
1177
|
}
|
|
1178
1178
|
// packages/forms/src/settings-section.tsx
|
|
1179
|
-
function rt({ title: e, description:
|
|
1180
|
-
let
|
|
1179
|
+
function rt({ title: e, description: t, children: n }) {
|
|
1180
|
+
let r = l();
|
|
1181
1181
|
return /* @__PURE__ */ d("section", {
|
|
1182
|
-
"aria-labelledby":
|
|
1182
|
+
"aria-labelledby": r,
|
|
1183
1183
|
className: "xrvj5dj x1mkdm3x x1n8ia3y xeuugli",
|
|
1184
1184
|
children: [/* @__PURE__ */ d("header", {
|
|
1185
1185
|
className: "xrvj5dj xunmzkg xeuugli",
|
|
1186
|
-
children: [/* @__PURE__ */ u(
|
|
1187
|
-
id:
|
|
1186
|
+
children: [/* @__PURE__ */ u(a, {
|
|
1187
|
+
id: r,
|
|
1188
1188
|
children: e
|
|
1189
|
-
}),
|
|
1190
|
-
}), /* @__PURE__ */ u("div", { children:
|
|
1189
|
+
}), t !== void 0 && /* @__PURE__ */ u(i, { children: t })]
|
|
1190
|
+
}), /* @__PURE__ */ u("div", { children: n })]
|
|
1191
1191
|
});
|
|
1192
1192
|
}
|
|
1193
1193
|
export { q as _, et as a, Ae as c, Te as d, be as f, Ce as g, Se as h, $e as i, je as l, xe as m, nt as n, tt as o, ye as p, Qe as r, Ue as s, rt as t, Me as u, K as v };
|