@mechane-ai/elements 0.10.0 → 0.12.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 (66) hide show
  1. package/README.md +8 -4
  2. package/dist/ai.js +56 -41
  3. package/dist/{categorical-values-DLRE4EEW.js → categorical-values-CTrHn9jH.js} +2 -2
  4. package/dist/{chart-frame-et6f6Vhg.js → chart-frame-38ES6kwK.js} +4 -4
  5. package/dist/{chart-input-CdLkFomi.js → chart-input-C9fu7f1Q.js} +2 -2
  6. package/dist/charts/cartesian.js +6 -6
  7. package/dist/charts/distribution.js +2 -2
  8. package/dist/charts/graph.js +3 -3
  9. package/dist/charts/hierarchy.js +3 -3
  10. package/dist/charts/matrix.js +2 -2
  11. package/dist/charts/timeline.js +17 -16
  12. package/dist/charts.js +1 -1
  13. package/dist/{code-block-D77maJBB.js → code-block-BjV2EFZS.js} +2 -2
  14. package/dist/collections.js +376 -291
  15. package/dist/content/code.js +1 -1
  16. package/dist/content/diff.js +3 -3
  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-BpSZeTNK.js → content-link-C460m-O7.js} +1 -1
  21. package/dist/content.js +3 -4
  22. package/dist/elements.css +251 -128
  23. package/dist/feedback.js +1 -1
  24. package/dist/forms/dates.js +22 -23
  25. package/dist/forms.js +1 -1
  26. package/dist/index.js +1 -1
  27. package/dist/layout.js +223 -237
  28. package/dist/navigation/commands.js +3 -3
  29. package/dist/overlays.js +1 -1
  30. package/dist/packages/ai/src/conversation.d.ts +14 -2
  31. package/dist/packages/ai/src/index.d.ts +1 -1
  32. package/dist/packages/charts/src/timeline/waterfall.d.ts +3 -2
  33. package/dist/packages/collections/src/collection-controls.d.ts +1 -1
  34. package/dist/packages/collections/src/data-table.d.ts +5 -4
  35. package/dist/packages/collections/src/index.d.ts +2 -1
  36. package/dist/packages/collections/src/inspector.d.ts +6 -3
  37. package/dist/packages/core/src/actions.d.ts +5 -8
  38. package/dist/packages/core/src/agent-avatar-glyphs.d.ts +1 -1
  39. package/dist/packages/feedback/src/control-placeholders.d.ts +16 -0
  40. package/dist/packages/feedback/src/index.d.ts +2 -0
  41. package/dist/packages/forms/src/field-styles.d.ts +2 -74
  42. package/dist/packages/forms/src/form-actions.d.ts +11 -0
  43. package/dist/packages/forms/src/form-controls.d.ts +1 -1
  44. package/dist/packages/forms/src/forms.d.ts +3 -3
  45. package/dist/packages/forms/src/index.d.ts +2 -0
  46. package/dist/packages/forms/src/select.d.ts +2 -2
  47. package/dist/packages/forms/src/selection-styles.d.ts +0 -13
  48. package/dist/packages/foundations/src/control-styles.d.ts +101 -0
  49. package/dist/packages/foundations/src/style-composition.d.ts +0 -2
  50. package/dist/packages/foundations/src/tokens.stylex.d.ts +8 -2
  51. package/dist/packages/layout/src/frame.stylex.d.ts +0 -1
  52. package/dist/packages/layout/src/index.d.ts +2 -0
  53. package/dist/packages/layout/src/page-content.d.ts +5 -0
  54. package/dist/packages/layout/src/page-toolbar.d.ts +1 -1
  55. package/dist/packages/layout/src/sidebar.d.ts +3 -3
  56. package/dist/{pierre-diff--zsiHCCB.js → pierre-diff-sUAU-xeL.js} +1 -1
  57. package/dist/{pierre-theme-D9hnHv3Z.js → pierre-theme-CBAncKdH.js} +1 -1
  58. package/dist/{pierre-tree-BFxEuxwb.js → pierre-tree-DKN2eGlZ.js} +3 -3
  59. package/dist/{src-sU9b0oZW.js → src-3gzujMhN.js} +861 -319
  60. package/dist/{src-CBspCKfO.js → src-CI6KtN2w.js} +366 -307
  61. package/dist/{src-Cs0dRc4X.js → src-CVlgjAlw.js} +1 -1
  62. package/dist/src-DOzle5d4.js +1199 -0
  63. package/dist/tokens.js +38 -32
  64. package/package.json +1 -1
  65. package/packages/foundations/src/tokens.stylex.ts +61 -53
  66. package/dist/src-Be7NLG8c.js +0 -1242
@@ -4,6 +4,8 @@ export { FocusPage } from './focus-page.tsx';
4
4
  export { Workbench, WorkbenchScroll, WorkbenchFooter } from './workbench.tsx';
5
5
  export { ViewStack } from './view-stack.tsx';
