@cntrl-site/components 1.0.118-alpha.4 → 1.0.118-alpha.8
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/{Burger-DyORh_vF.mjs → Burger-C8JIQQwm.mjs} +330 -307
- package/dist/Burger-C_SjPZWp.js +669 -0
- package/dist/{ChroniclesComponent-DVoJ0kdT.mjs → ChroniclesComponent-B-93AhZK.mjs} +512 -442
- package/dist/ChroniclesComponent-C9sBiR1y.js +1 -0
- package/dist/Components/Burger/Burger.d.ts +4 -2
- package/dist/Components/Grid/CustomGridComponent.d.ts +41 -0
- package/dist/Components/Grid/Grid.d.ts +25 -7
- package/dist/Components/helpers/SvgImage/loadSvgMaskUrl.d.ts +0 -7
- package/dist/{ControlSlider-3w-bHQEg.mjs → ControlSlider-BBAXRDLP.mjs} +3 -4
- package/dist/ControlSlider-BCkVFl4w.js +1 -0
- package/dist/{FAQ-GmiwRdFq.mjs → FAQ-CJHCMSBa.mjs} +1 -1
- package/dist/{FAQ-7HEkaoU6.js → FAQ-DLh63Utr.js} +1 -1
- package/dist/Grid-CUaVUaRa.js +441 -0
- package/dist/Grid-D19xZ_mh.mjs +1800 -0
- package/dist/{Hive-34KvKNsa.js → Hive-CzabuuCc.js} +1 -1
- package/dist/{Hive-7xHXyMM1.mjs → Hive-DyxYd5eg.mjs} +1 -1
- package/dist/{HiveLightboxTitles-BCoL46-V.mjs → HiveLightboxTitles-DhEeFKWs.mjs} +1 -1
- package/dist/{HiveLightboxTitles-DEeyQGcf.js → HiveLightboxTitles-DlyptAaK.js} +1 -1
- package/dist/{Lightbox-DzPqgKP4.mjs → Lightbox-BY99NS14.mjs} +1 -1
- package/dist/{Lightbox-Cb7lyaNt.js → Lightbox-DZckgBzK.js} +1 -1
- package/dist/{LightboxJournal-DisD2DLv.mjs → LightboxJournal-BDUs6T0B.mjs} +1 -1
- package/dist/{LightboxJournal-B-vul_be.js → LightboxJournal-Bf_rZzmz.js} +1 -1
- package/dist/{LightboxStrip-wCHUhAqN.mjs → LightboxStrip-Cuhb2fIR.mjs} +1 -1
- package/dist/{LightboxStrip-YDyEPEb6.js → LightboxStrip-RA4ABUC-.js} +1 -1
- package/dist/{Mercury-BmhtFYOw.js → Mercury-B-s2Kvuq.js} +1 -1
- package/dist/{Mercury-Q788wrYQ.mjs → Mercury-CCW0Es-s.mjs} +1 -1
- package/dist/{OnelinerForm-D8WIB9Qy.mjs → OnelinerForm-BEu7_sho.mjs} +1 -1
- package/dist/{OnelinerForm-CUmY-bXL.js → OnelinerForm-C2Y_XMCY.js} +1 -1
- package/dist/{SimpleButton-DTpzfmb6.mjs → SimpleButton-C-o2W9bS.mjs} +1 -1
- package/dist/{SimpleButton-DtaCYa3y.js → SimpleButton-nGEcO2gB.js} +1 -1
- package/dist/{Slider20-q0iGgnE3.js → Slider20-BOmjDRf2.js} +1 -1
- package/dist/{Slider20-CKngROrc.mjs → Slider20-DUi6qwnd.mjs} +1 -1
- package/dist/SvgImage-B5mR9y6q.mjs +51 -0
- package/dist/SvgImage-DFlmxAoL.js +1 -0
- package/dist/{TestimonialSingle-CpEUendN.js → TestimonialSingle-BORQom3u.js} +1 -1
- package/dist/{TestimonialSingle-Bax71Hyo.mjs → TestimonialSingle-DrnyReim.mjs} +1 -1
- package/dist/{Waterfall-znaoynn5.mjs → Waterfall-3kKioKh2.mjs} +1 -1
- package/dist/{Waterfall-B9YWMhrg.js → Waterfall-DII4-WV5.js} +1 -1
- package/dist/{components-eK82xypT.mjs → components-M_xX2VXw.mjs} +30 -653
- package/dist/components-pNQQ3H27.js +1 -0
- package/dist/components.css +1 -1
- package/dist/elements.js +1 -1
- package/dist/elements.mjs +24 -24
- package/dist/elements.node.js +1 -1
- package/dist/elements.node.mjs +1 -1
- package/dist/index.d.ts +1 -3
- package/dist/index.js +1 -1
- package/dist/index.mjs +36 -63
- package/dist/loadSvgMaskUrl-DfF7ay6h.js +1 -0
- package/dist/loadSvgMaskUrl-xHgGYgPe.mjs +20 -0
- package/dist/sources.js +567 -241
- package/dist/sources.mjs +608 -281
- package/dist/types/Component.d.ts +0 -7
- package/dist/types/SchemaV1.d.ts +0 -3
- package/package.json +1 -1
- package/dist/Burger-B4kXX9aY.js +0 -669
- package/dist/ChroniclesComponent-Nm_yIRmr.js +0 -1
- package/dist/Components/PopupMenu/PopupMenu.d.ts +0 -73
- package/dist/Components/PopupMenu/PopupMenuComponent.d.ts +0 -594
- package/dist/Components/PopupMenu/popupMenuLayout.d.ts +0 -203
- package/dist/Components/PopupMenu/popupMenuSnap.d.ts +0 -61
- package/dist/ControlSlider-DB4nbVLT.js +0 -1
- package/dist/Grid-BuRdth9A.mjs +0 -1622
- package/dist/Grid-tqSSYh2-.js +0 -408
- package/dist/PopupMenu-CYdDyzEt.mjs +0 -1372
- package/dist/PopupMenu-Di1fHgho.js +0 -409
- package/dist/SvgImage-CwRq9-ec.mjs +0 -56
- package/dist/SvgImage-_QN8ngad.js +0 -1
- package/dist/components-BYoTPJk3.js +0 -1
- package/dist/loadSvgMaskUrl-B6kHUyof.js +0 -1
- package/dist/loadSvgMaskUrl-DUhCVvpl.mjs +0 -39
|
@@ -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-DEFXh5o6.js"),S=require("./scalingValue-CSHYgTZl.js"),Re=require("./SvgImage-
|
|
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-DEFXh5o6.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%;
|
|
@@ -3,7 +3,7 @@ import { useState as D, useRef as k, useCallback as E, useEffect as B } from "re
|
|
|
3
3
|
import x from "classnames";
|
|
4
4
|
import { R as te } from "./RichTextRenderer-D52Xto59.mjs";
|
|
5
5
|
import { s as C } from "./scalingValue-C9JH5L6O.mjs";
|
|
6
|
-
import { S as Oo } from "./SvgImage-
|
|
6
|
+
import { S as Oo } from "./SvgImage-B5mR9y6q.mjs";
|
|
7
7
|
import { t as re } from "./textStylesToCss-05Mn6I_2.mjs";
|
|
8
8
|
import { u as ne } from "./useScopedStyles-DhBG3557.mjs";
|
|
9
9
|
const j = 500, Ho = "cubic-bezier(0.25, 1, 0.5, 1)", ae = 300, ie = 5, ce = 0.15, le = 0.4, se = 100, W = 100, _o = {
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import { useState as l, useEffect as u } from "react";
|
|
3
|
+
import g from "classnames";
|
|
4
|
+
import { i as p, l as k } from "./loadSvgMaskUrl-xHgGYgPe.mjs";
|
|
5
|
+
const v = "SvgImage-module__svg___q3xE-", C = "SvgImage-module__img___VsTm-", c = {
|
|
6
|
+
svg: v,
|
|
7
|
+
img: C
|
|
8
|
+
}, w = (s) => {
|
|
9
|
+
const e = s.trim().toLowerCase();
|
|
10
|
+
return !!(e.startsWith("data:image/svg+xml") || e.includes("image/svg+xml") || e.includes(".svg") || e.startsWith("blob:"));
|
|
11
|
+
}, _ = (s) => `url("${s.replace(/\\/g, "\\\\").replace(/"/g, '\\"')}")`, x = ({ url: s, fill: e = "#000000", hoverFill: f = "#CCCCCC", className: a = "", style: i }) => {
|
|
12
|
+
const [n, d] = l(() => typeof window > "u" ? !0 : CSS.supports("mask-image", 'url("")') || CSS.supports("-webkit-mask-image", 'url("")')), [o, r] = l(() => p(s) ? s : null);
|
|
13
|
+
return u(() => {
|
|
14
|
+
if (typeof window < "u" && window.CSS) {
|
|
15
|
+
const t = CSS.supports("mask-image", 'url("")') || CSS.supports("-webkit-mask-image", 'url("")');
|
|
16
|
+
d(t);
|
|
17
|
+
}
|
|
18
|
+
}, []), u(() => {
|
|
19
|
+
if (!w(s)) {
|
|
20
|
+
r(null);
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
if (p(s)) {
|
|
24
|
+
r(s);
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
let t = !1;
|
|
28
|
+
return k(s).then((S) => {
|
|
29
|
+
t || r(S);
|
|
30
|
+
}).catch(() => {
|
|
31
|
+
t || r(null);
|
|
32
|
+
}), () => {
|
|
33
|
+
t = !0;
|
|
34
|
+
};
|
|
35
|
+
}, [s]), !o || !n ? /* @__PURE__ */ m("img", { src: s, alt: "", className: g(c.img, a), style: i }) : /* @__PURE__ */ m(
|
|
36
|
+
"span",
|
|
37
|
+
{
|
|
38
|
+
"data-supports-mask": n,
|
|
39
|
+
className: g(c.svg, a),
|
|
40
|
+
style: {
|
|
41
|
+
"--svg": _(o),
|
|
42
|
+
"--fill": e,
|
|
43
|
+
"--hover-fill": f,
|
|
44
|
+
...i ?? {}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
);
|
|
48
|
+
};
|
|
49
|
+
export {
|
|
50
|
+
x as S
|
|
51
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const g=require("react/jsx-runtime"),a=require("react"),c=require("classnames"),n=require("./loadSvgMaskUrl-DfF7ay6h.js"),d="SvgImage-module__svg___q3xE-",k="SvgImage-module__img___VsTm-",m={svg:d,img:k},v=e=>{const s=e.trim().toLowerCase();return!!(s.startsWith("data:image/svg+xml")||s.includes("image/svg+xml")||s.includes(".svg")||s.startsWith("blob:"))},C=e=>`url("${e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}")`,w=({url:e,fill:s="#000000",hoverFill:f="#CCCCCC",className:i="",style:u})=>{const[l,p]=a.useState(()=>typeof window>"u"?!0:CSS.supports("mask-image",'url("")')||CSS.supports("-webkit-mask-image",'url("")')),[o,r]=a.useState(()=>n.isInlineMaskUrl(e)?e:null);return a.useEffect(()=>{if(typeof window<"u"&&window.CSS){const t=CSS.supports("mask-image",'url("")')||CSS.supports("-webkit-mask-image",'url("")');p(t)}},[]),a.useEffect(()=>{if(!v(e)){r(null);return}if(n.isInlineMaskUrl(e)){r(e);return}let t=!1;return n.loadSvgMaskUrl(e).then(S=>{t||r(S)}).catch(()=>{t||r(null)}),()=>{t=!0}},[e]),!o||!l?g.jsx("img",{src:e,alt:"",className:c(m.img,i),style:u}):g.jsx("span",{"data-supports-mask":l,className:c(m.svg,i),style:{"--svg":C(o),"--fill":s,"--hover-fill":f,...u??{}}})};exports.SvgImage=w;
|
|
@@ -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-DEFXh5o6.js"),u=require("./scalingValue-CSHYgTZl.js"),X=require("./SvgImage-
|
|
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-DEFXh5o6.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;
|
|
@@ -3,7 +3,7 @@ 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
4
|
import { R as Z } from "./RichTextRenderer-D52Xto59.mjs";
|
|
5
5
|
import { s } from "./scalingValue-C9JH5L6O.mjs";
|
|
6
|
-
import { S as E } from "./SvgImage-
|
|
6
|
+
import { S as E } from "./SvgImage-B5mR9y6q.mjs";
|
|
7
7
|
import { u as ve } from "./useScopedStyles-DhBG3557.mjs";
|
|
8
8
|
import { r as we } from "./readTestimonialTextMeasure-BIXpGFEt.mjs";
|
|
9
9
|
import { t as P } from "./textStylesToCss-05Mn6I_2.mjs";
|
|
@@ -8,7 +8,7 @@ import { g as dn, a as hn } from "./getImageRect-CBMhFNHM.mjs";
|
|
|
8
8
|
import { L as pn } from "./LazyVideo-CdAWymKO.mjs";
|
|
9
9
|
import { t as gn } from "./textStylesToCss-05Mn6I_2.mjs";
|
|
10
10
|
import { u as mn } from "./useLazyVideos-CxXyEjRQ.mjs";
|
|
11
|
-
import { H as wn } from "./HiveLightboxTitles-
|
|
11
|
+
import { H as wn } from "./HiveLightboxTitles-DhEeFKWs.mjs";
|
|
12
12
|
function vn(t) {
|
|
13
13
|
return `
|
|
14
14
|
.${t}-titles-row {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),o=require("react"),tn=require("react-dom"),Qe=require("./scalingValue-CSHYgTZl.js"),nn=require("./useScopedStyles-Bf6yohVQ.js"),_=require("./EmbedMediaFrame-DsOTKE4i.js"),zt=require("./getImageRect-BQhQXvT8.js"),rn=require("./LazyVideo-imbU18js.js"),on=require("./textStylesToCss-CNN3zZTV.js"),an=require("./useLazyVideos-CdCbc2j0.js"),ln=require("./HiveLightboxTitles-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),o=require("react"),tn=require("react-dom"),Qe=require("./scalingValue-CSHYgTZl.js"),nn=require("./useScopedStyles-Bf6yohVQ.js"),_=require("./EmbedMediaFrame-DsOTKE4i.js"),zt=require("./getImageRect-BQhQXvT8.js"),rn=require("./LazyVideo-imbU18js.js"),on=require("./textStylesToCss-CNN3zZTV.js"),an=require("./useLazyVideos-CdCbc2j0.js"),ln=require("./HiveLightboxTitles-DlyptAaK.js");function sn(e){return`
|
|
2
2
|
.${e}-titles-row {
|
|
3
3
|
position: relative;
|
|
4
4
|
flex: 0 1 auto;
|