@cntrl-site/components 0.1.0-17 → 0.1.0-18

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/index.js CHANGED
@@ -1506,7 +1506,7 @@ function LightboxGallery({ settings, content, styles: styles2, portalId, activeE
1506
1506
  setOpen(true);
1507
1507
  }
1508
1508
  }, [activeEvent]);
1509
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
1509
+ return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1510
1510
  /* @__PURE__ */ jsxRuntime.jsx(
1511
1511
  "img",
1512
1512
  {
@@ -1780,7 +1780,7 @@ const Lightbox = ({ isOpen, onClose, content, settings, closeOnBackdropClick = t
1780
1780
  {
1781
1781
  className: styles.thumbItem,
1782
1782
  style: {
1783
- transform: `scale(${isActive ? thumbnail.activeState.scale : 1})`,
1783
+ transform: `scale(${isActive ? thumbnail.activeState.scale / 100 : 1})`,
1784
1784
  ...slider.direction === "horiz" ? { height: "100%" } : {},
1785
1785
  ...slider.direction === "vert" ? { width: "100%" } : {},
1786
1786
  opacity: isActive ? thumbnail.activeState.opacity : thumbnail.opacity,
@@ -1893,7 +1893,6 @@ const LightboxComponent = {
1893
1893
  type: "string",
1894
1894
  title: "FROM",
1895
1895
  display: {
1896
- visible: false,
1897
1896
  type: "direction-control"
1898
1897
  },
1899
1898
  enum: ["top", "left", "right", "bottom"]
@@ -2418,6 +2417,16 @@ const LightboxComponent = {
2418
2417
  name: "properties.lightboxBlock.properties.thumbnail.properties.grid.properties.height.display.visible",
2419
2418
  value: false
2420
2419
  }
2420
+ },
2421
+ {
2422
+ if: {
2423
+ name: "appear.type",
2424
+ value: "fade in"
2425
+ },
2426
+ then: {
2427
+ name: "properties.lightboxBlock.properties.appear.properties.direction.display.visible",
2428
+ value: false
2429
+ }
2421
2430
  }
2422
2431
  ]
2423
2432
  },
package/dist/index.mjs CHANGED
@@ -1504,7 +1504,7 @@ function LightboxGallery({ settings, content, styles: styles2, portalId, activeE
1504
1504
  setOpen(true);
1505
1505
  }
1506
1506
  }, [activeEvent]);
1507
- return /* @__PURE__ */ jsxs("div", { children: [
1507
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
1508
1508
  /* @__PURE__ */ jsx(
1509
1509
  "img",
1510
1510
  {
@@ -1778,7 +1778,7 @@ const Lightbox = ({ isOpen, onClose, content, settings, closeOnBackdropClick = t
1778
1778
  {
1779
1779
  className: styles.thumbItem,
1780
1780
  style: {
1781
- transform: `scale(${isActive ? thumbnail.activeState.scale : 1})`,
1781
+ transform: `scale(${isActive ? thumbnail.activeState.scale / 100 : 1})`,
1782
1782
  ...slider.direction === "horiz" ? { height: "100%" } : {},
1783
1783
  ...slider.direction === "vert" ? { width: "100%" } : {},
1784
1784
  opacity: isActive ? thumbnail.activeState.opacity : thumbnail.opacity,
@@ -1891,7 +1891,6 @@ const LightboxComponent = {
1891
1891
  type: "string",
1892
1892
  title: "FROM",
1893
1893
  display: {
1894
- visible: false,
1895
1894
  type: "direction-control"
1896
1895
  },
1897
1896
  enum: ["top", "left", "right", "bottom"]
@@ -2416,6 +2415,16 @@ const LightboxComponent = {
2416
2415
  name: "properties.lightboxBlock.properties.thumbnail.properties.grid.properties.height.display.visible",
2417
2416
  value: false
2418
2417
  }
2418
+ },
2419
+ {
2420
+ if: {
2421
+ name: "appear.type",
2422
+ value: "fade in"
2423
+ },
2424
+ then: {
2425
+ name: "properties.lightboxBlock.properties.appear.properties.direction.display.visible",
2426
+ value: false
2427
+ }
2419
2428
  }
2420
2429
  ]
2421
2430
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cntrl-site/components",
3
- "version": "0.1.0-17",
3
+ "version": "0.1.0-18",
4
4
  "description": "Custom components for control editor and public websites.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",