frst-components 0.27.1 → 0.27.3
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.
package/dist/index.js
CHANGED
|
@@ -8997,7 +8997,7 @@ const ResultFilterTabs = ({ results, onTabChange, onDelete, onEdit, tabLimit })
|
|
|
8997
8997
|
}
|
|
8998
8998
|
};
|
|
8999
8999
|
const tabs = React.useMemo(() => {
|
|
9000
|
-
return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: filteredResults?.map((result, index) => (jsxRuntime.jsxs(Tab, { isActive: activeTab === index, onClick: () => handleTabClick(index, result?.version), children: [result.name, " ", result
|
|
9000
|
+
return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: filteredResults?.map((result, index) => (jsxRuntime.jsxs(Tab, { isActive: activeTab === index, onClick: () => handleTabClick(index, result?.version), children: [result.name, " ", result.name === 'Resultado' ? result?.version : result?.version - 1] }, index))) }));
|
|
9001
9001
|
}, [filteredResults, activeTab]);
|
|
9002
9002
|
const handleEdit = () => {
|
|
9003
9003
|
if (!isEditing)
|
|
@@ -9059,7 +9059,11 @@ const ResultFilterTabs = ({ results, onTabChange, onDelete, onEdit, tabLimit })
|
|
|
9059
9059
|
color: '#C00F00',
|
|
9060
9060
|
startIcon: jsxRuntime.jsx(TrashHipoteses, {})
|
|
9061
9061
|
}
|
|
9062
|
-
], isContainerOptions: true, closeAfterClick: true }) })) })] }), jsxRuntime.jsx(DropdownResult, { anchor: anchor, isOpen: isDropdownOpen, onClose: closeDropdown, ResultList: hiddenTabs, maxTabs: tabLimit, onClickResultList: (
|
|
9062
|
+
], isContainerOptions: true, closeAfterClick: true }) })) })] }), jsxRuntime.jsx(DropdownResult, { anchor: anchor, isOpen: isDropdownOpen, onClose: closeDropdown, ResultList: hiddenTabs, maxTabs: tabLimit, onClickResultList: (item) => {
|
|
9063
|
+
const selectedVersion = item.version;
|
|
9064
|
+
const selectedIndex = results.findIndex((result) => result.version === selectedVersion);
|
|
9065
|
+
changeFilteredResults(selectedIndex);
|
|
9066
|
+
} })] }));
|
|
9063
9067
|
};
|
|
9064
9068
|
|
|
9065
9069
|
const ModalContainer = styled__default["default"].div `
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/DS/resultFilterTabs/index.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,qBAAqB,EAAW,MAAM,oBAAoB,CAAA;AAInE,eAAO,MAAM,gBAAgB,yDAA0D,qBAAqB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/DS/resultFilterTabs/index.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,qBAAqB,EAAW,MAAM,oBAAoB,CAAA;AAInE,eAAO,MAAM,gBAAgB,yDAA0D,qBAAqB,4CA0O3G,CAAA"}
|