@agilant/toga-blox 1.0.122 → 1.0.124
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.
|
@@ -99,7 +99,10 @@ const SearchDropdownInput = ({ options = [], selectedValue = [], onChange, place
|
|
|
99
99
|
// Provide a custom item renderer so we can handle the "Footer" row
|
|
100
100
|
const itemRenderer = ({ option, checked, disabled, onClick }) => {
|
|
101
101
|
if (option.value === "__footer__") {
|
|
102
|
-
return (_jsxs("div", { className: "\n\t\t\t\t\t\tfooter\n\t\t\t\t\t\tpx-4 pt-2\n\t\t\t\t\t\tflex justify-between items-center\n\t\t\t\t\t\ttext-gray-500\n\t\t\t\t\t\tborder-t border-gray-300\n\t\t\t\t\t\tcursor-default\n\t\t\t\t\t", children: [filteredCount === 0 ? (_jsx("div", { onClick:
|
|
102
|
+
return (_jsxs("div", { className: "\n\t\t\t\t\t\tfooter\n\t\t\t\t\t\tpx-4 pt-2\n\t\t\t\t\t\tflex justify-between items-center\n\t\t\t\t\t\ttext-gray-500\n\t\t\t\t\t\tborder-t border-gray-300\n\t\t\t\t\t\tcursor-default\n\t\t\t\t\t", children: [filteredCount === 0 ? (_jsx("div", { onClick: (e) => {
|
|
103
|
+
e.stopPropagation();
|
|
104
|
+
handleClear();
|
|
105
|
+
}, className: `${textHighlight} ${clearTextHoverColor} cursor-pointer`, children: clearText })) : (_jsxs("button", { children: [filteredCount, " Results"] })), _jsx("button", { type: "button", className: `${bgColor} ${hoverBgColor} ${fontFamily} text-white px-3 py-1 rounded-full `, onClick: (e) => {
|
|
103
106
|
e.stopPropagation();
|
|
104
107
|
handleFooterFilter();
|
|
105
108
|
}, children: buttonText })] }));
|