Files
klz-cables.com/.pnpm-store/v10/files/3a/1595b321c3bbca81d8527b43a352a169ea4d374b1f4cd8f5b6c0ec49caf9396b99143c104455e2b78eb4596a8f1e885747d5c47c4c8a2c82d673f0a30587c1
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

34 lines
806 B
Plaintext

'use client';
import { jsx as _jsx } from "react/jsx-runtime";
import React from 'react';
import { XIcon } from '../../../icons/X/index.js';
import './index.scss';
const baseClass = 'clear-indicator';
export const ClearIndicator = props => {
const {
clearValue,
innerProps: {
ref,
...restInnerProps
}
} = props;
return /*#__PURE__*/_jsx("div", {
className: baseClass,
// TODO Fix this - Broke with React 19 types
ref: typeof ref === 'string' ? null : ref,
...restInnerProps,
onKeyDown: e => {
if (e.key === 'Enter') {
clearValue();
e.stopPropagation();
}
},
role: "button",
tabIndex: 0,
children: /*#__PURE__*/_jsx(XIcon, {
className: `${baseClass}__icon`
})
});
};
//# sourceMappingURL=index.js.map