flowbite-react
Version:
Official React components built for Flowbite and Tailwind CSS
1 lines • 1.98 kB
Source Map (JSON)
{"version":3,"file":"FooterCopyright.mjs","sources":["../../../../src/components/Footer/FooterCopyright.tsx"],"sourcesContent":["import type { ComponentProps, FC } from \"react\";\nimport { twMerge } from \"tailwind-merge\";\nimport { mergeDeep } from \"../../helpers/merge-deep\";\nimport { getTheme } from \"../../theme-store\";\nimport type { DeepPartial } from \"../../types\";\n\nexport interface FlowbiteFooterCopyrightTheme {\n base: string;\n href: string;\n span: string;\n}\n\nexport interface CopyrightProps extends ComponentProps<\"div\"> {\n by: string;\n href?: string;\n theme?: DeepPartial<FlowbiteFooterCopyrightTheme>;\n year?: number;\n}\n\nexport const FooterCopyright: FC<CopyrightProps> = ({\n by,\n className,\n href,\n theme: customTheme = {},\n year,\n ...props\n}) => {\n const theme = mergeDeep(getTheme().footer.copyright, customTheme);\n\n return (\n <div data-testid=\"flowbite-footer-copyright\" className={twMerge(theme.base, className)} {...props}>\n © {year}\n {href ? (\n <a href={href} className={theme.href}>\n {by}\n </a>\n ) : (\n <span data-testid=\"flowbite-footer-copyright-span\" className={theme.span}>\n {by}\n </span>\n )}\n </div>\n );\n};\n"],"names":[],"mappings":";;;;;AAKY,MAAC,eAAe,GAAG,CAAC;AAChC,EAAE,EAAE;AACJ,EAAE,SAAS;AACX,EAAE,IAAI;AACN,EAAE,KAAK,EAAE,WAAW,GAAG,EAAE;AACzB,EAAE,IAAI;AACN,EAAE,GAAG,KAAK;AACV,CAAC,KAAK;AACN,EAAE,MAAM,KAAK,GAAG,SAAS,CAAC,QAAQ,EAAE,CAAC,MAAM,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;AACpE,EAAE,uBAAuB,IAAI,CAAC,KAAK,EAAE,EAAE,aAAa,EAAE,2BAA2B,EAAE,SAAS,EAAE,OAAO,CAAC,KAAK,CAAC,IAAI,EAAE,SAAS,CAAC,EAAE,GAAG,KAAK,EAAE,QAAQ,EAAE;AAClJ,IAAI,OAAO;AACX,IAAI,IAAI;AACR,IAAI,IAAI,mBAAmB,GAAG,CAAC,GAAG,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,CAAC,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,mBAAmB,GAAG,CAAC,MAAM,EAAE,EAAE,aAAa,EAAE,gCAAgC,EAAE,SAAS,EAAE,KAAK,CAAC,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC;AAC1M,GAAG,EAAE,CAAC,CAAC;AACP;;;;"}