Files
klz-cables.com/.pnpm-store/v10/files/45/b2f915491a6444bebbd685c4a084601dbefb7f1a15760543e86da960f238b8952e6125efcb0d31eedb3108a566085edf8fa43ce51e0e725eb1a0fa1d6ccc0d
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

1 line
2.4 KiB
Plaintext

{"version":3,"file":"index.js","names":["React","Button","baseClass","Card","props","id","actions","buttonAriaLabel","href","onClick","title","titleAs","classes","filter","Boolean","join","Tag","_jsxs","className","_jsx","buttonStyle","el","to"],"sources":["../../../src/elements/Card/index.tsx"],"sourcesContent":["'use client'\n\nimport React from 'react'\n\nimport { Button } from '../Button/index.js'\nimport './index.scss'\n\nexport type Props = {\n actions?: React.ReactNode\n buttonAriaLabel?: string\n href?: string\n id?: string\n /**\n * @deprecated\n * This prop is deprecated and will be removed in the next major version.\n * Components now import their own `Link` directly from `next/link`.\n */\n Link?: React.ElementType\n onClick?: () => void\n title: string\n titleAs?: React.ElementType\n}\n\nconst baseClass = 'card'\n\nexport const Card: React.FC<Props> = (props) => {\n const { id, actions, buttonAriaLabel, href, onClick, title, titleAs } = props\n\n const classes = [baseClass, id, (onClick || href) && `${baseClass}--has-onclick`]\n .filter(Boolean)\n .join(' ')\n\n const Tag = titleAs ?? 'div'\n\n return (\n <div className={classes} id={id}>\n <Tag className={`${baseClass}__title`}>{title}</Tag>\n {actions && <div className={`${baseClass}__actions`}>{actions}</div>}\n {(onClick || href) && (\n <Button\n aria-label={buttonAriaLabel}\n buttonStyle=\"none\"\n className={`${baseClass}__click`}\n el=\"link\"\n onClick={onClick}\n to={href}\n />\n )}\n </div>\n )\n}\n"],"mappings":"AAAA;;;AAEA,OAAOA,KAAA,MAAW;AAElB,SAASC,MAAM,QAAQ;AACvB,OAAO;AAkBP,MAAMC,SAAA,GAAY;AAElB,OAAO,MAAMC,IAAA,GAAyBC,KAAA;EACpC,MAAM;IAAEC,EAAE;IAAEC,OAAO;IAAEC,eAAe;IAAEC,IAAI;IAAEC,OAAO;IAAEC,KAAK;IAAEC;EAAO,CAAE,GAAGP,KAAA;EAExE,MAAMQ,OAAA,GAAU,CAACV,SAAA,EAAWG,EAAA,EAAK,CAAAI,OAAA,IAAWD,IAAG,KAAM,GAAGN,SAAA,eAAwB,CAAC,CAC9EW,MAAM,CAACC,OAAA,EACPC,IAAI,CAAC;EAER,MAAMC,GAAA,GAAML,OAAA,IAAW;EAEvB,oBACEM,KAAA,CAAC;IAAIC,SAAA,EAAWN,OAAA;IAASP,EAAA,EAAIA,EAAA;4BAC3Bc,IAAA,CAACH,GAAA;MAAIE,SAAA,EAAW,GAAGhB,SAAA,SAAkB;gBAAGQ;QACvCJ,OAAA,iBAAWa,IAAA,CAAC;MAAID,SAAA,EAAW,GAAGhB,SAAA,WAAoB;gBAAGI;QACpD,CAAAG,OAAA,IAAWD,IAAG,kBACdW,IAAA,CAAClB,MAAA;MACC,cAAYM,eAAA;MACZa,WAAA,EAAY;MACZF,SAAA,EAAW,GAAGhB,SAAA,SAAkB;MAChCmB,EAAA,EAAG;MACHZ,OAAA,EAASA,OAAA;MACTa,EAAA,EAAId;;;AAKd","ignoreList":[]}