@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.
- package/README.md +8 -4
- package/dist/ai.js +56 -41
- package/dist/{categorical-values-DLRE4EEW.js → categorical-values-CTrHn9jH.js} +2 -2
- package/dist/{chart-frame-et6f6Vhg.js → chart-frame-38ES6kwK.js} +4 -4
- package/dist/{chart-input-CdLkFomi.js → chart-input-C9fu7f1Q.js} +2 -2
- package/dist/charts/cartesian.js +6 -6
- package/dist/charts/distribution.js +2 -2
- package/dist/charts/graph.js +3 -3
- package/dist/charts/hierarchy.js +3 -3
- package/dist/charts/matrix.js +2 -2
- package/dist/charts/timeline.js +17 -16
- package/dist/charts.js +1 -1
- package/dist/{code-block-D77maJBB.js → code-block-BjV2EFZS.js} +2 -2
- package/dist/collections.js +376 -291
- package/dist/content/code.js +1 -1
- package/dist/content/diff.js +3 -3
- 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-BpSZeTNK.js → content-link-C460m-O7.js} +1 -1
- package/dist/content.js +3 -4
- package/dist/elements.css +251 -128
- package/dist/feedback.js +1 -1
- package/dist/forms/dates.js +22 -23
- package/dist/forms.js +1 -1
- package/dist/index.js +1 -1
- package/dist/layout.js +223 -237
- package/dist/navigation/commands.js +3 -3
- package/dist/overlays.js +1 -1
- package/dist/packages/ai/src/conversation.d.ts +14 -2
- package/dist/packages/ai/src/index.d.ts +1 -1
- package/dist/packages/charts/src/timeline/waterfall.d.ts +3 -2
- package/dist/packages/collections/src/collection-controls.d.ts +1 -1
- package/dist/packages/collections/src/data-table.d.ts +5 -4
- package/dist/packages/collections/src/index.d.ts +2 -1
- package/dist/packages/collections/src/inspector.d.ts +6 -3
- package/dist/packages/core/src/actions.d.ts +5 -8
- package/dist/packages/core/src/agent-avatar-glyphs.d.ts +1 -1
- package/dist/packages/feedback/src/control-placeholders.d.ts +16 -0
- package/dist/packages/feedback/src/index.d.ts +2 -0
- package/dist/packages/forms/src/field-styles.d.ts +2 -74
- package/dist/packages/forms/src/form-actions.d.ts +11 -0
- package/dist/packages/forms/src/form-controls.d.ts +1 -1
- package/dist/packages/forms/src/forms.d.ts +3 -3
- package/dist/packages/forms/src/index.d.ts +2 -0
- package/dist/packages/forms/src/select.d.ts +2 -2
- package/dist/packages/forms/src/selection-styles.d.ts +0 -13
- package/dist/packages/foundations/src/control-styles.d.ts +101 -0
- package/dist/packages/foundations/src/style-composition.d.ts +0 -2
- package/dist/packages/foundations/src/tokens.stylex.d.ts +8 -2
- package/dist/packages/layout/src/frame.stylex.d.ts +0 -1
- package/dist/packages/layout/src/index.d.ts +2 -0
- package/dist/packages/layout/src/page-content.d.ts +5 -0
- package/dist/packages/layout/src/page-toolbar.d.ts +1 -1
- package/dist/packages/layout/src/sidebar.d.ts +3 -3
- package/dist/{pierre-diff--zsiHCCB.js → pierre-diff-sUAU-xeL.js} +1 -1
- package/dist/{pierre-theme-D9hnHv3Z.js → pierre-theme-CBAncKdH.js} +1 -1
- package/dist/{pierre-tree-BFxEuxwb.js → pierre-tree-DKN2eGlZ.js} +3 -3
- package/dist/{src-sU9b0oZW.js → src-3gzujMhN.js} +861 -319
- package/dist/{src-CBspCKfO.js → src-CI6KtN2w.js} +366 -307
- package/dist/{src-Cs0dRc4X.js → src-CVlgjAlw.js} +1 -1
- package/dist/src-DOzle5d4.js +1199 -0
- package/dist/tokens.js +38 -32
- package/package.json +1 -1
- package/packages/foundations/src/tokens.stylex.ts +61 -53
- 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';
|
|
@@ -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' | '
|
|
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 =
|
|
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;
|
|
@@ -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.
|
|
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-
|
|
2
|
-
import { l as t } from "./src-
|
|
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-
|
|
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";
|