frst-components 0.23.57 → 0.23.59
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
|
@@ -7490,7 +7490,7 @@ function Dropdown$1({ isOpen, anchor, onClose, impedimentoList, onClickImpedimen
|
|
|
7490
7490
|
}, children: jsxRuntime.jsx(ContainerDropdown, { children: render() }) }));
|
|
7491
7491
|
}
|
|
7492
7492
|
|
|
7493
|
-
function ImpedimentosTab({ maxTabs, tabsList,
|
|
7493
|
+
function ImpedimentosTab({ maxTabs, tabsList, showAddButton, onSaveNewImpedimento, onSelectedTab, }) {
|
|
7494
7494
|
const [selectedTab, setSelectedTab] = React.useState(null);
|
|
7495
7495
|
const [allTabs, setAllTabs] = React.useState([]);
|
|
7496
7496
|
const [onShowTabs, setOnShowTabs] = React.useState([]);
|
|
@@ -7546,7 +7546,7 @@ function ImpedimentosTab({ maxTabs, tabsList, showOptions, showAddButton, onSave
|
|
|
7546
7546
|
jsxRuntime.jsxs(material.Box, { display: 'flex', flexDirection: 'column', gap: '8px', children: [jsxRuntime.jsxs(TabInfoWrapper, { children: [selectedTab.isGoalOwner ?
|
|
7547
7547
|
jsxRuntime.jsx(material.Box, { border: '2px solid #AD46FF', borderRadius: '50%', children: jsxRuntime.jsx(Avatar, { src: selectedTab.avatar, size: '24px' }) })
|
|
7548
7548
|
:
|
|
7549
|
-
jsxRuntime.jsx(Avatar, { src: selectedTab.avatar, size: '24px' }), jsxRuntime.jsx("p", { children: selectedTab.description }), showOptions ?
|
|
7549
|
+
jsxRuntime.jsx(Avatar, { src: selectedTab.avatar, size: '24px' }), jsxRuntime.jsx("p", { children: selectedTab.description }), selectedTab?.showOptions ?
|
|
7550
7550
|
jsxRuntime.jsx(WrapperMenuMore, { children: jsxRuntime.jsx(MenuMore, { options: [
|
|
7551
7551
|
...(selectedTab?.handlePriorize ? [{
|
|
7552
7552
|
description: 'Priorizar',
|
|
@@ -7901,6 +7901,9 @@ hasVoting, voteText, onDeleteVote, votersList, onDeleteHipotesisOrImpediment, on
|
|
|
7901
7901
|
const [editDescription, setEditDescription] = React.useState(description);
|
|
7902
7902
|
const [isEditing, setIsEditing] = React.useState(false);
|
|
7903
7903
|
const isOwnerGoal = authorGoalId === userLoggedId;
|
|
7904
|
+
React.useEffect(() => {
|
|
7905
|
+
setEditDescription(description);
|
|
7906
|
+
}, [description]);
|
|
7904
7907
|
const title = React.useMemo(() => {
|
|
7905
7908
|
if (type === 'prioritize' && variant === 'hypothesis')
|
|
7906
7909
|
return 'HIPÓTESE PRIORIZADA';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/DS/hypotesisAndImpediment/index.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,iCAAiC,EAAE,MAAM,2BAA2B,CAAA;AAU7E,eAAO,MAAM,uBAAuB,0WA2BjC,iCAAiC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/DS/hypotesisAndImpediment/index.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,iCAAiC,EAAE,MAAM,2BAA2B,CAAA;AAU7E,eAAO,MAAM,uBAAuB,0WA2BjC,iCAAiC,gBA4InC,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ImpedimentosTabProps } from './impedimentosTab';
|
|
3
|
-
export default function ImpedimentosTab({ maxTabs, tabsList,
|
|
3
|
+
export default function ImpedimentosTab({ maxTabs, tabsList, showAddButton, onSaveNewImpedimento, onSelectedTab, }: ImpedimentosTabProps): JSX.Element;
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/DS/impedimentosTab/index.tsx"],"names":[],"mappings":";AAYA,OAAO,EACH,oBAAoB,EAEvB,MAAM,mBAAmB,CAAA;AAc1B,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,EACpC,OAAO,EACP,QAAQ,EACR,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/DS/impedimentosTab/index.tsx"],"names":[],"mappings":";AAYA,OAAO,EACH,oBAAoB,EAEvB,MAAM,mBAAmB,CAAA;AAc1B,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,EACpC,OAAO,EACP,QAAQ,EACR,aAAa,EACb,oBAAoB,EACpB,aAAa,GAChB,EAAE,oBAAoB,eAmNtB"}
|