{"version":3,"file":"chunk-Card.mjs","names":["Icon.Icon","Typography.Text","SystemButton.Close","SystemButton.Delete","Menu.Root","Menu.Trigger","Menu.Content"],"sources":["../../src/components/Card/Card.tsx"],"sourcesContent":["//\n// Copyright 2026 DXOS.org\n//\n\n// @import-as-namespace\n\nimport React, { type ComponentPropsWithoutRef, type MouseEvent, type ReactNode, forwardRef, useId } from 'react';\n\nimport { mx } from '@dxos/ui-theme';\nimport { type ThemedClassName } from '@dxos/ui-types';\n\nimport { clickableProps } from '../../clickable.ts';\nimport { recipes } from '../../recipes.ts';\nimport { type Size } from '../../sizes.ts';\nimport { composable, composableProps } from '../../util/slots.ts';\nimport { Block } from '../Block/Block.tsx';\nimport { Button, type ButtonProps } from '../Button/Button.tsx';\nimport { Container } from '../Container/Container.tsx';\nimport { Group, type GroupProps } from '../Group/Group.tsx';\nimport * as Icon from '../Icon/Icon.tsx';\nimport { Image, type ImageProps } from '../Image/Image.tsx';\nimport * as Menu from '../Menu/Menu.tsx';\nimport * as SystemButton from '../SystemButton/SystemButton.tsx';\nimport * as Typography from '../Typography/Typography.tsx';\n\n/** A click inside a clickable card or row (a trailing action, a menu) must not also activate it. */\nconst stopPropagation = (event: MouseEvent) => event.stopPropagation();\n\n//\n// Root\n//\n\ntype CardRootProps = ThemedClassName<ComponentPropsWithoutRef<'div'>> & {\n  /** The separator border and radius; `false` for a card inside a surface that already frames it. */\n  border?: boolean;\n  /** Marks the chosen card of a set (`data-selected`, `aria-current`). */\n  selected?: boolean;\n  /**\n   * Makes the card a `gutter='rail'` Container: Body, Section and Row become subgrids of it, and a Header's or Row's\n   * leading and trailing cells sit in its rails, one gap inside the border, so every text starts at the content edge.\n   * Off by default: the card is a padded column, and rows lay their icon, text and trailing cells out inline.\n   */\n  grid?: boolean;\n  /**\n   * The rails' width in a `grid` card: one block (`rail`, the default), or a gutter step for a card whose rows should\n   * sit further in. Rows and their icons follow the rails; a Header lays out by blocks, so wider rails suit row headers.\n   */\n  gutter?: 'rail' | 'md' | 'lg';\n  /** Sizes the card's rows, blocks and controls (its `data-size` scope), whatever its host's size. */\n  size?: Size;\n};\n\n/**\n * A card one level above its host (`level='+1'`), whose Header, Body and Footer share one content edge. With `grid` it\n * is a rail Container (the child div wins the `asChild` merge, so the part keeps the card scope); without, a plain\n * column that creates no grid. With `onClick` the card is a button (Enter and Space activate it); nested actions and\n * menus stop their clicks reaching it.\n */\nconst CardRoot = composable<HTMLDivElement, Omit<CardRootProps, keyof ThemedClassName<{}>>>(\n  ({ border = true, selected, grid = false, gutter = 'rail', size, onClick, onKeyDown, ...props }, forwardedRef) => {\n    // Composable, so the card can be an `asChild` host's child (a Mosaic tile, a Focus item) and take its props.\n    const { className, ...rest } = composableProps<HTMLDivElement>(props, {\n      classNames: [recipes.cardRoot(), onClick && recipes.cardClickable()],\n    });\n    const card = (\n      <div\n        data-surface={grid ? undefined : '+1'}\n        {...rest}\n        data-size={size}\n        {...clickableProps(onClick, onKeyDown)}\n        aria-current={selected ? 'true' : undefined}\n        data-scope='card'\n        data-part='root'\n        data-grid={grid ? '' : undefined}\n        data-border={border ? undefined : 'false'}\n        data-selected={selected ? '' : undefined}\n        className={className}\n        ref={forwardedRef}\n      />\n    );\n    return grid ? (\n      <Container asChild gutter={gutter} level='+1'>\n        {card}\n      </Container>\n    ) : (\n      card\n    );\n  },\n);\n\nCardRoot.displayName = 'Card.Root';\n\n//\n// Poster\n//\n\ntype CardPosterProps = ImageProps;\n\n/** A full-bleed Image across the card's gutters; first in the card, it takes the card's top corners. */\nconst CardPoster = forwardRef<HTMLDivElement, CardPosterProps>(({ classNames, ...props }, forwardedRef) => (\n  <Image {...props} data-place='full' classNames={mx(recipes.cardPoster(), classNames)} ref={forwardedRef} />\n));\n\nCardPoster.displayName = 'Card.Poster';\n\n//\n// Tile\n//\n\ntype CardTileProps = ThemedClassName<Omit<ComponentPropsWithoutRef<'div'>, 'children'>> & {\n  icon: string;\n  /** Fills the tile with the hue's surface and colours the icon with its foreground. */\n  hue?: Icon.IconHue;\n};\n\n/**\n * A full-height leading tile of the card's hue holding a large icon; first in the card, it lays the card out as a row,\n * so the parts after it (a Body) form the column beside it. With `onClick` it is a button (Enter and Space activate it).\n */\nconst CardTile = forwardRef<HTMLDivElement, CardTileProps>(\n  ({ classNames, icon, hue, onClick, onKeyDown, ...props }, forwardedRef) => (\n    <div\n      {...props}\n      {...clickableProps(onClick, onKeyDown)}\n      data-scope='card'\n      data-part='tile'\n      data-hue={hue}\n      className={mx(recipes.cardTile(), onClick && recipes.cardTileClickable(), classNames)}\n      ref={forwardedRef}\n    >\n      {/* No `hue` on the Icon: its own hue rule would paint the hue's text tone over the tile's foreground. */}\n      <Icon.Icon icon={icon} />\n    </div>\n  ),\n);\n\nCardTile.displayName = 'Card.Tile';\n\n//\n// Header\n//\n\ntype CardHeaderProps = ThemedClassName<ComponentPropsWithoutRef<'div'>>;\n\n/**\n * A block row across the card's rails holding the Title: a Block or icon-only Button before the Title fills the start\n * rail, and the last one after it the end rail, so the Title starts at the content edge.\n */\nconst CardHeader = forwardRef<HTMLDivElement, CardHeaderProps>(({ classNames, ...props }, forwardedRef) => (\n  <div\n    {...props}\n    data-scope='card'\n    data-part='header'\n    className={mx(recipes.cardHeader(), classNames)}\n    ref={forwardedRef}\n  />\n));\n\nCardHeader.displayName = 'Card.Header';\n\n//\n// Title\n//\n\ntype CardTitleProps = ThemedClassName<ComponentPropsWithoutRef<'h3'>> &\n  Pick<Typography.TextProps, 'truncate' | 'lines' | 'tone'>;\n\n/** An `h3` on Typography, so it clamps (`lines`), truncates and takes a tone like any text. */\nconst CardTitle = forwardRef<HTMLHeadingElement, CardTitleProps>(\n  ({ classNames, truncate, lines, tone, ...props }, forwardedRef) => (\n    <Typography.Text\n      asChild\n      truncate={truncate}\n      lines={lines}\n      tone={tone}\n      classNames={mx(recipes.cardTitle(), classNames)}\n    >\n      <h3 {...props} data-scope='card' data-part='title' ref={forwardedRef} />\n    </Typography.Text>\n  ),\n);\n\nCardTitle.displayName = 'Card.Title';\n\n//\n// Description\n//\n\ntype CardDescriptionProps = ThemedClassName<ComponentPropsWithoutRef<'p'>>;\n\nconst CardDescription = forwardRef<HTMLParagraphElement, CardDescriptionProps>(\n  ({ classNames, ...props }, forwardedRef) => (\n    <p\n      {...props}\n      data-scope='card'\n      data-part='description'\n      className={mx(recipes.cardDescription(), classNames)}\n      ref={forwardedRef}\n    />\n  ),\n);\n\nCardDescription.displayName = 'Card.Description';\n\n//\n// Body\n//\n\ntype CardBodyProps = ThemedClassName<ComponentPropsWithoutRef<'div'>>;\n\n/** In a `grid` card a subgrid of it, so its children sit in the content track; otherwise a plain column. */\nconst CardBody = forwardRef<HTMLDivElement, CardBodyProps>(({ classNames, ...props }, forwardedRef) => (\n  <div\n    {...props}\n    data-scope='card'\n    data-part='body'\n    className={mx(recipes.cardBody(), classNames)}\n    ref={forwardedRef}\n  />\n));\n\nCardBody.displayName = 'Card.Body';\n\n//\n// Footer\n//\n\ntype CardFooterProps = ThemedClassName<ComponentPropsWithoutRef<'div'>> & {\n  /** `between` splits leading actions (a nested Group) from a trailing control. */\n  justify?: GroupProps['justify'];\n};\n\n/** A `Group` of actions in the content track, end-justified unless `justify` says otherwise. */\nconst CardFooter = forwardRef<HTMLDivElement, CardFooterProps>(\n  ({ classNames, justify = 'end', ...props }, forwardedRef) => (\n    <Group asChild justify={justify}>\n      <div\n        {...props}\n        data-scope='card'\n        data-part='footer'\n        className={mx(recipes.cardFooter(), classNames)}\n        ref={forwardedRef}\n      />\n    </Group>\n  ),\n);\n\nCardFooter.displayName = 'Card.Footer';\n\n//\n// Section\n//\n\ntype CardSectionProps = ThemedClassName<ComponentPropsWithoutRef<'div'>> & {\n  /** A caption heading the section; the section is then a `group` named by it. */\n  title?: ReactNode;\n  /** Set by a slotting parent (`asChild`), e.g. `Collapsible.Content`, whose animation lives in its class. */\n  className?: string;\n};\n\n/**\n * Groups rows under an optional caption; in a `grid` card a subgrid of it, so its rows keep the card's rails, otherwise\n * a plain column.\n */\nconst CardSection = forwardRef<HTMLDivElement, CardSectionProps>(\n  ({ classNames, className, title, children, ...props }, forwardedRef) => {\n    const titleId = useId();\n    return (\n      <div\n        {...props}\n        role={title ? 'group' : undefined}\n        aria-labelledby={title ? titleId : undefined}\n        data-scope='card'\n        data-part='section'\n        className={mx(recipes.cardSection(), className, classNames)}\n        ref={forwardedRef}\n      >\n        {title && (\n          <div id={titleId} data-scope='card' data-part='section-title' className={recipes.cardSectionTitle()}>\n            {title}\n          </div>\n        )}\n        {children}\n      </div>\n    );\n  },\n);\n\nCardSection.displayName = 'Card.Section';\n\n//\n// Row\n//\n\ntype CardRowProps = ThemedClassName<ComponentPropsWithoutRef<'div'>> & {\n  /** Leading icon, in a Block in the card's start rail, so row text starts at the content edge with or without one. */\n  icon?: string;\n  /** Leading content in place of the icon (e.g. a person's avatar), in the same Block. */\n  leading?: ReactNode;\n  /**\n   * Trailing content (a Tag, a count, an action), kept whole while the text truncates; it ends in the card's end rail,\n   * which an icon-only action fills, and a wider one extends back into the content track.\n   */\n  trailing?: ReactNode;\n  /**\n   * Content centred in the card's end rail (an icon-only action, a unit), mirroring `leading` in the start rail; unlike\n   * `trailing` it never extends back into the content track, so every row's end column lines up.\n   */\n  end?: ReactNode;\n  /** The chosen row of a set (`aria-current`). */\n  current?: boolean;\n  /**\n   * How far the row's text runs in a `grid` card: `full` across both rails (content with nothing to align beside it,\n   * such as a snippet), `end` on through the end rail when there is no trailing cell. The content track by default.\n   */\n  span?: 'full' | 'end';\n  /**\n   * `start` aligns the leading icon and the trailing cell to the row's first line rather than its middle, for content\n   * of several lines (a title over a snippet); wrapped `Typography` text does this on its own.\n   */\n  align?: 'start';\n};\n\n/**\n * A block-tall row of icon, text and trailing content, laid out inline; in a `grid` card it is a subgrid, so the icon\n * lands in the card's start rail, the text in its content track and the trailing content in its end rail. With `onClick` the row is a button (Enter and Space activate\n * it), as the current `Card.Action` row was.\n */\nconst CardRow = forwardRef<HTMLDivElement, CardRowProps>(\n  (\n    { classNames, icon, leading, trailing, end, current, span, align, onClick, onKeyDown, children, ...props },\n    forwardedRef,\n  ) => (\n    <div\n      {...props}\n      {...clickableProps(onClick, onKeyDown)}\n      aria-current={current ? 'true' : undefined}\n      data-scope='card'\n      data-part='row'\n      data-trailing={trailing != null ? '' : undefined}\n      data-span={span}\n      data-align={align}\n      className={mx(recipes.cardRow(), onClick && recipes.cardClickable(), classNames)}\n      ref={forwardedRef}\n    >\n      {(leading != null || icon) && <Block rail='start'>{leading ?? (icon && <Icon.Icon icon={icon} />)}</Block>}\n      <div data-scope='card' data-part='row-main' className={recipes.cardRowMain()}>\n        <div data-scope='card' data-part='row-content' className={recipes.cardRowContent()}>\n          {children}\n        </div>\n        {trailing != null && (\n          <div data-scope='card' data-part='row-trailing' className={recipes.cardRowTrailing()}>\n            {trailing}\n          </div>\n        )}\n      </div>\n      {end != null && <Block rail='end'>{end}</Block>}\n    </div>\n  ),\n);\n\nCardRow.displayName = 'Card.Row';\n\n//\n// Text\n//\n\ntype CardTextProps = ThemedClassName<ComponentPropsWithoutRef<'p'>> & {\n  truncate?: boolean;\n  /** At most this many lines, the last ending in an ellipsis. */\n  lines?: number;\n  /** `description` reads as secondary text. */\n  variant?: 'default' | 'muted';\n};\n\n/** Card text on Typography, with the current `Card.Text` variants. */\nconst CardText = forwardRef<HTMLParagraphElement, CardTextProps>(\n  ({ classNames, truncate, lines, variant = 'default', ...props }, forwardedRef) => (\n    <Typography.Text\n      {...props}\n      classNames={classNames}\n      truncate={truncate}\n      lines={lines}\n      tone={variant}\n      ref={forwardedRef}\n    />\n  ),\n);\n\nCardText.displayName = 'Card.Text';\n\n//\n// Action\n//\n\ntype CardActionProps = Omit<ButtonProps, 'iconOnly' | 'icon' | 'label' | 'children'> &\n  (\n    | {\n        /** A `SystemButton` preset: its icon, and its translated label unless `label` is given. */\n        system: 'close' | 'delete';\n        icon?: never;\n        label?: string;\n      }\n    | {\n        system?: never;\n        icon: string;\n        /** Names the action and shows in its Tooltip. */\n        label: string;\n      }\n  );\n\nconst CARD_ACTION_SYSTEM = { close: SystemButton.Close, delete: SystemButton.Delete } as const;\n\n/**\n * A ghost icon-only Button for a Header or Row; its click stays with it, never activating a clickable card. With\n * `system` it is that `SystemButton` preset, so it takes the preset's icon and translated label.\n */\nconst CardAction = forwardRef<HTMLButtonElement, CardActionProps>(\n  ({ system, icon, label, onClick, ...props }, forwardedRef) => {\n    const handleClick = (event: MouseEvent<HTMLButtonElement>) => {\n      stopPropagation(event);\n      onClick?.(event);\n    };\n\n    if (system) {\n      const Preset = CARD_ACTION_SYSTEM[system];\n      return <Preset variant='ghost' {...props} label={label} onClick={handleClick} ref={forwardedRef} />;\n    }\n\n    return (\n      <Button variant='ghost' {...props} icon={icon} label={label} iconOnly onClick={handleClick} ref={forwardedRef} />\n    );\n  },\n);\n\nCardAction.displayName = 'Card.Action';\n\n//\n// Link\n//\n\ntype CardLinkProps = ThemedClassName<Omit<ComponentPropsWithoutRef<'a'>, 'children'>> & {\n  label: string;\n  href: string;\n};\n\n/**\n * A row linking out, laid out like a Row: the link icon in the start rail, the label, and an external-link icon in the\n * end rail; opens in a new tab like the current `Card.Link`.\n */\nconst CardLink = forwardRef<HTMLAnchorElement, CardLinkProps>(\n  ({ classNames, label, target = '_blank', rel = 'noreferrer', onClick, ...props }, forwardedRef) => (\n    <a\n      {...props}\n      target={target}\n      rel={rel}\n      onClick={(event) => {\n        stopPropagation(event);\n        onClick?.(event);\n      }}\n      data-scope='card'\n      data-part='link'\n      className={mx(recipes.cardRow(), recipes.cardLink(), classNames)}\n      ref={forwardedRef}\n    >\n      <Block rail='start'>\n        <Icon.Icon icon='ph--link--regular' />\n      </Block>\n      <span data-scope='card' data-part='row-content' className={recipes.cardRowContent()}>\n        {label}\n      </span>\n      <Block rail='end'>\n        <Icon.Icon icon='ph--arrow-square-out--regular' />\n      </Block>\n    </a>\n  ),\n);\n\nCardLink.displayName = 'Card.Link';\n\n//\n// Menu\n//\n\ntype CardMenuProps = {\n  /** Names the trigger (and its Tooltip). */\n  label: string;\n  /** Overrides the menu's size, otherwise inherited from the trigger's nearest sized ancestor (Phase 4 decision 2). */\n  size?: Size;\n  /** `Menu.Item`s and friends. */\n  children: ReactNode;\n};\n\n/** A ghost icon-only ⋮ trigger opening a Menu; neither the trigger nor a choice activates a clickable card. */\nconst CardMenu = ({ label, size, children }: CardMenuProps) => (\n  <Menu.Root>\n    <Menu.Trigger asChild>\n      <Button\n        icon='ph--dots-three-vertical--regular'\n        label={label}\n        iconOnly\n        variant='ghost'\n        onClick={stopPropagation}\n      />\n    </Menu.Trigger>\n    <Menu.Content size={size} onClick={stopPropagation}>\n      {children}\n    </Menu.Content>\n  </Menu.Root>\n);\n\nCardMenu.displayName = 'Card.Menu';\nexport type {\n  CardActionProps as ActionProps,\n  CardBodyProps as BodyProps,\n  CardDescriptionProps as DescriptionProps,\n  CardFooterProps as FooterProps,\n  CardHeaderProps as HeaderProps,\n  CardLinkProps as LinkProps,\n  CardMenuProps as MenuProps,\n  CardPosterProps as PosterProps,\n  CardRootProps as RootProps,\n  CardRowProps as RowProps,\n  CardSectionProps as SectionProps,\n  CardTextProps as TextProps,\n  CardTileProps as TileProps,\n  CardTitleProps as TitleProps,\n};\n\nexport {\n  CardAction as Action,\n  CardBody as Body,\n  CardDescription as Description,\n  CardFooter as Footer,\n  CardHeader as Header,\n  CardLink as Link,\n  CardMenu as Menu,\n  CardPoster as Poster,\n  CardRoot as Root,\n  CardRow as Row,\n  CardSection as Section,\n  CardText as Text,\n  CardTile as Tile,\n  CardTitle as Title,\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0BA,IAAM,mBAAmB,UAAsB,MAAM,gBAAgB;;;;;;;AAgCrE,IAAM,WAAW,YACd,EAAE,SAAS,MAAM,UAAU,OAAO,OAAO,SAAS,QAAQ,MAAM,SAAS,WAAW,GAAG,SAAS,iBAAiB;CAEhH,MAAM,EAAE,WAAW,GAAG,SAAS,gBAAgC,OAAO,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