flowbite-react
Version:
Official React components built for Flowbite and Tailwind CSS
1 lines • 2.41 kB
Source Map (JSON)
{"version":3,"file":"Blockquote.cjs","sources":["../../../src/components/Blockquote/Blockquote.tsx"],"sourcesContent":["\"use client\";\n\nimport { forwardRef, type ComponentProps } from \"react\";\nimport { get } from \"../../helpers/get\";\nimport { resolveProps } from \"../../helpers/resolve-props\";\nimport { useResolveTheme } from \"../../helpers/resolve-theme\";\nimport { twMerge } from \"../../helpers/tailwind-merge\";\nimport { useThemeProvider } from \"../../theme/provider\";\nimport type { ThemingProps } from \"../../types\";\nimport { blockquoteTheme } from \"./theme\";\n\nexport interface BlockquoteTheme {\n root: BlockquoteRootTheme;\n}\n\nexport interface BlockquoteRootTheme {\n base: string;\n}\n\nexport interface BlockquoteProps extends ComponentProps<\"blockquote\">, ThemingProps<BlockquoteTheme> {}\n\nexport const Blockquote = forwardRef<HTMLQuoteElement, BlockquoteProps>((props, ref) => {\n const provider = useThemeProvider();\n const theme = useResolveTheme(\n [blockquoteTheme, provider.theme?.blockquote, props.theme],\n [get(provider.clearTheme, \"blockquote\"), props.clearTheme],\n [get(provider.applyTheme, \"blockquote\"), props.applyTheme],\n );\n\n const { className, ...restProps } = resolveProps(props, provider.props?.blockquote);\n\n return (\n <blockquote\n ref={ref}\n className={twMerge(theme.root.base, className)}\n data-testid=\"flowbite-blockquote\"\n {...restProps}\n />\n );\n});\n\nBlockquote.displayName = \"Blockquote\";\n"],"names":["forwardRef","provider","useThemeProvider","theme","useResolveTheme","blockquoteTheme","get","resolveProps","jsx","twMerge"],"mappings":";;;;;;;;;;;AAUY,MAAC,UAAU,GAAGA,gBAAU,CAAC,CAAC,KAAK,EAAE,GAAG,KAAK;AACrD,EAAE,MAAMC,UAAQ,GAAGC,yBAAgB,EAAE;AACrC,EAAE,MAAMC,OAAK,GAAGC,4BAAe;AAC/B,IAAI,CAACC,qBAAe,EAAEJ,UAAQ,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,CAAC,KAAK,CAAC;AAC9D,IAAI,CAACK,OAAG,CAACL,UAAQ,CAAC,UAAU,EAAE,YAAY,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC;AAC9D,IAAI,CAACK,OAAG,CAACL,UAAQ,CAAC,UAAU,EAAE,YAAY,CAAC,EAAE,KAAK,CAAC,UAAU;AAC7D,GAAG;AACH,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,SAAS,EAAE,GAAGM,yBAAY,CAAC,KAAK,EAAEN,UAAQ,CAAC,KAAK,EAAE,UAAU,CAAC;AACrF,EAAE,uBAAuBO,cAAG;AAC5B,IAAI,YAAY;AAChB,IAAI;AACJ,MAAM,GAAG;AACT,MAAM,SAAS,EAAEC,qBAAO,CAACN,OAAK,CAAC,IAAI,CAAC,IAAI,EAAE,SAAS,CAAC;AACpD,MAAM,aAAa,EAAE,qBAAqB;AAC1C,MAAM,GAAG;AACT;AACA,GAAG;AACH,CAAC;AACD,UAAU,CAAC,WAAW,GAAG,YAAY;;;;"}