frst-components 0.23.0 → 0.23.2

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
@@ -7699,14 +7699,15 @@ function CardDefinicaoFase(props) {
7699
7699
  const Container$f = styled__default["default"].div `
7700
7700
  width: 282px !important;
7701
7701
  max-width: 282px !important;
7702
- height: 430px;
7703
- max-height: 430px;
7702
+ height: 472px;
7703
+ max-height: 472px;
7704
7704
  color: #222222;
7705
7705
  background-color: #fff;
7706
7706
  border-radius: 10px;
7707
- justify-content: center;
7707
+ justify-content: space-between;
7708
7708
  align-items: center;
7709
7709
  flex-direction: column;
7710
+ display: flex;
7710
7711
  position: relative;
7711
7712
  word-break: break-word !important;
7712
7713
  word-wrap: break-word !important;
@@ -7729,6 +7730,7 @@ const HeaderContainer = styled__default["default"].div `
7729
7730
  justify-content: center;
7730
7731
  align-items: flex-end;
7731
7732
  background: #f18624;
7733
+ width: 100%;
7732
7734
  height: 45px;
7733
7735
  max-width: 282px;
7734
7736
  border-radius: 8px 8px 0px 0px;
@@ -7753,8 +7755,9 @@ const Description$3 = styled__default["default"].span `
7753
7755
  font-size: 16px;
7754
7756
  color: #f18624;
7755
7757
  max-width: 250px;
7756
- max-height: 97px;
7757
- overflow: auto;
7758
+ max-height: 70px;
7759
+ overflow-y: auto;
7760
+ overflow-x: hidden;
7758
7761
  word-break: break-word !important;
7759
7762
  word-wrap: break-word !important;
7760
7763
  overflow-wrap: break-word !important;
@@ -7801,14 +7804,6 @@ const TitleDescription = styled__default["default"].span `
7801
7804
  word-wrap: break-word !important;
7802
7805
  overflow-wrap: break-word !important;
7803
7806
  `;
7804
- styled__default["default"].div `
7805
- display: flex;
7806
- justify-content: center;
7807
- height: 55px;
7808
- padding: 0 35px;
7809
- border-radius: 0px 0px 8px 8px;
7810
- border: 1px solid #bdbdbd;
7811
- `;
7812
7807
  const ButtonContainer = styled__default["default"].div `
7813
7808
  display: flex;
7814
7809
  justify-content: center;
@@ -7821,12 +7816,14 @@ const ButtonContainer = styled__default["default"].div `
7821
7816
  font-weight: 600;
7822
7817
  font-family: 'PT Sans';
7823
7818
  cursor: pointer;
7819
+ width: 100%;
7824
7820
  `;
7825
7821
  const HypothesysAndActions = styled__default["default"].div `
7826
7822
  display: flex;
7827
7823
  justify-content: space-evenly;
7828
7824
  align-items: center;
7829
7825
  margin-bottom: 1.5rem;
7826
+ width: 100%;
7830
7827
 
7831
7828
  .items {
7832
7829
  display: flex;
@@ -7840,8 +7837,7 @@ const HypothesysAndActions = styled__default["default"].div `
7840
7837
  }
7841
7838
 
7842
7839
  .number-items {
7843
- font-size: 24px;
7844
- font-family: 'PT Sans';
7840
+ font-size: 40px;
7845
7841
  font-weight: 700;
7846
7842
  color: #475569;
7847
7843
  margin-top: -3px;
@@ -7876,7 +7872,7 @@ function CardFaseDesafios(props) {
7876
7872
  return jsxRuntime.jsx(FaseUmDesafio, {});
7877
7873
  }
7878
7874
  }
