{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "info-basic",
  "type": "registry:item",
  "title": "Info Basic",
  "description": "Basic info component with title, subtitle, caption, and eyebrow text slots for displaying structured content",
  "dependencies": [
    "@mui/material",
    "clsx",
    "@emotion/react",
    "@emotion/styled"
  ],
  "registryDependencies": [],
  "files": [
    {
      "path": "components/info-basic/info-caption.tsx",
      "target": "src/mui-treasury/components/info-basic/info-caption.tsx",
      "content": "import React, { ReactNode } from 'react';\n\nimport { SxProps, Theme, styled } from '@mui/material/styles';\nimport cx from 'clsx';\n\nimport { AppendUseStyles, useStylesCtx } from './info';\nimport { infoClasses } from './info-classes';\n\nexport type InfoCaptionProps = {\n  /**\n   * className append to the root element\n   */\n  className?: string;\n\n  component?: React.ElementType;\n\n  children: ReactNode;\n\n  /**\n   * The system prop that allows defining system overrides as well as additional CSS styles.\n   */\n  sx?: SxProps<Theme>;\n} & Omit<React.JSX.IntrinsicElements['div'], 'ref'>;\n\nconst InfoCaptionRoot = styled('div', {\n  name: 'JunInfo',\n  slot: 'Caption',\n  overridesResolver: (props, styles) => styles.caption,\n})<{ ownerState: AppendUseStyles<InfoCaptionProps> }>(\n  ({ theme, ownerState }) => ({\n    color: (theme.vars || theme).palette.text.secondary,\n    fontSize: '0.75rem',\n    marginBlockStart: '0.5em',\n    marginBlockEnd: '0.75em',\n    ...ownerState.useStyles(theme).caption,\n  }),\n);\n\nexport const InfoCaption = React.forwardRef<HTMLDivElement, InfoCaptionProps>(\n  function InfoCaption(props, ref) {\n    const { children, component, className, ...other } = props;\n    const useStyles = useStylesCtx();\n    return (\n      <InfoCaptionRoot\n        ref={ref}\n        {...other}\n        as={component}\n        className={cx(infoClasses.caption, className)}\n        ownerState={{ ...props, useStyles }}\n      >\n        {children}\n      </InfoCaptionRoot>\n    );\n  },\n);\n",
      "type": "registry:item"
    },
    {
      "path": "components/info-basic/info-classes.ts",
      "target": "src/mui-treasury/components/info-basic/info-classes.ts",
      "content": "import generateUtilityClass from '@mui/material/generateUtilityClass';\nimport generateUtilityClasses from '@mui/material/generateUtilityClasses';\n\nexport interface InfoClasses {\n  /** Styles applied to the root element. */\n  root: string;\n  /** Styles applied to the title element. */\n  title: string;\n  /** Styles applied to the subtitle element. */\n  subtitle: string;\n  /** Styles applied to the caption element. */\n  caption: string;\n  /** Styles applied to the eyebrow element. */\n  eyebrow: string;\n}\n\nexport type InfoClassKey = keyof typeof infoClasses;\n\nexport function getInfoUtilityClass(slot: string) {\n  return generateUtilityClass('JunInfo', slot);\n}\n\nexport const infoClasses: InfoClasses = generateUtilityClasses('JunInfo', [\n  'root',\n  'title',\n  'subtitle',\n  'caption',\n  'eyebrow',\n]);\n",
      "type": "registry:item"
    },
    {
      "path": "components/info-basic/info-eyebrow.tsx",
      "target": "src/mui-treasury/components/info-basic/info-eyebrow.tsx",
      "content": "import React, { ReactNode } from 'react';\n\nimport { SxProps, Theme, styled } from '@mui/material/styles';\nimport cx from 'clsx';\n\nimport { AppendUseStyles, useStylesCtx } from './info';\nimport { infoClasses } from './info-classes';\n\nexport type InfoEyebrowProps = {\n  /**\n   * className append to the root element\n   */\n  className?: string;\n\n  component?: React.ElementType;\n\n  children: ReactNode;\n\n  /**\n   * The system prop that allows defining system overrides as well as additional CSS styles.\n   */\n  sx?: SxProps<Theme>;\n} & Omit<React.JSX.IntrinsicElements['div'], 'ref'>;\n\nconst InfoEyebrowRoot = styled('div', {\n  name: 'JunInfo',\n  slot: 'Eyebrow',\n  overridesResolver: (props, styles) => styles.eyebrow,\n})<{ ownerState: AppendUseStyles<InfoEyebrowProps> }>(\n  ({ theme, ownerState }) => ({\n    color: (theme.vars || theme).palette.text.secondary,\n    fontSize: '0.875rem',\n    marginBottom: '0.25rem',\n    lineHeight: '1.25rem',\n    textTransform: 'uppercase',\n    ...ownerState.useStyles(theme).eyebrow,\n  }),\n);\n\nexport const InfoEyebrow = React.forwardRef<HTMLDivElement, InfoEyebrowProps>(\n  function InfoEyebrow(props, ref) {\n    const { children, component, className, ...other } = props;\n    const useStyles = useStylesCtx();\n    return (\n      <InfoEyebrowRoot\n        ref={ref}\n        {...other}\n        as={component}\n        className={cx(infoClasses.eyebrow, className)}\n        ownerState={{ ...props, useStyles }}\n      >\n        {children}\n      </InfoEyebrowRoot>\n    );\n  },\n);\n",
      "type": "registry:item"
    },
    {
      "path": "components/info-basic/info-subtitle.tsx",
      "target": "src/mui-treasury/components/info-basic/info-subtitle.tsx",
      "content": "import React, { ReactNode } from 'react';\n\nimport { SxProps, Theme, styled } from '@mui/material/styles';\nimport cx from 'clsx';\n\nimport { AppendUseStyles, useStylesCtx } from './info';\nimport { infoClasses } from './info-classes';\n\nexport type InfoParagraphProps = {\n  /**\n   * className append to the root element\n   */\n  className?: string;\n\n  component?: React.ElementType;\n\n  children: ReactNode;\n\n  /**\n   * The system prop that allows defining system overrides as well as additional CSS styles.\n   */\n  sx?: SxProps<Theme>;\n} & Omit<React.JSX.IntrinsicElements['p'], 'ref'>;\n\nconst InfoParagraphRoot = styled('p', {\n  name: 'JunInfo',\n  slot: 'Body',\n  overridesResolver: (props, styles) => styles.subtitle,\n})<{ ownerState: AppendUseStyles<InfoParagraphProps> }>(\n  ({ theme, ownerState }) => ({\n    color: (theme.vars || theme).palette.text.secondary,\n    lineHeight: 1.5,\n    fontSize: '1rem',\n    margin: 0,\n    ...ownerState.useStyles(theme).subtitle,\n  }),\n);\n\nexport const InfoSubtitle = React.forwardRef<\n  HTMLParagraphElement,\n  InfoParagraphProps\n>(function InfoSubtitle(props, ref) {\n  const { children, component, className, ...other } = props;\n  const useStyles = useStylesCtx();\n  return (\n    <InfoParagraphRoot\n      ref={ref}\n      {...other}\n      as={component}\n      className={cx(infoClasses.subtitle, className)}\n      ownerState={{ ...props, useStyles }}\n    >\n      {children}\n    </InfoParagraphRoot>\n  );\n});\n",
      "type": "registry:item"
    },
    {
      "path": "components/info-basic/info-title.tsx",
      "target": "src/mui-treasury/components/info-basic/info-title.tsx",
      "content": "import React, { ReactNode } from 'react';\n\nimport { SxProps, Theme, styled } from '@mui/material/styles';\nimport cx from 'clsx';\n\nimport { AppendUseStyles, useStylesCtx } from './info';\nimport { infoClasses } from './info-classes';\n\nexport type InfoTitleProps = {\n  /**\n   * className append to the root element\n   */\n  className?: string;\n\n  component?: React.ElementType;\n\n  children: ReactNode;\n\n  /**\n   * The system prop that allows defining system overrides as well as additional CSS styles.\n   */\n  sx?: SxProps<Theme>;\n} & Omit<React.JSX.IntrinsicElements['div'], 'ref'>;\n\nconst InfoTitleRoot = styled('div', {\n  name: 'JunInfo',\n  slot: 'Head',\n  overridesResolver: (props, styles) => styles.title,\n})<{ ownerState: AppendUseStyles<InfoTitleProps> }>(\n  ({ theme, ownerState }) => ({\n    letterSpacing: '0.0073529412em',\n    fontSize: '1.25rem',\n    fontWeight: 'normal',\n    margin: '0 0 0.4em 0', // force other side to prevent user agent stylesheet\n    lineHeight: 1.5,\n    ...ownerState.useStyles(theme).title,\n  }),\n);\n\nexport const InfoTitle = React.forwardRef<HTMLHeadingElement, InfoTitleProps>(\n  function InfoTitle(props, ref) {\n    const { children, component, className, ...other } = props;\n    const useStyles = useStylesCtx();\n    return (\n      <InfoTitleRoot\n        ref={ref}\n        {...other}\n        as={component}\n        className={cx(infoClasses.title, className)}\n        ownerState={{ ...props, useStyles }}\n      >\n        {children}\n      </InfoTitleRoot>\n    );\n  },\n);\n",
      "type": "registry:item"
    },
    {
      "path": "components/info-basic/info.tsx",
      "target": "src/mui-treasury/components/info-basic/info.tsx",
      "content": "import React from 'react';\n\nimport { SxProps, Theme, styled } from '@mui/material/styles';\nimport type { CSSObject } from '@mui/material/styles';\nimport cx from 'clsx';\n\nimport { infoClasses } from './info-classes';\n\nconst defaultUseStyles = () => ({});\n\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport interface InfoPropsVariantOverrides {}\n\nexport type InfoSlotStyles = {\n  root: CSSObject;\n  title: CSSObject;\n  subtitle: CSSObject;\n  caption: CSSObject;\n  eyebrow: CSSObject;\n};\n\nexport type AppendUseStyles<T> = T & {\n  useStyles: (theme: Theme) => Partial<InfoSlotStyles>;\n};\n\nexport type InfoProps = {\n  /**\n   * className append to the root element\n   */\n  className?: string;\n\n  component?: React.ElementType;\n\n  children: React.ReactNode;\n\n  variant?: unknown;\n\n  useStyles?: (theme: Theme) => Partial<InfoSlotStyles>;\n\n  /**\n   * The system prop that allows defining system overrides as well as additional CSS styles.\n   */\n  sx?: SxProps<Theme>;\n} & Omit<React.JSX.IntrinsicElements['div'], 'ref'>;\n\nconst StylesContext = React.createContext<InfoProps['useStyles'] | undefined>(\n  undefined,\n);\n\nexport const useStylesCtx = () => {\n  const value = React.useContext(StylesContext);\n  if (!value) {\n    throw new Error('`useStylesCtx` must be called under <Info>');\n  }\n  return value;\n};\n\nconst InfoRoot = styled('div', {\n  name: 'JunInfo',\n  slot: 'Root',\n  overridesResolver: (props, styles) => {\n    const { ownerState } = props;\n    return [styles.root, ownerState.variant && styles[ownerState.variant]];\n  },\n})<{ ownerState: InfoProps }>(({ theme, ownerState }) => ({\n  display: 'block',\n  ...(ownerState.useStyles && ownerState.useStyles(theme).root),\n}));\n\nexport const Info = React.forwardRef<HTMLDivElement, InfoProps>(\n  function Info(props, ref) {\n    const { children, component, variant, useStyles, ...other } = props;\n\n    const ownerState = {\n      ...props,\n      variant,\n      useStyles,\n    };\n\n    return (\n      <InfoRoot\n        ref={ref}\n        {...other}\n        as={component}\n        className={cx(infoClasses.root, props.className)}\n        ownerState={ownerState}\n      >\n        <StylesContext.Provider value={useStyles || defaultUseStyles}>\n          {children}\n        </StylesContext.Provider>\n      </InfoRoot>\n    );\n  },\n);\n",
      "type": "registry:item"
    },
    {
      "path": "components/info-basic/index.ts",
      "target": "src/mui-treasury/components/info-basic/index.ts",
      "content": "export * from './info-caption';\nexport * from './info-classes';\nexport * from './info-eyebrow';\nexport * from './info-subtitle';\nexport * from './info-title';\nexport * from './info';\n",
      "type": "registry:item"
    }
  ],
  "meta": {
    "category": "primitive",
    "previewClassName": "bg-white dark:bg-neutral-950",
    "subcategory": "info"
  }
}