@movable/ui 0.16.0 → 0.16.1

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.
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ import { SxProps, Theme } from '@mui/material';
2
3
  type InkPageHeaderProps = {
3
4
  Breadcrumbs?: JSX.Element;
4
5
  Subtitle?: JSX.Element;
@@ -6,6 +7,7 @@ type InkPageHeaderProps = {
6
7
  ButtonGroup?: JSX.Element;
7
8
  Chips?: JSX.Element;
8
9
  Tabs?: JSX.Element;
10
+ sx?: SxProps<Theme>;
9
11
  };
10
- export declare function InkPageHeader({ Breadcrumbs, Subtitle, Metadata, Chips, ButtonGroup, Tabs, }: InkPageHeaderProps): import("react/jsx-runtime").JSX.Element;
12
+ export declare function InkPageHeader({ Breadcrumbs, Subtitle, Metadata, Chips, ButtonGroup, Tabs, sx, }: InkPageHeaderProps): import("react/jsx-runtime").JSX.Element;
11
13
  export {};
package/lib/index.mjs CHANGED
@@ -676,13 +676,14 @@ function pi({
676
676
  function gi({ metadata: e }) {
677
677
  return _.jsx(Ae, { direction: "row", spacing: 2, children: e.map(({ icon: r, label: o, value: n }) => _.jsxs(Ae, { direction: "row", spacing: 0.5, children: [_.jsx(ir, { fontSize: "small", sx: { color: "neutral600" }, children: r }), _.jsx(ke, { variant: "body2", color: "text.secondary", children: o }), _.jsx(ke, { variant: "body2", children: n })] }, o)) });
678
678
  }
679
- function yi({ Breadcrumbs: e, Subtitle: r, Metadata: o, Chips: n, ButtonGroup: i, Tabs: a }) {
679
+ function yi({ Breadcrumbs: e, Subtitle: r, Metadata: o, Chips: n, ButtonGroup: i, Tabs: a, sx: s }) {
680
680
  return _.jsx("header", { children: _.jsxs(Ae, { direction: "column", spacing: 2, sx: {
681
681
  borderBottom: 1,
682
682
  borderColor: "divider",
683
683
  px: 3,
684
684
  py: 3,
685
- ...a && { pb: -3 }
685
+ ...a && { pb: -3 },
686
+ ...s
686
687
  }, children: [_.jsxs(Ae, { direction: "row", spacing: 2, justifyContent: "space-between", alignItems: "center", children: [_.jsxs(Ae, { direction: "row", spacing: 1, alignItems: "center", children: [e, n] }), i] }), o, r, a] }) });
687
688
  }
688
689
  function an({ label: e }) {