UNPKG

flowbite-react

Version:

Official React components built for Flowbite and Tailwind CSS

1 lines 1.57 kB
{"version":3,"file":"FooterLinkGroup.mjs","sources":["../../../../src/components/Footer/FooterLinkGroup.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\";\nimport type { FlowbiteFooterLinkTheme } from \"./FooterLink\";\n\nexport interface FlowbiteFooterLinkGroupTheme {\n base: string;\n link: FlowbiteFooterLinkTheme;\n col: string;\n}\n\nexport interface FooterLinkGroupProps extends ComponentProps<\"ul\"> {\n col?: boolean;\n theme?: DeepPartial<FlowbiteFooterLinkGroupTheme>;\n}\n\nexport const FooterLinkGroup: FC<FooterLinkGroupProps> = ({\n children,\n className,\n col = false,\n theme: customTheme = {},\n ...props\n}) => {\n const theme = mergeDeep(getTheme().footer.groupLink, customTheme);\n\n return (\n <ul data-testid=\"footer-groupLink\" className={twMerge(theme.base, col && theme.col, className)} {...props}>\n {children}\n </ul>\n );\n};\n"],"names":[],"mappings":";;;;;AAKY,MAAC,eAAe,GAAG,CAAC;AAChC,EAAE,QAAQ;AACV,EAAE,SAAS;AACX,EAAE,GAAG,GAAG,KAAK;AACb,EAAE,KAAK,EAAE,WAAW,GAAG,EAAE;AACzB,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,GAAG,CAAC,IAAI,EAAE,EAAE,aAAa,EAAE,kBAAkB,EAAE,SAAS,EAAE,OAAO,CAAC,KAAK,CAAC,IAAI,EAAE,GAAG,IAAI,KAAK,CAAC,GAAG,EAAE,SAAS,CAAC,EAAE,GAAG,KAAK,EAAE,QAAQ,EAAE,CAAC,CAAC;AAC3J;;;;"}