Files
klz-cables.com/.pnpm-store/v10/files/8e/d955a6b615ea4d03f1829a0503e8ea517d6b54e877ab0a204100447721e80965ba72873811cf297e923ba735b2a93e0185b8c1cec0acb87f63abf7edc31aba
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

42 lines
1.2 KiB
Plaintext

import { jsx as _jsx } from "react/jsx-runtime";
import { CheckboxInput } from '../../fields/Checkbox/Input.js';
import { Popup } from '../Popup/index.js';
import './index.scss';
const baseClass = 'checkbox-popup';
export function CheckboxPopup({
Button,
className,
onChange,
options,
selectedValues,
...popupProps
}) {
return /*#__PURE__*/_jsx(Popup, {
button: Button,
className: [baseClass, className].filter(Boolean).join(' '),
horizontalAlign: "right",
render: ({
close
}) => /*#__PURE__*/_jsx("div", {
className: `${baseClass}__options`,
children: options.map(({
label,
value
}) => /*#__PURE__*/_jsx(CheckboxInput, {
checked: selectedValues?.includes(value),
label: label,
onToggle: () => {
const newSelectedValues = selectedValues?.includes(value) ? selectedValues.filter(v => v !== value) : [...selectedValues, value];
onChange({
close,
selectedValues: newSelectedValues
});
}
}, value))
}),
showScrollbar: true,
verticalAlign: "bottom",
...popupProps
});
}
//# sourceMappingURL=index.js.map