frst-components 0.35.5 → 0.35.6
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 +17 -17
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8763,17 +8763,17 @@ const HypothesisAndImpediment = ({ description, variant, type, avatar, id, index
|
|
|
8763
8763
|
};
|
|
8764
8764
|
|
|
8765
8765
|
const MESSAGES = {
|
|
8766
|
-
reachedGoal: jsxRuntime.jsx("
|
|
8767
|
-
progressExceeded: (jsxRuntime.jsxs("
|
|
8768
|
-
progressImproved: (jsxRuntime.jsxs("
|
|
8769
|
-
progressNoResults: (jsxRuntime.jsxs("
|
|
8770
|
-
progressNoGoal: (jsxRuntime.jsxs("
|
|
8771
|
-
currentTextResult: jsxRuntime.jsx("
|
|
8772
|
-
currentTextInitAndResult: jsxRuntime.jsx("
|
|
8773
|
-
currentTextInit: jsxRuntime.jsx("
|
|
8774
|
-
stabilizeExceedingText: jsxRuntime.jsx("
|
|
8775
|
-
textGoal: jsxRuntime.jsx("
|
|
8776
|
-
TextoGoalDefault: jsxRuntime.jsx("
|
|
8766
|
+
reachedGoal: jsxRuntime.jsx("span", { children: "Este resultado atingiu a meta definida! \uD83C\uDF89" }),
|
|
8767
|
+
progressExceeded: (jsxRuntime.jsxs("span", { children: ["Este resultado ", jsxRuntime.jsx("strong", { children: "superou a meta" }), " definida! \uD83C\uDF89"] })),
|
|
8768
|
+
progressImproved: (jsxRuntime.jsxs("span", { children: ["Este ", jsxRuntime.jsx("strong", { children: "resultado evoluiu" }), ", mas ", jsxRuntime.jsx("strong", { children: "n\u00E3o atingiu" }), " a meta definida."] })),
|
|
8769
|
+
progressNoResults: (jsxRuntime.jsxs("span", { children: ["Este desafio ", jsxRuntime.jsx("strong", { children: "n\u00E3o obteve resultados" }), " e ", jsxRuntime.jsx("strong", { children: "n\u00E3o atingiu" }), " a meta definida."] })),
|
|
8770
|
+
progressNoGoal: (jsxRuntime.jsxs("span", { children: ["Este resultado ", jsxRuntime.jsx("strong", { children: "n\u00E3o atingiu" }), " a meta definida e ", jsxRuntime.jsx("strong", { children: "regrediu" }), " em rela\u00E7\u00E3o ao valor inicial"] })),
|
|
8771
|
+
currentTextResult: jsxRuntime.jsx("span", { children: "RESULTADO" }),
|
|
8772
|
+
currentTextInitAndResult: jsxRuntime.jsx("span", { children: "IN\u00CDCIO E RESULTADO" }),
|
|
8773
|
+
currentTextInit: jsxRuntime.jsx("span", { children: "IN\u00CDCIO" }),
|
|
8774
|
+
stabilizeExceedingText: jsxRuntime.jsx("span", { children: "IN\u00CDCIO E META" }),
|
|
8775
|
+
textGoal: jsxRuntime.jsx("span", { children: "META E RESULTADO" }),
|
|
8776
|
+
TextoGoalDefault: jsxRuntime.jsx("span", { children: "META" })
|
|
8777
8777
|
};
|
|
8778
8778
|
|
|
8779
8779
|
function toRange(start, end, current) {
|
|
@@ -19637,9 +19637,9 @@ function InteractionsModal({ textTitle, textSubtitle, listUsers, isOpen, handleC
|
|
|
19637
19637
|
transform: 'translate(-50%, -50%)',
|
|
19638
19638
|
...style
|
|
19639
19639
|
}, children: [jsxRuntime.jsxs(HeaderDiv, { children: [jsxRuntime.jsx("div", { style: { width: '100%', display: 'flex', justifyContent: 'flex-end' }, children: jsxRuntime.jsx(CloseButton$1, { onClick: () => handleClickClose(), children: jsxRuntime.jsx(CloseIcon$1, { width: '11' }) }) }), jsxRuntime.jsx(Typography, { children: textTitle }), jsxRuntime.jsx(Typography, { children: textSubtitle })] }), jsxRuntime.jsx(ContentDiv, { ref: scrollContainerRef, onScroll: handleScroll, onClick: trackClick ? () => trackClick() : () => { }, children: jsxRuntime.jsx(ContentScroll, { children: newListUsers && newListUsers.map((item) => {
|
|
19640
|
-
return (jsxRuntime.jsx(
|
|
19641
|
-
|
|
19642
|
-
|
|
19640
|
+
return (jsxRuntime.jsx(CardItemUser, { children: item?.onClickUserInfo ?
|
|
19641
|
+
jsxRuntime.jsxs(Tooltip$2, { direction: "bottom", content: item.textVisitProfile ? item.textVisitProfile : 'Visitar perfil', trigger: 'hover', width: '101px', height: '32px', style: { top: '10px', textAlign: 'center' }, children: [jsxRuntime.jsx(Avatar, { size: '50px', src: item?.avatar, isActiveClick: true, onClick: () => item?.onClickUserInfo ? item?.onClickUserInfo() : {} }), jsxRuntime.jsxs(UserInfoContainer, { onClick: () => item?.onClickUserInfo ? item?.onClickUserInfo() : {}, style: { cursor: item?.onClickUserInfo ? 'pointer' : 'auto' }, children: [jsxRuntime.jsxs(NameUser$2, { children: [" ", item?.name, " "] }), jsxRuntime.jsxs(PositionUser, { children: [" ", item?.position, " "] }), jsxRuntime.jsxs(OrgUser, { children: [" ", item?.organization, " "] })] })] })
|
|
19642
|
+
: jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Avatar, { size: '50px', src: item?.avatar }), jsxRuntime.jsxs(UserInfoContainer, { onClick: () => item?.onClickUserInfo ? item?.onClickUserInfo() : {}, style: { cursor: item?.onClickUserInfo ? 'pointer' : 'auto' }, children: [jsxRuntime.jsxs(NameUser$2, { children: [" ", item?.name, " "] }), jsxRuntime.jsxs(PositionUser, { children: [" ", item?.position, " "] }), jsxRuntime.jsxs(OrgUser, { children: [" ", item?.organization, " "] })] })] }) }, item?.id));
|
|
19643
19643
|
}) }) })] }) }) }));
|
|
19644
19644
|
}
|
|
19645
19645
|
|
|
@@ -24836,8 +24836,8 @@ function EmptyState({ emptyState, customImage }) {
|
|
|
24836
24836
|
border: '1.5px solid #ebebeb',
|
|
24837
24837
|
borderTopWidth: '0px'
|
|
24838
24838
|
}, children: [jsxRuntime.jsx(ImageEmptyState, { src: customImage ? customImage : imgEmpty, alt: "Empty" }), jsxRuntime.jsx(LabelEmptyState, { children: emptyState?.labels &&
|
|
24839
|
-
emptyState?.labels?.map((label) => {
|
|
24840
|
-
return jsxRuntime.jsx("p", { children: label });
|
|
24839
|
+
emptyState?.labels?.map((label, index) => {
|
|
24840
|
+
return jsxRuntime.jsx("p", { children: label }, index);
|
|
24841
24841
|
}) }), emptyState?.handleClickButtonCreate && jsxRuntime.jsx(ButtonCreateAction, { onClick: () => emptyState?.handleClickButtonCreate?.(), children: emptyState?.labelButtonCreate })] }));
|
|
24842
24842
|
}
|
|
24843
24843
|
|
|
@@ -25011,7 +25011,7 @@ function TableActions({ columns, data, isLoading, lengthElSkeleton = 3, onPressA
|
|
|
25011
25011
|
setAdaptedData(newData);
|
|
25012
25012
|
}, [data]);
|
|
25013
25013
|
const customStyleBorderTable = buttonBottomCreateAction?.mode == 'button' || buttonBottomCreateAction?.mode == 'children' || data?.length == 0
|
|
25014
|
-
? {
|
|
25014
|
+
? { borderTopRightRadius: '8px', borderTopLeftRadius: '8px', borderBottomLeftRadius: '0px', borderBottomRightRadius: '0px' }
|
|
25015
25015
|
: { borderRadius: '8px' };
|
|
25016
25016
|
return (jsxRuntime.jsxs(styled.ThemeProvider, { theme: FRSTTheme, children: [jsxRuntime.jsx(Table, { columns: adaptedColumns, data: adaptedData, isLoading: isLoading, lengthElSkeleton: lengthElSkeleton, containerStyles: customStyleBorderTable, expandItemId: expandItemId, hiddeExpandItemId: hiddeExpandItemId }), !isLoading && data?.length == 0 && jsxRuntime.jsx(EmptyState, { emptyState: emptyState, customImage: customImageEmptyState }), !isLoading && data?.length !== 0 && buttonBottomCreateAction?.mode && buttonBottomCreateAction?.mode != 'hidden' && (jsxRuntime.jsxs(WrapperEmptyState, { children: [buttonBottomCreateAction?.mode == 'button' && (jsxRuntime.jsx(WrapperEmptyStateCaseButton, { children: jsxRuntime.jsx(WrapperButtonEmpty, { children: jsxRuntime.jsxs(ButtonEmpty, { onClick: () => buttonBottomCreateAction?.handleClickButtonCreate?.(), children: [jsxRuntime.jsx(AddIcon, { fill: FRSTTheme?.colors?.primary1, width: '14', height: '14' }), buttonBottomCreateAction?.labelButtonAddAction] }) }) })), buttonBottomCreateAction?.mode == 'children' && jsxRuntime.jsx("div", { children: buttonBottomCreateAction?.children })] }))] }));
|
|
25017
25017
|
}
|