Files
klz-cables.com/.pnpm-store/v10/files/05/84b1fbef06915cd4037736eceb10605bb4a80630ae4e73334d2c52bb4abe9d5201a73a8920cac251ae223d0bfab8f891cced9bf986a01c79d63e81bd2617d9
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

67 lines
1.7 KiB
Plaintext

'use client';
import { jsx as _jsx } from "react/jsx-runtime";
import * as React from 'react';
import { Link } from '../../Link/index.js';
import './index.scss';
const baseClass = 'popup-button-list';
export { PopupListDivider as Divider } from '../PopupDivider/index.js';
export { PopupListGroupLabel as GroupLabel } from '../PopupGroupLabel/index.js';
export const ButtonGroup = ({
buttonSize = 'default',
children,
className,
textAlign = 'left'
}) => {
const classes = [baseClass, className, `${baseClass}__text-align--${textAlign}`, `${baseClass}__button-size--${buttonSize}`].filter(Boolean).join(' ');
return /*#__PURE__*/_jsx("div", {
className: classes,
children: children
});
};
export const Button = ({
id,
active,
children,
className,
disabled,
href,
onClick
}) => {
const classes = [`${baseClass}__button`, disabled && `${baseClass}__disabled`, active && `${baseClass}__button--selected`, className].filter(Boolean).join(' ');
if (!disabled) {
if (href) {
return /*#__PURE__*/_jsx(Link, {
className: classes,
href: href,
id: id,
onClick: e => {
if (onClick) {
onClick(e);
}
},
prefetch: false,
children: children
});
}
if (onClick) {
return /*#__PURE__*/_jsx("button", {
className: classes,
id: id,
onClick: e => {
if (onClick) {
onClick(e);
}
},
type: "button",
children: children
});
}
}
return /*#__PURE__*/_jsx("div", {
className: classes,
id: id,
children: children
});
};
//# sourceMappingURL=index.js.map