@lanaco/lnc-react-ui 4.0.98 → 4.0.99

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.
@@ -428,4 +428,4 @@
428
428
  align-items: center;
429
429
  gap: 0.5rem;
430
430
  }
431
- `,ve=i.forwardRef(({},e)=>{const o=z.useTheme();return t.jsxs(ye,{ref:e,theme:o,children:[t.jsx("div",{className:"campaign__left-section",children:t.jsx(X,{theme:o,width:"15rem",height:"15rem",borderRadius:"edged"})}),t.jsxs("div",{className:"campaign__right-section",children:[t.jsxs(be,{theme:o,children:[t.jsx(U,{heightCoeff:.75,theme:o,width:"35%"}),t.jsx(U,{heightCoeff:1.25,theme:o}),t.jsx(U,{heightCoeff:3,theme:o})]}),t.jsxs("div",{className:"campaign__user",children:[t.jsx(X,{theme:o,width:"2.5rem",height:"2.5rem",borderRadius:"curved"}),t.jsx(U,{theme:o,width:"75%"})]})]})]})}),$e=({itemsCount:e=5,keyPrefix:o})=>t.jsx(t.Fragment,{children:Array.from({length:e},(a,l)=>t.jsx(ve,{},`${o}-skeleton-campaign-card-${l}`))}),je=({children:e,fallbackComponent:o=t.jsx(t.Fragment,{}),isLoading:a=!1,itemsCount:l=5,keyPrefix:f})=>t.jsx(i.Suspense,{fallback:o,children:a===!0?t.jsx($e,{itemsCount:l,keyPrefix:f}):e}),De=ie(),Te=i.memo(K),Se=i.forwardRef(({sellerType:e="Shop",items:o=[],title:a,isLoading:l,onSelectCard:f=()=>{},onSelectShop:c=()=>{},getImage:s=()=>{},customScrollSize:g,campaignSingleText:b,salesCampaignTypes:m=[],startsInPrefixTextPlural:$,startsinSuffixTextPlural:d,startsInPrefixTextSingular:j,startsinSuffixTextSingular:x},y)=>{const u=i.useRef(),D=i.useRef(),T=De(),N=Y.useDetectMobile(),[F,S]=i.useState(0),h=i.useMemo(()=>{var P;return(P=o==null?void 0:o.slice(0,6))==null?void 0:P.map((r,_)=>t.jsx(Te,{className:"campaign-item",ref:_===0?D:null,coverPhoto:s(r==null?void 0:r.coverPhoto,(r==null?void 0:r.uuid)||(r==null?void 0:r.campaignUuid)),description:r==null?void 0:r.description,endDate:r==null?void 0:r.endDate,salesPackages:r==null?void 0:r.salesPackages,sellerType:e,shopImage:r==null?void 0:r.profileImage,shopName:r==null?void 0:r.shopName,shopUuid:r==null?void 0:r.shopUuid,startDate:r==null?void 0:r.startDate,title:r==null?void 0:r.name,uuid:r==null?void 0:r.campaignUuid,onSelectCard:()=>f(r==null?void 0:r.campaignUuid,r==null?void 0:r.shopUuid),onSelectShop:()=>c(r==null?void 0:r.shopUuid),campaignSingleText:b,salesCampaignTypes:m,startsInPrefixTextPlural:$,startsinSuffixTextPlural:d,startsInPrefixTextSingular:j,startsinSuffixTextSingular:x,themeData:r==null?void 0:r.themeData},`campaign__item__${_}__${r==null?void 0:r.startDate}___${r==null?void 0:r.endDate}__${T}`))},[T,o]);i.useEffect(()=>{var P;S(g??((P=D==null?void 0:D.current)==null?void 0:P.offsetWidth))},[h,T]);const E=N?(h==null?void 0:h.length)>1:(h==null?void 0:h.length)>2;return t.jsx(t.Fragment,{children:(h==null?void 0:h.length)>0&&t.jsx(we,{ref:y,className:"row-section-scroll",lastItemIdx:(h==null?void 0:h.length)+1,children:t.jsx(Q,{arrowsVisibleOnHover:!1,columnGap:"0",methodsRef:u,mobileHoverScrollButtons:!0,noArrows:!0,padding:"0.25rem 0",rightAlignArrows:!0,elementsCount:o==null?void 0:o.length,scrollBySize:N?F:F*2+24,showTimesBtn:!1,title:a,onShowEnd:()=>{},arrowsZIndex:11,showArrows:E,children:t.jsx(je,{isLoading:l,itemsCount:2,keyPrefix:"sales-camp",children:h})},`scroll-${T}`)})})});module.exports=Se;
431
+ `,ve=i.forwardRef(({},e)=>{const o=z.useTheme();return t.jsxs(ye,{ref:e,theme:o,children:[t.jsx("div",{className:"campaign__left-section",children:t.jsx(X,{theme:o,width:"15rem",height:"15rem",borderRadius:"edged"})}),t.jsxs("div",{className:"campaign__right-section",children:[t.jsxs(be,{theme:o,children:[t.jsx(U,{heightCoeff:.75,theme:o,width:"35%"}),t.jsx(U,{heightCoeff:1.25,theme:o}),t.jsx(U,{heightCoeff:3,theme:o})]}),t.jsxs("div",{className:"campaign__user",children:[t.jsx(X,{theme:o,width:"2.5rem",height:"2.5rem",borderRadius:"curved"}),t.jsx(U,{theme:o,width:"75%"})]})]})]})}),$e=({itemsCount:e=5,keyPrefix:o})=>t.jsx(t.Fragment,{children:Array.from({length:e},(a,l)=>t.jsx(ve,{},`${o}-skeleton-campaign-card-${l}`))}),je=({children:e,fallbackComponent:o=t.jsx(t.Fragment,{}),isLoading:a=!1,itemsCount:l=5,keyPrefix:f})=>t.jsx(i.Suspense,{fallback:o,children:a===!0?t.jsx($e,{itemsCount:l,keyPrefix:f}):e}),De=ie(),Te=i.memo(K),Se=i.forwardRef(({sellerType:e="Shop",items:o=[],title:a,isLoading:l,onSelectCard:f=()=>{},onSelectShop:c=()=>{},getImage:s=()=>{},customScrollSize:g,campaignSingleText:b,salesCampaignTypes:m=[],startsInPrefixTextPlural:$,startsinSuffixTextPlural:d,startsInPrefixTextSingular:j,startsinSuffixTextSingular:x},y)=>{const u=i.useRef(),D=i.useRef(),T=De(),N=Y.useDetectMobile(),[F,S]=i.useState(0),h=i.useMemo(()=>{var P;return(P=o==null?void 0:o.slice(0,6))==null?void 0:P.map((r,_)=>t.jsx(Te,{className:"campaign-item",ref:_===0?D:null,coverPhoto:s(r==null?void 0:r.coverPhoto,(r==null?void 0:r.uuid)||(r==null?void 0:r.campaignUuid)),description:r==null?void 0:r.description,endDate:r==null?void 0:r.endDate,salesPackages:r==null?void 0:r.salesPackages,sellerType:e,shopImage:r==null?void 0:r.profileImage,shopName:r==null?void 0:r.shopName,shopUuid:r==null?void 0:r.shopUuid,startDate:r==null?void 0:r.startDate,title:r==null?void 0:r.name,uuid:r==null?void 0:r.campaignUuid,onSelectCard:()=>f(r==null?void 0:r.campaignUuid,r==null?void 0:r.shopUuid),onSelectShop:()=>c(r==null?void 0:r.shopUuid),campaignSingleText:b,salesCampaignTypes:m,startsInPrefixTextPlural:$,startsinSuffixTextPlural:d,startsInPrefixTextSingular:j,startsinSuffixTextSingular:x,themeData:r==null?void 0:r.themeData},`campaign__item__${_}__${r==null?void 0:r.startDate}___${r==null?void 0:r.endDate}__${T}`))},[T,o]);i.useEffect(()=>{var P;S(g??((P=D==null?void 0:D.current)==null?void 0:P.offsetWidth))},[h,T]);const E=N?(h==null?void 0:h.length)>1:(h==null?void 0:h.length)>2;return t.jsx(t.Fragment,{children:(h==null?void 0:h.length)>0&&t.jsx(we,{ref:y,className:"row-section-scroll",lastItemIdx:(h==null?void 0:h.length)+1,children:t.jsx(Q,{arrowsVisibleOnHover:!1,columnGap:"0",methodsRef:u,mobileHoverScrollButtons:!0,noArrows:!0,padding:"0.25rem 0",rightAlignArrows:!0,elementsCount:o==null?void 0:o.length,scrollBySize:N?F+1:F*2+24,showTimesBtn:!1,title:a,onShowEnd:()=>{},arrowsZIndex:11,showArrows:E,children:t.jsx(je,{isLoading:l,itemsCount:2,keyPrefix:"sales-camp",children:h})},`scroll-${T}`)})})});module.exports=Se;
@@ -1004,7 +1004,7 @@ const Ee = b.div`
1004
1004
  padding: "0.25rem 0",
1005
1005
  rightAlignArrows: !0,
1006
1006
  elementsCount: o == null ? void 0 : o.length,
1007
- scrollBySize: I ? P : P * 2 + 24,
1007
+ scrollBySize: I ? P + 1 : P * 2 + 24,
1008
1008
  showTimesBtn: !1,
1009
1009
  title: a,
1010
1010
  onShowEnd: () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lanaco/lnc-react-ui",
3
- "version": "4.0.98",
3
+ "version": "4.0.99",
4
4
  "description": "React component library",
5
5
  "type": "module",
6
6
  "keywords": [