@movable/ui 2.6.0 → 2.6.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.
package/lib/index.d.ts CHANGED
@@ -229,13 +229,14 @@ declare type InkPageHeaderProps = {
229
229
  sx?: SxProps<Theme>;
230
230
  };
231
231
 
232
- export declare function InkPaper({ Header, Description, Icon, CTA, children, ...props }: InkPaperProps): JSX_2.Element;
232
+ export declare function InkPaper({ Header, Description, Icon, CTA, children, shouldShowFullDescription, ...props }: InkPaperProps): JSX_2.Element;
233
233
 
234
234
  export declare type InkPaperProps = PaperProps & {
235
235
  Header: string | JSX.Element;
236
- Description?: string;
236
+ Description?: string | JSX.Element;
237
237
  Icon?: JSX.Element;
238
238
  CTA?: JSX.Element;
239
+ shouldShowFullDescription?: boolean;
239
240
  };
240
241
 
241
242
  export declare function InkPersistentFilterDrawer({ isOpen, handleDrawerClose, children, drawerWidth, leftOffset, //primary nav width when closed and when open
package/lib/index.mjs CHANGED
@@ -5440,20 +5440,20 @@ process.env.NODE_ENV !== "production" && (Yt.propTypes = {
5440
5440
  */
5441
5441
  variantMapping: i.object
5442
5442
  });
5443
- function hb({ Header: e, Description: t, Icon: r, CTA: n, children: o, ...a }) {
5444
- return g.jsxs(sa, { "data-test": "ink-paper", ...a, sx: {
5445
- ...a.sx,
5443
+ function hb({ Header: e, Description: t, Icon: r, CTA: n, children: o, shouldShowFullDescription: a = !1, ...s }) {
5444
+ return g.jsxs(sa, { "data-test": "ink-paper", ...s, sx: {
5445
+ ...s.sx,
5446
5446
  borderRadius: "6px",
5447
5447
  border: "1px solid neutral200"
5448
5448
  }, children: [g.jsxs(Ci, { direction: "row", spacing: 2, useFlexGap: !0, sx: {
5449
5449
  alignItems: "center",
5450
5450
  justifyContent: "flex-start",
5451
- marginBottom: (s) => s.spacing(3)
5452
- }, children: [r, g.jsxs(Ci, { direction: "column", sx: {
5451
+ marginBottom: (c) => c.spacing(3)
5452
+ }, children: [r, g.jsxs(Ci, { direction: "column", sx: a ? {} : {
5453
5453
  flexBasis: "100%",
5454
5454
  overflow: "hidden",
5455
5455
  textOverflow: "ellipsis"
5456
- }, children: [typeof e != "string" ? g.jsx(g.Fragment, { children: e }) : g.jsx(Yt, { "data-test": "ink-paper-header", variant: "subtitle1", color: "text.primary", component: "strong", fontWeight: 600, children: e }), t && g.jsx(Yt, { "data-test": "ink-paper-description", variant: "caption", color: "text.secondary", noWrap: !0, children: t })] }), n] }), o] });
5456
+ }, children: [typeof e != "string" ? g.jsx(g.Fragment, { children: e }) : g.jsx(Yt, { "data-test": "ink-paper-header", variant: "subtitle1", color: "text.primary", component: "strong", fontWeight: 600, children: e }), t && g.jsx(g.Fragment, { children: typeof t != "string" ? t : g.jsx(Yt, { "data-test": "ink-paper-description", variant: "caption", color: "text.secondary", noWrap: !a, children: t }) })] }), n] }), o] });
5457
5457
  }
5458
5458
  const gb = ({ name: e, options: t, value: r, ref: n, direction: o = "row", cardSx: a, fullWidth: s = !0, disabled: c = !1, onChange: l, onBlur: u }) => {
5459
5459
  const d = (p, h, b, m) => m ? p ? h : "inherit" : b, f = (p, h, b, m, v) => v ? p ? h : m : p ? h : b;