@mechane-ai/elements 0.6.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/dist/ai.js +24 -23
  2. package/dist/assets/stylex.css +32 -4
  3. package/dist/{categorical-values-DrTcMsSi.js → categorical-values-75J0TUkR.js} +2 -2
  4. package/dist/{chart-frame-cfBPXmni.js → chart-frame--DOsZKwP.js} +1 -1
  5. package/dist/{chart-input-hK9U0Ql0.js → chart-input-C-g586YE.js} +2 -2
  6. package/dist/charts/cartesian.js +5 -5
  7. package/dist/charts/distribution.js +2 -2
  8. package/dist/charts/graph.js +2 -2
  9. package/dist/charts/hierarchy.js +3 -3
  10. package/dist/charts/matrix.js +2 -2
  11. package/dist/charts/timeline.js +1 -1
  12. package/dist/charts.js +1 -1
  13. package/dist/{code-block-DSmz0jTf.js → code-block-D0Jmsj7w.js} +1 -1
  14. package/dist/collections.js +95 -83
  15. package/dist/content/code.js +1 -1
  16. package/dist/content/diff.js +2 -2
  17. package/dist/content/link.js +1 -1
  18. package/dist/content/markdown.js +2 -2
  19. package/dist/content/tree.js +2 -2
  20. package/dist/{content-link-DLiDJzwq.js → content-link-HLYu0cmz.js} +1 -1
  21. package/dist/content.js +2 -2
  22. package/dist/feedback.js +1 -1
  23. package/dist/forms/dates.js +1 -1
  24. package/dist/forms.js +1 -1
  25. package/dist/index.js +1 -1
  26. package/dist/layout.js +77 -35
  27. package/dist/navigation/commands.js +1 -1
  28. package/dist/packages/ai/src/prompt-input.d.ts +2 -1
  29. package/dist/packages/collections/src/data-table.d.ts +3 -2
  30. package/dist/packages/core/src/text.d.ts +4 -2
  31. package/dist/packages/forms/src/field-styles.d.ts +4 -0
  32. package/dist/packages/forms/src/forms.d.ts +2 -1
  33. package/dist/packages/layout/src/focus-page.d.ts +4 -0
  34. package/dist/packages/layout/src/index.d.ts +2 -0
  35. package/dist/packages/layout/src/workbench.d.ts +12 -0
  36. package/dist/{pierre-tree-C-eebLcZ.js → pierre-tree-DVybsnm4.js} +2 -2
  37. package/dist/{src-Daf4PUD6.js → src-B_DCatpY.js} +1 -1
  38. package/dist/{src-DuTmAQp5.js → src-BkCsvZGi.js} +5 -2
  39. package/dist/{src-DjvJJoaw.js → src-DjTM64tN.js} +18 -13
  40. package/package.json +1 -1
package/dist/layout.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { a as e } from "./src-CfDf8TY8.js";
2
- import { i as t, n, v as r, y as i } from "./src-DuTmAQp5.js";
2
+ import { i as t, n, v as r, y as i } from "./src-BkCsvZGi.js";
3
3
  import { mergeProps as a } from "@base-ui/react/merge-props";
4
4
  import "@stylexjs/stylex";
5
5
  import { createContext as o, useContext as s, useEffect as c, useId as l, useRef as u, useState as d } from "react";
@@ -292,17 +292,59 @@ function P({ children: e }) {
292
292
  children: e
293
293
  });
294
294
  }
