@cntrl-site/components 1.0.118-alpha.4 → 1.0.118-alpha.9
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-Bf8jxaas.mjs} +512 -442
- package/dist/ChroniclesComponent-XAHXrzRb.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 +27 -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-Dwn03N-q.mjs +1853 -0
- package/dist/Grid-pyPdnAeI.js +445 -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-IX-rNSn-.mjs} +30 -653
- package/dist/components-QVeWZKot.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 +676 -244
- package/dist/sources.mjs +717 -284
- 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
|
@@ -10,11 +10,12 @@ type BurgerTextPosition = 'left' | 'center' | 'right';
|
|
|
10
10
|
type BurgerShowInValue = string | Record<string, string>;
|
|
11
11
|
type BurgerLink = {
|
|
12
12
|
link?: {
|
|
13
|
-
type?: 'url' | 'page' | 'anchor';
|
|
13
|
+
type?: 'url' | 'page' | 'anchor' | 'file';
|
|
14
14
|
value?: string;
|
|
15
15
|
target?: string;
|
|
16
16
|
anchor?: string;
|
|
17
17
|
url?: string;
|
|
18
|
+
download?: string;
|
|
18
19
|
};
|
|
19
20
|
mode?: 'page' | 'url';
|
|
20
21
|
page?: string;
|
|
@@ -120,10 +121,11 @@ type BurgerPageRef = {
|
|
|
120
121
|
};
|
|
121
122
|
export declare function applyBurgerSettingsChange(nextSettings: BurgerSettings, prevSettings: BurgerSettings): BurgerSettings;
|
|
122
123
|
export type BurgerLinkNavigateEvent = {
|
|
123
|
-
mode: 'page' | 'url';
|
|
124
|
+
mode: 'page' | 'url' | 'file';
|
|
124
125
|
href: string;
|
|
125
126
|
page?: string;
|
|
126
127
|
url?: string;
|
|
128
|
+
file?: string;
|
|
127
129
|
anchor?: string;
|
|
128
130
|
target?: '_blank';
|
|
129
131
|
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Grid } from './Grid';
|
|
2
|
+
import { ComponentSchemaV1 } from '../../types/SchemaV1';
|
|
3
|
+
export declare const CustomGridComponent: {
|
|
4
|
+
element: typeof Grid;
|
|
5
|
+
id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
schema: ComponentSchemaV1;
|
|
8
|
+
category: string;
|
|
9
|
+
layoutMode: "structured";
|
|
10
|
+
preview: {
|
|
11
|
+
type: "image";
|
|
12
|
+
url: string;
|
|
13
|
+
};
|
|
14
|
+
version: number;
|
|
15
|
+
defaultSize: {
|
|
16
|
+
d: {
|
|
17
|
+
width: number;
|
|
18
|
+
height: number;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
assetsPaths: {
|
|
22
|
+
content: {
|
|
23
|
+
path: string;
|
|
24
|
+
placeholderEnabled: boolean;
|
|
25
|
+
}[];
|
|
26
|
+
parameters: {
|
|
27
|
+
path: string;
|
|
28
|
+
}[];
|
|
29
|
+
};
|
|
30
|
+
fontSettingsPaths: {
|
|
31
|
+
content: never[];
|
|
32
|
+
parameters: {
|
|
33
|
+
path: string;
|
|
34
|
+
}[];
|
|
35
|
+
};
|
|
36
|
+
fontRelations: {
|
|
37
|
+
titleFontSettings: string;
|
|
38
|
+
subtitleFontSettings: string;
|
|
39
|
+
lightboxCounterFontSettings: string;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
@@ -19,17 +19,36 @@ type GridLayoutConfig = {
|
|
|
19
19
|
columnsCount: number;
|
|
20
20
|
lockedParam?: 'wrapperWidth' | 'entryWidth' | 'horizontalGap' | null;
|
|
21
21
|
};
|
|
22
|
+
type CustomGridBlock = {
|
|
23
|
+
column: number;
|
|
24
|
+
span: number;
|
|
25
|
+
top: number;
|
|
26
|
+
height: number;
|
|
27
|
+
};
|
|
28
|
+
type CustomGridLayout = {
|
|
29
|
+
columnsCount: number;
|
|
30
|
+
columnWidth: number;
|
|
31
|
+
gutterWidth: number;
|
|
32
|
+
maxWidth: number | null;
|
|
33
|
+
verticalGap?: number;
|
|
34
|
+
beat?: number;
|
|
35
|
+
repeatHeight?: number;
|
|
36
|
+
blocks: CustomGridBlock[];
|
|
37
|
+
cellHeight?: 'manual' | 'auto';
|
|
38
|
+
masonry?: 'off' | 'on';
|
|
39
|
+
};
|
|
22
40
|
type GridSettings = {
|
|
23
41
|
type: 'a' | 'b' | 'c' | 'd' | 'e' | 'f';
|
|
24
|
-
gridLayout
|
|
42
|
+
gridLayout?: GridLayoutConfig;
|
|
43
|
+
customGrid?: CustomGridLayout;
|
|
25
44
|
textBoxWidth: number;
|
|
26
|
-
verticalGap
|
|
27
|
-
entriesCount
|
|
45
|
+
verticalGap?: number;
|
|
46
|
+
entriesCount?: number;
|
|
28
47
|
lightbox: 'on' | 'off';
|
|
29
|
-
imageDisplay: {
|
|
48
|
+
imageDisplay: 'fit' | 'cover' | {
|
|
30
49
|
display: 'fit' | 'cover';
|
|
31
|
-
ratioValue
|
|
32
|
-
reversed
|
|
50
|
+
ratioValue?: '1:1' | '2:3' | '3:4' | '4:5' | '16:9';
|
|
51
|
+
reversed?: boolean;
|
|
33
52
|
};
|
|
34
53
|
imageCorners?: number;
|
|
35
54
|
lightboxImageDisplay?: 'fit' | 'cover' | {
|
|
@@ -41,8 +60,9 @@ type GridSettings = {
|
|
|
41
60
|
transition: 'fade' | 'slide';
|
|
42
61
|
showText: 'always' | 'on hover';
|
|
43
62
|
hover?: 'none' | 'zoom-in' | 'greyscale' | 'scale-down';
|
|
44
|
-
alignEntries
|
|
63
|
+
alignEntries?: 'on' | 'off';
|
|
45
64
|
align?: 'top' | 'center' | 'bottom';
|
|
65
|
+
textGrowth?: 'inside' | 'outside';
|
|
46
66
|
titleMarginTop: number;
|
|
47
67
|
subtitleMarginTop: number;
|
|
48
68
|
titleColor: string;
|
|
@@ -1,9 +1,2 @@
|
|
|
1
1
|
export declare function isInlineMaskUrl(url: string): boolean;
|
|
2
|
-
/** A data: URL holds an SVG only when its media type says so. */
|
|
3
|
-
export declare function isSvgDataUrl(url: string): boolean;
|
|
4
|
-
/**
|
|
5
|
-
* Whether a data: or blob: URL holds an SVG. A blob: URL, as an image is shown by in the
|
|
6
|
-
* editor while it uploads, says nothing of its type, so its blob is looked at.
|
|
7
|
-
*/
|
|
8
|
-
export declare function isInlineSvgUrl(url: string): Promise<boolean>;
|
|
9
2
|
export declare function loadSvgMaskUrl(url: string): Promise<string>;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { jsx as t, jsxs as v, Fragment as M } from "react/jsx-runtime";
|
|
2
2
|
import { useState as f, useRef as Y, useEffect as O } from "react";
|
|
3
3
|
import { S as q, a as K } from "./react-splide.esm-DQqds4PL.mjs";
|
|
4
|
-
/* empty css */
|
|
5
4
|
import c from "classnames";
|
|
6
5
|
import { R as Q } from "./RichTextRenderer-D52Xto59.mjs";
|
|
7
6
|
import { s } from "./scalingValue-C9JH5L6O.mjs";
|
|
8
|
-
import { S as N } from "./SvgImage-
|
|
7
|
+
import { S as N } from "./SvgImage-B5mR9y6q.mjs";
|
|
9
8
|
import { n as Z } from "./textStylesToCss-05Mn6I_2.mjs";
|
|
10
9
|
const G = "ControlSlider-module__wrapper___sHEkd", J = "ControlSlider-module__hoverArrow___A-dOH", X = "ControlSlider-module__sliderItem___QQSkR", E = "ControlSlider-module__sliderImage___9hRl-", oo = "ControlSlider-module__arrow___05ghY", to = "ControlSlider-module__arrowVertical___tBfVN", eo = "ControlSlider-module__nextArrow___-30Yc", no = "ControlSlider-module__arrowInner___aEra3", io = "ControlSlider-module__arrowIcon___S4ztF", ro = "ControlSlider-module__arrowImg___2dwJW", lo = "ControlSlider-module__mirror___brd6U", ao = "ControlSlider-module__pagination___bicLF", so = "ControlSlider-module__paginationInner___bT-P-", co = "ControlSlider-module__paginationVertical___zYqKw", mo = "ControlSlider-module__paginationItem___nTRbk", _o = "ControlSlider-module__dot___p1Qun", go = "ControlSlider-module__activeDot___LHFaj", po = "ControlSlider-module__paginationInsideBottom___R3FWn", ho = "ControlSlider-module__paginationInsideTop___V-qb-", uo = "ControlSlider-module__paginationOutsideBottom___14w8D", fo = "ControlSlider-module__paginationOutsideTop___SCLqB", Co = "ControlSlider-module__paginationInsideLeft___yOBRZ", wo = "ControlSlider-module__paginationInsideRight___Rtt3o", vo = "ControlSlider-module__paginationOutsideLeft___lahaw", So = "ControlSlider-module__paginationOutsideRight___EtuQa", Io = "ControlSlider-module__imgWrapper___UjEgB", Ao = "ControlSlider-module__captionBlock___dJ6-j", yo = "ControlSlider-module__captionTextWrapper___HFlpf", Ro = "ControlSlider-module__captionText___uGBVc", bo = "ControlSlider-module__active___WZK4G", Lo = "ControlSlider-module__withPointerEvents___t-18M", ko = "ControlSlider-module__topLeftAlignment___zjnGM", xo = "ControlSlider-module__topCenterAlignment___gD1xW", Oo = "ControlSlider-module__topRightAlignment___NMapS", No = "ControlSlider-module__middleLeftAlignment___OnUrY", To = "ControlSlider-module__middleCenterAlignment___Tdkl0", zo = "ControlSlider-module__middleRightAlignment___wEbfX", Bo = "ControlSlider-module__bottomLeftAlignment___cTP2-", Vo = "ControlSlider-module__bottomCenterAlignment___c54fB", Wo = "ControlSlider-module__bottomRightAlignment___kEwrz", Fo = "ControlSlider-module__clickOverlay___DZA28", Do = "ControlSlider-module__contain___pLyq7", $o = "ControlSlider-module__cover___KdDat", o = {
|
|
11
10
|
wrapper: G,
|
|
@@ -62,7 +61,7 @@ const G = "ControlSlider-module__wrapper___sHEkd", J = "ControlSlider-module__ho
|
|
|
62
61
|
"bottom-center": o.bottomCenterAlignment,
|
|
63
62
|
"bottom-right": o.bottomRightAlignment
|
|
64
63
|
};
|
|
65
|
-
function
|
|
64
|
+
function Zo({ settings: g, content: p, styles: z, isEditor: l }) {
|
|
66
65
|
const [m, B] = f(null), { widthSettings: A, fontSettings: S, letterSpacing: V, textAlign: W, wordSpacing: F, fontSizeLineHeight: y, textAppearance: I, color: D } = z.imageCaption ?? {}, [_, $] = f(void 0), [C, P] = f(null), [w, U] = f(0), [j, H] = f(0), { direction: n, transition: a, controls: e, pagination: i, imageCaption: h, triggers: u } = g, R = Y(a.type), { x: b, y: L } = g.controls.offset, k = (r) => {
|
|
67
66
|
m && m.go(r);
|
|
68
67
|
};
|
|
@@ -330,5 +329,5 @@ function T({ color: g, className: p }) {
|
|
|
330
329
|
return /* @__PURE__ */ t("svg", { viewBox: "0 0 10 18", className: p, children: /* @__PURE__ */ t("g", { id: "Symbols", stroke: "none", strokeWidth: "1", fillRule: "evenodd", children: /* @__PURE__ */ t("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: g, transform: "translate(5, 9) rotate(-90) translate(-5, -9)" }) }) });
|
|
331
330
|
}
|
|
332
331
|
export {
|
|
333
|
-
|
|
332
|
+
Zo as ControlSlider
|
|
334
333
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),g=require("react"),L=require("./react-splide.esm-CabaEmHi.js"),d=require("classnames"),M=require("./RichTextRenderer-DEFXh5o6.js"),s=require("./scalingValue-CSHYgTZl.js"),k=require("./SvgImage-DFlmxAoL.js"),U=require("./textStylesToCss-CNN3zZTV.js"),H="ControlSlider-module__wrapper___sHEkd",Y="ControlSlider-module__hoverArrow___A-dOH",K="ControlSlider-module__sliderItem___QQSkR",Q="ControlSlider-module__sliderImage___9hRl-",Z="ControlSlider-module__arrow___05ghY",G="ControlSlider-module__arrowVertical___tBfVN",J="ControlSlider-module__nextArrow___-30Yc",X="ControlSlider-module__arrowInner___aEra3",E="ControlSlider-module__arrowIcon___S4ztF",ee="ControlSlider-module__arrowImg___2dwJW",te="ControlSlider-module__mirror___brd6U",oe="ControlSlider-module__pagination___bicLF",ne="ControlSlider-module__paginationInner___bT-P-",ie="ControlSlider-module__paginationVertical___zYqKw",re="ControlSlider-module__paginationItem___nTRbk",le="ControlSlider-module__dot___p1Qun",ae="ControlSlider-module__activeDot___LHFaj",se="ControlSlider-module__paginationInsideBottom___R3FWn",ce="ControlSlider-module__paginationInsideTop___V-qb-",de="ControlSlider-module__paginationOutsideBottom___14w8D",_e="ControlSlider-module__paginationOutsideTop___SCLqB",me="ControlSlider-module__paginationInsideLeft___yOBRZ",ge="ControlSlider-module__paginationInsideRight___Rtt3o",pe="ControlSlider-module__paginationOutsideLeft___lahaw",ue="ControlSlider-module__paginationOutsideRight___EtuQa",he="ControlSlider-module__imgWrapper___UjEgB",fe="ControlSlider-module__captionBlock___dJ6-j",Ce="ControlSlider-module__captionTextWrapper___HFlpf",Se="ControlSlider-module__captionText___uGBVc",ve="ControlSlider-module__active___WZK4G",we="ControlSlider-module__withPointerEvents___t-18M",Ie="ControlSlider-module__topLeftAlignment___zjnGM",xe="ControlSlider-module__topCenterAlignment___gD1xW",Ae="ControlSlider-module__topRightAlignment___NMapS",ye="ControlSlider-module__middleLeftAlignment___OnUrY",Re="ControlSlider-module__middleCenterAlignment___Tdkl0",be="ControlSlider-module__middleRightAlignment___wEbfX",je="ControlSlider-module__bottomLeftAlignment___cTP2-",Le="ControlSlider-module__bottomCenterAlignment___c54fB",ke="ControlSlider-module__bottomRightAlignment___kEwrz",Ve="ControlSlider-module__clickOverlay___DZA28",Te="ControlSlider-module__contain___pLyq7",Oe="ControlSlider-module__cover___KdDat",e={wrapper:H,hoverArrow:Y,sliderItem:K,sliderImage:Q,arrow:Z,arrowVertical:G,nextArrow:J,arrowInner:X,arrowIcon:E,arrowImg:ee,mirror:te,pagination:oe,paginationInner:ne,paginationVertical:ie,paginationItem:re,dot:le,activeDot:ae,paginationInsideBottom:se,paginationInsideTop:ce,paginationOutsideBottom:de,paginationOutsideTop:_e,paginationInsideLeft:me,paginationInsideRight:ge,paginationOutsideLeft:pe,paginationOutsideRight:ue,imgWrapper:he,captionBlock:fe,captionTextWrapper:Ce,captionText:Se,active:ve,withPointerEvents:we,topLeftAlignment:Ie,topCenterAlignment:xe,topRightAlignment:Ae,middleLeftAlignment:ye,middleCenterAlignment:Re,middleRightAlignment:be,bottomLeftAlignment:je,bottomCenterAlignment:Le,bottomRightAlignment:ke,clickOverlay:Ve,contain:Te,cover:Oe},Ne={"top-left":e.topLeftAlignment,"top-center":e.topCenterAlignment,"top-right":e.topRightAlignment,"middle-left":e.middleLeftAlignment,"middle-center":e.middleCenterAlignment,"middle-right":e.middleRightAlignment,"bottom-left":e.bottomLeftAlignment,"bottom-center":e.bottomCenterAlignment,"bottom-right":e.bottomRightAlignment};function ze({settings:p,content:u,styles:T,isEditor:l}){const[_,O]=g.useState(null),{widthSettings:I,fontSettings:v,letterSpacing:N,textAlign:z,wordSpacing:B,fontSizeLineHeight:x,textAppearance:w,color:W}=T.imageCaption??{},[m,F]=g.useState(void 0),[C,D]=g.useState(null),[S,$]=g.useState(0),[q,P]=g.useState(0),{direction:n,transition:a,controls:o,pagination:i,imageCaption:h,triggers:f}=p,A=g.useRef(a.type),{x:y,y:R}=p.controls.offset,b=r=>{_&&_.go(r)};return g.useEffect(()=>{if(!C)return;const r=new ResizeObserver(c=>{if(!_)return;const[j]=c;F({width:Math.round(j.contentRect.width),height:Math.round(j.contentRect.height)})});return r.observe(C),()=>r.unobserve(C)},[C]),g.useEffect(()=>{!_||A.current===a.type||(P(r=>r+1),A.current=a.type)},[a.type]),t.jsx("div",{className:d(e.wrapper,{[e.editor]:l}),ref:D,children:t.jsxs("div",{className:e.sliderInner,style:{width:m?m.width:"100%",height:m?m.height:"100%",backgroundColor:a.backgroundColor&&a.type==="fade in"?a.backgroundColor:"transparent"},children:[p.imageCaption.isActive&&t.jsx("div",{className:d(e.captionBlock),children:t.jsx("div",{className:e.captionTextWrapper,children:u.map((r,c)=>t.jsx("div",{className:d(e.captionText,Ne[h.alignment],{[e.withPointerEvents]:c===S&&l,[e.active]:c===S}),style:{fontFamily:U.normalizeFontFamilyCssValue(v.fontFamily),fontWeight:v.fontWeight,fontStyle:v.fontStyle,width:I.sizing==="auto"?"max-content":s.scalingValue(I.width,l),letterSpacing:s.scalingValue(N,l),wordSpacing:s.scalingValue(B,l),textAlign:z,fontSize:s.scalingValue(x.fontSize,l),lineHeight:s.scalingValue(x.lineHeight,l),textTransform:w.textTransform??"none",textDecoration:w.textDecoration??"none",fontVariant:w.fontVariant??"normal",color:W,transitionDuration:a.duration?`${Math.round(parseInt(a.duration)/2)}ms`:"500ms"},children:t.jsx("div",{"data-styles":"imageCaption",className:e.captionTextInner,style:{"--link-hover-color":h.linkHoverColor,"--link-color":h.linkColor,position:"relative",top:s.scalingValue(h.offset.y,l),left:s.scalingValue(h.offset.x,l)},children:t.jsx(M.RichTextRenderer,{content:r.imageCaption})})},c))})}),t.jsx(L.Splide2,{onMove:r=>{$(r.index)},ref:O,options:{arrows:!1,speed:a.duration?parseInt(a.duration):500,autoplay:f.autoPlay!==null,...f.autoPlay!==null&&{interval:parseInt(f.autoPlay)*1e3},direction:n==="horiz"||a.type==="fade in"?"ltr":"ttb",pagination:!1,drag:f.triggersList.drag,perPage:1,width:m?m.width:"100%",height:m?m.height:"100%",type:a.type==="fade in"?"fade":"loop",rewind:!0},children:u.map((r,c)=>t.jsx(L.SplideSlide,{children:t.jsx("div",{className:e.sliderItem,children:t.jsx("div",{className:e.imgWrapper,children:t.jsx("img",{className:d(e.sliderImage,{[e.contain]:r.image.objectFit==="contain",[e.cover]:r.image.objectFit==="cover"}),src:r.image.assetId,alt:r.image.name??""})})})},c))},q),o.isActive&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:d(e.arrow,{[e.arrowVertical]:n==="vert",[e.hoverArrow]:o.show==="on hover"}),style:{color:o.color,"--arrow-hover-color":o.hover},children:t.jsxs("button",{onClick:()=>{b("-1")},className:e.arrowInner,style:{transform:`translate(${s.scalingValue(y,l)}, ${s.scalingValue(R*(n==="horiz"?1:-1),l)}) scale(${p.controls.scale/100}) rotate(${n==="horiz"?"0deg":"90deg"})`},children:[o.arrowsImgUrl&&t.jsx(k.SvgImage,{url:o.arrowsImgUrl,fill:o.color,hoverFill:o.hover,className:d(e.arrowImg,e.mirror)}),!o.arrowsImgUrl&&t.jsx(V,{color:o.color,className:d(e.arrowIcon,e.arrowImg,e.mirror)})]})}),t.jsx("div",{className:d(e.arrow,e.nextArrow,{[e.arrowVertical]:n==="vert",[e.hoverArrow]:o.show==="on hover"}),style:{color:o.color,"--arrow-hover-color":o.hover},children:t.jsxs("button",{className:e.arrowInner,onClick:()=>b("+1"),style:{transform:`translate(${s.scalingValue(y*(n==="horiz"?-1:1),l)}, ${s.scalingValue(R,l)}) scale(${p.controls.scale/100}) rotate(${n==="horiz"?"0deg":"90deg"})`},children:[o.arrowsImgUrl&&t.jsx(k.SvgImage,{url:o.arrowsImgUrl,fill:o.color,hoverFill:o.hover,className:e.arrowImg}),!o.arrowsImgUrl&&t.jsx(V,{color:o.color,className:d(e.arrowIcon,e.arrowImg)})]})})]}),f.triggersList.click&&t.jsx("div",{className:e.clickOverlay,onClick:()=>{_&&_.go("+1")}}),i.isActive&&t.jsx("div",{className:d(e.pagination,{[e.paginationInsideBottom]:i.position==="inside-1"&&n==="horiz",[e.paginationInsideTop]:i.position==="inside-2"&&n==="horiz",[e.paginationOutsideBottom]:i.position==="outside-1"&&n==="horiz",[e.paginationOutsideTop]:i.position==="outside-2"&&n==="horiz",[e.paginationInsideLeft]:i.position==="inside-1"&&n==="vert",[e.paginationInsideRight]:i.position==="inside-2"&&n==="vert",[e.paginationOutsideLeft]:i.position==="outside-1"&&n==="vert",[e.paginationOutsideRight]:i.position==="outside-2"&&n==="vert",[e.paginationVertical]:n==="vert"}),children:t.jsx("div",{className:e.paginationInner,style:{backgroundColor:i.colors[2],transform:`scale(${i.scale/100}) translate(${s.scalingValue(i.offset.x,l)}, ${s.scalingValue(i.offset.y,l)}) rotate(${n==="horiz"?"0deg":"90deg"})`},children:u.map((r,c)=>t.jsx("button",{onClick:()=>{_&&_.go(c)},className:d(e.paginationItem),children:t.jsx("div",{className:d(e.dot,{[e.activeDot]:c===S}),style:{backgroundColor:c===S?i.colors[0]:i.colors[1],"--pagination-hover-color":i.hover}})},c))})})]})})}function V({color:p,className:u}){return t.jsx("svg",{viewBox:"0 0 10 18",className:u,children:t.jsx("g",{id:"Symbols",stroke:"none",strokeWidth:"1",fillRule:"evenodd",children:t.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:p,transform:"translate(5, 9) rotate(-90) translate(-5, -9)"})})})}exports.ControlSlider=ze;
|
|
@@ -5,7 +5,7 @@ import { s as $ } from "./scalingValue-C9JH5L6O.mjs";
|
|
|
5
5
|
import { b as Xt } from "./buildColorVars-CLyWQm5K.mjs";
|
|
6
6
|
import { u as Et } from "./useScopedStyles-DhBG3557.mjs";
|
|
7
7
|
import { o as J, t as U } from "./textStylesToCss-05Mn6I_2.mjs";
|
|
8
|
-
import { S as Pt } from "./SvgImage-
|
|
8
|
+
import { S as Pt } from "./SvgImage-B5mR9y6q.mjs";
|
|
9
9
|
import { R as to } from "./RichTextRenderer-D52Xto59.mjs";
|
|
10
10
|
const X = 300, m = 4e-3, oo = {
|
|
11
11
|
questionColor: "question-color",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),m=require("react"),G=require("classnames"),p=require("./scalingValue-CSHYgTZl.js"),Gt=require("./buildColorVars-CE2D5cQV.js"),Kt=require("./useScopedStyles-Bf6yohVQ.js"),f=require("./textStylesToCss-CNN3zZTV.js"),Yt=require("./SvgImage-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),m=require("react"),G=require("classnames"),p=require("./scalingValue-CSHYgTZl.js"),Gt=require("./buildColorVars-CE2D5cQV.js"),Kt=require("./useScopedStyles-Bf6yohVQ.js"),f=require("./textStylesToCss-CNN3zZTV.js"),Yt=require("./SvgImage-DFlmxAoL.js"),Zt=require("./RichTextRenderer-DEFXh5o6.js"),K=300,h=.004,Jt={questionColor:"question-color",answerColor:"answer-color",dividerColor:"divider-color",iconColor:"icon-color",questionHoverColor:"question-hover-color",iconHoverColor:"icon-hover-color",iconActiveColor:"icon-active-color",dividerHoverColor:"divider-hover-color"},Ut=["hover","focus","filled","success","error"];function Xt(t){return`calc(var(--cntrl-article-width, 100vw) * ${t/1440})`}function Y(t,r,n,s){return r!==void 0&&r<(t??.01)?`${n} ${s}`:n}function Z(t,r,n,s){const l=t??.01;return r===void 0||r>=l?{}:{[`--${n}-text-leading-gap`]:p.scalingValue((l-r)/2,s)}}function Et(t){return`
|
|
2
2
|
.${t}-wrapper {
|
|
3
3
|
box-sizing: border-box;
|
|
4
4
|
display: flex;
|