6
6
  export { PageToolbar, ToolbarAction } from './page-toolbar.tsx';
7
+ export type { PageContentProps } from './page-content.tsx';
8
+ export { PageContent } from './page-content.tsx';
7
9
  export type { RecordPageRootProps, RecordPageToolbarProps, RecordPageBodyProps, RecordPageHeaderProps, RecordPageContentProps, RecordPageAsideProps, } from './record-page.tsx';
8
10
  export { RecordPage } from './record-page.tsx';
9
11
  export type { ResizableRootProps, ResizablePaneProps, ResizableHandleProps } from './resizable.tsx';
@@ -0,0 +1,5 @@
1
+ import type { ReactNode } from 'react';
2
+ export type PageContentProps = {
3
+ readonly children: ReactNode;
4
+ };
5
+ export declare function PageContent({ children }: PageContentProps): ReactNode;
@@ -8,7 +8,7 @@ type PageToolbarProps = {
8
8
  readonly views?: ReactNode;
9
9
  readonly leading?: ReactNode;
10
10
  };
11
- type ToolbarActionProps = Omit<ComponentProps<typeof Button>, 'variant' | 'size' | 'xstyle'> & {
11
+ type ToolbarActionProps = Omit<ComponentProps<typeof Button>, 'variant' | 'xstyle'> & {
12
12
  readonly icon?: ReactNode;
13
13
  };
14
14
  export declare function PageToolbar({ title, actions, breadcrumb, navigation, views, leading, }: PageToolbarProps): ReactNode;
@@ -1,5 +1,5 @@
1
+ import { Button as BaseButton } from '@base-ui/react/button';
1
2
  import type { ComponentProps, ReactNode, RefObject } from 'react';
2
- import { Button } from '../../core/src/index.ts';
3
3
  import { Drawer } from '../../overlays/src/index.ts';
4
4
  type SidebarState = {
5
5
  readonly isExpanded: boolean;
@@ -21,7 +21,7 @@ type NavigationProps = {
21
21
  readonly children: ReactNode;
22
22
  readonly label?: string;
23
23
  };
24
- type NavigationItemProps = Omit<ComponentProps<typeof Button>, 'variant' | 'tone' | 'size' | 'xstyle'> & {
24
+ type NavigationItemProps = ComponentProps<typeof BaseButton> & {
25
25
  readonly icon?: ReactNode;
26
26
  readonly selected?: boolean;
27
27
  };
@@ -45,7 +45,7 @@ export declare function NavigationSection({ children, label, }: {
45
45
  readonly children: ReactNode;
46
46
  readonly label: string;
47
47
  }): ReactNode;
48
- export declare function NavigationItem({ children, icon, selected, onClick, ...props }: NavigationItemProps): ReactNode;
48
+ export declare function NavigationItem({ children, icon, selected, onClick, className, style, ...props }: NavigationItemProps): ReactNode;
49
49
  export declare function NavigationLink({ children, icon, selected, onClick, className, style, ...props }: NavigationLinkProps): ReactNode;
50
50
  export declare function SidebarLabel({ children, grow }: SidebarLabelProps): ReactNode;
51
51
  export declare function SidebarFooter({ children, layout }: SidebarFooterProps): ReactNode;
@@ -1,4 +1,4 @@
1
- import { n as e, t } from "./pierre-theme-D9hnHv3Z.js";
1
+ import { n as e, t } from "./pierre-theme-CBAncKdH.js";
2
2
  import { t as n } from "./viewer-styles-CpHqp5Qv.js";
3
3
  import * as r from "@stylexjs/stylex";
4
4
  import { useCallback as i, useState as a } from "react";
@@ -62,7 +62,7 @@ var o = {
62
62
  pre { font-family: ${a.monoFamily}; font-size: ${a.captionSize}; line-height: ${a.bodyLineHeight}; }
63
63
  [data-line-number] { color: ${e.muted}; }
64
64
  [data-diffs-header] {
65
- min-height: ${n.mdHeight};
65
+ min-height: ${n.height};
66
66
  padding-block: ${r.sm};
67
67
  padding-inline: ${r.md};
68
68
  border-bottom: 1px solid ${e.line};
@@ -1,7 +1,7 @@
1
- import { c as e } from "./src-sU9b0oZW.js";
2
- import { l as t } from "./src-Be7NLG8c.js";
1
+ import { c as e } from "./src-3gzujMhN.js";
2
+ import { l as t } from "./src-DOzle5d4.js";
3
3
  import { conditions as n } from "./tokens.js";
4
- import { r } from "./pierre-theme-D9hnHv3Z.js";
4
+ import { r } from "./pierre-theme-CBAncKdH.js";
5
5
  import * as i from "@stylexjs/stylex";
6
6
  import { useEffect as a, useId as o, useRef as s, useState as c } from "react";
7
7
  import { jsx as l, jsxs as u } from "react/jsx-runtime";