@cntrl-site/components 1.0.104 → 1.0.106

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.
Files changed (99) hide show
  1. package/dist/ClickGallerie-CYQMgrIr.js +36 -0
  2. package/dist/ClickGallerie-o2U6oyOF.mjs +272 -0
  3. package/dist/Components/ClickGallerie/ClickGallerie.d.ts +2 -1
  4. package/dist/Components/Helix/Helix.d.ts +4 -1
  5. package/dist/Components/Hive/Hive.d.ts +4 -1
  6. package/dist/Components/ImageRevealSlider/ImageRevealSlider.d.ts +2 -1
  7. package/dist/Components/List/List.d.ts +6 -2
  8. package/dist/Components/Marquee/Marquee.d.ts +6 -2
  9. package/dist/Components/MarqueeText/MarqueeText.d.ts +2 -1
  10. package/dist/Components/Mercury/Mercury.d.ts +4 -1
  11. package/dist/Components/Waterfall/WaterfallLightbox.d.ts +4 -1
  12. package/dist/Components/utils/EmbedMediaFrame.d.ts +27 -0
  13. package/dist/Components/utils/LinkWrapper.d.ts +16 -0
  14. package/dist/Components/utils/embedMedia.d.ts +40 -0
  15. package/dist/Components/utils/index.d.ts +6 -0
  16. package/dist/Components/utils/observeIntersection.d.ts +4 -0
  17. package/dist/Components/utils/useLazyVideos.d.ts +0 -3
  18. package/dist/{ControlSlider-SiOt22l_.js → ControlSlider-Kkec-i14.js} +1 -1
  19. package/dist/{ControlSlider-pZv7H6BU.mjs → ControlSlider-LcZmviGX.mjs} +1 -1
  20. package/dist/EmbedMediaFrame-DsOTKE4i.js +1 -0
  21. package/dist/EmbedMediaFrame-DwHeOAy5.mjs +164 -0
  22. package/dist/{FAQ-C7823fyi.js → FAQ-BxhMo7T8.js} +1 -1
  23. package/dist/{FAQ-CZ39u4m8.mjs → FAQ-CdwSft5p.mjs} +1 -1
  24. package/dist/Grid-CFHTP3mb.js +378 -0
  25. package/dist/Grid-e-gLfsji.mjs +1590 -0
  26. package/dist/Helix-BpLo9FD3.js +43 -0
  27. package/dist/Helix-CidI3ucE.mjs +324 -0
  28. package/dist/{Hive-BusARSOi.mjs → Hive-BsmFHk2i.mjs} +505 -475
  29. package/dist/Hive-D1j6wZpV.js +321 -0
  30. package/dist/ImageRevealSlider-BuukTGAK.js +1 -0
  31. package/dist/{ImageRevealSlider-BdFGyVEP.mjs → ImageRevealSlider-Df9sygk9.mjs} +63 -70
  32. package/dist/{LazyVideo-D8eVYFyw.mjs → LazyVideo-CdAWymKO.mjs} +1 -1
  33. package/dist/{LazyVideo-Cn_vmMq8.js → LazyVideo-imbU18js.js} +1 -1
  34. package/dist/{Lightbox-eP9qAZzL.mjs → Lightbox-C_fXsfdz.mjs} +1 -1
  35. package/dist/{Lightbox-CIss_nOG.js → Lightbox-DaunVrkp.js} +1 -1
  36. package/dist/LinkWrapper-Ca84iPtg.js +1 -0
  37. package/dist/LinkWrapper-DZs9hlOn.mjs +13 -0
  38. package/dist/{List-DW7fyJbf.mjs → List-Bh_-l9vD.mjs} +532 -520
  39. package/dist/List-DVvpQ24J.js +377 -0
  40. package/dist/Marquee-DByooiWP.mjs +578 -0
  41. package/dist/Marquee-DfIP-tIN.js +133 -0
  42. package/dist/MarqueeText-D6FNCe6P.mjs +518 -0
  43. package/dist/MarqueeText-DsUiV6Zv.js +132 -0
  44. package/dist/Mercury-B-s2Kvuq.js +267 -0
  45. package/dist/Mercury-CCW0Es-s.mjs +1700 -0
  46. package/dist/PretextComponent-Dnbenstn.js +1 -0
  47. package/dist/{PretextComponent-s4DDfmzY.mjs → PretextComponent-OygSO3fr.mjs} +312 -269
  48. package/dist/{RichTextRenderer-B6WtTYlR.mjs → RichTextRenderer-BptwNpbJ.mjs} +10 -9
  49. package/dist/RichTextRenderer-K90Dd7pt.js +1 -0
  50. package/dist/{Slider20-Dm8BeCli.mjs → Slider20-CCzixTiN.mjs} +1 -1
  51. package/dist/{Slider20-C9o2REDl.js → Slider20-fMVeRfgx.js} +1 -1
  52. package/dist/{TestimonialGrid-CPu4qQ6B.mjs → TestimonialGrid-CbsVxSn9.mjs} +1 -1
  53. package/dist/{TestimonialGrid-D4ieiz9e.js → TestimonialGrid-CiCagfBU.js} +1 -1
  54. package/dist/{TestimonialSingle-DLdnAVF7.mjs → TestimonialSingle-BVm3Amrl.mjs} +1 -1
  55. package/dist/{TestimonialSingle-CVu15ZtV.js → TestimonialSingle-BWXynGjv.js} +1 -1
  56. package/dist/Waterfall-3kKioKh2.mjs +1432 -0
  57. package/dist/Waterfall-DII4-WV5.js +288 -0
  58. package/dist/{components-Yf9Zjska.mjs → components-BRmbflgg.mjs} +15 -15
  59. package/dist/components-nvbH4l0S.js +1 -0
  60. package/dist/content/postFieldBindings.d.ts +29 -0
  61. package/dist/elements.js +1 -1
  62. package/dist/elements.mjs +16 -16
  63. package/dist/elements.node.js +1 -1
  64. package/dist/elements.node.mjs +1 -1
  65. package/dist/index.d.ts +3 -1
  66. package/dist/index.js +1 -1
  67. package/dist/index.mjs +52 -15
  68. package/dist/observeIntersection-B0f3L2iK.mjs +23 -0
  69. package/dist/observeIntersection-DxGj9Ctt.js +1 -0
  70. package/dist/sources.js +335 -223
  71. package/dist/sources.mjs +339 -227
  72. package/dist/types/SchemaV1.d.ts +53 -1
  73. package/dist/useLazyVideos-CdCbc2j0.js +1 -0
  74. package/dist/useLazyVideos-CxXyEjRQ.mjs +52 -0
  75. package/dist/utils.js +1 -1
  76. package/dist/utils.mjs +30 -20
  77. package/package.json +1 -1
  78. package/dist/ClickGallerie-D7g093HX.js +0 -36
  79. package/dist/ClickGallerie-QSOQjSdv.mjs +0 -271
  80. package/dist/Grid-B2_o1dvz.mjs +0 -1576
  81. package/dist/Grid-Bq6bk2AQ.js +0 -374
  82. package/dist/Helix-B7rxlvKq.js +0 -43
  83. package/dist/Helix-BrKQzGX5.mjs +0 -315
  84. package/dist/Hive-Dh5nKPGm.js +0 -321
  85. package/dist/ImageRevealSlider-BBWtFjUF.js +0 -1
  86. package/dist/List-C32WImI3.js +0 -377
  87. package/dist/Marquee-CdtAqhQE.mjs +0 -563
  88. package/dist/Marquee-DUN8wUax.js +0 -133
  89. package/dist/MarqueeText-4Rip_sQX.mjs +0 -515
  90. package/dist/MarqueeText-E6OubMOG.js +0 -132
  91. package/dist/Mercury-BRqlbk4i.mjs +0 -1702
  92. package/dist/Mercury-C-O2VGkK.js +0 -267
  93. package/dist/PretextComponent-D5P0AjnL.js +0 -1
  94. package/dist/RichTextRenderer-CIy6yI8U.js +0 -1
  95. package/dist/Waterfall-DKuh4bnv.mjs +0 -1404
  96. package/dist/Waterfall-fdiHR0Rc.js +0 -287
  97. package/dist/components-DzNixU7Q.js +0 -1
  98. package/dist/useLazyVideos-BbgdvELi.js +0 -1
  99. package/dist/useLazyVideos-CZLyNolX.mjs +0 -72
@@ -1,19 +1,20 @@
1
1
  import { jsx as o, Fragment as a } from "react/jsx-runtime";
2
2
  import { n as m } from "./textStylesToCss-05Mn6I_2.mjs";
3
- const l = "RichTextRenderer-module__link___BWeZ2", u = {
4
- link: l
3
+ import { L as l } from "./LinkWrapper-DZs9hlOn.mjs";
4
+ const u = "RichTextRenderer-module__link___BWeZ2", x = {
5
+ link: u
5
6
  };
6
7
  function s(t) {
7
- return t != null && t.length ? t.some((e) => e.type === "link" ? s(e.children) : !!e.text) : !1;
8
+ return t != null && t.length ? t.some((r) => r.type === "link" ? s(r.children) : !!r.text) : !1;
8
9
  }
9
- const f = ({ content: t }) => {
10
- const e = (i) => i.map((n, r) => n.type === "link" ? /* @__PURE__ */ o("a", { className: u.link, href: n.value, target: n.target, children: e(n.children) }, r) : /* @__PURE__ */ o("span", { style: x(n), children: n.text }, r));
10
+ const y = ({ content: t }) => {
11
+ const r = (i) => i.map((n, e) => n.type === "link" ? /* @__PURE__ */ o(l, { className: x.link, link: n, children: r(n.children) }, e) : /* @__PURE__ */ o("span", { style: c(n), children: n.text }, e));
11
12
  return /* @__PURE__ */ o(a, { children: t.map((i, n) => {
12
- const r = i.children;
13
- return /* @__PURE__ */ o("div", { children: s(r) ? e(r) : " " }, n);
13
+ const e = i.children;
14
+ return /* @__PURE__ */ o("div", { children: s(e) ? r(e) : " " }, n);
14
15
  }) });
15
16
  };
16
- function x(t) {
17
+ function c(t) {
17
18
  return {
18
19
  ...t.fontFamily && { fontFamily: m(t.fontFamily) },
19
20
  ...t.fontWeight && { fontWeight: t.fontWeight },
@@ -28,5 +29,5 @@ function x(t) {
28
29
  };
29
30
  }
30
31
  export {
31
- f as R
32
+ y as R
32
33
  };
@@ -0,0 +1 @@
1
+ "use strict";const i=require("react/jsx-runtime"),a=require("./textStylesToCss-CNN3zZTV.js"),u=require("./LinkWrapper-Ca84iPtg.js"),x="RichTextRenderer-module__link___BWeZ2",c={link:x};function s(t){return t!=null&&t.length?t.some(e=>e.type==="link"?s(e.children):!!e.text):!1}const l=({content:t})=>{const e=o=>o.map((n,r)=>n.type==="link"?i.jsx(u.LinkWrapper,{className:c.link,link:n,children:e(n.children)},r):i.jsx("span",{style:m(n),children:n.text},r));return i.jsx(i.Fragment,{children:t.map((o,n)=>{const r=o.children;return i.jsx("div",{children:s(r)?e(r):" "},n)})})};function m(t){return{...t.fontFamily&&{fontFamily:a.normalizeFontFamilyCssValue(t.fontFamily)},...t.fontWeight&&{fontWeight:t.fontWeight},...t.fontStyle&&{fontStyle:t.fontStyle},...t.textDecoration&&{textDecoration:t.textDecoration},...t.textTransform&&{textTransform:t.textTransform},...t.fontVariant&&{fontVariant:t.fontVariant},...t.verticalAlign&&{verticalAlign:t.verticalAlign,lineHeight:"0px"}}}exports.RichTextRenderer=l;
@@ -1,7 +1,7 @@
1
1
  import { jsxs as R, Fragment as zo, jsx as s } from "react/jsx-runtime";
2
2
  import { useState as D, useRef as k, useCallback as E, useEffect as B } from "react";
3
3
  import x from "classnames";
4
- import { R as te } from "./RichTextRenderer-B6WtTYlR.mjs";
4
+ import { R as te } from "./RichTextRenderer-BptwNpbJ.mjs";
5
5
  import { s as C } from "./scalingValue-C9JH5L6O.mjs";
6
6
  import { S as Oo } from "./SvgImage-B5mR9y6q.mjs";
7
7
  import { t as re } from "./textStylesToCss-05Mn6I_2.mjs";
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),l=require("react"),g=require("classnames"),Ze=require("./RichTextRenderer-CIy6yI8U.js"),S=require("./scalingValue-CSHYgTZl.js"),Re=require("./SvgImage-DFlmxAoL.js"),Je=require("./textStylesToCss-CNN3zZTV.js"),Qe=require("./useScopedStyles-Bf6yohVQ.js"),H=500,De="cubic-bezier(0.25, 1, 0.5, 1)",Pe=300,et=5,tt=.15,ot=.4,rt=100,Y=100,Ne={color:"#000000",hover:"#cccccc"},U={offset:{x:0,y:0},colors:{pagination:"#cccccc",inactive:"#cccccc",background:"#000000"}},nt={s:{paddingY:5,paddingActive:5,borderRadius:9,dot:4,activeDot:8,gapInactive:9,inset:5},m:{paddingY:7,paddingActive:7,borderRadius:17,dot:8,activeDot:20,gapInactive:22,inset:7},l:{paddingY:10,paddingActive:10,borderRadius:29,dot:20,activeDot:38,gapInactive:26,inset:10}},pe={offset:{x:0,y:0},linkColor:"#cccccc"},je={sizeType:"drag",value:3},at="left";function it(e,i){var b,f;const n={fontSettings:{fontFamily:(e==null?void 0:e.titleFontFamily)??"Arial",fontWeight:((b=e==null?void 0:e.titleFontSettings)==null?void 0:b.fontWeight)??400,fontStyle:((f=e==null?void 0:e.titleFontSettings)==null?void 0:f.fontStyle)??"normal"},fontSize:(e==null?void 0:e.titleFontSize)??.02,lineHeight:(e==null?void 0:e.titleLineHeight)??.02,letterSpacing:(e==null?void 0:e.titleLetterSpacing)??0,wordSpacing:(e==null?void 0:e.titleWordSpacing)??0,textAppearance:e==null?void 0:e.titleTextAppearance,textAlign:at,color:(e==null?void 0:e.titleColor)??"#000000"};return Je.textStylesToCss(n,i)}function V(e,i,n){return`${e}: ${S.scalingValue(i/1440,n)};`}function E(e,i){return i<=0?0:(e%i+i)%i}function ct(e,i,n,b){if(!b)return{position:E(e+i,n),hitBoundary:!1};const f=e+i;return f>=0&&f<=n+1?{position:f,hitBoundary:!1}:{position:i>0?n+1:0,hitBoundary:!0}}function lt(e,i){const n=new DOMMatrixReadOnly(window.getComputedStyle(e).transform);return i?n.m41:n.m42}function st(e,i){const n=document.createElement("div");n.className=i,n.setAttribute("aria-hidden","true"),e.appendChild(n);const b=(X,J)=>{n.style.transform=`translate(${X}px, ${J}px)`;const B=n.getBoundingClientRect();return{x:B.left,y:B.top}},f=b(0,0),r=b(Y,0),K=b(0,Y);e.removeChild(n);const C={x:(r.x-f.x)/Y,y:(r.y-f.y)/Y},s={x:(K.x-f.x)/Y,y:(K.y-f.y)/Y},Z=C.x*s.y-s.x*C.y;return{ex:C,ey:s,det:Z}}function dt(e,i,n){const{ex:b,ey:f,det:r}=e;return{x:(i*f.y-n*f.x)/r,y:(b.x*n-b.y*i)/r}}function ut(e,i){return`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),l=require("react"),g=require("classnames"),Ze=require("./RichTextRenderer-K90Dd7pt.js"),S=require("./scalingValue-CSHYgTZl.js"),Re=require("./SvgImage-DFlmxAoL.js"),Je=require("./textStylesToCss-CNN3zZTV.js"),Qe=require("./useScopedStyles-Bf6yohVQ.js"),H=500,De="cubic-bezier(0.25, 1, 0.5, 1)",Pe=300,et=5,tt=.15,ot=.4,rt=100,Y=100,Ne={color:"#000000",hover:"#cccccc"},U={offset:{x:0,y:0},colors:{pagination:"#cccccc",inactive:"#cccccc",background:"#000000"}},nt={s:{paddingY:5,paddingActive:5,borderRadius:9,dot:4,activeDot:8,gapInactive:9,inset:5},m:{paddingY:7,paddingActive:7,borderRadius:17,dot:8,activeDot:20,gapInactive:22,inset:7},l:{paddingY:10,paddingActive:10,borderRadius:29,dot:20,activeDot:38,gapInactive:26,inset:10}},pe={offset:{x:0,y:0},linkColor:"#cccccc"},je={sizeType:"drag",value:3},at="left";function it(e,i){var b,f;const n={fontSettings:{fontFamily:(e==null?void 0:e.titleFontFamily)??"Arial",fontWeight:((b=e==null?void 0:e.titleFontSettings)==null?void 0:b.fontWeight)??400,fontStyle:((f=e==null?void 0:e.titleFontSettings)==null?void 0:f.fontStyle)??"normal"},fontSize:(e==null?void 0:e.titleFontSize)??.02,lineHeight:(e==null?void 0:e.titleLineHeight)??.02,letterSpacing:(e==null?void 0:e.titleLetterSpacing)??0,wordSpacing:(e==null?void 0:e.titleWordSpacing)??0,textAppearance:e==null?void 0:e.titleTextAppearance,textAlign:at,color:(e==null?void 0:e.titleColor)??"#000000"};return Je.textStylesToCss(n,i)}function V(e,i,n){return`${e}: ${S.scalingValue(i/1440,n)};`}function E(e,i){return i<=0?0:(e%i+i)%i}function ct(e,i,n,b){if(!b)return{position:E(e+i,n),hitBoundary:!1};const f=e+i;return f>=0&&f<=n+1?{position:f,hitBoundary:!1}:{position:i>0?n+1:0,hitBoundary:!0}}function lt(e,i){const n=new DOMMatrixReadOnly(window.getComputedStyle(e).transform);return i?n.m41:n.m42}function st(e,i){const n=document.createElement("div");n.className=i,n.setAttribute("aria-hidden","true"),e.appendChild(n);const b=(X,J)=>{n.style.transform=`translate(${X}px, ${J}px)`;const B=n.getBoundingClientRect();return{x:B.left,y:B.top}},f=b(0,0),r=b(Y,0),K=b(0,Y);e.removeChild(n);const C={x:(r.x-f.x)/Y,y:(r.y-f.y)/Y},s={x:(K.x-f.x)/Y,y:(K.y-f.y)/Y},Z=C.x*s.y-s.x*C.y;return{ex:C,ey:s,det:Z}}function dt(e,i,n){const{ex:b,ey:f,det:r}=e;return{x:(i*f.y-n*f.x)/r,y:(b.x*n-b.y*i)/r}}function ut(e,i){return`
2
2
  .${e}-wrapper {
3
3
  position: relative;
4
4
  width: 100%;
@@ -1,7 +1,7 @@
1
1
  import { jsxs as y, jsx as c } from "react/jsx-runtime";
2
2
  import { useRef as M, useState as w, useMemo as T, useLayoutEffect as P, useCallback as V } from "react";
3
3
  import He from "classnames";
4
- import { R as Ae } from "./RichTextRenderer-B6WtTYlR.mjs";
4
+ import { R as Ae } from "./RichTextRenderer-BptwNpbJ.mjs";
5
5
  import { s as Pe } from "./scalingValue-C9JH5L6O.mjs";
6
6
  import { t as Re } from "./textStylesToCss-05Mn6I_2.mjs";
7
7
  import { u as qe } from "./useScopedStyles-DhBG3557.mjs";
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),o=require("react"),Me=require("classnames"),Se=require("./RichTextRenderer-CIy6yI8U.js"),Te=require("./scalingValue-CSHYgTZl.js"),Ce=require("./textStylesToCss-CNN3zZTV.js"),ke=require("./useScopedStyles-Bf6yohVQ.js"),He=require("./readTestimonialTextMeasure-CEPaB4Sy.js");function Re(e,i){const m=i>0?`${i}px`:"0px";return`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),o=require("react"),Me=require("classnames"),Se=require("./RichTextRenderer-K90Dd7pt.js"),Te=require("./scalingValue-CSHYgTZl.js"),Ce=require("./textStylesToCss-CNN3zZTV.js"),ke=require("./useScopedStyles-Bf6yohVQ.js"),He=require("./readTestimonialTextMeasure-CEPaB4Sy.js");function Re(e,i){const m=i>0?`${i}px`:"0px";return`
2
2
  .${e}-marquee-wrapper {
3
3
  overflow: hidden;
4
4
  width: 100%;
@@ -1,7 +1,7 @@
1
1
  import { jsx as o, Fragment as z, jsxs as m } from "react/jsx-runtime";
2
2
  import b from "classnames";
3
3
  import { useState as w, useRef as U, useMemo as Y, useEffect as R, useCallback as N, useLayoutEffect as pe } from "react";
4
- import { R as Z } from "./RichTextRenderer-B6WtTYlR.mjs";
4
+ import { R as Z } from "./RichTextRenderer-BptwNpbJ.mjs";
5
5
  import { s } from "./scalingValue-C9JH5L6O.mjs";
6
6
  import { S as E } from "./SvgImage-B5mR9y6q.mjs";
7
7
  import { u as ve } from "./useScopedStyles-DhBG3557.mjs";
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),j=require("classnames"),o=require("react"),E=require("./RichTextRenderer-CIy6yI8U.js"),u=require("./scalingValue-CSHYgTZl.js"),X=require("./SvgImage-DFlmxAoL.js"),ue=require("./useScopedStyles-Bf6yohVQ.js"),de=require("./readTestimonialTextMeasure-CEPaB4Sy.js"),G=require("./textStylesToCss-CNN3zZTV.js");function he(e){return`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),j=require("classnames"),o=require("react"),E=require("./RichTextRenderer-K90Dd7pt.js"),u=require("./scalingValue-CSHYgTZl.js"),X=require("./SvgImage-DFlmxAoL.js"),ue=require("./useScopedStyles-Bf6yohVQ.js"),de=require("./readTestimonialTextMeasure-CEPaB4Sy.js"),G=require("./textStylesToCss-CNN3zZTV.js");function he(e){return`
2
2
  .${e}-container {
3
3
  position: relative;
4
4
  overflow-x: clip;