diff --git a/packages/ui-icons/package.json b/packages/ui-icons/package.json index 0fe637bd..aa329c04 100644 --- a/packages/ui-icons/package.json +++ b/packages/ui-icons/package.json @@ -39,14 +39,10 @@ "react-dom": "^18.2.0" }, "devDependencies": { - "@versini/ui-plugins": "workspace:../ui-plugins" + "@versini/ui-private": "workspace:../ui-private" }, "dependencies": { - "@tailwindcss/typography": "0.5.10", - "@versini/ui-hooks": ">=2.1.1", - "@versini/ui-private": "workspace:../ui-private", - "clsx": "2.1.0", - "tailwindcss": "3.4.1" + "@versini/ui-private": "workspace:../ui-private" }, "sideEffects": [ "**/*.css" diff --git a/packages/ui-icons/postcss.config.cjs b/packages/ui-icons/postcss.config.cjs deleted file mode 100644 index cfcbf3ac..00000000 --- a/packages/ui-icons/postcss.config.cjs +++ /dev/null @@ -1,7 +0,0 @@ -/* eslint-disable no-undef */ -module.exports = { - plugins: { - tailwindcss: {}, - autoprefixer: {}, - }, -}; diff --git a/packages/ui-icons/src/components/Icons/IconDog.tsx b/packages/ui-icons/src/components/Icons/IconDog.tsx index 45dd5c3f..dd3ce8e3 100644 --- a/packages/ui-icons/src/components/Icons/IconDog.tsx +++ b/packages/ui-icons/src/components/Icons/IconDog.tsx @@ -11,7 +11,7 @@ export const IconDog = ({ return ( { rollupOptions: { input: { index: resolve(__dirname, "src/components/index.ts"), - style: resolve(__dirname, "src/style.ts"), ...input, }, treeshake: "smallest", diff --git a/packages/ui-plugins/src/plugins/__tests__/tailwindPlugin.test.ts b/packages/ui-plugins/src/plugins/__tests__/tailwindPlugin.test.ts index 55165738..a2a1d6c1 100644 --- a/packages/ui-plugins/src/plugins/__tests__/tailwindPlugin.test.ts +++ b/packages/ui-plugins/src/plugins/__tests__/tailwindPlugin.test.ts @@ -4,9 +4,10 @@ import { customContentPath } from "../tailwindcss/tailwindPlugin"; describe("Non-DOM tests", () => { it("should return an array with ui-system and ui-components", () => { - expect(customContentPath[0]).toContain("node_modules/@versini/ui-system"); - expect(customContentPath[1]).toContain( + expect(customContentPath[0]).toContain( "node_modules/@versini/ui-components", ); + expect(customContentPath[1]).toContain("node_modules/@versini/ui-icons"); + expect(customContentPath[2]).toContain("node_modules/@versini/ui-system"); }); }); diff --git a/packages/ui-plugins/src/plugins/tailwindcss/tailwindPlugin.ts b/packages/ui-plugins/src/plugins/tailwindcss/tailwindPlugin.ts index 80646d62..71c37b37 100644 --- a/packages/ui-plugins/src/plugins/tailwindcss/tailwindPlugin.ts +++ b/packages/ui-plugins/src/plugins/tailwindcss/tailwindPlugin.ts @@ -21,8 +21,9 @@ type TailwindConfig = { * added here. */ export const customContentPath = [ - "@versini/ui-system", "@versini/ui-components", + "@versini/ui-icons", + "@versini/ui-system", ].map( (pkg) => `${process.cwd()}/node_modules/${pkg}/dist/**/*.{js,ts,jsx,tsx}`, ); diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e97538c2..9dec673f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -210,31 +210,15 @@ importers: packages/ui-icons: dependencies: - '@tailwindcss/typography': - specifier: 0.5.10 - version: 0.5.10(tailwindcss@3.4.1) - '@versini/ui-hooks': - specifier: '>=2.1.1' - version: link:../ui-hooks '@versini/ui-private': specifier: workspace:../ui-private version: link:../ui-private - clsx: - specifier: 2.1.0 - version: 2.1.0 react: specifier: ^18.2.0 version: 18.2.0 react-dom: specifier: ^18.2.0 version: 18.2.0(react@18.2.0) - tailwindcss: - specifier: 3.4.1 - version: 3.4.1 - devDependencies: - '@versini/ui-plugins': - specifier: workspace:../ui-plugins - version: link:../ui-plugins packages/ui-plugins: dependencies: