frst-components 0.20.45 → 0.20.48

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
@@ -8061,17 +8061,24 @@ const ListCounters = styled__default["default"].div `
8061
8061
  right: 50%;
8062
8062
  `;
8063
8063
  const Counters = styled__default["default"].button `
8064
- width: 16px;
8065
- height: 16px;
8064
+ width: 11px;
8065
+ height: 11px;
8066
8066
  box-sizing: border-box;
8067
8067
  border-radius: 100%;
8068
8068
  border: none;
8069
8069
  background-color: ${({ selected, theme }) => (selected ? theme.colors.primary1 : theme.colors.neutralsGrey5)};
8070
8070
  `;
8071
- const Title$1 = styled__default["default"].div `
8071
+ const Title$1 = styled__default["default"].h2 `
8072
8072
  font-size: 40px;
8073
8073
  font-weight: 700;
8074
- max-width: 40rem;
8074
+ max-width: 60vw;
8075
+ margin-top: 0;
8076
+ display: -webkit-box;
8077
+ -webkit-line-clamp: 1;
8078
+ -webkit-box-orient: vertical;
8079
+ overflow: hidden;
8080
+ text-overflow: ellipsis;
8081
+
8075
8082
  @media (max-width: 320px) {
8076
8083
  word-break: break-word;
8077
8084
  font-size: 25px;
@@ -8080,7 +8087,6 @@ const Title$1 = styled__default["default"].div `
8080
8087
  const Description$1 = styled__default["default"].div `
8081
8088
  font-size: 16px;
8082
8089
  font-weight: 400;
8083
- margin-top: 32px;
8084
8090
  max-width: 44rem;
8085
8091
  height: fit-content;
8086
8092
  ${(props) => !props.zeroHeigthDescription &&
@@ -8115,16 +8121,12 @@ const Description$1 = styled__default["default"].div `
8115
8121
  }
8116
8122
  `;
8117
8123
  const SpaceProgressAndButton = styled__default["default"].div `
8118
- margin-top: 68px;
8119
8124
  display: flex;
8120
- height: 50px;
8121
8125
  gap: 28px;
8122
8126
  align-items: center;
8123
- margin-bottom: 2rem;
8124
8127
  cursor: pointer;
8125
8128
  @media (max-width: 414px) {
8126
8129
  flex-direction: column;
8127
- margin-top: 40px;
8128
8130
  }
8129
8131
  @media (max-width: 320px) {
8130
8132
  font-size: 14px;
@@ -8145,8 +8147,6 @@ styled__default["default"].div `
8145
8147
  }
8146
8148
  `;
8147
8149
  const SpaceButtonTop = styled__default["default"].div `
8148
- margin-top: 48px;
8149
- margin-bottom: 2rem;
8150
8150
  button {
8151
8151
  @media (max-width: 320px) {
8152
8152
  font-size: 14px;
@@ -8154,28 +8154,59 @@ const SpaceButtonTop = styled__default["default"].div `
8154
8154
  }
8155
8155
  `;
8156
8156
  const SpaceButtonTopViewMore = styled__default["default"].section `
8157
- margin-top: 1rem;
8158
- margin-bottom: 1rem;
8159
8157
  display: flex;
8160
8158
  cursor: pointer;
8161
- svg {
8162
- rotate: 269deg;
8163
- margin-top: 0.2rem;
8164
- margin-left: 0.5rem;
8165
- ${(props) => !props.zeroHeigthDescription
8166
- ? styled.css `
8167
- transform: rotate(3.142rad);
8168
- transition: transform 0.5s;
8169
- `
8170
- : styled.css `
8171
- transform: rotate(360deg);
8172
- transition: transform 0.5s;
8173
- `}
8159
+ align-items: center;
8160
+ gap: 10px;
8161
+
8162
+ &.open {
8163
+ margin-top: -20px;
8164
+ }
8165
+ &.closed {
8166
+ margin-top: 0;
8167
+ }
8168
+
8169
+ > span {
8170
+ transform: rotate(90deg);
8171
+
8172
+ &.open {
8173
+ animation: 0.2s open both;
8174
+ }
8175
+ &.closed {
8176
+ animation: 0.2s closed both;
8177
+ }
8174
8178
  }
8175
8179
  a {
8176
8180
  color: #649af3;
8177
8181
  font-weight: 700;
8178
8182
  }
8183
+
8184
+ @keyframes open {
8185
+ to {
8186
+ transform: rotate(450deg);
8187
+ }
8188
+ }
8189
+
8190
+ @keyframes closed {
8191
+ to {
8192
+ transform: rotate(-90deg);
8193
+ }
8194
+ }
8195
+ `;
8196
+ const StyleHeaderInProgress = styled__default["default"].div `
8197
+ width: 100%;
8198
+ height: 100%;
8199
+ display: flex;
8200
+ flex-direction: column;
8201
+ align-items: flex-start;
8202
+ justify-content: space-between;
8203
+
8204
+ > section {
8205
+ width: 100%;
8206
+ display: flex;
8207
+ flex-direction: column;
8208
+ gap: 24px;
8209
+ }
8179
8210
  `;
8180
8211
 
8181
8212
  function HeaderContent(props) {
@@ -8201,10 +8232,10 @@ function HeaderContent(props) {
8201
8232
  }
8202
8233
  }
8203
8234
  function RecomendationHeader(item) {
8204
- return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Title$1, { children: item.title }), jsxRuntime.jsx(Description$1, { zeroHeigthDescription: zeroHeigthDescription, children: item.description }), jsxRuntime.jsxs(SpaceButtonTopViewMore, { zeroHeigthDescription: zeroHeigthDescription, onClick: addHeigthDescription, children: [jsxRuntime.jsx(Button$5, { label: textView, variant: "link", style: { color: '#649AF3', fontWeight: '900' } }), jsxRuntime.jsx(ArrowScrollRight, { fill: "#649AF3", width: "13px", height: "13px", strokeWidth: '4' })] }), jsxRuntime.jsx(SpaceButtonTop, { onClick: item.onClick, children: jsxRuntime.jsx(Button$5, { label: item.labelButton, variant: "primary" }) })] }));
8235
+ return (jsxRuntime.jsxs(StyleHeaderInProgress, { children: [jsxRuntime.jsxs("section", { children: [jsxRuntime.jsx(Title$1, { children: item.title }), jsxRuntime.jsx(Description$1, { zeroHeigthDescription: zeroHeigthDescription, children: item.description }), jsxRuntime.jsxs(SpaceButtonTopViewMore, { className: zeroHeigthDescription ? 'open' : 'closed', zeroHeigthDescription: zeroHeigthDescription, onClick: addHeigthDescription, children: [jsxRuntime.jsx(Button$5, { label: textView, variant: "link", style: { color: '#649AF3', fontWeight: '900' } }), jsxRuntime.jsx("span", { className: zeroHeigthDescription ? 'open' : 'closed', children: jsxRuntime.jsx(ArrowScrollRight, { fill: "#649AF3", width: "13px", height: "13px", strokeWidth: '4' }) })] })] }), jsxRuntime.jsx(SpaceButtonTop, { onClick: item.onClick, children: jsxRuntime.jsx(Button$5, { label: item.labelButton, variant: "primary" }) })] }));
8205
8236
  }
