@zydon/common 2.4.6 → 2.4.7

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.
@@ -9,6 +9,6 @@ import k from '@mui/material/Stack';
9
9
  import { styled } from '@mui/material/styles';
10
10
  import { jsxs, jsx } from 'react/jsx-runtime';
11
11
 
12
- var g=styled(k)(({theme:t})=>({"--slide-spacing-products":t.spacing(3),[t.breakpoints.up("xs")]:{"--slide-spacing-products":t.spacing(1)},[t.breakpoints.up("sm")]:{"--slide-spacing-products":t.spacing(2)},position:"relative",gap:"var(--slide-spacing-products)",alignItems:"center",a:{textDecoration:"none"},"& .mnl__carousel__container":{marginLeft:"calc(var(--slide-spacing-products) * -1) !important"}})),u=styled("span")({opacity:0,display:"block",width:"100%",height:"18px",minWidth:"18px"});var w=({bundles:t=[],isLoading:l=!1,isFetching:S=!1,onRefetch:f$1=()=>{},renderItem:h})=>{let s=o({containScroll:!1,slidesToShow:{xs:1,sm:2,md:3,lg:4},slidesToScroll:3,slideSpacing:"var(--slide-spacing-products)",align:"start",breakpoints:{[a.xs]:{slidesToScroll:1},[a.sm]:{slidesToScroll:2},[a.md]:{slidesToScroll:3},[a.lg]:{slidesToScroll:4}},loop:!0});return !l&&t.length===0?null:jsxs(g,{children:[jsx(a$1,{isLoading:l,loading:jsxs(k,{width:"100%",direction:"row",alignItems:"center",gap:3,children:[jsx(a$2,{width:"100%",height:127}),jsx(a$2,{width:"100%",height:127}),jsx(a$2,{width:"100%",height:127}),jsx(a$2,{width:"100%",height:127})]}),children:jsx(f,{carousel:s,children:t.map(r=>jsx(Fragment,{"data-testid":`bundle-item-${r.id}`,children:h(r,{onRefetch:f$1,isFetching:S})},r.id))})}),jsx(a$1,{isLoading:l,loading:jsx(u,{}),children:s.dots.scrollSnaps.length>1&&jsx(k$1,{variant:"rounded",scrollSnaps:s.dots.scrollSnaps,selectedIndex:s.dots.selectedIndex,onClickDot:s.dots.onClickDot})})]})},F=w;
12
+ var g=styled(k)(({theme:t})=>({"--slide-spacing-products":t.spacing(3),[t.breakpoints.up("xs")]:{"--slide-spacing-products":t.spacing(1)},[t.breakpoints.up("sm")]:{"--slide-spacing-products":t.spacing(2)},position:"relative",gap:"var(--slide-spacing-products)",alignItems:"center",a:{textDecoration:"none"},"& .mnl__carousel__container":{marginLeft:"calc(var(--slide-spacing-products) * -1) !important"}})),u=styled("span")({opacity:0,display:"block",width:"100%",height:"18px",minWidth:"18px"});var w=({bundles:t=[],isLoading:l=!1,isFetching:S=!1,onRefetch:f$1=()=>{},renderItem:h})=>{let s=o({containScroll:!1,slidesToShow:{xs:1,sm:2,md:3,lg:4},slidesToScroll:3,slideSpacing:"var(--slide-spacing-products)",align:"start",breakpoints:{[a.xs]:{slidesToScroll:1},[a.sm]:{slidesToScroll:2},[a.md]:{slidesToScroll:3},[a.lg]:{slidesToScroll:4}},loop:!0});return !l&&t.length===0?null:jsxs(g,{children:[jsx(a$1,{isLoading:l,loading:jsxs(k,{width:"100%",direction:"row",alignItems:"center",gap:3,children:[jsx(a$2,{width:"100%",height:127}),jsx(a$2,{width:"100%",height:127}),jsx(a$2,{width:"100%",height:127}),jsx(a$2,{width:"100%",height:127})]}),children:jsx(f,{carousel:s,children:t.map(n=>jsx(Fragment,{children:h(n,{onRefetch:f$1,isFetching:S})},n.id))})}),jsx(a$1,{isLoading:l,loading:jsx(u,{}),children:s.dots.scrollSnaps.length>1&&jsx(k$1,{variant:"rounded",scrollSnaps:s.dots.scrollSnaps,selectedIndex:s.dots.selectedIndex,onClickDot:s.dots.onClickDot})})]})},F=w;
13
13
 
14
14
  export { F as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zydon/common",
3
- "version": "2.4.6",
3
+ "version": "2.4.7",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "module": "./dist/index.js",