295
+ // packages/layout/src/focus-page.tsx
296
+ function F({ children: e }) {
297
+ return /* @__PURE__ */ p("main", {
298
+ id: "main",
299
+ tabIndex: -1,
300
+ className: "x9f619 x1ov3xa9 xrvj5dj x1ku5rj1 x1jvlu93 xpvm0e4 xbixft x1hz01jw xtqrqnz x1778rvt xvmahel",
301
+ children: /* @__PURE__ */ p("div", {
302
+ className: "xh8yej3 xxc7z9f xrvj5dj x1j825kq",
303
+ children: e
304
+ })
305
+ });
306
+ }
307
+ // packages/layout/src/workbench.tsx
308
+ function I({ header: e, children: t, inspector: n }) {
309
+ return /* @__PURE__ */ m("div", {
310
+ className: "x78zum5 xdt5ytf x1b7uu3i xeuugli x2lwn1j",
311
+ children: [/* @__PURE__ */ p("div", {
312
+ className: "x1ydxw8w xnx3t7k xso031l x1q0q8m5 x1qndepd",
313
+ children: e
314
+ }), /* @__PURE__ */ m("div", {
315
+ className: "x78zum5 x98rzlu xeuugli x2lwn1j xb3r6kr",
316
+ children: [/* @__PURE__ */ p("div", {
317
+ ...{
318
+ 0: { className: "x78zum5 x98rzlu xdt5ytf xeuugli x2lwn1j" },
319
+ 1: { className: "x98rzlu xdt5ytf xeuugli x2lwn1j x78zum5 x1g9v1si" }
320
+ }[n != null | 0],
321
+ children: t
322
+ }), n != null && /* @__PURE__ */ p("aside", {
323
+ "aria-label": "Execution inspector",
324
+ className: "x9f619 x1peuizl x1tama1k x2lah0s x1odjw0f x1c8xbx5 xpvm0e4 xe0pwq x19ypqd9 x1l3ounx",
325
+ children: n
326
+ })]
327
+ })]
328
+ });
329
+ }
330
+ function L({ children: e }) {
331
+ return /* @__PURE__ */ p("div", {
332
+ className: "x1odjw0f x98rzlu xeuugli x2lwn1j x1jvlu93",
333
+ children: e
334
+ });
335
+ }
336
+ function R({ children: e }) {
337
+ return /* @__PURE__ */ p("div", {
338
+ className: "x2lah0s x1c8xbx5 x178xt8z x13fuv20 xhjagg4 xpvm0e4",
339
+ children: e
340
+ });
341
+ }
295
342
  // packages/layout/src/page-toolbar.tsx
296
- var F = { action: {
297
- kZKoxP: "x5yr21d",
298
- k7Eaqz: "x167izq3",
299
- k8WAf4: "xt970qd",
300
- kg3NbH: "x1m92p3w",
301
- kaIpWk: "x2u8bby",
343
+ var z = { action: {
302
344
  kOIVth: "x1hnptsi",
303
345
  $$css: !0
304
346
  } };
305
- function I({ title: e, actions: t, breadcrumb: n = !1, navigation: r = !0 }) {
347
+ function B({ title: e, actions: t, breadcrumb: n = !1, navigation: r = !0 }) {
306
348
  return /* @__PURE__ */ m("div", {
307
349
  className: "x9f619 x78zum5 x12h1iku x14ut1dr x1qjc9v5 xcn9na3 x2lah0s xso031l x1q0q8m5 x1qndepd xpvm0e4 xbixft x1hz01jw x12myhf4 x1778rvt xvmahel xeuugli",
308
350
  children: [
@@ -317,22 +359,22 @@ function I({ title: e, actions: t, breadcrumb: n = !1, navigation: r = !0 }) {
317
359
  })
318
360
  }),
319
361
  t != null && /* @__PURE__ */ p("div", {
320
- className: "x78zum5 x1qjc9v5 xeuugli x2lah0s x8x9d4c",
362
+ className: "x78zum5 x6s0dn4 xunmzkg x5g2kb4 xeuugli x2lah0s x8x9d4c",
321
363
  children: t
322
364
  })
323
365
  ]
324
366
  });
325
367
  }
