diff --git a/packages/ui-footer/package.json b/packages/ui-footer/package.json index 1da76cdc..40251356 100644 --- a/packages/ui-footer/package.json +++ b/packages/ui-footer/package.json @@ -14,9 +14,7 @@ "type": "module", "main": "dist/index.js", "types": "dist/index.d.ts", - "files": [ - "dist" - ], + "files": ["dist"], "scripts": { "build:check": "tsc", "build:js": "vite build", @@ -39,11 +37,8 @@ }, "dependencies": { "@tailwindcss/typography": "0.5.15", - "@versini/ui-spacing": "workspace:../ui-spacing", "@versini/ui-types": "workspace:../ui-types", "tailwindcss": "3.4.17" }, - "sideEffects": [ - "**/*.css" - ] + "sideEffects": ["**/*.css"] } diff --git a/packages/ui-footer/src/components/Footer/Footer.tsx b/packages/ui-footer/src/components/Footer/Footer.tsx index 91afd87f..18a98436 100644 --- a/packages/ui-footer/src/components/Footer/Footer.tsx +++ b/packages/ui-footer/src/components/Footer/Footer.tsx @@ -1,4 +1,3 @@ -import { getSpacing } from "@versini/ui-spacing"; import clsx from "clsx"; import { FOOTER_CLASSNAME } from "../../common/constants"; @@ -10,19 +9,23 @@ export const Footer = ({ row1, row2, noMargins = false, - spacing, + raw = false, }: FooterProps) => { - const footerClass = clsx(FOOTER_CLASSNAME, className, getSpacing(spacing), { - "text-copy-dark": !raw && mode === "dark", - "text-copy-lighter": !raw && mode === "light", - "text-copy-dark dark:text-copy-lighter": !raw && mode === "system", - "text-copy-lighter dark:text-copy-dark": !raw && mode === "alt-system", + const footerClass = clsx( + FOOTER_CLASSNAME, + { + "text-copy-dark": !raw && mode === "dark", + "text-copy-lighter": !raw && mode === "light", + "text-copy-dark dark:text-copy-lighter": !raw && mode === "system", + "text-copy-lighter dark:text-copy-dark": !raw && mode === "alt-system", - "mb-[100px]": !noMargins && !raw, - "mt-0 flex w-full flex-col p-2 text-center text-xs sm:mt-3 md:mx-auto md:max-w-4xl": - !raw, - }); + "mb-[100px]": !noMargins && !raw, + "mt-0 flex w-full flex-col p-2 text-center text-xs sm:mt-3 md:mx-auto md:max-w-4xl": + !raw, + }, + className, + ); return (