UNPKG

@transkripid/flowbite-react

Version:

Official React components built for Flowbite and Tailwind CSS - Transkrip.id fork

1 lines 1.44 kB
{"version":3,"file":"Flowbite.mjs","sources":["../../../src/components/Flowbite/Flowbite.tsx"],"sourcesContent":["import type { FC } from 'react';\nimport type { ThemeMode } from '../../hooks/use-theme-mode';\nimport { ThemeInit } from '../../theme-store/init';\nimport type { CustomFlowbiteTheme } from './FlowbiteTheme';\n\nexport interface ThemeProps {\n mode?: ThemeMode;\n theme?: CustomFlowbiteTheme;\n}\n\ninterface FlowbiteProps {\n children: React.ReactNode;\n theme?: ThemeProps;\n}\n\nexport const Flowbite: FC<FlowbiteProps> = ({ children, theme }) => {\n return (\n <>\n <ThemeInit mode={theme?.mode} theme={theme?.theme} />\n {children}\n </>\n );\n};\n\nFlowbite.displayName = 'Flowbite';\n"],"names":["Flowbite","t0","$","_c","children","theme","t1","mode","t2","t3","jsx","ThemeInit","t4","displayName"],"mappings":";;;AAeO,MAAMA,IAA8BC,CAAAA,MAAA;AAAAC,QAAAA,IAAAC,EAAA,CAAA,GAAC;AAAA,IAAAC,UAAAA;AAAAA,IAAAC,OAAAA;AAAAA,EAAAJ,IAAAA,GAGrBK,IAAAD,KAAAA,gBAAAA,EAAKE,MAAeC,IAAAH,KAAAA,gBAAAA,EAAKA;AAAOI,MAAAA;AAAA,EAAAP,EAAAI,CAAAA,MAAAA,KAAAJ,SAAAM,KAAjDC,IAAC,gBAAAC,EAAAC,GAAA,EAAgB,MAAAL,GAAoB,OAAAE,EAAgB,CAAA,GAAAN,OAAAI,GAAAJ,OAAAM,GAAAN,OAAAO,KAAAA,IAAAP,EAAA,CAAA;AAAAU,MAAAA;AAAA,SAAAV,EAAAE,CAAAA,MAAAA,KAAAF,SAAAO,KADvDG,IACEH,gBAAAA,EAAAA,GAAAA,EAAAA,UAAAA;AAAAA,IAAAA;AAAAA,IACSL;AAAA,EAAA,EAAA,CAAA,GACRF,OAAAE,GAAAF,OAAAO,GAAAP,OAAAU,KAAAA,IAAAV,EAAA,CAAA,GAHHU;AAGG;AAIPZ,EAASa,cAAc;"}