@mx-cartographer/experiences 9.7.57 → 9.7.59

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 (36) hide show
  1. package/CHANGELOG.md +8 -1
  2. package/dist/common/components/Banner.es.js +33 -30
  3. package/dist/common/components/Banner.es.js.map +1 -1
  4. package/dist/common/constants/Connect.d.ts +7 -0
  5. package/dist/common/constants/Connect.es.js +13 -8
  6. package/dist/common/constants/Connect.es.js.map +1 -1
  7. package/dist/common/constants/index.d.ts +1 -1
  8. package/dist/common/index.es.js +131 -129
  9. package/dist/core/types/Handlers.d.ts +4 -0
  10. package/dist/core/types/InsightsInstanceSlotData.d.ts +2 -1
  11. package/dist/core/types/InsightsInstanceSlotData.es.js.map +1 -1
  12. package/dist/insights-v2/blocks/ComponentBlocks/MerchantBlock/MerchantBlock.es.js +93 -53
  13. package/dist/insights-v2/blocks/ComponentBlocks/MerchantBlock/MerchantBlock.es.js.map +1 -1
  14. package/dist/insights-v2/blocks/ComponentBlocks/MerchantBlock/layout.d.ts +20 -20
  15. package/dist/insights-v2/blocks/ComponentBlocks/MerchantBlock/layout.es.js +48 -39
  16. package/dist/insights-v2/blocks/ComponentBlocks/MerchantBlock/layout.es.js.map +1 -1
  17. package/dist/insights-v2/components/LogoClusterCard.d.ts +7 -1
  18. package/dist/insights-v2/components/LogoClusterCard.es.js +54 -48
  19. package/dist/insights-v2/components/LogoClusterCard.es.js.map +1 -1
  20. package/dist/insights-v2/components/LogoTile.d.ts +6 -4
  21. package/dist/insights-v2/components/LogoTile.es.js +21 -19
  22. package/dist/insights-v2/components/LogoTile.es.js.map +1 -1
  23. package/dist/insights-v2/components/MerchantHighlightCard.d.ts +8 -3
  24. package/dist/insights-v2/components/MerchantHighlightCard.es.js +24 -21
  25. package/dist/insights-v2/components/MerchantHighlightCard.es.js.map +1 -1
  26. package/dist/insights-v2/components/P2PLogoStack.d.ts +7 -1
  27. package/dist/insights-v2/components/P2PLogoStack.es.js +34 -26
  28. package/dist/insights-v2/components/P2PLogoStack.es.js.map +1 -1
  29. package/dist/insights-v2/components/celebrationGradients.d.ts +6 -3
  30. package/dist/insights-v2/components/celebrationGradients.es.js +8 -7
  31. package/dist/insights-v2/components/celebrationGradients.es.js.map +1 -1
  32. package/dist/insights-v2/components/statusTokens.d.ts +0 -5
  33. package/dist/insights-v2/components/statusTokens.es.js +0 -5
  34. package/dist/insights-v2/components/statusTokens.es.js.map +1 -1
  35. package/dist/insights-v2/index.es.js +75 -75
  36. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"LogoClusterCard.es.js","names":[],"sources":["../../../src/insights-v2/components/LogoClusterCard.tsx"],"sourcesContent":["import type { ReactNode } from 'react'\n\nimport Badge from '@mui/material/Badge'\nimport Box from '@mui/material/Box'\nimport Stack from '@mui/material/Stack'\nimport type { SxProps, Theme } from '@mui/material/styles'\n\nimport LogoTile from './LogoTile'\nimport { getLogoElevation } from './logoShadow'\n\ninterface LogoClusterCardProps {\n /** Brand/merchant logo visuals, rendered as a row of tiles. */\n logos: ReactNode[]\n /** Tile size in px. */\n logoSize?: number\n /** Card surface color/background token or CSS background string. */\n background?: string\n /**\n * Stagger the tiles diagonally (Figma cycles each tile's vertical alignment\n * top -> center -> bottom). When false, all tiles are vertically centered.\n * Default true.\n */\n stagger?: boolean\n /**\n * Overlay a 1-based rank badge on the top-left of each tile (Figma: Monthly\n * Top Merchant Spending V3). Default false.\n */\n ranked?: boolean\n /**\n * Accessible label for each rank badge, given the 1-based rank. Lets the\n * consumer pass localized copy (e.g. from the copy store) and control word\n * order. Defaults to `Rank {n}` — callers in a localized context must supply a\n * copy-store-derived function, or they will ship the English default.\n */\n rankLabel?: (rank: number) => string\n /**\n * Optional element rendered below the logo row (e.g. a `<StatusPill>`).\n * Figma: a status stacked beneath the logos on the slot.\n */\n footer?: ReactNode\n sx?: SxProps\n}\n\n// Default accessible label for a rank badge. Hoisted to a stable reference so\n// it isn't re-created each render (consumers override via the `rankLabel` prop,\n// e.g. with localized copy).\nconst defaultRankLabel = (rank: number) => `Rank ${rank}`\n\n// Non-ranked (MSA V2): tiles cascade via counter-axis alignment in a 112 zone\n// (tops 0/20/40).\nconst STAGGER_ALIGN = ['flex-start', 'center', 'flex-end'] as const\nconst STAGGER_STEP = 20\n// Ranked (Top Merchant V3): exact Figma logo top-offsets within the 122 `Logos`\n// content zone (logo2 bottom leaves ~7px). Not a uniform step, so use the\n// measured values rather than alignSelf.\nconst RANK_TILE_OFFSETS = [10, 25, 43] as const\nconst RANK_ROW_HEIGHT = 122\n// Figma: the rank badge overhangs the logo's top-left by 10px left / 8px up.\n// The row reserves the left overhang once (so the first badge stays inside the\n// card edge); the badge itself is offset by it via the MUI transform below.\nconst RANK_BADGE_OVERHANG = { x: 10, y: 8 } as const\n\n// Figma rank badge on MUI `Badge`: a 24px pure-black disc, 1px white border,\n// white `body2` number, soft elevation shadow. MUI centers the badge on the\n// logo's corner (`translate(-50%,-50%)`); override the transform so its top-left\n// lands exactly 10px left / 8px above the logo (Figma's overhang).\nconst rankBadgeSx: SxProps<Theme> = {\n '& .MuiBadge-badge': {\n // Intentional: `common.black`/`common.white` are mode-INDEPENDENT in\n // createMXTheme (unlike `text.primary`/`primary.contrastText`, which flip\n // per theme). A white-on-black disc plus the white border below keeps the\n // badge legible in BOTH light and dark mode — this is the dark-mode FIX, not\n // a bug. Do not \"theme-aware\"-ify these colors; it would break the Figma\n // look in light mode for no gain (the number sits on the always-black disc,\n // never on the surface).\n bgcolor: 'common.black',\n border: '1px solid',\n borderColor: 'common.white',\n borderRadius: '999px',\n boxShadow: (theme: Theme) => getLogoElevation(theme),\n color: 'common.white',\n // Figma number is `typography/body2` (13px / regular), not MUI's badge\n // default (12px / medium).\n fontSize: (theme: Theme) => theme.typography.body2.fontSize,\n fontWeight: (theme: Theme) => theme.typography.fontWeightRegular,\n height: 24,\n minWidth: 24,\n padding: 0,\n transform: `translate(-${RANK_BADGE_OVERHANG.x}px, -${RANK_BADGE_OVERHANG.y}px)`,\n },\n}\n\n/**\n * A row of rounded brand/logo tiles on a card surface, diagonally staggered\n * (top -> center -> bottom). Figma: Monthly Subscription Aggregate V2.\n */\nconst LogoClusterCard = ({\n background,\n footer,\n logoSize = 72,\n logos,\n ranked = false,\n rankLabel = defaultRankLabel,\n stagger = true,\n sx,\n}: LogoClusterCardProps) => {\n // Non-ranked cascades via alignSelf in a `logoSize + span` zone. Ranked uses\n // the exact Figma offsets in the 122 zone (its cascade isn't a uniform step).\n const staggerSpan = stagger ? (STAGGER_ALIGN.length - 1) * STAGGER_STEP : 0\n const rowHeight = ranked ? RANK_ROW_HEIGHT : logoSize + staggerSpan\n // Figma `Logos` frame side padding: 32 for MSA V2, 16 for the ranked cluster.\n const rowPaddingX = ranked ? 16 : 32\n\n return (\n <Stack sx={{ pt: 8, px: 16, width: '100%', ...sx }}>\n <Stack\n sx={{\n alignItems: 'center',\n background: background ?? undefined,\n bgcolor: background ? undefined : 'background.paper',\n borderRadius: '8px',\n gap: 12,\n // Card (Figma `Wrapper`) has no horizontal padding of its own — the\n // logo row carries its side padding (`rowPaddingX`); only vertical.\n py: 16,\n width: '100%',\n }}\n >\n <Stack\n sx={{\n alignItems: 'flex-start',\n flexDirection: 'row',\n // Both variants use Figma's SPACE_BETWEEN (fills the row). Ranked\n // items reserve the badge overhang (below), so this yields Figma's\n // 26/18 side insets and ~14px visible gaps; MSA yields ~3px gaps.\n justifyContent: 'space-between',\n height: rowHeight,\n px: rowPaddingX,\n width: '100%',\n }}\n >\n {logos.map((logo, index) => {\n const tile = (\n <LogoTile borderColor=\"divider\" shadow=\"elevation\" size={logoSize}>\n {logo}\n </LogoTile>\n )\n // Ranked: offset each tile to its exact Figma top and size the item\n // to Figma's badge-inclusive box (72 logo + 10 left overhang + 2\n // right = 84), with the logo pushed right by the overhang. Then\n // SPACE_BETWEEN reproduces the 26/18 side insets and 14px gaps.\n // Non-ranked: cascade via alignSelf in the stagger zone.\n const positionSx = ranked\n ? {\n boxSizing: 'border-box' as const,\n mt: RANK_TILE_OFFSETS[index % RANK_TILE_OFFSETS.length],\n pl: RANK_BADGE_OVERHANG.x,\n width: logoSize + RANK_BADGE_OVERHANG.x + 2,\n }\n : { alignSelf: stagger ? STAGGER_ALIGN[index % STAGGER_ALIGN.length] : 'center' }\n\n return (\n // Index key is fine: the caller-supplied list is static.\n <Box\n // eslint-disable-next-line react/no-array-index-key\n key={index}\n sx={positionSx}\n >\n {ranked ? (\n <Badge\n anchorOrigin={{ horizontal: 'left', vertical: 'top' }}\n aria-label={rankLabel(index + 1)}\n // `role=\"img\"` gives the root span a role that supports an\n // accessible name, so aria-label is surfaced to AT (a bare\n // generic span's aria-label is not announced).\n role=\"img\"\n // Hide the visible number from AT so the badge is announced\n // once via aria-label (\"Rank 1\"), not twice (\"Rank 1 … 1\").\n badgeContent={<span aria-hidden={true}>{index + 1}</span>}\n overlap=\"rectangular\"\n sx={rankBadgeSx}\n >\n {tile}\n </Badge>\n ) : (\n tile\n )}\n </Box>\n )\n })}\n </Stack>\n {footer && <Box sx={{ px: 16, width: '100%' }}>{footer}</Box>}\n </Stack>\n </Stack>\n )\n}\n\nexport default LogoClusterCard\n"],"mappings":";;;;;;AA8CA,IAAM,IAAA,CAAoB,MAAiB,QAAQ,CAAA,IAI7C,IAAgB;AAAA,EAAC;AAAA,EAAc;AAAA,EAAU;AAAU,GACnD,IAAe,IAIf,IAAoB;AAAA,EAAC;AAAA,EAAI;AAAA,EAAI;AAAE,GAC/B,IAAkB,KAIlB,IAAsB;AAAA,EAAE,GAAG;AAAA,EAAI,GAAG;AAAE,GAMpC,IAA8B,EAClC,qBAAqB;AAAA,EAQnB,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,aAAa;AAAA,EACb,cAAc;AAAA,EACd,WAAA,CAAY,MAAiB,EAAiB,CAAK;AAAA,EACnD,OAAO;AAAA,EAGP,UAAA,CAAW,MAAiB,EAAM,WAAW,MAAM;AAAA,EACnD,YAAA,CAAa,MAAiB,EAAM,WAAW;AAAA,EAC/C,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,SAAS;AAAA,EACT,WAAW,cAAc,EAAoB,CAAA,QAAS,EAAoB,CAAA;AAC5E,EACF,GAMM,IAAA,CAAmB,EACvB,YAAA,GACA,QAAA,GACA,UAAA,IAAW,IACX,OAAA,GACA,QAAA,IAAS,IACT,WAAA,IAAY,GACZ,SAAA,IAAU,IACV,IAAA,EAAA,MAC0B;AAG1B,QAAM,IAAc,KAAW,EAAc,SAAS,KAAK,IAAe,GACpE,IAAY,IAAS,IAAkB,IAAW,GAElD,IAAc,IAAS,KAAK;AAElC,SACE,gBAAA,EAAC,GAAD;AAAA,IAAO,IAAI;AAAA,MAAE,IAAI;AAAA,MAAG,IAAI;AAAA,MAAI,OAAO;AAAA,MAAQ,GAAG;AAAA,IAAG;AAAA,IAC/C,UAAA,gBAAA,EAAC,GAAD;AAAA,MACE,IAAI;AAAA,QACF,YAAY;AAAA,QACZ,YAAY,KAAc;AAAA,QAC1B,SAAS,IAAa,SAAY;AAAA,QAClC,cAAc;AAAA,QACd,KAAK;AAAA,QAGL,IAAI;AAAA,QACJ,OAAO;AAAA,MACT;AAAA,MAXF,UAAA,CAaE,gBAAA,EAAC,GAAD;AAAA,QACE,IAAI;AAAA,UACF,YAAY;AAAA,UACZ,eAAe;AAAA,UAIf,gBAAgB;AAAA,UAChB,QAAQ;AAAA,UACR,IAAI;AAAA,UACJ,OAAO;AAAA,QACT;AAAA,QAEC,UAAA,EAAM,IAAA,CAAK,GAAM,MAAU;AAC1B,gBAAM,IACJ,gBAAA,EAAC,GAAD;AAAA,YAAU,aAAY;AAAA,YAAU,QAAO;AAAA,YAAY,MAAM;AAAA,YACtD,UAAA;AAAA,UACO,CAAA,GAON,IAAa,IACf;AAAA,YACE,WAAW;AAAA,YACX,IAAI,EAAkB,IAAQ,EAAkB,MAAA;AAAA,YAChD,IAAI,EAAoB;AAAA,YACxB,OAAO,IAAW,EAAoB,IAAI;AAAA,UAC5C,IACA,EAAE,WAAW,IAAU,EAAc,IAAQ,EAAc,MAAA,IAAU,SAAS;AAElF,iBAEE,gBAAA,EAAC,GAAD;AAAA,YAGE,IAAI;AAAA,YAEH,UAAA,IACC,gBAAA,EAAC,GAAD;AAAA,cACE,cAAc;AAAA,gBAAE,YAAY;AAAA,gBAAQ,UAAU;AAAA,cAAM;AAAA,cACpD,cAAY,EAAU,IAAQ,CAAC;AAAA,cAI/B,MAAK;AAAA,cAGL,cAAc,gBAAA,EAAC,QAAD;AAAA,gBAAM,eAAa;AAAA,gBAAO,UAAA,IAAQ;AAAA,cAAQ,CAAA;AAAA,cACxD,SAAQ;AAAA,cACR,IAAI;AAAA,cAEH,UAAA;AAAA,YACI,CAAA,IAEP;AAAA,UAEC,GAtBE,CAsBF;AAAA,QAET,CAAC;AAAA,MACI,CAAA,GACN,KAAU,gBAAA,EAAC,GAAD;AAAA,QAAK,IAAI;AAAA,UAAE,IAAI;AAAA,UAAI,OAAO;AAAA,QAAO;AAAA,QAAI,UAAA;AAAA,MAAY,CAAA,CACvD;AAAA;EACF,CAAA;AAEX"}
