@cntrl-site/components 0.1.0-3 → 0.1.0-4
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 +0 -1
- package/dist/index.js +4 -13
- package/dist/index.mjs +4 -13
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1696,7 +1696,7 @@ const Lightbox = ({ isOpen, onClose, content, settings, closeOnBackdropClick = t
|
|
|
1696
1696
|
)
|
|
1697
1697
|
] }),
|
|
1698
1698
|
settings.area.closeIconUrl && /* @__PURE__ */ jsxRuntime.jsx("button", { className: styles.closeButton, style: { top: settings.area.closeIconOffset.y, left: settings.area.closeIconOffset.x }, onClick: onClose, children: /* @__PURE__ */ jsxRuntime.jsx(SvgImage, { url: settings.area.closeIconUrl, fill: settings.area.color }) }),
|
|
1699
|
-
settings.caption.isActive && /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles.caption, style: { top: settings.caption.offset.y, left: settings.caption.offset.x
|
|
1699
|
+
settings.caption.isActive && /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles.caption, style: { top: settings.caption.offset.y, left: settings.caption.offset.x }, children: /* @__PURE__ */ jsxRuntime.jsx(RichTextRenderer, { content: content[currentIndex].imageCaption }) }),
|
|
1700
1700
|
settings.thumbnail.isActive && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1701
1701
|
"div",
|
|
1702
1702
|
{
|
|
@@ -1767,7 +1767,7 @@ const LightboxComponent = {
|
|
|
1767
1767
|
properties: {
|
|
1768
1768
|
cover: {
|
|
1769
1769
|
title: "COVER",
|
|
1770
|
-
icon: "
|
|
1770
|
+
icon: "cover",
|
|
1771
1771
|
tooltip: "Cover Image",
|
|
1772
1772
|
type: "object",
|
|
1773
1773
|
properties: {
|
|
@@ -1874,7 +1874,7 @@ const LightboxComponent = {
|
|
|
1874
1874
|
},
|
|
1875
1875
|
thumbnail: {
|
|
1876
1876
|
title: "THUMB",
|
|
1877
|
-
icon: "
|
|
1877
|
+
icon: "thumbnail",
|
|
1878
1878
|
tooltip: "Thumbnail",
|
|
1879
1879
|
type: "object",
|
|
1880
1880
|
properties: {
|
|
@@ -2105,7 +2105,7 @@ const LightboxComponent = {
|
|
|
2105
2105
|
},
|
|
2106
2106
|
area: {
|
|
2107
2107
|
title: "AREA",
|
|
2108
|
-
icon: "
|
|
2108
|
+
icon: "area",
|
|
2109
2109
|
tooltip: "Area",
|
|
2110
2110
|
type: "object",
|
|
2111
2111
|
properties: {
|
|
@@ -2181,14 +2181,6 @@ const LightboxComponent = {
|
|
|
2181
2181
|
}
|
|
2182
2182
|
}
|
|
2183
2183
|
},
|
|
2184
|
-
color: {
|
|
2185
|
-
title: "Color",
|
|
2186
|
-
type: "string",
|
|
2187
|
-
display: {
|
|
2188
|
-
type: "settings-color-picker",
|
|
2189
|
-
format: "single"
|
|
2190
|
-
}
|
|
2191
|
-
},
|
|
2192
2184
|
hover: {
|
|
2193
2185
|
title: "Hover",
|
|
2194
2186
|
type: "string",
|
|
@@ -2259,7 +2251,6 @@ const LightboxComponent = {
|
|
|
2259
2251
|
caption: {
|
|
2260
2252
|
alignment: "middle-center",
|
|
2261
2253
|
offset: { x: 0, y: 0 },
|
|
2262
|
-
color: "#000000",
|
|
2263
2254
|
hover: "#cccccc"
|
|
2264
2255
|
}
|
|
2265
2256
|
},
|
package/dist/index.mjs
CHANGED
|
@@ -1694,7 +1694,7 @@ const Lightbox = ({ isOpen, onClose, content, settings, closeOnBackdropClick = t
|
|
|
1694
1694
|
)
|
|
1695
1695
|
] }),
|
|
1696
1696
|
settings.area.closeIconUrl && /* @__PURE__ */ jsx("button", { className: styles.closeButton, style: { top: settings.area.closeIconOffset.y, left: settings.area.closeIconOffset.x }, onClick: onClose, children: /* @__PURE__ */ jsx(SvgImage, { url: settings.area.closeIconUrl, fill: settings.area.color }) }),
|
|
1697
|
-
settings.caption.isActive && /* @__PURE__ */ jsx("div", { className: styles.caption, style: { top: settings.caption.offset.y, left: settings.caption.offset.x
|
|
1697
|
+
settings.caption.isActive && /* @__PURE__ */ jsx("div", { className: styles.caption, style: { top: settings.caption.offset.y, left: settings.caption.offset.x }, children: /* @__PURE__ */ jsx(RichTextRenderer, { content: content[currentIndex].imageCaption }) }),
|
|
1698
1698
|
settings.thumbnail.isActive && /* @__PURE__ */ jsx(
|
|
1699
1699
|
"div",
|
|
1700
1700
|
{
|
|
@@ -1765,7 +1765,7 @@ const LightboxComponent = {
|
|
|
1765
1765
|
properties: {
|
|
1766
1766
|
cover: {
|
|
1767
1767
|
title: "COVER",
|
|
1768
|
-
icon: "
|
|
1768
|
+
icon: "cover",
|
|
1769
1769
|
tooltip: "Cover Image",
|
|
1770
1770
|
type: "object",
|
|
1771
1771
|
properties: {
|
|
@@ -1872,7 +1872,7 @@ const LightboxComponent = {
|
|
|
1872
1872
|
},
|
|
1873
1873
|
thumbnail: {
|
|
1874
1874
|
title: "THUMB",
|
|
1875
|
-
icon: "
|
|
1875
|
+
icon: "thumbnail",
|
|
1876
1876
|
tooltip: "Thumbnail",
|
|
1877
1877
|
type: "object",
|
|
1878
1878
|
properties: {
|
|
@@ -2103,7 +2103,7 @@ const LightboxComponent = {
|
|
|
2103
2103
|
},
|
|
2104
2104
|
area: {
|
|
2105
2105
|
title: "AREA",
|
|
2106
|
-
icon: "
|
|
2106
|
+
icon: "area",
|
|
2107
2107
|
tooltip: "Area",
|
|
2108
2108
|
type: "object",
|
|
2109
2109
|
properties: {
|
|
@@ -2179,14 +2179,6 @@ const LightboxComponent = {
|
|
|
2179
2179
|
}
|
|
2180
2180
|
}
|
|
2181
2181
|
},
|
|
2182
|
-
color: {
|
|
2183
|
-
title: "Color",
|
|
2184
|
-
type: "string",
|
|
2185
|
-
display: {
|
|
2186
|
-
type: "settings-color-picker",
|
|
2187
|
-
format: "single"
|
|
2188
|
-
}
|
|
2189
|
-
},
|
|
2190
2182
|
hover: {
|
|
2191
2183
|
title: "Hover",
|
|
2192
2184
|
type: "string",
|
|
@@ -2257,7 +2249,6 @@ const LightboxComponent = {
|
|
|
2257
2249
|
caption: {
|
|
2258
2250
|
alignment: "middle-center",
|
|
2259
2251
|
offset: { x: 0, y: 0 },
|
|
2260
|
-
color: "#000000",
|
|
2261
2252
|
hover: "#cccccc"
|
|
2262
2253
|
}
|
|
2263
2254
|
},
|