frst-components 0.25.5 → 0.25.7
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 +83 -69
- package/dist/src/components/DS/hypotesisAndImpediment/hypothesisAndImpediment.style.d.ts +2 -0
- package/dist/src/components/DS/hypotesisAndImpediment/hypothesisAndImpediment.style.d.ts.map +1 -1
- package/dist/src/components/DS/hypotesisAndImpediment/index.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -147,7 +147,7 @@ function ExclamationIcon() {
|
|
|
147
147
|
return (jsxRuntime.jsx("svg", { width: "23", height: "22", viewBox: "0 0 23 22", xmlns: "http://www.w3.org/2000/svg", children: jsxRuntime.jsx("path", { d: "M11.4998 5.58366C12.0957 5.58366 12.5832 6.07116 12.5832 6.66699V11.0003C12.5832 11.5962 12.0957 12.0837 11.4998 12.0837C10.904 12.0837 10.4165 11.5962 10.4165 11.0003V6.66699C10.4165 6.07116 10.904 5.58366 11.4998 5.58366ZM11.4998 14.2503C12.0957 14.2503 12.5832 14.7378 12.5832 15.3337C12.5832 15.9295 12.0957 16.417 11.4998 16.417C10.904 16.417 10.4165 15.9295 10.4165 15.3337C10.4165 14.7378 10.904 14.2503 11.4998 14.2503Z", fill: "white" }) }));
|
|
148
148
|
}
|
|
149
149
|
function StarIcon$1({ color = '#FDAE15', width = 16, height = 15 }) {
|
|
150
|
-
return (jsxRuntime.jsx("svg", { width: width, height: height, viewBox: "0 0 16 15", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: jsxRuntime.jsx("path", { d: "M7.10583 1.78577C7.47454 1.04941 8.52546 1.04941 8.89417 1.78578L10.2379 4.46942C10.3846 4.76228 10.6653 4.96476 10.9895 5.01147L13.9722 5.44126C14.7966 5.56004 15.123 6.57552 14.5222 7.15236L12.3838 9.20561C12.1439 9.436 12.0342 9.77062 12.0912 10.0983L12.5982 13.0121C12.74 13.8272 11.8872 14.4521 11.1527 14.0713L8.46025 12.6755C8.17166 12.5259 7.82834 12.5259 7.53975 12.6755L4.8473 14.0713C4.11284 14.4521 3.26005 13.8272 3.40185 13.0122L3.9088 10.0983C3.96581 9.77062 3.85614 9.436 3.61619 9.20561L1.47778 7.15236C0.877006 6.57552 1.2034 5.56004 2.02776 5.44126L5.01053 5.01147C5.33469 4.96476 5.61544 4.76227 5.76208 4.46942L7.10583 1.78577Z", fill: color, stroke: color,
|
|
150
|
+
return (jsxRuntime.jsx("svg", { width: width, height: height, viewBox: "0 0 16 15", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: jsxRuntime.jsx("path", { d: "M7.10583 1.78577C7.47454 1.04941 8.52546 1.04941 8.89417 1.78578L10.2379 4.46942C10.3846 4.76228 10.6653 4.96476 10.9895 5.01147L13.9722 5.44126C14.7966 5.56004 15.123 6.57552 14.5222 7.15236L12.3838 9.20561C12.1439 9.436 12.0342 9.77062 12.0912 10.0983L12.5982 13.0121C12.74 13.8272 11.8872 14.4521 11.1527 14.0713L8.46025 12.6755C8.17166 12.5259 7.82834 12.5259 7.53975 12.6755L4.8473 14.0713C4.11284 14.4521 3.26005 13.8272 3.40185 13.0122L3.9088 10.0983C3.96581 9.77062 3.85614 9.436 3.61619 9.20561L1.47778 7.15236C0.877006 6.57552 1.2034 5.56004 2.02776 5.44126L5.01053 5.01147C5.33469 4.96476 5.61544 4.76227 5.76208 4.46942L7.10583 1.78577Z", fill: color, stroke: color, strokeWidth: "1.2", strokeLinecap: "round", strokeLinejoin: "round" }) }));
|
|
151
151
|
}
|
|
152
152
|
function LocalizationIcon() {
|
|
153
153
|
return (jsxRuntime.jsx("svg", { width: "15", height: "14", viewBox: "0 0 15 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: jsxRuntime.jsx("path", { d: "M8.74461 5.77226C8.74461 6.44769 8.18461 7.00033 7.50016 7.00033C6.81572 7.00033 6.25572 6.44769 6.25572 5.77226C6.25572 5.09682 6.81572 4.54419 7.50016 4.54419C8.18461 4.54419 8.74461 5.09682 8.74461 5.77226ZM12.1668 5.77226C12.1668 9.50559 9.26105 11.8451 8.01661 12.674C7.86105 12.7845 7.68061 12.8337 7.50016 12.8337C7.31972 12.8337 7.13928 12.7845 6.9775 12.674C5.73305 11.8451 2.8335 9.51173 2.8335 5.77226C2.8335 3.14418 4.83705 1.16699 7.50016 1.16699C10.1633 1.16699 12.1668 3.14418 12.1668 5.77226ZM9.98905 5.77226C9.98905 4.41524 8.87527 3.31611 7.50016 3.31611C6.12505 3.31611 5.01127 4.41524 5.01127 5.77226C5.01127 7.12927 6.12505 8.2284 7.50016 8.2284C8.87527 8.2284 9.98905 7.12927 9.98905 5.77226Z", fill: "white" }) }));
|
|
@@ -4256,13 +4256,13 @@ styled__default["default"].div `
|
|
|
4256
4256
|
border: 1px solid ${({ theme }) => theme.colors.neutralsGrey4};
|
|
4257
4257
|
position: absolute;
|
|
4258
4258
|
`;
|
|
4259
|
-
const LimitCharsContainer = styled__default["default"].div `
|
|
4259
|
+
const LimitCharsContainer$1 = styled__default["default"].div `
|
|
4260
4260
|
display:flex;
|
|
4261
4261
|
justify-content: flex-start;
|
|
4262
4262
|
align-items: center;
|
|
4263
4263
|
margin-left: 10px;
|
|
4264
4264
|
`;
|
|
4265
|
-
const LimitCharsExceededMessage = styled__default["default"].span `
|
|
4265
|
+
const LimitCharsExceededMessage$1 = styled__default["default"].span `
|
|
4266
4266
|
color: ${({ theme }) => theme.colors.linkError};
|
|
4267
4267
|
font-size: 12px;
|
|
4268
4268
|
margin-left: 5px;
|
|
@@ -4864,7 +4864,7 @@ function InputComment$1({ placeholder, onChange, limit, users, showCharacterCoun
|
|
|
4864
4864
|
}, "data-text": "enter", suppressContentEditableWarning: true, onPaste: handlePaste, children: jsxRuntime.jsx("p", { children: jsxRuntime.jsx("br", {}) }) }), jsxRuntime.jsx(InputPlaceholder, { style: { display: 'none' }, contentEditable: true, ref: divPlaceholder, children: placeholder }), showMention && users && users.length > 0 && (jsxRuntime.jsx(Mentions, { users: users, top: mentionTopPosition, onSelect: (user) => {
|
|
4865
4865
|
setShowMention(false);
|
|
4866
4866
|
handleMentionUser(user);
|
|
4867
|
-
} }))] }), jsxRuntime.jsx(HelperContainer, { children: !isPlaceholder && showCharacterCounter && (jsxRuntime.jsxs(HelperText$2, { isInputLimit: styleLimitExceeded, children: [textLength, "/", limit] })) }), styleLimitExceeded && (jsxRuntime.jsxs(LimitCharsContainer, { children: [jsxRuntime.jsx(TagAlert, {}), jsxRuntime.jsx(LimitCharsExceededMessage, { children: limitMessageExceeded })] }))] }) }));
|
|
4867
|
+
} }))] }), jsxRuntime.jsx(HelperContainer, { children: !isPlaceholder && showCharacterCounter && (jsxRuntime.jsxs(HelperText$2, { isInputLimit: styleLimitExceeded, children: [textLength, "/", limit] })) }), styleLimitExceeded && (jsxRuntime.jsxs(LimitCharsContainer$1, { children: [jsxRuntime.jsx(TagAlert, {}), jsxRuntime.jsx(LimitCharsExceededMessage$1, { children: limitMessageExceeded })] }))] }) }));
|
|
4868
4868
|
}
|
|
4869
4869
|
|
|
4870
4870
|
const HeaderWrapper$1 = styled__default["default"].div `
|
|
@@ -7725,36 +7725,36 @@ const backgroundColors$2 = {
|
|
|
7725
7725
|
hypothesis: {
|
|
7726
7726
|
prioritize: '#FAB637',
|
|
7727
7727
|
owner: '#f8d784',
|
|
7728
|
-
suggested: '#FBEECF'
|
|
7728
|
+
suggested: '#FBEECF'
|
|
7729
7729
|
},
|
|
7730
7730
|
impediment: {
|
|
7731
7731
|
prioritize: '#D2ADE3',
|
|
7732
7732
|
owner: '#E5CBF1',
|
|
7733
|
-
suggested: '#EFE1F6'
|
|
7733
|
+
suggested: '#EFE1F6'
|
|
7734
7734
|
}
|
|
7735
7735
|
};
|
|
7736
7736
|
const separatorColors = {
|
|
7737
7737
|
hypothesis: {
|
|
7738
7738
|
prioritize: '#CF8E11',
|
|
7739
7739
|
owner: '#C8A561',
|
|
7740
|
-
suggested: '#E1CCA5'
|
|
7740
|
+
suggested: '#E1CCA5'
|
|
7741
7741
|
},
|
|
7742
7742
|
impediment: {
|
|
7743
7743
|
prioritize: '#AA83C3',
|
|
7744
7744
|
owner: '#BF9AD6',
|
|
7745
|
-
suggested: '#DAB4EC'
|
|
7745
|
+
suggested: '#DAB4EC'
|
|
7746
7746
|
}
|
|
7747
7747
|
};
|
|
7748
7748
|
const borderAvatar = {
|
|
7749
7749
|
hypothesis: {
|
|
7750
7750
|
prioritize: '#C48000',
|
|
7751
7751
|
owner: '#EE9F08',
|
|
7752
|
-
suggested: '#EE9F08'
|
|
7752
|
+
suggested: '#EE9F08'
|
|
7753
7753
|
},
|
|
7754
7754
|
impediment: {
|
|
7755
7755
|
prioritize: '#AD46FF',
|
|
7756
7756
|
owner: '#AD46FF',
|
|
7757
|
-
suggested: '#AD46FF'
|
|
7757
|
+
suggested: '#AD46FF'
|
|
7758
7758
|
}
|
|
7759
7759
|
};
|
|
7760
7760
|
const MainContainer = styled__default["default"].div `
|
|
@@ -7791,7 +7791,7 @@ const SplitContainerDescription = styled__default["default"].div `
|
|
|
7791
7791
|
width: 100%;
|
|
7792
7792
|
`;
|
|
7793
7793
|
styled__default["default"].div `
|
|
7794
|
-
height: 24px;
|
|
7794
|
+
height: 24px;
|
|
7795
7795
|
width: 1px;
|
|
7796
7796
|
margin-left: 14px;
|
|
7797
7797
|
margin-right: 14px;
|
|
@@ -7820,6 +7820,17 @@ const Description$4 = styled__default["default"].span `
|
|
|
7820
7820
|
border-left: 1px solid ${border};
|
|
7821
7821
|
`;
|
|
7822
7822
|
}}
|
|
7823
|
+
`;
|
|
7824
|
+
const LimitCharsContainer = styled__default["default"].div `
|
|
7825
|
+
display: flex;
|
|
7826
|
+
justify-content: flex-start;
|
|
7827
|
+
align-items: center;
|
|
7828
|
+
margin-top: 4px;
|
|
7829
|
+
`;
|
|
7830
|
+
const LimitCharsExceededMessage = styled__default["default"].span `
|
|
7831
|
+
color: #a50000;
|
|
7832
|
+
font-size: 12px;
|
|
7833
|
+
margin-left: 5px;
|
|
7823
7834
|
`;
|
|
7824
7835
|
|
|
7825
7836
|
const backgroundColors$1 = {
|
|
@@ -8017,44 +8028,45 @@ const Voting = ({ type, voteText, onDeleteVote, onChangeVote, votersList, onVote
|
|
|
8017
8028
|
jsxRuntime.jsxs("div", { onClick: handleChangeVote, children: [jsxRuntime.jsx(SwitchVoteIcon, {}), "Trocar voto"] })] })) : (jsxRuntime.jsxs("span", { children: [votersList?.length, " ", votersList?.length > 1 ? 'votos' : 'voto'] })) })] })) : (jsxRuntime.jsx(ContainerVoting, { type: type, children: jsxRuntime.jsxs(ContainerTitleVoting, { onClick: onVote, children: [jsxRuntime.jsx(NewVoteIcon, {}), jsxRuntime.jsx(TitleVoting, { children: voteText })] }) })) }));
|
|
8018
8029
|
};
|
|
8019
8030
|
|
|
8020
|
-
const HypothesisAndImpediment = ({ description, variant, type, avatar, id, index, authorGoalId,
|
|
8021
|
-
userLoggedId, authorName, // nome autor da hipotese ou do impedimento
|
|
8022
|
-
handleViewProfile, authorId, // id do autor do impedimento ou da hipotese
|
|
8023
|
-
hasVoting, voteHasAlreadyBeenRegistered, isVotedByUserLogged, voteText, onDeleteVote, onChangeVote, votersList, onDeleteHipotesisOrImpediment, onSaveEditHipotesisOrImpediment, hasEditHipotesisOrImpediment, onVote, onPrioritize, onDown, onUp, hasUpdownButtons, onClickAction, onAddActions, hasAddActions, popperStyle }) => {
|
|
8031
|
+
const HypothesisAndImpediment = ({ description, variant, type, avatar, id, index, authorGoalId, userLoggedId, authorName, handleViewProfile, authorId, hasVoting, voteHasAlreadyBeenRegistered, isVotedByUserLogged, voteText, onDeleteVote, onChangeVote, votersList, onDeleteHipotesisOrImpediment, onSaveEditHipotesisOrImpediment, hasEditHipotesisOrImpediment, onVote, onPrioritize, onDown, onUp, hasUpdownButtons, onClickAction, onAddActions, hasAddActions, popperStyle }) => {
|
|
8024
8032
|
const [editDescription, setEditDescription] = React.useState(description);
|
|
8025
8033
|
const [isEditing, setIsEditing] = React.useState(false);
|
|
8026
8034
|
const isOwnerGoal = authorGoalId === authorId;
|
|
8035
|
+
const limitCaraterers = variant === 'impediment' ? 365 : 200;
|
|
8036
|
+
const [isLimitExceeded, setIsLimitExceeded] = React.useState(false);
|
|
8027
8037
|
const options = [
|
|
8028
|
-
hasUpdownButtons &&
|
|
8029
|
-
|
|
8030
|
-
|
|
8031
|
-
|
|
8032
|
-
|
|
8033
|
-
|
|
8034
|
-
|
|
8035
|
-
|
|
8038
|
+
hasUpdownButtons &&
|
|
8039
|
+
userLoggedId === authorGoalId && {
|
|
8040
|
+
startIcon: jsxRuntime.jsx(StarPrioritize, { stroke: type === 'prioritize' ? '#9C9C9C' : '#222222' }),
|
|
8041
|
+
description: 'Priorizar',
|
|
8042
|
+
onClick: () => onPrioritize(id),
|
|
8043
|
+
disabled: type === 'prioritize',
|
|
8044
|
+
color: type === 'prioritize' ? '#9C9C9C' : '#222222'
|
|
8045
|
+
},
|
|
8036
8046
|
{
|
|
8037
8047
|
startIcon: jsxRuntime.jsx(EditHipoteses, {}),
|
|
8038
8048
|
description: 'Editar',
|
|
8039
8049
|
onClick: (e) => setIsEditing(true)
|
|
8040
8050
|
},
|
|
8041
|
-
hasAddActions &&
|
|
8042
|
-
({
|
|
8043
|
-
|
|
8044
|
-
|
|
8045
|
-
|
|
8046
|
-
|
|
8047
|
-
}),
|
|
8051
|
+
hasAddActions && {
|
|
8052
|
+
startIcon: jsxRuntime.jsx(AddAction, {}),
|
|
8053
|
+
description: 'Adicionar ações',
|
|
8054
|
+
onClick: () => onAddActions(id),
|
|
8055
|
+
color: '#222222'
|
|
8056
|
+
},
|
|
8048
8057
|
{
|
|
8049
8058
|
startIcon: jsxRuntime.jsx(TrashHipoteses, {}),
|
|
8050
8059
|
description: 'Excluir',
|
|
8051
8060
|
onClick: () => onDeleteHipotesisOrImpediment(id),
|
|
8052
8061
|
color: '#C00F00'
|
|
8053
8062
|
}
|
|
8054
|
-
].filter(item => item);
|
|
8063
|
+
].filter((item) => item);
|
|
8055
8064
|
React.useEffect(() => {
|
|
8056
8065
|
setEditDescription(description);
|
|
8057
8066
|
}, [description]);
|
|
8067
|
+
React.useEffect(() => {
|
|
8068
|
+
editDescription?.length >= limitCaraterers ? setIsLimitExceeded(true) : setIsLimitExceeded(false);
|
|
8069
|
+
}, [editDescription]);
|
|
8058
8070
|
const title = React.useMemo(() => {
|
|
8059
8071
|
if (type === 'prioritize' && variant === 'hypothesis')
|
|
8060
8072
|
return 'HIPÓTESE PRIORIZADA';
|
|
@@ -8099,7 +8111,13 @@ hasVoting, voteHasAlreadyBeenRegistered, isVotedByUserLogged, voteText, onDelete
|
|
|
8099
8111
|
};
|
|
8100
8112
|
const inputRef = React.useRef(null);
|
|
8101
8113
|
const handleChange = (event) => {
|
|
8102
|
-
|
|
8114
|
+
if (limitCaraterers > editDescription?.length || event.target.value?.length < editDescription?.length) {
|
|
8115
|
+
let newValue = event.target.value;
|
|
8116
|
+
if (newValue.length > limitCaraterers) {
|
|
8117
|
+
newValue = newValue.substring(0, limitCaraterers);
|
|
8118
|
+
}
|
|
8119
|
+
setEditDescription(newValue);
|
|
8120
|
+
}
|
|
8103
8121
|
};
|
|
8104
8122
|
const handleKeyDown = (event) => {
|
|
8105
8123
|
if (event.key === 'Enter') {
|
|
@@ -8116,47 +8134,43 @@ hasVoting, voteHasAlreadyBeenRegistered, isVotedByUserLogged, voteText, onDelete
|
|
|
8116
8134
|
}, 200);
|
|
8117
8135
|
}
|
|
8118
8136
|
}, [isEditing]);
|
|
8119
|
-
return (jsxRuntime.
|
|
8120
|
-
|
|
8121
|
-
|
|
8122
|
-
|
|
8123
|
-
|
|
8124
|
-
|
|
8125
|
-
|
|
8126
|
-
|
|
8127
|
-
|
|
8128
|
-
|
|
8129
|
-
|
|
8130
|
-
|
|
8131
|
-
|
|
8132
|
-
|
|
8133
|
-
|
|
8134
|
-
|
|
8135
|
-
|
|
8136
|
-
|
|
8137
|
-
}, style: { height: isEditing ? "auto" : "fit-content" }, children: isEditing ?
|
|
8138
|
-
jsxRuntime.jsx(material.TextField, { inputRef: inputRef, value: editDescription, onBlur: handleSaveDescription, onChange: handleChange, onKeyDown: handleKeyDown, multiline: true, fullWidth: true, variant: 'standard', InputProps: {
|
|
8137
|
+
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(MainContainer, { children: jsxRuntime.jsxs(ContainerHypotheis, { type: type, variant: variant, children: [hasUpdownButtons && (jsxRuntime.jsx(UpDownButtons, { type: type, variant: variant, onDownClick: () => onDown(id, index), onUpClick: () => onUp(id, index) })), jsxRuntime.jsxs(SplitContainerDescription, { children: [jsxRuntime.jsx(Tooltip$2, { content: authorName, direction: 'bottom', style: {
|
|
8138
|
+
fontFamily: 'PT Sans',
|
|
8139
|
+
fontWeight: 400,
|
|
8140
|
+
fontSize: '14px',
|
|
8141
|
+
color: 'rgba(117, 117, 117, 1)',
|
|
8142
|
+
width: 'fit-content',
|
|
8143
|
+
height: '31px',
|
|
8144
|
+
top: '8px',
|
|
8145
|
+
left: '4px',
|
|
8146
|
+
whiteSpace: 'nowrap',
|
|
8147
|
+
boxShadow: ' 0px 0px 18px 0px rgba(34, 34, 34, 0.2)'
|
|
8148
|
+
}, children: jsxRuntime.jsx(Avatar, { src: avatar, size: isOwnerGoal ? '24px' : '24px', border: avatarBorder, style: { cursor: 'pointer', marginLeft: '16px' }, onClick: () => handleViewProfile(authorId) }) }), jsxRuntime.jsx(Title$6, { children: title }), jsxRuntime.jsx(Description$4, { type: type, variant: variant, onClick: handleClickAction, onDoubleClick: () => {
|
|
8149
|
+
if (clickTimeoutRef.current) {
|
|
8150
|
+
clearTimeout(clickTimeoutRef.current);
|
|
8151
|
+
}
|
|
8152
|
+
if (hasEditHipotesisOrImpediment)
|
|
8153
|
+
setIsEditing(true);
|
|
8154
|
+
}, style: { height: isEditing ? 'auto' : 'fit-content' }, children: isEditing ? (jsxRuntime.jsx(material.TextField, { inputRef: inputRef, value: editDescription, onBlur: handleSaveDescription, onChange: handleChange, onKeyDown: handleKeyDown, multiline: true, fullWidth: true, variant: "standard", InputProps: {
|
|
8139
8155
|
disableUnderline: true,
|
|
8140
8156
|
style: {
|
|
8141
8157
|
fontFamily: 'PT Sans',
|
|
8142
8158
|
fontSize: '14px',
|
|
8143
8159
|
lineHeight: 1.3
|
|
8144
|
-
}
|
|
8145
|
-
}, onFocus: (e) => e.currentTarget.setSelectionRange(e.currentTarget.value.length, e.currentTarget.value.length) })
|
|
8146
|
-
|
|
8147
|
-
|
|
8148
|
-
|
|
8149
|
-
|
|
8150
|
-
|
|
8151
|
-
|
|
8152
|
-
|
|
8153
|
-
|
|
8154
|
-
|
|
8155
|
-
|
|
8156
|
-
|
|
8157
|
-
|
|
8158
|
-
display: variant === 'impediment' || isEditing ? 'none' : 'block'
|
|
8159
|
-
}, children: jsxRuntime.jsx("div", { style: { width: '100%', overflow: 'hidden' }, children: editDescription }) }) }), !isEditing && hasVoting && (jsxRuntime.jsx(Voting, { voteText: voteText, type: type, onDeleteVote: onDeleteVote, votersList: votersList, onVote: () => onVote(id), onChangeVote: () => onChangeVote(id), isVotedByUserLogged: isVotedByUserLogged, voteHasAlreadyBeenRegistered: voteHasAlreadyBeenRegistered, popperStyle: popperStyle })), !isEditing && validHasEditHipotesisOrImpediment && (jsxRuntime.jsx(MenuMore, { options: options, isContainerOptions: true, closeAfterClick: true }))] })] }) }) }));
|
|
8160
|
+
}
|
|
8161
|
+
}, onFocus: (e) => e.currentTarget.setSelectionRange(e.currentTarget.value.length, e.currentTarget.value.length) })) : (jsxRuntime.jsx(Tooltip$2, { content: 'Clique na hipótese para ver as ações vinculadas', direction: 'bottom', wrapperWidth: "100%", style: {
|
|
8162
|
+
fontFamily: 'PT Sans',
|
|
8163
|
+
fontWeight: 400,
|
|
8164
|
+
fontSize: '14px',
|
|
8165
|
+
color: '#757575',
|
|
8166
|
+
width: '171px',
|
|
8167
|
+
height: '52px',
|
|
8168
|
+
top: '8px',
|
|
8169
|
+
left: '4px',
|
|
8170
|
+
whiteSpace: 'wrap',
|
|
8171
|
+
boxShadow: ' 0px 25px 18px -20px #22222233;',
|
|
8172
|
+
display: variant === 'impediment' || isEditing ? 'none' : 'block'
|
|
8173
|
+
}, children: jsxRuntime.jsx("div", { style: { width: '100%', overflow: 'hidden' }, children: editDescription }) })) }), !isEditing && hasVoting && (jsxRuntime.jsx(Voting, { voteText: voteText, type: type, onDeleteVote: onDeleteVote, votersList: votersList, onVote: () => onVote(id), onChangeVote: () => onChangeVote(id), isVotedByUserLogged: isVotedByUserLogged, voteHasAlreadyBeenRegistered: voteHasAlreadyBeenRegistered, popperStyle: popperStyle })), !isEditing && validHasEditHipotesisOrImpediment && (jsxRuntime.jsx(MenuMore, { options: options, isContainerOptions: true, closeAfterClick: true }))] })] }) }), isEditing && isLimitExceeded && (jsxRuntime.jsxs(LimitCharsContainer, { children: [jsxRuntime.jsx(TagAlert, { color: "#A50000" }), jsxRuntime.jsx(LimitCharsExceededMessage, { children: 'Você atingiu a quantidade máxima de caracteres' })] }))] }));
|
|
8160
8174
|
};
|
|
8161
8175
|
|
|
8162
8176
|
const MESSAGES = {
|
|
@@ -8572,7 +8586,7 @@ const ProgressGoalBar = ({ start, current, goal, isVisibleMessage = true }) => {
|
|
|
8572
8586
|
return positions?.currentTextInit;
|
|
8573
8587
|
}
|
|
8574
8588
|
};
|
|
8575
|
-
return (jsxRuntime.jsxs(WrapperProgressGoalBar, { children: [isVisibleMessage && jsxRuntime.jsx(TextUP, { children: positions?.message }), jsxRuntime.jsxs(ProgressGoalBarContainer, { children: [jsxRuntime.jsx(StartIndicator, { position: positions?.start, children: jsxRuntime.jsx(LocalizationIcon, {}) }), jsxRuntime.jsx(IndicatorTextInit, { noResult: noResult, position: positions?.start, isGoalReached: isGoalReached, isGoalExceeded: isGoalExceeded, resultEvolved: resultEvolved, start: positions?.start, stabilize: stabilize, children: jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Number$1, { children: start }), jsxRuntime.jsx(TypeProgressText, { children: getDisplayText() })] }) }), !isGoalReached && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(CurrentIndicator, { status: positions?.currentVariant, position: positions?.current, children: isGoalExceeded ? jsxRuntime.jsx(StarIcon$1, { color: "white", width: 14, height: 13 }) : jsxRuntime.jsx(ExclamationIcon, {}) }), jsxRuntime.jsx(IndicatorTextCurrent, { position: positions?.current, noGoal: noGoal, noResult: noResult, children: !noResult && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Number$1, { children: current }), jsxRuntime.jsx(TypeProgressText, { children: positions?.currenText })] })) })] })), jsxRuntime.jsx(EndIndicator, { position: positions?.goal, isGoalExceeded: isGoalExceeded, isGoalReached: isGoalReached, children: jsxRuntime.jsx(GoalIcon, {}) }), jsxRuntime.jsxs(IndicatorText, { position: positions?.goal, stabilize: stabilize, children: [jsxRuntime.jsx(Number$1, { children: !stabilizeExceeding && goal }), jsxRuntime.jsx(TypeProgressText, { children: stabilizeExceeding || stabilize ? positions?.textGoal : positions?.TextoGoalDefault })] }), jsxRuntime.jsx(ProgressBarColor, { isGoalExceeded: isGoalExceeded, width: positions[positions
|
|
8589
|
+
return (jsxRuntime.jsxs(WrapperProgressGoalBar, { children: [isVisibleMessage && jsxRuntime.jsx(TextUP, { children: positions?.message }), jsxRuntime.jsxs(ProgressGoalBarContainer, { children: [jsxRuntime.jsx(StartIndicator, { position: positions?.start, children: jsxRuntime.jsx(LocalizationIcon, {}) }), jsxRuntime.jsx(IndicatorTextInit, { noResult: noResult, position: positions?.start, isGoalReached: isGoalReached, isGoalExceeded: isGoalExceeded, resultEvolved: resultEvolved, start: positions?.start, stabilize: stabilize, children: jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Number$1, { children: start }), jsxRuntime.jsx(TypeProgressText, { children: getDisplayText() })] }) }), !isGoalReached && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(CurrentIndicator, { status: positions?.currentVariant, position: positions?.current, children: isGoalExceeded ? jsxRuntime.jsx(StarIcon$1, { color: "white", width: 14, height: 13 }) : jsxRuntime.jsx(ExclamationIcon, {}) }), jsxRuntime.jsx(IndicatorTextCurrent, { position: positions?.current, noGoal: noGoal, noResult: noResult, children: !noResult && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Number$1, { children: current }), jsxRuntime.jsx(TypeProgressText, { children: positions?.currenText })] })) })] })), jsxRuntime.jsx(EndIndicator, { position: positions?.goal, isGoalExceeded: isGoalExceeded, isGoalReached: isGoalReached, children: jsxRuntime.jsx(GoalIcon, {}) }), jsxRuntime.jsxs(IndicatorText, { position: positions?.goal, stabilize: stabilize, children: [jsxRuntime.jsx(Number$1, { children: !stabilizeExceeding && goal }), jsxRuntime.jsx(TypeProgressText, { children: stabilizeExceeding || stabilize ? positions?.textGoal : positions?.TextoGoalDefault })] }), jsxRuntime.jsx(ProgressBarColor, { isGoalExceeded: isGoalExceeded, width: positions?.[positions?.barRef], hasRegressed: noGoal, isGoalDecreased: isGoalDecreased, isGoalIncrese: isGoalIncrease, stabileze: stabilize })] })] }));
|
|
8576
8590
|
};
|
|
8577
8591
|
|
|
8578
8592
|
const ModalContainer = styled__default["default"].div `
|
|
@@ -23,4 +23,6 @@ export declare const Description: import("styled-components").StyledComponent<"s
|
|
|
23
23
|
type: string;
|
|
24
24
|
variant: string;
|
|
25
25
|
}, never>;
|
|
26
|
+
export declare const LimitCharsContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
27
|
+
export declare const LimitCharsExceededMessage: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
26
28
|
//# sourceMappingURL=hypothesisAndImpediment.style.d.ts.map
|
package/dist/src/components/DS/hypotesisAndImpediment/hypothesisAndImpediment.style.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hypothesisAndImpediment.style.d.ts","sourceRoot":"","sources":["../../../../../src/components/DS/hypotesisAndImpediment/hypothesisAndImpediment.style.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,
|
|
1
|
+
{"version":3,"file":"hypothesisAndImpediment.style.d.ts","sourceRoot":"","sources":["../../../../../src/components/DS/hypotesisAndImpediment/hypothesisAndImpediment.style.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AA4B7D,eAAO,MAAM,YAAY;;;;;;;;;;;CAWxB,CAAA;AAED,eAAO,MAAM,aAAa,oEAQzB,CAAA;AAED,eAAO,MAAM,kBAAkB,mFAc9B,CAAA;AAED,eAAO,MAAM,yBAAyB,oEAQrC,CAAA;AAED,eAAO,MAAM,SAAS;UAAsB,MAAM;aAAW,MAAM;SAWlE,CAAA;AACD,eAAO,MAAM,KAAK,qEAGjB,CAAA;AACD,eAAO,MAAM,WAAW;UAAuB,MAAM;aAAW,MAAM;SAcrE,CAAA;AAED,eAAO,MAAM,mBAAmB,oEAK/B,CAAA;AAED,eAAO,MAAM,yBAAyB,qEAIrC,CAAA"}
|
|
@@ -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;
|
|
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;AAY7E,eAAO,MAAM,uBAAuB,wbA+BjC,iCAAiC,4CAsQnC,CAAA"}
|