8206
8237
  function InProgressHeader(item) {
8207
- return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Title$1, { children: item.title }), jsxRuntime.jsx(Description$1, { zeroHeigthDescription: zeroHeigthDescription, children: item.description }), jsxRuntime.jsxs(SpaceButtonTopViewMore, { zeroHeigthDescription: zeroHeigthDescription, onClick: addHeigthDescription, children: [jsxRuntime.jsx(Button$5, { label: textView, variant: "link", style: { color: '#649AF3', fontWeight: '900' } }), jsxRuntime.jsx(ArrowScrollRight, { fill: "#649AF3", width: "13px", height: "13px", strokeWidth: '4' })] }), jsxRuntime.jsxs(SpaceProgressAndButton, { children: [jsxRuntime.jsx(ProgressBar$1, { value: item.progresso, label: item.channel, style: { width: 200 } }), jsxRuntime.jsx(Button$5, { label: item.labelButton, variant: "primary", handleClick: item.onClick })] })] }));
8238
+ return (jsxRuntime.jsxs(StyleHeaderInProgress, { children: [jsxRuntime.jsxs("section", { children: [jsxRuntime.jsx(Title$1, { title: item.title, children: item.title }), jsxRuntime.jsx(Description$1, { zeroHeigthDescription: zeroHeigthDescription, children: item.description }), jsxRuntime.jsxs(SpaceButtonTopViewMore, { className: zeroHeigthDescription ? 'open' : 'closed', zeroHeigthDescription: zeroHeigthDescription, onClick: addHeigthDescription, children: [jsxRuntime.jsx(Button$5, { label: textView, variant: "link", style: { color: '#649AF3', fontWeight: '900' } }), jsxRuntime.jsx("span", { className: zeroHeigthDescription ? 'open' : 'closed', children: jsxRuntime.jsx(ArrowScrollRight, { fill: "#649AF3", width: "13px", height: "13px", strokeWidth: '4' }) })] })] }), jsxRuntime.jsxs(SpaceProgressAndButton, { children: [jsxRuntime.jsx(ProgressBar$1, { value: item.progresso, label: item.channel, style: { width: 200 } }), jsxRuntime.jsx(Button$5, { label: item.labelButton, variant: "primary", handleClick: item.onClick })] })] }));
8208
8239
  }
