@cntrl-site/components 0.1.0-14 → 0.1.0-15
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/Components/Lightbox/Lightbox.d.ts +3 -2
- package/dist/components.css +1 -1
- package/dist/index.js +102 -20
- package/dist/index.mjs +102 -20
- package/package.json +1 -1
|
@@ -40,7 +40,7 @@ type Padding = {
|
|
|
40
40
|
left: number;
|
|
41
41
|
};
|
|
42
42
|
type Triggers = {
|
|
43
|
-
type: 'click' | 'drag'
|
|
43
|
+
type: 'click' | 'drag';
|
|
44
44
|
switch: 'image' | '50/50';
|
|
45
45
|
duration: string;
|
|
46
46
|
};
|
|
@@ -66,10 +66,11 @@ type LightboxSettings = {
|
|
|
66
66
|
isActive: boolean;
|
|
67
67
|
position: Alignment;
|
|
68
68
|
fit: 'cover' | 'fit';
|
|
69
|
-
align: '
|
|
69
|
+
align: 'start' | 'center' | 'end';
|
|
70
70
|
triggers: 'click' | 'hover';
|
|
71
71
|
grid: {
|
|
72
72
|
height: number;
|
|
73
|
+
width: number;
|
|
73
74
|
gap: number;
|
|
74
75
|
};
|
|
75
76
|
offset: Offset;
|
package/dist/components.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.ControlSlider-module__wrapper___sHEkd{position:relative;width:100%;height:100%}.ControlSlider-module__slider___R3i9-{width:100%;height:100%}.ControlSlider-module__sliderItems___1MgPL{display:flex;overflow:hidden;width:100%;height:100%;transition:transform .3s ease-in-out}.ControlSlider-module__sliderItem___QQSkR{width:100%;height:100%;display:flex;position:relative}.ControlSlider-module__sliderImage___9hRl-{width:100%;height:100%;object-fit:cover}.ControlSlider-module__arrow___05ghY{position:absolute;display:flex;align-items:center;justify-content:center;border:none;background-color:transparent;top:50%;left:calc(var(--is-editor, 0) * -1.3888888889vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * -1.3888888889vw);z-index:1;transform:translate(-50%,-50%);padding:0;width:calc(var(--is-editor, 0) * 2.0833333333vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 2.0833333333vw);height:calc(var(--is-editor, 0) * 2.0833333333vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 2.0833333333vw)}.ControlSlider-module__arrow___05ghY.ControlSlider-module__arrowVertical___tBfVN{left:50%;top:calc(var(--is-editor, 0) * -1.3888888889vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * -1.3888888889vw);transform:translate(-50%,-50%)}.ControlSlider-module__nextArrow___-30Yc{left:unset;right:calc(var(--is-editor, 0) * -1.3888888889vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * -1.3888888889vw);transform:translate(50%,-50%)}.ControlSlider-module__nextArrow___-30Yc.ControlSlider-module__arrowVertical___tBfVN{left:50%;right:unset;top:unset;bottom:calc(var(--is-editor, 0) * -1.3888888889vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * -1.3888888889vw);transform:translate(-50%,50%)}.ControlSlider-module__arrowInner___aEra3{all:unset;cursor:pointer;width:100%;height:100%}.ControlSlider-module__arrowInner___aEra3:hover .ControlSlider-module__arrowIcon___S4ztF path{fill:var(--arrow-hover-color)!important}.ControlSlider-module__arrowImg___2dwJW{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.ControlSlider-module__arrowIcon___S4ztF{width:100%;height:100%}.ControlSlider-module__arrowIcon___S4ztF path{transition:fill .15s ease-in-out}.ControlSlider-module__mirror___brd6U{transform:translate(-50%,-50%) scaleX(-1)!important}.ControlSlider-module__arrowVertical___tBfVN.ControlSlider-module__mirror___brd6U{transform:translate(-50%,-50%) scaleY(-1)!important}.ControlSlider-module__pagination___bicLF{position:absolute;z-index:1;border-radius:50%}.ControlSlider-module__paginationInner___bT-P-{display:flex;gap:calc(var(--is-editor, 0) * 1.1111111111vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 1.1111111111vw);padding-top:calc(var(--is-editor, 0) * .6944444444vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * .6944444444vw);padding-bottom:calc(var(--is-editor, 0) * .6944444444vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * .6944444444vw);padding-left:calc(var(--is-editor, 0) * 1.25vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 1.25vw);padding-right:calc(var(--is-editor, 0) * 1.25vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 1.25vw);border-radius:calc(var(--is-editor, 0) * 2.3611111111vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 2.3611111111vw)}.ControlSlider-module__paginationVertical___zYqKw{flex-direction:column}.ControlSlider-module__paginationItem___nTRbk{all:unset;flex-shrink:0;position:relative;width:calc(var(--is-editor, 0) * 1.1111111111vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 1.1111111111vw);height:calc(var(--is-editor, 0) * 1.1111111111vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 1.1111111111vw);cursor:pointer}.ControlSlider-module__paginationItem___nTRbk:hover .ControlSlider-module__dot___p1Qun{background-color:var(--pagination-hover-color)!important}.ControlSlider-module__dot___p1Qun{border-radius:50%;scale:.5;transition:background-color .3s ease-in-out,transform .3s ease-in-out;width:calc(var(--is-editor, 0) * 1.1111111111vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 1.1111111111vw);height:calc(var(--is-editor, 0) * 1.1111111111vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 1.1111111111vw)}.ControlSlider-module__activeDot___LHFaj{transform:scale(2)}.ControlSlider-module__paginationInsideBottom___R3FWn{bottom:0;left:50%;transform:translate(-50%)}.ControlSlider-module__paginationInsideTop___V-qb-{left:50%;transform:translate(-50%);top:0}.ControlSlider-module__paginationOutsideBottom___14w8D{left:50%;transform:translate(-50%);bottom:calc(var(--is-editor, 0) * -2.4305555556vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * -2.4305555556vw)}.ControlSlider-module__paginationOutsideTop___SCLqB{left:50%;transform:translate(-50%);top:calc(var(--is-editor, 0) * -2.4305555556vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * -2.4305555556vw)}.ControlSlider-module__paginationInsideLeft___yOBRZ{top:50%;transform:translateY(-50%);left:calc(var(--is-editor, 0) * -2.4305555556vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * -2.4305555556vw)}.ControlSlider-module__paginationInsideRight___Rtt3o{top:50%;transform:translateY(-50%);right:calc(var(--is-editor, 0) * -2.4305555556vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * -2.4305555556vw)}.ControlSlider-module__paginationOutsideLeft___lahaw{top:50%;transform:translateY(-50%);left:calc(var(--is-editor, 0) * -5.4861111111vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * -5.4861111111vw)}.ControlSlider-module__paginationOutsideRight___EtuQa{top:50%;transform:translateY(-50%);right:calc(var(--is-editor, 0) * -5.4861111111vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * -5.4861111111vw)}.ControlSlider-module__imgWrapper___UjEgB,.ControlSlider-module__wrapperInner___DLAWV{width:100%;height:100%}.ControlSlider-module__captionBlock___dJ6-j{pointer-events:none;position:absolute;top:0;z-index:1;left:0;right:0;bottom:0}.ControlSlider-module__captionTextWrapper___HFlpf{position:relative;width:100%;height:100%}.ControlSlider-module__captionText___uGBVc{pointer-events:none;max-width:100%;transition-property:opacity;transition-timing-function:ease-in-out;position:absolute;display:inline-block;white-space:pre-wrap;overflow-wrap:break-word;opacity:0}.ControlSlider-module__captionText___uGBVc.ControlSlider-module__active___WZK4G{opacity:1}.ControlSlider-module__withPointerEvents___t-18M{pointer-events:auto}.ControlSlider-module__absolute___KxmYB{position:absolute}.ControlSlider-module__topLeftAlignment___zjnGM{top:0;left:0}.ControlSlider-module__topCenterAlignment___gD1xW{top:0;left:50%;transform:translate(-50%)}.ControlSlider-module__topRightAlignment___NMapS{top:0;right:0}.ControlSlider-module__middleLeftAlignment___OnUrY{top:50%;transform:translateY(-50%);left:0}.ControlSlider-module__middleCenterAlignment___Tdkl0{top:50%;transform:translate(-50%,-50%);left:50%}.ControlSlider-module__middleRightAlignment___wEbfX{top:50%;transform:translateY(-50%);right:0}.ControlSlider-module__bottomLeftAlignment___cTP2-{bottom:0;left:0}.ControlSlider-module__bottomCenterAlignment___c54fB{bottom:0;left:50%;transform:translate(-50%)}.ControlSlider-module__bottomRightAlignment___kEwrz{bottom:0;right:0}.ControlSlider-module__clickOverlay___DZA28{position:absolute;top:0;left:0;width:100%;height:100%;cursor:pointer}.ControlSlider-module__contain___pLyq7{object-fit:contain}.ControlSlider-module__cover___KdDat{object-fit:cover}.RichTextRenderer-module__link___BWeZ2{color:inherit;cursor:pointer;pointer-events:auto;transition:color .2s ease}.RichTextRenderer-module__link___BWeZ2:hover{color:var(--link-hover-color)}.SvgImage-module__svg___q3xE-{width:100%;height:100%;color:transparent;display:inline-block;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background-color:var(--fill);transition:background-color .2s;-webkit-mask:var(--svg) no-repeat center/contain;mask:var(--svg) no-repeat center/contain}.SvgImage-module__svg___q3xE-:hover{background-color:var(--hover-fill)}.SvgImage-module__img___VsTm-{width:100%;height:100%;object-fit:contain}.ImageRevealSlider-module__imageRevealSlider___UE5Ob{position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden}.ImageRevealSlider-module__image___Qjt-e{width:100%;height:100%;object-fit:cover;position:relative;-webkit-user-select:none;user-select:none;pointer-events:none}.ImageRevealSlider-module__link___N-iLG{width:100%;height:100%;display:block}.LightBox-module__backdropStyle___yWDe2{position:fixed;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;z-index:9999}.LightBox-module__contentStyle___Bgnsq{position:relative;width:100%;max-width:100vw;max-height:100vh;height:100vh;overflow:auto;background:transparent;box-sizing:border-box}.LightBox-module__stageStyle___7C4KB{position:relative;display:flex;align-items:center;justify-content:center;box-sizing:border-box;max-width:100vw;max-height:100vh;width:100%;height:100%;overflow:hidden}.LightBox-module__imageStyle___tLIlB{display:block;cursor:pointer;background-color:transparent}.LightBox-module__sliderItem___iFlJ9{display:flex;align-items:center;justify-content:center;width:100%;height:100%}.LightBox-module__imgWrapper___LuFUp{display:flex;align-items:center;justify-content:center;width:100%;height:100%;overflow:hidden}.LightBox-module__contain___8-yaS{object-fit:contain;max-width:100%;max-height:100%}.LightBox-module__cover___hNvOG{width:100%;height:100%;object-fit:cover;max-width:100%;max-height:100%}.LightBox-module__caption___b6L2I{position:absolute;display:flex}.LightBox-module__contentStyle___Bgnsq .splide,.LightBox-module__contentStyle___Bgnsq .splide__track{height:100%}.LightBox-module__arrow___iz38X{position:absolute;display:flex;align-items:center;justify-content:center;cursor:pointer;border:none;background-color:transparent;top:50%;left:calc(var(--is-editor, 0) * 1.3888888889vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 1.3888888889vw);z-index:1;transform:translate(-50%,-50%);padding:0;width:calc(var(--is-editor, 0) * 2.0833333333vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 2.0833333333vw);height:calc(var(--is-editor, 0) * 2.0833333333vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 2.0833333333vw)}.LightBox-module__arrow___iz38X.LightBox-module__arrowVertical___Zfz81{left:50%;top:calc(var(--is-editor, 0) * 1.3888888889vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 1.3888888889vw);transform:translate(-50%,-50%)}.LightBox-module__nextArrow___zkAQN{left:unset;right:calc(var(--is-editor, 0) * 1.3888888889vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 1.3888888889vw);transform:translate(50%,-50%)}.LightBox-module__nextArrow___zkAQN.LightBox-module__arrowVertical___Zfz81{left:50%;right:unset;top:unset;bottom:calc(var(--is-editor, 0) * 1.3888888889vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 1.3888888889vw);transform:translate(-50%,50%)}.LightBox-module__arrowInner___p48sW{all:unset;cursor:pointer;width:100%;height:100%}.LightBox-module__arrowInner___p48sW:hover .LightBox-module__arrowIcon___3VaFf path{fill:var(--arrow-hover-color)!important}.LightBox-module__arrowImg___pNV88{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.LightBox-module__mirror___pjeXc{transform:translate(-50%,-50%) scaleX(-1)!important}.LightBox-module__arrowVertical___Zfz81.LightBox-module__mirror___pjeXc{transform:translate(-50%,-50%) scaleY(-1)!important}.LightBox-module__counterStyle___JFgB3{bottom:calc(var(--is-editor, 0) * .8333333333vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * .8333333333vw);right:calc(var(--is-editor, 0) * 1.1111111111vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 1.1111111111vw);font-size:calc(var(--is-editor, 0) * .9722222222vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * .9722222222vw);position:absolute;color:#fff;opacity:.85}.LightBox-module__thumbsContainerVertical___wttk5{flex-direction:column}.LightBox-module__thumbsContainer___osSma{position:absolute;left:0;right:0;display:flex;align-items:center;justify-content:center;padding:0 12px;pointer-events:auto;bottom:calc(var(--is-editor, 0) * .8333333333vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * .8333333333vw)}.LightBox-module__thumbItem___HvnF3{all:unset;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;background:#00000026;transition:transform .1s ease,opacity .1s ease,box-shadow .1s ease}.LightBox-module__thumbItem___HvnF3:hover{opacity:var(--thumb-hover)!important}.LightBox-module__thumbImage___OJ19m{display:block;height:100%;width:calc(var(--is-editor, 0) * 5.5555555556vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 5.5555555556vw)}@keyframes LightBox-module__lbFadeIn___P8mx0{0%{opacity:0}to{opacity:1}}.LightBox-module__fadeIn___0m5GW{animation-name:LightBox-module__lbFadeIn___P8mx0}@keyframes LightBox-module__lbSlideInLeft___ygsXZ{0%{transform:translate(-100%)}to{transform:translate(0)}}@keyframes LightBox-module__lbSlideInRight___w2YKV{0%{transform:translate(100%)}to{transform:translate(0)}}@keyframes LightBox-module__lbSlideInTop___W7CSQ{0%{transform:translateY(-100%)}to{transform:translateY(0)}}@keyframes LightBox-module__lbSlideInBottom___7kiT2{0%{transform:translateY(100%)}to{transform:translateY(0)}}.LightBox-module__slideInLeft___gPYwC{animation-name:LightBox-module__lbSlideInLeft___ygsXZ}.LightBox-module__slideInRight___S-pPp{animation-name:LightBox-module__lbSlideInRight___w2YKV}.LightBox-module__slideInTop___DFdAj{animation-name:LightBox-module__lbSlideInTop___W7CSQ}.LightBox-module__slideInBottom___m27kZ{animation-name:LightBox-module__lbSlideInBottom___7kiT2}.splide--fade .LightBox-module__scaleSlide___vZriG{opacity:0!important;transform:scale(.8)!important;transition:opacity var(--splide-speed, .5s) ease,transform var(--splide-speed, .5s) ease!important}.splide--fade .splide__slide.is-active .LightBox-module__scaleSlide___vZriG{opacity:1!important;transform:scale(1)!important}.splide--fade .splide__slide:not(.is-active) .LightBox-module__scaleSlide___vZriG{opacity:0!important;transform:scale(1.2)!important}.splide__container{box-sizing:border-box;position:relative}.splide__list{backface-visibility:hidden;display:-ms-flexbox;display:flex;height:100%;margin:0!important;padding:0!important}.splide.is-initialized:not(.is-active) .splide__list{display:block}.splide__pagination{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:center;justify-content:center;margin:0;pointer-events:none}.splide__pagination li{display:inline-block;line-height:1;list-style-type:none;margin:0;pointer-events:auto}.splide:not(.is-overflow) .splide__pagination{display:none}.splide__progress__bar{width:0}.splide{position:relative;visibility:hidden}.splide.is-initialized,.splide.is-rendered{visibility:visible}.splide__slide{backface-visibility:hidden;box-sizing:border-box;-ms-flex-negative:0;flex-shrink:0;list-style-type:none!important;margin:0;position:relative}.splide__slide img{vertical-align:bottom}.splide__spinner{animation:splide-loading 1s linear infinite;border:2px solid #999;border-left-color:transparent;border-radius:50%;bottom:0;contain:strict;display:inline-block;height:20px;left:0;margin:auto;position:absolute;right:0;top:0;width:20px}.splide__sr{clip:rect(0 0 0 0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.splide__toggle.is-active .splide__toggle__play,.splide__toggle__pause{display:none}.splide__toggle.is-active .splide__toggle__pause{display:inline}.splide__track{overflow:hidden;position:relative;z-index:0}@keyframes splide-loading{0%{transform:rotate(0)}to{transform:rotate(1turn)}}.splide__track--draggable{-webkit-touch-callout:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.splide__track--fade>.splide__list>.splide__slide{margin:0!important;opacity:0;z-index:0}.splide__track--fade>.splide__list>.splide__slide.is-active{opacity:1;z-index:1}.splide--rtl{direction:rtl}.splide__track--ttb>.splide__list{display:block}.splide__arrow{-ms-flex-align:center;align-items:center;background:#ccc;border:0;border-radius:50%;cursor:pointer;display:-ms-flexbox;display:flex;height:2em;-ms-flex-pack:center;justify-content:center;opacity:.7;padding:0;position:absolute;top:50%;transform:translateY(-50%);width:2em;z-index:1}.splide__arrow svg{fill:#000;height:1.2em;width:1.2em}.splide__arrow:hover:not(:disabled){opacity:.9}.splide__arrow:disabled{opacity:.3}.splide__arrow:focus-visible{outline:3px solid #0bf;outline-offset:3px}.splide__arrow--prev{left:1em}.splide__arrow--prev svg{transform:scaleX(-1)}.splide__arrow--next{right:1em}.splide.is-focus-in .splide__arrow:focus{outline:3px solid #0bf;outline-offset:3px}.splide__pagination{bottom:.5em;left:0;padding:0 1em;position:absolute;right:0;z-index:1}.splide__pagination__page{background:#ccc;border:0;border-radius:50%;display:inline-block;height:8px;margin:3px;opacity:.7;padding:0;position:relative;transition:transform .2s linear;width:8px}.splide__pagination__page.is-active{background:#fff;transform:scale(1.4);z-index:1}.splide__pagination__page:hover{cursor:pointer;opacity:.9}.splide__pagination__page:focus-visible{outline:3px solid #0bf;outline-offset:3px}.splide.is-focus-in .splide__pagination__page:focus{outline:3px solid #0bf;outline-offset:3px}.splide__progress__bar{background:#ccc;height:3px}.splide__slide{-webkit-tap-highlight-color:rgba(0,0,0,0)}.splide__slide:focus{outline:0}@supports (outline-offset:-3px){.splide__slide:focus-visible{outline:3px solid #0bf;outline-offset:-3px}}@media screen and (-ms-high-contrast:none){.splide__slide:focus-visible{border:3px solid #0bf}}@supports (outline-offset:-3px){.splide.is-focus-in .splide__slide:focus{outline:3px solid #0bf;outline-offset:-3px}}@media screen and (-ms-high-contrast:none){.splide.is-focus-in .splide__slide:focus{border:3px solid #0bf}.splide.is-focus-in .splide__track>.splide__list>.splide__slide:focus{border-color:#0bf}}.splide__toggle{cursor:pointer}.splide__toggle:focus-visible{outline:3px solid #0bf;outline-offset:3px}.splide.is-focus-in .splide__toggle:focus{outline:3px solid #0bf;outline-offset:3px}.splide__track--nav>.splide__list>.splide__slide{border:3px solid transparent;cursor:pointer}.splide__track--nav>.splide__list>.splide__slide.is-active{border:3px solid #000}.splide__arrows--rtl .splide__arrow--prev{left:auto;right:1em}.splide__arrows--rtl .splide__arrow--prev svg{transform:scaleX(1)}.splide__arrows--rtl .splide__arrow--next{left:1em;right:auto}.splide__arrows--rtl .splide__arrow--next svg{transform:scaleX(-1)}.splide__arrows--ttb .splide__arrow{left:50%;transform:translate(-50%)}.splide__arrows--ttb .splide__arrow--prev{top:1em}.splide__arrows--ttb .splide__arrow--prev svg{transform:rotate(-90deg)}.splide__arrows--ttb .splide__arrow--next{bottom:1em;top:auto}.splide__arrows--ttb .splide__arrow--next svg{transform:rotate(90deg)}.splide__pagination--ttb{bottom:0;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;left:auto;padding:1em 0;right:.5em;top:0}
|
|
1
|
+
.ControlSlider-module__wrapper___sHEkd{position:relative;width:100%;height:100%}.ControlSlider-module__slider___R3i9-{width:100%;height:100%}.ControlSlider-module__sliderItems___1MgPL{display:flex;overflow:hidden;width:100%;height:100%;transition:transform .3s ease-in-out}.ControlSlider-module__sliderItem___QQSkR{width:100%;height:100%;display:flex;position:relative}.ControlSlider-module__sliderImage___9hRl-{width:100%;height:100%;object-fit:cover}.ControlSlider-module__arrow___05ghY{position:absolute;display:flex;align-items:center;justify-content:center;border:none;background-color:transparent;top:50%;left:calc(var(--is-editor, 0) * -1.3888888889vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * -1.3888888889vw);z-index:1;transform:translate(-50%,-50%);padding:0;width:calc(var(--is-editor, 0) * 2.0833333333vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 2.0833333333vw);height:calc(var(--is-editor, 0) * 2.0833333333vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 2.0833333333vw)}.ControlSlider-module__arrow___05ghY.ControlSlider-module__arrowVertical___tBfVN{left:50%;top:calc(var(--is-editor, 0) * -1.3888888889vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * -1.3888888889vw);transform:translate(-50%,-50%)}.ControlSlider-module__nextArrow___-30Yc{left:unset;right:calc(var(--is-editor, 0) * -1.3888888889vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * -1.3888888889vw);transform:translate(50%,-50%)}.ControlSlider-module__nextArrow___-30Yc.ControlSlider-module__arrowVertical___tBfVN{left:50%;right:unset;top:unset;bottom:calc(var(--is-editor, 0) * -1.3888888889vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * -1.3888888889vw);transform:translate(-50%,50%)}.ControlSlider-module__arrowInner___aEra3{all:unset;cursor:pointer;width:100%;height:100%}.ControlSlider-module__arrowInner___aEra3:hover .ControlSlider-module__arrowIcon___S4ztF path{fill:var(--arrow-hover-color)!important}.ControlSlider-module__arrowImg___2dwJW{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.ControlSlider-module__arrowIcon___S4ztF{width:100%;height:100%}.ControlSlider-module__arrowIcon___S4ztF path{transition:fill .15s ease-in-out}.ControlSlider-module__mirror___brd6U{transform:translate(-50%,-50%) scaleX(-1)!important}.ControlSlider-module__arrowVertical___tBfVN.ControlSlider-module__mirror___brd6U{transform:translate(-50%,-50%) scaleY(-1)!important}.ControlSlider-module__pagination___bicLF{position:absolute;z-index:1;border-radius:50%}.ControlSlider-module__paginationInner___bT-P-{display:flex;gap:calc(var(--is-editor, 0) * 1.1111111111vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 1.1111111111vw);padding-top:calc(var(--is-editor, 0) * .6944444444vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * .6944444444vw);padding-bottom:calc(var(--is-editor, 0) * .6944444444vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * .6944444444vw);padding-left:calc(var(--is-editor, 0) * 1.25vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 1.25vw);padding-right:calc(var(--is-editor, 0) * 1.25vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 1.25vw);border-radius:calc(var(--is-editor, 0) * 2.3611111111vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 2.3611111111vw)}.ControlSlider-module__paginationVertical___zYqKw{flex-direction:column}.ControlSlider-module__paginationItem___nTRbk{all:unset;flex-shrink:0;position:relative;width:calc(var(--is-editor, 0) * 1.1111111111vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 1.1111111111vw);height:calc(var(--is-editor, 0) * 1.1111111111vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 1.1111111111vw);cursor:pointer}.ControlSlider-module__paginationItem___nTRbk:hover .ControlSlider-module__dot___p1Qun{background-color:var(--pagination-hover-color)!important}.ControlSlider-module__dot___p1Qun{border-radius:50%;scale:.5;transition:background-color .3s ease-in-out,transform .3s ease-in-out;width:calc(var(--is-editor, 0) * 1.1111111111vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 1.1111111111vw);height:calc(var(--is-editor, 0) * 1.1111111111vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 1.1111111111vw)}.ControlSlider-module__activeDot___LHFaj{transform:scale(2)}.ControlSlider-module__paginationInsideBottom___R3FWn{bottom:0;left:50%;transform:translate(-50%)}.ControlSlider-module__paginationInsideTop___V-qb-{left:50%;transform:translate(-50%);top:0}.ControlSlider-module__paginationOutsideBottom___14w8D{left:50%;transform:translate(-50%);bottom:calc(var(--is-editor, 0) * -2.4305555556vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * -2.4305555556vw)}.ControlSlider-module__paginationOutsideTop___SCLqB{left:50%;transform:translate(-50%);top:calc(var(--is-editor, 0) * -2.4305555556vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * -2.4305555556vw)}.ControlSlider-module__paginationInsideLeft___yOBRZ{top:50%;transform:translateY(-50%);left:calc(var(--is-editor, 0) * -2.4305555556vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * -2.4305555556vw)}.ControlSlider-module__paginationInsideRight___Rtt3o{top:50%;transform:translateY(-50%);right:calc(var(--is-editor, 0) * -2.4305555556vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * -2.4305555556vw)}.ControlSlider-module__paginationOutsideLeft___lahaw{top:50%;transform:translateY(-50%);left:calc(var(--is-editor, 0) * -5.4861111111vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * -5.4861111111vw)}.ControlSlider-module__paginationOutsideRight___EtuQa{top:50%;transform:translateY(-50%);right:calc(var(--is-editor, 0) * -5.4861111111vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * -5.4861111111vw)}.ControlSlider-module__imgWrapper___UjEgB,.ControlSlider-module__wrapperInner___DLAWV{width:100%;height:100%}.ControlSlider-module__captionBlock___dJ6-j{pointer-events:none;position:absolute;top:0;z-index:1;left:0;right:0;bottom:0}.ControlSlider-module__captionTextWrapper___HFlpf{position:relative;width:100%;height:100%}.ControlSlider-module__captionText___uGBVc{pointer-events:none;max-width:100%;transition-property:opacity;transition-timing-function:ease-in-out;position:absolute;display:inline-block;white-space:pre-wrap;overflow-wrap:break-word;opacity:0}.ControlSlider-module__captionText___uGBVc.ControlSlider-module__active___WZK4G{opacity:1}.ControlSlider-module__withPointerEvents___t-18M{pointer-events:auto}.ControlSlider-module__absolute___KxmYB{position:absolute}.ControlSlider-module__topLeftAlignment___zjnGM{top:0;left:0}.ControlSlider-module__topCenterAlignment___gD1xW{top:0;left:50%;transform:translate(-50%)}.ControlSlider-module__topRightAlignment___NMapS{top:0;right:0}.ControlSlider-module__middleLeftAlignment___OnUrY{top:50%;transform:translateY(-50%);left:0}.ControlSlider-module__middleCenterAlignment___Tdkl0{top:50%;transform:translate(-50%,-50%);left:50%}.ControlSlider-module__middleRightAlignment___wEbfX{top:50%;transform:translateY(-50%);right:0}.ControlSlider-module__bottomLeftAlignment___cTP2-{bottom:0;left:0}.ControlSlider-module__bottomCenterAlignment___c54fB{bottom:0;left:50%;transform:translate(-50%)}.ControlSlider-module__bottomRightAlignment___kEwrz{bottom:0;right:0}.ControlSlider-module__clickOverlay___DZA28{position:absolute;top:0;left:0;width:100%;height:100%;cursor:pointer}.ControlSlider-module__contain___pLyq7{object-fit:contain}.ControlSlider-module__cover___KdDat{object-fit:cover}.RichTextRenderer-module__link___BWeZ2{color:inherit;cursor:pointer;pointer-events:auto;transition:color .2s ease}.RichTextRenderer-module__link___BWeZ2:hover{color:var(--link-hover-color)}.SvgImage-module__svg___q3xE-{width:100%;height:100%;color:transparent;display:inline-block;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background-color:var(--fill);transition:background-color .2s;-webkit-mask:var(--svg) no-repeat center/contain;mask:var(--svg) no-repeat center/contain}.SvgImage-module__svg___q3xE-:hover{background-color:var(--hover-fill)}.SvgImage-module__img___VsTm-{width:100%;height:100%;object-fit:contain}.ImageRevealSlider-module__imageRevealSlider___UE5Ob{position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden}.ImageRevealSlider-module__image___Qjt-e{width:100%;height:100%;object-fit:cover;position:relative;-webkit-user-select:none;user-select:none;pointer-events:none}.ImageRevealSlider-module__link___N-iLG{width:100%;height:100%;display:block}.LightBox-module__backdropStyle___yWDe2{position:fixed;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;z-index:9999}.LightBox-module__contentStyle___Bgnsq{position:relative;width:100%;max-width:100vw;max-height:100vh;height:100vh;overflow:auto;background:transparent;box-sizing:border-box}.LightBox-module__stageStyle___7C4KB{position:relative;display:flex;align-items:center;justify-content:center;box-sizing:border-box;max-width:100vw;max-height:100vh;width:100%;height:100%;overflow:hidden}.LightBox-module__imageStyle___tLIlB{display:block;cursor:pointer;background-color:transparent}.LightBox-module__sliderItem___iFlJ9{display:flex;align-items:center;justify-content:center;width:100%;height:100%}.LightBox-module__imgWrapper___LuFUp{display:flex;justify-content:center;width:100%;height:100%;overflow:hidden}.LightBox-module__contain___8-yaS{object-fit:contain;max-width:100%;max-height:100%}.LightBox-module__cover___hNvOG{width:100%;height:100%;object-fit:cover;max-width:100%;max-height:100%}.LightBox-module__caption___b6L2I{position:absolute;display:flex}.LightBox-module__contentStyle___Bgnsq .splide,.LightBox-module__contentStyle___Bgnsq .splide__track{height:100%}.LightBox-module__arrow___iz38X{position:absolute;display:flex;align-items:center;justify-content:center;cursor:pointer;border:none;background-color:transparent;top:50%;left:calc(var(--is-editor, 0) * 1.3888888889vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 1.3888888889vw);z-index:1;transform:translate(-50%,-50%);padding:0;width:calc(var(--is-editor, 0) * 2.0833333333vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 2.0833333333vw);height:calc(var(--is-editor, 0) * 2.0833333333vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 2.0833333333vw)}.LightBox-module__arrow___iz38X.LightBox-module__arrowVertical___Zfz81{left:50%;top:calc(var(--is-editor, 0) * 1.3888888889vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 1.3888888889vw);transform:translate(-50%,-50%)}.LightBox-module__nextArrow___zkAQN{left:unset;right:calc(var(--is-editor, 0) * 1.3888888889vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 1.3888888889vw);transform:translate(50%,-50%)}.LightBox-module__nextArrow___zkAQN.LightBox-module__arrowVertical___Zfz81{left:50%;right:unset;top:unset;bottom:calc(var(--is-editor, 0) * 1.3888888889vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 1.3888888889vw);transform:translate(-50%,50%)}.LightBox-module__arrowInner___p48sW{all:unset;cursor:pointer;width:100%;height:100%}.LightBox-module__arrowInner___p48sW:hover .LightBox-module__arrowIcon___3VaFf path{fill:var(--arrow-hover-color)!important}.LightBox-module__arrowImg___pNV88{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.LightBox-module__mirror___pjeXc{transform:translate(-50%,-50%) scaleX(-1)!important}.LightBox-module__arrowVertical___Zfz81.LightBox-module__mirror___pjeXc{transform:translate(-50%,-50%) scaleY(-1)!important}.LightBox-module__counterStyle___JFgB3{bottom:calc(var(--is-editor, 0) * .8333333333vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * .8333333333vw);right:calc(var(--is-editor, 0) * 1.1111111111vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 1.1111111111vw);font-size:calc(var(--is-editor, 0) * .9722222222vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * .9722222222vw);position:absolute;color:#fff;opacity:.85}.LightBox-module__thumbsContainerVertical___wttk5{flex-direction:column;display:flex}.LightBox-module__thumbsContainer___osSma{position:absolute;display:flex;align-items:center;justify-content:center;pointer-events:auto}.LightBox-module__thumbsAlignStart___MO6tY{align-items:flex-start}.LightBox-module__thumbsAlignCenter___Q4sUx{align-items:center}.LightBox-module__thumbsAlignEnd___p4y9R{align-items:flex-end}.LightBox-module__thumbsContainerVertical___wttk5.LightBox-module__thumbsAlignStart___MO6tY{align-items:center;justify-content:flex-start}.LightBox-module__thumbsContainerVertical___wttk5.LightBox-module__thumbsAlignCenter___Q4sUx{align-items:center;justify-content:center}.LightBox-module__thumbsContainerVertical___wttk5.LightBox-module__thumbsAlignEnd___p4y9R{align-items:center;justify-content:flex-end}.LightBox-module__thumbItem___HvnF3{all:unset;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;transition:transform .1s ease,opacity .1s ease}.LightBox-module__thumbItem___HvnF3:hover{opacity:var(--thumb-hover)!important}.LightBox-module__thumbImage___OJ19m{display:block;height:100%;width:calc(var(--is-editor, 0) * 5.5555555556vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 5.5555555556vw)}@keyframes LightBox-module__lbFadeIn___P8mx0{0%{opacity:0}to{opacity:1}}.LightBox-module__fadeIn___0m5GW{animation-name:LightBox-module__lbFadeIn___P8mx0}@keyframes LightBox-module__lbSlideInLeft___ygsXZ{0%{transform:translate(-100%)}to{transform:translate(0)}}@keyframes LightBox-module__lbSlideInRight___w2YKV{0%{transform:translate(100%)}to{transform:translate(0)}}@keyframes LightBox-module__lbSlideInTop___W7CSQ{0%{transform:translateY(-100%)}to{transform:translateY(0)}}@keyframes LightBox-module__lbSlideInBottom___7kiT2{0%{transform:translateY(100%)}to{transform:translateY(0)}}.LightBox-module__slideInLeft___gPYwC{animation-name:LightBox-module__lbSlideInLeft___ygsXZ}.LightBox-module__slideInRight___S-pPp{animation-name:LightBox-module__lbSlideInRight___w2YKV}.LightBox-module__slideInTop___DFdAj{animation-name:LightBox-module__lbSlideInTop___W7CSQ}.LightBox-module__slideInBottom___m27kZ{animation-name:LightBox-module__lbSlideInBottom___7kiT2}.splide__container{box-sizing:border-box;position:relative}.splide__list{backface-visibility:hidden;display:-ms-flexbox;display:flex;height:100%;margin:0!important;padding:0!important}.splide.is-initialized:not(.is-active) .splide__list{display:block}.splide__pagination{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:center;justify-content:center;margin:0;pointer-events:none}.splide__pagination li{display:inline-block;line-height:1;list-style-type:none;margin:0;pointer-events:auto}.splide:not(.is-overflow) .splide__pagination{display:none}.splide__progress__bar{width:0}.splide{position:relative;visibility:hidden}.splide.is-initialized,.splide.is-rendered{visibility:visible}.splide__slide{backface-visibility:hidden;box-sizing:border-box;-ms-flex-negative:0;flex-shrink:0;list-style-type:none!important;margin:0;position:relative}.splide__slide img{vertical-align:bottom}.splide__spinner{animation:splide-loading 1s linear infinite;border:2px solid #999;border-left-color:transparent;border-radius:50%;bottom:0;contain:strict;display:inline-block;height:20px;left:0;margin:auto;position:absolute;right:0;top:0;width:20px}.splide__sr{clip:rect(0 0 0 0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.splide__toggle.is-active .splide__toggle__play,.splide__toggle__pause{display:none}.splide__toggle.is-active .splide__toggle__pause{display:inline}.splide__track{overflow:hidden;position:relative;z-index:0}@keyframes splide-loading{0%{transform:rotate(0)}to{transform:rotate(1turn)}}.splide__track--draggable{-webkit-touch-callout:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.splide__track--fade>.splide__list>.splide__slide{margin:0!important;opacity:0;z-index:0}.splide__track--fade>.splide__list>.splide__slide.is-active{opacity:1;z-index:1}.splide--rtl{direction:rtl}.splide__track--ttb>.splide__list{display:block}.splide__arrow{-ms-flex-align:center;align-items:center;background:#ccc;border:0;border-radius:50%;cursor:pointer;display:-ms-flexbox;display:flex;height:2em;-ms-flex-pack:center;justify-content:center;opacity:.7;padding:0;position:absolute;top:50%;transform:translateY(-50%);width:2em;z-index:1}.splide__arrow svg{fill:#000;height:1.2em;width:1.2em}.splide__arrow:hover:not(:disabled){opacity:.9}.splide__arrow:disabled{opacity:.3}.splide__arrow:focus-visible{outline:3px solid #0bf;outline-offset:3px}.splide__arrow--prev{left:1em}.splide__arrow--prev svg{transform:scaleX(-1)}.splide__arrow--next{right:1em}.splide.is-focus-in .splide__arrow:focus{outline:3px solid #0bf;outline-offset:3px}.splide__pagination{bottom:.5em;left:0;padding:0 1em;position:absolute;right:0;z-index:1}.splide__pagination__page{background:#ccc;border:0;border-radius:50%;display:inline-block;height:8px;margin:3px;opacity:.7;padding:0;position:relative;transition:transform .2s linear;width:8px}.splide__pagination__page.is-active{background:#fff;transform:scale(1.4);z-index:1}.splide__pagination__page:hover{cursor:pointer;opacity:.9}.splide__pagination__page:focus-visible{outline:3px solid #0bf;outline-offset:3px}.splide.is-focus-in .splide__pagination__page:focus{outline:3px solid #0bf;outline-offset:3px}.splide__progress__bar{background:#ccc;height:3px}.splide__slide{-webkit-tap-highlight-color:rgba(0,0,0,0)}.splide__slide:focus{outline:0}@supports (outline-offset:-3px){.splide__slide:focus-visible{outline:3px solid #0bf;outline-offset:-3px}}@media screen and (-ms-high-contrast:none){.splide__slide:focus-visible{border:3px solid #0bf}}@supports (outline-offset:-3px){.splide.is-focus-in .splide__slide:focus{outline:3px solid #0bf;outline-offset:-3px}}@media screen and (-ms-high-contrast:none){.splide.is-focus-in .splide__slide:focus{border:3px solid #0bf}.splide.is-focus-in .splide__track>.splide__list>.splide__slide:focus{border-color:#0bf}}.splide__toggle{cursor:pointer}.splide__toggle:focus-visible{outline:3px solid #0bf;outline-offset:3px}.splide.is-focus-in .splide__toggle:focus{outline:3px solid #0bf;outline-offset:3px}.splide__track--nav>.splide__list>.splide__slide{border:3px solid transparent;cursor:pointer}.splide__track--nav>.splide__list>.splide__slide.is-active{border:3px solid #000}.splide__arrows--rtl .splide__arrow--prev{left:auto;right:1em}.splide__arrows--rtl .splide__arrow--prev svg{transform:scaleX(1)}.splide__arrows--rtl .splide__arrow--next{left:1em;right:auto}.splide__arrows--rtl .splide__arrow--next svg{transform:scaleX(-1)}.splide__arrows--ttb .splide__arrow{left:50%;transform:translate(-50%)}.splide__arrows--ttb .splide__arrow--prev{top:1em}.splide__arrows--ttb .splide__arrow--prev svg{transform:rotate(-90deg)}.splide__arrows--ttb .splide__arrow--next{bottom:1em;top:auto}.splide__arrows--ttb .splide__arrow--next svg{transform:rotate(90deg)}.splide__pagination--ttb{bottom:0;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;left:auto;padding:1em 0;right:.5em;top:0}
|
package/dist/index.js
CHANGED
|
@@ -1456,7 +1456,11 @@ const nextArrow = "LightBox-module__nextArrow___zkAQN";
|
|
|
1456
1456
|
const arrowInner = "LightBox-module__arrowInner___p48sW";
|
|
1457
1457
|
const arrowImg = "LightBox-module__arrowImg___pNV88";
|
|
1458
1458
|
const mirror = "LightBox-module__mirror___pjeXc";
|
|
1459
|
+
const thumbsContainerVertical = "LightBox-module__thumbsContainerVertical___wttk5";
|
|
1459
1460
|
const thumbsContainer = "LightBox-module__thumbsContainer___osSma";
|
|
1461
|
+
const thumbsAlignStart = "LightBox-module__thumbsAlignStart___MO6tY";
|
|
1462
|
+
const thumbsAlignCenter = "LightBox-module__thumbsAlignCenter___Q4sUx";
|
|
1463
|
+
const thumbsAlignEnd = "LightBox-module__thumbsAlignEnd___p4y9R";
|
|
1460
1464
|
const thumbItem = "LightBox-module__thumbItem___HvnF3";
|
|
1461
1465
|
const thumbImage = "LightBox-module__thumbImage___OJ19m";
|
|
1462
1466
|
const fadeIn = "LightBox-module__fadeIn___0m5GW";
|
|
@@ -1464,7 +1468,6 @@ const slideInLeft = "LightBox-module__slideInLeft___gPYwC";
|
|
|
1464
1468
|
const slideInRight = "LightBox-module__slideInRight___S-pPp";
|
|
1465
1469
|
const slideInTop = "LightBox-module__slideInTop___DFdAj";
|
|
1466
1470
|
const slideInBottom = "LightBox-module__slideInBottom___m27kZ";
|
|
1467
|
-
const scaleSlide = "LightBox-module__scaleSlide___vZriG";
|
|
1468
1471
|
const styles = {
|
|
1469
1472
|
backdropStyle,
|
|
1470
1473
|
contentStyle,
|
|
@@ -1479,19 +1482,22 @@ const styles = {
|
|
|
1479
1482
|
arrowInner,
|
|
1480
1483
|
arrowImg,
|
|
1481
1484
|
mirror,
|
|
1485
|
+
thumbsContainerVertical,
|
|
1482
1486
|
thumbsContainer,
|
|
1487
|
+
thumbsAlignStart,
|
|
1488
|
+
thumbsAlignCenter,
|
|
1489
|
+
thumbsAlignEnd,
|
|
1483
1490
|
thumbItem,
|
|
1484
1491
|
thumbImage,
|
|
1485
1492
|
fadeIn,
|
|
1486
1493
|
slideInLeft,
|
|
1487
1494
|
slideInRight,
|
|
1488
1495
|
slideInTop,
|
|
1489
|
-
slideInBottom
|
|
1490
|
-
scaleSlide
|
|
1496
|
+
slideInBottom
|
|
1491
1497
|
};
|
|
1492
1498
|
function LightboxGallery({ settings, content, styles: styles2, portalId, activeEvent }) {
|
|
1493
1499
|
const [open, setOpen] = React.useState(false);
|
|
1494
|
-
const { url
|
|
1500
|
+
const { url } = settings.thumbnailBlock.cover;
|
|
1495
1501
|
React.useEffect(() => {
|
|
1496
1502
|
if (activeEvent === "close") {
|
|
1497
1503
|
setOpen(false);
|
|
@@ -1504,9 +1510,9 @@ function LightboxGallery({ settings, content, styles: styles2, portalId, activeE
|
|
|
1504
1510
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1505
1511
|
"img",
|
|
1506
1512
|
{
|
|
1507
|
-
src:
|
|
1513
|
+
src: url,
|
|
1508
1514
|
alt: "Cover",
|
|
1509
|
-
style: { width: "100%", height: "100%", cursor: "pointer" },
|
|
1515
|
+
style: { width: "100%", height: "100%", cursor: "pointer", objectFit: "cover" },
|
|
1510
1516
|
onClick: () => setOpen(true)
|
|
1511
1517
|
}
|
|
1512
1518
|
),
|
|
@@ -1598,6 +1604,38 @@ const Lightbox = ({ isOpen, onClose, content, settings, closeOnBackdropClick = t
|
|
|
1598
1604
|
}
|
|
1599
1605
|
return styles.fadeIn;
|
|
1600
1606
|
})();
|
|
1607
|
+
const getThumbnailPositionStyles = (position, offset) => {
|
|
1608
|
+
const styles2 = {};
|
|
1609
|
+
const [vertical, horizontal] = position.split("-");
|
|
1610
|
+
if (vertical === "top") {
|
|
1611
|
+
styles2.top = `${offset.y}px`;
|
|
1612
|
+
styles2.bottom = "auto";
|
|
1613
|
+
} else if (vertical === "middle") {
|
|
1614
|
+
styles2.top = "50%";
|
|
1615
|
+
styles2.bottom = "auto";
|
|
1616
|
+
} else if (vertical === "bottom") {
|
|
1617
|
+
styles2.top = "auto";
|
|
1618
|
+
styles2.bottom = `${offset.y}px`;
|
|
1619
|
+
}
|
|
1620
|
+
if (horizontal === "left") {
|
|
1621
|
+
styles2.left = `${offset.x}px`;
|
|
1622
|
+
styles2.right = "auto";
|
|
1623
|
+
} else if (horizontal === "center") {
|
|
1624
|
+
styles2.left = "50%";
|
|
1625
|
+
styles2.right = "auto";
|
|
1626
|
+
} else if (horizontal === "right") {
|
|
1627
|
+
styles2.left = "auto";
|
|
1628
|
+
styles2.right = `${offset.x}px`;
|
|
1629
|
+
}
|
|
1630
|
+
if (vertical === "middle" && horizontal === "center") {
|
|
1631
|
+
styles2.transform = `translate(calc(-50% + ${offset.x}px), calc(-50% + ${offset.y}px))`;
|
|
1632
|
+
} else if (vertical === "middle") {
|
|
1633
|
+
styles2.transform = `translateY(calc(-50% + ${offset.y}px))`;
|
|
1634
|
+
} else if (horizontal === "center") {
|
|
1635
|
+
styles2.transform = `translateX(calc(-50% + ${offset.x}px))`;
|
|
1636
|
+
}
|
|
1637
|
+
return styles2;
|
|
1638
|
+
};
|
|
1601
1639
|
if (!isOpen) return null;
|
|
1602
1640
|
return reactDom.createPortal(
|
|
1603
1641
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -1614,7 +1652,8 @@ const Lightbox = ({ isOpen, onClose, content, settings, closeOnBackdropClick = t
|
|
|
1614
1652
|
padding: `${layout.padding.top}px ${layout.padding.right}px ${layout.padding.bottom}px ${layout.padding.left}px`,
|
|
1615
1653
|
animationDuration: `${appearDurationMs}ms`,
|
|
1616
1654
|
animationTimingFunction: "ease",
|
|
1617
|
-
animationFillMode: "both"
|
|
1655
|
+
animationFillMode: "both",
|
|
1656
|
+
"--splide-speed": triggers.duration || "500ms"
|
|
1618
1657
|
},
|
|
1619
1658
|
children: [
|
|
1620
1659
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -1635,7 +1674,7 @@ const Lightbox = ({ isOpen, onClose, content, settings, closeOnBackdropClick = t
|
|
|
1635
1674
|
height: "100%",
|
|
1636
1675
|
type: slider.type === "fade" || slider.type === "scale" ? "fade" : "loop",
|
|
1637
1676
|
padding: 0,
|
|
1638
|
-
rewind:
|
|
1677
|
+
rewind: (slider.type === "scale" || slider.type === "fade") && appear.repeat !== "close"
|
|
1639
1678
|
},
|
|
1640
1679
|
style: {
|
|
1641
1680
|
"--splide-speed": triggers.duration || "500ms"
|
|
@@ -1719,10 +1758,20 @@ const Lightbox = ({ isOpen, onClose, content, settings, closeOnBackdropClick = t
|
|
|
1719
1758
|
thumbnail.isActive && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1720
1759
|
"div",
|
|
1721
1760
|
{
|
|
1722
|
-
className: cn(
|
|
1761
|
+
className: cn(
|
|
1762
|
+
styles.thumbsContainer,
|
|
1763
|
+
{
|
|
1764
|
+
[styles.thumbsContainerVertical]: slider.direction === "vert",
|
|
1765
|
+
[styles.thumbsAlignStart]: thumbnail.align === "start",
|
|
1766
|
+
[styles.thumbsAlignCenter]: thumbnail.align === "center",
|
|
1767
|
+
[styles.thumbsAlignEnd]: thumbnail.align === "end"
|
|
1768
|
+
}
|
|
1769
|
+
),
|
|
1723
1770
|
style: {
|
|
1724
1771
|
gap: `${thumbnail.grid.gap}px`,
|
|
1725
|
-
height: `${thumbnail.grid.height}px`
|
|
1772
|
+
...slider.direction === "horiz" ? { height: `${thumbnail.grid.height}px` } : {},
|
|
1773
|
+
...slider.direction === "vert" ? { width: `${thumbnail.grid.width}px` } : {},
|
|
1774
|
+
...getThumbnailPositionStyles(thumbnail.position, thumbnail.offset)
|
|
1726
1775
|
},
|
|
1727
1776
|
children: content.map((item, index) => {
|
|
1728
1777
|
const isActive = index === currentIndex;
|
|
@@ -1732,7 +1781,8 @@ const Lightbox = ({ isOpen, onClose, content, settings, closeOnBackdropClick = t
|
|
|
1732
1781
|
className: styles.thumbItem,
|
|
1733
1782
|
style: {
|
|
1734
1783
|
transform: `scale(${isActive ? thumbnail.activeState.scale : 1})`,
|
|
1735
|
-
height: "100%",
|
|
1784
|
+
...slider.direction === "horiz" ? { height: "100%" } : {},
|
|
1785
|
+
...slider.direction === "vert" ? { width: "100%" } : {},
|
|
1736
1786
|
opacity: isActive ? thumbnail.activeState.opacity : thumbnail.opacity,
|
|
1737
1787
|
["--thumb-hover"]: thumbnail.activeState.opacity
|
|
1738
1788
|
},
|
|
@@ -1748,7 +1798,11 @@ const Lightbox = ({ isOpen, onClose, content, settings, closeOnBackdropClick = t
|
|
|
1748
1798
|
src: item.image.url,
|
|
1749
1799
|
alt: item.image.name ?? "",
|
|
1750
1800
|
className: styles.thumbImage,
|
|
1751
|
-
style: {
|
|
1801
|
+
style: {
|
|
1802
|
+
objectFit: thumbnail.fit === "cover" ? "cover" : "contain",
|
|
1803
|
+
...slider.direction === "horiz" ? { height: "100%" } : {},
|
|
1804
|
+
...slider.direction === "vert" ? { width: "100%" } : {}
|
|
1805
|
+
}
|
|
1752
1806
|
}
|
|
1753
1807
|
)
|
|
1754
1808
|
},
|
|
@@ -1865,7 +1919,7 @@ const LightboxComponent = {
|
|
|
1865
1919
|
display: {
|
|
1866
1920
|
type: "ratio-group"
|
|
1867
1921
|
},
|
|
1868
|
-
enum: ["click", "drag"
|
|
1922
|
+
enum: ["click", "drag"]
|
|
1869
1923
|
},
|
|
1870
1924
|
switch: {
|
|
1871
1925
|
type: "string",
|
|
@@ -1964,6 +2018,14 @@ const LightboxComponent = {
|
|
|
1964
2018
|
type: "numeric-input"
|
|
1965
2019
|
}
|
|
1966
2020
|
},
|
|
2021
|
+
width: {
|
|
2022
|
+
type: "number",
|
|
2023
|
+
label: "W",
|
|
2024
|
+
display: {
|
|
2025
|
+
type: "numeric-input",
|
|
2026
|
+
visible: false
|
|
2027
|
+
}
|
|
2028
|
+
},
|
|
1967
2029
|
gap: {
|
|
1968
2030
|
type: "number",
|
|
1969
2031
|
label: "Gap",
|
|
@@ -2008,9 +2070,9 @@ const LightboxComponent = {
|
|
|
2008
2070
|
scale: {
|
|
2009
2071
|
type: "number",
|
|
2010
2072
|
title: "Scale",
|
|
2011
|
-
min:
|
|
2012
|
-
max:
|
|
2013
|
-
step:
|
|
2073
|
+
min: 0,
|
|
2074
|
+
max: 100,
|
|
2075
|
+
step: 1,
|
|
2014
2076
|
display: {
|
|
2015
2077
|
type: "range-control"
|
|
2016
2078
|
}
|
|
@@ -2116,7 +2178,7 @@ const LightboxComponent = {
|
|
|
2116
2178
|
type: "number",
|
|
2117
2179
|
title: "Scale",
|
|
2118
2180
|
min: 0,
|
|
2119
|
-
max:
|
|
2181
|
+
max: 100,
|
|
2120
2182
|
display: {
|
|
2121
2183
|
type: "range-control"
|
|
2122
2184
|
}
|
|
@@ -2257,7 +2319,7 @@ const LightboxComponent = {
|
|
|
2257
2319
|
position: "bottom-center",
|
|
2258
2320
|
fit: "cover",
|
|
2259
2321
|
align: "center",
|
|
2260
|
-
triggers: "
|
|
2322
|
+
triggers: "clk",
|
|
2261
2323
|
grid: {
|
|
2262
2324
|
height: 60,
|
|
2263
2325
|
gap: 8
|
|
@@ -2265,7 +2327,7 @@ const LightboxComponent = {
|
|
|
2265
2327
|
offset: { x: 0, y: 0 },
|
|
2266
2328
|
opacity: 100,
|
|
2267
2329
|
activeState: {
|
|
2268
|
-
scale:
|
|
2330
|
+
scale: 100,
|
|
2269
2331
|
opacity: 100
|
|
2270
2332
|
}
|
|
2271
2333
|
},
|
|
@@ -2278,7 +2340,7 @@ const LightboxComponent = {
|
|
|
2278
2340
|
isActive: true,
|
|
2279
2341
|
arrowsImgUrl: null,
|
|
2280
2342
|
offset: { x: 0, y: 0 },
|
|
2281
|
-
scale:
|
|
2343
|
+
scale: 100,
|
|
2282
2344
|
color: "#000000",
|
|
2283
2345
|
hover: "#cccccc"
|
|
2284
2346
|
},
|
|
@@ -2336,6 +2398,26 @@ const LightboxComponent = {
|
|
|
2336
2398
|
name: "properties.lightboxBlock.properties.triggers.properties.duration.display.visible",
|
|
2337
2399
|
value: false
|
|
2338
2400
|
}
|
|
2401
|
+
},
|
|
2402
|
+
{
|
|
2403
|
+
if: {
|
|
2404
|
+
name: "slider.direction",
|
|
2405
|
+
value: "vert"
|
|
2406
|
+
},
|
|
2407
|
+
then: {
|
|
2408
|
+
name: "properties.lightboxBlock.properties.thumbnail.properties.grid.properties.width.display.visible",
|
|
2409
|
+
value: true
|
|
2410
|
+
}
|
|
2411
|
+
},
|
|
2412
|
+
{
|
|
2413
|
+
if: {
|
|
2414
|
+
name: "slider.direction",
|
|
2415
|
+
value: "vert"
|
|
2416
|
+
},
|
|
2417
|
+
then: {
|
|
2418
|
+
name: "properties.lightboxBlock.properties.thumbnail.properties.grid.properties.height.display.visible",
|
|
2419
|
+
value: false
|
|
2420
|
+
}
|
|
2339
2421
|
}
|
|
2340
2422
|
]
|
|
2341
2423
|
},
|
package/dist/index.mjs
CHANGED
|
@@ -1454,7 +1454,11 @@ const nextArrow = "LightBox-module__nextArrow___zkAQN";
|
|
|
1454
1454
|
const arrowInner = "LightBox-module__arrowInner___p48sW";
|
|
1455
1455
|
const arrowImg = "LightBox-module__arrowImg___pNV88";
|
|
1456
1456
|
const mirror = "LightBox-module__mirror___pjeXc";
|
|
1457
|
+
const thumbsContainerVertical = "LightBox-module__thumbsContainerVertical___wttk5";
|
|
1457
1458
|
const thumbsContainer = "LightBox-module__thumbsContainer___osSma";
|
|
1459
|
+
const thumbsAlignStart = "LightBox-module__thumbsAlignStart___MO6tY";
|
|
1460
|
+
const thumbsAlignCenter = "LightBox-module__thumbsAlignCenter___Q4sUx";
|
|
1461
|
+
const thumbsAlignEnd = "LightBox-module__thumbsAlignEnd___p4y9R";
|
|
1458
1462
|
const thumbItem = "LightBox-module__thumbItem___HvnF3";
|
|
1459
1463
|
const thumbImage = "LightBox-module__thumbImage___OJ19m";
|
|
1460
1464
|
const fadeIn = "LightBox-module__fadeIn___0m5GW";
|
|
@@ -1462,7 +1466,6 @@ const slideInLeft = "LightBox-module__slideInLeft___gPYwC";
|
|
|
1462
1466
|
const slideInRight = "LightBox-module__slideInRight___S-pPp";
|
|
1463
1467
|
const slideInTop = "LightBox-module__slideInTop___DFdAj";
|
|
1464
1468
|
const slideInBottom = "LightBox-module__slideInBottom___m27kZ";
|
|
1465
|
-
const scaleSlide = "LightBox-module__scaleSlide___vZriG";
|
|
1466
1469
|
const styles = {
|
|
1467
1470
|
backdropStyle,
|
|
1468
1471
|
contentStyle,
|
|
@@ -1477,19 +1480,22 @@ const styles = {
|
|
|
1477
1480
|
arrowInner,
|
|
1478
1481
|
arrowImg,
|
|
1479
1482
|
mirror,
|
|
1483
|
+
thumbsContainerVertical,
|
|
1480
1484
|
thumbsContainer,
|
|
1485
|
+
thumbsAlignStart,
|
|
1486
|
+
thumbsAlignCenter,
|
|
1487
|
+
thumbsAlignEnd,
|
|
1481
1488
|
thumbItem,
|
|
1482
1489
|
thumbImage,
|
|
1483
1490
|
fadeIn,
|
|
1484
1491
|
slideInLeft,
|
|
1485
1492
|
slideInRight,
|
|
1486
1493
|
slideInTop,
|
|
1487
|
-
slideInBottom
|
|
1488
|
-
scaleSlide
|
|
1494
|
+
slideInBottom
|
|
1489
1495
|
};
|
|
1490
1496
|
function LightboxGallery({ settings, content, styles: styles2, portalId, activeEvent }) {
|
|
1491
1497
|
const [open, setOpen] = React.useState(false);
|
|
1492
|
-
const { url
|
|
1498
|
+
const { url } = settings.thumbnailBlock.cover;
|
|
1493
1499
|
useEffect(() => {
|
|
1494
1500
|
if (activeEvent === "close") {
|
|
1495
1501
|
setOpen(false);
|
|
@@ -1502,9 +1508,9 @@ function LightboxGallery({ settings, content, styles: styles2, portalId, activeE
|
|
|
1502
1508
|
/* @__PURE__ */ jsx(
|
|
1503
1509
|
"img",
|
|
1504
1510
|
{
|
|
1505
|
-
src:
|
|
1511
|
+
src: url,
|
|
1506
1512
|
alt: "Cover",
|
|
1507
|
-
style: { width: "100%", height: "100%", cursor: "pointer" },
|
|
1513
|
+
style: { width: "100%", height: "100%", cursor: "pointer", objectFit: "cover" },
|
|
1508
1514
|
onClick: () => setOpen(true)
|
|
1509
1515
|
}
|
|
1510
1516
|
),
|
|
@@ -1596,6 +1602,38 @@ const Lightbox = ({ isOpen, onClose, content, settings, closeOnBackdropClick = t
|
|
|
1596
1602
|
}
|
|
1597
1603
|
return styles.fadeIn;
|
|
1598
1604
|
})();
|
|
1605
|
+
const getThumbnailPositionStyles = (position, offset) => {
|
|
1606
|
+
const styles2 = {};
|
|
1607
|
+
const [vertical, horizontal] = position.split("-");
|
|
1608
|
+
if (vertical === "top") {
|
|
1609
|
+
styles2.top = `${offset.y}px`;
|
|
1610
|
+
styles2.bottom = "auto";
|
|
1611
|
+
} else if (vertical === "middle") {
|
|
1612
|
+
styles2.top = "50%";
|
|
1613
|
+
styles2.bottom = "auto";
|
|
1614
|
+
} else if (vertical === "bottom") {
|
|
1615
|
+
styles2.top = "auto";
|
|
1616
|
+
styles2.bottom = `${offset.y}px`;
|
|
1617
|
+
}
|
|
1618
|
+
if (horizontal === "left") {
|
|
1619
|
+
styles2.left = `${offset.x}px`;
|
|
1620
|
+
styles2.right = "auto";
|
|
1621
|
+
} else if (horizontal === "center") {
|
|
1622
|
+
styles2.left = "50%";
|
|
1623
|
+
styles2.right = "auto";
|
|
1624
|
+
} else if (horizontal === "right") {
|
|
1625
|
+
styles2.left = "auto";
|
|
1626
|
+
styles2.right = `${offset.x}px`;
|
|
1627
|
+
}
|
|
1628
|
+
if (vertical === "middle" && horizontal === "center") {
|
|
1629
|
+
styles2.transform = `translate(calc(-50% + ${offset.x}px), calc(-50% + ${offset.y}px))`;
|
|
1630
|
+
} else if (vertical === "middle") {
|
|
1631
|
+
styles2.transform = `translateY(calc(-50% + ${offset.y}px))`;
|
|
1632
|
+
} else if (horizontal === "center") {
|
|
1633
|
+
styles2.transform = `translateX(calc(-50% + ${offset.x}px))`;
|
|
1634
|
+
}
|
|
1635
|
+
return styles2;
|
|
1636
|
+
};
|
|
1599
1637
|
if (!isOpen) return null;
|
|
1600
1638
|
return createPortal(
|
|
1601
1639
|
/* @__PURE__ */ jsx(
|
|
@@ -1612,7 +1650,8 @@ const Lightbox = ({ isOpen, onClose, content, settings, closeOnBackdropClick = t
|
|
|
1612
1650
|
padding: `${layout.padding.top}px ${layout.padding.right}px ${layout.padding.bottom}px ${layout.padding.left}px`,
|
|
1613
1651
|
animationDuration: `${appearDurationMs}ms`,
|
|
1614
1652
|
animationTimingFunction: "ease",
|
|
1615
|
-
animationFillMode: "both"
|
|
1653
|
+
animationFillMode: "both",
|
|
1654
|
+
"--splide-speed": triggers.duration || "500ms"
|
|
1616
1655
|
},
|
|
1617
1656
|
children: [
|
|
1618
1657
|
/* @__PURE__ */ jsx(
|
|
@@ -1633,7 +1672,7 @@ const Lightbox = ({ isOpen, onClose, content, settings, closeOnBackdropClick = t
|
|
|
1633
1672
|
height: "100%",
|
|
1634
1673
|
type: slider.type === "fade" || slider.type === "scale" ? "fade" : "loop",
|
|
1635
1674
|
padding: 0,
|
|
1636
|
-
rewind:
|
|
1675
|
+
rewind: (slider.type === "scale" || slider.type === "fade") && appear.repeat !== "close"
|
|
1637
1676
|
},
|
|
1638
1677
|
style: {
|
|
1639
1678
|
"--splide-speed": triggers.duration || "500ms"
|
|
@@ -1717,10 +1756,20 @@ const Lightbox = ({ isOpen, onClose, content, settings, closeOnBackdropClick = t
|
|
|
1717
1756
|
thumbnail.isActive && /* @__PURE__ */ jsx(
|
|
1718
1757
|
"div",
|
|
1719
1758
|
{
|
|
1720
|
-
className: cn(
|
|
1759
|
+
className: cn(
|
|
1760
|
+
styles.thumbsContainer,
|
|
1761
|
+
{
|
|
1762
|
+
[styles.thumbsContainerVertical]: slider.direction === "vert",
|
|
1763
|
+
[styles.thumbsAlignStart]: thumbnail.align === "start",
|
|
1764
|
+
[styles.thumbsAlignCenter]: thumbnail.align === "center",
|
|
1765
|
+
[styles.thumbsAlignEnd]: thumbnail.align === "end"
|
|
1766
|
+
}
|
|
1767
|
+
),
|
|
1721
1768
|
style: {
|
|
1722
1769
|
gap: `${thumbnail.grid.gap}px`,
|
|
1723
|
-
height: `${thumbnail.grid.height}px`
|
|
1770
|
+
...slider.direction === "horiz" ? { height: `${thumbnail.grid.height}px` } : {},
|
|
1771
|
+
...slider.direction === "vert" ? { width: `${thumbnail.grid.width}px` } : {},
|
|
1772
|
+
...getThumbnailPositionStyles(thumbnail.position, thumbnail.offset)
|
|
1724
1773
|
},
|
|
1725
1774
|
children: content.map((item, index) => {
|
|
1726
1775
|
const isActive = index === currentIndex;
|
|
@@ -1730,7 +1779,8 @@ const Lightbox = ({ isOpen, onClose, content, settings, closeOnBackdropClick = t
|
|
|
1730
1779
|
className: styles.thumbItem,
|
|
1731
1780
|
style: {
|
|
1732
1781
|
transform: `scale(${isActive ? thumbnail.activeState.scale : 1})`,
|
|
1733
|
-
height: "100%",
|
|
1782
|
+
...slider.direction === "horiz" ? { height: "100%" } : {},
|
|
1783
|
+
...slider.direction === "vert" ? { width: "100%" } : {},
|
|
1734
1784
|
opacity: isActive ? thumbnail.activeState.opacity : thumbnail.opacity,
|
|
1735
1785
|
["--thumb-hover"]: thumbnail.activeState.opacity
|
|
1736
1786
|
},
|
|
@@ -1746,7 +1796,11 @@ const Lightbox = ({ isOpen, onClose, content, settings, closeOnBackdropClick = t
|
|
|
1746
1796
|
src: item.image.url,
|
|
1747
1797
|
alt: item.image.name ?? "",
|
|
1748
1798
|
className: styles.thumbImage,
|
|
1749
|
-
style: {
|
|
1799
|
+
style: {
|
|
1800
|
+
objectFit: thumbnail.fit === "cover" ? "cover" : "contain",
|
|
1801
|
+
...slider.direction === "horiz" ? { height: "100%" } : {},
|
|
1802
|
+
...slider.direction === "vert" ? { width: "100%" } : {}
|
|
1803
|
+
}
|
|
1750
1804
|
}
|
|
1751
1805
|
)
|
|
1752
1806
|
},
|
|
@@ -1863,7 +1917,7 @@ const LightboxComponent = {
|
|
|
1863
1917
|
display: {
|
|
1864
1918
|
type: "ratio-group"
|
|
1865
1919
|
},
|
|
1866
|
-
enum: ["click", "drag"
|
|
1920
|
+
enum: ["click", "drag"]
|
|
1867
1921
|
},
|
|
1868
1922
|
switch: {
|
|
1869
1923
|
type: "string",
|
|
@@ -1962,6 +2016,14 @@ const LightboxComponent = {
|
|
|
1962
2016
|
type: "numeric-input"
|
|
1963
2017
|
}
|
|
1964
2018
|
},
|
|
2019
|
+
width: {
|
|
2020
|
+
type: "number",
|
|
2021
|
+
label: "W",
|
|
2022
|
+
display: {
|
|
2023
|
+
type: "numeric-input",
|
|
2024
|
+
visible: false
|
|
2025
|
+
}
|
|
2026
|
+
},
|
|
1965
2027
|
gap: {
|
|
1966
2028
|
type: "number",
|
|
1967
2029
|
label: "Gap",
|
|
@@ -2006,9 +2068,9 @@ const LightboxComponent = {
|
|
|
2006
2068
|
scale: {
|
|
2007
2069
|
type: "number",
|
|
2008
2070
|
title: "Scale",
|
|
2009
|
-
min:
|
|
2010
|
-
max:
|
|
2011
|
-
step:
|
|
2071
|
+
min: 0,
|
|
2072
|
+
max: 100,
|
|
2073
|
+
step: 1,
|
|
2012
2074
|
display: {
|
|
2013
2075
|
type: "range-control"
|
|
2014
2076
|
}
|
|
@@ -2114,7 +2176,7 @@ const LightboxComponent = {
|
|
|
2114
2176
|
type: "number",
|
|
2115
2177
|
title: "Scale",
|
|
2116
2178
|
min: 0,
|
|
2117
|
-
max:
|
|
2179
|
+
max: 100,
|
|
2118
2180
|
display: {
|
|
2119
2181
|
type: "range-control"
|
|
2120
2182
|
}
|
|
@@ -2255,7 +2317,7 @@ const LightboxComponent = {
|
|
|
2255
2317
|
position: "bottom-center",
|
|
2256
2318
|
fit: "cover",
|
|
2257
2319
|
align: "center",
|
|
2258
|
-
triggers: "
|
|
2320
|
+
triggers: "clk",
|
|
2259
2321
|
grid: {
|
|
2260
2322
|
height: 60,
|
|
2261
2323
|
gap: 8
|
|
@@ -2263,7 +2325,7 @@ const LightboxComponent = {
|
|
|
2263
2325
|
offset: { x: 0, y: 0 },
|
|
2264
2326
|
opacity: 100,
|
|
2265
2327
|
activeState: {
|
|
2266
|
-
scale:
|
|
2328
|
+
scale: 100,
|
|
2267
2329
|
opacity: 100
|
|
2268
2330
|
}
|
|
2269
2331
|
},
|
|
@@ -2276,7 +2338,7 @@ const LightboxComponent = {
|
|
|
2276
2338
|
isActive: true,
|
|
2277
2339
|
arrowsImgUrl: null,
|
|
2278
2340
|
offset: { x: 0, y: 0 },
|
|
2279
|
-
scale:
|
|
2341
|
+
scale: 100,
|
|
2280
2342
|
color: "#000000",
|
|
2281
2343
|
hover: "#cccccc"
|
|
2282
2344
|
},
|
|
@@ -2334,6 +2396,26 @@ const LightboxComponent = {
|
|
|
2334
2396
|
name: "properties.lightboxBlock.properties.triggers.properties.duration.display.visible",
|
|
2335
2397
|
value: false
|
|
2336
2398
|
}
|
|
2399
|
+
},
|
|
2400
|
+
{
|
|
2401
|
+
if: {
|
|
2402
|
+
name: "slider.direction",
|
|
2403
|
+
value: "vert"
|
|
2404
|
+
},
|
|
2405
|
+
then: {
|
|
2406
|
+
name: "properties.lightboxBlock.properties.thumbnail.properties.grid.properties.width.display.visible",
|
|
2407
|
+
value: true
|
|
2408
|
+
}
|
|
2409
|
+
},
|
|
2410
|
+
{
|
|
2411
|
+
if: {
|
|
2412
|
+
name: "slider.direction",
|
|
2413
|
+
value: "vert"
|
|
2414
|
+
},
|
|
2415
|
+
then: {
|
|
2416
|
+
name: "properties.lightboxBlock.properties.thumbnail.properties.grid.properties.height.display.visible",
|
|
2417
|
+
value: false
|
|
2418
|
+
}
|
|
2337
2419
|
}
|
|
2338
2420
|
]
|
|
2339
2421
|
},
|