@bikdotai/bik-component-library 0.0.419-beta.18 → 0.0.419-beta.19
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.
|
@@ -49,4 +49,4 @@
|
|
|
49
49
|
width: 800px;
|
|
50
50
|
height: 480px;
|
|
51
51
|
}
|
|
52
|
-
`,h=d.default.forwardRef(((o,n)=>{let{channel:l,template:d,showSampleValues:c}=o;var h,b,x,g;const v=null===(h=null==d?void 0:d.components)||void 0===h?void 0:h[1].cards;return e.jsxs(u,{children:[e.jsx(s.default,{channel:l,template:d,isHeader:!0,carouselCardIndex:-1,contentWrapperStyles:{width:"480px"}})
|
|
52
|
+
`,h=d.default.forwardRef(((o,n)=>{let{channel:l,template:d,showSampleValues:c}=o;var h,b,x,g;const v=null===(h=null==d?void 0:d.components)||void 0===h?void 0:h[1].cards;return e.jsxs(u,{children:[e.jsx(s.default,{channel:l,template:d,isHeader:!0,carouselCardIndex:-1,contentWrapperStyles:{width:"480px"}}),!!(null==v?void 0:v.length)&&e.jsx("div",Object.assign({style:{marginTop:50}},{children:e.jsx(i.CarouselProvider,Object.assign({naturalSlideWidth:100,naturalSlideHeight:125,totalSlides:null!==(b=null==v?void 0:v.length)&&void 0!==b?b:1,orientation:"horizontal",visibleSlides:1.6},{children:e.jsxs(p,{children:[e.jsx(i.ButtonBack,Object.assign({className:"left_button"},{children:e.jsx(t.default,{height:10,width:10,color:a.COLORS.content.primary})})),e.jsx(i.Slider,Object.assign({className:"slider"},{children:null===(g=null===(x=null==d?void 0:d.components)||void 0===x?void 0:x[1].cards)||void 0===g?void 0:g.map(((t,r)=>{var o,n;const a={components:t.components,mapping:null===(n=null===(o=null==d?void 0:d.mapping)||void 0===o?void 0:o.cards)||void 0===n?void 0:n[r]};return e.jsx(i.Slide,Object.assign({index:r},{children:e.jsx(s.default,{channel:l,template:a,isHeader:!1,carouselCardIndex:r},r)}),r)}))})),e.jsx(i.ButtonNext,Object.assign({className:"right_button"},{children:e.jsx(r.default,{height:10,width:10,color:a.COLORS.content.primary})}))]})}))}))]})}));exports.CarouselPreview=h;
|
|
@@ -49,4 +49,4 @@ import{jsxs as e,jsx as o}from"react/jsx-runtime";import t from"../../assets/ico
|
|
|
49
49
|
width: 800px;
|
|
50
50
|
height: 480px;
|
|
51
51
|
}
|
|
52
|
-
`,g=d.forwardRef(((d,c)=>{let{channel:g,template:u,showSampleValues:x}=d;var v,f,w,y;const j=null===(v=null==u?void 0:u.components)||void 0===v?void 0:v[1].cards;return e(m,{children:[o(p,{channel:g,template:u,isHeader:!0,carouselCardIndex:-1,contentWrapperStyles:{width:"480px"}})
|
|
52
|
+
`,g=d.forwardRef(((d,c)=>{let{channel:g,template:u,showSampleValues:x}=d;var v,f,w,y;const j=null===(v=null==u?void 0:u.components)||void 0===v?void 0:v[1].cards;return e(m,{children:[o(p,{channel:g,template:u,isHeader:!0,carouselCardIndex:-1,contentWrapperStyles:{width:"480px"}}),!!(null==j?void 0:j.length)&&o("div",Object.assign({style:{marginTop:50}},{children:o(r,Object.assign({naturalSlideWidth:100,naturalSlideHeight:125,totalSlides:null!==(f=null==j?void 0:j.length)&&void 0!==f?f:1,orientation:"horizontal",visibleSlides:1.6},{children:e(b,{children:[o(n,Object.assign({className:"left_button"},{children:o(t,{height:10,width:10,color:h.content.primary})})),o(a,Object.assign({className:"slider"},{children:null===(y=null===(w=null==u?void 0:u.components)||void 0===w?void 0:w[1].cards)||void 0===y?void 0:y.map(((e,t)=>{var i,r;const n={components:e.components,mapping:null===(r=null===(i=null==u?void 0:u.mapping)||void 0===i?void 0:i.cards)||void 0===r?void 0:r[t]};return o(l,Object.assign({index:t},{children:o(p,{channel:g,template:n,isHeader:!1,carouselCardIndex:t},t)}),t)}))})),o(s,Object.assign({className:"right_button"},{children:o(i,{height:10,width:10,color:h.content.primary})}))]})}))}))]})}));export{g as CarouselPreview};
|