{"version":3,"file":"Group-BuvAJkff.cjs","sources":["../src/components/Layout/layout.types.ts","../src/components/Layout/Box.tsx","../src/components/Layout/Stack.tsx","../src/components/Layout/Grid.tsx","../src/components/Layout/Container.tsx","../src/components/Layout/Divider.tsx","../src/components/Layout/Spacer.tsx","../src/components/Layout/AspectRatio.tsx","../src/components/Layout/Center.tsx","../src/components/Layout/Group.tsx"],"sourcesContent":["import type { ElementType, ReactNode } from 'react';\nimport type { SxProp } from './sx';\n\n/** Spacing scale token — maps 1:1 to `.p-{n}`, `.m-{n}`, `.gap-{n}` utilities. */\nexport type Space = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 8 | 10 | 12 | 16;\n\nexport type Align = 'start' | 'center' | 'end' | 'stretch' | 'baseline';\nexport type Justify = 'start' | 'center' | 'end' | 'between' | 'around' | 'evenly';\nexport type Direction = 'row' | 'column' | 'row-reverse' | 'column-reverse';\nexport type Display = 'block' | 'inline-block' | 'flex' | 'inline-flex' | 'grid' | 'inline-grid' | 'none';\n\nexport interface LayoutProps {\n  /** Polymorphic render target. Defaults vary per component. */\n  as?: ElementType;\n\n  // Spacing — all map to the 4pt scale utility classes\n  p?: Space;\n  px?: Space;\n  py?: Space;\n  pt?: Space;\n  pr?: Space;\n  pb?: Space;\n  pl?: Space;\n  m?: Space;\n  mx?: Space;\n  my?: Space;\n  mt?: Space;\n  mr?: Space;\n  mb?: Space;\n  ml?: Space;\n  gap?: Space;\n  gapX?: Space;\n  gapY?: Space;\n\n  // Layout\n  display?: Display;\n  direction?: Direction;\n  align?: Align;\n  justify?: Justify;\n  wrap?: boolean;\n\n  // Size\n  w?: 'full' | 'auto' | 'fit';\n  h?: 'full' | 'auto' | 'fit';\n\n  /** Grow to fill remaining space along the parent flex axis (`flex: 1 1 0`). */\n  grow?: boolean;\n\n  /**\n   * MUI-like escape hatch for one-off CSS. Each value may be a scalar or a\n   * responsive map keyed by breakpoint (base/sm/md/lg/xl), e.g.\n   * `sx={{ p: 8, gridTemplateColumns: { base: '1fr', lg: '3fr 1fr' } }}`.\n   * Scalar-only sx becomes inline style; responsive sx injects a scoped class.\n   */\n  sx?: SxProp;\n\n  children?: ReactNode;\n}\n\n/** Maps layout props to the utility class names emitted by core. */\nexport function layoutClasses(p: LayoutProps): (string | false | null | undefined)[] {\n  const classes: (string | false | null | undefined)[] = [];\n\n  if (p.display) classes.push(p.display);\n  if (p.direction === 'row') classes.push('flex-row');\n  else if (p.direction === 'column') classes.push('flex-col');\n  else if (p.direction === 'row-reverse') classes.push('flex-row-reverse');\n  else if (p.direction === 'column-reverse') classes.push('flex-col-reverse');\n  if (p.align) classes.push(`items-${p.align === 'start' || p.align === 'end' ? p.align : p.align}`);\n  if (p.justify) classes.push(`justify-${p.justify}`);\n  if (p.wrap) classes.push('flex-wrap');\n\n  if (p.p !== undefined) classes.push(`p-${p.p}`);\n  if (p.px !== undefined) classes.push(`px-${p.px}`);\n  if (p.py !== undefined) classes.push(`py-${p.py}`);\n  if (p.pt !== undefined) classes.push(`pt-${p.pt}`);\n  if (p.pr !== undefined) classes.push(`pr-${p.pr}`);\n  if (p.pb !== undefined) classes.push(`pb-${p.pb}`);\n  if (p.pl !== undefined) classes.push(`pl-${p.pl}`);\n\n  if (p.m !== undefined) classes.push(`m-${p.m}`);\n  if (p.mx !== undefined) classes.push(`mx-${p.mx}`);\n  if (p.my !== undefined) classes.push(`my-${p.my}`);\n  if (p.mt !== undefined) classes.push(`mt-${p.mt}`);\n  if (p.mr !== undefined) classes.push(`mr-${p.mr}`);\n  if (p.mb !== undefined) classes.push(`mb-${p.mb}`);\n  if (p.ml !== undefined) classes.push(`ml-${p.ml}`);\n\n  if (p.gap !== undefined) classes.push(`gap-${p.gap}`);\n  if (p.gapX !== undefined) classes.push(`gap-x-${p.gapX}`);\n  if (p.gapY !== undefined) classes.push(`gap-y-${p.gapY}`);\n\n  if (p.w) classes.push(`w-${p.w}`);\n  if (p.h) classes.push(`h-${p.h}`);\n  if (p.grow) classes.push('flex-1');\n\n  return classes;\n}\n","'use client';\nimport { forwardRef, createElement, Fragment } from 'react';\nimport type { ComponentPropsWithoutRef, CSSProperties, ElementType, ForwardedRef, ReactElement } from 'react';\nimport { cx } from '../../utils/cx';\nimport { layoutClasses } from './layout.types';\nimport type { LayoutProps } from './layout.types';\nimport { resolveSx } from './sx';\nimport { NoncedStyle } from '../../utils/NoncedStyle';\n\nexport type BoxProps<E extends ElementType = 'div'> = LayoutProps &\n  Omit<ComponentPropsWithoutRef<E>, keyof LayoutProps> & {\n    as?: E;\n  };\n\n/**\n * Box — the universal layout primitive.\n *\n * Defaults to `<div>` but polymorphic via `as`. All layout props map to\n * the utility classes in core, so styles stay predictable and debuggable\n * in DevTools (no inline styles).\n *\n * @example\n * <Box p={4} gap={2} direction=\"column\">...</Box>\n * <Box as=\"section\" py={6} px={4}>...</Box>\n * <Box sx={{ gridTemplateColumns: { base: '1fr', lg: '3fr 1fr' } }}>...</Box>\n */\nexport const Box = forwardRef(function Box<E extends ElementType = 'div'>(\n  { as, className, style, children, ...rest }: BoxProps<E>,\n  ref: ForwardedRef<Element>,\n): ReactElement {\n  const Tag = (as ?? 'div') as ElementType;\n  const { layoutProps, domProps } = splitLayoutProps(rest);\n  const { sx, ...boxLayout } = layoutProps;\n\n  // sx: scalar values → inline style; responsive values → scoped class + <style>.\n  const sxResult = sx ? resolveSx(sx) : undefined;\n  const classes = cx(...layoutClasses(boxLayout), sxResult?.className, className);\n  const mergedStyle: CSSProperties | undefined =\n    sxResult?.style || style\n      ? { ...(sxResult?.style as CSSProperties), ...(style as CSSProperties) }\n      : undefined;\n\n  const el = createElement(\n    Tag,\n    { ref, className: classes || undefined, style: mergedStyle, ...domProps },\n    children,\n  );\n\n  // Responsive sx needs @media rules that inline style can't express — emit a\n  // scoped <style> next to the element. The class is content-hashed, so the same\n  // sx renders identically on server and client (no hydration mismatch), and a\n  // <style> in flow is display:none per the UA sheet (never a flex/grid item).\n  if (sxResult?.css) {\n    return createElement(\n      Fragment,\n      null,\n      createElement(NoncedStyle, { css: sxResult.css }),\n      el,\n    );\n  }\n  return el;\n}) as <E extends ElementType = 'div'>(props: BoxProps<E> & { ref?: ForwardedRef<Element> }) => ReactElement;\n\n/** Split LayoutProps from the rest so only native props hit the DOM. */\nfunction splitLayoutProps(props: Record<string, unknown>): {\n  layoutProps: LayoutProps;\n  domProps: Record<string, unknown>;\n} {\n  const layoutKeys = new Set<string>([\n    'p', 'px', 'py', 'pt', 'pr', 'pb', 'pl',\n    'm', 'mx', 'my', 'mt', 'mr', 'mb', 'ml',\n    'gap', 'gapX', 'gapY',\n    'display', 'direction', 'align', 'justify', 'wrap',\n    'w', 'h', 'grow', 'sx',\n  ]);\n  const layoutProps: Record<string, unknown> = {};\n  const domProps: Record<string, unknown> = {};\n  for (const [key, value] of Object.entries(props)) {\n    if (layoutKeys.has(key)) layoutProps[key] = value;\n    else domProps[key] = value;\n  }\n  return { layoutProps: layoutProps as LayoutProps, domProps };\n}\n","'use client';\nimport { forwardRef } from 'react';\nimport type { ComponentPropsWithoutRef, ElementType, ForwardedRef, ReactElement } from 'react';\nimport { Box } from './Box';\nimport type { BoxProps } from './Box';\n\nexport type StackProps<E extends ElementType = 'div'> = Omit<BoxProps<E>, 'direction' | 'display'>;\n\n/** Vertical flex column with a gap. Default element: `<div>`. */\nexport const Stack = forwardRef(function Stack<E extends ElementType = 'div'>(\n  props: StackProps<E>,\n  ref: ForwardedRef<Element>,\n): ReactElement {\n  return <Box ref={ref} display=\"flex\" direction=\"column\" {...(props as ComponentPropsWithoutRef<typeof Box>)} />;\n}) as <E extends ElementType = 'div'>(props: StackProps<E> & { ref?: ForwardedRef<Element> }) => ReactElement;\n\nexport type RowProps<E extends ElementType = 'div'> = Omit<BoxProps<E>, 'direction' | 'display'>;\n\n/** Horizontal flex row with a gap. Default `align: 'center'`. */\nexport const Row = forwardRef(function Row<E extends ElementType = 'div'>(\n  props: RowProps<E>,\n  ref: ForwardedRef<Element>,\n): ReactElement {\n  const { align = 'center', ...rest } = props as RowProps<'div'>;\n  return (\n    <Box\n      ref={ref}\n      display=\"flex\"\n      direction=\"row\"\n      align={align}\n      {...(rest as ComponentPropsWithoutRef<typeof Box>)}\n    />\n  );\n}) as <E extends ElementType = 'div'>(props: RowProps<E> & { ref?: ForwardedRef<Element> }) => ReactElement;\n","'use client';\nimport { forwardRef } from 'react';\nimport type { ComponentPropsWithoutRef, ElementType, ForwardedRef, ReactElement } from 'react';\nimport { cx } from '../../utils/cx';\nimport { Box } from './Box';\nimport type { BoxProps } from './Box';\nimport type { Breakpoint, SxProp } from './sx';\n\ntype GridCols = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;\n\n/** Column weights, e.g. `[3, 1]` → `minmax(0,3fr) minmax(0,1fr)`. */\ntype Ratio = number[];\n/** A ratio, or a per-breakpoint map for responsive tracks (e.g. `{ base: [1], lg: [3, 1] }`). */\ntype ResponsiveRatio = Ratio | Partial<Record<Breakpoint, Ratio>>;\n\nexport type GridProps<E extends ElementType = 'div'> = Omit<BoxProps<E>, 'display' | 'direction'> & {\n  /** Fixed column count. Maps to `.grid-cols-{n}` utility. Ignored if another track prop is set. */\n  cols?: GridCols;\n  /**\n   * Auto-fit responsive grid: `repeat(auto-fit, minmax(minColWidth, 1fr))`.\n   * Pass a CSS length (e.g. `'240px'`, `'18rem'`).\n   */\n  minColWidth?: string;\n  /**\n   * Asymmetric tracks via column weights. `[3, 1]` → a 75/25 split. Responsive\n   * with a breakpoint map: `ratio={{ base: [1], lg: [3, 1] }}` stacks below `lg`\n   * and splits 3:1 at/above it — no custom CSS needed.\n   */\n  ratio?: ResponsiveRatio;\n  /** Explicit `grid-template-columns` string (e.g. `'200px 1fr auto'`). */\n  template?: string;\n};\n\nconst ratioToTemplate = (r: Ratio): string => r.map((n) => `minmax(0,${n}fr)`).join(' ');\n\n/**\n * CSS Grid container. Choose one track model: `cols` (equal), `minColWidth`\n * (auto-fit), `ratio` (asymmetric, responsive), or `template` (explicit).\n */\nexport const Grid = forwardRef(function Grid<E extends ElementType = 'div'>(\n  { cols, minColWidth, ratio, template, className, sx, ...rest }: GridProps<E>,\n  ref: ForwardedRef<Element>,\n): ReactElement {\n  // Resolve the track definition into a (possibly responsive) gridTemplateColumns\n  // value and hand it to the sx engine, which emits inline style (scalar) or a\n  // scoped @media class (responsive).\n  let gtc: SxProp['gridTemplateColumns'] | undefined;\n  if (template) {\n    gtc = template;\n  } else if (ratio) {\n    if (Array.isArray(ratio)) {\n      gtc = ratioToTemplate(ratio);\n    } else {\n      const map: Record<string, string> = {};\n      for (const [bp, arr] of Object.entries(ratio)) {\n        if (arr) map[bp] = ratioToTemplate(arr);\n      }\n      gtc = map as SxProp['gridTemplateColumns'];\n    }\n  } else if (minColWidth) {\n    gtc = `repeat(auto-fit, minmax(${minColWidth}, 1fr))`;\n  }\n\n  // User-supplied sx wins over the resolved track.\n  const mergedSx: SxProp | undefined = gtc ? { gridTemplateColumns: gtc, ...(sx ?? {}) } : sx;\n\n  return (\n    <Box\n      ref={ref}\n      display=\"grid\"\n      className={cx(!gtc && cols && `grid-cols-${cols}`, className)}\n      sx={mergedSx}\n      {...(rest as ComponentPropsWithoutRef<typeof Box>)}\n    />\n  );\n}) as <E extends ElementType = 'div'>(props: GridProps<E> & { ref?: ForwardedRef<Element> }) => ReactElement;\n","'use client';\nimport { forwardRef } from 'react';\nimport type { ComponentPropsWithoutRef, ElementType, ForwardedRef, ReactElement } from 'react';\nimport { cx } from '../../utils/cx';\nimport { Box } from './Box';\nimport type { BoxProps } from './Box';\n\nexport type ContainerSize = 'sm' | 'md' | 'lg' | 'xl' | 'full';\n\nexport type ContainerProps<E extends ElementType = 'div'> = Omit<BoxProps<E>, 'w'> & {\n  /** Max-width token. Default: `'lg'` (1024px). */\n  size?: ContainerSize;\n};\n\n/** Responsive max-width wrapper with centered horizontal inline padding. */\nexport const Container = forwardRef(function Container<E extends ElementType = 'div'>(\n  { size = 'lg', className, ...rest }: ContainerProps<E>,\n  ref: ForwardedRef<Element>,\n): ReactElement {\n  return (\n    <Box\n      ref={ref}\n      className={cx('cny-container', size, className)}\n      {...(rest as ComponentPropsWithoutRef<typeof Box>)}\n    />\n  );\n}) as <E extends ElementType = 'div'>(props: ContainerProps<E> & { ref?: ForwardedRef<Element> }) => ReactElement;\n","'use client';\nimport { forwardRef } from 'react';\nimport type { HTMLAttributes, Ref } from 'react';\nimport { withSx } from '../../utils/withSx';\nimport type { SxProp } from './sx';\n\nexport interface DividerProps extends Omit<HTMLAttributes<HTMLHRElement | HTMLSpanElement>, 'role'> {\n  /** Axis. Default: `'horizontal'`. */\n  orientation?: 'horizontal' | 'vertical';\n  /** One-off CSS (scalar or responsive breakpoint map), like `Box`'s `sx`. */\n  sx?: SxProp;\n}\n\n/**\n * Hairline divider. Renders `<hr>` when horizontal (no accessible name needed)\n * and a semantic `<span role=\"separator\" aria-orientation=\"vertical\">` when\n * vertical — `<hr>` is block-level and doesn't lay out inline.\n */\nexport const Divider = forwardRef<HTMLElement, DividerProps>(function Divider(\n  { orientation = 'horizontal', className, style, sx, ...rest },\n  ref,\n) {\n  const { className: classes, style: mergedStyle, styleTag } = withSx(\n    sx, style, 'cny-divider', orientation, className,\n  );\n  // <hr> is void (no children), so the responsive-sx <style> rides alongside it.\n  if (orientation === 'vertical') {\n    return (\n      <>\n        {styleTag}\n        <span\n          ref={ref as Ref<HTMLSpanElement>}\n          role=\"separator\"\n          aria-orientation=\"vertical\"\n          className={classes}\n          style={mergedStyle}\n          {...(rest as HTMLAttributes<HTMLSpanElement>)}\n        />\n      </>\n    );\n  }\n  return (\n    <>\n      {styleTag}\n      <hr\n        ref={ref as Ref<HTMLHRElement>}\n        className={classes}\n        style={mergedStyle}\n        {...(rest as HTMLAttributes<HTMLHRElement>)}\n      />\n    </>\n  );\n});\n","'use client';\nimport { forwardRef } from 'react';\nimport type { HTMLAttributes } from 'react';\nimport { withSx } from '../../utils/withSx';\nimport type { SxProp } from './sx';\n\nexport interface SpacerProps extends HTMLAttributes<HTMLSpanElement> {\n  /** One-off CSS (scalar or responsive breakpoint map), like `Box`'s `sx`. */\n  sx?: SxProp;\n}\n\n/** Flexible filler — `flex: 1 1 auto`. Use inside a `<Row>` or `<Stack>`. */\nexport const Spacer = forwardRef<HTMLSpanElement, SpacerProps>(function Spacer(\n  { className, style, sx, ...rest },\n  ref,\n) {\n  const { className: classes, style: mergedStyle, styleTag } = withSx(sx, style, 'cny-spacer', className);\n  return (\n    <span ref={ref} aria-hidden=\"true\" className={classes} style={mergedStyle} {...rest}>\n      {styleTag}\n    </span>\n  );\n});\n","'use client';\nimport { forwardRef } from 'react';\nimport type { HTMLAttributes, ReactNode } from 'react';\nimport { withSx } from '../../utils/withSx';\nimport type { SxProp } from './sx';\n\nexport interface AspectRatioProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {\n  /** Ratio = width / height. e.g. 16/9, 4/3, 1, 21/9. Default 16/9. */\n  ratio?: number;\n  /** One-off CSS (scalar or responsive breakpoint map), like `Box`'s `sx`. */\n  sx?: SxProp;\n  children?: ReactNode;\n}\n\n/**\n * Locks a child to a fixed aspect ratio. Useful for video/image tiles,\n * map embeds, and avatar grids. Pure CSS via `aspect-ratio`.\n */\nexport const AspectRatio = forwardRef<HTMLDivElement, AspectRatioProps>(\n  function AspectRatio({ ratio = 16 / 9, className, style, sx, children, ...rest }, ref) {\n    const { className: classes, style: mergedStyle, styleTag } = withSx(\n      sx, { aspectRatio: String(ratio), ...style }, 'aspect-ratio', className,\n    );\n    return (\n      <div ref={ref} className={classes} style={mergedStyle} {...rest}>\n        {styleTag}\n        {children}\n      </div>\n    );\n  },\n);\n","'use client';\nimport { forwardRef } from 'react';\nimport type { ComponentPropsWithoutRef, ElementType, ForwardedRef, ReactElement } from 'react';\nimport { Box } from './Box';\nimport type { BoxProps } from './Box';\n\nexport type CenterProps<E extends ElementType = 'div'> = Omit<BoxProps<E>, 'display' | 'align' | 'justify'>;\n\n/** Flex-centers its children (both axes). */\nexport const Center = forwardRef(function Center<E extends ElementType = 'div'>(\n  props: CenterProps<E>,\n  ref: ForwardedRef<Element>,\n): ReactElement {\n  return (\n    <Box\n      ref={ref}\n      display=\"flex\"\n      align=\"center\"\n      justify=\"center\"\n      {...(props as ComponentPropsWithoutRef<typeof Box>)}\n    />\n  );\n}) as <E extends ElementType = 'div'>(props: CenterProps<E> & { ref?: ForwardedRef<Element> }) => ReactElement;\n","'use client';\nimport { forwardRef } from 'react';\nimport type { ComponentPropsWithoutRef, ElementType, ForwardedRef, ReactElement } from 'react';\nimport { Box } from './Box';\nimport type { BoxProps } from './Box';\n\nexport type GroupProps<E extends ElementType = 'div'> = Omit<BoxProps<E>, 'direction' | 'display'>;\n\n/**\n * Horizontal flex row tuned for toolbars / trigger groups.\n * Defaults: align center, gap 2, wrap on overflow.\n */\nexport const Group = forwardRef(function Group<E extends ElementType = 'div'>(\n  props: GroupProps<E>,\n  ref: ForwardedRef<Element>,\n): ReactElement {\n  const { align = 'center', gap = 2, wrap = true, ...rest } = props as GroupProps<'div'>;\n  return (\n    <Box\n      ref={ref}\n      display=\"flex\"\n      direction=\"row\"\n      align={align}\n      gap={gap}\n      wrap={wrap}\n      {...(rest as ComponentPropsWithoutRef<typeof Box>)}\n    />\n  );\n}) as <E extends ElementType = 'div'>(props: GroupProps<E> & { ref?: ForwardedRef<Element> }) => ReactElement;\n"],"names":["layoutClasses","p","classes","Box","forwardRef","as","className","style","children","rest","ref","Tag","layoutProps","domProps","splitLayoutProps","sx","boxLayout","sxResult","resolveSx","cx","mergedStyle","el","createElement","Fragment","NoncedStyle","props","layoutKeys","key","value","Stack","jsx","Row","align","ratioToTemplate","r","n","Grid","cols","minColWidth","ratio","template","gtc","map","bp","arr","mergedSx","Container","size","Divider","orientation","styleTag","withSx","jsxs","Spacer","AspectRatio","Center","Group","gap","wrap"],"mappings":"qHA4DO,SAASA,EAAcC,EAAuD,CACnF,MAAMC,EAAiD,CAAA,EAEvD,OAAID,EAAE,SAASC,EAAQ,KAAKD,EAA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