@cntrl-site/components 0.1.10-alpha.1 → 0.1.13
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/LICENSE +21 -21
- package/README.md +2 -2
- package/dist/Components/ControlSlider/ControlSlider.d.ts +2 -2
- package/dist/Components/ControlSlider/ControlSliderComponent.d.ts +4 -4
- package/dist/Components/Lightbox/Lightbox.d.ts +2 -2
- package/dist/components.css +1 -1
- package/dist/index.js +112 -1048
- package/dist/index.mjs +112 -1048
- package/package.json +68 -68
- package/dist/Components/Testimonials/Testimonials.d.ts +0 -106
- package/dist/Components/Testimonials/TestimonialsComponent.d.ts +0 -2
- package/dist/Components/Testimonials/getAlignPosition.d.ts +0 -3
package/dist/index.js
CHANGED
|
@@ -5,17 +5,17 @@ const React = require("react");
|
|
|
5
5
|
const reactSplide = require("@splidejs/react-splide");
|
|
6
6
|
const cn = require("classnames");
|
|
7
7
|
const reactDom = require("react-dom");
|
|
8
|
-
const wrapper
|
|
8
|
+
const wrapper = "ControlSlider-module__wrapper___sHEkd";
|
|
9
9
|
const hoverArrow = "ControlSlider-module__hoverArrow___A-dOH";
|
|
10
10
|
const sliderItem = "ControlSlider-module__sliderItem___QQSkR";
|
|
11
11
|
const sliderImage = "ControlSlider-module__sliderImage___9hRl-";
|
|
12
|
-
const arrow$
|
|
12
|
+
const arrow$1 = "ControlSlider-module__arrow___05ghY";
|
|
13
13
|
const arrowVertical$1 = "ControlSlider-module__arrowVertical___tBfVN";
|
|
14
|
-
const nextArrow$
|
|
15
|
-
const arrowInner$
|
|
16
|
-
const arrowIcon
|
|
17
|
-
const arrowImg$
|
|
18
|
-
const mirror$
|
|
14
|
+
const nextArrow$1 = "ControlSlider-module__nextArrow___-30Yc";
|
|
15
|
+
const arrowInner$1 = "ControlSlider-module__arrowInner___aEra3";
|
|
16
|
+
const arrowIcon = "ControlSlider-module__arrowIcon___S4ztF";
|
|
17
|
+
const arrowImg$1 = "ControlSlider-module__arrowImg___2dwJW";
|
|
18
|
+
const mirror$1 = "ControlSlider-module__mirror___brd6U";
|
|
19
19
|
const pagination = "ControlSlider-module__pagination___bicLF";
|
|
20
20
|
const paginationInner = "ControlSlider-module__paginationInner___bT-P-";
|
|
21
21
|
const paginationVertical = "ControlSlider-module__paginationVertical___zYqKw";
|
|
@@ -47,19 +47,19 @@ const bottomCenterAlignment = "ControlSlider-module__bottomCenterAlignment___c54
|
|
|
47
47
|
const bottomRightAlignment = "ControlSlider-module__bottomRightAlignment___kEwrz";
|
|
48
48
|
const clickOverlay = "ControlSlider-module__clickOverlay___DZA28";
|
|
49
49
|
const contain$1 = "ControlSlider-module__contain___pLyq7";
|
|
50
|
-
const cover$
|
|
50
|
+
const cover$1 = "ControlSlider-module__cover___KdDat";
|
|
51
51
|
const styles$3 = {
|
|
52
|
-
wrapper
|
|
52
|
+
wrapper,
|
|
53
53
|
hoverArrow,
|
|
54
54
|
sliderItem,
|
|
55
55
|
sliderImage,
|
|
56
|
-
arrow: arrow$
|
|
56
|
+
arrow: arrow$1,
|
|
57
57
|
arrowVertical: arrowVertical$1,
|
|
58
|
-
nextArrow: nextArrow$
|
|
59
|
-
arrowInner: arrowInner$
|
|
60
|
-
arrowIcon
|
|
61
|
-
arrowImg: arrowImg$
|
|
62
|
-
mirror: mirror$
|
|
58
|
+
nextArrow: nextArrow$1,
|
|
59
|
+
arrowInner: arrowInner$1,
|
|
60
|
+
arrowIcon,
|
|
61
|
+
arrowImg: arrowImg$1,
|
|
62
|
+
mirror: mirror$1,
|
|
63
63
|
pagination,
|
|
64
64
|
paginationInner,
|
|
65
65
|
paginationVertical,
|
|
@@ -91,7 +91,7 @@ const styles$3 = {
|
|
|
91
91
|
bottomRightAlignment,
|
|
92
92
|
clickOverlay,
|
|
93
93
|
contain: contain$1,
|
|
94
|
-
cover: cover$
|
|
94
|
+
cover: cover$1
|
|
95
95
|
};
|
|
96
96
|
const link$1 = "RichTextRenderer-module__link___BWeZ2";
|
|
97
97
|
const styles$2 = {
|
|
@@ -171,12 +171,12 @@ const alignmentClassName = {
|
|
|
171
171
|
};
|
|
172
172
|
function ControlSlider({ settings, content, styles: sliderStyles, isEditor }) {
|
|
173
173
|
const [sliderRef, setSliderRef] = React.useState(null);
|
|
174
|
-
const { widthSettings, fontSettings, letterSpacing, textAlign, wordSpacing, fontSizeLineHeight, textAppearance, color } = sliderStyles.
|
|
174
|
+
const { widthSettings, fontSettings, letterSpacing, textAlign, wordSpacing, fontSizeLineHeight, textAppearance, color } = sliderStyles.imageCaption;
|
|
175
175
|
const [sliderDimensions, setSliderDimensions] = React.useState(void 0);
|
|
176
176
|
const [wrapperRef, setWrapperRef] = React.useState(null);
|
|
177
177
|
const [currentSlideIndex, setCurrentSlideIndex] = React.useState(0);
|
|
178
178
|
const [key, setKey] = React.useState(0);
|
|
179
|
-
const { direction, transition, controls, pagination: pagination2,
|
|
179
|
+
const { direction, transition, controls, pagination: pagination2, imageCaption, triggers } = settings;
|
|
180
180
|
const prevSliderTypeRef = React.useRef(transition.type);
|
|
181
181
|
const { x: controlsOffsetX, y: controlsOffsetY } = settings.controls.offset;
|
|
182
182
|
const handleArrowClick = (dir) => {
|
|
@@ -212,7 +212,7 @@ function ControlSlider({ settings, content, styles: sliderStyles, isEditor }) {
|
|
|
212
212
|
backgroundColor: transition.backgroundColor && transition.type === "fade in" ? transition.backgroundColor : "transparent"
|
|
213
213
|
},
|
|
214
214
|
children: [
|
|
215
|
-
settings.
|
|
215
|
+
settings.imageCaption.isActive && /* @__PURE__ */ jsxRuntime.jsx(
|
|
216
216
|
"div",
|
|
217
217
|
{
|
|
218
218
|
className: cn(styles$3.captionBlock),
|
|
@@ -223,7 +223,7 @@ function ControlSlider({ settings, content, styles: sliderStyles, isEditor }) {
|
|
|
223
223
|
children: content.map((item, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
224
224
|
"div",
|
|
225
225
|
{
|
|
226
|
-
className: cn(styles$3.captionText, alignmentClassName[
|
|
226
|
+
className: cn(styles$3.captionText, alignmentClassName[imageCaption.alignment], {
|
|
227
227
|
[styles$3.withPointerEvents]: index === currentSlideIndex && isEditor,
|
|
228
228
|
[styles$3.active]: index === currentSlideIndex
|
|
229
229
|
}),
|
|
@@ -246,13 +246,13 @@ function ControlSlider({ settings, content, styles: sliderStyles, isEditor }) {
|
|
|
246
246
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
247
247
|
"div",
|
|
248
248
|
{
|
|
249
|
-
"data-styles": "
|
|
249
|
+
"data-styles": "imageCaption",
|
|
250
250
|
className: styles$3.captionTextInner,
|
|
251
251
|
style: {
|
|
252
|
-
"--link-hover-color":
|
|
252
|
+
"--link-hover-color": imageCaption.hover,
|
|
253
253
|
position: "relative",
|
|
254
|
-
top: scalingValue(
|
|
255
|
-
left: scalingValue(
|
|
254
|
+
top: scalingValue(imageCaption.offset.y, isEditor),
|
|
255
|
+
left: scalingValue(imageCaption.offset.x, isEditor)
|
|
256
256
|
},
|
|
257
257
|
children: /* @__PURE__ */ jsxRuntime.jsx(RichTextRenderer, { content: item.imageCaption })
|
|
258
258
|
}
|
|
@@ -345,7 +345,7 @@ function ControlSlider({ settings, content, styles: sliderStyles, isEditor }) {
|
|
|
345
345
|
className: cn(styles$3.arrowImg, styles$3.mirror)
|
|
346
346
|
}
|
|
347
347
|
),
|
|
348
|
-
!controls.arrowsImgUrl && /* @__PURE__ */ jsxRuntime.jsx(ArrowIcon
|
|
348
|
+
!controls.arrowsImgUrl && /* @__PURE__ */ jsxRuntime.jsx(ArrowIcon, { color: controls.color, className: cn(styles$3.arrowIcon, styles$3.arrowImg, styles$3.mirror) })
|
|
349
349
|
]
|
|
350
350
|
}
|
|
351
351
|
)
|
|
@@ -380,7 +380,7 @@ function ControlSlider({ settings, content, styles: sliderStyles, isEditor }) {
|
|
|
380
380
|
className: styles$3.arrowImg
|
|
381
381
|
}
|
|
382
382
|
),
|
|
383
|
-
!controls.arrowsImgUrl && /* @__PURE__ */ jsxRuntime.jsx(ArrowIcon
|
|
383
|
+
!controls.arrowsImgUrl && /* @__PURE__ */ jsxRuntime.jsx(ArrowIcon, { color: controls.color, className: cn(styles$3.arrowIcon, styles$3.arrowImg) })
|
|
384
384
|
]
|
|
385
385
|
}
|
|
386
386
|
)
|
|
@@ -452,7 +452,7 @@ function ControlSlider({ settings, content, styles: sliderStyles, isEditor }) {
|
|
|
452
452
|
}
|
|
453
453
|
) });
|
|
454
454
|
}
|
|
455
|
-
function ArrowIcon
|
|
455
|
+
function ArrowIcon({ color, className }) {
|
|
456
456
|
return /* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: "0 0 10 18", className, children: /* @__PURE__ */ jsxRuntime.jsx("g", { id: "Symbols", stroke: "none", strokeWidth: "1", fillRule: "evenodd", children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M-3.70710678,4.29289322 C-3.34662282,3.93240926 -2.77939176,3.90467972 -2.38710056,4.20970461 L-2.29289322,4.29289322 L5,11.585 L12.2928932,4.29289322 C12.6533772,3.93240926 13.2206082,3.90467972 13.6128994,4.20970461 L13.7071068,4.29289322 C14.0675907,4.65337718 14.0953203,5.22060824 13.7902954,5.61289944 L13.7071068,5.70710678 L5.70710678,13.7071068 C5.34662282,14.0675907 4.77939176,14.0953203 4.38710056,13.7902954 L4.29289322,13.7071068 L-3.70710678,5.70710678 C-4.09763107,5.31658249 -4.09763107,4.68341751 -3.70710678,4.29289322 Z", id: "Shape-Copy", fill: color, transform: "translate(5, 9) rotate(-90) translate(-5, -9)" }) }) });
|
|
457
457
|
}
|
|
458
458
|
const ControlSliderComponent = {
|
|
@@ -705,7 +705,7 @@ const ControlSliderComponent = {
|
|
|
705
705
|
}
|
|
706
706
|
}
|
|
707
707
|
},
|
|
708
|
-
|
|
708
|
+
imageCaption: {
|
|
709
709
|
title: "Caption",
|
|
710
710
|
icon: "text-icon",
|
|
711
711
|
tooltip: "Caption",
|
|
@@ -799,7 +799,7 @@ const ControlSliderComponent = {
|
|
|
799
799
|
hover: "#cccccc"
|
|
800
800
|
},
|
|
801
801
|
direction: "horiz",
|
|
802
|
-
|
|
802
|
+
imageCaption: {
|
|
803
803
|
offset: {
|
|
804
804
|
x: 0,
|
|
805
805
|
y: 0
|
|
@@ -922,7 +922,7 @@ const ControlSliderComponent = {
|
|
|
922
922
|
layoutBased: true,
|
|
923
923
|
type: "object",
|
|
924
924
|
properties: {
|
|
925
|
-
|
|
925
|
+
imageCaption: {
|
|
926
926
|
dataName: "caption",
|
|
927
927
|
type: "object",
|
|
928
928
|
properties: {
|
|
@@ -1020,7 +1020,7 @@ const ControlSliderComponent = {
|
|
|
1020
1020
|
}
|
|
1021
1021
|
},
|
|
1022
1022
|
default: {
|
|
1023
|
-
|
|
1023
|
+
imageCaption: {
|
|
1024
1024
|
widthSettings: {
|
|
1025
1025
|
width: 0.13,
|
|
1026
1026
|
sizing: "auto"
|
|
@@ -1624,16 +1624,16 @@ const contentStyle = "LightBox-module__contentStyle___Bgnsq";
|
|
|
1624
1624
|
const imageStyle = "LightBox-module__imageStyle___tLIlB";
|
|
1625
1625
|
const imgWrapper = "LightBox-module__imgWrapper___LuFUp";
|
|
1626
1626
|
const contain = "LightBox-module__contain___8-yaS";
|
|
1627
|
-
const cover
|
|
1628
|
-
const caption
|
|
1627
|
+
const cover = "LightBox-module__cover___hNvOG";
|
|
1628
|
+
const caption = "LightBox-module__caption___b6L2I";
|
|
1629
1629
|
const captionTextInner = "LightBox-module__captionTextInner___rCGNH";
|
|
1630
1630
|
const lightboxSplide = "LightBox-module__lightboxSplide___XFuWC";
|
|
1631
|
-
const arrow
|
|
1631
|
+
const arrow = "LightBox-module__arrow___iz38X";
|
|
1632
1632
|
const arrowVertical = "LightBox-module__arrowVertical___Zfz81";
|
|
1633
|
-
const nextArrow
|
|
1634
|
-
const arrowInner
|
|
1635
|
-
const arrowImg
|
|
1636
|
-
const mirror
|
|
1633
|
+
const nextArrow = "LightBox-module__nextArrow___zkAQN";
|
|
1634
|
+
const arrowInner = "LightBox-module__arrowInner___p48sW";
|
|
1635
|
+
const arrowImg = "LightBox-module__arrowImg___pNV88";
|
|
1636
|
+
const mirror = "LightBox-module__mirror___pjeXc";
|
|
1637
1637
|
const thumbsContainerVertical = "LightBox-module__thumbsContainerVertical___wttk5";
|
|
1638
1638
|
const thumbsContainer = "LightBox-module__thumbsContainer___osSma";
|
|
1639
1639
|
const thumbsAlignStart = "LightBox-module__thumbsAlignStart___MO6tY";
|
|
@@ -1652,7 +1652,7 @@ const slideOutRight = "LightBox-module__slideOutRight___SK7eC";
|
|
|
1652
1652
|
const slideOutTop = "LightBox-module__slideOutTop___Vgg0z";
|
|
1653
1653
|
const slideOutBottom = "LightBox-module__slideOutBottom___nJ0Ef";
|
|
1654
1654
|
const scaleSlide = "LightBox-module__scaleSlide___vZriG";
|
|
1655
|
-
const classes
|
|
1655
|
+
const classes = {
|
|
1656
1656
|
heroImage,
|
|
1657
1657
|
background,
|
|
1658
1658
|
editor,
|
|
@@ -1660,16 +1660,16 @@ const classes$1 = {
|
|
|
1660
1660
|
imageStyle,
|
|
1661
1661
|
imgWrapper,
|
|
1662
1662
|
contain,
|
|
1663
|
-
cover
|
|
1664
|
-
caption
|
|
1663
|
+
cover,
|
|
1664
|
+
caption,
|
|
1665
1665
|
captionTextInner,
|
|
1666
1666
|
lightboxSplide,
|
|
1667
|
-
arrow
|
|
1667
|
+
arrow,
|
|
1668
1668
|
arrowVertical,
|
|
1669
|
-
nextArrow
|
|
1670
|
-
arrowInner
|
|
1671
|
-
arrowImg
|
|
1672
|
-
mirror
|
|
1669
|
+
nextArrow,
|
|
1670
|
+
arrowInner,
|
|
1671
|
+
arrowImg,
|
|
1672
|
+
mirror,
|
|
1673
1673
|
thumbsContainerVertical,
|
|
1674
1674
|
thumbsContainer,
|
|
1675
1675
|
thumbsAlignStart,
|
|
@@ -1769,76 +1769,76 @@ function getColorAlpha(color) {
|
|
|
1769
1769
|
}
|
|
1770
1770
|
function getAnimationClasses(type, direction) {
|
|
1771
1771
|
const appearClass = (() => {
|
|
1772
|
-
if (type === "fade in") return classes
|
|
1772
|
+
if (type === "fade in") return classes.fadeIn;
|
|
1773
1773
|
if (type === "slide in" || type === "mix") {
|
|
1774
1774
|
switch (direction) {
|
|
1775
1775
|
case "left":
|
|
1776
|
-
return classes
|
|
1776
|
+
return classes.slideInLeft;
|
|
1777
1777
|
case "right":
|
|
1778
|
-
return classes
|
|
1778
|
+
return classes.slideInRight;
|
|
1779
1779
|
case "top":
|
|
1780
|
-
return classes
|
|
1780
|
+
return classes.slideInTop;
|
|
1781
1781
|
case "bottom":
|
|
1782
|
-
return classes
|
|
1782
|
+
return classes.slideInBottom;
|
|
1783
1783
|
default:
|
|
1784
|
-
return classes
|
|
1784
|
+
return classes.slideInRight;
|
|
1785
1785
|
}
|
|
1786
1786
|
}
|
|
1787
|
-
return classes
|
|
1787
|
+
return classes.fadeIn;
|
|
1788
1788
|
})();
|
|
1789
1789
|
const backdropAppearClass = (() => {
|
|
1790
|
-
if (type === "fade in" || type === "mix") return classes
|
|
1790
|
+
if (type === "fade in" || type === "mix") return classes.fadeIn;
|
|
1791
1791
|
if (type === "slide in") {
|
|
1792
1792
|
switch (direction) {
|
|
1793
1793
|
case "left":
|
|
1794
|
-
return classes
|
|
1794
|
+
return classes.slideInLeft;
|
|
1795
1795
|
case "right":
|
|
1796
|
-
return classes
|
|
1796
|
+
return classes.slideInRight;
|
|
1797
1797
|
case "top":
|
|
1798
|
-
return classes
|
|
1798
|
+
return classes.slideInTop;
|
|
1799
1799
|
case "bottom":
|
|
1800
|
-
return classes
|
|
1800
|
+
return classes.slideInBottom;
|
|
1801
1801
|
default:
|
|
1802
|
-
return classes
|
|
1802
|
+
return classes.slideInRight;
|
|
1803
1803
|
}
|
|
1804
1804
|
}
|
|
1805
|
-
return classes
|
|
1805
|
+
return classes.fadeIn;
|
|
1806
1806
|
})();
|
|
1807
1807
|
const backdropDisappearClass = (() => {
|
|
1808
|
-
if (type === "fade in" || type === "mix") return classes
|
|
1808
|
+
if (type === "fade in" || type === "mix") return classes.fadeOut;
|
|
1809
1809
|
if (type === "slide in") {
|
|
1810
1810
|
switch (direction) {
|
|
1811
1811
|
case "left":
|
|
1812
|
-
return classes
|
|
1812
|
+
return classes.slideOutLeft;
|
|
1813
1813
|
case "right":
|
|
1814
|
-
return classes
|
|
1814
|
+
return classes.slideOutRight;
|
|
1815
1815
|
case "top":
|
|
1816
|
-
return classes
|
|
1816
|
+
return classes.slideOutTop;
|
|
1817
1817
|
case "bottom":
|
|
1818
|
-
return classes
|
|
1818
|
+
return classes.slideOutBottom;
|
|
1819
1819
|
default:
|
|
1820
|
-
return classes
|
|
1820
|
+
return classes.slideOutRight;
|
|
1821
1821
|
}
|
|
1822
1822
|
}
|
|
1823
|
-
return classes
|
|
1823
|
+
return classes.fadeOut;
|
|
1824
1824
|
})();
|
|
1825
1825
|
const disappearClass = (() => {
|
|
1826
|
-
if (type === "fade in") return classes
|
|
1826
|
+
if (type === "fade in") return classes.fadeOut;
|
|
1827
1827
|
if (type === "slide in" || type === "mix") {
|
|
1828
1828
|
switch (direction) {
|
|
1829
1829
|
case "left":
|
|
1830
|
-
return classes
|
|
1830
|
+
return classes.slideOutLeft;
|
|
1831
1831
|
case "right":
|
|
1832
|
-
return classes
|
|
1832
|
+
return classes.slideOutRight;
|
|
1833
1833
|
case "top":
|
|
1834
|
-
return classes
|
|
1834
|
+
return classes.slideOutTop;
|
|
1835
1835
|
case "bottom":
|
|
1836
|
-
return classes
|
|
1836
|
+
return classes.slideOutBottom;
|
|
1837
1837
|
default:
|
|
1838
|
-
return classes
|
|
1838
|
+
return classes.slideOutRight;
|
|
1839
1839
|
}
|
|
1840
1840
|
}
|
|
1841
|
-
return classes
|
|
1841
|
+
return classes.fadeOut;
|
|
1842
1842
|
})();
|
|
1843
1843
|
return { appearClass, backdropAppearClass, backdropDisappearClass, disappearClass };
|
|
1844
1844
|
}
|
|
@@ -1859,7 +1859,7 @@ const LightboxGallery = ({ settings, content, styles: styles2, portalId, activeE
|
|
|
1859
1859
|
{
|
|
1860
1860
|
src: url,
|
|
1861
1861
|
alt: "Cover",
|
|
1862
|
-
className: classes
|
|
1862
|
+
className: classes.heroImage,
|
|
1863
1863
|
onClick: () => setOpen(true)
|
|
1864
1864
|
}
|
|
1865
1865
|
),
|
|
@@ -1890,8 +1890,8 @@ const Lightbox = ({ isOpen, onClose, content, lightboxStyles, settings, portalId
|
|
|
1890
1890
|
const animationTargetRef = React.useRef(null);
|
|
1891
1891
|
const animationEndHandlerRef = React.useRef(null);
|
|
1892
1892
|
const appearAnimationEndHandlerRef = React.useRef(null);
|
|
1893
|
-
const { appear, triggers, slider, thumbnail, controls, area,
|
|
1894
|
-
const { widthSettings, fontSettings, letterSpacing, textAlign, wordSpacing, fontSizeLineHeight, textAppearance, color } = lightboxStyles.
|
|
1893
|
+
const { appear, triggers, slider, thumbnail, controls, area, imageCaption, layout } = settings.lightboxBlock;
|
|
1894
|
+
const { widthSettings, fontSettings, letterSpacing, textAlign, wordSpacing, fontSizeLineHeight, textAppearance, color } = lightboxStyles.imageCaption;
|
|
1895
1895
|
const { appearClass, backdropAppearClass, backdropDisappearClass, disappearClass } = getAnimationClasses(appear.type, appear.direction);
|
|
1896
1896
|
React.useEffect(() => {
|
|
1897
1897
|
const handleLayoutChange = () => {
|
|
@@ -2081,7 +2081,7 @@ const Lightbox = ({ isOpen, onClose, content, lightboxStyles, settings, portalId
|
|
|
2081
2081
|
return;
|
|
2082
2082
|
}
|
|
2083
2083
|
const target = e.target;
|
|
2084
|
-
if (target && (target.closest(`.${classes
|
|
2084
|
+
if (target && (target.closest(`.${classes.thumbsContainer}`) || target.closest(`.${classes.thumbItem}`))) {
|
|
2085
2085
|
return;
|
|
2086
2086
|
}
|
|
2087
2087
|
if (e.touches.length === 0 && e.changedTouches.length > 0) {
|
|
@@ -2129,7 +2129,7 @@ const Lightbox = ({ isOpen, onClose, content, lightboxStyles, settings, portalId
|
|
|
2129
2129
|
"div",
|
|
2130
2130
|
{
|
|
2131
2131
|
ref: !isEditor ? animationTargetRef : null,
|
|
2132
|
-
className: cn(classes
|
|
2132
|
+
className: cn(classes.background, isClosing ? backdropDisappearClass : backdropAppearClass, { [classes.editor]: isEditor }),
|
|
2133
2133
|
style: {
|
|
2134
2134
|
...backdropStyles,
|
|
2135
2135
|
...animationFinished && !isEditor && !isClosing ? { position: "absolute" } : {}
|
|
@@ -2140,7 +2140,7 @@ const Lightbox = ({ isOpen, onClose, content, lightboxStyles, settings, portalId
|
|
|
2140
2140
|
"div",
|
|
2141
2141
|
{
|
|
2142
2142
|
ref: isEditor ? animationTargetRef : null,
|
|
2143
|
-
className: cn(classes
|
|
2143
|
+
className: cn(classes.contentStyle, !isClosing ? appearClass : disappearClass, { [classes.editor]: isEditor }),
|
|
2144
2144
|
style: {
|
|
2145
2145
|
animationDuration: `${parseInt(appear.duration)}ms`,
|
|
2146
2146
|
animationTimingFunction: "ease",
|
|
@@ -2152,7 +2152,7 @@ const Lightbox = ({ isOpen, onClose, content, lightboxStyles, settings, portalId
|
|
|
2152
2152
|
{
|
|
2153
2153
|
onMove: (splide) => setCurrentIndex(splide.index),
|
|
2154
2154
|
ref: lightboxRef,
|
|
2155
|
-
className: classes
|
|
2155
|
+
className: classes.lightboxSplide,
|
|
2156
2156
|
options: {
|
|
2157
2157
|
arrows: false,
|
|
2158
2158
|
speed: slider.duration ? parseInt(slider.duration) : 500,
|
|
@@ -2180,14 +2180,14 @@ const Lightbox = ({ isOpen, onClose, content, lightboxStyles, settings, portalId
|
|
|
2180
2180
|
"--position-transform": transform || "none"
|
|
2181
2181
|
};
|
|
2182
2182
|
})() : { ...positionStyles, position: "absolute", padding, boxSizing: "border-box" };
|
|
2183
|
-
return /* @__PURE__ */ jsxRuntime.jsx(reactSplide.SplideSlide, { children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: classes
|
|
2183
|
+
return /* @__PURE__ */ jsxRuntime.jsx(reactSplide.SplideSlide, { children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: classes.imgWrapper, onClick: handleImageWrapperClick, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2184
2184
|
"img",
|
|
2185
2185
|
{
|
|
2186
2186
|
ref: index === currentIndex ? imageRef : null,
|
|
2187
|
-
className: cn(classes
|
|
2188
|
-
[classes
|
|
2189
|
-
[classes
|
|
2190
|
-
[classes
|
|
2187
|
+
className: cn(classes.imageStyle, {
|
|
2188
|
+
[classes.contain]: item.image.objectFit === "contain",
|
|
2189
|
+
[classes.cover]: item.image.objectFit === "cover",
|
|
2190
|
+
[classes.scaleSlide]: slider.type === "scale"
|
|
2191
2191
|
}),
|
|
2192
2192
|
onClick: item.image.objectFit !== "contain" ? onImageClick : void 0,
|
|
2193
2193
|
src: item.image.url,
|
|
@@ -2203,12 +2203,12 @@ const Lightbox = ({ isOpen, onClose, content, lightboxStyles, settings, portalId
|
|
|
2203
2203
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2204
2204
|
"div",
|
|
2205
2205
|
{
|
|
2206
|
-
className: cn(classes
|
|
2206
|
+
className: cn(classes.arrow, { [classes.arrowVertical]: slider.direction === "vert" }),
|
|
2207
2207
|
style: { color: controls.color, ["--arrow-hover-color"]: controls.hover },
|
|
2208
2208
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2209
2209
|
"button",
|
|
2210
2210
|
{
|
|
2211
|
-
className: classes
|
|
2211
|
+
className: classes.arrowInner,
|
|
2212
2212
|
style: { transform: `translate(${scalingValue(controls.offset.x, isEditor)}, ${scalingValue(controls.offset.y * (slider.direction === "horiz" ? 1 : -1), isEditor)}) scale(${controls.scale}) rotate(${slider.direction === "horiz" ? "0deg" : "90deg"})` },
|
|
2213
2213
|
onClick: () => {
|
|
2214
2214
|
var _a;
|
|
@@ -2221,7 +2221,7 @@ const Lightbox = ({ isOpen, onClose, content, lightboxStyles, settings, portalId
|
|
|
2221
2221
|
url: controls.arrowsImgUrl,
|
|
2222
2222
|
fill: controls.color,
|
|
2223
2223
|
hoverFill: controls.hover,
|
|
2224
|
-
className: cn(classes
|
|
2224
|
+
className: cn(classes.arrowImg, classes.mirror)
|
|
2225
2225
|
}
|
|
2226
2226
|
)
|
|
2227
2227
|
}
|
|
@@ -2231,12 +2231,12 @@ const Lightbox = ({ isOpen, onClose, content, lightboxStyles, settings, portalId
|
|
|
2231
2231
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2232
2232
|
"div",
|
|
2233
2233
|
{
|
|
2234
|
-
className: cn(classes
|
|
2234
|
+
className: cn(classes.arrow, classes.nextArrow, { [classes.arrowVertical]: slider.direction === "vert" }),
|
|
2235
2235
|
style: { color: controls.color, ["--arrow-hover-color"]: controls.hover },
|
|
2236
2236
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2237
2237
|
"button",
|
|
2238
2238
|
{
|
|
2239
|
-
className: classes
|
|
2239
|
+
className: classes.arrowInner,
|
|
2240
2240
|
style: { transform: `translate(${scalingValue(controls.offset.x * (slider.direction === "horiz" ? -1 : 1), isEditor)}, ${scalingValue(controls.offset.y, isEditor)}) scale(${controls.scale}) rotate(${slider.direction === "horiz" ? "0deg" : "90deg"})` },
|
|
2241
2241
|
onClick: () => {
|
|
2242
2242
|
var _a;
|
|
@@ -2249,7 +2249,7 @@ const Lightbox = ({ isOpen, onClose, content, lightboxStyles, settings, portalId
|
|
|
2249
2249
|
url: controls.arrowsImgUrl,
|
|
2250
2250
|
fill: controls.color,
|
|
2251
2251
|
hoverFill: controls.hover,
|
|
2252
|
-
className: classes
|
|
2252
|
+
className: classes.arrowImg
|
|
2253
2253
|
}
|
|
2254
2254
|
)
|
|
2255
2255
|
}
|
|
@@ -2261,14 +2261,14 @@ const Lightbox = ({ isOpen, onClose, content, lightboxStyles, settings, portalId
|
|
|
2261
2261
|
const positionStyles = getPositionStyles(area.closeIconAlign, area.closeIconOffset, isEditor);
|
|
2262
2262
|
const scaleTransform = `scale(${area.closeIconScale})`;
|
|
2263
2263
|
const combinedTransform = positionStyles.transform ? `${positionStyles.transform} ${scaleTransform}` : scaleTransform;
|
|
2264
|
-
return /* @__PURE__ */ jsxRuntime.jsx("button", { className: classes
|
|
2264
|
+
return /* @__PURE__ */ jsxRuntime.jsx("button", { className: classes.closeButton, style: { ...positionStyles, transform: combinedTransform }, onClick: handleClose, "aria-label": "Close lightbox", children: /* @__PURE__ */ jsxRuntime.jsx(SvgImage, { url: area.closeIconUrl }) });
|
|
2265
2265
|
})(),
|
|
2266
|
-
|
|
2266
|
+
imageCaption.isActive && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2267
2267
|
"div",
|
|
2268
2268
|
{
|
|
2269
|
-
className: classes
|
|
2269
|
+
className: classes.caption,
|
|
2270
2270
|
style: {
|
|
2271
|
-
...getPositionStyles(
|
|
2271
|
+
...getPositionStyles(imageCaption.alignment, imageCaption.offset, isEditor),
|
|
2272
2272
|
fontFamily: fontSettings.fontFamily,
|
|
2273
2273
|
fontWeight: fontSettings.fontWeight,
|
|
2274
2274
|
fontStyle: fontSettings.fontStyle,
|
|
@@ -2287,9 +2287,9 @@ const Lightbox = ({ isOpen, onClose, content, lightboxStyles, settings, portalId
|
|
|
2287
2287
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2288
2288
|
"div",
|
|
2289
2289
|
{
|
|
2290
|
-
"data-styles": "
|
|
2291
|
-
className: classes
|
|
2292
|
-
style: { ["--link-hover-color"]:
|
|
2290
|
+
"data-styles": "imageCaption",
|
|
2291
|
+
className: classes.captionTextInner,
|
|
2292
|
+
style: { ["--link-hover-color"]: imageCaption.hover },
|
|
2293
2293
|
children: /* @__PURE__ */ jsxRuntime.jsx(RichTextRenderer, { content: content[currentIndex].imageCaption })
|
|
2294
2294
|
}
|
|
2295
2295
|
)
|
|
@@ -2298,11 +2298,11 @@ const Lightbox = ({ isOpen, onClose, content, lightboxStyles, settings, portalId
|
|
|
2298
2298
|
thumbnail.isActive && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2299
2299
|
"div",
|
|
2300
2300
|
{
|
|
2301
|
-
className: cn(classes
|
|
2302
|
-
[classes
|
|
2303
|
-
[classes
|
|
2304
|
-
[classes
|
|
2305
|
-
[classes
|
|
2301
|
+
className: cn(classes.thumbsContainer, {
|
|
2302
|
+
[classes.thumbsContainerVertical]: slider.direction === "vert",
|
|
2303
|
+
[classes.thumbsAlignStart]: thumbnail.align === "start",
|
|
2304
|
+
[classes.thumbsAlignCenter]: thumbnail.align === "center",
|
|
2305
|
+
[classes.thumbsAlignEnd]: thumbnail.align === "end"
|
|
2306
2306
|
}),
|
|
2307
2307
|
style: {
|
|
2308
2308
|
position: isEditor ? "absolute" : "fixed",
|
|
@@ -2336,7 +2336,7 @@ const Lightbox = ({ isOpen, onClose, content, lightboxStyles, settings, portalId
|
|
|
2336
2336
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2337
2337
|
"button",
|
|
2338
2338
|
{
|
|
2339
|
-
className: classes
|
|
2339
|
+
className: classes.thumbItem,
|
|
2340
2340
|
style: {
|
|
2341
2341
|
...slider.direction === "horiz" && thumbnail.fit !== "fit" ? { height: scalingValue(activeSizeValue, isEditor) } : {},
|
|
2342
2342
|
...slider.direction === "vert" && thumbnail.fit !== "fit" ? { width: scalingValue(activeSizeValue, isEditor) } : {},
|
|
@@ -2892,7 +2892,7 @@ const LightboxComponent = {
|
|
|
2892
2892
|
}
|
|
2893
2893
|
}
|
|
2894
2894
|
},
|
|
2895
|
-
|
|
2895
|
+
imageCaption: {
|
|
2896
2896
|
title: "DESC",
|
|
2897
2897
|
icon: "text-icon",
|
|
2898
2898
|
tooltip: "Description",
|
|
@@ -3012,7 +3012,7 @@ const LightboxComponent = {
|
|
|
3012
3012
|
closeIconOffset: { x: 0, y: 0 },
|
|
3013
3013
|
closeIconScale: 1
|
|
3014
3014
|
},
|
|
3015
|
-
|
|
3015
|
+
imageCaption: {
|
|
3016
3016
|
isActive: true,
|
|
3017
3017
|
alignment: "middle-center",
|
|
3018
3018
|
offset: { x: 0, y: 0 },
|
|
@@ -3080,7 +3080,7 @@ const LightboxComponent = {
|
|
|
3080
3080
|
closeIconOffset: { x: 0, y: 0 },
|
|
3081
3081
|
closeIconScale: 1
|
|
3082
3082
|
},
|
|
3083
|
-
|
|
3083
|
+
imageCaption: {
|
|
3084
3084
|
isActive: true,
|
|
3085
3085
|
alignment: "middle-center",
|
|
3086
3086
|
offset: { x: 0, y: 0 },
|
|
@@ -3148,7 +3148,7 @@ const LightboxComponent = {
|
|
|
3148
3148
|
closeIconOffset: { x: 0, y: 0 },
|
|
3149
3149
|
closeIconScale: 1
|
|
3150
3150
|
},
|
|
3151
|
-
|
|
3151
|
+
imageCaption: {
|
|
3152
3152
|
isActive: true,
|
|
3153
3153
|
alignment: "middle-center",
|
|
3154
3154
|
offset: { x: 0, y: 0 },
|
|
@@ -3300,7 +3300,7 @@ const LightboxComponent = {
|
|
|
3300
3300
|
layoutBased: true,
|
|
3301
3301
|
type: "object",
|
|
3302
3302
|
properties: {
|
|
3303
|
-
|
|
3303
|
+
imageCaption: {
|
|
3304
3304
|
dataName: "caption",
|
|
3305
3305
|
type: "object",
|
|
3306
3306
|
properties: {
|
|
@@ -3398,942 +3398,7 @@ const LightboxComponent = {
|
|
|
3398
3398
|
}
|
|
3399
3399
|
},
|
|
3400
3400
|
default: {
|
|
3401
|
-
|
|
3402
|
-
widthSettings: {
|
|
3403
|
-
width: 0.13,
|
|
3404
|
-
sizing: "auto"
|
|
3405
|
-
},
|
|
3406
|
-
fontSettings: {
|
|
3407
|
-
fontFamily: "Arial",
|
|
3408
|
-
fontWeight: 400,
|
|
3409
|
-
fontStyle: "normal"
|
|
3410
|
-
},
|
|
3411
|
-
fontSizeLineHeight: {
|
|
3412
|
-
fontSize: 0.02,
|
|
3413
|
-
lineHeight: 0.02
|
|
3414
|
-
},
|
|
3415
|
-
letterSpacing: 0,
|
|
3416
|
-
wordSpacing: 0,
|
|
3417
|
-
textAlign: "left",
|
|
3418
|
-
textAppearance: {
|
|
3419
|
-
textTransform: "none",
|
|
3420
|
-
textDecoration: "none",
|
|
3421
|
-
fontVariant: "normal"
|
|
3422
|
-
},
|
|
3423
|
-
color: "#000000"
|
|
3424
|
-
}
|
|
3425
|
-
}
|
|
3426
|
-
}
|
|
3427
|
-
},
|
|
3428
|
-
required: ["settings", "content", "styles"]
|
|
3429
|
-
}
|
|
3430
|
-
};
|
|
3431
|
-
const wrapper = "Testimonials-module__wrapper___eCRwv";
|
|
3432
|
-
const cover = "Testimonials-module__cover___5I7Fh";
|
|
3433
|
-
const caption = "Testimonials-module__caption___-YQRG";
|
|
3434
|
-
const creds = "Testimonials-module__creds___KKvX1";
|
|
3435
|
-
const icon = "Testimonials-module__icon___SstqT";
|
|
3436
|
-
const arrow = "Testimonials-module__arrow___NO6BN";
|
|
3437
|
-
const nextArrow = "Testimonials-module__nextArrow___L3G-W";
|
|
3438
|
-
const arrowInner = "Testimonials-module__arrowInner___GSjnA";
|
|
3439
|
-
const arrowIcon = "Testimonials-module__arrowIcon___fw7vy";
|
|
3440
|
-
const arrowImg = "Testimonials-module__arrowImg___7R9fl";
|
|
3441
|
-
const mirror = "Testimonials-module__mirror___JkFna";
|
|
3442
|
-
const classes = {
|
|
3443
|
-
wrapper,
|
|
3444
|
-
cover,
|
|
3445
|
-
caption,
|
|
3446
|
-
creds,
|
|
3447
|
-
icon,
|
|
3448
|
-
arrow,
|
|
3449
|
-
nextArrow,
|
|
3450
|
-
arrowInner,
|
|
3451
|
-
arrowIcon,
|
|
3452
|
-
arrowImg,
|
|
3453
|
-
mirror
|
|
3454
|
-
};
|
|
3455
|
-
function getAlignPosition(alignment, offset, isEditor) {
|
|
3456
|
-
const styles2 = {};
|
|
3457
|
-
const [vertical, horizontal] = alignment.split("-");
|
|
3458
|
-
if (vertical === "top") {
|
|
3459
|
-
styles2.top = "0";
|
|
3460
|
-
styles2.bottom = "auto";
|
|
3461
|
-
} else if (vertical === "middle") {
|
|
3462
|
-
styles2.top = "50%";
|
|
3463
|
-
styles2.bottom = "auto";
|
|
3464
|
-
} else if (vertical === "bottom") {
|
|
3465
|
-
styles2.top = "auto";
|
|
3466
|
-
styles2.bottom = "0";
|
|
3467
|
-
}
|
|
3468
|
-
if (horizontal === "left") {
|
|
3469
|
-
styles2.left = "0";
|
|
3470
|
-
styles2.right = "auto";
|
|
3471
|
-
} else if (horizontal === "center") {
|
|
3472
|
-
styles2.left = "50%";
|
|
3473
|
-
styles2.right = "auto";
|
|
3474
|
-
} else if (horizontal === "right") {
|
|
3475
|
-
styles2.left = "auto";
|
|
3476
|
-
styles2.right = "0";
|
|
3477
|
-
}
|
|
3478
|
-
if (vertical === "middle" && horizontal === "center") {
|
|
3479
|
-
styles2.transform = `translate(calc(-50% + ${scalingValue(offset.x, isEditor)}), calc(-50% + ${scalingValue(offset.y, isEditor)}))`;
|
|
3480
|
-
} else if (vertical === "middle") {
|
|
3481
|
-
styles2.transform = `translate(${scalingValue(offset.x, isEditor)}, calc(-50% + ${scalingValue(offset.y, isEditor)}))`;
|
|
3482
|
-
} else if (horizontal === "center") {
|
|
3483
|
-
styles2.transform = `translate(calc(-50% + ${scalingValue(offset.x, isEditor)}), ${scalingValue(offset.y, isEditor)})`;
|
|
3484
|
-
} else {
|
|
3485
|
-
styles2.transform = `translate(${scalingValue(offset.x, isEditor)}, ${scalingValue(offset.y, isEditor)})`;
|
|
3486
|
-
}
|
|
3487
|
-
return styles2;
|
|
3488
|
-
}
|
|
3489
|
-
const Testimonials = ({ settings, content, styles: styles2 }) => {
|
|
3490
|
-
const sliderRef = React.useRef(null);
|
|
3491
|
-
const { general, card, controls } = settings;
|
|
3492
|
-
const { width, height } = card.dimensions;
|
|
3493
|
-
const perMove = settings.general.move === "one" ? 1 : settings.general.inView || 1;
|
|
3494
|
-
const perPage = settings.general.inView || 3;
|
|
3495
|
-
const wrapperWidth = !settings.general.autoplay ? width * perPage + settings.card.gap * (perPage - 1) + card.borderWidth * 2 : void 0;
|
|
3496
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
3497
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { style: { overflow: "hidden", display: "flex", justifyContent: settings.general.alignment }, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3498
|
-
"div",
|
|
3499
|
-
{
|
|
3500
|
-
className: `${classes.wrapper}`,
|
|
3501
|
-
style: wrapperWidth ? { width: `${scalingValue(wrapperWidth, false)}` } : void 0,
|
|
3502
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3503
|
-
reactSplide.Splide,
|
|
3504
|
-
{
|
|
3505
|
-
ref: sliderRef,
|
|
3506
|
-
options: {
|
|
3507
|
-
type: "loop",
|
|
3508
|
-
fixedWidth: width,
|
|
3509
|
-
...!settings.general.autoplay && {
|
|
3510
|
-
perPage,
|
|
3511
|
-
width: wrapperWidth
|
|
3512
|
-
},
|
|
3513
|
-
arrows: false,
|
|
3514
|
-
perMove,
|
|
3515
|
-
gap: settings.card.gap,
|
|
3516
|
-
padding: 0,
|
|
3517
|
-
autoplay: settings.general.autoplay,
|
|
3518
|
-
speed: settings.general.speed,
|
|
3519
|
-
interval: settings.general.autoplay ? settings.general.speed : 0,
|
|
3520
|
-
rewind: true,
|
|
3521
|
-
easing: "linear",
|
|
3522
|
-
direction: settings.general.direction === "left" ? "ltr" : "rtl",
|
|
3523
|
-
pagination: false,
|
|
3524
|
-
pauseOnHover: settings.general.pause === "hover",
|
|
3525
|
-
pauseOnFocus: settings.general.pause === "click"
|
|
3526
|
-
},
|
|
3527
|
-
children: content.map((item, index) => {
|
|
3528
|
-
var _a, _b, _c, _d, _e;
|
|
3529
|
-
return /* @__PURE__ */ jsxRuntime.jsx(reactSplide.SplideSlide, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { width: `${width}px`, height: `${height}px`, borderRadius: `${settings.card.corner}px`, border: `${settings.card.borderWidth}px solid ${settings.card.borderColor}`, backgroundColor: settings.card.bgColor, overflow: "hidden", boxSizing: "border-box" }, children: [
|
|
3530
|
-
/* @__PURE__ */ jsxRuntime.jsx("img", { src: (_a = item.image) == null ? void 0 : _a.url, alt: (_b = item.image) == null ? void 0 : _b.name, style: { width: "100%", height: "100%", objectFit: ((_c = item.image) == null ? void 0 : _c.objectFit) || "cover" } }),
|
|
3531
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: classes.cover, style: { background: settings.elements.cover.gradient, borderRadius: `${settings.card.corner}px` } }),
|
|
3532
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
3533
|
-
/* @__PURE__ */ jsxRuntime.jsx("img", { src: (_d = item.icon) == null ? void 0 : _d.url, alt: (_e = item.icon) == null ? void 0 : _e.name, className: classes.icon, style: getAlignPosition(settings.elements.icon.alignment, settings.elements.icon.offset) }),
|
|
3534
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: classes.caption, style: getAlignPosition(settings.elements.text.alignment, settings.elements.text.offset), children: /* @__PURE__ */ jsxRuntime.jsx(RichTextRenderer, { content: item.imageCaption }) }),
|
|
3535
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: classes.creds, style: getAlignPosition(settings.elements.creds.alignment, settings.elements.creds.offset), children: /* @__PURE__ */ jsxRuntime.jsx(RichTextRenderer, { content: item.creds }) })
|
|
3536
|
-
] })
|
|
3537
|
-
] }) }, index);
|
|
3538
|
-
})
|
|
3539
|
-
}
|
|
3540
|
-
)
|
|
3541
|
-
}
|
|
3542
|
-
) }),
|
|
3543
|
-
controls.isActive && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
3544
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3545
|
-
"div",
|
|
3546
|
-
{
|
|
3547
|
-
className: classes.arrow,
|
|
3548
|
-
style: { color: controls.color, ["--arrow-hover-color"]: controls.hover },
|
|
3549
|
-
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3550
|
-
"button",
|
|
3551
|
-
{
|
|
3552
|
-
className: classes.arrowInner,
|
|
3553
|
-
style: { transform: `translate(${scalingValue(controls.offset.x, false)}, ${scalingValue(controls.offset.y, false)}) scale(${controls.scale / 100})` },
|
|
3554
|
-
onClick: () => {
|
|
3555
|
-
var _a;
|
|
3556
|
-
return (_a = sliderRef.current) == null ? void 0 : _a.go("-1");
|
|
3557
|
-
},
|
|
3558
|
-
"aria-label": "Previous",
|
|
3559
|
-
children: [
|
|
3560
|
-
controls.arrowsImgUrl && /* @__PURE__ */ jsxRuntime.jsx(
|
|
3561
|
-
SvgImage,
|
|
3562
|
-
{
|
|
3563
|
-
url: controls.arrowsImgUrl,
|
|
3564
|
-
fill: controls.color,
|
|
3565
|
-
hoverFill: controls.hover,
|
|
3566
|
-
className: cn(classes.arrowImg, classes.mirror)
|
|
3567
|
-
}
|
|
3568
|
-
),
|
|
3569
|
-
!controls.arrowsImgUrl && /* @__PURE__ */ jsxRuntime.jsx(ArrowIcon, { color: controls.color, className: cn(classes.arrowIcon, classes.arrowImg, classes.mirror) })
|
|
3570
|
-
]
|
|
3571
|
-
}
|
|
3572
|
-
)
|
|
3573
|
-
}
|
|
3574
|
-
),
|
|
3575
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3576
|
-
"div",
|
|
3577
|
-
{
|
|
3578
|
-
className: cn(classes.arrow, classes.nextArrow),
|
|
3579
|
-
style: { color: controls.color, ["--arrow-hover-color"]: controls.hover },
|
|
3580
|
-
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3581
|
-
"button",
|
|
3582
|
-
{
|
|
3583
|
-
className: classes.arrowInner,
|
|
3584
|
-
style: { transform: `translate(${scalingValue(controls.offset.x * -1, false)}, ${scalingValue(controls.offset.y, false)}) scale(${controls.scale / 100})` },
|
|
3585
|
-
onClick: () => {
|
|
3586
|
-
var _a;
|
|
3587
|
-
return (_a = sliderRef.current) == null ? void 0 : _a.go("+1");
|
|
3588
|
-
},
|
|
3589
|
-
"aria-label": "Next",
|
|
3590
|
-
children: [
|
|
3591
|
-
controls.arrowsImgUrl && /* @__PURE__ */ jsxRuntime.jsx(
|
|
3592
|
-
SvgImage,
|
|
3593
|
-
{
|
|
3594
|
-
url: controls.arrowsImgUrl,
|
|
3595
|
-
fill: controls.color,
|
|
3596
|
-
hoverFill: controls.hover,
|
|
3597
|
-
className: classes.arrowImg
|
|
3598
|
-
}
|
|
3599
|
-
),
|
|
3600
|
-
!controls.arrowsImgUrl && /* @__PURE__ */ jsxRuntime.jsx(ArrowIcon, { color: controls.color, className: cn(classes.arrowIcon, classes.arrowImg) })
|
|
3601
|
-
]
|
|
3602
|
-
}
|
|
3603
|
-
)
|
|
3604
|
-
}
|
|
3605
|
-
)
|
|
3606
|
-
] })
|
|
3607
|
-
] });
|
|
3608
|
-
};
|
|
3609
|
-
function ArrowIcon({ color, className }) {
|
|
3610
|
-
return /* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: "0 0 10 18", className, children: /* @__PURE__ */ jsxRuntime.jsx("g", { id: "Symbols", stroke: "none", strokeWidth: "1", fillRule: "evenodd", children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M-3.70710678,4.29289322 C-3.34662282,3.93240926 -2.77939176,3.90467972 -2.38710056,4.20970461 L-2.29289322,4.29289322 L5,11.585 L12.2928932,4.29289322 C12.6533772,3.93240926 13.2206082,3.90467972 13.6128994,4.20970461 L13.7071068,4.29289322 C14.0675907,4.65337718 14.0953203,5.22060824 13.7902954,5.61289944 L13.7071068,5.70710678 L5.70710678,13.7071068 C5.34662282,14.0675907 4.77939176,14.0953203 4.38710056,13.7902954 L4.29289322,13.7071068 L-3.70710678,5.70710678 C-4.09763107,5.31658249 -4.09763107,4.68341751 -3.70710678,4.29289322 Z", id: "Shape-Copy", fill: color, transform: "translate(5, 9) rotate(-90) translate(-5, -9)" }) }) });
|
|
3611
|
-
}
|
|
3612
|
-
const TestimonialsComponent = {
|
|
3613
|
-
element: Testimonials,
|
|
3614
|
-
id: "testimonials",
|
|
3615
|
-
name: "Testimonials",
|
|
3616
|
-
preview: {
|
|
3617
|
-
type: "video",
|
|
3618
|
-
url: "https://cdn.cntrl.site/component-assets/testimonials.mp4"
|
|
3619
|
-
},
|
|
3620
|
-
defaultSize: {
|
|
3621
|
-
width: 700,
|
|
3622
|
-
height: 400
|
|
3623
|
-
},
|
|
3624
|
-
schema: {
|
|
3625
|
-
type: "object",
|
|
3626
|
-
properties: {
|
|
3627
|
-
settings: {
|
|
3628
|
-
layoutBased: true,
|
|
3629
|
-
type: "object",
|
|
3630
|
-
display: {
|
|
3631
|
-
type: "settings-block"
|
|
3632
|
-
},
|
|
3633
|
-
properties: {
|
|
3634
|
-
general: {
|
|
3635
|
-
title: "general",
|
|
3636
|
-
icon: "thumbnail",
|
|
3637
|
-
tooltip: "General",
|
|
3638
|
-
type: "object",
|
|
3639
|
-
properties: {
|
|
3640
|
-
autoplay: {
|
|
3641
|
-
type: "boolean",
|
|
3642
|
-
display: {
|
|
3643
|
-
type: "ratio-group",
|
|
3644
|
-
direction: "horizontal"
|
|
3645
|
-
},
|
|
3646
|
-
enum: ["on", "off"]
|
|
3647
|
-
},
|
|
3648
|
-
inView: {
|
|
3649
|
-
type: "number",
|
|
3650
|
-
title: "In View",
|
|
3651
|
-
min: 1,
|
|
3652
|
-
display: {
|
|
3653
|
-
type: "numeric-input"
|
|
3654
|
-
}
|
|
3655
|
-
},
|
|
3656
|
-
alignment: {
|
|
3657
|
-
type: "string",
|
|
3658
|
-
title: "Align",
|
|
3659
|
-
display: {
|
|
3660
|
-
type: "align-group",
|
|
3661
|
-
direction: "horizontal"
|
|
3662
|
-
},
|
|
3663
|
-
enum: ["start", "center", "end"]
|
|
3664
|
-
},
|
|
3665
|
-
move: {
|
|
3666
|
-
type: "string",
|
|
3667
|
-
display: {
|
|
3668
|
-
type: "ratio-group",
|
|
3669
|
-
direction: "horizontal"
|
|
3670
|
-
},
|
|
3671
|
-
enum: ["one", "view"]
|
|
3672
|
-
},
|
|
3673
|
-
speed: {
|
|
3674
|
-
type: "number",
|
|
3675
|
-
title: "Speed",
|
|
3676
|
-
min: 100,
|
|
3677
|
-
max: 1e4,
|
|
3678
|
-
step: 100,
|
|
3679
|
-
display: {
|
|
3680
|
-
type: "numeric-input"
|
|
3681
|
-
}
|
|
3682
|
-
},
|
|
3683
|
-
direction: {
|
|
3684
|
-
type: "string",
|
|
3685
|
-
display: {
|
|
3686
|
-
type: "ratio-group"
|
|
3687
|
-
},
|
|
3688
|
-
enum: ["left", "right"]
|
|
3689
|
-
},
|
|
3690
|
-
pause: {
|
|
3691
|
-
title: "Pause on",
|
|
3692
|
-
type: "string",
|
|
3693
|
-
display: {
|
|
3694
|
-
type: "ratio-group"
|
|
3695
|
-
},
|
|
3696
|
-
enum: ["hover", "click", "off"]
|
|
3697
|
-
}
|
|
3698
|
-
}
|
|
3699
|
-
},
|
|
3700
|
-
card: {
|
|
3701
|
-
title: "card",
|
|
3702
|
-
icon: "card",
|
|
3703
|
-
tooltip: "Card",
|
|
3704
|
-
type: "object",
|
|
3705
|
-
properties: {
|
|
3706
|
-
dimensions: {
|
|
3707
|
-
type: "object",
|
|
3708
|
-
title: "Size",
|
|
3709
|
-
display: {
|
|
3710
|
-
type: "group"
|
|
3711
|
-
},
|
|
3712
|
-
properties: {
|
|
3713
|
-
width: {
|
|
3714
|
-
type: "number",
|
|
3715
|
-
label: "W",
|
|
3716
|
-
scalingEnabled: true,
|
|
3717
|
-
display: {
|
|
3718
|
-
type: "numeric-input",
|
|
3719
|
-
visible: true
|
|
3720
|
-
}
|
|
3721
|
-
},
|
|
3722
|
-
height: {
|
|
3723
|
-
type: "number",
|
|
3724
|
-
label: "H",
|
|
3725
|
-
scalingEnabled: true,
|
|
3726
|
-
display: {
|
|
3727
|
-
type: "numeric-input",
|
|
3728
|
-
visible: true
|
|
3729
|
-
}
|
|
3730
|
-
}
|
|
3731
|
-
}
|
|
3732
|
-
},
|
|
3733
|
-
gap: {
|
|
3734
|
-
type: "number",
|
|
3735
|
-
title: "Gap",
|
|
3736
|
-
scalingEnabled: true,
|
|
3737
|
-
min: 0,
|
|
3738
|
-
display: {
|
|
3739
|
-
type: "numeric-input"
|
|
3740
|
-
}
|
|
3741
|
-
},
|
|
3742
|
-
corner: {
|
|
3743
|
-
type: "number",
|
|
3744
|
-
title: "Corners",
|
|
3745
|
-
scalingEnabled: true,
|
|
3746
|
-
min: 0,
|
|
3747
|
-
display: {
|
|
3748
|
-
type: "numeric-input"
|
|
3749
|
-
}
|
|
3750
|
-
},
|
|
3751
|
-
borders: {
|
|
3752
|
-
type: "object",
|
|
3753
|
-
title: "Borders",
|
|
3754
|
-
display: {
|
|
3755
|
-
type: "group"
|
|
3756
|
-
},
|
|
3757
|
-
properties: {
|
|
3758
|
-
borderWidth: {
|
|
3759
|
-
type: "number",
|
|
3760
|
-
title: "Borders",
|
|
3761
|
-
scalingEnabled: true,
|
|
3762
|
-
min: 0,
|
|
3763
|
-
display: {
|
|
3764
|
-
type: "numeric-input"
|
|
3765
|
-
}
|
|
3766
|
-
},
|
|
3767
|
-
borderColor: {
|
|
3768
|
-
title: "Border Color",
|
|
3769
|
-
type: "string",
|
|
3770
|
-
display: {
|
|
3771
|
-
type: "settings-color-picker",
|
|
3772
|
-
format: "single"
|
|
3773
|
-
}
|
|
3774
|
-
}
|
|
3775
|
-
}
|
|
3776
|
-
},
|
|
3777
|
-
bgColor: {
|
|
3778
|
-
title: "BG color",
|
|
3779
|
-
type: "string",
|
|
3780
|
-
display: {
|
|
3781
|
-
type: "settings-color-picker",
|
|
3782
|
-
format: "single"
|
|
3783
|
-
}
|
|
3784
|
-
}
|
|
3785
|
-
}
|
|
3786
|
-
},
|
|
3787
|
-
elements: {
|
|
3788
|
-
title: "elements",
|
|
3789
|
-
icon: "star",
|
|
3790
|
-
tooltip: "Elements",
|
|
3791
|
-
type: "object",
|
|
3792
|
-
properties: {
|
|
3793
|
-
text: {
|
|
3794
|
-
type: "object",
|
|
3795
|
-
title: "Text",
|
|
3796
|
-
display: {
|
|
3797
|
-
type: "group"
|
|
3798
|
-
},
|
|
3799
|
-
properties: {
|
|
3800
|
-
alignment: {
|
|
3801
|
-
type: "string",
|
|
3802
|
-
display: {
|
|
3803
|
-
type: "position-selector"
|
|
3804
|
-
},
|
|
3805
|
-
enum: ["top-left", "top-center", "top-right", "middle-left", "middle-center", "middle-right", "bottom-left", "bottom-center", "bottom-right"]
|
|
3806
|
-
},
|
|
3807
|
-
offset: {
|
|
3808
|
-
type: "object",
|
|
3809
|
-
title: "Offset",
|
|
3810
|
-
display: {
|
|
3811
|
-
type: "group"
|
|
3812
|
-
},
|
|
3813
|
-
properties: {
|
|
3814
|
-
x: {
|
|
3815
|
-
type: "number",
|
|
3816
|
-
label: "X",
|
|
3817
|
-
scalingEnabled: true,
|
|
3818
|
-
display: {
|
|
3819
|
-
type: "numeric-input",
|
|
3820
|
-
visible: true
|
|
3821
|
-
}
|
|
3822
|
-
},
|
|
3823
|
-
y: {
|
|
3824
|
-
type: "number",
|
|
3825
|
-
label: "Y",
|
|
3826
|
-
scalingEnabled: true,
|
|
3827
|
-
display: {
|
|
3828
|
-
type: "numeric-input",
|
|
3829
|
-
visible: true
|
|
3830
|
-
}
|
|
3831
|
-
}
|
|
3832
|
-
}
|
|
3833
|
-
}
|
|
3834
|
-
}
|
|
3835
|
-
},
|
|
3836
|
-
icon: {
|
|
3837
|
-
type: "object",
|
|
3838
|
-
title: "Icon",
|
|
3839
|
-
display: {
|
|
3840
|
-
type: "group"
|
|
3841
|
-
},
|
|
3842
|
-
properties: {
|
|
3843
|
-
alignment: {
|
|
3844
|
-
type: "string",
|
|
3845
|
-
display: {
|
|
3846
|
-
type: "position-selector"
|
|
3847
|
-
},
|
|
3848
|
-
enum: ["top-left", "top-center", "top-right", "middle-left", "middle-center", "middle-right", "bottom-left", "bottom-center", "bottom-right"]
|
|
3849
|
-
},
|
|
3850
|
-
offset: {
|
|
3851
|
-
type: "object",
|
|
3852
|
-
title: "Offset",
|
|
3853
|
-
display: {
|
|
3854
|
-
type: "group"
|
|
3855
|
-
},
|
|
3856
|
-
properties: {
|
|
3857
|
-
x: {
|
|
3858
|
-
type: "number",
|
|
3859
|
-
label: "X",
|
|
3860
|
-
scalingEnabled: true,
|
|
3861
|
-
display: {
|
|
3862
|
-
type: "numeric-input",
|
|
3863
|
-
visible: true
|
|
3864
|
-
}
|
|
3865
|
-
},
|
|
3866
|
-
y: {
|
|
3867
|
-
type: "number",
|
|
3868
|
-
label: "Y",
|
|
3869
|
-
scalingEnabled: true,
|
|
3870
|
-
display: {
|
|
3871
|
-
type: "numeric-input",
|
|
3872
|
-
visible: true
|
|
3873
|
-
}
|
|
3874
|
-
}
|
|
3875
|
-
}
|
|
3876
|
-
},
|
|
3877
|
-
scale: {
|
|
3878
|
-
type: "number",
|
|
3879
|
-
title: "scale",
|
|
3880
|
-
min: 50,
|
|
3881
|
-
max: 600,
|
|
3882
|
-
display: {
|
|
3883
|
-
type: "range-control"
|
|
3884
|
-
}
|
|
3885
|
-
}
|
|
3886
|
-
}
|
|
3887
|
-
},
|
|
3888
|
-
creds: {
|
|
3889
|
-
type: "object",
|
|
3890
|
-
title: "Credentials",
|
|
3891
|
-
display: {
|
|
3892
|
-
type: "group"
|
|
3893
|
-
},
|
|
3894
|
-
properties: {
|
|
3895
|
-
alignment: {
|
|
3896
|
-
type: "string",
|
|
3897
|
-
display: {
|
|
3898
|
-
type: "position-selector"
|
|
3899
|
-
},
|
|
3900
|
-
enum: ["top-left", "top-center", "top-right", "middle-left", "middle-center", "middle-right", "bottom-left", "bottom-center", "bottom-right"]
|
|
3901
|
-
},
|
|
3902
|
-
offset: {
|
|
3903
|
-
type: "object",
|
|
3904
|
-
title: "Offset",
|
|
3905
|
-
display: {
|
|
3906
|
-
type: "group"
|
|
3907
|
-
},
|
|
3908
|
-
properties: {
|
|
3909
|
-
x: {
|
|
3910
|
-
type: "number",
|
|
3911
|
-
label: "X",
|
|
3912
|
-
scalingEnabled: true,
|
|
3913
|
-
display: {
|
|
3914
|
-
type: "numeric-input",
|
|
3915
|
-
visible: true
|
|
3916
|
-
}
|
|
3917
|
-
},
|
|
3918
|
-
y: {
|
|
3919
|
-
type: "number",
|
|
3920
|
-
label: "Y",
|
|
3921
|
-
scalingEnabled: true,
|
|
3922
|
-
display: {
|
|
3923
|
-
type: "numeric-input",
|
|
3924
|
-
visible: true
|
|
3925
|
-
}
|
|
3926
|
-
}
|
|
3927
|
-
}
|
|
3928
|
-
}
|
|
3929
|
-
}
|
|
3930
|
-
},
|
|
3931
|
-
cover: {
|
|
3932
|
-
type: "object",
|
|
3933
|
-
title: "Cover",
|
|
3934
|
-
display: {
|
|
3935
|
-
type: "group"
|
|
3936
|
-
},
|
|
3937
|
-
properties: {
|
|
3938
|
-
gradient: {
|
|
3939
|
-
title: "Gradient",
|
|
3940
|
-
type: "string",
|
|
3941
|
-
display: {
|
|
3942
|
-
type: "settings-color-picker",
|
|
3943
|
-
format: "gradient"
|
|
3944
|
-
}
|
|
3945
|
-
}
|
|
3946
|
-
}
|
|
3947
|
-
}
|
|
3948
|
-
}
|
|
3949
|
-
},
|
|
3950
|
-
controls: {
|
|
3951
|
-
title: "controls",
|
|
3952
|
-
icon: "controls",
|
|
3953
|
-
tooltip: "Controls",
|
|
3954
|
-
type: "object",
|
|
3955
|
-
properties: {
|
|
3956
|
-
isActive: {
|
|
3957
|
-
type: "boolean",
|
|
3958
|
-
display: {
|
|
3959
|
-
type: "setting-toggle"
|
|
3960
|
-
}
|
|
3961
|
-
},
|
|
3962
|
-
arrowsImgUrl: {
|
|
3963
|
-
type: ["string", "null"],
|
|
3964
|
-
display: {
|
|
3965
|
-
type: "settings-image-input"
|
|
3966
|
-
}
|
|
3967
|
-
},
|
|
3968
|
-
offset: {
|
|
3969
|
-
type: "object",
|
|
3970
|
-
title: "Offset",
|
|
3971
|
-
display: {
|
|
3972
|
-
type: "group"
|
|
3973
|
-
},
|
|
3974
|
-
properties: {
|
|
3975
|
-
x: {
|
|
3976
|
-
type: "number",
|
|
3977
|
-
label: "X",
|
|
3978
|
-
scalingEnabled: true,
|
|
3979
|
-
display: {
|
|
3980
|
-
type: "numeric-input",
|
|
3981
|
-
visible: true
|
|
3982
|
-
}
|
|
3983
|
-
},
|
|
3984
|
-
y: {
|
|
3985
|
-
type: "number",
|
|
3986
|
-
label: "Y",
|
|
3987
|
-
scalingEnabled: true,
|
|
3988
|
-
display: {
|
|
3989
|
-
type: "numeric-input",
|
|
3990
|
-
visible: true
|
|
3991
|
-
}
|
|
3992
|
-
}
|
|
3993
|
-
}
|
|
3994
|
-
},
|
|
3995
|
-
scale: {
|
|
3996
|
-
type: "number",
|
|
3997
|
-
title: "scale",
|
|
3998
|
-
min: 50,
|
|
3999
|
-
max: 600,
|
|
4000
|
-
display: {
|
|
4001
|
-
type: "range-control"
|
|
4002
|
-
}
|
|
4003
|
-
},
|
|
4004
|
-
color: {
|
|
4005
|
-
title: "color",
|
|
4006
|
-
type: "string",
|
|
4007
|
-
display: {
|
|
4008
|
-
type: "settings-color-picker",
|
|
4009
|
-
format: "single"
|
|
4010
|
-
}
|
|
4011
|
-
},
|
|
4012
|
-
hover: {
|
|
4013
|
-
title: "hover",
|
|
4014
|
-
type: "string",
|
|
4015
|
-
display: {
|
|
4016
|
-
type: "settings-color-picker",
|
|
4017
|
-
format: "single"
|
|
4018
|
-
}
|
|
4019
|
-
}
|
|
4020
|
-
}
|
|
4021
|
-
}
|
|
4022
|
-
},
|
|
4023
|
-
default: {
|
|
4024
|
-
general: {
|
|
4025
|
-
autoplay: true,
|
|
4026
|
-
inView: 3,
|
|
4027
|
-
alignment: "center",
|
|
4028
|
-
move: "one",
|
|
4029
|
-
speed: 3e3,
|
|
4030
|
-
direction: "left",
|
|
4031
|
-
pause: "hover"
|
|
4032
|
-
},
|
|
4033
|
-
card: {
|
|
4034
|
-
dimensions: {
|
|
4035
|
-
width: 300,
|
|
4036
|
-
height: 400
|
|
4037
|
-
},
|
|
4038
|
-
gap: 20,
|
|
4039
|
-
corner: 10,
|
|
4040
|
-
borderWidth: 0,
|
|
4041
|
-
borderColor: "#000000",
|
|
4042
|
-
bgColor: "#ffffff"
|
|
4043
|
-
},
|
|
4044
|
-
controls: {
|
|
4045
|
-
isActive: false,
|
|
4046
|
-
arrowsImgUrl: null,
|
|
4047
|
-
offset: {
|
|
4048
|
-
x: 0,
|
|
4049
|
-
y: 0
|
|
4050
|
-
},
|
|
4051
|
-
scale: 100,
|
|
4052
|
-
color: "#000000",
|
|
4053
|
-
hover: "#cccccc"
|
|
4054
|
-
},
|
|
4055
|
-
elements: {
|
|
4056
|
-
text: {
|
|
4057
|
-
alignment: "bottom-center",
|
|
4058
|
-
offset: {
|
|
4059
|
-
x: 0,
|
|
4060
|
-
y: 0
|
|
4061
|
-
}
|
|
4062
|
-
},
|
|
4063
|
-
icon: {
|
|
4064
|
-
alignment: "top-left",
|
|
4065
|
-
offset: {
|
|
4066
|
-
x: 0,
|
|
4067
|
-
y: 0
|
|
4068
|
-
},
|
|
4069
|
-
scale: 100
|
|
4070
|
-
},
|
|
4071
|
-
creds: {
|
|
4072
|
-
alignment: "bottom-center",
|
|
4073
|
-
offset: {
|
|
4074
|
-
x: 0,
|
|
4075
|
-
y: 0
|
|
4076
|
-
}
|
|
4077
|
-
},
|
|
4078
|
-
cover: {
|
|
4079
|
-
gradient: ""
|
|
4080
|
-
}
|
|
4081
|
-
}
|
|
4082
|
-
}
|
|
4083
|
-
},
|
|
4084
|
-
content: {
|
|
4085
|
-
layoutBased: false,
|
|
4086
|
-
type: "array",
|
|
4087
|
-
settings: {
|
|
4088
|
-
addItemFromFileExplorer: true,
|
|
4089
|
-
defaultWidth: 500
|
|
4090
|
-
},
|
|
4091
|
-
items: {
|
|
4092
|
-
type: "object",
|
|
4093
|
-
properties: {
|
|
4094
|
-
image: {
|
|
4095
|
-
type: "object",
|
|
4096
|
-
label: "Image",
|
|
4097
|
-
display: {
|
|
4098
|
-
minWidth: 58,
|
|
4099
|
-
maxWidth: 108,
|
|
4100
|
-
type: "media-input"
|
|
4101
|
-
},
|
|
4102
|
-
properties: {
|
|
4103
|
-
url: {
|
|
4104
|
-
type: "string"
|
|
4105
|
-
},
|
|
4106
|
-
name: {
|
|
4107
|
-
type: "string"
|
|
4108
|
-
},
|
|
4109
|
-
objectFit: {
|
|
4110
|
-
type: "string",
|
|
4111
|
-
enum: ["cover", "contain"]
|
|
4112
|
-
}
|
|
4113
|
-
},
|
|
4114
|
-
required: ["url", "name"]
|
|
4115
|
-
},
|
|
4116
|
-
icon: {
|
|
4117
|
-
type: "object",
|
|
4118
|
-
label: "Icon",
|
|
4119
|
-
display: {
|
|
4120
|
-
minWidth: 58,
|
|
4121
|
-
maxWidth: 108,
|
|
4122
|
-
type: "media-input"
|
|
4123
|
-
},
|
|
4124
|
-
properties: {
|
|
4125
|
-
url: {
|
|
4126
|
-
type: "string"
|
|
4127
|
-
},
|
|
4128
|
-
name: {
|
|
4129
|
-
type: "string"
|
|
4130
|
-
},
|
|
4131
|
-
objectFit: {
|
|
4132
|
-
type: "string",
|
|
4133
|
-
enum: ["cover", "contain"]
|
|
4134
|
-
}
|
|
4135
|
-
},
|
|
4136
|
-
required: ["url", "name"]
|
|
4137
|
-
},
|
|
4138
|
-
imageCaption: {
|
|
4139
|
-
placeholder: "Add Caption...",
|
|
4140
|
-
label: "Description",
|
|
4141
|
-
display: {
|
|
4142
|
-
type: "rich-text",
|
|
4143
|
-
minWidth: 300,
|
|
4144
|
-
maxWidth: 550
|
|
4145
|
-
}
|
|
4146
|
-
},
|
|
4147
|
-
creds: {
|
|
4148
|
-
placeholder: "Add Credentials...",
|
|
4149
|
-
label: "Credentials",
|
|
4150
|
-
display: {
|
|
4151
|
-
type: "rich-text",
|
|
4152
|
-
minWidth: 300,
|
|
4153
|
-
maxWidth: 550
|
|
4154
|
-
}
|
|
4155
|
-
}
|
|
4156
|
-
},
|
|
4157
|
-
required: ["image"]
|
|
4158
|
-
},
|
|
4159
|
-
default: [
|
|
4160
|
-
{
|
|
4161
|
-
image: {
|
|
4162
|
-
objectFit: "cover",
|
|
4163
|
-
url: "https://cdn.cntrl.site/component-assets/2.jpg",
|
|
4164
|
-
name: "Testimonial-1.png"
|
|
4165
|
-
},
|
|
4166
|
-
icon: {
|
|
4167
|
-
objectFit: "cover",
|
|
4168
|
-
url: "",
|
|
4169
|
-
name: ""
|
|
4170
|
-
},
|
|
4171
|
-
imageCaption: [
|
|
4172
|
-
{
|
|
4173
|
-
type: "paragraph",
|
|
4174
|
-
children: [{ text: "" }]
|
|
4175
|
-
}
|
|
4176
|
-
],
|
|
4177
|
-
creds: [
|
|
4178
|
-
{
|
|
4179
|
-
type: "paragraph",
|
|
4180
|
-
children: [{ text: "" }]
|
|
4181
|
-
}
|
|
4182
|
-
]
|
|
4183
|
-
},
|
|
4184
|
-
{
|
|
4185
|
-
image: {
|
|
4186
|
-
objectFit: "cover",
|
|
4187
|
-
url: "https://cdn.cntrl.site/component-assets/3.jpg",
|
|
4188
|
-
name: "Testimonial-2.png"
|
|
4189
|
-
},
|
|
4190
|
-
icon: {
|
|
4191
|
-
objectFit: "cover",
|
|
4192
|
-
url: "",
|
|
4193
|
-
name: ""
|
|
4194
|
-
},
|
|
4195
|
-
imageCaption: [
|
|
4196
|
-
{
|
|
4197
|
-
type: "paragraph",
|
|
4198
|
-
children: [{ text: "" }]
|
|
4199
|
-
}
|
|
4200
|
-
],
|
|
4201
|
-
creds: [
|
|
4202
|
-
{
|
|
4203
|
-
type: "paragraph",
|
|
4204
|
-
children: [{ text: "" }]
|
|
4205
|
-
}
|
|
4206
|
-
]
|
|
4207
|
-
},
|
|
4208
|
-
{
|
|
4209
|
-
image: {
|
|
4210
|
-
objectFit: "cover",
|
|
4211
|
-
url: "https://cdn.cntrl.site/component-assets/4.jpg",
|
|
4212
|
-
name: "Testimonial-3.png"
|
|
4213
|
-
},
|
|
4214
|
-
icon: {
|
|
4215
|
-
objectFit: "cover",
|
|
4216
|
-
url: "",
|
|
4217
|
-
name: ""
|
|
4218
|
-
},
|
|
4219
|
-
imageCaption: [
|
|
4220
|
-
{
|
|
4221
|
-
type: "paragraph",
|
|
4222
|
-
children: [{ text: "" }]
|
|
4223
|
-
}
|
|
4224
|
-
],
|
|
4225
|
-
creds: [
|
|
4226
|
-
{
|
|
4227
|
-
type: "paragraph",
|
|
4228
|
-
children: [{ text: "" }]
|
|
4229
|
-
}
|
|
4230
|
-
]
|
|
4231
|
-
}
|
|
4232
|
-
]
|
|
4233
|
-
},
|
|
4234
|
-
styles: {
|
|
4235
|
-
layoutBased: true,
|
|
4236
|
-
type: "object",
|
|
4237
|
-
properties: {
|
|
4238
|
-
caption: {
|
|
4239
|
-
dataName: "caption",
|
|
4240
|
-
type: "object",
|
|
4241
|
-
properties: {
|
|
4242
|
-
fontSettings: {
|
|
4243
|
-
type: "object",
|
|
4244
|
-
display: {
|
|
4245
|
-
type: "font-settings"
|
|
4246
|
-
},
|
|
4247
|
-
properties: {
|
|
4248
|
-
fontFamily: {
|
|
4249
|
-
type: "string"
|
|
4250
|
-
},
|
|
4251
|
-
fontWeight: {
|
|
4252
|
-
type: "number"
|
|
4253
|
-
},
|
|
4254
|
-
fontStyle: {
|
|
4255
|
-
type: "string"
|
|
4256
|
-
}
|
|
4257
|
-
}
|
|
4258
|
-
},
|
|
4259
|
-
widthSettings: {
|
|
4260
|
-
display: {
|
|
4261
|
-
type: "text-width-control"
|
|
4262
|
-
},
|
|
4263
|
-
type: "object",
|
|
4264
|
-
properties: {
|
|
4265
|
-
width: {
|
|
4266
|
-
type: "number"
|
|
4267
|
-
},
|
|
4268
|
-
sizing: {
|
|
4269
|
-
type: "string",
|
|
4270
|
-
enum: ["auto", "manual"]
|
|
4271
|
-
}
|
|
4272
|
-
}
|
|
4273
|
-
},
|
|
4274
|
-
fontSizeLineHeight: {
|
|
4275
|
-
type: "object",
|
|
4276
|
-
display: {
|
|
4277
|
-
type: "font-size-line-height"
|
|
4278
|
-
},
|
|
4279
|
-
properties: {
|
|
4280
|
-
fontSize: {
|
|
4281
|
-
type: "number"
|
|
4282
|
-
},
|
|
4283
|
-
lineHeight: {
|
|
4284
|
-
type: "number"
|
|
4285
|
-
}
|
|
4286
|
-
}
|
|
4287
|
-
},
|
|
4288
|
-
letterSpacing: {
|
|
4289
|
-
display: {
|
|
4290
|
-
type: "letter-spacing-input"
|
|
4291
|
-
},
|
|
4292
|
-
type: "number"
|
|
4293
|
-
},
|
|
4294
|
-
wordSpacing: {
|
|
4295
|
-
display: {
|
|
4296
|
-
type: "word-spacing-input"
|
|
4297
|
-
},
|
|
4298
|
-
type: "number"
|
|
4299
|
-
},
|
|
4300
|
-
textAlign: {
|
|
4301
|
-
display: {
|
|
4302
|
-
type: "text-align-control"
|
|
4303
|
-
},
|
|
4304
|
-
type: "string",
|
|
4305
|
-
enum: ["left", "center", "right"]
|
|
4306
|
-
},
|
|
4307
|
-
textAppearance: {
|
|
4308
|
-
display: {
|
|
4309
|
-
type: "text-appearance"
|
|
4310
|
-
},
|
|
4311
|
-
properties: {
|
|
4312
|
-
textTransform: {
|
|
4313
|
-
type: "string",
|
|
4314
|
-
enum: ["none", "uppercase", "lowercase"]
|
|
4315
|
-
},
|
|
4316
|
-
textDecoration: {
|
|
4317
|
-
type: "string",
|
|
4318
|
-
enum: ["none", "underline"]
|
|
4319
|
-
},
|
|
4320
|
-
fontVariant: {
|
|
4321
|
-
type: "string",
|
|
4322
|
-
enum: ["normal", "small-caps"]
|
|
4323
|
-
}
|
|
4324
|
-
}
|
|
4325
|
-
},
|
|
4326
|
-
color: {
|
|
4327
|
-
display: {
|
|
4328
|
-
type: "style-panel-color-picker"
|
|
4329
|
-
},
|
|
4330
|
-
type: "string"
|
|
4331
|
-
}
|
|
4332
|
-
}
|
|
4333
|
-
}
|
|
4334
|
-
},
|
|
4335
|
-
default: {
|
|
4336
|
-
caption: {
|
|
3401
|
+
imageCaption: {
|
|
4337
3402
|
widthSettings: {
|
|
4338
3403
|
width: 0.13,
|
|
4339
3404
|
sizing: "auto"
|
|
@@ -4366,7 +3431,6 @@ const TestimonialsComponent = {
|
|
|
4366
3431
|
const components = [
|
|
4367
3432
|
ControlSliderComponent,
|
|
4368
3433
|
ControlImageRevealSliderComponent,
|
|
4369
|
-
LightboxComponent
|
|
4370
|
-
TestimonialsComponent
|
|
3434
|
+
LightboxComponent
|
|
4371
3435
|
];
|
|
4372
3436
|
exports.components = components;
|