flowbite-react
Version:
Official React components built for Flowbite and Tailwind CSS
1 lines • 699 B
Source Map (JSON)
{"version":3,"file":"get-tailwind-version.cjs","sources":["../../src/helpers/get-tailwind-version.ts"],"sourcesContent":["import version from \"tailwindcss/version.js\";\n\n/**\n * Gets the major version number of the installed Tailwind CSS\n *\n * @returns The major version number (3 or 4) or undefined if not found\n */\nexport function getTailwindVersion(): 3 | 4 | undefined {\n try {\n return parseInt(version.split(\".\")[0], 10) as 3 | 4;\n } catch (_) {\n return;\n }\n}\n"],"names":[],"mappings":";;;;AAEO,SAAS,kBAAkB,GAAG;AACrC,EAAE,IAAI;AACN,IAAI,OAAO,QAAQ,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;AAC9C,GAAG,CAAC,OAAO,CAAC,EAAE;AACd,IAAI;AACJ;AACA;;;;"}