8209
8240
  return (jsxRuntime.jsx(styled.ThemeProvider, { theme: FRSTTheme, children: jsxRuntime.jsxs(Container$9, { style: { ...props.style }, children: [props.listaRecomendacao.map((item, index) => {
8210
8241
  return (jsxRuntime.jsx(HeaderImage$1, { img: item.bgImg, tmnDescription: item.description.length, onDisplay: index === selectedContent, style: { ...props.style }, children: jsxRuntime.jsx(jsxRuntime.Fragment, { children: item.typeOfHeader === 'inProgress' ? (jsxRuntime.jsx(Content, { height: props?.height, onDisplay: index === selectedContent, children: InProgressHeader(item) })) : (jsxRuntime.jsx(Content, { height: props?.height, onDisplay: index === selectedContent, children: RecomendationHeader(item) })) }) }, index));
@@ -12,11 +12,12 @@ export declare const ListCounters: import("styled-components").StyledComponent<"
12
12
  export declare const Counters: import("styled-components").StyledComponent<"button", any, {
13
13
  selected: boolean;
14
14
  }, never>;
15
- export declare const Title: import("styled-components").StyledComponent<"div", any, {}, never>;
15
+ export declare const Title: import("styled-components").StyledComponent<"h2", any, {}, never>;
16
16
  export declare const Description: import("styled-components").StyledComponent<"div", any, HeaderContentProps, never>;
17
17
  export declare const SpaceProgressAndButton: import("styled-components").StyledComponent<"div", any, {}, never>;
18
18
  export declare const SpaceButtonLeft: import("styled-components").StyledComponent<"div", any, {}, never>;
19
19
  export declare const SpaceButtonTop: import("styled-components").StyledComponent<"div", any, {}, never>;
20
20
  export declare const SpaceButtonTopViewMore: import("styled-components").StyledComponent<"section", any, HeaderContentProps, never>;
21
+ export declare const StyleHeaderInProgress: import("styled-components").StyledComponent<"div", any, {}, never>;
21
22
  export {};
22
23
  //# sourceMappingURL=headerContent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"headerContent.d.ts","sourceRoot":"","sources":["../../../../../src/components/LXP/headerContent/headerContent.ts"],"names":[],"mappings":"AAEA,UAAU,kBAAkB;IAC1B,GAAG,CAAC,EAAE,GAAG,CAAA;IACT,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;CACzB;AAED,eAAO,MAAM,SAAS,oEAGrB,CAAA;AAED,eAAO,MAAM,WAAW,oFAgDvB,CAAA;AACD,eAAO,MAAM,OAAO,oFAenB,CAAA;AAED,eAAO,MAAM,YAAY,oEAUxB,CAAA;AAED,eAAO,MAAM,QAAQ;cAA6B,OAAO;SAOxD,CAAA;AAED,eAAO,MAAM,KAAK,oEAQjB,CAAA;AAED,eAAO,MAAM,WAAW,oFAwCvB,CAAA;AAED,eAAO,MAAM,sBAAsB,oEAelC,CAAA;AACD,eAAO,MAAM,eAAe,oEAa3B,CAAA;AACD,eAAO,MAAM,cAAc,oEAQ1B,CAAA;AAED,eAAO,MAAM,sBAAsB,wFAwBlC,CAAA"}
1
+ {"version":3,"file":"headerContent.d.ts","sourceRoot":"","sources":["../../../../../src/components/LXP/headerContent/headerContent.ts"],"names":[],"mappings":"AAEA,UAAU,kBAAkB;IAC1B,GAAG,CAAC,EAAE,GAAG,CAAA;IACT,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;CACzB;AAED,eAAO,MAAM,SAAS,oEAGrB,CAAA;AAED,eAAO,MAAM,WAAW,oFAgDvB,CAAA;AACD,eAAO,MAAM,OAAO,oFAenB,CAAA;AAED,eAAO,MAAM,YAAY,oEAUxB,CAAA;AAED,eAAO,MAAM,QAAQ;cAA6B,OAAO;SAOxD,CAAA;AAED,eAAO,MAAM,KAAK,mEAejB,CAAA;AAED,eAAO,MAAM,WAAW,oFAuCvB,CAAA;AAED,eAAO,MAAM,sBAAsB,oEAWlC,CAAA;AACD,eAAO,MAAM,eAAe,oEAa3B,CAAA;AACD,eAAO,MAAM,cAAc,oEAM1B,CAAA;AAED,eAAO,MAAM,sBAAsB,wFAuClC,CAAA;AACD,eAAO,MAAM,qBAAqB,oEAcjC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/LXP/headerContent/index.tsx"],"names":[],"mappings":";AAQA,UAAU,cAAc;IACtB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,YAAY,CAAC,EAAE,YAAY,GAAG,eAAe,CAAA;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;CACzB;AACD,UAAU,mBAAmB;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,iBAAiB,EAAE,KAAK,CAAC,cAAc,CAAC,CAAA;IACxC,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAA;IAC3B,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;CACzB;AAED,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,KAAK,EAAE,mBAAmB,eA4G/D"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/LXP/headerContent/index.tsx"],"names":[],"mappings":";AAQA,UAAU,cAAc;IACtB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,YAAY,CAAC,EAAE,YAAY,GAAG,eAAe,CAAA;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;CACzB;AACD,UAAU,mBAAmB;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,iBAAiB,EAAE,KAAK,CAAC,cAAc,CAAC,CAAA;IACxC,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAA;IAC3B,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;CACzB;AAED,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,KAAK,EAAE,mBAAmB,eAuH/D"}
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.20.45",
4
+ "version": "0.20.48",
5
5
  "private": false,
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",