1
+ {"version":3,"file":"LogoClusterCard.es.js","names":[],"sources":["../../../src/insights-v2/components/LogoClusterCard.tsx"],"sourcesContent":["import type { ReactNode } from 'react'\n\nimport Badge from '@mui/material/Badge'\nimport Box from '@mui/material/Box'\nimport Stack from '@mui/material/Stack'\nimport type { SxProps, Theme } from '@mui/material/styles'\n\nimport LogoTile from './LogoTile'\nimport { getLogoElevation } from './logoShadow'\n\ninterface LogoClusterCardProps {\n /** Brand/merchant logo visuals, rendered as a row of tiles. */\n logos: ReactNode[]\n /** Tile size in px. */\n logoSize?: number\n /** Card surface color/background token or CSS background string. */\n background?: string\n /**\n * Stagger the tiles diagonally (Figma cycles each tile's vertical alignment\n * top -> center -> bottom). When false, all tiles are vertically centered.\n * Default true.\n */\n stagger?: boolean\n /**\n * Overlay a 1-based rank badge on the top-left of each tile (Figma: Monthly\n * Top Merchant Spending V3). Default false.\n */\n ranked?: boolean\n /**\n * Accessible label for each rank badge, given the 1-based rank. Lets the\n * consumer pass localized copy (e.g. from the copy store) and control word\n * order. Defaults to `Rank {n}` — callers in a localized context must supply a\n * copy-store-derived function, or they will ship the English default.\n */\n rankLabel?: (rank: number) => string\n /** Ranked tile top offsets, cycled. */\n rankOffsets?: readonly number[]\n /** Ranked tiles overlap by this many px, centred. */\n overlap?: number\n /** Edge to edge: no inset, square corners. */\n fullBleed?: boolean\n /**\n * Optional element rendered below the logo row (e.g. a `<StatusPill>`).\n * Figma: a status stacked beneath the logos on the slot.\n */\n footer?: ReactNode\n sx?: SxProps\n}\n\n// Default accessible label for a rank badge. Hoisted to a stable reference so\n// it isn't re-created each render (consumers override via the `rankLabel` prop,\n// e.g. with localized copy).\nconst defaultRankLabel = (rank: number) => `Rank ${rank}`\n\n// Non-ranked (MSA V2): tiles cascade via counter-axis alignment in a 112 zone\n// (tops 0/20/40).\nconst STAGGER_ALIGN = ['flex-start', 'center', 'flex-end'] as const\nconst STAGGER_STEP = 20\n// Ranked (Top Merchant V3): exact Figma logo top-offsets within the 122 `Logos`\n// content zone (logo2 bottom leaves ~7px). Not a uniform step, so use the\n// measured values rather than alignSelf.\nconst RANK_TILE_OFFSETS = [10, 25, 43] as const\nconst RANK_ROW_HEIGHT = 122\n// Figma: the rank badge overhangs the logo's top-left by 10px left / 8px up.\n// The row reserves the left overhang once (so the first badge stays inside the\n// card edge); the badge itself is offset by it via the MUI transform below.\nconst RANK_BADGE_OVERHANG = { x: 10, y: 8 } as const\n\n// Figma rank badge on MUI `Badge`: a 24px pure-black disc, 1px white border,\n// white `body2` number, soft elevation shadow. MUI centers the badge on the\n// logo's corner (`translate(-50%,-50%)`); override the transform so its top-left\n// lands exactly 10px left / 8px above the logo (Figma's overhang).\nconst rankBadgeSx: SxProps<Theme> = {\n '& .MuiBadge-badge': {\n // Intentional: `common.black`/`common.white` are mode-INDEPENDENT in\n // createMXTheme (unlike `text.primary`/`primary.contrastText`, which flip\n // per theme). A white-on-black disc plus the white border below keeps the\n // badge legible in BOTH light and dark mode — this is the dark-mode FIX, not\n // a bug. Do not \"theme-aware\"-ify these colors; it would break the Figma\n // look in light mode for no gain (the number sits on the always-black disc,\n // never on the surface).\n bgcolor: 'common.black',\n border: '1px solid',\n borderColor: 'common.white',\n borderRadius: '999px',\n boxShadow: (theme: Theme) => getLogoElevation(theme),\n color: 'common.white',\n // Figma number is `typography/body2` (13px / regular), not MUI's badge\n // default (12px / medium).\n fontSize: (theme: Theme) => theme.typography.body2.fontSize,\n fontWeight: (theme: Theme) => theme.typography.fontWeightRegular,\n height: 24,\n minWidth: 24,\n padding: 0,\n transform: `translate(-${RANK_BADGE_OVERHANG.x}px, -${RANK_BADGE_OVERHANG.y}px)`,\n },\n}\n\n/**\n * A row of rounded brand/logo tiles on a card surface, diagonally staggered\n * (top -> center -> bottom). Figma: Monthly Subscription Aggregate V2.\n */\nconst LogoClusterCard = ({\n background,\n footer,\n fullBleed = false,\n logoSize = 72,\n logos,\n overlap,\n ranked = false,\n rankLabel = defaultRankLabel,\n rankOffsets = RANK_TILE_OFFSETS,\n stagger = true,\n sx,\n}: LogoClusterCardProps) => {\n // Non-ranked cascades via alignSelf in a `logoSize + span` zone. Ranked uses\n // the exact Figma offsets in the 122 zone (its cascade isn't a uniform step).\n const staggerSpan = stagger ? (STAGGER_ALIGN.length - 1) * STAGGER_STEP : 0\n const rowHeight = ranked ? RANK_ROW_HEIGHT : logoSize + staggerSpan\n // Figma `Logos` frame side padding: 32 for MSA V2, 16 for the ranked cluster.\n const rowPaddingX = ranked ? (fullBleed ? 24 : 16) : 32\n const overlapping = ranked && overlap !== undefined\n\n return (\n <Stack sx={{ pt: fullBleed ? 0 : 8, px: fullBleed ? 0 : 16, width: '100%', ...sx }}>\n <Stack\n sx={{\n alignItems: 'center',\n background: background ?? undefined,\n bgcolor: background ? undefined : 'background.paper',\n borderRadius: fullBleed ? 0 : '8px',\n gap: 12,\n // Card (Figma `Wrapper`) has no horizontal padding of its own — the\n // logo row carries its side padding (`rowPaddingX`); only vertical.\n py: 16,\n width: '100%',\n }}\n >\n <Stack\n sx={{\n alignItems: 'flex-start',\n flexDirection: 'row',\n // Both variants use Figma's SPACE_BETWEEN (fills the row). Ranked\n // items reserve the badge overhang (below), so this yields Figma's\n // 26/18 side insets and ~14px visible gaps; MSA yields ~3px gaps.\n justifyContent: overlapping ? 'center' : 'space-between',\n isolation: overlapping ? 'isolate' : undefined,\n height: rowHeight,\n px: rowPaddingX,\n width: '100%',\n }}\n >\n {logos.map((logo, index) => {\n const tile = (\n <LogoTile borderColor=\"divider\" shadow=\"elevation\" size={logoSize}>\n {logo}\n </LogoTile>\n )\n // Ranked: offset each tile to its exact Figma top and size the item\n // to Figma's badge-inclusive box (72 logo + 10 left overhang + 2\n // right = 84), with the logo pushed right by the overhang. Then\n // SPACE_BETWEEN reproduces the 26/18 side insets and 14px gaps.\n // Non-ranked: cascade via alignSelf in the stagger zone.\n const positionSx = ranked\n ? {\n boxSizing: 'border-box' as const,\n mt: rankOffsets[index % rankOffsets.length],\n pl: RANK_BADGE_OVERHANG.x,\n width: logoSize + RANK_BADGE_OVERHANG.x + 2,\n ...(overlapping && {\n ml: index ? `${-(RANK_BADGE_OVERHANG.x + 2 + overlap)}px` : 0,\n position: 'relative' as const,\n zIndex: index + 1,\n }),\n }\n : { alignSelf: stagger ? STAGGER_ALIGN[index % STAGGER_ALIGN.length] : 'center' }\n\n return (\n // Index key is fine: the caller-supplied list is static.\n <Box\n // eslint-disable-next-line react/no-array-index-key\n key={index}\n sx={positionSx}\n >\n {ranked ? (\n <Badge\n anchorOrigin={{ horizontal: 'left', vertical: 'top' }}\n aria-label={rankLabel(index + 1)}\n // `role=\"img\"` gives the root span a role that supports an\n // accessible name, so aria-label is surfaced to AT (a bare\n // generic span's aria-label is not announced).\n role=\"img\"\n // Hide the visible number from AT so the badge is announced\n // once via aria-label (\"Rank 1\"), not twice (\"Rank 1 … 1\").\n badgeContent={<span aria-hidden={true}>{index + 1}</span>}\n overlap=\"rectangular\"\n sx={rankBadgeSx}\n >\n {tile}\n </Badge>\n ) : (\n tile\n )}\n </Box>\n )\n })}\n </Stack>\n {footer && <Box sx={{ px: 16, width: '100%' }}>{footer}</Box>}\n </Stack>\n </Stack>\n )\n}\n\nexport default LogoClusterCard\n"],"mappings":"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"}
@@ -7,8 +7,10 @@ interface LogoTileProps {
7
7
  size?: number;
8
8
  /** Surface color token. */
9
9
  bgcolor?: string;
10
- /** Border color token. */
11
- borderColor?: string;
10
+ /** Border color token; `null` draws no border. */
11
+ borderColor?: string | null;
12
+ /** Corner radius in px. Default 8 (`borderRadiusLarge`). */
13
+ borderRadius?: number;
12
14
  /**
13
15
  * Drop-shadow: `'offset'`/`true` = hard bottom-right (merchant, P2P);
14
16
  * `'elevation'` = soft `0 2px 8px`; `false` (default) = none.
@@ -23,9 +25,9 @@ interface LogoTileProps {
23
25
  }
24
26
  /**
25
27
  * The shared rounded brand/logo tile primitive (MerchantHighlightCard,
26
- * P2PLogoStack, LogoClusterCard): fixed square, 1px border, optional shadow.
28
+ * P2PLogoStack, LogoClusterCard): fixed square, optional border and shadow.
27
29
  * Named `LogoTile` (not `MerchantLogo`) to avoid colliding with MXUI's
28
30
  * `MerchantLogo` export.
29
31
  */
30
- declare const LogoTile: ({ bgcolor, borderColor, children, reserveShadowSpace, shadow, size, sx, }: LogoTileProps) => import("react/jsx-runtime").JSX.Element;
32
+ declare const LogoTile: ({ bgcolor, borderColor, borderRadius, children, reserveShadowSpace, shadow, size, sx, }: LogoTileProps) => import("react/jsx-runtime").JSX.Element;
31
33
  export default LogoTile;
@@ -1,34 +1,36 @@
1
- import { LOGO_SHADOW_OFFSET as r, getLogoElevation as s, getLogoShadow as x } from "./logoShadow.es.js";
1
+ import { LOGO_SHADOW_OFFSET as i, getLogoElevation as m, getLogoShadow as p } from "./logoShadow.es.js";
2
2
  import { jsx as d } from "react/jsx-runtime";
3
- import m from "@mui/material/Box";
4
- var b = ({ bgcolor: i = "background.paper", borderColor: n = "common.white", children: a, reserveShadowSpace: f = !0, shadow: o = !1, size: e = 64, sx: l }) => {
5
- const t = o === !0 || o === "offset";
6
- return /* @__PURE__ */ d(m, {
3
+ import g from "@mui/material/Box";
4
+ var S = ({ bgcolor: n = "background.paper", borderColor: e = "common.white", borderRadius: a = 8, children: f, reserveShadowSpace: l = !0, shadow: o = !1, size: t = 64, sx: x }) => {
5
+ const r = o === !0 || o === "offset", s = o === "elevation";
6
+ return /* @__PURE__ */ d(g, {
7
7
  sx: {
8
8
  alignItems: "center",
9
- bgcolor: i,
10
- borderRadius: "8px",
9
+ bgcolor: n,
10
+ borderRadius: `${a}px`,
11
11
  display: "flex",
12
12
  flexShrink: 0,
13
- height: e,
13
+ height: t,
14
14
  justifyContent: "center",
15
15
  overflow: "hidden",
16
- width: e,
17
- border: "1px solid",
18
- borderColor: n,
19
- ...t && { boxShadow: x },
20
- ...o === "elevation" && { boxShadow: s },
21
- ...t && f && {
22
- mr: `${r.x}px`,
23
- mb: `${r.y}px`
16
+ width: t,
17
+ ...e !== null && {
18
+ border: "1px solid",
19
+ borderColor: e
24
20
  },
25
- ...l
21
+ ...r && { boxShadow: p },
22
+ ...s && { boxShadow: m },
23
+ ...r && l && {
24
+ mr: `${i.x}px`,
25
+ mb: `${i.y}px`
26
+ },
27
+ ...x
26
28
  },
27
- children: a
29
+ children: f
28
30
  });
29
31
  };
30
32
  export {
31
- b as default
33
+ S as default
32
34
  };
33
35
 
34
36
  //# sourceMappingURL=LogoTile.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"LogoTile.es.js","names":[],"sources":["../../../src/insights-v2/components/LogoTile.tsx"],"sourcesContent":["import type { ReactNode } from 'react'\n\nimport Box from '@mui/material/Box'\nimport type { SxProps } from '@mui/material/styles'\n\nimport { getLogoElevation, getLogoShadow, LOGO_SHADOW_OFFSET } from './logoShadow'\n\ninterface LogoTileProps {\n /** Logo/brand visual (arbitrary children). */\n children: ReactNode\n /** Square size in px. */\n size?: number\n /** Surface color token. */\n bgcolor?: string\n /** Border color token. */\n borderColor?: string\n /**\n * Drop-shadow: `'offset'`/`true` = hard bottom-right (merchant, P2P);\n * `'elevation'` = soft `0 2px 8px`; `false` (default) = none.\n */\n shadow?: boolean | 'offset' | 'elevation'\n /**\n * Reserve layout space for the offset shadow (margin = shadow offset) so a\n * sibling flex `gap` clears it. Default true; ignored unless shadow is offset.\n */\n reserveShadowSpace?: boolean\n sx?: SxProps\n}\n\n/**\n * The shared rounded brand/logo tile primitive (MerchantHighlightCard,\n * P2PLogoStack, LogoClusterCard): fixed square, 1px border, optional shadow.\n * Named `LogoTile` (not `MerchantLogo`) to avoid colliding with MXUI's\n * `MerchantLogo` export.\n */\nconst LogoTile = ({\n bgcolor = 'background.paper',\n borderColor = 'common.white',\n children,\n reserveShadowSpace = true,\n shadow = false,\n size = 64,\n sx,\n}: LogoTileProps) => {\n const isOffset = shadow === true || shadow === 'offset'\n const isElevation = shadow === 'elevation'\n\n return (\n <Box\n sx={{\n alignItems: 'center',\n bgcolor,\n borderRadius: '8px',\n display: 'flex',\n flexShrink: 0,\n height: size,\n justifyContent: 'center',\n overflow: 'hidden',\n width: size,\n border: '1px solid',\n borderColor,\n ...(isOffset && { boxShadow: getLogoShadow }),\n ...(isElevation && { boxShadow: getLogoElevation }),\n // The offset box-shadow paints outside the box; reserve its footprint so\n // a flex gap starts from the shadow's outer edge, not the tile border.\n // (The soft elevation shadow is symmetric and needs no reservation.)\n ...(isOffset &&\n reserveShadowSpace && {\n mr: `${LOGO_SHADOW_OFFSET.x}px`,\n mb: `${LOGO_SHADOW_OFFSET.y}px`,\n }),\n ...sx,\n }}\n >\n {children}\n </Box>\n )\n}\n\nexport default LogoTile\n"],"mappings":";;;AAmCA,IAAM,IAAA,CAAY,EAChB,SAAA,IAAU,oBACV,aAAA,IAAc,gBACd,UAAA,GACA,oBAAA,IAAqB,IACrB,QAAA,IAAS,IACT,MAAA,IAAO,IACP,IAAA,EAAA,MACmB;AACnB,QAAM,IAAW,MAAW,MAAQ,MAAW;AAG/C,SACE,gBAAA,EAAC,GAAD;AAAA,IACE,IAAI;AAAA,MACF,YAAY;AAAA,MACZ,SAAA;AAAA,MACA,cAAc;AAAA,MACd,SAAS;AAAA,MACT,YAAY;AAAA,MACZ,QAAQ;AAAA,MACR,gBAAgB;AAAA,MAChB,UAAU;AAAA,MACV,OAAO;AAAA,MACP,QAAQ;AAAA,MACR,aAAA;AAAA,MACA,GAAI,KAAY,EAAE,WAAW,EAAc;AAAA,MAC3C,GAjBc,MAAW,eAiBN,EAAE,WAAW,EAAiB;AAAA,MAIjD,GAAI,KACF,KAAsB;AAAA,QACpB,IAAI,GAAG,EAAmB,CAAA;AAAA,QAC1B,IAAI,GAAG,EAAmB,CAAA;AAAA,MAC5B;AAAA,MACF,GAAG;AAAA,IACL;AAAA,IAEC,UAAA;AAAA,EACE,CAAA;AAET"}
1
+ {"version":3,"file":"LogoTile.es.js","names":[],"sources":["../../../src/insights-v2/components/LogoTile.tsx"],"sourcesContent":["import type { ReactNode } from 'react'\n\nimport Box from '@mui/material/Box'\nimport type { SxProps } from '@mui/material/styles'\n\nimport { getLogoElevation, getLogoShadow, LOGO_SHADOW_OFFSET } from './logoShadow'\n\ninterface LogoTileProps {\n /** Logo/brand visual (arbitrary children). */\n children: ReactNode\n /** Square size in px. */\n size?: number\n /** Surface color token. */\n bgcolor?: string\n /** Border color token; `null` draws no border. */\n borderColor?: string | null\n /** Corner radius in px. Default 8 (`borderRadiusLarge`). */\n borderRadius?: number\n /**\n * Drop-shadow: `'offset'`/`true` = hard bottom-right (merchant, P2P);\n * `'elevation'` = soft `0 2px 8px`; `false` (default) = none.\n */\n shadow?: boolean | 'offset' | 'elevation'\n /**\n * Reserve layout space for the offset shadow (margin = shadow offset) so a\n * sibling flex `gap` clears it. Default true; ignored unless shadow is offset.\n */\n reserveShadowSpace?: boolean\n sx?: SxProps\n}\n\n/**\n * The shared rounded brand/logo tile primitive (MerchantHighlightCard,\n * P2PLogoStack, LogoClusterCard): fixed square, optional border and shadow.\n * Named `LogoTile` (not `MerchantLogo`) to avoid colliding with MXUI's\n * `MerchantLogo` export.\n */\nconst LogoTile = ({\n bgcolor = 'background.paper',\n borderColor = 'common.white',\n borderRadius = 8,\n children,\n reserveShadowSpace = true,\n shadow = false,\n size = 64,\n sx,\n}: LogoTileProps) => {\n const isOffset = shadow === true || shadow === 'offset'\n const isElevation = shadow === 'elevation'\n\n return (\n <Box\n sx={{\n alignItems: 'center',\n bgcolor,\n borderRadius: `${borderRadius}px`,\n display: 'flex',\n flexShrink: 0,\n height: size,\n justifyContent: 'center',\n overflow: 'hidden',\n width: size,\n ...(borderColor !== null && { border: '1px solid', borderColor }),\n ...(isOffset && { boxShadow: getLogoShadow }),\n ...(isElevation && { boxShadow: getLogoElevation }),\n // The offset box-shadow paints outside the box; reserve its footprint so\n // a flex gap starts from the shadow's outer edge, not the tile border.\n // (The soft elevation shadow is symmetric and needs no reservation.)\n ...(isOffset &&\n reserveShadowSpace && {\n mr: `${LOGO_SHADOW_OFFSET.x}px`,\n mb: `${LOGO_SHADOW_OFFSET.y}px`,\n }),\n ...sx,\n }}\n >\n {children}\n </Box>\n )\n}\n\nexport default LogoTile\n"],"mappings":";;;AAqCA,IAAM,IAAA,CAAY,EAChB,SAAA,IAAU,oBACV,aAAA,IAAc,gBACd,cAAA,IAAe,GACf,UAAA,GACA,oBAAA,IAAqB,IACrB,QAAA,IAAS,IACT,MAAA,IAAO,IACP,IAAA,EAAA,MACmB;AACnB,QAAM,IAAW,MAAW,MAAQ,MAAW,UACzC,IAAc,MAAW;AAE/B,SACE,gBAAA,EAAC,GAAD;AAAA,IACE,IAAI;AAAA,MACF,YAAY;AAAA,MACZ,SAAA;AAAA,MACA,cAAc,GAAG,CAAA;AAAA,MACjB,SAAS;AAAA,MACT,YAAY;AAAA,MACZ,QAAQ;AAAA,MACR,gBAAgB;AAAA,MAChB,UAAU;AAAA,MACV,OAAO;AAAA,MACP,GAAI,MAAgB,QAAQ;AAAA,QAAE,QAAQ;AAAA,QAAa,aAAA;AAAA,MAAY;AAAA,MAC/D,GAAI,KAAY,EAAE,WAAW,EAAc;AAAA,MAC3C,GAAI,KAAe,EAAE,WAAW,EAAiB;AAAA,MAIjD,GAAI,KACF,KAAsB;AAAA,QACpB,IAAI,GAAG,EAAmB,CAAA;AAAA,QAC1B,IAAI,GAAG,EAAmB,CAAA;AAAA,MAC5B;AAAA,MACF,GAAG;AAAA,IACL;AAAA,IAEC,UAAA;AAAA,EACE,CAAA;AAET"}
@@ -21,8 +21,13 @@ interface MerchantHighlightCardProps {
21
21
  background?: string;
22
22
  /** Card border color token (e.g. New Merchant's tinted card). */
23
23
  borderColor?: string;
24
- /** Render the logo's drop-shadow. Default true; false for MSA V2's Visual. */
25
- logoShadow?: boolean;
24
+ /** Logo tile shadow (see `LogoTile`). Default offset. */
25
+ logoShadow?: boolean | 'offset' | 'elevation';
26
+ logoSize?: number;
27
+ logoBorderColor?: string | null;
28
+ logoRadius?: number;
29
+ /** Edge to edge: no side inset, square corners. */
30
+ fullBleed?: boolean;
26
31
  sx?: SxProps;
27
32
  }
28
33
  /**
@@ -30,5 +35,5 @@ interface MerchantHighlightCardProps {
30
35
  * eyebrow, name, amount/trailing). Shared by Peer-to-Peer Categorization, New
31
36
  * Merchant, and Monthly Subscription Aggregate V2's Visual state.
32
37
  */
33
- declare const MerchantHighlightCard: ({ amount, amountVariant, background, bgcolor, borderColor, eyebrow, logo, logoShadow, name, nameVariant, trailing, sx, }: MerchantHighlightCardProps) => import("react/jsx-runtime").JSX.Element;
38
+ declare const MerchantHighlightCard: ({ amount, amountVariant, background, bgcolor, borderColor, eyebrow, fullBleed, logo, logoBorderColor, logoRadius, logoShadow, logoSize, name, nameVariant, trailing, sx, }: MerchantHighlightCardProps) => import("react/jsx-runtime").JSX.Element;
34
39
  export default MerchantHighlightCard;
@@ -1,22 +1,22 @@
1
- import v from "./LogoTile.es.js";
2
- import w from "./AmountPill.es.js";
1
+ import j from "./LogoTile.es.js";
2
+ import N from "./AmountPill.es.js";
3
3
  import i from "@mui/material/Stack";
4
- import { Text as l } from "@mxenabled/mxui";
5
- import { jsx as r, jsxs as c } from "react/jsx-runtime";
6
- var A = ({ amount: t, amountVariant: o = "text", background: n, bgcolor: h = "grey.200", borderColor: d, eyebrow: a, logo: p, logoShadow: s = !0, name: x, nameVariant: m, trailing: u, sx: f }) => {
7
- const g = m ?? (o === "pill" ? "h2" : "h3");
8
- let e = u;
9
- return e == null && t != null && (e = o === "pill" ? /* @__PURE__ */ r(w, { children: t }) : /* @__PURE__ */ r(l, {
4
+ import { Text as o } from "@mxenabled/mxui";
5
+ import { jsx as r, jsxs as s } from "react/jsx-runtime";
6
+ var C = ({ amount: t, amountVariant: l = "text", background: n, bgcolor: h = "grey.200", borderColor: d, eyebrow: a, fullBleed: c = !1, logo: p, logoBorderColor: x, logoRadius: m, logoShadow: f = !0, logoSize: u, name: g, nameVariant: v, trailing: w, sx: y }) => {
7
+ const b = v ?? (l === "pill" ? "h2" : "h3");
8
+ let e = w;
9
+ return e == null && t != null && (e = l === "pill" ? /* @__PURE__ */ r(N, { children: t }) : /* @__PURE__ */ r(o, {
10
10
  color: "text.secondary",
11
11
  variant: "body1",
12
12
  children: t
13
13
  })), /* @__PURE__ */ r(i, {
14
14
  sx: {
15
- px: 16,
15
+ px: c ? 0 : 16,
16
16
  width: "100%",
17
- ...f
17
+ ...y
18
18
  },
19
- children: /* @__PURE__ */ c(i, {
19
+ children: /* @__PURE__ */ s(i, {
20
20
  sx: {
21
21
  alignItems: "center",
22
22
  ...n ? { background: n } : { bgcolor: h },
@@ -24,32 +24,35 @@ var A = ({ amount: t, amountVariant: o = "text", background: n, bgcolor: h = "gr
24
24
  border: "1px solid",
25
25
  borderColor: d
26
26
  },
27
- borderRadius: "8px",
27
+ borderRadius: c ? 0 : "8px",
28
28
  flexDirection: "row",
29
29
  gap: 16,
30
30
  p: 16,
31
31
  width: "100%"
32
32
  },
33
- children: [/* @__PURE__ */ r(v, {
34
- shadow: s,
33
+ children: [/* @__PURE__ */ r(j, {
34
+ borderColor: x,
35
+ borderRadius: m,
36
+ shadow: f,
37
+ size: u,
35
38
  children: p
36
- }), /* @__PURE__ */ c(i, {
39
+ }), /* @__PURE__ */ s(i, {
37
40
  sx: {
38
41
  gap: 2,
39
42
  minWidth: 0
40
43
  },
41
44
  children: [
42
- a && /* @__PURE__ */ r(l, {
45
+ a && /* @__PURE__ */ r(o, {
43
46
  color: "text.secondary",
44
47
  truncate: !0,
45
48
  variant: "caption",
46
49
  children: a
47
50
  }),
48
- /* @__PURE__ */ r(l, {
49
- bold: !0,
51
+ /* @__PURE__ */ r(o, {
52
+ sx: { fontWeight: 700 },
50
53
  truncate: !0,
51
- variant: g,
52
- children: x
54
+ variant: b,
55
+ children: g
53
56
  }),
54
57
  e
55
58
  ]
@@ -58,7 +61,7 @@ var A = ({ amount: t, amountVariant: o = "text", background: n, bgcolor: h = "gr
58
61
  });
59
62
  };
60
63
  export {
61
- A as default
64
+ C as default
62
65
  };
63
66
 
64
67
  //# sourceMappingURL=MerchantHighlightCard.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"MerchantHighlightCard.es.js","names":[],"sources":["../../../src/insights-v2/components/MerchantHighlightCard.tsx"],"sourcesContent":["import type { ReactNode } from 'react'\n\nimport Stack from '@mui/material/Stack'\nimport type { SxProps } from '@mui/material/styles'\n\nimport { Text } from '@mxenabled/mxui'\n\nimport AmountPill from './AmountPill'\nimport LogoTile from './LogoTile'\n\ninterface MerchantHighlightCardProps {\n /** Brand/merchant logo visual (rendered inside a `LogoTile`). */\n logo: ReactNode\n /** Merchant/payee name. */\n name: ReactNode\n /** Optional label above the name (e.g. \"{Date}\"). */\n eyebrow?: ReactNode\n /** Amount. Rendered as a dark pill when `amountVariant='pill'`, else plain. */\n amount?: ReactNode\n /** How to render the amount. */\n amountVariant?: 'pill' | 'text'\n /** Typography variant for the name. Defaults to `h2` for `pill`, else `h3`. */\n nameVariant?: 'h2' | 'h3'\n /** Trailing element beneath the name (e.g. a `<StatusPill>`); replaces `amount`. */\n trailing?: ReactNode\n /** Card surface color token. */\n bgcolor?: string\n /** CSS background (e.g. a gradient) for the card surface; overrides `bgcolor`. */\n background?: string\n /** Card border color token (e.g. New Merchant's tinted card). */\n borderColor?: string\n /** Render the logo's drop-shadow. Default true; false for MSA V2's Visual. */\n logoShadow?: boolean\n sx?: SxProps\n}\n\n/**\n * A merchant/brand highlight card: a `LogoTile` beside a text column (optional\n * eyebrow, name, amount/trailing). Shared by Peer-to-Peer Categorization, New\n * Merchant, and Monthly Subscription Aggregate V2's Visual state.\n */\nconst MerchantHighlightCard = ({\n amount,\n amountVariant = 'text',\n background,\n bgcolor = 'grey.200',\n borderColor,\n eyebrow,\n logo,\n logoShadow = true,\n name,\n nameVariant,\n trailing,\n sx,\n}: MerchantHighlightCardProps) => {\n const resolvedNameVariant = nameVariant ?? (amountVariant === 'pill' ? 'h2' : 'h3')\n\n // `trailing` (e.g. a StatusPill) takes the amount's slot when provided;\n // otherwise render the amount as a dark pill or plain text.\n let amountNode: ReactNode = trailing\n if (amountNode == null && amount != null) {\n amountNode =\n amountVariant === 'pill' ? (\n <AmountPill>{amount}</AmountPill>\n ) : (\n <Text color=\"text.secondary\" variant=\"body1\">\n {amount}\n </Text>\n )\n }\n\n return (\n <Stack sx={{ px: 16, width: '100%', ...sx }}>\n <Stack\n sx={{\n alignItems: 'center',\n ...(background ? { background } : { bgcolor }),\n ...(borderColor && { border: '1px solid', borderColor }),\n borderRadius: '8px',\n flexDirection: 'row',\n gap: 16,\n p: 16,\n width: '100%',\n }}\n >\n <LogoTile shadow={logoShadow}>{logo}</LogoTile>\n <Stack sx={{ gap: 2, minWidth: 0 }}>\n {eyebrow && (\n <Text color=\"text.secondary\" truncate={true} variant=\"caption\">\n {eyebrow}\n </Text>\n )}\n <Text bold={true} truncate={true} variant={resolvedNameVariant}>\n {name}\n </Text>\n {amountNode}\n </Stack>\n </Stack>\n </Stack>\n )\n}\n\nexport default MerchantHighlightCard\n"],"mappings":";;;;;AAyCA,IAAM,IAAA,CAAyB,EAC7B,QAAA,GACA,eAAA,IAAgB,QAChB,YAAA,GACA,SAAA,IAAU,YACV,aAAA,GACA,SAAA,GACA,MAAA,GACA,YAAA,IAAa,IACb,MAAA,GACA,aAAA,GACA,UAAA,GACA,IAAA,EAAA,MACgC;AAChC,QAAM,IAAsB,MAAgB,MAAkB,SAAS,OAAO;AAI9E,MAAI,IAAwB;AAC5B,SAAI,KAAc,QAAQ,KAAU,SAClC,IACE,MAAkB,SAChB,gBAAA,EAAC,GAAD,EAAA,UAAa,EAAmB,CAAA,IAEhC,gBAAA,EAAC,GAAD;AAAA,IAAM,OAAM;AAAA,IAAiB,SAAQ;AAAA,IAClC,UAAA;AAAA,EACG,CAAA,IAKV,gBAAA,EAAC,GAAD;AAAA,IAAO,IAAI;AAAA,MAAE,IAAI;AAAA,MAAI,OAAO;AAAA,MAAQ,GAAG;AAAA,IAAG;AAAA,IACxC,UAAA,gBAAA,EAAC,GAAD;AAAA,MACE,IAAI;AAAA,QACF,YAAY;AAAA,QACZ,GAAI,IAAa,EAAE,YAAA,EAAW,IAAI,EAAE,SAAA,EAAQ;AAAA,QAC5C,GAAI,KAAe;AAAA,UAAE,QAAQ;AAAA,UAAa,aAAA;AAAA,QAAY;AAAA,QACtD,cAAc;AAAA,QACd,eAAe;AAAA,QACf,KAAK;AAAA,QACL,GAAG;AAAA,QACH,OAAO;AAAA,MACT;AAAA,MAVF,UAAA,CAYE,gBAAA,EAAC,GAAD;AAAA,QAAU,QAAQ;AAAA,QAAa,UAAA;AAAA,MAAe,CAAA,GAC9C,gBAAA,EAAC,GAAD;AAAA,QAAO,IAAI;AAAA,UAAE,KAAK;AAAA,UAAG,UAAU;AAAA,QAAE;AAAA,QAAjC,UAAA;AAAA,UACG,KACC,gBAAA,EAAC,GAAD;AAAA,YAAM,OAAM;AAAA,YAAiB,UAAU;AAAA,YAAM,SAAQ;AAAA,YAClD,UAAA;AAAA,UACG,CAAA;AAAA,UAER,gBAAA,EAAC,GAAD;AAAA,YAAM,MAAM;AAAA,YAAM,UAAU;AAAA,YAAM,SAAS;AAAA,YACxC,UAAA;AAAA,UACG,CAAA;AAAA,UACL;AAAA,QACI;AAAA,MACF,CAAA,CAAA;AAAA;EACF,CAAA;AAEX"}
1
+ {"version":3,"file":"MerchantHighlightCard.es.js","names":[],"sources":["../../../src/insights-v2/components/MerchantHighlightCard.tsx"],"sourcesContent":["import type { ReactNode } from 'react'\n\nimport Stack from '@mui/material/Stack'\nimport type { SxProps } from '@mui/material/styles'\n\nimport { Text } from '@mxenabled/mxui'\n\nimport AmountPill from './AmountPill'\nimport LogoTile from './LogoTile'\n\ninterface MerchantHighlightCardProps {\n /** Brand/merchant logo visual (rendered inside a `LogoTile`). */\n logo: ReactNode\n /** Merchant/payee name. */\n name: ReactNode\n /** Optional label above the name (e.g. \"{Date}\"). */\n eyebrow?: ReactNode\n /** Amount. Rendered as a dark pill when `amountVariant='pill'`, else plain. */\n amount?: ReactNode\n /** How to render the amount. */\n amountVariant?: 'pill' | 'text'\n /** Typography variant for the name. Defaults to `h2` for `pill`, else `h3`. */\n nameVariant?: 'h2' | 'h3'\n /** Trailing element beneath the name (e.g. a `<StatusPill>`); replaces `amount`. */\n trailing?: ReactNode\n /** Card surface color token. */\n bgcolor?: string\n /** CSS background (e.g. a gradient) for the card surface; overrides `bgcolor`. */\n background?: string\n /** Card border color token (e.g. New Merchant's tinted card). */\n borderColor?: string\n /** Logo tile shadow (see `LogoTile`). Default offset. */\n logoShadow?: boolean | 'offset' | 'elevation'\n logoSize?: number\n logoBorderColor?: string | null\n logoRadius?: number\n /** Edge to edge: no side inset, square corners. */\n fullBleed?: boolean\n sx?: SxProps\n}\n\n/**\n * A merchant/brand highlight card: a `LogoTile` beside a text column (optional\n * eyebrow, name, amount/trailing). Shared by Peer-to-Peer Categorization, New\n * Merchant, and Monthly Subscription Aggregate V2's Visual state.\n */\nconst MerchantHighlightCard = ({\n amount,\n amountVariant = 'text',\n background,\n bgcolor = 'grey.200',\n borderColor,\n eyebrow,\n fullBleed = false,\n logo,\n logoBorderColor,\n logoRadius,\n logoShadow = true,\n logoSize,\n name,\n nameVariant,\n trailing,\n sx,\n}: MerchantHighlightCardProps) => {\n const resolvedNameVariant = nameVariant ?? (amountVariant === 'pill' ? 'h2' : 'h3')\n\n // `trailing` (e.g. a StatusPill) takes the amount's slot when provided;\n // otherwise render the amount as a dark pill or plain text.\n let amountNode: ReactNode = trailing\n if (amountNode == null && amount != null) {\n amountNode =\n amountVariant === 'pill' ? (\n <AmountPill>{amount}</AmountPill>\n ) : (\n <Text color=\"text.secondary\" variant=\"body1\">\n {amount}\n </Text>\n )\n }\n\n return (\n <Stack sx={{ px: fullBleed ? 0 : 16, width: '100%', ...sx }}>\n <Stack\n sx={{\n alignItems: 'center',\n ...(background ? { background } : { bgcolor }),\n ...(borderColor && { border: '1px solid', borderColor }),\n borderRadius: fullBleed ? 0 : '8px',\n flexDirection: 'row',\n gap: 16,\n p: 16,\n width: '100%',\n }}\n >\n <LogoTile\n borderColor={logoBorderColor}\n borderRadius={logoRadius}\n shadow={logoShadow}\n size={logoSize}\n >\n {logo}\n </LogoTile>\n <Stack sx={{ gap: 2, minWidth: 0 }}>\n {eyebrow && (\n <Text color=\"text.secondary\" truncate={true} variant=\"caption\">\n {eyebrow}\n </Text>\n )}\n {/* mxui's `bold` forces 600. */}\n <Text sx={{ fontWeight: 700 }} truncate={true} variant={resolvedNameVariant}>\n {name}\n </Text>\n {amountNode}\n </Stack>\n </Stack>\n </Stack>\n )\n}\n\nexport default MerchantHighlightCard\n"],"mappings":";;;;;AA8CA,IAAM,IAAA,CAAyB,EAC7B,QAAA,GACA,eAAA,IAAgB,QAChB,YAAA,GACA,SAAA,IAAU,YACV,aAAA,GACA,SAAA,GACA,WAAA,IAAY,IACZ,MAAA,GACA,iBAAA,GACA,YAAA,GACA,YAAA,IAAa,IACb,UAAA,GACA,MAAA,GACA,aAAA,GACA,UAAA,GACA,IAAA,EAAA,MACgC;AAChC,QAAM,IAAsB,MAAgB,MAAkB,SAAS,OAAO;AAI9E,MAAI,IAAwB;AAC5B,SAAI,KAAc,QAAQ,KAAU,SAClC,IACE,MAAkB,SAChB,gBAAA,EAAC,GAAD,EAAA,UAAa,EAAmB,CAAA,IAEhC,gBAAA,EAAC,GAAD;AAAA,IAAM,OAAM;AAAA,IAAiB,SAAQ;AAAA,IAClC,UAAA;AAAA,EACG,CAAA,IAKV,gBAAA,EAAC,GAAD;AAAA,IAAO,IAAI;AAAA,MAAE,IAAI,IAAY,IAAI;AAAA,MAAI,OAAO;AAAA,MAAQ,GAAG;AAAA,IAAG;AAAA,IACxD,UAAA,gBAAA,EAAC,GAAD;AAAA,MACE,IAAI;AAAA,QACF,YAAY;AAAA,QACZ,GAAI,IAAa,EAAE,YAAA,EAAW,IAAI,EAAE,SAAA,EAAQ;AAAA,QAC5C,GAAI,KAAe;AAAA,UAAE,QAAQ;AAAA,UAAa,aAAA;AAAA,QAAY;AAAA,QACtD,cAAc,IAAY,IAAI;AAAA,QAC9B,eAAe;AAAA,QACf,KAAK;AAAA,QACL,GAAG;AAAA,QACH,OAAO;AAAA,MACT;AAAA,MAVF,UAAA,CAYE,gBAAA,EAAC,GAAD;AAAA,QACE,aAAa;AAAA,QACb,cAAc;AAAA,QACd,QAAQ;AAAA,QACR,MAAM;AAAA,QAEL,UAAA;AAAA,MACO,CAAA,GACV,gBAAA,EAAC,GAAD;AAAA,QAAO,IAAI;AAAA,UAAE,KAAK;AAAA,UAAG,UAAU;AAAA,QAAE;AAAA,QAAjC,UAAA;AAAA,UACG,KACC,gBAAA,EAAC,GAAD;AAAA,YAAM,OAAM;AAAA,YAAiB,UAAU;AAAA,YAAM,SAAQ;AAAA,YAClD,UAAA;AAAA,UACG,CAAA;AAAA,UAGR,gBAAA,EAAC,GAAD;AAAA,YAAM,IAAI,EAAE,YAAY,IAAI;AAAA,YAAG,UAAU;AAAA,YAAM,SAAS;AAAA,YACrD,UAAA;AAAA,UACG,CAAA;AAAA,UACL;AAAA,QACI;AAAA,MACF,CAAA,CAAA;AAAA;EACF,CAAA;AAEX"}
@@ -8,8 +8,14 @@ interface P2PLogoStackProps {
8
8
  * tile becomes a "+N" more indicator. Defaults to `logos.length`.
9
9
  */
10
10
  total?: number;
11
+ /** Tile border token; `null` draws none. */
12
+ borderColor?: string | null;
11
13
  /** Logo tile size in px (Figma: 64). */
12
14
  size?: number;
15
+ /** Tile shadow (see `LogoTile`). Default offset. */
16
+ shadow?: boolean | 'offset' | 'elevation';
17
+ /** Overlap px; centred, right-most tile on top. */
18
+ overlap?: number;
13
19
  /**
14
20
  * Fixed height of the cascading row in px (Figma `Logos` frame: 106). Gives
15
21
  * the staircase `mt` offsets room without collapsing.
@@ -28,5 +34,5 @@ interface P2PLogoStackProps {
28
34
  * (Peer-to-Peer Categorization). Layout math ported locally from v1
29
35
  * `shared/P2P/P2PMultipleCategorization`.
30
36
  */
31
- declare const P2PLogoStack: ({ logos, rowHeight, size, status, total, sx, }: P2PLogoStackProps) => import("react/jsx-runtime").JSX.Element;
37
+ declare const P2PLogoStack: ({ logos, borderColor, overlap, rowHeight, shadow, size, status, total, sx, }: P2PLogoStackProps) => import("react/jsx-runtime").JSX.Element;
32
38
  export default P2PLogoStack;
@@ -1,8 +1,8 @@
1
- import u from "./LogoTile.es.js";
2
- import i from "@mui/material/Stack";
3
- import { Text as w } from "@mxenabled/mxui";
4
- import { jsx as S, jsxs as c } from "react/jsx-runtime";
5
- var v = {
1
+ import T from "./LogoTile.es.js";
2
+ import p from "@mui/material/Stack";
3
+ import { Text as k } from "@mxenabled/mxui";
4
+ import { jsx as b, jsxs as s } from "react/jsx-runtime";
5
+ var j = {
6
6
  2: [0, 36],
7
7
  3: [
8
8
  0,
@@ -15,41 +15,49 @@ var v = {
15
15
  24,
16
16
  36
17
17
  ]
18
- }, j = ({ logos: o, rowHeight: l = 106, size: h = 64, status: m, total: p, sx: f }) => {
19
- const n = p ?? o.length, t = n >= 4, r = t ? o.slice(0, 3) : o.slice(0, 4), d = v[t ? 4 : Math.min(Math.max(r.length, 2), 3)], g = t ? r.length + 1 : r.length, s = (a, e, x) => /* @__PURE__ */ S(u, {
20
- bgcolor: x,
21
- borderColor: "background.paper",
22
- reserveShadowSpace: e === g - 1,
23
- shadow: !0,
24
- size: h,
25
- sx: { mt: `${d?.[e] ?? 0}px` },
26
- children: a
27
- }, e);
28
- return /* @__PURE__ */ c(i, {
18
+ }, F = ({ logos: n, borderColor: h = "background.paper", overlap: l, rowHeight: m = 106, shadow: f = !0, size: g = 64, status: x, total: u, sx: d }) => {
19
+ const o = l != null, a = u ?? n.length, e = a >= 4, r = e ? n.slice(0, 3) : n.slice(0, 4), v = j[e ? 4 : Math.min(Math.max(r.length, 2), 3)], S = e ? r.length + 1 : r.length, c = (i, t, w) => /* @__PURE__ */ b(T, {
20
+ bgcolor: w,
21
+ borderColor: h,
22
+ reserveShadowSpace: t === S - 1,
23
+ shadow: f,
24
+ size: g,
25
+ sx: {
26
+ mt: `${v?.[t] ?? 0}px`,
27
+ ...o && {
28
+ ml: t ? `-${l}px` : 0,
29
+ position: "relative",
30
+ zIndex: t + 1
31
+ }
32
+ },
33
+ children: i
34
+ }, t);
35
+ return /* @__PURE__ */ s(p, {
29
36
  sx: {
30
37
  gap: 12,
31
38
  width: "100%",
32
- ...f
39
+ ...d
33
40
  },
34
- children: [/* @__PURE__ */ c(i, {
41
+ children: [/* @__PURE__ */ s(p, {
35
42
  sx: {
36
43
  flexDirection: "row",
37
- gap: t ? 8 : 24,
38
- height: l,
39
- justifyContent: t ? "flex-start" : "center"
44
+ gap: o ? 0 : e ? 8 : 24,
45
+ height: m,
46
+ isolation: o ? "isolate" : void 0,
47
+ justifyContent: o || !e ? "center" : "flex-start"
40
48
  },
41
- children: [r.map((a, e) => s(a, e, "background.paper")), t && s(/* @__PURE__ */ c(w, {
42
- "aria-label": `+${n - 3} more`,
49
+ children: [r.map((i, t) => c(i, t, "background.paper")), e && c(/* @__PURE__ */ s(k, {
50
+ "aria-label": `+${a - 3} more`,
43
51
  component: "span",
44
52
  sx: { color: "common.white" },
45
53
  variant: "h3",
46
- children: ["+", n - 3]
54
+ children: ["+", a - 3]
47
55
  }), 3, "grey.800")]
48
- }), m]
56
+ }), x]
49
57
  });
50
58
  };
51
59
  export {
52
- j as default
60
+ F as default
53
61
  };
54
62
 
55
63
  //# sourceMappingURL=P2PLogoStack.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"P2PLogoStack.es.js","names":[],"sources":["../../../src/insights-v2/components/P2PLogoStack.tsx"],"sourcesContent":["import type { ReactNode } from 'react'\n\nimport Stack from '@mui/material/Stack'\nimport type { SxProps } from '@mui/material/styles'\n\nimport { Text } from '@mxenabled/mxui'\n\nimport LogoTile from './LogoTile'\n\ninterface P2PLogoStackProps {\n /** Brand/merchant logo visuals (rendered as shadowed, cascading tiles). */\n logos: ReactNode[]\n /**\n * Total number of merchants. When it exceeds the rendered logos, the last\n * tile becomes a \"+N\" more indicator. Defaults to `logos.length`.\n */\n total?: number\n /** Logo tile size in px (Figma: 64). */\n size?: number\n /**\n * Fixed height of the cascading row in px (Figma `Logos` frame: 106). Gives\n * the staircase `mt` offsets room without collapsing.\n */\n rowHeight?: number\n /**\n * Optional status element rendered below the logos (Figma: the full-width\n * \"Categorized\" `<StatusPill>` in P2P's categorized state). Pass a\n * `<StatusPill sx={{ alignSelf: 'stretch', justifyContent: 'center' }} />`.\n */\n status?: ReactNode\n sx?: SxProps\n}\n\n// Vertical offsets that produce the diagonal cascade, keyed by tile count.\n// Mirrors the shared P2PMultipleCategorization layout.\nconst MT_OFFSETS: Record<number, number[]> = {\n 2: [0, 36],\n 3: [0, 18, 36],\n 4: [0, 12, 24, 36],\n}\n\n/**\n * A cascading row of shadowed brand tiles with an optional \"+N\" overflow tile\n * (Peer-to-Peer Categorization). Layout math ported locally from v1\n * `shared/P2P/P2PMultipleCategorization`.\n */\nconst P2PLogoStack = ({\n logos,\n rowHeight = 106,\n size = 64,\n status,\n total,\n sx,\n}: P2PLogoStackProps) => {\n const merchantCount = total ?? logos.length\n // At 4+ merchants Figma shows 3 logos + a \"+N\" overflow tile (so exactly 4\n // renders as 3 + \"+1\"); below 4, all logos show. Mirrors v1.\n const hasOverflow = merchantCount >= 4\n const tiles = hasOverflow ? logos.slice(0, 3) : logos.slice(0, 4)\n const offsets = MT_OFFSETS[hasOverflow ? 4 : Math.min(Math.max(tiles.length, 2), 3)]\n // Total tiles actually rendered (logos, or 3 logos + the \"+N\" tile).\n const tileCount = hasOverflow ? tiles.length + 1 : tiles.length\n\n // The offset shadow takes no layout space, so interior tiles' shadows fall in\n // the row `gap`; only the LAST tile reserves its shadow footprint, else it\n // overlaps the card padding. (Index key is fine: the list is static.)\n const renderTile = (content: ReactNode, index: number, bgcolor: string) => (\n <LogoTile\n // eslint-disable-next-line react/no-array-index-key\n key={index}\n bgcolor={bgcolor}\n borderColor=\"background.paper\"\n reserveShadowSpace={index === tileCount - 1}\n shadow={true}\n size={size}\n sx={{ mt: `${offsets?.[index] ?? 0}px` }}\n >\n {content}\n </LogoTile>\n )\n\n return (\n <Stack sx={{ gap: 12, width: '100%', ...sx }}>\n {/* Fixed-height row gives the `mt` staircase room to cascade. */}\n <Stack\n sx={{\n flexDirection: 'row',\n gap: hasOverflow ? 8 : 24,\n height: rowHeight,\n justifyContent: hasOverflow ? 'flex-start' : 'center',\n }}\n >\n {tiles.map((logo, index) => renderTile(logo, index, 'background.paper'))}\n {hasOverflow &&\n renderTile(\n // h3-sized span, not a semantic heading, inside a decorative tile.\n <Text\n aria-label={`+${merchantCount - 3} more`}\n component=\"span\"\n sx={{ color: 'common.white' }}\n variant=\"h3\"\n >\n +{merchantCount - 3}\n </Text>,\n 3,\n 'grey.800',\n )}\n </Stack>\n {status}\n </Stack>\n )\n}\n\nexport default P2PLogoStack\n"],"mappings":";;;;AAmCA,IAAM,IAAuC;AAAA,EAC3C,GAAG,CAAC,GAAG,EAAE;AAAA,EACT,GAAG;AAAA,IAAC;AAAA,IAAG;AAAA,IAAI;AAAA,EAAE;AAAA,EACb,GAAG;AAAA,IAAC;AAAA,IAAG;AAAA,IAAI;AAAA,IAAI;AAAA,EAAE;AACnB,GAOM,IAAA,CAAgB,EACpB,OAAA,GACA,WAAA,IAAY,KACZ,MAAA,IAAO,IACP,QAAA,GACA,OAAA,GACA,IAAA,EAAA,MACuB;AACvB,QAAM,IAAgB,KAAS,EAAM,QAG/B,IAAc,KAAiB,GAC/B,IAAQ,IAAc,EAAM,MAAM,GAAG,CAAC,IAAI,EAAM,MAAM,GAAG,CAAC,GAC1D,IAAU,EAAW,IAAc,IAAI,KAAK,IAAI,KAAK,IAAI,EAAM,QAAQ,CAAC,GAAG,CAAC,CAAA,GAE5E,IAAY,IAAc,EAAM,SAAS,IAAI,EAAM,QAKnD,IAAA,CAAc,GAAoB,GAAe,MACrD,gBAAA,EAAC,GAAD;AAAA,IAGW,SAAA;AAAA,IACT,aAAY;AAAA,IACZ,oBAAoB,MAAU,IAAY;AAAA,IAC1C,QAAQ;AAAA,IACF,MAAA;AAAA,IACN,IAAI,EAAE,IAAI,GAAG,IAAU,CAAA,KAAU,CAAA,KAAM;AAAA,IAEtC,UAAA;AAAA,EACO,GATH,CASG;AAGZ,SACE,gBAAA,EAAC,GAAD;AAAA,IAAO,IAAI;AAAA,MAAE,KAAK;AAAA,MAAI,OAAO;AAAA,MAAQ,GAAG;AAAA,IAAG;AAAA,IAA3C,UAAA,CAEE,gBAAA,EAAC,GAAD;AAAA,MACE,IAAI;AAAA,QACF,eAAe;AAAA,QACf,KAAK,IAAc,IAAI;AAAA,QACvB,QAAQ;AAAA,QACR,gBAAgB,IAAc,eAAe;AAAA,MAC/C;AAAA,MANF,UAAA,CAQG,EAAM,IAAA,CAAK,GAAM,MAAU,EAAW,GAAM,GAAO,kBAAkB,CAAC,GACtE,KACC,EAEE,gBAAA,EAAC,GAAD;AAAA,QACE,cAAY,IAAI,IAAgB,CAAA;AAAA,QAChC,WAAU;AAAA,QACV,IAAI,EAAE,OAAO,eAAe;AAAA,QAC5B,SAAQ;AAAA,QAJV,UAAA,CAKC,KACG,IAAgB,CACd;AAAA,MACN,CAAA,GAAA,GACA,UACF,CACG;AAAA,IACN,CAAA,GAAA,CACI;AAAA;AAEX"}
1
+ {"version":3,"file":"P2PLogoStack.es.js","names":[],"sources":["../../../src/insights-v2/components/P2PLogoStack.tsx"],"sourcesContent":["import type { ReactNode } from 'react'\n\nimport Stack from '@mui/material/Stack'\nimport type { SxProps } from '@mui/material/styles'\n\nimport { Text } from '@mxenabled/mxui'\n\nimport LogoTile from './LogoTile'\n\ninterface P2PLogoStackProps {\n /** Brand/merchant logo visuals (rendered as shadowed, cascading tiles). */\n logos: ReactNode[]\n /**\n * Total number of merchants. When it exceeds the rendered logos, the last\n * tile becomes a \"+N\" more indicator. Defaults to `logos.length`.\n */\n total?: number\n /** Tile border token; `null` draws none. */\n borderColor?: string | null\n /** Logo tile size in px (Figma: 64). */\n size?: number\n /** Tile shadow (see `LogoTile`). Default offset. */\n shadow?: boolean | 'offset' | 'elevation'\n /** Overlap px; centred, right-most tile on top. */\n overlap?: number\n /**\n * Fixed height of the cascading row in px (Figma `Logos` frame: 106). Gives\n * the staircase `mt` offsets room without collapsing.\n */\n rowHeight?: number\n /**\n * Optional status element rendered below the logos (Figma: the full-width\n * \"Categorized\" `<StatusPill>` in P2P's categorized state). Pass a\n * `<StatusPill sx={{ alignSelf: 'stretch', justifyContent: 'center' }} />`.\n */\n status?: ReactNode\n sx?: SxProps\n}\n\n// Vertical offsets that produce the diagonal cascade, keyed by tile count.\n// Mirrors the shared P2PMultipleCategorization layout.\nconst MT_OFFSETS: Record<number, number[]> = {\n 2: [0, 36],\n 3: [0, 18, 36],\n 4: [0, 12, 24, 36],\n}\n\n/**\n * A cascading row of shadowed brand tiles with an optional \"+N\" overflow tile\n * (Peer-to-Peer Categorization). Layout math ported locally from v1\n * `shared/P2P/P2PMultipleCategorization`.\n */\nconst P2PLogoStack = ({\n logos,\n borderColor = 'background.paper',\n overlap,\n rowHeight = 106,\n shadow = true,\n size = 64,\n status,\n total,\n sx,\n}: P2PLogoStackProps) => {\n const overlapping = overlap != null\n const merchantCount = total ?? logos.length\n // At 4+ merchants Figma shows 3 logos + a \"+N\" overflow tile (so exactly 4\n // renders as 3 + \"+1\"); below 4, all logos show. Mirrors v1.\n const hasOverflow = merchantCount >= 4\n const tiles = hasOverflow ? logos.slice(0, 3) : logos.slice(0, 4)\n const offsets = MT_OFFSETS[hasOverflow ? 4 : Math.min(Math.max(tiles.length, 2), 3)]\n // Total tiles actually rendered (logos, or 3 logos + the \"+N\" tile).\n const tileCount = hasOverflow ? tiles.length + 1 : tiles.length\n\n // The offset shadow takes no layout space, so interior tiles' shadows fall in\n // the row `gap`; only the LAST tile reserves its shadow footprint, else it\n // overlaps the card padding. (Index key is fine: the list is static.)\n const renderTile = (content: ReactNode, index: number, bgcolor: string) => (\n <LogoTile\n // eslint-disable-next-line react/no-array-index-key\n key={index}\n bgcolor={bgcolor}\n borderColor={borderColor}\n reserveShadowSpace={index === tileCount - 1}\n shadow={shadow}\n size={size}\n sx={{\n mt: `${offsets?.[index] ?? 0}px`,\n ...(overlapping && {\n ml: index ? `-${overlap}px` : 0,\n position: 'relative',\n zIndex: index + 1,\n }),\n }}\n >\n {content}\n </LogoTile>\n )\n\n return (\n <Stack sx={{ gap: 12, width: '100%', ...sx }}>\n {/* Fixed-height row gives the `mt` staircase room to cascade. */}\n <Stack\n sx={{\n flexDirection: 'row',\n gap: overlapping ? 0 : hasOverflow ? 8 : 24,\n height: rowHeight,\n // Contain the overlap z-indexes.\n isolation: overlapping ? 'isolate' : undefined,\n justifyContent: overlapping || !hasOverflow ? 'center' : 'flex-start',\n }}\n >\n {tiles.map((logo, index) => renderTile(logo, index, 'background.paper'))}\n {hasOverflow &&\n renderTile(\n // h3-sized span, not a semantic heading, inside a decorative tile.\n <Text\n aria-label={`+${merchantCount - 3} more`}\n component=\"span\"\n sx={{ color: 'common.white' }}\n variant=\"h3\"\n >\n +{merchantCount - 3}\n </Text>,\n 3,\n 'grey.800',\n )}\n </Stack>\n {status}\n </Stack>\n )\n}\n\nexport default P2PLogoStack\n"],"mappings":";;;;AAyCA,IAAM,IAAuC;AAAA,EAC3C,GAAG,CAAC,GAAG,EAAE;AAAA,EACT,GAAG;AAAA,IAAC;AAAA,IAAG;AAAA,IAAI;AAAA,EAAE;AAAA,EACb,GAAG;AAAA,IAAC;AAAA,IAAG;AAAA,IAAI;AAAA,IAAI;AAAA,EAAE;AACnB,GAOM,IAAA,CAAgB,EACpB,OAAA,GACA,aAAA,IAAc,oBACd,SAAA,GACA,WAAA,IAAY,KACZ,QAAA,IAAS,IACT,MAAA,IAAO,IACP,QAAA,GACA,OAAA,GACA,IAAA,EAAA,MACuB;AACvB,QAAM,IAAc,KAAW,MACzB,IAAgB,KAAS,EAAM,QAG/B,IAAc,KAAiB,GAC/B,IAAQ,IAAc,EAAM,MAAM,GAAG,CAAC,IAAI,EAAM,MAAM,GAAG,CAAC,GAC1D,IAAU,EAAW,IAAc,IAAI,KAAK,IAAI,KAAK,IAAI,EAAM,QAAQ,CAAC,GAAG,CAAC,CAAA,GAE5E,IAAY,IAAc,EAAM,SAAS,IAAI,EAAM,QAKnD,IAAA,CAAc,GAAoB,GAAe,MACrD,gBAAA,EAAC,GAAD;AAAA,IAGW,SAAA;AAAA,IACI,aAAA;AAAA,IACb,oBAAoB,MAAU,IAAY;AAAA,IAClC,QAAA;AAAA,IACF,MAAA;AAAA,IACN,IAAI;AAAA,MACF,IAAI,GAAG,IAAU,CAAA,KAAU,CAAA;AAAA,MAC3B,GAAI,KAAe;AAAA,QACjB,IAAI,IAAQ,IAAI,CAAA,OAAc;AAAA,QAC9B,UAAU;AAAA,QACV,QAAQ,IAAQ;AAAA,MAClB;AAAA,IACF;AAAA,IAEC,UAAA;AAAA,EACO,GAhBH,CAgBG;AAGZ,SACE,gBAAA,EAAC,GAAD;AAAA,IAAO,IAAI;AAAA,MAAE,KAAK;AAAA,MAAI,OAAO;AAAA,MAAQ,GAAG;AAAA,IAAG;AAAA,IAA3C,UAAA,CAEE,gBAAA,EAAC,GAAD;AAAA,MACE,IAAI;AAAA,QACF,eAAe;AAAA,QACf,KAAK,IAAc,IAAI,IAAc,IAAI;AAAA,QACzC,QAAQ;AAAA,QAER,WAAW,IAAc,YAAY;AAAA,QACrC,gBAAgB,KAAe,CAAC,IAAc,WAAW;AAAA,MAC3D;AAAA,MARF,UAAA,CAUG,EAAM,IAAA,CAAK,GAAM,MAAU,EAAW,GAAM,GAAO,kBAAkB,CAAC,GACtE,KACC,EAEE,gBAAA,EAAC,GAAD;AAAA,QACE,cAAY,IAAI,IAAgB,CAAA;AAAA,QAChC,WAAU;AAAA,QACV,IAAI,EAAE,OAAO,eAAe;AAAA,QAC5B,SAAQ;AAAA,QAJV,UAAA,CAKC,KACG,IAAgB,CACd;AAAA,MACN,CAAA,GAAA,GACA,UACF,CACG;AAAA,IACN,CAAA,GAAA,CACI;AAAA;AAEX"}
@@ -6,8 +6,9 @@ import { Theme } from '@mui/material/styles';
6
6
  *
7
7
  * - WARM_LIME_ACCENT_GRADIENT: merchant categorization and deposit celebration states.
8
8
  * - CELEBRATION_GRADIENT / ACCOUNT_CONNECTED_GRADIENT: balance milestones, account connected.
9
+ * - celebrateGradient(angle): Figma's Celebrate Gradient at any angle.
9
10
  * - WARNING_WASH_GRADIENT: a flagged charge (Unexpected Subscription Payment).
10
- * - ERROR_WASH_GRADIENT: an account or merchant needing attention (Low Account Balance, off-track status).
11
+ * - ERROR_WASH_GRADIENT: low balance, off-track status.
11
12
  * - getPrimaryWashGradient(theme): pending connect / detected subscription, from the palette.
12
13
  */
13
14
  /**
@@ -17,6 +18,8 @@ import { Theme } from '@mui/material/styles';
17
18
  export declare const WARM_LIME_ACCENT_GRADIENT = "linear-gradient(200.73deg, rgba(255, 223, 152, 0.2) 1.86%, rgba(173, 248, 43, 0.2) 101.54%)";
18
19
  /** Warm → pink wash behind balance/savings milestones. */
19
20
  export declare const CELEBRATION_GRADIENT = "linear-gradient(200.73deg, rgba(255, 223, 152, 0.2) 1.86%, rgba(255, 128, 229, 0.2) 101.54%)";
21
+ /** Figma Celebrate Gradient; its angle varies per slot. */
22
+ export declare const celebrateGradient: (angleDeg: number) => string;
20
23
  /** Peach → pink gradient for Discovered Accounts success state. */
21
24
  export declare const DISCOVERED_ACCOUNTS_GRADIENT = "linear-gradient(200.73deg, rgba(255, 224, 153, 1) 1.86%, rgba(255, 129, 230, 1) 101.54%)";
22
25
  /**
@@ -24,14 +27,14 @@ export declare const DISCOVERED_ACCOUNTS_GRADIENT = "linear-gradient(200.73deg,
24
27
  * Layer over `background.paper` (the Figma spec's `#FFF` base), not the
25
28
  * `background` shorthand — a 20% gradient over transparency renders wrong.
26
29
  */
27
- export declare const ACCOUNT_CONNECTED_GRADIENT = "linear-gradient(257deg, rgba(255, 224, 153, 0.2) 1.86%, rgba(255, 129, 230, 0.2) 101.54%)";
30
+ export declare const ACCOUNT_CONNECTED_GRADIENT: string;
28
31
  /**
29
32
  * Orange → red-orange wash at 25% opacity behind a flagged charge (Unexpected Subscription
30
33
  * Payment). Figma "Warning Gradient 1": a bespoke two-stop blend with no palette token, so it
31
34
  * stays a literal like the other washes here rather than being derived from `palette.warning`.
32
35
  */
33
36
  export declare const WARNING_WASH_GRADIENT = "linear-gradient(201deg, rgba(255, 170, 0, 0.25) 1.86%, rgba(255, 68, 0, 0.25) 101.54%)";
34
- /** Red wash at 20% opacity behind a low balance, an off-track status or a flagged merchant. */
37
+ /** Red wash at 20%: low balance, off-track status. */
35
38
  export declare const ERROR_WASH_GRADIENT = "linear-gradient(256.82deg, rgba(255, 47, 40, 0.2) 1.86%, rgba(255, 0, 72, 0.2) 101.54%)";
36
39
  /**
37
40
  * Blue slot wash behind a pending connect / detected-subscription row: `primary.light` →
@@ -1,12 +1,13 @@
1
1
  import { alpha as a } from "@mui/material/styles";
2
- var e = "linear-gradient(200.73deg, rgba(255, 223, 152, 0.2) 1.86%, rgba(173, 248, 43, 0.2) 101.54%)", i = "linear-gradient(200.73deg, rgba(255, 223, 152, 0.2) 1.86%, rgba(255, 128, 229, 0.2) 101.54%)", n = "linear-gradient(257deg, rgba(255, 224, 153, 0.2) 1.86%, rgba(255, 129, 230, 0.2) 101.54%)", d = "linear-gradient(201deg, rgba(255, 170, 0, 0.25) 1.86%, rgba(255, 68, 0, 0.25) 101.54%)", A = "linear-gradient(256.82deg, rgba(255, 47, 40, 0.2) 1.86%, rgba(255, 0, 72, 0.2) 101.54%)", E = ({ palette: r }) => `linear-gradient(173deg, ${a(r.primary.light, 0.75)} 46.41%, ${a(r.primary.main, 0.75)} 78.14%)`;
2
+ var i = "linear-gradient(200.73deg, rgba(255, 223, 152, 0.2) 1.86%, rgba(173, 248, 43, 0.2) 101.54%)", n = "linear-gradient(200.73deg, rgba(255, 223, 152, 0.2) 1.86%, rgba(255, 128, 229, 0.2) 101.54%)", g = (r) => `linear-gradient(${r}deg, rgba(255, 224, 153, 0.2) 1.86%, rgba(255, 129, 230, 0.2) 101.54%)`, d = g(257), A = "linear-gradient(201deg, rgba(255, 170, 0, 0.25) 1.86%, rgba(255, 68, 0, 0.25) 101.54%)", E = "linear-gradient(256.82deg, rgba(255, 47, 40, 0.2) 1.86%, rgba(255, 0, 72, 0.2) 101.54%)", N = ({ palette: r }) => `linear-gradient(173deg, ${a(r.primary.light, 0.75)} 46.41%, ${a(r.primary.main, 0.75)} 78.14%)`;
3
3
  export {
4
- n as ACCOUNT_CONNECTED_GRADIENT,
5
- i as CELEBRATION_GRADIENT,
6
- A as ERROR_WASH_GRADIENT,
7
- e as WARM_LIME_ACCENT_GRADIENT,
8
- d as WARNING_WASH_GRADIENT,
9
- E as getPrimaryWashGradient
4
+ d as ACCOUNT_CONNECTED_GRADIENT,
5
+ n as CELEBRATION_GRADIENT,
6
+ E as ERROR_WASH_GRADIENT,
7
+ i as WARM_LIME_ACCENT_GRADIENT,
8
+ A as WARNING_WASH_GRADIENT,
9
+ g as celebrateGradient,
10
+ N as getPrimaryWashGradient
10
11
  };
11
12
 
12
13
  //# sourceMappingURL=celebrationGradients.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"celebrationGradients.es.js","names":[],"sources":["../../../src/insights-v2/components/celebrationGradients.ts"],"sourcesContent":["import { alpha, type Theme } from '@mui/material/styles'\n\n/**\n * Decorative slot washes shared by the block layouts and the presentational components, so\n * one source holds each gradient. The 20%–25% washes layer over `background.paper` via\n * `backgroundImage`; `DISCOVERED_ACCOUNTS_GRADIENT` is opaque and stands alone.\n *\n * - WARM_LIME_ACCENT_GRADIENT: merchant categorization and deposit celebration states.\n * - CELEBRATION_GRADIENT / ACCOUNT_CONNECTED_GRADIENT: balance milestones, account connected.\n * - WARNING_WASH_GRADIENT: a flagged charge (Unexpected Subscription Payment).\n * - ERROR_WASH_GRADIENT: an account or merchant needing attention (Low Account Balance, off-track status).\n * - getPrimaryWashGradient(theme): pending connect / detected subscription, from the palette.\n */\n\n/**\n * Warm → lime accent wash at 20% opacity. Used as a tinted background behind\n * merchant categorization highlights and deposit celebration callouts.\n */\nexport const WARM_LIME_ACCENT_GRADIENT =\n 'linear-gradient(200.73deg, rgba(255, 223, 152, 0.2) 1.86%, rgba(173, 248, 43, 0.2) 101.54%)'\n\n/** Warm → pink wash behind balance/savings milestones. */\nexport const CELEBRATION_GRADIENT =\n 'linear-gradient(200.73deg, rgba(255, 223, 152, 0.2) 1.86%, rgba(255, 128, 229, 0.2) 101.54%)'\n\n/** Peach → pink gradient for Discovered Accounts success state. */\nexport const DISCOVERED_ACCOUNTS_GRADIENT =\n 'linear-gradient(200.73deg, rgba(255, 224, 153, 1) 1.86%, rgba(255, 129, 230, 1) 101.54%)'\n\n/**\n * Warm → pink wash at 20% opacity for the account-connected success state.\n * Layer over `background.paper` (the Figma spec's `#FFF` base), not the\n * `background` shorthand — a 20% gradient over transparency renders wrong.\n */\nexport const ACCOUNT_CONNECTED_GRADIENT =\n 'linear-gradient(257deg, rgba(255, 224, 153, 0.2) 1.86%, rgba(255, 129, 230, 0.2) 101.54%)'\n\n/**\n * Orange → red-orange wash at 25% opacity behind a flagged charge (Unexpected Subscription\n * Payment). Figma \"Warning Gradient 1\": a bespoke two-stop blend with no palette token, so it\n * stays a literal like the other washes here rather than being derived from `palette.warning`.\n */\nexport const WARNING_WASH_GRADIENT =\n 'linear-gradient(201deg, rgba(255, 170, 0, 0.25) 1.86%, rgba(255, 68, 0, 0.25) 101.54%)'\n\n/** Red wash at 20% opacity behind a low balance, an off-track status or a flagged merchant. */\nexport const ERROR_WASH_GRADIENT =\n 'linear-gradient(256.82deg, rgba(255, 47, 40, 0.2) 1.86%, rgba(255, 0, 72, 0.2) 101.54%)'\n\n/**\n * Blue slot wash behind a pending connect / detected-subscription row: `primary.light` →\n * `primary.main` at 75% over paper, built from the live palette so it follows the theme.\n */\nexport const getPrimaryWashGradient = ({ palette }: Theme) =>\n `linear-gradient(173deg, ${alpha(palette.primary.light, 0.75)} 46.41%, ${alpha(palette.primary.main, 0.75)} 78.14%)`\n"],"mappings":";AAkBA,IAAa,IACX,+FAGW,IACX,gGAWW,IACX,6FAOW,IACX,0FAGW,IACX,2FAMW,IAAA,CAA0B,EAAE,SAAA,EAAA,MACvC,2BAA2B,EAAM,EAAQ,QAAQ,OAAO,IAAI,CAAA,YAAa,EAAM,EAAQ,QAAQ,MAAM,IAAI,CAAA"}
1
+ {"version":3,"file":"celebrationGradients.es.js","names":[],"sources":["../../../src/insights-v2/components/celebrationGradients.ts"],"sourcesContent":["import { alpha, type Theme } from '@mui/material/styles'\n\n/**\n * Decorative slot washes shared by the block layouts and the presentational components, so\n * one source holds each gradient. The 20%–25% washes layer over `background.paper` via\n * `backgroundImage`; `DISCOVERED_ACCOUNTS_GRADIENT` is opaque and stands alone.\n *\n * - WARM_LIME_ACCENT_GRADIENT: merchant categorization and deposit celebration states.\n * - CELEBRATION_GRADIENT / ACCOUNT_CONNECTED_GRADIENT: balance milestones, account connected.\n * - celebrateGradient(angle): Figma's Celebrate Gradient at any angle.\n * - WARNING_WASH_GRADIENT: a flagged charge (Unexpected Subscription Payment).\n * - ERROR_WASH_GRADIENT: low balance, off-track status.\n * - getPrimaryWashGradient(theme): pending connect / detected subscription, from the palette.\n */\n\n/**\n * Warm → lime accent wash at 20% opacity. Used as a tinted background behind\n * merchant categorization highlights and deposit celebration callouts.\n */\nexport const WARM_LIME_ACCENT_GRADIENT =\n 'linear-gradient(200.73deg, rgba(255, 223, 152, 0.2) 1.86%, rgba(173, 248, 43, 0.2) 101.54%)'\n\n/** Warm → pink wash behind balance/savings milestones. */\nexport const CELEBRATION_GRADIENT =\n 'linear-gradient(200.73deg, rgba(255, 223, 152, 0.2) 1.86%, rgba(255, 128, 229, 0.2) 101.54%)'\n\n/** Figma Celebrate Gradient; its angle varies per slot. */\nexport const celebrateGradient = (angleDeg: number) =>\n `linear-gradient(${angleDeg}deg, rgba(255, 224, 153, 0.2) 1.86%, rgba(255, 129, 230, 0.2) 101.54%)`\n\n/** Peach → pink gradient for Discovered Accounts success state. */\nexport const DISCOVERED_ACCOUNTS_GRADIENT =\n 'linear-gradient(200.73deg, rgba(255, 224, 153, 1) 1.86%, rgba(255, 129, 230, 1) 101.54%)'\n\n/**\n * Warm → pink wash at 20% opacity for the account-connected success state.\n * Layer over `background.paper` (the Figma spec's `#FFF` base), not the\n * `background` shorthand — a 20% gradient over transparency renders wrong.\n */\nexport const ACCOUNT_CONNECTED_GRADIENT = celebrateGradient(257)\n\n/**\n * Orange → red-orange wash at 25% opacity behind a flagged charge (Unexpected Subscription\n * Payment). Figma \"Warning Gradient 1\": a bespoke two-stop blend with no palette token, so it\n * stays a literal like the other washes here rather than being derived from `palette.warning`.\n */\nexport const WARNING_WASH_GRADIENT =\n 'linear-gradient(201deg, rgba(255, 170, 0, 0.25) 1.86%, rgba(255, 68, 0, 0.25) 101.54%)'\n\n/** Red wash at 20%: low balance, off-track status. */\nexport const ERROR_WASH_GRADIENT =\n 'linear-gradient(256.82deg, rgba(255, 47, 40, 0.2) 1.86%, rgba(255, 0, 72, 0.2) 101.54%)'\n\n/**\n * Blue slot wash behind a pending connect / detected-subscription row: `primary.light` →\n * `primary.main` at 75% over paper, built from the live palette so it follows the theme.\n */\nexport const getPrimaryWashGradient = ({ palette }: Theme) =>\n `linear-gradient(173deg, ${alpha(palette.primary.light, 0.75)} 46.41%, ${alpha(palette.primary.main, 0.75)} 78.14%)`\n"],"mappings":";AAmBA,IAAa,IACX,+FAGW,IACX,gGAGW,IAAA,CAAqB,MAChC,mBAAmB,CAAA,0EAWR,IAA6B,EAAkB,GAAG,GAOlD,IACX,0FAGW,IACX,2FAMW,IAAA,CAA0B,EAAE,SAAA,EAAA,MACvC,2BAA2B,EAAM,EAAQ,QAAQ,OAAO,IAAI,CAAA,YAAa,EAAM,EAAQ,QAAQ,MAAM,IAAI,CAAA"}
@@ -10,8 +10,3 @@ export declare const STATUS_SUCCESS_TOKENS: {
10
10
  readonly borderColor: "success.main";
11
11
  readonly textColor: "success.darker";
12
12
  };
13
- export declare const STATUS_ERROR_TOKENS: {
14
- readonly bgcolor: "error.lighter";
15
- readonly borderColor: "error.main";
16
- readonly textColor: "error.darker";
17
- };
@@ -2,13 +2,8 @@ var r = {
2
2
  bgcolor: "success.100",
3
3
  borderColor: "success.main",
4
4
  textColor: "success.darker"
5
- }, o = {
6
- bgcolor: "error.lighter",
7
- borderColor: "error.main",
8
- textColor: "error.darker"
9
5
  };
10
6
  export {
11
- o as STATUS_ERROR_TOKENS,
12
7
  r as STATUS_SUCCESS_TOKENS
13
8
  };
14
9
 
@@ -1 +1 @@
1
- {"version":3,"file":"statusTokens.es.js","names":[],"sources":["../../../src/insights-v2/components/statusTokens.ts"],"sourcesContent":["/**\n * Shared success/status color tokens for the insights-v2 status surfaces\n * (`StatusPill`, `StatusMessageCard`). Both render a check-icon + text on a\n * green tinted, bordered surface and differ only in geometry (pill vs\n * full-width card), so they share these defaults rather than each hardcoding\n * the same `success.*` tokens.\n */\nexport const STATUS_SUCCESS_TOKENS = {\n bgcolor: 'success.100',\n borderColor: 'success.main',\n textColor: 'success.darker',\n} as const\n\nexport const STATUS_ERROR_TOKENS = {\n bgcolor: 'error.lighter',\n borderColor: 'error.main',\n textColor: 'error.darker',\n} as const\n"],"mappings":"AAOA,IAAa,IAAwB;AAAA,EACnC,SAAS;AAAA,EACT,aAAa;AAAA,EACb,WAAW;AACb,GAEa,IAAsB;AAAA,EACjC,SAAS;AAAA,EACT,aAAa;AAAA,EACb,WAAW;AACb"}
1
+ {"version":3,"file":"statusTokens.es.js","names":[],"sources":["../../../src/insights-v2/components/statusTokens.ts"],"sourcesContent":["/**\n * Shared success/status color tokens for the insights-v2 status surfaces\n * (`StatusPill`, `StatusMessageCard`). Both render a check-icon + text on a\n * green tinted, bordered surface and differ only in geometry (pill vs\n * full-width card), so they share these defaults rather than each hardcoding\n * the same `success.*` tokens.\n */\nexport const STATUS_SUCCESS_TOKENS = {\n bgcolor: 'success.100',\n borderColor: 'success.main',\n textColor: 'success.darker',\n} as const\n"],"mappings":"AAOA,IAAa,IAAwB;AAAA,EACnC,SAAS;AAAA,EACT,aAAa;AAAA,EACb,WAAW;AACb"}