7879
- return (jsxRuntime.jsxs(Container$f, { children: [jsxRuntime.jsx(HeaderContainer, { children: jsxRuntime.jsx(PhaseNumber, { children: props.fase ? handleFase() : jsxRuntime.jsx(FaseUmDesafio, {}) }) }), jsxRuntime.jsxs(DescriptionContainer, { children: [jsxRuntime.jsx(CardTitlePhase, { children: props.titleFase ? props.titleFase : 'Definição' }), jsxRuntime.jsxs(TitleDescription, { children: [" ", props.cardTitle] }), jsxRuntime.jsxs(Description$3, { children: [" ", props.cardDescription] })] }), jsxRuntime.jsxs(HypothesysAndActions, { children: [jsxRuntime.jsxs("div", { className: "items", children: [jsxRuntime.jsx("img", { src: "https://cdn-images.frstfalconi.cloud/hall/hyphotese.svg", alt: "" }), jsxRuntime.jsx("p", { className: "text-items", children: "Hip\u00F3teses" }), jsxRuntime.jsx("p", { className: "number-items", children: props.Hypotheshis ? props.Hypotheshis : 0 })] }), jsxRuntime.jsxs("div", { className: "items", children: [jsxRuntime.jsx("img", { src: "https://cdn-images.frstfalconi.cloud/hall/actions.svg", alt: "" }), jsxRuntime.jsx("p", { className: "text-items", children: "A\u00E7\u00F5es" }), jsxRuntime.jsx("p", { className: "number-items", children: props.Actions ? props.Actions : 0 })] })] }), props.HypothesesToTest && (jsxRuntime.jsxs(PendingHypotheses, { children: [jsxRuntime.jsx(WarnCard, {}), jsxRuntime.jsxs("span", { style: { fontSize: '14px', fontFamily: 'PT Sans', color: '#334155' }, children: ["Ainda existem ", jsxRuntime.jsxs("span", { style: { fontWeight: 700 }, children: [props.HypothesesToTest, " hip\u00F3teses"] }), " que n\u00E3o foram testadas."] })] })), props.fase === 'finalizado' ? (jsxRuntime.jsxs(ButtonContainer, { children: [jsxRuntime.jsx("p", { onClick: props.handleToView, children: props.textButton ? props.textButton : 'Visualizar' }), jsxRuntime.jsx(MenuMore, { style: { position: 'absolute', right: '1rem' }, isDarkMode: true, options: props.optionsMenuMore })] })) : (jsxRuntime.jsxs(ButtonContainer, { children: [jsxRuntime.jsx("p", { onClick: props.handleToView, children: props.textButton ? props.textButton : 'Continuar desafio' }), jsxRuntime.jsx(MenuMore, { style: { position: 'absolute', right: '1rem' }, options: props.optionsMenuMore })] }))] }));
7875
+ return (jsxRuntime.jsxs(Container$f, { children: [jsxRuntime.jsx(HeaderContainer, { children: jsxRuntime.jsx(PhaseNumber, { children: props.fase ? handleFase() : jsxRuntime.jsx(FaseUmDesafio, {}) }) }), jsxRuntime.jsxs(DescriptionContainer, { children: [jsxRuntime.jsx(CardTitlePhase, { children: props.titleFase ? props.titleFase : 'Definição' }), jsxRuntime.jsxs(TitleDescription, { children: [" ", props.cardTitle] }), jsxRuntime.jsxs(Description$3, { children: [" ", props.cardDescription] })] }), jsxRuntime.jsxs(HypothesysAndActions, { children: [jsxRuntime.jsxs(material.Box, { className: "items", children: [jsxRuntime.jsx("img", { src: "https://cdn-images.frstfalconi.cloud/hall/hyphotese.svg", alt: "" }), jsxRuntime.jsx("p", { className: "text-items", children: "Hip\u00F3teses" }), jsxRuntime.jsx("p", { className: "number-items", children: props.Hypotheshis ? props.Hypotheshis : 0 })] }), jsxRuntime.jsxs(material.Box, { className: "items", children: [jsxRuntime.jsx("img", { src: "https://cdn-images.frstfalconi.cloud/hall/actions.svg", alt: "" }), jsxRuntime.jsx("p", { className: "text-items", children: "A\u00E7\u00F5es" }), jsxRuntime.jsx("p", { className: "number-items", children: props.Actions ? props.Actions : 0 })] })] }), props.HypothesesToTest ? (jsxRuntime.jsxs(PendingHypotheses, { children: [jsxRuntime.jsx(WarnCard, {}), jsxRuntime.jsxs("span", { style: { fontSize: '14px', fontFamily: 'PT Sans', color: '#334155' }, children: ["Ainda existem ", jsxRuntime.jsxs("span", { style: { fontWeight: 700 }, children: [props.HypothesesToTest, " hip\u00F3teses"] }), " que n\u00E3o foram testadas."] })] })) : null, props.fase === 'finalizado' ? (jsxRuntime.jsxs(ButtonContainer, { children: [jsxRuntime.jsx("p", { onClick: props.handleToView, children: props.textButton ? props.textButton : 'Visualizar' }), jsxRuntime.jsx(MenuMore, { style: { position: 'absolute', right: '1rem' }, isDarkMode: true, options: props.optionsMenuMore })] })) : (jsxRuntime.jsxs(ButtonContainer, { children: [jsxRuntime.jsx("p", { onClick: props.handleToView, children: props.textButton ? props.textButton : 'Continuar desafio' }), jsxRuntime.jsx(MenuMore, { style: { position: 'absolute', right: '1rem' }, options: props.optionsMenuMore })] }))] }));
7880
7876
  }
7881
7877
 
