frst-components 0.21.34 → 0.21.35
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 +5 -5
- package/dist/src/components/IJ/participantCardOld/index.d.ts +1 -1
- package/dist/src/components/IJ/participantCardOld/index.d.ts.map +1 -1
- package/dist/src/components/LXP/extraContent/richTextEditor/components.d.ts +8 -8
- package/dist/src/components/LXP/extraContent/richTextEditor/components.d.ts.map +1 -1
- package/dist/src/components/calendar/calendarStyle.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -15712,7 +15712,7 @@ const ButtonSuccessV2 = styled__default["default"].div `
|
|
|
15712
15712
|
transition: all 1s ease-in-out;
|
|
15713
15713
|
`;
|
|
15714
15714
|
|
|
15715
|
-
function ParticipantCardOld({ variant, userInfo, labels, successfullInvite, style, handleSendInvitation, handleClickRemove, onClickUserInfo, textVisitProfile }) {
|
|
15715
|
+
function ParticipantCardOld({ variant, userInfo, labels, successfullInvite, style, handleSendInvitation, handleClickRemove, onClickUserInfo, textVisitProfile, hidenRemoveBtn, }) {
|
|
15716
15716
|
const [userName, setUserName] = React.useState(userInfo?.name);
|
|
15717
15717
|
const [userEmail, setUserEmail] = React.useState(userInfo?.email);
|
|
15718
15718
|
const [area, setArea] = React.useState(`${labels?.area ? labels?.area : 'Área'}: ${userInfo?.area}`);
|
|
@@ -15729,12 +15729,12 @@ function ParticipantCardOld({ variant, userInfo, labels, successfullInvite, styl
|
|
|
15729
15729
|
setStatusSend('success');
|
|
15730
15730
|
handleSendInvitation(userInfo?.id);
|
|
15731
15731
|
};
|
|
15732
|
-
return (jsxRuntime.jsx(styled.ThemeProvider, { theme: FRSTTheme, children: jsxRuntime.jsxs(WrapperCard$2, { variant: variant, style: { ...style }, children: [jsxRuntime.jsxs(UserInfo$1, { onClick: () => onClickUserInfo ? onClickUserInfo() : {}, children: [jsxRuntime.jsx(Tooltip$2, { direction: "top", content: textVisitProfile ? textVisitProfile : 'Visitar perfil', trigger: 'hover', width: '101px', height: '32px', style: { top: '-10px', textAlign: 'center' }, children: jsxRuntime.jsx(Avatar, { size: "40px", src: userInfo?.avatar, isActiveClick: true }) }), jsxRuntime.jsxs(DescriptionUser$1, { children: [userName && userName?.length > 25 ? (jsxRuntime.jsx(Tooltip, { position: "top", textTooltip: userName, children: jsxRuntime.jsx(NameUser$1, { children: userName }) })) : (jsxRuntime.jsx(NameUser$1, { children: userName })), userEmail && userEmail?.length > 20 ? (jsxRuntime.jsx(Tooltip, { position: "top", textTooltip: userEmail, children: jsxRuntime.jsx(EmailUser$1, { children: limitString(userEmail, 20) }) })) : (jsxRuntime.jsx(EmailUser$1, { children: userEmail }))] })] }), jsxRuntime.jsxs(UserAdditionalInfo$1, { children: [area && area?.length > 31 ? (jsxRuntime.jsx(Tooltip, { position: "top", textTooltip: userInfo?.area, children: jsxRuntime.jsx(Area$1, { variant: variant, children: area }) })) : (jsxRuntime.jsx(Area$1, { variant: variant, children: area })), position && position?.length > 33 ? (jsxRuntime.jsx(Tooltip, { position: "top", textTooltip: userInfo?.position, children: jsxRuntime.jsx(Position$1, { children: position }) })) : (jsxRuntime.jsx(Position$1, { children: position }))] }), variant == 'secondary' ? (jsxRuntime.jsx(FooterButtonVariantIcons, { statusSend: statusSend, clickSendInvitation: clickSendInvitation, handleClickRemove: handleClickRemove, labels: labels, userInfo: userInfo, variant: variant, IconSend: jsxRuntime.jsx(LetterEnvelopLineIcon, {}) })) : (variant == 'tertiary' ?
|
|
15733
|
-
jsxRuntime.jsx(FooterButtonVariantIcons, { statusSend: statusSend, clickSendInvitation: () => handleSendInvitation(userInfo?.id), handleClickRemove: handleClickRemove, labels: labels, userInfo: userInfo, variant: variant, IconSend: jsxRuntime.jsx(PeopleLineIcon, {}) })
|
|
15732
|
+
return (jsxRuntime.jsx(styled.ThemeProvider, { theme: FRSTTheme, children: jsxRuntime.jsxs(WrapperCard$2, { variant: variant, style: { ...style }, children: [jsxRuntime.jsxs(UserInfo$1, { onClick: () => onClickUserInfo ? onClickUserInfo() : {}, children: [jsxRuntime.jsx(Tooltip$2, { direction: "top", content: textVisitProfile ? textVisitProfile : 'Visitar perfil', trigger: 'hover', width: '101px', height: '32px', style: { top: '-10px', textAlign: 'center' }, children: jsxRuntime.jsx(Avatar, { size: "40px", src: userInfo?.avatar, isActiveClick: true }) }), jsxRuntime.jsxs(DescriptionUser$1, { children: [userName && userName?.length > 25 ? (jsxRuntime.jsx(Tooltip, { position: "top", textTooltip: userName, children: jsxRuntime.jsx(NameUser$1, { children: userName }) })) : (jsxRuntime.jsx(NameUser$1, { children: userName })), userEmail && userEmail?.length > 20 ? (jsxRuntime.jsx(Tooltip, { position: "top", textTooltip: userEmail, children: jsxRuntime.jsx(EmailUser$1, { children: limitString(userEmail, 20) }) })) : (jsxRuntime.jsx(EmailUser$1, { children: userEmail }))] })] }), jsxRuntime.jsxs(UserAdditionalInfo$1, { children: [area && area?.length > 31 ? (jsxRuntime.jsx(Tooltip, { position: "top", textTooltip: userInfo?.area, children: jsxRuntime.jsx(Area$1, { variant: variant, children: area }) })) : (jsxRuntime.jsx(Area$1, { variant: variant, children: area })), position && position?.length > 33 ? (jsxRuntime.jsx(Tooltip, { position: "top", textTooltip: userInfo?.position, children: jsxRuntime.jsx(Position$1, { children: position }) })) : (jsxRuntime.jsx(Position$1, { children: position }))] }), variant == 'secondary' ? (jsxRuntime.jsx(FooterButtonVariantIcons, { statusSend: statusSend, clickSendInvitation: clickSendInvitation, handleClickRemove: handleClickRemove, labels: labels, userInfo: userInfo, variant: variant, IconSend: jsxRuntime.jsx(LetterEnvelopLineIcon, {}), hidenRemoveBtn: hidenRemoveBtn })) : (variant == 'tertiary' ?
|
|
15733
|
+
jsxRuntime.jsx(FooterButtonVariantIcons, { statusSend: statusSend, clickSendInvitation: () => handleSendInvitation(userInfo?.id), handleClickRemove: handleClickRemove, labels: labels, userInfo: userInfo, variant: variant, IconSend: jsxRuntime.jsx(PeopleLineIcon, {}), hidenRemoveBtn: hidenRemoveBtn })
|
|
15734
15734
|
:
|
|
15735
15735
|
jsxRuntime.jsx(FooterButtonDefault, { statusSend: statusSend, clickSendInvitation: clickSendInvitation, handleClickRemove: handleClickRemove, labels: labels, userInfo: userInfo }))] }) }));
|
|
15736
15736
|
}
|
|
15737
|
-
function FooterButtonVariantIcons({ statusSend, clickSendInvitation, handleClickRemove, labels, userInfo, variant, IconSend }) {
|
|
15737
|
+
function FooterButtonVariantIcons({ statusSend, clickSendInvitation, handleClickRemove, labels, userInfo, variant, IconSend, hidenRemoveBtn }) {
|
|
15738
15738
|
const [status, setStatus] = React.useState(statusSend);
|
|
15739
15739
|
React.useEffect(() => {
|
|
15740
15740
|
setStatus(statusSend);
|
|
@@ -15743,7 +15743,7 @@ function FooterButtonVariantIcons({ statusSend, clickSendInvitation, handleClick
|
|
|
15743
15743
|
if (variant == 'secondary')
|
|
15744
15744
|
setStatus('success');
|
|
15745
15745
|
clickSendInvitation();
|
|
15746
|
-
}, children: [IconSend, labels?.sendInvitation ? labels?.sendInvitation : 'Convidar'] }), jsxRuntime.jsx(ButtonOrV2, { children: labels.or }), jsxRuntime.jsx(ButtonRemoveV2, { onClick: () => handleClickRemove(userInfo?.id), children: labels?.remove ? labels?.remove : 'Remover' })] })) : null, jsxRuntime.jsx("div", { style: { width: '100%', justifyContent: 'flex-start' }, children: jsxRuntime.jsxs(ButtonSuccessV2, { status: status, children: [jsxRuntime.jsx(CheckInCicle, {}), labels?.invitationSuccess ? labels?.invitationSuccess : 'Convite enviado'] }) })] }));
|
|
15746
|
+
}, children: [IconSend, labels?.sendInvitation ? labels?.sendInvitation : 'Convidar'] }), !hidenRemoveBtn && jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(ButtonOrV2, { children: labels.or }), jsxRuntime.jsx(ButtonRemoveV2, { onClick: () => handleClickRemove(userInfo?.id), children: labels?.remove ? labels?.remove : 'Remover' })] })] })) : null, jsxRuntime.jsx("div", { style: { width: '100%', justifyContent: 'flex-start' }, children: jsxRuntime.jsxs(ButtonSuccessV2, { status: status, children: [jsxRuntime.jsx(CheckInCicle, {}), labels?.invitationSuccess ? labels?.invitationSuccess : 'Convite enviado'] }) })] }));
|
|
15747
15747
|
}
|
|
15748
15748
|
function FooterButtonDefault({ statusSend, clickSendInvitation, labels, handleClickRemove, userInfo }) {
|
|
15749
15749
|
return (jsxRuntime.jsxs(FooterButton, { children: [statusSend == 'default' ? (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [clickSendInvitation ? (jsxRuntime.jsxs(ButtonSend, { onClick: () => clickSendInvitation(), children: [jsxRuntime.jsx(AddPeople, {}), labels?.sendInvitation ? labels?.sendInvitation : 'Enviar convite'] })) : null, handleClickRemove ? (jsxRuntime.jsx(ButtonRemove$1, { onClick: () => handleClickRemove(userInfo?.id), children: labels?.remove ? labels?.remove : 'Remover' })) : null] })) : null, statusSend == 'success' ? (jsxRuntime.jsx("div", { style: { width: '100%', justifyContent: 'flex-start' }, children: jsxRuntime.jsxs(ButtonSuccess, { children: [jsxRuntime.jsx(MessageCheckLine, { width: "14" }), labels?.invitationSuccess ? labels?.invitationSuccess : 'Convite enviado'] }) })) : null] }));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import '../../../shared/global.css';
|
|
3
3
|
import { ParticipantCardI } from './participantCard';
|
|
4
|
-
export default function ParticipantCardOld({ variant, userInfo, labels, successfullInvite, style, handleSendInvitation, handleClickRemove, onClickUserInfo, textVisitProfile }: ParticipantCardI): JSX.Element;
|
|
4
|
+
export default function ParticipantCardOld({ variant, userInfo, labels, successfullInvite, style, handleSendInvitation, handleClickRemove, onClickUserInfo, textVisitProfile, hidenRemoveBtn, }: ParticipantCardI): JSX.Element;
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/IJ/participantCardOld/index.tsx"],"names":[],"mappings":";AAAA,OAAO,4BAA4B,CAAA;AAInC,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AASpD,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,EACzC,OAAO,EACP,QAAQ,EACR,MAAM,EACN,iBAAiB,EACjB,KAAK,EACL,oBAAoB,EACpB,iBAAiB,EACjB,eAAe,EACf,gBAAgB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/IJ/participantCardOld/index.tsx"],"names":[],"mappings":";AAAA,OAAO,4BAA4B,CAAA;AAInC,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AASpD,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,EACzC,OAAO,EACP,QAAQ,EACR,MAAM,EACN,iBAAiB,EACjB,KAAK,EACL,oBAAoB,EACpB,iBAAiB,EACjB,eAAe,EACf,gBAAgB,EAChB,cAAc,GACf,EAAE,gBAAgB,eA0GlB"}
|
|
@@ -3,19 +3,19 @@ interface BaseProps {
|
|
|
3
3
|
className: string;
|
|
4
4
|
[key: string]: unknown;
|
|
5
5
|
}
|
|
6
|
-
export declare const Button: React.ForwardRefExoticComponent<
|
|
6
|
+
export declare const Button: React.ForwardRefExoticComponent<Omit<{
|
|
7
7
|
active: boolean;
|
|
8
8
|
reversed: boolean;
|
|
9
|
-
} & BaseProps,
|
|
10
|
-
export declare const EditorValue: React.ForwardRefExoticComponent<
|
|
9
|
+
} & BaseProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
10
|
+
export declare const EditorValue: React.ForwardRefExoticComponent<Omit<{
|
|
11
11
|
value: any;
|
|
12
|
-
} & BaseProps,
|
|
13
|
-
export declare const Icon: React.ForwardRefExoticComponent<
|
|
14
|
-
export declare const Instruction: React.ForwardRefExoticComponent<
|
|
15
|
-
export declare const Menu: React.ForwardRefExoticComponent<
|
|
12
|
+
} & BaseProps, "ref"> & React.RefAttributes<null>>;
|
|
13
|
+
export declare const Icon: React.ForwardRefExoticComponent<Omit<BaseProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
14
|
+
export declare const Instruction: React.ForwardRefExoticComponent<Omit<BaseProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
+
export declare const Menu: React.ForwardRefExoticComponent<Omit<BaseProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
16
16
|
export declare const Portal: ({ children }: {
|
|
17
17
|
children: any;
|
|
18
18
|
}) => any;
|
|
19
|
-
export declare const Toolbar: React.ForwardRefExoticComponent<
|
|
19
|
+
export declare const Toolbar: React.ForwardRefExoticComponent<Omit<BaseProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
20
20
|
export {};
|
|
21
21
|
//# sourceMappingURL=components.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../../../../src/components/LXP/extraContent/richTextEditor/components.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiC,MAAM,OAAO,CAAA;AAIrD,UAAU,SAAS;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CACvB;AAGD,eAAO,MAAM,MAAM;YASH,OAAO;cACL,OAAO;
|
|
1
|
+
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../../../../src/components/LXP/extraContent/richTextEditor/components.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiC,MAAM,OAAO,CAAA;AAIrD,UAAU,SAAS;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CACvB;AAGD,eAAO,MAAM,MAAM;YASH,OAAO;cACL,OAAO;6DAuBxB,CAAA;AAED,eAAO,MAAM,WAAW;WAQT,GAAG;kDA+CjB,CAAA;AAED,eAAO,MAAM,IAAI,gGAkBhB,CAAA;AAED,eAAO,MAAM,WAAW,+FAoBvB,CAAA;AAED,eAAO,MAAM,IAAI,+FAsBhB,CAAA;AAED,eAAO,MAAM,MAAM;;SAIlB,CAAA;AAED,eAAO,MAAM,OAAO,+FAmBnB,CAAA"}
|
|
@@ -15,7 +15,7 @@ export declare const LoginIconCustom: import("styled-components").StyledComponen
|
|
|
15
15
|
muiName: string;
|
|
16
16
|
}, any, {}, never>;
|
|
17
17
|
export declare const FormControlSelect: import("styled-components").StyledComponent<import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material/FormControl").FormControlTypeMap<{}, "div">>, any, {}, never>;
|
|
18
|
-
export declare const DropDownList: import("styled-components").StyledComponent<(<
|
|
18
|
+
export declare const DropDownList: import("styled-components").StyledComponent<(<Value>(props: import("@mui/material/Select").SelectProps<Value>) => JSX.Element) & {
|
|
19
19
|
muiName: string;
|
|
20
20
|
}, any, {}, never>;
|
|
21
21
|
export declare const LabelDateStepper: import("styled-components").StyledComponent<"label", any, {}, never>;
|