frst-components 0.32.4 → 0.32.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 CHANGED
@@ -6934,18 +6934,18 @@ const CloseIcon = ({ width = 16, height = 16 }) => {
6934
6934
  return (jsxRuntime.jsxs("svg", { width: width, height: height, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [jsxRuntime.jsx("path", { d: "M13.3334 2.66663L2.66675 13.3333", stroke: "#757575", "stroke-width": "1.2", "stroke-linecap": "round", "stroke-linejoin": "round" }), jsxRuntime.jsx("path", { d: "M2.66675 2.66663L13.3334 13.3333", stroke: "#757575", "stroke-width": "1.2", "stroke-linecap": "round", "stroke-linejoin": "round" })] }));
6935
6935
  };
6936
6936
 
6937
- const ActioExperience = ({ handleClickTune, handleClickLift, mainText = 'Você está saindo da Plataforma FRST e indo para o ambiente da Actio. Consulte as soluções abaixo para alinhar o seu desenvolvimento com:' }) => {
6938
- const [isModalOpen, setIsModalOpen] = React.useState(false);
6937
+ const ActioExperience = ({ handleClickTune, handleClickLift, stylesButton, stylesModal, isModalStartOpen, idButton, mainText = 'Você está saindo da Plataforma FRST e indo para o ambiente da Actio. Consulte as soluções abaixo para alinhar o seu desenvolvimento com:' }) => {
6938
+ const [isModalOpen, setIsModalOpen] = React.useState(!!isModalStartOpen);
6939
6939
  const handleOpenModal = () => {
6940
6940
  setIsModalOpen(true);
6941
6941
  };
6942
6942
  const handleCloseModal = () => {
6943
6943
  setIsModalOpen(false);
6944
6944
  };
6945
- return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(ButtonActionExperience, { onClick: handleOpenModal, children: jsxRuntime.jsx(ActioLogo, {}) }), isModalOpen && (jsxRuntime.jsx(ModalActionExperience, { onClose: handleCloseModal, handleClickTune: handleClickTune, handleClickLift: handleClickLift, mainText: mainText }))] }));
6945
+ return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(ButtonActionExperience, { onClick: handleOpenModal, style: { ...stylesButton }, id: idButton, children: jsxRuntime.jsx(ActioLogo, {}) }), isModalOpen && (jsxRuntime.jsx(ModalActionExperience, { styles: stylesModal, onClose: handleCloseModal, handleClickTune: handleClickTune, handleClickLift: handleClickLift, mainText: mainText }))] }));
6946
6946
  };
6947
- const ModalActionExperience = ({ onClose, handleClickTune, handleClickLift, mainText }) => {
6948
- return (jsxRuntime.jsx(ModalOverlay, { onClick: onClose, children: jsxRuntime.jsxs(ModalContainer$1, { onClick: (e) => e.stopPropagation(), children: [jsxRuntime.jsx(CloseButton$3, { onClick: onClose, children: jsxRuntime.jsx(CloseIcon, {}) }), jsxRuntime.jsx(WomanIllustration, { children: jsxRuntime.jsx(Woman, {}) }), jsxRuntime.jsx(ModalHeader$2, { children: jsxRuntime.jsx(ActioLogo, { width: 194, height: 50 }) }), jsxRuntime.jsx(ModalContent$1, { children: jsxRuntime.jsxs(TextSection, { children: [jsxRuntime.jsx(MainText, { children: mainText }), jsxRuntime.jsxs(SolutionsContainer, { children: [jsxRuntime.jsxs(SolutionItem, { children: [jsxRuntime.jsx("strong", { children: "Tune:" }), " Indicadores estrat\u00E9gicos da empresa"] }), jsxRuntime.jsxs(SolutionItem, { children: [jsxRuntime.jsx("strong", { children: "Lift:" }), " Seu desenvolvimento e da sua equipe"] })] }), jsxRuntime.jsxs(ButtonsContainer, { children: [jsxRuntime.jsx(SolutionButton, { onClick: handleClickTune, variant: "secondary", children: jsxRuntime.jsx(TuneLogo, { width: 104, height: 54 }) }), jsxRuntime.jsx(SolutionButton, { onClick: handleClickLift, variant: "primary", children: jsxRuntime.jsx(LiftLogo, { width: 60, height: 44 }) })] })] }) })] }) }));
6947
+ const ModalActionExperience = ({ onClose, handleClickTune, handleClickLift, mainText, styles }) => {
6948
+ return (jsxRuntime.jsx(ModalOverlay, { onClick: onClose, children: jsxRuntime.jsxs(ModalContainer$1, { onClick: (e) => e.stopPropagation(), style: { ...styles }, children: [jsxRuntime.jsx(CloseButton$3, { onClick: onClose, children: jsxRuntime.jsx(CloseIcon, {}) }), jsxRuntime.jsx(WomanIllustration, { children: jsxRuntime.jsx(Woman, {}) }), jsxRuntime.jsx(ModalHeader$2, { children: jsxRuntime.jsx(ActioLogo, { width: 194, height: 50 }) }), jsxRuntime.jsx(ModalContent$1, { children: jsxRuntime.jsxs(TextSection, { children: [jsxRuntime.jsx(MainText, { children: mainText }), jsxRuntime.jsxs(SolutionsContainer, { children: [jsxRuntime.jsxs(SolutionItem, { children: [jsxRuntime.jsx("strong", { children: "Tune:" }), " Indicadores estrat\u00E9gicos da empresa"] }), jsxRuntime.jsxs(SolutionItem, { children: [jsxRuntime.jsx("strong", { children: "Lift:" }), " Seu desenvolvimento e da sua equipe"] })] }), jsxRuntime.jsxs(ButtonsContainer, { children: [jsxRuntime.jsx(SolutionButton, { onClick: handleClickTune, variant: "secondary", children: jsxRuntime.jsx(TuneLogo, { width: 104, height: 54 }) }), jsxRuntime.jsx(SolutionButton, { onClick: handleClickLift, variant: "primary", children: jsxRuntime.jsx(LiftLogo, { width: 60, height: 44 }) })] })] }) })] }) }));
6949
6949
  };
6950
6950
 
6951
6951
  // Create react context to share data between components
@@ -1,6 +1,10 @@
1
- export declare const ActioExperience: ({ handleClickTune, handleClickLift, mainText }: {
1
+ export declare const ActioExperience: ({ handleClickTune, handleClickLift, stylesButton, stylesModal, isModalStartOpen, idButton, mainText }: {
2
2
  handleClickTune: () => void;
3
3
  handleClickLift: () => void;
4
4
  mainText?: string;
5
+ stylesButton?: any;
6
+ stylesModal?: any;
7
+ isModalStartOpen?: boolean;
8
+ idButton?: string;
5
9
  }) => import("react/jsx-runtime").JSX.Element;
6
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/actioExperience/index.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,eAAe;qBAKP,MAAM,IAAI;qBACV,MAAM,IAAI;eAChB,MAAM;6CA2BpB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/actioExperience/index.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,eAAe;qBASP,MAAM,IAAI;qBACV,MAAM,IAAI;eAChB,MAAM;mBACF,GAAG;kBACJ,GAAG;uBACE,OAAO;eACf,MAAM;6CA4BpB,CAAA"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "frst-components",
3
3
  "homepage": "http://FRST-Falconi.github.io/storybook.frstfalconi.com",
4
- "version": "0.32.4",
4
+ "version": "0.32.6",
5
5
  "private": false,
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",