{"version":3,"file":"EmptyState.cjs","sources":["../../../../src/components/feedback/empty-state/EmptyState.tsx"],"sourcesContent":["import { Flex } from '@components/layout/flex'\r\nimport { Typography } from '@components/foundation/typography'\r\nimport { EMPTY_STATE_STYLES } from '@components/feedback/empty-state/styles/EmptyState.css.ts'\r\nimport type { EmptyStateProps } from '@components/feedback/empty-state/types/EmptyState.props.ts'\r\nimport { cn } from '@utils/cn.ts'\r\nimport { memo, type FC } from 'react'\r\n\r\n/**\r\n * Centered placeholder for empty data states. Renders a heading `title`,\r\n * a descriptive paragraph, and an optional `action` slot for a call-to-action\r\n * button or link.\r\n */\r\nconst EmptyState: FC<EmptyStateProps> = memo(({\r\n    title,\r\n    description,\r\n    action,\r\n    className,\r\n    ref,\r\n    ...props\r\n}) => (\r\n    <Flex\r\n        ref={ref}\r\n        flexDirection={'column'}\r\n        gap={'sm'}\r\n        className={cn(EMPTY_STATE_STYLES.root, className)}\r\n        {...props}\r\n    >\r\n        <Flex\r\n            flexDirection={'column'}\r\n            gap={'xs'}\r\n            alignItems={'center'}\r\n            className={EMPTY_STATE_STYLES.content}\r\n        >\r\n            <Typography\r\n                as={'h2'}\r\n                variant={'h2'}\r\n                fontSize={'xl'}\r\n                fontWeight={'semibold'}\r\n            >\r\n                {title}\r\n            </Typography>\r\n            <Typography\r\n                as={'p'}\r\n                variant={'p'}\r\n                fontSize={'sm'}\r\n                color={'textSecondary'}\r\n            >\r\n                {description}\r\n            </Typography>\r\n        </Flex>\r\n        {action && (\r\n            <div className={EMPTY_STATE_STYLES.action}>\r\n                {action}\r\n            </div>\r\n        )}\r\n    </Flex>\r\n))\r\n\r\nEmptyState.displayName = 'EmptyState'\r\n\r\nexport default EmptyState\r\n"],"names":["EmptyState","memo","title","description","action","className","ref","props","jsxs","Flex","cn","EMPTY_STATE_STYLES","jsx","Typography"],"mappings":"+WAYMA,EAAkCC,EAAAA,KAAK,CAAC,CAC1C,MAAAC,EACA,YAAAC,EACA,OAAAC,EACA,UAAAC,EACA,IAAAC,EACA,GAAGC,CACP,IACIC,EAAAA,KAACC,EAAA,CACG,IAAAH,EACA,cAAe,SACf,IAAK,KACL,UAAWI,EAAAA,GAAGC,qBAAmB,KAAMN,CAAS,EAC/C,GAAGE,EAEJ,SAAA,CAAAC,EAAAA,KAACC,EAAA,CACG,cAAe,SACf,IAAK,KACL,WAAY,SACZ,UAAWE,EAAAA,mBAAmB,QAE9B,SAAA,CAAAC,EAAAA,IAACC,EAAA,CACG,GAAI,KACJ,QAAS,KACT,SAAU,KACV,WAAY,WAEX,SAAAX,CAAA,CAAA,EAELU,EAAAA,IAACC,EAAA,CACG,GAAI,IACJ,QAAS,IACT,SAAU,KACV,MAAO,gBAEN,SAAAV,CAAA,CAAA,CACL,CAAA,CAAA,EAEHC,GACGQ,EAAAA,IAAC,MAAA,CAAI,UAAWD,EAAAA,mBAAmB,OAC9B,SAAAP,CAAA,CACL,CAAA,CAAA,CAER,CACH,EAEDJ,EAAW,YAAc"}