7882
7878
  var css_248z$b = ".cardResultConquista-module_container__39blw {\n display: flex;\n justify-content: flex-start;\n align-items: center;\n flex-direction: column;\n position: relative;\n\n width: 343px;\n height: 265px;\n padding: 24px;\n border: 1px solid #BDBDBD;\n border-radius: 8px;\n font-family: 'work sans';\n word-wrap: break-word;\n}\n\n.cardResultConquista-module_container__39blw:hover {\n box-shadow: 0px 0px 20px -7px #BDBDBD;\n}\n\n.cardResultConquista-module_container__39blw:active {\n box-shadow: 0px 0px 20px -7px #BDBDBD;\n background-color: #FF4D0D;\n}\n\n.cardResultConquista-module_cardAvatar__mEUL0 {\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: row;\n}\n\n.cardResultConquista-module_description__rgSn5 {\n max-height: 100px !important;\n width: 300px;\n text-overflow: ellipsis;\n overflow: hidden;\n display: -webkit-box;\n -webkit-line-clamp: 4; /** número de linhas que você quer exibir */\n -webkit-box-orient: vertical;\n word-wrap: break-word;\n}\n\n.cardResultConquista-module_verMais__8mtfe {\n position:absolute;\n color: #0645AD;\n font-weight: 700;\n right: 0;\n bottom: 0;\n margin-right: 20px;\n margin-bottom: 12px;\n}";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/cards/cardFaseDesafios/index.tsx"],"names":[],"mappings":";AAAA,OAAO,4BAA4B,CAAA;AAKnC,UAAU,qBAAqB;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,mBAAmB,CAAC,EAAE,MAAM,IAAI,CAAA;IAChC,YAAY,CAAC,EAAE,MAAM,IAAI,CAAA;IACzB,eAAe,CAAC,EAAE,GAAG,GAAG,GAAG,EAAE,CAAA;IAC7B,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,IAAI,CAAC,EAAE,YAAY,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAA;IACjD,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,kBAAkB,CAAC,EAAE,MAAM,CAAA;CAC5B;AAED,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,eAiEpE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/cards/cardFaseDesafios/index.tsx"],"names":[],"mappings":";AAAA,OAAO,4BAA4B,CAAA;AAMnC,UAAU,qBAAqB;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,mBAAmB,CAAC,EAAE,MAAM,IAAI,CAAA;IAChC,YAAY,CAAC,EAAE,MAAM,IAAI,CAAA;IACzB,eAAe,CAAC,EAAE,GAAG,GAAG,GAAG,EAAE,CAAA;IAC7B,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,IAAI,CAAC,EAAE,YAAY,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAA;IACjD,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,kBAAkB,CAAC,EAAE,MAAM,CAAA;CAC5B;AAED,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,eAiEpE"}
@@ -5,7 +5,6 @@ export declare const DescriptionContainer: import("styled-components").StyledCom
5
5
  export declare const Description: import("styled-components").StyledComponent<"span", any, {}, never>;
6
6
  export declare const CardTitlePhase: import("styled-components").StyledComponent<"div", any, {}, never>;
7
7
  export declare const TitleDescription: import("styled-components").StyledComponent<"span", any, {}, never>;
8
- export declare const ViewButton: import("styled-components").StyledComponent<"div", any, {}, never>;
9
8
  export declare const ButtonContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
10
9
  export declare const HypothesysAndActions: import("styled-components").StyledComponent<"div", any, {}, never>;
11
10
  export declare const PendingHypotheses: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/cards/cardFaseDesafios/styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,oEAerB,CAAA;AAED,eAAO,MAAM,WAAW,oEAWvB,CAAA;AAED,eAAO,MAAM,eAAe,oEAQ3B,CAAA;AAED,eAAO,MAAM,oBAAoB,oEAYhC,CAAA;AAED,eAAO,MAAM,WAAW,qEA6BvB,CAAA;AAED,eAAO,MAAM,cAAc,oEAY1B,CAAA;AAED,eAAO,MAAM,gBAAgB,qEAW5B,CAAA;AACD,eAAO,MAAM,UAAU,oEAOtB,CAAA;AAED,eAAO,MAAM,eAAe,oEAY3B,CAAA;AAED,eAAO,MAAM,oBAAoB,oEAyBhC,CAAA;AAED,eAAO,MAAM,iBAAiB,oEAO7B,CAAA"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/cards/cardFaseDesafios/styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,oEAgBrB,CAAA;AAED,eAAO,MAAM,WAAW,oEAWvB,CAAA;AAED,eAAO,MAAM,eAAe,oEAS3B,CAAA;AAED,eAAO,MAAM,oBAAoB,oEAYhC,CAAA;AAED,eAAO,MAAM,WAAW,qEA8BvB,CAAA;AAED,eAAO,MAAM,cAAc,oEAY1B,CAAA;AAED,eAAO,MAAM,gBAAgB,qEAW5B,CAAA;AACD,eAAO,MAAM,eAAe,oEAa3B,CAAA;AAED,eAAO,MAAM,oBAAoB,oEAyBhC,CAAA;AAED,eAAO,MAAM,iBAAiB,oEAO7B,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.23.00",
4
+ "version": "0.23.02",
5
5
  "private": false,
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",