326
- function L({ icon: e, children: t, ...n }) {
368
+ function V({ icon: e, children: t, ...n }) {
327
369
  let i = e != null;
328
370
  return /* @__PURE__ */ p("div", {
329
- className: "x9f619 x78zum5 x1qjc9v5 xeuugli xe0pwq x19ypqd9 x1l3ounx",
371
+ className: "x9f619 x78zum5 x1qjc9v5 xeuugli",
330
372
  children: /* @__PURE__ */ m(r, {
331
373
  ...n,
332
374
  variant: "ghost",
333
- size: "md",
375
+ size: "sm",
334
376
  "aria-label": n["aria-label"] ?? (typeof t == "string" ? t : void 0),
335
- xstyle: F.action,
377
+ xstyle: z.action,
336
378
  children: [e, i ? /* @__PURE__ */ p("span", {
337
379
  className: "xeuugli xb3r6kr xlyipyv xuxw1ft xt0psk2 xlllsrz",
338
380
  children: t
@@ -341,14 +383,14 @@ function L({ icon: e, children: t, ...n }) {
341
383
  });
342
384
  }
343
385
  // packages/layout/src/record-page.tsx
344
- function R({ children: e }) {
386
+ function H({ children: e }) {
345
387
  return /* @__PURE__ */ p("div", {
346
388
  className: "x78zum5 xdt5ytf xeuugli xbixft x1hz01jw xtqrqnz x1778rvt xvmahel",
347
389
  children: e
348
390
  });
349
391
  }
350
- function z({ backLabel: e, backHref: t, onBack: n, actions: r, navigation: i = !0 }) {
351
- return /* @__PURE__ */ p(I, {
392
+ function U({ backLabel: e, backHref: t, onBack: n, actions: r, navigation: i = !0 }) {
393
+ return /* @__PURE__ */ p(B, {
352
394
  breadcrumb: !0,
353
395
  navigation: i,
354
396
  actions: r,
@@ -367,19 +409,19 @@ function z({ backLabel: e, backHref: t, onBack: n, actions: r, navigation: i = !
367
409
  })
368
410
  });
369
411
  }
370
- function B({ children: e }) {
412
+ function W({ children: e }) {
371
413
  return /* @__PURE__ */ p(P, { children: /* @__PURE__ */ p("div", {
372
414
  className: "x78zum5 x1a02dak x1cy8zhl x1m6b44x xeuugli",
373
415
  children: e
374
416
  }) });
375
417
  }
376
- function V({ children: e }) {
418
+ function G({ children: e }) {
377
419
  return /* @__PURE__ */ p("div", {
378
420
  className: "x78zum5 xdt5ytf x1ewej1i x1iyjqo2 x1j825kq xeuugli",
379
421
  children: e
380
422
  });
381
423
  }
382
- function H({ title: e, description: r, icon: i, titleRef: a }) {
424
+ function K({ title: e, description: r, icon: i, titleRef: a }) {
383
425
  return /* @__PURE__ */ m("header", {
384
426
  className: "xrvj5dj x1n8ia3y xeuugli",
385
427
  children: [/* @__PURE__ */ m("div", {
@@ -396,23 +438,23 @@ function H({ title: e, description: r, icon: i, titleRef: a }) {
396
438
  }), r != null && /* @__PURE__ */ p(t, { children: r })]
397
439
  });
398
440
  }
399
- function U({ children: e, label: t = "Properties" }) {
441
+ function q({ children: e, label: t = "Properties" }) {
400
442
  return /* @__PURE__ */ p("aside", {
401
443
  "aria-label": t,
402
444
  className: "x78zum5 xdt5ytf x1irul0l x1iyjqo2 x1j825kq xeuugli",
403
445
  children: e
404
446
  });
405
447
  }
406
- var W = {
407
- Root: R,
408
- Toolbar: z,
409
- Body: B,
410
- Content: V,
411
- Header: H,
412
- Aside: U
448
+ var J = {
449
+ Root: H,
450
+ Toolbar: U,
451
+ Body: W,
452
+ Content: G,
453
+ Header: K,
454
+ Aside: q
413
455
  };
414
456
  // packages/layout/src/resizable.tsx
415
- function G({ orientation: e = "horizontal", initialSizes: t, onSizesChange: n, disabled: r, ref: i, ...o }) {
457
+ function Y({ orientation: e = "horizontal", initialSizes: t, onSizesChange: n, disabled: r, ref: i, ...o }) {
416
458
  return /* @__PURE__ */ p(v, {
417
459
  orientation: e,
418
460
  defaultLayout: t,
@@ -428,7 +470,7 @@ function G({ orientation: e = "horizontal", initialSizes: t, onSizesChange: n, d
428
470
  ...a({ className: "xeuugli x2lwn1j xh8yej3 x5yr21d" }, o)
429
471
  });
430
472
  }
431
- function K({ id: e, initialSizePercent: t, minimumSizePercent: n = 10, maximumSizePercent: r = 100, collapsible: i = !1, ref: o, ...s }) {
473
+ function X({ id: e, initialSizePercent: t, minimumSizePercent: n = 10, maximumSizePercent: r = 100, collapsible: i = !1, ref: o, ...s }) {
432
474
  return /* @__PURE__ */ p(y, {
433
475
  id: e,
434
476
  defaultSize: t === void 0 ? void 0 : `${t}%`,
@@ -439,15 +481,15 @@ function K({ id: e, initialSizePercent: t, minimumSizePercent: n = 10, maximumSi
439
481
  ...a({ className: "xeuugli x2lwn1j xysyzu8" }, s)
440
482
  });
441
483
  }
442
- function q({ ref: e, ...t }) {
484
+ function Z({ ref: e, ...t }) {
443
485
  return /* @__PURE__ */ p(b, {
444
486
  elementRef: e,
445
487
  ...a({ className: "x1fa40ue x1i1rx1s xgc0pbm xir5lan xfaai28 x1rbdpqn x8wp5i9 x13qnu6 x9v5kkp x19rmrnh x13iak60" }, t)
446
488
  });
447
489
  }
448
- var J = {
449
- Root: G,
450
- Pane: K,
451
- Handle: q
490
+ var Q = {
491
+ Root: Y,
492
+ Pane: X,
493
+ Handle: Z
452
494
  };
453
- export { N as AppShell, P as DetailPage, E as Navigation, D as NavigationItem, O as NavigationLink, I as PageToolbar, W as RecordPage, J as Resizable, A as SidebarFooter, k as SidebarLabel, L as ToolbarAction };
495
+ export { N as AppShell, P as DetailPage, F as FocusPage, E as Navigation, D as NavigationItem, O as NavigationLink, B as PageToolbar, J as RecordPage, Q as Resizable, A as SidebarFooter, k as SidebarLabel, V as ToolbarAction, I as Workbench, R as WorkbenchFooter, L as WorkbenchScroll };
@@ -1,4 +1,4 @@
1
- import { l as e } from "../src-DjvJJoaw.js";
1
+ import { l as e } from "../src-DjTM64tN.js";
2
2
  import { s as t } from "../src-CfDf8TY8.js";
3
3
  import { n } from "../navigation-yxK3iQXo.js";
4
4
  import "@stylexjs/stylex";
@@ -14,6 +14,7 @@ export type PromptInputProps = {
14
14
  readonly submitLabel?: string;
15
15
  readonly pendingLabel?: string;
16
16
  readonly enterBehavior?: 'newline' | 'submit';
17
+ readonly compact?: boolean;
17
18
  readonly description?: ReactNode;
18
19
  readonly error?: string | undefined;
19
20
  readonly controls?: ReactNode;
@@ -22,4 +23,4 @@ export type PromptInputProps = {
22
23
  readonly stopPending?: boolean;
23
24
  readonly stopLabel?: string;
24
25
  };
25
- export declare function PromptInput({ label, value, onValueChange, onSubmit, name, placeholder, maxLength, required, pending, disabled, submitDisabled, submitLabel, pendingLabel, enterBehavior, description, error, controls, attachments, onStop, stopPending, stopLabel, }: PromptInputProps): ReactNode;
26
+ export declare function PromptInput({ label, value, onValueChange, onSubmit, name, placeholder, maxLength, required, pending, disabled, submitDisabled, submitLabel, pendingLabel, enterBehavior, compact, description, error, controls, attachments, onStop, stopPending, stopLabel, }: PromptInputProps): ReactNode;
@@ -54,7 +54,8 @@ export type DataTableProps<Row> = SortProperties<Row> & OptionalSelection<Row> &
54
54
  readonly caption: string;
55
55
  readonly empty: ReactNode;
56
56
  readonly rowAction?: DataTableRowAction<Row>;
57
- readonly activeRowId?: string;
57
+ readonly activeRowId?: string | undefined;
58
+ readonly focusRowId?: string | undefined;
58
59
  readonly hideCaption?: boolean;
59
60
  readonly hideHeaders?: boolean;
60
61
  readonly window?: DataTableWindow;
@@ -62,5 +63,5 @@ export type DataTableProps<Row> = SortProperties<Row> & OptionalSelection<Row> &
62
63
  readonly onEndReached?: () => void;
63
64
  readonly footer?: ReactNode;
64
65
  };
65
- export declare function DataTable<Row extends object>({ rows, columns, getRowId, caption, empty, sort, onSortChange, selectedIds, onSelectionChange, selectionLabel, rowAction, activeRowId, hideCaption, hideHeaders, window, endContent, onEndReached, footer, }: DataTableProps<Row>): ReactNode;
66
+ export declare function DataTable<Row extends object>({ rows, columns, getRowId, caption, empty, sort, onSortChange, selectedIds, onSelectionChange, selectionLabel, rowAction, activeRowId, focusRowId, hideCaption, hideHeaders, window, endContent, onEndReached, footer, }: DataTableProps<Row>): ReactNode;
66
67
  export {};
@@ -8,7 +8,9 @@ type TextProps = ComponentProps<'span'> & {
8
8
  readonly tone?: TextTone;
9
9
  readonly xstyle?: PlacementStyle;
10
10
  };
11
- type HeadingProps = ComponentProps<'h1'>;
11
+ type HeadingProps = ComponentProps<'h1'> & {
12
+ readonly compact?: boolean;
13
+ };
12
14
  type SubheadingProps = ComponentProps<'h2'>;
13
15
  type MutedProps = ComponentProps<'p'>;
14
16
  type IdentifierProps = ComponentProps<'span'>;
@@ -20,7 +22,7 @@ type StatusProps = ComponentProps<'span'> & {
20
22
  readonly tone?: StatusTone;
21
23
  };
22
24
  export declare function Text({ variant, tone, xstyle, ...props }: TextProps): ReactNode;
23
- export declare function Heading(props: HeadingProps): ReactNode;
25
+ export declare function Heading({ compact, ...props }: HeadingProps): ReactNode;
24
26
  export declare function Subheading(props: SubheadingProps): ReactNode;
25
27
  export declare function Muted(props: MutedProps): ReactNode;
26
28
  export declare function Identifier(props: IdentifierProps): ReactNode;
@@ -63,6 +63,10 @@ export declare const fieldStyles: Readonly<{
63
63
  readonly resize: stylex.StyleXClassNameFor<"resize", "vertical">;
64
64
  readonly lineHeight: stylex.StyleXClassNameFor<"lineHeight", string>;
65
65
  }>;
66
+ readonly compactTextarea: Readonly<{
67
+ readonly minHeight: stylex.StyleXClassNameFor<"minHeight", 80>;
68
+ readonly maxHeight: stylex.StyleXClassNameFor<"maxHeight", "30dvh">;
69
+ }>;
66
70
  }>;
67
71
  export declare const inputSizeStyles: Readonly<{
68
72
  readonly sm: Readonly<{
@@ -17,6 +17,7 @@ export type InputProps = Omit<BaseInputProps, 'value' | 'defaultValue' | 'onChan
17
17
  type NativeTextareaProps = ComponentProps<'textarea'>;
18
18
  type TextareaProps = Omit<NativeTextareaProps, 'value' | 'defaultValue' | 'onChange' | 'readOnly'> & TextValueProperties<NonNullable<NativeTextareaProps['value']>, NonNullable<NativeTextareaProps['onChange']>, NonNullable<BaseInputProps['onValueChange']>> & {
19
19
  readonly xstyle?: PlacementStyle;
20
+ readonly compact?: boolean;
20
21
  };
21
22
  declare function FieldRoot({ className, style, xstyle, ...props }: FieldRootProps): ReactNode;
22
23
  declare function FieldLabel({ className, style, ...props }: FieldLabelProps): ReactNode;
@@ -29,5 +30,5 @@ export declare const Field: {
29
30
  Error: typeof FieldError;
30
31
  };
31
32
  export declare function Input({ className, style, xstyle, size, ...props }: InputProps): ReactNode;
32
- export declare function Textarea({ value, defaultValue, onValueChange, name, disabled, readOnly, required, className, style, xstyle, ...props }: TextareaProps): ReactNode;
33
+ export declare function Textarea({ compact, value, defaultValue, onValueChange, name, disabled, readOnly, required, className, style, xstyle, ...props }: TextareaProps): ReactNode;
33
34
  export {};
@@ -0,0 +1,4 @@
1
+ import type { ReactNode } from 'react';
2
+ export declare function FocusPage({ children }: {
3
+ readonly children: ReactNode;
4
+ }): ReactNode;
@@ -1,5 +1,7 @@
1
1
  export { AppShell } from './app-shell.tsx';
2
2
  export { DetailPage } from './detail-page.tsx';
3
+ export { FocusPage } from './focus-page.tsx';
4
+ export { Workbench, WorkbenchScroll, WorkbenchFooter } from './workbench.tsx';
3
5
  export { PageToolbar, ToolbarAction } from './page-toolbar.tsx';
4
6
  export type { RecordPageRootProps, RecordPageToolbarProps, RecordPageBodyProps, RecordPageHeaderProps, RecordPageContentProps, RecordPageAsideProps, } from './record-page.tsx';
5
7
  export { RecordPage } from './record-page.tsx';
@@ -0,0 +1,12 @@
1
+ import type { ReactNode } from 'react';
2
+ export declare function Workbench({ header, children, inspector, }: {
3
+ readonly header: ReactNode;
4
+ readonly children: ReactNode;
5
+ readonly inspector?: ReactNode;
6
+ }): ReactNode;
7
+ export declare function WorkbenchScroll({ children }: {
8
+ readonly children: ReactNode;
9
+ }): ReactNode;
10
+ export declare function WorkbenchFooter({ children }: {
11
+ readonly children: ReactNode;
12
+ }): ReactNode;
@@ -1,5 +1,5 @@
1
- import { c as e } from "./src-DuTmAQp5.js";
2
- import { l as t } from "./src-DjvJJoaw.js";
1
+ import { c as e } from "./src-BkCsvZGi.js";
2
+ import { l as t } from "./src-DjTM64tN.js";
3
3
  import { conditions as n } from "./tokens.js";
4
4
  import { r } from "./pierre-theme-BpESNIsV.js";
5
5
  import * as i from "@stylexjs/stylex";
@@ -1,4 +1,4 @@
1
- import { i as e, s as t } from "./src-DuTmAQp5.js";
1
+ import { i as e, s as t } from "./src-BkCsvZGi.js";
2
2
  import { t as n } from "./accessibility-C-aIZ1Yx.js";
3
3
  import { n as r, t as i } from "./popup-styles-CvtZDE2t.js";
4
4
  import { t as a } from "./style-composition-uYlczSsB.js";
@@ -633,8 +633,11 @@ var X = {
633
633
  function ae({ variant: e = "body", tone: t = "ink", xstyle: n, ...a }) {
634
634
  return /* @__PURE__ */ l("span", { ...r(i.props(X.text, Z[e], Q[t], n), a) });
635
635
  }
636
- function oe(e) {
637
- return /* @__PURE__ */ l("h1", { ...r({ className: "x1ghz6dp x1hz01jw xvmahel xc0f4dz x1sfszr9 xzju6ct x197eox2 x1s688f x1wjjqco xbixft xj0a0fe" }, e) });
636
+ function oe({ compact: e = !1, ...t }) {
637
+ return /* @__PURE__ */ l("h1", { ...r({
638
+ 0: { className: "x1ghz6dp x1hz01jw xvmahel xc0f4dz x1sfszr9 xzju6ct x197eox2 x1s688f x1wjjqco xbixft xj0a0fe" },
639
+ 1: { className: "x1ghz6dp x1hz01jw xvmahel x1i2cqwi x4fansv x1s688f xbixft" }
640
+ }[!!e | 0], t) });
638
641
  }
639
642
  function $(e) {
640
643
  return /* @__PURE__ */ l("h2", { ...r({ className: "x1ghz6dp x1hz01jw xvmahel x1i2cqwi x4fansv x1s688f xbixft" }, e) });
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./style-composition-uYlczSsB.js";
2
- import { i as t, s as n } from "./src-DuTmAQp5.js";
2
+ import { i as t, s as n } from "./src-BkCsvZGi.js";
3
3
  import { mergeProps as r } from "@base-ui/react/merge-props";
4
4
  import * as i from "@stylexjs/stylex";
5
5
  import { useId as a } from "react";
@@ -80,6 +80,11 @@ var S = {
80
80
  kHenm0: "x288g5",
81
81
  kLWn49: "x1gj8gu9",
82
82
  $$css: !0
83
+ },
84
+ compactTextarea: {
85
+ kAzted: "xseoqlg",
86
+ kskxy: "x1y3glee",
87
+ $$css: !0
83
88
  }
84
89
  }, C = {
85
90
  sm: {
@@ -738,20 +743,20 @@ function Ce({ className: t, style: n, xstyle: r, size: a = "md", ...s }) {
738
743
  })
739
744
  });
740
745
  }
741
- function we({ value: t, defaultValue: n, onValueChange: r, name: a, disabled: s, readOnly: c, required: l, className: u, style: d, xstyle: f, ...p }) {
746
+ function we({ compact: t = !1, value: n, defaultValue: r, onValueChange: a, name: s, disabled: c, readOnly: l, required: u, className: d, style: f, xstyle: p, ...m }) {
742
747
  return /* @__PURE__ */ o(g.Control, {
743
- value: t,
744
- defaultValue: n,
745
- onValueChange: r,
746
- name: a,
747
- disabled: s,
748
- readOnly: c,
749
- required: l,
750
- render: /* @__PURE__ */ o("textarea", { ...p }),
748
+ value: n,
749
+ defaultValue: r,
750
+ onValueChange: a,
751
+ name: s,
752
+ disabled: c,
753
+ readOnly: l,
754
+ required: u,
755
+ render: /* @__PURE__ */ o("textarea", { ...m }),
751
756
  ...e({
752
- className: u,
753
- style: d,
754
- styles: i.props(S.input, S.textarea, f)
757
+ className: d,
758
+ style: f,
759
+ styles: i.props(S.input, S.textarea, t && S.compactTextarea, p)
755
760
  })
756
761
  });
757
762
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mechane-ai/elements",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "description": "Elements by Mechane — React components for applications, AI interfaces, and analytical graphics",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {