frst-components 0.21.22 → 0.21.23

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
@@ -4950,7 +4950,7 @@ function Loading(props) {
4950
4950
  const CardContainer$1 = styled__default["default"].div `
4951
4951
  box-sizing: border-box;
4952
4952
  max-width: 100%;
4953
- height: 680px;
4953
+ height: auto;
4954
4954
  background:${({ theme }) => theme.colors.shadeWhite};
4955
4955
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2);
4956
4956
  border-color: ${({ theme }) => theme.colors.linkDisabled};
@@ -5042,10 +5042,10 @@ const CheckCircle = styled__default["default"].div `
5042
5042
  `;
5043
5043
 
5044
5044
  function OnboardingProgressMenu(props) {
5045
- const { items, level, textChallenge, avatar, countChallenge, style } = props;
5045
+ const { items, level, textChallenge, countChallenge, style } = props;
5046
5046
  const [internalItems, setInternalItems] = React.useState(items);
5047
5047
  const [isScrollInTop, setIsScrollInTop] = React.useState(true);
5048
- const [isScrollInBottom, setIsScrollInBottom] = React.useState(false);
5048
+ const [isScrollInBottom, setIsScrollInBottom] = React.useState(true);
5049
5049
  React.useEffect(() => {
5050
5050
  const sortedData = [...items].sort((a, b) => {
5051
5051
  if (a.finished && !b.finished) {
@@ -5069,7 +5069,7 @@ function OnboardingProgressMenu(props) {
5069
5069
  }
5070
5070
  };
5071
5071
  usehooksTs.useEventListener('scroll', handleScroll, scrollRef);
5072
- return (jsxRuntime.jsx(styled.ThemeProvider, { theme: FRSTTheme, children: jsxRuntime.jsxs(CardContainer$1, { style: { ...style }, children: [jsxRuntime.jsxs(ImageTextGroup, { children: [jsxRuntime.jsx("img", { src: avatar, width: 55, height: 55 }), jsxRuntime.jsxs("div", { children: [jsxRuntime.jsx(TextLevel, { children: level }), jsxRuntime.jsxs(Challenge, { children: [countChallenge, " ", textChallenge] })] })] }), internalItems.length >= 7 && !isScrollInTop && (jsxRuntime.jsx("div", { style: {
5072
+ return (jsxRuntime.jsx(styled.ThemeProvider, { theme: FRSTTheme, children: jsxRuntime.jsxs(CardContainer$1, { style: { ...style }, children: [jsxRuntime.jsxs(ImageTextGroup, { children: [jsxRuntime.jsx("img", { src: level.avatar, width: 55, height: 55 }), jsxRuntime.jsxs("div", { children: [jsxRuntime.jsx(TextLevel, { children: level.name }), jsxRuntime.jsxs(Challenge, { children: [countChallenge, " ", textChallenge] })] })] }), !isScrollInTop && (jsxRuntime.jsx("div", { style: {
5073
5073
  background: 'linear-gradient(#ffffff, #ffffff19)',
5074
5074
  height: '50px',
5075
5075
  position: 'absolute',
@@ -5077,13 +5077,14 @@ function OnboardingProgressMenu(props) {
5077
5077
  right: 36,
5078
5078
  width: 'calc(100% - 46px)',
5079
5079
  zIndex: 10
5080
- } })), jsxRuntime.jsx(ScroollableContent, { ref: scrollRef, children: internalItems.map((i, index) => (jsxRuntime.jsxs(StepBox, { children: [jsxRuntime.jsxs(StepBoxIconBlock, { children: [jsxRuntime.jsx(CheckCircle, { isComplete: i.finished, isChecked: i.finished, children: i.finished ? jsxRuntime.jsx(Tick, { width: "12" }) : jsxRuntime.jsx(Dot, { width: "16", height: "16" }) }), items.length - 1 > index && jsxRuntime.jsx(StepBar, { isComplete: i.finished })] }), jsxRuntime.jsxs(StepBoxTextBlock, { children: [jsxRuntime.jsx(StepBoxTitle, { onClick: i.handleClick, isComplete: i.finished, children: i.title }), jsxRuntime.jsx(StepBoxDescription, { children: i.description })] })] }))) }), internalItems.length >= 7 && !isScrollInBottom && (jsxRuntime.jsx("div", { style: {
5080
+ } })), jsxRuntime.jsx(ScroollableContent, { ref: scrollRef, children: internalItems.map((i, index) => (jsxRuntime.jsxs(StepBox, { children: [jsxRuntime.jsxs(StepBoxIconBlock, { children: [jsxRuntime.jsx(CheckCircle, { isComplete: i.finished, isChecked: i.finished, children: i.finished ? jsxRuntime.jsx(Tick, { width: "12" }) : jsxRuntime.jsx(Dot, { width: "16", height: "16" }) }), items.length - 1 > index && jsxRuntime.jsx(StepBar, { isComplete: i.finished })] }), jsxRuntime.jsxs(StepBoxTextBlock, { children: [jsxRuntime.jsx(StepBoxTitle, { onClick: i.handleClick, isComplete: i.finished, children: i.title }), jsxRuntime.jsx(StepBoxDescription, { children: i.description })] })] }))) }), !isScrollInBottom && (jsxRuntime.jsx("div", { style: {
5081
5081
  background: 'linear-gradient(#ffffff19, #ffffff)',
5082
5082
  height: '50px',
5083
5083
  position: 'absolute',
5084
- bottom: 38,
5084
+ bottom: 27,
5085
5085
  right: 36,
5086
5086
  width: 'calc(100% - 46px)',
5087
+ zIndex: 10
5087
5088
  } }))] }) }));
5088
5089
  }
5089
5090
 
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/DS/onboarding-progress-menu/index.tsx"],"names":[],"mappings":";AAkBA,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAA;AAIlE,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAAC,KAAK,EAAE,uBAAuB,eAmG5E"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/DS/onboarding-progress-menu/index.tsx"],"names":[],"mappings":";AAkBA,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAA;AAIlE,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAAC,KAAK,EAAE,uBAAuB,eAkG5E"}
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.21.22",
4
+ "version": "0.21.23",
5
5
  "private": false,
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",