@movable/ui 1.5.1 → 1.6.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.
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { PaperProps } from '@mui/material/Paper';
3
3
  export type InkPaperProps = PaperProps & {
4
- Header: string;
4
+ Header: string | JSX.Element;
5
5
  Description?: string;
6
6
  Icon?: JSX.Element;
7
7
  CTA?: JSX.Element;
package/lib/index.mjs CHANGED
@@ -5664,7 +5664,7 @@ function yf({ Header: e, Description: r, Icon: t, CTA: n, children: o, ...i }) {
5664
5664
  flexBasis: "100%",
5665
5665
  overflow: "hidden",
5666
5666
  textOverflow: "ellipsis"
5667
- }, children: [y.jsx($o, { "data-test": "ink-paper-header", variant: "subtitle1", color: "text.primary", component: "strong", children: e }), r && y.jsx($o, { "data-test": "ink-paper-description", variant: "caption", color: "text.secondary", noWrap: !0, children: r })] }), n] }), o] });
5667
+ }, children: [typeof e != "string" ? y.jsx(y.Fragment, { children: e }) : y.jsx($o, { "data-test": "ink-paper-header", variant: "subtitle1", color: "text.primary", component: "strong", fontWeight: 600, children: e }), r && y.jsx($o, { "data-test": "ink-paper-description", variant: "caption", color: "text.secondary", noWrap: !0, children: r })] }), n] }), o] });
5668
5668
  }
5669
5669
  const vf = ({ name: e, options: r, onChange: t, onBlur: n, value: o, ref: i, direction: a = "row", cardSx: s, fullWidth: l = !0 }) => y.jsx(Aa, { name: e, onChange: t, onBlur: n, value: o, ref: i, "aria-label": e, sx: { width: l ? "100%" : "fit-content" }, children: y.jsx(Fe, { direction: a, spacing: 2, children: r.map(({ value: u, icon: d, title: m, description: p, subDescription: E }) => y.jsx(Wo, { value: u, control: y.jsx($a, { sx: { display: "none" } }), sx: {
5670
5670
  width: l ? "100%" : "auto",