@appolabs/ui 0.1.26 → 0.1.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,7 +10,7 @@ function CookieBanner({
10
10
  className
11
11
  }) {
12
12
  if (!visible) return null;
13
- return /* @__PURE__ */ jsx("div", { className: cn("fixed bottom-0 left-0 right-0 z-50 sm:py-4 sm:px-4 md:px-6 lg:px-8", className), children: /* @__PURE__ */ jsx("div", { className: "sm:max-w-7xl sm:mx-auto", children: /* @__PURE__ */ jsxs("div", { className: "border border-white/10 bg-zinc-800/95 backdrop-blur-md flex flex-col gap-4 px-4 py-3 sm:rounded-xl sm:flex-row sm:items-center sm:justify-between", children: [
13
+ return /* @__PURE__ */ jsx("div", { className: cn("fixed bottom-0 left-0 right-0 z-50 sm:py-4 sm:px-4 md:px-6 lg:px-8", className), children: /* @__PURE__ */ jsx("div", { className: "sm:max-w-7xl sm:mx-auto", children: /* @__PURE__ */ jsxs("div", { className: "border border-white/10 bg-white/5 backdrop-blur-md flex flex-col gap-4 px-4 py-3 sm:rounded-xl sm:flex-row sm:items-center sm:justify-between", children: [
14
14
  /* @__PURE__ */ jsxs("p", { className: "text-sm text-white/60", children: [
15
15
  "Utilizziamo i cookie per migliorare la tua esperienza.",
16
16
  " ",
@@ -58,5 +58,5 @@ function CookieBanner({
58
58
  }
59
59
 
60
60
  export { CookieBanner };
61
- //# sourceMappingURL=chunk-ZFJRBTPO.js.map
62
- //# sourceMappingURL=chunk-ZFJRBTPO.js.map
61
+ //# sourceMappingURL=chunk-JIIMGSA2.js.map
62
+ //# sourceMappingURL=chunk-JIIMGSA2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/cookie-banner.tsx"],"names":[],"mappings":";;;AAoBO,SAAS,YAAA,CAAa;AAAA,EACzB,OAAA;AAAA,EACA,eAAA;AAAA,EACA,QAAA;AAAA,EACA,QAAA;AAAA,EACA,QAAA;AAAA,EACA;AACJ,CAAA,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AA;AAAA;AAED,KAAA,EACJ;AAAA,GAAA,EACJ,GACJ,CAAA,EACJ,CAAA;AAER","file":"chunk-JIIMGSA2.js","sourcesContent":["import { cn } from '../lib/utils';\n\nexport interface CookieBannerProps {\n visible: boolean;\n cookiePolicyUrl: string;\n onAccept: () => void;\n onReject: () => void;\n onManage?: () => void;\n className?: string;\n}\n\n/**\n * Brand-fixed cookie consent banner. Reads as a sibling system bar to the\n * site/app topbar: translucent `bg-white/5` + `backdrop-blur-md` over the\n * page's own background. Card design is the canonical Appo design-system\n * \"glass card\" — match this treatment in any new card-like surfaces.\n *\n * If you need a different visual for a future product, do not add a variant\n * prop to this component — duplicate it under a different name.\n */\nexport function CookieBanner({\n visible,\n cookiePolicyUrl,\n onAccept,\n onReject,\n onManage,\n className,\n}: CookieBannerProps) {\n if (!visible) return null;\n\n return (\n <div className={cn('fixed bottom-0 left-0 right-0 z-50 sm:py-4 sm:px-4 md:px-6 lg:px-8', className)}>\n <div className=\"sm:max-w-7xl sm:mx-auto\">\n <div className=\"border border-white/10 bg-white/5 backdrop-blur-md flex flex-col gap-4 px-4 py-3 sm:rounded-xl sm:flex-row sm:items-center sm:justify-between\">\n <p className=\"text-sm text-white/60\">\n Utilizziamo i cookie per migliorare la tua esperienza.{' '}\n <a\n href={cookiePolicyUrl}\n className=\"text-white underline underline-offset-2 hover:no-underline\"\n target=\"_blank\"\n rel=\"noreferrer\"\n >\n Cookie policy\n </a>\n </p>\n <div className=\"flex shrink-0 items-center gap-2 self-end sm:self-auto\">\n {onManage && (\n <button\n type=\"button\"\n onClick={onManage}\n className=\"h-9 cursor-pointer rounded-md px-3 text-sm text-white/60 transition-colors hover:underline\"\n >\n Gestisci\n </button>\n )}\n <button\n type=\"button\"\n onClick={onReject}\n className=\"h-9 cursor-pointer rounded-xl border border-white/20 px-3 text-sm text-white/70 transition-colors hover:bg-white/10\"\n >\n Rifiuta\n </button>\n <button\n type=\"button\"\n onClick={onAccept}\n className=\"h-9 cursor-pointer rounded-xl bg-gradient-to-r from-[#8a9eff] to-[#5e77cc] px-3 text-sm font-medium text-white transition-all hover:from-[#7a8eef] hover:to-[#4e67bc]\"\n >\n Accetta tutto\n </button>\n </div>\n </div>\n </div>\n </div>\n );\n}\n"]}
@@ -12,7 +12,7 @@ function CookieBanner({
12
12
  className
13
13
  }) {
14
14
  if (!visible) return null;
15
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: chunkK3WGYDSA_cjs.cn("fixed bottom-0 left-0 right-0 z-50 sm:py-4 sm:px-4 md:px-6 lg:px-8", className), children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "sm:max-w-7xl sm:mx-auto", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "border border-white/10 bg-zinc-800/95 backdrop-blur-md flex flex-col gap-4 px-4 py-3 sm:rounded-xl sm:flex-row sm:items-center sm:justify-between", children: [
15
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: chunkK3WGYDSA_cjs.cn("fixed bottom-0 left-0 right-0 z-50 sm:py-4 sm:px-4 md:px-6 lg:px-8", className), children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "sm:max-w-7xl sm:mx-auto", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "border border-white/10 bg-white/5 backdrop-blur-md flex flex-col gap-4 px-4 py-3 sm:rounded-xl sm:flex-row sm:items-center sm:justify-between", children: [
16
16
  /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-sm text-white/60", children: [
17
17
  "Utilizziamo i cookie per migliorare la tua esperienza.",
18
18
  " ",
@@ -60,5 +60,5 @@ function CookieBanner({
60
60
  }
61
61
 
62
62
  exports.CookieBanner = CookieBanner;
63
- //# sourceMappingURL=chunk-2VFDVPDJ.cjs.map
64
- //# sourceMappingURL=chunk-2VFDVPDJ.cjs.map
63
+ //# sourceMappingURL=chunk-LLT7263D.cjs.map
64
+ //# sourceMappingURL=chunk-LLT7263D.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components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b,QAAA,EAAA;AAAA;AAAA,OAED;AAAA,sBACAA,cAAA;AAAA,QAAC,QAAA;AAAA,QAAA;AAAA,UACG,IAAA,EAAK,QAAA;AAAA,UACL,OAAA,EAAS,QAAA;AAAA,UACT,SAAA,EAAU,uKAAA;AAAA,UACb,QAAA,EAAA;AAAA;AAAA;AAED,KAAA,EACJ;AAAA,GAAA,EACJ,GACJ,CAAA,EACJ,CAAA;AAER","file":"chunk-LLT7263D.cjs","sourcesContent":["import { cn } from '../lib/utils';\n\nexport interface CookieBannerProps {\n visible: boolean;\n cookiePolicyUrl: string;\n onAccept: () => void;\n onReject: () => void;\n onManage?: () => void;\n className?: string;\n}\n\n/**\n * Brand-fixed cookie consent banner. Reads as a sibling system bar to the\n * site/app topbar: translucent `bg-white/5` + `backdrop-blur-md` over the\n * page's own background. Card design is the canonical Appo design-system\n * \"glass card\" — match this treatment in any new card-like surfaces.\n *\n * If you need a different visual for a future product, do not add a variant\n * prop to this component — duplicate it under a different name.\n */\nexport function CookieBanner({\n visible,\n cookiePolicyUrl,\n onAccept,\n onReject,\n onManage,\n className,\n}: CookieBannerProps) {\n if (!visible) return null;\n\n return (\n <div className={cn('fixed bottom-0 left-0 right-0 z-50 sm:py-4 sm:px-4 md:px-6 lg:px-8', className)}>\n <div className=\"sm:max-w-7xl sm:mx-auto\">\n <div className=\"border border-white/10 bg-white/5 backdrop-blur-md flex flex-col gap-4 px-4 py-3 sm:rounded-xl sm:flex-row sm:items-center sm:justify-between\">\n <p className=\"text-sm text-white/60\">\n Utilizziamo i cookie per migliorare la tua esperienza.{' '}\n <a\n href={cookiePolicyUrl}\n className=\"text-white underline underline-offset-2 hover:no-underline\"\n target=\"_blank\"\n rel=\"noreferrer\"\n >\n Cookie policy\n </a>\n </p>\n <div className=\"flex shrink-0 items-center gap-2 self-end sm:self-auto\">\n {onManage && (\n <button\n type=\"button\"\n onClick={onManage}\n className=\"h-9 cursor-pointer rounded-md px-3 text-sm text-white/60 transition-colors hover:underline\"\n >\n Gestisci\n </button>\n )}\n <button\n type=\"button\"\n onClick={onReject}\n className=\"h-9 cursor-pointer rounded-xl border border-white/20 px-3 text-sm text-white/70 transition-colors hover:bg-white/10\"\n >\n Rifiuta\n </button>\n <button\n type=\"button\"\n onClick={onAccept}\n className=\"h-9 cursor-pointer rounded-xl bg-gradient-to-r from-[#8a9eff] to-[#5e77cc] px-3 text-sm font-medium text-white transition-all hover:from-[#7a8eef] hover:to-[#4e67bc]\"\n >\n Accetta tutto\n </button>\n </div>\n </div>\n </div>\n </div>\n );\n}\n"]}
@@ -1,13 +1,13 @@
1
1
  'use strict';
2
2
 
3
- var chunk2VFDVPDJ_cjs = require('./chunk-2VFDVPDJ.cjs');
3
+ var chunkLLT7263D_cjs = require('./chunk-LLT7263D.cjs');
4
4
  require('./chunk-K3WGYDSA.cjs');
5
5
 
6
6
 
7
7
 
8
8
  Object.defineProperty(exports, "CookieBanner", {
9
9
  enumerable: true,
10
- get: function () { return chunk2VFDVPDJ_cjs.CookieBanner; }
10
+ get: function () { return chunkLLT7263D_cjs.CookieBanner; }
11
11
  });
12
12
  //# sourceMappingURL=cookie-banner.cjs.map
13
13
  //# sourceMappingURL=cookie-banner.cjs.map
@@ -9,10 +9,10 @@ interface CookieBannerProps {
9
9
  className?: string;
10
10
  }
11
11
  /**
12
- * Brand-fixed cookie consent banner. Hardcoded zinc-800/95 card + gradient
13
- * accept button — intentionally NOT theme-aware. Cookie banners are a
14
- * cross-product brand element; consistency across apps-web-app and the
15
- * marketing website matters more than per-app theming.
12
+ * Brand-fixed cookie consent banner. Reads as a sibling system bar to the
13
+ * site/app topbar: translucent `bg-white/5` + `backdrop-blur-md` over the
14
+ * page's own background. Card design is the canonical Appo design-system
15
+ * "glass card" — match this treatment in any new card-like surfaces.
16
16
  *
17
17
  * If you need a different visual for a future product, do not add a variant
18
18
  * prop to this component — duplicate it under a different name.
@@ -9,10 +9,10 @@ interface CookieBannerProps {
9
9
  className?: string;
10
10
  }
11
11
  /**
12
- * Brand-fixed cookie consent banner. Hardcoded zinc-800/95 card + gradient
13
- * accept button — intentionally NOT theme-aware. Cookie banners are a
14
- * cross-product brand element; consistency across apps-web-app and the
15
- * marketing website matters more than per-app theming.
12
+ * Brand-fixed cookie consent banner. Reads as a sibling system bar to the
13
+ * site/app topbar: translucent `bg-white/5` + `backdrop-blur-md` over the
14
+ * page's own background. Card design is the canonical Appo design-system
15
+ * "glass card" — match this treatment in any new card-like surfaces.
16
16
  *
17
17
  * If you need a different visual for a future product, do not add a variant
18
18
  * prop to this component — duplicate it under a different name.
@@ -1,4 +1,4 @@
1
- export { CookieBanner } from './chunk-ZFJRBTPO.js';
1
+ export { CookieBanner } from './chunk-JIIMGSA2.js';
2
2
  import './chunk-C6QNNG2X.js';
3
3
  //# sourceMappingURL=cookie-banner.js.map
4
4
  //# sourceMappingURL=cookie-banner.js.map
package/dist/index.cjs CHANGED
@@ -36,7 +36,7 @@ var chunk3WUKE7HN_cjs = require('./chunk-3WUKE7HN.cjs');
36
36
  var chunkCAHV7CMU_cjs = require('./chunk-CAHV7CMU.cjs');
37
37
  var chunkJQM7U4HY_cjs = require('./chunk-JQM7U4HY.cjs');
38
38
  var chunkP5VBESJ3_cjs = require('./chunk-P5VBESJ3.cjs');
39
- var chunk2VFDVPDJ_cjs = require('./chunk-2VFDVPDJ.cjs');
39
+ var chunkLLT7263D_cjs = require('./chunk-LLT7263D.cjs');
40
40
  var chunk3CWEXWUR_cjs = require('./chunk-3CWEXWUR.cjs');
41
41
  var chunk3SQHEJFP_cjs = require('./chunk-3SQHEJFP.cjs');
42
42
  var chunkAPCEE7AC_cjs = require('./chunk-APCEE7AC.cjs');
@@ -755,7 +755,7 @@ Object.defineProperty(exports, "ContextMenuTrigger", {
755
755
  });
756
756
  Object.defineProperty(exports, "CookieBanner", {
757
757
  enumerable: true,
758
- get: function () { return chunk2VFDVPDJ_cjs.CookieBanner; }
758
+ get: function () { return chunkLLT7263D_cjs.CookieBanner; }
759
759
  });
760
760
  Object.defineProperty(exports, "Dialog", {
761
761
  enumerable: true,
package/dist/index.js CHANGED
@@ -34,7 +34,7 @@ export { Input, inputVariants } from './chunk-53CK5CTK.js';
34
34
  export { Collapsible, CollapsibleContent, CollapsibleTrigger } from './chunk-ONTWZWVJ.js';
35
35
  export { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut } from './chunk-ZVMXDLJ3.js';
36
36
  export { ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger } from './chunk-XUSP522X.js';
37
- export { CookieBanner } from './chunk-ZFJRBTPO.js';
37
+ export { CookieBanner } from './chunk-JIIMGSA2.js';
38
38
  export { Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogSteps, DialogTitle, DialogTrigger } from './chunk-652R2JBT.js';
39
39
  export { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger } from './chunk-VHVVKUFM.js';
40
40
  export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger } from './chunk-FOTJ6OCK.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appolabs/ui",
3
- "version": "0.1.26",
3
+ "version": "0.1.27",
4
4
  "description": "React UI component library for Appo Labs",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -1 +0,0 @@
1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AAU,qHAAA;AAAA,UACb,QAAA,EAAA;AAAA;AAAA,OAED;AAAA,sBACAA,cAAA;AAAA,QAAC,QAAA;AAAA,QAAA;AAAA,UACG,IAAA,EAAK,QAAA;AAAA,UACL,OAAA,EAAS,QAAA;AAAA,UACT,SAAA,EAAU,uKAAA;AAAA,UACb,QAAA,EAAA;AAAA;AAAA;AAED,KAAA,EACJ;AAAA,GAAA,EACJ,GACJ,CAAA,EACJ,CAAA;AAER","file":"chunk-2VFDVPDJ.cjs","sourcesContent":["import { cn } from '../lib/utils';\n\nexport interface CookieBannerProps {\n visible: boolean;\n cookiePolicyUrl: string;\n onAccept: () => void;\n onReject: () => void;\n onManage?: () => void;\n className?: string;\n}\n\n/**\n * Brand-fixed cookie consent banner. Hardcoded zinc-800/95 card + gradient\n * accept button — intentionally NOT theme-aware. Cookie banners are a\n * cross-product brand element; consistency across apps-web-app and the\n * marketing website matters more than per-app theming.\n *\n * If you need a different visual for a future product, do not add a variant\n * prop to this component — duplicate it under a different name.\n */\nexport function CookieBanner({\n visible,\n cookiePolicyUrl,\n onAccept,\n onReject,\n onManage,\n className,\n}: CookieBannerProps) {\n if (!visible) return null;\n\n return (\n <div className={cn('fixed bottom-0 left-0 right-0 z-50 sm:py-4 sm:px-4 md:px-6 lg:px-8', className)}>\n <div className=\"sm:max-w-7xl sm:mx-auto\">\n <div className=\"border border-white/10 bg-zinc-800/95 backdrop-blur-md flex flex-col gap-4 px-4 py-3 sm:rounded-xl sm:flex-row sm:items-center sm:justify-between\">\n <p className=\"text-sm text-white/60\">\n Utilizziamo i cookie per migliorare la tua esperienza.{' '}\n <a\n href={cookiePolicyUrl}\n className=\"text-white underline underline-offset-2 hover:no-underline\"\n target=\"_blank\"\n rel=\"noreferrer\"\n >\n Cookie policy\n </a>\n </p>\n <div className=\"flex shrink-0 items-center gap-2 self-end sm:self-auto\">\n {onManage && (\n <button\n type=\"button\"\n onClick={onManage}\n className=\"h-9 cursor-pointer rounded-md px-3 text-sm text-white/60 transition-colors hover:underline\"\n >\n Gestisci\n </button>\n )}\n <button\n type=\"button\"\n onClick={onReject}\n className=\"h-9 cursor-pointer rounded-xl border border-white/20 px-3 text-sm text-white/70 transition-colors hover:bg-white/10\"\n >\n Rifiuta\n </button>\n <button\n type=\"button\"\n onClick={onAccept}\n className=\"h-9 cursor-pointer rounded-xl bg-gradient-to-r from-[#8a9eff] to-[#5e77cc] px-3 text-sm font-medium text-white transition-all hover:from-[#7a8eef] hover:to-[#4e67bc]\"\n >\n Accetta tutto\n </button>\n </div>\n </div>\n </div>\n </div>\n );\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/components/cookie-banner.tsx"],"names":[],"mappings":";;;AAoBO,SAAS,YAAA,CAAa;AAAA,EACzB,OAAA;AAAA,EACA,eAAA;AAAA,EACA,QAAA;AAAA,EACA,QAAA;AAAA,EACA,QAAA;AAAA,EACA;AACJ,CAAA,EAAsB;AAClB,EAAA,IAAI,CAAC,SAAS,OAAO,IAAA;AAErB,EAAA,uBACI,GAAA,CAAC,KAAA,EAAA,EAAI,SAAA,EAAW,EAAA,CAAG,sEAAsE,SAAS,CAAA,EAC9F,QAAA,kBAAA,GAAA,CAAC,KAAA,EAAA,EAAI,SAAA,EAAU,yBAAA,EACX,QAAA,kBAAA,IAAA,CAAC,KAAA,EAAA,EAAI,WAAU,mJAAA,EACX,QAAA,EAAA;AAAA,oBAAA,IAAA,CAAC,GAAA,EAAA,EAAE,WAAU,uBAAA,EAAwB,QAAA,EAAA;AAAA,MAAA,wDAAA;AAAA,MACsB,GAAA;AAAA,sBACvD,GAAA;AAAA,QAAC,GAAA;AAAA,QAAA;AAAA,UACG,IAAA,EAAM,eAAA;AAAA,UACN,SAAA,EAAU,4DAAA;AAAA,UACV,MAAA,EAAO,QAAA;AAAA,UACP,GAAA,EAAI,YAAA;AAAA,UACP,QAAA,EAAA;AAAA;AAAA;AAED,KAAA,EACJ,CAAA;AAAA,oBACA,IAAA,CAAC,KAAA,EAAA,EAAI,SAAA,EAAU,wDAAA,EACV,QAAA,EAAA;AAAA,MAAA,QAAA,oBACG,GAAA;AAAA,QAAC,QAAA;AAAA,QAAA;AAAA,UACG,IAAA,EAAK,QAAA;AAAA,UACL,OAAA,EAAS,QAAA;AAAA,UACT,SAAA,EAAU,4FAAA;AAAA,UACb,QAAA,EAAA;AAAA;AAAA,OAED;AAAA,sBAEJ,GAAA;AAAA,QAAC,QAAA;AAAA,QAAA;AAAA,UACG,IAAA,EAAK,QAAA;AAAA,UACL,OAAA,EAAS,QAAA;AAAA,UACT,SAAA,EAAU,qHAAA;AAAA,UACb,QAAA,EAAA;AAAA;AAAA,OAED;AAAA,sBACA,GAAA;AAAA,QAAC,QAAA;AAAA,QAAA;AAAA,UACG,IAAA,EAAK,QAAA;AAAA,UACL,OAAA,EAAS,QAAA;AAAA,UACT,SAAA,EAAU,uKAAA;AAAA,UACb,QAAA,EAAA;AAAA;AAAA;AAED,KAAA,EACJ;AAAA,GAAA,EACJ,GACJ,CAAA,EACJ,CAAA;AAER","file":"chunk-ZFJRBTPO.js","sourcesContent":["import { cn } from '../lib/utils';\n\nexport interface CookieBannerProps {\n visible: boolean;\n cookiePolicyUrl: string;\n onAccept: () => void;\n onReject: () => void;\n onManage?: () => void;\n className?: string;\n}\n\n/**\n * Brand-fixed cookie consent banner. Hardcoded zinc-800/95 card + gradient\n * accept button — intentionally NOT theme-aware. Cookie banners are a\n * cross-product brand element; consistency across apps-web-app and the\n * marketing website matters more than per-app theming.\n *\n * If you need a different visual for a future product, do not add a variant\n * prop to this component — duplicate it under a different name.\n */\nexport function CookieBanner({\n visible,\n cookiePolicyUrl,\n onAccept,\n onReject,\n onManage,\n className,\n}: CookieBannerProps) {\n if (!visible) return null;\n\n return (\n <div className={cn('fixed bottom-0 left-0 right-0 z-50 sm:py-4 sm:px-4 md:px-6 lg:px-8', className)}>\n <div className=\"sm:max-w-7xl sm:mx-auto\">\n <div className=\"border border-white/10 bg-zinc-800/95 backdrop-blur-md flex flex-col gap-4 px-4 py-3 sm:rounded-xl sm:flex-row sm:items-center sm:justify-between\">\n <p className=\"text-sm text-white/60\">\n Utilizziamo i cookie per migliorare la tua esperienza.{' '}\n <a\n href={cookiePolicyUrl}\n className=\"text-white underline underline-offset-2 hover:no-underline\"\n target=\"_blank\"\n rel=\"noreferrer\"\n >\n Cookie policy\n </a>\n </p>\n <div className=\"flex shrink-0 items-center gap-2 self-end sm:self-auto\">\n {onManage && (\n <button\n type=\"button\"\n onClick={onManage}\n className=\"h-9 cursor-pointer rounded-md px-3 text-sm text-white/60 transition-colors hover:underline\"\n >\n Gestisci\n </button>\n )}\n <button\n type=\"button\"\n onClick={onReject}\n className=\"h-9 cursor-pointer rounded-xl border border-white/20 px-3 text-sm text-white/70 transition-colors hover:bg-white/10\"\n >\n Rifiuta\n </button>\n <button\n type=\"button\"\n onClick={onAccept}\n className=\"h-9 cursor-pointer rounded-xl bg-gradient-to-r from-[#8a9eff] to-[#5e77cc] px-3 text-sm font-medium text-white transition-all hover:from-[#7a8eef] hover:to-[#4e67bc]\"\n >\n Accetta tutto\n </button>\n </div>\n </div>\n </div>\n </div>\n );\n}\n"]}